* doc/c-tree.texi (CONSTRUCTOR): Mention RANGE_EXPRs.
[gcc.git] / gcc / ChangeLog
1 2004-12-16 Nathan Sidwell <nathan@codesourcery.com>
2
3 * doc/c-tree.texi (CONSTRUCTOR): Mention RANGE_EXPRs.
4
5 2004-12-16 Mark Dettinger <dettinge@de.ibm.com>
6
7 * config/s390/s390.c (struct processor_costs): Two new fields:
8 madbr, maebr.
9 (s390_rtx_costs): Added handling of multipy and add in SFmode.
10 More precise values for cost of multiply and add.
11
12 2004-12-15 Richard Henderson <rth@redhat.com>
13
14 PR target/19028
15 * config/i386/i386.md (sse compare splitter): Test for SF and DFmode
16 explicitly instead of using VALID_SSE_REG_MODE.
17
18 2004-12-15 Richard Henderson <rth@redhat.com>
19
20 PR target/19005
21 * config/i386/i386.md (swaphi_1): Swap with swaphi_2, allow with
22 optimize_size.
23 (swapqi_1): Rename from swapqi. Enable only for no partial reg
24 stall and optimize_size.
25 (swapqi_2): New.
26 (swaphi_1, swaphi_2, swapqi_1): Add athlon_decode.
27 (swapsi, swaphi_1, swaphi_2, swapqi_1, swapdi): Remove modrm override.
28
29 2004-12-16 Uros Bizjak <uros@kss-loka.si>
30
31 * config/i386/i386.md (*floathisf2_i387, *floathidf2_i387):
32 Also enable for TARGET_MIX_SSE_I387.
33
34 2004-12-16 Uros Bizjak <uros@kss-loka.si>
35
36 * config/i386/i386.md (sqrt{s,d}f2_1, sqrt{s,d}f2_1_sse_only,
37 sqrt{s,d}f2_i387): Unify enable constraint with respect to
38 TARGET_SSE, TARGET_SSE2, TARGET_USE_FANCY_MATH_387,
39 TARGET_SSE_MATH and TARGET_MIX_SSE_I387.
40 (sqrt{s,d}f2_1): Rename to *sqrt{s,d}f2_mixed.
41 (sqrt{s,d}f2_1_sse_only): Rename to *sqrt{s,d}f2_sse.
42 (sqrt{s,d}f2_i387): Rename to *sqrt{s,d}f2_i387.
43 (*sqrtextendsfdf2): Also enable for TARGET_MIX_SSE_I387.
44 (*sqrtextend?f?f2): Rename to *sqrtextendsfdf2_i387.
45
46 2004-12-16 Uros Bizjak <uros@kss-loka.si>
47
48 * config/i386/i386.md (*fop_?f_comm_{,sse,nosse},
49 *fop_?f_1_{,sse,nosse}, *fop_{d,x}f_{2,3,4,5,6}): Unify enable
50 constraint with respect to TARGET_80387, TARGET_SSE, TARGET_SSE2,
51 TARGET_SSE_MATH and TARGET_MIX_SSE_I387.
52 (*fop_?f_{comm,1}): Rename to *fop_?f_{comm,1}_mixed.
53 (*fop_?f_{comm,1}_nosse): Rename to *fop_?f_{comm,1}_i387.
54 (*fop_{d,x}f_{2,3,4,5,6}): Rename to *fop_{d,x}f_{2,3,4,5,6}_i387.
55
56 2004-12-15 H.J. Lu <hongjiu.lu@intel.com>
57
58 PR target/18153
59 * configure.ac: Define HAVE_LD_STATIC_DYNAMIC if linker supports
60 -Bstatic/-Bdynamic option.
61 * config.in: Regenerated.
62 * configure: Likewise.
63
64 * gcc.c (init_spec): Pass -Bstatic/-Bdynamic to ld for static
65 -lunwind if possible.
66
67 2004-12-15 Daniel Berlin <dberlin@dberlin.org>
68
69 * cfgloop.c (flow_loops_dump): Don't print out levels.
70 (flow_loops_find): Don't set loop->levels.
71 (flow_loops_level_compute): Make void.
72 * cfgloop.h (struct loops): Remove levels member.
73 Add comment about loops in parray possibly being NULL.
74
75 2004-12-15 Alexandre Oliva <aoliva@redhat.com>
76
77 * reload.c (SMALL_REGISTER_CLASS_P): New.
78 (push_secondary_reload, find_reusable_reload, find_reloads): Use
79 it instead of testing only the class size.
80
81 2004-12-15 Eric Botcazou <ebotcazou@libertysurf.fr>
82
83 PR c++/17972
84 * tree-inline.c (expand_call_inline): Set TREE_SIDE_EFFECTS
85 on the STMT_EXPR wrapping up the inlined body.
86
87 2004-12-15 Vladimir Makarov <vmakarov@redhat.com>
88 Steven Bosscher <stevenb@suse.de>
89 PR middle end/17340
90
91 * global.c: Update comments in a few places.
92 (check_earlyclobber): Return true if there are early clobber
93 classes.
94 (calculate_local_reg_bb_info): Do not try to mark earlyclobber
95 regs if there are none.
96 (bb_info, allocate_bb_info, free_bb_info, modify_reg_pav,
97 make_accurate_live_analysis): Rename pavin, pavout to live_pavin,
98 live_pavout.
99 (modify_bb_reg_pav): Remove.
100 (calculate_reg_pav): Use code from modify_bb_reg_pav.
101 (temp_bitmap): New variable.
102 (calculate_reg_pav): Allocate/deallocate temp_bitmap.
103
104 2004-12-15 Richard Henderson <rth@redhat.com>
105
106 PR target/19010
107 * config/i386/i386.c (ix86_must_pass_in_stack): Don't return true
108 for TImode vectors.
109 (gen_reg_or_parallel): New.
110 (function_arg): Use it.
111 (ix86_hard_regno_mode_ok): Test SSE1 and SSE2 separately,
112 MMX and 3DNOW separately.
113 (ix86_rtx_costs): Simplify FLOAT_EXTEND case.
114 (ix86_vector_mode_supported_p): Test SSE1 and SSE2 separately.
115 * config/i386/i386.h (VALID_SSE2_REG_MODE): Move SSE2 cases from ...
116 (VALID_SSE_REG_MODE): ... here.
117
118 2004-12-15 David Edelsohn <edelsohn@gnu.org>
119
120 * xcoffout.c (xcoffout_declare_function): Change strncpy to memcpy.
121
122 2004-12-15 Ian Lance Taylor <ian@wasabisystems.com>
123
124 * config/arm/arm.c (arm_xscale_rtx_costs): Increase cost of
125 COMPARE of MULT.
126 * config/arm/arm.md (mulsi3_compare0): Don't check
127 arm_arch_xscale.
128 (mulsi_compare0_scratch, mulsi3_addsi_compare0): Likewise.
129 (mulsi3addsi_compare0_scratch): Likewise.
130
131 2004-12-15 Eric Botcazou <ebotcazou@libertysurf.fr>
132
133 PR other/18665
134 * libgcc-std.ver (GCC_3.4.4): Inherit from GCC_3.4.2.
135 Export __absvti2, __addvti3, __mulvti3, __negvti2 and __subvti3.
136 * libgcc2.c (__addvsi3): Rename to __addvSI3.
137 New version if COMPAT_SIMODE_TRAPPING_ARITHMETIC.
138 (__addvdi3): Rename to __addvDI3.
139 (__subvsi3): Rename to __subvSI3. Use word type for the result.
140 New version if COMPAT_SIMODE_TRAPPING_ARITHMETIC.
141 (__subvdi3): Rename to __subvDI3.
142 (_mulvsi3): Rename to _mulvSI3.
143 New version if COMPAT_SIMODE_TRAPPING_ARITHMETIC.
144 (_mulvdi3): Rename to _mulvDI3.
145 (__negvsi2): Rename to __negvSI2.
146 New version if COMPAT_SIMODE_TRAPPING_ARITHMETIC.
147 (__negvdi2): Rename to __negvDI2.
148 (__absvsi2): Rename to __absvSI2.
149 New version if COMPAT_SIMODE_TRAPPING_ARITHMETIC.
150 (__absvdi2): Rename to __absvDI2.
151 * libgcc2.h (64-bit targets): Define COMPAT_SIMODE_TRAPPING_ARITHMETIC.
152 (__absvSI2, __addvSI3, __subvSI3, __mulvSI3, __negvSI2, __absvDI2,
153 __addvDI3, __subvDI3, __mulvDI3, __negvDI2): Define to the appropriate
154 symbol and declare.
155 (__absvsi2, __addvsi3, __subvsi3, __mulvsi3, __negvsi2): Declare if
156 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
157
158 2004-12-15 Kazuhiro Inaoka <inaoka.kazuhiro@reneasas.com>
159
160 * config/m32r/m32r.h (PREFERRED_DEBUGGING_TYPE):
161 Use DWARF2_DEBUG.
162
163 * config/m32r.c (m32r_legitimize_pic_address): Changed
164 to support GOTOFF relocation.
165 * config/m32r.md (UNSPEC_GOTOFF): New.
166 (gotoff_load_addr): New.
167
168 2004-12-15 Richard Sandiford <rsandifo@redhat.com>
169
170 * config/mips/mips.c (mips_arg_info): Use FUNCTION_ARG_BOUNDARY to
171 decide whether an argument is double-word aligned.
172
173 2004-12-15 Richard Henderson <rth@redhat.com>
174
175 * config/i386/i386.md: Fix missing modes on cmove splitters.
176
177 2004-12-15 Jan Beulich <jbeulich@novell.com>
178
179 * mklibgcc.in (libgcc2_c_dep): Add dependency on libgcc2.h.
180
181 2004-12-15 Uros Bizjak <uros@kss-loka.si>
182
183 * config/i386/i386.md (floathisf2, *floathisf2_1, floatsisf2,
184 *floatsisf2_i387, *floatsisf2_sse, floatdisf2,
185 *floatdisf2_i387_only, *floatdisf2_i387, *floatdisf2_sse,
186 floathidf2, *floathidf2_1, *floatsidf2_i387, *floatsidf2_sse,
187 floatdidf2, *floatdidf2_i387_only, *floatdidf2_i387,
188 *floatdidf2_sse, floatunssisf2, floatunsdisf2, floatunsdidf2):
189 Unify enable constraint with respect to TARGET_80387, TARGET_SSE,
190 TARGET_SSE2, TARGET_64BIT, TARGET_SSE_MATH and TARGET_MIX_SSE_I387.
191 (*float?i?f_i387): Rename to *float?i?f2_mixed.
192 (*float?i?f2_1): Rename to *float?i?f2_i387.
193 (*float?i?f2_i387_only): Rename to *float?i?f2_i387.
194 (float?ixf2): Penalize integer register operand.
195
196 2004-12-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
197
198 PR c++/17242
199 * configure.ac: Add GAS check for HP-UX .nsubspa comdat.
200 * configure, config.in: Rebuilt.
201 * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Delete
202 defines.
203 * config/pa/pa.c (pa_select_section): Allow uninitialized variables in
204 one-only (comdat) subspaces.
205 * config/pa/som.h (SUPPORTS_SOM_COMDAT): New define.
206 (SUPPORTS_ONE_ONLY): True if SUPPORTS_WEAK or SUPPORTS_SOM_COMDAT are
207 true.
208 (MAKE_DECL_ONE_ONLY): Place uninitialized variables in common.
209
210 2004-12-14 Ian Lance Taylor <ian@wasabisystems.com>
211
212 * combine.c (combine_validate_cost): Consider cost of
213 undobuf.other_insn rather than always allowing the recombination
214 if it is set.
215
216 2004-12-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
217
218 * pa-host.c (MAP_FAILED): Define if not defined.
219 (pa_gt_pch_use_address): Handle short reads.
220
221 2004-12-14 Richard Henderson <rth@redhat.com>
222
223 PR target/17990
224 * config/i386/i386.c (x86_use_bt): New.
225 (ix86_expand_unary_operator): Use MEM_P.
226 (ix86_expand_fp_absneg_operator): New.
227 * config/i386/i386.h (x86_use_bt): Declare.
228 (TARGET_USE_BT): New.
229 * config/i386/i386-protos.h: Update.
230 * config/i386/i386.md (negsf2): Use ix86_expand_fp_absneg_operator.
231 (negdf2, negxf2, abssf2, absdf2, absxf2): Likewise.
232 (negsf2_memory, negsf2_ifs, negsf2_if, negdf2_memory, negdf2_ifs,
233 negdf2_ifs_rex64, negdf2_if, negdf2_if_rex64, negxf2_if,
234 abssf2_memory, abssf2_ifs, abssf2_if, absdf2_memory, absdf2_ifs,
235 absdf2_ifs_rex64, absdf2_if, absxf2_if): Remove.
236 (absnegsf2_mixed, absnegsf2_sse, absnegsf2_i387, absnegdf2_mixed,
237 absnegdf2_sse, absnegdf2_i387, absnegxf2_i387): New. Merge all
238 neg and abs splitters. Handle DFmode in general regs in 64-bit mode.
239 (negextendsfdf2, absextendsfdf2): Disable for non-mixed sse math.
240 (btsq, btrq, btcq): New. Add peepholes as well.
241 (movv4sf_internal splitter): Postpone til after reload.
242 (movv2di_internal splitter): Likewise.
243 * config/i386/predicates.md (const_0_to_63_operand): New.
244 (absneg_operator): New.
245
246 2004-12-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
247
248 * pa.h (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_FP_P):
249 Check register number and that reg_renumber is nonzero before using it.
250
251 2004-12-14 Steve Ellcey <sje@cup.hp.com>
252
253 * doc/invoke.texi (IA-64 options): Add existing options that
254 weren't already listed.
255
256 2004-12-14 Jeff Law <law@redhat.com>
257
258 * tree-outof-ssa.c (coalesce_abnormal_edges): Pass the correct target
259 partition to conflict_graph_merge_regs.
260
261 2004-12-14 Uttam Pawar <uttamp@us.ibm.com>
262 Janis Johnson <janis187@us.ibm.com>
263
264 * rs6000.c (rs6000_handle_altivec_attribute_tree): Report errors
265 for vector types with invalid component types.
266
267 2004-12-14 Jakub Jelinek <jakub@redhat.com>
268
269 PR middle-end/18951
270 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2,
271 expand_builtin_mathfn_3): Avoid using arguments passed to
272 save_expr after that call.
273
274 * fold-const.c (fold_single_bit_test): If flag_syntax_only, pretend
275 LOAD_EXTEND_OP is not defined.
276 (fold): Likewise. If flag_syntax_only, don't depend on BITS_PER_WORD.
277
278 2004-12-14 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
279
280 * tree.def, doc/c-tree.texi: Correctly document restrictions on the
281 shift width.
282
283 2004-12-14 Kazu Hirata <kazu@cs.umass.edu>
284
285 * expr.h (expand_modifier): Define EXPAND_STACK_PARM as 1.
286
287 2004-12-14 Richard Earnshaw <rearnsha@arm.com>
288
289 PR target/18973
290 arm-cores.def (arm926ej-s, arm1026ej-s, arm1136j-s, arm1136-jfs)
291 (arm1176jz-s, arm1176jzf-s, mpcorenovfp, mpcore): Add load-scheduling
292 property to flags.
293
294 2004-12-14 Diego Novillo <dnovillo@redhat.com>
295
296 * tree-gimple.c (get_base_address): Update documentation.
297
298 2004-12-13 Richard Henderson <rth@redhat.com>
299
300 PR middle-end/17930
301 * passes.c (rest_of_clean_state): Fix computation of
302 preferred_incoming_stack_boundary.
303
304 2004-12-13 Wolfgang Bangerth <bangerth@dealii.org>
305
306 * reload.h: Remove struct needs and its only use.
307
308 2004-12-13 Roger Sayle <roger@eyesopen.com>
309
310 PR rtl-optimization/18928
311 * simplify_rtx.c (plus_minus_operand_p): New function to encode
312 the test for suitable operands for calls to simplify_plus_minus.
313 Only allow (CONST (PLUS x y)) if both x and y are CONSTANT_P.
314 (simplify_binary_operation): Use plus_minus_operand_p.
315
316 2004-12-13 Alexandre Oliva <aoliva@redhat.com>
317
318 PR tree-opt/16951
319 * tree-inline.c (setup_one_parameter): Don't directly map a
320 parameter to the address of another variable of the same
321 function.
322
323 2004-13-12 Steven Bosscher <stevenb@suse.de>
324
325 * basic-block.h (PROP_POSTRELOAD): Do not include PROP_AUTOINC, we
326 can never create autoinc insns after reload.
327
328 2004-12-13 Jeff Law <law@redhat.com>
329 Kazu Hirata <kazu@cs.umass.edu>
330
331 * tree-ssa-dom.c (thread_across_edge): Do not thread jumps if a
332 PHI argument is set from a PHI_RESULT in the same block and the
333 PHI argument is not the same as the PHI result.
334
335 2004-12-13 David Edelsohn <edelsohn@gnu.org>
336
337 * xcoffout.c (xcoffout_declare_function): Always strip storage
338 class encoding.
339
340 2004-12-13 Andrew Pinski <pinskia@physics.uc.edu>
341
342 PR target/18964
343 * config/darwin.c (darwin_assemble_visibility): Fix minor diagnostic
344 problem, adding a space at the end of the string before concatenation.
345
346 2004-12-13 Kazu Hirata <kazu@cs.umass.edu>
347
348 * c-common.c (fname_as_string): Free namep if we are returning
349 cstr.text.
350
351 * tree-ssa-dom.c (record_edge_info): Fix memory leak.
352
353 2004-12-13 Andrew Pinski <pinskia@physics.uc.edu>
354
355 * tree-cfg.c (remove_useless_stmts_cond): Call fold on COND_EXPR_COND.
356
357 2004-12-13 Kazu Hirata <kazu@cs.umass.edu>
358
359 * tree-ssa-dom.c (record_equivalences_from_phis): Speed up by
360 doing a pointer comparison.
361
362 * tree-ssa-dom.c (record_equivalences_from_phis): Add a
363 comment.
364
365 * defaults.h, stmt.c, tree-cfg.c, tree-ssa-dce.c: Fix comment
366 typos.
367
368 2004-12-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
369
370 * config/m32r/t-linux (SHLIB_MAPFILES): Add libgcc-glibc.ver to
371 the list rather than replacing the existing value.
372
373 2004-12-13 Richard Henderson <rth@redhat.com>
374
375 * cfg.c (dump_flow_info): Don't dump pseudo info after reload.
376
377 2004-12-13 Richard Henderson <rth@redhat.com>
378
379 * Makefile.in (insn-preds.o): Depend on REGS_H.
380 * genpreds.c (write_insn_preds_c): Include regs.h.
381 * config/i386/predicates.md (index_register_operand): Use
382 REG_OK_FOR_INDEX_STRICT_P and REG_OK_FOR_INDEX_NONSTRICT_P.
383
384 * config/i386/i386.h (REG_CLASS_FROM_LETTER): Add 'l'.
385 * config/i386/i386.md (lea_general_1, lea_general_1_zext,
386 lea_general_2, lea_general_2_zext, lea_general_3, lea_general_3_zext,
387 adddi_1_rex64, addsi_1, addsi_1_zext, addhi_1_lea, addqi_1_lea,
388 ashldi3_1_rex64, ashlsi3_1, ashlsi3_1_zext, ashlhi3_1_lea,
389 ashlqi3_1_lea): Use 'l' for index register operand.
390 (ashldi3_1_rex64 splitter): Use index_register_operand.
391 (ashlsi3_1 splitter): Be more careful with modes.
392
393 2004-12-13 Danny Smith <dannysmith@users.sourceforge.net>
394
395 PR target/18459
396 * defaults.h (TARGET_USE_JCR_SECTION): New macro.
397 * doc/tm.texi (TARGET_USE_JCR_SECTION): Document it.
398 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Override
399 default.
400
401 2004-12-13 Uros Bizjak <uros@kss-loka.si>
402
403 PR target/14941
404 PR target/18503
405 * config/i386/i386.md (sse_movss, sse2_movsd, sse2_movhpd):
406 Fix wrong vec_merge selector bitmask.
407
408 2004-12-12 Richard Henderson <rth@redhat.com>
409
410 PR rtl-opt/17186
411 * reg-stack.c (move_nan_for_stack_reg): New.
412 (subst_stack_regs_pat): Use it.
413 (move_for_stack_reg): Handle source register not live with a nan.
414
415 2004-12-12 Richard Henderson <rth@redhat.com>
416
417 * config/i386/i386.c (ix86_gimplify_va_arg): Fix type mismatch
418 errors across operations.
419
420 2004-12-12 Di-an Jan <dianj@freeshell.org>
421
422 * doc/passes.texi (Pass Manager): Correct list of source files.
423
424 2004-12-12 Richard Henderson <rth@redhat.com>
425
426 * expr.c (emit_move_change_mode): New.
427 (emit_move_via_alt_mode): Use it.
428
429 2004-12-12 Nathanael Nerode <neroden@gcc.gnu.org>
430 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
431
432 PR middle-end/17564
433 * dojump.c (do_compare_and_jump): Only canonicalize function pointers
434 in a comparison if both sides are function pointers.
435
436 2004-12-12 Richard Henderson <rth@redhat.com>
437
438 PR target/18932
439 * config/i386/i386.md (all splits and peepholes): Use flags_reg_operand
440 and compare_operator to propagate the input CC mode to the output.
441 * config/i386/predicates.md (compare_operator): New.
442
443 2004-12-12 Andrew Pinski <pinskia@physics.uc.edu>
444
445 PR tree-opt/18040
446 * expr.c (get_inner_reference): Remove NON_LVALUE_EXPR, NOP_EXPR,
447 CONVERT_EXPR cases.
448 (handled_component_p): Likewise.
449
450 2004-12-12 Kazu Hirata <kazu@cs.umass.edu>
451
452 * reg-stack.c (convert_regs_2): Free stack.
453
454 * tree-ssa-dom.c (thread_across_edge, dom_opt_finalize_block): Fix
455 comment typos.
456
457 2004-12-12 Daniel Berlin <dberlin@dberlin.org>
458
459 * tree-ssa-loop-ch.c (copy_loop_headers): Loop can be null.
460 * tree-ssa-loop-im.c (determine_lsm): tree_root may not have a real
461 inner loop.
462
463 2004-12-12 Diego Novillo <dnovillo@redhat.com>
464
465 * tree-gimple.c (get_base_address): Update documentation.
466
467 2004-12-12 Kazu Hirata <kazu@cs.umass.edu>
468
469 * lcm.c (optimize_mode_switching): Free ptr even when mode_set
470 is NULL_RTX.
471
472 2004-12-12 Roger Sayle <roger@eyesopen.com>
473
474 * reg-stack.c (change_stack): Avoid placing the new top-of-stack in
475 its correct location during popping if we need to permute the stack
476 afterwards. Attempt to preserve the original stack ordering.
477
478 2004-12-12 Kazu Hirata <kazu@cs.umass.edu>
479
480 * lcm.c (optimize_mode_switching): Free insert and delete in
481 the "for" loop.
482
483 2004-12-11 David Edelsohn <edelsohn@gnu.org>
484 Ulrich Weigand <uweigand@de.ibm.com>
485
486 PR target/18641
487 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Reload all
488 constants into all register classes intersecting with FLOAT_REGS
489 via memory.
490 * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): Same.
491 * config/rs6000/rs6000.md (movdi_internal32): Ignore FPRs when
492 choosing register preferences.
493 (movdi_internal64): Same.
494
495 2004-12-11 Kazu Hirata <kazu@cs.umass.edu>
496
497 * tree-into-ssa.c (rewrite_ssa_into_ssa): Free SSA_NAME_AUX
498 before we release an SSA_NAME.
499
500 2004-12-11 Roger Sayle <roger@eyesopen.com>
501
502 PR middle-end/18921
503 * fold-const.c (fold_unwidened_comparison): Use omit_one_operand
504 instead of constant_boolean_node as arg0 may have side-effects.
505
506 2004-12-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
507
508 * pa-host.c (pa_gt_pch_use_address): Use lseek and read to copy PCH
509 file to anonymous private map.
510
511 2004-12-10 Roger Sayle <roger@eyesopen.com>
512
513 PR target/18002
514 PR middle-end/18424
515 * dojump.c (do_jump): When attempting to reverse the effects of
516 fold_single_bit_test, we need to STRIP_NOPS and narrowing type
517 conversions, and handle BIT_XOR_EXPR that's used to invert the
518 sense of the single bit test.
519
520 2004-12-10 Devang Patel <dpatel@apple.com>
521
522 PR 18732
523 * gcc.c (main): Do not break out of loop when error is reported while
524 processing one source file.
525
526 2004-12-10 Diego Novillo <dnovillo@redhat.com>
527
528 * tree-into-ssa.c (REWRITE_THIS_STMT): Define.
529 (mark_def_sites): Clear REWRITE_THIS_STMT for statements that
530 don't need any operands rewritten.
531 (rewrite_stmt): Ignore statements that don't need to be
532 rewritten.
533 (rewrite_operand): Validate that an existing SSA_NAME is
534 identical to the current reaching definition of the operand.
535
536 2004-12-10 Diego Novillo <dnovillo@redhat.com>
537
538 * tree-dfa.c (mark_call_clobbered_vars_to_rename): New function.
539 * tree-vectorizer.c (vectorizable_load): Call it.
540 * tree-flow.h (mark_call_clobbered_vars_to_rename): Declare.
541 * tree-sra.c (mark_all_v_defs): Also mark VUSEs for renaming.
542
543 2004-12-10 Kazu Hirata <kazu@cs.umass.edu>
544
545 * regmove.c (combine_stack_adjustments_for_block): Free
546 memlist if it hasn't been freed.
547
548 2004-12-10 Ziemowit Laski <zlaski@apple.com>
549
550 * c-typeck.c (lookup_field): Check if a TYPE_LANG_SPECIFIC
551 pointer field is set before dereferencing it.
552
553 2004-12-10 Andrew Pinski <pinskia@physics.uc.edu>
554
555 PR middle-end/18903
556 * tree-cfg.c (remove_bb): Put the moved label at the beginning
557 of the basic block.
558
559 2004-12-10 Kazu Hirata <kazu@cs.umass.edu>
560
561 * tree-data-ref.c (free_data_refs): Free each data_reference
562 object.
563
564 * tree-ssa-dom.c (thread_across_edge): Speed up by avoiding a
565 call to is_gimple_min_invariant if we know the result.
566
567 2004-12-10 Jeff Law <law@redhat.com>
568
569 * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
570 redundant test of v_ann->mem_tag_kind.
571
572 * tree-ssa-operands.c (get_indirect_ref_operands): Remove
573 redundant conditional clearing opf_kill_def.
574
575 2004-12-10 Richard Sandiford <rsandifo@redhat.com>
576
577 * config/frv/frv-modes.def: Fix comment typos.
578 (CC_NZ): Define new mode.
579 * config/frv/frv-protos.h (frv_select_cc_mode): Declare.
580 (condexec_intop_cmp_operator): Delete.
581 * config/frv/frv.c (comparison_string): New function.
582 (frv_print_operand): Use it to handle 'c' and 'C'.
583 (relational_operator): Redefine in terms of integer_relational_operator
584 and float_relational_operator.
585 (signed_relational_operator, unsigned_relational_operator): Delete.
586 (integer_relational_operator): New predicate, combining the above.
587 Check the mode of the first operand but leave frv.md to check the rest.
588 (float_relational_operator): Just check the mode of the first operand
589 and leave frv.md to check the rest.
590 (intop_compare_operator): Assume the result is compared with zero
591 in mode CC_NZmode. Allow PLUS and MINUS. Leave frv.md to check
592 the operand predicates.
593 (condexec_intop_cmp_operator): Delete.
594 (frv_ifcvt_modify_tests, frv_ifcvt_modify_multiple_tests)
595 (frv_hard_regno_mode_ok): Handle CC_NZmode.
596 (frv_select_cc_mode): New function.
597 * config/frv/frv.h (SELECT_CC_MODE): Use frv_select_cc_mode.
598 (REVERSIBLE_CC_MODE): Include CC_NZmode.
599 (PREDICATE_CODES): Replace entries for signed_relational_operand and
600 unsigned_relational_operator with one for integer_relational_operator.
601 Delete entry for condexec_intop_cmp_operator.
602 * config/frv/frv.md (movcc_nz, *internal_movcc_nz, reload_incc_nz)
603 (reload_outcc_nz, *cmpsi_cc_nz, *cond_exec_cmpsi_cc_nz): New patterns.
604 (*combo_intop_compare2, *combo_intop_compare4): Delete.
605 (*combo_intop_compare1): Change mode to CC_NZ.
606 (*combo_intop_compare2): Likewise. Renamed from *combo_intop_compare3.
607 (branch_{un,}signed_true, branch_{un,}signed_false)
608 (*scc_{un,}signed, *scc_neg1_{un,}signed, *ck_{un,}signed)
609 (*movqicc_internal1_{un,}signed, *movqicc_internal2_{un,}signed)
610 (*movhicc_internal1_{un,}signed, *movhicc_internal2_{un,}signed)
611 (*movsicc_internal1_{un,}signed, *movsicc_internal2_{un,}signed)
612 (*movsfcc_has_fprs_{un,}signed, *movsfcc_no_fprs_{un,}signed)
613 (*return_{unsigned_,}true, *return_{unsigned_,}false): Merge these
614 pattern pairs. Use integer_relational_operator. Remove mode from
615 icc_operand.
616
617 2004-12-10 Mark Dettinger <dettinge@de.ibm.com>
618
619 * config/s390/s390.c (struct processor_costs): New fields ml,
620 sqdbr, sqebr.
621 (s390_rtx_costs): Added the missing handling of multiply & add,
622 square root, and umulsidi.
623
624 2004-12-10 Kazu Hirata <kazu@cs.umass.edu>
625
626 * expmed.c (synth_mult): Initialize new_limit.latency before
627 making a recursive call.
628
629 2004-12-10 Nick Clifton <nickc@redhat.com>
630
631 * config/mn10300/mn10300.c (legitimate_address_p): Reject address
632 whose index is itself the sum of two other parts.
633
634 2004-12-10 Alan Modra <amodra@bigpond.net.au>
635
636 * config/t-slibgcc-sld (SHLIB_LINK): Correct symlink.
637
638 2004-12-10 Uros Bizjak <uros@kss-loka.si>
639
640 * config/i386/i386.md (*cmpfp_sf): Change type attribute to "multi".
641
642 2004-12-09 Richard Henderson <rth@redhat.com>
643
644 PR c/18282
645 * attribs.c (decl_attributes): Use relayout_decl.
646 * c-common.c (handle_mode_attribute): Copy all relevant type
647 parameters from the new underlying integral type.
648
649 2004-12-09 Richard Henderson <rth@redhat.com>
650
651 * c-common.c (shorten_compare): Don't special-case min/maxval
652 for C enumerations.
653
654 2004-12-09 Richard Sandiford <rsandifo@redhat.com>
655
656 * simplify-rtx.c (simplify_subreg): In the CONCAT case, check whether
657 the request subreg is entirely contained in the requested component.
658 (simplify_gen_subreg): Return null for CONCATs that are rejected
659 by simplify_subreg.
660 * expmed.c (store_bit_field): Create a temporary when changing the
661 value to an integer mode.
662
663 2004-12-09 David Edelsohn <edelsohn@gnu.org>
664
665 * real.c (ibm_extended): Correct comment.
666
667 2004-12-09 Stan Shebs <shebs@apple.com>
668
669 * config/rs6000/darwin-asm.h: New file, 32/64-bit assembly macros
670 formerly in darwin-tramp.asm.
671 * config/rs6000/darwin-tramp.asm: Include darwin-asm.h.
672 * config/rs6000/darwin-fpsave.asm: Use 32/64-bit macros.
673 * config/rs6000/t-darwin: Add dependencies.
674
675 2004-12-09 Richard Henderson <rth@redhat.com>
676
677 PR target/17025
678 * config/i386/i386.md (testqi_1_maybe_si, andqi_2_maybe_si): New.
679 (test_qi_1, andqi_2): Do not promote to simode.
680
681 2004-12-09 Andrew Pinski <pinskia@physics.uc.edu>
682
683 PR tree-opt/18904
684 * tree-chrec.c (chrec_convert): Use fold_convert
685 instead of convert.
686
687 2004-12-09 Matt Rice <ratmice@yahoo.com>
688
689 PR preprocessor/18102
690 * c-incpath.c (remove_duplicates): Check for construct
691 equality.
692
693 2004-12-09 Dorit Naishlos <dorit@il.ibm.com>
694
695 * genopinit.c (vec_realign_store_optab): Initialization removed.
696 * optabs.c (optab_for_tree_code): REALIGN_STORE_EXPR case removed.
697 * optabs.h (optab_index): OTI_vec_realign_store Removed.
698 (vec_realign_store_optab): Removed.
699 * target-def.h (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Removed.
700 * target.h (builtin_mask_for_store): Removed.
701 * tree.def (REALIGN_STORE_EXPR): Removed.
702 * config/rs6000/rs6000.c (rs6000_builtin_mask_for_store): Removed.
703 (altivec_builtin_mask_for_store): Removed.
704 (altivec_init_builtins): Removed initialization of
705 altivec_builtin_mask_for_store.
706
707 * doc/tm.texi (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
708 (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): New.
709
710 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
711
712 * doc/c-tree.texi (CONSTRUCTOR): Mention RANGE_EXPRs.
713
714 * tree.def (SET_TYPE): Remove.
715 (CONSTRUCTOR): Update description.
716 * builtins.c (type_to_class) Remove SET_TYPE case.
717 * dbxout.c (dbxout_type): Likewise.
718 * dwarf2out.c (is_base_type): Likewise.
719 (gen_set_type_die): Remove.
720 (gen_type_die): Remove SET_TYPE case.
721 * expr.c (count_type_elements): Likewise.
722 (mostly_zeroes_p): Likewise.
723 (store_constructor): Likewise.
724 * print_tree.c (print_node): Likewise.
725 * stor-layout.c (layout_type): Likewise.
726 * tree-browser.c (browse_tree): Likewise.
727 * tree-inline.c (remap_type): Likewise.
728 * tree-pretty-print.c (dump_generic_node): Likewise.
729 * tree.c (type_contains_plaeholder_1, type_hash_eq,
730 variably_modified_type_p, initializer_zerop): Likewise.
731 * tree.h (SET_OR_ARRAY_CHECK): Remove.
732 (AGGREGATE_TYPE_P): Remove SET_TYPE check.
733 (TYPE_DOMAIN): Use ARRAY_TYPE_CHECK.
734 * typeclass.h (enum type_class): Remove set_type_class.
735 * varasm.c (const_hash_1): Remove SET_TYPE case.
736 (compare_constant, copy_constant, output_constant): Likewise.
737 * config/i386/i386.c (classify_argument): Likewise.
738 * config/ia64/ia64.c (hfa_element_mode): Likewise.
739 * config/sparc/sparc.c (sparc_type_code): Likewise.
740
741 PR c++/16681
742 * tree-inline.c (estimate_num_insns_1): Add RANGE_EXPR case.
743
744 2004-12-08 Richard Henderson <rth@redhat.com>
745
746 * config/i386/i386.md: Use FLAGS_REG everywhere.
747
748 2004-12-08 Eric Christopher <echristo@redhat.com>
749
750 * config/mips/mips.c (mips_scalar_mode_supported_p): Rewrite
751 to avoid call to default function.
752
753 2004-12-08 Zack Weinberg <zack@codesourcery.com>
754
755 PR 17982
756 * varasm.c (pending_assemble_externals): New static.
757 (assemble_external_real): Meat of assemble_external split out
758 to this new function.
759 (process_pending_assemble_externals): New function.
760 (assemble_external): Use gcc_assert. If flag_unit_at_a_time
761 is true and the basic test passes, merely cons the decl onto
762 the pending list to be handled later.
763 * tree.h: Declare process_pending_assemble_externals.
764 * cgraphunit.c (cgraph_optimize): Call it.
765
766 * config/h8300/h8300.h: Do not define ASM_OUTPUT_EXTERNAL.
767
768 2004-12-08 Kazu Hirata <kazu@cs.umass.edu>
769
770 * cfgloopmanip.c (create_preheader): Speed up by "unrolling"
771 and simplifying FOR_EACH_EDGE.
772
773 2004-12-08 Richard Sandiford <rsandifo@redhat.com>
774
775 * config/frv/frv.c (frv_sort_insn_group): Always initialize
776 packet_group->nop.
777
778 2004-12-08 Nathan Sidwell <nathan@codesourcery.com>
779
780 PR c++/18672
781 * gimplify.c (canonicalize_addr_expr): Cope with array of
782 incomplete type.
783 (gimplify_conversion): Remove redundant checks.
784
785 * doc/trouble.texi (Non-bugs): Clarify empty loop removal.
786
787 2004-12-08 Uros Bizjak <uros@kss-loka.si>
788
789 * config/i386/i386.c (output_387_binary_op,
790 ix86_prepare_fp_compare_args): Fix is_sse condition.
791
792 2004-12-07 Uros Bizjak <uros@kss-loka.si>
793
794 * config/i386/i386-protos.h (ix86_split_fp_branch): New rtx
795 argument.
796
797 * config/i386/i386.c (output_fp_compare): Fix is_sse condition.
798 Use EFLAGS_P only when fcomi insn should be used. Fix handling
799 of eflags_p variable. Change alt table accordingly. For non-fcomi
800 compare insn always use trailing fnstsw insn. Fix intmode
801 calculation for ficom insn.
802 (ix86_split_fp_branch): Add "rtx pushed" as new parameter. Call
803 ix86_free_from_memory when "pushed" is specified.
804 (ix86_expand_branch): Change call to ix86_split_fp_branch.
805
806 * config/i386/i386.md (*cmpfp_0_sf, *cmpfp_0_df, *cmpfp_0_xf):
807 Change eflags_p parameter in call to output_fp_compare.
808 (*cmpfp_2_sf, *cmpfp_2_df, *cmpfp_2_xf): Remove.
809 (*cmpfp_2_sf_1, *cmpfp_2_df_1, *cmpfp_2_xf_1): Rename to
810 *cmpfp_2_sf, *cmpfp_2_df, *cmpfp_2_xf. Change eflags_p
811 parameter in call to output_fp_compare.
812 (*cmpfp_2_u): Remove.
813 (*cmpfp_2_u_1): Rename to *cmpfp_2_u. Change eflags_p parameter
814 in call to output_fp_compare.
815 (*ficom_1): Remove insn definition and corresponding define_split.
816 (*cmpfp_si): New insn definition.
817 (*fp_jcc_8): New insn definition. Add new splitters for
818 "memory_operand" and "register_operand".
819 (define_split): Add new parameter in call to ix86_split_fp_branch.
820
821 config/i386/predicates.md (float_operator): New predicate.
822
823 2004-12-08 Kazu Hirata <kazu@cs.umass.edu>
824
825 * c-common.c (verify_tree): Don't check code length if we know
826 we are handling tcc_unary.
827 * print_tree.c (print_node): Remove code to handle RTL
828 appearing as a part of a tree node.
829 * tree-gimple.c (recalculate_side_effects): Rename fro as len.
830 * tree.c (build1_stat): Don't check TREE_CODE_LENGTH.
831 (PROCESS_ARG): Don't refer to fro.
832 (build2_stat, build3_stat, build4_stat): Don't compute fro.
833
834 2004-12-07 Roger Sayle <roger@eyesopen.com>
835
836 PR middle-end/18293
837 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Move definition earlier.
838 (expand_mult): Special case powers of two to avoid synth_mult.
839 * loop.c (product_cheap_p): Handle case where expand_mult does
840 require/generate any instructions (i.e. multiplication by zero).
841
842 2004-12-07 Richard Henderson <rth@redhat.com>
843
844 * tree-pretty-print.c (dump_array_domain): Split out from
845 dump_generic_node; fix off-by-one error on zero-based array bounds.
846 (dump_generic_node): Use it.
847 (print_declaration): Likewise.
848
849 2004-12-08 Richard Guenther <richard.guenther@uni-tuebingen.de>
850
851 * doc/invoke.texi: Adjust default values for
852 large-function-growth and inline-unit-growth to match
853 params.def. Clarify used algorithm.
854
855 2004-12-07 David Mosberger <davidm@hpl.hp.com>
856
857 PR target/18443
858 * config/ia64/ia64.c (ia64_assemble_integer): Add support for
859 emitting unaligned pointer-sized integers.
860
861 2004-12-07 Steven Bosscher <stevenb@suse.de>
862
863 PR c/18867
864 * c-typeck.c (c_start_case): Set orig_type to error_mark_node
865 when the type of the controlling expression is not a valid type.
866
867 2004-12-07 Steven Bosscher <stevenb@suse.de>
868
869 PR tree-optimization/17340
870 * tree-ssa-pre.c (compute_antic): Fix comment.
871 (compute_avail): Do not recurse, instead do a DFS using a stack
872 and a loop.
873 (execute_pre): Adjust.
874
875 2004-12-07 Ziemowit Laski <zlaski@apple.com>
876
877 * c-tree.h (struct lang_type): Rename 'objc_protocols' field
878 to 'objc_info'.
879
880 2004-12-07 Eric Christopher <echristo@redhat.com>
881
882 PR target/16317
883 * config/netbsd.h (NO_IMPLICIT_EXTERN_C): Define.
884
885 2004-12-07 Eric Christopher <echristo@redhat.com>
886
887 * config/mips/mips-protos.h (mips_valid_pointer_mode): Move
888 prototype...
889 * config/mips/mips.c: ... here. Make static.
890
891 2004-12-07 Eric Christopher <echristo@redhat.com>
892
893 PR target/18442
894 * config/mips/mips.c (mips_vector_mode_supported_p): New function.
895 (TARGET_SCALAR_MODE_SUPPORTED_P): Define to above.
896
897 2004-12-07 Kazu Hirata <kazu@cs.umass.edu>
898
899 * c-common.c, expr.c, fold-const.c, print-tree.c,
900 tree-gimple.c, tree-inline.c, tree-pretty-print.c,
901 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c: Replace uses of
902 first_rtl_op with TREE_CODE_LENGTH.
903 * tree.c (first_rtl_op): Remove.
904 Replace uses of first_rtl_op with TREE_CODE_LENGTH.
905 * tree.h: Remove the prototype for first_rtl_op.
906
907 2004-12-07 David Edelsohn <edelsohn@gnu.org>
908
909 * config/rs6000/t-aix43, config/rs6000/t-aix52 (SHLIB_LINK):
910 Revert 2004-12-01 change.
911
912 2004-12-06 Ziemowit Laski <zlaski@apple.com>
913
914 * c-tree.h (struct lang_type): Add 'objc_protocols' field.
915
916 2004-12-06 DJ Delorie <dj@redhat.com>
917
918 * reload.c (find_valid_class): Fix logic to test inner mode as well.
919 (push_reload): Pass inner mode.
920
921 2004-12-06 Eric Christopher <echristo@redhat.com>
922
923 * doc/tm.texi (TARGET_VALID_POINTER_MODE): Document.
924
925 2004-12-06 Aldy Hernandez <aldyh@redhat.com>
926
927 * config/rs6000/sysv4.h: Define RELOCATABLE_NEEDS_FIXUP to 1.
928
929 2004-12-06 Zdenek Dvorak <dvorakz@suse.cz>
930 Kazu Hirata <kazu@cs.umass.edu>
931
932 PR tree-optimization/18601
933 * tree-cfg.c (thread_jumps, thread_jumps_from_bb): Removed.
934 (tree_forwarder_block_p): Do not consider blocks that are its own
935 successors forwarders.
936 (cleanup_forwarder_blocks, remove_forwarder_block): New functions.
937 (cleanup_tree_cfg): Use cleanup_forwarder_blocks instead of
938 thread_jumps.
939 * tree-flow.h (bb_ann_d): Remove forwardable.
940
941 2004-12-06 Kazu Hirata <kazu@cs.umass.edu>
942
943 * expr.c (expand_expr_real_1): Remove an "if" whose condition
944 is always false.
945
946 2004-12-06 Roger Sayle <roger@eyesopen.com>
947
948 * c-gimplify.c (gimplify_c_loop): Improve initial implementations
949 for loops whose conditions are known at compile-time.
950 * gimplify.c (append_to_statement_list_1): Remove side_effects
951 parameter, this function should never be called if its false.
952 (append_to_statement_list): Only call append_to_statement_list_1
953 if t is non-NULL tree with side-effects.
954 (append_to_statement_list_force): Likewise, if t is not NULL.
955
956 2004-12-06 J"orn Rennecke <joern.rennecke@st.com>
957
958 * bt-load.c (btr_def_s): New member own_end;
959 (add_btr_to_live_range): Add second parameter. Changed caller.
960 (clear_btr_from_live_range): Clear btrs_live_at_end bit
961 for the register its definition basic block if own_end is set.
962 (augment_live_range): Also take btrs_live_at_end into account.
963 (combine_btr_defs): Don't bother with
964 other_def->other_btr_uses_after_use if it pertains to a different
965 register.
966 (move_btr_def): Set def->other_btr_uses_before_def after
967 calling combine_btr_defs."
968
969 * bt-load.c (augment_live_range): New argument full_range.
970 Changed all callers.
971
972 * bt-load.c (move_tr_def): Set other_tr_uses_before_def
973 taking new btr assignment into account.
974
975 2004-12-05 Daniel Berlin <dberlin@dberlin.org>
976
977 * tree-ssa-alias.c (create_global_var): Use void_type_node,
978 not size_type_node.
979
980 2004-12-05 Kazu Hirata <kazu@cs.umass.edu>
981
982 * expr.c (expand_expr_real_1): Abort on COND_EXPR of
983 VOID_TYPE.
984
985 2004-12-05 Richard Henderson <rth@redhat.com>
986
987 PR target/18841
988 * config/alpha/alpha.md (UNSPECV_SETJMPR_ER): New.
989 (builtin_setjmp_receiver_er_sl_1): Use it.
990 (builtin_setjmp_receiver_er_1): Likewise.
991 (builtin_setjmp_receiver_er, exception_receiver_er): Remove.
992 (builtin_setjmp_receiver): Don't split for explicit relocs until
993 after reload.
994 (exception_receiver): Likewise.
995
996 2004-12-05 Andrew Pinski <pinskia@physics.uc.edu>
997
998 * mklibgcc.in (vis_hide): Add the prototype for the test.
999
1000 2004-12-05 Roger Sayle <roger@eyesopen.com>
1001
1002 * c-typeck.c (c_finish_loop): Improve initial implementations
1003 for loops whose conditions are known at compile-time.
1004
1005 2004-12-05 Kazu Hirata <kazu@cs.umass.edu>
1006
1007 * builtins.c: Fix comment typos.
1008
1009 2004-12-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1010
1011 PR middle-end/18730
1012 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): When
1013 the first/last insn is a sequence, return the first/last insn of the
1014 sequence.
1015
1016 PR bootstrap/18804
1017 * mklibgcc.in (vis_hide): Use implementation instead of declaration
1018 for test function.
1019
1020 2004-12-04 Richard Henderson <rth@redhat.com>
1021
1022 * config/alpha/alpha.c (alpha_expand_unaligned_load): Don't forget to
1023 use ofs in BWX two byte special case.
1024 (alpha_expand_unaligned_store): Likewise.
1025
1026 2004-12-04 Kazu Hirata <kazu@cs.umass.edu>
1027
1028 * gcse.c (gcse_main): Add a comment.
1029
1030 2004-12-04 Andrew Pinski <pinskia@physics.uc.edu>
1031
1032 PR middle-end/17909
1033 * builtins.c (fold_builtin_next_arg): Export and return true
1034 when there is a warning or an error.
1035 (expand_builtin_va_start): When fold_builtin_next_arg returns true,
1036 return const0_rtx.
1037 (expand_builtin): Likewise.
1038 * gimplify.c (gimplify_call_expr): Error out if there is not
1039 enough arguments to va_start. Call fold_builtin_next_arg also
1040 on the second argument.
1041 * tree.h (fold_builtin_next_arg): Prototype.
1042
1043 2004-12-04 Alan Modra <amodra@bigpond.net.au>
1044
1045 * mklibgcc.in: Build shared libgcc and shared libunwind in gcc/.
1046 Don't subst shlib_dir for SHLIB_LINK, SHLIBUNWIND_LINK,
1047 SHLIB_INSTALL, and SHLIBUNWIND_INSTALL.
1048 * config/i386/t-nwld (SHLIB_NAME): Use shlib_base_name in place of
1049 shlib_dir and shlib_so_name.
1050 * config/mips/t-slibgcc-irix (SHLIB_NAME): Likewise.
1051 * config/t-libunwind-elf (SHLIB_NAME): Likewise.
1052 * config/t-slibgcc-darwin (SHLIB_NAME): Likewise.
1053 * config/t-slibgcc-elf-ver (SHLIB_NAME): Likewise.
1054 * config/t-slibgcc-sld (SHLIB_NAME): Likewise.
1055 (SHLIB_LINK): Don't use shlib_dir when creating symlink.
1056
1057 2004-12-03 Roger Sayle <roger@eyesopen.com>
1058
1059 * doc/tm.texi (TARGET_DELEGITIMIZE_ADDRESS): Document target hook.
1060
1061 2004-12-03 Richard Henderson <rth@redhat.com>
1062
1063 * alias.c (component_uses_parent_alias_set): Rename from
1064 can_address_p. Return bool. Reverse the sense of the result.
1065 Reinstate the check for alias set zero.
1066 (get_alias_set): Update to match.
1067 * alias.h (component_uses_parent_alias_set): Likewise.
1068 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
1069 * expr.c (expand_assignment): Likewise.
1070 * expr.h: Remove commented out prototypes that were moved to alias.h.
1071
1072 2004-12-03 Richard Henderson <rth@redhat.com>
1073
1074 * doc/tm.texi (TARGET_BUILD_BUILTIN_VA_LIST): New.
1075 (TARGET_CANNOT_FORCE_CONST_MEM): New.
1076
1077 2004-12-04 Alan Modra <amodra@bigpond.net.au>
1078
1079 PR middle end/18718
1080 * sched-rgn.c (schedule_region): Don't assume REG_SAVE_NOTEs are
1081 in pairs.
1082 * sched-ebb.c (schedule_ebb): Likewise.
1083
1084 2004-12-03 Andreas Schwab <schwab@suse.de>
1085
1086 * Makefile.in (HOSTHOOKS_DEF_H): Define.
1087 (ggc-common.o): Depend on $(HOSTHOOKS_DEF_H).
1088 (host-default.o): Likewise.
1089
1090 2004-12-03 Eric Christopher <echristo@redhat.com>
1091
1092 * config/stormy16/stormy16.md (pushqi, popqi, pushhi,
1093 pophi): Add number of arguments to name so that the
1094 pattern is recognized as a named pattern.
1095
1096 2004-12-03 Janis Johnson <janis187@us.ibm.com>
1097
1098 * doc/extend.texi (AltiVec Builtins): Fix info about signedness.
1099
1100 2004-12-03 Andreas Tobler <a.tobler@schweiz.ch>
1101
1102 * config/rs6000/rs6000.c (rs6000_override_options): Protect
1103 darwin_one_byte_bool with #if.
1104
1105 2004-12-03 Paolo Bonzini <bonzini@gnu.org>
1106
1107 * doc/tm.texi (Misc): Document TARGET_FOLD_BUILTIN.
1108
1109 2004-12-03 H.J. Lu <hongjiu.lu@intel.com>
1110
1111 * mklibgcc.in: Put back the default set of EXTRA_MULTILIB_PART.
1112
1113 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
1114
1115 * configure.ac: Move TL_AC_GCC_VERSION into initialization section.
1116 Set libstdcxx_incdir directly.
1117 * configure: Regenerate.
1118
1119 2004-12-03 Kazu Hirata <kazu@cs.umass.edu>
1120
1121 * tree-ssa-dom.c (record_equivalences_from_phis): Remove an
1122 "if" whose condition is always true.
1123
1124 * cfgrtl.c (rtl_verify_flow_info_1): Use JUMP_P instead of
1125 INSN_P.
1126
1127 2004-12-02 Stan Shebs <shebs@apple.com>
1128
1129 * config/rs6000/rs6000.c (rs6000_override_options): Make 64-bit
1130 Darwin default to one-byte bools.
1131
1132 2004-12-02 Richard Henderson <rth@redhat.com>
1133
1134 PR 18774
1135 * simplify-rtx.c (simplify_immed_subreg): Fail complex modes.
1136
1137 2004-12-03 Ben Elliston <bje@au.ibm.com>
1138
1139 * doc/cfg.texi (Edges): Update. Document the edge_iterator data
1140 type and its methods.
1141
1142 2004-12-02 Richard Henderson <rth@redhat.com>
1143
1144 * expr.c (write_complex_part): Use simplify_gen_subreg when the
1145 submode is at least as large as a word.
1146 (read_complex_part): Likewise.
1147
1148 2004-12-02 H.J. Lu <hongjiu.lu@intel.com>
1149
1150 PR bootstrap/18532
1151 * mklibgcc.in: Build one set of EXTRA_MULTILIB_PARTS for
1152 multilib at a time. Don't build the default set. Don't add
1153 EXTRA_MULTILIB_PARTS to shared libunwind nor libgcc. Remove
1154 filter for shared libunwind and libgcc.
1155
1156 2004-12-02 Roger Sayle <roger@eyesopen.com>
1157
1158 PR target/18759
1159 * config/i386/i386.c (override_options): If -fomit-frame-pointer has
1160 already been specified, ignore the -momit-leaf-frame-pointer option.
1161
1162 2004-12-02 H.J. Lu <hongjiu.lu@intel.com>
1163
1164 * varasm.c (make_decl_rtl): Add the missing `;'.
1165
1166 2004-12-02 Andrew Pinski <pinskia@physics.uc.edu>
1167
1168 * tree.c (is_attribute_p): Split out to ..
1169 (is_attribute_with_length_p): Here. Use IDENTIFIER_LENGTH instead
1170 of strlen and compare the string lengths before calling strcmp.
1171 (lookup_attribute): Call is_attribute_with_length_p instead of
1172 is_attribute_p.
1173
1174 2004-12-02 Devang Patel <dpatel@apple.com>
1175
1176 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -gfull and -gused.
1177 * config/rs6000/darwin.h (CC1_SPEC): Do not handle -gfull and -gused.
1178 * config/i386/darwin.h (CC1_SPEC): Same.
1179
1180 2004-12-02 Richard Henderson <rth@redhat.com>
1181
1182 * optabs.c (lowpart_subreg_maybe_copy): New.
1183 (expand_unop, expand_abs_nojump): Use it.
1184
1185 2004-12-02 J"orn Rennecke <joern.rennecke@st.com>
1186
1187 * sh.md (extv, extzv): Add pattern predicate.
1188
1189 2004-12-02 Kazu Hirata <kazu@cs.umass.edu>
1190
1191 * tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF
1192 is not null.
1193
1194 * tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF
1195 is not null.
1196
1197 * tree-cfg.c (thread_jumps): Reduce the size of WORKLIST.
1198
1199 2004-12-02 Jeff Law <law@redhat.com>
1200
1201 * tree-eh.c: Revert yesterday's change.
1202
1203 2004-12-02 Andrew Pinski <pinskia@physics.uc.edu>
1204
1205 * varasm.c (decode_reg_name): Revert change to check for zero
1206 length strings.
1207 (make_decl_rtl): Make sure that we call decode_reg_name only
1208 when needed.
1209
1210 2004-12-02 Dorit Naishlos <dorit@il.ibm.com>
1211
1212 PR tree-opt/18716
1213 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Properly set
1214 then and else labels.
1215
1216 2004-12-02 Andreas Schwab <schwab@suse.de>
1217
1218 * Makefile.in (WERROR_FLAGS): Renamed from WERROR.
1219 (STRICT2_WARN): Use $(WERROR_FLAGS) instead of $(WERROR).
1220 (STAGE2_FLAGS_TO_PASS): Likewise.
1221
1222 * config/i386/x-mingw32: Set WERROR_FLAGS instead of WERROR.
1223
1224 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
1225
1226 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version. Remove
1227 now-redundant AC_SUBSTs.
1228 * aclocal.m4: Include ../config/gcc-version.m4.
1229 * configure: Regenerate.
1230
1231 2004-12-02 Alan Modra <amodra@bigpond.net.au>
1232
1233 * config/rs6000/rs6000.c (rs6000_assemble_integer): Put back the
1234 #ifdef RELOCATABLE_NEEDS_FIXUP.
1235
1236 2004-12-01 Roger Sayle <roger@eyesopen.com>
1237
1238 PR target/9908
1239 * config/i386/i386.md (*call_value_1, *sibcall_value_1): Correct
1240 Intel assembler syntax by using %A1 instead of %*%1.
1241
1242 2004-12-01 Richard Henderson <rth@redhat.com>
1243
1244 * expr.c (expand_assignment): Handle CONCAT both as a final
1245 destination and as a middle point.
1246
1247 2004-12-01 Jeff Law <law@redhat.com>
1248
1249 * tree-eh.c (save_eptr, save_filt): Now file scoped statics.
1250 (honor_protect_cleanup_actions): Only create save_eptr and
1251 save_filt if they do not already exist.
1252 (lower_eh_constructs): Wipe all knowledge of save_eptr and
1253 save_filt before returning.
1254
1255 2004-12-02 Kazu Hirata <kazu@cs.umass.edu>
1256
1257 * tree-phinodes.c (remove_phi_arg_num): Fix a comment.
1258
1259 2004-12-02 Alan Modra <amodra@bigpond.net.au>
1260
1261 PR target/16952
1262 * config/rs6000/rs6000.c (rs6000_assemble_integer): Replace
1263 #ifdef RELOCATABLE_NEEDS_FIXUP with if.
1264 * config/rs6000/linux.h (RELOCATABLE_NEEDS_FIXUP): Define in terms
1265 of target_flags_explicit.
1266 * config/rs6000/linux64.h (RELOCATABLE_NEEDS_FIXUP): Ditto for biarch
1267 case. Define as 0 for non-biarch.
1268
1269 2004-12-01 Zack Weinberg <zack@codesourcery.com>
1270
1271 * config/rs6000/t-aix43, config/rs6000/t-aix52 (SHLIB_LINK):
1272 Change temporary file tag from a prefix to an infix.
1273
1274 2004-12-02 Andreas Schwab <schwab@suse.de>
1275
1276 * gcc.c (struct option_map): Add entry for "--pass-exit-codes".
1277
1278 2004-12-01 Andrew Pinski <pinskia@physics.uc.edu>
1279
1280 PR tree-opt/18763
1281 PR tree-opt/18746
1282 * tree-ssa-alias.c (init_alias_info): Get statement operands for all
1283 the statements if aliases_computed_p is true.
1284
1285 2004-12-01 Mark Mitchell <mark@codesourcery.com>
1286
1287 * Makefile.in (WERROR): New variable.
1288 (STRICT2_WARN): Use it.
1289 (STAGE2_FLAGS_TO_PASS): Likewise.
1290 * config/i386/x-mingw32 (WERROR): Add -Wno-format.
1291
1292 2004-12-01 Richard Henderson <rth@redhat.com>
1293
1294 * expr.c (get_inner_reference): Fix thinko in REAL/IMAGPART_EXPR
1295 offsetting.
1296
1297 2004-12-01 Diego Novillo <dnovillo@redhat.com>
1298
1299 PR tree-optimization/18291
1300 * tree-ssa-copy.c (merge_alias_info): Fix merging of
1301 flow-sensitive alias information. If the new pointer has no
1302 name tag, copy it from the original pointer. Otherwise, make
1303 sure that the pointed-to sets have a common intersection.
1304
1305 2004-12-01 Richard Henderson <rth@redhat.com>
1306
1307 PR rtl-opt/15289
1308 * emit-rtl.c (gen_complex_constant_part): Remove.
1309 (gen_realpart, gen_imagpart): Remove.
1310 * rtl.h (gen_realpart, gen_imagpart): Remove.
1311 * expmed.c (extract_bit_field): Remove CONCAT hack catering to
1312 gen_realpart/gen_imagpart.
1313 * expr.c (write_complex_part, read_complex_part): New.
1314 (emit_move_via_alt_mode, emit_move_via_integer, emit_move_resolve_push,
1315 emit_move_complex_push, emit_move_complex, emit_move_ccmode,
1316 emit_move_multi_word): Split out from ...
1317 (emit_move_insn_1): ... here.
1318 (expand_expr_real_1) <COMPLEX_EXPR>: Use write_complex_part.
1319 <REALPART_EXPR, IMAGPART_EXPR>: Use read_complex_part.
1320 * function.c (assign_parm_setup_reg): Hard-code transformations
1321 instead of using gen_realpart/gen_imagpart.
1322
1323 * expr.c (optimize_bitfield_assignment_op): Split out from ...
1324 (expand_assignment): ... here. Use handled_component_p to gate
1325 get_inner_reference code. Simplify MEM handling. Special case
1326 CONCAT destinations.
1327
1328 * expmed.c (store_bit_field): Use simplify_gen_subreg instead
1329 of gen_rtx_SUBREG directly.
1330
1331 2004-12-01 David Edelsohn <edelsohn@gnu.org>
1332 Nathan Sidwell <nathan@codesourcery.com>
1333
1334 PR target/17107
1335 * config/rs6000/rs6000.md (sge): Enable for non-TARGET_POWER.
1336 (sgt): Same.
1337 (sle): Same.
1338 (slt): Same.
1339
1340 2004-12-01 Nathan Sidwell <nathan@codesourcery.com>
1341
1342 PR middle-end/18667
1343 * params.c (set_param_value): Add range check.
1344 * params.def: Add min and max values. Reformat long strings.
1345 * params.h (struct param_info): Add min and max fields.
1346 (enum compiler_param): Adjust DEFPARAM.
1347 * toplev.c (lang_independent_params): Likewise.
1348
1349 2004-12-01 Alan Modra <amodra@bigpond.net.au>
1350
1351 PR target/12817
1352 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use r0 for vrsave.
1353
1354 2004-12-01 Joseph S. Myers <joseph@codesourcery.com>
1355
1356 * doc/standards.texi: Update for C99 TC2.
1357
1358 2004-11-30 Jeff Law <law@redhat.com>
1359
1360 * sbitmap.c (sbitmap_any_common_bits): New function.
1361 * sbitmap.h (sbitmap_any_common_bits): Prototype.
1362 * modulo-sched.c (sms_schedule_by_order): Use sbitmap_any_common_bits
1363 No longer allocate/free "psp", "pss" sbitmaps.
1364 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Similarly for
1365 the "res" sbitmap.
1366 (group_aliases): Similarly.
1367
1368 2004-11-30 Nathan Sidwell <nathan@codesourcery.com>
1369
1370 * tree-vectorizer.c (vect_analyze_data_refs): Reformat and avoid
1371 uninitialized variable.
1372
1373 2004-11-30 Eric Christopher <echristo@redhat.com>
1374
1375 * fold-const.c (fold_widened_comparison): Make sure that we're
1376 passing an INTEGER_TYPE to int_fits_type_p.
1377 (fold): Clean up comment.
1378
1379 2004-11-30 Zack Weinberg <zack@codesourcery.com>
1380
1381 * mklibgcc.in: Correct calculation of libgcc_s_soname and
1382 libunwind_soname. Use $out, not $outS, in commands for
1383 no-shared-library case. Move EXTRA_MULTILIB_PARTS rules above
1384 library build rules, make $libunwind_so and $libgcc_s_so
1385 depend on them in the normal fashion, and filter those objects
1386 out of @shlib_objs@.
1387
1388 2004-11-30 Janis Johnson <janis187@us.ibm.com>
1389
1390 * config/rs6000/altivec.h (vec_step_help): Support const vector types.
1391
1392 2004-11-30 Andrew Pinski <pinskia@physics.uc.edu>
1393
1394 PR tree-opt/18298
1395 * tree-optimize.c (init_tree_optimization_passes): Add a may_alias
1396 pass right after fold builtins.
1397
1398 2004-11-30 Andreas Krebbel <krebbel1@de.ibm.com>
1399
1400 * config/s390/s390-modes.def: Added cc modes documentation.
1401 * config/s390/s390.c: (s390_tm_ccmode, s390_select_ccmode,
1402 s390_expand_addcc): Added cc mode comments.
1403 * config/s390/s390.md: Removed old cc mode documentation.
1404
1405 2004-11-30 Mark Dettinger <dettinge@de.ibm.com>
1406
1407 * config/s390/s390.c (struct processor_costs): New data type.
1408 (s390_cost, z900_cost, z990_cost): New global variables.
1409 (override_options): Initialize s390_cost.
1410 (s390_rtx_costs): Reimplement.
1411
1412 2004-11-29 Daniel Berlin <dberlin@dberlin.org>
1413
1414 Fix PR tree-optimization/18673
1415
1416 * tree-ssa-pre.c: Remove splay-tree.h include.
1417 (bitmap_value_replace_in_set): Fix to add if it does not exist.
1418 (find_or_generate_expression): Remove now-wrong condition.
1419 (create_expression_by_pieces): Fix condition and comment reason
1420 for it.
1421 (insert_aux): Fix condition and comment reasons for it.
1422 Factor insertion code from here.
1423 (insert_into_preds_of_block): To here. Fix conditions in factored
1424 function and comment reasons for them.
1425
1426 2004-11-30 Ira Rosen <irar@il.ibm.com>
1427
1428 PR tree-opt/18607
1429 * tree-vectorizer.c (vect_analyze_data_refs): Use temporary
1430 variable for data_reference when looking for memtag.
1431
1432 2004-11-30 Jakub Jelinek <jakub@redhat.com>
1433
1434 * c-opts.c (check_deps_environment_vars): If spec != NULL, set
1435 deps_seen.
1436
1437 2004-11-30 Dorit Naishlos <dorit@il.ibm.com>
1438
1439 * tree-vectorizer.c (vect_gen_niters_for_prolog_loop): Use
1440 tree_low_cst instead of TREE_INT_CST_LOW.
1441
1442 2004-11-30 Dorit Naishlos <dorit@il.ibm.com>
1443
1444 PR target/18173
1445 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Return false for
1446 decls that are assembled before vectorization takes place.
1447 (vect_compute_data_ref_alignment): Set DECL_USER_ALIGN to 1.
1448
1449 2004-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1450
1451 * passes.c (rest_of_handle_old_regalloc): Delete unreachable blocks
1452 if local_alloc modified jumps.
1453
1454 2004-11-30 Alan Modra <amodra@bigpond.net.au>
1455
1456 * varasm.c (default_encode_section_info): Don't set SYMBOL_FLAG_SMALL
1457 on TLS symbols.
1458 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Remove TLS
1459 check.
1460
1461 2004-11-30 Zack Weinberg <zack@codesourcery.com>
1462
1463 * gthr-gnat.c, gthr-gnat.h, gthr.h, libgcc2.h, unwind-dw2-fde.h
1464 * unwind.h: Surround all visibility pragmas with #ifndef HIDE_EXPORTS.
1465
1466 * mklibgcc.in: Drastic restructure for comprehensibility.
1467 Remove the old hidden-directive hack.
1468 Eliminate support for .txt files in LIB2ADD etc (never used).
1469 Eliminate support for assembly source files in LIB2ADDEH* and
1470 LIBUNWIND (also never used).
1471 Build up dependency lists for libraries incrementally.
1472 If we have SHLIB_LINK, compile each file twice, once for the
1473 static and once for the shared library; also probe for
1474 -fvisibility=hidden in the generated libgcc.mk. If found,
1475 pass that and -DHIDE_EXPORTS to the compilation of every C
1476 source file going into the static library. If found, generate
1477 hidden-directive lists for every assembly source file going
1478 into the static library, but incorporate them with -include
1479 instead of ld -r.
1480 Write comments into generated libgcc.mk to facilitate debugging.
1481 * Makefile.in: Pass ASM_HIDDEN_OP to mklibgcc.
1482 * config/t-slibgcc-darwin: Define ASM_HIDDEN_OP.
1483
1484 * config/darwin.h (REAL_LIBGCC_SPEC): Put -lgcc back in
1485 -Zdynamiclib case.
1486
1487 2004-11-29 Richard Henderson <rth@redhat.com>
1488
1489 * expr.c (get_inner_reference): Handle REAL/IMAGPART_EXPR.
1490 (handled_component_p): Likewise.
1491 * alias.c (can_address_p): Reformat and simplify. Handle
1492 REAL/IMAGPART_EXPR. Do not disable addressability based on
1493 alias set zero.
1494 * fold-const.c (build_fold_addr_expr_with_type): Remove duplicate
1495 check for REAL/IMAGPART_EXPR.
1496 * gimplify.c (gimplify_compound_lval): Likewise.
1497 * tree-cfg.c (verify_expr): Likewise.
1498 * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
1499 * tree-nested.c (build_addr, convert_nonlocal_reference): Likewise.
1500 (convert_local_reference): Likewise.
1501 * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Likewise.
1502
1503 2004-11-30 Alan Modra <amodra@bigpond.net.au>
1504
1505 * expr.c (emit_group_load_1): Don't die on const_int orig_src.
1506
1507 2004-11-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1508
1509 PR pch/14940
1510 * config/pa/pa-host.c, config/pa/x-hpux, config/pa/x-linux: New files.
1511 * config.host (hppa*-*-hpux*, hppa*-*-linux): Define out_host_hook_obj
1512 and host_xmake_file using new host configuration files.
1513
1514 2004-11-29 Roger Sayle <roger@eyesopen.com>
1515
1516 * reg-stack.c (change_stack): Improve algorithm used to pop regs
1517 off the stack to maximize ffreep usage and reduce fxch count.
1518
1519 2004-11-30 James A. Morrison <phython@gcc.gnu.org>
1520
1521 PR middle-end/18596
1522 * c-decl.c (grokdeclarator): Reset DECL_INTIAL to error_mark_node
1523 on errors.
1524
1525 2004-11-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1526
1527 * expr.c (expand_expr_real_1, case NOP_EXPR): Properly handle
1528 REDUCE_BIT_FIELD by applying it to result, not input, of conversion.
1529
1530 2004-11-30 Ben Elliston <bje@au.ibm.com>
1531
1532 * Makefile.in (REGS_H): Depend on $(BASIC_BLOCK_H).
1533
1534 2004-11-29 Andrew Pinski <pinskia@physics.uc.edu>
1535
1536 PR c/18479
1537 * c-common.c (handle_visibility_attribute): When the type decl
1538 is really a identifier node, warn about being ignored and return.
1539
1540 2004-11-29 Richard Henderson <rth@redhat.com>
1541
1542 * tree-cfg.c (tree_node_can_be_shared): Fix typo'd error_mark_node.
1543
1544 2004-11-29 Steven Bosscher <stevenb@suse.de>
1545
1546 * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge):
1547 Remove CASE_DROPS_THROUGH checks, it is never defined.
1548 * cfglyout.c (fixup_reorder_chain): Likewise.
1549 * cfgrtl.c (rtl_verify_flow_info): Likewise.
1550 * stmt.c (expand_case): Likewise.
1551 * cfgbuild.c (make_edges): Likewise. Also remove force_fallthru,
1552 it is now always 0.
1553 * system.h (CASE_DROPS_THROUGH): Poison.
1554 * doc/md.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
1555 * doc/tm.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
1556
1557 * config/v850/v850.h: Remove commented out CASE_DROPS_THROUGH.
1558
1559 2004-11-29 Andrew Pinski <pinskia@physics.uc.edu>
1560
1561 PR middle-end/18725
1562 * tree-cfg.c (tree_node_can_be_shared): Error_mark_node can be
1563 shared always.
1564
1565 2004-11-29 Diego Novillo <dnovillo@redhat.com>
1566
1567 PR tree-optimization/18712
1568 * tree-into-ssa.c (insert_phi_nodes_for): Pass argument
1569 WORK_STACK by reference.
1570 Call VEC_safe_push instead of VEC_quick_push.
1571 Update all users.
1572
1573 2004-11-29 Daniel Jacobowitz <dan@codesourcery.com>
1574
1575 PR c/7544
1576 * Makefile.in (c-lang.o): Update dependencies.
1577 * c-lang.c: Include "c-pragma.h".
1578 (finish_file): Call maybe_apply_pending_pragma_weaks.
1579 * c-pragma.c (maybe_apply_pending_pragma_weaks): New function.
1580 * c-pragma.h (maybe_apply_pending_pragma_weaks): New prototype.
1581
1582 2004-11-29 Richard Henderson <rth@redhat.com>
1583
1584 PR target/17224
1585 * config/ia64/predicates.md (sdata_symbolic_operand): Deny offsets
1586 outside the referenced object.
1587
1588 2004-11-29 Kazu Hirata <kazu@cs.umass.edu>
1589
1590 * tree-if-conv.c (replace_phi_with_cond_modify_expr): Use
1591 EDGE_PRED instead of PHI_ARG_EDGE.
1592 * tree-ssa-live.c: Likewise.
1593 * tree-ssa-loop-manip.c: Likewise.
1594 * tree-ssa.c: Likewise.
1595
1596 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Speed up by
1597 simplifying edge manipulation.
1598
1599 * cfgrtl.c (rtl_tidy_fallthru_edge): Speed up by using
1600 EDGE_COUNT.
1601
1602 * tree-cfg.c (tree_redirect_edge_and_branch): Call find_edge
1603 only when needed.
1604
1605 * cfg.c (flow_obstack): Remove.
1606 (flow_firstobj): Likewise.
1607 (init_flow): Remove all uses of flow_obstack.
1608
1609 2004-11-29 Alan Modra <amodra@bigpond.net.au>
1610
1611 * varasm.c (default_elf_select_section_1): Only pass DECL_P decl
1612 to named_section.
1613
1614 2004-11-29 Nathan Sidwell <nathan@codesourcery.com>
1615
1616 * opts.c (decode_options): Do not set max-inline-insns-rtl.
1617 (common_handle_option): Likewise.
1618 * params.def (PARAM_MAX_INLINE_INSNS_RTL): Remove.
1619 * params.h (MAX_INLINE_INSNS_RTL): Remove.
1620 * doc/invoke.texi (max-inline-insns-rtl): Remove.
1621
1622 2004-11-29 Alan Modra <amodra@bigpond.net.au>
1623
1624 PR target/9571
1625 * varasm.c (default_elf_select_section_1): Pass decl to named_section.
1626
1627 2004-11-28 Andrew Pinski <pinskia@physics.uc.edu>
1628
1629 PR middle-end/18164
1630 * gimplify.c (gimplify_asm_expr): If the length of an output operand
1631 is zero, do not process it, just let it go through.
1632
1633 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1634 Diego Novillo <dnovillo@redhat.com>
1635
1636 PR/18662, also backported from tree-cleanup-branch.
1637 * tree-ssa-ccp.c (substitute_and_fold): If replaced anything,
1638 always call maybe_clean_eh_stmt and modify_stmt.
1639
1640 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1641
1642 PR/18664
1643 * tree-ssa-operands.c (build_ssa_operands, case MODIFY_EXPR):
1644 Ignore a VIEW_CONVERT_EXPR on LHS when deciding if must or may def.
1645 * tree-ssa-ccp.c (visit_assignment): If LHS is a VIEW_CONVERT_EXPR,
1646 add an inverse VIEW_CONVERT_EXPR to const_val.
1647
1648 PR/18657
1649 * tree-nested.c (check_for_nested_with_variably_modified): New.
1650 (create_nesting_tree): Call it.
1651
1652 * tree-ssa-alias.c (compute_points_to_and_addr_escapes): Remove
1653 special code for assigning to non-pointer.
1654 (is_escape_site): If RHS is a conversion between pointer and integer
1655 types, this is an escape site.
1656
1657 * gcse.c (insert_store): Error if try to insert store on abnormal edge.
1658 (store_motion): Don't move store if any edge we'd want to move it
1659 to is abnormal.
1660
1661 * expr.c (expand_expr_real_1, case ARRAY_REF): Properly fold with
1662 non-zero lower bound.
1663
1664 * expr.c (categorize_ctor_elements_1, case STRING_CST): New case.
1665
1666 2004-11-28 Matt Kraai <kraai@alumni.cmu.edu>
1667
1668 PR diagnostic/17594
1669 * opts.c (find_opt): Require that the input match a switch exactly
1670 or that the switch take a joined option to be interpreted as a
1671 match for another language.
1672
1673 2004-11-28 Andrew Pinski <pinskia@physics.uc.edu>
1674
1675 * timevar.def (TV_TREE_REDPHI): New timevar.
1676 * tree-ssa.c (pass_redundant_phi): Use TV_TREE_REDPHI for the tv id.
1677
1678 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
1679
1680 PR preprocessor/17651
1681 * c-opts.c (sanitize_cpp_opts): Make flag_no_output imply
1682 flag_no_line_commands.
1683 * c-ppoutput.c (pp_file_change): Remove now-redundant check of
1684 flag_no_output.
1685
1686 2004-11-28 Theodore A. Roth <troth@openavr.org>
1687
1688 * config/avr/avr.c (avr_handle_fndecl_attribute): Generate a
1689 warning if the function name does not begin with "__vector" and the
1690 function has either the 'signal' or 'interrupt' attribute.
1691
1692 2004-11-28 Theodore A. Roth <troth@openavr.org>
1693
1694 * config/avr/avr.c (avr_mcu_types): Add entries for atmega48,
1695 atmega88, atmega168, attiny13, attiny2313, at90can128, atmega165,
1696 atmega325, atmega3250, atmega645 and atmega6450.
1697 * config/avr/avr.h (LINK_SPEC): Ditto.
1698 (LIB_SPEC): Ditto.
1699 (LIBGCC_SPEC): Ditto.
1700 (CRT_BINUTILS_SPECS): Ditto.
1701 * config/avr/t-avr (MULTILIB_MATCHES): Ditto.
1702
1703 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
1704
1705 PR preprocessor/17610
1706 * testsuite/gcc.dg/cpp/empty-include.c: New testcase.
1707
1708 2004-11-28 Jeff Law <law@redhat.com>
1709
1710 * tree-ssa-alias.c (count_calls_and_maybe_create_global_var): New.
1711 (pass_maybe_create_global_var): New.
1712 * tree-pass.h (pass_maybe_create_global_var): Declare.
1713 * tree-optimize.c (init_tree_optimization_passes): Link in
1714 pass_maybe_create_global_var.
1715
1716 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1717
1718 * tree-inline.c (inline_forbidden_p_1, case RECORD_TYPE): Add comment.
1719
1720 2004-11-28 Ulrich Weigand <uweigand@de.ibm.com>
1721
1722 PR rtl-optimization/18420
1723 * simplify-rtx.c (simplify_gen_subreg): Revert 2004-10-28 change.
1724
1725 2004-11-28 Steven Bosscher <stevenb@suse.de>
1726 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1727
1728 * config/vax/vax.h (CASE_DROPS_THROUGH): Don't define.
1729 * config/vax/vax.md (casesi): Emit a test-and-branch to make sure
1730 that the case is in range, to make sure the casesi insn is always
1731 in range and never falls through.
1732 (casesi1): Add comment to explain why casesi never falls through.
1733 Remove the unnamed special case casesi pattern.
1734
1735 2004-11-28 Hans-Peter Nilsson <hp@bitrange.com>
1736
1737 PR target/18331
1738 * config/mmix/mmix.md ("*movdicc_real_reversible"): Rename from
1739 "*movdicc_real". Only match reversible comparisons.
1740 ("*movdicc_real_nonreversible"): New pattern, split from
1741 "*movdicc_real". Match only nonreversible comparisons. Exclude
1742 reversed alternatives.
1743 ("*movdfcc_real_reversible", "*movdfcc_real_nonreversible"):
1744 Similar.
1745
1746 2004-11-27 Richard Henderson <rth@redhat.com>
1747
1748 * config/ia64/ia64.md: Move all define_predicate's ...
1749 * config/ia64/predicates.md: ... here. New file.
1750
1751 2004-11-27 Per Bothner <per@bothner.com>
1752
1753 PR bootstrap/18142
1754 Re-applied following, with two modifications: add a URL for the
1755 fixed cctools; only exit if $build = $target.
1756
1757 2004-10-18 Kelley Cook <kcook@gcc.gnu.org>
1758 * configure.ac (powerpc-*-darwin*): Require assembler to support
1759 .machine directive.
1760 * configure: Regenerate.
1761
1762 2004-11-28 David Edelsohn <edelsohn@gnu.org>
1763
1764 PR target/16800
1765 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve accuracy of
1766 EQ, GTU, and LTU costs. Add costs for GT, LT, and UNORDERED.
1767 Distinguish between SImode and DImode CONST_INT.
1768
1769 2004-11-28 Andreas Fischer <a_fisch@gmx.de>
1770 Alan Modra <amodra@bigpond.net.au>
1771
1772 PR target/16343
1773 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Disallow
1774 functions, strings and thread-local vars.
1775
1776 2004-11-28 Alan Modra <amodra@bigpond.net.au>
1777
1778 * config/rs6000/rs6000.h (WORLD_SAVE_P): Define.
1779 * config/rs6000/darwin.h (WORLD_SAVE_P): Define.
1780 * config/rs6000/rs6000.c (compute_save_world_info): Use WORLD_SAVE_P
1781 to allow non-darwin ABIs to optimize away code.
1782 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
1783
1784 2004-11-27 Kazu Hirata <kazu@cs.umass.edu>
1785
1786 * tree.c (operand_equal_for_phi_arg_p): New.
1787 * tree.h: Add a prototype for operand_equal_for_phi_arg_p.
1788 * tree-cfg.c, tree-ssa-dom.c, tree-ssa-phiopt.c, tree-ssa.c:
1789 Replace operand_equal_p with operand_for_phi_arg_p
1790 appropriately.
1791
1792 * bb-reorder.c (find_traces_1_round): Speed up by using
1793 EDGE_COUNT instead of FOR_EACH_EDGE.
1794
1795 * fold-const.c, config/i386/linux64.h: Fix comment typos.
1796
1797 2004-11-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1798
1799 PR pch/14940
1800 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Revert 2004-11-22 change.
1801
1802 2004-11-27 Kazu Hirata <kazu@cs.umass.edu>
1803
1804 * config/i386/linux.h: Fix a comment typo.
1805 * doc/extend.texi: Fix a typo.
1806
1807 2004-11-27 Jeff Law <law@redhat.com>
1808
1809 * tree-cfg.c (cleanup_tree_cfg): Also return true if blocks
1810 are merged.
1811
1812 2004-11-27 Jakub Jelinek <jakub@redhat.com>
1813
1814 * config/i386/linux64.h (REG_NAME): Define.
1815
1816 2004-11-27 Jakub Jelinek <jakub@redhat.com>
1817
1818 * fold-const.c (extract_muldiv_1) <case ABS_EXPR>: If ctype is
1819 unsigned and type signed, build ABS_EXPR with signed_type (ctype)
1820 and only afterwards convert to ctype.
1821
1822 2004-11-27 Richard Sandiford <rsandifo@redhat.com>
1823
1824 * config/mips/mips-protos.h (function_arg_boundary): Declare.
1825 * config/mips/mips.h (PARM_BOUNDARY): Simplify definition.
1826 (STACK_BOUNDARY, MIPS_STACK_ALIGN): Likewise.
1827 (FUNCTION_ARG_BOUNDARY): Use new function_arg_boundary function.
1828 * config/mips/mips.c (function_arg_boundary): New function.
1829 Impose a maximum alignment of STACK_BOUNDARY.
1830
1831 2004-11-27 Jakub Jelinek <jakub@redhat.com>
1832
1833 PR rtl-optimization/17825
1834 * combine.c (subst): Ignore STRICT_LOW_PART no matter if REG_P (new)
1835 or not.
1836
1837 2004-11-27 Alan Modra <amodra@bigpond.net.au>
1838
1839 PR target/12769
1840 * config/rs6000/rs6000.c (init_cumulative_args): Set call_cookie
1841 from rs6000_default_long_calls for libcalls.
1842
1843 2004-11-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1844
1845 * expmed.c (extract_bit_field): When extracting from non-integer mode,
1846 force a SUBREG into a register because we may be taking a further
1847 SUBREG of it.
1848
1849 2004-11-27 Di-an Jan <dianj@freeshell.org>
1850
1851 * doc/contrib.texi (Tim Josling): Remove nesting quotation marks.
1852
1853 2004-11-26 Robert Millan <robertmh@gnu.org>
1854
1855 Changes for k*bsd-gnu support.
1856 * config/i386/linux.h: Define REG_NAME to allow overriding of
1857 register names in sc structure.
1858 * config/i386/linux-unwind.h: Refer to sc->REG_NAME(reg) instead
1859 of sc->reg.
1860 * config.gcc: Detect x86_64-k*bsd-gnu systems.
1861
1862 2004-11-26 Jeff Law <law@redhat.com>
1863
1864 * tree-ssa.c (verify_flow_sensitive_alias_info): Don't
1865 retrieve annotations or pointer info before it's necessary.
1866 Reorder tests for early continue of the loop. Manually CSE
1867 SSA_NAME_VAR.
1868
1869 2004-11-26 Eric Botcazou <ebotcazou@libertysurf.fr>
1870
1871 * target.h (struct gcc_target): New field 'dwarf_handle_frame_unspec'.
1872 * target_def.h (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to 0.
1873 (TARGET_INITIALIZER): Add TARGET_DWARF_HANDLE_FRAME_UNSPEC.
1874 * dwarf2out.c (dwarf2out_frame_debug_expr): Allow REG->REG move
1875 to a fixed reg if the source is the Return Address register.
1876 Implement new Rule 15.
1877 * doc/tm.texi (Frame Layout): Document TARGET_DWARF_HANDLE_FRAME_UNSPEC.
1878 * config/sparc/sparc.c (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to
1879 sparc_dwarf_handle_frame_unspec.
1880 (gen_save_register_window): New function.
1881 (emit_stack_pointer_increment): Rename into gen_stack_pointer_inc.
1882 (emit_stack_pointer_decrement): Rename into gen_stack_pointer_dec.
1883 (expand_prologue): Adjust calls to emit_stack_pointer_{in,de}crement.
1884 Set RTX_FRAME_RELATED_P on the appropriate insns and members of insns.
1885 (sparc_asm_function_prologue): Do not emit call frame debugging info.
1886 (emit_and_preserve): Adjust calls to emit_stack_pointer_{in,de}crement.
1887 (sparc_expand_epilogue): Likewise.
1888 (sparc_dwarf_handle_frame_unspec): New function.
1889 * config/sparc/sparc.md (save_register_window): Remove.
1890 (save_register_windowdi): Rewrite modelled on the callframe debug info.
1891 (save_register_windowsi): Likewise.
1892
1893 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
1894
1895 * config/frv/frv-protos.h: Guard ifcvt functions declarations with
1896 BB_HEAD, not BLOCK_HEAD.
1897
1898 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
1899
1900 * config/frv/frv.c (frv_ifcvt_modify_insn): Don't leave alone
1901 scratch insns that set a register live at the join point.
1902
1903 2004-11-26 Kazu Hirata <kazu@cs.umass.edu>
1904
1905 * cse.c, tree-ssa-operands.c: Fix comment typos.
1906
1907 * tree-cfg.c (tree_split_edge): Speed up by using find_edge.
1908
1909 2004-11-26 James A. Morrison <phython@gcc.gnu.org>
1910
1911 PR target/18510
1912 * doc/extend.texi (SPARC VIS Built-in Functions): New section.
1913
1914 2004-11-26 Kazu Hirata <kazu@cs.umass.edu>
1915
1916 * cfgrtl.c (try_redirect_by_replacing_jump): Speed up the
1917 check that tests if all edges go to the same destination.
1918
1919 * bitmap.c (bitmap_find_bit): Speed up by traversing from
1920 head->first if that seems profitable.
1921
1922 2004-11-25 Jeff Law <law@redhat.com>
1923
1924 * timevar.def (TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI): New timevars.
1925 * tree-ssa-loop.c (pass_loop_init): Use TV_TREE_LOOP_INIT.
1926 (pass_loop_done): Use TV_TREE_LOOP_FINI.
1927
1928 2004-11-26 Alan Modra <amodra@bigpond.net.au>
1929
1930 PR rtl-optimization/16356
1931 * config/rs6000/rs6000.md (floatdisf2_internal2): Rewrite with
1932 separate output register and one less jump. Enable for powerpc64.
1933 (floatdisf2): Adjust for above.
1934
1935 2004-11-25 Bob Wilson <bob.wilson@acm.org>
1936
1937 * config/xtensa/xtensa.h (STARTFILE_SPEC): Add crt0.
1938 (GCC_DRIVER_HOST_INITIALIZATION): Define.
1939
1940 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
1941
1942 PR middle-end/17957
1943 * tree-complex.c (vector_inner_type): New variable moved from
1944 build_word_mode_vector_type.
1945 (vector_last_type): Likewise.
1946 (vector_last_nunits): Likewise.
1947 (build_word_mode_vector_type): Use the new variables.
1948 * Makefile.in (tree-complex.o): Add gt-tree-complex.h $(GGC_H).
1949 (GTFILES): Add tree-complex.c.
1950 (gt-tree-complex.h): New rule, add it to the rest of the gt-* rules.
1951
1952 2004-11-25 Bob Wilson <bob.wilson@acm.org>
1953
1954 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define
1955 __XTENSA_WINDOWED_ABI__.
1956
1957 2004-11-25 Richard Henderson <rth@redhat.com>
1958
1959 * dwarf2out.c (dwarf2out_stack_adjust): Add after_p argument. Save
1960 args_size adjustments for calls even with cfa as stack pointer.
1961 Search calls for stack adjustments after the insn is issued.
1962 (dwarf2out_frame_debug): Add after_p argument; pass it on.
1963 * dwarf2out.h (dwarf2out_frame_debug): Update to match.
1964 * final.c (final_start_function, final_scan_insn): Likewise.
1965
1966 2004-11-25 Richard Henderson <rth@redhat.com>
1967
1968 PR c++/6764
1969 * reload1.c (set_initial_eh_label_offset): New.
1970 (set_initial_label_offsets): Use it.
1971
1972 2004-11-25 Kaz Kojima <kkojima@gcc.gnu.org>
1973
1974 * config/sh/sh.c (sh_output_mi_thunk): Initialize bitmap obstacks
1975 before calling life_analysis and release them after.
1976
1977 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
1978
1979 * tree-ssa-forwprop.c (substitute_single_use_vars): Remove
1980 duplicate code.
1981
1982 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
1983
1984 * bitmap.h (BITMAP_XMALLOC): Use BITMAP_ALLOC and not
1985 BITMAP_OBSTACK_ALLOC.
1986 (BITMAP_XFREE): Use BITMAP_FREE and not BITMAP_OBSTACK_FREE.
1987
1988 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
1989
1990 parts of PR rtl-opt/18463, rtl-opt/17647
1991 * cse.c (canon_for_address): New function.
1992 (find_best_addr): Call canon_for_address before getting the
1993 address's cost when checking if we should take that address.
1994
1995 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
1996
1997 * tree-phinodes.c (add_phi_arg): Take "tree" instead of
1998 "tree *" as the first argument.
1999 * tree-flow.h: Update the prototype of add_phi_arg.
2000 * lambda-code.c, tree-cfg.c, tree-into-ssa.c,
2001 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
2002 tree-ssa-threadupdate.c, tree-ssa.c, tree-tailcall.c,
2003 tree-vectorizer.c: Update all call sites of add_phi_arg.
2004
2005 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
2006
2007 * bitmap.c (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
2008 * bitmap.h (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
2009 (BITMAP_XMALLOC): Forward to BITMAP_OBSTACK_ALLOC.
2010 (BITMAP_XFREE): Forward to BITMAP_OBSTACK_FREE.
2011
2012 2004-11-25 Andrew MacLeod <amacleod@redhat.com>
2013
2014 PR tree-optimization/18587
2015 * tree-flow-inline.h (mark_call_clobbered, mark_non_addressable): Flag
2016 call clobbered caches as invalid.
2017 * tree-ssa-operands.c (ssa_call_clobbered_cache_valid): New. Flag
2018 indicating whether the call clobbered operand cache is valid.
2019 (ssa_ro_call_cache_valid): New. Flag indicating whether the
2020 pure/const call operand cache is valid.
2021 (clobbered_v_may_defs, clobbered_vuses, ro_call_vuses): New. Cached
2022 list of operands for cached call virtual operands.
2023 (clobbered_aliased_loads, clobbered_aliased_stores,
2024 ro_call_aliased_load): New. flags caching whether alias bits are
2025 to be set in call stmt's.
2026 (fini_ssa_operands): Remove call operand caches if present.
2027 (get_expr_operands, get_asm_expr_operands,
2028 get_indirect_ref_operands): Pass stmt annotation to add_stmt_operand.
2029 (get_call_expr_operands): Add call clobbered variables first.
2030 (add_stmt_operand): Take stmt annotation rather than stmt as a param.
2031 (add_call_clobber_ops, add_call_read_ops): Use the call operand cache
2032 if it is valid, otherise fill the cache.
2033 * tree-ssa-operands.h (ssa_clobbered_cache_valid): Declare extern.
2034 * tree-flow.h (struct var_ann_d): Add in_vuse_list and
2035 in_v_may_def_list bits.
2036 * tree-ssa-operands.c (cleanup_v_may_defs): New. Clear the
2037 in_list bits for the v_may_def elements and empty the operand
2038 build array
2039 (finalize_ssa_vuses): Use cleanup_v_may_defs and remove redundant
2040 VUSES by checking the in_v_may_def_list bit.
2041 (append_v_may_def, append_vuse): Use the in_list bit rather than
2042 scanning the array for duplicates.
2043
2044 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
2045
2046 * config/s390/s390.c (s390_short_displacement): UNSPEC_GOTNTPOFF
2047 displacements are not short.
2048
2049 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
2050
2051 * config/s390/s390.c (legitimize_pic_address): Use s390_load_address
2052 to load addresses.
2053
2054 2004-11-25 Mark Mitchell <mark@codesourcery.com>
2055
2056 PR c++/18001
2057 * c-common.h (lvalue_use): Move here from c-ctypeck.c.
2058 (lvalue_or_else): Declare.
2059 * c-common.c (lvalue_or_else): Move here from c-typeck.c.
2060 * c-typeck.c (lvalue_use): Remove.
2061 (lvalue_or_else): Remove.
2062
2063 PR c++/18556
2064 * toplev.c (check_global_declarations): Set DECL_IGNORED_P on
2065 unemitted variables with static storage duration.
2066
2067 2004-11-25 Gerald Pfeifer <gerald@pfeifer.com>
2068
2069 * tree-cfg.c (tree_verify_flow_info): Do not terminate error()
2070 message with \n.
2071
2072 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
2073
2074 * config/rs6000/altivec.md (VIshort): New mode macro.
2075 (altivec_vaddubs, altivec_vadduhs, altivec_vadduws): Replace
2076 with ...
2077 (altivec_vaddu<VI_char>s): ... this.
2078 (altivec_vaddsbs, altivec_vaddshs, altivec_vaddsws): Replace
2079 with ...
2080 (altivec_vadds<VI_char>s): ... this.
2081 (altivec_vsububs, altivec_vsubuhs, altivec_vsubuws): Replace
2082 with ...
2083 (altivec_vsubu<VI_char>s): ... this.
2084 (altivec_vsubsbs, altivec_vsubshs, altivec_vsubsws): Replace
2085 with ...
2086 (altivec_vsubs<VI_char>s): ... this.
2087 (altivec_vavgub, altivec_vavguh, altivec_vavguw): Replace
2088 with ...
2089 (altivec_vavgu<VI_char>): ... this.
2090 (altivec_vavgsb, altivec_vavgsh, altivec_vavgsw): Replace
2091 with ...
2092 (altivec_vavgs<VI_char>): ... this.
2093 (altivec_vmsumubm, altivec_vmsumuhm): Replace with ...
2094 (altivec_vmsumu<VI_char>m): ... this.
2095 (altivec_vmsummbm, altivec_vmsummhm): Replace
2096 with ...
2097 (altivec_vmsumm<VI_char>m): ... this.
2098 (altivec_vandc): Remove.
2099 (*andc<mode>3): Renamed to ...
2100 (andc<mode>3): ... here. Swap operand 1 and 2 numbering.
2101 (altivec_vrlb, altivec_vrlh, altivec_vrlw): Replace
2102 with ...
2103 (altivec_vrl<VI_char>): ... this.
2104 (altivec_vslb, altivec_vslh, altivec_vslw): Replace
2105 with ...
2106 (altivec_vsl<VI_char>): ... this.
2107 (altivec_vsrb, altivec_vsrh, altivec_vsrw): Replace
2108 with ...
2109 (altivec_vsr<VI_char>): ... this.
2110 (altivec_vsrab, altivec_vsrah, altivec_vsraw): Replace
2111 with ...
2112 (altivec_vsra<VI_char>): ... this.
2113 (altivec_vsum4sbs, altivec_vsum4shs): Replace with ...
2114 (altivec_vsum4s<VI_char>s): ... this.
2115 (altivec_vperm_4si, altivec_vperm_8hi, altivec_vperm_16qi): Replace
2116 with ...
2117 (altivec_vperm_<mode>): ... this.
2118 (altivec_vsel_4sf): Rename to ...
2119 (altivec_vsel_v4sf): ... here.
2120 (altivec_vsel_4si, altivec_vsel_8hi, altivec_vsel_16qi): Replace
2121 with ...
2122 (altivec_vsel_<mode>): ... this.
2123 (altivec_vsldoi_4si, altivec_vsldoi_8hi,
2124 altivec_vsldoi_16qi): Rename to ...
2125 (altivec_vsldoi_v4si, altivec_vsldoi_v8hi,
2126 altivec_vsldoi_v16qi): ... here.
2127 (altivec_vsldoi_4sf): Rename to ...
2128 (altivec_vsldoi_v4sf): ... here.
2129 (altivec_predicate_v4si, altivec_predicate_v8hi,
2130 altivec_predicate_v16qi): Replace with ...
2131 (altivec_predicate_<mode>): ... this.
2132 (altivec_lvebx, altivec_lvehx, altivec_lvewx): Replace
2133 with ...
2134 (altivec_lve<VI_char>x): ... this.
2135 (altivec_stvebx, altivec_stvehx, altivec_stvewx): Replace
2136 with ...
2137 (altivec_stve<VI_char>x): ... this.
2138 (absv16qi2, absv8hi2, absv4si2): Replace
2139 with ...
2140 (abs<mode>2): ... this.
2141 (altivec_abss_v16qi, altivec_abss_v8hi, altivec_abss_v4si): Replace
2142 with ...
2143 (altivec_abss_<mode>): ... this.
2144 (vec_realign_load_v16qi, vec_realign_load_v8hi,
2145 vec_realign_load_v4si): Replace with ...
2146 (vec_realign_load_<mode>): ... this.
2147 * config/rs6000/rs6000.c (bdesc_3arg, bdesc_2arg): Update tweaked
2148 insn names.
2149 (rs6000_expand_ternop_builtin): Likewise.
2150
2151 2004-11-25 Andrew Haley <aph@redhat.com>
2152
2153 * gcc.c (process_command): Don't supply -v to linker.
2154
2155 2004-11-25 Joseph S. Myers <joseph@codesourcery.com>
2156
2157 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs
2158 instead of `%s' in diagnostic.
2159
2160 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
2161
2162 * basic-block.h (OBSTACK_ALLOC_REG_SET): Adjust.
2163 (FREE_REG_SET): Adjust.
2164 * bitmap.c (bitmap_obstack_free): Cope with NULL bitmap.
2165 * bitmap.h (BITMAP_OBSTACK_ALLOC): Rename to ...
2166 (BITMAP_ALLOC): ... here.
2167 (BITMAP_OBSTACK_FREE): Rename to ...
2168 (BITMAP_FREE): Don't check for NULL bitmap here.
2169 * tree-ssa-pre.c (value_insert_into_set_bitmap,
2170 bitmap_set_new): Use new names.
2171
2172 * bt-load.c (migrate_btr_defs): Remove unneeded NULL check.
2173 * df.c (df_free): Likewise.
2174 * ra-build.c (ra_build_free, ra_build_free_all): Likewise.
2175 * tree-ssa-loop-ivopts.c (set_use_iv_cost): Likewise.
2176
2177 * basic-block.h (OBSTACK_ALLOC_REG_SET): Rename to ...
2178 (ALLOC_REG_SET): ... here.
2179 (FREE_REG_SET): Adjust.
2180 (XMALLOC_REG_SET, XFREE_REG_SET): Remove.
2181 * bb-reorder.c (fix_crossing_conditional_branches): Adjust.
2182 * cfglayout.c (cfg_layout_duplicate_bb): Adjust.
2183 * cfgrtl.c (rtl_split_block, rtl_split_edge,
2184 safe_insert_insn_on_edge, cfg_layout_split_edge): Adjust.
2185 * flow.c (update_life_info, calculate_global_regs_live,
2186 allocate_bb_life_data, init_propagate_block_info): Adjust.
2187 * global.c (build_insn_chain): Adjust.
2188 * ifcvt.c (dead_or_predicable): Adjust.
2189 * loop-iv.c (simplify_using_initial_values): Adjust.
2190 * recog.c (peephole2_optimize): Adjust.
2191 * sched-deps.c (init_deps_global): Adjust.
2192
2193 2004-11-25 Ralf Corsepius <ralf.corsepius@rtems.org>
2194
2195 * config.gcc (avr-*-rtems*): Fix typo.
2196
2197 2004-11-25 J"orn Rennecke <joern.rennecke@st.com>
2198
2199 * sh.c (sh_output_mi_thunk): Do not call regset_release_memory.
2200
2201 2004-11-24 Jeff Law <law@redhat.com>
2202
2203 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Reduce
2204 the number of queries to random elements in the ai->written_vars
2205 bitmap.
2206
2207 2004-11-24 Roger Sayle <roger@eyesopen.com>
2208
2209 * config/i386/i386.c (override_options): Disable x87 fancy math
2210 intrinsics if -mfpmath= doesn't include 387 (default on x86_64).
2211
2212 2004-11-24 Roger Sayle <roger@eyesopen.com>
2213
2214 * configure.ac: Tweak test for HAVE_DECL_LDGETNAME to avoid a
2215 system header conflict on AIX 5.2.
2216 * configure: Regenerate.
2217
2218 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
2219
2220 * tree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx
2221 instead of calling phi_arg_from_edge.
2222
2223 * tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge
2224 with e->dest_idx.
2225
2226 2004-11-24 Ben Elliston <bje@au.ibm.com>
2227
2228 * config/i386/i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
2229 * config/i386/i386.c (i386_dwarf_output_addr_const): Likewise.
2230 * config/i386/i386-protos.h (i386_dwarf_output_addr_const):
2231 Likewise.
2232
2233 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2234
2235 * tree-sra.c (sra_walk_modify_expr): Handle RHS first, then LHS.
2236
2237 * tree-inline.c (copy_body_r): Explicitly copy a constant if the
2238 type will be remapped.
2239
2240 2004-11-24 Steven Bosscher <stevenb@suse.de>
2241
2242 * c-opts.c (c_common_post_options): Don't clear
2243 flag_inline_functions.
2244 * dojump.c (clear_pending_stack_adjust): Remove check on
2245 flag_inline_functions, it's always true.
2246 * config/alpha/alpha.md (movdi_er_maybe_g): Remove splitter
2247 that can never trigger.
2248 * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Don't look at
2249 flag_inline_trees, now that flag_inline_functions is never
2250 cleared.
2251 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Don't set
2252 flag_inline_functions at optimization levels greater than
2253 or equal to 3. This is already done by default.
2254
2255 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
2256
2257 * tree-outof-ssa.c (eliminate_build): Use g->e->dest_idx
2258 instead to find the PHI argument. Do not take I as an
2259 argument.
2260 (eliminate_phi): Adjust the call to eliminate_build. Do not
2261 take I as an argument.
2262 (rewrite_trees): Adjust the call to eliminate_phi.
2263
2264 2004-11-24 Richard Sandiford <rsandifo@redhat.com>
2265
2266 * optabs.h (force_expand_binop): Declare.
2267 * optabs.c (force_expand_binop): Export.
2268 * stmt.c (shift_return_value): Delete.
2269 (expand_return): Don't call it.
2270 * expr.h (shift_return_value): Declare.
2271 * calls.c (shift_returned_value): Delete in favor of...
2272 (shift_return_value): ...this new function. Leave the caller to check
2273 for non-BLKmode values passed in the msb of a register. Take said mode
2274 and a shift direction as argument. Operate on the hard function value,
2275 not a pseudo.
2276 (expand_call): Adjust accordingly.
2277 * function.c (expand_function_start): If a non-BLKmode return value
2278 is padded at the last significant end of the return register, use the
2279 return value's natural mode for the DECL_RESULT, not the mode of the
2280 padded register.
2281 (expand_function_end): Shift the same sort of return values left by
2282 the appropriate amount.
2283
2284 2004-11-24 Matt Austern <austern@apple.com>
2285
2286 * recog.c (recog_memoized_1): Remove.
2287 * recog.h (recog_memoized_1): Remove declaration.
2288 (recog_memoized): Change from macro to inline function.
2289
2290 2004-11-24 Devang Patel <dpatel@apple.com>
2291
2292 PR/18555
2293 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add isysroot.
2294 * config/darwin-c.c (darwin_register_frameworks): Use sysroot.
2295
2296 2004-11-24 Devang Patel <dpatel@apple.com>
2297
2298 * gcc.c (process_command): Supply -v to linker.
2299
2300 2004-11-24 David Edelsohn <edelsohn@gnu.org>
2301 Paolo Bonzini <bonzini@gnu.org>
2302
2303 * config/rs6000/rs6000.c (rs6000_return_in_memory): Allow Altivec
2304 vector modes without ALTIVEC_ABI. Use GCC vector instead of
2305 synthetic vector.
2306 (rs6000_pass_by_reference): Split conditional into pieces. Use
2307 GCC vector instead of synthetic vector.
2308
2309 2004-11-24 Aldy Hernandez <aldyh@redhat.com>
2310
2311 * tree.c (recompute_tree_invarant_for_addr_expr): The address of a
2312 thread-local variable is invariant.
2313
2314 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2315
2316 * tree-pretty-print.c (dump_generic_node, case POINTER_TYPE):
2317 Handle TYPE_REF_CAN_ALIAS_ALL.
2318 (print_declaration): Print array dimensions like dump_generic_node.
2319
2320 * fold-const.c (operand_equal_p): Remove kludge allowing ARG0 and
2321 ARG1 to be null; instead define OP_SAME and OP_SAME_NULL and use them.
2322
2323 2004-11-24 Nathan Sidwell <nathan@codesourcery.com>
2324
2325 * bitmap.c (INLINE): Do not define.
2326 (bitmap_elem_to_freelist, bitmap_element_free,
2327 bitmap_element_allocate, bitmap_clear, bitmap_element_zerop,
2328 bitmap_element_link, bitmap_find_bit): Use inline keyword/macro.
2329
2330 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
2331
2332 * tree-ssa-dom.c (cprop_into_successor_phis): Remove code to
2333 find the index of a PHI argument. Use e->dest_idx instead.
2334 Replace hint with index.
2335
2336 * tree-ssa-dom.c (cprop_into_successor_phis): Replace index
2337 with indx.
2338
2339 2004-11-24 Diego Novillo <dnovillo@redhat.com>
2340
2341 * tree-ssa-alias.c (merge_pointed_to_info): Fix comment
2342 regarding PT_MALLOC.
2343
2344 2004-11-24 Joseph Myers <joseph@codesourcery.com>
2345
2346 * config/i386/i386.c (optimization_options): Use
2347 SUBTARGET_OPTIMIZATION_OPTIONS.
2348 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define.
2349 (TARGET_SUBTARGET_DEFAULT): Don't include
2350 MASK_OMIT_LEAF_FRAME_POINTER.
2351
2352 2004-11-24 Mark Mitchell <mark@codesourcery.com>
2353
2354 * config/i386/sol2.h (X86_FILE_START_VERSION_DIRECTIVE):
2355 Define to false.
2356
2357 2004-11-24 Joseph Myers <joseph@codesourcery.com>
2358
2359 * config/i386/t-sol2-10 (MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES):
2360 Use amd64 instead of 64.
2361
2362 2004-11-24 Mark Mitchell <mark@codesourcery.com>
2363 Joseph Myers <joseph@codesourcery.com>
2364
2365 * crtstuff.c (IN_LIBGCC2): Define it.
2366 (EH_FRAME_SECTION_CONST): Check EH_TABLES_CAN_BE_READ_ONLY
2367 instead of HAVE_LD_RO_RW_SECTION_MIXING.
2368 * defaults.h (EH_TABLES_CAN_BE_READ_ONLY): New macro.
2369 * dwarf2out.c (named_section_eh_frame_section): Check
2370 EH_TABLES_CAN_BE_READ_ONLY.
2371 * except.c (default_exception_section): Likewise.
2372 * config/i386/sol2.h (EH_TABLES_CAN_BE_READ_ONLY): Define.
2373 * doc/tm.texi (EH_TABLES_CAN_BE_READ_ONLY): Document.
2374
2375 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
2376
2377 * tree-ssa-pre.c (phi_translate): Use find_edge to find the
2378 index of a PHI argument.
2379
2380 * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi): Use
2381 find_edge to find the index of a PHI argument.
2382
2383 2004-11-24 Steven Bosscher <stevenb@suse.de>
2384
2385 * expr.c (expand_expr_real_1): Remove cases for EXIT_BLOCK_EXPR
2386 and LABELED_BLOCK_EXPR.
2387 * gimplify.c (gimplify_labeled_block_expr): Remove.
2388 (gimplify_exit_block_expr): Remove.
2389 (gimplify_expr): Don't call them.
2390 * tree-inline.c (copy_body_r): Don't handle EXIT_BLOCK_EXPR
2391 and LABELED_BLOCK_EXPR.
2392 (estimate_num_insns_1): Likewise.
2393 (walk_tree): Likewise.
2394 * tree-pretty-print.c (dump_generic_node): Don't handle
2395 EXIT_BLOCK_EXPR and LABELED_BLOCK_EXPR.
2396 * tree.def (EXIT_BLOCK_EXPR): Moved to java-tree.def.
2397 (LABELED_BLOCK_EXPR): Likewise.
2398 * tree.h (LABELED_BLOCK_LABEL): Moved to java-tree.h.
2399 (LABELED_BLOCK_BODY): Likewise.
2400 (EXIT_BLOCK_LABELED_BLOCK): Likewise.
2401 (EXIT_BLOCK_RETURN): Removed.
2402
2403 2004-11-24 Steven Bosscher <stevenb@suse.de>
2404
2405 * cfgrtl.c (rtl_delete_block): Fix comment.
2406 * emit-rtl.c (remove_unnecessary_notes): Die if we see BLOCK_BEG
2407 or BLOCK_END insn notes.
2408 * jump.c (squeeze_notes): Likewise.
2409 * haifa-sched.c (reemit_notes): Don't "re-emit" EH_REGION_BEG and
2410 EH_REGION_END notes, we never have them to begin with.
2411 * sched-deps.c (sched_analyze_insn): When updating loop notes,
2412 verify that we have indeed only recorded loop notes.
2413 (sched_analyze): Die if we see EH_REGION_BEG or EH_REGION_END notes.
2414 Only record loop notes.
2415
2416 * cfgexpand.c (tree_expand_cfg): Fix comment.
2417
2418 * passes.c (rest_of_compilation): Don't do a second call to
2419 convert_from_eh_region_ranges from here, it's already called
2420 from cfgexpand.c.
2421 * except.c (resolve_fixup_regions): Remove.
2422 (remove_fixup_regions): Remove.
2423 (convert_from_eh_region_ranges_1): Remove.
2424 (convert_from_eh_region_ranges): Remove the case where EH is
2425 not already lowered at the tree level. We always lower there.
2426
2427 2004-11-24 Paolo Bonzini <bonzini@gnu.org>
2428
2429 PR c++/16882
2430 * tree.c (make_vector_type): Move qualifiers to the vector type,
2431 use the inner type's main variant and build a main variant for
2432 the vector type if necessary.
2433 (type_hash_eq): Check a vector type's TYPE_VECTOR_SUBPARTS.
2434
2435 2004-11-24 Eric Botcazou <ebotcazou@libertysurf.fr>
2436
2437 * target.h (late_rtl_prologue_epilogue): Remove.
2438 * target-def.h (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
2439 * system.h: Poison TARGET_LATE_RTL_PROLOGUE_EPILOGUE.
2440 * passes.c (rest_of_handle_prologue_epilogue): Remove and move
2441 remaining bits to...
2442 (rest_of_handle_flow2): ...here.
2443 (rest_of_compilation): Remove call to rest_of_handle_prologue_epilogue.
2444 * doc/tm.texi (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
2445
2446 2004-11-23 Mark Mitchell <mark@codesourcery.com>
2447
2448 * hwint.h (HOST_LONG_LONG_FORMAT): New macro. Use it throughout.
2449 * config/i386/xm-mingw32.h (HOST_LONG_LONG_FORMAT): Define.
2450 * doc/hostconfig.texi (HOST_LONG_LONG_FORMAT): Document.
2451
2452 2004-11-24 Daniel Jacobowitz <dan@codesourcery.com>
2453
2454 * config/i386/i386.c (override_options): Move
2455 SUBTARGET_OVERRIDE_OPTIONS before defaulting
2456 flag_omit_frame_pointer.
2457
2458 2004-11-23 Richard Henderson <rth@redhat.com>
2459
2460 * rtl.h (validate_subreg): Declare.
2461 * emit-rtl.c (validate_subreg): New.
2462 (gen_rtx_SUBREG): Use it.
2463 * simplify-rtx.c (simplify_subreg): Likewise.
2464 (simplify_gen_subreg): Likewise. Remove duplicate asserts.
2465 * expr.c (emit_move_insn_1): Tidy complex move code. Use memory
2466 fallback whenever gen_realpart/gen_imagpart would not be able to
2467 create SUBREGs.
2468
2469 2004-11-23 Richard Henderson <rth@redhat.com>
2470
2471 * expmed.c (extract_bit_field): Use simplify_gen_subreg instead of
2472 hard-coding avoiding calls to gen_rtx_SUBREG. Split complex return
2473 modes to CONCAT.
2474
2475 2004-11-23 Diego Novillo <dnovillo@redhat.com>
2476
2477 PR tree-optimization/18618
2478 * tree-into-ssa.c (DEF_VEC_MALLOC_P(basic_block)): Declare.
2479 (insert_phi_nodes_for): Change third argument to VEC(basic_block).
2480 * tree-ssa-dom.c (avail_exprs_stack): Change type to VEC(tree_on_heap).
2481 Update all users.
2482 (stmts_to_rescan): Likewise.
2483 (const_and_copies_stack): Likewise.
2484 (nonzero_vars_stack): Likewise.
2485 (vrp_variables_stack): Likewise.
2486
2487 2004-11-23 Richard Henderson <rth@redhat.com>
2488
2489 * cse.c (record_jump_cond_subreg): New.
2490 (record_jump_cond): Use it instead of gen_lowpart.
2491
2492 2004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
2493 Joseph Myers <joseph@codesourcery.com>
2494
2495 * config/sol2-c.c (solaris_register_pragmas): Use
2496 c_register_pragma_with_expansion.
2497 * config/sol2.h (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Define.
2498 * c-pragma.c (c_register_pragma): Update call to
2499 cpp_register_pragma.
2500 (c_register_pragma_with_expansion): New function.
2501 (init_pragma): Honor HANDLE_PRAGMA_PACK_WITH_EXPANSION.
2502 * c-pragma.h (c_register_pragma_with_expansion): New prototype.
2503 * doc/extend.texi (Solaris Pragmas): Mention macro expansion for
2504 #pragma align.
2505 * doc/tm.texi (c_register_pragma_with_expansion,
2506 HANDLE_PRAGMA_PACK_WITH_EXPANSION): Document.
2507
2508 2004-11-23 Richard Henderson <rth@redhat.com>
2509
2510 * combine.c (gen_lowpart_for_combine): Factor out mode of x as well
2511 as mode sizes into local temporaries. Unify failure path.
2512
2513 2004-11-23 Richard Henderson <rth@redhat.com>
2514
2515 * emit-rtl.c, rtl.h (subreg_hard_regno): Remove.
2516 * caller-save.c (mark_set_regs): Use subreg_regno instead.
2517 * final.c (alter_subreg): Likewise.
2518 * local-alloc.c (reg_is_born): Likewise.
2519
2520 2004-11-23 Richard Henderson <rth@redhat.com>
2521
2522 * simplify-rtx.c (simplify_subreg): Use subreg_regno_offset directly
2523 instead of using a SUBREG temporary.
2524
2525 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
2526
2527 * tree-cfg.c (tree_forwarder_block_p): Speed up by reordering
2528 two checks.
2529
2530 2004-11-23 Zack Weinberg <zack@codesourcery.com>
2531
2532 * function.h (struct function): Remove calls_longjmp.
2533 (current_function_calls_longjmp): Delete.
2534 * tree.h (ECF_LONGJMP): Delete.
2535 (ECF_SIBCALL, ECF_PURE, ECF_SP_DEPRESSED, ECF_ALWAYS_RETURN)
2536 (ECF_LIBCALL_BLOCK): Everybody slide down one.
2537 (ECF_CONST, ECF_NORETURN, ECF_SIBCALL): Clarify comments.
2538 * builtins.c (expand_builtin_longjmp): Don't set
2539 current_function_calls_longjmp.
2540 * calls.c (special_function_p): Mark longjmp and siglongjmp
2541 with ECF_NORETURN, not ECF_LONGJMP.
2542 (emit_call_1, expand_call, emit_library_call_value_1):
2543 Don't check for ECF_LONGJMP.
2544 * tree-cfg.c (make_exit_edges, is_ctrl_altering_stmt)
2545 (need_fake_edge_p): Likewise.
2546
2547 * config/avr/avr.h, config/ip2k/ip2k.h: Don't define NON_SAVING_SETJMP.
2548 * system.h: Poison NON_SAVING_SETJMP.
2549 * function.c (use_register_for_decl)
2550 * gcse.c (compute_hash_table_work, compute_store_table)
2551 * postreload-gcse.c (record_opr_changes)
2552 * reload.c (find_equiv_reg)
2553 * reload1.c (reload)
2554 * config/i386/i386.c (ix86_can_use_return_insn_p):
2555 Remove code conditional on NON_SAVING_SETJMP.
2556 * doc/tm.texi: Delete documentation of NON_SAVING_SETJMP.
2557
2558 * config/i386/sysv3.h: Delete file.
2559 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Delete.
2560
2561 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
2562
2563 * tree-vectorizer.c (vect_analyze_operations): Don't vectorize if
2564 the vectorization factor is greater than the iteration count.
2565 (vect_gen_niters_for_prolog_loop): No need to calculate min if the
2566 iteration count is known.
2567
2568 (vect_build_symbol_bound): Removed. Its functionality moved to
2569 vect_generate_tmps_on_preheader.
2570 (vect_generate_tmps_on_preheader): Moved content of
2571 vect_build_symbol_bound here instead of calling it. Changed some
2572 variables names.
2573
2574 (vect_build_loop_niters): We don't expect a new_bb to be generated -
2575 use gcc_assert.
2576 (vect_gen_niters_for_prolog_loop): Likewise.
2577 (vect_gen_niters_for_prolog_loo): Likewise.
2578
2579 (slpeel_make_loop_iterate_ntimes): Use buildN instead of build.
2580 (slpeel_add_loop_guard): Likewise.
2581 (slpeel_tree_peel_loop_to_edge): Likewise.
2582 (vect_do_peeling_for_alignment): Likewise.
2583
2584 (vect_get_first_index): Missing space.
2585
2586 2004-11-23 Ulrich Weigand <uweigand@de.ibm.com>
2587
2588 * config/s390/s390.md ("*iordi3"): Mark commutative.
2589 ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
2590
2591 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
2592
2593 * tree-phinode.c (resize_phi_node): Abort when LEN is strictly
2594 greater than PHI_ARG_CAPACITY.
2595 (reserve_phi_args_for_new_edge): Initialize the new PHI
2596 argument to NULL_TREE. Increment PHI_NUM_ARGS.
2597 (add_phi_arg): Add a PHI argument to the slot given by
2598 E->dest_idx.
2599 (remove_phi_arg_num): Do not write to PHI_ARG_EDGE.
2600 * tree-flow-inline (phi_arg_from_edge): Return E->dest_idx.
2601 * tree-ssa.c (ssa_redirect_edge): Check for a missing PHI
2602 argument by looking at PHI_ARG_DEF.
2603 (verify_phi_args): Check for a missing PHI argument. Remove
2604 the check for duplicate PHI arguments.
2605 * tree.h (PHI_ARG_EDGE): Redefine in terms of EDGE_PRED.
2606 (phi_arg_d): Remove e.
2607
2608 * tree-cfg.c (tree_try_redirect_by_replacing_jump): Speed up
2609 by restricting to the case with two outgoing edges.
2610
2611 2004-11-23 Andreas Krebbel <krebbel1@de.ibm.com>
2612
2613 * config/s390/s390.c (s390_backchain_string): Removed.
2614 (s390_return_addr_rtx, s390_back_chain_rtx, s390_frame_info)
2615 (s390_emit_prologue, s390_va_start, s390_gimplify_va_arg):
2616 Changed users of TARGET_BACKCHAIN, TARGET_NO_BACKCHAIN and
2617 TARGET_KERNEL_BACKCHAIN to reflect the new options.
2618 * config/s390/s390.h (MASK_BACKCHAIN, MASK_PACKED_STACK): New macros.
2619 (TARGET_KERNEL_BACKCHAIN): Removed.
2620 (TARGET_BACKCHAIN): Former triple state option change to a target flag.
2621 (TARGET_PACKED_STACK): New macro.
2622 (TARGET_SWITCHES): New switches added.
2623 (TARGET_OPTIONS): "backchain", "no-backchain" and "kernel-backchain"
2624 removed.
2625 (DYNAMIC_CHAIN_ADDRESS): Use TARGET_PACKED_STACK.
2626 * config/s390/s390.md ("allocate_stack", "restore_stack_block")
2627 ("save_stack_nonlocal", "restore_stack_nonlocal"): Modified to reflect
2628 the change in target switch semantics.
2629 * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Removed.
2630 (TARGET_DEFAULT): MASK_BACKCHAIN added.
2631 * doc/invoke.texi: Added documentation for the new/changed options.
2632
2633 2004-11-23 Uros Bizjak <uros@kss-loka.si>
2634
2635 PR rtl-optimization/18614
2636 * simplify-rtx.c (simplify_binary_operation): Do not
2637 simplify inner elements of constant arguments of
2638 VEC_CONCAT insn.
2639
2640 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
2641
2642 * gthr-solaris.h (__gthread_recursive_mutex_init_function): Use
2643 0 instead of NULL.
2644
2645 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
2646
2647 * tree-phinode.c (make_phi_node): Use a new variable,
2648 capacity, to receive the return value of ideal_phi_node_len.
2649
2650 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
2651
2652 * gthr-solaris.h (__gthread_recursive_mutex_t): New type.
2653 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
2654 __gthread_recursive_mutex_init_function.
2655 (__gthread_key_create): Properly cast -1.
2656 (__gthread_recursive_mutex_init_function): New function.
2657 (__gthread_recursive_mutex_lock): Rewrite.
2658 (__gthread_recursive_mutex_trylock): Likewise.
2659 (__gthread_recursive_mutex_unlock): Likewise.
2660
2661 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
2662
2663 * config/c4x/t-rtems: New.
2664 * config.gcc: Reflect having added c4x/t-rtems.
2665
2666 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
2667
2668 PR tree-opt/18403
2669 PR tree-opt/18505
2670 * tree-vectorizer.c (vect_create_data_ref_ptr): Use
2671 lang_hooks.types.type_for_size instead of integer_type_node for the
2672 type of ptr_update.
2673
2674 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
2675
2676 * config.gcc (h8300-*-rtems*): Use h8300/t-rtems.
2677
2678 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
2679
2680 * config/arm/t-rtems: New.
2681 * config.gcc: Reflect having added arm/t-rtems.
2682
2683 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
2684
2685 * tree-cfg.c (tree_execute_on_growing_pred): New.
2686 (tree_cfg_hooks): Add tree_execute_on_growing_pred.
2687 * tree-flow.h: Add a prototype for
2688 reserve_phi_args_for_new_edge.
2689 * tree-phinodes.c (reserve_phi_args_for_new_edge): New.
2690 (add_phi_arg): Don't resize a PHI array.
2691
2692 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
2693
2694 * config.gcc: Add avr-*-rtems*.
2695 * config/avr/t-rtems: New.
2696 * config/avr/rtems.h: New.
2697
2698 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
2699
2700 * df.c (dataflow_set_a_op_b): Remove reslt parameter, since it's
2701 always the same as op1. Use bitmap_ior_into and bitmap_and_into.
2702 Add comment to function.
2703
2704 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2705
2706 PR pch/14940
2707 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __hppa__.
2708
2709 PR rtl-optimization/14838
2710 * emit-rtl.c (get_first_nonnote_insn): Don't assume first insn is a
2711 note.
2712 (get_last_nonnote_insn): Don't assume last insn is a note.
2713
2714 2004-11-22 Roger Sayle <roger@eyesopen.com>
2715
2716 * fold-const.c (nondestructive_fold_binary_to_constant): Rename
2717 to fold_binary_to_constant.
2718 (nondestructive_fold_unary_to_constant): Likewise, rename to
2719 fold_unary_to_constant.
2720 (fold_relational_hi_lo): Update call to fold_binary_to_constant.
2721 * tree.h (nondestructive_fold_binary_to_constant): Update prototype.
2722 (nondestructive_fold_unary_to_constant): Likewise.
2723 * tree-ssa-ccp.c (ccp_fold): Update calls to fold_unary_to_constant
2724 and fold_binary_to_constant.
2725 * tree-ssa-loop-niter.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
2726 (inverse, number_of_iterations_cond): Replace uses of EXEC_BINARY
2727 and EXEC_UNARY with calls to fold_*nary_to_constant.
2728 * tree-ssa-loop-ivopts.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
2729 (idx_find_step): Replace uses of EXEC_BINARY with calls to
2730 fold_binary_to_constant.
2731
2732 2004-11-22 Nick Clifton <nickc@redhat.com>
2733
2734 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
2735 initialisation of 'e'.
2736
2737 2004-11-22 Roger Sayle <roger@eyesopen.com>
2738
2739 * config/i386/i386.h (TARGET_USE_FANCY_MATH_387): New macro.
2740 * config/i386/i386.c (override_options): Set MASK_NO_FANCY_MATH_387
2741 automatically for targets without TARGET_80387.
2742 * config/i386/i386.md (sqrtsf2, sqrtsf2_1, sqrtsf2_i387, sqrtdf2,
2743 sqrtdf2_1, sqrtdf2_i387, *sqrtextendsfdf2, sqrtxf2,
2744 *sqrtextenddfxf2, *sqrtextendsfxf2, fpremxf4, fmodsf3, fmoddf3,
2745 fmodxf3, fprem1xf4, dremsf3, dremdf3, dremxf3, *sindf2, *sinsf2,
2746 *sinextendsfdf2, *sinxf2, *cosdf2, *cossf2, *cosextendsfdf2,
2747 *cosxf2, sincosdf3, sincossf3, *sincosextendsfdf3, sincosxf3,
2748 *tandf3_1, tandf2, *tansf3_1, tansf2, *tanxf3_1, tanxf2,
2749 atan2df3_1, atan2df3, atandf2, atan2sf3_1, atan2sf3, atansf2,
2750 atan2xf3_1, atan2xf3, atanxf2, asindf2, asinsf2, asinxf2,
2751 acosdf2, acossf2, acosxf2, fyl2x_xf3, logsf2, logdf2, logxf2,
2752 log10sf2, log10df2, log10xf2, log2sf2, log2df2, log2xf2,
2753 fyl2xp1_xf3, log1psf2, log1pdf2, log1pxf2, *fxtractxf3, logbsf2,
2754 logbdf2, logbxf2, ilogbsi2, *f2xm1xf2, *fscalexf4, expsf2,
2755 expdf2, expxf2, exp10sf2, exp10df2, exp10xf2, exp2sf2, exp2df2,
2756 exp2xf2, expm1df2, expm1sf2, expm1xf2, frndintxf2, rintdf2,
2757 rintsf2, rintxf2, frndintxf2_floor, floordf2, floorsf2,
2758 floorxf2, frndintxf2_ceil, ceildf2, ceilsf2, ceilxf2,
2759 frndintxf2_trunc, btruncdf2, btruncsf2, btruncxf2,
2760 frndintxf2_mask_pm, nearbyintdf2, nearbyintsf2, nearbyintxf2):
2761 Simplify conditionals using TARGET_USE_FANCY_MATH_387.
2762
2763 2004-11-22 Dale Johannesen <dalej@apple.com>
2764
2765 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Conditionalize
2766 properly and comment.
2767
2768 2004-11-22 James A. Morrison <phython@gcc.gnu.org
2769
2770 * config/sparc/sparc.c: Include insn-codes.h and langhooks.h.
2771 (sparc_init_builtins): New function.
2772 (sparc_init_vis_builtins): Create builtin functions for VIS
2773 instructions.
2774 (sparc_expand_builtin): Expand builtin functions for VIS instructions.
2775 (TARGET_INIT_BUILTINS): Define to sparc_init_builtins.
2776 (TARGET_EXPAND_BUILTIN): Define to sparc_expand_builtin.
2777 (def_builtin): New macro for creating builtin functions.
2778 (P): New mode macro for pointer types.
2779 (UNSPEC_FPACK16, UNSPEC_FPACK32, UNSPEC_FPACKFIX, UNSPEC_FEXPAND,
2780 UNSPEC_FPMERGE, UNSPEC_MUL16AL, UNSPEC_MUL8UL, UNSPEC_MULDUL,
2781 UNSPEC_ALIGNDATA, UNSPEC_ALIGNADDR, UNSPEC_PDIST): New constants.
2782 (fpack16_vis, fpackfix_vis, fpack32_vis, fexpand_vis, fpmerge_vis,
2783 fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
2784 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis, pdist_vis,
2785 faligndata<V64:mode>_vis, alignaddr<P:mode>_vis): New patterns.
2786
2787 2004-11-22 Devang Patel <dpatel@apple.com>
2788
2789 * tree-if-conv.c (clean_predicate_lists): Clean all basic blocks.
2790
2791 2004-11-22 Devang Patel <dpatel@apple.com>
2792
2793 * tree-if-conv.c (if_convertable_phi_p): Rename to ...
2794 (if_convertible_phi_p): ... new name.
2795 (if_convertable_modify_expr_p): Rename to ...
2796 (if_convertible_modify_expr_p): ... new name.
2797 (if_convertable_stmt_p): Rename to ...
2798 (if_convertible_stmt_p): ... new name.
2799 (if_convertable_bb_p): Rename to ...
2800 (if_convertible_bb_p): ... new name.
2801 (if_convertable_loop_p): Rename to ...
2802 (if_convertible_loop_p): ... new name.
2803
2804 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
2805
2806 PR target/18444
2807 * configure.ac (threading): Accept 'posix95'.
2808 * configure: Regenerate.
2809 * config.gcc (i[34567]86-*-solaris2*): On Solaris up to 2.6,
2810 include sol26.h and default to posix95 threads if have_pthread_h.
2811 (sparc-*-solaris2*): Likewise.
2812 * gthr.h: Include gthr-posix95.h if _PTHREADS95 is defined.
2813 * gthr-posix95.h: New file.
2814 * config/sol26.h: New file.
2815 * doc/install.texi (--enable-threads): Document 'posix95'.
2816
2817 2004-11-23 Ben Elliston <bje@au.ibm.com>
2818
2819 * pointer-set.h (pointer_set_contains): Remove.
2820 * pointer-set.c (pointer_set_contains): Likewise.
2821
2822 2004-11-22 Dale Johannesen <dalej@apple.com>
2823
2824 * calls.c (expand_call): Do not call preserve_temp_slots.
2825
2826 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
2827
2828 * tree-flow.h: Remove the prototype for remove_phi_arg.
2829 Add a prototype for remove_phi_args.
2830 * tree-phinodes.c (remove_phi_arg): Remove.
2831 (remove_phi_args): New.
2832 * tree-ssa.c (ssa_remove_edge): Call remove_phi_args instead
2833 of remove_phi_arg.
2834
2835 * cfg.c (unchecked_make_edge): Call execute_on_growing_pred
2836 after making an edge.
2837 (remove_edge): Call execute_on_shrinking_pred before removing
2838 an edge.
2839 (redirect_edge_succ): Call execute_on_growing_pred and
2840 execute_on_shrinking_pred.
2841 * cfghooks.c (execute_on_growing_pred): New.
2842 (execute_on_shrinking_pred): Likewise.
2843 * cfghooks.h (cfg_hooks): Add execute_on_growing_pred and
2844 execute_on_shrinking_pred.
2845 Add prototypes for execute_on_growing_pred and
2846 execute_on_shrinking_pred.
2847 * cfgrtl.c (rtl_cfg_hooks): Add NULL hooks to
2848 execute_on_growing_pred and execute_on_shrinking_pred.
2849 (cfg_layout_rtl_cfg_hook): Likewise.
2850 * tree-cfg.c (tree_cfg_hooks): Likewise.
2851
2852 * tree-cfg.c (tree_execute_on_shrinking_pred): New.
2853 (tree_cfg_hooks): Use it.
2854 * tree-ssa.c (ssa_remove_edge): Don't call remove_phi_args.
2855 (ssa_redirect_edge): Don't call remove_phi_arg_num.
2856
2857 * tree-phinodes.c (remove_phi_arg_num): Make it static.
2858 * tree-flow.h: Remove the corresponding prototype.
2859
2860 * tree-ssa.c (ssa_remove_edge): Remove.
2861 * tree-flow.h: Remove the corresponding prototype.
2862 * tree-cfg.c: Replace ssa_remove_edge with remove_edge.
2863 * basic-block.h: Likewise.
2864 * tree-if-conv.c: Likewise.
2865 * tree-ssa-threadupdate.c: Likewise.
2866
2867 2004-11-23 Ben Elliston <bje@au.ibm.com>
2868
2869 * doc/cfg.texi (Maintaining the CFG): Use @ftable instead of
2870 @table to list the BSI methods. Use individual @findex directives
2871 instead of one with a comma-separated list of index entries.
2872
2873 2004-11-22 Zdenek Dvorak <dvorakz@suse.cz>
2874
2875 PR tree-optimization/18529
2876 * fold-const.c (fold_to_nonsharp_ineq_using_bound): New function.
2877 (simple_operand_p): Use STRIP_NOPS. Consider SSA names simple.
2878 (fold): Call fold_to_nonsharp_ineq_using_bound.
2879 * tree-ssa-loop-niter.c (simplify_replace_tree): New function.
2880 (number_of_iterations_cond): Fold the expressions before futher
2881 processing.
2882 (tree_simplify_using_condition): Handle case when cond or expr is
2883 an EQ_EXPR specially.
2884
2885 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
2886
2887 * tree-ssa.c (verify_ssa): SSA_OP_ALL_USES should be
2888 SSA_OP_ALL_USES | SSA_OP_ALL_KILLS for verification purposes.
2889
2890 2004-11-22 David Edelsohn <edelsohn@gnu.org>
2891 Fariborz Jahanian <fjahanian@apple.com>
2892
2893 * config/rs6000/rs6000.c (rs6000_return_in_memory): Test
2894 TARGET_ALTIVEC_ABI.
2895 (function_arg_boundary): Align 8 to 16 byte vectors like SPE.
2896 Align 16 byte and larger vectors like Altivec.
2897 (function_arg_advance): Pass any 16 byte vector like Altivec vector.
2898 (function_arg): Same.
2899 (rs6000_pass_by_references): Test TARGET_ALTIVEC_ABI.
2900
2901 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
2902
2903 PR tree-opt/18572
2904 * tree-sra.c (scalarize_init): Unshare the rhs before gimplifying
2905 it.
2906
2907 2004-11-22 Richard Henderson <rth@redhat.com>
2908
2909 * function.c (assign_parm_setup_block): Revert 11-13 change to
2910 forcably re-mode a (possibly BLKmode) hard register.
2911
2912 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
2913
2914 * config/sparc/sparc.c (mem_min_alignment): Check MEM_ALIGN.
2915
2916 2004-11-22 David Edelsohn <edelsohn@gnu.org>
2917
2918 * config/rs6000/power4.md: Remove delay between dispatch and issue
2919 associated with dispatch group slots 3 and 4.
2920 * config/rs6000/power5.md: Same.
2921
2922 2004-11-21 Jeff Law <law@redhat.com>
2923
2924 * cfg.c (cached_make_edge): Use find_edge rather than an inlined
2925 variant.
2926 * cfgbuild.c (make_edges): Likewise.
2927 * cfghooks.c (can_duplicate_block_p): Likewise.
2928 * cfgloop.c (loop_latch_edge): Likewise.
2929 * cfgloopmanip.c (force_single_succ_latches): Likewise.
2930 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
2931 * predict.c (predict_loops, propagate_freq): Likewise.
2932 * tracer.c (tail_duplicate): Likewise.
2933 * tree-cfg.c (disband_implicit_edges): Likewise.
2934 (tree_forwarder_block_p, tree_flow_call_edges_add): Likewise.
2935
2936 2004-11-22 Nick Clifton <nickc@redhat.com>
2937
2938 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
2939 initialisation of 'e'.
2940
2941 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
2942
2943 PR rtl-optimization/18599
2944 * regrename.c (copyprop_hardreg_forward): Speed up by putting
2945 BB_VISITED flags on basic blocks as we process them.
2946
2947 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
2948
2949 PR target/18531
2950 * config/rs6000/altivec.md (VI_char): New mode attribute.
2951 (addv16qi3, addv8hi3, addv4ai3): Replace with ...
2952 (add<mode>3): ... this.
2953 (subv16qi3, subv8hi3, subv4ai3): Replace with ...
2954 (sub<mode>3): ... this.
2955 (smaxv16qi3, smaxv8hi3, smaxv4ai3): Replace with ...
2956 (smax<mode>3): ... this.
2957 (sminv16qi3, sminv8hi3, sminv4ai3): Replace with ...
2958 (smin<mode>3): ... this.
2959 (umaxv16qi3, umaxv8hi3, umaxv4ai3): Replace with ...
2960 (umax<mode>3): ... this.
2961 (uminv16qi3, uminv8hi3, uminv4ai3): Replace with ...
2962 (umin<mode>3): ... this.
2963 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
2964 (and<mode>3): ... this.
2965 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
2966 (ior<mode>3): ... this.
2967 (xorv16qi3, xorv8hi3, xorv4ai3): Replace with ...
2968 (xor<mode>3): ... this.
2969 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
2970 (and<mode>3): ... this.
2971 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
2972 (ior<mode>3): ... this.
2973 (altivec_vnor): Replace with ...
2974 (altivec_nor<mode>): ... this.
2975 (one_cmplv16qi2, one_cmplv8hi2, one_complv4ai2): Replace with ...
2976 (one_cmpl<mode>2): ... this.
2977 (altivec_vandc): New expander.
2978 (*andc<mode>3): New insn.
2979 * config/rs6000/rs6000.c (bdesc_2arg): Adjust for new insn names.
2980
2981 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
2982
2983 PR tree-opt/18536
2984 * tree-vectorizer.c (make_loop_iterate_ntimes): Use type of niters when
2985 creating iv instead of integer_type.
2986 (vect_build_loop_niters): Remove redundant code.
2987 (vect_transform_loop_bound): Removed (duplicates functionality of
2988 make_loop_iterate_ntimes.
2989 (vect_gen_niters_for_prolog_loop): Add documentation. Call
2990 lang_hooks.types.type_for_size to create a type of the required size.
2991 Use that type instead of integer_type. Remove redundant code.
2992 (vect_update_niters_after_peeling): Use type of niters instead of
2993 integer_type.
2994 (vect_transform_loop): Unify handling of known and unknown loop bound
2995 cases. Call make_loop_iterate_ntimes instead of
2996 vect_transform_loop_bound.
2997
2998 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
2999
3000 PR target/18217
3001 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Move darwin-fallback.c to
3002 (LIB2ADDEH): Here.
3003
3004 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
3005
3006 PR tree-opt/18544
3007 * tree-vectorizer.c (vect_analyze_data_refs): Fail if memtag not found.
3008
3009 2004-11-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3010
3011 * config.gcc: Use t-slibgcc-elf to build libgcc_s.so on
3012 m32r*linux.
3013 * config/m32r/t-linux (SHLIB_MAPFILES): Override to use
3014 m32r/libgcc-glibc.ver.
3015 * config/m32r/libgcc-glibc.ver: Add New file.
3016
3017 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
3018
3019 * bitmap.h (struct bitmap_obstack): New obstack type.
3020 (struct bitmap_head_def): Replace using_obstack with obstack
3021 pointer.
3022 (bitmap_default_obstack): New.
3023 (bitmap_initialize): Make inline, does not do allocation.
3024 (bitmap_release_memory): Remove.
3025 (bitmap_obstack_initialize, bitmap_obstack_release): Declare.
3026 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
3027 bitmap_obstack_free, bitmap_malloc_free): Declare.
3028 (BITMAP_OBSTACK_ALLOC, BITMAP_GGC_ALLOC, BITMAP_XMALLOC): Adjust.
3029 (BITMAP_FREE): Replace with ...
3030 (BITMAP_OBSTACK_FREE): ... this.
3031 (BITMAP_XFREE): Adjust.
3032 (BITMAP_INIT_ONCE): Remove.
3033 * bitmap.c (bitmap_obstack, bitmap_obstack_init, bitmap_free: Remove.
3034 (bitmap_default_obstack): New.
3035 (bitmap_elem_to_freelist): Adjust.
3036 (bitmap_element_allocate): Adjust. Break initialization into ...
3037 (bitmap_obstack_initialize): ... here.
3038 (bitmap_release_memory): Replace with ...
3039 (bitmap_obstack_release): ... this.
3040 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
3041 bitmap_obstack_free, bitmap_malloc_free): New.
3042 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Use
3043 bitmap_initialize.
3044 (bitmap_initialize): Move to bitmap.h.
3045 * gengtype.c (open_base_files): Add obstack.h to ifiles.
3046 * Makefile.in (BASIC_BLOCK_H, REGS_H): Add obstack.h.
3047 * basic-block.h (INIT_REG_SET): Allocate from reg_obstack.
3048 (INITIALIZE_REG_SET): Remove.
3049 (FREE_REG_SET): Use BITMAP_OBSTACK_FREE.
3050 (INIT_ONCE_REG_SET, MAX_REGNO_REG_SET): Remove.
3051 (flow_obstack): Do not declare.
3052 (reg_obstack): Declare.
3053 * regs.h: Include obstack.h.
3054 * tree-optimize.c (tree_rest_of_compilation): Initialize and
3055 release bitmap obstack here.
3056 * bb-reorder.c: #include regs, not basic-block.
3057 (fix_crossing_conditional_branches): Allocate regsets from
3058 reg_obstack.
3059 * bt-load.c: Do not inlude bitmap.h, sbitmap.h, basic-block.h or
3060 obstack.h.
3061 * caller-save.c: Include regs.h earlier.
3062 * cfg.c: Do not include basic-block.h or obstack.h.
3063 (reg_obstack): Define.
3064 * cfganal.c: Include obstack.h
3065 * cfgcleanyp.c: Do not include basic-block.h. Include regs.h
3066 earlier.
3067 * cfglayout.c: Do not include obstack.h.
3068 (flow_obstack): Remove declaration.
3069 (cfg_layout_duplicate_bb): Use reg_obstack.
3070 * cfgloop.c, cfgloopanal.c, cfgloopmanip.c: Include obstack.h.
3071 * cfgrtl.c (rtl_split_block): Use reg_obstack.
3072 (force_nonfallthru_and_redirect, rtl_split_edge): Likewise.
3073 (safe_insert_insn_on_edge): Use OBSTACK_ALLOC_REG_SET, adjust.
3074 (cfg_layout_split_edge): Use reg_obstack.
3075 * cse.c: Include regs.h earlier.
3076 * ddg.c: Do not include basic-block.h.
3077 * dominance.c: Inlude obstack.h.
3078 * flow.c (update_life_info): Use OBSTACK_ALLOC_REG_SET, adjust.
3079 (calculate_global_regs_live): Likewise.
3080 (allocate_bb_life_data): Use reg_obstack.
3081 (init_propagate_block_info): Use OBSTACK_ALLOC_REGSET.
3082 * global.c: Do not include basic-block.h.
3083 (build_insn_chain): Use OBSTACK_ALLOC_REG_SET, adjust.
3084 * graph.c: Include obstack.h.
3085 * haifa-sched.c: Do not include basic-block.h.
3086 * ifcvt.c: Use OBSTACK_ALLOC_REG_SET, adjust.
3087 * local-alloc.c: Do not include basic-block.h.
3088 * loop-init.c, loop-invariant.c: Include obstack.h.
3089 * loop-iv.c: Likewise.
3090 (simplify_using_initial_values): Use OBSTACK_ALLOC_REG_SET,
3091 adjust.
3092 * loop-unroll.c, loop-unswitch.c: Inlude obstack.h.
3093 * modulo-sched.c: Do not include basic-block.h.
3094 * passes.c (rest_of_handle_final): Do not call
3095 regset_release_memory.
3096 * ra-debug.c: Include regs.h earlier. Do not include
3097 basic-block.h.
3098 * recog.c (peephole2_optimize): Use OBSTACK_ALLOC_REG_SET, adjust.
3099 * regclass.c (init_reg_sets): Do not call INIT_ONCE_REG_SET.
3100 (allocate_reg_info): Do not call MAX_REGNO_REG_SET.
3101 (regset_release_memory): Remove.
3102 * resource.c: Do not include basic-block.h.
3103 * rtlanal.c: Do not include basic-block.h.
3104 * sbitmap.c: Include obstack.h.
3105 * sched-deps.c: Do not include basic-block.h.
3106 (reg_pending_sets_head, reg_pending_clobbers_head,
3107 reg_pending_uses_head): Remove.
3108 (init_deps_global): Use OBSTACK_ALLOC_REG_SET.
3109 * sched-ebb.c: Do not include basic-block.h.
3110 * sched-rgn.c: Likewise.
3111 * tree-if-conv.c (get_loop_body_in_if_conv_order): Use
3112 BITMAP_XFREE.
3113 * tree-outof-ssa.c (perform_edge_inserts): Use BITMAP_XFREE.
3114 * tree-sra.c (decide_instantiations): Adjust bitmap
3115 initialization.
3116 * tree-ssa-dce.c: Include obstack.h.
3117 * tree-ssa-pre.c (grand_bitmap_obstack): Make a bitmap_obstack.
3118 (value_insert_into_set_bitmap): Remove useless bitmap_clear.
3119 (bitmap_set_new): Likewise.
3120 (init_pre): Initialize bitmap obstack.
3121 (fini_pre): Release bitmap obstack.
3122 * tree-ssanames.c (ssa_names_to_rewrite): Make static.
3123 (marked_for_rewrite_p): ssa_names_to_rewrite is never NULL.
3124 (mark_for_rewrite, unmark_for_rewrite): Likewise.
3125 (marked_ssa_names): Likewise.
3126 (init_ssanames): Use BITMAP_XMALLOC.
3127 (fini_ssanames): Use BITMAP_XFREE.
3128 * web.c: Include obstack.h
3129
3130 2004-11-22 Nick Clifton <nickc@redhat.com>
3131
3132 * sbitmap.c (sbitmap_union_of_preds): Set 'e' to the next edge
3133 predecessor in the first for-loop.
3134
3135 2004-11-21 Stan Shebs <shebs@apple.com>
3136
3137 * config/rs6000/rs6000.c: (rs6000_darwin64_function_arg): Add
3138 UNION_TYPE case.
3139 (function_arg): Move darwin test up, sniff mode first for
3140 efficiency, test for union type.
3141
3142 2004-11-21 Dale Johannesen <dalej@apple.com>
3143
3144 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
3145
3146 2004-11-21 Jeff Law <law@redhat.com>
3147
3148 * tree-ssa.c (verify_use): Fix comment.
3149 (verify_phi_args): Check that the number of incoming edges matches
3150 the number of PHI arguments. Check that each PHI argument is
3151 either an SSA_NAME or an invariant. Coalesce tests for PHIs for
3152 dead or duplicated edges. Clear e->aux earlier and avoid separate
3153 loop to clear e->aux and test for missed edges.
3154 (verify_ssa): Remove first walk over statements. Move checking
3155 of PHI args into verify_phi_args. Move checking of statements
3156 with aliased stores and V_MAY_DEFS into the remaining loop over
3157 the statements. Register defs by walking through the formal
3158 SSA_NAME table.
3159
3160 2004-11-21 Roger Sayle <roger@eyesopen.com>
3161
3162 PR middle-end/18520
3163 * dojump.c (compare_from_rtx): Clarify mode argument in function
3164 description. Correct order of mode/cmp_mode arguments in call to
3165 simplify_relational_operation. Check "tem" for COMPARISON_P.
3166
3167 2004-11-21 Paolo Bonzini <bonzini@gnu.org>
3168 David Edelsohn <edelsohn@gnu.org>
3169
3170 PR target/17836
3171 * config/rs6000/rs6000.c (rs6000_return_in_memory): Return
3172 synthetic vectors in memory.
3173 (function_arg_boundary): Align large synthetic vectors.
3174 (rs6000_pass_by_reference): Pass synthetic vectors in memory.
3175
3176 2004-11-21 Jeff Law <law@redhat.com>
3177
3178 * cfg.c (update_bb_profile_for_threading): Do not rescale the
3179 successor probabilities if they are not going to change. Pull
3180 division out of loop if we do need to rescale successor probabilities.
3181
3182 * tree-ssa-threadupdate.c (redirection_data_hash): Use the
3183 index of the destination block for the hash value rather than
3184 hashing a pointer.
3185
3186 2004-11-20 Joseph S. Myers <joseph@codesourcery.com>
3187
3188 * c-typeck.c (build_array_ref): Don't check for index == 0. Make
3189 checks for neither argument being an array or pointer (swapping
3190 the arguments if necessary), the array argument being a pointer to
3191 or array of functions and for -Wchar-subscripts warnings upfront.
3192
3193 2004-11-20 Jeff Law <law@redhat.com>
3194
3195 * regrename.c (copyprop_hardreg_forward): Only search for a
3196 previously processed block if the current block only has one
3197 predecessor.
3198
3199 2004-11-20 Kazu Hirata <kazu@cs.umass.edu>
3200
3201 * tree-ssa-threadupdate.c, tree-vectorizer.c: Fix comment
3202 typos.
3203 * config/arm/arm.c: Follow spelling conventions.
3204
3205 2004-11-20 Richard Earnshaw <rearnsha@arm.com>
3206
3207 * arm.c (arm_override_options): Use arm_ld_sched rather than testing
3208 a bit in tune_flags.
3209 (const_double_needs_minipool): Likewise. Split most of the code out
3210 into ...
3211 (arm_const_double_inline_cost): ... new function here.
3212 * arm-protos.h (arm_const_double_inline_cost): Add prototype.
3213 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Add D[abc] constraints for double-
3214 word constants of length 2, 3 and 4 insns respectively.
3215 (CONSTRAINT_LEN): The 'D' prefix is a 2-letter constraint.
3216 * arm.md (arm_movdi, movdf_soft_insn): Add alternatives for D[abc]
3217 constraints. Set insn lenghts accordingly.
3218
3219 2004-11-19 Jeff Law <law@redhat.com>
3220
3221 * tree-ssa-threadupdate.c: Replace REDIRECTION_DATA varray with
3222 a hash table. Extensive modifications throughout to support
3223 that change.
3224 (struct el): New.
3225 (struct local_info): New.
3226 (struct redirection_data): Add new INCOMING_EDGES and DO_NOT_DUPLICATE
3227 fields.
3228 (redirection_data): Now a hashtable.
3229 (redirection_data_hash, redirection_data_eq): New.
3230 (lookup_redirection_data, create_duplicates): New.
3231 (create_edge_and_update_destionation_phis): New.
3232 (fixup_template_block, redirect_edges): New.
3233 (thread_block): Use hash table traversals instead of loops over
3234 varray entries or incoming edge vectors.
3235
3236 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
3237
3238 * basic-block.h (edge_def): Add dest_idx.
3239 * cfg.c (unchecked_make_edge): Initialize dest_idx.
3240 (remove_edge): Simplify the disconnection of an edge from its
3241 destination.
3242 (redirect_edge_succ): Likewise.
3243 * cfghooks.c (verify_flow_info): Check the consistency of
3244 dest_idx for each edge.
3245
3246 2004-11-19 Aldy Hernandez <aldyh@redhat.com>
3247
3248 * simplify-rtx.c (simplify_ternary_operation): Use
3249 gen_int_mode.
3250
3251 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
3252
3253 * tree-cfg.c (reinstall_phi_args): New.
3254 (tree_split_edge): Use it after redirecting an edge. Don't
3255 modify PHI_ARG_EDGE.
3256
3257 2004-11-19 Andreas Tobler <a.tobler@schweiz.ch>
3258
3259 * tree-vectorizer.c (slpeel_verify_cfg_after_peeling): Define only
3260 if checking is enabled.
3261
3262 2004-11-19 Joseph S. Myers <joseph@codesourcery.com>
3263
3264 * c-decl.c (push_scope): Remove "\n" from end of diagnostic for
3265 too many nested scopes.
3266
3267 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
3268
3269 PR tree-opt/18181
3270 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Peeling scheme
3271 changed to suppoer uses-after-loop and to void creating flow paths
3272 that shouldn't exist.
3273 (slpeel_update_phi_nodes_for_guard): Takes additional two arguments.
3274 Modified to fit the new peeling scheme. Avoid quadratic behavior.
3275 (slpeel_add_loop_guard): Takes additional argument.
3276 (slpeel_verify_cfg_after_peeling): New function.
3277 (vect_update_ivs_after_vectorizer): Takes additional argument. Updated
3278 documentation. Use 'exit-bb' instead of creating 'new-bb'.
3279 (rename_variables_in_bb): Don't update phis for BBs out of loop, to fit
3280 the new peeling scheme.
3281 (copy_phi_nodes): Function removed. Its functionality moved to
3282 update_phis_for_duplicate_loop.
3283 (slpeel_update_phis_for_duplicate_loop): Functionality of copy_phi_nodes
3284 moved here. Added documentation. Modified to fit the new peeling scheme.
3285 (slpeel_make_loop_iterate_ntimes): Setting loop->single_exit not not
3286 needed - done in slpeel_tree_peel_loop_to_edge.
3287 (slpeel_tree_duplicate_loop_to_edge_cfg): Debug printouts compacted.
3288 (vect_do_peeling_for_loop_bound): Add documentation. Call
3289 slpeel_verify_cfg_after_peeling. Call vect_update_ivs_after_vectorizer
3290 with additional argument.
3291 (vect_do_peeling_for_alignment): Call slpeel_verify_cfg_after_peeling.
3292
3293 (vect_finish_stmt_generation): Avoid 80 column oveflow.
3294
3295 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
3296
3297 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Last two
3298 arguments removed.
3299 (slpeel_tree_peel_loop_to_edge): Call slpeel_make_loop_iterate_ntimes
3300 without last two arguments. Update single_exit of loops.
3301 (vect_update_niters_after_peeling): Removed. Its functionality was
3302 moved to vect_do_peeling_for_alignment.
3303 (vect_do_peeling_for_loop_bound): New name for function previously
3304 called vect_transform_for_unknown_loop_bound.
3305 (vect_transform_loop_bound): Call slpeel_make_loop_iterate_ntimes
3306 instead of code that duplicates the same functionality.
3307 (vect_do_peeling_for_alignment): Functionality of
3308 vect_update_niters_after_peeling moved here.
3309 (vect_transform_loop): Unify call to vect_do_peeling_for_loop_bound -
3310 previously named vect_transform_for_unknown_loop_bound - for both known
3311 and unknown loop bound cases.
3312
3313 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
3314
3315 * tree-vectorizer.c (slpeel_can_duplicate_loop_p): New name for function
3316 previously called verify_loop_for_duplication. All conditions compacted
3317 into one compound condition. Removed debug dumps.
3318 (vect_analyze_loop_with_symbolic_num_of_iters): Removed. Some of the
3319 functionality moved to vect_can_advance_ivs_p, and some to
3320 vect_analyze_loop_form.
3321 (vect_can_advance_ivs_p): New function. Contains functionality that was
3322 taken out of vect_analyze_loop_with_symbolic_num_of_iters.
3323 (slpeel_tree_peel_loop_to_edge): Call slpeel_can_duplicate_loop_p.
3324 (vect_analyze_operations): Call vect_can_advance_ivs_p and
3325 slpeel_can_duplicate_loop_p.
3326 (vect_get_loop_niters): Added documentation.
3327 (vect_analyze_loop_form): Check the loop entry always - not only in case
3328 of unknown loop bound. Create preheader and exit bb if necessary. Apply
3329 a check that used to take place in
3330 vect_analyze_loop_with_symbolic_num_of_iters.
3331 (vectorize_loops): Call verify_loop_closed_ssa under ENABLE_CHECKING.
3332 Remove redundant call to rewrite_into_loop_closed_ssa.
3333 (vect_compute_data_refs_alignment): Removed obsolete comment.
3334
3335 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
3336
3337 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): New name for
3338 function previously called tree_duplicate_loop_to_edge.
3339 (slpeel_tree_duplicate_loop_to_edge_cfg): New name for function
3340 previously called tree_duplicate_loop_to_edge_cfg.
3341 (slpeel_update_phis_for_duplicate_loop): Prefix 'slpeel' added to
3342 function name.
3343 (slpeel_update_phi_nodes_for_guard): Likewise.
3344 (slpeel_make_loop_iterate_ntimes): Likewise.
3345 (slpeel_add_loop_guard): Likewise.
3346 (allocate_new_names, free_new_names): Function declaration moved to top
3347 of file.
3348 (rename_use_op, rename_def_op): Likewise.
3349 (rename_variables_in_bb, rename_variables_in_loop): Likewise.
3350 (vect_generate_tmps_on_preheader): Function declaration moved.
3351 (vect_transform_for_unknown_loop_bound): Added missing function
3352 declaration.
3353
3354 2004-11-19 Andrew Pinski <pinskia@physics.uc.edu>
3355
3356 PR tree-opt/18507
3357 * tree-flow.h (tree_on_heap): Typedef because there is already a VEC(tree).
3358 Define a VEC(tree_on_heap) for head.
3359 (register_new_def): Change second argument to be a VEC(tree_on_heap).
3360 * tree-ssa-dom.c (block_defs_stack): Change to be a VEC(tree_on_heap).
3361 (tree_ssa_dominator_optimize): Initialize block_defs_stack with
3362 the VEC(tree_on_heap) function. Also free it before returning.
3363 (dom_opt_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
3364 for block_defs_stack.
3365 (restore_currdefs_to_original_value): Use VEC_length instead of
3366 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
3367 (dom_opt_finalize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
3368 for block_defs_stack.
3369 * tree-into-ssa.c (block_defs_stack): Change to be a VEC(tree_on_heap).
3370 (rewrite_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
3371 for block_defs_stack.
3372 (ssa_register_new_def): Likewise.
3373 (ssa_rewrite_initialize_block): Likewise.
3374 (rewrite_finalize_block): Use VEC_length instead of
3375 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
3376 (ssa_rewrite_finalize_block): Likewise.
3377 (register_new_def): Change second argument to be a VEC(tree_on_heap).
3378 Use VEC_safe_push instead of VARRAY_PUSH_TREE.
3379 (rewrite_blocks): Initialize block_defs_stack with
3380 the VEC(tree_on_heap) function. Also free it before returning.
3381 (rewrite_ssa_into_ssa): Likewise.
3382
3383 2004-11-19 Fariborz Jahanian <fjahanian@apple.com>
3384
3385 * config/darwin.c (machopic_data_defined_p): return 1 for
3386 MACHOPIC_DEFINED_FUNCTION.
3387
3388 2004-11-19 Jeff Law <law@redhat.com>
3389
3390 * tree-ssa.c (verify_ssa): Remove redundant checking of PHI
3391 arguments.
3392
3393 2004-11-19 Paul Brook <paul@codesourcery.com>
3394
3395 PR target/17735
3396 * varasm.c (default_assemble_integer): Allow pointer-sized values.
3397 Expand comment.
3398
3399 2004-11-19 Nick Clifton <nickc@redhat.com>
3400
3401 * config/stormy16/stormy16.c (combine_bnp): Add code to handle
3402 zero_extension and lshiftrt insns.
3403 Replace uses of XEXP(...) with either SET_DEST() or SET_SRC()
3404 where appropriate.
3405 * config/stormy16.stormy16.md (bclrx3, bsetx3): New patterns
3406 to handle bp and bn insn patterns with a zero_extend rtx
3407 inside them.
3408
3409 2004-11-19 Ian Lance Taylor <ian@wasabisystems.com>
3410
3411 * config/arm/arm.md (generic_sched): Make const.
3412
3413 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
3414
3415 * emit-rtl.c (classify_insn): Make it static.
3416 * rtl.h: Remove the corresponding prototype.
3417
3418 * integrate.c (has_func_hard_reg_initial_val,
3419 get_func_hard_reg_initial_val): Make them static.
3420 * integrate.h: Remove the corresponding prototypes.
3421
3422 2004-11-19 Ben Elliston <bje@au.ibm.com>
3423
3424 * dwarf2asm.h (dw2_asm_output_pcel): Stub out with #if 0.
3425 (dw2_asm_output_delta_sleb128): Likewise.
3426 * dwarf2asm.c (dw2_asm_output_pcrel): Likewise.
3427 (dw2_asm_output_delta_sleb128): Likewise.
3428
3429 2004-11-19 Adam Nemet <anemet@lnxw.com>
3430
3431 * tree-ssa-alias.c: Fix comment.
3432
3433 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
3434
3435 * tree-outof-ssa.c: Fix a comment typo.
3436
3437 2004-11-19 Ben Elliston <bje@au.ibm.com>
3438
3439 * predict.h (predict_insn): Remove extern declaration.
3440 * predict.c (predict_insn): Make static.
3441
3442 2004-11-19 Alan Modra <amodra@bigpond.net.au>
3443
3444 * config/rs6000/rs6000.c (function_arg): Don't return BLKmode regs.
3445
3446 2004-11-18 Nicolas Pitre <nico@cam.org>
3447
3448 * config/arm/arm.c (const_double_needs_minipool): New function to
3449 determine if a CONST_DOUBLE should be pushed to the minipool.
3450 (note_invalid_constants): Use it.
3451
3452 2004-11-18 Paul Brook <paul@codesourcery.com>
3453
3454 * config/arm/arm.c (target_float_switch): New variable..
3455 (arm_override_options): Use TARGET_DEFAULT_FLOAT_ABI and
3456 target_float_switch.
3457 * config/arm/arm.h (target_float_switch): Declare.
3458 (ARM_FLAG_SOFT_FLOAT): Remove.
3459 (TARGET_SWITCHES): Remove hard-float and soft-float.
3460 (TARGET_OPTIONS): Add hard-float and soft-float.
3461 (TARGET_DEFAULT_FLOAT_ABI): Define.
3462 * config/arm/coff.h (TARGET_DEFAULT_FLOAT_ABI): Define
3463 (TARGET_DEFAULT): Don't use ARM_FLAG_SOFT_FLOAT.
3464 * config/arm/elf.h: Don't use ARM_FLAG_SOFT_FLOAT.
3465 * config/arm/netbsd-elf.h: Ditto.
3466 * config/arm/netbsd.h: Ditto.
3467 * config/arm/pe.h: Ditto.
3468 * config/arm/unknown-elf.h: Ditto.
3469 * config/arm/wince-pe.h: Ditto.
3470 * config/arm/linux-elf.h (TARGET_DEFAULT_FLOAT_ABI): Define.
3471 * config/arm/semi.h (TARGET_DEFAULT_FLOAT_ABI): Define.
3472 * config/arm/semiaof.h (TARGET_DEFAULT_FLOAT_ABI): Define.
3473
3474 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
3475
3476 * config/rs6000/altivec.md (VI, VF, V): New mode macros.
3477 (altivec_lvx_4si, altivec_lvx_8hi, altivec_lvx_16qi,
3478 altivec_lvx_4sf): Rename and replace with ...
3479 (altivec_lvx_<mode>): ... mode macro version.
3480 (altivec_stvx_4si, altivec_stvx_8hi, altivec_stvx_16qi,
3481 altivec_stvx_4sf): Rename and replace with ...
3482 (altivec_stvx_<mode>): ... mode macro version.
3483 (movv4si, movv8hi, movv16qi, movv4sf}): Replace with ...
3484 (mov<mode>): ... mode macro version.
3485 (*movv4si_internal, *movv8hi_internal1, *movv16qi_internal1,
3486 *movv4sf_internal1): Replace with ...
3487 (*mov<mode>_internal): ... mode macro version.
3488 (get_vrsave_internal, *set_vrsave_internal, *save_world,
3489 *restore_world): Unquote output statements.
3490 * config/rs6000/rs6000.c (altivec_expand_ld_builtin,
3491 altivec_expand_st_builtin): Adjust insn names.
3492
3493 2004-11-18 Aldy Hernandez <aldyh@redhat.com>
3494
3495 * config/rs6000/rs6000.c (rs6000_complex_function_value): Revert
3496 previous change.
3497 (rs6000_override_options): Likewise.
3498 (spe_build_register_parallel): Handle complex doubles on e500v2.
3499 (rs6000_spe_function_arg): Likewise.
3500 (function_arg): Likewise.
3501 (rs6000_function_value): Likewise.
3502 (rs6000_libcall_value): Likewise.
3503
3504 2004-11-18 Andrew Pinski <pinskia@physics.uc.edu>
3505
3506 * ifcvt.c (find_if_block): Move the check for the number of edges
3507 above the loops checking for complex edges.
3508 Remove the counting of edges as we use EDGE_COUNT now.
3509
3510 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
3511
3512 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
3513 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.3
3514
3515 2004-11-18 Andreas Schwab <schwab@suse.de>
3516
3517 * config/i386/i386.md (define_peephole2): Revert last change.
3518
3519 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
3520
3521 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
3522 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.
3523
3524 2004-11-18 Diego Novillo <dnovillo@redhat.com>
3525
3526 * tree-ssa-propagate.c (ssa_prop_init): Use FOR_ALL_BB instead
3527 of FOR_EACH_BB.
3528
3529 2004-11-18 Jon Grimm <jgrimm2@us.ibm.com>
3530
3531 * Makefile.in (macro_list): Depend on s-macro_list.
3532 (s-macro_list): New target.
3533
3534 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
3535
3536 PR target/17107
3537 * fold-const.c (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
3538 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
3539 (fold_range_test): Adjust.
3540 (fold_truthop): Use it.
3541 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
3542 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
3543
3544 2004-11-18 Uros Bizjak <uros@kss-loka.si>
3545
3546 * configure/i386/i386.md (*fix_trunch_1): Add "&& 1" to
3547 insn split constraint.
3548 (define_peephole2): Remove unneeded "&& 1" from peephole2
3549 constraints.
3550
3551 2004-11-18 Ben Elliston <bje@au.ibm.com>
3552
3553 * doc/cfg.texi (Maintaining the CFG): Remove duplicated @item
3554 element for bsi_prev; use @findex instead.
3555
3556 2004-11-18 Ben Elliston <bje@au.ibm.com>
3557
3558 * opts.h (add_input_filename): Remove extern declaration.
3559 * opts.c (add_input_filename): Make static.
3560
3561 2004-11-17 Mark Mitchell <mark@codesourcery.com>
3562
3563 * config/i386/i386.c (i386_solaris_elf_named_section): Mark with
3564 ATTRIBUTE_UNUSED.
3565
3566 2004-11-17 Zack Weinberg <zack@codesourcery.com>
3567
3568 * defaults.h, config/darwin.h: Don't define TARGET_SUPPORTS_HIDDEN.
3569 * system.h: Poison it.
3570 * doc/tm.texi: Delete its documentation.
3571
3572 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
3573 Mark Mitchell <mark@codesourcery.com>
3574
3575 * config/i386/sol2-10.h, config/i386/t-sol2-10: New files.
3576 * config/i386/i386.c (i386_solaris_elf_named_section): New
3577 function.
3578 * config.gcc (i[34567]86-*-solaris2*): Handle Solaris 2.10.
3579 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Handle
3580 64-bit.
3581 (ASM_QUAD): Don't undefine for biarch targets.
3582 * config/i386/t-sol2: Introduce multilib support.
3583
3584 2004-11-18 Ben Elliston <bje@au.ibm.com>
3585
3586 * cgraphunit.c: Replace "it's" with "its" and fix a typo.
3587
3588 2004-11-18 Ben Elliston <bje@au.ibm.com>
3589
3590 * cgraph.h: Replace "it's" with "its" throughout.
3591
3592 2004-11-18 Ben Elliston <bje@au.ibm.com>
3593
3594 * doc/rtl.texi (Flags): Grammar fix.
3595
3596 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
3597
3598 * expmed.c (alg_code): Add alg_unknown.
3599 (alg_hash_entry): New.
3600 (NUM_ALG_HASH_ENTRIES): Likewise.
3601 (alg_hash): Likewise.
3602 (synth_mult): Cache the result into alg_hash.
3603
3604 2004-11-17 Zack Weinberg <zack@codesourcery.com>
3605
3606 * config/rs6000/t-darwin: Augment SHLIB_MAPFILES with
3607 config/rs6000/libgcc-ppc64.ver.
3608
3609 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
3610
3611 * cfgrtl.c (rtl_verify_flow_info): Don't use INSN_P when
3612 checking if an unconditional return is followed by a barrier.
3613
3614 * jump.c (condjump_p): Remove unreachable code.
3615
3616 * basic-block.h, c-common.h, df.h, expr.h, output.h, rtl.h,
3617 tree-chrec.h, tree-flow.h, tree-scalar-evolution.h,
3618 tree-ssa-live.h, tree.h: Remove unused prototypes.
3619
3620 2004-11-17 Jeff Law <law@redhat.com>
3621
3622 * tree-cfg.c (edge_to_cases): Renamed from edge_to_case_leader.
3623 (edge_to_cases_elt): Renamed from edge_to_case_leader.
3624 (edge_to_cases_hash): Renamed from edge_to_case_leader_hash.
3625 (edge_to_cases_eq): Renamed from edge_to_case_leader_eq.
3626 (edge_to_cases_cleanup, recording_case_labels_p): New functions.
3627 (get_cases_for_edge): New function.
3628 (start_recording_case_labels, end_recording_case_labels): Similarly.
3629 (record_switch_edge): Don't muck with the CASE_LABEL. Instead
3630 chain equivalent CASE_LABEL_EXPRs together.
3631 (get_case_leader_for_edge, get_case_leader_for_edge_hash): Kill.
3632 (make_switch_expr_edges): Do not record edge/cases here.
3633 (cleanup_tree_cfg): Record cases around the call to thread_jumps.
3634 (split_critical_edges): Record cases around the edge splitting code.
3635 (cleanup_dead_labels): Use CASE_LABEL again.
3636 (tree_redirect_edge_and_branch): If we have a mapping from edge
3637 to cases, use it to handle redirections. Else do it the slow way.
3638 * tree.h (CASE_LEADER_OR_LABEL): Kill.
3639 (CASE_LABEL): Revert to just looking at the tree's second operand.
3640 * tree.c (get_case_label): Kill.
3641
3642 2004-11-17 Diego Novillo <dnovillo@redhat.com>
3643
3644 PR tree-optimization/18307
3645 * tree-ssa-alias.c (merge_pointed_to_info): ICE if 'dest' and
3646 'orig' are the same node.
3647 (collect_points_to_info_r): Do not call merge_pointed_to_info
3648 when the PHI argument is identical to the LHS.
3649
3650 2004-11-17 Steven Bosscher <stevenb@suse.de>
3651
3652 * tree-ssa-propagate.c (cfg_blocks_add): Assert we're not trying
3653 to insert the exit or entry block.
3654 (ssa_prop_init): Use add_control_edge to seed the algorithm.
3655
3656 2004-11-16 Zack Weinberg <zack@codesourcery.com>
3657
3658 * mkmap-flat.awk, mkmap-symver.awk: If the last version
3659 assigned to a symbol was '%exclude', do not emit it anywhere.
3660 If leading_underscore is true, prefix all symbols from the
3661 version scripts with a leading underscore before comparing
3662 them with nm output or emitting them. Remove support for dot
3663 symbols.
3664 * config/t-slibgcc-darwin (SHLIB_LINK): Use mkmap-flat.awk.
3665 (SHLIB_MAPFILES): Use libgcc-std.ver.
3666 (SHLIB_MKMAP_OPTS): Enable leading-underscore mode.
3667 (SHLIB_LINK): Add -Wl,-exported_symbols_list,$(SHLIB_MAP).
3668 * config/sh/t-linux: Use the normal libgcc-std.ver, plus
3669 libgcc-excl.ver and libgcc-glibc.ver.
3670
3671 * config/sh/libgcc-excl.ver: New file.
3672 * config/sh/libgcc-std.ver, libgcc-darwin.ver: Delete.
3673
3674 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
3675
3676 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Swap
3677 the test when the edge has the opposite meaning, not when
3678 the first argument is invariant.
3679
3680 2004-11-16 Aldy Hernandez <aldyh@redhat.com>
3681
3682 * config/rs6000/rs6000.c (rs6000_override_options): Split e500v2
3683 doubles.
3684 (rs6000_complex_function_value): Handle e500 v2 variant.
3685
3686 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
3687
3688 Fix PR tree-optimization/18519
3689
3690 * tree-optimize (execute_todo): Add case for TODO_cleanup_cfg.
3691 * tree-pass.h: Add TODO_cleanup_cfg.
3692 * tree-ssa-ccp.c (pass_ccp): Use TODO_cleanup_cfg.
3693 (ccp_finalize): Remove call to cleanup_cfg.
3694 * tree-ssa-dce.c (pass_dce): Use TODO_cleanup_cfg and TODO_dump_func.
3695 (pass_cd_dce): Ditto.
3696 (perform_tree_ssa_dce): Remove call to cleanup_cfg,
3697 dump_function_to_file.
3698 * tree-ssa-loop-ch.c (copy_loop_headers): Remove call
3699 to cleanup_cfg.
3700 (pass_ch): Add TODO_cleanup_cfg.
3701 * tree-ssa-loop.c (tree_ssa_loop_done): Remove call to
3702 cleanup_cfg.
3703 (pass_loop_done): Add TODO_cleanup_cfg.
3704 * tree-ssa-phiopt.c (pass_phiopt): Ditto.
3705 (tree_ssa_phiopt): Remove call to cleanup_cfg.
3706
3707 2004-11-16 Devang Patel <dpatel@apple.com>
3708
3709 * optabs.c (vector_compare_rtx): Fix COMPARISON_CLASS_P use.
3710
3711 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
3712
3713 * expmed.c, ra-colorize.c: Fix comment typos.
3714
3715 * doc/tm.texi: Fix typos.
3716
3717 2004-11-16 Daniel Jacobowitz <dan@codesourcery.com>
3718 Mark Mitchell <mark@codesourcery.com>
3719
3720 PR target/6123
3721 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and
3722 __pic__ if PIC.
3723
3724 2004-11-16 Ulrich Weigand <uweigand@de.ibm.com>
3725
3726 * regmove.c (regmove_optimize): Use lowpart_subreg instead of
3727 gen_rtx_SUBREG with incorrect offset to compute SRC_SUBREG.
3728
3729 2004-11-16 Devang Patel <dpatel@apple.com>
3730
3731 * tree-if-conv.c (clean_predicate_lists): Update gcc_assert check.
3732
3733 2004-11-16 Eric Christopher <echristo@redhat.com>
3734
3735 * config/mips/mips.c: Use rtl _P predicates.
3736 * config/mips/mips.h: Ditto.
3737 * config/mips/mips.md: Ditto.
3738
3739 2004-11-16 Fariborz Jahanian <fjahanian@apple.com>
3740
3741 * config/rs6000/altivec.md (altivec_vandc): Canonicalize
3742 the pattern.
3743
3744 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
3745
3746 * config/s390/s390.c (s390_cc_modes_compatible): New function.
3747 (TARGET_CC_MODES_COMPATIBLE): Target macro defined.
3748
3749 2004-11-16 Kaz Kojima <kkojima@gcc.gnu.org>
3750
3751 PR target/18447
3752 * config/sh/sh.c (prepare_move_operands): Emit blockage insns
3753 before and after the insns for getting GOT address in non-PIC
3754 TLS_MODEL_INITIAL_EXEC tls sequence when the first scheduling
3755 is enabled.
3756
3757 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
3758
3759 * gcc/cse.c (struct change_cc_mode_args): New structure.
3760 (cse_change_cc_mode_insn): New function.
3761 (cse_change_cc_mode): Use validate_change to perfom changes.
3762 (cse_change_cc_mode_insns, cse_condition_code_reg):
3763 Call cse_change_cc_mode_insn.
3764
3765 2004-11-16 Steven Bosscher <stevenb@suse.de>
3766
3767 * stack.h: Remove.
3768
3769 2004-11-16 Steven Bosscher <stevenb@suse.de>
3770
3771 * config/i386/i386.c (x86_schedule): Fix typo, m_K6 intead of m_K8.
3772
3773 2004-11-15 Dale Johannesen <dalej@apple.com>
3774
3775 * tree-flow.h (add_referenced_temp_var): Remove name from prototype.
3776
3777 2004-11-15 Dale Johannesen <dalej@apple.com>
3778
3779 * profile.c (compute_branch_probabilities): Prevent
3780 crash with EH in RTL-based profiling.
3781
3782 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
3783
3784 * tree-cfg.c (verify_expr): Replace TREE_OPERAND with
3785 COND_EXPR_COND.
3786 * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
3787 * tree-ssa-dom.c (thread_across_edge): Likewise.
3788 * tree-vectorizer.c (vect_transform_loop_bound): Replace
3789 TREE_OPERAND with COND_EXPR_COND, COND_EXPR_THEN, or
3790 COND_EXPR_ELSE.
3791
3792 * tree-cfg.c (bsi_commit_edge_inserts): Remove an argument.
3793 (tree_flow_call_edges_add): Update the call to
3794 bsi_commit_edge_inserts.
3795 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
3796 * profile.c (branch_prob): Likewise.
3797 * tree-mudflap.c (mf_decl_cache_locals): Likewise.
3798 * tree-sra.c (scalarize_function): Likewise.
3799 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
3800 * tree-ssa-pre.c (fini_pre): Likewise.
3801 * tree-flow.h: Update the prototype for
3802 bsi_commit_edge_inserts.
3803
3804 2004-11-15 Eric Christopher <echristo@redhat.com>
3805
3806 * sched-deps.c (set_sched_group_p): Delete.
3807 (delete_all_dependencies): New function.
3808 (fixup_sched_groups): Use. New function.
3809 (sched_analyze_insn): Use.
3810
3811 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
3812
3813 * c-common.c (binary_op_error): Don't allow LROTATE_EXPR,
3814 RROTATE_EXPR or unknown code.
3815 * c-typeck.c (build_binary_op): Don't allow RROTATE_EXPR,
3816 LROTATE_EXPR, MAX_EXPR, MIN_EXPR, UNORDERED_EXPR, ORDERED_EXPR,
3817 UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR
3818 or unknown code.
3819
3820 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
3821
3822 PR c/18498
3823 * c-decl.c (grokdeclarator): Call check_bitfield_type_and_width
3824 after processing the declarator.
3825
3826 2004-11-15 Aldy Hernandez <aldyh@redhat.com>
3827
3828 * config/rs6000/altivec.md ("altivec_vsplth"): Rewrite with
3829 vec_duplicate.
3830 (altivec_vspltb): Same.
3831 (altivec_vspltw): Same.
3832 (altivec_vspltisb): Same.
3833 (altivec_vspltish): Same.
3834 (altivec_vspltisw): Same.
3835 (altivec_vspltisw_v4sf): Same.
3836 (define_constants): Remove UNSPEC_VSPLTISB, UNSPEC_VSPLTISW,
3837 UNSPEC_VSPLTISH.
3838 Move "End of vector xor's" comment to the right place.
3839
3840 2004-11-15 Steve Ellcey <sje@cup.hp.com>
3841
3842 * config/ia64/ia64.md (*movtf_internal): Use destination_operand
3843 instead of nonimmediate_operand.
3844
3845 2004-11-15 Mark Mitchell <mark@codesourcery.com>
3846
3847 * config/i386/sol2.h (ASM_OUTPUT_CALL): Use print_operand.
3848 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Likewise.
3849 * config/sol2.c (solaris_output_init_fini): Update calls to
3850 ASM_OUTPUT_CALL. Include "rtl.h".
3851
3852 2004-11-15 Mark Mitchell <mark@codesourcery.com>
3853
3854 * config/sol2-c.c (cmn_err_char_table): Add "p".
3855
3856 2004-11-15 Mark Mitchell <mark@codesourcery.com>
3857
3858 * config/sparc/sol2.h (SUPPORTS_INIT_PRIORITY): Remove.
3859 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define here.
3860
3861 2004-11-15 Mark Mitchell <mark@codesourcery.com>
3862
3863 * config/t-slibgcc-sld (SHLIB_LINK): Make symlinks entirely
3864 within the multilib directory.
3865
3866 2004-11-15 Nick Clifton <nickc@redhat.com>
3867
3868 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Add
3869 builtin assert of cpu=xstormy16.
3870
3871 2004-11-15 Nathan Sidwell <nathan@codesourcery.com>
3872
3873 * tree-ssa-pre.c (bitmap_print_value_set): Fix uninitialized
3874 variable.
3875
3876 2004-11-14 Richard Henderson <rth@redhat.com>
3877
3878 PR 18480
3879 * calls.c (struct arg_data): Add parallel_value.
3880 (precompute_register_parameters): Set it.
3881 (load_register_parameters): Use it.
3882 (store_one_arg): Also set it here.
3883
3884 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
3885
3886 PR tree-optimization/18431
3887 * fold-const.c (associate_trees): Do not produce x + 0.
3888 (fold_widened_comparison, fold_sign_changed_comparison): New functions.
3889 (fold): Use them.
3890 * tree-ssa-loop-niter.c (upper_bound_in_type, lower_bound_in_type):
3891 Moved ...
3892 * tree.c (upper_bound_in_type, lower_bound_in_type): Here.
3893 * tree.h (upper_bound_in_type, lower_bound_in_type): Declare.
3894
3895 2004-11-14 Eric Botcazou <ebotcazou@libertysurf.fr>
3896
3897 * doc/rtl.texi (SUBREG): Adjust BYTENUM value in example.
3898
3899 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
3900
3901 * cfgrtl.c, global.c, tree-ssa-copy.c, tree-ssa-loop-ivopts.c,
3902 value-prof.c: Fix comment typos.
3903
3904 2004-11-14 Stan Shebs <shebs@apple.com>
3905
3906 Basic ABI changes for passing structs by value in 64-bit Darwin.
3907 * config/rs6000/rs6000.c (rs6000_darwin64_abi): New flag.
3908 (rs6000_override_options): Set it for 64-bit Darwin.
3909 (rs6000_parse_abi_options): Add testing options to change it.
3910 (rs6000_return_in_memory): Test whether the type is one
3911 that can be passed in registers.
3912 (darwin64_function_arg_advance): New.
3913 (function_arg_advance): Call it, plus add recursion depth
3914 argument and test when counting off arguments.
3915 (rs6000_darwin64_function_arg): New.
3916 (function_arg): Call it.
3917 (setup_incoming_varargs): Add argument to function_arg_advance.
3918 (rs6000_darwin64_function_value): New.
3919 (rs6000_function_value): Call it.
3920 * config/rs6000/rs6000.h (FUNCTION_ARG_ADVANCE): Pass depth arg.
3921 * config/rs6000/rs6000-protos.h: Update decl of
3922 function_arg_advance.
3923
3924 2004-11-14 Andrew Pinski <pinskia@physics.uc.edu>
3925
3926 PR c/17279
3927 * c-common.c (c_common_nodes_and_builtins): Ask the back-end if we
3928 support TImode before adding __int128_t and __uint128_t types.
3929
3930 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
3931
3932 PR tree-opt/18400
3933 * tree-vectorizer.c (make_loop_iterate_ntimes): Set loop->nb_iterations.
3934 (vect_transform_loop_bound): Set loop->nb_iterations.
3935
3936 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
3937 Andrew Pinski <pinskia@physics.uc.edu>
3938
3939 PR tree-opt/18425
3940 * tree-vectorize.c (vect_build_loop_niters): Do not insert
3941 NULL into the instruction stream. Initialize new_bb to NULL.
3942 (vect_update_ivs_after_vectorizer): Likewise.
3943 (vect_gen_niters_for_prolog_loop): Likewise.
3944
3945 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
3946
3947 PR tree-optimization/18431
3948 * tree-flow.h (stmt_references_memory_p): Declare.
3949 * tree-ssa-loop-im.c (stmt_cost): Use stmt_references_memory_p.
3950 * tree-ssa.c (stmt_references_memory_p): New function.
3951
3952 2004-11-14 Andreas Schwab <schwab@suse.de>
3953
3954 * Makefile.in (lambda-code.o, tree-loop-linear.o): Depend on
3955 $(EXPR_H).
3956
3957 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
3958
3959 * c-common.c (walk_stmt_tree): Remove.
3960 * c-common.h: Remove the corresponding prototype.
3961
3962 * emit-rtl.c (push_to_full_sequence): Remove.
3963 * rtl.h: Remove the corresponding prototype.
3964
3965 * cselib.c, expr.c: Fix comment typos.
3966
3967 2004-11-13 Richard Henderson <rth@redhat.com>
3968
3969 * calls.c (precompute_register_parameters): Force all PARALLELs
3970 into pseudo registers.
3971 (load_register_parameters): Copy PARALLELs into hard registers.
3972 * function.c (assign_parm_setup_block): Copy PARALLELS into
3973 pseudo registers. Do emit_group_store in conversion_insns.
3974 * expr.c (emit_group_load_1): Rename from emit_group_load, take
3975 tmps as an argument. Move final copy loop ...
3976 (emit_group_load): ... here. New function.
3977 (emit_group_load_into_temps, emit_group_move_into_temps): New.
3978 * expr.h: Declare them.
3979
3980 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
3981
3982 * tree-cfg.c, tree-if-conv.c, tree-ssa-loop-ivopts.c,
3983 tree-ssa-loop-manip.c, tree-vectorizer.c: Replace TREE_CHAIN
3984 with PHI_CHAIN where appropriate.
3985
3986 2004-11-13 Dale Johannesen <dalej@apple.com>
3987
3988 * tree-flow.h (bsi_commit_one_edge_insert): Remove name from prototype.
3989 (tree_block_label): Ditto.
3990 (flush_pending_stmts): Ditto.
3991 (insert_edge_copies): Ditto.
3992 (expr_invariant_in_loop_p): Ditto.
3993 (TDF_USE_OPS): Parenthesize definition.
3994 (TDF_USE_VOPS): Ditto.
3995
3996 2004-11-13 David Edelsohn <edelsohn@gnu.org>
3997
3998 * config/rs6000/aix51.h (ASM_CPU_SPEC): Add 970 and G5.
3999 * config/rs6000/aix52.h (ASM_CPU_SPEC): Same.
4000 (atoll): Declare.
4001 * config/rs6000/t-aix52 (BOOT_LDFLAGS): Define.
4002
4003 2004-11-14 Joseph Myers <joseph@codesourcery.com>
4004
4005 * config/i386/i386.c (override_options): Move loop to set default
4006 tuning to correct place.
4007
4008 2004-11-13 Zak Kipling <zak@transversal.com>
4009
4010 PR target/18300
4011 * config/i386/i386.c (classify_argument): Fix infinite loop when
4012 passing object with 3 or more base classes by value.
4013
4014 2004-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
4015
4016 * doc/md.texi (constraints) <% modifier>: Mention that it is
4017 useless when the two alternatives are strictly identical.
4018
4019 2004-11-13 Richard Henderson <rth@redhat.com>
4020
4021 * expmed.c (extract_split_bit_field): Temporarily disable call to
4022 extract_force_align_mem_bit_field.
4023
4024 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
4025
4026 * bitmap.c, bitmap.h, expmed.c, tree-cfg.c: Fix comment
4027 formatting.
4028
4029 * c-cppbuiltin.c, cgraph.c, domwalk.h, except.c, gimplify.c,
4030 lambda-code.c, postreload.c, predict.c, tree-sra.c,
4031 tree-ssa-loop-manip.c, tree.c: Fix comment typos.
4032
4033 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
4034
4035 * doc/install.texi (automake): Correctly document that everything now
4036 will use automake 1.9.3.
4037
4038 2004-11-13 Hans-Peter Nilsson <hp@bitrange.com>
4039
4040 PR target/18347
4041 * config/mmix/mmix.c (mmix_function_outgoing_value): Handle
4042 TImode. Sorry for other non-complex larger-than-64-bit modes.
4043 * config/mmix/mmix.h (MIN_UNITS_PER_WORD): Do not define.
4044
4045 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
4046
4047 * doc/install.texi (automake): Document that everything now uses 1.9.
4048
4049 2004-11-13 Bernd Schmidt <bernd.schmidt@analog.com>
4050
4051 * cse.c (cse_insn): Stores in a libcall sequence can invalidate
4052 previous loads.
4053
4054 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
4055
4056 * tree.h: Fix comment typos.
4057
4058 2004-11-13 Steven Bosscher <stevenb@suse.de>
4059
4060 * cse.c (CHEAP_REGNO): Redefine using REGNO_PTR_FRAME_P and
4061 HARD_REGISTER_NUM_P.
4062
4063 * cselib.c (new_cselib_val): Make comment correct and more detailed.
4064 * flow.c (mark_set_1): Likewise.
4065
4066 * except.c (duplicate_eh_region_1, duplicate_eh_region_2,
4067 duplicate_eh_regions): Remove.
4068 * except.h (duplicate_eh_regions): Remove prototype.
4069 * integrate.c (get_label_from_map, copy_rtx_and_substitute,
4070 global_const_equiv_varray): Remove.
4071 * integrate.h (get_label_from_map, copy_rtx_and_substitute,
4072 global_const_equiv_varray, set_label_in_map): Remove prototypes,
4073 extern declaration, and #define.
4074 (MAYBE_EXTEND_CONST_EQUIV_VARRAY, SET_CONST_EQUIV_DATA): Remove.
4075 (struct inline_remap): Remove.
4076 * varray.c (struct element): Remove entry for const_equiv_data.
4077 * varray.h (struct const_equiv_data): Remove.
4078 (enum varray_data_enum) <VARRAY_DATA_CONST_EQUIV>: Remove.
4079 (union varray_data_tag) <const_equiv>: Remove.
4080 (VARRAY_CONST_EQUIV_INIT, VARRAY_CONST_EQUIV,
4081 VARRAY_PUSH_CONST_EQUIV, VARRAY_TOP_CONST_EQUIV): Remove.
4082
4083 * regstack.c (record_label_references): Remove unused function.
4084
4085 * rtl.def (VALUE): Update comment.
4086 (LABEL_REF): Remove unused operand 2.
4087 * rtl.h (struct rtx_def): Update for removed accessor macros.
4088 (XCADVFLAGS, INSN_DEAD_CODE_P, LINE_NUMBER, CONTAINING_INSN,
4089 REG_LOOP_TEST_P): Remove.
4090 (ADDR_DIFF_VEC_FLAGS, CSELIB_VAL_PTR, LABEL_NEXTREF): Add comments.
4091 * web.c (entry_register): Don't copy REG_LOOP_TEST_P.
4092 * doc/rtl.texi (INSN_DEAD_CODE_P, REG_LOOP_TEST_P): Remove.
4093
4094 2004-11-13 James A. Morrison <phython@gcc.gnu.org>
4095 Eric Botcazou <ebotcazou@libertysurf.fr>
4096
4097 PR target/18230
4098 * config/sparc/sparc.c (sparc_rtx_costs): Handle the NAND vector
4099 patterns.
4100 * config/sparc/sparc.md (V64I): New macro for 64-bit modes.
4101 (V32I): New macro for 32-bit modes.
4102 (anddi3, anddi_sp32, anddi_sp64, and_not_di_sp32, and_not_di_sp64,
4103 iordi3, iordi3_sp32, iordi_sp64, or_not_di_sp32, or_not_di_sp64,
4104 xordi3, xordi3_sp32, xordi3_sp64, {AND, IOR, XOR} DI splitter,
4105 xor_not_di_sp32, xordi_not_di_sp64, one_cmpldi2, one_cmpldi_sp32,
4106 one_cmpldi_sp64): Use V64I instead of DI.
4107 (andsi3, andsi_sp32, andsi_sp64, and_not_si, iorsi3, or_not_si,
4108 xorsi3, xor_not_si, one_cmplsi2): Use V32I instead of SI.
4109 (addv2si3, addv4hi3, addv2hi3): Remove % modifier.
4110 (nandv64i_vis, nandv32i_vis): New patterns.
4111
4112 2004-11-12 Mike Stump <mrs@apple.com>
4113
4114 * Makefile.in: Add html support.
4115 * java/Make-lang.in: Likewise.
4116 * fortran/Make-lang.in: Likewise.
4117 * treelang/Make-lang.in: Likewise.
4118 * doc/install.texi: Likewise.
4119 * doc/makefile.texi: Likewise.
4120 * doc/sourcebuild.texi: Likewise.
4121
4122 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
4123
4124 * tree-ssa-loop-manip.c: Fix a comment typo.
4125
4126 2004-11-12 Mike Stump <mrs@apple.com>
4127
4128 * doc/cppinternals.texi (Index): Fix html generation with makeinfo by
4129 renaming this node to Concept Index.
4130 * doc/gccint.texi (Index): Likewise. Also minor formatting tweaks
4131 to more closely match gcc.texi.
4132
4133 2004-11-12 Jeff Law <law@redhat.com>
4134
4135 * tree-cfg.c (hashtab.h): Include.
4136 (struct edge_to_case_leader_elt): New structure.
4137 (edge_to_case_leader): New.
4138 (edge_to_case_leader_hash): New hashtable hasing function.
4139 (edge_to_case_leader_eq): New hashtable equality function.
4140 (record_switch_edge): New function.
4141 (get_case_leader_for_edge, get_case_leader_for_edge): New functions.
4142 (make_switch_expr_edges): Build the edge-to-case-leader
4143 hash table. Tear down the hash table when we're done.
4144 (cleanup_dead_labels): Use CASE_LEADER_OR_LABEL instead of
4145 CASE_LABEL.
4146 (tree_node_can_be_shared): Allow sharing of CASE_LABEL_EXPR nodes.
4147 (tree_redirect_edge_and_branch, case SWITCH_EXPR): Update
4148 to use new concept of case leaders to reduce overhead of
4149 redirecting outgoing edges from switch statements.
4150 * tree.c (get_case_label): New function.
4151 * tree.h (CASE_LABEL): Define in terms of get_case_label.
4152 (CASE_LEADER_OR_LABEL): Define.
4153
4154 2004-11-12 Ziemowit Laski <zlaski@apple.com>
4155
4156 * varasm.c (output_addressed_constants): For CONST_DECLs,
4157 output the initializer if present.
4158
4159 2004-11-12 Ziemowit Laski <zlaski@apple.com>
4160
4161 * config/rs6000/darwin.h: Fix confusing typo in comment.
4162
4163 2004-11-12 Devang Patel <dpatel@apple.com>
4164
4165 * optabs.c (vector_compare_rtx): Use COMPARISON_CLASS_P.
4166
4167 2004-11-12 Devang Patel <dpatel@apple.com>
4168
4169 * tree-if-conv.c (clean_predicate_lists): Use loop header
4170 and latch directly.
4171
4172 2004-11-12 Richard Henderson <rth@redhat.com>
4173
4174 PR 17778
4175 * config/i386/i386.h (TARGET_96_ROUND_53_LONG_DOUBLE): New.
4176 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
4177 (TARGET_96_ROUND_53_LONG_DOUBLE): New.
4178 * config/i386/i386-modes.def (XF): Use it.
4179
4180 2004-11-11 Geoffrey Keating <geoffk@apple.com>
4181
4182 * Makefile.in (macro_list): Use move-if-change to avoid spurious
4183 rebuilds.
4184
4185 2004-11-12 Mark Mitchell <mark@codesourcery.com>
4186
4187 PR c++/18416
4188 * passes.c (rest_of_decl_compilation): Do not look at DECL_RTL
4189 when deciding whether to pass a variable to
4190 cgraph_varpool_finalize_decl or assemble_variable.
4191 * toplev.c (check_global_declarations): Do not clear DECL_RTL.
4192
4193 2004-11-12 Kazu Hirata <kazu@cs.umass.edu>
4194
4195 * tree-vectorizer.c: Fix a comment typo.
4196
4197 2004-11-12 Bernd Schmidt <bernd.schmidt@analog.com>
4198
4199 * genconfig.c (walk_insn_part): Look at match_dups inside a label_ref.
4200
4201 2004-11-12 Diego Novillo <dnovillo@redhat.com>
4202
4203 * tree-scalar-evolution.c (analyzable_condition): Remove
4204 superfluous TREE_THIS_VOLATILE checks on SSA_NAMEs.
4205
4206 2004-11-12 Ralf Corsepius <ralf.corsepius@rtems.org>
4207
4208 * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
4209 Remove m505/roe multilib variant.
4210
4211 2004-11-12 Eric Botcazou <ebotcazou@libertysurf.fr>
4212
4213 * expr.c (emit_group_load) <CONCAT>: Use extract_bit_field
4214 to load from the stack.
4215
4216 2004-11-12 Richard Henderson <rth@redhat.com>
4217
4218 * toplev.c (floor_log2): Rename from floor_log2_wide, use CLZ_HWI.
4219 (exact_log2): Rename from exact_log2_wide, use CTZ_HWI.
4220 * toplev.h (FL2T__): Remove.
4221 (CLZ_HWI): Rename from FL2T_CLZ__.
4222 (CTZ_HWI): New.
4223 (floor_log2): Simplify.
4224 (exact_log2): New.
4225
4226 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
4227
4228 * tree-data-ref.c (analyze_subscript_affine_affine): Correctly
4229 compute the first overlapping iterations.
4230
4231 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
4232
4233 PR middle-end/18005
4234 * tree-data-ref.c (estimate_niter_from_size_of_data): Ensure
4235 that arguments of EXACT_DIV_EXPR are INTEGER_CST.
4236
4237 2004-11-12 Steven Bosscher <stevenb@suse.de>
4238
4239 PR tree-optimization/18419
4240 * tree-ssa.c (walk_use_def_chains_1): Make the visited map a
4241 pointer set instead of a bitmap.
4242 (walk_use_def_chains): Create, pass and clean up that pointer_set.
4243
4244 * tree-ssa-alias.c (struct alias_info): Make the ssa_names_visited
4245 field an sbitmap.
4246 (init_alias_info): Allocate and zero it here.
4247 (delete_alias_info): Delete it here.
4248 (collect_points_to_info_for): Use it.
4249
4250 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
4251
4252 * alias.c (record_alias_subset, addr_side_effect_eval):
4253 Make them static.
4254 * alias.h: Remove the prototype for record_alias_subset.
4255 * expr.h: Remove the commented-out prototype for
4256 record_alias_subset.
4257 * rtl.h: Remove the prototype for addr_side_effect_eval.
4258
4259 * cfglayout.c (choose_inner_scope): Make it static.
4260 * rtl.h: Remove the corresponding prototype.
4261
4262 * cfgloopmanip.c (update_single_exits_after_duplication,
4263 unloop): Make them static.
4264 * cfgloop.h: Remove the corresponding prototypes.
4265
4266 * c-typeck.c (c_size_in_bytes, record_maybe_used_decl):
4267 Make them static.
4268 * c-tree.h: Remove the corresponding prototypes.
4269
4270 * explow.c (round_push): Make it static.
4271 * expr.h: Remove the corresponding prototype.
4272
4273 * varasm.c (get_named_section_flags, decl_tls_model): Make
4274 them static.
4275 * output.h: Remove the prototype for get_named_section_flags.
4276 * tree.h: Remove the prototype for decl_tls_model.
4277
4278 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
4279
4280 * function.c (expand_function_end): Remove an "if" statement
4281 that always triggers.
4282 * stmt.c (expand_null_return_1): Likewise.
4283
4284 2004-11-11 James E. Wilson <wilson@specifixinc.com>
4285
4286 * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle XCmode.
4287 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, SECONDARY_MEMORY_NEEDED,
4288 CLASS_MAX_NREGS): Likewise.
4289
4290 2004-11-11 Zdenek Dvorak <dvorakz@suse.cz>
4291
4292 PR tree-optimization/17742
4293 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Handle
4294 MINUS_EXPR correctly.
4295
4296 2004-11-11 Sebastian Pop <pop@cri.ensmp.fr>
4297
4298 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
4299 Give up as soon as the evolution is known not computable.
4300
4301 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
4302
4303 PR target/16457
4304 * config/rs6000/rs6000.c (mask64_2_operand): Stub to call
4305 mask64_1or2_operand.
4306 (mask64_1or2_operand): Broken out of mask64_2_operand, add flag
4307 to spot rlwinm opportunities.
4308 (and64_2_operand): Use mask_1or2_operand.
4309 * config/rs6000/rs6000.md (anddi3): Use rlwinm when possible.
4310
4311 2004-11-11 Dorit Naishlos <dorit@il.ibm.com>
4312
4313 * tree-vectorizer.c (update_phi_nodes_for_guard): Call reverse_phis.
4314 (vect_update_ivs_after_vectorizer): Update function documentation.
4315 Avoid quadratic behavior and direct write to PHI_ARG_DEF.
4316
4317 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
4318
4319 * config/arm/arm.c: Fix a comment typo.
4320
4321 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
4322
4323 * bitmap.h (nBITMAP_WORD_BITS): Remove.
4324 (BITMAP_WORD_BITS): Force unsigned by use of 1u.
4325 (BITMAP_ELEMENT_WORDS, BITMAP_ELEMENT_ALL_BITS): Remove
4326 unnecessary casts.
4327 (bitmap_first_set_bit): Return unsigned, use ctzl.
4328 (bitmap_last_set_bit): Remove.
4329 * bitmap.c (bitmap_element_zerop, bitmap_copy): Make iterator
4330 unsigned.
4331 (bitmap_first_set_bit): Return unsigned, require non-empty bitmap,
4332 remove special case code for two word elements.
4333 (bitmap_last_set_bit): Remove.
4334 * ra-build.c (livethrough_conflicts_bb): Replace unnecessary use of
4335 bitmap_first_set_bit with bitmap_empty_p.
4336 * tree-outof-ssa.c (analyze_edges_for_bb): Likewise.
4337 * tree-ssa-pre.c (bitmap_print_value): Use simple flag rather than
4338 bitmap_last_bit_set.
4339
4340 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
4341
4342 PR target/16796
4343 * config/rs6000/rs6000.md: Add DF & SF reg move peepholes.
4344
4345 PR target/16458
4346 * config/rs6000/rs6000.c (rs6000_generate_compare): Generate an
4347 unsigned equality compare when we know the operands are unsigned.
4348
4349 2004-11-10 Peter S. Mazinger <ps.m@gmx.net>
4350
4351 * config/mips/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Define
4352 __PIC__ and __pic__ only if TARGET_ABICALLS.
4353 (SUBTARGET_CPP_SPECS): Don't define or undefine __PIC__ and __pic__.
4354 (SUBTARGET_ASM_SPECS): Don't pass -non_shared to assembler; pass
4355 -KPIC only if not -mno-abicalls.
4356
4357 * config/alpha/linux.h, config/arm/linux-elf.h, config/pa/pa-linux.h
4358 * config/sparc/linux.h, config/sparc/linux64.h
4359 (TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ if flag_pic.
4360
4361 * config/arm/linux-gas.h (CPP_SPEC): Don't define __PIC__ or __pic__.
4362 * config/pa/pa/linux.h (CPP_SPEC): Likewise.
4363 * config/sparc/linux.h (CPP_SUBTARGET_SPEC): Likewise.
4364 * config/sparc/linux64.h (CPP_SUBTARGET_SPEC): Likewise.
4365
4366 2004-11-11 Paul Brook <paul@codesourcery.com>
4367
4368 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Save PIC
4369 register if current_function_uses_pic_offset_table is set.
4370
4371 2004-11-10 David Edelsohn <edelsohn@gnu.org>
4372
4373 * config/rs6000/rs6000.md (define_attr "type"): Add two and three.
4374 Change multi-instruction sequences to new attribute.
4375 * config/rs6000/{40x.md,440.md,603.md,6xx.md,
4376 7450.md,7xx.md,8540.md,mpc.md,power4.md,power5.md,
4377 rios1.md,rios2.md,rs64.md}: Add descriptions for two and three.
4378
4379 2004-11-10 Daniel Berlin <dberlin@dberlin.org>
4380
4381 * tree-data-ref.c (build_classic_dist_vector): If either loop
4382 is outside of the nest we asked about, the dependence can't
4383 matter.
4384 (build_classic_dir_vector): Ditto.
4385
4386 2004-11-10 Zdenek Dvorak <dvorakz@suse.cz>
4387
4388 * tree-ssa-loop-ivopts.c (get_address_cost): Add address elements in
4389 right order.
4390 (force_var_cost): Determine cost of addition and multiplication more
4391 precisely.
4392 (get_computation_cost_at): Add cost for computing address elements to
4393 the final cost.
4394
4395 * fold-const.c (fold): Attempt to use ptr_difference_const whenever
4396 one of the arguments of MINUS_EXPR is an address.
4397 (split_address_to_core_and_offset): New function.
4398 (ptr_difference_const): Handle case when one of the operands is a
4399 pointer.
4400 * tree-ssa-loop-ivopts.c (determine_base_object): Fold &*addr.
4401 (ptr_difference_cost): Pass addresses instead of objects to
4402 ptr_difference_const.
4403
4404 2004-11-10 Nathan Sidwell <nathan@codesourcery.com>
4405
4406 * tree.c (tree_check_failed): Emit general error if the list of
4407 node types is empty.
4408
4409 2004-11-10 Eric Botcazou <ebotcazou@libertysurf.fr>
4410
4411 * config/sparc/sparc.c (function_arg_union_value): New 'slotno'
4412 argument. When the union is passed in the 6th slot, build a
4413 PARALLEL with only one element.
4414 (function_arg): Adjust call to function_arg_union_value.
4415 (function_value): Likewise.
4416
4417 2004-11-10 Fariborz Jahanian <fjahanian@apple.com>
4418
4419 PR tree-optimization/17892
4420 * tree-ssa-dom.c (unsafe_associative_fp_binop): Add test for
4421 MINUS_EXPR operator.
4422
4423 2004-11-10 James A. Morrison <phython@gcc.gnu.org>
4424
4425 PR target/18230
4426 config/sparc/sparc.md (addsi3, subsi3): Set "fptype" attribute.
4427 (addv2si, addv4hi, addv2hi, subv2si, subv4hi, subv2hi): New patterns.
4428
4429 2004-11-10 Steven Bosscher <stevenb@suse.de>
4430
4431 * basic-block.h (XMALLOC_REG_SET, XFREE_REG_SET): New.
4432 (struct basic_block_def): Remove local_set and cond_local_set
4433 fields. Update comment for global_live_at_start.
4434 * flow.c (calculate_global_regs_live): Allocate local_sets and
4435 cond_local_sets here as arrays of bitmaps previously stored in
4436 bb->local_set and bb->cond_local_set. Use xmalloc instead of
4437 obstack allocated bitmaps.
4438
4439 2004-11-09 H.J. Lu <hongjiu.lu@intel.com>
4440
4441 PR target/18380
4442 * config/ia64/unwind-ia64.h (_Unwind_FindTableEntry): Mark it
4443 hidden.
4444
4445 * unwind-dw2.c (_Unwind_FindTableEntry): Removed.
4446
4447 2004-11-09 Jeff Law <law@redhat.com>
4448
4449 * cfganal.c (flow_dfs_compute_reverse_execute): Accept new
4450 argument holding last unvisited block. Start search for
4451 unvisited blocks at LAST_UNVISITED rather than EXIT_BLOCK.
4452 (connect_infinite_loops_to_exit): Supply last unvisited block
4453 to flow_dfs_compute_reverse_execute.
4454
4455 2004-10-22 Aldy Hernandez <aldyh@redhat.com>
4456
4457 * config/rs6000/rs6000.md (fix_truncdfsi2): Handle e500
4458 doubles.
4459 (floatunssidf2): Same.
4460 (floatsidf2): Same.
4461 ("extendsfdf2"): New expander.
4462 (*extendsfdf2_fpr): Rename.
4463 (*truncdfsf2_fpr): Same.
4464 (*negdf2_fpr): Same.
4465 (*absdf2_fpr): Same.
4466 (*nabsdf2_fpr): Same.
4467 (*adddf3_fpr): Same.
4468 (*subdf3_fpr): Same.
4469 (*muldf3_fpr): Same.
4470 (*divdf3_fpr): Same.
4471
4472 * config/rs6000/spe.md ("spe_extendsfdf2"): Remove FIXME comment.
4473 ("spe_fix_truncdfsi2"): Same.
4474 (spe_floatunssidf2): Same.
4475 (spe_floatsidf2): Same.
4476
4477 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
4478
4479 PR c/18322
4480 * c-common.c (fname_decl): Don't use line number of decl in
4481 diagnostic.
4482
4483 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
4484
4485 * config/s390/s390-protos.h (s390_pool_operand): Remove.
4486 * config/s390/s390.c (s390_pool_operand): Likewise.
4487 (s390_extra_constraint_str): Handle 'B' constraints.
4488 * config/s390/s390.h (CONSTRAINT_LEN): Handle 'B' constraints.
4489 * config/s390/s390.md: Document 'B' constraints.
4490 ("*cmpdi_cct", "*cmpsi_cct"): Use 'B' constraint instead of
4491 s390_pool_operand to prevent insns with two literal pool
4492 references. Make pattern commutative.
4493 ("*cmpdi_ccu", "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use
4494 'B' constraint instead of s390_pool_operand.
4495
4496 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4497
4498 * tree-cfg.c (create_bb): Remove unnecessary memset.
4499
4500 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4501
4502 * tree-ssa-threadupdate.c (copy_phis_to_block): Remove.
4503 (thread_block): Call flush_pending_stmt instead of
4504 copy_phis_to_block.
4505
4506 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4507
4508 * loop-iv.c (iv_number_of_iterations): Make it static.
4509 * cfgloop.h: Remove the corresponding prototype.
4510
4511 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4512
4513 * function.c (combine_temp_slots, assign_parms,
4514 expand_pending_sizes): Make them static.
4515 * tree.h: Remove the corresponding prototypes.
4516
4517 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4518
4519 * emit-rtl.c (copy_most_rtx): Remove.
4520 * rtl.h: Remove the corresponding prototype.
4521
4522 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4523
4524 * cfgloop.c (flow_loops_update): Remove.
4525 * cfgloop.h: Remove the corresponding prototype.
4526
4527 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4528
4529 * conflict.c (mark_reg, conflict_graph_compute): Remove.
4530 * basic-block.h: Remove the prototype for
4531 conflict_graph_compute.
4532
4533 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4534
4535 * tree-if-conv.c (add_to_dst_predicate_list): Change the
4536 second argument to basic_block.
4537 (tree_if_convert_cond_expr): Update call sites.
4538
4539 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4540
4541 * fold-const.c (pedantic_non_lvalue): Make it static.
4542 * tree.h: Remove the corresponding prototype.
4543
4544 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4545
4546 * optabs.c (prepare_operand): Make it static.
4547 * optabs.h: Remove the corresponding prototype.
4548
4549 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4550
4551 * reload1.c (reloads_conflict, gen_reload): Make them static.
4552 * reload.h: Remove the corresponding prototypes.
4553
4554 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4555
4556 * reload.c (refers_to_mem_for_reload_p,
4557 refers_to_regno_for_reload_p): Make them static.
4558 * reload.h: Remove the corresponding prototypes.
4559
4560 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
4561 Eric Botcazou <ebotcazou@libertysurf.fr>
4562
4563 PR target/18230
4564 * doc/md.texi (SPARC constraints): Document 'Y' constraint.
4565 * config/sparc/sparc-modes.def: Add vector modes of 4 and 8 bytes.
4566 * config/sparc/sparc.c (sparc_vector_mode_supported_p): New function.
4567 (TARGET_VECTOR_MODE_SUPPORTED_P): Set to sparc_vector_mode_supported_p.
4568 (fp_zero_operand): Accept MODE_VECTOR_INT modes.
4569 (input_operand): Accept CONST_VECTOR with MODE_VECTOR_INT modes.
4570 (sparc_cannot_force_const_mem): Return false for CONST_VECTOR.
4571 (sparc_init_modes): Set sparc_mode_class to SF_MODE or DF_MODE for
4572 MODE_VECTOR_INT modes.
4573 (sparc_extra_constraint_check): Add new constraint 'Y'.
4574 * config/sparc/sparc.h: Define UNITS_PER_SIMD_WORD to 8 for TARGET_VIS.
4575 * config/sparc/sparc.md (V32): New mode macro for 32-bit modes.
4576 (V64): New mode macro for 64-bit modes.
4577 (movsf): Use V32 for mode instead of SF.
4578 (movsf_insn_vis): Use V32 for mode instead of SF. Add 'Y' constraint
4579 alongside 'G' constraint.
4580 (movdf): Use V64 for mode instead of DF.
4581 (movdf_insn_v9only_vis, modf_insn_sp64_vis): Use V64 for mode instead
4582 of DF. Add 'Y' constraint alongside 'G' constraint.
4583 (multi-isn and misaligned mems DFmode splitters): Use V64 for mode
4584 instead of DF.
4585
4586 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
4587
4588 * config/s390/s390.c (s390_select_ccmode): Return CCAPmode for
4589 integer NEG and ABS.
4590 * config/s390/s390.md ("*negdi2_64"): Fix op_type attribute.
4591 ("*negdi2_31"): Reimplement using a splitter.
4592 ("*negdi2_cc", "*negdi2_cconly"): New insns.
4593 ("*negdi2_sign", "*negdi2_sign_cc"): Likewise.
4594 ("*negsi2_cc", "*negsi2_cconly"): Likewise.
4595 ("*negdf2_cc", "*negdf2_cconly"): Likewise.
4596 ("*negsf2_cc", "*negsf2_cconly"): Likewise.
4597 ("*absdi2_cc", "*absdi2_cconly"): New insns.
4598 ("*absdi2_sign", "*absdi2_sign_cc"): Likewise.
4599 ("*abssi2_cc", "*abssi2_cconly"): Likewise.
4600 ("*absdf2_cc", "*absdf2_cconly"): Likewise.
4601 ("*abssf2_cc", "*abssf2_cconly"): Likewise.
4602 ("*negabsdi2_cc", "*negabsdi2_cconly"): New insns.
4603 ("*negabsdi2_sign", "*negabsdi2_sign_cc"): Likewise.
4604 ("*negabssi2_cc", "*negabssi2_cconly"): Likewise.
4605 ("*negabsdf2_cc", "*negabsdf2_cconly"): Likewise.
4606 ("*negabssf2_cc", "*negabssf2_cconly"): Likewise.
4607
4608 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
4609
4610 * config/s390/s390.c (s390_canonicalize_comparison): Reverse condition
4611 when eliminating an UNSPEC_CMPINT.
4612 (s390_secondary_input_reload_class): Fix test for CC register reload.
4613 (s390_secondary_output_reload_class): Likewise.
4614 (s390_expand_cmpmem): Swap operands. Use gen_cmpint.
4615 * config/s390/s390.md ("*cmpint_si", "*cmpint_di"): Remove.
4616 ("cmpint", "*cmpint_cc", "*cmpint_sign", "*cmpint_sign_cc"): New
4617 insn patterns with splitters.
4618
4619 2004-11-09 David Edelsohn <edelsohn@gnu.org>
4620
4621 * config/rs6000/rs6000.c (rs6000_rtx_costs): Add EQ, GTU, and LTU.
4622 * config/rs6000/rs6000.md (sCC): Split GTU and LTU patterns.
4623
4624 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4625
4626 * tree-phinodes.c (phi_reverse): New.
4627 * tree-cfg.c (tree_make_forwarder_block, tree_duplicate_bb):
4628 Use it.
4629 * tree-flow.h: Add a prototype for phi_reverse.
4630
4631 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4632
4633 * tree-ssa-loop-ivopts.c: Fix a comment typo.
4634
4635 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
4636
4637 PR pch/14940
4638 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __sparc__
4639 definitions.
4640
4641 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
4642
4643 * builtins.c, c-common.c, c-decl.c, c-format.c: Say "argument"
4644 instead of "arg" in diagnostics.
4645
4646 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
4647
4648 * builtins.c, c-common.c, c-decl.c, c-format.c, c-format.h,
4649 c-parse.in, c-pch.c, c-pragma.c, collect2.c, final.c, gcc.c,
4650 gcov.c, opts.c, pretty-print.h, protoize.c, reg-stack.c, rtl.c,
4651 tlink.c, config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
4652 config/avr/avr.c, config/c4x/c4x.c, config/darwin.c,
4653 config/frv/frv.c, config/h8300/h8300.c, config/i386/i386.c,
4654 config/i386/winnt.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
4655 config/iq2000/iq2000.c, config/m32r/m32r.c,
4656 config/m68hc11/m68hc11.c, config/m68k/m68k.c, config/m68k/m68k.h,
4657 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.c,
4658 config/ns32k/ns32k.c, config/rs6000/host-darwin.c,
4659 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
4660 config/sh/symbian.c, config/stormy16/stormy16.c,
4661 config/v850/v850.c: Avoid "`" as left quote, using "'" or %q, %<
4662 and %> as appropriate. Use %' as apostrophe in diagnostics where
4663 applicable. Use %< and %> in place of '' quotes where applicable.
4664 Use %qs in place of %<%s%>. Consistently quote __builtin function
4665 names.
4666
4667 2004-11-09 Hans-Peter Nilsson <hp@bitrange.com>
4668
4669 * gdbinit.in (pbb, pbm): New macros.
4670
4671 2004-11-08 Jeff Law <law@redhat.com>
4672
4673 * cfg.c (redirect_edge_succ_nodup): Use find_edge rather than
4674 implementing it inline.
4675
4676 * cfganal.c (find_edge): Search pred->succs or succ->preds,
4677 whichever is shorter.
4678
4679 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4680
4681 * passes.c (rest_of_handle_jump): Remove dead code.
4682
4683 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4684
4685 * tree-cfg.c (thread_jumps): Speed up by keeping a pointer to
4686 the last used element in the worklist.
4687
4688 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4689
4690 * tree-inline.c (remap_save_expr): Make it static.
4691 * tree-inline.h: Remove the corresponding prototype.
4692
4693 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4694
4695 * tree-ssa-loop-niter.c (upper_bound_in_type,
4696 lower_bound_in_type): Make them static.
4697 * tree.h: Remove the corresponding prototypes.
4698
4699 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4700
4701 * tree-ssa-live.c (tpa_init, pop_best_coalesce): Make them
4702 static.
4703 * tree-ssa-live.h: Remove the corresponding prototypes.
4704
4705 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4706
4707 * tree-if-conv.c (tree_if_conversion): Make it static.
4708 * tree-flow.h: Remove the corresponding prototype.
4709
4710 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4711
4712 * tree-ssa-operands.c (build_ssa_operands): Make it static.
4713 * tree-flow.h: Remove the corresponding prototype.
4714
4715 2004-11-08 Andrew Pinski <pinskia@physics.uc.edu>
4716
4717 PR tree-opt/18299
4718 * tree-inline.c (copy_body_r): Change "t = t" to empty
4719 statement instead of "t".
4720
4721 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4722
4723 * modulo-sched.c (create_partial_schedule,
4724 free_partial_schedule, reset_partial_schedule,
4725 ps_add_node_check_conflicts, rotate_partial_schedule): Make
4726 them static.
4727
4728 2004-11-08 Richard Henderson <rth@redhat.com>
4729
4730 * expmed.c (extract_force_align_mem_bit_field): Correct handling at
4731 the end of a page.
4732
4733 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4734
4735 * sched-deps.c (add_insn_mem_dependence): Make it static.
4736 * sched-int.h: Remove the corresponding prototypes.
4737
4738 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4739
4740 * flow.c (allocate_bb_life_data): Make it static.
4741 * basic-block.h: Remove the corresponding prototype.
4742
4743 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4744
4745 * calls.c (split_complex_values, split_complex_types): Make
4746 them static.
4747 * expr.h: Remove the corresponding prototypes.
4748
4749 2004-11-08 Richard Earnshaw <rearnsha@arm.com>
4750
4751 * arm.c (arm_handle_notshared_attribute): Wrap declaration and use
4752 with #if TARGET_DLLIMPORT_DECL_ATTRIBUTES.
4753
4754 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4755
4756 * tree-if-conv.c (tree_if_convert_cond_expr): Remove two "if"
4757 statements that always trigger.
4758
4759 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
4760
4761 * tree-cfg.c, tree-if-conv.c, tree-into-ssa.c,
4762 tree-scalar-evolution.c, tree-ssa-loop-im.c,
4763 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa.c,
4764 tree-vectorizer.c: Replace TREE_CHAIN with PHI_CHAIN where
4765 appropriate.
4766
4767 2004-11-08 Ben Elliston <bje@au.ibm.com>
4768
4769 * cgraph.h (cgraph_calls_p): Remove.
4770 * cgraph.c (cgraph_calls_p): Likewise.
4771
4772 * varray.h (varray_copy): Remove.
4773 * varray.c (varray_copy): Likewise.
4774
4775 2004-11-07 Andrew Pinski <pinskia@physics.uc.edu>
4776
4777 PR target/18269
4778 * config/darwin.c (machopic_indirect_data_reference):
4779 Call gen_macho_high and gen_macho_low instead of
4780 checking the mode and calling gen_macho_high_di directly.
4781 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
4782 * config/rs6000/rs6000.md: Move most of TARGET_MACHO expand/insns
4783 to darwin.md.
4784 (movdf_low, movsf_low, movsf_low_st, movsi_low, macho_correct_pic,
4785 load_macho_picbase, macho_low, macho_high): Removed.
4786 (builtin_setjmp_receiver): Call gen_macho_high and
4787 gen_macho_low instead of checking the mode and calling
4788 gen_macho_high_di directly.
4789 * config/rs6000/darwin.md (load_macho_picbase_di): Use the MD constant.
4790 (movdf_low_si, movsf_low_si, movsf_low_st_si, movsi_low_st):
4791 Moved from rs6000.md.
4792 (macho_high): New expander.
4793 (macho_high_si): Renamed version of macho_high from rs6000.md.
4794 (macho_low): New expander.
4795 (macho_low_si): Renamed version of macho_low from rs6000.md.
4796 (load_macho_picbase): New expander.
4797 (load_macho_picbase_si): Renamed version of load_macho_picbase
4798 from rs6000.md.
4799 (macho_correct_pic): New expander.
4800 (macho_correct_pic_si): Renamed version of macho_correct_pic
4801 from rs6000.md.
4802
4803 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
4804
4805 * c-decl.c (finish_struct): Use complete sentences for diagnostic
4806 for structures or unions with no members or named members.
4807
4808 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
4809
4810 * c-typeck.c (build_unary_op): Replace unreachable diagnostic for
4811 taking address of bit-field by assertion.
4812
4813 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
4814
4815 * config/s390/s390.md (attribute "op_type"): Default to "NN".
4816 (attribute "atype"): Default to "agen".
4817 (attribute "length"): Default to 6.
4818 (define_asm_attibutes): Remove.
4819 ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
4820 "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf",
4821 "*clc", "*mvc", "*nc", "*oc", "*xc", "*xc_zero"):
4822 Do not set type attribute to "cs" where already default.
4823 ("*cmpint_si", "*cmpint_di", "fix_truncdfsi2_ibm", "floatsidf2_ibm",
4824 "*negdi2_31"):
4825 Do not set type attribute to "other" where already default.
4826 ("movti", "*movdi_64", "*movdi_31", "*movdf_31",
4827 "*strlendi", "*strlensi",
4828 "*movmem_long_64", "*movmem_long_31",
4829 "*clrmem_long_64", "*clrmem_long_31",
4830 "*cmpmem_long_64", "*cmpmem_long_31",
4831 "*cmpint_si", "*cmpint_di",
4832 "addti3", "*adddi3_31z", "*adddi3_31",
4833 "subti3", "*subdi3_31z", "*subdi3_31", "*negdi2_31",
4834 "*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg",
4835 "fix_truncdfsi2_ibm", "floatsidf2_ibm", "extendsfdf2_ibm",
4836 "*pool_entry", "pool_align", "pool_section_start",
4837 "pool_section_end", "main_pool", "reload_base_31", "pool"):
4838 Do not set op_type attribute to "NN" where already default.
4839 ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
4840 "*zero_extendqisi2_31", "*zero_extendqihi2_31",
4841 "fix_truncdfsi2_ibm", "floatsidf2_ibm"):
4842 Do not set atype attribute to "agen" where already default.
4843 ("*movmem_short", "*clrmem_short", "*cmpmem_short"): Don't set op_type.
4844
4845 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
4846
4847 * config/mips/t-iris6 (tp-bit.c): Fix target filename.
4848
4849 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
4850
4851 PR target/16830
4852 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define the
4853 R3000 and R4000 macros on IRIX.
4854
4855 2004-11-06 Andreas Schwab <schwab@suse.de>
4856
4857 PR target/16286
4858 * config/rs6000/altivec.h: Replace bool by __bool and pixel by
4859 __pixel.
4860
4861 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
4862
4863 * tree-ssa-copyrename.c (rename_ssa_copies): Make it static.
4864
4865 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
4866
4867 * config/s390/2064.md ("z_int", "z_agen"): Ensure the condition
4868 matches no insns already matched by other reservations.
4869 * config/s390/2084.md ("x_int", "x_agen"): Ensure the condition
4870 matches no insns already matched by other reservations.
4871 ("x_ss"): Remove, replace by ...
4872 ("x_cs"): ... this new reservation. Check type instead of op_type.
4873 Update bypasses to use x_cs instead of x_ss.
4874 ("x_nn"): Remove, replace by ...
4875 ("x_other"): ... this new reservation. Check type instead of op_type.
4876 Add x_other and x_branch to bypasses.
4877 ("x_vs"): New reservation.
4878 * config/s390/s390.md (attribute "type"): Default according to op_type.
4879 ("*execute"): Set type to "cs".
4880
4881 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
4882
4883 * fold-const.c (non_lvalue): Don't construct NON_LVALUE_EXPR
4884 if we are in GIMPLE.
4885
4886 2004-11-06 Hans-Peter Nilsson <hp@bitrange.com>
4887
4888 PR rtl-optimization/17933
4889 * rtlanal.c (dead_or_set_regno_p): Break out common code to...
4890 (covers_regno_p): New function. Handle SETs of PARALLEL,
4891 and defer the rest to...
4892 (covers_regno_no_parallel_p): New function.
4893
4894 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
4895
4896 * config/sparc/sparc.c (function_arg_record_value_1): Skip
4897 fields with zero length.
4898 (function_arg_record_value_2): Likewise.
4899 (function_arg_record_value_3): Use smallest_mode_for_size
4900 instead of mode_for_size.
4901 (function_arg_union_value): Return naked register for unions
4902 with zero length.
4903
4904 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
4905
4906 * config/sparc/sparc.c (scan_record_type): Handle vector types.
4907 (function_arg_slotno): Handle vector types specially.
4908 (function_arg_record_value_1): Split fields with vector type and
4909 BLKmode into their subparts.
4910 (function_arg_record_value_2): Likewise. Be prepared to handle
4911 more than 2 registers per field.
4912 (function_arg_union_value): Increment regno inside the loop.
4913 (function_arg_vector_value): New function.
4914 (function_arg): Use it to split fields with vector type and
4915 BLKmode into their subparts and build a PARALLEL. Treat
4916 other vector types like floats.
4917 (function_value): Likewise.
4918 (sparc_pass_by_reference): Handle vector types.
4919 (sparc_return_in_memory): Likewise.
4920
4921 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
4922
4923 * tree-cfg.c (find_taken_edge_cond_expr): Remove an "if"
4924 statement that never triggers.
4925
4926 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
4927
4928 * config/s390/2064.md ("z_o2", "z_o3"): Remove.
4929 * config/s390/2084.md ("x_o2", "x_o3"): Remove.
4930 ("x_fdivd"): Use also for fsqrtd type.
4931 ("x_fdivs"): Use also for fsqrts type.
4932 * config/s390/s390.md (attribute "type"): Remove "o2" and "o3" types.
4933 ("fix_truncdfsi2_ieee"): Set type to "ftoi".
4934 ("fix_truncdfsi2_ibm"): Set type to "other".
4935 ("floatdidf2", "floatdisf2"): Do not clobber CC.
4936 ("floatsidf2", "floatsidf2_ieee"): Likewise.
4937 ("floatsisf2", "floatsisf2_ieee"): Likewise.
4938 ("truncdfsf2", "truncdfsf2_ieee"): Only allow "register_operand".
4939 ("truncdfsf2_ibm"): Only allow "nonimmediate_operand". Use LER
4940 instead of LRER.
4941 ("extendsfdf2_ibm"): Do not set atype. Set type to "floads".
4942 ("sqrtdf2"): Set type to "fsqrtd".
4943 ("sqrtsf2"): Set type to "fsqrts".
4944
4945 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
4946
4947 * tree-phinodes.c (remove_all_phi_nodes_for): Speed up using a
4948 pointer to the last PHI node in the new PHI chain.
4949
4950 2004-11-06 Kaz Kojima <kkojima@gcc.gnu.org>
4951
4952 * config/sh/sh.c (prepare_move_operands): Emit a use of r12
4953 for non-PIC TLS_MODEL_INITIAL_EXEC case.
4954
4955 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
4956
4957 * expmed.c: Fix a comment typo.
4958
4959 2004-11-06 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
4960
4961 PR target/18106
4962 * config/i386/cygming.h
4963 [HAVE_GAS_WEAK] (ASM_WEAKEN_LABEL): Macro defined.
4964
4965 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
4966
4967 * config/sh/sh4a.md: Fix copyright.
4968
4969 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
4970
4971 * config/rs6000/darwin.md, config/sh/sh4a.md: Replace GNU CC
4972 with GCC.
4973
4974 2004-11-05 David Edelsohn <edelsohn@gnu.org>
4975
4976 * config/rs6000/rs6000.md (scc patterns): Replace subfc with subf
4977 when carry not used. Suggested by Torbjorn Granlund.
4978
4979 * config/rs6000/rs6000.c (rs6000_emit_move): Don't force_reg
4980 operand[1] unnecessarily. Suggested by Eric Christopher.
4981 (rs6000_adjust_cost): Increase latency of store to wider load.
4982 (rs6000_rtx_costs): mulli only allows 16-bit constants.
4983
4984 2004-11-05 Stan Shebs <shebs@apple.com>
4985
4986 * config/rs6000/rs6000.c (machopic_output_stub): Output
4987 ldu instead of lwzu for 64-bit stubs.
4988
4989 2004-11-05 Richard Henderson <rth@redhat.com>
4990
4991 * config/alpha/alpha.c (alpha_expand_unaligned_load): Special case
4992 size 2 with BWX.
4993 (alpha_expand_unaligned_store): Likewise.
4994
4995 2004-11-05 Richard Henderson <rth@redhat.com>
4996
4997 * expmed.c (extract_force_align_mem_bit_field): New.
4998 (extract_split_bit_field): Call it.
4999
5000 2004-11-05 Richard Henderson <rth@redhat.com>
5001
5002 * ia64.md (UNSPEC_SHRP): New.
5003 (dshift_count_operand): New.
5004 (ashrti3, ashrti3_internal, lshrti3, lshrti3_internal, shrp): New.
5005 * ia64.c (rtx_needs_barrier): Handle UNSPEC_SHRP.
5006
5007 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
5008
5009 * c-typeck.c (output_init_element): Return early if value is
5010 error_mark_node.
5011
5012 2004-11-05 James E Wilson <wilson@specifixinc.com>
5013
5014 * invoke.texi (-fno-guess-branch-probability): Rewrite.
5015
5016 * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC_GR_SPILL): Change
5017 1 to UNSPEC_GR_SPILL.
5018
5019 2004-11-05 Andreas Krebbel <krebbel1@de.ibm.com>
5020
5021 * config/s390/s390.c (s390_fixed_condition_code_regs): New function.
5022 (TARGET_FIXED_CONDITION_CODE_REGS): Macro defined.
5023
5024 2004-11-05 Nathan Sidwell <nathan@codesourcery.com>
5025
5026 * bitmap.h (enum bitmap_bits): Remove.
5027 (bitmap_operation): Remove.
5028 (bitmap_and, bitmap_and_into, bitmap_and_compl,
5029 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
5030 bitmap_xor_into): Prototype.
5031 * bitmap.c (bitmap_elt_insert_after, bitmap_elt_clear_from): New.
5032 (bitmap_operation): Remove.
5033 (bitmap_and, bitmap_and_into, bitmap_and_compl,
5034 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
5035 bitmap_xor_into): New.
5036 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Adjust.
5037
5038 PR tree-optimization/18307
5039 * tree-ssa-alias.c (merge_pointed_to_info): Protected against DEST
5040 and ORIG being the same node.
5041
5042 2004-11-04 Geoffrey Keating <geoffk@apple.com>
5043
5044 * Makefile.in (distclean): Don't delete nonexistent fixinc/ directory.
5045 (install-mkheaders): Install the version built for the
5046 host, not for the build machine.
5047 * configure.ac: Always run fixincludes.
5048 (all_outputs): Remove mkheaders.
5049 * configure: Regenerate.
5050 * fixinc.in: Move to fixincludes/.
5051 * mkfixinc.sh: Likewise.
5052 * mkheaders.in: Likewise.
5053 * README-fixinc: Likewise.
5054
5055 2004-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
5056
5057 PR target/18263
5058 * config/arc/lib1funcs.asm (___umulsidi3): Change use of cmp to the
5059 equivalent on the A4.
5060
5061 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
5062
5063 * doc/c-tree.texi, doc/cfg.texi, doc/contrib.texi, doc/cpp.texi,
5064 doc/cppopts.texi, doc/extend.texi, doc/fragments.texi,
5065 doc/frontends.texi, doc/gcov.texi, doc/hostconfig.texi,
5066 doc/implement-c.texi, doc/install.texi, doc/invoke.texi,
5067 doc/libgcc.texi, doc/md.texi, doc/passes.texi,
5068 doc/portability.texi, doc/rtl.texi, doc/sourcebuild.texi,
5069 doc/standards.texi, doc/tm.texi, doc/tree-ssa.texi,
5070 doc/trouble.texi: Correct end-of-sentence markup and markup of
5071 "etc.", "e.g." and "i.e.". Use @code in various places where
5072 appropriate.
5073
5074 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
5075
5076 * doc/c-tree.texi, doc/cfg.texi, doc/extend.texi, doc/gty.texi,
5077 doc/install.texi, doc/invoke.texi, doc/md.texi, doc/passes.texi,
5078 doc/rtl.texi, doc/tm.texi, doc/tree-ssa.texi: Remove trailing
5079 whitespace.
5080
5081 2004-11-04 Mark Mitchell <mark@codesourcery.com>
5082
5083 * config/arm/arm.c (arm_handle_notshared_attribute): New function.
5084 * doc/extend.texi: Document "notshared" attribute.
5085
5086 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5087
5088 * tree-phinodes.c (make_phi_node): Make it static.
5089 * tree.h: Remove the prototypes for make_phi_node.
5090
5091 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5092
5093 * stmt.c (expand_asm, expand_asm_operands): Make them static.
5094 * tree.h: Remove the prototypes for expand_asm and
5095 expand_asm_operands.
5096
5097 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5098
5099 * passes.c (rest_of_compilation): Make it static.
5100 * toplev.h: Remove the prototype for rest_of_compilation.
5101
5102 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5103
5104 * jump.c (cleanup_barriers): Use delete_insn instead of
5105 delete_barrier.
5106 (delete_barrier): Remove.
5107 * rtl.h: Remove the corresponding prototype.
5108
5109 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5110
5111 * expr.c (mostly_zero_p): Make it static.
5112 * tree.h: Remove the prototype for mostly_zeros_p.
5113
5114 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5115
5116 * cfgrtl.c (force_nonfallthru_and_redirect): Make it static.
5117
5118 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5119
5120 * builtins.c (expand_builtin_return_addr,
5121 expand_builtin_longjmp, expand_builtin_trap): Make them static.
5122 * expr.h: Remove the prototypes for expand_builtin_longjmp and
5123 expand_builtin_trap.
5124 * tree.h: Remove the prototype for expand_builtin_return_addr.
5125
5126 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5127
5128 * tree-cfg.c (find_taken_edge): Reject VAL begin NULL.
5129 * tree-ssa-ccp.c (visit_cond_stmt): Don't call find_taken_edge
5130 with VAL being NULL.
5131
5132 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5133
5134 * cfghooks.c (delete_basic_block): Remove code to truncate
5135 edge vectors.
5136
5137 2004-11-04 Andrew Pinski <pinskia@physics.uc.edu>
5138
5139 * flow.c (init_propagate_block_info): Change the type of i to
5140 unsigned.
5141
5142 2004-11-04 Ulrich Weigand <uweigand@de.ibm.com>
5143
5144 PR tree-optimization/18184
5145 * c-typeck.c (comptypes): Do not treat pointers of different
5146 modes or alias-all flags as equivalent.
5147 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Likewise.
5148
5149 2004-11-04 Joseph S. Myers <joseph@codesourcery.com>
5150
5151 * doc/gty.texi, doc/makefile.texi, doc/sourcebuild.texi: Don't
5152 reference specific C parser files in examples.
5153
5154 2004-11-04 Richard Sandiford <rsandifo@redhat.com>
5155
5156 PR target/15342
5157 * regrename.c (scan_rtx): Treat the destinations of SETs and CLOBBERs
5158 as OP_INOUT if the instruction is predicated.
5159
5160 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5161
5162 * bitmap.h: Fix a comment typo. Follow spelling conventions.
5163 * tree-vectorizer.c: Fix a comment typo.
5164
5165 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5166
5167 * sdbout.c (SDB_GENERATE_FAKE): Remove.
5168 (gen_fake_label): Don't use SDB_GENERATE_FAKE.
5169 * system.h: Poison SDB_GENERATE_FAKE.
5170 * doc/tm.texi (SDB_GENERATE_FAKE): Remove.
5171
5172 2004-11-04 Ulrich Weigand <uweigand@de.ibm.com>
5173
5174 * config/s390/s390.md ("*addsi3_sign"): Use canonical RTL.
5175
5176 2004-11-04 Eric Botcazou <ebotcazou@libertysurf.fr>
5177
5178 PR other/18277
5179 * gthr-posix.h (__gthread_recursive_mutex_init_function): Revert
5180 2004-10-29 patch
5181
5182 2004-11-04 Nathan Sidwell <nathan@codesourcery.com>
5183
5184 * predict.c (propagate_freq): Make bitno unsigned. Move
5185 npredecessors update out of loop.
5186
5187 * bitmap.h (bitmap_iterator): Remove word_bit and bit
5188 fields. Rename others.
5189 (bmp_iter_common_next_1, bmp_iter_single_next_1,
5190 bmp_iter_single_init, bmp_iter_end_p, bmp_iter_single_next,
5191 bmp_iter_and_not_next_1, bmp_iter_and_not_init,
5192 bmp_iter_and_not_next, bmp_iter_and_next_1, bmp_iter_and_init,
5193 bmp_iter_and_next): Remove.
5194 (bmp_iter_set_init, bmp_iter_and_init, bmp_iter_and_compl_init,
5195 bmp_iter_next, bmp_iter_set, bmp_iter_and, bmp_iter_and_compl):
5196 New.
5197 (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_IN_BITMAP,
5198 EXECUTE_IF_AND_COMPL_IN_BITMAP): Adjust.
5199
5200 * bitmap.h (bitmap_a_or_b, bitmap_a_and_b): Remove.
5201 * df.c (dataflow_set_a_op_b): Use bitmap_and, bitmap_ior,
5202 bitmap_and_into, bitmap_ior_into as appropriate.
5203 * except.c (remove_eh_handler): Likewise.
5204 * global.c (modify_bb_reg_pav, make_accurate_live_analysis): Likewise.
5205 * tree-dfa.c (mark_new_vars_to_rename): Likewise.
5206 * tree-ssa-alias.c (merge_pointed_to_info): Likewise.
5207 * tree-ssa-live.h (live_merge_and_clear): Likewise.
5208 * tree-ssa-loop-ivopts.c (find_best_candidate, try_add_cand_for):
5209 Likewise.
5210
5211 * bitmap.c (bitmap_print): Make bitno unsigned.
5212 * bt-load.c (clear_btr_from_live_range,
5213 btr_def_live_range): Likewise.
5214 * caller-save.c (save_call_clobbered_regs): Likewise.
5215 * cfganal.c (compute_dominance_frontiers_1): Likewise.
5216 * cfgcleanup.c (thread_jump): Likewise.
5217 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
5218 * conflict.c (conflict_graph_compute): Likewise.
5219 * ddg.c (add_deps_for_use): Likewise.
5220 * df.c (df_refs_update): Likewise.
5221 * except.c (remove_eh_handler): Likewise.
5222 * flow.c (verify_local_live_at_start, update_life_info,
5223 initialize_uninitialized_subregs, propagate_one_insn,
5224 free_propagate_block_info, propagate_block, find_use_as_address,
5225 reg_set_to_hard_reg_set): Likewise.
5226 * gcse.c (clear_modify_mem_tables): Likewise.
5227 * global.c (global_conflicts, build_insn_chain): Likewise.
5228 * ifcvt.c (dead_or_predicable): Likewise.
5229 * local-alloc.c (update_equiv_regs): Likewise.
5230 * loop.c (load_mems): Likewise.
5231 * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs):
5232 Likewise.
5233 * ra-rewrite.c (reloads_to_loads, rewrite_program2, actual_spill):
5234 Likewise.
5235 * reload1.c (order_regs_for_reload, finish_spills): Likewise.
5236 * sched-deps.c (sched_analyze_insn, free_deps): Likewise.
5237 * sched-rgn.c (propagate_deps
5238 * tree-cfg.c (tree_purge_all_dead_eh_edges): Likewise.
5239 * tree-dfa.c (dump_dfa_stats
5240 tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
5241 insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags):
5242 Likewise.
5243 * tree-outof-ssa.c (coalesce_ssa_name, coalesce_vars,
5244 free_temp_expr_table, find_replaceable_exprs): Likewise.
5245 * tree-sra.c (scan_function, scalarize_parms): Likewise.
5246 * tree-ssa-alias.c (init_alias_info,
5247 compute_points_to_and_addr_escape,
5248 compute_flow_sensitive_aliasing, maybe_create_global_var): Likewise.
5249 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Likewise.
5250 * tree-ssa-live.c (new_tree_live_info, live_worklist,
5251 calculate_live_on_entry, calculate_live_on_exit, compare_pairs,
5252 sort_coalesce_list, build_tree_conflict_graph, dump_live_info
5253 tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
5254 tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
5255 add_call_read_ops): Likewise.
5256 * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Likewise.
5257 * tree-ssa-live.h (num_var_partitions): Return unsigned.
5258
5259 2004-11-03 Dorit Naishlos <dorit@il.ibm.com>
5260
5261 PR tree-optimization/18009
5262 * tree-vectorizer.h (enum dr_alignment_support): New type.
5263 (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): Removed.
5264 (LOOP_UNALIGNED_DR): replaced with LOOP_VINFO_UNALIGNED_DR and holds a
5265 single data_reference (instead of a varray of references).
5266 * tree-vectorizer.c (new_loop_vec_info): Likewise.
5267 (vect_gen_niters_for_prolog_loop): Likewise.
5268 (vect_update_inits_of_drs): Likewise.
5269
5270 (vect_update_inits_of_drs): Setting of DR_MISALIGNMENT moved to
5271 vect_enhance_data_refs_alignment.
5272 (vect_do_peeling_for_alignment): Likewise.
5273 (vect_enhance_data_refs_alignment): Decide if and by how much to peel;
5274 this functionality used to be in vect_analyze_data_refs_alignment.
5275 Also update DR_MISALIGNMENT due to peeling; this functionality used to
5276 be in vect_update_inits_of_drs and vect_do_peeling_for_alignment).
5277 (vect_analyze_data_refs_alignment): Decision on whether and by how much
5278 to peel moved to vect_enhance_data_refs_alignment. Call
5279 vect_supportable_dr_alignment.
5280
5281 (vect_compute_data_ref_alignment): Set STMT_VINFO_VECTYPE.
5282 (vect_compute_data_refs_alignment): Return bool. Consider return value
5283 of vect_compute_data_ref_alignment and return true/false accordingly.
5284 (vect_enhance_data_refs_alignment): Consider return value of
5285 vect_compute_data_refs_alignment and return true/false accordingly.
5286
5287 (vect_supportable_dr_alignment): New function.
5288 (vectorizable_store): Call vect_supportable_dr_alignment.
5289 (vectorizable_load): Call vect_supportable_dr_alignment. Alignment
5290 support checks moved from here to vect_supportable_dr_alignment.
5291
5292 (vect_transform_loop): Avoid 80 columns overflow.
5293
5294 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
5295
5296 * timevar.c (timevar_enable): Change from
5297 static.
5298 (timevar_push): Rename to ...
5299 (timevar_push_1): this and remove the
5300 enabled check.
5301 (timevar_pop): Rename to ...
5302 (timevar_pop_1): this and remove the
5303 enabled check.
5304 * timevar.h (POP_TIMEVAR_AND_RETURN): Use do/while loops.
5305 (timevar_pop): New macro.
5306 (timevar_push): New macro.
5307 (timevar_enable): Declare.
5308
5309 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
5310
5311 * config/darwin.h (REAL_LIBGCC_SPEC): Define to use shared
5312 libgcc for shared libraries.
5313
5314 2004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
5315
5316 * config/s390/s390-protos.h (s390_split_access_reg): Add prototype.
5317 * config/s390/s390.c (s390_split_access_reg): New function.
5318 (regclass_map): Add access registers.
5319 (get_thread_pointer): Use access register instead of UNSPEC_TP.
5320 * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Set to 38.
5321 (ACCESS_REGNO_P, ACCESS_REG_P): New macros.
5322 (TP_REGNUM): New define.
5323 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5324 REG_ALLOC_ORDER): Add access registers.
5325 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
5326 CANNOT_CHANGE_MODE_CLASS): Support access registers.
5327 (enum reg_class): Add ACCESS_REGS.
5328 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
5329 (REG_CLASS_FROM_LETTER): Add 't' constraint.
5330 (REGISTER_NAMES): Add access registers.
5331 * config/s390/s390.md (UNSPEC_TP): Remove.
5332 ("*movdi_64"): Add access register alternatives. Provide splitters
5333 to split DImode access register <-> GPR moves into SImode moves.
5334 ("*movsi_zarch", "*movsi_esa"): Add access register alternatives.
5335 ("movstrictsi"): Likewise.
5336 ("get_tp_64", "get_tp_31"): Reimplement using access registers.
5337 ("set_tp_64", "set_tp_31"): Likewise.
5338 ("*set_tp"): New insn.
5339
5340 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
5341
5342 * tree-phinodes.c (resize_phi_node): Copy only a portion of
5343 the PHI node currently in use.
5344
5345 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
5346
5347 PR tree-opt/18231
5348 * tree.c (staticp) <case FUNCTION_DECL>: Nested functions are static
5349 also.
5350
5351 2004-11-03 Andrew MacLeod <amacleod@redhat.com>
5352
5353 PR tree-optimization/18270
5354 * tree-outof-ssa.c (analyze_edges_for_bb): If a block has incoming
5355 abnormal edges, commit all pending stmts on incoming edges.
5356
5357 2004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
5358
5359 * tree-ssa-loop-ivopts.c (get_address_cost): Offset zero does not
5360 cause extra costs. Generate canonical RTL.
5361
5362 2004-11-02 Daniel Berlin <dberlin@dberlin.org>
5363
5364 * lambda-code.c (lambda_compute_auxillary_space): Update comments.
5365 (lambda_compute_target_space). Ditto.
5366 * lambda.h (lambda_trans_matrix): Ditto.
5367 (lambda_linear_expression): Ditto.
5368 (lambda_body_vector): Ditto.
5369 (lambda_loopnest): Ditto.
5370 * tree-loop-linear.c (gather_interchange_stats): Combine tests,
5371 update comments, and remove pointless addition of 0.
5372 (linear_transform_loops): Update comments.
5373
5374 2004-11-03 Sebastian Pop <pop@cri.ensmp.fr>
5375
5376 * tree.c (tree_fold_gcd): Use FLOOR_MOD_EXPR instead of
5377 CEIL_MOD_EXPR.
5378
5379 2004-11-03 Jeff Law <law@redhat.com>
5380
5381 * predict.c (struct block_info_def): Kill "tovisit" field.
5382 (propagate_freq): Accept new "tovisit" parameter. Change
5383 read/write access methods for "tovisit" to check the "tovisit"
5384 bitmap instead of a bit in block_info_def.
5385 (estimate_loops_at_level): Allocate "tovisit" bitmap. Pass
5386 it to propagate_freq.
5387
5388 * stmt.c (expand_case): Speed up code to detect duplicate case
5389 label targets and count unique case label targets.
5390
5391 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
5392
5393 * cppdefault.c, cppdefault.h, timevar.h: Update copyright.
5394
5395 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
5396
5397 * bitmap.h, dbxout.c, tree-mudflap.c: Fix comment formatting.
5398
5399 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
5400
5401 * tree-cfg.c (find_taken_edge): Abort if we are given a
5402 statement that is neither COND_EXPR nor SWITCH_EXPR.
5403
5404 2004-11-02 Zdenek Dvorak <dvorakz@suse.cz>
5405
5406 * fold-const.c (fold): Reassociate also (x - mult) + mult and
5407 (mult - x) + mult. Cast operands of expression after applying
5408 distributive law to the correct types. Apply distributive law
5409 to a * c - b * c for all non-float types.
5410
5411 2004-11-02 Geoffrey Keating <geoffk@apple.com>
5412
5413 * configure.ac: Don't clear STMP_FIXINC or STMP_FIXPROTO just
5414 because we don't want to run them now; instead, set them to
5415 stmp-install-fixproto or stmp-install-fixinc.
5416 * Makefile.in (stmp-install-fixproto): New.
5417 (stmp-install-fixinc): New.
5418 * configure: Regenerate.
5419
5420 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
5421
5422 * flow.c (init_propagate_block_info): Use bitmap_empty_p on result
5423 of bitmap_xor.
5424
5425 2004-11-02 Ziemowit Laski <zlaski@apple.com>
5426
5427 * c-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
5428 (c_types_compatible_p): Move function definition...
5429 * c-objc-common.c (c_types_compatible_p): ...here.
5430 * c-objc-common.h (LANG_HOOKS_TYPES_COMPATIBLE_P): Moved here from
5431 c-lang.c.
5432
5433 2004-11-02 Steven Bosscher <stevenb@suse.de>
5434
5435 * cfgloop.h (struct loop): Update comment.
5436 * cse.c (cse_main): Remove obsolete comment.
5437
5438 * expr.h (gen_cond_trap): Move prototype under functions provided
5439 by optabs.c.
5440 (canonicalize_condition, get_condition): Move to...
5441 * rtl.h (canonicalize_condition, get_condition): ...here.
5442 (branch_target_load_optimize): Add comment that this function is
5443 in bt-load.c.
5444 * loop.c (canonicalize_condition, get_condition): Move to...
5445 * rtlanal.c (canonicalize_condition, get_condition): ...here.
5446 * sched-deps.c (get_condition): Rename to sched_get_condition.
5447 (add_dependence): Update this caller.
5448
5449 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
5450
5451 PR tree-opt/16808
5452 * tree-ssa.c (replace_immediate_uses): If we call fold_stmt, make sure
5453 that the vops get marked for renaming.
5454
5455 2004-11-02 Andreas Krebbel <krebbel1@de.ibm.com>
5456
5457 * config/s390/s390.md ("movcc"): Set type attribute.
5458
5459 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
5460
5461 * tree-phinodes.c (add_phi_arg): Add an assertion that the
5462 edge already exists.
5463
5464 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
5465
5466 * tree-phinodes.c (remove_phi_arg_num): Do not zero the
5467 element that's being removed.
5468
5469 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
5470
5471 * tree-ssa-threadupdate.c (copy_phis_to_block): Install PHI
5472 arguments using PENDING_STMT.
5473 (thread_block): Call copy_phis_to_block after redirecting an
5474 edge.
5475
5476 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
5477
5478 * bitmap.h (bitmap_and, bitmap_and_into, bitmap_and_compl,
5479 bitmap_and_compl_into, bitmap_ior, bitmap_iot_into,
5480 bitmap_ior_compl, bitmap_xor, bitmap_xor_into): Produce void.
5481 (bitmap_ior_and_compl_into): Produce bool.
5482 (bitmap_union_of_diff): Rename to ...
5483 (bitmap_ior_and_compl): ... here. Produce bool.
5484 * bitmap.c (bitmap_ior_and_compl_into): Return bool. Use
5485 bitmap_operation directly.
5486 (bitmap_union_of_diff): Rename to ...
5487 (bitmap_ior_and_compl): ... here. Return bool, use
5488 bitmap_operation directly.
5489 * df.c (df_rd_transfer_function): Use bitmap_ior_and_compl.
5490 (df_ru_transfer_function, df_lr_transfer_function): Likewise.
5491 * global.c (modify_bb_reg_pav): Likewise.
5492
5493 * bitmap.h (bitmap_equal_p): Return bool.
5494 (bitmap_intersect_p, bitmap_intersect_compl_p): Declare.
5495 * bitmap.c (bitmap_equal_p): Return bool. Compare directly.
5496 (bitmap_intersect_p, bitmap_intersect_compl_p): New.
5497 * flow.c (calculate_global_regs_live): Use bitmap_intersect_p and
5498 bitmap_intersect_compl_p.
5499 * ifcvt (dead_or_predicable): Likewise.
5500
5501 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
5502
5503 PR rtl-optimization/17104
5504 * config/rs6000/rs6000.c (rs6000_emit_move): Don't wrap small
5505 loads in zero_extend.
5506
5507 2004-11-02 Danny Smith <dannysmith@users.sourceforge.net>
5508
5509 PR debug/18242
5510 * toplev.c (debug_type_names): Remove "dwarf-1".
5511
5512 2004-11-02 Ben Elliston <bje@au.ibm.com>
5513
5514 * timevar.h (timevar_get): Remove.
5515 * timevar.c (timevar_get): Remove unused function.
5516
5517 2004-11-02 Joseph S. Myers <joseph@codesourcery.com>
5518
5519 * doc/include/texinfo.tex: Update from Texinfo CVS.
5520
5521 2004-11-02 Ben Elliston <bje@au.ibm.com>
5522
5523 * cppdefault.h (cpp_SYSROOT): Remove.
5524 * cppdefault.c (cpp_SYSROOT): Likewise.
5525
5526 2004-11-01 Andrew MacLeod <amacleod@redhat.com>
5527
5528 PR tree-optimization/16447
5529 * tree-cfg.c (bsi_commit_one_edge_insert): Rename from
5530 bsi_commit_edge_inserts_1, and make funtion external. Return new block.
5531 (bsi_commit_edge_inserts): Use renamed bsi_commit_one_edge_insert.
5532 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Enable listing.
5533 * tree-flow.h (bsi_commit_one_edge_insert): Extern decl.
5534 * tree-outof-ssa.c (rewrite_trees): Don't commit edges here.
5535 (same_stmt_list_p): New. Return TRUE if edge is to be forwarded.
5536 (identical_copies_p): New. Return true is two copies are the same.
5537 (identical_stmt_lists_p): New. Return true if stmt lists are the same.
5538 (analyze_edges_for_bb): New. Determine how best to insert edge stmts
5539 for a basic block.
5540 (perform_edge_inserts): New. Determine what to do with all stmts that
5541 have been inserted on edges.
5542 (remove_ssa_form): Analyze and commit edges from here.
5543
5544 2004-11-01 Andrew Pinski <pinskia@physics.uc.edu>
5545
5546 PR bootstrap/18232
5547 * bitmap.h (bmp_iter_end_p): Take a const pointer instead of a struct.
5548 (EXECUTE_IF_SET_IN_BITMAP): Update call to bmp_iter_end_p.
5549 (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
5550 (EXECUTE_IF_AND_IN_BITMAP): Likewise.
5551
5552 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
5553
5554 PR c/18239
5555 * c-decl.c (get_parm_info): Allow FUNCTION_DECLs to appear amongst
5556 parameter declarations.
5557
5558 2004-11-01 Andreas Krebbel <krebbel1@de.ibm.com>
5559
5560 * config/s390/s390.c (regclass_map): Put reg 33 (cc) to CC_REGS group.
5561 (s390_secondary_input_reload_class)
5562 (s390_secondary_output_reload_class): Use GENERAL_REGS to reload a cc
5563 register.
5564 (s390_expand_cmpmem): Enable cmpmem implementation.
5565 * config/s390/s390.h (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
5566 Added three new classes: CC_REGS, ADDR_CC_REGS, GENERAL_CC_REGS.
5567 (REG_CLASS_FROM_LETTER): New constraint 'c' added.
5568 * config/s390/s390.md ("movcc"): New insn pattern.
5569 * doc/md.texi: Document 'c' constraint for s390.
5570
5571 2004-11-01 Nathan Sidwell <nathan@codesourcery.com>
5572
5573 PR c++/18064
5574 * doc/extend.texi (Deprecated Features): Deprecate G++ covariant
5575 extension.
5576
5577 2004-10-16 Daniel Berlin <dberlin@dberlin.org>
5578
5579 Fix PR tree-optimization/17672
5580 Fix PR tree-optimization/18168
5581
5582 * lambda-code.c (lambda_lattice_compute_base): Fix reversed
5583 assert test.
5584 (gcc_tree_to_linear_expression): Add extra to existing constant.
5585 (depth_of_nest): Factor out function used in various places.
5586 (gcc_loop_to_lambda_loop): Clean up code a little bit. No
5587 functional changes.
5588 (find_induction_var_from_exit_cond): Stop guessing, and just
5589 get the right answer :).
5590 (gcc_loopnest_to_lambda_loopnest): Remove useless pre-allocation.
5591 Print out message about result of attempt to create perfect nest.
5592 (lbv_to_gcc_expression): Add type argument, use it to do math
5593 and induction variable creation.
5594 (lle_to_gcc_expression): Ditto.
5595 (lambda_loopnest_to_gcc_loopnest): Create new iv with same type as
5596 oldiv. Pass type argument to lle_to_gcc_expression and
5597 lbv_to_gcc_expression.
5598 Reset number of iterations after transformation.
5599 (perfect_nestify): Remove useless pre-allocation, and cleanup
5600 a small amount.
5601
5602 * tree-data-ref.c (build_classic_dist_vector): Return false for
5603 dependences completely outside of the loop nest we asked about.
5604 (build_classic_dir_vector): Ditto.
5605 (compute_data_dependences_for_loop): Only add dependence relations
5606 inside the loop we asked about.
5607
5608 * tree-loop-linear.c (linear_transform_loops): Use DDR_SIZE_VECT.
5609 Compute immediate uses.
5610
5611 * tree-optimize.c: Move linear_transform_loops to before ivcanon.
5612
5613 2004-11-01 Kazu Hirata <kazu@cs.umass.edu>
5614
5615 * tree-cfg.c (thread_jumps): Fix a comment typo.
5616
5617 2004-11-01 Kazu Hirata <kazu@cs.umass.edu>
5618
5619 * tree-cfg.c (thread_jumps): Fix a comment typo.
5620
5621 2004-10-31 Nicolas Pitre <nico@cam.org>
5622
5623 * config/arm/ieee754-sf.S (floatdisf): Fix regression with
5624 values smaller than 2^32.
5625
5626 2004-10-31 Jeff Law <law@redhat.com>
5627
5628 * cfgloop.h (struct loop): Remove unused "nodes" field.
5629 * timevar.def (TV_TREE_LOOP_BOUNDS): New.
5630 * tree-data-ref.c (find_data_references_in_loop): Use get_loop_body
5631 instead of calling flow_bb_inside_loop_p for every basic block
5632 in the function.
5633 * tree-ssa-loop.c (pass_record_bounds): Use TV_TREE_LOOP_BOUNDS.
5634
5635 2004-10-31 Graham Stott <graham.stott@btinternet.com>
5636
5637 * config/pa/pa.md: (prefetch_64, prefetch_32): Fix typo. Use
5638 INT_5_BITS instead of VAL_5_BITS_P.
5639
5640 2004-10-31 Roger Sayle <roger@eyesopen.com>
5641
5642 PR middle-end/14521
5643 * tree-inline.c (inline_forbidden_p_1): Use %qF instead of '%F'
5644 for consistent quoting in diagnostic messages.
5645 (expand_call_inline): Likewise.
5646 * tree-optimize.c (tree_rest_of_compilation): Likewise.
5647 * tree-ssa.c (warn_uninitialized_var): Likewise.
5648 (warn_uninitialized_phi): Likewise.
5649
5650 2004-10-31 Richard Sandiford <rsandifo@redhat.com>
5651
5652 * config/mips/mips.c (mips_cannot_change_mode_class): Use a stricter
5653 mode check.
5654
5655 2004-10-31 Kazu Hirata <kazu@cs.umass.edu>
5656
5657 * c-common.c: Fix a comment typo.
5658
5659 2004-10-31 Jason Merrill <jason@redhat.com>
5660
5661 PR middle-end/17526
5662 * tree-gimple.c (is_gimple_mem_rhs): Also require a val for
5663 aggregate types that are not BLKmode.
5664
5665 2004-10-30 Ziemowit Laski <zlaski@apple.com>
5666
5667 * c-common.h (objc_lookup_ivar): Add second parameter to
5668 prototype.
5669 * c-typeck.c (build_external_ref): After looking up symbol,
5670 pass it to objc_lookup_ivar() to decide whether it or the
5671 ivar should be used, rather than deciding the issue locally.
5672 * stub-objc.c (objc_lookup_ivar): Add an OTHER parameter,
5673 which is simply returned in the non-ObjC case.
5674
5675 2004-10-30 Danny Smith <dannysmith@users.sourceforge.net>
5676
5677 * sdbout.c (sdbout_symbol): Do not output type .def statements
5678 for builtin types.
5679
5680 2004-10-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
5681
5682 * c-common.c (catenate_strings): New.
5683 (c_parse_error): Use it. Don't over-escape.
5684
5685 2004-10-30 Kaz Kojima <kkojima@gcc.gnu.org>
5686
5687 * config/sh/sh.c (calc_live_regs): Declare reg as unsigned and
5688 modify the for loop expressions for it. Remove unnecessary casts.
5689 (sh_expand_prologue): Declare reg as unsigned.
5690 (sh_gimplify_va_arg_expr): Initinalize lab_over.
5691 (sh_handle_sp_switch_attribute): Add const qualifier appropriately.
5692
5693 2004-10-30 Geoffrey Keating <geoffk@apple.com>
5694
5695 * doc/invoke.texi (Darwin Options): Improve description of
5696 how the subtype is chosen.
5697
5698 2004-10-30 Roger Sayle <roger@eyesopen.com>
5699
5700 PR middle-end/18096
5701 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Check that
5702 the stack adjustment, "size", is valid for Pmode. If the stack
5703 frame is too large, generate a trap insn and issue a warning.
5704
5705 2004-10-30 Kazu Hirata <kazu@cs.umass.edu>
5706
5707 * tree-ssa-dom.c: Fix comment typos.
5708
5709 2004-10-30 Kaz Kojima <kkojima@gcc.gnu.org>
5710
5711 * config/sh/sh.c (prepare_move_operands): Use operands[0]
5712 for the output rtl if no_new_pseudos is set. Remove redundant
5713 line.
5714
5715 2004-10-30 Joseph S. Myers <joseph@codesourcery.com>
5716
5717 PR c/16666
5718 * c-decl.c (start_function): Don't check for DECL_BUILT_IN when
5719 determining whether to copy parameter types from a previous
5720 prototype declaration.
5721
5722 2004-10-29 Roger Sayle <roger@eyesopen.com>
5723
5724 PR rtl-optimization/17581
5725 * cselib.c (cselib_process_insn): The last instruction of a libcall
5726 block, with the REG_RETVAL note, should be considered in the libcall.
5727 * gcse.c (do_local_cprop): Allow constants to be propagated outside
5728 of libcall blocks.
5729 (adjust_libcall_notes): Use simplify_replace_rtx instead of
5730 replace_rtx to avoid creating invalid RTL in REG_RETVAL notes.
5731
5732 2004-10-30 Kazu Hirata <kazu@cs.umass.edu>
5733
5734 * tree-phinodes.c (create_phi_node): Don't zero PHI_REWRITTEN.
5735
5736 2004-10-29 Jeff Law <law@redhat.com>
5737
5738 * tree-ssa-dom.c (struct edge_info): New structure holding
5739 edge equivalences and edge redirection information.
5740 (get_eq_expr_value, record_dominating_conditions): Kill.
5741 (propagate_to_outgoing_edges): Renamed from cprop_into_phis.
5742 Call record_edge_info.
5743 (allocate_edge_info, free_edge_info): New.
5744 (tree_ssa_dominator_optimize): Use propagate_to_outgoing_edges
5745 rather than cprop_into_phis. Free all edge infos before threading
5746 jumps.
5747 (thread_across_edge): Allocate new edge info structures as needed
5748 and store the redirection target into the edge info structure
5749 instead of the edge's AUX field.
5750 (dom_opt_initialize_block): Mark unused argument with ATTRIBUTE_UNUSED.
5751 (record_equivalence_from_incoming_edge): Lose unnecessary argument.
5752 Revamp code which finds and records equivalences associated with
5753 edges to use saved data in the edge_info structure.
5754 (record_equivalencs_from_phis): Similarly.
5755 (dom_opt_finalize_block): Revamp code which finds and records
5756 equivalences associated with edges to use saved data in the
5757 edge_info structure.
5758 (build_and_record_new_cond): New function.
5759 (record_conditions): Use build_and_record_new_cond to record
5760 dominating conditions.
5761 (record_edge_info): New function.
5762 (record_range): Tighten test for conditions which create
5763 useful range records.
5764
5765 2004-10-29 Geoffrey Keating <geoffk@apple.com>
5766
5767 * config/i386/darwin.h (ASM_SPEC): Simplify.
5768 (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
5769 * config/rs6000/darwin.h (DARWIN_SUBARCH_SPEC): New.
5770 (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
5771 * config/darwin.h (LINK_COMMAND_SPEC): Don't pass -arch here.
5772 (LINK_SPEC): Do pass -arch here. Handle -force_cpusubtype_ALL
5773 in all cases. Pass the right -arch or -arch_only based on -mcpu.
5774 (ASM_SPEC): Handle -force_cpusubtype_ALL.
5775 * doc/invoke.texi (Darwin Options): Improve documentation for
5776 Darwin linker (and libtool) switches.
5777
5778 * config/rs6000/darwin-fallback.c: Include <mach/thread_status.h>.
5779
5780 2004-10-29 Stan Shebs <shebs@apple.com>
5781
5782 * config/rs6000/darwin-tramp.asm: Make more 64-bit-friendly.
5783
5784 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
5785
5786 * tree-phinodes.c (allocate_phi_node): New.
5787 (make_phi_node, resize_phi_node): Use it.
5788
5789 2004-10-29 David Edelsohn <edelsohn@gnu.org>
5790
5791 * config/rs6000/sysv4.h (TARGET_POWER): Define as 0.
5792 * config/rs6000/darwin.h (TARGET_POWER): Define as 0.
5793
5794 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
5795
5796 * tree-phinodes.c (make_phi_node, resize_phi_node): Don't zero
5797 the whole PHI node.
5798 * tree.h (tree_phi_node): Tell the garbage collector to chase
5799 num_args arguments.
5800
5801 2004-10-29 Richard Earnshaw <rearnsha@arm.com>
5802
5803 * opts.c (decode_options): Lower the crossjump threshold for -Os.
5804
5805 2004-10-29 Diego Novillo <dnovillo@redhat.com>
5806
5807 * tree.h (struct tree_ssa_name): Remove field 'equiv'.
5808
5809 2004-10-28 Nathan Sidwell <nathan@codesourcery.com>
5810
5811 * bitmap.h (bitmap_empty_p): New.
5812 (bitmap_and, bitmap_and_into, bitmap_and_compl,
5813 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into,
5814 bitmap_ior_compl, bitmap_xor, bitmap_xor_into): New bitmap
5815 operation macros.
5816 (bitmap_ior_and_compl): Rename to ...
5817 (bitmap_ior_and_compl_into): ... here.
5818 * bitmap.c (bitmap_equal_p): Use bitmap_xor.
5819 (bitmap_ior_and_compl): Rename to ...
5820 (bitmap_ior_and_compl_into): ... here. Adjust. Return changed
5821 flag.
5822 (bitmap_union_of_diff): Use renamed bitmap functions.
5823 * basic-block.h (AND_REG_SET, AND_COMPL_REG_SET, IOR_REG_SET,
5824 XOR_REG_SET, IOR_AND_COMPL_REG_SET): Likewise.
5825 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
5826 * df.c (df_bb_rd_local_compute)
5827 * flow.c (calculate_global_regs_live,
5828 init_propagate_block_info): Likewise.
5829 * ifcvt.c (find_if_case_1, find_if_case_2,
5830 dead_or_predicable): Likewise.
5831 * ra-build.c (union_web_part_roots, livethrough_conflicts_bb,
5832 reset_conflicts, conflicts_between_webs): Likewise.
5833 * ra-rewrite.c (reloads_to_loads, rewrite_program2,
5834 detect_web_parts_to_rebuild): Likewise.
5835 * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
5836 * tree-int-ssa.c (insert_phi_nodes_for, rewrite_into_ssa): Likewise.
5837 * tree-sra.c (decide_instantiations): Likewise.
5838 * tree-ssa-alias.c (create_name_tags,
5839 merge_pointed_to_info): Likewise.
5840 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
5841 * tree-ssa-loop-im.c (move_computations): Likewise.
5842 * tree-ssa-operands.c (get_call_expr_operands): Likewise.
5843 * tree-ssa-pre.c (fini_pre): Likewise.
5844 * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
5845 * tree-ssanames.c (any_marked_for_rewrite_p): Likewise.
5846 * tree-vectorizer.c (vectorize_loops): Likewise.
5847
5848 2004-10-29 Nick Clifton <nickc@redhat.com>
5849
5850 config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): When
5851 adding the PIC register to the fixed_regs array, also add it
5852 to the call_used_regs array.
5853
5854 2004-10-29 Eric Botcazou <ebotcazou@libertysurf.fr>
5855
5856 * gthr-posix.h (__gthread_recursive_mutex_init_function): Guard
5857 with #ifdef PTHREAD_MUTEX_RECURSIVE/#endif pairs.
5858
5859 2004-10-28 Daniel Berlin <dberlin@dberlin.org>
5860
5861 * tree-into-ssa.c (rewrite_virtual_phi_arguments): New function.
5862 (rewrite_blocks): Modify argument, and use it to decide which
5863 function to call.
5864 (rewrite_def_def_chains): Call rewrite_blocks with true here.
5865 (rewrite_into_ssa): and call it with false here.
5866
5867 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
5868
5869 * tree-phinodes.c (add_phi_arg): Turn an "if" that always
5870 triggers into gcc_assert.
5871
5872 2004-10-28 Diego Novillo <dnovillo@redhat.com>
5873
5874 PR tree-optimization/16728
5875 * tree-flow.h (get_ptr_info): Declare.
5876 * tree-ssa-alias.c (get_ptr_info): Make extern.
5877 * tree-ssa-copy.c (merge_alias_info): Merge flow-sensitive
5878 alias information.
5879
5880 2004-10-28 Stan Shebs <shebs@apple.com>
5881
5882 * config/rs6000/darwin.h (SUBTARGET_EXTRA_SPECS): Handle -m64.
5883 * config/rs6000/rs6000.c (rs6000_darwin_file_start): Add ppc64
5884 case.
5885
5886 2004-10-28 Frank Ch. Eigler <fche@redhat.com>
5887
5888 * tree-mudflap.c (mudflap_init): Mark cache-lookup decls to
5889 prevent their later unnecessary registration.
5890 (mf_build_check_statement_for): Remove "addr" argument, and
5891 related "__mf_value" generated code. Update callers.
5892 (mf_decl_eligible_p): New function, factored from mx_register_decls.
5893 (mx_register_decls): Call it.
5894 (mf_xform_derefs_1): Rewrite COMPONENT_REF and ARRAY_REF cases
5895 to restore support for complex nested expressions.
5896 (mudflap_enqueue_decl): Simplify. Move registration call emission
5897 out ...
5898 (mudflap_finish_file): ... to here.
5899 (mudflap_enqueue_constant): Remove dump code.
5900
5901 2004-10-28 Zack Weinberg <zack@codesourcery.com>
5902
5903 PR 18199
5904 * dbxout.c (dbxout_begin_complex_stabs_noforcetext): New function.
5905 (DBX_FINISH_STABS): Add (unused by default) SYM parameter.
5906 (dbxout_finish_complex_stabs): Update to match.
5907 (dbxout_symbol_location): Call emit_pending_bincls_if_required
5908 and FORCE_TEXT before DBX_STATIC_BLOCK_START. Use
5909 dbxout_begin_complex_stabs_noforcetext.
5910 * xcoffout.h (DBX_FINISH_STABS): Restore special case for
5911 N_GSYM, using new SYM parameter. Correct logic for special
5912 cases for N_FUN.
5913
5914 * varasm.c (function_section): If DECL is NULL_TREE, don't try
5915 to do anything else. Do not call get_insns if cfun or
5916 cfun->emit are NULL.
5917
5918 2004-10-28 Adam Nemet <anemet@lnxw.com>
5919
5920 PR middle-end/18160
5921 * c-typeck.c (c_mark_addressable): Issue error if address of a
5922 register variable is taken. Use "%qD" to print DECL_NAME.
5923
5924 2004-10-28 Diego Novillo <dnovillo@redhat.com>
5925
5926 * opts.c (decode_options): Don't run PRE at -Os.
5927
5928 2004-10-28 Richard Henderson <rth@redhat.com>
5929
5930 * config/alpha/alpha.md (movqicc_internal): Allow exactly one
5931 zero in the conditional.
5932 (movhicc_internal, movsicc_internal, movdicc_internal): Likewise.
5933
5934 2004-10-28 Richard Henderson <rth@redhat.com>
5935
5936 * cse.c (memory_extend_rtx): Remove.
5937 (cse_main): Don't set it.
5938 (cse_insn): Use a local buffer instead.
5939
5940 2004-10-28 Andreas Krebbel <krebbel1@de.ibm.com>
5941
5942 * profile.c (branch_prob): Call to init_edge_profiler added.
5943 * rtl-profile.c (rtl_init_edge_profiler): New function.
5944 (rtl_gen_edge_profiler): Replaced call to insert_insn_on_edge with
5945 call to safe_insert_insn_on_edge.
5946 (rtl_profile_hooks): rtl_init_edge_profiler added.
5947 * tree-profile.c (tree_init_edge_profiler): New function.
5948 (tree_profile_hooks): tree_init_edge_profiler added.
5949 * value-prof.h (profile_hooks) init_edge_profiler prototype added.
5950
5951 2004-10-28 Nick Clifton <nickc@redhat.com>
5952
5953 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Use
5954 emit_jump_insn() to generate the return instruction.
5955
5956 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
5957
5958 * tree-phinodes.c: Remove trailing whitespace.
5959
5960 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
5961
5962 * tree-ssa-loop-ivopts.c: Fix a comment typo.
5963 * doc/invoke.texi: Fix a typo.
5964
5965 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
5966
5967 * Makefile.in (OBJS-common): Remove duplicates.
5968
5969 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
5970
5971 * lambda-code.c (nestify_update_pending_stmts): Remove.
5972 (perfect_nestify): Use flush_pending_stmts instead of
5973 nestify_update_pending_stmts.
5974 * tree-cfg.c (tree_make_forwarder_block): Use
5975 flush_pending_stmts.
5976 * tree-flow.h: Add a prototype for flush_pending_stmts.
5977 * tree-ssa-loop-manip.c (tree_duplicate_loop_to_header_edge):
5978 Use flush_pending_stmts.
5979 (lv_update_pending_stmts): Remove.
5980 (tree_ssa_loop_version): Use flush_pending_stmts instead of
5981 lv_update_pending_stmts.
5982 * tree-ssa.c (flush_pending_stmts): New.
5983
5984 2004-10-28 Ulrich Weigand <uweigand@de.ibm.com>
5985
5986 PR target/15286
5987 * final.c (alter_subreg): Compute correct offset to use with
5988 paradoxical SUBREGs of memory operands.
5989 * recog.c (general_operand): Allow paradoxical SUBREGs of
5990 memory operands after reload.
5991 * simplify-rtx.c (simplify_gen_subreg): Fail if simplify_subreg
5992 has failed when passed a hard register.
5993
5994 2004-10-28 Aldy Hernandez <aldyh@redhat.com>
5995
5996 * function.c (assign_parm_setup_block): Handle parallels correctly.
5997
5998 2004-10-28 Kaz Kojima <kkojima@gcc.gnu.org>
5999
6000 * final.c (shorten_branches): Initialize flags structure.
6001
6002 2004-10-28 Nathan Sidwell <nathan@codesourcery.com>
6003
6004 * tree.c (int_cst_node, int_cst_hash_table): New variables.
6005 (init_ttree): Initialize them.
6006 (int_cst_hash_hash, int_cst_hash_eq): New hashing functions.
6007 (build_int_cst_wide): Use hash table for oversized integers.
6008
6009 2004-10-28 Nick Clifton <nickc@redhat.com>
6010
6011 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Define
6012 begin_label.
6013
6014 2004-10-27 Richard Henderson <rth@redhat.com>
6015
6016 PR middle-end/18163
6017 * expr.c (emit_group_load): Don't go force temporary for memory
6018 or concat source.
6019 (emit_group_store): Similarly.
6020
6021 2004-10-27 Andrew Pinski <pinskia@physics.uc.edu>
6022
6023 PR other/18186
6024 * common.opt (--param): Fix spelling of parameter.
6025
6026 2004-10-27 Andrew Pinski <pinskia@physics.uc.edu>
6027
6028 PR tree-opt/17529
6029 * tree-cfg.c (remove_useless_stmts_1) <case SWITCH_EXPR>:
6030 Don't fold statement.
6031 <case ASM_EXPR>: Fold the statement.
6032
6033 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
6034
6035 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
6036 <COND_EXPR>: Use EDGE_COUNT instead of GOTO_DESTINATION.
6037
6038 2004-10-28 Joseph S. Myers <jsm@polyomino.org.uk>
6039
6040 * doc/contrib.texi, doc/cpp.texi, doc/cppopts.texi,
6041 doc/extend.texi, doc/gcov.texi, doc/install.texi, doc/invoke.texi,
6042 doc/libgcc.texi, doc/md.texi, doc/passes.texi,
6043 doc/sourcebuild.texi, doc/tm.texi: Improve Texinfo formatting.
6044
6045 2004-10-28 Joseph S. Myers <jsm@polyomino.org.uk>
6046
6047 * doc/c-tree.texi, doc/cpp.texi, doc/implement-c.texi,
6048 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/tm.texi: Put
6049 punctuation outside quotes.
6050
6051 2004-10-27 David Mosberger <davidm@hpl.hp.com>
6052 James E Wilson <wilson@specifixinc.com>
6053
6054 PR target/13158
6055 * config/ia64/ia64.c (ia64_expand_epilogue): Set RTX_FRAME_RELATED_P on
6056 sibcall alloc instruction.
6057 (process_set): Handle sibcall alloc instruction.
6058
6059 2004-10-27 Geoffrey Keating <geoffk@apple.com>
6060
6061 * config/rs6000/rs6000.c (rs6000_attribute_table): Add
6062 SUBTARGET_ATTRIBUTE_TABLE.
6063 * config/darwin.h (ASM_WEAKEN_DECL): Handle weak_import.
6064 (SUBTARGET_ATTRIBUTE_TABLE): Define.
6065 * config/darwin.c (darwin_handle_weak_import_attribute): New.
6066 (HAVE_DEAD_STRIP): Delete.
6067 (no_dead_strip): Don't test HAVE_DEAD_STRIP.
6068 * config/darwin-protos.h (darwin_handle_weak_import_attribute):
6069 Prototype.
6070
6071 * doc/tm.texi (USE_SELECT_SECTION_FOR_FUNCTIONS): Document.
6072
6073 * config/darwin.h (GTHREAD_USE_WEAK): Define.
6074
6075 2004-10-28 Ben Elliston <bje@au.ibm.com>
6076
6077 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): New.
6078 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Likewise.
6079 * params.h (SRA_MAX_STRUCTURE_SIZE): New.
6080 (SRA_FIELD_STRUCTURE_RATIO): Likewise.
6081 * tree-sra.c: Include "params.h".
6082 (decide_block_copy): Use new parameters.
6083 * doc/invoke.texi (Optimize Options): Document new SRA pass
6084 parameters sra-max-structure-size and sra-field-structure-ratio.
6085
6086 2004-10-27 Nicolas Pitre <nico@cam.org>
6087
6088 * config/arm/ieee754-df.S (floatdidf): Fix regression with big values.
6089
6090 2004-10-27 Zdenek Dvorak <dvorakz@suse.cz>
6091
6092 PR tree-optimization/18048
6093 * fold-const.c (try_move_mult_to_index): New function.
6094 (fold): Use try_move_mult_to_index.
6095 * tree-ssa-loop-ivopts.c (try_add_cand_for): Prefer common candidates.
6096 * tree-ssa-loop-niter.c (number_of_iterations_cond): Produce
6097 an all-ones unsigned constant without extra bits.
6098 * tree.c (build_low_bits_mask): New function.
6099 * tree.h (build_low_bits_mask): Declare.
6100
6101 2004-10-27 David Edelsohn <edelsohn@gnu.org>
6102
6103 PR target/17956
6104 * config/rs6000/rs6000.md (maxsf3): Add !flag_trapping_math to
6105 final condition.
6106 (minsf3): Same.
6107 (maxdf3): Same.
6108 (mindf3): Same.
6109
6110 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
6111
6112 * tree-cfg.c (thread_jumps): Speed up by reordering the two
6113 conditions for entering basic blocks into worklist.
6114
6115 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
6116
6117 * tree-cfg.c (thread_jumps): Speed up by pretending to have
6118 ENTRY_BLOCK_PTR in worklist.
6119
6120 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
6121
6122 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
6123 <GOTO_EXPR>: Don't let an explicit GOTO_EXPR slip through.
6124
6125 2004-10-27 Daniel Berlin <dberlin@dberlin.org>
6126
6127 Fix PR tree-optimization/17133
6128
6129 * tree-cfg.c (rewrite_to_new_ssa_names_bb): Also rewrite must
6130 def kill operand.
6131
6132 * tree-flow-inline.h: V_MUST_DEF_OP became V_MUST_DEF_RESULT.
6133 (get_v_must_def_result_ptr): Modify for new structure of
6134 v_must_defs array.
6135 (get_v_must_def_kill_ptr): New.
6136 (op_iter_next_use): Add support for the kill that occurs in V_MUST_DEFs.
6137 (op_iter_next_tree): Ditto. Also V_MAY_DEF_OP became V_MAY_DEF_RESULT.
6138 (op_iter_next_def): V_MAY_DEF_OP became V_MAY_DEF_RESULT.
6139 (op_iter_init): Initialize new mustu members.
6140 (op_iter_next_mustdef): New function.
6141 (op_iter_init_mustdef): Ditto.
6142
6143 * tree-flow.h (rewrite_def_def_chains): New function.
6144
6145 * tree-into-ssa.c (mark_def_sites): Handle mustdefkill operands.
6146 (ssa_mark_def_sites): Ditto.
6147 (rewrite_stmt): Ditto.
6148 (ssa_rewrite_stmt): Ditto.
6149 (rewrite_blocks): Factor out from rewrite_into_ssa.
6150 (mark_def_block_sites): Ditto.
6151 (rewrite_def_def_chains): New function, just rewrites def-def
6152 chains without phi node insertion.
6153
6154 * tree-pass.h (TODO_fix_def_def_chains): New todo flag.
6155
6156 * tree-optimize.c (execute_todo): Handle TODO_fix_def_def_chains.
6157
6158 * tree-pretty-print.c (dump_vops): Print out MUST_DEF's so that
6159 they include the rhs now.
6160
6161 * tree-ssa-ccp.c (visit_assignment): V_MUST_DEF_OP became
6162 V_MUST_DEF_RESULT.
6163
6164 * tree-ssa-dce.c (mark_operand_necessary): Add phionly argument.
6165 Update callers.
6166 (mark_really_necessary_kill_operand_phis): New function.
6167 (perform_tree_ssa_dce): Call it.
6168 (pass_dce): Add TODO_fix_def_def_chains.
6169 (pass_cd_dce): Ditto.
6170
6171 * tree-ssa-loop-im.c (determine_max_movement): Look at kills as
6172 well.
6173 (rewrite_mem_refs): Ditto.
6174
6175 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Look at kills
6176 as well.
6177
6178 * tree-ssa-operands.c (allocate_v_may_def_optype):
6179 v_may_def_operand_type_t became v_def_use_operand_type_t.
6180 (allocate_v_must_def_optype) Ditto.
6181 (finalize_ssa_v_must_defs): Update for new operand type, as well
6182 as setting the use portion as well.
6183 (copy_virtual_operands): Copy the kill operand as well.
6184 (create_ssa_artficial_load_stmt): V_MUST_DEF_OP became
6185 V_MUST_DEF_RESULT.
6186
6187 * tree-ssa-operands.h (v_may_def_operand_type): Renamed to
6188 v_def_use_operand_type.
6189 (v_must_def_optype_d): Use v_def_use_operand_type.
6190 (V_MUST_DEF_OP_*): Renamed to V_MUST_DEF_RESULT_*
6191 (V_MUST_DEF_KILL_*): New macros.
6192 (struct ssa_operand_iterator_d): Add num_v_mustu and v_mustu_i
6193 members.
6194 Rename existing must_i and num_v_must members to mustd_i and
6195 num_v_mustd.
6196 (SSA_OP_VMUSTDEFKILL): New flag.
6197 (SSA_OP_VIRTUAL_KILLS): New flag.
6198 (SSA_OP_ALL_OPERANDS): Add in SSA_OP_ALL_KILLS.
6199 (SSA_OP_ALL_KILLS): New flag.
6200 (FOR_EACH_SSA_MUSTDEF_OPERAND): New macro.
6201
6202 * tree-ssa.c (verify_ssa): Verify virtual kills as well.
6203
6204 * tree-vectorizer.c (vect_create_data_ref_ptr): V_MUST_DEF_OP
6205 became V_MUST_DEF_RESULT.
6206 (rename_variables_in_bb): Rename kill pointer as well.
6207
6208 * tree-dfa.c (compute_immediate_uses_for_stmt): Add kills into the
6209 immediate uses.
6210
6211 2004-10-27 Richard Sandiford <rsandifo@redhat.com>
6212
6213 * dbxout.c (dbxout_source_line): Move declaration of begin_label to
6214 the block that needs it.
6215
6216 2004-10-27 Zack Weinberg <zack@codesourcery.com>
6217
6218 * dbxout.c (dbxout_finish_complex_stabs): Mark 'line' variable
6219 ATTRIBUTE_UNUSED.
6220
6221 2004-10-27 Zack Weinberg <zack@codesourcery.com>
6222
6223 * c-lex.c (cb_def_pragma): Clean up code for making location
6224 palatable to diagnostic.c.
6225
6226 2004-10-27 Steven Bosscher <stevenb@suse.de>
6227
6228 PR tree-optimization/17757
6229 * tree-phinodes.c (remove_phi_arg_num): Don't remove PHIs
6230 without any PHI arguments left. Make sure the argument that
6231 we're supposed to remove exists at all.
6232
6233 2004-10-27 Paul Brook <paul@codesourcery.com>
6234
6235 * configure.ac: Don't test for [build] __cxa_atexit when building a
6236 cross compiler.
6237 * configure: Regenerate.
6238
6239 2004-10-27 Paul Brook <paul@codeosurcery.com>
6240
6241 * configure.ac: Use build_exeext not host_exeext when lookin for
6242 target tools.
6243 * configure: Regenerate.
6244
6245 2004-10-27 Andreas Krebbel <krebbel1@de.ibm.com>
6246
6247 * config/s390/s390.md ("*subdf3_cc"): Replaced plus by minus.
6248
6249 2004-10-27 Andreas Krebbel <krebbel1@de.ibm.com>
6250 patch originally created by Kelley Cook <kcook@gcc.gnu.org>
6251
6252 PR middle-end/14684
6253 * opts.c (OPT_fprofile_generate): Default to -funroll-loops
6254 to match -fprofile-use.
6255
6256 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
6257
6258 * config/rs6000/rs6000.c: Fix a comment typo.
6259
6260 2004-10-27 Zack Weinberg <zack@codesourcery.com>
6261
6262 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Increment line
6263 counter.
6264
6265 2004-10-27 Andreas Schwab <schwab@suse.de>
6266
6267 * varasm.c (default_stabs_asm_out_destructor): Mark symbol as
6268 unused.
6269 (default_stabs_asm_out_constructor): Likewise.
6270
6271 2004-10-26 Geoffrey Keating <geoffk@apple.com>
6272
6273 * builtins.c (fold_builtin_unordered_cmp): Always bring both
6274 operands to the same type.
6275
6276 2004-10-26 James E Wilson <wilson@specifixinc.com>
6277
6278 PR target/18010
6279 * emit-rtl.c (emit_copy_of_insn_after): Copy RTX_FRAME_RELATED_P.
6280
6281 2004-10-26 Zack Weinberg <zack@codesourcery.com>
6282
6283 * dbxout.c: Include obstack.h.
6284 (ASM_STABS_OP): Take XCOFF_DEBUGGING_INFO into account in
6285 default definition.
6286 (ASM_STABD_OP, NO_DBX_MAIN_SOURCE_DIRECTORY, DBX_CONTIN_CHAR):
6287 Default-define here.
6288 (DBX_CONTIN_LENGTH): Move definition with others.
6289 (DBX_FINISH_STABS): New target macro.
6290 (current_sym_code, current_sym_value, current_sym_addr)
6291 (current_sym_nchars, CHARS, dbxout_continue)
6292 (print_int_cst_octal, print_octal, print_wide_int)
6293 (dbxout_prepare_symbol, dbxout_finish_symbol): Delete.
6294 (stabstr_ob, stabstr_last_contin_point): New variables.
6295 (NUMBER_FMT_LOOP): New improper macro.
6296 (dbxout_int, dbxout_stab_value_zero, dbxout_stab_value_label)
6297 (dbxout_stab_value_label_diff, dbxout_stab_value_internal_label)
6298 (dbxout_stab_value_internal_label_diff, dbxout_stabd)
6299 (dbxout_begin_stabn, dbxout_begin_stabn_sline)
6300 (dbxout_begin_simple_stabs, dbxout_begin_simple_stabs_desc)
6301 (dbxout_begin_complex_stabs, dbxout_finish_complex_stabs)
6302 (stabstr_C, stabstr_S, stabstr_I, stabstr_D, stabstr_U, stabstr_O)
6303 (stabstr_continue, DECL_ACCESSIBILITY_CHAR)
6304 New functions and/or proper function-like macros.
6305 (CONTIN): Use stabstr_continue, unconditionally.
6306 (get_lang_number): Define unconditionally, with ATTRIBUTE_UNUSED.
6307 (dbxout_init): Initialize stabstr_ob. Check
6308 NO_DBX_MAIN_SOURCE_DIRECTORY. Only write out the Ltext label
6309 if it was used. Use the new interfaces.
6310 (dbxout_source_file): Remove file argument; always write to
6311 asm_out_file. Use the new interfaces.
6312 (dbxout_type_method_1): Remove second argument which is always
6313 DECL_ASSEMBLER_NAME of the first argument. Use the new interfaces.
6314 (dbxout_type_methods): Remove write-only variables. Use the
6315 new interfaces.
6316 (dbxout_parms): Refactor to remove code duplicated in each of
6317 several successive if-else-if blocks. Use the new interfaces.
6318 (dbxout_function_end, emit_bincl_stab, dbxout_end_source_file)
6319 (dbxout_source_line, dbxout_finish, dbxout_type_index)
6320 (dbxout_type_fields, dbxout_range_type, dbxout_type, dbxout_type_name)
6321 (dbxout_class_name_qualifiers, dbxout_symbol, dbxout_symbol_location)
6322 (dbxout_symbol_name, dbxout_reg_parms, dbxout_args)
6323 (dbx_output_lbrac, dbx_output_rbrac, dbxout_block):
6324 Use the new interfaces.
6325 * Makefile.in (dbxout.o): Update dependencies.
6326
6327 * defaults.h: Don't define ASM_STABD_OP.
6328 * output.h: Prototype new dbxout_* interfaces.
6329 * system.h: Poison DBX_OUTPUT_GCC_MARKER and DBX_FINISH_SYMBOL.
6330 * varasm.c: Don't define ASM_STABS_OP.
6331 (default_stabs_asm_out_constructor, default_stabs_asm_out_destructor):
6332 Use the new dbxout.c interfaces. Call sorry if neither
6333 DBX_DEBUGGING_INFO nor XCOFF_DEBUGGING_INFO is defined.
6334
6335 * xcoffout.h: Don't define ASM_STABS_OP.
6336 (DBX_FINISH_SYMBOL): Rewrite and rename DBX_FINISH_STABS.
6337 (DBX_OUTPUT_MAIN_SOURCE_DIRECTORY, DBX_OUTPUT_GCC_MARKER): Delete.
6338 (NO_DBX_MAIN_SOURCE_DIRECTORY, NO_DBX_GCC_MARKER): Define.
6339 (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Change bare block to
6340 do { ... } while (0) idiom.
6341
6342 * config/alpha/alpha.c (num_source_filenames): Export.
6343 * config/alpha/alpha.h (num_source_filenames): Declare.
6344 (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
6345 (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
6346 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
6347 Always use .debugsym. Update commentary.
6348 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
6349 (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
6350 * config/rs6000/linux64.h (DBX_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC):
6351 Use new interfaces.
6352 * config/rs6000/rs6000.c: If TARGET_MACHO, include gstab.h.
6353 (macho_branch_islands): Use new interfaces.
6354
6355 * doc/tm.texi: Update.
6356
6357 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
6358
6359 * expr.c (emit_group_store): Do not treat floats as BLKmode.
6360 (emit_group_load): Same.
6361
6362 2004-10-26 Joseph S. Myers <jsm@polyomino.org.uk>
6363
6364 * c-parse.in (datadef): Use pedwarn rather than error and warning
6365 for diagnostic in case of no declaration specifiers.
6366
6367 2004-10-26 Richard Sandiford <rsandifo@redhat.com>
6368
6369 PR bootstrap/15747
6370 * doc/install.texi (mips-sgi-irix5): Document that /bin/sh has been
6371 reported to hang during bootstrap and that CONFIG_SHELL=/bin/ksh
6372 can be used to work around this.
6373
6374 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
6375
6376 * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Adjust for e500
6377 doubles.
6378
6379 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
6380
6381 * stmt.c (expand_case): Update a comment.
6382
6383 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
6384
6385 * stmt.c (expand_case): Put an assertion that index_expr is
6386 never INTEGER_CST. Don't special case for constant
6387 index_expr.
6388
6389 2004-10-26 Andrew Pinski <pinskia@physics.uc.edu>
6390
6391 PR 18162
6392 * c-parse.in (designator): Finish with a semi-colon.
6393
6394 2004-10-26 Fariborz Jahanian <fjahanian@apple.com>
6395
6396 * config/rs6000/rs6000.md (andsi3_internal8): Set CR when splitting
6397 into rotlsi3.
6398
6399 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
6400
6401 * stmt.c (expand_case): Remove code to handle SWITCH_EXPR with
6402 a default case only.
6403
6404 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
6405
6406 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs): Adjust for
6407 e500 doubles.
6408 (spe_build_register_parallel): New.
6409 (rs6000_spe_function_arg): Handle e500 doubles.
6410 (function_arg): Same.
6411 (spe_func_has_64bit_regs_p): Same.
6412 (rs6000_function_value): Same.
6413 (rs6000_libcall_value): Same.
6414 (legitimate_lo_sum_address_p): Return false for e500 doubles.
6415
6416 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT): Adjust for e500
6417 doubles.
6418 (DATA_ALIGNMENT): Same.
6419 (CANNOT_CHANGE_MODE_CLASS): Same.
6420
6421 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
6422
6423 * expr.c (emit_group_load): Handle floats.
6424 (emit_group_store): Same.
6425
6426 2004-10-26 Nathan Sidwell <nathan@codesourcery.com>
6427
6428 * c-lex.c (get_nonpadding_token): Remove.
6429 (c_lex_with_flags): Push timevar and eat padding here. Improve
6430 stray token diagnostic.
6431 (lex_string): Replace logic with switch statement, eat padding
6432 token here.
6433
6434 2004-10-26 Geoffrey Keating <geoffk@apple.com>
6435
6436 PR 18149
6437 * config/i386/darwin.h (ASM_SPEC): Undef it before defining.
6438
6439 2004-10-25 Geoffrey Keating <geoffk@apple.com>
6440
6441 * config/darwin.h (LINK_SPEC): Default weak_reference_mismatches
6442 to 'non-weak'.
6443 (MAKE_DECL_ONE_ONLY): Set DECL_WEAK.
6444 (ASM_MAKE_LABEL_LINKONCE): Delete.
6445 (ASM_WEAKEN_DECL): New.
6446 (ASM_DECLARE_OBJECT_NAME): Look at DECL_WEAK not DECL_ONE_ONLY.
6447 (ASM_DECLARE_FUNCTION_NAME): Likewise.
6448 (TEXT_SECTION_ASM_OP): Add a tab.
6449 (DATA_SECTION_ASM_OP): Likewise.
6450 (SECTION_FUNCTION): Add a tab. Use fputs. Don't call
6451 data_section on every section change.
6452 (EXTRA_SECTIONS): Add a bunch of new extra sections.
6453 (EXTRA_SECTION_FUNCTIONS): Likewise.
6454 (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
6455 (JCR_SECTION_NAME): Define.
6456 (TARGET_SECTION_TYPE_FLAGS): Don't define.
6457 * config/darwin.c (darwin_encode_section_info): A symbol is defined
6458 in this file if it is not weak.
6459 (textcoal_section): Delete.
6460 (datacoal_section): Delete.
6461 (darwin_make_decl_one_only): Delete.
6462 (machopic_select_section): Handle functions.
6463 (darwin_asm_named_section): Add a tab.
6464 (darwin_section_type_flags): Delete.
6465 (darwin_unique_section): Delete contents.
6466 (darwin_emit_unwind_label): Add a tab. Make decls weak if
6467 DECL_WEAK is set.
6468 * config/darwin-protos.h (darwin_section_type_flags): Delete.
6469 (darwin_make_decl_one_only): Delete.
6470 (text_coal_section): New.
6471 (text_unlikely_section): New.
6472 (text_unlikely_coal_section): New.
6473 (const_coal_section): New.
6474 (data_coal_section): New.
6475 (const_data_coal_section): New.
6476 * varasm.c (function_section): Honour
6477 USE_SELECT_SECTION_FOR_FUNCTIONS.
6478 * dwarf2out.c (output_call_frame_info): Look at DECL_WEAK when
6479 TARGET_USES_WEAK_UNWIND_INFO is in effect.
6480 * dbxout.c (dbxout_source_file): Don't change sections while
6481 a function is being output.
6482
6483 2004-10-25 David Ayers <d.ayers@inode.at>
6484
6485 * c-common.h: Remove RID_ID.
6486 * c-parse.in: Remove OBJECTNAME and references to RID_ID.
6487 (typespec_reserved_attr): Add rule for TYPENAME
6488 non_empty_protocolrefs.
6489 (yylexname): Remove special handling of RID_ID.
6490
6491 2004-10-25 James E Wilson <wilson@specifixinc.com>
6492
6493 * doc/invoke.texi (-fcrossjumping): Not enabled at -O.
6494
6495 2004-10-25 Joseph S. Myers <jsm@polyomino.org.uk>
6496
6497 PR c/16667
6498 * c-parse.in (array_designator): New.
6499 (designator): Use it.
6500 (initelt): Only permit array_designator without '=', not ".foo".
6501
6502 2004-10-25 Kenneth Zadeck <zadeck@naturalbridge.com>
6503 * gcc/Makefile.in: removed ggc for cgraphunit.
6504 * gcc/cgraph.c.dump_cgraph_node: removed static var analysis.
6505 * gcc/cgraph.h: removed static var analysis data structures and calls.
6506 * gcc/cgraphunit.c:
6507 cgraph_mark_local_and_external_functions:changed name to
6508 cgraph_mark_local_functions
6509 (print_order,convert_UIDs_in_bitmap,new_static_vars_info,
6510 cgraph_reset_static_var_maps,get_global_static_vars_info,
6511 get_global_statics_not_read,get_global_statics_not_written,searchc,
6512 cgraph_reduced_inorder,has_proper_scope_for_analysis,check_rhs_var,
6513 check_lhs_var,get_asm_expr_operands,process_call_for_static_vars,
6514 scan_for_static_refs,cgraph_characterize_statics_local,
6515 clear_static_vars_maps,cgraph_propagate_bits,cgraph_characterize_statics):
6516 removed.
6517 (cgraph_optimize,init_cgraph): removed calls to static vars analysis
6518 * gcc/tree-dfa.c find_referenced_vars: removed call to static vars
6519 analysis
6520 * gcc/tree-flow.h static_vars_info: removed
6521 * gcc/tree-ssa-operands.c (add_call_clobber_ops,add_call_read_ops):
6522 removed calls to static vars analysis.
6523 get_call_expr_operands: removed callee variable.
6524
6525 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
6526
6527 * cfg.c (unchecked_make_edge, redirect_edge_succ,
6528 redirect_edge_pred): Use VEC_safe_push instead of
6529 VEC_safe_insert.
6530 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
6531
6532 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
6533
6534 * cfgloopmanip.c (loopify): Take two more arguments true_edge
6535 and false_edge.
6536 * cfgloop.h: Adjust the corresponding prototype.
6537 * loop-unswitch.c (unswitch_loop): Adjust a call to loopify.
6538 * tree-ssa-loop-manip.c (tree_ssa_loop_version): Likewise.
6539
6540 2004-10-25 Jakub Jelinek <jakub@redhat.com>
6541
6542 * dwarf2out.c (rtl_for_decl_location): Avoid segfault if
6543 DECL_INCOMING_RTL is NULL.
6544
6545 2004-10-25 Steven Bosscher <stevenb@suse.de>
6546
6547 * timevar.def (TV_FIND_REFERENCED_VARS): New.
6548 * tree-dfa.c (pass_referenced_var): Use it.
6549
6550 2004-10-25 Roger Sayle <roger@eyesopen.com>
6551 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6552
6553 * cse.c: Change encoding of quantity numbers to avoid undefined
6554 pointer arithmetic on qty_table.
6555 (REGNO_QTY_VALID_P): A quantity is now valid if it isn't negative.
6556 (get_cse_reg_info): Initialize reg_qty to a unique negative value.
6557 (new_basic_block): Assign "real" quantity numbers from zero.
6558 (delete_reg_equiv): Do nothing if quantity is invalid. Reset the
6559 REG_QTY to its unique negative value.
6560 (merge_equiv_classes): Calculate need_rehash if quantity is valid.
6561 (cse_main): Don't include max_reg when determining max_qty.
6562 (cse_basic_block): Avoid subtracting a large offset from qty_table,
6563 which causes undefined C99 behaviour. Only allocate needed memory.
6564
6565 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
6566
6567 * stmt.c (expand_case): Remove an obsolete comment.
6568
6569 2004-10-25 Andrew Pinski <pinskia@physics.uc.edu>
6570
6571 PR middle-end/17407
6572 * c-decl.c (grokdeclarator) <case cdk_array>: Remove the call
6573 layout_type as it is already done by build_array_type.
6574 * tree.c (build_array_type): Layout the type even
6575
6576 2004-10-25 Alexandre Oliva <aoliva@redhat.com>
6577
6578 * config/frv/linux.h (TARGET_C99_FUNCTIONS): Define to 0.
6579
6580 2004-10-25 Alexandre Oliva <aoliva@redhat.com>
6581
6582 * config/frv/frv.md (movdi, movdf): Handle wide-constant splits
6583 with wider-than-32-bit HOST_WIDE_INTs.
6584
6585 2004-10-25 David Billinghurst <David.Billinghurst@riotinto.com>
6586
6587 * config/mips/mips.c(mips_output_filename): Remove unused
6588 array ltext_label_name
6589
6590 2004-10-24 Geoffrey Keating <geoffk@geoffk.org>
6591
6592 * config/rs6000/darwin.h (BLOCK_REG_PADDING): Define.
6593
6594 2004-10-25 Ben Elliston <bje@au.ibm.com>
6595
6596 * cfgcleanup.c (outgoing_edges_match): Fix typo in dump output.
6597
6598 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
6599
6600 * predict.c (predict_loops): Call scev_finalize instead of
6601 scev_reset.
6602
6603 2004-10-24 Kazu Hirata <kazu@cs.umass.edu>
6604
6605 * config/dbxcoff.h, config/dbxelf.h, config/libgloss.h,
6606 config/openbsd.h, config/mips/r3900.h, config/pdp11/pdp11.md,
6607 config/sh/ushmedia.h, config/sparc/elf.h,
6608 config/sparc/sp64-elf.h: Update copyright.
6609
6610 2004-10-24 Kazu Hirata <kazu@cs.umass.edu>
6611
6612 * stmt.c (expand_case): Handle the default label outside of
6613 the for loop. Remove code to handle a missing default label.
6614
6615 2004-10-23 Kazu Hirata <kazu@cs.umass.edu>
6616
6617 * dbxout.c (dbxout_function_decl): Don't use
6618 DBX_OUTPUT_FUNCTION_END.
6619 * system.h: Poison DBX_OUTPUT_FUNCTION_END.
6620 * doc/tm.texi (DBX_OUTPUT_FUNCTION_END): Remove.
6621
6622 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
6623
6624 PR middle-end/17967
6625 * tree-cfg.c (remove_usless_stmts_cond): Don't Fold statement.
6626
6627 2004-10-23 Daniel Berlin <dberlin@dberlin.org>
6628
6629 * tree-ssa-dom.c (record_equality): Use loop depth to determine
6630 which way to record the equality as well.
6631 (loop_depth_of_name): New function.
6632
6633 2004-10-23 Eric Botcazou <ebotcazou@libertysurf.fr>
6634
6635 PR middle-end/17793
6636 * gimplify.c (gimplify_addr_expr) <VIEW_CONVERT_EXPR>: Look
6637 through the operand if it is a useless type conversion.
6638
6639 2004-10-23 Ben Elliston <bje@au.ibm.com>
6640
6641 * cfg.c (remove_edge): Use VEC_unordered_remove.
6642 (redirect_edge_succ): Likewise.
6643 (redirect_edge_pred): Likewise.
6644 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
6645
6646 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
6647
6648 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Don't access PTR
6649 beyond its end.
6650
6651 2004-10-22 Eric Christopher <echristo@redhat.com>
6652
6653 * config/rs6000/rs6000.c (setup_incoming_varargs): Align DFmode
6654 saves.
6655
6656 2004-10-22 Aldy Hernandez <aldyh@redhat.com>
6657
6658 * config/rs6000/spe.md (spe_extendsfdf2): New.
6659 (movdf_e500_double): New.
6660 (spe_truncdfsf2): New.
6661 (spe_absdf2): New.
6662 (spe_nabsdf2): New.
6663 (spe_negdf2): New.
6664 (sub_adddf3): New.
6665 (spe_subdf3): New.
6666 (spe_muldf3): New.
6667 (spe_floatsidf2): New.
6668 (spe_floatunssidf2): New.
6669 (fix_truncdfsi2): New.
6670 (spe_fixuns_truncdfsi2): New.
6671
6672 * config/rs6000/rs6000.md (truncdfsf2): Change to expander.
6673 (fpr_truncdfsf2): New.
6674 (negdf2): Change to expander.
6675 (fpr_negdf2): New.
6676 (fpr_nabsdf2): Name pattern.
6677 (adddf3): Change to expander.
6678 (fpr_adddf3): Nem.
6679 (subdf3): Change to expander.
6680 (fpr_subdf3): New.
6681 (muldf3): Change to expander.
6682 (fpr_muldf3): New.
6683 (divdf3): Change to expander.
6684 (fpr_divdf3): New.
6685 (movdf_softfloat32): Change !TARGET_FPRS to TARGET_E500_SINGLE.
6686 (cmpdf): Allow for TARGET_E500_DOUBLE.
6687
6688 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
6689
6690 * c-semantics.c (re_push_stmt_list): Remove.
6691 * c-common.h: Remove the corresponding prototype.
6692
6693 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
6694
6695 * stmt.c (asm_op_is_mem_input): Remove.
6696 * tree.h: Remove the corresponding prototype.
6697
6698 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
6699
6700 * tree-gimple.c (is_gimple_constructor_elt): Remove.
6701 * tree-gimple.h: Remove the corresponding prototype.
6702
6703 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
6704
6705 * varasm.c (get_pool_mode_for_function, get_pool_offset):
6706 Remove.
6707 * rtl.h: Remove the corresponding prototypes.
6708
6709 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
6710
6711 * tree-cfg.c (thread_jumps_from_bb): Speed up by extracting
6712 edge information when we commit ourselves to threading a
6713 particular jump.
6714
6715 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
6716
6717 * tree-cfg.c (thread_jumps): Speed up by putting basic blocks
6718 into worklist instead of their indexes.
6719
6720 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
6721
6722 * alias.c, basic-block.h, cgraphunit.c, combine.c, domwalk.h,
6723 final.c, gengtype.c, genpreds.c, ggc-page.c, insn-notes.def,
6724 lambda-code.c, loop-unroll.c, modulo-sched.c, pointer-set.c,
6725 pretty-print.c, ra-colorize.c, sbitmap.c, tree-complex.c,
6726 tree-data-ref.c, tree-dfa.c, tree-inline.c, tree-into-ssa.c,
6727 tree-scalar-evolution.c, tree-ssa-dom.c,
6728 tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
6729 tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-threadupdate.c,
6730 tree-vectorizer.c, vec.h: Fix comment formatting.
6731
6732 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
6733
6734 * dwarf.h, gthr-dce.h, gthr-single.h, gthr-solaris.h, gthr.h,
6735 libfuncs.h, libgcc2.h, stab.def, tsystem.h: Update copyright.
6736
6737 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
6738
6739 * config/ptx4.h, config/mcore/mcore-pe.h,
6740 config/rs6000/eabi.h, config/vax/elf.h: Update copyright.
6741
6742 2004-10-22 Peter Barada <peter@the-baradas.com>
6743
6744 * config/m68k/m68k.h (HARD_REGNO_RENAME_OK): New macro.
6745 * config/m68k/m68k.c (m68k_hard regno_rename_ok): Disallow
6746 renaming of non-live registers in interrupt functions.
6747 * config/m68k/m68k-protos.h (m68k_hard_regno_rename_ok): Add prototype.
6748
6749 2004-10-22 Zdenek Dvorak <dvorakz@suse.cz>
6750
6751 * tree-ssa-loop-niter.c (inverse): Count in HOST_WIDE_INT if possible.
6752 Use integer for loop counter.
6753 (num_ending_zeros): New function.
6754 (number_of_iterations_cond): Use num_ending_zeros.
6755
6756 2004-10-21 Aldy Hernandez <aldyh@redhat.com>
6757
6758 * config.gcc: Add support for --enable-e500_double.
6759
6760 * config/rs6000/e500-double.h: New file.
6761
6762 * config/rs6000/rs6000.h: Define TARGET_E500_SINGLE and
6763 TARGET_E500_DOUBLE.
6764
6765 * config/rs6000/eabi.h: Define TARGET_E500_SINGLE and
6766 TARGET_E500_DOUBLE.
6767
6768 * config/rs6000/linuxspe.h: Same.
6769
6770 * doc/invoke.texi (Option Summary): Document new options for
6771 mfloat-gprs.
6772 (RS/6000 and PowerPC Options): Same.
6773
6774 * config/rs6000/rs6000.c (rs6000_parse_float_gprs_option): New
6775 function.
6776 (rs6000_override_options): Use it. Use
6777 SUB3TARGET_OVERRIDE_OPTIONS.
6778 Add 8548 to processor_target_table.
6779 (rs6000_legitimate_address): Handle e500 doubles.
6780 (rs6000_legitimize_address): Same.
6781 (rs6000_legitimize_reload_address): Same.
6782 (rs6000_hard_regno_nregs): Same.
6783 (spe_func_has_64bit_regs_p): Same.
6784 (emit_frame_save): Same.
6785 (gen_frame_mem_offset): Same.
6786 (rs6000_dwarf_register_span): Same.
6787 (rs6000_generate_compare): Same.
6788 (easy_fp_constant): Same.
6789 (legitimate_offset_address_p): Same.
6790
6791 * config/rs6000/spe.md: (cmdfeq_gpr): New.
6792 (tstdfeq_gpr): New.
6793 (cmpdfgt_gpr): New.
6794 (tstdfgt_gpr): New.
6795 (tstdfgt_gpr): New.
6796 (cmpdflt_gpr): New.
6797 (tstdflt_gpr): New.
6798 Add new constants.
6799
6800 2004-10-21 Giovanni Bajo <giovannibajo@gcc.gnu.org>
6801
6802 * config/arc/lib1funcs.asm (___umulsidi3): Fix typo.
6803
6804 2004-10-21 Zack Weinberg <zack@codesourcery.com>
6805
6806 * dbxout.c: Remove unnecessary #undefs.
6807 (GDB_INV_REF_REGPARM_STABS_LETTER, DBX_MEMPARM_STABS_LETTER)
6808 (FILE_NAME_JOINER, STABS_GCC_MARKER): Remove; fold sole
6809 definition into use sites.
6810 (cwd): Make local to dbxout_init.
6811 (dbxout_init): Restructure cwd-using logic for clarity. Use
6812 IS_DIR_SEPARATOR.
6813 * xcoffout.h (DBX_OUTPUT_GCC_MARKER): Definition of
6814 STABS_GCC_MARKER folded in here.
6815 * system.h: Poison now-unused macros.
6816 * doc/tm.texi: Remove documentation of now-unused macros.
6817
6818 2004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
6819
6820 PR c/17538
6821 * c-opts.c (push_command_line_include): Use the current file
6822 name instead of the main one.
6823
6824 2004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
6825
6826 PR objc/17923
6827 * tree.c (staticp): A CONST_DECL has static storage if either
6828 TREE_STATIC or DECL_EXTERNAL is set.
6829 * c-decl.c (pushdecl_top_level): Accept CONST_DECLs which can
6830 have null names.
6831
6832 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
6833
6834 * expr.c (store_expr): Remove dont_store_target.
6835
6836 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
6837
6838 * tree-cfg.c (thread_jumps): Speed up by using a worklist.
6839
6840 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
6841
6842 * tree-cfg.c (thread_jumps): Move a part of it to ...
6843 (thread_jumps_from_bb): ... here.
6844
6845 2004-10-21 David Edelsohn <edelsohn@gnu.org>
6846
6847 * dbxout.c (DBX_FINISH_SYMBOL): Add asm_out_file argument.
6848 * xcoffout.h (DBX_FINISH_SYMBOL): Change asmfile to (ASMFILE).
6849
6850 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
6851
6852 * expr.c (store_expr): Clean up by renaming want_value to
6853 call_param_p.
6854
6855 2004-10-21 Kaz Kojima <kkojima@gcc.gnu.org>
6856
6857 * config/sh/linux-unwind.h (sh_fallback_frame_state): Don't
6858 fixup pc here.
6859
6860 2004-10-21 Aldy Hernandez <aldyh@redhat.com>
6861
6862 PR 18004.
6863 * expmed.c (store_bit_field): Pass original 'value' before
6864 recursing.
6865
6866 2004-10-21 Nicolas Pitre <nico@cam.org>
6867
6868 * config/arm/ieee754-sf.S: Large speed improvements. Fix NAN handling.
6869 * config/arm/ieee754-df.S: Ditto.
6870
6871 2004-10-20 Zack Weinberg <zack@codesourcery.com>
6872
6873 * dbxout.c (asmfile): Delete. All uses changed to asm_out_file.
6874 (DBX_BLOCKS_FUNCTION_RELATIVE, DBX_LINES_FUNCTION_RELATIVE):
6875 Default to 0.
6876 (dbxout_source_line): Use DBX_OUTPUT_SOURCE_LINE when defined.
6877 When it is not, but DBX_LINES_FUNCTION_RELATIVE is true, emit
6878 an internal label and an N_SLINE .stabn whose value is the
6879 difference between that label and the function entry label.
6880 (dbxout_finish): If DBX_OUTPUT_MAIN_SOURCE_FILE_END is not defined,
6881 but DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END is, emit a
6882 label and an N_SO stab with an empty string referring to it.
6883 (dbx_output_lbrac, dbx_output_rbrac): Use if statement instead
6884 of #ifdef directive to test DBX_BLOCKS_FUNCTION_RELATIVE.
6885 (dbxout_type_methods, dbxout_symbol): Remove #if 0 block.
6886 (dbxout_prepare_symbol): Remove #ifdef WINNING_GDB block, this
6887 macro is never defined.
6888 * sdbout.c (sdbout_source_line_counter): Delete.
6889 (PUT_SDB_SRC_FILE): Delete. Uses replaced with sole definition.
6890 (sdbout_source_line): Use SDB_OUTPUT_SOURCE_LINE, which takes
6891 only two arguments.
6892 * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Rename ASM_OUTPUT_LINE.
6893
6894 * config/dbxcoff.h, config/dbxelf.h: Remove unncessary #undefs.
6895 * config/c4x/c4x.h, config/pa/pa.h: Remove unnecessary macro
6896 definitions (identical to default).
6897 * config/darwin.h, config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
6898 * config/h8300/coff.h, config/pa/som.h, config/sh/elf.h:
6899 Define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END, not
6900 DBX_OUTPUT_MAIN_SOURCE_FILE_END.
6901 * config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
6902 * config/mcore/mcore-pe.h, config/pa/som.h, config/sh/elf.h:
6903 Define DBX_LINES_FUNCTION_RELATIVE, not ASM_OUTPUT_SOURCE_LINE.
6904 * config/alpha/alpha-protos.h: Don't prototype alpha_output_lineno.
6905 * config/alpha/alpha.c: Move declaration of num_source_filenames up.
6906 (alpha_start_function): Use SDB_OUTPUT_SOURCE_LINE.
6907 (sym_lineno): Delete.
6908 (alpha_output_filename): Do not emit N_SOL stabs here. Remove
6909 now-unused variable.
6910 (alpha_output_lineno): Delete.
6911 * config/mips/mips-protos.h: Don't prototype mips_output_lineno.
6912 * config/mips/mips.c (mips_output_filename): Don't use
6913 ASM_OUTPUT_FILENAME. Don't emit N_SOL stabs here.
6914 (mips_output_lineno): Delete.
6915 (mips_output_function_prologue: Use SDB_OUTPUT_SOURCE_LINE.
6916 * config/alpha/alpha.h: Define DBX_OUTPUT_SOURCE_LINE and
6917 SDB_OUTPUT_SOURCE_LINE, not ASM_OUTPUT_SOURCE_LINE.
6918 * config/mips/mips.h: Likewise. Don't define ASM_OUTPUT_FILENAME.
6919 * config/mips/sdb.h: Use SDB_OUTPUT_SOURCE_LINE.
6920 * config/avr/avr.h: Don't define ASM_OUTPUT_SOURCE_LINE.
6921 * config/mmix/mmix.h: Likewise.
6922 * config/mmix/mmix.c (mmix_asm_output_source_line): Delete.
6923 * config/mmix/mmix-protos.h: Don't prototype it.
6924 * config/alpha/unicosmk.h: Also #undef PREFERRED_DEBUGGING_TYPE;
6925 no need to #undef ASM_OUTPUT_SOURCE_LINE.
6926 * config/arm/aout.h: Remove RISCiX-specific definition of
6927 DBX_OUTPUT_MAIN_SOURCE_FILENAME.
6928 * config/m32r/m32r.h: Define DBX_OUTPUT_SOURCE_LINE, not
6929 ASM_OUTPUT_SOURCE_LINE.
6930 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Rename to
6931 DBX_OUTPUT_SOURCE_LINE. Don't use current_function_func_begin_label.
6932 * config/vax/elf.h: No need to define DBX_OUTPUT_FUNCTION_END.
6933
6934 * doc/tm.texi: Update.
6935
6936 2004-10-20 Richard Henderson <rth@redhat.com>
6937
6938 * tree-sra.c (instantiate_element): Copy DECL_IGNORED_P also.
6939
6940 2004-10-20 Kelley Cook <kcook@gcc.gnu.org>
6941
6942 * configure.ac: Revert my previous patch.
6943 * configure: Regenerate.
6944
6945 2004-10-20 Ben Elliston <bje@au.ibm.com>
6946
6947 * config/rs6000/rs6000.c
6948 (rs6000_va_start): Use build_va_arg_indirect_ref.
6949 (rs6000_gimplify_va_arg): Likewise.
6950
6951 2004-10-20 Bryce McKinlay <mckinlay@redhat.com>
6952
6953 PR java/15575
6954 * configure.ac: Declare AM_LANGINFO_CODESET.
6955 * aclocal.m4: Define AM_LANGINFO_CODESET.
6956 * configure, config.in: Rebuilt.
6957
6958 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
6959
6960 * expr.c (store_expr): Remove code that is run when
6961 want_value & 1 is nonzero.
6962
6963 2004-10-20 Mark Mitchell <mark@codesourcery.com>
6964
6965 * gthr-posix.h (__gthread_active_p): Use __extension__ around cast
6966 from function pointer to void *.
6967
6968 2004-10-20 Kaz Kojima <kkojima@gcc.gnu.org>
6969
6970 PR target/18032
6971 * config/sh/sh.c (sh_expand_epilogue): Emit a blockage insn before
6972 the frame pointer adjustment when exception handling is enabled.
6973
6974 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
6975
6976 * stor-layout.c: Fix a comment typo.
6977
6978 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
6979
6980 * expr.c (store_field): Remove two arguments value_mode and
6981 unsignedp.
6982 (expand_assignment, store_constructor_field,
6983 expand_expr_real_1): Adjust calls to store_field.
6984
6985 2004-10-18 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
6986
6987 * config/arc/lib1funcs.asm (___umulsidi3): Correct usage of flags.
6988
6989 PR target/17317
6990 * config/arc/arc.h (REGNO_OK_FOR_BASE_P,REGNO_OK_FOR_INDEX_P,
6991 REG_OK_FOR_BASE, REG_OK_FOR_INDEX): Consider blink(r31) as a valid
6992 base and index register for loads.
6993
6994 * config/arc/t-arc: Fix multilib handling.
6995
6996 2004-10-20 Hans-Peter Nilsson <hp@bitrange.com>
6997
6998 * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
6999 don't inspect BLOCK_FOR_INSN for barriers.
7000 * emit-rtl.c (emit_barrier_before): Revert last change.
7001 (emit_barrier_after, emit_barrier): Ditto.
7002
7003 * doc/extend.texi (Extended Asm): Warn and provide example
7004 solution for using a call-clobbered asm register.
7005 (Local Reg Vars): Similar. Cross-reference example.
7006
7007 2004-10-19 Andrew Pinski <pinskia@physics.uc.edu>
7008
7009 * tree-cfg.c (group_case_labels): Look at the second to last
7010 case statement for combing with the default case.
7011
7012 2004-10-19 Richard Hendeson <rth@redhat.com>
7013
7014 PR 17962
7015 * stor-layout.c (layout_type): Set TYPE_ALIGN for vectors.
7016
7017 2004-10-19 Richard Hendeson <rth@redhat.com>
7018
7019 * builtins.c (expand_builtin_memmove): If fold_builtin_memmove
7020 succeeds, only expand the result.
7021
7022 2004-10-19 Richard Hendeson <rth@redhat.com>
7023
7024 PR middle-end/17885
7025 * tree.c (recompute_tree_invarant_for_addr_expr): Always poll address
7026 of INDIRECT_REF.
7027
7028 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
7029
7030 * tree-cfg.c (thread_jumps): Use a do-while loop instead of a
7031 loop with goto.
7032
7033 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
7034
7035 * expr.c (expand_assignment): Remove the last argument.
7036 Change the return type to void.
7037 * expr.h: Update the prototype of expand_assignment.
7038 * function.c (assign_parm_setup_reg): Update a call to
7039 expand_assignment.
7040 * stmt.c (expand_asm_expr): Likewise.
7041
7042 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
7043
7044 * expr.c (expand_expr_real_1) <MODIFY_EXPR>: Remove
7045 unnecessary assignments to temp. Return const0_rtx.
7046
7047 2004-10-19 Kaz Kojima <kkojima@gcc.gnu.org>
7048
7049 * config/sh/sh.c (sh5_schedule_saves): Fix typo.
7050
7051 2004-10-18 Kelley Cook <kcook@gcc.gnu.org>
7052
7053 * configure.ac (powerpc-*-darwin*): Require assembler to support
7054 .machine directive.
7055 * configure: Regenerate.
7056
7057 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7058
7059 * reload1.c (ior_hard_reg_set): Remove.
7060 (finish_spills): Use IOR_HARD_REG_SET instead of
7061 ior_hard_reg_set.
7062
7063 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7064
7065 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Speed up by shifting
7066 the currently visited word to right.
7067
7068 2004-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
7069
7070 PR middle-end/18045
7071 * expmed.c (expand_smod_pow2): Handle modes whose size
7072 is greater than that of HOST_WIDE_INT.
7073
7074 2004-10-18 Ziemowit Laski <zlaski@apple.com>
7075
7076 * c-parse.in (reservedwords): Add OBJC_TYPE_QUAL as alternative.
7077
7078 2004-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
7079 Roger Sayle <roger@eyesopen.com>
7080
7081 PR middle-end/17813
7082 * dojump.c (discard_pending_stack_adjust): New function.
7083 (clear_pending_stack_adjust): Call it.
7084 * expr.h (discard_pending_stack_adjust): Declare it.
7085 * explow.c (emit_stack_save): Emit pending stack adjustments
7086 before saving the stack pointer.
7087 (emit_stack_restore): Discard pending stack adjustments before
7088 restoring the stack pointer.
7089
7090 2004-10-18 Richard Henderson <rth@redhat.com>
7091
7092 * c-common.c (handle_mode_attribute): Allow scalar->vector
7093 type changes yet.
7094
7095 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7096
7097 * expr.c (expand_expr_real_1) [MODIFY_EXPR]: Don't request a
7098 value to expand_assignment.
7099
7100 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7101
7102 * tree-cfg.c (cleanup_tree_cfg): Don't iterate on
7103 thread_jumps.
7104 (thread_jumps): Iterate until no new forwarder block arises.
7105
7106 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7107
7108 * tree-cfg.c (tree_forwarder_block_p): Don't set forwardable.
7109 (thread_jumps): Use forwardable as cache of
7110 tree_forwarder_block_p throughout the function.
7111
7112 2004-10-18 Andreas Krebbel <krebbel1@de.ibm.com>
7113
7114 * cfg.c (dump_flow_info): Remove redundant dump of reg life info.
7115
7116 2004-10-18 Andrew Pinski <pinskia@physics.uc.edu>
7117
7118 PR middle-end/15014
7119 PR middle-end/16973
7120 * tree-cfg.c (remove_bb): If we have a label expression in the
7121 basic block and the label we have taken the address, move the
7122 label expression to the basic block which is previous in the
7123 linked list.
7124 (tree_verify_flow_info): Fix printing out the label name of the
7125 problematic label expression.
7126
7127 2004-10-18 Pat Haugen <pthaugen@us.ibm.com>
7128
7129 PR rtl-optimization/18002
7130 * simplify-rtx.c (mode_signbit_p): Externalize function...
7131 * rtl.h (mode_signbit_p): ... to here.
7132 * combine.c (simplify_shift_const): Recognize PLUS signbit as
7133 canonical form of XOR signbit and move to outer op.
7134
7135 2004-10-18 Diego Novillo <dnovillo@redhat.com>
7136
7137 * tree-cfg.c (bsi_for_stmt): Rename from stmt_for_bsi.
7138 Update all callers.
7139 * tree-ssa.c (replace_immediate_uses): Call bsi_for_stmt.
7140 Don't call fold_stmt more than once, use bsi_replace.
7141
7142 2004-10-18 Diego Novillo <dnovillo@redhat.com>
7143
7144 PR tree-optimization/17656
7145 * tree-ssa.c (replace_immediate_uses): When replacing a
7146 constant, if the call to fold_stmt produced a different
7147 statement, get an appropriate statement pointer by scanning
7148 STMT's basic block.
7149
7150 2004-10-18 Richard Henderson <rth@redhat.com>
7151
7152 * pointer-set.c (hash1): Don't use libm functions in fallback case.
7153
7154 2004-10-18 H.J. Lu <hongjiu.lu@intel.com>
7155
7156 PR bootstrap/17684
7157 * Makefile.in (clean): Remove libgcc_s$(SHLIB_EXT).1.stage?.
7158 (stage1-start): Remove and copy libunwind.a and
7159 libunwind*$(SHLIB_EXT) instead of libunwind*.
7160 (stage2-start): Likewise.
7161 (stage3-start): Likewise.
7162 (stage4-start): Likewise.
7163 (stageprofile-start): Likewise.
7164 (stagefeedback-start): Likewise.
7165
7166 * config/alpha/t-osf4 (SHLIB_LINK): Use a temporary file for
7167 the shared library to be created and don't remove the existing
7168 shared library.
7169 * config/arm/t-netbsd (SHLIB_LINK): Likewise.
7170 * config/i386/t-nwld (SHLIB_LINK): Likewise.
7171 * config/mips/t-slibgcc-irix (SHLIB_LINK): Likewise.
7172 * config/pa/t-hpux-shlib (SHLIB_LINK): Likewise.
7173 * config/sh/t-linux (SHLIB_LINK): Likewise.
7174 * config/t-libunwind-elf (SHLIBUNWIND_LINK): Likewise.
7175 * config/t-slibgcc-darwin (SHLIB_LINK): Likewise.
7176 * config/t-slibgcc-elf-ver (SHLIB_LINK): Likewise.
7177 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
7178
7179 * mklibgcc.in (libgcc-stage-start): Also move "*${objext}s"
7180 files.
7181
7182 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7183
7184 * basic-block.h (reg_set_iterator): New.
7185 (EXECUTE_IF_SET_IN_REG_SET): Make it iterator style.
7186 (EXECUTE_IF_AND_COMPL_IN_REG_SET): Likewise.
7187 (EXECUTE_IF_AND_IN_REG_SET): Likewise.
7188 * caller-save.c (save_call_clobbered_regs): Adjust to the new
7189 style.
7190 * cfgcleanup.c (thread_jump): Likewise.
7191 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
7192 * conflict.c (conflict_graph_compute): Likewise.
7193 * flow.c (verify_local_live_at_start, update_life_info,
7194 initialize_uninitialized_subregs, propagate_one_insn,
7195 init_propagate_block_info, free_propagate_block_info,
7196 propagate_block, dump_regset): Likewise.
7197 * global.c (global_conflicts): Likewise.
7198 * graph.c (start_bb): Likewise.
7199 * local-alloc.c (update_equiv_regs): Likewise.
7200 * loop.c (load_mems): Likewise.
7201 * reload1.c (compute_use_by_pseudos, order_regs_for_reload,
7202 find_reg, finish_spills): Likewise.
7203 * resource.c (mark_target_live_regs): Likewise.
7204 * sched-deps.c (sched_analyze_insn): Likewise.
7205 * sched-rgn.c (sched-rgn.c): Likewise.
7206 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
7207
7208 2004-10-18 Jakub Jelinek <jakub@redhat.com>
7209
7210 * config/i386/i386.md (addqi_1_slp): Test for incdec_operand
7211 operand 1 instead of 2
7212
7213 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7214
7215 * loop-unroll.c: Fix comment typos.
7216
7217 2004-10-18 Revital Eres <eres@il.ibm.com>
7218
7219 * Makefile.in (loop-unroll.o): Add VARRAY_H dependency.
7220 * loop-unroll.c: Include varray.h.
7221 (struct var_to_expand, struct opt_info): Rename split_ivs_info to
7222 opt_info and expand it to support variable expansion.
7223 (analyze_insns_in_loop): Rename analyze_ivs_to_split and
7224 expand it to support variable expansion.
7225 (pt_info_start_duplication): Rename si_info_start_duplication.
7226 (apply_opt_in_copies): Rename split_ivs_in_copies and add support
7227 to the variable expansion optimization.
7228 (free_opt_info): Rename free_si_info.
7229 (analyze_insn_to_expand_var, referenced_in_one_insn_in_loop_p,
7230 expand_var_during_unrolling, insert_var_expansion_initialization,
7231 combine_var_copies_in_loop_exit, release_var_copies,
7232 get_expansion): New functions.
7233 (peel_loop_completely, unroll_loop_constant_iterations,
7234 unroll_loop_runtime_iterations, peel_loop_simple,
7235 unroll_loop_stupid): Change uses of struct si_info
7236 to struct opt_info
7237 and add uses of fvariable-expansion-in-unroller flag.
7238 * params.def: Add parameter to restrict the number of expansions.
7239 * params.h: (MAX_VARIABLE_EXPANSIONS): New define to restrict
7240 the number of expansions.
7241 * common.opt: (fvariable-expansion-in-unroller): New flag.
7242 * doc/invoke.texi: (fvariable-expansion-in-unroller): Document.
7243
7244 2004-10-18 Danny Smith <dannysmith@users.sourceforge.net>
7245
7246 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define
7247 __GXX_MERGED_TYPEINFO_NAMES to 0.
7248
7249 2004-10-17 Hans-Peter Nilsson <hp@bitrange.com>
7250
7251 * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
7252 handle barriers in a bb by checking that it points to a NULL bb.
7253 * emit-rtl.c (emit_barrier_before): Set BLOCK_FOR_INSN to NULL.
7254 (emit_barrier_after, emit_barrier): Ditto.
7255
7256 2004-10-18 Joseph S. Myers <jsm@polyomino.org.uk>
7257
7258 * doc/extend.texi (Attribute Syntax): Clarify details of
7259 attributes on parameters.
7260
7261 2004-10-17 Zdenek Dvorak <dvorakz@suse.cz>
7262
7263 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Move checking out of
7264 loop.
7265
7266 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
7267
7268 Revert:
7269 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
7270
7271 * c-typeck.c (default_function_array_conversion): Always create
7272 &a[0] for array types.
7273 (build_unary_op): Do not fold &a[x] into a + x.
7274
7275 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
7276
7277 PR middle-end/17925
7278 * cfgexpand.c (expand_gimple_cond_expr): Emit line notes for next basic
7279 block if there is a goto with a locus.
7280
7281 2004-10-17 Kazu Hirata <kazu@cs.umass.edu>
7282
7283 * config/elfos.h, config/gofast.h, config/interix.h,
7284 config/netbsd.h, config/svr3.h, config/vxworks.h,
7285 config/alpha/alpha-modes.def, config/alpha/alpha-protos.h,
7286 config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
7287 config/alpha/netbsd.h, config/arm/arm-modes.def,
7288 config/arm/unknown-elf.h, config/c4x/c4x-modes.def,
7289 config/cris/aout.h, config/frv/frv-modes.def,
7290 config/i386/beos-elf.h, config/i386/gas.h,
7291 config/i386/i386-coff.h, config/i386/i386-modes.def,
7292 config/i386/linux.h, config/i386/linux64.h,
7293 config/i386/mingw32.h, config/i386/netbsd-elf.h,
7294 config/i386/netbsd64.h, config/i386/sco5.h,
7295 config/i386/sol2.h, config/i386/uwin.h, config/i860/i860.md,
7296 config/ia64/ia64-modes.def, config/ia64/itanium1.md,
7297 config/ia64/itanium2.md, config/m68k/m68k-modes.def,
7298 config/mips/mips-modes.def, config/mips/sdb.h,
7299 config/mips/vr.h, config/mips/vxworks.h,
7300 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h,
7301 config/pa/pa32-linux.h, config/rs6000/40x.md,
7302 config/rs6000/7450.md, config/rs6000/8540.md,
7303 config/rs6000/linuxspe.h, config/rs6000/power4.md,
7304 config/rs6000/rs6000-modes.def, config/rs6000/rtems.h,
7305 config/rs6000/spe.h, config/s390/2064.md, config/s390/linux.h,
7306 config/s390/s390-modes.def, config/sh/elf.h,
7307 config/sh/sh-modes.def, config/sh/sh64.h,
7308 config/sparc/ultra1_2.md, config/sparc/ultra3.md,
7309 config/stormy16/stormy16.md, config/v850/v850-protos.h,
7310 config/vax/vax.md: Update copyright.
7311
7312 2004-10-17 Kazu Hirata <kazu@cs.umass.edu>
7313
7314 * expr.c (expand_expr_real_1): Remove an obsolete comment.
7315
7316 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
7317
7318 * c-typeck.c (default_function_array_conversion): Always create
7319 &a[0] for array types.
7320 (build_unary_op): Do not fold &a[x] into a + x.
7321
7322 2004-10-17 Jakub Jelinek <jakub@redhat.com>
7323
7324 * pointer-set.c (hash1): Use integer part of 2^64 / phi
7325 instead 2^32 / phi if long is 64-bit.
7326
7327 2004-10-17 Joseph S. Myers <jsm@polyomino.org.uk>
7328
7329 * c-common.h (enum rid): Remove RID_PTRBASE, RID_PTREXTENT and
7330 RID_PTRVALUE.
7331 * c-parse.in (PTR_VALUE, PTR_BASE, PTR_EXTENT): Remove %token
7332 declarations.
7333 (reswords): Remove __ptrbase, __ptrbase__, __ptrextent,
7334 __ptrextent__, __ptrvalue and __ptrvalue__.
7335 (rid_to_yy): Remove RID_PTRBASE, RID_PTREXTENT and RID_PTRVALUE
7336 entries.
7337
7338 2004-10-16 Dale Johannesen <dalej@apple.com>
7339
7340 * c-common.c (c_common_get_alias_set): Use GGC for type_hash_table.
7341
7342 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
7343
7344 PR tree-optimization/17766
7345 * basic-block.h (enum dom_state): DOM_CONS_OK removed.
7346 (dom_info_available_p): Declare.
7347 * cfghooks.c (split_block, make_forwarder_block): Use
7348 dom_info_available_p.
7349 * dominance.c (compute_dom_fast_query, calculate_dominance_info,
7350 free_dominance_info, verify_dominators): Ditto.
7351 (dom_info_available_p): New function.
7352 * tree-cfg.c (cleanup_control_expr_graph): Free dominance information.
7353 (thread_jumps): Use dom_info_available_p.
7354 * tree-complex.c (expand_complex_div_wide): Ditto.
7355 * tree-mudflap.c (mf_build_check_statement_for): Ditto.
7356
7357 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
7358
7359 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field important_candidates.
7360 (find_best_candidate): Take also important candidates into account.
7361 (find_optimal_iv_set): Initialize important_candidates bitmap.
7362
7363 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
7364
7365 PR tree-optimization/17560
7366 * predict.c (tree_estimate_probability): Mark irreducible
7367 loops.
7368
7369 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
7370
7371 PR rtl-optimization/17723
7372 * cfgcleanup.c (merge_memattrs): Handle case when
7373 MEM_SIZE == NULL_RTX.
7374
7375 2004-10-15 Andrew Pinski <pinskia@physics.uc.edu>
7376
7377 * toplev.c (dump_file_name): Change type to be const.
7378
7379 2004-10-15 Joseph S. Myers <jsm@polyomino.org.uk>
7380
7381 * c-typeck.c (build_compound_expr, build_c_cast): Don't try to use
7382 non_lvalue to stop something being a null pointer constant.
7383
7384 2004-10-15 Aldy Hernandez <aldyh@redhat.com>
7385
7386 * config/rs6000/rs6000.h (FUNCTION_ARG_REGNO_P): FPRs are only
7387 available for TARGET_FPRS.
7388 (FUNCTION_VALUE_REGNO_P): Same.
7389
7390 2004-10-15 Geoffrey Keating <geoffk@apple.com>
7391
7392 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7393 -maltivec in same style as other ISA options.
7394
7395 2004-10-15 Jon Grimm <jgrimm2@us.ibm.com>
7396
7397 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __powerpc__
7398 definition.
7399
7400 2004-10-15 Kazu Hirata <kazu@cs.umass.edu>
7401
7402 * bitmap.c, bitmap.h, builtin-attrs.def, cfglayout.h,
7403 collect2.h, conflict.c, coretypes.h, coverage.h, errors.h,
7404 gcc.h, gcov-dump.c, gen-protos.c, gencheck.c, gencodes.c,
7405 genconstants.c, gengenrtl.c, genmodes.c, genpeep.c,
7406 gensupport.h, graph.h, gthr-gnat.c, gthr-gnat.h, gthr-posix.c,
7407 gthr-posix.h, hard-reg-set.h, hwint.h, integrate.h, libgcc2.c,
7408 lists.c, machmode.def, mips-tdump.c, opts.h, params.c,
7409 predict.def, predict.h, protoize.c, reload.h, resource.h,
7410 rtl-error.c, sbitmap.c, sbitmap.h, sreal.c, tlink.c,
7411 tree-dump.h, tree-inline.h, unwind-dw2-fde.c, unwind-dw2.c,
7412 unwind-sjlj.c, value-prof.h: Update copyright.
7413
7414 2004-10-15 Kazu Hirata <kazu@cs.umass.edu>
7415
7416 * pointer-set.c, tree-vectorizer.c: Fix comment typos.
7417
7418 2004-10-15 Diego Novillo <dnovillo@redhat.com>
7419
7420 * tree-optimize.c (execute_one_pass): Stop timer right after
7421 executing the pass.
7422
7423 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
7424
7425 Revert:
7426 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
7427 PR middle-end/17967
7428 Revert:
7429 * tree-cfg.c (remove_usless_stmts_cond): Fold statement.
7430 (remove_useless_stmts_1): Fold trees we know how to fold.
7431
7432 2004-10-14 David Edelsohn <edelsohn@gnu.org>
7433
7434 * configure.ac: Add .machine power4 directive when testing for
7435 mfcr field.
7436 * configure: Regenerate.
7437
7438 2004-10-14 Geoffrey Keating <geoffk@apple.com>
7439
7440 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Don't define.
7441
7442 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
7443
7444 * tree-vectorizer.c (vect_transform_loop): Declare vectorization_factor
7445 always.
7446
7447 2004-10-14 Daniel Jacobowitz <dan@codesourcery.com>
7448
7449 * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Return NO_REGS
7450 for 'f' if !TARGET_FPRS.
7451
7452 2004-10-14 Richard Henderson <rth@redhat.com>
7453
7454 PR debug/14492
7455 * dwarf2out.c (loc_descriptor_from_tree_1): Handle FIX_*_EXPR.
7456
7457 2004-10-14 Richard Henderson <rth@redhat.com>
7458
7459 PR c/17023
7460 * c-decl.c (store_parm_decls_oldstyle): Care for parameter type
7461 as error_mark_node.
7462 * c-parse.in (compstmt_primary_start): Check cur_stmt_list non-null
7463 instaed of current_function_decl non-null.
7464
7465 2004-10-14 Matt Austern <austern@apple.com>
7466
7467 * pointer-set.c: New file, special-purpose hash table.
7468 * pointer-set.h: New file.
7469 * tree.h (struct pointer_set_t): Declare as opaque type.
7470 (tree_walk): Last argument is pointer_set_t* now.
7471 * tree-inline.c (WALK_SUBTREE): Convert from htab to pset.
7472 (walk_type_fields):
7473 (walk_tree): Convert from htab_t to pointer_set_t for keeping
7474 track of which nodes have already been visited.
7475 (walk_tree_without_duplicates): Convert from htab_t to pointer_set_t.
7476 * cgraphunit.c (cgraph_create_edges): Likewise.
7477 (cgraph_characterize_statics_local): Likewise.
7478 * tree-dfa.c (collect_dfa_stats): Likewise.
7479 * langhooks-def.h (lhd_tree_inlining_walk_subtrees): Last arg is
7480 pointer_set_t* now.
7481 * langhooks.c (lhd_tree_inlining_walk_subtrees): Likewise.
7482 * langhooks.h (struct lang_hooks_for_tree_inlining): Last arg type
7483 of walk_subtrees is pointer_set_t* now.
7484 * Makefile.in (OBJS-common): add pointer-set.o
7485 (tree-inline.o): Depends on pointer-set.h
7486 (tree-dfa.o): Likewise
7487 (cgraphunit.o): Likewise
7488
7489 2004-10-14 Geoffrey Keating <geoffk@apple.com>
7490
7491 * config/rs6000/darwin.h (ASM_SPEC): Delete.
7492 (TARGET_ASM_FILE_START): Define.
7493 * config/darwin.h (ASM_SPEC): Define.
7494 * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Don't supply
7495 -mlong-double-128, it's the default. Update comment about reason
7496 for force_cpusubtype_ALL.
7497 * config/rs6000/darwin-vecsave.asm: Supply .machine.
7498 * config/rs6000/darwin-world.asm: Likewise.
7499 * config/rs6000/rs6000.c (rs6000_darwin_file_start): New.
7500 (symbolic_operand): Delete #if 0ed code.
7501
7502 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
7503
7504 * stmt.c (add_case_node): Make sure that we have integer
7505 constant before calling tree_int_cst_compare.
7506
7507 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
7508
7509 PR middle-end/17967
7510 Revert:
7511 * tree-cfg.c (remove_usless_stmts_cond): Fold statement.
7512 (remove_useless_stmts_1): Fold trees we know how to fold.
7513
7514 2004-10-14 Joseph S. Myers <joseph@codesourcery.com>
7515
7516 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS),
7517 config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow
7518 -m64.
7519
7520 2004-10-14 Ulrich Weigand <uweigand@de.ibm.com>
7521
7522 * reload.c (find_reloads): When reloading a PLUS with constant
7523 operand, make sure the constant is pushed to the constant pool
7524 if required.
7525 * config/s390/s390.c (s390_secondary_input_reload_class): Remove
7526 reload bug workaround.
7527 (s390_expand_plus_operand): Likewise.
7528
7529 2004-10-14 David Edelsohn <edelsohn@gnu.org>
7530
7531 * opts.c (common_handle_option): Do not enable
7532 flag_speculative_prefetching for -fprofile-generate/use.
7533
7534 2004-10-14 Devang Patel <dpatel@apple.com>
7535
7536 PR 17635
7537 * tree-if-conv.c (process_phi_nodes): Process latch block.
7538 (combine_blocks): Process latch block and update loop structure.
7539
7540 2004-10-14 Olga Golovanevsky <olga@il.ibm.com>
7541
7542 * tree-vectorizer.c (vect_generate_tmps_on_preheader):
7543 (vect_update_ivs_after_vectorizer):
7544 (vect_transform_for_unknown_loop_bound):
7545 (tree_duplicate_loop_to_edge):
7546 (allocate_new_names):
7547 (rename_use_op):
7548 (rename_def_op):
7549 (rename_variables_in_bb):
7550 (free_new_names):
7551 (rename_variables_in_loop):
7552 (copy_phi_nodes):
7553 (update_phis_for_duplicate_loop):
7554 (update_phi_nodes_for_guard):
7555 (make_loop_iterate_ntimes):
7556 (tree_duplicate_loop_to_edge_cfg):
7557 (add_loop_guard):
7558 (vect_analyze_loop_with_symbolic_num_of_iters):
7559 (verify_loop_for_duplication):
7560 (vect_gen_niters_for_prolog_loop):
7561 (vect_update_niters_after_peeling):
7562 (vect_update_inits_of_dr):
7563 (vect_update_inits_of_drs):
7564 (vect_build_loop_niters):
7565 (vect_do_peeling_for_alignment): New functions.
7566 (vect_transform_loop): Add unknown and known but indivisible loop
7567 bound support; add peeling for unalignment support.
7568 (vect_analyze_loop_form): Support symbolic number of iterations.
7569 (vect_transform_loop_bound): New input parameter.
7570 (vect_get_loop_niters): Change input parameter type.
7571 (new_loop_vec_info): LOOP_VINFO_NITERS is tree now.
7572 (vectorizable_store): Allow unaligned access.
7573 (vectorize_loops): Add rewrite_into_loop_closed_ssa.
7574 (vect_analyze_data_refs_alignment): Allowed one unaligned
7575 store.
7576 * tree-vectorizer.h (LOOP_VINFO_NITERS_KNOWN_P): Redefined
7577 to use tree.
7578 (LOOP_VINFO_INT_NITERS): New macro.
7579 (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): New define.
7580 (do_peeling_for_alignment):
7581 (unaligned_drs): New members of _loop_vec_info.
7582 (LOOP_DO_PEELING_FOR_ALIGNMENT): New macro.
7583
7584 2004-10-14 Ranjit Mathew <rmathew@hotmail.com>
7585
7586 * tree.h (TREE_STRING_POINTER): Wrap in "const char *".
7587 (struct tree_string): Remove "const" qualifier for "str".
7588
7589 2004-10-14 Ira Rosen <irar@il.ibm.com>
7590
7591 * tree-vectorizer.c (vect_analyze_data_refs): Call
7592 vect_get_base_and_bit_offset to get memory tag for array ref.
7593 (vect_create_addr_base_for_vector_ref): Remove redundant checks.
7594
7595 2004-10-14 Richard Earnshaw <rearnsha@arm.com>
7596
7597 * configure.ac: Use $LN_S for creating symlinks (not $LN).
7598 * configure: Regenerate.
7599
7600 2004-10-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7601
7602 * doc/install.texi (*-*-solaris2*): Update with info about kernel
7603 patches to solve spurious testsuite failures.
7604
7605 2004-10-14 Dorit Naishlos <dorit@il.bim.com>
7606
7607 * tree-vectorizer.c (get_vectype_for_scalar_type): Added debug prinouts.
7608 Added check that vectype is VECTOR_MODE_P, instead of check for BLKmode.
7609 (vect_analyze_operations): Make sure the vectorization factor > 1. Add
7610 gcc_assert under ENABLE_CHECKING.
7611 (vectorizable_operation): Remove check for VECTOR_MODE_P (moved to
7612 get_vectype_for_scalar_type).
7613
7614 (vect_get_vec_def_for_operand): Remove redundant variables.
7615 (vect_transform_loop): Likewise.
7616
7617 2004-10-14 Richard Sandiford <rsandifo@redhat.com>
7618
7619 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Make r11 fixed and
7620 global for -mcaller-super-interworking.
7621 (CALLER_INTERWORKING_SLOT_SIZE): New macro.
7622 * config/arm/arm.c (thumb_compute_save_reg_mask): Save r11 if
7623 CALLER_INTERWORKING_SLOT_SIZE is nonzero and the function does
7624 not need a frame pointer.
7625 (arm_get_frame_offsets): Add CALLER_INTERWORKING_SLOT_SIZE bytes to
7626 the soft frame pointer offset.
7627 (thumb_expand_prologue): Set up r11 for -mcaller-super-interworking.
7628 * config/arm/arm.md (*call_reg_thumb, *call_value_reg_thumb): Use
7629 _interwork_{r7,r11}_call_via_rN if some arguments are passed on
7630 the stack. Use frame_pointer_needed to choose between them.
7631 * config/arm/lib1funcs.asm (_arm_return_{r7,r11}): New functions.
7632 (interwork_with_frame): New macro.
7633 (interwork): Add _interwork_{r7,r11}_call_via_rN().
7634
7635 2004-10-14 Ben Elliston <bje@au.ibm.com>
7636
7637 PR other/17900
7638 * diagnostic.c (trim_filename): Fix logic bug in walking backwards
7639 up the filename looking for a previous directory separator.
7640
7641 2004-10-14 Joseph S. Myers <jsm@polyomino.org.uk>
7642
7643 * c-tree.h (enum c_typespec_kind, struct c_typespec,
7644 parser_xref_tag): New.
7645 (struct c_declspecs): Add tag_defined_p. Adjust definition of
7646 typedef_p.
7647 (declspecs_add_type): Adjust prototypes.
7648 * c-parse.in (%union): Add tstype.
7649 (typespec_nonattr, typespec_attr, typespec_reserved_nonattr,
7650 typespec_reserved_attr, typespec_nonreserved_nonattr,
7651 structsp_attr, structsp_nonattr): Change to tstype. Update
7652 actions.
7653 * c-decl.c (build_null_declspecs): Initialize tag_defined_p.
7654 (declspecs_add_type): Update to take struct c_typespec argument.
7655 Set tag_defined_p and typedef_p as appropriate.
7656 (xref_tag): Rename to parser_xref_tag and replace by wrapper.
7657 Update to return struct c_typespec.
7658 (shadow_tag_warned): Don't let empty declarations with qualifiers
7659 or storage class specifiers redeclare a tag if a previous
7660 declaration is visible.
7661
7662 2004-10-13 Richard Henderson <rth@redhat.com>
7663
7664 PR debug/15860
7665 * dwarf2out.c (rtl_for_decl_location): Apply big-endian correction
7666 for DECL_INCOMING_RTL.
7667
7668 2004-10-14 Hans-Peter Nilsson <hp@axis.com>
7669
7670 PR target/17984
7671 * config/cris/cris.md (asrandb, asrandw, lsrandb, lsrandw): Apply
7672 trunc_int_for_mode for constants used in shortened mode.
7673
7674 2004-10-13 Richard Henderson <rth@redhat.com>
7675
7676 PR c/17384
7677 * c-common.c (handle_mode_attribute): Disallow mode changes that
7678 alter the CODE of the top-level type.
7679
7680 * crtstuff.c (__FRAME_END__): Remove mode attribute. Find 32-bit
7681 integer from internal limits macros.
7682 * config/i386/mm3dnow.h (__v2sf): Fix base type.
7683
7684 2004-10-13 Richard Henderson <rth@redhat.com>
7685
7686 PR debug/13841
7687 * function.c (instantiate_decl): Recurse for CONCAT.
7688
7689 2004-10-13 David Edelsohn <edelsohn@gnu.org>
7690
7691 * config/rs6000/rs6000.md (andsi3): Add attribute "compare" for
7692 andi./andis.
7693 (anddi3): Same.
7694 (extzvdi_internal1): Add attribute "compare".
7695 (extzvdi_internal2): Same.
7696
7697 2004-10-12 Tom Tromey <tromey@redhat.com>
7698
7699 * doc/md.texi (Insn Canonicalizations): Removed extraneous quote.
7700
7701 2004-10-13 Dale Johannesen <dalej@apple.com>
7702
7703 * doc/extend.texi (Extended Asm): Rewrite asm volatile description.
7704
7705 2004-10-13 Frank Ch. Eigler <fche@redhat.com>
7706
7707 * toplev.c (compile_file): Call mudflap_finish_file from here ...
7708 * c-decl.c (c_write_global_declarations): ... instead of here ...
7709 * cp/decl.c (cp_finish_file): ... and here.
7710 * tree-mudflap.c (mudflap_enqueue_decl): Reword a warning message.
7711
7712 2004-10-13 Andrew Pinski <pinskia@physics.uc.edu>
7713
7714 * tree-ssa-dom.c (record_range): Free the element if we are not
7715 going to use it.
7716
7717 2004-10-13 Tom Tromey <tromey@redhat.com>
7718
7719 PR java/15578:
7720 * gcc.c (option_map): Added --extdirs and --encoding.
7721
7722 2004-10-13 Eric Botcazou <ebotcazou@libertysurf.fr>
7723
7724 PR target/14454
7725 * config/sparc/sparc.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Set to
7726 sparc_can_output_mi_thunk.
7727 (sparc_output_mi_thunk): Simplify handling of delta offset. Add
7728 handling of vcall offset.
7729 (sparc_can_output_mi_thunk): New predicate.
7730 * doc/tm.texi (TARGET_ASM_OUTPUT_MI_THUNK): Document VCALL_OFFSET.
7731 (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Delete.
7732 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New target hook.
7733
7734 * config/sparc/sparc.c (emit_and_preserve): Preserve stack alignment.
7735
7736 * config/sparc/sparc.md (movdi): Remove redundant test.
7737
7738 2004-10-13 Paolo Bonzini <bonzini@gnu.org>
7739
7740 * tree-dump.c (dump_options): Remove TDF_TREE, TDF_RTL,
7741 TDF_IPA from -fdump-tree-*-all.
7742
7743 2004-10-13 Paul Brook <paul@codesourcery.com>
7744
7745 * config/arm/arm-protos.h (arm_load_pic_register): Update prototype.
7746 * config/arm/arm.c (thumb_find_work_register): Update comments.
7747 (arm_load_pic_register): Add argument for scratch register.
7748 (arm_expand_prologue, thumb_expand_prologue): Pass extra argument.
7749 * config/arm/arm.md (builtin_setjmp_receiver): Ditto.
7750
7751 2004-10-13 Kazu Hirata <kazu@cs.umass.edu>
7752
7753 * tree-data-ref.c: Fix comment typos.
7754
7755 2004-10-13 Jakub Jelinek <jakub@redhat.com>
7756 Zdenek Dvorak <dvorakz@suse.cz>
7757
7758 PR tree-optimization/17724
7759 * tree-cfg.c (tree_purge_dead_eh_edges): Free dominance info.
7760
7761 2004-10-13 Dorit Naishlos <dorit@il.ibm.com>
7762
7763 * rs6000.c (altivec_builtin_mask_for_load): Made static GTY(()).
7764 (altivec_builtin_mask_for_store): Likewise.
7765 (altivec_init_builtins): Use lang_hooks.builtin_function to
7766 create the decls for builtin_altivec_mask_for_load/store.
7767
7768 2004-10-13 Nick Clifton <nickc@redhat.com>
7769
7770 * config/c4x/c4x.c: Remove inclusion of loop.h.
7771
7772 2004-10-12 Ben Elliston <bje@au.ibm.com>
7773
7774 * basic-block.h (edge_iterator): Keep the address of VEC(edge) *.
7775 (ei_container): New; renamed.
7776 (ei_start, ei_last): New macros.
7777 (ei_start_1, ei_last_1): Renamed from ei_start.
7778 (ei_last_1, ei_end_p): Use ei_container() where applicable.
7779 (ei_one_before_end_p, ei_next, ei_edge): Likewise.
7780 * gcse.c (remove_reachable_equiv_notes): Use ei_container().
7781
7782 2004-10-11 Sebastian Pop <pop@cri.ensmp.fr>
7783
7784 * Makefile.in (tree-ssa-loop-niter.o): Depends on tree-data-ref.h.
7785 * cfgloop.c (initialize_loops_parallel_p): New.
7786 (flow_loops_find): Initialize the parallel_p field to true for all
7787 the loops.
7788 * tree-ssa-loop-niter.c: Include "tree-data-ref.h".
7789 (estimate_numbers_of_iterations_loop): Infers the loop bounds from
7790 the size of the data accessed in the loop.
7791 (struct nb_iter_bound): Moved...
7792 * cfgloop.h (struct nb_iter_bound): ... here.
7793 (estimated_nb_iterations, parallel_p): New fields in struct loop.
7794 (record_estimate): Declare extern here.
7795 * tree-chrec.c: Fix comments.
7796 (nb_vars_in_chrec): New function.
7797 * tree-chrec.h (nb_vars_in_chrec): Declared here.
7798 * tree-data-ref.c: Don't include lambda.h, that is already included
7799 in tree-data-ref.h.
7800 (tree_fold_divides_p): Don't check for integer_onep.
7801 (tree_fold_bezout): Removed.
7802 (gcd): New static duplicated function.
7803 (int_divides_p, dump_subscript): New.
7804 (dump_data_dependence_relation): Use dump_subscript.
7805 (dump_dist_dir_vectors, dump_ddrs, compute_estimated_nb_iterations,
7806 estimate_niter_from_size_of_data): New.
7807 (analyze_array_indexes, analyze_array): Call
7808 estimate_niter_from_size_of_data during the detection of array
7809 references. Pass in a pointer to the statement that contains the
7810 array reference.
7811 (all_chrecs_equal_p): New.
7812 (compute_distance_vector): Renamed compute_subscript_distance.
7813 Deal with multivariate conflict functions.
7814 (initialize_data_dependence_relation): Initialize DDR_AFFINE_P,
7815 DDR_SIZE_VECT, DDR_DIST_VECT, and DDR_DIR_VECT.
7816 (non_affine_dependence_relation): New.
7817 (analyze_ziv_subscript, analyze_siv_subscript_cst_affine,
7818 analyze_siv_subscript, analyze_miv_subscript,
7819 analyze_overlapping_iterations, subscript_dependence_tester):
7820 Initialize and return last_conflicts function.
7821 (initialize_matrix_A, FLOOR, compute_overlap_steps_for_affine_univar,
7822 compute_overlap_steps_for_affine_1_2): New.
7823 (analyze_siv_subscript_affine_cst): Removed.
7824 (analyze_subscript_affine_affine): Disprove dependences based on the
7825 iteration domains. Solve the univariate dependence case as before,
7826 but use lambda_matrix_right_hermite instead of tree_fold_bezout.
7827 Implement the multivariate case of 2 versus 1 variables.
7828 (build_classic_dist_vector, build_classic_dir_vector): Implement some
7829 unhandled cases.
7830 (find_data_references_in_loop): Compute and initialize
7831 loop->estimated_nb_iterations and loop->parallel_p.
7832 (analyze_all_data_dependences): Modify the debug dump order.
7833 * tree-data-ref.h (SUB_LAST_CONFLICT_IN_A, SUB_LAST_CONFLICT_IN_B,
7834 subscript->last_conflict_in_a, subscript->last_conflict_in_b): Removed.
7835 (SUB_LAST_CONFLICT, subscript->last_conflict,
7836 data_dependence_relation->affine_p, data_dependence_relation->size_vect,
7837 DDR_AFFINE_P, DDR_SIZE_VECT): New.
7838 (find_data_references_in_loop, initialize_data_dependence_relation,
7839 dump_subscript, dump_ddrs, dump_dist_dir_vectors): Declared here.
7840
7841 2004-10-12 Kelley Cook <kcook@gcc.gnu.org>
7842
7843 * configure: Regenerate.
7844
7845 2004-10-12 Fariborz Jahanian <fjahanian@apple.com>
7846
7847 PR 17892
7848 * tree-ssa-dom.c (unsafe_associative_fp_binop): New function.
7849 (simplify_rhs_and_lookup_avail_expr): Disallow associativity
7850 and constant folding of floating point MULT_EXPR/PLUS_EXPR
7851 expressions.
7852
7853 2004-10-12 Ulrich Weigand <uweigand@de.ibm.com>
7854
7855 * config/s390/s390.c (s390_va_start): Use build_va_arg_indirect_ref.
7856 (s390_gimplify_va_arg): Likewise.
7857
7858 2004-10-12 Daniel Jacobowitz <dan@debian.org>
7859
7860 * defaults.h (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P)
7861 (MODE_BASE_REG_REG_CLASS, REGNO_MODE_OK_FOR_REG_BASE_P)
7862 (REG_MODE_OK_FOR_REG_BASE_P): Provide default definitions.
7863 * regclass.c (record_address_regs): Remove ifdef. Use
7864 REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
7865 * regrename.c (REG_MODE_OK_FOR_BASE_P): Remove unnecessary
7866 definition.
7867 (scan_rtx_address, replace_oldest_value_addr): Use
7868 REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
7869 * reload.c (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Remove
7870 unnecessary definitions.
7871 (find_reloads_address_1): Support REG_MODE_OK_FOR_REG_BASE_P
7872 and MODE_BASE_REG_REG_CLASS.
7873 * config/arm/arm.h (MODE_BASE_REG_CLASS): Don't check reload_completed.
7874 (MODE_BASE_REG_REG_CLASS): Define.
7875 (REGNO_MODE_OK_FOR_REG_BASE_P): Define.
7876 (REG_MODE_OK_FOR_REG_BASE_P): Define.
7877 * doc/tm.texi (Register Classes): Document MODE_BASE_REG_REG_CLASS,
7878 REG_MODE_OK_FOR_REG_BASE_P, and REGNO_MODE_OK_FOR_REG_BASE_P.
7879
7880 2004-10-12 Daniel Berlin <dberlin@dberlin.org>
7881
7882 * tree-ssa-alias.c (verify_name_tags): New function.
7883 (verify_flow_sensitive_alias_info): Remove code that used to check name tags.
7884 (verify_alias_info): Call verify_name_tags.
7885
7886 2004-10-12 Kazu Hirata <kazu@cs.umass.edu>
7887
7888 PR rtl-optimization/17931
7889 * config/i386/i386.c (ix86_rtx_costs): Handle COMPARE with
7890 ZERO_EXTRACT in it.
7891
7892 2004-10-12 Richard Earnshaw <rearnsha@arm.com>
7893
7894 * arm.c (arm_print_operand): Use output_operand_lossage where possible
7895 rather than aborting.
7896
7897 2004-10-12 Paul Brook <paul@coudesourcery.com>
7898
7899 * config.gcc: Add armv6{k,z,zk}
7900 * config/arm/arm-cores.def: Add arm1176 and mpcore.
7901 * config/arm/tune.md: Regenerate.
7902 * config/arm/arm.c (FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK):
7903 Define.
7904 (all_architectures): Add armv6k, armv6z, armv6zk.
7905 * config/arm/lib1funcs.asm: Recognise new arm arcitectures.
7906 * doc/invoke.texi: Document new arch and cpu values.
7907
7908 2004-10-12 Paul Brook <paul@coodesourcery.com>
7909
7910 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Change meabi=3 to
7911 meabi=4.
7912
7913 2004-10-12 Paul Brook <paul@codesourcery.com>
7914
7915 * config/arm/arm.md (addsi3_cbranch_scratch): Correct constraints.
7916 Handle negative constants.
7917
7918 2004-10-12 Joseph S. Myers <jsm@polyomino.org.uk>
7919
7920 PR c/17301
7921 * c-typeck.c (convert_arguments): Return error_mark_node if there
7922 are too few arguments.
7923 (build_function_call): Handle error_mark_node return from
7924 convert_arguments.
7925
7926 2004-10-06 Paolo Bonzini <bonzini@gnu.org>
7927
7928 * configure.ac (symbolic_link): Replace with $LN_S.
7929 (Assembler/Linker): Hard link from gas and binutils trees.
7930 * aclocal.m4 (gcc_AC_PROG_LN_S): Try "cp -p" before cp.
7931 * configure: Regenerate.
7932
7933 2004-10-12 Paul Brook <paul@codesourcery.com>
7934
7935 * configure.ac: Don't look for host assembler when building a canadian
7936 cross.
7937 * configure: Regenerate.
7938
7939 2004-10-11 Roger Sayle <roger@eyesopen.com>
7940
7941 PR other/17361
7942 * c-opts.c (permit_fortran_options): Delete/obsolete global variable.
7943 (c_common_init_options): Remove #ifdef CL_F77 code. Scan command
7944 line options for "-lang-asm" and if found allow any of the C-family
7945 front-end options.
7946 (c_common_handle_option): Remove last use of permit_fortran_options.
7947
7948 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
7949
7950 * config/s390/s390.c (print_operand): Support 'S' format flag.
7951 * config/s390/s390.md ("*tmqi_mem"): Use 'S' format flag.
7952 ("*tstsi", "*tstsi_cconly", "*tstsi_cconly2"): Likewise.
7953 ("*tsthiCCT", "*tsthiCCT_cconly", "*tsthi", "*tsthi_cconly"): Likewise.
7954 ("*tstqiCCT", "*tstqiCCT_cconly", "*tstqi", "*tstqi_cconly"): Likewise.
7955 ("*cmphi_ccu", "*cmpqi_ccu", "*clc"): Likewise
7956 ("movti", "*movdi_31", "*movqi", "*movdf_31", "*mvc"): Likewise.
7957 ("*movstricthi"): Likewise.
7958 ("*load_multiple_di", "*load_multiple_si"): Likewise.
7959 ("*store_multiple_di", "*store_multiple_si"): Likewise.
7960 ("*sethiqisi", "*sethihisi"): Likewise.
7961 ("*sethiqidi_64", "*sethiqidi_31"): Likewise.
7962 ("*andqi3_zarch", "*andqi3_esa", "*nc"): Likewise.
7963 ("*iorqi3_zarch", "*iorqi3_esa", "*oc"): Likewise.
7964 ("*xorqi3", "*xc", "*xc_zero"): Likewise.
7965 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): Likewise.
7966
7967 ("*tmhi_full"): Fix incorrect op_type attribute.
7968
7969 ("*adddi3_alc_cc", "*adddi3_alc"): Remove double backslash.
7970 ("*subdi3_slb_cc", "*subdi3_slb"): Likewise.
7971 ("*addsi3_alc_cc", "*addsi3_alc"): Likewise.
7972 ("*subsi3_slb_cc", "*subsi3_slb"): Likewise.
7973
7974 2004-10-11 Andrew Pinski <pinskia@physics.uc.edu
7975
7976 PR middle-end/16266
7977 * function.c (temp_slots_at_level): Fix typo which creates too
7978 many temp stack slots levels.
7979
7980 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
7981
7982 * config/s390/s390.c (s390_trampoline_template): Generate shorter
7983 trampoline code.
7984 (s390_trampoline_instantiate): Adapt.
7985 * config/s390/s390.h (TRAMPOLINE_SIZE): Adapt to new code.
7986
7987 2004-10-11 Roger Sayle <roger@eyesopen.com>
7988
7989 PR middle-end/17657
7990 * stmt.c (add_case_node): Add additional type argument. Declare
7991 as static to match prototype. Convert the upper and lower bounds
7992 to the specified index type. Optimize away case ranges/values
7993 that are outside the index type's bounds. Truncate case ranges
7994 that span the index type's bounds.
7995 (expand_case): Avoid unnessary computation and memory allocation
7996 when index type is error_mark_node. Pass index_type as required
7997 by change to add_case_node API. No need to convert case range
7998 bounds to index_type, this is now done by add_case_node.
7999
8000 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
8001
8002 * config/s390/s390-protos.h (s390_offset_p): Add prototype.
8003 * config/s390/s390.c (s390_offset_p): New function.
8004 * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccu",
8005 "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use splitter to
8006 transform Q->Q alternatives to *clc pattern.
8007 ("*clc"): Move.
8008 ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
8009 "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf"): Use splitter
8010 to transform Q->Q alternatives to *mvc pattern.
8011 ("*mvc"): Move. Add peephole to merge adjacent MVCs.
8012 ("*anddi3", "*andsi3_zarch", "*andsi3_esa", "*andhi3_zarch",
8013 "*andhi3_esa", "*andqi3_zarch", "*andqi3_esa"): Use splitter to
8014 transform Q->Q alternatives to *nc pattern.
8015 ("*nc"): New insn. New peephole to merge adjacent NCs.
8016 ("*iordi3", "*iorsi3_zarch", "*iorsi3_esa", "*iorhi3_zarch",
8017 "*iorhi3_esa", "*iorqi3_zarch", "*iorqi3_esa"): Use splitter to
8018 transform Q->Q alternatives to *oc pattern.
8019 ("*oc"): New insn. New peephole to merge adjacent OCs.
8020 ("*xordi3", "*xorsi3", "*xorhi3", "*xorqi3"): Use splitter to
8021 transform Q->Q alternatives to *xc pattern.
8022 ("*xc"): New insn. New peephole to merge adjacent XCs.
8023 ("*xc_zero"): Move. Add peephole to merge adjacent XCs.
8024
8025 2004-10-11 Andrew Pinski <pinskia@physics.uc.edu>
8026
8027 * gimplify.c (gimple_push_condition): Make sure that we don't
8028 have any saved condition cleanup if we were at the top level.
8029
8030 2004-10-11 Richard Sandiford <rsandifo@redhat.com>
8031
8032 * config/frv/frv.md (*adddi3_internal): Change name to...
8033 (adddi3): ...replacing the exisiting define_expand. Combine
8034 alternatives. Fix the range of the constant constraints ('J' instead
8035 of 'NOP'). Remove bogus operands[2] check. Use simplify_gen_subreg
8036 to extract the lower and upper halves of the DImode operands.
8037 Always use addi3_lower and adddi3_upper, not the subdi3 forms.
8038 (adddi3_lower): Fix the range of the constant constraints and
8039 remove the bogus operands[2] check.
8040 (adddi3_upper): Use gpr_or_int10_operand as the predicate for
8041 operand 2. Use addxi to handle constant operands.
8042 (subdi3_lower, subdi3_upper): Don't handle constant operands.
8043
8044 2004-10-11 Nathan Sidwell <nathan@codesourcery.com>
8045
8046 * gengtype-lex.l: Add commented } & ) characters to unconfuse
8047 editor's paren matching. Allow #define inside a struct.
8048
8049 2004-10-10 Andrew Pinski <pinskia@physics.uc.edu>
8050
8051 PR middle-end/17703
8052 part of PR c++/17657
8053 * fold-const.c (fold_build_cleanup_point_expr): New function.
8054 * tree.h (fold_build_cleanup_point_expr): Prototype.
8055
8056 2004-10-10 Eric Christopher <echristo@redhat.com>
8057
8058 * dwarf2out.c: Move attribute to subprogram declaration
8059 instead of subroutine type.
8060
8061 2004-10-10 Kazu Hirata <kazu@cs.umass.edu>
8062
8063 * basic-block.h: Remove the prototypes for can_hoist_insn_p,
8064 hoist_insn_after, and hoist_insn_to_edge.
8065 * rtl.h: Remove the prototypes for reg_referenced_between_p,
8066 no_jumps_between_p, and insn_dependent_p.
8067 * rtlanal.c (no_jumps_between_p, reg_referenced_between_p,
8068 insn_dependent_p, insn_dependent_p_1, hoist_test_store,
8069 can_hoist_insn_p, hoist_update_store, hoist_insn_after,
8070 hoist_insn_to_edge): Remove.
8071
8072 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
8073
8074 PR c/17881
8075 * c-decl.c (grokparms): Don't warn for parameters of incomplete
8076 type in declarations that are not definitions except for the case
8077 of parameters of void type.
8078
8079 2004-10-10 Kazu Hirata <kazu@cs.umass.edu>
8080
8081 * tree-cfg.c: Fix comment typos.
8082
8083 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
8084
8085 PR c/17301
8086 * builtins.c (expand_builtin_va_start): Check for too few
8087 arguments to va_start.
8088
8089 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
8090
8091 PR c/17189
8092 * c-decl.c (grokfield): Make diagnostic for bad cases of unnamed
8093 fields a pedwarn. Pedwarn here for unnamed structs/unions if
8094 pedantic.
8095 * c-parse.in (component_decl): Don't pedwarn here for unnamed
8096 fields.
8097
8098 2004-10-09 Zdenek Dvorak <dvorakz@suse.cz>
8099
8100 PR tree-optimization/17906
8101 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not attempt to
8102 copy non-gimple reg arguments.
8103
8104 2004-10-09 Roger Sayle <roger@eyesopen.com>
8105
8106 PR rtl-optimization/17853
8107 * simplify-rtx.c (simplify_relational_operation): Correct comment.
8108 Reorganize handling of comparison operations with floating point
8109 results (always return 0.0 even without FLOAT_STORE_FLAG_VALUE).
8110 Likewise, introduce support for comparison operations with vector
8111 result types, introducing a new VECTOR_STORE_FLAG_VALUE target macro.
8112
8113 * doc/rtl.texi: Document new VECTOR_STORE_FLAG_VALUE target macro.
8114 * doc/tm.texi: Likewise.
8115
8116 2004-10-09 Steven Bosscher <stevenb@suse.de>
8117
8118 * regs.h (struct reg_info_def): Remove the last_node_uid and
8119 changes_mode fields.
8120 (REGNO_LAST_NOTE_UID): Don't define.
8121 * regclass.c (reg_scan_mark_refs): Don't set REGNO_LAST_NOTE_UID.
8122 * regmove.c (copy_src_to_dest): Likewise.
8123
8124 2004-10-09 Roger Sayle <roger@eyesopen.com>
8125
8126 PR middle-end/17894
8127 * fold-const.c (fold_div_compare): When optimizing X/C1 op C2, the
8128 relational comparison operator op needs to be swapped/reversed when
8129 C1 is negative. i.e. X/-10 < 1 becomes X >= -9, not X < -9.
8130
8131 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
8132
8133 PR tree-opt/17902
8134 * tree-ssa-phiopt.c (conditional_replacement): Use bsi_after_labels
8135 instead of bsi_start.
8136 (value_replacement): Likewise.
8137 (abs_replacement): Likewise
8138
8139 2004-10-09 Steven Bosscher <stevenb@suse.de>
8140
8141 * cfgexpand.c (maybe_dump_rtl_for_tree_stmt): New function.
8142 (expand_gimple_cond_expr, expand_gimple_tailcall,
8143 expand_gimple_basic_block): Use it to dump RTL for each stmt.
8144 (tree_expand_cfg): Announce full RTL function dump.
8145 * tree-optimize.c (execute_one_pass): Use normal RTL printing,
8146 not the graph version.
8147 * tree-pretty-print.c (dump_generic_node): Allow empty statements
8148 in the arms of a COND_EXPR for lowered nodes.
8149
8150 2004-10-08 Joseph S. Myers <joseph@codesourcery.com>
8151
8152 * config/rs6000/spe.h (atosfix16, atosfix32, atosfix64, atoufix16,
8153 atoufix32, atoufix64, strtosfix16, strtosfix32, strtosfix64,
8154 strtoufix16, strtoufix32, strtoufix64): Declare.
8155
8156 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
8157
8158 * c-lex.c (interpret_float): Give a pedwarn rather than a warning
8159 for an out-of-range floating point constant.
8160 * builtins.c (fold_builtin_inf): Give a pedwarn rather than a
8161 warning if the target format does not support infinities.
8162
8163 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
8164
8165 * emit-rtl.c (last_label_num, base_label_num): Remove.
8166 (max_label_num): Always return label_num.
8167 (set_new_last_label_num, restore_emit_status): Remove.
8168 (init_emit): Don't initialize last_label_num.
8169 * function.c (pop_function_context_from): Don't call
8170 restore_emit_status.
8171 * function.h: Remove the prototype for restore_emit_status.
8172 * rtl.h: Remove the prototype for set_new_last_label_num.
8173
8174 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
8175
8176 * stmt.c (expand_decl_init): Remove.
8177 * tree.h: Remove the corresponding prototype.
8178
8179 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
8180
8181 * integrate.c (try_constants, subst_constants, mark_stores):
8182 Remove.
8183 * integrate.h: Remove the prototype for try_constants.
8184
8185 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
8186
8187 * c-typeck.c (enum impl_conv): Add ic_argpass_nonproto.
8188 (convert_for_assignment): Handle ic_argpass_nonproto. Add
8189 comments about its relevance to errors.
8190 (c_convert_parm_for_inlining): Use ic_argpass_nonproto.
8191
8192 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
8193
8194 PR c/16999
8195 * c-ppoutput.c (cb_ident): Don't quote string as it is already
8196 quoted.
8197
8198 2004-10-08 Diego Novillo <dnovillo@redhat.com>
8199
8200 * tree-ssa-pre.c (init_pre): Use size of ARRAY_REF to allocate
8201 reference_node_pool.
8202
8203 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
8204
8205 * tree-cfg.c: Fix a comment typo.
8206
8207 2004-10-08 Andreas Krebbel <krebbel1@de.ibm.com>
8208
8209 * config/s390/s390.c (s390_register_info): Don't save fprs for
8210 -msoft-float.
8211 (s390_conditional_register_usage): Make fprs 'fixed' for -msoft-float.
8212
8213 2004-10-08 Ulrich Weigand <uweigand@de.ibm.com>
8214
8215 * config/s390/s390.h (TARGET_DEFAULT_BACKCHAIN): New define.
8216 (TARGET_DEFAULT): Use symbolic values.
8217 * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Redefine.
8218 (TARGET_DEFAULT): Use symbolic values.
8219 * config/s390/s390.c (s390_backchain_string): Initialize to
8220 TARGET_DEFAULT_BACKCHAIN.
8221
8222 2004-10-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8223
8224 * builtins.c (expand_builtin_mempcpy): Move tree handling code to
8225 fold_builtin_mempcpy. Accept a type parameter. Delete duplicate
8226 code.
8227 (expand_builtin_strcat): Accept a type parameter.
8228 (fold_builtin_mempcpy): Accept a type and endp parameter.
8229
8230 * builtins.c (expand_builtin_strncpy): Delete duplicate code.
8231 Accept an `exp' instead of an `arglist'.
8232
8233 2004-10-08 Nathan Sidwell <nathan@codesourcery.com>
8234
8235 * tree-tailcall.c (tree_optimize_tail_calls_1): Use fold_convert,
8236 reverting my 2004-09-07 patch to use build_int_cst.
8237
8238 2004-10-08 Eric Botcazou <ebotcazou@libertysurf.fr>
8239
8240 PR target/17245
8241 * config/sparc/sparc.c (input_operand): Remove redundant code
8242 for handling LO_SUM.
8243 (legitimate_address_p) <REG+REG>: Do not recheck TARGET_V9.
8244 <LO_SUM>: If LO_SUM is offsettable, accept it for TFmode on V9.
8245 Otherwise only accept it for TFmode if quad move insns are available.
8246
8247 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
8248
8249 * tree-cfg.c (tree_forwarder_block_p): Reorder checks so that
8250 common cases will be caught earlier than others.
8251
8252 2004-10-08 Michael Matz <matz@suse.de>
8253
8254 * loop-doloop.c (doloop_optimize): Extend count.
8255
8256 2004-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
8257
8258 * config/sh/sh.md (prefetch_media, prefetch_i4): New insns.
8259 (prefetch): Convert to expander.
8260
8261 2004-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
8262
8263 * config/sh/sh.md (tls_global_dynamic): Use MEM pattern for the
8264 first argument of CALL.
8265 (tls_local_dynamic): Likewise.
8266
8267 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
8268
8269 * c-typeck.c (enum impl_conv): New.
8270 (convert_for_assignment): Use it. Take tree for function called
8271 instead of its name. Handle ObjC selectors for diagnostics at
8272 start of function. Select diagnostic text within the function
8273 using full sentences for diagnsotics. Use %qE to name functions
8274 in diagnostics.
8275 (convert_arguments, build_modify_expr,
8276 c_convert_parm_for_inlining, digest_init, c_finish_return): Update
8277 callers to convert_for_assignment.
8278 (warn_for_assignment): Remove.
8279
8280 2004-10-08 Nick Clifton <nickc@redhat.com>
8281
8282 * config/sh/symbian.c (symbian_possibly_export_base_class):
8283 Replace use of deleted TYPE_USES_VIRTUAL_BASECLASSES macro with
8284 TYPE_CONTAINS_VPTR_P.
8285
8286 2004-10-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
8287
8288 * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Don't exclude
8289 fixed registers form all_used_regs. Update call_really_used_regs.
8290 (CALL_REALLY_USED_REGISTERS): Define.
8291 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Replace call_used_regs
8292 with call_really_used_regs.
8293
8294 2004-10-08 Alan Modra <amodra@bigpond.net.au>
8295
8296 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Choose gcrt1.o
8297 for -profile as well as -p and -pg.
8298
8299 2004-10-07 Andrew Pinski <pinskia@physics.uc.edu>
8300
8301 * libgcc2.c (__moddi3): Cast &w to UDWtype*.
8302
8303 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
8304
8305 * tree-cfg.c (tree_block_forwards_to): Remove.
8306 * tree-flow.h: Remove the corresponding prototype.
8307
8308 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
8309
8310 * tree-flow-inline.h (phi_nodes): Remove an unnecessary check
8311 for ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR.
8312
8313 2004-10-07 Geoffrey Keating <geoffk@apple.com>
8314
8315 Radar 3813796
8316 * config/rs6000/rs6000.c (rs6000_generate_compare): When
8317 flag_trapping_math is in effect, don't generate subtract
8318 instructions.
8319
8320 2004-10-07 Ulrich Weigand <uweigand@de.ibm.com>
8321
8322 * config/s390/s390-protos.h (s390_narrow_logical_operator): Add.
8323 * config/s390/s390.c (s390_narrow_logical_operator): New function.
8324 (s390_extra_constraint_str): Add 'A' constraints.
8325 (s390_const_ok_for_constraint_p): Add 'Nx' constraints.
8326 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'A' constraint.
8327 (CONSTRAINT_LEN): Likewise.
8328 * config/s390/s390.md ("*anddi3"): Add NI alternative and splitter.
8329 ("*andsi3_zarch", "*andsi3_esa"): Likewise.
8330 ("*andhi3_zarch", "*andhi3_esa"): Likewise.
8331 ("*iordi3"): Add OI alternative and splitter.
8332 ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
8333 ("*iorhi3_zarch", "*iorhi3_esa"): Likewise.
8334 ("*xordi3"): Add XI alternative and splitter.
8335 ("*xorsi3", "*xorhi3"): Likewise.
8336
8337 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
8338
8339 * config/mips/mips.c (mips_function_rodata_section): New function.
8340 (TARGET_ASM_FUNCTION_RODATA_SECTION): Use it.
8341
8342 2004-10-07 Devang Patel <dpatel@apple.com>
8343
8344 * rs6000/altivec.md (UNSPEC_VCMPBFP, UNSPEC_VCMPEQUB, UNSPEC_VCMPEQUH,
8345 UNSPEC_VCMPEQUW, UNSPEC_VCMPGEFP, UNSPEC_VCMPGTUB, UNSPEC_VCMPGTSB,
8346 UNSPEC_VCMPGTUH, UNSPEC_VCMPGTSH, UNSPEC_VCMPGTUW, UNSPEC_VCMPGTSW,
8347 UNSPEC_VCMPGTFP, UNSPEC_VSEL4SI, UNSPEC_VSEL4SF, UNSPEC_VSEL8HI,
8348 UNSPEC_VSEL16QI, UNSPEC_VCOND_V4SI, UNSPEC_VCOND_V4SF, UNSPEC_VCOND_V8HI,
8349 UNSPEC_VCOND_V16QI, UNSPEC_VCONDU_V4SI, UNSPEC_VCONDU_V8HI,
8350 UNSPEC_VCONDU_V16QI): New constant defines.
8351 (vcondv4si, vcondv4sf, vcondv8hi, vcondv16qi, vconduv4si, vconduv8hi,
8352 vconduv16qi): New patterns.
8353 * rs6000/rs6000-protos.h (rs6000_emit_vector_cond_expr): New function.
8354 * rs6000/rs6000.c (rs6000_emit_vector_cond_expr): New function.
8355 (get_vec_cmp_insn): Same.
8356 (get_vsel_insn): Same.
8357 (rs6000_emit_vector_compare): Same.
8358 (rs6000_emit_vector_select): Same.
8359 (INSN_NOT_AVAILABLE): New.
8360
8361 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
8362
8363 PR tree-optimization/17749
8364 * tree-tailcall.c (find_tail_calls): Check that parameter is
8365 a gimple_reg.
8366
8367 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
8368
8369 * config/ia64/ia64.c: Fix a comment typo.
8370
8371 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
8372
8373 * doc/install.texi (*-*-solaris2*): Fix marker for URL.
8374
8375 2004-10-07 Giovanni Bajo <giovannibajo@gcc.gnu.org>
8376
8377 PR c++/17115
8378 * tree-inline.c (expand_call_inline): Do not warn for functions
8379 marked with attribute noinline.
8380
8381 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
8382
8383 PR target/17862
8384 * config/sparc/sparc.c (sparc_output_mi_thunk): Set
8385 current_function_uses_only_leaf_regs as well as sparc_leaf_function_p.
8386
8387 * config/sparc/sparc.c (sparc_gimplify_va_arg): Pass 'false' instead
8388 of 0 as 4th argument to pass_by_reference.
8389 Call build_va_arg_indirect_ref instead of build_fold_indirect_ref.
8390
8391 2004-10-06 Eric Christopher <echristo@redhat.com>
8392
8393 * config/sh/sh.c (sh_dwarf_calling_convention): Fix renesas dwarf
8394 attribute.
8395
8396 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
8397
8398 PR target/17770
8399 * config/mips/mips.md (mov_<load>l): Remove hazard=none attribute.
8400
8401 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
8402
8403 PR rtl-optimization/17791
8404 * loop-doloop.c (doloop_modify): Take number of iterations as
8405 argument.
8406 (doloop_optimize): Extend or shorten the number of iterations
8407 when changing mode of counter register.
8408 * loop-iv.c (lowpart_subreg): Export.
8409 * rtl.h (lowpart_subreg): Declare.
8410
8411 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
8412
8413 PR tree-optimization/17806
8414 * cfghooks.c (split_edge): Update IRREDUCIBLE_LOOP flags.
8415 * cfgloopmanip.c (loop_split_edge_with): Updating of IRREDUCIBLE_LOOP
8416 flags moved to split_edge.
8417
8418 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
8419
8420 PR middle-end/17835
8421 * expmed.c (expand_sdiv_pow2): Force a stack adjustment
8422 before tentatively building the conditional move sequence.
8423
8424 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
8425
8426 PR target/16815
8427 * function.c (assign_parm_setup_block_p): Tighten BLOCK_REG_PADDING
8428 check.
8429 * config/pa/pa.h (BLOCK_REG_PADDING): Define in terms of
8430 function_arg_padding.
8431
8432 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
8433
8434 PR bootstrap/17857
8435 * Makefile.in (stmp-fixproto): Pass FIX_HEADER=build/... to fixproto.
8436
8437 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
8438
8439 * hooks.c (hook_int_void_1, hook_void_int): Remove.
8440 * hooks.h: Remove the corresponding prototypes.
8441
8442 2004-10-06 Andrew Pinski <pinskia@physics.uc.edu>
8443
8444 PR middle-end/17849
8445 * tree-nested.c (walk_stmt_info): Add changed field.
8446 (convert_nonlocal_reference): Set changed to when we
8447 change a decl to unnested decl.
8448 <case ADDR_EXPR>: Instead of checking if the immediate part
8449 of the ADDR_EXPR changed, check the field changed.
8450 Use recompute_tree_invarant_for_addr_expr instead of unsetting
8451 TREE_INVARIANT.
8452 (convert_local_reference): Set changed to when we
8453 change a decl to unnested decl.
8454 <case ADDR_EXPR>: Instead of checking if the immediate part
8455 of the ADDR_EXPR changed, check the field changed.
8456 Also call recompute_tree_invarant_for_addr_expr on the ADDR_EXPR.
8457
8458 2004-10-06 Kazu Hirata <kazu@cs.umass.edu>
8459
8460 * defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
8461 * dwarf2out.c (dwarf2out_init): Remove references to
8462 DWARF2_GENERATE_TEXT_SECTION_LABEL.
8463 * system.h: Poison DWARF2_GENERATE_TEXT_SECTION_LABEL.
8464 * doc/tm.texi (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
8465
8466 2004-10-06 Joseph S. Myers <jsm@polyomino.org.uk>
8467
8468 * c-typeck.c (convert_arguments): Take expression for called
8469 function rather than its name. Handle ObjC selectors directly
8470 rather than relying on warn_for_assignment to do so. Call warning
8471 directly rather than warn_for_assignment. Use %qE in diagnostics.
8472 Say "argument" rather than "arg" in diagnostics.
8473 (build_function_call): Update call to convert_arguments.
8474
8475 2004-10-06 Andrew Pinski <pinskia@physics.uc.edu>
8476
8477 PR debug/17787
8478 * dbxout.c (dbxout_symbol): Really handle RECORD, UNION, and
8479 ENUMs specially instead of just saying we do.
8480
8481 2004-10-06 Eric Christopher <echristo@redhat.com>
8482
8483 * dwarf2.h: Sync with include/elf/dwarf2.h
8484
8485 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
8486
8487 * tree-pretty-print.c (dump_generic_node): Fix printing of BINFO
8488 and TREE_VEC nodes.
8489
8490 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
8491
8492 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Convert
8493 to use FOR_EACH_SSA_USE_OPERAND iterator, and propagate_value.
8494
8495 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
8496
8497 * lambda-code.c (compute_nest_using_fourier_motzkin): New
8498 function.
8499 (lambda_compute_auxillary_space): Split from here.
8500
8501 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
8502
8503 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop): Make non-static.
8504 * tree-flow.h: Add prototype.
8505 * lambda-code.c (invariant_in_loop_and_outer_loops): Use
8506 expr_invariant_in_loop.
8507
8508 2004-10-06 Kazu Hirata <kazu@cs.umass.edu>
8509
8510 * tree-cfg.c (thread_jumps): Remove a duplicate check for
8511 EXIT_BLOCK_PTR.
8512
8513 2004-10-06 Ulrich Weigand <uweigand@de.ibm.com>
8514
8515 * config/s390/s390-protos.h (s_imm_operand): Remove.
8516 (s390_pool_operand): Add prototype.
8517 * config/s390/s390.c (general_s_operand): Remove.
8518 (s_imm_operand): Remove.
8519 (s_operand): Merge contents of general_s_operand.
8520 (s390_pool_operand): New function.
8521 * config/s390/s390.h (PREDICATE_CODES): Remove s_imm_operand.
8522 * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct"): New insns.
8523 ("*cmpdi_ccu"): Merge Q->Q alternative.
8524 ("*cmpsi_ccu", "*cmphi_ccu"): Likewise.
8525 ("*cmpqi_ccu"): Merge Q->Q, n->Q, n->S alternatives.
8526 ("*cli"): Remove.
8527 ("*cmpdi_ccu_mem", "*cmpsi_ccu_mem"): Likewise.
8528 ("*cmphi_ccu_mem", "*cmpqi_ccu_mem"): Likewise.
8529 ("*movstricthi"): Use memory_operand instead of s_imm_operand.
8530
8531 2004-10-06 Steve Ellcey <sje@cup.hp.com>
8532
8533 * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Change macro to
8534 call ia64_function_arg_boundary.
8535 * config/ia64/ia64-protos.h (ia64_function_arg_boundary): New.
8536 * config/ia64/ia64.c (ia64_function_arg_boundary): New.
8537 (ia64_function_arg_advance): Do not put 128 bit floats into
8538 FP registers.
8539
8540 2004-10-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8541
8542 * builtins.c (expand_builtin_strcpy): Delete duplicate code.
8543 Accept an expression instead of an arglist.
8544 (expand_builtin_stpcpy): Accept an expression instead of an
8545 arglist.
8546
8547 2004-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
8548
8549 PR target/16007
8550 * doc/install.texi (*-*-solaris2*): Mention potential problem
8551 with Sun assembler + GNU linker and C++ programs.
8552 Document status of binutils 2.15 release.
8553
8554 2004-10-06 Jan Hubicka <jh@suse.cz>
8555
8556 * cse.c (cse_main): Kill push/pop context.
8557
8558 2004-10-05 Zack Weinberg <zack@codesourcery.com>
8559
8560 * pretty-print.c: Include tree.h.
8561 (pp_base_prepare_to_format): New function, logic from
8562 text_specifies_location.
8563 (pp_base_format_text): Use gcc_assert.
8564 * pretty-print.h (pp_prepare_to_format): New macro.
8565 (pp_base_prepare_to_format): Prototype.
8566 * diagnostic.c (text_specifies_location): Delete.
8567 (bug_report_request): Delete.
8568 (diagnostic_set_info): Don't call text_specifies_location.
8569 (diagnostic_action_after_output): Put text from
8570 bug_report_request inline here. Use gcc_unreachable.
8571 (diagnostic_report_current_function): Fix comment.
8572 (diagnostic_report_diagnostic): Clarify logic for error recursion.
8573 Call pp_prepare_to_format before diagnostic_starter.
8574 (trim_filename): Use IS_DIR_SEPARATOR.
8575 (fatal_error, internal_error): Use gcc_unreachable.
8576 (error_recursion): Call diagnostic_action_after_output to
8577 issue the bug_report_request message and exit.
8578 * Makefile.in (diagnostic.o, pretty-print.o): Update dependencies.
8579
8580 * c-parse.in: Add list of diagnostic messages to insulate
8581 translation template from version of yacc/bison used to
8582 compile the grammar.
8583
8584 2004-10-06 Alan Modra <amodra@bigpond.net.au>
8585
8586 PR 16406
8587 * doc/tm.texi (USE_LD_AS_NEEDED, LINK_EH_SPEC): Document.
8588
8589 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
8590
8591 * basic-block.h: Remove the prototype for
8592 flow_preorder_transversal_compute.
8593 * cfganal.c (dfst_node): Remove.
8594 (flow_preorder_transversal_compute): Likewise.
8595 * rtl.h: Remove the prototype for get_jump_table_offset.
8596 * rtlanal.c (get_jump_table_offset): Remove.
8597
8598 2004-10-05 Richard Henderson <rth@redhat.com>
8599
8600 PR 17756
8601 * tree-ssa-operands.c (get_expr_operands): Handle CONST_DECL.
8602
8603 2004-10-05 Kelley Cook <kcook@gcc.gnu.org>
8604
8605 PR bootstrap/17817
8606 * Makefile.in: Stage the build directory too.
8607
8608 2004-10-05 Aldy Hernandez <aldyh@redhat.com>
8609
8610 * config/frv/frv.h (LEGITIMIZE_ADDRESS): New.
8611
8612 * config/frv/frv-protos.h (frv_legitimize_address): Protoize.
8613 (frv_emit_move): Same.
8614
8615 * config/frv/frv.c (frv_emit_move): New.
8616 (frv_legitimize_address): New.
8617
8618 * config/frv/frv.md ("movsi"): Call frv_emit_move.
8619 ("movqi"): Same.
8620 ("movhi"): Same.
8621 ("movdi"): Same.
8622 ("movsf"): Same.
8623 ("movdf"): Same.
8624
8625 2004-10-05 Joseph S. Myers <jsm@polyomino.org.uk>
8626
8627 * c-decl.c (declspecs_add_type): Don't pedwarn for _Complex in
8628 system headers.
8629
8630 2004-10-05 Joseph S. Myers <jsm@polyomino.org.uk>
8631
8632 * c-decl.c (pushdecl): When an extern declaration at block scope
8633 refers to a visible entity with internal linkage, use the old DECL
8634 rather than the new one.
8635
8636 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
8637
8638 * tree-cfg.c (cleanup_tree_cfg): Remove extra parentheses in
8639 comments.
8640
8641 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
8642
8643 * tree-cfg.c (thread_jumps): Remove a duplicate check for
8644 an infinite loop.
8645
8646 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
8647
8648 * tree-cfg.c (thread_jumps): Iterate with FOR_EACH_BB instead
8649 of FOR_BB_BETWEEN. Remove a useless check for unreachable
8650 blocks.
8651
8652 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
8653
8654 * tree-cfg.c (cleanup_tree_cfg): Don't call
8655 delete_unreachable_blosk() after thread_jumps().
8656 (thread_jumps): Always remove basic blocks as they become
8657 unreachable.
8658
8659 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
8660
8661 * tree-cfg.c (cleanup_tree_cfg): Remove variable
8662 something_changed. Simplify the while loop.
8663
8664 2004-10-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8665
8666 * builtins.c (expand_builtin_memmove): Delete duplicate code
8667 and accept a tree type for the result.
8668 (expand_builtin_bcopy): Accept a tree type for the result.
8669 (fold_builtin_memmove): Accept an arglist and tree type for
8670 the result.
8671
8672 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
8673
8674 * config/s390/s390.c (s390_dump_pool): Remove return value.
8675 Use gen_pool_align, gen_pool_section_start/end instead of
8676 gen_pool_start/end_31/64.
8677 * config/s390/s390.md (UNSPECV_POOL_START, UNSPECV_POOL_END): Remove.
8678 (UNSPECV_POOL_SECTION, UNSPECV_POOL_ALIGN): New constants.
8679 ("pool_start_31", "pool_end_31"): Remove.
8680 ("pool_start_64", "pool_end_64"): Likewise.
8681 ("pool_align", "pool_section_start", "pool_section_end": New insns.
8682
8683 * config/s390/s390.c (s390_cannot_copy_insn_p): New function.
8684 (TARGET_CANNOT_COPY_INSN_P): Define.
8685 (s390_cannot_force_const_mem): Handle UNSPEC_INSN.
8686 (struct constant_pool): New member 'execute'.
8687 (s390_add_execute, s390_find_execute): New functions.
8688 (s390_execute_label, s390_execute_target): Likewise.
8689 (s390_dump_pool): Output in-pool execute target templates.
8690 (s390_dump_execute): New function.
8691 (s390_alloc_pool, s390_free_pool): Handle execute templates.
8692 (s390_mainpool_start, s390_mainpool_finish): Likewise.
8693 (s390_chunkify_start, s390_chunkify_finish): Likewise.
8694 * config/s390/s390.md (UNSPEC_INSN, UNSPEC_EXECUTE): New constants.
8695 ("*execute"): New insn pattern.
8696 ("movmem_short", "*movmem_short"): Use splitters to generate
8697 explicit execute pattern, remove embedded execute.
8698 ("clrmem_short", "*clrmem_short"): Likewise.
8699 ("cmpmem_short", "*cmpmem_short"): Likewise.
8700
8701 2004-10-05 Daniel Berlin <dberlin@dberlin.org>
8702
8703 * tree-ssa.c (verify_ssa): Verify phi arguments only
8704 contain renamed names.
8705
8706 2004-10-05 Alan Modra <amodra@bigpond.net.au>
8707
8708 * config/rs6000/linux.h: Formatting, whitespace.
8709 * config/rs6000/linux64.h: Likewise.
8710 * config/rs6000/rs6000-protos.h: Likewise.
8711 * config/rs6000/rs6000.c: Likewise.
8712 (easy_vector_splat_const): Add fall thru comments.
8713 (output_vec_const_move): Likewise.
8714
8715 2004-10-05 Kelley Cook <kcook@gcc.gnu.org>
8716
8717 * Makefile.in: Update -Wno-error exceptions for move to build dir.
8718
8719 2004-10-05 Chao-Ying Fu <fu@mips.com>
8720 Richard Sandiford <rsandifo@redhat.com>
8721
8722 * doc/invoke.texi (-mpaired-single): Link to the new description of the
8723 built-in functions. Document dependencies.
8724 (-mips3d): Add link here too.
8725 * doc/extend.texi (MIPS Paired-Single Support): New section.
8726
8727 2004-10-04 Chao-ying Fu <fu@mips.com>
8728
8729 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Define.
8730
8731 2004-10-04 Diego Novillo <dnovillo@redhat.com>
8732
8733 * tree-ssa-dom.c (tree_ssa_dominator_optimize):
8734 Initialize OPT_STATS to 0.
8735
8736 2004-10-04 Kazu Hirata <kazu@cs.umass.edu>
8737
8738 * tree-data-ref.c: Fix comment typos.
8739
8740 2004-10-04 Sebastian Pop <pop@cri.ensmp.fr>
8741
8742 * tree-data-ref.c (array_base_name_differ_p): Fix comments. When
8743 the predicate cannot be computed, don't initialize the result to
8744 false.
8745
8746 2004-10-01 Eric Christopher <echristo@redhat.com>
8747
8748 * dwarf2.h (dwarf_calling_convention): Add GNU prefix to
8749 locally defined enum.
8750 * dwarf2out.c (add_calling_convention_attribute): Don't
8751 emit DW_CC_normal.
8752
8753 2004-10-03 Andrew Pinski <pinskia@physics.uc.edu>
8754
8755 PR c/17178, PR c/17820
8756 * c-decl.c (pop_scope): Do not warn about unused static
8757 variables as they warned in the middle-end.
8758
8759 2004-10-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8760
8761 * builtins.c (expand_builtin_memcpy): Delete duplicate code
8762 and make the first parameter the expression not the arglist.
8763
8764 2004-10-03 Ulrich Weigand <uweigand@de.ibm.com>
8765
8766 * expr.c (expand_expr_addr_expr): Only accept Pmode or ptr_mode
8767 as valid modes to expand address expressions.
8768
8769 2004-10-03 Joseph S. Myers <jsm@polyomino.org.uk>
8770
8771 * c-aux-info.c, c-common.c, c-common.h, c-cppbuiltin.c, c-decl.c,
8772 c-format.c, c-incpath.c, c-lex.c, c-objc-common.c, c-opts.c,
8773 c-parse.in, c-pch.c, c-ppoutput.c, c-pragma.c, c-typeck.c: Follow
8774 code formatting conventions.
8775
8776 2004-10-03 Richard Sandiford <rsandifo@redhat.com>
8777
8778 * config/mips/mips.md (<u>mulsidi3_32bit_r4000): Fix unsigned case.
8779
8780 2004-10-03 Kazu Hirata <kazu@cs.umass.edu>
8781
8782 PR tree-optimization/16632
8783 * fold-const.c (fold) [EQ_EXPR]: When seeing if D & ~C != 0 to
8784 fold (A & C) == D into 0, fold ~C. Similarly, for the case
8785 where | is used instead of &.
8786
8787 2004-10-03 Kazu Hirata <kazu@cs.umass.edu>
8788
8789 * ginclude/stddef.h: Fix a comment typo.
8790
8791 2004-10-03 Eric Botcazou <ebotcazou@libertysurf.fr>
8792
8793 PR target/17443
8794 * config.gcc (i?86-*-solaris2*): Restore correct logic
8795 for --enable-threads option.
8796 (sparc64-*-solaris2*): Likewise.
8797 (sparc-*-solaris2*): Likewise.
8798
8799 2004-10-03 Alan Modra <amodra@bigpond.net.au>
8800
8801 * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define.
8802 (OS_MISSING_POWERPC64): Move, and comment.
8803 * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Define.
8804 (OS_MISSING_POWERPC64): Move, and comment.
8805
8806 2004-10-02 Ian Lance Taylor <ian@wasabisystems.com>
8807
8808 * arm.c (output_call_mem): Add missing \t.
8809
8810 2004-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8811
8812 * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp,
8813 expand_builtin_strncmp): Delete duplicate code.
8814
8815 2004-10-02 Frank Ch. Eigler <fche@redhat.com>
8816
8817 * tree-mudflap.c (mf_build_check_statement_for): Reorganize to
8818 take check-base and -limit arguments.
8819 (mf_xform_derefs_1): Reorganize slightly to pass proper base/limit
8820 check ranges for ARRAY_REF and COMPONENT_REF.
8821 (execute_mudflap_fnction_ops, ..._decls): Limit unnecessary
8822 instrumentation.
8823
8824 2004-10-02 Joseph S. Myers <jsm@polyomino.org.uk>
8825
8826 * c-objc-common.c (c_tree_printer): Correct description of %E.
8827 Don't fall through after printing an expression.
8828
8829 2004-10-02 Kazu Hirata <kazu@cs.umass.edu>
8830
8831 * tree-cfg.c, config/s390/tpf-unwind.h: Fix comment typos.
8832
8833 2004-10-02 Kazu Hirata <kazu@cs.umass.edu>
8834
8835 * tree-cfg.c (cleanup_tree_cfg): Speed up by calling
8836 delete_unrechable_blocks() only when necessary.
8837
8838 2004-10-02 P.J. Darcy <darcypj@us.ibm.com>
8839
8840 * gthr-tpf.h (__gthread_recursive_mutex_t): New type.
8841 (__GTHREAD_RECURSIVE_MUTEX_INIT): Define.
8842 (__gthread_recursive_mutex_lock, __gthread_recursive_mutex_trylock,
8843 __gthread_recursive_mutex_unlock): New functions.
8844
8845 2004-10-02 P.J. Darcy <darcypj@us.ibm.com>
8846
8847 * config/s390/t-tpf (LIB2ADDEH): Remove tpf-eh.c.
8848 * config/s390/tpf-eh.c: Remove file.
8849 * config/s390/tpf-unwind.h: New file.
8850 * config/s390/tpf.h (MD_FALLBACK_FRAME_STATE_FOR): Remove.
8851 (MD_UNWIND_SUPPORT): Define.
8852
8853 2004-10-02 Joseph S. Myers <jsm@polyomino.org.uk>
8854
8855 * c-typeck.c (warn_for_assignment): Don't permit argnum == 0.
8856
8857 2004-10-01 Ulrich Weigand <uweigand@de.ibm.com>
8858
8859 * config/s390/s390-protos.h (s390_comparison): Add prototype.
8860 * config/s390/s390.c (s390_comparison): New function.
8861 (s390_branch_condition_mask): Return -1 for invalid comparisons.
8862 (s390_branch_condition_mnemonic): Assert valid comparison.
8863 * config/s390/s390.h (PREDICATE_CODES): Add s390_comparison.
8864 * config/s390/s390.md ("*cjump_64", "*cjump_31", "*cjump_long",
8865 "*icjump_64", "*icjump_31", "*icjump_long", "*trap"): Use
8866 s390_comparison instead of comparison_operator.
8867
8868 * config/s390/s390.md (UNSPEC_CMPINT): New constant.
8869 ("cmpmemdi"): Remove.
8870 ("cmpmem_short", "*cmpmem_short"): Use CCUmode instead of CCSmode.
8871 ("cmpmem_long", "*cmpmem_long_64", "*cmpmem_long_31"): Likewise.
8872 ("cmpint_si"): Rename to ...
8873 ("*cmpint_si"): ... this. Use UNSPEC_CMPINT.
8874 ("cmpint_di", "*cmpint_di"): Likewise.
8875 * config/s390/s390.c (s390_canonicalize_comparison): Remove
8876 redundant UNSPEC_CMPINT conversions.
8877 (s390_expand_cmpmem): Adapt to cmpint pattern changes.
8878
8879 2004-10-01 Kazu Hirata <kazu@cs.umass.edu>
8880
8881 * collect2.c (COLLECT_PARSE_FLAG): Remove.
8882 (main): Remove a reference to COLLECT_PARSE_FLAG
8883 * system.h: Poison COLLECT_PARSE_FLAG.
8884 * doc/tm.texi (COLLECT_PARSE_FLAG): Remove.
8885
8886 2004-10-01 Paul Brook <paul@codesourcery.com>
8887
8888 * config/arm/crti.asm: Give _init and _fini function type.
8889
8890 2004-10-01 Zdenek Dvorak <dvorakz@suse.cz>
8891
8892 * common.opt (ftree-loop-ivcanon): Enable by default.
8893 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
8894 Enable complete loop unrolling.
8895 (canonicalize_induction_variables, tree_unroll_loops_completely):
8896 Reset scev info.
8897
8898 2004-10-01 Paul Brook <paul@codesourcery.com>
8899
8900 * config/arm/arm.c (thumb_compute_saved_rag_mask): Or with bitmask,
8901 not register number.
8902 (thumb_find_work_register): Search full register range.
8903
8904 2004-10-01 Andrew Pinski <pinskia@physics.uc.edu>
8905
8906 PR tree-opt/17343
8907 * tree-cfg.c (group_case_labels): Get the label and not
8908 the case expr for the default case.
8909 When the label we looking at is the default, decrement the
8910 new_size.
8911
8912 2004-10-01 Jan Hubicka <jh@suse.cz>
8913
8914 * c-decl.c (c_expand_body): Update call tree_rest_of_compilation.
8915 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
8916 * toplev.h (tree_rest_of_compilation): Update prototype.
8917 * tree-optimize.c (tree_rest_of_compilation): Kill nested_p argument.
8918
8919 2004-10-01 Kazu Hirata <kazu@cs.umass.edu>
8920
8921 * tree-cfg.c (cleanup_tree_cfg): Pull a call to
8922 cleanup_control_flow() out of the while loop.
8923
8924 2004-10-01 Paolo Bonzini <bonzini@gnu.org>
8925
8926 * tree-vectorizer.c (vectorizable_operation): Fail unless
8927 the mode for the vector type is indeed a vector mode.
8928
8929 2004-10-01 Zdenek Dvorak <dvorakz@suse.cz>
8930
8931 * tree-chrec.c (chrec_fold_plus_poly_poly, chrec_fold_plus_1,
8932 chrec_fold_multiply): Use fold_convert or build_int_cst_type instead
8933 of convert.
8934 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
8935 add_to_evolution, set_nb_iterations_in_loop, follow_ssa_edge_in_rhs,
8936 follow_ssa_edge_in_rhs): Ditto.
8937 * tree-ssa-loop-ivopts.c (struct iv): Add base_object field.
8938 (dump_iv): Dump base_object.
8939 (dump_use, dump_cand): Use dump_iv.
8940 (determine_base_object): New function.
8941 (alloc_iv): Initialize base_object field.
8942 (record_use): Clear the ssa_name field of iv.
8943 (get_computation_cost_at): Do not use difference of addresses of
8944 two different objects.
8945 (may_eliminate_iv): Do not require the loop to have just single exit.
8946 * tree-ssa-loop-niter.c (zero_p): Do not check for overflows.
8947 (nonzero_p): New function.
8948 (inverse, number_of_iterations_cond, simplify_using_outer_evolutions,
8949 tree_simplify_using_condition, simplify_using_initial_conditions,
8950 loop_niter_by_eval, find_loop_niter_by_eval,
8951 estimate_numbers_of_iterations_loop, compare_trees,
8952 upper_bound_in_type, lower_bound_in_type,
8953 can_count_iv_in_wider_type_bound): Use buildN instead of build. Use
8954 fold_convert or build_int_cst_type instead of convert. Use (non)zero_p
8955 instead of integer_(non)zerop.
8956
8957 2004-10-01 Jakub Jelinek <jakub@redhat.com>
8958
8959 Revert
8960 2004-09-29 Jakub Jelinek <jakub@redhat.com>
8961
8962 * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
8963 and TI_VA_LIST_FPR_COUNTER_FIELD.
8964 (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
8965 * tree-pass.h (pass_stdarg): Add.
8966 * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
8967 * tree-stdarg.c: New file.
8968 * Makefile.in (OBJS-common): Add tree-stdarg.o.
8969 (tree-stdarg.o): Add dependencies.
8970 * function.h (struct function): Add va_list_gpr_size and
8971 va_list_fpr_size fields.
8972 * function.c (allocate_struct_function): Initialize them.
8973
8974 * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
8975 va_list_{g,f}pr_counter_field.
8976 (ix86_setup_incoming_varargs): Don't do anything if reg_save
8977 area will not be used. Only save registers that tree-stdarg.c
8978 detected they need saving.
8979 (ix86_va_start): Don't set up fields that won't be used.
8980
8981 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
8982 va_list_{g,f}pr_counter_field.
8983 (setup_incoming_varargs): Don't do anything if reg_save
8984 area will not be used. Only save registers that tree-stdarg.c
8985 detected they need saving.
8986 (rs6000_va_start): Don't set up fields that won't be used.
8987
8988 2004-09-30 Eric Christopher <echristo@redhat.com>
8989
8990 * dwarf2.h (dwarf_calling_convention): Add enum for renesas
8991 sh abi.
8992 * dwarf2out.c (add_calling_convention_attribute): New function.
8993 (gen_subroutine_type_die): Use.
8994 * target-def.h (TARGET_DWARF_CALLING_CONVENTION): New hook.
8995 * target.h (gcc_target): Add dwarf_calling_convention.
8996 * hooks.c (hook_int_tree_0): New function.
8997 * hooks.h: Prototype.
8998 * config/sh/sh.c: Include dwarf2.h.
8999 (sh_dwarf_calling_convention): New function.
9000 (TARGET_DWARF_CALLING_CONVENTION): Use.
9001 * doc/tm.texi (TARGET_DWARF_CALLING_CONVENTION): Document.
9002
9003 2004-09-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9004
9005 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
9006 expand_builtin_strrchr, expand_builtin_strpbrk,
9007 expand_builtin_strncat, expand_builtin_strspn,
9008 expand_builtin_strcspn, expand_builtin_fputs): Eliminate duplicate
9009 code.
9010
9011 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
9012
9013 * config/s390/s390-protos.h (s390_expand_logical_operator): Add
9014 prototype.
9015 (s390_logical_operator_ok_p): Likewise.
9016 * config/s390/s390.c (s390_expand_logical_operator): New function.
9017 (s390_logical_operator_ok_p): Likewise.
9018 * config/s390/s390.md ("anddi3"): New expander.
9019 ("*anddi3"): Rename from old anddi3 pattern, add Q->Q alternative.
9020 ("*anddi3_ss", "*anddi3_ss_inv"): Remove.
9021 ("andsi3"): Use s390_expand_logical_operator.
9022 ("*andsi3_esa", "*andsi3_zarch"): Add Q->Q alternative.
9023 ("*andsi3_ss", "*andsi3_ss_inv"): Remove.
9024 ("andhi3"): New expander.
9025 ("*andhi3_zarch", "*andhi3_esa"): New patterns.
9026 ("andhi3", "*andhi3_ni", "*andhi3_ss", "*andhi3_ss_inv"): Remove.
9027 ("andqi3"): New expander.
9028 ("*andqi3_zarch", "*andqi3_esa"): New patterns.
9029 ("andqi3", "*andqi3_ni", "*andqi3_ss", "*andqi3_ss_inv"): Remove.
9030 ("iordi3"): New expander.
9031 ("*iordi3"): Rename from old iordi3 pattern, add Q->Q alternative.
9032 ("*iordi3_ss", "*iordi3_ss_inv"): Remove.
9033 ("iorsi3"): Use s390_expand_logical_operator.
9034 ("*iorsi3_esa", "*iorsi3_zarch"): Add Q->Q alternative.
9035 ("*iorsi3_ss", "*iorsi3_ss_inv"): Remove.
9036 ("iorhi3"): New expiorer.
9037 ("*iorhi3_zarch", "*iorhi3_esa"): New patterns.
9038 ("iorhi3", "*iorhi3_ni", "*iorhi3_ss", "*iorhi3_ss_inv"): Remove.
9039 ("iorqi3"): New expiorer.
9040 ("*iorqi3_zarch", "*iorqi3_esa"): New patterns.
9041 ("iorqi3", "*iorqi3_ni", "*iorqi3_ss", "*iorqi3_ss_inv"): Remove.
9042 ("xordi3"): New expander.
9043 ("*xordi3"): Rename from old xordi3 pattern, add Q->Q alternative.
9044 ("*xordi3_ss", "*xordi3_ss_inv"): Remove.
9045 ("xorsi3"): New expander.
9046 ("*xorsi3"): Rename from old xorsi3 pattern, add Q->Q alternative.
9047 ("*xorsi3_ss", "*xorsi3_ss_inv"): Remove.
9048 ("xorhi3"): New expander.
9049 ("*xorqi3"): Rename from old xorhi3 pattern, add Q->Q alternative.
9050 ("*xorhi3_ss", "*xorhi3_ss_inv"): Remove.
9051 ("xorqi3"): New expander.
9052 ("*xorqi3"): Rename from old xorqi3 pattern, add Q->Q alternative.
9053 ("*xorqi3_ss", "*xorqi3_ss_inv"): Remove.
9054
9055 2004-09-30 Roger Sayle <roger@eyesopen.com>
9056
9057 * combine.c (force_to_mode) <NE_EXPR>: Only convert the expression
9058 (AND (NE FOO 0) CONST) into (AND FOO CONST) if FOO has the same
9059 machine mode as the result.
9060
9061 2004-09-30 Ben Elliston <bje@au.ibm.com>
9062
9063 PR bootstrap/17761
9064 * lcm.c (optimize_mode_switching): Update to use EDGE_SUCC and
9065 FOR_EACH_EDGE macros.
9066
9067 2004-09-30 Joseph S. Myers <jsm@polyomino.org.uk>
9068
9069 * c-tree.h (readonly_error): Remove.
9070 * c-typeck (enum lvalue_use): New.
9071 (lvalue_or_else, readonly_error): Use it. All callers changed.
9072 (readonly_error): Make static.
9073
9074 2004-09-30 Jan Hubicka <jh@suse.cz>
9075
9076 PR debug/13974
9077 * cfgrtl.c (try_redirect_by_replacing_jump,
9078 force_nonfallthru_and_redirect, commit_one_edge_insertion,
9079 cfg_layout_merge_blocks): Do not attach any line number information
9080 to newly inserted instructions.
9081 * emit-rtl.c (emit_insn*_before, emit_insn*_after): Rename to
9082 emit_insn_*_noloc.
9083 (emit_*insn_before, emit_insn*_after): New.
9084 (emit_*insn_before_setloc, emit_*insn_after_setloc): Do not overwrite
9085 existing locators.
9086 * rtl.h (emit_*insn_before_noloc, emit_*insn_after_noloc): Declare.
9087 (emit_*insn_before_sameloc, emit_*insn_after_sameloc): Kill.
9088
9089 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
9090
9091 * config/s390/s390-protos.h (s390_arg_frame_offset): Remove.
9092 (s390_return_address_offset): Remove.
9093 (s390_can_eliminate): Add prototype.
9094 (s390_initial_elimination_offset): Add prototype.
9095 * config/s390/s390.h (CAN_ELIMINATE): Call s390_can_eliminate.
9096 (INITIAL_ELIMINATION_OFFSET): Call s390_initial_elimination_offset.
9097 * config/s390/s390.c (s390_arg_frame_offset): Remove.
9098 (s390_return_address_offset): Remove.
9099 (s390_can_eliminate, s390_initial_elimination_offset): New functions.
9100 (struct machine_function): New member split_branches_pending_p.
9101 (s390_mainpool_start): Allow nonexistant pool insn for empty pool.
9102 (s390_mainpool_finish): Likewise. Clear base_reg if pool empty.
9103 (s390_optimize_prologue): Remove base_used argument. Call
9104 s390_update_frame_layout instead of s390_register_info. Handle
9105 prologue/epilogue insns that touch only RETURN_REGNUM.
9106 (s390_reorg): Remove base_used. Clear split_branches_pending_p.
9107 (s390_register_info): Remove base_used and return_addr_used
9108 arguments, compute special register usage inline. Return live
9109 register data to caller.
9110 (s390_frame_info): Remove arguments, do not call s390_register_info.
9111 (s390_init_frame_layout): New function.
9112 (s390_update_frame_layout): Likewise.
9113 (s390_emit_prologue): Call s390_update_frame_layout; some code
9114 move to there. Do not emit pool placeholder insn if unnecessary.
9115
9116 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
9117
9118 * config/s390/s390.c (legitimate_reload_constant_p): Remove
9119 floating point constant workaround.
9120 (s390_secondary_input_reload_class): Handle PLUS reloads
9121 with too-large constant.
9122 (s390_expand_plus_operand): Likewise.
9123 * config/s390/s390.md ("movdi"): Do not call force_const_mem.
9124 ("movsi"): Likewise. Also, remove workaround for non-general
9125 operands.
9126 ("movdf"): Do not call force_const_mem.
9127 ("movsf"): Likewise. Merge expander with *movsf insn.
9128 ("*movsf"): Remove, merge with movsf expander.
9129
9130 2004-09-30 Paul Brook <paul@codesourcery.com>
9131
9132 * config/arm/symbian.h (STARTFILE_SPEC): Remove crt*.o.
9133 (ENDFILE_SPEC): Define.
9134 * config/arm/t-symbian.h (EXTRA_MULTILIB_PARTS): Set.
9135
9136 2004-09-30 Richard Henderson <rth@redhat.com>
9137
9138 * config/alpha/qrnnd.asm: Mark for noexecstack.
9139
9140 2004-09-30 Kazu Hirata <kazu@cs.umass.edu>
9141
9142 * protoize.c, tree-cfg.c: Fix comment typos.
9143
9144 2004-09-30 Joseph S. Myers <jsm@polyomino.org.uk>
9145
9146 PR c/17730
9147 * c-typeck.c (lvalue_or_else): Pass msgid directly to error.
9148
9149 2004-09-30 Diego Novillo <dnovillo@redhat.com>
9150
9151 * tree-ssa-alias.c (collect_points_to_info_r): Move analysis of
9152 expressions...
9153 (add_pointed_to_expr): ... here.
9154 Call add_pointed_to_expr for variables with DECL_INITIAL set.
9155 * tree-dfa.c (add_referenced_var): Scan DECL_INITIAL of any
9156 pointer variable, if set.
9157
9158 2004-09-30 Kazu Hirata <kazu@cs.umass.edu>
9159
9160 * config/sh/sh.c: Follow spelling conventions.
9161
9162 2004-09-29 Richard Henderson <rth@redhat.com>
9163
9164 * unwind-dw2.c (_Unwind_GetGR): Honor DWARF_ZERO_REG.
9165 * doc/tm.texi (DWARF_ZERO_REG): New.
9166
9167 * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
9168 alpha_expand_epilogue): Revert 2003-09-30 change to store zero.
9169 * config/alpha/alpha.h (DWARF_ZERO_REG): New.
9170
9171 2004-09-29 Ulrich Weigand <uweigand@de.ibm.com>
9172
9173 * builtins.c (expand_builtin_strlen): Do not call emit_move_insn
9174 with a PLUS as source operand.
9175 (expand_movstr): Likewise.
9176 (expand_builtin_stpcpy): Likewise.
9177
9178 2004-09-29 Richard Henderson <rth@redhat.com>
9179
9180 PR 17739
9181 * tree-gimple.c (is_gimple_reg): Reject hard registers.
9182 (is_gimple_asm_val): New.
9183 * tree-gimple.h (is_gimple_asm_val): Declare.
9184 * gimplify.c (gimplify_asm_expr): Use it.
9185 * tree-pretty-print.c (print_declaration): Dump hard regs.
9186 * tree-outof-ssa.c (check_replaceable): Don't check for hard regs.
9187 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
9188 * tree-ssa-pre.c (is_undefined_value): Likewise.
9189 * tree-ssa-copy.c (may_propagate_copy): Likewise.
9190 (may_propagate_copy_into_asm): Protect DECL_HARD_REGISTER.
9191 * tree-ssa.c (warn_uninit): Likewise.
9192 * tree.h (DECL_HARD_REGISTER): Check for VAR_DECL.
9193
9194 2004-09-29 Fariborz Jahanian <fjahanian@apple.com>
9195
9196 * c-decl.c (merge_decls): Use comptype when comparing
9197 types to decide on DECL_SIZE save of olddecl.
9198
9199 2004-09-29 Daniel Berlin <dberlin@dberlin.org>
9200
9201 * tree.h (INDIRECT_REF_P): New macro.
9202 * alias.c (get_alias_set): Use it
9203 (nonoverlapping_memrefs_p): Ditto.
9204 * emit-rtl.c (mem_expr_equal_p): Ditto.
9205 (set_mem_attributes_minus_bitpos): Ditto.
9206 (is_gimple_addressable): Ditto.
9207 (get_base_address): Ditto.
9208 * tree-ssa-alias.c (find_ptr_derefernece): Ditto.
9209 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Ditto.
9210 * tree-ssa-dom.c (record_equivalences_from_stmt): Ditto.
9211 * tree-ssa-loop-im.c (is_call_clobbered_ref): Ditto.
9212 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Ditto.
9213 (add_address_candidates): Ditto.
9214 (rewrite_address_base): Ditto.
9215
9216 2004-09-30 Ben Elliston <bje@au.ibm.com>
9217
9218 * tree-flow.h (struct bb_ann_d): Remove num_preds member.
9219 * tree-into-ssa.c (rewrite_into_ssa): Don't set it.
9220 (rewrite_ssa_into_ssa): Likewise.
9221 * tree-phinodes.c (create_phi_node): Access the number of
9222 predecessor edges using EDGE_COUNT() and not num_preds.
9223
9224 2004-09-29 Joseph S. Myers <jsm@polyomino.org.uk>
9225
9226 PR c/7425
9227 * c-decl.c (merge_decls): Merge TREE_DEPRECATED.
9228
9229 2004-09-29 Eric Christopher <echristo@redhat.com>
9230
9231 * fold-const.c (tree_swap_operands_p): Remove duplicated code.
9232
9233 2004-09-29 Hans-Peter Nilsson <hp@axis.com>
9234
9235 * config/cris/cris.md (moverside, movemside): With MEM, make sure
9236 the address is (plus reg mem).
9237
9238 2004-09-29 David Edelsohn <edelsohn@gnu.org>
9239
9240 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
9241
9242 2004-09-29 Nathan Sidwell <nathan@codesourcery.com>
9243
9244 * tree.c (make_node_stat): Fix uninitialized warning. Replace
9245 cascaded if ... else if with a switch.
9246
9247 2004-09-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
9248
9249 * read-rtl.c (apply_macro_to_string): Replace index with strchr.
9250
9251 2004-09-29 Jakub Jelinek <jakub@redhat.com>
9252
9253 * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
9254 and TI_VA_LIST_FPR_COUNTER_FIELD.
9255 (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
9256 * tree-pass.h (pass_stdarg): Add.
9257 * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
9258 * tree-stdarg.c: New file.
9259 * Makefile.in (OBJS-common): Add tree-stdarg.o.
9260 (tree-stdarg.o): Add dependencies.
9261 * function.h (struct function): Add va_list_gpr_size and
9262 va_list_fpr_size fields.
9263 * function.c (allocate_struct_function): Initialize them.
9264
9265 * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
9266 va_list_{g,f}pr_counter_field.
9267 (ix86_setup_incoming_varargs): Don't do anything if reg_save
9268 area will not be used. Only save registers that tree-stdarg.c
9269 detected they need saving.
9270 (ix86_va_start): Don't set up fields that won't be used.
9271
9272 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
9273 va_list_{g,f}pr_counter_field.
9274 (setup_incoming_varargs): Don't do anything if reg_save
9275 area will not be used. Only save registers that tree-stdarg.c
9276 detected they need saving.
9277 (rs6000_va_start): Don't set up fields that won't be used.
9278
9279 2004-09-29 Jakub Jelinek <jakub@redhat.com>
9280
9281 * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED,
9282 BUILT_IN_FPUTS, BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE,
9283 BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_PUTCHAR, BUILT_IN_PUTCHAR_UNLOCKED,
9284 BUILT_IN_PUTS, BUILT_IN_PUTS_UNLOCKED): Remove nothrow attribute.
9285 * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_1_2,
9286 ATTR_NONNULL_1_4): New.
9287
9288 2004-09-29 Jakub Jelinek <jakub@redhat.com>
9289
9290 PR tree-optimization/17697
9291 * tree-ssa-ccp.c (execute_fold_all_builtins): Update eh and cleanup
9292 cfg if needed.
9293
9294 2004-09-28 Per Bothner <per@bothner.com>
9295
9296 * profile.c (branch_prob): Pass correct value to output_location,
9297 even when USE_MAPPED_LOCATION. Fixes bug from 09-11.
9298
9299 2004-09-28 Richard Henderson <rth@redhat.com>
9300
9301 PR 15089
9302 * tree-ssa-copy.c (may_propagate_copy_into_asm): New.
9303 * tree-flow.h (may_propagate_copy_into_asm): Declare.
9304 * tree-ssa-ccp.c (replace_uses_in): Use it.
9305 * tree-ssa-dom.c (cprop_operand): Likewise.
9306
9307 2004-09-28 Jeff Law <law@redhat.com>
9308
9309 * tree-ssa-threadupdate.c (create_block_for_threading): Request
9310 that no outgoing edges be left in the duplicate block. Do no
9311 update information on outgoing edges or PHI nodes in target
9312 blocks here.
9313 (remove_ctrl_stmt_and_useless_edges): Renamed from
9314 remove_last_stmt_and_useless_edges. Handle case where the
9315 block is empty or has no control statements. Do not update edge
9316 flags here.
9317 (thread_block): Create a template block rather than copying the
9318 original block every time. Create outgoing edges from the
9319 duplicate blocks and update PHIs at the target of the outgoing
9320 edges here. Fix edge flags for the original block if necessary.
9321 * cfghooks (duplicate_block): No longer assert that the original
9322 block has incoming edges.
9323
9324 2004-09-29 Hans-Peter Nilsson <hp@bitrange.com>
9325
9326 * doc/extend.texi (Extended Asm): Add blurb about using Explicit
9327 Reg Vars to enforce register allocation with general constraints.
9328 (Explicit Reg Vars): Clarify relation to asm statements.
9329 (Local Reg Vars): Similar.
9330
9331 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
9332
9333 * sched-rgn.c (haifa_edge, edge_table, NEXT_IN, NEXT_OUT, FROM_BLOCK,
9334 TO_BLOCK, nr_edges, in_edges, out_edges, IN_EDGES, OUT_EDGES,
9335 build_control_flow, new_edge): Remove.
9336 (schedule_insns): Remove edge_table/in_edges/out_edges cleanup.
9337 (bitlst, bitlst_table_last, bitlst_table): Remove.
9338 (bblst): Store basic_block pointer instead of block index.
9339 (bblst_table): Likewise.
9340 (edgelst): Store edge pointer instead of edge index.
9341 (edgelst_table, edgelst_last): New variables.
9342 (extract_bitlst): Rename to ...
9343 (extract_edgelst): ... this. Return edge pointers, not indices.
9344 (split_edges): Update call.
9345 (rgn_edges): Store edge pointers instead of indices.
9346 (edge_to_bit): Remove.
9347 (EDGE_TO_BIT): Store per-region edge index in edge->aux.
9348 (SET_EDGE_TO_BIT): New macro.
9349 (is_cfg_nonregular): Check for simple cases of unreachable blocks.
9350 (find_rgns): Remove edge_list parameter. Traverse standard CFG
9351 data structures instead of haifa_edge et al. Use edge pointers
9352 instead of edge indices everywhere.
9353 (compute_dom_prob_ps): Use standard CFG data structures. Account
9354 for exit edges.
9355 (compute_trg_info): Likewise.
9356 (propagate_deps): Likewise.
9357 (debug_candidate): Account for bblst data structure change.
9358 (check_live_1, update_live_1, is_pfree): Likewise.
9359 (IS_REACHABLE): Use standard CFG data structures.
9360 (init_ready_list): Update bblst_table/edgelst_table allocation.
9361 (schedule_region): Update alloc/cleanup code to data structure
9362 changes. Use edge->aux to store per-region edge index.
9363 (init_regions): No longer call build_control_flow. Do not
9364 create edge list any more.
9365
9366 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
9367
9368 * cse.c (cse_insn): Avoid creating direct non-local jumps.
9369 * combine.c (can_combine_p): Likewise.
9370 * local-alloc. (update_equiv_regs): Likewise.
9371
9372 2004-09-28 Richard Henderson <rth@redhat.com>
9373
9374 PR 17531
9375 * expr.c (expand_expr_addr_expr_1): Only assemble_external for decls.
9376 Don't check VOIDmode here. Force PLUS operands to common type.
9377 (expand_expr_addr_expr): Do VOIDmode check earlier. Force use of
9378 Pmode if given a non pointer type.
9379
9380 2004-09-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9381
9382 PR 17531
9383 * optabs.c (expand_binop): Force constants to the correct mode.
9384
9385 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
9386
9387 * config/s390/s390.c (s390_adjust_cost): Remove.
9388 (TARGET_SCHED_ADJUST_COST): Do not redefine.
9389 (s390_adjust_priority): Handle TYPE_STM like TYPE_STORE.
9390 * config/s390/s390.md ("main_pool"): Use "larl" type
9391 attribute if TARGET_CPU_ZARCH.
9392
9393 2004-09-28 Jakub Jelinek <jakub@redhat.com>
9394
9395 * config/ia64/ia64.c (ia64_expand_prologue): Declare ei
9396 variable.
9397
9398 2004-09-28 Diego Novillo <dnovillo@redhat.com>
9399
9400 * tree-ssa-loop.c (pass_record_bounds): Do not assign a
9401 name to the pass.
9402
9403 2004-09-28 Steven Bosscher <stevenb@suse.de>
9404
9405 * common.opt (flag_gcse_sm): Disable by default.
9406 (flag_gcse_las): Likewise.
9407 (flag_web): Likewise. Create from this file.
9408 * flags.h: Remove flag_web declaration.
9409 * toplev.c (flag_web): Likewise.
9410 (process_options): Never set flag_web.
9411
9412 2004-09-28 Steven Bosscher <stevenb@suse.de>
9413
9414 * Makefile.in (tree-ssa-propagate.o): Depend on vec.h.
9415 * tree-ssa-propagate.c: Include vec.h.
9416 (interesting_ssa_edges, varying_ssa_edges): Make these VECs
9417 instead of varrays.
9418 (cfg_blocks_add): Assert the block is not already in the worklist.
9419 Update uses of interesting_ssa_edges and varying_ssa_edges.
9420 (process_ssa_edge_worklist, ssa_prop_init, ssa_prop_fini,
9421 ssa_propagate): Likewise.
9422
9423 2004-09-28 Joseph S. Myers <jsm@polyomino.org.uk>
9424
9425 PR c/16409
9426 * c-decl.c (start_decl): Check for initializing incomplete array
9427 of VLAs.
9428 (build_compound_literal): Check for TYPE being error_mark_node.
9429 * c-parse.in (primary): Check for VLA compound literals.
9430
9431 2004-09-28 Diego Novillo <dnovillo@redhat.com>
9432
9433 * tree-ssa-live.c (calculate_live_on_entry): Fix warnings
9434 with --disable-checking.
9435
9436 2004-09-28 Devang Patel <dpatel@apple.com>
9437
9438 * tree-pretty-print.c (dump_generic_node): Print vector types.
9439
9440 2004-09-28 Nick Clifton <nickc@redhat.com>
9441
9442 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Replace with an
9443 invocation of the function sh_init_cumulative_args.
9444 (INIT_CUMULATIVE_LIBCALL_ARGS): Likewise.
9445 (INIT_CUMULATIVE_INCOMING_ARGS): Delete.
9446 * config/sh/sh-protos.h: Prototype sh_init_cumulative_args.
9447 * config/sh/sh.c (sh_init_cumulative_args): New function based
9448 on the contents of the old INIT_CUMULATIVE_ARGS macro but with a
9449 heuristic added to determine the setting of force_mem when a
9450 library function is being called.
9451
9452 2004-09-28 Diego Novillo <dnovillo@redhat.com>
9453
9454 * tree-ssa-loop-im.c (single_reachable_address) <PHI_NODE>:
9455 Skip constant arguments.
9456
9457 2004-09-28 Diego Novillo <dnovillo@redhat.com>
9458
9459 * tree-ssa-alias.c (create_name_tags): If PTR points to a
9460 volatile type, mark the tag volatile.
9461 (get_tmt_for): If TAG_TYPE is a volatile type, mark the tag
9462 volatile.
9463
9464 2004-09-28 Andrew Pinski <pinskia@physics.uc.edu>
9465
9466 * tree.def (vec_cond_expr): Fix. Change 'e'
9467 to tcc_expression.
9468
9469 2004-09-28 Kazu Hirata <kazu@cs.umass.edu>
9470
9471 * basic-block.h: Fix a comment typo.
9472
9473 2004-09-28 Kazu Hirata <kazu@cs.umass.edu>
9474
9475 * optabs.c, optabs.h: Fix comment typos.
9476
9477 2004-09-28 Eric Botcazou <ebotcazou@act-europe.fr>
9478
9479 * config/sparc/sparc.md (call_address_struct_value_sp32):
9480 Properly mask the immediate field of the 'unimp' instruction.
9481 (call_symbolic_struct_value_sp32): Likewise.
9482
9483 2004-09-28 Ben Elliston <bje@au.ibm.com>
9484 Steven Bosscher <stevenb@suse.de>
9485 Andrew Pinski <pinskia@physics.uc.edu>
9486
9487 Merge from edge-vector-branch:
9488 * basic-block.h: Include vec.h, errors.h. Instantiate a VEC(edge).
9489 (struct edge_def): Remove pred_next, succ_next members.
9490 (struct basic_block_def): Remove pred, succ members. Add preds
9491 and succs members of type VEC(edge).
9492 (FALLTHRU_EDGE): Redefine using EDGE_SUCC.
9493 (BRANCH_EDGE): Likewise.
9494 (EDGE_CRITICAL_P): Redefine using EDGE_COUNT.
9495 (EDGE_COUNT, EDGE_I, EDGE_PRED, EDGE_SUCC): New.
9496 (edge_iterator): New.
9497 (ei_start, ei_last, ei_end_p, ei_one_before_end_p): New.
9498 (ei_next, ei_prev, ei_edge, ei_safe_edge): Likewise.
9499 (FOR_EACH_EDGE): New.
9500 * bb-reorder.c (find_traces): Use FOR_EACH_EDGE and EDGE_* macros
9501 where applicable.
9502 (rotate_loop): Likewise.
9503 (find_traces_1_route): Likewise.
9504 (bb_to_key): Likewise.
9505 (connect_traces): Likewise.
9506 (copy_bb_p): Likewise.
9507 (find_rarely_executed_basic_blocks_and_crossing_edges): Likewise.
9508 (add_labels_and_missing_jumps): Likewise.
9509 (fix_up_fall_thru_edges): Likewise.
9510 (find_jump_block): Likewise.
9511 (fix_crossing_conditional_branches): Likewise.
9512 (fix_crossing_unconditional_branches): Likewise.
9513 (add_reg_crossing_jump_notes): Likewise.
9514 * bt-load.c (augment_live_range): Likewise.
9515 * cfg.c (clear_edges): Likewise.
9516 (unchecked_make_edge): Likewise.
9517 (cached_make_edge): Likewise.
9518 (make_single_succ_edge): Likewise.
9519 (remove_edge): Likewise.
9520 (redirect_edge_succ_nodup): Likewise.
9521 (check_bb_profile): Likewise.
9522 (dump_flow_info): Likewise.
9523 (alloc_aux_for_edges): Likewise.
9524 (clear_aux_for_edges): Likewise.
9525 (dump_cfg_bb_info): Likewise.
9526 * cfganal.c (forwarder_block_p): Likewise.
9527 (can_fallthru): Likewise.
9528 (could_fall_through): Likewise.
9529 (mark_dfs_back_edges): Likewise.
9530 (set_edge_can_fallthru_flag): Likewise.
9531 (find_unreachable_blocks): Likewise.
9532 (create_edge_list): Likewise.
9533 (verify_edge_list): Likewise.
9534 (add_noreturn_fake_exit_edges): Likewise.
9535 (connect_infinite_loops_to_exit): Likewise.
9536 (flow_reverse_top_sort_order_compute): Likewise.
9537 (flow_depth_first_order_compute): Likewise.
9538 (flow_preorder_transversal_compute): Likewise.
9539 (flow_dfs_compute_reverse_execute): Likewise.
9540 (dfs_enumerate_from): Likewise.
9541 (compute_dominance_frontiers_1): Likewise.
9542 * cfgbuild.c (make_edges): Likewise.
9543 (compute_outgoing_frequencies): Likewise.
9544 (find_many_sub_basic_blocks): Likewise.
9545 (find_sub_basic_blocks): Likewise.
9546 * cfgcleanup.c (try_simplify_condjump): Likewise.
9547 (thread_jump): Likewise.
9548 (try_forward_edges): Likewise.
9549 (merge_blocks_move): Likewise.
9550 (outgoing_edges_match): Likewise.
9551 (try_crossjump_to_edge): Likewise.
9552 (try_crossjump_bb): Likewise.
9553 (try_optimize_cfg): Likewise.
9554 (merge_seq_blocks): Likewise.
9555 * cfgexpand.c (expand_gimple_tailcall): Likewise.
9556 (expand_gimple_basic_block): Likewise.
9557 (construct_init_block): Likewise.
9558 (construct_exit_block): Likewise.
9559 * cfghooks.c (verify_flow_info): Likewise.
9560 (dump_bb): Likewise.
9561 (delete_basic_block): Likewise.
9562 (split_edge): Likewise.
9563 (merge_blocks): Likewise.
9564 (make_forwarder_block): Likewise.
9565 (tidy_fallthru_edges): Likewise.
9566 (can_duplicate_block_p): Likewise.
9567 (duplicate_block): Likewise.
9568 * cfglayout.c (fixup_reorder_chain): Likewise.
9569 (fixup_fallthru_exit_predecessor): Likewise.
9570 (can_copy_bbs_p): Likewise.
9571 (copy_bbs): Likewise.
9572 * cfgloop.c (flow_loops_cfg_dump): Likewise.
9573 (flow_loop_entry_edges_find): Likewise.
9574 (flow_loop_exit_edges_find): Likewise.
9575 (flow_loop_nodes_find): Likewise.
9576 (mark_single_exit_loops): Likewise.
9577 (flow_loop_pre_header_scan): Likewise.
9578 (flow_loop_pre_header_find): Likewise.
9579 (update_latch_info): Likewise.
9580 (canonicalize_loop_headers): Likewise.
9581 (flow_loops_find): Likewise.
9582 (get_loop_body_in_bfs_order): Likewise.
9583 (get_loop_exit_edges): Likewise.
9584 (num_loop_branches): Likewise.
9585 (verify_loop_structure): Likewise.
9586 (loop_latch_edge): Likewise.
9587 (loop_preheader_edge): Likewise.
9588 * cfgloopanal.c (mark_irreducible_loops): Likewise.
9589 (expected_loop_iterations): Likewise.
9590 * cfgloopmanip.c (remove_bbs): Likewise.
9591 (fix_bb_placement): Likewise.
9592 (fix_irreducible_loops): Likewise.
9593 (remove_path): Likewise.
9594 (scale_bbs_frequencies): Likewise.
9595 (loopify): Likewise.
9596 (unloop): Likewise.
9597 (fix_loop_placement): Likewise.
9598 (loop_delete_branch_edge): Likewise.
9599 (duplicate_loop_to_header_edge): Likewise.
9600 (mfb_keep_just): Likewise.
9601 (create_preheader): Likewise.
9602 (force_single_succ_latches): Likewise.
9603 (loop_split_edge_with): Likewise.
9604 (create_loop_notes): Likewise.
9605 * cfgrtl.c (rtl_split_block): Likewise.
9606 (rtl_merge_blocks): Likewise.
9607 (rtl_can_merge_blocks): Likewise.
9608 (try_redirect_by_replacing_jump): Likewise.
9609 (force_nonfallthru_and_redirect): Likewise.
9610 (rtl_tidy_fallthru_edge): Likewise.
9611 (commit_one_edge_insertion): Likewise.
9612 (commit_edge_insertions): Likewise.
9613 (commit_edge_insertions_watch_calls): Likewise.
9614 (rtl_verify_flow_info_1): Likewise.
9615 (rtl_verify_flow_info): Likewise.
9616 (purge_dead_edges): Likewise.
9617 (cfg_layout_redirect_edge_and_branch): Likewise.
9618 (cfg_layout_can_merge_blocks_p): Likewise.
9619 (rtl_flow_call_edges_add): Likewise.
9620 * cse.c (cse_cc_succs): Likewise.
9621 * df.c (hybrid_search): Likewise.
9622 * dominance.c (calc_dfs_tree_nonrec): Likewise.
9623 (calc_dfs_tree): Likewise.
9624 (calc_idoms): Likewise.
9625 (recount_dominator): Likewise.
9626 * domwalk.c (walk_dominator_tree): Likewise.
9627 * except.c (emit_to_new_bb_before): Likewise.
9628 (connect_post_landing_pads): Likewise.
9629 (sjlj_emit_function_enter): Likewise.
9630 (sjlj_emit_function_exit): Likewise.
9631 (finish_eh_generation): Likewise.
9632 * final.c (compute_alignments): Likewise.
9633 * flow.c (calculate_global_regs_live): Likewise.
9634 (initialize_uninitialized_subregs): Likewise.
9635 (init_propagate_block_info): Likewise.
9636 * function.c (thread_prologue_and_epilogue_insns): Likewise.
9637 * gcse.c (find_implicit_sets): Likewise.
9638 (bypass_block): Likewise.
9639 (bypass_conditional_jumps): Likewise.
9640 (compute_pre_data): Likewise.
9641 (insert_insn_end_bb): Likewise.
9642 (insert_store): Likewise.
9643 (remove_reachable_equiv_notes): Likewise.
9644 * global.c (global_conflicts): Likewise.
9645 (calculate_reg_pav): Likewise.
9646 * graph.c (print_rtl_graph_with_bb): Likewise.
9647 * ifcvt.c (mark_loop_exit_edges): Likewise.
9648 (merge_if_block): Likewise.
9649 (find_if_header): Likewise.
9650 (block_jumps_and_fallthru_p): Likewise.
9651 (find_if_block): Likewise.
9652 (find_cond_trap): Likewise.
9653 (block_has_only_trap): Likewise.
9654 (find_if_case1): Likewise.
9655 (find_if_case_2): Likewise.
9656 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
9657 (perfect_nestify): Likewise.
9658 * lcm.c (compute_antinout_edge): Likewise.
9659 (compute_laterin): Likewise.
9660 (compute_available): Likewise.
9661 (compute_nearerout): Likewise.
9662 * loop-doloop.c (doloop_modify): Likewise.
9663 * loop-init.c (loop_optimizer_init): Likewise.
9664 * loop-invariant.c (find_exits): Likewise.
9665 * loop-iv.c (simplify_using_initial_values): Likewise.
9666 (check_simple_exit): Likewise.
9667 (find_simple_exit): Likewise.
9668 * loop-unroll.c (peel_loop_completely): Likewise.
9669 (unroll_loop_constant_iterations): Likewise.
9670 (unroll_loop_runtime_iterations): Likewise.
9671 * loop-unswitch.c (may_unswitch_on): Likewise.
9672 (unswitch_loop): Likewise.
9673 * modulo-sched.c (generate_prolog_epilog): Likewise.
9674 (sms_schedule): Likewise.
9675 * postreload-gcse.c (eliminate_partially_redundant_load):
9676 Likewise.
9677 * predict.c (can_predict_insn_p): Likewise.
9678 (set_even_probabilities): Likewise.
9679 (combine_predictions_for_bb): Likewise.
9680 (predict_loops): Likewise.
9681 (estimate_probability): Likewise.
9682 (tree_predict_by_opcode): Likewise.
9683 (tree_estimate_probability): Likewise.
9684 (last_basic_block_p): Likewise.
9685 (propagate_freq): Likewise.
9686 (estimate_loops_at_level): Likewise.
9687 (estimate_bb_frequencies): Likewise.
9688 * profile.c (instrument_edges): Likewise.
9689 (get_exec_counts): Likewise.
9690 (compute_branch_probabilities): Likewise.
9691 (branch_prob): Likewise.
9692 * ra-build.c (live_in): Likewise.
9693 * ra-rewrite.c (rewrite_program2): Likewise.
9694 * ra.c (reg_alloc): Likewise.
9695 * reg-stack.c (reg_to_stack): Likewise.
9696 (convert_regs_entry): Likewise.
9697 (compensate_edge): Likewise.
9698 (convert_regs_1): Likewise,
9699 (convert_regs_2): Likewise.
9700 (convert_regs): Likewise.
9701 * regrename.c (copyprop_hardreg_forward): Likewise.
9702 * reload1.c (fixup_abnormal_edges): Likewise.
9703 * sbitmap.c (sbitmap_intersection_of_succs): Likewise.
9704 (sbitmap_insersection_of_preds): Likewise.
9705 (sbitmap_union_of_succs): Likewise.
9706 (sbitmap_union_of_preds): Likewise.
9707 * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
9708 (fix_basic_block_boundaries): Likewise.
9709 (sched_ebbs): Likewise.
9710 * sched-rgn.c (build_control_flow): Likewise.
9711 (find_rgns): Likewise.
9712 * tracer.c (find_best_successor): Likewise.
9713 (find_best_predecessor): Likewise.
9714 (tail_duplicate): Likewise.
9715 * tree-cfg.c (make_edges): Likewise.
9716 (make_ctrl_stmt_edges): Likewise.
9717 (make_goto_expr_edges): Likewise.
9718 (tree_can_merge_blocks_p): Likewise.
9719 (tree_merge_blocks): Likewise.
9720 (cfg_remove_useless_stmts_bb): Likewise.
9721 (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
9722 (tree_block_forwards_to): Likewise.
9723 (cleanup_control_expr_graph): Likewise.
9724 (find_taken_edge): Likewise.
9725 (dump_cfg_stats): Likewise.
9726 (tree_cfg2vcg): Likewise.
9727 (disband_implicit_edges): Likewise.
9728 (tree_find_edge_insert_loc): Likewise.
9729 (bsi_commit_edge_inserts): Likewise.
9730 (tree_split_edge): Likewise.
9731 (tree_verify_flow_info): Likewise.
9732 (tree_make_forwarder_block): Likewise.
9733 (tree_forwarder_block_p): Likewise.
9734 (thread_jumps): Likewise.
9735 (tree_try_redirect_by_replacing_jump): Likewise.
9736 (tree_split_block): Likewise.
9737 (add_phi_args_after_copy_bb): Likewise.
9738 (rewrite_to_new_ssa_names_bb): Likewise.
9739 (dump_function_to_file): Likewise.
9740 (print_pred_bbs): Likewise.
9741 (print_loop): Likewise.
9742 (tree_flow_call_edges_add): Likewise.
9743 (split_critical_edges): Likewise.
9744 (execute_warn_function_return): Likewise.
9745 (extract_true_false_edges_from_block): Likewise.
9746 * tree-if-conv.c (tree_if_conversion): Likewise.
9747 (if_convertable_bb_p): Likewise.
9748 (find_phi_replacement_condition): Likewise.
9749 (combine_blocks): Likewise.
9750 * tree-into-ssa.c (compute_global_livein): Likewise.
9751 (ssa_mark_phi_uses): Likewise.
9752 (ssa_rewrite_initialize_block): Likewise.
9753 (rewrite_add_phi_arguments): Likewise.
9754 (ssa_rewrite_phi_arguments): Likewise.
9755 (insert_phi_nodes_for): Likewise.
9756 (rewrite_into_ssa): Likewise.
9757 (rewrite_ssa_into_ssa): Likewise.
9758 * tree-mudflap.c (mf_build_check_statement_for): Likewise.
9759 * tree-outof-ssa.c (coalesce_abnormal_edges): Likewise.
9760 (rewrite_trees): Likewise.
9761 * tree-pretty-print.c (dump_bb_header): Likewise.
9762 (dump_implicit_edges): Likewise.
9763 * tree-sra.c (insert_edge_copies): Likewise.
9764 (find_obviously_necessary_stmts): Likewise.
9765 (remove_data_stmt): Likewise.
9766 * tree-ssa-dom.c (thread_across_edge): Likewise.
9767 (dom_opt_finalize_block): Likewise.
9768 (single_incoming_edge_ignoring_loop_edges): Likewise.
9769 (record_equivalences_from_incoming_edges): Likewise.
9770 (cprop_into_successor_phis): Likewise.
9771 * tree-ssa-live.c (live_worklist): Likewise.
9772 (calculate_live_on_entry): Likewise.
9773 (calculate_live_on_exit): Likewise.
9774 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
9775 (copy_loop_headers): Likewise.
9776 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
9777 (fill_always_executed_in): Likewise.
9778 * tree-ssa-loop-ivcanon.c (create_canonical_iv): Likewise.
9779 * tree-ssa-loop-ivopts.c (find_interesting_uses): Likewise.
9780 (compute_phi_arg_on_exit): Likewise.
9781 * tree-ssa-loop-manip.c (add_exit_phis_edge): Likewise.
9782 (get_loops_exit): Likewise.
9783 (split_loop_exit_edge): Likewise.
9784 (ip_normal_pos): Likewise.
9785 * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
9786 Likewise.
9787 * tree-ssa-phiopt.c (candidate_bb_for_phi_optimization): Likewise.
9788 (replace_phi_with_stmt): Likewise.
9789 (value_replacement): Likewise.
9790 * tree-ssa-pre.c (compute_antic_aux): Likewise.
9791 (insert_aux): Likewise.
9792 (init_pre): Likewise.
9793 * tree-ssa-propagate.c (simulate_stmt): Likewise.
9794 (simulate_block): Likewise.
9795 (ssa_prop_init): Likewise.
9796 * tree-ssa-threadupdate.c (thread_block): Likewise.
9797 (create_block_for_threading): Likewise.
9798 (remove_last_stmt_and_useless_edges): Likewise.
9799 * tree-ssa.c (verify_phi_args): Likewise.
9800 (verify_ssa): Likewise.
9801 * tree_tailcall.c (independent_of_stmt_p): Likewise.
9802 (find_tail_calls): Likewise.
9803 (eliminate_tail_call): Likewise.
9804 (tree_optimize_tail_calls_1): Likewise.
9805 * tree-vectorizer.c (vect_transform_loop): Likewise.
9806 * var-tracking.c (prologue_stack_adjust): Likewise.
9807 (vt_stack_adjustments): Likewise.
9808 (vt_find_locations): Likewise.
9809 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
9810 * config/i386/i386.c (ix86_pad_returns): Likewise.
9811 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
9812 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
9813
9814 2004-09-28 Eric Botcazou <ebotcazou@libertysurf.fr>
9815
9816 PR target/16532
9817 * config/sparc/sparc.c (struct machine_function): New field
9818 'leaf_function_p' and 'prologue_data_valid_p'.
9819 (sparc_leaf_function_p, sparc_prologue_data_valid_p): New macro
9820 to conveniently access the above fields.
9821 (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Delete.
9822 (eligible_for_return_delay): Use 'sparc_leaf_function_p' instead
9823 of the generic flavor 'current_function_uses_only_leaf_regs'.
9824 (eligible_for_sibcall_delay): Likewise.
9825 (sparc_expand_prologue): Compute 'sparc_leaf_function_p' and set
9826 'sparc_prologue_data_valid_p'. Use 'sparc_leaf_function_p'.
9827 (sparc_asm_function_prologue): Add sanity check for the assumption
9828 made in 'sparc_expand_prologue'. Use 'sparc_leaf_function_p'.
9829 (sparc_can_use_return_insn_p): New function.
9830 (sparc_expand_epilogue): Use 'sparc_leaf_function_p'.
9831 (output_restore): Likewise.
9832 (output_sibcall): Likewise.
9833 (sparc_output_mi_thunk): Likewise.
9834 * config/sparc/sparc-protos.h (sparc_can_use_return_insn_p): Declare.
9835 * config/sparc/sparc.md (return): New expander.
9836
9837 * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Minor tweak.
9838
9839 2004-09-27 Mark Mitchell <mark@codesourcery.com>
9840
9841 PR c++/17642
9842 * stor-layout.c (layout_decl): Use fold_convert, not convert.
9843 (bit_from_pos): Likewise.
9844 (byte_from_pos): Likewise.
9845 (pos_from_bit): Likewise.
9846 (normalize_offset): Likewise.
9847 (place_field): Likewise.
9848 (finalize_type_size): Likewise.
9849 (layout_type): Likewise.
9850 * tree.c (build_index_type): Likewise.
9851
9852 2004-09-27 Devang Patel <dpatel@apple.com>
9853
9854 * expr.c (expand_expr_real_1): Handle VEC_COND_EXPR.
9855 * genopinit.c (optabs): New entry for vcond_gen_code and
9856 vcondu_gen_code.
9857 * optabs.c (vcond_gen_code, vcondu_gen_code): New optabs.
9858 (get_rtx_code): New function.
9859 (vector_compare_rtx): New function.
9860 (init_optabs): Initialize vcond_gen_code and vcondu_gen_code.
9861 (expand_vec_cond_expr_p): New function.
9862 (expand_vec_cond_expr): New function.
9863 (get_vcond_icode): New function.
9864 * optabs.h (expand_vec_cond_expr, expand_vec_cond_expr_p): New externs.
9865 (vcond_gen_code, vcondu_gen_code): Same.
9866
9867 2004-09-27 Kelley Cook <kcook@gcc.gnu.org>
9868
9869 * Makefile.in (STAGESTUFF): Split into ...
9870 (STAGECOPYSTUFF, STAGEMOVESTUFF): ... these.
9871 (mostlyclean): Update.
9872 (stage1-start, stage2-start, stage3-start, stage4-start,
9873 stageprofile-start, stagefeedback-start): Copy the STAGECOPYSTUFF.
9874 Move the STAGEMOVESTUFF.
9875
9876 2004-09-27 Eric Botcazou <ebotcazou@libertysurf.fr>
9877
9878 * system.h (getpagesize): Return 'int' instead of 'long'.
9879
9880 2004-09-27 Michael Matz <matz@suse.de>
9881
9882 PR bootstrap/17698
9883 PR bootstrap/17702
9884 * bitmap.h (bmp_iter_single_init, bmp_iter_and_not_init,
9885 bmp_iter_and_init): Shift by bit_in_word.
9886
9887 2004-09-27 Kelley Cook <kcook@gcc.gnu.org>
9888
9889 * aclocal.m4: Quote m4_includes. Include ../config/gcc-lib-path.m4.
9890 * configure.ac: Don't sinclude it here.
9891 * configure: Regenerate.
9892
9893 2004-09-27 Dorit Naishlos <dorit@il.ibm.com>
9894
9895 * config/rs6000/rs6000.c (rs6000_legitimate_address, print_operand):
9896 Handle AND pattern
9897
9898 2004-09-27 Joseph S. Myers <jsm@polyomino.org.uk>
9899
9900 PR c/13804
9901 * c-typeck.c (build_component_ref): Name type involved in
9902 diagnostic for structure or union without a member of the given
9903 name.
9904
9905 2004-09-27 DJ Delorie <dj@redhat.com>
9906
9907 * config/stormy16/stormy16.c (xstormy16_asm_output_aligned_common):
9908 .comm alignment is bytes, not bits.
9909
9910 2004-09-27 Devang Patel <dpatel@apple.com>
9911
9912 * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
9913 (print_call_name): Do not print VEC_COND_EXPR.
9914
9915 2004-09-27 Devang Patel <dpatel@apple.com>
9916
9917 * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
9918
9919 2004-09-27 Jan Hubicka <jh@suse.cz>
9920
9921 * i386.c (athlon_cost, k8_cost): Set BRANCH_COST to 5.
9922
9923 2004-09-27 Kazu Hirata <kazu@cs.umass.edu>
9924
9925 * bitmap.h: Fix a comment typo.
9926
9927 2004-09-27 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
9928
9929 * libgcc2.c (getpagesize): Change type of return value to int.
9930
9931 2004-09-26 Matt Austern <austern@apple.com>
9932
9933 * ggc-page.c (GGC_QUIRE_SIZE): Bump up from 16 to 256 if we're
9934 using mmap.
9935
9936 2004-09-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9937
9938 * bitmap.h (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_COMPL_IN_BITMAP,
9939 EXECUTE_IF_AND_IN_BITMAP): Changed to iterator style.
9940 (bitmap_iterator): New type.
9941 (bmp_iter_common_next_1, bmp_iter_single_next_1, bmp_iter_single_init,
9942 bmp_iter_end_p, bmp_iter_single_next, bmp_iter_and_not_next_1,
9943 bmp_iter_and_not_init, bmp_iter_and_not_next, bmp_iter_and_next_1,
9944 bmp_iter_and_init, bmp_iter_and_next): New functions.
9945 * basic-block.h (EXECUTE_IF_SET_IN_REG_SET,
9946 EXECUTE_IF_AND_COMPL_IN_REG_SET, EXECUTE_IF_AND_IN_REG_SET): Changed to
9947 use iterator-style EXECUTE_IF_IN_BITMAP macros.
9948 * bitmap.c (bitmap_print): Ditto.
9949 * bt-load.c (clear_btr_from_live_range, add_btr_to_live_range,
9950 btr_def_live_range): Ditto.
9951 * cfganal.c (compute_dominance_frontiers_1) Ditto.
9952 * cgraphunit.c (convert_UIDs_in_bitmap, cgraph_characterize_statics):
9953 Ditto.
9954 * ddg.c (build_inter_loop_deps): Ditto.
9955 * df.c (FOR_EACH_BB_IN_BITMAP, df_bb_reg_info_compute, df_refs_update):
9956 Ditto.
9957 * except.c (remove_eh_handler): Ditto.
9958 * flow.c (reg_set_to_hard_reg_set): Ditto.
9959 * gcse.c (clear_modify_mem_tables): Ditto.
9960 * global.c (build_insn_chain): Ditto.
9961 * ifcvt.c (dead_or_predicable): Ditto.
9962 * loop-invariant.c (get_inv_cost, set_move_mark, move_invariant_reg):
9963 Ditto.
9964 * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs): Ditto.
9965 * ra-rewrite.c (reloads_to_loads, rewrite_program2,
9966 detect_web_parts_to_rebuild, delete_useless_defs, actual_spill): Ditto.
9967 * tree-cfg.c (allocate_ssa_names, tree_duplicate_sese_region,
9968 tree_purge_all_dead_eh_edges): Ditto.
9969 * tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
9970 insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags,
9971 rewrite_ssa_into_ssa): Ditto.
9972 * tree-outof-ssa.c (find_replaceable_exprs): Ditto.
9973 * tree-sra.c (scan_function, decide_instantiations, scalarize_parms):
9974 Ditto.
9975 * tree-ssa-alias.c (init_alias_info, compute_points_to_and_addr_escape,
9976 compute_flow_sensitive_aliasing, maybe_create_global_var,
9977 dump_points_to_info_for): Ditto.
9978 * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Ditto.
9979 * tree-ssa-dse.c (dse_finalize_block): Ditto.
9980 * tree-ssa-live.c (live_worklist, calculate_live_on_entry,
9981 calculate_live_on_exit, build_tree_conflict_graph, dump_live_info):
9982 Ditto.
9983 * tree-ssa-loop-ivopts.c (find_induction_variables,
9984 find_interesting_uses, add_old_ivs_candidates, alloc_use_cost_map,
9985 determine_use_iv_costs, determine_set_costs, find_best_candidate,
9986 set_cost_up_to, create_new_ivs, remove_unused_ivs, free_loop_data):
9987 Ditto.
9988 * tree-ssa-loop-manip.c (add_exit_phis_var, add_exit_phis): Ditto.
9989 * tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
9990 add_call_read_ops): Ditto.
9991 * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Ditto.
9992
9993 2004-09-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9994
9995 * pa.c (print_operand): Use non-trapping completers for UNLE, UNLT,
9996 UNGE, UNGT, UNEQ, UNORDERED and ORDERED comparisons.
9997
9998 2004-09-26 Ulrich Weigand <uweigand@de.ibm.com>
9999
10000 * builtins.c (expand_builtin_memcmp): Adjust MEM_SIZE to
10001 reflect size of memory regions being compared.
10002
10003 2004-09-26 Ulrich Weigand <uweigand@de.ibm.com>
10004
10005 * builtins.c (get_memory_rtx): Set mem attributes for non-ADDR_EXPR
10006 expressions. Always clear MEM_SIZE and alias set.
10007
10008 2004-09-26 Roger Sayle <roger@eyesopen.com>
10009 Giovanni Bajo <giovannibajo@gcc.gnu.org>
10010
10011 PR middle-end/17112
10012 * stor-layout.c (compute_record_mode): For records with a single
10013 field, only use the field's mode if its size matches what we'd
10014 have choosen for the record ourselves. This forces the use of
10015 BLKmode for packed records that don't completely fill a mode.
10016
10017 2004-09-26 Roger Sayle <roger@eyesopen.com>
10018
10019 PR middle-end/17151
10020 * combine.c (force_to_mode): Remove dubious early return test that
10021 inhibits further optimization.
10022
10023 2004-09-26 Kazu Hirata <kazu@cs.umass.edu>
10024
10025 * profile.c: Fix a comment typo.
10026
10027 2004-09-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10028
10029 PR bootstrap/17591
10030 * tree-ssa-loop-im.c (for_each_index): Call callback for component_refs
10031 with varying offset.
10032 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): New function.
10033 (idx_contains_abnormal_ssa_name_p): Scan step and lower bound for
10034 ARRAY_REFS.
10035 (expr_invariant_in_loop_p): New function.
10036 (idx_find_step): Handle step and lower bound for ARRAY_REFs. Handle
10037 component_ref_field_offset for COMPONENT_REFs. Do not allow
10038 ALIGN_INDIRECT_REFs and MISALIGNED_INDIRECT_REFs.
10039 (add_address_candidates): Do not handle ALIGN_INDIRECT_REFs and
10040 MISALIGNED_INDIRECT_REFs.
10041 (idx_remove_ssa_names): Handle step and lower bound for ARRAY_REFs.
10042 (rewrite_address_base): Do not handle ALIGN_INDIRECT_REFs and
10043 MISALIGNED_INDIRECT_REFs.
10044
10045 2004-09-26 Joseph S. Myers <jsm@polyomino.org.uk>
10046
10047 PR c/11459
10048 * gcc.c (cpp_options, cc1_options): Preserve relative order of
10049 -std and -ansi options.
10050
10051 2004-09-26 Jan Hubicka <jh@suse.cz>
10052
10053 * dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die
10054 for nested functions whose proper parent has not been output.
10055
10056 * profile.c (compute_branch_probabilities): Use REG_BR_PROB notes
10057 when re-constructing profile previously invalidated by loop.
10058
10059 2004-09-25 Dale Johannesen <dalej@apple.com>
10060
10061 * tree-gimple.c: Move GIMPLE definition...
10062 * doc/tree-ssa.texi: here.
10063
10064 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
10065
10066 * tree-vectorizer.c: Fix a comment typo.
10067
10068 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
10069
10070 * c-typeck.c, defaults.h, dwarf.h, dwarf2out.c, fold-const.c,
10071 gthr-dce.h, gthr-posix.h, gthr-solaris.h, gthr-win32.h,
10072 lambda-code.c, lambda-mat.c, libgcc2.c, stmt.c,
10073 tree-ssa-pre.c, tree-vn.c, tree.h: Fix comment formatting.
10074
10075 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
10076
10077 * tree-ssa-loop-unswitch.c: Fix a comment typo.
10078
10079 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
10080
10081 * doc/passes.texi: Fix a typo.
10082
10083 2004-09-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10084
10085 * tree-optimize.c (init_tree_optimization_passes): Add
10086 pass_record_bounds.
10087 * tree-pass.h (pass_record_bounds): Declare.
10088 * tree-ssa-loop.c (tree_ssa_loop_bounds, pass_record_bounds):
10089 New pass.
10090
10091 2004-09-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10092
10093 PR tree-optimization/17474
10094 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Determine
10095 offset of the field correctly when DECL_FIELD_BIT_OFFSET != 0.
10096
10097 2004-09-25 Jan Hubicka <jh@suse.cz>
10098
10099 * predict.c (counts_to_freqs): Make global.
10100 * predict.h (counts_to_freqa): Declare.
10101 * profile.c (compute_branch_probabilities): Compute frequencies
10102 * tree-profile.c (do_tree_profiling): Refine conditional on when
10103 tree profiling pass is needed.
10104
10105 * passes.c (rest_of_handle_cfg): Disable const/pure function
10106 detection when doing tree based profiling.
10107
10108 * tree-inline.c (expand_call_inline): Fix incorrectly reversed
10109 conditional.
10110
10111 2004-09-25 Richard Sandiford <rsandifo@redhat.com>
10112
10113 * config/mips/mips.h (struct mips_args): Clarify comments.
10114 * config/mips/mips.c (struct mips_arg_info): Likewise.
10115 (mips_arg_info): Don't allow fpr_p to affect the register or
10116 stack alignment. Remove o64 silliness.
10117 (function_arg): Deal with the o32 float,float case specially.
10118
10119 2004-09-25 Richard Sandiford <rsandifo@redhat.com>
10120
10121 * config/mips/mips.md (loadx, storex): Define for V2SF.
10122
10123 2004-09-25 Ulrich Weigand <uweigand@de.ibm.com>
10124
10125 * config/s390/s390-protos.h (s390_back_chain_rtx): Add prototype.
10126 * config/s390/s390.c (s390_back_chain_rtx): New function.
10127 * config/s390/s390.md ("allocate_stack"): Use s390_back_chain_rtx.
10128 Call anti_adjust_stack.
10129 ("restore_stack_block"): Use s390_back_chain_rtx. Enable pattern
10130 only if compiling with back chain.
10131 ("save_stack_nonlocal", "restore_stack_nonlocal"): Save/restore
10132 back chain only if back chain enabled. Use s390_back_chain_rtx.
10133
10134 2004-09-25 Joseph S. Myers <jsm@polyomino.org.uk>
10135
10136 * doc/trouble.texi: Remove obsolete information. Update
10137 information on how to regenerate fixincluded headers.
10138
10139 2004-09-25 Joseph S. Myers <jsm@polyomino.org.uk>
10140
10141 PR c/12951
10142 * doc/invoke.texi: Document that
10143 -Wno-error-implicit-function-declaration is not accepted.
10144
10145 2004-09-24 Richard Henderson <rth@redhat.com>
10146
10147 * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): New.
10148 * config/alpha/alpha.c (alpha_vector_mode_supported_p): Don't depend
10149 on TARGET_MAX.
10150 (alpha_expand_mov): Allow unaligned vectors.
10151 (alpha_expand_unaligned_store): Use CONST0_RTX.
10152 (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
10153
10154 2004-09-24 Jeff Law <law@redhat.com>
10155
10156 * tree-ssa-dom.c (dom_opt_finalize_block): Fix violation of strict
10157 aliasing rules.
10158 (simplify_cond_and_lookup_avail_expr): Likewise.
10159
10160 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
10161
10162 PR c/12802
10163 * doc/extend.texi (Unnamed Fields): Remove "." from end of long
10164 title. Document interaction with -fms-extensions.
10165 * doc/invoke.texi (-fms-extensions): Refer to Unnamed Fields
10166 section.
10167
10168 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
10169
10170 PR c/12713
10171 * doc/extend.texi: Document interaction of attribute noreturn and
10172 longjmp.
10173
10174 2004-09-24 Richard Henderson <rth@redhat.com>
10175
10176 PR rtl-opt/17503
10177 * regclass.c (subregs_of_mode): Turn into an htab. Make static.
10178 (som_hash, som_eq): New.
10179 (init_subregs_of_mode, record_subregs_of_mode): New.
10180 (cannot_change_mode_set_regs): Rewrite for htab implementation.
10181 (invalid_mode_change_p): Likewise.
10182 * combine.c (gen_lowpart_for_combine): Use record_subregs_of_mode.
10183 * flow.c (mark_used_regs): Likewise.
10184 (life_analysis): Use init_subregs_of_mode.
10185 * regs.h (subregs_of_mode): Remove.
10186 * rtl.h (init_subregs_of_mode, record_subregs_of_mode): Declare.
10187
10188 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
10189
10190 * tree-ssa-phiopt.c (conditional_replacement): Use the correct
10191 type with the copy of the conditional.
10192
10193 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
10194
10195 PR tree-opt/16954
10196 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10197 Prevent renaming if the aliasing sets of the type which the
10198 pointer points to are different.
10199
10200 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
10201
10202 PR c/17188
10203 * c-decl.c (diagnose_mismatched_decls): Check for duplicate
10204 declarations of enumerators.
10205 (start_struct): Check TYPE_SIZE rather than TYPE_FIELDS to check
10206 for redefinition. Check for nested redefinition.
10207 (finish_struct): Don't check for nested redefinition.
10208 (start_enum): Check for nested redefinition.
10209
10210 2004-09-24 Devang Patel <dpatel@apple.com>
10211
10212 * tree-if-conv.c (tree_if_convert_cond_expr0: Create temp. variable
10213 only when necesssary.
10214 (combine_blocks): Combine loop header and exit block.
10215
10216 2004-09-24 Paolo Bonzini <bonzini@gnu.org>
10217
10218 * hooks.c (hook_tree_tree_bool_null): New.
10219 * hooks.h (hook_tree_tree_bool_null): Declare it.
10220 * target-def.c (TARGET_FOLD_BUILTIN): Point to it.
10221 * targhooks.c (default_fold_builtin): Remove.
10222 * targhooks.h (default_fold_builtin): Remove.
10223
10224 2004-09-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10225
10226 PR rtl-optimization/17625
10227 * loop-doloop.c (doloop_modify): Unshare rtl before emitting it.
10228
10229 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
10230
10231 PR tree-opt/17624
10232 * tree-ssa-forwprop.c (record_single_argument_cond_exprs):
10233 Reject if any of the operands occur in an abnormal PHI.
10234
10235 2004-09-24 Andreas Schwab <schwab@suse.de>
10236
10237 * tree-ssa-dom.c (record_range): Fix violation of strict aliasing
10238 rules.
10239
10240 2004-09-24 Eric Botcazou <ebotcazou@libertysurf.fr>
10241
10242 * config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h
10243 if the GNU assembler is used.
10244 (sparc-*-solaris2*): Likewise.
10245 * dbxout.c (NO_DBX_BNSYM_ENSYM): Default to zero.
10246 (dbxout_function_end): Protect N_ENSYM with it.
10247 (dbxout_begin_prologue): Protect N_BNSYM with it.
10248 * doc/tm.texi (NO_DBX_BNSYM_ENSYM): Document it.
10249 * config/sparc/sol2.h (NO_DBX_BNSYM_ENSYM): Define to 1.
10250 * config/sparc/sol2-gas.h: New file.
10251
10252 2004-09-23 H.J. Lu <hongjiu.lu@intel.com>
10253
10254 PR bootstrap/17369
10255 * Makefile.in (@set_gcc_lib_path@): Added.
10256
10257 * configure.ac: Include ../config/gcc-lib-path.m4. Use
10258 TL_AC_GNU_MAKE_GCC_LIB_PATH.
10259 * configure: Regenerated.
10260
10261 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
10262
10263 PR c/6980
10264 * c-typeck.c (build_c_cast): Improve wording of
10265 -Wbad-function-cast diagnostic.
10266
10267 2004-09-23 Hans-Peter Nilsson <hp@axis.com>
10268
10269 PR target/17626
10270 * config/cris/cris.md (moverside, movemside): Rename variable
10271 "reg" to "otherop". To generate canonical RTX, check that otherop
10272 isn't constant instead of checking that operand 1 is a register.
10273
10274 2004-09-23 Jakub Jelinek <jakub@redhat.com>
10275
10276 * tree-ssa-propagate.c (set_rhs): Fail if EXPR is COMPOUND_EXPR.
10277
10278 2004-09-23 Diego Novillo <dnovillo@redhat.com>
10279 Jakub Jelinek <jakub@redhat.com>
10280
10281 * tree-flow.h (find_new_referenced_vars): Add prototype.
10282 * tree-sra.c (find_new_referenced_vars_1, find_new_referenced_vars):
10283 Move to...
10284 * tree-dfa.c (find_new_referenced_vars_1, find_new_referenced_vars):
10285 ... here.
10286 (mark_new_vars_to_rename): Walk through all operands.
10287 * tree-ssa-ccp.c (convert_to_gimple_builtin): New function.
10288 (execute_fold_all_builtins): Use it.
10289 (pass_fold_builtins): Add TODO_rename_vars to todo_flags_finish.
10290
10291 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
10292
10293 * gthr-tpf.h: New file.
10294 * config.gcc (s390x-ibm-tpf*): Add thread_file='tpf'.
10295 * gthr.h: Use gthr-tpf.h on TPF OS.
10296
10297 2004-09-23 Jeff Law <law@redhat.com>
10298
10299 * tree-ssa-ccp.c (get_default_value): Use SSA_NAME_VALUE rather
10300 than SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
10301 (substitute_and_fold): Likewise.
10302 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Remove everything
10303 except invariants from SSA_NAME_VALUE.
10304 (thread_across_edge): Use SSA_NAME_VALUE rather than SSA_NAME_EQUIV
10305 and SET_SSA_NAME_EQUIV.
10306 (restore_vars_to_original_value, record_const_or_copy): Likewise.
10307 (record_equivalences_from_phis, record_const_or_copy_1): Likewise.
10308 (record_equality, cprop_into_successor_phis): Likewise.
10309 (record_equivalences_from_stmt, cprop_operand): Likewise.
10310 (lookup_avail_expr): Likewise.
10311 * tree-ssa-pre.c (fini_pre): Remove everything except invariants
10312 from SSA_NAME_VALUE.
10313 * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): Kill.
10314 (struct tree_ssa_name): Kill EQUIV field. Remove GGC skip
10315 annotation from the VALUE_HANDLE field.
10316
10317 2004-09-21 Fariborz Jahanian <fjahanian@apple.com>
10318
10319 PR c++/13989
10320 PR c++/9844
10321 * tree.c (reconstruct_complex_type): Remove extra "this".
10322 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
10323 Add V4SFmode to case statement.
10324
10325 2004-09-23 Joseph S. Myers <jsm@polyomino.org.uk>
10326
10327 PR c/16833
10328 * doc/extend.texi, doc/invoke.texi: Document interaction of
10329 -fno-builtin with format checks. Note that built-in functions
10330 have effects beyond generating code that avoids calls to those
10331 functions.
10332
10333 2004-09-23 Frank Ch. Eigler <fche@redhat.com>
10334
10335 PR tree-optimization/17533
10336 * dominance.c (verify_dominators): Tolerate even more incorrect
10337 dominance data during error message printing.
10338 * tree-mudflap.c (mf_build_check_statement_for): Build basic blocks
10339 and edges more correctly.
10340
10341 2004-09-23 Dorit Naishlos <dorit@il.ibm.com>
10342
10343 * tree.def (ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF):
10344 New tree-codes.
10345 * tree.h (REF_ORIGINAL): Consider ALIGN_INDIRECT_REF and
10346 MISALIGNED_INDIRECT_REF.
10347 * alias.c (get_alias_set, nonoverlapping_memrefs_p): Likewise.
10348 * emit-rtl.c (mem_expr_equal_p, set_mem_attributes_minus_bitpos):
10349 Likewise.
10350 * expr.c (safe_from_p, expand_expr_real_1, rewrite_address_base)
10351 (find_interesting_uses_address): Likewise.
10352 * fold-const.c (non_lvalue, operand_equal_p): Likewise.
10353 (build_fold_addr_expr_with_type): Likewise.
10354 * gimplify.c (gimplify_addr_expr, gimplify_expr): Likewise.
10355 * print-rtl.c (print_mem_expr): Likewise.
10356 * tree-dump.c (dequeue_and_dump): Likewise.
10357 * tree-eh.c (tree_could_trap_p): Likewise.
10358 * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
10359 * tree-pretty-print.c (op_prio, op_symbol, dump_generic_node): Likewise.
10360 * tree-ssa-alias.c (find_ptr_dereference, ptr_is_dereferenced_by):
10361 Likewise.
10362 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
10363 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
10364 * tree-ssa-loop-im.c (for_each_index, is_call_clobbered_ref): Likewise.
10365 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
10366 (add_address_candidates, rewrite_address_base): Likewise.
10367 * tree-ssa-operands.c (get_expr_operands, get_indirect_ref_operands):
10368 Likewise.
10369 * tree.c (staticp, build1_stat): Likewise.
10370
10371 * tree.def (REALIGN_LOAD_EXPR, REALIGN_STORE_EXPR): New tree-codes.
10372 * tree-pretty-print.c (dump_generic_node): Consider REALIGN_LOAD_EXPR.
10373 * tree-ssa-operands.c (get_expr_operands): Likewise.
10374 * expr.c (expand_expr_real_1): Likewise.
10375
10376 * optabs.h (vec_realign_store_optab, vec_realign_load_optab): New
10377 optabs.
10378 (OTI_vec_realign_store, OTI_vec_realign_load): New optab_index values
10379 for the new optabs.
10380 (expand_ternary_op): New function.
10381 * genopinit.c (optabs): Handle the new optabs.
10382 * optabs.c (optab_for_tree_code): Add cases for the new tree-codes.
10383 (init_optabs): Initialize vec_realign_load_optab.
10384 (expand_ternary_op): New functions.
10385
10386 * target-def.h (TARGET_VECTORIZE): New member for struct gcc_target.
10387 (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New member for targetm.vectorize.
10388 (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): Likewise.
10389 (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Likewise.
10390 * target.h (struct vectorize): New member for struct gcc_target.
10391 (misaligned_mem_ok): New member for targetm.vectorize.
10392 (builtin_mask_for_load): Likewise.
10393 (builtin_mask_for_store): Likewise.
10394 * targethooks.c (default_vect_misaligned_mem_ok): New function.
10395 * targethooks.h (default_vect_misaligned_mem_ok): New function.
10396
10397 * config/rs6000/altivec.md (build_vector_mask_for_load): New
10398 define_expand.
10399 (vec_realign_load_v4si, vec_realign_load_v4sf, vec_realign_load_v8hi)
10400 (vec_realign_load_v16qi): New define_insn.
10401 * config/rs6000/rs6000.h (ALTIVEC_BUILTIN_MASK_FOR_LOAD):
10402 (ALTIVEC_BUILTIN_MASK_FOR_STORE): New target builtins.
10403 * config/rs6000/rs6000.c (altivec_builtin_mask_for_load):
10404 (altivec_builtin_mask_for_store): New variables.
10405 (rs6000_builtin_mask_for_load): New function. Implements
10406 TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD.
10407 (rs6000_builtin_mask_for_store): New function. Implements
10408 TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE.
10409 (rs6000_expand_builtin): Expand the target builtins
10410 builtin_mask_for_load and builtin_mask_for_store.
10411 (altivec_init_builtins): Initialize the new target builtins.
10412 * config/i386/i386.c (ix86_misaligned_mem_ok): New function.
10413 Implements the target hook TARGET_VECTORIZE_MISALIGNED_MEM_OK.
10414
10415 * tree-vectorizer.c (vect_create_data_ref): Renamed to
10416 vect_create_data_ref_ptr. Returns a pointer instead of an array-ref.
10417 (vect_create_addr_base_for_vector_ref): Additional argument (offset).
10418 (vectorizable_store): Call vect_create_data_ref_ptr with additional
10419 arguments, and create an indirect_ref with its return value data_ref.
10420 Check aligned_access_p.
10421 (vectorizable_load): Handle misaligned loads, using software-pipelined
10422 scheme with REALIGN_LOAD_EXPR and ALIGN_INDIRECT_REF if
10423 vec_realign_load_optab is supported, or using a scheme without
10424 software-pipelining with MISALIGNED_INDIRECT_REF if the target hook
10425 misaligned_mem_ok is supported.
10426
10427 (vect_finish_stmt_generation): Typo.
10428 (vect_enhance_data_refs_alignment): Rename loop_vinfo to loop_info.
10429 (vect_analyze_data_refs_alignment): Don't fail vectorization in the
10430 presence of misaligned loads.
10431 (vect_analyze_data_ref_access): Add check for constant init.
10432 (vect_get_symbl_and_dr): Remove duplicate line.
10433 * tree-vectorizer.h (DR_MISALIGNMENT): Add comment.
10434
10435 2004-09-23 Kazu Hirata <kazu@cs.umass.edu>
10436
10437 * builtins.c: Fix a comment typo.
10438
10439 2004-09-23 Jan Hubicka <jh@suse.cz>
10440
10441 * profile.c (branch_prob): Do not verify flow info in the middle of the
10442 pass.
10443
10444 2004-09-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10445
10446 * cfgloop.h (update_single_exits_after_duplication): Declare.
10447 (loopify, split_loop_bb): Declaration changed.
10448 * cfgloopmanip.c (split_loop_bb): Take void * as an argument instead
10449 of rtx.
10450 (loopify): Added redirect_all_edges argument.
10451 (update_single_exits_after_duplication): Export.
10452 * loop-unswitch.c (unswitch_loop): Changed due to loopify change.
10453 * tree-flow.h (tree_duplicate_loop_to_header_edge,
10454 tree_ssa_loop_version): Declare.
10455 * tree-ssa-loop-manip.c (copy_phi_node_args, rename_variables,
10456 set_phi_def_stmts, tree_duplicate_loop_to_header_edge,
10457 lv_adjust_loop_header_phi, lv_adjust_loop_entry_edge,
10458 lv_update_pending_stmts, tree_ssa_loop_version): New functions.
10459
10460 * tree-ssa-loop-unswitch.c: New file.
10461 * Makefile.in (tree-ssa-loop-unswitch.o): Add.
10462 * timevar.def (TV_TREE_LOOP_UNSWITCH): New timevar.
10463 * tree-flow.h (tree_ssa_unswitch_loops): Declare.
10464 * tree-optimize.c (init_tree_optimization_passes): Add pass_unswitch.
10465 * tree-pass.h (pass_unswitch): Declare.
10466 * tree-ssa-loop.c (tree_ssa_loop_unswitch,
10467 gate_tree_ssa_loop_unswitch, pass_unswitch): New pass.
10468 * doc/passes.texi: Documen tree level loop unswitching.
10469
10470 2004-09-23 Kazu Hirata <kazu@cs.umass.edu>
10471
10472 * cfgexpand.c, config/s390/tpf-eh.c: Fix comment typos.
10473
10474 2004-09-22 Eric Christopher <echristo@redhat.com>
10475
10476 * builtins.c (simplify_builtin_va_start): Remove.
10477 (simplify_builtin): Ditto.
10478 (fold_builtin_strchr): Ditto.
10479 (simplify_builtin_*): Rename remainders to fold_builtin_*.
10480 (expand_builtin): Fix up for above changes.
10481 (fold_builtin_1): Add new folders. Change for above.
10482 (expand_builtin_va_start): Call fold_builtin_next_arg.
10483 * gimplify.c (gimplify_call_expr): Fix calls to simplify_builtin.
10484 * tree.h: Remove prototype for simplify_builtin.
10485
10486 2004-09-23 Jan Hubicka <jh@suse.cz>
10487
10488 PR debug/17389
10489 * dwarf2out.c (dwarf2out_finish): Deal with nested functions
10490 of fully inlined functions.
10491 * tree-inline.c (inline_forbidden_p_1): Nested functions can be
10492 inlined.
10493
10494 * cfgexpand.c (add_reg_br_prob_note): New function.
10495 (expand_gimple_cond_expr): Use it.
10496 (tree_expand_cfg): No longer kill the profile.
10497 * cfgrt.c (rtl_verify_flow_info_1): Check profile consistency
10498 only if it is present.
10499 * passes.c (rest_of_handle_loop_optimize): Kill the profile.
10500 * predict.c (combine_predictions_for_insn): Set the probabilities
10501 based on REG_BR_PROB note if present.
10502 * predict.c (branch_prob): Profile is read only with
10503 flag_branch_probabilities.
10504
10505 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
10506
10507 * aclocal.m4: Add in gettext's m4 includes.
10508 (AC_ICONV, AC_LCMESSAGES, GCC_PATH_PROG): Remove.
10509 * configure.ac: Add in check for iconv.h
10510 * configure: Regenerate.
10511
10512 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
10513
10514 * aclocal.m4: Update for rename of gettext-sister.m4.
10515
10516 2004-09-22 Daniel Berlin <dberlin@dberlin.org>
10517
10518 Fix PR tree-optimization/17587
10519 * tree-ssa-pre.c (fini_pre): Commit edge inserts here.
10520 (insert_aux): Instead of here.
10521
10522 2004-09-22 Diego Novillo <dnovillo@redhat.com>
10523
10524 PR tree-optimization/16721
10525 * tree-dfa.c (dump_variable): Show TREE_THIS_VOLATILE.
10526 * tree-ssa-alias.c (create_memory_tag): Move setting of
10527 TREE_THIS_VOLATILE ...
10528 (get_tmt_for): ... here.
10529
10530 2004-09-22 Eric Botcazou <ebotcazou@libertysurf.fr>
10531
10532 * config/sparc/sparc.md (cmove splitter): Fix formatting.
10533 (conditional_trap expander): Reject inappropriate CCmodes.
10534 (conditional trap insn): Use V9 syntax if possible.
10535
10536 2004-09-22 Joseph S. Myers <jsm@polyomino.org.uk>
10537
10538 PR c/16566
10539 * c-typeck.c (build_component_ref): Don't special-case
10540 COMPOUND_EXPR.
10541
10542 2004-09-22 Frank Ch. Eigler <fche@redhat.com>
10543
10544 * dominance.c (verify_dominators): Don't SEGV if recount_dominator
10545 returns NULL.
10546
10547 2004-09-22 Kazu Hirata <kazu@cs.umass.edu>
10548
10549 * doc/c-tree.texi (TRUTH_NOT_EXPR, TRUTH_ANDIF_EXPR,
10550 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
10551 TRUTH_XOR_EXPR): Mention the restriction on types.
10552
10553 2004-09-22 Matt Austern <austern@apple.com>
10554
10555 * config/darwin.c (darwin_make_decl_one_only):
10556 Allow coalesced symbol to appear in static archive's table of contents
10557
10558 2004-09-22 Kazu Hirata <kazu@cs.umass.edu>
10559
10560 PR tree-optimization/17512
10561 * convert.c (convert_to_integer): Don't handle TRUTH_*_EXPR as
10562 special cases.
10563
10564 2004-09-22 David Edelsohn <edelsohn@gnu.org>
10565
10566 * dbxout.c (get_lang_number): Do not define if
10567 DBX_OUTPUT_MAIN_SOURCE_DIRECTORY is defined.
10568
10569 2004-09-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
10570
10571 PR target/15583
10572 * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Add
10573 builtin_define ("__USE_INIT_FINI__").
10574
10575 2004-09-22 P.J. Darcy <darcypj@us.ibm.com>
10576
10577 * config/s390/s390-protos.h (s390_emit_tpf_eh_return): Add prototype.
10578 * config/s390/s390.c (s390_emit_tpf_eh_return): New function.
10579 * config/s390/s390.h (TARGET_TPF): New macro.
10580 * config/s390/s390.md ("eh_return"): New expander.
10581 * config/s390/t-tpf (LIB2ADDEH): Use unwind-dw2-fde.c rather than
10582 unwind-dw2-fde-glibc.c. Add config/s390/tpf-eh.c.
10583 (LIB2ADDEHDEP): Remove unwind-dw2-fde.c.
10584 * config/s390/tpf.h (TARGET_TPF): Define to 1.
10585 (STACK_POINTER_OFFSET): Increase to 448.
10586 (TARGET_DEFAULT): Set -mtpf-trace on as default.
10587 (TPF_LOC_DIFF_OFFSET): New macro.
10588 (ASM_PREFERRED_EH_DATA_FORMAT): Redefine to always use absolute
10589 encoding.
10590 (__isPATrange): Add prototype.
10591 (MD_FALLBACK_FRAME_STATE_FOR): Define.
10592 * config/s390/tpf-eh.c: New file.
10593
10594 2004-09-22 Diego Novillo <dnovillo@redhat.com>
10595
10596 * fold-const.c (fold): Avoid non INTEGER_TYPEs when widening
10597 operands in an integer comparison.
10598 * tree-cfg.c (find_taken_edge): Call fold() to determine
10599 whether the predicate is known.
10600
10601 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
10602
10603 * aclocal.m4: Import AM_PROG_CC_C_O and AM_AUX_DIR_EXPAND.
10604 * configure.ac: Call AM_PROG_CC_C_O instead of AC_PROG_CC_C_O.
10605 Create build and doc directories along with the language directories.
10606 Don't create doc directory separately.
10607 * configure: Regenerate.
10608 * Makefile.in: Create all object and executables files built
10609 with the build compiler in a build/ directory.
10610 (genobjnames): Add missing build objects.
10611 (STAGESTUFF): Don't stage the gen* programs.
10612 (ggc-none.o): Define dependencies for the target compiler.
10613 (build-print-rtl.o): Rename to build/print-rtl.o.
10614 (build-errors.o): Rename to build/errors.o.
10615 (build-varray.o): Rename to build/varray.o.
10616 (maintainerclean): Delete the contents of the build directory.
10617 ($(genobjs): %.o): Explicitly use -o.
10618 (build/insn-conditions.o): Delete specfic rule to use generic rule.
10619 (build/gengtype-lex.o): Likewise.
10620 (build/gengtype-yacc.o): Likewise.
10621 (build/gcov-iov.o): Likewise.
10622
10623 2004-09-22 Nathan Sidwell <nathan@codesourcery.com>
10624
10625 * vec.h (VEC_space): Return true if there _is_ space.
10626 (VEC_reserve): Adjust.
10627
10628 2004-09-22 Richard Sandiford <rsandifo@redhat.com>
10629
10630 * config/mips/mips.c (mips_function_value): For o32, o64, n32 and n64,
10631 use FPRs for scalar, complex and vector types only.
10632
10633 2004-09-21 Jeff Law <law@redhat.com>
10634
10635 * tree-ssa-dom.c (opt_stats): Move so that it lives just after
10636 the opt_stats_d structure.
10637 (vrp_data): Change from a varray into a hash table.
10638 (vrp_hash_elt): New structure for elements in the vrp hash table.
10639 (vrp_hash, vrp_eq):New functions for hashing and testing equality
10640 in the vrp hash table.
10641 (tree_ssa_dominator_optimize): Initialize VRP_DATA. Reorganize
10642 initialization slightly to make it easier to read. No longer need
10643 to grow/clear the varray. Instead empty and delete the hash table.
10644 (dom_opt_finalize_block): Update due to change of VRP_DATA from
10645 a varray to a hash table.
10646 (simplify_cond_and_loop_avail_expr, record_range): Similarly.
10647
10648 * tree-ssa-ccp.c (get_default_value): If we have a constant
10649 value recorded for an SSA_NAME, then use that constant as
10650 the initial lattice value.
10651 (substitute_and_fold): Transfer equivalences discovered into
10652 SSA_NAME_EQUIV.
10653
10654 * tree.h (SSA_NAME_EQUIV): Add comments.
10655 (SET_SSA_NAME_EQUIV): Similarly.
10656
10657 2004-09-21 David Edelsohn <edelsohn@gnu.org>
10658
10659 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to POWER4.
10660
10661 * config/rs6000/rs6000.c (rs6000_adjust_cost): dep_insn is used.
10662
10663 2004-09-21 Mark Mitchell <mark@codesourcery.com>
10664
10665 * c-decl.c (implicityl_declare): Call maybe_apply_renaming_pragma.
10666 (finish_decl): Likewise.
10667
10668 2004-09-21 Devang Patel <dpatel@apple.com>
10669
10670 * tree.def (VEC_COND_EXPR): New tree node.
10671 * tree-ssa-operands.c (get_expr_operands): Handle VEC_COND_EXPR.
10672
10673 2004-09-21 Stan Shebs <shebs@apple.com>
10674
10675 * config/rs6000/darwin-tramp.asm: Add __ppc64__ case.
10676 * config/rs6000/darwin-world.asm: Likewise.
10677
10678 2004-09-21 Daniel Berlin <dberlin@dberlin.org>
10679
10680 * tree-ssa.c (verify_def): Use print_generic_stmt,
10681 not debug_generic_stmt.
10682 (verify_use): Ditto.
10683 (verify_phi_args): Ditto.
10684 (verify_ssa): Ditto.
10685
10686 2004-09-21 Paul Brook <paul@codesourcery.com>
10687
10688 * varasm.c (default_assemble_integer): Return false for values wider
10689 than the target word size. Works around GAS bug.
10690
10691 2004-09-21 Zack Weinberg <zack@codesourcery.com>
10692
10693 * reg-notes.def (REG_DEP_TRUE): New entry, place first so it
10694 gets value 0.
10695 * print-rtl.c (print_rtx): Print the name of a REG_NOTE even
10696 if it has value 0.
10697
10698 2004-09-21 Daniel Berlin <dberlin@dberlin.org>
10699
10700 * c-typeck.c (build_function_call): Give name of object
10701 we are attempting to call in error message.
10702 * c-objc-common.c (c_tree_printer): Call pp_expression,
10703 not return false, for 'E' case.
10704
10705 2004-09-21 Steven Bosscher <stevenb@suse.de>
10706
10707 PR rtl-optimization/17482
10708 * postreload-gcse.c (reg_avail_info, oprs_unchanged_p,
10709 load_killed_in_block_p): Clarify comments.
10710 (record_last_reg_set_info): Make static inline.
10711 (mark_call, mark_set, mark_clobber, mark_oprs_set): Remove.
10712 (record_opr_changes): New function to replace the above.
10713 (compute_hash_table): Clarify comments. Use record_opr_changes.
10714 (reg_set_between_after_reload_p): Clean up.
10715 (reg_used_between_after_reload_p): Likewise.
10716 (eliminate_partially_redundant_load): Clarify comments.
10717
10718 2004-09-21 Eric Botcazou <ebotcazou@libertysurf.fr>
10719
10720 PR rtl-optimization/17266
10721 * regmove.c (optimize_reg_copy_3): Make a new SUBREG for each insn.
10722
10723 2004-09-21 Uros Bizjak <uros@kss-loka.si>
10724
10725 PR rtl-optimization/14851
10726 * rtlanal.c (commutative_operand_precedence): Calculate
10727 precedence of stripped constant.
10728
10729 2004-09-20 Jeff Law <law@redhat.com>
10730 Jan Hubicka <jh@suse.cz>
10731
10732 * tree-ssanames.c (make_ssa_name): No longer need to clear, then
10733 initialize key elements here.
10734 (release_ssa_name): Zero the released SSA_NAME here.
10735 * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): New macros.
10736 (struct tree_ssa_name): Add new "equiv" field.
10737 * tree-ssa-dom.c (const_and_copies): Kill the global varray.
10738 (tree_ssa_dominator_optimize): No longer allocate, resize or
10739 clear CONST_AND_COPIES.
10740 (get_value_for, set_value_for): Kill.
10741 (thread_across_edge): Get/set the equivalency using
10742 SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
10743 (restore_vars_to_original_value): Likewise.
10744 (record_equivalences_from_phis): Likewise.
10745 (record_dominating_conditions): Likewise.
10746 (record_const_or_copy, record_equality): Likewise.
10747 (lookup_avail_expr): Likewise.
10748 (record_equivalences_from_stmt, cprop_operand): Likewise.
10749 (cprop_into_successor_phis): No longer need to pass around
10750 CONST_AND_COPIES. Callers updated. Get equivalences via
10751 SSA_NAME_EQUIV.
10752 (cprop_into_phis): Likewise.
10753
10754 2004-09-20 Matt Austern <austern@apple.com>
10755 Zack Weinberg <zack@codesourcery.com>
10756
10757 * c-common.c (fix_string_type): Build the unqualified array
10758 type unconditionally, then use c_build_qualified_type to get
10759 the proper const-qualified variant, and set its
10760 TYPE_MAIN_VARIANT to refer to the unqualified type.
10761 * c-lex.c (c_lex_return_raw_string): New global.
10762 (c_lex_with_flags): Honor it.
10763 * c-pragma.h: Declare it.
10764
10765 2004-09-20 Daniel Berlin <dberlin@dberlin.org>
10766
10767 * Makefile.in: Fix flags.h dependencies to be $(FLAGS_H).
10768
10769 2004-09-21 Jan Hubicka <jh@suse.cz>
10770
10771 PR middle-end/17126
10772 * tree-optimize.c (update_inlined_to_pointers): Fix the recursion.
10773 (tree_rest_of_compilation): Cleanup.
10774
10775 2004-09-20 Ulrich Weigand <uweigand@de.ibm.com>
10776
10777 * config/s390/s390.c (s390_select_rtx_section): Remove.
10778 (TARGET_ASM_SELECT_RTX_SECTION): Do not redefine.
10779
10780 2004-09-20 Kaz Kojima <kkojima@gcc.gnu.org>
10781
10782 * config/sh/sh.c (sh_expand_prologue): Add a REG_FRAME_RELATED_EXPR
10783 note to pretend a direct save from the original register when an
10784 intermediate register is used for the save.
10785
10786 2004-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10787
10788 * tsystem.h (alloca): Provide a default definition.
10789
10790 Revert:
10791 2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10792 * unwind-dw2.c: Call __builtin_alloca, not alloca.
10793
10794 2004-09-20 Andrew Pinski <pinskia@physics.uc.edu>
10795
10796 PR tree-opt/17558
10797 * tree-ssa-copy.c (may_propagate_copy): Only allow if the
10798 aliasing sets are the same rather than just conflicting.
10799
10800 2004-09-20 Jan Hubicka <jh@suse.cz>
10801
10802 PR middle-end/16460
10803
10804 * cgraph.c (cgraph_unnest_node): New function.
10805 (c_finalize): Rename to ....
10806 (c_warn_unused_result_recursivly): ... this one; do only the warning
10807 (finish_function): Finalize the toplevel function; do not lower nested tree.
10808 * cgraph.h (cgraph_unnest_node): Declare.
10809 * cgraphunit.c (decide_is_function_needed): Do not use cgraph
10810 nestedness datastructure.
10811 * cse.c (cse_insn): Do not cprop nonlocal LABEL_REFs.
10812 * reload1.c (set_label_offsets): Fix call of set_label_offsets.
10813 * tree-nested.c (finlize_nesting_tree_1): Use un-nesting code.
10814
10815 2004-09-20 Richard Henderson <rth@redhat.com>
10816
10817 * config/alpha/alpha.c (some_small_symbolic_operand_int): Rename
10818 from some_small_symbolic_operand_1; export.
10819 (some_small_symbolic_operand): Remove.
10820 * config/alpha/alpha.md (some_small_symbolic_operand splitter): Remove
10821 extra C check.
10822 * config/alpha/predicates.md (some_small_symbolic_operand): New.
10823
10824 2004-09-20 Jan Hubicka <jh@suse.cz>
10825
10826 * predict.c (return_prediction): New function.
10827 (apply_return_prediction): Likewise.
10828 (tree_bb_level_predictions): Likewise.
10829 (tree_estimate_probability): Add noreturn exit edges; call
10830 bb_level_predictions; fix logic of return heuristics.
10831 (predict_paths_leading_to): Rescuesce from old CVS version of
10832 process_note_prediction function.
10833 * predict.def (PRED_TREE_EARLY_RETURN): New predictor.
10834
10835 2004-09-20 Andreas Krebbel <krebbel1@de.ibm.com>
10836
10837 * config/s390/s390.c (s390_frame_info): Added alignment statement for
10838 floating point register area on stack.
10839
10840 2004-09-20 Jakub Jelinek <jakub@redhat.com>
10841
10842 * predict.c (expr_expected_value): Use *_CLASS_P macros.
10843
10844 2004-09-20 Daniel Berlin <dberlin@dberlin.org>
10845
10846 * tree-ssa-pre.c (compute_antic_aux): Use malloc'd worklist, to avoid
10847 generating useless garbage.
10848
10849 2004-09-20 Paolo Bonzini <bonzini@gnu.org>
10850
10851 * builtins.c (fold_builtin): Call the new omonymous
10852 target hook for machine-dependent built-ins.
10853 * target-def.h (TARGET_FOLD_BUILTIN): New.
10854 * target.h (struct gcc_target): Add the fold_builtin hook.
10855 * targhooks.c (default_fold_builtin): New.
10856 * targhooks.h (default_fold_builtin): Declare it.
10857
10858 2004-09-20 Kazu Hirata <kazu@cs.umass.edu>
10859
10860 * cfg.c, tree-ssa-threadupdate.c, tree-vectorizer.c: Fix
10861 comment typos.
10862
10863 2004-09-20 Richard Sandiford <rsandifo@redhat.com>
10864
10865 PR target/17565
10866 * config/mips/mips.md (define_asm_attributes): Set can_delay to no.
10867
10868 2004-09-20 Jan Hubicka <jh@suse.cz>
10869
10870 * predict.c (estimate_probability): Remove unnecesary code.
10871
10872 2004-09-19 Ira Rosen <irar@il.ibm.com>
10873
10874 * tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field.
10875 (STMT_VINFO_VECT_DR_BASE): Declare.
10876 (VECT_SMODULO): Declare.
10877 * tree-vectorizer.c (vect_compute_array_ref_alignment): New function.
10878 (vect_compute_array_base_alignment): New function.
10879 (vect_analyze_data_ref_access): Check array indices. Remove one
10880 dimensional arrays restriction.
10881 (vect_get_ptr_offset): New function.
10882 (vect_get_symbl_and_dr): New function.
10883 (vect_get_base_and_bit_offset): Support additional data refs. Renamed
10884 (former name vect_get_base_decl_and_bit_offset).
10885 (vect_create_index_for_array_ref): Removed.
10886 (vect_create_index_for_vector_ref): New function.
10887 (vect_create_addr_base_for_vector_ref): New function.
10888 (vect_create_data_ref): Handle additional data refs. Call
10889 vect_create_index_for_vector_ref and vect_create_addr_base_for_vector_ref.
10890 (vect_compute_data_ref_alignment): Support the changes. Call
10891 vect_get_base_and_bit_offset.
10892 (vect_analyze_data_refs): Call vect_get_symbl_and_dr. Support additional
10893 data refs. Store vect_dr_base.
10894 (vect_analyze_data_ref_accesses): Support nonconstant init.
10895 (new_stmt_vec_info): Initialize vect_dr_base field.
10896 (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
10897 (get_vectype_for_scalar_type): Check for BLKmode.
10898 * tree-chrec.h (initial_condition_in_loop_num): Declare.
10899 * tree-chrec.c (initial_condition_in_loop_num): New function.
10900 (chrec_component_in_loop_num): New function.
10901 (evolution_part_in_loop_num): Call chrec_component_in_loop_num.
10902 * tree-data-ref.c (analyze_array_indexes): Change parameter (access_fns)
10903 to be pointer to varray_type.
10904
10905 2004-09-19 Jan Hubicka <jh@suse.cz>
10906
10907 * basic-block.h (update_bb_profile_after_threading): Declare.
10908 * cfg.c (update_bb_profile_after_threading): Break out from ...
10909 * cfgcleanup.c (try_forward_edges): ... here; use it.
10910 * tree-ssa-dom.c (thread_across_edge): Use it.
10911 * tree-ssa-threadupdate.c (create_block_for_threading): Zero out
10912 profile of the new BB.
10913
10914 2004-09-19 Daniel Berlin <dberlin@dberlin.org>
10915
10916 * tree-ssa-pre.c (insert_into_set): Don't put
10917 is_gimple_min_invariant values into the set.
10918
10919 2004-09-19 Andreas Jaeger <aj@suse.de>
10920
10921 * tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix
10922 prototype.
10923
10924 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
10925
10926 * config/cris/cris.h: Preserve the original spelling in a
10927 quote.
10928
10929 2004-09-18 Jeff Law <law@redhat.com>
10930
10931 * tree-ssa-dom.c (nonzero_vars_stack, vrp_variables_stack): New
10932 global varrays to replace the block local varrays.
10933 (struct dom_walk_block_data): Remove, no longer used.
10934 (get_eq_expr_value): No longer need to pass around pointers to local
10935 varrays. Callers updated. Unused markers added to unused parameters.
10936 (record_range, record_equivalences_from_stmt): Likewise.
10937 (record_equivalences_from_incoming_edge): Likewise.
10938 (record_var_is_nonzero): Likewise. Update now that we have a
10939 single global varray of SSA_NAMEs that need restoring.
10940 (dom_opt_initialize_block_local_data): Kill, no longer used.
10941 (tree_ssa_dominator_optimize): Initialize new global varrays.
10942 Update callbacks in dominator walker structure.
10943 (dom_opt_initialize_block): Add markers to NONZERO_VAR_STACK and
10944 VRP_VARIABLES_STACK.
10945 (restore_nonzero_vars_to_original_value): Update now that we have
10946 a single global varray of SSA_NAMEs that need restoring.
10947 (dom_opt_finalize_block): Similarly for VRP_VARIABLES_STACK.
10948 Remove unused variables.
10949 (optimize_stmt): Remove unused variable.
10950
10951 2004-09-18 Jan Hubicka <jh@suse.cz>
10952
10953 * tree-cfg.c (thread_jumps): Fix updating of the profile.
10954
10955 * tree-optimize.c (tree_rest_of_compilation): Kill forgotten
10956 verify_cgraph call.
10957
10958 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
10959
10960 * alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c,
10961 gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c,
10962 optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c,
10963 tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c,
10964 tree-ssa-operands.c, tree-ssa-phiopt.c,
10965 tree-ssa-threadupdate.c: Fix comment typos.
10966
10967 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
10968
10969 * config/darwin-c.c, config/arc/arc.c, config/arc/arc.md,
10970 config/arm/README-interworking, config/arm/arm-cores.def,
10971 config/arm/arm.c, config/arm/arm.h, config/arm/pe.c,
10972 config/arm/vfp.md, config/c4x/c4x.c, config/c4x/c4x.h,
10973 config/cris/cris.c, config/cris/cris.h, config/fr30/fr30.c,
10974 config/fr30/fr30.h, config/fr30/fr30.md, config/frv/frv.c,
10975 config/frv/frv.md, config/i386/winnt.c,
10976 config/ia64/unwind-ia64.c, config/iq2000/iq2000.c,
10977 config/iq2000/iq2000.h, config/m68hc11/m68hc11.c,
10978 config/m68hc11/m68hc11.md, config/m68k/m68k.c,
10979 config/mcore/mcore.c, config/mips/mips.h,
10980 config/mn10300/mn10300.md, config/pa/pa.c,
10981 config/pa/pa64-regs.h, config/pdp11/pdp11.c,
10982 config/rs6000/rs6000.c, config/sh/symbian.c,
10983 config/sparc/sparc.h: Fix comment typos. Follow spelling
10984 conventions.
10985
10986 2004-09-18 Joseph S. Myers <jsm@polyomino.org.uk>
10987
10988 PR c/17424
10989 * c-typeck.c (c_expr_sizeof_expr): Check for error_mark_node.
10990
10991 2004-09-18 Diego Novillo <dnovillo@redhat.com>
10992
10993 * tree-ssa-alias.c (setup_pointers_and_addressables): Don't
10994 remove TREE_ADDRESSABLE from RESULT_DECL.
10995
10996 2004-09-18 Diego Novillo <dnovillo@redhat.com>
10997
10998 * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
10999
11000 2004-09-18 Jan Hubicka <jh@suse.cz>
11001
11002 * tree-into-ssa.c (rewrite_ssa_into_ssa): Expect ssa_name to return
11003 NULL.
11004 * tree-ssa-alias.c (init_alias_info): Likewise.
11005 * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
11006 (verify_ssa): Likewise.
11007 * tree-ssanames.c (make_ssa_name): Clear out ssa_names arrays.
11008
11009 2004-09-18 Jan Hubicka <jh@suse.cz>
11010
11011 * i386.c (legitimize_pic_address): Fix splitting of PLUS with
11012 huge offset.
11013
11014 2004-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
11015
11016 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
11017 * config/sh/sh.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
11018 DW_EH_PE_sdata* for data.
11019 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
11020
11021 2004-09-17 Geoffrey Keating <geoffk@apple.com>
11022
11023 * tree-inline.c (copy_tree_r): Don't duplicate constants, they're
11024 shared anyway.
11025
11026 PR pch/13361
11027 * c-typeck.c (constructor_asmspec): Delete.
11028 (struct initializer_stack): Delete field 'asmspec'.
11029 (start_init): Delete saving of asmspec.
11030 (finish_init): Don't update constructor_asmspec.
11031 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
11032 * stmt.c (expand_asm): Duplicate strings from tree.
11033 (expand_asm_operands): Likewise.
11034 * tree.c (tree_size): Update computation of size of STRING_CST.
11035 (make_node): Don't make STRING_CST nodes.
11036 (build_string): Allocate string with tree node.
11037 (tree_code_size): Clean up assertions, don't allow requests
11038 for "the size of a STRING_CST".
11039 * tree.def (STRING_CST): Update comment.
11040 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
11041 (tree_string): Place contents of string in tree node.
11042 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
11043 from tree.
11044
11045 2004-09-17 Zack Weinberg <zack@codesourcery.com>
11046
11047 * Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
11048 * objc/Make-lang.in (objc/objc-parse.o): Likewise.
11049
11050 2004-09-17 Jones Desougi <jones@ingate.com>
11051
11052 * configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
11053 * configure, config.in: Regenerate.
11054
11055 2004-09-17 Zack Weinberg <zack@codesourcery.com>
11056
11057 * tree.c, tree.h (tree_class_strings): Make array const.
11058 Reindent per coding convention. Move asterisk to proper place
11059 per coding convention.
11060
11061 2004-09-18 Andreas Schwab <schwab@suse.de>
11062
11063 * Makefile.in (gimple-low.o): Depend on $(EXPR_H).
11064 (tree-vectorizer.o): Likewise.
11065 (targhooks.o): Likewise.
11066
11067 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
11068 Zack Weinberg <zack@codesourcery.com>
11069
11070 * alias.c (find_base_decl): Remove unreachable case '3' block.
11071 * expr.c (safe_from_p): Abort if passed a type.
11072 * tree-gimple.c (recalculate_side_effects): Abort if passed
11073 anything other than an expression.
11074 * tree-ssa-pre.c (phi_translate): Return expr immediately if
11075 is_gimple_min_invariant is true for it. Reorder cases for clarity.
11076 Abort on un-handled tree classes.
11077 (valid_in_set): Likewise.
11078 * tree.c (tree_code_class_strings): New static data.
11079
11080 * tree.h (enum tree_code_class): New.
11081 (tree_code_class_strings): Declare.
11082 (TREE_CODE_CLASS_STRING, EXCEPTIONAL_CLASS_P, CONSTANT_CLASS_P)
11083 (REFERENCE_CLASS_P, COMPARISON_CLASS_P, UNARY_CLASS_P, BINARY_CLASS_P)
11084 (STATEMENT_CLASS_P, EXPRESSION_CLASS_P, IS_TYPE_OR_DECL_P): New macros.
11085 (TYPE_P, DECL_P, IS_NON_TYPE_CODE_CLASS, IS_EXPR_CODE_CLASS)
11086 (checking macros, EXPR_LOCATION, SET_EXPR_LOCATION, EXPR_LOCUS): Update.
11087
11088 * tree.def, c-common.def, objc/objc-tree.def: Use
11089 tree_code_class enumeration constants instead of code letters.
11090
11091 * alias.c, builtins.c, c-common.c, c-format.c, c-lang.c, c-pragma.c
11092 * c-typeck.c, cgraphunit.c, convert.c, dbxout.c, dwarf2out.c
11093 * emit-rtl.c expr.c, fold-const.c, gimplify.c, lambda-code.c
11094 * langhooks.c, langhooks.h, predict.c, print-tree.c, reload1.c, stmt.c
11095 * tree-browser.c, tree-cfg.c, tree-chrec.c, tree-complex.c, tree-dfa.c
11096 * tree-dump.c, tree-eh.c, tree-gimple.c, tree-inline.c, tree-nested.c
11097 * tree-outof-ssa.c, tree-pretty-print.c, tree-sra.c, tree-ssa-ccp.c
11098 * tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-forwprop.c, tree-ssa-live.c
11099 * tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c
11100 * tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-propagate.c
11101 * tree-ssa.c, tree-ssanames.c, tree-tailcall.c, tree.c, varasm.c
11102 * config/sol2-c.c, config/arm/arm.c, config/i386/winnt.c
11103 * config/pa/pa.c, config/pa/pa.h, config/sh/sh.c, objc/objc-lang.c
11104 Update to match.
11105
11106 * LANGUAGES: Add note about change.
11107
11108 2004-09-17 Diego Novillo <dnovillo@redhat.com>
11109
11110 PR tree-optimization/17319
11111 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Also
11112 examine pointers on the LHS of an assignment.
11113 (collect_points_to_info_r): Handle RETURN_EXPR.
11114
11115 2004-09-17 Jeff Law <law@redhat.com>
11116
11117 * tree-ssa-dom.c (const_and_copies_stack): New.
11118 (dom_walk_block_data): Remove const_and_copies field.
11119 (record_const_or_copy): No longer need to pass in varray_type *.
11120 Use CONST_AND_COPIES_STACK rather than passed in block local stack.
11121 Callers updated.
11122 (record_equality): Similarly.
11123 (restore_vars_to_original_value): Similarly. Revamp to use new
11124 single global stack rather than per-block stacks.
11125 (tree_ssa_dominator_optimize): Initialize the CONST_AND_COPIES_STACK.
11126 (thread_across_edge): Remove now unused parameters.
11127 (dom_opt_initialize_block_local_data): No longer test the block
11128 local CONST_AND_COPIES.
11129 (dom_opt_initialize_block): Push a marker on CONST_AND_COPIES_STACK.
11130
11131 2004-09-17 Jan Hubicka <jh@suse.cz>
11132
11133 PR tree-optimization/17509
11134 * tree-optimize.c (update_inlined_to_pointers): New function.
11135 (tree_rest_of_compilation): Use it.
11136
11137 2004-09-17 Devang Patel <dpatel@apple.com>
11138
11139 * dbxout.c (get_lang_number): New.
11140 (dbxout_init): Include lang number in N_SO stab.
11141 * dbxout.h (N_SO_AS, N_SO_C, N_SO_ANSI_C, N_SO_CC, N_SO_FORTRAN,
11142 N_SO_PASCAL, N_SO_FORTRAN90, N_SO_OBJC, N_SO_OBJCPLUS): New #define.
11143
11144 2004-09-17 Diego Novillo <dnovillo@redhat.com>
11145
11146 PR tree-optimization/17273
11147 * tree-ssa.c (replace_immediate_uses): Call fold_stmt if the
11148 replacement is a constant.
11149
11150 2004-09-17 Joseph S. Myers <jsm@polyomino.org.uk>
11151
11152 * c-tree.h (enum c_typespec_keyword): New.
11153 (struct c_declspecs): Adjust description of "type". Remove
11154 specbits, explicit_int_p and explicit_char_p. Rename
11155 typedef_signed_p to explicit_signed_p. Add default_int_p, long_p,
11156 short_p, signed_p, unsigned_p and complex_p.
11157 (finish_declspecs): New.
11158 * c-parse.in (datadef, datadecl, setspecs, decl, component_decl,
11159 typename): Call finish_declspecs.
11160 * c-decl.c (finish_declspecs): New.
11161 (declspecs_add_type): Check for combinations which cannot occur in
11162 valid specifier lists. Update comments.
11163 (shadow_tag_warned): Remove checks done in finish_declspecs.
11164 Don't report useless type name if type defaulted to int.
11165 (grokdeclarator): Remove checks and actions done in
11166 finish_declspecs. Don't allow for type being NULL. Update for
11167 datastructures changes. Initialize decl_attr.
11168 (build_null_declspecs, quals_from_declspecs): Update for
11169 datastructures changes.
11170
11171 2004-09-17 Sylvain Pion <Sylvain.Pion@sophia.inria.fr>
11172
11173 * doc/extend.texi: Fix duplicated word.
11174
11175 2004-09-17 Toon Moene <toon@moene.indiv.nluug.nl>
11176
11177 * doc/invoke.texi: Remove stray explanation on
11178 -freduce-all-givs and -fmove-all-movables.
11179
11180 2004-09-17 James Morrison <phython@gcc.gnu.org>
11181
11182 * doc/cfg.texi: Use @smallexample.
11183 * doc/md.texi: Likewise.
11184 * doc/tree-ssa.texi: Likewise.
11185 * doc/extend.texi: Likewise. Use @r{} in comments.
11186 * doc/trouble.texi: Use @r{} in comments.
11187
11188 2004-09-17 Hans-Peter Nilsson <hp@bitrange.com>
11189
11190 * configure.ac (gcc_cv_gld_version): Handle whitespace before
11191 "VERSION=".
11192 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto.
11193 * configure: Regenerate.
11194
11195 2004-09-17 J"orn Rennecke <joern.rennecke@superh.com>
11196
11197 * sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.
11198 (sh_pass_by_reference): Work around std_gimplify_va_arg_expr bug.
11199 * t-sh (MULTILIB_CPUS): s/ML_m/ML_sh/g .
11200 * t-sh64 (MULTILIB_CPU_DIRS): Likewise. Match dashes and trailing
11201 slashes in substitutions.
11202 (MULTILIB_DIRNAMES): Remove defunct removal of /media32.
11203
11204 2004-09-17 Kazu Hirata <kazu@cs.umass.edu>
11205
11206 * basic-block.h, c-decl.c, c-parse.in, cgraphunit.c, ddg.c,
11207 gimplify.c, lambda-code.c, optabs.c, predict.c,
11208 tree-scalar-evolution.c, tree-sra.c, tree-ssa-loop-ch.c,
11209 tree-ssa.c, vec.h: Fix comment typos. Follow spelling
11210 conventions.
11211
11212 2004-09-17 Kazu Hirata <kazu@cs.umass.edu>
11213
11214 * doc/compat.texi, doc/cpp.texi, doc/cppopts.texi,
11215 doc/extend.texi, doc/install.texi, doc/invoke.texi,
11216 doc/sourcebuild.texi, doc/tm.texi, doc/tree-ssa.texi,
11217 doc/trouble.texi: Use @option around options.
11218
11219 2004-09-17 Richard Sandiford <rsandifo@redhat.com>
11220
11221 * Makefile.in (gen-protos.o): Depend on errors.h.
11222
11223 2004-09-17 Steven Bosscher <stevenb@suse.de>
11224
11225 PR tree-optimization/17513
11226 * cfgexpand.c (construct_init_block): Clear EDGE_EXECUTABLE
11227 for successors of the entry block.
11228
11229 2004-09-17 Uros Bizjak <uros@kss-loka.si>
11230
11231 PR rtl-optimization/15187
11232 * ifcvt.c (noce_try_cmove_arith): Exit early if total
11233 insn_rtx_cost of both branches > BRANCH_COST
11234
11235 2004-09-16 Diego Novillo <dnovillo@redhat.com>
11236
11237 PR tree-optimization/17528
11238 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Do not
11239 erase the may-alias set for a tag when merging it with
11240 another.
11241
11242 2004-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
11243
11244 * config/sh/sh.md (call): Extend 32-bit addresses to DImode
11245 for 32-bit TARGET_SHMEDIA.
11246 (call_value): Likewise.
11247
11248 2004-09-16 Diego Novillo <dnovillo@redhat.com>
11249
11250 * tree-ssa-operands.c (add_call_clobber_ops): Make read-only
11251 test apply only to TREE_STATIC and DECL_EXTERNAL.
11252
11253 2004-09-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11254
11255 * Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
11256 * basic-block.h (get_dominated_by_region): Declare.
11257 * dominance.c (get_dominated_by_region): New function.
11258 * tree-cfg.c: Include cfglayout.h.
11259 (tree_duplicate_bb): Duplicate also phi nodes.
11260 (struct ssa_name_map_entry): New type.
11261 (add_phi_args_after_copy_bb, add_phi_args_after_copy,
11262 ssa_name_map_entry_hash, ssa_name_map_entry_eq,
11263 allocate_ssa_names, rewrite_to_new_ssa_names_def,
11264 rewrite_to_new_ssa_names_use, rewrite_to_new_ssa_names_bb,
11265 rewrite_to_new_ssa_names, tree_duplicate_sese_region): New functions.
11266 * tree-flow.h (tree_duplicate_sese_region, add_phi_args_after_copy_bb,
11267 add_phi_args_after_copy, rewrite_to_new_ssa_names_bb,
11268 rewrite_to_new_ssa_names, allocate_ssa_names,
11269 rewrite_into_loop_closed_ssa, verify_loop_closed_ssa): Declare.
11270 * tree-ssa-loop-ch.c (duplicate_blocks): Removed.
11271 (copy_loop_headers): Use tree_duplicate_sese_region.
11272
11273 2004-09-16 Frank Ch. Eigler <fche@redhat.com>
11274
11275 * profile.c (branch_prob): Restore support for USE_MAPPED_LOCATION.
11276
11277 2004-09-16 Jeff Law <law@redhat.com>
11278
11279 * tree-into-ssa.c (block_defs_stack): New toplevel varray.
11280 (rewrite_block_data): Remove, no longer used.
11281 (rewrite_initialize_block_local_data): Remove, no longer used.
11282 (rewrite_initialize_block): Mark parameters as unused as needed.
11283 Change references to the block local block_defs to be block_defs_stack.
11284 Push a marker onto the block_defs_stack.
11285 (ssa_rewrite_initialize_block): Similarly.
11286 (rewrite_stmt, ssa_rewrite_stmt): Similarly.
11287 (ssa_register_new_def): No longer needs varray argument. Use
11288 block_defs_stack instead. No longer handle possibly null block_defs
11289 varray. Reverse order of items we push on the stack to make it
11290 easier to identify our marker.
11291 (register_new_def): No longer handle possibly null block_defs
11292 varray.
11293 (rewrite_finalize_block): Revamp to look for markers in the global
11294 block_defs_stack varray rather than wiping a block local varray.
11295 Mark arguments as unused as needed.
11296 (ssa_rewrite_finalize_block): Similarly.
11297 (rewrite_into_ssa): Update initialization of dom walker structure
11298 to reflect that we don't need block local data anymore. Initialize
11299 the block_defs_stack varray.
11300 (rewrite_ssa_into_ssa): Similarly.
11301 * tree-ssa-dom.c (block_defs_stack): New toplevel varray.
11302 (struct dom_walk_data): Kill block_defs field.
11303 (tree_ssa_dominator_optimize): Initialize block_defs_stack.
11304 (thread_across_edge): Use the global block_defs_stack instead of
11305 the old block_defs varray.
11306 (dom_opt_initialize_block_local_data): Update now that we don't have
11307 block_defs field to check anymore.
11308 (dom_opt_initialize_block): Push a marker onto block_defs_stack.
11309 (restore_currdefs_to_original_value): Use the new block_defs_stack
11310 instead of a block local varray.
11311 (dom_opt_finalize_block): Similarly.
11312 (record_equivalencs_from_phis): Similarly.
11313 (optimize_stmt, register_definitions_for_stmt): Similarly.
11314
11315 2004-09-16 Andrew MacLeod <amacleod@redhat.com>
11316
11317 PR tree-optimization/17517
11318 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11319 coalesce same-root variables without checking for abnormal PHI usage.
11320
11321 2004-09-16 Daniel Berlin <dberlin@dberlin.org>
11322
11323 * cfgloop.h (duplicate_loop): Add prototype.
11324 * cfgloopmanip.c (duplicate_loop): Make non-static.
11325 * lambda-code.c (perfect_nestify): Factor out test whether
11326 we can handle this loop into separate function.
11327 Call it.
11328 (can_convert_to_perfect_nest): New function.
11329 (replace_uses_of_x_with_y): Add modify_stmt call.
11330 * tree-loop-linear.c (linear_transform_loops): Call
11331 rewrite_into_loop_closed_ssa and free_df.
11332
11333 2004-09-16 Daniel Berlin <dberlin@dberlin.org>
11334
11335 * lambda-code.c (invariant_in_loop): is_gimple_min_invariant is
11336 loop invariant as well.
11337 (perfect_nestify): new function.
11338 (gcc_loop_to_lambda_loop): New parameters to track lower bounds,
11339 upper bounds, and steps.
11340 Set outerinductionvar properly.
11341 (gcc_loopnest_to_lambda_loopnest): Add loops and need_perfect
11342 parameters.
11343 Return NULL if we need a perfect loop and can't make one.
11344 (lambda_loopnest_to_gcc_loopnest): Correct algorithm.
11345 (not_interesting_stmt): New function.
11346 (phi_loop_edge_uses_def): Ditto.
11347 (stmt_uses_phi_result): Ditto.
11348 (stmt_is_bumper_for_loop): Ditto.
11349 (perfect_nest_p): Ditto.
11350 (nestify_update_pending_stmts): Ditto.
11351 (replace_uses_of_x_with_y): Ditto.
11352 (stmt_uses_op): Ditto.
11353 (perfect_nestify): Ditto.
11354 * lambda-mat.c (lambda_matrix_id_p): New function.
11355 * lambda-trans.c (lambda_trans_matrix_id_p): Ditto.
11356 * lambda.h: Update prototypes.
11357 * tree-loop-linear (linear_transform_loop): Use new
11358 perfect_nest_p. Detect and ignore identity transform.
11359 * tree-ssa-loop.c (pass_linear_transform): Use TODO_write_loop_closed.
11360
11361 2004-09-16 Sebastian Pop <pop@cri.ensmp.fr>
11362
11363 * tree-loop-linear.c (gather_interchange_stats): Add more comments.
11364 Gather also strides of accessed data. Pass in the data references
11365 array.
11366 (try_interchange_loops): Add a new heuristic for handling the temporal
11367 locality. Pass in the data references array.
11368 (linear_transform_loops): Pass the data references array to
11369 try_interchange_loops.
11370
11371 2004-09-16 Kazu Hirata <kazu@cs.umass.edu>
11372
11373 * doc/invoke.texi: Fix typos. Follow spelling conventions.
11374
11375 2004-09-16 Nathan Sidwell <nathan@codesourcery.com>
11376
11377 * doc/c-tree.texi (Classes): Remove index entries for
11378 TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}.
11379
11380 2004-09-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11381
11382 * fold-const.c (fold): Fold difference of addresses.
11383 (ptr_difference_const): Moved from tree-ssa-loop-ivopts, based on
11384 get_inner_reference.
11385 * tree-ssa-loop-ivopts.c (peel_address): Removed.
11386 (ptr_difference_const): Moved to fold-const.c.
11387 (split_address_cost): Use get_inner_reference instead of peel_address.
11388 (ptr_difference_cost): Change type of diff to HOST_WIDE_INT.
11389 * tree.h (ptr_difference_const): Export.
11390
11391 * tree-ssa-loop-ivopts.c (dump_iv, dump_use, dump_cand): Add induction
11392 variable type to the dump. Fix indentation.
11393 (idx_find_step): Handle nonconstant array_ref_element_size and
11394 array_ref_low_bound.
11395 (idx_record_use): Handle array_ref_element_size and
11396 array_ref_low_bound.
11397 (find_interesting_uses_stmt): Handle memory = nontrivial_expression
11398 statements correctly.
11399 (get_computation_at, iv_value): Do not unshare expressions here.
11400 (rewrite_use_outer): Unshare the expression before it is emitted
11401 to code.
11402 * tree-ssa-loop-niter.c (unsigned_type_for, signed_type_for):
11403 Moved to tree.c.
11404 * tree.c (unsigned_type_for, signed_type_for): Moved from
11405 tree-ssa-loop-niter.c. Use langhooks.
11406 * tree.h (signed_type_for): Export.
11407
11408 2004-09-16 David Edelsohn <edelsohn@gnu.org>
11409
11410 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Update
11411 prototype.
11412
11413 2004-09-15 Andrew Pinski <pinskia@physics.uc.edu>
11414
11415 PR target/11572
11416 * c-incpath.h (target_c_incpath_s): Add extra_pre_includes.
11417 Add two parameters to extra_includes.
11418 (C_INCPATH_INIT): Remove.
11419 * c-incpath.c (register_include_chains): Call extra_pre_includes
11420 before adding the standard include directory.
11421 Update call to extra_includes.
11422 (!defined TARGET_EXTRA_INCLUDES): Update
11423 hook_void_charptr_charptr_int and add !define
11424 TARGET_EXTRA_PRE_INCLUDES.
11425 (!define TARGET_EXTRA_INCLUDES): Define as
11426 hook_void_charptr_charptr_int.
11427 (!define TARGET_EXTRA_PRE_INCLUDES): Likewise.
11428 (target_c_incpath): Always declare.
11429 * fixinclude.c (defined TARGET_EXTRA_INCLUDES): Declare a
11430 empty function.
11431 (define TARGET_EXTRA_PRE_INCLUDES): Likewise.
11432 * config/darwin.h: (darwin_register_frameworks): Update for
11433 the two new parameters.
11434 (darwin_register_objc_includes): Add prototype.
11435 (TARGET_EXTRA_PRE_INCLUDES): Define.
11436 * config/darwin-c.c (darwin_register_objc_includes): New function.
11437 (darwin_register_frameworks): Update for the two new parameters.
11438 (target_c_incpath): Remove.
11439 * config/t-darwin (darwin-c.o): Add $(PREPROCESSOR_DEFINES) to
11440 the compile line.
11441 * doc/tm.texi (TARGET_EXTRA_INCLUDES): Document the two new
11442 parameters.
11443 (TARGET_EXTRA_PRE_INCLUDES): Document.
11444
11445 * gcc.c (spec_function): Add replace-outfile.
11446 (replace_outfile_spec_function): New function.
11447 * config/darwin.h (LINK_SPEC): Add replace
11448 -lobjc with -lobjc-gnu if -fgnu-runtime is
11449 supplied.
11450 * invoke.texi (replace-outfile): Document.
11451
11452 2004-09-13 Jan Hubicka <jh@suse.cz>
11453
11454 * predict.c (expr_expected_value, strip_builtin_expect): New function.
11455 (tree_predict_by_opcode): Use it.
11456 (tree_estimate_probability): Add, for now disabled,
11457 strip_builtin_expect call.
11458
11459 2004-09-15 James E Wilson <wilson@specifixinc.com>
11460
11461 PR target/17455
11462 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Return false
11463 if current_function_decl is a sibcall.
11464
11465 2004-09-15 Mark Mitchell <mark@codesourcery.com>
11466
11467 * varasm.c (default_function_rdodata_section): Make sure to pass
11468 along a decl for a link-once section.
11469
11470 2004-09-15 Richard Henderson <rth@redhat.com>
11471
11472 * tree-ssa-operands.c (add_call_clobber_ops): Fix unused variable
11473 warning with code disable. Fix formatting.
11474
11475 2004-09-15 Steven Bosscher <stevenb@suse.de>
11476
11477 * Makefile.in (tree-ssa-dom.o): Depend on tree-ssa-propagate.h.
11478 * tree-ssa-dom.c (cprop_into_stmt): Recompute TREE_INVARIANT
11479 after propagating into an ADDR_EXPR.
11480
11481 2004-09-15 Andrew Pinski <apinski@apple.com>
11482
11483 PR rtl-opt/17427
11484 * gcse.c (process_insert_insn): insn_invalid_p has side effects.
11485 Move it out of gcc_assert.
11486
11487 2004-09-15 Joseph S. Myers <jsm@polyomino.org.uk>
11488
11489 * attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c,
11490 except.c, fold-const.c, function.c, langhooks.c, params.c,
11491 reload.c, reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
11492 tree-dump.c, tree-mudflap.c, tree.c, varasm.c: Use %<, %> and %q
11493 for quoting in diagnostics going through pretty-print.c. Use ''
11494 for quoting in other diagnostic text.
11495 * langhooks.c: Include intl.h. Mark text locating diagnostics for
11496 translation.
11497 * Makefile.in (langhooks.o): Update dependencies.
11498 * pretty-print.h (pp_printf): Mark as accepting GCC diagnostic
11499 formats.
11500
11501 2004-09-15 Mark Mitchell <mark@codesourcery.com>
11502
11503 * configure.ac: Check for COMDAT support. Robustify check for
11504 SHF_MERGE support.
11505 * configure: Regenerated.
11506 * config.in: Likewise.
11507 * langhooks-def.h (lhd_comdat_group): New function.
11508 (LANG_HOOKS_COMDAT_GROUP): New macro.
11509 (LANG_HOOKS_DECLS): Use it.
11510 * langhooks.c (lhd_comdat_group): Define.
11511 * langhooks.h (lang_hooks_for_decls): Add comdat_group.
11512 * output.h (named_section_flags): Make it a macro.
11513 (named_section_real): New function.
11514 (default_no_named_section): Add decl parameter.
11515 (default_elf_asm_named_section): Likewise.
11516 (default_coff_asm_named_section): Likewise.
11517 (default_pe_asm_named_section): Likewise.
11518 * target.h (gcc_target): Adjust type of named_section.
11519 * varasm.c (named_section_flags): Rename to named_section_real.
11520 Add decl parameter.
11521 (default_no_named_section): Add decl parameter.
11522 (default_elf_asm_named_section): Use COMDAT, if available. Deal
11523 with the case that ASM_COMMENT_START is "@".
11524 (default_coff_asm_named_section): Add decl parameter.
11525 (default_pe_asm_named_section): Likewise.
11526 * config/alpha/alpha.c (vms_asm_named_section): Add decl
11527 parameter.
11528 (unicosmk_asm_named_section): Likewise.
11529 * config/arm/arm.c (arm_elf_asm_named_section): Remove.
11530 * config/arm/elf.h (TARGET_ASM_NAMED_SECTION): Likewise.
11531 * config/c4x/c4x.c (c4x_asm_named_section): Add decl parameter.
11532 * config/cris/cris-protos.h (cris_target_asm_named_section):
11533 Likewise.
11534 * config/cris/cris.c (cris_target_asm_named_section):
11535 Likewise.
11536 * config/darwin/darwin-protos.h (darwin_asm_named_section):
11537 Likewise.
11538 * config/darwin/darwin.c (darwin_asm_named_section): Likewise.
11539 * config/h8300/h8300.c (h8300_asm_named_section): Likewise.
11540 * config/i386/i386-protos.h (i386_pe_asm_named_section):
11541 Likewise.
11542 * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
11543 * config/m68k/m68k.c (m68k_coff_asm_named_section): Likewise.
11544 * config/mcore/mcore.c (mcore_asm_named_section): Likewise.
11545 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section):
11546 Likewise.
11547 * config/sparc/sparc.c (sparce_elf_asm_named_section): Likewise.
11548 * cp/cp-lang.h (LANG_HOOKS_COMDAT_GROUP): Define.
11549 * cp/cp-tree.h (cxx_comdat_group): Declare.
11550 * cp/decl.c (cxx_comdat_group): New function.
11551
11552 2004-09-15 Jan Hubicka <jh@suse.cz>
11553
11554 * tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes.
11555 * tree-tailcall.c (eliminate_tail_call): Release SSA name.
11556
11557 * tree-cfg.c (remove_bb): Release SSA defs.
11558
11559 2004-09-15 Kazu Hirata <kazu@cs.umass.edu>
11560
11561 * doc/tm.texi: Follow spelling conventions.
11562
11563 2004-09-15 Kazu Hirata <kazu@cs.umass.edu>
11564
11565 * tree-ssa-dom.c: Fix comment typos.
11566
11567 2004-09-15 Alan Modra <amodra@bigpond.net.au>
11568
11569 * config/rs6000/linux-unwind.h (struct gcc_pt_regs): Extend to
11570 include ccr.
11571 (ppc_fallback_frame_state): Save location of CR.
11572
11573 2004-09-15 Jakub Jelinek <jakub@redhat.com>
11574
11575 * expr.c (string_constant): Handle also read-only variables
11576 initialized to string literals.
11577
11578 * builtins.c (expand_builtin_memmove): Optimize memmove (x, y, 1)
11579 into memcpy (x, y, 1) if memcpy can be expanded inline.
11580
11581 2004-09-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11582
11583 PR tree-optimization/17468
11584 * tree-ssa.c (verify_use, verify_phi_args, verify_ssa): Verify that
11585 definition inside a block precede uses.
11586 * tree-tailcall.c (adjust_return_value): Emit statements in the
11587 correct order.
11588
11589 2004-09-15 Richard Sandiford <rsandifo@redhat.com>
11590
11591 * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Delete.
11592
11593 2004-09-15 Eric Botcazou <ebotcazou@libertysurf.fr>
11594
11595 * doc/install.texi (sparc-sun-solaris2*): Properly format warning.
11596
11597 2004-09-14 Jeff Law <law@redhat.com>
11598
11599 * tree-ssa-dom.c (avail_exprs_stack): New global varray.
11600 (struct dom_walk_block_data): Remove avail_exprs member.
11601 (tree_ssa_dominator_optimize): Initialize avail_exprs_stack.
11602 (lookup_avail_expr): No longer need to pass in address of
11603 the block local available exprs stack. All callers changed.
11604 (simplify_cond_and_lookup_avail_expr): Similarly.
11605 (simplify_switch_and_lookup_avail_expr): Similarly.
11606 (get_eq_expr_value, record_cond): Likewise.
11607 (record_dominating_conditions): Likewise.
11608 (update_rhs_and_lookup_avail_expr): Likewise.
11609 (record_equivalences_from_stmt): Likewise.
11610 (dom_opt_initialize_block_local_data): No longer test state of
11611 block local avail_exprs.
11612 (dom_opt_initialize_block): Mark unwind point in the global
11613 avail_expr stack.
11614 (remove_expressions_from_table): Update to unwind to the
11615 most recent unwind marker in the global avail_expr stack.
11616 All callers changed.
11617 (dom_opt_finalize_block): Mark unwind point in the global
11618 avail_expr stack as needed.
11619 (record_cond): Push elements into the global avail_exprs stack.
11620
11621 * tree-dfa.c (free_df_for_stmt): No longer static.
11622 (free_df): Update comments.
11623 * tree-flow.h (free_df_for_stmt): Prototype.
11624 * tree-ssa-dse.c (dse_optimize_stmt): Call free_df_for_stmt. Also
11625 call release_defs.
11626
11627 2004-09-14 Diego Novillo <dnovillo@redhat.com>
11628
11629 PR tree-optimization/17252
11630 * tree-ssa-alias.c (may_alias_p): Don't assume that a
11631 pointer may not point to itself when using relaxed
11632 aliasing rules.
11633
11634 2004-09-14 Richard Henderson <rth@redhat.com>
11635
11636 PR middle-end/17397
11637 * gimplify.c (gimplify_addr_expr): Don't inadvertently change types
11638 while folding <ADDR_EXPR <INDIRECT_REF X>>.
11639
11640 2004-09-14 Andrew Pinski <apinski@apple.com>
11641
11642 * tree-ssa-copy.c (may_propagate_copy): Don't check the aliasing
11643 sets of the pointers but the aliasing sets of what they point to.
11644
11645 2004-09-14 Roger Sayle <roger@eyesopen.com>
11646
11647 PR rtl-optimization/9771
11648 * regclass.c (CALL_REALLY_USED_REGNO_P): New macro to eliminate
11649 conditional compilation in init_reg_sets_1.
11650 (init_reg_sets_1): Let global_regs[i] take priority over the frame
11651 (but not stack) pointer exceptions to regs_invalidated_by_call.
11652 (globalize_reg): Globalizing a fixed register may need to update
11653 regs_invalidated_by_call.
11654
11655 2004-09-14 Diego Novillo <dnovillo@redhat.com>
11656
11657 PR tree-optimization/15262
11658 * tree-dfa.c (dump_variable): Also print the type of the
11659 variable.
11660 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If two
11661 memory tags are of conflicting alias sets but have no aliased
11662 symbols in common, add one tag to the alias set of the other.
11663 (setup_pointers_and_addressables): Remove hack to deal with
11664 programs with no aliased symbols.
11665 (may_alias_p): Don't special case aggregate types.
11666
11667 2004-09-14 Joseph S. Myers <jsm@polyomino.org.uk>
11668
11669 PR c/15498
11670 * doc/invoke.texi (Environment Variables): Correct example locale.
11671
11672 2004-09-14 Jan Hubicka <jh@suse.cz>
11673
11674 * cfg.c (expunge_block): Revert previous change adding ggc_free call.
11675
11676 2004-09-14 Mark Mitchell <mark@codesourcery.com>
11677
11678 * config.gcc: Do not build a shared libgcc for arm-none-eabi.
11679
11680 2004-09-14 Joseph S. Myers <jsm@polyomino.org.uk>
11681
11682 * c-tree.h (struct c_declspecs): Add const_p, volatile_p and
11683 restrict_p.
11684 (struct c_declarator): Change u.array.quals and pointer_quals to
11685 int. Add u.array.attrs.
11686 (quals_from_declspecs): New.
11687 * c-decl.c (quals_from_declspecs): New.
11688 (shadow_tag_warned): Give more specific message for useless type
11689 qualifiers.
11690 (build_array_declarator, set_array_declarator_inner,
11691 grokdeclarator, make_pointer_declarator, build_null_declspecs,
11692 declspecs_add_qual): Update for changed structures.
11693
11694 2004-09-14 Jeff Law <law@redhat.com>
11695
11696 * tree-ssa-dom.c (stmts_to_rescan): Move from a block-local
11697 to a global varray.
11698 (tree_ssa_dominator_optimize): Allocate stmts_to_rescan.
11699 (dom_opt_initialize_block_local_data): No longer test state
11700 of stmts_to_rescan.
11701 (dom_opt_finalize_block): Update due to change in scope of
11702 stmts_to_rescan.
11703 (optimize_stmt): Similarly.
11704
11705 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
11706
11707 * cgraph.h, cgraphunit.c, fold-const.c, lambda-mat.c,
11708 lambda.h, profile.c, tree-optimize.c, tree-sra.c, vec.h: Fix
11709 comment typos. Follow spelling conventions.
11710
11711 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
11712
11713 * config/darwin-c.c, config/alpha/alpha.c, config/i386/i386.c,
11714 config/i386/predicates.md, config/sparc/sparc.c: Follow
11715 spelling conventions.
11716
11717 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11718 Steven Bosscher <stevenb@suse.de>
11719
11720 * Makefile.in (loop-unroll.o): Add HASHTAB_H and RECOG_H dependency.
11721 * basic-block.h (struct reorder_block_def): Add copy_number field.
11722 * cfgloop.h (biv_p): Declare.
11723 * cfgloopmanip.c (duplicate_loop_to_header_edge): Set copy_number.
11724 * common.opt (fsplit-ivs-in-unroller): New flag.
11725 * loop-iv.c (biv_p): New function.
11726 * loop-unroll.c: Include hashtab.h and recog.h.
11727 (struct iv_to_split, struct split_ivs_info): New types.
11728 (analyze_ivs_to_split, si_info_start_duplication, split_ivs_in_copies,
11729 free_si_info, si_info_hash, si_info_eq, analyze_iv_to_split_insn,
11730 determine_split_iv_delta, get_ivts_expr, allocate_basic_variable,
11731 insert_base_initialization, split_iv): New functions.
11732 (peel_loop_completely, unroll_loop_constant_iterations,
11733 unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
11734 Use them.
11735 * doc/invoke.texi (-fsplit-ivs-in-unroller): Document.
11736
11737 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11738
11739 * tree-cfg.c (thread_jumps): Update dominators correctly in
11740 case destination of threaded edge dominates its source.
11741
11742 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11743
11744 * unroll.c: Removed.
11745 * loop.h: Removed.
11746 * Makefile.in (LOOP_H, unroll.o): Removed.
11747 (toplev.o, passes.o, stmt.o, integrate.o, loop.o): Remove LOOP_H
11748 dependency.
11749 * alias.c (init_alias_analysis): Remove flag_old_unroll_loops
11750 reference.
11751 * cfgloop.h (LOOP_PREFETCH, loop_optimize): Moved from loop.h.
11752 * common.opt (fold-unroll-loops, fold-unroll-all-loops): Removed.
11753 * loop.c: Do not include loop.h.
11754 (LOOP_INFO, LOOP_MOVABLES, LOOP_REGS, LOOP_IVS, INSN_LUID,
11755 REGNO_FIRST_LUID, REGNO_LAST_LUID, enum g_types, struct induction,
11756 struct iv_class, enum iv_mode, struct iv, REG_IV_TYPE, REG_IV_INFO,
11757 REG_IV_CLASS, struct loop_ivs, struct loop_mem_info, struct loop_reg,
11758 struct loop_regs, struct loop_movables, struct loop_info): Moved
11759 from loop.h.
11760 (back_branch_in_range_p, fold_rtx_mult_add, biv_total_increment,
11761 reg_dead_after_loop, final_biv_value, loop_find_equiv_value,
11762 find_common_reg_term, loop_iterations, final_giv_value): Moved
11763 from unroll.c.
11764 (uid_luid, uid_loop, max_uid_for_loop, max_reg_before_loop,
11765 loop_dump_stream, for_each_insn_in_loop, express_from,
11766 extend_value_for_giv, loop_iv_add_mult_emit_before,
11767 loop_iv_add_mult_sink, loop_iv_add_mult_hoist,
11768 loop_insn_first_p, get_condition_for_loop,
11769 loop_insn_emit_before, loop_insn_hoist,
11770 loop_insn_sink): Made static.
11771 (loop_invariant_p): Made static. Removed flag_old_unroll_loops
11772 reference.
11773 (strength_reduce): Do not call unroller.
11774 (record_giv): Do not initialize unrolled field.
11775 (prescan_loop): Do not set loop_info->preconditioned.
11776 * passes.c: Do not include loop.h.
11777 (rest_of_handle_loop_optimize): Do not call unroller.
11778 * predict.c: Do not include loop.h.
11779 * rtl.h (NOTE_PRECONDITIONED): Removed.
11780 * stmt.c: Do not include loop.h.
11781 * toplev.c: Do not include loop.h.
11782 (process_options): Do not handle flag_old_unroll_loops.
11783
11784 * doc/invoke.texi (fold-unroll-loops, fold-unroll-all-loops):
11785 Documentation removed.
11786 * doc/passes.texi (unroll.c, loop.h): Documentation removed.
11787
11788 2004-09-14 Nathan Sidwell <nathan@codesourcery.com>
11789
11790 * Makefile.in (STAGE1_CHECKING): New variable.
11791 (stage1_build): Use it.
11792 * tree-ssa.c (verify_ssa): Preserve state of dominance
11793 information.
11794
11795 2004-09-14 Uros Bizjak <uros@kss-loka.si>
11796
11797 * config/i386/i386.c (output_fp_compare): Add generation
11798 of ftst instruction.
11799 * config/i386/i386.md (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf):
11800 Use output_fp_compare () function.
11801 (cmpfp_i, *cmpfp_i_sse, *cmpfp_i_sse_only): Fix insn constraint.
11802 (fix_truncdi_memory): Remove operands[5] copy.
11803
11804 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
11805
11806 * config/m32r/m32r.md, config/m68k/m68kelf.h,
11807 config/mcore/mcore.md, config/rs6000/linux64.h,
11808 config/rs6000/rs6000.c, config/sparc/sparc.c: Fix comment
11809 typos.
11810
11811 2004-09-13 James E Wilson <wilson@specifixinc.com>
11812
11813 * Makefile.in (GEN_PROTOS_OBJS): Add $(BUILD_ERRORS).
11814 * gen-protos.c: Include errors.h.
11815 (progname): Delete.
11816
11817 2004-09-14 Jan Hubicka <jh@suse.cz>
11818
11819 * Makefile.in (predict.o): Depend on tree-scalar-evolution.h
11820 * predict.c: Include tree-scalar-evolution.h and cfgloop.h
11821 (predict_loops): Use number_of_iterations_exit to predict
11822 number of iterations on trees.
11823
11824 2004-09-13 Dale Johannesen <dalej@apple.com>
11825
11826 PR 17408
11827 PR 17409
11828 * c-decl.c (start_decl): Repair TREE_STATIC for initialized
11829 objects declared extern.
11830
11831 2004-09-14 Paul Brook <paul@codesourcery.com>
11832
11833 * config/arm/arm.c (arm_expand_prologue): Make args_to_push a
11834 HOST_WIDE_INT.
11835
11836 2004-09-13 Daniel Jacobowitz <dan@debian.org>
11837
11838 * fold-const.c (fold_checksum_tree): Ignore TYPE_CACHED_VALUES.
11839 Only use TYPE_BINFO for aggregates.
11840
11841 2004-09-13 Daniel Jacobowitz <dan@debian.org>
11842
11843 * expmed.c (synth_mult): Initialize latency. Check cost before
11844 checking ops count.
11845
11846 2004-09-13 Kenneth Zadeck <Kenneth.Zadeck@NaturalBridge.com>
11847
11848 * tree-ssa-operands.c (get_call_expr_operands): Added parm to
11849 add_call_clobber_ops and add_call_read_ops.
11850 (add_call_clobber_ops, add_call_read_ops): Added code to reduce
11851 the number of vdefs and vuses inserted based on analysis of global
11852 variables across calls. * tree-dfa.c (find_referenced_vars):
11853 Needed to reset static var maps before each function is compiled.
11854 * cgraphunit.c:
11855 (static_vars_to_consider_by_tree,static_vars_to_consider_by_uid,
11856 static_vars_info,functions_to_static_vars_info,module_statics_escape,
11857 all_module_statics,searchc_env,dfs_info): New fields to support
11858 analysis of static global variables.
11859 (print_order, convert_UIDs_in_bitmap, new_static_vars_info,
11860 cgraph_reset_static_var_maps, get_global_static_vars_info,
11861 get_global_statics_not_read, get_global_statics_not_written,
11862 searchc, cgraph_reduced_inorder, has_proper_scope_for_analysis,
11863 check_rhs_var, check_lhs_var, get_asm_expr_operands,
11864 process_call_for_static_vars, scan_for_static_refs,
11865 cgraph_characterize_statics_local, cgraph_get_static_name_by_uid,
11866 clear_static_vars_maps, cgraph_propagate_bits,
11867 cgraph_characterize_statics): New. Functions to support analysis
11868 of static global variables.
11869 (cgraph_mark_local_and_external_functions): Renamed from:
11870 (cgraph_mark_local_functions)
11871 (cgraph_expand_all_functions): Remove call to
11872 cgraph_mark_local_and_external_functions.
11873 (cgraph_optimize): Added driver to analyze static variables whose
11874 scope is within the compilation unit. * cgraph.h (struct
11875 cgraph_local_info, GTY): Added statics_read, statics_written,
11876 local, calls_read_all, calls_write_all, for_functions_valid.
11877 (struct cgraph_node): Added next_cycle. * cgraph.c
11878 (dump_cgraph_node): Added print routines for new fields. *
11879 makefile.in: macroized cgraph.h, added cgraphunit.c to the ggc
11880 list.
11881
11882 2004-09-13 Joseph S. Myers <jsm@polyomino.org.uk>
11883
11884 * c-decl.c (grokdeclarator): Correct comments about where storage
11885 class specifiers are rejected by grammar and add corresponding
11886 asserts. Diagnose typedefs and parameters declared inline.
11887 Change warning for inline main to a pedwarn. Only diagnose inline
11888 main if hosted.
11889 (declspecs_add_scspec): Allow duplicate "inline".
11890
11891 2004-09-13 Steve Ellcey <sje@cup.hp.com>
11892
11893 * config/ia64/ia64.c (ia64_scalar_mode_supported_p): New.
11894 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
11895
11896 2004-09-13 Richard Henderson <rth@redhat.com>
11897
11898 PR 17436
11899 * tree.h (TYPE_CONTAINS_PLACEHOLDER_INTERNAL): New.
11900 (tree_type): Replace spare with contains_placeholder_bits.
11901 (type_contains_placeholder_1): Rename from type_contains_placeholder_p,
11902 make static. Remove seen_types list.
11903 (type_contains_placeholder_p): New.
11904
11905 2004-09-13 James E Wilson <wilson@specifixinc.com>
11906
11907 * config/mips/mips.c (CODE_FOR_mips_sqrt_ps): New.
11908 (sb1_bdesc, bdesc_map, bdesc_arrays): New.
11909 (mips_expand_builtin): Add SB-1 support. Use bdesc_map and
11910 bdesc_arrays instead of mips_bdesc.
11911 (mips_init_builtins): Likewise.
11912 * config/mips/mips.h (TARGET_SB1): New.
11913 (HAVE_SQRT_P): Delete.
11914 * config/mips/mips.md (divide_condition): Support V2SF.
11915 (sqrt_condition, recip_condition): New.
11916 (div<mode>3): Use ANYF instead of SCALARF.
11917 (*div<mode>3): Use ANYF instead of SCALARF. Use UNITMODE instead of
11918 MODE.
11919 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Use recip_condition
11920 instead of ISA_HAS_FP4. Use ANYF instead of SCALARF. Use UNITMODE
11921 instead of MODE.
11922 (sqrt<mode>2): Use sqrt_condition instead of HAVE_SQRT_P. Use ANYF
11923 instead of SCALARF. Use UNITMODE instead of MODE.
11924
11925 2004-09-13 Zack Weinberg <zack@codesourcery.com>
11926
11927 * config.in: Regenerate after removal of libbanshee.
11928
11929 2004-09-13 Andrew MacLeod <amacleod@redhat.com>
11930
11931 PR tree-optimization/17400
11932 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11933 coalesce partitions when one occurs in an abnormal PHI.
11934
11935 2004-09-13 Andrew Pinski <apinski@apple.com>
11936
11937 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Change variable size's
11938 name to _new_size.
11939
11940 2004-09-13 Richard Henderson <rth@redhat.com>
11941
11942 PR inline-asm/6806
11943 * cselib.c (cselib_invalidate_rtx): Export. Remove unused args.
11944 (cselib_invalidate_rtx_note_stores): New.
11945 (cselib_record_sets, cselib_process_insn): Update to match.
11946 * cselib.h (cselib_invalidate_rtx): Declare.
11947 * postreload.c (reload_cse_simplify): Invalidate asm clobbers.
11948
11949 2004-09-13 Richard Henderson <rth@redhat.com>
11950
11951 PR tree-opt/10528
11952 * tree-inline.c (copy_body_r): Recompute bits for ADDR_EXPR,
11953 after copying its argument.
11954
11955 2004-09-13 Joseph S. Myers <jsm@polyomino.org.uk>
11956
11957 * c-common.c, c-decl.c, c-lex.c, c-objc-common.c, c-opts.c,
11958 c-parse.in, c-pragma.c, c-typeck.c: Use %q, %< and %> for quoting
11959 in diagnostics. Use %' for English apostrophes.
11960 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Define.
11961 (pedwarn_c90, pedwarn_c99): Use it.
11962 * c-decl.c (lookup_label): Quote label name in diagnostic.
11963 * c-parse.in (yyprint): Use ' instead of ` for left quote.
11964 * c-typeck.c (warn_for_assignment): Likewise.
11965
11966 2004-09-13 Jan Hubicka <jh@suse.cz>
11967
11968 * i386.c (x86_schedule): New global variable.
11969 (override_options): Disable scheduling when not supported.
11970 * i386.h (x86_schedule): Declare.
11971 (TARGET_SCHEDULE): New macro.
11972
11973 2004-09-12 Richard Henderson <rth@redhat.com>
11974
11975 PR c++/16254
11976 * fold-const.c (fold) <case CLEANUP_POINT_EXPR>: Remove.
11977 * tree.c, tree.h (has_cleanups): Remove.
11978
11979 2004-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11980
11981 * tree-ssa-loop-manip.c (split_loop_exit_edge): Handle non-ssaname
11982 arguments of the phi nodes correctly.
11983
11984 2004-09-12 Jan Hubicka <jh@suse.cz>
11985
11986 * ggc-common.c (cmp_statistics): Fix sorting.
11987
11988 2004-09-12 David Edelsohn <edelsohn@gnu.org>
11989
11990 PR target/16795
11991 * expmed.c (expand_divmod): If cheap power of 2 divide is
11992 available, use it for negative constant as well.
11993
11994 2004-09-12 Andrew Pinski <apinski@apple.com>
11995
11996 * darwin.h (ASM_OUTPUT_COMMON): Make sure we do not have a
11997 size of 0.
11998
11999 * tree-chrec.c (initialize_scalar_evolutions_analyzer): Remove.
12000
12001 2004-09-12 Richard Henderson <rth@redhat.com>
12002
12003 * config/i386/i386.c (ix86_split_ashldi): Special case op1 as one
12004 or minus one.
12005 (ix86_split_ashrdi, ix86_split_lshrdi): Clean up conditions for
12006 post-reload, and scratch NULL.
12007 * config/i386/i386.md (testqi_1): Use FLAGS_REG name.
12008 (x86_shift_adj_2): Use ix86_expand_clear.
12009 (ashldi3): Remove CMOVE expansion difference.
12010 (ashldi3_1): Remove.
12011 (*ashldi3_1): Rename from *ashldi3_2. Use reg_or_pm1_operand and
12012 add constraints for immediates. New peephole for split-with-temp.
12013 Run splitter after peep2 pass.
12014 (ashrdi3, ashrdi3_1, ashrdi3_2): Similarly.
12015 (lshrdi3, lshrdi3_1, lshrdi3_2): Similarly.
12016 (setcc_2): Rename with *.
12017 * config/i386/predicates.md (reg_or_pm1_operand): New.
12018 (ashldi_input_operand): New.
12019
12020 2004-09-12 Richard Henderson <rth@redhat.com
12021
12022 * print-rtl.c (print_decl_name): New.
12023 (print_mem_expr): Use it.
12024
12025 2004-09-12 Richard Henderson <rth@redhat.com
12026
12027 PR 17186, part deux
12028 * except.c (sjlj_emit_function_exit): Fix logic locating
12029 sjlj_exit_after in final block.
12030
12031 2004-09-12 Toon Moene <toon@moene.indiv.nluug.nl>
12032
12033 * common.opt: Remove flags -fmove-all-movables and
12034 -freduce-all-givs.
12035 * loop-invariant.c (find_invariants_to_move):
12036 Remove all uses of flag_move_all_movables.
12037 * loop.c (move_movables): Remove all uses of
12038 flag_move_all_movables.
12039 (strength_reduce): Remove all uses of
12040 flag_reduce_all_givs.
12041 * doc/invoke.texi: Remove documentation of flags
12042 -fremove-all-movables and -freduce-all-givs.
12043
12044 2004-09-11 Roger Sayle <roger@eyesopen.com>
12045
12046 PR middle-end/17411
12047 * tree-sra.c (generate_element_zero): Revert recent build_int_cst
12048 change. elt->type may be a floating point type, so use fold_convert.
12049
12050 2004-09-11 Geoffrey Keating <geoffk@apple.com>
12051
12052 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Mark
12053 the thing referenced as used, not the stub itself.
12054
12055 2004-09-11 Joseph S. Myers <jsm@polyomino.org.uk>
12056
12057 * c-tree.h (enum c_storage_class): New.
12058 (struct c_declspecs): Add storage_class, inline_p and thread_p.
12059 * c-decl.c (shadow_tag_warned): Give errors for "inline" in empty
12060 declarations and "auto" or "register" in file scope empty
12061 declarations. Give more specific warnings for other cases of
12062 storage class specifiers in empty declarations.
12063 (grokdeclarator): Update for new structures. Don't check for
12064 multiple storage classes. Diagnose file-scope "register" if
12065 pedantic.
12066 (build_null_declspecs): Update.
12067 (declspecs_add_scspec): Update. Diagnose multiple storage class
12068 specifiers and invalid uses of "__thread".
12069
12070 2004-09-11 Zack Weinberg <zack@codesourcery.com>
12071
12072 * tree.c (tree_code_size): New function, bulk of code from tree_size.
12073 (tree_size, make_node): Use it.
12074 * tree-ssa-pre.c (init_pre): Use it.
12075 * tree.h: Prototype it.
12076
12077 2004-09-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12078
12079 * tree-cfg.c (set_bb_for_stmt): Use PHI_BB.
12080 * tree-dfa.c (compute_immediate_uses, add_immediate_use,
12081 redirect_immediate_use): Use PHI_DF.
12082 * tree-flow-inline.h (stmt_ann): Abort on phi nodes.
12083 (bb_for_stmt): Use PHI_BB.
12084 (get_immediate_uses): Use PHI_DF.
12085 * tree-ssa-dse.c (max_stmt_uid): New variable.
12086 (get_stmt_uid): New function.
12087 (dse_optimize_stmt, dse_record_phis, tree_ssa_dse): Do not use phi
12088 node annotations.
12089 * tree-ssa-loop-im.c (LIM_DATA): Do not use phi statement annotations.
12090 (max_uid): Renamed to max_stmt_uid.
12091 (get_stmt_uid): New function.
12092 (maybe_queue_var, single_reachable_address, determine_lsm): Do not use
12093 phi node annotations.
12094 * tree-ssa.c (replace_immediate_uses): Do not use phi node annotations.
12095 * tree.h (PHI_BB, PHI_DF): New accessor functions.
12096 (struct tree_phi_node): Add bb and df fields.
12097
12098 2004-09-11 Richard Henderson <rth@redhat.com>
12099
12100 PR middle-end/17416
12101 * cfgexpand.c (expand_used_vars_for_block): Fix off-by-one bug
12102 in conflict loop.
12103
12104 2004-09-11 Jan Hubicka <jh@suse.cz>
12105
12106 * i386.h (MODE_NEEDED): Calls need UNINITIALIZED mode; add comment.
12107 (EMIT_MODE_SET): UNINITIALIZED mode needs no set.
12108 * i386.md (i387_cw): Add 'uninitialized' mode.
12109
12110 * profile.c (BB_TO_GCOV_INDEX): move more to the front.
12111 (output_location): Break out from ....
12112 (branch_prob): ... here; handle gcov output on trees.
12113 * toplev.c (process_options): No longer be sorry about coverage for
12114 trees.
12115
12116 2004-09-11 Steven Bosscher <stevenb@suse.de>
12117
12118 PR c++/17412
12119 * fold-const.c (fold): Do not try to fold the operand of a
12120 CLEANUP_POINT_EXPR if that operand does itself not have any
12121 operands.
12122
12123 PR middle-end/17417
12124 * langhooks.c (lhd_decl_printable_name): Make sure that this
12125 function is called with is a decl node that has an identifier.
12126 * tree-pretty-print.c (dump_function_name): New function to
12127 wrap PRINT_FUNCTION_NAME and dump_decl_name.
12128 (print_call_name): Use it.
12129
12130 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
12131
12132 * ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE,
12133 "config.h" if not.
12134
12135 2004-09-11 Jakub Jelinek <jakub@redhat.com>
12136
12137 * tree-ssa-alias.c (collect_points_to_info_r): Handle
12138 pointing to PTR + OFFSET as PTR, not as pointing to PTR or pointing
12139 to OFFSET.
12140
12141 2004-09-11 Richard Henderson <rth@redhat.com>
12142
12143 * expr.c (expand_expr_addr_expr_1) Rename from expand_expr_addr_expr.
12144 (expand_expr_addr_expr): New function. Take ADDR_EXPR instead of the
12145 operand of the ADDR_EXPR.
12146 (expand_expr_real_1): Update to match.
12147
12148 2004-09-11 David Edelsohn <edelsohn@gnu.org>
12149
12150 PR target/17277
12151 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to
12152 choose 64-bit version.
12153
12154 2004-09-11 Richard Henderson <rth@redhat.com>
12155
12156 PR c/17396
12157 * c-typeck.c (build_unary_op): Add legacy offsetof hack.
12158
12159 2004-09-11 Kazu Hirata <kazu@cs.umass.edu>
12160
12161 * doc/cfg.texi, doc/hostconfig.texi, doc/install.texi,
12162 doc/invoke.texi, doc/md.texi, doc/tm.texi, doc/tree-ssa.texi:
12163 Insert @: after i.e. or e.g.
12164
12165 2004-09-10 Geoffrey Keating <geoffk@apple.com>
12166
12167 * tree-pretty-print.c (dump_decl_name): Print unnamed decls as
12168 D.xxx rather than <Dxxx>.
12169
12170 2004-09-10 Adam Nemet <anemet@lnxw.com>
12171
12172 * configure.ac (AC_MSG_CHECKING(what linker to use)):
12173 in_tree_ld_is_elf should be true for LynxOS.
12174 * configure: Regenerate.
12175
12176 2004-09-10 Adam Nemet <anemet@lnxw.com>
12177
12178 * Makefile.in (all.cross): Add srcextra.
12179
12180 2004-09-10 Roger Sayle <roger@eyesopen.com>
12181
12182 PR middle-end/17024
12183 * fold-const.c (fold_cond_expr_with_comparison): Handle unordered
12184 floating point comparison operators. Change aborts to gcc_asserts.
12185
12186 2004-09-10 Geoffrey Keating <geoffk@apple.com>
12187
12188 * final.c (output_asm_insn): Correct problem with -fverbose-asm.
12189
12190 2004-09-10 James E Wilson <wilson@specifixinc.com>
12191
12192 * Makefile.in (LIBGCC_DEPS): Delete duplicate stmp-int-hdrs reference.
12193 (stmp-fixproto): Change stmp-int-headers to stmp-int-hdrs in comment.
12194
12195 * convert.c (convert_to_vector): Replace recursive call with
12196 error_mark_node.
12197
12198 * emit-rtl.c (gen_const_vector): Renamed from gen_const_vector_0.
12199 Add integer argument named constant. Use const_tiny_rtx instead of
12200 CONST0_RTX.
12201 (gen_rtx_CONST_VECTOR): Rewrite to handle checks for both CONST0_RTX
12202 and CONST1_RTX.
12203 (init_emit_once): Fix users of gen_const_vector. Set CONST1_RTX for
12204 vector types.
12205 * expr.c (const_vector_from_tree): Call gen_rtx_CONST_VECTOR instead
12206 of gen_rtx_raw_CONST_VECTOR.
12207
12208 2004-09-10 Eric Christopher <echristo@redhat.com>
12209
12210 PR c/16046
12211 * c-parse.in (attribute): Add NULL_TREE for error case
12212 for error recovery.
12213
12214 2004-09-10 Zack Weinberg <zack@codesourcery.com>
12215
12216 * c-common.h (struct c_fileinfo): Comment moved here from cp-tree.h.
12217 (extract_interface_info): Delete prototype.
12218 * c-decl.c (extract_interface_info): Delete stub.
12219 * c-lex.c (get_fileinfo): Initialize file_info_tree here, if
12220 it's not already been done ...
12221 (init_c_lex): ... not here.
12222 (fe_file_change): Don't call extract_interface_info.
12223
12224 2004-09-11 Joseph S. Myers <jsm@polyomino.org.uk>
12225
12226 * c-tree.h (struct c_declspecs): Remove typedef_decl. Add
12227 typedef_p and typedef_signed_p.
12228 * c-decl.c (shadow_tag_warned): Check typedef_p, not typedef_decl.
12229 (grokdeclarator): Don't use typedef_decl for warn_deprecated_use.
12230 Check typedef_p and typedef_signed_p, not typedef_decl.
12231 (grokfield): Check typedef_p, not typedef_decl.
12232 (build_null_declspecs): Initialize typedef_p and typedef_signed_p,
12233 not typedef_decl.
12234 (declspecs_add_type): Set typedef_p and typedef_signed_p, not
12235 typedef_decl.
12236
12237 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
12238
12239 * doc/tm.texi, doc/tree-ssa.texi: Fix typos.
12240
12241 2004-09-10 Geoffrey Keating <geoffk@apple.com>
12242
12243 * gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless
12244 temporary variables.
12245
12246 * dbxout.c (dbxout_block): Update for
12247 current_function_func_begin_label a string.
12248 * dwarf2out.c (dwarf2out_begin_prologue): Likewise.
12249 * except.c (dw2_output_call_site_table): Likewise.
12250 * toplev.c (current_function_func_begin_label): Likewise.
12251 * tree.h (current_function_func_begin_label): Likewise.
12252 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Likewise.
12253
12254 * final.c (output_asm_insn): Use strtoul instead of atoi, save a
12255 loop.
12256
12257 * config/darwin.c: Include target.h.
12258 (struct machopic_indirection): Make ptr_name a string.
12259 (machopic_indirection_hash): Update for ptr_name a string.
12260 (machopic_indirection_eq): Likewise.
12261 (machopic_indirection_name): Likewise.
12262 (machopic_output_indirection): Likewise.
12263 (machopic_validate_stub_or_non_lazy_ptr): Update for ptr_name a
12264 string. Don't expect stub names to be in the identifier hash table.
12265 Do call strip_name_encoding before looking up entry in ID hash table.
12266 * config/t-darwin (darwin.o): Add target.h to dependencies.
12267
12268 * gcc/config/rs6000/rs6000.c (print_operand): Use fputs instead
12269 of fprintf for register names.
12270
12271 * output.h (unlikely_section_label): Delete declaration.
12272 (unlikely_text_section_name): Likewise.
12273 * varasm.c (unlikely_section_label_printed): Make static.
12274 (unlikely_section_label): Likewise.
12275 (unlikely_text_section_name): Likewise.
12276 (assemble_start_function): Use reconcat.
12277
12278 * rtl.def (REG): Add comment to describe third field.
12279
12280 2004-09-10 Andrew Pinski <apinski@apple.com>
12281
12282 * config/darwin.c (machopic_mcount_stub_name): Call
12283 machopic_indirection_name instead of making the string
12284 ourselves.
12285
12286 2004-09-10 Diego Novillo <dnovillo@redhat.com>
12287
12288 Revert
12289
12290 2004-09-08 Jie Zhang <zhangjie@magima.com.cn>
12291
12292 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
12293 memory tag is call clobbered, so are its aliases.
12294 (group_aliases): When two memory tags being grouped, if one is
12295 call clobbered, so are the other and its aliases.
12296 (add_may_alias): Remove call-clobbering stuff.
12297 (replace_may_alias): Likewise.
12298 (merge_pointed_to_info): Merge pt_global_mem
12299
12300 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
12301
12302 * bb-reorder.c, c-common.c, c-incpath.c, c-typeck.c,
12303 genrecog.c, lambda-code.c, mips-tdump.c, mips-tfile.c,
12304 passes.c, tree-data-ref.c, tree-data-ref.h, tree-mudflap.c,
12305 tree-scalar-evolution.c, tree-ssa-copyrename.c,
12306 tree-ssa-live.c, tree-ssa-live.h: Fix comment typos.
12307
12308 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
12309
12310 * config/frv/frv.md (UNSPEC_MASACCS, UNSPEC_MDASACCS): New constants.
12311 (maddaccs, msubaccs, *maddacc): Turn operand 0 into a single ACC/ACCG
12312 pair. Remove match_dup from inputs. Remove masaccs handling.
12313 (mdaddaccs, mdsubaccs, *mdaddacc): Likewise a dual ACC/ACCG pair.
12314 (masaccs, mdasaccs): Turn into define_insns.
12315
12316 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
12317
12318 * tree-tailcall.c (process_assignment): Only do accumulator transforms
12319 for floating-point types if flag_unsafe_math_optimizations.
12320
12321 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
12322
12323 * config/darwin.c, config/alpha/alpha.h, config/arm/arm.c,
12324 config/arm/arm.h, config/arm/arm.md, config/arm/bpabi.h,
12325 config/arm/predicates.md, config/frv/frv.c, config/frv/frv.md,
12326 config/h8300/h8300.md, config/i386/gmm_malloc.h,
12327 config/ia64/ia64.md, config/ip2k/libgcc.S,
12328 config/mips/mips-ps-3d.md, config/mips/mips.c,
12329 config/rs6000/rs6000.c, config/s390/s390.c,
12330 config/sh/symbian.c: Fix comment typos.
12331
12332 2004-09-10 Andreas Krebbel <krebbel1@de.ibm.com>
12333
12334 * config/s390/s390.c (s390_emit_prologue): Added missing
12335 "{}" brackets.
12336
12337 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
12338
12339 * doc/extend.texi, doc/invoke.texi, doc/passes.texi: Fix
12340 typos. Follow spelling conventions.
12341
12342 2004-09-10 Joseph S. Myers <jsm@polyomino.org.uk>
12343
12344 * toplev.c (warn_deprecated_use): Correct logic for saying "type"
12345 in diagnostic. Don't dereference NULL TYPE_NAME.
12346
12347 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
12348
12349 * c-common.c, c-pch.c, defaults.h, lambda-code.c, passes.c,
12350 tree-data-ref.c, tree-flow.h, tree-ssa-operands.c,
12351 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
12352 value-prof.c: Fix comment typos. Follow spelling conventions.
12353
12354 2004-09-10 Jan Hubicka <jh@suse.cz>
12355
12356 * tree-ssa-dce.c (remove_dead_stmt): Update profile.
12357 * tree-split_edge.c (tree_split_edge): Likewise.
12358 (thread_jumps): Likewise.
12359
12360 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
12361
12362 * cgraphunit.c, predict.c, tree-ssa-loop-ivopts.c: Fix comment
12363 typos.
12364
12365 2004-09-10 Paolo Bonzini <bonzini@gnu.org>
12366
12367 * cgraph.h (cgraph_dump_file): Do not declare.
12368 * cgraphunit.c (cgraph_dump_file): Declare as static.
12369 (init_cgraph): New.
12370 * toplev.c (cgraph_dump_file): Do not declare.
12371 (compile_file): Call init_cgraph.
12372 * tree-dump.c (dump_files): Add IPA dump file, remove
12373 XML dump of call graph.
12374 (get_dump_file_name): Support IPA dump file naming scheme.
12375 * tree.h (enum tree_dump_index): Add IPA dump file, remove
12376 XML dump of call graph.
12377 * doc/invoke.texi (Debugging Options): Document the new options.
12378
12379 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
12380
12381 * doc/extend.texi: Document the FR-V built-in functions.
12382
12383 2004-09-09 James E Wilson <wilson@specifixinc.com>
12384
12385 * doc/sourcebuild.texi: Delete libbanshee reference.
12386
12387 2004-09-10 Kelley Cook <kcook@gcc.gnu.org>
12388
12389 * Makefile.in (s-gtype): Add $(build_exeext) to gengtype command.
12390
12391 2004-09-09 James E Wilson <wilson@specifixinc.com>
12392
12393 * c-typeck.c (convert_for_assignment): Check that rhs has VECTOR_TYPE
12394 before calling vector_types_convertible_p.
12395 (digest_init): Check that inside_init has VECTOR_TYPE before calling
12396 vector_types_convertible_p. Don't give another error if
12397 convert_for_assignment returns error_mark_node.
12398
12399 2004-09-09 Roger Sayle <roger@eyesopen.com>
12400
12401 PR middle-end/17055
12402 * fold-const.c (build_zero_vector): New function to construct a
12403 vector (either floating point or integer) of zeros.
12404 (fold_convert): Internally, enable conversions of integer zero
12405 to arbitrary vector types, using the new build_zero_vector.
12406
12407 2004-09-09 Roger Sayle <roger@eyesopen.com>
12408
12409 * config/i386/i386.c (ix86_expand_ashlsi3_const): New function to
12410 expand a left shift by an immediate constant as either an ashl or
12411 a sequence of additions.
12412 (ix86_split_ashldi): Use new ix86_expand_ashlsi3_const function
12413 instead of calling gen_ashlsi3 with a constant directly.
12414
12415 2004-09-09 Roger Sayle <roger@eyesopen.com>
12416
12417 * config/i386/i386.c (ix86_split_long_move): When optimizing for
12418 size, and the low and high parts of a DImode constant are equal,
12419 copy one register to another instead of loading the same immediate
12420 value twice.
12421
12422 2004-09-09 Richard Henderson <rth@redhat.com>
12423
12424 PR middle-end/17367
12425 * function.c (assign_parm_setup_block): Only put PARALLELs into
12426 a register if use_register_for_decl.
12427
12428 2004-09-09 Eric Christopher <echristo@redhat.com>
12429
12430 * ra-colorize.c (reset_lists): Move variable declaration inside
12431 ENABLE_CHECKING to avoid unused variable warnings when
12432 not --enable-checking.
12433 (check_colors): Ditto.
12434
12435 2004-09-09 Mike Stump <mrs@apple.com>
12436
12437 * version.c (version_string): Bump to 4.0.0.
12438 * doc/include/gcc-common.texi (version-GCC): Likewise.
12439
12440 2004-09-10 Jakub Jelinek <jakub@redhat.com>
12441
12442 * doc/extend.texi (nothrow attribute): The attribute is not
12443 implemented in 3.2 and earlier.
12444
12445 2004-09-09 Steve Ellcey <sje@cup.hp.com>
12446
12447 * genrecog.c (compute_predicate_codes): Use op0_codes
12448 instead of codes.
12449
12450 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
12451
12452 * ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET
12453 implementation changes.
12454
12455 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
12456
12457 * combine.c (try_combine): When swapping i2 and i3, newi2pat may be
12458 a PARALLEL instead of a SET due to added clobbers.
12459
12460 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
12461
12462 * reload.c (find_reloads_address): Pass correct operand to
12463 maybe_memory_address_p.
12464
12465 2004-09-09 Daniel Berlin <dberlin@dberlin.org>
12466
12467 * Makefile.in: Remove libbanshee, tree-alias-*.
12468 Remove tree-alias-common.h dependencies.
12469 * common.opt: Remove -ftree-points-to.
12470 * configure.ac: Remove libbanshee.
12471 * flags.h: Remove pta_type, flag_tree_points_to.
12472 * gengtype.c (open_base_files): Remove tree-alias-type.h.
12473 * opts.c (OPT_ftree_points_to): Remove.
12474 * toplev.c: Remove tree-alias-common.h, flag_tree_points_to.
12475 * tree-dfa.c: Remove tree-alias-common.h
12476 * tree-into-ssa.c: Ditto.
12477 * tree-outof-ssa.c: Ditto.
12478 * tree-ssa-copyrename.c: Ditto.
12479 * tree-ssa-live.c: Ditto.
12480 * tree-optimize.c: Ditto.
12481 * tree-ssa.c: Ditto.
12482 Remove pass_build_pta, pass_del_pta.
12483 * tree-pass.h: Ditto.
12484 * tree-ssa-alias.c: Remove tree-alias-common.h.
12485 (struct alias_stats_d): Remove pta_queries, pta_resolved.
12486 (pass_may_alias): Remove PROP_pta requirement.
12487 (may_alias_p): Remove pta_queries, pta_resolved, use of andersens.
12488 (get_tmt_for): Ditto.
12489 (dump_alias_stats): Ditto.
12490 * doc/passes.texi: Remove blurb about points-to analysis.
12491 * fortran/Make-lang.in: Remove tree-alias-*.o.
12492
12493 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
12494
12495 * genattrtab.c (write_insn_cases): New function, split out from
12496 write_attr_case. Correctly handle define_peepholes when printing
12497 the instruction name.
12498 (write_attr_case, write_const_num_delay_slots): Use write_insn_cases.
12499
12500 2004-09-09 Hans-Peter Nilsson <hp@axis.com>
12501
12502 PR target/17377
12503 * config/cris/cris-protos.h (cris_return_address_on_stack): Declare.
12504 * config/cris/cris.c (cris_return_address_on_stack): New function.
12505 * config/cris/cris.md ("return"): For location of return address,
12506 also check cris_return_address_on_stack.
12507
12508 2004-09-09 Diego Novillo <dnovillo@redhat.com>
12509
12510 * tree-outof-ssa.c (coalesce_abnormal_edges): Fix typo in
12511 calling phi_ssa_name_p.
12512
12513 2004-09-09 Richard Henderson <rth@redhat.com>
12514
12515 PR c/17322
12516 * c-typeck.c (valid_compound_expr_initializer): Use only
12517 initializer_constant_valid_p, and not TREE_CONSTANT.
12518 (digest_init): Likewise.
12519 (output_init_element): Likewise.
12520
12521 2004-09-09 Giovanni Bajo <giovannibajo@gcc.gnu.org>
12522
12523 * ra-build.c (copy_insn_p, remember_move, defuse_overlap_p_1,
12524 live_out_1, prune_hardregs_for_mode, init_one_web_common,
12525 reinit_one_web, add_subweb, add_subweb_2, init_web_parts,
12526 record_conflict, compare_and_free_webs, init_webs_defs_uses,
12527 parts_to_webs_1, parts_to_webs, reset_conflicts,
12528 check_conflict_numbers, remember_web_was_spilled, handle_asm_insn,
12529 ra_build_free): Use gcc_assert and gcc_unreachable instead of abort.
12530 * ra-colorize.c (push_list, put_web, reset_lists, put_web_at_end,
12531 put_move, remove_move, combine, select_spill, colorize_one_web,
12532 try_recolor_web, insert_coalesced_conflicts, check_colors,
12533 break_precolored_alias, restore_conflicts_from_coalesce,
12534 sort_and_combine_web_pairs, check_uncoalesced_moves): Likewise.
12535 * ra-rewrite.c (spill_coalescing, slots_overlap_p, emit_loads,
12536 reloads_to_loads, rewrite_program2, emit_colors): Likewise.
12537 * ra.c (first_hard_reg, create_insn_info, find_subweb, init_ra,
12538 check_df): Likewise.
12539 * real.c (do_add, do_multiply, do_divide, do_compare, do_fix_trunc,
12540 real_arithmetic, real_compare, real_exponent, real_ldexp,
12541 real_identical, real_to_integer, real_to_integer2, real_to_decimal,
12542 real_to_hexadecimal, real_from_integer, ten_to_ptwo, ten_to_mptwo,
12543 real_digit, real_nan, real_maxval, round_for_format, real_convert,
12544 real_to_target, real_from_target, real_hash, encode_ieee_single,
12545 encode_ieee_double, encode_ieee_extended, encode_ieee_quad,
12546 encode_vax_f, encode_vax_d, encode_vax_g, encode_i370_single,
12547 encode_i370_double, encode_c4x_single, encode_c4x_extended): Likewise.
12548 * recog.c (validate_change, validate_replace_rtx_1, asm_operand_ok,
12549 extract_insn, peep2_next_insn, peep2_reg_dead_p,
12550 peep2_find_free_register, peephole2_optimize, store_data_bypass_p,
12551 if_test_bypass_p): Likewise.
12552 * reg-stack.c (record_label_references, get_asm_operand_n_inputs,
12553 stack_result, remove_regno_note, get_hard_regnum, emit_pop_insn,
12554 emit_swap_insn, swap_to_top, move_for_stack_reg,
12555 subst_stack_regs_pat, subst_asm_stack_regs, change_stack,
12556 compensate_edge, convert_regs_1): Likewise.
12557 * regclass.c (init_reg_sets, init_reg_sets_1,
12558 memory_move_secondary_cost): Likewise.
12559 * regrename.c (note_sets, clear_dead_regs, scan_rtx_reg, scan_rtx):
12560 Likewise.
12561 * reload.c (push_secondary_reload, find_valid_class, push_reload,
12562 operands_match_p, decompose, immune_p, find_reloads,
12563 find_reloads_toplev, find_reloads_address_1, subst_reloads,
12564 copy_replacements, refers_to_regno_for_reload_p,
12565 reg_overlap_mentioned_for_reload_p): Likewise.
12566 * reload1.c (compute_use_by_pseudos, replace_pseudos_in, reload,
12567 count_pseudo, find_reg, eliminate_regs, eliminate_regs_in_insn,
12568 verify_initial_elim_offsets, finish_spills, clear_reload_reg_in_use,
12569 reload_reg_free_p, reload_reg_reaches_end_p, reloads_conflict,
12570 choose_reload_regs, merge_assigned_reloads, emit_input_reload_insns,
12571 do_output_reload, fixup_abnormal_edges): Likewise.
12572 * reorg.c (stop_search_p, emit_delay_sequence, get_jump_flags,
12573 fill_slots_from_thread, relax_delay_slots): Likewise.
12574 * resource.c (mark_referenced_resources, mark_set_resources):
12575 Likewise.
12576 * rtl.c (copy_rtx, rtx_equal_p): Likewise.
12577 * rtlanal.c (insn_dependent_p, reg_overlap_mentioned_p,
12578 dead_or_set_p, find_reg_fusage, remove_note, replace_rtx,
12579 subreg_lsb_1, subreg_regno_offset, subreg_offset_representable_p,
12580 find_first_parameter_load, can_hoist_insn_p, hoist_update_store,
12581 hoist_insn_after, hoist_insn_to_edge, nonzero_bits1): Likewise.
12582 * rtlhooks.c (gen_lowpart_general): Likewise.
12583 * sbitmap.c (sbitmap_difference): Likewise.
12584 * sched-deps.c (add_dependence, sched_analyze_1, sched_analyze_2,
12585 sched_analyze, add_forward_dependence): Likewise.
12586 * sched-ebb.c (fix_basic_block_boundaries, schedule_ebb): Likewise.
12587 * sched-rgn.c (debug_regions, compute_trg_info, schedule_region,
12588 schedule_insns): Likewise.
12589 * sched-vis.c (print_pattern): Likewise.
12590 * sdbout.c (sdbout_symbol, sdbout_toplevel_data): Likewise.
12591 * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
12592 simplify_const_relational_operation, simplify_ternary_operation,
12593 simplify_immed_subreg, simplify_subreg, simplify_gen_subreg):
12594 Likewise.
12595 * sreal.c (copy, sreal_sub, sreal_div): Likewise.
12596 * stmt.c (force_label_rtx, expand_goto, expand_asm_operands,
12597 resolve_operand_name_1, expand_return, expand_decl,
12598 expand_anon_union_decl, emit_case_bit_tests, expand_case): Likewise.
12599 * stor-layout.c (put_pending_size, smallest_mode_for_size,
12600 int_mode_for_mode, layout_decl, finish_builtin_struct, layout_type,
12601 set_sizetype, get_mode_bounds): Likewise.
12602
12603 2004-09-09 Zack Weinberg <zack@codesourcery.com>
12604
12605 * defaults.h (MULTIPLE_SYMBOL_SPACES): Provide default.
12606 * config/arm/pecoff.h, config/i386/beos-elf.h
12607 * config/i386/cygming.h, config/i386/i386-interix.h:
12608 Define MULTIPLE_SYMBOL_SPACES to 1, not nothing. Remove
12609 comment cloned from manual.
12610 * doc/tm.texi: Update description of MULTIPLE_SYMBOL_SPACES.
12611
12612 2004-09-09 Frank Ch. Eigler <fche@redhat.com>
12613
12614 * builtins.c (build_va_arg_indirect_ref): New function.
12615 (std_gimplify_va_arg_expr): Call it instead of mudflap check and
12616 build_fold_indirect_ref.
12617 * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
12618 * config/ia64/ia64.c (ia64_gimplify_va_arg): Ditto.
12619 * tree.h: Declare new function.
12620
12621 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
12622
12623 * cgraphunit.c (cgraph_mark_functions_to_output): Renable node
12624 dumping for development builds.
12625 * emit-rtl.c (verify_rtx_sharing): Give verbose failure for
12626 development builds only.
12627 * genattrtab.c (write_eligible_delay): Fix typo in previous
12628 commit.
12629 * tree.c (iterative_hash_expr): Replace gcc_unreachable with
12630 gcc_assert.
12631
12632 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
12633
12634 * gcse.c (INSN_CUID, insert_set_in_table, find_avail_set,
12635 cprop_insn, do_local_cprop, local_cprop_pass, find_bypass_set,
12636 process_insert_insn, insert_insn_end_bb, pre_insert_copy_insn,
12637 hoist_code, extract_mentioned_regs_helper, compute_store_table,
12638 insert_store): Use gcc_assert and gcc_unreachable.
12639 * ggc-common.c (ggc_splay_alloc, ggc_splay_dont_free,
12640 gt_pch_note_object, gt_pch_note_reorder, relocate_ptrs,
12641 ggc_record_overhead): Likewise.
12642 * ggc-page.c (alloc_page, free_page, ggc_set_mark, ggc_marked_p,
12643 init_ggc, ggc_push_context, ggc_recalculate_in_use_p,
12644 ggc_pop_context, clear_marks, validate_free_objects,
12645 ggc_pch_read): Likewise.
12646 * ggc-zone.c (ggc_allocated_p, free_chunk, ggc_set_mark,
12647 ggc_marked_p, ggc_get_size, init_ggc, destroy_ggc_zone,
12648 ggc_push_context, check_cookies, ggc_collect,
12649 ggc_print_statistics): Likewise.
12650 * gimple-low.c (lower_function_body, lower_stmt,
12651 lower_bind_expr): Likewise.
12652 * gimplify.c (gimple_tree_eq, push_gimplify_context,
12653 pop_gimplify_context, gimple_pop_condition, create_tmp_var,
12654 declare_tmp_vars, gimple_add_tmp_var, annotate_all_with_locus,
12655 mostly_copy_tree_r, gimplify_return_expr, gimplify_switch_expr,
12656 gimplify_case_label_expr, gimplify_exit_block_expr,
12657 canonicalize_component_ref, gimplify_compound_lval,
12658 gimplify_self_mod_expr, gimplify_call_expr,
12659 gimplify_init_ctor_eval, gimplify_init_constructor,
12660 gimplify_modify_expr, gimplify_save_expr, gimplify_target_expr,
12661 gimplify_expr, check_pointer_types_r,
12662 force_gimple_operand): Likewise.
12663 * global.c (global_alloc, build_insn_chain): Likewise.
12664 * graph.c (clean_graph_dump_file,
12665 finish_graph_dump_file): Likewise.
12666 gcov-io.c (gcov_open): Use GCOV_CHECK.
12667
12668 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
12669
12670 * config/frv/frv.c (acc_operand, accg_operand): Use REGNO.
12671
12672 2004-09-09 Jan Hubicka <jh@suse.cz>
12673
12674 middle-end/17128
12675 * tree-inline.c (expand_call_inline): Make overactive sanity check
12676 happy.
12677
12678 2004-09-09 Jan Hubicka <jh@suse.cz>
12679
12680 * tree-ssa-loop-ivopts.c (peel_address): Fix abort on
12681 VIEW_CONVERT_EXPR.
12682
12683 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
12684
12685 * Makefile.in (gengtype): Use $(BUILD_ERRORS).
12686 (gengtype.o): Depend on errors.h.
12687 * genattrtab.c (strcmp_check): Use gcc_assert and gcc_unreachable.
12688 (attr_rtx_1, attr_printf, attr_copy_rtx, evaluate_eq_attr,
12689 attr_alt_subset_p, attr_alt_subset_of_compl_p,
12690 attr_alt_intersection, attr_alt_union, optimize_attrs, gen_insn,
12691 write_test_expr, write_attr_value, write_eligible_delay,
12692 make_internal_attr, make_numeric_value): Likewise.
12693 * genautomata.c (regexp_name, get_str_vect,
12694 gen_presence_absence_set, automaton_decl_hash,
12695 automaton_decl_eq_p, insn_decl_hash, insn_decl_eq_p, decl_hash,
12696 decl_eq_p, process_regexp, loop_in_regexp, check_loops_in_regexps,
12697 process_regexp_cycles, reserv_sets_cmp, set_unit_reserv,
12698 test_unit_reserv, it_is_empty_reserv_sets,
12699 reserv_sets_are_intersected, reserv_sets_shift, reserv_sets_or,
12700 reserv_sets_and, output_cycle_reservs, get_free_state,
12701 intersected_state_reservs_p, states_union, remove_arc,
12702 copy_insn_regexp, transform_1, transform_2, transform_3,
12703 regexp_transform_func, store_alt_unit_usage,
12704 check_regexp_units_distribution, process_seq_for_forming_states,
12705 process_alts_for_forming_states, make_automaton,
12706 form_arcs_marked_by_insn, create_composed_state,
12707 set_out_arc_insns_equiv_num, partition_equiv_class,
12708 process_insn_equiv_class, set_insn_equiv_classes,
12709 units_to_automata_heuristic_distr, form_regexp,
12710 longest_path_length, output_dfa_max_issue_rate, add_vect,
12711 out_state_arcs_num, add_vect_el, output_trans_table,
12712 output_state_alts_table, output_dead_lock_vect,
12713 output_max_insn_queue_index_def,
12714 output_min_insn_conflict_delay_func,
12715 output_internal_insn_latency_func, output_print_reservation_func,
12716 output_cpu_unit_reservation_p, output_state_arcs,
12717 make_insn_alts_attr, make_internal_dfa_insn_code_attr,
12718 make_default_insn_latency_attr,
12719 form_important_insn_automata_lists): Likewise.
12720 * genemit.c (gen_exp, output_add_clobbers,
12721 output_added_clobbers_hard_reg_p): Likewise.
12722 * genextract.c (print_path, main): Likewise.
12723 * genflags.c (gen_macro): Likewise.
12724 * gengenrtl.c: Include errors.h
12725 (type_from_format, accessor_from_format): Likewise.
12726 * gengtype.c (get_file_basename, output_mangled_typename,
12727 walk_type, write_types_process_field,
12728 write_types_local_process_field): Likewise.
12729 * genmodes.c (complete_mode): Likewise.
12730 * genopinit.c (gen_insn): Likewise.
12731 * genoutput.c (output_insn_data, check_constraint_len,
12732 constraint_len): Likewise.
12733 * genpreds.c (add_mode_tests):Likewise.
12734 * gen-protos.c (add_hash): Likewise.
12735 * genrecog.c (find_operand, find_matching_operand,
12736 validate_pattern, add_to_sequence, maybe_both_true,
12737 nodes_identical_1, merge_trees, write_switch, write_cond,
12738 write_action, is_unconditional, make_insn_sequence,
12739 debug_decision_2): Likewise.
12740 * gensupport.c (is_predicable, collect_insn_data,
12741 alter_predicate_for_insn, maybe_eval_c_test): Likewise.
12742
12743 2004-09-09 Jan Hubicka <jh@suse.cz>
12744
12745 * basic-block.h (guess_outgoing_edge_probabilities): Declare.
12746 * cfgbuild.c (compute_outgoing_frequencies): When probability is
12747 missing, guess it.
12748 (find_many_sub_basic_blocks): Do update profile only when it is
12749 present.
12750 * predict.c (set_even_probabilities): Break out from ...
12751 (combine_predictions_for_insn): ... here; deal with
12752 !can_predict_insn_p insns.
12753 (combine_predictions_for_bb): Use set_even_probabilities.
12754 (bb_estimate_probability_locally): Break out from ....
12755 (estimate_probability): ... here.
12756 (guess_outgoing_edge_probabilities): New entry point.
12757
12758 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
12759
12760 * gcc.c (add_sysrooted_prefix, execute, do_self_spec, do_spec_1,
12761 handle_braces, process_brace_body, main, used_arg,
12762 set_multilib_dir, print_multilib_info): Use fatal, not abort.
12763
12764 * tree-nested.c (create_tmp_var_for): Correct missinverted assert.
12765
12766 * tree-outof-ssa.c (free_temp_expr_table): Add missed assert.
12767 * tree-ssa-ccp.c (set_lattice_value): Correct missapplied de
12768 Morgan's theorem in last checkin.
12769
12770 2004-09-09 Giovanni Bajo <giovannibajo@gcc.gnu.org>
12771 Nathan Sidwell <nathan@codesourcery.com>
12772
12773 * targhooks.c (default_unwind_emit, default_scalar_mode_supported_p):
12774 Use gcc_assert, gcc_unreachable & internal_error instead of abort.
12775 * timevar.c (timevar_push, timevar_pop, timevar_start,
12776 timevar_stop): Likewise.
12777 * toplev.c (default_pch_valid_p): Likewise.
12778 * tracer.c (tail_duplicate): Likewise.
12779 * tree-alias-common.c (get_alias_var_decl,
12780 get_values_from_constructor, create_alias_var, delete_alias_vars,
12781 empty_points_to_set, same_points_to_set, ptr_may_alias_var):
12782 Likewise.
12783 * tree.c (tree_size, make_node_stat, copy_node_stat,
12784 build_int_cst_wide, integer_all_onesp, list_length, chainon,
12785 tree_node_structure, type_contains_placeholder_p, substitute_in_expr,
12786 substitute_placeholder_in_expr, tabilize_reference_1, build0_stat,
12787 build1_stat, build2_stat, build3_stat, build4_stat, is_attribute_p,
12788 lookup_attribute, type_hash_canon, host_integerp, iterative_hash_expr,
12789 build_method_type_directly, decl_type_context, get_callee_fndecl,
12790 get_set_constructor_bits, build_vector_type_for_mode, int_cst_value,
12791 tree_fold_gcd): Likewise.
12792 * tree-cfg.c (create_bb, make_ctrl_stmt_edges, make_exit_edges,
12793 make_cond_expr_edges, group_case_labels, tree_merge_blocks,
12794 cleanup_control_expr_graph, find_taken_edge,
12795 find_taken_edge_switch_expr, phi_alternatives_equal,
12796 is_ctrl_altering_stmt, disband_implicit_edges, set_bb_for_stmt,
12797 stmt_for_bsi, tree_find_edge_insert_loc, bsi_insert_on_edge_immediate,
12798 tree_split_edge, tree_verify_flow_info, thread_jumps,
12799 tree_redirect_edge_and_branch, tree_flow_call_edges_add): Likewise.
12800 * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
12801 chrec_fold_multiply_poly_poly): Likewise.
12802 * tree-complex.c (extract_component, expand_complex_division,
12803 expand_complex_comparison, expand_complex_operations_1,
12804 build_replicated_const, expand_vector_operations_1): Likewise.
12805 * tree-data-ref.c (tree_fold_bezout, build_classic_dist_vector,
12806 build_classic_dir_vector): Likewise.
12807 * tree-dfa.c (compute_immediate_uses_for_phi,
12808 compute_immediate_uses_for_stmt, create_var_ann, create_stmt_ann,
12809 create_tree_ann, collect_dfa_stats, get_virtual_var): Likewise.
12810 * tree-dump.c (dequeue_and_dump): Likewise.
12811 * tree-eh.c (record_stmt_eh_region, add_stmt_to_eh_region,
12812 record_in_finally_tree, replace_goto_queue_1,
12813 maybe_record_in_goto_queue, verify_norecord_switch_expr,
12814 do_return_redirection): Likewise.
12815 * tree-if-conv.c (tree_if_convert_stmt, tree_if_convert_cond_expr,
12816 add_to_dst_predicate_list, find_phi_replacement_condition,
12817 replace_phi_with_cond_modify_expr, get_loop_body_in_if_conv_order):
12818 Likewise.
12819 * tree-inline.c (remap_decl, remap_type, remap_decls, copy_body_r,
12820 initialize_inlined_parameters, declare_return_variable,
12821 estimate_num_insns_1, expand_call_inline, expand_calls_inline,
12822 optimize_inline_calls, copy_tree_r): Likewise.
12823 * tree-into-ssa.c (rewrite_initialize_block_local_data, rewrite_stmt,
12824 ssa_rewrite_stmt, rewrite_into_ssa): Likewise.
12825 * tree-iterator.c (alloc_stmt_list, tsi_link_before, tsi_link_after,
12826 tsi_split_statement_list_after, tsi_split_statement_list_before):
12827 Likewise.
12828 * tree-mudflap.c (mf_varname_tree): Likewise.
12829 * tree-nested.c (create_tmp_var_for, lookup_field_for_decl,
12830 lookup_tramp_for_decl, convert_all_function_calls): Likewise.
12831 * tree-optimize.c (tree_rest_of_compilation): Likewise.
12832 * tree-outof-ssa.c (create_temp, eliminate_build, eliminate_phi,
12833 coalesce_abnormal_edges, coalesce_ssa_name, eliminate_virtual_phis,
12834 free_temp_expr_table, add_dependance, finish_expr, rewrite_trees):
12835 Likewise.
12836 * tree-phinodes.c (resize_phi_node, add_phi_arg,
12837 remove_all_phi_nodes_for): Likewise.
12838 * tree-pretty-print.c (op_prio, print_call_name): Likewise.
12839 * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
12840 tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Likewise.
12841 * tree-sra.c (type_can_instantiate_all_elements, sra_hash_tree,
12842 sra_elt_eq, sra_walk_expr, instantiate_missing_elements,
12843 generate_one_element_ref, generate_element_copy,
12844 generate_element_zero, scalarize_copy, scalarize_init,
12845 scalarize_ldst): Likewise.
12846 * tree-ssa-alias.c (delete_alias_info, group_aliases, may_alias_p,
12847 add_may_alias, add_pointed_to_expr, add_pointed_to_var,
12848 collect_points_to_info_r, get_tmt_for, get_ptr_info): Likewise.
12849 * tree-ssa.c (walk_use_def_chains, check_phi_redundancy): Likewise.
12850 * tree-ssa-ccp.c (dump_lattice_value, get_default_value, get_value,
12851 set_lattice_value, likely_value, ccp_visit_phi_node, visit_assignment,
12852 widen_bitfield, ccp_fold_builtin): Likewise.
12853 * tree-ssa-copy.c (may_propagate_copy, merge_alias_info,
12854 replace_exp_1, propagate_tree_value): Likewise.
12855 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
12856 * tree-ssa-dce.c (set_control_dependence_map_bit,
12857 find_control_dependence, find_pdom, mark_operand_necessary,
12858 mark_stmt_if_obviously_necessary,
12859 mark_control_dependent_edges_necessary, remove_dead_stmt): Likewise.
12860 * tree-ssa-dom.c (dom_opt_initialize_block_local_data,
12861 simplify_switch_and_lookup_avail_expr, cprop_into_successor_phis,
12862 eliminate_redundant_computations, avail_expr_eq): Likewise.
12863 * tree-ssa-dse.c (fix_stmt_v_may_defs): Likewise.
12864 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
12865 duplicate_blocks): Likewise.
12866 * tree-ssa-loop-im.c (for_each_index, set_level,
12867 is_call_clobbered_ref): Likewise.
12868 * tree-ssa-loop-ivopts.c (dump_use, divide, stmt_after_ip_normal_pos,
12869 stmt_after_increment, set_iv, contains_abnormal_ssa_name_p,
12870 find_interesting_uses_outer_or_nonlin, add_derived_ivs_candidates,
12871 peel_address, ptr_difference_cost, may_replace_final_value,
12872 determine_use_iv_cost, rewrite_use_nonlinear_expr, rewrite_use_outer,
12873 rewrite_use, rewrite_uses): Likewise.
12874 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
12875 check_loop_closed_ssa_use): Likewise.
12876 * tree-ssanames.c (make_ssa_name): Likewise.
12877 * tree-ssa-operands.c (finalize_ssa_defs, finalize_ssa_uses,
12878 finalize_ssa_v_must_defs, finalize_ssa_stmt_operands,
12879 get_stmt_operands, get_expr_operands, get_asm_expr_operands,
12880 get_indirect_ref_operands, add_stmt_operand): Likewise.
12881 * tree-ssa-pre.c (value_exists_in_set_bitmap,
12882 value_remove_from_set_bitmap, bitmap_insert_into_set, insert_into_set,
12883 phi_translate, valid_in_set, compute_antic,
12884 find_or_generate_expression, create_expression_by_pieces, insert_aux,
12885 create_value_expr_from, eliminate): Likewise.
12886 * tree-ssa-propagate.c (cfg_blocks_get): Likewise.
12887 * tree-ssa-threadupdate.c (remove_last_stmt_and_useless_edges):
12888 Likewise.
12889 * tree-tailcall.c (independent_of_stmt_p, adjust_return_value,
12890 eliminate_tail_call): Likewise.
12891 * tree-vectorizer.c (vect_create_index_for_array_ref,
12892 vect_align_data_ref, vect_create_data_ref,
12893 vect_create_destination_var, vect_get_vec_def_for_operand,
12894 vect_finish_stmt_generation, vect_transform_stmt,
12895 vect_transform_loop_bound, vect_transform_loop,
12896 vect_analyze_operations): Likewise.
12897 * tree-vn.c (vn_compute, set_value_handle, get_value_handle):
12898 Likewise.
12899 * tree-flow-inline.h (var_ann, get_var_ann, get_def_from_ptr,
12900 get_use_op_ptr, immediate_use, phi_ssa_name_p, bsi_start,
12901 bsi_after_labels, bsi_last): Likewise.
12902 * tree-ssa-live.c (var_union, change_partition_var,
12903 create_ssa_var_map, calculate_live_on_entry, root_var_init,
12904 type_var_init, add_coalesce, sort_coalesce_list, pop_best_coalesce):
12905 Likewise.
12906 * tree-ssa-live.h (partition_is_global, live_entry_blocks,
12907 tpa_find_tree): Likewise.
12908 (register_ssa_partition_check): Declare.
12909 (register_ssa_partition): use it.
12910 * tree-ssa-live.c: Include errors.h.
12911 (register_ssa_partition_check): New.
12912 * tree-ssa-operands.c: Include errors.h.
12913 * Makefile.in (tree-ssa-operands.o): Depend on errors.h.
12914
12915 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
12916 Catherine Moore <clm@redhat.com>
12917
12918 * config/frv/frv-protos.h (FRV_CPU_FR550, FRV_CPU_FR450)
12919 (FRV_CPU_FR405): New processor enums.
12920 (frv_issue_rate, frv_acc_group): Declare.
12921 * config/frv/frv.h (CPP_SPEC, CPP_FRV_SPEC, CPP_FR500_SPEC): Delete.
12922 (CPP_FR400_SPEC, CPP_SIMPLE_SPEC): Delete.
12923 (MASK_DEFAULT_FR550, MASK_DEFAULT_FR450): New macros.
12924 (SUBTARGET_EXTRA_SPECS, EXTRA_SPECS, CPP_CPU_DEFAULT_SPEC): Delete.
12925 (TARGET_CPU_CPP_BUILTINS): Define the macros that were previously
12926 handled by CPP_SPEC.
12927 (MASK_LONG_CALLS, TARGET_LONG_CALLS): New macros.
12928 (MASK_ALIGN_LABELS, TARGET_ALIGN_LABELS): New macros.
12929 (ACC_MASK): New macro.
12930 (TARGET_MEDIA_REV2): Include FRV_CPU_{FR405,FR450,FR550}.
12931 (TARGET_MEDIA_FR450): New macro.
12932 (TARGET_FR500_FR550_BUILTINS, TARGET_FR405_BUILTINS): New macros.
12933 (TARGET_SWITCHES): Add -m{no-,}align-labels and -m{no-,}long-calls.
12934 (LABEL_ALIGN_AFTER_BARRIER): Define.
12935 (ACC_LAST, ACCG_LAST): Add four new accumulator registers.
12936 (IACC_FIRST, IACC_LAST): New pair of SPRs.
12937 (ACCG_FIRST, AP_FIRST, SPR_FIRST, SPR_LAST): Adjust accordingly.
12938 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
12939 (REGISTER_NAMES): Add entries for new registers.
12940 (REG_CLASS_CONTENTS): Update for new register ranges.
12941 (EXTRA_CONSTRAINT_FOR_S): Redefine in terms of call_operand.
12942 (ISSUE_RATE, CLEAR_VLIW_START, SET_VLIW_START): Delete.
12943 (PACKING_FLAG_USED_P): Delete.
12944 (FRV_BUILTIN_MQLCLRHS, FRV_BUILTIN_MQLMTHS, FRV_BUILTIN_MQSLLHI)
12945 (FRV_BUILTIN_MQSRAHI, FRV_BUILTIN_SMUL, FRV_BUILTIN_UMUL)
12946 (FRV_BUILTIN_PREFETCH0, FRV_BUILTIN_PREFETCH, FRV_BUILTIN_SMASS)
12947 (FRV_BUILTIN_SMSSS, FRV_BUILTIN_SMU, FRV_BUILTIN_SCUTSS)
12948 (FRV_BUILTIN_ADDSS, FRV_BUILTIN_SUBSS, FRV_BUILTIN_SLASS)
12949 (FRV_BUILTIN_IACCread{l,ll}, FRV_BUILTIN_IACCset{ll,l})
12950 (FRV_BUILTIN_SCAN): New members of frv_builtin_enum.
12951 (FRV_BUILTIN_FIRST_NONMEDIA): New macro.
12952 (CPU_UNITS_QUERY): Define to 1.
12953 * config/frv/frv.c: Include gt-frv.h
12954 (NUM_NOP_PATTERNS, NTH_UNIT, UNIT_NUMBER, PACKING_FLAG_P): New macros.
12955 (SET_PACKING_FLAG, CLEAR_PACKING_FLAG, FOR_EACH_REGNO): New macros.
12956 (frv_insn_group): New enumeration.
12957 (frv_unit_names, frv_unit_groups, frv_unit_codes): New variables.
12958 (frv_type_to_unit, frv_nops, frv_num_nops): New variables.
12959 (REGSTATE_DEAD, REGSTATE_LIVE, REGSTATE_UNUSED, REGSTATE_MASK)
12960 (REGSTATE_CONDJUMP): Delete. Shuffle other numbers to cover the
12961 gap left by REGSTATE_LIVE.
12962 (regstate_t): New typedef.
12963 (TARGET_MACHINE_DEPENDENT_REORG): Define.
12964 (frv_default_flags_for_cpu): Handle FRV_CPU_{FR550,FR450,FR405}.
12965 (frv_override_options): Check for -mcpu={fr550,fr450,fr405}.
12966 Initialize frv_unit_codes[] and frv_type_to_unit[].
12967 (frv_conditional_register_usage): Remove redundant fixing of
12968 accumulator registers.
12969 (frv_insn_packing_flag): Update specification.
12970 (frv_function_prologue): Don't set frv_insn_packing_flag here.
12971 Zero out frv_nops[].
12972 (frv_expand_epilogue): Remove comments about the no-longer-present
12973 SIBCALL_P argument.
12974 (frv_asm_output_mi_thunk): Check frv_issue_rate() rather than
12975 PACKING_FLAG_USED_P() when deciding whether to pack instructions.
12976 (frv_asm_output_opcode, frv_final_prescan_insn): Simplify in light
12977 of the new meaning of frv_insn_packing_flag. Emit an mnop.p if
12978 packing is disabled and if INSN can only issue to M1.
12979 (call_operand): Check TARGET_LONG_CALLS.
12980 (acc_operand, even_acc_operand, quad_acc_operand)
12981 (accg_operand): Simplify. Don't accept pseudo registers.
12982 (output_move_single): Handle SPR<-zero moves.
12983 (frv_issue_rate): Make non-static. Handle FRV_CPU_{FR550,FR450,FR405}.
12984 (frv_registers_update, frv_registers_used_p): Delete.
12985 (frv_registers_set_p): Delete.
12986 (frv_acc_group_1, frv_acc_group, frv_insn_unit): New functions.
12987 (frv_issues_to_branch_unit_p): New function.
12988 (frv_packet): New structure.
12989 (frv_cond_flags, frv_regstate_conflict_p): New functions.
12990 (frv_registers_conflict_p_1, frv_registers_conflict_p): New functions.
12991 (frv_registers_update_1, frv_registers_update): New functions.
12992 (frv_start_packet, frv_start_packet_block, frv_finish_packet)
12993 (frv_pack_insn_p, frv_add_insn_to_packet, frv_insert_nop_in_packet)
12994 (frv_for_each_packet, frv_sort_insn_group_1, frv_compare_insns)
12995 (frv_sort_insn_group, frv_reorder_packet): New functions.
12996 (frv_pack_insns): Use frv_reorder_packet.
12997 (frv_packet_address): New variable.
12998 (frv_fill_unused_units, frv_align_label, frv_reorg_packet)
12999 (frv_register_nop, frv_reorg): New functions.
13000 (bdesc_1arg): Add __SCUTSS.
13001 (bdesc_2arg): Add __MQLCLRHS, __MQLMTHS, __SMUL, __UMUL, __ADDSS,
13002 __SUBSS, __SLASS and __SCAN.
13003 (bdesc_2argimm): Add __MQSLLHI and __MQSRAHI.
13004 (bdesc_int_void2arg, bdesc_prefetches): New arrays.
13005 (frv_init_builtins): Register the above builtins.
13006 (frv_int_to_acc): Use ACC_MASK to check for valid accumulator
13007 registers. Turn the referenced accumulators into global registers.
13008 (frv_read_iacc_argument): New function.
13009 (frv_expand_int_void2arg, frv_expand_prefetches): New functions.
13010 (frv_split_iacc_move): New function.
13011 (frv_expand_builtin): Handle the new builtins.
13012 * config/frv/frv.md: Replace old schedulers with new order-independent
13013 ones. Add schedulers for the FR405, FR450 and FR550. Describe new
13014 packing algorithm.
13015 (cpu): Add fr550, fr450 and fr405.
13016 (type): Add macc, scan, cut, fnop, fscmp, fdcmp, mnop, mqlimh and
13017 mqshift. Replace fmas with fsmadd and fmad with fdmadd. Delete m7.
13018 (*muladd[sd]f4, *mulsub[sd]f4): Fix types.
13019 (*cmp[sd]f_cc_fp): Use new f[sd]cmp types.
13020 (fnop, mnop): New patterns.
13021 (UNSPEC_MQLCLRHS, UNSPEC_MQLMTHS, UNSPEC_MQSLLHI, UNSPEC_MQSRAHI):
13022 New constants.
13023 (mexpdhw, *cond_exec_mexpdhw): Fix destination operands.
13024 (mclracca8): Use ACC_MASK to determine the upper set of accumulator
13025 registers.
13026 (mqlclrhs, mqlmths, mqsllhi, mqsrahi): New patterns.
13027 (UNSPEC_SMUL, UNSPEC_UMUL, UNSPEC_SMU, UNSPEC_ADDSS, UNSPEC_SUBSS)
13028 (UNSPEC_SLASS, UNSPEC_SCAN, UNSPEC_INTSS, UNSPEC_SCUTSS)
13029 (UNSPEC_PREFETCH0, UNSPEC_PREFETCH, UNSPEC_IACCreadll)
13030 (UNSPEC_IACCreadl, UNSPEC_IACCsetll, UNSPEC_IACCsetl, UNSPEC_SMASS)
13031 (UNSPEC_SMSSS, UNSPEC_IMUL, IACC0_REG): New constants.
13032 (smul, umul, smass, smsss, smu, addss, subss, slass, scan, scutss)
13033 (frv_prefetch0, frv_prefetch): New patterns.
13034 * config/frv/t-frv (MULTILIB_OPTIONS): Remove -mcpu=frv and
13035 -mcpu=simple. Add -mcpu=fr550.
13036 (MULTILIB_DIRNAMES): Update accordingly.
13037 (MULTILIB_MATCHES): Use the fr400 multilibs for -mcpu=fr405 and
13038 -mcpu=fr450.
13039 * doc/invoke.texi: Document the new -mcpu={fr550,fr450,fr405},
13040 -mlong-calls and -malign-labels options for FR-V.
13041
13042 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
13043
13044 PR c/8420
13045 * c-tree.h (struct c_declspecs): New.
13046 (struct c_declarator, struct c_type_name, struct c_parm): Update
13047 element types.
13048 (build_array_declarator, grokfield, shadow_tag, shadow_tag_warned,
13049 start_function, start_decl, build_c_parm,
13050 make_pointer_declarator): Update prototypes.
13051 (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
13052 declspecs_add_scspec, declspecs_add_attrs): New.
13053 (split_specs_attrs): Remove.
13054 * c-parse.in (%union): Add dsptype.
13055 (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
13056 declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
13057 declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
13058 declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
13059 declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
13060 declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
13061 declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
13062 declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea, declspecs_ts,
13063 declspecs_nots, declspecs_ts_nosa, declspecs_nots_nosa,
13064 declspecs_nosc_ts, declspecs_nosc_nots, declspecs_nosc, declspecs,
13065 maybe_type_quals_attrs): Change to dsptype.
13066 (struct c_declspec_stack): New.
13067 (current_declspecs, declspec_stack): Change type.
13068 (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): Update to new
13069 structures.
13070 (extdefs): Likewise.
13071 (setspecs): Likewise.
13072 (fndef): Use current_declspecs for empty declspecs list.
13073 (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
13074 declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
13075 declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
13076 declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
13077 declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
13078 declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
13079 declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
13080 declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea): Update to new
13081 structures and helper functions. Update comments.
13082 (typespec_nonattr): Correct comment.
13083 (maybe_type_quals_attrs, typename): Update to new structures.
13084 * c-decl.c (grokdeclarator, build_array_declarator, grokfield,
13085 shadow_tag, shadow_tag_warned, start_function, start_decl,
13086 build_c_parm, make_pointer_declarator,
13087 set_array_declarator_inner, groktypename): Update to new
13088 structures.
13089 (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
13090 declspecs_add_scspec, declspecs_add_attrs): New.
13091 (split_specs_attrs): Remove.
13092 (shadow_tag_warned): Make warning for useless type names a
13093 pedwarn. Give hard error for long, short, signed, unsigned or
13094 _Complex used with struct, union or enum in empty declaration.
13095 Make found_tag a bool.
13096 (grokdeclarator): Remove checks now done at parse time.
13097
13098 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
13099
13100 * c-tree.h (enum c_declarator_kind, struct c_arg_info, struct
13101 c_declarator, struct c_type_name, struct c_parm): New.
13102 (build_array_declarator, set_array_declarator_inner,
13103 get_parm_info, grokfield, groktypename, grokparm, push_parm_decl,
13104 start_function, start_decl, build_c_parm, build_attrs_declarator,
13105 build_function_declarator, make_pointer_declarator, c_cast_expr,
13106 store_parm_decls_newstyle, c_expr_sizeof_type): Update prototypes.
13107 (build_id_declarator): New.
13108 * c-typeck.c (c_cast_expr, c_expr_sizeof_type): Update to new
13109 structures.
13110 * c-decl.c (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES,
13111 ARG_INFO_OTHERS): Remove.
13112 (build_id_declarator): New.
13113 (build_array_declarator, set_array_declarator_inner, groktypename,
13114 start_decl, grokparm, push_parm_decl, grokparms, get_parm_info,
13115 grokfield, start_function, store_parm_decls_newstyle,
13116 store_parm_decls_oldstyle, store_parm_decls,
13117 build_c_parm, build_attrs_declarator, build_function_declarator,
13118 make_pointer_declarator, grokdeclarator): Update to new
13119 structures.
13120 * c-parse.in (%union): Add arginfotype, dtrtype, typenametype and
13121 parmtype.
13122 (declarator, notype_declarator, after_type_declarator,
13123 parm_declarator, parm_declarator_starttypename,
13124 parm_declarator_nostarttypename, array_declarator, typename,
13125 absdcl, absdcl1, absdcl1_ea, absdcl1_noea, direct_absdcl1,
13126 absdcl_maybe_attribute, parm, firstparm, parms, parmlist,
13127 parmlist_1, parmlist_2, parmlist_or_identifiers,
13128 parmlist_or_identifiers_1): Use these types.
13129 (primary, after_type_declarator, parm_declarator_starttypename,
13130 notype_declarator, component_decl, component_declarator,
13131 component_notype_declarator, typename, absdcl,
13132 absdcl_maybe_attribute, absdcl1_ea, direct_absdcl1, parmlist_1,
13133 parmlist_2, parmlist_or_identifiers_1): Update to new structures.
13134
13135 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
13136
13137 * c-tree.h (C_DECL_USED, parser_obstack, in_alignof, in_sizeof,
13138 in_typeof, record_maybe_used_decl, pop_maybe_used,
13139 c_expr_sizeof_expr, c_expr_sizeof_type): New.
13140 * c-decl.c (parser_obstack): New.
13141 (c_init_decl_processing): Initialize parser_obstack.
13142 (c_write_global_declarations_1): Check for used but undefined
13143 static functions.
13144 * c-parse.in (%union): Add otype.
13145 (save_obstack_position): New.
13146 (extdefs): Use it.
13147 (unary_expr): Update in_sizeof and in_alignof. Use
13148 c_expr_sizeof_expr and c_expr_sizeof_type.
13149 (sizeof): Update in_sizeof.
13150 (alignof): Update in_alignof.
13151 (typeof): Update in_typeof.
13152 (typespec_nonreserved_nonattr): Call pop_maybe_used.
13153 * c-typeck.c (in_alignof, in_sizeof, in_typeof, struct
13154 maybe_used_decl, maybe_used_decls, record_maybe_used_decl,
13155 pop_maybe_used, c_expr_sizeof_expr, c_expr_sizeof_type): New.
13156 (build_external_ref): Set C_DECL_USED or call
13157 record_maybe_used_decl if appropriate.
13158 * toplev.c (check_global_declarations): Check TREE_NO_WARNING.
13159
13160 2004-09-08 Eric Christopher <echristo@redhat.com>
13161
13162 * builtins.c: Fix prototype for fold_builtin_atan.
13163
13164 2004-09-08 Eric Christopher <echristo@redhat.com>
13165
13166 * builtins.c (fold_builtin_strlen, fold_builtin_sqrt, fold_builtin_cbrt,
13167 fold_builtin_pow, fold_builtin_sin, fold_builtin_cos, fold_builtin_tan,
13168 fold_builtin_atan): New functions. Migrate function bodies...
13169 (fold_builtin_1): ... from here.
13170
13171 2004-09-09 Alan Modra <amodra@bigpond.net.au>
13172
13173 * config/rs6000/rs6000.c (rs6000_stack_info): Correct alignment of
13174 save_size.
13175
13176 2004-09-08 David Edelsohn <edelsohn@gnu.org>
13177
13178 * config/rs6000/power4.md (power4-lmul): du4 feeds iu1.
13179 * config/rs6000/power5.md (power5-lmul): Same.
13180
13181 2004-09-08 Richard Henderson <rth@redhat.com>
13182
13183 PR rtl-opt/17186
13184 * function.c (expand_function_end): Have fall-off-the-end
13185 return path jump around return register setup.
13186
13187 2004-09-08 Eric Botcazou <ebotcazou@libertysurf.fr>
13188
13189 * config/sparc/sparc.c (sparc_indent_opcode): New variable.
13190 (output_return): Do not test for the presence of the 'unimp' insn.
13191 Use 'current_function_uses_only_leaf_regs' and 'final_sequence'
13192 as predicates instead of custom ones. Return raw strings when
13193 possible.
13194 (output_sibcall): Likewise. Concatenate strings.
13195 (output_ubranch): Remove kludge for TurboSPARC.
13196 (output_cbranch): Remove 'noop' parameter. Do not output 'nop'.
13197 (output_v9branch): Likewise.
13198 (print_operand): Use 'final_sequence' instead of 'dbr_sequence_length'.
13199 <#>: Set sparc_indent_opcode if the delay slot is filled.
13200 <(>: Likewise.
13201 <)>: New operand to emit the displacement from the saved PC on return.
13202 <@>: Remove.
13203 * config/sparc/sparc.h (sparc_indent_opcode): Declare it.
13204 (ASM_OUTPUT_OPCODE): New macro.
13205 (PRINT_OPERAND_PUNCT_VALID_P): Remove '^' and add ')'.
13206 * config/sparc/sparc.md (normal_branch, inverted_branch,
13207 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
13208 inverted_fpe_branch): Adjust call to output_cbranch.
13209 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust
13210 call to output_v9branch.
13211 * config/sparc/sparc-protos.h (output_cbranch): Adjust.
13212 (output_v9branch): Likewise.
13213
13214 2004-09-08 Devang Patel <dpatel@apple.com>
13215
13216 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -segaddr,
13217 -segs_read_only_addr and -segs_read_write_addr.
13218 (WORD_SWITCH_TAKES_ARG): Same.
13219 (LINK_SPEC): Same.
13220 * doc/invoke.texi: Document -segaddr, -segs_read_only_addr and
13221 -segs_read_write_addr.
13222
13223 2004-09-08 Richard Henderson <rth@redhat.com>
13224
13225 * function.c (reference_callee_copied): New.
13226 (assign_parm_setup_reg): Use it.
13227 * calls.c (initialize_argument_information): Likewise.
13228 (emit_library_call_value_1): Likewise.
13229 * function.h (reference_callee_copied): Declare.
13230
13231 * target.h (struct gcc_target): Add callee_copies.
13232 * target-def.h (TARGET_CALLEE_COPIES): New.
13233 (TARGET_PASS_BY_REFERENCE): Update default.
13234 * expr.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13235 * targhooks.c (hook_callee_copies_named): New.
13236 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Rename from
13237 hook_pass_by_reference_false.
13238 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): New.
13239 * targhooks.h: Update decls.
13240 * config/arc/arc.c (TARGET_CALLEE_COPIES): New.
13241 * config/arc/arc.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13242 * config/frv/frv-protos.h (frv_function_arg_callee_copies): Remove.
13243 * config/frv/frv.c (frv_function_arg_callee_copies): Remove.
13244 * config/frv/frv.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13245 * config/iq2000/iq2000.c (TARGET_CALLEE_COPIES): New.
13246 * config/iq2000/iq2000.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13247 * config/m68hc11/m68hc11.c (TARGET_CALLEE_COPIES): New.
13248 * config/m68hc11/m68hc11.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13249 * config/mips/mips.c (TARGET_CALLEE_COPIES): New.
13250 (mips_callee_copies): New.
13251 * config/mips/mips.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13252 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): New.
13253 * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13254 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): New.
13255 * config/mn10300/mn10300.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13256 * config/pa/pa.c (TARGET_CALLEE_COPIES): New.
13257 * config/pa/pa.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13258 * config/sh/sh.c (sh_callee_copies): New.
13259 (TARGET_CALLEE_COPIES): New.
13260 * config/sh/sh.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13261 * config/v850/v850.c (TARGET_CALLEE_COPIES): New.
13262 * config/v850/v850.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13263 * doc/tm.texi (TARGET_CALLEE_COPIES): Replace documentation
13264 for FUNCTION_ARG_CALLEE_COPIES.
13265 * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Update.
13266
13267 2004-09-08 Devang Patel <dpatel@apple.com>
13268
13269 * tree-if-conv.c (find_phi_replacement_condition): Return true
13270 edge block.
13271 (replace_phi_with_cond_modify_expr): Select conditional expr args
13272 based on true edge basic block.
13273
13274 2004-09-08 Jan Hubicka <jh@suse.cz>
13275
13276 * tree-ssa-operands.c (add_stmt_operand): Use V_MUST_DEF even for
13277 variables being alias set.
13278
13279 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
13280
13281 * final.c (shorten_branches, final, get_insn_template,
13282 output_alternate_entry_point, final_scan_insn, alter_subreg,
13283 alter_cond, output_operand, asm_fprintf, final_forward_branch_p,
13284 leaf_renumber_regs_insn): Use gcc_assert and gcc_unreachable.
13285 * fix-header.c (lookup_std_proto): Likewise.
13286 * flow.c (first_insn_after_basic_block_note, verify_wide_reg,
13287 verify_local_live_at_start, update_life_info, mark_reg,
13288 calculate_global_regs_live, allocate_reg_life_data,
13289 init_propagate_block_info, mark_set_regs, flush_reg_cond_reg_1,
13290 ior_reg_cond, not_reg_cond, and_reg_cond, elim_reg_cond,
13291 attempt_auto_inc, mark_used_reg, mark_used_regs): Likewise.
13292 * fold-const.c (force_fit_type, div_and_round_double,
13293 may_negate_without_overflow_p, int_const_binop, const_binop,
13294 size_binop, size_diffop, fold_convert_const, fold_convert,
13295 invert_tree_comparison, swap_tree_comparison,
13296 comparison_to_compcode, compcode_to_comparison, invert_truthvalue,
13297 range_binop, make_range, fold_cond_expr_with_comparison,
13298 fold_div_compare, fold, fold_checksum_tree, fold_negate_const,
13299 fold_abs_const, fold_not_const, fold_relational_const, round_up,
13300 round_down): Likewise.
13301 * function.c (find_function_data, assign_stack_temp_for_type,
13302 instantiate_virtual_regs_lossage, aggregate_value_p,
13303 assign_parm_find_entry_rtl, assign_parm_setup_block,
13304 expand_function_start, expand_function_end, keep_stack_depressed,
13305 handle_epilogue_set, thread_prologue_and_epilogue_insns): Likewise.
13306
13307 2004-09-08 Daniel Berlin <dberlin@dberlin.org>
13308
13309 * Makefile.in (tree-loop-linear.o): Added.
13310 (OBJS-common): Add tree-loop-linear.o
13311 * common.opt: New flag, ftree-loop-linear.
13312 * timevar.def: New timevar, TV_TREE_LOOP_LINEAR.
13313 * tree-flow.h: Add prototype for linear_transform_loops.
13314 * tree-optimize.c: Add linear transform after vectorization.
13315 * tree-pass.h: Add struct pass_linear_transform.
13316 * tree-ssa-loop.c: Add pass_linear_transform.
13317 * tree-loop-linear.c: New file.
13318 * lambda-code.c: gcc_assertify.
13319 (gcc_loop_to_lambda_loop): Handle all exit tests.
13320 Handle case where we have (invariant >= induction var).
13321 (find_induction_var_from_exit_cond): Ditto.
13322
13323 2004-09-08 Jie Zhang <zhangjie@magima.com.cn>
13324
13325 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
13326 memory tag is call clobbered, so are its aliases.
13327 (group_aliases): When two memory tags being grouped, if one is
13328 call clobbered, so are the other and its aliases.
13329 (add_may_alias): Remove call-clobbering stuff.
13330 (replace_may_alias): Likewise.
13331 (merge_pointed_to_info): Merge pt_global_mem
13332
13333 2004-09-08 Jan Hubicka <jh@suse.cz>
13334
13335 * cgraph.c (cgraph_remove_node): Free DECL_INITIAL field of node.
13336 * cgraphunit.c (verify_cgraph): Don't verify on syntax errors.
13337 (cgraph_expand_function): Remove stale cgraph edges of currently
13338 compiled function; fix non-unit-at-a-time code copying function
13339 node for later reuse.
13340
13341 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
13342
13343 * vec.c (vec_p_reserve, vec_o_reserve): Rename to ...
13344 (vec_gc_p_reserve, vec_gc_o_reserve): ... here. Clone to
13345 (vec_heap_p_reserve, vec_heap_o_reserve): ... here, adjust.
13346 (vec_gc_free, vec_heap_free): New.
13347 * vec.h (DEF_VEC_GC_P, DEF_VEC_MALLOC_P): New.
13348 (DEF_VEC_P): Add allocator argument. Adjust.
13349 (DEF_VEC_GC_O, DEF_VEC_MALLOC_O): New.
13350 (DEF_VEC_O): Add allocator argument. Adjust.
13351 (VEC(free)): New.
13352
13353 * tree.h (tree): Define a GC'd vector.
13354 * lamba-code.c (lambda_loop): Likewise.
13355 * value-prof.h (histogram_value): Likewise.
13356
13357 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
13358
13359 * emit-rtl.c (immed_double_const): Use gcc_assert and gcc_unreachable.
13360 (gen_rtx_SUBREG, gen_reg_rtx, mark_user_reg, subreg_hard_regno,
13361 gen_lowpart_common, gen_highpart, gen_highpart_mode,
13362 subreg_highpart_offset, operand_subword, operand_subword_force,
13363 mem_expr_equal_p, set_mem_attributes_minus_bitpos,
13364 set_mem_alias_set, change_address_1, verify_rtx_sharing,
13365 copy_most_rtx, set_first_insn, set_last_insn, prev_cc0_setter,
13366 try_split, add_insn_after, add_insn_before, remove_insn,
13367 remove_unnecessary_notes, emit_insn_before, emit_jump_insn_before,
13368 emit_call_insn_before, emit_insn_after, emit_jump_insn_after,
13369 emit_call_insn_after, emit_insn, emit_jump_insn, emit_call_insn,
13370 set_unique_reg_note, emit, push_to_full_sequence, copy_insn_1,
13371 gen_const_vector_0, emit_copy_of_insn_after): Likewise.
13372 * et-forest.c (set_prev, set_next, et_check_occ_sanity,
13373 record_path_before_1, check_path_after_1, check_path_after): Likewise.
13374 * except.c (gen_eh_region, resolve_one_fixup_region,
13375 remove_unreachable_regions, convert_from_eh_region_ranges_1,
13376 add_ehl_entry, duplicate_eh_region_1, build_post_landing_pads,
13377 connect_post_landing_pads, sjlj_emit_function_exit,
13378 remove_exception_handler_label, remove_eh_handler,
13379 reachable_next_level, collect_one_action_chain,
13380 output_function_exception_table): Likewise.
13381 * explow.c (trunc_int_for_mode, copy_to_mode_reg,
13382 optimize_save_area_alloca, allocate_dynamic_stack_space,
13383 probe_stack_range, hard_function_value): Likewise.
13384 * expmed.c (mode_for_extraction, store_bit_field,
13385 store_fixed_bit_field, extract_bit_field, expand_shift,
13386 expand_mult_const, expand_mult, choose_multiplier,
13387 expand_mult_highpart, expand_divmod, emit_store_flag,
13388 do_cmp_and_jump): Likewise.
13389 * expr.c (convert_move, convert_modes, move_by_pieces,
13390 move_by_pieces_ninsns, move_by_pieces_1, emit_block_move,
13391 move_block_from_reg, gen_group_rtx, emit_group_load,
13392 emit_group_move, emit_group_store, use_reg, use_regs,
13393 can_store_by_pieces, store_by_pieces, store_by_pieces_1,
13394 emit_move_insn, emit_move_insn_1, emit_push_insn,
13395 expand_assignment, store_expr, count_type_elements,
13396 store_constructor, store_field, safe_from_p, expand_var,
13397 expand_expr_addr_expr, expand_expr_real_1, do_store_flag): Likewise.
13398
13399 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
13400
13401 * dbxout.c (dbxout_type, dbxout_type_name, dbxout_symbol): Use
13402 gcc_assert and gcc_unreachable.
13403 * ddg.c (create_ddg_dependence, add_deps_for_def,
13404 add_deps_for_use, create_ddg, add_edge_to_ddg): Likewise.
13405 * df.c (df_ref_unlink, df_ref_record, df_uses_record,
13406 df_reg_def_chain_create, df_reg_use_chain_create, df_analyze,
13407 df_insn_delete, df_refs_reg_replace, df_ref_reg_replace,
13408 df_insns_modify, df_pattern_emit_before, df_bb_reg_live_start_p,
13409 df_bb_reg_live_end_p, df_bb_regs_lives_compare,
13410 df_bb_single_def_use_insn_find, dataflow_set_a_op_b,
13411 dataflow_set_copy, hybrid_search, diagnostic.c,
13412 diagnostic_build_prefix, diagnostic_count_diagnostic): Likewise.
13413 * dojump.c (do_jump): Likewise.
13414 * dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
13415 compute_dom_fast_query, calculate_dominance_info,
13416 free_dominance_info, get_immediate_dominator,
13417 set_immediate_dominator, get_dominated_by,
13418 redirect_immediate_dominators, nearest_common_dominator,
13419 dominated_by_p, verify_dominators, recount_dominator,
13420 iterate_fix_dominators, add_to_dominance_info,
13421 delete_from_dominance_info): Likewise.
13422 * dwarf2asm.c (size_of_encoded_value, eh_data_format_name,
13423 dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
13424 dw2_force_const_mem, dw2_asm_output_encoded_addr_rtx): Likewise.
13425 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes, reg_save,
13426 initial_return_save, stack_adjust_offset, dwarf2out_stack_adjust,
13427 flush_queued_reg_saves, dwarf2out_frame_debug_expr,
13428 dwarf2out_frame_debug, dw_cfi_oprnd1_desc, output_cfi,
13429 output_call_frame_info, output_loc_operands, build_cfa_loc,
13430 decl_ultimate_origin, AT_flag, AT_int, AT_unsigned, AT_string,
13431 AT_string_form, add_AT_specification, AT_ref, set_AT_ref_external,
13432 AT_loc, AT_loc_list, AT_addr, AT_lbl, add_child_die,
13433 splice_child_die, attr_checksum, same_dw_val_p,
13434 break_out_includes, build_abbrev_table, size_of_die, mark_dies,
13435 unmark_dies, value_format, output_loc_list, output_die,
13436 output_pubnames, output_aranges, base_type_die, is_base_type,
13437 modified_type_die, dbx_reg_number, multiple_reg_loc_descriptor,
13438 mem_loc_descriptor, loc_descriptor, loc_descriptor_from_tree_1,
13439 field_byte_offset, add_data_member_location_attribute,
13440 add_const_value_attribute, rtl_for_decl_location,
13441 add_location_or_const_value_attribute, add_byte_size_attribute,
13442 add_bit_offset_attribute, add_bit_size_attribute,
13443 add_abstract_origin_attribute, pop_decl_scope, scope_die_for,
13444 decl_start_label, gen_formal_parameter_die,
13445 gen_type_die_for_member, gen_subprogram_die, gen_label_die,
13446 gen_typedef_die, gen_type_die, gen_tagged_type_instantiation_die,
13447 force_decl_die, force_type_die, gen_decl_die,
13448 dwarf2out_imported_module_or_decl, prune_unused_types_prune,
13449 dwarf2out_finish): Likewise.
13450
13451 2004-09-08 Andreas Tobler <toa@pop.agri.ch>
13452
13453 * Makefile.in (builtins.o): Depend on tree-mudflap.h.
13454 * builtins.c: Include tree-mudflap.h.
13455
13456 2004-09-08 Uros Bizjak <uros@kss-loka.si>
13457
13458 * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
13459 force operand 0.0 into register in XFmode. Also do not force
13460 operand 0.0 into register if !TARGET_CMOVE.
13461 * config/i386/i386.md (*cmpfp_0): Delete. Remove comment.
13462 (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf): New patterns to
13463 implement ftst x87 instruction.
13464 (*fp_jcc_7): New insn pattern. Change corresponding split
13465 pattern to handle "general_operand" instead of
13466 "nonimmediate_operand".
13467
13468 2004-09-08 Ben Elliston <bje@au.ibm.com>
13469
13470 * doc/rtl.texi (Insns): Document NOTE_INSN_FUNCTION_BEG.
13471
13472 2004-09-07 Frank Ch. Eigler <fche@redhat.com>
13473
13474 * builtins.c (std_gimplify_va_arg_expr): Mark INDIRECT_REF nodes
13475 generated from standard va_arg expansion.
13476 * tree-mudflap.c (mx_xform_derefs_1): Omit instrumentation from
13477 marked nodes.
13478 (mf_varname_tree, mf_file_function_line_tree): Add some support
13479 for column numbers if compiled with USE_MAPPED_LOCATION.
13480
13481 2004-09-07 Ziemowit Laski <zlaski@apple.com>
13482
13483 * c-decl.c (groktypename_in_parm_context): Remove function.
13484 * c-tree.h (groktypename_in_parm_context): Remove prototype.
13485
13486 2004-09-07 Ziemowit Laski <zlaski@apple.com>
13487
13488 * Makefile.in (c-parse.o): Depend on $(C_COMMON_H).
13489 * c-parse.in: Include c-common.h instead of objc-act.h.
13490 (ivar_decl_list, ivar_decls, ivar_decl, ivars, ivar_declarator,
13491 myparms, myparm): Remove %type declarations.
13492 (methodtype, optparms, OBJC_TYPE_QUAL, objc_quals, objc_qual,
13493 objc_typename, objc_try_catch_stmt, optellipsis): Add %type
13494 declarations.
13495 (objc_inherit_code, objc_public_flag): Remove.
13496 (typespec_nonreserved_nonattr): Call
13497 objc_get_protocol_qualified_type() instead of get_static_reference()
13498 and get_protocol_reference().
13499 (stmt_nocomp): Call grokparm() on @catch parameter.
13500 (objcdef): Move semantic action to objc_finish_implementation().
13501 (classdef): Move semantic action to objc_start_class_interface(),
13502 objc_continue_interface(), objc_finish_interface(),
13503 objc_start_class_implementation(), objc_continue_implementation(),
13504 objc_start_category_interface() and
13505 objc_start_category_implementation().
13506 (protocoldef): Move semantic actions to objc_start_protocol() and
13507 objc_finish_interface().
13508 (ivar_decl_list): Remove nonterminal.
13509 (visibility_spec): Move semantic actions to objc_set_visibility().
13510 (ivar_decls): Remove assignment to $$.
13511 (ivar_decl): Rephrase in terms of component_decl; call
13512 objc_add_instance_variable().
13513 (ivars, ivar_declarator): Remove nonterminals.
13514 (opt_semi): New nonterminal.
13515 (methodtype): Remove semantic actions.
13516 (methoddef): Move semantic actions to objc_set_method_type(),
13517 objc_start_method_definition() and objc_finish_method_definition().
13518 (methodproto): Move semantic actions to objc_set_method_type() and
13519 objc_add_method_declaration().
13520 (methoddecl): Use objc_typename instead of typename; move semantic
13521 actions to objc_build_method_signature().
13522 (optarglist, myxdecls, mydecl, myparms, myparm): Remove nonterminals.
13523 (optparmlist): Express in terms of optparms and optellipsis.
13524 (optparms, optellipsis, objc_qual, objc_quals, objc_typename): New
13525 nonterminals.
13526 (keyworddecl): Use objc_typename instead of typename.
13527 (rid_to_yy): Mark RID_IN, RID_OUT, RID_INOUT, RID_BYCOPY, RID_BYREF
13528 and RID_ONEWAY as returning OBJC_TYPE_QUAL to yyparse().
13529
13530 2004-09-08 Alan Modra <amodra@bigpond.net.au>
13531
13532 * doc/tm.texi (MD_UNWIND_SUPPORT): Document.
13533 (MD_FALLBACK_FRAME_STATE_FOR): Update.
13534 * unwind-dw2.c (MD_UNWIND_SUPPORT): #include if defined.
13535 (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
13536 (MD_FROB_UPDATE_CONTEXT): Remove default.
13537 (uw_update_context_1): Instead #ifdef invocation.
13538 * config/ia64/unwind-ia64.c (MD_UNWIND_SUPPORT): #include if defined.
13539 (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
13540 * config/alpha/gnu.h (MD_FALLBACK_FRAME_STATE_FOR): Don't undef.
13541 (MD_UNWIND_SUPPORT): Undefine this instead.
13542 * config/i386/gnu.h: Likewise.
13543 * config/alpha/linux-unwind.h: New file, macro converted to
13544 function, extracted from..
13545 * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): ..this.
13546 (MD_UNWIND_SUPPORT): Define.
13547 * config/alpha/vms-unwind.h, config/alpha/vms.h: Likewise.
13548 * config/i386/linux-unwind.h, config/i386/linux.h,
13549 config/i386/linux64.h: Likewise.
13550 * config/ia64/linux-unwind.h, config/ia64/linux.h: Likewise.
13551 MD_HANDLE_UNWABI too.
13552 * config/mips/linux-unwind.h, config/mips/linux.h: Likewise.
13553 * config/pa/linux-unwind.h, config/pa/pa32-linux.h: Likewise.
13554 * config/rs6000/darwin-unwind.h, config/rs6000/darwin.h: Likewise.
13555 * config/s390/linux-unwind.h, config/s390/linux.h: Likewise.
13556 * config/sparc/linux-unwind.h, config/sparc/linux.h,
13557 config/sparc/linux64.h: Likewise.
13558 * config/sh/linux-unwind.h, config/sh/linux.h: Likewise, but merge
13559 SH_FALLBACK_FRAME_FLOAT_STATE into sh_fallback_frame_state.
13560 * config/rs6000/linux-unwind.h, config/rs6000/linux.h,
13561 config/rs6000/linux64.h: Likewise. Split out get_sigcontext
13562 function. Use ARG_POINTER_REGNUM for 32-bit temp reg too.
13563
13564 2004-09-07 Jan Hubicka <jh@suse.cz>
13565
13566 * cse.c (fold_rtx): Avoid building of
13567 (CONST (MINUS (CONST_INT) (SYMBOL_REF)))
13568
13569 * tree-ssa-pre.c (grand_bitmap_obstack): New.
13570 (value_insert_into_set_bitmap, bitmap_set_new): Use the obstack.
13571 (init_pre): Initialize obstack.
13572 (fini_pre): Free obstack.
13573
13574 2004-09-07 David Daney <ddaney@avtrex.com>
13575
13576 * config.gcc: Added support for --with-divide=[breaks|traps] for
13577 mips targets.
13578 * config/mips/mips.h (MASK_DIVIDE_BREAKS): New target_flags bit.
13579 (TARGET_DIVIDE_TRAPS): New macro.
13580 (TARGET_SWITCHES): Added -mdivide-traps and -mdivide-breaks.
13581 (OPTION_DEFAULT_SPECS): Added --with-divide= support.
13582 * config/mips/mips.c (mips_idiv_insns): Generate proper count on
13583 GENERATE_DIVIDE_TRAPS.
13584 (mips_output_division): Emit conditional trap if
13585 GENERATE_DIVIDE_TRAPS is set.
13586 * doc/install.texi: Document --with-divide.
13587 * doc/invoke.texi: Document -mdivide-traps and -mdivide-breaks.
13588
13589 2004-09-07 Caroline Tice <ctice@apple.com>
13590
13591 * cfgrtl.c (rtl_verify_flow_info_1): Add new edge flag,
13592 EDGE_CROSSING, to flags test case.
13593
13594 2004-09-07 Jan Hubicka <jh@suse.cz>
13595
13596 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Deal with '<'
13597 class too.
13598
13599 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
13600
13601 * cfganal.c (flow_depth_first_order_compute, dfs_enumerate_from,
13602 cfgbuild.c, inside_basic_block_p, control_flow_insn_p,
13603 make_label_edge, make_edges, find_basic_blocks_1): Use gcc_assert
13604 or gcc_unreachable.
13605 * cfg.c (clear_edges, initialize_bb_rbi, compact_blocks,
13606 remove_edge, alloc_aux_for_blocks, free_aux_for_blocks,
13607 alloc_aux_for_edges, free_aux_for_edges): Likewise.
13608 * cfgcleanup.c (try_forward_edges,
13609 merge_blocks_move_predecessor_nojumps,
13610 merge_blocks_move_successor_nojumps): Likewise.
13611 * cfgexpand.c (expand_gimple_cond_expr,
13612 expand_gimple_tailcall): Likewise.
13613 * cfghooks.c (duplicate_block): Likewise.
13614 * cfglayout.c (record_effective_endpoints,
13615 insn_locators_initialize, change_scope, fixup_reorder_chain,
13616 verify_insn_chain, fixup_fallthru_exit_predecessor,
13617 duplicate_insn_chain, cfg_layout_finalize): Likewise.
13618 * cfgloopanal.c (check_irred): Likewise.
13619 * cfgloop.c (superloop_at_depth, flow_loops_free,
13620 flow_loop_entry_edges_find, flow_loops_find,
13621 flow_loop_outside_edge_p, get_loop_body,
13622 get_loop_body_in_dom_order, get_loop_body_in_bfs_order,
13623 get_loop_exit_edges, num_loop_branches, cancel_loop,
13624 verify_loop_structure): Likewise.
13625 cfgloopmanip.c (find_path, remove_path, loop_delete_branch_edge,
13626 duplicate_loop_to_header_edge, create_preheader,
13627 create_loop_notes): Likewise.
13628 * cfgrtl.c (delete_insn, try_redirect_by_replacing_jump,
13629 edirect_branch_edge, force_nonfallthru_and_redirect,
13630 rtl_split_edge, insert_insn_on_edge, commit_one_edge_insertion,
13631 commit_edge_insertions, commit_edge_insertions_watch_calls,
13632 purge_dead_edges, cfg_layout_redirect_edge_and_branch,
13633 cfg_layout_redirect_edge_and_branch_force,
13634 cfg_layout_merge_blocks, rtl_flow_call_edges_add): Likewise.
13635 * cgraph.c (cgraph_node, cgraph_create_edge, cgraph_remove_edge,
13636 cgraph_redirect_edge_callee, cgraph_global_info, cgraph_rtl_info,
13637 cgraph_varpool_node): Likewise.
13638 * cgraphunit.c (cgraph_finalize_function,
13639 cgraph_finalize_compilation_unit, cgraph_mark_functions_to_output,
13640 cgraph_expand_function, cgraph_remove_unreachable_nodes,
13641 cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
13642 cgraph_mark_inline, cgraph_expand_all_functions,
13643 cgraph_build_static_cdtor): Likewise.
13644 * combine.c (do_SUBST, try_combine, subst, combine_simplify_rtx,
13645 simplify_logical, distribute_notes, insn_cuid): Likewise.
13646 * conflict.c (conflict_graph_add, print_conflict): Likewise.
13647 * coverage.c (rtl_coverage_counter_ref, tree_coverage_counter_ref,
13648 coverage_checksum_string): Likewise.
13649 * cse.c (make_new_qty, make_regs_eqv, insert, invalidate,
13650 hash_rtx, exp_equiv_p, cse_basic_block, count_reg_usage,
13651 cse_cc_succs, cse_condition_code_reg): Likewise.
13652 * cselib.c (entry_and_rtx_equal_p, remove_useless_values,
13653 rtx_equal_for_cselib_p, wrap_constant, cselib_hash_rtx,
13654 new_cselib_val, cselib_subst_to_values, cselib_invalidate_regno,
13655 cselib_record_set): Likewise.
13656
13657 2004-09-07 Jan Hubicka <jh@suse.cz>
13658
13659 * tree-ssa-loop-ivopts.c (iv_value): Avoid invalid sharing on niter.
13660
13661 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
13662
13663 * builtins.c (fold_builtin_strchr): Use build_int_cst, not
13664 fold_convert.
13665 (fold_builtin_strpbrk): Likewise.
13666 * expr.c (array_ref_low_bound): Likewise.
13667 * tree-scalar-evolution.c (chrec_is_positive, add_to_evolution_1,
13668 interpret_rhs_modify_expr, number_of_iterations_in_loop): Likewise.
13669 * tree-sra.c (generate_element_zero): Likewise.
13670 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
13671 * tree-ssa-loop-ivopts.c (determine_biv_step, idx_find_step,
13672 add_old_iv_candidates, add_iv_candidates): Likewise.
13673 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
13674
13675 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
13676
13677 * c-aux-info.c (gen_type): Use gcc_assert or gcc_unreachable.
13678 * c-common.c (c_type_hash, c_common_nodes_and_builtins,
13679 c_expand_expr, boolean_increment, nonnull_check_p,
13680 check_function_arguments_recurse, fold_offsetof_1): Likewise.
13681 * c-cppbuiltin.c (define__GNUC__, builtin_define_stdint_macros,
13682 builtin_define_type_max): Likewise.
13683 * c-decl.c (bind, pop_scope, merge_decls, pushdecl_top_level,
13684 implicit_decl_warning, builtin_function, build_compound_literal,
13685 complete_array_type, grokdeclarator, get_parm_info,
13686 start_function, store_parm_decls_oldstyle,
13687 c_write_global_declarations): Likewise.
13688 * c-format.c (get_constant, decode_format_attr,
13689 maybe_read_dollar_number, get_flag_spec, check_format_arg,
13690 check_format_types, format_type_warning,
13691 find_char_info_specifier_index, init_dynamic_asm_fprintf_info,
13692 init_dynamic_diag_info, handle_format_attribute): Likewise.
13693 * c-gimplify.c (push_context, pop_context, finish_bc_block):
13694 * c-lex.c (c_lex_with_flags, lex_string): Likewise.
13695 * c-objc-common.c (c_tree_printer): Likewise.
13696 * c-pch.c (pch_init): Likewise.
13697 * c-pragma.c (maybe_apply_pragma_weak): Likewise.
13698 * c-pretty-print.c (pp_c_tree_decl_identifier): Likewise.
13699 * c-typeck.c (c_incomplete_type_error, composite_type,
13700 common_pointer_type, common_type, same_translation_unit_p,
13701 tagged_types_tu_compatible_p, finish_init, pop_init_level,
13702 set_designator, set_nonincremental_init_from_string,
13703 process_init_element, c_finish_if_stmt): Likewise.
13704 * caller-save.c (init_caller_save, save_call_clobbered_regs,
13705 insert_restore, insert_save, insert_one_insn): Likewise.
13706 * calls.c (emit_call_1, compute_argument_block_size,
13707 precompute_arguments, expand_call, emit_library_call_value_1,
13708 store_one_arg): Likewise.
13709
13710 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
13711
13712 * configure.ac (enable-checking): Add release option. Reorganize
13713 to avoid repetition.
13714 * configure: Rebuilt.
13715 * doc/install.texi (enable-checking): Amend documentation.
13716
13717 2004-09-06 H.J. Lu <hongjiu.lu@intel.com>
13718
13719 PR bootstrap/17313
13720 * Makefile.in (specs.ready): Depend on cc1$(exeext).
13721
13722 2004-09-06 James E Wilson <wilson@specifixinc.com>
13723
13724 * config/mips/mips.md (movsf_hardfloat, movdf_hardfloat_64bit,
13725 movdf_hardfloat_32bit): Split fG into two alternatives.
13726 (movv2sf_hardfloat_64bit): Split fYG into two alternatives.
13727
13728 * emit-rtl.c (try_split): Check INSN_P before may_trap_p call.
13729
13730 2004-09-06 Eric Botcazou <ebotcazou@libertysurf.fr>
13731
13732 * final.c (output_in_slot): Delete.
13733 (final_scan_insn): Revert 2004-09-03 change.
13734 (output_asm_insn): Likewise.
13735 * config/sparc/sparc.c (output_return): Likewise.
13736 (output_sibcall): Likewise.
13737
13738 2004-09-06 Jan Hubicka <jh@suse.cz>
13739
13740 * loop.c (loop_dump_aux): Do not print RTL when not available.
13741 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates): Do not use
13742 frontend specific type nodes.
13743 (produce_memory_decl_rtl): Break out from ...
13744 (prepare_decl_rtl): ... here. Handle ADDR_EXPR correctly.
13745 (get_computation_at): Avoid random tree sharing.
13746 (tree_ssa_iv_optimize): Verify tree sharing; dump loops.
13747
13748 2004-09-06 Zack Weinberg <zack@codesourcery.com>
13749
13750 * Makefile.in (rtl.o, bitmap.o): Correct dependencies, remove
13751 unnecessary commands.
13752
13753 2004-09-06 Mohan Embar <gnustuff@thisiscool.com>
13754
13755 * Makefile.in (rtl.o): Remove -DGENERATOR_FILE.
13756 (bitmap.o): Likewise.
13757
13758 2004-09-06 Paolo Bonzini <bonzini@gnu.org>
13759
13760 Unify the management of RTL and tree-level dump files.
13761
13762 * cfgexpand.c (tree_expand_cfg): Fix incorrect comment.
13763 Don't print function name to the dump file, the pass manager
13764 would do this for us. Add code from the top of
13765 rest_of_compilation, up to the initial RTL dump.
13766 * passes.c (rest_of_handle_jump): Call fixup_tail_calls and
13767 close the DFI_sibling dump file.
13768 (rest_of_compilation): Don't do that here. Remove code up to the
13769 initial RTL dump.
13770 (init_optimization_passes): Remove.
13771 (pass_rest_of_compilation): Change pass name to NULL.
13772 * toplev.c (lang_dependent_init): Do not use an empty dump file prefix.
13773 Do not call init_optimization_passes.
13774 * toplev.h (init_optimization_passes): Remove.
13775
13776 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
13777 finish_graph_dump_file): Remove SUFFIX parameter.
13778 * graph.h (print_rtl_graph_with_bb, clean_graph_dump_file,
13779 finish_graph_dump_file): Likewise.
13780
13781 * tree-pass.h (struct tree_opt_pass): Add `letter' field.
13782 * cfgexpand.c (pass_expand): Adjust.
13783 * gimple-low.c (pass_lower_cf, pass_remove_useless_vars): Adjust.
13784 * passes.c (pass_rest_of_compilation): Adjust.
13785 * predict.c (pass_profile): Adjust.
13786 * tree-alias-common.c (pass_build_pta, pass_del_pta): Adjust.
13787 * tree-cfg.c (pass_build_cfg, pass_remove_useless_stmts,
13788 pass_split_crit_edges, pass_warn_function_return): Adjust.
13789 * tree-complex.c (pass_lower_vector_ssa, pass_pre_expand): Adjust.
13790 * tree-dfa.c (pass_referenced_vars): Adjust.
13791 * tree-eh.c (pass_lower_eh): Adjust.
13792 * tree-if-conv.c (pass_build_ssa): Adjust.
13793 * tree-into-ssa.c (pass_build_ssa): Adjust.
13794 * tree-mudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
13795 * tree-nomudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
13796 * tree-nrv.c (pass_nrv): Adjust.
13797 * tree-optimize.c (pass_gimple, pass_all_optimizations,
13798 pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
13799 pass_init_datastructures): Adjust.
13800 * tree-outof-ssa.c (pass_del_ssa): Adjust.
13801 * tree-profile.c (pass_tree_profile): Adjust.
13802 * tree-sra.c (pass_sra): Adjust.
13803 * tree-ssa-alias.c (pass_may_alias): Adjust.
13804 * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Adjust.
13805 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Adjust.
13806 * tree-ssa-dce.c (pass_dce, pass_cd_dce): Adjust.
13807 * tree-ssa-dom.c (pass_dominator): Adjust.
13808 * tree-ssa-dse.c (pass_dse): Adjust.
13809 * tree-ssa-forwprop.c (pass_forwprop): Adjust.
13810 * tree-ssa-if-conv.c (pass_if_conversion): Adjust.
13811 * tree-ssa-loop-ch.c (pass_ch): Adjust.
13812 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_lim,
13813 pass_loop_done, pass_complete_unroll, pass_iv_canon,
13814 pass_iv_optimize, pass_vectorize): Adjust.
13815 * tree-ssa-phiopt.c (pass_phiopt): Adjust.
13816 * tree-ssa-pre.c (pass_pre, pass_fre): Adjust.
13817 * tree-ssa.c (pass_redundant_phi, pass_early_warn_uninitialized,
13818 pass_late_warn_uninnitialized): Adjust.
13819 * tree-tailcall.c (pass_tail_recursion, pass_tail_calls): Adjust.
13820
13821 * Makefile.in (tree-dump.o): Add new dependencies.
13822 * cgraph.c (cgraph_remove_node): TDF_all -> TDF_tree_all.
13823 * cgraphunit.c (cgraph_preserve_function_body_p, cgraph_optimize):
13824 Likewise.
13825 * toplev.c (dump_file_name): New.
13826 * tree-dump.c (dump_enable_all): Add LETTER parameter.
13827 (struct dump_file_info): Add NUM and LETTER fields.
13828 (dump_files): Adjust and add RTL dump files.
13829 (dump_register): Add NUM and LETTER fields.
13830 (get_dump_file_name, dump_initialized_p, enable_rtl_dump_file): New.
13831 (dump_begin): Use get_dump_file_name.
13832 (dump_switch_p_1): Adjust call to dump_enable_all.
13833 * tree-dump.h (dump_register): Adjust prototype.
13834 * tree-optimize.c (register_one_dump_file): Take dump file index.
13835 Support flags for RTL dumps.
13836 (register_dump_files): Fill in NUM field of struct dump_file_info.
13837 Track properties both when the gate is executed and when it is not.
13838 (execute_todo): Dump RTL. Add PROPERTIES parameter.
13839 (execute_one_pass): Pass properties to execute_todo. Handle VCG
13840 dumps of RTL.
13841 * tree-pass.h (dump_file_name): New.
13842 * tree.h (TDF_TREE, TDF_RTL, get_dump_file_name, dump_initialized_p):
13843 New.
13844
13845 * Makefile.in (passes.o): Add new dependencies.
13846 * passes.c (struct dump_file_info, enum dump_file_index,
13847 dump_file_tbl, init_optimization_passes): Remove.
13848 (open_dump_file, close_dump_file): Use tree-dumping infrastructure.
13849 (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc): Use
13850 dump_enabled_p.
13851 (finish_optimization_passes): Update finish_graph_dump_file loop.
13852 (enable_rtl_dump_file): Remove.
13853 * tree-dump.c (dump_files): Adjust and add RTL dump files.
13854 (enable_rtl_dump_file): Add here.
13855 * tree.h (enum tree_dump_index): Add RTL dump file indices.
13856 * doc/invoke.texi (Debugging options): Document new RTL debugging
13857 options. Update.
13858
13859 2004-09-05 Kazu Hirata <kazu@cs.umass.edu>
13860
13861 * c-common.c, c-decl.c, combine.c, defaults.h, fold-const.c,
13862 gimplify.c, gthr-nks.h, hooks.c, lambda-code.c, lambda-mat.c,
13863 stor-layout.c, target.h, tree-cfg.c, tree-chrec.c,
13864 tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
13865 tree-mudflap.c, tree-optimize.c, tree-scalar-evolution.c,
13866 tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dce.c,
13867 tree-ssa-pre.c, tree-vectorizer.c, tree-vectorizer.h, tree.h,
13868 vec.h: Fix comment formatting.
13869
13870 2004-09-05 Kazu Hirata <kazu@cs.umass.edu>
13871
13872 * c-common.c, cfgexpand.c, cgraphunit.c, defaults.h,
13873 et-forest.c, expr.c, gimplify.c, global.c, gthr-lynx.h,
13874 hard-reg-set.h, modulo-sched.c, optabs.c, postreload-gcse.c,
13875 tree-data-ref.c, tree-flow.h, tree-if-conv.c, tree-inline.c,
13876 tree-sra.c, tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
13877 tree-ssa-loop-niter.c, tree-ssa-operands.c,
13878 tree-ssa-operands.h, tree-ssa-propagate.c,
13879 tree-ssa-propagate.h, tree-ssa-threadupdate.c, value-prof.c,
13880 vec.c, vec.h: Fix comment typos. Follow spelling conventions.
13881
13882 2004-09-05 Diego Novillo <dnovillo@redhat.com>
13883
13884 * tree-if-conv.c (gate_tree_if_conversion): Enable only if the
13885 vectorizer is enabled.
13886
13887 2004-09-05 Andreas Jaeger <aj@suse.de>
13888
13889 * tree-if-conv.c: Spell check comments and clean up whitespace.
13890
13891 2004-09-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13892
13893 * tree-ssa-loop-ivopts.c: New file.
13894 * Makefile.in (tree-ssa-loop-ivopts.c): Add.
13895 * cfgloop.h (target_avail_regs, target_res_regs, target_small_cost,
13896 target_pres_cost, target_spill_cost): Declare.
13897 * cfgloopanal.c (avail_regs, res_regs, small_cost, pres_cost,
13898 spill_cost): Renamed to ...
13899 (target_avail_regs, target_res_regs, target_small_cost,
13900 target_pres_cost, target_spill_cost): ... and exported.
13901 (init_set_costs, global_cost_for_size): Work with renamed variables.
13902 * common.opt (flag_ivopts): New flag.
13903 * expr.c (expand_expr_real_1): Handle SSA_NAME case. Handle
13904 REF_ORIGINAL.
13905 * gimplify.c (struct gimplify_ctx): Add into_ssa field.
13906 (internal_get_tmp_var, gimplify_modify_expr, gimplify_expr): Support
13907 generating SSA form.
13908 (force_gimple_operand): New function.
13909 * timevar.def (TV_TREE_LOOP_IVOPTS): New timevar.
13910 * tree-cfg.c (stmt_bsi): New function.
13911 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
13912 PARAM_IV_MAX_CONSIDERED_USES): New.
13913 * tree-flow.h (stmt_bsi, tree_ssa_iv_optimize, split_loop_exit_edge,
13914 bsi_insert_on_edge_immediate_loop. standard_iv_increment_position,
13915 ip_end_pos, ip_normal_pos, force_gimple_operand): Declare.
13916 * tree-gimple.c (is_gimple_formal_tmp_var): Accept ssa names.
13917 * tree-nested.c (build_addr): Export.
13918 * tree-optimize.c (init_tree_optimization_passes): Add
13919 pass_iv_optimize.
13920 * tree-pass.h (pass_iv_optimize): Declare.
13921 * tree-ssa-loop-im.c (for_each_index): Handle REALPART_EXPR and
13922 IMAGPART_EXPR.
13923 * tree-ssa-loop-manip.c (create_iv): Force the base to be acceptable
13924 as a phi node argument.
13925 (split_loop_exit_edge, bsi_insert_on_edge_immediate_loop,
13926 ip_end_pos, ip_normal_pos, standard_iv_increment_position): New
13927 functions.
13928 * tree-ssa-loop-niter.c (zero_p, unsigned_type_for): Export.
13929 * tree-ssa-loop.c (tree_ssa_loop_ivopts, gate_tree_ssa_loop_ivopts,
13930 pass_iv_optimize): New pass.
13931 * tree-ssa-operands.c (get_indirect_ref_operands): Handle REF_ORIGINAL.
13932 * tree-ssanames.c (release_ssa_name): Allow calling with var = NULL.
13933 * tree.c (build_int_cst_type, cst_and_fits_in_hwi): New functions.
13934 * tree.h (REF_ORIGINAL): New macro.
13935 (build_int_cst_type, unsigned_type_for, zero_p,
13936 cst_and_fits_in_hwi, build_addr): Declare.
13937 * doc/invoke.texi (-fivopts): Document.
13938 (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
13939 PARAM_IV_MAX_CONSIDERED_USES): Document.
13940 * doc/passes.texi: Document induction variable optimizations pass.
13941
13942 2004-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13943
13944 * builtin-attrs.def (ATTR_NOTHROW_SENTINEL_1): New.
13945 * builtins.def (BUILT_IN_EXECLE): Set ATTR_NOTHROW_SENTINEL_1.
13946 * c-common.c (c_common_attribute_table): Accept parameters to
13947 sentinel attribute.
13948 (check_function_sentinel, handle_sentinel_attribute): Likewise.
13949 * doc/extend.texi: Update accordingly.
13950
13951 2004-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13952
13953 * builtin-attrs.def (ATTR_SENTINEL, ATTR_SENTINEL_NOTHROW_LIST):
13954 New.
13955 * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP): Add `sentinel'
13956 attribute.
13957 * c-common.c (handle_sentinel_attribute, check_function_sentinel):
13958 New functions.
13959 (c_common_attribute_table): Add `sentinel' attribute.
13960 (check_function_arguments): Handle `sentinel' attribute.
13961 * doc/extend.texi: Document `sentinel' attribute.
13962
13963 2004-09-04 H.J. Lu <hongjiu.lu@intel.com>
13964
13965 * configure: Regenerated.
13966
13967 2004-09-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13968
13969 * gimplify.c (internal_get_tmp_var): Remove unused var CLASS.
13970
13971 * tree.c (save_expr): No longer TREE_READONLY.
13972
13973 2004-09-04 Jan Hubicka <jh@suse.cz>
13974
13975 * passes.c (rest_of_clean_state): Fix merge conflict made during
13976 commiting the patch.
13977
13978 2004-09-04 Jan Hubicka <jh@suse.cz>
13979
13980 * passes.c (rest_of_clean_state): Decompose the instruction stream.
13981
13982 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
13983
13984 * doc/md.texi (shift patterns): New anchor. Add reference to
13985 TARGET_SHIFT_TRUNCATION_MASK.
13986 * doc/tm.texi (TARGET_SHIFT_TRUNCATION_MASK): Document.
13987 * target.h (shift_truncation_mask): New target hook.
13988 * targhook.h (default_shift_truncation_mask): Declare.
13989 * targhook.c (default_shift_truncation_mask): Define.
13990 * target-def.h (TARGET_SHIFT_TRUNCATION_MASK): Define.
13991 (TARGET_INITIALIZER): Include it.
13992 * simplify-rtx.c (simplify_binary_operation): Combine ASHIFT, ASHIFTRT
13993 and LSHIFTRT cases. Truncate arg1 if SHIFT_COUNT_TRUNCATED, otherwise
13994 reject all out-of-range values. Fix sign-extension code for modes
13995 whose width is smaller than HOST_BITS_PER_WIDE_INT.
13996 * optabs.c (simplify_expand_binop, force_expand_binop): New functions.
13997 (expand_superword_shift, expand_subword_shift): Likewise.
13998 (expand_doubleword_shift_condmove, expand_doubleword_shift): Likewise.
13999 (expand_binop): Use them to implement double-word shifts.
14000 * config/arm/arm.c (arm_shift_truncation_mask): New function.
14001 (TARGET_SHIFT_TRUNCATION_MASK): Define.
14002
14003 2004-09-04 Jan Hubicka <jh@suse.cz>
14004
14005 * tree.c (iterate_hash_expr): Optimize, avoid use of iterative_hash_object.
14006 (mix): New macro copied from hashtab.c
14007 (iterative_hash_hashval_t, iterative_hash_pointer,
14008 iterative_hash_host_wide_int): New functions based on hashtab.c
14009 implementation.
14010
14011 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
14012
14013 * config/mips/mips.md (mask): New mode attribute.
14014 (zero_extendsidi2): Add memory alternative.
14015 (*zero_extendsidi2_mem): Delete.
14016 (zero_extend[qh]i[sd]i2): Redefine using :GPR and :SHORT. Use
14017 memory_operand in the TARGET_MIPS16 check.
14018 (*zero_extend[qh]i[sd]i2{,_mips16}): Name previously unnamed patterns.
14019 Redefine using :GPR and :SHORT.
14020 (zero_extendqihi2): Use memory_operand in the TARGET_MIPS16 check.
14021
14022 2004-09-04 Uros Bizjak <uros@kss-loka.si>
14023
14024 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_RINT{,F,L}
14025 using rint_optab.
14026 (expand_builtin): Expand BUILT_IN_RINT{,F,L} using
14027 expand_builtin_mathfn.
14028 * genopinit.c (optabs): Rename trunc_optab to btrunc_optab. Use
14029 btrunc?f patterns for btrunc_optab. Implement rint_optab using
14030 rint?f patterns.
14031 * optabs.c (init_optabs): Initialize rint_optab.
14032 * optabs.h (enum optab_index): Rename OTI_trunc to OTI_btrunc.
14033 Add new OTI_rint.
14034 (btrunc_optab): Rename macro from trunc_optab.
14035 (rint_optab): Define corresponding macro.
14036
14037 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT_FLOOR,
14038 UNSPEC_FRNDINT_CEIL, UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM.
14039
14040 * config/i386/i386-protos.h (emit_i387_cw_initialization):
14041 Change prototype. Add new int parameter.
14042 * config/i386/i386.c (emit_i387_cw_initialization):
14043 Handle new rounding modes.
14044
14045 * config/i386/i386.h (enum fp_cw_mode): Delete.
14046 (MODE_NEEDED): Handle new rounding modes.
14047 (EMIT_MODE_SET): Change condition to handle new rounding modes.
14048
14049 * config/i386/i386.md (UNSPEC_FRNDINT_FLOOR, UNSPEC_FRNDINT_CEIL,
14050 UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM): New unspecs to
14051 represent different rounding modes of frndint insn.
14052 (type): Add frndint type.
14053 (i387, length, memory): Handle this type.
14054 (i387_cw): New attribute definition.
14055 (*fix_truncdi_1, fix_truncdi_nomemory, fix_truncdi_memory,
14056 *fix_truncsi_1, fix_truncsi_nomemory, fix_truncsi_memory,
14057 *fix_trunchi_1, fix_trunchi_nomemory, fix_trunchi_memory):
14058 Add "i387_cw" attribute defined to "trunc".
14059 (x86_fnstcw_1): Remove comment.
14060 (*frndintxf2): Rename insn definition to frndintxf2. Move
14061 insn definition near rint?f2 expanders.
14062 (rintdf2, rintsf2, rintxf2): New expanders to implement rint,
14063 rintf and rintl built-ins as inline x87 intrinsics.
14064 (frndintxf2_floor): New pattern to implement floor rounding
14065 mode with frndint x87 instruction.
14066 (floordf2, floorsf2, floorxf2): New expanders to implement floor,
14067 floorf and floorl built-ins as inline x87 intrinsics.
14068 (frndintxf2_ceil): New pattern to implement ceil rounding
14069 mode with frndint x87 instruction.
14070 (ceildf2, ceilsf2, ceilxf2): New expanders to implement ceil,
14071 ceilf and ceill built-ins as inline x87 intrinsics.
14072 (frndintxf2_trunc): New pattern to implement trunc rounding
14073 mode with frndint x87 instruction.
14074 (btruncdf2, btruncsf2, btruncxf2): New expanders to implement trunc,
14075 truncf and truncl built-ins as inline x87 intrinsics.
14076 (frndintxf2_mask_pm): New pattern to implement rounding
14077 mode with exceptions with frndint x87 instruction.
14078 (nearbyintdf2, nearbyintsf2, nearbyintxf2): New expanders to
14079 implement nearbyint, nearbyintf and nearbyintl built-ins as
14080 inline x87 intrinsics.
14081
14082 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
14083
14084 * config/mips/mips.md (SHORT): New mode macro.
14085 (size): New mode attribute.
14086 (extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.
14087 (*extend[qh]i[sd]i2): New define_insn_and_split, combining previous
14088 *extend[qh]i[sd]i2 and *extend[qh]i[sd]i2_mem patterns. Use only if
14089 !ISA_HAS_SEB_SEH.
14090 (*extend[qh]i[sd]i2_se[bh]): New pattern, combining previous
14091 *extend[qh]isi2_hw patterns and extending them to di.
14092 (extendqihi2): Implement as define_insn_and_split that produces
14093 extendqisi2 after reload.
14094
14095 2004-09-03 Devang Patel <dpatel@apple.com>
14096
14097 * Makefile.in (OBJS-common): Add tree-if-conv.o
14098 (tree-if-conv.o): New rule.
14099 * cfgloop.c (flow_loop_exit_edges_find): Set EDGE_LOOP_EXIT flag.
14100 (get_loop_body_in_bfs_order): New.
14101 * cfgloop.h (get_loop_body_in_bfs_order): New.
14102 * tree-flow.h (enum move_pos): Move here from ..
14103 * tree-ssa-loop-im.c (enum move_pos): here.
14104 (movement_possibility): Make externally visible.
14105 * tree-optimize.c (init_tree_optimization_passes): New entry for
14106 if conversion pass.
14107 * tree-pass.h (pass_if_conversion): New.
14108 * tree-ssa-operands.c (get_expr_operands): Handle COND_EXPR.
14109 * tree-if-conv.c: New file.
14110 * doc/passes.texi: Document tree if-conversion pass.
14111 * doc/tree-ssa.texi: Same.
14112
14113 2004-09-03 H.J. Lu <hongjiu.lu@intel.com>
14114
14115 PR target/14925:
14116 Makefile.in (LIB2ADDEHSTATIC): New.
14117 (LIB2ADDEHSHARED): New.
14118 (LIBUNWIND): New.
14119 (LIBUNWINDDEP): New.
14120 (SHLIBUNWIND_LINK): New.
14121 (SHLIBUNWIND_INSTALL): New.
14122 (libgcc.mk): Pass LIB2ADDEHSTATIC, LIB2ADDEHSHARED, LIBUNWIND,
14123 LIBUNWINDDEP, SHLIBUNWIND_LINK and SHLIBUNWIND_INSTALL.
14124 (clean): Remove libunwind*
14125 (stage1-start): Remove and copy stage1/libunwind*.
14126 (stage2-start): Remove and copy stage2/libunwind*.
14127 (stage3-start): Remove and copy stage3/libunwind*.
14128 (stage4-start): Remove and copy stage4/libunwind*.
14129 (stageprofile-start): Remove and copy stageprofile/libunwind*.
14130 (stagefeedback-start): Remove and copy stagefeedback/libunwind*.
14131
14132 * config.gcc (ia64*-*-linux*): Always add t-libunwind to
14133 tmake_file. Add t-libunwind-elf and ia64/t-glibc-libunwind to
14134 tmake_file if --with-system-libunwind isn't used.
14135
14136 * config/ia64/t-glibc-libunwind: New file.
14137 * config/t-libunwind-elf: Likewise.
14138 * unwind-compat.c: Likewise.
14139 * unwind-compat.h: Likewise.
14140 * unwind-dw2-fde-compat.c: Likewise.
14141
14142 * config/ia64/t-glibc (LIB2ADDEH): Updated.
14143 * config/ia64/t-hpux (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
14144
14145 * config/ia64/unwind-ia64.c: Include "unwind-compat.h". Define
14146 aliases if needed.
14147 * unwind-dw2-fde-glibc.c: Likewise.
14148 * unwind-dw2.c: Likewise.
14149
14150 * config/t-libunwind (LIB2ADDEH): Updated.
14151 (LIB2ADDEHSTATIC): New.
14152 (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
14153 (TARGET_LIBGCC2_CFLAGS): Set to -DUSE_GAS_SYMVER.
14154
14155 * configure.ac: Change --enable-libunwind-exceptions to
14156 --with-system-libunwind. Don't define USE_LIBUNWIND_EXCEPTIONS.
14157 * configure: Regenerated.
14158 * config.in: Updated.
14159
14160 * doc/install.texi (ia64-*-linux): Require libunwind 0.98 or
14161 above and mention --with-system-libunwind.
14162 (ia64-*-hpux*): Mention --enable-libunwind-exceptions is
14163 removed in gcc 3.4.3 and later.
14164
14165 * gcc.c (init_spec): Add -lunwind to -lgcc_s if
14166 USE_LIBUNWIND_EXCEPTIONS is defined.
14167
14168 * mklibgcc.in: Support libunwind.
14169
14170 2004-09-03 H.J. Lu <hongjiu.lu@intel.com>
14171
14172 * config/i386/i386.c (x86_branch_hints): Remove m_PENT4 and
14173 m_NOCONA.
14174
14175 2004-09-03 Richard Henderson <rth@redhat.com>
14176
14177 PR middle-end/9997
14178 * cfgexpand.c (LOCAL_ALIGNMENT): Provide default.
14179 (STACK_ALIGNMENT_NEEDED, FRAME_GROWS_DOWNWARD): Likewise.
14180 (struct stack_var, EOC, stack_vars, stack_vars_alloc, stack_vars_num,
14181 stack_vars_sorted, stack_vars_conflict, stack_vars_conflict_alloc,
14182 frame_phase, get_decl_align_unit, add_stack_var, triangular_index,
14183 resize_stack_vars_conflict, add_stack_var_conflict,
14184 stack_var_conflict_p, add_alias_set_conflicts, stack_var_size_cmp,
14185 union_stack_vars, partition_stack_vars, dump_stack_var_partition,
14186 expand_one_stack_var_at, expand_stack_vars, expand_one_stack_var,
14187 expand_one_static_var, expand_one_hard_reg_var,
14188 expand_one_register_var, expand_one_error_var, defer_stack_allocation,
14189 expand_one_var, expand_used_vars_for_block, clear_tree_used): New.
14190 (expand_used_vars): Rewrite.
14191 * Makefile.in (cfgexpand.o): Update dependencies.
14192
14193 2004-09-04 Jan Hubicka <jh@suse.cz>
14194
14195 * cfg.c (free_edge): Use ggc_free.
14196 (expunge_block): Use ggc_free.
14197 * passes.c (rest_of_clean_state): Free after compilation.
14198 * tree-ssa.c (delete_tree_ssa): Free annotations; call release_defs
14199 * tree-ssanames.c (release_defs): Ignore non-SSA_NAME arguments.
14200
14201 2004-09-03 James E Wilson <wilson@specifixinc.com>
14202
14203 * tree-ssa-alias.c (may_be_aliased): Move TREE_STATIC check after
14204 DECL_EXTERNAL check.
14205
14206 2004-09-03 Eric Botcazou <ebotcazou@libertysurf.fr>
14207
14208 * final.c (output_in_slot): New global variable.
14209 (final_scan_insn): Add new state '2' to the 'nopeepholes' parameter.
14210 Pass 2 as 'nopeepholes' to self for insns in a SEQUENCE. Set
14211 'output_in_slot' before invoking output_asm_insn.
14212 (output_asm_insn): Add a space after the tab if 'output_in_slot'
14213 is set.
14214 * config/sparc/sparc.c (output_return): Pass 2 as 'nopeepholes' to
14215 final_scan_insn.
14216 (output_sibcall): Likewise.
14217
14218 2004-09-03 Jan Hubicka <jh@suse.cz>
14219
14220 * tree-ssa-operands.c (fini_ssa_operands): ggc_free unused arrays.
14221 * tree-ssanames (init_ssanames): Likewise.
14222
14223 2004-09-03 Ziemowit Laski <zlaski@apple.com>
14224
14225 * stub-objc.c (objc_is_id, objc_declare_alias, objc_declare_class,
14226 objc_declare_protocols, objc_start_protocol,
14227 objc_start_class_interface, objc_start_category_interface,
14228 objc_continue_interface, objc_finish_interface,
14229 objc_add_instance_variable, objc_set_visibility, objc_set_method_type,
14230 objc_start_class_implementation, objc_start_category_implementation,
14231 objc_continue_implementation, objc_finish_implementation,
14232 objc_add_method_declaration, objc_start_method_definition,
14233 objc_finish_method_definition, objc_build_keyword_decl,
14234 objc_build_method_signature, objc_build_encode_expr,
14235 objc_build_protocol_expr, objc_build_selector_expr,
14236 objc_build_message_expr, objc_build_string_object,
14237 objc_get_class_reference, objc_get_protocol_qualified_type,
14238 objc_static_init_needed_p, objc_generate_static_init_call): New stubs.
14239
14240 2004-09-03 James E Wilson <wilson@specifixinc.com>
14241
14242 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips3d.
14243
14244 * config/mips/generic.md (generic_frecip_fsqrt_step): New.
14245 * config/mips/mips-ps-3d.md (mips_rsqrt1_<fmt>): Use frsqrt1 type.
14246 (mips_rsqrt2_<fmt>): Use frsqrt2 type.
14247 (mips_recip1_<fmt>): Use frdiv1 type.
14248 (mips_recip2_<fmt>): Use frdiv2 type.
14249 * config/mips/mips.md (type): Add frdiv1, frdiv2, frsqrt1, frsqrt2.
14250 * config/mips/sb1.md (ir_sb1_fpu_2pipes, ir_sb1_fpu_1pipe): Add frdiv1
14251 and frsqrt1.
14252 (ir_sb1_fpu_step2_2pipes, ir_sb1_fpu_step2_1pipe): New.
14253
14254 2004-09-03 Daniel Jacobowitz <dan@debian.org>
14255
14256 * reload.c (find_reloads): Swap operand_loc pointers for
14257 find_dummy_reload if we have swapped two operands.
14258
14259 2004-09-03 Hans-Peter Nilsson <hp@axis.com>
14260
14261 * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn
14262 to get the tablejump-insn before the jump-table label.
14263
14264 2004-09-03 Ziemowit Laski <zlaski@apple.com>
14265
14266 * c-common.h (objc_is_id, objc_declare_alias, objc_declare_class,
14267 objc_declare_protocols, objc_build_message_expr,
14268 objc_finish_message_expr, objc_build_selector_expr,
14269 objc_build_protocol_expr, objc_build_encode_expr,
14270 objc_build_string_object, objc_get_protocol_qualified_type,
14271 objc_get_class_reference, objc_get_class_ivars,
14272 objc_start_class_interface, objc_start_category_interface,
14273 objc_start_protocol, objc_continue_interface, objc_finish_interface,
14274 objc_start_class_implementation, objc_start_category_implementation,
14275 objc_continue_implementation, objc_finish_implementation,
14276 objc_set_visibility, objc_set_method_type, objc_build_method_signature,
14277 objc_add_method_declaration, objc_start_method_definition,
14278 objc_finish_method_definition, objc_add_instance_variable,
14279 objc_build_keyword_decl, objc_build_throw_stmt, objc_begin_try_stmt,
14280 objc_finish_try_stmt, objc_begin_catch_clause,
14281 objc_finish_catch_clause, objc_build_finally_clause,
14282 objc_build_synchronized, objc_static_init_needed_p,
14283 objc_generate_static_init_call): New prototypes.
14284
14285 2004-09-03 Steve Ellcey <sje@cup.hp.com>
14286
14287 * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL even if there
14288 is only one reg.
14289 (ia64_function_value): Ditto.
14290
14291 2004-09-03 Jan Beulich <jbeulich@novell.com>
14292
14293 * config.gcc: Resurrect NetWare as a target. Handle special case of
14294 Novell linker to be used (specified through --with-ld=) and threading
14295 model of either Posix (default) or NKS.
14296 * config/i386/i386.c (ix86_return_pops_args): Conditionalize popping
14297 of incoming hidden argument on KEEP_AGGREGATE_RETURN_POINTER.
14298 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): New.
14299 * config/i386/netware.c, config/i386/netware.h: New.
14300 * config/i386/nwld.c, config/i386/nwld.h: New.
14301 * config/i386/netware-crt0.c: New.
14302 * config/i386/netware-libgcc.c: New.
14303 * config/i386/netware-libgcc.def: New.
14304 * config/i386/netware-libgcc.exp: New.
14305 * config/i386/t-netware, config/i386/t-nwld: New.
14306 * gthr-nks.h: New.
14307 * doc/install.texi: Document NKS threading model.
14308
14309 2004-09-03 Jan Beulich <jbeulich@novell.com>
14310
14311 PR c/7054
14312 * defaults.h (TARGET_DEFAULT_PACK_STRUCT): Provide default.
14313 * tree.h (initial_max_fld_align): Declare
14314 * stor-layout.c (initial_max_fld_align): Define and initialize.
14315 (maximum_field_alignment): Initialize to the same value.
14316 * common.opt: Add -fpack-struct= variant of switch.
14317 * opts.c: Handle -fpack-struct= variant of switch.
14318 * c-pragma.c: Change #pragma pack() handling so that it becomes
14319 compatible to other compilers: accept individual 'push' argument,
14320 make final pop restore (command line) default, correct interaction
14321 of push/pop and sole specification of a new alignment (so that the
14322 sequence #pragma pack(push) - #pragma pack(<n>) becomes identical
14323 to #pragma pack(push, <n>).
14324 * doc/extend.texi: New node "Structure-Packing Pragmas" under
14325 "Pragmas", describing #pragma pack.
14326 * doc/invoke.texi: Document -fpack-struct=<n> variant of switch.
14327 * doc/tm.texi: Adjust description for HANDLE_PRAGMA_PACK_PUSH_POP.
14328 Document new TARGET_DEFAULT_PACK_STRUCT.
14329
14330 2004-09-03 Devang Patel <dpatel@apple.com>
14331
14332 * dwarf2out.c (gen_field_die). Equate decl number to die.
14333
14334 2004-09-03 Vladimir Makarov <vmakarov@redhat.com>
14335
14336 PR target/15832
14337 * global.c (modify_reg_pav): New function.
14338 (make_accurate_live_analysis): Call the new function. Move pavin
14339 modification by earlyclobber set into the new function.
14340
14341 2004-09-03 Andreas Schwab <schwab@suse.de>
14342
14343 * config/m68k/m68k.c (output_andsi3): Use -1 instead of
14344 (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
14345 extended.
14346
14347 2004-09-02 Jan Beulich <jbeulich@novell.com>
14348
14349 * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
14350 * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
14351 not unwind code specific ones.
14352 (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
14353 Remove unwind code specific dependencies.
14354 (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
14355 Remove gbl-ctors.h.
14356 Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
14357 LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
14358 * tsystem.h: Declare memcpy and memset when inhibit_libc.
14359
14360 2004-09-02 Roman Zippel <zippel@linux-m68k.org>
14361
14362 * combine.c (try_combine): Delay modifying of insns which cannot
14363 be easily undone.
14364
14365 2004-09-02 Daniel Berlin <dberlin@dberlin.org>
14366
14367 * gcc/common.opt: Rename ivcanon to tree-loop-ivcanon, tree-lim to
14368 tree-loop-im.
14369 * gcc/tree-ssa-loop.c: Ditto
14370 * gcc/tree-ssa-loop-ivcanon.c: Ditto
14371 * gcc/doc/invoke.texi: Ditto.
14372
14373 2004-09-02 Ziemowit Laski <zlaski@apple.com>
14374
14375 * c-decl.c (store_parm_decls_newstyle): Make static.
14376 (store_parm_decls_from): New function.
14377 * c-tree.h (store_parm_decls_newstyle): Remove prototype.
14378 (store_parm_decls_from): New prototype.
14379
14380 2004-09-02 David Edelsohn <edelsohn@gnu.org>
14381
14382 * config/rs6000/rs6000.c (expand_block_move): Use SImode and
14383 HImode with STRICT_ALIGNMENT.
14384
14385 2004-09-02 Mark Mitchell <mark@codesourcery.com>
14386
14387 * config/arm/bpabi.h (TARGET_BPABI_CPP_BUILTINS): Define.
14388 (TARGET_OS_CPP_BUILTINS): Likewise.
14389 * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Include
14390 TARGET_BPABI_CPP_BUILTINS.
14391
14392 2004-09-02 Roman Zippel <zippel@linux-m68k.org>
14393
14394 * combine.c (distribute_notes): Don't add REG_LABEL to jump insn.
14395
14396 2004-09-02 Eric Christopher <echristo@redhat.com>
14397
14398 * builtins.c (expand_builtin_cabs): Delete.
14399 (expand_builtin): If unable to fold the values do a normal
14400 library call for builtin_cab*.
14401 (fold_builtin_cabs): Depend on optimize and optimize_size.
14402 * optabs.c (expand_cmplxdiv_straight): Delete.
14403 (expand_cmplxdiv_wide): Ditto.
14404 (expand_vector_binop): Ditto.
14405 (expand_vector_unop): Ditto.
14406 (expand_complex_abs): Delete.
14407 (expand_binop): Remove calls to above functions.
14408 Remove open coding of complex arithmetic.
14409 (expand_unop): Ditto.
14410 * optabs.h: Remove prototypes.
14411
14412 2004-09-02 Ziemowit Laski <zlaski@apple.com>
14413
14414 * c-decl.c (store_parm_decls_newstyle): Make externally visible.
14415 * c-tree.h (store_parm_decls_newstyle): New prototype.
14416
14417 2004-09-02 Geoffrey Keating <geoffk@apple.com>
14418
14419 * config/rs6000/rs6000.c (expand_block_clear): Use vector
14420 instructions if available.
14421 (expand_block_move): Likewise.
14422
14423 2004-09-03 Jan Hubicka <jh@suse.cz>
14424
14425 * rtl.def (RANGE_INFO, RANGE_REG, RANGE_VAR, RANGE_LIVE): Kill.
14426
14427 2004-09-02 Mark Mitchell <mark@codesourcery.com>
14428
14429 * config/arm/symbian.h (LIB_SPEC): Define to empty.
14430 * config/arm/t-symbian (SHLIB_LC): Likewise.
14431
14432 2004-09-02 Paul Brook <paul@codesourcery.com>
14433
14434 * config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
14435
14436 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
14437
14438 * config/mips/mips.c (mips_classify_symbol, mips_fetch_insns):
14439 (mips_restore_gp, mips_set_return_address, mips_expand_prologue)
14440 (mips16_fp_args, mips_avoid_hazard): Replace abort with gcc_assert.
14441 (build_mips16_call_stub): Likewise. Remove daft CALL_INSN checks.
14442 (mips_issue_rate): Remove unreachable abort.
14443 (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
14444 (mips_output_move, mips_relational_operand_ok_p, mips_arg_info)
14445 (mips_block_move_straight, print_operand_address, mips_file_start)
14446 (mips_initial_elimination_offset, mips16_fp_args, dump_constants_1)
14447 (mips_output_conditional_branch, mips_expand_builtin_direct)
14448 (mips_expand_builtin_compare): Replace abort with gcc_unreachable.
14449 * config/mips/mips.md (rotr<mode>3, consttable_float): Replace abort
14450 with gcc_assert.
14451
14452 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
14453
14454 * config/mips/mips.md (*lea_high64): Change split condition to
14455 flow2_completed. Add a peephole2 to generate a more parallel version.
14456
14457 2004-09-02 Jan Hubicka <jh@suse.cz>
14458
14459 * gimplify.c (gimplify_compound_lval): Move "stack" varray out of
14460 GGC.
14461
14462 * ggc-page.c: include tree-flow.h.
14463 (extra_order_size_table): Add stmt_ann_d.
14464 (STAT_LABEL): Rename from ....
14465 (LABEL): ... this one.
14466 * Makefile.in (ggc-page.o): Add dependency.
14467
14468 * ggc-common.c (ggc_force_collect): New global variable.
14469 (loc_description): Add fields "freed", "collected"
14470 (ptr_hash): New static hash
14471 (ptr_hash_entry): New structure.
14472 (hash_ptr,eq_ptr,ggc_prune_ptr): New static functions.
14473 (ggc_record_overhead): Take ptr argument, record it
14474 (ggc_prune_overhead_list, ggc_free_overhead): New functions.
14475 (cmp_statistics): Imrove sorting.
14476 (dump_ggc_loc_statistics): Output newly collected statistics
14477 * ggc-page.c (ggc_alloc): Update call of ggc_record_overhead
14478 (ggc_free): Call ggc_free_overhead.
14479 (ggc_collect): Force collection when asked to be forced.
14480 (ggc_collect): Call ggc_prune_overhead_list.
14481 * ggc.h (ggc_force_collect): Declare
14482 (ggc_record_overhead): Update prototype.
14483 (ggc_free_overhead, ggc_prune_overhead_list): Declare.
14484
14485 2004-09-02 James E Wilson <wilson@specifixinc.com>
14486
14487 * common.opt (ftrapping-math): Default to on.
14488
14489 2004-09-02 Richard Earnshaw <rearnsha@arm.com>
14490
14491 * arm/predicates.md (arm_reload_memory_operand): Allow MEM.
14492
14493 2004-09-02 Denis Chertykov <denisc@overta.ru>
14494
14495 PR target/16884
14496 * config/avr/avr.md ("movmemhi"): Substitute match_dup to
14497 match_scratch.
14498 (*movmemqi_insn): Likewise.
14499 (*movmemhi): Likewise.
14500 (clrmemhi): Likewise.
14501 (*clrmemqi): Likewise.
14502 (*clrmemhi): Likewise.
14503
14504 2004-09-02 Paul Brook <paul@codesourcery.com>
14505
14506 * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
14507 default_use_cxa_atexit=yes.
14508
14509 2004-09-02 Alan Modra <amodra@bigpond.net.au>
14510
14511 * config/rs6000/linux64.h: Don't include signal.h or sys/ucontext.h.
14512 (struct kernel_old_ucontext): Delete.
14513 (struct gcc_pt_regs, gcc_sigcontext, gcc_ucontext): New.
14514 (MD_FALLBACK_FRAME_STATE_FOR): Use gcc_* structs. Only define
14515 when IN_LIGGCC2.
14516
14517 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
14518
14519 * toplev.c (process_options): Fix typo.
14520
14521 2004-09-01 Richard Henderson <rth@redhat.com>
14522
14523 PR middle-end/17258
14524 * calls.c (initialize_argument_information): Tighten pass-through
14525 conditions for pass-by-reference. Remove dead TARGET_EXPR code.
14526 Use build_fold_addr_expr.
14527 (emit_library_call_value_1): Use build_fold_addr_expr. Remove code
14528 that assumes ADDR_EXPR allocates stack space.
14529 * fold-const.c (build_fold_addr_expr_with_type): Look through
14530 WITH_SIZE_EXPR.
14531
14532 2004-09-01 Dan Nicolaescu <dann@ics.uci.edu>
14533
14534 * gengenrtl.c (gendef): Use rtx_alloc, don't do PUT_CODE.
14535 * ggc.h (ggc_alloc_rtx): Delete.
14536
14537 2004-09-01 Roger Sayle <roger@eyesopen.com>
14538
14539 * expmed.c (enum alg_code): Remove long unused enumeration values.
14540 (struct mult_cost): New structure to hold the "score" of a synthetic
14541 multiply sequence, including both a rtx_cost and a latency field.
14542 (MULT_COST_LESS): New macro to compare mult_cost to a constant.
14543 (CHEAPER_MULT_COST): New macro to compare two mult_costs.
14544 (struct algorithm): Change type of cost field to be mult_cost.
14545 (synth_mult): Change type of cost_limit argument to be a
14546 pointer to a mult_cost. Update all cost comparisons to use the
14547 new mult_cost infrastructure. For alg_add_factor and
14548 alg_sub_factor operations, latency is lower than the rtx_cost.
14549 (choose_mult_variant): Update calls to synth_mult. Perform
14550 cost comparisons using the new mult_cost infrastructure.
14551 (expand_mult_highpart): Use alg.cost.cost instead of alg.cost
14552 to optain the total rtx_cost of a synth_mult "algorithm".
14553
14554 2004-09-01 David Edelsohn <edelsohn@gnu.org>
14555
14556 * config/rs6000/power4.md: Increase store latency to 12.
14557 * config/rs6000/power5.md: Same.
14558
14559 2004-09-01 James E Wilson <wilson@specifixinc.com>
14560
14561 PR target/14064
14562 * config/avr/avr.c (avr_unique_section): Delete prototype and
14563 definition.
14564 (TARGET_ASM_UNIQUE_SECTION): Delete.
14565
14566 2004-09-01 Ziemowit Laski <zlaski@apple.com>
14567
14568 * c-parse.in (primary): Call objc_build_message_expr(),
14569 objc_build_selector_expr(), objc_build_protocol_expr(),
14570 objc_build_encode_expr() and objc_build_string_object() instead of
14571 build_message_expr(), build_selector_expr(), build_protocol_expr(),
14572 build_encode_expr() and build_objc_string_object(), respectively.
14573 (component_decl_list2): Call objc_get_class_ivars() instead of
14574 get_class_ivars_from_name().
14575 (keyworddecl): Call objc_build_keyword_decl() instead of
14576 build_keyword_decl().
14577 (receiver): Call objc_get_class_reference() instead of
14578 get_class_reference().
14579 (reswords): Add blank line before @@ifobjc section, for clarity.
14580
14581 2002-09-01 Fariborz Jahanian <fjahanian@apple.com>
14582
14583 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
14584 to Altivec vetors.
14585
14586 2004-09-01 Wu Yongwei <adah@sh163.net>
14587 Danny Smith <dannysmith@users.sourceforge.net>
14588
14589 * gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
14590 not Windows 'DWORD'.
14591 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
14592 (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
14593 (__gthr_win32_recursive_mutex_init_function): Add prototype for
14594 __GTHREAD_HIDE_WIN32API case..
14595 (__gthr_win32_recursive_mutex_lock): Likewise.
14596 (__gthr_win32_recursive_mutex_trylock): Likewise.
14597 (__gthr_win32_recursive_mutex_unlock): Likewise.
14598 (__gthread_recursive_mutex_init_function); Add definition for
14599 __GTHREAD_HIDE_WIN32API case.
14600 (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
14601 * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
14602 call to InterlockedDecrement.
14603
14604 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14605
14606 * tree-tailcall.c (find_tail_calls): Also fail is statement has
14607 volatile operands.
14608
14609 * tree-ssa.c (propagate_into_addr): Properly test for LHR.
14610
14611 * doc/c-tree.texi: Document new operands for ARRAY_REF and
14612 COMPONENT_REF.
14613
14614 2004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14615
14616 * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
14617 * common.opt (fspeculative-prefetching): New.
14618 * flags.h (flag_speculative_prefetching_set): Declare.
14619 * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
14620 values.
14621 * opts.c (flag_sepculative_prefetching_set): New variable.
14622 (common_handle_option): Handle -fspeculative-prefetching.
14623 * passes.c (rest_of_compilation): Ditto.
14624 * profile.c (instrument_values, compute_value_histograms, branch_prob):
14625 Use vectors instead of arrays.
14626 * toplev.c (process_options): Handle -fspeculative-prefetching.
14627 * rtl-profile.c: Include ggc.h.
14628 (rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
14629 rtl_gen_one_value_profiler_no_edge_manipulation,
14630 rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
14631 argument changed.
14632 * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
14633 tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
14634 argument changed.
14635 * value-prof.c: Include ggc.h.
14636 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
14637 macros.
14638 (insn_prefetch_values_to_profile, find_mem_reference_1,
14639 find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
14640 speculative_prefetching_transform): New.
14641 (value_profile_transformations): Call speculative_prefetching_transform.
14642 (insn_values_to_profile): Call insn_prefetch_values_to_profile.
14643 (insn_divmod_values_to_profile, rtl_find_values_to_profile,
14644 tree_find_values_to_profile, find_values to profile): Use vectors
14645 instead of arrays.
14646 (free_profiled_values): Removed.
14647 * value-prof.h (struct histogram_value): Renamed to
14648 struct histogram_value_t.
14649 (histogram_value, histogram_values): New types.
14650 (find_values_to_profile): Declaration changed.
14651 (free_profiled_values): Removed.
14652 (struct profile_hooks): Type of argument of the hooks changed to
14653 histogram_value.
14654 * doc/invoke.texi (-fspeculative-prefetching): Document.
14655
14656 2004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14657
14658 PR rtl-optimization/16408
14659 * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.
14660
14661 2004-09-01 Richard Henderson <rth@redhat.com>
14662
14663 * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
14664 (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
14665
14666 2004-09-01 Jakub Jelinek <jakub@redhat.com>
14667
14668 * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
14669
14670 2004-09-01 Mike Stump <mrs@apple.com>
14671
14672 * config/darwin.c (machopic_symbol_defined_p): In addition to
14673 being SYMBOL_REF_LOCAL_P, a symbol must also be
14674 ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
14675 defined in this output file, or translation unit in the case
14676 of IMA not being used.
14677 (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
14678 never need .indirect_symbol when indirecting.
14679
14680 2004-09-01 Jakub Jelinek <jakub@redhat.com>
14681
14682 * Makefile.in (bb-reorder.o): Add several dependencies.
14683
14684 2004-09-01 Jakub Jelinek <jakub@redhat.com>
14685
14686 * fold-const.c (operand_equal_p): Require equal sign also for
14687 FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
14688
14689 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
14690
14691 * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
14692 for use in configargs.h. Put the cname in a separate variable. Use
14693 that to set target_cpu_default2.
14694
14695 2004-09-01 J"orn Rennecke <joern.rennecke@superh.com>
14696 Nick Clifton <nickc@redhat.com>
14697
14698 * config/sh/sh.md ("length"): Increase branch length when
14699 SH1 pic code to 18: 12 bytes of instructions, 4 byte for the
14700 constant, 2 byte for aligning the constant.
14701
14702 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
14703
14704 * arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
14705 CPU.
14706 (arm7tdmi-s): New CPU name.
14707 * arm/arm.c (ARM_CORE): Update for new format.
14708 * arm/arm.h (ARM_CORE): Likewise.
14709 * arm/gentune.sh: Update for extra field.
14710 * config.gcc: Likewise.
14711 * arm/arm-tune.md: Regenerate.
14712 * doc/invoke.texi: Document the real processor names for ARM cpus.
14713
14714 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
14715
14716 * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
14717 (floatdidf): New functions.
14718 * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
14719 (floatdisf): New functions.
14720 * t-arm-elf: Use them.
14721
14722 2004-09-01 Ziemowit Laski <zlaski@apple.com>
14723
14724 * c-common.h (lookup_interface): Remove prototype.
14725 (is_class_name): Rename to objc_is_class_name.
14726 (lookup_objc_ivar): Rename to objc_lookup_ivar.
14727 (get_current_scope): Rename to objc_get_current_scope.
14728 * c-decl.c (get_current_scope): Rename to objc_get_current_scope.
14729 * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
14730 (yylexname): Call objc_is_class_name() instead of is_class_name().
14731 * c-typeck.c (build_external_ref): Call objc_lookup_ivar()
14732 instead of lookup_objc_ivar().
14733 * stub-objc.c (lookup_interface): Remove stub.
14734 (is_class_name): Rename to objc_is_class_name.
14735 (lookup_objc_ivar): Rename to objc_lookup_ivar.
14736
14737 2004-08-31 Mark Mitchell <mark@codesourcery.com>
14738
14739 * config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
14740 * config/arm/lib1funcs.asm: Do not include supplemental .S files
14741 when compiling for Symbian.
14742 * config/arm/symbian.h (RENAME_LIBRARY): New macro.
14743 (TARGET_OS_CPP_BUILTINS): Likewise.
14744 * config/arm/t-symbian (LIB1ASMFUNCS): Define.
14745
14746 2004-08-31 Stan Shebs <shebs@apple.com>
14747
14748 * toplev.c (process_options): Ensure debug_hooks is initialized.
14749
14750 2004-08-31 Mark Mitchell <mark@codesourcery.com>
14751
14752 * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
14753 * target.h (cxx): Add export_class_data.
14754 * config/arm/arm.c (arm_cxx_export_class_data): New function.
14755 (TARGET_CXX_EXPORT_CLASS_DATA): Use it.
14756 * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Document it.
14757
14758 2004-08-31 Kaz Kojima <kkojima@gcc.gnu.org>
14759
14760 * config/sh/sh.c (output_branch): Check the insn length possibly
14761 in the delayed slot.
14762
14763 2004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14764
14765 * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
14766 blank after ')'.
14767 (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.
14768
14769 * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
14770 (c_sizeof_of_alignof_type): Likewise.
14771 * expr.c (array_ref_element_size): Likewise.
14772 (highest_pow2_factor_for_target): Likewise.
14773 * gimplify.c (canonicalize_addr_expr): Likewise.
14774 (gimplify_compound_lval): Likewise.
14775 * stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
14776 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
14777 * varasm.c (assemble_variable): Likewise.
14778 (output_constant_def_contents): Alignments are unsigned.
14779
14780 2004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14781 Jeff Law <law@redhat.com>
14782
14783 * tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
14784 gets modified.
14785
14786 2004-08-31 Mark Mitchell <mark@codesourcery.com>
14787
14788 * hooks.c (hook_bool_void_true): New function.
14789 * hooks.h (hook_bool_void_true): Declare.
14790 * target-def.h (TARGET_CXX): Add
14791 TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.
14792 * target.h (struct cxx): Add key_method_may_be_inline.
14793 * config/arm/arm.c (arm_cxx_key_method_may_be_inline): New
14794 function.
14795 (TARGET_CXX_KEY_METHOD_MAY_BE_INLINE): New macro.
14796 * config/arm/bpabi.h: Use __THUMB_INTERWORK__ instead of
14797 __THUMB_INTERWORK.
14798
14799 2004-08-31 Denis Chertykov <denisc@overta.ru>
14800
14801 PR target/15417
14802 * config/avr/avr.c (avr_hard_regno_mode_ok): Enable usage of
14803 frame pointer register only in Pmode while reload in progress.
14804
14805 2004-08-31 Stephane Carrez <stcarrez@nerim.fr>
14806
14807 PR target/15334
14808 * config/m68hc11/m68hc11.c (m68hc11_override_options): Disable -fweb
14809 because it breaks the 32-bit shift patterns that rely on a match_dup.
14810
14811 2004-08-31 Matt Austern <austern@apple.com>
14812
14813 * config/darwin.c (darwin_make_decl_one_only): Allocate section
14814 names once per compilation, instead of once per symbol.
14815
14816 2004-08-31 Paolo Bonzini <bonzini@gnu.org>
14817
14818 * Makefile.in (build_subdir): New substitution.
14819 (fixinc.sh): Simplify heavily since fixincludes is already built.
14820 (stmp-fixinc): Depend on specs.ready.
14821 (install-mkheaders): Use new location of fixincludes.
14822 (clean): Do not descend into fixinc.
14823 (FORBUILD): Replace with ../$(build_subdir).
14824 * configure.ac (build_subdir): Substitute.
14825 (FORBUILD): Do not set.
14826 (all_outputs): Remove fixinc/Makefile.
14827 (default commands): Do not create links in fixinc.
14828 * mkfixinc.sh: New, from fixinc/mkfixinc.sh without
14829 the fixincludes configuration steps and substituting
14830 @FIXINCL@ in fixinc.in.
14831 * fixinc.in: New, from fixinc/fixincl.sh.
14832
14833 * fixinc/*: Removed.
14834
14835 2004-08-31 Joseph S. Myers <jsm@polyomino.org.uk>
14836
14837 * attribs.c (strip_attrs): Remove.
14838 (split_specs_attrs): Move ...
14839 * c-decl.c: ... to here.
14840 * tree.h (split_specs_attrs, strip_attrs): Remove.
14841 * c-tree.h (split_specs_attrs): Declare.
14842
14843 2004-08-31 Richard Sandiford <rsandifo@redhat.com>
14844
14845 * read-rtl.c: Disable RTL checking.
14846 (apply_macro_to_rtx): Use XTMPL to access 'T' fields.
14847
14848 2004-08-31 Richard Sandiford <rsandifo@redhat.com>
14849
14850 * config/mips/mips.md (fcond): New code macro and attribute.
14851 (sunordered_[sd]f, suneq_[sd]f, sunlt_[sd]f, sunle_[sd]f)
14852 (seq_[sd]f, slt_[sd]f, sle_[sd]f): Redefine using :SCALARF and fcond.
14853 (sgt_[sd]f, sge_[sd]f): Redefine using :SCALARF.
14854
14855 2004-08-30 Mark Mitchell <mark@codesourcery.com>
14856
14857 Revert:
14858 2004-08-29 Mark Mitchell <mark@codesourcery.com>
14859 PR rtl-optimization/16590
14860 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
14861
14862 2004-08-30 Andrew Pinski <apinski@apple.com>
14863
14864 * hard-reg-set.h:
14865 s/HOST_BITS_PER_WIDES_FAST_INT/HOST_BITS_PER_WIDEST_FAST_INT.
14866 * ChangeLog: Fix previous ChangeLog entry.
14867
14868 PR rtl-opt/13987
14869 * config.host (use_long_long_for_widest_fast_int): New, default is
14870 off.
14871 (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int.
14872 * configure.ac: If use_long_long_for_widest_fast_int, then
14873 define USE_LONG_LONG_FOR_WIDEST_FAST_INT.
14874 * configure: Regenerate.
14875 * config.in: Regenerate.
14876 * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT):
14877 New: widest integer type supported efficiently in hardware for the
14878 host.
14879 * sbitmap.h (SBITMAP_ELT_BITS): Define based on
14880 HOST_BITS_PER_WIDEST_FAST_INT.
14881 (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT.
14882 * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on
14883 HOST_WIDEST_FAST_INT
14884 instead of HOST_WIDE_INT.
14885 (HARD_REG_SET_LONGS): Likewise.
14886 (UHOST_BITS_PER_WIDE_INT): Likewise.
14887 Change the checks for the fast cases to be based on
14888 HOST_BITS_PER_WIDEST_FAST_INT instead of HOST_BITS_PER_WIDE_INT.
14889
14890 2004-08-30 Steven Bosscher <stevenb@suse.de>
14891
14892 * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
14893 not the pointers.
14894
14895 2004-08-30 Geoffrey Keating <geoffk@apple.com>
14896
14897 PR 12738
14898 PR 17205
14899 Radar 3460526
14900 Radar 3775729
14901 * c-decl.c (grokdeclarator): Produce error for 'static' on local
14902 function declaration.
14903
14904 2004-08-30 Richard Henderson <rth@redhat.com>
14905
14906 * expr.c (array_ref_element_size): Force aligned_size back to
14907 sizetype.
14908 (component_ref_field_offset): Similarly for aligned_offset.
14909 * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
14910 low-bound, element-size, field-offset fields rather than
14911 computed values.
14912
14913 2004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
14914
14915 * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
14916 redundant code.
14917
14918 2004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
14919
14920 * c-tree.h (struct language_function): Add arg_info element.
14921 * c-decl.c (current_function_arg_info): New.
14922 (grokdeclarator, store_parm_decls): Use it instead of
14923 DECL_ARGUMENTS.
14924 (c_push_function_context, c_pop_function_context): Save and
14925 restore it.
14926
14927 2004-08-30 Richard Henderson <rth@redhat.com>
14928
14929 * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
14930 COMPONENT_REF to pointer arithmetic.
14931 * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
14932 constant "c" as a valid constant initializer. Allow narrowing of
14933 differences against the same base object, for any base object.
14934
14935 2004-08-30 Richard Henderson <rth@redhat.com>
14936
14937 * expr.c (expand_expr_addr_expr): New.
14938 (expand_expr_real_1) <case ADDR_EXPR>: Use it.
14939
14940 2004-08-30 Richard Sandiford <rsandifo@redhat.com>
14941
14942 * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
14943 (mips_fp_condition): New enum.
14944 (mips_fp_conditions): New array.
14945 (print_fcc_operand): Delete.
14946 (print_operand): Remove %V, %v and %Q. Redefine %Z so that it prints
14947 the operand and comma if and only if ISA_HAS_8CC. Add %Y.
14948 (builtin_description): Add "cond" field.
14949 (DIRECT_BUILTIN): Initialize it.
14950 (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
14951 into INSN and CODE. Initialize the "cond" field.
14952 (CMP_BUILTINS): Update accordingly.
14953 (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
14954 (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
14955 mips_fp_condition as argument. Make it the final operand of the
14956 comparison instruction.
14957 (mips_expand_builtin): Update accordingly.
14958 * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
14959 (UNSPEC_C, UNSPEC_CABS): New constants. Shuffle others to fill
14960 the gaps.
14961 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
14962 Don't use the 'Q' operand prefix; just print the operand normally.
14963 (mips_cabs_*, mips_c_*): Delete, replacing with...
14964 (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
14965 patterns. Split the 4s versions into 2 ps patterns after reload.
14966
14967 2004-08-30 Richard Henderson <rth@redhat.com>
14968
14969 * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
14970 assuming an ADDR_EXPR is non-null.
14971
14972 2004-08-30 Jason Merrill <jason@redhat.com>
14973
14974 * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
14975
14976 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
14977
14978 * alias.c (mems_in_disjoint_alias_sets_p, record_alias_subset,
14979 record_set, rtx_equal_for_memref_p, init_alias_analysis): Use
14980 gcc_assert and gcc_unreachable instead of abort.
14981 * alloc-pool.c (abort, fancy_abort): Remove.
14982 (create_alloc_pool, free_alloc_pool, pool_alloc, pool_free): Use
14983 gcc_assert or gcc_unreachable.
14984 * attribs.c (init_attributes, decl_attributes): Likewise.
14985 * bb-reorder.c (FREE, find_traces_1_round, copy_bb,
14986 mark_bb_for_unlikely_executed_section,
14987 add_labels_and_missing_jumps, fix_crossing_conditional_branches,
14988 fix_crossing_unconditional_branches): Likewise.
14989 * bitmap.c (bitmap_first_set_bit, bitmap_last_set_bit,
14990 bitmap_operation): Likewise.
14991 * bt-load.c (insn_sets_btr_p, augment_live_range,
14992 move_btr_def): Likewise.
14993 * builtins.c (c_readstr, expand_builtin_longjmp, apply_args_size,
14994 apply_result_size, expand_builtin_apply, expand_builtin_mathfn,
14995 expand_builtin_mathfn_2, expand_builtin_mathfn_3,
14996 builtin_memcpy_read_str, expand_movstr, expand_builtin_stpcpy,
14997 expand_builtin_memcmp, expand_builtin_args_info,
14998 std_gimplify_va_arg_expr, expand_builtin_unop,
14999 expand_builtin_fputs, expand_builtin_profile_func,
15000 expand_builtin_fork_or_exec, fold_builtin_bitop,
15001 fold_builtin_classify, fold_builtin_fputs): Likewise.
15002
15003 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
15004
15005 * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
15006 * gcov.c (abort): Remove undef.
15007
15008 * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
15009 (struct tree_binfo): Remove primary field.
15010
15011 2004-08-30 Paolo Bonzini <bonzini@gnu.org>
15012
15013 * fixinc/Makefile.in (machname.h): Remove.
15014 (fixincl.x): Do not pass $@ to genfixes.
15015 * fixinc/genfixes: Remove code to produce machname.h.
15016 * fixinc/fixincl.sh: Move it here instead.
15017 * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
15018 instead check if pz_mn_name_pat is NULL. Make mn_get_regexps
15019 return a bool indicating whether pz_mn_name_pat is NULL.
15020 * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
15021 Declare extern C variables for the ENV_TABLE.
15022 * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
15023 instead use the result of mn_get_regexps.
15024 * fixinc/fixtests.c: Likewise.
15025
15026 2004-08-30 Paolo Bonzini <bonzini@gnu.org>
15027
15028 * configure.ac: Do not run fixincludes after stage1 during
15029 toplevel bootstrap.
15030 * configure: Regenerate.
15031
15032 2004-08-30 Richard Earnshaw <rearnsha@arm.com>
15033
15034 * sched-deps.c (get_condition): Partially revert previous, by never
15035 trying to extract the condition from a condjump.
15036
15037 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
15038
15039 * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
15040 (handle_visibility_attribute, c_determine_visibility): Likewise.
15041 * c-common.h (my_friendly_assert): Remove.
15042
15043 2004-08-30 Richard Sandiford <rsandifo@redhat.com>
15044
15045 * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
15046 (UNSPEC_{RSQRT,RECIP}[12]): New constants.
15047 (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
15048 * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
15049 (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
15050
15051 2004-08-30 Diego Novillo <dnovillo@redhat.com>
15052
15053 * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
15054 in COMPONENT_REF nodes.
15055
15056 2004-08-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
15057
15058 PR c++/15378
15059 * c-opts.c (c_common_handle_option): <case OPT_Werror> set
15060 global_dc->warning_as_error_requested.
15061 * diagnostic.c (diagnostic_initialize): Tidy.
15062 * diagnostic.h (diagnostic_context::x_data): Remove
15063 (diagnostic_context::issue_warnings_are_errors_message): Rename
15064 from warnings_are_errors_message.
15065 (diagnostic_context::warning_as_error_requested): New.
15066
15067 2004-08-30 Richard Earnshaw <rearnsha@arm.com>
15068
15069 * sched-deps.c (get_condition): Fix breakage in previous patch.
15070
15071 2004-08-30 Paul Brook <paul@codesourcery.com>
15072
15073 * doc/install.texi: Fix broken mpfr link.
15074
15075 2004-08-29 David O'Brien <obrien@FreeBSD.org>
15076
15077 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
15078 other FreeBSD platforms.
15079
15080 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
15081
15082 * arm.h (REVERSE_CONDITION): Define.
15083 (REVERSIBLE_CC_MODE): All comparisons are now reversible.
15084
15085 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
15086
15087 * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
15088 just the codes, call reversed_comparison_code ().
15089 (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
15090 (not_reg_cond): Use reversed_comparison_code.
15091 (and_reg_cond): Likewise.
15092 * ifcvt.c (cond_exec_process_if_block): Likewise.
15093 * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
15094
15095 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
15096
15097 * sched-deps.c (get_condition): Rewrite using jump support functions.
15098 Use reversed_comparison_code.
15099 (conditions_mutex_p): Use reversed_comparison_code.
15100
15101 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15102
15103 * config/mips/mips.c (override_options): Disable hot/cold partitioning
15104 for MIPS16.
15105
15106 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15107
15108 * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
15109 (mips_function_type): Move to mips.c.
15110 * config/mips/mips.c (mips_builtin_type): New enum.
15111 (builtin_description): Replace code and ftype with builtin_type
15112 and function_type.
15113 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
15114 (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
15115 (CODE_FOR_mips_abs_ps): Define.
15116 (mips_bdesc): Use new macros.
15117 (mips_expand_builtin): Use builtin_type. Update calls to subroutines.
15118 (mips_init_builtins): Use the mips_bdesc[] index as the function code.
15119 (mips_expand_builtin_direct): New function.
15120 (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
15121 builtin. Replace boolean parameter with builtin_type.
15122 (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
15123 (mips_expand_4s_compare_builtin): Delete, replacing with...
15124 (mips_expand_builtin_compare): ...this new function.
15125
15126 2004-08-29 Mark Mitchell <mark@codesourcery.com>
15127
15128 PR rtl-optimization/16590
15129 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
15130
15131 2004-08-29 Diego Novillo <dnovillo@redhat.com>
15132
15133 * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
15134 * tree-ssa-propagate.c: Fix documentation.
15135
15136 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15137
15138 * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
15139 (mov[sd]fcc): Likewise.
15140
15141 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15142
15143 * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
15144
15145 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15146
15147 * config/mips/mips.md (divide_condition): New mode attribute.
15148 (div[sd]f3, *div[sd]f3): Use it. Redefine using :SCALARF.
15149 (sqrt[sd]f3): Redefine using SCALARF.
15150 (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise. Name formerly unnamed
15151 patterns.
15152
15153 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15154
15155 * config/mips/mips.md (ANYF, SCALARF): New mode macros.
15156 (loadx, storex, fmt, UNITMODE): New mode attributes.
15157 (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
15158 (mul[sd]f3): Redefine using :SCALARF.
15159 (*mul[sd]f3): Renamed from mul[sd]f3_internal. Use :SCALARF.
15160 (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
15161 (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns. Use :ANYF.
15162 Check TARGET_FUSED_MADD for V2SF too.
15163 (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
15164 were already named.
15165 (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
15166 (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
15167
15168 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15169
15170 * config/mips/mips.c (mips_init_builtins): Simplify. Only create
15171 V2SF_type_node if it will be needed.
15172
15173 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15174
15175 * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
15176 * config/mips/mips.c (mips_prepare_builtin_arg): New function.
15177 (mips_prepare_builtin_target): New function.
15178 (mips_expand_builtin): Use them. Update calls to subroutines.
15179 (mips_expand_ps_cond_move_builtin): Use the new functions. Replace
15180 cmp_choice with a boolean argument to select between movt and movf.
15181 Take the comparison's icode as an argument, not the function's fcode.
15182 (mips_expand_compare_builtin): New function. Rename existing function
15183 to mips_expand_scalar_compare_builtin.
15184 (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
15185 (mips_expand_ps_compare_builtin): Use the new functions. Take the
15186 comparison's icode as an argument, not the builtin's fcode.
15187
15188 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15189
15190 * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
15191 (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
15192 registers are false and -1 if all registers are true.
15193 (mips_expand_ps_compare_builtin): Likewise CCV2. Use subregs for
15194 MIPS_CMP_UPPER and MIPS_CMP_LOWER.
15195 * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
15196 (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
15197 (bc1any2t, bc1any2f): Likewise CCV2.
15198 (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
15199
15200 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15201
15202 * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
15203 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
15204 UNSPEC rather than an IF_THEN_ELSE.
15205 * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
15206 mips_cond_move_tf_ps by name.
15207
15208 2004-08-29 Chao-ying Fu <fu@mips.com>
15209 James E Wilson <wilson@specifixinc.com>
15210
15211 * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
15212 8 byte size and alignment. Give CCV4 16 byte size and alignment.
15213 * config/mips/mips-ps-3d.md: New file.
15214 * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
15215 TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
15216 (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
15217 (mips_output_move): Emit "mov.ps" for V2SFmode.
15218 (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
15219 MODE_VECTOR_FLOAT.
15220 (override_options): Check if TARGET_MIPS3D and there was an explicit
15221 !TARGET_PAIRED_SINGLE_FLOAT. Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
15222 Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
15223 TARGET_PAIRED_SINGLE_FLOAT is true. Check if the ISA supports
15224 TARGET_PAIRED_SINGLE_FLOAT. Allow MODE_VECTOR_FLOAT in fp registers,
15225 and allow CCV2 and CCV4 to occupy two and four CC registers.
15226 (print_fcc_operand): New function.
15227 (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC. Modify
15228 %Z to call print_fcc_operand.
15229 (mips_function_value): Handle MODE_VECTOR_FLOAT.
15230 (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
15231 (mips_vector_mode_supported_p): New function.
15232 (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
15233 (builtin_description): New struct.
15234 (mips_bdesc): New array of struct builtin_description.
15235 (mips_expand_builtin, mips_init_builtins,
15236 mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
15237 mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
15238 functions.
15239 * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
15240 (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
15241 (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
15242 (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
15243 "-mips3d", and "-mno-mips3d".
15244 (ASM_SPEC): Map -mips3d to -mips3d in gas.
15245 (EXTRA_CONSTRAINT_Y): New macro.
15246 (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT. Add new
15247 multi-letter constraint 'Y'.
15248 (CONSTRAINT_LEN): New macro.
15249 (enum mips_builtins): New for MIPS builtin functions.
15250 (enum mips_function_type): New for the types of MIPS builtin functions.
15251 (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
15252 * config/mips/mips.md: New constants for paired single and MIPS-3D
15253 instructions. Include the new mips-ps-3d.md file.
15254 (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
15255 movv2sf_hardfloat_64bit): New named patterns.
15256 (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
15257 nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
15258 sdxc1_v2sf_di): New unnamed patterns.
15259 * config/mips/predicates.md (const_0_operand, const_1_operand): Add
15260 const_vector support.
15261 (const_0_or_1_operand): New predicate.
15262 * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
15263
15264 2004-08-29 Diego Novillo <dnovillo@redhat.com>
15265
15266 * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
15267 (tree-ssa-propagate.o): New rule.
15268 (GTFILES): Add tree-ssa-propagate.c.
15269 * tree-flow.h (struct stmt_ann_d): Remove field
15270 in_ccp_worklist.
15271 * tree-ssa-propagate.c: New file.
15272 * tree-ssa-propagate.h: New file.
15273 * tree-ssa-ccp.c: Re-write to use the routines from
15274 tree-ssa-propagate.c.
15275
15276 2004-08-28 Andrew Pinski <apinski@apple.com>
15277
15278 * tree-ssa-loop.c: Remove extra include of basic-block.h.
15279
15280 2004-08-28 Ziemowit Laski <zlaski@apple.com>
15281
15282 * c-common.h: Update comments about ObjC/ObjC++ entry points.
15283 (objc_is_reserved_word): New prototype.
15284 (get_current_scope, objc_mark_locals_volatile): Move prototypes to
15285 separate section; these are call-backs.
15286 * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
15287 ObjC/ObjC++ "@" keywords.
15288 * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
15289 prototypes; they already live in c-common.h.
15290 * stub-objc.c: Update copyright notice.
15291 (objc_is_reserved_word): New stub.
15292
15293 2004-08-28 Nathan Sidwell <nathan@codesourcery.com>
15294
15295 * system.h (gcc_assert): Remove __builtin_expect. Evaluate EXPR
15296 even when not checking.
15297
15298 2004-08-27 Jason Merrill <jason@redhat.com>
15299
15300 PR c++/13684
15301 * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
15302 (gimple_push_cleanup): Add eh_only parm.
15303 (gimplify_target_expr): Pass it.
15304 * c.opt (-fno-threadsafe-statics): New option.
15305 * c-opts.c (c_common_handle_option): Handle it.
15306 * c-common.h (flag_threadsafe_statics): Declare it.
15307 * c-common.c (flag_threadsafe_statics): Record it.
15308 * doc/invoke.texi: Document it.
15309 * tsystem.h (_GNU_SOURCE): Define.
15310 * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
15311 (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
15312 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
15313 (__gthread_recursive_mutex_init_function): New fn.
15314 (__gthread_recursive_mutex_lock): New fn.
15315 (__gthread_recursive_mutex_trylock): New fn.
15316 (__gthread_recursive_mutex_unlock): New fn.
15317 * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
15318 * gthr-win32.h, gthr-vxworks.h: Likewise.
15319 * gthr.h: Document.
15320
15321 2004-08-27 David Edelsohn <edelsohn@gnu.org>
15322
15323 * config/rs6000/rs6000.c (rs6000_override_options): Increase
15324 maximum skip to 15. Set function alignment, jump alignment, and
15325 loop alignment to 16 for processors that form dispatch groups.
15326 (rs6000_rtx_costs): outer_code is used.
15327
15328 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
15329
15330 * stor-layout.c (sizetype_set): Remove.
15331 (set_sizetype): Don't test or set it.
15332
15333 * tree.h (size_int_type): Remove.
15334 * fold-const.c: Do not #include gt-fold-const.h.
15335 (size_htab_hash, size_htab_eq): Remove.
15336 (size_int_kind): Use build_int_cst.
15337 (new_const, size_htab): Remove.
15338 (size_int_type): Remove.
15339 (round_up): Use build_int_cst.
15340 (round_down): Likewise. Remove spurious constant build.
15341
15342 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
15343
15344 * configure.ac: Add ENABLE_ASSERT_CHECKING control.
15345 Add is_release variable, use it for --enable-werror and
15346 --enable-checking defaults.
15347 * system.h (gcc_assert, gcc_unreachable): New.
15348 * doc/install.texi (--enable-checking): Update.
15349 * configure, config.in: Rebuilt.
15350
15351 2004-08-26 Richard Sandiford <rsandifo@redhat.com>
15352
15353 * rtl.h (read_rtx): Change prototype.
15354 * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
15355 line number. Return true on success.
15356 * gensupport.c (process_include, init_md_reader_args_cb): Adjust
15357 callers accordingly.
15358
15359 2004-08-26 Richard Henderson <rth@redhat.com>
15360
15361 * c-typeck.c (build_offsetof): Remove.
15362 * c-tree.h (build_offsetof): Remove.
15363 * c-common.c (fold_offsetof_1, fold_offsetof): New.
15364 * c-common.h (fold_offsetof): Declare.
15365 * c-parse.in (offsetof_base): New.
15366 (offsetof_member_designator): Use it. Build references, not just
15367 a tree list.
15368 (primary): Use fold_offsetof, not build_offsetof.
15369
15370 2004-08-26 Richard Henderson <rth@redhat.com>
15371
15372 * tree.c (staticp): Return the static object.
15373 * tree.h (staticp): Update decl.
15374 * langhooks.h (struct lang_hooks): Change staticp return type to tree.
15375 * langhooks.c (lhd_staticp): Return NULL_TREE.
15376 * langhooks-def.h (lhd_staticp): Update decl.
15377 * c-common.c (c_staticp): Return the static object.
15378 * c-common.h (c_staticp): Update decl.
15379
15380 2004-08-26 Richard Henderson <rth@redhat.com>
15381
15382 * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
15383 modes.
15384
15385 2004-08-26 Joseph S. Myers <jsm@polyomino.org.uk>
15386
15387 PR c/13801
15388 * c-decl.c (struct c_binding): Add type and inner_comp fields.
15389 (bind): Set type and inner_comp fields.
15390 (pop_scope): Restore type of decl to the correct type from an
15391 outer scope. Give error when popping file scope for incomplete
15392 arrays completed incompatibly with default initialization in an
15393 inner scope.
15394 (diagnose_mismatched_decls): Handle externs with initializers at
15395 block scope.
15396 (pushdecl): Set type of external declaration at block scope based
15397 only on the visible declarations. Save type when changing the
15398 type of a declaration. Merge an external declaration at block
15399 scope with a visible static declaration at file scope.
15400 (implicitly_declare): Give recycled old declaration the new type
15401 except for incompatible declarations of built-in functions, saving
15402 the old type.
15403
15404 2004-08-26 Ziemowit Laski <zlaski@apple.com>
15405
15406 * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
15407
15408 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
15409
15410 * tree-alias-common.c (gate_pta): New function.
15411 (pass_build_pta): Use it.
15412 (pass_del_pta): Use it.
15413 (delete_alias_vars): Don't check flag_tree_points_to.
15414
15415 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
15416
15417 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
15418 TFmode as additional register mode cloberred by call.
15419
15420 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
15421
15422 * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
15423 parallel pattern for library call returning DImode in
15424 mixed mode.
15425
15426 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
15427
15428 * config/rs6000/rs6000.c (function_arg): Generate parallel
15429 pattern for more split args.
15430
15431 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
15432
15433 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
15434 either gen_movdi_di_update or gen_movdi_si_update depending on
15435 target mode.
15436 * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
15437 to generate two versions.
15438
15439 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
15440
15441 * Makefile.in (lambda-code.o): New.
15442 (lambda-trans.o): Ditto.
15443 (TREE_DATA_REF_H): Ditto.
15444 (LAMBDA_H): Ditto.
15445 (lambda-mat.o): Use LAMBDA_H.
15446 (tree-data-ref.o): Ditto.
15447 * lambda-code.c: New file. Lambda code generation algorithm.
15448 * lambda-trans.c: Ditto. Lambda transformation matrix support.
15449 * lambda.h: Add lambda loop structures.
15450 Add lambda loopnest structures.
15451 Add lambda body vector structure.
15452 Add lambda linear expression structures.
15453 Add prototypes for functions in new files.
15454 * lambda-mat.c: Include tree.h
15455
15456 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
15457 Sebastian Pop <pop@cri.ensmp.fr>
15458
15459 * tree-data-ref.h: Include lambda.h
15460 (free_dependence_relation): Declared here.
15461 (free_dependence_relations): Ditto.
15462 (free_data_refs): Ditto.
15463 * tree-data-ref.c (free_dependence_relation): New function.
15464 (free_dependence_relations): Ditto.
15465 (free_data_refs): Ditot.
15466 (analyze_all_data_dependences): Free datarefs and dependence_relations.
15467 (build_classic_dist_vector): Store in the dependence_relations the
15468 information. Each arc in the dependence_relations graph is labelled
15469 with the distance and direction vectors.
15470 (build_classic_dir_vector): Ditto.
15471 (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
15472 Now computes again the whole dependence graph including read-read
15473 relations.
15474 (compute_data_dependences_for_loop): Now dependence_relations contains
15475 all the data, and thus it doesn't need to initialize the classic_dir
15476 and classic_dist vectors.
15477 (analyze_all_data_dependences): Adjusted for using the new interface of
15478 compute_data_dependences_for_loop. Remove the statistics dump.
15479
15480 2004-08-26 Bob Wilson <bob.wilson@acm.org>
15481
15482 * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
15483 (xtensa_expand_block_move): Update comment.
15484 (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
15485
15486 2004-08026 Richard Earnshaw <rearnsha@arm.com>
15487
15488 PR target/13506
15489 * toplev.c (crash_signal): If we crashed while emitting
15490 a user asm, then die more gracefully.
15491
15492 2004-08-26 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
15493
15494 PR target/17119.
15495 * config/m32r.c (gen_compare): Use reg_or_int16_operand when
15496 checking for a valid constant, regardless of sign.
15497
15498 2004-08-25 Richard Henderson <rth@redhat.com>
15499
15500 PR target/16974
15501 * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
15502 if the constant satisfies add_operand.
15503
15504 2004-08-25 Richard Henderson <rth@redhat.com>
15505
15506 PR debug/10695
15507 * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
15508 (alpha_expand_prologue): Handle >32-bit frames. Generate proper
15509 unwind info for >16-bit frames.
15510
15511 2004-08-25 Richard B. Kreckel <richard.kreckel@framatome-anp.com>
15512
15513 PR target/17171
15514 * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
15515
15516 2004-08-25 Richard Henderson <rth@redhat.com>
15517
15518 * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
15519 (TARGET_CANNOT_FORCE_CONST_MEM): New.
15520
15521 2004-08-25 Andrew MacLeod <amacleod@redhat.com>
15522
15523 * doc/tree-ssa.texi: Document new operand iterator.
15524
15525 2004-08-26 Alan Modra <amodra@bigpond.net.au>
15526
15527 PR target/16480
15528 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
15529 on "(mem (symbol_ref ..))" rtl. Look at LO_SUM base regs as well
15530 as PLUS base regs.
15531
15532 2005-08-28 Paul Brook <paul@codesourcery.com>
15533
15534 * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
15535 -mfpu=vfp -march=armv5t
15536 * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
15537
15538 2004-08-25 Richard Henderson <rth@redhat.com>
15539
15540 * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
15541 * target.h (struct gcc_target): Add scalar_mode_supported_p.
15542 * targhooks.c (default_scalar_mode_supported_p): New.
15543 * targhooks.h (default_scalar_mode_supported_p): Declare.
15544 * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
15545
15546 * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
15547 before attempting to create types. Tidy.
15548 * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
15549
15550 * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
15551 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
15552
15553 2004-08-25 Richard Henderson <rth@redhat.com>
15554
15555 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
15556 set REAL_MODE_FORMAT for TFmode.
15557
15558 2004-08-25 Ziemowit Laski <zlaski@apple.com>
15559
15560 * c-decl.c (grokparm): New function.
15561 * c-tree.h (grokparm): New prototype.
15562
15563 2004-08-25 Andrew MacLeod <amacleod@redhat.com>
15564
15565 * tree-ssa-operands.h (struct ssa_operand_iterator_d): New. SSA operand
15566 iterator controlling structure.
15567 (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
15568 SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
15569 SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New. Operand
15570 iterator flags.
15571 (FOR_EACH_SSA_TREE_OPERAND): New. Iterate over operands as trees.
15572 (FOR_EACH_SSA_USE_OPERAND): New. Iterate over operands as uses.
15573 (FOR_EACH_SSA_DEF_OPERAND): New. Iterate over operands as defs.
15574 (FOR_EACH_SSA_MAYDEF_OPERAND): New. Iterate over V_MAY_DEFs.
15575 * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
15576 Empty operand pointers.
15577 * tree-flow-inline.h (op_iter_done): New. Return true if finished.
15578 (op_iter_next_use): New. Return next use_operand_p.
15579 (op_iter_next_def): New. Return next def_operand_p.
15580 (op_iter_next_tree): New. Return next operands as a tree.
15581 (op_iter_init): New. Initialize an iterator structure.
15582 (op_iter_init_use): New. Initialize structure and get the first use.
15583 (op_iter_init_def): New. Initialize structure and get the first def.
15584 (op_iter_init_tree): New. Initialize structure and get the first tree.
15585 (op_iter_next_maydef): New. Return next V_MAY_DEF operands.
15586 (op_iter_init_maydef): New. Initialize structure and get the first
15587 V_MAY_DEF operands.
15588 * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
15589 * tree-dfa.c (compute_immediate_uses_for_stmt,
15590 redirect_immediate_uses): Use new operand iterator.
15591 (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
15592 (mark_new_vars_to_rename): Use new operand iterator. Count virtual
15593 operands instead of using *_disappeared_p routines.
15594 * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
15595 ssa_rewrite_stmt): Use new operand iterator.
15596 * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
15597 rewrite_trees): Use new operand iterator.
15598 * tree-pretty-print.c (dump_vops): Use new operand iterator.
15599 * tree-sra.c (mark_all_v_defs): Use new operand iterator.
15600 * tree-ssa-alias.c (compute_points_to_and_addr_escape,
15601 dump_points_to_info): Use new operand iterator.
15602 * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
15603 replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
15604 operand iterator.
15605 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
15606 propagate_necessity): Use new operand iterator.
15607 * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
15608 (register_definitions_for_stmt): Use new operand iterator. Take stmt as
15609 a parameter instead of a stmt_ann_t.
15610 * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
15611 build_tree_conflict_graph): Use new operand iterator.
15612 * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
15613 rewrite_mem_refs): Use new operand iterator.
15614 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
15615 check_loop_closed_ssa_use): Use new operand iterator.
15616 * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
15617 * tree-ssanames.c (release_defs): Use new operand iterator.
15618 * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
15619
15620 2004-08-25 Adam Nemet <anemet@lnxw.com>
15621
15622 * tlink.c (initial_cwd): New variable.
15623 (tlink_init): Initialize it.
15624 (recompile_files): Use tlink_execute() instead of system(). Don't
15625 duplicate verbose output of collect_execute. Restore initial_cwd.
15626 Update comment before the function.
15627
15628 2004-08-25 Ziemowit Laski <zlaski@apple.com>
15629
15630 * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
15631 accept) a cast from one Objective-C pointer type to another.
15632
15633 2004-08-25 Paolo Carlini <pcarlini@suse.de>
15634
15635 * doc/install.texi: Document that libstdc++-v3 requires
15636 now automake 1.9.1.
15637
15638 2004-08-25 Caroline Tice <ctice@apple.com>
15639
15640 * bb-reorder.c (partition_hot_cold_basic_blocks): Add more details
15641 to comments at start of function.
15642 * cfgbuild.c (make_edges): Add more details to hot/cold partitioning
15643 comment.
15644 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
15645 merge_blocks_move_predecessor_nojumps,
15646 merge_blocks_move_successor_nojumps, merge_blocks_move,
15647 try_crossjump_to_edge, try_crossjump_bb): Likewise.
15648 * cfglayout.c (fixup_reorder_chain): Likewise.
15649 * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
15650 cfg_layout_can_merge_blocks_p): Likewise.
15651 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15652 * passes.c (rest_of_compilation): Update comments for calling
15653 optimization that partitions hot/cold basic blocks.
15654 * doc/invoke.texi: Update documentation of
15655 freorder-blocks-and-partition flag.
15656
15657 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
15658
15659 * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
15660 (*mov*_on_*): Adjust accordingly. Add an explicit MOVECC: prefix.
15661
15662 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
15663
15664 * config/mips/mips.md (any_shift): New code macro.
15665 (optab, insn): New code attributes.
15666 ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
15667 Use the standard rather than internal patterns for the MIPS16
15668 double-shift optimization.
15669 (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
15670 Redefine using :GPR and any_shift.
15671 (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
15672 to cover all three shifts.
15673 (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
15674 Redefine using any_shift. Use :GPR and any_shift to combine splitters.
15675 (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
15676
15677 2004-08-24 Geoffrey Keating <geoffk@apple.com>
15678
15679 * gimplify.c (lookup_tmp_var): Separate temporaries when not
15680 optimizing.
15681
15682 2004-08-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15683
15684 PR libstdc++/17005 (fix for HP-UX 11.11)
15685 * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
15686 (hppa*-*-hpux*): Consolidate hppa1.0-*-* code. Rework handling of
15687 tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
15688 * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
15689 * config/pa/pa-hpux.h (TARGET_HPUX): Define.
15690 (LINK_SPEC): Handle march=1.0 option.
15691 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
15692 and _XOPEN_SOURCE_EXTENDED for UNIX 95.
15693 (SUBTARGET_OPTIONS): New define.
15694 (LINK_SPEC): Handle march=1.0 option.
15695 (STARTFILE_SPEC): New define.
15696 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
15697 and _XOPEN_SOURCE_EXTENDED for UNIX 95. Additionally, predefine
15698 _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
15699 (SUBTARGET_OPTIONS): New define.
15700 (LINK_SPEC): Handle march=1.0 option.
15701 (STARTFILE_SPEC): New define.
15702 * config/pa/pa.c (override_options): Add code to process -munix= option.
15703 * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
15704 (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
15705 defines.
15706 (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
15707 (SUBTARGET_OPTIONS): Provide default define.
15708 * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
15709 STANDARD_STARTFILE_PREFIX_2): New defines.
15710 (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
15711 (ENDFILE_SPEC): Use %O.
15712 * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
15713 Mention issue caused by changing namespace and runtime to UNIX 95/98.
15714 * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
15715 Document -munix=std option.
15716
15717 2004-08-25 Steven Bosscher <stevenb@suse.de>
15718
15719 * cse.c (cse_around_loop, cse_check_loop_start,
15720 cse_set_around_loop): Remove.
15721 (cse_basic_block): Remove the around_loop argument.
15722 (cse_end_of_basic_block): Remove the after_loop argument.
15723 (cse_main): Likewise.
15724 * rtl.h (cse_main): Update prototype.
15725 * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
15726 rest_of_handle_gcse): Update cse_main calls.
15727
15728 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
15729
15730 * tree.h (build_int_cst): New, sign extended constant.
15731 (build_int_cstu): New, zero extended constant.
15732 (build_int_cst_wide): Renamed from build_int_cst.
15733 * tree.c (build_int_cst, build_int_cstu): New.
15734 (build_int_cst_wide): Renamed from build_int_cst.
15735 (make_vector_type, build_common_tree_nodes,
15736 build_common_tree_nodes_2): Adjust build_int_cst calls.
15737 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
15738 expand_builtin_strpbrk, expand_builtin_fputs,
15739 build_string_literal, expand_builtin_printf,
15740 expand_builtin_sprintf, fold_builtin_classify_type,
15741 fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
15742 fold_builtin_toascii, fold_builtin_isdigit,
15743 simplify_builtin_strstr, simplify_builtin_strpbrk,
15744 fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
15745 * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
15746 DEF_ATTR_INT): Likewise.
15747 * c-decl.c (complete_array_type, check_bitfield_type_and_width):
15748 Likewise.
15749 * c-lex.c (interpret_integer, lex_charconst): Likewise.
15750 * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
15751 * c-pretty-print.c (pp_c_integer_constant): Likewise.
15752 * c-typeck.c (really_start_incremental_init, push_init_level,
15753 set_nonincremental_init_from_string): Likewise.
15754 * calls.c (load_register_parameters): Likewise.
15755 convert.c (convert_to_pointer): Likewise.
15756 coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
15757 build_fn_info_type, build_fn_info_value, build_ctr_info_value,
15758 build_gcov_info): Likewise.
15759 * except.c (init_eh, assign_filter_values): Likewise.
15760 * expmed.c (store_fixed_bit_field, extract_bit_field,
15761 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
15762 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
15763 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
15764 * expr.c (convert_move, emit_group_load, emit_group_store,
15765 expand_assignment, store_constructor, store_field,
15766 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
15767 fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
15768 invert_truthvalue, optimize_bit_field_compare,
15769 decode_field_reference, all_ones_mask_p, constant_boolean_node,
15770 fold_div_compare, fold, fold_read_from_constant_string,
15771 fold_negate_const, fold_abs_const, fold_not_const, round_up,
15772 round_down): Likewise.
15773 * function.c (assign_parm_setup_block): Likewise.
15774 * stmt.c (shift_return_value, expand_case, estimate_case_costs):
15775 Likewise.
15776 * stor-layout.c (layout_type, initialize_sizetypes,
15777 set_min_and_max_values_for_integral_type): Likewise.
15778 * tree-chrec.c (chrec_fold_multiply_poly_poly,
15779 reset_evolution_in_loop): Likewise.
15780 * tree-chrec.h (build_polynomial_chrec): Likewise.
15781 * tree-complex.c (build_replicated_const): Likewise.
15782 * tree-eh.c (honor_protect_cleanup_actions,
15783 lower_try_finally_onedest, lower_try_finally_copy,
15784 lower_try_finally_switch): Likewise.
15785 * tree-mudflap.c (mf_build_string, mx_register_decls,
15786 mudflap_register_call, mudflap_enqueue_constant): Likewise.
15787 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
15788 * tree-pretty-print.c (dump_generic_node): Likewise.
15789 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
15790 Likewise.
15791 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
15792 * tree-ssa-loop-niter.c (number_of_iterations_cond,
15793 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
15794 Likewise.
15795 * tree-ssa-loop-ivcanon.c (create_canonical_iv,
15796 canonicalize_loop_induction_variables): Likewise.
15797 * tree-vectorizer.c (vect_create_index_for_array_ref,
15798 vect_transform_loop_bound, vect_compute_data_ref_alignment):
15799 Likewise.
15800
15801 * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
15802 alpha_gimplify_va_arg_1): Likewise.
15803 * config/arm/arm.c (arm_get_cookie_size): Likewise.
15804 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
15805 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
15806 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15807 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
15808 mips_gimplify_va_arg_expr): Likewise.
15809 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15810 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
15811 add_compiler_branch_island): Likewise.
15812 * config/s390/s390.c (s390_va_start): Likewise.
15813 * config/sh/sh.c (sh_va_start): Likewise.
15814 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
15815 Likewise.
15816 * config/xtensa/xtensa.c (xtensa_va_start,
15817 xtensa_gimplify_va_arg_expr): Likewise.
15818
15819 * objc/objc-act.c (build_objc_string_object,
15820 build_objc_symtab_template, init_def_list, init_objc_symtab,
15821 init_module_descriptor, generate_static_references,
15822 build_selector_translation_table, get_proto_encoding,
15823 build_typed_selector_reference, build_selector_reference,
15824 build_next_objc_exception_stuff,
15825 build_method_prototype_list_template, generate_descriptor_table,
15826 generate_protocols, build_protocol_initializer,
15827 build_ivar_list_template, build_method_list_template,
15828 build_ivar_list_initializer, generate_ivars_list,
15829 generate_dispatch_table, generate_protocol_list,
15830 build_category_initializer, build_shared_structure_initializer,
15831 generate_shared_structures, handle_impent,
15832 generate_objc_image_info): Likewise.
15833
15834 2004-04-25 Paolo Bonzini <bonzini@gnu.org>
15835
15836 * cfglayout.c (duplicate_insn_chain): Remove references to
15837 NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
15838 * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
15839 * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
15840 * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
15841 and NOTE_INSN_LOOP_CONT.
15842 * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
15843 * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
15844 and NOTE_INSN_LOOP_CONT.
15845 * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
15846 check_dbra_loop, loop_dump_aux): Remove references to removed notes
15847 and fields.
15848 * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
15849 * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
15850 references to removed notes and fields.
15851 (subtract_reg_term, ujump_to_loop_cont): Remove.
15852
15853 2004-08-25 Paolo Bonzini <bonzini@gnu.org>
15854
15855 * doc/install.texi: Document that libcpp does not require
15856 Automake any longer. Document that Automake 1.9.1 should
15857 work everywhere.
15858
15859 2004-08-25 Zack Weinberg <zack@codesourcery.com>
15860
15861 * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
15862 * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
15863 DWARF_DEBUGGING_INFO from choice-of-definition chain;
15864 restructure using C89 features (#elif, #error).
15865 * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
15866 * config/sh/sh.h: Remove references to DWARF_DEBUG.
15867 * doc/invoke.texi: Remove references to DWARF version 1;
15868 clarify why -gdwarf-2<n> doesn't work.
15869
15870 2004-08-25 Zack Weinberg <zack@codesourcery.com>
15871
15872 * basic-block.h (BB_SET_PARTITION): Clear old value first.
15873 * cfg.c (clear_bb_flags): Don't clear partition setting.
15874 * ifcvt.c (find_if_case_1): Remove ??? comment.
15875
15876 2004-08-25 Alan Modra <amodra@bigpond.net.au>
15877
15878 PR target/17052
15879 * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
15880 * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
15881 current_function_stdarg in place of sysv_varargs_p.
15882 * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
15883 sysv_varargs_p.
15884
15885 2004-08-24 Richard Henderson <rth@redhat.com>
15886
15887 PR target/16298
15888 * config/i386/i386.c (legitimate_constant_p): Rework to not accept
15889 random codes within CONST.
15890
15891 2004-08-24 James E Wilson <wilson@specifixinc.com>
15892
15893 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
15894 -freorder-blocks-and-partition.
15895
15896 2004-08-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15897
15898 PR middle-end/17044
15899 * tree-ssa-threadupdate.c (redirection_data): Make static.
15900 (thread_block): Use ggc_alloc_cleared to allocate struct
15901 redirection_data. Don't free elements in redirection_data.
15902
15903 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
15904
15905 * config/mips/predicates.md (small_data_pattern): Match prefetches.
15906
15907 2004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15908
15909 PR tree-optimization/17016
15910 * tree-ssa-loop-niter.c (number_of_iterations_cond,
15911 number_of_iterations_exit): Use POINTER_TYPE_P instead
15912 of testing for POINTER_TYPE.
15913
15914 2004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15915
15916 * tree-ssa-loop-ivcanon.c: New file.
15917 * tree-ssa-loop-manip.c (create_iv): New function.
15918 * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
15919 (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
15920 * cfgloop.c (mark_single_exit_loops): New function.
15921 (verify_loop_structure): Verify single-exit loops.
15922 * cfgloop.h (struct loop): Add single_exit field.
15923 (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
15924 (mark_single_exit_loops): Declare.
15925 (tree_num_loop_insns): Declare.
15926 * cfgloopmanip.c (update_single_exits_after_duplication): New function.
15927 (duplicate_loop_to_header_edge): Use it.
15928 * common.opt (fivcanon): New flag.
15929 * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
15930 * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
15931 (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
15932 (bsi_insert_on_edge_immediate): New function.
15933 * tree-flow.h (bsi_insert_on_edge_immediate,
15934 canonicalize_induction_variables, tree_unroll_loops_completely,
15935 create_iv): Declare.
15936 * tree-optimize.c (init_tree_optimization_passes): Add
15937 pass_iv_canon and pass_complete_unroll.
15938 * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
15939 * tree-scalar-evolution.c (get_loop_exit_condition,
15940 get_exit_conditions_rec, number_of_iterations_in_loop,
15941 scev_initialize): Use single_exit information.
15942 * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
15943 missing assumptions.
15944 (loop_niter_by_eval): Return number of iterations as unsigned
15945 int.
15946 * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
15947 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
15948 tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
15949 New passes.
15950 (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
15951 * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
15952 the defining statement is ready.
15953 * tree-vectorizer.c (vect_create_iv_simple): Removed.
15954 (vect_create_index_for_array_ref, vect_transform_loop_bound):
15955 Use create_iv.
15956 (vect_transform_loop_bound): Use single_exit information.
15957 (vect_analyze_loop_form): Cleanup bogus tests.
15958 (vectorize_loops): Do not call flow_loop_scan.
15959 * tree.h (may_negate_without_overflow_p): Declare.
15960 * fold-const.c (may_negate_without_overflow_p): Split out from ...
15961 (negate_expr_p): ... this function.
15962 (tree_expr_nonzero_p): Handle overflowed constants correctly.
15963 * doc/invoke.texi (-fivcanon): Document.
15964 * doc/passes.texi: Document canonical induction variable creation.
15965
15966 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
15967
15968 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
15969 * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
15970 using the mode of the operand to decide between them.
15971 * config/mips/mips.md (MOVECC): New mode macro.
15972 (ccreg): New mode attribute.
15973 (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
15974 Redefine using :GPR and :MOVECC. Use %T and %t for the condition.
15975 (mov[sd]icc): Redefine using :GPR.
15976
15977 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
15978
15979 * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
15980 (mips_prefetch_cookie): New function.
15981 * config/mips/mips.c (print_operand_address): Fix handling of
15982 ADDRESS_CONST_INT.
15983 (mips_emit_prefetch): Delete.
15984 (mips_prefetch_cookie): New function.
15985 * config/mips/mips.md (prefetch): Turn into a define_insn. Use a
15986 mode of QImode for the address_operand. Use mips_prefetch_cookie
15987 to calculate the first "pref" operand.
15988 (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
15989 (prefetch_indexed_[sd]i): Redefine using :P. Use mips_prefetch_cookie.
15990
15991 2004-08-24 Richard Earnshaw <rearnsha@arm.com>
15992
15993 * arm.md: Include predicates.md.
15994 * predicates.md: New file.
15995 * arm.c (s_register_operand, arm_hard_register_operand)
15996 (arm_general_register_operand, f_register_operand, reg_or_int_operand)
15997 (arm_immediate_operand, arm_neg_immediate_operand)
15998 (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
15999 (arm_add_operand, arm_addimm_operand, arm_not_operand)
16000 (offsettable_memory_operand, alignable_memory_operand)
16001 (arm_reload_memory_operand, arm_float_rhs_operand)
16002 (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
16003 (index_operand, shiftable_operator, logical_binary_operator)
16004 (shift_operator, equality_operator, arm_comparison_operator)
16005 (minmax_operator, cc_register, dominant_cc_register)
16006 (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
16007 (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
16008 (const_shift_operand, load_multiple_operation)
16009 (store_multiple_operation, multi_register_push, thumb_cmp_operand)
16010 (thumb_cmpneg_operand, thumb_cbrch_target_operand)
16011 (cirrus_register_operand, cirrus_fp_register)
16012 (cirrus_shift_const): Delete, replaced with equivalents in
16013 predicates.md.
16014 (shift_op): Handle ROTATE.
16015 * arm-protos.h: Delete declarations for above.
16016 * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
16017 * t-arm (MD_INCLUDES): Add predicates.md.
16018 (s-preds): Depends on MD_INCLUDES.
16019
16020 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16021
16022 * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
16023 * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
16024 patterns. Redefine using :GPR. Give the match_operator a mode.
16025 Use '%2' rather than '%z2' for operand 2.
16026
16027 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16028
16029 * config/mips/mips.md (load_call[sd]i): Redefine using :P. Add mode
16030 attribute.
16031
16032 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16033
16034 * config/mips/mips.md (indirect_jump): Use force_reg. Adjust names
16035 of internal patterns.
16036 (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
16037 Redefine using :P.
16038 (tablejump): Use expand_binop to calculate address. Adjust names
16039 of internal patterns.
16040 (tablejump[sd]i): Renamed from tablejump_internal[12].
16041 Redefine using :P.
16042 (tablejump_mips16[12]): Delete.
16043
16044 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16045
16046 * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
16047 (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
16048 (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
16049 (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
16050 (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
16051
16052 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16053
16054 * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
16055 (*branch_zero[sd]i): Renamed from branch_zero{,_di}. Redefine
16056 using :GPR.
16057 (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
16058 (*branch_equality[sd]i): Likewise branch_equality{,_di}.
16059 (*branch_equality[sd]i_inverted): Likewise
16060 branch_equality{,_di}_inverted.
16061 (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
16062 Redefine using :GPR.
16063
16064 2004-08-24 Zack Weinberg <zack@codesourcery.com>
16065
16066 * rtl.def: Reorganize, placing all codes used only in machine
16067 descriptions at the end.
16068
16069 * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
16070 * gengtype.c: Don't include rtl.h. Define enum rtx_code and
16071 rtx_name, rtx_format arrays by direct reference to rtl.def,
16072 first undefining GENERATOR_FILE. Define enum insn_note and
16073 note_insn_name array by direct reference to insn-notes.def.
16074 (adjust_field_rtx_def): Remove local definition of rtx_name.
16075 Use symbolic names for insn notes.
16076 * Makefile.in (gengtype.o): Update dependencies.
16077
16078 2004-08-24 Zack Weinberg <zack@codesourcery.com>
16079
16080 * basic-block.h (struct basic_block_def): Reorder fields to
16081 eliminate interior padding. Remove 'partition' field.
16082 (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
16083 (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
16084 (BB_COPY_PARTITION): New macros.
16085 * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
16086 Replace all references to the 'partition' field of a basic
16087 block with new macros.
16088
16089 * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
16090 * final.c (final_scan_insn): Don't handle it.
16091 * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
16092 instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
16093 * sched-rgn.c (sched_is_disabled_for_current_region_p):
16094 Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
16095
16096 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
16097
16098 * c-decl.c (c_init_decl_processing): Adjust
16099 build_common_tree_nodes call.
16100 * expmed.c (const_mult_add_overflow_p): Use
16101 build_distinct_type_copy.
16102 * stor-layout.c (early_type_list): Remove.
16103 (layout_type): Don't append to early_type_list.
16104 (initialize_sizetypes): Add signed_p argument.
16105 (set_sizetype): Overwrite the stub type nodes directly.
16106 * tree.c (copy_node_stat): Clear a type's value cache here ...
16107 (build_distinct_type): ... not here.
16108 (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
16109 * tree.h (initialize_sizetypes): Add signed_p argument.
16110 (build_common_tree_nodes): Likewise.
16111
16112 * objc/objc-act.c (get_static_reference): Use
16113 build_variant_type_copy.
16114 (get_protocol_reference): Likewise.
16115 * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
16116
16117 2004-08-24 Richard Henderson <rth@redhat.com>
16118 Andrew Pinski <apinski@apple.com>
16119
16120 * gimplify.c (gimplify_array_ref_to_plus): Delete.
16121 (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
16122 for ARRAY_REF.
16123
16124 * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
16125 ARRAY_REF also to get to the STRING_CST.
16126
16127 2004-08-24 Paul Brook <paul@codesourcery.com>
16128
16129 * config/arm/arm.c (arm_override_options): Update error message.
16130 * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
16131 TARGET_HARD_FLOAT_ABI.
16132 (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
16133 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
16134
16135 2004-08-24 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
16136
16137 PR target/17093
16138 * config/m32r.md (movsi_sda): Add SI mode specification to
16139 UNSPEC.
16140
16141 2004-08-24 Nick Clifton <nickc@redhat.com>
16142
16143 * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
16144 of seth_add3_operand.
16145
16146 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
16147
16148 * Makefile.in (PROTO_OBJS): Add errors.o.
16149 * protoize.c (fancy_abort): Remove.
16150 * mips-tfile.c (fancy_abort): Add parameters.
16151
16152 2004-08-24 Jonathan Wakely <redi@gcc.gnu.org>
16153
16154 * doc/trouble.texi (C++ misunderstandings): Fix example code.
16155
16156 2004-08-24 Andreas Tobler <a.tobler@schweiz.ch>
16157
16158 * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
16159 (host-default.o): Add dependency on HOOKS_H.
16160 * config/x-linux: Likewise.
16161 * config/x-solaris: Likewise.
16162 * config/i386/x-mingw32: Likewise.
16163 * config/rs6000/x-darwin: Likewise.
16164
16165 2004-08-23 James E Wilson <wilson@specifixinc.com>
16166
16167 * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
16168 DEF_REG_NOTE.
16169
16170 2004-08-23 Mark Mitchell <mark@codesourcery.com>
16171
16172 PR c/14492
16173 * dwarf2out.c (loc_descriptor_from_tree): Robustify.
16174
16175 2004-08-23 Diego Novillo <dnovillo@redhat.com>
16176
16177 * cfg.c (check_bb_profile): Fix typos.
16178 * function.c (assign_parm_is_stack_parm): Likewise.
16179 * tree-nested.c: Likewise.
16180
16181 2004-08-23 Daniel Jacobowitz <dan@debian.org>
16182
16183 * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
16184 Remove TYPECODE.
16185 (ggc_alloc_zone_1): Mark TYPE as unused. Don't save it in the chunk.
16186
16187 2004-08-23 Eric Christopher <echristo@redhat.com>
16188
16189 * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
16190 * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
16191 * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
16192 * target.h: Ditto.
16193 * hooks.h: Include machmode.h.
16194 (hook_bool_mode_false): Declare.
16195 * hooks.c (hook_bool_mode_false): Define.
16196 * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
16197 * stor-layout.c (layout_type): Ditto.
16198 * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
16199 Define to target macro.
16200 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
16201 * config/arm/arm.c: Ditto. Use.
16202 * config/arm/arm.h: Ditto.
16203 * config/arm/arm-protos.h: Ditto.
16204 * config/i386/i386.c: Ditto.
16205 * config/i386/i386.h: Ditto.
16206 * config/rs6000/rs6000.c: Ditto.
16207 * config/rs6000/rs6000.h: Ditto.
16208 * config/sh/sh.c: Ditto.
16209 * config/sh/sh.h: Ditto.
16210 * config/sh/sh-protos.h: Ditto.
16211 * config/sh/sh.md: Use.
16212 * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
16213 to TARGET_VECTOR_MODE_SUPPORTED_P.
16214
16215 2004-08-23 Nathan Sidwell <nathan@codesourcery.com>
16216
16217 * Makefile.in (BUILD_ERRORS): Set to build-errors.
16218 (errors.o): New target for host.
16219 (build-errors.o): New target for build.
16220 (genobjs): Replace errors.o with build-errors.
16221 (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
16222 (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
16223 (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
16224 (fix-header.o): Add errors.h
16225 * collect2.c (fancy_abort): Add parameters.
16226 * collect2.h (fancy_abort): Don't declare.
16227 * errors.h (fancy_abort): Don't declare.
16228 * errors.c: Include either bconfig.h or config.h.
16229 (fancy_abort): Trim filename.
16230 * fix-header.c (v_fatal, fatal): Remove.
16231 (progname): Remove definition.
16232 (main): Set progname here.
16233 * gcc.c (fancy_abort): Add parameters.
16234 * gcc.h (fancy_abort): Remove declaration.
16235 * gcov.c (fancy_abort): Remove.
16236 * rtl.h (fancy_abort): Don't declare.
16237 (abort): Don't define.
16238 * tree.h (fancy_abort): Don't declare.
16239 (abort): Don't define.
16240 * system.h (fancy_abort): Declare.
16241 (abort): Define to fancy_abort.
16242 * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
16243
16244 * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
16245 (usize_type, ubitsizetype): Remove.
16246 * stor-layout.c (set_sizetype): Don't initialize usizetype,
16247 ubitsizetype.
16248 * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
16249
16250 * tree.h (build_distinct_type_copy): New.
16251 (build_type_copy): ... here. Rename to ...
16252 (build_variant_type_copy): ... here.
16253 * tree.c (build_qualified_type): Rename build_type_copy call.
16254 (build_distinct_type_copy): New, broken out of ...
16255 (build_type_copy): ... here. Rename to ...
16256 (build_variant_type_copy): ... here. Use
16257 build_distinct_type_copy.
16258 (build_common_tree_nodes_2): Rename build_type_copy call.
16259 * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
16260 call.
16261 (handle_packed_attribute, handle_unused_attribute,
16262 handle_transparanet_union_attribute, handle_aligned_attribute,
16263 handle_deprecated_attribute): Likewise.
16264 * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
16265 Likewise.
16266 * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
16267 * config/rs6000/rs6000.c (rs6000_init_builtins): Use
16268 build_distinct_type_copy.
16269
16270 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16271
16272 * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR. Add mode
16273 attribute.
16274
16275 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16276
16277 * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
16278 loads and stores.
16279 (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
16280 formerly unnamed patterns. Redefine using :P for the address. Remove
16281 explicit length attributes.
16282
16283 2004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16284
16285 * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
16286 New functions.
16287 (single_reachable_address): Use them.
16288 (schedule_sm): Add dump.
16289 (is_call_clobbered_ref): New function.
16290 (determine_lsm_reg): Check whether the reference is call clobbered.
16291 Only work for gimple_reg_type values.
16292
16293 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16294
16295 * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
16296 $31 store insns. Redefine using :GPR.
16297
16298 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16299
16300 * config/mips/mips.md (P): New mode macro.
16301 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
16302 (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
16303 Add mode attributes.
16304
16305 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16306
16307 * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
16308 (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants. Shuffle
16309 later constants to cover the gap.
16310 (load, store): New mode attributes.
16311 (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
16312 Use new unspec constants.
16313
16314 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16315
16316 * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
16317 (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise. Change 32-bit patterns
16318 to use register_operand rather than uns_arith_operand as the predicate
16319 for operand 1. Remove redundant MIPS16 force_reg() for operand 1.
16320 (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
16321 Redefine using :GPR. Make same predicate change here. Extend the
16322 commutativity of operands 1 and 2 from the SImode version to the
16323 DImode one.
16324 (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
16325 but with no predicate changes.
16326 (*nor[sd]i3): Redefine using :GPR.
16327
16328 2004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16329
16330 * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
16331 noreturn functions.
16332
16333 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16334
16335 * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
16336 * config/mips/mips.md (abs[sd]i2): Redefine using :GPR. Only use
16337 branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY. Use "%."
16338 rather than "%z2" (with a fake const0_rtx for operand 2).
16339 (ffs[sd]i2): Redefine using :GPR.
16340 (clz[sd]i2): Likewise. Use ISA_HAS_CLO_CLZ for the 64-bit case.
16341
16342 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16343
16344 * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
16345
16346 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16347
16348 * config/mips/mips.md (any_extend): New code macro.
16349 (u, su): New code attributes.
16350 ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
16351 ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
16352 ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
16353 (*{s,u}mul_acc_di): Redefine using any_extend.
16354 (*{,u}muls_di, *{s,u}msac_di): Likewise. Change names of patterns
16355 to reflect real insn names.
16356 (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
16357 with an any_extend template.
16358 ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
16359 Add '*' to name.
16360
16361 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16362
16363 * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
16364 * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
16365 (mul[sd]i3_r4000): Redefine using :GPR.
16366 (mulsi3_mult3): Don't check TARGET_MAD separately.
16367 (muldi3_mult3): Moved after mulsi_mult3.
16368
16369 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16370
16371 * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
16372 OBJECT_FORMAT_ELF. Set MASK_SPLIT_ADDR by default if using GNU ld.
16373 * config/mips/mips.h (MASK_GAS): Delete. Shuffle later masks down.
16374 (TARGET_GAS, TARGET_MIPS_AS): Delete.
16375 (TARGET_GPWORD): Define to true for n32 on IRIX.
16376 (TARGET_SWITCHES): Remove -mmips-as. Turn -mgas into a no-op.
16377 (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
16378 (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
16379 (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
16380 (MDEBUG_ASM_SPEC): Delete, folding into...
16381 (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
16382 (ASM_SPEC): Inline old GAS_ASM_SPEC. Use GNU names for ABI switches.
16383 (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
16384 subtarget_mips_as_asm_spec, mdebug_asm_spec. Use MULTILIB_ABI_DEFAULT
16385 to define asm_abi_default_spec.
16386 (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
16387 (TARGET_ASM_SELECT_SECTION): Delete.
16388 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
16389 for non-mips16 code, removing previous workaround for SGI assemblers.
16390 (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
16391 (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
16392 (override_options): Remove !TARGET_GAS and !have_named_sections code.
16393 (print_operand): Fold TARGET_GAS conditionals into asm strings.
16394 (mips_output_filename): Remove !TARGET_GAS code. Replace use of
16395 ASM_STABS_OP and ASM_STABN_OP.
16396 (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
16397 (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
16398 (mips_output_function_prologue): Remove !TARGET_GAS code.
16399 (mips_select_rtx_section): Remove !have_named_sections code.
16400 (mips_select_section): Delete.
16401 * config/mips/mips.md (trap): Remove !TARGET_GAS check.
16402 * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
16403 * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
16404 (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
16405 * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
16406 * config/mips/windiss.h (ASM_SPEC): Likewise.
16407
16408 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16409
16410 * read-rtl.c (map_value, mapping, macro_group): New structures.
16411 (BELLWETHER_CODE): New macro.
16412 (modes, codes, bellwether_codes): New variables.
16413 (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
16414 (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
16415 (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
16416 (add_condition_to_rtx, apply_macro_traverse, add_mapping)
16417 (add_map_value, initialize_macros): New functions.
16418 (def_hash, def_hash_eq_p): Generalize to anything that points to,
16419 or starts with, a char * field.
16420 (find_macro, read_mapping, check_code_macro): New functions.
16421 (read_rtx_1): New, split out from read_rtx. Handle the new
16422 define_{mode,code}_{macro,attr} constructs. Use find_macro
16423 to parse the name of a code or mode. Use BELLWETHER_CODE to
16424 extract the format and to choose a suitable code for rtx_alloc.
16425 Modify recursive invocations to use read_rtx_1.
16426 (read_rtx): Call initialize_macros. Apply code and mode macros
16427 to the rtx returned by read_rtx_1. Cache everything after the
16428 first macro expansion for subsequent read_rtx calls.
16429 * doc/md.texi: Document new .md constructs.
16430 * config/mips/mips.md (GPR): New mode macro.
16431 (d, si8_di5): New mode attributes.
16432 (any_cond): New code macro.
16433 (add[sd]i3): Redefine using :GPR.
16434 (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
16435 (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
16436 previously unnamed MIPS16 patterns.
16437 (*addsi3_extended): Renamed from addsi3_internal_2. Fix overly long
16438 lines. Don't match (plus (const_int 0) ...).
16439 (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
16440 Use a define_split to generate the addition.
16441 (sub[sd]i3): Redefine using :GPR. Turn subsi3 into a define_insn.
16442 (subsi3_internal): Delete.
16443 (*subsi3_extended): Renamed from subsi3_internal_2.
16444 (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
16445 (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
16446 using an any_cond template.
16447
16448 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16449
16450 * read-rtl.c (read_rtx): Tidy use of format_ptr.
16451
16452 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16453
16454 * read-rtl.c (string_obstack): New file-scope variable.
16455 (read_string, read_quoted_string, read_braced_string)
16456 (read_escape): Remove obstack parameter and use string_obstack instead.
16457 (read_rtx): Remove function-local rtl_obstack and initialize
16458 string_obstack instead. Update call to read_string.
16459
16460 2004-08-22 Andrew Pinski <apinski@apple.com>
16461
16462 PR c/15262
16463 * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
16464 expression is not constant.
16465 (c_finish_return): Do not go through INDIRECT_REF when looking
16466 for the inner expression of an ADDR_EXPR for warning about.
16467
16468 2004-08-22 Richard Henderson <rth@redhat.com>
16469
16470 PR 17075
16471 * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
16472 create new blocks and fall through.
16473 (expand_gimple_basic_block): Update to match.
16474
16475 2004-08-22 Ulrich Weigand <uweigand@de.ibm.com>
16476
16477 * reload.c (find_reloads_address): Make return value tri-state.
16478 Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
16479 (find_reloads): Assume that reloaded addresses match 'o' or
16480 EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
16481 returned 1 (not -1). Omit optional reloads for address operands
16482 only if find_reloads_address returned 1 (not -1).
16483
16484 * config/s390/s390.c (legitimize_reload_address): New function.
16485 * config/s390/s390-protos.h (legitimize_reload_address): Declare.
16486 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define. Call
16487 legitimize_reload_address.
16488
16489 2004-08-22 Richard Hendersion <rth@redhat.com>
16490
16491 * tree.h (SAVE_EXPR_RESOLVED_P): New.
16492 * gimplify.c (gimplify_save_expr): Use it.
16493 * expr.c (expand_expr_real_1): Likewise. Also set DECL_IGNORED_P
16494 on the temporary variable.
16495
16496 2004-08-22 Andrew Pinski <pinskia@physics.uc.edu>
16497
16498 * fold-const.c (rtl_expr_nonnegative_p): Delete.
16499 * tree.h (rtl_expr_nonnegative_p): Remove.
16500
16501 2004-08-22 Steven Bosscher <stevenb@suse.de>
16502
16503 * config/i386/ppro.md (ppro_complex_insn): Add missing check
16504 for cpu==pentiumpro.
16505
16506 * combine.c (struct reg_stat): Fix comment typo.
16507
16508 2004-08-22 Joseph S. Myers <jsm@polyomino.org.uk>
16509
16510 * c-tree.h (c_sizeof_nowarn): Remove.
16511
16512 2004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
16513
16514 * c-decl.c (set_array_declarator_type): Rename to
16515 set_array_declarator_inner.
16516 (build_c_parm, build_attrs_declarator, build_function_declarator):
16517 New functions.
16518 (make_pointer_declarator): Call build_attrs_declarator.
16519 * c-tree.h (set_array_declarator_type): Rename to
16520 set_array_declarator_inner.
16521 (build_c_parm, build_attrs_declarator, build_function_declarator):
16522 New prototypes.
16523 * c-parse.in (after_type_declarator,
16524 parm_declarator_starttypename, parm_declarator_nostarttypename,
16525 notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
16526 firstparm): Use these functions
16527
16528 2004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
16529
16530 * c-decl.c (build_array_declarator, set_array_declarator_type,
16531 start_decl, grokdeclarator, grokparms): Change boolean parameters
16532 to type bool.
16533 * c-tree.h (build_array_declarator, set_array_declarator_type,
16534 start_decl): Update prototypes.
16535 * c-decl.c, c-parse.in: All callers changed.
16536
16537 2004-08-21 Mike Stump <mrs@apple.com>
16538
16539 * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
16540 (darwin_fix_and_continue): Likewise.
16541 (darwin_fix_and_continue_switch): Likewise.
16542 * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
16543 (darwin_fix_and_continue): Likewise.
16544 (darwin_fix_and_continue_switch): Likewise.
16545
16546 2004-08-21 Danny Smith <dannysmith@users.sourceforge.net>
16547
16548 PR c++/16030
16549 * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
16550 Remove, merging into ...
16551 (gen_stdcall_or_fastcall_suffix): New function, returning tree
16552 rather than const char*, and accepting additional parameter.
16553 Don't add suffix to '*'-prefixed symbols or variadic functions.
16554 (i386_pe_encode_section_info): Adjust for call to new function.
16555 Call change_decl_assembler_name.
16556
16557 2004-08-20 Mike Stump <mrs@apple.com>
16558
16559 * config/darwin.c (machopic_indirect_data_reference): Mark
16560 stubs as defined.
16561 * config/386/386.c (darwin_local_data_pic): Add.
16562 (legitimate_constant_p): Reorder so that PLUS handling runs
16563 before darwin_local_data_pic to match the ordering in
16564 legitimate_pic_address_disp_p and so that MINUS runs after
16565 darwin_local_data_pic as otherwise the darwin_local_data_pic
16566 logic can be skipped, which would be very bad.
16567 (legitimate_pic_address_disp_p): Move from from here to
16568 darwin_local_data_pic so it can be reused.
16569
16570 2004-08-21 Alan Modra <amodra@bigpond.net.au>
16571
16572 * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
16573 (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
16574 (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
16575 (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
16576 (RS6000_ABI_NAME): Define as "linux".
16577 (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
16578 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
16579 ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
16580 * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
16581 * config/rs6000/rs6000.c (dot_symbols): New global var.
16582 (rs6000_output_function_entry): New function, modified for
16583 !DOT_SYMBOLS..
16584 (print_operand <case 'z'>): ..extracted from here.
16585 (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
16586 (rs6000_output_function_epilogue): Likewise.
16587 (rs6000_elf_declare_function_name): Likewise.
16588 * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
16589 (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
16590 * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
16591 * configure: Regenerate.
16592 * config.in: Regenerate.
16593
16594 2004-08-20 Mark Mitchell <mark@codesourcery.com>
16595
16596 * reload.c (find_reloads_address): Fix thinko in previous change.
16597
16598 * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
16599 a CONST_INT.
16600
16601 2004-08-20 Jakub Jelinek <jakub@redhat.com>
16602
16603 PR rtl-optimization/17099
16604 * combine.c (force_to_mode): Check if inner_mask has any bits set
16605 outside of GET_MODE (x) instead of op_mode.
16606
16607 2004-08-20 Mark Mitchell <mark@codesourcery.com>
16608
16609 * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
16610 fragment.
16611 * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
16612 (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
16613 * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
16614 architecture.
16615 (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
16616 configurations.
16617 * config/arm/t-symbian: New file.
16618
16619 2004-08-20 Andrew Pinski <apinski@apple.com>
16620
16621 * regrename.c (kill_value_regno): ANSIfy.
16622
16623 2004-08-20 Dale Johannesen <dalej@apple.com>
16624
16625 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
16626
16627 2004-08-20 Daniel Jacobowitz <dan@debian.org>
16628
16629 * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
16630 (kill_value_regno): New function, derived from kill_value.
16631 (kill_value): Update.
16632 (copyprop_hardreg_forward_1): Update call to kill_value_regno.
16633
16634 2004-08-20 Daniel Berlin <dberlin@dberlin.org>
16635
16636 Fix PR tree-optimization/17111
16637 * tree-ssa-pre.c (create_value_expr_from): Don't change the types
16638 of non-value_handles.
16639 (bitmap_set_contains): All constants are in every set.
16640
16641 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
16642
16643 * fold-const.c (round_up, round_down): Use build_int_cst.
16644 Optimize common case.
16645
16646 2004-08-20 Zack Weinberg <zack@codesourcery.com>
16647 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16648
16649 * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
16650 one_only_data_section): Rename to som_readonly_data_section,
16651 som_one_only_readonly_data_section and som_one_only_data_section.
16652 * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
16653 NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
16654 conditional defines.
16655 (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
16656 NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
16657 string values.
16658 (pa_select_section): Use renamed section functions.
16659 * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
16660 SOM_READONLY_DATA_SECTION_FUNCTION,
16661 SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
16662 SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
16663 Define here ...
16664 * config/pa/som.h: ... not here.
16665 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
16666 ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
16667 ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
16668 ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
16669 (READONLY_DATA_SECTION): Use som_readonly_data_section.
16670
16671 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
16672
16673 * fold-const.c (int_const_binop): Don't generate non-overflowing
16674 size-types specially.
16675 (fold_convert_const): Likewise.
16676
16677 * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
16678 clear cache on copied sizetype.
16679
16680 2004-08-20 Ben Elliston <bje@au.ibm.com>
16681
16682 * configure.ac: Don't escape apostrophe in --enable-coverage help.
16683 * configure: Regenerate.
16684
16685 2004-08-20 Danny Smith <dannysmith@users.sourceforge.net>
16686
16687 PR 5620
16688 * gcc.c (struct stat input_stat): Don't define if
16689 HOST_LACKS_INODE_NUMBERS
16690 (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
16691 than stat to determine if temp file is same as input file.
16692 * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
16693 * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
16694
16695 2004-08-20 Richard Sandiford <rsandifo@redhat.com>
16696
16697 * configure.ac (mips*-*-*): Print an error if not using GAS.
16698 * configure: Regenerated.
16699 * doc/install.texi: Remove irix5 bullet from --with-gnu-as. Remove
16700 comments about buggy MIPSpro assemblers.
16701 * config.gcc (mips-sgi-irix[56]*): Combine stanzas. Include elfos.h
16702 before mips.h and iris.h after it. Use t-iris and t-slibgcc-irix.
16703 Use iris5.h only for IRIX 5 configs. Use iris6.h and t-iris6 for
16704 IRIX 6 configs. Define IRIX_USING_GNU_LD if using GNU ld.
16705 * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
16706 (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
16707 (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
16708 (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
16709 (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
16710 of more general IRIX 6 definitions.
16711 (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
16712 (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
16713 (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
16714 (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
16715 (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
16716 (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
16717 (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
16718 (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
16719 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
16720 (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
16721 (LINK_SPEC): Move most of definition to iris.h.
16722 (SUBTARGET_LINK_SPEC): New macro.
16723 (IRIX_STARTFILE_SPEC): Fold into...
16724 (STARTFILE_SPEC): ...here.
16725 (IRIX_ENDFILE_SPEC): Fold into...
16726 (ENDFILE_SPEC): ...here.
16727 * config/mips/iris6.h (TARGET_IRIX5): Remove override.
16728 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
16729 (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
16730 (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
16731 (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
16732 (TARGET_OS_CPP_BUILTINS): Likewise. Guard IRIX6-specific bits.
16733 (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
16734 (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
16735 (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
16736 (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
16737 (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
16738 (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
16739 (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
16740 (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
16741 (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
16742 (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
16743 (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
16744 (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
16745 (TARGET_IRIX6): Define to 1.
16746 (DRIVER_SELF_SPECS): Define.
16747 (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
16748 (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
16749 (SUBTARGET_LINK_SPEC): New macro.
16750 (IRIX_STARTFILE_SPEC): Fold into...
16751 (STARTFILE_SPEC): ...here. Remove !mabi=* case.
16752 (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
16753 (LIB_SPEC, LIBGCC_SPEC): Use them.
16754 (LIB_SPEC): Remove !mabi=* case.
16755 (IRIX_ENDFILE_SPEC): Fold into...
16756 (ENDFILE_SPEC): ...here. Remove !mabi=* case.
16757 * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
16758 * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
16759 (TARGET_IRIX6): New macro.
16760 (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
16761 (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
16762 (LABEL_AFTER_LOC): Delete.
16763 * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
16764 (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
16765 (mips_build_builtin_va_list): Check TARGET_IRIX6.
16766 (override_options): Remove TARGET_SGI_O32_AS-related code.
16767 (irix_output_external_libcall): Make static.
16768 (mips_output_filename): Avoid use of SET_FILE_NUMBER and
16769 LABEL_AFTER_LOC.
16770 (mips_file_start): Tidy guard for ABI sections. Remove use of
16771 ABICALLS_ASM_OP; use .abicalls instead.
16772 (mips_output_aligned_decl_common, mips_declare_object_name)
16773 (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
16774 (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
16775 .globl foo .text directives.
16776 (irix_asm_named_section_1, irix_asm_named_section)
16777 (irix_section_align_entry, irix_section_align_htab)
16778 (irix_orig_asm_out_file, irix_section_align_entry_eq)
16779 (irix_section_align_entry_hash, irix_asm_output_align)
16780 (irix_file_start, irix_section_align_1, copy_file_data)
16781 (irix_file_end, irix_section_type_flags): Delete.
16782 * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
16783 Use standard section syntax. Remove protective "jr $31".
16784 (__gcc_fini): Likewise .gcc_fini.
16785 * config/mips/irix-crtn.asm: Adjust sections accordingly.
16786 * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
16787 iris5gas.h.
16788 * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
16789 from t-irix-gld.
16790 (EXTRA_MULTILIB_PARTS): Define.
16791 * config/mips/t-iris6: Remove bogus comment.
16792 (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
16793 * config/mips/iris5gas.h, config/mips/iris5gld.h,
16794 config/mips/iris6gas.h, config/mips/iris6gld.h,
16795 config/mips/t-iris5-as, config/mips/t-iris5-gas
16796 config/mips/t-irix-gld: Delete.
16797 * config/mips/iris.h: New file.
16798 * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
16799
16800 2004-08-20 Richard Earnshaw <rearnsha@arm.com>
16801
16802 * postreload.c (reload_cse_move2add): Allow any condjump, but check
16803 that the implicit set isn't clobbered in the jump insn.
16804
16805 2004-08-19 Mark Mitchell <mark@codesourcery.com>
16806
16807 * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
16808 * optabs.c (init_optabs): Don't check it.
16809 * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
16810 * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
16811
16812 2004-08-18 Andreas Krebbel <krebbel1@de.ibm.com>
16813
16814 * config/s390/s390.md (s390_warn_framesize_string)
16815 (s390_warn_dynamic_string, s390_stack_size_string)
16816 (s390_stack_guard_string): New global string variables.
16817 (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
16818 (s390_stack_guard): New global variables.
16819 (override_options): Added checks for the new options.
16820 (s390_emit_prologue): Emit stack check and trap code and perform
16821 compile time stack size checking.
16822
16823 * config/s390/s390.h (TARGET_OPTIONS): Added new options
16824 "warn-framesize", "warn-dynamicstack", "stack-size" and
16825 "stack-guard".
16826
16827 * doc/invoke.texi: Added documentation for the new options.
16828
16829 2004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
16830
16831 * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
16832 to eliminate warning.
16833 (linear_search_fdes): Declare p as unsigned.
16834 (binary_search_mixed_encoding_fdes): Likewise.
16835 * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
16836 to eliminate warning.
16837 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
16838 type cast.
16839
16840 2004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
16841
16842 * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
16843 * config/s390/s390.c (preferred_la_operand_p): Accept two operands
16844 instead of one. Check for strictly legitimate address.
16845 * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
16846 to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
16847
16848 2004-08-19 Eric Christopher <echristo@redhat.com>
16849
16850 * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
16851 * langhooks.h (unsave_expr_now): Ditto.
16852 * tree.h (unsave_expr_1): Remove prototype.
16853 (lhd_unsave_expr_now): Rename to unsave_expr_now.
16854 * tree-inline.c (unsave_expr_1): Move here
16855 from tree.c. Make static.
16856 (unsave_expr_now): Rename from lhd_unsave_expr_now.
16857 * tree-sra.c: Fix up for rename.
16858 * tree-ssa-copy.c: Ditto.
16859 * tree-eh.c: Ditto.
16860 * tree.c (unsave_expr_1): Move to tree-inline.c.
16861
16862 2004-08-19 Caroline Tice <ctice@apple.com>
16863
16864 * config/i386/cygming.h (switch_to_section): Fix typo (change
16865 in_unlikely_text_section to in_unlikely_executed_text).
16866
16867 2004-08-19 Daniel Berlin <dberlin@dberlin.org>
16868
16869 * vec.h (VEC_lower_bound): New macro.
16870
16871 2004-08-19 Richard Sandiford <rsandifo@redhat.com>
16872
16873 PR target/16446
16874 * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
16875 (mips_arg_info): Update accordingly. Remove common treatment of fpr_p;
16876 treat each ABI separately. Deal with n32/n64 complex float arguments.
16877 (function_arg): Add associated complex handling here.
16878
16879 2004-08-19 Richard Henderson <rth@redhat.com>
16880
16881 * config/arm/arm.c (arm_gen_load_multiple): Use
16882 adjust_automodify_address. Take base memory and offset instead
16883 of unchanging/struct/scalar bits.
16884 (arm_gen_store_multiple): Likewise.
16885 (arm_gen_movmemqi): Use adjust_automodify_address.
16886 * config/arm/arm-protos.h: Update decls.
16887 * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
16888 (store_multiple): Similarly.
16889
16890 2004-08-19 J"orn Rennecke <joern.rennecke@superh.com>
16891
16892 * regclass.c (globalize_reg): Update call_really_used_regs.
16893
16894 2004-08-19 Nathan Sidwell <nathan@codesourcery.com>
16895
16896 * doc/invoke.texi (integer-share-limit): Document.
16897
16898 * tree.h (TYPE_CACHED_VALUES_P): New.
16899 (TYPE_CACHED_VALUES): New.
16900 (TYPE_ORIG_SIZE_TYPE): Adjust.
16901 * tree.def (INTEGER_CST): Update documentation.
16902 * tree.c: Inlcude params.h.
16903 (build_int_cst): Cache small values.
16904 (build_type_copy): Do not copy the value cache.
16905 * c-common.c (c_common_nodes_and_builtins): Add comment, remove
16906 unneeded zeroing.
16907 * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
16908 * expmed.c (const_mult_add_overflow_p): Clear type copy's value
16909 cache.
16910 * fold-const.c (force_fit_type): Copy value when setting
16911 overflows.
16912 (int_const_binop): Likewise.
16913 * stor-layout.c: Include params.h
16914 (set_sizetype): Create values cache.
16915 (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
16916 * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
16917 * params.h (INTEGER_SHARE_LIMIT): New.
16918 * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
16919
16920 2004-08-19 Paolo Bonzini <bonzini@gnu.org>
16921
16922 * gimplify.c (gimplify_minimax_expr): Remove.
16923 (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
16924
16925 2004-08-19 Dorit Naishlos <dorit@il.ibm.com>
16926
16927 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
16928 STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
16929
16930 2004-08-19 Mark Mitchell <mark@codesourcery.com>
16931
16932 * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
16933
16934 2004-08-18 Andrew Pinski <apinski@apple.com>
16935
16936 * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
16937
16938 2004-08-18 Mark Mitchell <mark@codesourcery.com>
16939
16940 * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
16941 (__aeabi_ul2f): Likewise.
16942
16943 2004-08-18 Richard Henderson <rth@redhat.com>
16944
16945 * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
16946 move to rtl completely.
16947 (struct meminsnbuf, xtensa_emit_block_move): Remove.
16948 (xtensa_find_mode_for_size): Remove.
16949 * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
16950 * config/xtensa/xtensa.md (movmemsi_internal): Remove.
16951
16952 2004-08-18 Richard Henderson <rth@redhat.com>
16953
16954 * config/mcore/mcore.c (mode_from_align): Remove DImode.
16955 (block_move_sequence): Rewrite to use adjust_address.
16956 (mcore_expand_block_move): Cleanup logic. Accept only operands.
16957 Return boolean indicating success/failure.
16958 * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
16959 * config/mcore/mcore.md (movmemsi): Update to match.
16960
16961 2004-08-18 Mike Stump <mrs@apple.com>
16962
16963 * doc/invoke.texi (-mfix-and-continue): Add support for
16964 fast turn around debugging.
16965 (-ffix-and-continue): Likewise.
16966 (-mindirect-data): Likewise.
16967 (-findirect-data): Likewise.
16968 * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
16969 (indirect_data): Likewise.
16970 (machopic_data_defined_p): Likewise.
16971 (machopic_output_indirection): Likewise.
16972 (darwin_encode_section_info): Likewise.
16973 (darwin_fix_and_continue): Likewise.
16974 (darwin_fix_and_continue_switch): Likewise.
16975 * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
16976 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
16977 (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
16978 (SUBTARGET_OPTIONS): Likewise.
16979 (darwin_fix_and_continue): Likewise.
16980 (darwin_fix_and_continue_switch): Likewise.
16981 (TARGET_FIX_AND_CONTINUE): Likewise.
16982 * config/rs6000.c (rs6000_emit_prologue): Likewise.
16983
16984 2004-08-19 Steven Bosscher <stevenb@suse.de>
16985
16986 * basic-block.h (struct edge_def): Remove crossing_edge.
16987 (EDGE_CROSSING): New define.
16988 (EDGE_ALL_FLAGS): Update.
16989 * bb-reorder.c (find_traces_1_round, better_edge_p,
16990 find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
16991 find_jump_block, fix_crossing_conditional_branches,
16992 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
16993 Replace all occurences of crossing_edge with an edge flag check
16994 or set/reset.
16995 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
16996 try_crossjump_bb): Likewise.
16997 * cfglayout.c (fixup_reorder_chain): Likewise.
16998 * cfgrtl.c (force_nonfallthru_and_redirect,
16999 commit_one_edge_insertion): Likewise.
17000
17001 * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
17002 * tree-flow.h (compute_dominance_frontiers): Move prototype...
17003 * basic-block.h: ...here.
17004 * tree-cfg.c (compute_dominance_frontiers_1,
17005 compute_dominance_frontiers): Move from here...
17006 * cfganal.c: ...to here. Include timevar.h.
17007
17008 2004-08-18 James E Wilson <wilson@specifixinc.com>
17009
17010 * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
17011 * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
17012
17013 * config/mips/mips.md (type): Add frdiv.
17014 (divsf3+1, divsf3+2): Change type to frdiv.
17015 * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
17016 ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
17017
17018 * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
17019 * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
17020 * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
17021 * config/mips/5000.md (r5k_fdiv_single): Likewise.
17022 * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
17023 * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
17024 * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
17025 * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
17026 * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
17027 * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
17028 Likewise.
17029 * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
17030
17031 2004-08-18 Robert Bowdidge <bowdidge@apple.com>
17032
17033 * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
17034 get regression tester working again.
17035
17036 2004-08-18 Zack Weinberg <zack@codesourcery.com>
17037
17038 * insn-notes.def, reg-notes.def: New files.
17039 * rtl.h: Use them to define enum insn_note and enum reg_note.
17040 * rtl.c: Use them to define note_insn_name and reg_note_name.
17041 * Makefile.in (RTL_BASE_H): Update.
17042
17043 * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
17044 renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
17045
17046 2004-08-18 Richard Earnshaw <rearnsha@arm.com>
17047
17048 * arm.c (arm_size_rtx_costs): New function.
17049 (arm_override_options): Use it if optimizing for space.
17050
17051 2004-08-18 Richard Henderson <rth@redhat.com>
17052
17053 * emit-rtl.c (gen_const_mem): New.
17054 * rtl.h (gen_const_mem): Declare.
17055 * expr.c (do_tablejump): Use it.
17056 * varasm.c (force_const_mem): Likewise.
17057 * config/darwin.c (machopic_indirect_data_reference): Likewise.
17058 (machopic_legitimize_pic_address): Likewise.
17059 * config/arm/arm.c (legitimize_pic_address): Likewise.
17060 * config/i386/i386.c (legitimize_pic_address): Likewise.
17061 (legitimize_tls_address): Likewise.
17062 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
17063 * config/ia64/ia64.md (load_fptr): Likewise.
17064 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
17065 * config/pa/pa.c (legitimize_pic_address): Likewise.
17066 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
17067 (rs6000_emit_move): Likewise.
17068 * config/s390/s390.c (legitimize_pic_address): Likewise.
17069 (legitimize_tls_address): Likewise.
17070 * config/s390/s390.md (casesi): Likewise.
17071 * config/sh/sh.c (sh_reorg): Likewise.
17072 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
17073 * config/v850/v850.md (casesi): Likewise.
17074
17075 * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
17076 * config/sh/sh.c (prepare_move_operands): Remove incorrect
17077 use of MEM_READONLY_P.
17078
17079 2004-08-18 Steven Bosscher <stevenb@suse.de>
17080
17081 * Makefile.in (OBJS-common): Add postreload-gcse.c.
17082 Add new postreload-gcse.o.
17083 * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
17084 (lookup_as_function, insert, rehash_using_reg, use_related_value,
17085 equiv_constant): Use SAFE_HASH instead of safe_hash.
17086 (exp_equiv_p): Export. Add for_gcse argument when comparing
17087 for GCSE.
17088 (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
17089 find_comparison_args, fold_rtx, cse_insn): Update callers.
17090 (hash_rtx): New function derived from old canon_hash and bits
17091 from gcse.c hash_expr_1.
17092 (canon_hash_string): Rename to hash_rtx_string.
17093 (canon_hash, safe_hash): Make static inline. Call hash_rtx.
17094 * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
17095 (cselib_lookup): Update this caller.
17096 * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
17097 Make static.
17098 (hash_expr): Call hash_rtx.
17099 (ldst_entry): Likewise.
17100 (expr_equiv_p): Call exp_equiv_p.
17101 (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
17102 reg_used_on_edge, reg_set_between_after_reload_p,
17103 reg_used_between_after_reload_p, get_avail_load_store_reg,
17104 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
17105 get_bb_avail_insn, hash_scan_set_after_reload,
17106 compute_hash_table_after_reload,
17107 eliminate_partially_redundant_loads, gcse_after_reload,
17108 get_bb_avail_insn, gcse_after_reload_main): Remove.
17109 * postreload-gcse.c: New file, reincarnating most of the above.
17110 * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
17111 (gcse_after_reload_main): Update prototype.
17112 * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
17113 * passes.c (rest_of_handle_gcse2): Use it.
17114
17115 2004-08-18 Diego Novillo <dnovillo@redhat.com>
17116
17117 * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
17118 (pass_loop_done): Likewise.
17119
17120 2004-08-18 Andrew Pinski <apinski@apple.com>
17121
17122 * config/rs6000/darwin.md: Delete the altivec patterns which are
17123 handled differently now.
17124 (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
17125 (macho_correct_pic_di): Likewise.
17126 (call_indirect_nonlocal_darwin64): Likewise.
17127 Delete the save world/saveFP/saveVec patterns.
17128
17129 Revert the reversion of: 2004-08-16 Stan Shebs <shebs@apple.com>
17130 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
17131 * config/rs6000/rs6000.md: Include darwin.md.
17132 (builtin_setjmp_receiver): Add DImode case.
17133 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
17134 Darwin bits.
17135
17136 2004-08-18 Matt Austern <austern@apple.com>
17137
17138 Dead code stripping
17139 * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
17140 * darwin.c (darwin_file_end): Mark file as potentially strippable.
17141
17142 2004-08-18 Richard Henderson <rth@redhat.com>
17143
17144 * alias.c (readonly_fields_p): Remove.
17145 (objects_must_conflict_p): Don't call it.
17146 * tree.h (readonly_fields_p): Remove.
17147 * langhooks.h (struct lang_hooks): Remove honor_readonly.
17148 * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
17149
17150 2004-08-18 Diego Novillo <dnovillo@redhat.com>
17151
17152 * tree-dfa.c (add_referenced_var): Only global variables are
17153 call-clobbered.
17154 * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
17155 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
17156 all pointers dereferenced if the statement dereferences them.
17157 (create_name_tags): Do not create memory tags for pointers
17158 that have PT_ANYTHING set.
17159 Also check if PT_VARS is not empty before creating a name tag.
17160 (compute_flow_sensitive_aliasing): Don't mark call-clobbered
17161 variables that share the same alias set with a pointer that
17162 may point anywhere.
17163 (add_may_alias): Add FIXME comment to remove clobbering
17164 aliased variables and tags.
17165 (replace_may_alias): Likewise.
17166 (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
17167 (merge_pointed_to_info): If the original variable has not
17168 points-to information, call set_pt_anything.
17169 (add_pointed_to_var): Do not prevent adding a pointed-to
17170 variable if the pointers is PT_ANYTHING.
17171 If the variable is a global, set PT_GLOBAL_MEM.
17172 (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
17173 pointer type only come in PTR+OFFSET flavours.
17174 Always call merge_pointed_to_info on PHI arguments that are
17175 SSA_NAMEs.
17176 (get_nmt_for): Mark call-clobbered tags whose pointer points
17177 to global memory.
17178 * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
17179 values.
17180 (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
17181 FLAGS.
17182 (add_stmt_operand): Abort if the caller tried to add a killing
17183 definition for a memory tag.
17184 * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
17185 unnecessary checks.
17186
17187 2004-08-18 J"orn Rennecke <joern.rennecke@superh.com>
17188
17189 * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
17190 from call_used_regs. Update call_really_used_regs.
17191 (CALL_REALLY_USED_REGISTERS): Define.
17192 * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
17193 Replace call_used_regs with call_really_used_regs.
17194 (calc_live_regs, sh_media_register_for_return): Likewise.
17195 (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
17196 * sh.md (return_media): Likewise.
17197
17198 2004-08-18 Andrew Pinski <apinski@apple.com>
17199
17200 * config/darwin.c (machopic_legitimize_pic_address): Only set
17201 MEM_READONLY_P in the non TARGET_TOC case.
17202
17203 2004-08-18 Zack Weinberg <zack@codesourcery.com>
17204
17205 * rtl.def (NIL): Delete.
17206 * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
17207 Tighten the syntax a little.
17208
17209 * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
17210 * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
17211 * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
17212 * config/i386/predicates.md, config/m32r/m32r.h
17213 * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
17214 * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
17215 * config/sparc/sparc.h, doc/tm.texi:
17216 Replace all occurrences of NIL with UNKNOWN.
17217
17218 2004-08-18 Zack Weinberg <zack@codesourcery.com>
17219
17220 * dojump.c (do_jump <unordered_bcc>): Do not recursively call
17221 self with a TRUTH_ORIF_EXPR; generate the appropriate jump
17222 sequence inline. Move drop_through_label code into this
17223 block, being the only place it is used. Adjust comments.
17224
17225 2004-08-18 Fariborz Jahanian <fjahanian@apple.com>
17226
17227 * config/rs6000/altivec.md: Add new patterns for calls to
17228 save_world/rest_world functions.
17229
17230 * config/rs6000/rs6000-protos.h: (save_world_operation,
17231 restore_world_operation) new declarations.
17232
17233 * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
17234 field added.
17235 (rs6000_stack_info): Set world_save_p field.
17236 (save_world_operation): New function.
17237 (restore_world_operation): New function.
17238 (compute_save_world_info): New function.
17239 (rs6000_stack_info): Call compute_save_world_info.
17240 (rs6000_emit_prologue): Check for world_save_p and generate
17241 pattern to call save_world for saving all non-volatile and
17242 special registers.
17243 (rs6000_emit_epilogue): Check for world_save_p and generate
17244 pattern to call rest_world to restore saved registers.
17245
17246 config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
17247 FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
17248 (rs6000_reg_names): New entries added for save_world_operation and
17249 restore_world_operation.
17250
17251 2004-08-18 Caroline Tice <ctice@apple.com>
17252
17253 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
17254 "-freorder-blocks-and-partition" to the flags used in second
17255 stage of profiledbootstrap.
17256 * bb-reorder.c (push_to_next_round_p): Add new variable,
17257 next_round_is_last; set and use variable to make sure, when
17258 partitioning, that the last trace construction round consists
17259 of all (and only) cold basic blocks.
17260 (rotate_loop): Don't copy blocks that end in a section
17261 crossing jump.
17262 (copy_bb): Correctly initialize "partition" of duplicated bb.
17263 (add_unlikely_executed_notes): Add a comment.
17264 (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
17265 to make sure, if function contains hot blocks, that the
17266 successors of ENTRY_BLOCK_PTR are hot; also, only look for
17267 crossing edges if the architecture supports named sections.
17268 (mark_bb_for_unlikely_executed_section): Modify to always
17269 insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
17270 the basic block note insn.
17271 (fix_crossing_unconditional_branches): Remove extra space.
17272 (fix_edges_for_rarely_executed_code): Modify to only do
17273 partitioning work if the architecture supports named sections.
17274 (reorder_basic_blocks): Modify to only add
17275 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
17276 supports named sections.
17277 * c-common.c (handle_section_attribute): Initialize new global
17278 variable, user_defined_section_attribute, to true if user has
17279 specified one.
17280 * cfgcleanup.c (try_forward_edges): Modify to not attempt to
17281 forward edges that cross section boundaries.
17282 * cfglayout.c (fixup_reorder_chain): Modify to only fix up
17283 partitioning information if the architecture supports named
17284 sections.
17285 * cfgrtl.c (target.h): Add statement to include this.
17286 (rtl_split_block): Make sure newly created bb gets correct
17287 partition.
17288 (try_redirect_by_replacing_jump): Make sure redirection isn't
17289 attempting to cross section boundaries.
17290 (force_nonfallthru_and_redirect): Only do partition fix up if
17291 architecture supports named sections.
17292 (rtl_split_edge): Make sure newly created bb ends up in
17293 correct partition.
17294 (commit_one_edge_insertion): Remove code that incorrectly
17295 updated basic block partition; Make sure partition fix up only
17296 happens if architecture supports named sections and it's not
17297 already done.
17298 (rtl_verify_flow_info_1): Fix if-condition on test/error
17299 condition that fallthru edges are not allowed to cross section
17300 boundaries.
17301 * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
17302 * final.c (final_scan_insn): Remove redundant test from if-statement;
17303 change calls to text_section into calls to function_section; add code
17304 to only to partitioning fix up if architecture supports named
17305 sections.
17306 * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
17307 partition.
17308 (if_convert): Add targetm.have_named_sections to test.
17309 * output.h (unlikely_section_label): Extern declaration for new global
17310 variable.
17311 (unlikely_text_section_name): Likewise.
17312 * opts.c (decode_options): If both partitioning and DWARF debugging
17313 are turned on, issue a warning that this doesn't work, and change
17314 partitiong to basic block reordering (without hot/cold partitions).
17315 * passes.c (rest_of_handle_final): Re-set new global variable,
17316 user_defined_section_attribute, to false.
17317 (rest_of_compilation): Change options for calling partitioning
17318 function: Don't call if the user defined the section attribute, and
17319 don't call if DECL_ONE_ONLY is true for the current function.
17320 * predict.c (choose_function_section): Return immediately if we
17321 are doing hot/cold partitioning (i.e. let the basic block partitioning
17322 determine where the function belongs).
17323 * reg-stack.c (emit_swap_insn): Add condition to step over
17324 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
17325 * toplev.c (user_defined_section_attribute): New global variable.
17326 * toplev.h (user_defined_section_attribute): Extern declaration
17327 for new global variable.
17328 * varasm.c (unlikely_section_label): New global variable.
17329 (unlikely_text_section_name): New global variable.
17330 (unlikely_text_section): Add code to initialize
17331 unlikely_text_section_name if necessary; modify to use
17332 unlikely_text_section_name and unlikely_section_label; also to use
17333 named_section properly.
17334 (in_unlikely_text_section): Modify to work correctly with
17335 named_section and to use unlikely_text_section_name.
17336 (named_section): Add code to work properly with cold section.
17337 (function_section): Clean up if-statement.
17338 * config/darwin.c (darwin_asm_named_section): Return to original
17339 code, removing use of SECTION_FORMAT_STRING.
17340 * config/arm/pe.h (switch_to_section): Add case for
17341 in_unlikely_executed_text to switch statement.
17342 * config/i386/cygming.h (switch_to_section): Likewise.
17343 * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
17344 (SECTION_FORMAT_STRING): Likewise.
17345 * config/mcore/mcore.h (switch_to_section): Likewise.
17346 * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
17347 (SECTION_FORMAT_STRING): Remove.
17348
17349 2004-08-18 Roger Sayle <roger@eyesopen.com>
17350
17351 * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
17352 -ffixed-reg safe, by preserving the meanings of zero and one.
17353 (CALL_USED_REGISTERS): Likewise.
17354 (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
17355
17356 2004-08-18 Kaz Kojima <kkojima@gcc.gnu.org>
17357
17358 * config/sh/sh.c (split_branches): Check the result of
17359 next_active_insn.
17360 (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
17361 Call rtl_register_cfg_hooks.
17362
17363 2004-08-18 Richard Henderson <rth@redhat.com>
17364
17365 * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
17366 * alias.c (true_dependence): Update to match new semantics.
17367 (canon_true_dependence, write_dependence_p): Likewise.
17368 (anti_dependence, output_dependence): Update write_dependence_p args.
17369 (unchanging_anti_dependence): Remove.
17370 * calls.c (purge_mem_unchanging_flag): Remove.
17371 (fixup_tail_calls): Don't call it.
17372 (expand_call): Don't add unchanging memory to function usage.
17373 * expr.c (emit_block_move_via_libcall): Likewise.
17374 (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
17375 (get_subtarget): Don't use RTX_UNCHANGING_P.
17376 (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
17377 (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
17378 * combine.c (get_last_value_validate): Use MEM_READONLY_P.
17379 * cse.c (insert): Don't use RTX_UNCHANGING_P.
17380 (cse_insn, canon_hash): Use MEM_READONLY_P.
17381 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
17382 instead of RTX_UNCHANGING_P.
17383 * explow.c (maybe_set_unchanging): Remove.
17384 * expr.h (maybe_set_unchanging): Remove.
17385 * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
17386 * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
17387 (assign_parm_setup_reg, expand_function_start): Likewise.
17388 * integrate.c (copy_rtx_and_substitute): Likewise.
17389 * ra-rewrite.c (emit_colors): Likewise.
17390 * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
17391 (fixup_match_1): Likewise.
17392 * reload1.c (reload, alter_reg): Likewise.
17393 * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
17394 not RTX_UNCHANGING_P.
17395 (equiv_init_varies_p): Likewise.
17396 * loop-invariant.c (check_maybe_invariant): Likewise.
17397 * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
17398 * loop.c (note_addr_stored): Likewise.
17399 (prescan_loop): Likewise. Don't check function usage for clobbered
17400 unchanging memory.
17401 * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
17402 not RTX_UNCHANGING_P.
17403 (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
17404 * varasm.c (force_const_mem): Likewise.
17405 * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
17406 * web.c (entry_register): Likewise.
17407 * tree-gimple.h (get_base_address): Move decl ...
17408 * tree.h: ... here.
17409 * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
17410
17411 * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
17412 called via for_each_rtx. Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
17413 (alpha_set_memflags): Update to match.
17414
17415 * config/darwin.c (machopic_indirect_data_reference): Set
17416 MEM_READONLY_P instead of RTX_UNCHANGING_P.
17417 (machopic_indirect_call_target): Likewise.
17418 (machopic_legitimize_pic_address): Likewise.
17419 * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
17420 arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
17421 * config/arm/arm.md (load_multiple, store_multiple): Likewise.
17422 * config/frv/frv.md (symGOT2reg): Likewise.
17423 * config/i386/i386.c (legitimize_pic_address,
17424 legitimize_tls_address, ix86_split_to_parts): Likewise.
17425 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
17426 * config/ia64/ia64.md (load_fptr): Likewise.
17427 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
17428 * config/m68k/m68k.c (legitimize_pic_address): Likewise.
17429 * config/mcore/mcore.c (block_move_sequence): Likewise.
17430 * config/mn10300/mn10300.md (symGOT2reg): Likewise.
17431 * config/pa/pa.c (legitimize_pic_address): Likewise.
17432 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
17433 (rs6000_emit_move): Likewise.
17434 * config/s390/s390.c (legitimize_pic_address): Likewise.
17435 (legitimize_tls_address): Likewise.
17436 * config/s390/s390.md (casesi): Likewise.
17437 * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
17438 * config/sh/sh.md (symGOT2reg): Likewise.
17439 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
17440 * config/v850/v850.md (casesi): Likewise.
17441
17442 * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
17443 * config/iq2000/iq2000.c (save_restore_insns): Likewise.
17444 * config/mips/mips.c (mips_restore_gp): Likewise.
17445 (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
17446 * config/sh/sh.c (sh_reorg): Likewise.
17447
17448 2004-08-18 Richard Henderson <rth@redhat.com>
17449
17450 * tree.h (struct tree_decl): Add gimple_formal_temp.
17451 (DECL_GIMPLE_FORMAL_TEMP_P): New.
17452 * gimplify.c (pop_gimplify_context): Clear it.
17453 (lookup_tmp_var): Set it, if is_formal.
17454 (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
17455 Use is_gimple_val for VECTOR. Simplify return value.
17456 (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
17457 (gimplify_expr): Likewise.
17458 * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
17459 is_gimple_tmp_rhs for clarity. Update all callers.
17460 (is_gimple_reg_rhs): Simplify logic.
17461 (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
17462 clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
17463 (is_gimple_formal_tmp_reg): Similarly.
17464 * tree-gimple.h: Update decls.
17465 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
17466 DECL_IGNORED_P, not DECL_ARTIFICIAL. Tidy formatting.
17467 * tree-ssa-live.c (var_union, type_var_init): Likewise.
17468
17469 2004-08-18 Paolo Bonzini <bonzini@gnu.org>
17470
17471 * c4x.c (legitimize_operands): Remove calls to
17472 preserve_subexpressions_p.
17473
17474 2004-08-18 David Edelsohn <edelsohn@gnu.org>
17475
17476 * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
17477 * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
17478
17479 2004-08-18 Ziemowit Laski <zlaski@apple.com>
17480
17481 * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
17482 Objective-C++ extensions.
17483 * gengtype.c (get_file_basename): Match entire subdirectory name
17484 ('cp', 'objc', 'objcp') rather than just its suffix.
17485 (get_base_file_bitmap): Allow for files to belong to more than one
17486 language.
17487 (get_output_file_with_visibility): Treat objc/objc-act.h as a header
17488 used by more than one front-end.
17489
17490 2004-08-18 Richard Earnshaw <rearnsha@arm.com>
17491
17492 * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
17493 avoid use of preserve_subexpressions_p.
17494
17495 2004-08-17 Richard Henderson <rth@redhat.com>
17496
17497 PR 17051
17498 * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
17499
17500 2004-08-17 DJ Delorie <dj@redhat.com>
17501
17502 * doc/extend.texi: Document new xstormy16 attribute.
17503
17504 * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
17505 (xstormy16_splittable_below100_or_register): New.
17506 (combine_bnp): New.
17507 (xstormy16_reorg): New.
17508 (TARGET_MACHINE_DEPENDENT_REORG): Define.
17509
17510 * config/stormy16/stormy16.md (movqi_internal): Make name public.
17511 (movhi_internal): Likewise.
17512 (cbhranchhi): Likewise.
17513 (cbhranchhi_neg): Likewise.
17514 (andhi3): Only allow splittable below100 operands.
17515 (iorhi3): Likewise.
17516 (peephole2): New and/zero_extend->and peephole.
17517 (peephole2): New load/ior/save->set1 peephole.
17518 (peephole2): New load/and/save->clr1 peephole.
17519 (bclrx, bclrx2, bclr7, bclr15): New.
17520 (bsetx, bsetx2, bset7, bset15): New.
17521
17522 * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
17523 liberal about acceptable 'B' masks.
17524
17525 * config/stormy16/stormy16-protos.h
17526 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
17527 xstormy16_below100_operand, xstormy16_below100_or_register,
17528 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
17529 (PREDICATE_CODES): Add new predicates.
17530
17531 * config/stormy16/stormy16.c
17532 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
17533 xstormy16_below100_operand, xstormy16_below100_or_register,
17534 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
17535 (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
17536 (xstormy16_legitimate_address_p): Allow below100 symbols.
17537 (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
17538 (xstormy16_expand_move): Leave below100 operands as-is.
17539 (xstormy16_encode_section_info): Encode below100 symbols.
17540 (xstormy16_strip_name_encoding): New.
17541 (xstormy16_print_operand): Print 'b' as shift mask.
17542 (xstormy16_attribute_table): Add below100 attributes.
17543 (xstormy16_handle_below100_attribute): New.
17544
17545 * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
17546 (XSTORMY16_SECTION_FUNCTION): New.
17547 (EXTRA_SECTION_FUNCTIONS): Define using the above.
17548 (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
17549 (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
17550 (ASM_OUTPUT_LABELREF): Define.
17551
17552 * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
17553 (movhi_internal): Add below100 support.
17554 (andhi3): Add below100 support.
17555 (iorhi3): Add below100 support.
17556 (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
17557
17558 2004-08-17 James E Wilson <wilson@specifixinc.com>
17559
17560 * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
17561 of VOIDmode for comparison code mode.
17562 * config/mips/mips.md: For conditional move patterns, use mode of
17563 first compare operand for comparison mode, instead of VOIDmode.
17564
17565 * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
17566 normal and -ffast-math code.
17567
17568 2004-08-17 Mark Mitchell <mark@codesourcery.com>
17569
17570 PR c++/15871
17571 * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
17572
17573 2004-08-17 Robert Bowdidge <bowdidge@apple.com>
17574
17575 * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
17576
17577 2004-08-17 Andreas Tobler <a.tobler@schweiz.ch>
17578
17579 * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
17580 for non Darwin targets.
17581 (*call_value_nonlocal_darwin64): Likewise.
17582
17583 2004-08-17 Fariborz Jahanian <fjahanian@apple.com>
17584
17585 * config/rs6000/rs6000.c (rs6000_function_value): Check for
17586 altivec mode for altivec return register.
17587
17588 2004-08-17 David Edelsohn <edelsohn@gnu.org>
17589
17590 Revert 2004-08-16 Stan Shebs <shebs@apple.com>
17591 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
17592 * config/rs6000/rs6000.md: Include darwin.md.
17593 (builtin_setjmp_receiver): Add DImode case.
17594 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
17595 Darwin bits.
17596
17597 2004-08-17 Dorit Naishlos <dorit@il.ibm.com>
17598
17599 * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
17600 trees.
17601 * tree-vectorizer.h: New File: Same.
17602 * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
17603 * common.opt (ftree-vectorize): New flag to enable vectorization.
17604 * timevar.def (TV_TREE_VECTORIZATION): New dump file for
17605 vectorization pass.
17606 * tree-data-ref.h (init_data_ref): Additional argument.
17607 (array_base_name_differ_p): Moved to tree-data-ref.c.
17608 * tree-data-ref.c (array_base_name_differ_p): Revised.
17609 (initialize_data_dependence_relation): Call array_base_name_differ_p
17610 with an extra argument.
17611 (analyze_all_data_dependences): Same.
17612 (init_data_ref): Additional argument is_read to set DR_IS_READ.
17613 * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
17614 file.
17615 * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
17616 * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
17617 * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
17618 vectorization pass.
17619 * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
17620 (tree_ssa_loop_done): Call scev_finalize.
17621 (tree_vectorize): Define the new vectorization pass.
17622 * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
17623 size of the vector they support (until support for multiple vector
17624 sizes is added to the vectorizer).
17625 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
17626 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
17627 * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
17628 documentation.
17629
17630 2004-08-17 Nathan Sidwell <nathan@codesourcery.com>
17631
17632 * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
17633 usage.
17634 (generate_protocol_list, handle_impent): Likewise.
17635
17636 2004-08-17 Roger Sayle <roger@eyesopen.com>
17637
17638 * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
17639 ensure that call_used_regs is a superset of both fixed_regs and
17640 call_really_used_regs.
17641
17642 2004-08-17 Daniel Bornstein <danfuzz@milk.com>
17643
17644 PR target/17019
17645 * arm.md (addsi3_cbranch_scratch): Correct case labels.
17646
17647 2004-08-17 Paolo Bonzini <bonzini@gnu.org>
17648
17649 PR middle-end/17036
17650 * fold-const.c (fold): Check for integer operand when
17651 folding (A >> N) & 1 ? (1 << N) : 0. Fix from Andrew
17652 Pinski <pinskia@physics.uc.edu>.
17653
17654 2004-08-17 Paolo Bonzini <bonzini@gnu.org>
17655
17656 * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
17657 No need to check if in a cross configuration.
17658 * configure: Regenerate.
17659
17660 * calls.c (precompute_register_parameters):
17661 Inline preserve_subexpressions_p ().
17662 * expmed.c (expand_mult_const, emit_store_flag): Likewise.
17663 * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
17664 Likewise.
17665 * expr.c (get_subtarget): Likewise.
17666 * rtl.h (preserve_subexpressions_p): Remove.
17667 * stmt.c (preserve_subexpressions_p): Remove.
17668
17669 * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
17670 TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
17671 Abort on gimplified cases.
17672
17673 2004-08-16 James E Wilson <wilson@specifixinc.com>
17674
17675 * tree.h (VECTOR_FLOAT_TYPE_P): New.
17676 (FLOAT_TYPE_P): Use it.
17677 * c-typeck.c (build_binary_op): After convert calls, check for
17678 check for ERROR_MARK operands.
17679
17680 2004-08-16 Zack Weinberg <zack@codesourcery.com>
17681
17682 * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
17683 (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
17684 (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
17685 (genobjs static pattern rule): Remove %.c dependency.
17686 ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
17687 Rename rules; delete commands; fix dependencies.
17688 (mostlyclean): Do not delete temporary source copies.
17689 * configure.ac: Delete all references to BUILD_PREFIX and
17690 BUILD_PREFIX_1.
17691 * configure: Regenerate.
17692
17693 * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
17694 Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
17695 basic-block.h #ifdef GENERATOR_FILE. Surround some more code
17696 with #ifndef GENERATOR_FILE so that nothing from those headers
17697 is used.
17698
17699 * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
17700
17701 2004-08-16 Adam Nemet <anemet@lnxw.com>
17702
17703 * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
17704
17705 2004-08-16 Andrew Pinski <apinski@apple.com>
17706
17707 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
17708 extraneous semicolon.
17709
17710 2004-08-16 Devang Patel <dpatel@apple.com>
17711
17712 * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
17713 * print-tree.c (print_node): Print DECL_PRESERVE_P.
17714 * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
17715 (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
17716 * target.h (struct gcc_target): New member, mark_decl_preserved.
17717 * hooks.c (hook_void_charptr): Rename to ...
17718 (hook_void_constcharptr): ... new name.
17719 * hooks.h (hook_void_charptr): Rename to ..
17720 (hook_void_constcharptr): ... new name.
17721 * tree.h (DECL_PRESERVE_P): New #define.
17722 (struct tree_decl): New member, preserve_flag.
17723 * varasm.c (assemble_start_function): Mark decl preserved.
17724 (assemble_variable): Same.
17725 * darwin.c (darwin_mark_decl_preserved): New function.
17726 * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
17727 * darwin-protos.h (darwin_mark_decl_preserved): New decl.
17728 * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
17729
17730 2004-08-16 Joseph S. Myers <jsm@polyomino.org.uk>
17731
17732 * c-decl.c (grokdeclarator): Allow for function definition where
17733 innermost declarator has attributes.
17734
17735 2004-08-16 Fariborz Jahanian <fjahanian@apple.com>
17736
17737 * except.c (get_exception_filter, build_post_landing_pads,
17738 dw2_build_landing_pads): Use target-specific mode for 'filter'.
17739 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
17740 * target.h (eh_return_filter_mode): New field added.
17741 * targhooks.c (default_eh_return_filter_mode): Defined.
17742 * targhooks.h (default_eh_return_filter_mode): Declared.
17743 * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
17744
17745 2004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
17746
17747 * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
17748 ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
17749 * configure: Regenerate.
17750
17751 2004-08-16 Stan Shebs <shebs@apple.com>
17752
17753 Basic support for 64-bit Darwin.
17754 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
17755 (machopic_legitimize_pic_address): Similarly, plus use Pmode
17756 instead of SImode.
17757 * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
17758 (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
17759 (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
17760 (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
17761 (PROCESSOR_DEFAULT64): Define.
17762 * config/rs6000/darwin.md: New file, patterns specific to 64-bit
17763 Darwin.
17764 * config/rs6000/rs6000.md: Include darwin.md.
17765 (builtin_setjmp_receiver): Add DImode case.
17766 * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
17767 Darwin.
17768 (TARGET_ASM_ALIGNED_DI_OP): Ditto.
17769 (rs6000_emit_move): Add DImode case to Darwin bits.
17770 (machopic_output_stub): Use .quad if 64-bit.
17771 * invoke.texi: Document -m32 and -m64.
17772
17773 2004-08-16 Janis Johnson <janis187@us.ibm.com>
17774
17775 * doc/extend.texi (AltiVec builtins): Document additional differences
17776 from the Motorola AltiVec PIM.
17777
17778 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
17779
17780 * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
17781 * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
17782 (struct tree_common): Update public_flag documentation.
17783
17784 2004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
17785
17786 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
17787 Check for artificial variables, not is_gimple_tmp_var.
17788 * tree-ssa-live.c (var_union): Likewise.
17789
17790 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
17791
17792 * calls.c (load_register_parameters): Remove spurious FIXME token.
17793
17794 2004-08-15 Ziemowit Laski <zlaski@apple.com>
17795
17796 * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
17797 (c-lang.o): Depend on c-objc-common.h.
17798 (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
17799 c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
17800 * c-lang.c: Include c-objc-common.h.
17801 (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
17802 LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
17803 LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
17804 LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
17805 LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
17806 LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
17807 LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
17808 LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
17809 LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
17810 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
17811 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
17812 LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
17813 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
17814 LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
17815 LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
17816 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
17817 LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
17818 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
17819 LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
17820 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
17821 LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
17822 LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
17823 LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
17824 LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
17825 Move to c-objc-common.h.
17826 * c-objc-common.c: Include c-objc-common.h.
17827 * c-objc-common.h: New file.
17828
17829 2004-08-15 Andreas Tobler <a.tobler@schweiz.ch>
17830 Andrew Pinski <pinskia@physics.uc.edu>
17831
17832 PR target/14931
17833 * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
17834 style.
17835
17836 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
17837
17838 * tree.h (build_int_cst): New.
17839 (build_int_2): Remove.
17840 * tree.c (build_int_2): Remove.
17841 (build_int_cst): New.
17842 (make_vector_type, build_common_tree_nodes,
17843 build_common_tree_nodes_2): Use build_int_cst.
17844 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
17845 expand_builtin_strpbrk, expand_builtin_fputs,
17846 build_string_literal, expand_builtin_printf,
17847 expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
17848 fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
17849 fold_builtin_isdigit, simplify_builtin_strstr,
17850 simplify_builtin_strpbrk, fold_builtin_fputs,
17851 simplify_builtin_sprintf): Use build_int_cst.
17852 * c-common.c (start_fname_decls, fix_string_type,
17853 c_common_nodes_and_builtins, c_init_attributes,
17854 shorten_compare): Likewise.
17855 * c-decl.c (complete_array_type,
17856 check_bitfield_type_and_width): Likewise.
17857 * c-lex.c (interpret_integer, lex_charconst): Likewise.
17858 * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
17859 * c-pretty-print.c (pp_c_integer_constant): Likewise.
17860 * c-typeck.c (really_start_incremental_init, push_init_level,
17861 set_nonincremental_init_from_string): Likewise.
17862 * calls.c (load_register_parameters): Likewise.
17863 * convert.c (convert_to_pointer): Likewise.
17864 * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
17865 build_fn_info_type, build_ctr_info_value, build_gcov_info):
17866 Likewise.
17867 * except.c (init_eh, assign_filter_values, assign_filter_values):
17868 Likewise.
17869 * expmed.c (store_fixed_bit_field, extract_bit_field,
17870 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
17871 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
17872 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
17873 * expr.c (convert_move, emit_group_load, emit_group_store,
17874 expand_assignment, store_constructor, store_field,
17875 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
17876 * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
17877 invert_truthvalue, optimize_bit_field_compare,
17878 decode_field_reference, all_ones_mask_p, constant_boolean_node,
17879 fold_div_compare, fold, fold_read_from_constant_string,
17880 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
17881 * function.c (assign_parm_setup_block): Likewise.
17882 * stmt.c (shift_return_value, expand_end_case_type,
17883 estimate_case_costs): Likewise.
17884 * stor-layout.c (layout_type, initialize_sizetypes,
17885 set_min_and_max_values_for_integral_type): Likewise.
17886 * tree-chrec.c (chrec_fold_multiply_poly_poly,
17887 reset_evolution_in_loop): Likewise.
17888 * tree-chrec.h (build_polynomial_chrec): Likewise.
17889 * tree-complex.c (build_replicated_const): Likewise.
17890 * tree-eh.c (honor_protect_cleanup_actions,
17891 lower_try_finally_onedest, lower_try_finally_copy,
17892 lower_try_finally_switch): Likewise.
17893 * tree-mudflap.c (mf_build_string, mx_register_decls,
17894 mudflap_register_call, mudflap_enqueue_constant): Likewise.
17895 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
17896 * tree-pretty-print.c (dump_generic_node): Likewise.
17897 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
17898 Likewise.
17899 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
17900 * tree-ssa-loop-niter.c (number_of_iterations_cond,
17901 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
17902 Likewise.
17903
17904 * config/alpha/alpha.c (alpha_initialize_trampoline,
17905 alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
17906 * config/arm/arm.c (arm_get_cookie_size): Likewise.
17907 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
17908 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
17909 * config/i860/i860.c (i860_va_start): Likewise.
17910 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
17911 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
17912 mips_gimplify_va_arg_expr): Likewise.
17913 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
17914 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
17915 add_compiler_branch_island): Likewise.
17916 * config/s390/s390.c (s390_va_start): Likewise.
17917 * config/sh/sh.c (sh_va_start): Likewise.
17918 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
17919 Likewise.
17920 * config/xtensa/xtensa.c (xtensa_va_start,
17921 xtensa_gimplify_va_arg_expr): Likewise.
17922
17923 * objc/objc-act.c (build_objc_string_object,
17924 build_objc_symtab_template, init_def_list, init_objc_symtab,
17925 init_module_descriptor, generate_static_references,
17926 build_selector_translation_table, get_proto_encoding,
17927 build_typed_selector_reference, build_selector_reference,
17928 build_next_objc_exception_stuff,
17929 build_method_prototype_list_template, generate_descriptor_table,
17930 generate_protocols, build_protocol_initializer,
17931 build_ivar_list_template, build_method_list_template,
17932 build_ivar_list_initializer, generate_ivars_list,
17933 generate_dispatch_table, generate_protocol_list,
17934 build_category_initializer, build_shared_structure_initializer,
17935 generate_shared_structures, handle_impent,
17936 generate_objc_image_info): Use build_int_cst.
17937
17938 2004-08-15 Ben Elliston <bje@au.ibm.com>
17939
17940 * vec.h: Comment improvements.
17941
17942 2004-08-14 Roger Sayle <roger@eyesopen.com>
17943
17944 * c-common.c (shorten_compare, pointer_int_sum,
17945 c_common_truthvalue_conversion, boolean_increment): Replace calls
17946 to build with calls to buildN.
17947 * c-decl.c (complete_array_type, grokdeclarator): Likewise.
17948 * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
17949 gimplify_switch_stmt): Likewise.
17950 * c-typeck.c (default_function_array_conversion,
17951 build_component_ref, build_array_ref, build_function_call,
17952 pointer_diff, build_unary_op, build_conditional_expr,
17953 build_compound_expr, build_modify_expr, c_finish_goto_label,
17954 c_finish_goto_ptr, c_finish_return, c_finish_loop,
17955 c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
17956 build_binary_op): Likewise.
17957
17958 2004-08-15 Steven Bosscher <stevenb@suse.de>
17959
17960 * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
17961
17962 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17963
17964 * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
17965 curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
17966 * fixinc/fixincl.x: Rebuilt.
17967
17968 2004-08-14 Richard Sandiford <rsandifo@redhat.com>
17969
17970 * config/mips/mips-protos.h (mips_symbolic_constant_p)
17971 (mips_atomic_symbolic_constant_p, mips_stack_address_p)
17972 (mips_small_data_pattern_p): Declare.
17973 * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
17974 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
17975 * config/mips/mips.c (mips_symbolic_constant_p): Make global.
17976 (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
17977 (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
17978 (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
17979 (reg_or_const_float_1_operand, hilo_operand, extend_operator)
17980 (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
17981 (pc_or_label_operand, call_insn_operand, move_operand)
17982 (consttable_operand, symbolic_operand, general_symbolic_operand)
17983 (global_got_operand, local_got_operand, stack_operand)
17984 (fp_register_operand, lo_operand, fcc_register_operand): Delete.
17985 (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
17986 (mips_small_data_pattern_p): Replace previous small_data_pattern
17987 predicate. Turn into a bool () (rtx) function.
17988 * config/mips/predicates.md: New file.
17989 * config/mips/mips.md: Include it. Use the target-independent
17990 comparison_operator instead of cmp_op. Rename trap_cmp_op to
17991 trap_comparison_operator and equality_op to equality_operator.
17992 Replace uses of small_int with the equivalent const_arith_operand.
17993 Rename reg_or_const_float_1_operand to reg_or_1_operand. Rename
17994 const_float_1_operand to const_1_operand. Rename fcc_register_operand
17995 to fcc_reload_operand.
17996 * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
17997
17998 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17999
18000 PR libstdc++/17005 partial fix.
18001 * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
18002 except when generating ANSI/C89 code.
18003
18004 2004-08-14 Nathan Sidwell <nathan@codesourcery.com>
18005
18006 * c-common.c (shorten_compare): Use force_fit_type directly.
18007
18008 2004-08-14 Gerald Pfeifer <gerald@pfeifer.com>
18009 Dimitri Papadopoulos-Orfanos <papadopo@shfj.cea.fr>
18010 Dave Korn <dk@artimi.com>
18011
18012 * doc/install.texi (Building): Avoid duplicate reference to GNU
18013 make requirement.
18014 (*-*-solaris2*): Do not recommend GNU make any longer. Simplify.
18015
18016 2004-08-14 Richard Henderson <rth@redhat.com>
18017
18018 * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
18019 * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
18020
18021 2004-08-13 Richard Henderson <rth@redhat.com>
18022
18023 * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
18024 for constant_call_address_operand.
18025 (call_value_pop_1, call_value_1): Likewise.
18026 (sibcall_value_1, call_value_1_rex64): Likewise.
18027
18028 2004-08-13 James E Wilson <wilson@specifixinc.com>
18029
18030 * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
18031 Correct mode from SFmode to DFmode.
18032
18033 2004-08-13 Ziemowit Laski <zlaski@apple.com>
18034
18035 * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
18036 __cstring_object and __image_info sections with the no_dead_strip
18037 attribute.
18038
18039 2004-08-13 Roger Sayle <roger@eyesopen.com>
18040 David Billinghurst <David.Billinghurst@riotinto.com>
18041
18042 PR libgfortran/15930
18043 * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
18044 * fixinc/fixincl.x: Regenerate.
18045 * fixinc/tests/base/internal/math_core.h: New file.
18046
18047 2004-08-13 Richard Henderson <rth@redhat.com>
18048
18049 * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
18050 (dbxout_function_end): Remove ifdefs for it.
18051 (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
18052
18053 2004-08-13 Richard Henderson <rth@redhat.com>
18054
18055 * Makefile.in (insn-preds.o): Depend on TREE_H.
18056 * genpreds.c (write_insn_preds_c): Include tree.h.
18057 * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
18058 reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
18059 const48_operand, and_operand, or_operand, mode_width_operand,
18060 mode_mask_operand, mul8_operand, const0_operand,
18061 hard_fp_register_operand, hard_int_register_operand,
18062 reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
18063 samegp_function_operand, direct_call_operand, small_symbolic_operand,
18064 global_symbolic_operand, call_operand, symbolic_operand,
18065 dtp16_symbolic_operand, dtp32_symbolic_operand,
18066 gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
18067 gottp_symbolic_operand, alpha_comparison_operator,
18068 alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
18069 signed_comparison_operator, alpha_fp_comparison_operator,
18070 divmod_operator, fix_operator, aligned_memory_operand,
18071 unaligned_memory_operand, reg_or_unaligned_mem_operand,
18072 any_memory_operand, reg_not_elim_operand, normal_memory_operand,
18073 reg_no_subreg_operand, addition_operation): Move to predicates.md.
18074 (reg_or_const_int_operand): Remove. Replace all users with
18075 reg_or_cint_operand.
18076 (tls_symbolic_operand_1): Export. Don't check mode or for CONST.
18077 (resolve_reload_operand): Split out of aligned_memory_operand.
18078 * config/alpha/alpha-protos.h: Update for exports.
18079 * config/alpha/alpha.h (PREDICATE_CODES): Remove.
18080 * config/alpha/alpha.md: Include predicates.md.
18081 * config/alpha/predicates.md: New file.
18082
18083 2004-08-13 Richard Sandiford <rsandifo@redhat.com>
18084
18085 * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
18086 fields with a pointer to the instruction definition.
18087 (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
18088 (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
18089 (write_attr_case, write_const_num_delay_slots): Update accordingly.
18090 (write_attr_case, write_const_num_delay_slots): Write the name of
18091 an insn next to its case statement.
18092 * genoutput.c (data): Add a filename field.
18093 (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
18094 (output_insn_data): Print the location of each insn definition.
18095 * genrecog.c (write_action): Print the name of an insn above
18096 the statement that returns its code.
18097
18098 2004-08-12 Andrew Pinski <pinskia@physics.uc.edu>
18099
18100 * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
18101 * config/libgloss.h: Likewise.
18102 * config/arm/arm.c (arm_gen_load_multiple): Likewise.
18103 * c4x/c4x-modes.def: Likewise.
18104 * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
18105 (c4x_rptb_nop_p): Likewise.
18106 (c4x_rptb_valid_p): Likewise.
18107 (c4x_rptb_insert): Likewise.
18108 (c4x_address_conflict): Likewise.
18109 * config/c4x/c4x.md: Likewise.
18110 * config/frv/frv.md: Likewise.
18111 * config/i386/athlon.md: Likewise.
18112 * config/i386/i386.md: Likewise.
18113 * config/i386/predicates.md: Likewise.
18114 * config/ia64/ia64.c: Likewise.
18115 * config/ia64/itanium1.md: Likewise.
18116 * config/ia64/itanium2.md: Likewise.
18117 * config/iq2000/iq2000.md: Likewise.
18118 * config/mcore/mcore.c: Likewise.
18119 * config/mips/mips.c: Likewise.
18120 * config/mips/r3900.h: Likewise.
18121 * config/mips/sb1.md: Likewise.
18122 * config/pa/milli64.S: Likewise.
18123 * config/pa/pa.c: Likewise.
18124 * config/pa/pa.h: Likewise.
18125 * config/rs6000/8540.md: Likewise.
18126
18127 2004-08-13 Daniel Berlin <dberlin@dberlin.org>
18128
18129 * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
18130
18131 2004-08-13 J"orn Rennecke <joern.rennecke@superh.com>
18132
18133 * sh.md (cbranch define_delay) Use cond_delay_slot for
18134 non-anulled condition too.
18135
18136 2004-08-12 David Edelsohn <edelsohn@gnu.org>
18137
18138 * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
18139 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
18140 any_parallel_operand, lmw_operation, stmw_operation,
18141 mfcr_operation, mtcrf_operation. Remove PARALLEL from any_operand.
18142 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
18143 any_parallel_operand.
18144 (return_and_restore_fpregs_{si,di}): Same.
18145
18146 2004-08-12 Zack Weinberg <zack@codesourcery.com>
18147
18148 * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
18149 if pred->singleton != PARALLEL, issue a warning and pretend it was.
18150 Also issue a warning for any predicate we don't know about.
18151
18152 2004-08-12 Richard Henderson <rth@redhat.com>
18153
18154 * config/i386/i386.c (internal_label_prefix): Export.
18155 (internal_label_prefix_len, struct ix86_address,
18156 ix86_decompose_address, maybe_get_pool_constant,
18157 ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
18158 memory_address_length): Export.
18159 (any_fp_register_operand, fp_register_operand,
18160 register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
18161 x86_64_general_operand, x86_64_szext_general_operand,
18162 x86_64_nonmemory_operand, x86_64_movabs_operand,
18163 x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
18164 x86_64_zext_immediate_operand, const_int_1_31_operand,
18165 symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
18166 tls_symbolic_operand, global_dynamic_symbolic_operand,
18167 local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
18168 local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
18169 constant_call_address_operand, const0_operand, const1_operand,
18170 const248_operand, const_0_to_3_operand, const_0_to_7_operand,
18171 const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
18172 shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
18173 general_no_elim_operand, nonmemory_no_elim_operand,
18174 index_register_operand, q_regs_operand, flags_reg_operand,
18175 non_q_regs_operand, zero_extended_scalar_load_operand,
18176 vector_move_operand, no_seg_address_operand, sse_comparison_operator,
18177 ix86_comparison_operator, ix86_carry_flag_operator,
18178 fcmov_comparison_operator, promotable_binary_operator,
18179 cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
18180 mult_operator, div_operator, arith_or_logical_operator,
18181 memory_displacement_operand, cmpsi_operand, long_memory_operand,
18182 aligned_operand): Move to predicates.md as define_predicates.
18183 (tls_symbolic_operand_1): Remove.
18184 (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
18185 (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
18186 (legitimize_address): Merge tls_symbolic_operand contents.
18187 (ix86_expand_move): Likewise.
18188 * config/i386/i386-protos.h: Update for exports.
18189 * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
18190 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
18191 * config/i386/i386.md: Include predicates.md.
18192 * config/i386/predicates.md: New file.
18193
18194 2004-08-13 Mark Mitchell <mark@codesourcery.com>
18195
18196 PR c++/16924
18197 * config/i386/winnt.c (i386_pe_mark_dllexport): Set
18198 SYMBOL_REF_DECL.
18199 (i386_pe_mark_dllimport): Likewise.
18200 (i386_pe_encode_section_info): Likewise, when overriding
18201 dllimport attribute.
18202
18203 2004-08-12 Geoffrey Keating <geoffk@apple.com>
18204
18205 * configure.ac: When testing for flex, nm, ar, and bison, check
18206 that they will actually be built.
18207 * configure: Regenerate.
18208
18209 2004-08-12 Ulrich Weigand <uweigand@de.ibm.com>
18210
18211 * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
18212 (MOVE_MAX_PIECES): Define.
18213
18214 2004-08-12 Devang patel <dpatel@apple.com>
18215
18216 * dbxout.c (dbxout_begin_prologue): New function.
18217 (dbx_debug_hooks): Use new begin prologue hook.
18218 (dbxout_function_end): Emit N_ENSYM.
18219 * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
18220
18221 2004-08-12 Janis Johnson <janis187@us.ibm.com>
18222
18223 * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
18224 argument is float*.
18225
18226 * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
18227 for vec_dss.
18228
18229 * doc/extend.texi (AltiVec builtins): Fix description for recent
18230 changes. Update operation list to match current support.
18231
18232 2004-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
18233
18234 * config/s390/s390.c (struct s390_frame_layout): New struct as element
18235 of struct machine_function.
18236 (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
18237 changed all uses.
18238 (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
18239 changed all uses.
18240 (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
18241 (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
18242 (s390_frame_area, s390_register_info): New functions.
18243 (s390_optimize_prolog): Renamed to s390_optimize_prologue. Added check
18244 for base register.
18245 (s390_return_addr_rtx, s390_return_address_offset)
18246 (s390_va_start, s390_gimplify_va_arg)
18247 (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
18248 layouts.
18249 (s390_frame_info): Functionality partly moved to s390_register_info.
18250 Made adaptions for new stack layout.
18251 (save_gprs, restore_gprs): Changed meaning of second parameter and
18252 adapted all callers.
18253
18254 * config/s390/s390.h (s390_backchain_string): New global variable.
18255 (MASK_BACKCHAIN): Removed definition.
18256 (TARGET_BACKCHAIN): Changed check.
18257 (TARGET_KERNEL_BACKCHAIN): New macro.
18258 (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
18259 (TARGET_OPTIONS): Added "backchain", "no-backchain" and
18260 "kernel-backchain".
18261 (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
18262
18263 * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
18264 as condition. Adjusted for new stack layout.
18265
18266 * doc/invoke.texi: Added documentation for new option
18267 "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
18268 "-mno-backchain".
18269
18270 2004-08-12 Paul Brook <paul@codesourcery.com>
18271
18272 * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
18273 (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
18274
18275 2004-08-12 David Daney <ddaney@avtrex.com>
18276
18277 * java/gcj.texi: Add subsection on signal usage.
18278
18279 2004-08-12 David Edelsohn <edelsohn@gnu.org>
18280
18281 * expr.c (move_by_pieces): Set alignment for move to minimum of
18282 MOVE_MAX_PIECES mode alignment and the largest non-slow mode
18283 alignment, but not less than the original alignment.
18284 (move_by_pieces_ninsns): Same.
18285 (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
18286 (store_by_pieces_1): Same.
18287
18288 2004-08-12 Diego Novillo <dnovillo@redhat.com>
18289
18290 PR tree-optimization/16867
18291 * tree.c (is_global_var): New function.
18292 (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
18293 Call is_global_var.
18294 * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
18295 Update all users.
18296 (is_global_var): Declare.
18297 * tree-dfa.c (dump_variable): Display global and addressable
18298 attributes.
18299 (add_referenced_var): Clarify documentation when marking
18300 variables call-clobbered.
18301 * tree-flow-inline.h (is_call_clobbered): Call is_global_var
18302 instead of needs_to_live_in_memory.
18303 (mark_call_clobbered): If the variable is a tag, mark it
18304 DECL_EXTERNAL.
18305 * tree-gimple.c (is_gimple_reg): Don't check for
18306 TREE_ADDRESSABLE.
18307 (is_gimple_non_addressable): Likewise.
18308 * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
18309 needs to be marked call-clobbered.
18310 (setup_pointers_and_addressables): Call is_global_var instead
18311 of needs_to_live_in_memory.
18312 * tree-ssa-dce.c (need_to_preserve_store): Remove.
18313 Update all users with is_global_var.
18314 (mark_stmt_if_obviously_necessary): Fix processing of aliased
18315 stores. Don't check the virtual definitions. Rather, check
18316 whether the store is going into global memory.
18317 (find_obviously_necessary_stmts): Get the symbol from the PHI
18318 result.
18319 * tree-ssa-operands.c (get_call_expr_operands): Do not add
18320 clobbering may-defs if the call does not have side effects.
18321
18322 2004-08-12 Jakub Jelinek <jakub@redhat.com>
18323
18324 PR c++/16276
18325 * output.h (default_function_rodata_section,
18326 default_no_function_rodata_section): New prototypes.
18327 * target.h (struct gcc_target): Add asm_out.function_rodata_section.
18328 * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
18329 (TARGET_ASM_OUT): Add it.
18330 * varasm.c (default_function_rodata_section,
18331 default_no_function_rodata_section): New functions.
18332 * final.c (final_scan_insn): Call
18333 targetm.asm_out.function_rodata_section instead of
18334 readonly_data_section.
18335 * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
18336 * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18337 * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18338 * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
18339 Likewise.
18340 * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18341 * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
18342 Likewise.
18343 * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
18344 Likewise.
18345 * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18346 * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18347 * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
18348
18349 2004-08-12 Paul Brook <paul@codesourcery.com>
18350
18351 * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
18352 frame info.
18353 * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
18354 DWARF2_UNWIND_INFO.
18355
18356 2004-08-12 Ben Elliston <bje@au.ibm.com>
18357
18358 PR target/16286
18359 * config/rs6000/altivec.h: Change vector to __vector throughout.
18360 (Except for the `vector' macro itself).
18361
18362 2004-08-12 Zack Weinberg <zack@codesourcery.com>
18363
18364 * genpreds.c: Add capability to generate predicate bodies as
18365 well as function prototypes. Write function prototypes for
18366 the generic predicates too.
18367 (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
18368 (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
18369 (write_match_code, write_predicate_expr, write_one_predicate_function)
18370 (parse_option): New functions.
18371 (output_predicate_decls): Delete.
18372 (main): Read the machine description, process DEFINE_PREDICATE or
18373 DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
18374 as appropriate.
18375
18376 * genrecog.c (struct decision_test): Replace index with
18377 struct pred_data pointer.
18378 (next_index): Remove, unused.
18379 (pred_table, preds, special_mode_pred_table): Delete.
18380 (compute_predicate_codes, process_define_predicate): New functions.
18381 (validate_pattern, add_to_sequence, write_switch): Update for
18382 new data structures.
18383 (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
18384 Check both error_count and have_error.
18385
18386 * gensupport.c (in_fname, first_predicate): New globals.
18387 (define_pred_queue, define_pred_tail): New RTL-pattern queue.
18388 (predicate_table, last_predicate, old_pred_table)
18389 (old_special_pred_table): New statics.
18390 (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
18391 (add_predicate, init_predicate_table): New functions.
18392 (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
18393 (init_md_reader_args_cb): Use the global in_fname. No need to zero
18394 it or max_include_len. Call init_predicate_table.
18395 (read_rtx): Run the predicate queue after the attribute queue
18396 but before all the others.
18397 * gensupport.h (in_fname, struct pred_data, first_predicate)
18398 (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
18399 * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
18400 (DEFINE_SPECIAL_PREDICATE): New RTL codes.
18401 * dummy-conditions.c: Don't include bconfig.h, system.h,
18402 coretypes.h, tm.h, or system.h. Do include stddef.h.
18403 Duplicate declaration of struct c_test from gensupport.h.
18404
18405 * Makefile.in (OBJS-common): Add insn-preds.o.
18406 (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
18407 (insn-preds.c, insn-preds.o): New rules.
18408 (s-preds): Also generate insn-preds.c.
18409 (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
18410 Update dependencies.
18411 (print-rtl.o, print-rtl1.o): Correct dependencies.
18412
18413 * recog.h: Delete prototypes of predicate functions.
18414
18415 * doc/md.texi (Predicates): New section with complete
18416 documentation of operand/operator predicates. Remove some
18417 incomplete documentation of predicates from other places.
18418 * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
18419 PREDICATE_CODES; indicate that both are deprecated in favor
18420 of define_predicate/define_special_predicate.
18421
18422 * config/ia64/ia64.c: All predicate function definitions moved
18423 to ia64.md, except
18424 (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
18425 (ia64_expand_load_address, ia64_expand_move):
18426 Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
18427
18428 * config/ia64/ia64.md: All predicates now defined here.
18429 (symbolic_operand): Is now a special predicate.
18430
18431 * config/ia64/ia64.h: Declare ia64_section_threshold.
18432 (PREDICATE_CODES): Delete.
18433
18434 2004-08-12 Richard Henderson <rth@redhat.com>
18435
18436 * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
18437 * c-semantics.c (add_stmt): Set it.
18438 * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
18439 before instantiating a variable sized type.
18440
18441 2004-08-12 Richard Henderson <rth@redhat.com>
18442
18443 * stor-layout.c (round_up, round_down): Move ...
18444 * fold-const.c (round_up, round_down): ... here. Use
18445 multiple_of_p to avoid any arithmetic at all.
18446
18447 2004-08-12 Richard Henderson <rth@redhat.com>
18448
18449 * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
18450 (gimplify_init_ctor_preeval_1): New.
18451 (gimplify_init_ctor_preeval): New.
18452 (gimplify_init_ctor_eval): New.
18453 (gimplify_init_constructor): Use them. Always gimplify the LHS
18454 object first.
18455
18456 2004-08-12 Ziemowit Laski <zlaski@apple.com>
18457
18458 (This patch is part of merge of objc-improvements-branch
18459 into mainline.)
18460
18461 * doc/frontends.texi: Mention Objective-C++ in addition to
18462 Objective-C.
18463 * doc/install.texi: Add 'obj-c++' to list of configurable
18464 languages.
18465 * doc/invoke.texi: Rename Objective-C option headings to
18466 indicate they also apply to Objective-C++. List file
18467 extensions for Objective-C++ sources. Mention that
18468 ObjC and ObjC++ compilations may also use C and C++ options,
18469 respectively. Point users to doc/standards.texi for
18470 further info on ObjC and ObjC++.
18471 * doc/sourcebuild.texi: Mention the objcp/ directory and
18472 the Objective-C++ sources it contains.
18473 * doc/standards.texi: Update link to Apple ObjC site;
18474 add link to gcc readings.html WWW doc.
18475
18476 2004-08-12 Alan Modra <amodra@bigpond.net.au>
18477
18478 * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
18479 and 2004-07-14 changes.
18480
18481 2004-08-12 Paul Brook <paul@codesourcery.com>
18482
18483 * doc/invoke.texi: Fix typo.
18484
18485 2004-08-11 Devang Patel <dpatel@apple.com>
18486
18487 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
18488 and -no_dead_strip_inits_and_terms.
18489 (LINK_SPEC): Same.
18490 * doc/invoke.texi (Darwin Options): Document -dead_strip and
18491 -no_dead_strip_inits_and_terms.
18492
18493 2004-08-11 Paul Brook <paul@codesourcery.com>
18494
18495 * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
18496 (arm_load_pic_register): ... to this.
18497 * config/arm/arm.c (arm_finalize_pic): Rename ...
18498 (arm_load_pic_register): ... to this. Always output insns at the
18499 current location. Load via low reg in thumb mode.
18500 (arm_expand_prologue): Call arm_load_pic_register.
18501 (thumb_expand_prologue): Ditto.
18502 * config/arm/arm.h (FINALIZE_PIC): Remove.
18503 * config/arm/arm.md (builtin_setjmp_receiver): Call
18504 arm_load_pic_register.
18505
18506 2004-08-11 Paul Brook <paul@codesourcery.com>
18507
18508 * arm.c (thumb_force_lr_save): Add prototype.
18509 (thumb_compute_save_reg_mask): New function.
18510 (thumb_find_work_register): New function.
18511 (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
18512 (thumb_unexpanded_epilogue): Ditto. Remove redundant code.
18513 Don't clobber r3 when removing pretend args.
18514 (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
18515 (thumb_output_function_prologue): Use new functions.
18516 (thumb_set_return_address): Use thumb_compute_save_reg_mask.
18517 * arm.h (THUMB_REG_PUSHED_P): Remove.
18518
18519 2004-08-11 James E Wilson <wilson@specifixinc.com>
18520
18521 PR rtl-optimization/16490
18522 * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
18523 global_live_at_end for new basic block if already set for other blocks.
18524
18525 2004-08-11 David Edelsohn <edelsohn@gnu.org>
18526
18527 * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
18528
18529 * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
18530 (mfcr rlwinm rlwinm patterns): Set length to 12.
18531
18532 2004-08-11 Andrew MacLeod <amacleod@redhat.com>
18533
18534 * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
18535 get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
18536 (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
18537 (start_ssa_stmt_operands): Delete.
18538 * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
18539 struct stmt_operands_d.
18540 (build_ssa_operands): New extern entry point.
18541 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
18542 building code, replace with create_ssa_artficial_load_stmt().
18543 * tree-ssa-operands.c (struct voperands_d): Delete.
18544 (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
18545 (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
18546 (free_uses, free_defs, free_vuses, free_v_may_defs,
18547 free_v_must_defs): Remove dealloc parameter.
18548 (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
18549 (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
18550 finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
18551 vector comparisons, ssa_name reuse, and allocations here.
18552 (verify_start_operands): Delete.
18553 (finalize_ssa_stmt_operands): Set new operands by calling finalize
18554 routines.
18555 (start_ssa_stmt_operands): Move from tree-flow-inline.h.
18556 (append_def, append_usei): Simplify to simple accumulation.
18557 (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
18558 duplicates and simple accumulation.
18559 (free_ssa_operands): Free vectors in a stmt_operand structure.
18560 (build_ssa_operands): New. Create a new stmt_operand structure from
18561 a stmt and an old set of stmt_operands.
18562 (get_stmt_operands): Simplify and call build_ssa_operands.
18563 (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
18564 get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
18565 add_call_read_ops): Don't pass prev_vops around anymore.
18566 (note_addressable): Return if no stmt annotation.
18567 (copy_virtual_operands): Access v_may_def operands through a struct.
18568 (create_ssa_artficial_load_stmt): New. Create a load stmt for DOM's
18569 hash tables without treating the stmt as a real stmt.
18570 * tree-ssa-operands.h (struct v_may_def_operand_type): New. Access
18571 v_may_def def and use through a struct instead of 2 array elements.
18572 (struct v_may_def_optype_d): Use v_may_def_operand_type.
18573 (struct stmt_operands_d): New. Struct for storing all operand vectors.
18574
18575 2004-08-11 Nick Clifton <nickc@redhat.com>
18576
18577 * config/arm/arm.c (arm_is_longcall_p): Update comment describing
18578 this funciton's behaviour. Return true when the current function
18579 has a section attribute and -mlong-calls is in effect.
18580 * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
18581 short-call marker when -mlong-calls is in effect and the function
18582 has a section attribute.
18583
18584 2004-08-10 Zack Weinberg <zack@codesourcery.com>
18585
18586 * stmt.c (expand_return): If asked to return the RESULT_DECL,
18587 just call expand_value_return on result_rtl.
18588
18589 2004-08-10 Richard Henderson <rth@redhat.com>
18590
18591 * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
18592 * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
18593 * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
18594 (add_location_or_const_value_attribute): ... not here. Use
18595 loc_descriptor_from_tree if possible.
18596 (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
18597 Simplify address handling. Handle DECL_VALUE_EXPR. Handle register
18598 values specially.
18599 (loc_descriptor_from_tree): New. Update callers.
18600 * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
18601 * gimplify.c (gimplify_decl_expr): Lower variable sized types to
18602 pointer plus dereference. Set DECL_VALUE_EXPR. Set save_stack.
18603 (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
18604 and BUILT_IN_STACK_RESTORE.
18605 (gimplify_expr): Lower DECL_VALUE_EXPR decls.
18606 * stmt.c (expand_stack_alloc): Remove.
18607 * tree-mudflap.c (mx_register_decls): Don't look for
18608 BUILT_IN_STACK_ALLOC.
18609 * tree-nested.c (convert_local_reference): Likewise.
18610 * tree.h (DECL_VALUE_EXPR): New.
18611
18612 2004-08-10 Richard Henderson <rth@redhat.com>
18613
18614 * stor-layout.c (round_up): Check for 0/1 before dividing.
18615 (round_down): Likewise.
18616
18617 * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
18618
18619 2004-08-09 Mark Mitchell <mark@codesourcery.com>
18620
18621 * config.gcc (arm*-*-eabi*): New target.
18622 * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
18623 (TARGET_LIB_INT_CMP_BIASED): Likewise.
18624 * expmed.c (expand_divmod): Try a two-valued divmod function as a
18625 last resort.
18626 * gthr.h: Remove bogus tokens at end of #pragma.
18627 * optabs.c (expand_twoval_binop_libfunc): New function.
18628 (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
18629 (prepare_float_lib_cmp): Try reversing the condition.
18630 (debug_optab_libfuncs): New function.
18631 * optabs.h (expand_twoval_binop_libfunc): Declare.
18632 * config/arm/arm.c (arm_init_libfuncs): New function.
18633 (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
18634 (TARGET_INIT_LIBFUNCS): Define it.
18635 * config/arm/arm.h (TARGET_BPABI): New macro.
18636 * config/arm/arm-protos.h
18637 (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
18638 * config/arm/bpabi.S: New file.
18639 * config/arm/bpabi.c: Likewise.
18640 * config/arm/bpabi.h: Likewise.
18641 * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
18642 (__aeabi_drsub): Likewise.
18643 (__aeabi_dsub): Likewise.
18644 (__aeabi_dadd): Likewise.
18645 (__aeabi_ui2d): Likewise.
18646 (__aeabi_i2d): Likewise.
18647 (__aeabi_f2d): Likewise.
18648 (__aeabi_dmul): Likewise.
18649 (__aeabi_ddiv): Likewise.
18650 (__aeabi_cdrcmple): Likewise.
18651 (__aeabi_cdcmpeq): Likewise.
18652 (__aeabi_cdcmple): Likewise.
18653 (__aeabi_dcmpeq): Likewise.
18654 (__aeabi_dcmplt): Likewise.
18655 (__aeabi_dcmple): Likewise.
18656 (__aeabi_dcmpge): Likewise.
18657 (__aeabi_dcmpgt): Likewise.
18658 (__aeabi_dcmpun): Likewise.
18659 (__aeabi_d2iz): Likewise.
18660 (__aeabi_d2uiz): Likewise.
18661 (__aeabi_d2f): Likewise.
18662 * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
18663 (__aeabi_frsub): Likewise.
18664 (__aeabi_fsub): Likewise.
18665 (__aeabi_fadd): Likewise.
18666 (__aeabi_ui2f): Likewise.
18667 (__aeabi_i2f): Likewise.
18668 (__aeabi_fmul): Likewise.
18669 (__aeabi_fdiv): Likewise.
18670 (__aeabi_cfrcmple): Likewise.
18671 (__aeabi_cfcmpeq): Likewise.
18672 (__aeabi_cfcmple): Likewise.
18673 (__aeabi_fcmpeq): Likewise.
18674 (__aeabi_fcmplt): Likewise.
18675 (__aeabi_fcmple): Likewise.
18676 (__aeabi_fcmpge): Likewise.
18677 (__aeabi_fcmpgt): Likewise.
18678 (__aeabi_fcmpun): Likewise.
18679 (__aeabi_f2iz): Likewise.
18680 (__aeabi_f2uiz): Likewise.
18681 * config/arm/lib1funcs.asm (ARM_CALL): New macro.
18682 (__aeabi_uidivmod): New function or alias.
18683 (__aeabi_idivmod): Likewise.
18684 (__aeabi_idiv0): Likewise.
18685 (__aeabi_ldiv0): Likewise.
18686 (__aeabi_llsr): Likewise.
18687 (__aeabi_lasr): Likewise.
18688 (__aeabi_llsl): Likewise.
18689 (bpabi.S): Include it.
18690 * config/arm/libgcc-bpabi.ver: New file.
18691 * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
18692 (LINK_SPEC): Remove.
18693 * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
18694 __aeabi_ulcmp.
18695 * config/arm/t-bpabi: New file.
18696 * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
18697 (TARGET_LIB_INT_CMP_BIASED): Likewise.
18698
18699 2004-08-10 David Edelsohn <edelsohn@gnu.org>
18700
18701 * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
18702 * config/rs6000/rs6000.md (clrmemsi): New pattern.
18703 * config/rs6000/rs6000.c (expand_block_clear): New function.
18704 (expand_block_move): Convert alignment to bits. Use SImode and
18705 HImode for unaligned addresses if not STRICT_ALIGNMENT.
18706
18707 2004-08-10 Caroline Tice <ctice@apple.com>
18708
18709 * varasm.c (unlikely_section_label): New global variable.
18710 (unlikely_text_section_name): New global variable.
18711 (text_section): Remove alignment statement.
18712 (unlikely_text_section): Remove alignment statement; use
18713 unlikely_section_label rather than hard-coded string.
18714 (assemble_start_function): Initialize unlikely_section_label and
18715 unlikely_text_section_name; make sure cold section is properly
18716 aligned at start of function; output unlikely_section_label if
18717 appropriate.
18718
18719 2004-08-10 Ulrich Weigand <uweigand@de.ibm.com>
18720
18721 * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
18722 * config/s390/s390.c (s390_canonicalize_comparison): New function.
18723 * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
18724 * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
18725 "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
18726 ("*tmqi_mem"): Remove SUBREG from pattern.
18727 ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
18728 ("*andsi3_cconly"): Likewise.
18729
18730 2004-08-10 H.J. Lu <hongjiu.lu@intel.com>
18731
18732 PR target/16909
18733 * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
18734
18735 2004-08-10 Janis Johnson <janis187@us.ibm.com>
18736
18737 * doc/sourcebuild.texi (compat testing): Document available test
18738 framework commands. Use the preferred spelling of DejaGnu.
18739
18740 2004-08-10 Daniel Berlin <dberlin@dberlin.org>
18741
18742 * lambda.h: Add matrix type, and prototypes for remainder of
18743 matrix and vector functions.
18744 (lambda_vector_mult_const): New function.
18745 (lambda_vector_negate): Ditto.
18746 (lambda_vector_add): Ditto.
18747 (lambda_vector_add_mc): Ditto.
18748 (lambda_vector_copy): Ditto.
18749 (lambda_vector_zerop): Ditto.
18750 (lambda_vector_equal): Ditto.
18751 (lambda_vector_min_nz): Ditto.
18752 (lambda_vector_first_nz): Ditto.
18753 (lambda_vector_matrix_mult): Ditto.
18754 * lambda-mat.c: New file.
18755 * Makefile.in (lambda-mat.o): New.
18756
18757 2004-08-10 Andrew MacLeod <amacleod@redhat.com>
18758
18759 * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
18760 after linking stmt into the program.
18761 (bsi_remove): Don't call modify_stmt.
18762 * tree-complex.c (update_complex_assignment,
18763 expand_complex_comparison): Call modify_stmt after changing the stmt.
18764 * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
18765 removing the stmt.
18766 * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
18767 the stmt, and only if needed.
18768 * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
18769 expression.
18770 (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
18771 (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
18772 (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
18773 (eliminate_redundant_computations): Don't pass an annotation. Call
18774 modify_stmt rather than setting the annotation directly.
18775 (record_equivalences_from_stmt): Remove unused local 'j'.
18776 (cprop_operand): Take a stmt rather than an annotation as a parameter.
18777 Call modify_stmt.
18778 (cprop_into_stmt): Pass stmt rather than annotation.
18779 (update_rhs_and_lookup_avail_expr): Call modify_stmt.
18780 * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
18781 modify_stmt.
18782 * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
18783
18784 2004-08-10 Jason Merrill <jason@redhat.com>
18785
18786 PR middle-end/16948
18787 * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
18788 the RESULT_DECL.
18789
18790 2004-08-10 Geoffrey Keating <geoffk@apple.com>
18791
18792 * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
18793 hash function.
18794
18795 2004-08-10 Roger Sayle <roger@eyesopen.com>
18796
18797 * config/mips/mips.md: New reciprocal square root patterns that
18798 match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
18799
18800 2004-08-10 Paul Brook <paul@codesourcery.com>
18801
18802 * config/arm/arm-protos.h (arm_set_return_address,
18803 thumb_set_return_address): Add prototypes.
18804 * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
18805 * config/arm/arm.c (arm_compute_func_type,
18806 use_return_insn, arm_compute_save_reg0_reg12_mask,
18807 arm_compute_save_reg_mask, arm_output_function_prologue,
18808 arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
18809 current_function_calls_eh_return.
18810 (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
18811 old eh code.
18812 (arm_set_return_address, thumb_set_return_address): New functions.
18813 * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
18814 ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
18815 * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
18816 (epilogue): Use the stackadj register.
18817 (eh_return, arm_eh_return, thumb_eh_return): New pattern.
18818
18819 2004-08-10 Jakub Jelinek <jakub@redhat.com>
18820
18821 PR target/3144
18822 * expr.c (move_by_pieces_ninsns): Add max_size argument.
18823 (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
18824 (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
18825 (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
18826 but using MOVE_RATIO.
18827 (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
18828 (can_store_by_pieces): Change max_size type to unsigned int.
18829 (store_by_pieces_1): Likewise. Pass max_size to
18830 move_by_pieces_ninsns.
18831 * config/s390/s390.h (STORE_BY_PIECES_P): Define.
18832 * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
18833 to move_by_pieces_ninsns.
18834 (STORE_BY_PIECES_P): Define.
18835 * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
18836 to move_by_pieces_ninsns.
18837 * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
18838
18839 * config/i386/i386.h (CLEAR_RATIO): Define.
18840
18841 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
18842
18843 * expr.c (expand_expr_real_1): Add back code that was not dead.
18844
18845 2004-08-09 Andrew Pinski <apinski@apple.com>
18846
18847 * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
18848 which is found to be compatible before returning the aliasing set.
18849
18850 2004-08-09 Daniel Jacobowitz <dan@debian.org>
18851
18852 * ggc-zone.c (struct alloc_zone): Add statistics counters.
18853 (always_collect): New flag.
18854 (ggc_alloc_zone_1): Update statistics support. Don't include
18855 overhead in allocated counter.
18856 (sweep_pages): Update allocated counter for large pages. Don'y
18857 include overhead.
18858 (ggc_collect_1): Always collect.
18859 (ggc_collect): Honor always_collect flag. Sum all zones to decide
18860 whether to collect.
18861 (SCALE, LABEL): New macros.
18862 (ggc_print_statistics): Add statistics support.
18863
18864 2004-08-09 Roger Sayle <roger@eyesopen.com>
18865
18866 * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
18867 (init_expmed): Fix potential overrun problem with "all.reg".
18868 (expand_sdiv2_pow2): Add an alternate implementation for signed
18869 division, if the target provides a suitable conditional move insn.
18870
18871 2004-08-09 Paul Brook <paul@codesourcery.com>
18872 Richard Henderson <rth@redhat.com>
18873
18874 * unwind-dw2.c (uw_install_context_1): Update target saved stack
18875 pointer.
18876
18877 2004-08-09 Geoffrey Keating <geoffk@apple.com>
18878
18879 * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
18880 Check DATA limit only if there's no AS limit. Ignore insanely
18881 low DATA limits.
18882 (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
18883 but take care that the AS limit isn't overrun.
18884 * doc/invoke.texi: Update documentation of min-heapsize parameter.
18885
18886 2004-08-09 Jeff Law <law@redhat.com>
18887
18888 * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
18889 (tree-ssa-threadupdate.o): Add dependencies.
18890 * tree-ssa-threadupdate.c: New file.
18891 * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
18892 (rewrite_vars_out_of_ssa): Remove prototype.
18893 (cleanup_tree_cfg): Returns a bool.
18894 * tree.h (thread_through_all_blocks): Prototype.
18895 * tree-outof-ssa.c (SSANORM_*): Move into here.
18896 (remove_ssa_form): Now static.
18897 (rewrite_vars_out_of_ssa): Kill.
18898 * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
18899 * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
18900 (remove_ssa_form, register_partitions_for_vars): Kill declarations.
18901 * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
18902 anything was changed.
18903 * tree-phinodes.c (add_phi_arg): Get the block for the PHI
18904 from the PHI's annotation rather than the edge associated with
18905 the new argument.
18906 * tree-ssa-dom.c (redirection_edges): Kill.
18907 (redirect_edges_and_update_ssa_graph): Kill.
18908 (tree_ssa_dominator_optimize): Do not reset forwardable flag
18909 for blocks anymore. Do not initialize redirection_edges.
18910 Call thread_through_all_blocks. Simplify code for cleanup
18911 of the CFG and iterating. No longer call cleanup_tree_cfg
18912 outside the iteration loop.
18913 (thread_across_edge): No longer mess with forwardable blocks.
18914
18915 2004-08-09 Zack Weinberg <zack@codesourcery.com>
18916
18917 * explow.c (memory_address): Use memory_address_p.
18918 * recog.c (general_operand): Likewise.
18919 * regrename.c: No need to define REG_OK_STRICT.
18920
18921 2004-08-09 Steven Bosscher <stevenb@suse.de>
18922
18923 * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
18924 New timers.
18925 * gcse.c: Include timevar.h.
18926 (const_prop_count, copy_prop_count): Rename to global_const_prop_count
18927 and global_copy_prop_count.
18928 (local_const_prop_count, local_copy_prop_count): New static globals.
18929 (gcse_main): Set the right timevar for each pass.
18930 (cprop_jump): Increment global_const_prop_count when a constant is
18931 propagated. Add "GLOBAL" to dump output.
18932 (cprop_insn): Increment global_const_prop_count when a constant is
18933 propagated, or global_copy_prop_count when a copy is propagated.
18934 (do_local_cprop): Likewise for local_const_prop_count and
18935 local_copy_prop_count.
18936 (one_cprop_pass): Initialize const/cprop counters to zero.
18937 Print out results of local and global const/cprop separately.
18938 (bypass_block): Break over-length line.
18939 * Makefile.in (gcse.o): Add TIMEVAR_H dependency. Fix dependencies
18940 for bb-reorder.o and tracer.o.
18941
18942 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
18943
18944 * Makefile.in (GTFILES): Remove stmt.c
18945 (stmt.o): Do not depend on gt-stmt.h.
18946 * emit-rtl.c (emit_line_note): Do not call
18947 set_file_and_line_for_stmt.
18948 * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
18949 do everything.
18950 * function.c (free_after_parsing): Do not free STMT field.
18951 (allocate_struct_function): Do not call init_stmt_for_function.
18952 (assign_stack_temp_for_type): Do not accept values of keep
18953 other than 0 or 1.
18954 (init_temp_slots): Do not initialize removed variables.
18955 * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
18956 and X_VAR_TEMP_SLOT_LEVEL fields.
18957 * rtl.h (set_file_and_line_for_stmt): Remove.
18958 * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
18959 struct stmt_status, cond_stack, case_stack, nesting_stack,
18960 nesting_depth, emit_locus, set_file_and_line_for_stmt,
18961 same_case_target_p, init_stmt_for_function, emit_nop,
18962 expand_start_cond, expand_start_elseif, expand_start_else,
18963 expand_elseif, expand_end_cond): Remove.
18964 (preserve_subexpressions_p): Remove references to CFUN->STMT.
18965 (expand_start_case, expand_end_case_type): Remove, merge into...
18966 (expand_case): ... this one, including other bits from
18967 expand_expr_real_1. Inline same_case_target_p. Turn members
18968 of CASE_STACK into local variables.
18969 (emit_case_bit_tests): Inline same_case_target_p.
18970 (add_case_node): Add HEAD argument, return new head of the list,
18971 do not handle default label here.
18972 * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
18973 expand_start_elseif, current_nesting_level, expand_start_case,
18974 expand_end_case_type, expand_end_case, add_case_node,
18975 init_stmt_for_function, expand_elseif): Remove prototypes.
18976 (expand_case): Add prototype.
18977
18978 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
18979
18980 * expr.c (expand_expr_real_1): Use optab_for_tree_code.
18981
18982 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
18983
18984 * expr.c (var_rtx): Remove.
18985 (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
18986 LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
18987 TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
18988 Abort.
18989 (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
18990 * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
18991 * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
18992
18993 2004-08-08 Mostafa Hagog <mustafa@il.ibm.com>
18994 Ayal Zaks <zaks@il.ibm.com>
18995
18996 * common.opt (freschedule-modulo-scheduled-loops): New flag.
18997 * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
18998 * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
18999 when -freschedule-modulo-scheduled-loops flag is not specified.
19000 (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
19001 add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
19002 More accurate placing of insn in row of partial schedule.
19003 (ps_insn_find_column): New function.
19004 * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
19005 * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
19006 (schedule_region): Use sched_is_disabled_for_current_region_p.
19007 * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
19008
19009 2004-08-07 H.J. Lu <hongjiu.lu@intel.com>
19010
19011 * config/i386/i386.c (ix86_expand_clrmem): Revert the last
19012 change.
19013
19014 2004-08-07 H.J. Lu <hongjiu.lu@intel.com>
19015
19016 * config/i386/i386.c (ix86_expand_clrmem): Properly call
19017 gen_strset for 64bit target.
19018
19019 2004-08-07 Olivier Hainque <hainque@act-europe.fr>
19020
19021 * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
19022
19023 2004-08-07 Jason Merrill <jason@redhat.com>
19024
19025 Make return in memory explicit.
19026 * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
19027 (assign_parm_find_data_types): Remove code for old front end
19028 invisible reference handling.
19029 (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
19030 (expand_function_end): Likewise.
19031 * gimplify.c (gimplify_return_expr): Handle a dereferenced
19032 RESULT_DECL.
19033 * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
19034 (declare_return_variable): Handle DECL_BY_REFERENCE.
19035 * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
19036 (cp_genericize_r): Use convert_from_reference.
19037 Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
19038 (cp_genericize): Handle the RESULT_DECL. Unset TREE_ADDRESSABLE.
19039
19040 * c-common.c (c_warn_unused_result): Check TREE_USED before
19041 warning about a CALL_EXPR with an unused value.
19042
19043 2004-08-06 Mark Mitchell <mark@codesourcery.com>
19044
19045 * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
19046 to the compiler. Use -fshort-wchar by default.
19047
19048 2004-08-06 Pat Haugen <pthaugen@us.ibm.com>
19049
19050 * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
19051 * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
19052 threshhold.
19053 * doc/invoke.texi (param): Document min-crossjump-insns.
19054
19055 2004-08-06 Richard Sandiford <rsandifo@redhat.com>
19056
19057 PR c/13282
19058 * c.opt (Wmissing-field-initializers): New option.
19059 * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
19060 * c-typeck.c (pop_init_level): Guard the missing field warning with
19061 warn_missing_field_initializers rather than extra_warnings.
19062 * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
19063 some of the explanation from...
19064 (-Wextra): ...here. Say that the missing field warning can be
19065 seperately controlled by -Wmissing-field-initializers.
19066
19067 2004-08-06 Paolo Bonzini <bonzini@gnu.org>
19068
19069 * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
19070 * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
19071 * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
19072 * tree.def (ENTRY_VALUE_EXPR): Remove.
19073
19074 2004-08-06 Jakub Jelinek <jakub@redhat.com>
19075
19076 * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
19077 the places where it is actually needed. Don't use repz; stosb
19078 for -Os with sufficiently small constant sizes.
19079 For sufficiently small repz; stos{l,q} repeat counts use a sequence
19080 of stos{l,q} instructions instead.
19081
19082 2004-08-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19083
19084 PR tree-optimization/16807
19085 * loop-iv.c (dump_iv_info): Dump invariants correctly.
19086 (iv_subreg, iv_extend): Express value of invariant purely in
19087 base field.
19088
19089 2004-08-06 Mark Mitchell <mark@codesourcery.com>
19090
19091 * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
19092 (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
19093
19094 2004-08-06 Roman Zippel <zippel@linux-m68k.org>
19095
19096 * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
19097 * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
19098 pre_dec_operand.
19099 * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
19100 pattern until reload is finished to allow better code generation
19101 and split them completely into separate instrunctions.
19102 (*andsi3_split): New pattern.
19103
19104 2004-08-05 Mark Mitchell <mark@codesourcery.com>
19105
19106 * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
19107 Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P. Set
19108 DECL_VISIBLITY. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
19109 * tree.h (handle_dll_attribute): Declare. Test
19110 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
19111 * c-common.h (c_determine_visibility): Declare.
19112 * c-common.c (c_determine_visibility): New function.
19113 * c-decl.c (finish_decl): Use it.
19114 (finish_function): Likewise.
19115 * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
19116 zero, by default. Use #if, not #ifdef, to test it.
19117 * config/arm/arm.c (arm_attribute_table): Use
19118 handle_dll_attribute. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
19119 #if.
19120 * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
19121 * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
19122 to 1.
19123 * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
19124 * config/i386/i386.c (ix86_attribute_table): Use
19125 handle_dll_attribute for dllimport/dllexport. Test
19126 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
19127 * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
19128 * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
19129 it to 1.
19130 * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
19131 with #if.
19132 * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
19133 it to 1.
19134 * doc/extend.texi (dllexport): Clarify and correct documentation.
19135 (dllimport): Likewise.
19136 * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
19137 handle_dll_attribute.
19138
19139 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19140
19141 * tree-ssa-loop-manip.c: New file.
19142 * Makefile.in (tree-ssa-loop-manip.o): Add.
19143 * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
19144 Declare.
19145 * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
19146 form.
19147 (tree_ssa_loop_done): Verify loop closed ssa form.
19148 * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
19149
19150 2004-08-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19151
19152 * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
19153 pa_asm_output_aligned_local): New functions.
19154 * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
19155 pa_asm_output_aligned_common and pa_asm_output_aligned_local.
19156 * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
19157 pa_asm_output_aligned_common.
19158 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
19159 * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
19160 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
19161 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
19162 * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
19163 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
19164 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
19165 * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
19166 common data.
19167
19168 2004-08-05 Andrew Pinski <apinski@apple.com>
19169
19170 * objc/objc-act.c (build_objc_string_object): Mark the address
19171 expression as constant.
19172
19173 2004-08-05 David Edelsohn <edelsohn@gnu.org>
19174
19175 * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
19176 and mask64_operand thinkos. Handle ZERO_EXTRACT. Handle
19177 SIGN_EXTEND / ZERO_EXTEND of MEM. Handle rlwinm patterns.
19178
19179 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
19180
19181 * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
19182 Remove definitions conditioned on USE_GNULIBC_1 or conditioned
19183 out, and associated obsolete comments.
19184
19185 2004-08-05 Nathan Sidwell <nathan@codesourcery.com>
19186
19187 * tree.h (force_fit_type): Return a tree, take three flags.
19188 * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
19189 TREE_CONSTANT_OVERFLOW here.
19190 (int_const_binop, const_binop): Adjust.
19191 (size_int_type): Do sign extension here.
19192 (fold_convert_const, optimize_bit_field_compare,
19193 decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
19194 fold_negate_const, fold_abs_const, fold_not_const): Adjust.
19195 * tree.c (size_in_bytes, int_fits_type_p): Adjust.
19196
19197 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19198
19199 PR tree-optimization/16864
19200 * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
19201 for ssa names without default_def.
19202
19203 2004-08-05 Richard Sandiford <rsandifo@redhat.com>
19204
19205 * config/i386/i386.c (ix86_expand_prologue): If the function uses a
19206 frame pointer, restore eax with an ebp-relative address.
19207
19208 2004-08-04 Geoffrey Keating <geoffk@apple.com>
19209
19210 PR 14516
19211 * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
19212 * c-common.h (make_rtl_for_local_static): Delete.
19213 * c-decl.c (shadow_tag_warned): Clean up comment.
19214 (finish_decl): Clean up spacing. Use set_user_assembler_name when
19215 appropriate. Don't pass asmspec to rest_of_decl_compilation.
19216 * c-semantics.c (make_rtl_for_local_static): Delete.
19217 * expr.c (init_block_move_fn): Use set_user_assembler_name.
19218 (init_block_clear_fn): Likewise.
19219 * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
19220 expect it to be in DECL_ASSEMBLER_NAME. Update callers in many files.
19221 * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
19222 * tree.h (make_decl_rtl): Remove second parameter.
19223 (set_user_assembler_name): New.
19224 * varasm.c (set_user_assembler_name): New.
19225 (make_decl_rtl): Remove second parameter. Update callers in many
19226 files.
19227
19228 2004-08-05 Adam Nemet <anemet@lnxw.com>
19229
19230 * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
19231 (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*. Update
19232 to LynxOS 4.0.
19233 * gthr-lynx.h: New file.
19234 * config/lynx-ng.h: Remove file.
19235 * config/lynx.h: Update to LynxOS 4.0.
19236 * config/t-lynx: New file.
19237 * config/i386/lynx-ng.h: Remove file.
19238 * config/i386/lynx.h: Update to LynxOS 4.0.
19239 * config/rs6000/lynxbase.h: Remove file.
19240 * config/rs6000/lynx.h: Update to LynxOS 4.0.
19241 * config/rs6000/t-lynx: New file.
19242 * doc/install.texi (Options specification): Remove reference to
19243 LynxOS from systems where --with-gnu-as makes a difference.
19244
19245 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
19246
19247 * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
19248 __UINTMAX_TYPE__.
19249 * c-cppbuiltin.c (builtin_define_stdint_macros): New. Define
19250 __INTMAX_MAX__.
19251 (c_cpp_builtins): Call it.
19252 * doc/cpp.texi: Update.
19253
19254 2004-08-04 David Edelsohn <edelsohn@gnu.org>
19255
19256 * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
19257 cost.
19258
19259 2004-08-04 Jan Hubicka <jh@suse.cz>
19260
19261 * basic-block.h (profile_staus): New global variable.
19262 * cfg.c (profile_status): Declare.
19263 (check_bb_profile): Break out from ....; use profile_status
19264 (dump_flow_info): ... here.
19265 * cfgbuild.c (find_basic_blocks): Set profile_status.
19266 * cfgexpand.c (tree_expand_cfg): Likewise.
19267 * predict.c (estimate_probability): Likewise.
19268 * profile.c (branch_prob): Likewise.
19269 * tree-cfg.c (build_tree_cfg): Likewise.
19270 (dump_function_to_file): Use check_bb_profile.
19271 * tree-pretty-print (dump_bb_header): Likewise.
19272 * tree-profile.c (do_tree_profiling): Cleanup.
19273
19274 2004-08-04 Zack Weinberg <zack@codesourcery.com>
19275
19276 * Makefile.in (RTL_BASE_H, RTL_H): Correct.
19277 (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
19278 (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
19279 (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
19280 (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
19281 (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
19282 (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
19283 (ggc-none.o, errors.o): Move rule to generators section;
19284 correct dependencies.
19285 (min-insn-modes.o): Move rule to generators section; remove
19286 unnecessary explicit command; correct dependencies.
19287 (print-rtl.o, print-rtl1.o): Correct dependencies.
19288 ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
19289 (mostlyclean): Update.
19290
19291 * errors.c: Include bconfig.h not config.h. Correct comment.
19292 * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
19293 * ggc-none.c: Include bconfig.h; not config.h or tm.h.
19294 * print-rtl.c: Don't include tm_p.h.
19295
19296 * rtl.h: Move forward-decl of struct function down where it's
19297 needed. Include genrtl.h #ifndef GENERATOR_FILE, not
19298 #ifndef NO_GENRTL_H. Remove unnecessary #ifdef BUFSIZ statements.
19299
19300 2004-08-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19301 Jeff Law <law@redhat.com>
19302
19303 * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
19304 * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
19305 * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
19306 manipulate the duplicated ssa names.
19307 * tree-ssanames.c (ssa_names_to_rewrite): New variable.
19308 (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
19309 unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
19310 New functions.
19311 (release_ssa_name): Do not release ssa names that may have multiple
19312 definitions.
19313 * tree.h (release_ssa_name_force, mark_for_rewrite,
19314 unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
19315 marked_ssa_names): Declare.
19316 * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
19317 (duplicate_blocks): Remove call to mark_defs_for_rewrite.
19318 Update call to rewrite_ssa_into_ssa.
19319
19320 2004-08-04 Mark Mitchell <mark@codesourcery.com>
19321
19322 * defaults.h (TARGET_DECLSPEC): New macro.
19323 * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
19324 * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
19325 * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
19326 * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
19327 __declspec support.
19328 (TARGET_DECLSPEC): Define.
19329 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
19330 __declspec support.
19331 * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
19332 __declspec support.
19333 (TARGET_DECLSPEC): Define.
19334 * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
19335 __declspec support.
19336 * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
19337 support.
19338 * doc/tm.texi (TARGET_DECLSPEC): Document.
19339
19340 * doc/extend.texi: Fix typo in comment.
19341
19342 2004-08-04 Paul Brook <paul@codesourcery.com>
19343
19344 * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
19345 (TARGET_CXX): Use it.
19346 * target.h (struct gcc_target): Add cdtor_returns_this.
19347 * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
19348 (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
19349 * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
19350
19351 2004-08-03 Nathan Sidwell <nathan@codesourcery.com>
19352
19353 * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
19354 low/high pair. Do range checking directly.
19355 (interpret_integer): Adjust.
19356
19357 2004-08-04 Nick Clifton <nickc@redhat.com>
19358
19359 * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
19360 GCC ABI.
19361 * doc/invoke.texi: Document this new switch and also the -mrenesas
19362 switch.
19363
19364 2004-08-04 Nathan Sidwell <nathan@codesourcery.com>
19365
19366 * cfglayout.c (insn_locators_initialize): Update the current
19367 location before initializing a location.
19368
19369 2004-08-03 Zack Weinberg <zack@codesourcery.com>
19370
19371 * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
19372 (dbxout_function_end): Return after emitting the "Lscope" symbol
19373 under the same conditions that this function formerly wasn't called.
19374 Add explanatory comments.
19375
19376 PR 14860
19377 * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
19378 on the new decl.
19379
19380 PR 13956
19381 * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
19382 functions, broken out of dbxout_block.
19383 (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
19384 stabs too, if it contains symbols. Use the begin_label and
19385 the Lscope label (emitted by dbxout_function_end) for the
19386 range of this block.
19387
19388 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
19389
19390 * doc/install.texi: Update autoconf version requirements.
19391
19392 2004-08-03 Zack Weinberg <zack@codesourcery.com>
19393
19394 * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
19395 * recog.c (general_operand, immediate_operand, nonmemory_operand)
19396 (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
19397 * regclass.c (record_reg_classes): Likewise.
19398 * reload.c (find_reloads): Likewise.
19399 * reload1.c (reload): Likewise.
19400
19401 2004-08-03 Zack Weinberg <zack@codesourcery.com>
19402
19403 * gensupport.c (init_md_reader_args_cb): Renamed from
19404 init_md_reader_args. Add third option, callback function for
19405 parsing program-specific options. Add diagnosis of incorrect
19406 number of input files.
19407 (init_md_reader): Fold into init_md_reader_args_cb.
19408 (init_md_reader_args): Now a thin wrapper around
19409 init_md_reader_args_cb.
19410 * gensupport.h: Update prototypes.
19411
19412 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
19413 * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
19414 * genrecog.c: No need to diagnose lack of an input file;
19415 init_md_reader_args will handle it.
19416 * genconditions.c: Likewise, and use init_md_reader_args.
19417 * genconstants.c: Likewise, and no need to call read_md_rtx.
19418
19419 2004-08-03 Joseph S. Myers <jsm@polyomino.org.uk>
19420
19421 * c-decl.c (implicitly_declare): Diagnose incompatible implicit
19422 declarations.
19423
19424 2004-08-03 Mike Stump <mrs@apple.com>
19425
19426 * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
19427 for frameworks.
19428 * doc/invoke.texi (Darwin Options): Update to reflect above.
19429
19430 2004-08-03 Roger Sayle <roger@eyesopen.com>
19431
19432 PR middle-end/16790
19433 * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
19434 truncations, not just global truncations.
19435
19436 2004-08-03 Andrew Pinski <apinski@apple.com>
19437
19438 PR bootstrap/16865
19439 * loop-iv.c (simplify_using_assignment): Initialize lhs.
19440
19441 2004-08-03 Paul Brook <paul@codesourcery.com>
19442
19443 * gcc/doc/install.texi: Document MPFR requirement.
19444
19445 2004-08-03 Maciej W. Rozycki <macro@linux-mips.org>
19446
19447 * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
19448 and mmap() explicitly instead of relying on preset autoconf cache
19449 variables.
19450 * configure: Regenerate.
19451
19452 2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
19453
19454 PR target/16570
19455 * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
19456 to tmake_file.
19457 (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
19458 (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
19459 to tmake_file.
19460
19461 * config/i386/t-gmm_malloc: New file.
19462 * config/i386/t-pmm_malloc: Likewise.
19463
19464 * config/i386/xmmintrin.h: Include <mm_malloc.h>.
19465
19466 2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
19467 Tanguy Fautrà <tfautre@pandora.be>
19468
19469 * config/i386/pmm_malloc.h: New file.
19470
19471 2004-08-03 Danny Smith <dannysmith@users.sourceforge.net>
19472
19473 * config/i386/gmm_malloc.h: New file.
19474
19475 2004-08-03 Dale Johannesen <dalej@apple.com>
19476
19477 * config/rs6000/rs6000.c (machopic_output_stub): Align Darwin stubs.
19478 * c-common.c: Include opts.h.
19479 (c_common_get_alias_set): Fix check for a single input file.
19480 * toplev.c: Remove current_file_decl.
19481 * tree.h: Ditto.
19482
19483 2004-08-03 Mark Mitchell <mark@codesourcery.com>
19484
19485 * config.gcc (arm*-*-symbianelf*): New target.
19486 * config/arm/symbian.h: New file.
19487
19488 * gthr-gnat.c: Add visibility #pragmas.
19489 * gthr-gnat.h : Likewise.
19490 * gthr.h: Likewise.
19491 * libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
19492 (__ffsDI2): Likewise.
19493 (__clzSI2): Likewise.
19494 (__ctzSI2): Likewise.
19495 (__ctzDI2): Likewise.
19496 (__popcountSI2): Likewise.
19497 (__popcountDI2): Likewise.
19498 (__paritySI2): Likewise.
19499 (__parityDI2): Likewise.
19500 * libgcc2.h: Add visibility #pragmas.
19501 (__clzDI2): Add prototype.
19502 (__clzSI2): Likewise.
19503 (__ctzSI2): Likewise.
19504 (__ffsDI2): Likewise.
19505 (__ffsSI2): Likewise.
19506 (__ctzDI2): Likewise.
19507 (__popcountSI2): Likewise.
19508 (__popcountDI2): Likewise.
19509 (__paritySI2): Likewise.
19510 (__parityDI2): Likewise.
19511 * unwind-dw2-fde.h: Add visibility #pragmas.
19512 * unwind.h: Likewise.
19513
19514 2004-08-03 David Edelsohn <edelsohn@gnu.org>
19515 Dale Johannesen <dalej@apple.com>
19516 Roger Sayle <roger@eyesopen.com>
19517
19518 * config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
19519 constants more accurately. Adjust costs for FMA instructions.
19520 Add cases for most logical and float operations. Recurse into
19521 most operands.
19522
19523 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
19524
19525 * config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
19526
19527 2004-08-03 Pat Haugen <pthaugen@us.ibm.com>
19528
19529 * ra-build.c (conflicts_between_webs): For webs that cross a call add
19530 conflicts to regs_invalidated_by_call.
19531
19532 2004-08-03 Paul Brook <paul@codesourcery.com>
19533
19534 * config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
19535
19536 2004-08-03 Jan Hubicka <jh@suse.cz>
19537
19538 * coverage.c (tree_coverage_counter_ref): Fix computation of the new
19539 ARRAY_REF argument.
19540
19541 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
19542
19543 * arm-cores.def: Sort by architecture. Add arm946es, arm966es,
19544 arm968es, arm10e, arm1020e, arm1022e.
19545 * invoke.texi: Update list of ARM cores.
19546 * arm-tune.md: Regenerate.
19547
19548 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
19549
19550 * arm/gentune.sh: New file.
19551 * arm/t-arm: New file.
19552 * arm/arm-tune.md: New file (autogenerated).
19553 * config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
19554 * arm.md (attribute tune): Delete. Include arm-tune.md.
19555
19556 2004-08-03 Paolo Bonzini <bonzini@gnu.org>
19557
19558 * gcc.c (add_prefix, add_sysrooted_prefix): Remove
19559 penultimate parameter. All callers adjusted.
19560 (struct prefix_list): Remove used_flag_ptr.
19561 (find_a_file): Do not set *pl->used_flag_ptr.
19562 (warn_B, warn_std_ptr): Remove.
19563
19564 2004-08-03 Yossi Markovich <yossim@il.ibm.com>
19565 Mostafa Hagog <mustafa@il.ibm.com>
19566
19567 * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.
19568
19569 2004-08-02 Geoffrey Keating <geoffk@apple.com>
19570
19571 * dwarf2out.c (output_call_frame_info): Don't change data format
19572 due to TARGET_USES_WEAK_UNWIND_INFO. Always refer to the local
19573 label. Use 'true' not '1'.
19574 * doc/install.texi (powerpc-*-darwin*): Mention cctools version
19575 required.
19576
19577 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
19578
19579 * gdbinit.in: Reflect previous changes to rtunion_def.
19580
19581 2004-08-02 Roger Sayle <roger@eyesopen.com>
19582
19583 * fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
19584 -> "X % Y" is only valid for TRUNC_MOD_EXPR.
19585
19586 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
19587
19588 * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
19589 vec_p_reserve.
19590 * langhooks.h (lang_hooks::builtin_function): Rename parameter
19591 from "class" to "bt_class".
19592
19593 2004-08-02 Paul Brook <paul@codesourcery.com>
19594
19595 PR rtl-optimization/15068
19596 * flow.c (init_propagate_block_info): Check condition is reversible.
19597
19598 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
19599
19600 * gengtype.h (options::info): Change type to const char *.
19601 (enum gc_used_enum): Move out of struct type scope.
19602 * gengtype.c (create_option): Convert initializer for option::info to
19603 appropiate type.
19604 (adjust_field_type, walk_type, write_func_for_structure,
19605 write_root, write_roots): Remove pointless cast.
19606
19607 2004-08-02 J"orn Rennecke <joern.rennecke@superh.com>
19608
19609 * genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
19610
19611 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
19612
19613 * rtl.h (union rtunion_def): Have all members start with the
19614 prefix "rt_".
19615 (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
19616 X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
19617 X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
19618 XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members
19619 access.
19620 * gengtype.c (adjust_field_rtx_def): Likewise.
19621 * rtlanal.c (loc_mentioned_in_p): Likewise.
19622
19623 2004-08-02 Richard Sandiford <rsandifo@redhat.com>
19624
19625 * config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
19626 Replace uses of mips/elf64.h with mips/elf.h
19627 * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
19628 (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
19629 (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
19630 (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
19631 (HANDLE_SYSV_PRAGMA): Delete.
19632 (ASM_OUTPUT_DEF): Fix formatting.
19633 * config/mips/elf64.h: Delete.
19634
19635 2004-08-01 Zack Weinberg <zack@codesourcery.com>
19636
19637 * config/ia64/ia64.c (got_symbolic_operand): Do require a
19638 symbol+offset operand to have its offset be zero mod 0x3fff
19639 when GOT entries are in use. Clarify logic in SYMBOL_REF
19640 case. Clarify comments.
19641 (ia64_expand_load_address): Split a symbol+offset load when
19642 the offset is nonzero mod 0x3fff, not 0x1fff.
19643
19644 2004-08-01 Geoffrey Keating <geoffk@apple.com>
19645
19646 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
19647 if trying to *store* to a non-offsettable address.
19648 * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
19649 a nonoffsettable address.
19650 (movdi_internal32): Don't move GPRs to a nonoffsettable address.
19651 Clean up.
19652 (movti_string): Don't move GPRs to a nonoffsettable address.
19653 (movti_ppc64): Don't move GPRs to a nonoffsettable address. Clean up.
19654
19655 2004-08-02 Ben Elliston <bje@au.ibm.com>
19656
19657 PR target/16155
19658 * config/rs6000/altivec.h: Replace typeof with __typeof__.
19659
19660 2004-08-01 Richard Henderson <rth@redhat.com>
19661
19662 * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
19663 variable sized types.
19664
19665 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
19666
19667 * doc/invoke.texi: In the MIPS options section, remove the passage
19668 saying that -mexplicit-relocs is usually disabled for -mabicalls
19669 -fno-unit-at-a-time.
19670 * config/mips/mips.c (override_options): Remove the code that enforced
19671 this rule.
19672
19673 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
19674
19675 * config/mips/mips.md (cprestore): Provide two alternatives, one for
19676 an in-range offset and one for an out-of-range offset. Wrap the latter
19677 in .set macro/.set nomacro if it's inside a .set nomacro block.
19678
19679 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
19680
19681 * config/mips/mips-protos.h (mips_gp_save_slot): Remove.
19682 (mips_restore_gp): Declare.
19683 * config/mips/mips.c (mips_add_offset): Add a scratch register
19684 argument. Reimplement in rtl only, reusing MIPS16 logic from
19685 mips_output_mi_thunk.
19686 (mips_legitimize_address, mips_legitimize_const_move): Adjust calls
19687 to mips_add_offset.
19688 (mips_gp_save_slot): Delete.
19689 (mips_restore_gp): New function.
19690 (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
19691 * config/mips/mips.md (exception_receiver): Turn into a
19692 define_insn_and_split. Use mips_restore_gp to do the split.
19693 (call_internal, call_value_internal, call_value_multiple_internal): Use
19694 mips_restore_gp to restore $gp.
19695
19696 2004-07-31 Andrew Pinski <apinski@apple.com>
19697
19698 PR other/16842
19699 * mkheaders.in (libsubdir): s/gcc-lib/gcc/.
19700
19701 2004-07-31 Joseph S. Myers <jsm@polyomino.org.uk>
19702
19703 * c-decl.c (diagnose_mismatched_decls): Give error for external
19704 redeclaration of identifier declared with no linkage, not just
19705 warning with -Wtraditional. Do not check DECL_CONTEXT to give
19706 error for redeclaration with no linkage.
19707
19708 2004-07-30 Geoffrey Keating <geoffk@apple.com>
19709 Fariborz Jahanian <fjahanian@apple.com>
19710
19711 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
19712 non-offsettable addresses even for DImode.
19713 (rs6000_split_multireg_move): Cope with non-offsettable addresses
19714 being moved into multiple GPRs.
19715
19716 * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
19717 to 64.
19718 (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
19719 * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
19720 to 128.
19721 * config/rs6000/darwin-ldouble.c (isless): New macro.
19722 (inf): New macro.
19723 (nonfinite): New macro.
19724 (FPKINF): Delete.
19725 (_xlqadd): Completely rewrite.
19726 (_xlqmul): Correct overflow handling.
19727 (_xlqdiv): Correct overflow handling.
19728 * config/rs6000/darwin-ldouble-format: New file.
19729
19730 2004-07-30 Roger Sayle <roger@eyesopen.com>
19731 Richard Henderson <rth@redhat.com>
19732
19733 * config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
19734 9 into the equivalent lea instruction.
19735
19736 2004-07-30 Richard Henderson <rth@redhat.com>
19737
19738 * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
19739 with DECL_INITIAL if fb_lvalue.
19740 * tree-gimple.c (is_gimple_id): Add CONST_DECL.
19741 * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
19742 with <Cxxx>.
19743 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
19744
19745 2004-07-30 Diego Novillo <dnovillo@redhat.com>
19746
19747 * tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
19748 pointer escapes through a function call, assume that the
19749 callee will dereference it.
19750 (add_pointed_to_var): Assume that VALUE is always an
19751 ADDR_EXPR.
19752 (collect_points_to_info_r): Only call add_pointed_to_var if
19753 the value is an ADDR_EXPR.
19754
19755 2004-07-30 Diego Novillo <dnovillo@redhat.com>
19756
19757 * tree-ssa-alias.c (create_alias_map_for): Do not get the
19758 alias set of the inner type of ARRAY_TYPEs.
19759
19760 2004-07-29 Diego Novillo <dnovillo@redhat.com>
19761
19762 * tree-ssa-ccp.c (visit_assignment): Move code to prevent
19763 setting a non-register to UNDEFINED right before the call to
19764 set_lattice_value.
19765
19766 2004-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
19767
19768 * config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
19769
19770 2004-07-29 Diego Novillo <dnovillo@redhat.com>
19771
19772 * tree-ssa.c (verify_flow_sensitive_alias_info): When
19773 comparing points-to sets of different pointers, make sure the
19774 second pointer is actually referenced in the code.
19775
19776 2004-07-29 Zack Weinberg <zack@codesourcery.com>
19777
19778 * config/ia64/ia64.c (setjmp_operand): Delete, unused.
19779 (got_symbolic_operand): Remove unreachable code.
19780 * config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
19781 setjmp_operand; add entry for tls_symbolic_operand.
19782 * config/ia64/ia64-protos.h: Remove all prototypes of
19783 predicate functions.
19784
19785 2004-07-29 Mark Mitchell <mark@codesourcery.com>
19786
19787 * c-common.h (lang_post_pch_load): New variable.
19788 * c-pch.c (lang_post_pch_load): Define it.
19789 (c_common_read_pch): Use it.
19790 * cgraphunit.c (record_call_1): Give the front end a chance to
19791 record additional needed entities when a variable is marked as
19792 needed.
19793 * tlink.c (recompile_files): Robustify.
19794 (scan_linker_output): If a symbol is assigned to a file,
19795 but after recompilation is not present there, issue an error
19796 message.
19797
19798 2004-07-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19799
19800 * tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
19801 Take orig_loop argument and pass it to set_level.
19802 (schedule_sm): Pass the correct orig_loop to force_move_till.
19803
19804 2004-07-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19805
19806 * cfgloop.c (update_latch_info): Update dominator of the new block.
19807 (canonicalize_loop_headers, flow_loops_find): Do not free dominance
19808 info.
19809 * dominance.c (verify_dominators): Check that the dominance tree is
19810 connected.
19811 (recount_dominator): Ignore unreachable blocks.
19812 (iterate_fix_dominators): Cleanup old dominance information before
19813 recomputing it.
19814
19815 2004-07-29 Diego Novillo <dnovillo@redhat.com>
19816
19817 * tree-ssa-operands.c (get_expr_operands): Revert changes
19818 to ADDR_EXPR processing introduced by:
19819 2004-06-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19820 * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
19821
19822 2004-07-29 Joseph S. Myers <jsm@polyomino.org.uk>
19823
19824 * doc/implement-c.texi: Add C90 subclause references. Point to
19825 preprocessor documentation instead of duplicating it. Add points
19826 only present in C90. Fill in documentation for all points.
19827
19828 2004-07-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19829
19830 * pa.c (output_movb): Correct typo.
19831
19832 2004-07-29 Pat Haugen <pthaugen@us.ibm.com>
19833
19834 * ra.h (single_reg_in_regclass): Declare.
19835 * ra.c (single_reg_in_regclass): Define.
19836 (first_hard_reg): New.
19837 (init_ra): Initialize single_reg_in_regclass.
19838 * ra-colorize.c (ok_class): New.
19839 (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
19840
19841 2004-07-29 Nathan Sidwell <nathan@codesourcery.com>
19842
19843 * gcov-io.h: Allow zero tag as EOF indicator.
19844 (gcov_is_eof): Remove.
19845 (gcov_truncate): Remove.
19846 * gcov-io.c (gcov_seek): Always SEEK_SET.
19847 * libgcov.c (gcov_exit): Don't use gcov_truncate. Write explicit
19848 EOF tag.
19849 * coverage.c (read_counts_file): Don't use gcov_is_eof.
19850 * gcov-dump.c (dump_file): Likewise.
19851 * gcov.c (read_graph_file, read_count_file): Likewise.
19852
19853 * c-decl.c (complete_array_type): Don't gratuitously copy
19854 maxindex. Check it always has a type.
19855
19856 2004-07-29 Steven Bosscher <stevenb@suse.de>
19857
19858 * rtl.c (currently_expanding_to_rtl): New.
19859 * rtl.h (currently_expanding_to_rtl): Export it.
19860 * cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
19861
19862 * config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
19863 inliner hack.
19864 * config/sh/sh.c: Replace rtx_equal_function_value_matters
19865 with currently_expanding_to_rtl.
19866 * config/sh/sh.md: Likewise.
19867 * config/ia64/ia64.c (got_symbolic_operand): Likewise.
19868
19869 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
19870
19871 Introduce sh2a support.
19872 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
19873 * config.gcc: Build multilibs for sh2a and sh2a-single by
19874 default.
19875 * config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
19876 default. Split their tests out of the corresponding SH4
19877 multilibs.
19878 * config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
19879 multilibs for SH2a.
19880 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
19881 * config.gcc: Handle sh2a multilibs and cpu selection.
19882 * config/sh/sh.h: Likewise. Handle sh2a command line flags.
19883 * config/sh/t-mlib-sh2a: New.
19884 * config/sh/t-mlib-sh2a-nofpu: New.
19885 * config/sh/t-mlib-sh2a-single: New.
19886 * config/sh/t-mlib-sh2a-single-only: New.
19887 2004-07-09 Nick Clifton <nickc@redhat.com>
19888 Issue 43400
19889 * config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
19890 -ml and -m2a are used together.
19891 2004-03-23 DJ Delorie <dj@redhat.com>
19892 * config/sh/sh.c (sh_builtin_saveregs): Use the double code only
19893 when we have a double-sized FPU.
19894 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
19895 * config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
19896 is set.
19897 * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
19898 -msh2a-single and -msh2a-single-only
19899 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
19900 * config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
19901 is set.
19902 2004-02-20 DJ Delorie <dj@delorie.com>
19903 * config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
19904 2004-02-20 Fred Fish <fnf@redhat.com>,
19905 Corinna Vinschen <vinschen@redhat.com>
19906 * config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
19907 (MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
19908 2004-02-18 DJ Delorie <dj@redhat.com>
19909 * config/sh/sh.c (broken_move): Add support for movi20.
19910 * config/sh/sh.h: Likewise.
19911 (SHIFT_COUNT_TRUNCATED): Set for sh2a.
19912 * config/sh/sh.md (udivsi3_sh2a): New.
19913 (udivsi3): Call it.
19914 (divsi3_sh2a): New.
19915 (divsi3): Call it.
19916 (mul_r): New.
19917 (ashlsi3_sh2a): New.
19918 (ashrsi3_sh2a): New.
19919 (lshrsi3_sh2a): New.
19920 (movsi_i): Disable for sh2a.
19921 (movsi_ie): Add movi20.
19922 (movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
19923 sh2a, for -m2a-nofpu mode.
19924 2004-02-13 DJ Delorie <dj@redhat.com>
19925 * config/sh/lib1funcs.asm: Handle double vs single better.
19926 * config/sh/sh.h: Likewise.
19927 2004-02-09 DJ Delorie <dj@redhat.com>
19928 * config/sh/crt1.asm: Add support for sh2a.
19929 * config/sh/elf.h: Likewise.
19930 * config/sh/lib1funcs.asm: Likewise.
19931 * config/sh/sh.c: Likewise.
19932 * config/sh/sh.md: Likewise.
19933 * config/sh/sh.h: Likewise.
19934 * config/sh/t-sh: Likewise.
19935
19936 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
19937
19938 * config/frv/frv.md (movqi_internal, movhi_internal,
19939 movsi_internal): Add backup alternatives for memory inputs.
19940
19941 2004-07-28 Matt Austern <austern@apple.com>
19942
19943 * config/darwin.c (darwin_one_byte_bool): New global variable.
19944 * config/darwin.h (darwin_one_byte_bool): Declare.
19945 (SUBTARGET_OPTIONS): Define macro. (for -mone-byte-bool flag.)
19946 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
19947 value of darwin_one_byte_bool.
19948 * doc/invoke.texi: Document -mone-byte-bool flag.
19949
19950 2004-07-28 Eric Christopher <echristo@redhat.com>
19951
19952 * c-common.c (c_common_unsafe_for_reeval): Delete.
19953 * c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
19954 * c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
19955 * calls.c (fix_unsafe_tree): Delete.
19956 (expand_call): Delete code which used above.
19957 * dojump.c (do_jump): Delete UNSAVE_EXPR case.
19958 * expr.c (expand_expr_real_1): Ditto.
19959 * fold-const.c (non_lvalue): Ditto.
19960 * langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
19961 (lhd_unsafe_for_reeval): Ditto.
19962 * langhooks.c (lhd_unsafe_for_reeval): Ditto.
19963 * langhooks.h (unsafe_for_reeval): Ditto.
19964 (unsave_expr_now): Adjust comment.
19965 * tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
19966 (estimate_num_insns_1): Ditto.
19967 * tree-pretty-print.c (dump_generic_node): Ditto.
19968 * tree.c (expr_align): Ditto.
19969 (unsave_expr): Delete.
19970 (unsafe_for_reeval): Ditto.
19971 * tree.h (unsafe_for_reeval, unsave_expr): Ditto.
19972 * tree.def (UNSAVE_EXPR): Delete.
19973 * objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
19974
19975 2004-07-28 Zack Weinberg <zack@codesourcery.com>
19976
19977 * tree.h (enum tls_model): Move ...
19978 * coretypes.h: ... here.
19979
19980 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
19981
19982 * config/frv/frv.h (EPILOGUE_USES): New. Use LR.
19983
19984 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
19985
19986 * cse.c (validate_canon_reg): New function, split out from...
19987 (canon_reg): ...here. Use validate_canon_reg for both 'e' and 'E'.
19988
19989 2004-07-28 Diego Novillo <dnovillo@redhat.com>
19990
19991 * tree-ssa-alias.c (maybe_create_global_var): Don't just
19992 return if .GLOBAL_VAR has been created.
19993
19994 2004-07-28 Diego Novillo <dnovillo@redhat.com>
19995
19996 * tree-ssa.c (verify_flow_insensitive_alias_info): Process
19997 every variable that may have aliases, not just tags.
19998
19999 2004-07-28 Aldy Hernandez <aldyh@redhat.com>
20000
20001 * config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
20002 move_from_CR_eq_bit.
20003 Rename UNSPEC_MV_CR_GT to UNSPEC_MV_CR_EQ.
20004
20005
20006 * config/rs6000/spe.md ("e500_flip_gt_bit"): Rename to
20007 e500_flip_eq_bit.
20008
20009 * config/rs6000/rs6000-protos.h: Rename output_e500_flip_gt_bit to
20010 output_e500_flip_eq_bit.
20011
20012 * config/rs6000/rs6000.c (output_e500_flip_gt_bit): Rename to
20013 output_e500_flip_eq_bit.
20014 (rs6000_emit_sCOND): Rename call to output_e500_flip_gt_bit to
20015 output_e500_flip_eq_bit.
20016 Rename gen_move_from_CR_gt_bit to gen_move_from_CR_eq_bit.
20017 (print_operand): case D. Get to EQ bit.
20018
20019 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
20020
20021 * gcov.c (function_summary): Add missing \n.
20022
20023 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
20024
20025 Introduce sh4a support.
20026 * config.gcc: Handle sh4a multilibs and cpu selection.
20027 * config/sh/sh.h: Likewise. Handle sh4a command line flags.
20028 * config/sh/t-mlib-sh4a: New.
20029 * config/sh/t-mlib-sh4al: New.
20030 * config/sh/t-mlib-sh4a-nofpu: New.
20031 * config/sh/t-mlib-sh4a-single: New.
20032 * config/sh/t-mlib-sh4a-single-only: New.
20033 2004-02-20 DJ Delorie <dj@redhat.com>
20034 * config/sh/sh.md ("movua"): Change constraint from "m" to "Sua".
20035 * config/sh/sh.h (EXTRA_CONSTRAINT_S): Add "Sua" support.
20036 2003-08-22 Eric Christopher <echristo@redhat.com>
20037 * config/sh/sh4a.md: Update for chip errata.
20038 2003-08-07 Eric Christopher <echristo@redhat.com>
20039 * config/sh/sh4a.md: New file. sh4a processor description.
20040 2003-07-08 Alexandre Oliva <aoliva@redhat.com>
20041 * config/sh/sh.h (TARGET_SWITCHES): Added 4al. Adjust description
20042 of -m4a-nofpu.
20043 (SH_ASM_SPEC): Pass -dsp for -m4al, not -m4a-nofpu.
20044 * config/sh/t-sh (MULTILIB_MATCHES): Map -m4al to -m4a-nofpu.
20045 * doc/invoke.texi (SH Options): Document -m4al.
20046 2003-07-03 Alexandre Oliva <aoliva@redhat.com>
20047 * config/sh/sh.c (expand_block_move): Remove commented-out code
20048 checked in by mistake.
20049 (sh_cannot_change_mode_class): Enable SUBREGs to be used to select
20050 single elements from SFmode vectors.
20051 * config/sh/sh.md (fsca): Use VEC_CONCAT to initialize the output
20052 register.
20053 (sinsf2, cossf2, sindf2, cosdf2): Don't emit CLOBBER.
20054 2003-07-01 Alexandre Oliva <aoliva@redhat.com>
20055 * config/sh/sh.h (sh_fsca_sf2int, sh_fsca_df2int,
20056 sh_fsca_int2sf): Remove variable declarations.
20057 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
20058 sh_fsca_int2sf): New functions.
20059 (sh_fsca_sf2int_rtx, sh_fsca_df2int_rtx,
20060 sh_fsca_int2sf_rtx): New static variables.
20061 * config/sh/sh-protos.h (sh_fsca_sf2int, sh_fsca_df2int,
20062 sh_fsca_int2sf): Declare.
20063 * config/sh/sh.md: Adjust.
20064 * doc/invoke.texi (SH Options): Document new options.
20065 * config/sh/lib1funcs.asm (ic_invalidate): Remove SH4a forward
20066 compatibility from SH4 code.
20067 2003-06-27 Alexandre Oliva <aoliva@redhat.com>
20068 * config/sh/sh.c (expand_block_move): Don't emit POST_INC too
20069 early.
20070 (memory_movsrc_operand): Renamed to...
20071 (unaligned_load_operand): ... this. Simplified.
20072 * config/sh/sh.h (PREDICATE_CODES): Adjust.
20073 * config/sh/sh.md (movua, extv, extzv): Likewise. Change movua's
20074 input operand to SImode, and adjust the others. Introduce
20075 post-increment by peephole.
20076 * config/sh/sh.c (expand_block_move): Give the target address the
20077 same mode as the temp reg.
20078 * config/sh/sh.c (expand_block_move): Use a temp reg for unaligned
20079 copying.
20080 2003-06-26 Alexandre Oliva <aoliva@redhat.com>
20081 Introduce support for SH4a.
20082 * config/sh/lib1funcs.asm (ic_invalidate): Use icbi if
20083 __SH4A__. Emit 4 4kb blocks and touch all of them otherwise.
20084 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
20085 sh_fsca_int2sf): New.
20086 (sh_init_builtins): Initialize them.
20087 (print_operand): Support `d'.
20088 (expand_block_move): Use movua if src is misaligned.
20089 (memory_movsrc_operand): New.
20090 * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH4A__
20091 and one of the SH4 macros.
20092 (SH4A_BIT, TARGET_SH4A_ARCH, TARGET_SH4A_FP,
20093 SELECT_SH4A_NOFPU, SELECT_SH4A_SINGLE_ONLY, SELECT_SH4A,
20094 SELECT_SH4A_SINGLE): New.
20095 (TARGET_NONE): Add SH4A_BIT.
20096 (TARGET_SWITCHES): Add 4a-single-only, 4a-single, 4a-nofpu and 4a.
20097 (SH_ASM_SPEC): Pass -dsp if -m4a-nofpu.
20098 (sh_fsca_sf2int, sh_fsca_df2int, sh_fsca_int2sf): Declare.
20099 (OVERRIDE_OPTIONS): Set cpu to CPU_SH4A when appropriate.
20100 (enum processor_type): Added PROCESSOR_SH4A.
20101 (PREDICATE_CODES): Add memory_movsrc_operand.
20102 * config/sh/sh.md: Removed unused variables.
20103 (attr cpu): Add sh4a.
20104 (attr type): Add movua, fsrra and fsca.
20105 (prefetch): New, for SH4.
20106 (ic_invalidate_line, ic_invalidate_line_sh4a): Use icbi.
20107 (toggle_sz): Set type to fp.
20108 (toggle_pr, rsqrtsf2, fsca, sinsf2, cossf2, sindf2, cosdf2): New.
20109 (movua, extv, extzv): New.
20110 * config/sh/t-sh: Add multilibs for 4a, 4a-nofpu, 4a-single
20111 and 4a-single-only.
20112
20113 2004-07-28 Diego Novillo <dnovillo@redhat.com>
20114
20115 * tree-optimize.c (init_tree_optimization_passes): Schedule
20116 pass_may_alias right after the program is renamed into SSA.
20117 * tree-pass.h (PROP_alias): Define.
20118 * tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
20119 * tree-sra.c (pass_sra): Likewise.
20120 * tree-ssa-ccp.c (pass_ccp): Likewise.
20121 * tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
20122 * tree-ssa-dce.c (pass_dce): Likewise.
20123 * tree-ssa-dom.c (pass_dominator): Likewise.
20124 * tree-ssa-dse.c (pass_dse): Likewise.
20125 * tree-ssa-forwprop.c (pass_forwprop): Likewise.
20126 * tree-ssa-loop-ch.c (pass_ch): Likewise.
20127 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
20128 * tree-ssa-pre.c (pass_pre): Likewise.
20129 * tree-tailcall.c (pass_tail_recursion): Likewise.
20130 * tree-ssa.c (pass_redundant_phi): Likewise.
20131 * tree-ssa-alias.c (aliases_computed_p): Remove.
20132 Update all users.
20133 (init_alias_info): Do not mark all type tags for renaming
20134 unconditionally.
20135 Clear may_aliases from every symbol.
20136 (setup_pointers_and_addressables): If a pointer has not been
20137 dereferenced and it had a type tag, clear it and mark the old
20138 tag for renaming.
20139
20140 2004-07-28 Diego Novillo <dnovillo@redhat.com>
20141
20142 PR tree-optimization/16705
20143 * tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
20144 .GLOBAL_VAR.
20145
20146 2004-07-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20147
20148 * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error
20149 check.
20150
20151 * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,
20152 don't make another one.
20153
20154 PR optimization/15077
20155 * function.h (struct function): Add field saved_static_chain_decl.
20156 Fix comment for static_chain_decl.
20157 * tree-inline.c (save_body): Add new arg and handle static_chain_decl.
20158 * tree-inline.h (save_body): Add new arg.
20159 * tree-optimize.c (tree_rest_of_compilation): Handle saving
20160 static_chain_decl.
20161
20162 2004-07-27 Richard Henderson <rth@redhat.com>
20163
20164 * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
20165 (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
20166 is_gimple_addressable.
20167 * tree-gimple.c (is_gimple_addressable): Rename from
20168 is_gimple_addr_expr_arg; accept INDIRECT_REF.
20169 (is_gimple_lvalue): Don't test INDIRECT_REF directly.
20170 * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
20171 rename to is_gimple_addressable.
20172
20173 2004-07-28 Alan Modra <amodra@bigpond.net.au>
20174
20175 * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
20176
20177 2004-07-27 Richard Henderson <rth@redhat.com>
20178
20179 * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
20180 before rounding.
20181
20182 2004-07-27 Zack Weinberg <zack@codesourcery.com>
20183
20184 * libgcc2.c: Change all conditionals testing
20185 LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80.
20186 * libgcc2.h: Likewise.
20187 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set
20188 TYPE_PRECISION of float80_type to 80.
20189 * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION
20190 of fpreg_type and float80_type to 80.
20191 * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h
20192 * config/m68k/netbsd-elf.h:
20193 Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE
20194 to evaluate to 80 whenever they would formerly have evaluated to 96.
20195 * config/i386/sco5.h: Remove unnecessary redefinition of
20196 LONG_DOUBLE_TYPE_SIZE.
20197 * doc/rtl.texi: Clarify uses of XFmode and TFmode.
20198 * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for
20199 XFmode, with a bitsize of 80. Update commentary.
20200 * config/ia64/ia64-modes.def: Likewise.
20201 * config/m68k/m68k-modes.def: Likewise.
20202
20203 2004-07-27 Steven Bosscher <stevenb@suse.de>
20204
20205 * cfgexpand.c (tree_expand_cfg): Fix comment.
20206
20207 * calls.c (expand_call): Ignore rtx_equal_function_value_matters.
20208 * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets):
20209 Remove.
20210 (prepare_function_start): Don't set rtx_equal_function_value_matters.
20211 * integrate.c (copy_rtx_and_substitute): Don't test for it.
20212 * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets.
20213 Don't set rtx_equal_function_value_matters. Don't register RTL hooks
20214 here again. Update leading comment.
20215 * rtl.c (rtx_equal_function_value_matters): Remove.
20216 (rtx_equal_p): Don't test for it.
20217 * simplify-rtx.c (simplify_binary_operation, simplify_subreg):
20218 Likewise.
20219
20220 * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND.
20221 * rtl.c (note_insn_name): Likewise.
20222 * emit-rtl.c (remove_unnecessary_notes): Don't handle it.
20223 * final.c (final_scan_insn): Likewise.
20224
20225 * except.c (finish_eh_generation): Don't call cfg_cleanup from here.
20226 * passes.c (rest_of_handle_eh): Do it here.
20227
20228 * stmt.c (struct nesting): Remove struct nesting block member.
20229 (struct stmt_status): Remove x_block_start_count field.
20230 (current_block_start_count): Remove.
20231
20232 2004-07-27 Brian Booth <bbooth@redhat.com>
20233
20234 * tree-optimize.c (register_one_dump_file): Update condition that uses
20235 static_pass_number.
20236 (dup_pass_1): Replace with...
20237 (next_pass_1): This.
20238 (NEXT_PASS): Call next_pass_1.
20239 (DUP_PASS): Remove.
20240 (init_tree_optimization_passes): Remove uses of DUP_PASS.
20241 (execute_one_pass): Update condition that uses
20242 static_pass_number.
20243 * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed
20244 integer.
20245
20246 2004-07-27 Nick Clifton <nickc@redhat.com>
20247
20248 * config/m32r/m32r.c: Include integrate.h in order to get the
20249 prototype for get_hard_reg_initial_val().
20250
20251 * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r"
20252 and tidy up indentation.
20253 (final_presence_set): Use absence_set instead, so that if there is
20254 nothing in the "o" pipe the "s" pipe can be scheduled.
20255
20256 2004-07-27 Diego Novillo <dnovillo@redhat.com>
20257
20258 * tree-ssa-alias.c (create_name_tags): Ignore pointers that
20259 don't have PT_VARS nor PT_MALLOC set.
20260 Clear name tag from pointers that have not been dereferenced.
20261 (set_pt_anything, set_pt_malloc): Forward declare.
20262 * tree-ssa-copy.c (may_propagate_copy): Compare alias sets,
20263 not type compatibility when determining if a pointer can be
20264 copy propagated.
20265
20266 2004-07-27 Richard Sandiford <rsandifo@redhat.com>
20267
20268 * expr.h (canonicalize_condition, get_condition): Add an int argument.
20269 * gcse.c (fis_get_condition): Reimplement using get_condition, leaving
20270 it to check whether the condition is still valid at the jump insn.
20271 * ifcvt.c (noce_get_condition): Likewise.
20272 (noce_get_alt_condition): Update call to canonicalize_condition.
20273 * loop-iv.c (simplify_using_initial_values): Update call to
20274 get_condition. Remove FIXME.
20275 (check_simple_exit): Update call to get_condition.
20276 * loop-unswitch.c (may_unswitch_on): Likewise.
20277 * loop.c (check_dbra_loop): Likewise.
20278 (canonicalize_condition, get_condition): Add an argument to say whether
20279 the condition must still be valid at INSN.
20280 (get_condition_for_loop): Update call to get_condition. Require that
20281 the condition be valid at INSN.
20282 * predict.c (estimate_probability): Update call to get_condition.
20283 Remove unused earliest parameter.
20284 (expected_value_to_br_prob): Update call to canonicalize_condition.
20285
20286 2004-07-26 Eric Christopher <echristo@redhat.com>
20287
20288 * tree-dfa.c (add_referenced_var): Register initializers of global
20289 variables.
20290
20291 2004-07-26 Paolo Bonzini <bonzini@gnu.org>
20292
20293 * config/i386/i386.c (function_arg): Always treat 8-
20294 and 16-byte wide vectors the same, even if MMX/SSE
20295 are disabled.
20296 (contains_128bit_aligned_vector_p): Add comment.
20297
20298 2004-07-26 J"orn Rennecke <joern.rennecke@superh.com>
20299
20300 * ra.h (enum node_type): Rename to:
20301 (enum ra_node_type).
20302 * ra-colorize.c: Likewise.
20303
20304 2004-07-26 Richard Sandiford <rsandifo@redhat.com>
20305
20306 * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
20307 after simplifying the jump.
20308
20309 2004-06-26 Richard Henderson <rth@redhat.com>
20310
20311 * calls.c (combine_pending_stack_adjustment_and_call): Make
20312 preferred_unit_stack_boundary argument unsigned. Make
20313 unadjusted_alignment unsigned.
20314 (expand_call): Make preferred_stack_boundary and
20315 preferred_unit_stack_boundary variables unsigned.
20316 * function.c (assign_stack_local_1): Make alignment unsigned.
20317 * function.h (struct function): Make stack_alignment_needed,
20318 preferred_stack_boundary unsigned.
20319 * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
20320 (ix86_compute_frame_layout): Make stack_alignment_needed,
20321 preferred_alignment variables unsigned.
20322 * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.
20323
20324 2004-07-26 Tom Tromey <tromey@redhat.com>
20325
20326 * tree.h: Fix typo in comment.
20327
20328 2004-07-26 Daniel Jacobowitz <dan@debian.org>
20329
20330 PR bootstrap/12804
20331 * ggc-zone.c (struct alloc_chunk): Remove attribute packed.
20332 (MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
20333 (ggc_free): Remove incorrect freeing.
20334 (sweep_pages): Advance PP for large pages. Fix indentation.
20335
20336 2004-07-26 Richard Sandiford <rsandifo@redhat.com>
20337
20338 PR rtl-optimization/16643
20339 * cfglayout.h (cfg_layout_initialize): Add a flags parameter.
20340 * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
20341 * basic-block.h (reorder_basic_blocks): Add a flags parameter.
20342 * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
20343 (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
20344 * function.c (thread_prologue_and_epilogue_insns): Likewise.
20345 * rtl.h (tracer): Add a flags parameter.
20346 * tracer.c (tracer): Pass it to cfg_layout_initialise.
20347 * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
20348 (rest_of_handle_reorder_blocks): Update calls to tracer and
20349 reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
20350 (rest_of_handle_tracer): Pass 0 to tracer.
20351 (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
20352
20353 2004-07-25 David Edelsohn <edelsohn@gnu.org>
20354
20355 PR target/16239
20356 * config/rs6000/rs6000.md (movdi_internal64): Further disparage
20357 f->f.
20358
20359 2004-07-24 Nathan Sidwell <nathan@codesourcery.com>
20360
20361 * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
20362 (BINFO_BASE_ACCESS): Adjust.
20363 (BINFO_BASE_ACCESS_APPEND): New.
20364 (struct tree_binfo): Make base_accesses a VEC(tree) pointer.
20365 * dbxout.c (dbxout_type): Adjust binfo access accessing.
20366 * dwarf2out.c (gen_member_die): Likewise.
20367 * tree-dump.c (deque_and_dump): Likewise.
20368
20369 2004-07-26 Falk Hueffner <falk@debian.org>
20370
20371 * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
20372 costs.
20373
20374 2004-07-25 Roger Sayle <roger@eyesopen.com>
20375
20376 * config/i386/i386.c (output_fp_compare): Use ffreep to pop top
20377 value off of the stack if TARGET_USE_FFREEP.
20378
20379 2004-07-26 Bernardo Innocenti <bernie@develer.com>
20380
20381 * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
20382 * gengtype-yacc.y: Likewise. Replace free() with XDELETE ().
20383 * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
20384 check on invocation of XRESIZEVEC ().
20385
20386 2004-07-26 Bernardo Innocenti <bernie@develer.com>
20387
20388 * c-common.c (disable_builtin_function): Rename variable n to
20389 new_disabled_builtin.
20390 * c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
20391 Rename local variable old to old_decl.
20392 * gensupport.c (shift_output_template): Rename parameter old to src.
20393 * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
20394 old_rtx and newx to new_rtx.
20395
20396 2004-07-26 Bernardo Innocenti <bernie@develer.com>
20397
20398 * Makefile.in (C_PRAGMA_H): New variable to track dependencies
20399 of c-pragma.h.
20400 * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
20401 enum cpp_ttype.
20402 * c-lex.c: Likewise.
20403
20404 2004-07-25 Roger Sayle <roger@eyesopen.com>
20405
20406 * fold-const.c (constant_boolean_node): Make extern.
20407 (make_range): Wrap long lines.
20408 (fold_cond_expr_with_comparison): Remove unnecessary call to
20409 pedantic_non_lvalue. Add missing calls to fold_convert.
20410 (fold_truthop): Add missing calls to fold_convert.
20411 (fold): Likewise.
20412 * tree.h (constant_boolean_node): Add prototype here.
20413 * builtins.c (expand_builtin_strncmp): Add missing calls to
20414 fold_convert.
20415 * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
20416 Call fold_convert and constant_boolean_node to correct types.
20417 * tree-ssa-forwprop.c (substitute_single_use_vars): Add
20418 missing call to fold_convert to correct types.
20419
20420 2004-07-26 Niall Douglas <s_fsfeurope2@nedprod.com>
20421 Brian Ryner <bryner@brianryner.com>
20422
20423 PR c++/9283
20424 PR c++/15000
20425 * c-common.c (c_common_attribute_table): Allow
20426 handle_visibility_attribute to be called for types.
20427 (handle_visibility_attribute) When given a type, set the visibility
20428 bits on the TYPE_NAME. When given a decl, don't set no_add_attrs
20429 so that we can check later whether the attribute was present. Added
20430 warning if attribute applied to non class type.
20431 * c-decl.c (diagnose_mismatched_decls): Updated rules for merging
20432 decls and checking that they are consistent.
20433 * common.opt: Added -fvisibility.
20434 * c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
20435 * c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
20436 * flags.h, tree.h: Added assorted support defines for overall patch
20437 * opts.c: Added parsing support for -fvisibility.
20438 * tree.c (build_decl): Set visibility for all decls to be whatever
20439 is in force at that time.
20440 * varasm.c (default_binds_local_p_1): Reworked logic determining
20441 when to make a symbol locally bound.
20442 * doc/invoke.texi: Added documentation for -fvisibility and
20443 -fvisibility-inlines-hidden.
20444
20445 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20446
20447 * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
20448 * c-common.c: Add missing casts from void * to other types.
20449 * c-decl.c: Likewise.
20450 * c-format.c: Likewise.
20451 * c-lex.c: Likewise.
20452 * c-pragma.c: Likewise.
20453 * c-typeck.c: Likewise.
20454 * defaults.h: Likewise.
20455 * genconstants.c: Likewise.
20456 * gengtype-lex.l: Likewise.
20457 * genmodes.c: Likewise.
20458 * read-rtl.c: Likewise.
20459 * rtl.c: Likewise.
20460
20461 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20462
20463 * bitmap.c: Use type-safe memory allocation macros from libiberty.
20464 * c-common.c: Likewise.
20465 * c-decl.c: Likewise.
20466 * c-lang.c: Likewise.
20467 * c-lex.c: Likewise.
20468 * c-opts.c: Likewise.
20469 * c-parse.in: Likewise.
20470 * c-typeck.c: Likewise.
20471 * genconditions.c: Likewise.
20472 * gengtype-lex.l: Likewise.
20473 * gengtype-yacc.y: Likewise.
20474 * gengtype.c: Likewise.
20475 * genmodes.c: Likewise.
20476 * gensupport.c: Likewise.
20477 * read-rtl.c: Likewise.
20478 * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
20479 htab_find_slot().
20480
20481 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20482
20483 * c-decl.c (groktypename, groktypename_in_param_context): Rename
20484 variable typename to type_name.
20485 * c-lex.c (interpret_float): Likewise.
20486
20487 2004-07-25 Roger Sayle <roger@eyesopen.com>
20488
20489 * convert.c (convert_to_real, convert_to_integer,
20490 convert_to_complex): Replace calls to build with calls to buildN.
20491 * coverage.c (tree_coverage_counter_ref): Likewise.
20492 * dojump.c (do_jump): Likewise.
20493 * dwarf2out.c (loc_descriptor_from_tree): Likewise.
20494 * emit-rtl.c (component_ref_for_mem_expr,
20495 set_mem_attributes_minus_bitpos): Likewise.
20496 * explow.c (update_nonlocal_goto_save_area): Likewise.
20497 * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
20498 expand_mult_add): Likewise.
20499 * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
20500 store_constructor, get_inner_reference, expand_expr_real_1,
20501 try_casesi, try_tablejump): Likewise.
20502 * function.c (expand_function_start): Likewise.
20503 * stmt.c (emit_case_bit_tests, expand_end_case_type,
20504 node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
20505 * stor-layout.c (place_union_field, layout_type): Likewise.
20506 * tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
20507 * varasm.c (copy_constant): Likewise.
20508
20509 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20510
20511 * c-common.c: Rename all identifiers named `new'.
20512 * c-decl.c: Likewise.
20513 * gensupport.c: Likewise.
20514 * simplify-rtx.c: Likewise.
20515 * c-common.c (disable_builtin_function): Replace a call to xmalloc()
20516 with XNEW().
20517 * gensupport.c (alter_output_for_insn): Replace two calls to xmalloc()
20518 with XNEWVEC().
20519
20520 2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
20521
20522 PR c/15360
20523 * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
20524 declarations until after calling pushdecl.
20525 (grokdeclarator): Set DECL_EXTERNAL for variables based on use of
20526 "extern" and not on whether the declaration is initialized.
20527
20528 2004-07-25 Daniel Jacobowitz <dan@debian.org>
20529
20530 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
20531 (sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
20532 * config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
20533 "cpplib.h", "c-pragma.h", "c-common.h".
20534 (solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
20535 (solaris_register_pragmas): New functions.
20536 * config/sol2-protos.h: New file.
20537 * config/sol2.c: New file.
20538 * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
20539 (REGISTER_TARGET_PRAGMAS): New macros.
20540 (solaris_pending_aligns, solaris_pending_inits)
20541 (solaris_pending_finis): New variables.
20542 * config/t-sol2 (sol2-c.o): Update dependencies.
20543 (sol2.o): New rule.
20544 * config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
20545 SUBTARGET_INSERT_ATTRIBUTES.
20546 (ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
20547 * config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
20548 (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
20549 * config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
20550 * config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
20551 * config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
20552 (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
20553 * config/sparc/sparc.c (sparc_attribute_table): New.
20554 (TARGET_INSERT_ATTRIBUTES): Define in terms of
20555 SUBTARGET_INSERT_ATTRIBUTES.
20556 (TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
20557 is defined.
20558 * doc/extend.texi (Solaris Pragmas): New section.
20559
20560 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20561
20562 * c-common.c: Rename all identifiers named `class' to `cl'.
20563 * c-common.h: Likewise.
20564 * c-parse.in: Likewise.
20565 * c-typeck.c: Likewise.
20566 * genmodes.c: Likewise.
20567 * real.c: Likewise.
20568 * real.h: Likewise.
20569 * recog.c: Likewise.
20570 * recog.h: Likewise.
20571 * regrename.c: Likewise.
20572 * tree.h: Likewise.
20573 * c-common.c (builtin_function_2): Change type of 5th parameter from
20574 int to enum built_in_function. Change type of 8th parameter from int
20575 to bool.
20576 * c-decl (builtin_function): Replace call to ggc_alloc_cleared ()
20577 with GGC_CNEW().
20578 * c-typeck.c (convert_arguments): Change type of formal_prec from
20579 int to unsigned int.
20580 * genmodes.c (blank_mode): Make a few negative constants unsigned.
20581 (complete_all_modes, calc_wider_mode, emit_insn_modes_h,
20582 emit_mode_name, emit_mode_class, emit_mode_precision, emit_mode_size,
20583 emit_mode_nunits, emit_mode_wider, emit_mode_mask, emit_mode_inner,
20584 emit_mode_base_align, emit_class_narrowest_mode): Pass an integer
20585 iterator to for_all_modes () instead of an enum because enums can't
20586 be incremented in C++.
20587
20588
20589 2004-07-25 Daniel Jacobowitz <dan@debian.org>
20590
20591 * regmove.c (optimize_reg_copy_1): Don't try to replace call-used
20592 hard registers.
20593
20594 2004-07-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20595
20596 * tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
20597 Handle ARRAY_RANGE_REF like ARRAY_REF.
20598
20599 2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
20600
20601 * c-typeck.c (digest_init): Don't allow arrays of signed or
20602 unsigned variants of wchar_t to be initialized by wide string
20603 constants. Do allow arrays of enumerated types compatible with
20604 wchar_t to be initialized by wide string constants. Refine tests
20605 distinguishing wide and narrow strings and arrays. Give specific
20606 error for arrays of other integer types initialized by string
20607 constants.
20608 (output_init_element, process_init_element): Check for
20609 INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
20610 initializing with string constants.
20611
20612 2004-07-25 Richard Henderson <rth@redhat.com>
20613
20614 * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
20615 on the RESULT_DECL.
20616 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
20617 * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
20618 DECL_IGNORED_P to new decl.
20619
20620 2004-07-24 Zack Weinberg <zack@codesourcery.com>
20621
20622 * config/ia64/ia64.c (general_xfmode_operand)
20623 (destination_xfmode_operand): Delete.
20624 * config/ia64/ia64.h (PREDICATE_CODES): Remove them.
20625 * config/ia64/ia64.md (*movxf_internal): Use general_operand
20626 and destination_operand.
20627
20628 2004-07-24 Alexander Kabaev <kan@freebsd.org>
20629
20630 * config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
20631 (EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.
20632
20633 2004-07-24 Alexander Kabaev <kan@freebsd.org>
20634 Zack Weinberg <zack@codesourcery.com
20635
20636 PR 16684
20637 * c-decl.c (diagnose_mismatched_decls): Don't issue a
20638 redundant-declaration warning the first time a builtin is
20639 declared explicitly.
20640
20641 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20642
20643 * tree.h (staticp): Change return type to bool.
20644
20645 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20646
20647 * c-common.c (c_staticp): Last episode of the staticp saga.
20648
20649 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20650
20651 * c-common.h (c_staticp): Change return type from int to bool.
20652 * tree.c (staticp): Likewise.
20653 * langhooks.h (staticp): Likewise.
20654
20655 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20656
20657 * langhooks-def.h (lhd_staticp): Change return type from int to
20658 bool in prototype to match definition.
20659
20660 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20661
20662 * system.h (bool, true, false): Don't redefine as preprocessor macros
20663 in C++.
20664
20665 2004-07-24 Roger Sayle <roger@eyesopen.com>
20666
20667 * expmed.c (init_expmed): A signed modulus by a power of two is
20668 considered cheap if its less than or equal to four instructions.
20669
20670 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20671
20672 * ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
20673 GGC_CNEWVAR): New macros.
20674
20675 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20676
20677 * c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
20678 lists.
20679 * c-decl.c: Likewise.
20680 * c-format.c: Likewise.
20681 * c-lex.c: Likewise.
20682 * c-opts.c: Likewise.
20683 * c-pragma.c: Likewise.
20684 * c-typeck.c: Likewise.
20685 * gencheck.c: Likewise.
20686 * genconditions.c: Likewise.
20687 * genconfig.c: Likewise.
20688 * genflags.c: Likewise.
20689 * gengtype.c: Likewise.
20690 * gensupport.c: Likewise.
20691 * ggc-none.c: Likewise.
20692 * langhooks.c: Likewise.
20693 * statistics.h: Likewise.
20694 * stub-objc.c: Likewise.
20695 * java/decl.c: Likewise.
20696
20697 2004-07-24 Roman Zippel <zippel@linux-m68k.org>
20698
20699 * config/m68k/m68k.c (output_scc_di): Fix coding style.
20700 (symbolic_operand): Fix prototype.
20701 * config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
20702 * config/m68k/m68k.md: Add constants for registers a0 and sp and
20703 use them, change from the "{...}" syntax to the simpler {...}
20704 syntax.
20705 (*cfv4_extendqisi2): Fix destination predicate.
20706 * config/m68k/m68k-protos.h: Remove various declarations also
20707 generated via PREDICATE_CODES.
20708
20709 2004-07-23 Mike Stump <mrs@apple.com>
20710
20711 * c-typeck.c (convert_for_assignment): Tightened up pointer
20712 converstions that differ in signedness.
20713
20714 2004-07-23 Zack Weinberg <zack@codesourcery.com>
20715
20716 * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
20717
20718 2004-07-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20719
20720 * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
20721 * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
20722
20723 * gimplify.c (gimplify_compound_lval): Check for no handled
20724 operations, rather than checking for explicit list of nodes.
20725 (is_gimple_addr_expr_arg_or_indirect): New function.
20726 (gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
20727 redundant setting of TREE_INVARIANT.
20728 (gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
20729 * tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.
20730
20731 2004-07-23 Diego Novillo <dnovillo@redhat.com>
20732
20733 PR tree-optimization/16688
20734 PR tree-optimization/16689
20735 * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
20736 unnecessary initialization of 'tag'.
20737 (get_tmt_for): Check that the new type tag has the same alias
20738 set as the pointed-to type.
20739 (group_aliases): Only regular variables need to be removed
20740 from the alias set of a name tag.
20741 * tree-ssa-copy.c (may_propagate_copy): Do not allow copy
20742 propagation if the two types are not compatible.
20743 (merge_alias_info): Rename from replace_ssa_names_ann.
20744 Add more checking.
20745 (replace_exp_1): If both arguments are SSA_NAMEs, check that
20746 the propagation can be done.
20747 Only call merge_alias_info on pointers.
20748 (propagate_value): Likewise.
20749 * tree-ssa-copyrename.c: Include langhooks.h.
20750 (copy_rename_partition_coalesce): Call replace_ssa_name_symbol
20751 to do the merging.
20752 Do not coalesce variables with incompatible types.
20753 (rename_ssa_copies): Call replace_ssa_name_symbol.
20754 * tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
20755 the same type as the underlying _DECL.
20756 * tree-ssanames.c (replace_ssa_name_symbol): New function.
20757 * tree.h (replace_ssa_name_symbol): Declare.
20758
20759 2004-07-23 Richard Henderson <rth@redhat.com>
20760
20761 PR c++/16277
20762 * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
20763 unshare it properly.
20764 (gimplify_modify_expr_rhs): Push assignment from a conditional into
20765 the conditional for all non-register types.
20766
20767 2004-07-23 Richard Henderson <rth@redhat.com>
20768
20769 * expr.c (expand_expr_real_1): Don't handle non-local variables.
20770 * expr.h (fix_lexical_addr): Remove.
20771 * function.c (NEED_SEPARATE_AP): Remove.
20772 (fix_lexical_addr): Remove.
20773 * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
20774 not null decl_function_context.
20775 (create_alias_vars): Likewise.
20776 * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
20777 (simple_goto_p): Likewise.
20778 * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
20779 * tree-ssa-ccp.c (get_default_value): Likewise.
20780 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
20781 * tree.c (needs_to_live_in_memory): Likewise.
20782 * tree-flow-inline.h (may_be_aliased): Move...
20783 * tree-ssa-alias.c (may_be_aliased): ... here. Enhance check for
20784 when TREE_STATIC variables may be addressable.
20785
20786 2004-07-24 Jakub Jelinek <jakub@redhat.com>
20787
20788 * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
20789
20790 2004-07-23 Zack Weinberg <zack@codesourcery.com>
20791
20792 * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
20793 bitmap contents if GENERATOR_FILE is defined.
20794 * Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
20795 ($(BUILD_PREFIX_1)bitmap.o): Delete rule.
20796
20797 2004-07-23 Joseph S. Myers <jsm@polyomino.org.uk>
20798
20799 * c-decl.c (start_function): Form composite type of function types
20800 rather than copying type from previous prototype declaration.
20801
20802 2004-07-23 Janis Johnson <janis187@us.ibm.com>
20803
20804 * config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
20805 the const qualifier for the second argument in the C++ functions.
20806
20807 * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
20808 specific pointer types.
20809
20810 * config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
20811 vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
20812 for vector bool and/or vector pixel, add C++ and C missing support.
20813 (vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
20814 vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
20815 vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
20816 vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
20817 vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
20818 missing C++ and C support for vector bool and/or vector pixel.
20819 (vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
20820 vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
20821 vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
20822 vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
20823 vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
20824 C++ and C types used for vector bool and/or vector pixel.
20825 (vec_st, vec_stl): Add C++ support for vector pixel.
20826 (vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
20827 (vec_all_ne): Add C++ support for vector pixel.
20828
20829 * config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
20830 (vec_vmulesb): Add missing C++ function.
20831 (vec_perm): Fix type of third argument in C++ function.
20832 (vec_vsum4shs): Fix C++ function name.
20833 (vec_any_ge): Remove C++ functions for unsupported arg combinations.
20834 (vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
20835 argument passed to the error handler in C macro.
20836 (vec_nmsub): Remove extra parens around argument names in C macro.
20837 (vec_packpx): Add missing parens in C macro.
20838
20839 2004-07-22 Paolo Bonzini <bonzini@gnu.org>
20840
20841 * machmode.def: Remove vector modes.
20842 * config/alpha/alpha-modes.def: Add supported vector modes.
20843 * config/arm/arm-modes.def: Likewise.
20844 * config/frv/frv-modes.def: Likewise.
20845 * config/i386/i386-modes.def: Likewise.
20846 * config/rs6000/rs6000-modes.def: Likewise.
20847 * config/sh/sh-modes.def: Likewise.
20848
20849 2004-07-23 Matthias Klose <doko@debian.org>
20850
20851 * intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
20852 * configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
20853 * config.h: Regenerate.
20854 * configure: Likewise.
20855
20856 2004-07-22 Mark Mitchell <mark@codesourcery.com>
20857
20858 * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
20859 generated SYMBOL_REFs for labels.
20860 * config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
20861 Change prototype.
20862 (machopic_stub_name): Remove.
20863 (machopic_indirection_name): New function.
20864 (machopic_mcount_stub_name): Likewise.
20865 (machopic_classify_name): Remove.
20866 (machopic_function_base_sym): New function.
20867 (machpoic_classify_symbol): Likewise.
20868 (machopic_classify_ident): Remove.
20869 (machopic_define_ident): Likewise.
20870 (machopic_define_name): Likewise.
20871 (machopic_name_defined_p): Likewise.
20872 (machopic_ident_defined_p): Likewise.
20873 (darwin_strip_name_encoding): Likewise.
20874 (machopic_define_symbol): New function.
20875 * config/darwin.c (hashtab.h): Include.
20876 (machopic_defined_list): Remove.
20877 (machopic_classify_ident): Likewise.
20878 (machopic_classify_name): Likewise.
20879 (machopic_ident_defined_p): Likewise.
20880 (machopic_define_ident): Likewise.
20881 (machopic_define_name): Likewise.
20882 (machopic_symbol_defined_p): New function.
20883 (machopic_classify_symbol): Likewise.
20884 (machopic_data_defined_p): Use machopic_classify_symbol.
20885 (machopic_define_symbol): New function.
20886 (machopic_function_base_sym): New function.
20887 (machopic_non_lazy_pointers): Remove.
20888 (machopic_non_lazy_ptr_name): Likewise.
20889 (machopic_stubs): Likewise.
20890 (machopic_stub_name): Likewise.
20891 (NON_LAZY_POINTER_SUFFIX): New macro.
20892 (STUB_SUFFIX): Likewise.
20893 (machopic_indirection): New structure.
20894 (machopic_indirections): New variable.
20895 (machopic_indirection_hash): New function.
20896 (machopic_indirection_eq): Likewise.
20897 (machopic_indirection_name): Likewise.
20898 (machopic_mcount_stub_name): New function.
20899 (machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
20900 hash table.
20901 (machopic_indirect_data_reference): Rework to use new functions.
20902 (machopic_indirect_call_target): Likewise.
20903 (machopic_legitimize_pic_address): Likewise.
20904 (machopic_output_indirection): New function.
20905 (machopic_finish): Use it.
20906 (machopic_operand_p): Rework to use new functions.
20907 (darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
20908 (darwin_strip_name_encoding): Remove.
20909 (update_non_lazy_ptrs): Remove.
20910 (update_stubs): Likewise.
20911 (darwin_non_lazy_pcrel): Use new functions.
20912 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
20913 (ASM_OUTPUT_LABELREF): Likewise.
20914 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
20915 (MACHO_SYMBOL_FLAG_VARIABLE): New macro.
20916 (MACHO_SYMBOL_FLAG_DEFINED): Likewise.
20917 (TARGET_STRIP_NAME_ENCODING): Do not use
20918 darwin_strip_name_encoding.
20919 (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
20920 darwin_strip_name_encoding.
20921 * config/i386/darwin.h (FUNCTION_PROFILER): Use
20922 machopic_mcount_stub_name.
20923 * config/i386/i386.c (x86_output_mi_thunk): Use
20924 machopic_indirection_name, not machopic_stub_name.
20925 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
20926 machopic_function_base_sym.
20927 (print_operand): Use machopic_classify_symbol.
20928 (rs6000_emit_prologue): Use machopic_function_base_sym.
20929 (output_profile_hook): Do not use machopic_stub_name.
20930 (macho_branch_isalnds): Do not use darwin_strip_name_encoding.
20931
20932 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
20933
20934 PR c/7284
20935 * fold-const.c (extract_muldiv_1): Do not treat signed left shift
20936 as multiplication.
20937
20938 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
20939
20940 * doc/implement-c.texi: New file.
20941 * doc/extend.texi (C Implementation): Move to there.
20942 * doc/gcc.texi: Include implement-c.texi.
20943 * Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.
20944
20945 2004-07-22 Jason Merrill <jason@redhat.com>
20946
20947 * integrate.c (copy_decl_for_inlining): Remove invisible reference
20948 handling.
20949 * tree-inline.c (setup_one_parameter): Likewise.
20950
20951 2004-07-22 Brian Booth <bbooth@redhat.com>
20952
20953 * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
20954 (substitute_and_fold): Propigate into VUSE operands when possible.
20955 (visit_phi_node): Handle UNKNOWN_VAL latticevalue.
20956 (cp_lattice_meet): Handle merging of latticevalues when
20957 UNKNOWN_VAL is present.
20958 (visit_stmt): Visit assignments with V_MUST_DEFs.
20959 (visit_assignment): Gather ccp information for V_MUST_DEF operands.
20960 (ccp_fold): Deal with RHS' that are constant and virtual.
20961 (evaluate_stmt): Handle UNKNOWN_VAL likely values.
20962 (dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
20963 (initialize): Mark statements with V_MUST_DEFs as VARYING only if the
20964 V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
20965 computing immediate uses.
20966 (set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
20967 transition.
20968 (replace_vuse_in): New function.
20969 (likely_value): Add check of vuse operands.
20970 (get_default_value): Set the default value of virtually defined
20971 variables to UKNOWN_VAL instead of VARYING.
20972
20973 2004-07-22 Richard Henderson <rth@redhat.com>
20974
20975 * expr.c (emit_push_insn): Don't use set_mem_attributes.
20976
20977 2004-07-22 Richard Henderson <rth@redhat.com>
20978
20979 * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
20980 variables due to conditional compilation.
20981
20982 2004-07-22 Diego Novillo <dnovillo@redhat.com>
20983
20984 * tree-into-ssa.c (set_livein_block): Fix typo in comment.
20985 (rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
20986 Release SSA names that have been re-renamed.
20987 * tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
20988 variable.
20989 * tree-ssa-alias.c (init_alias_info): If aliases have been
20990 computed before, clear existing alias information.
20991 (create_name_tags): Do no fixup PT_ANYTHING pointers.
20992 If the new name tag for a pointer is different than the one it
20993 had before, mark the old tag for renaming.
20994 (replace_may_alias): New function.
20995 (group_aliases): Call it.
20996 (setup_pointers_and_addressables): Always call get_tmt_for.
20997 (maybe_create_global_var): Don't create .GLOBAL_VAR more than
20998 once.
20999 (set_pt_anything): New local function.
21000 (set_pt_malloc): New local function.
21001 (merge_pointed_to_info): Don't merge pointed-to variables from
21002 the original pointer if the destination is pointing to an
21003 unknown location.
21004 (add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
21005 (add_pointed_to_var): Do not add a variable to the points-to
21006 set if the pointer is already pointing to anywhere.
21007 (collect_points_to_info_r): If the defining statement is a PHI
21008 node, only merge pointed-to information if the argument has
21009 already been visited.
21010 (get_tmt_for): Only create a new tag if the pointer didn't
21011 have one already.
21012 (dump_alias_info): Emit more information.
21013 (dump_points_to_info_for): Likewise.
21014 * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
21015 try to get the annotation of an SSA_NAME.
21016 * tree-ssa-operands.c (add_stmt_operand): Only check for empty
21017 alias sets when checking is enabled.
21018 * tree-ssa-pre.c (need_eh_cleanup): New local variable.
21019 (eliminate): Mark basic blocks that will need
21020 EH information cleaned up.
21021 (init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
21022 predecessor.
21023 Initialize need_eh_cleanup.
21024 (fini_pre): Call tree_purge_all_dead_eh_edges and
21025 cleanup_tree_cfg if needed.
21026 Free need_eh_cleanup.
21027 * tree-ssa.c (verify_ssa_name): New function.
21028 (verify_def): Call it.
21029 Re-arrange to avoid printing too many error messages.
21030 (verify_use): Likewise.
21031 (verify_phi_args): Likewise.
21032 (verify_flow_insensitive_alias_info): New function.
21033 (verify_flow_sensitive_alias_info): New function.
21034 (verify_alias_info): New function.
21035 (verify_ssa): Call verify_alias_info.
21036 Clear TREE_VISITED on all the SSA_NAMEs before scanning the
21037 program.
21038 Re-arrange to avoid printing too many error messages.
21039 * tree-ssanames.c (make_ssa_name): Clear
21040 SSA_NAME_IN_FREE_LIST.
21041 (release_ssa_name): Never release a default definition.
21042 (release_defs): New function.
21043 * tree.h: Declare it.
21044 * tree-ssa-dce.c (remove_dead_stmt): Call it.
21045
21046 2004-07-22 Diego Novillo <dnovillo@redhat.com>
21047
21048 * tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
21049 If true, do a depth-first search. Do a breadht-first search,
21050 otherwise.
21051 (walk_use_def_chains): Add new argument IS_DFS.
21052 Update all users.
21053 * tree-flow.h (walk_use_def_chains): Update prototype.
21054
21055 2004-07-22 Hans-Peter Nilsson <hp@axis.com>
21056
21057 * config/cris/cris.md: Tweak formatting.
21058 (asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
21059 (mover2side, moverside, movemside, movei, op3, andu): Replace
21060 live define_peephole:s with define_peephole2 near-equivalents.
21061 Delete the rest.
21062 ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap". Match all
21063 word-size modes.
21064 ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
21065 Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
21066 "*mov_sidesi_mem" respectively.
21067
21068 2004-07-22 Paolo Bonzini <bonzini@gnu.org>
21069
21070 * tree-cfg.c (gimplify_val): Move from tree-complex.c.
21071 (gimplify_build1): Move from tree-complex.c do_unop.
21072 (gimplify_build2): Move from tree-complex.c do_binop.
21073 (gimplify_build3): New.
21074 * tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
21075 Adjust throughout to call the functions above.
21076 * tree-flow.h: Declare the functions above.
21077 * tree-nested.c (gimplify_val): Rename to...
21078 (tsi_gimplify_val): ... this.
21079
21080 * Makefile.in (tree_complex.o): Update dependencies.
21081 (stor-layout.o): Depend on regs.h.
21082 * c-common.c (handle_vector_size_attribute): Update for
21083 vector types without corresponding vector modes.
21084 * expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
21085 a corresponding vector mode is not available.
21086 * print-tree.c (print_node): Print nunits for vector types
21087 * regclass.c (have_regs_of_mode): New.
21088 (init_reg_sets_1): Initialize it and use it instead
21089 of allocatable_regs_of_mode.
21090 * regs.h (have_regs_of_mode): Declare it.
21091 * stor-layout.c (layout_type): Pick a mode for vector types.
21092 * tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
21093 build_replicated_const, do_unop, do_binop, do_plus_minus,
21094 do_negate, expand_vector_piecewise, expand_vector_parallel,
21095 expand_vector_addition, expand_vector_operations_1,
21096 expand_vector_operations, tree_lower_operations,
21097 pass_lower_vector_ssa, pass_pre_expand): New.
21098 (expand_complex_operations, pass_lower_complex): Remove.
21099 * tree-optimize.c (init_tree_optimization_passes): Adjust
21100 pass ordering for changes in tree-complex.c.
21101 * tree-pass.h: Declare new passes.
21102 * tree.c (finish_vector_type): Remove.
21103 (make_vector_type): New.
21104 (build_vector_type_for_mode, build_vector_type): Rewritten.
21105 * tree.def (VECTOR_TYPE): Document where the number of
21106 subparts is stored.
21107 * tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
21108 (make_vector): Remove declaration.
21109
21110 2004-07-21 Richard Henderson <rth@redhat.com>
21111
21112 * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
21113 TREE_THIS_VOLATILE, may_aliases, or optimization level.
21114 (remove_useless_vars): Dump debugging info.
21115 (expand_used_vars): Move ...
21116 * cfgexpand.c (expand_used_vars): ... here. Make static.
21117 * tree-flow-inline.h (set_is_used): New.
21118 (set_default_def): Use get_var_ann.
21119 * tree-flow.h: Update decls.
21120 * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
21121 (create_ssa_var_map): Use it.
21122 * tree-ssa.c (set_is_used): Remove.
21123
21124 2004-07-22 Ben Elliston <bje@au.ibm.com>
21125
21126 * gdbinit.in: Set a breakpoint on internal_error.
21127
21128 2004-07-21 Richard Henderson <rth@redhat.com>
21129
21130 * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
21131 to create a new basic block.
21132
21133 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
21134
21135 PR c/15052
21136 * c-decl.c (grokdeclarator): Only pedwarn for qualified void
21137 return type on function definitions. Move other warnings for
21138 qualified return type to -Wreturn-type. Do not condition any such
21139 warnings on -pedantic. Update comments.
21140 (start_function): Only copy function type from previous prototype
21141 declaration if return types are compatible.
21142 * c-typeck.c (function_types_compatible_p): Don't condition
21143 warning for incompatibility of volatile qualifiers on the return
21144 type on -pedantic. Update comment.
21145 * doc/invoke.texi (-Wreturn-type, -Wextra): Update.
21146
21147 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
21148
21149 * c-typeck.c (set_init_index): Require designator to be of integer
21150 type.
21151
21152 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
21153
21154 PR c/11250
21155 * c-parse.in (init): Change to exprtype.
21156 (primary): Set original_code for STRING to STRING_CST.
21157 Call maybe_warn_string_init for compound literals.
21158 (initdcl, notype_initdcl): Call maybe_warn_string_init.
21159 (initval): Update.
21160 * c-tree.h (maybe_warn_string_init): New.
21161 (pop_init_level, process_init_element): Use struct c_expr.
21162 (struct c_expr): Update comment.
21163 * c-typeck.c (maybe_warn_string_init): New function.
21164 (digest_init): Call it. Additional parameter strict_string. All
21165 callers changed.
21166 (output_init_element): Likewise.
21167 (struct constructor_stack): Use struct c_expr for
21168 replacement_value.
21169 (really_start_incremental_init, push_init_level): Update.
21170 (pop_init_level): Update. Return struct c_expr.
21171 (process_init_level): Update. Take struct c_expr argument.
21172
21173 2004-07-21 David S. Miller <davem@nuts.davemloft.net>
21174
21175 * config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
21176 commit.
21177
21178 2004-07-21 Eric Christopher <echristo@redhat.com>
21179
21180 * builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
21181 removal.
21182 * c-decl.c (pop_scope): Ditto.
21183 * calls.c (expand_call): Remove call to current_nesting_level,
21184 update comment accordingly. Remove calls to expand_start_target_temps
21185 and expand_end_target_temps.
21186 * cfgexpand.c (construct_init_block): Remove call to
21187 expand_start_bindings_and_block.
21188 (construct_exit_block): Remove call to expand_end_bindings.
21189 * expr.c (safe_from_p): Remove BIND_EXPR handling.
21190 (expand_expr_real_1): Ditto. Fix formatting.
21191 (expand_vars): Delete.
21192 * stmt.c (POPSTACK): Remove block_stack.
21193 (stmt_status): Remove x_block_stack.
21194 (block_stack): Delete.
21195 (expand_start_bindings_and_block): Ditto.
21196 (expand_start_target_temps): Ditto.
21197 (expand_end_target_temps): Ditto.
21198 (current_nesting_level): Ditto.
21199 (warn_about_unused_variables): Ditto.
21200 (expand_end_bindings): Ditto.
21201 * tree.h: Remove declarations for above.
21202
21203 2004-07-21 Steven Bosscher <stevenb@suse.de>
21204
21205 * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
21206 * rtl.c (note_insn_name): Likewise.
21207 * print-rtl.c (print_rtx): Don't print it.
21208 * cfgrtl.h (can_delete_note_p): Don't handle it.
21209 (rtl_delete_block): Likewise.
21210 * passes.c (rest_of_handle_guess_branch_prob): Remove.
21211 (rest_of_compilation): Don't call it.
21212 * predict.c (process_note_predictions, process_note_prediction,
21213 note_prediction_to_br_prob): Remove.
21214 * basic-block.c (note_prediction_to_br_prob): Remove prototype.
21215 * stmt.c (return_prediction): Remove.
21216 (expand_value_return): Don't call it. Don't add prediction
21217 notes for return statements.
21218
21219 2004-07-21 Josef Zlomek <zlomekj@suse.cz>
21220
21221 * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
21222 once.
21223
21224 2004-07-21 Paolo Bonzini <bonzini@gnu.org>
21225
21226 * c-common.c (vector_types_convertible_p): Use vector types'
21227 TYPE_SIZE and TREE_TYPE instead of their mode.
21228 * convert.c (convert_to_integer): Likewise.
21229 (convert_to_vector): Likewise.
21230 * fold-const.c (fold_convert): Likewise.
21231 * varasm.c (output_constant): Likewise.
21232 * expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
21233 Allow a VECTOR_TYPE initializer to be made of several vectors.
21234 For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
21235 of cleared and need_to_clear, and use fold_convert.
21236 * c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
21237 integer vectors.
21238
21239 2004-07-20 Richard Henderson <rth@redhat.com>
21240
21241 * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
21242 (expand_gimple_basic_block): out from here. Renamed from expand_block.
21243
21244 2004-07-20 David S. Miller <davem@nuts.davemloft.net>
21245
21246 * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
21247 enormous cost if not TARGET_HARD_MUL.
21248
21249 2004-07-20 Andrew Pinski <apinski@apple.com>
21250
21251 PR target/16557
21252 * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
21253 (ASM_SPEC): here.
21254
21255 2004-07-21 Paul brook <paul@codesourcery.com>
21256
21257 * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
21258
21259 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21260
21261 * fold-const.c (operand_equal_p): Temporarily support NULL args.
21262 (operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
21263 (operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.
21264
21265 2004-07-20 Zack Weinberg <zack@codesourcery.com>
21266
21267 * rtl.h (plus_constant): Delete.
21268 (plus_constant_wide): Rename to plus_constant.
21269 (plus_constant_for_output_wide): Delete vestigial prototype.
21270 (GEN_INT): Remove unnecessary cast.
21271 * tree.h (build_int_2, size_int_type): Delete.
21272 (build_int_2_wide): Rename to build_int_2.
21273 (size_int_wide): Rename to size_int_kind.
21274 (size_int_type_wide): Rename to size_int_type.
21275 (size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
21276 Remove unnecessary cast.
21277 * tree.c (build_int_2_wide): Rename build_int_2; update comment.
21278 * explow.c (plus_constant_wide): Rename plus_constant; update comment.
21279 * fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
21280 (size_int_type_wide): Rename size_int_type.
21281 (int_const_binop): Use size_int_type.
21282 * c-lex.c (interpret_integer): Use build_int_2.
21283 * final.c (split_double): Remove unnecessary casts.
21284 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.
21285
21286 2004-07-20 Richard Henderson <rth@redhat.com>
21287
21288 * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
21289 (gimplify_compound_lval): Use is_gimple_tmp_reg.
21290 * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
21291 (is_gimple_tmp_reg): New.
21292 * tree-gimple.h (is_gimple_tmp_reg): Declare.
21293
21294 2004-07-20 Richard Henderson <rth@redhat.com>
21295
21296 * tree-pretty-print.c (dump_generic_node): Dump
21297 CALL_EXPR_HAS_RETURN_SLOT_ADDR.
21298
21299 2004-07-20 Frank Ch. Eigler <fche@redhat.com>
21300
21301 * tree-mudflap.c (mf_set_options_fndecl): New tree.
21302 (mudflap_init): Set it.
21303 (mudflap_register_call): Remove __mf_init call.
21304 (mudflap_finish_file): Emit call to __mf_init here. Emit a call to
21305 to pass "-ignore-reads" option to libmudflap if needed.
21306
21307 2004-07-20 John David Anglin <dava.anglin@nrc-cnrc.gc.ca>
21308
21309 PR c++/14607
21310 * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
21311 (MAKE_DECL_ONE_ONLY): Undefine.
21312 * pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
21313 readonly_data, one_only_data_section, forget_section): New prototypes.
21314 * pa.c (pa_init_machine_status, som_text_section_asm_op): New
21315 functions.
21316 (pa_select_section): Add one-only (COMDAT) support.
21317 * pa.h (struct machine_function): Define.
21318 * som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
21319 (TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
21320 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
21321 ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
21322 ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
21323 (EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
21324 (EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
21325 (READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
21326 ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
21327 for EXTRA_SECTION_FUNCTIONS.
21328 * doc/install.texi: Update binutils requirements.
21329
21330 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
21331
21332 * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
21333 VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
21334 VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
21335 size_t.
21336 (struct VEC): Use unsigned for num and alloc.
21337 * vec.c (struct vec_prefix): Likewise.
21338 (vec_o_reserve): Adjust.
21339
21340 * dbxout.c (dbxout_type): Fix printf format.
21341
21342 * tree.h (binfo_member): Remove.
21343 * tree.c (binfo_member): Remove.
21344
21345 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
21346
21347 * tree.h: Include vec.h
21348 (DEF_VEC_P(tree)): New type.
21349 (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): Adjust.
21350 (BINFO_BASE_APPEND, BINFO_BASE_ITERATE): New.
21351 (BINFO_LANG_SLOT): Remove.
21352 (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): New.
21353 (struct tree_binfo): Turn base_binfos into a trailing
21354 VEC(tree). Add vtt_subvtt, vtt_vptr, primary fields.
21355 (binfo_lang_slots): Remove.
21356 * tree.c (binfo_lang_slots): Remove.
21357 (make_tree_binfo_stat): Take a base binfo count, not a
21358 lang slot count. Adjust.
21359 * Makefile.in (TREE_H): Add vec.h
21360 * alias.c (record_component_aliases): Adjust BINFO access.
21361 * dbxout.c (dbxout_type): Likewise.
21362 * dwarf2out.c (gen_member_die): Likewise.
21363 * sdbout.c (sdbout_one_type): Likewise.
21364 * tree-dump.c (deque_and_dump): Likewise.
21365 * config/i386/i386.c (classify_argument,
21366 contains_128bit_aligned_vector_p): Likewise.
21367 * config/sh/symbian.c (symbian_export_vtable_and_rtti_p): Likewise.
21368 * doc/c-tree.texi (Classes): Update BINFO documentation.
21369
21370 2004-07-20 Steven Bosscher <stevenb@suse.de>
21371
21372 * c-common.h (check_case_value): Remove prototype.
21373 (c_add_case_label): Adjust prototype.
21374 * c-common.c (check_case_value): Make static.
21375 (check_case_bounds): New function.
21376 (c_add_case_label): Use it. Take new argument orig_type.
21377 * c-typeck.c (struct c_switch): New orig_type field.
21378 (c_start_case): Set it.
21379 (do_case): Pass it to c_add_case_label.
21380 * expr.c (expand_expr_real_1): Don't warn for out-of-bounds
21381 cases from here. Add the labels in reverse order.
21382 * stmt.c (struct case_node): Adjust comment. Remove balance field.
21383 (add_case_node): Return nothing, don't check for duplicate cases.
21384 Insert new case nodes in a list, not in an AVL tree.
21385 (expand_end_case_type): Don't turn a case tree into a case list.
21386 (case_tree2list): Remove.
21387 * tree.h (add_case_node): Adjust prototype.
21388
21389 2004-07-19 Paolo Bonzini <bonzini@gnu.org>
21390
21391 * genattr.c (struct range, struct function_unit,
21392 write_units, extend_range, init_range): Remove them.
21393 (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
21394 Output "#define INSN_SCHEDULING" here.
21395 * genattrtab.c (struct range, struct function_unit_op,
21396 struct function_unit, struct dimension, enum operator,
21397 operate_exp, expand_units, simplify_knowing,
21398 encode_units_mask, simplify_by_exploding,
21399 find_and_mark_used_attributes, unmark_used_attributes,
21400 add_values_to_cover, increment_current_value,
21401 test_for_current_value, simplify_with_current_value,
21402 simplify_with_current_value_aux, gen_unit,
21403 write_unit_name, write_function_unit_info,
21404 write_complex_function, write_toplevel_expr,
21405 find_single_value, extend_range): Remove.
21406 (write_attr_get): Do not handle common_av->value
21407 being an FFS.
21408 (struct attr_desc): Remove func_units_p and blockage_p.
21409 (write_attr_valueq): Do not handle them.
21410 (find_attr): Do not clear them.
21411 (make_internal_attr): Do not initialize them.
21412 (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
21413 * sched-vis.c (init_target_units, insn_print_units,
21414 init_block_visualization, print_block_visualization,
21415 visualize_scheduled_insns, visualize_no_unit,
21416 visualize_stall_cycles, visualize_alloc,
21417 visualize_free, target_units, get_visual_tbl_length,
21418 MAX_VISUAL_LINES, INSN_LEN, n_visual_lines,
21419 visual_tbl_line_length, visual_tbl, n_vis_no_unit,
21420 MAX_VISUAL_NO_UNIT, vis_no_unit): Remove.
21421 * haifa-sched.c (blockage_range, clear_units,
21422 schedule_unit, actual_hazard, potential_hazard,
21423 insn_unit, unit_last_insn, unit_tick,
21424 actual_hazard_this_instance, potential_hazard,
21425 schedule_unit, max_insn_queue_index_value): Remove.
21426 (MAX_INSN_QUEUE_INDEX): Removed, renamed throughout to
21427 max_insn_queue_index.
21428 * rtl.def (DEFINE_FUNCTION_UNIT): Remove.
21429 * doc/md.texi (Processor pipeline description): Remove
21430 references to old pipeline descriptions.
21431 (Automaton pipeline description): Merge with the above.
21432 (Old pipeline description, Comparison of the two descriptions):
21433 Remove.
21434
21435 * bt-load.c (migrate_btr_def): Remove references to
21436 use_pipeline_interface.
21437 * haifa-sched.c (insn_cost, schedule_insn,
21438 schedule_block, advance_one_cycle, sched_init,
21439 queue_to_ready, sched_finish): Likewise.
21440 * modulo-sched.c (sms_schedule, advance_one_cycle,
21441 ps_has_conflicts): Likewise.
21442 * sched-rgn.c (init_ready): Likewise.
21443 (debug_dependencies): Likewise, and remove an "if (1)".
21444 * target.h (use_dfa_pipeline_interface): Remove.
21445 * config/alpha/alpha.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21446 * config/arc/arc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21447 * config/arm/arm.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21448 * config/c4x/c4x.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21449 * config/frv/frv.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21450 * config/i386/i386.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21451 * config/ia64/ia64.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21452 * config/iq2000/iq2000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21453 * config/m32r/m32r.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21454 * config/mcore/mcore.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21455 * config/mips/mips.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21456 * config/pa/pa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21457 * config/rs6000/rs6000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21458 * config/s390/s390.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21459 * config/sh/sh.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21460 * config/sparc/sparc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21461 * config/v850/v850.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21462 * config/xtensa/xtensa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21463 * doc/tm.texi (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21464
21465 2004-07-19 Roger Sayle <roger@eyesopen.com>
21466
21467 * rtlanal.c (reg_set_p): Add check for regs_invalidated_by_call.
21468
21469 2004-07-19 Jeff Law <law@redhat.com>
21470
21471 * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): New.
21472 (get_eq_expr_value): Use it. Simplify slightly.
21473
21474 2004-07-19 Maciej W. Rozycki <macro@linux-mips.org>
21475
21476 * config/mips/mips.md (mulsidi3_32bit_r4000): Fix the clobber list.
21477 (umulsidi3_32bit_r4000): Likewise.
21478
21479 2004-07-19 Nathan Sidwell <nathan@codesourcery.com>
21480
21481 * vec.h: Propagate location information properly.
21482 (VEC_T_iterate): Add result pointer parameter.
21483 (VEC_T_space): New.
21484 (VEC_T_reserve): Use it.
21485
21486 2004-07-19 Daniel Jacobowitz <dan@debian.org>
21487
21488 * Makefile.in (c-format.o): Depend on c-format.h.
21489 * c-format.h: New file.
21490 (struct format_char_info): Add CHAIN member.
21491 * c-format.c: Move some types and constants to c-format.h.
21492 (format_type_error): Set to -1.
21493 (struct function_format_info): Use an int for format_type.
21494 (decode_format_type): Return an int. Return format_type_error
21495 on error.
21496 (print_char_table, asm_fprintf_char_table, gcc_diag_char_table)
21497 (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table)
21498 (scan_char_table, time_char_table, monetary_char_table): Initialize
21499 CHAIN to NULL.
21500 (n_format_types): New variable.
21501 (check_format_info_main): Handle CHAIN in format_char_info.
21502 (handle_format_attribute): Handle TARGET_FORMAT_TYPES and
21503 TARGET_N_FORMAT_TYPES.
21504 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
21505 (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c.
21506 * config/sol2-c.c: New file.
21507 * config/t-sol2: New file.
21508 * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define.
21509 * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine
21510 TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES.
21511
21512 * doc/extend.texi (Target Format Checks): New section.
21513 (Function Attributes): Mention it.
21514 * doc/invoke.texi: Mention target format checks.
21515 * doc/sourcebuild.texi: Mention target format checks.
21516 * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and
21517 TARGET_FORMAT_TYPES.
21518
21519 2004-07-19 Andreas Krebbel <krebbel1@de.ibm.com>
21520
21521 * config/s390/s390-protos.h (s390_return_address_offset): Prototype
21522 added.
21523 * config/s390/s390.c (regclass_map initializer): Register 35 added to
21524 ADDR_REGS.
21525 (load_multiple_operation, store_multiple_operation): Removed
21526 pointless sanity check.
21527 (s390_decompose_address): Added check for return_address_pointer_rtx.
21528 (s390_return_addr_rtx): Use return_address_pointer_rtx for count == 0.
21529 (s390_return_address_offset): New function.
21530 * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Increased to 36.
21531 (FRAME_REGNO_P): Added check for register 35.
21532 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
21533 REG_ALLOC_ORDER): Appended entry for register 35.
21534 (REG_CLASS_CONTENTS): Adjusted class masks for register 35.
21535 (EH_RETURN_HANDLER_RTX): Use return_address_pointer_rtx.
21536 (RETURN_ADDRESS_POINTER_REGNUM): New macro.
21537 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Return address pointer
21538 is eliminable using stack pointer or hard frame pointer.
21539 (REGISTER_NAMES): Added name for register 35.
21540 * config/s390/s390.md ("load_multiple", "store_multiple"): Removed
21541 pointless sanity check.
21542
21543 2004-07-19 Roger Sayle <roger@eyesopen.com>
21544
21545 * fold-const.c (tree_expr_nonzero_p): Add function prototype.
21546 (fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
21547 fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
21548 (fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
21549 of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
21550 (fold_relational_const): Tidy up handling of floating point
21551 comparisons by calling real_compare. Remove tree_expr_nonzero_p
21552 transformation; fold_relational_const assumes constant operands.
21553
21554 2004-07-19 Gabriel Dos Reis <gdr@integrable-solution.net>
21555
21556 * doc/sourcebuild.texi: Add libcpp, now that CPP has its own
21557 directory.
21558
21559 2004-07-19 Joseph S. Myers <jsm@polyomino.org.uk>
21560
21561 * c-tree.h (struct c_expr): Define.
21562 (C_SET_EXP_ORIGINAL_CODE): Remove.
21563 (parser_build_binary_op, build_compound_expr): Update prototypes.
21564 * c-parse.in (%union): Add exprtype.
21565 (FUNC_NAME): Mark as ttype.
21566 (expr, expr_no_commas, cast_expr, unary_expr, primary): Change to
21567 exprtype.
21568 (expr): Update. Define directly in terms of expr_no_commas
21569 instead of using nonnull_exprlist.
21570 (nonnull_exprlist, unary_expr, cast_expr, expr_no_commas, primary,
21571 offsetof_member_designator, typespec_nonreserved_nonattr, init,
21572 initval, designator, component_declarator,
21573 component_notype_declarator, enumerator, array_declarator,
21574 condition, exexpr, switch_statement, stmt_nocomp, stmt,
21575 nonnull_asm_operands, ivar_declarator, receiver): Update. Don't
21576 set C_EXP_ORIGINAL_CODE. Use TREE_NO_WARNING for assignments
21577 where appropriate.
21578 * c-common.h (C_EXP_ORIGINAL_CODE): Remove.
21579 * c-common.c (c_common_truthvalue_conversion): Don't check
21580 C_EXP_ORIGINAL_CODE.
21581 * c-typeck.c (parser_build_binary_op): Use c_expr structures.
21582 Don't use C_EXP_ORIGINAL_CODE.
21583 (default_conversion, default_function_array_conversion): Don't use
21584 C_EXP_ORIGINAL_CODE. Preserve TREE_NO_WARNING.
21585 (internal_build_compound_expr): Merge into build_compound_expr.
21586 (build_compound_expr): Take two operands instead of a TREE_LIST.
21587 * objc/objc-act.c (get_super_receiver): Update calls to
21588 build_compound_expr.
21589
21590 2004-07-18 Paolo Bonzini <bonzini@gnu.org>
21591
21592 * config/sh/sh.c (sh_use_dfa_interface): Remove.
21593 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to
21594 hook_int_void_1.
21595 * config/sh/sh.md: Extract pipeline descriptions
21596 into separate files.
21597 * config/sh/sh1.md: New file, extracted from sh.md.
21598 * config/sh/sh4.md: New file, extracted from sh.md.
21599 * config/sh/shmedia.md: New file, extracted from sh.md
21600 and rewritten using new-style pipeline description.
21601
21602 2004-07-18 Zack Weinberg <zack@codesourcery.com>
21603
21604 * config/pa/pa.md: Delete the two remaining define_peephole
21605 patterns.
21606
21607 2004-07-18 Steven Bosscher <stevenb@suse.de>
21608 Joseph S. Myers <jsm@polyomino.org.uk>
21609
21610 * c-common.c (c_common_truthvalue_conversion): Don't warn if
21611 TREE_NO_WARNING is set.
21612
21613 2004-07-18 Roger Sayle <roger@eyesopen.com>
21614
21615 * builtins.c (simplify_builtin_memcmp, simplify_builtin_strcmp,
21616 simplify_builtin_strncmp): Delete.
21617 (fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
21618 Change argument to accept an arglist instead of an "exp". Assume
21619 that the return type is always integer_type_node. Copy missing
21620 transformations from their now obsolete simplify_builtin_*
21621 equivalents.
21622 (fold_builtin_1): Pass arglist instead of exp to fold_builtin_memcmp,
21623 fold_builtin_strcmp and fold_builtin_strncmp.
21624 (simplify_builtin): Call fold_builtin_memcmp, fold_builtin_strcmp
21625 and fold_builtin_strncmp instead of simplify_builtin_memcmp,
21626 simplify_builtin_strcmp and simplify_builtin_strncmp respectively.
21627
21628 2004-07-18 Daniel Jacobowitz <dan@debian.org>
21629
21630 * Makefile.in (tree-alias-common.o): Update dependencies.
21631
21632 2004-07-17 Sebastian Pop <pop@cri.ensmp.fr>
21633
21634 * cfgloop.c (flow_loop_nested_p): Fix comment.
21635
21636 2004-07-17 Jason Merrill <jason@redhat.com>
21637
21638 PR c++/16115
21639 * stor-layout.c (relayout_decl): New fn.
21640 * tree.h: Declare it.
21641 (DECL_BY_REFERENCE): New macro.
21642
21643 2004-07-17 Eric Botcazou <ebotcazou@act-europe.fr>
21644
21645 * libgcc2.c (__enable_execute_stack): New symbol.
21646 * libgcc-std.ver (GCC_3.4.2): New version. Inherit from GCC_3.4
21647 and declare __enable_execute_stack.
21648 * mklibgcc.in (lib2funcs): Add _enable_execute_stack.
21649 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): ANSIfy.
21650 * config/sol2.h (TRANSFER_FROM_TRAMPOLINE): Rename into
21651 ENABLE_EXECUTE_STACK.
21652 * config/alpha/alpha.c (alpha_initialize_trampoline): Conditionalize
21653 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
21654 * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Rename into
21655 ENABLE_EXECUTE_STACK.
21656 * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
21657 * config/i386/i386.c (x86_initialize_trampoline): Conditionalize
21658 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
21659 * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Rename into
21660 ENABLE_EXECUTE_STACK.
21661 * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
21662 * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
21663 * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
21664 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
21665 * config/sparc/sparc.c (sparc_initialize_trampoline): Conditionalize
21666 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
21667 (sparc64_initialize_trampoline): Likewise.
21668 * doc/tm.texi (trampolines): Add ENABLE_EXECUTE_STACK macro.
21669
21670 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
21671
21672 * langhooks.h (builtin_function): New langhook.
21673 * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New.
21674 (LANG_HOOKS_INITIALIZER): Update.
21675 * tree.h (builtin_function): Remove.
21676 * doc/tm.texi: Update.
21677 * c-tree.h (builtin_function): Declare.
21678 * c-common.c, config/alpha/alpha.c, config/arm/arm.c,
21679 config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c,
21680 config/ia64/ia64.c, config/iq2000/iq2000.c,
21681 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
21682 config/stormy16/stormy16.c: All callers of builtin_function
21683 changed.
21684
21685 2004-07-17 Andrew Pinski <pinskia@physics.uc.edu>
21686
21687 PR target/16556
21688 * config/i386/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
21689 Remove white space after the backslash.
21690
21691 2004-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
21692
21693 PR rtl-optimization/16294
21694 * resource.c (return_insn_p): New predicate.
21695 (mark_target_live_regs): Use it. Special-case return insns.
21696 (init_resource_info): Use it. Don't scan the epilogue past
21697 a return.
21698
21699 2004-07-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
21700
21701 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Do not
21702 destroy dominance information.
21703 * passes.c (rest_of_handle_loop2): Free dominance information.
21704 * tree-cfg.c (cleanup_tree_cfg): Remove unreachable blocks before
21705 jump threading.
21706 (thread_jumps): Update dominance information and remove unreachable
21707 blocks.
21708 * tree-ssa-phiopt.c (replace_phi_with_stmt): Update dominance
21709 information and remove the unreachable block.
21710
21711 2004-07-17 Graham Stott <graham.stott@btinternet.com>
21712
21713 * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
21714
21715 2004-07-17 Toon Moene <toon@moene.indiv.nluug.nl>
21716
21717 * doc/sourcebuild.texi: Remove libf2c entry.
21718
21719 2004-07-17 Paolo Bonzini <bonzini@gnu.org>
21720
21721 * config/i386/i386.md (movv16qi_internal): Fix typo.
21722
21723 2004-07-17 Steven Bosscher <stevenb@suse.de>
21724
21725 * final.c (final_scan_insn): Fix broken commit from previous
21726 patch.
21727
21728 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
21729
21730 * c-typeck.c (parser_build_binary_op): Condition warnings for
21731 X<=Y<=Z on -Wparentheses instead of -Wextra.
21732 * doc/invoke.texi: Update. Document that most of -Wparentheses is
21733 supported for C only.
21734
21735 2004-07-17 Steven Bosscher <stevenb@suse.de>
21736
21737 * cfgcleanup.c (try_simplify_condjump): Don't remove line
21738 notes to avoid unreachable code warnings.
21739 * toplev.c (backend_init): Don't emit line notes for
21740 unreachable code warnings.
21741
21742 * combine.c (distribute_notes): Don't distribute a
21743 REG_VTABLE_REF note.
21744 * final.c (final_scan_insn): Don't handle it.
21745 * rtl.c (reg_note_name): Remove it.
21746 * rtl.h (enum reg_node): Dito.
21747
21748 * emit-rtl.c (force_line_numbers, restore_line_number_status):
21749 Remove.
21750 * rtl.h (force_line_numbers, restore_line_number_status):
21751 Remove prototypes.
21752
21753 * stmt.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Move...
21754 * tree-eh.c (using_eh_for_cleanups_p): ...here. Make static.
21755 (using_eh_for_cleanups): Also moved here.
21756
21757 * expr.c (expand_expr_real_1) <CASE_LABEL_EXPR>: Die if we see one.
21758 <SWITCH_EXPR>: Die if we have a non-NULL SWITCH_BODY. Update calls
21759 to expand_start_case and add_case_node.
21760 * stmt.c (struct nesting): Cleanup unused fields condition_code,
21761 last_unconditional_cleanup, nominal_type, printname, and
21762 line_number_status.
21763 (struct fixup_goto): Remove.
21764 (struct stmt_status): Remove x_goto_fixup_chain field.
21765 (goto_fixup_chain): Remove.
21766 (strip_default_case_nodes, group_case_nodes, emit_jump_if_reachable,
21767 pushcase, pushcase_range): Remove.
21768 (expand_start_bindings_and_block): Don't set unused fields in
21769 the nesting stack.
21770 (expand_start_case, add_case_node): Cleanup unused formal arguments.
21771 (expand_end_case_type): Don't simplify the case-list. Use emit_jump
21772 instead of emit_jump_if_reachable.
21773 (emit_case_nodes): Likewise.
21774 * tree-cfg.c (group_case_labels, cleanup_dead_labels): No longer
21775 static.
21776 (update_eh_label): Work around left-over exception handing regions.
21777 * tree-flow.h (group_case_labels, cleanup_dead_labels): Add protos.
21778 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): New function.
21779 (pass_cleanup_cfg_post_optimizing): New pass.
21780 (init_tree_optimization_passes): Run the new pass after all
21781 optimizations.
21782 * tree.h (pushcase, pushcase_range): Remove prototypes.
21783 (expand_start_case, add_case_node): Update prototypes.
21784
21785 2004-07-16 Krister Walfridsson <cato@df.lth.se>
21786
21787 * tree-inline.c (estimate_num_insns_1): Correct increase of count.
21788
21789 2004-07-16 Richard Henderson <rth@redhat.com>
21790
21791 * builtins.c (std_expand_builtin_va_arg): Remove.
21792 (expand_builtin_va_arg): Remove.
21793 * expr.h: Don't declare them.
21794 * gimplify.c (mark_decls_volatile_r): Remove.
21795 (copy_if_shared_r): Don't call it.
21796 * target-def.h: Don't test EXPAND_BUILTIN_VA_ARG.
21797 * expr.c (expand_expr_real_1): Don't handle VA_ARG_EXPR.
21798 * gimple-low.c (lower_stmt): Likewise.
21799 * tree-cfg.c (cfg_remove_useless_stmts_bb): Likewise.
21800 * tree-gimple.c (is_gimple_tmp_rhs, is_gimple_stmt): Likewise.
21801 * tree-ssa-operands.c (get_expr_operands): Likewise.
21802 * doc/tm.texi (TARGET_GIMPLIFY_VA_ARG_EXPR): Don't mention
21803 EXPAND_BUILTIN_VA_ARG.
21804 * system.h (EXPAND_BUILTIN_VA_ARG): Poison.
21805 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/i386/i386.h,
21806 config/ia64/ia64.h, config/rs6000/rs6000.h, config/s390/s390.h,
21807 config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Remove.
21808
21809 2004-07-16 Daniel Berlin <dberlin@dberlin.org>
21810
21811 * tree-ssa-pre.c (insert_aux): Break out if we hit
21812 a critical edge.
21813
21814 2004-07-16 Richard Henderson <rth@redhat.com>
21815
21816 * basic-block.h (remove_fake_exit_edges): Declare.
21817 * cfganal.c (remove_fake_predecessors): Rename from
21818 remove_fake_successors; iterate over predecessors.
21819 (remove_fake_exit_edges): New.
21820 * cfgcleanup.c (try_optimize_cfg): Use it.
21821 * gcse.c (one_pre_gcse_pass, store_motion): Likewise.
21822 * predict.c (estimate_probability): Likewise.
21823 (tree_estimate_probability, note_prediction_to_br_prob): Likewise.
21824 * tree-cfg.c (make_edges): Likewise.
21825 * tree-ssa-pre.c (fini_pre): Likewise.
21826 * profile.c (instrument_edges): Don't remove_fake_edges.
21827 (branch_prob): Do it earlier here.
21828
21829 2004-07-16 Richard Henderson <rth@redhat.com>
21830
21831 * tree-ssa-operands.c (get_expr_operands): Fix 2004-07-15
21832 switchification wrt CONSTRUCTOR. Document the reason.
21833
21834 2004-07-16 Frank Ch. Eigler <fche@redhat.com>
21835
21836 * tree-mudflap.c (mf_file_function_line_tree): Correct typo
21837 that prevented descriptive __mf_check source location strings.
21838
21839 2004-07-16 Richard Henderson <rth@redhat.com>
21840
21841 * tree-def (WITH_SIZE_EXPR): New.
21842 * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
21843 * expr.c (expand_expr_real_1): Likewise.
21844 * gimplify.c (maybe_with_size_expr): New.
21845 (gimplify_arg, gimplify_modify_expr): Use it.
21846 (gimplify_modify_expr_to_memcpy): Take size parameter.
21847 (gimplify_modify_expr_to_memset): Likewise.
21848 (gimplify_expr): Handle WITH_SIZE_EXPR.
21849 * tree-alias-common.c (find_func_aliases): Likewise.
21850 * tree-eh.c (tree_could_trap_p): Likewise.
21851 (tree_could_throw_p): Likewise.
21852 * tree-gimple.c (is_gimple_lvalue): Likewise.
21853 (get_call_expr_in): Likewise.
21854 * tree-inline.c (estimate_num_insns_1): Likewise.
21855 (expand_calls_inline): Likewise.
21856 * tree-nested.c (convert_call_expr): Likewise.
21857 * tree-pretty-print.c (dump_generic_node): Likewise.
21858 * tree-sra.c (sra_walk_expr): Likewise.
21859 * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
21860 * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
21861 * tree-ssa-operands.c (get_expr_operands): Likewise.
21862 * tree-tailcall.c (find_tail_calls): Likewise.
21863
21864 * calls.c (expand_call): Reset old_stack_allocated after
21865 calling emit_stack_restore.
21866
21867 2004-07-16 Richard Henderson <rth@redhat.com>
21868
21869 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING,
21870 lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
21871 * langhooks.c (lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
21872 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
21873 copy_res_decl_for_inlining.
21874
21875 * tree-inline.c (declare_return_variable): New modify_dest argument.
21876 Use it as the return value, when possible or manditory. Handle
21877 TREE_ADDRESSABLE types.
21878 (expand_call_inline): Extract MODIFY_EXPR lhs for call. Simplify
21879 replacement of CALL_EXPR.
21880
21881 2004-07-16 Richard Henderson <rth@redhat.com>
21882
21883 * tree-flow.h (struct var_ann_d): Remove has_hidden_use.
21884 * gimple-low.c (expand_var_p): Don't check it.
21885 * tree-ssa-alias.c (setup_pointers_and_addressables): Likewise.
21886 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
21887 * tree-ssa-operands.c (add_stmt_operand): Likewise.
21888 * tree-dfa.c (find_hidden_use_vars, find_hidden_use_vars_r): Kill.
21889 (find_referenced_vars): Don't call them.
21890 * tree-flow-inline.h (has_hidden_use, set_has_hidden_use): Kill.
21891
21892 2004-07-16 Richard Henderson <rth@redhat.com>
21893
21894 * function.c (pass_by_reference): True for all variable sized types.
21895
21896 2004-07-16 Sebastian Pop <pop@cri.ensmp.fr>
21897
21898 * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
21899 * tree-pretty-print.c: Include tree-chrec.h.
21900 (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
21901 and POLYNOMIAL_CHREC nodes.
21902
21903 2004-07-16 Steve Ellcey <sje@cup.hp.com>
21904
21905 * builtins.c (expand_builtin_stpcpy): Do not create temporary
21906 reg with VOIDmode.
21907
21908 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
21909
21910 * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
21911
21912 2004-07-16 Andreas Krebbel <krebbel1@de.ibm.com>
21913
21914 * config/s390/s390.md: Changed every occurence of BASE_REGISTER
21915 to BASE_REGNUM.
21916 * config/s390/s390.c: Likewise.
21917 * config/s390/s390.h: Likewise.
21918
21919 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
21920
21921 * config/mips/mips.md (addsi3, adddi3): Remove special handling
21922 of $sp adds. Remove REGNO checks from mips16 patterns.
21923
21924 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
21925
21926 * config/mips/mips.md: Delete outdated comment.
21927
21928 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
21929
21930 * config/mips/mips.c (get_float_compare_codes): Delete.
21931 (mips_emit_compare): New function, mostly extracted from
21932 get_float_compare_codes and gen_conditional_branch.
21933 (gen_conditional_branch, gen_conditional_move): Use it.
21934
21935 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
21936
21937 * genautomata.c (add_vect): Speedup by using integers as
21938 bit-vectors for walking through the comb_vect and finding
21939 a match.
21940
21941 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
21942
21943 * config/mips/mips.c (mips_zero_if_equal): Only use XORs if the second
21944 operand is an uns_arith_operand; use subtraction otherwise.
21945 * config/mips/mips.md (cmpsi, cmpdi): Allow any nonmemory_operand,
21946 not just arith_operands.
21947
21948 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
21949
21950 * config/mips/mips-protos.h (gen_int_relational): Delete.
21951 (mips_emit_scc): Declare.
21952 * config/mips/mips.c (internal_test): Delete.
21953 (sle_operand, sleu_operand): New functions.
21954 (map_test_to_internal_test, gen_int_relational): Delete.
21955 (mips_emit_binary, mips_relational_operand_ok_p)
21956 (mips_emit_int_relational, mips_zero_if_equal)
21957 (mips_emit_scc): New functions.
21958 (gen_conditional_branch): Rework to use mips_emit_int_relational.
21959 * config/mips/mips.h (PREDICATE_CODES): Add sle_operand and
21960 sleu_operand.
21961 * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
21962 (sltu, sleu): Use mips_emit_scc.
21963 (*sge_[sd]i, *sgeu_[sd]i): New patterns.
21964 (*sle_[sd]i, *sle_[sd]i_mips16): Use sle_operand.
21965 (*sleu_[sd]i, *sleu_[sd]i_mips16): Use sleu_operand.
21966
21967 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
21968
21969 * config/mips/mips.md (*sgt_di_mips16): Fix destination constraint.
21970
21971 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
21972
21973 * config/mips/mips.md (*seq_[sd]i): Renamed from seq_[sd]i_zero.
21974 (*sne_[sd]i): Likewise sne_[sd]i_zero.
21975 (*sgt_[sd]i): ...and sgt_[sd]i.
21976 (*slt_[sd]i): ...and slt_[sd]i.
21977 (*sgtu_[sd]i): ...and sgtu_[sd]i.
21978 (*sltu_[sd]i): ...and sltu_[sd]i.
21979 (*sleu_[sd]i): ...and sleu_[sd]i_const.
21980 Name previously unnamed mips16 patterns. Formatting fixes.
21981
21982 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
21983
21984 * config/mips/mips.c (cmp_operands): Renamed from branch_cmp.
21985 (branch_type): Delete.
21986 (gen_conditional_branch, gen_conditional_move)
21987 (mips_gen_conditional_trap): Update after name change. Get the
21988 comparison mode from cmp_operands[0].
21989 * config/mips/mips.h (cmp_type, branch_type): Delete.
21990 (cmp_operands): Renamed from branch_cmp.
21991 * config/mips/mips.md (cmpsi, cmpdi, cmpsf, cmpdf): Update after
21992 name change. Don't set branch_type.
21993 (seq, sne, sgt, sge, slt, sle, sgtu, sgeu, sltu, sleu): Check the
21994 mode class of cmp_operands[0] rather than branch_type. Update after
21995 name change.
21996
21997 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
21998
21999 * config/mips/mips.c (mips_rtx_costs): In mips16 code, set the cost
22000 of 0...255 to 0 when inside a SET.
22001
22002 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22003
22004 * config/mips/mips.md: Remove mips16 define_peepholes.
22005
22006 2004-07-16 Daniel Berlin <dberlin@dberlin.org>
22007
22008 * tree-ssa-pre.c (init_pre): Connect infinite loops to exit.
22009 (fini_pre): Remove fake edges.
22010
22011 2004-07-15 Richard Henderson <rth@redhat.com>
22012
22013 * tree-ssa-operands.c (get_expr_operands): Use a switch. Split out...
22014 (get_indirect_ref_operands, get_call_expr_operands): ... these.
22015
22016 2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
22017
22018 * vec.h (VEC_address): New function.
22019
22020 2004-07-14 Jason Merrill <jason@redhat.com>
22021
22022 PR middle-end/15885
22023 * gimplify.c (gimplify_arg): New fn, split out from...
22024 (gimplify_call_expr): Here. Special-case BUILT_IN_VA_START.
22025
22026 2004-07-15 Roman Zippel <zippel@linux-m68k.org>
22027
22028 * config/m68k/m68k.c (output_move_qimode): Abort on an attempt to
22029 generate code which is generated by pushqi1 now
22030 * config/m68k/m68k.h (MOVE_BY_PIECES_P): Remove.
22031
22032 2004-07-15 Roman Zippel <zippel@linux-m68k.org>
22033
22034 * combine.c (simplify_set): match the mode of the constant 0 with
22035 the tested operand to match the compare behaviour and the
22036 simplify_relational_operation() expectation.
22037
22038 2004-07-15 Aldy Hernandez <aldyh@redhat.com>
22039
22040 * config/rs6000/rs6000.md ("bunordered"): Disable for e500.
22041 ("bordered"): Same.
22042
22043 2004-07-15 Aldy Hernandez <aldyh@redhat.com>
22044
22045 * config/rs6000/rs6000.md ("*cceq_ior_compare"): Allow
22046 unconditionally.
22047 * config/rs6000/spe.md ("e500_cceq_ior_compare"): Remove.
22048
22049 2004-07-15 Richard Sandiford <rsandifo@redhat.com>
22050
22051 * config/mips/mips.c (mips_adjust_insn_length): Fix handling of
22052 calls in mips16 code.
22053
22054 2004-07-15 Richard Sandiford <rsandifo@redhat.com>
22055
22056 * config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
22057 the destination of the li as well as for the neg.
22058
22059 2004-07-15 Frank Ch. Eigler <fche@redhat.com>
22060
22061 g++/15861
22062 * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument.
22063 * cgraph.h: Update declaration.
22064 * c-decl.c (build_cdtor): Update call with default priority.
22065 * coverage.c (create_coverage): Ditto.
22066 * tree-mudflap.c (mf_init_fndecl): New tree.
22067 (mudflap_init): Set it.
22068 (mudflap_register_call): Arrange to call __mf_init before the first
22069 __mf_register call.
22070 (mudflap_finish_file): Mark the mudflap static initializer as extra
22071 high priority, to beat all C++ static constructors.
22072
22073 2004-07-15 Jeff Law <law@redhat.com>
22074
22075 * loop.c (check_insn_for_givs): Restore check for code labels that was
22076 accidentally deleted by a recent checkin.
22077
22078 2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
22079
22080 * vec.h (VEC_T_truncate): Allow truncation of an empty vector.
22081 (VEC_T_quick_insert, VEC_T_ordered_remove): Fix sizeof(T) thinko.
22082
22083 2004-07-14 Richard Henderson <rth@redhat.com>
22084
22085 * print-tree.c (print_node): Fix casts last change.
22086
22087 2004-07-15 Paul Brook <paul@codesourcery.com>
22088
22089 * dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO
22090 to TARGET_UNWIND_INFO.
22091 * except.c (output_function_exception_table): Ditto.
22092 * except.h: Ditto.
22093 * opts.c (decode_options): Ditto.
22094 * passes.c (rest_of_handle_final): Ditto.
22095 * final.c (final_start_function): Ditto.
22096 (final_scan_insn, final_scan_insn): Replace IA64_UNWIND_EMIT with
22097 target hook.
22098 * targhooks.h (default_unwind_emit): Declare.
22099 * targhooks.c (default_unwind_emit): New function.
22100 * target-def.h: Define and use TARGET_UNWIND_EMIT.
22101 * target.h (struct gcc_target): Add unwind_emit.
22102 * config/ia64/ia64.c (TARGET_UNWIND_EMIT): Define.
22103 * config/ia64/ia64.h: Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO.
22104 Remove IA64_UNWIND_EMIT.
22105 * doc/tm.texi: Document TARGET_UNWIND_EMIT and TARGET_UNWIND_INFO.
22106
22107 2004-07-14 Richard Henderson <rth@redhat.com>
22108
22109 * print-tree.c (print_node): Handle SSA_NAME.
22110
22111 2004-07-14 James E Wilson <wilson@specifixinc.com>
22112
22113 PR target/16325
22114 * config/mips/mips.h (STARTING_FRAME_OFFSET): When flag_profile_value
22115 and ! TARGET_64BIT, include REG_PARM_STACK_SPACE.
22116
22117 2004-07-15 Jakub Jelinek <jakub@redhat.com>
22118
22119 * expr.c (expand_assignment): Reenable bitfield += optimizations.
22120 Use alias set 0 for memory, do proper mode calculations and adjust
22121 address for memories.
22122
22123 2004-07-14 Per Bothner <per@bothner.com>
22124
22125 * input.h: If USE_MAPPED_LOCATION, define separate expanded_location
22126 structure with extra column field.
22127 * tree.c (expand_location): Also fill in column field.
22128 * gengtype-lex.l: Ignore expanded_location typedef, sinze gengtype
22129 gets confused by the two conditionally-compiled definitions.
22130
22131 2004-07-14 Eric Christopher <echristo@redhat.com>
22132
22133 * calls.c (expand_call): Fix typo in comment.
22134
22135 2004-07-14 Steve Ellcey <sje@cup.hp.com>
22136
22137 * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
22138 comparision of TFmode.
22139
22140 2004-07-14 Richard Henderson <rth@redhat.com>
22141
22142 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
22143 (alpha_gimplify_va_arg): ... handling here. Use pass_by_reference.
22144 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Use pass_by_reference.
22145 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
22146 * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
22147 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
22148 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
22149 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
22150 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
22151
22152 2004-07-14 Mike Stump <mrs@apple.com>
22153
22154 * config/darwin.h (WINT_TYPE): Define to be int to match
22155 system header files.
22156
22157 2004-07-14 Bob Wilson <bob.wilson@acm.org>
22158
22159 * config/xtensa/xtensa.c (function_arg_advance): Check for args
22160 that must be passed in the stack.
22161 (xtensa_gimplify_va_arg_expr): Skip special-case padding for small
22162 arguments if the size is not a constant.
22163
22164 2004-07-14 Per Bothner <per@bothner.com>
22165
22166 * c-typeck.c (emit_side_effect_warnings): Use EXPR_HAS_LOCATION
22167 instead of EXPR_LOCUS in a boolean context, which is always true
22168 if --enable-mapped-location.
22169 * stmt.c (warn_if_unused_value): Likewise. Also use EXPR_LOCATION.
22170
22171 2004-07-14 Richard Henderson <rth@redhat.com>
22172
22173 * dominance.c (struct dom_info): Add fake_exit_edge.
22174 (init_dom_info): Allocate it.
22175 (free_dom_info): Free it.
22176 (calc_dfs_tree): Set it. Handle noreturn and infinite loops
22177 in two passes.
22178 (calc_idoms): Honor fake_exit_edge.
22179
22180 2004-07-13 Jason Merrill <jason@redhat.com>
22181
22182 * tree-gimple.c (is_gimple_reg_rhs, is_gimple_mem_rhs): New fns.
22183 (rhs_test_for): New fn.
22184 (is_gimple_tmp_rhs): Rename from is_gimple_rhs.
22185 * tree-gimple.h: Declare them.
22186 * gimplify.c (gimplify_modify_expr): Use the new fns.
22187
22188 2004-07-14 Richard Henderson <rth@redhat.com>
22189
22190 * config/arm/arm-protos.h (arm_va_arg): Remove.
22191 * config/arm/arm.c (arm_va_arg): Remove.
22192 (arm_init_expanders): Fix alignment of arg_pointer_rtx.
22193 * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG): Remove.
22194
22195 2004-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22196
22197 * pa.c (fix_range): New function to mark a range(s) of registers as
22198 fixed registers.
22199 (override_options): Call fix_range if the -mfixed-range option string
22200 is not empty.
22201 * pa.h (TARGET_OPTIONS): Add -mfixed-range option.
22202 * doc/invoke.texi (-mfixed-range): Document new option.
22203
22204 2004-07-14 David Edelsohn <edelsohn@gnu.org>
22205
22206 * config/rs6000/rs6000.c (function_arg_padding): Do not pad SFmode
22207 for TARGET_64BIT.
22208 (rs6000_gimplify_va_arg): Use size_int instead of build_int_2.
22209
22210 2004-07-14 Roger Sayle <roger@eyesopen.com>
22211
22212 * expmed.c (expand_sdiv_pow2): New function to expand signed division
22213 by a positive power of two, split out from expand_divmod. Provide
22214 an alternate implementation when shifts are expensive. Lower the
22215 threshold for using a branchless implementation to BRANCH_COST >= 2.
22216 (expand_divmod): Call expand_sdiv_pow2 for suitable divisions.
22217
22218 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
22219
22220 * tree-dfa.c (make_rename_temp): *Really* work just
22221 like create_tmp_var if called while outside SSA form.
22222
22223 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
22224
22225 * config/s390/s390.md ("udivsi3"): Ensure trap is generated
22226 for division by zero.
22227 ("umodsi3"): Likewise.
22228
22229 2004-07-14 Richard Sandiford <rsandifo@redhat.com>
22230
22231 * config/mips/mips.c (mips_output_move): When generating mips16 code,
22232 force loads of negative constants to be split.
22233 * config/mips/mips.md (*movhi_mips16, *movqi_mips16): Likewise.
22234 Generalize SImode li/neg splitter to cope with other modes.
22235
22236 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
22237
22238 * expmed.c: Remove more references to QUEUED in the comments.
22239 * expr.c: Likewise.
22240
22241 2004-07-14 Richard Sandiford <rsandifo@redhat.com>
22242
22243 Revert:
22244 2004-07-13 Richard Henderson <rth@redhat.com>
22245 * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes
22246 correctly.
22247
22248 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
22249
22250 * tree-dfa.c (make_rename_temp): Work just like
22251 create_tmp_var if called while outside SSA form.
22252
22253 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
22254
22255 * expr.c (enqueue_insn, finish_expr_for_function,
22256 protect_from_queue, queued_subexp_p, mark_queue,
22257 emit_insns_enqueued_after_mark, emit_queue,
22258 expand_increment): Remove.
22259 (store_constructor): Expand increment as an assignment.
22260 (expand_expr_real_1 <case PREINCREMENT_EXPR,
22261 case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
22262 case POSTDECREMENT_EXPR>): Abort.
22263 * expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
22264 QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
22265 protect_from_queue, emit_queue, queued_subexp_p): Remove.
22266 * function.h (pending_chain, x_pending_chain): Remove.
22267 * rtl.def (QUEUED): Remove.
22268
22269 * emit-rtl.c (copy_insn_1, copy_most_rtx,
22270 set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
22271 * genattrtab.c (attr_copy_rtx, clear_struct_flag,
22272 encode_units_mask): Likewise.
22273 * local-alloc.c (equiv_init_varies_p): Likewise.
22274 * rtl.c (copy_rtx): Likewise.
22275 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
22276 * simplify-rtx.c (simplify_gen_subreg): Likewise.
22277 * config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
22278
22279 * builtins.c (expand_builtin, expand_builtin_apply,
22280 expand_builtin_mathfn, expand_builtin_mathfn_2,
22281 expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
22282 Remove calls to emit_queue and protect_from_queue.
22283 * calls.c (expand_call, precompute_arguments,
22284 precompute_register_parameters, rtx_for_function_call,
22285 store_one_arg): Likewise.
22286 * dojump.c (do_compare_and_jump, do_jump): Likewise.
22287 * explow.c (memory_address): Likewise.
22288 * expmed.c (clear_by_pieces_1, clear_storage,
22289 clear_storage_via_libcall, emit_group_load,
22290 emit_group_store, emit_store_flag,
22291 expand_expr_real_1, store_by_pieces,
22292 store_constructor, store_expr, try_casesi,
22293 try_tablejump): Likewise.
22294 * function.c (expand_pending_sizes): Likewise.
22295 * optabs.c (emit_cmp_and_jump_insns,
22296 emit_conditional_add, emit_conditional_move,
22297 expand_fix, expand_float, prepare_cmp_insn): Likewise.
22298 * stmt.c (emit_case_bit_tests,
22299 expand_asm_expr, expand_computed_goto,
22300 expand_decl_init, expand_end_case_type,
22301 expand_end_stmt_expr, expand_expr_stmt_value,
22302 expand_return, expand_start_case,
22303 optimize_tail_recursion): Likewise.
22304 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
22305 * config/s390/s390.c (s390_expand_cmpmem): Likewise.
22306
22307 2004-07-14 Ben Elliston <bje@au.ibm.com>
22308
22309 * vec.h: Comment fix.
22310
22311 2004-07-13 Richard Henderson <rth@redhat.com>
22312
22313 * target.h (struct gcc_target): Add calls.pass_by_reference.
22314 * target-def.h (TARGET_PASS_BY_REFERENCE): New.
22315 * function.c (pass_by_reference): Use the hook.
22316 * system.h (FUNCTION_ARG_PASS_BY_REFERENCE): Poison.
22317 * targhooks.c, targhooks.h (hook_pass_by_reference_false): New.
22318 (hook_pass_by_reference_must_pass_in_stack): New.
22319 * config/alpha/alpha.c (function_arg): Don't query pass-by-ref.
22320 (alpha_pass_by_reference): New.
22321 (TARGET_PASS_BY_REFERENCE): New.
22322 * config/alpha/alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22323 * config/arc/arc.c (arc_pass_by_reference): New.
22324 (TARGET_PASS_BY_REFERENCE): New.
22325 * config/arc/arc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22326 (FUNCTION_ARG_CALLEE_COPIES): True.
22327 * config/arm/arm-protos.h (arm_function_arg_pass_by_reference): Remove.
22328 * config/arm/arm.c (TARGET_PASS_BY_REFERENCE): New.
22329 (arm_pass_by_reference): Rename from arm_function_arg_pass_by_reference.
22330 * config/arm/arm.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22331 * config/c4x/c4x.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22332 * config/cris/cris.c (cris_pass_by_reference): New.
22333 (TARGET_PASS_BY_REFERENCE): New.
22334 * config/cris/cris.h (FUNCTION_ARG): Don't query pass-by-ref.
22335 (FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): Likewise.
22336 (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22337 * config/fr30/fr30.c (TARGET_PASS_BY_REFERENCE): New.
22338 * config/fr30/fr30.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22339 * config/frv/frv-protos.h (frv_function_arg_pass_by_reference): Kill.
22340 * config/frv/frv.c (TARGET_PASS_BY_REFERENCE): New.
22341 (frv_function_arg_pass_by_reference): Remove.
22342 * config/frv/frv.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22343 * config/i386/i386-protos.h (function_arg_pass_by_reference): Remove.
22344 * config/i386/i386.c (TARGET_PASS_BY_REFERENCE): New.
22345 (ix86_pass_by_reference): Rename from function_arg_pass_by_reference.
22346 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22347 * config/ia64/ia64-protos.h (ia64_function_arg_pass_by_reference): Kill.
22348 * config/ia64/ia64.c (TARGET_PASS_BY_REFERENCE): New.
22349 (ia64_pass_by_reference): Rename from
22350 ia64_function_arg_pass_by_reference.
22351 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22352 * config/ip2k/ip2k.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22353 * config/iq2000/iq2000-protos.h (function_arg_pass_by_reference): Kill.
22354 * config/iq2000/iq2000.c (TARGET_PASS_BY_REFERENCE): New.
22355 (iq2000_pass_by_reference): Rename from function_arg_pass_by_reference.
22356 * config/iq2000/iq2000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22357 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
22358 * config/m32r/m32r-protos.h (m32r_pass_by_reference): Remove.
22359 * config/m32r/m32r.c (TARGET_PASS_BY_REFERENCE): New.
22360 (m32r_pass_by_reference): Adjust prototype. Make static.
22361 Handle mode sizes correctly.
22362 * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22363 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c
22364 (m68hc11_function_arg_pass_by_reference): Remove.
22365 * config/m68hc11/m68hc11.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22366 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
22367 * config/mcore/mcore.c (TARGET_PASS_BY_REFERENCE): New.
22368 * config/mcore/mcore.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22369 * config/mips/mips-protos.h (function_arg_pass_by_reference): Remove.
22370 * config/mips/mips.c (TARGET_PASS_BY_REFERENCE): New.
22371 (mips_va_arg): Use pass_by_reference.
22372 (mips_pass_by_reference): Rename from function_arg_pass_by_reference.
22373 Handle mode sizes correctly.
22374 * config/mips/mips.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22375 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
22376 * config/mmix/mmix-protos.h (mmix_function_arg_pass_by_reference): Kill.
22377 * config/mmix/mmix.c (TARGET_PASS_BY_REFERENCE): New.
22378 (mmix_pass_by_reference): Rename from
22379 mmix_function_arg_pass_by_reference.
22380 * config/mmix/mmix.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22381 (FUNCTION_ARG_CALLEE_COPIES): True.
22382 * config/mn10300/mn10300.c (TARGET_PASS_BY_REFERENCE): New.
22383 (mn10300_pass_by_reference): New.
22384 * config/mn10300/mn10300.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22385 (FUNCTION_ARG_CALLEE_COPIES): True.
22386 * config/pa/pa.c (pa_pass_by_reference): New.
22387 (TARGET_PASS_BY_REFERENCE): New.
22388 * config/pa/pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22389 (FUNCTION_ARG_CALLEE_COPIES): True.
22390 * config/rs6000/rs6000-protos.h (function_arg_pass_by_reference): Kill.
22391 * config/rs6000/rs6000.c (TARGET_PASS_BY_REFERENCE): New.
22392 (rs6000_pass_by_reference): Rename from function_arg_pass_by_reference.
22393 * config/rs6000/rs6000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22394 * config/s390/s390-protos.h (s390_function_arg_pass_by_reference): Kill.
22395 * config/s390/s390.c (TARGET_PASS_BY_REFERENCE): New.
22396 (s390_pass_by_reference): Rename from
22397 s390_function_arg_pass_by_reference.
22398 (s390_function_arg_advance): Don't query pass-by-ref.
22399 (s390_function_arg): Likewise.
22400 (s390_gimplify_va_arg): Use pass_by_reference.
22401 (s390_call_saved_register_used): Likewise.
22402 * config/s390/s390.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22403 * config/sh/sh.c (TARGET_PASS_BY_REFERENCE): New.
22404 (shcompact_byref, sh_pass_by_reference): New.
22405 * config/sh/sh.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22406 (SHCOMPACT_BYREF): Remove.
22407 * config/sparc/sparc-protos.h (function_arg_pass_by_reference): Kill.
22408 * config/sparc/sparc.c (TARGET_PASS_BY_REFERENCE): New.
22409 (sparc_pass_by_reference): Rename from function_arg_pass_by_reference.
22410 (sparc_gimplify_va_arg): Use pass_by_reference.
22411 * config/sparc/sparc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22412 * config/stormy16/stormy16.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22413 * config/v850/v850.c (TARGET_PASS_BY_REFERENCE): New.
22414 (v850_pass_by_reference): New.
22415 * config/v850/v850.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22416 (FUNCTION_ARG_CALLEE_COPIES): True.
22417 * doc/tm.texi (TARGET_PASS_BY_REFERENCE): Update from
22418 FUNCTION_ARG_PASS_BY_REFERENCE docs.
22419
22420 2004-07-14 Richard Henderson <rth@redhat.com>
22421 Richard Sandiford <rsandifo@redhat.com>
22422
22423 * config/mips/mips-protos.h (mips_va_arg): Delete.
22424 * config/mips/mips.h (EXPAND_BUILTIN_VA_ARG): Delete.
22425 * config/mips/mips.c: Include tree-gimple.h.
22426 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
22427 (mips_arg_info): Remove special handling of must_pass_in_stck args.
22428 (mips_gimplify_va_arg_expr): Rewritten from mips_va_arg.
22429 (function_arg_pass_by_reference): Return true if must_pass_in_stack.
22430
22431 2004-07-13 Bob Wilson <bob.wilson@acm.org>
22432
22433 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap
22434 arguments for COND_EXPR in big-endian adjustment code.
22435
22436 2004-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22437
22438 * pa-64.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Delete.
22439 * pa.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Modify for hppa64.
22440 * pa32-regs.h (REG_ALLOC_ORDER): Reorder caller-saved registers.
22441 * pa64-regs.h (REG_ALLOC_ORDER): Likewise.
22442
22443 2004-07-13 Diego Novillo <dnovillo@redhat.com>
22444
22445 PR tree-optimization/16443
22446 * tree-ssa-alias.c: Add more description for
22447 CALL_CLOBBERED_VARS and ADDRESSABLE_VARS.
22448 * tree-ssa-operands.c (get_asm_expr_operands): Re-order the
22449 clobbering of call-clobbered and addressable variables. If
22450 there are any before aliases have been computed, add them.
22451
22452 2004-07-13 Diego Novillo <dnovillo@redhat.com>
22453
22454 * tree-optimize.c (execute_todo): Flush DUMP_FILE before
22455 verification.
22456
22457 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
22458
22459 * config/s390/s390.c (s390_gimplify_va_arg): Use size_int instead
22460 of build_int_2. Convert both operands of PLUS_EXPR and MULT_EXPR
22461 to the same type.
22462
22463 2004-07-13 Per Bothner <per@bothner.com>
22464
22465 * collect2.c (main): Handle --no-demangle and --demangle flags.
22466
22467 2004-07-13 Sebastian Pop <pop@cri.ensmp.fr>
22468
22469 * Makefile.in (OBJS-common): Add tree-data-ref.o.
22470 (tree-scalar-evolution.o): Add missing dependences on tree-pass.h flags.h.
22471 (tree-data-ref.o): New rule.
22472 * lambda.h: New file.
22473 * tree-data-ref.c: New file.
22474 * tree-data-ref.h: New file.
22475 * tree.c (int_cst_value, tree_fold_gcd): New functions.
22476 * tree.h (int_cst_value, tree_fold_gcd): Declared here.
22477
22478 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
22479
22480 PR target/13926
22481 * config/sparc/sparc-protos.h (output_ubranch): New prototype.
22482 * config/sparc/sparc.c (output_ubranch): New function.
22483 * config/sparc/sparc.md (jump pattern): Use it.
22484
22485 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
22486
22487 PR target/16494
22488 * config/sparc/sparc.c (output_cbranch): Properly guard
22489 the code handling far branches with TARGET_V9.
22490 * config/sparc/sparc.md (length attribute): Document the
22491 side-effect of having a length greater or equal to 3.
22492
22493 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
22494 Lloyd Parkes <lloyd@must-have-coffee.gen.nz>
22495
22496 PR target/15186
22497 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
22498 /usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
22499
22500 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
22501 Martin Sebor <sebor@roguewave.com>
22502
22503 PR target/12602
22504 * doc/invoke.texi (SPARC options): Document -threads
22505 and -pthreads on Solaris.
22506
22507 2004-07-13 Richard Henderson <rth@redhat.com>
22508
22509 * builtins.c (std_gimplify_va_arg_expr): Handle types passed
22510 by reference.
22511 (ind_gimplify_va_arg_expr): Remove.
22512 * tree.h (ind_gimplify_va_arg_expr): Remove.
22513 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Don't use it.
22514 * config/mmix/mmix.c (mmix_function_arg_pass_by_reference): Allow
22515 argsp to be null.
22516
22517 * config/arc/arc.c (arc_gimplify_va_arg_expr): Remove.
22518 (TARGET_GIMPLIFY_VA_ARG_EXPR): Remove.
22519 * config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c,
22520 config/iq2000/iq2000.c, config/m32r/m32r.c, config/mmix/mmix.c,
22521 config/mn10300/mn10300.c, config/v850/v850.c: Similarly.
22522
22523 2004-07-13 Richard Henderson <rth@redhat.com>
22524
22525 * function.c (pass_by_reference): New.
22526 (assign_parm_find_data_types): Use it.
22527 * calls.c (initialize_argument_information): Likewise.
22528 (emit_library_call_value_1): Likewise.
22529 * expr.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22530 * function.h (pass_by_reference): Declare.
22531
22532 2004-07-13 Richard Henderson <rth@redhat.com>
22533
22534 * target-def.h (TARGET_MUST_PASS_IN_STACK): New.
22535 * target.h (struct gcc_target): Add calls.must_pass_in_stack.
22536 * expr.h (MUST_PASS_IN_STACK): Remove.
22537 * system.h (MUST_PASS_IN_STACK): Poison.
22538 * tree.h (must_pass_in_stack_var_size): Declare.
22539 (must_pass_in_stack_var_size_or_pad): Declare.
22540 * calls.c (must_pass_in_stack_var_size): New.
22541 (must_pass_in_stack_var_size_or_pad): Rename from
22542 default_must_pass_in_stack.
22543 * config/alpha/alpha.c (unicosmk_must_pass_in_stack): New.
22544 (TARGET_MUST_PASS_IN_STACK): New.
22545 * config/alpha/unicosmk.h (MUST_PASS_IN_STACK): Remove.
22546 * config/fr30/fr30.c (fr30_must_pass_in_stack): New.
22547 (TARGET_MUST_PASS_IN_STACK): New.
22548 * config/fr30/fr30.h (MUST_PASS_IN_STACK): Remove.
22549 * config/frv/frv.c (frv_must_pass_in_stack): New.
22550 (TARGET_MUST_PASS_IN_STACK): New.
22551 * config/frv/frv.h (MUST_PASS_IN_STACK): Remove.
22552 * config/i386/i386-protos.h (ix86_must_pass_in_stack): Remove.
22553 * config/i386/i386.c (TARGET_MUST_PASS_IN_STACK): New.
22554 (ix86_must_pass_in_stack): Make static.
22555 * config/i386/i386.h (MUST_PASS_IN_STACK): Remove.
22556 * config/ia64/ia64.c (TARGET_MUST_PASS_IN_STACK): New.
22557 * config/ia64/ia64.h (MUST_PASS_IN_STACK): Remove.
22558 * config/m32r/m32r.c (TARGET_MUST_PASS_IN_STACK): New.
22559 * config/m32r/m32r.h (MUST_PASS_IN_STACK): Remove.
22560 * config/mcore/mcore-protos.h (mcore_must_pass_on_stack): Remove.
22561 * config/mcore/mcore.c (TARGET_MUST_PASS_IN_STACK): New.
22562 (mcore_must_pass_on_stack): Remove.
22563 * config/mcore/mcore.h (MUST_PASS_IN_STACK): Remove.
22564 * config/mips/mips.c (TARGET_MUST_PASS_IN_STACK): New.
22565 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove.
22566 * config/pa/pa.c (TARGET_MUST_PASS_IN_STACK): New.
22567 * config/pa/pa.h (MUST_PASS_IN_STACK): Remove.
22568 * config/rs6000/aix.h (MUST_PASS_IN_STACK): Remove.
22569 * config/rs6000/linux64.h (MUST_PASS_IN_STACK): Remove.
22570 * config/rs6000/rs6000.c (rs6000_must_pass_in_stack): New.
22571 (TARGET_MUST_PASS_IN_STACK): New.
22572 * config/sh/sh.c (TARGET_MUST_PASS_IN_STACK): New.
22573 * config/sh/sh.h (MUST_PASS_IN_STACK): Remove.
22574 * config/sparc/sparc.c (TARGET_MUST_PASS_IN_STACK): New.
22575 * config/sparc/sparc.h (MUST_PASS_IN_STACK): Remove.
22576 * config/xtensa/xtensa.c (TARGET_MUST_PASS_IN_STACK): New.
22577 * config/xtensa/xtensa.h (MUST_PASS_IN_STACK): Remove.
22578 * doc/tm.texi (TARGET_MUST_PASS_IN_STACK): Update from
22579 MUST_PASS_IN_STACK.
22580
22581 * calls.c, function.c, config/alpha/alpha.c, config/alpha/alpha.h,
22582 config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.c,
22583 config/cris/cris.h, config/fr30/fr30.c, config/fr30/fr30.h,
22584 config/frv/frv.c, config/i386/i386.c, config/iq2000/iq2000.c,
22585 config/mcore/mcore.c, config/mcore/mcore.h, config/mips/mips.c,
22586 config/mmix/mmix.c, config/mmix/mmix.h, config/rs6000/rs6000.c,
22587 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
22588 config/xtensa/xtensa.c: Use target hook.
22589
22590 2004-07-13 Anthony Heading <aheading@jpmorgan.com>
22591
22592 * configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo.
22593 * configure: Rebuilt.
22594
22595 2004-07-13 Richard Sandiford <rsandifo@redhat.com>
22596
22597 * doc/invoke.texi: Remove documentation for MIPS -mrnames option.
22598 * config/mips/mips.h (mips_reg_names): Don't declare.
22599 (MASK_NAME_REGS): Delete. Shuffle other MASK_* values down.
22600 (TARGET_NAME_REGS): Delete.
22601 (TARGET_SWITCHES): Remove -mrnames.
22602 (REGISTER_NAMES): Initialise with the old contents of mips_reg_names[].
22603 (ADDITIONAL_REGISTER_NAMES): Remove entries for names mentioned
22604 in REGISTER_NAMES.
22605 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Delete.
22606 (override_options): Remove handling of TARGET_NAME_REGS.
22607
22608 2004-07-13 Richard Sandiford <rsandifo@redhat.com>
22609
22610 * config/mips/mips.h (TARGET_*): Boolify.
22611
22612 2004-07-12 Nick Clifton <nickc@redhat.com>
22613
22614 * config.gcc: Add sh-*-symbianelf target.
22615 * config/sh/sh.c: Add new target macros:
22616 TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING,
22617 TARGET_CXX_IMPORT_EXPORT_CLASS.
22618 (sh_file_start): Create a definition of the .directive section.
22619 (sh_attribute): Add dllimport and dllexport attributes.
22620 * config/sh/symbian-pre.h: New file.
22621 * config/sh/symbian-post.h: New file.
22622 * config/sh/symbian.c: New file. Contains Symbian specific
22623 functions.
22624 * config/sh/sh-protos.h: Add prototypes for new functions
22625 provided by symbian.c.
22626 * config/sh/t-symbian: New file.
22627 * doc/extend.texi: Document support for dllimport and dllexport
22628 attributes by the sh-symbianelf target.
22629
22630 2004-07-12 James E Wilson <wilson@specifixinc.com>
22631
22632 * Makefile.in (AR): Use @AR@ not ar.
22633 (NM): New.
22634 (AR_FOR_TARGET): Use $(AR) not ar for native.
22635 (NM_FOR_TARGET): Use $(NM) not nm for native.
22636 * configure.ac: Add AC_CHECK_PROG calls for NM and AR.
22637 * configure: Regenerate.
22638
22639 2004-07-12 David S. Miller <davem@nuts.davemloft.net>
22640
22641 * config/sparc/sparc.md (ashlsi3): Eliminate const 1
22642 special case.
22643 (ashldi3_sp64): Likewise.
22644
22645 2004-07-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22646
22647 PR target/16477
22648 * pa.c (function_arg): Update comment.
22649 * pa.h (BLOCK_REG_PADDING): Define.
22650
22651 2004-07-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
22652
22653 PR tree-optimization/16461
22654 * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
22655 arguments of phi nodes.
22656
22657 2004-07-12 Devang Patel <dpatel@apple.com>
22658
22659 * doc/invoke.texi (Darwin Options): Document -gused and -gfull.
22660
22661 2004-07-12 Steve Ellcey <sje@cup.hp.com>
22662
22663 * function.c (expand_function_start): Ensure r_save is in Pmode.
22664 * calls.c (prepare_call_address): Ensure static_chain_value is
22665 in Pmode.
22666 * builtins.c (expand_builtin_nonlocal_goto): Ensure r_label and
22667 r_save_area are in Pmode.
22668 * config/ia64/ia64.c (ia64_initialize_trampoline): Ensure addr,
22669 fnaddr, and static_chain are in Pmode.
22670
22671 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
22672
22673 PR target/16445
22674 * config/ia64/ia64.c (bundling): Don't count ignored insns.
22675
22676 2004-07-12 Richard Henderson <rth@redhat.com>
22677
22678 * target.h (struct gcc_target): Move gimplify_va_arg_expr
22679 next to build_builtin_va_list.
22680 * target-def.h (TARGET_GIMPLIFY_VA_ARG_EXPR): Update to match.
22681 * builtins.c (gimplify_va_arg_expr): Likewise.
22682 * gimplify.c (copy_if_shared_r): Likewise.
22683
22684 2004-07-12 Alexandre Oliva <aoliva@redhat.com>
22685
22686 * passes.c (rest_of_decl_compilation): Don't defer call of
22687 assemble_variable if its DECL_RTL is already set.
22688
22689 2004-07-12 Sebastian Pop <pop@cri.ensmp.fr>
22690
22691 * cfgloop.h (struct loop): Add nb_iterations field.
22692 (current_loops): Declare.
22693 * tree-chrec.c (chrec_not_analyzed_yet,
22694 chrec_dont_know, chrec_known, count_ev_in_wider_type,
22695 chrec_contains_symbols_defined_in_loop): Remove the temporary
22696 hooks.
22697 * tree-flow-inline.h (loop_containing_stmt): New function.
22698 * tree-scalar-evolution.c: Add implementation.
22699 * tree-scalar-evolution.h: Add declarations.
22700
22701 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
22702
22703 PR rtl-optimization/15921
22704 * Makefile.in (global.o): Add recog.h.
22705
22706 * global.c (recog.h): Add the include-clause.
22707 (bb_info): New member earlyclobber.
22708 (allocate_bb_info, free_bb_info): Initialize/finish the new
22709 member.
22710 (earlyclobber_regclass, earlyclobber_regclass_length): The new
22711 global variables.
22712 (check_earlyclobber, regclass_intersect,
22713 mark_reg_use_for_earlyclobber, mark_reg_use_for_earlyclobber_1):
22714 New functions.
22715 (calculate_local_reg_bb_info): Calculate value of earlyclobber.
22716 (make_accurate_live_analysis): Modify pavin.
22717
22718 2004-07-12 Diego Novillo <dnovillo@redhat.com>
22719
22720 * tree-cfg.c (find_taken_edge): Statically compute the truth
22721 value of a predicate comparing an SSA_NAME to itself.
22722
22723 2004-07-12 Roger Sayle <roger@eyesopen.com>
22724
22725 * config/rs6000/rs6000.c (rs6000_rtx_costs): Indicate that the
22726 rs6000 doesn't have shift-and-add or shift-and-sub instructions
22727 by returning the cost of a multiplication plus an addition.
22728
22729 2004-07-12 Paolo Bonzini <bonzini@gnu.org>
22730
22731 PR tree-optimization/14107
22732 * gimplify.c (gimplify_return_expr): Accept a
22733 RETURN_EXPR with an error argument.
22734 * tree-optimize.c (init_tree_optimization_passes):
22735 Run pass_warn_function_return at -O0.
22736
22737 2004-07-12 Roger Sayle <roger@eyesopen.com>
22738
22739 * doc/invoke.texi: Correct -fasynchronous-unwind-tables option
22740 index entry.
22741
22742 2004-07-12 Richard Sandiford <rsandifo@redhat.com>
22743
22744 * config/mips/mips.c (mips_use_dfa_pipeline_interface): Delete.
22745 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
22746 * config/mips/3000.md: Add copyright notice. Remove automota and
22747 function units; use generic ones instead. Only define reservations
22748 for things that are different from generic.md. Extend each clause
22749 to include r3900.
22750 * config/mips/{4000,4100,4300,4600,5000,6000,generic}.md: New files.
22751 * config/mips/mips.md: Include them. Remove define_function_units.
22752 (alu, imuldiv): New automata and units.
22753
22754 2004-07-12 Ben Elliston <bje@au.ibm.com>
22755
22756 * doc/invoke.texi (Optimize Options): Document -frename-registers
22757 not being enabled by default at -O3.
22758
22759 2004-07-11 Roger Sayle <roger@eyesopen.com>
22760
22761 * fold-const.c (fold) <PLUS_EXPR>: Canonicalize X + -C as X - C for
22762 floating point additions, to keep real immediate constant positive.
22763 <MINUS_EXPR>: For floating point subtractions, only transform X - -C
22764 into X + C, and leave positive real constants as X - C.
22765
22766 2004-07-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22767
22768 * pa.c (hppa_gimplify_va_arg_expr): Remove comment.
22769
22770 2004-07-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
22771
22772 PR tree-optimization/15654
22773 * tree-tailcall.c (eliminate_tail_call): Remove unreachable code.
22774
22775 2004-07-11 Roger Sayle <roger@eyesopen.com>
22776
22777 * builtins.c (fold_builtin_fputs): Don't bother converting the
22778 return type to integer_type_node, as we've already checked that
22779 the result will be ignored.
22780
22781 * tree-eh.c (tree_could_trap_p): Add support for -ftrapv such
22782 that signed addition, subtraction, multiplication, division,
22783 remainder, negation and absolute value may potentially trap.
22784
22785 * fold-const.c (fold_ignored_result): New function to strip
22786 non-side-effecting tree nodes from an expression whose result
22787 is ignored.
22788 (fold_convert): Call fold_ignored_result when casting a value
22789 to VOID_TYPE.
22790 (omit_one_operand): Call fold_ignored_result on the "omitted"
22791 operand when building a COMPOUND_EXPR.
22792 (pedantic_omit_one_operand): Likewise.
22793 * tree.h (fold_ignored_result): Prototype here.
22794 * tree-ssa-ccp.c (ccp_fold_builtin): Call fold_ignored_result
22795 when we're going to ignore the result.
22796
22797 2004-07-11 Richard Henderson <rth@redhat.com>
22798
22799 PR tree-opt/16383
22800 * tree-ssa-ccp.c (fold_stmt_r): Split out...
22801 * tree.c (fields_compatible_p, find_compatible_field): ... new.
22802 * tree.h (fields_compatible_p, find_compatible_field): Declare.
22803 * tree-sra.c (sra_hash_tree): Hash fields by offset.
22804 (sra_elt_eq): Use fields_compatible_p.
22805 (generate_one_element_ref): Use find_compatible_field.
22806
22807 2004-07-11 Richard Henderson <rth@redhat.com>
22808
22809 PR tree-opt/16422
22810 * tree-sra.c (generate_one_element_init): New.
22811 (generate_element_init): Use it.
22812 (scalarize_init): Push/pop gimplify context around it.
22813 (find_new_referenced_vars_1, find_new_referenced_vars): New.
22814 * gimplify.c (gimplify_expr): Allow SSA_NAME.
22815
22816 2004-07-11 Roger Sayle <roger@eyesopen.com>
22817
22818 * rtlanal.c (insn_rtx_cost): New function, moved and renamed from
22819 combine.c's combine_insn_cost.
22820 * rtl.h (insn_rtx_cost): Prototype here.
22821 * combine.c (combine_insn_cost): Delete function.
22822 (combine_validate_cost): Update callers of combine_insn_cost to
22823 call insn_rtx_cost instead.
22824 (combine_instructions): Likewise. Use NONJUMP_INSN_P to avoid
22825 requesting the rtx_cost of call and/or jump instructions.
22826
22827 * ifcvt.c (total_bb_rtx_cost): Use insn_rtx_cost instead of calling
22828 rtx_cost directly. Don't request/use the cost of call or jump
22829 instructions. Return -1 if the cost of any instruction can't be
22830 determined (or the BB contains a function call).
22831 (find_if_case_1): Abort transformation if total_bb_rtx_cost returns
22832 -1 (i.e. can't determine the cost of any instruction or the basic
22833 block contains a subroutine call).
22834 (find_if_case_2): Likewise.
22835
22836 2004-07-11 Roger Sayle <roger@eyesopen.com>
22837
22838 * rs6000.c (struct processor_costs): Change semantics of fields to
22839 include the COST_N_INSNS scaling, and update all initializers.
22840 (rs6000_rtx_costs): Don't use COSTS_N_INSNS on rs6000_cost fields.
22841 Use COSTS_N_INSNS(1) for NOT, SIGN_EXTEND, ZERO_EXTEND and COMPARE.
22842 Use rs6000_cost->fp for both FLOAT_TRUNCATE and UNSPEC_FRSP. When
22843 optimizing for size, use COSTS_N_INSNS(1) for CALL and IF_THEN_ELSE.
22844
22845 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
22846
22847 * LANGUAGES: Remove obsolete information.
22848
22849 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
22850
22851 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and
22852 SIGBUS signal frames, the PSW address points *to* the faulting
22853 instruction, not after it.
22854
22855 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
22856
22857 * config/s390/s390.c (legitimize_tls_address): Handle constant offsets
22858 added to TLS symbol addresses.
22859
22860 2004-07-11 Richard Henderson <rth@redhat.com>
22861
22862 * expmed.c (init_expmed): Use stack-local structures for
22863 temporary rtl. Don't recognize shifts.
22864
22865 2004-07-11 Richard Henderson <rth@redhat.com>
22866
22867 * expr.c (store_expr): Don't fiddle subreg promotion for types
22868 with precision smaller than the mode.
22869
22870 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
22871
22872 * tree.h (all_types_permanent): Remove.
22873
22874 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
22875
22876 * langhooks.h (estimate_num_insns, pushlevel, poplevel, set_block,
22877 maybe_build_cleanup, update_decl_after_saving): Remove hooks.
22878 * langhooks.c (lhd_clear_binding_stack): Remove.
22879 * langhooks-def.h (lhd_clear_binding_stack,
22880 LANG_HOOKS_MAYBE_BUILD_CLEANUP,
22881 LANG_HOOKS_UPDATE_DECL_AFTER_SAVING,
22882 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, LANG_HOOKS_PUSHLEVEL,
22883 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
22884 (LANG_HOOKS_CLEAR_BINDING_STACK): Define to lhd_do_nothing.
22885 * system.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
22886 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_SET_BLOCK,
22887 LANG_HOOKS_MAYBE_BUILD_CLEANUP,
22888 LANG_HOOKS_UPDATE_DECL_AFTER_SAVING, LANG_HOOKS_POPLEVEL): Poison.
22889 * tree.h (poplevel): Don't declare.
22890 * c-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
22891 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
22892 * objc/objc-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK,
22893 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
22894 Remove.
22895
22896 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
22897
22898 PR tree-optimization/16437
22899 * c-common.c (shorten_compare): Don't mark result of conversion to
22900 narrower signed type as overflowing.
22901 * fold-const.c (decode_field_reference): Determine whether
22902 signedness comes from outer type using precision rather than size.
22903
22904 2004-07-11 Phil Edwards <phil@codesourcery.com>
22905
22906 * configure.ac: Alphabetize --enable-checking list, add
22907 missing valgrind entry.
22908 * configure: Regenerate.
22909
22910 2004-07-11 Phil Edwards <phil@codesourcery.com>
22911
22912 * doc/install.texi (Testing): Fix syntax in "make check" example.
22913
22914 2004-07-10 James E Wilson <wilson@specifixinc.com>
22915
22916 * config/gofast.h (gofast_maybe_init_libfuncs): Use SImode for litodp.
22917
22918 2004-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
22919
22920 PR rtl-optimization/16001
22921 * loop-iv.c (iv_number_of_iterations): Prevent copy propagation in
22922 niter_expr.
22923
22924 2004-07-10 Geoffrey Keating <geoffk@apple.com>
22925
22926 * config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.
22927
22928 2004-07-10 Steve Kargl <sgk@troutmask.apl.washington.edu>
22929 James Morrison <phython@gcc.gnu.org>
22930
22931 * doc/contrib.texi (Contributors): Add gfortran contributors and
22932 fix a couple of typos.
22933
22934 2004-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
22935
22936 PR rtl-optimization/15387
22937 * calls.c (check_sibcall_argument_overlap_1): Handle pointers
22938 to incoming args space correctly.
22939
22940 2004-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22941
22942 * pa.c (output_indirect_call): Only use %r2 as the link register in
22943 indirect calls with the long PA 2.0 pc-relative branch.
22944
22945 2004-07-10 Daniel Jacobowitz <dan@debian.org>
22946
22947 * config/i386/i386.c (override_options): Pick a 64-bit CPU
22948 for the default tuning if TARGET_64BIT.
22949
22950 2004-07-10 Richard Henderson <rth@redhat.com>
22951
22952 * builtins.c (std_gimplify_va_arg_expr): Widen align/boundary
22953 to HOST_WIDE_INT. Fold pad-args-down arithmetic.
22954
22955 2004-07-10 Jakub Jelinek <jakub@redhat.com>
22956
22957 * expr.h (store_bit_field, extract_bit_field): Remove last argument.
22958 * expmed.c (store_bit_field, extract_bit_field): Remove last
22959 argument.
22960 * builtins.c (expand_builtin_signbit): Adjust callers.
22961 * optabs.c (expand_vector_binop, expand_vector_unop): Likewise.
22962 * calls.c (store_unaligned_arguments_into_pseudos): Likewise.
22963 * ifcvt.c (noce_emit_move_insn): Likewise.
22964 * stmt.c (expand_return): Likewise.
22965 * expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg,
22966 store_field, expand_expr_real_1): Likewise.
22967
22968 2004-07-10 Richard Henderson <rth@redhat.com>
22969
22970 * builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.
22971
22972 2004-07-09 Mike Stump <mrs@apple.com>
22973
22974 * config/darwin.c (no_dead_strip): Add.
22975 (HAVE_DEAD_STRIP): Add.
22976 (darwin_emit_unwind_label): Ensure that we don't dead code strip
22977 the .eh label.
22978
22979 2004-07-09 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
22980
22981 * tree-ssa-loop-im.c: New file.
22982 * Makefile.in (tree-ssa-loop-im.o): Add.
22983 * cfgloop.c (superloop_at_depth): New function.
22984 * cfgloop.h (superloop_at_depth): Declare.
22985 * common.opt (ftree-lim): New flag.
22986 * expr.c (array_ref_up_bound): New function.
22987 * params.def (PARAM_LIM_EXPENSIVE): New parameter.
22988 * timevar.def (TV_LIM): New timevar.
22989 * tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when
22990 computing immediate uses of a phi node.
22991 * tree-flow.h (struct tree_ann_common_d): Add aux field.
22992 (loop_commit_inserts, for_each_index, tree_ssa_lim): Declare.
22993 * tree-optimize.c (init_tree_optimization_passes): Add pass_lim.
22994 * tree-pass.h (pass_lim): Declare.
22995 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New
22996 functions.
22997 (pass_lim): New pass structure.
22998 * tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly.
22999 * tree.c (in_array_bounds_p): New function.
23000 * tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs.
23001 (in_array_bounds_p, array_ref_up_bound): Declare.
23002 * doc/invoke.texi (-ftree-lim, --param lim-expensive): Document.
23003 * doc/passes.texi (tree-ssa-loop-im.c): Document.
23004
23005 2004-07-09 Richard Henderson <rth@redhat.com>
23006
23007 * builtins.c (expand_builtin_stpcpy): Don't modify len.
23008
23009 * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
23010 with prejudice.
23011
23012 2004-07-10 Kelley Cook <kcook@gcc.gnu.org>
23013
23014 * flags.h: Delete redundant prototypes that are being generated
23015 in options.h from common.opt.
23016 * common.opt: Add in the expository comments formerly in flags.h.
23017
23018 2004-07-09 Jan Beulich <jbeulich@novell.com>
23019
23020 * config/i386/i386.c (init_cumulative_args): Set mmx/sse registers
23021 available for use only when TARGET_MMX/_SSE is set, and check for
23022 variable argument function if any register count is non-zero.
23023 (function_arg): Correctly suppress repeated warnings for passing SSE
23024 vectors are arguments without SSE enabled.
23025 (ix86_function_arg_boundary): Without SSE enabled, the use of what
23026 would be SSE register modes does no longer influence the alignment.
23027
23028 2004-07-09 Richard Henderson <rth@redhat.com>
23029
23030 * builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.
23031 Always align upward to arg boundary. Use size_in_bytes/round_up.
23032 Maintain type-correctness of constants.
23033 * stor-layout.c (round_up, round_down): Special-case powers of 2.
23034
23035 2004-07-09 David S. Miller <davem@nuts.davemloft.net>
23036
23037 * config/sparc/sparc.c (*_costs): Scale instruction costs
23038 by COSTS_N_INSNS.
23039 (sparc_rtx_costs): Adjust as appropriate.
23040
23041 2004-07-09 Jan Beulich <jbeulich@novell.com>
23042
23043 * config/i386/mm3dnow.h: New.
23044 * config.gcc: Add mm3dnow.h to extra_headers for i?86 and x86-64.
23045
23046 2004-07-09 Richard Henderson <rth@redhat.com>
23047
23048 * simplify-rtx.c (simplify_const_relational_operation): Only
23049 look at bounds of scalar integers.
23050
23051 2004-07-09 Jan Beulich <jbeulich@novell.com>
23052
23053 * config/i386/i386.md (sse2_clflush): Use correct operand for clflush.
23054
23055 2004-07-09 Andrew Pinski <apinski@apple.com>
23056
23057 * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
23058 always referenced.
23059 (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
23060 UOBJC_METACLASS_decl.
23061
23062 2004-07-09 James E Wilson <wilson@specifixinc.com>
23063
23064 PR target/16364
23065 * config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
23066 do return a parallel if hfa_mode == XFmode and mode == TImode.
23067
23068 2004-07-09 Jan Beulich <jbeulich@novell.com>
23069
23070 * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes
23071 permissible for unary plus.
23072
23073 2004-07-09 Jan Beulich <jbeulich@novell.com>
23074
23075 * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.
23076 (BT_FN_UINT): Rename from BT_FN_UNSIGNED.
23077 (BT_FN_PTR_UINT): Rename from BT_FN_PTR_UNSIGNED.
23078 (BT_ULONG, BT_ULONGLONG, BT_UINTMAX, BT_FN_INT_UINT, BT_FN_INT_ULONG,
23079 BT_FN_INT_ULONGLONG, BT_FN_INT_INTMAX, BT_FN_INT_UINTMAX): New.
23080 * builtins.def (BUILTIN_CLZxxx, BUILTIN_CTXxxx, BUILTIN_PARITYxxx,
23081 BUILTIN_POPCOUNTxxx): Arguments are unsigned.
23082 (BUILTIN_xxxIMAX): New.
23083 * builtins.c (expand_builtin): Handle BUILT_IN_FFSIMAX,
23084 BUILT_IN_CLZIMAX, BUILT_IN_CTZIMAX, BUILT_IN_POPCOUNIMAX, and
23085 BUILT_IN_PARITYIMAX.
23086
23087 2004-07-09 David S. Miller <davem@nuts.davemloft.net>
23088
23089 * config/sparc/sparc.h (processor_costs): Define.
23090 (sparc_costs): Declare.
23091 * config/sparc/sparc.c (cypress_costs, supersparc_costs,
23092 hypersparc_costs, sparclet_costs, ultrasparc_costs,
23093 ultrasparc3_costs): New.
23094 (sparc_override_options): Set sparc_costs as appropriate.
23095 (sparc_rtx_costs): Use sparc_costs instead of messy
23096 conditionals.
23097
23098 2004-07-09 Steven Bosscher <stevenb@suse.de>
23099
23100 * doc/md.texi (Processor pipeline description): Mention that
23101 the old pipeline description is deprecated.
23102
23103 * config/rs6000/7450.md (automaton ppc7450): Split up, move
23104 mciu_7450 function unit to...
23105 (automaton ppc7450mciu): ...new automaton.
23106
23107 * haifa-sched.c (insert_schedule_bubbles_p): Remove.
23108 (schedule_block): Don't consider inserting bubbles.
23109 (sched_init): Don't initialize DFA bubbles.
23110 * target-def.h (TARGET_SCHED_INIT_DFA_BUBBLES,
23111 TARGET_SCHED_DFA_BUBBLE): Remove.
23112 * target.h (init_dfa_bubbles, dfa_bubble): Remove hooks.
23113 * doc/tm.texi (TARGET_SCHED_INIT_DFA_BUBBLES,
23114 TARGET_SCHED_DFA_BUBBLE): Remove documentation.
23115
23116 * stmt.c (conditional_context): Remove prototype.
23117 * tree.h (conditional_context): Remove.
23118 * tree-cfg.c (pre_insert_on_edge): Remove.
23119
23120 * c-common.h (c_expand_asm_operands): Remove prototype.
23121 * c-typeck.c (c_expand_asm_operands): Remove.
23122
23123 2004-07-09 Jan Beulich <jbeulich@novell.com>
23124
23125 * config/i386/i386.c (classify_argument): Treat V1xx modes the same as
23126 their base modes. CTImode, TCmode, and XCmode must be passed in memory.
23127 TFmode (__float128) must be is an SSE/SSEUP pair. V2SImode, V4HImode,
23128 and V8QI are class SSE. All sufficiently small remaining vector modes
23129 must be passed in one or two integer registers.
23130 (ix86_libcall_value): TFmode must be returned in xmm0, XCmode must be
23131 returned in memory.
23132 (bdesc_2arg, ix86_init_mmx_sse_builtins): __builtin_ia32_pmuludq and
23133 __builtin_ia32_pmuludq128 have non-uniform argument and return types
23134 and must thus be handled explicitly.
23135 * config/i386/i386.md (*movdi_1_rex64): Add cases for moving between
23136 MMX and XMM regs.
23137 (movv8qi_internal, movv4hi_internal, movv2si_internal,
23138 movv2sf_internal): Permit moving between MMX and XMM registers (since
23139 MMX areguments and return values are passed in XMM registers).
23140 (sse2_umulsidi3): Correct type and mode.
23141
23142 2004-07-09 Richard Henderson <rth@redhat.com>
23143
23144 * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.
23145
23146 2004-07-09 Eric Christopher <echristo@redhat.com>
23147
23148 * config/rs6000/40x.md: Split into two automatons.
23149
23150 2004-07-09 Zack Weinberg <zack@codesourcery.com>
23151 Andrew Pinski <apinski@apple.com>
23152
23153 * c-opts.c (c_common_post_options): Force unit-at-a-time mode
23154 on when we have more than one input file.
23155 (c_common_parse_file): Restore loop over all input files.
23156 Clarify diagnostic for -dy when YYDEBUG wasn't defined.
23157
23158 * c-decl.c (set_type_context): New function.
23159 (pop_scope): Use it to set context of types. When we
23160 encounter a TYPE_DECL, set the context of the attached type too.
23161 (pop_file_scope): Don't call cpp_undef_all here.
23162 (diagnose_mismatched_decls): Do not complain about a second
23163 definition of an 'extern inline' function if it's not in the
23164 same translation unit. Do not complain about inline
23165 declaration after use if the use was in a different
23166 translation unit.
23167 (merge_decls): Don't clobber olddecl's DECL_CONTEXT.
23168 (pushdecl): Do not put DECL_EXTERNAL, !TREE_PUBLIC decls in
23169 the external scope.
23170 (pushdecl_top_level): Likewise.
23171 (grokdeclarator): Clarify what is going on with setting
23172 DECL_EXTERNAL on function types, a little.
23173 (c_write_global_declarations): Don't do anything if
23174 -fsyntax-only or errors have been encountered.
23175
23176 2004-07-09 Zack Weinberg <zack@codesourcery.com>
23177
23178 * vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.
23179
23180 2004-07-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23181
23182 PR target/16459
23183 * pa.c (output_indirect_call): Use %r2 as the link register when
23184 calling $$dyncall with a pc-relative branch.
23185
23186 2004-07-08 Gerald Pfeifer <gerald@pfeifer.com>
23187
23188 * doc/install.texi (Binaries): Mention OpenPKG.
23189
23190 2004-07-09 Diego Novillo <dnovillo@redhat.com>
23191
23192 Fix PR tree-optimization/15555
23193 * tree-dfa.c (dump_variable): If the variable is a pointer
23194 SSA_NAME, also dump its points-to information.
23195 * tree-flow.h (struct ptr_info_def): Add field
23196 is_dereferenced.
23197 (dump_points_to_info_for): Declare.
23198 (debug_points_to_info_for): Declare.
23199 * tree-optimize.c (init_tree_optimization_passes): Add a
23200 second alias analysis pass after DOM2.
23201 Move pass_del_pta to a later spot.
23202 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
23203 create a name tags when we find a dereferenced pointer. Just
23204 mark the pointer dereferenced.
23205 (collect_points_to_info_for): Move code to clear points-to
23206 information to create_name_tags.
23207 (create_name_tags): New function.
23208 (compute_flow_sensitive_aliasing): Call it.
23209 (setup_pointers_and_addressables): Mark type tags for renaming
23210 here instead of ...
23211 (create_memory_tag): ... here.
23212 (merge_pointed_to_info): Do not merge PT_MALLOC attributes.
23213 (dump_points_to_info_for): Declare extern.
23214 (debug_points_to_info_for): New function.
23215
23216 2004-07-09 Paolo Bonzini <bonzini@gnu.org>
23217
23218 * config/arc/arc.md: Switch to DFA-based scheduler description.
23219 * config/arc/arc.c: Switch to DFA-based scheduler description.
23220
23221 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
23222
23223 * arm/unknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame
23224 pointer.
23225
23226 2004-07-09 Richard Henderson <rth@redhat.com>
23227
23228 * config/xtensa/xtensa-protos.h (xtensa_va_arg): Remove.
23229 * config/xtensa/xtensa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23230 (xtensa_gimplify_va_arg_expr): Rewrite from xtensa_va_arg.
23231 * config/xtensa/xtensa.h (EXPAND_BUILTIN_VA_ARG): Remove.
23232
23233 * config/v850/v850-protos.h (v850_va_arg): Remove.
23234 * config/v850/v850.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23235 (v850_gimplify_va_arg_expr): Rewrite from v850_va_arg.
23236 * config/v850/v850.h (EXPAND_BUILTIN_VA_ARG): Remove.
23237 (FUNCTION_ARG_PASS_BY_REFERENCE): Handle variable size types.
23238 (FUNCTION_ARG_CALLEE_COPIES): Use FUNCTION_ARG_PASS_BY_REFERENCE.
23239
23240 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
23241
23242 PR target/12133
23243 * arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
23244 and DImode to use +/-4k offset.
23245
23246 2004-07-09 Richard Henderson <rth@redhat.com>
23247
23248 * config/stormy16/stormy16-protos.h (xstormy16_expand_builtin_va_arg):
23249 Remove.
23250 * config/stormy16/stormy16.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23251 (xstormy16_gimplify_va_arg_expr): Rewrite from
23252 xstormy16_expand_builtin_va_arg.
23253 * config/stormy16/stormy16.h (EXPAND_BUILTIN_VA_ARG): Remove.
23254
23255 * config/sparc/sparc-protos.h (sparc_va_arg): Remove.
23256 * config/sparc/sparc.c (sparc_gimplify_va_arg): Mark static.
23257
23258 * config/sh/sh-protos.h (sh_va_arg): Remove.
23259 * config/sh/sh.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23260 (sh_gimplify_va_arg_expr): Rewrite from sh_va_arg.
23261 * config/sh/sh.h (EXPAND_BUILTIN_VA_ARG): Remove.
23262
23263 * config/pa/pa-protos.h (hppa_va_arg): Remove.
23264 * config/pa/pa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23265 (hppa_gimplify_va_arg_expr): Rewrite from hppa_va_arg.
23266 * config/pa/pa.h (EXPAND_BUILTIN_VA_ARG): Remove.
23267
23268 * config/mn10300/mn10300-protos.h (mn10300_va_arg): Remove.
23269 * config/mn10300/mn10300.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23270 (mn10300_gimplify_va_arg_expr): Rewrite from mn10300_va_arg.
23271 * config/mn10300/mn10300.h (EXPAND_BUILTIN_VA_ARG): Remove.
23272
23273 2004-07-09 Eric Botcazou <ebotcazou@libertysurf.fr>
23274
23275 * config/sparc/sparc.md (return): Rewrite length formula.
23276 * config/sparc/sparc.c (output_return): Pass 1 as 5th
23277 argument to final_scan_insn when in a delay slot.
23278 (output_sibcall): Likewise.
23279
23280 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
23281
23282 * arm.c (arm_cpp_interwork): New variable.
23283 (arm_override_options): Set it if TARGET_INTERWORK was on the command
23284 line.
23285 * arm.h (arm_cpp_interwork): Declare it.
23286 (TARGET_CPU_CPP_BUILTINS): Use it to control definition of
23287 __THUMB_INTERWORK__ in the preprocessor.
23288
23289 2004-07-09 Nathan Sidwell <nathan@codesourcery.com>
23290
23291 * vec.h (VEC_T_alloc): Fix MEM_STAT_DECL pasto.
23292
23293 2004-07-09 Eric Botcazou <ebotcazou@libertysurf.fr>
23294
23295 PR target/16416
23296 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): New macro.
23297 Override default settings to account for -m32 and -m64.
23298
23299 2004-07-08 Randolph Chung <tausq@debian.org>
23300
23301 * pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
23302
23303 2004-07-09 Alexandre Oliva <aoliva@redhat.com>
23304
23305 * builtins.c (fold_builtin_strncpy): Make sure len is a constant
23306 before comparing it as such.
23307
23308 2004-07-08 Richard Henderson <rth@redhat.com>
23309
23310 * builtins.c (std_gimplify_va_arg_expr): Hoist valist into a
23311 temporary. Use bit arithmetic to align.
23312
23313 2004-07-08 Jerry Quinn <jlquinn@optonline.net>
23314
23315 * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p,
23316 nonlocal_set_p, init_alias_analysis): Use, LABEL_P, JUMP_P, CALL_P,
23317 NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P.
23318 * bb-reorder.c (mark_bb_for_unlikely_executed_section,
23319 add_labels_and_missing_jumps, find_jump_block,
23320 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
23321 Likewise.
23322 * bt-load.c (btr_referenced_p, compute_defs_uses_and_gen,
23323 link_btr_uses, move_btr_def): Likewise.
23324 * builtins.c (expand_builtin_longjmp, expand_builtin_nonlocal_goto,
23325 expand_builtin_expect_jump): Likewise.
23326 * caller-save.c (save_call_clobbered_regs, insert_one_insn): Likewise.
23327 * calls.c (expand_call, emit_library_call_value_1): Likewise.
23328 * cfganal.c (forwarder_block_p): Likewise.
23329 * cfgbuild.c (inside_basic_block_p, count_basic_blocks,
23330 make_label_edge, rtl_make_eh_edge, make_edges, find_basic_blocks_1,
23331 find_bb_boundaries): Likewise.
23332 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
23333 merge_blocks_move_predecessor_nojumps,
23334 merge_blocks_move_successor_nojumps, insns_match_p,
23335 flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
23336 try_optimize_cfg): Likewise.
23337 * cfgexpand.c (expand_block, construct_exit_block): Likewise.
23338 * cfglayout.c (skip_insns_after_block, label_for_bb,
23339 record_effective_endpoints, insn_locators_initialize,
23340 fixup_reorder_chain, update_unlikely_executed_notes): Likewise.
23341 * cfgmainloop.c (create_loop_notes): Likewise.
23342 * cfgrtl.c (delete_insn, delete_insn_chain,
23343 create_basic_block_structure, rtl_delete_block, free_bb_for_insn,
23344 update_bb_for_insn, rtl_merge_blocks, rtl_can_merge_blocks,
23345 block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
23346 redirect_branch_edge, force_nonfallthru_and_redirect,
23347 rtl_tidy_fallthru_edge, back_edge_of_syntactic_loop_p,
23348 rtl_split_edge, commit_one_edge_insertion, print_rtl_with_bb,
23349 update_br_prob_note, rtl_verify_flow_info_1, rtl_verify_flow_info,
23350 purge_dead_edges, cfg_layout_redirect_edge_and_branch,
23351 cfg_layout_delete_block, cfg_layout_can_merge_blocks_p,
23352 cfg_layout_merge_blocks, rtl_block_ends_with_call_p,
23353 need_fake_edge_p, rtl_flow_call_edges_add): Likewise.
23354 * combine.c (combine_instructions, can_combine_p, try_combine,
23355 find_split_point, record_dead_and_set_regs, reg_dead_at_p,
23356 distribute_notes, distribute_links, insn_cuid): Likewise.
23357 * cse.c (fold_rtx, cse_insn, cse_around_loop,
23358 invalidate_skipped_block, cse_set_around_loop,
23359 cse_end_of_basic_block, cse_main, cse_basic_block,
23360 cse_condition_code_reg): Likewise.
23361 * cselib.c (cselib_process_insn): Likewise.
23362 * ddg.c (create_ddg): Likewise.
23363 * df.c (df_insn_refs_record, df_bb_rd_local_compute, df_insns_modify):
23364 Likewise.
23365 * dwarf2out.c (dwarf2out_stack_adjust, dwarf2out_frame_debug,
23366 gen_label_die, dwarf2out_var_location): Likewise.
23367 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn,
23368 next_insn, previous_insn, next_nonnote_insn, prev_nonnote_insn,
23369 last_call_insn, active_insn_p, next_label, prev_label,
23370 link_cc0_insns, next_cc0_user, try_split, add_insn_after,
23371 add_insn_before, remove_insn, add_function_usage_to,
23372 reorder_insns, find_line_note, remove_unnecessary_notes,
23373 emit_insn_after_1, classify_insn): Likewise.
23374 * except.c (convert_from_eh_region_ranges_1, emit_to_new_bb_before,
23375 connect_post_landing_pads, sjlj_mark_call_sites,
23376 sjlj_emit_function_enter, sjlj_emit_function_exit, reachable_handlers,
23377 can_throw_internal, can_throw_external, set_nothrow_function_flags,
23378 convert_to_eh_region_ranges): Likewise.
23379 * explow.c (optimize_save_area_alloca): Likewise.
23380 * expr.c (expand_expr_real): Likewise.
23381 * final.c (insn_current_reference_address, compute_alignments,
23382 shorten_branches, final, scan_ahead_for_unlikely_executed_note,
23383 final_scan_insn, output_asm_label, leaf_function_p): Likewise.
23384 * flow.c (first_insn_after_basic_block_note, delete_dead_jumptables,
23385 propagate_block_delete_insn, propagate_one_insn,
23386 init_propagate_block_info, propagate_block, libcall_dead_p,
23387 mark_set_1, attempt_auto_inc, find_auto_inc, try_pre_increment):
23388 Likewise.
23389 * function.c (instantiate_virtual_regs, reorder_blocks_1,
23390 expand_function_start, expand_function_end, contains,
23391 thread_prologue_and_epilogue_insns,
23392 reposition_prologue_and_epilogue_notes): Likewise.
23393 * gcse.c (constprop_register, bypass_conditional_jumps,
23394 insert_insn_end_bb, gcse_after_reload): Likewise.
23395 * genemit.c (gen_expand, gen_split): Likewise.
23396 * genpeep.c (gen_peephole, main): Likewise.
23397 * global.c (build_insn_chain): Likewise.
23398 * graph.c (node_data, print_rtl_graph_with_bb): Likewise.
23399 * haifa-sched.c (unlink_other_notes, unlink_line_notes,
23400 get_block_head_tail, no_real_insns_p, rm_line_notes, save_line_notes,
23401 restore_line_notes, rm_redundant_line_notes, rm_other_notes,
23402 ok_for_early_queue_removal, set_priorities, sched_init): Likewise.
23403 * ifcvt.c (count_bb_insns, first_active_insn, last_active_insn,
23404 cond_exec_process_insns, end_ifcvt_sequence, noce_process_if_block,
23405 merge_if_block, block_jumps_and_fallthru_p, find_if_block,
23406 dead_or_predicable): Likewise.
23407 * integrate.c (try_constants): Likewise.
23408 * jump.c (rebuild_jump_labels, cleanup_barriers,
23409 purge_line_number_notes, init_label_info, mark_all_labels,
23410 squeeze_notes, get_label_before, get_label_after,
23411 reversed_comparison_code_parts, simplejump_p, pc_set,
23412 returnjump_p, onlyjump_p, follow_jumps, mark_jump_label,
23413 delete_barrier, delete_prior_computation, delete_computation,
23414 delete_related_insns, delete_for_peephole, redirect_jump):
23415 Likewise.
23416 * lcm.c (optimize_mode_switching): Likewise.
23417 * local-alloc.c (validate_equiv_mem, update_equiv_regs, block_alloc):
23418 Likewise.
23419 * loop-doloop.c (doloop_valid_p, doloop_optimize): Likewise.
23420 * loop-invariant.c (find_exits, find_invariants_bb): Likewise.
23421 * loop-iv.c (simplify_using_assignment): Likewise.
23422 * loop.c (compute_luids, loop_optimize, scan_loop, libcall_other_reg,
23423 libcall_benefit, skip_consec_insns, move_movables, prescan_loop,
23424 find_and_verify_loops, labels_in_range_p, for_each_insn_in_loop,
23425 loop_bivs_init_find, strength_reduce, check_insn_for_bivs,
23426 check_insn_for_givs, check_final_value, update_giv_derive,
23427 basic_induction_var, product_cheap_p, check_dbra_loop,
23428 loop_insn_first_p, last_use_this_basic_block,
23429 canonicalize_condition, get_condition, loop_regs_scan, load_mems,
23430 try_copy_prop, LOOP_BLOCK_NUM, loop_dump_aux): Likewise.
23431 * modulo-sched.c (doloop_register_get, find_line_note, sms_schedule,
23432 sms_schedule_by_order): Likewise.
23433 * optabs.c (emit_no_conflict_block, emit_libcall_block): Likewise.
23434 * postreload.c (reload_cse_simplify_operands, reload_combine,
23435 reload_cse_move2add): Likewise.
23436 * predict.c (can_predict_insn_p, estimate_probability,
23437 expected_value_to_br_prob, process_note_predictions): Likewise.
23438 * print-rtl.c (print_rtx, print_rtl, print_rtl_single): Likewise.
23439 * profile.c (branch_prob): Likewise.
23440 * ra-build.c (live_out_1, livethrough_conflicts_bb,
23441 detect_webs_set_in_cond_jump): Likewise.
23442 * ra-debug.c (ra_print_rtx_object, ra_debug_insns,
23443 ra_print_rtl_with_bb): Likewise.
23444 * ra-rewrite.c (insert_stores, rewrite_program2): Likewise.
23445 * recog.c (next_insn_tests_no_inequality, find_single_use,
23446 split_all_insns, peephole2_optimize, if_test_bypass_p): Likewise.
23447 * reg-stack.c (next_flags_user, record_label_references,
23448 emit_swap_insn, swap_rtx_condition, subst_stack_regs,
23449 compensate_edge, convert_regs_1): Likewise.
23450 * regclass.c (scan_one_insn): Likewise.
23451 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
23452 regmove_optimize, fixup_match_1, single_set_for_csa,
23453 combine_stack_adjustments_for_block): Likewise.
23454 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Likewise.
23455 * reload.c (find_reloads, find_reloads_address_1, subst_reloads,
23456 find_equiv_reg): Likewise.
23457 * reload1.c (reload, calculate_needs_all_insns, set_label_offsets,
23458 reload_as_needed, emit_input_reload_insns, do_output_reload,
23459 delete_output_reload, delete_address_reloads_1, fixup_abnormal_edges):
23460 Likewise.
23461 * reorg.c (find_end_label, emit_delay_sequence,
23462 delete_from_delay_slot, delete_scheduled_jump, optimize_skip,
23463 get_jump_flags, rare_destination, mostly_true_jump,
23464 try_merge_delay_insns, redundant_insn, own_thread_p,
23465 fill_simple_delay_slots, fill_slots_from_thread,
23466 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
23467 dbr_schedule): Likewise.
23468 * resource.c (find_basic_block, next_insn_no_annul,
23469 find_dead_or_set_registers, mark_target_live_regs): Likewise.
23470 * rtl.h (RTX_PREV): Likewise.
23471 * rtlanal.c (global_reg_mentioned_p, no_labels_between_p,
23472 no_jumps_between_p, reg_used_between_p, reg_referenced_between_p,
23473 reg_set_p, find_last_value, dead_or_set_regno_p, find_reg_fusage,
23474 find_regno_fusage, pure_call_p, replace_label, rtx_referenced_p_1,
23475 tablejump_p, computed_jump_p, insns_safe_to_move_p,
23476 find_first_parameter_load, can_hoist_insn_p): Likewise.
23477 * sched-deps.c (get_condition, add_dependence, sched_analyze_2,
23478 sched_analyze_insn, sched_analyze, add_forward_dependence): Likewise.
23479 * sched-ebb.c (fix_basic_block_boundaries, add_deps_for_risky_insns,
23480 schedule_ebbs): Likewise.
23481 * sched-rgn.c (is_cfg_nonregular, find_conditional_protection,
23482 is_conditionally_protected, can_schedule_ready_p,
23483 add_branch_dependences, debug_dependencies): Likewise.
23484 * stmt.c (emit_nop, expand_start_case, emit_jump_if_reachable):
23485 Likewise.
23486 * unroll.c (unroll_loop, copy_loop_body, back_branch_in_range_p,
23487 reg_dead_after_loop, loop_find_equiv_value, loop_iterations,
23488 set_dominates_use, ujump_to_loop_cont): Likewise.
23489 * var-tracking.c (prologue_stack_adjust, vt_initialize): Likewise.
23490 * varasm.c (output_constant_pool_1): Likewise.
23491
23492 2004-07-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
23493
23494 * tree-scalar-evolution.c: New file.
23495 * tree-scalar-evolution.h: New file.
23496 * tree-ssa-loop-niter.c: New file.
23497 * Makefile.in (SCEV_H): New.
23498 (tree-scalar-evolution.o, tree-ssa-loop-niter.o): Add new files.
23499 * cfgloop.h (struct loop): Add bounds field.
23500 * tree-flow.h (struct tree_niter_desc): New type.
23501 (number_of_iterations_cond, number_of_iterations_exit,
23502 loop_niter_by_eval, find_loop_niter_by_eval,
23503 estimate_numbers_of_iterations, can_count_iv_in_wider_type,
23504 free_numbers_of_iterations_estimates): Declare.
23505 * tree.h (lower_bound_in_type, upper_bound_in_type): Declare.
23506 * params.def (PARAM_MAX_ITERATIONS_TO_TRACK): New parameter.
23507 * doc/invoke.texi (max-iterations-to-track): Document.
23508
23509 2004-07-08 Kaz Kojima <kkojima@gcc.gnu.org>
23510
23511 * config/sh/sh.c (sh_va_arg): Initinalize lab_over.
23512 * config/sh/sh.h (CONST_OK_FOR_J16): Use parentheses.
23513 (MODE_AFTER): Add cast appropriately.
23514 * config/sh/sh.md (movdi splitter): Likewise.
23515 (casesi_worker_2): Add const qualifier appropriately.
23516 (eh_return): Remove unused variable.
23517 (insv): Initialize v;
23518
23519 2004-07-08 Richard Henderson <rth@redhat.com>
23520
23521 * config/mmix/mmix-protos.h (mmix_expand_builtin_va_arg): Remove.
23522 * config/mmix/mmix.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23523 (mmix_gimplify_va_arg_expr): Rewrite from mmix_expand_builtin_va_arg.
23524 * config/mmix/mmix.h (EXPAND_BUILTIN_VA_ARG): Remove.
23525 (FRAME_POINTER_REQUIRED): Use current_function_has_nonlocal_label.
23526
23527 * config/m32r/m32r-protos.h (m32r_va_arg): Remove.
23528 * config/m32r/m32r.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23529 (m32r_gimplify_va_arg_expr): Rewrite from m32r_va_arg.
23530 * config/m32r/m32r.h (EXPAND_BUILTIN_VA_ARG): Remove.
23531
23532 * config/iq2000/iq2000-protos.h (iq2000_va_arg): Remove.
23533 * config/iq2000/iq2000.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23534 (iq2000_gimplify_va_arg_expr): Rewrite from iq2000_va_arg.
23535 * config/iq2000/iq2000.h (EXPAND_BUILTIN_VA_ARG): Remove.
23536
23537 * config/frv/frv-protos.h (frv_expand_builtin_va_arg): Remove.
23538 * config/frv/frv.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23539 (frv_gimplify_va_arg_expr): Rewrite from frv_expand_builtin_va_arg.
23540 * config/frv/frv.h (EXPAND_BUILTIN_VA_ARG): Remove.
23541
23542 * config/i860/i860-protos.h (i860_va_arg): Remove.
23543 * config/i860/i860.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23544 (i860_gimplify_va_arg_expr): Rewrite from i860_va_arg.
23545 * config/i860/i860.h (EXPAND_BUILTIN_VA_ARG): Remove.
23546
23547 2004-05-31 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
23548
23549 * system.h: Prototype getpagesize if missing.
23550 * configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS.
23551 * configure: Regenerate.
23552 * config.in: Regenerate.
23553
23554 2004-07-08 Richard Henderson <rth@redhat.com>
23555
23556 * config/fr30/fr30-protos.h (fr30_va_arg): Remove.
23557 * config/fr30/fr30.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23558 (fr30_gimplify_va_arg_expr): New.
23559 (fr30_pass_by_reference, fr30_pass_by_value, fr30_va_arg): Remove.
23560 * config/fr30/fr30.h (EXPAND_BUILTIN_VA_ARG): Remove.
23561
23562 2004-07-08 Vladimir Makarov <vmakarov@redhat.com>
23563
23564 PR target/16414
23565 * config/ia64/ia64.c (ia64_dfa_new_cycle): Fix typo in comparison
23566 of asm_noperands result.
23567
23568 2004-07-08 Richard Henderson <rth@redhat.com>
23569
23570 * config/cris/cris-protos.h (cris_expand_builtin_va_arg): Remove.
23571 * config/cris/cris.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23572 (cris_gimplify_va_arg_expr): Rewrite from cris_expand_builtin_va_arg.
23573 * config/cris/cris.h (EXPAND_BUILTIN_VA_ARG): Remove.
23574
23575 2004-07-08 Richard Henderson <rth@redhat.com>
23576
23577 * builtins.c (ind_gimplify_va_arg_expr): New.
23578 * tree.h (ind_gimplify_va_arg_expr): Declare.
23579 * config/arc/arc.c (arc_gimplify_va_arg_expr): Use it.
23580
23581 2004-07-08 Jan Beulich <jbeulich@novell.com>
23582
23583 * expmed.c (extract_bit_field): Correct condition to use vec_extract
23584 patterns also on vector elements other than the first one.
23585 * config/i386/i386.md (vec_extractv2df, vec_extractv4sf): Add missing
23586 break statements.
23587
23588 2004-07-08 Geoffrey Keating <geoffk@apple.com>
23589
23590 * config/rs6000/darwin-ldouble.c: Correct reference
23591 to the Linnainmaa paper.
23592
23593 2004-07-08 Richard Henderson <rth@redhat.com>
23594
23595 * config/arc/arc-protos.h (arc_va_arg): Remove.
23596 * config/arc/arc.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23597 (arc_gimplify_va_arg_expr): Rewrite from arc_va_arg.
23598 * config/arc/arc.h (EXPAND_BUILTIN_VA_ARG): Remove.
23599
23600 * config/c4x/c4x-protos.h (c4x_va_arg): Remove.
23601 * config/c4x/c4x.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23602 (c4x_gimplify_va_arg_expr): Rewrite from c4x_va_arg.
23603 * config/c4x/c4x.h (EXPAND_BUILTIN_VA_ARG): Remove.
23604
23605 2004-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23606
23607 * pa.md (prefetch_32, prefetch_64): Simplify constraint checks.
23608
23609 2004-07-08 Zack Weinberg <zack@codesourcery.com>
23610
23611 * c-decl.c (static_ctors, static_dtors): Make static.
23612 (pop_file_scope): Call c_common_write_pch and
23613 cgraph_finalize_compilation_unit here.
23614 (build_cdtor): Moved here from c-objc-common.c; simplify.
23615 (c_write_global_declarations_1): Clarify comment.
23616 (c_write_global_declarations): Close the external scope before
23617 doing anything else. Call build_cdtor, cgraph_optimize, and
23618 mudflap_finish_file here.
23619 * c-lang.c (finish_file): Don't call c_objc_common_finish_file.
23620 Clarify comment.
23621 * c-objc-common.c: No need to include cgraph.h.
23622 (build_cdtor): Moved to c-decl.c.
23623 (c_objc_common_finish_file): Delete.
23624 * c-tree.h: Update to match.
23625 * objc/objc-act.c (finish_file): Don't call c_objc_common_finish_file.
23626 (generate_static_references): Set TREE_USED before calling finish_decl.
23627 Eliminate unnecessary dummy declaration. Call rest_of_decl_compilation
23628 on the static_instances_decl.
23629
23630 2004-07-08 Zack Weinberg <zack@codesourcery.com>
23631
23632 * c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope
23633 decls when there is only one input translation unit.
23634 * langhooks.c (lhd_set_decl_assembler_name): Partially revert
23635 change of 2004-07-05; do not treat declarations with
23636 DECL_CONTEXT a TRANSLATION_UNIT_DECL specially.
23637 * opts.c (cur_in_fname): Delete.
23638 * opts.h: Likewise.
23639 * tree.c: Revert changes of 2004-07-05; no special treatment
23640 for TRANSLATION_UNIT_DECLs.
23641 * Makefile.in (tree.o): Update dependencies.
23642
23643 2004-07-08 Roger Sayle <roger@eyesopen.com>
23644
23645 * builtins.c (fold_builtin_strcpy): Merge functionality from
23646 simplify_builtin_strcpy. Add additional len argument. No longer
23647 static. Remove function prototype.
23648 (fold_builtin_strncpy): Likewise integrate functionality from
23649 simplify_builtin_strncpy. Add additional slen argument. No
23650 longer static. Remove function prototype.
23651 (simplify_builtin_strcy, simplify_builtin_strncpy): Delete.
23652 (simplify_builtin_fputs): Rename to fold_builtin_fputs. Change
23653 types of "ignore" and "unlocked" parameters to bool.
23654 (fold_builtin_1): Add additional ignore argument. Call renamed
23655 fold_builtin_fputs to simplify GCC "fputs" and "fputs_unlocked"
23656 builtins. Update arguments to fold_builtin_strncpy and
23657 fold_builtin_strcpy. Add function prototype.
23658 (fold_builtin): Add additional Boolean ignore argument to pass
23659 to fold_builtin_1.
23660 (simplify_builtin): Call fold_builtin_fputs, fold_builtin_strcpy
23661 and fold_builtin_strncpy instead of simplify_builtin_fputs,
23662 simplify_builtin_strcpy and simplify_builtin_strncpy respectively.
23663
23664 * expr.h (simplify_builtin_fputs, simplify_builtin_strcpy,
23665 simplify_builtin_strncpy): Delete function prototypes.
23666 * tree.h (fold_builtin_fputs, fold_builtin_strcpy,
23667 fold_builtin_strncpy): Add function prototypes here.
23668 (fold_builtin): Update function prototype with new "bool ignore".
23669
23670 * tree-ssa-ccp.c (ccp_fold): Update call to fold_builtin.
23671 (ccp_fold_builtin): Update call to fold_builtin. Call
23672 fold_builtin_fputs, fold_builtin_strcpy and fold_builtin_strncpy
23673 instead of simplify_builtin_fputs, simplify_builtin_strcpy and
23674 simplify_builtin_strncpy respectively.
23675 * fold-const.c (fold): Update call to fold_builtin.
23676
23677 2004-07-08 Alexandre Oliva <aoliva@redhat.com>
23678
23679 * builtins.c (expand_builtin_stpcpy): Un-simplify decay of stpcpy
23680 to strcpy.
23681
23682 * expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0.
23683 (FUNCTION_ARG_PASS_BY_REFERENCE): Likewise.
23684 (FUNCTION_ARG_CALLEE_COPIES): Likewise.
23685 * calls.c: Remove ifdefs of macros above.
23686 * functions.c: Likewise.
23687 * expr.c: Likewise.
23688
23689 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
23690
23691 * config/sparc/sparc.md (UNSPECV_GOTO_V9): Delete.
23692 (arch attribute): Delete.
23693 (current_function_calls_alloca attribute): Rename into calls_alloca.
23694 (calls_eh_return): New attribute.
23695 (leaf_function): Likewise.
23696 (length attribute): Fix formula for sibcalls.
23697 (return insn): Correctly compute the 'length' attribute.
23698 (do_builtin_setjmp_setup): Adjust use of current_function_calls_alloca.
23699
23700 2004-07-08 Richard Henderson <rth@redhat.com>
23701
23702 * tree-cfg.c (make_exit_edges): Use get_call_expr_in.
23703 (remove_useless_stmts_1, is_ctrl_altering_stmt): Likewise.
23704 (tree_block_ends_with_call_p, need_fake_edge_p): Likewise.
23705 * tree-eh.c (lower_eh_constructs_1): Likewise.
23706 * tree-sra.c (sra_walk_modify_expr): Likewise.
23707 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
23708 (eliminate_unnecessary_stmts): Likewise.
23709 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
23710 * tree-tailcall.c (optimize_tail_call): Likewise.
23711 * tree-ssa-ccp.c (get_rhs, set_rhs): Reorg to use switch.
23712
23713 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
23714 Jakub Jelinek <jakub@redhat.com>
23715
23716 * config/i386/i386.c (override_options): Enable
23717 SSE prefetches with -mtune, as long as we are
23718 compiling for i686 or higher. All i686 processors
23719 accept SSE prefetches as NOPS, some i586's don't.
23720
23721 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
23722
23723 PR target/10567
23724 * config/sparc/sparc.md (update_return): Honor flag_delayed_branch.
23725
23726 2004-07-08 Diego Novillo <dnovillo@redhat.com>
23727
23728 * tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in
23729 the handling of clobbering ASM_EXPRs.
23730
23731 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
23732
23733 PR target/16430
23734 * config/sparc/sparc.c (function_value): In 64-bit mode,
23735 return the aggregates larger than 16 bytes like unions.
23736
23737 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
23738
23739 PR target/16199
23740 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): When
23741 'temp' is zero, generate new pseudos as needed and emit the
23742 sequence of insns in single-assignment form. Resync comments
23743 with code.
23744 (sparc_emit_set_const64): Pass zero as 'temp' argument to above
23745 function before reload.
23746
23747 2004-07-08 Nathan Sidwell <nathan@codesourcery.com>
23748
23749 * vec.c (vec_assert_fail): Remove duplicate 'function'.
23750
23751 * vec.c (vec_p_reserve, vec_o_reserve): Allocation is signed.
23752
23753 * vec.h (VEC_alloc, VEC_embedded_size, VEC_embedded_init):
23754 Allocation is signed.
23755 (VEC_reserve): Return flag, allocation is signed.
23756
23757 2004-07-08 Richard Henderson <rth@redhat.com>
23758
23759 * tree-ssa-ccp.c (fold_stmt): Get type directly from
23760 OBJ_TYPE_REF_OBJECT.
23761
23762 2004-07-08 Joseph S. Myers <jsm@polyomino.org.uk>
23763 Neil Booth <neil@daikokuya.co.uk>
23764
23765 PR c/2511
23766 PR c/3325
23767 * c-decl.c (finish_struct): Ensure bit-fields are given the
23768 correct type.
23769 * c-common.c (c_common_signed_or_unsigned_type): For C, require
23770 the precision to match as well as the mode.
23771 * expr.c (reduce_to_bit_field_precision): New function.
23772 (expand_expr_real_1): Reduce expressions of bit-field type to
23773 proper precision.
23774 * langhooks.h (reduce_bit_field_operations): New hook.
23775 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
23776 Define.
23777 * c-lang.c, objc/objc-lang.c
23778 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define.
23779 * objc/objc-act.c (check_ivars): Convert types to bit-field types
23780 before checking.
23781 * tree.c (build_nonstandard_integer_type): New function.
23782 * tree.h (build_nonstandard_integer_type): New prototype.
23783 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't treat
23784 conversions between integer and boolean types as useless.
23785
23786 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
23787
23788 * c-common.c (c_common_nodes_and_builtins): Do not
23789 create __builtin_ptrdiff_t and __builtin_size_t.
23790
23791 2004-07-08 Andrew Pinski <apinski@apple.com>
23792
23793 * Makefile.in (libbackend.o): Add -combine to the gcc
23794 command line.
23795
23796 2004-07-08 Nick Clifton <nickc@redhat.com>
23797
23798 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Define.
23799 Set to -Os.
23800
23801 2004-07-08 Richard Henderson <rth@redhat.com>
23802
23803 * except.c (expand_eh_region_start, expand_eh_region_end,
23804 expand_eh_handler, expand_eh_region_end_cleanup,
23805 expand_start_all_catch, expand_start_catch, expand_end_catch,
23806 expand_end_all_catch, expand_eh_region_end_allowed,
23807 expand_eh_region_end_must_not_throw, expand_eh_region_end_throw,
23808 expand_eh_region_end_fixup): Remove.
23809 * stmt.c (struct nesting): Remove stack_level, innermost_stack_block,
23810 cleanups, outer_cleanups, label_chain, exception_region.
23811 (struct goto_fixup): Remove stack_level, cleanup_list_list.
23812 (struct label_chain): Remove.
23813 (struct stmt_status): Remove x_stack_block_stack.
23814 (stack_block_stack, expand_goto_internal, expand_fixup, expand_fixups,
23815 fixup_gotos, save_stack_pointer, expand_decl_cleanup,
23816 expand_decl_cleanup_eh, expand_cleanups, start_cleanup_deferral,
23817 end_cleanup_deferral, last_cleanup_this_contour,
23818 containing_blocks_have_cleanups_or_stack_level,
23819 any_pending_cleanups): Remove.
23820 (expand_null_return_1): Take no arguments.
23821 (expand_label, expand_naked_return, expand_return,
23822 expand_start_bindings_and_block, expand_end_bindings, expand_decl,
23823 expand_anon_union_decl, expand_start_case, pushcase, pushcase_range,
23824 expand_end_case_type): Don't use any of them.
23825 * calls.c (expand_call): Likewise.
23826 * dojump.c (do_jump): Likewise.
23827 * function.c (expand_function_end): Likewise.
23828 * expr.c (store_expr, expand_expr_real_1): Likewise.
23829 (safe_from_p): Don't handle WITH_CLEANUP_EXPR, CLEANUP_POINT_EXPR.
23830 (expand_expr_real_1): Don't handle WITH_CLEANUP_EXPR,
23831 CLEANUP_POINT_EXPR, TARGET_EXPR, TRY_CATCH_EXPR, CATCH_EXPR,
23832 EH_FILTER_EXPR, TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR.
23833 * fold-const.c (fold_checksum_tree): Use first_rtl_op.
23834 * gengtype.c (adjust_field_tree_exp): Remove rtl op handling.
23835 * gimplify.c (gimplify_cleanup_point_expr): Renumber operands
23836 for WITH_CLEANUP_EXPR.
23837 (gimple_push_cleanup): Likewise.
23838 * integrate.c (copy_decl_for_inlining): Don't DECL_TOO_LATE.
23839 * print-tree.c (print_node): Likewise.
23840 * tree-pretty-print.c (dump_generic_node): Remove GOTO_SUBROUTINE_EXPR.
23841 * tree.c (first_rtl_op): Always just TREE_CODE_LENGTH.
23842 (has_cleanups): Remove GOTO_SUBROUTINE_EXPR.
23843 * tree.def (WITH_CLEANUP_EXPR): Remove op1 and op2.
23844 (GOTO_SUBROUTINE_EXPR): Remove.
23845 * tree.h (WITH_CLEANUP_EXPR_RTL): Remove.
23846 (DECL_TOO_LATE): Remove.
23847 * except.h, tree.h: Update decls.
23848
23849 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
23850
23851 * explow.c (optimize_save_area_alloca): Do not accept parameters.
23852 * passes.c (rest_of_handle_final): Handle symout.
23853 (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc):
23854 Push timevar here.
23855 (rest_of_handle_sched): Break out SMS. Remove ifs for
23856 flag_schedule_insns and flag_modulo_sched.
23857 (rest_of_handle_addressof, rest_of_handle_cse2): Garbage
23858 collect at the end.
23859 (rest_of_handle_gcse2): Put under timevar TV_RELOAD_CSE_REGS.
23860 (rest_of_handle_partition_blocks, rest_of_handle_sms,
23861 rest_of_handle_if_after_reload, rest_of_handle_peephole2,
23862 rest_of_handle_mode_switching, rest_of_handle_jump,
23863 rest_of_handle_guess_branch_prob, rest_of_handle_eh,
23864 rest_of_handle_jump2, rest_of_handle_postreload,
23865 rest_of_handle_flow2, rest_of_clean_state,
23866 rest_of_handle_shorten_branches,
23867 rest_of_handle_prologue_epilogue,
23868 rest_of_handle_branch_target_load_optimize): New.
23869 (rest_of_compilation): Call the above. Remove ggc_collect
23870 calls moved to rest_of_handle_*.
23871 * rtl.h (optimize_save_area_alloca): Do not accept parameters.
23872
23873 * dwarf2out.c (dwarf2out_begin_prologue): Use TREE_NOTHROW.
23874 * except.c (set_nothrow_function_flags): Set TREE_NOTHROW.
23875 * except.h (set_nothrow_function_flags): Update comment.
23876 * function.c (current_function_nothrow): Remove.
23877 * output.h (current_function_nothrow): Remove.
23878 * passes.c (rest_of_compilation): Do not set TREE_NOTHROW.
23879 * config/arm/arm.c (arm_compute_func_type): Use TREE_NOTHROW.
23880
23881 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
23882
23883 PR bootstrap/16326
23884 * reorg.c: Revert 2004-06-30 change.
23885 (find_end_label): If HAVE_epilogue and !HAVE_return,
23886 return 0 instead of creating a label at the end of the insn chain.
23887 (optimize_skip): Account for the failure mode of find_end_label.
23888 (fill_simple_delay_slots): Likewise.
23889 (fill_slots_from_thread): Likewise.
23890 (relax_delay_slots): Likewise.
23891
23892 2004-07-08 Diego Novillo <dnovillo@redhat.com>
23893
23894 * tree-flow.h (addressable_vars): Declare.
23895 * tree-ssa-alias.c (addressable_vars): Define.
23896 (setup_pointers_and_addressables): Add addressable variables
23897 to addressable_vars.
23898 * tree-ssa-operands.c (get_stmt_operands): Move
23899 handling of ASM_EXPRs ...
23900 (get_asm_expr_operands): ... here.
23901 When the ASM_EXPR clobbers memory, also clobber addressable
23902 variables.
23903 * tree-ssa.c (init_tree_ssa): Initialize addressable_vars.
23904 (delete_tree_ssa): Reset addressable_vars.
23905
23906 2004-07-07 Jan Beulich <jbeulich@novell.com>
23907 Richard Henderson <rth@redhat.com>
23908
23909 * varasm.c (assemble_variable): Use assemble_zeros for
23910 zero-initialized variables.
23911 (categorize_decl_for_section): Honor flag_zero_initialized_in_bss
23912 for SECCAT_BSS and SECCAT_TBSS.
23913
23914 2004-07-07 Jan Beulich <jbeulich@novell.com>
23915
23916 * varasm.c (asm_output_bss): Don't declare unless BSS_SECTION_ASM_OP.
23917
23918 * expmed.c (emit_store_flag): Also special-case double-word
23919 (in-)equality comparison against -1.
23920
23921 * config/i386/i386.c (ix86_gimplify_va_arg): Don't need temporary for
23922 passing arguments the containers for which are registers.
23923
23924 * calls.c (emit_library_call_value_1): Use mode of function parameter
23925 rather than that of argument since constants have none.
23926
23927 2004-07-08 Alexandre Oliva <aoliva@redhat.com>
23928
23929 Introduce H8SX support.
23930 * expr.c (expand_strcpy): Renamed and moved to...
23931 * builtins.c (expand_movstr): ... here. Tweak.
23932 (expand_builtin_strcpy): Adjust. Use movstr if len can't be
23933 computed or has side effects.
23934 (expand_builtin_stpcpy): Likewise. Use strcpy if return value is
23935 unused, or if mempcpy fails. Adjust the return value in the
23936 latter case. Use movstr if everything else fails.
23937 * doc/md.texi (movstr): Document.
23938 (movmemM, clrmemM): Fix explanation of memory block operands.
23939 * config/h8300/h8300.md (stpcpy): Renamed to...
23940 (movstr): ... this. Adjust.
23941 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
23942 * config/h8300/h8300.md: Rename movstr*, except for movstrict*, to
23943 movmem* and clrstr* to clrmem*.
23944 2004-06-27 Alexandre Oliva <aoliva@redhat.com>
23945 * config/h8300/h8300.c (h8300_reg_class_from_letter): Map 'D' to
23946 GENERAL_REGS, always.
23947 (h8300_swap_into_er6, h8300_swap_into_er6): Handle the case of
23948 getting the stack pointer as addr.
23949 * config/h8300/h8300.h (PREDICATE_CODES): Remove constant rtxes
23950 from general_operand_dst.
23951 * config/h8300/h8300.md (movmd_internal_normal): New, normal-mode
23952 variant of...
23953 (movmd_internal): ... this. Add modes to operands. Disparage `D'
23954 instead of requiring it to match only before reload.
23955 (stpcpy_internal_normal): New, normal-mode variant of...
23956 (stpcpy_internal): ... this. Add modes to operands. Disparage
23957 `D' instead of requiring it to match only before reload.
23958 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Add
23959 mode argument.
23960 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Pass it to...
23961 * config/h8300/h8300.c (h8300_legitimate_address_p): Pass it to
23962 h8300_get_index.
23963 * config/h8300/h8300.md (attr type): Add call.
23964 (attr can_delay): If type is call, set it no.
23965 (call, call_value): Set type to call.
23966 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
23967 * config/h8300/h8300.md (logicalhi3_sn, logicalsi3_sn): New.
23968 2004-06-16 Alexandre Oliva <aoliva@redhat.com>
23969 * tree.c (get_narrower): Don't narrow integral types into
23970 non-integral types.
23971 * config/h8300/h8300.c (h8300_expand_epilogue): Initialize
23972 frame_size *before* the first use.
23973 * config/h8300/h8300.md (movstrictqi): Reintroduce post-increment
23974 on input.
23975 (peephole2): Don't widen instructions that push SP. Move
23976 decrement of SP to the end of all stm-generating peepholes.
23977 2003-07-24 Richard Sandiford <rsandifo@redhat.com>
23978 * config/h8300/h8300.md (insv): Prefer to use AND to clear a bitfield
23979 and OR to set it to all ones.
23980 2003-07-24 Richard Sandiford <rsandifo@redhat.com>
23981 * config/h8300/h8300.md (can_delay): Default to "no" for bit branches.
23982 (call, call_value): Set can_delay to "no".
23983 2003-07-22 Richard Sandiford <rsandifo@redhat.com>
23984 * config/h8300/h8300.md (extzv): Make subreg check more robust.
23985 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
23986 * config/h8300/h8300.md (*brabit): Remove.
23987 * config/h8300/h8300.md (*brabc, *brabs): Remove mode from
23988 zero_extract. Use bit_memory_operand as the predicate for
23989 operand 1 and 'WU' as the constraint. Check the difference
23990 between the base length and the final one when deciding which
23991 type of branch to use.
23992 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
23993 * config/h8300/h8300.md (extzv): Remove mode from operands 0 and 1.
23994 Use convert_move to extend the result for TARGET_H8300SX. Check
23995 for QImode memory references. Optimize the case where the
23996 destination is a paradoxical subreg.
23997 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
23998 * config/h8300/h8300.md (*movsf_h8sx): Add an r <- G alternative.
23999 * config/h8300/h8300.md (andqi): Remove bclr from h8sx version.
24000 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
24001 * config/h8300/h8300.md: Include mova.md
24002 (length_table): Add mova and mova_zero.
24003 * config/h8300/h8300.c (print_operand): Handle '%o'. Print a length
24004 after all constant addresses for '%R', '%X', '%T' and '%S'.
24005 (h8300_mova_length): New function.
24006 (h8300_insn_length_from_table): Use it to handle mova and mova_zero.
24007 * config/h8300/t-h8300 (mova.md): Generate from genmova.sh. Add to
24008 dependencies for s-config, etc.
24009 * config/h8300/gemova.sh: New file.
24010 * config/h8300/mova.md: Generated.
24011 2003-07-20 Alexandre Oliva <aoliva@redhat.com>
24012 * config/h8300/h8300.c (h8300_bitfield_length): New.
24013 (nibble_operand): Adjust.
24014 (h8300_binary_length): Handle conditional binary op.
24015 (h8300_insn_length_from_table): Handle bitfield and bitbranch.
24016 * config/h8300/h8300.h: Change constraints W# and Y# to P#>X and
24017 P#<X, respectively. The original P is now IP4>X. Introduced P#>0
24018 and P#<0, unused so far. W and Y are now prefixes to multi-letter
24019 constraints. WU is introduced as a variant of U that requires a
24020 mem, and is therefore considered an EXTRA_MEMORY_CONSTRAINT.
24021 * config/h8300/h8300.md (attr type): Added bitbranch.
24022 (attr length_table): Added bitfield and bitbranch.
24023 (attr length): Compute bitbranch length.
24024 (andqi): Separate pattern for H8300SX. Use bfld for loading the
24025 least-significant bit of a byte.
24026 (brabit, brabc, brabs): New.
24027 (insv, extzv): Emit bfst and bfld on H8300SX.
24028 (bfld, bfst, seq, sne): New.
24029 (bstzhireg, cmpstz, bstz, bistz): New.
24030 (cmpcondbset, condbset, cmpcondbclr, condbclr): New.
24031 (cmpcondbsetreg, condbsetreg, cmpcondbclrreg, condbclrreg): New.
24032 2003-07-11 Richard Sandiford <rsandifo@redhat.com>
24033 * config/h8300/h8300.c (h8sx_binary_memory_operator): New function.
24034 (h8sx_unary_memory_operator): New function.
24035 * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Disable.
24036 (PREDICATE_CODES): Add h8sx_{unary,binary}_memory_operator.
24037 * config/h8300/h8300.md: Add peepholes to combine reloads and
24038 arithmetic insns.
24039 2003-07-10 Richard Sandiford <rsandifo@redhat.com>
24040 * config/h8300/h830.md (cmpqi): Use 'i' rather than 'n' in constraints.
24041 (*cmphi_h8300hs, *addqi3, *addhi3_h8sx, subhi3): Likewise.
24042 (and?i, ior?i, xor?i): Likewise.
24043 2003-07-10 Richard Sandiford <rsandifo@redhat.com>
24044 * config/h8300/h8300.c: Move enums and prototypes to head of file.
24045 Various whitespace fixes.
24046 (h8300_constant_length): New function, split out from...
24047 (h8300_displacement_size): ...here. Rename h8300_displacement_length.
24048 (h8300_classify_operand): Use IN_RANGE.
24049 (h8300_classify_operand): Use h8300_constant_length.
24050 (h8300_short_move_mem_p): Tighten size check.
24051 (h8sx_mergeable_memrefs_p): Tighten equality check.
24052 2003-06-30 Richard Sandiford <rsandifo@redhat.com>
24053 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Define __H8300SX__
24054 for -msx.
24055 * config/h8300/crti.asm: Use .h8300sx or .h8300sxn for -msx code.
24056 * config/h8300/crtn.asm: Likewise.
24057 * config/h8300/lib1funcs.asm: Likewise. Use 32-bit pointers
24058 if __H8300SX__ is defined.
24059 2003-06-27 Richard Sandiford <rsandifo@redhat.com>
24060 * config/h8300/h8300-protos.h (h8300_get_index): Add mode parameter.
24061 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Update accordingly.
24062 (GO_IF_MODE_DEPENDENT_ADDRESS): Treat POST_DEC, PRE_INC and indexed
24063 addresses as mode-dependent.
24064 * config/h8300/h8300.c (print_operand_address): Update call to
24065 h8300_get_index.
24066 (h8300_get_index): Take a mode argument. Rework to fix an
24067 earlier misunderstanding.
24068 2003-06-26 Richard Sandiford <rsandifo@redhat.com>
24069 * config/h8300/h8300.c (zero_extendqisi2): Force the source operand
24070 into a register if TARGET_H8300SX.
24071 (*zero_extendqisi2_h8300hs, *extendqisi2_h8300): Disable for
24072 TARGET_H8300SX. Also disable related define_splits.
24073 (*zero_extendqisi2_h8sx, *extendqisi2_h8sx): New patterns.
24074 2003-06-23 Richard Sandiford <rsandifo@redhat.com>
24075 * config/h8300/h8300.c (h8300_rtx_costs): Add h8sx handling.
24076 2003-06-20 Richard Sandiford <rsandifo@redhat.com>
24077 * config/h8300/h8300.h (OK_FOR_Z): New macro.
24078 (EXTRA_CONSTRAINT_STR): Check it.
24079 * config/h8300/h8300.c (h8300_classify_operand): Accept null
24080 class arguments.
24081 (h8300_insn_length_from_table): Handle LENGTH_TABLE_MOV_IMM4.
24082 * config/h8300/h8300.md (length_table): Add mov_imm4.
24083 (movqi, movhi): Add Z <- W4 alternatives to h8sx patterns.
24084 2003-06-20 Richard Sandiford <rsandifo@redhat.com>
24085 * genattrtab.c (write_eligible_delay): Allow candidate_insn to
24086 be a label.
24087 * config/h8300/h8300.h (DELAY_SLOT_LENGTH): New macro.
24088 * config/h8300/h8300.c (h8300_reorg): New function.
24089 (TARGET_MACHINE_DEPENDENT_REORG): Define.
24090 * config/h8300/h8300.md (length): Subtract the length of the
24091 delay slot from (pc) when checking the range of forward branches.
24092 (delay_slot, can_delay): New attributes.
24093 (define_delay): Add bra/s handling.
24094 (movmd_internal, return_h8sx, *return_1): Set can_delay to no.
24095 (jump): Add delayed-branch handling.
24096 2003-06-17 Richard Sandiford <rsandifo@redhat.com>
24097 * expr.c (expand_strcpy): New function.
24098 * builtins.c (expand_builtin_strcpy): Fall back on expand_strcpy.
24099 (expand_builtin_stpcpy): Likewise.
24100 * config/h8300/h8300-protos.h (h8sx_split_movmd): Remove.
24101 (h8300_swap_into_er6, h8300_swap_out_of_er6): Declare.
24102 * config/h8300/h8300.c (h8300_reg_class_from_letter): Tweak 'd'
24103 handling to improve register allocation for -fno-omit-frame-pointer.
24104 (h8sx_split_movmd): Delete, moving er6 handling into...
24105 (h8300_swap_into_er6, h8300_swap_out_of_er6): ...these new functions.
24106 * config/h8300/h8300.md (UNSPEC_STPCPY): New unspec constant.
24107 (movmd): Add calls to copy_rtx.
24108 (movmd_internal): In the second alternative, allow the initial and
24109 final destination registers to be different . Update the splitter
24110 accordingly. Call h8300_swap_into_er6 and h8300_swap_out_of_er6
24111 instead of h8sx_split_movmd.
24112 (stpcpy, movsd): New expanders.
24113 (movsd_internal): New define_insn.
24114 2003-06-13 Richard Sandiford <rsandifo@redhat.com>
24115 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Declare.
24116 (h8sx_emit_movmd, h8sx_split_movmd): Declare.
24117 * config/h8300/h8300.h (reg_class): Add COUNTER_REGS, SOURCE_REGS
24118 and DESTINATION_REGS.
24119 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
24120 (REGNO_REG_CLASS): Map er4, er5 and er6 to the new classes.
24121 (REG_CLASS_FROM_LETTER): Use h8300_reg_class_from_letter.
24122 (h8300_move_ratio): Declare.
24123 (MOVE_RATIO): Use it.
24124 * config/h8300/h8300.c (h8300_move_ratio): New variable.
24125 (h8300_init_once): Initialize it.
24126 (h8300_reg_class_from_letter): New function.
24127 (print_operand): Add an 'm' prefix for printing ".b", ".w" or ".l".
24128 (h8sx_emit_movmd, h8sx_split_movmd): New functions.
24129 * config/h8300/h8300.md (UNSPEC_MOVMD): New unspec constant.
24130 (COUNTER_REG, SOURCE_REG, DESTINATION_REG): New register constants.
24131 (movstrsi, movmd): New expanders.
24132 (movmd_internal): New insn.
24133 2003-06-06 Richard Sandiford <rsandifo@redhat.com>
24134 * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Define.
24135 2003-06-04 Richard Sandiford <rsandifo@redhat.com>
24136 * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxnelf for -msx -mn.
24137 * config/h8300/h8300.c (asm_file_start): Use .h8300sxn likewise.
24138 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
24139 * config/h8300/h8300.c (nibble_operand): Fix warning.
24140 * config/h8300/h8300.md (movstricthi): Set adjust_length to no.
24141 (movsi_h8sx): Likewise here and the normal h8sx movhi pattern.
24142 (movsf_h8300h): Disable for TARGET_H8300SX.
24143 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
24144 * config/h8300/h8300.h (PREDICATE_CODES): Add h8300_ldm_parallel,
24145 h8300_stm_parallel and h8300_return_parallel.
24146 * config/h8300/h8300.c (h8300_push_pop, h8300_stack_offset_p,
24147 h8300_ldm_stm_regno, h8300_ldm_stm_parallel, h8300_ldm_parallel,
24148 h8300_stm_parallel, h8300_return_parallel): New functions.
24149 (h8300_expand_prologue): Don't enforce ldm/stm register alignment
24150 if TARGET_H8300SX. Use h8300_push_pop.
24151 (h8300_expand_epilogue): Likewise. Try to merge the return insn
24152 and final pop when generating h8sx code. Always emit some form
24153 of return insn.
24154 * config/h8300/h8300.md: Don't enforce register alignment in
24155 stm peepholes if TARGET_H8300SX.
24156 (ldm_h8300s, stm_h8300s, return_h8sx): New patterns.
24157 (ldm_h8300s_[234], stm_h8300_[234]): Disable.
24158 (epilogue): Expect h8300_expand_epilogue to emit a return insn.
24159 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
24160 * config/h8300/t-h8300 (MULTILIB_OPTIONS): Add a -msx multilib.
24161 (MULTILIB_DIRNAMES): Add a directory for it.
24162 (MULTILIB_MATCHES): Delete.
24163 2003-05-28 Richard Sandiford <rsandifo@redhat.com>
24164 * final.c (walk_alter_subreg): Handle addresses with subregs
24165 inside a ZERO_EXTEND or AND.
24166 * config/h8300/h8300-protos.h (h8300_get_index): Declare.
24167 * config/h8300/h8300.h (INDEX_REG_CLASS): Set to GENERAL_REGS
24168 if TARGET_H8300SX.
24169 (GO_IF_LEGITIMATE_ADDRESS): Use h8300_get_index.
24170 * config/h8300/h8300.c (print_operand_address): Handle @(dd,RnL.b),
24171 @(dd,Rn.w) and @(dd,ERn.L).
24172 (h8300_displacement_size): Take the whole address as argument.
24173 (h8300_classify_operand, h8300_short_move_mem_p): Adjust accordingly.
24174 2003-05-28 Richard Sandiford <rsandifo@redhat.com>
24175 * config/mips/mips-protos.h (h8300_operands_match_p): Declare.
24176 (h8sx_mergeable_memrefs_p): Declare.
24177 * config/h8300/h8300.h (HAVE_POST_DECREMENT): Define to TARGET_H8300SX.
24178 (HAVE_PRE_INCREMENT): Likewise.
24179 (GO_IF_LEGITIMATE_ADDRESS): Accept pre/post increment/decrement
24180 addresses for TARGET_H8300SX,
24181 * config/h8300/h8300.c (print_operand_address): Deal with PRE_INC
24182 and POST_DEC.
24183 (movb_length_table, movl_length_table): New tables.
24184 (movw_length_table): Define to movb_length_table.
24185 (h8300_displacement_size): New, split out from...
24186 (h8300_classify_address): ...here. Handle pre/post inc/dec.
24187 (h8300_short_immediate_length): Allow H8OP_MEM_COMPLEX operands.
24188 (h8300_insn_length_from_table): Add cases for movb, movw and movl.
24189 (h8sx_mergeable_memrefs_p, h8300_operands_match_p): New functions.
24190 (output_plussi): Use add.l #xx:3,Rn and sub.l #xx:3,Rn for h8sx.
24191 (compute_plussi_length, compute_plussi_cc): Update accordingly.
24192 (h8sx_unary_shift_operator): Get the mode from the operator.
24193 (binary_shift_operator): Likewise.
24194 * config/h8300/h8300.md: If a peephole2 applies gen_lowpart to
24195 a memory reference, check whether the reference is offsettable.
24196 (length_table): Add movb, movw and movl.
24197 (movqi): Add new h8sx pattern. Don't force one operand to be a
24198 register when generating h8sx code.
24199 (movhi, movsi, movsf): Likewise.
24200 (movstrictqi): Use the length_table attribute.
24201 (movstricthi): Likewise. Add h8sx alternative for mov.w #xx:3,Rn.
24202 (addqi3): Split into a define_expand and define_insn. Don't accept
24203 memory operands in the expander. Use h8300_operands_match_p to
24204 check for matching operands in the define_insn.
24205 (subqi3, negqi2, one_cmplqi2): Likewise.
24206 (add[hs]i3): Don't accept memory operands in the expander. Likewise
24207 in any patterns that are unused in h8sx code. In the h8sx patterns,
24208 use h8300_operands_match_p to check whether operands match.
24209 (sub[hs]i3, and[hi]3, ior[hs]i3, xor[hs]i3, neg[hsi]3,
24210 one_cmpl[hs]i3): Likewise.
24211 (andqi3, iorqi3, xorqi3): Likewise. Don't call fix_bit_operand
24212 in the expander.
24213 2003-05-23 Richard Sandiford <rsandifo@redhat.com>
24214 * config/h8300/h8300-protos.h (expand_a_shift): Return a bool.
24215 (h8300_insn_length_from_table): Add a second parameter.
24216 (output_h8sx_shift): Declare.
24217 * config/h8300/h8300.h (OK_FOR_W, OK_FOR_Y): New macros.
24218 (EXTRA_CONSTRAINT): Replace with...
24219 (EXTRA_CONSTRAINT_STR): ...this. Use OK_FOR_W and OK_FOR_Y.
24220 (CONSTRAINT_LEN): Define, returning 2 for 'W' and 'Y'.
24221 (PREDICATE_CODES): Add entries for h8sx_unary_shift_operator
24222 and h8sx_binary_shift_operator.
24223 * config/h8300/h8300.c (two_insn_adds_subs_operand): Return false
24224 for TARGET_H8300SX.
24225 (bit_operand): Replace use of EXTRA_CONSTRAINT with OK_FOR_U.
24226 (bit_memory_operand, fix_bit_operand): Likewise.
24227 (h8300_length_table_for_insn): Remove.
24228 (h8300_classify_operand): Fix check for 16-bit operands in 32-bit
24229 instructions.
24230 (h8300_short_immediate_length, h8300_binary_length): New functions.
24231 (h8300_insn_length_from_table): Add an opcodes parameter. Rework.
24232 (output_plussi): Use sub to add negative constants.
24233 (compute_plussi_length): Adjust accordingly.
24234 (h8sx_single_shift_type): New enum.
24235 (h8sx_single_shift, h8sx_unary_shift_operator,
24236 h8sx_binary_shift_operator, output_h8sx_shift): New functions.
24237 (expand_a_shift, expand_a_rotate): Emit nothing if the shift is a
24238 single h8sx instruction. Return false in this case.
24239 * config/h8300/h8300.md (length_table): Add short_immediate.
24240 (length): Pass the operand array to h8300_insn_length_from_table.
24241 (adjust_length): Assume "no" for insns with a length_table attribute.
24242 (*cmphi_h8300hs, cmpsi): Add alternatives for #xx:3.
24243 (*addhi3_h8300hs): Don't use for h8sx.
24244 (*addhi3_h8sx): New pattern, with alternatives for add.w #xx:3
24245 and sub.w #xx:3.
24246 (ashl[qhs]i3, lshr[qhs]i3, ashr[qhs]i3, rotl[qhs]i3): Change operand
24247 1's predicate to nonimmediate_operand. Only skip default expansion
24248 if expand_a_shift or expand_a_rotate returns true. Add new patterns
24249 for single h8sx shift instructions.
24250 2003-05-22 Alexandre Oliva <aoliva@redhat.com>
24251 * config/h8300/h8300.c (nibble_operand): Split out of...
24252 (reg_or_nibble_operand): ... this.
24253 * config/h8300/h8300.h (PREDICATE_CODES): Added nibble_operand.
24254 * config/h8300/h8300.md: (mulqihi3, mulhisi3, umulqihi3,
24255 umulhisi3): Introduce expand, and introduce separate insns for
24256 sign- or zero-extended REG and already-extended CONST_INT.
24257 2003-05-20 Richard Sandiford <rsandifo@redhat.com>
24258 * config/h8300/h8300.c (h8300_unary_length): Fix miscounting.
24259 * config/h8300/h8300.md (subqi3): Generalize for h8sx.
24260 (subhi3): Likewise. Don't accept immediates for operand 1.
24261 Remove the early clobber from second alternative of the h8300s pattern.
24262 (subsi3): Generalize for h8sx. Force operand 2 into a register
24263 on plain h8300 targets.
24264 (subsi3_h8300): Use h8300_dst_operand for consistency with expander.
24265 (subsi3_h8300h): Generalize for h8sx.
24266 (one_cmplqi2, one_cmplhi2, one_cmplsi2): Likewise.
24267 2003-05-19 Alexandre Oliva <aoliva@redhat.com>
24268 * config/h8300/h8300.c (reg_or_nibble_operand): New.
24269 * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
24270 (TARGET_H8300SXMUL): New.
24271 (CONST_OK_FOR_P): New.
24272 (CONST_OK_FOR_LETTER_P): Adjust.
24273 * config/h8300/h8300.md (mulqihi3, mulhisi3, umulqihi3,
24274 umulhisi3): Accept 4-bit immediate on H8SX.
24275 (mulhi3, mulsi3, smulsi3_highpart, umulsi3_highpart): New.
24276 (udivsi3, divhi3, udivsi3, divsi3): New.
24277 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
24278 * config/h8300/h8300-protos.h (h8300_insn_length_from_table): Declare.
24279 * config/h8300/h8300.h (OK_FOR_Q): New macro.
24280 (EXTRA_CONSTRAINT): Use it to check the 'Q' constraint.
24281 (PREDICATE_CODES): Add h8300_src_operand and h8300_dst_operand.
24282 Add ADDRESSOF to the bit_operand entry.
24283 * config/h8300/h8300.c (h8300_dst_operand): New predicate.
24284 (h8300_src_operand): Likewise.
24285 (bit_operand): Check nonimmediate_operand rather than general_operand.
24286 Accept any nonimmediate_operand in h8sx code.
24287 (h8300_and_costs): Initialize operands[1].
24288 (h8300_rtx_costs) <AND>: Return false if the operands aren't valid.
24289 (h8300_operand_class): New enum.
24290 (h8300_length_table): New typedef.
24291 (addb_length_table, addw_length_table, addl_length_table,
24292 logicl_length_table): New tables.
24293 (logicb_length_table, logicw_length_table): New macros.
24294 (h8300_classify_operand, h8300_length_from_table,
24295 h8300_length_table_for_insn, h8300_unary_length,
24296 h8300_insn_length_from_table): New functions.
24297 (output_plussi): Only use adds and subs for register destinations.
24298 Disable redundant clause.
24299 (compute_plussi_cc): Likewise.
24300 (compute_plussi_length): Likewise. Use h8300_length_from_table
24301 to work out the length of an insn.
24302 (output_logical_op): Only use narrower immediate instructions
24303 if the destination is a register.
24304 (compute_logical_op_cc): Likewise.
24305 (compute_logical_op_length): Likewise. Use h8300_length_from_table.
24306 (h8300_adjust_insn_length): Tighten check for reg<->mem moves.
24307 * config/h8300/h8300.md (length_table): New attribute.
24308 (length): When an instruction has a length_table attribute, use
24309 h8300_insn_length_from_table to calculate its default length.
24310 (cmpqi): Use h8300_dst_operand for the first operand and
24311 h8300_src_operand for the second.
24312 (cmphi, *cmphi_h8300hs, cmpsi, negqi2, neghi2, neghi2_h8300h, negsi2,
24313 negsi2_h8300h, addqi3, addhi3, *addhi3_h8300, *addhi3_h8300hs, addsi3,
24314 addsi_h8300, addsi_h8300h, andhi3, andsi3, iorhi3,
24315 iorsi3, xorhi3, xorsi3): Likewise.
24316 (andqi3): Use h8300_src_operand for operand 2. Adjust the condition
24317 so that it allows any combination of operands for TARGET_H8300SX.
24318 (iorqi3, xorqi3): Likewise.
24319 (cmpqi): Use the length_table attribute.
24320 (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, andqi3, iorqi3,
24321 xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
24322 (cmpqi): Add 'Q' constraint.
24323 (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, addsi_h8300h, andqi3,
24324 iorqi3, xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
24325 2003-05-14 Richard Sandiford <rsandifo@redhat.com>
24326 * config/h8300/h8300.h (MASK_H8300SX): New macro.
24327 (TARGET_H8300S): True for both -ms and -msx.
24328 (TARGET_H8300SX): New macro.
24329 (TARGET_SWITCHES): Add entries for -msx and -mno-sx.
24330 * config/h8300/h8300.c (asm_file_start): Write .h8300sx for -msx.
24331 * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxelf for -msx.
24332 * config/h8300/t-h8300 (MULTILIB_MATCHES): Use -ms multilibs for -msx.
24333 [Temporary change.]
24334 2003-02-28 Alexandre Oliva <aoliva@redhat.com>
24335 * config/h8300/h8300.h (SIZE_TYPE, PTRDIFF_TYPE): Use short with
24336 16-bit pointers and 32-bit ints.
24337 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Accept
24338 CONST_DOUBLE with mode no wider than SImode.
24339 * config/h8300/h8300.md (extendqisi2_h8300): Add constraints for
24340 output operand.
24341 2003-02-27 Alexandre Oliva <aoliva@redhat.com>
24342 * config/h8300/h8300.c (general_operand_src): Match CONSTANT_P_RTX
24343 or SUBREG thereof.
24344 * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
24345 2003-02-22 Alexandre Oliva <aoliva@redhat.com>
24346 * config/h8300/h8300.c (dosize): Truncate sign * size to Pmode.
24347
24348 2004-05-28 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
24349
24350 * config.gcc (i[34567]86-*-mingw32*): Enable threads by default.
24351
24352 2004-07-07 Per Bothner <per@bothner.com>
24353
24354 * flow.c (attempt_auto_inc): Remove now-redundant PUT_CODE.
24355
24356 2004-07-07 Mike Stump <mrs@apple.com>
24357
24358 * darwin.h (ASM_OUTPUT_LABELREF): Fix -fno-leading-underscore.
24359 * darwin.c (machopic_non_lazy_ptr_name, machopic_stub_name)
24360 (machopic_finish): Likewise.
24361
24362 2004-07-07 Richard Henderson <rth@redhat.com>
24363
24364 * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look
24365 through any value-preserving cast.
24366
24367 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
24368
24369 * function.c (assign_parm_find_data_types): Call
24370 FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.
24371
24372 2004-07-07 Steven Bosscher <stevenb@suse.de>
24373
24374 * tree-cfg.c (group_case_labels): Remove case labels that have
24375 the same target as the default case.
24376
24377 2004-07-07 Steven Bosscher <stevenb@suse.de>
24378
24379 * tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS
24380 regardless of DECL_LANG_SPECIFIC being present or not.
24381 * tree.h (DECL_NUM_STMTS): Purge.
24382
24383 2004-07-07 Andrew Pinski <apinski@apple.com>
24384
24385 * configure: Regenerate with the right autoconf.
24386
24387 2004-07-07 David Edelsohn <edelsohn@gnu.org>
24388
24389 * ifcvt.c (total_bb_rtx_cost): New function.
24390 (find_if_case_1): Compare rtx_cost of basic block to cost of
24391 BRANCH_COST insns.
24392 (find_if_case_2): Same.
24393
24394 2004-07-07 Eric Botcazou <ebotcazou@libertysurf.fr>
24395
24396 PR target/10567
24397 * config/sparc/sparc.c (load_pic_register): Honor flag_delayed_branch.
24398 (output_return): Likewise.
24399 (output_sibcall): Abort if !flag_delayed_branch.
24400 (sparc_function_ok_for_sibcall): Return 0 if !flag_delayed_branch.
24401 (emit_and_preserve): New function.
24402 (sparc_output_mi_thunk): Use it. Honor flag_delayed_branch. Emit an
24403 indirect jump to the thunked-to function if !flag_delayed_branch.
24404 * config/sparc/sparc.md (delayed_branch): New attribute.
24405 (load_pcrel_sym): Honor flag_delayed_branch. Use above
24406 attribute to compute the length of the insn.
24407 (goto_handler_and_restore): Likewise.
24408
24409 2004-07-07 Andrew Pinski <apinski@apple.com>
24410
24411 PR tree-optimization/15777
24412 * fold-const.c (fold_single_bit_test): Fold the x^1 expression.
24413
24414 * expr.c (expand_expr_real_1): Fix formating.
24415 BUFFER_REF and IN_EXPR are dead.
24416 * fold-const.c (non_lvalue): BUFFER_REF is dead.
24417 * tree-inline.c (estimate_num_insns_1): Likewise.
24418 * tree-pretty-print.c (dump_generic_node): BUFFER_REF,
24419 IN_EXPR, SET_LE_EXPR, and CARD_EXPR are dead.
24420 * tree.def (BUFFER_REF, IN_EXPR, SET_LE_EXPR, CARD_EXPR): Kill.
24421
24422 2004-07-07 H.J. Lu <hongjiu.lu@intel.com>
24423
24424 * collect2.c (dump_file): Don't call cplus_demangle if
24425 HAVE_LD_DEMANGLE is defined.
24426 (main): Pass "--demangle" to ld if no_demangle is not 0 and
24427 HAVE_LD_DEMANGLE is defined. Don't set current_demangling_style
24428 if HAVE_LD_DEMANGLE is defined.
24429
24430 * configure.ac (--with-demangler-in-ld): Added
24431 (HAVE_LD_DEMANGLE): Define if ld supports --demangle when
24432 --with-demangler-in-ld is used.
24433 * config.in: Regenerated.
24434 * configure: Likewise.
24435
24436 2004-07-07 Roger Sayle <roger@eyesopen.com>
24437
24438 * config/rs6000/rs6000.c (struct processor_costs): Add new fields
24439 for simple floating point operations "fp", double precision
24440 multiplication "dmul", and single and double precision division
24441 "sdiv" and "ddiv". Update all CPU variant tables as appropriate.
24442 (ppc630_cost): New table split from ppc620_cost, to distinguish
24443 differences in floating point latencies.
24444 (rs6000_override_options): Use ppc630_cost for PROCESSOR_PPC630.
24445 (rs6000_rtx_costs): Add support for single and double precision
24446 floating point addition, subtraction, multiplication, division,
24447 fused-multiply-add, fused-multiply-sub, negation, absolute value
24448 and negative absolute value. Tweak MEM case to use prefered idiom.
24449
24450 2004-07-07 Richard Henderson <rth@redhat.com>
24451
24452 * tree-flow-inline.h (may_propagate_copy): Move...
24453 * tree-ssa-copy.c (may_propagate_copy): ... here. Fail if we
24454 attempt to copy between types requiring conversion.
24455 * tree-flow.h (may_propagate_copy): Update decl.
24456 * tree-ssa-dom.c (cprop_operand): Tidy redundant tests.
24457
24458 2004-07-07 Jakub Jelinek <jakub@redhat.com>
24459
24460 * config/i386/i386.c (override_options): Don't set x86_prefetch_sse
24461 from -mtune= option.
24462
24463 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
24464
24465 * builtins.c: Rename movstr*, except for movstrict*, to
24466 movmem* and clrstr* to clrmem*.
24467 * expr.c: Likewise.
24468 * expr.h: Likewise.
24469 * genopinit.c: Likewise.
24470 * integrate.c: Likewise.
24471 * local-alloc.c: Likewise.
24472 * optabs.c: Likewise.
24473 * optabs.h: Likewise.
24474 * config/alpha/alpha.h: Likewise.
24475 * config/alpha/alpha.md: Likewise.
24476 * config/arm/arm-protos.h: Likewise.
24477 * config/arm/arm.c: Likewise.
24478 * config/arm/arm.md: Likewise.
24479 * config/avr/avr.md: Likewise.
24480 * config/c4x/c4x.c: Likewise.
24481 * config/c4x/c4x.md: Likewise.
24482 * config/frv/frv.md: Likewise.
24483 * config/i386/i386-protos.h: Likewise.
24484 * config/i386/i386.c: Likewise.
24485 * config/i386/i386.h: Likewise.
24486 * config/i386/i386.md: Likewise.
24487 * config/i860/i860.c: Likewise.
24488 * config/i860/i860.md: Likewise.
24489 * config/ip2k/ip2k.md: Likewise.
24490 * config/ip2k/libgcc.S: Likewise.
24491 * config/ip2k/t-ip2k: Likewise.
24492 * config/m32r/m32r.c: Likewise.
24493 * config/m32r/m32r.md: Likewise.
24494 * config/mcore/mcore.md: Likewise.
24495 * config/mips/mips.c: Likewise.
24496 * config/mips/mips.md: Likewise.
24497 * config/ns32k/ns32k.c: Likewise.
24498 * config/ns32k/ns32k.h: Likewise.
24499 * config/ns32k/ns32k.md: Likewise.
24500 * config/pa/pa.c: Likewise.
24501 * config/pa/pa.md: Likewise.
24502 * config/pdp11/pdp11.h: Likewise.
24503 * config/pdp11/pdp11.md: Likewise.
24504 * config/rs6000/rs6000.c: Likewise.
24505 * config/rs6000/rs6000.md: Likewise.
24506 * config/s390/s390-protos.h: Likewise.
24507 * config/s390/s390.c: Likewise.
24508 * config/s390/s390.md: Likewise.
24509 * config/sh/lib1funcs.asm: Likewise.
24510 * config/sh/sh.c: Likewise.
24511 * config/sh/sh.md: Likewise.
24512 * config/sh/t-sh: Likewise.
24513 * config/sparc/sparc.h: Likewise.
24514 * config/vax/vax.md: Likewise.
24515 * config/xtensa/xtensa.c: Likewise.
24516 * config/xtensa/xtensa.md: Likewise.
24517 * doc/invoke.texi: Likewise.
24518 * doc/md.texi: Likewise.
24519 * doc/rtl.texi: Likewise.
24520
24521 2004-07-07 Richard Sandiford <rsandifo@redhat.com>
24522
24523 PR target/16407
24524 * config/mips/mips-protos.h (mips_declare_common_object): Declare.
24525 * config/mips/mips.c (mips_declare_common_object): New function,
24526 mostly split out from...
24527 (mips_output_aligned_decl_common): ...here.
24528 * config/mips/mips.h (ASM_OUTPUT_LOCAL): Remove in favor of...
24529 (ASM_OUTPUT_ALIGNED_LOCAL): ...this new definition.
24530 * config/mips/iris6.h (ASM_OUTPUT_ALIGNED_LOCAL): Undefine this
24531 rather than ASM_OUTPUT_LOCAL. Call mips_declare_common_object.
24532
24533 2004-07-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24534
24535 PR c/16392
24536 * function.c (assign_parms): Fix typo from previous change.
24537
24538 2004-07-07 Jason Merrill <jason@redhat.com>
24539
24540 PR c++/15815
24541 * doc/extend.texi (C++ Interface): Correct information and
24542 discourage use.
24543
24544 2004-07-07 Vladimir Makarov <vmakarov@redhat.com>
24545
24546 PR target/16130
24547 PR target/16142
24548 PR target/16143
24549 * config/ia64/ia64.c (ia64_dfa_new_cycle): Reset DFA state for asm
24550 insn.
24551
24552 2004-07-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
24553
24554 PR target/1679.
24555 * config/m32r/m32r.c (m32r_function_symbol): New function:
24556 Generate a symbol name RTX with the correct m32r specific flags
24557 set.
24558 (block_move_call): Use new function to generate correct symbol.
24559 * config/m32r/m32r-protos.h: Add prototype for new funcion.
24560 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Use the new
24561 function.
24562
24563 2004-07-07 Nathan Sidwell <nathan@codesourcery.com>
24564
24565 * tree.h (TYPE_BINFO_OFFSET, TYPE_BINFO_VTABLE,
24566 TYPE_BINFO_VIRTUALS, TYPE_BINFO_BASETYPES,
24567 TYPE_BINFO_BASETYPE): Remove.
24568 (BINFO_BASETYPES, BINFO_N_BASETYPES, BINFO_BASETYPE): Rename
24569 to ...
24570 (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): ...
24571 here.
24572 (BINFO_BASEACCESSES, BINFO_BASEACCESS): Rename to ...
24573 (BINFO_BASE_ACCESSES, BINFO_BASE_ACCESS): ... here.
24574 (BINFO_INHERITANCE_CHAIN): Redocument as it is actually used.
24575 (struct tree_binfo): Rename base_types to base_binfos.
24576 * alias.c (record_component_aliases): Adjust BINFO macros.
24577 * dbxout.c (dbxout_type): Likewise.
24578 * dwarf2out.c (gen_member_die): Likewise.
24579 * sdbout.c (sdbout_one_type): Likewise.
24580 * tree-dump.c (deque_and_dump): Likewise.
24581 * config/i386/i386.c (classify_argument,
24582 contains_128bit_aligned_vector_p): Likewise.
24583
24584 2004-07-07 Nick Clifton <nickc@redhat.com>
24585
24586 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Change
24587 arguments to match TARGET_SETUP_INCOMING_VARARGS prototype.
24588
24589 2004-07-07 Nathan Sidwell <nathan@codesourcery.com>
24590
24591 * vec.h: Fix the example use.
24592
24593 2004-07-06 Richard Henderson <rth@redhat.com>
24594
24595 * langhooks-def.h (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Remove.
24596 * langhooks.h (struct lang_hooks): Remove gimple_before_inlining.
24597 * tree-inline.c (copy_body_r, setup_one_parameter,
24598 initialize_inlined_parameters, expand_call_inline,
24599 declare_inline_vars): Don't check it.
24600 (expand_calls_inline): Remove old version, rename new version
24601 from gimple_expand_calls_inline.
24602 * tree-optimize.c (execute_gimple): Remove.
24603 (pass_gimple): Don't run anything.
24604
24605 2004-07-06 Joseph S. Myers <jsm@polyomino.org.uk>
24606
24607 * doc/sourcebuild.texi: Use semicolons instead of commas in
24608 section title.
24609
24610 2004-07-06 Richard Henderson <rth@redhat.com>
24611
24612 * tree-sra.c (struct sra_walk_fns): Revert 2004-07-05 change.
24613 (sra_walk_modify_expr, scan_init): Likewise.
24614 (generate_element_zero): Check visited before scanning children.
24615 (generate_element_init): Set visited on error.
24616 (scalarize_init): Handle generate_element_init failure similar
24617 to use_block_copy.
24618
24619 2004-07-06 Joseph S. Myers <jsm@polyomino.org.uk>
24620
24621 * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Define.
24622 (warning, error, pedwarn, sorry): Use ATTRIBUTE_GCC_FE_DIAG.
24623
24624 2004-07-06 Richard Henderson <rth@redhat.com>
24625
24626 * config/i386/i386.c (legitimize_pic_address): Make static.
24627 (legitimize_address): Handle CONST with TLS operand.
24628 (ix86_expand_move): Don't call legitimize_pic_address directly.
24629 * config/i386/i386-protos.h (legitimize_pic_address): Remove.
24630
24631 2004-07-06 Roger Sayle <roger@eyesopen.com>
24632
24633 * ifcvt.c (struct noce_if_info): Add a Boolean b_unconditional field.
24634 (noce_try_sign_mask): Tweak rtx_cost check if t is evaluated anyway.
24635 (noce_process_if_block): Initialize if_info.b_unconditional if insn_b
24636 is currently executed unconditionally, i.e. not in "else_bb".
24637
24638 2004-07-06 Steven Bosscher <stevenb@suse.de>
24639
24640 * config/alpha/alpha.c (alpha_use_dfa_pipeline_interface): Remove.
24641 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24642 * config/arm/arm.c (arm_use_dfa_pipeline_interface): Remove.
24643 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24644 * config/frv/frv.c (frv_use_dfa_pipeline_interface): Remove.
24645 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24646 * config/i386/i386.c (ia32_use_dfa_pipeline_interface): Remove.
24647 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24648 * config/ia64/ia64.c (ia64_use_dfa_pipeline_interface): Remove.
24649 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24650 * config/pa/pa.c (hhpa_use_dfa_pipeline_interface): Remove.
24651 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24652 * config/sparc/sparc.c (sparc_use_dfa_pipeline_interface): Remove.
24653 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24654 * config/v850/v850.c (v850_use_dfa_pipeline_interface): Remove.
24655 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24656
24657 2004-07-06 Daniel Berlin <dberlin@dberlin.org>
24658
24659 * dojump.c (do_jump): REFERENCE_EXPR is dead.
24660 * expr.c (expand_expr_real_1): Ditto.
24661 * tree-inline.c (estimate_num_insns_1): Ditto.
24662 * tree-pretty-print.c (dump_generic_node): Ditto.
24663 (op_symbol): Ditto.
24664 * tree.def: Ditto.
24665
24666 2004-07-06 Daniel Berlin <dberlin@dberlin.org>
24667
24668 * tree-ssa-pre.c (reference_node_pool): New pool.
24669 (find_or_generate_expression): Class 'r' is okay too.
24670 (create_value_expr_from): Ditto.
24671 (add_to_sets): LHS should not include vuses.
24672 (eliminate): Ditto.
24673 (compute_avail): Reverse ordering of tests.
24674 Valuize INDIRECT_REF as well.
24675
24676 2004-07-06 Richard Sandiford <rsandifo@redhat.com>
24677
24678 PR rtl-optimization/16380
24679 * loop.c (check_dbra_loop): Sink comparison instructions if they
24680 do something other than set cc0.
24681
24682 2004-07-06 James E Wilson <wilson@specifixinc.com>
24683
24684 * doc/interface.texi (longjmp and automatic variables): Delete
24685 paragraph recommending taking the address of a variable.
24686
24687 2004-07-06 Nathan Sidwell <nathan@codesourcery.com>
24688
24689 * vec.h (VEC_embedded_alloc): Remove.
24690 (VEC_embedded_size, VEC_embedded_init): New.
24691 (VEC_alloc, VEC_reserve, VEC_safe_push, VEC_safe_insert): Add
24692 MEM_STAT_INFO.
24693 (VEC_truncate): New.
24694 (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL.
24695 (vec_embedded_alloc): Remove.
24696 * vec.c (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL, adjust.
24697 (vec_embedded_alloc): Remove.
24698
24699 2004-07-06 Mark Mitchell <mark@codesourcery.com>
24700
24701 * Makefile.in (langhooks.o): Do not depend on gt-langhooks.h.
24702 (gt-langhooks.h): Remove.
24703
24704 2004-07-06 George Helffrich <george@gly.bris.ac.uk>
24705
24706 * xcoffout.h (DBX_FINISH_SYMBOL): Fix typo.
24707
24708 2004-07-06 Eric Botcazou <ebotcazou@libertysurf.fr>
24709
24710 * config/sparc/sparc.c (get_pc_symbol): Rename into
24711 add_pc_to_pic_symbol.
24712 (get_pc_symbol_name): Rename into add_pc_to_pic_symbol_name.
24713 (load_pic_register): Account for previous changes.
24714 Use reg_names. Don't create the label twice.
24715 * config/sparc/sparc.md (UNSPEC_GET_PC): Rename into
24716 UNSPEC_LOAD_PCREL_SYM.
24717 (get_pc): Rename into load_pcrel_sym. Add predicate to
24718 operands. Remove condition.
24719
24720 2004-07-06 Nathan Sidwell <nathan@codesourcery.com>
24721
24722 * dbxout.c (dbxout_type): Don't test whether the binfo slot of
24723 RECORD, UNION & QUAL_UNION is actually a binfo.
24724
24725 * tree.h (TREE_VIA_VIRTUAL): Rename to ...
24726 (BINFO_VIRTUAL_P): ... here. Require TREE_BINFO only.
24727 (BINFO_MARKED, BINFO_FLAG_[16]): New binfo flags.
24728 * dbxout.c (dbxout_type): Use BINFO_VIRTUAL_P.
24729 * dwarf2out.c (add_data_member_location_attribute): Likewise.
24730 (gen_inheritance_die): Likewise.
24731 * tree-dump.c (deque_and_dump): Likewise.
24732 * doc/c-tree.texi (Binfos): Add under reconstruction note.
24733
24734 2004-07-06 Steven Bosscher <stevenb@suse.de>
24735
24736 * config/mcore/mcore.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
24737 Define.
24738 * config/mcore/mcore.md: Model memory latency with a simple DFA
24739 pipeline description instead of a define_function_unit.
24740
24741 2004-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24742
24743 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Extra arg.
24744 * langhooks.h (var_mod_type_p): Likewise.
24745 * c-decl.c (finish_decl): Add extra arg to variably_modified_type_p.
24746 * expr.c (count_type_elements): Properly handle return from
24747 array_type_nelts and properly test for overflow.
24748 * gimplify.c (gimplify_init_constructor): Properly handle return
24749 from array_type_nelts.
24750 (gimplify_addr_expr): Remove redundant clear of TREE_SIDE_EFFECTS.
24751 * integrate.c (copy_decl_for_inlining): Correct comments.
24752 * tree-inline.c (remap_decl): Update comments, remove dead code,
24753 and copy DECL_FIELD_OFFSET and DECL_QUALIFIER, if they exist.
24754 (remap_type): Only remap if variably modified by vars in function
24755 being inlined.
24756 (copy_body_r): Use compatible_type langhooks to see when can fold.
24757 (setup_one_parameter): Don't remap type.
24758 (inline_forbidden_p_1): Add arg to variably_modified_type_p.
24759 * tree.c (recompute_tree_invarant_for_addr_expr): Properly
24760 compute TREE_INVARIANT for decl case.
24761 (find_var_from_fn): New function.
24762 (variably_modified_type_p): Add arg and call new function.
24763 * tree.h (variably_modified_type_p): Add extra arg.
24764
24765 2004-07-05 Eric Botcazou <ebotcazou@libertysurf.fr>
24766
24767 * config/sparc/sparc.md (nonlocal_goto): Remove disabled code.
24768 (goto_handler_and_restore_v9): Delete disabled insn.
24769 (goto_handler_and_restore_v9_sp64): Likewise.
24770
24771 2004-07-05 Roger Sayle <roger@eyesopen.com>
24772
24773 * calls.c (load_register_parameters): Call expand_shift instead
24774 of expand_binop with ashl_optab (or other shift optab) directly.
24775 * expr.c (emit_group_load, emit_group_store): Likewise.
24776 * function.c (assign_parm_setup_block): Likewise.
24777 * stmt.c (shift_return_value): Likewise.
24778
24779 2004-07-05 Jakub Jelinek <jakub@redhat.com>
24780
24781 * expr.c (expand_assignment): Disable the bitfield += optimizations.
24782
24783 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
24784
24785 * doc/sourcebuild.texi: Revert previous patch.
24786
24787 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
24788
24789 * c-decl.c, config/m32r/m32r.c, expr.c, optabs.c: Don't check
24790 TARGET_MEM_FUNCTIONS.
24791 * system.h: Poison TARGET_MEM_FUNCTIONS.
24792 * libfuncs.h (LTI_bcopy, LTI_bcmp, LTI_bzero, bcopy_libfunc,
24793 bcmp_libfunc, bzero_libfunc): Remove.
24794 * optabs.c (init_obtabs): Don't set bcopy_libfunc, bcmp_libfunc or
24795 bzero_libfunc.
24796 * doc/tm.texi (TARGET_MEM_FUNCTIONS): Remove.
24797 * doc/standards.texi: Don't mention calling BSD string functions.
24798 * doc/invoke.texi: Likewise. Mention that memmove may be called.
24799 * config/vax/t-memfuncs: New.
24800 * config/memcmp.c, config/memcpy.c, config/memmove.c,
24801 config/memset.c: New.
24802 * config/pdp11/t-pdp11 (LIB2FUNCS_EXTRA): Use these files.
24803 * config.gcc (vax-*-bsd*, vax-*-sysv*, vax-*-ultrix*): Use
24804 vax/t-memfuncs.
24805 * config/alpha/alpha.h, config/arc/arc.h, config/arm/arm.h,
24806 config/avr/avr.h, config/c4x/c4x.h, config/cris/aout.h,
24807 config/elfos.h, config/gnu.h, config/h8300/h8300.h,
24808 config/i386/gas.h, config/ia64/ia64.h, config/interix.h,
24809 config/ip2k/ip2k.h, config/lynx-ng.h, config/m32r/m32r.h,
24810 config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h,
24811 config/netbsd.h, config/openbsd.h, config/pa/pa.h,
24812 config/rs6000/rs6000.h, config/rtems.h, config/s390/s390.h,
24813 config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
24814 config/svr3.h: Don't define TARGET_MEM_FUNCTIONS.
24815
24816 2004-07-05 Richard Henderson <rth@redhat.com>
24817
24818 * function.c (assign_parm_setup_reg): Properly rename variables in
24819 FUNCTION_ARG_CALLEE_COPIES section.
24820
24821 2004-07-05 Zack Weinberg <zack@codesourcery.com>
24822
24823 * tree-mudflap.c: Include cgraph.h.
24824 (mf_init_extern_trees): Rename to mudflap_init. Export.
24825 Rewrite to create synthetic declarations instead of looking
24826 up declarations from mf-runtime.h.
24827 (mf_make_builtin, mf_make_cache_struct_type): New functions.
24828 (mf_cache_shift_decl, mf_cache_mask_decl, mf_unregister_fndecl):
24829 Correct commentary.
24830 (execute_mudflap_function_decls, mudflap_register_call):
24831 Don't call mf_init_extern_trees.
24832 (mudflap_finish_file): Use cgraph_build_static_cdtor.
24833
24834 * tree-mudflap.h: Update prototypes.
24835 * c-mudflap.c: Delete file.
24836 * c-common.c: Include tree-mudflap.h.
24837 (c_common_nodes_and_builtins): Call mudflap_init if appropriate.
24838 * Makefile.in: Remove all references to c-mudflap.o.
24839 Update dependencies.
24840
24841 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24842
24843 * pa.md (prefetch, prefetch_32, prefetch_64): Only allow short
24844 displacements with the spatial-locality cache-control completer.
24845
24846 2004-07-05 Zack Weinberg <zack@codesourcery.com>
24847
24848 * langhooks.c: Don't include gt-langhooks.h.
24849 (var_labelno): Delete.
24850 (lhd_set_decl_assembler_name): Do not append a distinguishing
24851 number to file-scope internal-linkage declarations for the first
24852 input file, even if they have DECL_CONTEXT set. Use DECL_UID of
24853 the declaration itself (if at block scope), or its containing
24854 TRANSLATION_UNIT_DECL (if at file scope) for the distinguishing
24855 number.
24856
24857 * opts.c (cur_in_fname): New global.
24858 * opts.h: Declare it.
24859 * tree.c: Include opts.h.
24860 (make_node_stat): If creating a TRANSLATION_UNIT_DECL, give it
24861 DECL_UID equal to cur_in_fname.
24862 (copy_node_stat): Do not change DECL_UID when copying a
24863 TRANSLATION_UNIT_DECL.
24864 (build_common_tree_nodes): Adjust next_decl_uid to reserve the
24865 range 0 .. num_in_fnames-1 for TRANSLATION_UNIT_DECLs.
24866
24867 * c-decl.c (c_static_assembler_name): Delete.
24868 * c-tree.h (c_static_assembler_name): Delete prototype.
24869 * c-lang.c, objc/objc-lang.c: Don't override
24870 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME.
24871
24872 * Makefile.in (tree.o): Update dependencies.
24873 (GTFILES): Remove langhooks.c.
24874
24875 2004-07-05 Roger Sayle <roger@eyesopen.com>
24876
24877 * fold-const.c (fold) <TRUNC_MOD_EXPR>: Optimize unsigned modulus
24878 by a power of two into a bit-wise AND, i.e. "X % C" as "X & (C-1)".
24879 Normalize "X % C" as "X % -C" for signed modulus and negative C.
24880 Optimize "X % -Y" as "X % Y" for signed modulus.
24881 <EQ_EXPR>: Recursively call "fold" when transforming "(X % Y) == 0"
24882 into "((unsigned) X % Y) == 0".
24883
24884 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
24885
24886 * sourcebuild.texi (Config Fragments): Use @comma{} in
24887 cross-reference to section title.
24888
24889 2004-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24890
24891 * tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.
24892 * gimplify.c (gimple_add_tmp_var, gimplify_bind_expr): Use it.
24893 (gimplify_target_expr, gimplify_expr): Likewise.
24894 (copy_if_shared_r): No longer need special case for BIND_EXPR.
24895 (unshare_body, unvisit_body): Only look at nested if BODY_P is
24896 whole function.
24897 (gimplify_compound_lval): See if we can strip any useless conversion.
24898 (gimplify_modify_expr, gimplify_modify_expr_to_memcpy): Take size
24899 from RHS, not LHS.
24900 (gimplify_modify_expr_to_memset): Likewise.
24901 (gimplify_expr, case CONSTRUCTOR): Handle use as statement.
24902 * tree-inline.c (setup_one_parameter): Use DECL_SEEN_IN_BIND_EXPR_P.
24903 (declare_inline_vars): Likewise.
24904 (walk_type_fields): New function.
24905 (walk_tree): Use it.
24906 * tree-nested.c (create_tmp_var_for): Show seen in BIND_EXPR.
24907
24908 * tree-sra.c (struct sra_walk_fns): Init function now returns bool.
24909 (sra_walk_modify_expr): Allow init function to fail.
24910 (scan_init): Now returns bool.
24911 (generate_element_init): If can't understand INIT, return false.
24912 (scalarize_init): Return false if generate_element_init does.
24913
24914 * tree-pretty-print.c (dump_generic_node, case ARRAY_TYPE): Properly
24915 print bounds.
24916
24917 * expr.c (expand_expr_real_1, case SWITCH_EXPR): Don't check against
24918 bounds if bounds aren't constant.
24919
24920 * tree-cfg.c (verify_expr): Use CHECK_OP in binary case.
24921
24922 * function.c, langhooks-def.h, langhooks.h: Move max_size hook
24923 to type hooks; remove bogus PARAMS.
24924
24925 2004-07-05 Nathan Sidwell <nathan@codesourcery.com>
24926
24927 * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Use TYPE_LANG_SLOT_1.
24928 * dwarf2out.c (add_data_member_location_attribute): Check for
24929 TREE_BINFO.
24930 * tree.c (tree_node_kinds): Add "binfos".
24931 (binfo_lang_slots): New.
24932 (make_node_stat): Add TREE_BINFO.
24933 (make_tree_binfo_stat): New.
24934 (tree_node_structure): Add TREE_BINFO.
24935 * tree.def (TREE_BINFO): New.
24936 * tree.h (REC_OR_UNION_CHECK): Rename to ...
24937 (RECORD_OR_UNION_CHECK): ... here.
24938 (NOT_RECORD_OR_UNION_CHECK): New.
24939 (TRE_VIA_VIRTUAL): Allow TREE_LIST or TREE_BINFO.
24940 (TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD): Adjust for
24941 RECORD_OR_UNION_CHECK.
24942 (TYPE_BINFO): Use RECORD_OR_UNION_CHECK.
24943 (TYPE_LANG_SLOT_1): New.
24944 (BINFO_TYPE, BINFO_OFFSET, BINFO_VTABLE, BINFO_VIRTUALS,
24945 BINFO_BASETYPES, TYPE_BINFO_BASETYPES, BINFO_VPTR_FIELD,
24946 BINFO_BASEACCESSES, BINFO_INHERITANCE_CHAIN): Adjust.
24947 (BINFO_ELTS): Remove.
24948 (BINFO_LANG_SLOT): New.
24949 (struct tree_binfo): New.
24950 (binfo_lang_slots): Declare.
24951 (enum tree_node_structure_enum): Add TS_BINFO.
24952 (union tree_node): Add binfo.
24953 (make_tree_binfo_stat): Declare.
24954 (make_tree_binfo): New.
24955 (enum tree_node_kind): Add binfo_kind.
24956
24957 * objc/objc-act.c (start_class, objc_declare_protocols,
24958 start_protocols): Use TYPE_LANG_SLOT_1.
24959 * objc/objc-act.h (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): Rename
24960 to ...
24961 (CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS): ... here.
24962 (CLASS_IVARS, CLASS_RAW_IVARS, CLASS_STATIC_TEMPLATE,
24963 CLASS_CATEGORY_LIST, CLASS_PROTOCOL_LIST, CLASS_OWN_IVARS,
24964 PROTOCOL_LIST, PROTOCOL_FORWARD_DECL): Use TYPE_LANG_SLOT_1.
24965
24966 2004-07-05 Steven Bosscher <stevenb@suse.de>
24967
24968 * rtl.h (struct rtx_def): Remove the integrated flag.
24969 Use the return_val flag for MEM_SCALAR_P.
24970 Reshuffle and update flags in CLEAR_RTX_FLAGS.
24971
24972 2004-07-05 Richard Sandiford <rsandifo@redhat.com>
24973
24974 PR target/16357
24975 * config/mips/mips.c (mips_block_move_straight): Pass BLKmode memrefs
24976 to mips_expand_unaligned_load, mips_expand_unaligned_store, and
24977 move_by_pieces.
24978
24979 2004-07-05 Josef Zlomek <zlomekj@suse.cz>
24980
24981 * var-tracking.c: Fix some comments.
24982 (frame_stack_adjust): New.
24983 (vt_stack_adjustments): Init stack_adjust of entry block to
24984 minus stack adjustment of function prologue.
24985 (adjust_stack_reference): Do not adjust if adjustment == 0.
24986 (compute_bb_dataflow): Use plus_constant instead of gen_rtx_PLUS.
24987 (emit_notes_in_bb): Likewise.
24988 (vt_add_function_parameters): Do not adjust locations of
24989 function arguments.
24990 (vt_initialize): Compute the stack adjustment of function
24991 prologue and offset the initial "location" of frame_base_decl
24992 from the stack pointer after prologue.
24993
24994 2004-07-04 Richard Henderson <rth@redhat.com>
24995
24996 * function.c (struct assign_parm_data_all): New.
24997 (struct assign_parm_data_one): New.
24998 (assign_parms_initialize_all, assign_parms_augmented_arg_list,
24999 assign_parm_find_data_types, assign_parms_setup_varargs,
25000 assign_parm_find_entry_rtl, assign_parm_is_stack_parm,
25001 assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl,
25002 assign_parm_adjust_stack_rtl, assign_parm_setup_block_p,
25003 assign_parm_setup_block, assign_parm_setup_reg,
25004 assign_parm_setup_stack, assign_parms_unsplit_complex): Split from ...
25005 (assign_parms): ... here.
25006
25007 2004-07-04 Daniel Berlin <dberlin@dberlin.org>
25008
25009 * tree-ssa-pre.c (bb_value_sets): phi_gen, tmp_gen, new_sets
25010 now are bitmap_set_t's.
25011 (bitmap_insert_into_set): No point in inserting the value if
25012 it's invariant.
25013 (bitmap_set_contains): New function.
25014 (bitmap_set_replace_value): Add comment on why we do it
25015 this way.
25016 (set_contains): Removed.
25017 (bitmap_set_subtract_from_value_set): New name of
25018 set_subtract now that it's arguments are two different
25019 types of sets.
25020 Update callers.
25021 (bitmap_find_leader): Change algorithm used.
25022 (find_or_generate_expression): Update use of functions for new
25023 bitmap sets.
25024 (create_expression_by_pieces): Ditto.
25025 (insert_aux): Ditto.
25026 (insert): Ditto.
25027 (add_to_sets): Ditto.
25028 (init_pre): Ditto.
25029 (execute_pre): Ditto.
25030 (compute_avail): Ditto.
25031 Also ignore virtual phis.
25032
25033 2004-07-04 Richard Sandiford <rsandifo@redhat.com>
25034
25035 * combine.c (simplify_comparison): Fix comment typo.
25036
25037 2004-07-04 Eric Botcazou <ebotcazou@libertysurf.fr>
25038
25039 * config/sparc/sparc.c (SIBCALL_SLOT_EMPTY_P): Rename
25040 into LEAF_SIBCALL_SLOT_RESERVED_P after negation.
25041 (eligible_for_sibcall_delay): Adjust use of SIBCALL_SLOT_EMPTY_P.
25042 (output_restore): Change parameter from 'insn' to 'pat'.
25043 (output_return): Adjust call to output_restore.
25044 (output_sibcall): Adjust use of SIBCALL_SLOT_EMPTY_P.
25045 Adjust call to output_restore.
25046
25047 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
25048
25049 * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_COMMON): Define __unix__
25050 and assert system is bsd.
25051
25052 2004-07-04 Richard Sandiford <rsandifo@redhat.com>
25053
25054 * config/mips/mips.h (MASK_DEBUG_C, TARGET_DEBUG_C_MODE): Delete.
25055 (TARGET_SWITCHES): Remove -mdebugc.
25056 * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
25057 (sltu, sleu): Remove TARGET_DEBUG_C_MODE handling.
25058 (seq_[sd]i, sne_[sd]i, sge_[sd]i, sle_[sd]i_reg, sgeu_[sd]i)
25059 (sle_[sd]i_reg): Delete.
25060
25061 2004-07-04 Steven Bosscher <stevenb@suse.de>
25062
25063 * config/iq2000/iq2000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
25064 Define.
25065 * config/iq2000/iq2000.md: Translate old pipeline description to an
25066 equivalent new one.
25067
25068 2004-07-04 Roger Sayle <roger@eyesopen.com>
25069
25070 * tree-ssa-ccp.c (set_rhs): Change function to return a bool.
25071 Ensure the replacement rhs is valid gimple before performing
25072 the substitution. Return false if these sanity checks fail.
25073 (fold_stmt): Only set changed to true, if set_rhs returns true.
25074 (execute_fold_all_builtins): Only call modify_stmt if set_rhs
25075 succeeds.
25076
25077 2004-07-04 Richard Henderson <rth@redhat.com>
25078
25079 PR c/16348
25080 * c-typeck.c (c_finish_loop): Don't clear cond for cond_is_first loops.
25081
25082 2004-07-04 Mark Mitchell <mark@codesourcery.com>
25083
25084 * configure.ac (ranlib_flags): New variable.
25085 * Makefile.in (RANLIB_FLAGS): New variable.
25086 (libbackend.a): Use it.
25087 * configure: Regenerated.
25088
25089 2004-07-04 Roger Sayle <roger@eyesopen.com>
25090
25091 * ifcvt.c (noce_try_sign_mask): Call emit_store_flag to generate
25092 a "sign mask" instead of using ashr_optab directly.
25093
25094 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
25095
25096 * doc/cpp.texi: Don't document what we do for ill-formed expressions.
25097 * doc/cppopts.texi: Clarify processing of command-line defines.
25098
25099 2004-07-04 Gerald Pfeifer <gerald@pfeifer.com>
25100
25101 * doc/contrib.texi (Contributors): Adjust link for GNU Classpath.
25102
25103 2004-07-04 Richard Henderson <rth@redhat.com>
25104
25105 * rtl.def (ADDRESSOF): Remove.
25106 * alias.c (rtx_equal_for_memref_p): Don't handle addressof.
25107 (find_base_term, memrefs_conflict_p): Likewise.
25108 * cse.c (fixed_base_plus_p, find_best_addr: Likewise.
25109 (fold_rtx, cse_insn, set_live_p): Likewise.
25110 * dwarf2out.c (mem_loc_descriptor): Likewise.
25111 (add_location_or_const_value_attribute): Likewise.
25112 * emit-rtl.c (copy_insn_1): Likewise.
25113 * explow.c (memory_address): Likewise.
25114 * expmed.c (store_split_bit_field): Likewise.
25115 * expr.c (expand_expr_real_1): Likewise.
25116 * function.c (instantiate_decl
25117 (instantiate_virtual_regs_1, fix_lexical_addr): Likewise.
25118 * genrecog.c (preds, validate_pattern): Likewise.
25119 * integrate.c (copy_rtx_and_substitute): Likewise.
25120 * recog.c (general_operand, register_operand): Likewise.
25121 (memory_address_p): Likwise.
25122 * reload1.c (eliminate_regs, elimination_effects): Likewise.
25123 * rtl.c (copy_rtx): Likewise.
25124 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
25125 (rtx_addr_can_trap_p, nonzero_address_p, address_cost): Likewise.
25126 * rtlhooks.c (gen_lowpart_general): Likewise.
25127 * stmt.c (expand_asm_operands): Likewise.
25128 * web.c (entry_register, replace_ref, web_main): Likewise.
25129 * config/alpha/alpha.c (input_operand, alpha_legitimate_address_p,
25130 alpha_expand_block_move, alpha_expand_block_clear): Likewise.
25131 * config/arm/arm.c (thumb_rtx_costs): Likewise.
25132 * config/c4x/c4x.c (c4x_valid_operands): Likewise.
25133 * config/frv/frv.c (move_destination_operand, move_source_operand,
25134 condexec_dest_operand, condexec_source_operand,
25135 condexec_memory_operand): Likewise.
25136 * config/h8300/h8300.h (PREDICATE_CODES): Likewise.
25137 * config/ia64/ia64.c (general_xfmode_operand): Likewise.
25138 (destination_xfmode_operand): Likewise.
25139 * config/mips/mips.h (PREDICATE_CODES): Likewise.
25140 * config/mn10300/mn10300.c (mn10300_address_cost_1): Likewise.
25141 * config/s390/s390.c (general_s_operand): Likewise.
25142 * config/s390/s390.md (mov*): Likewise.
25143 * config/sparc/sparc.h (PREDICATE_CODES): Likewise.
25144
25145 * c-typeck.c (c_mark_addressable): Don't put_var_into_stack.
25146 * expr.c (expand_expr_real_1): Likewise.
25147 * stmt.c (expand_decl): Likewise.
25148 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
25149
25150 * function.c (struct fixup_replacement, struct insns_for_mem_entry,
25151 postponed_insns, put_var_into_stack, put_reg_into_stack,
25152 schedule_fixup_var_refs, fixup_var_refs, find_fixup_replacement,
25153 fixup_var_refs_insns, fixup_var_refs_insns_with_hash,
25154 fixup_var_refs_insn, fixup_var_refs_1, fixup_memory_subreg,
25155 walk_fixup_memory_subreg, fixup_stack_1, optimize_bit_field,
25156 gen_mem_addressof, flush_addressof, put_addressof_into_stack,
25157 purge_bitfield_addressof_replacements, purge_addressof_replacements,
25158 purge_addressof_1, insns_for_mem_hash, insns_for_mem_comp,
25159 struct insns_for_mem_walk_info, insns_for_mem_walk,
25160 compute_insns_for_mem, is_addressof, purge_addressof, setjmp_protect,
25161 setjmp_protect_args): Remove.
25162 (push_function_context_to): Don't handle var_refs_queue.
25163 (pop_function_context_from, free_after_compilation): Likewise.
25164 (instantiate_virtual_regs): Don't handle parm_reg_stack_loc.
25165 (assign_parms, allocate_struct_function): Likewise.
25166 (use_register_for_decl): New.
25167 (expand_function_end): Don't setjmp_protect.
25168 * function.h (struct emit_status): Update commentary.
25169 (struct function): Remove x_max_parm_reg, x_parm_reg_stack_loc.
25170 (max_parm_reg, parm_reg_stack_loc): Remove.
25171 * passes.c (DFI_addressof): Remove.
25172 (dump_file_info): Remove addressof.
25173 (rest_of_handle_addressof): Remove.
25174 (rest_of_compilation): Don't call it.
25175 * rtl.h (ADDRESSOF_REGNO, ADDRESSOF_DECL): Remove.
25176 * stmt.c (expand_decl): Use use_register_for_decl.
25177 * tree.h: Update decls.
25178 * web.c (mark_addressof): Remove.
25179 * doc/invoke.texi (-dF): Remove.
25180
25181 2004-07-03 Richard Henderson <rth@redhat.com>
25182
25183 * config/ia64/ia64.c (spill_xfmode_operand): Use assign_stack_temp
25184 instead of gen_mem_addressof.
25185 * config/ia64/ia64.md (movxf): Use assign_stack_temp to handle
25186 TImode output register.
25187
25188 2004-07-03 Richard Henderson <rth@redhat.com>
25189
25190 PR tree-optimization/16341
25191 * tree-sra.c (sra_walk_function): Increment to next stmt before
25192 processing the current stmt.
25193 (sra_insert_after): Always use BSI_SAME_STMT.
25194
25195 2004-07-03 Richard Henderson <rth@redhat.com>
25196
25197 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Don't fold
25198 fp plus with minus.
25199
25200 2004-07-03 Joseph S. Myers <jsm@polyomino.org.uk>
25201
25202 * tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
25203 with tree_int_cst_equal.
25204
25205 2004-07-03 Andreas Schwab <schwab@suse.de>
25206
25207 * config/ia64/ia64.md: Define new attribute "empty".
25208 (prologue_use, nop_x, insn_group_barrier): Set it.
25209
25210 * config/ia64/ia64.c (ia64_reorg): When looking for trailing call
25211 skip over "empty" insns.
25212
25213 2004-07-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25214
25215 * tree-inline.c (initialize_inlined_parameters): Pass proper function
25216 context to gimplify_body.
25217 (walk_tree): Don't walk into types twice.
25218 (walk_tree, case POINTER_TYPE): Deal with mutually recursive pointers.
25219
25220 * tree-sra.c (generate_element_init): Remove any useless conversions.
25221
25222 * gimplify.c (gimplify_conversion): Remove stripping useless
25223 conversions from here.
25224 (gimplify_expr): Put it here, in place of call to STRIP_MAIN_TYPE_NOPS.
25225 (gimplify_modify_expr_to_memcpy, gimplify_variable_sized_compare):
25226 Unshare before substituting PLACEHOLDER_EXPR.
25227 (gimplify_modify_expr_to_memset): Likewise.
25228 Pass address of TO to memset, not TO itself.
25229 (gimplify_init_constructor): Make copy of OBJECT so we have it each
25230 time we make an expression (to match a PLACEHOLDER_EXPR).
25231
25232 * tree-ssa.c (tree_ssa_useless_type_conversion): Also look at
25233 VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
25234 * tree-ssa-ccp.c (fold_stmt): Call just STRIP_USELESS_TYPE_CONVERSION.
25235 * tree-ssa-dom.c (local_fold): Likewise.
25236
25237 * langhooks-def.h (LANG_HOOKS_TYPE_MAX_SIZE): New langhook.
25238 * langhooks.h (strct lang_hooks): New field type_max_size.
25239 * function.c (assign_temp): Call it.
25240
25241 2004-07-03 Steven Bosscher <stevenb@suse.de>
25242
25243 * config/sh/sh.c (sh_use_dfa_interface): Add TARGET_SH1.
25244 * config/sh/sh.md: Convert the SH1 pipeline description to
25245 a DFA model.
25246
25247 2004-07-02 Zack Weinberg <zack@codesourcery.com>
25248
25249 * c-decl.c (struct c_binding): Remove contour field; add
25250 depth, invisible, nested fields.
25251 (B_IN_SCOPE, B_IN_CURRENT_SCOPE, B_IN_FILE_SCOPE)
25252 (B_IN_EXTERNAL_SCOPE): New convenience macros.
25253 (bind): Add invisible and nested arguments. Initialize
25254 new fields of struct c_binding; adjust loop scanning for
25255 insertion point.
25256 (free_binding_and_advance): Clear structure with memset.
25257 (pop_scope): Adjust to match. Set DECL_CONTEXT on everything
25258 in file scope, even if it's in external scope too.
25259 (pushdecl): Adjust to match. Create invisible file-scope
25260 declarations for block-scope forward declarations of static functions.
25261 (pushtag, warn_if_shadowing, pushdecl_top_level, implicitly_declare)
25262 (undeclared_variable, lookup_label, declare_label, define_label)
25263 (lookup_tag, lookup_name, lookup_name_in_scope, builtin_function)
25264 (c_make_fname_decl, store_parm_decls_newstyle, identifier_global_value)
25265 (store_parm_decls_oldstyle): Adjust to match.
25266 (diagnose_mismatched_decls): Correct handling of linkage clashes.
25267 (merge_decls): No need to copy C_DECL_IN_EXTERNAL_SCOPE.
25268
25269 * c-tree.h (C_DECL_IN_EXTERNAL_SCOPE): Delete.
25270 (C_DECL_DECLARED_BUILTIN, C_DECL_REGISTER): Slide down one.
25271
25272 2004-07-02 Richard Henderson <rth@redhat.com>
25273
25274 * c-decl.c (grokdeclarator): Don't frob current_function_decl
25275 around variable_size.
25276 (set_decl_nonlocal): Remove.
25277 (store_parm_decls): Add stmts for pending sizes.
25278 * calls.c (calls_function, calls_function_1): Remove.
25279 (precompute_arguments): Don't call it.
25280 * cfgexpand.c (set_save_expr_context): Remove.
25281 (tree_expand_cfg): Don't call it.
25282 * dwarf2out.c (add_bound_info): Don't handle SAVE_EXPR.
25283 (dwarf2out_finish): Likewise.
25284 * expr.c (emit_block_move): Adjust addresses to BLKmode.
25285 (store_constructor): Don't pre-evaluate SAVE_EXPR.
25286 (safe_from_p): Don't queue SAVE_EXPRs.
25287 (expand_expr_real_1 <case SAVE_EXPR>): Rewrite to expect,
25288 or build plain VAR_DECLs.
25289 * fold-const.c (twoval_comparison_p): Don't look at SAVE_EXPR_RTL.
25290 (fold): Likewise.
25291 (fold_checksum_tree): Don't special-case SAVE_EXPR.
25292 * function.c (free_after_compilation): Don't clear x_save_expr_regs.
25293 (put_var_into_stack): Don't handle SAVE_EXPR.
25294 (gen_mem_addressof): Likewise.
25295 * function.h (struct function): Remove x_save_expr_regs.
25296 (save_expr_regs): Remove.
25297 * gengtype.c (adjust_field_tree_exp): Don't special-case SAVE_EXPR.
25298 * print-tree.c (print_node): Don't dump SAVE_EXPR_NOPLACEHOLDER.
25299 * stor-layout.c (variable_size): Don't set it.
25300 (force_type_save_exprs, force_type_save_exprs_1): Remove.
25301 * tree-inline.c (remap_save_expr): Remove fn argument. Update
25302 all callers. Don't set SAVE_EXPR_CONTEXT.
25303 * tree-inline.h (remap_save_expr): Update decl.
25304 * tree.c (save_expr): Update build size.
25305 (first_rtl_op): Don't handle SAVE_EXPR.
25306 (unsave_expr_1, contains_placeholder_p): Likewise.
25307 (decl_function_context): Likewise.
25308 * tree.def (SAVE_EXPR): Remove args 1 and 2.
25309 * tree.h (SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL): Remove.
25310 (SAVE_EXPR_NOPLACEHOLDER, SAVE_EXPR_PERSISTENT_P): Remove.
25311
25312 2004-07-03 Joseph S. Myers <jsm@polyomino.org.uk>
25313
25314 * doc/bugreport.texi, doc/configterms.texi, doc/contrib.texi,
25315 doc/contribute.texi, doc/cpp.texi, doc/cppinternals.texi,
25316 doc/extend.texi, doc/install.texi, doc/invoke.texi, doc/md.texi,
25317 doc/portability.texi, doc/tree-ssa.texi, doc/trouble.texi: Avoid
25318 some first-person references and patronizing comments. Based on
25319 printed manual.
25320 * doc/invoke.texi: Don't reference fortran@gnu.org.
25321 * doc/trouble.texi (Warning when a non-void function value is
25322 ignored): Rewrite. From Russ Allbery and Chris Devers.
25323
25324 2004-07-02 Daniel Berlin <dberlin@dberlin.org)
25325
25326 * tree-ssa-pre.c (bitmap_set_t): New.
25327 (bb_value_sets): avail_out is now a bitmap_set_t.
25328 (bitmap_find_leader): New function.
25329 (bitmap_value_insert_into_set): Ditto.
25330 (bitmap_set_copy): Ditto.
25331 (bitmap_value_replace_in_set): Ditto.
25332 (bitmap_set_contains_value): Ditto.
25333 (bitmap_set_new): Ditto.
25334 (bitmap_set_pool): New pool.
25335 (find_or_generate_expression): Use bitmap_ functions on AVAIL sets.
25336 (insert_aux): Ditto.
25337 (add_to_sets): Ditto.
25338 (compute_avail): Ditto
25339 (eliminate): Ditto.
25340 (init_pre): Ditto.
25341 (fini_pre): Ditto.
25342 (execute_pre): Ditto.
25343
25344 2004-07-02 Roger Sayle <roger@eyesopen.com>
25345
25346 * config/rs6000/rs6000.c (struct processor_costs): New structure
25347 used to hold instruction latencies/sizes for processor types.
25348 (rs6000_cost): New global variable pointing to current CPU's costs.
25349 (rs6000_override_options): Initialize rs6000_cost to point to the
25350 appropriate cost table based upon rs6000_cpu and optimize_size.
25351 (rs6000_rtx_costs): Use rs6000_cost to avoid hardcoding processor
25352 timings inline.
25353
25354 2004-07-02 Richard Henderson <rth@redhat.com>
25355
25356 * expmed.c (make_tree): Don't use SET_DECL_RTL.
25357
25358 2004-07-02 Steven Bosscher <stevenb@suse.de>
25359
25360 * tree-flow.h (bb_ann_d): Remove ephi_nodes field.
25361
25362 2004-07-01 Richard Henderson <rth@redhat.com>
25363
25364 * config/alpha/alpha.c (struct machine_function): Add gp_save_rtx.
25365 (alpha_gp_save_rtx): Use assign_stack_local instead of
25366 gen_mem_addressof.
25367
25368 2004-07-01 Richard Henderson <rth@redhat.com>
25369
25370 * config/alpha/alpha.c (struct alpha_rtx_cost_data): Add int_div.
25371 (alpha_rtx_cost_data): Update to match.
25372 (alpha_rtx_cost_size): New.
25373 (alpha_rtx_costs): Honor optimize_size.
25374
25375 2004-07-01 Richard Henderson <rth@redhat.com>
25376
25377 * gimple-low.c (lower_function_body): Don't reset_block_changes here.
25378 * cfgexpand.c (tree_expand_cfg): Do it here.
25379 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): And here.
25380 * config/ia64/ia64.c (ia64_output_mi_thunk): And here.
25381 * config/mips/mips.c (mips_output_mi_thunk): And here.
25382 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): And here.
25383 * config/sh/sh.c (sh_output_mi_thunk): And here.
25384 * config/sparc/sparc.c (sparc_output_mi_thunk): And here.
25385
25386 2004-07-01 Richard Henderson <rth@redhat.com>
25387
25388 * tree.def (RTL_EXPR): Remove.
25389 * c-typeck.c (lvalue_p): Don't handle it.
25390 * expr.c (safe_from_p): Likewise.
25391 (expand_expr_real_1): Likewise.
25392 * fold-const.c (non_lvalue, operand_equal_p, fold): Likewise.
25393 (fold_checksum_tree, tree_expr_nonnegative_p): Likewise.
25394 * gengtype.c (adjust_field_tree_exp): Likewise.
25395 * stmt.c (warn_if_unused_value): Likewise.
25396 * tree-gimple.c (recalculate_side_effects): Likewise.
25397 * tree-pretty-print.c (dump_generic_node): Likewise.
25398 * tree.c (make_node_stat, first_rtl_op, unsave_expr_1): Likewise.
25399 (unsafe_for_reeval, stabilize_reference, build1_stat): Likewise.
25400 * tree.h (RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, RTL_EXPR_ALT_RTL): Remove.
25401
25402 * stmt.c (struct stmt_status): Remove x_last_expr_type,
25403 x_last_expr_value, x_last_expr_alt_rtl, x_expr_stmts_for_value.
25404 (last_expr_type, last_expr_value, last_expr_alt_rtl): Remove.
25405 (expand_expr_stmt): Merge with expand_expr_stmt_value. Remove
25406 all the bits that tracked last_expr.
25407 (expand_end_bindings): Don't track last_expr.
25408 (expand_start_stmt_expr, expand_end_stmt_expr): Remove.
25409 (clear_last_expr): Remove.
25410 (expand_asm): Don't call it.
25411 (expand_asm_operands, expand_end_cond): Likewise.
25412 (expand_naked_return, expand_null_return_1): Likewise.
25413 * c-typeck.c (c_begin_compound_stmt): Likewise.
25414 * cfgexpand.c (expand_block): Use expand_expr_stmt.
25415 * expr.c (expand_expr_real_1): Likewise.
25416 * tree.h: Update prototypes.
25417
25418 * function.h (struct sequence_stack): Remove sequence_rtl_expr.
25419 (struct emit_status): Remove sequence_rtl_expr.
25420 (struct function): Remove x_rtl_expr_chain.
25421 (seq_rtl_expr, rtl_expr_chain): Remove.
25422 * function.c (struct temp_slot): Remove rtl_expr.
25423 (assign_stack_temp_for_type): Don't set it.
25424 (free_temp_slots, pop_temp_slots): Don't check it.
25425 (free_after_compilation): Don't clear x_rtl_expr_chain.
25426 (fixup_var_refs): Don't search it.
25427 (preserve_rtl_expr_result, free_temps_for_rtl_expr): Remove.
25428 * emit-rtl.c (start_sequence): Don't use sequence_rtl_expr
25429 or seq_rtl_expr.
25430 (push_topmost_sequence): Likewise.
25431 (end_sequence, init_emit): Likewise.
25432 (start_sequence_for_rtl_expr): Remove.
25433 * expmed.c (make_tree): Build a VAR_DECL instead of an RTL_EXPR.
25434 * rtl.h (preserve_rtl_expr_result): Remove.
25435
25436 2004-07-02 Kazu Hirata <kazu@cs.umass.edu>
25437
25438 * ifcvt.c, modulo-sched.c, tree-alias-common.c, tree-sra.c,
25439 tree-ssa-copy.c, tree-ssa-dom.c, tree-ssa-pre.c: Fix comment
25440 typos.
25441
25442 2004-07-02 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
25443
25444 * gcc.c (STANDARD_STARTFILE_PREFIX_1): Define.
25445 (STANDARD_STARTFILE_PREFIX_2): Define.
25446 (standard_startfile_prefix_1): Initialize to
25447 STANDARD_STARTFILE_PREFIX_1.
25448 (standard_startfile_prefix_2): Initialize to
25449 STANDARD_STARTFILE_PREFIX_2.
25450 * config/i386/mingw32.h (MD_STARTFILE_PREFIX): Remove.
25451 (STANDARD_STARTFILE_PREFIX_1): Define.
25452 (STANDARD_STARTFILE_PREFIX_2): Define.
25453 * doc/tm.texi (STANDARD_STARTFILE_PREFIX_1): Document.
25454 (STANDARD_STARTFILE_PREFIX_2): Document.
25455
25456 2004-07-01 Richard Henderson <rth@redhat.com>
25457
25458 * tree-sra.c (sra_walk_expr): Don't maybe_lookup_element_for_expr
25459 in order to disable scalarization. Instead set a flag and wait
25460 for a candidate decl.
25461
25462 2004-07-01 Joseph S. Myers <jsm@polyomino.org.uk>
25463
25464 * doc/cppinternals.texi, doc/install.texi, doc/invoke.texi,
25465 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi:
25466 Use terminology "testsuite" and "enumerated".
25467
25468 2004-07-01 Richard Henderson <rth@redhat.com>
25469
25470 * dwarf2out.c (reg_save): Use INVALID_REGNUM.
25471 (dwarf2out_reg_save, dwarf2out_return_save): Likewise.
25472 (initial_return_save): Likewise.
25473 (flush_queued_reg_saves): Remap register numbers.
25474 (dwarf2out_return_reg): Likewise.
25475
25476 2004-07-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25477
25478 * gimplify.c (gimplify_one_sizepos): Don't do anything if any VAR_DECL.
25479
25480 * tree-pretty-print.c (dump_generic_node, case ARRAY_REF): Use
25481 access functions for lower bound and element size and only output
25482 if lower bound nonzero or element size not same as that of type.
25483 (dump_generic_node, case COMPONENT_REF): Use access func. for offset.
25484
25485 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
25486
25487 * c-pretty-print.c (pp_c_postfix_expression): Fix pasto.
25488
25489 2004-07-01 Per Bothner <per@bothner.com>
25490
25491 * final.c (final): Fix typo reported by Aaron W. LaFramboise.
25492
25493 2004-07-01 Jakub Jelinek <jakub@redhat.com>
25494
25495 * expr.c (expand_assignment): Optimize bitfld += cst for 1 bit
25496 bitfields as well. STRIP_NOPS from src operand and PLUS_EXPR's
25497 first operand. Don't optimize if the bitfield is volatile.
25498
25499 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
25500
25501 * c-pretty-print.c (pp_c_postfix_expression): Handle
25502 floating-point comparison operators.
25503 (pp_c_expression): Pass floating-point comparison
25504 operators to pp_c_postfix_expression.
25505
25506 2004-07-01 Roger Sayle <roger@eyesopen.com>
25507
25508 * simplify-rtx.c (simplify_binary_operation) <PLUS, MINUS>: Use
25509 rtx_cost instead of "had_mult" to determine whether the transformed
25510 expression is cheaper than the original.
25511
25512 2004-07-01 Jerry Quinn <jlquinn@optonline.net>
25513
25514 * alias.c (get_alias_set, canon_rtx, get_addr,
25515 nonoverlapping_memrefs_p, nonlocal_referenced_p_1, memory_modified_1):
25516 Use MEM_P.
25517 * builtins.c (expand_builtin_prefetch, expand_builtin_profile_func,
25518 expand_builtin): Likewise.
25519 * calls.c (expand_call, emit_library_call_value_1, store_one_arg):
25520 Likewise.
25521 * combine.c (can_combine_p, combinable_i3pat, try_combine,
25522 find_split_point, combine_simplify_rtx, simplify_set, make_extraction,
25523 rtx_equal_for_field_assignment_p, gen_lowpart_for_combine,
25524 record_dead_and_set_regs_1, get_last_value_validate,
25525 mark_used_regs_combine, move_deaths, unmentioned_reg_p_1): Likewise.
25526 * cse.c (check_dependence, canon_hash, equiv_constant,
25527 gen_lowpart_if_possible, cse_insn, invalidate_from_clobbers,
25528 cse_around_loop, cse_check_loop_start, cse_set_around_loop,
25529 count_reg_usage): Likewise.
25530 * cselib.c (rtx_equal_for_cselib_p, add_mem_for_addr, cselib_lookup,
25531 cselib_invalidate_mem, cselib_invalidate_rtx, cselib_record_set,
25532 cselib_record_sets): Likewise.
25533 * dbxout.c (PARM_PASSED_IN_MEMORY, dbxout_symbol,
25534 dbxout_symbol_location, dbxout_parms, dbxout_reg_parms): Likewise.
25535 * ddg.c (mark_mem_use, mark_mem_store, rtx_mem_access_p): Likewise.
25536 * df.c (df_uses_record): Likewise.
25537 * dojump (do_jump): Likewise.
25538 * dwarf2out.c (stack_adjust_offset, mem_loc_descriptor,
25539 loc_descriptor_from_tree, rtl_for_decl_location, add_bound_info,
25540 decl_start_label): Likewise.
25541 * emit-rtl.c (gen_complex_constant_part, gen_highpart,
25542 operand_subword, change_address_1, make_safe_from): Likewise.
25543 * explow.c (break_out_memory_refs, copy_all_regs, validize_mem,
25544 stabilize, force_not_mem): Likewise.
25545 * expmed.c (store_bit_field, store_split_bit_field, extract_bit_field,
25546 expand_mult_const, expand_divmod, emit_store_flag): Likewise.
25547 * expr.c (convert_move, convert_modes, emit_block_move,
25548 emit_group_load, emit_group_store, clear_storage, emit_move_insn,
25549 emit_move_insn_1, expand_assignment, store_expr,
25550 store_constructor_field, store_constructor, store_field,
25551 force_operand, safe_from_p, expand_expr_real_1, expand_increment):
25552 Likewise.
25553 * final.c (cleanup_subreg_operands, alter_subreg,
25554 get_mem_expr_from_op): Likewise.
25555 * flow.c (notice_stack_pointer_modification_1,
25556 init_propagate_block_info, insn_dead_p, mark_set_1, mark_used_regs):
25557 Likewise.
25558 * function.c (mark_temp_addr_taken, preserve_temp_slots,
25559 preserve_rtl_expr_result, put_var_into_stack, fixup_var_refs_1,
25560 optimize_bit_field, flush_addressof, purge_addressof_1,
25561 instantiate_decl, instantiate_virtual_regs_1, assign_parms,
25562 setjmp_protect, setjmp_protect_args, fix_lexical_addr,
25563 keep_stack_depressed): Likewise.
25564 * ifcvt.c (noce_try_cmove_arith, noce_try_abs, noce_operand_ok,
25565 noce_process_if_block, find_memory): Likewise.
25566 * integrate.c (subst_constants, allocate_initial_values): Likewise.
25567 * local-alloc.c (validate_equiv_mem_from_store, memref_referenced_p,
25568 update_equiv_regs): Likewise.
25569 * loop.c (scan_loop, prescan_loop, note_addr_stored, check_store,
25570 maybe_eliminate_biv_1, find_mem_in_note_1): Likewise.
25571 * optabs.c (expand_abs, emit_unop_insn): Likewise.
25572 * passes.c (rest_of_handle_final): Likewise.
25573 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
25574 move2add_note_store): Likewise.
25575 * ra-build.c (detect_remat_webs): Likewise.
25576 * ra-debug.c (dump_static_insn_cost): Likewise.
25577 * ra-rewrite.c (slots_overlap_p, insert_stores): Likewise.
25578 * recog.c (validate_change, apply_change_group, cancel_changes,
25579 validate_replace_rtx_1, general_operand, register_operand,
25580 nonmemory_operand, push_operand, pop_operand, memory_operand,
25581 indirect_operand, asm_operand_ok, offsettable_memref_p,
25582 offsettable_nonstrict_memref_p, constrain_operands,
25583 store_data_bypass_p): Likewise.
25584 * reg-stack.c (subst_stack_regs_pat): Likewise.
25585 * regclass.c (record_operand_costs, scan_one_insn, record_reg_classes,
25586 copy_cost, reg_scan_mark_refs): Likewise.
25587 * regmove.c (optimize_reg_copy_3, stack_memref_p,
25588 combine_stack_adjustments_for_block): Likewise.
25589 * regrename.c (copyprop_hardreg_forward_1): Likewise.
25590 * reload.c (can_reload_into, push_reload, decompose, immune_p,
25591 find_reloads, find_reloads_address, find_reloads_address_1,
25592 reg_overlap_mentioned_for_reload_p, refers_to_mem_for_reload_p,
25593 find_equiv_reg): Likewise.
25594 * reload1.c (reload, eliminate_regs, eliminate_regs_in_insn,
25595 reload_as_needed, choose_reload_regs, emit_input_reload_insns,
25596 do_input_reload, emit_reload_insns, gen_reload, delete_output_reload,
25597 delete_address_reloads): Likewise.
25598 * resource.c (mark_referenced_resources): Likewise.
25599 * rtlanal.c (get_jump_table_offset, count_occurrences,
25600 reg_referenced_p, reg_set_p, set_of_1, set_noop_p,
25601 reg_overlap_mentioned_p, note_uses, replace_regs, nonzero_bits1,
25602 num_sign_bit_copies1): Likewise.
25603 * rtlhooks.c (gen_lowpart_general): Likewise.
25604 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
25605 * sdbout.c (PARM_PASSED_IN_MEMORY, sdbout_symbol,
25606 sdbout_toplevel_data, sdbout_parms, sdbout_reg_parms,
25607 sdbout_global_decl): Likewise.
25608 * simplify-rtx.c (simplify_subreg): Likewise.
25609 * stmt.c (expand_asm_operands, expand_expr_stmt_value, expand_decl,
25610 expand_anon_union_decl, expand_end_case_type): Likewise.
25611 * unroll.c (calculate_giv_inc): Likewise.
25612 * var-tracking.c (stack_adjust_offset_pre_post,
25613 bb_stack_adjust_offset, track_expr_p, count_uses, add_uses,
25614 add_stores, compute_bb_dataflow, vt_get_decl_and_offset,
25615 vt_add_function_parameters): Likewise.
25616 * varasm.c (make_var_volatile, notice_global_symbol,
25617 assemble_external, decode_addr_const, mark_weak,
25618 default_encode_section_info): Likewise.
25619
25620 2004-07-01 Steven Bosscher <stevenb@suse.de>
25621
25622 * stmt.c (check_seenlabel): Remove.
25623 (pushcase, pushcase_range, expand_end_case_type): Don't call it.
25624
25625 2004-07-01 Richard Henderson <rth@redhat.com>
25626
25627 * function.h (struct function): Remove x_function_call_count.
25628 (function_call_count): Remove.
25629 * calls.c (expand_call): Don't set it.
25630 * integrate.c (copy_rtx_and_substitute): Likewise.
25631
25632 * function.h (struct function): Remove x_cleanup_label.
25633 (cleanup_label): Remove.
25634 * stmt.c (expand_value_return): Don't use it.
25635 * function.c (free_after_compilation): Don't set it.
25636 (expand_function_start): Likewise. Remove parms_have_cleanups arg.
25637 * cfgexpand.c (tree_expand_cfg): Update call.
25638 * tree.h (expand_function_start): Update decl.
25639
25640 2004-07-01 Joseph S. Myers <jsm@polyomino.org.uk>
25641
25642 PR c/1027
25643 * c-lang.c (c_initialize_diagnostics): Move from here ...
25644 * c-objc-common.c: ... to here. Include "c-pretty-print.h".
25645 (c_tree_printer): Use pretty-printer to format %T.
25646 * c-pretty-print.c (pp_c_specifier_qualifier_list): Include space
25647 before '*' if not C++.
25648 (pp_c_direct_abstract_declarator): Don't try to print array upper
25649 bound for flexible array members.
25650 * c-tree.h: Include "diagnostic.h".
25651 (c_initialize_diagnostics): Declare.
25652 * objc/objc-lang.c (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Define.
25653 * c-format.c (format_type_warning): New function. Improve
25654 diagnostics for incorrect format argument types.
25655 (check_format_types): Use it. Add two parameters. Use the
25656 TYPE_MAIN_VARIANT of wanted_type.
25657 (check_format_info_main): Pass new parameters to
25658 check_format_types.
25659 (struct format_wanted_type): Update comment.
25660
25661 2004-07-01 Nick Clifton <nickc@redhat.com>
25662
25663 * target.h (struct gcc_target): Add new field to struct cxx:
25664 import_export_class.
25665 * target-def.h (TARGET_CXX): Initialise the new field.
25666 (TARGET_CXX_IMPORT_EXPORT_CLASS): Provide a default value for
25667 the new field.
25668 * doc/tm.texi: Document the new target hook.
25669
25670 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
25671
25672 * builtins.c (fold_builtin_classify): Fix typo.
25673
25674 2004-07-01 Richard Henderson <rth@redhat.com>
25675
25676 * function.c (identify_blocks, identify_blocks_1): Remove.
25677 * function.h (identify_blocks): Remove.
25678 * rtl.h (NOTE_INSN_BLOCK_BEG): Update comment.
25679
25680 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
25681
25682 * builtins.c (fold_builtin_classify): New.
25683 (fold_builtin_unordered_cmp): Fix commentary.
25684 (fold_builtin): Use it.
25685 * builtins.def: Define builtins for isnan,
25686 isnanf, isnanl, finite, finitef, finitel,
25687 isinf, isinff, isinfl.
25688
25689 2004-07-01 Richard Henderson <rth@redhat.com>
25690
25691 * function.h (struct function): Remove dont_emit_block_notes.
25692 * gimple-low.c (lower_function_body): Don't set it.
25693 * cfgexpand.c (expand_block): Don't check it.
25694 * cfglayout.c (insn_locators_initialize): Likewise.
25695 * expr.c (expand_expr_real, expand_expr_real_1): Likewise.
25696 * passes.c (rest_of_compilation): Likewise.
25697 * stmt.c (expand_start_bindings_and_block): Likewise.
25698 (expand_end_bindings): Likewise.
25699
25700 2004-07-01 Richard Henderson <rth@redhat.com>
25701
25702 * cgraph.h (cgraph_build_static_cdtor): Declare.
25703 * cgraphunit.c (cgraph_build_static_cdtor): New.
25704 * c-objc-common.c (build_cdtor): Use it.
25705 * coverage.c (create_coverage): Likewise.
25706 * libfuncs.h (LTI_gcov_init, gcov_init_libfunc): Remove.
25707 * optabs.c (init_optabs): Don't set gcov_init_libfunc.
25708
25709 See ChangeLog.11 for earlier changes.