system.c (IN_RANGE): Use plain unsigned, not unsigned HOST_WIDE_INT.
[gcc.git] / gcc / ChangeLog
1 2004-12-21 Nathan Sidwell <nathan@codesourcery.com>
2
3 * system.c (IN_RANGE): Use plain unsigned, not unsigned
4 HOST_WIDE_INT.
5 * tree.def (VOID_TYPE, INTEGER_TYPE, REAL_TYPE, COMPLEX_TYPE,
6 VECTOR_TYPE, OFFSET_TYPE, ENUMERAL_TYPE, BOOLEAN_TYPE, CHAR_TYPE,
7 POINTER_TYPE, REFERENCE_TYPE, METHOD_TYPE, FUNCTION_TYPE,
8 FILE_TYPE, ARRAY_TYPE, RECORD_TYPE, UNION_TYPE,
9 QUAL_UNION_TYPE): Reorder for better code efficiency.
10 (CONST_DECL, TYPE_DECL, VAR_DECL, FIELD_DECL, PARM_DECL): Likewise.
11 (INDIRECT_REF, ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF): Likewise.
12 * tree.h (INDIRECT_REF_P): Reorder checks for better optimization.
13 (IS_EXPR_CODE_CLASS): Use IN_RANGE.
14 (INTEGRAL_TYPE_P, FLOAT_TYPE_P): Reorder checks for better
15 optimization.
16
17 2004-12-21 David O'Brien <obrien@FreeBSD.org>
18
19 * config/freebsd-spec.h: Use KSE pthread lib for -pthread.
20
21 2004-12-21 James A. Morrison <phython@gcc.gnu.org>
22
23 PR c/18963
24 * c-decl.c (pushdecl): Remove block trying to merge static function
25 declarations at block scope to file scope declarations.
26
27 2004-12-21 James A. Morrison <phython@gcc.gnu.org>
28
29 PR c/18596
30 * c-parse.in (initdcl): Don't process a declaration if start_decl fails.
31 (notype_initdcl): Don't process a declaration if start_decl fails.
32 * c-decl.c (start_decl): Fail if grokdeclarator fails.
33 (grokdeclarator): Fail if a function definition has an invalid storage
34 class.
35 * c-typeck.c (start_init): Treat error_mark_node the same as 0.
36
37 2004-12-21 Richard Henderson <rth@redhat.com>
38
39 * config/i386/i386.c (x86_sse_split_regs): Rename from
40 x86_sse_partial_regs.
41 * config/i386/i386.h (x86_sse_split_regs): Likewise.
42 (TARGET_SSE_SPLIT_REGS): Rename from TARGET_SSE_PARTIAL_REGS.
43 * config/i386/i386.md (*): Update to match. Remove two
44 floatsisf splitters that use it.
45
46 * config/i386/i386.h (x86_sse_partial_regs_for_cvtsd2ss): Remove.
47
48 * config/i386/i386.c (x86_sse_partial_regs_for_cvtsd2ss): Remove.
49 * config/i386/i386.h (TARGET_SSE_PARTIAL_REGS_FOR_CVTSD2SS): Remove.
50 * config/i386/i386.md (truncdfsf2_1_sse): Don't test it.
51 (truncdfsf2_2, truncdfsf2_sse_only): Likewise.
52 (truncdfsf2_1_sse_nooverlap, truncdfsf2_2_nooverlap): Remove.
53 (truncdfsf2_sse_only_nooverlap): Remove.
54
55 * config/i386/i386.h (TARGET_SSE_TYPELESS_LOAD0): Remove.
56
57 2004-12-21 Eric Botcazou <ebotcazou@libertysurf.fr>
58
59 * expr.c (emit_group_load_1): Return the source if the move
60 is a regular move between complex values.
61
62 2004-12-20 Roger Sayle <roger@eyesopen.com>
63
64 PR middle-end/18683
65 * config/rs6000/rs6000.c (current_file_function_operand): Only check
66 current_function_decl's DECL_RTL if it has already been set.
67
68 2004-12-20 Roger Sayle <roger@eyesopen.com>
69
70 PR middle-end/18683
71 * function.c (pop_function_context_from): Don't reset reg_renumber.
72
73 2004-12-20 Eric Botcazou <ebotcazou@libertysurf.fr>
74
75 PR middle-end/18776
76 * expr.c (write_complex_part): Use a subreg if the original object
77 is a hard reg that spans an even number of regs or a MEM.
78 (read_complex_part): Likewise.
79
80 2004-12-20 Mark Mitchell <mark@codesourcery.com>
81
82 * Makefile.in (install-common): Do not install the specs file
83 unless SPECS is defined.
84
85 2004-12-20 Zdenek Dvorak <dvorakz@suse.cz>
86
87 PR rtl-optimization/18942
88 * simplify-rtx.c (simplify_relational_operation_1): Simplify
89 x + cst1 == cst2 to x == cst2 - cst1. Made static.
90
91 2004-12-20 Matt Austern <austern@apple.com>
92
93 PR c++/19044
94 * c-common.c (set_builtin_user_assembler_name): New.
95 * c-common.h (set_builtin_user_assembler_name): Declare.
96 * c-decl.c (finish_decl): Use set_builtin_user_assembler_name
97
98 2004-12-20 Diego Novillo <dnovillo@redhat.com>
99
100 PR tree-optimization/19080
101
102 Merge from tree-cleanup-branch
103
104 * tree-flow-inline.h (clear_call_clobbered): New function.
105 * tree-ssa-alias.c (init_alias_info): Call it.
106
107 2004-12-20 Richard Henderson <rth@redhat.com>
108
109 * config/i386/i386.md (sse2_movsd): Remove ix86_binary_operator_ok
110 check.
111
112 2004-12-20 Steven Bosscher <stevenb@suse.de>
113 Andrew Pinski <pinskia@physics.uc.edu>
114
115 PR middle-end/18191
116 PR middle-end/18965
117 PR middle-end/18999
118 * expr.c (categorize_ctor_elements_1): Count the total number
119 of elements in the constructor.
120 (categorize_ctor_elements): Return it in a new argument.
121 * tree.h (categorize_ctor_elements): Adjust prototype.
122 * gimplify.c (gimplify_init_ctor_eval_range): New.
123 (gimplify_init_ctor_eval): Gimplify RANGE_EXPR.
124 (gimplify_init_constructor): Block clear the object if the
125 constructor has fewer elements than the object type. Only try
126 to add assignments to individual elements when we have to.
127
128 2004-12-20 Richard Henderson <rth@redhat.com>
129
130 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
131 long_long_integer_type_node in building V2DI_type_node.
132
133 * config/i386/emmintrin.h: Use __vector_size__ instead of vector_size.
134 * config/i386/mmintrin.h, config/i386/xmmintrin.h: Likewise.
135
136 2004-12-20 Ben Elliston <bje@au.ibm.com>
137
138 * doc/md.texi (Expander Definitions): Use @emph instead of @strong
139 around Note: text to workaround a limitation of the Info format.
140 * doc/cpp.texi (Invocation): Likewise.
141 * doc/cppopts.texi: Likewise.
142
143 2004-12-19 Dale Johannesen <dalej@apple.com>
144
145 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Don't
146 reference operand 1 of ADDR_EXPRs.
147
148 2004-12-19 Mark Mitchell <mark@codesourcery.com>
149
150 * defaults.h (ASM_OUTPUT_INTERNAL_LABEL): New macro.
151 * output.h (assemble_name_raw): Declare it.
152 * system.h (ASM_OUTPUT_INTERNAL_LABEL): Do not poison it.
153 * varasm.c (assemble_name_raw): New function.
154 (assemble_name): Use it.
155 (default_internal_label): Likewise.
156 * config/darwin.c (darwin_asm_output_dwarf_delta): Likewise.
157 * doc/tm.texi (ASM_OUTPUT_INTERNAL_LABEL): Document.
158
159 2004-12-19 Richard Henderson <rth@redhat.com>
160
161 PR 18067
162 * stor-layout.c (variable_size): Force creation of a SAVE_EXPR.
163
164 2003-12-19 Steven Bosscher <stevenb@suse.de>
165
166 * config/i386/i386.c (ix86_split_to_parts): Use an array with
167 four elements for decoding a CONST_DOUBLE on 64 bits targets.
168
169 2004-12-19 Bernardo Innocenti <bernie@develer.com>
170
171 * config/m68k/m68kemb.h (TARGET_OS_CPP_BUILTINS): Remove redundant
172 definition of mc68000, already present in TARGET_CPU_CPP_BUILTINS.
173
174 2004-12-18 Daniel Berlin <dberlin@dberlin.org>
175
176 * lambda-code.c (can_convert_to_perfect_nest): Make checking
177 match up with what perfect_nestify can actually handle.
178 (perfect_nestify): Don't return false in the phi node loop.
179
180 2004-12-18 Richard Henderson <rth@redhat.com>
181
182 * config/i386/i386.md (SSEINT16): New.
183 (movv16qi, movv8hi, movv4si, movv2di): Compress via macros.
184 (movv16qi_internal, movv8hi_internal, movv4si_internal,
185 movv2di_internal): Compress via macros. Add SSE zero alternative.
186 Fix pure SSE alternatives to use 'x' instead of 'Y'.
187 (MMXINT8): New.
188 (movv8qi, movv4hi, movv2si, movv8qi_internal, movv4hi_internal,
189 movv2si_internal): Compress via macros.
190 (SSEPUSH, MMXPUSH): New.
191 (pushv18qi, pushv8hi, pushv4si, pushv2di, pushti, pushv4sf, pushv2df,
192 pushv8qi, pushv4hi, pushv2si, pushv2sf): Compress via macros.
193
194 2004-12-18 Richard Henderson <rth@redhat.com>
195
196 PR middle-end/16417
197 * c-decl.c (store_parm_decls): Clarify get_pending_sizes insertion
198 comment.
199 * c-objc-common.c (c_cannot_inline_tree_fn): Remove pending sizes
200 checks.
201 * c-tree.h (struct lang_decl): Remove pending_sizes.
202 * function.c: Include tree-gimple.h
203 (assign_parm_setup_reg): Remove callee-copies code.
204 (gimplify_parm_type, gimplify_parameters): New functions.
205 (expand_pending_sizes): Remove.
206 (expand_function_start): Don't call it.
207 * gimplify.c (gimplify_expr): Examine DECL_VALUE_EXPR for PARM_DECL.
208 (gimplify_body): Add do_parms argument. Use gimplify_parameters.
209 (gimplify_function_tree): Setup cfun. Update gimplify_body call.
210 * tree-gimple.h (gimplify_body): Update decl.
211 * tree-inline.c (initialize_inlined_parameters): Update gimplify_body
212 call.
213 * tree.h (gimplify_parameters): Declare.
214 * Makefile.in (function.o): Depend on TREE_GIMPLE_H.
215
216 2004-12-18 Richard Henderson <rth@redhat.com>
217
218 * c-decl.c (finish_struct): Add DECL_EXPR for variable sized
219 structures seen inside functions.
220
221 2004-12-18 Richard Henderson <rth@redhat.com>
222
223 * c-decl.c (grokdeclarator): Save variable array size before
224 subtracting 1, rather than after.
225
226 2004-12-18 Eric Botcazou <ebotcazou@libertysurf.fr>
227
228 PR middle-end/15486
229 * varasm.c (asm_emit_uninitialised): Return early if
230 a custom section is requested.
231 (assemble_variable): Revert 2002-03-15 patch.
232
233 2004-12-18 Richard Henderson <rth@redhat.com>
234
235 * stor-layout.c (layout_decl): Use unshare_expr, not unsave_expr.
236
237 2004-12-18 Zdenek Dvorak <dvorakz@suse.cz>
238
239 PR tree-optimization/18800
240 * params.def (PARAM_IV_ALWAYS_PRUNE_CAND_SET_BOUND): New parameter.
241 * tree-ssa-loop-ivopts.c (struct iv_ca): Add n_cands field.
242 (ALWAYS_PRUNE_CAND_SET_BOUND): New macro.
243 (iv_ca_set_no_cp, iv_ca_set_cp, iv_ca_new): Update n_cands field.
244 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_n_cands, iv_ca_prune):
245 New functions.
246 (iv_ca_extend): Return number of candidates in the set.
247 (try_add_cand_for): Add argument to iv_ca_extend calls.
248 (try_improve_iv_set): Use iv_ca_prune.
249 * doc/invoke.texi (iv-always-prune-cand-set-bound): Document.
250
251 2004-12-18 Zdenek Dvorak <dvorakz@suse.cz>
252
253 PR rtl-optimization/19001
254 * loop-iv.c (iv_number_of_iterations): Record assumptions for loops
255 with power of two step to 'infinite' field.
256
257 2004-12-18 Roger Sayle <roger@eyesopen.com>
258
259 * Makefile.in (stor-layout.o): Depend upon gt-stor-layout.h.
260 (tree-ssa-propagate.o): Depend upon gt-tree-ssa-propagate.h.
261 (tree-ssa-operands.o): Depend upon gt-tree-ssa-operands.h.
262 (tree-mudflap.o): Depend upon gt-tree-mudflap.h.
263 (expr.o): Depend upon gt-expr.h.
264 (regclass.o): Depend upon gt-regclass.h.
265 (bitmap.o): Depend upon gt-bitmap.h.
266 (lists.o): Depend upon gt-lists.h.
267
268 (cfgexpand.o): Don't depend upon gt-tree-cfg.h.
269
270 (GTFILES): Remove fold-const.c.
271 (gt-stmt.h, gt-fold-const.h, gt-input.h, gt-tree-ssa-ccp.h):
272 Remove rules.
273
274 2004-12-18 Richard Henderson <rth@redhat.com>
275
276 * stor-layout.c (layout_decl): Unshare size expressions copied
277 from the type.
278
279 * fold-const.c (multiple_of_p): Handle BIT_AND_EXPR when
280 BOTTOM is a power of two.
281
282 2004-12-18 Richard Henderson <rth@redhat.com>
283
284 * tree-nested.c (save_tmp_var): New.
285 (struct walk_stmt_info): Add is_lhs.
286 (walk_stmts) <MODIFY_EXPR>: Be more accurate with setting of
287 val_only; set is_lhs.
288 (convert_nonlocal_reference): Use save_tmp_var when is_lhs;
289 clear is_lhs when appropriate.
290 (convert_local_reference): Likewise.
291
292 2004-12-18 Richard Earnshaw <rearnsha@arm.com>
293
294 * arm/ieee754-sf.S (floatdisf): Fix label definition in FPA
295 compatibility code.
296
297 2004-12-18 Roger Sayle <roger@eyesopen.com>
298
299 * ifcvt.c (total_bb_rtx_cost): Rename function to cheap_bb_rtx_cost_p.
300 Take a max_cost argument to avoid scanning large blocks, by returning
301 a Boolean instead of a total. Include the cost of a "fstp %st(0)"
302 instruction required to pop dead values off of a register stack.
303
304 2004-12-18 Roger Sayle <roger@eyesopen.com>
305
306 PR middle-end/18548
307 * expr.c (expand_expr_real_1) <MAX_EXPR>: Ensure that target, op0
308 and op1 are all registers (or constants) before expanding the RTL
309 comparison sequence [to avoid reg_overlap_mentioned (target, op1)].
310
311 2004-12-18 Eric Botcazou <ebotcazou@libertysurf.fr>
312
313 PR rtl-optimization/16968
314 * loop.c (scan_loop): Stop scanning the loop for movable
315 insns as soon as an optimization barrier is encountered.
316
317 2004-12-17 Zack Weinberg <zack@codesourcery.com>
318
319 PR 18897
320 * toplev.c (compile_file): Call process_pending_assemble_externals
321 just before targetm.asm_out.file_end.
322
323 2004-12-17 Diego Novillo <dnovillo@redhat.com>
324
325 tree-optimization/18501
326 * tree-optimize.c (init_tree_optimization_passes): Run
327 pass_late_warn_uninitialized before the last DCE run.
328
329 2004-12-17 Richard Henderson <rth@redhat.com>
330
331 * config/i386/i386.c (x86_64_reg_class_name): Re-indent.
332 (classify_argument, examine_argument, construct_container,
333 merge_classes): Remove prototypes.
334 (type_natural_mode): Split out from ...
335 (function_arg): ... here.
336 (gen_reg_or_parallel): Remove alt_mode argument. Update callers.
337 Use orig_mode unless it's BLKmode.
338 (construct_container): Add orig_mode argument. Update callers.
339 Use gen_reg_or_parallel for SSE registers.
340 (ix86_function_value): Use type_natural_mode.
341 (ix86_gimplify_va_arg): Likewise.
342 (ix86_hard_regno_mode_ok): Always accept all SSE, MMX, 3DNOW modes in
343 SSE registers; always accept all MMX, 3DNOW modes in MMX registers.
344 * config/i386/i386.h (VALID_SSE2_REG_MODE): Don't include
345 VALID_MMX_REG_MODE.
346 * config/i386/i386.md (attribute mode): Add V1DF.
347 (movsi_1): Use 'x' instead of 'Y' constraints.
348 (movsi_1_nointernunit, movdi_2, movdi_1_rex64): Likewise.
349 (movdi_1_rex64_nointerunit): Likewise.
350 (movdf_nointeger, movdf_integer): Likewise. Handle SSE1.
351 (movsf_1, movsf_1_nointerunit): Line up constraint alternatives.
352 (swapsf): Use fp_register_operand, don't disable for TARGET_SSE.
353 (swapdf): Likewise.
354 (swapxf): Enable only for TARGET_80387.
355 (movv2sf, movv2sf_internal, pushv2sf): Enable for MMX.
356 (movtf): Remove double-check for TARGET_64BIT.
357 (movv2df_internal): Enable for SSE1.
358 (movv8hi_internal, movv16qi_internal): Likewise.
359 (movv2df, movv8hi, movv16qi): Likewise.
360 (pushv2di, pushv8hi, pushv16qi, pushv4si): Likewise.
361 (pushdi2_rex64, movv4sf_internal, movv4si_internal, movv2di_internal,
362 movv8qi_internal, movv4hi_internal, movv2sf_internal,
363 movv2df_internal, movv8hi_internal, movv16qi_internal,
364 movti_internal): Add leading '*' to name.
365
366 2004-12-17 Dale Johannesen <dalej@apple.com>
367
368 * c-decl.c (diagnose_mismatched_decls): Accept mismatched
369 function types: void with previous implicit int.
370
371 2004-12-17 Andreas Krebbel <krebbel1@de.ibm.com>
372
373 * config/s390/s390.c (s390_gimplify_va_arg): Set alias set to
374 s390_sr_alias_set.
375
376 2004-12-17 Jan Beulich <jbeulich@novell.com>
377
378 PR target/17603
379 * config/i386/i386.c (enum x86_64_reg_class): Define
380 X86_64_COMPLEX_X87_CLASS.
381 (x86_64_reg_class_names): Add name for X86_64_COMPLEX_X87_CLASS.
382 (merge_classes): Handle X86_64_COMPLEX_X87_CLASS.
383 (classify_argument): XCmode is X86_64_COMPLEX_X87_CLASS.
384 (examine_argument): X86_64_COMPLEX_X87_CLASS requires two
385 registers when dealing with a return value.
386 (construct_container): Handle X86_64_COMPLEX_X87_CLASS.
387 Eliminate impossible case of two X87/X87UP pairs (this now is
388 being expressed by a single COMPLEX_X87).
389 (x86_libcall_value): XCmode gets returned in st0/st1.
390
391 2004-12-17 Steven Bosscher <stevenb@suse.de>
392
393 * tree.c (type_contains_placeholder_1): Always return false
394 for VECTOR_TYPE if its TREE_TYPE does not contain a placeholder.
395
396 2004-12-17 Uros Bizjak <uros@kss-loka.si>
397
398 * config/i386/i386.md (extendsfdf2, *extendsfdf2_1,
399 *extendsfdf2_1_sse_only): Unify enable constraint with
400 respect to TARGET_SSE2, TARGET_80387, TARGET_SSE_MATH
401 and TARGET_MIX_SSE_I387.
402 (*extendsfdf2_i387): New insn pattern.
403 (*extendsfdf2_1): Rename to *extendsfdf2_mixed. Fix
404 register constraint for operand 0.
405 (*extendsfdf2_1_sse_only): Rename to *extendsfdf2_sse.
406 (*extend{s,d}fxf2_1): Rename to *extend{s,d}fxf2_i387.
407
408 2004-12-16 Andrew Pinski <pinskia@physics.uc.edu>
409
410 PR target/19041
411 * config/darwin.c (machopic_symbol_defined_p): Return false
412 if the binds local and is a common symbol.
413
414 2004-12-16 Richard Henderson <rth@redhat.com>
415
416 * config/i386/i386.md (extv, extzv, insv): Revalidate the
417 operand with ext_register_operand.
418
419 2004-12-16 Kazu Hirata <kazu@cs.umass.edu>
420
421 * global.c: Fix a comment typo.
422
423 2004-12-16 Eric Botcazou <ebotcazou@libertysurf.fr>
424 Roger Sayle <roger@eyesopen.com>
425
426 PR tree-optimization/18707
427 * cfgloopmanip.c (create_preheader): Move the preheader
428 only if the latch was falling through to the header.
429
430 2004-12-16 Danny Smith <dannysmith@users.sourceforge.net>
431
432 PR target/18997
433 * config/i386/cygwin.h (GTHREAD_USE_WEAK): Define to 0.
434
435 2004-12-16 Richard Henderson <rth@redhat.com>
436 Aldy Hernandez <aldyh@redhat.com>
437
438 * simplify-rtx.c (simplify_replace_rtx): Do not blindly replace
439 hard registers.
440
441 2004-12-16 H.J. Lu <hongjiu.lu@intel.com>
442
443 PR other/18508
444 * config/alpha/t-osf4 (SHLIB_LINK): Use `.backup' as the suffix
445 to back up the existing shared library.
446 * config/arm/t-netbsd (SHLIB_LINK): Likewise.
447 * config/mips/t-slibgcc-irix (SHLIB_LINK): Likewise.
448 * config/pa/t-hpux-shlib (SHLIB_LINK): Likewise.
449 * config/sh/t-linux (SHLIB_LINK): Likewise.
450 * config/t-libunwind-elf (SHLIBUNWIND_LINK): Likewise.
451 * config/t-slibgcc-darwin (SHLIB_LINK): Likewise.
452 * config/t-slibgcc-elf-ver (SHLIB_LINK): Likewise.
453 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
454
455 * config/i386/t-nwld (SHLIB_LINK): Don't use the temporary
456 file.
457
458 2004-12-16 Richard Henderson <rth@redhat.com>
459
460 * Makefile.in (MD_DEPS, s-mddeps): New.
461 (s-config, s-conditions, s-flags, s-codes, s-constants, s-emit,
462 s-recog, s-opinit, s-extract, s-peep, s-attr, s-attrtab, s-output,
463 s-preds): Depend on MD_DEPS instead of md_file.
464 (genobjnames): Add genmddeps.o
465 (build/genmddeps, build/genmddeps.o): New.
466 (mostlyclean): Remove mddeps.mk.
467 * genmddeps.c: New file.
468 * gensupport.c (include_callback): New.
469 (process_include): Call it.
470 * gensupport.h (include_callback): Declare.
471
472 2004-12-16 Nathan Sidwell <nathan@codesourcery.com>
473
474 * local-alloc.c (block_alloc): Replace IN_RANGE with simple
475 comparison.
476
477 * doc/c-tree.texi (CONSTRUCTOR): Mention RANGE_EXPRs.
478
479 2004-12-16 Mark Dettinger <dettinge@de.ibm.com>
480
481 * config/s390/s390.c (struct processor_costs): Two new fields:
482 madbr, maebr.
483 (s390_rtx_costs): Added handling of multipy and add in SFmode.
484 More precise values for cost of multiply and add.
485
486 2004-12-15 Richard Henderson <rth@redhat.com>
487
488 PR target/19028
489 * config/i386/i386.md (sse compare splitter): Test for SF and DFmode
490 explicitly instead of using VALID_SSE_REG_MODE.
491
492 2004-12-15 Richard Henderson <rth@redhat.com>
493
494 PR target/19005
495 * config/i386/i386.md (swaphi_1): Swap with swaphi_2, allow with
496 optimize_size.
497 (swapqi_1): Rename from swapqi. Enable only for no partial reg
498 stall and optimize_size.
499 (swapqi_2): New.
500 (swaphi_1, swaphi_2, swapqi_1): Add athlon_decode.
501 (swapsi, swaphi_1, swaphi_2, swapqi_1, swapdi): Remove modrm override.
502
503 2004-12-16 Uros Bizjak <uros@kss-loka.si>
504
505 * config/i386/i386.md (*floathisf2_i387, *floathidf2_i387):
506 Also enable for TARGET_MIX_SSE_I387.
507
508 2004-12-16 Uros Bizjak <uros@kss-loka.si>
509
510 * config/i386/i386.md (sqrt{s,d}f2_1, sqrt{s,d}f2_1_sse_only,
511 sqrt{s,d}f2_i387): Unify enable constraint with respect to
512 TARGET_SSE, TARGET_SSE2, TARGET_USE_FANCY_MATH_387,
513 TARGET_SSE_MATH and TARGET_MIX_SSE_I387.
514 (sqrt{s,d}f2_1): Rename to *sqrt{s,d}f2_mixed.
515 (sqrt{s,d}f2_1_sse_only): Rename to *sqrt{s,d}f2_sse.
516 (sqrt{s,d}f2_i387): Rename to *sqrt{s,d}f2_i387.
517 (*sqrtextendsfdf2): Also enable for TARGET_MIX_SSE_I387.
518 (*sqrtextend?f?f2): Rename to *sqrtextendsfdf2_i387.
519
520 2004-12-16 Uros Bizjak <uros@kss-loka.si>
521
522 * config/i386/i386.md (*fop_?f_comm_{,sse,nosse},
523 *fop_?f_1_{,sse,nosse}, *fop_{d,x}f_{2,3,4,5,6}): Unify enable
524 constraint with respect to TARGET_80387, TARGET_SSE, TARGET_SSE2,
525 TARGET_SSE_MATH and TARGET_MIX_SSE_I387.
526 (*fop_?f_{comm,1}): Rename to *fop_?f_{comm,1}_mixed.
527 (*fop_?f_{comm,1}_nosse): Rename to *fop_?f_{comm,1}_i387.
528 (*fop_{d,x}f_{2,3,4,5,6}): Rename to *fop_{d,x}f_{2,3,4,5,6}_i387.
529
530 2004-12-15 H.J. Lu <hongjiu.lu@intel.com>
531
532 PR target/18153
533 * configure.ac: Define HAVE_LD_STATIC_DYNAMIC if linker supports
534 -Bstatic/-Bdynamic option.
535 * config.in: Regenerated.
536 * configure: Likewise.
537
538 * gcc.c (init_spec): Pass -Bstatic/-Bdynamic to ld for static
539 -lunwind if possible.
540
541 2004-12-15 Daniel Berlin <dberlin@dberlin.org>
542
543 * cfgloop.c (flow_loops_dump): Don't print out levels.
544 (flow_loops_find): Don't set loop->levels.
545 (flow_loops_level_compute): Make void.
546 * cfgloop.h (struct loops): Remove levels member.
547 Add comment about loops in parray possibly being NULL.
548
549 2004-12-15 Alexandre Oliva <aoliva@redhat.com>
550
551 * reload.c (SMALL_REGISTER_CLASS_P): New.
552 (push_secondary_reload, find_reusable_reload, find_reloads): Use
553 it instead of testing only the class size.
554
555 2004-12-15 Eric Botcazou <ebotcazou@libertysurf.fr>
556
557 PR c++/17972
558 * tree-inline.c (expand_call_inline): Set TREE_SIDE_EFFECTS
559 on the STMT_EXPR wrapping up the inlined body.
560
561 2004-12-15 Vladimir Makarov <vmakarov@redhat.com>
562 Steven Bosscher <stevenb@suse.de>
563 PR middle end/17340
564
565 * global.c: Update comments in a few places.
566 (check_earlyclobber): Return true if there are early clobber
567 classes.
568 (calculate_local_reg_bb_info): Do not try to mark earlyclobber
569 regs if there are none.
570 (bb_info, allocate_bb_info, free_bb_info, modify_reg_pav,
571 make_accurate_live_analysis): Rename pavin, pavout to live_pavin,
572 live_pavout.
573 (modify_bb_reg_pav): Remove.
574 (calculate_reg_pav): Use code from modify_bb_reg_pav.
575 (temp_bitmap): New variable.
576 (calculate_reg_pav): Allocate/deallocate temp_bitmap.
577
578 2004-12-15 Richard Henderson <rth@redhat.com>
579
580 PR target/19010
581 * config/i386/i386.c (ix86_must_pass_in_stack): Don't return true
582 for TImode vectors.
583 (gen_reg_or_parallel): New.
584 (function_arg): Use it.
585 (ix86_hard_regno_mode_ok): Test SSE1 and SSE2 separately,
586 MMX and 3DNOW separately.
587 (ix86_rtx_costs): Simplify FLOAT_EXTEND case.
588 (ix86_vector_mode_supported_p): Test SSE1 and SSE2 separately.
589 * config/i386/i386.h (VALID_SSE2_REG_MODE): Move SSE2 cases from ...
590 (VALID_SSE_REG_MODE): ... here.
591
592 2004-12-15 David Edelsohn <edelsohn@gnu.org>
593
594 * xcoffout.c (xcoffout_declare_function): Change strncpy to memcpy.
595
596 2004-12-15 Ian Lance Taylor <ian@wasabisystems.com>
597
598 * config/arm/arm.c (arm_xscale_rtx_costs): Increase cost of
599 COMPARE of MULT.
600 * config/arm/arm.md (mulsi3_compare0): Don't check
601 arm_arch_xscale.
602 (mulsi_compare0_scratch, mulsi3_addsi_compare0): Likewise.
603 (mulsi3addsi_compare0_scratch): Likewise.
604
605 2004-12-15 Eric Botcazou <ebotcazou@libertysurf.fr>
606
607 PR other/18665
608 * libgcc-std.ver (GCC_3.4.4): Inherit from GCC_3.4.2.
609 Export __absvti2, __addvti3, __mulvti3, __negvti2 and __subvti3.
610 * libgcc2.c (__addvsi3): Rename to __addvSI3.
611 New version if COMPAT_SIMODE_TRAPPING_ARITHMETIC.
612 (__addvdi3): Rename to __addvDI3.
613 (__subvsi3): Rename to __subvSI3. Use word type for the result.
614 New version if COMPAT_SIMODE_TRAPPING_ARITHMETIC.
615 (__subvdi3): Rename to __subvDI3.
616 (_mulvsi3): Rename to _mulvSI3.
617 New version if COMPAT_SIMODE_TRAPPING_ARITHMETIC.
618 (_mulvdi3): Rename to _mulvDI3.
619 (__negvsi2): Rename to __negvSI2.
620 New version if COMPAT_SIMODE_TRAPPING_ARITHMETIC.
621 (__negvdi2): Rename to __negvDI2.
622 (__absvsi2): Rename to __absvSI2.
623 New version if COMPAT_SIMODE_TRAPPING_ARITHMETIC.
624 (__absvdi2): Rename to __absvDI2.
625 * libgcc2.h (64-bit targets): Define COMPAT_SIMODE_TRAPPING_ARITHMETIC.
626 (__absvSI2, __addvSI3, __subvSI3, __mulvSI3, __negvSI2, __absvDI2,
627 __addvDI3, __subvDI3, __mulvDI3, __negvDI2): Define to the appropriate
628 symbol and declare.
629 (__absvsi2, __addvsi3, __subvsi3, __mulvsi3, __negvsi2): Declare if
630 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
631
632 2004-12-15 Kazuhiro Inaoka <inaoka.kazuhiro@reneasas.com>
633
634 * config/m32r/m32r.h (PREFERRED_DEBUGGING_TYPE):
635 Use DWARF2_DEBUG.
636
637 * config/m32r.c (m32r_legitimize_pic_address): Changed
638 to support GOTOFF relocation.
639 * config/m32r.md (UNSPEC_GOTOFF): New.
640 (gotoff_load_addr): New.
641
642 2004-12-15 Richard Sandiford <rsandifo@redhat.com>
643
644 * config/mips/mips.c (mips_arg_info): Use FUNCTION_ARG_BOUNDARY to
645 decide whether an argument is double-word aligned.
646
647 2004-12-15 Richard Henderson <rth@redhat.com>
648
649 * config/i386/i386.md: Fix missing modes on cmove splitters.
650
651 2004-12-15 Jan Beulich <jbeulich@novell.com>
652
653 * mklibgcc.in (libgcc2_c_dep): Add dependency on libgcc2.h.
654
655 2004-12-15 Uros Bizjak <uros@kss-loka.si>
656
657 * config/i386/i386.md (floathisf2, *floathisf2_1, floatsisf2,
658 *floatsisf2_i387, *floatsisf2_sse, floatdisf2,
659 *floatdisf2_i387_only, *floatdisf2_i387, *floatdisf2_sse,
660 floathidf2, *floathidf2_1, *floatsidf2_i387, *floatsidf2_sse,
661 floatdidf2, *floatdidf2_i387_only, *floatdidf2_i387,
662 *floatdidf2_sse, floatunssisf2, floatunsdisf2, floatunsdidf2):
663 Unify enable constraint with respect to TARGET_80387, TARGET_SSE,
664 TARGET_SSE2, TARGET_64BIT, TARGET_SSE_MATH and TARGET_MIX_SSE_I387.
665 (*float?i?f_i387): Rename to *float?i?f2_mixed.
666 (*float?i?f2_1): Rename to *float?i?f2_i387.
667 (*float?i?f2_i387_only): Rename to *float?i?f2_i387.
668 (float?ixf2): Penalize integer register operand.
669
670 2004-12-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
671
672 PR c++/17242
673 * configure.ac: Add GAS check for HP-UX .nsubspa comdat.
674 * configure, config.in: Rebuilt.
675 * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Delete
676 defines.
677 * config/pa/pa.c (pa_select_section): Allow uninitialized variables in
678 one-only (comdat) subspaces.
679 * config/pa/som.h (SUPPORTS_SOM_COMDAT): New define.
680 (SUPPORTS_ONE_ONLY): True if SUPPORTS_WEAK or SUPPORTS_SOM_COMDAT are
681 true.
682 (MAKE_DECL_ONE_ONLY): Place uninitialized variables in common.
683
684 2004-12-14 Ian Lance Taylor <ian@wasabisystems.com>
685
686 * combine.c (combine_validate_cost): Consider cost of
687 undobuf.other_insn rather than always allowing the recombination
688 if it is set.
689
690 2004-12-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
691
692 * pa-host.c (MAP_FAILED): Define if not defined.
693 (pa_gt_pch_use_address): Handle short reads.
694
695 2004-12-14 Richard Henderson <rth@redhat.com>
696
697 PR target/17990
698 * config/i386/i386.c (x86_use_bt): New.
699 (ix86_expand_unary_operator): Use MEM_P.
700 (ix86_expand_fp_absneg_operator): New.
701 * config/i386/i386.h (x86_use_bt): Declare.
702 (TARGET_USE_BT): New.
703 * config/i386/i386-protos.h: Update.
704 * config/i386/i386.md (negsf2): Use ix86_expand_fp_absneg_operator.
705 (negdf2, negxf2, abssf2, absdf2, absxf2): Likewise.
706 (negsf2_memory, negsf2_ifs, negsf2_if, negdf2_memory, negdf2_ifs,
707 negdf2_ifs_rex64, negdf2_if, negdf2_if_rex64, negxf2_if,
708 abssf2_memory, abssf2_ifs, abssf2_if, absdf2_memory, absdf2_ifs,
709 absdf2_ifs_rex64, absdf2_if, absxf2_if): Remove.
710 (absnegsf2_mixed, absnegsf2_sse, absnegsf2_i387, absnegdf2_mixed,
711 absnegdf2_sse, absnegdf2_i387, absnegxf2_i387): New. Merge all
712 neg and abs splitters. Handle DFmode in general regs in 64-bit mode.
713 (negextendsfdf2, absextendsfdf2): Disable for non-mixed sse math.
714 (btsq, btrq, btcq): New. Add peepholes as well.
715 (movv4sf_internal splitter): Postpone til after reload.
716 (movv2di_internal splitter): Likewise.
717 * config/i386/predicates.md (const_0_to_63_operand): New.
718 (absneg_operator): New.
719
720 2004-12-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
721
722 * pa.h (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_FP_P):
723 Check register number and that reg_renumber is nonzero before using it.
724
725 2004-12-14 Steve Ellcey <sje@cup.hp.com>
726
727 * doc/invoke.texi (IA-64 options): Add existing options that
728 weren't already listed.
729
730 2004-12-14 Jeff Law <law@redhat.com>
731
732 * tree-outof-ssa.c (coalesce_abnormal_edges): Pass the correct target
733 partition to conflict_graph_merge_regs.
734
735 2004-12-14 Uttam Pawar <uttamp@us.ibm.com>
736 Janis Johnson <janis187@us.ibm.com>
737
738 * rs6000.c (rs6000_handle_altivec_attribute_tree): Report errors
739 for vector types with invalid component types.
740
741 2004-12-14 Jakub Jelinek <jakub@redhat.com>
742
743 PR middle-end/18951
744 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2,
745 expand_builtin_mathfn_3): Avoid using arguments passed to
746 save_expr after that call.
747
748 * fold-const.c (fold_single_bit_test): If flag_syntax_only, pretend
749 LOAD_EXTEND_OP is not defined.
750 (fold): Likewise. If flag_syntax_only, don't depend on BITS_PER_WORD.
751
752 2004-12-14 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
753
754 * tree.def, doc/c-tree.texi: Correctly document restrictions on the
755 shift width.
756
757 2004-12-14 Kazu Hirata <kazu@cs.umass.edu>
758
759 * expr.h (expand_modifier): Define EXPAND_STACK_PARM as 1.
760
761 2004-12-14 Richard Earnshaw <rearnsha@arm.com>
762
763 PR target/18973
764 arm-cores.def (arm926ej-s, arm1026ej-s, arm1136j-s, arm1136-jfs)
765 (arm1176jz-s, arm1176jzf-s, mpcorenovfp, mpcore): Add load-scheduling
766 property to flags.
767
768 2004-12-14 Diego Novillo <dnovillo@redhat.com>
769
770 * tree-gimple.c (get_base_address): Update documentation.
771
772 2004-12-13 Richard Henderson <rth@redhat.com>
773
774 PR middle-end/17930
775 * passes.c (rest_of_clean_state): Fix computation of
776 preferred_incoming_stack_boundary.
777
778 2004-12-13 Wolfgang Bangerth <bangerth@dealii.org>
779
780 * reload.h: Remove struct needs and its only use.
781
782 2004-12-13 Roger Sayle <roger@eyesopen.com>
783
784 PR rtl-optimization/18928
785 * simplify_rtx.c (plus_minus_operand_p): New function to encode
786 the test for suitable operands for calls to simplify_plus_minus.
787 Only allow (CONST (PLUS x y)) if both x and y are CONSTANT_P.
788 (simplify_binary_operation): Use plus_minus_operand_p.
789
790 2004-12-13 Alexandre Oliva <aoliva@redhat.com>
791
792 PR tree-opt/16951
793 * tree-inline.c (setup_one_parameter): Don't directly map a
794 parameter to the address of another variable of the same
795 function.
796
797 2004-13-12 Steven Bosscher <stevenb@suse.de>
798
799 * basic-block.h (PROP_POSTRELOAD): Do not include PROP_AUTOINC, we
800 can never create autoinc insns after reload.
801
802 2004-12-13 Jeff Law <law@redhat.com>
803 Kazu Hirata <kazu@cs.umass.edu>
804
805 PR tree-optimization/18694
806 * tree-ssa-dom.c (thread_across_edge): Do not thread jumps if a
807 PHI argument is set from a PHI_RESULT in the same block and the
808 PHI argument is not the same as the PHI result.
809
810 2004-12-13 David Edelsohn <edelsohn@gnu.org>
811
812 * xcoffout.c (xcoffout_declare_function): Always strip storage
813 class encoding.
814
815 2004-12-13 Andrew Pinski <pinskia@physics.uc.edu>
816
817 PR target/18964
818 * config/darwin.c (darwin_assemble_visibility): Fix minor diagnostic
819 problem, adding a space at the end of the string before concatenation.
820
821 2004-12-13 Kazu Hirata <kazu@cs.umass.edu>
822
823 * c-common.c (fname_as_string): Free namep if we are returning
824 cstr.text.
825
826 * tree-ssa-dom.c (record_edge_info): Fix memory leak.
827
828 2004-12-13 Andrew Pinski <pinskia@physics.uc.edu>
829
830 * tree-cfg.c (remove_useless_stmts_cond): Call fold on COND_EXPR_COND.
831
832 2004-12-13 Kazu Hirata <kazu@cs.umass.edu>
833
834 * tree-ssa-dom.c (record_equivalences_from_phis): Speed up by
835 doing a pointer comparison.
836
837 * tree-ssa-dom.c (record_equivalences_from_phis): Add a
838 comment.
839
840 * defaults.h, stmt.c, tree-cfg.c, tree-ssa-dce.c: Fix comment
841 typos.
842
843 2004-12-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
844
845 * config/m32r/t-linux (SHLIB_MAPFILES): Add libgcc-glibc.ver to
846 the list rather than replacing the existing value.
847
848 2004-12-13 Richard Henderson <rth@redhat.com>
849
850 * cfg.c (dump_flow_info): Don't dump pseudo info after reload.
851
852 2004-12-13 Richard Henderson <rth@redhat.com>
853
854 * Makefile.in (insn-preds.o): Depend on REGS_H.
855 * genpreds.c (write_insn_preds_c): Include regs.h.
856 * config/i386/predicates.md (index_register_operand): Use
857 REG_OK_FOR_INDEX_STRICT_P and REG_OK_FOR_INDEX_NONSTRICT_P.
858
859 * config/i386/i386.h (REG_CLASS_FROM_LETTER): Add 'l'.
860 * config/i386/i386.md (lea_general_1, lea_general_1_zext,
861 lea_general_2, lea_general_2_zext, lea_general_3, lea_general_3_zext,
862 adddi_1_rex64, addsi_1, addsi_1_zext, addhi_1_lea, addqi_1_lea,
863 ashldi3_1_rex64, ashlsi3_1, ashlsi3_1_zext, ashlhi3_1_lea,
864 ashlqi3_1_lea): Use 'l' for index register operand.
865 (ashldi3_1_rex64 splitter): Use index_register_operand.
866 (ashlsi3_1 splitter): Be more careful with modes.
867
868 2004-12-13 Danny Smith <dannysmith@users.sourceforge.net>
869
870 PR target/18459
871 * defaults.h (TARGET_USE_JCR_SECTION): New macro.
872 * doc/tm.texi (TARGET_USE_JCR_SECTION): Document it.
873 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Override
874 default.
875
876 2004-12-13 Uros Bizjak <uros@kss-loka.si>
877
878 PR target/14941
879 PR target/18503
880 * config/i386/i386.md (sse_movss, sse2_movsd, sse2_movhpd):
881 Fix wrong vec_merge selector bitmask.
882
883 2004-12-12 Richard Henderson <rth@redhat.com>
884
885 PR rtl-opt/17186
886 * reg-stack.c (move_nan_for_stack_reg): New.
887 (subst_stack_regs_pat): Use it.
888 (move_for_stack_reg): Handle source register not live with a nan.
889
890 2004-12-12 Richard Henderson <rth@redhat.com>
891
892 * config/i386/i386.c (ix86_gimplify_va_arg): Fix type mismatch
893 errors across operations.
894
895 2004-12-12 Di-an Jan <dianj@freeshell.org>
896
897 * doc/passes.texi (Pass Manager): Correct list of source files.
898
899 2004-12-12 Richard Henderson <rth@redhat.com>
900
901 * expr.c (emit_move_change_mode): New.
902 (emit_move_via_alt_mode): Use it.
903
904 2004-12-12 Nathanael Nerode <neroden@gcc.gnu.org>
905 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
906
907 PR middle-end/17564
908 * dojump.c (do_compare_and_jump): Only canonicalize function pointers
909 in a comparison if both sides are function pointers.
910
911 2004-12-12 Richard Henderson <rth@redhat.com>
912
913 PR target/18932
914 * config/i386/i386.md (all splits and peepholes): Use flags_reg_operand
915 and compare_operator to propagate the input CC mode to the output.
916 * config/i386/predicates.md (compare_operator): New.
917
918 2004-12-12 Andrew Pinski <pinskia@physics.uc.edu>
919
920 PR tree-opt/18040
921 * expr.c (get_inner_reference): Remove NON_LVALUE_EXPR, NOP_EXPR,
922 CONVERT_EXPR cases.
923 (handled_component_p): Likewise.
924
925 2004-12-12 Kazu Hirata <kazu@cs.umass.edu>
926
927 * reg-stack.c (convert_regs_2): Free stack.
928
929 * tree-ssa-dom.c (thread_across_edge, dom_opt_finalize_block): Fix
930 comment typos.
931
932 2004-12-12 Daniel Berlin <dberlin@dberlin.org>
933
934 * tree-ssa-loop-ch.c (copy_loop_headers): Loop can be null.
935 * tree-ssa-loop-im.c (determine_lsm): tree_root may not have a real
936 inner loop.
937
938 2004-12-12 Diego Novillo <dnovillo@redhat.com>
939
940 * tree-gimple.c (get_base_address): Update documentation.
941
942 2004-12-12 Kazu Hirata <kazu@cs.umass.edu>
943
944 * lcm.c (optimize_mode_switching): Free ptr even when mode_set
945 is NULL_RTX.
946
947 2004-12-12 Roger Sayle <roger@eyesopen.com>
948
949 * reg-stack.c (change_stack): Avoid placing the new top-of-stack in
950 its correct location during popping if we need to permute the stack
951 afterwards. Attempt to preserve the original stack ordering.
952
953 2004-12-12 Kazu Hirata <kazu@cs.umass.edu>
954
955 * lcm.c (optimize_mode_switching): Free insert and delete in
956 the "for" loop.
957
958 2004-12-11 David Edelsohn <edelsohn@gnu.org>
959 Ulrich Weigand <uweigand@de.ibm.com>
960
961 PR target/18641
962 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Reload all
963 constants into all register classes intersecting with FLOAT_REGS
964 via memory.
965 * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): Same.
966 * config/rs6000/rs6000.md (movdi_internal32): Ignore FPRs when
967 choosing register preferences.
968 (movdi_internal64): Same.
969
970 2004-12-11 Kazu Hirata <kazu@cs.umass.edu>
971
972 * tree-into-ssa.c (rewrite_ssa_into_ssa): Free SSA_NAME_AUX
973 before we release an SSA_NAME.
974
975 2004-12-11 Roger Sayle <roger@eyesopen.com>
976
977 PR middle-end/18921
978 * fold-const.c (fold_unwidened_comparison): Use omit_one_operand
979 instead of constant_boolean_node as arg0 may have side-effects.
980
981 2004-12-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
982
983 * pa-host.c (pa_gt_pch_use_address): Use lseek and read to copy PCH
984 file to anonymous private map.
985
986 2004-12-10 Roger Sayle <roger@eyesopen.com>
987
988 PR target/18002
989 PR middle-end/18424
990 * dojump.c (do_jump): When attempting to reverse the effects of
991 fold_single_bit_test, we need to STRIP_NOPS and narrowing type
992 conversions, and handle BIT_XOR_EXPR that's used to invert the
993 sense of the single bit test.
994
995 2004-12-10 Devang Patel <dpatel@apple.com>
996
997 PR 18732
998 * gcc.c (main): Do not break out of loop when error is reported while
999 processing one source file.
1000
1001 2004-12-10 Diego Novillo <dnovillo@redhat.com>
1002
1003 * tree-into-ssa.c (REWRITE_THIS_STMT): Define.
1004 (mark_def_sites): Clear REWRITE_THIS_STMT for statements that
1005 don't need any operands rewritten.
1006 (rewrite_stmt): Ignore statements that don't need to be
1007 rewritten.
1008 (rewrite_operand): Validate that an existing SSA_NAME is
1009 identical to the current reaching definition of the operand.
1010
1011 2004-12-10 Diego Novillo <dnovillo@redhat.com>
1012
1013 * tree-dfa.c (mark_call_clobbered_vars_to_rename): New function.
1014 * tree-vectorizer.c (vectorizable_load): Call it.
1015 * tree-flow.h (mark_call_clobbered_vars_to_rename): Declare.
1016 * tree-sra.c (mark_all_v_defs): Also mark VUSEs for renaming.
1017
1018 2004-12-10 Kazu Hirata <kazu@cs.umass.edu>
1019
1020 * regmove.c (combine_stack_adjustments_for_block): Free
1021 memlist if it hasn't been freed.
1022
1023 2004-12-10 Ziemowit Laski <zlaski@apple.com>
1024
1025 * c-typeck.c (lookup_field): Check if a TYPE_LANG_SPECIFIC
1026 pointer field is set before dereferencing it.
1027
1028 2004-12-10 Andrew Pinski <pinskia@physics.uc.edu>
1029
1030 PR middle-end/18903
1031 * tree-cfg.c (remove_bb): Put the moved label at the beginning
1032 of the basic block.
1033
1034 2004-12-10 Kazu Hirata <kazu@cs.umass.edu>
1035
1036 * tree-data-ref.c (free_data_refs): Free each data_reference
1037 object.
1038
1039 * tree-ssa-dom.c (thread_across_edge): Speed up by avoiding a
1040 call to is_gimple_min_invariant if we know the result.
1041
1042 2004-12-10 Jeff Law <law@redhat.com>
1043
1044 * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
1045 redundant test of v_ann->mem_tag_kind.
1046
1047 * tree-ssa-operands.c (get_indirect_ref_operands): Remove
1048 redundant conditional clearing opf_kill_def.
1049
1050 2004-12-10 Richard Sandiford <rsandifo@redhat.com>
1051
1052 * config/frv/frv-modes.def: Fix comment typos.
1053 (CC_NZ): Define new mode.
1054 * config/frv/frv-protos.h (frv_select_cc_mode): Declare.
1055 (condexec_intop_cmp_operator): Delete.
1056 * config/frv/frv.c (comparison_string): New function.
1057 (frv_print_operand): Use it to handle 'c' and 'C'.
1058 (relational_operator): Redefine in terms of integer_relational_operator
1059 and float_relational_operator.
1060 (signed_relational_operator, unsigned_relational_operator): Delete.
1061 (integer_relational_operator): New predicate, combining the above.
1062 Check the mode of the first operand but leave frv.md to check the rest.
1063 (float_relational_operator): Just check the mode of the first operand
1064 and leave frv.md to check the rest.
1065 (intop_compare_operator): Assume the result is compared with zero
1066 in mode CC_NZmode. Allow PLUS and MINUS. Leave frv.md to check
1067 the operand predicates.
1068 (condexec_intop_cmp_operator): Delete.
1069 (frv_ifcvt_modify_tests, frv_ifcvt_modify_multiple_tests)
1070 (frv_hard_regno_mode_ok): Handle CC_NZmode.
1071 (frv_select_cc_mode): New function.
1072 * config/frv/frv.h (SELECT_CC_MODE): Use frv_select_cc_mode.
1073 (REVERSIBLE_CC_MODE): Include CC_NZmode.
1074 (PREDICATE_CODES): Replace entries for signed_relational_operand and
1075 unsigned_relational_operator with one for integer_relational_operator.
1076 Delete entry for condexec_intop_cmp_operator.
1077 * config/frv/frv.md (movcc_nz, *internal_movcc_nz, reload_incc_nz)
1078 (reload_outcc_nz, *cmpsi_cc_nz, *cond_exec_cmpsi_cc_nz): New patterns.
1079 (*combo_intop_compare2, *combo_intop_compare4): Delete.
1080 (*combo_intop_compare1): Change mode to CC_NZ.
1081 (*combo_intop_compare2): Likewise. Renamed from *combo_intop_compare3.
1082 (branch_{un,}signed_true, branch_{un,}signed_false)
1083 (*scc_{un,}signed, *scc_neg1_{un,}signed, *ck_{un,}signed)
1084 (*movqicc_internal1_{un,}signed, *movqicc_internal2_{un,}signed)
1085 (*movhicc_internal1_{un,}signed, *movhicc_internal2_{un,}signed)
1086 (*movsicc_internal1_{un,}signed, *movsicc_internal2_{un,}signed)
1087 (*movsfcc_has_fprs_{un,}signed, *movsfcc_no_fprs_{un,}signed)
1088 (*return_{unsigned_,}true, *return_{unsigned_,}false): Merge these
1089 pattern pairs. Use integer_relational_operator. Remove mode from
1090 icc_operand.
1091
1092 2004-12-10 Mark Dettinger <dettinge@de.ibm.com>
1093
1094 * config/s390/s390.c (struct processor_costs): New fields ml,
1095 sqdbr, sqebr.
1096 (s390_rtx_costs): Added the missing handling of multiply & add,
1097 square root, and umulsidi.
1098
1099 2004-12-10 Kazu Hirata <kazu@cs.umass.edu>
1100
1101 * expmed.c (synth_mult): Initialize new_limit.latency before
1102 making a recursive call.
1103
1104 2004-12-10 Nick Clifton <nickc@redhat.com>
1105
1106 * config/mn10300/mn10300.c (legitimate_address_p): Reject address
1107 whose index is itself the sum of two other parts.
1108
1109 2004-12-10 Alan Modra <amodra@bigpond.net.au>
1110
1111 * config/t-slibgcc-sld (SHLIB_LINK): Correct symlink.
1112
1113 2004-12-10 Uros Bizjak <uros@kss-loka.si>
1114
1115 * config/i386/i386.md (*cmpfp_sf): Change type attribute to "multi".
1116
1117 2004-12-09 Richard Henderson <rth@redhat.com>
1118
1119 PR c/18282
1120 * attribs.c (decl_attributes): Use relayout_decl.
1121 * c-common.c (handle_mode_attribute): Copy all relevant type
1122 parameters from the new underlying integral type.
1123
1124 2004-12-09 Richard Henderson <rth@redhat.com>
1125
1126 * c-common.c (shorten_compare): Don't special-case min/maxval
1127 for C enumerations.
1128
1129 2004-12-09 Richard Sandiford <rsandifo@redhat.com>
1130
1131 * simplify-rtx.c (simplify_subreg): In the CONCAT case, check whether
1132 the request subreg is entirely contained in the requested component.
1133 (simplify_gen_subreg): Return null for CONCATs that are rejected
1134 by simplify_subreg.
1135 * expmed.c (store_bit_field): Create a temporary when changing the
1136 value to an integer mode.
1137
1138 2004-12-09 David Edelsohn <edelsohn@gnu.org>
1139
1140 * real.c (ibm_extended): Correct comment.
1141
1142 2004-12-09 Stan Shebs <shebs@apple.com>
1143
1144 * config/rs6000/darwin-asm.h: New file, 32/64-bit assembly macros
1145 formerly in darwin-tramp.asm.
1146 * config/rs6000/darwin-tramp.asm: Include darwin-asm.h.
1147 * config/rs6000/darwin-fpsave.asm: Use 32/64-bit macros.
1148 * config/rs6000/t-darwin: Add dependencies.
1149
1150 2004-12-09 Richard Henderson <rth@redhat.com>
1151
1152 PR target/17025
1153 * config/i386/i386.md (testqi_1_maybe_si, andqi_2_maybe_si): New.
1154 (test_qi_1, andqi_2): Do not promote to simode.
1155
1156 2004-12-09 Andrew Pinski <pinskia@physics.uc.edu>
1157
1158 PR tree-opt/18904
1159 * tree-chrec.c (chrec_convert): Use fold_convert
1160 instead of convert.
1161
1162 2004-12-09 Matt Rice <ratmice@yahoo.com>
1163
1164 PR preprocessor/18102
1165 * c-incpath.c (remove_duplicates): Check for construct
1166 equality.
1167
1168 2004-12-09 Dorit Naishlos <dorit@il.ibm.com>
1169
1170 * genopinit.c (vec_realign_store_optab): Initialization removed.
1171 * optabs.c (optab_for_tree_code): REALIGN_STORE_EXPR case removed.
1172 * optabs.h (optab_index): OTI_vec_realign_store Removed.
1173 (vec_realign_store_optab): Removed.
1174 * target-def.h (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Removed.
1175 * target.h (builtin_mask_for_store): Removed.
1176 * tree.def (REALIGN_STORE_EXPR): Removed.
1177 * config/rs6000/rs6000.c (rs6000_builtin_mask_for_store): Removed.
1178 (altivec_builtin_mask_for_store): Removed.
1179 (altivec_init_builtins): Removed initialization of
1180 altivec_builtin_mask_for_store.
1181
1182 * doc/tm.texi (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
1183 (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): New.
1184
1185 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
1186
1187 * doc/c-tree.texi (CONSTRUCTOR): Mention RANGE_EXPRs.
1188
1189 * tree.def (SET_TYPE): Remove.
1190 (CONSTRUCTOR): Update description.
1191 * builtins.c (type_to_class) Remove SET_TYPE case.
1192 * dbxout.c (dbxout_type): Likewise.
1193 * dwarf2out.c (is_base_type): Likewise.
1194 (gen_set_type_die): Remove.
1195 (gen_type_die): Remove SET_TYPE case.
1196 * expr.c (count_type_elements): Likewise.
1197 (mostly_zeroes_p): Likewise.
1198 (store_constructor): Likewise.
1199 * print_tree.c (print_node): Likewise.
1200 * stor-layout.c (layout_type): Likewise.
1201 * tree-browser.c (browse_tree): Likewise.
1202 * tree-inline.c (remap_type): Likewise.
1203 * tree-pretty-print.c (dump_generic_node): Likewise.
1204 * tree.c (type_contains_plaeholder_1, type_hash_eq,
1205 variably_modified_type_p, initializer_zerop): Likewise.
1206 * tree.h (SET_OR_ARRAY_CHECK): Remove.
1207 (AGGREGATE_TYPE_P): Remove SET_TYPE check.
1208 (TYPE_DOMAIN): Use ARRAY_TYPE_CHECK.
1209 * typeclass.h (enum type_class): Remove set_type_class.
1210 * varasm.c (const_hash_1): Remove SET_TYPE case.
1211 (compare_constant, copy_constant, output_constant): Likewise.
1212 * config/i386/i386.c (classify_argument): Likewise.
1213 * config/ia64/ia64.c (hfa_element_mode): Likewise.
1214 * config/sparc/sparc.c (sparc_type_code): Likewise.
1215
1216 PR c++/16681
1217 * tree-inline.c (estimate_num_insns_1): Add RANGE_EXPR case.
1218
1219 2004-12-08 Richard Henderson <rth@redhat.com>
1220
1221 * config/i386/i386.md: Use FLAGS_REG everywhere.
1222
1223 2004-12-08 Eric Christopher <echristo@redhat.com>
1224
1225 * config/mips/mips.c (mips_scalar_mode_supported_p): Rewrite
1226 to avoid call to default function.
1227
1228 2004-12-08 Zack Weinberg <zack@codesourcery.com>
1229
1230 PR 17982
1231 * varasm.c (pending_assemble_externals): New static.
1232 (assemble_external_real): Meat of assemble_external split out
1233 to this new function.
1234 (process_pending_assemble_externals): New function.
1235 (assemble_external): Use gcc_assert. If flag_unit_at_a_time
1236 is true and the basic test passes, merely cons the decl onto
1237 the pending list to be handled later.
1238 * tree.h: Declare process_pending_assemble_externals.
1239 * cgraphunit.c (cgraph_optimize): Call it.
1240
1241 * config/h8300/h8300.h: Do not define ASM_OUTPUT_EXTERNAL.
1242
1243 2004-12-08 Kazu Hirata <kazu@cs.umass.edu>
1244
1245 * cfgloopmanip.c (create_preheader): Speed up by "unrolling"
1246 and simplifying FOR_EACH_EDGE.
1247
1248 2004-12-08 Richard Sandiford <rsandifo@redhat.com>
1249
1250 * config/frv/frv.c (frv_sort_insn_group): Always initialize
1251 packet_group->nop.
1252
1253 2004-12-08 Nathan Sidwell <nathan@codesourcery.com>
1254
1255 PR c++/18672
1256 * gimplify.c (canonicalize_addr_expr): Cope with array of
1257 incomplete type.
1258 (gimplify_conversion): Remove redundant checks.
1259
1260 * doc/trouble.texi (Non-bugs): Clarify empty loop removal.
1261
1262 2004-12-08 Uros Bizjak <uros@kss-loka.si>
1263
1264 * config/i386/i386.c (output_387_binary_op,
1265 ix86_prepare_fp_compare_args): Fix is_sse condition.
1266
1267 2004-12-07 Uros Bizjak <uros@kss-loka.si>
1268
1269 * config/i386/i386-protos.h (ix86_split_fp_branch): New rtx
1270 argument.
1271
1272 * config/i386/i386.c (output_fp_compare): Fix is_sse condition.
1273 Use EFLAGS_P only when fcomi insn should be used. Fix handling
1274 of eflags_p variable. Change alt table accordingly. For non-fcomi
1275 compare insn always use trailing fnstsw insn. Fix intmode
1276 calculation for ficom insn.
1277 (ix86_split_fp_branch): Add "rtx pushed" as new parameter. Call
1278 ix86_free_from_memory when "pushed" is specified.
1279 (ix86_expand_branch): Change call to ix86_split_fp_branch.
1280
1281 * config/i386/i386.md (*cmpfp_0_sf, *cmpfp_0_df, *cmpfp_0_xf):
1282 Change eflags_p parameter in call to output_fp_compare.
1283 (*cmpfp_2_sf, *cmpfp_2_df, *cmpfp_2_xf): Remove.
1284 (*cmpfp_2_sf_1, *cmpfp_2_df_1, *cmpfp_2_xf_1): Rename to
1285 *cmpfp_2_sf, *cmpfp_2_df, *cmpfp_2_xf. Change eflags_p
1286 parameter in call to output_fp_compare.
1287 (*cmpfp_2_u): Remove.
1288 (*cmpfp_2_u_1): Rename to *cmpfp_2_u. Change eflags_p parameter
1289 in call to output_fp_compare.
1290 (*ficom_1): Remove insn definition and corresponding define_split.
1291 (*cmpfp_si): New insn definition.
1292 (*fp_jcc_8): New insn definition. Add new splitters for
1293 "memory_operand" and "register_operand".
1294 (define_split): Add new parameter in call to ix86_split_fp_branch.
1295
1296 config/i386/predicates.md (float_operator): New predicate.
1297
1298 2004-12-08 Kazu Hirata <kazu@cs.umass.edu>
1299
1300 * c-common.c (verify_tree): Don't check code length if we know
1301 we are handling tcc_unary.
1302 * print_tree.c (print_node): Remove code to handle RTL
1303 appearing as a part of a tree node.
1304 * tree-gimple.c (recalculate_side_effects): Rename fro as len.
1305 * tree.c (build1_stat): Don't check TREE_CODE_LENGTH.
1306 (PROCESS_ARG): Don't refer to fro.
1307 (build2_stat, build3_stat, build4_stat): Don't compute fro.
1308
1309 2004-12-07 Roger Sayle <roger@eyesopen.com>
1310
1311 PR middle-end/18293
1312 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Move definition earlier.
1313 (expand_mult): Special case powers of two to avoid synth_mult.
1314 * loop.c (product_cheap_p): Handle case where expand_mult does
1315 require/generate any instructions (i.e. multiplication by zero).
1316
1317 2004-12-07 Richard Henderson <rth@redhat.com>
1318
1319 * tree-pretty-print.c (dump_array_domain): Split out from
1320 dump_generic_node; fix off-by-one error on zero-based array bounds.
1321 (dump_generic_node): Use it.
1322 (print_declaration): Likewise.
1323
1324 2004-12-08 Richard Guenther <richard.guenther@uni-tuebingen.de>
1325
1326 * doc/invoke.texi: Adjust default values for
1327 large-function-growth and inline-unit-growth to match
1328 params.def. Clarify used algorithm.
1329
1330 2004-12-07 David Mosberger <davidm@hpl.hp.com>
1331
1332 PR target/18443
1333 * config/ia64/ia64.c (ia64_assemble_integer): Add support for
1334 emitting unaligned pointer-sized integers.
1335
1336 2004-12-07 Steven Bosscher <stevenb@suse.de>
1337
1338 PR c/18867
1339 * c-typeck.c (c_start_case): Set orig_type to error_mark_node
1340 when the type of the controlling expression is not a valid type.
1341
1342 2004-12-07 Steven Bosscher <stevenb@suse.de>
1343
1344 PR tree-optimization/17340
1345 * tree-ssa-pre.c (compute_antic): Fix comment.
1346 (compute_avail): Do not recurse, instead do a DFS using a stack
1347 and a loop.
1348 (execute_pre): Adjust.
1349
1350 2004-12-07 Ziemowit Laski <zlaski@apple.com>
1351
1352 * c-tree.h (struct lang_type): Rename 'objc_protocols' field
1353 to 'objc_info'.
1354
1355 2004-12-07 Eric Christopher <echristo@redhat.com>
1356
1357 PR target/16317
1358 * config/netbsd.h (NO_IMPLICIT_EXTERN_C): Define.
1359
1360 2004-12-07 Eric Christopher <echristo@redhat.com>
1361
1362 * config/mips/mips-protos.h (mips_valid_pointer_mode): Move
1363 prototype...
1364 * config/mips/mips.c: ... here. Make static.
1365
1366 2004-12-07 Eric Christopher <echristo@redhat.com>
1367
1368 PR target/18442
1369 * config/mips/mips.c (mips_vector_mode_supported_p): New function.
1370 (TARGET_SCALAR_MODE_SUPPORTED_P): Define to above.
1371
1372 2004-12-07 Kazu Hirata <kazu@cs.umass.edu>
1373
1374 * c-common.c, expr.c, fold-const.c, print-tree.c,
1375 tree-gimple.c, tree-inline.c, tree-pretty-print.c,
1376 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c: Replace uses of
1377 first_rtl_op with TREE_CODE_LENGTH.
1378 * tree.c (first_rtl_op): Remove.
1379 Replace uses of first_rtl_op with TREE_CODE_LENGTH.
1380 * tree.h: Remove the prototype for first_rtl_op.
1381
1382 2004-12-07 David Edelsohn <edelsohn@gnu.org>
1383
1384 * config/rs6000/t-aix43, config/rs6000/t-aix52 (SHLIB_LINK):
1385 Revert 2004-12-01 change.
1386
1387 2004-12-06 Ziemowit Laski <zlaski@apple.com>
1388
1389 * c-tree.h (struct lang_type): Add 'objc_protocols' field.
1390
1391 2004-12-06 DJ Delorie <dj@redhat.com>
1392
1393 * reload.c (find_valid_class): Fix logic to test inner mode as well.
1394 (push_reload): Pass inner mode.
1395
1396 2004-12-06 Eric Christopher <echristo@redhat.com>
1397
1398 * doc/tm.texi (TARGET_VALID_POINTER_MODE): Document.
1399
1400 2004-12-06 Aldy Hernandez <aldyh@redhat.com>
1401
1402 * config/rs6000/sysv4.h: Define RELOCATABLE_NEEDS_FIXUP to 1.
1403
1404 2004-12-06 Zdenek Dvorak <dvorakz@suse.cz>
1405 Kazu Hirata <kazu@cs.umass.edu>
1406
1407 PR tree-optimization/18601
1408 * tree-cfg.c (thread_jumps, thread_jumps_from_bb): Removed.
1409 (tree_forwarder_block_p): Do not consider blocks that are its own
1410 successors forwarders.
1411 (cleanup_forwarder_blocks, remove_forwarder_block): New functions.
1412 (cleanup_tree_cfg): Use cleanup_forwarder_blocks instead of
1413 thread_jumps.
1414 * tree-flow.h (bb_ann_d): Remove forwardable.
1415
1416 2004-12-06 Kazu Hirata <kazu@cs.umass.edu>
1417
1418 * expr.c (expand_expr_real_1): Remove an "if" whose condition
1419 is always false.
1420
1421 2004-12-06 Roger Sayle <roger@eyesopen.com>
1422
1423 * c-gimplify.c (gimplify_c_loop): Improve initial implementations
1424 for loops whose conditions are known at compile-time.
1425 * gimplify.c (append_to_statement_list_1): Remove side_effects
1426 parameter, this function should never be called if its false.
1427 (append_to_statement_list): Only call append_to_statement_list_1
1428 if t is non-NULL tree with side-effects.
1429 (append_to_statement_list_force): Likewise, if t is not NULL.
1430
1431 2004-12-06 J"orn Rennecke <joern.rennecke@st.com>
1432
1433 * bt-load.c (btr_def_s): New member own_end;
1434 (add_btr_to_live_range): Add second parameter. Changed caller.
1435 (clear_btr_from_live_range): Clear btrs_live_at_end bit
1436 for the register its definition basic block if own_end is set.
1437 (augment_live_range): Also take btrs_live_at_end into account.
1438 (combine_btr_defs): Don't bother with
1439 other_def->other_btr_uses_after_use if it pertains to a different
1440 register.
1441 (move_btr_def): Set def->other_btr_uses_before_def after
1442 calling combine_btr_defs."
1443
1444 * bt-load.c (augment_live_range): New argument full_range.
1445 Changed all callers.
1446
1447 * bt-load.c (move_tr_def): Set other_tr_uses_before_def
1448 taking new btr assignment into account.
1449
1450 2004-12-05 Daniel Berlin <dberlin@dberlin.org>
1451
1452 * tree-ssa-alias.c (create_global_var): Use void_type_node,
1453 not size_type_node.
1454
1455 2004-12-05 Kazu Hirata <kazu@cs.umass.edu>
1456
1457 * expr.c (expand_expr_real_1): Abort on COND_EXPR of
1458 VOID_TYPE.
1459
1460 2004-12-05 Richard Henderson <rth@redhat.com>
1461
1462 PR target/18841
1463 * config/alpha/alpha.md (UNSPECV_SETJMPR_ER): New.
1464 (builtin_setjmp_receiver_er_sl_1): Use it.
1465 (builtin_setjmp_receiver_er_1): Likewise.
1466 (builtin_setjmp_receiver_er, exception_receiver_er): Remove.
1467 (builtin_setjmp_receiver): Don't split for explicit relocs until
1468 after reload.
1469 (exception_receiver): Likewise.
1470
1471 2004-12-05 Andrew Pinski <pinskia@physics.uc.edu>
1472
1473 * mklibgcc.in (vis_hide): Add the prototype for the test.
1474
1475 2004-12-05 Roger Sayle <roger@eyesopen.com>
1476
1477 * c-typeck.c (c_finish_loop): Improve initial implementations
1478 for loops whose conditions are known at compile-time.
1479
1480 2004-12-05 Kazu Hirata <kazu@cs.umass.edu>
1481
1482 * builtins.c: Fix comment typos.
1483
1484 2004-12-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1485
1486 PR middle-end/18730
1487 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): When
1488 the first/last insn is a sequence, return the first/last insn of the
1489 sequence.
1490
1491 PR bootstrap/18804
1492 * mklibgcc.in (vis_hide): Use implementation instead of declaration
1493 for test function.
1494
1495 2004-12-04 Richard Henderson <rth@redhat.com>
1496
1497 * config/alpha/alpha.c (alpha_expand_unaligned_load): Don't forget to
1498 use ofs in BWX two byte special case.
1499 (alpha_expand_unaligned_store): Likewise.
1500
1501 2004-12-04 Kazu Hirata <kazu@cs.umass.edu>
1502
1503 * gcse.c (gcse_main): Add a comment.
1504
1505 2004-12-04 Andrew Pinski <pinskia@physics.uc.edu>
1506
1507 PR middle-end/17909
1508 * builtins.c (fold_builtin_next_arg): Export and return true
1509 when there is a warning or an error.
1510 (expand_builtin_va_start): When fold_builtin_next_arg returns true,
1511 return const0_rtx.
1512 (expand_builtin): Likewise.
1513 * gimplify.c (gimplify_call_expr): Error out if there is not
1514 enough arguments to va_start. Call fold_builtin_next_arg also
1515 on the second argument.
1516 * tree.h (fold_builtin_next_arg): Prototype.
1517
1518 2004-12-04 Alan Modra <amodra@bigpond.net.au>
1519
1520 * mklibgcc.in: Build shared libgcc and shared libunwind in gcc/.
1521 Don't subst shlib_dir for SHLIB_LINK, SHLIBUNWIND_LINK,
1522 SHLIB_INSTALL, and SHLIBUNWIND_INSTALL.
1523 * config/i386/t-nwld (SHLIB_NAME): Use shlib_base_name in place of
1524 shlib_dir and shlib_so_name.
1525 * config/mips/t-slibgcc-irix (SHLIB_NAME): Likewise.
1526 * config/t-libunwind-elf (SHLIB_NAME): Likewise.
1527 * config/t-slibgcc-darwin (SHLIB_NAME): Likewise.
1528 * config/t-slibgcc-elf-ver (SHLIB_NAME): Likewise.
1529 * config/t-slibgcc-sld (SHLIB_NAME): Likewise.
1530 (SHLIB_LINK): Don't use shlib_dir when creating symlink.
1531
1532 2004-12-03 Roger Sayle <roger@eyesopen.com>
1533
1534 * doc/tm.texi (TARGET_DELEGITIMIZE_ADDRESS): Document target hook.
1535
1536 2004-12-03 Richard Henderson <rth@redhat.com>
1537
1538 * alias.c (component_uses_parent_alias_set): Rename from
1539 can_address_p. Return bool. Reverse the sense of the result.
1540 Reinstate the check for alias set zero.
1541 (get_alias_set): Update to match.
1542 * alias.h (component_uses_parent_alias_set): Likewise.
1543 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
1544 * expr.c (expand_assignment): Likewise.
1545 * expr.h: Remove commented out prototypes that were moved to alias.h.
1546
1547 2004-12-03 Richard Henderson <rth@redhat.com>
1548
1549 * doc/tm.texi (TARGET_BUILD_BUILTIN_VA_LIST): New.
1550 (TARGET_CANNOT_FORCE_CONST_MEM): New.
1551
1552 2004-12-04 Alan Modra <amodra@bigpond.net.au>
1553
1554 PR middle end/18718
1555 * sched-rgn.c (schedule_region): Don't assume REG_SAVE_NOTEs are
1556 in pairs.
1557 * sched-ebb.c (schedule_ebb): Likewise.
1558
1559 2004-12-03 Andreas Schwab <schwab@suse.de>
1560
1561 * Makefile.in (HOSTHOOKS_DEF_H): Define.
1562 (ggc-common.o): Depend on $(HOSTHOOKS_DEF_H).
1563 (host-default.o): Likewise.
1564
1565 2004-12-03 Eric Christopher <echristo@redhat.com>
1566
1567 * config/stormy16/stormy16.md (pushqi, popqi, pushhi,
1568 pophi): Add number of arguments to name so that the
1569 pattern is recognized as a named pattern.
1570
1571 2004-12-03 Janis Johnson <janis187@us.ibm.com>
1572
1573 * doc/extend.texi (AltiVec Builtins): Fix info about signedness.
1574
1575 2004-12-03 Andreas Tobler <a.tobler@schweiz.ch>
1576
1577 * config/rs6000/rs6000.c (rs6000_override_options): Protect
1578 darwin_one_byte_bool with #if.
1579
1580 2004-12-03 Paolo Bonzini <bonzini@gnu.org>
1581
1582 * doc/tm.texi (Misc): Document TARGET_FOLD_BUILTIN.
1583
1584 2004-12-03 H.J. Lu <hongjiu.lu@intel.com>
1585
1586 * mklibgcc.in: Put back the default set of EXTRA_MULTILIB_PART.
1587
1588 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
1589
1590 * configure.ac: Move TL_AC_GCC_VERSION into initialization section.
1591 Set libstdcxx_incdir directly.
1592 * configure: Regenerate.
1593
1594 2004-12-03 Kazu Hirata <kazu@cs.umass.edu>
1595
1596 * tree-ssa-dom.c (record_equivalences_from_phis): Remove an
1597 "if" whose condition is always true.
1598
1599 * cfgrtl.c (rtl_verify_flow_info_1): Use JUMP_P instead of
1600 INSN_P.
1601
1602 2004-12-02 Stan Shebs <shebs@apple.com>
1603
1604 * config/rs6000/rs6000.c (rs6000_override_options): Make 64-bit
1605 Darwin default to one-byte bools.
1606
1607 2004-12-02 Richard Henderson <rth@redhat.com>
1608
1609 PR 18774
1610 * simplify-rtx.c (simplify_immed_subreg): Fail complex modes.
1611
1612 2004-12-03 Ben Elliston <bje@au.ibm.com>
1613
1614 * doc/cfg.texi (Edges): Update. Document the edge_iterator data
1615 type and its methods.
1616
1617 2004-12-02 Richard Henderson <rth@redhat.com>
1618
1619 * expr.c (write_complex_part): Use simplify_gen_subreg when the
1620 submode is at least as large as a word.
1621 (read_complex_part): Likewise.
1622
1623 2004-12-02 H.J. Lu <hongjiu.lu@intel.com>
1624
1625 PR bootstrap/18532
1626 * mklibgcc.in: Build one set of EXTRA_MULTILIB_PARTS for
1627 multilib at a time. Don't build the default set. Don't add
1628 EXTRA_MULTILIB_PARTS to shared libunwind nor libgcc. Remove
1629 filter for shared libunwind and libgcc.
1630
1631 2004-12-02 Roger Sayle <roger@eyesopen.com>
1632
1633 PR target/18759
1634 * config/i386/i386.c (override_options): If -fomit-frame-pointer has
1635 already been specified, ignore the -momit-leaf-frame-pointer option.
1636
1637 2004-12-02 H.J. Lu <hongjiu.lu@intel.com>
1638
1639 * varasm.c (make_decl_rtl): Add the missing `;'.
1640
1641 2004-12-02 Andrew Pinski <pinskia@physics.uc.edu>
1642
1643 * tree.c (is_attribute_p): Split out to ..
1644 (is_attribute_with_length_p): Here. Use IDENTIFIER_LENGTH instead
1645 of strlen and compare the string lengths before calling strcmp.
1646 (lookup_attribute): Call is_attribute_with_length_p instead of
1647 is_attribute_p.
1648
1649 2004-12-02 Devang Patel <dpatel@apple.com>
1650
1651 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -gfull and -gused.
1652 * config/rs6000/darwin.h (CC1_SPEC): Do not handle -gfull and -gused.
1653 * config/i386/darwin.h (CC1_SPEC): Same.
1654
1655 2004-12-02 Richard Henderson <rth@redhat.com>
1656
1657 * optabs.c (lowpart_subreg_maybe_copy): New.
1658 (expand_unop, expand_abs_nojump): Use it.
1659
1660 2004-12-02 J"orn Rennecke <joern.rennecke@st.com>
1661
1662 * sh.md (extv, extzv): Add pattern predicate.
1663
1664 2004-12-02 Kazu Hirata <kazu@cs.umass.edu>
1665
1666 * tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF
1667 is not null.
1668
1669 * tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF
1670 is not null.
1671
1672 * tree-cfg.c (thread_jumps): Reduce the size of WORKLIST.
1673
1674 2004-12-02 Jeff Law <law@redhat.com>
1675
1676 * tree-eh.c: Revert yesterday's change.
1677
1678 2004-12-02 Andrew Pinski <pinskia@physics.uc.edu>
1679
1680 * varasm.c (decode_reg_name): Revert change to check for zero
1681 length strings.
1682 (make_decl_rtl): Make sure that we call decode_reg_name only
1683 when needed.
1684
1685 2004-12-02 Dorit Naishlos <dorit@il.ibm.com>
1686
1687 PR tree-opt/18716
1688 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Properly set
1689 then and else labels.
1690
1691 2004-12-02 Andreas Schwab <schwab@suse.de>
1692
1693 * Makefile.in (WERROR_FLAGS): Renamed from WERROR.
1694 (STRICT2_WARN): Use $(WERROR_FLAGS) instead of $(WERROR).
1695 (STAGE2_FLAGS_TO_PASS): Likewise.
1696
1697 * config/i386/x-mingw32: Set WERROR_FLAGS instead of WERROR.
1698
1699 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
1700
1701 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version. Remove
1702 now-redundant AC_SUBSTs.
1703 * aclocal.m4: Include ../config/gcc-version.m4.
1704 * configure: Regenerate.
1705
1706 2004-12-02 Alan Modra <amodra@bigpond.net.au>
1707
1708 * config/rs6000/rs6000.c (rs6000_assemble_integer): Put back the
1709 #ifdef RELOCATABLE_NEEDS_FIXUP.
1710
1711 2004-12-01 Roger Sayle <roger@eyesopen.com>
1712
1713 PR target/9908
1714 * config/i386/i386.md (*call_value_1, *sibcall_value_1): Correct
1715 Intel assembler syntax by using %A1 instead of %*%1.
1716
1717 2004-12-01 Richard Henderson <rth@redhat.com>
1718
1719 * expr.c (expand_assignment): Handle CONCAT both as a final
1720 destination and as a middle point.
1721
1722 2004-12-01 Jeff Law <law@redhat.com>
1723
1724 * tree-eh.c (save_eptr, save_filt): Now file scoped statics.
1725 (honor_protect_cleanup_actions): Only create save_eptr and
1726 save_filt if they do not already exist.
1727 (lower_eh_constructs): Wipe all knowledge of save_eptr and
1728 save_filt before returning.
1729
1730 2004-12-02 Kazu Hirata <kazu@cs.umass.edu>
1731
1732 * tree-phinodes.c (remove_phi_arg_num): Fix a comment.
1733
1734 2004-12-02 Alan Modra <amodra@bigpond.net.au>
1735
1736 PR target/16952
1737 * config/rs6000/rs6000.c (rs6000_assemble_integer): Replace
1738 #ifdef RELOCATABLE_NEEDS_FIXUP with if.
1739 * config/rs6000/linux.h (RELOCATABLE_NEEDS_FIXUP): Define in terms
1740 of target_flags_explicit.
1741 * config/rs6000/linux64.h (RELOCATABLE_NEEDS_FIXUP): Ditto for biarch
1742 case. Define as 0 for non-biarch.
1743
1744 2004-12-01 Zack Weinberg <zack@codesourcery.com>
1745
1746 * config/rs6000/t-aix43, config/rs6000/t-aix52 (SHLIB_LINK):
1747 Change temporary file tag from a prefix to an infix.
1748
1749 2004-12-02 Andreas Schwab <schwab@suse.de>
1750
1751 * gcc.c (struct option_map): Add entry for "--pass-exit-codes".
1752
1753 2004-12-01 Andrew Pinski <pinskia@physics.uc.edu>
1754
1755 PR tree-opt/18763
1756 PR tree-opt/18746
1757 * tree-ssa-alias.c (init_alias_info): Get statement operands for all
1758 the statements if aliases_computed_p is true.
1759
1760 2004-12-01 Mark Mitchell <mark@codesourcery.com>
1761
1762 * Makefile.in (WERROR): New variable.
1763 (STRICT2_WARN): Use it.
1764 (STAGE2_FLAGS_TO_PASS): Likewise.
1765 * config/i386/x-mingw32 (WERROR): Add -Wno-format.
1766
1767 2004-12-01 Richard Henderson <rth@redhat.com>
1768
1769 * expr.c (get_inner_reference): Fix thinko in REAL/IMAGPART_EXPR
1770 offsetting.
1771
1772 2004-12-01 Diego Novillo <dnovillo@redhat.com>
1773
1774 PR tree-optimization/18291
1775 * tree-ssa-copy.c (merge_alias_info): Fix merging of
1776 flow-sensitive alias information. If the new pointer has no
1777 name tag, copy it from the original pointer. Otherwise, make
1778 sure that the pointed-to sets have a common intersection.
1779
1780 2004-12-01 Richard Henderson <rth@redhat.com>
1781
1782 PR rtl-opt/15289
1783 * emit-rtl.c (gen_complex_constant_part): Remove.
1784 (gen_realpart, gen_imagpart): Remove.
1785 * rtl.h (gen_realpart, gen_imagpart): Remove.
1786 * expmed.c (extract_bit_field): Remove CONCAT hack catering to
1787 gen_realpart/gen_imagpart.
1788 * expr.c (write_complex_part, read_complex_part): New.
1789 (emit_move_via_alt_mode, emit_move_via_integer, emit_move_resolve_push,
1790 emit_move_complex_push, emit_move_complex, emit_move_ccmode,
1791 emit_move_multi_word): Split out from ...
1792 (emit_move_insn_1): ... here.
1793 (expand_expr_real_1) <COMPLEX_EXPR>: Use write_complex_part.
1794 <REALPART_EXPR, IMAGPART_EXPR>: Use read_complex_part.
1795 * function.c (assign_parm_setup_reg): Hard-code transformations
1796 instead of using gen_realpart/gen_imagpart.
1797
1798 * expr.c (optimize_bitfield_assignment_op): Split out from ...
1799 (expand_assignment): ... here. Use handled_component_p to gate
1800 get_inner_reference code. Simplify MEM handling. Special case
1801 CONCAT destinations.
1802
1803 * expmed.c (store_bit_field): Use simplify_gen_subreg instead
1804 of gen_rtx_SUBREG directly.
1805
1806 2004-12-01 David Edelsohn <edelsohn@gnu.org>
1807 Nathan Sidwell <nathan@codesourcery.com>
1808
1809 PR target/17107
1810 * config/rs6000/rs6000.md (sge): Enable for non-TARGET_POWER.
1811 (sgt): Same.
1812 (sle): Same.
1813 (slt): Same.
1814
1815 2004-12-01 Nathan Sidwell <nathan@codesourcery.com>
1816
1817 PR middle-end/18667
1818 * params.c (set_param_value): Add range check.
1819 * params.def: Add min and max values. Reformat long strings.
1820 * params.h (struct param_info): Add min and max fields.
1821 (enum compiler_param): Adjust DEFPARAM.
1822 * toplev.c (lang_independent_params): Likewise.
1823
1824 2004-12-01 Alan Modra <amodra@bigpond.net.au>
1825
1826 PR target/12817
1827 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use r0 for vrsave.
1828
1829 2004-12-01 Joseph S. Myers <joseph@codesourcery.com>
1830
1831 * doc/standards.texi: Update for C99 TC2.
1832
1833 2004-11-30 Jeff Law <law@redhat.com>
1834
1835 * sbitmap.c (sbitmap_any_common_bits): New function.
1836 * sbitmap.h (sbitmap_any_common_bits): Prototype.
1837 * modulo-sched.c (sms_schedule_by_order): Use sbitmap_any_common_bits
1838 No longer allocate/free "psp", "pss" sbitmaps.
1839 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Similarly for
1840 the "res" sbitmap.
1841 (group_aliases): Similarly.
1842
1843 2004-11-30 Nathan Sidwell <nathan@codesourcery.com>
1844
1845 * tree-vectorizer.c (vect_analyze_data_refs): Reformat and avoid
1846 uninitialized variable.
1847
1848 2004-11-30 Eric Christopher <echristo@redhat.com>
1849
1850 * fold-const.c (fold_widened_comparison): Make sure that we're
1851 passing an INTEGER_TYPE to int_fits_type_p.
1852 (fold): Clean up comment.
1853
1854 2004-11-30 Zack Weinberg <zack@codesourcery.com>
1855
1856 * mklibgcc.in: Correct calculation of libgcc_s_soname and
1857 libunwind_soname. Use $out, not $outS, in commands for
1858 no-shared-library case. Move EXTRA_MULTILIB_PARTS rules above
1859 library build rules, make $libunwind_so and $libgcc_s_so
1860 depend on them in the normal fashion, and filter those objects
1861 out of @shlib_objs@.
1862
1863 2004-11-30 Janis Johnson <janis187@us.ibm.com>
1864
1865 * config/rs6000/altivec.h (vec_step_help): Support const vector types.
1866
1867 2004-11-30 Andrew Pinski <pinskia@physics.uc.edu>
1868
1869 PR tree-opt/18298
1870 * tree-optimize.c (init_tree_optimization_passes): Add a may_alias
1871 pass right after fold builtins.
1872
1873 2004-11-30 Andreas Krebbel <krebbel1@de.ibm.com>
1874
1875 * config/s390/s390-modes.def: Added cc modes documentation.
1876 * config/s390/s390.c: (s390_tm_ccmode, s390_select_ccmode,
1877 s390_expand_addcc): Added cc mode comments.
1878 * config/s390/s390.md: Removed old cc mode documentation.
1879
1880 2004-11-30 Mark Dettinger <dettinge@de.ibm.com>
1881
1882 * config/s390/s390.c (struct processor_costs): New data type.
1883 (s390_cost, z900_cost, z990_cost): New global variables.
1884 (override_options): Initialize s390_cost.
1885 (s390_rtx_costs): Reimplement.
1886
1887 2004-11-29 Daniel Berlin <dberlin@dberlin.org>
1888
1889 Fix PR tree-optimization/18673
1890
1891 * tree-ssa-pre.c: Remove splay-tree.h include.
1892 (bitmap_value_replace_in_set): Fix to add if it does not exist.
1893 (find_or_generate_expression): Remove now-wrong condition.
1894 (create_expression_by_pieces): Fix condition and comment reason
1895 for it.
1896 (insert_aux): Fix condition and comment reasons for it.
1897 Factor insertion code from here.
1898 (insert_into_preds_of_block): To here. Fix conditions in factored
1899 function and comment reasons for them.
1900
1901 2004-11-30 Ira Rosen <irar@il.ibm.com>
1902
1903 PR tree-opt/18607
1904 * tree-vectorizer.c (vect_analyze_data_refs): Use temporary
1905 variable for data_reference when looking for memtag.
1906
1907 2004-11-30 Jakub Jelinek <jakub@redhat.com>
1908
1909 * c-opts.c (check_deps_environment_vars): If spec != NULL, set
1910 deps_seen.
1911
1912 2004-11-30 Dorit Naishlos <dorit@il.ibm.com>
1913
1914 * tree-vectorizer.c (vect_gen_niters_for_prolog_loop): Use
1915 tree_low_cst instead of TREE_INT_CST_LOW.
1916
1917 2004-11-30 Dorit Naishlos <dorit@il.ibm.com>
1918
1919 PR target/18173
1920 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Return false for
1921 decls that are assembled before vectorization takes place.
1922 (vect_compute_data_ref_alignment): Set DECL_USER_ALIGN to 1.
1923
1924 2004-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1925
1926 * passes.c (rest_of_handle_old_regalloc): Delete unreachable blocks
1927 if local_alloc modified jumps.
1928
1929 2004-11-30 Alan Modra <amodra@bigpond.net.au>
1930
1931 * varasm.c (default_encode_section_info): Don't set SYMBOL_FLAG_SMALL
1932 on TLS symbols.
1933 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Remove TLS
1934 check.
1935
1936 2004-11-30 Zack Weinberg <zack@codesourcery.com>
1937
1938 * gthr-gnat.c, gthr-gnat.h, gthr.h, libgcc2.h, unwind-dw2-fde.h
1939 * unwind.h: Surround all visibility pragmas with #ifndef HIDE_EXPORTS.
1940
1941 * mklibgcc.in: Drastic restructure for comprehensibility.
1942 Remove the old hidden-directive hack.
1943 Eliminate support for .txt files in LIB2ADD etc (never used).
1944 Eliminate support for assembly source files in LIB2ADDEH* and
1945 LIBUNWIND (also never used).
1946 Build up dependency lists for libraries incrementally.
1947 If we have SHLIB_LINK, compile each file twice, once for the
1948 static and once for the shared library; also probe for
1949 -fvisibility=hidden in the generated libgcc.mk. If found,
1950 pass that and -DHIDE_EXPORTS to the compilation of every C
1951 source file going into the static library. If found, generate
1952 hidden-directive lists for every assembly source file going
1953 into the static library, but incorporate them with -include
1954 instead of ld -r.
1955 Write comments into generated libgcc.mk to facilitate debugging.
1956 * Makefile.in: Pass ASM_HIDDEN_OP to mklibgcc.
1957 * config/t-slibgcc-darwin: Define ASM_HIDDEN_OP.
1958
1959 * config/darwin.h (REAL_LIBGCC_SPEC): Put -lgcc back in
1960 -Zdynamiclib case.
1961
1962 2004-11-29 Richard Henderson <rth@redhat.com>
1963
1964 * expr.c (get_inner_reference): Handle REAL/IMAGPART_EXPR.
1965 (handled_component_p): Likewise.
1966 * alias.c (can_address_p): Reformat and simplify. Handle
1967 REAL/IMAGPART_EXPR. Do not disable addressability based on
1968 alias set zero.
1969 * fold-const.c (build_fold_addr_expr_with_type): Remove duplicate
1970 check for REAL/IMAGPART_EXPR.
1971 * gimplify.c (gimplify_compound_lval): Likewise.
1972 * tree-cfg.c (verify_expr): Likewise.
1973 * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
1974 * tree-nested.c (build_addr, convert_nonlocal_reference): Likewise.
1975 (convert_local_reference): Likewise.
1976 * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Likewise.
1977
1978 2004-11-30 Alan Modra <amodra@bigpond.net.au>
1979
1980 * expr.c (emit_group_load_1): Don't die on const_int orig_src.
1981
1982 2004-11-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1983
1984 PR pch/14940
1985 * config/pa/pa-host.c, config/pa/x-hpux, config/pa/x-linux: New files.
1986 * config.host (hppa*-*-hpux*, hppa*-*-linux): Define out_host_hook_obj
1987 and host_xmake_file using new host configuration files.
1988
1989 2004-11-29 Roger Sayle <roger@eyesopen.com>
1990
1991 * reg-stack.c (change_stack): Improve algorithm used to pop regs
1992 off the stack to maximize ffreep usage and reduce fxch count.
1993
1994 2004-11-30 James A. Morrison <phython@gcc.gnu.org>
1995
1996 PR middle-end/18596
1997 * c-decl.c (grokdeclarator): Reset DECL_INTIAL to error_mark_node
1998 on errors.
1999
2000 2004-11-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2001
2002 * expr.c (expand_expr_real_1, case NOP_EXPR): Properly handle
2003 REDUCE_BIT_FIELD by applying it to result, not input, of conversion.
2004
2005 2004-11-30 Ben Elliston <bje@au.ibm.com>
2006
2007 * Makefile.in (REGS_H): Depend on $(BASIC_BLOCK_H).
2008
2009 2004-11-29 Andrew Pinski <pinskia@physics.uc.edu>
2010
2011 PR c/18479
2012 * c-common.c (handle_visibility_attribute): When the type decl
2013 is really a identifier node, warn about being ignored and return.
2014
2015 2004-11-29 Richard Henderson <rth@redhat.com>
2016
2017 * tree-cfg.c (tree_node_can_be_shared): Fix typo'd error_mark_node.
2018
2019 2004-11-29 Steven Bosscher <stevenb@suse.de>
2020
2021 * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge):
2022 Remove CASE_DROPS_THROUGH checks, it is never defined.
2023 * cfglyout.c (fixup_reorder_chain): Likewise.
2024 * cfgrtl.c (rtl_verify_flow_info): Likewise.
2025 * stmt.c (expand_case): Likewise.
2026 * cfgbuild.c (make_edges): Likewise. Also remove force_fallthru,
2027 it is now always 0.
2028 * system.h (CASE_DROPS_THROUGH): Poison.
2029 * doc/md.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
2030 * doc/tm.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
2031
2032 * config/v850/v850.h: Remove commented out CASE_DROPS_THROUGH.
2033
2034 2004-11-29 Andrew Pinski <pinskia@physics.uc.edu>
2035
2036 PR middle-end/18725
2037 * tree-cfg.c (tree_node_can_be_shared): Error_mark_node can be
2038 shared always.
2039
2040 2004-11-29 Diego Novillo <dnovillo@redhat.com>
2041
2042 PR tree-optimization/18712
2043 * tree-into-ssa.c (insert_phi_nodes_for): Pass argument
2044 WORK_STACK by reference.
2045 Call VEC_safe_push instead of VEC_quick_push.
2046 Update all users.
2047
2048 2004-11-29 Daniel Jacobowitz <dan@codesourcery.com>
2049
2050 PR c/7544
2051 * Makefile.in (c-lang.o): Update dependencies.
2052 * c-lang.c: Include "c-pragma.h".
2053 (finish_file): Call maybe_apply_pending_pragma_weaks.
2054 * c-pragma.c (maybe_apply_pending_pragma_weaks): New function.
2055 * c-pragma.h (maybe_apply_pending_pragma_weaks): New prototype.
2056
2057 2004-11-29 Richard Henderson <rth@redhat.com>
2058
2059 PR target/17224
2060 * config/ia64/predicates.md (sdata_symbolic_operand): Deny offsets
2061 outside the referenced object.
2062
2063 2004-11-29 Kazu Hirata <kazu@cs.umass.edu>
2064
2065 * tree-if-conv.c (replace_phi_with_cond_modify_expr): Use
2066 EDGE_PRED instead of PHI_ARG_EDGE.
2067 * tree-ssa-live.c: Likewise.
2068 * tree-ssa-loop-manip.c: Likewise.
2069 * tree-ssa.c: Likewise.
2070
2071 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Speed up by
2072 simplifying edge manipulation.
2073
2074 * cfgrtl.c (rtl_tidy_fallthru_edge): Speed up by using
2075 EDGE_COUNT.
2076
2077 * tree-cfg.c (tree_redirect_edge_and_branch): Call find_edge
2078 only when needed.
2079
2080 * cfg.c (flow_obstack): Remove.
2081 (flow_firstobj): Likewise.
2082 (init_flow): Remove all uses of flow_obstack.
2083
2084 2004-11-29 Alan Modra <amodra@bigpond.net.au>
2085
2086 * varasm.c (default_elf_select_section_1): Only pass DECL_P decl
2087 to named_section.
2088
2089 2004-11-29 Nathan Sidwell <nathan@codesourcery.com>
2090
2091 * opts.c (decode_options): Do not set max-inline-insns-rtl.
2092 (common_handle_option): Likewise.
2093 * params.def (PARAM_MAX_INLINE_INSNS_RTL): Remove.
2094 * params.h (MAX_INLINE_INSNS_RTL): Remove.
2095 * doc/invoke.texi (max-inline-insns-rtl): Remove.
2096
2097 2004-11-29 Alan Modra <amodra@bigpond.net.au>
2098
2099 PR target/9571
2100 * varasm.c (default_elf_select_section_1): Pass decl to named_section.
2101
2102 2004-11-28 Andrew Pinski <pinskia@physics.uc.edu>
2103
2104 PR middle-end/18164
2105 * gimplify.c (gimplify_asm_expr): If the length of an output operand
2106 is zero, do not process it, just let it go through.
2107
2108 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2109 Diego Novillo <dnovillo@redhat.com>
2110
2111 PR/18662, also backported from tree-cleanup-branch.
2112 * tree-ssa-ccp.c (substitute_and_fold): If replaced anything,
2113 always call maybe_clean_eh_stmt and modify_stmt.
2114
2115 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2116
2117 PR/18664
2118 * tree-ssa-operands.c (build_ssa_operands, case MODIFY_EXPR):
2119 Ignore a VIEW_CONVERT_EXPR on LHS when deciding if must or may def.
2120 * tree-ssa-ccp.c (visit_assignment): If LHS is a VIEW_CONVERT_EXPR,
2121 add an inverse VIEW_CONVERT_EXPR to const_val.
2122
2123 PR/18657
2124 * tree-nested.c (check_for_nested_with_variably_modified): New.
2125 (create_nesting_tree): Call it.
2126
2127 * tree-ssa-alias.c (compute_points_to_and_addr_escapes): Remove
2128 special code for assigning to non-pointer.
2129 (is_escape_site): If RHS is a conversion between pointer and integer
2130 types, this is an escape site.
2131
2132 * gcse.c (insert_store): Error if try to insert store on abnormal edge.
2133 (store_motion): Don't move store if any edge we'd want to move it
2134 to is abnormal.
2135
2136 * expr.c (expand_expr_real_1, case ARRAY_REF): Properly fold with
2137 non-zero lower bound.
2138
2139 * expr.c (categorize_ctor_elements_1, case STRING_CST): New case.
2140
2141 2004-11-28 Matt Kraai <kraai@alumni.cmu.edu>
2142
2143 PR diagnostic/17594
2144 * opts.c (find_opt): Require that the input match a switch exactly
2145 or that the switch take a joined option to be interpreted as a
2146 match for another language.
2147
2148 2004-11-28 Andrew Pinski <pinskia@physics.uc.edu>
2149
2150 * timevar.def (TV_TREE_REDPHI): New timevar.
2151 * tree-ssa.c (pass_redundant_phi): Use TV_TREE_REDPHI for the tv id.
2152
2153 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
2154
2155 PR preprocessor/17651
2156 * c-opts.c (sanitize_cpp_opts): Make flag_no_output imply
2157 flag_no_line_commands.
2158 * c-ppoutput.c (pp_file_change): Remove now-redundant check of
2159 flag_no_output.
2160
2161 2004-11-28 Theodore A. Roth <troth@openavr.org>
2162
2163 * config/avr/avr.c (avr_handle_fndecl_attribute): Generate a
2164 warning if the function name does not begin with "__vector" and the
2165 function has either the 'signal' or 'interrupt' attribute.
2166
2167 2004-11-28 Theodore A. Roth <troth@openavr.org>
2168
2169 * config/avr/avr.c (avr_mcu_types): Add entries for atmega48,
2170 atmega88, atmega168, attiny13, attiny2313, at90can128, atmega165,
2171 atmega325, atmega3250, atmega645 and atmega6450.
2172 * config/avr/avr.h (LINK_SPEC): Ditto.
2173 (LIB_SPEC): Ditto.
2174 (LIBGCC_SPEC): Ditto.
2175 (CRT_BINUTILS_SPECS): Ditto.
2176 * config/avr/t-avr (MULTILIB_MATCHES): Ditto.
2177
2178 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
2179
2180 PR preprocessor/17610
2181 * testsuite/gcc.dg/cpp/empty-include.c: New testcase.
2182
2183 2004-11-28 Jeff Law <law@redhat.com>
2184
2185 * tree-ssa-alias.c (count_calls_and_maybe_create_global_var): New.
2186 (pass_maybe_create_global_var): New.
2187 * tree-pass.h (pass_maybe_create_global_var): Declare.
2188 * tree-optimize.c (init_tree_optimization_passes): Link in
2189 pass_maybe_create_global_var.
2190
2191 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2192
2193 * tree-inline.c (inline_forbidden_p_1, case RECORD_TYPE): Add comment.
2194
2195 2004-11-28 Ulrich Weigand <uweigand@de.ibm.com>
2196
2197 PR rtl-optimization/18420
2198 * simplify-rtx.c (simplify_gen_subreg): Revert 2004-10-28 change.
2199
2200 2004-11-28 Steven Bosscher <stevenb@suse.de>
2201 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2202
2203 * config/vax/vax.h (CASE_DROPS_THROUGH): Don't define.
2204 * config/vax/vax.md (casesi): Emit a test-and-branch to make sure
2205 that the case is in range, to make sure the casesi insn is always
2206 in range and never falls through.
2207 (casesi1): Add comment to explain why casesi never falls through.
2208 Remove the unnamed special case casesi pattern.
2209
2210 2004-11-28 Hans-Peter Nilsson <hp@bitrange.com>
2211
2212 PR target/18331
2213 * config/mmix/mmix.md ("*movdicc_real_reversible"): Rename from
2214 "*movdicc_real". Only match reversible comparisons.
2215 ("*movdicc_real_nonreversible"): New pattern, split from
2216 "*movdicc_real". Match only nonreversible comparisons. Exclude
2217 reversed alternatives.
2218 ("*movdfcc_real_reversible", "*movdfcc_real_nonreversible"):
2219 Similar.
2220
2221 2004-11-27 Richard Henderson <rth@redhat.com>
2222
2223 * config/ia64/ia64.md: Move all define_predicate's ...
2224 * config/ia64/predicates.md: ... here. New file.
2225
2226 2004-11-27 Per Bothner <per@bothner.com>
2227
2228 PR bootstrap/18142
2229 Re-applied following, with two modifications: add a URL for the
2230 fixed cctools; only exit if $build = $target.
2231
2232 2004-10-18 Kelley Cook <kcook@gcc.gnu.org>
2233 * configure.ac (powerpc-*-darwin*): Require assembler to support
2234 .machine directive.
2235 * configure: Regenerate.
2236
2237 2004-11-28 David Edelsohn <edelsohn@gnu.org>
2238
2239 PR target/16800
2240 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve accuracy of
2241 EQ, GTU, and LTU costs. Add costs for GT, LT, and UNORDERED.
2242 Distinguish between SImode and DImode CONST_INT.
2243
2244 2004-11-28 Andreas Fischer <a_fisch@gmx.de>
2245 Alan Modra <amodra@bigpond.net.au>
2246
2247 PR target/16343
2248 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Disallow
2249 functions, strings and thread-local vars.
2250
2251 2004-11-28 Alan Modra <amodra@bigpond.net.au>
2252
2253 * config/rs6000/rs6000.h (WORLD_SAVE_P): Define.
2254 * config/rs6000/darwin.h (WORLD_SAVE_P): Define.
2255 * config/rs6000/rs6000.c (compute_save_world_info): Use WORLD_SAVE_P
2256 to allow non-darwin ABIs to optimize away code.
2257 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
2258
2259 2004-11-27 Kazu Hirata <kazu@cs.umass.edu>
2260
2261 * tree.c (operand_equal_for_phi_arg_p): New.
2262 * tree.h: Add a prototype for operand_equal_for_phi_arg_p.
2263 * tree-cfg.c, tree-ssa-dom.c, tree-ssa-phiopt.c, tree-ssa.c:
2264 Replace operand_equal_p with operand_for_phi_arg_p
2265 appropriately.
2266
2267 * bb-reorder.c (find_traces_1_round): Speed up by using
2268 EDGE_COUNT instead of FOR_EACH_EDGE.
2269
2270 * fold-const.c, config/i386/linux64.h: Fix comment typos.
2271
2272 2004-11-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2273
2274 PR pch/14940
2275 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Revert 2004-11-22 change.
2276
2277 2004-11-27 Kazu Hirata <kazu@cs.umass.edu>
2278
2279 * config/i386/linux.h: Fix a comment typo.
2280 * doc/extend.texi: Fix a typo.
2281
2282 2004-11-27 Jeff Law <law@redhat.com>
2283
2284 * tree-cfg.c (cleanup_tree_cfg): Also return true if blocks
2285 are merged.
2286
2287 2004-11-27 Jakub Jelinek <jakub@redhat.com>
2288
2289 * config/i386/linux64.h (REG_NAME): Define.
2290
2291 2004-11-27 Jakub Jelinek <jakub@redhat.com>
2292
2293 * fold-const.c (extract_muldiv_1) <case ABS_EXPR>: If ctype is
2294 unsigned and type signed, build ABS_EXPR with signed_type (ctype)
2295 and only afterwards convert to ctype.
2296
2297 2004-11-27 Richard Sandiford <rsandifo@redhat.com>
2298
2299 * config/mips/mips-protos.h (function_arg_boundary): Declare.
2300 * config/mips/mips.h (PARM_BOUNDARY): Simplify definition.
2301 (STACK_BOUNDARY, MIPS_STACK_ALIGN): Likewise.
2302 (FUNCTION_ARG_BOUNDARY): Use new function_arg_boundary function.
2303 * config/mips/mips.c (function_arg_boundary): New function.
2304 Impose a maximum alignment of STACK_BOUNDARY.
2305
2306 2004-11-27 Jakub Jelinek <jakub@redhat.com>
2307
2308 PR rtl-optimization/17825
2309 * combine.c (subst): Ignore STRICT_LOW_PART no matter if REG_P (new)
2310 or not.
2311
2312 2004-11-27 Alan Modra <amodra@bigpond.net.au>
2313
2314 PR target/12769
2315 * config/rs6000/rs6000.c (init_cumulative_args): Set call_cookie
2316 from rs6000_default_long_calls for libcalls.
2317
2318 2004-11-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2319
2320 * expmed.c (extract_bit_field): When extracting from non-integer mode,
2321 force a SUBREG into a register because we may be taking a further
2322 SUBREG of it.
2323
2324 2004-11-27 Di-an Jan <dianj@freeshell.org>
2325
2326 * doc/contrib.texi (Tim Josling): Remove nesting quotation marks.
2327
2328 2004-11-26 Robert Millan <robertmh@gnu.org>
2329
2330 Changes for k*bsd-gnu support.
2331 * config/i386/linux.h: Define REG_NAME to allow overriding of
2332 register names in sc structure.
2333 * config/i386/linux-unwind.h: Refer to sc->REG_NAME(reg) instead
2334 of sc->reg.
2335 * config.gcc: Detect x86_64-k*bsd-gnu systems.
2336
2337 2004-11-26 Jeff Law <law@redhat.com>
2338
2339 * tree-ssa.c (verify_flow_sensitive_alias_info): Don't
2340 retrieve annotations or pointer info before it's necessary.
2341 Reorder tests for early continue of the loop. Manually CSE
2342 SSA_NAME_VAR.
2343
2344 2004-11-26 Eric Botcazou <ebotcazou@libertysurf.fr>
2345
2346 * target.h (struct gcc_target): New field 'dwarf_handle_frame_unspec'.
2347 * target_def.h (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to 0.
2348 (TARGET_INITIALIZER): Add TARGET_DWARF_HANDLE_FRAME_UNSPEC.
2349 * dwarf2out.c (dwarf2out_frame_debug_expr): Allow REG->REG move
2350 to a fixed reg if the source is the Return Address register.
2351 Implement new Rule 15.
2352 * doc/tm.texi (Frame Layout): Document TARGET_DWARF_HANDLE_FRAME_UNSPEC.
2353 * config/sparc/sparc.c (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to
2354 sparc_dwarf_handle_frame_unspec.
2355 (gen_save_register_window): New function.
2356 (emit_stack_pointer_increment): Rename into gen_stack_pointer_inc.
2357 (emit_stack_pointer_decrement): Rename into gen_stack_pointer_dec.
2358 (expand_prologue): Adjust calls to emit_stack_pointer_{in,de}crement.
2359 Set RTX_FRAME_RELATED_P on the appropriate insns and members of insns.
2360 (sparc_asm_function_prologue): Do not emit call frame debugging info.
2361 (emit_and_preserve): Adjust calls to emit_stack_pointer_{in,de}crement.
2362 (sparc_expand_epilogue): Likewise.
2363 (sparc_dwarf_handle_frame_unspec): New function.
2364 * config/sparc/sparc.md (save_register_window): Remove.
2365 (save_register_windowdi): Rewrite modelled on the callframe debug info.
2366 (save_register_windowsi): Likewise.
2367
2368 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
2369
2370 * config/frv/frv-protos.h: Guard ifcvt functions declarations with
2371 BB_HEAD, not BLOCK_HEAD.
2372
2373 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
2374
2375 * config/frv/frv.c (frv_ifcvt_modify_insn): Don't leave alone
2376 scratch insns that set a register live at the join point.
2377
2378 2004-11-26 Kazu Hirata <kazu@cs.umass.edu>
2379
2380 * cse.c, tree-ssa-operands.c: Fix comment typos.
2381
2382 * tree-cfg.c (tree_split_edge): Speed up by using find_edge.
2383
2384 2004-11-26 James A. Morrison <phython@gcc.gnu.org>
2385
2386 PR target/18510
2387 * doc/extend.texi (SPARC VIS Built-in Functions): New section.
2388
2389 2004-11-26 Kazu Hirata <kazu@cs.umass.edu>
2390
2391 * cfgrtl.c (try_redirect_by_replacing_jump): Speed up the
2392 check that tests if all edges go to the same destination.
2393
2394 * bitmap.c (bitmap_find_bit): Speed up by traversing from
2395 head->first if that seems profitable.
2396
2397 2004-11-25 Jeff Law <law@redhat.com>
2398
2399 * timevar.def (TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI): New timevars.
2400 * tree-ssa-loop.c (pass_loop_init): Use TV_TREE_LOOP_INIT.
2401 (pass_loop_done): Use TV_TREE_LOOP_FINI.
2402
2403 2004-11-26 Alan Modra <amodra@bigpond.net.au>
2404
2405 PR rtl-optimization/16356
2406 * config/rs6000/rs6000.md (floatdisf2_internal2): Rewrite with
2407 separate output register and one less jump. Enable for powerpc64.
2408 (floatdisf2): Adjust for above.
2409
2410 2004-11-25 Bob Wilson <bob.wilson@acm.org>
2411
2412 * config/xtensa/xtensa.h (STARTFILE_SPEC): Add crt0.
2413 (GCC_DRIVER_HOST_INITIALIZATION): Define.
2414
2415 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
2416
2417 PR middle-end/17957
2418 * tree-complex.c (vector_inner_type): New variable moved from
2419 build_word_mode_vector_type.
2420 (vector_last_type): Likewise.
2421 (vector_last_nunits): Likewise.
2422 (build_word_mode_vector_type): Use the new variables.
2423 * Makefile.in (tree-complex.o): Add gt-tree-complex.h $(GGC_H).
2424 (GTFILES): Add tree-complex.c.
2425 (gt-tree-complex.h): New rule, add it to the rest of the gt-* rules.
2426
2427 2004-11-25 Bob Wilson <bob.wilson@acm.org>
2428
2429 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define
2430 __XTENSA_WINDOWED_ABI__.
2431
2432 2004-11-25 Richard Henderson <rth@redhat.com>
2433
2434 * dwarf2out.c (dwarf2out_stack_adjust): Add after_p argument. Save
2435 args_size adjustments for calls even with cfa as stack pointer.
2436 Search calls for stack adjustments after the insn is issued.
2437 (dwarf2out_frame_debug): Add after_p argument; pass it on.
2438 * dwarf2out.h (dwarf2out_frame_debug): Update to match.
2439 * final.c (final_start_function, final_scan_insn): Likewise.
2440
2441 2004-11-25 Richard Henderson <rth@redhat.com>
2442
2443 PR c++/6764
2444 * reload1.c (set_initial_eh_label_offset): New.
2445 (set_initial_label_offsets): Use it.
2446
2447 2004-11-25 Kaz Kojima <kkojima@gcc.gnu.org>
2448
2449 * config/sh/sh.c (sh_output_mi_thunk): Initialize bitmap obstacks
2450 before calling life_analysis and release them after.
2451
2452 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
2453
2454 * tree-ssa-forwprop.c (substitute_single_use_vars): Remove
2455 duplicate code.
2456
2457 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
2458
2459 * bitmap.h (BITMAP_XMALLOC): Use BITMAP_ALLOC and not
2460 BITMAP_OBSTACK_ALLOC.
2461 (BITMAP_XFREE): Use BITMAP_FREE and not BITMAP_OBSTACK_FREE.
2462
2463 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
2464
2465 parts of PR rtl-opt/18463, rtl-opt/17647
2466 * cse.c (canon_for_address): New function.
2467 (find_best_addr): Call canon_for_address before getting the
2468 address's cost when checking if we should take that address.
2469
2470 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
2471
2472 * tree-phinodes.c (add_phi_arg): Take "tree" instead of
2473 "tree *" as the first argument.
2474 * tree-flow.h: Update the prototype of add_phi_arg.
2475 * lambda-code.c, tree-cfg.c, tree-into-ssa.c,
2476 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
2477 tree-ssa-threadupdate.c, tree-ssa.c, tree-tailcall.c,
2478 tree-vectorizer.c: Update all call sites of add_phi_arg.
2479
2480 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
2481
2482 * bitmap.c (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
2483 * bitmap.h (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
2484 (BITMAP_XMALLOC): Forward to BITMAP_OBSTACK_ALLOC.
2485 (BITMAP_XFREE): Forward to BITMAP_OBSTACK_FREE.
2486
2487 2004-11-25 Andrew MacLeod <amacleod@redhat.com>
2488
2489 PR tree-optimization/18587
2490 * tree-flow-inline.h (mark_call_clobbered, mark_non_addressable): Flag
2491 call clobbered caches as invalid.
2492 * tree-ssa-operands.c (ssa_call_clobbered_cache_valid): New. Flag
2493 indicating whether the call clobbered operand cache is valid.
2494 (ssa_ro_call_cache_valid): New. Flag indicating whether the
2495 pure/const call operand cache is valid.
2496 (clobbered_v_may_defs, clobbered_vuses, ro_call_vuses): New. Cached
2497 list of operands for cached call virtual operands.
2498 (clobbered_aliased_loads, clobbered_aliased_stores,
2499 ro_call_aliased_load): New. flags caching whether alias bits are
2500 to be set in call stmt's.
2501 (fini_ssa_operands): Remove call operand caches if present.
2502 (get_expr_operands, get_asm_expr_operands,
2503 get_indirect_ref_operands): Pass stmt annotation to add_stmt_operand.
2504 (get_call_expr_operands): Add call clobbered variables first.
2505 (add_stmt_operand): Take stmt annotation rather than stmt as a param.
2506 (add_call_clobber_ops, add_call_read_ops): Use the call operand cache
2507 if it is valid, otherise fill the cache.
2508 * tree-ssa-operands.h (ssa_clobbered_cache_valid): Declare extern.
2509 * tree-flow.h (struct var_ann_d): Add in_vuse_list and
2510 in_v_may_def_list bits.
2511 * tree-ssa-operands.c (cleanup_v_may_defs): New. Clear the
2512 in_list bits for the v_may_def elements and empty the operand
2513 build array
2514 (finalize_ssa_vuses): Use cleanup_v_may_defs and remove redundant
2515 VUSES by checking the in_v_may_def_list bit.
2516 (append_v_may_def, append_vuse): Use the in_list bit rather than
2517 scanning the array for duplicates.
2518
2519 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
2520
2521 * config/s390/s390.c (s390_short_displacement): UNSPEC_GOTNTPOFF
2522 displacements are not short.
2523
2524 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
2525
2526 * config/s390/s390.c (legitimize_pic_address): Use s390_load_address
2527 to load addresses.
2528
2529 2004-11-25 Mark Mitchell <mark@codesourcery.com>
2530
2531 PR c++/18001
2532 * c-common.h (lvalue_use): Move here from c-ctypeck.c.
2533 (lvalue_or_else): Declare.
2534 * c-common.c (lvalue_or_else): Move here from c-typeck.c.
2535 * c-typeck.c (lvalue_use): Remove.
2536 (lvalue_or_else): Remove.
2537
2538 PR c++/18556
2539 * toplev.c (check_global_declarations): Set DECL_IGNORED_P on
2540 unemitted variables with static storage duration.
2541
2542 2004-11-25 Gerald Pfeifer <gerald@pfeifer.com>
2543
2544 * tree-cfg.c (tree_verify_flow_info): Do not terminate error()
2545 message with \n.
2546
2547 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
2548
2549 * config/rs6000/altivec.md (VIshort): New mode macro.
2550 (altivec_vaddubs, altivec_vadduhs, altivec_vadduws): Replace
2551 with ...
2552 (altivec_vaddu<VI_char>s): ... this.
2553 (altivec_vaddsbs, altivec_vaddshs, altivec_vaddsws): Replace
2554 with ...
2555 (altivec_vadds<VI_char>s): ... this.
2556 (altivec_vsububs, altivec_vsubuhs, altivec_vsubuws): Replace
2557 with ...
2558 (altivec_vsubu<VI_char>s): ... this.
2559 (altivec_vsubsbs, altivec_vsubshs, altivec_vsubsws): Replace
2560 with ...
2561 (altivec_vsubs<VI_char>s): ... this.
2562 (altivec_vavgub, altivec_vavguh, altivec_vavguw): Replace
2563 with ...
2564 (altivec_vavgu<VI_char>): ... this.
2565 (altivec_vavgsb, altivec_vavgsh, altivec_vavgsw): Replace
2566 with ...
2567 (altivec_vavgs<VI_char>): ... this.
2568 (altivec_vmsumubm, altivec_vmsumuhm): Replace with ...
2569 (altivec_vmsumu<VI_char>m): ... this.
2570 (altivec_vmsummbm, altivec_vmsummhm): Replace
2571 with ...
2572 (altivec_vmsumm<VI_char>m): ... this.
2573 (altivec_vandc): Remove.
2574 (*andc<mode>3): Renamed to ...
2575 (andc<mode>3): ... here. Swap operand 1 and 2 numbering.
2576 (altivec_vrlb, altivec_vrlh, altivec_vrlw): Replace
2577 with ...
2578 (altivec_vrl<VI_char>): ... this.
2579 (altivec_vslb, altivec_vslh, altivec_vslw): Replace
2580 with ...
2581 (altivec_vsl<VI_char>): ... this.
2582 (altivec_vsrb, altivec_vsrh, altivec_vsrw): Replace
2583 with ...
2584 (altivec_vsr<VI_char>): ... this.
2585 (altivec_vsrab, altivec_vsrah, altivec_vsraw): Replace
2586 with ...
2587 (altivec_vsra<VI_char>): ... this.
2588 (altivec_vsum4sbs, altivec_vsum4shs): Replace with ...
2589 (altivec_vsum4s<VI_char>s): ... this.
2590 (altivec_vperm_4si, altivec_vperm_8hi, altivec_vperm_16qi): Replace
2591 with ...
2592 (altivec_vperm_<mode>): ... this.
2593 (altivec_vsel_4sf): Rename to ...
2594 (altivec_vsel_v4sf): ... here.
2595 (altivec_vsel_4si, altivec_vsel_8hi, altivec_vsel_16qi): Replace
2596 with ...
2597 (altivec_vsel_<mode>): ... this.
2598 (altivec_vsldoi_4si, altivec_vsldoi_8hi,
2599 altivec_vsldoi_16qi): Rename to ...
2600 (altivec_vsldoi_v4si, altivec_vsldoi_v8hi,
2601 altivec_vsldoi_v16qi): ... here.
2602 (altivec_vsldoi_4sf): Rename to ...
2603 (altivec_vsldoi_v4sf): ... here.
2604 (altivec_predicate_v4si, altivec_predicate_v8hi,
2605 altivec_predicate_v16qi): Replace with ...
2606 (altivec_predicate_<mode>): ... this.
2607 (altivec_lvebx, altivec_lvehx, altivec_lvewx): Replace
2608 with ...
2609 (altivec_lve<VI_char>x): ... this.
2610 (altivec_stvebx, altivec_stvehx, altivec_stvewx): Replace
2611 with ...
2612 (altivec_stve<VI_char>x): ... this.
2613 (absv16qi2, absv8hi2, absv4si2): Replace
2614 with ...
2615 (abs<mode>2): ... this.
2616 (altivec_abss_v16qi, altivec_abss_v8hi, altivec_abss_v4si): Replace
2617 with ...
2618 (altivec_abss_<mode>): ... this.
2619 (vec_realign_load_v16qi, vec_realign_load_v8hi,
2620 vec_realign_load_v4si): Replace with ...
2621 (vec_realign_load_<mode>): ... this.
2622 * config/rs6000/rs6000.c (bdesc_3arg, bdesc_2arg): Update tweaked
2623 insn names.
2624 (rs6000_expand_ternop_builtin): Likewise.
2625
2626 2004-11-25 Andrew Haley <aph@redhat.com>
2627
2628 * gcc.c (process_command): Don't supply -v to linker.
2629
2630 2004-11-25 Joseph S. Myers <joseph@codesourcery.com>
2631
2632 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs
2633 instead of `%s' in diagnostic.
2634
2635 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
2636
2637 * basic-block.h (OBSTACK_ALLOC_REG_SET): Adjust.
2638 (FREE_REG_SET): Adjust.
2639 * bitmap.c (bitmap_obstack_free): Cope with NULL bitmap.
2640 * bitmap.h (BITMAP_OBSTACK_ALLOC): Rename to ...
2641 (BITMAP_ALLOC): ... here.
2642 (BITMAP_OBSTACK_FREE): Rename to ...
2643 (BITMAP_FREE): Don't check for NULL bitmap here.
2644 * tree-ssa-pre.c (value_insert_into_set_bitmap,
2645 bitmap_set_new): Use new names.
2646
2647 * bt-load.c (migrate_btr_defs): Remove unneeded NULL check.
2648 * df.c (df_free): Likewise.
2649 * ra-build.c (ra_build_free, ra_build_free_all): Likewise.
2650 * tree-ssa-loop-ivopts.c (set_use_iv_cost): Likewise.
2651
2652 * basic-block.h (OBSTACK_ALLOC_REG_SET): Rename to ...
2653 (ALLOC_REG_SET): ... here.
2654 (FREE_REG_SET): Adjust.
2655 (XMALLOC_REG_SET, XFREE_REG_SET): Remove.
2656 * bb-reorder.c (fix_crossing_conditional_branches): Adjust.
2657 * cfglayout.c (cfg_layout_duplicate_bb): Adjust.
2658 * cfgrtl.c (rtl_split_block, rtl_split_edge,
2659 safe_insert_insn_on_edge, cfg_layout_split_edge): Adjust.
2660 * flow.c (update_life_info, calculate_global_regs_live,
2661 allocate_bb_life_data, init_propagate_block_info): Adjust.
2662 * global.c (build_insn_chain): Adjust.
2663 * ifcvt.c (dead_or_predicable): Adjust.
2664 * loop-iv.c (simplify_using_initial_values): Adjust.
2665 * recog.c (peephole2_optimize): Adjust.
2666 * sched-deps.c (init_deps_global): Adjust.
2667
2668 2004-11-25 Ralf Corsepius <ralf.corsepius@rtems.org>
2669
2670 * config.gcc (avr-*-rtems*): Fix typo.
2671
2672 2004-11-25 J"orn Rennecke <joern.rennecke@st.com>
2673
2674 * sh.c (sh_output_mi_thunk): Do not call regset_release_memory.
2675
2676 2004-11-24 Jeff Law <law@redhat.com>
2677
2678 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Reduce
2679 the number of queries to random elements in the ai->written_vars
2680 bitmap.
2681
2682 2004-11-24 Roger Sayle <roger@eyesopen.com>
2683
2684 * config/i386/i386.c (override_options): Disable x87 fancy math
2685 intrinsics if -mfpmath= doesn't include 387 (default on x86_64).
2686
2687 2004-11-24 Roger Sayle <roger@eyesopen.com>
2688
2689 * configure.ac: Tweak test for HAVE_DECL_LDGETNAME to avoid a
2690 system header conflict on AIX 5.2.
2691 * configure: Regenerate.
2692
2693 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
2694
2695 * tree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx
2696 instead of calling phi_arg_from_edge.
2697
2698 * tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge
2699 with e->dest_idx.
2700
2701 2004-11-24 Ben Elliston <bje@au.ibm.com>
2702
2703 * config/i386/i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
2704 * config/i386/i386.c (i386_dwarf_output_addr_const): Likewise.
2705 * config/i386/i386-protos.h (i386_dwarf_output_addr_const):
2706 Likewise.
2707
2708 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2709
2710 * tree-sra.c (sra_walk_modify_expr): Handle RHS first, then LHS.
2711
2712 * tree-inline.c (copy_body_r): Explicitly copy a constant if the
2713 type will be remapped.
2714
2715 2004-11-24 Steven Bosscher <stevenb@suse.de>
2716
2717 * c-opts.c (c_common_post_options): Don't clear
2718 flag_inline_functions.
2719 * dojump.c (clear_pending_stack_adjust): Remove check on
2720 flag_inline_functions, it's always true.
2721 * config/alpha/alpha.md (movdi_er_maybe_g): Remove splitter
2722 that can never trigger.
2723 * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Don't look at
2724 flag_inline_trees, now that flag_inline_functions is never
2725 cleared.
2726 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Don't set
2727 flag_inline_functions at optimization levels greater than
2728 or equal to 3. This is already done by default.
2729
2730 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
2731
2732 * tree-outof-ssa.c (eliminate_build): Use g->e->dest_idx
2733 instead to find the PHI argument. Do not take I as an
2734 argument.
2735 (eliminate_phi): Adjust the call to eliminate_build. Do not
2736 take I as an argument.
2737 (rewrite_trees): Adjust the call to eliminate_phi.
2738
2739 2004-11-24 Richard Sandiford <rsandifo@redhat.com>
2740
2741 * optabs.h (force_expand_binop): Declare.
2742 * optabs.c (force_expand_binop): Export.
2743 * stmt.c (shift_return_value): Delete.
2744 (expand_return): Don't call it.
2745 * expr.h (shift_return_value): Declare.
2746 * calls.c (shift_returned_value): Delete in favor of...
2747 (shift_return_value): ...this new function. Leave the caller to check
2748 for non-BLKmode values passed in the msb of a register. Take said mode
2749 and a shift direction as argument. Operate on the hard function value,
2750 not a pseudo.
2751 (expand_call): Adjust accordingly.
2752 * function.c (expand_function_start): If a non-BLKmode return value
2753 is padded at the last significant end of the return register, use the
2754 return value's natural mode for the DECL_RESULT, not the mode of the
2755 padded register.
2756 (expand_function_end): Shift the same sort of return values left by
2757 the appropriate amount.
2758
2759 2004-11-24 Matt Austern <austern@apple.com>
2760
2761 * recog.c (recog_memoized_1): Remove.
2762 * recog.h (recog_memoized_1): Remove declaration.
2763 (recog_memoized): Change from macro to inline function.
2764
2765 2004-11-24 Devang Patel <dpatel@apple.com>
2766
2767 PR/18555
2768 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add isysroot.
2769 * config/darwin-c.c (darwin_register_frameworks): Use sysroot.
2770
2771 2004-11-24 Devang Patel <dpatel@apple.com>
2772
2773 * gcc.c (process_command): Supply -v to linker.
2774
2775 2004-11-24 David Edelsohn <edelsohn@gnu.org>
2776 Paolo Bonzini <bonzini@gnu.org>
2777
2778 * config/rs6000/rs6000.c (rs6000_return_in_memory): Allow Altivec
2779 vector modes without ALTIVEC_ABI. Use GCC vector instead of
2780 synthetic vector.
2781 (rs6000_pass_by_reference): Split conditional into pieces. Use
2782 GCC vector instead of synthetic vector.
2783
2784 2004-11-24 Aldy Hernandez <aldyh@redhat.com>
2785
2786 * tree.c (recompute_tree_invarant_for_addr_expr): The address of a
2787 thread-local variable is invariant.
2788
2789 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2790
2791 * tree-pretty-print.c (dump_generic_node, case POINTER_TYPE):
2792 Handle TYPE_REF_CAN_ALIAS_ALL.
2793 (print_declaration): Print array dimensions like dump_generic_node.
2794
2795 * fold-const.c (operand_equal_p): Remove kludge allowing ARG0 and
2796 ARG1 to be null; instead define OP_SAME and OP_SAME_NULL and use them.
2797
2798 2004-11-24 Nathan Sidwell <nathan@codesourcery.com>
2799
2800 * bitmap.c (INLINE): Do not define.
2801 (bitmap_elem_to_freelist, bitmap_element_free,
2802 bitmap_element_allocate, bitmap_clear, bitmap_element_zerop,
2803 bitmap_element_link, bitmap_find_bit): Use inline keyword/macro.
2804
2805 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
2806
2807 * tree-ssa-dom.c (cprop_into_successor_phis): Remove code to
2808 find the index of a PHI argument. Use e->dest_idx instead.
2809 Replace hint with index.
2810
2811 * tree-ssa-dom.c (cprop_into_successor_phis): Replace index
2812 with indx.
2813
2814 2004-11-24 Diego Novillo <dnovillo@redhat.com>
2815
2816 * tree-ssa-alias.c (merge_pointed_to_info): Fix comment
2817 regarding PT_MALLOC.
2818
2819 2004-11-24 Joseph Myers <joseph@codesourcery.com>
2820
2821 * config/i386/i386.c (optimization_options): Use
2822 SUBTARGET_OPTIMIZATION_OPTIONS.
2823 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define.
2824 (TARGET_SUBTARGET_DEFAULT): Don't include
2825 MASK_OMIT_LEAF_FRAME_POINTER.
2826
2827 2004-11-24 Mark Mitchell <mark@codesourcery.com>
2828
2829 * config/i386/sol2.h (X86_FILE_START_VERSION_DIRECTIVE):
2830 Define to false.
2831
2832 2004-11-24 Joseph Myers <joseph@codesourcery.com>
2833
2834 * config/i386/t-sol2-10 (MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES):
2835 Use amd64 instead of 64.
2836
2837 2004-11-24 Mark Mitchell <mark@codesourcery.com>
2838 Joseph Myers <joseph@codesourcery.com>
2839
2840 * crtstuff.c (IN_LIBGCC2): Define it.
2841 (EH_FRAME_SECTION_CONST): Check EH_TABLES_CAN_BE_READ_ONLY
2842 instead of HAVE_LD_RO_RW_SECTION_MIXING.
2843 * defaults.h (EH_TABLES_CAN_BE_READ_ONLY): New macro.
2844 * dwarf2out.c (named_section_eh_frame_section): Check
2845 EH_TABLES_CAN_BE_READ_ONLY.
2846 * except.c (default_exception_section): Likewise.
2847 * config/i386/sol2.h (EH_TABLES_CAN_BE_READ_ONLY): Define.
2848 * doc/tm.texi (EH_TABLES_CAN_BE_READ_ONLY): Document.
2849
2850 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
2851
2852 * tree-ssa-pre.c (phi_translate): Use find_edge to find the
2853 index of a PHI argument.
2854
2855 * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi): Use
2856 find_edge to find the index of a PHI argument.
2857
2858 2004-11-24 Steven Bosscher <stevenb@suse.de>
2859
2860 * expr.c (expand_expr_real_1): Remove cases for EXIT_BLOCK_EXPR
2861 and LABELED_BLOCK_EXPR.
2862 * gimplify.c (gimplify_labeled_block_expr): Remove.
2863 (gimplify_exit_block_expr): Remove.
2864 (gimplify_expr): Don't call them.
2865 * tree-inline.c (copy_body_r): Don't handle EXIT_BLOCK_EXPR
2866 and LABELED_BLOCK_EXPR.
2867 (estimate_num_insns_1): Likewise.
2868 (walk_tree): Likewise.
2869 * tree-pretty-print.c (dump_generic_node): Don't handle
2870 EXIT_BLOCK_EXPR and LABELED_BLOCK_EXPR.
2871 * tree.def (EXIT_BLOCK_EXPR): Moved to java-tree.def.
2872 (LABELED_BLOCK_EXPR): Likewise.
2873 * tree.h (LABELED_BLOCK_LABEL): Moved to java-tree.h.
2874 (LABELED_BLOCK_BODY): Likewise.
2875 (EXIT_BLOCK_LABELED_BLOCK): Likewise.
2876 (EXIT_BLOCK_RETURN): Removed.
2877
2878 2004-11-24 Steven Bosscher <stevenb@suse.de>
2879
2880 * cfgrtl.c (rtl_delete_block): Fix comment.
2881 * emit-rtl.c (remove_unnecessary_notes): Die if we see BLOCK_BEG
2882 or BLOCK_END insn notes.
2883 * jump.c (squeeze_notes): Likewise.
2884 * haifa-sched.c (reemit_notes): Don't "re-emit" EH_REGION_BEG and
2885 EH_REGION_END notes, we never have them to begin with.
2886 * sched-deps.c (sched_analyze_insn): When updating loop notes,
2887 verify that we have indeed only recorded loop notes.
2888 (sched_analyze): Die if we see EH_REGION_BEG or EH_REGION_END notes.
2889 Only record loop notes.
2890
2891 * cfgexpand.c (tree_expand_cfg): Fix comment.
2892
2893 * passes.c (rest_of_compilation): Don't do a second call to
2894 convert_from_eh_region_ranges from here, it's already called
2895 from cfgexpand.c.
2896 * except.c (resolve_fixup_regions): Remove.
2897 (remove_fixup_regions): Remove.
2898 (convert_from_eh_region_ranges_1): Remove.
2899 (convert_from_eh_region_ranges): Remove the case where EH is
2900 not already lowered at the tree level. We always lower there.
2901
2902 2004-11-24 Paolo Bonzini <bonzini@gnu.org>
2903
2904 PR c++/16882
2905 * tree.c (make_vector_type): Move qualifiers to the vector type,
2906 use the inner type's main variant and build a main variant for
2907 the vector type if necessary.
2908 (type_hash_eq): Check a vector type's TYPE_VECTOR_SUBPARTS.
2909
2910 2004-11-24 Eric Botcazou <ebotcazou@libertysurf.fr>
2911
2912 * target.h (late_rtl_prologue_epilogue): Remove.
2913 * target-def.h (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
2914 * system.h: Poison TARGET_LATE_RTL_PROLOGUE_EPILOGUE.
2915 * passes.c (rest_of_handle_prologue_epilogue): Remove and move
2916 remaining bits to...
2917 (rest_of_handle_flow2): ...here.
2918 (rest_of_compilation): Remove call to rest_of_handle_prologue_epilogue.
2919 * doc/tm.texi (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
2920
2921 2004-11-23 Mark Mitchell <mark@codesourcery.com>
2922
2923 * hwint.h (HOST_LONG_LONG_FORMAT): New macro. Use it throughout.
2924 * config/i386/xm-mingw32.h (HOST_LONG_LONG_FORMAT): Define.
2925 * doc/hostconfig.texi (HOST_LONG_LONG_FORMAT): Document.
2926
2927 2004-11-24 Daniel Jacobowitz <dan@codesourcery.com>
2928
2929 * config/i386/i386.c (override_options): Move
2930 SUBTARGET_OVERRIDE_OPTIONS before defaulting
2931 flag_omit_frame_pointer.
2932
2933 2004-11-23 Richard Henderson <rth@redhat.com>
2934
2935 * rtl.h (validate_subreg): Declare.
2936 * emit-rtl.c (validate_subreg): New.
2937 (gen_rtx_SUBREG): Use it.
2938 * simplify-rtx.c (simplify_subreg): Likewise.
2939 (simplify_gen_subreg): Likewise. Remove duplicate asserts.
2940 * expr.c (emit_move_insn_1): Tidy complex move code. Use memory
2941 fallback whenever gen_realpart/gen_imagpart would not be able to
2942 create SUBREGs.
2943
2944 2004-11-23 Richard Henderson <rth@redhat.com>
2945
2946 * expmed.c (extract_bit_field): Use simplify_gen_subreg instead of
2947 hard-coding avoiding calls to gen_rtx_SUBREG. Split complex return
2948 modes to CONCAT.
2949
2950 2004-11-23 Diego Novillo <dnovillo@redhat.com>
2951
2952 PR tree-optimization/18618
2953 * tree-into-ssa.c (DEF_VEC_MALLOC_P(basic_block)): Declare.
2954 (insert_phi_nodes_for): Change third argument to VEC(basic_block).
2955 * tree-ssa-dom.c (avail_exprs_stack): Change type to VEC(tree_on_heap).
2956 Update all users.
2957 (stmts_to_rescan): Likewise.
2958 (const_and_copies_stack): Likewise.
2959 (nonzero_vars_stack): Likewise.
2960 (vrp_variables_stack): Likewise.
2961
2962 2004-11-23 Richard Henderson <rth@redhat.com>
2963
2964 * cse.c (record_jump_cond_subreg): New.
2965 (record_jump_cond): Use it instead of gen_lowpart.
2966
2967 2004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
2968 Joseph Myers <joseph@codesourcery.com>
2969
2970 * config/sol2-c.c (solaris_register_pragmas): Use
2971 c_register_pragma_with_expansion.
2972 * config/sol2.h (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Define.
2973 * c-pragma.c (c_register_pragma): Update call to
2974 cpp_register_pragma.
2975 (c_register_pragma_with_expansion): New function.
2976 (init_pragma): Honor HANDLE_PRAGMA_PACK_WITH_EXPANSION.
2977 * c-pragma.h (c_register_pragma_with_expansion): New prototype.
2978 * doc/extend.texi (Solaris Pragmas): Mention macro expansion for
2979 #pragma align.
2980 * doc/tm.texi (c_register_pragma_with_expansion,
2981 HANDLE_PRAGMA_PACK_WITH_EXPANSION): Document.
2982
2983 2004-11-23 Richard Henderson <rth@redhat.com>
2984
2985 * combine.c (gen_lowpart_for_combine): Factor out mode of x as well
2986 as mode sizes into local temporaries. Unify failure path.
2987
2988 2004-11-23 Richard Henderson <rth@redhat.com>
2989
2990 * emit-rtl.c, rtl.h (subreg_hard_regno): Remove.
2991 * caller-save.c (mark_set_regs): Use subreg_regno instead.
2992 * final.c (alter_subreg): Likewise.
2993 * local-alloc.c (reg_is_born): Likewise.
2994
2995 2004-11-23 Richard Henderson <rth@redhat.com>
2996
2997 * simplify-rtx.c (simplify_subreg): Use subreg_regno_offset directly
2998 instead of using a SUBREG temporary.
2999
3000 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
3001
3002 * tree-cfg.c (tree_forwarder_block_p): Speed up by reordering
3003 two checks.
3004
3005 2004-11-23 Zack Weinberg <zack@codesourcery.com>
3006
3007 * function.h (struct function): Remove calls_longjmp.
3008 (current_function_calls_longjmp): Delete.
3009 * tree.h (ECF_LONGJMP): Delete.
3010 (ECF_SIBCALL, ECF_PURE, ECF_SP_DEPRESSED, ECF_ALWAYS_RETURN)
3011 (ECF_LIBCALL_BLOCK): Everybody slide down one.
3012 (ECF_CONST, ECF_NORETURN, ECF_SIBCALL): Clarify comments.
3013 * builtins.c (expand_builtin_longjmp): Don't set
3014 current_function_calls_longjmp.
3015 * calls.c (special_function_p): Mark longjmp and siglongjmp
3016 with ECF_NORETURN, not ECF_LONGJMP.
3017 (emit_call_1, expand_call, emit_library_call_value_1):
3018 Don't check for ECF_LONGJMP.
3019 * tree-cfg.c (make_exit_edges, is_ctrl_altering_stmt)
3020 (need_fake_edge_p): Likewise.
3021
3022 * config/avr/avr.h, config/ip2k/ip2k.h: Don't define NON_SAVING_SETJMP.
3023 * system.h: Poison NON_SAVING_SETJMP.
3024 * function.c (use_register_for_decl)
3025 * gcse.c (compute_hash_table_work, compute_store_table)
3026 * postreload-gcse.c (record_opr_changes)
3027 * reload.c (find_equiv_reg)
3028 * reload1.c (reload)
3029 * config/i386/i386.c (ix86_can_use_return_insn_p):
3030 Remove code conditional on NON_SAVING_SETJMP.
3031 * doc/tm.texi: Delete documentation of NON_SAVING_SETJMP.
3032
3033 * config/i386/sysv3.h: Delete file.
3034 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Delete.
3035
3036 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
3037
3038 * tree-vectorizer.c (vect_analyze_operations): Don't vectorize if
3039 the vectorization factor is greater than the iteration count.
3040 (vect_gen_niters_for_prolog_loop): No need to calculate min if the
3041 iteration count is known.
3042
3043 (vect_build_symbol_bound): Removed. Its functionality moved to
3044 vect_generate_tmps_on_preheader.
3045 (vect_generate_tmps_on_preheader): Moved content of
3046 vect_build_symbol_bound here instead of calling it. Changed some
3047 variables names.
3048
3049 (vect_build_loop_niters): We don't expect a new_bb to be generated -
3050 use gcc_assert.
3051 (vect_gen_niters_for_prolog_loop): Likewise.
3052 (vect_gen_niters_for_prolog_loo): Likewise.
3053
3054 (slpeel_make_loop_iterate_ntimes): Use buildN instead of build.
3055 (slpeel_add_loop_guard): Likewise.
3056 (slpeel_tree_peel_loop_to_edge): Likewise.
3057 (vect_do_peeling_for_alignment): Likewise.
3058
3059 (vect_get_first_index): Missing space.
3060
3061 2004-11-23 Ulrich Weigand <uweigand@de.ibm.com>
3062
3063 * config/s390/s390.md ("*iordi3"): Mark commutative.
3064 ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
3065
3066 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
3067
3068 * tree-phinode.c (resize_phi_node): Abort when LEN is strictly
3069 greater than PHI_ARG_CAPACITY.
3070 (reserve_phi_args_for_new_edge): Initialize the new PHI
3071 argument to NULL_TREE. Increment PHI_NUM_ARGS.
3072 (add_phi_arg): Add a PHI argument to the slot given by
3073 E->dest_idx.
3074 (remove_phi_arg_num): Do not write to PHI_ARG_EDGE.
3075 * tree-flow-inline (phi_arg_from_edge): Return E->dest_idx.
3076 * tree-ssa.c (ssa_redirect_edge): Check for a missing PHI
3077 argument by looking at PHI_ARG_DEF.
3078 (verify_phi_args): Check for a missing PHI argument. Remove
3079 the check for duplicate PHI arguments.
3080 * tree.h (PHI_ARG_EDGE): Redefine in terms of EDGE_PRED.
3081 (phi_arg_d): Remove e.
3082
3083 * tree-cfg.c (tree_try_redirect_by_replacing_jump): Speed up
3084 by restricting to the case with two outgoing edges.
3085
3086 2004-11-23 Andreas Krebbel <krebbel1@de.ibm.com>
3087
3088 * config/s390/s390.c (s390_backchain_string): Removed.
3089 (s390_return_addr_rtx, s390_back_chain_rtx, s390_frame_info)
3090 (s390_emit_prologue, s390_va_start, s390_gimplify_va_arg):
3091 Changed users of TARGET_BACKCHAIN, TARGET_NO_BACKCHAIN and
3092 TARGET_KERNEL_BACKCHAIN to reflect the new options.
3093 * config/s390/s390.h (MASK_BACKCHAIN, MASK_PACKED_STACK): New macros.
3094 (TARGET_KERNEL_BACKCHAIN): Removed.
3095 (TARGET_BACKCHAIN): Former triple state option change to a target flag.
3096 (TARGET_PACKED_STACK): New macro.
3097 (TARGET_SWITCHES): New switches added.
3098 (TARGET_OPTIONS): "backchain", "no-backchain" and "kernel-backchain"
3099 removed.
3100 (DYNAMIC_CHAIN_ADDRESS): Use TARGET_PACKED_STACK.
3101 * config/s390/s390.md ("allocate_stack", "restore_stack_block")
3102 ("save_stack_nonlocal", "restore_stack_nonlocal"): Modified to reflect
3103 the change in target switch semantics.
3104 * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Removed.
3105 (TARGET_DEFAULT): MASK_BACKCHAIN added.
3106 * doc/invoke.texi: Added documentation for the new/changed options.
3107
3108 2004-11-23 Uros Bizjak <uros@kss-loka.si>
3109
3110 PR rtl-optimization/18614
3111 * simplify-rtx.c (simplify_binary_operation): Do not
3112 simplify inner elements of constant arguments of
3113 VEC_CONCAT insn.
3114
3115 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
3116
3117 * gthr-solaris.h (__gthread_recursive_mutex_init_function): Use
3118 0 instead of NULL.
3119
3120 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
3121
3122 * tree-phinode.c (make_phi_node): Use a new variable,
3123 capacity, to receive the return value of ideal_phi_node_len.
3124
3125 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
3126
3127 * gthr-solaris.h (__gthread_recursive_mutex_t): New type.
3128 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
3129 __gthread_recursive_mutex_init_function.
3130 (__gthread_key_create): Properly cast -1.
3131 (__gthread_recursive_mutex_init_function): New function.
3132 (__gthread_recursive_mutex_lock): Rewrite.
3133 (__gthread_recursive_mutex_trylock): Likewise.
3134 (__gthread_recursive_mutex_unlock): Likewise.
3135
3136 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
3137
3138 * config/c4x/t-rtems: New.
3139 * config.gcc: Reflect having added c4x/t-rtems.
3140
3141 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
3142
3143 PR tree-opt/18403
3144 PR tree-opt/18505
3145 * tree-vectorizer.c (vect_create_data_ref_ptr): Use
3146 lang_hooks.types.type_for_size instead of integer_type_node for the
3147 type of ptr_update.
3148
3149 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
3150
3151 * config.gcc (h8300-*-rtems*): Use h8300/t-rtems.
3152
3153 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
3154
3155 * config/arm/t-rtems: New.
3156 * config.gcc: Reflect having added arm/t-rtems.
3157
3158 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
3159
3160 * tree-cfg.c (tree_execute_on_growing_pred): New.
3161 (tree_cfg_hooks): Add tree_execute_on_growing_pred.
3162 * tree-flow.h: Add a prototype for
3163 reserve_phi_args_for_new_edge.
3164 * tree-phinodes.c (reserve_phi_args_for_new_edge): New.
3165 (add_phi_arg): Don't resize a PHI array.
3166
3167 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
3168
3169 * config.gcc: Add avr-*-rtems*.
3170 * config/avr/t-rtems: New.
3171 * config/avr/rtems.h: New.
3172
3173 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
3174
3175 * df.c (dataflow_set_a_op_b): Remove reslt parameter, since it's
3176 always the same as op1. Use bitmap_ior_into and bitmap_and_into.
3177 Add comment to function.
3178
3179 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3180
3181 PR pch/14940
3182 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __hppa__.
3183
3184 PR rtl-optimization/14838
3185 * emit-rtl.c (get_first_nonnote_insn): Don't assume first insn is a
3186 note.
3187 (get_last_nonnote_insn): Don't assume last insn is a note.
3188
3189 2004-11-22 Roger Sayle <roger@eyesopen.com>
3190
3191 * fold-const.c (nondestructive_fold_binary_to_constant): Rename
3192 to fold_binary_to_constant.
3193 (nondestructive_fold_unary_to_constant): Likewise, rename to
3194 fold_unary_to_constant.
3195 (fold_relational_hi_lo): Update call to fold_binary_to_constant.
3196 * tree.h (nondestructive_fold_binary_to_constant): Update prototype.
3197 (nondestructive_fold_unary_to_constant): Likewise.
3198 * tree-ssa-ccp.c (ccp_fold): Update calls to fold_unary_to_constant
3199 and fold_binary_to_constant.
3200 * tree-ssa-loop-niter.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
3201 (inverse, number_of_iterations_cond): Replace uses of EXEC_BINARY
3202 and EXEC_UNARY with calls to fold_*nary_to_constant.
3203 * tree-ssa-loop-ivopts.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
3204 (idx_find_step): Replace uses of EXEC_BINARY with calls to
3205 fold_binary_to_constant.
3206
3207 2004-11-22 Nick Clifton <nickc@redhat.com>
3208
3209 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
3210 initialisation of 'e'.
3211
3212 2004-11-22 Roger Sayle <roger@eyesopen.com>
3213
3214 * config/i386/i386.h (TARGET_USE_FANCY_MATH_387): New macro.
3215 * config/i386/i386.c (override_options): Set MASK_NO_FANCY_MATH_387
3216 automatically for targets without TARGET_80387.
3217 * config/i386/i386.md (sqrtsf2, sqrtsf2_1, sqrtsf2_i387, sqrtdf2,
3218 sqrtdf2_1, sqrtdf2_i387, *sqrtextendsfdf2, sqrtxf2,
3219 *sqrtextenddfxf2, *sqrtextendsfxf2, fpremxf4, fmodsf3, fmoddf3,
3220 fmodxf3, fprem1xf4, dremsf3, dremdf3, dremxf3, *sindf2, *sinsf2,
3221 *sinextendsfdf2, *sinxf2, *cosdf2, *cossf2, *cosextendsfdf2,
3222 *cosxf2, sincosdf3, sincossf3, *sincosextendsfdf3, sincosxf3,
3223 *tandf3_1, tandf2, *tansf3_1, tansf2, *tanxf3_1, tanxf2,
3224 atan2df3_1, atan2df3, atandf2, atan2sf3_1, atan2sf3, atansf2,
3225 atan2xf3_1, atan2xf3, atanxf2, asindf2, asinsf2, asinxf2,
3226 acosdf2, acossf2, acosxf2, fyl2x_xf3, logsf2, logdf2, logxf2,
3227 log10sf2, log10df2, log10xf2, log2sf2, log2df2, log2xf2,
3228 fyl2xp1_xf3, log1psf2, log1pdf2, log1pxf2, *fxtractxf3, logbsf2,
3229 logbdf2, logbxf2, ilogbsi2, *f2xm1xf2, *fscalexf4, expsf2,
3230 expdf2, expxf2, exp10sf2, exp10df2, exp10xf2, exp2sf2, exp2df2,
3231 exp2xf2, expm1df2, expm1sf2, expm1xf2, frndintxf2, rintdf2,
3232 rintsf2, rintxf2, frndintxf2_floor, floordf2, floorsf2,
3233 floorxf2, frndintxf2_ceil, ceildf2, ceilsf2, ceilxf2,
3234 frndintxf2_trunc, btruncdf2, btruncsf2, btruncxf2,
3235 frndintxf2_mask_pm, nearbyintdf2, nearbyintsf2, nearbyintxf2):
3236 Simplify conditionals using TARGET_USE_FANCY_MATH_387.
3237
3238 2004-11-22 Dale Johannesen <dalej@apple.com>
3239
3240 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Conditionalize
3241 properly and comment.
3242
3243 2004-11-22 James A. Morrison <phython@gcc.gnu.org
3244
3245 * config/sparc/sparc.c: Include insn-codes.h and langhooks.h.
3246 (sparc_init_builtins): New function.
3247 (sparc_init_vis_builtins): Create builtin functions for VIS
3248 instructions.
3249 (sparc_expand_builtin): Expand builtin functions for VIS instructions.
3250 (TARGET_INIT_BUILTINS): Define to sparc_init_builtins.
3251 (TARGET_EXPAND_BUILTIN): Define to sparc_expand_builtin.
3252 (def_builtin): New macro for creating builtin functions.
3253 (P): New mode macro for pointer types.
3254 (UNSPEC_FPACK16, UNSPEC_FPACK32, UNSPEC_FPACKFIX, UNSPEC_FEXPAND,
3255 UNSPEC_FPMERGE, UNSPEC_MUL16AL, UNSPEC_MUL8UL, UNSPEC_MULDUL,
3256 UNSPEC_ALIGNDATA, UNSPEC_ALIGNADDR, UNSPEC_PDIST): New constants.
3257 (fpack16_vis, fpackfix_vis, fpack32_vis, fexpand_vis, fpmerge_vis,
3258 fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
3259 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis, pdist_vis,
3260 faligndata<V64:mode>_vis, alignaddr<P:mode>_vis): New patterns.
3261
3262 2004-11-22 Devang Patel <dpatel@apple.com>
3263
3264 * tree-if-conv.c (clean_predicate_lists): Clean all basic blocks.
3265
3266 2004-11-22 Devang Patel <dpatel@apple.com>
3267
3268 * tree-if-conv.c (if_convertable_phi_p): Rename to ...
3269 (if_convertible_phi_p): ... new name.
3270 (if_convertable_modify_expr_p): Rename to ...
3271 (if_convertible_modify_expr_p): ... new name.
3272 (if_convertable_stmt_p): Rename to ...
3273 (if_convertible_stmt_p): ... new name.
3274 (if_convertable_bb_p): Rename to ...
3275 (if_convertible_bb_p): ... new name.
3276 (if_convertable_loop_p): Rename to ...
3277 (if_convertible_loop_p): ... new name.
3278
3279 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
3280
3281 PR target/18444
3282 * configure.ac (threading): Accept 'posix95'.
3283 * configure: Regenerate.
3284 * config.gcc (i[34567]86-*-solaris2*): On Solaris up to 2.6,
3285 include sol26.h and default to posix95 threads if have_pthread_h.
3286 (sparc-*-solaris2*): Likewise.
3287 * gthr.h: Include gthr-posix95.h if _PTHREADS95 is defined.
3288 * gthr-posix95.h: New file.
3289 * config/sol26.h: New file.
3290 * doc/install.texi (--enable-threads): Document 'posix95'.
3291
3292 2004-11-23 Ben Elliston <bje@au.ibm.com>
3293
3294 * pointer-set.h (pointer_set_contains): Remove.
3295 * pointer-set.c (pointer_set_contains): Likewise.
3296
3297 2004-11-22 Dale Johannesen <dalej@apple.com>
3298
3299 * calls.c (expand_call): Do not call preserve_temp_slots.
3300
3301 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
3302
3303 * tree-flow.h: Remove the prototype for remove_phi_arg.
3304 Add a prototype for remove_phi_args.
3305 * tree-phinodes.c (remove_phi_arg): Remove.
3306 (remove_phi_args): New.
3307 * tree-ssa.c (ssa_remove_edge): Call remove_phi_args instead
3308 of remove_phi_arg.
3309
3310 * cfg.c (unchecked_make_edge): Call execute_on_growing_pred
3311 after making an edge.
3312 (remove_edge): Call execute_on_shrinking_pred before removing
3313 an edge.
3314 (redirect_edge_succ): Call execute_on_growing_pred and
3315 execute_on_shrinking_pred.
3316 * cfghooks.c (execute_on_growing_pred): New.
3317 (execute_on_shrinking_pred): Likewise.
3318 * cfghooks.h (cfg_hooks): Add execute_on_growing_pred and
3319 execute_on_shrinking_pred.
3320 Add prototypes for execute_on_growing_pred and
3321 execute_on_shrinking_pred.
3322 * cfgrtl.c (rtl_cfg_hooks): Add NULL hooks to
3323 execute_on_growing_pred and execute_on_shrinking_pred.
3324 (cfg_layout_rtl_cfg_hook): Likewise.
3325 * tree-cfg.c (tree_cfg_hooks): Likewise.
3326
3327 * tree-cfg.c (tree_execute_on_shrinking_pred): New.
3328 (tree_cfg_hooks): Use it.
3329 * tree-ssa.c (ssa_remove_edge): Don't call remove_phi_args.
3330 (ssa_redirect_edge): Don't call remove_phi_arg_num.
3331
3332 * tree-phinodes.c (remove_phi_arg_num): Make it static.
3333 * tree-flow.h: Remove the corresponding prototype.
3334
3335 * tree-ssa.c (ssa_remove_edge): Remove.
3336 * tree-flow.h: Remove the corresponding prototype.
3337 * tree-cfg.c: Replace ssa_remove_edge with remove_edge.
3338 * basic-block.h: Likewise.
3339 * tree-if-conv.c: Likewise.
3340 * tree-ssa-threadupdate.c: Likewise.
3341
3342 2004-11-23 Ben Elliston <bje@au.ibm.com>
3343
3344 * doc/cfg.texi (Maintaining the CFG): Use @ftable instead of
3345 @table to list the BSI methods. Use individual @findex directives
3346 instead of one with a comma-separated list of index entries.
3347
3348 2004-11-22 Zdenek Dvorak <dvorakz@suse.cz>
3349
3350 PR tree-optimization/18529
3351 * fold-const.c (fold_to_nonsharp_ineq_using_bound): New function.
3352 (simple_operand_p): Use STRIP_NOPS. Consider SSA names simple.
3353 (fold): Call fold_to_nonsharp_ineq_using_bound.
3354 * tree-ssa-loop-niter.c (simplify_replace_tree): New function.
3355 (number_of_iterations_cond): Fold the expressions before futher
3356 processing.
3357 (tree_simplify_using_condition): Handle case when cond or expr is
3358 an EQ_EXPR specially.
3359
3360 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
3361
3362 * tree-ssa.c (verify_ssa): SSA_OP_ALL_USES should be
3363 SSA_OP_ALL_USES | SSA_OP_ALL_KILLS for verification purposes.
3364
3365 2004-11-22 David Edelsohn <edelsohn@gnu.org>
3366 Fariborz Jahanian <fjahanian@apple.com>
3367
3368 * config/rs6000/rs6000.c (rs6000_return_in_memory): Test
3369 TARGET_ALTIVEC_ABI.
3370 (function_arg_boundary): Align 8 to 16 byte vectors like SPE.
3371 Align 16 byte and larger vectors like Altivec.
3372 (function_arg_advance): Pass any 16 byte vector like Altivec vector.
3373 (function_arg): Same.
3374 (rs6000_pass_by_references): Test TARGET_ALTIVEC_ABI.
3375
3376 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
3377
3378 PR tree-opt/18572
3379 * tree-sra.c (scalarize_init): Unshare the rhs before gimplifying
3380 it.
3381
3382 2004-11-22 Richard Henderson <rth@redhat.com>
3383
3384 * function.c (assign_parm_setup_block): Revert 11-13 change to
3385 forcably re-mode a (possibly BLKmode) hard register.
3386
3387 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
3388
3389 * config/sparc/sparc.c (mem_min_alignment): Check MEM_ALIGN.
3390
3391 2004-11-22 David Edelsohn <edelsohn@gnu.org>
3392
3393 * config/rs6000/power4.md: Remove delay between dispatch and issue
3394 associated with dispatch group slots 3 and 4.
3395 * config/rs6000/power5.md: Same.
3396
3397 2004-11-21 Jeff Law <law@redhat.com>
3398
3399 * cfg.c (cached_make_edge): Use find_edge rather than an inlined
3400 variant.
3401 * cfgbuild.c (make_edges): Likewise.
3402 * cfghooks.c (can_duplicate_block_p): Likewise.
3403 * cfgloop.c (loop_latch_edge): Likewise.
3404 * cfgloopmanip.c (force_single_succ_latches): Likewise.
3405 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
3406 * predict.c (predict_loops, propagate_freq): Likewise.
3407 * tracer.c (tail_duplicate): Likewise.
3408 * tree-cfg.c (disband_implicit_edges): Likewise.
3409 (tree_forwarder_block_p, tree_flow_call_edges_add): Likewise.
3410
3411 2004-11-22 Nick Clifton <nickc@redhat.com>
3412
3413 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
3414 initialisation of 'e'.
3415
3416 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
3417
3418 PR rtl-optimization/18599
3419 * regrename.c (copyprop_hardreg_forward): Speed up by putting
3420 BB_VISITED flags on basic blocks as we process them.
3421
3422 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
3423
3424 PR target/18531
3425 * config/rs6000/altivec.md (VI_char): New mode attribute.
3426 (addv16qi3, addv8hi3, addv4ai3): Replace with ...
3427 (add<mode>3): ... this.
3428 (subv16qi3, subv8hi3, subv4ai3): Replace with ...
3429 (sub<mode>3): ... this.
3430 (smaxv16qi3, smaxv8hi3, smaxv4ai3): Replace with ...
3431 (smax<mode>3): ... this.
3432 (sminv16qi3, sminv8hi3, sminv4ai3): Replace with ...
3433 (smin<mode>3): ... this.
3434 (umaxv16qi3, umaxv8hi3, umaxv4ai3): Replace with ...
3435 (umax<mode>3): ... this.
3436 (uminv16qi3, uminv8hi3, uminv4ai3): Replace with ...
3437 (umin<mode>3): ... this.
3438 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
3439 (and<mode>3): ... this.
3440 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
3441 (ior<mode>3): ... this.
3442 (xorv16qi3, xorv8hi3, xorv4ai3): Replace with ...
3443 (xor<mode>3): ... this.
3444 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
3445 (and<mode>3): ... this.
3446 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
3447 (ior<mode>3): ... this.
3448 (altivec_vnor): Replace with ...
3449 (altivec_nor<mode>): ... this.
3450 (one_cmplv16qi2, one_cmplv8hi2, one_complv4ai2): Replace with ...
3451 (one_cmpl<mode>2): ... this.
3452 (altivec_vandc): New expander.
3453 (*andc<mode>3): New insn.
3454 * config/rs6000/rs6000.c (bdesc_2arg): Adjust for new insn names.
3455
3456 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
3457
3458 PR tree-opt/18536
3459 * tree-vectorizer.c (make_loop_iterate_ntimes): Use type of niters when
3460 creating iv instead of integer_type.
3461 (vect_build_loop_niters): Remove redundant code.
3462 (vect_transform_loop_bound): Removed (duplicates functionality of
3463 make_loop_iterate_ntimes.
3464 (vect_gen_niters_for_prolog_loop): Add documentation. Call
3465 lang_hooks.types.type_for_size to create a type of the required size.
3466 Use that type instead of integer_type. Remove redundant code.
3467 (vect_update_niters_after_peeling): Use type of niters instead of
3468 integer_type.
3469 (vect_transform_loop): Unify handling of known and unknown loop bound
3470 cases. Call make_loop_iterate_ntimes instead of
3471 vect_transform_loop_bound.
3472
3473 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
3474
3475 PR target/18217
3476 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Move darwin-fallback.c to
3477 (LIB2ADDEH): Here.
3478
3479 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
3480
3481 PR tree-opt/18544
3482 * tree-vectorizer.c (vect_analyze_data_refs): Fail if memtag not found.
3483
3484 2004-11-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3485
3486 * config.gcc: Use t-slibgcc-elf to build libgcc_s.so on
3487 m32r*linux.
3488 * config/m32r/t-linux (SHLIB_MAPFILES): Override to use
3489 m32r/libgcc-glibc.ver.
3490 * config/m32r/libgcc-glibc.ver: Add New file.
3491
3492 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
3493
3494 * bitmap.h (struct bitmap_obstack): New obstack type.
3495 (struct bitmap_head_def): Replace using_obstack with obstack
3496 pointer.
3497 (bitmap_default_obstack): New.
3498 (bitmap_initialize): Make inline, does not do allocation.
3499 (bitmap_release_memory): Remove.
3500 (bitmap_obstack_initialize, bitmap_obstack_release): Declare.
3501 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
3502 bitmap_obstack_free, bitmap_malloc_free): Declare.
3503 (BITMAP_OBSTACK_ALLOC, BITMAP_GGC_ALLOC, BITMAP_XMALLOC): Adjust.
3504 (BITMAP_FREE): Replace with ...
3505 (BITMAP_OBSTACK_FREE): ... this.
3506 (BITMAP_XFREE): Adjust.
3507 (BITMAP_INIT_ONCE): Remove.
3508 * bitmap.c (bitmap_obstack, bitmap_obstack_init, bitmap_free: Remove.
3509 (bitmap_default_obstack): New.
3510 (bitmap_elem_to_freelist): Adjust.
3511 (bitmap_element_allocate): Adjust. Break initialization into ...
3512 (bitmap_obstack_initialize): ... here.
3513 (bitmap_release_memory): Replace with ...
3514 (bitmap_obstack_release): ... this.
3515 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
3516 bitmap_obstack_free, bitmap_malloc_free): New.
3517 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Use
3518 bitmap_initialize.
3519 (bitmap_initialize): Move to bitmap.h.
3520 * gengtype.c (open_base_files): Add obstack.h to ifiles.
3521 * Makefile.in (BASIC_BLOCK_H, REGS_H): Add obstack.h.
3522 * basic-block.h (INIT_REG_SET): Allocate from reg_obstack.
3523 (INITIALIZE_REG_SET): Remove.
3524 (FREE_REG_SET): Use BITMAP_OBSTACK_FREE.
3525 (INIT_ONCE_REG_SET, MAX_REGNO_REG_SET): Remove.
3526 (flow_obstack): Do not declare.
3527 (reg_obstack): Declare.
3528 * regs.h: Include obstack.h.
3529 * tree-optimize.c (tree_rest_of_compilation): Initialize and
3530 release bitmap obstack here.
3531 * bb-reorder.c: #include regs, not basic-block.
3532 (fix_crossing_conditional_branches): Allocate regsets from
3533 reg_obstack.
3534 * bt-load.c: Do not inlude bitmap.h, sbitmap.h, basic-block.h or
3535 obstack.h.
3536 * caller-save.c: Include regs.h earlier.
3537 * cfg.c: Do not include basic-block.h or obstack.h.
3538 (reg_obstack): Define.
3539 * cfganal.c: Include obstack.h
3540 * cfgcleanyp.c: Do not include basic-block.h. Include regs.h
3541 earlier.
3542 * cfglayout.c: Do not include obstack.h.
3543 (flow_obstack): Remove declaration.
3544 (cfg_layout_duplicate_bb): Use reg_obstack.
3545 * cfgloop.c, cfgloopanal.c, cfgloopmanip.c: Include obstack.h.
3546 * cfgrtl.c (rtl_split_block): Use reg_obstack.
3547 (force_nonfallthru_and_redirect, rtl_split_edge): Likewise.
3548 (safe_insert_insn_on_edge): Use OBSTACK_ALLOC_REG_SET, adjust.
3549 (cfg_layout_split_edge): Use reg_obstack.
3550 * cse.c: Include regs.h earlier.
3551 * ddg.c: Do not include basic-block.h.
3552 * dominance.c: Inlude obstack.h.
3553 * flow.c (update_life_info): Use OBSTACK_ALLOC_REG_SET, adjust.
3554 (calculate_global_regs_live): Likewise.
3555 (allocate_bb_life_data): Use reg_obstack.
3556 (init_propagate_block_info): Use OBSTACK_ALLOC_REGSET.
3557 * global.c: Do not include basic-block.h.
3558 (build_insn_chain): Use OBSTACK_ALLOC_REG_SET, adjust.
3559 * graph.c: Include obstack.h.
3560 * haifa-sched.c: Do not include basic-block.h.
3561 * ifcvt.c: Use OBSTACK_ALLOC_REG_SET, adjust.
3562 * local-alloc.c: Do not include basic-block.h.
3563 * loop-init.c, loop-invariant.c: Include obstack.h.
3564 * loop-iv.c: Likewise.
3565 (simplify_using_initial_values): Use OBSTACK_ALLOC_REG_SET,
3566 adjust.
3567 * loop-unroll.c, loop-unswitch.c: Inlude obstack.h.
3568 * modulo-sched.c: Do not include basic-block.h.
3569 * passes.c (rest_of_handle_final): Do not call
3570 regset_release_memory.
3571 * ra-debug.c: Include regs.h earlier. Do not include
3572 basic-block.h.
3573 * recog.c (peephole2_optimize): Use OBSTACK_ALLOC_REG_SET, adjust.
3574 * regclass.c (init_reg_sets): Do not call INIT_ONCE_REG_SET.
3575 (allocate_reg_info): Do not call MAX_REGNO_REG_SET.
3576 (regset_release_memory): Remove.
3577 * resource.c: Do not include basic-block.h.
3578 * rtlanal.c: Do not include basic-block.h.
3579 * sbitmap.c: Include obstack.h.
3580 * sched-deps.c: Do not include basic-block.h.
3581 (reg_pending_sets_head, reg_pending_clobbers_head,
3582 reg_pending_uses_head): Remove.
3583 (init_deps_global): Use OBSTACK_ALLOC_REG_SET.
3584 * sched-ebb.c: Do not include basic-block.h.
3585 * sched-rgn.c: Likewise.
3586 * tree-if-conv.c (get_loop_body_in_if_conv_order): Use
3587 BITMAP_XFREE.
3588 * tree-outof-ssa.c (perform_edge_inserts): Use BITMAP_XFREE.
3589 * tree-sra.c (decide_instantiations): Adjust bitmap
3590 initialization.
3591 * tree-ssa-dce.c: Include obstack.h.
3592 * tree-ssa-pre.c (grand_bitmap_obstack): Make a bitmap_obstack.
3593 (value_insert_into_set_bitmap): Remove useless bitmap_clear.
3594 (bitmap_set_new): Likewise.
3595 (init_pre): Initialize bitmap obstack.
3596 (fini_pre): Release bitmap obstack.
3597 * tree-ssanames.c (ssa_names_to_rewrite): Make static.
3598 (marked_for_rewrite_p): ssa_names_to_rewrite is never NULL.
3599 (mark_for_rewrite, unmark_for_rewrite): Likewise.
3600 (marked_ssa_names): Likewise.
3601 (init_ssanames): Use BITMAP_XMALLOC.
3602 (fini_ssanames): Use BITMAP_XFREE.
3603 * web.c: Include obstack.h
3604
3605 2004-11-22 Nick Clifton <nickc@redhat.com>
3606
3607 * sbitmap.c (sbitmap_union_of_preds): Set 'e' to the next edge
3608 predecessor in the first for-loop.
3609
3610 2004-11-21 Stan Shebs <shebs@apple.com>
3611
3612 * config/rs6000/rs6000.c: (rs6000_darwin64_function_arg): Add
3613 UNION_TYPE case.
3614 (function_arg): Move darwin test up, sniff mode first for
3615 efficiency, test for union type.
3616
3617 2004-11-21 Dale Johannesen <dalej@apple.com>
3618
3619 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
3620
3621 2004-11-21 Jeff Law <law@redhat.com>
3622
3623 * tree-ssa.c (verify_use): Fix comment.
3624 (verify_phi_args): Check that the number of incoming edges matches
3625 the number of PHI arguments. Check that each PHI argument is
3626 either an SSA_NAME or an invariant. Coalesce tests for PHIs for
3627 dead or duplicated edges. Clear e->aux earlier and avoid separate
3628 loop to clear e->aux and test for missed edges.
3629 (verify_ssa): Remove first walk over statements. Move checking
3630 of PHI args into verify_phi_args. Move checking of statements
3631 with aliased stores and V_MAY_DEFS into the remaining loop over
3632 the statements. Register defs by walking through the formal
3633 SSA_NAME table.
3634
3635 2004-11-21 Roger Sayle <roger@eyesopen.com>
3636
3637 PR middle-end/18520
3638 * dojump.c (compare_from_rtx): Clarify mode argument in function
3639 description. Correct order of mode/cmp_mode arguments in call to
3640 simplify_relational_operation. Check "tem" for COMPARISON_P.
3641
3642 2004-11-21 Paolo Bonzini <bonzini@gnu.org>
3643 David Edelsohn <edelsohn@gnu.org>
3644
3645 PR target/17836
3646 * config/rs6000/rs6000.c (rs6000_return_in_memory): Return
3647 synthetic vectors in memory.
3648 (function_arg_boundary): Align large synthetic vectors.
3649 (rs6000_pass_by_reference): Pass synthetic vectors in memory.
3650
3651 2004-11-21 Jeff Law <law@redhat.com>
3652
3653 * cfg.c (update_bb_profile_for_threading): Do not rescale the
3654 successor probabilities if they are not going to change. Pull
3655 division out of loop if we do need to rescale successor probabilities.
3656
3657 * tree-ssa-threadupdate.c (redirection_data_hash): Use the
3658 index of the destination block for the hash value rather than
3659 hashing a pointer.
3660
3661 2004-11-20 Joseph S. Myers <joseph@codesourcery.com>
3662
3663 * c-typeck.c (build_array_ref): Don't check for index == 0. Make
3664 checks for neither argument being an array or pointer (swapping
3665 the arguments if necessary), the array argument being a pointer to
3666 or array of functions and for -Wchar-subscripts warnings upfront.
3667
3668 2004-11-20 Jeff Law <law@redhat.com>
3669
3670 * regrename.c (copyprop_hardreg_forward): Only search for a
3671 previously processed block if the current block only has one
3672 predecessor.
3673
3674 2004-11-20 Kazu Hirata <kazu@cs.umass.edu>
3675
3676 * tree-ssa-threadupdate.c, tree-vectorizer.c: Fix comment
3677 typos.
3678 * config/arm/arm.c: Follow spelling conventions.
3679
3680 2004-11-20 Richard Earnshaw <rearnsha@arm.com>
3681
3682 * arm.c (arm_override_options): Use arm_ld_sched rather than testing
3683 a bit in tune_flags.
3684 (const_double_needs_minipool): Likewise. Split most of the code out
3685 into ...
3686 (arm_const_double_inline_cost): ... new function here.
3687 * arm-protos.h (arm_const_double_inline_cost): Add prototype.
3688 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Add D[abc] constraints for double-
3689 word constants of length 2, 3 and 4 insns respectively.
3690 (CONSTRAINT_LEN): The 'D' prefix is a 2-letter constraint.
3691 * arm.md (arm_movdi, movdf_soft_insn): Add alternatives for D[abc]
3692 constraints. Set insn lenghts accordingly.
3693
3694 2004-11-19 Jeff Law <law@redhat.com>
3695
3696 * tree-ssa-threadupdate.c: Replace REDIRECTION_DATA varray with
3697 a hash table. Extensive modifications throughout to support
3698 that change.
3699 (struct el): New.
3700 (struct local_info): New.
3701 (struct redirection_data): Add new INCOMING_EDGES and DO_NOT_DUPLICATE
3702 fields.
3703 (redirection_data): Now a hashtable.
3704 (redirection_data_hash, redirection_data_eq): New.
3705 (lookup_redirection_data, create_duplicates): New.
3706 (create_edge_and_update_destionation_phis): New.
3707 (fixup_template_block, redirect_edges): New.
3708 (thread_block): Use hash table traversals instead of loops over
3709 varray entries or incoming edge vectors.
3710
3711 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
3712
3713 * basic-block.h (edge_def): Add dest_idx.
3714 * cfg.c (unchecked_make_edge): Initialize dest_idx.
3715 (remove_edge): Simplify the disconnection of an edge from its
3716 destination.
3717 (redirect_edge_succ): Likewise.
3718 * cfghooks.c (verify_flow_info): Check the consistency of
3719 dest_idx for each edge.
3720
3721 2004-11-19 Aldy Hernandez <aldyh@redhat.com>
3722
3723 * simplify-rtx.c (simplify_ternary_operation): Use
3724 gen_int_mode.
3725
3726 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
3727
3728 * tree-cfg.c (reinstall_phi_args): New.
3729 (tree_split_edge): Use it after redirecting an edge. Don't
3730 modify PHI_ARG_EDGE.
3731
3732 2004-11-19 Andreas Tobler <a.tobler@schweiz.ch>
3733
3734 * tree-vectorizer.c (slpeel_verify_cfg_after_peeling): Define only
3735 if checking is enabled.
3736
3737 2004-11-19 Joseph S. Myers <joseph@codesourcery.com>
3738
3739 * c-decl.c (push_scope): Remove "\n" from end of diagnostic for
3740 too many nested scopes.
3741
3742 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
3743
3744 PR tree-opt/18181
3745 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Peeling scheme
3746 changed to suppoer uses-after-loop and to void creating flow paths
3747 that shouldn't exist.
3748 (slpeel_update_phi_nodes_for_guard): Takes additional two arguments.
3749 Modified to fit the new peeling scheme. Avoid quadratic behavior.
3750 (slpeel_add_loop_guard): Takes additional argument.
3751 (slpeel_verify_cfg_after_peeling): New function.
3752 (vect_update_ivs_after_vectorizer): Takes additional argument. Updated
3753 documentation. Use 'exit-bb' instead of creating 'new-bb'.
3754 (rename_variables_in_bb): Don't update phis for BBs out of loop, to fit
3755 the new peeling scheme.
3756 (copy_phi_nodes): Function removed. Its functionality moved to
3757 update_phis_for_duplicate_loop.
3758 (slpeel_update_phis_for_duplicate_loop): Functionality of copy_phi_nodes
3759 moved here. Added documentation. Modified to fit the new peeling scheme.
3760 (slpeel_make_loop_iterate_ntimes): Setting loop->single_exit not not
3761 needed - done in slpeel_tree_peel_loop_to_edge.
3762 (slpeel_tree_duplicate_loop_to_edge_cfg): Debug printouts compacted.
3763 (vect_do_peeling_for_loop_bound): Add documentation. Call
3764 slpeel_verify_cfg_after_peeling. Call vect_update_ivs_after_vectorizer
3765 with additional argument.
3766 (vect_do_peeling_for_alignment): Call slpeel_verify_cfg_after_peeling.
3767
3768 (vect_finish_stmt_generation): Avoid 80 column oveflow.
3769
3770 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
3771
3772 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Last two
3773 arguments removed.
3774 (slpeel_tree_peel_loop_to_edge): Call slpeel_make_loop_iterate_ntimes
3775 without last two arguments. Update single_exit of loops.
3776 (vect_update_niters_after_peeling): Removed. Its functionality was
3777 moved to vect_do_peeling_for_alignment.
3778 (vect_do_peeling_for_loop_bound): New name for function previously
3779 called vect_transform_for_unknown_loop_bound.
3780 (vect_transform_loop_bound): Call slpeel_make_loop_iterate_ntimes
3781 instead of code that duplicates the same functionality.
3782 (vect_do_peeling_for_alignment): Functionality of
3783 vect_update_niters_after_peeling moved here.
3784 (vect_transform_loop): Unify call to vect_do_peeling_for_loop_bound -
3785 previously named vect_transform_for_unknown_loop_bound - for both known
3786 and unknown loop bound cases.
3787
3788 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
3789
3790 * tree-vectorizer.c (slpeel_can_duplicate_loop_p): New name for function
3791 previously called verify_loop_for_duplication. All conditions compacted
3792 into one compound condition. Removed debug dumps.
3793 (vect_analyze_loop_with_symbolic_num_of_iters): Removed. Some of the
3794 functionality moved to vect_can_advance_ivs_p, and some to
3795 vect_analyze_loop_form.
3796 (vect_can_advance_ivs_p): New function. Contains functionality that was
3797 taken out of vect_analyze_loop_with_symbolic_num_of_iters.
3798 (slpeel_tree_peel_loop_to_edge): Call slpeel_can_duplicate_loop_p.
3799 (vect_analyze_operations): Call vect_can_advance_ivs_p and
3800 slpeel_can_duplicate_loop_p.
3801 (vect_get_loop_niters): Added documentation.
3802 (vect_analyze_loop_form): Check the loop entry always - not only in case
3803 of unknown loop bound. Create preheader and exit bb if necessary. Apply
3804 a check that used to take place in
3805 vect_analyze_loop_with_symbolic_num_of_iters.
3806 (vectorize_loops): Call verify_loop_closed_ssa under ENABLE_CHECKING.
3807 Remove redundant call to rewrite_into_loop_closed_ssa.
3808 (vect_compute_data_refs_alignment): Removed obsolete comment.
3809
3810 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
3811
3812 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): New name for
3813 function previously called tree_duplicate_loop_to_edge.
3814 (slpeel_tree_duplicate_loop_to_edge_cfg): New name for function
3815 previously called tree_duplicate_loop_to_edge_cfg.
3816 (slpeel_update_phis_for_duplicate_loop): Prefix 'slpeel' added to
3817 function name.
3818 (slpeel_update_phi_nodes_for_guard): Likewise.
3819 (slpeel_make_loop_iterate_ntimes): Likewise.
3820 (slpeel_add_loop_guard): Likewise.
3821 (allocate_new_names, free_new_names): Function declaration moved to top
3822 of file.
3823 (rename_use_op, rename_def_op): Likewise.
3824 (rename_variables_in_bb, rename_variables_in_loop): Likewise.
3825 (vect_generate_tmps_on_preheader): Function declaration moved.
3826 (vect_transform_for_unknown_loop_bound): Added missing function
3827 declaration.
3828
3829 2004-11-19 Andrew Pinski <pinskia@physics.uc.edu>
3830
3831 PR tree-opt/18507
3832 * tree-flow.h (tree_on_heap): Typedef because there is already a VEC(tree).
3833 Define a VEC(tree_on_heap) for head.
3834 (register_new_def): Change second argument to be a VEC(tree_on_heap).
3835 * tree-ssa-dom.c (block_defs_stack): Change to be a VEC(tree_on_heap).
3836 (tree_ssa_dominator_optimize): Initialize block_defs_stack with
3837 the VEC(tree_on_heap) function. Also free it before returning.
3838 (dom_opt_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
3839 for block_defs_stack.
3840 (restore_currdefs_to_original_value): Use VEC_length instead of
3841 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
3842 (dom_opt_finalize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
3843 for block_defs_stack.
3844 * tree-into-ssa.c (block_defs_stack): Change to be a VEC(tree_on_heap).
3845 (rewrite_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
3846 for block_defs_stack.
3847 (ssa_register_new_def): Likewise.
3848 (ssa_rewrite_initialize_block): Likewise.
3849 (rewrite_finalize_block): Use VEC_length instead of
3850 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
3851 (ssa_rewrite_finalize_block): Likewise.
3852 (register_new_def): Change second argument to be a VEC(tree_on_heap).
3853 Use VEC_safe_push instead of VARRAY_PUSH_TREE.
3854 (rewrite_blocks): Initialize block_defs_stack with
3855 the VEC(tree_on_heap) function. Also free it before returning.
3856 (rewrite_ssa_into_ssa): Likewise.
3857
3858 2004-11-19 Fariborz Jahanian <fjahanian@apple.com>
3859
3860 * config/darwin.c (machopic_data_defined_p): return 1 for
3861 MACHOPIC_DEFINED_FUNCTION.
3862
3863 2004-11-19 Jeff Law <law@redhat.com>
3864
3865 * tree-ssa.c (verify_ssa): Remove redundant checking of PHI
3866 arguments.
3867
3868 2004-11-19 Paul Brook <paul@codesourcery.com>
3869
3870 PR target/17735
3871 * varasm.c (default_assemble_integer): Allow pointer-sized values.
3872 Expand comment.
3873
3874 2004-11-19 Nick Clifton <nickc@redhat.com>
3875
3876 * config/stormy16/stormy16.c (combine_bnp): Add code to handle
3877 zero_extension and lshiftrt insns.
3878 Replace uses of XEXP(...) with either SET_DEST() or SET_SRC()
3879 where appropriate.
3880 * config/stormy16.stormy16.md (bclrx3, bsetx3): New patterns
3881 to handle bp and bn insn patterns with a zero_extend rtx
3882 inside them.
3883
3884 2004-11-19 Ian Lance Taylor <ian@wasabisystems.com>
3885
3886 * config/arm/arm.md (generic_sched): Make const.
3887
3888 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
3889
3890 * emit-rtl.c (classify_insn): Make it static.
3891 * rtl.h: Remove the corresponding prototype.
3892
3893 * integrate.c (has_func_hard_reg_initial_val,
3894 get_func_hard_reg_initial_val): Make them static.
3895 * integrate.h: Remove the corresponding prototypes.
3896
3897 2004-11-19 Ben Elliston <bje@au.ibm.com>
3898
3899 * dwarf2asm.h (dw2_asm_output_pcel): Stub out with #if 0.
3900 (dw2_asm_output_delta_sleb128): Likewise.
3901 * dwarf2asm.c (dw2_asm_output_pcrel): Likewise.
3902 (dw2_asm_output_delta_sleb128): Likewise.
3903
3904 2004-11-19 Adam Nemet <anemet@lnxw.com>
3905
3906 * tree-ssa-alias.c: Fix comment.
3907
3908 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
3909
3910 * tree-outof-ssa.c: Fix a comment typo.
3911
3912 2004-11-19 Ben Elliston <bje@au.ibm.com>
3913
3914 * predict.h (predict_insn): Remove extern declaration.
3915 * predict.c (predict_insn): Make static.
3916
3917 2004-11-19 Alan Modra <amodra@bigpond.net.au>
3918
3919 * config/rs6000/rs6000.c (function_arg): Don't return BLKmode regs.
3920
3921 2004-11-18 Nicolas Pitre <nico@cam.org>
3922
3923 * config/arm/arm.c (const_double_needs_minipool): New function to
3924 determine if a CONST_DOUBLE should be pushed to the minipool.
3925 (note_invalid_constants): Use it.
3926
3927 2004-11-18 Paul Brook <paul@codesourcery.com>
3928
3929 * config/arm/arm.c (target_float_switch): New variable..
3930 (arm_override_options): Use TARGET_DEFAULT_FLOAT_ABI and
3931 target_float_switch.
3932 * config/arm/arm.h (target_float_switch): Declare.
3933 (ARM_FLAG_SOFT_FLOAT): Remove.
3934 (TARGET_SWITCHES): Remove hard-float and soft-float.
3935 (TARGET_OPTIONS): Add hard-float and soft-float.
3936 (TARGET_DEFAULT_FLOAT_ABI): Define.
3937 * config/arm/coff.h (TARGET_DEFAULT_FLOAT_ABI): Define
3938 (TARGET_DEFAULT): Don't use ARM_FLAG_SOFT_FLOAT.
3939 * config/arm/elf.h: Don't use ARM_FLAG_SOFT_FLOAT.
3940 * config/arm/netbsd-elf.h: Ditto.
3941 * config/arm/netbsd.h: Ditto.
3942 * config/arm/pe.h: Ditto.
3943 * config/arm/unknown-elf.h: Ditto.
3944 * config/arm/wince-pe.h: Ditto.
3945 * config/arm/linux-elf.h (TARGET_DEFAULT_FLOAT_ABI): Define.
3946 * config/arm/semi.h (TARGET_DEFAULT_FLOAT_ABI): Define.
3947 * config/arm/semiaof.h (TARGET_DEFAULT_FLOAT_ABI): Define.
3948
3949 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
3950
3951 * config/rs6000/altivec.md (VI, VF, V): New mode macros.
3952 (altivec_lvx_4si, altivec_lvx_8hi, altivec_lvx_16qi,
3953 altivec_lvx_4sf): Rename and replace with ...
3954 (altivec_lvx_<mode>): ... mode macro version.
3955 (altivec_stvx_4si, altivec_stvx_8hi, altivec_stvx_16qi,
3956 altivec_stvx_4sf): Rename and replace with ...
3957 (altivec_stvx_<mode>): ... mode macro version.
3958 (movv4si, movv8hi, movv16qi, movv4sf}): Replace with ...
3959 (mov<mode>): ... mode macro version.
3960 (*movv4si_internal, *movv8hi_internal1, *movv16qi_internal1,
3961 *movv4sf_internal1): Replace with ...
3962 (*mov<mode>_internal): ... mode macro version.
3963 (get_vrsave_internal, *set_vrsave_internal, *save_world,
3964 *restore_world): Unquote output statements.
3965 * config/rs6000/rs6000.c (altivec_expand_ld_builtin,
3966 altivec_expand_st_builtin): Adjust insn names.
3967
3968 2004-11-18 Aldy Hernandez <aldyh@redhat.com>
3969
3970 * config/rs6000/rs6000.c (rs6000_complex_function_value): Revert
3971 previous change.
3972 (rs6000_override_options): Likewise.
3973 (spe_build_register_parallel): Handle complex doubles on e500v2.
3974 (rs6000_spe_function_arg): Likewise.
3975 (function_arg): Likewise.
3976 (rs6000_function_value): Likewise.
3977 (rs6000_libcall_value): Likewise.
3978
3979 2004-11-18 Andrew Pinski <pinskia@physics.uc.edu>
3980
3981 * ifcvt.c (find_if_block): Move the check for the number of edges
3982 above the loops checking for complex edges.
3983 Remove the counting of edges as we use EDGE_COUNT now.
3984
3985 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
3986
3987 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
3988 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.3
3989
3990 2004-11-18 Andreas Schwab <schwab@suse.de>
3991
3992 * config/i386/i386.md (define_peephole2): Revert last change.
3993
3994 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
3995
3996 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
3997 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.
3998
3999 2004-11-18 Diego Novillo <dnovillo@redhat.com>
4000
4001 * tree-ssa-propagate.c (ssa_prop_init): Use FOR_ALL_BB instead
4002 of FOR_EACH_BB.
4003
4004 2004-11-18 Jon Grimm <jgrimm2@us.ibm.com>
4005
4006 * Makefile.in (macro_list): Depend on s-macro_list.
4007 (s-macro_list): New target.
4008
4009 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
4010
4011 PR target/17107
4012 * fold-const.c (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
4013 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
4014 (fold_range_test): Adjust.
4015 (fold_truthop): Use it.
4016 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
4017 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
4018
4019 2004-11-18 Uros Bizjak <uros@kss-loka.si>
4020
4021 * configure/i386/i386.md (*fix_trunch_1): Add "&& 1" to
4022 insn split constraint.
4023 (define_peephole2): Remove unneeded "&& 1" from peephole2
4024 constraints.
4025
4026 2004-11-18 Ben Elliston <bje@au.ibm.com>
4027
4028 * doc/cfg.texi (Maintaining the CFG): Remove duplicated @item
4029 element for bsi_prev; use @findex instead.
4030
4031 2004-11-18 Ben Elliston <bje@au.ibm.com>
4032
4033 * opts.h (add_input_filename): Remove extern declaration.
4034 * opts.c (add_input_filename): Make static.
4035
4036 2004-11-17 Mark Mitchell <mark@codesourcery.com>
4037
4038 * config/i386/i386.c (i386_solaris_elf_named_section): Mark with
4039 ATTRIBUTE_UNUSED.
4040
4041 2004-11-17 Zack Weinberg <zack@codesourcery.com>
4042
4043 * defaults.h, config/darwin.h: Don't define TARGET_SUPPORTS_HIDDEN.
4044 * system.h: Poison it.
4045 * doc/tm.texi: Delete its documentation.
4046
4047 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
4048 Mark Mitchell <mark@codesourcery.com>
4049
4050 * config/i386/sol2-10.h, config/i386/t-sol2-10: New files.
4051 * config/i386/i386.c (i386_solaris_elf_named_section): New
4052 function.
4053 * config.gcc (i[34567]86-*-solaris2*): Handle Solaris 2.10.
4054 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Handle
4055 64-bit.
4056 (ASM_QUAD): Don't undefine for biarch targets.
4057 * config/i386/t-sol2: Introduce multilib support.
4058
4059 2004-11-18 Ben Elliston <bje@au.ibm.com>
4060
4061 * cgraphunit.c: Replace "it's" with "its" and fix a typo.
4062
4063 2004-11-18 Ben Elliston <bje@au.ibm.com>
4064
4065 * cgraph.h: Replace "it's" with "its" throughout.
4066
4067 2004-11-18 Ben Elliston <bje@au.ibm.com>
4068
4069 * doc/rtl.texi (Flags): Grammar fix.
4070
4071 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
4072
4073 * expmed.c (alg_code): Add alg_unknown.
4074 (alg_hash_entry): New.
4075 (NUM_ALG_HASH_ENTRIES): Likewise.
4076 (alg_hash): Likewise.
4077 (synth_mult): Cache the result into alg_hash.
4078
4079 2004-11-17 Zack Weinberg <zack@codesourcery.com>
4080
4081 * config/rs6000/t-darwin: Augment SHLIB_MAPFILES with
4082 config/rs6000/libgcc-ppc64.ver.
4083
4084 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
4085
4086 * cfgrtl.c (rtl_verify_flow_info): Don't use INSN_P when
4087 checking if an unconditional return is followed by a barrier.
4088
4089 * jump.c (condjump_p): Remove unreachable code.
4090
4091 * basic-block.h, c-common.h, df.h, expr.h, output.h, rtl.h,
4092 tree-chrec.h, tree-flow.h, tree-scalar-evolution.h,
4093 tree-ssa-live.h, tree.h: Remove unused prototypes.
4094
4095 2004-11-17 Jeff Law <law@redhat.com>
4096
4097 * tree-cfg.c (edge_to_cases): Renamed from edge_to_case_leader.
4098 (edge_to_cases_elt): Renamed from edge_to_case_leader.
4099 (edge_to_cases_hash): Renamed from edge_to_case_leader_hash.
4100 (edge_to_cases_eq): Renamed from edge_to_case_leader_eq.
4101 (edge_to_cases_cleanup, recording_case_labels_p): New functions.
4102 (get_cases_for_edge): New function.
4103 (start_recording_case_labels, end_recording_case_labels): Similarly.
4104 (record_switch_edge): Don't muck with the CASE_LABEL. Instead
4105 chain equivalent CASE_LABEL_EXPRs together.
4106 (get_case_leader_for_edge, get_case_leader_for_edge_hash): Kill.
4107 (make_switch_expr_edges): Do not record edge/cases here.
4108 (cleanup_tree_cfg): Record cases around the call to thread_jumps.
4109 (split_critical_edges): Record cases around the edge splitting code.
4110 (cleanup_dead_labels): Use CASE_LABEL again.
4111 (tree_redirect_edge_and_branch): If we have a mapping from edge
4112 to cases, use it to handle redirections. Else do it the slow way.
4113 * tree.h (CASE_LEADER_OR_LABEL): Kill.
4114 (CASE_LABEL): Revert to just looking at the tree's second operand.
4115 * tree.c (get_case_label): Kill.
4116
4117 2004-11-17 Diego Novillo <dnovillo@redhat.com>
4118
4119 PR tree-optimization/18307
4120 * tree-ssa-alias.c (merge_pointed_to_info): ICE if 'dest' and
4121 'orig' are the same node.
4122 (collect_points_to_info_r): Do not call merge_pointed_to_info
4123 when the PHI argument is identical to the LHS.
4124
4125 2004-11-17 Steven Bosscher <stevenb@suse.de>
4126
4127 * tree-ssa-propagate.c (cfg_blocks_add): Assert we're not trying
4128 to insert the exit or entry block.
4129 (ssa_prop_init): Use add_control_edge to seed the algorithm.
4130
4131 2004-11-16 Zack Weinberg <zack@codesourcery.com>
4132
4133 * mkmap-flat.awk, mkmap-symver.awk: If the last version
4134 assigned to a symbol was '%exclude', do not emit it anywhere.
4135 If leading_underscore is true, prefix all symbols from the
4136 version scripts with a leading underscore before comparing
4137 them with nm output or emitting them. Remove support for dot
4138 symbols.
4139 * config/t-slibgcc-darwin (SHLIB_LINK): Use mkmap-flat.awk.
4140 (SHLIB_MAPFILES): Use libgcc-std.ver.
4141 (SHLIB_MKMAP_OPTS): Enable leading-underscore mode.
4142 (SHLIB_LINK): Add -Wl,-exported_symbols_list,$(SHLIB_MAP).
4143 * config/sh/t-linux: Use the normal libgcc-std.ver, plus
4144 libgcc-excl.ver and libgcc-glibc.ver.
4145
4146 * config/sh/libgcc-excl.ver: New file.
4147 * config/sh/libgcc-std.ver, libgcc-darwin.ver: Delete.
4148
4149 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
4150
4151 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Swap
4152 the test when the edge has the opposite meaning, not when
4153 the first argument is invariant.
4154
4155 2004-11-16 Aldy Hernandez <aldyh@redhat.com>
4156
4157 * config/rs6000/rs6000.c (rs6000_override_options): Split e500v2
4158 doubles.
4159 (rs6000_complex_function_value): Handle e500 v2 variant.
4160
4161 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
4162
4163 Fix PR tree-optimization/18519
4164
4165 * tree-optimize (execute_todo): Add case for TODO_cleanup_cfg.
4166 * tree-pass.h: Add TODO_cleanup_cfg.
4167 * tree-ssa-ccp.c (pass_ccp): Use TODO_cleanup_cfg.
4168 (ccp_finalize): Remove call to cleanup_cfg.
4169 * tree-ssa-dce.c (pass_dce): Use TODO_cleanup_cfg and TODO_dump_func.
4170 (pass_cd_dce): Ditto.
4171 (perform_tree_ssa_dce): Remove call to cleanup_cfg,
4172 dump_function_to_file.
4173 * tree-ssa-loop-ch.c (copy_loop_headers): Remove call
4174 to cleanup_cfg.
4175 (pass_ch): Add TODO_cleanup_cfg.
4176 * tree-ssa-loop.c (tree_ssa_loop_done): Remove call to
4177 cleanup_cfg.
4178 (pass_loop_done): Add TODO_cleanup_cfg.
4179 * tree-ssa-phiopt.c (pass_phiopt): Ditto.
4180 (tree_ssa_phiopt): Remove call to cleanup_cfg.
4181
4182 2004-11-16 Devang Patel <dpatel@apple.com>
4183
4184 * optabs.c (vector_compare_rtx): Fix COMPARISON_CLASS_P use.
4185
4186 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
4187
4188 * expmed.c, ra-colorize.c: Fix comment typos.
4189
4190 * doc/tm.texi: Fix typos.
4191
4192 2004-11-16 Daniel Jacobowitz <dan@codesourcery.com>
4193 Mark Mitchell <mark@codesourcery.com>
4194
4195 PR target/6123
4196 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and
4197 __pic__ if PIC.
4198
4199 2004-11-16 Ulrich Weigand <uweigand@de.ibm.com>
4200
4201 * regmove.c (regmove_optimize): Use lowpart_subreg instead of
4202 gen_rtx_SUBREG with incorrect offset to compute SRC_SUBREG.
4203
4204 2004-11-16 Devang Patel <dpatel@apple.com>
4205
4206 * tree-if-conv.c (clean_predicate_lists): Update gcc_assert check.
4207
4208 2004-11-16 Eric Christopher <echristo@redhat.com>
4209
4210 * config/mips/mips.c: Use rtl _P predicates.
4211 * config/mips/mips.h: Ditto.
4212 * config/mips/mips.md: Ditto.
4213
4214 2004-11-16 Fariborz Jahanian <fjahanian@apple.com>
4215
4216 * config/rs6000/altivec.md (altivec_vandc): Canonicalize
4217 the pattern.
4218
4219 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
4220
4221 * config/s390/s390.c (s390_cc_modes_compatible): New function.
4222 (TARGET_CC_MODES_COMPATIBLE): Target macro defined.
4223
4224 2004-11-16 Kaz Kojima <kkojima@gcc.gnu.org>
4225
4226 PR target/18447
4227 * config/sh/sh.c (prepare_move_operands): Emit blockage insns
4228 before and after the insns for getting GOT address in non-PIC
4229 TLS_MODEL_INITIAL_EXEC tls sequence when the first scheduling
4230 is enabled.
4231
4232 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
4233
4234 * gcc/cse.c (struct change_cc_mode_args): New structure.
4235 (cse_change_cc_mode_insn): New function.
4236 (cse_change_cc_mode): Use validate_change to perfom changes.
4237 (cse_change_cc_mode_insns, cse_condition_code_reg):
4238 Call cse_change_cc_mode_insn.
4239
4240 2004-11-16 Steven Bosscher <stevenb@suse.de>
4241
4242 * stack.h: Remove.
4243
4244 2004-11-16 Steven Bosscher <stevenb@suse.de>
4245
4246 * config/i386/i386.c (x86_schedule): Fix typo, m_K6 intead of m_K8.
4247
4248 2004-11-15 Dale Johannesen <dalej@apple.com>
4249
4250 * tree-flow.h (add_referenced_temp_var): Remove name from prototype.
4251
4252 2004-11-15 Dale Johannesen <dalej@apple.com>
4253
4254 * profile.c (compute_branch_probabilities): Prevent
4255 crash with EH in RTL-based profiling.
4256
4257 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
4258
4259 * tree-cfg.c (verify_expr): Replace TREE_OPERAND with
4260 COND_EXPR_COND.
4261 * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
4262 * tree-ssa-dom.c (thread_across_edge): Likewise.
4263 * tree-vectorizer.c (vect_transform_loop_bound): Replace
4264 TREE_OPERAND with COND_EXPR_COND, COND_EXPR_THEN, or
4265 COND_EXPR_ELSE.
4266
4267 * tree-cfg.c (bsi_commit_edge_inserts): Remove an argument.
4268 (tree_flow_call_edges_add): Update the call to
4269 bsi_commit_edge_inserts.
4270 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
4271 * profile.c (branch_prob): Likewise.
4272 * tree-mudflap.c (mf_decl_cache_locals): Likewise.
4273 * tree-sra.c (scalarize_function): Likewise.
4274 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
4275 * tree-ssa-pre.c (fini_pre): Likewise.
4276 * tree-flow.h: Update the prototype for
4277 bsi_commit_edge_inserts.
4278
4279 2004-11-15 Eric Christopher <echristo@redhat.com>
4280
4281 * sched-deps.c (set_sched_group_p): Delete.
4282 (delete_all_dependencies): New function.
4283 (fixup_sched_groups): Use. New function.
4284 (sched_analyze_insn): Use.
4285
4286 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
4287
4288 * c-common.c (binary_op_error): Don't allow LROTATE_EXPR,
4289 RROTATE_EXPR or unknown code.
4290 * c-typeck.c (build_binary_op): Don't allow RROTATE_EXPR,
4291 LROTATE_EXPR, MAX_EXPR, MIN_EXPR, UNORDERED_EXPR, ORDERED_EXPR,
4292 UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR
4293 or unknown code.
4294
4295 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
4296
4297 PR c/18498
4298 * c-decl.c (grokdeclarator): Call check_bitfield_type_and_width
4299 after processing the declarator.
4300
4301 2004-11-15 Aldy Hernandez <aldyh@redhat.com>
4302
4303 * config/rs6000/altivec.md ("altivec_vsplth"): Rewrite with
4304 vec_duplicate.
4305 (altivec_vspltb): Same.
4306 (altivec_vspltw): Same.
4307 (altivec_vspltisb): Same.
4308 (altivec_vspltish): Same.
4309 (altivec_vspltisw): Same.
4310 (altivec_vspltisw_v4sf): Same.
4311 (define_constants): Remove UNSPEC_VSPLTISB, UNSPEC_VSPLTISW,
4312 UNSPEC_VSPLTISH.
4313 Move "End of vector xor's" comment to the right place.
4314
4315 2004-11-15 Steve Ellcey <sje@cup.hp.com>
4316
4317 * config/ia64/ia64.md (*movtf_internal): Use destination_operand
4318 instead of nonimmediate_operand.
4319
4320 2004-11-15 Mark Mitchell <mark@codesourcery.com>
4321
4322 * config/i386/sol2.h (ASM_OUTPUT_CALL): Use print_operand.
4323 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Likewise.
4324 * config/sol2.c (solaris_output_init_fini): Update calls to
4325 ASM_OUTPUT_CALL. Include "rtl.h".
4326
4327 2004-11-15 Mark Mitchell <mark@codesourcery.com>
4328
4329 * config/sol2-c.c (cmn_err_char_table): Add "p".
4330
4331 2004-11-15 Mark Mitchell <mark@codesourcery.com>
4332
4333 * config/sparc/sol2.h (SUPPORTS_INIT_PRIORITY): Remove.
4334 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define here.
4335
4336 2004-11-15 Mark Mitchell <mark@codesourcery.com>
4337
4338 * config/t-slibgcc-sld (SHLIB_LINK): Make symlinks entirely
4339 within the multilib directory.
4340
4341 2004-11-15 Nick Clifton <nickc@redhat.com>
4342
4343 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Add
4344 builtin assert of cpu=xstormy16.
4345
4346 2004-11-15 Nathan Sidwell <nathan@codesourcery.com>
4347
4348 * tree-ssa-pre.c (bitmap_print_value_set): Fix uninitialized
4349 variable.
4350
4351 2004-11-14 Richard Henderson <rth@redhat.com>
4352
4353 PR 18480
4354 * calls.c (struct arg_data): Add parallel_value.
4355 (precompute_register_parameters): Set it.
4356 (load_register_parameters): Use it.
4357 (store_one_arg): Also set it here.
4358
4359 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
4360
4361 PR tree-optimization/18431
4362 * fold-const.c (associate_trees): Do not produce x + 0.
4363 (fold_widened_comparison, fold_sign_changed_comparison): New functions.
4364 (fold): Use them.
4365 * tree-ssa-loop-niter.c (upper_bound_in_type, lower_bound_in_type):
4366 Moved ...
4367 * tree.c (upper_bound_in_type, lower_bound_in_type): Here.
4368 * tree.h (upper_bound_in_type, lower_bound_in_type): Declare.
4369
4370 2004-11-14 Eric Botcazou <ebotcazou@libertysurf.fr>
4371
4372 * doc/rtl.texi (SUBREG): Adjust BYTENUM value in example.
4373
4374 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
4375
4376 * cfgrtl.c, global.c, tree-ssa-copy.c, tree-ssa-loop-ivopts.c,
4377 value-prof.c: Fix comment typos.
4378
4379 2004-11-14 Stan Shebs <shebs@apple.com>
4380
4381 Basic ABI changes for passing structs by value in 64-bit Darwin.
4382 * config/rs6000/rs6000.c (rs6000_darwin64_abi): New flag.
4383 (rs6000_override_options): Set it for 64-bit Darwin.
4384 (rs6000_parse_abi_options): Add testing options to change it.
4385 (rs6000_return_in_memory): Test whether the type is one
4386 that can be passed in registers.
4387 (darwin64_function_arg_advance): New.
4388 (function_arg_advance): Call it, plus add recursion depth
4389 argument and test when counting off arguments.
4390 (rs6000_darwin64_function_arg): New.
4391 (function_arg): Call it.
4392 (setup_incoming_varargs): Add argument to function_arg_advance.
4393 (rs6000_darwin64_function_value): New.
4394 (rs6000_function_value): Call it.
4395 * config/rs6000/rs6000.h (FUNCTION_ARG_ADVANCE): Pass depth arg.
4396 * config/rs6000/rs6000-protos.h: Update decl of
4397 function_arg_advance.
4398
4399 2004-11-14 Andrew Pinski <pinskia@physics.uc.edu>
4400
4401 PR c/17279
4402 * c-common.c (c_common_nodes_and_builtins): Ask the back-end if we
4403 support TImode before adding __int128_t and __uint128_t types.
4404
4405 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
4406
4407 PR tree-opt/18400
4408 * tree-vectorizer.c (make_loop_iterate_ntimes): Set loop->nb_iterations.
4409 (vect_transform_loop_bound): Set loop->nb_iterations.
4410
4411 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
4412 Andrew Pinski <pinskia@physics.uc.edu>
4413
4414 PR tree-opt/18425
4415 * tree-vectorize.c (vect_build_loop_niters): Do not insert
4416 NULL into the instruction stream. Initialize new_bb to NULL.
4417 (vect_update_ivs_after_vectorizer): Likewise.
4418 (vect_gen_niters_for_prolog_loop): Likewise.
4419
4420 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
4421
4422 PR tree-optimization/18431
4423 * tree-flow.h (stmt_references_memory_p): Declare.
4424 * tree-ssa-loop-im.c (stmt_cost): Use stmt_references_memory_p.
4425 * tree-ssa.c (stmt_references_memory_p): New function.
4426
4427 2004-11-14 Andreas Schwab <schwab@suse.de>
4428
4429 * Makefile.in (lambda-code.o, tree-loop-linear.o): Depend on
4430 $(EXPR_H).
4431
4432 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
4433
4434 * c-common.c (walk_stmt_tree): Remove.
4435 * c-common.h: Remove the corresponding prototype.
4436
4437 * emit-rtl.c (push_to_full_sequence): Remove.
4438 * rtl.h: Remove the corresponding prototype.
4439
4440 * cselib.c, expr.c: Fix comment typos.
4441
4442 2004-11-13 Richard Henderson <rth@redhat.com>
4443
4444 * calls.c (precompute_register_parameters): Force all PARALLELs
4445 into pseudo registers.
4446 (load_register_parameters): Copy PARALLELs into hard registers.
4447 * function.c (assign_parm_setup_block): Copy PARALLELS into
4448 pseudo registers. Do emit_group_store in conversion_insns.
4449 * expr.c (emit_group_load_1): Rename from emit_group_load, take
4450 tmps as an argument. Move final copy loop ...
4451 (emit_group_load): ... here. New function.
4452 (emit_group_load_into_temps, emit_group_move_into_temps): New.
4453 * expr.h: Declare them.
4454
4455 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
4456
4457 * tree-cfg.c, tree-if-conv.c, tree-ssa-loop-ivopts.c,
4458 tree-ssa-loop-manip.c, tree-vectorizer.c: Replace TREE_CHAIN
4459 with PHI_CHAIN where appropriate.
4460
4461 2004-11-13 Dale Johannesen <dalej@apple.com>
4462
4463 * tree-flow.h (bsi_commit_one_edge_insert): Remove name from prototype.
4464 (tree_block_label): Ditto.
4465 (flush_pending_stmts): Ditto.
4466 (insert_edge_copies): Ditto.
4467 (expr_invariant_in_loop_p): Ditto.
4468 (TDF_USE_OPS): Parenthesize definition.
4469 (TDF_USE_VOPS): Ditto.
4470
4471 2004-11-13 David Edelsohn <edelsohn@gnu.org>
4472
4473 * config/rs6000/aix51.h (ASM_CPU_SPEC): Add 970 and G5.
4474 * config/rs6000/aix52.h (ASM_CPU_SPEC): Same.
4475 (atoll): Declare.
4476 * config/rs6000/t-aix52 (BOOT_LDFLAGS): Define.
4477
4478 2004-11-14 Joseph Myers <joseph@codesourcery.com>
4479
4480 * config/i386/i386.c (override_options): Move loop to set default
4481 tuning to correct place.
4482
4483 2004-11-13 Zak Kipling <zak@transversal.com>
4484
4485 PR target/18300
4486 * config/i386/i386.c (classify_argument): Fix infinite loop when
4487 passing object with 3 or more base classes by value.
4488
4489 2004-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
4490
4491 * doc/md.texi (constraints) <% modifier>: Mention that it is
4492 useless when the two alternatives are strictly identical.
4493
4494 2004-11-13 Richard Henderson <rth@redhat.com>
4495
4496 * expmed.c (extract_split_bit_field): Temporarily disable call to
4497 extract_force_align_mem_bit_field.
4498
4499 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
4500
4501 * bitmap.c, bitmap.h, expmed.c, tree-cfg.c: Fix comment
4502 formatting.
4503
4504 * c-cppbuiltin.c, cgraph.c, domwalk.h, except.c, gimplify.c,
4505 lambda-code.c, postreload.c, predict.c, tree-sra.c,
4506 tree-ssa-loop-manip.c, tree.c: Fix comment typos.
4507
4508 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
4509
4510 * doc/install.texi (automake): Correctly document that everything now
4511 will use automake 1.9.3.
4512
4513 2004-11-13 Hans-Peter Nilsson <hp@bitrange.com>
4514
4515 PR target/18347
4516 * config/mmix/mmix.c (mmix_function_outgoing_value): Handle
4517 TImode. Sorry for other non-complex larger-than-64-bit modes.
4518 * config/mmix/mmix.h (MIN_UNITS_PER_WORD): Do not define.
4519
4520 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
4521
4522 * doc/install.texi (automake): Document that everything now uses 1.9.
4523
4524 2004-11-13 Bernd Schmidt <bernd.schmidt@analog.com>
4525
4526 * cse.c (cse_insn): Stores in a libcall sequence can invalidate
4527 previous loads.
4528
4529 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
4530
4531 * tree.h: Fix comment typos.
4532
4533 2004-11-13 Steven Bosscher <stevenb@suse.de>
4534
4535 * cse.c (CHEAP_REGNO): Redefine using REGNO_PTR_FRAME_P and
4536 HARD_REGISTER_NUM_P.
4537
4538 * cselib.c (new_cselib_val): Make comment correct and more detailed.
4539 * flow.c (mark_set_1): Likewise.
4540
4541 * except.c (duplicate_eh_region_1, duplicate_eh_region_2,
4542 duplicate_eh_regions): Remove.
4543 * except.h (duplicate_eh_regions): Remove prototype.
4544 * integrate.c (get_label_from_map, copy_rtx_and_substitute,
4545 global_const_equiv_varray): Remove.
4546 * integrate.h (get_label_from_map, copy_rtx_and_substitute,
4547 global_const_equiv_varray, set_label_in_map): Remove prototypes,
4548 extern declaration, and #define.
4549 (MAYBE_EXTEND_CONST_EQUIV_VARRAY, SET_CONST_EQUIV_DATA): Remove.
4550 (struct inline_remap): Remove.
4551 * varray.c (struct element): Remove entry for const_equiv_data.
4552 * varray.h (struct const_equiv_data): Remove.
4553 (enum varray_data_enum) <VARRAY_DATA_CONST_EQUIV>: Remove.
4554 (union varray_data_tag) <const_equiv>: Remove.
4555 (VARRAY_CONST_EQUIV_INIT, VARRAY_CONST_EQUIV,
4556 VARRAY_PUSH_CONST_EQUIV, VARRAY_TOP_CONST_EQUIV): Remove.
4557
4558 * regstack.c (record_label_references): Remove unused function.
4559
4560 * rtl.def (VALUE): Update comment.
4561 (LABEL_REF): Remove unused operand 2.
4562 * rtl.h (struct rtx_def): Update for removed accessor macros.
4563 (XCADVFLAGS, INSN_DEAD_CODE_P, LINE_NUMBER, CONTAINING_INSN,
4564 REG_LOOP_TEST_P): Remove.
4565 (ADDR_DIFF_VEC_FLAGS, CSELIB_VAL_PTR, LABEL_NEXTREF): Add comments.
4566 * web.c (entry_register): Don't copy REG_LOOP_TEST_P.
4567 * doc/rtl.texi (INSN_DEAD_CODE_P, REG_LOOP_TEST_P): Remove.
4568
4569 2004-11-13 James A. Morrison <phython@gcc.gnu.org>
4570 Eric Botcazou <ebotcazou@libertysurf.fr>
4571
4572 PR target/18230
4573 * config/sparc/sparc.c (sparc_rtx_costs): Handle the NAND vector
4574 patterns.
4575 * config/sparc/sparc.md (V64I): New macro for 64-bit modes.
4576 (V32I): New macro for 32-bit modes.
4577 (anddi3, anddi_sp32, anddi_sp64, and_not_di_sp32, and_not_di_sp64,
4578 iordi3, iordi3_sp32, iordi_sp64, or_not_di_sp32, or_not_di_sp64,
4579 xordi3, xordi3_sp32, xordi3_sp64, {AND, IOR, XOR} DI splitter,
4580 xor_not_di_sp32, xordi_not_di_sp64, one_cmpldi2, one_cmpldi_sp32,
4581 one_cmpldi_sp64): Use V64I instead of DI.
4582 (andsi3, andsi_sp32, andsi_sp64, and_not_si, iorsi3, or_not_si,
4583 xorsi3, xor_not_si, one_cmplsi2): Use V32I instead of SI.
4584 (addv2si3, addv4hi3, addv2hi3): Remove % modifier.
4585 (nandv64i_vis, nandv32i_vis): New patterns.
4586
4587 2004-11-12 Mike Stump <mrs@apple.com>
4588
4589 * Makefile.in: Add html support.
4590 * java/Make-lang.in: Likewise.
4591 * fortran/Make-lang.in: Likewise.
4592 * treelang/Make-lang.in: Likewise.
4593 * doc/install.texi: Likewise.
4594 * doc/makefile.texi: Likewise.
4595 * doc/sourcebuild.texi: Likewise.
4596
4597 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
4598
4599 * tree-ssa-loop-manip.c: Fix a comment typo.
4600
4601 2004-11-12 Mike Stump <mrs@apple.com>
4602
4603 * doc/cppinternals.texi (Index): Fix html generation with makeinfo by
4604 renaming this node to Concept Index.
4605 * doc/gccint.texi (Index): Likewise. Also minor formatting tweaks
4606 to more closely match gcc.texi.
4607
4608 2004-11-12 Jeff Law <law@redhat.com>
4609
4610 * tree-cfg.c (hashtab.h): Include.
4611 (struct edge_to_case_leader_elt): New structure.
4612 (edge_to_case_leader): New.
4613 (edge_to_case_leader_hash): New hashtable hasing function.
4614 (edge_to_case_leader_eq): New hashtable equality function.
4615 (record_switch_edge): New function.
4616 (get_case_leader_for_edge, get_case_leader_for_edge): New functions.
4617 (make_switch_expr_edges): Build the edge-to-case-leader
4618 hash table. Tear down the hash table when we're done.
4619 (cleanup_dead_labels): Use CASE_LEADER_OR_LABEL instead of
4620 CASE_LABEL.
4621 (tree_node_can_be_shared): Allow sharing of CASE_LABEL_EXPR nodes.
4622 (tree_redirect_edge_and_branch, case SWITCH_EXPR): Update
4623 to use new concept of case leaders to reduce overhead of
4624 redirecting outgoing edges from switch statements.
4625 * tree.c (get_case_label): New function.
4626 * tree.h (CASE_LABEL): Define in terms of get_case_label.
4627 (CASE_LEADER_OR_LABEL): Define.
4628
4629 2004-11-12 Ziemowit Laski <zlaski@apple.com>
4630
4631 * varasm.c (output_addressed_constants): For CONST_DECLs,
4632 output the initializer if present.
4633
4634 2004-11-12 Ziemowit Laski <zlaski@apple.com>
4635
4636 * config/rs6000/darwin.h: Fix confusing typo in comment.
4637
4638 2004-11-12 Devang Patel <dpatel@apple.com>
4639
4640 * optabs.c (vector_compare_rtx): Use COMPARISON_CLASS_P.
4641
4642 2004-11-12 Devang Patel <dpatel@apple.com>
4643
4644 * tree-if-conv.c (clean_predicate_lists): Use loop header
4645 and latch directly.
4646
4647 2004-11-12 Richard Henderson <rth@redhat.com>
4648
4649 PR 17778
4650 * config/i386/i386.h (TARGET_96_ROUND_53_LONG_DOUBLE): New.
4651 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
4652 (TARGET_96_ROUND_53_LONG_DOUBLE): New.
4653 * config/i386/i386-modes.def (XF): Use it.
4654
4655 2004-11-11 Geoffrey Keating <geoffk@apple.com>
4656
4657 * Makefile.in (macro_list): Use move-if-change to avoid spurious
4658 rebuilds.
4659
4660 2004-11-12 Mark Mitchell <mark@codesourcery.com>
4661
4662 PR c++/18416
4663 * passes.c (rest_of_decl_compilation): Do not look at DECL_RTL
4664 when deciding whether to pass a variable to
4665 cgraph_varpool_finalize_decl or assemble_variable.
4666 * toplev.c (check_global_declarations): Do not clear DECL_RTL.
4667
4668 2004-11-12 Kazu Hirata <kazu@cs.umass.edu>
4669
4670 * tree-vectorizer.c: Fix a comment typo.
4671
4672 2004-11-12 Bernd Schmidt <bernd.schmidt@analog.com>
4673
4674 * genconfig.c (walk_insn_part): Look at match_dups inside a label_ref.
4675
4676 2004-11-12 Diego Novillo <dnovillo@redhat.com>
4677
4678 * tree-scalar-evolution.c (analyzable_condition): Remove
4679 superfluous TREE_THIS_VOLATILE checks on SSA_NAMEs.
4680
4681 2004-11-12 Ralf Corsepius <ralf.corsepius@rtems.org>
4682
4683 * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
4684 Remove m505/roe multilib variant.
4685
4686 2004-11-12 Eric Botcazou <ebotcazou@libertysurf.fr>
4687
4688 * expr.c (emit_group_load) <CONCAT>: Use extract_bit_field
4689 to load from the stack.
4690
4691 2004-11-12 Richard Henderson <rth@redhat.com>
4692
4693 * toplev.c (floor_log2): Rename from floor_log2_wide, use CLZ_HWI.
4694 (exact_log2): Rename from exact_log2_wide, use CTZ_HWI.
4695 * toplev.h (FL2T__): Remove.
4696 (CLZ_HWI): Rename from FL2T_CLZ__.
4697 (CTZ_HWI): New.
4698 (floor_log2): Simplify.
4699 (exact_log2): New.
4700
4701 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
4702
4703 * tree-data-ref.c (analyze_subscript_affine_affine): Correctly
4704 compute the first overlapping iterations.
4705
4706 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
4707
4708 PR middle-end/18005
4709 * tree-data-ref.c (estimate_niter_from_size_of_data): Ensure
4710 that arguments of EXACT_DIV_EXPR are INTEGER_CST.
4711
4712 2004-11-12 Steven Bosscher <stevenb@suse.de>
4713
4714 PR tree-optimization/18419
4715 * tree-ssa.c (walk_use_def_chains_1): Make the visited map a
4716 pointer set instead of a bitmap.
4717 (walk_use_def_chains): Create, pass and clean up that pointer_set.
4718
4719 * tree-ssa-alias.c (struct alias_info): Make the ssa_names_visited
4720 field an sbitmap.
4721 (init_alias_info): Allocate and zero it here.
4722 (delete_alias_info): Delete it here.
4723 (collect_points_to_info_for): Use it.
4724
4725 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
4726
4727 * alias.c (record_alias_subset, addr_side_effect_eval):
4728 Make them static.
4729 * alias.h: Remove the prototype for record_alias_subset.
4730 * expr.h: Remove the commented-out prototype for
4731 record_alias_subset.
4732 * rtl.h: Remove the prototype for addr_side_effect_eval.
4733
4734 * cfglayout.c (choose_inner_scope): Make it static.
4735 * rtl.h: Remove the corresponding prototype.
4736
4737 * cfgloopmanip.c (update_single_exits_after_duplication,
4738 unloop): Make them static.
4739 * cfgloop.h: Remove the corresponding prototypes.
4740
4741 * c-typeck.c (c_size_in_bytes, record_maybe_used_decl):
4742 Make them static.
4743 * c-tree.h: Remove the corresponding prototypes.
4744
4745 * explow.c (round_push): Make it static.
4746 * expr.h: Remove the corresponding prototype.
4747
4748 * varasm.c (get_named_section_flags, decl_tls_model): Make
4749 them static.
4750 * output.h: Remove the prototype for get_named_section_flags.
4751 * tree.h: Remove the prototype for decl_tls_model.
4752
4753 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
4754
4755 * function.c (expand_function_end): Remove an "if" statement
4756 that always triggers.
4757 * stmt.c (expand_null_return_1): Likewise.
4758
4759 2004-11-11 James E. Wilson <wilson@specifixinc.com>
4760
4761 * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle XCmode.
4762 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, SECONDARY_MEMORY_NEEDED,
4763 CLASS_MAX_NREGS): Likewise.
4764
4765 2004-11-11 Zdenek Dvorak <dvorakz@suse.cz>
4766
4767 PR tree-optimization/17742
4768 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Handle
4769 MINUS_EXPR correctly.
4770
4771 2004-11-11 Sebastian Pop <pop@cri.ensmp.fr>
4772
4773 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
4774 Give up as soon as the evolution is known not computable.
4775
4776 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
4777
4778 PR target/16457
4779 * config/rs6000/rs6000.c (mask64_2_operand): Stub to call
4780 mask64_1or2_operand.
4781 (mask64_1or2_operand): Broken out of mask64_2_operand, add flag
4782 to spot rlwinm opportunities.
4783 (and64_2_operand): Use mask_1or2_operand.
4784 * config/rs6000/rs6000.md (anddi3): Use rlwinm when possible.
4785
4786 2004-11-11 Dorit Naishlos <dorit@il.ibm.com>
4787
4788 * tree-vectorizer.c (update_phi_nodes_for_guard): Call reverse_phis.
4789 (vect_update_ivs_after_vectorizer): Update function documentation.
4790 Avoid quadratic behavior and direct write to PHI_ARG_DEF.
4791
4792 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
4793
4794 * config/arm/arm.c: Fix a comment typo.
4795
4796 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
4797
4798 * bitmap.h (nBITMAP_WORD_BITS): Remove.
4799 (BITMAP_WORD_BITS): Force unsigned by use of 1u.
4800 (BITMAP_ELEMENT_WORDS, BITMAP_ELEMENT_ALL_BITS): Remove
4801 unnecessary casts.
4802 (bitmap_first_set_bit): Return unsigned, use ctzl.
4803 (bitmap_last_set_bit): Remove.
4804 * bitmap.c (bitmap_element_zerop, bitmap_copy): Make iterator
4805 unsigned.
4806 (bitmap_first_set_bit): Return unsigned, require non-empty bitmap,
4807 remove special case code for two word elements.
4808 (bitmap_last_set_bit): Remove.
4809 * ra-build.c (livethrough_conflicts_bb): Replace unnecessary use of
4810 bitmap_first_set_bit with bitmap_empty_p.
4811 * tree-outof-ssa.c (analyze_edges_for_bb): Likewise.
4812 * tree-ssa-pre.c (bitmap_print_value): Use simple flag rather than
4813 bitmap_last_bit_set.
4814
4815 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
4816
4817 PR target/16796
4818 * config/rs6000/rs6000.md: Add DF & SF reg move peepholes.
4819
4820 PR target/16458
4821 * config/rs6000/rs6000.c (rs6000_generate_compare): Generate an
4822 unsigned equality compare when we know the operands are unsigned.
4823
4824 2004-11-10 Peter S. Mazinger <ps.m@gmx.net>
4825
4826 * config/mips/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Define
4827 __PIC__ and __pic__ only if TARGET_ABICALLS.
4828 (SUBTARGET_CPP_SPECS): Don't define or undefine __PIC__ and __pic__.
4829 (SUBTARGET_ASM_SPECS): Don't pass -non_shared to assembler; pass
4830 -KPIC only if not -mno-abicalls.
4831
4832 * config/alpha/linux.h, config/arm/linux-elf.h, config/pa/pa-linux.h
4833 * config/sparc/linux.h, config/sparc/linux64.h
4834 (TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ if flag_pic.
4835
4836 * config/arm/linux-gas.h (CPP_SPEC): Don't define __PIC__ or __pic__.
4837 * config/pa/pa/linux.h (CPP_SPEC): Likewise.
4838 * config/sparc/linux.h (CPP_SUBTARGET_SPEC): Likewise.
4839 * config/sparc/linux64.h (CPP_SUBTARGET_SPEC): Likewise.
4840
4841 2004-11-11 Paul Brook <paul@codesourcery.com>
4842
4843 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Save PIC
4844 register if current_function_uses_pic_offset_table is set.
4845
4846 2004-11-10 David Edelsohn <edelsohn@gnu.org>
4847
4848 * config/rs6000/rs6000.md (define_attr "type"): Add two and three.
4849 Change multi-instruction sequences to new attribute.
4850 * config/rs6000/{40x.md,440.md,603.md,6xx.md,
4851 7450.md,7xx.md,8540.md,mpc.md,power4.md,power5.md,
4852 rios1.md,rios2.md,rs64.md}: Add descriptions for two and three.
4853
4854 2004-11-10 Daniel Berlin <dberlin@dberlin.org>
4855
4856 * tree-data-ref.c (build_classic_dist_vector): If either loop
4857 is outside of the nest we asked about, the dependence can't
4858 matter.
4859 (build_classic_dir_vector): Ditto.
4860
4861 2004-11-10 Zdenek Dvorak <dvorakz@suse.cz>
4862
4863 * tree-ssa-loop-ivopts.c (get_address_cost): Add address elements in
4864 right order.
4865 (force_var_cost): Determine cost of addition and multiplication more
4866 precisely.
4867 (get_computation_cost_at): Add cost for computing address elements to
4868 the final cost.
4869
4870 * fold-const.c (fold): Attempt to use ptr_difference_const whenever
4871 one of the arguments of MINUS_EXPR is an address.
4872 (split_address_to_core_and_offset): New function.
4873 (ptr_difference_const): Handle case when one of the operands is a
4874 pointer.
4875 * tree-ssa-loop-ivopts.c (determine_base_object): Fold &*addr.
4876 (ptr_difference_cost): Pass addresses instead of objects to
4877 ptr_difference_const.
4878
4879 2004-11-10 Nathan Sidwell <nathan@codesourcery.com>
4880
4881 * tree.c (tree_check_failed): Emit general error if the list of
4882 node types is empty.
4883
4884 2004-11-10 Eric Botcazou <ebotcazou@libertysurf.fr>
4885
4886 * config/sparc/sparc.c (function_arg_union_value): New 'slotno'
4887 argument. When the union is passed in the 6th slot, build a
4888 PARALLEL with only one element.
4889 (function_arg): Adjust call to function_arg_union_value.
4890 (function_value): Likewise.
4891
4892 2004-11-10 Fariborz Jahanian <fjahanian@apple.com>
4893
4894 PR tree-optimization/17892
4895 * tree-ssa-dom.c (unsafe_associative_fp_binop): Add test for
4896 MINUS_EXPR operator.
4897
4898 2004-11-10 James A. Morrison <phython@gcc.gnu.org>
4899
4900 PR target/18230
4901 config/sparc/sparc.md (addsi3, subsi3): Set "fptype" attribute.
4902 (addv2si, addv4hi, addv2hi, subv2si, subv4hi, subv2hi): New patterns.
4903
4904 2004-11-10 Steven Bosscher <stevenb@suse.de>
4905
4906 * basic-block.h (XMALLOC_REG_SET, XFREE_REG_SET): New.
4907 (struct basic_block_def): Remove local_set and cond_local_set
4908 fields. Update comment for global_live_at_start.
4909 * flow.c (calculate_global_regs_live): Allocate local_sets and
4910 cond_local_sets here as arrays of bitmaps previously stored in
4911 bb->local_set and bb->cond_local_set. Use xmalloc instead of
4912 obstack allocated bitmaps.
4913
4914 2004-11-09 H.J. Lu <hongjiu.lu@intel.com>
4915
4916 PR target/18380
4917 * config/ia64/unwind-ia64.h (_Unwind_FindTableEntry): Mark it
4918 hidden.
4919
4920 * unwind-dw2.c (_Unwind_FindTableEntry): Removed.
4921
4922 2004-11-09 Jeff Law <law@redhat.com>
4923
4924 * cfganal.c (flow_dfs_compute_reverse_execute): Accept new
4925 argument holding last unvisited block. Start search for
4926 unvisited blocks at LAST_UNVISITED rather than EXIT_BLOCK.
4927 (connect_infinite_loops_to_exit): Supply last unvisited block
4928 to flow_dfs_compute_reverse_execute.
4929
4930 2004-10-22 Aldy Hernandez <aldyh@redhat.com>
4931
4932 * config/rs6000/rs6000.md (fix_truncdfsi2): Handle e500
4933 doubles.
4934 (floatunssidf2): Same.
4935 (floatsidf2): Same.
4936 ("extendsfdf2"): New expander.
4937 (*extendsfdf2_fpr): Rename.
4938 (*truncdfsf2_fpr): Same.
4939 (*negdf2_fpr): Same.
4940 (*absdf2_fpr): Same.
4941 (*nabsdf2_fpr): Same.
4942 (*adddf3_fpr): Same.
4943 (*subdf3_fpr): Same.
4944 (*muldf3_fpr): Same.
4945 (*divdf3_fpr): Same.
4946
4947 * config/rs6000/spe.md ("spe_extendsfdf2"): Remove FIXME comment.
4948 ("spe_fix_truncdfsi2"): Same.
4949 (spe_floatunssidf2): Same.
4950 (spe_floatsidf2): Same.
4951
4952 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
4953
4954 PR c/18322
4955 * c-common.c (fname_decl): Don't use line number of decl in
4956 diagnostic.
4957
4958 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
4959
4960 * config/s390/s390-protos.h (s390_pool_operand): Remove.
4961 * config/s390/s390.c (s390_pool_operand): Likewise.
4962 (s390_extra_constraint_str): Handle 'B' constraints.
4963 * config/s390/s390.h (CONSTRAINT_LEN): Handle 'B' constraints.
4964 * config/s390/s390.md: Document 'B' constraints.
4965 ("*cmpdi_cct", "*cmpsi_cct"): Use 'B' constraint instead of
4966 s390_pool_operand to prevent insns with two literal pool
4967 references. Make pattern commutative.
4968 ("*cmpdi_ccu", "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use
4969 'B' constraint instead of s390_pool_operand.
4970
4971 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4972
4973 * tree-cfg.c (create_bb): Remove unnecessary memset.
4974
4975 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4976
4977 * tree-ssa-threadupdate.c (copy_phis_to_block): Remove.
4978 (thread_block): Call flush_pending_stmt instead of
4979 copy_phis_to_block.
4980
4981 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4982
4983 * loop-iv.c (iv_number_of_iterations): Make it static.
4984 * cfgloop.h: Remove the corresponding prototype.
4985
4986 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4987
4988 * function.c (combine_temp_slots, assign_parms,
4989 expand_pending_sizes): Make them static.
4990 * tree.h: Remove the corresponding prototypes.
4991
4992 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4993
4994 * emit-rtl.c (copy_most_rtx): Remove.
4995 * rtl.h: Remove the corresponding prototype.
4996
4997 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
4998
4999 * cfgloop.c (flow_loops_update): Remove.
5000 * cfgloop.h: Remove the corresponding prototype.
5001
5002 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
5003
5004 * conflict.c (mark_reg, conflict_graph_compute): Remove.
5005 * basic-block.h: Remove the prototype for
5006 conflict_graph_compute.
5007
5008 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
5009
5010 * tree-if-conv.c (add_to_dst_predicate_list): Change the
5011 second argument to basic_block.
5012 (tree_if_convert_cond_expr): Update call sites.
5013
5014 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
5015
5016 * fold-const.c (pedantic_non_lvalue): Make it static.
5017 * tree.h: Remove the corresponding prototype.
5018
5019 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
5020
5021 * optabs.c (prepare_operand): Make it static.
5022 * optabs.h: Remove the corresponding prototype.
5023
5024 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
5025
5026 * reload1.c (reloads_conflict, gen_reload): Make them static.
5027 * reload.h: Remove the corresponding prototypes.
5028
5029 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
5030
5031 * reload.c (refers_to_mem_for_reload_p,
5032 refers_to_regno_for_reload_p): Make them static.
5033 * reload.h: Remove the corresponding prototypes.
5034
5035 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
5036 Eric Botcazou <ebotcazou@libertysurf.fr>
5037
5038 PR target/18230
5039 * doc/md.texi (SPARC constraints): Document 'Y' constraint.
5040 * config/sparc/sparc-modes.def: Add vector modes of 4 and 8 bytes.
5041 * config/sparc/sparc.c (sparc_vector_mode_supported_p): New function.
5042 (TARGET_VECTOR_MODE_SUPPORTED_P): Set to sparc_vector_mode_supported_p.
5043 (fp_zero_operand): Accept MODE_VECTOR_INT modes.
5044 (input_operand): Accept CONST_VECTOR with MODE_VECTOR_INT modes.
5045 (sparc_cannot_force_const_mem): Return false for CONST_VECTOR.
5046 (sparc_init_modes): Set sparc_mode_class to SF_MODE or DF_MODE for
5047 MODE_VECTOR_INT modes.
5048 (sparc_extra_constraint_check): Add new constraint 'Y'.
5049 * config/sparc/sparc.h: Define UNITS_PER_SIMD_WORD to 8 for TARGET_VIS.
5050 * config/sparc/sparc.md (V32): New mode macro for 32-bit modes.
5051 (V64): New mode macro for 64-bit modes.
5052 (movsf): Use V32 for mode instead of SF.
5053 (movsf_insn_vis): Use V32 for mode instead of SF. Add 'Y' constraint
5054 alongside 'G' constraint.
5055 (movdf): Use V64 for mode instead of DF.
5056 (movdf_insn_v9only_vis, modf_insn_sp64_vis): Use V64 for mode instead
5057 of DF. Add 'Y' constraint alongside 'G' constraint.
5058 (multi-isn and misaligned mems DFmode splitters): Use V64 for mode
5059 instead of DF.
5060
5061 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
5062
5063 * config/s390/s390.c (s390_select_ccmode): Return CCAPmode for
5064 integer NEG and ABS.
5065 * config/s390/s390.md ("*negdi2_64"): Fix op_type attribute.
5066 ("*negdi2_31"): Reimplement using a splitter.
5067 ("*negdi2_cc", "*negdi2_cconly"): New insns.
5068 ("*negdi2_sign", "*negdi2_sign_cc"): Likewise.
5069 ("*negsi2_cc", "*negsi2_cconly"): Likewise.
5070 ("*negdf2_cc", "*negdf2_cconly"): Likewise.
5071 ("*negsf2_cc", "*negsf2_cconly"): Likewise.
5072 ("*absdi2_cc", "*absdi2_cconly"): New insns.
5073 ("*absdi2_sign", "*absdi2_sign_cc"): Likewise.
5074 ("*abssi2_cc", "*abssi2_cconly"): Likewise.
5075 ("*absdf2_cc", "*absdf2_cconly"): Likewise.
5076 ("*abssf2_cc", "*abssf2_cconly"): Likewise.
5077 ("*negabsdi2_cc", "*negabsdi2_cconly"): New insns.
5078 ("*negabsdi2_sign", "*negabsdi2_sign_cc"): Likewise.
5079 ("*negabssi2_cc", "*negabssi2_cconly"): Likewise.
5080 ("*negabsdf2_cc", "*negabsdf2_cconly"): Likewise.
5081 ("*negabssf2_cc", "*negabssf2_cconly"): Likewise.
5082
5083 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
5084
5085 * config/s390/s390.c (s390_canonicalize_comparison): Reverse condition
5086 when eliminating an UNSPEC_CMPINT.
5087 (s390_secondary_input_reload_class): Fix test for CC register reload.
5088 (s390_secondary_output_reload_class): Likewise.
5089 (s390_expand_cmpmem): Swap operands. Use gen_cmpint.
5090 * config/s390/s390.md ("*cmpint_si", "*cmpint_di"): Remove.
5091 ("cmpint", "*cmpint_cc", "*cmpint_sign", "*cmpint_sign_cc"): New
5092 insn patterns with splitters.
5093
5094 2004-11-09 David Edelsohn <edelsohn@gnu.org>
5095
5096 * config/rs6000/rs6000.c (rs6000_rtx_costs): Add EQ, GTU, and LTU.
5097 * config/rs6000/rs6000.md (sCC): Split GTU and LTU patterns.
5098
5099 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
5100
5101 * tree-phinodes.c (phi_reverse): New.
5102 * tree-cfg.c (tree_make_forwarder_block, tree_duplicate_bb):
5103 Use it.
5104 * tree-flow.h: Add a prototype for phi_reverse.
5105
5106 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
5107
5108 * tree-ssa-loop-ivopts.c: Fix a comment typo.
5109
5110 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
5111
5112 PR pch/14940
5113 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __sparc__
5114 definitions.
5115
5116 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
5117
5118 * builtins.c, c-common.c, c-decl.c, c-format.c: Say "argument"
5119 instead of "arg" in diagnostics.
5120
5121 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
5122
5123 * builtins.c, c-common.c, c-decl.c, c-format.c, c-format.h,
5124 c-parse.in, c-pch.c, c-pragma.c, collect2.c, final.c, gcc.c,
5125 gcov.c, opts.c, pretty-print.h, protoize.c, reg-stack.c, rtl.c,
5126 tlink.c, config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
5127 config/avr/avr.c, config/c4x/c4x.c, config/darwin.c,
5128 config/frv/frv.c, config/h8300/h8300.c, config/i386/i386.c,
5129 config/i386/winnt.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
5130 config/iq2000/iq2000.c, config/m32r/m32r.c,
5131 config/m68hc11/m68hc11.c, config/m68k/m68k.c, config/m68k/m68k.h,
5132 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.c,
5133 config/ns32k/ns32k.c, config/rs6000/host-darwin.c,
5134 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
5135 config/sh/symbian.c, config/stormy16/stormy16.c,
5136 config/v850/v850.c: Avoid "`" as left quote, using "'" or %q, %<
5137 and %> as appropriate. Use %' as apostrophe in diagnostics where
5138 applicable. Use %< and %> in place of '' quotes where applicable.
5139 Use %qs in place of %<%s%>. Consistently quote __builtin function
5140 names.
5141
5142 2004-11-09 Hans-Peter Nilsson <hp@bitrange.com>
5143
5144 * gdbinit.in (pbb, pbm): New macros.
5145
5146 2004-11-08 Jeff Law <law@redhat.com>
5147
5148 * cfg.c (redirect_edge_succ_nodup): Use find_edge rather than
5149 implementing it inline.
5150
5151 * cfganal.c (find_edge): Search pred->succs or succ->preds,
5152 whichever is shorter.
5153
5154 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
5155
5156 * passes.c (rest_of_handle_jump): Remove dead code.
5157
5158 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
5159
5160 * tree-cfg.c (thread_jumps): Speed up by keeping a pointer to
5161 the last used element in the worklist.
5162
5163 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
5164
5165 * tree-inline.c (remap_save_expr): Make it static.
5166 * tree-inline.h: Remove the corresponding prototype.
5167
5168 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
5169
5170 * tree-ssa-loop-niter.c (upper_bound_in_type,
5171 lower_bound_in_type): Make them static.
5172 * tree.h: Remove the corresponding prototypes.
5173
5174 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
5175
5176 * tree-ssa-live.c (tpa_init, pop_best_coalesce): Make them
5177 static.
5178 * tree-ssa-live.h: Remove the corresponding prototypes.
5179
5180 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
5181
5182 * tree-if-conv.c (tree_if_conversion): Make it static.
5183 * tree-flow.h: Remove the corresponding prototype.
5184
5185 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
5186
5187 * tree-ssa-operands.c (build_ssa_operands): Make it static.
5188 * tree-flow.h: Remove the corresponding prototype.
5189
5190 2004-11-08 Andrew Pinski <pinskia@physics.uc.edu>
5191
5192 PR tree-opt/18299
5193 * tree-inline.c (copy_body_r): Change "t = t" to empty
5194 statement instead of "t".
5195
5196 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
5197
5198 * modulo-sched.c (create_partial_schedule,
5199 free_partial_schedule, reset_partial_schedule,
5200 ps_add_node_check_conflicts, rotate_partial_schedule): Make
5201 them static.
5202
5203 2004-11-08 Richard Henderson <rth@redhat.com>
5204
5205 * expmed.c (extract_force_align_mem_bit_field): Correct handling at
5206 the end of a page.
5207
5208 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
5209
5210 * sched-deps.c (add_insn_mem_dependence): Make it static.
5211 * sched-int.h: Remove the corresponding prototypes.
5212
5213 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
5214
5215 * flow.c (allocate_bb_life_data): Make it static.
5216 * basic-block.h: Remove the corresponding prototype.
5217
5218 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
5219
5220 * calls.c (split_complex_values, split_complex_types): Make
5221 them static.
5222 * expr.h: Remove the corresponding prototypes.
5223
5224 2004-11-08 Richard Earnshaw <rearnsha@arm.com>
5225
5226 * arm.c (arm_handle_notshared_attribute): Wrap declaration and use
5227 with #if TARGET_DLLIMPORT_DECL_ATTRIBUTES.
5228
5229 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
5230
5231 * tree-if-conv.c (tree_if_convert_cond_expr): Remove two "if"
5232 statements that always trigger.
5233
5234 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
5235
5236 * tree-cfg.c, tree-if-conv.c, tree-into-ssa.c,
5237 tree-scalar-evolution.c, tree-ssa-loop-im.c,
5238 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa.c,
5239 tree-vectorizer.c: Replace TREE_CHAIN with PHI_CHAIN where
5240 appropriate.
5241
5242 2004-11-08 Ben Elliston <bje@au.ibm.com>
5243
5244 * cgraph.h (cgraph_calls_p): Remove.
5245 * cgraph.c (cgraph_calls_p): Likewise.
5246
5247 * varray.h (varray_copy): Remove.
5248 * varray.c (varray_copy): Likewise.
5249
5250 2004-11-07 Andrew Pinski <pinskia@physics.uc.edu>
5251
5252 PR target/18269
5253 * config/darwin.c (machopic_indirect_data_reference):
5254 Call gen_macho_high and gen_macho_low instead of
5255 checking the mode and calling gen_macho_high_di directly.
5256 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
5257 * config/rs6000/rs6000.md: Move most of TARGET_MACHO expand/insns
5258 to darwin.md.
5259 (movdf_low, movsf_low, movsf_low_st, movsi_low, macho_correct_pic,
5260 load_macho_picbase, macho_low, macho_high): Removed.
5261 (builtin_setjmp_receiver): Call gen_macho_high and
5262 gen_macho_low instead of checking the mode and calling
5263 gen_macho_high_di directly.
5264 * config/rs6000/darwin.md (load_macho_picbase_di): Use the MD constant.
5265 (movdf_low_si, movsf_low_si, movsf_low_st_si, movsi_low_st):
5266 Moved from rs6000.md.
5267 (macho_high): New expander.
5268 (macho_high_si): Renamed version of macho_high from rs6000.md.
5269 (macho_low): New expander.
5270 (macho_low_si): Renamed version of macho_low from rs6000.md.
5271 (load_macho_picbase): New expander.
5272 (load_macho_picbase_si): Renamed version of load_macho_picbase
5273 from rs6000.md.
5274 (macho_correct_pic): New expander.
5275 (macho_correct_pic_si): Renamed version of macho_correct_pic
5276 from rs6000.md.
5277
5278 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
5279
5280 * c-decl.c (finish_struct): Use complete sentences for diagnostic
5281 for structures or unions with no members or named members.
5282
5283 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
5284
5285 * c-typeck.c (build_unary_op): Replace unreachable diagnostic for
5286 taking address of bit-field by assertion.
5287
5288 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
5289
5290 * config/s390/s390.md (attribute "op_type"): Default to "NN".
5291 (attribute "atype"): Default to "agen".
5292 (attribute "length"): Default to 6.
5293 (define_asm_attibutes): Remove.
5294 ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
5295 "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf",
5296 "*clc", "*mvc", "*nc", "*oc", "*xc", "*xc_zero"):
5297 Do not set type attribute to "cs" where already default.
5298 ("*cmpint_si", "*cmpint_di", "fix_truncdfsi2_ibm", "floatsidf2_ibm",
5299 "*negdi2_31"):
5300 Do not set type attribute to "other" where already default.
5301 ("movti", "*movdi_64", "*movdi_31", "*movdf_31",
5302 "*strlendi", "*strlensi",
5303 "*movmem_long_64", "*movmem_long_31",
5304 "*clrmem_long_64", "*clrmem_long_31",
5305 "*cmpmem_long_64", "*cmpmem_long_31",
5306 "*cmpint_si", "*cmpint_di",
5307 "addti3", "*adddi3_31z", "*adddi3_31",
5308 "subti3", "*subdi3_31z", "*subdi3_31", "*negdi2_31",
5309 "*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg",
5310 "fix_truncdfsi2_ibm", "floatsidf2_ibm", "extendsfdf2_ibm",
5311 "*pool_entry", "pool_align", "pool_section_start",
5312 "pool_section_end", "main_pool", "reload_base_31", "pool"):
5313 Do not set op_type attribute to "NN" where already default.
5314 ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
5315 "*zero_extendqisi2_31", "*zero_extendqihi2_31",
5316 "fix_truncdfsi2_ibm", "floatsidf2_ibm"):
5317 Do not set atype attribute to "agen" where already default.
5318 ("*movmem_short", "*clrmem_short", "*cmpmem_short"): Don't set op_type.
5319
5320 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
5321
5322 * config/mips/t-iris6 (tp-bit.c): Fix target filename.
5323
5324 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
5325
5326 PR target/16830
5327 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define the
5328 R3000 and R4000 macros on IRIX.
5329
5330 2004-11-06 Andreas Schwab <schwab@suse.de>
5331
5332 PR target/16286
5333 * config/rs6000/altivec.h: Replace bool by __bool and pixel by
5334 __pixel.
5335
5336 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
5337
5338 * tree-ssa-copyrename.c (rename_ssa_copies): Make it static.
5339
5340 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
5341
5342 * config/s390/2064.md ("z_int", "z_agen"): Ensure the condition
5343 matches no insns already matched by other reservations.
5344 * config/s390/2084.md ("x_int", "x_agen"): Ensure the condition
5345 matches no insns already matched by other reservations.
5346 ("x_ss"): Remove, replace by ...
5347 ("x_cs"): ... this new reservation. Check type instead of op_type.
5348 Update bypasses to use x_cs instead of x_ss.
5349 ("x_nn"): Remove, replace by ...
5350 ("x_other"): ... this new reservation. Check type instead of op_type.
5351 Add x_other and x_branch to bypasses.
5352 ("x_vs"): New reservation.
5353 * config/s390/s390.md (attribute "type"): Default according to op_type.
5354 ("*execute"): Set type to "cs".
5355
5356 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
5357
5358 * fold-const.c (non_lvalue): Don't construct NON_LVALUE_EXPR
5359 if we are in GIMPLE.
5360
5361 2004-11-06 Hans-Peter Nilsson <hp@bitrange.com>
5362
5363 PR rtl-optimization/17933
5364 * rtlanal.c (dead_or_set_regno_p): Break out common code to...
5365 (covers_regno_p): New function. Handle SETs of PARALLEL,
5366 and defer the rest to...
5367 (covers_regno_no_parallel_p): New function.
5368
5369 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
5370
5371 * config/sparc/sparc.c (function_arg_record_value_1): Skip
5372 fields with zero length.
5373 (function_arg_record_value_2): Likewise.
5374 (function_arg_record_value_3): Use smallest_mode_for_size
5375 instead of mode_for_size.
5376 (function_arg_union_value): Return naked register for unions
5377 with zero length.
5378
5379 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
5380
5381 * config/sparc/sparc.c (scan_record_type): Handle vector types.
5382 (function_arg_slotno): Handle vector types specially.
5383 (function_arg_record_value_1): Split fields with vector type and
5384 BLKmode into their subparts.
5385 (function_arg_record_value_2): Likewise. Be prepared to handle
5386 more than 2 registers per field.
5387 (function_arg_union_value): Increment regno inside the loop.
5388 (function_arg_vector_value): New function.
5389 (function_arg): Use it to split fields with vector type and
5390 BLKmode into their subparts and build a PARALLEL. Treat
5391 other vector types like floats.
5392 (function_value): Likewise.
5393 (sparc_pass_by_reference): Handle vector types.
5394 (sparc_return_in_memory): Likewise.
5395
5396 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
5397
5398 * tree-cfg.c (find_taken_edge_cond_expr): Remove an "if"
5399 statement that never triggers.
5400
5401 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
5402
5403 * config/s390/2064.md ("z_o2", "z_o3"): Remove.
5404 * config/s390/2084.md ("x_o2", "x_o3"): Remove.
5405 ("x_fdivd"): Use also for fsqrtd type.
5406 ("x_fdivs"): Use also for fsqrts type.
5407 * config/s390/s390.md (attribute "type"): Remove "o2" and "o3" types.
5408 ("fix_truncdfsi2_ieee"): Set type to "ftoi".
5409 ("fix_truncdfsi2_ibm"): Set type to "other".
5410 ("floatdidf2", "floatdisf2"): Do not clobber CC.
5411 ("floatsidf2", "floatsidf2_ieee"): Likewise.
5412 ("floatsisf2", "floatsisf2_ieee"): Likewise.
5413 ("truncdfsf2", "truncdfsf2_ieee"): Only allow "register_operand".
5414 ("truncdfsf2_ibm"): Only allow "nonimmediate_operand". Use LER
5415 instead of LRER.
5416 ("extendsfdf2_ibm"): Do not set atype. Set type to "floads".
5417 ("sqrtdf2"): Set type to "fsqrtd".
5418 ("sqrtsf2"): Set type to "fsqrts".
5419
5420 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
5421
5422 * tree-phinodes.c (remove_all_phi_nodes_for): Speed up using a
5423 pointer to the last PHI node in the new PHI chain.
5424
5425 2004-11-06 Kaz Kojima <kkojima@gcc.gnu.org>
5426
5427 * config/sh/sh.c (prepare_move_operands): Emit a use of r12
5428 for non-PIC TLS_MODEL_INITIAL_EXEC case.
5429
5430 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
5431
5432 * expmed.c: Fix a comment typo.
5433
5434 2004-11-06 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
5435
5436 PR target/18106
5437 * config/i386/cygming.h
5438 [HAVE_GAS_WEAK] (ASM_WEAKEN_LABEL): Macro defined.
5439
5440 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
5441
5442 * config/sh/sh4a.md: Fix copyright.
5443
5444 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
5445
5446 * config/rs6000/darwin.md, config/sh/sh4a.md: Replace GNU CC
5447 with GCC.
5448
5449 2004-11-05 David Edelsohn <edelsohn@gnu.org>
5450
5451 * config/rs6000/rs6000.md (scc patterns): Replace subfc with subf
5452 when carry not used. Suggested by Torbjorn Granlund.
5453
5454 * config/rs6000/rs6000.c (rs6000_emit_move): Don't force_reg
5455 operand[1] unnecessarily. Suggested by Eric Christopher.
5456 (rs6000_adjust_cost): Increase latency of store to wider load.
5457 (rs6000_rtx_costs): mulli only allows 16-bit constants.
5458
5459 2004-11-05 Stan Shebs <shebs@apple.com>
5460
5461 * config/rs6000/rs6000.c (machopic_output_stub): Output
5462 ldu instead of lwzu for 64-bit stubs.
5463
5464 2004-11-05 Richard Henderson <rth@redhat.com>
5465
5466 * config/alpha/alpha.c (alpha_expand_unaligned_load): Special case
5467 size 2 with BWX.
5468 (alpha_expand_unaligned_store): Likewise.
5469
5470 2004-11-05 Richard Henderson <rth@redhat.com>
5471
5472 * expmed.c (extract_force_align_mem_bit_field): New.
5473 (extract_split_bit_field): Call it.
5474
5475 2004-11-05 Richard Henderson <rth@redhat.com>
5476
5477 * ia64.md (UNSPEC_SHRP): New.
5478 (dshift_count_operand): New.
5479 (ashrti3, ashrti3_internal, lshrti3, lshrti3_internal, shrp): New.
5480 * ia64.c (rtx_needs_barrier): Handle UNSPEC_SHRP.
5481
5482 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
5483
5484 * c-typeck.c (output_init_element): Return early if value is
5485 error_mark_node.
5486
5487 2004-11-05 James E Wilson <wilson@specifixinc.com>
5488
5489 * invoke.texi (-fno-guess-branch-probability): Rewrite.
5490
5491 * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC_GR_SPILL): Change
5492 1 to UNSPEC_GR_SPILL.
5493
5494 2004-11-05 Andreas Krebbel <krebbel1@de.ibm.com>
5495
5496 * config/s390/s390.c (s390_fixed_condition_code_regs): New function.
5497 (TARGET_FIXED_CONDITION_CODE_REGS): Macro defined.
5498
5499 2004-11-05 Nathan Sidwell <nathan@codesourcery.com>
5500
5501 * bitmap.h (enum bitmap_bits): Remove.
5502 (bitmap_operation): Remove.
5503 (bitmap_and, bitmap_and_into, bitmap_and_compl,
5504 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
5505 bitmap_xor_into): Prototype.
5506 * bitmap.c (bitmap_elt_insert_after, bitmap_elt_clear_from): New.
5507 (bitmap_operation): Remove.
5508 (bitmap_and, bitmap_and_into, bitmap_and_compl,
5509 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
5510 bitmap_xor_into): New.
5511 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Adjust.
5512
5513 PR tree-optimization/18307
5514 * tree-ssa-alias.c (merge_pointed_to_info): Protected against DEST
5515 and ORIG being the same node.
5516
5517 2004-11-04 Geoffrey Keating <geoffk@apple.com>
5518
5519 * Makefile.in (distclean): Don't delete nonexistent fixinc/ directory.
5520 (install-mkheaders): Install the version built for the
5521 host, not for the build machine.
5522 * configure.ac: Always run fixincludes.
5523 (all_outputs): Remove mkheaders.
5524 * configure: Regenerate.
5525 * fixinc.in: Move to fixincludes/.
5526 * mkfixinc.sh: Likewise.
5527 * mkheaders.in: Likewise.
5528 * README-fixinc: Likewise.
5529
5530 2004-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
5531
5532 PR target/18263
5533 * config/arc/lib1funcs.asm (___umulsidi3): Change use of cmp to the
5534 equivalent on the A4.
5535
5536 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
5537
5538 * doc/c-tree.texi, doc/cfg.texi, doc/contrib.texi, doc/cpp.texi,
5539 doc/cppopts.texi, doc/extend.texi, doc/fragments.texi,
5540 doc/frontends.texi, doc/gcov.texi, doc/hostconfig.texi,
5541 doc/implement-c.texi, doc/install.texi, doc/invoke.texi,
5542 doc/libgcc.texi, doc/md.texi, doc/passes.texi,
5543 doc/portability.texi, doc/rtl.texi, doc/sourcebuild.texi,
5544 doc/standards.texi, doc/tm.texi, doc/tree-ssa.texi,
5545 doc/trouble.texi: Correct end-of-sentence markup and markup of
5546 "etc.", "e.g." and "i.e.". Use @code in various places where
5547 appropriate.
5548
5549 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
5550
5551 * doc/c-tree.texi, doc/cfg.texi, doc/extend.texi, doc/gty.texi,
5552 doc/install.texi, doc/invoke.texi, doc/md.texi, doc/passes.texi,
5553 doc/rtl.texi, doc/tm.texi, doc/tree-ssa.texi: Remove trailing
5554 whitespace.
5555
5556 2004-11-04 Mark Mitchell <mark@codesourcery.com>
5557
5558 * config/arm/arm.c (arm_handle_notshared_attribute): New function.
5559 * doc/extend.texi: Document "notshared" attribute.
5560
5561 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5562
5563 * tree-phinodes.c (make_phi_node): Make it static.
5564 * tree.h: Remove the prototypes for make_phi_node.
5565
5566 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5567
5568 * stmt.c (expand_asm, expand_asm_operands): Make them static.
5569 * tree.h: Remove the prototypes for expand_asm and
5570 expand_asm_operands.
5571
5572 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5573
5574 * passes.c (rest_of_compilation): Make it static.
5575 * toplev.h: Remove the prototype for rest_of_compilation.
5576
5577 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5578
5579 * jump.c (cleanup_barriers): Use delete_insn instead of
5580 delete_barrier.
5581 (delete_barrier): Remove.
5582 * rtl.h: Remove the corresponding prototype.
5583
5584 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5585
5586 * expr.c (mostly_zero_p): Make it static.
5587 * tree.h: Remove the prototype for mostly_zeros_p.
5588
5589 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5590
5591 * cfgrtl.c (force_nonfallthru_and_redirect): Make it static.
5592
5593 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5594
5595 * builtins.c (expand_builtin_return_addr,
5596 expand_builtin_longjmp, expand_builtin_trap): Make them static.
5597 * expr.h: Remove the prototypes for expand_builtin_longjmp and
5598 expand_builtin_trap.
5599 * tree.h: Remove the prototype for expand_builtin_return_addr.
5600
5601 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5602
5603 * tree-cfg.c (find_taken_edge): Reject VAL begin NULL.
5604 * tree-ssa-ccp.c (visit_cond_stmt): Don't call find_taken_edge
5605 with VAL being NULL.
5606
5607 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5608
5609 * cfghooks.c (delete_basic_block): Remove code to truncate
5610 edge vectors.
5611
5612 2004-11-04 Andrew Pinski <pinskia@physics.uc.edu>
5613
5614 * flow.c (init_propagate_block_info): Change the type of i to
5615 unsigned.
5616
5617 2004-11-04 Ulrich Weigand <uweigand@de.ibm.com>
5618
5619 PR tree-optimization/18184
5620 * c-typeck.c (comptypes): Do not treat pointers of different
5621 modes or alias-all flags as equivalent.
5622 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Likewise.
5623
5624 2004-11-04 Joseph S. Myers <joseph@codesourcery.com>
5625
5626 * doc/gty.texi, doc/makefile.texi, doc/sourcebuild.texi: Don't
5627 reference specific C parser files in examples.
5628
5629 2004-11-04 Richard Sandiford <rsandifo@redhat.com>
5630
5631 PR target/15342
5632 * regrename.c (scan_rtx): Treat the destinations of SETs and CLOBBERs
5633 as OP_INOUT if the instruction is predicated.
5634
5635 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5636
5637 * bitmap.h: Fix a comment typo. Follow spelling conventions.
5638 * tree-vectorizer.c: Fix a comment typo.
5639
5640 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5641
5642 * sdbout.c (SDB_GENERATE_FAKE): Remove.
5643 (gen_fake_label): Don't use SDB_GENERATE_FAKE.
5644 * system.h: Poison SDB_GENERATE_FAKE.
5645 * doc/tm.texi (SDB_GENERATE_FAKE): Remove.
5646
5647 2004-11-04 Ulrich Weigand <uweigand@de.ibm.com>
5648
5649 * config/s390/s390.md ("*addsi3_sign"): Use canonical RTL.
5650
5651 2004-11-04 Eric Botcazou <ebotcazou@libertysurf.fr>
5652
5653 PR other/18277
5654 * gthr-posix.h (__gthread_recursive_mutex_init_function): Revert
5655 2004-10-29 patch
5656
5657 2004-11-04 Nathan Sidwell <nathan@codesourcery.com>
5658
5659 * predict.c (propagate_freq): Make bitno unsigned. Move
5660 npredecessors update out of loop.
5661
5662 * bitmap.h (bitmap_iterator): Remove word_bit and bit
5663 fields. Rename others.
5664 (bmp_iter_common_next_1, bmp_iter_single_next_1,
5665 bmp_iter_single_init, bmp_iter_end_p, bmp_iter_single_next,
5666 bmp_iter_and_not_next_1, bmp_iter_and_not_init,
5667 bmp_iter_and_not_next, bmp_iter_and_next_1, bmp_iter_and_init,
5668 bmp_iter_and_next): Remove.
5669 (bmp_iter_set_init, bmp_iter_and_init, bmp_iter_and_compl_init,
5670 bmp_iter_next, bmp_iter_set, bmp_iter_and, bmp_iter_and_compl):
5671 New.
5672 (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_IN_BITMAP,
5673 EXECUTE_IF_AND_COMPL_IN_BITMAP): Adjust.
5674
5675 * bitmap.h (bitmap_a_or_b, bitmap_a_and_b): Remove.
5676 * df.c (dataflow_set_a_op_b): Use bitmap_and, bitmap_ior,
5677 bitmap_and_into, bitmap_ior_into as appropriate.
5678 * except.c (remove_eh_handler): Likewise.
5679 * global.c (modify_bb_reg_pav, make_accurate_live_analysis): Likewise.
5680 * tree-dfa.c (mark_new_vars_to_rename): Likewise.
5681 * tree-ssa-alias.c (merge_pointed_to_info): Likewise.
5682 * tree-ssa-live.h (live_merge_and_clear): Likewise.
5683 * tree-ssa-loop-ivopts.c (find_best_candidate, try_add_cand_for):
5684 Likewise.
5685
5686 * bitmap.c (bitmap_print): Make bitno unsigned.
5687 * bt-load.c (clear_btr_from_live_range,
5688 btr_def_live_range): Likewise.
5689 * caller-save.c (save_call_clobbered_regs): Likewise.
5690 * cfganal.c (compute_dominance_frontiers_1): Likewise.
5691 * cfgcleanup.c (thread_jump): Likewise.
5692 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
5693 * conflict.c (conflict_graph_compute): Likewise.
5694 * ddg.c (add_deps_for_use): Likewise.
5695 * df.c (df_refs_update): Likewise.
5696 * except.c (remove_eh_handler): Likewise.
5697 * flow.c (verify_local_live_at_start, update_life_info,
5698 initialize_uninitialized_subregs, propagate_one_insn,
5699 free_propagate_block_info, propagate_block, find_use_as_address,
5700 reg_set_to_hard_reg_set): Likewise.
5701 * gcse.c (clear_modify_mem_tables): Likewise.
5702 * global.c (global_conflicts, build_insn_chain): Likewise.
5703 * ifcvt.c (dead_or_predicable): Likewise.
5704 * local-alloc.c (update_equiv_regs): Likewise.
5705 * loop.c (load_mems): Likewise.
5706 * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs):
5707 Likewise.
5708 * ra-rewrite.c (reloads_to_loads, rewrite_program2, actual_spill):
5709 Likewise.
5710 * reload1.c (order_regs_for_reload, finish_spills): Likewise.
5711 * sched-deps.c (sched_analyze_insn, free_deps): Likewise.
5712 * sched-rgn.c (propagate_deps
5713 * tree-cfg.c (tree_purge_all_dead_eh_edges): Likewise.
5714 * tree-dfa.c (dump_dfa_stats
5715 tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
5716 insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags):
5717 Likewise.
5718 * tree-outof-ssa.c (coalesce_ssa_name, coalesce_vars,
5719 free_temp_expr_table, find_replaceable_exprs): Likewise.
5720 * tree-sra.c (scan_function, scalarize_parms): Likewise.
5721 * tree-ssa-alias.c (init_alias_info,
5722 compute_points_to_and_addr_escape,
5723 compute_flow_sensitive_aliasing, maybe_create_global_var): Likewise.
5724 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Likewise.
5725 * tree-ssa-live.c (new_tree_live_info, live_worklist,
5726 calculate_live_on_entry, calculate_live_on_exit, compare_pairs,
5727 sort_coalesce_list, build_tree_conflict_graph, dump_live_info
5728 tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
5729 tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
5730 add_call_read_ops): Likewise.
5731 * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Likewise.
5732 * tree-ssa-live.h (num_var_partitions): Return unsigned.
5733
5734 2004-11-03 Dorit Naishlos <dorit@il.ibm.com>
5735
5736 PR tree-optimization/18009
5737 * tree-vectorizer.h (enum dr_alignment_support): New type.
5738 (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): Removed.
5739 (LOOP_UNALIGNED_DR): replaced with LOOP_VINFO_UNALIGNED_DR and holds a
5740 single data_reference (instead of a varray of references).
5741 * tree-vectorizer.c (new_loop_vec_info): Likewise.
5742 (vect_gen_niters_for_prolog_loop): Likewise.
5743 (vect_update_inits_of_drs): Likewise.
5744
5745 (vect_update_inits_of_drs): Setting of DR_MISALIGNMENT moved to
5746 vect_enhance_data_refs_alignment.
5747 (vect_do_peeling_for_alignment): Likewise.
5748 (vect_enhance_data_refs_alignment): Decide if and by how much to peel;
5749 this functionality used to be in vect_analyze_data_refs_alignment.
5750 Also update DR_MISALIGNMENT due to peeling; this functionality used to
5751 be in vect_update_inits_of_drs and vect_do_peeling_for_alignment).
5752 (vect_analyze_data_refs_alignment): Decision on whether and by how much
5753 to peel moved to vect_enhance_data_refs_alignment. Call
5754 vect_supportable_dr_alignment.
5755
5756 (vect_compute_data_ref_alignment): Set STMT_VINFO_VECTYPE.
5757 (vect_compute_data_refs_alignment): Return bool. Consider return value
5758 of vect_compute_data_ref_alignment and return true/false accordingly.
5759 (vect_enhance_data_refs_alignment): Consider return value of
5760 vect_compute_data_refs_alignment and return true/false accordingly.
5761
5762 (vect_supportable_dr_alignment): New function.
5763 (vectorizable_store): Call vect_supportable_dr_alignment.
5764 (vectorizable_load): Call vect_supportable_dr_alignment. Alignment
5765 support checks moved from here to vect_supportable_dr_alignment.
5766
5767 (vect_transform_loop): Avoid 80 columns overflow.
5768
5769 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
5770
5771 * timevar.c (timevar_enable): Change from
5772 static.
5773 (timevar_push): Rename to ...
5774 (timevar_push_1): this and remove the
5775 enabled check.
5776 (timevar_pop): Rename to ...
5777 (timevar_pop_1): this and remove the
5778 enabled check.
5779 * timevar.h (POP_TIMEVAR_AND_RETURN): Use do/while loops.
5780 (timevar_pop): New macro.
5781 (timevar_push): New macro.
5782 (timevar_enable): Declare.
5783
5784 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
5785
5786 * config/darwin.h (REAL_LIBGCC_SPEC): Define to use shared
5787 libgcc for shared libraries.
5788
5789 2004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
5790
5791 * config/s390/s390-protos.h (s390_split_access_reg): Add prototype.
5792 * config/s390/s390.c (s390_split_access_reg): New function.
5793 (regclass_map): Add access registers.
5794 (get_thread_pointer): Use access register instead of UNSPEC_TP.
5795 * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Set to 38.
5796 (ACCESS_REGNO_P, ACCESS_REG_P): New macros.
5797 (TP_REGNUM): New define.
5798 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5799 REG_ALLOC_ORDER): Add access registers.
5800 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
5801 CANNOT_CHANGE_MODE_CLASS): Support access registers.
5802 (enum reg_class): Add ACCESS_REGS.
5803 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
5804 (REG_CLASS_FROM_LETTER): Add 't' constraint.
5805 (REGISTER_NAMES): Add access registers.
5806 * config/s390/s390.md (UNSPEC_TP): Remove.
5807 ("*movdi_64"): Add access register alternatives. Provide splitters
5808 to split DImode access register <-> GPR moves into SImode moves.
5809 ("*movsi_zarch", "*movsi_esa"): Add access register alternatives.
5810 ("movstrictsi"): Likewise.
5811 ("get_tp_64", "get_tp_31"): Reimplement using access registers.
5812 ("set_tp_64", "set_tp_31"): Likewise.
5813 ("*set_tp"): New insn.
5814
5815 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
5816
5817 * tree-phinodes.c (resize_phi_node): Copy only a portion of
5818 the PHI node currently in use.
5819
5820 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
5821
5822 PR tree-opt/18231
5823 * tree.c (staticp) <case FUNCTION_DECL>: Nested functions are static
5824 also.
5825
5826 2004-11-03 Andrew MacLeod <amacleod@redhat.com>
5827
5828 PR tree-optimization/18270
5829 * tree-outof-ssa.c (analyze_edges_for_bb): If a block has incoming
5830 abnormal edges, commit all pending stmts on incoming edges.
5831
5832 2004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
5833
5834 * tree-ssa-loop-ivopts.c (get_address_cost): Offset zero does not
5835 cause extra costs. Generate canonical RTL.
5836
5837 2004-11-02 Daniel Berlin <dberlin@dberlin.org>
5838
5839 * lambda-code.c (lambda_compute_auxillary_space): Update comments.
5840 (lambda_compute_target_space). Ditto.
5841 * lambda.h (lambda_trans_matrix): Ditto.
5842 (lambda_linear_expression): Ditto.
5843 (lambda_body_vector): Ditto.
5844 (lambda_loopnest): Ditto.
5845 * tree-loop-linear.c (gather_interchange_stats): Combine tests,
5846 update comments, and remove pointless addition of 0.
5847 (linear_transform_loops): Update comments.
5848
5849 2004-11-03 Sebastian Pop <pop@cri.ensmp.fr>
5850
5851 * tree.c (tree_fold_gcd): Use FLOOR_MOD_EXPR instead of
5852 CEIL_MOD_EXPR.
5853
5854 2004-11-03 Jeff Law <law@redhat.com>
5855
5856 * predict.c (struct block_info_def): Kill "tovisit" field.
5857 (propagate_freq): Accept new "tovisit" parameter. Change
5858 read/write access methods for "tovisit" to check the "tovisit"
5859 bitmap instead of a bit in block_info_def.
5860 (estimate_loops_at_level): Allocate "tovisit" bitmap. Pass
5861 it to propagate_freq.
5862
5863 * stmt.c (expand_case): Speed up code to detect duplicate case
5864 label targets and count unique case label targets.
5865
5866 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
5867
5868 * cppdefault.c, cppdefault.h, timevar.h: Update copyright.
5869
5870 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
5871
5872 * bitmap.h, dbxout.c, tree-mudflap.c: Fix comment formatting.
5873
5874 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
5875
5876 * tree-cfg.c (find_taken_edge): Abort if we are given a
5877 statement that is neither COND_EXPR nor SWITCH_EXPR.
5878
5879 2004-11-02 Zdenek Dvorak <dvorakz@suse.cz>
5880
5881 * fold-const.c (fold): Reassociate also (x - mult) + mult and
5882 (mult - x) + mult. Cast operands of expression after applying
5883 distributive law to the correct types. Apply distributive law
5884 to a * c - b * c for all non-float types.
5885
5886 2004-11-02 Geoffrey Keating <geoffk@apple.com>
5887
5888 * configure.ac: Don't clear STMP_FIXINC or STMP_FIXPROTO just
5889 because we don't want to run them now; instead, set them to
5890 stmp-install-fixproto or stmp-install-fixinc.
5891 * Makefile.in (stmp-install-fixproto): New.
5892 (stmp-install-fixinc): New.
5893 * configure: Regenerate.
5894
5895 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
5896
5897 * flow.c (init_propagate_block_info): Use bitmap_empty_p on result
5898 of bitmap_xor.
5899
5900 2004-11-02 Ziemowit Laski <zlaski@apple.com>
5901
5902 * c-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
5903 (c_types_compatible_p): Move function definition...
5904 * c-objc-common.c (c_types_compatible_p): ...here.
5905 * c-objc-common.h (LANG_HOOKS_TYPES_COMPATIBLE_P): Moved here from
5906 c-lang.c.
5907
5908 2004-11-02 Steven Bosscher <stevenb@suse.de>
5909
5910 * cfgloop.h (struct loop): Update comment.
5911 * cse.c (cse_main): Remove obsolete comment.
5912
5913 * expr.h (gen_cond_trap): Move prototype under functions provided
5914 by optabs.c.
5915 (canonicalize_condition, get_condition): Move to...
5916 * rtl.h (canonicalize_condition, get_condition): ...here.
5917 (branch_target_load_optimize): Add comment that this function is
5918 in bt-load.c.
5919 * loop.c (canonicalize_condition, get_condition): Move to...
5920 * rtlanal.c (canonicalize_condition, get_condition): ...here.
5921 * sched-deps.c (get_condition): Rename to sched_get_condition.
5922 (add_dependence): Update this caller.
5923
5924 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
5925
5926 PR tree-opt/16808
5927 * tree-ssa.c (replace_immediate_uses): If we call fold_stmt, make sure
5928 that the vops get marked for renaming.
5929
5930 2004-11-02 Andreas Krebbel <krebbel1@de.ibm.com>
5931
5932 * config/s390/s390.md ("movcc"): Set type attribute.
5933
5934 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
5935
5936 * tree-phinodes.c (add_phi_arg): Add an assertion that the
5937 edge already exists.
5938
5939 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
5940
5941 * tree-phinodes.c (remove_phi_arg_num): Do not zero the
5942 element that's being removed.
5943
5944 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
5945
5946 * tree-ssa-threadupdate.c (copy_phis_to_block): Install PHI
5947 arguments using PENDING_STMT.
5948 (thread_block): Call copy_phis_to_block after redirecting an
5949 edge.
5950
5951 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
5952
5953 * bitmap.h (bitmap_and, bitmap_and_into, bitmap_and_compl,
5954 bitmap_and_compl_into, bitmap_ior, bitmap_iot_into,
5955 bitmap_ior_compl, bitmap_xor, bitmap_xor_into): Produce void.
5956 (bitmap_ior_and_compl_into): Produce bool.
5957 (bitmap_union_of_diff): Rename to ...
5958 (bitmap_ior_and_compl): ... here. Produce bool.
5959 * bitmap.c (bitmap_ior_and_compl_into): Return bool. Use
5960 bitmap_operation directly.
5961 (bitmap_union_of_diff): Rename to ...
5962 (bitmap_ior_and_compl): ... here. Return bool, use
5963 bitmap_operation directly.
5964 * df.c (df_rd_transfer_function): Use bitmap_ior_and_compl.
5965 (df_ru_transfer_function, df_lr_transfer_function): Likewise.
5966 * global.c (modify_bb_reg_pav): Likewise.
5967
5968 * bitmap.h (bitmap_equal_p): Return bool.
5969 (bitmap_intersect_p, bitmap_intersect_compl_p): Declare.
5970 * bitmap.c (bitmap_equal_p): Return bool. Compare directly.
5971 (bitmap_intersect_p, bitmap_intersect_compl_p): New.
5972 * flow.c (calculate_global_regs_live): Use bitmap_intersect_p and
5973 bitmap_intersect_compl_p.
5974 * ifcvt (dead_or_predicable): Likewise.
5975
5976 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
5977
5978 PR rtl-optimization/17104
5979 * config/rs6000/rs6000.c (rs6000_emit_move): Don't wrap small
5980 loads in zero_extend.
5981
5982 2004-11-02 Danny Smith <dannysmith@users.sourceforge.net>
5983
5984 PR debug/18242
5985 * toplev.c (debug_type_names): Remove "dwarf-1".
5986
5987 2004-11-02 Ben Elliston <bje@au.ibm.com>
5988
5989 * timevar.h (timevar_get): Remove.
5990 * timevar.c (timevar_get): Remove unused function.
5991
5992 2004-11-02 Joseph S. Myers <joseph@codesourcery.com>
5993
5994 * doc/include/texinfo.tex: Update from Texinfo CVS.
5995
5996 2004-11-02 Ben Elliston <bje@au.ibm.com>
5997
5998 * cppdefault.h (cpp_SYSROOT): Remove.
5999 * cppdefault.c (cpp_SYSROOT): Likewise.
6000
6001 2004-11-01 Andrew MacLeod <amacleod@redhat.com>
6002
6003 PR tree-optimization/16447
6004 * tree-cfg.c (bsi_commit_one_edge_insert): Rename from
6005 bsi_commit_edge_inserts_1, and make funtion external. Return new block.
6006 (bsi_commit_edge_inserts): Use renamed bsi_commit_one_edge_insert.
6007 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Enable listing.
6008 * tree-flow.h (bsi_commit_one_edge_insert): Extern decl.
6009 * tree-outof-ssa.c (rewrite_trees): Don't commit edges here.
6010 (same_stmt_list_p): New. Return TRUE if edge is to be forwarded.
6011 (identical_copies_p): New. Return true is two copies are the same.
6012 (identical_stmt_lists_p): New. Return true if stmt lists are the same.
6013 (analyze_edges_for_bb): New. Determine how best to insert edge stmts
6014 for a basic block.
6015 (perform_edge_inserts): New. Determine what to do with all stmts that
6016 have been inserted on edges.
6017 (remove_ssa_form): Analyze and commit edges from here.
6018
6019 2004-11-01 Andrew Pinski <pinskia@physics.uc.edu>
6020
6021 PR bootstrap/18232
6022 * bitmap.h (bmp_iter_end_p): Take a const pointer instead of a struct.
6023 (EXECUTE_IF_SET_IN_BITMAP): Update call to bmp_iter_end_p.
6024 (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
6025 (EXECUTE_IF_AND_IN_BITMAP): Likewise.
6026
6027 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
6028
6029 PR c/18239
6030 * c-decl.c (get_parm_info): Allow FUNCTION_DECLs to appear amongst
6031 parameter declarations.
6032
6033 2004-11-01 Andreas Krebbel <krebbel1@de.ibm.com>
6034
6035 * config/s390/s390.c (regclass_map): Put reg 33 (cc) to CC_REGS group.
6036 (s390_secondary_input_reload_class)
6037 (s390_secondary_output_reload_class): Use GENERAL_REGS to reload a cc
6038 register.
6039 (s390_expand_cmpmem): Enable cmpmem implementation.
6040 * config/s390/s390.h (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
6041 Added three new classes: CC_REGS, ADDR_CC_REGS, GENERAL_CC_REGS.
6042 (REG_CLASS_FROM_LETTER): New constraint 'c' added.
6043 * config/s390/s390.md ("movcc"): New insn pattern.
6044 * doc/md.texi: Document 'c' constraint for s390.
6045
6046 2004-11-01 Nathan Sidwell <nathan@codesourcery.com>
6047
6048 PR c++/18064
6049 * doc/extend.texi (Deprecated Features): Deprecate G++ covariant
6050 extension.
6051
6052 2004-10-16 Daniel Berlin <dberlin@dberlin.org>
6053
6054 Fix PR tree-optimization/17672
6055 Fix PR tree-optimization/18168
6056
6057 * lambda-code.c (lambda_lattice_compute_base): Fix reversed
6058 assert test.
6059 (gcc_tree_to_linear_expression): Add extra to existing constant.
6060 (depth_of_nest): Factor out function used in various places.
6061 (gcc_loop_to_lambda_loop): Clean up code a little bit. No
6062 functional changes.
6063 (find_induction_var_from_exit_cond): Stop guessing, and just
6064 get the right answer :).
6065 (gcc_loopnest_to_lambda_loopnest): Remove useless pre-allocation.
6066 Print out message about result of attempt to create perfect nest.
6067 (lbv_to_gcc_expression): Add type argument, use it to do math
6068 and induction variable creation.
6069 (lle_to_gcc_expression): Ditto.
6070 (lambda_loopnest_to_gcc_loopnest): Create new iv with same type as
6071 oldiv. Pass type argument to lle_to_gcc_expression and
6072 lbv_to_gcc_expression.
6073 Reset number of iterations after transformation.
6074 (perfect_nestify): Remove useless pre-allocation, and cleanup
6075 a small amount.
6076
6077 * tree-data-ref.c (build_classic_dist_vector): Return false for
6078 dependences completely outside of the loop nest we asked about.
6079 (build_classic_dir_vector): Ditto.
6080 (compute_data_dependences_for_loop): Only add dependence relations
6081 inside the loop we asked about.
6082
6083 * tree-loop-linear.c (linear_transform_loops): Use DDR_SIZE_VECT.
6084 Compute immediate uses.
6085
6086 * tree-optimize.c: Move linear_transform_loops to before ivcanon.
6087
6088 2004-11-01 Kazu Hirata <kazu@cs.umass.edu>
6089
6090 * tree-cfg.c (thread_jumps): Fix a comment typo.
6091
6092 2004-11-01 Kazu Hirata <kazu@cs.umass.edu>
6093
6094 * tree-cfg.c (thread_jumps): Fix a comment typo.
6095
6096 2004-10-31 Nicolas Pitre <nico@cam.org>
6097
6098 * config/arm/ieee754-sf.S (floatdisf): Fix regression with
6099 values smaller than 2^32.
6100
6101 2004-10-31 Jeff Law <law@redhat.com>
6102
6103 * cfgloop.h (struct loop): Remove unused "nodes" field.
6104 * timevar.def (TV_TREE_LOOP_BOUNDS): New.
6105 * tree-data-ref.c (find_data_references_in_loop): Use get_loop_body
6106 instead of calling flow_bb_inside_loop_p for every basic block
6107 in the function.
6108 * tree-ssa-loop.c (pass_record_bounds): Use TV_TREE_LOOP_BOUNDS.
6109
6110 2004-10-31 Graham Stott <graham.stott@btinternet.com>
6111
6112 * config/pa/pa.md: (prefetch_64, prefetch_32): Fix typo. Use
6113 INT_5_BITS instead of VAL_5_BITS_P.
6114
6115 2004-10-31 Roger Sayle <roger@eyesopen.com>
6116
6117 PR middle-end/14521
6118 * tree-inline.c (inline_forbidden_p_1): Use %qF instead of '%F'
6119 for consistent quoting in diagnostic messages.
6120 (expand_call_inline): Likewise.
6121 * tree-optimize.c (tree_rest_of_compilation): Likewise.
6122 * tree-ssa.c (warn_uninitialized_var): Likewise.
6123 (warn_uninitialized_phi): Likewise.
6124
6125 2004-10-31 Richard Sandiford <rsandifo@redhat.com>
6126
6127 * config/mips/mips.c (mips_cannot_change_mode_class): Use a stricter
6128 mode check.
6129
6130 2004-10-31 Kazu Hirata <kazu@cs.umass.edu>
6131
6132 * c-common.c: Fix a comment typo.
6133
6134 2004-10-31 Jason Merrill <jason@redhat.com>
6135
6136 PR middle-end/17526
6137 * tree-gimple.c (is_gimple_mem_rhs): Also require a val for
6138 aggregate types that are not BLKmode.
6139
6140 2004-10-30 Ziemowit Laski <zlaski@apple.com>
6141
6142 * c-common.h (objc_lookup_ivar): Add second parameter to
6143 prototype.
6144 * c-typeck.c (build_external_ref): After looking up symbol,
6145 pass it to objc_lookup_ivar() to decide whether it or the
6146 ivar should be used, rather than deciding the issue locally.
6147 * stub-objc.c (objc_lookup_ivar): Add an OTHER parameter,
6148 which is simply returned in the non-ObjC case.
6149
6150 2004-10-30 Danny Smith <dannysmith@users.sourceforge.net>
6151
6152 * sdbout.c (sdbout_symbol): Do not output type .def statements
6153 for builtin types.
6154
6155 2004-10-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
6156
6157 * c-common.c (catenate_strings): New.
6158 (c_parse_error): Use it. Don't over-escape.
6159
6160 2004-10-30 Kaz Kojima <kkojima@gcc.gnu.org>
6161
6162 * config/sh/sh.c (calc_live_regs): Declare reg as unsigned and
6163 modify the for loop expressions for it. Remove unnecessary casts.
6164 (sh_expand_prologue): Declare reg as unsigned.
6165 (sh_gimplify_va_arg_expr): Initinalize lab_over.
6166 (sh_handle_sp_switch_attribute): Add const qualifier appropriately.
6167
6168 2004-10-30 Geoffrey Keating <geoffk@apple.com>
6169
6170 * doc/invoke.texi (Darwin Options): Improve description of
6171 how the subtype is chosen.
6172
6173 2004-10-30 Roger Sayle <roger@eyesopen.com>
6174
6175 PR middle-end/18096
6176 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Check that
6177 the stack adjustment, "size", is valid for Pmode. If the stack
6178 frame is too large, generate a trap insn and issue a warning.
6179
6180 2004-10-30 Kazu Hirata <kazu@cs.umass.edu>
6181
6182 * tree-ssa-dom.c: Fix comment typos.
6183
6184 2004-10-30 Kaz Kojima <kkojima@gcc.gnu.org>
6185
6186 * config/sh/sh.c (prepare_move_operands): Use operands[0]
6187 for the output rtl if no_new_pseudos is set. Remove redundant
6188 line.
6189
6190 2004-10-30 Joseph S. Myers <joseph@codesourcery.com>
6191
6192 PR c/16666
6193 * c-decl.c (start_function): Don't check for DECL_BUILT_IN when
6194 determining whether to copy parameter types from a previous
6195 prototype declaration.
6196
6197 2004-10-29 Roger Sayle <roger@eyesopen.com>
6198
6199 PR rtl-optimization/17581
6200 * cselib.c (cselib_process_insn): The last instruction of a libcall
6201 block, with the REG_RETVAL note, should be considered in the libcall.
6202 * gcse.c (do_local_cprop): Allow constants to be propagated outside
6203 of libcall blocks.
6204 (adjust_libcall_notes): Use simplify_replace_rtx instead of
6205 replace_rtx to avoid creating invalid RTL in REG_RETVAL notes.
6206
6207 2004-10-30 Kazu Hirata <kazu@cs.umass.edu>
6208
6209 * tree-phinodes.c (create_phi_node): Don't zero PHI_REWRITTEN.
6210
6211 2004-10-29 Jeff Law <law@redhat.com>
6212
6213 * tree-ssa-dom.c (struct edge_info): New structure holding
6214 edge equivalences and edge redirection information.
6215 (get_eq_expr_value, record_dominating_conditions): Kill.
6216 (propagate_to_outgoing_edges): Renamed from cprop_into_phis.
6217 Call record_edge_info.
6218 (allocate_edge_info, free_edge_info): New.
6219 (tree_ssa_dominator_optimize): Use propagate_to_outgoing_edges
6220 rather than cprop_into_phis. Free all edge infos before threading
6221 jumps.
6222 (thread_across_edge): Allocate new edge info structures as needed
6223 and store the redirection target into the edge info structure
6224 instead of the edge's AUX field.
6225 (dom_opt_initialize_block): Mark unused argument with ATTRIBUTE_UNUSED.
6226 (record_equivalence_from_incoming_edge): Lose unnecessary argument.
6227 Revamp code which finds and records equivalences associated with
6228 edges to use saved data in the edge_info structure.
6229 (record_equivalencs_from_phis): Similarly.
6230 (dom_opt_finalize_block): Revamp code which finds and records
6231 equivalences associated with edges to use saved data in the
6232 edge_info structure.
6233 (build_and_record_new_cond): New function.
6234 (record_conditions): Use build_and_record_new_cond to record
6235 dominating conditions.
6236 (record_edge_info): New function.
6237 (record_range): Tighten test for conditions which create
6238 useful range records.
6239
6240 2004-10-29 Geoffrey Keating <geoffk@apple.com>
6241
6242 * config/i386/darwin.h (ASM_SPEC): Simplify.
6243 (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
6244 * config/rs6000/darwin.h (DARWIN_SUBARCH_SPEC): New.
6245 (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
6246 * config/darwin.h (LINK_COMMAND_SPEC): Don't pass -arch here.
6247 (LINK_SPEC): Do pass -arch here. Handle -force_cpusubtype_ALL
6248 in all cases. Pass the right -arch or -arch_only based on -mcpu.
6249 (ASM_SPEC): Handle -force_cpusubtype_ALL.
6250 * doc/invoke.texi (Darwin Options): Improve documentation for
6251 Darwin linker (and libtool) switches.
6252
6253 * config/rs6000/darwin-fallback.c: Include <mach/thread_status.h>.
6254
6255 2004-10-29 Stan Shebs <shebs@apple.com>
6256
6257 * config/rs6000/darwin-tramp.asm: Make more 64-bit-friendly.
6258
6259 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
6260
6261 * tree-phinodes.c (allocate_phi_node): New.
6262 (make_phi_node, resize_phi_node): Use it.
6263
6264 2004-10-29 David Edelsohn <edelsohn@gnu.org>
6265
6266 * config/rs6000/sysv4.h (TARGET_POWER): Define as 0.
6267 * config/rs6000/darwin.h (TARGET_POWER): Define as 0.
6268
6269 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
6270
6271 * tree-phinodes.c (make_phi_node, resize_phi_node): Don't zero
6272 the whole PHI node.
6273 * tree.h (tree_phi_node): Tell the garbage collector to chase
6274 num_args arguments.
6275
6276 2004-10-29 Richard Earnshaw <rearnsha@arm.com>
6277
6278 * opts.c (decode_options): Lower the crossjump threshold for -Os.
6279
6280 2004-10-29 Diego Novillo <dnovillo@redhat.com>
6281
6282 * tree.h (struct tree_ssa_name): Remove field 'equiv'.
6283
6284 2004-10-28 Nathan Sidwell <nathan@codesourcery.com>
6285
6286 * bitmap.h (bitmap_empty_p): New.
6287 (bitmap_and, bitmap_and_into, bitmap_and_compl,
6288 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into,
6289 bitmap_ior_compl, bitmap_xor, bitmap_xor_into): New bitmap
6290 operation macros.
6291 (bitmap_ior_and_compl): Rename to ...
6292 (bitmap_ior_and_compl_into): ... here.
6293 * bitmap.c (bitmap_equal_p): Use bitmap_xor.
6294 (bitmap_ior_and_compl): Rename to ...
6295 (bitmap_ior_and_compl_into): ... here. Adjust. Return changed
6296 flag.
6297 (bitmap_union_of_diff): Use renamed bitmap functions.
6298 * basic-block.h (AND_REG_SET, AND_COMPL_REG_SET, IOR_REG_SET,
6299 XOR_REG_SET, IOR_AND_COMPL_REG_SET): Likewise.
6300 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
6301 * df.c (df_bb_rd_local_compute)
6302 * flow.c (calculate_global_regs_live,
6303 init_propagate_block_info): Likewise.
6304 * ifcvt.c (find_if_case_1, find_if_case_2,
6305 dead_or_predicable): Likewise.
6306 * ra-build.c (union_web_part_roots, livethrough_conflicts_bb,
6307 reset_conflicts, conflicts_between_webs): Likewise.
6308 * ra-rewrite.c (reloads_to_loads, rewrite_program2,
6309 detect_web_parts_to_rebuild): Likewise.
6310 * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
6311 * tree-int-ssa.c (insert_phi_nodes_for, rewrite_into_ssa): Likewise.
6312 * tree-sra.c (decide_instantiations): Likewise.
6313 * tree-ssa-alias.c (create_name_tags,
6314 merge_pointed_to_info): Likewise.
6315 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
6316 * tree-ssa-loop-im.c (move_computations): Likewise.
6317 * tree-ssa-operands.c (get_call_expr_operands): Likewise.
6318 * tree-ssa-pre.c (fini_pre): Likewise.
6319 * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
6320 * tree-ssanames.c (any_marked_for_rewrite_p): Likewise.
6321 * tree-vectorizer.c (vectorize_loops): Likewise.
6322
6323 2004-10-29 Nick Clifton <nickc@redhat.com>
6324
6325 config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): When
6326 adding the PIC register to the fixed_regs array, also add it
6327 to the call_used_regs array.
6328
6329 2004-10-29 Eric Botcazou <ebotcazou@libertysurf.fr>
6330
6331 * gthr-posix.h (__gthread_recursive_mutex_init_function): Guard
6332 with #ifdef PTHREAD_MUTEX_RECURSIVE/#endif pairs.
6333
6334 2004-10-28 Daniel Berlin <dberlin@dberlin.org>
6335
6336 * tree-into-ssa.c (rewrite_virtual_phi_arguments): New function.
6337 (rewrite_blocks): Modify argument, and use it to decide which
6338 function to call.
6339 (rewrite_def_def_chains): Call rewrite_blocks with true here.
6340 (rewrite_into_ssa): and call it with false here.
6341
6342 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
6343
6344 * tree-phinodes.c (add_phi_arg): Turn an "if" that always
6345 triggers into gcc_assert.
6346
6347 2004-10-28 Diego Novillo <dnovillo@redhat.com>
6348
6349 PR tree-optimization/16728
6350 * tree-flow.h (get_ptr_info): Declare.
6351 * tree-ssa-alias.c (get_ptr_info): Make extern.
6352 * tree-ssa-copy.c (merge_alias_info): Merge flow-sensitive
6353 alias information.
6354
6355 2004-10-28 Stan Shebs <shebs@apple.com>
6356
6357 * config/rs6000/darwin.h (SUBTARGET_EXTRA_SPECS): Handle -m64.
6358 * config/rs6000/rs6000.c (rs6000_darwin_file_start): Add ppc64
6359 case.
6360
6361 2004-10-28 Frank Ch. Eigler <fche@redhat.com>
6362
6363 * tree-mudflap.c (mudflap_init): Mark cache-lookup decls to
6364 prevent their later unnecessary registration.
6365 (mf_build_check_statement_for): Remove "addr" argument, and
6366 related "__mf_value" generated code. Update callers.
6367 (mf_decl_eligible_p): New function, factored from mx_register_decls.
6368 (mx_register_decls): Call it.
6369 (mf_xform_derefs_1): Rewrite COMPONENT_REF and ARRAY_REF cases
6370 to restore support for complex nested expressions.
6371 (mudflap_enqueue_decl): Simplify. Move registration call emission
6372 out ...
6373 (mudflap_finish_file): ... to here.
6374 (mudflap_enqueue_constant): Remove dump code.
6375
6376 2004-10-28 Zack Weinberg <zack@codesourcery.com>
6377
6378 PR 18199
6379 * dbxout.c (dbxout_begin_complex_stabs_noforcetext): New function.
6380 (DBX_FINISH_STABS): Add (unused by default) SYM parameter.
6381 (dbxout_finish_complex_stabs): Update to match.
6382 (dbxout_symbol_location): Call emit_pending_bincls_if_required
6383 and FORCE_TEXT before DBX_STATIC_BLOCK_START. Use
6384 dbxout_begin_complex_stabs_noforcetext.
6385 * xcoffout.h (DBX_FINISH_STABS): Restore special case for
6386 N_GSYM, using new SYM parameter. Correct logic for special
6387 cases for N_FUN.
6388
6389 * varasm.c (function_section): If DECL is NULL_TREE, don't try
6390 to do anything else. Do not call get_insns if cfun or
6391 cfun->emit are NULL.
6392
6393 2004-10-28 Adam Nemet <anemet@lnxw.com>
6394
6395 PR middle-end/18160
6396 * c-typeck.c (c_mark_addressable): Issue error if address of a
6397 register variable is taken. Use "%qD" to print DECL_NAME.
6398
6399 2004-10-28 Diego Novillo <dnovillo@redhat.com>
6400
6401 * opts.c (decode_options): Don't run PRE at -Os.
6402
6403 2004-10-28 Richard Henderson <rth@redhat.com>
6404
6405 * config/alpha/alpha.md (movqicc_internal): Allow exactly one
6406 zero in the conditional.
6407 (movhicc_internal, movsicc_internal, movdicc_internal): Likewise.
6408
6409 2004-10-28 Richard Henderson <rth@redhat.com>
6410
6411 * cse.c (memory_extend_rtx): Remove.
6412 (cse_main): Don't set it.
6413 (cse_insn): Use a local buffer instead.
6414
6415 2004-10-28 Andreas Krebbel <krebbel1@de.ibm.com>
6416
6417 * profile.c (branch_prob): Call to init_edge_profiler added.
6418 * rtl-profile.c (rtl_init_edge_profiler): New function.
6419 (rtl_gen_edge_profiler): Replaced call to insert_insn_on_edge with
6420 call to safe_insert_insn_on_edge.
6421 (rtl_profile_hooks): rtl_init_edge_profiler added.
6422 * tree-profile.c (tree_init_edge_profiler): New function.
6423 (tree_profile_hooks): tree_init_edge_profiler added.
6424 * value-prof.h (profile_hooks) init_edge_profiler prototype added.
6425
6426 2004-10-28 Nick Clifton <nickc@redhat.com>
6427
6428 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Use
6429 emit_jump_insn() to generate the return instruction.
6430
6431 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
6432
6433 * tree-phinodes.c: Remove trailing whitespace.
6434
6435 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
6436
6437 * tree-ssa-loop-ivopts.c: Fix a comment typo.
6438 * doc/invoke.texi: Fix a typo.
6439
6440 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
6441
6442 * Makefile.in (OBJS-common): Remove duplicates.
6443
6444 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
6445
6446 * lambda-code.c (nestify_update_pending_stmts): Remove.
6447 (perfect_nestify): Use flush_pending_stmts instead of
6448 nestify_update_pending_stmts.
6449 * tree-cfg.c (tree_make_forwarder_block): Use
6450 flush_pending_stmts.
6451 * tree-flow.h: Add a prototype for flush_pending_stmts.
6452 * tree-ssa-loop-manip.c (tree_duplicate_loop_to_header_edge):
6453 Use flush_pending_stmts.
6454 (lv_update_pending_stmts): Remove.
6455 (tree_ssa_loop_version): Use flush_pending_stmts instead of
6456 lv_update_pending_stmts.
6457 * tree-ssa.c (flush_pending_stmts): New.
6458
6459 2004-10-28 Ulrich Weigand <uweigand@de.ibm.com>
6460
6461 PR target/15286
6462 * final.c (alter_subreg): Compute correct offset to use with
6463 paradoxical SUBREGs of memory operands.
6464 * recog.c (general_operand): Allow paradoxical SUBREGs of
6465 memory operands after reload.
6466 * simplify-rtx.c (simplify_gen_subreg): Fail if simplify_subreg
6467 has failed when passed a hard register.
6468
6469 2004-10-28 Aldy Hernandez <aldyh@redhat.com>
6470
6471 * function.c (assign_parm_setup_block): Handle parallels correctly.
6472
6473 2004-10-28 Kaz Kojima <kkojima@gcc.gnu.org>
6474
6475 * final.c (shorten_branches): Initialize flags structure.
6476
6477 2004-10-28 Nathan Sidwell <nathan@codesourcery.com>
6478
6479 * tree.c (int_cst_node, int_cst_hash_table): New variables.
6480 (init_ttree): Initialize them.
6481 (int_cst_hash_hash, int_cst_hash_eq): New hashing functions.
6482 (build_int_cst_wide): Use hash table for oversized integers.
6483
6484 2004-10-28 Nick Clifton <nickc@redhat.com>
6485
6486 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Define
6487 begin_label.
6488
6489 2004-10-27 Richard Henderson <rth@redhat.com>
6490
6491 PR middle-end/18163
6492 * expr.c (emit_group_load): Don't go force temporary for memory
6493 or concat source.
6494 (emit_group_store): Similarly.
6495
6496 2004-10-27 Andrew Pinski <pinskia@physics.uc.edu>
6497
6498 PR other/18186
6499 * common.opt (--param): Fix spelling of parameter.
6500
6501 2004-10-27 Andrew Pinski <pinskia@physics.uc.edu>
6502
6503 PR tree-opt/17529
6504 * tree-cfg.c (remove_useless_stmts_1) <case SWITCH_EXPR>:
6505 Don't fold statement.
6506 <case ASM_EXPR>: Fold the statement.
6507
6508 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
6509
6510 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
6511 <COND_EXPR>: Use EDGE_COUNT instead of GOTO_DESTINATION.
6512
6513 2004-10-28 Joseph S. Myers <jsm@polyomino.org.uk>
6514
6515 * doc/contrib.texi, doc/cpp.texi, doc/cppopts.texi,
6516 doc/extend.texi, doc/gcov.texi, doc/install.texi, doc/invoke.texi,
6517 doc/libgcc.texi, doc/md.texi, doc/passes.texi,
6518 doc/sourcebuild.texi, doc/tm.texi: Improve Texinfo formatting.
6519
6520 2004-10-28 Joseph S. Myers <jsm@polyomino.org.uk>
6521
6522 * doc/c-tree.texi, doc/cpp.texi, doc/implement-c.texi,
6523 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/tm.texi: Put
6524 punctuation outside quotes.
6525
6526 2004-10-27 David Mosberger <davidm@hpl.hp.com>
6527 James E Wilson <wilson@specifixinc.com>
6528
6529 PR target/13158
6530 * config/ia64/ia64.c (ia64_expand_epilogue): Set RTX_FRAME_RELATED_P on
6531 sibcall alloc instruction.
6532 (process_set): Handle sibcall alloc instruction.
6533
6534 2004-10-27 Geoffrey Keating <geoffk@apple.com>
6535
6536 * config/rs6000/rs6000.c (rs6000_attribute_table): Add
6537 SUBTARGET_ATTRIBUTE_TABLE.
6538 * config/darwin.h (ASM_WEAKEN_DECL): Handle weak_import.
6539 (SUBTARGET_ATTRIBUTE_TABLE): Define.
6540 * config/darwin.c (darwin_handle_weak_import_attribute): New.
6541 (HAVE_DEAD_STRIP): Delete.
6542 (no_dead_strip): Don't test HAVE_DEAD_STRIP.
6543 * config/darwin-protos.h (darwin_handle_weak_import_attribute):
6544 Prototype.
6545
6546 * doc/tm.texi (USE_SELECT_SECTION_FOR_FUNCTIONS): Document.
6547
6548 * config/darwin.h (GTHREAD_USE_WEAK): Define.
6549
6550 2004-10-28 Ben Elliston <bje@au.ibm.com>
6551
6552 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): New.
6553 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Likewise.
6554 * params.h (SRA_MAX_STRUCTURE_SIZE): New.
6555 (SRA_FIELD_STRUCTURE_RATIO): Likewise.
6556 * tree-sra.c: Include "params.h".
6557 (decide_block_copy): Use new parameters.
6558 * doc/invoke.texi (Optimize Options): Document new SRA pass
6559 parameters sra-max-structure-size and sra-field-structure-ratio.
6560
6561 2004-10-27 Nicolas Pitre <nico@cam.org>
6562
6563 * config/arm/ieee754-df.S (floatdidf): Fix regression with big values.
6564
6565 2004-10-27 Zdenek Dvorak <dvorakz@suse.cz>
6566
6567 PR tree-optimization/18048
6568 * fold-const.c (try_move_mult_to_index): New function.
6569 (fold): Use try_move_mult_to_index.
6570 * tree-ssa-loop-ivopts.c (try_add_cand_for): Prefer common candidates.
6571 * tree-ssa-loop-niter.c (number_of_iterations_cond): Produce
6572 an all-ones unsigned constant without extra bits.
6573 * tree.c (build_low_bits_mask): New function.
6574 * tree.h (build_low_bits_mask): Declare.
6575
6576 2004-10-27 David Edelsohn <edelsohn@gnu.org>
6577
6578 PR target/17956
6579 * config/rs6000/rs6000.md (maxsf3): Add !flag_trapping_math to
6580 final condition.
6581 (minsf3): Same.
6582 (maxdf3): Same.
6583 (mindf3): Same.
6584
6585 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
6586
6587 * tree-cfg.c (thread_jumps): Speed up by reordering the two
6588 conditions for entering basic blocks into worklist.
6589
6590 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
6591
6592 * tree-cfg.c (thread_jumps): Speed up by pretending to have
6593 ENTRY_BLOCK_PTR in worklist.
6594
6595 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
6596
6597 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
6598 <GOTO_EXPR>: Don't let an explicit GOTO_EXPR slip through.
6599
6600 2004-10-27 Daniel Berlin <dberlin@dberlin.org>
6601
6602 Fix PR tree-optimization/17133
6603
6604 * tree-cfg.c (rewrite_to_new_ssa_names_bb): Also rewrite must
6605 def kill operand.
6606
6607 * tree-flow-inline.h: V_MUST_DEF_OP became V_MUST_DEF_RESULT.
6608 (get_v_must_def_result_ptr): Modify for new structure of
6609 v_must_defs array.
6610 (get_v_must_def_kill_ptr): New.
6611 (op_iter_next_use): Add support for the kill that occurs in V_MUST_DEFs.
6612 (op_iter_next_tree): Ditto. Also V_MAY_DEF_OP became V_MAY_DEF_RESULT.
6613 (op_iter_next_def): V_MAY_DEF_OP became V_MAY_DEF_RESULT.
6614 (op_iter_init): Initialize new mustu members.
6615 (op_iter_next_mustdef): New function.
6616 (op_iter_init_mustdef): Ditto.
6617
6618 * tree-flow.h (rewrite_def_def_chains): New function.
6619
6620 * tree-into-ssa.c (mark_def_sites): Handle mustdefkill operands.
6621 (ssa_mark_def_sites): Ditto.
6622 (rewrite_stmt): Ditto.
6623 (ssa_rewrite_stmt): Ditto.
6624 (rewrite_blocks): Factor out from rewrite_into_ssa.
6625 (mark_def_block_sites): Ditto.
6626 (rewrite_def_def_chains): New function, just rewrites def-def
6627 chains without phi node insertion.
6628
6629 * tree-pass.h (TODO_fix_def_def_chains): New todo flag.
6630
6631 * tree-optimize.c (execute_todo): Handle TODO_fix_def_def_chains.
6632
6633 * tree-pretty-print.c (dump_vops): Print out MUST_DEF's so that
6634 they include the rhs now.
6635
6636 * tree-ssa-ccp.c (visit_assignment): V_MUST_DEF_OP became
6637 V_MUST_DEF_RESULT.
6638
6639 * tree-ssa-dce.c (mark_operand_necessary): Add phionly argument.
6640 Update callers.
6641 (mark_really_necessary_kill_operand_phis): New function.
6642 (perform_tree_ssa_dce): Call it.
6643 (pass_dce): Add TODO_fix_def_def_chains.
6644 (pass_cd_dce): Ditto.
6645
6646 * tree-ssa-loop-im.c (determine_max_movement): Look at kills as
6647 well.
6648 (rewrite_mem_refs): Ditto.
6649
6650 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Look at kills
6651 as well.
6652
6653 * tree-ssa-operands.c (allocate_v_may_def_optype):
6654 v_may_def_operand_type_t became v_def_use_operand_type_t.
6655 (allocate_v_must_def_optype) Ditto.
6656 (finalize_ssa_v_must_defs): Update for new operand type, as well
6657 as setting the use portion as well.
6658 (copy_virtual_operands): Copy the kill operand as well.
6659 (create_ssa_artficial_load_stmt): V_MUST_DEF_OP became
6660 V_MUST_DEF_RESULT.
6661
6662 * tree-ssa-operands.h (v_may_def_operand_type): Renamed to
6663 v_def_use_operand_type.
6664 (v_must_def_optype_d): Use v_def_use_operand_type.
6665 (V_MUST_DEF_OP_*): Renamed to V_MUST_DEF_RESULT_*
6666 (V_MUST_DEF_KILL_*): New macros.
6667 (struct ssa_operand_iterator_d): Add num_v_mustu and v_mustu_i
6668 members.
6669 Rename existing must_i and num_v_must members to mustd_i and
6670 num_v_mustd.
6671 (SSA_OP_VMUSTDEFKILL): New flag.
6672 (SSA_OP_VIRTUAL_KILLS): New flag.
6673 (SSA_OP_ALL_OPERANDS): Add in SSA_OP_ALL_KILLS.
6674 (SSA_OP_ALL_KILLS): New flag.
6675 (FOR_EACH_SSA_MUSTDEF_OPERAND): New macro.
6676
6677 * tree-ssa.c (verify_ssa): Verify virtual kills as well.
6678
6679 * tree-vectorizer.c (vect_create_data_ref_ptr): V_MUST_DEF_OP
6680 became V_MUST_DEF_RESULT.
6681 (rename_variables_in_bb): Rename kill pointer as well.
6682
6683 * tree-dfa.c (compute_immediate_uses_for_stmt): Add kills into the
6684 immediate uses.
6685
6686 2004-10-27 Richard Sandiford <rsandifo@redhat.com>
6687
6688 * dbxout.c (dbxout_source_line): Move declaration of begin_label to
6689 the block that needs it.
6690
6691 2004-10-27 Zack Weinberg <zack@codesourcery.com>
6692
6693 * dbxout.c (dbxout_finish_complex_stabs): Mark 'line' variable
6694 ATTRIBUTE_UNUSED.
6695
6696 2004-10-27 Zack Weinberg <zack@codesourcery.com>
6697
6698 * c-lex.c (cb_def_pragma): Clean up code for making location
6699 palatable to diagnostic.c.
6700
6701 2004-10-27 Steven Bosscher <stevenb@suse.de>
6702
6703 PR tree-optimization/17757
6704 * tree-phinodes.c (remove_phi_arg_num): Don't remove PHIs
6705 without any PHI arguments left. Make sure the argument that
6706 we're supposed to remove exists at all.
6707
6708 2004-10-27 Paul Brook <paul@codesourcery.com>
6709
6710 * configure.ac: Don't test for [build] __cxa_atexit when building a
6711 cross compiler.
6712 * configure: Regenerate.
6713
6714 2004-10-27 Paul Brook <paul@codeosurcery.com>
6715
6716 * configure.ac: Use build_exeext not host_exeext when lookin for
6717 target tools.
6718 * configure: Regenerate.
6719
6720 2004-10-27 Andreas Krebbel <krebbel1@de.ibm.com>
6721
6722 * config/s390/s390.md ("*subdf3_cc"): Replaced plus by minus.
6723
6724 2004-10-27 Andreas Krebbel <krebbel1@de.ibm.com>
6725 patch originally created by Kelley Cook <kcook@gcc.gnu.org>
6726
6727 PR middle-end/14684
6728 * opts.c (OPT_fprofile_generate): Default to -funroll-loops
6729 to match -fprofile-use.
6730
6731 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
6732
6733 * config/rs6000/rs6000.c: Fix a comment typo.
6734
6735 2004-10-27 Zack Weinberg <zack@codesourcery.com>
6736
6737 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Increment line
6738 counter.
6739
6740 2004-10-27 Andreas Schwab <schwab@suse.de>
6741
6742 * varasm.c (default_stabs_asm_out_destructor): Mark symbol as
6743 unused.
6744 (default_stabs_asm_out_constructor): Likewise.
6745
6746 2004-10-26 Geoffrey Keating <geoffk@apple.com>
6747
6748 * builtins.c (fold_builtin_unordered_cmp): Always bring both
6749 operands to the same type.
6750
6751 2004-10-26 James E Wilson <wilson@specifixinc.com>
6752
6753 PR target/18010
6754 * emit-rtl.c (emit_copy_of_insn_after): Copy RTX_FRAME_RELATED_P.
6755
6756 2004-10-26 Zack Weinberg <zack@codesourcery.com>
6757
6758 * dbxout.c: Include obstack.h.
6759 (ASM_STABS_OP): Take XCOFF_DEBUGGING_INFO into account in
6760 default definition.
6761 (ASM_STABD_OP, NO_DBX_MAIN_SOURCE_DIRECTORY, DBX_CONTIN_CHAR):
6762 Default-define here.
6763 (DBX_CONTIN_LENGTH): Move definition with others.
6764 (DBX_FINISH_STABS): New target macro.
6765 (current_sym_code, current_sym_value, current_sym_addr)
6766 (current_sym_nchars, CHARS, dbxout_continue)
6767 (print_int_cst_octal, print_octal, print_wide_int)
6768 (dbxout_prepare_symbol, dbxout_finish_symbol): Delete.
6769 (stabstr_ob, stabstr_last_contin_point): New variables.
6770 (NUMBER_FMT_LOOP): New improper macro.
6771 (dbxout_int, dbxout_stab_value_zero, dbxout_stab_value_label)
6772 (dbxout_stab_value_label_diff, dbxout_stab_value_internal_label)
6773 (dbxout_stab_value_internal_label_diff, dbxout_stabd)
6774 (dbxout_begin_stabn, dbxout_begin_stabn_sline)
6775 (dbxout_begin_simple_stabs, dbxout_begin_simple_stabs_desc)
6776 (dbxout_begin_complex_stabs, dbxout_finish_complex_stabs)
6777 (stabstr_C, stabstr_S, stabstr_I, stabstr_D, stabstr_U, stabstr_O)
6778 (stabstr_continue, DECL_ACCESSIBILITY_CHAR)
6779 New functions and/or proper function-like macros.
6780 (CONTIN): Use stabstr_continue, unconditionally.
6781 (get_lang_number): Define unconditionally, with ATTRIBUTE_UNUSED.
6782 (dbxout_init): Initialize stabstr_ob. Check
6783 NO_DBX_MAIN_SOURCE_DIRECTORY. Only write out the Ltext label
6784 if it was used. Use the new interfaces.
6785 (dbxout_source_file): Remove file argument; always write to
6786 asm_out_file. Use the new interfaces.
6787 (dbxout_type_method_1): Remove second argument which is always
6788 DECL_ASSEMBLER_NAME of the first argument. Use the new interfaces.
6789 (dbxout_type_methods): Remove write-only variables. Use the
6790 new interfaces.
6791 (dbxout_parms): Refactor to remove code duplicated in each of
6792 several successive if-else-if blocks. Use the new interfaces.
6793 (dbxout_function_end, emit_bincl_stab, dbxout_end_source_file)
6794 (dbxout_source_line, dbxout_finish, dbxout_type_index)
6795 (dbxout_type_fields, dbxout_range_type, dbxout_type, dbxout_type_name)
6796 (dbxout_class_name_qualifiers, dbxout_symbol, dbxout_symbol_location)
6797 (dbxout_symbol_name, dbxout_reg_parms, dbxout_args)
6798 (dbx_output_lbrac, dbx_output_rbrac, dbxout_block):
6799 Use the new interfaces.
6800 * Makefile.in (dbxout.o): Update dependencies.
6801
6802 * defaults.h: Don't define ASM_STABD_OP.
6803 * output.h: Prototype new dbxout_* interfaces.
6804 * system.h: Poison DBX_OUTPUT_GCC_MARKER and DBX_FINISH_SYMBOL.
6805 * varasm.c: Don't define ASM_STABS_OP.
6806 (default_stabs_asm_out_constructor, default_stabs_asm_out_destructor):
6807 Use the new dbxout.c interfaces. Call sorry if neither
6808 DBX_DEBUGGING_INFO nor XCOFF_DEBUGGING_INFO is defined.
6809
6810 * xcoffout.h: Don't define ASM_STABS_OP.
6811 (DBX_FINISH_SYMBOL): Rewrite and rename DBX_FINISH_STABS.
6812 (DBX_OUTPUT_MAIN_SOURCE_DIRECTORY, DBX_OUTPUT_GCC_MARKER): Delete.
6813 (NO_DBX_MAIN_SOURCE_DIRECTORY, NO_DBX_GCC_MARKER): Define.
6814 (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Change bare block to
6815 do { ... } while (0) idiom.
6816
6817 * config/alpha/alpha.c (num_source_filenames): Export.
6818 * config/alpha/alpha.h (num_source_filenames): Declare.
6819 (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
6820 (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
6821 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
6822 Always use .debugsym. Update commentary.
6823 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
6824 (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
6825 * config/rs6000/linux64.h (DBX_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC):
6826 Use new interfaces.
6827 * config/rs6000/rs6000.c: If TARGET_MACHO, include gstab.h.
6828 (macho_branch_islands): Use new interfaces.
6829
6830 * doc/tm.texi: Update.
6831
6832 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
6833
6834 * expr.c (emit_group_store): Do not treat floats as BLKmode.
6835 (emit_group_load): Same.
6836
6837 2004-10-26 Joseph S. Myers <jsm@polyomino.org.uk>
6838
6839 * c-parse.in (datadef): Use pedwarn rather than error and warning
6840 for diagnostic in case of no declaration specifiers.
6841
6842 2004-10-26 Richard Sandiford <rsandifo@redhat.com>
6843
6844 PR bootstrap/15747
6845 * doc/install.texi (mips-sgi-irix5): Document that /bin/sh has been
6846 reported to hang during bootstrap and that CONFIG_SHELL=/bin/ksh
6847 can be used to work around this.
6848
6849 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
6850
6851 * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Adjust for e500
6852 doubles.
6853
6854 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
6855
6856 * stmt.c (expand_case): Update a comment.
6857
6858 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
6859
6860 * stmt.c (expand_case): Put an assertion that index_expr is
6861 never INTEGER_CST. Don't special case for constant
6862 index_expr.
6863
6864 2004-10-26 Andrew Pinski <pinskia@physics.uc.edu>
6865
6866 PR 18162
6867 * c-parse.in (designator): Finish with a semi-colon.
6868
6869 2004-10-26 Fariborz Jahanian <fjahanian@apple.com>
6870
6871 * config/rs6000/rs6000.md (andsi3_internal8): Set CR when splitting
6872 into rotlsi3.
6873
6874 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
6875
6876 * stmt.c (expand_case): Remove code to handle SWITCH_EXPR with
6877 a default case only.
6878
6879 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
6880
6881 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs): Adjust for
6882 e500 doubles.
6883 (spe_build_register_parallel): New.
6884 (rs6000_spe_function_arg): Handle e500 doubles.
6885 (function_arg): Same.
6886 (spe_func_has_64bit_regs_p): Same.
6887 (rs6000_function_value): Same.
6888 (rs6000_libcall_value): Same.
6889 (legitimate_lo_sum_address_p): Return false for e500 doubles.
6890
6891 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT): Adjust for e500
6892 doubles.
6893 (DATA_ALIGNMENT): Same.
6894 (CANNOT_CHANGE_MODE_CLASS): Same.
6895
6896 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
6897
6898 * expr.c (emit_group_load): Handle floats.
6899 (emit_group_store): Same.
6900
6901 2004-10-26 Nathan Sidwell <nathan@codesourcery.com>
6902
6903 * c-lex.c (get_nonpadding_token): Remove.
6904 (c_lex_with_flags): Push timevar and eat padding here. Improve
6905 stray token diagnostic.
6906 (lex_string): Replace logic with switch statement, eat padding
6907 token here.
6908
6909 2004-10-26 Geoffrey Keating <geoffk@apple.com>
6910
6911 PR 18149
6912 * config/i386/darwin.h (ASM_SPEC): Undef it before defining.
6913
6914 2004-10-25 Geoffrey Keating <geoffk@apple.com>
6915
6916 * config/darwin.h (LINK_SPEC): Default weak_reference_mismatches
6917 to 'non-weak'.
6918 (MAKE_DECL_ONE_ONLY): Set DECL_WEAK.
6919 (ASM_MAKE_LABEL_LINKONCE): Delete.
6920 (ASM_WEAKEN_DECL): New.
6921 (ASM_DECLARE_OBJECT_NAME): Look at DECL_WEAK not DECL_ONE_ONLY.
6922 (ASM_DECLARE_FUNCTION_NAME): Likewise.
6923 (TEXT_SECTION_ASM_OP): Add a tab.
6924 (DATA_SECTION_ASM_OP): Likewise.
6925 (SECTION_FUNCTION): Add a tab. Use fputs. Don't call
6926 data_section on every section change.
6927 (EXTRA_SECTIONS): Add a bunch of new extra sections.
6928 (EXTRA_SECTION_FUNCTIONS): Likewise.
6929 (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
6930 (JCR_SECTION_NAME): Define.
6931 (TARGET_SECTION_TYPE_FLAGS): Don't define.
6932 * config/darwin.c (darwin_encode_section_info): A symbol is defined
6933 in this file if it is not weak.
6934 (textcoal_section): Delete.
6935 (datacoal_section): Delete.
6936 (darwin_make_decl_one_only): Delete.
6937 (machopic_select_section): Handle functions.
6938 (darwin_asm_named_section): Add a tab.
6939 (darwin_section_type_flags): Delete.
6940 (darwin_unique_section): Delete contents.
6941 (darwin_emit_unwind_label): Add a tab. Make decls weak if
6942 DECL_WEAK is set.
6943 * config/darwin-protos.h (darwin_section_type_flags): Delete.
6944 (darwin_make_decl_one_only): Delete.
6945 (text_coal_section): New.
6946 (text_unlikely_section): New.
6947 (text_unlikely_coal_section): New.
6948 (const_coal_section): New.
6949 (data_coal_section): New.
6950 (const_data_coal_section): New.
6951 * varasm.c (function_section): Honour
6952 USE_SELECT_SECTION_FOR_FUNCTIONS.
6953 * dwarf2out.c (output_call_frame_info): Look at DECL_WEAK when
6954 TARGET_USES_WEAK_UNWIND_INFO is in effect.
6955 * dbxout.c (dbxout_source_file): Don't change sections while
6956 a function is being output.
6957
6958 2004-10-25 David Ayers <d.ayers@inode.at>
6959
6960 * c-common.h: Remove RID_ID.
6961 * c-parse.in: Remove OBJECTNAME and references to RID_ID.
6962 (typespec_reserved_attr): Add rule for TYPENAME
6963 non_empty_protocolrefs.
6964 (yylexname): Remove special handling of RID_ID.
6965
6966 2004-10-25 James E Wilson <wilson@specifixinc.com>
6967
6968 * doc/invoke.texi (-fcrossjumping): Not enabled at -O.
6969
6970 2004-10-25 Joseph S. Myers <jsm@polyomino.org.uk>
6971
6972 PR c/16667
6973 * c-parse.in (array_designator): New.
6974 (designator): Use it.
6975 (initelt): Only permit array_designator without '=', not ".foo".
6976
6977 2004-10-25 Kenneth Zadeck <zadeck@naturalbridge.com>
6978 * gcc/Makefile.in: removed ggc for cgraphunit.
6979 * gcc/cgraph.c.dump_cgraph_node: removed static var analysis.
6980 * gcc/cgraph.h: removed static var analysis data structures and calls.
6981 * gcc/cgraphunit.c:
6982 cgraph_mark_local_and_external_functions:changed name to
6983 cgraph_mark_local_functions
6984 (print_order,convert_UIDs_in_bitmap,new_static_vars_info,
6985 cgraph_reset_static_var_maps,get_global_static_vars_info,
6986 get_global_statics_not_read,get_global_statics_not_written,searchc,
6987 cgraph_reduced_inorder,has_proper_scope_for_analysis,check_rhs_var,
6988 check_lhs_var,get_asm_expr_operands,process_call_for_static_vars,
6989 scan_for_static_refs,cgraph_characterize_statics_local,
6990 clear_static_vars_maps,cgraph_propagate_bits,cgraph_characterize_statics):
6991 removed.
6992 (cgraph_optimize,init_cgraph): removed calls to static vars analysis
6993 * gcc/tree-dfa.c find_referenced_vars: removed call to static vars
6994 analysis
6995 * gcc/tree-flow.h static_vars_info: removed
6996 * gcc/tree-ssa-operands.c (add_call_clobber_ops,add_call_read_ops):
6997 removed calls to static vars analysis.
6998 get_call_expr_operands: removed callee variable.
6999
7000 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
7001
7002 * cfg.c (unchecked_make_edge, redirect_edge_succ,
7003 redirect_edge_pred): Use VEC_safe_push instead of
7004 VEC_safe_insert.
7005 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
7006
7007 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
7008
7009 * cfgloopmanip.c (loopify): Take two more arguments true_edge
7010 and false_edge.
7011 * cfgloop.h: Adjust the corresponding prototype.
7012 * loop-unswitch.c (unswitch_loop): Adjust a call to loopify.
7013 * tree-ssa-loop-manip.c (tree_ssa_loop_version): Likewise.
7014
7015 2004-10-25 Jakub Jelinek <jakub@redhat.com>
7016
7017 * dwarf2out.c (rtl_for_decl_location): Avoid segfault if
7018 DECL_INCOMING_RTL is NULL.
7019
7020 2004-10-25 Steven Bosscher <stevenb@suse.de>
7021
7022 * timevar.def (TV_FIND_REFERENCED_VARS): New.
7023 * tree-dfa.c (pass_referenced_var): Use it.
7024
7025 2004-10-25 Roger Sayle <roger@eyesopen.com>
7026 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7027
7028 * cse.c: Change encoding of quantity numbers to avoid undefined
7029 pointer arithmetic on qty_table.
7030 (REGNO_QTY_VALID_P): A quantity is now valid if it isn't negative.
7031 (get_cse_reg_info): Initialize reg_qty to a unique negative value.
7032 (new_basic_block): Assign "real" quantity numbers from zero.
7033 (delete_reg_equiv): Do nothing if quantity is invalid. Reset the
7034 REG_QTY to its unique negative value.
7035 (merge_equiv_classes): Calculate need_rehash if quantity is valid.
7036 (cse_main): Don't include max_reg when determining max_qty.
7037 (cse_basic_block): Avoid subtracting a large offset from qty_table,
7038 which causes undefined C99 behaviour. Only allocate needed memory.
7039
7040 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
7041
7042 * stmt.c (expand_case): Remove an obsolete comment.
7043
7044 2004-10-25 Andrew Pinski <pinskia@physics.uc.edu>
7045
7046 PR middle-end/17407
7047 * c-decl.c (grokdeclarator) <case cdk_array>: Remove the call
7048 layout_type as it is already done by build_array_type.
7049 * tree.c (build_array_type): Layout the type even
7050
7051 2004-10-25 Alexandre Oliva <aoliva@redhat.com>
7052
7053 * config/frv/linux.h (TARGET_C99_FUNCTIONS): Define to 0.
7054
7055 2004-10-25 Alexandre Oliva <aoliva@redhat.com>
7056
7057 * config/frv/frv.md (movdi, movdf): Handle wide-constant splits
7058 with wider-than-32-bit HOST_WIDE_INTs.
7059
7060 2004-10-25 David Billinghurst <David.Billinghurst@riotinto.com>
7061
7062 * config/mips/mips.c(mips_output_filename): Remove unused
7063 array ltext_label_name
7064
7065 2004-10-24 Geoffrey Keating <geoffk@geoffk.org>
7066
7067 * config/rs6000/darwin.h (BLOCK_REG_PADDING): Define.
7068
7069 2004-10-25 Ben Elliston <bje@au.ibm.com>
7070
7071 * cfgcleanup.c (outgoing_edges_match): Fix typo in dump output.
7072
7073 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
7074
7075 * predict.c (predict_loops): Call scev_finalize instead of
7076 scev_reset.
7077
7078 2004-10-24 Kazu Hirata <kazu@cs.umass.edu>
7079
7080 * config/dbxcoff.h, config/dbxelf.h, config/libgloss.h,
7081 config/openbsd.h, config/mips/r3900.h, config/pdp11/pdp11.md,
7082 config/sh/ushmedia.h, config/sparc/elf.h,
7083 config/sparc/sp64-elf.h: Update copyright.
7084
7085 2004-10-24 Kazu Hirata <kazu@cs.umass.edu>
7086
7087 * stmt.c (expand_case): Handle the default label outside of
7088 the for loop. Remove code to handle a missing default label.
7089
7090 2004-10-23 Kazu Hirata <kazu@cs.umass.edu>
7091
7092 * dbxout.c (dbxout_function_decl): Don't use
7093 DBX_OUTPUT_FUNCTION_END.
7094 * system.h: Poison DBX_OUTPUT_FUNCTION_END.
7095 * doc/tm.texi (DBX_OUTPUT_FUNCTION_END): Remove.
7096
7097 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
7098
7099 PR middle-end/17967
7100 * tree-cfg.c (remove_usless_stmts_cond): Don't Fold statement.
7101
7102 2004-10-23 Daniel Berlin <dberlin@dberlin.org>
7103
7104 * tree-ssa-dom.c (record_equality): Use loop depth to determine
7105 which way to record the equality as well.
7106 (loop_depth_of_name): New function.
7107
7108 2004-10-23 Eric Botcazou <ebotcazou@libertysurf.fr>
7109
7110 PR middle-end/17793
7111 * gimplify.c (gimplify_addr_expr) <VIEW_CONVERT_EXPR>: Look
7112 through the operand if it is a useless type conversion.
7113
7114 2004-10-23 Ben Elliston <bje@au.ibm.com>
7115
7116 * cfg.c (remove_edge): Use VEC_unordered_remove.
7117 (redirect_edge_succ): Likewise.
7118 (redirect_edge_pred): Likewise.
7119 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
7120
7121 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
7122
7123 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Don't access PTR
7124 beyond its end.
7125
7126 2004-10-22 Eric Christopher <echristo@redhat.com>
7127
7128 * config/rs6000/rs6000.c (setup_incoming_varargs): Align DFmode
7129 saves.
7130
7131 2004-10-22 Aldy Hernandez <aldyh@redhat.com>
7132
7133 * config/rs6000/spe.md (spe_extendsfdf2): New.
7134 (movdf_e500_double): New.
7135 (spe_truncdfsf2): New.
7136 (spe_absdf2): New.
7137 (spe_nabsdf2): New.
7138 (spe_negdf2): New.
7139 (sub_adddf3): New.
7140 (spe_subdf3): New.
7141 (spe_muldf3): New.
7142 (spe_floatsidf2): New.
7143 (spe_floatunssidf2): New.
7144 (fix_truncdfsi2): New.
7145 (spe_fixuns_truncdfsi2): New.
7146
7147 * config/rs6000/rs6000.md (truncdfsf2): Change to expander.
7148 (fpr_truncdfsf2): New.
7149 (negdf2): Change to expander.
7150 (fpr_negdf2): New.
7151 (fpr_nabsdf2): Name pattern.
7152 (adddf3): Change to expander.
7153 (fpr_adddf3): Nem.
7154 (subdf3): Change to expander.
7155 (fpr_subdf3): New.
7156 (muldf3): Change to expander.
7157 (fpr_muldf3): New.
7158 (divdf3): Change to expander.
7159 (fpr_divdf3): New.
7160 (movdf_softfloat32): Change !TARGET_FPRS to TARGET_E500_SINGLE.
7161 (cmpdf): Allow for TARGET_E500_DOUBLE.
7162
7163 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
7164
7165 * c-semantics.c (re_push_stmt_list): Remove.
7166 * c-common.h: Remove the corresponding prototype.
7167
7168 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
7169
7170 * stmt.c (asm_op_is_mem_input): Remove.
7171 * tree.h: Remove the corresponding prototype.
7172
7173 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
7174
7175 * tree-gimple.c (is_gimple_constructor_elt): Remove.
7176 * tree-gimple.h: Remove the corresponding prototype.
7177
7178 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
7179
7180 * varasm.c (get_pool_mode_for_function, get_pool_offset):
7181 Remove.
7182 * rtl.h: Remove the corresponding prototypes.
7183
7184 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
7185
7186 * tree-cfg.c (thread_jumps_from_bb): Speed up by extracting
7187 edge information when we commit ourselves to threading a
7188 particular jump.
7189
7190 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
7191
7192 * tree-cfg.c (thread_jumps): Speed up by putting basic blocks
7193 into worklist instead of their indexes.
7194
7195 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
7196
7197 * alias.c, basic-block.h, cgraphunit.c, combine.c, domwalk.h,
7198 final.c, gengtype.c, genpreds.c, ggc-page.c, insn-notes.def,
7199 lambda-code.c, loop-unroll.c, modulo-sched.c, pointer-set.c,
7200 pretty-print.c, ra-colorize.c, sbitmap.c, tree-complex.c,
7201 tree-data-ref.c, tree-dfa.c, tree-inline.c, tree-into-ssa.c,
7202 tree-scalar-evolution.c, tree-ssa-dom.c,
7203 tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
7204 tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-threadupdate.c,
7205 tree-vectorizer.c, vec.h: Fix comment formatting.
7206
7207 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
7208
7209 * dwarf.h, gthr-dce.h, gthr-single.h, gthr-solaris.h, gthr.h,
7210 libfuncs.h, libgcc2.h, stab.def, tsystem.h: Update copyright.
7211
7212 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
7213
7214 * config/ptx4.h, config/mcore/mcore-pe.h,
7215 config/rs6000/eabi.h, config/vax/elf.h: Update copyright.
7216
7217 2004-10-22 Peter Barada <peter@the-baradas.com>
7218
7219 * config/m68k/m68k.h (HARD_REGNO_RENAME_OK): New macro.
7220 * config/m68k/m68k.c (m68k_hard regno_rename_ok): Disallow
7221 renaming of non-live registers in interrupt functions.
7222 * config/m68k/m68k-protos.h (m68k_hard_regno_rename_ok): Add prototype.
7223
7224 2004-10-22 Zdenek Dvorak <dvorakz@suse.cz>
7225
7226 * tree-ssa-loop-niter.c (inverse): Count in HOST_WIDE_INT if possible.
7227 Use integer for loop counter.
7228 (num_ending_zeros): New function.
7229 (number_of_iterations_cond): Use num_ending_zeros.
7230
7231 2004-10-21 Aldy Hernandez <aldyh@redhat.com>
7232
7233 * config.gcc: Add support for --enable-e500_double.
7234
7235 * config/rs6000/e500-double.h: New file.
7236
7237 * config/rs6000/rs6000.h: Define TARGET_E500_SINGLE and
7238 TARGET_E500_DOUBLE.
7239
7240 * config/rs6000/eabi.h: Define TARGET_E500_SINGLE and
7241 TARGET_E500_DOUBLE.
7242
7243 * config/rs6000/linuxspe.h: Same.
7244
7245 * doc/invoke.texi (Option Summary): Document new options for
7246 mfloat-gprs.
7247 (RS/6000 and PowerPC Options): Same.
7248
7249 * config/rs6000/rs6000.c (rs6000_parse_float_gprs_option): New
7250 function.
7251 (rs6000_override_options): Use it. Use
7252 SUB3TARGET_OVERRIDE_OPTIONS.
7253 Add 8548 to processor_target_table.
7254 (rs6000_legitimate_address): Handle e500 doubles.
7255 (rs6000_legitimize_address): Same.
7256 (rs6000_legitimize_reload_address): Same.
7257 (rs6000_hard_regno_nregs): Same.
7258 (spe_func_has_64bit_regs_p): Same.
7259 (emit_frame_save): Same.
7260 (gen_frame_mem_offset): Same.
7261 (rs6000_dwarf_register_span): Same.
7262 (rs6000_generate_compare): Same.
7263 (easy_fp_constant): Same.
7264 (legitimate_offset_address_p): Same.
7265
7266 * config/rs6000/spe.md: (cmdfeq_gpr): New.
7267 (tstdfeq_gpr): New.
7268 (cmpdfgt_gpr): New.
7269 (tstdfgt_gpr): New.
7270 (tstdfgt_gpr): New.
7271 (cmpdflt_gpr): New.
7272 (tstdflt_gpr): New.
7273 Add new constants.
7274
7275 2004-10-21 Giovanni Bajo <giovannibajo@gcc.gnu.org>
7276
7277 * config/arc/lib1funcs.asm (___umulsidi3): Fix typo.
7278
7279 2004-10-21 Zack Weinberg <zack@codesourcery.com>
7280
7281 * dbxout.c: Remove unnecessary #undefs.
7282 (GDB_INV_REF_REGPARM_STABS_LETTER, DBX_MEMPARM_STABS_LETTER)
7283 (FILE_NAME_JOINER, STABS_GCC_MARKER): Remove; fold sole
7284 definition into use sites.
7285 (cwd): Make local to dbxout_init.
7286 (dbxout_init): Restructure cwd-using logic for clarity. Use
7287 IS_DIR_SEPARATOR.
7288 * xcoffout.h (DBX_OUTPUT_GCC_MARKER): Definition of
7289 STABS_GCC_MARKER folded in here.
7290 * system.h: Poison now-unused macros.
7291 * doc/tm.texi: Remove documentation of now-unused macros.
7292
7293 2004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
7294
7295 PR c/17538
7296 * c-opts.c (push_command_line_include): Use the current file
7297 name instead of the main one.
7298
7299 2004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
7300
7301 PR objc/17923
7302 * tree.c (staticp): A CONST_DECL has static storage if either
7303 TREE_STATIC or DECL_EXTERNAL is set.
7304 * c-decl.c (pushdecl_top_level): Accept CONST_DECLs which can
7305 have null names.
7306
7307 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
7308
7309 * expr.c (store_expr): Remove dont_store_target.
7310
7311 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
7312
7313 * tree-cfg.c (thread_jumps): Speed up by using a worklist.
7314
7315 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
7316
7317 * tree-cfg.c (thread_jumps): Move a part of it to ...
7318 (thread_jumps_from_bb): ... here.
7319
7320 2004-10-21 David Edelsohn <edelsohn@gnu.org>
7321
7322 * dbxout.c (DBX_FINISH_SYMBOL): Add asm_out_file argument.
7323 * xcoffout.h (DBX_FINISH_SYMBOL): Change asmfile to (ASMFILE).
7324
7325 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
7326
7327 * expr.c (store_expr): Clean up by renaming want_value to
7328 call_param_p.
7329
7330 2004-10-21 Kaz Kojima <kkojima@gcc.gnu.org>
7331
7332 * config/sh/linux-unwind.h (sh_fallback_frame_state): Don't
7333 fixup pc here.
7334
7335 2004-10-21 Aldy Hernandez <aldyh@redhat.com>
7336
7337 PR 18004.
7338 * expmed.c (store_bit_field): Pass original 'value' before
7339 recursing.
7340
7341 2004-10-21 Nicolas Pitre <nico@cam.org>
7342
7343 * config/arm/ieee754-sf.S: Large speed improvements. Fix NAN handling.
7344 * config/arm/ieee754-df.S: Ditto.
7345
7346 2004-10-20 Zack Weinberg <zack@codesourcery.com>
7347
7348 * dbxout.c (asmfile): Delete. All uses changed to asm_out_file.
7349 (DBX_BLOCKS_FUNCTION_RELATIVE, DBX_LINES_FUNCTION_RELATIVE):
7350 Default to 0.
7351 (dbxout_source_line): Use DBX_OUTPUT_SOURCE_LINE when defined.
7352 When it is not, but DBX_LINES_FUNCTION_RELATIVE is true, emit
7353 an internal label and an N_SLINE .stabn whose value is the
7354 difference between that label and the function entry label.
7355 (dbxout_finish): If DBX_OUTPUT_MAIN_SOURCE_FILE_END is not defined,
7356 but DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END is, emit a
7357 label and an N_SO stab with an empty string referring to it.
7358 (dbx_output_lbrac, dbx_output_rbrac): Use if statement instead
7359 of #ifdef directive to test DBX_BLOCKS_FUNCTION_RELATIVE.
7360 (dbxout_type_methods, dbxout_symbol): Remove #if 0 block.
7361 (dbxout_prepare_symbol): Remove #ifdef WINNING_GDB block, this
7362 macro is never defined.
7363 * sdbout.c (sdbout_source_line_counter): Delete.
7364 (PUT_SDB_SRC_FILE): Delete. Uses replaced with sole definition.
7365 (sdbout_source_line): Use SDB_OUTPUT_SOURCE_LINE, which takes
7366 only two arguments.
7367 * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Rename ASM_OUTPUT_LINE.
7368
7369 * config/dbxcoff.h, config/dbxelf.h: Remove unncessary #undefs.
7370 * config/c4x/c4x.h, config/pa/pa.h: Remove unnecessary macro
7371 definitions (identical to default).
7372 * config/darwin.h, config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
7373 * config/h8300/coff.h, config/pa/som.h, config/sh/elf.h:
7374 Define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END, not
7375 DBX_OUTPUT_MAIN_SOURCE_FILE_END.
7376 * config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
7377 * config/mcore/mcore-pe.h, config/pa/som.h, config/sh/elf.h:
7378 Define DBX_LINES_FUNCTION_RELATIVE, not ASM_OUTPUT_SOURCE_LINE.
7379 * config/alpha/alpha-protos.h: Don't prototype alpha_output_lineno.
7380 * config/alpha/alpha.c: Move declaration of num_source_filenames up.
7381 (alpha_start_function): Use SDB_OUTPUT_SOURCE_LINE.
7382 (sym_lineno): Delete.
7383 (alpha_output_filename): Do not emit N_SOL stabs here. Remove
7384 now-unused variable.
7385 (alpha_output_lineno): Delete.
7386 * config/mips/mips-protos.h: Don't prototype mips_output_lineno.
7387 * config/mips/mips.c (mips_output_filename): Don't use
7388 ASM_OUTPUT_FILENAME. Don't emit N_SOL stabs here.
7389 (mips_output_lineno): Delete.
7390 (mips_output_function_prologue: Use SDB_OUTPUT_SOURCE_LINE.
7391 * config/alpha/alpha.h: Define DBX_OUTPUT_SOURCE_LINE and
7392 SDB_OUTPUT_SOURCE_LINE, not ASM_OUTPUT_SOURCE_LINE.
7393 * config/mips/mips.h: Likewise. Don't define ASM_OUTPUT_FILENAME.
7394 * config/mips/sdb.h: Use SDB_OUTPUT_SOURCE_LINE.
7395 * config/avr/avr.h: Don't define ASM_OUTPUT_SOURCE_LINE.
7396 * config/mmix/mmix.h: Likewise.
7397 * config/mmix/mmix.c (mmix_asm_output_source_line): Delete.
7398 * config/mmix/mmix-protos.h: Don't prototype it.
7399 * config/alpha/unicosmk.h: Also #undef PREFERRED_DEBUGGING_TYPE;
7400 no need to #undef ASM_OUTPUT_SOURCE_LINE.
7401 * config/arm/aout.h: Remove RISCiX-specific definition of
7402 DBX_OUTPUT_MAIN_SOURCE_FILENAME.
7403 * config/m32r/m32r.h: Define DBX_OUTPUT_SOURCE_LINE, not
7404 ASM_OUTPUT_SOURCE_LINE.
7405 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Rename to
7406 DBX_OUTPUT_SOURCE_LINE. Don't use current_function_func_begin_label.
7407 * config/vax/elf.h: No need to define DBX_OUTPUT_FUNCTION_END.
7408
7409 * doc/tm.texi: Update.
7410
7411 2004-10-20 Richard Henderson <rth@redhat.com>
7412
7413 * tree-sra.c (instantiate_element): Copy DECL_IGNORED_P also.
7414
7415 2004-10-20 Kelley Cook <kcook@gcc.gnu.org>
7416
7417 * configure.ac: Revert my previous patch.
7418 * configure: Regenerate.
7419
7420 2004-10-20 Ben Elliston <bje@au.ibm.com>
7421
7422 * config/rs6000/rs6000.c
7423 (rs6000_va_start): Use build_va_arg_indirect_ref.
7424 (rs6000_gimplify_va_arg): Likewise.
7425
7426 2004-10-20 Bryce McKinlay <mckinlay@redhat.com>
7427
7428 PR java/15575
7429 * configure.ac: Declare AM_LANGINFO_CODESET.
7430 * aclocal.m4: Define AM_LANGINFO_CODESET.
7431 * configure, config.in: Rebuilt.
7432
7433 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
7434
7435 * expr.c (store_expr): Remove code that is run when
7436 want_value & 1 is nonzero.
7437
7438 2004-10-20 Mark Mitchell <mark@codesourcery.com>
7439
7440 * gthr-posix.h (__gthread_active_p): Use __extension__ around cast
7441 from function pointer to void *.
7442
7443 2004-10-20 Kaz Kojima <kkojima@gcc.gnu.org>
7444
7445 PR target/18032
7446 * config/sh/sh.c (sh_expand_epilogue): Emit a blockage insn before
7447 the frame pointer adjustment when exception handling is enabled.
7448
7449 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
7450
7451 * stor-layout.c: Fix a comment typo.
7452
7453 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
7454
7455 * expr.c (store_field): Remove two arguments value_mode and
7456 unsignedp.
7457 (expand_assignment, store_constructor_field,
7458 expand_expr_real_1): Adjust calls to store_field.
7459
7460 2004-10-18 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
7461
7462 * config/arc/lib1funcs.asm (___umulsidi3): Correct usage of flags.
7463
7464 PR target/17317
7465 * config/arc/arc.h (REGNO_OK_FOR_BASE_P,REGNO_OK_FOR_INDEX_P,
7466 REG_OK_FOR_BASE, REG_OK_FOR_INDEX): Consider blink(r31) as a valid
7467 base and index register for loads.
7468
7469 * config/arc/t-arc: Fix multilib handling.
7470
7471 2004-10-20 Hans-Peter Nilsson <hp@bitrange.com>
7472
7473 * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
7474 don't inspect BLOCK_FOR_INSN for barriers.
7475 * emit-rtl.c (emit_barrier_before): Revert last change.
7476 (emit_barrier_after, emit_barrier): Ditto.
7477
7478 * doc/extend.texi (Extended Asm): Warn and provide example
7479 solution for using a call-clobbered asm register.
7480 (Local Reg Vars): Similar. Cross-reference example.
7481
7482 2004-10-19 Andrew Pinski <pinskia@physics.uc.edu>
7483
7484 * tree-cfg.c (group_case_labels): Look at the second to last
7485 case statement for combing with the default case.
7486
7487 2004-10-19 Richard Hendeson <rth@redhat.com>
7488
7489 PR 17962
7490 * stor-layout.c (layout_type): Set TYPE_ALIGN for vectors.
7491
7492 2004-10-19 Richard Hendeson <rth@redhat.com>
7493
7494 * builtins.c (expand_builtin_memmove): If fold_builtin_memmove
7495 succeeds, only expand the result.
7496
7497 2004-10-19 Richard Hendeson <rth@redhat.com>
7498
7499 PR middle-end/17885
7500 * tree.c (recompute_tree_invarant_for_addr_expr): Always poll address
7501 of INDIRECT_REF.
7502
7503 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
7504
7505 * tree-cfg.c (thread_jumps): Use a do-while loop instead of a
7506 loop with goto.
7507
7508 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
7509
7510 * expr.c (expand_assignment): Remove the last argument.
7511 Change the return type to void.
7512 * expr.h: Update the prototype of expand_assignment.
7513 * function.c (assign_parm_setup_reg): Update a call to
7514 expand_assignment.
7515 * stmt.c (expand_asm_expr): Likewise.
7516
7517 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
7518
7519 * expr.c (expand_expr_real_1) <MODIFY_EXPR>: Remove
7520 unnecessary assignments to temp. Return const0_rtx.
7521
7522 2004-10-19 Kaz Kojima <kkojima@gcc.gnu.org>
7523
7524 * config/sh/sh.c (sh5_schedule_saves): Fix typo.
7525
7526 2004-10-18 Kelley Cook <kcook@gcc.gnu.org>
7527
7528 * configure.ac (powerpc-*-darwin*): Require assembler to support
7529 .machine directive.
7530 * configure: Regenerate.
7531
7532 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7533
7534 * reload1.c (ior_hard_reg_set): Remove.
7535 (finish_spills): Use IOR_HARD_REG_SET instead of
7536 ior_hard_reg_set.
7537
7538 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7539
7540 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Speed up by shifting
7541 the currently visited word to right.
7542
7543 2004-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
7544
7545 PR middle-end/18045
7546 * expmed.c (expand_smod_pow2): Handle modes whose size
7547 is greater than that of HOST_WIDE_INT.
7548
7549 2004-10-18 Ziemowit Laski <zlaski@apple.com>
7550
7551 * c-parse.in (reservedwords): Add OBJC_TYPE_QUAL as alternative.
7552
7553 2004-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
7554 Roger Sayle <roger@eyesopen.com>
7555
7556 PR middle-end/17813
7557 * dojump.c (discard_pending_stack_adjust): New function.
7558 (clear_pending_stack_adjust): Call it.
7559 * expr.h (discard_pending_stack_adjust): Declare it.
7560 * explow.c (emit_stack_save): Emit pending stack adjustments
7561 before saving the stack pointer.
7562 (emit_stack_restore): Discard pending stack adjustments before
7563 restoring the stack pointer.
7564
7565 2004-10-18 Richard Henderson <rth@redhat.com>
7566
7567 * c-common.c (handle_mode_attribute): Allow scalar->vector
7568 type changes yet.
7569
7570 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7571
7572 * expr.c (expand_expr_real_1) [MODIFY_EXPR]: Don't request a
7573 value to expand_assignment.
7574
7575 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7576
7577 * tree-cfg.c (cleanup_tree_cfg): Don't iterate on
7578 thread_jumps.
7579 (thread_jumps): Iterate until no new forwarder block arises.
7580
7581 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7582
7583 * tree-cfg.c (tree_forwarder_block_p): Don't set forwardable.
7584 (thread_jumps): Use forwardable as cache of
7585 tree_forwarder_block_p throughout the function.
7586
7587 2004-10-18 Andreas Krebbel <krebbel1@de.ibm.com>
7588
7589 * cfg.c (dump_flow_info): Remove redundant dump of reg life info.
7590
7591 2004-10-18 Andrew Pinski <pinskia@physics.uc.edu>
7592
7593 PR middle-end/15014
7594 PR middle-end/16973
7595 * tree-cfg.c (remove_bb): If we have a label expression in the
7596 basic block and the label we have taken the address, move the
7597 label expression to the basic block which is previous in the
7598 linked list.
7599 (tree_verify_flow_info): Fix printing out the label name of the
7600 problematic label expression.
7601
7602 2004-10-18 Pat Haugen <pthaugen@us.ibm.com>
7603
7604 PR rtl-optimization/18002
7605 * simplify-rtx.c (mode_signbit_p): Externalize function...
7606 * rtl.h (mode_signbit_p): ... to here.
7607 * combine.c (simplify_shift_const): Recognize PLUS signbit as
7608 canonical form of XOR signbit and move to outer op.
7609
7610 2004-10-18 Diego Novillo <dnovillo@redhat.com>
7611
7612 * tree-cfg.c (bsi_for_stmt): Rename from stmt_for_bsi.
7613 Update all callers.
7614 * tree-ssa.c (replace_immediate_uses): Call bsi_for_stmt.
7615 Don't call fold_stmt more than once, use bsi_replace.
7616
7617 2004-10-18 Diego Novillo <dnovillo@redhat.com>
7618
7619 PR tree-optimization/17656
7620 * tree-ssa.c (replace_immediate_uses): When replacing a
7621 constant, if the call to fold_stmt produced a different
7622 statement, get an appropriate statement pointer by scanning
7623 STMT's basic block.
7624
7625 2004-10-18 Richard Henderson <rth@redhat.com>
7626
7627 * pointer-set.c (hash1): Don't use libm functions in fallback case.
7628
7629 2004-10-18 H.J. Lu <hongjiu.lu@intel.com>
7630
7631 PR bootstrap/17684
7632 * Makefile.in (clean): Remove libgcc_s$(SHLIB_EXT).1.stage?.
7633 (stage1-start): Remove and copy libunwind.a and
7634 libunwind*$(SHLIB_EXT) instead of libunwind*.
7635 (stage2-start): Likewise.
7636 (stage3-start): Likewise.
7637 (stage4-start): Likewise.
7638 (stageprofile-start): Likewise.
7639 (stagefeedback-start): Likewise.
7640
7641 * config/alpha/t-osf4 (SHLIB_LINK): Use a temporary file for
7642 the shared library to be created and don't remove the existing
7643 shared library.
7644 * config/arm/t-netbsd (SHLIB_LINK): Likewise.
7645 * config/i386/t-nwld (SHLIB_LINK): Likewise.
7646 * config/mips/t-slibgcc-irix (SHLIB_LINK): Likewise.
7647 * config/pa/t-hpux-shlib (SHLIB_LINK): Likewise.
7648 * config/sh/t-linux (SHLIB_LINK): Likewise.
7649 * config/t-libunwind-elf (SHLIBUNWIND_LINK): Likewise.
7650 * config/t-slibgcc-darwin (SHLIB_LINK): Likewise.
7651 * config/t-slibgcc-elf-ver (SHLIB_LINK): Likewise.
7652 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
7653
7654 * mklibgcc.in (libgcc-stage-start): Also move "*${objext}s"
7655 files.
7656
7657 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7658
7659 * basic-block.h (reg_set_iterator): New.
7660 (EXECUTE_IF_SET_IN_REG_SET): Make it iterator style.
7661 (EXECUTE_IF_AND_COMPL_IN_REG_SET): Likewise.
7662 (EXECUTE_IF_AND_IN_REG_SET): Likewise.
7663 * caller-save.c (save_call_clobbered_regs): Adjust to the new
7664 style.
7665 * cfgcleanup.c (thread_jump): Likewise.
7666 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
7667 * conflict.c (conflict_graph_compute): Likewise.
7668 * flow.c (verify_local_live_at_start, update_life_info,
7669 initialize_uninitialized_subregs, propagate_one_insn,
7670 init_propagate_block_info, free_propagate_block_info,
7671 propagate_block, dump_regset): Likewise.
7672 * global.c (global_conflicts): Likewise.
7673 * graph.c (start_bb): Likewise.
7674 * local-alloc.c (update_equiv_regs): Likewise.
7675 * loop.c (load_mems): Likewise.
7676 * reload1.c (compute_use_by_pseudos, order_regs_for_reload,
7677 find_reg, finish_spills): Likewise.
7678 * resource.c (mark_target_live_regs): Likewise.
7679 * sched-deps.c (sched_analyze_insn): Likewise.
7680 * sched-rgn.c (sched-rgn.c): Likewise.
7681 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
7682
7683 2004-10-18 Jakub Jelinek <jakub@redhat.com>
7684
7685 * config/i386/i386.md (addqi_1_slp): Test for incdec_operand
7686 operand 1 instead of 2
7687
7688 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7689
7690 * loop-unroll.c: Fix comment typos.
7691
7692 2004-10-18 Revital Eres <eres@il.ibm.com>
7693
7694 * Makefile.in (loop-unroll.o): Add VARRAY_H dependency.
7695 * loop-unroll.c: Include varray.h.
7696 (struct var_to_expand, struct opt_info): Rename split_ivs_info to
7697 opt_info and expand it to support variable expansion.
7698 (analyze_insns_in_loop): Rename analyze_ivs_to_split and
7699 expand it to support variable expansion.
7700 (pt_info_start_duplication): Rename si_info_start_duplication.
7701 (apply_opt_in_copies): Rename split_ivs_in_copies and add support
7702 to the variable expansion optimization.
7703 (free_opt_info): Rename free_si_info.
7704 (analyze_insn_to_expand_var, referenced_in_one_insn_in_loop_p,
7705 expand_var_during_unrolling, insert_var_expansion_initialization,
7706 combine_var_copies_in_loop_exit, release_var_copies,
7707 get_expansion): New functions.
7708 (peel_loop_completely, unroll_loop_constant_iterations,
7709 unroll_loop_runtime_iterations, peel_loop_simple,
7710 unroll_loop_stupid): Change uses of struct si_info
7711 to struct opt_info
7712 and add uses of fvariable-expansion-in-unroller flag.
7713 * params.def: Add parameter to restrict the number of expansions.
7714 * params.h: (MAX_VARIABLE_EXPANSIONS): New define to restrict
7715 the number of expansions.
7716 * common.opt: (fvariable-expansion-in-unroller): New flag.
7717 * doc/invoke.texi: (fvariable-expansion-in-unroller): Document.
7718
7719 2004-10-18 Danny Smith <dannysmith@users.sourceforge.net>
7720
7721 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define
7722 __GXX_MERGED_TYPEINFO_NAMES to 0.
7723
7724 2004-10-17 Hans-Peter Nilsson <hp@bitrange.com>
7725
7726 * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
7727 handle barriers in a bb by checking that it points to a NULL bb.
7728 * emit-rtl.c (emit_barrier_before): Set BLOCK_FOR_INSN to NULL.
7729 (emit_barrier_after, emit_barrier): Ditto.
7730
7731 2004-10-18 Joseph S. Myers <jsm@polyomino.org.uk>
7732
7733 * doc/extend.texi (Attribute Syntax): Clarify details of
7734 attributes on parameters.
7735
7736 2004-10-17 Zdenek Dvorak <dvorakz@suse.cz>
7737
7738 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Move checking out of
7739 loop.
7740
7741 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
7742
7743 Revert:
7744 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
7745
7746 * c-typeck.c (default_function_array_conversion): Always create
7747 &a[0] for array types.
7748 (build_unary_op): Do not fold &a[x] into a + x.
7749
7750 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
7751
7752 PR middle-end/17925
7753 * cfgexpand.c (expand_gimple_cond_expr): Emit line notes for next basic
7754 block if there is a goto with a locus.
7755
7756 2004-10-17 Kazu Hirata <kazu@cs.umass.edu>
7757
7758 * config/elfos.h, config/gofast.h, config/interix.h,
7759 config/netbsd.h, config/svr3.h, config/vxworks.h,
7760 config/alpha/alpha-modes.def, config/alpha/alpha-protos.h,
7761 config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
7762 config/alpha/netbsd.h, config/arm/arm-modes.def,
7763 config/arm/unknown-elf.h, config/c4x/c4x-modes.def,
7764 config/cris/aout.h, config/frv/frv-modes.def,
7765 config/i386/beos-elf.h, config/i386/gas.h,
7766 config/i386/i386-coff.h, config/i386/i386-modes.def,
7767 config/i386/linux.h, config/i386/linux64.h,
7768 config/i386/mingw32.h, config/i386/netbsd-elf.h,
7769 config/i386/netbsd64.h, config/i386/sco5.h,
7770 config/i386/sol2.h, config/i386/uwin.h, config/i860/i860.md,
7771 config/ia64/ia64-modes.def, config/ia64/itanium1.md,
7772 config/ia64/itanium2.md, config/m68k/m68k-modes.def,
7773 config/mips/mips-modes.def, config/mips/sdb.h,
7774 config/mips/vr.h, config/mips/vxworks.h,
7775 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h,
7776 config/pa/pa32-linux.h, config/rs6000/40x.md,
7777 config/rs6000/7450.md, config/rs6000/8540.md,
7778 config/rs6000/linuxspe.h, config/rs6000/power4.md,
7779 config/rs6000/rs6000-modes.def, config/rs6000/rtems.h,
7780 config/rs6000/spe.h, config/s390/2064.md, config/s390/linux.h,
7781 config/s390/s390-modes.def, config/sh/elf.h,
7782 config/sh/sh-modes.def, config/sh/sh64.h,
7783 config/sparc/ultra1_2.md, config/sparc/ultra3.md,
7784 config/stormy16/stormy16.md, config/v850/v850-protos.h,
7785 config/vax/vax.md: Update copyright.
7786
7787 2004-10-17 Kazu Hirata <kazu@cs.umass.edu>
7788
7789 * expr.c (expand_expr_real_1): Remove an obsolete comment.
7790
7791 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
7792
7793 * c-typeck.c (default_function_array_conversion): Always create
7794 &a[0] for array types.
7795 (build_unary_op): Do not fold &a[x] into a + x.
7796
7797 2004-10-17 Jakub Jelinek <jakub@redhat.com>
7798
7799 * pointer-set.c (hash1): Use integer part of 2^64 / phi
7800 instead 2^32 / phi if long is 64-bit.
7801
7802 2004-10-17 Joseph S. Myers <jsm@polyomino.org.uk>
7803
7804 * c-common.h (enum rid): Remove RID_PTRBASE, RID_PTREXTENT and
7805 RID_PTRVALUE.
7806 * c-parse.in (PTR_VALUE, PTR_BASE, PTR_EXTENT): Remove %token
7807 declarations.
7808 (reswords): Remove __ptrbase, __ptrbase__, __ptrextent,
7809 __ptrextent__, __ptrvalue and __ptrvalue__.
7810 (rid_to_yy): Remove RID_PTRBASE, RID_PTREXTENT and RID_PTRVALUE
7811 entries.
7812
7813 2004-10-16 Dale Johannesen <dalej@apple.com>
7814
7815 * c-common.c (c_common_get_alias_set): Use GGC for type_hash_table.
7816
7817 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
7818
7819 PR tree-optimization/17766
7820 * basic-block.h (enum dom_state): DOM_CONS_OK removed.
7821 (dom_info_available_p): Declare.
7822 * cfghooks.c (split_block, make_forwarder_block): Use
7823 dom_info_available_p.
7824 * dominance.c (compute_dom_fast_query, calculate_dominance_info,
7825 free_dominance_info, verify_dominators): Ditto.
7826 (dom_info_available_p): New function.
7827 * tree-cfg.c (cleanup_control_expr_graph): Free dominance information.
7828 (thread_jumps): Use dom_info_available_p.
7829 * tree-complex.c (expand_complex_div_wide): Ditto.
7830 * tree-mudflap.c (mf_build_check_statement_for): Ditto.
7831
7832 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
7833
7834 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field important_candidates.
7835 (find_best_candidate): Take also important candidates into account.
7836 (find_optimal_iv_set): Initialize important_candidates bitmap.
7837
7838 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
7839
7840 PR tree-optimization/17560
7841 * predict.c (tree_estimate_probability): Mark irreducible
7842 loops.
7843
7844 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
7845
7846 PR rtl-optimization/17723
7847 * cfgcleanup.c (merge_memattrs): Handle case when
7848 MEM_SIZE == NULL_RTX.
7849
7850 2004-10-15 Andrew Pinski <pinskia@physics.uc.edu>
7851
7852 * toplev.c (dump_file_name): Change type to be const.
7853
7854 2004-10-15 Joseph S. Myers <jsm@polyomino.org.uk>
7855
7856 * c-typeck.c (build_compound_expr, build_c_cast): Don't try to use
7857 non_lvalue to stop something being a null pointer constant.
7858
7859 2004-10-15 Aldy Hernandez <aldyh@redhat.com>
7860
7861 * config/rs6000/rs6000.h (FUNCTION_ARG_REGNO_P): FPRs are only
7862 available for TARGET_FPRS.
7863 (FUNCTION_VALUE_REGNO_P): Same.
7864
7865 2004-10-15 Geoffrey Keating <geoffk@apple.com>
7866
7867 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7868 -maltivec in same style as other ISA options.
7869
7870 2004-10-15 Jon Grimm <jgrimm2@us.ibm.com>
7871
7872 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __powerpc__
7873 definition.
7874
7875 2004-10-15 Kazu Hirata <kazu@cs.umass.edu>
7876
7877 * bitmap.c, bitmap.h, builtin-attrs.def, cfglayout.h,
7878 collect2.h, conflict.c, coretypes.h, coverage.h, errors.h,
7879 gcc.h, gcov-dump.c, gen-protos.c, gencheck.c, gencodes.c,
7880 genconstants.c, gengenrtl.c, genmodes.c, genpeep.c,
7881 gensupport.h, graph.h, gthr-gnat.c, gthr-gnat.h, gthr-posix.c,
7882 gthr-posix.h, hard-reg-set.h, hwint.h, integrate.h, libgcc2.c,
7883 lists.c, machmode.def, mips-tdump.c, opts.h, params.c,
7884 predict.def, predict.h, protoize.c, reload.h, resource.h,
7885 rtl-error.c, sbitmap.c, sbitmap.h, sreal.c, tlink.c,
7886 tree-dump.h, tree-inline.h, unwind-dw2-fde.c, unwind-dw2.c,
7887 unwind-sjlj.c, value-prof.h: Update copyright.
7888
7889 2004-10-15 Kazu Hirata <kazu@cs.umass.edu>
7890
7891 * pointer-set.c, tree-vectorizer.c: Fix comment typos.
7892
7893 2004-10-15 Diego Novillo <dnovillo@redhat.com>
7894
7895 * tree-optimize.c (execute_one_pass): Stop timer right after
7896 executing the pass.
7897
7898 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
7899
7900 Revert:
7901 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
7902 PR middle-end/17967
7903 Revert:
7904 * tree-cfg.c (remove_usless_stmts_cond): Fold statement.
7905 (remove_useless_stmts_1): Fold trees we know how to fold.
7906
7907 2004-10-14 David Edelsohn <edelsohn@gnu.org>
7908
7909 * configure.ac: Add .machine power4 directive when testing for
7910 mfcr field.
7911 * configure: Regenerate.
7912
7913 2004-10-14 Geoffrey Keating <geoffk@apple.com>
7914
7915 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Don't define.
7916
7917 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
7918
7919 * tree-vectorizer.c (vect_transform_loop): Declare vectorization_factor
7920 always.
7921
7922 2004-10-14 Daniel Jacobowitz <dan@codesourcery.com>
7923
7924 * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Return NO_REGS
7925 for 'f' if !TARGET_FPRS.
7926
7927 2004-10-14 Richard Henderson <rth@redhat.com>
7928
7929 PR debug/14492
7930 * dwarf2out.c (loc_descriptor_from_tree_1): Handle FIX_*_EXPR.
7931
7932 2004-10-14 Richard Henderson <rth@redhat.com>
7933
7934 PR c/17023
7935 * c-decl.c (store_parm_decls_oldstyle): Care for parameter type
7936 as error_mark_node.
7937 * c-parse.in (compstmt_primary_start): Check cur_stmt_list non-null
7938 instaed of current_function_decl non-null.
7939
7940 2004-10-14 Matt Austern <austern@apple.com>
7941
7942 * pointer-set.c: New file, special-purpose hash table.
7943 * pointer-set.h: New file.
7944 * tree.h (struct pointer_set_t): Declare as opaque type.
7945 (tree_walk): Last argument is pointer_set_t* now.
7946 * tree-inline.c (WALK_SUBTREE): Convert from htab to pset.
7947 (walk_type_fields):
7948 (walk_tree): Convert from htab_t to pointer_set_t for keeping
7949 track of which nodes have already been visited.
7950 (walk_tree_without_duplicates): Convert from htab_t to pointer_set_t.
7951 * cgraphunit.c (cgraph_create_edges): Likewise.
7952 (cgraph_characterize_statics_local): Likewise.
7953 * tree-dfa.c (collect_dfa_stats): Likewise.
7954 * langhooks-def.h (lhd_tree_inlining_walk_subtrees): Last arg is
7955 pointer_set_t* now.
7956 * langhooks.c (lhd_tree_inlining_walk_subtrees): Likewise.
7957 * langhooks.h (struct lang_hooks_for_tree_inlining): Last arg type
7958 of walk_subtrees is pointer_set_t* now.
7959 * Makefile.in (OBJS-common): add pointer-set.o
7960 (tree-inline.o): Depends on pointer-set.h
7961 (tree-dfa.o): Likewise
7962 (cgraphunit.o): Likewise
7963
7964 2004-10-14 Geoffrey Keating <geoffk@apple.com>
7965
7966 * config/rs6000/darwin.h (ASM_SPEC): Delete.
7967 (TARGET_ASM_FILE_START): Define.
7968 * config/darwin.h (ASM_SPEC): Define.
7969 * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Don't supply
7970 -mlong-double-128, it's the default. Update comment about reason
7971 for force_cpusubtype_ALL.
7972 * config/rs6000/darwin-vecsave.asm: Supply .machine.
7973 * config/rs6000/darwin-world.asm: Likewise.
7974 * config/rs6000/rs6000.c (rs6000_darwin_file_start): New.
7975 (symbolic_operand): Delete #if 0ed code.
7976
7977 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
7978
7979 * stmt.c (add_case_node): Make sure that we have integer
7980 constant before calling tree_int_cst_compare.
7981
7982 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
7983
7984 PR middle-end/17967
7985 Revert:
7986 * tree-cfg.c (remove_usless_stmts_cond): Fold statement.
7987 (remove_useless_stmts_1): Fold trees we know how to fold.
7988
7989 2004-10-14 Joseph S. Myers <joseph@codesourcery.com>
7990
7991 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS),
7992 config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow
7993 -m64.
7994
7995 2004-10-14 Ulrich Weigand <uweigand@de.ibm.com>
7996
7997 * reload.c (find_reloads): When reloading a PLUS with constant
7998 operand, make sure the constant is pushed to the constant pool
7999 if required.
8000 * config/s390/s390.c (s390_secondary_input_reload_class): Remove
8001 reload bug workaround.
8002 (s390_expand_plus_operand): Likewise.
8003
8004 2004-10-14 David Edelsohn <edelsohn@gnu.org>
8005
8006 * opts.c (common_handle_option): Do not enable
8007 flag_speculative_prefetching for -fprofile-generate/use.
8008
8009 2004-10-14 Devang Patel <dpatel@apple.com>
8010
8011 PR 17635
8012 * tree-if-conv.c (process_phi_nodes): Process latch block.
8013 (combine_blocks): Process latch block and update loop structure.
8014
8015 2004-10-14 Olga Golovanevsky <olga@il.ibm.com>
8016
8017 * tree-vectorizer.c (vect_generate_tmps_on_preheader):
8018 (vect_update_ivs_after_vectorizer):
8019 (vect_transform_for_unknown_loop_bound):
8020 (tree_duplicate_loop_to_edge):
8021 (allocate_new_names):
8022 (rename_use_op):
8023 (rename_def_op):
8024 (rename_variables_in_bb):
8025 (free_new_names):
8026 (rename_variables_in_loop):
8027 (copy_phi_nodes):
8028 (update_phis_for_duplicate_loop):
8029 (update_phi_nodes_for_guard):
8030 (make_loop_iterate_ntimes):
8031 (tree_duplicate_loop_to_edge_cfg):
8032 (add_loop_guard):
8033 (vect_analyze_loop_with_symbolic_num_of_iters):
8034 (verify_loop_for_duplication):
8035 (vect_gen_niters_for_prolog_loop):
8036 (vect_update_niters_after_peeling):
8037 (vect_update_inits_of_dr):
8038 (vect_update_inits_of_drs):
8039 (vect_build_loop_niters):
8040 (vect_do_peeling_for_alignment): New functions.
8041 (vect_transform_loop): Add unknown and known but indivisible loop
8042 bound support; add peeling for unalignment support.
8043 (vect_analyze_loop_form): Support symbolic number of iterations.
8044 (vect_transform_loop_bound): New input parameter.
8045 (vect_get_loop_niters): Change input parameter type.
8046 (new_loop_vec_info): LOOP_VINFO_NITERS is tree now.
8047 (vectorizable_store): Allow unaligned access.
8048 (vectorize_loops): Add rewrite_into_loop_closed_ssa.
8049 (vect_analyze_data_refs_alignment): Allowed one unaligned
8050 store.
8051 * tree-vectorizer.h (LOOP_VINFO_NITERS_KNOWN_P): Redefined
8052 to use tree.
8053 (LOOP_VINFO_INT_NITERS): New macro.
8054 (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): New define.
8055 (do_peeling_for_alignment):
8056 (unaligned_drs): New members of _loop_vec_info.
8057 (LOOP_DO_PEELING_FOR_ALIGNMENT): New macro.
8058
8059 2004-10-14 Ranjit Mathew <rmathew@hotmail.com>
8060
8061 * tree.h (TREE_STRING_POINTER): Wrap in "const char *".
8062 (struct tree_string): Remove "const" qualifier for "str".
8063
8064 2004-10-14 Ira Rosen <irar@il.ibm.com>
8065
8066 * tree-vectorizer.c (vect_analyze_data_refs): Call
8067 vect_get_base_and_bit_offset to get memory tag for array ref.
8068 (vect_create_addr_base_for_vector_ref): Remove redundant checks.
8069
8070 2004-10-14 Richard Earnshaw <rearnsha@arm.com>
8071
8072 * configure.ac: Use $LN_S for creating symlinks (not $LN).
8073 * configure: Regenerate.
8074
8075 2004-10-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8076
8077 * doc/install.texi (*-*-solaris2*): Update with info about kernel
8078 patches to solve spurious testsuite failures.
8079
8080 2004-10-14 Dorit Naishlos <dorit@il.bim.com>
8081
8082 * tree-vectorizer.c (get_vectype_for_scalar_type): Added debug prinouts.
8083 Added check that vectype is VECTOR_MODE_P, instead of check for BLKmode.
8084 (vect_analyze_operations): Make sure the vectorization factor > 1. Add
8085 gcc_assert under ENABLE_CHECKING.
8086 (vectorizable_operation): Remove check for VECTOR_MODE_P (moved to
8087 get_vectype_for_scalar_type).
8088
8089 (vect_get_vec_def_for_operand): Remove redundant variables.
8090 (vect_transform_loop): Likewise.
8091
8092 2004-10-14 Richard Sandiford <rsandifo@redhat.com>
8093
8094 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Make r11 fixed and
8095 global for -mcaller-super-interworking.
8096 (CALLER_INTERWORKING_SLOT_SIZE): New macro.
8097 * config/arm/arm.c (thumb_compute_save_reg_mask): Save r11 if
8098 CALLER_INTERWORKING_SLOT_SIZE is nonzero and the function does
8099 not need a frame pointer.
8100 (arm_get_frame_offsets): Add CALLER_INTERWORKING_SLOT_SIZE bytes to
8101 the soft frame pointer offset.
8102 (thumb_expand_prologue): Set up r11 for -mcaller-super-interworking.
8103 * config/arm/arm.md (*call_reg_thumb, *call_value_reg_thumb): Use
8104 _interwork_{r7,r11}_call_via_rN if some arguments are passed on
8105 the stack. Use frame_pointer_needed to choose between them.
8106 * config/arm/lib1funcs.asm (_arm_return_{r7,r11}): New functions.
8107 (interwork_with_frame): New macro.
8108 (interwork): Add _interwork_{r7,r11}_call_via_rN().
8109
8110 2004-10-14 Ben Elliston <bje@au.ibm.com>
8111
8112 PR other/17900
8113 * diagnostic.c (trim_filename): Fix logic bug in walking backwards
8114 up the filename looking for a previous directory separator.
8115
8116 2004-10-14 Joseph S. Myers <jsm@polyomino.org.uk>
8117
8118 * c-tree.h (enum c_typespec_kind, struct c_typespec,
8119 parser_xref_tag): New.
8120 (struct c_declspecs): Add tag_defined_p. Adjust definition of
8121 typedef_p.
8122 (declspecs_add_type): Adjust prototypes.
8123 * c-parse.in (%union): Add tstype.
8124 (typespec_nonattr, typespec_attr, typespec_reserved_nonattr,
8125 typespec_reserved_attr, typespec_nonreserved_nonattr,
8126 structsp_attr, structsp_nonattr): Change to tstype. Update
8127 actions.
8128 * c-decl.c (build_null_declspecs): Initialize tag_defined_p.
8129 (declspecs_add_type): Update to take struct c_typespec argument.
8130 Set tag_defined_p and typedef_p as appropriate.
8131 (xref_tag): Rename to parser_xref_tag and replace by wrapper.
8132 Update to return struct c_typespec.
8133 (shadow_tag_warned): Don't let empty declarations with qualifiers
8134 or storage class specifiers redeclare a tag if a previous
8135 declaration is visible.
8136
8137 2004-10-13 Richard Henderson <rth@redhat.com>
8138
8139 PR debug/15860
8140 * dwarf2out.c (rtl_for_decl_location): Apply big-endian correction
8141 for DECL_INCOMING_RTL.
8142
8143 2004-10-14 Hans-Peter Nilsson <hp@axis.com>
8144
8145 PR target/17984
8146 * config/cris/cris.md (asrandb, asrandw, lsrandb, lsrandw): Apply
8147 trunc_int_for_mode for constants used in shortened mode.
8148
8149 2004-10-13 Richard Henderson <rth@redhat.com>
8150
8151 PR c/17384
8152 * c-common.c (handle_mode_attribute): Disallow mode changes that
8153 alter the CODE of the top-level type.
8154
8155 * crtstuff.c (__FRAME_END__): Remove mode attribute. Find 32-bit
8156 integer from internal limits macros.
8157 * config/i386/mm3dnow.h (__v2sf): Fix base type.
8158
8159 2004-10-13 Richard Henderson <rth@redhat.com>
8160
8161 PR debug/13841
8162 * function.c (instantiate_decl): Recurse for CONCAT.
8163
8164 2004-10-13 David Edelsohn <edelsohn@gnu.org>
8165
8166 * config/rs6000/rs6000.md (andsi3): Add attribute "compare" for
8167 andi./andis.
8168 (anddi3): Same.
8169 (extzvdi_internal1): Add attribute "compare".
8170 (extzvdi_internal2): Same.
8171
8172 2004-10-12 Tom Tromey <tromey@redhat.com>
8173
8174 * doc/md.texi (Insn Canonicalizations): Removed extraneous quote.
8175
8176 2004-10-13 Dale Johannesen <dalej@apple.com>
8177
8178 * doc/extend.texi (Extended Asm): Rewrite asm volatile description.
8179
8180 2004-10-13 Frank Ch. Eigler <fche@redhat.com>
8181
8182 * toplev.c (compile_file): Call mudflap_finish_file from here ...
8183 * c-decl.c (c_write_global_declarations): ... instead of here ...
8184 * cp/decl.c (cp_finish_file): ... and here.
8185 * tree-mudflap.c (mudflap_enqueue_decl): Reword a warning message.
8186
8187 2004-10-13 Andrew Pinski <pinskia@physics.uc.edu>
8188
8189 * tree-ssa-dom.c (record_range): Free the element if we are not
8190 going to use it.
8191
8192 2004-10-13 Tom Tromey <tromey@redhat.com>
8193
8194 PR java/15578:
8195 * gcc.c (option_map): Added --extdirs and --encoding.
8196
8197 2004-10-13 Eric Botcazou <ebotcazou@libertysurf.fr>
8198
8199 PR target/14454
8200 * config/sparc/sparc.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Set to
8201 sparc_can_output_mi_thunk.
8202 (sparc_output_mi_thunk): Simplify handling of delta offset. Add
8203 handling of vcall offset.
8204 (sparc_can_output_mi_thunk): New predicate.
8205 * doc/tm.texi (TARGET_ASM_OUTPUT_MI_THUNK): Document VCALL_OFFSET.
8206 (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Delete.
8207 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New target hook.
8208
8209 * config/sparc/sparc.c (emit_and_preserve): Preserve stack alignment.
8210
8211 * config/sparc/sparc.md (movdi): Remove redundant test.
8212
8213 2004-10-13 Paolo Bonzini <bonzini@gnu.org>
8214
8215 * tree-dump.c (dump_options): Remove TDF_TREE, TDF_RTL,
8216 TDF_IPA from -fdump-tree-*-all.
8217
8218 2004-10-13 Paul Brook <paul@codesourcery.com>
8219
8220 * config/arm/arm-protos.h (arm_load_pic_register): Update prototype.
8221 * config/arm/arm.c (thumb_find_work_register): Update comments.
8222 (arm_load_pic_register): Add argument for scratch register.
8223 (arm_expand_prologue, thumb_expand_prologue): Pass extra argument.
8224 * config/arm/arm.md (builtin_setjmp_receiver): Ditto.
8225
8226 2004-10-13 Kazu Hirata <kazu@cs.umass.edu>
8227
8228 * tree-data-ref.c: Fix comment typos.
8229
8230 2004-10-13 Jakub Jelinek <jakub@redhat.com>
8231 Zdenek Dvorak <dvorakz@suse.cz>
8232
8233 PR tree-optimization/17724
8234 * tree-cfg.c (tree_purge_dead_eh_edges): Free dominance info.
8235
8236 2004-10-13 Dorit Naishlos <dorit@il.ibm.com>
8237
8238 * rs6000.c (altivec_builtin_mask_for_load): Made static GTY(()).
8239 (altivec_builtin_mask_for_store): Likewise.
8240 (altivec_init_builtins): Use lang_hooks.builtin_function to
8241 create the decls for builtin_altivec_mask_for_load/store.
8242
8243 2004-10-13 Nick Clifton <nickc@redhat.com>
8244
8245 * config/c4x/c4x.c: Remove inclusion of loop.h.
8246
8247 2004-10-12 Ben Elliston <bje@au.ibm.com>
8248
8249 * basic-block.h (edge_iterator): Keep the address of VEC(edge) *.
8250 (ei_container): New; renamed.
8251 (ei_start, ei_last): New macros.
8252 (ei_start_1, ei_last_1): Renamed from ei_start.
8253 (ei_last_1, ei_end_p): Use ei_container() where applicable.
8254 (ei_one_before_end_p, ei_next, ei_edge): Likewise.
8255 * gcse.c (remove_reachable_equiv_notes): Use ei_container().
8256
8257 2004-10-11 Sebastian Pop <pop@cri.ensmp.fr>
8258
8259 * Makefile.in (tree-ssa-loop-niter.o): Depends on tree-data-ref.h.
8260 * cfgloop.c (initialize_loops_parallel_p): New.
8261 (flow_loops_find): Initialize the parallel_p field to true for all
8262 the loops.
8263 * tree-ssa-loop-niter.c: Include "tree-data-ref.h".
8264 (estimate_numbers_of_iterations_loop): Infers the loop bounds from
8265 the size of the data accessed in the loop.
8266 (struct nb_iter_bound): Moved...
8267 * cfgloop.h (struct nb_iter_bound): ... here.
8268 (estimated_nb_iterations, parallel_p): New fields in struct loop.
8269 (record_estimate): Declare extern here.
8270 * tree-chrec.c: Fix comments.
8271 (nb_vars_in_chrec): New function.
8272 * tree-chrec.h (nb_vars_in_chrec): Declared here.
8273 * tree-data-ref.c: Don't include lambda.h, that is already included
8274 in tree-data-ref.h.
8275 (tree_fold_divides_p): Don't check for integer_onep.
8276 (tree_fold_bezout): Removed.
8277 (gcd): New static duplicated function.
8278 (int_divides_p, dump_subscript): New.
8279 (dump_data_dependence_relation): Use dump_subscript.
8280 (dump_dist_dir_vectors, dump_ddrs, compute_estimated_nb_iterations,
8281 estimate_niter_from_size_of_data): New.
8282 (analyze_array_indexes, analyze_array): Call
8283 estimate_niter_from_size_of_data during the detection of array
8284 references. Pass in a pointer to the statement that contains the
8285 array reference.
8286 (all_chrecs_equal_p): New.
8287 (compute_distance_vector): Renamed compute_subscript_distance.
8288 Deal with multivariate conflict functions.
8289 (initialize_data_dependence_relation): Initialize DDR_AFFINE_P,
8290 DDR_SIZE_VECT, DDR_DIST_VECT, and DDR_DIR_VECT.
8291 (non_affine_dependence_relation): New.
8292 (analyze_ziv_subscript, analyze_siv_subscript_cst_affine,
8293 analyze_siv_subscript, analyze_miv_subscript,
8294 analyze_overlapping_iterations, subscript_dependence_tester):
8295 Initialize and return last_conflicts function.
8296 (initialize_matrix_A, FLOOR, compute_overlap_steps_for_affine_univar,
8297 compute_overlap_steps_for_affine_1_2): New.
8298 (analyze_siv_subscript_affine_cst): Removed.
8299 (analyze_subscript_affine_affine): Disprove dependences based on the
8300 iteration domains. Solve the univariate dependence case as before,
8301 but use lambda_matrix_right_hermite instead of tree_fold_bezout.
8302 Implement the multivariate case of 2 versus 1 variables.
8303 (build_classic_dist_vector, build_classic_dir_vector): Implement some
8304 unhandled cases.
8305 (find_data_references_in_loop): Compute and initialize
8306 loop->estimated_nb_iterations and loop->parallel_p.
8307 (analyze_all_data_dependences): Modify the debug dump order.
8308 * tree-data-ref.h (SUB_LAST_CONFLICT_IN_A, SUB_LAST_CONFLICT_IN_B,
8309 subscript->last_conflict_in_a, subscript->last_conflict_in_b): Removed.
8310 (SUB_LAST_CONFLICT, subscript->last_conflict,
8311 data_dependence_relation->affine_p, data_dependence_relation->size_vect,
8312 DDR_AFFINE_P, DDR_SIZE_VECT): New.
8313 (find_data_references_in_loop, initialize_data_dependence_relation,
8314 dump_subscript, dump_ddrs, dump_dist_dir_vectors): Declared here.
8315
8316 2004-10-12 Kelley Cook <kcook@gcc.gnu.org>
8317
8318 * configure: Regenerate.
8319
8320 2004-10-12 Fariborz Jahanian <fjahanian@apple.com>
8321
8322 PR 17892
8323 * tree-ssa-dom.c (unsafe_associative_fp_binop): New function.
8324 (simplify_rhs_and_lookup_avail_expr): Disallow associativity
8325 and constant folding of floating point MULT_EXPR/PLUS_EXPR
8326 expressions.
8327
8328 2004-10-12 Ulrich Weigand <uweigand@de.ibm.com>
8329
8330 * config/s390/s390.c (s390_va_start): Use build_va_arg_indirect_ref.
8331 (s390_gimplify_va_arg): Likewise.
8332
8333 2004-10-12 Daniel Jacobowitz <dan@debian.org>
8334
8335 * defaults.h (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P)
8336 (MODE_BASE_REG_REG_CLASS, REGNO_MODE_OK_FOR_REG_BASE_P)
8337 (REG_MODE_OK_FOR_REG_BASE_P): Provide default definitions.
8338 * regclass.c (record_address_regs): Remove ifdef. Use
8339 REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
8340 * regrename.c (REG_MODE_OK_FOR_BASE_P): Remove unnecessary
8341 definition.
8342 (scan_rtx_address, replace_oldest_value_addr): Use
8343 REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
8344 * reload.c (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Remove
8345 unnecessary definitions.
8346 (find_reloads_address_1): Support REG_MODE_OK_FOR_REG_BASE_P
8347 and MODE_BASE_REG_REG_CLASS.
8348 * config/arm/arm.h (MODE_BASE_REG_CLASS): Don't check reload_completed.
8349 (MODE_BASE_REG_REG_CLASS): Define.
8350 (REGNO_MODE_OK_FOR_REG_BASE_P): Define.
8351 (REG_MODE_OK_FOR_REG_BASE_P): Define.
8352 * doc/tm.texi (Register Classes): Document MODE_BASE_REG_REG_CLASS,
8353 REG_MODE_OK_FOR_REG_BASE_P, and REGNO_MODE_OK_FOR_REG_BASE_P.
8354
8355 2004-10-12 Daniel Berlin <dberlin@dberlin.org>
8356
8357 * tree-ssa-alias.c (verify_name_tags): New function.
8358 (verify_flow_sensitive_alias_info): Remove code that used to check name tags.
8359 (verify_alias_info): Call verify_name_tags.
8360
8361 2004-10-12 Kazu Hirata <kazu@cs.umass.edu>
8362
8363 PR rtl-optimization/17931
8364 * config/i386/i386.c (ix86_rtx_costs): Handle COMPARE with
8365 ZERO_EXTRACT in it.
8366
8367 2004-10-12 Richard Earnshaw <rearnsha@arm.com>
8368
8369 * arm.c (arm_print_operand): Use output_operand_lossage where possible
8370 rather than aborting.
8371
8372 2004-10-12 Paul Brook <paul@coudesourcery.com>
8373
8374 * config.gcc: Add armv6{k,z,zk}
8375 * config/arm/arm-cores.def: Add arm1176 and mpcore.
8376 * config/arm/tune.md: Regenerate.
8377 * config/arm/arm.c (FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK):
8378 Define.
8379 (all_architectures): Add armv6k, armv6z, armv6zk.
8380 * config/arm/lib1funcs.asm: Recognise new arm arcitectures.
8381 * doc/invoke.texi: Document new arch and cpu values.
8382
8383 2004-10-12 Paul Brook <paul@coodesourcery.com>
8384
8385 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Change meabi=3 to
8386 meabi=4.
8387
8388 2004-10-12 Paul Brook <paul@codesourcery.com>
8389
8390 * config/arm/arm.md (addsi3_cbranch_scratch): Correct constraints.
8391 Handle negative constants.
8392
8393 2004-10-12 Joseph S. Myers <jsm@polyomino.org.uk>
8394
8395 PR c/17301
8396 * c-typeck.c (convert_arguments): Return error_mark_node if there
8397 are too few arguments.
8398 (build_function_call): Handle error_mark_node return from
8399 convert_arguments.
8400
8401 2004-10-06 Paolo Bonzini <bonzini@gnu.org>
8402
8403 * configure.ac (symbolic_link): Replace with $LN_S.
8404 (Assembler/Linker): Hard link from gas and binutils trees.
8405 * aclocal.m4 (gcc_AC_PROG_LN_S): Try "cp -p" before cp.
8406 * configure: Regenerate.
8407
8408 2004-10-12 Paul Brook <paul@codesourcery.com>
8409
8410 * configure.ac: Don't look for host assembler when building a canadian
8411 cross.
8412 * configure: Regenerate.
8413
8414 2004-10-11 Roger Sayle <roger@eyesopen.com>
8415
8416 PR other/17361
8417 * c-opts.c (permit_fortran_options): Delete/obsolete global variable.
8418 (c_common_init_options): Remove #ifdef CL_F77 code. Scan command
8419 line options for "-lang-asm" and if found allow any of the C-family
8420 front-end options.
8421 (c_common_handle_option): Remove last use of permit_fortran_options.
8422
8423 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
8424
8425 * config/s390/s390.c (print_operand): Support 'S' format flag.
8426 * config/s390/s390.md ("*tmqi_mem"): Use 'S' format flag.
8427 ("*tstsi", "*tstsi_cconly", "*tstsi_cconly2"): Likewise.
8428 ("*tsthiCCT", "*tsthiCCT_cconly", "*tsthi", "*tsthi_cconly"): Likewise.
8429 ("*tstqiCCT", "*tstqiCCT_cconly", "*tstqi", "*tstqi_cconly"): Likewise.
8430 ("*cmphi_ccu", "*cmpqi_ccu", "*clc"): Likewise
8431 ("movti", "*movdi_31", "*movqi", "*movdf_31", "*mvc"): Likewise.
8432 ("*movstricthi"): Likewise.
8433 ("*load_multiple_di", "*load_multiple_si"): Likewise.
8434 ("*store_multiple_di", "*store_multiple_si"): Likewise.
8435 ("*sethiqisi", "*sethihisi"): Likewise.
8436 ("*sethiqidi_64", "*sethiqidi_31"): Likewise.
8437 ("*andqi3_zarch", "*andqi3_esa", "*nc"): Likewise.
8438 ("*iorqi3_zarch", "*iorqi3_esa", "*oc"): Likewise.
8439 ("*xorqi3", "*xc", "*xc_zero"): Likewise.
8440 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): Likewise.
8441
8442 ("*tmhi_full"): Fix incorrect op_type attribute.
8443
8444 ("*adddi3_alc_cc", "*adddi3_alc"): Remove double backslash.
8445 ("*subdi3_slb_cc", "*subdi3_slb"): Likewise.
8446 ("*addsi3_alc_cc", "*addsi3_alc"): Likewise.
8447 ("*subsi3_slb_cc", "*subsi3_slb"): Likewise.
8448
8449 2004-10-11 Andrew Pinski <pinskia@physics.uc.edu
8450
8451 PR middle-end/16266
8452 * function.c (temp_slots_at_level): Fix typo which creates too
8453 many temp stack slots levels.
8454
8455 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
8456
8457 * config/s390/s390.c (s390_trampoline_template): Generate shorter
8458 trampoline code.
8459 (s390_trampoline_instantiate): Adapt.
8460 * config/s390/s390.h (TRAMPOLINE_SIZE): Adapt to new code.
8461
8462 2004-10-11 Roger Sayle <roger@eyesopen.com>
8463
8464 PR middle-end/17657
8465 * stmt.c (add_case_node): Add additional type argument. Declare
8466 as static to match prototype. Convert the upper and lower bounds
8467 to the specified index type. Optimize away case ranges/values
8468 that are outside the index type's bounds. Truncate case ranges
8469 that span the index type's bounds.
8470 (expand_case): Avoid unnessary computation and memory allocation
8471 when index type is error_mark_node. Pass index_type as required
8472 by change to add_case_node API. No need to convert case range
8473 bounds to index_type, this is now done by add_case_node.
8474
8475 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
8476
8477 * config/s390/s390-protos.h (s390_offset_p): Add prototype.
8478 * config/s390/s390.c (s390_offset_p): New function.
8479 * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccu",
8480 "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use splitter to
8481 transform Q->Q alternatives to *clc pattern.
8482 ("*clc"): Move.
8483 ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
8484 "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf"): Use splitter
8485 to transform Q->Q alternatives to *mvc pattern.
8486 ("*mvc"): Move. Add peephole to merge adjacent MVCs.
8487 ("*anddi3", "*andsi3_zarch", "*andsi3_esa", "*andhi3_zarch",
8488 "*andhi3_esa", "*andqi3_zarch", "*andqi3_esa"): Use splitter to
8489 transform Q->Q alternatives to *nc pattern.
8490 ("*nc"): New insn. New peephole to merge adjacent NCs.
8491 ("*iordi3", "*iorsi3_zarch", "*iorsi3_esa", "*iorhi3_zarch",
8492 "*iorhi3_esa", "*iorqi3_zarch", "*iorqi3_esa"): Use splitter to
8493 transform Q->Q alternatives to *oc pattern.
8494 ("*oc"): New insn. New peephole to merge adjacent OCs.
8495 ("*xordi3", "*xorsi3", "*xorhi3", "*xorqi3"): Use splitter to
8496 transform Q->Q alternatives to *xc pattern.
8497 ("*xc"): New insn. New peephole to merge adjacent XCs.
8498 ("*xc_zero"): Move. Add peephole to merge adjacent XCs.
8499
8500 2004-10-11 Andrew Pinski <pinskia@physics.uc.edu>
8501
8502 * gimplify.c (gimple_push_condition): Make sure that we don't
8503 have any saved condition cleanup if we were at the top level.
8504
8505 2004-10-11 Richard Sandiford <rsandifo@redhat.com>
8506
8507 * config/frv/frv.md (*adddi3_internal): Change name to...
8508 (adddi3): ...replacing the exisiting define_expand. Combine
8509 alternatives. Fix the range of the constant constraints ('J' instead
8510 of 'NOP'). Remove bogus operands[2] check. Use simplify_gen_subreg
8511 to extract the lower and upper halves of the DImode operands.
8512 Always use addi3_lower and adddi3_upper, not the subdi3 forms.
8513 (adddi3_lower): Fix the range of the constant constraints and
8514 remove the bogus operands[2] check.
8515 (adddi3_upper): Use gpr_or_int10_operand as the predicate for
8516 operand 2. Use addxi to handle constant operands.
8517 (subdi3_lower, subdi3_upper): Don't handle constant operands.
8518
8519 2004-10-11 Nathan Sidwell <nathan@codesourcery.com>
8520
8521 * gengtype-lex.l: Add commented } & ) characters to unconfuse
8522 editor's paren matching. Allow #define inside a struct.
8523
8524 2004-10-10 Andrew Pinski <pinskia@physics.uc.edu>
8525
8526 PR middle-end/17703
8527 part of PR c++/17657
8528 * fold-const.c (fold_build_cleanup_point_expr): New function.
8529 * tree.h (fold_build_cleanup_point_expr): Prototype.
8530
8531 2004-10-10 Eric Christopher <echristo@redhat.com>
8532
8533 * dwarf2out.c: Move attribute to subprogram declaration
8534 instead of subroutine type.
8535
8536 2004-10-10 Kazu Hirata <kazu@cs.umass.edu>
8537
8538 * basic-block.h: Remove the prototypes for can_hoist_insn_p,
8539 hoist_insn_after, and hoist_insn_to_edge.
8540 * rtl.h: Remove the prototypes for reg_referenced_between_p,
8541 no_jumps_between_p, and insn_dependent_p.
8542 * rtlanal.c (no_jumps_between_p, reg_referenced_between_p,
8543 insn_dependent_p, insn_dependent_p_1, hoist_test_store,
8544 can_hoist_insn_p, hoist_update_store, hoist_insn_after,
8545 hoist_insn_to_edge): Remove.
8546
8547 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
8548
8549 PR c/17881
8550 * c-decl.c (grokparms): Don't warn for parameters of incomplete
8551 type in declarations that are not definitions except for the case
8552 of parameters of void type.
8553
8554 2004-10-10 Kazu Hirata <kazu@cs.umass.edu>
8555
8556 * tree-cfg.c: Fix comment typos.
8557
8558 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
8559
8560 PR c/17301
8561 * builtins.c (expand_builtin_va_start): Check for too few
8562 arguments to va_start.
8563
8564 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
8565
8566 PR c/17189
8567 * c-decl.c (grokfield): Make diagnostic for bad cases of unnamed
8568 fields a pedwarn. Pedwarn here for unnamed structs/unions if
8569 pedantic.
8570 * c-parse.in (component_decl): Don't pedwarn here for unnamed
8571 fields.
8572
8573 2004-10-09 Zdenek Dvorak <dvorakz@suse.cz>
8574
8575 PR tree-optimization/17906
8576 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not attempt to
8577 copy non-gimple reg arguments.
8578
8579 2004-10-09 Roger Sayle <roger@eyesopen.com>
8580
8581 PR rtl-optimization/17853
8582 * simplify-rtx.c (simplify_relational_operation): Correct comment.
8583 Reorganize handling of comparison operations with floating point
8584 results (always return 0.0 even without FLOAT_STORE_FLAG_VALUE).
8585 Likewise, introduce support for comparison operations with vector
8586 result types, introducing a new VECTOR_STORE_FLAG_VALUE target macro.
8587
8588 * doc/rtl.texi: Document new VECTOR_STORE_FLAG_VALUE target macro.
8589 * doc/tm.texi: Likewise.
8590
8591 2004-10-09 Steven Bosscher <stevenb@suse.de>
8592
8593 * regs.h (struct reg_info_def): Remove the last_node_uid and
8594 changes_mode fields.
8595 (REGNO_LAST_NOTE_UID): Don't define.
8596 * regclass.c (reg_scan_mark_refs): Don't set REGNO_LAST_NOTE_UID.
8597 * regmove.c (copy_src_to_dest): Likewise.
8598
8599 2004-10-09 Roger Sayle <roger@eyesopen.com>
8600
8601 PR middle-end/17894
8602 * fold-const.c (fold_div_compare): When optimizing X/C1 op C2, the
8603 relational comparison operator op needs to be swapped/reversed when
8604 C1 is negative. i.e. X/-10 < 1 becomes X >= -9, not X < -9.
8605
8606 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
8607
8608 PR tree-opt/17902
8609 * tree-ssa-phiopt.c (conditional_replacement): Use bsi_after_labels
8610 instead of bsi_start.
8611 (value_replacement): Likewise.
8612 (abs_replacement): Likewise
8613
8614 2004-10-09 Steven Bosscher <stevenb@suse.de>
8615
8616 * cfgexpand.c (maybe_dump_rtl_for_tree_stmt): New function.
8617 (expand_gimple_cond_expr, expand_gimple_tailcall,
8618 expand_gimple_basic_block): Use it to dump RTL for each stmt.
8619 (tree_expand_cfg): Announce full RTL function dump.
8620 * tree-optimize.c (execute_one_pass): Use normal RTL printing,
8621 not the graph version.
8622 * tree-pretty-print.c (dump_generic_node): Allow empty statements
8623 in the arms of a COND_EXPR for lowered nodes.
8624
8625 2004-10-08 Joseph S. Myers <joseph@codesourcery.com>
8626
8627 * config/rs6000/spe.h (atosfix16, atosfix32, atosfix64, atoufix16,
8628 atoufix32, atoufix64, strtosfix16, strtosfix32, strtosfix64,
8629 strtoufix16, strtoufix32, strtoufix64): Declare.
8630
8631 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
8632
8633 * c-lex.c (interpret_float): Give a pedwarn rather than a warning
8634 for an out-of-range floating point constant.
8635 * builtins.c (fold_builtin_inf): Give a pedwarn rather than a
8636 warning if the target format does not support infinities.
8637
8638 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
8639
8640 * emit-rtl.c (last_label_num, base_label_num): Remove.
8641 (max_label_num): Always return label_num.
8642 (set_new_last_label_num, restore_emit_status): Remove.
8643 (init_emit): Don't initialize last_label_num.
8644 * function.c (pop_function_context_from): Don't call
8645 restore_emit_status.
8646 * function.h: Remove the prototype for restore_emit_status.
8647 * rtl.h: Remove the prototype for set_new_last_label_num.
8648
8649 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
8650
8651 * stmt.c (expand_decl_init): Remove.
8652 * tree.h: Remove the corresponding prototype.
8653
8654 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
8655
8656 * integrate.c (try_constants, subst_constants, mark_stores):
8657 Remove.
8658 * integrate.h: Remove the prototype for try_constants.
8659
8660 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
8661
8662 * c-typeck.c (enum impl_conv): Add ic_argpass_nonproto.
8663 (convert_for_assignment): Handle ic_argpass_nonproto. Add
8664 comments about its relevance to errors.
8665 (c_convert_parm_for_inlining): Use ic_argpass_nonproto.
8666
8667 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
8668
8669 PR c/16999
8670 * c-ppoutput.c (cb_ident): Don't quote string as it is already
8671 quoted.
8672
8673 2004-10-08 Diego Novillo <dnovillo@redhat.com>
8674
8675 * tree-ssa-pre.c (init_pre): Use size of ARRAY_REF to allocate
8676 reference_node_pool.
8677
8678 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
8679
8680 * tree-cfg.c: Fix a comment typo.
8681
8682 2004-10-08 Andreas Krebbel <krebbel1@de.ibm.com>
8683
8684 * config/s390/s390.c (s390_register_info): Don't save fprs for
8685 -msoft-float.
8686 (s390_conditional_register_usage): Make fprs 'fixed' for -msoft-float.
8687
8688 2004-10-08 Ulrich Weigand <uweigand@de.ibm.com>
8689
8690 * config/s390/s390.h (TARGET_DEFAULT_BACKCHAIN): New define.
8691 (TARGET_DEFAULT): Use symbolic values.
8692 * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Redefine.
8693 (TARGET_DEFAULT): Use symbolic values.
8694 * config/s390/s390.c (s390_backchain_string): Initialize to
8695 TARGET_DEFAULT_BACKCHAIN.
8696
8697 2004-10-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8698
8699 * builtins.c (expand_builtin_mempcpy): Move tree handling code to
8700 fold_builtin_mempcpy. Accept a type parameter. Delete duplicate
8701 code.
8702 (expand_builtin_strcat): Accept a type parameter.
8703 (fold_builtin_mempcpy): Accept a type and endp parameter.
8704
8705 * builtins.c (expand_builtin_strncpy): Delete duplicate code.
8706 Accept an `exp' instead of an `arglist'.
8707
8708 2004-10-08 Nathan Sidwell <nathan@codesourcery.com>
8709
8710 * tree-tailcall.c (tree_optimize_tail_calls_1): Use fold_convert,
8711 reverting my 2004-09-07 patch to use build_int_cst.
8712
8713 2004-10-08 Eric Botcazou <ebotcazou@libertysurf.fr>
8714
8715 PR target/17245
8716 * config/sparc/sparc.c (input_operand): Remove redundant code
8717 for handling LO_SUM.
8718 (legitimate_address_p) <REG+REG>: Do not recheck TARGET_V9.
8719 <LO_SUM>: If LO_SUM is offsettable, accept it for TFmode on V9.
8720 Otherwise only accept it for TFmode if quad move insns are available.
8721
8722 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
8723
8724 * tree-cfg.c (tree_forwarder_block_p): Reorder checks so that
8725 common cases will be caught earlier than others.
8726
8727 2004-10-08 Michael Matz <matz@suse.de>
8728
8729 * loop-doloop.c (doloop_optimize): Extend count.
8730
8731 2004-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
8732
8733 * config/sh/sh.md (prefetch_media, prefetch_i4): New insns.
8734 (prefetch): Convert to expander.
8735
8736 2004-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
8737
8738 * config/sh/sh.md (tls_global_dynamic): Use MEM pattern for the
8739 first argument of CALL.
8740 (tls_local_dynamic): Likewise.
8741
8742 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
8743
8744 * c-typeck.c (enum impl_conv): New.
8745 (convert_for_assignment): Use it. Take tree for function called
8746 instead of its name. Handle ObjC selectors for diagnostics at
8747 start of function. Select diagnostic text within the function
8748 using full sentences for diagnsotics. Use %qE to name functions
8749 in diagnostics.
8750 (convert_arguments, build_modify_expr,
8751 c_convert_parm_for_inlining, digest_init, c_finish_return): Update
8752 callers to convert_for_assignment.
8753 (warn_for_assignment): Remove.
8754
8755 2004-10-08 Nick Clifton <nickc@redhat.com>
8756
8757 * config/sh/symbian.c (symbian_possibly_export_base_class):
8758 Replace use of deleted TYPE_USES_VIRTUAL_BASECLASSES macro with
8759 TYPE_CONTAINS_VPTR_P.
8760
8761 2004-10-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
8762
8763 * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Don't exclude
8764 fixed registers form all_used_regs. Update call_really_used_regs.
8765 (CALL_REALLY_USED_REGISTERS): Define.
8766 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Replace call_used_regs
8767 with call_really_used_regs.
8768
8769 2004-10-08 Alan Modra <amodra@bigpond.net.au>
8770
8771 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Choose gcrt1.o
8772 for -profile as well as -p and -pg.
8773
8774 2004-10-07 Andrew Pinski <pinskia@physics.uc.edu>
8775
8776 * libgcc2.c (__moddi3): Cast &w to UDWtype*.
8777
8778 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
8779
8780 * tree-cfg.c (tree_block_forwards_to): Remove.
8781 * tree-flow.h: Remove the corresponding prototype.
8782
8783 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
8784
8785 * tree-flow-inline.h (phi_nodes): Remove an unnecessary check
8786 for ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR.
8787
8788 2004-10-07 Geoffrey Keating <geoffk@apple.com>
8789
8790 Radar 3813796
8791 * config/rs6000/rs6000.c (rs6000_generate_compare): When
8792 flag_trapping_math is in effect, don't generate subtract
8793 instructions.
8794
8795 2004-10-07 Ulrich Weigand <uweigand@de.ibm.com>
8796
8797 * config/s390/s390-protos.h (s390_narrow_logical_operator): Add.
8798 * config/s390/s390.c (s390_narrow_logical_operator): New function.
8799 (s390_extra_constraint_str): Add 'A' constraints.
8800 (s390_const_ok_for_constraint_p): Add 'Nx' constraints.
8801 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'A' constraint.
8802 (CONSTRAINT_LEN): Likewise.
8803 * config/s390/s390.md ("*anddi3"): Add NI alternative and splitter.
8804 ("*andsi3_zarch", "*andsi3_esa"): Likewise.
8805 ("*andhi3_zarch", "*andhi3_esa"): Likewise.
8806 ("*iordi3"): Add OI alternative and splitter.
8807 ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
8808 ("*iorhi3_zarch", "*iorhi3_esa"): Likewise.
8809 ("*xordi3"): Add XI alternative and splitter.
8810 ("*xorsi3", "*xorhi3"): Likewise.
8811
8812 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
8813
8814 * config/mips/mips.c (mips_function_rodata_section): New function.
8815 (TARGET_ASM_FUNCTION_RODATA_SECTION): Use it.
8816
8817 2004-10-07 Devang Patel <dpatel@apple.com>
8818
8819 * rs6000/altivec.md (UNSPEC_VCMPBFP, UNSPEC_VCMPEQUB, UNSPEC_VCMPEQUH,
8820 UNSPEC_VCMPEQUW, UNSPEC_VCMPGEFP, UNSPEC_VCMPGTUB, UNSPEC_VCMPGTSB,
8821 UNSPEC_VCMPGTUH, UNSPEC_VCMPGTSH, UNSPEC_VCMPGTUW, UNSPEC_VCMPGTSW,
8822 UNSPEC_VCMPGTFP, UNSPEC_VSEL4SI, UNSPEC_VSEL4SF, UNSPEC_VSEL8HI,
8823 UNSPEC_VSEL16QI, UNSPEC_VCOND_V4SI, UNSPEC_VCOND_V4SF, UNSPEC_VCOND_V8HI,
8824 UNSPEC_VCOND_V16QI, UNSPEC_VCONDU_V4SI, UNSPEC_VCONDU_V8HI,
8825 UNSPEC_VCONDU_V16QI): New constant defines.
8826 (vcondv4si, vcondv4sf, vcondv8hi, vcondv16qi, vconduv4si, vconduv8hi,
8827 vconduv16qi): New patterns.
8828 * rs6000/rs6000-protos.h (rs6000_emit_vector_cond_expr): New function.
8829 * rs6000/rs6000.c (rs6000_emit_vector_cond_expr): New function.
8830 (get_vec_cmp_insn): Same.
8831 (get_vsel_insn): Same.
8832 (rs6000_emit_vector_compare): Same.
8833 (rs6000_emit_vector_select): Same.
8834 (INSN_NOT_AVAILABLE): New.
8835
8836 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
8837
8838 PR tree-optimization/17749
8839 * tree-tailcall.c (find_tail_calls): Check that parameter is
8840 a gimple_reg.
8841
8842 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
8843
8844 * config/ia64/ia64.c: Fix a comment typo.
8845
8846 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
8847
8848 * doc/install.texi (*-*-solaris2*): Fix marker for URL.
8849
8850 2004-10-07 Giovanni Bajo <giovannibajo@gcc.gnu.org>
8851
8852 PR c++/17115
8853 * tree-inline.c (expand_call_inline): Do not warn for functions
8854 marked with attribute noinline.
8855
8856 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
8857
8858 PR target/17862
8859 * config/sparc/sparc.c (sparc_output_mi_thunk): Set
8860 current_function_uses_only_leaf_regs as well as sparc_leaf_function_p.
8861
8862 * config/sparc/sparc.c (sparc_gimplify_va_arg): Pass 'false' instead
8863 of 0 as 4th argument to pass_by_reference.
8864 Call build_va_arg_indirect_ref instead of build_fold_indirect_ref.
8865
8866 2004-10-06 Eric Christopher <echristo@redhat.com>
8867
8868 * config/sh/sh.c (sh_dwarf_calling_convention): Fix renesas dwarf
8869 attribute.
8870
8871 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
8872
8873 PR target/17770
8874 * config/mips/mips.md (mov_<load>l): Remove hazard=none attribute.
8875
8876 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
8877
8878 PR rtl-optimization/17791
8879 * loop-doloop.c (doloop_modify): Take number of iterations as
8880 argument.
8881 (doloop_optimize): Extend or shorten the number of iterations
8882 when changing mode of counter register.
8883 * loop-iv.c (lowpart_subreg): Export.
8884 * rtl.h (lowpart_subreg): Declare.
8885
8886 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
8887
8888 PR tree-optimization/17806
8889 * cfghooks.c (split_edge): Update IRREDUCIBLE_LOOP flags.
8890 * cfgloopmanip.c (loop_split_edge_with): Updating of IRREDUCIBLE_LOOP
8891 flags moved to split_edge.
8892
8893 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
8894
8895 PR middle-end/17835
8896 * expmed.c (expand_sdiv_pow2): Force a stack adjustment
8897 before tentatively building the conditional move sequence.
8898
8899 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
8900
8901 PR target/16815
8902 * function.c (assign_parm_setup_block_p): Tighten BLOCK_REG_PADDING
8903 check.
8904 * config/pa/pa.h (BLOCK_REG_PADDING): Define in terms of
8905 function_arg_padding.
8906
8907 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
8908
8909 PR bootstrap/17857
8910 * Makefile.in (stmp-fixproto): Pass FIX_HEADER=build/... to fixproto.
8911
8912 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
8913
8914 * hooks.c (hook_int_void_1, hook_void_int): Remove.
8915 * hooks.h: Remove the corresponding prototypes.
8916
8917 2004-10-06 Andrew Pinski <pinskia@physics.uc.edu>
8918
8919 PR middle-end/17849
8920 * tree-nested.c (walk_stmt_info): Add changed field.
8921 (convert_nonlocal_reference): Set changed to when we
8922 change a decl to unnested decl.
8923 <case ADDR_EXPR>: Instead of checking if the immediate part
8924 of the ADDR_EXPR changed, check the field changed.
8925 Use recompute_tree_invarant_for_addr_expr instead of unsetting
8926 TREE_INVARIANT.
8927 (convert_local_reference): Set changed to when we
8928 change a decl to unnested decl.
8929 <case ADDR_EXPR>: Instead of checking if the immediate part
8930 of the ADDR_EXPR changed, check the field changed.
8931 Also call recompute_tree_invarant_for_addr_expr on the ADDR_EXPR.
8932
8933 2004-10-06 Kazu Hirata <kazu@cs.umass.edu>
8934
8935 * defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
8936 * dwarf2out.c (dwarf2out_init): Remove references to
8937 DWARF2_GENERATE_TEXT_SECTION_LABEL.
8938 * system.h: Poison DWARF2_GENERATE_TEXT_SECTION_LABEL.
8939 * doc/tm.texi (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
8940
8941 2004-10-06 Joseph S. Myers <jsm@polyomino.org.uk>
8942
8943 * c-typeck.c (convert_arguments): Take expression for called
8944 function rather than its name. Handle ObjC selectors directly
8945 rather than relying on warn_for_assignment to do so. Call warning
8946 directly rather than warn_for_assignment. Use %qE in diagnostics.
8947 Say "argument" rather than "arg" in diagnostics.
8948 (build_function_call): Update call to convert_arguments.
8949
8950 2004-10-06 Andrew Pinski <pinskia@physics.uc.edu>
8951
8952 PR debug/17787
8953 * dbxout.c (dbxout_symbol): Really handle RECORD, UNION, and
8954 ENUMs specially instead of just saying we do.
8955
8956 2004-10-06 Eric Christopher <echristo@redhat.com>
8957
8958 * dwarf2.h: Sync with include/elf/dwarf2.h
8959
8960 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
8961
8962 * tree-pretty-print.c (dump_generic_node): Fix printing of BINFO
8963 and TREE_VEC nodes.
8964
8965 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
8966
8967 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Convert
8968 to use FOR_EACH_SSA_USE_OPERAND iterator, and propagate_value.
8969
8970 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
8971
8972 * lambda-code.c (compute_nest_using_fourier_motzkin): New
8973 function.
8974 (lambda_compute_auxillary_space): Split from here.
8975
8976 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
8977
8978 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop): Make non-static.
8979 * tree-flow.h: Add prototype.
8980 * lambda-code.c (invariant_in_loop_and_outer_loops): Use
8981 expr_invariant_in_loop.
8982
8983 2004-10-06 Kazu Hirata <kazu@cs.umass.edu>
8984
8985 * tree-cfg.c (thread_jumps): Remove a duplicate check for
8986 EXIT_BLOCK_PTR.
8987
8988 2004-10-06 Ulrich Weigand <uweigand@de.ibm.com>
8989
8990 * config/s390/s390-protos.h (s_imm_operand): Remove.
8991 (s390_pool_operand): Add prototype.
8992 * config/s390/s390.c (general_s_operand): Remove.
8993 (s_imm_operand): Remove.
8994 (s_operand): Merge contents of general_s_operand.
8995 (s390_pool_operand): New function.
8996 * config/s390/s390.h (PREDICATE_CODES): Remove s_imm_operand.
8997 * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct"): New insns.
8998 ("*cmpdi_ccu"): Merge Q->Q alternative.
8999 ("*cmpsi_ccu", "*cmphi_ccu"): Likewise.
9000 ("*cmpqi_ccu"): Merge Q->Q, n->Q, n->S alternatives.
9001 ("*cli"): Remove.
9002 ("*cmpdi_ccu_mem", "*cmpsi_ccu_mem"): Likewise.
9003 ("*cmphi_ccu_mem", "*cmpqi_ccu_mem"): Likewise.
9004 ("*movstricthi"): Use memory_operand instead of s_imm_operand.
9005
9006 2004-10-06 Steve Ellcey <sje@cup.hp.com>
9007
9008 * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Change macro to
9009 call ia64_function_arg_boundary.
9010 * config/ia64/ia64-protos.h (ia64_function_arg_boundary): New.
9011 * config/ia64/ia64.c (ia64_function_arg_boundary): New.
9012 (ia64_function_arg_advance): Do not put 128 bit floats into
9013 FP registers.
9014
9015 2004-10-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9016
9017 * builtins.c (expand_builtin_strcpy): Delete duplicate code.
9018 Accept an expression instead of an arglist.
9019 (expand_builtin_stpcpy): Accept an expression instead of an
9020 arglist.
9021
9022 2004-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
9023
9024 PR target/16007
9025 * doc/install.texi (*-*-solaris2*): Mention potential problem
9026 with Sun assembler + GNU linker and C++ programs.
9027 Document status of binutils 2.15 release.
9028
9029 2004-10-06 Jan Hubicka <jh@suse.cz>
9030
9031 * cse.c (cse_main): Kill push/pop context.
9032
9033 2004-10-05 Zack Weinberg <zack@codesourcery.com>
9034
9035 * pretty-print.c: Include tree.h.
9036 (pp_base_prepare_to_format): New function, logic from
9037 text_specifies_location.
9038 (pp_base_format_text): Use gcc_assert.
9039 * pretty-print.h (pp_prepare_to_format): New macro.
9040 (pp_base_prepare_to_format): Prototype.
9041 * diagnostic.c (text_specifies_location): Delete.
9042 (bug_report_request): Delete.
9043 (diagnostic_set_info): Don't call text_specifies_location.
9044 (diagnostic_action_after_output): Put text from
9045 bug_report_request inline here. Use gcc_unreachable.
9046 (diagnostic_report_current_function): Fix comment.
9047 (diagnostic_report_diagnostic): Clarify logic for error recursion.
9048 Call pp_prepare_to_format before diagnostic_starter.
9049 (trim_filename): Use IS_DIR_SEPARATOR.
9050 (fatal_error, internal_error): Use gcc_unreachable.
9051 (error_recursion): Call diagnostic_action_after_output to
9052 issue the bug_report_request message and exit.
9053 * Makefile.in (diagnostic.o, pretty-print.o): Update dependencies.
9054
9055 * c-parse.in: Add list of diagnostic messages to insulate
9056 translation template from version of yacc/bison used to
9057 compile the grammar.
9058
9059 2004-10-06 Alan Modra <amodra@bigpond.net.au>
9060
9061 PR 16406
9062 * doc/tm.texi (USE_LD_AS_NEEDED, LINK_EH_SPEC): Document.
9063
9064 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
9065
9066 * basic-block.h: Remove the prototype for
9067 flow_preorder_transversal_compute.
9068 * cfganal.c (dfst_node): Remove.
9069 (flow_preorder_transversal_compute): Likewise.
9070 * rtl.h: Remove the prototype for get_jump_table_offset.
9071 * rtlanal.c (get_jump_table_offset): Remove.
9072
9073 2004-10-05 Richard Henderson <rth@redhat.com>
9074
9075 PR 17756
9076 * tree-ssa-operands.c (get_expr_operands): Handle CONST_DECL.
9077
9078 2004-10-05 Kelley Cook <kcook@gcc.gnu.org>
9079
9080 PR bootstrap/17817
9081 * Makefile.in: Stage the build directory too.
9082
9083 2004-10-05 Aldy Hernandez <aldyh@redhat.com>
9084
9085 * config/frv/frv.h (LEGITIMIZE_ADDRESS): New.
9086
9087 * config/frv/frv-protos.h (frv_legitimize_address): Protoize.
9088 (frv_emit_move): Same.
9089
9090 * config/frv/frv.c (frv_emit_move): New.
9091 (frv_legitimize_address): New.
9092
9093 * config/frv/frv.md ("movsi"): Call frv_emit_move.
9094 ("movqi"): Same.
9095 ("movhi"): Same.
9096 ("movdi"): Same.
9097 ("movsf"): Same.
9098 ("movdf"): Same.
9099
9100 2004-10-05 Joseph S. Myers <jsm@polyomino.org.uk>
9101
9102 * c-decl.c (declspecs_add_type): Don't pedwarn for _Complex in
9103 system headers.
9104
9105 2004-10-05 Joseph S. Myers <jsm@polyomino.org.uk>
9106
9107 * c-decl.c (pushdecl): When an extern declaration at block scope
9108 refers to a visible entity with internal linkage, use the old DECL
9109 rather than the new one.
9110
9111 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
9112
9113 * tree-cfg.c (cleanup_tree_cfg): Remove extra parentheses in
9114 comments.
9115
9116 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
9117
9118 * tree-cfg.c (thread_jumps): Remove a duplicate check for
9119 an infinite loop.
9120
9121 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
9122
9123 * tree-cfg.c (thread_jumps): Iterate with FOR_EACH_BB instead
9124 of FOR_BB_BETWEEN. Remove a useless check for unreachable
9125 blocks.
9126
9127 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
9128
9129 * tree-cfg.c (cleanup_tree_cfg): Don't call
9130 delete_unreachable_blosk() after thread_jumps().
9131 (thread_jumps): Always remove basic blocks as they become
9132 unreachable.
9133
9134 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
9135
9136 * tree-cfg.c (cleanup_tree_cfg): Remove variable
9137 something_changed. Simplify the while loop.
9138
9139 2004-10-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9140
9141 * builtins.c (expand_builtin_memmove): Delete duplicate code
9142 and accept a tree type for the result.
9143 (expand_builtin_bcopy): Accept a tree type for the result.
9144 (fold_builtin_memmove): Accept an arglist and tree type for
9145 the result.
9146
9147 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
9148
9149 * config/s390/s390.c (s390_dump_pool): Remove return value.
9150 Use gen_pool_align, gen_pool_section_start/end instead of
9151 gen_pool_start/end_31/64.
9152 * config/s390/s390.md (UNSPECV_POOL_START, UNSPECV_POOL_END): Remove.
9153 (UNSPECV_POOL_SECTION, UNSPECV_POOL_ALIGN): New constants.
9154 ("pool_start_31", "pool_end_31"): Remove.
9155 ("pool_start_64", "pool_end_64"): Likewise.
9156 ("pool_align", "pool_section_start", "pool_section_end": New insns.
9157
9158 * config/s390/s390.c (s390_cannot_copy_insn_p): New function.
9159 (TARGET_CANNOT_COPY_INSN_P): Define.
9160 (s390_cannot_force_const_mem): Handle UNSPEC_INSN.
9161 (struct constant_pool): New member 'execute'.
9162 (s390_add_execute, s390_find_execute): New functions.
9163 (s390_execute_label, s390_execute_target): Likewise.
9164 (s390_dump_pool): Output in-pool execute target templates.
9165 (s390_dump_execute): New function.
9166 (s390_alloc_pool, s390_free_pool): Handle execute templates.
9167 (s390_mainpool_start, s390_mainpool_finish): Likewise.
9168 (s390_chunkify_start, s390_chunkify_finish): Likewise.
9169 * config/s390/s390.md (UNSPEC_INSN, UNSPEC_EXECUTE): New constants.
9170 ("*execute"): New insn pattern.
9171 ("movmem_short", "*movmem_short"): Use splitters to generate
9172 explicit execute pattern, remove embedded execute.
9173 ("clrmem_short", "*clrmem_short"): Likewise.
9174 ("cmpmem_short", "*cmpmem_short"): Likewise.
9175
9176 2004-10-05 Daniel Berlin <dberlin@dberlin.org>
9177
9178 * tree-ssa.c (verify_ssa): Verify phi arguments only
9179 contain renamed names.
9180
9181 2004-10-05 Alan Modra <amodra@bigpond.net.au>
9182
9183 * config/rs6000/linux.h: Formatting, whitespace.
9184 * config/rs6000/linux64.h: Likewise.
9185 * config/rs6000/rs6000-protos.h: Likewise.
9186 * config/rs6000/rs6000.c: Likewise.
9187 (easy_vector_splat_const): Add fall thru comments.
9188 (output_vec_const_move): Likewise.
9189
9190 2004-10-05 Kelley Cook <kcook@gcc.gnu.org>
9191
9192 * Makefile.in: Update -Wno-error exceptions for move to build dir.
9193
9194 2004-10-05 Chao-Ying Fu <fu@mips.com>
9195 Richard Sandiford <rsandifo@redhat.com>
9196
9197 * doc/invoke.texi (-mpaired-single): Link to the new description of the
9198 built-in functions. Document dependencies.
9199 (-mips3d): Add link here too.
9200 * doc/extend.texi (MIPS Paired-Single Support): New section.
9201
9202 2004-10-04 Chao-ying Fu <fu@mips.com>
9203
9204 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Define.
9205
9206 2004-10-04 Diego Novillo <dnovillo@redhat.com>
9207
9208 * tree-ssa-dom.c (tree_ssa_dominator_optimize):
9209 Initialize OPT_STATS to 0.
9210
9211 2004-10-04 Kazu Hirata <kazu@cs.umass.edu>
9212
9213 * tree-data-ref.c: Fix comment typos.
9214
9215 2004-10-04 Sebastian Pop <pop@cri.ensmp.fr>
9216
9217 * tree-data-ref.c (array_base_name_differ_p): Fix comments. When
9218 the predicate cannot be computed, don't initialize the result to
9219 false.
9220
9221 2004-10-01 Eric Christopher <echristo@redhat.com>
9222
9223 * dwarf2.h (dwarf_calling_convention): Add GNU prefix to
9224 locally defined enum.
9225 * dwarf2out.c (add_calling_convention_attribute): Don't
9226 emit DW_CC_normal.
9227
9228 2004-10-03 Andrew Pinski <pinskia@physics.uc.edu>
9229
9230 PR c/17178, PR c/17820
9231 * c-decl.c (pop_scope): Do not warn about unused static
9232 variables as they warned in the middle-end.
9233
9234 2004-10-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9235
9236 * builtins.c (expand_builtin_memcpy): Delete duplicate code
9237 and make the first parameter the expression not the arglist.
9238
9239 2004-10-03 Ulrich Weigand <uweigand@de.ibm.com>
9240
9241 * expr.c (expand_expr_addr_expr): Only accept Pmode or ptr_mode
9242 as valid modes to expand address expressions.
9243
9244 2004-10-03 Joseph S. Myers <jsm@polyomino.org.uk>
9245
9246 * c-aux-info.c, c-common.c, c-common.h, c-cppbuiltin.c, c-decl.c,
9247 c-format.c, c-incpath.c, c-lex.c, c-objc-common.c, c-opts.c,
9248 c-parse.in, c-pch.c, c-ppoutput.c, c-pragma.c, c-typeck.c: Follow
9249 code formatting conventions.
9250
9251 2004-10-03 Richard Sandiford <rsandifo@redhat.com>
9252
9253 * config/mips/mips.md (<u>mulsidi3_32bit_r4000): Fix unsigned case.
9254
9255 2004-10-03 Kazu Hirata <kazu@cs.umass.edu>
9256
9257 PR tree-optimization/16632
9258 * fold-const.c (fold) [EQ_EXPR]: When seeing if D & ~C != 0 to
9259 fold (A & C) == D into 0, fold ~C. Similarly, for the case
9260 where | is used instead of &.
9261
9262 2004-10-03 Kazu Hirata <kazu@cs.umass.edu>
9263
9264 * ginclude/stddef.h: Fix a comment typo.
9265
9266 2004-10-03 Eric Botcazou <ebotcazou@libertysurf.fr>
9267
9268 PR target/17443
9269 * config.gcc (i?86-*-solaris2*): Restore correct logic
9270 for --enable-threads option.
9271 (sparc64-*-solaris2*): Likewise.
9272 (sparc-*-solaris2*): Likewise.
9273
9274 2004-10-03 Alan Modra <amodra@bigpond.net.au>
9275
9276 * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define.
9277 (OS_MISSING_POWERPC64): Move, and comment.
9278 * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Define.
9279 (OS_MISSING_POWERPC64): Move, and comment.
9280
9281 2004-10-02 Ian Lance Taylor <ian@wasabisystems.com>
9282
9283 * arm.c (output_call_mem): Add missing \t.
9284
9285 2004-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9286
9287 * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp,
9288 expand_builtin_strncmp): Delete duplicate code.
9289
9290 2004-10-02 Frank Ch. Eigler <fche@redhat.com>
9291
9292 * tree-mudflap.c (mf_build_check_statement_for): Reorganize to
9293 take check-base and -limit arguments.
9294 (mf_xform_derefs_1): Reorganize slightly to pass proper base/limit
9295 check ranges for ARRAY_REF and COMPONENT_REF.
9296 (execute_mudflap_fnction_ops, ..._decls): Limit unnecessary
9297 instrumentation.
9298
9299 2004-10-02 Joseph S. Myers <jsm@polyomino.org.uk>
9300
9301 * c-objc-common.c (c_tree_printer): Correct description of %E.
9302 Don't fall through after printing an expression.
9303
9304 2004-10-02 Kazu Hirata <kazu@cs.umass.edu>
9305
9306 * tree-cfg.c, config/s390/tpf-unwind.h: Fix comment typos.
9307
9308 2004-10-02 Kazu Hirata <kazu@cs.umass.edu>
9309
9310 * tree-cfg.c (cleanup_tree_cfg): Speed up by calling
9311 delete_unrechable_blocks() only when necessary.
9312
9313 2004-10-02 P.J. Darcy <darcypj@us.ibm.com>
9314
9315 * gthr-tpf.h (__gthread_recursive_mutex_t): New type.
9316 (__GTHREAD_RECURSIVE_MUTEX_INIT): Define.
9317 (__gthread_recursive_mutex_lock, __gthread_recursive_mutex_trylock,
9318 __gthread_recursive_mutex_unlock): New functions.
9319
9320 2004-10-02 P.J. Darcy <darcypj@us.ibm.com>
9321
9322 * config/s390/t-tpf (LIB2ADDEH): Remove tpf-eh.c.
9323 * config/s390/tpf-eh.c: Remove file.
9324 * config/s390/tpf-unwind.h: New file.
9325 * config/s390/tpf.h (MD_FALLBACK_FRAME_STATE_FOR): Remove.
9326 (MD_UNWIND_SUPPORT): Define.
9327
9328 2004-10-02 Joseph S. Myers <jsm@polyomino.org.uk>
9329
9330 * c-typeck.c (warn_for_assignment): Don't permit argnum == 0.
9331
9332 2004-10-01 Ulrich Weigand <uweigand@de.ibm.com>
9333
9334 * config/s390/s390-protos.h (s390_comparison): Add prototype.
9335 * config/s390/s390.c (s390_comparison): New function.
9336 (s390_branch_condition_mask): Return -1 for invalid comparisons.
9337 (s390_branch_condition_mnemonic): Assert valid comparison.
9338 * config/s390/s390.h (PREDICATE_CODES): Add s390_comparison.
9339 * config/s390/s390.md ("*cjump_64", "*cjump_31", "*cjump_long",
9340 "*icjump_64", "*icjump_31", "*icjump_long", "*trap"): Use
9341 s390_comparison instead of comparison_operator.
9342
9343 * config/s390/s390.md (UNSPEC_CMPINT): New constant.
9344 ("cmpmemdi"): Remove.
9345 ("cmpmem_short", "*cmpmem_short"): Use CCUmode instead of CCSmode.
9346 ("cmpmem_long", "*cmpmem_long_64", "*cmpmem_long_31"): Likewise.
9347 ("cmpint_si"): Rename to ...
9348 ("*cmpint_si"): ... this. Use UNSPEC_CMPINT.
9349 ("cmpint_di", "*cmpint_di"): Likewise.
9350 * config/s390/s390.c (s390_canonicalize_comparison): Remove
9351 redundant UNSPEC_CMPINT conversions.
9352 (s390_expand_cmpmem): Adapt to cmpint pattern changes.
9353
9354 2004-10-01 Kazu Hirata <kazu@cs.umass.edu>
9355
9356 * collect2.c (COLLECT_PARSE_FLAG): Remove.
9357 (main): Remove a reference to COLLECT_PARSE_FLAG
9358 * system.h: Poison COLLECT_PARSE_FLAG.
9359 * doc/tm.texi (COLLECT_PARSE_FLAG): Remove.
9360
9361 2004-10-01 Paul Brook <paul@codesourcery.com>
9362
9363 * config/arm/crti.asm: Give _init and _fini function type.
9364
9365 2004-10-01 Zdenek Dvorak <dvorakz@suse.cz>
9366
9367 * common.opt (ftree-loop-ivcanon): Enable by default.
9368 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
9369 Enable complete loop unrolling.
9370 (canonicalize_induction_variables, tree_unroll_loops_completely):
9371 Reset scev info.
9372
9373 2004-10-01 Paul Brook <paul@codesourcery.com>
9374
9375 * config/arm/arm.c (thumb_compute_saved_rag_mask): Or with bitmask,
9376 not register number.
9377 (thumb_find_work_register): Search full register range.
9378
9379 2004-10-01 Andrew Pinski <pinskia@physics.uc.edu>
9380
9381 PR tree-opt/17343
9382 * tree-cfg.c (group_case_labels): Get the label and not
9383 the case expr for the default case.
9384 When the label we looking at is the default, decrement the
9385 new_size.
9386
9387 2004-10-01 Jan Hubicka <jh@suse.cz>
9388
9389 * c-decl.c (c_expand_body): Update call tree_rest_of_compilation.
9390 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
9391 * toplev.h (tree_rest_of_compilation): Update prototype.
9392 * tree-optimize.c (tree_rest_of_compilation): Kill nested_p argument.
9393
9394 2004-10-01 Kazu Hirata <kazu@cs.umass.edu>
9395
9396 * tree-cfg.c (cleanup_tree_cfg): Pull a call to
9397 cleanup_control_flow() out of the while loop.
9398
9399 2004-10-01 Paolo Bonzini <bonzini@gnu.org>
9400
9401 * tree-vectorizer.c (vectorizable_operation): Fail unless
9402 the mode for the vector type is indeed a vector mode.
9403
9404 2004-10-01 Zdenek Dvorak <dvorakz@suse.cz>
9405
9406 * tree-chrec.c (chrec_fold_plus_poly_poly, chrec_fold_plus_1,
9407 chrec_fold_multiply): Use fold_convert or build_int_cst_type instead
9408 of convert.
9409 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
9410 add_to_evolution, set_nb_iterations_in_loop, follow_ssa_edge_in_rhs,
9411 follow_ssa_edge_in_rhs): Ditto.
9412 * tree-ssa-loop-ivopts.c (struct iv): Add base_object field.
9413 (dump_iv): Dump base_object.
9414 (dump_use, dump_cand): Use dump_iv.
9415 (determine_base_object): New function.
9416 (alloc_iv): Initialize base_object field.
9417 (record_use): Clear the ssa_name field of iv.
9418 (get_computation_cost_at): Do not use difference of addresses of
9419 two different objects.
9420 (may_eliminate_iv): Do not require the loop to have just single exit.
9421 * tree-ssa-loop-niter.c (zero_p): Do not check for overflows.
9422 (nonzero_p): New function.
9423 (inverse, number_of_iterations_cond, simplify_using_outer_evolutions,
9424 tree_simplify_using_condition, simplify_using_initial_conditions,
9425 loop_niter_by_eval, find_loop_niter_by_eval,
9426 estimate_numbers_of_iterations_loop, compare_trees,
9427 upper_bound_in_type, lower_bound_in_type,
9428 can_count_iv_in_wider_type_bound): Use buildN instead of build. Use
9429 fold_convert or build_int_cst_type instead of convert. Use (non)zero_p
9430 instead of integer_(non)zerop.
9431
9432 2004-10-01 Jakub Jelinek <jakub@redhat.com>
9433
9434 Revert
9435 2004-09-29 Jakub Jelinek <jakub@redhat.com>
9436
9437 * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
9438 and TI_VA_LIST_FPR_COUNTER_FIELD.
9439 (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
9440 * tree-pass.h (pass_stdarg): Add.
9441 * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
9442 * tree-stdarg.c: New file.
9443 * Makefile.in (OBJS-common): Add tree-stdarg.o.
9444 (tree-stdarg.o): Add dependencies.
9445 * function.h (struct function): Add va_list_gpr_size and
9446 va_list_fpr_size fields.
9447 * function.c (allocate_struct_function): Initialize them.
9448
9449 * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
9450 va_list_{g,f}pr_counter_field.
9451 (ix86_setup_incoming_varargs): Don't do anything if reg_save
9452 area will not be used. Only save registers that tree-stdarg.c
9453 detected they need saving.
9454 (ix86_va_start): Don't set up fields that won't be used.
9455
9456 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
9457 va_list_{g,f}pr_counter_field.
9458 (setup_incoming_varargs): Don't do anything if reg_save
9459 area will not be used. Only save registers that tree-stdarg.c
9460 detected they need saving.
9461 (rs6000_va_start): Don't set up fields that won't be used.
9462
9463 2004-09-30 Eric Christopher <echristo@redhat.com>
9464
9465 * dwarf2.h (dwarf_calling_convention): Add enum for renesas
9466 sh abi.
9467 * dwarf2out.c (add_calling_convention_attribute): New function.
9468 (gen_subroutine_type_die): Use.
9469 * target-def.h (TARGET_DWARF_CALLING_CONVENTION): New hook.
9470 * target.h (gcc_target): Add dwarf_calling_convention.
9471 * hooks.c (hook_int_tree_0): New function.
9472 * hooks.h: Prototype.
9473 * config/sh/sh.c: Include dwarf2.h.
9474 (sh_dwarf_calling_convention): New function.
9475 (TARGET_DWARF_CALLING_CONVENTION): Use.
9476 * doc/tm.texi (TARGET_DWARF_CALLING_CONVENTION): Document.
9477
9478 2004-09-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9479
9480 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
9481 expand_builtin_strrchr, expand_builtin_strpbrk,
9482 expand_builtin_strncat, expand_builtin_strspn,
9483 expand_builtin_strcspn, expand_builtin_fputs): Eliminate duplicate
9484 code.
9485
9486 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
9487
9488 * config/s390/s390-protos.h (s390_expand_logical_operator): Add
9489 prototype.
9490 (s390_logical_operator_ok_p): Likewise.
9491 * config/s390/s390.c (s390_expand_logical_operator): New function.
9492 (s390_logical_operator_ok_p): Likewise.
9493 * config/s390/s390.md ("anddi3"): New expander.
9494 ("*anddi3"): Rename from old anddi3 pattern, add Q->Q alternative.
9495 ("*anddi3_ss", "*anddi3_ss_inv"): Remove.
9496 ("andsi3"): Use s390_expand_logical_operator.
9497 ("*andsi3_esa", "*andsi3_zarch"): Add Q->Q alternative.
9498 ("*andsi3_ss", "*andsi3_ss_inv"): Remove.
9499 ("andhi3"): New expander.
9500 ("*andhi3_zarch", "*andhi3_esa"): New patterns.
9501 ("andhi3", "*andhi3_ni", "*andhi3_ss", "*andhi3_ss_inv"): Remove.
9502 ("andqi3"): New expander.
9503 ("*andqi3_zarch", "*andqi3_esa"): New patterns.
9504 ("andqi3", "*andqi3_ni", "*andqi3_ss", "*andqi3_ss_inv"): Remove.
9505 ("iordi3"): New expander.
9506 ("*iordi3"): Rename from old iordi3 pattern, add Q->Q alternative.
9507 ("*iordi3_ss", "*iordi3_ss_inv"): Remove.
9508 ("iorsi3"): Use s390_expand_logical_operator.
9509 ("*iorsi3_esa", "*iorsi3_zarch"): Add Q->Q alternative.
9510 ("*iorsi3_ss", "*iorsi3_ss_inv"): Remove.
9511 ("iorhi3"): New expiorer.
9512 ("*iorhi3_zarch", "*iorhi3_esa"): New patterns.
9513 ("iorhi3", "*iorhi3_ni", "*iorhi3_ss", "*iorhi3_ss_inv"): Remove.
9514 ("iorqi3"): New expiorer.
9515 ("*iorqi3_zarch", "*iorqi3_esa"): New patterns.
9516 ("iorqi3", "*iorqi3_ni", "*iorqi3_ss", "*iorqi3_ss_inv"): Remove.
9517 ("xordi3"): New expander.
9518 ("*xordi3"): Rename from old xordi3 pattern, add Q->Q alternative.
9519 ("*xordi3_ss", "*xordi3_ss_inv"): Remove.
9520 ("xorsi3"): New expander.
9521 ("*xorsi3"): Rename from old xorsi3 pattern, add Q->Q alternative.
9522 ("*xorsi3_ss", "*xorsi3_ss_inv"): Remove.
9523 ("xorhi3"): New expander.
9524 ("*xorqi3"): Rename from old xorhi3 pattern, add Q->Q alternative.
9525 ("*xorhi3_ss", "*xorhi3_ss_inv"): Remove.
9526 ("xorqi3"): New expander.
9527 ("*xorqi3"): Rename from old xorqi3 pattern, add Q->Q alternative.
9528 ("*xorqi3_ss", "*xorqi3_ss_inv"): Remove.
9529
9530 2004-09-30 Roger Sayle <roger@eyesopen.com>
9531
9532 * combine.c (force_to_mode) <NE_EXPR>: Only convert the expression
9533 (AND (NE FOO 0) CONST) into (AND FOO CONST) if FOO has the same
9534 machine mode as the result.
9535
9536 2004-09-30 Ben Elliston <bje@au.ibm.com>
9537
9538 PR bootstrap/17761
9539 * lcm.c (optimize_mode_switching): Update to use EDGE_SUCC and
9540 FOR_EACH_EDGE macros.
9541
9542 2004-09-30 Joseph S. Myers <jsm@polyomino.org.uk>
9543
9544 * c-tree.h (readonly_error): Remove.
9545 * c-typeck (enum lvalue_use): New.
9546 (lvalue_or_else, readonly_error): Use it. All callers changed.
9547 (readonly_error): Make static.
9548
9549 2004-09-30 Jan Hubicka <jh@suse.cz>
9550
9551 PR debug/13974
9552 * cfgrtl.c (try_redirect_by_replacing_jump,
9553 force_nonfallthru_and_redirect, commit_one_edge_insertion,
9554 cfg_layout_merge_blocks): Do not attach any line number information
9555 to newly inserted instructions.
9556 * emit-rtl.c (emit_insn*_before, emit_insn*_after): Rename to
9557 emit_insn_*_noloc.
9558 (emit_*insn_before, emit_insn*_after): New.
9559 (emit_*insn_before_setloc, emit_*insn_after_setloc): Do not overwrite
9560 existing locators.
9561 * rtl.h (emit_*insn_before_noloc, emit_*insn_after_noloc): Declare.
9562 (emit_*insn_before_sameloc, emit_*insn_after_sameloc): Kill.
9563
9564 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
9565
9566 * config/s390/s390-protos.h (s390_arg_frame_offset): Remove.
9567 (s390_return_address_offset): Remove.
9568 (s390_can_eliminate): Add prototype.
9569 (s390_initial_elimination_offset): Add prototype.
9570 * config/s390/s390.h (CAN_ELIMINATE): Call s390_can_eliminate.
9571 (INITIAL_ELIMINATION_OFFSET): Call s390_initial_elimination_offset.
9572 * config/s390/s390.c (s390_arg_frame_offset): Remove.
9573 (s390_return_address_offset): Remove.
9574 (s390_can_eliminate, s390_initial_elimination_offset): New functions.
9575 (struct machine_function): New member split_branches_pending_p.
9576 (s390_mainpool_start): Allow nonexistant pool insn for empty pool.
9577 (s390_mainpool_finish): Likewise. Clear base_reg if pool empty.
9578 (s390_optimize_prologue): Remove base_used argument. Call
9579 s390_update_frame_layout instead of s390_register_info. Handle
9580 prologue/epilogue insns that touch only RETURN_REGNUM.
9581 (s390_reorg): Remove base_used. Clear split_branches_pending_p.
9582 (s390_register_info): Remove base_used and return_addr_used
9583 arguments, compute special register usage inline. Return live
9584 register data to caller.
9585 (s390_frame_info): Remove arguments, do not call s390_register_info.
9586 (s390_init_frame_layout): New function.
9587 (s390_update_frame_layout): Likewise.
9588 (s390_emit_prologue): Call s390_update_frame_layout; some code
9589 move to there. Do not emit pool placeholder insn if unnecessary.
9590
9591 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
9592
9593 * config/s390/s390.c (legitimate_reload_constant_p): Remove
9594 floating point constant workaround.
9595 (s390_secondary_input_reload_class): Handle PLUS reloads
9596 with too-large constant.
9597 (s390_expand_plus_operand): Likewise.
9598 * config/s390/s390.md ("movdi"): Do not call force_const_mem.
9599 ("movsi"): Likewise. Also, remove workaround for non-general
9600 operands.
9601 ("movdf"): Do not call force_const_mem.
9602 ("movsf"): Likewise. Merge expander with *movsf insn.
9603 ("*movsf"): Remove, merge with movsf expander.
9604
9605 2004-09-30 Paul Brook <paul@codesourcery.com>
9606
9607 * config/arm/symbian.h (STARTFILE_SPEC): Remove crt*.o.
9608 (ENDFILE_SPEC): Define.
9609 * config/arm/t-symbian.h (EXTRA_MULTILIB_PARTS): Set.
9610
9611 2004-09-30 Richard Henderson <rth@redhat.com>
9612
9613 * config/alpha/qrnnd.asm: Mark for noexecstack.
9614
9615 2004-09-30 Kazu Hirata <kazu@cs.umass.edu>
9616
9617 * protoize.c, tree-cfg.c: Fix comment typos.
9618
9619 2004-09-30 Joseph S. Myers <jsm@polyomino.org.uk>
9620
9621 PR c/17730
9622 * c-typeck.c (lvalue_or_else): Pass msgid directly to error.
9623
9624 2004-09-30 Diego Novillo <dnovillo@redhat.com>
9625
9626 * tree-ssa-alias.c (collect_points_to_info_r): Move analysis of
9627 expressions...
9628 (add_pointed_to_expr): ... here.
9629 Call add_pointed_to_expr for variables with DECL_INITIAL set.
9630 * tree-dfa.c (add_referenced_var): Scan DECL_INITIAL of any
9631 pointer variable, if set.
9632
9633 2004-09-30 Kazu Hirata <kazu@cs.umass.edu>
9634
9635 * config/sh/sh.c: Follow spelling conventions.
9636
9637 2004-09-29 Richard Henderson <rth@redhat.com>
9638
9639 * unwind-dw2.c (_Unwind_GetGR): Honor DWARF_ZERO_REG.
9640 * doc/tm.texi (DWARF_ZERO_REG): New.
9641
9642 * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
9643 alpha_expand_epilogue): Revert 2003-09-30 change to store zero.
9644 * config/alpha/alpha.h (DWARF_ZERO_REG): New.
9645
9646 2004-09-29 Ulrich Weigand <uweigand@de.ibm.com>
9647
9648 * builtins.c (expand_builtin_strlen): Do not call emit_move_insn
9649 with a PLUS as source operand.
9650 (expand_movstr): Likewise.
9651 (expand_builtin_stpcpy): Likewise.
9652
9653 2004-09-29 Richard Henderson <rth@redhat.com>
9654
9655 PR 17739
9656 * tree-gimple.c (is_gimple_reg): Reject hard registers.
9657 (is_gimple_asm_val): New.
9658 * tree-gimple.h (is_gimple_asm_val): Declare.
9659 * gimplify.c (gimplify_asm_expr): Use it.
9660 * tree-pretty-print.c (print_declaration): Dump hard regs.
9661 * tree-outof-ssa.c (check_replaceable): Don't check for hard regs.
9662 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
9663 * tree-ssa-pre.c (is_undefined_value): Likewise.
9664 * tree-ssa-copy.c (may_propagate_copy): Likewise.
9665 (may_propagate_copy_into_asm): Protect DECL_HARD_REGISTER.
9666 * tree-ssa.c (warn_uninit): Likewise.
9667 * tree.h (DECL_HARD_REGISTER): Check for VAR_DECL.
9668
9669 2004-09-29 Fariborz Jahanian <fjahanian@apple.com>
9670
9671 * c-decl.c (merge_decls): Use comptype when comparing
9672 types to decide on DECL_SIZE save of olddecl.
9673
9674 2004-09-29 Daniel Berlin <dberlin@dberlin.org>
9675
9676 * tree.h (INDIRECT_REF_P): New macro.
9677 * alias.c (get_alias_set): Use it
9678 (nonoverlapping_memrefs_p): Ditto.
9679 * emit-rtl.c (mem_expr_equal_p): Ditto.
9680 (set_mem_attributes_minus_bitpos): Ditto.
9681 (is_gimple_addressable): Ditto.
9682 (get_base_address): Ditto.
9683 * tree-ssa-alias.c (find_ptr_derefernece): Ditto.
9684 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Ditto.
9685 * tree-ssa-dom.c (record_equivalences_from_stmt): Ditto.
9686 * tree-ssa-loop-im.c (is_call_clobbered_ref): Ditto.
9687 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Ditto.
9688 (add_address_candidates): Ditto.
9689 (rewrite_address_base): Ditto.
9690
9691 2004-09-30 Ben Elliston <bje@au.ibm.com>
9692
9693 * tree-flow.h (struct bb_ann_d): Remove num_preds member.
9694 * tree-into-ssa.c (rewrite_into_ssa): Don't set it.
9695 (rewrite_ssa_into_ssa): Likewise.
9696 * tree-phinodes.c (create_phi_node): Access the number of
9697 predecessor edges using EDGE_COUNT() and not num_preds.
9698
9699 2004-09-29 Joseph S. Myers <jsm@polyomino.org.uk>
9700
9701 PR c/7425
9702 * c-decl.c (merge_decls): Merge TREE_DEPRECATED.
9703
9704 2004-09-29 Eric Christopher <echristo@redhat.com>
9705
9706 * fold-const.c (tree_swap_operands_p): Remove duplicated code.
9707
9708 2004-09-29 Hans-Peter Nilsson <hp@axis.com>
9709
9710 * config/cris/cris.md (moverside, movemside): With MEM, make sure
9711 the address is (plus reg mem).
9712
9713 2004-09-29 David Edelsohn <edelsohn@gnu.org>
9714
9715 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
9716
9717 2004-09-29 Nathan Sidwell <nathan@codesourcery.com>
9718
9719 * tree.c (make_node_stat): Fix uninitialized warning. Replace
9720 cascaded if ... else if with a switch.
9721
9722 2004-09-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
9723
9724 * read-rtl.c (apply_macro_to_string): Replace index with strchr.
9725
9726 2004-09-29 Jakub Jelinek <jakub@redhat.com>
9727
9728 * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
9729 and TI_VA_LIST_FPR_COUNTER_FIELD.
9730 (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
9731 * tree-pass.h (pass_stdarg): Add.
9732 * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
9733 * tree-stdarg.c: New file.
9734 * Makefile.in (OBJS-common): Add tree-stdarg.o.
9735 (tree-stdarg.o): Add dependencies.
9736 * function.h (struct function): Add va_list_gpr_size and
9737 va_list_fpr_size fields.
9738 * function.c (allocate_struct_function): Initialize them.
9739
9740 * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
9741 va_list_{g,f}pr_counter_field.
9742 (ix86_setup_incoming_varargs): Don't do anything if reg_save
9743 area will not be used. Only save registers that tree-stdarg.c
9744 detected they need saving.
9745 (ix86_va_start): Don't set up fields that won't be used.
9746
9747 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
9748 va_list_{g,f}pr_counter_field.
9749 (setup_incoming_varargs): Don't do anything if reg_save
9750 area will not be used. Only save registers that tree-stdarg.c
9751 detected they need saving.
9752 (rs6000_va_start): Don't set up fields that won't be used.
9753
9754 2004-09-29 Jakub Jelinek <jakub@redhat.com>
9755
9756 * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED,
9757 BUILT_IN_FPUTS, BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE,
9758 BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_PUTCHAR, BUILT_IN_PUTCHAR_UNLOCKED,
9759 BUILT_IN_PUTS, BUILT_IN_PUTS_UNLOCKED): Remove nothrow attribute.
9760 * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_1_2,
9761 ATTR_NONNULL_1_4): New.
9762
9763 2004-09-29 Jakub Jelinek <jakub@redhat.com>
9764
9765 PR tree-optimization/17697
9766 * tree-ssa-ccp.c (execute_fold_all_builtins): Update eh and cleanup
9767 cfg if needed.
9768
9769 2004-09-28 Per Bothner <per@bothner.com>
9770
9771 * profile.c (branch_prob): Pass correct value to output_location,
9772 even when USE_MAPPED_LOCATION. Fixes bug from 09-11.
9773
9774 2004-09-28 Richard Henderson <rth@redhat.com>
9775
9776 PR 15089
9777 * tree-ssa-copy.c (may_propagate_copy_into_asm): New.
9778 * tree-flow.h (may_propagate_copy_into_asm): Declare.
9779 * tree-ssa-ccp.c (replace_uses_in): Use it.
9780 * tree-ssa-dom.c (cprop_operand): Likewise.
9781
9782 2004-09-28 Jeff Law <law@redhat.com>
9783
9784 * tree-ssa-threadupdate.c (create_block_for_threading): Request
9785 that no outgoing edges be left in the duplicate block. Do no
9786 update information on outgoing edges or PHI nodes in target
9787 blocks here.
9788 (remove_ctrl_stmt_and_useless_edges): Renamed from
9789 remove_last_stmt_and_useless_edges. Handle case where the
9790 block is empty or has no control statements. Do not update edge
9791 flags here.
9792 (thread_block): Create a template block rather than copying the
9793 original block every time. Create outgoing edges from the
9794 duplicate blocks and update PHIs at the target of the outgoing
9795 edges here. Fix edge flags for the original block if necessary.
9796 * cfghooks (duplicate_block): No longer assert that the original
9797 block has incoming edges.
9798
9799 2004-09-29 Hans-Peter Nilsson <hp@bitrange.com>
9800
9801 * doc/extend.texi (Extended Asm): Add blurb about using Explicit
9802 Reg Vars to enforce register allocation with general constraints.
9803 (Explicit Reg Vars): Clarify relation to asm statements.
9804 (Local Reg Vars): Similar.
9805
9806 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
9807
9808 * sched-rgn.c (haifa_edge, edge_table, NEXT_IN, NEXT_OUT, FROM_BLOCK,
9809 TO_BLOCK, nr_edges, in_edges, out_edges, IN_EDGES, OUT_EDGES,
9810 build_control_flow, new_edge): Remove.
9811 (schedule_insns): Remove edge_table/in_edges/out_edges cleanup.
9812 (bitlst, bitlst_table_last, bitlst_table): Remove.
9813 (bblst): Store basic_block pointer instead of block index.
9814 (bblst_table): Likewise.
9815 (edgelst): Store edge pointer instead of edge index.
9816 (edgelst_table, edgelst_last): New variables.
9817 (extract_bitlst): Rename to ...
9818 (extract_edgelst): ... this. Return edge pointers, not indices.
9819 (split_edges): Update call.
9820 (rgn_edges): Store edge pointers instead of indices.
9821 (edge_to_bit): Remove.
9822 (EDGE_TO_BIT): Store per-region edge index in edge->aux.
9823 (SET_EDGE_TO_BIT): New macro.
9824 (is_cfg_nonregular): Check for simple cases of unreachable blocks.
9825 (find_rgns): Remove edge_list parameter. Traverse standard CFG
9826 data structures instead of haifa_edge et al. Use edge pointers
9827 instead of edge indices everywhere.
9828 (compute_dom_prob_ps): Use standard CFG data structures. Account
9829 for exit edges.
9830 (compute_trg_info): Likewise.
9831 (propagate_deps): Likewise.
9832 (debug_candidate): Account for bblst data structure change.
9833 (check_live_1, update_live_1, is_pfree): Likewise.
9834 (IS_REACHABLE): Use standard CFG data structures.
9835 (init_ready_list): Update bblst_table/edgelst_table allocation.
9836 (schedule_region): Update alloc/cleanup code to data structure
9837 changes. Use edge->aux to store per-region edge index.
9838 (init_regions): No longer call build_control_flow. Do not
9839 create edge list any more.
9840
9841 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
9842
9843 * cse.c (cse_insn): Avoid creating direct non-local jumps.
9844 * combine.c (can_combine_p): Likewise.
9845 * local-alloc. (update_equiv_regs): Likewise.
9846
9847 2004-09-28 Richard Henderson <rth@redhat.com>
9848
9849 PR 17531
9850 * expr.c (expand_expr_addr_expr_1): Only assemble_external for decls.
9851 Don't check VOIDmode here. Force PLUS operands to common type.
9852 (expand_expr_addr_expr): Do VOIDmode check earlier. Force use of
9853 Pmode if given a non pointer type.
9854
9855 2004-09-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9856
9857 PR 17531
9858 * optabs.c (expand_binop): Force constants to the correct mode.
9859
9860 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
9861
9862 * config/s390/s390.c (s390_adjust_cost): Remove.
9863 (TARGET_SCHED_ADJUST_COST): Do not redefine.
9864 (s390_adjust_priority): Handle TYPE_STM like TYPE_STORE.
9865 * config/s390/s390.md ("main_pool"): Use "larl" type
9866 attribute if TARGET_CPU_ZARCH.
9867
9868 2004-09-28 Jakub Jelinek <jakub@redhat.com>
9869
9870 * config/ia64/ia64.c (ia64_expand_prologue): Declare ei
9871 variable.
9872
9873 2004-09-28 Diego Novillo <dnovillo@redhat.com>
9874
9875 * tree-ssa-loop.c (pass_record_bounds): Do not assign a
9876 name to the pass.
9877
9878 2004-09-28 Steven Bosscher <stevenb@suse.de>
9879
9880 * common.opt (flag_gcse_sm): Disable by default.
9881 (flag_gcse_las): Likewise.
9882 (flag_web): Likewise. Create from this file.
9883 * flags.h: Remove flag_web declaration.
9884 * toplev.c (flag_web): Likewise.
9885 (process_options): Never set flag_web.
9886
9887 2004-09-28 Steven Bosscher <stevenb@suse.de>
9888
9889 * Makefile.in (tree-ssa-propagate.o): Depend on vec.h.
9890 * tree-ssa-propagate.c: Include vec.h.
9891 (interesting_ssa_edges, varying_ssa_edges): Make these VECs
9892 instead of varrays.
9893 (cfg_blocks_add): Assert the block is not already in the worklist.
9894 Update uses of interesting_ssa_edges and varying_ssa_edges.
9895 (process_ssa_edge_worklist, ssa_prop_init, ssa_prop_fini,
9896 ssa_propagate): Likewise.
9897
9898 2004-09-28 Joseph S. Myers <jsm@polyomino.org.uk>
9899
9900 PR c/16409
9901 * c-decl.c (start_decl): Check for initializing incomplete array
9902 of VLAs.
9903 (build_compound_literal): Check for TYPE being error_mark_node.
9904 * c-parse.in (primary): Check for VLA compound literals.
9905
9906 2004-09-28 Diego Novillo <dnovillo@redhat.com>
9907
9908 * tree-ssa-live.c (calculate_live_on_entry): Fix warnings
9909 with --disable-checking.
9910
9911 2004-09-28 Devang Patel <dpatel@apple.com>
9912
9913 * tree-pretty-print.c (dump_generic_node): Print vector types.
9914
9915 2004-09-28 Nick Clifton <nickc@redhat.com>
9916
9917 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Replace with an
9918 invocation of the function sh_init_cumulative_args.
9919 (INIT_CUMULATIVE_LIBCALL_ARGS): Likewise.
9920 (INIT_CUMULATIVE_INCOMING_ARGS): Delete.
9921 * config/sh/sh-protos.h: Prototype sh_init_cumulative_args.
9922 * config/sh/sh.c (sh_init_cumulative_args): New function based
9923 on the contents of the old INIT_CUMULATIVE_ARGS macro but with a
9924 heuristic added to determine the setting of force_mem when a
9925 library function is being called.
9926
9927 2004-09-28 Diego Novillo <dnovillo@redhat.com>
9928
9929 * tree-ssa-loop-im.c (single_reachable_address) <PHI_NODE>:
9930 Skip constant arguments.
9931
9932 2004-09-28 Diego Novillo <dnovillo@redhat.com>
9933
9934 * tree-ssa-alias.c (create_name_tags): If PTR points to a
9935 volatile type, mark the tag volatile.
9936 (get_tmt_for): If TAG_TYPE is a volatile type, mark the tag
9937 volatile.
9938
9939 2004-09-28 Andrew Pinski <pinskia@physics.uc.edu>
9940
9941 * tree.def (vec_cond_expr): Fix. Change 'e'
9942 to tcc_expression.
9943
9944 2004-09-28 Kazu Hirata <kazu@cs.umass.edu>
9945
9946 * basic-block.h: Fix a comment typo.
9947
9948 2004-09-28 Kazu Hirata <kazu@cs.umass.edu>
9949
9950 * optabs.c, optabs.h: Fix comment typos.
9951
9952 2004-09-28 Eric Botcazou <ebotcazou@act-europe.fr>
9953
9954 * config/sparc/sparc.md (call_address_struct_value_sp32):
9955 Properly mask the immediate field of the 'unimp' instruction.
9956 (call_symbolic_struct_value_sp32): Likewise.
9957
9958 2004-09-28 Ben Elliston <bje@au.ibm.com>
9959 Steven Bosscher <stevenb@suse.de>
9960 Andrew Pinski <pinskia@physics.uc.edu>
9961
9962 Merge from edge-vector-branch:
9963 * basic-block.h: Include vec.h, errors.h. Instantiate a VEC(edge).
9964 (struct edge_def): Remove pred_next, succ_next members.
9965 (struct basic_block_def): Remove pred, succ members. Add preds
9966 and succs members of type VEC(edge).
9967 (FALLTHRU_EDGE): Redefine using EDGE_SUCC.
9968 (BRANCH_EDGE): Likewise.
9969 (EDGE_CRITICAL_P): Redefine using EDGE_COUNT.
9970 (EDGE_COUNT, EDGE_I, EDGE_PRED, EDGE_SUCC): New.
9971 (edge_iterator): New.
9972 (ei_start, ei_last, ei_end_p, ei_one_before_end_p): New.
9973 (ei_next, ei_prev, ei_edge, ei_safe_edge): Likewise.
9974 (FOR_EACH_EDGE): New.
9975 * bb-reorder.c (find_traces): Use FOR_EACH_EDGE and EDGE_* macros
9976 where applicable.
9977 (rotate_loop): Likewise.
9978 (find_traces_1_route): Likewise.
9979 (bb_to_key): Likewise.
9980 (connect_traces): Likewise.
9981 (copy_bb_p): Likewise.
9982 (find_rarely_executed_basic_blocks_and_crossing_edges): Likewise.
9983 (add_labels_and_missing_jumps): Likewise.
9984 (fix_up_fall_thru_edges): Likewise.
9985 (find_jump_block): Likewise.
9986 (fix_crossing_conditional_branches): Likewise.
9987 (fix_crossing_unconditional_branches): Likewise.
9988 (add_reg_crossing_jump_notes): Likewise.
9989 * bt-load.c (augment_live_range): Likewise.
9990 * cfg.c (clear_edges): Likewise.
9991 (unchecked_make_edge): Likewise.
9992 (cached_make_edge): Likewise.
9993 (make_single_succ_edge): Likewise.
9994 (remove_edge): Likewise.
9995 (redirect_edge_succ_nodup): Likewise.
9996 (check_bb_profile): Likewise.
9997 (dump_flow_info): Likewise.
9998 (alloc_aux_for_edges): Likewise.
9999 (clear_aux_for_edges): Likewise.
10000 (dump_cfg_bb_info): Likewise.
10001 * cfganal.c (forwarder_block_p): Likewise.
10002 (can_fallthru): Likewise.
10003 (could_fall_through): Likewise.
10004 (mark_dfs_back_edges): Likewise.
10005 (set_edge_can_fallthru_flag): Likewise.
10006 (find_unreachable_blocks): Likewise.
10007 (create_edge_list): Likewise.
10008 (verify_edge_list): Likewise.
10009 (add_noreturn_fake_exit_edges): Likewise.
10010 (connect_infinite_loops_to_exit): Likewise.
10011 (flow_reverse_top_sort_order_compute): Likewise.
10012 (flow_depth_first_order_compute): Likewise.
10013 (flow_preorder_transversal_compute): Likewise.
10014 (flow_dfs_compute_reverse_execute): Likewise.
10015 (dfs_enumerate_from): Likewise.
10016 (compute_dominance_frontiers_1): Likewise.
10017 * cfgbuild.c (make_edges): Likewise.
10018 (compute_outgoing_frequencies): Likewise.
10019 (find_many_sub_basic_blocks): Likewise.
10020 (find_sub_basic_blocks): Likewise.
10021 * cfgcleanup.c (try_simplify_condjump): Likewise.
10022 (thread_jump): Likewise.
10023 (try_forward_edges): Likewise.
10024 (merge_blocks_move): Likewise.
10025 (outgoing_edges_match): Likewise.
10026 (try_crossjump_to_edge): Likewise.
10027 (try_crossjump_bb): Likewise.
10028 (try_optimize_cfg): Likewise.
10029 (merge_seq_blocks): Likewise.
10030 * cfgexpand.c (expand_gimple_tailcall): Likewise.
10031 (expand_gimple_basic_block): Likewise.
10032 (construct_init_block): Likewise.
10033 (construct_exit_block): Likewise.
10034 * cfghooks.c (verify_flow_info): Likewise.
10035 (dump_bb): Likewise.
10036 (delete_basic_block): Likewise.
10037 (split_edge): Likewise.
10038 (merge_blocks): Likewise.
10039 (make_forwarder_block): Likewise.
10040 (tidy_fallthru_edges): Likewise.
10041 (can_duplicate_block_p): Likewise.
10042 (duplicate_block): Likewise.
10043 * cfglayout.c (fixup_reorder_chain): Likewise.
10044 (fixup_fallthru_exit_predecessor): Likewise.
10045 (can_copy_bbs_p): Likewise.
10046 (copy_bbs): Likewise.
10047 * cfgloop.c (flow_loops_cfg_dump): Likewise.
10048 (flow_loop_entry_edges_find): Likewise.
10049 (flow_loop_exit_edges_find): Likewise.
10050 (flow_loop_nodes_find): Likewise.
10051 (mark_single_exit_loops): Likewise.
10052 (flow_loop_pre_header_scan): Likewise.
10053 (flow_loop_pre_header_find): Likewise.
10054 (update_latch_info): Likewise.
10055 (canonicalize_loop_headers): Likewise.
10056 (flow_loops_find): Likewise.
10057 (get_loop_body_in_bfs_order): Likewise.
10058 (get_loop_exit_edges): Likewise.
10059 (num_loop_branches): Likewise.
10060 (verify_loop_structure): Likewise.
10061 (loop_latch_edge): Likewise.
10062 (loop_preheader_edge): Likewise.
10063 * cfgloopanal.c (mark_irreducible_loops): Likewise.
10064 (expected_loop_iterations): Likewise.
10065 * cfgloopmanip.c (remove_bbs): Likewise.
10066 (fix_bb_placement): Likewise.
10067 (fix_irreducible_loops): Likewise.
10068 (remove_path): Likewise.
10069 (scale_bbs_frequencies): Likewise.
10070 (loopify): Likewise.
10071 (unloop): Likewise.
10072 (fix_loop_placement): Likewise.
10073 (loop_delete_branch_edge): Likewise.
10074 (duplicate_loop_to_header_edge): Likewise.
10075 (mfb_keep_just): Likewise.
10076 (create_preheader): Likewise.
10077 (force_single_succ_latches): Likewise.
10078 (loop_split_edge_with): Likewise.
10079 (create_loop_notes): Likewise.
10080 * cfgrtl.c (rtl_split_block): Likewise.
10081 (rtl_merge_blocks): Likewise.
10082 (rtl_can_merge_blocks): Likewise.
10083 (try_redirect_by_replacing_jump): Likewise.
10084 (force_nonfallthru_and_redirect): Likewise.
10085 (rtl_tidy_fallthru_edge): Likewise.
10086 (commit_one_edge_insertion): Likewise.
10087 (commit_edge_insertions): Likewise.
10088 (commit_edge_insertions_watch_calls): Likewise.
10089 (rtl_verify_flow_info_1): Likewise.
10090 (rtl_verify_flow_info): Likewise.
10091 (purge_dead_edges): Likewise.
10092 (cfg_layout_redirect_edge_and_branch): Likewise.
10093 (cfg_layout_can_merge_blocks_p): Likewise.
10094 (rtl_flow_call_edges_add): Likewise.
10095 * cse.c (cse_cc_succs): Likewise.
10096 * df.c (hybrid_search): Likewise.
10097 * dominance.c (calc_dfs_tree_nonrec): Likewise.
10098 (calc_dfs_tree): Likewise.
10099 (calc_idoms): Likewise.
10100 (recount_dominator): Likewise.
10101 * domwalk.c (walk_dominator_tree): Likewise.
10102 * except.c (emit_to_new_bb_before): Likewise.
10103 (connect_post_landing_pads): Likewise.
10104 (sjlj_emit_function_enter): Likewise.
10105 (sjlj_emit_function_exit): Likewise.
10106 (finish_eh_generation): Likewise.
10107 * final.c (compute_alignments): Likewise.
10108 * flow.c (calculate_global_regs_live): Likewise.
10109 (initialize_uninitialized_subregs): Likewise.
10110 (init_propagate_block_info): Likewise.
10111 * function.c (thread_prologue_and_epilogue_insns): Likewise.
10112 * gcse.c (find_implicit_sets): Likewise.
10113 (bypass_block): Likewise.
10114 (bypass_conditional_jumps): Likewise.
10115 (compute_pre_data): Likewise.
10116 (insert_insn_end_bb): Likewise.
10117 (insert_store): Likewise.
10118 (remove_reachable_equiv_notes): Likewise.
10119 * global.c (global_conflicts): Likewise.
10120 (calculate_reg_pav): Likewise.
10121 * graph.c (print_rtl_graph_with_bb): Likewise.
10122 * ifcvt.c (mark_loop_exit_edges): Likewise.
10123 (merge_if_block): Likewise.
10124 (find_if_header): Likewise.
10125 (block_jumps_and_fallthru_p): Likewise.
10126 (find_if_block): Likewise.
10127 (find_cond_trap): Likewise.
10128 (block_has_only_trap): Likewise.
10129 (find_if_case1): Likewise.
10130 (find_if_case_2): Likewise.
10131 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
10132 (perfect_nestify): Likewise.
10133 * lcm.c (compute_antinout_edge): Likewise.
10134 (compute_laterin): Likewise.
10135 (compute_available): Likewise.
10136 (compute_nearerout): Likewise.
10137 * loop-doloop.c (doloop_modify): Likewise.
10138 * loop-init.c (loop_optimizer_init): Likewise.
10139 * loop-invariant.c (find_exits): Likewise.
10140 * loop-iv.c (simplify_using_initial_values): Likewise.
10141 (check_simple_exit): Likewise.
10142 (find_simple_exit): Likewise.
10143 * loop-unroll.c (peel_loop_completely): Likewise.
10144 (unroll_loop_constant_iterations): Likewise.
10145 (unroll_loop_runtime_iterations): Likewise.
10146 * loop-unswitch.c (may_unswitch_on): Likewise.
10147 (unswitch_loop): Likewise.
10148 * modulo-sched.c (generate_prolog_epilog): Likewise.
10149 (sms_schedule): Likewise.
10150 * postreload-gcse.c (eliminate_partially_redundant_load):
10151 Likewise.
10152 * predict.c (can_predict_insn_p): Likewise.
10153 (set_even_probabilities): Likewise.
10154 (combine_predictions_for_bb): Likewise.
10155 (predict_loops): Likewise.
10156 (estimate_probability): Likewise.
10157 (tree_predict_by_opcode): Likewise.
10158 (tree_estimate_probability): Likewise.
10159 (last_basic_block_p): Likewise.
10160 (propagate_freq): Likewise.
10161 (estimate_loops_at_level): Likewise.
10162 (estimate_bb_frequencies): Likewise.
10163 * profile.c (instrument_edges): Likewise.
10164 (get_exec_counts): Likewise.
10165 (compute_branch_probabilities): Likewise.
10166 (branch_prob): Likewise.
10167 * ra-build.c (live_in): Likewise.
10168 * ra-rewrite.c (rewrite_program2): Likewise.
10169 * ra.c (reg_alloc): Likewise.
10170 * reg-stack.c (reg_to_stack): Likewise.
10171 (convert_regs_entry): Likewise.
10172 (compensate_edge): Likewise.
10173 (convert_regs_1): Likewise,
10174 (convert_regs_2): Likewise.
10175 (convert_regs): Likewise.
10176 * regrename.c (copyprop_hardreg_forward): Likewise.
10177 * reload1.c (fixup_abnormal_edges): Likewise.
10178 * sbitmap.c (sbitmap_intersection_of_succs): Likewise.
10179 (sbitmap_insersection_of_preds): Likewise.
10180 (sbitmap_union_of_succs): Likewise.
10181 (sbitmap_union_of_preds): Likewise.
10182 * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
10183 (fix_basic_block_boundaries): Likewise.
10184 (sched_ebbs): Likewise.
10185 * sched-rgn.c (build_control_flow): Likewise.
10186 (find_rgns): Likewise.
10187 * tracer.c (find_best_successor): Likewise.
10188 (find_best_predecessor): Likewise.
10189 (tail_duplicate): Likewise.
10190 * tree-cfg.c (make_edges): Likewise.
10191 (make_ctrl_stmt_edges): Likewise.
10192 (make_goto_expr_edges): Likewise.
10193 (tree_can_merge_blocks_p): Likewise.
10194 (tree_merge_blocks): Likewise.
10195 (cfg_remove_useless_stmts_bb): Likewise.
10196 (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
10197 (tree_block_forwards_to): Likewise.
10198 (cleanup_control_expr_graph): Likewise.
10199 (find_taken_edge): Likewise.
10200 (dump_cfg_stats): Likewise.
10201 (tree_cfg2vcg): Likewise.
10202 (disband_implicit_edges): Likewise.
10203 (tree_find_edge_insert_loc): Likewise.
10204 (bsi_commit_edge_inserts): Likewise.
10205 (tree_split_edge): Likewise.
10206 (tree_verify_flow_info): Likewise.
10207 (tree_make_forwarder_block): Likewise.
10208 (tree_forwarder_block_p): Likewise.
10209 (thread_jumps): Likewise.
10210 (tree_try_redirect_by_replacing_jump): Likewise.
10211 (tree_split_block): Likewise.
10212 (add_phi_args_after_copy_bb): Likewise.
10213 (rewrite_to_new_ssa_names_bb): Likewise.
10214 (dump_function_to_file): Likewise.
10215 (print_pred_bbs): Likewise.
10216 (print_loop): Likewise.
10217 (tree_flow_call_edges_add): Likewise.
10218 (split_critical_edges): Likewise.
10219 (execute_warn_function_return): Likewise.
10220 (extract_true_false_edges_from_block): Likewise.
10221 * tree-if-conv.c (tree_if_conversion): Likewise.
10222 (if_convertable_bb_p): Likewise.
10223 (find_phi_replacement_condition): Likewise.
10224 (combine_blocks): Likewise.
10225 * tree-into-ssa.c (compute_global_livein): Likewise.
10226 (ssa_mark_phi_uses): Likewise.
10227 (ssa_rewrite_initialize_block): Likewise.
10228 (rewrite_add_phi_arguments): Likewise.
10229 (ssa_rewrite_phi_arguments): Likewise.
10230 (insert_phi_nodes_for): Likewise.
10231 (rewrite_into_ssa): Likewise.
10232 (rewrite_ssa_into_ssa): Likewise.
10233 * tree-mudflap.c (mf_build_check_statement_for): Likewise.
10234 * tree-outof-ssa.c (coalesce_abnormal_edges): Likewise.
10235 (rewrite_trees): Likewise.
10236 * tree-pretty-print.c (dump_bb_header): Likewise.
10237 (dump_implicit_edges): Likewise.
10238 * tree-sra.c (insert_edge_copies): Likewise.
10239 (find_obviously_necessary_stmts): Likewise.
10240 (remove_data_stmt): Likewise.
10241 * tree-ssa-dom.c (thread_across_edge): Likewise.
10242 (dom_opt_finalize_block): Likewise.
10243 (single_incoming_edge_ignoring_loop_edges): Likewise.
10244 (record_equivalences_from_incoming_edges): Likewise.
10245 (cprop_into_successor_phis): Likewise.
10246 * tree-ssa-live.c (live_worklist): Likewise.
10247 (calculate_live_on_entry): Likewise.
10248 (calculate_live_on_exit): Likewise.
10249 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
10250 (copy_loop_headers): Likewise.
10251 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
10252 (fill_always_executed_in): Likewise.
10253 * tree-ssa-loop-ivcanon.c (create_canonical_iv): Likewise.
10254 * tree-ssa-loop-ivopts.c (find_interesting_uses): Likewise.
10255 (compute_phi_arg_on_exit): Likewise.
10256 * tree-ssa-loop-manip.c (add_exit_phis_edge): Likewise.
10257 (get_loops_exit): Likewise.
10258 (split_loop_exit_edge): Likewise.
10259 (ip_normal_pos): Likewise.
10260 * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
10261 Likewise.
10262 * tree-ssa-phiopt.c (candidate_bb_for_phi_optimization): Likewise.
10263 (replace_phi_with_stmt): Likewise.
10264 (value_replacement): Likewise.
10265 * tree-ssa-pre.c (compute_antic_aux): Likewise.
10266 (insert_aux): Likewise.
10267 (init_pre): Likewise.
10268 * tree-ssa-propagate.c (simulate_stmt): Likewise.
10269 (simulate_block): Likewise.
10270 (ssa_prop_init): Likewise.
10271 * tree-ssa-threadupdate.c (thread_block): Likewise.
10272 (create_block_for_threading): Likewise.
10273 (remove_last_stmt_and_useless_edges): Likewise.
10274 * tree-ssa.c (verify_phi_args): Likewise.
10275 (verify_ssa): Likewise.
10276 * tree_tailcall.c (independent_of_stmt_p): Likewise.
10277 (find_tail_calls): Likewise.
10278 (eliminate_tail_call): Likewise.
10279 (tree_optimize_tail_calls_1): Likewise.
10280 * tree-vectorizer.c (vect_transform_loop): Likewise.
10281 * var-tracking.c (prologue_stack_adjust): Likewise.
10282 (vt_stack_adjustments): Likewise.
10283 (vt_find_locations): Likewise.
10284 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
10285 * config/i386/i386.c (ix86_pad_returns): Likewise.
10286 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
10287 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
10288
10289 2004-09-28 Eric Botcazou <ebotcazou@libertysurf.fr>
10290
10291 PR target/16532
10292 * config/sparc/sparc.c (struct machine_function): New field
10293 'leaf_function_p' and 'prologue_data_valid_p'.
10294 (sparc_leaf_function_p, sparc_prologue_data_valid_p): New macro
10295 to conveniently access the above fields.
10296 (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Delete.
10297 (eligible_for_return_delay): Use 'sparc_leaf_function_p' instead
10298 of the generic flavor 'current_function_uses_only_leaf_regs'.
10299 (eligible_for_sibcall_delay): Likewise.
10300 (sparc_expand_prologue): Compute 'sparc_leaf_function_p' and set
10301 'sparc_prologue_data_valid_p'. Use 'sparc_leaf_function_p'.
10302 (sparc_asm_function_prologue): Add sanity check for the assumption
10303 made in 'sparc_expand_prologue'. Use 'sparc_leaf_function_p'.
10304 (sparc_can_use_return_insn_p): New function.
10305 (sparc_expand_epilogue): Use 'sparc_leaf_function_p'.
10306 (output_restore): Likewise.
10307 (output_sibcall): Likewise.
10308 (sparc_output_mi_thunk): Likewise.
10309 * config/sparc/sparc-protos.h (sparc_can_use_return_insn_p): Declare.
10310 * config/sparc/sparc.md (return): New expander.
10311
10312 * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Minor tweak.
10313
10314 2004-09-27 Mark Mitchell <mark@codesourcery.com>
10315
10316 PR c++/17642
10317 * stor-layout.c (layout_decl): Use fold_convert, not convert.
10318 (bit_from_pos): Likewise.
10319 (byte_from_pos): Likewise.
10320 (pos_from_bit): Likewise.
10321 (normalize_offset): Likewise.
10322 (place_field): Likewise.
10323 (finalize_type_size): Likewise.
10324 (layout_type): Likewise.
10325 * tree.c (build_index_type): Likewise.
10326
10327 2004-09-27 Devang Patel <dpatel@apple.com>
10328
10329 * expr.c (expand_expr_real_1): Handle VEC_COND_EXPR.
10330 * genopinit.c (optabs): New entry for vcond_gen_code and
10331 vcondu_gen_code.
10332 * optabs.c (vcond_gen_code, vcondu_gen_code): New optabs.
10333 (get_rtx_code): New function.
10334 (vector_compare_rtx): New function.
10335 (init_optabs): Initialize vcond_gen_code and vcondu_gen_code.
10336 (expand_vec_cond_expr_p): New function.
10337 (expand_vec_cond_expr): New function.
10338 (get_vcond_icode): New function.
10339 * optabs.h (expand_vec_cond_expr, expand_vec_cond_expr_p): New externs.
10340 (vcond_gen_code, vcondu_gen_code): Same.
10341
10342 2004-09-27 Kelley Cook <kcook@gcc.gnu.org>
10343
10344 * Makefile.in (STAGESTUFF): Split into ...
10345 (STAGECOPYSTUFF, STAGEMOVESTUFF): ... these.
10346 (mostlyclean): Update.
10347 (stage1-start, stage2-start, stage3-start, stage4-start,
10348 stageprofile-start, stagefeedback-start): Copy the STAGECOPYSTUFF.
10349 Move the STAGEMOVESTUFF.
10350
10351 2004-09-27 Eric Botcazou <ebotcazou@libertysurf.fr>
10352
10353 * system.h (getpagesize): Return 'int' instead of 'long'.
10354
10355 2004-09-27 Michael Matz <matz@suse.de>
10356
10357 PR bootstrap/17698
10358 PR bootstrap/17702
10359 * bitmap.h (bmp_iter_single_init, bmp_iter_and_not_init,
10360 bmp_iter_and_init): Shift by bit_in_word.
10361
10362 2004-09-27 Kelley Cook <kcook@gcc.gnu.org>
10363
10364 * aclocal.m4: Quote m4_includes. Include ../config/gcc-lib-path.m4.
10365 * configure.ac: Don't sinclude it here.
10366 * configure: Regenerate.
10367
10368 2004-09-27 Dorit Naishlos <dorit@il.ibm.com>
10369
10370 * config/rs6000/rs6000.c (rs6000_legitimate_address, print_operand):
10371 Handle AND pattern
10372
10373 2004-09-27 Joseph S. Myers <jsm@polyomino.org.uk>
10374
10375 PR c/13804
10376 * c-typeck.c (build_component_ref): Name type involved in
10377 diagnostic for structure or union without a member of the given
10378 name.
10379
10380 2004-09-27 DJ Delorie <dj@redhat.com>
10381
10382 * config/stormy16/stormy16.c (xstormy16_asm_output_aligned_common):
10383 .comm alignment is bytes, not bits.
10384
10385 2004-09-27 Devang Patel <dpatel@apple.com>
10386
10387 * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
10388 (print_call_name): Do not print VEC_COND_EXPR.
10389
10390 2004-09-27 Devang Patel <dpatel@apple.com>
10391
10392 * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
10393
10394 2004-09-27 Jan Hubicka <jh@suse.cz>
10395
10396 * i386.c (athlon_cost, k8_cost): Set BRANCH_COST to 5.
10397
10398 2004-09-27 Kazu Hirata <kazu@cs.umass.edu>
10399
10400 * bitmap.h: Fix a comment typo.
10401
10402 2004-09-27 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
10403
10404 * libgcc2.c (getpagesize): Change type of return value to int.
10405
10406 2004-09-26 Matt Austern <austern@apple.com>
10407
10408 * ggc-page.c (GGC_QUIRE_SIZE): Bump up from 16 to 256 if we're
10409 using mmap.
10410
10411 2004-09-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10412
10413 * bitmap.h (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_COMPL_IN_BITMAP,
10414 EXECUTE_IF_AND_IN_BITMAP): Changed to iterator style.
10415 (bitmap_iterator): New type.
10416 (bmp_iter_common_next_1, bmp_iter_single_next_1, bmp_iter_single_init,
10417 bmp_iter_end_p, bmp_iter_single_next, bmp_iter_and_not_next_1,
10418 bmp_iter_and_not_init, bmp_iter_and_not_next, bmp_iter_and_next_1,
10419 bmp_iter_and_init, bmp_iter_and_next): New functions.
10420 * basic-block.h (EXECUTE_IF_SET_IN_REG_SET,
10421 EXECUTE_IF_AND_COMPL_IN_REG_SET, EXECUTE_IF_AND_IN_REG_SET): Changed to
10422 use iterator-style EXECUTE_IF_IN_BITMAP macros.
10423 * bitmap.c (bitmap_print): Ditto.
10424 * bt-load.c (clear_btr_from_live_range, add_btr_to_live_range,
10425 btr_def_live_range): Ditto.
10426 * cfganal.c (compute_dominance_frontiers_1) Ditto.
10427 * cgraphunit.c (convert_UIDs_in_bitmap, cgraph_characterize_statics):
10428 Ditto.
10429 * ddg.c (build_inter_loop_deps): Ditto.
10430 * df.c (FOR_EACH_BB_IN_BITMAP, df_bb_reg_info_compute, df_refs_update):
10431 Ditto.
10432 * except.c (remove_eh_handler): Ditto.
10433 * flow.c (reg_set_to_hard_reg_set): Ditto.
10434 * gcse.c (clear_modify_mem_tables): Ditto.
10435 * global.c (build_insn_chain): Ditto.
10436 * ifcvt.c (dead_or_predicable): Ditto.
10437 * loop-invariant.c (get_inv_cost, set_move_mark, move_invariant_reg):
10438 Ditto.
10439 * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs): Ditto.
10440 * ra-rewrite.c (reloads_to_loads, rewrite_program2,
10441 detect_web_parts_to_rebuild, delete_useless_defs, actual_spill): Ditto.
10442 * tree-cfg.c (allocate_ssa_names, tree_duplicate_sese_region,
10443 tree_purge_all_dead_eh_edges): Ditto.
10444 * tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
10445 insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags,
10446 rewrite_ssa_into_ssa): Ditto.
10447 * tree-outof-ssa.c (find_replaceable_exprs): Ditto.
10448 * tree-sra.c (scan_function, decide_instantiations, scalarize_parms):
10449 Ditto.
10450 * tree-ssa-alias.c (init_alias_info, compute_points_to_and_addr_escape,
10451 compute_flow_sensitive_aliasing, maybe_create_global_var,
10452 dump_points_to_info_for): Ditto.
10453 * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Ditto.
10454 * tree-ssa-dse.c (dse_finalize_block): Ditto.
10455 * tree-ssa-live.c (live_worklist, calculate_live_on_entry,
10456 calculate_live_on_exit, build_tree_conflict_graph, dump_live_info):
10457 Ditto.
10458 * tree-ssa-loop-ivopts.c (find_induction_variables,
10459 find_interesting_uses, add_old_ivs_candidates, alloc_use_cost_map,
10460 determine_use_iv_costs, determine_set_costs, find_best_candidate,
10461 set_cost_up_to, create_new_ivs, remove_unused_ivs, free_loop_data):
10462 Ditto.
10463 * tree-ssa-loop-manip.c (add_exit_phis_var, add_exit_phis): Ditto.
10464 * tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
10465 add_call_read_ops): Ditto.
10466 * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Ditto.
10467
10468 2004-09-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10469
10470 * pa.c (print_operand): Use non-trapping completers for UNLE, UNLT,
10471 UNGE, UNGT, UNEQ, UNORDERED and ORDERED comparisons.
10472
10473 2004-09-26 Ulrich Weigand <uweigand@de.ibm.com>
10474
10475 * builtins.c (expand_builtin_memcmp): Adjust MEM_SIZE to
10476 reflect size of memory regions being compared.
10477
10478 2004-09-26 Ulrich Weigand <uweigand@de.ibm.com>
10479
10480 * builtins.c (get_memory_rtx): Set mem attributes for non-ADDR_EXPR
10481 expressions. Always clear MEM_SIZE and alias set.
10482
10483 2004-09-26 Roger Sayle <roger@eyesopen.com>
10484 Giovanni Bajo <giovannibajo@gcc.gnu.org>
10485
10486 PR middle-end/17112
10487 * stor-layout.c (compute_record_mode): For records with a single
10488 field, only use the field's mode if its size matches what we'd
10489 have choosen for the record ourselves. This forces the use of
10490 BLKmode for packed records that don't completely fill a mode.
10491
10492 2004-09-26 Roger Sayle <roger@eyesopen.com>
10493
10494 PR middle-end/17151
10495 * combine.c (force_to_mode): Remove dubious early return test that
10496 inhibits further optimization.
10497
10498 2004-09-26 Kazu Hirata <kazu@cs.umass.edu>
10499
10500 * profile.c: Fix a comment typo.
10501
10502 2004-09-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10503
10504 PR bootstrap/17591
10505 * tree-ssa-loop-im.c (for_each_index): Call callback for component_refs
10506 with varying offset.
10507 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): New function.
10508 (idx_contains_abnormal_ssa_name_p): Scan step and lower bound for
10509 ARRAY_REFS.
10510 (expr_invariant_in_loop_p): New function.
10511 (idx_find_step): Handle step and lower bound for ARRAY_REFs. Handle
10512 component_ref_field_offset for COMPONENT_REFs. Do not allow
10513 ALIGN_INDIRECT_REFs and MISALIGNED_INDIRECT_REFs.
10514 (add_address_candidates): Do not handle ALIGN_INDIRECT_REFs and
10515 MISALIGNED_INDIRECT_REFs.
10516 (idx_remove_ssa_names): Handle step and lower bound for ARRAY_REFs.
10517 (rewrite_address_base): Do not handle ALIGN_INDIRECT_REFs and
10518 MISALIGNED_INDIRECT_REFs.
10519
10520 2004-09-26 Joseph S. Myers <jsm@polyomino.org.uk>
10521
10522 PR c/11459
10523 * gcc.c (cpp_options, cc1_options): Preserve relative order of
10524 -std and -ansi options.
10525
10526 2004-09-26 Jan Hubicka <jh@suse.cz>
10527
10528 * dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die
10529 for nested functions whose proper parent has not been output.
10530
10531 * profile.c (compute_branch_probabilities): Use REG_BR_PROB notes
10532 when re-constructing profile previously invalidated by loop.
10533
10534 2004-09-25 Dale Johannesen <dalej@apple.com>
10535
10536 * tree-gimple.c: Move GIMPLE definition...
10537 * doc/tree-ssa.texi: here.
10538
10539 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
10540
10541 * tree-vectorizer.c: Fix a comment typo.
10542
10543 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
10544
10545 * c-typeck.c, defaults.h, dwarf.h, dwarf2out.c, fold-const.c,
10546 gthr-dce.h, gthr-posix.h, gthr-solaris.h, gthr-win32.h,
10547 lambda-code.c, lambda-mat.c, libgcc2.c, stmt.c,
10548 tree-ssa-pre.c, tree-vn.c, tree.h: Fix comment formatting.
10549
10550 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
10551
10552 * tree-ssa-loop-unswitch.c: Fix a comment typo.
10553
10554 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
10555
10556 * doc/passes.texi: Fix a typo.
10557
10558 2004-09-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10559
10560 * tree-optimize.c (init_tree_optimization_passes): Add
10561 pass_record_bounds.
10562 * tree-pass.h (pass_record_bounds): Declare.
10563 * tree-ssa-loop.c (tree_ssa_loop_bounds, pass_record_bounds):
10564 New pass.
10565
10566 2004-09-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10567
10568 PR tree-optimization/17474
10569 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Determine
10570 offset of the field correctly when DECL_FIELD_BIT_OFFSET != 0.
10571
10572 2004-09-25 Jan Hubicka <jh@suse.cz>
10573
10574 * predict.c (counts_to_freqs): Make global.
10575 * predict.h (counts_to_freqa): Declare.
10576 * profile.c (compute_branch_probabilities): Compute frequencies
10577 * tree-profile.c (do_tree_profiling): Refine conditional on when
10578 tree profiling pass is needed.
10579
10580 * passes.c (rest_of_handle_cfg): Disable const/pure function
10581 detection when doing tree based profiling.
10582
10583 * tree-inline.c (expand_call_inline): Fix incorrectly reversed
10584 conditional.
10585
10586 2004-09-25 Richard Sandiford <rsandifo@redhat.com>
10587
10588 * config/mips/mips.h (struct mips_args): Clarify comments.
10589 * config/mips/mips.c (struct mips_arg_info): Likewise.
10590 (mips_arg_info): Don't allow fpr_p to affect the register or
10591 stack alignment. Remove o64 silliness.
10592 (function_arg): Deal with the o32 float,float case specially.
10593
10594 2004-09-25 Richard Sandiford <rsandifo@redhat.com>
10595
10596 * config/mips/mips.md (loadx, storex): Define for V2SF.
10597
10598 2004-09-25 Ulrich Weigand <uweigand@de.ibm.com>
10599
10600 * config/s390/s390-protos.h (s390_back_chain_rtx): Add prototype.
10601 * config/s390/s390.c (s390_back_chain_rtx): New function.
10602 * config/s390/s390.md ("allocate_stack"): Use s390_back_chain_rtx.
10603 Call anti_adjust_stack.
10604 ("restore_stack_block"): Use s390_back_chain_rtx. Enable pattern
10605 only if compiling with back chain.
10606 ("save_stack_nonlocal", "restore_stack_nonlocal"): Save/restore
10607 back chain only if back chain enabled. Use s390_back_chain_rtx.
10608
10609 2004-09-25 Joseph S. Myers <jsm@polyomino.org.uk>
10610
10611 * doc/trouble.texi: Remove obsolete information. Update
10612 information on how to regenerate fixincluded headers.
10613
10614 2004-09-25 Joseph S. Myers <jsm@polyomino.org.uk>
10615
10616 PR c/12951
10617 * doc/invoke.texi: Document that
10618 -Wno-error-implicit-function-declaration is not accepted.
10619
10620 2004-09-24 Richard Henderson <rth@redhat.com>
10621
10622 * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): New.
10623 * config/alpha/alpha.c (alpha_vector_mode_supported_p): Don't depend
10624 on TARGET_MAX.
10625 (alpha_expand_mov): Allow unaligned vectors.
10626 (alpha_expand_unaligned_store): Use CONST0_RTX.
10627 (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
10628
10629 2004-09-24 Jeff Law <law@redhat.com>
10630
10631 * tree-ssa-dom.c (dom_opt_finalize_block): Fix violation of strict
10632 aliasing rules.
10633 (simplify_cond_and_lookup_avail_expr): Likewise.
10634
10635 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
10636
10637 PR c/12802
10638 * doc/extend.texi (Unnamed Fields): Remove "." from end of long
10639 title. Document interaction with -fms-extensions.
10640 * doc/invoke.texi (-fms-extensions): Refer to Unnamed Fields
10641 section.
10642
10643 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
10644
10645 PR c/12713
10646 * doc/extend.texi: Document interaction of attribute noreturn and
10647 longjmp.
10648
10649 2004-09-24 Richard Henderson <rth@redhat.com>
10650
10651 PR rtl-opt/17503
10652 * regclass.c (subregs_of_mode): Turn into an htab. Make static.
10653 (som_hash, som_eq): New.
10654 (init_subregs_of_mode, record_subregs_of_mode): New.
10655 (cannot_change_mode_set_regs): Rewrite for htab implementation.
10656 (invalid_mode_change_p): Likewise.
10657 * combine.c (gen_lowpart_for_combine): Use record_subregs_of_mode.
10658 * flow.c (mark_used_regs): Likewise.
10659 (life_analysis): Use init_subregs_of_mode.
10660 * regs.h (subregs_of_mode): Remove.
10661 * rtl.h (init_subregs_of_mode, record_subregs_of_mode): Declare.
10662
10663 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
10664
10665 * tree-ssa-phiopt.c (conditional_replacement): Use the correct
10666 type with the copy of the conditional.
10667
10668 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
10669
10670 PR tree-opt/16954
10671 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10672 Prevent renaming if the aliasing sets of the type which the
10673 pointer points to are different.
10674
10675 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
10676
10677 PR c/17188
10678 * c-decl.c (diagnose_mismatched_decls): Check for duplicate
10679 declarations of enumerators.
10680 (start_struct): Check TYPE_SIZE rather than TYPE_FIELDS to check
10681 for redefinition. Check for nested redefinition.
10682 (finish_struct): Don't check for nested redefinition.
10683 (start_enum): Check for nested redefinition.
10684
10685 2004-09-24 Devang Patel <dpatel@apple.com>
10686
10687 * tree-if-conv.c (tree_if_convert_cond_expr0: Create temp. variable
10688 only when necesssary.
10689 (combine_blocks): Combine loop header and exit block.
10690
10691 2004-09-24 Paolo Bonzini <bonzini@gnu.org>
10692
10693 * hooks.c (hook_tree_tree_bool_null): New.
10694 * hooks.h (hook_tree_tree_bool_null): Declare it.
10695 * target-def.c (TARGET_FOLD_BUILTIN): Point to it.
10696 * targhooks.c (default_fold_builtin): Remove.
10697 * targhooks.h (default_fold_builtin): Remove.
10698
10699 2004-09-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10700
10701 PR rtl-optimization/17625
10702 * loop-doloop.c (doloop_modify): Unshare rtl before emitting it.
10703
10704 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
10705
10706 PR tree-opt/17624
10707 * tree-ssa-forwprop.c (record_single_argument_cond_exprs):
10708 Reject if any of the operands occur in an abnormal PHI.
10709
10710 2004-09-24 Andreas Schwab <schwab@suse.de>
10711
10712 * tree-ssa-dom.c (record_range): Fix violation of strict aliasing
10713 rules.
10714
10715 2004-09-24 Eric Botcazou <ebotcazou@libertysurf.fr>
10716
10717 * config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h
10718 if the GNU assembler is used.
10719 (sparc-*-solaris2*): Likewise.
10720 * dbxout.c (NO_DBX_BNSYM_ENSYM): Default to zero.
10721 (dbxout_function_end): Protect N_ENSYM with it.
10722 (dbxout_begin_prologue): Protect N_BNSYM with it.
10723 * doc/tm.texi (NO_DBX_BNSYM_ENSYM): Document it.
10724 * config/sparc/sol2.h (NO_DBX_BNSYM_ENSYM): Define to 1.
10725 * config/sparc/sol2-gas.h: New file.
10726
10727 2004-09-23 H.J. Lu <hongjiu.lu@intel.com>
10728
10729 PR bootstrap/17369
10730 * Makefile.in (@set_gcc_lib_path@): Added.
10731
10732 * configure.ac: Include ../config/gcc-lib-path.m4. Use
10733 TL_AC_GNU_MAKE_GCC_LIB_PATH.
10734 * configure: Regenerated.
10735
10736 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
10737
10738 PR c/6980
10739 * c-typeck.c (build_c_cast): Improve wording of
10740 -Wbad-function-cast diagnostic.
10741
10742 2004-09-23 Hans-Peter Nilsson <hp@axis.com>
10743
10744 PR target/17626
10745 * config/cris/cris.md (moverside, movemside): Rename variable
10746 "reg" to "otherop". To generate canonical RTX, check that otherop
10747 isn't constant instead of checking that operand 1 is a register.
10748
10749 2004-09-23 Jakub Jelinek <jakub@redhat.com>
10750
10751 * tree-ssa-propagate.c (set_rhs): Fail if EXPR is COMPOUND_EXPR.
10752
10753 2004-09-23 Diego Novillo <dnovillo@redhat.com>
10754 Jakub Jelinek <jakub@redhat.com>
10755
10756 * tree-flow.h (find_new_referenced_vars): Add prototype.
10757 * tree-sra.c (find_new_referenced_vars_1, find_new_referenced_vars):
10758 Move to...
10759 * tree-dfa.c (find_new_referenced_vars_1, find_new_referenced_vars):
10760 ... here.
10761 (mark_new_vars_to_rename): Walk through all operands.
10762 * tree-ssa-ccp.c (convert_to_gimple_builtin): New function.
10763 (execute_fold_all_builtins): Use it.
10764 (pass_fold_builtins): Add TODO_rename_vars to todo_flags_finish.
10765
10766 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
10767
10768 * gthr-tpf.h: New file.
10769 * config.gcc (s390x-ibm-tpf*): Add thread_file='tpf'.
10770 * gthr.h: Use gthr-tpf.h on TPF OS.
10771
10772 2004-09-23 Jeff Law <law@redhat.com>
10773
10774 * tree-ssa-ccp.c (get_default_value): Use SSA_NAME_VALUE rather
10775 than SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
10776 (substitute_and_fold): Likewise.
10777 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Remove everything
10778 except invariants from SSA_NAME_VALUE.
10779 (thread_across_edge): Use SSA_NAME_VALUE rather than SSA_NAME_EQUIV
10780 and SET_SSA_NAME_EQUIV.
10781 (restore_vars_to_original_value, record_const_or_copy): Likewise.
10782 (record_equivalences_from_phis, record_const_or_copy_1): Likewise.
10783 (record_equality, cprop_into_successor_phis): Likewise.
10784 (record_equivalences_from_stmt, cprop_operand): Likewise.
10785 (lookup_avail_expr): Likewise.
10786 * tree-ssa-pre.c (fini_pre): Remove everything except invariants
10787 from SSA_NAME_VALUE.
10788 * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): Kill.
10789 (struct tree_ssa_name): Kill EQUIV field. Remove GGC skip
10790 annotation from the VALUE_HANDLE field.
10791
10792 2004-09-21 Fariborz Jahanian <fjahanian@apple.com>
10793
10794 PR c++/13989
10795 PR c++/9844
10796 * tree.c (reconstruct_complex_type): Remove extra "this".
10797 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
10798 Add V4SFmode to case statement.
10799
10800 2004-09-23 Joseph S. Myers <jsm@polyomino.org.uk>
10801
10802 PR c/16833
10803 * doc/extend.texi, doc/invoke.texi: Document interaction of
10804 -fno-builtin with format checks. Note that built-in functions
10805 have effects beyond generating code that avoids calls to those
10806 functions.
10807
10808 2004-09-23 Frank Ch. Eigler <fche@redhat.com>
10809
10810 PR tree-optimization/17533
10811 * dominance.c (verify_dominators): Tolerate even more incorrect
10812 dominance data during error message printing.
10813 * tree-mudflap.c (mf_build_check_statement_for): Build basic blocks
10814 and edges more correctly.
10815
10816 2004-09-23 Dorit Naishlos <dorit@il.ibm.com>
10817
10818 * tree.def (ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF):
10819 New tree-codes.
10820 * tree.h (REF_ORIGINAL): Consider ALIGN_INDIRECT_REF and
10821 MISALIGNED_INDIRECT_REF.
10822 * alias.c (get_alias_set, nonoverlapping_memrefs_p): Likewise.
10823 * emit-rtl.c (mem_expr_equal_p, set_mem_attributes_minus_bitpos):
10824 Likewise.
10825 * expr.c (safe_from_p, expand_expr_real_1, rewrite_address_base)
10826 (find_interesting_uses_address): Likewise.
10827 * fold-const.c (non_lvalue, operand_equal_p): Likewise.
10828 (build_fold_addr_expr_with_type): Likewise.
10829 * gimplify.c (gimplify_addr_expr, gimplify_expr): Likewise.
10830 * print-rtl.c (print_mem_expr): Likewise.
10831 * tree-dump.c (dequeue_and_dump): Likewise.
10832 * tree-eh.c (tree_could_trap_p): Likewise.
10833 * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
10834 * tree-pretty-print.c (op_prio, op_symbol, dump_generic_node): Likewise.
10835 * tree-ssa-alias.c (find_ptr_dereference, ptr_is_dereferenced_by):
10836 Likewise.
10837 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
10838 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
10839 * tree-ssa-loop-im.c (for_each_index, is_call_clobbered_ref): Likewise.
10840 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
10841 (add_address_candidates, rewrite_address_base): Likewise.
10842 * tree-ssa-operands.c (get_expr_operands, get_indirect_ref_operands):
10843 Likewise.
10844 * tree.c (staticp, build1_stat): Likewise.
10845
10846 * tree.def (REALIGN_LOAD_EXPR, REALIGN_STORE_EXPR): New tree-codes.
10847 * tree-pretty-print.c (dump_generic_node): Consider REALIGN_LOAD_EXPR.
10848 * tree-ssa-operands.c (get_expr_operands): Likewise.
10849 * expr.c (expand_expr_real_1): Likewise.
10850
10851 * optabs.h (vec_realign_store_optab, vec_realign_load_optab): New
10852 optabs.
10853 (OTI_vec_realign_store, OTI_vec_realign_load): New optab_index values
10854 for the new optabs.
10855 (expand_ternary_op): New function.
10856 * genopinit.c (optabs): Handle the new optabs.
10857 * optabs.c (optab_for_tree_code): Add cases for the new tree-codes.
10858 (init_optabs): Initialize vec_realign_load_optab.
10859 (expand_ternary_op): New functions.
10860
10861 * target-def.h (TARGET_VECTORIZE): New member for struct gcc_target.
10862 (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New member for targetm.vectorize.
10863 (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): Likewise.
10864 (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Likewise.
10865 * target.h (struct vectorize): New member for struct gcc_target.
10866 (misaligned_mem_ok): New member for targetm.vectorize.
10867 (builtin_mask_for_load): Likewise.
10868 (builtin_mask_for_store): Likewise.
10869 * targethooks.c (default_vect_misaligned_mem_ok): New function.
10870 * targethooks.h (default_vect_misaligned_mem_ok): New function.
10871
10872 * config/rs6000/altivec.md (build_vector_mask_for_load): New
10873 define_expand.
10874 (vec_realign_load_v4si, vec_realign_load_v4sf, vec_realign_load_v8hi)
10875 (vec_realign_load_v16qi): New define_insn.
10876 * config/rs6000/rs6000.h (ALTIVEC_BUILTIN_MASK_FOR_LOAD):
10877 (ALTIVEC_BUILTIN_MASK_FOR_STORE): New target builtins.
10878 * config/rs6000/rs6000.c (altivec_builtin_mask_for_load):
10879 (altivec_builtin_mask_for_store): New variables.
10880 (rs6000_builtin_mask_for_load): New function. Implements
10881 TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD.
10882 (rs6000_builtin_mask_for_store): New function. Implements
10883 TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE.
10884 (rs6000_expand_builtin): Expand the target builtins
10885 builtin_mask_for_load and builtin_mask_for_store.
10886 (altivec_init_builtins): Initialize the new target builtins.
10887 * config/i386/i386.c (ix86_misaligned_mem_ok): New function.
10888 Implements the target hook TARGET_VECTORIZE_MISALIGNED_MEM_OK.
10889
10890 * tree-vectorizer.c (vect_create_data_ref): Renamed to
10891 vect_create_data_ref_ptr. Returns a pointer instead of an array-ref.
10892 (vect_create_addr_base_for_vector_ref): Additional argument (offset).
10893 (vectorizable_store): Call vect_create_data_ref_ptr with additional
10894 arguments, and create an indirect_ref with its return value data_ref.
10895 Check aligned_access_p.
10896 (vectorizable_load): Handle misaligned loads, using software-pipelined
10897 scheme with REALIGN_LOAD_EXPR and ALIGN_INDIRECT_REF if
10898 vec_realign_load_optab is supported, or using a scheme without
10899 software-pipelining with MISALIGNED_INDIRECT_REF if the target hook
10900 misaligned_mem_ok is supported.
10901
10902 (vect_finish_stmt_generation): Typo.
10903 (vect_enhance_data_refs_alignment): Rename loop_vinfo to loop_info.
10904 (vect_analyze_data_refs_alignment): Don't fail vectorization in the
10905 presence of misaligned loads.
10906 (vect_analyze_data_ref_access): Add check for constant init.
10907 (vect_get_symbl_and_dr): Remove duplicate line.
10908 * tree-vectorizer.h (DR_MISALIGNMENT): Add comment.
10909
10910 2004-09-23 Kazu Hirata <kazu@cs.umass.edu>
10911
10912 * builtins.c: Fix a comment typo.
10913
10914 2004-09-23 Jan Hubicka <jh@suse.cz>
10915
10916 * profile.c (branch_prob): Do not verify flow info in the middle of the
10917 pass.
10918
10919 2004-09-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10920
10921 * cfgloop.h (update_single_exits_after_duplication): Declare.
10922 (loopify, split_loop_bb): Declaration changed.
10923 * cfgloopmanip.c (split_loop_bb): Take void * as an argument instead
10924 of rtx.
10925 (loopify): Added redirect_all_edges argument.
10926 (update_single_exits_after_duplication): Export.
10927 * loop-unswitch.c (unswitch_loop): Changed due to loopify change.
10928 * tree-flow.h (tree_duplicate_loop_to_header_edge,
10929 tree_ssa_loop_version): Declare.
10930 * tree-ssa-loop-manip.c (copy_phi_node_args, rename_variables,
10931 set_phi_def_stmts, tree_duplicate_loop_to_header_edge,
10932 lv_adjust_loop_header_phi, lv_adjust_loop_entry_edge,
10933 lv_update_pending_stmts, tree_ssa_loop_version): New functions.
10934
10935 * tree-ssa-loop-unswitch.c: New file.
10936 * Makefile.in (tree-ssa-loop-unswitch.o): Add.
10937 * timevar.def (TV_TREE_LOOP_UNSWITCH): New timevar.
10938 * tree-flow.h (tree_ssa_unswitch_loops): Declare.
10939 * tree-optimize.c (init_tree_optimization_passes): Add pass_unswitch.
10940 * tree-pass.h (pass_unswitch): Declare.
10941 * tree-ssa-loop.c (tree_ssa_loop_unswitch,
10942 gate_tree_ssa_loop_unswitch, pass_unswitch): New pass.
10943 * doc/passes.texi: Documen tree level loop unswitching.
10944
10945 2004-09-23 Kazu Hirata <kazu@cs.umass.edu>
10946
10947 * cfgexpand.c, config/s390/tpf-eh.c: Fix comment typos.
10948
10949 2004-09-22 Eric Christopher <echristo@redhat.com>
10950
10951 * builtins.c (simplify_builtin_va_start): Remove.
10952 (simplify_builtin): Ditto.
10953 (fold_builtin_strchr): Ditto.
10954 (simplify_builtin_*): Rename remainders to fold_builtin_*.
10955 (expand_builtin): Fix up for above changes.
10956 (fold_builtin_1): Add new folders. Change for above.
10957 (expand_builtin_va_start): Call fold_builtin_next_arg.
10958 * gimplify.c (gimplify_call_expr): Fix calls to simplify_builtin.
10959 * tree.h: Remove prototype for simplify_builtin.
10960
10961 2004-09-23 Jan Hubicka <jh@suse.cz>
10962
10963 PR debug/17389
10964 * dwarf2out.c (dwarf2out_finish): Deal with nested functions
10965 of fully inlined functions.
10966 * tree-inline.c (inline_forbidden_p_1): Nested functions can be
10967 inlined.
10968
10969 * cfgexpand.c (add_reg_br_prob_note): New function.
10970 (expand_gimple_cond_expr): Use it.
10971 (tree_expand_cfg): No longer kill the profile.
10972 * cfgrt.c (rtl_verify_flow_info_1): Check profile consistency
10973 only if it is present.
10974 * passes.c (rest_of_handle_loop_optimize): Kill the profile.
10975 * predict.c (combine_predictions_for_insn): Set the probabilities
10976 based on REG_BR_PROB note if present.
10977 * predict.c (branch_prob): Profile is read only with
10978 flag_branch_probabilities.
10979
10980 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
10981
10982 * aclocal.m4: Add in gettext's m4 includes.
10983 (AC_ICONV, AC_LCMESSAGES, GCC_PATH_PROG): Remove.
10984 * configure.ac: Add in check for iconv.h
10985 * configure: Regenerate.
10986
10987 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
10988
10989 * aclocal.m4: Update for rename of gettext-sister.m4.
10990
10991 2004-09-22 Daniel Berlin <dberlin@dberlin.org>
10992
10993 Fix PR tree-optimization/17587
10994 * tree-ssa-pre.c (fini_pre): Commit edge inserts here.
10995 (insert_aux): Instead of here.
10996
10997 2004-09-22 Diego Novillo <dnovillo@redhat.com>
10998
10999 PR tree-optimization/16721
11000 * tree-dfa.c (dump_variable): Show TREE_THIS_VOLATILE.
11001 * tree-ssa-alias.c (create_memory_tag): Move setting of
11002 TREE_THIS_VOLATILE ...
11003 (get_tmt_for): ... here.
11004
11005 2004-09-22 Eric Botcazou <ebotcazou@libertysurf.fr>
11006
11007 * config/sparc/sparc.md (cmove splitter): Fix formatting.
11008 (conditional_trap expander): Reject inappropriate CCmodes.
11009 (conditional trap insn): Use V9 syntax if possible.
11010
11011 2004-09-22 Joseph S. Myers <jsm@polyomino.org.uk>
11012
11013 PR c/16566
11014 * c-typeck.c (build_component_ref): Don't special-case
11015 COMPOUND_EXPR.
11016
11017 2004-09-22 Frank Ch. Eigler <fche@redhat.com>
11018
11019 * dominance.c (verify_dominators): Don't SEGV if recount_dominator
11020 returns NULL.
11021
11022 2004-09-22 Kazu Hirata <kazu@cs.umass.edu>
11023
11024 * doc/c-tree.texi (TRUTH_NOT_EXPR, TRUTH_ANDIF_EXPR,
11025 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
11026 TRUTH_XOR_EXPR): Mention the restriction on types.
11027
11028 2004-09-22 Matt Austern <austern@apple.com>
11029
11030 * config/darwin.c (darwin_make_decl_one_only):
11031 Allow coalesced symbol to appear in static archive's table of contents
11032
11033 2004-09-22 Kazu Hirata <kazu@cs.umass.edu>
11034
11035 PR tree-optimization/17512
11036 * convert.c (convert_to_integer): Don't handle TRUTH_*_EXPR as
11037 special cases.
11038
11039 2004-09-22 David Edelsohn <edelsohn@gnu.org>
11040
11041 * dbxout.c (get_lang_number): Do not define if
11042 DBX_OUTPUT_MAIN_SOURCE_DIRECTORY is defined.
11043
11044 2004-09-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
11045
11046 PR target/15583
11047 * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Add
11048 builtin_define ("__USE_INIT_FINI__").
11049
11050 2004-09-22 P.J. Darcy <darcypj@us.ibm.com>
11051
11052 * config/s390/s390-protos.h (s390_emit_tpf_eh_return): Add prototype.
11053 * config/s390/s390.c (s390_emit_tpf_eh_return): New function.
11054 * config/s390/s390.h (TARGET_TPF): New macro.
11055 * config/s390/s390.md ("eh_return"): New expander.
11056 * config/s390/t-tpf (LIB2ADDEH): Use unwind-dw2-fde.c rather than
11057 unwind-dw2-fde-glibc.c. Add config/s390/tpf-eh.c.
11058 (LIB2ADDEHDEP): Remove unwind-dw2-fde.c.
11059 * config/s390/tpf.h (TARGET_TPF): Define to 1.
11060 (STACK_POINTER_OFFSET): Increase to 448.
11061 (TARGET_DEFAULT): Set -mtpf-trace on as default.
11062 (TPF_LOC_DIFF_OFFSET): New macro.
11063 (ASM_PREFERRED_EH_DATA_FORMAT): Redefine to always use absolute
11064 encoding.
11065 (__isPATrange): Add prototype.
11066 (MD_FALLBACK_FRAME_STATE_FOR): Define.
11067 * config/s390/tpf-eh.c: New file.
11068
11069 2004-09-22 Diego Novillo <dnovillo@redhat.com>
11070
11071 * fold-const.c (fold): Avoid non INTEGER_TYPEs when widening
11072 operands in an integer comparison.
11073 * tree-cfg.c (find_taken_edge): Call fold() to determine
11074 whether the predicate is known.
11075
11076 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
11077
11078 * aclocal.m4: Import AM_PROG_CC_C_O and AM_AUX_DIR_EXPAND.
11079 * configure.ac: Call AM_PROG_CC_C_O instead of AC_PROG_CC_C_O.
11080 Create build and doc directories along with the language directories.
11081 Don't create doc directory separately.
11082 * configure: Regenerate.
11083 * Makefile.in: Create all object and executables files built
11084 with the build compiler in a build/ directory.
11085 (genobjnames): Add missing build objects.
11086 (STAGESTUFF): Don't stage the gen* programs.
11087 (ggc-none.o): Define dependencies for the target compiler.
11088 (build-print-rtl.o): Rename to build/print-rtl.o.
11089 (build-errors.o): Rename to build/errors.o.
11090 (build-varray.o): Rename to build/varray.o.
11091 (maintainerclean): Delete the contents of the build directory.
11092 ($(genobjs): %.o): Explicitly use -o.
11093 (build/insn-conditions.o): Delete specfic rule to use generic rule.
11094 (build/gengtype-lex.o): Likewise.
11095 (build/gengtype-yacc.o): Likewise.
11096 (build/gcov-iov.o): Likewise.
11097
11098 2004-09-22 Nathan Sidwell <nathan@codesourcery.com>
11099
11100 * vec.h (VEC_space): Return true if there _is_ space.
11101 (VEC_reserve): Adjust.
11102
11103 2004-09-22 Richard Sandiford <rsandifo@redhat.com>
11104
11105 * config/mips/mips.c (mips_function_value): For o32, o64, n32 and n64,
11106 use FPRs for scalar, complex and vector types only.
11107
11108 2004-09-21 Jeff Law <law@redhat.com>
11109
11110 * tree-ssa-dom.c (opt_stats): Move so that it lives just after
11111 the opt_stats_d structure.
11112 (vrp_data): Change from a varray into a hash table.
11113 (vrp_hash_elt): New structure for elements in the vrp hash table.
11114 (vrp_hash, vrp_eq):New functions for hashing and testing equality
11115 in the vrp hash table.
11116 (tree_ssa_dominator_optimize): Initialize VRP_DATA. Reorganize
11117 initialization slightly to make it easier to read. No longer need
11118 to grow/clear the varray. Instead empty and delete the hash table.
11119 (dom_opt_finalize_block): Update due to change of VRP_DATA from
11120 a varray to a hash table.
11121 (simplify_cond_and_loop_avail_expr, record_range): Similarly.
11122
11123 * tree-ssa-ccp.c (get_default_value): If we have a constant
11124 value recorded for an SSA_NAME, then use that constant as
11125 the initial lattice value.
11126 (substitute_and_fold): Transfer equivalences discovered into
11127 SSA_NAME_EQUIV.
11128
11129 * tree.h (SSA_NAME_EQUIV): Add comments.
11130 (SET_SSA_NAME_EQUIV): Similarly.
11131
11132 2004-09-21 David Edelsohn <edelsohn@gnu.org>
11133
11134 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to POWER4.
11135
11136 * config/rs6000/rs6000.c (rs6000_adjust_cost): dep_insn is used.
11137
11138 2004-09-21 Mark Mitchell <mark@codesourcery.com>
11139
11140 * c-decl.c (implicityl_declare): Call maybe_apply_renaming_pragma.
11141 (finish_decl): Likewise.
11142
11143 2004-09-21 Devang Patel <dpatel@apple.com>
11144
11145 * tree.def (VEC_COND_EXPR): New tree node.
11146 * tree-ssa-operands.c (get_expr_operands): Handle VEC_COND_EXPR.
11147
11148 2004-09-21 Stan Shebs <shebs@apple.com>
11149
11150 * config/rs6000/darwin-tramp.asm: Add __ppc64__ case.
11151 * config/rs6000/darwin-world.asm: Likewise.
11152
11153 2004-09-21 Daniel Berlin <dberlin@dberlin.org>
11154
11155 * tree-ssa.c (verify_def): Use print_generic_stmt,
11156 not debug_generic_stmt.
11157 (verify_use): Ditto.
11158 (verify_phi_args): Ditto.
11159 (verify_ssa): Ditto.
11160
11161 2004-09-21 Paul Brook <paul@codesourcery.com>
11162
11163 * varasm.c (default_assemble_integer): Return false for values wider
11164 than the target word size. Works around GAS bug.
11165
11166 2004-09-21 Zack Weinberg <zack@codesourcery.com>
11167
11168 * reg-notes.def (REG_DEP_TRUE): New entry, place first so it
11169 gets value 0.
11170 * print-rtl.c (print_rtx): Print the name of a REG_NOTE even
11171 if it has value 0.
11172
11173 2004-09-21 Daniel Berlin <dberlin@dberlin.org>
11174
11175 * c-typeck.c (build_function_call): Give name of object
11176 we are attempting to call in error message.
11177 * c-objc-common.c (c_tree_printer): Call pp_expression,
11178 not return false, for 'E' case.
11179
11180 2004-09-21 Steven Bosscher <stevenb@suse.de>
11181
11182 PR rtl-optimization/17482
11183 * postreload-gcse.c (reg_avail_info, oprs_unchanged_p,
11184 load_killed_in_block_p): Clarify comments.
11185 (record_last_reg_set_info): Make static inline.
11186 (mark_call, mark_set, mark_clobber, mark_oprs_set): Remove.
11187 (record_opr_changes): New function to replace the above.
11188 (compute_hash_table): Clarify comments. Use record_opr_changes.
11189 (reg_set_between_after_reload_p): Clean up.
11190 (reg_used_between_after_reload_p): Likewise.
11191 (eliminate_partially_redundant_load): Clarify comments.
11192
11193 2004-09-21 Eric Botcazou <ebotcazou@libertysurf.fr>
11194
11195 PR rtl-optimization/17266
11196 * regmove.c (optimize_reg_copy_3): Make a new SUBREG for each insn.
11197
11198 2004-09-21 Uros Bizjak <uros@kss-loka.si>
11199
11200 PR rtl-optimization/14851
11201 * rtlanal.c (commutative_operand_precedence): Calculate
11202 precedence of stripped constant.
11203
11204 2004-09-20 Jeff Law <law@redhat.com>
11205 Jan Hubicka <jh@suse.cz>
11206
11207 * tree-ssanames.c (make_ssa_name): No longer need to clear, then
11208 initialize key elements here.
11209 (release_ssa_name): Zero the released SSA_NAME here.
11210 * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): New macros.
11211 (struct tree_ssa_name): Add new "equiv" field.
11212 * tree-ssa-dom.c (const_and_copies): Kill the global varray.
11213 (tree_ssa_dominator_optimize): No longer allocate, resize or
11214 clear CONST_AND_COPIES.
11215 (get_value_for, set_value_for): Kill.
11216 (thread_across_edge): Get/set the equivalency using
11217 SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
11218 (restore_vars_to_original_value): Likewise.
11219 (record_equivalences_from_phis): Likewise.
11220 (record_dominating_conditions): Likewise.
11221 (record_const_or_copy, record_equality): Likewise.
11222 (lookup_avail_expr): Likewise.
11223 (record_equivalences_from_stmt, cprop_operand): Likewise.
11224 (cprop_into_successor_phis): No longer need to pass around
11225 CONST_AND_COPIES. Callers updated. Get equivalences via
11226 SSA_NAME_EQUIV.
11227 (cprop_into_phis): Likewise.
11228
11229 2004-09-20 Matt Austern <austern@apple.com>
11230 Zack Weinberg <zack@codesourcery.com>
11231
11232 * c-common.c (fix_string_type): Build the unqualified array
11233 type unconditionally, then use c_build_qualified_type to get
11234 the proper const-qualified variant, and set its
11235 TYPE_MAIN_VARIANT to refer to the unqualified type.
11236 * c-lex.c (c_lex_return_raw_string): New global.
11237 (c_lex_with_flags): Honor it.
11238 * c-pragma.h: Declare it.
11239
11240 2004-09-20 Daniel Berlin <dberlin@dberlin.org>
11241
11242 * Makefile.in: Fix flags.h dependencies to be $(FLAGS_H).
11243
11244 2004-09-21 Jan Hubicka <jh@suse.cz>
11245
11246 PR middle-end/17126
11247 * tree-optimize.c (update_inlined_to_pointers): Fix the recursion.
11248 (tree_rest_of_compilation): Cleanup.
11249
11250 2004-09-20 Ulrich Weigand <uweigand@de.ibm.com>
11251
11252 * config/s390/s390.c (s390_select_rtx_section): Remove.
11253 (TARGET_ASM_SELECT_RTX_SECTION): Do not redefine.
11254
11255 2004-09-20 Kaz Kojima <kkojima@gcc.gnu.org>
11256
11257 * config/sh/sh.c (sh_expand_prologue): Add a REG_FRAME_RELATED_EXPR
11258 note to pretend a direct save from the original register when an
11259 intermediate register is used for the save.
11260
11261 2004-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11262
11263 * tsystem.h (alloca): Provide a default definition.
11264
11265 Revert:
11266 2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11267 * unwind-dw2.c: Call __builtin_alloca, not alloca.
11268
11269 2004-09-20 Andrew Pinski <pinskia@physics.uc.edu>
11270
11271 PR tree-opt/17558
11272 * tree-ssa-copy.c (may_propagate_copy): Only allow if the
11273 aliasing sets are the same rather than just conflicting.
11274
11275 2004-09-20 Jan Hubicka <jh@suse.cz>
11276
11277 PR middle-end/16460
11278
11279 * cgraph.c (cgraph_unnest_node): New function.
11280 (c_finalize): Rename to ....
11281 (c_warn_unused_result_recursivly): ... this one; do only the warning
11282 (finish_function): Finalize the toplevel function; do not lower nested tree.
11283 * cgraph.h (cgraph_unnest_node): Declare.
11284 * cgraphunit.c (decide_is_function_needed): Do not use cgraph
11285 nestedness datastructure.
11286 * cse.c (cse_insn): Do not cprop nonlocal LABEL_REFs.
11287 * reload1.c (set_label_offsets): Fix call of set_label_offsets.
11288 * tree-nested.c (finlize_nesting_tree_1): Use un-nesting code.
11289
11290 2004-09-20 Richard Henderson <rth@redhat.com>
11291
11292 * config/alpha/alpha.c (some_small_symbolic_operand_int): Rename
11293 from some_small_symbolic_operand_1; export.
11294 (some_small_symbolic_operand): Remove.
11295 * config/alpha/alpha.md (some_small_symbolic_operand splitter): Remove
11296 extra C check.
11297 * config/alpha/predicates.md (some_small_symbolic_operand): New.
11298
11299 2004-09-20 Jan Hubicka <jh@suse.cz>
11300
11301 * predict.c (return_prediction): New function.
11302 (apply_return_prediction): Likewise.
11303 (tree_bb_level_predictions): Likewise.
11304 (tree_estimate_probability): Add noreturn exit edges; call
11305 bb_level_predictions; fix logic of return heuristics.
11306 (predict_paths_leading_to): Rescuesce from old CVS version of
11307 process_note_prediction function.
11308 * predict.def (PRED_TREE_EARLY_RETURN): New predictor.
11309
11310 2004-09-20 Andreas Krebbel <krebbel1@de.ibm.com>
11311
11312 * config/s390/s390.c (s390_frame_info): Added alignment statement for
11313 floating point register area on stack.
11314
11315 2004-09-20 Jakub Jelinek <jakub@redhat.com>
11316
11317 * predict.c (expr_expected_value): Use *_CLASS_P macros.
11318
11319 2004-09-20 Daniel Berlin <dberlin@dberlin.org>
11320
11321 * tree-ssa-pre.c (compute_antic_aux): Use malloc'd worklist, to avoid
11322 generating useless garbage.
11323
11324 2004-09-20 Paolo Bonzini <bonzini@gnu.org>
11325
11326 * builtins.c (fold_builtin): Call the new omonymous
11327 target hook for machine-dependent built-ins.
11328 * target-def.h (TARGET_FOLD_BUILTIN): New.
11329 * target.h (struct gcc_target): Add the fold_builtin hook.
11330 * targhooks.c (default_fold_builtin): New.
11331 * targhooks.h (default_fold_builtin): Declare it.
11332
11333 2004-09-20 Kazu Hirata <kazu@cs.umass.edu>
11334
11335 * cfg.c, tree-ssa-threadupdate.c, tree-vectorizer.c: Fix
11336 comment typos.
11337
11338 2004-09-20 Richard Sandiford <rsandifo@redhat.com>
11339
11340 PR target/17565
11341 * config/mips/mips.md (define_asm_attributes): Set can_delay to no.
11342
11343 2004-09-20 Jan Hubicka <jh@suse.cz>
11344
11345 * predict.c (estimate_probability): Remove unnecesary code.
11346
11347 2004-09-19 Ira Rosen <irar@il.ibm.com>
11348
11349 * tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field.
11350 (STMT_VINFO_VECT_DR_BASE): Declare.
11351 (VECT_SMODULO): Declare.
11352 * tree-vectorizer.c (vect_compute_array_ref_alignment): New function.
11353 (vect_compute_array_base_alignment): New function.
11354 (vect_analyze_data_ref_access): Check array indices. Remove one
11355 dimensional arrays restriction.
11356 (vect_get_ptr_offset): New function.
11357 (vect_get_symbl_and_dr): New function.
11358 (vect_get_base_and_bit_offset): Support additional data refs. Renamed
11359 (former name vect_get_base_decl_and_bit_offset).
11360 (vect_create_index_for_array_ref): Removed.
11361 (vect_create_index_for_vector_ref): New function.
11362 (vect_create_addr_base_for_vector_ref): New function.
11363 (vect_create_data_ref): Handle additional data refs. Call
11364 vect_create_index_for_vector_ref and vect_create_addr_base_for_vector_ref.
11365 (vect_compute_data_ref_alignment): Support the changes. Call
11366 vect_get_base_and_bit_offset.
11367 (vect_analyze_data_refs): Call vect_get_symbl_and_dr. Support additional
11368 data refs. Store vect_dr_base.
11369 (vect_analyze_data_ref_accesses): Support nonconstant init.
11370 (new_stmt_vec_info): Initialize vect_dr_base field.
11371 (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
11372 (get_vectype_for_scalar_type): Check for BLKmode.
11373 * tree-chrec.h (initial_condition_in_loop_num): Declare.
11374 * tree-chrec.c (initial_condition_in_loop_num): New function.
11375 (chrec_component_in_loop_num): New function.
11376 (evolution_part_in_loop_num): Call chrec_component_in_loop_num.
11377 * tree-data-ref.c (analyze_array_indexes): Change parameter (access_fns)
11378 to be pointer to varray_type.
11379
11380 2004-09-19 Jan Hubicka <jh@suse.cz>
11381
11382 * basic-block.h (update_bb_profile_after_threading): Declare.
11383 * cfg.c (update_bb_profile_after_threading): Break out from ...
11384 * cfgcleanup.c (try_forward_edges): ... here; use it.
11385 * tree-ssa-dom.c (thread_across_edge): Use it.
11386 * tree-ssa-threadupdate.c (create_block_for_threading): Zero out
11387 profile of the new BB.
11388
11389 2004-09-19 Daniel Berlin <dberlin@dberlin.org>
11390
11391 * tree-ssa-pre.c (insert_into_set): Don't put
11392 is_gimple_min_invariant values into the set.
11393
11394 2004-09-19 Andreas Jaeger <aj@suse.de>
11395
11396 * tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix
11397 prototype.
11398
11399 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
11400
11401 * config/cris/cris.h: Preserve the original spelling in a
11402 quote.
11403
11404 2004-09-18 Jeff Law <law@redhat.com>
11405
11406 * tree-ssa-dom.c (nonzero_vars_stack, vrp_variables_stack): New
11407 global varrays to replace the block local varrays.
11408 (struct dom_walk_block_data): Remove, no longer used.
11409 (get_eq_expr_value): No longer need to pass around pointers to local
11410 varrays. Callers updated. Unused markers added to unused parameters.
11411 (record_range, record_equivalences_from_stmt): Likewise.
11412 (record_equivalences_from_incoming_edge): Likewise.
11413 (record_var_is_nonzero): Likewise. Update now that we have a
11414 single global varray of SSA_NAMEs that need restoring.
11415 (dom_opt_initialize_block_local_data): Kill, no longer used.
11416 (tree_ssa_dominator_optimize): Initialize new global varrays.
11417 Update callbacks in dominator walker structure.
11418 (dom_opt_initialize_block): Add markers to NONZERO_VAR_STACK and
11419 VRP_VARIABLES_STACK.
11420 (restore_nonzero_vars_to_original_value): Update now that we have
11421 a single global varray of SSA_NAMEs that need restoring.
11422 (dom_opt_finalize_block): Similarly for VRP_VARIABLES_STACK.
11423 Remove unused variables.
11424 (optimize_stmt): Remove unused variable.
11425
11426 2004-09-18 Jan Hubicka <jh@suse.cz>
11427
11428 * tree-cfg.c (thread_jumps): Fix updating of the profile.
11429
11430 * tree-optimize.c (tree_rest_of_compilation): Kill forgotten
11431 verify_cgraph call.
11432
11433 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
11434
11435 * alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c,
11436 gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c,
11437 optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c,
11438 tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c,
11439 tree-ssa-operands.c, tree-ssa-phiopt.c,
11440 tree-ssa-threadupdate.c: Fix comment typos.
11441
11442 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
11443
11444 * config/darwin-c.c, config/arc/arc.c, config/arc/arc.md,
11445 config/arm/README-interworking, config/arm/arm-cores.def,
11446 config/arm/arm.c, config/arm/arm.h, config/arm/pe.c,
11447 config/arm/vfp.md, config/c4x/c4x.c, config/c4x/c4x.h,
11448 config/cris/cris.c, config/cris/cris.h, config/fr30/fr30.c,
11449 config/fr30/fr30.h, config/fr30/fr30.md, config/frv/frv.c,
11450 config/frv/frv.md, config/i386/winnt.c,
11451 config/ia64/unwind-ia64.c, config/iq2000/iq2000.c,
11452 config/iq2000/iq2000.h, config/m68hc11/m68hc11.c,
11453 config/m68hc11/m68hc11.md, config/m68k/m68k.c,
11454 config/mcore/mcore.c, config/mips/mips.h,
11455 config/mn10300/mn10300.md, config/pa/pa.c,
11456 config/pa/pa64-regs.h, config/pdp11/pdp11.c,
11457 config/rs6000/rs6000.c, config/sh/symbian.c,
11458 config/sparc/sparc.h: Fix comment typos. Follow spelling
11459 conventions.
11460
11461 2004-09-18 Joseph S. Myers <jsm@polyomino.org.uk>
11462
11463 PR c/17424
11464 * c-typeck.c (c_expr_sizeof_expr): Check for error_mark_node.
11465
11466 2004-09-18 Diego Novillo <dnovillo@redhat.com>
11467
11468 * tree-ssa-alias.c (setup_pointers_and_addressables): Don't
11469 remove TREE_ADDRESSABLE from RESULT_DECL.
11470
11471 2004-09-18 Diego Novillo <dnovillo@redhat.com>
11472
11473 * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
11474
11475 2004-09-18 Jan Hubicka <jh@suse.cz>
11476
11477 * tree-into-ssa.c (rewrite_ssa_into_ssa): Expect ssa_name to return
11478 NULL.
11479 * tree-ssa-alias.c (init_alias_info): Likewise.
11480 * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
11481 (verify_ssa): Likewise.
11482 * tree-ssanames.c (make_ssa_name): Clear out ssa_names arrays.
11483
11484 2004-09-18 Jan Hubicka <jh@suse.cz>
11485
11486 * i386.c (legitimize_pic_address): Fix splitting of PLUS with
11487 huge offset.
11488
11489 2004-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
11490
11491 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
11492 * config/sh/sh.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
11493 DW_EH_PE_sdata* for data.
11494 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
11495
11496 2004-09-17 Geoffrey Keating <geoffk@apple.com>
11497
11498 * tree-inline.c (copy_tree_r): Don't duplicate constants, they're
11499 shared anyway.
11500
11501 PR pch/13361
11502 * c-typeck.c (constructor_asmspec): Delete.
11503 (struct initializer_stack): Delete field 'asmspec'.
11504 (start_init): Delete saving of asmspec.
11505 (finish_init): Don't update constructor_asmspec.
11506 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
11507 * stmt.c (expand_asm): Duplicate strings from tree.
11508 (expand_asm_operands): Likewise.
11509 * tree.c (tree_size): Update computation of size of STRING_CST.
11510 (make_node): Don't make STRING_CST nodes.
11511 (build_string): Allocate string with tree node.
11512 (tree_code_size): Clean up assertions, don't allow requests
11513 for "the size of a STRING_CST".
11514 * tree.def (STRING_CST): Update comment.
11515 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
11516 (tree_string): Place contents of string in tree node.
11517 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
11518 from tree.
11519
11520 2004-09-17 Zack Weinberg <zack@codesourcery.com>
11521
11522 * Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
11523 * objc/Make-lang.in (objc/objc-parse.o): Likewise.
11524
11525 2004-09-17 Jones Desougi <jones@ingate.com>
11526
11527 * configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
11528 * configure, config.in: Regenerate.
11529
11530 2004-09-17 Zack Weinberg <zack@codesourcery.com>
11531
11532 * tree.c, tree.h (tree_class_strings): Make array const.
11533 Reindent per coding convention. Move asterisk to proper place
11534 per coding convention.
11535
11536 2004-09-18 Andreas Schwab <schwab@suse.de>
11537
11538 * Makefile.in (gimple-low.o): Depend on $(EXPR_H).
11539 (tree-vectorizer.o): Likewise.
11540 (targhooks.o): Likewise.
11541
11542 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
11543 Zack Weinberg <zack@codesourcery.com>
11544
11545 * alias.c (find_base_decl): Remove unreachable case '3' block.
11546 * expr.c (safe_from_p): Abort if passed a type.
11547 * tree-gimple.c (recalculate_side_effects): Abort if passed
11548 anything other than an expression.
11549 * tree-ssa-pre.c (phi_translate): Return expr immediately if
11550 is_gimple_min_invariant is true for it. Reorder cases for clarity.
11551 Abort on un-handled tree classes.
11552 (valid_in_set): Likewise.
11553 * tree.c (tree_code_class_strings): New static data.
11554
11555 * tree.h (enum tree_code_class): New.
11556 (tree_code_class_strings): Declare.
11557 (TREE_CODE_CLASS_STRING, EXCEPTIONAL_CLASS_P, CONSTANT_CLASS_P)
11558 (REFERENCE_CLASS_P, COMPARISON_CLASS_P, UNARY_CLASS_P, BINARY_CLASS_P)
11559 (STATEMENT_CLASS_P, EXPRESSION_CLASS_P, IS_TYPE_OR_DECL_P): New macros.
11560 (TYPE_P, DECL_P, IS_NON_TYPE_CODE_CLASS, IS_EXPR_CODE_CLASS)
11561 (checking macros, EXPR_LOCATION, SET_EXPR_LOCATION, EXPR_LOCUS): Update.
11562
11563 * tree.def, c-common.def, objc/objc-tree.def: Use
11564 tree_code_class enumeration constants instead of code letters.
11565
11566 * alias.c, builtins.c, c-common.c, c-format.c, c-lang.c, c-pragma.c
11567 * c-typeck.c, cgraphunit.c, convert.c, dbxout.c, dwarf2out.c
11568 * emit-rtl.c expr.c, fold-const.c, gimplify.c, lambda-code.c
11569 * langhooks.c, langhooks.h, predict.c, print-tree.c, reload1.c, stmt.c
11570 * tree-browser.c, tree-cfg.c, tree-chrec.c, tree-complex.c, tree-dfa.c
11571 * tree-dump.c, tree-eh.c, tree-gimple.c, tree-inline.c, tree-nested.c
11572 * tree-outof-ssa.c, tree-pretty-print.c, tree-sra.c, tree-ssa-ccp.c
11573 * tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-forwprop.c, tree-ssa-live.c
11574 * tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c
11575 * tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-propagate.c
11576 * tree-ssa.c, tree-ssanames.c, tree-tailcall.c, tree.c, varasm.c
11577 * config/sol2-c.c, config/arm/arm.c, config/i386/winnt.c
11578 * config/pa/pa.c, config/pa/pa.h, config/sh/sh.c, objc/objc-lang.c
11579 Update to match.
11580
11581 * LANGUAGES: Add note about change.
11582
11583 2004-09-17 Diego Novillo <dnovillo@redhat.com>
11584
11585 PR tree-optimization/17319
11586 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Also
11587 examine pointers on the LHS of an assignment.
11588 (collect_points_to_info_r): Handle RETURN_EXPR.
11589
11590 2004-09-17 Jeff Law <law@redhat.com>
11591
11592 * tree-ssa-dom.c (const_and_copies_stack): New.
11593 (dom_walk_block_data): Remove const_and_copies field.
11594 (record_const_or_copy): No longer need to pass in varray_type *.
11595 Use CONST_AND_COPIES_STACK rather than passed in block local stack.
11596 Callers updated.
11597 (record_equality): Similarly.
11598 (restore_vars_to_original_value): Similarly. Revamp to use new
11599 single global stack rather than per-block stacks.
11600 (tree_ssa_dominator_optimize): Initialize the CONST_AND_COPIES_STACK.
11601 (thread_across_edge): Remove now unused parameters.
11602 (dom_opt_initialize_block_local_data): No longer test the block
11603 local CONST_AND_COPIES.
11604 (dom_opt_initialize_block): Push a marker on CONST_AND_COPIES_STACK.
11605
11606 2004-09-17 Jan Hubicka <jh@suse.cz>
11607
11608 PR tree-optimization/17509
11609 * tree-optimize.c (update_inlined_to_pointers): New function.
11610 (tree_rest_of_compilation): Use it.
11611
11612 2004-09-17 Devang Patel <dpatel@apple.com>
11613
11614 * dbxout.c (get_lang_number): New.
11615 (dbxout_init): Include lang number in N_SO stab.
11616 * dbxout.h (N_SO_AS, N_SO_C, N_SO_ANSI_C, N_SO_CC, N_SO_FORTRAN,
11617 N_SO_PASCAL, N_SO_FORTRAN90, N_SO_OBJC, N_SO_OBJCPLUS): New #define.
11618
11619 2004-09-17 Diego Novillo <dnovillo@redhat.com>
11620
11621 PR tree-optimization/17273
11622 * tree-ssa.c (replace_immediate_uses): Call fold_stmt if the
11623 replacement is a constant.
11624
11625 2004-09-17 Joseph S. Myers <jsm@polyomino.org.uk>
11626
11627 * c-tree.h (enum c_typespec_keyword): New.
11628 (struct c_declspecs): Adjust description of "type". Remove
11629 specbits, explicit_int_p and explicit_char_p. Rename
11630 typedef_signed_p to explicit_signed_p. Add default_int_p, long_p,
11631 short_p, signed_p, unsigned_p and complex_p.
11632 (finish_declspecs): New.
11633 * c-parse.in (datadef, datadecl, setspecs, decl, component_decl,
11634 typename): Call finish_declspecs.
11635 * c-decl.c (finish_declspecs): New.
11636 (declspecs_add_type): Check for combinations which cannot occur in
11637 valid specifier lists. Update comments.
11638 (shadow_tag_warned): Remove checks done in finish_declspecs.
11639 Don't report useless type name if type defaulted to int.
11640 (grokdeclarator): Remove checks and actions done in
11641 finish_declspecs. Don't allow for type being NULL. Update for
11642 datastructures changes. Initialize decl_attr.
11643 (build_null_declspecs, quals_from_declspecs): Update for
11644 datastructures changes.
11645
11646 2004-09-17 Sylvain Pion <Sylvain.Pion@sophia.inria.fr>
11647
11648 * doc/extend.texi: Fix duplicated word.
11649
11650 2004-09-17 Toon Moene <toon@moene.indiv.nluug.nl>
11651
11652 * doc/invoke.texi: Remove stray explanation on
11653 -freduce-all-givs and -fmove-all-movables.
11654
11655 2004-09-17 James Morrison <phython@gcc.gnu.org>
11656
11657 * doc/cfg.texi: Use @smallexample.
11658 * doc/md.texi: Likewise.
11659 * doc/tree-ssa.texi: Likewise.
11660 * doc/extend.texi: Likewise. Use @r{} in comments.
11661 * doc/trouble.texi: Use @r{} in comments.
11662
11663 2004-09-17 Hans-Peter Nilsson <hp@bitrange.com>
11664
11665 * configure.ac (gcc_cv_gld_version): Handle whitespace before
11666 "VERSION=".
11667 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto.
11668 * configure: Regenerate.
11669
11670 2004-09-17 J"orn Rennecke <joern.rennecke@superh.com>
11671
11672 * sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.
11673 (sh_pass_by_reference): Work around std_gimplify_va_arg_expr bug.
11674 * t-sh (MULTILIB_CPUS): s/ML_m/ML_sh/g .
11675 * t-sh64 (MULTILIB_CPU_DIRS): Likewise. Match dashes and trailing
11676 slashes in substitutions.
11677 (MULTILIB_DIRNAMES): Remove defunct removal of /media32.
11678
11679 2004-09-17 Kazu Hirata <kazu@cs.umass.edu>
11680
11681 * basic-block.h, c-decl.c, c-parse.in, cgraphunit.c, ddg.c,
11682 gimplify.c, lambda-code.c, optabs.c, predict.c,
11683 tree-scalar-evolution.c, tree-sra.c, tree-ssa-loop-ch.c,
11684 tree-ssa.c, vec.h: Fix comment typos. Follow spelling
11685 conventions.
11686
11687 2004-09-17 Kazu Hirata <kazu@cs.umass.edu>
11688
11689 * doc/compat.texi, doc/cpp.texi, doc/cppopts.texi,
11690 doc/extend.texi, doc/install.texi, doc/invoke.texi,
11691 doc/sourcebuild.texi, doc/tm.texi, doc/tree-ssa.texi,
11692 doc/trouble.texi: Use @option around options.
11693
11694 2004-09-17 Richard Sandiford <rsandifo@redhat.com>
11695
11696 * Makefile.in (gen-protos.o): Depend on errors.h.
11697
11698 2004-09-17 Steven Bosscher <stevenb@suse.de>
11699
11700 PR tree-optimization/17513
11701 * cfgexpand.c (construct_init_block): Clear EDGE_EXECUTABLE
11702 for successors of the entry block.
11703
11704 2004-09-17 Uros Bizjak <uros@kss-loka.si>
11705
11706 PR rtl-optimization/15187
11707 * ifcvt.c (noce_try_cmove_arith): Exit early if total
11708 insn_rtx_cost of both branches > BRANCH_COST
11709
11710 2004-09-16 Diego Novillo <dnovillo@redhat.com>
11711
11712 PR tree-optimization/17528
11713 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Do not
11714 erase the may-alias set for a tag when merging it with
11715 another.
11716
11717 2004-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
11718
11719 * config/sh/sh.md (call): Extend 32-bit addresses to DImode
11720 for 32-bit TARGET_SHMEDIA.
11721 (call_value): Likewise.
11722
11723 2004-09-16 Diego Novillo <dnovillo@redhat.com>
11724
11725 * tree-ssa-operands.c (add_call_clobber_ops): Make read-only
11726 test apply only to TREE_STATIC and DECL_EXTERNAL.
11727
11728 2004-09-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11729
11730 * Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
11731 * basic-block.h (get_dominated_by_region): Declare.
11732 * dominance.c (get_dominated_by_region): New function.
11733 * tree-cfg.c: Include cfglayout.h.
11734 (tree_duplicate_bb): Duplicate also phi nodes.
11735 (struct ssa_name_map_entry): New type.
11736 (add_phi_args_after_copy_bb, add_phi_args_after_copy,
11737 ssa_name_map_entry_hash, ssa_name_map_entry_eq,
11738 allocate_ssa_names, rewrite_to_new_ssa_names_def,
11739 rewrite_to_new_ssa_names_use, rewrite_to_new_ssa_names_bb,
11740 rewrite_to_new_ssa_names, tree_duplicate_sese_region): New functions.
11741 * tree-flow.h (tree_duplicate_sese_region, add_phi_args_after_copy_bb,
11742 add_phi_args_after_copy, rewrite_to_new_ssa_names_bb,
11743 rewrite_to_new_ssa_names, allocate_ssa_names,
11744 rewrite_into_loop_closed_ssa, verify_loop_closed_ssa): Declare.
11745 * tree-ssa-loop-ch.c (duplicate_blocks): Removed.
11746 (copy_loop_headers): Use tree_duplicate_sese_region.
11747
11748 2004-09-16 Frank Ch. Eigler <fche@redhat.com>
11749
11750 * profile.c (branch_prob): Restore support for USE_MAPPED_LOCATION.
11751
11752 2004-09-16 Jeff Law <law@redhat.com>
11753
11754 * tree-into-ssa.c (block_defs_stack): New toplevel varray.
11755 (rewrite_block_data): Remove, no longer used.
11756 (rewrite_initialize_block_local_data): Remove, no longer used.
11757 (rewrite_initialize_block): Mark parameters as unused as needed.
11758 Change references to the block local block_defs to be block_defs_stack.
11759 Push a marker onto the block_defs_stack.
11760 (ssa_rewrite_initialize_block): Similarly.
11761 (rewrite_stmt, ssa_rewrite_stmt): Similarly.
11762 (ssa_register_new_def): No longer needs varray argument. Use
11763 block_defs_stack instead. No longer handle possibly null block_defs
11764 varray. Reverse order of items we push on the stack to make it
11765 easier to identify our marker.
11766 (register_new_def): No longer handle possibly null block_defs
11767 varray.
11768 (rewrite_finalize_block): Revamp to look for markers in the global
11769 block_defs_stack varray rather than wiping a block local varray.
11770 Mark arguments as unused as needed.
11771 (ssa_rewrite_finalize_block): Similarly.
11772 (rewrite_into_ssa): Update initialization of dom walker structure
11773 to reflect that we don't need block local data anymore. Initialize
11774 the block_defs_stack varray.
11775 (rewrite_ssa_into_ssa): Similarly.
11776 * tree-ssa-dom.c (block_defs_stack): New toplevel varray.
11777 (struct dom_walk_data): Kill block_defs field.
11778 (tree_ssa_dominator_optimize): Initialize block_defs_stack.
11779 (thread_across_edge): Use the global block_defs_stack instead of
11780 the old block_defs varray.
11781 (dom_opt_initialize_block_local_data): Update now that we don't have
11782 block_defs field to check anymore.
11783 (dom_opt_initialize_block): Push a marker onto block_defs_stack.
11784 (restore_currdefs_to_original_value): Use the new block_defs_stack
11785 instead of a block local varray.
11786 (dom_opt_finalize_block): Similarly.
11787 (record_equivalencs_from_phis): Similarly.
11788 (optimize_stmt, register_definitions_for_stmt): Similarly.
11789
11790 2004-09-16 Andrew MacLeod <amacleod@redhat.com>
11791
11792 PR tree-optimization/17517
11793 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11794 coalesce same-root variables without checking for abnormal PHI usage.
11795
11796 2004-09-16 Daniel Berlin <dberlin@dberlin.org>
11797
11798 * cfgloop.h (duplicate_loop): Add prototype.
11799 * cfgloopmanip.c (duplicate_loop): Make non-static.
11800 * lambda-code.c (perfect_nestify): Factor out test whether
11801 we can handle this loop into separate function.
11802 Call it.
11803 (can_convert_to_perfect_nest): New function.
11804 (replace_uses_of_x_with_y): Add modify_stmt call.
11805 * tree-loop-linear.c (linear_transform_loops): Call
11806 rewrite_into_loop_closed_ssa and free_df.
11807
11808 2004-09-16 Daniel Berlin <dberlin@dberlin.org>
11809
11810 * lambda-code.c (invariant_in_loop): is_gimple_min_invariant is
11811 loop invariant as well.
11812 (perfect_nestify): new function.
11813 (gcc_loop_to_lambda_loop): New parameters to track lower bounds,
11814 upper bounds, and steps.
11815 Set outerinductionvar properly.
11816 (gcc_loopnest_to_lambda_loopnest): Add loops and need_perfect
11817 parameters.
11818 Return NULL if we need a perfect loop and can't make one.
11819 (lambda_loopnest_to_gcc_loopnest): Correct algorithm.
11820 (not_interesting_stmt): New function.
11821 (phi_loop_edge_uses_def): Ditto.
11822 (stmt_uses_phi_result): Ditto.
11823 (stmt_is_bumper_for_loop): Ditto.
11824 (perfect_nest_p): Ditto.
11825 (nestify_update_pending_stmts): Ditto.
11826 (replace_uses_of_x_with_y): Ditto.
11827 (stmt_uses_op): Ditto.
11828 (perfect_nestify): Ditto.
11829 * lambda-mat.c (lambda_matrix_id_p): New function.
11830 * lambda-trans.c (lambda_trans_matrix_id_p): Ditto.
11831 * lambda.h: Update prototypes.
11832 * tree-loop-linear (linear_transform_loop): Use new
11833 perfect_nest_p. Detect and ignore identity transform.
11834 * tree-ssa-loop.c (pass_linear_transform): Use TODO_write_loop_closed.
11835
11836 2004-09-16 Sebastian Pop <pop@cri.ensmp.fr>
11837
11838 * tree-loop-linear.c (gather_interchange_stats): Add more comments.
11839 Gather also strides of accessed data. Pass in the data references
11840 array.
11841 (try_interchange_loops): Add a new heuristic for handling the temporal
11842 locality. Pass in the data references array.
11843 (linear_transform_loops): Pass the data references array to
11844 try_interchange_loops.
11845
11846 2004-09-16 Kazu Hirata <kazu@cs.umass.edu>
11847
11848 * doc/invoke.texi: Fix typos. Follow spelling conventions.
11849
11850 2004-09-16 Nathan Sidwell <nathan@codesourcery.com>
11851
11852 * doc/c-tree.texi (Classes): Remove index entries for
11853 TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}.
11854
11855 2004-09-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11856
11857 * fold-const.c (fold): Fold difference of addresses.
11858 (ptr_difference_const): Moved from tree-ssa-loop-ivopts, based on
11859 get_inner_reference.
11860 * tree-ssa-loop-ivopts.c (peel_address): Removed.
11861 (ptr_difference_const): Moved to fold-const.c.
11862 (split_address_cost): Use get_inner_reference instead of peel_address.
11863 (ptr_difference_cost): Change type of diff to HOST_WIDE_INT.
11864 * tree.h (ptr_difference_const): Export.
11865
11866 * tree-ssa-loop-ivopts.c (dump_iv, dump_use, dump_cand): Add induction
11867 variable type to the dump. Fix indentation.
11868 (idx_find_step): Handle nonconstant array_ref_element_size and
11869 array_ref_low_bound.
11870 (idx_record_use): Handle array_ref_element_size and
11871 array_ref_low_bound.
11872 (find_interesting_uses_stmt): Handle memory = nontrivial_expression
11873 statements correctly.
11874 (get_computation_at, iv_value): Do not unshare expressions here.
11875 (rewrite_use_outer): Unshare the expression before it is emitted
11876 to code.
11877 * tree-ssa-loop-niter.c (unsigned_type_for, signed_type_for):
11878 Moved to tree.c.
11879 * tree.c (unsigned_type_for, signed_type_for): Moved from
11880 tree-ssa-loop-niter.c. Use langhooks.
11881 * tree.h (signed_type_for): Export.
11882
11883 2004-09-16 David Edelsohn <edelsohn@gnu.org>
11884
11885 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Update
11886 prototype.
11887
11888 2004-09-15 Andrew Pinski <pinskia@physics.uc.edu>
11889
11890 PR target/11572
11891 * c-incpath.h (target_c_incpath_s): Add extra_pre_includes.
11892 Add two parameters to extra_includes.
11893 (C_INCPATH_INIT): Remove.
11894 * c-incpath.c (register_include_chains): Call extra_pre_includes
11895 before adding the standard include directory.
11896 Update call to extra_includes.
11897 (!defined TARGET_EXTRA_INCLUDES): Update
11898 hook_void_charptr_charptr_int and add !define
11899 TARGET_EXTRA_PRE_INCLUDES.
11900 (!define TARGET_EXTRA_INCLUDES): Define as
11901 hook_void_charptr_charptr_int.
11902 (!define TARGET_EXTRA_PRE_INCLUDES): Likewise.
11903 (target_c_incpath): Always declare.
11904 * fixinclude.c (defined TARGET_EXTRA_INCLUDES): Declare a
11905 empty function.
11906 (define TARGET_EXTRA_PRE_INCLUDES): Likewise.
11907 * config/darwin.h: (darwin_register_frameworks): Update for
11908 the two new parameters.
11909 (darwin_register_objc_includes): Add prototype.
11910 (TARGET_EXTRA_PRE_INCLUDES): Define.
11911 * config/darwin-c.c (darwin_register_objc_includes): New function.
11912 (darwin_register_frameworks): Update for the two new parameters.
11913 (target_c_incpath): Remove.
11914 * config/t-darwin (darwin-c.o): Add $(PREPROCESSOR_DEFINES) to
11915 the compile line.
11916 * doc/tm.texi (TARGET_EXTRA_INCLUDES): Document the two new
11917 parameters.
11918 (TARGET_EXTRA_PRE_INCLUDES): Document.
11919
11920 * gcc.c (spec_function): Add replace-outfile.
11921 (replace_outfile_spec_function): New function.
11922 * config/darwin.h (LINK_SPEC): Add replace
11923 -lobjc with -lobjc-gnu if -fgnu-runtime is
11924 supplied.
11925 * invoke.texi (replace-outfile): Document.
11926
11927 2004-09-13 Jan Hubicka <jh@suse.cz>
11928
11929 * predict.c (expr_expected_value, strip_builtin_expect): New function.
11930 (tree_predict_by_opcode): Use it.
11931 (tree_estimate_probability): Add, for now disabled,
11932 strip_builtin_expect call.
11933
11934 2004-09-15 James E Wilson <wilson@specifixinc.com>
11935
11936 PR target/17455
11937 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Return false
11938 if current_function_decl is a sibcall.
11939
11940 2004-09-15 Mark Mitchell <mark@codesourcery.com>
11941
11942 * varasm.c (default_function_rdodata_section): Make sure to pass
11943 along a decl for a link-once section.
11944
11945 2004-09-15 Richard Henderson <rth@redhat.com>
11946
11947 * tree-ssa-operands.c (add_call_clobber_ops): Fix unused variable
11948 warning with code disable. Fix formatting.
11949
11950 2004-09-15 Steven Bosscher <stevenb@suse.de>
11951
11952 * Makefile.in (tree-ssa-dom.o): Depend on tree-ssa-propagate.h.
11953 * tree-ssa-dom.c (cprop_into_stmt): Recompute TREE_INVARIANT
11954 after propagating into an ADDR_EXPR.
11955
11956 2004-09-15 Andrew Pinski <apinski@apple.com>
11957
11958 PR rtl-opt/17427
11959 * gcse.c (process_insert_insn): insn_invalid_p has side effects.
11960 Move it out of gcc_assert.
11961
11962 2004-09-15 Joseph S. Myers <jsm@polyomino.org.uk>
11963
11964 * attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c,
11965 except.c, fold-const.c, function.c, langhooks.c, params.c,
11966 reload.c, reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
11967 tree-dump.c, tree-mudflap.c, tree.c, varasm.c: Use %<, %> and %q
11968 for quoting in diagnostics going through pretty-print.c. Use ''
11969 for quoting in other diagnostic text.
11970 * langhooks.c: Include intl.h. Mark text locating diagnostics for
11971 translation.
11972 * Makefile.in (langhooks.o): Update dependencies.
11973 * pretty-print.h (pp_printf): Mark as accepting GCC diagnostic
11974 formats.
11975
11976 2004-09-15 Mark Mitchell <mark@codesourcery.com>
11977
11978 * configure.ac: Check for COMDAT support. Robustify check for
11979 SHF_MERGE support.
11980 * configure: Regenerated.
11981 * config.in: Likewise.
11982 * langhooks-def.h (lhd_comdat_group): New function.
11983 (LANG_HOOKS_COMDAT_GROUP): New macro.
11984 (LANG_HOOKS_DECLS): Use it.
11985 * langhooks.c (lhd_comdat_group): Define.
11986 * langhooks.h (lang_hooks_for_decls): Add comdat_group.
11987 * output.h (named_section_flags): Make it a macro.
11988 (named_section_real): New function.
11989 (default_no_named_section): Add decl parameter.
11990 (default_elf_asm_named_section): Likewise.
11991 (default_coff_asm_named_section): Likewise.
11992 (default_pe_asm_named_section): Likewise.
11993 * target.h (gcc_target): Adjust type of named_section.
11994 * varasm.c (named_section_flags): Rename to named_section_real.
11995 Add decl parameter.
11996 (default_no_named_section): Add decl parameter.
11997 (default_elf_asm_named_section): Use COMDAT, if available. Deal
11998 with the case that ASM_COMMENT_START is "@".
11999 (default_coff_asm_named_section): Add decl parameter.
12000 (default_pe_asm_named_section): Likewise.
12001 * config/alpha/alpha.c (vms_asm_named_section): Add decl
12002 parameter.
12003 (unicosmk_asm_named_section): Likewise.
12004 * config/arm/arm.c (arm_elf_asm_named_section): Remove.
12005 * config/arm/elf.h (TARGET_ASM_NAMED_SECTION): Likewise.
12006 * config/c4x/c4x.c (c4x_asm_named_section): Add decl parameter.
12007 * config/cris/cris-protos.h (cris_target_asm_named_section):
12008 Likewise.
12009 * config/cris/cris.c (cris_target_asm_named_section):
12010 Likewise.
12011 * config/darwin/darwin-protos.h (darwin_asm_named_section):
12012 Likewise.
12013 * config/darwin/darwin.c (darwin_asm_named_section): Likewise.
12014 * config/h8300/h8300.c (h8300_asm_named_section): Likewise.
12015 * config/i386/i386-protos.h (i386_pe_asm_named_section):
12016 Likewise.
12017 * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
12018 * config/m68k/m68k.c (m68k_coff_asm_named_section): Likewise.
12019 * config/mcore/mcore.c (mcore_asm_named_section): Likewise.
12020 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section):
12021 Likewise.
12022 * config/sparc/sparc.c (sparce_elf_asm_named_section): Likewise.
12023 * cp/cp-lang.h (LANG_HOOKS_COMDAT_GROUP): Define.
12024 * cp/cp-tree.h (cxx_comdat_group): Declare.
12025 * cp/decl.c (cxx_comdat_group): New function.
12026
12027 2004-09-15 Jan Hubicka <jh@suse.cz>
12028
12029 * tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes.
12030 * tree-tailcall.c (eliminate_tail_call): Release SSA name.
12031
12032 * tree-cfg.c (remove_bb): Release SSA defs.
12033
12034 2004-09-15 Kazu Hirata <kazu@cs.umass.edu>
12035
12036 * doc/tm.texi: Follow spelling conventions.
12037
12038 2004-09-15 Kazu Hirata <kazu@cs.umass.edu>
12039
12040 * tree-ssa-dom.c: Fix comment typos.
12041
12042 2004-09-15 Alan Modra <amodra@bigpond.net.au>
12043
12044 * config/rs6000/linux-unwind.h (struct gcc_pt_regs): Extend to
12045 include ccr.
12046 (ppc_fallback_frame_state): Save location of CR.
12047
12048 2004-09-15 Jakub Jelinek <jakub@redhat.com>
12049
12050 * expr.c (string_constant): Handle also read-only variables
12051 initialized to string literals.
12052
12053 * builtins.c (expand_builtin_memmove): Optimize memmove (x, y, 1)
12054 into memcpy (x, y, 1) if memcpy can be expanded inline.
12055
12056 2004-09-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12057
12058 PR tree-optimization/17468
12059 * tree-ssa.c (verify_use, verify_phi_args, verify_ssa): Verify that
12060 definition inside a block precede uses.
12061 * tree-tailcall.c (adjust_return_value): Emit statements in the
12062 correct order.
12063
12064 2004-09-15 Richard Sandiford <rsandifo@redhat.com>
12065
12066 * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Delete.
12067
12068 2004-09-15 Eric Botcazou <ebotcazou@libertysurf.fr>
12069
12070 * doc/install.texi (sparc-sun-solaris2*): Properly format warning.
12071
12072 2004-09-14 Jeff Law <law@redhat.com>
12073
12074 * tree-ssa-dom.c (avail_exprs_stack): New global varray.
12075 (struct dom_walk_block_data): Remove avail_exprs member.
12076 (tree_ssa_dominator_optimize): Initialize avail_exprs_stack.
12077 (lookup_avail_expr): No longer need to pass in address of
12078 the block local available exprs stack. All callers changed.
12079 (simplify_cond_and_lookup_avail_expr): Similarly.
12080 (simplify_switch_and_lookup_avail_expr): Similarly.
12081 (get_eq_expr_value, record_cond): Likewise.
12082 (record_dominating_conditions): Likewise.
12083 (update_rhs_and_lookup_avail_expr): Likewise.
12084 (record_equivalences_from_stmt): Likewise.
12085 (dom_opt_initialize_block_local_data): No longer test state of
12086 block local avail_exprs.
12087 (dom_opt_initialize_block): Mark unwind point in the global
12088 avail_expr stack.
12089 (remove_expressions_from_table): Update to unwind to the
12090 most recent unwind marker in the global avail_expr stack.
12091 All callers changed.
12092 (dom_opt_finalize_block): Mark unwind point in the global
12093 avail_expr stack as needed.
12094 (record_cond): Push elements into the global avail_exprs stack.
12095
12096 * tree-dfa.c (free_df_for_stmt): No longer static.
12097 (free_df): Update comments.
12098 * tree-flow.h (free_df_for_stmt): Prototype.
12099 * tree-ssa-dse.c (dse_optimize_stmt): Call free_df_for_stmt. Also
12100 call release_defs.
12101
12102 2004-09-14 Diego Novillo <dnovillo@redhat.com>
12103
12104 PR tree-optimization/17252
12105 * tree-ssa-alias.c (may_alias_p): Don't assume that a
12106 pointer may not point to itself when using relaxed
12107 aliasing rules.
12108
12109 2004-09-14 Richard Henderson <rth@redhat.com>
12110
12111 PR middle-end/17397
12112 * gimplify.c (gimplify_addr_expr): Don't inadvertently change types
12113 while folding <ADDR_EXPR <INDIRECT_REF X>>.
12114
12115 2004-09-14 Andrew Pinski <apinski@apple.com>
12116
12117 * tree-ssa-copy.c (may_propagate_copy): Don't check the aliasing
12118 sets of the pointers but the aliasing sets of what they point to.
12119
12120 2004-09-14 Roger Sayle <roger@eyesopen.com>
12121
12122 PR rtl-optimization/9771
12123 * regclass.c (CALL_REALLY_USED_REGNO_P): New macro to eliminate
12124 conditional compilation in init_reg_sets_1.
12125 (init_reg_sets_1): Let global_regs[i] take priority over the frame
12126 (but not stack) pointer exceptions to regs_invalidated_by_call.
12127 (globalize_reg): Globalizing a fixed register may need to update
12128 regs_invalidated_by_call.
12129
12130 2004-09-14 Diego Novillo <dnovillo@redhat.com>
12131
12132 PR tree-optimization/15262
12133 * tree-dfa.c (dump_variable): Also print the type of the
12134 variable.
12135 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If two
12136 memory tags are of conflicting alias sets but have no aliased
12137 symbols in common, add one tag to the alias set of the other.
12138 (setup_pointers_and_addressables): Remove hack to deal with
12139 programs with no aliased symbols.
12140 (may_alias_p): Don't special case aggregate types.
12141
12142 2004-09-14 Joseph S. Myers <jsm@polyomino.org.uk>
12143
12144 PR c/15498
12145 * doc/invoke.texi (Environment Variables): Correct example locale.
12146
12147 2004-09-14 Jan Hubicka <jh@suse.cz>
12148
12149 * cfg.c (expunge_block): Revert previous change adding ggc_free call.
12150
12151 2004-09-14 Mark Mitchell <mark@codesourcery.com>
12152
12153 * config.gcc: Do not build a shared libgcc for arm-none-eabi.
12154
12155 2004-09-14 Joseph S. Myers <jsm@polyomino.org.uk>
12156
12157 * c-tree.h (struct c_declspecs): Add const_p, volatile_p and
12158 restrict_p.
12159 (struct c_declarator): Change u.array.quals and pointer_quals to
12160 int. Add u.array.attrs.
12161 (quals_from_declspecs): New.
12162 * c-decl.c (quals_from_declspecs): New.
12163 (shadow_tag_warned): Give more specific message for useless type
12164 qualifiers.
12165 (build_array_declarator, set_array_declarator_inner,
12166 grokdeclarator, make_pointer_declarator, build_null_declspecs,
12167 declspecs_add_qual): Update for changed structures.
12168
12169 2004-09-14 Jeff Law <law@redhat.com>
12170
12171 * tree-ssa-dom.c (stmts_to_rescan): Move from a block-local
12172 to a global varray.
12173 (tree_ssa_dominator_optimize): Allocate stmts_to_rescan.
12174 (dom_opt_initialize_block_local_data): No longer test state
12175 of stmts_to_rescan.
12176 (dom_opt_finalize_block): Update due to change in scope of
12177 stmts_to_rescan.
12178 (optimize_stmt): Similarly.
12179
12180 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
12181
12182 * cgraph.h, cgraphunit.c, fold-const.c, lambda-mat.c,
12183 lambda.h, profile.c, tree-optimize.c, tree-sra.c, vec.h: Fix
12184 comment typos. Follow spelling conventions.
12185
12186 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
12187
12188 * config/darwin-c.c, config/alpha/alpha.c, config/i386/i386.c,
12189 config/i386/predicates.md, config/sparc/sparc.c: Follow
12190 spelling conventions.
12191
12192 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12193 Steven Bosscher <stevenb@suse.de>
12194
12195 * Makefile.in (loop-unroll.o): Add HASHTAB_H and RECOG_H dependency.
12196 * basic-block.h (struct reorder_block_def): Add copy_number field.
12197 * cfgloop.h (biv_p): Declare.
12198 * cfgloopmanip.c (duplicate_loop_to_header_edge): Set copy_number.
12199 * common.opt (fsplit-ivs-in-unroller): New flag.
12200 * loop-iv.c (biv_p): New function.
12201 * loop-unroll.c: Include hashtab.h and recog.h.
12202 (struct iv_to_split, struct split_ivs_info): New types.
12203 (analyze_ivs_to_split, si_info_start_duplication, split_ivs_in_copies,
12204 free_si_info, si_info_hash, si_info_eq, analyze_iv_to_split_insn,
12205 determine_split_iv_delta, get_ivts_expr, allocate_basic_variable,
12206 insert_base_initialization, split_iv): New functions.
12207 (peel_loop_completely, unroll_loop_constant_iterations,
12208 unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
12209 Use them.
12210 * doc/invoke.texi (-fsplit-ivs-in-unroller): Document.
12211
12212 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12213
12214 * tree-cfg.c (thread_jumps): Update dominators correctly in
12215 case destination of threaded edge dominates its source.
12216
12217 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12218
12219 * unroll.c: Removed.
12220 * loop.h: Removed.
12221 * Makefile.in (LOOP_H, unroll.o): Removed.
12222 (toplev.o, passes.o, stmt.o, integrate.o, loop.o): Remove LOOP_H
12223 dependency.
12224 * alias.c (init_alias_analysis): Remove flag_old_unroll_loops
12225 reference.
12226 * cfgloop.h (LOOP_PREFETCH, loop_optimize): Moved from loop.h.
12227 * common.opt (fold-unroll-loops, fold-unroll-all-loops): Removed.
12228 * loop.c: Do not include loop.h.
12229 (LOOP_INFO, LOOP_MOVABLES, LOOP_REGS, LOOP_IVS, INSN_LUID,
12230 REGNO_FIRST_LUID, REGNO_LAST_LUID, enum g_types, struct induction,
12231 struct iv_class, enum iv_mode, struct iv, REG_IV_TYPE, REG_IV_INFO,
12232 REG_IV_CLASS, struct loop_ivs, struct loop_mem_info, struct loop_reg,
12233 struct loop_regs, struct loop_movables, struct loop_info): Moved
12234 from loop.h.
12235 (back_branch_in_range_p, fold_rtx_mult_add, biv_total_increment,
12236 reg_dead_after_loop, final_biv_value, loop_find_equiv_value,
12237 find_common_reg_term, loop_iterations, final_giv_value): Moved
12238 from unroll.c.
12239 (uid_luid, uid_loop, max_uid_for_loop, max_reg_before_loop,
12240 loop_dump_stream, for_each_insn_in_loop, express_from,
12241 extend_value_for_giv, loop_iv_add_mult_emit_before,
12242 loop_iv_add_mult_sink, loop_iv_add_mult_hoist,
12243 loop_insn_first_p, get_condition_for_loop,
12244 loop_insn_emit_before, loop_insn_hoist,
12245 loop_insn_sink): Made static.
12246 (loop_invariant_p): Made static. Removed flag_old_unroll_loops
12247 reference.
12248 (strength_reduce): Do not call unroller.
12249 (record_giv): Do not initialize unrolled field.
12250 (prescan_loop): Do not set loop_info->preconditioned.
12251 * passes.c: Do not include loop.h.
12252 (rest_of_handle_loop_optimize): Do not call unroller.
12253 * predict.c: Do not include loop.h.
12254 * rtl.h (NOTE_PRECONDITIONED): Removed.
12255 * stmt.c: Do not include loop.h.
12256 * toplev.c: Do not include loop.h.
12257 (process_options): Do not handle flag_old_unroll_loops.
12258
12259 * doc/invoke.texi (fold-unroll-loops, fold-unroll-all-loops):
12260 Documentation removed.
12261 * doc/passes.texi (unroll.c, loop.h): Documentation removed.
12262
12263 2004-09-14 Nathan Sidwell <nathan@codesourcery.com>
12264
12265 * Makefile.in (STAGE1_CHECKING): New variable.
12266 (stage1_build): Use it.
12267 * tree-ssa.c (verify_ssa): Preserve state of dominance
12268 information.
12269
12270 2004-09-14 Uros Bizjak <uros@kss-loka.si>
12271
12272 * config/i386/i386.c (output_fp_compare): Add generation
12273 of ftst instruction.
12274 * config/i386/i386.md (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf):
12275 Use output_fp_compare () function.
12276 (cmpfp_i, *cmpfp_i_sse, *cmpfp_i_sse_only): Fix insn constraint.
12277 (fix_truncdi_memory): Remove operands[5] copy.
12278
12279 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
12280
12281 * config/m32r/m32r.md, config/m68k/m68kelf.h,
12282 config/mcore/mcore.md, config/rs6000/linux64.h,
12283 config/rs6000/rs6000.c, config/sparc/sparc.c: Fix comment
12284 typos.
12285
12286 2004-09-13 James E Wilson <wilson@specifixinc.com>
12287
12288 * Makefile.in (GEN_PROTOS_OBJS): Add $(BUILD_ERRORS).
12289 * gen-protos.c: Include errors.h.
12290 (progname): Delete.
12291
12292 2004-09-14 Jan Hubicka <jh@suse.cz>
12293
12294 * Makefile.in (predict.o): Depend on tree-scalar-evolution.h
12295 * predict.c: Include tree-scalar-evolution.h and cfgloop.h
12296 (predict_loops): Use number_of_iterations_exit to predict
12297 number of iterations on trees.
12298
12299 2004-09-13 Dale Johannesen <dalej@apple.com>
12300
12301 PR 17408
12302 PR 17409
12303 * c-decl.c (start_decl): Repair TREE_STATIC for initialized
12304 objects declared extern.
12305
12306 2004-09-14 Paul Brook <paul@codesourcery.com>
12307
12308 * config/arm/arm.c (arm_expand_prologue): Make args_to_push a
12309 HOST_WIDE_INT.
12310
12311 2004-09-13 Daniel Jacobowitz <dan@debian.org>
12312
12313 * fold-const.c (fold_checksum_tree): Ignore TYPE_CACHED_VALUES.
12314 Only use TYPE_BINFO for aggregates.
12315
12316 2004-09-13 Daniel Jacobowitz <dan@debian.org>
12317
12318 * expmed.c (synth_mult): Initialize latency. Check cost before
12319 checking ops count.
12320
12321 2004-09-13 Kenneth Zadeck <Kenneth.Zadeck@NaturalBridge.com>
12322
12323 * tree-ssa-operands.c (get_call_expr_operands): Added parm to
12324 add_call_clobber_ops and add_call_read_ops.
12325 (add_call_clobber_ops, add_call_read_ops): Added code to reduce
12326 the number of vdefs and vuses inserted based on analysis of global
12327 variables across calls. * tree-dfa.c (find_referenced_vars):
12328 Needed to reset static var maps before each function is compiled.
12329 * cgraphunit.c:
12330 (static_vars_to_consider_by_tree,static_vars_to_consider_by_uid,
12331 static_vars_info,functions_to_static_vars_info,module_statics_escape,
12332 all_module_statics,searchc_env,dfs_info): New fields to support
12333 analysis of static global variables.
12334 (print_order, convert_UIDs_in_bitmap, new_static_vars_info,
12335 cgraph_reset_static_var_maps, get_global_static_vars_info,
12336 get_global_statics_not_read, get_global_statics_not_written,
12337 searchc, cgraph_reduced_inorder, has_proper_scope_for_analysis,
12338 check_rhs_var, check_lhs_var, get_asm_expr_operands,
12339 process_call_for_static_vars, scan_for_static_refs,
12340 cgraph_characterize_statics_local, cgraph_get_static_name_by_uid,
12341 clear_static_vars_maps, cgraph_propagate_bits,
12342 cgraph_characterize_statics): New. Functions to support analysis
12343 of static global variables.
12344 (cgraph_mark_local_and_external_functions): Renamed from:
12345 (cgraph_mark_local_functions)
12346 (cgraph_expand_all_functions): Remove call to
12347 cgraph_mark_local_and_external_functions.
12348 (cgraph_optimize): Added driver to analyze static variables whose
12349 scope is within the compilation unit. * cgraph.h (struct
12350 cgraph_local_info, GTY): Added statics_read, statics_written,
12351 local, calls_read_all, calls_write_all, for_functions_valid.
12352 (struct cgraph_node): Added next_cycle. * cgraph.c
12353 (dump_cgraph_node): Added print routines for new fields. *
12354 makefile.in: macroized cgraph.h, added cgraphunit.c to the ggc
12355 list.
12356
12357 2004-09-13 Joseph S. Myers <jsm@polyomino.org.uk>
12358
12359 * c-decl.c (grokdeclarator): Correct comments about where storage
12360 class specifiers are rejected by grammar and add corresponding
12361 asserts. Diagnose typedefs and parameters declared inline.
12362 Change warning for inline main to a pedwarn. Only diagnose inline
12363 main if hosted.
12364 (declspecs_add_scspec): Allow duplicate "inline".
12365
12366 2004-09-13 Steve Ellcey <sje@cup.hp.com>
12367
12368 * config/ia64/ia64.c (ia64_scalar_mode_supported_p): New.
12369 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
12370
12371 2004-09-13 Richard Henderson <rth@redhat.com>
12372
12373 PR 17436
12374 * tree.h (TYPE_CONTAINS_PLACEHOLDER_INTERNAL): New.
12375 (tree_type): Replace spare with contains_placeholder_bits.
12376 (type_contains_placeholder_1): Rename from type_contains_placeholder_p,
12377 make static. Remove seen_types list.
12378 (type_contains_placeholder_p): New.
12379
12380 2004-09-13 James E Wilson <wilson@specifixinc.com>
12381
12382 * config/mips/mips.c (CODE_FOR_mips_sqrt_ps): New.
12383 (sb1_bdesc, bdesc_map, bdesc_arrays): New.
12384 (mips_expand_builtin): Add SB-1 support. Use bdesc_map and
12385 bdesc_arrays instead of mips_bdesc.
12386 (mips_init_builtins): Likewise.
12387 * config/mips/mips.h (TARGET_SB1): New.
12388 (HAVE_SQRT_P): Delete.
12389 * config/mips/mips.md (divide_condition): Support V2SF.
12390 (sqrt_condition, recip_condition): New.
12391 (div<mode>3): Use ANYF instead of SCALARF.
12392 (*div<mode>3): Use ANYF instead of SCALARF. Use UNITMODE instead of
12393 MODE.
12394 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Use recip_condition
12395 instead of ISA_HAS_FP4. Use ANYF instead of SCALARF. Use UNITMODE
12396 instead of MODE.
12397 (sqrt<mode>2): Use sqrt_condition instead of HAVE_SQRT_P. Use ANYF
12398 instead of SCALARF. Use UNITMODE instead of MODE.
12399
12400 2004-09-13 Zack Weinberg <zack@codesourcery.com>
12401
12402 * config.in: Regenerate after removal of libbanshee.
12403
12404 2004-09-13 Andrew MacLeod <amacleod@redhat.com>
12405
12406 PR tree-optimization/17400
12407 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12408 coalesce partitions when one occurs in an abnormal PHI.
12409
12410 2004-09-13 Andrew Pinski <apinski@apple.com>
12411
12412 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Change variable size's
12413 name to _new_size.
12414
12415 2004-09-13 Richard Henderson <rth@redhat.com>
12416
12417 PR inline-asm/6806
12418 * cselib.c (cselib_invalidate_rtx): Export. Remove unused args.
12419 (cselib_invalidate_rtx_note_stores): New.
12420 (cselib_record_sets, cselib_process_insn): Update to match.
12421 * cselib.h (cselib_invalidate_rtx): Declare.
12422 * postreload.c (reload_cse_simplify): Invalidate asm clobbers.
12423
12424 2004-09-13 Richard Henderson <rth@redhat.com>
12425
12426 PR tree-opt/10528
12427 * tree-inline.c (copy_body_r): Recompute bits for ADDR_EXPR,
12428 after copying its argument.
12429
12430 2004-09-13 Joseph S. Myers <jsm@polyomino.org.uk>
12431
12432 * c-common.c, c-decl.c, c-lex.c, c-objc-common.c, c-opts.c,
12433 c-parse.in, c-pragma.c, c-typeck.c: Use %q, %< and %> for quoting
12434 in diagnostics. Use %' for English apostrophes.
12435 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Define.
12436 (pedwarn_c90, pedwarn_c99): Use it.
12437 * c-decl.c (lookup_label): Quote label name in diagnostic.
12438 * c-parse.in (yyprint): Use ' instead of ` for left quote.
12439 * c-typeck.c (warn_for_assignment): Likewise.
12440
12441 2004-09-13 Jan Hubicka <jh@suse.cz>
12442
12443 * i386.c (x86_schedule): New global variable.
12444 (override_options): Disable scheduling when not supported.
12445 * i386.h (x86_schedule): Declare.
12446 (TARGET_SCHEDULE): New macro.
12447
12448 2004-09-12 Richard Henderson <rth@redhat.com>
12449
12450 PR c++/16254
12451 * fold-const.c (fold) <case CLEANUP_POINT_EXPR>: Remove.
12452 * tree.c, tree.h (has_cleanups): Remove.
12453
12454 2004-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12455
12456 * tree-ssa-loop-manip.c (split_loop_exit_edge): Handle non-ssaname
12457 arguments of the phi nodes correctly.
12458
12459 2004-09-12 Jan Hubicka <jh@suse.cz>
12460
12461 * ggc-common.c (cmp_statistics): Fix sorting.
12462
12463 2004-09-12 David Edelsohn <edelsohn@gnu.org>
12464
12465 PR target/16795
12466 * expmed.c (expand_divmod): If cheap power of 2 divide is
12467 available, use it for negative constant as well.
12468
12469 2004-09-12 Andrew Pinski <apinski@apple.com>
12470
12471 * darwin.h (ASM_OUTPUT_COMMON): Make sure we do not have a
12472 size of 0.
12473
12474 * tree-chrec.c (initialize_scalar_evolutions_analyzer): Remove.
12475
12476 2004-09-12 Richard Henderson <rth@redhat.com>
12477
12478 * config/i386/i386.c (ix86_split_ashldi): Special case op1 as one
12479 or minus one.
12480 (ix86_split_ashrdi, ix86_split_lshrdi): Clean up conditions for
12481 post-reload, and scratch NULL.
12482 * config/i386/i386.md (testqi_1): Use FLAGS_REG name.
12483 (x86_shift_adj_2): Use ix86_expand_clear.
12484 (ashldi3): Remove CMOVE expansion difference.
12485 (ashldi3_1): Remove.
12486 (*ashldi3_1): Rename from *ashldi3_2. Use reg_or_pm1_operand and
12487 add constraints for immediates. New peephole for split-with-temp.
12488 Run splitter after peep2 pass.
12489 (ashrdi3, ashrdi3_1, ashrdi3_2): Similarly.
12490 (lshrdi3, lshrdi3_1, lshrdi3_2): Similarly.
12491 (setcc_2): Rename with *.
12492 * config/i386/predicates.md (reg_or_pm1_operand): New.
12493 (ashldi_input_operand): New.
12494
12495 2004-09-12 Richard Henderson <rth@redhat.com
12496
12497 * print-rtl.c (print_decl_name): New.
12498 (print_mem_expr): Use it.
12499
12500 2004-09-12 Richard Henderson <rth@redhat.com
12501
12502 PR 17186, part deux
12503 * except.c (sjlj_emit_function_exit): Fix logic locating
12504 sjlj_exit_after in final block.
12505
12506 2004-09-12 Toon Moene <toon@moene.indiv.nluug.nl>
12507
12508 * common.opt: Remove flags -fmove-all-movables and
12509 -freduce-all-givs.
12510 * loop-invariant.c (find_invariants_to_move):
12511 Remove all uses of flag_move_all_movables.
12512 * loop.c (move_movables): Remove all uses of
12513 flag_move_all_movables.
12514 (strength_reduce): Remove all uses of
12515 flag_reduce_all_givs.
12516 * doc/invoke.texi: Remove documentation of flags
12517 -fremove-all-movables and -freduce-all-givs.
12518
12519 2004-09-11 Roger Sayle <roger@eyesopen.com>
12520
12521 PR middle-end/17411
12522 * tree-sra.c (generate_element_zero): Revert recent build_int_cst
12523 change. elt->type may be a floating point type, so use fold_convert.
12524
12525 2004-09-11 Geoffrey Keating <geoffk@apple.com>
12526
12527 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Mark
12528 the thing referenced as used, not the stub itself.
12529
12530 2004-09-11 Joseph S. Myers <jsm@polyomino.org.uk>
12531
12532 * c-tree.h (enum c_storage_class): New.
12533 (struct c_declspecs): Add storage_class, inline_p and thread_p.
12534 * c-decl.c (shadow_tag_warned): Give errors for "inline" in empty
12535 declarations and "auto" or "register" in file scope empty
12536 declarations. Give more specific warnings for other cases of
12537 storage class specifiers in empty declarations.
12538 (grokdeclarator): Update for new structures. Don't check for
12539 multiple storage classes. Diagnose file-scope "register" if
12540 pedantic.
12541 (build_null_declspecs): Update.
12542 (declspecs_add_scspec): Update. Diagnose multiple storage class
12543 specifiers and invalid uses of "__thread".
12544
12545 2004-09-11 Zack Weinberg <zack@codesourcery.com>
12546
12547 * tree.c (tree_code_size): New function, bulk of code from tree_size.
12548 (tree_size, make_node): Use it.
12549 * tree-ssa-pre.c (init_pre): Use it.
12550 * tree.h: Prototype it.
12551
12552 2004-09-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12553
12554 * tree-cfg.c (set_bb_for_stmt): Use PHI_BB.
12555 * tree-dfa.c (compute_immediate_uses, add_immediate_use,
12556 redirect_immediate_use): Use PHI_DF.
12557 * tree-flow-inline.h (stmt_ann): Abort on phi nodes.
12558 (bb_for_stmt): Use PHI_BB.
12559 (get_immediate_uses): Use PHI_DF.
12560 * tree-ssa-dse.c (max_stmt_uid): New variable.
12561 (get_stmt_uid): New function.
12562 (dse_optimize_stmt, dse_record_phis, tree_ssa_dse): Do not use phi
12563 node annotations.
12564 * tree-ssa-loop-im.c (LIM_DATA): Do not use phi statement annotations.
12565 (max_uid): Renamed to max_stmt_uid.
12566 (get_stmt_uid): New function.
12567 (maybe_queue_var, single_reachable_address, determine_lsm): Do not use
12568 phi node annotations.
12569 * tree-ssa.c (replace_immediate_uses): Do not use phi node annotations.
12570 * tree.h (PHI_BB, PHI_DF): New accessor functions.
12571 (struct tree_phi_node): Add bb and df fields.
12572
12573 2004-09-11 Richard Henderson <rth@redhat.com>
12574
12575 PR middle-end/17416
12576 * cfgexpand.c (expand_used_vars_for_block): Fix off-by-one bug
12577 in conflict loop.
12578
12579 2004-09-11 Jan Hubicka <jh@suse.cz>
12580
12581 * i386.h (MODE_NEEDED): Calls need UNINITIALIZED mode; add comment.
12582 (EMIT_MODE_SET): UNINITIALIZED mode needs no set.
12583 * i386.md (i387_cw): Add 'uninitialized' mode.
12584
12585 * profile.c (BB_TO_GCOV_INDEX): move more to the front.
12586 (output_location): Break out from ....
12587 (branch_prob): ... here; handle gcov output on trees.
12588 * toplev.c (process_options): No longer be sorry about coverage for
12589 trees.
12590
12591 2004-09-11 Steven Bosscher <stevenb@suse.de>
12592
12593 PR c++/17412
12594 * fold-const.c (fold): Do not try to fold the operand of a
12595 CLEANUP_POINT_EXPR if that operand does itself not have any
12596 operands.
12597
12598 PR middle-end/17417
12599 * langhooks.c (lhd_decl_printable_name): Make sure that this
12600 function is called with is a decl node that has an identifier.
12601 * tree-pretty-print.c (dump_function_name): New function to
12602 wrap PRINT_FUNCTION_NAME and dump_decl_name.
12603 (print_call_name): Use it.
12604
12605 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
12606
12607 * ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE,
12608 "config.h" if not.
12609
12610 2004-09-11 Jakub Jelinek <jakub@redhat.com>
12611
12612 * tree-ssa-alias.c (collect_points_to_info_r): Handle
12613 pointing to PTR + OFFSET as PTR, not as pointing to PTR or pointing
12614 to OFFSET.
12615
12616 2004-09-11 Richard Henderson <rth@redhat.com>
12617
12618 * expr.c (expand_expr_addr_expr_1) Rename from expand_expr_addr_expr.
12619 (expand_expr_addr_expr): New function. Take ADDR_EXPR instead of the
12620 operand of the ADDR_EXPR.
12621 (expand_expr_real_1): Update to match.
12622
12623 2004-09-11 David Edelsohn <edelsohn@gnu.org>
12624
12625 PR target/17277
12626 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to
12627 choose 64-bit version.
12628
12629 2004-09-11 Richard Henderson <rth@redhat.com>
12630
12631 PR c/17396
12632 * c-typeck.c (build_unary_op): Add legacy offsetof hack.
12633
12634 2004-09-11 Kazu Hirata <kazu@cs.umass.edu>
12635
12636 * doc/cfg.texi, doc/hostconfig.texi, doc/install.texi,
12637 doc/invoke.texi, doc/md.texi, doc/tm.texi, doc/tree-ssa.texi:
12638 Insert @: after i.e. or e.g.
12639
12640 2004-09-10 Geoffrey Keating <geoffk@apple.com>
12641
12642 * tree-pretty-print.c (dump_decl_name): Print unnamed decls as
12643 D.xxx rather than <Dxxx>.
12644
12645 2004-09-10 Adam Nemet <anemet@lnxw.com>
12646
12647 * configure.ac (AC_MSG_CHECKING(what linker to use)):
12648 in_tree_ld_is_elf should be true for LynxOS.
12649 * configure: Regenerate.
12650
12651 2004-09-10 Adam Nemet <anemet@lnxw.com>
12652
12653 * Makefile.in (all.cross): Add srcextra.
12654
12655 2004-09-10 Roger Sayle <roger@eyesopen.com>
12656
12657 PR middle-end/17024
12658 * fold-const.c (fold_cond_expr_with_comparison): Handle unordered
12659 floating point comparison operators. Change aborts to gcc_asserts.
12660
12661 2004-09-10 Geoffrey Keating <geoffk@apple.com>
12662
12663 * final.c (output_asm_insn): Correct problem with -fverbose-asm.
12664
12665 2004-09-10 James E Wilson <wilson@specifixinc.com>
12666
12667 * Makefile.in (LIBGCC_DEPS): Delete duplicate stmp-int-hdrs reference.
12668 (stmp-fixproto): Change stmp-int-headers to stmp-int-hdrs in comment.
12669
12670 * convert.c (convert_to_vector): Replace recursive call with
12671 error_mark_node.
12672
12673 * emit-rtl.c (gen_const_vector): Renamed from gen_const_vector_0.
12674 Add integer argument named constant. Use const_tiny_rtx instead of
12675 CONST0_RTX.
12676 (gen_rtx_CONST_VECTOR): Rewrite to handle checks for both CONST0_RTX
12677 and CONST1_RTX.
12678 (init_emit_once): Fix users of gen_const_vector. Set CONST1_RTX for
12679 vector types.
12680 * expr.c (const_vector_from_tree): Call gen_rtx_CONST_VECTOR instead
12681 of gen_rtx_raw_CONST_VECTOR.
12682
12683 2004-09-10 Eric Christopher <echristo@redhat.com>
12684
12685 PR c/16046
12686 * c-parse.in (attribute): Add NULL_TREE for error case
12687 for error recovery.
12688
12689 2004-09-10 Zack Weinberg <zack@codesourcery.com>
12690
12691 * c-common.h (struct c_fileinfo): Comment moved here from cp-tree.h.
12692 (extract_interface_info): Delete prototype.
12693 * c-decl.c (extract_interface_info): Delete stub.
12694 * c-lex.c (get_fileinfo): Initialize file_info_tree here, if
12695 it's not already been done ...
12696 (init_c_lex): ... not here.
12697 (fe_file_change): Don't call extract_interface_info.
12698
12699 2004-09-11 Joseph S. Myers <jsm@polyomino.org.uk>
12700
12701 * c-tree.h (struct c_declspecs): Remove typedef_decl. Add
12702 typedef_p and typedef_signed_p.
12703 * c-decl.c (shadow_tag_warned): Check typedef_p, not typedef_decl.
12704 (grokdeclarator): Don't use typedef_decl for warn_deprecated_use.
12705 Check typedef_p and typedef_signed_p, not typedef_decl.
12706 (grokfield): Check typedef_p, not typedef_decl.
12707 (build_null_declspecs): Initialize typedef_p and typedef_signed_p,
12708 not typedef_decl.
12709 (declspecs_add_type): Set typedef_p and typedef_signed_p, not
12710 typedef_decl.
12711
12712 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
12713
12714 * doc/tm.texi, doc/tree-ssa.texi: Fix typos.
12715
12716 2004-09-10 Geoffrey Keating <geoffk@apple.com>
12717
12718 * gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless
12719 temporary variables.
12720
12721 * dbxout.c (dbxout_block): Update for
12722 current_function_func_begin_label a string.
12723 * dwarf2out.c (dwarf2out_begin_prologue): Likewise.
12724 * except.c (dw2_output_call_site_table): Likewise.
12725 * toplev.c (current_function_func_begin_label): Likewise.
12726 * tree.h (current_function_func_begin_label): Likewise.
12727 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Likewise.
12728
12729 * final.c (output_asm_insn): Use strtoul instead of atoi, save a
12730 loop.
12731
12732 * config/darwin.c: Include target.h.
12733 (struct machopic_indirection): Make ptr_name a string.
12734 (machopic_indirection_hash): Update for ptr_name a string.
12735 (machopic_indirection_eq): Likewise.
12736 (machopic_indirection_name): Likewise.
12737 (machopic_output_indirection): Likewise.
12738 (machopic_validate_stub_or_non_lazy_ptr): Update for ptr_name a
12739 string. Don't expect stub names to be in the identifier hash table.
12740 Do call strip_name_encoding before looking up entry in ID hash table.
12741 * config/t-darwin (darwin.o): Add target.h to dependencies.
12742
12743 * gcc/config/rs6000/rs6000.c (print_operand): Use fputs instead
12744 of fprintf for register names.
12745
12746 * output.h (unlikely_section_label): Delete declaration.
12747 (unlikely_text_section_name): Likewise.
12748 * varasm.c (unlikely_section_label_printed): Make static.
12749 (unlikely_section_label): Likewise.
12750 (unlikely_text_section_name): Likewise.
12751 (assemble_start_function): Use reconcat.
12752
12753 * rtl.def (REG): Add comment to describe third field.
12754
12755 2004-09-10 Andrew Pinski <apinski@apple.com>
12756
12757 * config/darwin.c (machopic_mcount_stub_name): Call
12758 machopic_indirection_name instead of making the string
12759 ourselves.
12760
12761 2004-09-10 Diego Novillo <dnovillo@redhat.com>
12762
12763 Revert
12764
12765 2004-09-08 Jie Zhang <zhangjie@magima.com.cn>
12766
12767 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
12768 memory tag is call clobbered, so are its aliases.
12769 (group_aliases): When two memory tags being grouped, if one is
12770 call clobbered, so are the other and its aliases.
12771 (add_may_alias): Remove call-clobbering stuff.
12772 (replace_may_alias): Likewise.
12773 (merge_pointed_to_info): Merge pt_global_mem
12774
12775 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
12776
12777 * bb-reorder.c, c-common.c, c-incpath.c, c-typeck.c,
12778 genrecog.c, lambda-code.c, mips-tdump.c, mips-tfile.c,
12779 passes.c, tree-data-ref.c, tree-data-ref.h, tree-mudflap.c,
12780 tree-scalar-evolution.c, tree-ssa-copyrename.c,
12781 tree-ssa-live.c, tree-ssa-live.h: Fix comment typos.
12782
12783 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
12784
12785 * config/frv/frv.md (UNSPEC_MASACCS, UNSPEC_MDASACCS): New constants.
12786 (maddaccs, msubaccs, *maddacc): Turn operand 0 into a single ACC/ACCG
12787 pair. Remove match_dup from inputs. Remove masaccs handling.
12788 (mdaddaccs, mdsubaccs, *mdaddacc): Likewise a dual ACC/ACCG pair.
12789 (masaccs, mdasaccs): Turn into define_insns.
12790
12791 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
12792
12793 * tree-tailcall.c (process_assignment): Only do accumulator transforms
12794 for floating-point types if flag_unsafe_math_optimizations.
12795
12796 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
12797
12798 * config/darwin.c, config/alpha/alpha.h, config/arm/arm.c,
12799 config/arm/arm.h, config/arm/arm.md, config/arm/bpabi.h,
12800 config/arm/predicates.md, config/frv/frv.c, config/frv/frv.md,
12801 config/h8300/h8300.md, config/i386/gmm_malloc.h,
12802 config/ia64/ia64.md, config/ip2k/libgcc.S,
12803 config/mips/mips-ps-3d.md, config/mips/mips.c,
12804 config/rs6000/rs6000.c, config/s390/s390.c,
12805 config/sh/symbian.c: Fix comment typos.
12806
12807 2004-09-10 Andreas Krebbel <krebbel1@de.ibm.com>
12808
12809 * config/s390/s390.c (s390_emit_prologue): Added missing
12810 "{}" brackets.
12811
12812 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
12813
12814 * doc/extend.texi, doc/invoke.texi, doc/passes.texi: Fix
12815 typos. Follow spelling conventions.
12816
12817 2004-09-10 Joseph S. Myers <jsm@polyomino.org.uk>
12818
12819 * toplev.c (warn_deprecated_use): Correct logic for saying "type"
12820 in diagnostic. Don't dereference NULL TYPE_NAME.
12821
12822 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
12823
12824 * c-common.c, c-pch.c, defaults.h, lambda-code.c, passes.c,
12825 tree-data-ref.c, tree-flow.h, tree-ssa-operands.c,
12826 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
12827 value-prof.c: Fix comment typos. Follow spelling conventions.
12828
12829 2004-09-10 Jan Hubicka <jh@suse.cz>
12830
12831 * tree-ssa-dce.c (remove_dead_stmt): Update profile.
12832 * tree-split_edge.c (tree_split_edge): Likewise.
12833 (thread_jumps): Likewise.
12834
12835 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
12836
12837 * cgraphunit.c, predict.c, tree-ssa-loop-ivopts.c: Fix comment
12838 typos.
12839
12840 2004-09-10 Paolo Bonzini <bonzini@gnu.org>
12841
12842 * cgraph.h (cgraph_dump_file): Do not declare.
12843 * cgraphunit.c (cgraph_dump_file): Declare as static.
12844 (init_cgraph): New.
12845 * toplev.c (cgraph_dump_file): Do not declare.
12846 (compile_file): Call init_cgraph.
12847 * tree-dump.c (dump_files): Add IPA dump file, remove
12848 XML dump of call graph.
12849 (get_dump_file_name): Support IPA dump file naming scheme.
12850 * tree.h (enum tree_dump_index): Add IPA dump file, remove
12851 XML dump of call graph.
12852 * doc/invoke.texi (Debugging Options): Document the new options.
12853
12854 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
12855
12856 * doc/extend.texi: Document the FR-V built-in functions.
12857
12858 2004-09-09 James E Wilson <wilson@specifixinc.com>
12859
12860 * doc/sourcebuild.texi: Delete libbanshee reference.
12861
12862 2004-09-10 Kelley Cook <kcook@gcc.gnu.org>
12863
12864 * Makefile.in (s-gtype): Add $(build_exeext) to gengtype command.
12865
12866 2004-09-09 James E Wilson <wilson@specifixinc.com>
12867
12868 * c-typeck.c (convert_for_assignment): Check that rhs has VECTOR_TYPE
12869 before calling vector_types_convertible_p.
12870 (digest_init): Check that inside_init has VECTOR_TYPE before calling
12871 vector_types_convertible_p. Don't give another error if
12872 convert_for_assignment returns error_mark_node.
12873
12874 2004-09-09 Roger Sayle <roger@eyesopen.com>
12875
12876 PR middle-end/17055
12877 * fold-const.c (build_zero_vector): New function to construct a
12878 vector (either floating point or integer) of zeros.
12879 (fold_convert): Internally, enable conversions of integer zero
12880 to arbitrary vector types, using the new build_zero_vector.
12881
12882 2004-09-09 Roger Sayle <roger@eyesopen.com>
12883
12884 * config/i386/i386.c (ix86_expand_ashlsi3_const): New function to
12885 expand a left shift by an immediate constant as either an ashl or
12886 a sequence of additions.
12887 (ix86_split_ashldi): Use new ix86_expand_ashlsi3_const function
12888 instead of calling gen_ashlsi3 with a constant directly.
12889
12890 2004-09-09 Roger Sayle <roger@eyesopen.com>
12891
12892 * config/i386/i386.c (ix86_split_long_move): When optimizing for
12893 size, and the low and high parts of a DImode constant are equal,
12894 copy one register to another instead of loading the same immediate
12895 value twice.
12896
12897 2004-09-09 Richard Henderson <rth@redhat.com>
12898
12899 PR middle-end/17367
12900 * function.c (assign_parm_setup_block): Only put PARALLELs into
12901 a register if use_register_for_decl.
12902
12903 2004-09-09 Eric Christopher <echristo@redhat.com>
12904
12905 * ra-colorize.c (reset_lists): Move variable declaration inside
12906 ENABLE_CHECKING to avoid unused variable warnings when
12907 not --enable-checking.
12908 (check_colors): Ditto.
12909
12910 2004-09-09 Mike Stump <mrs@apple.com>
12911
12912 * version.c (version_string): Bump to 4.0.0.
12913 * doc/include/gcc-common.texi (version-GCC): Likewise.
12914
12915 2004-09-10 Jakub Jelinek <jakub@redhat.com>
12916
12917 * doc/extend.texi (nothrow attribute): The attribute is not
12918 implemented in 3.2 and earlier.
12919
12920 2004-09-09 Steve Ellcey <sje@cup.hp.com>
12921
12922 * genrecog.c (compute_predicate_codes): Use op0_codes
12923 instead of codes.
12924
12925 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
12926
12927 * ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET
12928 implementation changes.
12929
12930 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
12931
12932 * combine.c (try_combine): When swapping i2 and i3, newi2pat may be
12933 a PARALLEL instead of a SET due to added clobbers.
12934
12935 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
12936
12937 * reload.c (find_reloads_address): Pass correct operand to
12938 maybe_memory_address_p.
12939
12940 2004-09-09 Daniel Berlin <dberlin@dberlin.org>
12941
12942 * Makefile.in: Remove libbanshee, tree-alias-*.
12943 Remove tree-alias-common.h dependencies.
12944 * common.opt: Remove -ftree-points-to.
12945 * configure.ac: Remove libbanshee.
12946 * flags.h: Remove pta_type, flag_tree_points_to.
12947 * gengtype.c (open_base_files): Remove tree-alias-type.h.
12948 * opts.c (OPT_ftree_points_to): Remove.
12949 * toplev.c: Remove tree-alias-common.h, flag_tree_points_to.
12950 * tree-dfa.c: Remove tree-alias-common.h
12951 * tree-into-ssa.c: Ditto.
12952 * tree-outof-ssa.c: Ditto.
12953 * tree-ssa-copyrename.c: Ditto.
12954 * tree-ssa-live.c: Ditto.
12955 * tree-optimize.c: Ditto.
12956 * tree-ssa.c: Ditto.
12957 Remove pass_build_pta, pass_del_pta.
12958 * tree-pass.h: Ditto.
12959 * tree-ssa-alias.c: Remove tree-alias-common.h.
12960 (struct alias_stats_d): Remove pta_queries, pta_resolved.
12961 (pass_may_alias): Remove PROP_pta requirement.
12962 (may_alias_p): Remove pta_queries, pta_resolved, use of andersens.
12963 (get_tmt_for): Ditto.
12964 (dump_alias_stats): Ditto.
12965 * doc/passes.texi: Remove blurb about points-to analysis.
12966 * fortran/Make-lang.in: Remove tree-alias-*.o.
12967
12968 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
12969
12970 * genattrtab.c (write_insn_cases): New function, split out from
12971 write_attr_case. Correctly handle define_peepholes when printing
12972 the instruction name.
12973 (write_attr_case, write_const_num_delay_slots): Use write_insn_cases.
12974
12975 2004-09-09 Hans-Peter Nilsson <hp@axis.com>
12976
12977 PR target/17377
12978 * config/cris/cris-protos.h (cris_return_address_on_stack): Declare.
12979 * config/cris/cris.c (cris_return_address_on_stack): New function.
12980 * config/cris/cris.md ("return"): For location of return address,
12981 also check cris_return_address_on_stack.
12982
12983 2004-09-09 Diego Novillo <dnovillo@redhat.com>
12984
12985 * tree-outof-ssa.c (coalesce_abnormal_edges): Fix typo in
12986 calling phi_ssa_name_p.
12987
12988 2004-09-09 Richard Henderson <rth@redhat.com>
12989
12990 PR c/17322
12991 * c-typeck.c (valid_compound_expr_initializer): Use only
12992 initializer_constant_valid_p, and not TREE_CONSTANT.
12993 (digest_init): Likewise.
12994 (output_init_element): Likewise.
12995
12996 2004-09-09 Giovanni Bajo <giovannibajo@gcc.gnu.org>
12997
12998 * ra-build.c (copy_insn_p, remember_move, defuse_overlap_p_1,
12999 live_out_1, prune_hardregs_for_mode, init_one_web_common,
13000 reinit_one_web, add_subweb, add_subweb_2, init_web_parts,
13001 record_conflict, compare_and_free_webs, init_webs_defs_uses,
13002 parts_to_webs_1, parts_to_webs, reset_conflicts,
13003 check_conflict_numbers, remember_web_was_spilled, handle_asm_insn,
13004 ra_build_free): Use gcc_assert and gcc_unreachable instead of abort.
13005 * ra-colorize.c (push_list, put_web, reset_lists, put_web_at_end,
13006 put_move, remove_move, combine, select_spill, colorize_one_web,
13007 try_recolor_web, insert_coalesced_conflicts, check_colors,
13008 break_precolored_alias, restore_conflicts_from_coalesce,
13009 sort_and_combine_web_pairs, check_uncoalesced_moves): Likewise.
13010 * ra-rewrite.c (spill_coalescing, slots_overlap_p, emit_loads,
13011 reloads_to_loads, rewrite_program2, emit_colors): Likewise.
13012 * ra.c (first_hard_reg, create_insn_info, find_subweb, init_ra,
13013 check_df): Likewise.
13014 * real.c (do_add, do_multiply, do_divide, do_compare, do_fix_trunc,
13015 real_arithmetic, real_compare, real_exponent, real_ldexp,
13016 real_identical, real_to_integer, real_to_integer2, real_to_decimal,
13017 real_to_hexadecimal, real_from_integer, ten_to_ptwo, ten_to_mptwo,
13018 real_digit, real_nan, real_maxval, round_for_format, real_convert,
13019 real_to_target, real_from_target, real_hash, encode_ieee_single,
13020 encode_ieee_double, encode_ieee_extended, encode_ieee_quad,
13021 encode_vax_f, encode_vax_d, encode_vax_g, encode_i370_single,
13022 encode_i370_double, encode_c4x_single, encode_c4x_extended): Likewise.
13023 * recog.c (validate_change, validate_replace_rtx_1, asm_operand_ok,
13024 extract_insn, peep2_next_insn, peep2_reg_dead_p,
13025 peep2_find_free_register, peephole2_optimize, store_data_bypass_p,
13026 if_test_bypass_p): Likewise.
13027 * reg-stack.c (record_label_references, get_asm_operand_n_inputs,
13028 stack_result, remove_regno_note, get_hard_regnum, emit_pop_insn,
13029 emit_swap_insn, swap_to_top, move_for_stack_reg,
13030 subst_stack_regs_pat, subst_asm_stack_regs, change_stack,
13031 compensate_edge, convert_regs_1): Likewise.
13032 * regclass.c (init_reg_sets, init_reg_sets_1,
13033 memory_move_secondary_cost): Likewise.
13034 * regrename.c (note_sets, clear_dead_regs, scan_rtx_reg, scan_rtx):
13035 Likewise.
13036 * reload.c (push_secondary_reload, find_valid_class, push_reload,
13037 operands_match_p, decompose, immune_p, find_reloads,
13038 find_reloads_toplev, find_reloads_address_1, subst_reloads,
13039 copy_replacements, refers_to_regno_for_reload_p,
13040 reg_overlap_mentioned_for_reload_p): Likewise.
13041 * reload1.c (compute_use_by_pseudos, replace_pseudos_in, reload,
13042 count_pseudo, find_reg, eliminate_regs, eliminate_regs_in_insn,
13043 verify_initial_elim_offsets, finish_spills, clear_reload_reg_in_use,
13044 reload_reg_free_p, reload_reg_reaches_end_p, reloads_conflict,
13045 choose_reload_regs, merge_assigned_reloads, emit_input_reload_insns,
13046 do_output_reload, fixup_abnormal_edges): Likewise.
13047 * reorg.c (stop_search_p, emit_delay_sequence, get_jump_flags,
13048 fill_slots_from_thread, relax_delay_slots): Likewise.
13049 * resource.c (mark_referenced_resources, mark_set_resources):
13050 Likewise.
13051 * rtl.c (copy_rtx, rtx_equal_p): Likewise.
13052 * rtlanal.c (insn_dependent_p, reg_overlap_mentioned_p,
13053 dead_or_set_p, find_reg_fusage, remove_note, replace_rtx,
13054 subreg_lsb_1, subreg_regno_offset, subreg_offset_representable_p,
13055 find_first_parameter_load, can_hoist_insn_p, hoist_update_store,
13056 hoist_insn_after, hoist_insn_to_edge, nonzero_bits1): Likewise.
13057 * rtlhooks.c (gen_lowpart_general): Likewise.
13058 * sbitmap.c (sbitmap_difference): Likewise.
13059 * sched-deps.c (add_dependence, sched_analyze_1, sched_analyze_2,
13060 sched_analyze, add_forward_dependence): Likewise.
13061 * sched-ebb.c (fix_basic_block_boundaries, schedule_ebb): Likewise.
13062 * sched-rgn.c (debug_regions, compute_trg_info, schedule_region,
13063 schedule_insns): Likewise.
13064 * sched-vis.c (print_pattern): Likewise.
13065 * sdbout.c (sdbout_symbol, sdbout_toplevel_data): Likewise.
13066 * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
13067 simplify_const_relational_operation, simplify_ternary_operation,
13068 simplify_immed_subreg, simplify_subreg, simplify_gen_subreg):
13069 Likewise.
13070 * sreal.c (copy, sreal_sub, sreal_div): Likewise.
13071 * stmt.c (force_label_rtx, expand_goto, expand_asm_operands,
13072 resolve_operand_name_1, expand_return, expand_decl,
13073 expand_anon_union_decl, emit_case_bit_tests, expand_case): Likewise.
13074 * stor-layout.c (put_pending_size, smallest_mode_for_size,
13075 int_mode_for_mode, layout_decl, finish_builtin_struct, layout_type,
13076 set_sizetype, get_mode_bounds): Likewise.
13077
13078 2004-09-09 Zack Weinberg <zack@codesourcery.com>
13079
13080 * defaults.h (MULTIPLE_SYMBOL_SPACES): Provide default.
13081 * config/arm/pecoff.h, config/i386/beos-elf.h
13082 * config/i386/cygming.h, config/i386/i386-interix.h:
13083 Define MULTIPLE_SYMBOL_SPACES to 1, not nothing. Remove
13084 comment cloned from manual.
13085 * doc/tm.texi: Update description of MULTIPLE_SYMBOL_SPACES.
13086
13087 2004-09-09 Frank Ch. Eigler <fche@redhat.com>
13088
13089 * builtins.c (build_va_arg_indirect_ref): New function.
13090 (std_gimplify_va_arg_expr): Call it instead of mudflap check and
13091 build_fold_indirect_ref.
13092 * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
13093 * config/ia64/ia64.c (ia64_gimplify_va_arg): Ditto.
13094 * tree.h: Declare new function.
13095
13096 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
13097
13098 * cgraphunit.c (cgraph_mark_functions_to_output): Renable node
13099 dumping for development builds.
13100 * emit-rtl.c (verify_rtx_sharing): Give verbose failure for
13101 development builds only.
13102 * genattrtab.c (write_eligible_delay): Fix typo in previous
13103 commit.
13104 * tree.c (iterative_hash_expr): Replace gcc_unreachable with
13105 gcc_assert.
13106
13107 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
13108
13109 * gcse.c (INSN_CUID, insert_set_in_table, find_avail_set,
13110 cprop_insn, do_local_cprop, local_cprop_pass, find_bypass_set,
13111 process_insert_insn, insert_insn_end_bb, pre_insert_copy_insn,
13112 hoist_code, extract_mentioned_regs_helper, compute_store_table,
13113 insert_store): Use gcc_assert and gcc_unreachable.
13114 * ggc-common.c (ggc_splay_alloc, ggc_splay_dont_free,
13115 gt_pch_note_object, gt_pch_note_reorder, relocate_ptrs,
13116 ggc_record_overhead): Likewise.
13117 * ggc-page.c (alloc_page, free_page, ggc_set_mark, ggc_marked_p,
13118 init_ggc, ggc_push_context, ggc_recalculate_in_use_p,
13119 ggc_pop_context, clear_marks, validate_free_objects,
13120 ggc_pch_read): Likewise.
13121 * ggc-zone.c (ggc_allocated_p, free_chunk, ggc_set_mark,
13122 ggc_marked_p, ggc_get_size, init_ggc, destroy_ggc_zone,
13123 ggc_push_context, check_cookies, ggc_collect,
13124 ggc_print_statistics): Likewise.
13125 * gimple-low.c (lower_function_body, lower_stmt,
13126 lower_bind_expr): Likewise.
13127 * gimplify.c (gimple_tree_eq, push_gimplify_context,
13128 pop_gimplify_context, gimple_pop_condition, create_tmp_var,
13129 declare_tmp_vars, gimple_add_tmp_var, annotate_all_with_locus,
13130 mostly_copy_tree_r, gimplify_return_expr, gimplify_switch_expr,
13131 gimplify_case_label_expr, gimplify_exit_block_expr,
13132 canonicalize_component_ref, gimplify_compound_lval,
13133 gimplify_self_mod_expr, gimplify_call_expr,
13134 gimplify_init_ctor_eval, gimplify_init_constructor,
13135 gimplify_modify_expr, gimplify_save_expr, gimplify_target_expr,
13136 gimplify_expr, check_pointer_types_r,
13137 force_gimple_operand): Likewise.
13138 * global.c (global_alloc, build_insn_chain): Likewise.
13139 * graph.c (clean_graph_dump_file,
13140 finish_graph_dump_file): Likewise.
13141 gcov-io.c (gcov_open): Use GCOV_CHECK.
13142
13143 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
13144
13145 * config/frv/frv.c (acc_operand, accg_operand): Use REGNO.
13146
13147 2004-09-09 Jan Hubicka <jh@suse.cz>
13148
13149 middle-end/17128
13150 * tree-inline.c (expand_call_inline): Make overactive sanity check
13151 happy.
13152
13153 2004-09-09 Jan Hubicka <jh@suse.cz>
13154
13155 * tree-ssa-loop-ivopts.c (peel_address): Fix abort on
13156 VIEW_CONVERT_EXPR.
13157
13158 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
13159
13160 * Makefile.in (gengtype): Use $(BUILD_ERRORS).
13161 (gengtype.o): Depend on errors.h.
13162 * genattrtab.c (strcmp_check): Use gcc_assert and gcc_unreachable.
13163 (attr_rtx_1, attr_printf, attr_copy_rtx, evaluate_eq_attr,
13164 attr_alt_subset_p, attr_alt_subset_of_compl_p,
13165 attr_alt_intersection, attr_alt_union, optimize_attrs, gen_insn,
13166 write_test_expr, write_attr_value, write_eligible_delay,
13167 make_internal_attr, make_numeric_value): Likewise.
13168 * genautomata.c (regexp_name, get_str_vect,
13169 gen_presence_absence_set, automaton_decl_hash,
13170 automaton_decl_eq_p, insn_decl_hash, insn_decl_eq_p, decl_hash,
13171 decl_eq_p, process_regexp, loop_in_regexp, check_loops_in_regexps,
13172 process_regexp_cycles, reserv_sets_cmp, set_unit_reserv,
13173 test_unit_reserv, it_is_empty_reserv_sets,
13174 reserv_sets_are_intersected, reserv_sets_shift, reserv_sets_or,
13175 reserv_sets_and, output_cycle_reservs, get_free_state,
13176 intersected_state_reservs_p, states_union, remove_arc,
13177 copy_insn_regexp, transform_1, transform_2, transform_3,
13178 regexp_transform_func, store_alt_unit_usage,
13179 check_regexp_units_distribution, process_seq_for_forming_states,
13180 process_alts_for_forming_states, make_automaton,
13181 form_arcs_marked_by_insn, create_composed_state,
13182 set_out_arc_insns_equiv_num, partition_equiv_class,
13183 process_insn_equiv_class, set_insn_equiv_classes,
13184 units_to_automata_heuristic_distr, form_regexp,
13185 longest_path_length, output_dfa_max_issue_rate, add_vect,
13186 out_state_arcs_num, add_vect_el, output_trans_table,
13187 output_state_alts_table, output_dead_lock_vect,
13188 output_max_insn_queue_index_def,
13189 output_min_insn_conflict_delay_func,
13190 output_internal_insn_latency_func, output_print_reservation_func,
13191 output_cpu_unit_reservation_p, output_state_arcs,
13192 make_insn_alts_attr, make_internal_dfa_insn_code_attr,
13193 make_default_insn_latency_attr,
13194 form_important_insn_automata_lists): Likewise.
13195 * genemit.c (gen_exp, output_add_clobbers,
13196 output_added_clobbers_hard_reg_p): Likewise.
13197 * genextract.c (print_path, main): Likewise.
13198 * genflags.c (gen_macro): Likewise.
13199 * gengenrtl.c: Include errors.h
13200 (type_from_format, accessor_from_format): Likewise.
13201 * gengtype.c (get_file_basename, output_mangled_typename,
13202 walk_type, write_types_process_field,
13203 write_types_local_process_field): Likewise.
13204 * genmodes.c (complete_mode): Likewise.
13205 * genopinit.c (gen_insn): Likewise.
13206 * genoutput.c (output_insn_data, check_constraint_len,
13207 constraint_len): Likewise.
13208 * genpreds.c (add_mode_tests):Likewise.
13209 * gen-protos.c (add_hash): Likewise.
13210 * genrecog.c (find_operand, find_matching_operand,
13211 validate_pattern, add_to_sequence, maybe_both_true,
13212 nodes_identical_1, merge_trees, write_switch, write_cond,
13213 write_action, is_unconditional, make_insn_sequence,
13214 debug_decision_2): Likewise.
13215 * gensupport.c (is_predicable, collect_insn_data,
13216 alter_predicate_for_insn, maybe_eval_c_test): Likewise.
13217
13218 2004-09-09 Jan Hubicka <jh@suse.cz>
13219
13220 * basic-block.h (guess_outgoing_edge_probabilities): Declare.
13221 * cfgbuild.c (compute_outgoing_frequencies): When probability is
13222 missing, guess it.
13223 (find_many_sub_basic_blocks): Do update profile only when it is
13224 present.
13225 * predict.c (set_even_probabilities): Break out from ...
13226 (combine_predictions_for_insn): ... here; deal with
13227 !can_predict_insn_p insns.
13228 (combine_predictions_for_bb): Use set_even_probabilities.
13229 (bb_estimate_probability_locally): Break out from ....
13230 (estimate_probability): ... here.
13231 (guess_outgoing_edge_probabilities): New entry point.
13232
13233 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
13234
13235 * gcc.c (add_sysrooted_prefix, execute, do_self_spec, do_spec_1,
13236 handle_braces, process_brace_body, main, used_arg,
13237 set_multilib_dir, print_multilib_info): Use fatal, not abort.
13238
13239 * tree-nested.c (create_tmp_var_for): Correct missinverted assert.
13240
13241 * tree-outof-ssa.c (free_temp_expr_table): Add missed assert.
13242 * tree-ssa-ccp.c (set_lattice_value): Correct missapplied de
13243 Morgan's theorem in last checkin.
13244
13245 2004-09-09 Giovanni Bajo <giovannibajo@gcc.gnu.org>
13246 Nathan Sidwell <nathan@codesourcery.com>
13247
13248 * targhooks.c (default_unwind_emit, default_scalar_mode_supported_p):
13249 Use gcc_assert, gcc_unreachable & internal_error instead of abort.
13250 * timevar.c (timevar_push, timevar_pop, timevar_start,
13251 timevar_stop): Likewise.
13252 * toplev.c (default_pch_valid_p): Likewise.
13253 * tracer.c (tail_duplicate): Likewise.
13254 * tree-alias-common.c (get_alias_var_decl,
13255 get_values_from_constructor, create_alias_var, delete_alias_vars,
13256 empty_points_to_set, same_points_to_set, ptr_may_alias_var):
13257 Likewise.
13258 * tree.c (tree_size, make_node_stat, copy_node_stat,
13259 build_int_cst_wide, integer_all_onesp, list_length, chainon,
13260 tree_node_structure, type_contains_placeholder_p, substitute_in_expr,
13261 substitute_placeholder_in_expr, tabilize_reference_1, build0_stat,
13262 build1_stat, build2_stat, build3_stat, build4_stat, is_attribute_p,
13263 lookup_attribute, type_hash_canon, host_integerp, iterative_hash_expr,
13264 build_method_type_directly, decl_type_context, get_callee_fndecl,
13265 get_set_constructor_bits, build_vector_type_for_mode, int_cst_value,
13266 tree_fold_gcd): Likewise.
13267 * tree-cfg.c (create_bb, make_ctrl_stmt_edges, make_exit_edges,
13268 make_cond_expr_edges, group_case_labels, tree_merge_blocks,
13269 cleanup_control_expr_graph, find_taken_edge,
13270 find_taken_edge_switch_expr, phi_alternatives_equal,
13271 is_ctrl_altering_stmt, disband_implicit_edges, set_bb_for_stmt,
13272 stmt_for_bsi, tree_find_edge_insert_loc, bsi_insert_on_edge_immediate,
13273 tree_split_edge, tree_verify_flow_info, thread_jumps,
13274 tree_redirect_edge_and_branch, tree_flow_call_edges_add): Likewise.
13275 * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
13276 chrec_fold_multiply_poly_poly): Likewise.
13277 * tree-complex.c (extract_component, expand_complex_division,
13278 expand_complex_comparison, expand_complex_operations_1,
13279 build_replicated_const, expand_vector_operations_1): Likewise.
13280 * tree-data-ref.c (tree_fold_bezout, build_classic_dist_vector,
13281 build_classic_dir_vector): Likewise.
13282 * tree-dfa.c (compute_immediate_uses_for_phi,
13283 compute_immediate_uses_for_stmt, create_var_ann, create_stmt_ann,
13284 create_tree_ann, collect_dfa_stats, get_virtual_var): Likewise.
13285 * tree-dump.c (dequeue_and_dump): Likewise.
13286 * tree-eh.c (record_stmt_eh_region, add_stmt_to_eh_region,
13287 record_in_finally_tree, replace_goto_queue_1,
13288 maybe_record_in_goto_queue, verify_norecord_switch_expr,
13289 do_return_redirection): Likewise.
13290 * tree-if-conv.c (tree_if_convert_stmt, tree_if_convert_cond_expr,
13291 add_to_dst_predicate_list, find_phi_replacement_condition,
13292 replace_phi_with_cond_modify_expr, get_loop_body_in_if_conv_order):
13293 Likewise.
13294 * tree-inline.c (remap_decl, remap_type, remap_decls, copy_body_r,
13295 initialize_inlined_parameters, declare_return_variable,
13296 estimate_num_insns_1, expand_call_inline, expand_calls_inline,
13297 optimize_inline_calls, copy_tree_r): Likewise.
13298 * tree-into-ssa.c (rewrite_initialize_block_local_data, rewrite_stmt,
13299 ssa_rewrite_stmt, rewrite_into_ssa): Likewise.
13300 * tree-iterator.c (alloc_stmt_list, tsi_link_before, tsi_link_after,
13301 tsi_split_statement_list_after, tsi_split_statement_list_before):
13302 Likewise.
13303 * tree-mudflap.c (mf_varname_tree): Likewise.
13304 * tree-nested.c (create_tmp_var_for, lookup_field_for_decl,
13305 lookup_tramp_for_decl, convert_all_function_calls): Likewise.
13306 * tree-optimize.c (tree_rest_of_compilation): Likewise.
13307 * tree-outof-ssa.c (create_temp, eliminate_build, eliminate_phi,
13308 coalesce_abnormal_edges, coalesce_ssa_name, eliminate_virtual_phis,
13309 free_temp_expr_table, add_dependance, finish_expr, rewrite_trees):
13310 Likewise.
13311 * tree-phinodes.c (resize_phi_node, add_phi_arg,
13312 remove_all_phi_nodes_for): Likewise.
13313 * tree-pretty-print.c (op_prio, print_call_name): Likewise.
13314 * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
13315 tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Likewise.
13316 * tree-sra.c (type_can_instantiate_all_elements, sra_hash_tree,
13317 sra_elt_eq, sra_walk_expr, instantiate_missing_elements,
13318 generate_one_element_ref, generate_element_copy,
13319 generate_element_zero, scalarize_copy, scalarize_init,
13320 scalarize_ldst): Likewise.
13321 * tree-ssa-alias.c (delete_alias_info, group_aliases, may_alias_p,
13322 add_may_alias, add_pointed_to_expr, add_pointed_to_var,
13323 collect_points_to_info_r, get_tmt_for, get_ptr_info): Likewise.
13324 * tree-ssa.c (walk_use_def_chains, check_phi_redundancy): Likewise.
13325 * tree-ssa-ccp.c (dump_lattice_value, get_default_value, get_value,
13326 set_lattice_value, likely_value, ccp_visit_phi_node, visit_assignment,
13327 widen_bitfield, ccp_fold_builtin): Likewise.
13328 * tree-ssa-copy.c (may_propagate_copy, merge_alias_info,
13329 replace_exp_1, propagate_tree_value): Likewise.
13330 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
13331 * tree-ssa-dce.c (set_control_dependence_map_bit,
13332 find_control_dependence, find_pdom, mark_operand_necessary,
13333 mark_stmt_if_obviously_necessary,
13334 mark_control_dependent_edges_necessary, remove_dead_stmt): Likewise.
13335 * tree-ssa-dom.c (dom_opt_initialize_block_local_data,
13336 simplify_switch_and_lookup_avail_expr, cprop_into_successor_phis,
13337 eliminate_redundant_computations, avail_expr_eq): Likewise.
13338 * tree-ssa-dse.c (fix_stmt_v_may_defs): Likewise.
13339 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
13340 duplicate_blocks): Likewise.
13341 * tree-ssa-loop-im.c (for_each_index, set_level,
13342 is_call_clobbered_ref): Likewise.
13343 * tree-ssa-loop-ivopts.c (dump_use, divide, stmt_after_ip_normal_pos,
13344 stmt_after_increment, set_iv, contains_abnormal_ssa_name_p,
13345 find_interesting_uses_outer_or_nonlin, add_derived_ivs_candidates,
13346 peel_address, ptr_difference_cost, may_replace_final_value,
13347 determine_use_iv_cost, rewrite_use_nonlinear_expr, rewrite_use_outer,
13348 rewrite_use, rewrite_uses): Likewise.
13349 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
13350 check_loop_closed_ssa_use): Likewise.
13351 * tree-ssanames.c (make_ssa_name): Likewise.
13352 * tree-ssa-operands.c (finalize_ssa_defs, finalize_ssa_uses,
13353 finalize_ssa_v_must_defs, finalize_ssa_stmt_operands,
13354 get_stmt_operands, get_expr_operands, get_asm_expr_operands,
13355 get_indirect_ref_operands, add_stmt_operand): Likewise.
13356 * tree-ssa-pre.c (value_exists_in_set_bitmap,
13357 value_remove_from_set_bitmap, bitmap_insert_into_set, insert_into_set,
13358 phi_translate, valid_in_set, compute_antic,
13359 find_or_generate_expression, create_expression_by_pieces, insert_aux,
13360 create_value_expr_from, eliminate): Likewise.
13361 * tree-ssa-propagate.c (cfg_blocks_get): Likewise.
13362 * tree-ssa-threadupdate.c (remove_last_stmt_and_useless_edges):
13363 Likewise.
13364 * tree-tailcall.c (independent_of_stmt_p, adjust_return_value,
13365 eliminate_tail_call): Likewise.
13366 * tree-vectorizer.c (vect_create_index_for_array_ref,
13367 vect_align_data_ref, vect_create_data_ref,
13368 vect_create_destination_var, vect_get_vec_def_for_operand,
13369 vect_finish_stmt_generation, vect_transform_stmt,
13370 vect_transform_loop_bound, vect_transform_loop,
13371 vect_analyze_operations): Likewise.
13372 * tree-vn.c (vn_compute, set_value_handle, get_value_handle):
13373 Likewise.
13374 * tree-flow-inline.h (var_ann, get_var_ann, get_def_from_ptr,
13375 get_use_op_ptr, immediate_use, phi_ssa_name_p, bsi_start,
13376 bsi_after_labels, bsi_last): Likewise.
13377 * tree-ssa-live.c (var_union, change_partition_var,
13378 create_ssa_var_map, calculate_live_on_entry, root_var_init,
13379 type_var_init, add_coalesce, sort_coalesce_list, pop_best_coalesce):
13380 Likewise.
13381 * tree-ssa-live.h (partition_is_global, live_entry_blocks,
13382 tpa_find_tree): Likewise.
13383 (register_ssa_partition_check): Declare.
13384 (register_ssa_partition): use it.
13385 * tree-ssa-live.c: Include errors.h.
13386 (register_ssa_partition_check): New.
13387 * tree-ssa-operands.c: Include errors.h.
13388 * Makefile.in (tree-ssa-operands.o): Depend on errors.h.
13389
13390 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
13391 Catherine Moore <clm@redhat.com>
13392
13393 * config/frv/frv-protos.h (FRV_CPU_FR550, FRV_CPU_FR450)
13394 (FRV_CPU_FR405): New processor enums.
13395 (frv_issue_rate, frv_acc_group): Declare.
13396 * config/frv/frv.h (CPP_SPEC, CPP_FRV_SPEC, CPP_FR500_SPEC): Delete.
13397 (CPP_FR400_SPEC, CPP_SIMPLE_SPEC): Delete.
13398 (MASK_DEFAULT_FR550, MASK_DEFAULT_FR450): New macros.
13399 (SUBTARGET_EXTRA_SPECS, EXTRA_SPECS, CPP_CPU_DEFAULT_SPEC): Delete.
13400 (TARGET_CPU_CPP_BUILTINS): Define the macros that were previously
13401 handled by CPP_SPEC.
13402 (MASK_LONG_CALLS, TARGET_LONG_CALLS): New macros.
13403 (MASK_ALIGN_LABELS, TARGET_ALIGN_LABELS): New macros.
13404 (ACC_MASK): New macro.
13405 (TARGET_MEDIA_REV2): Include FRV_CPU_{FR405,FR450,FR550}.
13406 (TARGET_MEDIA_FR450): New macro.
13407 (TARGET_FR500_FR550_BUILTINS, TARGET_FR405_BUILTINS): New macros.
13408 (TARGET_SWITCHES): Add -m{no-,}align-labels and -m{no-,}long-calls.
13409 (LABEL_ALIGN_AFTER_BARRIER): Define.
13410 (ACC_LAST, ACCG_LAST): Add four new accumulator registers.
13411 (IACC_FIRST, IACC_LAST): New pair of SPRs.
13412 (ACCG_FIRST, AP_FIRST, SPR_FIRST, SPR_LAST): Adjust accordingly.
13413 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
13414 (REGISTER_NAMES): Add entries for new registers.
13415 (REG_CLASS_CONTENTS): Update for new register ranges.
13416 (EXTRA_CONSTRAINT_FOR_S): Redefine in terms of call_operand.
13417 (ISSUE_RATE, CLEAR_VLIW_START, SET_VLIW_START): Delete.
13418 (PACKING_FLAG_USED_P): Delete.
13419 (FRV_BUILTIN_MQLCLRHS, FRV_BUILTIN_MQLMTHS, FRV_BUILTIN_MQSLLHI)
13420 (FRV_BUILTIN_MQSRAHI, FRV_BUILTIN_SMUL, FRV_BUILTIN_UMUL)
13421 (FRV_BUILTIN_PREFETCH0, FRV_BUILTIN_PREFETCH, FRV_BUILTIN_SMASS)
13422 (FRV_BUILTIN_SMSSS, FRV_BUILTIN_SMU, FRV_BUILTIN_SCUTSS)
13423 (FRV_BUILTIN_ADDSS, FRV_BUILTIN_SUBSS, FRV_BUILTIN_SLASS)
13424 (FRV_BUILTIN_IACCread{l,ll}, FRV_BUILTIN_IACCset{ll,l})
13425 (FRV_BUILTIN_SCAN): New members of frv_builtin_enum.
13426 (FRV_BUILTIN_FIRST_NONMEDIA): New macro.
13427 (CPU_UNITS_QUERY): Define to 1.
13428 * config/frv/frv.c: Include gt-frv.h
13429 (NUM_NOP_PATTERNS, NTH_UNIT, UNIT_NUMBER, PACKING_FLAG_P): New macros.
13430 (SET_PACKING_FLAG, CLEAR_PACKING_FLAG, FOR_EACH_REGNO): New macros.
13431 (frv_insn_group): New enumeration.
13432 (frv_unit_names, frv_unit_groups, frv_unit_codes): New variables.
13433 (frv_type_to_unit, frv_nops, frv_num_nops): New variables.
13434 (REGSTATE_DEAD, REGSTATE_LIVE, REGSTATE_UNUSED, REGSTATE_MASK)
13435 (REGSTATE_CONDJUMP): Delete. Shuffle other numbers to cover the
13436 gap left by REGSTATE_LIVE.
13437 (regstate_t): New typedef.
13438 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13439 (frv_default_flags_for_cpu): Handle FRV_CPU_{FR550,FR450,FR405}.
13440 (frv_override_options): Check for -mcpu={fr550,fr450,fr405}.
13441 Initialize frv_unit_codes[] and frv_type_to_unit[].
13442 (frv_conditional_register_usage): Remove redundant fixing of
13443 accumulator registers.
13444 (frv_insn_packing_flag): Update specification.
13445 (frv_function_prologue): Don't set frv_insn_packing_flag here.
13446 Zero out frv_nops[].
13447 (frv_expand_epilogue): Remove comments about the no-longer-present
13448 SIBCALL_P argument.
13449 (frv_asm_output_mi_thunk): Check frv_issue_rate() rather than
13450 PACKING_FLAG_USED_P() when deciding whether to pack instructions.
13451 (frv_asm_output_opcode, frv_final_prescan_insn): Simplify in light
13452 of the new meaning of frv_insn_packing_flag. Emit an mnop.p if
13453 packing is disabled and if INSN can only issue to M1.
13454 (call_operand): Check TARGET_LONG_CALLS.
13455 (acc_operand, even_acc_operand, quad_acc_operand)
13456 (accg_operand): Simplify. Don't accept pseudo registers.
13457 (output_move_single): Handle SPR<-zero moves.
13458 (frv_issue_rate): Make non-static. Handle FRV_CPU_{FR550,FR450,FR405}.
13459 (frv_registers_update, frv_registers_used_p): Delete.
13460 (frv_registers_set_p): Delete.
13461 (frv_acc_group_1, frv_acc_group, frv_insn_unit): New functions.
13462 (frv_issues_to_branch_unit_p): New function.
13463 (frv_packet): New structure.
13464 (frv_cond_flags, frv_regstate_conflict_p): New functions.
13465 (frv_registers_conflict_p_1, frv_registers_conflict_p): New functions.
13466 (frv_registers_update_1, frv_registers_update): New functions.
13467 (frv_start_packet, frv_start_packet_block, frv_finish_packet)
13468 (frv_pack_insn_p, frv_add_insn_to_packet, frv_insert_nop_in_packet)
13469 (frv_for_each_packet, frv_sort_insn_group_1, frv_compare_insns)
13470 (frv_sort_insn_group, frv_reorder_packet): New functions.
13471 (frv_pack_insns): Use frv_reorder_packet.
13472 (frv_packet_address): New variable.
13473 (frv_fill_unused_units, frv_align_label, frv_reorg_packet)
13474 (frv_register_nop, frv_reorg): New functions.
13475 (bdesc_1arg): Add __SCUTSS.
13476 (bdesc_2arg): Add __MQLCLRHS, __MQLMTHS, __SMUL, __UMUL, __ADDSS,
13477 __SUBSS, __SLASS and __SCAN.
13478 (bdesc_2argimm): Add __MQSLLHI and __MQSRAHI.
13479 (bdesc_int_void2arg, bdesc_prefetches): New arrays.
13480 (frv_init_builtins): Register the above builtins.
13481 (frv_int_to_acc): Use ACC_MASK to check for valid accumulator
13482 registers. Turn the referenced accumulators into global registers.
13483 (frv_read_iacc_argument): New function.
13484 (frv_expand_int_void2arg, frv_expand_prefetches): New functions.
13485 (frv_split_iacc_move): New function.
13486 (frv_expand_builtin): Handle the new builtins.
13487 * config/frv/frv.md: Replace old schedulers with new order-independent
13488 ones. Add schedulers for the FR405, FR450 and FR550. Describe new
13489 packing algorithm.
13490 (cpu): Add fr550, fr450 and fr405.
13491 (type): Add macc, scan, cut, fnop, fscmp, fdcmp, mnop, mqlimh and
13492 mqshift. Replace fmas with fsmadd and fmad with fdmadd. Delete m7.
13493 (*muladd[sd]f4, *mulsub[sd]f4): Fix types.
13494 (*cmp[sd]f_cc_fp): Use new f[sd]cmp types.
13495 (fnop, mnop): New patterns.
13496 (UNSPEC_MQLCLRHS, UNSPEC_MQLMTHS, UNSPEC_MQSLLHI, UNSPEC_MQSRAHI):
13497 New constants.
13498 (mexpdhw, *cond_exec_mexpdhw): Fix destination operands.
13499 (mclracca8): Use ACC_MASK to determine the upper set of accumulator
13500 registers.
13501 (mqlclrhs, mqlmths, mqsllhi, mqsrahi): New patterns.
13502 (UNSPEC_SMUL, UNSPEC_UMUL, UNSPEC_SMU, UNSPEC_ADDSS, UNSPEC_SUBSS)
13503 (UNSPEC_SLASS, UNSPEC_SCAN, UNSPEC_INTSS, UNSPEC_SCUTSS)
13504 (UNSPEC_PREFETCH0, UNSPEC_PREFETCH, UNSPEC_IACCreadll)
13505 (UNSPEC_IACCreadl, UNSPEC_IACCsetll, UNSPEC_IACCsetl, UNSPEC_SMASS)
13506 (UNSPEC_SMSSS, UNSPEC_IMUL, IACC0_REG): New constants.
13507 (smul, umul, smass, smsss, smu, addss, subss, slass, scan, scutss)
13508 (frv_prefetch0, frv_prefetch): New patterns.
13509 * config/frv/t-frv (MULTILIB_OPTIONS): Remove -mcpu=frv and
13510 -mcpu=simple. Add -mcpu=fr550.
13511 (MULTILIB_DIRNAMES): Update accordingly.
13512 (MULTILIB_MATCHES): Use the fr400 multilibs for -mcpu=fr405 and
13513 -mcpu=fr450.
13514 * doc/invoke.texi: Document the new -mcpu={fr550,fr450,fr405},
13515 -mlong-calls and -malign-labels options for FR-V.
13516
13517 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
13518
13519 PR c/8420
13520 * c-tree.h (struct c_declspecs): New.
13521 (struct c_declarator, struct c_type_name, struct c_parm): Update
13522 element types.
13523 (build_array_declarator, grokfield, shadow_tag, shadow_tag_warned,
13524 start_function, start_decl, build_c_parm,
13525 make_pointer_declarator): Update prototypes.
13526 (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
13527 declspecs_add_scspec, declspecs_add_attrs): New.
13528 (split_specs_attrs): Remove.
13529 * c-parse.in (%union): Add dsptype.
13530 (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
13531 declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
13532 declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
13533 declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
13534 declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
13535 declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
13536 declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
13537 declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea, declspecs_ts,
13538 declspecs_nots, declspecs_ts_nosa, declspecs_nots_nosa,
13539 declspecs_nosc_ts, declspecs_nosc_nots, declspecs_nosc, declspecs,
13540 maybe_type_quals_attrs): Change to dsptype.
13541 (struct c_declspec_stack): New.
13542 (current_declspecs, declspec_stack): Change type.
13543 (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): Update to new
13544 structures.
13545 (extdefs): Likewise.
13546 (setspecs): Likewise.
13547 (fndef): Use current_declspecs for empty declspecs list.
13548 (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
13549 declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
13550 declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
13551 declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
13552 declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
13553 declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
13554 declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
13555 declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea): Update to new
13556 structures and helper functions. Update comments.
13557 (typespec_nonattr): Correct comment.
13558 (maybe_type_quals_attrs, typename): Update to new structures.
13559 * c-decl.c (grokdeclarator, build_array_declarator, grokfield,
13560 shadow_tag, shadow_tag_warned, start_function, start_decl,
13561 build_c_parm, make_pointer_declarator,
13562 set_array_declarator_inner, groktypename): Update to new
13563 structures.
13564 (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
13565 declspecs_add_scspec, declspecs_add_attrs): New.
13566 (split_specs_attrs): Remove.
13567 (shadow_tag_warned): Make warning for useless type names a
13568 pedwarn. Give hard error for long, short, signed, unsigned or
13569 _Complex used with struct, union or enum in empty declaration.
13570 Make found_tag a bool.
13571 (grokdeclarator): Remove checks now done at parse time.
13572
13573 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
13574
13575 * c-tree.h (enum c_declarator_kind, struct c_arg_info, struct
13576 c_declarator, struct c_type_name, struct c_parm): New.
13577 (build_array_declarator, set_array_declarator_inner,
13578 get_parm_info, grokfield, groktypename, grokparm, push_parm_decl,
13579 start_function, start_decl, build_c_parm, build_attrs_declarator,
13580 build_function_declarator, make_pointer_declarator, c_cast_expr,
13581 store_parm_decls_newstyle, c_expr_sizeof_type): Update prototypes.
13582 (build_id_declarator): New.
13583 * c-typeck.c (c_cast_expr, c_expr_sizeof_type): Update to new
13584 structures.
13585 * c-decl.c (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES,
13586 ARG_INFO_OTHERS): Remove.
13587 (build_id_declarator): New.
13588 (build_array_declarator, set_array_declarator_inner, groktypename,
13589 start_decl, grokparm, push_parm_decl, grokparms, get_parm_info,
13590 grokfield, start_function, store_parm_decls_newstyle,
13591 store_parm_decls_oldstyle, store_parm_decls,
13592 build_c_parm, build_attrs_declarator, build_function_declarator,
13593 make_pointer_declarator, grokdeclarator): Update to new
13594 structures.
13595 * c-parse.in (%union): Add arginfotype, dtrtype, typenametype and
13596 parmtype.
13597 (declarator, notype_declarator, after_type_declarator,
13598 parm_declarator, parm_declarator_starttypename,
13599 parm_declarator_nostarttypename, array_declarator, typename,
13600 absdcl, absdcl1, absdcl1_ea, absdcl1_noea, direct_absdcl1,
13601 absdcl_maybe_attribute, parm, firstparm, parms, parmlist,
13602 parmlist_1, parmlist_2, parmlist_or_identifiers,
13603 parmlist_or_identifiers_1): Use these types.
13604 (primary, after_type_declarator, parm_declarator_starttypename,
13605 notype_declarator, component_decl, component_declarator,
13606 component_notype_declarator, typename, absdcl,
13607 absdcl_maybe_attribute, absdcl1_ea, direct_absdcl1, parmlist_1,
13608 parmlist_2, parmlist_or_identifiers_1): Update to new structures.
13609
13610 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
13611
13612 * c-tree.h (C_DECL_USED, parser_obstack, in_alignof, in_sizeof,
13613 in_typeof, record_maybe_used_decl, pop_maybe_used,
13614 c_expr_sizeof_expr, c_expr_sizeof_type): New.
13615 * c-decl.c (parser_obstack): New.
13616 (c_init_decl_processing): Initialize parser_obstack.
13617 (c_write_global_declarations_1): Check for used but undefined
13618 static functions.
13619 * c-parse.in (%union): Add otype.
13620 (save_obstack_position): New.
13621 (extdefs): Use it.
13622 (unary_expr): Update in_sizeof and in_alignof. Use
13623 c_expr_sizeof_expr and c_expr_sizeof_type.
13624 (sizeof): Update in_sizeof.
13625 (alignof): Update in_alignof.
13626 (typeof): Update in_typeof.
13627 (typespec_nonreserved_nonattr): Call pop_maybe_used.
13628 * c-typeck.c (in_alignof, in_sizeof, in_typeof, struct
13629 maybe_used_decl, maybe_used_decls, record_maybe_used_decl,
13630 pop_maybe_used, c_expr_sizeof_expr, c_expr_sizeof_type): New.
13631 (build_external_ref): Set C_DECL_USED or call
13632 record_maybe_used_decl if appropriate.
13633 * toplev.c (check_global_declarations): Check TREE_NO_WARNING.
13634
13635 2004-09-08 Eric Christopher <echristo@redhat.com>
13636
13637 * builtins.c: Fix prototype for fold_builtin_atan.
13638
13639 2004-09-08 Eric Christopher <echristo@redhat.com>
13640
13641 * builtins.c (fold_builtin_strlen, fold_builtin_sqrt, fold_builtin_cbrt,
13642 fold_builtin_pow, fold_builtin_sin, fold_builtin_cos, fold_builtin_tan,
13643 fold_builtin_atan): New functions. Migrate function bodies...
13644 (fold_builtin_1): ... from here.
13645
13646 2004-09-09 Alan Modra <amodra@bigpond.net.au>
13647
13648 * config/rs6000/rs6000.c (rs6000_stack_info): Correct alignment of
13649 save_size.
13650
13651 2004-09-08 David Edelsohn <edelsohn@gnu.org>
13652
13653 * config/rs6000/power4.md (power4-lmul): du4 feeds iu1.
13654 * config/rs6000/power5.md (power5-lmul): Same.
13655
13656 2004-09-08 Richard Henderson <rth@redhat.com>
13657
13658 PR rtl-opt/17186
13659 * function.c (expand_function_end): Have fall-off-the-end
13660 return path jump around return register setup.
13661
13662 2004-09-08 Eric Botcazou <ebotcazou@libertysurf.fr>
13663
13664 * config/sparc/sparc.c (sparc_indent_opcode): New variable.
13665 (output_return): Do not test for the presence of the 'unimp' insn.
13666 Use 'current_function_uses_only_leaf_regs' and 'final_sequence'
13667 as predicates instead of custom ones. Return raw strings when
13668 possible.
13669 (output_sibcall): Likewise. Concatenate strings.
13670 (output_ubranch): Remove kludge for TurboSPARC.
13671 (output_cbranch): Remove 'noop' parameter. Do not output 'nop'.
13672 (output_v9branch): Likewise.
13673 (print_operand): Use 'final_sequence' instead of 'dbr_sequence_length'.
13674 <#>: Set sparc_indent_opcode if the delay slot is filled.
13675 <(>: Likewise.
13676 <)>: New operand to emit the displacement from the saved PC on return.
13677 <@>: Remove.
13678 * config/sparc/sparc.h (sparc_indent_opcode): Declare it.
13679 (ASM_OUTPUT_OPCODE): New macro.
13680 (PRINT_OPERAND_PUNCT_VALID_P): Remove '^' and add ')'.
13681 * config/sparc/sparc.md (normal_branch, inverted_branch,
13682 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
13683 inverted_fpe_branch): Adjust call to output_cbranch.
13684 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust
13685 call to output_v9branch.
13686 * config/sparc/sparc-protos.h (output_cbranch): Adjust.
13687 (output_v9branch): Likewise.
13688
13689 2004-09-08 Devang Patel <dpatel@apple.com>
13690
13691 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -segaddr,
13692 -segs_read_only_addr and -segs_read_write_addr.
13693 (WORD_SWITCH_TAKES_ARG): Same.
13694 (LINK_SPEC): Same.
13695 * doc/invoke.texi: Document -segaddr, -segs_read_only_addr and
13696 -segs_read_write_addr.
13697
13698 2004-09-08 Richard Henderson <rth@redhat.com>
13699
13700 * function.c (reference_callee_copied): New.
13701 (assign_parm_setup_reg): Use it.
13702 * calls.c (initialize_argument_information): Likewise.
13703 (emit_library_call_value_1): Likewise.
13704 * function.h (reference_callee_copied): Declare.
13705
13706 * target.h (struct gcc_target): Add callee_copies.
13707 * target-def.h (TARGET_CALLEE_COPIES): New.
13708 (TARGET_PASS_BY_REFERENCE): Update default.
13709 * expr.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13710 * targhooks.c (hook_callee_copies_named): New.
13711 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Rename from
13712 hook_pass_by_reference_false.
13713 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): New.
13714 * targhooks.h: Update decls.
13715 * config/arc/arc.c (TARGET_CALLEE_COPIES): New.
13716 * config/arc/arc.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13717 * config/frv/frv-protos.h (frv_function_arg_callee_copies): Remove.
13718 * config/frv/frv.c (frv_function_arg_callee_copies): Remove.
13719 * config/frv/frv.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13720 * config/iq2000/iq2000.c (TARGET_CALLEE_COPIES): New.
13721 * config/iq2000/iq2000.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13722 * config/m68hc11/m68hc11.c (TARGET_CALLEE_COPIES): New.
13723 * config/m68hc11/m68hc11.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13724 * config/mips/mips.c (TARGET_CALLEE_COPIES): New.
13725 (mips_callee_copies): New.
13726 * config/mips/mips.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13727 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): New.
13728 * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13729 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): New.
13730 * config/mn10300/mn10300.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13731 * config/pa/pa.c (TARGET_CALLEE_COPIES): New.
13732 * config/pa/pa.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13733 * config/sh/sh.c (sh_callee_copies): New.
13734 (TARGET_CALLEE_COPIES): New.
13735 * config/sh/sh.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13736 * config/v850/v850.c (TARGET_CALLEE_COPIES): New.
13737 * config/v850/v850.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13738 * doc/tm.texi (TARGET_CALLEE_COPIES): Replace documentation
13739 for FUNCTION_ARG_CALLEE_COPIES.
13740 * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Update.
13741
13742 2004-09-08 Devang Patel <dpatel@apple.com>
13743
13744 * tree-if-conv.c (find_phi_replacement_condition): Return true
13745 edge block.
13746 (replace_phi_with_cond_modify_expr): Select conditional expr args
13747 based on true edge basic block.
13748
13749 2004-09-08 Jan Hubicka <jh@suse.cz>
13750
13751 * tree-ssa-operands.c (add_stmt_operand): Use V_MUST_DEF even for
13752 variables being alias set.
13753
13754 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
13755
13756 * final.c (shorten_branches, final, get_insn_template,
13757 output_alternate_entry_point, final_scan_insn, alter_subreg,
13758 alter_cond, output_operand, asm_fprintf, final_forward_branch_p,
13759 leaf_renumber_regs_insn): Use gcc_assert and gcc_unreachable.
13760 * fix-header.c (lookup_std_proto): Likewise.
13761 * flow.c (first_insn_after_basic_block_note, verify_wide_reg,
13762 verify_local_live_at_start, update_life_info, mark_reg,
13763 calculate_global_regs_live, allocate_reg_life_data,
13764 init_propagate_block_info, mark_set_regs, flush_reg_cond_reg_1,
13765 ior_reg_cond, not_reg_cond, and_reg_cond, elim_reg_cond,
13766 attempt_auto_inc, mark_used_reg, mark_used_regs): Likewise.
13767 * fold-const.c (force_fit_type, div_and_round_double,
13768 may_negate_without_overflow_p, int_const_binop, const_binop,
13769 size_binop, size_diffop, fold_convert_const, fold_convert,
13770 invert_tree_comparison, swap_tree_comparison,
13771 comparison_to_compcode, compcode_to_comparison, invert_truthvalue,
13772 range_binop, make_range, fold_cond_expr_with_comparison,
13773 fold_div_compare, fold, fold_checksum_tree, fold_negate_const,
13774 fold_abs_const, fold_not_const, fold_relational_const, round_up,
13775 round_down): Likewise.
13776 * function.c (find_function_data, assign_stack_temp_for_type,
13777 instantiate_virtual_regs_lossage, aggregate_value_p,
13778 assign_parm_find_entry_rtl, assign_parm_setup_block,
13779 expand_function_start, expand_function_end, keep_stack_depressed,
13780 handle_epilogue_set, thread_prologue_and_epilogue_insns): Likewise.
13781
13782 2004-09-08 Daniel Berlin <dberlin@dberlin.org>
13783
13784 * Makefile.in (tree-loop-linear.o): Added.
13785 (OBJS-common): Add tree-loop-linear.o
13786 * common.opt: New flag, ftree-loop-linear.
13787 * timevar.def: New timevar, TV_TREE_LOOP_LINEAR.
13788 * tree-flow.h: Add prototype for linear_transform_loops.
13789 * tree-optimize.c: Add linear transform after vectorization.
13790 * tree-pass.h: Add struct pass_linear_transform.
13791 * tree-ssa-loop.c: Add pass_linear_transform.
13792 * tree-loop-linear.c: New file.
13793 * lambda-code.c: gcc_assertify.
13794 (gcc_loop_to_lambda_loop): Handle all exit tests.
13795 Handle case where we have (invariant >= induction var).
13796 (find_induction_var_from_exit_cond): Ditto.
13797
13798 2004-09-08 Jie Zhang <zhangjie@magima.com.cn>
13799
13800 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
13801 memory tag is call clobbered, so are its aliases.
13802 (group_aliases): When two memory tags being grouped, if one is
13803 call clobbered, so are the other and its aliases.
13804 (add_may_alias): Remove call-clobbering stuff.
13805 (replace_may_alias): Likewise.
13806 (merge_pointed_to_info): Merge pt_global_mem
13807
13808 2004-09-08 Jan Hubicka <jh@suse.cz>
13809
13810 * cgraph.c (cgraph_remove_node): Free DECL_INITIAL field of node.
13811 * cgraphunit.c (verify_cgraph): Don't verify on syntax errors.
13812 (cgraph_expand_function): Remove stale cgraph edges of currently
13813 compiled function; fix non-unit-at-a-time code copying function
13814 node for later reuse.
13815
13816 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
13817
13818 * vec.c (vec_p_reserve, vec_o_reserve): Rename to ...
13819 (vec_gc_p_reserve, vec_gc_o_reserve): ... here. Clone to
13820 (vec_heap_p_reserve, vec_heap_o_reserve): ... here, adjust.
13821 (vec_gc_free, vec_heap_free): New.
13822 * vec.h (DEF_VEC_GC_P, DEF_VEC_MALLOC_P): New.
13823 (DEF_VEC_P): Add allocator argument. Adjust.
13824 (DEF_VEC_GC_O, DEF_VEC_MALLOC_O): New.
13825 (DEF_VEC_O): Add allocator argument. Adjust.
13826 (VEC(free)): New.
13827
13828 * tree.h (tree): Define a GC'd vector.
13829 * lamba-code.c (lambda_loop): Likewise.
13830 * value-prof.h (histogram_value): Likewise.
13831
13832 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
13833
13834 * emit-rtl.c (immed_double_const): Use gcc_assert and gcc_unreachable.
13835 (gen_rtx_SUBREG, gen_reg_rtx, mark_user_reg, subreg_hard_regno,
13836 gen_lowpart_common, gen_highpart, gen_highpart_mode,
13837 subreg_highpart_offset, operand_subword, operand_subword_force,
13838 mem_expr_equal_p, set_mem_attributes_minus_bitpos,
13839 set_mem_alias_set, change_address_1, verify_rtx_sharing,
13840 copy_most_rtx, set_first_insn, set_last_insn, prev_cc0_setter,
13841 try_split, add_insn_after, add_insn_before, remove_insn,
13842 remove_unnecessary_notes, emit_insn_before, emit_jump_insn_before,
13843 emit_call_insn_before, emit_insn_after, emit_jump_insn_after,
13844 emit_call_insn_after, emit_insn, emit_jump_insn, emit_call_insn,
13845 set_unique_reg_note, emit, push_to_full_sequence, copy_insn_1,
13846 gen_const_vector_0, emit_copy_of_insn_after): Likewise.
13847 * et-forest.c (set_prev, set_next, et_check_occ_sanity,
13848 record_path_before_1, check_path_after_1, check_path_after): Likewise.
13849 * except.c (gen_eh_region, resolve_one_fixup_region,
13850 remove_unreachable_regions, convert_from_eh_region_ranges_1,
13851 add_ehl_entry, duplicate_eh_region_1, build_post_landing_pads,
13852 connect_post_landing_pads, sjlj_emit_function_exit,
13853 remove_exception_handler_label, remove_eh_handler,
13854 reachable_next_level, collect_one_action_chain,
13855 output_function_exception_table): Likewise.
13856 * explow.c (trunc_int_for_mode, copy_to_mode_reg,
13857 optimize_save_area_alloca, allocate_dynamic_stack_space,
13858 probe_stack_range, hard_function_value): Likewise.
13859 * expmed.c (mode_for_extraction, store_bit_field,
13860 store_fixed_bit_field, extract_bit_field, expand_shift,
13861 expand_mult_const, expand_mult, choose_multiplier,
13862 expand_mult_highpart, expand_divmod, emit_store_flag,
13863 do_cmp_and_jump): Likewise.
13864 * expr.c (convert_move, convert_modes, move_by_pieces,
13865 move_by_pieces_ninsns, move_by_pieces_1, emit_block_move,
13866 move_block_from_reg, gen_group_rtx, emit_group_load,
13867 emit_group_move, emit_group_store, use_reg, use_regs,
13868 can_store_by_pieces, store_by_pieces, store_by_pieces_1,
13869 emit_move_insn, emit_move_insn_1, emit_push_insn,
13870 expand_assignment, store_expr, count_type_elements,
13871 store_constructor, store_field, safe_from_p, expand_var,
13872 expand_expr_addr_expr, expand_expr_real_1, do_store_flag): Likewise.
13873
13874 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
13875
13876 * dbxout.c (dbxout_type, dbxout_type_name, dbxout_symbol): Use
13877 gcc_assert and gcc_unreachable.
13878 * ddg.c (create_ddg_dependence, add_deps_for_def,
13879 add_deps_for_use, create_ddg, add_edge_to_ddg): Likewise.
13880 * df.c (df_ref_unlink, df_ref_record, df_uses_record,
13881 df_reg_def_chain_create, df_reg_use_chain_create, df_analyze,
13882 df_insn_delete, df_refs_reg_replace, df_ref_reg_replace,
13883 df_insns_modify, df_pattern_emit_before, df_bb_reg_live_start_p,
13884 df_bb_reg_live_end_p, df_bb_regs_lives_compare,
13885 df_bb_single_def_use_insn_find, dataflow_set_a_op_b,
13886 dataflow_set_copy, hybrid_search, diagnostic.c,
13887 diagnostic_build_prefix, diagnostic_count_diagnostic): Likewise.
13888 * dojump.c (do_jump): Likewise.
13889 * dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
13890 compute_dom_fast_query, calculate_dominance_info,
13891 free_dominance_info, get_immediate_dominator,
13892 set_immediate_dominator, get_dominated_by,
13893 redirect_immediate_dominators, nearest_common_dominator,
13894 dominated_by_p, verify_dominators, recount_dominator,
13895 iterate_fix_dominators, add_to_dominance_info,
13896 delete_from_dominance_info): Likewise.
13897 * dwarf2asm.c (size_of_encoded_value, eh_data_format_name,
13898 dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
13899 dw2_force_const_mem, dw2_asm_output_encoded_addr_rtx): Likewise.
13900 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes, reg_save,
13901 initial_return_save, stack_adjust_offset, dwarf2out_stack_adjust,
13902 flush_queued_reg_saves, dwarf2out_frame_debug_expr,
13903 dwarf2out_frame_debug, dw_cfi_oprnd1_desc, output_cfi,
13904 output_call_frame_info, output_loc_operands, build_cfa_loc,
13905 decl_ultimate_origin, AT_flag, AT_int, AT_unsigned, AT_string,
13906 AT_string_form, add_AT_specification, AT_ref, set_AT_ref_external,
13907 AT_loc, AT_loc_list, AT_addr, AT_lbl, add_child_die,
13908 splice_child_die, attr_checksum, same_dw_val_p,
13909 break_out_includes, build_abbrev_table, size_of_die, mark_dies,
13910 unmark_dies, value_format, output_loc_list, output_die,
13911 output_pubnames, output_aranges, base_type_die, is_base_type,
13912 modified_type_die, dbx_reg_number, multiple_reg_loc_descriptor,
13913 mem_loc_descriptor, loc_descriptor, loc_descriptor_from_tree_1,
13914 field_byte_offset, add_data_member_location_attribute,
13915 add_const_value_attribute, rtl_for_decl_location,
13916 add_location_or_const_value_attribute, add_byte_size_attribute,
13917 add_bit_offset_attribute, add_bit_size_attribute,
13918 add_abstract_origin_attribute, pop_decl_scope, scope_die_for,
13919 decl_start_label, gen_formal_parameter_die,
13920 gen_type_die_for_member, gen_subprogram_die, gen_label_die,
13921 gen_typedef_die, gen_type_die, gen_tagged_type_instantiation_die,
13922 force_decl_die, force_type_die, gen_decl_die,
13923 dwarf2out_imported_module_or_decl, prune_unused_types_prune,
13924 dwarf2out_finish): Likewise.
13925
13926 2004-09-08 Andreas Tobler <toa@pop.agri.ch>
13927
13928 * Makefile.in (builtins.o): Depend on tree-mudflap.h.
13929 * builtins.c: Include tree-mudflap.h.
13930
13931 2004-09-08 Uros Bizjak <uros@kss-loka.si>
13932
13933 * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
13934 force operand 0.0 into register in XFmode. Also do not force
13935 operand 0.0 into register if !TARGET_CMOVE.
13936 * config/i386/i386.md (*cmpfp_0): Delete. Remove comment.
13937 (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf): New patterns to
13938 implement ftst x87 instruction.
13939 (*fp_jcc_7): New insn pattern. Change corresponding split
13940 pattern to handle "general_operand" instead of
13941 "nonimmediate_operand".
13942
13943 2004-09-08 Ben Elliston <bje@au.ibm.com>
13944
13945 * doc/rtl.texi (Insns): Document NOTE_INSN_FUNCTION_BEG.
13946
13947 2004-09-07 Frank Ch. Eigler <fche@redhat.com>
13948
13949 * builtins.c (std_gimplify_va_arg_expr): Mark INDIRECT_REF nodes
13950 generated from standard va_arg expansion.
13951 * tree-mudflap.c (mx_xform_derefs_1): Omit instrumentation from
13952 marked nodes.
13953 (mf_varname_tree, mf_file_function_line_tree): Add some support
13954 for column numbers if compiled with USE_MAPPED_LOCATION.
13955
13956 2004-09-07 Ziemowit Laski <zlaski@apple.com>
13957
13958 * c-decl.c (groktypename_in_parm_context): Remove function.
13959 * c-tree.h (groktypename_in_parm_context): Remove prototype.
13960
13961 2004-09-07 Ziemowit Laski <zlaski@apple.com>
13962
13963 * Makefile.in (c-parse.o): Depend on $(C_COMMON_H).
13964 * c-parse.in: Include c-common.h instead of objc-act.h.
13965 (ivar_decl_list, ivar_decls, ivar_decl, ivars, ivar_declarator,
13966 myparms, myparm): Remove %type declarations.
13967 (methodtype, optparms, OBJC_TYPE_QUAL, objc_quals, objc_qual,
13968 objc_typename, objc_try_catch_stmt, optellipsis): Add %type
13969 declarations.
13970 (objc_inherit_code, objc_public_flag): Remove.
13971 (typespec_nonreserved_nonattr): Call
13972 objc_get_protocol_qualified_type() instead of get_static_reference()
13973 and get_protocol_reference().
13974 (stmt_nocomp): Call grokparm() on @catch parameter.
13975 (objcdef): Move semantic action to objc_finish_implementation().
13976 (classdef): Move semantic action to objc_start_class_interface(),
13977 objc_continue_interface(), objc_finish_interface(),
13978 objc_start_class_implementation(), objc_continue_implementation(),
13979 objc_start_category_interface() and
13980 objc_start_category_implementation().
13981 (protocoldef): Move semantic actions to objc_start_protocol() and
13982 objc_finish_interface().
13983 (ivar_decl_list): Remove nonterminal.
13984 (visibility_spec): Move semantic actions to objc_set_visibility().
13985 (ivar_decls): Remove assignment to $$.
13986 (ivar_decl): Rephrase in terms of component_decl; call
13987 objc_add_instance_variable().
13988 (ivars, ivar_declarator): Remove nonterminals.
13989 (opt_semi): New nonterminal.
13990 (methodtype): Remove semantic actions.
13991 (methoddef): Move semantic actions to objc_set_method_type(),
13992 objc_start_method_definition() and objc_finish_method_definition().
13993 (methodproto): Move semantic actions to objc_set_method_type() and
13994 objc_add_method_declaration().
13995 (methoddecl): Use objc_typename instead of typename; move semantic
13996 actions to objc_build_method_signature().
13997 (optarglist, myxdecls, mydecl, myparms, myparm): Remove nonterminals.
13998 (optparmlist): Express in terms of optparms and optellipsis.
13999 (optparms, optellipsis, objc_qual, objc_quals, objc_typename): New
14000 nonterminals.
14001 (keyworddecl): Use objc_typename instead of typename.
14002 (rid_to_yy): Mark RID_IN, RID_OUT, RID_INOUT, RID_BYCOPY, RID_BYREF
14003 and RID_ONEWAY as returning OBJC_TYPE_QUAL to yyparse().
14004
14005 2004-09-08 Alan Modra <amodra@bigpond.net.au>
14006
14007 * doc/tm.texi (MD_UNWIND_SUPPORT): Document.
14008 (MD_FALLBACK_FRAME_STATE_FOR): Update.
14009 * unwind-dw2.c (MD_UNWIND_SUPPORT): #include if defined.
14010 (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
14011 (MD_FROB_UPDATE_CONTEXT): Remove default.
14012 (uw_update_context_1): Instead #ifdef invocation.
14013 * config/ia64/unwind-ia64.c (MD_UNWIND_SUPPORT): #include if defined.
14014 (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
14015 * config/alpha/gnu.h (MD_FALLBACK_FRAME_STATE_FOR): Don't undef.
14016 (MD_UNWIND_SUPPORT): Undefine this instead.
14017 * config/i386/gnu.h: Likewise.
14018 * config/alpha/linux-unwind.h: New file, macro converted to
14019 function, extracted from..
14020 * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): ..this.
14021 (MD_UNWIND_SUPPORT): Define.
14022 * config/alpha/vms-unwind.h, config/alpha/vms.h: Likewise.
14023 * config/i386/linux-unwind.h, config/i386/linux.h,
14024 config/i386/linux64.h: Likewise.
14025 * config/ia64/linux-unwind.h, config/ia64/linux.h: Likewise.
14026 MD_HANDLE_UNWABI too.
14027 * config/mips/linux-unwind.h, config/mips/linux.h: Likewise.
14028 * config/pa/linux-unwind.h, config/pa/pa32-linux.h: Likewise.
14029 * config/rs6000/darwin-unwind.h, config/rs6000/darwin.h: Likewise.
14030 * config/s390/linux-unwind.h, config/s390/linux.h: Likewise.
14031 * config/sparc/linux-unwind.h, config/sparc/linux.h,
14032 config/sparc/linux64.h: Likewise.
14033 * config/sh/linux-unwind.h, config/sh/linux.h: Likewise, but merge
14034 SH_FALLBACK_FRAME_FLOAT_STATE into sh_fallback_frame_state.
14035 * config/rs6000/linux-unwind.h, config/rs6000/linux.h,
14036 config/rs6000/linux64.h: Likewise. Split out get_sigcontext
14037 function. Use ARG_POINTER_REGNUM for 32-bit temp reg too.
14038
14039 2004-09-07 Jan Hubicka <jh@suse.cz>
14040
14041 * cse.c (fold_rtx): Avoid building of
14042 (CONST (MINUS (CONST_INT) (SYMBOL_REF)))
14043
14044 * tree-ssa-pre.c (grand_bitmap_obstack): New.
14045 (value_insert_into_set_bitmap, bitmap_set_new): Use the obstack.
14046 (init_pre): Initialize obstack.
14047 (fini_pre): Free obstack.
14048
14049 2004-09-07 David Daney <ddaney@avtrex.com>
14050
14051 * config.gcc: Added support for --with-divide=[breaks|traps] for
14052 mips targets.
14053 * config/mips/mips.h (MASK_DIVIDE_BREAKS): New target_flags bit.
14054 (TARGET_DIVIDE_TRAPS): New macro.
14055 (TARGET_SWITCHES): Added -mdivide-traps and -mdivide-breaks.
14056 (OPTION_DEFAULT_SPECS): Added --with-divide= support.
14057 * config/mips/mips.c (mips_idiv_insns): Generate proper count on
14058 GENERATE_DIVIDE_TRAPS.
14059 (mips_output_division): Emit conditional trap if
14060 GENERATE_DIVIDE_TRAPS is set.
14061 * doc/install.texi: Document --with-divide.
14062 * doc/invoke.texi: Document -mdivide-traps and -mdivide-breaks.
14063
14064 2004-09-07 Caroline Tice <ctice@apple.com>
14065
14066 * cfgrtl.c (rtl_verify_flow_info_1): Add new edge flag,
14067 EDGE_CROSSING, to flags test case.
14068
14069 2004-09-07 Jan Hubicka <jh@suse.cz>
14070
14071 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Deal with '<'
14072 class too.
14073
14074 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
14075
14076 * cfganal.c (flow_depth_first_order_compute, dfs_enumerate_from,
14077 cfgbuild.c, inside_basic_block_p, control_flow_insn_p,
14078 make_label_edge, make_edges, find_basic_blocks_1): Use gcc_assert
14079 or gcc_unreachable.
14080 * cfg.c (clear_edges, initialize_bb_rbi, compact_blocks,
14081 remove_edge, alloc_aux_for_blocks, free_aux_for_blocks,
14082 alloc_aux_for_edges, free_aux_for_edges): Likewise.
14083 * cfgcleanup.c (try_forward_edges,
14084 merge_blocks_move_predecessor_nojumps,
14085 merge_blocks_move_successor_nojumps): Likewise.
14086 * cfgexpand.c (expand_gimple_cond_expr,
14087 expand_gimple_tailcall): Likewise.
14088 * cfghooks.c (duplicate_block): Likewise.
14089 * cfglayout.c (record_effective_endpoints,
14090 insn_locators_initialize, change_scope, fixup_reorder_chain,
14091 verify_insn_chain, fixup_fallthru_exit_predecessor,
14092 duplicate_insn_chain, cfg_layout_finalize): Likewise.
14093 * cfgloopanal.c (check_irred): Likewise.
14094 * cfgloop.c (superloop_at_depth, flow_loops_free,
14095 flow_loop_entry_edges_find, flow_loops_find,
14096 flow_loop_outside_edge_p, get_loop_body,
14097 get_loop_body_in_dom_order, get_loop_body_in_bfs_order,
14098 get_loop_exit_edges, num_loop_branches, cancel_loop,
14099 verify_loop_structure): Likewise.
14100 cfgloopmanip.c (find_path, remove_path, loop_delete_branch_edge,
14101 duplicate_loop_to_header_edge, create_preheader,
14102 create_loop_notes): Likewise.
14103 * cfgrtl.c (delete_insn, try_redirect_by_replacing_jump,
14104 edirect_branch_edge, force_nonfallthru_and_redirect,
14105 rtl_split_edge, insert_insn_on_edge, commit_one_edge_insertion,
14106 commit_edge_insertions, commit_edge_insertions_watch_calls,
14107 purge_dead_edges, cfg_layout_redirect_edge_and_branch,
14108 cfg_layout_redirect_edge_and_branch_force,
14109 cfg_layout_merge_blocks, rtl_flow_call_edges_add): Likewise.
14110 * cgraph.c (cgraph_node, cgraph_create_edge, cgraph_remove_edge,
14111 cgraph_redirect_edge_callee, cgraph_global_info, cgraph_rtl_info,
14112 cgraph_varpool_node): Likewise.
14113 * cgraphunit.c (cgraph_finalize_function,
14114 cgraph_finalize_compilation_unit, cgraph_mark_functions_to_output,
14115 cgraph_expand_function, cgraph_remove_unreachable_nodes,
14116 cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
14117 cgraph_mark_inline, cgraph_expand_all_functions,
14118 cgraph_build_static_cdtor): Likewise.
14119 * combine.c (do_SUBST, try_combine, subst, combine_simplify_rtx,
14120 simplify_logical, distribute_notes, insn_cuid): Likewise.
14121 * conflict.c (conflict_graph_add, print_conflict): Likewise.
14122 * coverage.c (rtl_coverage_counter_ref, tree_coverage_counter_ref,
14123 coverage_checksum_string): Likewise.
14124 * cse.c (make_new_qty, make_regs_eqv, insert, invalidate,
14125 hash_rtx, exp_equiv_p, cse_basic_block, count_reg_usage,
14126 cse_cc_succs, cse_condition_code_reg): Likewise.
14127 * cselib.c (entry_and_rtx_equal_p, remove_useless_values,
14128 rtx_equal_for_cselib_p, wrap_constant, cselib_hash_rtx,
14129 new_cselib_val, cselib_subst_to_values, cselib_invalidate_regno,
14130 cselib_record_set): Likewise.
14131
14132 2004-09-07 Jan Hubicka <jh@suse.cz>
14133
14134 * tree-ssa-loop-ivopts.c (iv_value): Avoid invalid sharing on niter.
14135
14136 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
14137
14138 * builtins.c (fold_builtin_strchr): Use build_int_cst, not
14139 fold_convert.
14140 (fold_builtin_strpbrk): Likewise.
14141 * expr.c (array_ref_low_bound): Likewise.
14142 * tree-scalar-evolution.c (chrec_is_positive, add_to_evolution_1,
14143 interpret_rhs_modify_expr, number_of_iterations_in_loop): Likewise.
14144 * tree-sra.c (generate_element_zero): Likewise.
14145 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
14146 * tree-ssa-loop-ivopts.c (determine_biv_step, idx_find_step,
14147 add_old_iv_candidates, add_iv_candidates): Likewise.
14148 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
14149
14150 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
14151
14152 * c-aux-info.c (gen_type): Use gcc_assert or gcc_unreachable.
14153 * c-common.c (c_type_hash, c_common_nodes_and_builtins,
14154 c_expand_expr, boolean_increment, nonnull_check_p,
14155 check_function_arguments_recurse, fold_offsetof_1): Likewise.
14156 * c-cppbuiltin.c (define__GNUC__, builtin_define_stdint_macros,
14157 builtin_define_type_max): Likewise.
14158 * c-decl.c (bind, pop_scope, merge_decls, pushdecl_top_level,
14159 implicit_decl_warning, builtin_function, build_compound_literal,
14160 complete_array_type, grokdeclarator, get_parm_info,
14161 start_function, store_parm_decls_oldstyle,
14162 c_write_global_declarations): Likewise.
14163 * c-format.c (get_constant, decode_format_attr,
14164 maybe_read_dollar_number, get_flag_spec, check_format_arg,
14165 check_format_types, format_type_warning,
14166 find_char_info_specifier_index, init_dynamic_asm_fprintf_info,
14167 init_dynamic_diag_info, handle_format_attribute): Likewise.
14168 * c-gimplify.c (push_context, pop_context, finish_bc_block):
14169 * c-lex.c (c_lex_with_flags, lex_string): Likewise.
14170 * c-objc-common.c (c_tree_printer): Likewise.
14171 * c-pch.c (pch_init): Likewise.
14172 * c-pragma.c (maybe_apply_pragma_weak): Likewise.
14173 * c-pretty-print.c (pp_c_tree_decl_identifier): Likewise.
14174 * c-typeck.c (c_incomplete_type_error, composite_type,
14175 common_pointer_type, common_type, same_translation_unit_p,
14176 tagged_types_tu_compatible_p, finish_init, pop_init_level,
14177 set_designator, set_nonincremental_init_from_string,
14178 process_init_element, c_finish_if_stmt): Likewise.
14179 * caller-save.c (init_caller_save, save_call_clobbered_regs,
14180 insert_restore, insert_save, insert_one_insn): Likewise.
14181 * calls.c (emit_call_1, compute_argument_block_size,
14182 precompute_arguments, expand_call, emit_library_call_value_1,
14183 store_one_arg): Likewise.
14184
14185 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
14186
14187 * configure.ac (enable-checking): Add release option. Reorganize
14188 to avoid repetition.
14189 * configure: Rebuilt.
14190 * doc/install.texi (enable-checking): Amend documentation.
14191
14192 2004-09-06 H.J. Lu <hongjiu.lu@intel.com>
14193
14194 PR bootstrap/17313
14195 * Makefile.in (specs.ready): Depend on cc1$(exeext).
14196
14197 2004-09-06 James E Wilson <wilson@specifixinc.com>
14198
14199 * config/mips/mips.md (movsf_hardfloat, movdf_hardfloat_64bit,
14200 movdf_hardfloat_32bit): Split fG into two alternatives.
14201 (movv2sf_hardfloat_64bit): Split fYG into two alternatives.
14202
14203 * emit-rtl.c (try_split): Check INSN_P before may_trap_p call.
14204
14205 2004-09-06 Eric Botcazou <ebotcazou@libertysurf.fr>
14206
14207 * final.c (output_in_slot): Delete.
14208 (final_scan_insn): Revert 2004-09-03 change.
14209 (output_asm_insn): Likewise.
14210 * config/sparc/sparc.c (output_return): Likewise.
14211 (output_sibcall): Likewise.
14212
14213 2004-09-06 Jan Hubicka <jh@suse.cz>
14214
14215 * loop.c (loop_dump_aux): Do not print RTL when not available.
14216 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates): Do not use
14217 frontend specific type nodes.
14218 (produce_memory_decl_rtl): Break out from ...
14219 (prepare_decl_rtl): ... here. Handle ADDR_EXPR correctly.
14220 (get_computation_at): Avoid random tree sharing.
14221 (tree_ssa_iv_optimize): Verify tree sharing; dump loops.
14222
14223 2004-09-06 Zack Weinberg <zack@codesourcery.com>
14224
14225 * Makefile.in (rtl.o, bitmap.o): Correct dependencies, remove
14226 unnecessary commands.
14227
14228 2004-09-06 Mohan Embar <gnustuff@thisiscool.com>
14229
14230 * Makefile.in (rtl.o): Remove -DGENERATOR_FILE.
14231 (bitmap.o): Likewise.
14232
14233 2004-09-06 Paolo Bonzini <bonzini@gnu.org>
14234
14235 Unify the management of RTL and tree-level dump files.
14236
14237 * cfgexpand.c (tree_expand_cfg): Fix incorrect comment.
14238 Don't print function name to the dump file, the pass manager
14239 would do this for us. Add code from the top of
14240 rest_of_compilation, up to the initial RTL dump.
14241 * passes.c (rest_of_handle_jump): Call fixup_tail_calls and
14242 close the DFI_sibling dump file.
14243 (rest_of_compilation): Don't do that here. Remove code up to the
14244 initial RTL dump.
14245 (init_optimization_passes): Remove.
14246 (pass_rest_of_compilation): Change pass name to NULL.
14247 * toplev.c (lang_dependent_init): Do not use an empty dump file prefix.
14248 Do not call init_optimization_passes.
14249 * toplev.h (init_optimization_passes): Remove.
14250
14251 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
14252 finish_graph_dump_file): Remove SUFFIX parameter.
14253 * graph.h (print_rtl_graph_with_bb, clean_graph_dump_file,
14254 finish_graph_dump_file): Likewise.
14255
14256 * tree-pass.h (struct tree_opt_pass): Add `letter' field.
14257 * cfgexpand.c (pass_expand): Adjust.
14258 * gimple-low.c (pass_lower_cf, pass_remove_useless_vars): Adjust.
14259 * passes.c (pass_rest_of_compilation): Adjust.
14260 * predict.c (pass_profile): Adjust.
14261 * tree-alias-common.c (pass_build_pta, pass_del_pta): Adjust.
14262 * tree-cfg.c (pass_build_cfg, pass_remove_useless_stmts,
14263 pass_split_crit_edges, pass_warn_function_return): Adjust.
14264 * tree-complex.c (pass_lower_vector_ssa, pass_pre_expand): Adjust.
14265 * tree-dfa.c (pass_referenced_vars): Adjust.
14266 * tree-eh.c (pass_lower_eh): Adjust.
14267 * tree-if-conv.c (pass_build_ssa): Adjust.
14268 * tree-into-ssa.c (pass_build_ssa): Adjust.
14269 * tree-mudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
14270 * tree-nomudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
14271 * tree-nrv.c (pass_nrv): Adjust.
14272 * tree-optimize.c (pass_gimple, pass_all_optimizations,
14273 pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
14274 pass_init_datastructures): Adjust.
14275 * tree-outof-ssa.c (pass_del_ssa): Adjust.
14276 * tree-profile.c (pass_tree_profile): Adjust.
14277 * tree-sra.c (pass_sra): Adjust.
14278 * tree-ssa-alias.c (pass_may_alias): Adjust.
14279 * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Adjust.
14280 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Adjust.
14281 * tree-ssa-dce.c (pass_dce, pass_cd_dce): Adjust.
14282 * tree-ssa-dom.c (pass_dominator): Adjust.
14283 * tree-ssa-dse.c (pass_dse): Adjust.
14284 * tree-ssa-forwprop.c (pass_forwprop): Adjust.
14285 * tree-ssa-if-conv.c (pass_if_conversion): Adjust.
14286 * tree-ssa-loop-ch.c (pass_ch): Adjust.
14287 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_lim,
14288 pass_loop_done, pass_complete_unroll, pass_iv_canon,
14289 pass_iv_optimize, pass_vectorize): Adjust.
14290 * tree-ssa-phiopt.c (pass_phiopt): Adjust.
14291 * tree-ssa-pre.c (pass_pre, pass_fre): Adjust.
14292 * tree-ssa.c (pass_redundant_phi, pass_early_warn_uninitialized,
14293 pass_late_warn_uninnitialized): Adjust.
14294 * tree-tailcall.c (pass_tail_recursion, pass_tail_calls): Adjust.
14295
14296 * Makefile.in (tree-dump.o): Add new dependencies.
14297 * cgraph.c (cgraph_remove_node): TDF_all -> TDF_tree_all.
14298 * cgraphunit.c (cgraph_preserve_function_body_p, cgraph_optimize):
14299 Likewise.
14300 * toplev.c (dump_file_name): New.
14301 * tree-dump.c (dump_enable_all): Add LETTER parameter.
14302 (struct dump_file_info): Add NUM and LETTER fields.
14303 (dump_files): Adjust and add RTL dump files.
14304 (dump_register): Add NUM and LETTER fields.
14305 (get_dump_file_name, dump_initialized_p, enable_rtl_dump_file): New.
14306 (dump_begin): Use get_dump_file_name.
14307 (dump_switch_p_1): Adjust call to dump_enable_all.
14308 * tree-dump.h (dump_register): Adjust prototype.
14309 * tree-optimize.c (register_one_dump_file): Take dump file index.
14310 Support flags for RTL dumps.
14311 (register_dump_files): Fill in NUM field of struct dump_file_info.
14312 Track properties both when the gate is executed and when it is not.
14313 (execute_todo): Dump RTL. Add PROPERTIES parameter.
14314 (execute_one_pass): Pass properties to execute_todo. Handle VCG
14315 dumps of RTL.
14316 * tree-pass.h (dump_file_name): New.
14317 * tree.h (TDF_TREE, TDF_RTL, get_dump_file_name, dump_initialized_p):
14318 New.
14319
14320 * Makefile.in (passes.o): Add new dependencies.
14321 * passes.c (struct dump_file_info, enum dump_file_index,
14322 dump_file_tbl, init_optimization_passes): Remove.
14323 (open_dump_file, close_dump_file): Use tree-dumping infrastructure.
14324 (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc): Use
14325 dump_enabled_p.
14326 (finish_optimization_passes): Update finish_graph_dump_file loop.
14327 (enable_rtl_dump_file): Remove.
14328 * tree-dump.c (dump_files): Adjust and add RTL dump files.
14329 (enable_rtl_dump_file): Add here.
14330 * tree.h (enum tree_dump_index): Add RTL dump file indices.
14331 * doc/invoke.texi (Debugging options): Document new RTL debugging
14332 options. Update.
14333
14334 2004-09-05 Kazu Hirata <kazu@cs.umass.edu>
14335
14336 * c-common.c, c-decl.c, combine.c, defaults.h, fold-const.c,
14337 gimplify.c, gthr-nks.h, hooks.c, lambda-code.c, lambda-mat.c,
14338 stor-layout.c, target.h, tree-cfg.c, tree-chrec.c,
14339 tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
14340 tree-mudflap.c, tree-optimize.c, tree-scalar-evolution.c,
14341 tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dce.c,
14342 tree-ssa-pre.c, tree-vectorizer.c, tree-vectorizer.h, tree.h,
14343 vec.h: Fix comment formatting.
14344
14345 2004-09-05 Kazu Hirata <kazu@cs.umass.edu>
14346
14347 * c-common.c, cfgexpand.c, cgraphunit.c, defaults.h,
14348 et-forest.c, expr.c, gimplify.c, global.c, gthr-lynx.h,
14349 hard-reg-set.h, modulo-sched.c, optabs.c, postreload-gcse.c,
14350 tree-data-ref.c, tree-flow.h, tree-if-conv.c, tree-inline.c,
14351 tree-sra.c, tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
14352 tree-ssa-loop-niter.c, tree-ssa-operands.c,
14353 tree-ssa-operands.h, tree-ssa-propagate.c,
14354 tree-ssa-propagate.h, tree-ssa-threadupdate.c, value-prof.c,
14355 vec.c, vec.h: Fix comment typos. Follow spelling conventions.
14356
14357 2004-09-05 Diego Novillo <dnovillo@redhat.com>
14358
14359 * tree-if-conv.c (gate_tree_if_conversion): Enable only if the
14360 vectorizer is enabled.
14361
14362 2004-09-05 Andreas Jaeger <aj@suse.de>
14363
14364 * tree-if-conv.c: Spell check comments and clean up whitespace.
14365
14366 2004-09-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14367
14368 * tree-ssa-loop-ivopts.c: New file.
14369 * Makefile.in (tree-ssa-loop-ivopts.c): Add.
14370 * cfgloop.h (target_avail_regs, target_res_regs, target_small_cost,
14371 target_pres_cost, target_spill_cost): Declare.
14372 * cfgloopanal.c (avail_regs, res_regs, small_cost, pres_cost,
14373 spill_cost): Renamed to ...
14374 (target_avail_regs, target_res_regs, target_small_cost,
14375 target_pres_cost, target_spill_cost): ... and exported.
14376 (init_set_costs, global_cost_for_size): Work with renamed variables.
14377 * common.opt (flag_ivopts): New flag.
14378 * expr.c (expand_expr_real_1): Handle SSA_NAME case. Handle
14379 REF_ORIGINAL.
14380 * gimplify.c (struct gimplify_ctx): Add into_ssa field.
14381 (internal_get_tmp_var, gimplify_modify_expr, gimplify_expr): Support
14382 generating SSA form.
14383 (force_gimple_operand): New function.
14384 * timevar.def (TV_TREE_LOOP_IVOPTS): New timevar.
14385 * tree-cfg.c (stmt_bsi): New function.
14386 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
14387 PARAM_IV_MAX_CONSIDERED_USES): New.
14388 * tree-flow.h (stmt_bsi, tree_ssa_iv_optimize, split_loop_exit_edge,
14389 bsi_insert_on_edge_immediate_loop. standard_iv_increment_position,
14390 ip_end_pos, ip_normal_pos, force_gimple_operand): Declare.
14391 * tree-gimple.c (is_gimple_formal_tmp_var): Accept ssa names.
14392 * tree-nested.c (build_addr): Export.
14393 * tree-optimize.c (init_tree_optimization_passes): Add
14394 pass_iv_optimize.
14395 * tree-pass.h (pass_iv_optimize): Declare.
14396 * tree-ssa-loop-im.c (for_each_index): Handle REALPART_EXPR and
14397 IMAGPART_EXPR.
14398 * tree-ssa-loop-manip.c (create_iv): Force the base to be acceptable
14399 as a phi node argument.
14400 (split_loop_exit_edge, bsi_insert_on_edge_immediate_loop,
14401 ip_end_pos, ip_normal_pos, standard_iv_increment_position): New
14402 functions.
14403 * tree-ssa-loop-niter.c (zero_p, unsigned_type_for): Export.
14404 * tree-ssa-loop.c (tree_ssa_loop_ivopts, gate_tree_ssa_loop_ivopts,
14405 pass_iv_optimize): New pass.
14406 * tree-ssa-operands.c (get_indirect_ref_operands): Handle REF_ORIGINAL.
14407 * tree-ssanames.c (release_ssa_name): Allow calling with var = NULL.
14408 * tree.c (build_int_cst_type, cst_and_fits_in_hwi): New functions.
14409 * tree.h (REF_ORIGINAL): New macro.
14410 (build_int_cst_type, unsigned_type_for, zero_p,
14411 cst_and_fits_in_hwi, build_addr): Declare.
14412 * doc/invoke.texi (-fivopts): Document.
14413 (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
14414 PARAM_IV_MAX_CONSIDERED_USES): Document.
14415 * doc/passes.texi: Document induction variable optimizations pass.
14416
14417 2004-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14418
14419 * builtin-attrs.def (ATTR_NOTHROW_SENTINEL_1): New.
14420 * builtins.def (BUILT_IN_EXECLE): Set ATTR_NOTHROW_SENTINEL_1.
14421 * c-common.c (c_common_attribute_table): Accept parameters to
14422 sentinel attribute.
14423 (check_function_sentinel, handle_sentinel_attribute): Likewise.
14424 * doc/extend.texi: Update accordingly.
14425
14426 2004-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14427
14428 * builtin-attrs.def (ATTR_SENTINEL, ATTR_SENTINEL_NOTHROW_LIST):
14429 New.
14430 * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP): Add `sentinel'
14431 attribute.
14432 * c-common.c (handle_sentinel_attribute, check_function_sentinel):
14433 New functions.
14434 (c_common_attribute_table): Add `sentinel' attribute.
14435 (check_function_arguments): Handle `sentinel' attribute.
14436 * doc/extend.texi: Document `sentinel' attribute.
14437
14438 2004-09-04 H.J. Lu <hongjiu.lu@intel.com>
14439
14440 * configure: Regenerated.
14441
14442 2004-09-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14443
14444 * gimplify.c (internal_get_tmp_var): Remove unused var CLASS.
14445
14446 * tree.c (save_expr): No longer TREE_READONLY.
14447
14448 2004-09-04 Jan Hubicka <jh@suse.cz>
14449
14450 * passes.c (rest_of_clean_state): Fix merge conflict made during
14451 commiting the patch.
14452
14453 2004-09-04 Jan Hubicka <jh@suse.cz>
14454
14455 * passes.c (rest_of_clean_state): Decompose the instruction stream.
14456
14457 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
14458
14459 * doc/md.texi (shift patterns): New anchor. Add reference to
14460 TARGET_SHIFT_TRUNCATION_MASK.
14461 * doc/tm.texi (TARGET_SHIFT_TRUNCATION_MASK): Document.
14462 * target.h (shift_truncation_mask): New target hook.
14463 * targhook.h (default_shift_truncation_mask): Declare.
14464 * targhook.c (default_shift_truncation_mask): Define.
14465 * target-def.h (TARGET_SHIFT_TRUNCATION_MASK): Define.
14466 (TARGET_INITIALIZER): Include it.
14467 * simplify-rtx.c (simplify_binary_operation): Combine ASHIFT, ASHIFTRT
14468 and LSHIFTRT cases. Truncate arg1 if SHIFT_COUNT_TRUNCATED, otherwise
14469 reject all out-of-range values. Fix sign-extension code for modes
14470 whose width is smaller than HOST_BITS_PER_WIDE_INT.
14471 * optabs.c (simplify_expand_binop, force_expand_binop): New functions.
14472 (expand_superword_shift, expand_subword_shift): Likewise.
14473 (expand_doubleword_shift_condmove, expand_doubleword_shift): Likewise.
14474 (expand_binop): Use them to implement double-word shifts.
14475 * config/arm/arm.c (arm_shift_truncation_mask): New function.
14476 (TARGET_SHIFT_TRUNCATION_MASK): Define.
14477
14478 2004-09-04 Jan Hubicka <jh@suse.cz>
14479
14480 * tree.c (iterate_hash_expr): Optimize, avoid use of iterative_hash_object.
14481 (mix): New macro copied from hashtab.c
14482 (iterative_hash_hashval_t, iterative_hash_pointer,
14483 iterative_hash_host_wide_int): New functions based on hashtab.c
14484 implementation.
14485
14486 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
14487
14488 * config/mips/mips.md (mask): New mode attribute.
14489 (zero_extendsidi2): Add memory alternative.
14490 (*zero_extendsidi2_mem): Delete.
14491 (zero_extend[qh]i[sd]i2): Redefine using :GPR and :SHORT. Use
14492 memory_operand in the TARGET_MIPS16 check.
14493 (*zero_extend[qh]i[sd]i2{,_mips16}): Name previously unnamed patterns.
14494 Redefine using :GPR and :SHORT.
14495 (zero_extendqihi2): Use memory_operand in the TARGET_MIPS16 check.
14496
14497 2004-09-04 Uros Bizjak <uros@kss-loka.si>
14498
14499 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_RINT{,F,L}
14500 using rint_optab.
14501 (expand_builtin): Expand BUILT_IN_RINT{,F,L} using
14502 expand_builtin_mathfn.
14503 * genopinit.c (optabs): Rename trunc_optab to btrunc_optab. Use
14504 btrunc?f patterns for btrunc_optab. Implement rint_optab using
14505 rint?f patterns.
14506 * optabs.c (init_optabs): Initialize rint_optab.
14507 * optabs.h (enum optab_index): Rename OTI_trunc to OTI_btrunc.
14508 Add new OTI_rint.
14509 (btrunc_optab): Rename macro from trunc_optab.
14510 (rint_optab): Define corresponding macro.
14511
14512 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT_FLOOR,
14513 UNSPEC_FRNDINT_CEIL, UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM.
14514
14515 * config/i386/i386-protos.h (emit_i387_cw_initialization):
14516 Change prototype. Add new int parameter.
14517 * config/i386/i386.c (emit_i387_cw_initialization):
14518 Handle new rounding modes.
14519
14520 * config/i386/i386.h (enum fp_cw_mode): Delete.
14521 (MODE_NEEDED): Handle new rounding modes.
14522 (EMIT_MODE_SET): Change condition to handle new rounding modes.
14523
14524 * config/i386/i386.md (UNSPEC_FRNDINT_FLOOR, UNSPEC_FRNDINT_CEIL,
14525 UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM): New unspecs to
14526 represent different rounding modes of frndint insn.
14527 (type): Add frndint type.
14528 (i387, length, memory): Handle this type.
14529 (i387_cw): New attribute definition.
14530 (*fix_truncdi_1, fix_truncdi_nomemory, fix_truncdi_memory,
14531 *fix_truncsi_1, fix_truncsi_nomemory, fix_truncsi_memory,
14532 *fix_trunchi_1, fix_trunchi_nomemory, fix_trunchi_memory):
14533 Add "i387_cw" attribute defined to "trunc".
14534 (x86_fnstcw_1): Remove comment.
14535 (*frndintxf2): Rename insn definition to frndintxf2. Move
14536 insn definition near rint?f2 expanders.
14537 (rintdf2, rintsf2, rintxf2): New expanders to implement rint,
14538 rintf and rintl built-ins as inline x87 intrinsics.
14539 (frndintxf2_floor): New pattern to implement floor rounding
14540 mode with frndint x87 instruction.
14541 (floordf2, floorsf2, floorxf2): New expanders to implement floor,
14542 floorf and floorl built-ins as inline x87 intrinsics.
14543 (frndintxf2_ceil): New pattern to implement ceil rounding
14544 mode with frndint x87 instruction.
14545 (ceildf2, ceilsf2, ceilxf2): New expanders to implement ceil,
14546 ceilf and ceill built-ins as inline x87 intrinsics.
14547 (frndintxf2_trunc): New pattern to implement trunc rounding
14548 mode with frndint x87 instruction.
14549 (btruncdf2, btruncsf2, btruncxf2): New expanders to implement trunc,
14550 truncf and truncl built-ins as inline x87 intrinsics.
14551 (frndintxf2_mask_pm): New pattern to implement rounding
14552 mode with exceptions with frndint x87 instruction.
14553 (nearbyintdf2, nearbyintsf2, nearbyintxf2): New expanders to
14554 implement nearbyint, nearbyintf and nearbyintl built-ins as
14555 inline x87 intrinsics.
14556
14557 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
14558
14559 * config/mips/mips.md (SHORT): New mode macro.
14560 (size): New mode attribute.
14561 (extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.
14562 (*extend[qh]i[sd]i2): New define_insn_and_split, combining previous
14563 *extend[qh]i[sd]i2 and *extend[qh]i[sd]i2_mem patterns. Use only if
14564 !ISA_HAS_SEB_SEH.
14565 (*extend[qh]i[sd]i2_se[bh]): New pattern, combining previous
14566 *extend[qh]isi2_hw patterns and extending them to di.
14567 (extendqihi2): Implement as define_insn_and_split that produces
14568 extendqisi2 after reload.
14569
14570 2004-09-03 Devang Patel <dpatel@apple.com>
14571
14572 * Makefile.in (OBJS-common): Add tree-if-conv.o
14573 (tree-if-conv.o): New rule.
14574 * cfgloop.c (flow_loop_exit_edges_find): Set EDGE_LOOP_EXIT flag.
14575 (get_loop_body_in_bfs_order): New.
14576 * cfgloop.h (get_loop_body_in_bfs_order): New.
14577 * tree-flow.h (enum move_pos): Move here from ..
14578 * tree-ssa-loop-im.c (enum move_pos): here.
14579 (movement_possibility): Make externally visible.
14580 * tree-optimize.c (init_tree_optimization_passes): New entry for
14581 if conversion pass.
14582 * tree-pass.h (pass_if_conversion): New.
14583 * tree-ssa-operands.c (get_expr_operands): Handle COND_EXPR.
14584 * tree-if-conv.c: New file.
14585 * doc/passes.texi: Document tree if-conversion pass.
14586 * doc/tree-ssa.texi: Same.
14587
14588 2004-09-03 H.J. Lu <hongjiu.lu@intel.com>
14589
14590 PR target/14925:
14591 Makefile.in (LIB2ADDEHSTATIC): New.
14592 (LIB2ADDEHSHARED): New.
14593 (LIBUNWIND): New.
14594 (LIBUNWINDDEP): New.
14595 (SHLIBUNWIND_LINK): New.
14596 (SHLIBUNWIND_INSTALL): New.
14597 (libgcc.mk): Pass LIB2ADDEHSTATIC, LIB2ADDEHSHARED, LIBUNWIND,
14598 LIBUNWINDDEP, SHLIBUNWIND_LINK and SHLIBUNWIND_INSTALL.
14599 (clean): Remove libunwind*
14600 (stage1-start): Remove and copy stage1/libunwind*.
14601 (stage2-start): Remove and copy stage2/libunwind*.
14602 (stage3-start): Remove and copy stage3/libunwind*.
14603 (stage4-start): Remove and copy stage4/libunwind*.
14604 (stageprofile-start): Remove and copy stageprofile/libunwind*.
14605 (stagefeedback-start): Remove and copy stagefeedback/libunwind*.
14606
14607 * config.gcc (ia64*-*-linux*): Always add t-libunwind to
14608 tmake_file. Add t-libunwind-elf and ia64/t-glibc-libunwind to
14609 tmake_file if --with-system-libunwind isn't used.
14610
14611 * config/ia64/t-glibc-libunwind: New file.
14612 * config/t-libunwind-elf: Likewise.
14613 * unwind-compat.c: Likewise.
14614 * unwind-compat.h: Likewise.
14615 * unwind-dw2-fde-compat.c: Likewise.
14616
14617 * config/ia64/t-glibc (LIB2ADDEH): Updated.
14618 * config/ia64/t-hpux (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
14619
14620 * config/ia64/unwind-ia64.c: Include "unwind-compat.h". Define
14621 aliases if needed.
14622 * unwind-dw2-fde-glibc.c: Likewise.
14623 * unwind-dw2.c: Likewise.
14624
14625 * config/t-libunwind (LIB2ADDEH): Updated.
14626 (LIB2ADDEHSTATIC): New.
14627 (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
14628 (TARGET_LIBGCC2_CFLAGS): Set to -DUSE_GAS_SYMVER.
14629
14630 * configure.ac: Change --enable-libunwind-exceptions to
14631 --with-system-libunwind. Don't define USE_LIBUNWIND_EXCEPTIONS.
14632 * configure: Regenerated.
14633 * config.in: Updated.
14634
14635 * doc/install.texi (ia64-*-linux): Require libunwind 0.98 or
14636 above and mention --with-system-libunwind.
14637 (ia64-*-hpux*): Mention --enable-libunwind-exceptions is
14638 removed in gcc 3.4.3 and later.
14639
14640 * gcc.c (init_spec): Add -lunwind to -lgcc_s if
14641 USE_LIBUNWIND_EXCEPTIONS is defined.
14642
14643 * mklibgcc.in: Support libunwind.
14644
14645 2004-09-03 H.J. Lu <hongjiu.lu@intel.com>
14646
14647 * config/i386/i386.c (x86_branch_hints): Remove m_PENT4 and
14648 m_NOCONA.
14649
14650 2004-09-03 Richard Henderson <rth@redhat.com>
14651
14652 PR middle-end/9997
14653 * cfgexpand.c (LOCAL_ALIGNMENT): Provide default.
14654 (STACK_ALIGNMENT_NEEDED, FRAME_GROWS_DOWNWARD): Likewise.
14655 (struct stack_var, EOC, stack_vars, stack_vars_alloc, stack_vars_num,
14656 stack_vars_sorted, stack_vars_conflict, stack_vars_conflict_alloc,
14657 frame_phase, get_decl_align_unit, add_stack_var, triangular_index,
14658 resize_stack_vars_conflict, add_stack_var_conflict,
14659 stack_var_conflict_p, add_alias_set_conflicts, stack_var_size_cmp,
14660 union_stack_vars, partition_stack_vars, dump_stack_var_partition,
14661 expand_one_stack_var_at, expand_stack_vars, expand_one_stack_var,
14662 expand_one_static_var, expand_one_hard_reg_var,
14663 expand_one_register_var, expand_one_error_var, defer_stack_allocation,
14664 expand_one_var, expand_used_vars_for_block, clear_tree_used): New.
14665 (expand_used_vars): Rewrite.
14666 * Makefile.in (cfgexpand.o): Update dependencies.
14667
14668 2004-09-04 Jan Hubicka <jh@suse.cz>
14669
14670 * cfg.c (free_edge): Use ggc_free.
14671 (expunge_block): Use ggc_free.
14672 * passes.c (rest_of_clean_state): Free after compilation.
14673 * tree-ssa.c (delete_tree_ssa): Free annotations; call release_defs
14674 * tree-ssanames.c (release_defs): Ignore non-SSA_NAME arguments.
14675
14676 2004-09-03 James E Wilson <wilson@specifixinc.com>
14677
14678 * tree-ssa-alias.c (may_be_aliased): Move TREE_STATIC check after
14679 DECL_EXTERNAL check.
14680
14681 2004-09-03 Eric Botcazou <ebotcazou@libertysurf.fr>
14682
14683 * final.c (output_in_slot): New global variable.
14684 (final_scan_insn): Add new state '2' to the 'nopeepholes' parameter.
14685 Pass 2 as 'nopeepholes' to self for insns in a SEQUENCE. Set
14686 'output_in_slot' before invoking output_asm_insn.
14687 (output_asm_insn): Add a space after the tab if 'output_in_slot'
14688 is set.
14689 * config/sparc/sparc.c (output_return): Pass 2 as 'nopeepholes' to
14690 final_scan_insn.
14691 (output_sibcall): Likewise.
14692
14693 2004-09-03 Jan Hubicka <jh@suse.cz>
14694
14695 * tree-ssa-operands.c (fini_ssa_operands): ggc_free unused arrays.
14696 * tree-ssanames (init_ssanames): Likewise.
14697
14698 2004-09-03 Ziemowit Laski <zlaski@apple.com>
14699
14700 * stub-objc.c (objc_is_id, objc_declare_alias, objc_declare_class,
14701 objc_declare_protocols, objc_start_protocol,
14702 objc_start_class_interface, objc_start_category_interface,
14703 objc_continue_interface, objc_finish_interface,
14704 objc_add_instance_variable, objc_set_visibility, objc_set_method_type,
14705 objc_start_class_implementation, objc_start_category_implementation,
14706 objc_continue_implementation, objc_finish_implementation,
14707 objc_add_method_declaration, objc_start_method_definition,
14708 objc_finish_method_definition, objc_build_keyword_decl,
14709 objc_build_method_signature, objc_build_encode_expr,
14710 objc_build_protocol_expr, objc_build_selector_expr,
14711 objc_build_message_expr, objc_build_string_object,
14712 objc_get_class_reference, objc_get_protocol_qualified_type,
14713 objc_static_init_needed_p, objc_generate_static_init_call): New stubs.
14714
14715 2004-09-03 James E Wilson <wilson@specifixinc.com>
14716
14717 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips3d.
14718
14719 * config/mips/generic.md (generic_frecip_fsqrt_step): New.
14720 * config/mips/mips-ps-3d.md (mips_rsqrt1_<fmt>): Use frsqrt1 type.
14721 (mips_rsqrt2_<fmt>): Use frsqrt2 type.
14722 (mips_recip1_<fmt>): Use frdiv1 type.
14723 (mips_recip2_<fmt>): Use frdiv2 type.
14724 * config/mips/mips.md (type): Add frdiv1, frdiv2, frsqrt1, frsqrt2.
14725 * config/mips/sb1.md (ir_sb1_fpu_2pipes, ir_sb1_fpu_1pipe): Add frdiv1
14726 and frsqrt1.
14727 (ir_sb1_fpu_step2_2pipes, ir_sb1_fpu_step2_1pipe): New.
14728
14729 2004-09-03 Daniel Jacobowitz <dan@debian.org>
14730
14731 * reload.c (find_reloads): Swap operand_loc pointers for
14732 find_dummy_reload if we have swapped two operands.
14733
14734 2004-09-03 Hans-Peter Nilsson <hp@axis.com>
14735
14736 * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn
14737 to get the tablejump-insn before the jump-table label.
14738
14739 2004-09-03 Ziemowit Laski <zlaski@apple.com>
14740
14741 * c-common.h (objc_is_id, objc_declare_alias, objc_declare_class,
14742 objc_declare_protocols, objc_build_message_expr,
14743 objc_finish_message_expr, objc_build_selector_expr,
14744 objc_build_protocol_expr, objc_build_encode_expr,
14745 objc_build_string_object, objc_get_protocol_qualified_type,
14746 objc_get_class_reference, objc_get_class_ivars,
14747 objc_start_class_interface, objc_start_category_interface,
14748 objc_start_protocol, objc_continue_interface, objc_finish_interface,
14749 objc_start_class_implementation, objc_start_category_implementation,
14750 objc_continue_implementation, objc_finish_implementation,
14751 objc_set_visibility, objc_set_method_type, objc_build_method_signature,
14752 objc_add_method_declaration, objc_start_method_definition,
14753 objc_finish_method_definition, objc_add_instance_variable,
14754 objc_build_keyword_decl, objc_build_throw_stmt, objc_begin_try_stmt,
14755 objc_finish_try_stmt, objc_begin_catch_clause,
14756 objc_finish_catch_clause, objc_build_finally_clause,
14757 objc_build_synchronized, objc_static_init_needed_p,
14758 objc_generate_static_init_call): New prototypes.
14759
14760 2004-09-03 Steve Ellcey <sje@cup.hp.com>
14761
14762 * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL even if there
14763 is only one reg.
14764 (ia64_function_value): Ditto.
14765
14766 2004-09-03 Jan Beulich <jbeulich@novell.com>
14767
14768 * config.gcc: Resurrect NetWare as a target. Handle special case of
14769 Novell linker to be used (specified through --with-ld=) and threading
14770 model of either Posix (default) or NKS.
14771 * config/i386/i386.c (ix86_return_pops_args): Conditionalize popping
14772 of incoming hidden argument on KEEP_AGGREGATE_RETURN_POINTER.
14773 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): New.
14774 * config/i386/netware.c, config/i386/netware.h: New.
14775 * config/i386/nwld.c, config/i386/nwld.h: New.
14776 * config/i386/netware-crt0.c: New.
14777 * config/i386/netware-libgcc.c: New.
14778 * config/i386/netware-libgcc.def: New.
14779 * config/i386/netware-libgcc.exp: New.
14780 * config/i386/t-netware, config/i386/t-nwld: New.
14781 * gthr-nks.h: New.
14782 * doc/install.texi: Document NKS threading model.
14783
14784 2004-09-03 Jan Beulich <jbeulich@novell.com>
14785
14786 PR c/7054
14787 * defaults.h (TARGET_DEFAULT_PACK_STRUCT): Provide default.
14788 * tree.h (initial_max_fld_align): Declare
14789 * stor-layout.c (initial_max_fld_align): Define and initialize.
14790 (maximum_field_alignment): Initialize to the same value.
14791 * common.opt: Add -fpack-struct= variant of switch.
14792 * opts.c: Handle -fpack-struct= variant of switch.
14793 * c-pragma.c: Change #pragma pack() handling so that it becomes
14794 compatible to other compilers: accept individual 'push' argument,
14795 make final pop restore (command line) default, correct interaction
14796 of push/pop and sole specification of a new alignment (so that the
14797 sequence #pragma pack(push) - #pragma pack(<n>) becomes identical
14798 to #pragma pack(push, <n>).
14799 * doc/extend.texi: New node "Structure-Packing Pragmas" under
14800 "Pragmas", describing #pragma pack.
14801 * doc/invoke.texi: Document -fpack-struct=<n> variant of switch.
14802 * doc/tm.texi: Adjust description for HANDLE_PRAGMA_PACK_PUSH_POP.
14803 Document new TARGET_DEFAULT_PACK_STRUCT.
14804
14805 2004-09-03 Devang Patel <dpatel@apple.com>
14806
14807 * dwarf2out.c (gen_field_die). Equate decl number to die.
14808
14809 2004-09-03 Vladimir Makarov <vmakarov@redhat.com>
14810
14811 PR target/15832
14812 * global.c (modify_reg_pav): New function.
14813 (make_accurate_live_analysis): Call the new function. Move pavin
14814 modification by earlyclobber set into the new function.
14815
14816 2004-09-03 Andreas Schwab <schwab@suse.de>
14817
14818 * config/m68k/m68k.c (output_andsi3): Use -1 instead of
14819 (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
14820 extended.
14821
14822 2004-09-02 Jan Beulich <jbeulich@novell.com>
14823
14824 * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
14825 * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
14826 not unwind code specific ones.
14827 (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
14828 Remove unwind code specific dependencies.
14829 (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
14830 Remove gbl-ctors.h.
14831 Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
14832 LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
14833 * tsystem.h: Declare memcpy and memset when inhibit_libc.
14834
14835 2004-09-02 Roman Zippel <zippel@linux-m68k.org>
14836
14837 * combine.c (try_combine): Delay modifying of insns which cannot
14838 be easily undone.
14839
14840 2004-09-02 Daniel Berlin <dberlin@dberlin.org>
14841
14842 * gcc/common.opt: Rename ivcanon to tree-loop-ivcanon, tree-lim to
14843 tree-loop-im.
14844 * gcc/tree-ssa-loop.c: Ditto
14845 * gcc/tree-ssa-loop-ivcanon.c: Ditto
14846 * gcc/doc/invoke.texi: Ditto.
14847
14848 2004-09-02 Ziemowit Laski <zlaski@apple.com>
14849
14850 * c-decl.c (store_parm_decls_newstyle): Make static.
14851 (store_parm_decls_from): New function.
14852 * c-tree.h (store_parm_decls_newstyle): Remove prototype.
14853 (store_parm_decls_from): New prototype.
14854
14855 2004-09-02 David Edelsohn <edelsohn@gnu.org>
14856
14857 * config/rs6000/rs6000.c (expand_block_move): Use SImode and
14858 HImode with STRICT_ALIGNMENT.
14859
14860 2004-09-02 Mark Mitchell <mark@codesourcery.com>
14861
14862 * config/arm/bpabi.h (TARGET_BPABI_CPP_BUILTINS): Define.
14863 (TARGET_OS_CPP_BUILTINS): Likewise.
14864 * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Include
14865 TARGET_BPABI_CPP_BUILTINS.
14866
14867 2004-09-02 Roman Zippel <zippel@linux-m68k.org>
14868
14869 * combine.c (distribute_notes): Don't add REG_LABEL to jump insn.
14870
14871 2004-09-02 Eric Christopher <echristo@redhat.com>
14872
14873 * builtins.c (expand_builtin_cabs): Delete.
14874 (expand_builtin): If unable to fold the values do a normal
14875 library call for builtin_cab*.
14876 (fold_builtin_cabs): Depend on optimize and optimize_size.
14877 * optabs.c (expand_cmplxdiv_straight): Delete.
14878 (expand_cmplxdiv_wide): Ditto.
14879 (expand_vector_binop): Ditto.
14880 (expand_vector_unop): Ditto.
14881 (expand_complex_abs): Delete.
14882 (expand_binop): Remove calls to above functions.
14883 Remove open coding of complex arithmetic.
14884 (expand_unop): Ditto.
14885 * optabs.h: Remove prototypes.
14886
14887 2004-09-02 Ziemowit Laski <zlaski@apple.com>
14888
14889 * c-decl.c (store_parm_decls_newstyle): Make externally visible.
14890 * c-tree.h (store_parm_decls_newstyle): New prototype.
14891
14892 2004-09-02 Geoffrey Keating <geoffk@apple.com>
14893
14894 * config/rs6000/rs6000.c (expand_block_clear): Use vector
14895 instructions if available.
14896 (expand_block_move): Likewise.
14897
14898 2004-09-03 Jan Hubicka <jh@suse.cz>
14899
14900 * rtl.def (RANGE_INFO, RANGE_REG, RANGE_VAR, RANGE_LIVE): Kill.
14901
14902 2004-09-02 Mark Mitchell <mark@codesourcery.com>
14903
14904 * config/arm/symbian.h (LIB_SPEC): Define to empty.
14905 * config/arm/t-symbian (SHLIB_LC): Likewise.
14906
14907 2004-09-02 Paul Brook <paul@codesourcery.com>
14908
14909 * config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
14910
14911 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
14912
14913 * config/mips/mips.c (mips_classify_symbol, mips_fetch_insns):
14914 (mips_restore_gp, mips_set_return_address, mips_expand_prologue)
14915 (mips16_fp_args, mips_avoid_hazard): Replace abort with gcc_assert.
14916 (build_mips16_call_stub): Likewise. Remove daft CALL_INSN checks.
14917 (mips_issue_rate): Remove unreachable abort.
14918 (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
14919 (mips_output_move, mips_relational_operand_ok_p, mips_arg_info)
14920 (mips_block_move_straight, print_operand_address, mips_file_start)
14921 (mips_initial_elimination_offset, mips16_fp_args, dump_constants_1)
14922 (mips_output_conditional_branch, mips_expand_builtin_direct)
14923 (mips_expand_builtin_compare): Replace abort with gcc_unreachable.
14924 * config/mips/mips.md (rotr<mode>3, consttable_float): Replace abort
14925 with gcc_assert.
14926
14927 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
14928
14929 * config/mips/mips.md (*lea_high64): Change split condition to
14930 flow2_completed. Add a peephole2 to generate a more parallel version.
14931
14932 2004-09-02 Jan Hubicka <jh@suse.cz>
14933
14934 * gimplify.c (gimplify_compound_lval): Move "stack" varray out of
14935 GGC.
14936
14937 * ggc-page.c: include tree-flow.h.
14938 (extra_order_size_table): Add stmt_ann_d.
14939 (STAT_LABEL): Rename from ....
14940 (LABEL): ... this one.
14941 * Makefile.in (ggc-page.o): Add dependency.
14942
14943 * ggc-common.c (ggc_force_collect): New global variable.
14944 (loc_description): Add fields "freed", "collected"
14945 (ptr_hash): New static hash
14946 (ptr_hash_entry): New structure.
14947 (hash_ptr,eq_ptr,ggc_prune_ptr): New static functions.
14948 (ggc_record_overhead): Take ptr argument, record it
14949 (ggc_prune_overhead_list, ggc_free_overhead): New functions.
14950 (cmp_statistics): Imrove sorting.
14951 (dump_ggc_loc_statistics): Output newly collected statistics
14952 * ggc-page.c (ggc_alloc): Update call of ggc_record_overhead
14953 (ggc_free): Call ggc_free_overhead.
14954 (ggc_collect): Force collection when asked to be forced.
14955 (ggc_collect): Call ggc_prune_overhead_list.
14956 * ggc.h (ggc_force_collect): Declare
14957 (ggc_record_overhead): Update prototype.
14958 (ggc_free_overhead, ggc_prune_overhead_list): Declare.
14959
14960 2004-09-02 James E Wilson <wilson@specifixinc.com>
14961
14962 * common.opt (ftrapping-math): Default to on.
14963
14964 2004-09-02 Richard Earnshaw <rearnsha@arm.com>
14965
14966 * arm/predicates.md (arm_reload_memory_operand): Allow MEM.
14967
14968 2004-09-02 Denis Chertykov <denisc@overta.ru>
14969
14970 PR target/16884
14971 * config/avr/avr.md ("movmemhi"): Substitute match_dup to
14972 match_scratch.
14973 (*movmemqi_insn): Likewise.
14974 (*movmemhi): Likewise.
14975 (clrmemhi): Likewise.
14976 (*clrmemqi): Likewise.
14977 (*clrmemhi): Likewise.
14978
14979 2004-09-02 Paul Brook <paul@codesourcery.com>
14980
14981 * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
14982 default_use_cxa_atexit=yes.
14983
14984 2004-09-02 Alan Modra <amodra@bigpond.net.au>
14985
14986 * config/rs6000/linux64.h: Don't include signal.h or sys/ucontext.h.
14987 (struct kernel_old_ucontext): Delete.
14988 (struct gcc_pt_regs, gcc_sigcontext, gcc_ucontext): New.
14989 (MD_FALLBACK_FRAME_STATE_FOR): Use gcc_* structs. Only define
14990 when IN_LIGGCC2.
14991
14992 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
14993
14994 * toplev.c (process_options): Fix typo.
14995
14996 2004-09-01 Richard Henderson <rth@redhat.com>
14997
14998 PR middle-end/17258
14999 * calls.c (initialize_argument_information): Tighten pass-through
15000 conditions for pass-by-reference. Remove dead TARGET_EXPR code.
15001 Use build_fold_addr_expr.
15002 (emit_library_call_value_1): Use build_fold_addr_expr. Remove code
15003 that assumes ADDR_EXPR allocates stack space.
15004 * fold-const.c (build_fold_addr_expr_with_type): Look through
15005 WITH_SIZE_EXPR.
15006
15007 2004-09-01 Dan Nicolaescu <dann@ics.uci.edu>
15008
15009 * gengenrtl.c (gendef): Use rtx_alloc, don't do PUT_CODE.
15010 * ggc.h (ggc_alloc_rtx): Delete.
15011
15012 2004-09-01 Roger Sayle <roger@eyesopen.com>
15013
15014 * expmed.c (enum alg_code): Remove long unused enumeration values.
15015 (struct mult_cost): New structure to hold the "score" of a synthetic
15016 multiply sequence, including both a rtx_cost and a latency field.
15017 (MULT_COST_LESS): New macro to compare mult_cost to a constant.
15018 (CHEAPER_MULT_COST): New macro to compare two mult_costs.
15019 (struct algorithm): Change type of cost field to be mult_cost.
15020 (synth_mult): Change type of cost_limit argument to be a
15021 pointer to a mult_cost. Update all cost comparisons to use the
15022 new mult_cost infrastructure. For alg_add_factor and
15023 alg_sub_factor operations, latency is lower than the rtx_cost.
15024 (choose_mult_variant): Update calls to synth_mult. Perform
15025 cost comparisons using the new mult_cost infrastructure.
15026 (expand_mult_highpart): Use alg.cost.cost instead of alg.cost
15027 to optain the total rtx_cost of a synth_mult "algorithm".
15028
15029 2004-09-01 David Edelsohn <edelsohn@gnu.org>
15030
15031 * config/rs6000/power4.md: Increase store latency to 12.
15032 * config/rs6000/power5.md: Same.
15033
15034 2004-09-01 James E Wilson <wilson@specifixinc.com>
15035
15036 PR target/14064
15037 * config/avr/avr.c (avr_unique_section): Delete prototype and
15038 definition.
15039 (TARGET_ASM_UNIQUE_SECTION): Delete.
15040
15041 2004-09-01 Ziemowit Laski <zlaski@apple.com>
15042
15043 * c-parse.in (primary): Call objc_build_message_expr(),
15044 objc_build_selector_expr(), objc_build_protocol_expr(),
15045 objc_build_encode_expr() and objc_build_string_object() instead of
15046 build_message_expr(), build_selector_expr(), build_protocol_expr(),
15047 build_encode_expr() and build_objc_string_object(), respectively.
15048 (component_decl_list2): Call objc_get_class_ivars() instead of
15049 get_class_ivars_from_name().
15050 (keyworddecl): Call objc_build_keyword_decl() instead of
15051 build_keyword_decl().
15052 (receiver): Call objc_get_class_reference() instead of
15053 get_class_reference().
15054 (reswords): Add blank line before @@ifobjc section, for clarity.
15055
15056 2002-09-01 Fariborz Jahanian <fjahanian@apple.com>
15057
15058 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
15059 to Altivec vetors.
15060
15061 2004-09-01 Wu Yongwei <adah@sh163.net>
15062 Danny Smith <dannysmith@users.sourceforge.net>
15063
15064 * gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
15065 not Windows 'DWORD'.
15066 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
15067 (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
15068 (__gthr_win32_recursive_mutex_init_function): Add prototype for
15069 __GTHREAD_HIDE_WIN32API case..
15070 (__gthr_win32_recursive_mutex_lock): Likewise.
15071 (__gthr_win32_recursive_mutex_trylock): Likewise.
15072 (__gthr_win32_recursive_mutex_unlock): Likewise.
15073 (__gthread_recursive_mutex_init_function); Add definition for
15074 __GTHREAD_HIDE_WIN32API case.
15075 (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
15076 * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
15077 call to InterlockedDecrement.
15078
15079 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15080
15081 * tree-tailcall.c (find_tail_calls): Also fail is statement has
15082 volatile operands.
15083
15084 * tree-ssa.c (propagate_into_addr): Properly test for LHR.
15085
15086 * doc/c-tree.texi: Document new operands for ARRAY_REF and
15087 COMPONENT_REF.
15088
15089 2004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15090
15091 * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
15092 * common.opt (fspeculative-prefetching): New.
15093 * flags.h (flag_speculative_prefetching_set): Declare.
15094 * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
15095 values.
15096 * opts.c (flag_sepculative_prefetching_set): New variable.
15097 (common_handle_option): Handle -fspeculative-prefetching.
15098 * passes.c (rest_of_compilation): Ditto.
15099 * profile.c (instrument_values, compute_value_histograms, branch_prob):
15100 Use vectors instead of arrays.
15101 * toplev.c (process_options): Handle -fspeculative-prefetching.
15102 * rtl-profile.c: Include ggc.h.
15103 (rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
15104 rtl_gen_one_value_profiler_no_edge_manipulation,
15105 rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
15106 argument changed.
15107 * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
15108 tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
15109 argument changed.
15110 * value-prof.c: Include ggc.h.
15111 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
15112 macros.
15113 (insn_prefetch_values_to_profile, find_mem_reference_1,
15114 find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
15115 speculative_prefetching_transform): New.
15116 (value_profile_transformations): Call speculative_prefetching_transform.
15117 (insn_values_to_profile): Call insn_prefetch_values_to_profile.
15118 (insn_divmod_values_to_profile, rtl_find_values_to_profile,
15119 tree_find_values_to_profile, find_values to profile): Use vectors
15120 instead of arrays.
15121 (free_profiled_values): Removed.
15122 * value-prof.h (struct histogram_value): Renamed to
15123 struct histogram_value_t.
15124 (histogram_value, histogram_values): New types.
15125 (find_values_to_profile): Declaration changed.
15126 (free_profiled_values): Removed.
15127 (struct profile_hooks): Type of argument of the hooks changed to
15128 histogram_value.
15129 * doc/invoke.texi (-fspeculative-prefetching): Document.
15130
15131 2004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15132
15133 PR rtl-optimization/16408
15134 * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.
15135
15136 2004-09-01 Richard Henderson <rth@redhat.com>
15137
15138 * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
15139 (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
15140
15141 2004-09-01 Jakub Jelinek <jakub@redhat.com>
15142
15143 * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
15144
15145 2004-09-01 Mike Stump <mrs@apple.com>
15146
15147 * config/darwin.c (machopic_symbol_defined_p): In addition to
15148 being SYMBOL_REF_LOCAL_P, a symbol must also be
15149 ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
15150 defined in this output file, or translation unit in the case
15151 of IMA not being used.
15152 (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
15153 never need .indirect_symbol when indirecting.
15154
15155 2004-09-01 Jakub Jelinek <jakub@redhat.com>
15156
15157 * Makefile.in (bb-reorder.o): Add several dependencies.
15158
15159 2004-09-01 Jakub Jelinek <jakub@redhat.com>
15160
15161 * fold-const.c (operand_equal_p): Require equal sign also for
15162 FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
15163
15164 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
15165
15166 * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
15167 for use in configargs.h. Put the cname in a separate variable. Use
15168 that to set target_cpu_default2.
15169
15170 2004-09-01 J"orn Rennecke <joern.rennecke@superh.com>
15171 Nick Clifton <nickc@redhat.com>
15172
15173 * config/sh/sh.md ("length"): Increase branch length when
15174 SH1 pic code to 18: 12 bytes of instructions, 4 byte for the
15175 constant, 2 byte for aligning the constant.
15176
15177 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
15178
15179 * arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
15180 CPU.
15181 (arm7tdmi-s): New CPU name.
15182 * arm/arm.c (ARM_CORE): Update for new format.
15183 * arm/arm.h (ARM_CORE): Likewise.
15184 * arm/gentune.sh: Update for extra field.
15185 * config.gcc: Likewise.
15186 * arm/arm-tune.md: Regenerate.
15187 * doc/invoke.texi: Document the real processor names for ARM cpus.
15188
15189 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
15190
15191 * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
15192 (floatdidf): New functions.
15193 * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
15194 (floatdisf): New functions.
15195 * t-arm-elf: Use them.
15196
15197 2004-09-01 Ziemowit Laski <zlaski@apple.com>
15198
15199 * c-common.h (lookup_interface): Remove prototype.
15200 (is_class_name): Rename to objc_is_class_name.
15201 (lookup_objc_ivar): Rename to objc_lookup_ivar.
15202 (get_current_scope): Rename to objc_get_current_scope.
15203 * c-decl.c (get_current_scope): Rename to objc_get_current_scope.
15204 * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
15205 (yylexname): Call objc_is_class_name() instead of is_class_name().
15206 * c-typeck.c (build_external_ref): Call objc_lookup_ivar()
15207 instead of lookup_objc_ivar().
15208 * stub-objc.c (lookup_interface): Remove stub.
15209 (is_class_name): Rename to objc_is_class_name.
15210 (lookup_objc_ivar): Rename to objc_lookup_ivar.
15211
15212 2004-08-31 Mark Mitchell <mark@codesourcery.com>
15213
15214 * config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
15215 * config/arm/lib1funcs.asm: Do not include supplemental .S files
15216 when compiling for Symbian.
15217 * config/arm/symbian.h (RENAME_LIBRARY): New macro.
15218 (TARGET_OS_CPP_BUILTINS): Likewise.
15219 * config/arm/t-symbian (LIB1ASMFUNCS): Define.
15220
15221 2004-08-31 Stan Shebs <shebs@apple.com>
15222
15223 * toplev.c (process_options): Ensure debug_hooks is initialized.
15224
15225 2004-08-31 Mark Mitchell <mark@codesourcery.com>
15226
15227 * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
15228 * target.h (cxx): Add export_class_data.
15229 * config/arm/arm.c (arm_cxx_export_class_data): New function.
15230 (TARGET_CXX_EXPORT_CLASS_DATA): Use it.
15231 * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Document it.
15232
15233 2004-08-31 Kaz Kojima <kkojima@gcc.gnu.org>
15234
15235 * config/sh/sh.c (output_branch): Check the insn length possibly
15236 in the delayed slot.
15237
15238 2004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15239
15240 * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
15241 blank after ')'.
15242 (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.
15243
15244 * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
15245 (c_sizeof_of_alignof_type): Likewise.
15246 * expr.c (array_ref_element_size): Likewise.
15247 (highest_pow2_factor_for_target): Likewise.
15248 * gimplify.c (canonicalize_addr_expr): Likewise.
15249 (gimplify_compound_lval): Likewise.
15250 * stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
15251 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
15252 * varasm.c (assemble_variable): Likewise.
15253 (output_constant_def_contents): Alignments are unsigned.
15254
15255 2004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15256 Jeff Law <law@redhat.com>
15257
15258 * tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
15259 gets modified.
15260
15261 2004-08-31 Mark Mitchell <mark@codesourcery.com>
15262
15263 * hooks.c (hook_bool_void_true): New function.
15264 * hooks.h (hook_bool_void_true): Declare.
15265 * target-def.h (TARGET_CXX): Add
15266 TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.
15267 * target.h (struct cxx): Add key_method_may_be_inline.
15268 * config/arm/arm.c (arm_cxx_key_method_may_be_inline): New
15269 function.
15270 (TARGET_CXX_KEY_METHOD_MAY_BE_INLINE): New macro.
15271 * config/arm/bpabi.h: Use __THUMB_INTERWORK__ instead of
15272 __THUMB_INTERWORK.
15273
15274 2004-08-31 Denis Chertykov <denisc@overta.ru>
15275
15276 PR target/15417
15277 * config/avr/avr.c (avr_hard_regno_mode_ok): Enable usage of
15278 frame pointer register only in Pmode while reload in progress.
15279
15280 2004-08-31 Stephane Carrez <stcarrez@nerim.fr>
15281
15282 PR target/15334
15283 * config/m68hc11/m68hc11.c (m68hc11_override_options): Disable -fweb
15284 because it breaks the 32-bit shift patterns that rely on a match_dup.
15285
15286 2004-08-31 Matt Austern <austern@apple.com>
15287
15288 * config/darwin.c (darwin_make_decl_one_only): Allocate section
15289 names once per compilation, instead of once per symbol.
15290
15291 2004-08-31 Paolo Bonzini <bonzini@gnu.org>
15292
15293 * Makefile.in (build_subdir): New substitution.
15294 (fixinc.sh): Simplify heavily since fixincludes is already built.
15295 (stmp-fixinc): Depend on specs.ready.
15296 (install-mkheaders): Use new location of fixincludes.
15297 (clean): Do not descend into fixinc.
15298 (FORBUILD): Replace with ../$(build_subdir).
15299 * configure.ac (build_subdir): Substitute.
15300 (FORBUILD): Do not set.
15301 (all_outputs): Remove fixinc/Makefile.
15302 (default commands): Do not create links in fixinc.
15303 * mkfixinc.sh: New, from fixinc/mkfixinc.sh without
15304 the fixincludes configuration steps and substituting
15305 @FIXINCL@ in fixinc.in.
15306 * fixinc.in: New, from fixinc/fixincl.sh.
15307
15308 * fixinc/*: Removed.
15309
15310 2004-08-31 Joseph S. Myers <jsm@polyomino.org.uk>
15311
15312 * attribs.c (strip_attrs): Remove.
15313 (split_specs_attrs): Move ...
15314 * c-decl.c: ... to here.
15315 * tree.h (split_specs_attrs, strip_attrs): Remove.
15316 * c-tree.h (split_specs_attrs): Declare.
15317
15318 2004-08-31 Richard Sandiford <rsandifo@redhat.com>
15319
15320 * read-rtl.c: Disable RTL checking.
15321 (apply_macro_to_rtx): Use XTMPL to access 'T' fields.
15322
15323 2004-08-31 Richard Sandiford <rsandifo@redhat.com>
15324
15325 * config/mips/mips.md (fcond): New code macro and attribute.
15326 (sunordered_[sd]f, suneq_[sd]f, sunlt_[sd]f, sunle_[sd]f)
15327 (seq_[sd]f, slt_[sd]f, sle_[sd]f): Redefine using :SCALARF and fcond.
15328 (sgt_[sd]f, sge_[sd]f): Redefine using :SCALARF.
15329
15330 2004-08-30 Mark Mitchell <mark@codesourcery.com>
15331
15332 Revert:
15333 2004-08-29 Mark Mitchell <mark@codesourcery.com>
15334 PR rtl-optimization/16590
15335 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
15336
15337 2004-08-30 Andrew Pinski <apinski@apple.com>
15338
15339 * hard-reg-set.h:
15340 s/HOST_BITS_PER_WIDES_FAST_INT/HOST_BITS_PER_WIDEST_FAST_INT.
15341 * ChangeLog: Fix previous ChangeLog entry.
15342
15343 PR rtl-opt/13987
15344 * config.host (use_long_long_for_widest_fast_int): New, default is
15345 off.
15346 (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int.
15347 * configure.ac: If use_long_long_for_widest_fast_int, then
15348 define USE_LONG_LONG_FOR_WIDEST_FAST_INT.
15349 * configure: Regenerate.
15350 * config.in: Regenerate.
15351 * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT):
15352 New: widest integer type supported efficiently in hardware for the
15353 host.
15354 * sbitmap.h (SBITMAP_ELT_BITS): Define based on
15355 HOST_BITS_PER_WIDEST_FAST_INT.
15356 (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT.
15357 * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on
15358 HOST_WIDEST_FAST_INT
15359 instead of HOST_WIDE_INT.
15360 (HARD_REG_SET_LONGS): Likewise.
15361 (UHOST_BITS_PER_WIDE_INT): Likewise.
15362 Change the checks for the fast cases to be based on
15363 HOST_BITS_PER_WIDEST_FAST_INT instead of HOST_BITS_PER_WIDE_INT.
15364
15365 2004-08-30 Steven Bosscher <stevenb@suse.de>
15366
15367 * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
15368 not the pointers.
15369
15370 2004-08-30 Geoffrey Keating <geoffk@apple.com>
15371
15372 PR 12738
15373 PR 17205
15374 Radar 3460526
15375 Radar 3775729
15376 * c-decl.c (grokdeclarator): Produce error for 'static' on local
15377 function declaration.
15378
15379 2004-08-30 Richard Henderson <rth@redhat.com>
15380
15381 * expr.c (array_ref_element_size): Force aligned_size back to
15382 sizetype.
15383 (component_ref_field_offset): Similarly for aligned_offset.
15384 * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
15385 low-bound, element-size, field-offset fields rather than
15386 computed values.
15387
15388 2004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
15389
15390 * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
15391 redundant code.
15392
15393 2004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
15394
15395 * c-tree.h (struct language_function): Add arg_info element.
15396 * c-decl.c (current_function_arg_info): New.
15397 (grokdeclarator, store_parm_decls): Use it instead of
15398 DECL_ARGUMENTS.
15399 (c_push_function_context, c_pop_function_context): Save and
15400 restore it.
15401
15402 2004-08-30 Richard Henderson <rth@redhat.com>
15403
15404 * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
15405 COMPONENT_REF to pointer arithmetic.
15406 * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
15407 constant "c" as a valid constant initializer. Allow narrowing of
15408 differences against the same base object, for any base object.
15409
15410 2004-08-30 Richard Henderson <rth@redhat.com>
15411
15412 * expr.c (expand_expr_addr_expr): New.
15413 (expand_expr_real_1) <case ADDR_EXPR>: Use it.
15414
15415 2004-08-30 Richard Sandiford <rsandifo@redhat.com>
15416
15417 * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
15418 (mips_fp_condition): New enum.
15419 (mips_fp_conditions): New array.
15420 (print_fcc_operand): Delete.
15421 (print_operand): Remove %V, %v and %Q. Redefine %Z so that it prints
15422 the operand and comma if and only if ISA_HAS_8CC. Add %Y.
15423 (builtin_description): Add "cond" field.
15424 (DIRECT_BUILTIN): Initialize it.
15425 (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
15426 into INSN and CODE. Initialize the "cond" field.
15427 (CMP_BUILTINS): Update accordingly.
15428 (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
15429 (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
15430 mips_fp_condition as argument. Make it the final operand of the
15431 comparison instruction.
15432 (mips_expand_builtin): Update accordingly.
15433 * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
15434 (UNSPEC_C, UNSPEC_CABS): New constants. Shuffle others to fill
15435 the gaps.
15436 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
15437 Don't use the 'Q' operand prefix; just print the operand normally.
15438 (mips_cabs_*, mips_c_*): Delete, replacing with...
15439 (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
15440 patterns. Split the 4s versions into 2 ps patterns after reload.
15441
15442 2004-08-30 Richard Henderson <rth@redhat.com>
15443
15444 * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
15445 assuming an ADDR_EXPR is non-null.
15446
15447 2004-08-30 Jason Merrill <jason@redhat.com>
15448
15449 * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
15450
15451 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
15452
15453 * alias.c (mems_in_disjoint_alias_sets_p, record_alias_subset,
15454 record_set, rtx_equal_for_memref_p, init_alias_analysis): Use
15455 gcc_assert and gcc_unreachable instead of abort.
15456 * alloc-pool.c (abort, fancy_abort): Remove.
15457 (create_alloc_pool, free_alloc_pool, pool_alloc, pool_free): Use
15458 gcc_assert or gcc_unreachable.
15459 * attribs.c (init_attributes, decl_attributes): Likewise.
15460 * bb-reorder.c (FREE, find_traces_1_round, copy_bb,
15461 mark_bb_for_unlikely_executed_section,
15462 add_labels_and_missing_jumps, fix_crossing_conditional_branches,
15463 fix_crossing_unconditional_branches): Likewise.
15464 * bitmap.c (bitmap_first_set_bit, bitmap_last_set_bit,
15465 bitmap_operation): Likewise.
15466 * bt-load.c (insn_sets_btr_p, augment_live_range,
15467 move_btr_def): Likewise.
15468 * builtins.c (c_readstr, expand_builtin_longjmp, apply_args_size,
15469 apply_result_size, expand_builtin_apply, expand_builtin_mathfn,
15470 expand_builtin_mathfn_2, expand_builtin_mathfn_3,
15471 builtin_memcpy_read_str, expand_movstr, expand_builtin_stpcpy,
15472 expand_builtin_memcmp, expand_builtin_args_info,
15473 std_gimplify_va_arg_expr, expand_builtin_unop,
15474 expand_builtin_fputs, expand_builtin_profile_func,
15475 expand_builtin_fork_or_exec, fold_builtin_bitop,
15476 fold_builtin_classify, fold_builtin_fputs): Likewise.
15477
15478 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
15479
15480 * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
15481 * gcov.c (abort): Remove undef.
15482
15483 * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
15484 (struct tree_binfo): Remove primary field.
15485
15486 2004-08-30 Paolo Bonzini <bonzini@gnu.org>
15487
15488 * fixinc/Makefile.in (machname.h): Remove.
15489 (fixincl.x): Do not pass $@ to genfixes.
15490 * fixinc/genfixes: Remove code to produce machname.h.
15491 * fixinc/fixincl.sh: Move it here instead.
15492 * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
15493 instead check if pz_mn_name_pat is NULL. Make mn_get_regexps
15494 return a bool indicating whether pz_mn_name_pat is NULL.
15495 * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
15496 Declare extern C variables for the ENV_TABLE.
15497 * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
15498 instead use the result of mn_get_regexps.
15499 * fixinc/fixtests.c: Likewise.
15500
15501 2004-08-30 Paolo Bonzini <bonzini@gnu.org>
15502
15503 * configure.ac: Do not run fixincludes after stage1 during
15504 toplevel bootstrap.
15505 * configure: Regenerate.
15506
15507 2004-08-30 Richard Earnshaw <rearnsha@arm.com>
15508
15509 * sched-deps.c (get_condition): Partially revert previous, by never
15510 trying to extract the condition from a condjump.
15511
15512 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
15513
15514 * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
15515 (handle_visibility_attribute, c_determine_visibility): Likewise.
15516 * c-common.h (my_friendly_assert): Remove.
15517
15518 2004-08-30 Richard Sandiford <rsandifo@redhat.com>
15519
15520 * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
15521 (UNSPEC_{RSQRT,RECIP}[12]): New constants.
15522 (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
15523 * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
15524 (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
15525
15526 2004-08-30 Diego Novillo <dnovillo@redhat.com>
15527
15528 * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
15529 in COMPONENT_REF nodes.
15530
15531 2004-08-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
15532
15533 PR c++/15378
15534 * c-opts.c (c_common_handle_option): <case OPT_Werror> set
15535 global_dc->warning_as_error_requested.
15536 * diagnostic.c (diagnostic_initialize): Tidy.
15537 * diagnostic.h (diagnostic_context::x_data): Remove
15538 (diagnostic_context::issue_warnings_are_errors_message): Rename
15539 from warnings_are_errors_message.
15540 (diagnostic_context::warning_as_error_requested): New.
15541
15542 2004-08-30 Richard Earnshaw <rearnsha@arm.com>
15543
15544 * sched-deps.c (get_condition): Fix breakage in previous patch.
15545
15546 2004-08-30 Paul Brook <paul@codesourcery.com>
15547
15548 * doc/install.texi: Fix broken mpfr link.
15549
15550 2004-08-29 David O'Brien <obrien@FreeBSD.org>
15551
15552 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
15553 other FreeBSD platforms.
15554
15555 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
15556
15557 * arm.h (REVERSE_CONDITION): Define.
15558 (REVERSIBLE_CC_MODE): All comparisons are now reversible.
15559
15560 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
15561
15562 * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
15563 just the codes, call reversed_comparison_code ().
15564 (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
15565 (not_reg_cond): Use reversed_comparison_code.
15566 (and_reg_cond): Likewise.
15567 * ifcvt.c (cond_exec_process_if_block): Likewise.
15568 * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
15569
15570 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
15571
15572 * sched-deps.c (get_condition): Rewrite using jump support functions.
15573 Use reversed_comparison_code.
15574 (conditions_mutex_p): Use reversed_comparison_code.
15575
15576 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15577
15578 * config/mips/mips.c (override_options): Disable hot/cold partitioning
15579 for MIPS16.
15580
15581 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15582
15583 * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
15584 (mips_function_type): Move to mips.c.
15585 * config/mips/mips.c (mips_builtin_type): New enum.
15586 (builtin_description): Replace code and ftype with builtin_type
15587 and function_type.
15588 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
15589 (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
15590 (CODE_FOR_mips_abs_ps): Define.
15591 (mips_bdesc): Use new macros.
15592 (mips_expand_builtin): Use builtin_type. Update calls to subroutines.
15593 (mips_init_builtins): Use the mips_bdesc[] index as the function code.
15594 (mips_expand_builtin_direct): New function.
15595 (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
15596 builtin. Replace boolean parameter with builtin_type.
15597 (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
15598 (mips_expand_4s_compare_builtin): Delete, replacing with...
15599 (mips_expand_builtin_compare): ...this new function.
15600
15601 2004-08-29 Mark Mitchell <mark@codesourcery.com>
15602
15603 PR rtl-optimization/16590
15604 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
15605
15606 2004-08-29 Diego Novillo <dnovillo@redhat.com>
15607
15608 * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
15609 * tree-ssa-propagate.c: Fix documentation.
15610
15611 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15612
15613 * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
15614 (mov[sd]fcc): Likewise.
15615
15616 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15617
15618 * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
15619
15620 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15621
15622 * config/mips/mips.md (divide_condition): New mode attribute.
15623 (div[sd]f3, *div[sd]f3): Use it. Redefine using :SCALARF.
15624 (sqrt[sd]f3): Redefine using SCALARF.
15625 (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise. Name formerly unnamed
15626 patterns.
15627
15628 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15629
15630 * config/mips/mips.md (ANYF, SCALARF): New mode macros.
15631 (loadx, storex, fmt, UNITMODE): New mode attributes.
15632 (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
15633 (mul[sd]f3): Redefine using :SCALARF.
15634 (*mul[sd]f3): Renamed from mul[sd]f3_internal. Use :SCALARF.
15635 (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
15636 (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns. Use :ANYF.
15637 Check TARGET_FUSED_MADD for V2SF too.
15638 (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
15639 were already named.
15640 (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
15641 (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
15642
15643 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15644
15645 * config/mips/mips.c (mips_init_builtins): Simplify. Only create
15646 V2SF_type_node if it will be needed.
15647
15648 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15649
15650 * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
15651 * config/mips/mips.c (mips_prepare_builtin_arg): New function.
15652 (mips_prepare_builtin_target): New function.
15653 (mips_expand_builtin): Use them. Update calls to subroutines.
15654 (mips_expand_ps_cond_move_builtin): Use the new functions. Replace
15655 cmp_choice with a boolean argument to select between movt and movf.
15656 Take the comparison's icode as an argument, not the function's fcode.
15657 (mips_expand_compare_builtin): New function. Rename existing function
15658 to mips_expand_scalar_compare_builtin.
15659 (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
15660 (mips_expand_ps_compare_builtin): Use the new functions. Take the
15661 comparison's icode as an argument, not the builtin's fcode.
15662
15663 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15664
15665 * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
15666 (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
15667 registers are false and -1 if all registers are true.
15668 (mips_expand_ps_compare_builtin): Likewise CCV2. Use subregs for
15669 MIPS_CMP_UPPER and MIPS_CMP_LOWER.
15670 * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
15671 (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
15672 (bc1any2t, bc1any2f): Likewise CCV2.
15673 (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
15674
15675 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15676
15677 * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
15678 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
15679 UNSPEC rather than an IF_THEN_ELSE.
15680 * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
15681 mips_cond_move_tf_ps by name.
15682
15683 2004-08-29 Chao-ying Fu <fu@mips.com>
15684 James E Wilson <wilson@specifixinc.com>
15685
15686 * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
15687 8 byte size and alignment. Give CCV4 16 byte size and alignment.
15688 * config/mips/mips-ps-3d.md: New file.
15689 * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
15690 TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
15691 (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
15692 (mips_output_move): Emit "mov.ps" for V2SFmode.
15693 (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
15694 MODE_VECTOR_FLOAT.
15695 (override_options): Check if TARGET_MIPS3D and there was an explicit
15696 !TARGET_PAIRED_SINGLE_FLOAT. Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
15697 Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
15698 TARGET_PAIRED_SINGLE_FLOAT is true. Check if the ISA supports
15699 TARGET_PAIRED_SINGLE_FLOAT. Allow MODE_VECTOR_FLOAT in fp registers,
15700 and allow CCV2 and CCV4 to occupy two and four CC registers.
15701 (print_fcc_operand): New function.
15702 (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC. Modify
15703 %Z to call print_fcc_operand.
15704 (mips_function_value): Handle MODE_VECTOR_FLOAT.
15705 (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
15706 (mips_vector_mode_supported_p): New function.
15707 (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
15708 (builtin_description): New struct.
15709 (mips_bdesc): New array of struct builtin_description.
15710 (mips_expand_builtin, mips_init_builtins,
15711 mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
15712 mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
15713 functions.
15714 * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
15715 (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
15716 (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
15717 (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
15718 "-mips3d", and "-mno-mips3d".
15719 (ASM_SPEC): Map -mips3d to -mips3d in gas.
15720 (EXTRA_CONSTRAINT_Y): New macro.
15721 (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT. Add new
15722 multi-letter constraint 'Y'.
15723 (CONSTRAINT_LEN): New macro.
15724 (enum mips_builtins): New for MIPS builtin functions.
15725 (enum mips_function_type): New for the types of MIPS builtin functions.
15726 (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
15727 * config/mips/mips.md: New constants for paired single and MIPS-3D
15728 instructions. Include the new mips-ps-3d.md file.
15729 (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
15730 movv2sf_hardfloat_64bit): New named patterns.
15731 (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
15732 nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
15733 sdxc1_v2sf_di): New unnamed patterns.
15734 * config/mips/predicates.md (const_0_operand, const_1_operand): Add
15735 const_vector support.
15736 (const_0_or_1_operand): New predicate.
15737 * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
15738
15739 2004-08-29 Diego Novillo <dnovillo@redhat.com>
15740
15741 * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
15742 (tree-ssa-propagate.o): New rule.
15743 (GTFILES): Add tree-ssa-propagate.c.
15744 * tree-flow.h (struct stmt_ann_d): Remove field
15745 in_ccp_worklist.
15746 * tree-ssa-propagate.c: New file.
15747 * tree-ssa-propagate.h: New file.
15748 * tree-ssa-ccp.c: Re-write to use the routines from
15749 tree-ssa-propagate.c.
15750
15751 2004-08-28 Andrew Pinski <apinski@apple.com>
15752
15753 * tree-ssa-loop.c: Remove extra include of basic-block.h.
15754
15755 2004-08-28 Ziemowit Laski <zlaski@apple.com>
15756
15757 * c-common.h: Update comments about ObjC/ObjC++ entry points.
15758 (objc_is_reserved_word): New prototype.
15759 (get_current_scope, objc_mark_locals_volatile): Move prototypes to
15760 separate section; these are call-backs.
15761 * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
15762 ObjC/ObjC++ "@" keywords.
15763 * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
15764 prototypes; they already live in c-common.h.
15765 * stub-objc.c: Update copyright notice.
15766 (objc_is_reserved_word): New stub.
15767
15768 2004-08-28 Nathan Sidwell <nathan@codesourcery.com>
15769
15770 * system.h (gcc_assert): Remove __builtin_expect. Evaluate EXPR
15771 even when not checking.
15772
15773 2004-08-27 Jason Merrill <jason@redhat.com>
15774
15775 PR c++/13684
15776 * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
15777 (gimple_push_cleanup): Add eh_only parm.
15778 (gimplify_target_expr): Pass it.
15779 * c.opt (-fno-threadsafe-statics): New option.
15780 * c-opts.c (c_common_handle_option): Handle it.
15781 * c-common.h (flag_threadsafe_statics): Declare it.
15782 * c-common.c (flag_threadsafe_statics): Record it.
15783 * doc/invoke.texi: Document it.
15784 * tsystem.h (_GNU_SOURCE): Define.
15785 * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
15786 (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
15787 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
15788 (__gthread_recursive_mutex_init_function): New fn.
15789 (__gthread_recursive_mutex_lock): New fn.
15790 (__gthread_recursive_mutex_trylock): New fn.
15791 (__gthread_recursive_mutex_unlock): New fn.
15792 * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
15793 * gthr-win32.h, gthr-vxworks.h: Likewise.
15794 * gthr.h: Document.
15795
15796 2004-08-27 David Edelsohn <edelsohn@gnu.org>
15797
15798 * config/rs6000/rs6000.c (rs6000_override_options): Increase
15799 maximum skip to 15. Set function alignment, jump alignment, and
15800 loop alignment to 16 for processors that form dispatch groups.
15801 (rs6000_rtx_costs): outer_code is used.
15802
15803 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
15804
15805 * stor-layout.c (sizetype_set): Remove.
15806 (set_sizetype): Don't test or set it.
15807
15808 * tree.h (size_int_type): Remove.
15809 * fold-const.c: Do not #include gt-fold-const.h.
15810 (size_htab_hash, size_htab_eq): Remove.
15811 (size_int_kind): Use build_int_cst.
15812 (new_const, size_htab): Remove.
15813 (size_int_type): Remove.
15814 (round_up): Use build_int_cst.
15815 (round_down): Likewise. Remove spurious constant build.
15816
15817 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
15818
15819 * configure.ac: Add ENABLE_ASSERT_CHECKING control.
15820 Add is_release variable, use it for --enable-werror and
15821 --enable-checking defaults.
15822 * system.h (gcc_assert, gcc_unreachable): New.
15823 * doc/install.texi (--enable-checking): Update.
15824 * configure, config.in: Rebuilt.
15825
15826 2004-08-26 Richard Sandiford <rsandifo@redhat.com>
15827
15828 * rtl.h (read_rtx): Change prototype.
15829 * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
15830 line number. Return true on success.
15831 * gensupport.c (process_include, init_md_reader_args_cb): Adjust
15832 callers accordingly.
15833
15834 2004-08-26 Richard Henderson <rth@redhat.com>
15835
15836 * c-typeck.c (build_offsetof): Remove.
15837 * c-tree.h (build_offsetof): Remove.
15838 * c-common.c (fold_offsetof_1, fold_offsetof): New.
15839 * c-common.h (fold_offsetof): Declare.
15840 * c-parse.in (offsetof_base): New.
15841 (offsetof_member_designator): Use it. Build references, not just
15842 a tree list.
15843 (primary): Use fold_offsetof, not build_offsetof.
15844
15845 2004-08-26 Richard Henderson <rth@redhat.com>
15846
15847 * tree.c (staticp): Return the static object.
15848 * tree.h (staticp): Update decl.
15849 * langhooks.h (struct lang_hooks): Change staticp return type to tree.
15850 * langhooks.c (lhd_staticp): Return NULL_TREE.
15851 * langhooks-def.h (lhd_staticp): Update decl.
15852 * c-common.c (c_staticp): Return the static object.
15853 * c-common.h (c_staticp): Update decl.
15854
15855 2004-08-26 Richard Henderson <rth@redhat.com>
15856
15857 * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
15858 modes.
15859
15860 2004-08-26 Joseph S. Myers <jsm@polyomino.org.uk>
15861
15862 PR c/13801
15863 * c-decl.c (struct c_binding): Add type and inner_comp fields.
15864 (bind): Set type and inner_comp fields.
15865 (pop_scope): Restore type of decl to the correct type from an
15866 outer scope. Give error when popping file scope for incomplete
15867 arrays completed incompatibly with default initialization in an
15868 inner scope.
15869 (diagnose_mismatched_decls): Handle externs with initializers at
15870 block scope.
15871 (pushdecl): Set type of external declaration at block scope based
15872 only on the visible declarations. Save type when changing the
15873 type of a declaration. Merge an external declaration at block
15874 scope with a visible static declaration at file scope.
15875 (implicitly_declare): Give recycled old declaration the new type
15876 except for incompatible declarations of built-in functions, saving
15877 the old type.
15878
15879 2004-08-26 Ziemowit Laski <zlaski@apple.com>
15880
15881 * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
15882
15883 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
15884
15885 * tree-alias-common.c (gate_pta): New function.
15886 (pass_build_pta): Use it.
15887 (pass_del_pta): Use it.
15888 (delete_alias_vars): Don't check flag_tree_points_to.
15889
15890 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
15891
15892 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
15893 TFmode as additional register mode cloberred by call.
15894
15895 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
15896
15897 * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
15898 parallel pattern for library call returning DImode in
15899 mixed mode.
15900
15901 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
15902
15903 * config/rs6000/rs6000.c (function_arg): Generate parallel
15904 pattern for more split args.
15905
15906 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
15907
15908 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
15909 either gen_movdi_di_update or gen_movdi_si_update depending on
15910 target mode.
15911 * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
15912 to generate two versions.
15913
15914 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
15915
15916 * Makefile.in (lambda-code.o): New.
15917 (lambda-trans.o): Ditto.
15918 (TREE_DATA_REF_H): Ditto.
15919 (LAMBDA_H): Ditto.
15920 (lambda-mat.o): Use LAMBDA_H.
15921 (tree-data-ref.o): Ditto.
15922 * lambda-code.c: New file. Lambda code generation algorithm.
15923 * lambda-trans.c: Ditto. Lambda transformation matrix support.
15924 * lambda.h: Add lambda loop structures.
15925 Add lambda loopnest structures.
15926 Add lambda body vector structure.
15927 Add lambda linear expression structures.
15928 Add prototypes for functions in new files.
15929 * lambda-mat.c: Include tree.h
15930
15931 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
15932 Sebastian Pop <pop@cri.ensmp.fr>
15933
15934 * tree-data-ref.h: Include lambda.h
15935 (free_dependence_relation): Declared here.
15936 (free_dependence_relations): Ditto.
15937 (free_data_refs): Ditto.
15938 * tree-data-ref.c (free_dependence_relation): New function.
15939 (free_dependence_relations): Ditto.
15940 (free_data_refs): Ditot.
15941 (analyze_all_data_dependences): Free datarefs and dependence_relations.
15942 (build_classic_dist_vector): Store in the dependence_relations the
15943 information. Each arc in the dependence_relations graph is labelled
15944 with the distance and direction vectors.
15945 (build_classic_dir_vector): Ditto.
15946 (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
15947 Now computes again the whole dependence graph including read-read
15948 relations.
15949 (compute_data_dependences_for_loop): Now dependence_relations contains
15950 all the data, and thus it doesn't need to initialize the classic_dir
15951 and classic_dist vectors.
15952 (analyze_all_data_dependences): Adjusted for using the new interface of
15953 compute_data_dependences_for_loop. Remove the statistics dump.
15954
15955 2004-08-26 Bob Wilson <bob.wilson@acm.org>
15956
15957 * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
15958 (xtensa_expand_block_move): Update comment.
15959 (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
15960
15961 2004-08026 Richard Earnshaw <rearnsha@arm.com>
15962
15963 PR target/13506
15964 * toplev.c (crash_signal): If we crashed while emitting
15965 a user asm, then die more gracefully.
15966
15967 2004-08-26 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
15968
15969 PR target/17119.
15970 * config/m32r.c (gen_compare): Use reg_or_int16_operand when
15971 checking for a valid constant, regardless of sign.
15972
15973 2004-08-25 Richard Henderson <rth@redhat.com>
15974
15975 PR target/16974
15976 * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
15977 if the constant satisfies add_operand.
15978
15979 2004-08-25 Richard Henderson <rth@redhat.com>
15980
15981 PR debug/10695
15982 * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
15983 (alpha_expand_prologue): Handle >32-bit frames. Generate proper
15984 unwind info for >16-bit frames.
15985
15986 2004-08-25 Richard B. Kreckel <richard.kreckel@framatome-anp.com>
15987
15988 PR target/17171
15989 * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
15990
15991 2004-08-25 Richard Henderson <rth@redhat.com>
15992
15993 * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
15994 (TARGET_CANNOT_FORCE_CONST_MEM): New.
15995
15996 2004-08-25 Andrew MacLeod <amacleod@redhat.com>
15997
15998 * doc/tree-ssa.texi: Document new operand iterator.
15999
16000 2004-08-26 Alan Modra <amodra@bigpond.net.au>
16001
16002 PR target/16480
16003 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
16004 on "(mem (symbol_ref ..))" rtl. Look at LO_SUM base regs as well
16005 as PLUS base regs.
16006
16007 2005-08-28 Paul Brook <paul@codesourcery.com>
16008
16009 * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
16010 -mfpu=vfp -march=armv5t
16011 * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
16012
16013 2004-08-25 Richard Henderson <rth@redhat.com>
16014
16015 * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
16016 * target.h (struct gcc_target): Add scalar_mode_supported_p.
16017 * targhooks.c (default_scalar_mode_supported_p): New.
16018 * targhooks.h (default_scalar_mode_supported_p): Declare.
16019 * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
16020
16021 * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
16022 before attempting to create types. Tidy.
16023 * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
16024
16025 * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
16026 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
16027
16028 2004-08-25 Richard Henderson <rth@redhat.com>
16029
16030 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
16031 set REAL_MODE_FORMAT for TFmode.
16032
16033 2004-08-25 Ziemowit Laski <zlaski@apple.com>
16034
16035 * c-decl.c (grokparm): New function.
16036 * c-tree.h (grokparm): New prototype.
16037
16038 2004-08-25 Andrew MacLeod <amacleod@redhat.com>
16039
16040 * tree-ssa-operands.h (struct ssa_operand_iterator_d): New. SSA operand
16041 iterator controlling structure.
16042 (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
16043 SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
16044 SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New. Operand
16045 iterator flags.
16046 (FOR_EACH_SSA_TREE_OPERAND): New. Iterate over operands as trees.
16047 (FOR_EACH_SSA_USE_OPERAND): New. Iterate over operands as uses.
16048 (FOR_EACH_SSA_DEF_OPERAND): New. Iterate over operands as defs.
16049 (FOR_EACH_SSA_MAYDEF_OPERAND): New. Iterate over V_MAY_DEFs.
16050 * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
16051 Empty operand pointers.
16052 * tree-flow-inline.h (op_iter_done): New. Return true if finished.
16053 (op_iter_next_use): New. Return next use_operand_p.
16054 (op_iter_next_def): New. Return next def_operand_p.
16055 (op_iter_next_tree): New. Return next operands as a tree.
16056 (op_iter_init): New. Initialize an iterator structure.
16057 (op_iter_init_use): New. Initialize structure and get the first use.
16058 (op_iter_init_def): New. Initialize structure and get the first def.
16059 (op_iter_init_tree): New. Initialize structure and get the first tree.
16060 (op_iter_next_maydef): New. Return next V_MAY_DEF operands.
16061 (op_iter_init_maydef): New. Initialize structure and get the first
16062 V_MAY_DEF operands.
16063 * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
16064 * tree-dfa.c (compute_immediate_uses_for_stmt,
16065 redirect_immediate_uses): Use new operand iterator.
16066 (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
16067 (mark_new_vars_to_rename): Use new operand iterator. Count virtual
16068 operands instead of using *_disappeared_p routines.
16069 * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
16070 ssa_rewrite_stmt): Use new operand iterator.
16071 * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
16072 rewrite_trees): Use new operand iterator.
16073 * tree-pretty-print.c (dump_vops): Use new operand iterator.
16074 * tree-sra.c (mark_all_v_defs): Use new operand iterator.
16075 * tree-ssa-alias.c (compute_points_to_and_addr_escape,
16076 dump_points_to_info): Use new operand iterator.
16077 * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
16078 replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
16079 operand iterator.
16080 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
16081 propagate_necessity): Use new operand iterator.
16082 * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
16083 (register_definitions_for_stmt): Use new operand iterator. Take stmt as
16084 a parameter instead of a stmt_ann_t.
16085 * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
16086 build_tree_conflict_graph): Use new operand iterator.
16087 * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
16088 rewrite_mem_refs): Use new operand iterator.
16089 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
16090 check_loop_closed_ssa_use): Use new operand iterator.
16091 * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
16092 * tree-ssanames.c (release_defs): Use new operand iterator.
16093 * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
16094
16095 2004-08-25 Adam Nemet <anemet@lnxw.com>
16096
16097 * tlink.c (initial_cwd): New variable.
16098 (tlink_init): Initialize it.
16099 (recompile_files): Use tlink_execute() instead of system(). Don't
16100 duplicate verbose output of collect_execute. Restore initial_cwd.
16101 Update comment before the function.
16102
16103 2004-08-25 Ziemowit Laski <zlaski@apple.com>
16104
16105 * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
16106 accept) a cast from one Objective-C pointer type to another.
16107
16108 2004-08-25 Paolo Carlini <pcarlini@suse.de>
16109
16110 * doc/install.texi: Document that libstdc++-v3 requires
16111 now automake 1.9.1.
16112
16113 2004-08-25 Caroline Tice <ctice@apple.com>
16114
16115 * bb-reorder.c (partition_hot_cold_basic_blocks): Add more details
16116 to comments at start of function.
16117 * cfgbuild.c (make_edges): Add more details to hot/cold partitioning
16118 comment.
16119 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
16120 merge_blocks_move_predecessor_nojumps,
16121 merge_blocks_move_successor_nojumps, merge_blocks_move,
16122 try_crossjump_to_edge, try_crossjump_bb): Likewise.
16123 * cfglayout.c (fixup_reorder_chain): Likewise.
16124 * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
16125 cfg_layout_can_merge_blocks_p): Likewise.
16126 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
16127 * passes.c (rest_of_compilation): Update comments for calling
16128 optimization that partitions hot/cold basic blocks.
16129 * doc/invoke.texi: Update documentation of
16130 freorder-blocks-and-partition flag.
16131
16132 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
16133
16134 * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
16135 (*mov*_on_*): Adjust accordingly. Add an explicit MOVECC: prefix.
16136
16137 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
16138
16139 * config/mips/mips.md (any_shift): New code macro.
16140 (optab, insn): New code attributes.
16141 ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
16142 Use the standard rather than internal patterns for the MIPS16
16143 double-shift optimization.
16144 (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
16145 Redefine using :GPR and any_shift.
16146 (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
16147 to cover all three shifts.
16148 (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
16149 Redefine using any_shift. Use :GPR and any_shift to combine splitters.
16150 (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
16151
16152 2004-08-24 Geoffrey Keating <geoffk@apple.com>
16153
16154 * gimplify.c (lookup_tmp_var): Separate temporaries when not
16155 optimizing.
16156
16157 2004-08-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16158
16159 PR libstdc++/17005 (fix for HP-UX 11.11)
16160 * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
16161 (hppa*-*-hpux*): Consolidate hppa1.0-*-* code. Rework handling of
16162 tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
16163 * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
16164 * config/pa/pa-hpux.h (TARGET_HPUX): Define.
16165 (LINK_SPEC): Handle march=1.0 option.
16166 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
16167 and _XOPEN_SOURCE_EXTENDED for UNIX 95.
16168 (SUBTARGET_OPTIONS): New define.
16169 (LINK_SPEC): Handle march=1.0 option.
16170 (STARTFILE_SPEC): New define.
16171 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
16172 and _XOPEN_SOURCE_EXTENDED for UNIX 95. Additionally, predefine
16173 _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
16174 (SUBTARGET_OPTIONS): New define.
16175 (LINK_SPEC): Handle march=1.0 option.
16176 (STARTFILE_SPEC): New define.
16177 * config/pa/pa.c (override_options): Add code to process -munix= option.
16178 * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
16179 (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
16180 defines.
16181 (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
16182 (SUBTARGET_OPTIONS): Provide default define.
16183 * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
16184 STANDARD_STARTFILE_PREFIX_2): New defines.
16185 (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
16186 (ENDFILE_SPEC): Use %O.
16187 * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
16188 Mention issue caused by changing namespace and runtime to UNIX 95/98.
16189 * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
16190 Document -munix=std option.
16191
16192 2004-08-25 Steven Bosscher <stevenb@suse.de>
16193
16194 * cse.c (cse_around_loop, cse_check_loop_start,
16195 cse_set_around_loop): Remove.
16196 (cse_basic_block): Remove the around_loop argument.
16197 (cse_end_of_basic_block): Remove the after_loop argument.
16198 (cse_main): Likewise.
16199 * rtl.h (cse_main): Update prototype.
16200 * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
16201 rest_of_handle_gcse): Update cse_main calls.
16202
16203 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
16204
16205 * tree.h (build_int_cst): New, sign extended constant.
16206 (build_int_cstu): New, zero extended constant.
16207 (build_int_cst_wide): Renamed from build_int_cst.
16208 * tree.c (build_int_cst, build_int_cstu): New.
16209 (build_int_cst_wide): Renamed from build_int_cst.
16210 (make_vector_type, build_common_tree_nodes,
16211 build_common_tree_nodes_2): Adjust build_int_cst calls.
16212 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
16213 expand_builtin_strpbrk, expand_builtin_fputs,
16214 build_string_literal, expand_builtin_printf,
16215 expand_builtin_sprintf, fold_builtin_classify_type,
16216 fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
16217 fold_builtin_toascii, fold_builtin_isdigit,
16218 simplify_builtin_strstr, simplify_builtin_strpbrk,
16219 fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
16220 * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
16221 DEF_ATTR_INT): Likewise.
16222 * c-decl.c (complete_array_type, check_bitfield_type_and_width):
16223 Likewise.
16224 * c-lex.c (interpret_integer, lex_charconst): Likewise.
16225 * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
16226 * c-pretty-print.c (pp_c_integer_constant): Likewise.
16227 * c-typeck.c (really_start_incremental_init, push_init_level,
16228 set_nonincremental_init_from_string): Likewise.
16229 * calls.c (load_register_parameters): Likewise.
16230 convert.c (convert_to_pointer): Likewise.
16231 coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
16232 build_fn_info_type, build_fn_info_value, build_ctr_info_value,
16233 build_gcov_info): Likewise.
16234 * except.c (init_eh, assign_filter_values): Likewise.
16235 * expmed.c (store_fixed_bit_field, extract_bit_field,
16236 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
16237 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
16238 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
16239 * expr.c (convert_move, emit_group_load, emit_group_store,
16240 expand_assignment, store_constructor, store_field,
16241 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
16242 fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
16243 invert_truthvalue, optimize_bit_field_compare,
16244 decode_field_reference, all_ones_mask_p, constant_boolean_node,
16245 fold_div_compare, fold, fold_read_from_constant_string,
16246 fold_negate_const, fold_abs_const, fold_not_const, round_up,
16247 round_down): Likewise.
16248 * function.c (assign_parm_setup_block): Likewise.
16249 * stmt.c (shift_return_value, expand_case, estimate_case_costs):
16250 Likewise.
16251 * stor-layout.c (layout_type, initialize_sizetypes,
16252 set_min_and_max_values_for_integral_type): Likewise.
16253 * tree-chrec.c (chrec_fold_multiply_poly_poly,
16254 reset_evolution_in_loop): Likewise.
16255 * tree-chrec.h (build_polynomial_chrec): Likewise.
16256 * tree-complex.c (build_replicated_const): Likewise.
16257 * tree-eh.c (honor_protect_cleanup_actions,
16258 lower_try_finally_onedest, lower_try_finally_copy,
16259 lower_try_finally_switch): Likewise.
16260 * tree-mudflap.c (mf_build_string, mx_register_decls,
16261 mudflap_register_call, mudflap_enqueue_constant): Likewise.
16262 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
16263 * tree-pretty-print.c (dump_generic_node): Likewise.
16264 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
16265 Likewise.
16266 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
16267 * tree-ssa-loop-niter.c (number_of_iterations_cond,
16268 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
16269 Likewise.
16270 * tree-ssa-loop-ivcanon.c (create_canonical_iv,
16271 canonicalize_loop_induction_variables): Likewise.
16272 * tree-vectorizer.c (vect_create_index_for_array_ref,
16273 vect_transform_loop_bound, vect_compute_data_ref_alignment):
16274 Likewise.
16275
16276 * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
16277 alpha_gimplify_va_arg_1): Likewise.
16278 * config/arm/arm.c (arm_get_cookie_size): Likewise.
16279 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
16280 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
16281 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
16282 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
16283 mips_gimplify_va_arg_expr): Likewise.
16284 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
16285 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
16286 add_compiler_branch_island): Likewise.
16287 * config/s390/s390.c (s390_va_start): Likewise.
16288 * config/sh/sh.c (sh_va_start): Likewise.
16289 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
16290 Likewise.
16291 * config/xtensa/xtensa.c (xtensa_va_start,
16292 xtensa_gimplify_va_arg_expr): Likewise.
16293
16294 * objc/objc-act.c (build_objc_string_object,
16295 build_objc_symtab_template, init_def_list, init_objc_symtab,
16296 init_module_descriptor, generate_static_references,
16297 build_selector_translation_table, get_proto_encoding,
16298 build_typed_selector_reference, build_selector_reference,
16299 build_next_objc_exception_stuff,
16300 build_method_prototype_list_template, generate_descriptor_table,
16301 generate_protocols, build_protocol_initializer,
16302 build_ivar_list_template, build_method_list_template,
16303 build_ivar_list_initializer, generate_ivars_list,
16304 generate_dispatch_table, generate_protocol_list,
16305 build_category_initializer, build_shared_structure_initializer,
16306 generate_shared_structures, handle_impent,
16307 generate_objc_image_info): Likewise.
16308
16309 2004-04-25 Paolo Bonzini <bonzini@gnu.org>
16310
16311 * cfglayout.c (duplicate_insn_chain): Remove references to
16312 NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
16313 * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
16314 * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
16315 * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
16316 and NOTE_INSN_LOOP_CONT.
16317 * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
16318 * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
16319 and NOTE_INSN_LOOP_CONT.
16320 * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
16321 check_dbra_loop, loop_dump_aux): Remove references to removed notes
16322 and fields.
16323 * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
16324 * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
16325 references to removed notes and fields.
16326 (subtract_reg_term, ujump_to_loop_cont): Remove.
16327
16328 2004-08-25 Paolo Bonzini <bonzini@gnu.org>
16329
16330 * doc/install.texi: Document that libcpp does not require
16331 Automake any longer. Document that Automake 1.9.1 should
16332 work everywhere.
16333
16334 2004-08-25 Zack Weinberg <zack@codesourcery.com>
16335
16336 * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
16337 * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
16338 DWARF_DEBUGGING_INFO from choice-of-definition chain;
16339 restructure using C89 features (#elif, #error).
16340 * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
16341 * config/sh/sh.h: Remove references to DWARF_DEBUG.
16342 * doc/invoke.texi: Remove references to DWARF version 1;
16343 clarify why -gdwarf-2<n> doesn't work.
16344
16345 2004-08-25 Zack Weinberg <zack@codesourcery.com>
16346
16347 * basic-block.h (BB_SET_PARTITION): Clear old value first.
16348 * cfg.c (clear_bb_flags): Don't clear partition setting.
16349 * ifcvt.c (find_if_case_1): Remove ??? comment.
16350
16351 2004-08-25 Alan Modra <amodra@bigpond.net.au>
16352
16353 PR target/17052
16354 * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
16355 * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
16356 current_function_stdarg in place of sysv_varargs_p.
16357 * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
16358 sysv_varargs_p.
16359
16360 2004-08-24 Richard Henderson <rth@redhat.com>
16361
16362 PR target/16298
16363 * config/i386/i386.c (legitimate_constant_p): Rework to not accept
16364 random codes within CONST.
16365
16366 2004-08-24 James E Wilson <wilson@specifixinc.com>
16367
16368 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
16369 -freorder-blocks-and-partition.
16370
16371 2004-08-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16372
16373 PR middle-end/17044
16374 * tree-ssa-threadupdate.c (redirection_data): Make static.
16375 (thread_block): Use ggc_alloc_cleared to allocate struct
16376 redirection_data. Don't free elements in redirection_data.
16377
16378 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16379
16380 * config/mips/predicates.md (small_data_pattern): Match prefetches.
16381
16382 2004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16383
16384 PR tree-optimization/17016
16385 * tree-ssa-loop-niter.c (number_of_iterations_cond,
16386 number_of_iterations_exit): Use POINTER_TYPE_P instead
16387 of testing for POINTER_TYPE.
16388
16389 2004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16390
16391 * tree-ssa-loop-ivcanon.c: New file.
16392 * tree-ssa-loop-manip.c (create_iv): New function.
16393 * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
16394 (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
16395 * cfgloop.c (mark_single_exit_loops): New function.
16396 (verify_loop_structure): Verify single-exit loops.
16397 * cfgloop.h (struct loop): Add single_exit field.
16398 (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
16399 (mark_single_exit_loops): Declare.
16400 (tree_num_loop_insns): Declare.
16401 * cfgloopmanip.c (update_single_exits_after_duplication): New function.
16402 (duplicate_loop_to_header_edge): Use it.
16403 * common.opt (fivcanon): New flag.
16404 * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
16405 * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
16406 (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
16407 (bsi_insert_on_edge_immediate): New function.
16408 * tree-flow.h (bsi_insert_on_edge_immediate,
16409 canonicalize_induction_variables, tree_unroll_loops_completely,
16410 create_iv): Declare.
16411 * tree-optimize.c (init_tree_optimization_passes): Add
16412 pass_iv_canon and pass_complete_unroll.
16413 * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
16414 * tree-scalar-evolution.c (get_loop_exit_condition,
16415 get_exit_conditions_rec, number_of_iterations_in_loop,
16416 scev_initialize): Use single_exit information.
16417 * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
16418 missing assumptions.
16419 (loop_niter_by_eval): Return number of iterations as unsigned
16420 int.
16421 * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
16422 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
16423 tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
16424 New passes.
16425 (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
16426 * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
16427 the defining statement is ready.
16428 * tree-vectorizer.c (vect_create_iv_simple): Removed.
16429 (vect_create_index_for_array_ref, vect_transform_loop_bound):
16430 Use create_iv.
16431 (vect_transform_loop_bound): Use single_exit information.
16432 (vect_analyze_loop_form): Cleanup bogus tests.
16433 (vectorize_loops): Do not call flow_loop_scan.
16434 * tree.h (may_negate_without_overflow_p): Declare.
16435 * fold-const.c (may_negate_without_overflow_p): Split out from ...
16436 (negate_expr_p): ... this function.
16437 (tree_expr_nonzero_p): Handle overflowed constants correctly.
16438 * doc/invoke.texi (-fivcanon): Document.
16439 * doc/passes.texi: Document canonical induction variable creation.
16440
16441 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16442
16443 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
16444 * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
16445 using the mode of the operand to decide between them.
16446 * config/mips/mips.md (MOVECC): New mode macro.
16447 (ccreg): New mode attribute.
16448 (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
16449 Redefine using :GPR and :MOVECC. Use %T and %t for the condition.
16450 (mov[sd]icc): Redefine using :GPR.
16451
16452 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16453
16454 * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
16455 (mips_prefetch_cookie): New function.
16456 * config/mips/mips.c (print_operand_address): Fix handling of
16457 ADDRESS_CONST_INT.
16458 (mips_emit_prefetch): Delete.
16459 (mips_prefetch_cookie): New function.
16460 * config/mips/mips.md (prefetch): Turn into a define_insn. Use a
16461 mode of QImode for the address_operand. Use mips_prefetch_cookie
16462 to calculate the first "pref" operand.
16463 (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
16464 (prefetch_indexed_[sd]i): Redefine using :P. Use mips_prefetch_cookie.
16465
16466 2004-08-24 Richard Earnshaw <rearnsha@arm.com>
16467
16468 * arm.md: Include predicates.md.
16469 * predicates.md: New file.
16470 * arm.c (s_register_operand, arm_hard_register_operand)
16471 (arm_general_register_operand, f_register_operand, reg_or_int_operand)
16472 (arm_immediate_operand, arm_neg_immediate_operand)
16473 (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
16474 (arm_add_operand, arm_addimm_operand, arm_not_operand)
16475 (offsettable_memory_operand, alignable_memory_operand)
16476 (arm_reload_memory_operand, arm_float_rhs_operand)
16477 (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
16478 (index_operand, shiftable_operator, logical_binary_operator)
16479 (shift_operator, equality_operator, arm_comparison_operator)
16480 (minmax_operator, cc_register, dominant_cc_register)
16481 (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
16482 (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
16483 (const_shift_operand, load_multiple_operation)
16484 (store_multiple_operation, multi_register_push, thumb_cmp_operand)
16485 (thumb_cmpneg_operand, thumb_cbrch_target_operand)
16486 (cirrus_register_operand, cirrus_fp_register)
16487 (cirrus_shift_const): Delete, replaced with equivalents in
16488 predicates.md.
16489 (shift_op): Handle ROTATE.
16490 * arm-protos.h: Delete declarations for above.
16491 * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
16492 * t-arm (MD_INCLUDES): Add predicates.md.
16493 (s-preds): Depends on MD_INCLUDES.
16494
16495 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16496
16497 * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
16498 * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
16499 patterns. Redefine using :GPR. Give the match_operator a mode.
16500 Use '%2' rather than '%z2' for operand 2.
16501
16502 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16503
16504 * config/mips/mips.md (load_call[sd]i): Redefine using :P. Add mode
16505 attribute.
16506
16507 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16508
16509 * config/mips/mips.md (indirect_jump): Use force_reg. Adjust names
16510 of internal patterns.
16511 (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
16512 Redefine using :P.
16513 (tablejump): Use expand_binop to calculate address. Adjust names
16514 of internal patterns.
16515 (tablejump[sd]i): Renamed from tablejump_internal[12].
16516 Redefine using :P.
16517 (tablejump_mips16[12]): Delete.
16518
16519 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16520
16521 * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
16522 (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
16523 (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
16524 (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
16525 (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
16526
16527 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16528
16529 * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
16530 (*branch_zero[sd]i): Renamed from branch_zero{,_di}. Redefine
16531 using :GPR.
16532 (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
16533 (*branch_equality[sd]i): Likewise branch_equality{,_di}.
16534 (*branch_equality[sd]i_inverted): Likewise
16535 branch_equality{,_di}_inverted.
16536 (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
16537 Redefine using :GPR.
16538
16539 2004-08-24 Zack Weinberg <zack@codesourcery.com>
16540
16541 * rtl.def: Reorganize, placing all codes used only in machine
16542 descriptions at the end.
16543
16544 * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
16545 * gengtype.c: Don't include rtl.h. Define enum rtx_code and
16546 rtx_name, rtx_format arrays by direct reference to rtl.def,
16547 first undefining GENERATOR_FILE. Define enum insn_note and
16548 note_insn_name array by direct reference to insn-notes.def.
16549 (adjust_field_rtx_def): Remove local definition of rtx_name.
16550 Use symbolic names for insn notes.
16551 * Makefile.in (gengtype.o): Update dependencies.
16552
16553 2004-08-24 Zack Weinberg <zack@codesourcery.com>
16554
16555 * basic-block.h (struct basic_block_def): Reorder fields to
16556 eliminate interior padding. Remove 'partition' field.
16557 (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
16558 (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
16559 (BB_COPY_PARTITION): New macros.
16560 * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
16561 Replace all references to the 'partition' field of a basic
16562 block with new macros.
16563
16564 * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
16565 * final.c (final_scan_insn): Don't handle it.
16566 * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
16567 instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
16568 * sched-rgn.c (sched_is_disabled_for_current_region_p):
16569 Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
16570
16571 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
16572
16573 * c-decl.c (c_init_decl_processing): Adjust
16574 build_common_tree_nodes call.
16575 * expmed.c (const_mult_add_overflow_p): Use
16576 build_distinct_type_copy.
16577 * stor-layout.c (early_type_list): Remove.
16578 (layout_type): Don't append to early_type_list.
16579 (initialize_sizetypes): Add signed_p argument.
16580 (set_sizetype): Overwrite the stub type nodes directly.
16581 * tree.c (copy_node_stat): Clear a type's value cache here ...
16582 (build_distinct_type): ... not here.
16583 (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
16584 * tree.h (initialize_sizetypes): Add signed_p argument.
16585 (build_common_tree_nodes): Likewise.
16586
16587 * objc/objc-act.c (get_static_reference): Use
16588 build_variant_type_copy.
16589 (get_protocol_reference): Likewise.
16590 * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
16591
16592 2004-08-24 Richard Henderson <rth@redhat.com>
16593 Andrew Pinski <apinski@apple.com>
16594
16595 * gimplify.c (gimplify_array_ref_to_plus): Delete.
16596 (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
16597 for ARRAY_REF.
16598
16599 * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
16600 ARRAY_REF also to get to the STRING_CST.
16601
16602 2004-08-24 Paul Brook <paul@codesourcery.com>
16603
16604 * config/arm/arm.c (arm_override_options): Update error message.
16605 * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
16606 TARGET_HARD_FLOAT_ABI.
16607 (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
16608 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
16609
16610 2004-08-24 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
16611
16612 PR target/17093
16613 * config/m32r.md (movsi_sda): Add SI mode specification to
16614 UNSPEC.
16615
16616 2004-08-24 Nick Clifton <nickc@redhat.com>
16617
16618 * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
16619 of seth_add3_operand.
16620
16621 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
16622
16623 * Makefile.in (PROTO_OBJS): Add errors.o.
16624 * protoize.c (fancy_abort): Remove.
16625 * mips-tfile.c (fancy_abort): Add parameters.
16626
16627 2004-08-24 Jonathan Wakely <redi@gcc.gnu.org>
16628
16629 * doc/trouble.texi (C++ misunderstandings): Fix example code.
16630
16631 2004-08-24 Andreas Tobler <a.tobler@schweiz.ch>
16632
16633 * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
16634 (host-default.o): Add dependency on HOOKS_H.
16635 * config/x-linux: Likewise.
16636 * config/x-solaris: Likewise.
16637 * config/i386/x-mingw32: Likewise.
16638 * config/rs6000/x-darwin: Likewise.
16639
16640 2004-08-23 James E Wilson <wilson@specifixinc.com>
16641
16642 * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
16643 DEF_REG_NOTE.
16644
16645 2004-08-23 Mark Mitchell <mark@codesourcery.com>
16646
16647 PR c/14492
16648 * dwarf2out.c (loc_descriptor_from_tree): Robustify.
16649
16650 2004-08-23 Diego Novillo <dnovillo@redhat.com>
16651
16652 * cfg.c (check_bb_profile): Fix typos.
16653 * function.c (assign_parm_is_stack_parm): Likewise.
16654 * tree-nested.c: Likewise.
16655
16656 2004-08-23 Daniel Jacobowitz <dan@debian.org>
16657
16658 * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
16659 Remove TYPECODE.
16660 (ggc_alloc_zone_1): Mark TYPE as unused. Don't save it in the chunk.
16661
16662 2004-08-23 Eric Christopher <echristo@redhat.com>
16663
16664 * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
16665 * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
16666 * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
16667 * target.h: Ditto.
16668 * hooks.h: Include machmode.h.
16669 (hook_bool_mode_false): Declare.
16670 * hooks.c (hook_bool_mode_false): Define.
16671 * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
16672 * stor-layout.c (layout_type): Ditto.
16673 * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
16674 Define to target macro.
16675 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
16676 * config/arm/arm.c: Ditto. Use.
16677 * config/arm/arm.h: Ditto.
16678 * config/arm/arm-protos.h: Ditto.
16679 * config/i386/i386.c: Ditto.
16680 * config/i386/i386.h: Ditto.
16681 * config/rs6000/rs6000.c: Ditto.
16682 * config/rs6000/rs6000.h: Ditto.
16683 * config/sh/sh.c: Ditto.
16684 * config/sh/sh.h: Ditto.
16685 * config/sh/sh-protos.h: Ditto.
16686 * config/sh/sh.md: Use.
16687 * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
16688 to TARGET_VECTOR_MODE_SUPPORTED_P.
16689
16690 2004-08-23 Nathan Sidwell <nathan@codesourcery.com>
16691
16692 * Makefile.in (BUILD_ERRORS): Set to build-errors.
16693 (errors.o): New target for host.
16694 (build-errors.o): New target for build.
16695 (genobjs): Replace errors.o with build-errors.
16696 (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
16697 (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
16698 (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
16699 (fix-header.o): Add errors.h
16700 * collect2.c (fancy_abort): Add parameters.
16701 * collect2.h (fancy_abort): Don't declare.
16702 * errors.h (fancy_abort): Don't declare.
16703 * errors.c: Include either bconfig.h or config.h.
16704 (fancy_abort): Trim filename.
16705 * fix-header.c (v_fatal, fatal): Remove.
16706 (progname): Remove definition.
16707 (main): Set progname here.
16708 * gcc.c (fancy_abort): Add parameters.
16709 * gcc.h (fancy_abort): Remove declaration.
16710 * gcov.c (fancy_abort): Remove.
16711 * rtl.h (fancy_abort): Don't declare.
16712 (abort): Don't define.
16713 * tree.h (fancy_abort): Don't declare.
16714 (abort): Don't define.
16715 * system.h (fancy_abort): Declare.
16716 (abort): Define to fancy_abort.
16717 * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
16718
16719 * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
16720 (usize_type, ubitsizetype): Remove.
16721 * stor-layout.c (set_sizetype): Don't initialize usizetype,
16722 ubitsizetype.
16723 * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
16724
16725 * tree.h (build_distinct_type_copy): New.
16726 (build_type_copy): ... here. Rename to ...
16727 (build_variant_type_copy): ... here.
16728 * tree.c (build_qualified_type): Rename build_type_copy call.
16729 (build_distinct_type_copy): New, broken out of ...
16730 (build_type_copy): ... here. Rename to ...
16731 (build_variant_type_copy): ... here. Use
16732 build_distinct_type_copy.
16733 (build_common_tree_nodes_2): Rename build_type_copy call.
16734 * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
16735 call.
16736 (handle_packed_attribute, handle_unused_attribute,
16737 handle_transparanet_union_attribute, handle_aligned_attribute,
16738 handle_deprecated_attribute): Likewise.
16739 * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
16740 Likewise.
16741 * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
16742 * config/rs6000/rs6000.c (rs6000_init_builtins): Use
16743 build_distinct_type_copy.
16744
16745 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16746
16747 * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR. Add mode
16748 attribute.
16749
16750 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16751
16752 * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
16753 loads and stores.
16754 (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
16755 formerly unnamed patterns. Redefine using :P for the address. Remove
16756 explicit length attributes.
16757
16758 2004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16759
16760 * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
16761 New functions.
16762 (single_reachable_address): Use them.
16763 (schedule_sm): Add dump.
16764 (is_call_clobbered_ref): New function.
16765 (determine_lsm_reg): Check whether the reference is call clobbered.
16766 Only work for gimple_reg_type values.
16767
16768 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16769
16770 * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
16771 $31 store insns. Redefine using :GPR.
16772
16773 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16774
16775 * config/mips/mips.md (P): New mode macro.
16776 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
16777 (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
16778 Add mode attributes.
16779
16780 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16781
16782 * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
16783 (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants. Shuffle
16784 later constants to cover the gap.
16785 (load, store): New mode attributes.
16786 (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
16787 Use new unspec constants.
16788
16789 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16790
16791 * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
16792 (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise. Change 32-bit patterns
16793 to use register_operand rather than uns_arith_operand as the predicate
16794 for operand 1. Remove redundant MIPS16 force_reg() for operand 1.
16795 (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
16796 Redefine using :GPR. Make same predicate change here. Extend the
16797 commutativity of operands 1 and 2 from the SImode version to the
16798 DImode one.
16799 (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
16800 but with no predicate changes.
16801 (*nor[sd]i3): Redefine using :GPR.
16802
16803 2004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16804
16805 * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
16806 noreturn functions.
16807
16808 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16809
16810 * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
16811 * config/mips/mips.md (abs[sd]i2): Redefine using :GPR. Only use
16812 branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY. Use "%."
16813 rather than "%z2" (with a fake const0_rtx for operand 2).
16814 (ffs[sd]i2): Redefine using :GPR.
16815 (clz[sd]i2): Likewise. Use ISA_HAS_CLO_CLZ for the 64-bit case.
16816
16817 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16818
16819 * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
16820
16821 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16822
16823 * config/mips/mips.md (any_extend): New code macro.
16824 (u, su): New code attributes.
16825 ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
16826 ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
16827 ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
16828 (*{s,u}mul_acc_di): Redefine using any_extend.
16829 (*{,u}muls_di, *{s,u}msac_di): Likewise. Change names of patterns
16830 to reflect real insn names.
16831 (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
16832 with an any_extend template.
16833 ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
16834 Add '*' to name.
16835
16836 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16837
16838 * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
16839 * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
16840 (mul[sd]i3_r4000): Redefine using :GPR.
16841 (mulsi3_mult3): Don't check TARGET_MAD separately.
16842 (muldi3_mult3): Moved after mulsi_mult3.
16843
16844 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16845
16846 * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
16847 OBJECT_FORMAT_ELF. Set MASK_SPLIT_ADDR by default if using GNU ld.
16848 * config/mips/mips.h (MASK_GAS): Delete. Shuffle later masks down.
16849 (TARGET_GAS, TARGET_MIPS_AS): Delete.
16850 (TARGET_GPWORD): Define to true for n32 on IRIX.
16851 (TARGET_SWITCHES): Remove -mmips-as. Turn -mgas into a no-op.
16852 (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
16853 (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
16854 (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
16855 (MDEBUG_ASM_SPEC): Delete, folding into...
16856 (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
16857 (ASM_SPEC): Inline old GAS_ASM_SPEC. Use GNU names for ABI switches.
16858 (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
16859 subtarget_mips_as_asm_spec, mdebug_asm_spec. Use MULTILIB_ABI_DEFAULT
16860 to define asm_abi_default_spec.
16861 (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
16862 (TARGET_ASM_SELECT_SECTION): Delete.
16863 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
16864 for non-mips16 code, removing previous workaround for SGI assemblers.
16865 (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
16866 (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
16867 (override_options): Remove !TARGET_GAS and !have_named_sections code.
16868 (print_operand): Fold TARGET_GAS conditionals into asm strings.
16869 (mips_output_filename): Remove !TARGET_GAS code. Replace use of
16870 ASM_STABS_OP and ASM_STABN_OP.
16871 (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
16872 (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
16873 (mips_output_function_prologue): Remove !TARGET_GAS code.
16874 (mips_select_rtx_section): Remove !have_named_sections code.
16875 (mips_select_section): Delete.
16876 * config/mips/mips.md (trap): Remove !TARGET_GAS check.
16877 * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
16878 * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
16879 (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
16880 * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
16881 * config/mips/windiss.h (ASM_SPEC): Likewise.
16882
16883 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16884
16885 * read-rtl.c (map_value, mapping, macro_group): New structures.
16886 (BELLWETHER_CODE): New macro.
16887 (modes, codes, bellwether_codes): New variables.
16888 (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
16889 (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
16890 (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
16891 (add_condition_to_rtx, apply_macro_traverse, add_mapping)
16892 (add_map_value, initialize_macros): New functions.
16893 (def_hash, def_hash_eq_p): Generalize to anything that points to,
16894 or starts with, a char * field.
16895 (find_macro, read_mapping, check_code_macro): New functions.
16896 (read_rtx_1): New, split out from read_rtx. Handle the new
16897 define_{mode,code}_{macro,attr} constructs. Use find_macro
16898 to parse the name of a code or mode. Use BELLWETHER_CODE to
16899 extract the format and to choose a suitable code for rtx_alloc.
16900 Modify recursive invocations to use read_rtx_1.
16901 (read_rtx): Call initialize_macros. Apply code and mode macros
16902 to the rtx returned by read_rtx_1. Cache everything after the
16903 first macro expansion for subsequent read_rtx calls.
16904 * doc/md.texi: Document new .md constructs.
16905 * config/mips/mips.md (GPR): New mode macro.
16906 (d, si8_di5): New mode attributes.
16907 (any_cond): New code macro.
16908 (add[sd]i3): Redefine using :GPR.
16909 (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
16910 (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
16911 previously unnamed MIPS16 patterns.
16912 (*addsi3_extended): Renamed from addsi3_internal_2. Fix overly long
16913 lines. Don't match (plus (const_int 0) ...).
16914 (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
16915 Use a define_split to generate the addition.
16916 (sub[sd]i3): Redefine using :GPR. Turn subsi3 into a define_insn.
16917 (subsi3_internal): Delete.
16918 (*subsi3_extended): Renamed from subsi3_internal_2.
16919 (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
16920 (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
16921 using an any_cond template.
16922
16923 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16924
16925 * read-rtl.c (read_rtx): Tidy use of format_ptr.
16926
16927 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16928
16929 * read-rtl.c (string_obstack): New file-scope variable.
16930 (read_string, read_quoted_string, read_braced_string)
16931 (read_escape): Remove obstack parameter and use string_obstack instead.
16932 (read_rtx): Remove function-local rtl_obstack and initialize
16933 string_obstack instead. Update call to read_string.
16934
16935 2004-08-22 Andrew Pinski <apinski@apple.com>
16936
16937 PR c/15262
16938 * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
16939 expression is not constant.
16940 (c_finish_return): Do not go through INDIRECT_REF when looking
16941 for the inner expression of an ADDR_EXPR for warning about.
16942
16943 2004-08-22 Richard Henderson <rth@redhat.com>
16944
16945 PR 17075
16946 * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
16947 create new blocks and fall through.
16948 (expand_gimple_basic_block): Update to match.
16949
16950 2004-08-22 Ulrich Weigand <uweigand@de.ibm.com>
16951
16952 * reload.c (find_reloads_address): Make return value tri-state.
16953 Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
16954 (find_reloads): Assume that reloaded addresses match 'o' or
16955 EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
16956 returned 1 (not -1). Omit optional reloads for address operands
16957 only if find_reloads_address returned 1 (not -1).
16958
16959 * config/s390/s390.c (legitimize_reload_address): New function.
16960 * config/s390/s390-protos.h (legitimize_reload_address): Declare.
16961 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define. Call
16962 legitimize_reload_address.
16963
16964 2004-08-22 Richard Hendersion <rth@redhat.com>
16965
16966 * tree.h (SAVE_EXPR_RESOLVED_P): New.
16967 * gimplify.c (gimplify_save_expr): Use it.
16968 * expr.c (expand_expr_real_1): Likewise. Also set DECL_IGNORED_P
16969 on the temporary variable.
16970
16971 2004-08-22 Andrew Pinski <pinskia@physics.uc.edu>
16972
16973 * fold-const.c (rtl_expr_nonnegative_p): Delete.
16974 * tree.h (rtl_expr_nonnegative_p): Remove.
16975
16976 2004-08-22 Steven Bosscher <stevenb@suse.de>
16977
16978 * config/i386/ppro.md (ppro_complex_insn): Add missing check
16979 for cpu==pentiumpro.
16980
16981 * combine.c (struct reg_stat): Fix comment typo.
16982
16983 2004-08-22 Joseph S. Myers <jsm@polyomino.org.uk>
16984
16985 * c-tree.h (c_sizeof_nowarn): Remove.
16986
16987 2004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
16988
16989 * c-decl.c (set_array_declarator_type): Rename to
16990 set_array_declarator_inner.
16991 (build_c_parm, build_attrs_declarator, build_function_declarator):
16992 New functions.
16993 (make_pointer_declarator): Call build_attrs_declarator.
16994 * c-tree.h (set_array_declarator_type): Rename to
16995 set_array_declarator_inner.
16996 (build_c_parm, build_attrs_declarator, build_function_declarator):
16997 New prototypes.
16998 * c-parse.in (after_type_declarator,
16999 parm_declarator_starttypename, parm_declarator_nostarttypename,
17000 notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
17001 firstparm): Use these functions
17002
17003 2004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
17004
17005 * c-decl.c (build_array_declarator, set_array_declarator_type,
17006 start_decl, grokdeclarator, grokparms): Change boolean parameters
17007 to type bool.
17008 * c-tree.h (build_array_declarator, set_array_declarator_type,
17009 start_decl): Update prototypes.
17010 * c-decl.c, c-parse.in: All callers changed.
17011
17012 2004-08-21 Mike Stump <mrs@apple.com>
17013
17014 * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
17015 (darwin_fix_and_continue): Likewise.
17016 (darwin_fix_and_continue_switch): Likewise.
17017 * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
17018 (darwin_fix_and_continue): Likewise.
17019 (darwin_fix_and_continue_switch): Likewise.
17020
17021 2004-08-21 Danny Smith <dannysmith@users.sourceforge.net>
17022
17023 PR c++/16030
17024 * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
17025 Remove, merging into ...
17026 (gen_stdcall_or_fastcall_suffix): New function, returning tree
17027 rather than const char*, and accepting additional parameter.
17028 Don't add suffix to '*'-prefixed symbols or variadic functions.
17029 (i386_pe_encode_section_info): Adjust for call to new function.
17030 Call change_decl_assembler_name.
17031
17032 2004-08-20 Mike Stump <mrs@apple.com>
17033
17034 * config/darwin.c (machopic_indirect_data_reference): Mark
17035 stubs as defined.
17036 * config/386/386.c (darwin_local_data_pic): Add.
17037 (legitimate_constant_p): Reorder so that PLUS handling runs
17038 before darwin_local_data_pic to match the ordering in
17039 legitimate_pic_address_disp_p and so that MINUS runs after
17040 darwin_local_data_pic as otherwise the darwin_local_data_pic
17041 logic can be skipped, which would be very bad.
17042 (legitimate_pic_address_disp_p): Move from from here to
17043 darwin_local_data_pic so it can be reused.
17044
17045 2004-08-21 Alan Modra <amodra@bigpond.net.au>
17046
17047 * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
17048 (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
17049 (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
17050 (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
17051 (RS6000_ABI_NAME): Define as "linux".
17052 (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
17053 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
17054 ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
17055 * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
17056 * config/rs6000/rs6000.c (dot_symbols): New global var.
17057 (rs6000_output_function_entry): New function, modified for
17058 !DOT_SYMBOLS..
17059 (print_operand <case 'z'>): ..extracted from here.
17060 (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
17061 (rs6000_output_function_epilogue): Likewise.
17062 (rs6000_elf_declare_function_name): Likewise.
17063 * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
17064 (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
17065 * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
17066 * configure: Regenerate.
17067 * config.in: Regenerate.
17068
17069 2004-08-20 Mark Mitchell <mark@codesourcery.com>
17070
17071 * reload.c (find_reloads_address): Fix thinko in previous change.
17072
17073 * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
17074 a CONST_INT.
17075
17076 2004-08-20 Jakub Jelinek <jakub@redhat.com>
17077
17078 PR rtl-optimization/17099
17079 * combine.c (force_to_mode): Check if inner_mask has any bits set
17080 outside of GET_MODE (x) instead of op_mode.
17081
17082 2004-08-20 Mark Mitchell <mark@codesourcery.com>
17083
17084 * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
17085 fragment.
17086 * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
17087 (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
17088 * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
17089 architecture.
17090 (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
17091 configurations.
17092 * config/arm/t-symbian: New file.
17093
17094 2004-08-20 Andrew Pinski <apinski@apple.com>
17095
17096 * regrename.c (kill_value_regno): ANSIfy.
17097
17098 2004-08-20 Dale Johannesen <dalej@apple.com>
17099
17100 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
17101
17102 2004-08-20 Daniel Jacobowitz <dan@debian.org>
17103
17104 * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
17105 (kill_value_regno): New function, derived from kill_value.
17106 (kill_value): Update.
17107 (copyprop_hardreg_forward_1): Update call to kill_value_regno.
17108
17109 2004-08-20 Daniel Berlin <dberlin@dberlin.org>
17110
17111 Fix PR tree-optimization/17111
17112 * tree-ssa-pre.c (create_value_expr_from): Don't change the types
17113 of non-value_handles.
17114 (bitmap_set_contains): All constants are in every set.
17115
17116 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
17117
17118 * fold-const.c (round_up, round_down): Use build_int_cst.
17119 Optimize common case.
17120
17121 2004-08-20 Zack Weinberg <zack@codesourcery.com>
17122 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17123
17124 * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
17125 one_only_data_section): Rename to som_readonly_data_section,
17126 som_one_only_readonly_data_section and som_one_only_data_section.
17127 * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
17128 NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
17129 conditional defines.
17130 (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
17131 NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
17132 string values.
17133 (pa_select_section): Use renamed section functions.
17134 * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
17135 SOM_READONLY_DATA_SECTION_FUNCTION,
17136 SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
17137 SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
17138 Define here ...
17139 * config/pa/som.h: ... not here.
17140 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
17141 ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
17142 ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
17143 ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
17144 (READONLY_DATA_SECTION): Use som_readonly_data_section.
17145
17146 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
17147
17148 * fold-const.c (int_const_binop): Don't generate non-overflowing
17149 size-types specially.
17150 (fold_convert_const): Likewise.
17151
17152 * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
17153 clear cache on copied sizetype.
17154
17155 2004-08-20 Ben Elliston <bje@au.ibm.com>
17156
17157 * configure.ac: Don't escape apostrophe in --enable-coverage help.
17158 * configure: Regenerate.
17159
17160 2004-08-20 Danny Smith <dannysmith@users.sourceforge.net>
17161
17162 PR 5620
17163 * gcc.c (struct stat input_stat): Don't define if
17164 HOST_LACKS_INODE_NUMBERS
17165 (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
17166 than stat to determine if temp file is same as input file.
17167 * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
17168 * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
17169
17170 2004-08-20 Richard Sandiford <rsandifo@redhat.com>
17171
17172 * configure.ac (mips*-*-*): Print an error if not using GAS.
17173 * configure: Regenerated.
17174 * doc/install.texi: Remove irix5 bullet from --with-gnu-as. Remove
17175 comments about buggy MIPSpro assemblers.
17176 * config.gcc (mips-sgi-irix[56]*): Combine stanzas. Include elfos.h
17177 before mips.h and iris.h after it. Use t-iris and t-slibgcc-irix.
17178 Use iris5.h only for IRIX 5 configs. Use iris6.h and t-iris6 for
17179 IRIX 6 configs. Define IRIX_USING_GNU_LD if using GNU ld.
17180 * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
17181 (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
17182 (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
17183 (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
17184 (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
17185 of more general IRIX 6 definitions.
17186 (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
17187 (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
17188 (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
17189 (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
17190 (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
17191 (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
17192 (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
17193 (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
17194 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
17195 (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
17196 (LINK_SPEC): Move most of definition to iris.h.
17197 (SUBTARGET_LINK_SPEC): New macro.
17198 (IRIX_STARTFILE_SPEC): Fold into...
17199 (STARTFILE_SPEC): ...here.
17200 (IRIX_ENDFILE_SPEC): Fold into...
17201 (ENDFILE_SPEC): ...here.
17202 * config/mips/iris6.h (TARGET_IRIX5): Remove override.
17203 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
17204 (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
17205 (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
17206 (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
17207 (TARGET_OS_CPP_BUILTINS): Likewise. Guard IRIX6-specific bits.
17208 (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
17209 (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
17210 (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
17211 (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
17212 (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
17213 (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
17214 (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
17215 (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
17216 (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
17217 (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
17218 (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
17219 (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
17220 (TARGET_IRIX6): Define to 1.
17221 (DRIVER_SELF_SPECS): Define.
17222 (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
17223 (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
17224 (SUBTARGET_LINK_SPEC): New macro.
17225 (IRIX_STARTFILE_SPEC): Fold into...
17226 (STARTFILE_SPEC): ...here. Remove !mabi=* case.
17227 (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
17228 (LIB_SPEC, LIBGCC_SPEC): Use them.
17229 (LIB_SPEC): Remove !mabi=* case.
17230 (IRIX_ENDFILE_SPEC): Fold into...
17231 (ENDFILE_SPEC): ...here. Remove !mabi=* case.
17232 * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
17233 * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
17234 (TARGET_IRIX6): New macro.
17235 (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
17236 (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
17237 (LABEL_AFTER_LOC): Delete.
17238 * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
17239 (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
17240 (mips_build_builtin_va_list): Check TARGET_IRIX6.
17241 (override_options): Remove TARGET_SGI_O32_AS-related code.
17242 (irix_output_external_libcall): Make static.
17243 (mips_output_filename): Avoid use of SET_FILE_NUMBER and
17244 LABEL_AFTER_LOC.
17245 (mips_file_start): Tidy guard for ABI sections. Remove use of
17246 ABICALLS_ASM_OP; use .abicalls instead.
17247 (mips_output_aligned_decl_common, mips_declare_object_name)
17248 (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
17249 (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
17250 .globl foo .text directives.
17251 (irix_asm_named_section_1, irix_asm_named_section)
17252 (irix_section_align_entry, irix_section_align_htab)
17253 (irix_orig_asm_out_file, irix_section_align_entry_eq)
17254 (irix_section_align_entry_hash, irix_asm_output_align)
17255 (irix_file_start, irix_section_align_1, copy_file_data)
17256 (irix_file_end, irix_section_type_flags): Delete.
17257 * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
17258 Use standard section syntax. Remove protective "jr $31".
17259 (__gcc_fini): Likewise .gcc_fini.
17260 * config/mips/irix-crtn.asm: Adjust sections accordingly.
17261 * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
17262 iris5gas.h.
17263 * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
17264 from t-irix-gld.
17265 (EXTRA_MULTILIB_PARTS): Define.
17266 * config/mips/t-iris6: Remove bogus comment.
17267 (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
17268 * config/mips/iris5gas.h, config/mips/iris5gld.h,
17269 config/mips/iris6gas.h, config/mips/iris6gld.h,
17270 config/mips/t-iris5-as, config/mips/t-iris5-gas
17271 config/mips/t-irix-gld: Delete.
17272 * config/mips/iris.h: New file.
17273 * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
17274
17275 2004-08-20 Richard Earnshaw <rearnsha@arm.com>
17276
17277 * postreload.c (reload_cse_move2add): Allow any condjump, but check
17278 that the implicit set isn't clobbered in the jump insn.
17279
17280 2004-08-19 Mark Mitchell <mark@codesourcery.com>
17281
17282 * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
17283 * optabs.c (init_optabs): Don't check it.
17284 * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
17285 * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
17286
17287 2004-08-18 Andreas Krebbel <krebbel1@de.ibm.com>
17288
17289 * config/s390/s390.md (s390_warn_framesize_string)
17290 (s390_warn_dynamic_string, s390_stack_size_string)
17291 (s390_stack_guard_string): New global string variables.
17292 (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
17293 (s390_stack_guard): New global variables.
17294 (override_options): Added checks for the new options.
17295 (s390_emit_prologue): Emit stack check and trap code and perform
17296 compile time stack size checking.
17297
17298 * config/s390/s390.h (TARGET_OPTIONS): Added new options
17299 "warn-framesize", "warn-dynamicstack", "stack-size" and
17300 "stack-guard".
17301
17302 * doc/invoke.texi: Added documentation for the new options.
17303
17304 2004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
17305
17306 * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
17307 to eliminate warning.
17308 (linear_search_fdes): Declare p as unsigned.
17309 (binary_search_mixed_encoding_fdes): Likewise.
17310 * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
17311 to eliminate warning.
17312 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
17313 type cast.
17314
17315 2004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
17316
17317 * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
17318 * config/s390/s390.c (preferred_la_operand_p): Accept two operands
17319 instead of one. Check for strictly legitimate address.
17320 * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
17321 to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
17322
17323 2004-08-19 Eric Christopher <echristo@redhat.com>
17324
17325 * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
17326 * langhooks.h (unsave_expr_now): Ditto.
17327 * tree.h (unsave_expr_1): Remove prototype.
17328 (lhd_unsave_expr_now): Rename to unsave_expr_now.
17329 * tree-inline.c (unsave_expr_1): Move here
17330 from tree.c. Make static.
17331 (unsave_expr_now): Rename from lhd_unsave_expr_now.
17332 * tree-sra.c: Fix up for rename.
17333 * tree-ssa-copy.c: Ditto.
17334 * tree-eh.c: Ditto.
17335 * tree.c (unsave_expr_1): Move to tree-inline.c.
17336
17337 2004-08-19 Caroline Tice <ctice@apple.com>
17338
17339 * config/i386/cygming.h (switch_to_section): Fix typo (change
17340 in_unlikely_text_section to in_unlikely_executed_text).
17341
17342 2004-08-19 Daniel Berlin <dberlin@dberlin.org>
17343
17344 * vec.h (VEC_lower_bound): New macro.
17345
17346 2004-08-19 Richard Sandiford <rsandifo@redhat.com>
17347
17348 PR target/16446
17349 * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
17350 (mips_arg_info): Update accordingly. Remove common treatment of fpr_p;
17351 treat each ABI separately. Deal with n32/n64 complex float arguments.
17352 (function_arg): Add associated complex handling here.
17353
17354 2004-08-19 Richard Henderson <rth@redhat.com>
17355
17356 * config/arm/arm.c (arm_gen_load_multiple): Use
17357 adjust_automodify_address. Take base memory and offset instead
17358 of unchanging/struct/scalar bits.
17359 (arm_gen_store_multiple): Likewise.
17360 (arm_gen_movmemqi): Use adjust_automodify_address.
17361 * config/arm/arm-protos.h: Update decls.
17362 * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
17363 (store_multiple): Similarly.
17364
17365 2004-08-19 J"orn Rennecke <joern.rennecke@superh.com>
17366
17367 * regclass.c (globalize_reg): Update call_really_used_regs.
17368
17369 2004-08-19 Nathan Sidwell <nathan@codesourcery.com>
17370
17371 * doc/invoke.texi (integer-share-limit): Document.
17372
17373 * tree.h (TYPE_CACHED_VALUES_P): New.
17374 (TYPE_CACHED_VALUES): New.
17375 (TYPE_ORIG_SIZE_TYPE): Adjust.
17376 * tree.def (INTEGER_CST): Update documentation.
17377 * tree.c: Inlcude params.h.
17378 (build_int_cst): Cache small values.
17379 (build_type_copy): Do not copy the value cache.
17380 * c-common.c (c_common_nodes_and_builtins): Add comment, remove
17381 unneeded zeroing.
17382 * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
17383 * expmed.c (const_mult_add_overflow_p): Clear type copy's value
17384 cache.
17385 * fold-const.c (force_fit_type): Copy value when setting
17386 overflows.
17387 (int_const_binop): Likewise.
17388 * stor-layout.c: Include params.h
17389 (set_sizetype): Create values cache.
17390 (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
17391 * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
17392 * params.h (INTEGER_SHARE_LIMIT): New.
17393 * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
17394
17395 2004-08-19 Paolo Bonzini <bonzini@gnu.org>
17396
17397 * gimplify.c (gimplify_minimax_expr): Remove.
17398 (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
17399
17400 2004-08-19 Dorit Naishlos <dorit@il.ibm.com>
17401
17402 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
17403 STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
17404
17405 2004-08-19 Mark Mitchell <mark@codesourcery.com>
17406
17407 * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
17408
17409 2004-08-18 Andrew Pinski <apinski@apple.com>
17410
17411 * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
17412
17413 2004-08-18 Mark Mitchell <mark@codesourcery.com>
17414
17415 * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
17416 (__aeabi_ul2f): Likewise.
17417
17418 2004-08-18 Richard Henderson <rth@redhat.com>
17419
17420 * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
17421 move to rtl completely.
17422 (struct meminsnbuf, xtensa_emit_block_move): Remove.
17423 (xtensa_find_mode_for_size): Remove.
17424 * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
17425 * config/xtensa/xtensa.md (movmemsi_internal): Remove.
17426
17427 2004-08-18 Richard Henderson <rth@redhat.com>
17428
17429 * config/mcore/mcore.c (mode_from_align): Remove DImode.
17430 (block_move_sequence): Rewrite to use adjust_address.
17431 (mcore_expand_block_move): Cleanup logic. Accept only operands.
17432 Return boolean indicating success/failure.
17433 * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
17434 * config/mcore/mcore.md (movmemsi): Update to match.
17435
17436 2004-08-18 Mike Stump <mrs@apple.com>
17437
17438 * doc/invoke.texi (-mfix-and-continue): Add support for
17439 fast turn around debugging.
17440 (-ffix-and-continue): Likewise.
17441 (-mindirect-data): Likewise.
17442 (-findirect-data): Likewise.
17443 * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
17444 (indirect_data): Likewise.
17445 (machopic_data_defined_p): Likewise.
17446 (machopic_output_indirection): Likewise.
17447 (darwin_encode_section_info): Likewise.
17448 (darwin_fix_and_continue): Likewise.
17449 (darwin_fix_and_continue_switch): Likewise.
17450 * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
17451 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
17452 (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
17453 (SUBTARGET_OPTIONS): Likewise.
17454 (darwin_fix_and_continue): Likewise.
17455 (darwin_fix_and_continue_switch): Likewise.
17456 (TARGET_FIX_AND_CONTINUE): Likewise.
17457 * config/rs6000.c (rs6000_emit_prologue): Likewise.
17458
17459 2004-08-19 Steven Bosscher <stevenb@suse.de>
17460
17461 * basic-block.h (struct edge_def): Remove crossing_edge.
17462 (EDGE_CROSSING): New define.
17463 (EDGE_ALL_FLAGS): Update.
17464 * bb-reorder.c (find_traces_1_round, better_edge_p,
17465 find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
17466 find_jump_block, fix_crossing_conditional_branches,
17467 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
17468 Replace all occurences of crossing_edge with an edge flag check
17469 or set/reset.
17470 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
17471 try_crossjump_bb): Likewise.
17472 * cfglayout.c (fixup_reorder_chain): Likewise.
17473 * cfgrtl.c (force_nonfallthru_and_redirect,
17474 commit_one_edge_insertion): Likewise.
17475
17476 * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
17477 * tree-flow.h (compute_dominance_frontiers): Move prototype...
17478 * basic-block.h: ...here.
17479 * tree-cfg.c (compute_dominance_frontiers_1,
17480 compute_dominance_frontiers): Move from here...
17481 * cfganal.c: ...to here. Include timevar.h.
17482
17483 2004-08-18 James E Wilson <wilson@specifixinc.com>
17484
17485 * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
17486 * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
17487
17488 * config/mips/mips.md (type): Add frdiv.
17489 (divsf3+1, divsf3+2): Change type to frdiv.
17490 * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
17491 ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
17492
17493 * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
17494 * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
17495 * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
17496 * config/mips/5000.md (r5k_fdiv_single): Likewise.
17497 * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
17498 * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
17499 * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
17500 * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
17501 * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
17502 * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
17503 Likewise.
17504 * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
17505
17506 2004-08-18 Robert Bowdidge <bowdidge@apple.com>
17507
17508 * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
17509 get regression tester working again.
17510
17511 2004-08-18 Zack Weinberg <zack@codesourcery.com>
17512
17513 * insn-notes.def, reg-notes.def: New files.
17514 * rtl.h: Use them to define enum insn_note and enum reg_note.
17515 * rtl.c: Use them to define note_insn_name and reg_note_name.
17516 * Makefile.in (RTL_BASE_H): Update.
17517
17518 * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
17519 renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
17520
17521 2004-08-18 Richard Earnshaw <rearnsha@arm.com>
17522
17523 * arm.c (arm_size_rtx_costs): New function.
17524 (arm_override_options): Use it if optimizing for space.
17525
17526 2004-08-18 Richard Henderson <rth@redhat.com>
17527
17528 * emit-rtl.c (gen_const_mem): New.
17529 * rtl.h (gen_const_mem): Declare.
17530 * expr.c (do_tablejump): Use it.
17531 * varasm.c (force_const_mem): Likewise.
17532 * config/darwin.c (machopic_indirect_data_reference): Likewise.
17533 (machopic_legitimize_pic_address): Likewise.
17534 * config/arm/arm.c (legitimize_pic_address): Likewise.
17535 * config/i386/i386.c (legitimize_pic_address): Likewise.
17536 (legitimize_tls_address): Likewise.
17537 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
17538 * config/ia64/ia64.md (load_fptr): Likewise.
17539 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
17540 * config/pa/pa.c (legitimize_pic_address): Likewise.
17541 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
17542 (rs6000_emit_move): Likewise.
17543 * config/s390/s390.c (legitimize_pic_address): Likewise.
17544 (legitimize_tls_address): Likewise.
17545 * config/s390/s390.md (casesi): Likewise.
17546 * config/sh/sh.c (sh_reorg): Likewise.
17547 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
17548 * config/v850/v850.md (casesi): Likewise.
17549
17550 * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
17551 * config/sh/sh.c (prepare_move_operands): Remove incorrect
17552 use of MEM_READONLY_P.
17553
17554 2004-08-18 Steven Bosscher <stevenb@suse.de>
17555
17556 * Makefile.in (OBJS-common): Add postreload-gcse.c.
17557 Add new postreload-gcse.o.
17558 * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
17559 (lookup_as_function, insert, rehash_using_reg, use_related_value,
17560 equiv_constant): Use SAFE_HASH instead of safe_hash.
17561 (exp_equiv_p): Export. Add for_gcse argument when comparing
17562 for GCSE.
17563 (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
17564 find_comparison_args, fold_rtx, cse_insn): Update callers.
17565 (hash_rtx): New function derived from old canon_hash and bits
17566 from gcse.c hash_expr_1.
17567 (canon_hash_string): Rename to hash_rtx_string.
17568 (canon_hash, safe_hash): Make static inline. Call hash_rtx.
17569 * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
17570 (cselib_lookup): Update this caller.
17571 * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
17572 Make static.
17573 (hash_expr): Call hash_rtx.
17574 (ldst_entry): Likewise.
17575 (expr_equiv_p): Call exp_equiv_p.
17576 (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
17577 reg_used_on_edge, reg_set_between_after_reload_p,
17578 reg_used_between_after_reload_p, get_avail_load_store_reg,
17579 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
17580 get_bb_avail_insn, hash_scan_set_after_reload,
17581 compute_hash_table_after_reload,
17582 eliminate_partially_redundant_loads, gcse_after_reload,
17583 get_bb_avail_insn, gcse_after_reload_main): Remove.
17584 * postreload-gcse.c: New file, reincarnating most of the above.
17585 * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
17586 (gcse_after_reload_main): Update prototype.
17587 * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
17588 * passes.c (rest_of_handle_gcse2): Use it.
17589
17590 2004-08-18 Diego Novillo <dnovillo@redhat.com>
17591
17592 * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
17593 (pass_loop_done): Likewise.
17594
17595 2004-08-18 Andrew Pinski <apinski@apple.com>
17596
17597 * config/rs6000/darwin.md: Delete the altivec patterns which are
17598 handled differently now.
17599 (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
17600 (macho_correct_pic_di): Likewise.
17601 (call_indirect_nonlocal_darwin64): Likewise.
17602 Delete the save world/saveFP/saveVec patterns.
17603
17604 Revert the reversion of: 2004-08-16 Stan Shebs <shebs@apple.com>
17605 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
17606 * config/rs6000/rs6000.md: Include darwin.md.
17607 (builtin_setjmp_receiver): Add DImode case.
17608 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
17609 Darwin bits.
17610
17611 2004-08-18 Matt Austern <austern@apple.com>
17612
17613 Dead code stripping
17614 * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
17615 * darwin.c (darwin_file_end): Mark file as potentially strippable.
17616
17617 2004-08-18 Richard Henderson <rth@redhat.com>
17618
17619 * alias.c (readonly_fields_p): Remove.
17620 (objects_must_conflict_p): Don't call it.
17621 * tree.h (readonly_fields_p): Remove.
17622 * langhooks.h (struct lang_hooks): Remove honor_readonly.
17623 * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
17624
17625 2004-08-18 Diego Novillo <dnovillo@redhat.com>
17626
17627 * tree-dfa.c (add_referenced_var): Only global variables are
17628 call-clobbered.
17629 * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
17630 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
17631 all pointers dereferenced if the statement dereferences them.
17632 (create_name_tags): Do not create memory tags for pointers
17633 that have PT_ANYTHING set.
17634 Also check if PT_VARS is not empty before creating a name tag.
17635 (compute_flow_sensitive_aliasing): Don't mark call-clobbered
17636 variables that share the same alias set with a pointer that
17637 may point anywhere.
17638 (add_may_alias): Add FIXME comment to remove clobbering
17639 aliased variables and tags.
17640 (replace_may_alias): Likewise.
17641 (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
17642 (merge_pointed_to_info): If the original variable has not
17643 points-to information, call set_pt_anything.
17644 (add_pointed_to_var): Do not prevent adding a pointed-to
17645 variable if the pointers is PT_ANYTHING.
17646 If the variable is a global, set PT_GLOBAL_MEM.
17647 (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
17648 pointer type only come in PTR+OFFSET flavours.
17649 Always call merge_pointed_to_info on PHI arguments that are
17650 SSA_NAMEs.
17651 (get_nmt_for): Mark call-clobbered tags whose pointer points
17652 to global memory.
17653 * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
17654 values.
17655 (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
17656 FLAGS.
17657 (add_stmt_operand): Abort if the caller tried to add a killing
17658 definition for a memory tag.
17659 * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
17660 unnecessary checks.
17661
17662 2004-08-18 J"orn Rennecke <joern.rennecke@superh.com>
17663
17664 * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
17665 from call_used_regs. Update call_really_used_regs.
17666 (CALL_REALLY_USED_REGISTERS): Define.
17667 * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
17668 Replace call_used_regs with call_really_used_regs.
17669 (calc_live_regs, sh_media_register_for_return): Likewise.
17670 (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
17671 * sh.md (return_media): Likewise.
17672
17673 2004-08-18 Andrew Pinski <apinski@apple.com>
17674
17675 * config/darwin.c (machopic_legitimize_pic_address): Only set
17676 MEM_READONLY_P in the non TARGET_TOC case.
17677
17678 2004-08-18 Zack Weinberg <zack@codesourcery.com>
17679
17680 * rtl.def (NIL): Delete.
17681 * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
17682 Tighten the syntax a little.
17683
17684 * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
17685 * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
17686 * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
17687 * config/i386/predicates.md, config/m32r/m32r.h
17688 * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
17689 * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
17690 * config/sparc/sparc.h, doc/tm.texi:
17691 Replace all occurrences of NIL with UNKNOWN.
17692
17693 2004-08-18 Zack Weinberg <zack@codesourcery.com>
17694
17695 * dojump.c (do_jump <unordered_bcc>): Do not recursively call
17696 self with a TRUTH_ORIF_EXPR; generate the appropriate jump
17697 sequence inline. Move drop_through_label code into this
17698 block, being the only place it is used. Adjust comments.
17699
17700 2004-08-18 Fariborz Jahanian <fjahanian@apple.com>
17701
17702 * config/rs6000/altivec.md: Add new patterns for calls to
17703 save_world/rest_world functions.
17704
17705 * config/rs6000/rs6000-protos.h: (save_world_operation,
17706 restore_world_operation) new declarations.
17707
17708 * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
17709 field added.
17710 (rs6000_stack_info): Set world_save_p field.
17711 (save_world_operation): New function.
17712 (restore_world_operation): New function.
17713 (compute_save_world_info): New function.
17714 (rs6000_stack_info): Call compute_save_world_info.
17715 (rs6000_emit_prologue): Check for world_save_p and generate
17716 pattern to call save_world for saving all non-volatile and
17717 special registers.
17718 (rs6000_emit_epilogue): Check for world_save_p and generate
17719 pattern to call rest_world to restore saved registers.
17720
17721 config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
17722 FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
17723 (rs6000_reg_names): New entries added for save_world_operation and
17724 restore_world_operation.
17725
17726 2004-08-18 Caroline Tice <ctice@apple.com>
17727
17728 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
17729 "-freorder-blocks-and-partition" to the flags used in second
17730 stage of profiledbootstrap.
17731 * bb-reorder.c (push_to_next_round_p): Add new variable,
17732 next_round_is_last; set and use variable to make sure, when
17733 partitioning, that the last trace construction round consists
17734 of all (and only) cold basic blocks.
17735 (rotate_loop): Don't copy blocks that end in a section
17736 crossing jump.
17737 (copy_bb): Correctly initialize "partition" of duplicated bb.
17738 (add_unlikely_executed_notes): Add a comment.
17739 (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
17740 to make sure, if function contains hot blocks, that the
17741 successors of ENTRY_BLOCK_PTR are hot; also, only look for
17742 crossing edges if the architecture supports named sections.
17743 (mark_bb_for_unlikely_executed_section): Modify to always
17744 insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
17745 the basic block note insn.
17746 (fix_crossing_unconditional_branches): Remove extra space.
17747 (fix_edges_for_rarely_executed_code): Modify to only do
17748 partitioning work if the architecture supports named sections.
17749 (reorder_basic_blocks): Modify to only add
17750 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
17751 supports named sections.
17752 * c-common.c (handle_section_attribute): Initialize new global
17753 variable, user_defined_section_attribute, to true if user has
17754 specified one.
17755 * cfgcleanup.c (try_forward_edges): Modify to not attempt to
17756 forward edges that cross section boundaries.
17757 * cfglayout.c (fixup_reorder_chain): Modify to only fix up
17758 partitioning information if the architecture supports named
17759 sections.
17760 * cfgrtl.c (target.h): Add statement to include this.
17761 (rtl_split_block): Make sure newly created bb gets correct
17762 partition.
17763 (try_redirect_by_replacing_jump): Make sure redirection isn't
17764 attempting to cross section boundaries.
17765 (force_nonfallthru_and_redirect): Only do partition fix up if
17766 architecture supports named sections.
17767 (rtl_split_edge): Make sure newly created bb ends up in
17768 correct partition.
17769 (commit_one_edge_insertion): Remove code that incorrectly
17770 updated basic block partition; Make sure partition fix up only
17771 happens if architecture supports named sections and it's not
17772 already done.
17773 (rtl_verify_flow_info_1): Fix if-condition on test/error
17774 condition that fallthru edges are not allowed to cross section
17775 boundaries.
17776 * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
17777 * final.c (final_scan_insn): Remove redundant test from if-statement;
17778 change calls to text_section into calls to function_section; add code
17779 to only to partitioning fix up if architecture supports named
17780 sections.
17781 * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
17782 partition.
17783 (if_convert): Add targetm.have_named_sections to test.
17784 * output.h (unlikely_section_label): Extern declaration for new global
17785 variable.
17786 (unlikely_text_section_name): Likewise.
17787 * opts.c (decode_options): If both partitioning and DWARF debugging
17788 are turned on, issue a warning that this doesn't work, and change
17789 partitiong to basic block reordering (without hot/cold partitions).
17790 * passes.c (rest_of_handle_final): Re-set new global variable,
17791 user_defined_section_attribute, to false.
17792 (rest_of_compilation): Change options for calling partitioning
17793 function: Don't call if the user defined the section attribute, and
17794 don't call if DECL_ONE_ONLY is true for the current function.
17795 * predict.c (choose_function_section): Return immediately if we
17796 are doing hot/cold partitioning (i.e. let the basic block partitioning
17797 determine where the function belongs).
17798 * reg-stack.c (emit_swap_insn): Add condition to step over
17799 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
17800 * toplev.c (user_defined_section_attribute): New global variable.
17801 * toplev.h (user_defined_section_attribute): Extern declaration
17802 for new global variable.
17803 * varasm.c (unlikely_section_label): New global variable.
17804 (unlikely_text_section_name): New global variable.
17805 (unlikely_text_section): Add code to initialize
17806 unlikely_text_section_name if necessary; modify to use
17807 unlikely_text_section_name and unlikely_section_label; also to use
17808 named_section properly.
17809 (in_unlikely_text_section): Modify to work correctly with
17810 named_section and to use unlikely_text_section_name.
17811 (named_section): Add code to work properly with cold section.
17812 (function_section): Clean up if-statement.
17813 * config/darwin.c (darwin_asm_named_section): Return to original
17814 code, removing use of SECTION_FORMAT_STRING.
17815 * config/arm/pe.h (switch_to_section): Add case for
17816 in_unlikely_executed_text to switch statement.
17817 * config/i386/cygming.h (switch_to_section): Likewise.
17818 * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
17819 (SECTION_FORMAT_STRING): Likewise.
17820 * config/mcore/mcore.h (switch_to_section): Likewise.
17821 * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
17822 (SECTION_FORMAT_STRING): Remove.
17823
17824 2004-08-18 Roger Sayle <roger@eyesopen.com>
17825
17826 * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
17827 -ffixed-reg safe, by preserving the meanings of zero and one.
17828 (CALL_USED_REGISTERS): Likewise.
17829 (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
17830
17831 2004-08-18 Kaz Kojima <kkojima@gcc.gnu.org>
17832
17833 * config/sh/sh.c (split_branches): Check the result of
17834 next_active_insn.
17835 (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
17836 Call rtl_register_cfg_hooks.
17837
17838 2004-08-18 Richard Henderson <rth@redhat.com>
17839
17840 * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
17841 * alias.c (true_dependence): Update to match new semantics.
17842 (canon_true_dependence, write_dependence_p): Likewise.
17843 (anti_dependence, output_dependence): Update write_dependence_p args.
17844 (unchanging_anti_dependence): Remove.
17845 * calls.c (purge_mem_unchanging_flag): Remove.
17846 (fixup_tail_calls): Don't call it.
17847 (expand_call): Don't add unchanging memory to function usage.
17848 * expr.c (emit_block_move_via_libcall): Likewise.
17849 (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
17850 (get_subtarget): Don't use RTX_UNCHANGING_P.
17851 (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
17852 (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
17853 * combine.c (get_last_value_validate): Use MEM_READONLY_P.
17854 * cse.c (insert): Don't use RTX_UNCHANGING_P.
17855 (cse_insn, canon_hash): Use MEM_READONLY_P.
17856 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
17857 instead of RTX_UNCHANGING_P.
17858 * explow.c (maybe_set_unchanging): Remove.
17859 * expr.h (maybe_set_unchanging): Remove.
17860 * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
17861 * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
17862 (assign_parm_setup_reg, expand_function_start): Likewise.
17863 * integrate.c (copy_rtx_and_substitute): Likewise.
17864 * ra-rewrite.c (emit_colors): Likewise.
17865 * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
17866 (fixup_match_1): Likewise.
17867 * reload1.c (reload, alter_reg): Likewise.
17868 * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
17869 not RTX_UNCHANGING_P.
17870 (equiv_init_varies_p): Likewise.
17871 * loop-invariant.c (check_maybe_invariant): Likewise.
17872 * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
17873 * loop.c (note_addr_stored): Likewise.
17874 (prescan_loop): Likewise. Don't check function usage for clobbered
17875 unchanging memory.
17876 * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
17877 not RTX_UNCHANGING_P.
17878 (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
17879 * varasm.c (force_const_mem): Likewise.
17880 * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
17881 * web.c (entry_register): Likewise.
17882 * tree-gimple.h (get_base_address): Move decl ...
17883 * tree.h: ... here.
17884 * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
17885
17886 * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
17887 called via for_each_rtx. Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
17888 (alpha_set_memflags): Update to match.
17889
17890 * config/darwin.c (machopic_indirect_data_reference): Set
17891 MEM_READONLY_P instead of RTX_UNCHANGING_P.
17892 (machopic_indirect_call_target): Likewise.
17893 (machopic_legitimize_pic_address): Likewise.
17894 * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
17895 arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
17896 * config/arm/arm.md (load_multiple, store_multiple): Likewise.
17897 * config/frv/frv.md (symGOT2reg): Likewise.
17898 * config/i386/i386.c (legitimize_pic_address,
17899 legitimize_tls_address, ix86_split_to_parts): Likewise.
17900 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
17901 * config/ia64/ia64.md (load_fptr): Likewise.
17902 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
17903 * config/m68k/m68k.c (legitimize_pic_address): Likewise.
17904 * config/mcore/mcore.c (block_move_sequence): Likewise.
17905 * config/mn10300/mn10300.md (symGOT2reg): Likewise.
17906 * config/pa/pa.c (legitimize_pic_address): Likewise.
17907 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
17908 (rs6000_emit_move): Likewise.
17909 * config/s390/s390.c (legitimize_pic_address): Likewise.
17910 (legitimize_tls_address): Likewise.
17911 * config/s390/s390.md (casesi): Likewise.
17912 * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
17913 * config/sh/sh.md (symGOT2reg): Likewise.
17914 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
17915 * config/v850/v850.md (casesi): Likewise.
17916
17917 * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
17918 * config/iq2000/iq2000.c (save_restore_insns): Likewise.
17919 * config/mips/mips.c (mips_restore_gp): Likewise.
17920 (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
17921 * config/sh/sh.c (sh_reorg): Likewise.
17922
17923 2004-08-18 Richard Henderson <rth@redhat.com>
17924
17925 * tree.h (struct tree_decl): Add gimple_formal_temp.
17926 (DECL_GIMPLE_FORMAL_TEMP_P): New.
17927 * gimplify.c (pop_gimplify_context): Clear it.
17928 (lookup_tmp_var): Set it, if is_formal.
17929 (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
17930 Use is_gimple_val for VECTOR. Simplify return value.
17931 (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
17932 (gimplify_expr): Likewise.
17933 * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
17934 is_gimple_tmp_rhs for clarity. Update all callers.
17935 (is_gimple_reg_rhs): Simplify logic.
17936 (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
17937 clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
17938 (is_gimple_formal_tmp_reg): Similarly.
17939 * tree-gimple.h: Update decls.
17940 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
17941 DECL_IGNORED_P, not DECL_ARTIFICIAL. Tidy formatting.
17942 * tree-ssa-live.c (var_union, type_var_init): Likewise.
17943
17944 2004-08-18 Paolo Bonzini <bonzini@gnu.org>
17945
17946 * c4x.c (legitimize_operands): Remove calls to
17947 preserve_subexpressions_p.
17948
17949 2004-08-18 David Edelsohn <edelsohn@gnu.org>
17950
17951 * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
17952 * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
17953
17954 2004-08-18 Ziemowit Laski <zlaski@apple.com>
17955
17956 * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
17957 Objective-C++ extensions.
17958 * gengtype.c (get_file_basename): Match entire subdirectory name
17959 ('cp', 'objc', 'objcp') rather than just its suffix.
17960 (get_base_file_bitmap): Allow for files to belong to more than one
17961 language.
17962 (get_output_file_with_visibility): Treat objc/objc-act.h as a header
17963 used by more than one front-end.
17964
17965 2004-08-18 Richard Earnshaw <rearnsha@arm.com>
17966
17967 * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
17968 avoid use of preserve_subexpressions_p.
17969
17970 2004-08-17 Richard Henderson <rth@redhat.com>
17971
17972 PR 17051
17973 * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
17974
17975 2004-08-17 DJ Delorie <dj@redhat.com>
17976
17977 * doc/extend.texi: Document new xstormy16 attribute.
17978
17979 * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
17980 (xstormy16_splittable_below100_or_register): New.
17981 (combine_bnp): New.
17982 (xstormy16_reorg): New.
17983 (TARGET_MACHINE_DEPENDENT_REORG): Define.
17984
17985 * config/stormy16/stormy16.md (movqi_internal): Make name public.
17986 (movhi_internal): Likewise.
17987 (cbhranchhi): Likewise.
17988 (cbhranchhi_neg): Likewise.
17989 (andhi3): Only allow splittable below100 operands.
17990 (iorhi3): Likewise.
17991 (peephole2): New and/zero_extend->and peephole.
17992 (peephole2): New load/ior/save->set1 peephole.
17993 (peephole2): New load/and/save->clr1 peephole.
17994 (bclrx, bclrx2, bclr7, bclr15): New.
17995 (bsetx, bsetx2, bset7, bset15): New.
17996
17997 * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
17998 liberal about acceptable 'B' masks.
17999
18000 * config/stormy16/stormy16-protos.h
18001 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
18002 xstormy16_below100_operand, xstormy16_below100_or_register,
18003 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
18004 (PREDICATE_CODES): Add new predicates.
18005
18006 * config/stormy16/stormy16.c
18007 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
18008 xstormy16_below100_operand, xstormy16_below100_or_register,
18009 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
18010 (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
18011 (xstormy16_legitimate_address_p): Allow below100 symbols.
18012 (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
18013 (xstormy16_expand_move): Leave below100 operands as-is.
18014 (xstormy16_encode_section_info): Encode below100 symbols.
18015 (xstormy16_strip_name_encoding): New.
18016 (xstormy16_print_operand): Print 'b' as shift mask.
18017 (xstormy16_attribute_table): Add below100 attributes.
18018 (xstormy16_handle_below100_attribute): New.
18019
18020 * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
18021 (XSTORMY16_SECTION_FUNCTION): New.
18022 (EXTRA_SECTION_FUNCTIONS): Define using the above.
18023 (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
18024 (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
18025 (ASM_OUTPUT_LABELREF): Define.
18026
18027 * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
18028 (movhi_internal): Add below100 support.
18029 (andhi3): Add below100 support.
18030 (iorhi3): Add below100 support.
18031 (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
18032
18033 2004-08-17 James E Wilson <wilson@specifixinc.com>
18034
18035 * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
18036 of VOIDmode for comparison code mode.
18037 * config/mips/mips.md: For conditional move patterns, use mode of
18038 first compare operand for comparison mode, instead of VOIDmode.
18039
18040 * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
18041 normal and -ffast-math code.
18042
18043 2004-08-17 Mark Mitchell <mark@codesourcery.com>
18044
18045 PR c++/15871
18046 * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
18047
18048 2004-08-17 Robert Bowdidge <bowdidge@apple.com>
18049
18050 * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
18051
18052 2004-08-17 Andreas Tobler <a.tobler@schweiz.ch>
18053
18054 * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
18055 for non Darwin targets.
18056 (*call_value_nonlocal_darwin64): Likewise.
18057
18058 2004-08-17 Fariborz Jahanian <fjahanian@apple.com>
18059
18060 * config/rs6000/rs6000.c (rs6000_function_value): Check for
18061 altivec mode for altivec return register.
18062
18063 2004-08-17 David Edelsohn <edelsohn@gnu.org>
18064
18065 Revert 2004-08-16 Stan Shebs <shebs@apple.com>
18066 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
18067 * config/rs6000/rs6000.md: Include darwin.md.
18068 (builtin_setjmp_receiver): Add DImode case.
18069 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
18070 Darwin bits.
18071
18072 2004-08-17 Dorit Naishlos <dorit@il.ibm.com>
18073
18074 * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
18075 trees.
18076 * tree-vectorizer.h: New File: Same.
18077 * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
18078 * common.opt (ftree-vectorize): New flag to enable vectorization.
18079 * timevar.def (TV_TREE_VECTORIZATION): New dump file for
18080 vectorization pass.
18081 * tree-data-ref.h (init_data_ref): Additional argument.
18082 (array_base_name_differ_p): Moved to tree-data-ref.c.
18083 * tree-data-ref.c (array_base_name_differ_p): Revised.
18084 (initialize_data_dependence_relation): Call array_base_name_differ_p
18085 with an extra argument.
18086 (analyze_all_data_dependences): Same.
18087 (init_data_ref): Additional argument is_read to set DR_IS_READ.
18088 * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
18089 file.
18090 * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
18091 * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
18092 * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
18093 vectorization pass.
18094 * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
18095 (tree_ssa_loop_done): Call scev_finalize.
18096 (tree_vectorize): Define the new vectorization pass.
18097 * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
18098 size of the vector they support (until support for multiple vector
18099 sizes is added to the vectorizer).
18100 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
18101 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
18102 * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
18103 documentation.
18104
18105 2004-08-17 Nathan Sidwell <nathan@codesourcery.com>
18106
18107 * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
18108 usage.
18109 (generate_protocol_list, handle_impent): Likewise.
18110
18111 2004-08-17 Roger Sayle <roger@eyesopen.com>
18112
18113 * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
18114 ensure that call_used_regs is a superset of both fixed_regs and
18115 call_really_used_regs.
18116
18117 2004-08-17 Daniel Bornstein <danfuzz@milk.com>
18118
18119 PR target/17019
18120 * arm.md (addsi3_cbranch_scratch): Correct case labels.
18121
18122 2004-08-17 Paolo Bonzini <bonzini@gnu.org>
18123
18124 PR middle-end/17036
18125 * fold-const.c (fold): Check for integer operand when
18126 folding (A >> N) & 1 ? (1 << N) : 0. Fix from Andrew
18127 Pinski <pinskia@physics.uc.edu>.
18128
18129 2004-08-17 Paolo Bonzini <bonzini@gnu.org>
18130
18131 * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
18132 No need to check if in a cross configuration.
18133 * configure: Regenerate.
18134
18135 * calls.c (precompute_register_parameters):
18136 Inline preserve_subexpressions_p ().
18137 * expmed.c (expand_mult_const, emit_store_flag): Likewise.
18138 * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
18139 Likewise.
18140 * expr.c (get_subtarget): Likewise.
18141 * rtl.h (preserve_subexpressions_p): Remove.
18142 * stmt.c (preserve_subexpressions_p): Remove.
18143
18144 * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
18145 TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
18146 Abort on gimplified cases.
18147
18148 2004-08-16 James E Wilson <wilson@specifixinc.com>
18149
18150 * tree.h (VECTOR_FLOAT_TYPE_P): New.
18151 (FLOAT_TYPE_P): Use it.
18152 * c-typeck.c (build_binary_op): After convert calls, check for
18153 check for ERROR_MARK operands.
18154
18155 2004-08-16 Zack Weinberg <zack@codesourcery.com>
18156
18157 * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
18158 (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
18159 (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
18160 (genobjs static pattern rule): Remove %.c dependency.
18161 ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
18162 Rename rules; delete commands; fix dependencies.
18163 (mostlyclean): Do not delete temporary source copies.
18164 * configure.ac: Delete all references to BUILD_PREFIX and
18165 BUILD_PREFIX_1.
18166 * configure: Regenerate.
18167
18168 * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
18169 Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
18170 basic-block.h #ifdef GENERATOR_FILE. Surround some more code
18171 with #ifndef GENERATOR_FILE so that nothing from those headers
18172 is used.
18173
18174 * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
18175
18176 2004-08-16 Adam Nemet <anemet@lnxw.com>
18177
18178 * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
18179
18180 2004-08-16 Andrew Pinski <apinski@apple.com>
18181
18182 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
18183 extraneous semicolon.
18184
18185 2004-08-16 Devang Patel <dpatel@apple.com>
18186
18187 * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
18188 * print-tree.c (print_node): Print DECL_PRESERVE_P.
18189 * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
18190 (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
18191 * target.h (struct gcc_target): New member, mark_decl_preserved.
18192 * hooks.c (hook_void_charptr): Rename to ...
18193 (hook_void_constcharptr): ... new name.
18194 * hooks.h (hook_void_charptr): Rename to ..
18195 (hook_void_constcharptr): ... new name.
18196 * tree.h (DECL_PRESERVE_P): New #define.
18197 (struct tree_decl): New member, preserve_flag.
18198 * varasm.c (assemble_start_function): Mark decl preserved.
18199 (assemble_variable): Same.
18200 * darwin.c (darwin_mark_decl_preserved): New function.
18201 * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
18202 * darwin-protos.h (darwin_mark_decl_preserved): New decl.
18203 * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
18204
18205 2004-08-16 Joseph S. Myers <jsm@polyomino.org.uk>
18206
18207 * c-decl.c (grokdeclarator): Allow for function definition where
18208 innermost declarator has attributes.
18209
18210 2004-08-16 Fariborz Jahanian <fjahanian@apple.com>
18211
18212 * except.c (get_exception_filter, build_post_landing_pads,
18213 dw2_build_landing_pads): Use target-specific mode for 'filter'.
18214 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
18215 * target.h (eh_return_filter_mode): New field added.
18216 * targhooks.c (default_eh_return_filter_mode): Defined.
18217 * targhooks.h (default_eh_return_filter_mode): Declared.
18218 * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
18219
18220 2004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
18221
18222 * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
18223 ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
18224 * configure: Regenerate.
18225
18226 2004-08-16 Stan Shebs <shebs@apple.com>
18227
18228 Basic support for 64-bit Darwin.
18229 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
18230 (machopic_legitimize_pic_address): Similarly, plus use Pmode
18231 instead of SImode.
18232 * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
18233 (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
18234 (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
18235 (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
18236 (PROCESSOR_DEFAULT64): Define.
18237 * config/rs6000/darwin.md: New file, patterns specific to 64-bit
18238 Darwin.
18239 * config/rs6000/rs6000.md: Include darwin.md.
18240 (builtin_setjmp_receiver): Add DImode case.
18241 * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
18242 Darwin.
18243 (TARGET_ASM_ALIGNED_DI_OP): Ditto.
18244 (rs6000_emit_move): Add DImode case to Darwin bits.
18245 (machopic_output_stub): Use .quad if 64-bit.
18246 * invoke.texi: Document -m32 and -m64.
18247
18248 2004-08-16 Janis Johnson <janis187@us.ibm.com>
18249
18250 * doc/extend.texi (AltiVec builtins): Document additional differences
18251 from the Motorola AltiVec PIM.
18252
18253 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
18254
18255 * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
18256 * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
18257 (struct tree_common): Update public_flag documentation.
18258
18259 2004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
18260
18261 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
18262 Check for artificial variables, not is_gimple_tmp_var.
18263 * tree-ssa-live.c (var_union): Likewise.
18264
18265 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
18266
18267 * calls.c (load_register_parameters): Remove spurious FIXME token.
18268
18269 2004-08-15 Ziemowit Laski <zlaski@apple.com>
18270
18271 * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
18272 (c-lang.o): Depend on c-objc-common.h.
18273 (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
18274 c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
18275 * c-lang.c: Include c-objc-common.h.
18276 (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
18277 LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
18278 LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
18279 LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
18280 LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
18281 LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
18282 LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
18283 LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
18284 LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
18285 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
18286 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
18287 LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
18288 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
18289 LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
18290 LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
18291 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
18292 LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
18293 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
18294 LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
18295 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
18296 LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
18297 LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
18298 LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
18299 LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
18300 Move to c-objc-common.h.
18301 * c-objc-common.c: Include c-objc-common.h.
18302 * c-objc-common.h: New file.
18303
18304 2004-08-15 Andreas Tobler <a.tobler@schweiz.ch>
18305 Andrew Pinski <pinskia@physics.uc.edu>
18306
18307 PR target/14931
18308 * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
18309 style.
18310
18311 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
18312
18313 * tree.h (build_int_cst): New.
18314 (build_int_2): Remove.
18315 * tree.c (build_int_2): Remove.
18316 (build_int_cst): New.
18317 (make_vector_type, build_common_tree_nodes,
18318 build_common_tree_nodes_2): Use build_int_cst.
18319 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
18320 expand_builtin_strpbrk, expand_builtin_fputs,
18321 build_string_literal, expand_builtin_printf,
18322 expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
18323 fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
18324 fold_builtin_isdigit, simplify_builtin_strstr,
18325 simplify_builtin_strpbrk, fold_builtin_fputs,
18326 simplify_builtin_sprintf): Use build_int_cst.
18327 * c-common.c (start_fname_decls, fix_string_type,
18328 c_common_nodes_and_builtins, c_init_attributes,
18329 shorten_compare): Likewise.
18330 * c-decl.c (complete_array_type,
18331 check_bitfield_type_and_width): Likewise.
18332 * c-lex.c (interpret_integer, lex_charconst): Likewise.
18333 * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
18334 * c-pretty-print.c (pp_c_integer_constant): Likewise.
18335 * c-typeck.c (really_start_incremental_init, push_init_level,
18336 set_nonincremental_init_from_string): Likewise.
18337 * calls.c (load_register_parameters): Likewise.
18338 * convert.c (convert_to_pointer): Likewise.
18339 * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
18340 build_fn_info_type, build_ctr_info_value, build_gcov_info):
18341 Likewise.
18342 * except.c (init_eh, assign_filter_values, assign_filter_values):
18343 Likewise.
18344 * expmed.c (store_fixed_bit_field, extract_bit_field,
18345 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
18346 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
18347 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
18348 * expr.c (convert_move, emit_group_load, emit_group_store,
18349 expand_assignment, store_constructor, store_field,
18350 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
18351 * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
18352 invert_truthvalue, optimize_bit_field_compare,
18353 decode_field_reference, all_ones_mask_p, constant_boolean_node,
18354 fold_div_compare, fold, fold_read_from_constant_string,
18355 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
18356 * function.c (assign_parm_setup_block): Likewise.
18357 * stmt.c (shift_return_value, expand_end_case_type,
18358 estimate_case_costs): Likewise.
18359 * stor-layout.c (layout_type, initialize_sizetypes,
18360 set_min_and_max_values_for_integral_type): Likewise.
18361 * tree-chrec.c (chrec_fold_multiply_poly_poly,
18362 reset_evolution_in_loop): Likewise.
18363 * tree-chrec.h (build_polynomial_chrec): Likewise.
18364 * tree-complex.c (build_replicated_const): Likewise.
18365 * tree-eh.c (honor_protect_cleanup_actions,
18366 lower_try_finally_onedest, lower_try_finally_copy,
18367 lower_try_finally_switch): Likewise.
18368 * tree-mudflap.c (mf_build_string, mx_register_decls,
18369 mudflap_register_call, mudflap_enqueue_constant): Likewise.
18370 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
18371 * tree-pretty-print.c (dump_generic_node): Likewise.
18372 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
18373 Likewise.
18374 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
18375 * tree-ssa-loop-niter.c (number_of_iterations_cond,
18376 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
18377 Likewise.
18378
18379 * config/alpha/alpha.c (alpha_initialize_trampoline,
18380 alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
18381 * config/arm/arm.c (arm_get_cookie_size): Likewise.
18382 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
18383 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
18384 * config/i860/i860.c (i860_va_start): Likewise.
18385 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
18386 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
18387 mips_gimplify_va_arg_expr): Likewise.
18388 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
18389 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
18390 add_compiler_branch_island): Likewise.
18391 * config/s390/s390.c (s390_va_start): Likewise.
18392 * config/sh/sh.c (sh_va_start): Likewise.
18393 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
18394 Likewise.
18395 * config/xtensa/xtensa.c (xtensa_va_start,
18396 xtensa_gimplify_va_arg_expr): Likewise.
18397
18398 * objc/objc-act.c (build_objc_string_object,
18399 build_objc_symtab_template, init_def_list, init_objc_symtab,
18400 init_module_descriptor, generate_static_references,
18401 build_selector_translation_table, get_proto_encoding,
18402 build_typed_selector_reference, build_selector_reference,
18403 build_next_objc_exception_stuff,
18404 build_method_prototype_list_template, generate_descriptor_table,
18405 generate_protocols, build_protocol_initializer,
18406 build_ivar_list_template, build_method_list_template,
18407 build_ivar_list_initializer, generate_ivars_list,
18408 generate_dispatch_table, generate_protocol_list,
18409 build_category_initializer, build_shared_structure_initializer,
18410 generate_shared_structures, handle_impent,
18411 generate_objc_image_info): Use build_int_cst.
18412
18413 2004-08-15 Ben Elliston <bje@au.ibm.com>
18414
18415 * vec.h: Comment improvements.
18416
18417 2004-08-14 Roger Sayle <roger@eyesopen.com>
18418
18419 * c-common.c (shorten_compare, pointer_int_sum,
18420 c_common_truthvalue_conversion, boolean_increment): Replace calls
18421 to build with calls to buildN.
18422 * c-decl.c (complete_array_type, grokdeclarator): Likewise.
18423 * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
18424 gimplify_switch_stmt): Likewise.
18425 * c-typeck.c (default_function_array_conversion,
18426 build_component_ref, build_array_ref, build_function_call,
18427 pointer_diff, build_unary_op, build_conditional_expr,
18428 build_compound_expr, build_modify_expr, c_finish_goto_label,
18429 c_finish_goto_ptr, c_finish_return, c_finish_loop,
18430 c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
18431 build_binary_op): Likewise.
18432
18433 2004-08-15 Steven Bosscher <stevenb@suse.de>
18434
18435 * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
18436
18437 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18438
18439 * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
18440 curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
18441 * fixinc/fixincl.x: Rebuilt.
18442
18443 2004-08-14 Richard Sandiford <rsandifo@redhat.com>
18444
18445 * config/mips/mips-protos.h (mips_symbolic_constant_p)
18446 (mips_atomic_symbolic_constant_p, mips_stack_address_p)
18447 (mips_small_data_pattern_p): Declare.
18448 * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
18449 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
18450 * config/mips/mips.c (mips_symbolic_constant_p): Make global.
18451 (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
18452 (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
18453 (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
18454 (reg_or_const_float_1_operand, hilo_operand, extend_operator)
18455 (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
18456 (pc_or_label_operand, call_insn_operand, move_operand)
18457 (consttable_operand, symbolic_operand, general_symbolic_operand)
18458 (global_got_operand, local_got_operand, stack_operand)
18459 (fp_register_operand, lo_operand, fcc_register_operand): Delete.
18460 (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
18461 (mips_small_data_pattern_p): Replace previous small_data_pattern
18462 predicate. Turn into a bool () (rtx) function.
18463 * config/mips/predicates.md: New file.
18464 * config/mips/mips.md: Include it. Use the target-independent
18465 comparison_operator instead of cmp_op. Rename trap_cmp_op to
18466 trap_comparison_operator and equality_op to equality_operator.
18467 Replace uses of small_int with the equivalent const_arith_operand.
18468 Rename reg_or_const_float_1_operand to reg_or_1_operand. Rename
18469 const_float_1_operand to const_1_operand. Rename fcc_register_operand
18470 to fcc_reload_operand.
18471 * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
18472
18473 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18474
18475 PR libstdc++/17005 partial fix.
18476 * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
18477 except when generating ANSI/C89 code.
18478
18479 2004-08-14 Nathan Sidwell <nathan@codesourcery.com>
18480
18481 * c-common.c (shorten_compare): Use force_fit_type directly.
18482
18483 2004-08-14 Gerald Pfeifer <gerald@pfeifer.com>
18484 Dimitri Papadopoulos-Orfanos <papadopo@shfj.cea.fr>
18485 Dave Korn <dk@artimi.com>
18486
18487 * doc/install.texi (Building): Avoid duplicate reference to GNU
18488 make requirement.
18489 (*-*-solaris2*): Do not recommend GNU make any longer. Simplify.
18490
18491 2004-08-14 Richard Henderson <rth@redhat.com>
18492
18493 * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
18494 * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
18495
18496 2004-08-13 Richard Henderson <rth@redhat.com>
18497
18498 * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
18499 for constant_call_address_operand.
18500 (call_value_pop_1, call_value_1): Likewise.
18501 (sibcall_value_1, call_value_1_rex64): Likewise.
18502
18503 2004-08-13 James E Wilson <wilson@specifixinc.com>
18504
18505 * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
18506 Correct mode from SFmode to DFmode.
18507
18508 2004-08-13 Ziemowit Laski <zlaski@apple.com>
18509
18510 * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
18511 __cstring_object and __image_info sections with the no_dead_strip
18512 attribute.
18513
18514 2004-08-13 Roger Sayle <roger@eyesopen.com>
18515 David Billinghurst <David.Billinghurst@riotinto.com>
18516
18517 PR libgfortran/15930
18518 * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
18519 * fixinc/fixincl.x: Regenerate.
18520 * fixinc/tests/base/internal/math_core.h: New file.
18521
18522 2004-08-13 Richard Henderson <rth@redhat.com>
18523
18524 * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
18525 (dbxout_function_end): Remove ifdefs for it.
18526 (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
18527
18528 2004-08-13 Richard Henderson <rth@redhat.com>
18529
18530 * Makefile.in (insn-preds.o): Depend on TREE_H.
18531 * genpreds.c (write_insn_preds_c): Include tree.h.
18532 * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
18533 reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
18534 const48_operand, and_operand, or_operand, mode_width_operand,
18535 mode_mask_operand, mul8_operand, const0_operand,
18536 hard_fp_register_operand, hard_int_register_operand,
18537 reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
18538 samegp_function_operand, direct_call_operand, small_symbolic_operand,
18539 global_symbolic_operand, call_operand, symbolic_operand,
18540 dtp16_symbolic_operand, dtp32_symbolic_operand,
18541 gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
18542 gottp_symbolic_operand, alpha_comparison_operator,
18543 alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
18544 signed_comparison_operator, alpha_fp_comparison_operator,
18545 divmod_operator, fix_operator, aligned_memory_operand,
18546 unaligned_memory_operand, reg_or_unaligned_mem_operand,
18547 any_memory_operand, reg_not_elim_operand, normal_memory_operand,
18548 reg_no_subreg_operand, addition_operation): Move to predicates.md.
18549 (reg_or_const_int_operand): Remove. Replace all users with
18550 reg_or_cint_operand.
18551 (tls_symbolic_operand_1): Export. Don't check mode or for CONST.
18552 (resolve_reload_operand): Split out of aligned_memory_operand.
18553 * config/alpha/alpha-protos.h: Update for exports.
18554 * config/alpha/alpha.h (PREDICATE_CODES): Remove.
18555 * config/alpha/alpha.md: Include predicates.md.
18556 * config/alpha/predicates.md: New file.
18557
18558 2004-08-13 Richard Sandiford <rsandifo@redhat.com>
18559
18560 * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
18561 fields with a pointer to the instruction definition.
18562 (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
18563 (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
18564 (write_attr_case, write_const_num_delay_slots): Update accordingly.
18565 (write_attr_case, write_const_num_delay_slots): Write the name of
18566 an insn next to its case statement.
18567 * genoutput.c (data): Add a filename field.
18568 (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
18569 (output_insn_data): Print the location of each insn definition.
18570 * genrecog.c (write_action): Print the name of an insn above
18571 the statement that returns its code.
18572
18573 2004-08-12 Andrew Pinski <pinskia@physics.uc.edu>
18574
18575 * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
18576 * config/libgloss.h: Likewise.
18577 * config/arm/arm.c (arm_gen_load_multiple): Likewise.
18578 * c4x/c4x-modes.def: Likewise.
18579 * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
18580 (c4x_rptb_nop_p): Likewise.
18581 (c4x_rptb_valid_p): Likewise.
18582 (c4x_rptb_insert): Likewise.
18583 (c4x_address_conflict): Likewise.
18584 * config/c4x/c4x.md: Likewise.
18585 * config/frv/frv.md: Likewise.
18586 * config/i386/athlon.md: Likewise.
18587 * config/i386/i386.md: Likewise.
18588 * config/i386/predicates.md: Likewise.
18589 * config/ia64/ia64.c: Likewise.
18590 * config/ia64/itanium1.md: Likewise.
18591 * config/ia64/itanium2.md: Likewise.
18592 * config/iq2000/iq2000.md: Likewise.
18593 * config/mcore/mcore.c: Likewise.
18594 * config/mips/mips.c: Likewise.
18595 * config/mips/r3900.h: Likewise.
18596 * config/mips/sb1.md: Likewise.
18597 * config/pa/milli64.S: Likewise.
18598 * config/pa/pa.c: Likewise.
18599 * config/pa/pa.h: Likewise.
18600 * config/rs6000/8540.md: Likewise.
18601
18602 2004-08-13 Daniel Berlin <dberlin@dberlin.org>
18603
18604 * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
18605
18606 2004-08-13 J"orn Rennecke <joern.rennecke@superh.com>
18607
18608 * sh.md (cbranch define_delay) Use cond_delay_slot for
18609 non-anulled condition too.
18610
18611 2004-08-12 David Edelsohn <edelsohn@gnu.org>
18612
18613 * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
18614 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
18615 any_parallel_operand, lmw_operation, stmw_operation,
18616 mfcr_operation, mtcrf_operation. Remove PARALLEL from any_operand.
18617 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
18618 any_parallel_operand.
18619 (return_and_restore_fpregs_{si,di}): Same.
18620
18621 2004-08-12 Zack Weinberg <zack@codesourcery.com>
18622
18623 * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
18624 if pred->singleton != PARALLEL, issue a warning and pretend it was.
18625 Also issue a warning for any predicate we don't know about.
18626
18627 2004-08-12 Richard Henderson <rth@redhat.com>
18628
18629 * config/i386/i386.c (internal_label_prefix): Export.
18630 (internal_label_prefix_len, struct ix86_address,
18631 ix86_decompose_address, maybe_get_pool_constant,
18632 ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
18633 memory_address_length): Export.
18634 (any_fp_register_operand, fp_register_operand,
18635 register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
18636 x86_64_general_operand, x86_64_szext_general_operand,
18637 x86_64_nonmemory_operand, x86_64_movabs_operand,
18638 x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
18639 x86_64_zext_immediate_operand, const_int_1_31_operand,
18640 symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
18641 tls_symbolic_operand, global_dynamic_symbolic_operand,
18642 local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
18643 local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
18644 constant_call_address_operand, const0_operand, const1_operand,
18645 const248_operand, const_0_to_3_operand, const_0_to_7_operand,
18646 const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
18647 shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
18648 general_no_elim_operand, nonmemory_no_elim_operand,
18649 index_register_operand, q_regs_operand, flags_reg_operand,
18650 non_q_regs_operand, zero_extended_scalar_load_operand,
18651 vector_move_operand, no_seg_address_operand, sse_comparison_operator,
18652 ix86_comparison_operator, ix86_carry_flag_operator,
18653 fcmov_comparison_operator, promotable_binary_operator,
18654 cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
18655 mult_operator, div_operator, arith_or_logical_operator,
18656 memory_displacement_operand, cmpsi_operand, long_memory_operand,
18657 aligned_operand): Move to predicates.md as define_predicates.
18658 (tls_symbolic_operand_1): Remove.
18659 (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
18660 (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
18661 (legitimize_address): Merge tls_symbolic_operand contents.
18662 (ix86_expand_move): Likewise.
18663 * config/i386/i386-protos.h: Update for exports.
18664 * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
18665 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
18666 * config/i386/i386.md: Include predicates.md.
18667 * config/i386/predicates.md: New file.
18668
18669 2004-08-13 Mark Mitchell <mark@codesourcery.com>
18670
18671 PR c++/16924
18672 * config/i386/winnt.c (i386_pe_mark_dllexport): Set
18673 SYMBOL_REF_DECL.
18674 (i386_pe_mark_dllimport): Likewise.
18675 (i386_pe_encode_section_info): Likewise, when overriding
18676 dllimport attribute.
18677
18678 2004-08-12 Geoffrey Keating <geoffk@apple.com>
18679
18680 * configure.ac: When testing for flex, nm, ar, and bison, check
18681 that they will actually be built.
18682 * configure: Regenerate.
18683
18684 2004-08-12 Ulrich Weigand <uweigand@de.ibm.com>
18685
18686 * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
18687 (MOVE_MAX_PIECES): Define.
18688
18689 2004-08-12 Devang patel <dpatel@apple.com>
18690
18691 * dbxout.c (dbxout_begin_prologue): New function.
18692 (dbx_debug_hooks): Use new begin prologue hook.
18693 (dbxout_function_end): Emit N_ENSYM.
18694 * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
18695
18696 2004-08-12 Janis Johnson <janis187@us.ibm.com>
18697
18698 * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
18699 argument is float*.
18700
18701 * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
18702 for vec_dss.
18703
18704 * doc/extend.texi (AltiVec builtins): Fix description for recent
18705 changes. Update operation list to match current support.
18706
18707 2004-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
18708
18709 * config/s390/s390.c (struct s390_frame_layout): New struct as element
18710 of struct machine_function.
18711 (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
18712 changed all uses.
18713 (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
18714 changed all uses.
18715 (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
18716 (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
18717 (s390_frame_area, s390_register_info): New functions.
18718 (s390_optimize_prolog): Renamed to s390_optimize_prologue. Added check
18719 for base register.
18720 (s390_return_addr_rtx, s390_return_address_offset)
18721 (s390_va_start, s390_gimplify_va_arg)
18722 (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
18723 layouts.
18724 (s390_frame_info): Functionality partly moved to s390_register_info.
18725 Made adaptions for new stack layout.
18726 (save_gprs, restore_gprs): Changed meaning of second parameter and
18727 adapted all callers.
18728
18729 * config/s390/s390.h (s390_backchain_string): New global variable.
18730 (MASK_BACKCHAIN): Removed definition.
18731 (TARGET_BACKCHAIN): Changed check.
18732 (TARGET_KERNEL_BACKCHAIN): New macro.
18733 (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
18734 (TARGET_OPTIONS): Added "backchain", "no-backchain" and
18735 "kernel-backchain".
18736 (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
18737
18738 * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
18739 as condition. Adjusted for new stack layout.
18740
18741 * doc/invoke.texi: Added documentation for new option
18742 "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
18743 "-mno-backchain".
18744
18745 2004-08-12 Paul Brook <paul@codesourcery.com>
18746
18747 * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
18748 (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
18749
18750 2004-08-12 David Daney <ddaney@avtrex.com>
18751
18752 * java/gcj.texi: Add subsection on signal usage.
18753
18754 2004-08-12 David Edelsohn <edelsohn@gnu.org>
18755
18756 * expr.c (move_by_pieces): Set alignment for move to minimum of
18757 MOVE_MAX_PIECES mode alignment and the largest non-slow mode
18758 alignment, but not less than the original alignment.
18759 (move_by_pieces_ninsns): Same.
18760 (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
18761 (store_by_pieces_1): Same.
18762
18763 2004-08-12 Diego Novillo <dnovillo@redhat.com>
18764
18765 PR tree-optimization/16867
18766 * tree.c (is_global_var): New function.
18767 (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
18768 Call is_global_var.
18769 * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
18770 Update all users.
18771 (is_global_var): Declare.
18772 * tree-dfa.c (dump_variable): Display global and addressable
18773 attributes.
18774 (add_referenced_var): Clarify documentation when marking
18775 variables call-clobbered.
18776 * tree-flow-inline.h (is_call_clobbered): Call is_global_var
18777 instead of needs_to_live_in_memory.
18778 (mark_call_clobbered): If the variable is a tag, mark it
18779 DECL_EXTERNAL.
18780 * tree-gimple.c (is_gimple_reg): Don't check for
18781 TREE_ADDRESSABLE.
18782 (is_gimple_non_addressable): Likewise.
18783 * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
18784 needs to be marked call-clobbered.
18785 (setup_pointers_and_addressables): Call is_global_var instead
18786 of needs_to_live_in_memory.
18787 * tree-ssa-dce.c (need_to_preserve_store): Remove.
18788 Update all users with is_global_var.
18789 (mark_stmt_if_obviously_necessary): Fix processing of aliased
18790 stores. Don't check the virtual definitions. Rather, check
18791 whether the store is going into global memory.
18792 (find_obviously_necessary_stmts): Get the symbol from the PHI
18793 result.
18794 * tree-ssa-operands.c (get_call_expr_operands): Do not add
18795 clobbering may-defs if the call does not have side effects.
18796
18797 2004-08-12 Jakub Jelinek <jakub@redhat.com>
18798
18799 PR c++/16276
18800 * output.h (default_function_rodata_section,
18801 default_no_function_rodata_section): New prototypes.
18802 * target.h (struct gcc_target): Add asm_out.function_rodata_section.
18803 * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
18804 (TARGET_ASM_OUT): Add it.
18805 * varasm.c (default_function_rodata_section,
18806 default_no_function_rodata_section): New functions.
18807 * final.c (final_scan_insn): Call
18808 targetm.asm_out.function_rodata_section instead of
18809 readonly_data_section.
18810 * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
18811 * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18812 * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18813 * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
18814 Likewise.
18815 * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18816 * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
18817 Likewise.
18818 * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
18819 Likewise.
18820 * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18821 * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18822 * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
18823
18824 2004-08-12 Paul Brook <paul@codesourcery.com>
18825
18826 * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
18827 frame info.
18828 * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
18829 DWARF2_UNWIND_INFO.
18830
18831 2004-08-12 Ben Elliston <bje@au.ibm.com>
18832
18833 PR target/16286
18834 * config/rs6000/altivec.h: Change vector to __vector throughout.
18835 (Except for the `vector' macro itself).
18836
18837 2004-08-12 Zack Weinberg <zack@codesourcery.com>
18838
18839 * genpreds.c: Add capability to generate predicate bodies as
18840 well as function prototypes. Write function prototypes for
18841 the generic predicates too.
18842 (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
18843 (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
18844 (write_match_code, write_predicate_expr, write_one_predicate_function)
18845 (parse_option): New functions.
18846 (output_predicate_decls): Delete.
18847 (main): Read the machine description, process DEFINE_PREDICATE or
18848 DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
18849 as appropriate.
18850
18851 * genrecog.c (struct decision_test): Replace index with
18852 struct pred_data pointer.
18853 (next_index): Remove, unused.
18854 (pred_table, preds, special_mode_pred_table): Delete.
18855 (compute_predicate_codes, process_define_predicate): New functions.
18856 (validate_pattern, add_to_sequence, write_switch): Update for
18857 new data structures.
18858 (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
18859 Check both error_count and have_error.
18860
18861 * gensupport.c (in_fname, first_predicate): New globals.
18862 (define_pred_queue, define_pred_tail): New RTL-pattern queue.
18863 (predicate_table, last_predicate, old_pred_table)
18864 (old_special_pred_table): New statics.
18865 (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
18866 (add_predicate, init_predicate_table): New functions.
18867 (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
18868 (init_md_reader_args_cb): Use the global in_fname. No need to zero
18869 it or max_include_len. Call init_predicate_table.
18870 (read_rtx): Run the predicate queue after the attribute queue
18871 but before all the others.
18872 * gensupport.h (in_fname, struct pred_data, first_predicate)
18873 (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
18874 * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
18875 (DEFINE_SPECIAL_PREDICATE): New RTL codes.
18876 * dummy-conditions.c: Don't include bconfig.h, system.h,
18877 coretypes.h, tm.h, or system.h. Do include stddef.h.
18878 Duplicate declaration of struct c_test from gensupport.h.
18879
18880 * Makefile.in (OBJS-common): Add insn-preds.o.
18881 (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
18882 (insn-preds.c, insn-preds.o): New rules.
18883 (s-preds): Also generate insn-preds.c.
18884 (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
18885 Update dependencies.
18886 (print-rtl.o, print-rtl1.o): Correct dependencies.
18887
18888 * recog.h: Delete prototypes of predicate functions.
18889
18890 * doc/md.texi (Predicates): New section with complete
18891 documentation of operand/operator predicates. Remove some
18892 incomplete documentation of predicates from other places.
18893 * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
18894 PREDICATE_CODES; indicate that both are deprecated in favor
18895 of define_predicate/define_special_predicate.
18896
18897 * config/ia64/ia64.c: All predicate function definitions moved
18898 to ia64.md, except
18899 (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
18900 (ia64_expand_load_address, ia64_expand_move):
18901 Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
18902
18903 * config/ia64/ia64.md: All predicates now defined here.
18904 (symbolic_operand): Is now a special predicate.
18905
18906 * config/ia64/ia64.h: Declare ia64_section_threshold.
18907 (PREDICATE_CODES): Delete.
18908
18909 2004-08-12 Richard Henderson <rth@redhat.com>
18910
18911 * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
18912 * c-semantics.c (add_stmt): Set it.
18913 * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
18914 before instantiating a variable sized type.
18915
18916 2004-08-12 Richard Henderson <rth@redhat.com>
18917
18918 * stor-layout.c (round_up, round_down): Move ...
18919 * fold-const.c (round_up, round_down): ... here. Use
18920 multiple_of_p to avoid any arithmetic at all.
18921
18922 2004-08-12 Richard Henderson <rth@redhat.com>
18923
18924 * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
18925 (gimplify_init_ctor_preeval_1): New.
18926 (gimplify_init_ctor_preeval): New.
18927 (gimplify_init_ctor_eval): New.
18928 (gimplify_init_constructor): Use them. Always gimplify the LHS
18929 object first.
18930
18931 2004-08-12 Ziemowit Laski <zlaski@apple.com>
18932
18933 (This patch is part of merge of objc-improvements-branch
18934 into mainline.)
18935
18936 * doc/frontends.texi: Mention Objective-C++ in addition to
18937 Objective-C.
18938 * doc/install.texi: Add 'obj-c++' to list of configurable
18939 languages.
18940 * doc/invoke.texi: Rename Objective-C option headings to
18941 indicate they also apply to Objective-C++. List file
18942 extensions for Objective-C++ sources. Mention that
18943 ObjC and ObjC++ compilations may also use C and C++ options,
18944 respectively. Point users to doc/standards.texi for
18945 further info on ObjC and ObjC++.
18946 * doc/sourcebuild.texi: Mention the objcp/ directory and
18947 the Objective-C++ sources it contains.
18948 * doc/standards.texi: Update link to Apple ObjC site;
18949 add link to gcc readings.html WWW doc.
18950
18951 2004-08-12 Alan Modra <amodra@bigpond.net.au>
18952
18953 * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
18954 and 2004-07-14 changes.
18955
18956 2004-08-12 Paul Brook <paul@codesourcery.com>
18957
18958 * doc/invoke.texi: Fix typo.
18959
18960 2004-08-11 Devang Patel <dpatel@apple.com>
18961
18962 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
18963 and -no_dead_strip_inits_and_terms.
18964 (LINK_SPEC): Same.
18965 * doc/invoke.texi (Darwin Options): Document -dead_strip and
18966 -no_dead_strip_inits_and_terms.
18967
18968 2004-08-11 Paul Brook <paul@codesourcery.com>
18969
18970 * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
18971 (arm_load_pic_register): ... to this.
18972 * config/arm/arm.c (arm_finalize_pic): Rename ...
18973 (arm_load_pic_register): ... to this. Always output insns at the
18974 current location. Load via low reg in thumb mode.
18975 (arm_expand_prologue): Call arm_load_pic_register.
18976 (thumb_expand_prologue): Ditto.
18977 * config/arm/arm.h (FINALIZE_PIC): Remove.
18978 * config/arm/arm.md (builtin_setjmp_receiver): Call
18979 arm_load_pic_register.
18980
18981 2004-08-11 Paul Brook <paul@codesourcery.com>
18982
18983 * arm.c (thumb_force_lr_save): Add prototype.
18984 (thumb_compute_save_reg_mask): New function.
18985 (thumb_find_work_register): New function.
18986 (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
18987 (thumb_unexpanded_epilogue): Ditto. Remove redundant code.
18988 Don't clobber r3 when removing pretend args.
18989 (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
18990 (thumb_output_function_prologue): Use new functions.
18991 (thumb_set_return_address): Use thumb_compute_save_reg_mask.
18992 * arm.h (THUMB_REG_PUSHED_P): Remove.
18993
18994 2004-08-11 James E Wilson <wilson@specifixinc.com>
18995
18996 PR rtl-optimization/16490
18997 * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
18998 global_live_at_end for new basic block if already set for other blocks.
18999
19000 2004-08-11 David Edelsohn <edelsohn@gnu.org>
19001
19002 * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
19003
19004 * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
19005 (mfcr rlwinm rlwinm patterns): Set length to 12.
19006
19007 2004-08-11 Andrew MacLeod <amacleod@redhat.com>
19008
19009 * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
19010 get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
19011 (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
19012 (start_ssa_stmt_operands): Delete.
19013 * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
19014 struct stmt_operands_d.
19015 (build_ssa_operands): New extern entry point.
19016 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
19017 building code, replace with create_ssa_artficial_load_stmt().
19018 * tree-ssa-operands.c (struct voperands_d): Delete.
19019 (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
19020 (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
19021 (free_uses, free_defs, free_vuses, free_v_may_defs,
19022 free_v_must_defs): Remove dealloc parameter.
19023 (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
19024 (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
19025 finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
19026 vector comparisons, ssa_name reuse, and allocations here.
19027 (verify_start_operands): Delete.
19028 (finalize_ssa_stmt_operands): Set new operands by calling finalize
19029 routines.
19030 (start_ssa_stmt_operands): Move from tree-flow-inline.h.
19031 (append_def, append_usei): Simplify to simple accumulation.
19032 (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
19033 duplicates and simple accumulation.
19034 (free_ssa_operands): Free vectors in a stmt_operand structure.
19035 (build_ssa_operands): New. Create a new stmt_operand structure from
19036 a stmt and an old set of stmt_operands.
19037 (get_stmt_operands): Simplify and call build_ssa_operands.
19038 (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
19039 get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
19040 add_call_read_ops): Don't pass prev_vops around anymore.
19041 (note_addressable): Return if no stmt annotation.
19042 (copy_virtual_operands): Access v_may_def operands through a struct.
19043 (create_ssa_artficial_load_stmt): New. Create a load stmt for DOM's
19044 hash tables without treating the stmt as a real stmt.
19045 * tree-ssa-operands.h (struct v_may_def_operand_type): New. Access
19046 v_may_def def and use through a struct instead of 2 array elements.
19047 (struct v_may_def_optype_d): Use v_may_def_operand_type.
19048 (struct stmt_operands_d): New. Struct for storing all operand vectors.
19049
19050 2004-08-11 Nick Clifton <nickc@redhat.com>
19051
19052 * config/arm/arm.c (arm_is_longcall_p): Update comment describing
19053 this funciton's behaviour. Return true when the current function
19054 has a section attribute and -mlong-calls is in effect.
19055 * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
19056 short-call marker when -mlong-calls is in effect and the function
19057 has a section attribute.
19058
19059 2004-08-10 Zack Weinberg <zack@codesourcery.com>
19060
19061 * stmt.c (expand_return): If asked to return the RESULT_DECL,
19062 just call expand_value_return on result_rtl.
19063
19064 2004-08-10 Richard Henderson <rth@redhat.com>
19065
19066 * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
19067 * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
19068 * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
19069 (add_location_or_const_value_attribute): ... not here. Use
19070 loc_descriptor_from_tree if possible.
19071 (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
19072 Simplify address handling. Handle DECL_VALUE_EXPR. Handle register
19073 values specially.
19074 (loc_descriptor_from_tree): New. Update callers.
19075 * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
19076 * gimplify.c (gimplify_decl_expr): Lower variable sized types to
19077 pointer plus dereference. Set DECL_VALUE_EXPR. Set save_stack.
19078 (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
19079 and BUILT_IN_STACK_RESTORE.
19080 (gimplify_expr): Lower DECL_VALUE_EXPR decls.
19081 * stmt.c (expand_stack_alloc): Remove.
19082 * tree-mudflap.c (mx_register_decls): Don't look for
19083 BUILT_IN_STACK_ALLOC.
19084 * tree-nested.c (convert_local_reference): Likewise.
19085 * tree.h (DECL_VALUE_EXPR): New.
19086
19087 2004-08-10 Richard Henderson <rth@redhat.com>
19088
19089 * stor-layout.c (round_up): Check for 0/1 before dividing.
19090 (round_down): Likewise.
19091
19092 * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
19093
19094 2004-08-09 Mark Mitchell <mark@codesourcery.com>
19095
19096 * config.gcc (arm*-*-eabi*): New target.
19097 * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
19098 (TARGET_LIB_INT_CMP_BIASED): Likewise.
19099 * expmed.c (expand_divmod): Try a two-valued divmod function as a
19100 last resort.
19101 * gthr.h: Remove bogus tokens at end of #pragma.
19102 * optabs.c (expand_twoval_binop_libfunc): New function.
19103 (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
19104 (prepare_float_lib_cmp): Try reversing the condition.
19105 (debug_optab_libfuncs): New function.
19106 * optabs.h (expand_twoval_binop_libfunc): Declare.
19107 * config/arm/arm.c (arm_init_libfuncs): New function.
19108 (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
19109 (TARGET_INIT_LIBFUNCS): Define it.
19110 * config/arm/arm.h (TARGET_BPABI): New macro.
19111 * config/arm/arm-protos.h
19112 (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
19113 * config/arm/bpabi.S: New file.
19114 * config/arm/bpabi.c: Likewise.
19115 * config/arm/bpabi.h: Likewise.
19116 * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
19117 (__aeabi_drsub): Likewise.
19118 (__aeabi_dsub): Likewise.
19119 (__aeabi_dadd): Likewise.
19120 (__aeabi_ui2d): Likewise.
19121 (__aeabi_i2d): Likewise.
19122 (__aeabi_f2d): Likewise.
19123 (__aeabi_dmul): Likewise.
19124 (__aeabi_ddiv): Likewise.
19125 (__aeabi_cdrcmple): Likewise.
19126 (__aeabi_cdcmpeq): Likewise.
19127 (__aeabi_cdcmple): Likewise.
19128 (__aeabi_dcmpeq): Likewise.
19129 (__aeabi_dcmplt): Likewise.
19130 (__aeabi_dcmple): Likewise.
19131 (__aeabi_dcmpge): Likewise.
19132 (__aeabi_dcmpgt): Likewise.
19133 (__aeabi_dcmpun): Likewise.
19134 (__aeabi_d2iz): Likewise.
19135 (__aeabi_d2uiz): Likewise.
19136 (__aeabi_d2f): Likewise.
19137 * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
19138 (__aeabi_frsub): Likewise.
19139 (__aeabi_fsub): Likewise.
19140 (__aeabi_fadd): Likewise.
19141 (__aeabi_ui2f): Likewise.
19142 (__aeabi_i2f): Likewise.
19143 (__aeabi_fmul): Likewise.
19144 (__aeabi_fdiv): Likewise.
19145 (__aeabi_cfrcmple): Likewise.
19146 (__aeabi_cfcmpeq): Likewise.
19147 (__aeabi_cfcmple): Likewise.
19148 (__aeabi_fcmpeq): Likewise.
19149 (__aeabi_fcmplt): Likewise.
19150 (__aeabi_fcmple): Likewise.
19151 (__aeabi_fcmpge): Likewise.
19152 (__aeabi_fcmpgt): Likewise.
19153 (__aeabi_fcmpun): Likewise.
19154 (__aeabi_f2iz): Likewise.
19155 (__aeabi_f2uiz): Likewise.
19156 * config/arm/lib1funcs.asm (ARM_CALL): New macro.
19157 (__aeabi_uidivmod): New function or alias.
19158 (__aeabi_idivmod): Likewise.
19159 (__aeabi_idiv0): Likewise.
19160 (__aeabi_ldiv0): Likewise.
19161 (__aeabi_llsr): Likewise.
19162 (__aeabi_lasr): Likewise.
19163 (__aeabi_llsl): Likewise.
19164 (bpabi.S): Include it.
19165 * config/arm/libgcc-bpabi.ver: New file.
19166 * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
19167 (LINK_SPEC): Remove.
19168 * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
19169 __aeabi_ulcmp.
19170 * config/arm/t-bpabi: New file.
19171 * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
19172 (TARGET_LIB_INT_CMP_BIASED): Likewise.
19173
19174 2004-08-10 David Edelsohn <edelsohn@gnu.org>
19175
19176 * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
19177 * config/rs6000/rs6000.md (clrmemsi): New pattern.
19178 * config/rs6000/rs6000.c (expand_block_clear): New function.
19179 (expand_block_move): Convert alignment to bits. Use SImode and
19180 HImode for unaligned addresses if not STRICT_ALIGNMENT.
19181
19182 2004-08-10 Caroline Tice <ctice@apple.com>
19183
19184 * varasm.c (unlikely_section_label): New global variable.
19185 (unlikely_text_section_name): New global variable.
19186 (text_section): Remove alignment statement.
19187 (unlikely_text_section): Remove alignment statement; use
19188 unlikely_section_label rather than hard-coded string.
19189 (assemble_start_function): Initialize unlikely_section_label and
19190 unlikely_text_section_name; make sure cold section is properly
19191 aligned at start of function; output unlikely_section_label if
19192 appropriate.
19193
19194 2004-08-10 Ulrich Weigand <uweigand@de.ibm.com>
19195
19196 * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
19197 * config/s390/s390.c (s390_canonicalize_comparison): New function.
19198 * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
19199 * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
19200 "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
19201 ("*tmqi_mem"): Remove SUBREG from pattern.
19202 ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
19203 ("*andsi3_cconly"): Likewise.
19204
19205 2004-08-10 H.J. Lu <hongjiu.lu@intel.com>
19206
19207 PR target/16909
19208 * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
19209
19210 2004-08-10 Janis Johnson <janis187@us.ibm.com>
19211
19212 * doc/sourcebuild.texi (compat testing): Document available test
19213 framework commands. Use the preferred spelling of DejaGnu.
19214
19215 2004-08-10 Daniel Berlin <dberlin@dberlin.org>
19216
19217 * lambda.h: Add matrix type, and prototypes for remainder of
19218 matrix and vector functions.
19219 (lambda_vector_mult_const): New function.
19220 (lambda_vector_negate): Ditto.
19221 (lambda_vector_add): Ditto.
19222 (lambda_vector_add_mc): Ditto.
19223 (lambda_vector_copy): Ditto.
19224 (lambda_vector_zerop): Ditto.
19225 (lambda_vector_equal): Ditto.
19226 (lambda_vector_min_nz): Ditto.
19227 (lambda_vector_first_nz): Ditto.
19228 (lambda_vector_matrix_mult): Ditto.
19229 * lambda-mat.c: New file.
19230 * Makefile.in (lambda-mat.o): New.
19231
19232 2004-08-10 Andrew MacLeod <amacleod@redhat.com>
19233
19234 * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
19235 after linking stmt into the program.
19236 (bsi_remove): Don't call modify_stmt.
19237 * tree-complex.c (update_complex_assignment,
19238 expand_complex_comparison): Call modify_stmt after changing the stmt.
19239 * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
19240 removing the stmt.
19241 * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
19242 the stmt, and only if needed.
19243 * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
19244 expression.
19245 (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
19246 (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
19247 (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
19248 (eliminate_redundant_computations): Don't pass an annotation. Call
19249 modify_stmt rather than setting the annotation directly.
19250 (record_equivalences_from_stmt): Remove unused local 'j'.
19251 (cprop_operand): Take a stmt rather than an annotation as a parameter.
19252 Call modify_stmt.
19253 (cprop_into_stmt): Pass stmt rather than annotation.
19254 (update_rhs_and_lookup_avail_expr): Call modify_stmt.
19255 * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
19256 modify_stmt.
19257 * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
19258
19259 2004-08-10 Jason Merrill <jason@redhat.com>
19260
19261 PR middle-end/16948
19262 * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
19263 the RESULT_DECL.
19264
19265 2004-08-10 Geoffrey Keating <geoffk@apple.com>
19266
19267 * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
19268 hash function.
19269
19270 2004-08-10 Roger Sayle <roger@eyesopen.com>
19271
19272 * config/mips/mips.md: New reciprocal square root patterns that
19273 match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
19274
19275 2004-08-10 Paul Brook <paul@codesourcery.com>
19276
19277 * config/arm/arm-protos.h (arm_set_return_address,
19278 thumb_set_return_address): Add prototypes.
19279 * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
19280 * config/arm/arm.c (arm_compute_func_type,
19281 use_return_insn, arm_compute_save_reg0_reg12_mask,
19282 arm_compute_save_reg_mask, arm_output_function_prologue,
19283 arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
19284 current_function_calls_eh_return.
19285 (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
19286 old eh code.
19287 (arm_set_return_address, thumb_set_return_address): New functions.
19288 * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
19289 ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
19290 * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
19291 (epilogue): Use the stackadj register.
19292 (eh_return, arm_eh_return, thumb_eh_return): New pattern.
19293
19294 2004-08-10 Jakub Jelinek <jakub@redhat.com>
19295
19296 PR target/3144
19297 * expr.c (move_by_pieces_ninsns): Add max_size argument.
19298 (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
19299 (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
19300 (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
19301 but using MOVE_RATIO.
19302 (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
19303 (can_store_by_pieces): Change max_size type to unsigned int.
19304 (store_by_pieces_1): Likewise. Pass max_size to
19305 move_by_pieces_ninsns.
19306 * config/s390/s390.h (STORE_BY_PIECES_P): Define.
19307 * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
19308 to move_by_pieces_ninsns.
19309 (STORE_BY_PIECES_P): Define.
19310 * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
19311 to move_by_pieces_ninsns.
19312 * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
19313
19314 * config/i386/i386.h (CLEAR_RATIO): Define.
19315
19316 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
19317
19318 * expr.c (expand_expr_real_1): Add back code that was not dead.
19319
19320 2004-08-09 Andrew Pinski <apinski@apple.com>
19321
19322 * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
19323 which is found to be compatible before returning the aliasing set.
19324
19325 2004-08-09 Daniel Jacobowitz <dan@debian.org>
19326
19327 * ggc-zone.c (struct alloc_zone): Add statistics counters.
19328 (always_collect): New flag.
19329 (ggc_alloc_zone_1): Update statistics support. Don't include
19330 overhead in allocated counter.
19331 (sweep_pages): Update allocated counter for large pages. Don'y
19332 include overhead.
19333 (ggc_collect_1): Always collect.
19334 (ggc_collect): Honor always_collect flag. Sum all zones to decide
19335 whether to collect.
19336 (SCALE, LABEL): New macros.
19337 (ggc_print_statistics): Add statistics support.
19338
19339 2004-08-09 Roger Sayle <roger@eyesopen.com>
19340
19341 * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
19342 (init_expmed): Fix potential overrun problem with "all.reg".
19343 (expand_sdiv2_pow2): Add an alternate implementation for signed
19344 division, if the target provides a suitable conditional move insn.
19345
19346 2004-08-09 Paul Brook <paul@codesourcery.com>
19347 Richard Henderson <rth@redhat.com>
19348
19349 * unwind-dw2.c (uw_install_context_1): Update target saved stack
19350 pointer.
19351
19352 2004-08-09 Geoffrey Keating <geoffk@apple.com>
19353
19354 * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
19355 Check DATA limit only if there's no AS limit. Ignore insanely
19356 low DATA limits.
19357 (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
19358 but take care that the AS limit isn't overrun.
19359 * doc/invoke.texi: Update documentation of min-heapsize parameter.
19360
19361 2004-08-09 Jeff Law <law@redhat.com>
19362
19363 * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
19364 (tree-ssa-threadupdate.o): Add dependencies.
19365 * tree-ssa-threadupdate.c: New file.
19366 * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
19367 (rewrite_vars_out_of_ssa): Remove prototype.
19368 (cleanup_tree_cfg): Returns a bool.
19369 * tree.h (thread_through_all_blocks): Prototype.
19370 * tree-outof-ssa.c (SSANORM_*): Move into here.
19371 (remove_ssa_form): Now static.
19372 (rewrite_vars_out_of_ssa): Kill.
19373 * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
19374 * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
19375 (remove_ssa_form, register_partitions_for_vars): Kill declarations.
19376 * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
19377 anything was changed.
19378 * tree-phinodes.c (add_phi_arg): Get the block for the PHI
19379 from the PHI's annotation rather than the edge associated with
19380 the new argument.
19381 * tree-ssa-dom.c (redirection_edges): Kill.
19382 (redirect_edges_and_update_ssa_graph): Kill.
19383 (tree_ssa_dominator_optimize): Do not reset forwardable flag
19384 for blocks anymore. Do not initialize redirection_edges.
19385 Call thread_through_all_blocks. Simplify code for cleanup
19386 of the CFG and iterating. No longer call cleanup_tree_cfg
19387 outside the iteration loop.
19388 (thread_across_edge): No longer mess with forwardable blocks.
19389
19390 2004-08-09 Zack Weinberg <zack@codesourcery.com>
19391
19392 * explow.c (memory_address): Use memory_address_p.
19393 * recog.c (general_operand): Likewise.
19394 * regrename.c: No need to define REG_OK_STRICT.
19395
19396 2004-08-09 Steven Bosscher <stevenb@suse.de>
19397
19398 * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
19399 New timers.
19400 * gcse.c: Include timevar.h.
19401 (const_prop_count, copy_prop_count): Rename to global_const_prop_count
19402 and global_copy_prop_count.
19403 (local_const_prop_count, local_copy_prop_count): New static globals.
19404 (gcse_main): Set the right timevar for each pass.
19405 (cprop_jump): Increment global_const_prop_count when a constant is
19406 propagated. Add "GLOBAL" to dump output.
19407 (cprop_insn): Increment global_const_prop_count when a constant is
19408 propagated, or global_copy_prop_count when a copy is propagated.
19409 (do_local_cprop): Likewise for local_const_prop_count and
19410 local_copy_prop_count.
19411 (one_cprop_pass): Initialize const/cprop counters to zero.
19412 Print out results of local and global const/cprop separately.
19413 (bypass_block): Break over-length line.
19414 * Makefile.in (gcse.o): Add TIMEVAR_H dependency. Fix dependencies
19415 for bb-reorder.o and tracer.o.
19416
19417 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
19418
19419 * Makefile.in (GTFILES): Remove stmt.c
19420 (stmt.o): Do not depend on gt-stmt.h.
19421 * emit-rtl.c (emit_line_note): Do not call
19422 set_file_and_line_for_stmt.
19423 * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
19424 do everything.
19425 * function.c (free_after_parsing): Do not free STMT field.
19426 (allocate_struct_function): Do not call init_stmt_for_function.
19427 (assign_stack_temp_for_type): Do not accept values of keep
19428 other than 0 or 1.
19429 (init_temp_slots): Do not initialize removed variables.
19430 * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
19431 and X_VAR_TEMP_SLOT_LEVEL fields.
19432 * rtl.h (set_file_and_line_for_stmt): Remove.
19433 * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
19434 struct stmt_status, cond_stack, case_stack, nesting_stack,
19435 nesting_depth, emit_locus, set_file_and_line_for_stmt,
19436 same_case_target_p, init_stmt_for_function, emit_nop,
19437 expand_start_cond, expand_start_elseif, expand_start_else,
19438 expand_elseif, expand_end_cond): Remove.
19439 (preserve_subexpressions_p): Remove references to CFUN->STMT.
19440 (expand_start_case, expand_end_case_type): Remove, merge into...
19441 (expand_case): ... this one, including other bits from
19442 expand_expr_real_1. Inline same_case_target_p. Turn members
19443 of CASE_STACK into local variables.
19444 (emit_case_bit_tests): Inline same_case_target_p.
19445 (add_case_node): Add HEAD argument, return new head of the list,
19446 do not handle default label here.
19447 * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
19448 expand_start_elseif, current_nesting_level, expand_start_case,
19449 expand_end_case_type, expand_end_case, add_case_node,
19450 init_stmt_for_function, expand_elseif): Remove prototypes.
19451 (expand_case): Add prototype.
19452
19453 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
19454
19455 * expr.c (expand_expr_real_1): Use optab_for_tree_code.
19456
19457 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
19458
19459 * expr.c (var_rtx): Remove.
19460 (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
19461 LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
19462 TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
19463 Abort.
19464 (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
19465 * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
19466 * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
19467
19468 2004-08-08 Mostafa Hagog <mustafa@il.ibm.com>
19469 Ayal Zaks <zaks@il.ibm.com>
19470
19471 * common.opt (freschedule-modulo-scheduled-loops): New flag.
19472 * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
19473 * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
19474 when -freschedule-modulo-scheduled-loops flag is not specified.
19475 (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
19476 add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
19477 More accurate placing of insn in row of partial schedule.
19478 (ps_insn_find_column): New function.
19479 * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
19480 * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
19481 (schedule_region): Use sched_is_disabled_for_current_region_p.
19482 * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
19483
19484 2004-08-07 H.J. Lu <hongjiu.lu@intel.com>
19485
19486 * config/i386/i386.c (ix86_expand_clrmem): Revert the last
19487 change.
19488
19489 2004-08-07 H.J. Lu <hongjiu.lu@intel.com>
19490
19491 * config/i386/i386.c (ix86_expand_clrmem): Properly call
19492 gen_strset for 64bit target.
19493
19494 2004-08-07 Olivier Hainque <hainque@act-europe.fr>
19495
19496 * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
19497
19498 2004-08-07 Jason Merrill <jason@redhat.com>
19499
19500 Make return in memory explicit.
19501 * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
19502 (assign_parm_find_data_types): Remove code for old front end
19503 invisible reference handling.
19504 (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
19505 (expand_function_end): Likewise.
19506 * gimplify.c (gimplify_return_expr): Handle a dereferenced
19507 RESULT_DECL.
19508 * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
19509 (declare_return_variable): Handle DECL_BY_REFERENCE.
19510 * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
19511 (cp_genericize_r): Use convert_from_reference.
19512 Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
19513 (cp_genericize): Handle the RESULT_DECL. Unset TREE_ADDRESSABLE.
19514
19515 * c-common.c (c_warn_unused_result): Check TREE_USED before
19516 warning about a CALL_EXPR with an unused value.
19517
19518 2004-08-06 Mark Mitchell <mark@codesourcery.com>
19519
19520 * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
19521 to the compiler. Use -fshort-wchar by default.
19522
19523 2004-08-06 Pat Haugen <pthaugen@us.ibm.com>
19524
19525 * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
19526 * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
19527 threshhold.
19528 * doc/invoke.texi (param): Document min-crossjump-insns.
19529
19530 2004-08-06 Richard Sandiford <rsandifo@redhat.com>
19531
19532 PR c/13282
19533 * c.opt (Wmissing-field-initializers): New option.
19534 * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
19535 * c-typeck.c (pop_init_level): Guard the missing field warning with
19536 warn_missing_field_initializers rather than extra_warnings.
19537 * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
19538 some of the explanation from...
19539 (-Wextra): ...here. Say that the missing field warning can be
19540 seperately controlled by -Wmissing-field-initializers.
19541
19542 2004-08-06 Paolo Bonzini <bonzini@gnu.org>
19543
19544 * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
19545 * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
19546 * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
19547 * tree.def (ENTRY_VALUE_EXPR): Remove.
19548
19549 2004-08-06 Jakub Jelinek <jakub@redhat.com>
19550
19551 * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
19552 the places where it is actually needed. Don't use repz; stosb
19553 for -Os with sufficiently small constant sizes.
19554 For sufficiently small repz; stos{l,q} repeat counts use a sequence
19555 of stos{l,q} instructions instead.
19556
19557 2004-08-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19558
19559 PR tree-optimization/16807
19560 * loop-iv.c (dump_iv_info): Dump invariants correctly.
19561 (iv_subreg, iv_extend): Express value of invariant purely in
19562 base field.
19563
19564 2004-08-06 Mark Mitchell <mark@codesourcery.com>
19565
19566 * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
19567 (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
19568
19569 2004-08-06 Roman Zippel <zippel@linux-m68k.org>
19570
19571 * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
19572 * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
19573 pre_dec_operand.
19574 * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
19575 pattern until reload is finished to allow better code generation
19576 and split them completely into separate instrunctions.
19577 (*andsi3_split): New pattern.
19578
19579 2004-08-05 Mark Mitchell <mark@codesourcery.com>
19580
19581 * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
19582 Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P. Set
19583 DECL_VISIBLITY. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
19584 * tree.h (handle_dll_attribute): Declare. Test
19585 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
19586 * c-common.h (c_determine_visibility): Declare.
19587 * c-common.c (c_determine_visibility): New function.
19588 * c-decl.c (finish_decl): Use it.
19589 (finish_function): Likewise.
19590 * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
19591 zero, by default. Use #if, not #ifdef, to test it.
19592 * config/arm/arm.c (arm_attribute_table): Use
19593 handle_dll_attribute. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
19594 #if.
19595 * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
19596 * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
19597 to 1.
19598 * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
19599 * config/i386/i386.c (ix86_attribute_table): Use
19600 handle_dll_attribute for dllimport/dllexport. Test
19601 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
19602 * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
19603 * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
19604 it to 1.
19605 * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
19606 with #if.
19607 * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
19608 it to 1.
19609 * doc/extend.texi (dllexport): Clarify and correct documentation.
19610 (dllimport): Likewise.
19611 * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
19612 handle_dll_attribute.
19613
19614 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19615
19616 * tree-ssa-loop-manip.c: New file.
19617 * Makefile.in (tree-ssa-loop-manip.o): Add.
19618 * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
19619 Declare.
19620 * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
19621 form.
19622 (tree_ssa_loop_done): Verify loop closed ssa form.
19623 * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
19624
19625 2004-08-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19626
19627 * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
19628 pa_asm_output_aligned_local): New functions.
19629 * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
19630 pa_asm_output_aligned_common and pa_asm_output_aligned_local.
19631 * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
19632 pa_asm_output_aligned_common.
19633 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
19634 * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
19635 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
19636 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
19637 * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
19638 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
19639 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
19640 * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
19641 common data.
19642
19643 2004-08-05 Andrew Pinski <apinski@apple.com>
19644
19645 * objc/objc-act.c (build_objc_string_object): Mark the address
19646 expression as constant.
19647
19648 2004-08-05 David Edelsohn <edelsohn@gnu.org>
19649
19650 * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
19651 and mask64_operand thinkos. Handle ZERO_EXTRACT. Handle
19652 SIGN_EXTEND / ZERO_EXTEND of MEM. Handle rlwinm patterns.
19653
19654 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
19655
19656 * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
19657 Remove definitions conditioned on USE_GNULIBC_1 or conditioned
19658 out, and associated obsolete comments.
19659
19660 2004-08-05 Nathan Sidwell <nathan@codesourcery.com>
19661
19662 * tree.h (force_fit_type): Return a tree, take three flags.
19663 * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
19664 TREE_CONSTANT_OVERFLOW here.
19665 (int_const_binop, const_binop): Adjust.
19666 (size_int_type): Do sign extension here.
19667 (fold_convert_const, optimize_bit_field_compare,
19668 decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
19669 fold_negate_const, fold_abs_const, fold_not_const): Adjust.
19670 * tree.c (size_in_bytes, int_fits_type_p): Adjust.
19671
19672 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19673
19674 PR tree-optimization/16864
19675 * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
19676 for ssa names without default_def.
19677
19678 2004-08-05 Richard Sandiford <rsandifo@redhat.com>
19679
19680 * config/i386/i386.c (ix86_expand_prologue): If the function uses a
19681 frame pointer, restore eax with an ebp-relative address.
19682
19683 2004-08-04 Geoffrey Keating <geoffk@apple.com>
19684
19685 PR 14516
19686 * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
19687 * c-common.h (make_rtl_for_local_static): Delete.
19688 * c-decl.c (shadow_tag_warned): Clean up comment.
19689 (finish_decl): Clean up spacing. Use set_user_assembler_name when
19690 appropriate. Don't pass asmspec to rest_of_decl_compilation.
19691 * c-semantics.c (make_rtl_for_local_static): Delete.
19692 * expr.c (init_block_move_fn): Use set_user_assembler_name.
19693 (init_block_clear_fn): Likewise.
19694 * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
19695 expect it to be in DECL_ASSEMBLER_NAME. Update callers in many files.
19696 * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
19697 * tree.h (make_decl_rtl): Remove second parameter.
19698 (set_user_assembler_name): New.
19699 * varasm.c (set_user_assembler_name): New.
19700 (make_decl_rtl): Remove second parameter. Update callers in many
19701 files.
19702
19703 2004-08-05 Adam Nemet <anemet@lnxw.com>
19704
19705 * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
19706 (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*. Update
19707 to LynxOS 4.0.
19708 * gthr-lynx.h: New file.
19709 * config/lynx-ng.h: Remove file.
19710 * config/lynx.h: Update to LynxOS 4.0.
19711 * config/t-lynx: New file.
19712 * config/i386/lynx-ng.h: Remove file.
19713 * config/i386/lynx.h: Update to LynxOS 4.0.
19714 * config/rs6000/lynxbase.h: Remove file.
19715 * config/rs6000/lynx.h: Update to LynxOS 4.0.
19716 * config/rs6000/t-lynx: New file.
19717 * doc/install.texi (Options specification): Remove reference to
19718 LynxOS from systems where --with-gnu-as makes a difference.
19719
19720 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
19721
19722 * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
19723 __UINTMAX_TYPE__.
19724 * c-cppbuiltin.c (builtin_define_stdint_macros): New. Define
19725 __INTMAX_MAX__.
19726 (c_cpp_builtins): Call it.
19727 * doc/cpp.texi: Update.
19728
19729 2004-08-04 David Edelsohn <edelsohn@gnu.org>
19730
19731 * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
19732 cost.
19733
19734 2004-08-04 Jan Hubicka <jh@suse.cz>
19735
19736 * basic-block.h (profile_staus): New global variable.
19737 * cfg.c (profile_status): Declare.
19738 (check_bb_profile): Break out from ....; use profile_status
19739 (dump_flow_info): ... here.
19740 * cfgbuild.c (find_basic_blocks): Set profile_status.
19741 * cfgexpand.c (tree_expand_cfg): Likewise.
19742 * predict.c (estimate_probability): Likewise.
19743 * profile.c (branch_prob): Likewise.
19744 * tree-cfg.c (build_tree_cfg): Likewise.
19745 (dump_function_to_file): Use check_bb_profile.
19746 * tree-pretty-print (dump_bb_header): Likewise.
19747 * tree-profile.c (do_tree_profiling): Cleanup.
19748
19749 2004-08-04 Zack Weinberg <zack@codesourcery.com>
19750
19751 * Makefile.in (RTL_BASE_H, RTL_H): Correct.
19752 (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
19753 (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
19754 (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
19755 (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
19756 (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
19757 (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
19758 (ggc-none.o, errors.o): Move rule to generators section;
19759 correct dependencies.
19760 (min-insn-modes.o): Move rule to generators section; remove
19761 unnecessary explicit command; correct dependencies.
19762 (print-rtl.o, print-rtl1.o): Correct dependencies.
19763 ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
19764 (mostlyclean): Update.
19765
19766 * errors.c: Include bconfig.h not config.h. Correct comment.
19767 * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
19768 * ggc-none.c: Include bconfig.h; not config.h or tm.h.
19769 * print-rtl.c: Don't include tm_p.h.
19770
19771 * rtl.h: Move forward-decl of struct function down where it's
19772 needed. Include genrtl.h #ifndef GENERATOR_FILE, not
19773 #ifndef NO_GENRTL_H. Remove unnecessary #ifdef BUFSIZ statements.
19774
19775 2004-08-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19776 Jeff Law <law@redhat.com>
19777
19778 * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
19779 * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
19780 * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
19781 manipulate the duplicated ssa names.
19782 * tree-ssanames.c (ssa_names_to_rewrite): New variable.
19783 (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
19784 unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
19785 New functions.
19786 (release_ssa_name): Do not release ssa names that may have multiple
19787 definitions.
19788 * tree.h (release_ssa_name_force, mark_for_rewrite,
19789 unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
19790 marked_ssa_names): Declare.
19791 * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
19792 (duplicate_blocks): Remove call to mark_defs_for_rewrite.
19793 Update call to rewrite_ssa_into_ssa.
19794
19795 2004-08-04 Mark Mitchell <mark@codesourcery.com>
19796
19797 * defaults.h (TARGET_DECLSPEC): New macro.
19798 * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
19799 * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
19800 * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
19801 * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
19802 __declspec support.
19803 (TARGET_DECLSPEC): Define.
19804 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
19805 __declspec support.
19806 * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
19807 __declspec support.
19808 (TARGET_DECLSPEC): Define.
19809 * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
19810 __declspec support.
19811 * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
19812 support.
19813 * doc/tm.texi (TARGET_DECLSPEC): Document.
19814
19815 * doc/extend.texi: Fix typo in comment.
19816
19817 2004-08-04 Paul Brook <paul@codesourcery.com>
19818
19819 * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
19820 (TARGET_CXX): Use it.
19821 * target.h (struct gcc_target): Add cdtor_returns_this.
19822 * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
19823 (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
19824 * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
19825
19826 2004-08-03 Nathan Sidwell <nathan@codesourcery.com>
19827
19828 * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
19829 low/high pair. Do range checking directly.
19830 (interpret_integer): Adjust.
19831
19832 2004-08-04 Nick Clifton <nickc@redhat.com>
19833
19834 * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
19835 GCC ABI.
19836 * doc/invoke.texi: Document this new switch and also the -mrenesas
19837 switch.
19838
19839 2004-08-04 Nathan Sidwell <nathan@codesourcery.com>
19840
19841 * cfglayout.c (insn_locators_initialize): Update the current
19842 location before initializing a location.
19843
19844 2004-08-03 Zack Weinberg <zack@codesourcery.com>
19845
19846 * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
19847 (dbxout_function_end): Return after emitting the "Lscope" symbol
19848 under the same conditions that this function formerly wasn't called.
19849 Add explanatory comments.
19850
19851 PR 14860
19852 * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
19853 on the new decl.
19854
19855 PR 13956
19856 * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
19857 functions, broken out of dbxout_block.
19858 (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
19859 stabs too, if it contains symbols. Use the begin_label and
19860 the Lscope label (emitted by dbxout_function_end) for the
19861 range of this block.
19862
19863 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
19864
19865 * doc/install.texi: Update autoconf version requirements.
19866
19867 2004-08-03 Zack Weinberg <zack@codesourcery.com>
19868
19869 * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
19870 * recog.c (general_operand, immediate_operand, nonmemory_operand)
19871 (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
19872 * regclass.c (record_reg_classes): Likewise.
19873 * reload.c (find_reloads): Likewise.
19874 * reload1.c (reload): Likewise.
19875
19876 2004-08-03 Zack Weinberg <zack@codesourcery.com>
19877
19878 * gensupport.c (init_md_reader_args_cb): Renamed from
19879 init_md_reader_args. Add third option, callback function for
19880 parsing program-specific options. Add diagnosis of incorrect
19881 number of input files.
19882 (init_md_reader): Fold into init_md_reader_args_cb.
19883 (init_md_reader_args): Now a thin wrapper around
19884 init_md_reader_args_cb.
19885 * gensupport.h: Update prototypes.
19886
19887 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
19888 * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
19889 * genrecog.c: No need to diagnose lack of an input file;
19890 init_md_reader_args will handle it.
19891 * genconditions.c: Likewise, and use init_md_reader_args.
19892 * genconstants.c: Likewise, and no need to call read_md_rtx.
19893
19894 2004-08-03 Joseph S. Myers <jsm@polyomino.org.uk>
19895
19896 * c-decl.c (implicitly_declare): Diagnose incompatible implicit
19897 declarations.
19898
19899 2004-08-03 Mike Stump <mrs@apple.com>
19900
19901 * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
19902 for frameworks.
19903 * doc/invoke.texi (Darwin Options): Update to reflect above.
19904
19905 2004-08-03 Roger Sayle <roger@eyesopen.com>
19906
19907 PR middle-end/16790
19908 * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
19909 truncations, not just global truncations.
19910
19911 2004-08-03 Andrew Pinski <apinski@apple.com>
19912
19913 PR bootstrap/16865
19914 * loop-iv.c (simplify_using_assignment): Initialize lhs.
19915
19916 2004-08-03 Paul Brook <paul@codesourcery.com>
19917
19918 * gcc/doc/install.texi: Document MPFR requirement.
19919
19920 2004-08-03 Maciej W. Rozycki <macro@linux-mips.org>
19921
19922 * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
19923 and mmap() explicitly instead of relying on preset autoconf cache
19924 variables.
19925 * configure: Regenerate.
19926
19927 2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
19928
19929 PR target/16570
19930 * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
19931 to tmake_file.
19932 (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
19933 (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
19934 to tmake_file.
19935
19936 * config/i386/t-gmm_malloc: New file.
19937 * config/i386/t-pmm_malloc: Likewise.
19938
19939 * config/i386/xmmintrin.h: Include <mm_malloc.h>.
19940
19941 2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
19942 Tanguy Fautrà <tfautre@pandora.be>
19943
19944 * config/i386/pmm_malloc.h: New file.
19945
19946 2004-08-03 Danny Smith <dannysmith@users.sourceforge.net>
19947
19948 * config/i386/gmm_malloc.h: New file.
19949
19950 2004-08-03 Dale Johannesen <dalej@apple.com>
19951
19952 * config/rs6000/rs6000.c (machopic_output_stub): Align Darwin stubs.
19953 * c-common.c: Include opts.h.
19954 (c_common_get_alias_set): Fix check for a single input file.
19955 * toplev.c: Remove current_file_decl.
19956 * tree.h: Ditto.
19957
19958 2004-08-03 Mark Mitchell <mark@codesourcery.com>
19959
19960 * config.gcc (arm*-*-symbianelf*): New target.
19961 * config/arm/symbian.h: New file.
19962
19963 * gthr-gnat.c: Add visibility #pragmas.
19964 * gthr-gnat.h : Likewise.
19965 * gthr.h: Likewise.
19966 * libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
19967 (__ffsDI2): Likewise.
19968 (__clzSI2): Likewise.
19969 (__ctzSI2): Likewise.
19970 (__ctzDI2): Likewise.
19971 (__popcountSI2): Likewise.
19972 (__popcountDI2): Likewise.
19973 (__paritySI2): Likewise.
19974 (__parityDI2): Likewise.
19975 * libgcc2.h: Add visibility #pragmas.
19976 (__clzDI2): Add prototype.
19977 (__clzSI2): Likewise.
19978 (__ctzSI2): Likewise.
19979 (__ffsDI2): Likewise.
19980 (__ffsSI2): Likewise.
19981 (__ctzDI2): Likewise.
19982 (__popcountSI2): Likewise.
19983 (__popcountDI2): Likewise.
19984 (__paritySI2): Likewise.
19985 (__parityDI2): Likewise.
19986 * unwind-dw2-fde.h: Add visibility #pragmas.
19987 * unwind.h: Likewise.
19988
19989 2004-08-03 David Edelsohn <edelsohn@gnu.org>
19990 Dale Johannesen <dalej@apple.com>
19991 Roger Sayle <roger@eyesopen.com>
19992
19993 * config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
19994 constants more accurately. Adjust costs for FMA instructions.
19995 Add cases for most logical and float operations. Recurse into
19996 most operands.
19997
19998 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
19999
20000 * config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
20001
20002 2004-08-03 Pat Haugen <pthaugen@us.ibm.com>
20003
20004 * ra-build.c (conflicts_between_webs): For webs that cross a call add
20005 conflicts to regs_invalidated_by_call.
20006
20007 2004-08-03 Paul Brook <paul@codesourcery.com>
20008
20009 * config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
20010
20011 2004-08-03 Jan Hubicka <jh@suse.cz>
20012
20013 * coverage.c (tree_coverage_counter_ref): Fix computation of the new
20014 ARRAY_REF argument.
20015
20016 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
20017
20018 * arm-cores.def: Sort by architecture. Add arm946es, arm966es,
20019 arm968es, arm10e, arm1020e, arm1022e.
20020 * invoke.texi: Update list of ARM cores.
20021 * arm-tune.md: Regenerate.
20022
20023 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
20024
20025 * arm/gentune.sh: New file.
20026 * arm/t-arm: New file.
20027 * arm/arm-tune.md: New file (autogenerated).
20028 * config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
20029 * arm.md (attribute tune): Delete. Include arm-tune.md.
20030
20031 2004-08-03 Paolo Bonzini <bonzini@gnu.org>
20032
20033 * gcc.c (add_prefix, add_sysrooted_prefix): Remove
20034 penultimate parameter. All callers adjusted.
20035 (struct prefix_list): Remove used_flag_ptr.
20036 (find_a_file): Do not set *pl->used_flag_ptr.
20037 (warn_B, warn_std_ptr): Remove.
20038
20039 2004-08-03 Yossi Markovich <yossim@il.ibm.com>
20040 Mostafa Hagog <mustafa@il.ibm.com>
20041
20042 * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.
20043
20044 2004-08-02 Geoffrey Keating <geoffk@apple.com>
20045
20046 * dwarf2out.c (output_call_frame_info): Don't change data format
20047 due to TARGET_USES_WEAK_UNWIND_INFO. Always refer to the local
20048 label. Use 'true' not '1'.
20049 * doc/install.texi (powerpc-*-darwin*): Mention cctools version
20050 required.
20051
20052 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
20053
20054 * gdbinit.in: Reflect previous changes to rtunion_def.
20055
20056 2004-08-02 Roger Sayle <roger@eyesopen.com>
20057
20058 * fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
20059 -> "X % Y" is only valid for TRUNC_MOD_EXPR.
20060
20061 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
20062
20063 * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
20064 vec_p_reserve.
20065 * langhooks.h (lang_hooks::builtin_function): Rename parameter
20066 from "class" to "bt_class".
20067
20068 2004-08-02 Paul Brook <paul@codesourcery.com>
20069
20070 PR rtl-optimization/15068
20071 * flow.c (init_propagate_block_info): Check condition is reversible.
20072
20073 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
20074
20075 * gengtype.h (options::info): Change type to const char *.
20076 (enum gc_used_enum): Move out of struct type scope.
20077 * gengtype.c (create_option): Convert initializer for option::info to
20078 appropiate type.
20079 (adjust_field_type, walk_type, write_func_for_structure,
20080 write_root, write_roots): Remove pointless cast.
20081
20082 2004-08-02 J"orn Rennecke <joern.rennecke@superh.com>
20083
20084 * genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
20085
20086 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
20087
20088 * rtl.h (union rtunion_def): Have all members start with the
20089 prefix "rt_".
20090 (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
20091 X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
20092 X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
20093 XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members
20094 access.
20095 * gengtype.c (adjust_field_rtx_def): Likewise.
20096 * rtlanal.c (loc_mentioned_in_p): Likewise.
20097
20098 2004-08-02 Richard Sandiford <rsandifo@redhat.com>
20099
20100 * config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
20101 Replace uses of mips/elf64.h with mips/elf.h
20102 * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
20103 (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
20104 (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
20105 (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
20106 (HANDLE_SYSV_PRAGMA): Delete.
20107 (ASM_OUTPUT_DEF): Fix formatting.
20108 * config/mips/elf64.h: Delete.
20109
20110 2004-08-01 Zack Weinberg <zack@codesourcery.com>
20111
20112 * config/ia64/ia64.c (got_symbolic_operand): Do require a
20113 symbol+offset operand to have its offset be zero mod 0x3fff
20114 when GOT entries are in use. Clarify logic in SYMBOL_REF
20115 case. Clarify comments.
20116 (ia64_expand_load_address): Split a symbol+offset load when
20117 the offset is nonzero mod 0x3fff, not 0x1fff.
20118
20119 2004-08-01 Geoffrey Keating <geoffk@apple.com>
20120
20121 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
20122 if trying to *store* to a non-offsettable address.
20123 * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
20124 a nonoffsettable address.
20125 (movdi_internal32): Don't move GPRs to a nonoffsettable address.
20126 Clean up.
20127 (movti_string): Don't move GPRs to a nonoffsettable address.
20128 (movti_ppc64): Don't move GPRs to a nonoffsettable address. Clean up.
20129
20130 2004-08-02 Ben Elliston <bje@au.ibm.com>
20131
20132 PR target/16155
20133 * config/rs6000/altivec.h: Replace typeof with __typeof__.
20134
20135 2004-08-01 Richard Henderson <rth@redhat.com>
20136
20137 * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
20138 variable sized types.
20139
20140 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
20141
20142 * doc/invoke.texi: In the MIPS options section, remove the passage
20143 saying that -mexplicit-relocs is usually disabled for -mabicalls
20144 -fno-unit-at-a-time.
20145 * config/mips/mips.c (override_options): Remove the code that enforced
20146 this rule.
20147
20148 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
20149
20150 * config/mips/mips.md (cprestore): Provide two alternatives, one for
20151 an in-range offset and one for an out-of-range offset. Wrap the latter
20152 in .set macro/.set nomacro if it's inside a .set nomacro block.
20153
20154 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
20155
20156 * config/mips/mips-protos.h (mips_gp_save_slot): Remove.
20157 (mips_restore_gp): Declare.
20158 * config/mips/mips.c (mips_add_offset): Add a scratch register
20159 argument. Reimplement in rtl only, reusing MIPS16 logic from
20160 mips_output_mi_thunk.
20161 (mips_legitimize_address, mips_legitimize_const_move): Adjust calls
20162 to mips_add_offset.
20163 (mips_gp_save_slot): Delete.
20164 (mips_restore_gp): New function.
20165 (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
20166 * config/mips/mips.md (exception_receiver): Turn into a
20167 define_insn_and_split. Use mips_restore_gp to do the split.
20168 (call_internal, call_value_internal, call_value_multiple_internal): Use
20169 mips_restore_gp to restore $gp.
20170
20171 2004-07-31 Andrew Pinski <apinski@apple.com>
20172
20173 PR other/16842
20174 * mkheaders.in (libsubdir): s/gcc-lib/gcc/.
20175
20176 2004-07-31 Joseph S. Myers <jsm@polyomino.org.uk>
20177
20178 * c-decl.c (diagnose_mismatched_decls): Give error for external
20179 redeclaration of identifier declared with no linkage, not just
20180 warning with -Wtraditional. Do not check DECL_CONTEXT to give
20181 error for redeclaration with no linkage.
20182
20183 2004-07-30 Geoffrey Keating <geoffk@apple.com>
20184 Fariborz Jahanian <fjahanian@apple.com>
20185
20186 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
20187 non-offsettable addresses even for DImode.
20188 (rs6000_split_multireg_move): Cope with non-offsettable addresses
20189 being moved into multiple GPRs.
20190
20191 * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
20192 to 64.
20193 (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
20194 * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
20195 to 128.
20196 * config/rs6000/darwin-ldouble.c (isless): New macro.
20197 (inf): New macro.
20198 (nonfinite): New macro.
20199 (FPKINF): Delete.
20200 (_xlqadd): Completely rewrite.
20201 (_xlqmul): Correct overflow handling.
20202 (_xlqdiv): Correct overflow handling.
20203 * config/rs6000/darwin-ldouble-format: New file.
20204
20205 2004-07-30 Roger Sayle <roger@eyesopen.com>
20206 Richard Henderson <rth@redhat.com>
20207
20208 * config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
20209 9 into the equivalent lea instruction.
20210
20211 2004-07-30 Richard Henderson <rth@redhat.com>
20212
20213 * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
20214 with DECL_INITIAL if fb_lvalue.
20215 * tree-gimple.c (is_gimple_id): Add CONST_DECL.
20216 * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
20217 with <Cxxx>.
20218 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
20219
20220 2004-07-30 Diego Novillo <dnovillo@redhat.com>
20221
20222 * tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
20223 pointer escapes through a function call, assume that the
20224 callee will dereference it.
20225 (add_pointed_to_var): Assume that VALUE is always an
20226 ADDR_EXPR.
20227 (collect_points_to_info_r): Only call add_pointed_to_var if
20228 the value is an ADDR_EXPR.
20229
20230 2004-07-30 Diego Novillo <dnovillo@redhat.com>
20231
20232 * tree-ssa-alias.c (create_alias_map_for): Do not get the
20233 alias set of the inner type of ARRAY_TYPEs.
20234
20235 2004-07-29 Diego Novillo <dnovillo@redhat.com>
20236
20237 * tree-ssa-ccp.c (visit_assignment): Move code to prevent
20238 setting a non-register to UNDEFINED right before the call to
20239 set_lattice_value.
20240
20241 2004-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
20242
20243 * config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
20244
20245 2004-07-29 Diego Novillo <dnovillo@redhat.com>
20246
20247 * tree-ssa.c (verify_flow_sensitive_alias_info): When
20248 comparing points-to sets of different pointers, make sure the
20249 second pointer is actually referenced in the code.
20250
20251 2004-07-29 Zack Weinberg <zack@codesourcery.com>
20252
20253 * config/ia64/ia64.c (setjmp_operand): Delete, unused.
20254 (got_symbolic_operand): Remove unreachable code.
20255 * config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
20256 setjmp_operand; add entry for tls_symbolic_operand.
20257 * config/ia64/ia64-protos.h: Remove all prototypes of
20258 predicate functions.
20259
20260 2004-07-29 Mark Mitchell <mark@codesourcery.com>
20261
20262 * c-common.h (lang_post_pch_load): New variable.
20263 * c-pch.c (lang_post_pch_load): Define it.
20264 (c_common_read_pch): Use it.
20265 * cgraphunit.c (record_call_1): Give the front end a chance to
20266 record additional needed entities when a variable is marked as
20267 needed.
20268 * tlink.c (recompile_files): Robustify.
20269 (scan_linker_output): If a symbol is assigned to a file,
20270 but after recompilation is not present there, issue an error
20271 message.
20272
20273 2004-07-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
20274
20275 * tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
20276 Take orig_loop argument and pass it to set_level.
20277 (schedule_sm): Pass the correct orig_loop to force_move_till.
20278
20279 2004-07-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
20280
20281 * cfgloop.c (update_latch_info): Update dominator of the new block.
20282 (canonicalize_loop_headers, flow_loops_find): Do not free dominance
20283 info.
20284 * dominance.c (verify_dominators): Check that the dominance tree is
20285 connected.
20286 (recount_dominator): Ignore unreachable blocks.
20287 (iterate_fix_dominators): Cleanup old dominance information before
20288 recomputing it.
20289
20290 2004-07-29 Diego Novillo <dnovillo@redhat.com>
20291
20292 * tree-ssa-operands.c (get_expr_operands): Revert changes
20293 to ADDR_EXPR processing introduced by:
20294 2004-06-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20295 * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
20296
20297 2004-07-29 Joseph S. Myers <jsm@polyomino.org.uk>
20298
20299 * doc/implement-c.texi: Add C90 subclause references. Point to
20300 preprocessor documentation instead of duplicating it. Add points
20301 only present in C90. Fill in documentation for all points.
20302
20303 2004-07-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20304
20305 * pa.c (output_movb): Correct typo.
20306
20307 2004-07-29 Pat Haugen <pthaugen@us.ibm.com>
20308
20309 * ra.h (single_reg_in_regclass): Declare.
20310 * ra.c (single_reg_in_regclass): Define.
20311 (first_hard_reg): New.
20312 (init_ra): Initialize single_reg_in_regclass.
20313 * ra-colorize.c (ok_class): New.
20314 (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
20315
20316 2004-07-29 Nathan Sidwell <nathan@codesourcery.com>
20317
20318 * gcov-io.h: Allow zero tag as EOF indicator.
20319 (gcov_is_eof): Remove.
20320 (gcov_truncate): Remove.
20321 * gcov-io.c (gcov_seek): Always SEEK_SET.
20322 * libgcov.c (gcov_exit): Don't use gcov_truncate. Write explicit
20323 EOF tag.
20324 * coverage.c (read_counts_file): Don't use gcov_is_eof.
20325 * gcov-dump.c (dump_file): Likewise.
20326 * gcov.c (read_graph_file, read_count_file): Likewise.
20327
20328 * c-decl.c (complete_array_type): Don't gratuitously copy
20329 maxindex. Check it always has a type.
20330
20331 2004-07-29 Steven Bosscher <stevenb@suse.de>
20332
20333 * rtl.c (currently_expanding_to_rtl): New.
20334 * rtl.h (currently_expanding_to_rtl): Export it.
20335 * cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
20336
20337 * config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
20338 inliner hack.
20339 * config/sh/sh.c: Replace rtx_equal_function_value_matters
20340 with currently_expanding_to_rtl.
20341 * config/sh/sh.md: Likewise.
20342 * config/ia64/ia64.c (got_symbolic_operand): Likewise.
20343
20344 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
20345
20346 Introduce sh2a support.
20347 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
20348 * config.gcc: Build multilibs for sh2a and sh2a-single by
20349 default.
20350 * config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
20351 default. Split their tests out of the corresponding SH4
20352 multilibs.
20353 * config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
20354 multilibs for SH2a.
20355 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
20356 * config.gcc: Handle sh2a multilibs and cpu selection.
20357 * config/sh/sh.h: Likewise. Handle sh2a command line flags.
20358 * config/sh/t-mlib-sh2a: New.
20359 * config/sh/t-mlib-sh2a-nofpu: New.
20360 * config/sh/t-mlib-sh2a-single: New.
20361 * config/sh/t-mlib-sh2a-single-only: New.
20362 2004-07-09 Nick Clifton <nickc@redhat.com>
20363 Issue 43400
20364 * config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
20365 -ml and -m2a are used together.
20366 2004-03-23 DJ Delorie <dj@redhat.com>
20367 * config/sh/sh.c (sh_builtin_saveregs): Use the double code only
20368 when we have a double-sized FPU.
20369 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
20370 * config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
20371 is set.
20372 * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
20373 -msh2a-single and -msh2a-single-only
20374 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
20375 * config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
20376 is set.
20377 2004-02-20 DJ Delorie <dj@delorie.com>
20378 * config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
20379 2004-02-20 Fred Fish <fnf@redhat.com>,
20380 Corinna Vinschen <vinschen@redhat.com>
20381 * config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
20382 (MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
20383 2004-02-18 DJ Delorie <dj@redhat.com>
20384 * config/sh/sh.c (broken_move): Add support for movi20.
20385 * config/sh/sh.h: Likewise.
20386 (SHIFT_COUNT_TRUNCATED): Set for sh2a.
20387 * config/sh/sh.md (udivsi3_sh2a): New.
20388 (udivsi3): Call it.
20389 (divsi3_sh2a): New.
20390 (divsi3): Call it.
20391 (mul_r): New.
20392 (ashlsi3_sh2a): New.
20393 (ashrsi3_sh2a): New.
20394 (lshrsi3_sh2a): New.
20395 (movsi_i): Disable for sh2a.
20396 (movsi_ie): Add movi20.
20397 (movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
20398 sh2a, for -m2a-nofpu mode.
20399 2004-02-13 DJ Delorie <dj@redhat.com>
20400 * config/sh/lib1funcs.asm: Handle double vs single better.
20401 * config/sh/sh.h: Likewise.
20402 2004-02-09 DJ Delorie <dj@redhat.com>
20403 * config/sh/crt1.asm: Add support for sh2a.
20404 * config/sh/elf.h: Likewise.
20405 * config/sh/lib1funcs.asm: Likewise.
20406 * config/sh/sh.c: Likewise.
20407 * config/sh/sh.md: Likewise.
20408 * config/sh/sh.h: Likewise.
20409 * config/sh/t-sh: Likewise.
20410
20411 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
20412
20413 * config/frv/frv.md (movqi_internal, movhi_internal,
20414 movsi_internal): Add backup alternatives for memory inputs.
20415
20416 2004-07-28 Matt Austern <austern@apple.com>
20417
20418 * config/darwin.c (darwin_one_byte_bool): New global variable.
20419 * config/darwin.h (darwin_one_byte_bool): Declare.
20420 (SUBTARGET_OPTIONS): Define macro. (for -mone-byte-bool flag.)
20421 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
20422 value of darwin_one_byte_bool.
20423 * doc/invoke.texi: Document -mone-byte-bool flag.
20424
20425 2004-07-28 Eric Christopher <echristo@redhat.com>
20426
20427 * c-common.c (c_common_unsafe_for_reeval): Delete.
20428 * c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
20429 * c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
20430 * calls.c (fix_unsafe_tree): Delete.
20431 (expand_call): Delete code which used above.
20432 * dojump.c (do_jump): Delete UNSAVE_EXPR case.
20433 * expr.c (expand_expr_real_1): Ditto.
20434 * fold-const.c (non_lvalue): Ditto.
20435 * langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
20436 (lhd_unsafe_for_reeval): Ditto.
20437 * langhooks.c (lhd_unsafe_for_reeval): Ditto.
20438 * langhooks.h (unsafe_for_reeval): Ditto.
20439 (unsave_expr_now): Adjust comment.
20440 * tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
20441 (estimate_num_insns_1): Ditto.
20442 * tree-pretty-print.c (dump_generic_node): Ditto.
20443 * tree.c (expr_align): Ditto.
20444 (unsave_expr): Delete.
20445 (unsafe_for_reeval): Ditto.
20446 * tree.h (unsafe_for_reeval, unsave_expr): Ditto.
20447 * tree.def (UNSAVE_EXPR): Delete.
20448 * objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
20449
20450 2004-07-28 Zack Weinberg <zack@codesourcery.com>
20451
20452 * tree.h (enum tls_model): Move ...
20453 * coretypes.h: ... here.
20454
20455 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
20456
20457 * config/frv/frv.h (EPILOGUE_USES): New. Use LR.
20458
20459 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
20460
20461 * cse.c (validate_canon_reg): New function, split out from...
20462 (canon_reg): ...here. Use validate_canon_reg for both 'e' and 'E'.
20463
20464 2004-07-28 Diego Novillo <dnovillo@redhat.com>
20465
20466 * tree-ssa-alias.c (maybe_create_global_var): Don't just
20467 return if .GLOBAL_VAR has been created.
20468
20469 2004-07-28 Diego Novillo <dnovillo@redhat.com>
20470
20471 * tree-ssa.c (verify_flow_insensitive_alias_info): Process
20472 every variable that may have aliases, not just tags.
20473
20474 2004-07-28 Aldy Hernandez <aldyh@redhat.com>
20475
20476 * config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
20477 move_from_CR_eq_bit.
20478 Rename UNSPEC_MV_CR_GT to UNSPEC_MV_CR_EQ.
20479
20480
20481 * config/rs6000/spe.md ("e500_flip_gt_bit"): Rename to
20482 e500_flip_eq_bit.
20483
20484 * config/rs6000/rs6000-protos.h: Rename output_e500_flip_gt_bit to
20485 output_e500_flip_eq_bit.
20486
20487 * config/rs6000/rs6000.c (output_e500_flip_gt_bit): Rename to
20488 output_e500_flip_eq_bit.
20489 (rs6000_emit_sCOND): Rename call to output_e500_flip_gt_bit to
20490 output_e500_flip_eq_bit.
20491 Rename gen_move_from_CR_gt_bit to gen_move_from_CR_eq_bit.
20492 (print_operand): case D. Get to EQ bit.
20493
20494 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
20495
20496 * gcov.c (function_summary): Add missing \n.
20497
20498 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
20499
20500 Introduce sh4a support.
20501 * config.gcc: Handle sh4a multilibs and cpu selection.
20502 * config/sh/sh.h: Likewise. Handle sh4a command line flags.
20503 * config/sh/t-mlib-sh4a: New.
20504 * config/sh/t-mlib-sh4al: New.
20505 * config/sh/t-mlib-sh4a-nofpu: New.
20506 * config/sh/t-mlib-sh4a-single: New.
20507 * config/sh/t-mlib-sh4a-single-only: New.
20508 2004-02-20 DJ Delorie <dj@redhat.com>
20509 * config/sh/sh.md ("movua"): Change constraint from "m" to "Sua".
20510 * config/sh/sh.h (EXTRA_CONSTRAINT_S): Add "Sua" support.
20511 2003-08-22 Eric Christopher <echristo@redhat.com>
20512 * config/sh/sh4a.md: Update for chip errata.
20513 2003-08-07 Eric Christopher <echristo@redhat.com>
20514 * config/sh/sh4a.md: New file. sh4a processor description.
20515 2003-07-08 Alexandre Oliva <aoliva@redhat.com>
20516 * config/sh/sh.h (TARGET_SWITCHES): Added 4al. Adjust description
20517 of -m4a-nofpu.
20518 (SH_ASM_SPEC): Pass -dsp for -m4al, not -m4a-nofpu.
20519 * config/sh/t-sh (MULTILIB_MATCHES): Map -m4al to -m4a-nofpu.
20520 * doc/invoke.texi (SH Options): Document -m4al.
20521 2003-07-03 Alexandre Oliva <aoliva@redhat.com>
20522 * config/sh/sh.c (expand_block_move): Remove commented-out code
20523 checked in by mistake.
20524 (sh_cannot_change_mode_class): Enable SUBREGs to be used to select
20525 single elements from SFmode vectors.
20526 * config/sh/sh.md (fsca): Use VEC_CONCAT to initialize the output
20527 register.
20528 (sinsf2, cossf2, sindf2, cosdf2): Don't emit CLOBBER.
20529 2003-07-01 Alexandre Oliva <aoliva@redhat.com>
20530 * config/sh/sh.h (sh_fsca_sf2int, sh_fsca_df2int,
20531 sh_fsca_int2sf): Remove variable declarations.
20532 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
20533 sh_fsca_int2sf): New functions.
20534 (sh_fsca_sf2int_rtx, sh_fsca_df2int_rtx,
20535 sh_fsca_int2sf_rtx): New static variables.
20536 * config/sh/sh-protos.h (sh_fsca_sf2int, sh_fsca_df2int,
20537 sh_fsca_int2sf): Declare.
20538 * config/sh/sh.md: Adjust.
20539 * doc/invoke.texi (SH Options): Document new options.
20540 * config/sh/lib1funcs.asm (ic_invalidate): Remove SH4a forward
20541 compatibility from SH4 code.
20542 2003-06-27 Alexandre Oliva <aoliva@redhat.com>
20543 * config/sh/sh.c (expand_block_move): Don't emit POST_INC too
20544 early.
20545 (memory_movsrc_operand): Renamed to...
20546 (unaligned_load_operand): ... this. Simplified.
20547 * config/sh/sh.h (PREDICATE_CODES): Adjust.
20548 * config/sh/sh.md (movua, extv, extzv): Likewise. Change movua's
20549 input operand to SImode, and adjust the others. Introduce
20550 post-increment by peephole.
20551 * config/sh/sh.c (expand_block_move): Give the target address the
20552 same mode as the temp reg.
20553 * config/sh/sh.c (expand_block_move): Use a temp reg for unaligned
20554 copying.
20555 2003-06-26 Alexandre Oliva <aoliva@redhat.com>
20556 Introduce support for SH4a.
20557 * config/sh/lib1funcs.asm (ic_invalidate): Use icbi if
20558 __SH4A__. Emit 4 4kb blocks and touch all of them otherwise.
20559 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
20560 sh_fsca_int2sf): New.
20561 (sh_init_builtins): Initialize them.
20562 (print_operand): Support `d'.
20563 (expand_block_move): Use movua if src is misaligned.
20564 (memory_movsrc_operand): New.
20565 * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH4A__
20566 and one of the SH4 macros.
20567 (SH4A_BIT, TARGET_SH4A_ARCH, TARGET_SH4A_FP,
20568 SELECT_SH4A_NOFPU, SELECT_SH4A_SINGLE_ONLY, SELECT_SH4A,
20569 SELECT_SH4A_SINGLE): New.
20570 (TARGET_NONE): Add SH4A_BIT.
20571 (TARGET_SWITCHES): Add 4a-single-only, 4a-single, 4a-nofpu and 4a.
20572 (SH_ASM_SPEC): Pass -dsp if -m4a-nofpu.
20573 (sh_fsca_sf2int, sh_fsca_df2int, sh_fsca_int2sf): Declare.
20574 (OVERRIDE_OPTIONS): Set cpu to CPU_SH4A when appropriate.
20575 (enum processor_type): Added PROCESSOR_SH4A.
20576 (PREDICATE_CODES): Add memory_movsrc_operand.
20577 * config/sh/sh.md: Removed unused variables.
20578 (attr cpu): Add sh4a.
20579 (attr type): Add movua, fsrra and fsca.
20580 (prefetch): New, for SH4.
20581 (ic_invalidate_line, ic_invalidate_line_sh4a): Use icbi.
20582 (toggle_sz): Set type to fp.
20583 (toggle_pr, rsqrtsf2, fsca, sinsf2, cossf2, sindf2, cosdf2): New.
20584 (movua, extv, extzv): New.
20585 * config/sh/t-sh: Add multilibs for 4a, 4a-nofpu, 4a-single
20586 and 4a-single-only.
20587
20588 2004-07-28 Diego Novillo <dnovillo@redhat.com>
20589
20590 * tree-optimize.c (init_tree_optimization_passes): Schedule
20591 pass_may_alias right after the program is renamed into SSA.
20592 * tree-pass.h (PROP_alias): Define.
20593 * tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
20594 * tree-sra.c (pass_sra): Likewise.
20595 * tree-ssa-ccp.c (pass_ccp): Likewise.
20596 * tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
20597 * tree-ssa-dce.c (pass_dce): Likewise.
20598 * tree-ssa-dom.c (pass_dominator): Likewise.
20599 * tree-ssa-dse.c (pass_dse): Likewise.
20600 * tree-ssa-forwprop.c (pass_forwprop): Likewise.
20601 * tree-ssa-loop-ch.c (pass_ch): Likewise.
20602 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
20603 * tree-ssa-pre.c (pass_pre): Likewise.
20604 * tree-tailcall.c (pass_tail_recursion): Likewise.
20605 * tree-ssa.c (pass_redundant_phi): Likewise.
20606 * tree-ssa-alias.c (aliases_computed_p): Remove.
20607 Update all users.
20608 (init_alias_info): Do not mark all type tags for renaming
20609 unconditionally.
20610 Clear may_aliases from every symbol.
20611 (setup_pointers_and_addressables): If a pointer has not been
20612 dereferenced and it had a type tag, clear it and mark the old
20613 tag for renaming.
20614
20615 2004-07-28 Diego Novillo <dnovillo@redhat.com>
20616
20617 PR tree-optimization/16705
20618 * tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
20619 .GLOBAL_VAR.
20620
20621 2004-07-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20622
20623 * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error
20624 check.
20625
20626 * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,
20627 don't make another one.
20628
20629 PR optimization/15077
20630 * function.h (struct function): Add field saved_static_chain_decl.
20631 Fix comment for static_chain_decl.
20632 * tree-inline.c (save_body): Add new arg and handle static_chain_decl.
20633 * tree-inline.h (save_body): Add new arg.
20634 * tree-optimize.c (tree_rest_of_compilation): Handle saving
20635 static_chain_decl.
20636
20637 2004-07-27 Richard Henderson <rth@redhat.com>
20638
20639 * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
20640 (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
20641 is_gimple_addressable.
20642 * tree-gimple.c (is_gimple_addressable): Rename from
20643 is_gimple_addr_expr_arg; accept INDIRECT_REF.
20644 (is_gimple_lvalue): Don't test INDIRECT_REF directly.
20645 * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
20646 rename to is_gimple_addressable.
20647
20648 2004-07-28 Alan Modra <amodra@bigpond.net.au>
20649
20650 * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
20651
20652 2004-07-27 Richard Henderson <rth@redhat.com>
20653
20654 * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
20655 before rounding.
20656
20657 2004-07-27 Zack Weinberg <zack@codesourcery.com>
20658
20659 * libgcc2.c: Change all conditionals testing
20660 LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80.
20661 * libgcc2.h: Likewise.
20662 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set
20663 TYPE_PRECISION of float80_type to 80.
20664 * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION
20665 of fpreg_type and float80_type to 80.
20666 * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h
20667 * config/m68k/netbsd-elf.h:
20668 Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE
20669 to evaluate to 80 whenever they would formerly have evaluated to 96.
20670 * config/i386/sco5.h: Remove unnecessary redefinition of
20671 LONG_DOUBLE_TYPE_SIZE.
20672 * doc/rtl.texi: Clarify uses of XFmode and TFmode.
20673 * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for
20674 XFmode, with a bitsize of 80. Update commentary.
20675 * config/ia64/ia64-modes.def: Likewise.
20676 * config/m68k/m68k-modes.def: Likewise.
20677
20678 2004-07-27 Steven Bosscher <stevenb@suse.de>
20679
20680 * cfgexpand.c (tree_expand_cfg): Fix comment.
20681
20682 * calls.c (expand_call): Ignore rtx_equal_function_value_matters.
20683 * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets):
20684 Remove.
20685 (prepare_function_start): Don't set rtx_equal_function_value_matters.
20686 * integrate.c (copy_rtx_and_substitute): Don't test for it.
20687 * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets.
20688 Don't set rtx_equal_function_value_matters. Don't register RTL hooks
20689 here again. Update leading comment.
20690 * rtl.c (rtx_equal_function_value_matters): Remove.
20691 (rtx_equal_p): Don't test for it.
20692 * simplify-rtx.c (simplify_binary_operation, simplify_subreg):
20693 Likewise.
20694
20695 * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND.
20696 * rtl.c (note_insn_name): Likewise.
20697 * emit-rtl.c (remove_unnecessary_notes): Don't handle it.
20698 * final.c (final_scan_insn): Likewise.
20699
20700 * except.c (finish_eh_generation): Don't call cfg_cleanup from here.
20701 * passes.c (rest_of_handle_eh): Do it here.
20702
20703 * stmt.c (struct nesting): Remove struct nesting block member.
20704 (struct stmt_status): Remove x_block_start_count field.
20705 (current_block_start_count): Remove.
20706
20707 2004-07-27 Brian Booth <bbooth@redhat.com>
20708
20709 * tree-optimize.c (register_one_dump_file): Update condition that uses
20710 static_pass_number.
20711 (dup_pass_1): Replace with...
20712 (next_pass_1): This.
20713 (NEXT_PASS): Call next_pass_1.
20714 (DUP_PASS): Remove.
20715 (init_tree_optimization_passes): Remove uses of DUP_PASS.
20716 (execute_one_pass): Update condition that uses
20717 static_pass_number.
20718 * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed
20719 integer.
20720
20721 2004-07-27 Nick Clifton <nickc@redhat.com>
20722
20723 * config/m32r/m32r.c: Include integrate.h in order to get the
20724 prototype for get_hard_reg_initial_val().
20725
20726 * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r"
20727 and tidy up indentation.
20728 (final_presence_set): Use absence_set instead, so that if there is
20729 nothing in the "o" pipe the "s" pipe can be scheduled.
20730
20731 2004-07-27 Diego Novillo <dnovillo@redhat.com>
20732
20733 * tree-ssa-alias.c (create_name_tags): Ignore pointers that
20734 don't have PT_VARS nor PT_MALLOC set.
20735 Clear name tag from pointers that have not been dereferenced.
20736 (set_pt_anything, set_pt_malloc): Forward declare.
20737 * tree-ssa-copy.c (may_propagate_copy): Compare alias sets,
20738 not type compatibility when determining if a pointer can be
20739 copy propagated.
20740
20741 2004-07-27 Richard Sandiford <rsandifo@redhat.com>
20742
20743 * expr.h (canonicalize_condition, get_condition): Add an int argument.
20744 * gcse.c (fis_get_condition): Reimplement using get_condition, leaving
20745 it to check whether the condition is still valid at the jump insn.
20746 * ifcvt.c (noce_get_condition): Likewise.
20747 (noce_get_alt_condition): Update call to canonicalize_condition.
20748 * loop-iv.c (simplify_using_initial_values): Update call to
20749 get_condition. Remove FIXME.
20750 (check_simple_exit): Update call to get_condition.
20751 * loop-unswitch.c (may_unswitch_on): Likewise.
20752 * loop.c (check_dbra_loop): Likewise.
20753 (canonicalize_condition, get_condition): Add an argument to say whether
20754 the condition must still be valid at INSN.
20755 (get_condition_for_loop): Update call to get_condition. Require that
20756 the condition be valid at INSN.
20757 * predict.c (estimate_probability): Update call to get_condition.
20758 Remove unused earliest parameter.
20759 (expected_value_to_br_prob): Update call to canonicalize_condition.
20760
20761 2004-07-26 Eric Christopher <echristo@redhat.com>
20762
20763 * tree-dfa.c (add_referenced_var): Register initializers of global
20764 variables.
20765
20766 2004-07-26 Paolo Bonzini <bonzini@gnu.org>
20767
20768 * config/i386/i386.c (function_arg): Always treat 8-
20769 and 16-byte wide vectors the same, even if MMX/SSE
20770 are disabled.
20771 (contains_128bit_aligned_vector_p): Add comment.
20772
20773 2004-07-26 J"orn Rennecke <joern.rennecke@superh.com>
20774
20775 * ra.h (enum node_type): Rename to:
20776 (enum ra_node_type).
20777 * ra-colorize.c: Likewise.
20778
20779 2004-07-26 Richard Sandiford <rsandifo@redhat.com>
20780
20781 * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
20782 after simplifying the jump.
20783
20784 2004-06-26 Richard Henderson <rth@redhat.com>
20785
20786 * calls.c (combine_pending_stack_adjustment_and_call): Make
20787 preferred_unit_stack_boundary argument unsigned. Make
20788 unadjusted_alignment unsigned.
20789 (expand_call): Make preferred_stack_boundary and
20790 preferred_unit_stack_boundary variables unsigned.
20791 * function.c (assign_stack_local_1): Make alignment unsigned.
20792 * function.h (struct function): Make stack_alignment_needed,
20793 preferred_stack_boundary unsigned.
20794 * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
20795 (ix86_compute_frame_layout): Make stack_alignment_needed,
20796 preferred_alignment variables unsigned.
20797 * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.
20798
20799 2004-07-26 Tom Tromey <tromey@redhat.com>
20800
20801 * tree.h: Fix typo in comment.
20802
20803 2004-07-26 Daniel Jacobowitz <dan@debian.org>
20804
20805 PR bootstrap/12804
20806 * ggc-zone.c (struct alloc_chunk): Remove attribute packed.
20807 (MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
20808 (ggc_free): Remove incorrect freeing.
20809 (sweep_pages): Advance PP for large pages. Fix indentation.
20810
20811 2004-07-26 Richard Sandiford <rsandifo@redhat.com>
20812
20813 PR rtl-optimization/16643
20814 * cfglayout.h (cfg_layout_initialize): Add a flags parameter.
20815 * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
20816 * basic-block.h (reorder_basic_blocks): Add a flags parameter.
20817 * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
20818 (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
20819 * function.c (thread_prologue_and_epilogue_insns): Likewise.
20820 * rtl.h (tracer): Add a flags parameter.
20821 * tracer.c (tracer): Pass it to cfg_layout_initialise.
20822 * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
20823 (rest_of_handle_reorder_blocks): Update calls to tracer and
20824 reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
20825 (rest_of_handle_tracer): Pass 0 to tracer.
20826 (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
20827
20828 2004-07-25 David Edelsohn <edelsohn@gnu.org>
20829
20830 PR target/16239
20831 * config/rs6000/rs6000.md (movdi_internal64): Further disparage
20832 f->f.
20833
20834 2004-07-24 Nathan Sidwell <nathan@codesourcery.com>
20835
20836 * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
20837 (BINFO_BASE_ACCESS): Adjust.
20838 (BINFO_BASE_ACCESS_APPEND): New.
20839 (struct tree_binfo): Make base_accesses a VEC(tree) pointer.
20840 * dbxout.c (dbxout_type): Adjust binfo access accessing.
20841 * dwarf2out.c (gen_member_die): Likewise.
20842 * tree-dump.c (deque_and_dump): Likewise.
20843
20844 2004-07-26 Falk Hueffner <falk@debian.org>
20845
20846 * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
20847 costs.
20848
20849 2004-07-25 Roger Sayle <roger@eyesopen.com>
20850
20851 * config/i386/i386.c (output_fp_compare): Use ffreep to pop top
20852 value off of the stack if TARGET_USE_FFREEP.
20853
20854 2004-07-26 Bernardo Innocenti <bernie@develer.com>
20855
20856 * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
20857 * gengtype-yacc.y: Likewise. Replace free() with XDELETE ().
20858 * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
20859 check on invocation of XRESIZEVEC ().
20860
20861 2004-07-26 Bernardo Innocenti <bernie@develer.com>
20862
20863 * c-common.c (disable_builtin_function): Rename variable n to
20864 new_disabled_builtin.
20865 * c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
20866 Rename local variable old to old_decl.
20867 * gensupport.c (shift_output_template): Rename parameter old to src.
20868 * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
20869 old_rtx and newx to new_rtx.
20870
20871 2004-07-26 Bernardo Innocenti <bernie@develer.com>
20872
20873 * Makefile.in (C_PRAGMA_H): New variable to track dependencies
20874 of c-pragma.h.
20875 * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
20876 enum cpp_ttype.
20877 * c-lex.c: Likewise.
20878
20879 2004-07-25 Roger Sayle <roger@eyesopen.com>
20880
20881 * fold-const.c (constant_boolean_node): Make extern.
20882 (make_range): Wrap long lines.
20883 (fold_cond_expr_with_comparison): Remove unnecessary call to
20884 pedantic_non_lvalue. Add missing calls to fold_convert.
20885 (fold_truthop): Add missing calls to fold_convert.
20886 (fold): Likewise.
20887 * tree.h (constant_boolean_node): Add prototype here.
20888 * builtins.c (expand_builtin_strncmp): Add missing calls to
20889 fold_convert.
20890 * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
20891 Call fold_convert and constant_boolean_node to correct types.
20892 * tree-ssa-forwprop.c (substitute_single_use_vars): Add
20893 missing call to fold_convert to correct types.
20894
20895 2004-07-26 Niall Douglas <s_fsfeurope2@nedprod.com>
20896 Brian Ryner <bryner@brianryner.com>
20897
20898 PR c++/9283
20899 PR c++/15000
20900 * c-common.c (c_common_attribute_table): Allow
20901 handle_visibility_attribute to be called for types.
20902 (handle_visibility_attribute) When given a type, set the visibility
20903 bits on the TYPE_NAME. When given a decl, don't set no_add_attrs
20904 so that we can check later whether the attribute was present. Added
20905 warning if attribute applied to non class type.
20906 * c-decl.c (diagnose_mismatched_decls): Updated rules for merging
20907 decls and checking that they are consistent.
20908 * common.opt: Added -fvisibility.
20909 * c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
20910 * c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
20911 * flags.h, tree.h: Added assorted support defines for overall patch
20912 * opts.c: Added parsing support for -fvisibility.
20913 * tree.c (build_decl): Set visibility for all decls to be whatever
20914 is in force at that time.
20915 * varasm.c (default_binds_local_p_1): Reworked logic determining
20916 when to make a symbol locally bound.
20917 * doc/invoke.texi: Added documentation for -fvisibility and
20918 -fvisibility-inlines-hidden.
20919
20920 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20921
20922 * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
20923 * c-common.c: Add missing casts from void * to other types.
20924 * c-decl.c: Likewise.
20925 * c-format.c: Likewise.
20926 * c-lex.c: Likewise.
20927 * c-pragma.c: Likewise.
20928 * c-typeck.c: Likewise.
20929 * defaults.h: Likewise.
20930 * genconstants.c: Likewise.
20931 * gengtype-lex.l: Likewise.
20932 * genmodes.c: Likewise.
20933 * read-rtl.c: Likewise.
20934 * rtl.c: Likewise.
20935
20936 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20937
20938 * bitmap.c: Use type-safe memory allocation macros from libiberty.
20939 * c-common.c: Likewise.
20940 * c-decl.c: Likewise.
20941 * c-lang.c: Likewise.
20942 * c-lex.c: Likewise.
20943 * c-opts.c: Likewise.
20944 * c-parse.in: Likewise.
20945 * c-typeck.c: Likewise.
20946 * genconditions.c: Likewise.
20947 * gengtype-lex.l: Likewise.
20948 * gengtype-yacc.y: Likewise.
20949 * gengtype.c: Likewise.
20950 * genmodes.c: Likewise.
20951 * gensupport.c: Likewise.
20952 * read-rtl.c: Likewise.
20953 * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
20954 htab_find_slot().
20955
20956 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20957
20958 * c-decl.c (groktypename, groktypename_in_param_context): Rename
20959 variable typename to type_name.
20960 * c-lex.c (interpret_float): Likewise.
20961
20962 2004-07-25 Roger Sayle <roger@eyesopen.com>
20963
20964 * convert.c (convert_to_real, convert_to_integer,
20965 convert_to_complex): Replace calls to build with calls to buildN.
20966 * coverage.c (tree_coverage_counter_ref): Likewise.
20967 * dojump.c (do_jump): Likewise.
20968 * dwarf2out.c (loc_descriptor_from_tree): Likewise.
20969 * emit-rtl.c (component_ref_for_mem_expr,
20970 set_mem_attributes_minus_bitpos): Likewise.
20971 * explow.c (update_nonlocal_goto_save_area): Likewise.
20972 * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
20973 expand_mult_add): Likewise.
20974 * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
20975 store_constructor, get_inner_reference, expand_expr_real_1,
20976 try_casesi, try_tablejump): Likewise.
20977 * function.c (expand_function_start): Likewise.
20978 * stmt.c (emit_case_bit_tests, expand_end_case_type,
20979 node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
20980 * stor-layout.c (place_union_field, layout_type): Likewise.
20981 * tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
20982 * varasm.c (copy_constant): Likewise.
20983
20984 2004-07-25 Bernardo Innocenti <bernie@develer.com>
20985
20986 * c-common.c: Rename all identifiers named `new'.
20987 * c-decl.c: Likewise.
20988 * gensupport.c: Likewise.
20989 * simplify-rtx.c: Likewise.
20990 * c-common.c (disable_builtin_function): Replace a call to xmalloc()
20991 with XNEW().
20992 * gensupport.c (alter_output_for_insn): Replace two calls to xmalloc()
20993 with XNEWVEC().
20994
20995 2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
20996
20997 PR c/15360
20998 * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
20999 declarations until after calling pushdecl.
21000 (grokdeclarator): Set DECL_EXTERNAL for variables based on use of
21001 "extern" and not on whether the declaration is initialized.
21002
21003 2004-07-25 Daniel Jacobowitz <dan@debian.org>
21004
21005 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
21006 (sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
21007 * config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
21008 "cpplib.h", "c-pragma.h", "c-common.h".
21009 (solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
21010 (solaris_register_pragmas): New functions.
21011 * config/sol2-protos.h: New file.
21012 * config/sol2.c: New file.
21013 * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
21014 (REGISTER_TARGET_PRAGMAS): New macros.
21015 (solaris_pending_aligns, solaris_pending_inits)
21016 (solaris_pending_finis): New variables.
21017 * config/t-sol2 (sol2-c.o): Update dependencies.
21018 (sol2.o): New rule.
21019 * config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
21020 SUBTARGET_INSERT_ATTRIBUTES.
21021 (ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
21022 * config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
21023 (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
21024 * config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
21025 * config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
21026 * config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
21027 (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
21028 * config/sparc/sparc.c (sparc_attribute_table): New.
21029 (TARGET_INSERT_ATTRIBUTES): Define in terms of
21030 SUBTARGET_INSERT_ATTRIBUTES.
21031 (TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
21032 is defined.
21033 * doc/extend.texi (Solaris Pragmas): New section.
21034
21035 2004-07-25 Bernardo Innocenti <bernie@develer.com>
21036
21037 * c-common.c: Rename all identifiers named `class' to `cl'.
21038 * c-common.h: Likewise.
21039 * c-parse.in: Likewise.
21040 * c-typeck.c: Likewise.
21041 * genmodes.c: Likewise.
21042 * real.c: Likewise.
21043 * real.h: Likewise.
21044 * recog.c: Likewise.
21045 * recog.h: Likewise.
21046 * regrename.c: Likewise.
21047 * tree.h: Likewise.
21048 * c-common.c (builtin_function_2): Change type of 5th parameter from
21049 int to enum built_in_function. Change type of 8th parameter from int
21050 to bool.
21051 * c-decl (builtin_function): Replace call to ggc_alloc_cleared ()
21052 with GGC_CNEW().
21053 * c-typeck.c (convert_arguments): Change type of formal_prec from
21054 int to unsigned int.
21055 * genmodes.c (blank_mode): Make a few negative constants unsigned.
21056 (complete_all_modes, calc_wider_mode, emit_insn_modes_h,
21057 emit_mode_name, emit_mode_class, emit_mode_precision, emit_mode_size,
21058 emit_mode_nunits, emit_mode_wider, emit_mode_mask, emit_mode_inner,
21059 emit_mode_base_align, emit_class_narrowest_mode): Pass an integer
21060 iterator to for_all_modes () instead of an enum because enums can't
21061 be incremented in C++.
21062
21063
21064 2004-07-25 Daniel Jacobowitz <dan@debian.org>
21065
21066 * regmove.c (optimize_reg_copy_1): Don't try to replace call-used
21067 hard registers.
21068
21069 2004-07-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21070
21071 * tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
21072 Handle ARRAY_RANGE_REF like ARRAY_REF.
21073
21074 2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
21075
21076 * c-typeck.c (digest_init): Don't allow arrays of signed or
21077 unsigned variants of wchar_t to be initialized by wide string
21078 constants. Do allow arrays of enumerated types compatible with
21079 wchar_t to be initialized by wide string constants. Refine tests
21080 distinguishing wide and narrow strings and arrays. Give specific
21081 error for arrays of other integer types initialized by string
21082 constants.
21083 (output_init_element, process_init_element): Check for
21084 INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
21085 initializing with string constants.
21086
21087 2004-07-25 Richard Henderson <rth@redhat.com>
21088
21089 * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
21090 on the RESULT_DECL.
21091 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
21092 * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
21093 DECL_IGNORED_P to new decl.
21094
21095 2004-07-24 Zack Weinberg <zack@codesourcery.com>
21096
21097 * config/ia64/ia64.c (general_xfmode_operand)
21098 (destination_xfmode_operand): Delete.
21099 * config/ia64/ia64.h (PREDICATE_CODES): Remove them.
21100 * config/ia64/ia64.md (*movxf_internal): Use general_operand
21101 and destination_operand.
21102
21103 2004-07-24 Alexander Kabaev <kan@freebsd.org>
21104
21105 * config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
21106 (EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.
21107
21108 2004-07-24 Alexander Kabaev <kan@freebsd.org>
21109 Zack Weinberg <zack@codesourcery.com
21110
21111 PR 16684
21112 * c-decl.c (diagnose_mismatched_decls): Don't issue a
21113 redundant-declaration warning the first time a builtin is
21114 declared explicitly.
21115
21116 2004-07-25 Bernardo Innocenti <bernie@develer.com>
21117
21118 * tree.h (staticp): Change return type to bool.
21119
21120 2004-07-25 Bernardo Innocenti <bernie@develer.com>
21121
21122 * c-common.c (c_staticp): Last episode of the staticp saga.
21123
21124 2004-07-25 Bernardo Innocenti <bernie@develer.com>
21125
21126 * c-common.h (c_staticp): Change return type from int to bool.
21127 * tree.c (staticp): Likewise.
21128 * langhooks.h (staticp): Likewise.
21129
21130 2004-07-25 Bernardo Innocenti <bernie@develer.com>
21131
21132 * langhooks-def.h (lhd_staticp): Change return type from int to
21133 bool in prototype to match definition.
21134
21135 2004-07-25 Bernardo Innocenti <bernie@develer.com>
21136
21137 * system.h (bool, true, false): Don't redefine as preprocessor macros
21138 in C++.
21139
21140 2004-07-24 Roger Sayle <roger@eyesopen.com>
21141
21142 * expmed.c (init_expmed): A signed modulus by a power of two is
21143 considered cheap if its less than or equal to four instructions.
21144
21145 2004-07-25 Bernardo Innocenti <bernie@develer.com>
21146
21147 * ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
21148 GGC_CNEWVAR): New macros.
21149
21150 2004-07-25 Bernardo Innocenti <bernie@develer.com>
21151
21152 * c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
21153 lists.
21154 * c-decl.c: Likewise.
21155 * c-format.c: Likewise.
21156 * c-lex.c: Likewise.
21157 * c-opts.c: Likewise.
21158 * c-pragma.c: Likewise.
21159 * c-typeck.c: Likewise.
21160 * gencheck.c: Likewise.
21161 * genconditions.c: Likewise.
21162 * genconfig.c: Likewise.
21163 * genflags.c: Likewise.
21164 * gengtype.c: Likewise.
21165 * gensupport.c: Likewise.
21166 * ggc-none.c: Likewise.
21167 * langhooks.c: Likewise.
21168 * statistics.h: Likewise.
21169 * stub-objc.c: Likewise.
21170 * java/decl.c: Likewise.
21171
21172 2004-07-24 Roman Zippel <zippel@linux-m68k.org>
21173
21174 * config/m68k/m68k.c (output_scc_di): Fix coding style.
21175 (symbolic_operand): Fix prototype.
21176 * config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
21177 * config/m68k/m68k.md: Add constants for registers a0 and sp and
21178 use them, change from the "{...}" syntax to the simpler {...}
21179 syntax.
21180 (*cfv4_extendqisi2): Fix destination predicate.
21181 * config/m68k/m68k-protos.h: Remove various declarations also
21182 generated via PREDICATE_CODES.
21183
21184 2004-07-23 Mike Stump <mrs@apple.com>
21185
21186 * c-typeck.c (convert_for_assignment): Tightened up pointer
21187 converstions that differ in signedness.
21188
21189 2004-07-23 Zack Weinberg <zack@codesourcery.com>
21190
21191 * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
21192
21193 2004-07-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21194
21195 * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
21196 * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
21197
21198 * gimplify.c (gimplify_compound_lval): Check for no handled
21199 operations, rather than checking for explicit list of nodes.
21200 (is_gimple_addr_expr_arg_or_indirect): New function.
21201 (gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
21202 redundant setting of TREE_INVARIANT.
21203 (gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
21204 * tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.
21205
21206 2004-07-23 Diego Novillo <dnovillo@redhat.com>
21207
21208 PR tree-optimization/16688
21209 PR tree-optimization/16689
21210 * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
21211 unnecessary initialization of 'tag'.
21212 (get_tmt_for): Check that the new type tag has the same alias
21213 set as the pointed-to type.
21214 (group_aliases): Only regular variables need to be removed
21215 from the alias set of a name tag.
21216 * tree-ssa-copy.c (may_propagate_copy): Do not allow copy
21217 propagation if the two types are not compatible.
21218 (merge_alias_info): Rename from replace_ssa_names_ann.
21219 Add more checking.
21220 (replace_exp_1): If both arguments are SSA_NAMEs, check that
21221 the propagation can be done.
21222 Only call merge_alias_info on pointers.
21223 (propagate_value): Likewise.
21224 * tree-ssa-copyrename.c: Include langhooks.h.
21225 (copy_rename_partition_coalesce): Call replace_ssa_name_symbol
21226 to do the merging.
21227 Do not coalesce variables with incompatible types.
21228 (rename_ssa_copies): Call replace_ssa_name_symbol.
21229 * tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
21230 the same type as the underlying _DECL.
21231 * tree-ssanames.c (replace_ssa_name_symbol): New function.
21232 * tree.h (replace_ssa_name_symbol): Declare.
21233
21234 2004-07-23 Richard Henderson <rth@redhat.com>
21235
21236 PR c++/16277
21237 * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
21238 unshare it properly.
21239 (gimplify_modify_expr_rhs): Push assignment from a conditional into
21240 the conditional for all non-register types.
21241
21242 2004-07-23 Richard Henderson <rth@redhat.com>
21243
21244 * expr.c (expand_expr_real_1): Don't handle non-local variables.
21245 * expr.h (fix_lexical_addr): Remove.
21246 * function.c (NEED_SEPARATE_AP): Remove.
21247 (fix_lexical_addr): Remove.
21248 * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
21249 not null decl_function_context.
21250 (create_alias_vars): Likewise.
21251 * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
21252 (simple_goto_p): Likewise.
21253 * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
21254 * tree-ssa-ccp.c (get_default_value): Likewise.
21255 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
21256 * tree.c (needs_to_live_in_memory): Likewise.
21257 * tree-flow-inline.h (may_be_aliased): Move...
21258 * tree-ssa-alias.c (may_be_aliased): ... here. Enhance check for
21259 when TREE_STATIC variables may be addressable.
21260
21261 2004-07-24 Jakub Jelinek <jakub@redhat.com>
21262
21263 * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
21264
21265 2004-07-23 Zack Weinberg <zack@codesourcery.com>
21266
21267 * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
21268 bitmap contents if GENERATOR_FILE is defined.
21269 * Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
21270 ($(BUILD_PREFIX_1)bitmap.o): Delete rule.
21271
21272 2004-07-23 Joseph S. Myers <jsm@polyomino.org.uk>
21273
21274 * c-decl.c (start_function): Form composite type of function types
21275 rather than copying type from previous prototype declaration.
21276
21277 2004-07-23 Janis Johnson <janis187@us.ibm.com>
21278
21279 * config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
21280 the const qualifier for the second argument in the C++ functions.
21281
21282 * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
21283 specific pointer types.
21284
21285 * config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
21286 vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
21287 for vector bool and/or vector pixel, add C++ and C missing support.
21288 (vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
21289 vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
21290 vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
21291 vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
21292 vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
21293 missing C++ and C support for vector bool and/or vector pixel.
21294 (vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
21295 vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
21296 vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
21297 vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
21298 vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
21299 C++ and C types used for vector bool and/or vector pixel.
21300 (vec_st, vec_stl): Add C++ support for vector pixel.
21301 (vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
21302 (vec_all_ne): Add C++ support for vector pixel.
21303
21304 * config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
21305 (vec_vmulesb): Add missing C++ function.
21306 (vec_perm): Fix type of third argument in C++ function.
21307 (vec_vsum4shs): Fix C++ function name.
21308 (vec_any_ge): Remove C++ functions for unsupported arg combinations.
21309 (vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
21310 argument passed to the error handler in C macro.
21311 (vec_nmsub): Remove extra parens around argument names in C macro.
21312 (vec_packpx): Add missing parens in C macro.
21313
21314 2004-07-22 Paolo Bonzini <bonzini@gnu.org>
21315
21316 * machmode.def: Remove vector modes.
21317 * config/alpha/alpha-modes.def: Add supported vector modes.
21318 * config/arm/arm-modes.def: Likewise.
21319 * config/frv/frv-modes.def: Likewise.
21320 * config/i386/i386-modes.def: Likewise.
21321 * config/rs6000/rs6000-modes.def: Likewise.
21322 * config/sh/sh-modes.def: Likewise.
21323
21324 2004-07-23 Matthias Klose <doko@debian.org>
21325
21326 * intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
21327 * configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
21328 * config.h: Regenerate.
21329 * configure: Likewise.
21330
21331 2004-07-22 Mark Mitchell <mark@codesourcery.com>
21332
21333 * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
21334 generated SYMBOL_REFs for labels.
21335 * config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
21336 Change prototype.
21337 (machopic_stub_name): Remove.
21338 (machopic_indirection_name): New function.
21339 (machopic_mcount_stub_name): Likewise.
21340 (machopic_classify_name): Remove.
21341 (machopic_function_base_sym): New function.
21342 (machpoic_classify_symbol): Likewise.
21343 (machopic_classify_ident): Remove.
21344 (machopic_define_ident): Likewise.
21345 (machopic_define_name): Likewise.
21346 (machopic_name_defined_p): Likewise.
21347 (machopic_ident_defined_p): Likewise.
21348 (darwin_strip_name_encoding): Likewise.
21349 (machopic_define_symbol): New function.
21350 * config/darwin.c (hashtab.h): Include.
21351 (machopic_defined_list): Remove.
21352 (machopic_classify_ident): Likewise.
21353 (machopic_classify_name): Likewise.
21354 (machopic_ident_defined_p): Likewise.
21355 (machopic_define_ident): Likewise.
21356 (machopic_define_name): Likewise.
21357 (machopic_symbol_defined_p): New function.
21358 (machopic_classify_symbol): Likewise.
21359 (machopic_data_defined_p): Use machopic_classify_symbol.
21360 (machopic_define_symbol): New function.
21361 (machopic_function_base_sym): New function.
21362 (machopic_non_lazy_pointers): Remove.
21363 (machopic_non_lazy_ptr_name): Likewise.
21364 (machopic_stubs): Likewise.
21365 (machopic_stub_name): Likewise.
21366 (NON_LAZY_POINTER_SUFFIX): New macro.
21367 (STUB_SUFFIX): Likewise.
21368 (machopic_indirection): New structure.
21369 (machopic_indirections): New variable.
21370 (machopic_indirection_hash): New function.
21371 (machopic_indirection_eq): Likewise.
21372 (machopic_indirection_name): Likewise.
21373 (machopic_mcount_stub_name): New function.
21374 (machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
21375 hash table.
21376 (machopic_indirect_data_reference): Rework to use new functions.
21377 (machopic_indirect_call_target): Likewise.
21378 (machopic_legitimize_pic_address): Likewise.
21379 (machopic_output_indirection): New function.
21380 (machopic_finish): Use it.
21381 (machopic_operand_p): Rework to use new functions.
21382 (darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
21383 (darwin_strip_name_encoding): Remove.
21384 (update_non_lazy_ptrs): Remove.
21385 (update_stubs): Likewise.
21386 (darwin_non_lazy_pcrel): Use new functions.
21387 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
21388 (ASM_OUTPUT_LABELREF): Likewise.
21389 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
21390 (MACHO_SYMBOL_FLAG_VARIABLE): New macro.
21391 (MACHO_SYMBOL_FLAG_DEFINED): Likewise.
21392 (TARGET_STRIP_NAME_ENCODING): Do not use
21393 darwin_strip_name_encoding.
21394 (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
21395 darwin_strip_name_encoding.
21396 * config/i386/darwin.h (FUNCTION_PROFILER): Use
21397 machopic_mcount_stub_name.
21398 * config/i386/i386.c (x86_output_mi_thunk): Use
21399 machopic_indirection_name, not machopic_stub_name.
21400 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
21401 machopic_function_base_sym.
21402 (print_operand): Use machopic_classify_symbol.
21403 (rs6000_emit_prologue): Use machopic_function_base_sym.
21404 (output_profile_hook): Do not use machopic_stub_name.
21405 (macho_branch_isalnds): Do not use darwin_strip_name_encoding.
21406
21407 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
21408
21409 PR c/7284
21410 * fold-const.c (extract_muldiv_1): Do not treat signed left shift
21411 as multiplication.
21412
21413 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
21414
21415 * doc/implement-c.texi: New file.
21416 * doc/extend.texi (C Implementation): Move to there.
21417 * doc/gcc.texi: Include implement-c.texi.
21418 * Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.
21419
21420 2004-07-22 Jason Merrill <jason@redhat.com>
21421
21422 * integrate.c (copy_decl_for_inlining): Remove invisible reference
21423 handling.
21424 * tree-inline.c (setup_one_parameter): Likewise.
21425
21426 2004-07-22 Brian Booth <bbooth@redhat.com>
21427
21428 * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
21429 (substitute_and_fold): Propigate into VUSE operands when possible.
21430 (visit_phi_node): Handle UNKNOWN_VAL latticevalue.
21431 (cp_lattice_meet): Handle merging of latticevalues when
21432 UNKNOWN_VAL is present.
21433 (visit_stmt): Visit assignments with V_MUST_DEFs.
21434 (visit_assignment): Gather ccp information for V_MUST_DEF operands.
21435 (ccp_fold): Deal with RHS' that are constant and virtual.
21436 (evaluate_stmt): Handle UNKNOWN_VAL likely values.
21437 (dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
21438 (initialize): Mark statements with V_MUST_DEFs as VARYING only if the
21439 V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
21440 computing immediate uses.
21441 (set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
21442 transition.
21443 (replace_vuse_in): New function.
21444 (likely_value): Add check of vuse operands.
21445 (get_default_value): Set the default value of virtually defined
21446 variables to UKNOWN_VAL instead of VARYING.
21447
21448 2004-07-22 Richard Henderson <rth@redhat.com>
21449
21450 * expr.c (emit_push_insn): Don't use set_mem_attributes.
21451
21452 2004-07-22 Richard Henderson <rth@redhat.com>
21453
21454 * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
21455 variables due to conditional compilation.
21456
21457 2004-07-22 Diego Novillo <dnovillo@redhat.com>
21458
21459 * tree-into-ssa.c (set_livein_block): Fix typo in comment.
21460 (rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
21461 Release SSA names that have been re-renamed.
21462 * tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
21463 variable.
21464 * tree-ssa-alias.c (init_alias_info): If aliases have been
21465 computed before, clear existing alias information.
21466 (create_name_tags): Do no fixup PT_ANYTHING pointers.
21467 If the new name tag for a pointer is different than the one it
21468 had before, mark the old tag for renaming.
21469 (replace_may_alias): New function.
21470 (group_aliases): Call it.
21471 (setup_pointers_and_addressables): Always call get_tmt_for.
21472 (maybe_create_global_var): Don't create .GLOBAL_VAR more than
21473 once.
21474 (set_pt_anything): New local function.
21475 (set_pt_malloc): New local function.
21476 (merge_pointed_to_info): Don't merge pointed-to variables from
21477 the original pointer if the destination is pointing to an
21478 unknown location.
21479 (add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
21480 (add_pointed_to_var): Do not add a variable to the points-to
21481 set if the pointer is already pointing to anywhere.
21482 (collect_points_to_info_r): If the defining statement is a PHI
21483 node, only merge pointed-to information if the argument has
21484 already been visited.
21485 (get_tmt_for): Only create a new tag if the pointer didn't
21486 have one already.
21487 (dump_alias_info): Emit more information.
21488 (dump_points_to_info_for): Likewise.
21489 * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
21490 try to get the annotation of an SSA_NAME.
21491 * tree-ssa-operands.c (add_stmt_operand): Only check for empty
21492 alias sets when checking is enabled.
21493 * tree-ssa-pre.c (need_eh_cleanup): New local variable.
21494 (eliminate): Mark basic blocks that will need
21495 EH information cleaned up.
21496 (init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
21497 predecessor.
21498 Initialize need_eh_cleanup.
21499 (fini_pre): Call tree_purge_all_dead_eh_edges and
21500 cleanup_tree_cfg if needed.
21501 Free need_eh_cleanup.
21502 * tree-ssa.c (verify_ssa_name): New function.
21503 (verify_def): Call it.
21504 Re-arrange to avoid printing too many error messages.
21505 (verify_use): Likewise.
21506 (verify_phi_args): Likewise.
21507 (verify_flow_insensitive_alias_info): New function.
21508 (verify_flow_sensitive_alias_info): New function.
21509 (verify_alias_info): New function.
21510 (verify_ssa): Call verify_alias_info.
21511 Clear TREE_VISITED on all the SSA_NAMEs before scanning the
21512 program.
21513 Re-arrange to avoid printing too many error messages.
21514 * tree-ssanames.c (make_ssa_name): Clear
21515 SSA_NAME_IN_FREE_LIST.
21516 (release_ssa_name): Never release a default definition.
21517 (release_defs): New function.
21518 * tree.h: Declare it.
21519 * tree-ssa-dce.c (remove_dead_stmt): Call it.
21520
21521 2004-07-22 Diego Novillo <dnovillo@redhat.com>
21522
21523 * tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
21524 If true, do a depth-first search. Do a breadht-first search,
21525 otherwise.
21526 (walk_use_def_chains): Add new argument IS_DFS.
21527 Update all users.
21528 * tree-flow.h (walk_use_def_chains): Update prototype.
21529
21530 2004-07-22 Hans-Peter Nilsson <hp@axis.com>
21531
21532 * config/cris/cris.md: Tweak formatting.
21533 (asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
21534 (mover2side, moverside, movemside, movei, op3, andu): Replace
21535 live define_peephole:s with define_peephole2 near-equivalents.
21536 Delete the rest.
21537 ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap". Match all
21538 word-size modes.
21539 ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
21540 Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
21541 "*mov_sidesi_mem" respectively.
21542
21543 2004-07-22 Paolo Bonzini <bonzini@gnu.org>
21544
21545 * tree-cfg.c (gimplify_val): Move from tree-complex.c.
21546 (gimplify_build1): Move from tree-complex.c do_unop.
21547 (gimplify_build2): Move from tree-complex.c do_binop.
21548 (gimplify_build3): New.
21549 * tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
21550 Adjust throughout to call the functions above.
21551 * tree-flow.h: Declare the functions above.
21552 * tree-nested.c (gimplify_val): Rename to...
21553 (tsi_gimplify_val): ... this.
21554
21555 * Makefile.in (tree_complex.o): Update dependencies.
21556 (stor-layout.o): Depend on regs.h.
21557 * c-common.c (handle_vector_size_attribute): Update for
21558 vector types without corresponding vector modes.
21559 * expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
21560 a corresponding vector mode is not available.
21561 * print-tree.c (print_node): Print nunits for vector types
21562 * regclass.c (have_regs_of_mode): New.
21563 (init_reg_sets_1): Initialize it and use it instead
21564 of allocatable_regs_of_mode.
21565 * regs.h (have_regs_of_mode): Declare it.
21566 * stor-layout.c (layout_type): Pick a mode for vector types.
21567 * tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
21568 build_replicated_const, do_unop, do_binop, do_plus_minus,
21569 do_negate, expand_vector_piecewise, expand_vector_parallel,
21570 expand_vector_addition, expand_vector_operations_1,
21571 expand_vector_operations, tree_lower_operations,
21572 pass_lower_vector_ssa, pass_pre_expand): New.
21573 (expand_complex_operations, pass_lower_complex): Remove.
21574 * tree-optimize.c (init_tree_optimization_passes): Adjust
21575 pass ordering for changes in tree-complex.c.
21576 * tree-pass.h: Declare new passes.
21577 * tree.c (finish_vector_type): Remove.
21578 (make_vector_type): New.
21579 (build_vector_type_for_mode, build_vector_type): Rewritten.
21580 * tree.def (VECTOR_TYPE): Document where the number of
21581 subparts is stored.
21582 * tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
21583 (make_vector): Remove declaration.
21584
21585 2004-07-21 Richard Henderson <rth@redhat.com>
21586
21587 * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
21588 TREE_THIS_VOLATILE, may_aliases, or optimization level.
21589 (remove_useless_vars): Dump debugging info.
21590 (expand_used_vars): Move ...
21591 * cfgexpand.c (expand_used_vars): ... here. Make static.
21592 * tree-flow-inline.h (set_is_used): New.
21593 (set_default_def): Use get_var_ann.
21594 * tree-flow.h: Update decls.
21595 * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
21596 (create_ssa_var_map): Use it.
21597 * tree-ssa.c (set_is_used): Remove.
21598
21599 2004-07-22 Ben Elliston <bje@au.ibm.com>
21600
21601 * gdbinit.in: Set a breakpoint on internal_error.
21602
21603 2004-07-21 Richard Henderson <rth@redhat.com>
21604
21605 * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
21606 to create a new basic block.
21607
21608 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
21609
21610 PR c/15052
21611 * c-decl.c (grokdeclarator): Only pedwarn for qualified void
21612 return type on function definitions. Move other warnings for
21613 qualified return type to -Wreturn-type. Do not condition any such
21614 warnings on -pedantic. Update comments.
21615 (start_function): Only copy function type from previous prototype
21616 declaration if return types are compatible.
21617 * c-typeck.c (function_types_compatible_p): Don't condition
21618 warning for incompatibility of volatile qualifiers on the return
21619 type on -pedantic. Update comment.
21620 * doc/invoke.texi (-Wreturn-type, -Wextra): Update.
21621
21622 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
21623
21624 * c-typeck.c (set_init_index): Require designator to be of integer
21625 type.
21626
21627 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
21628
21629 PR c/11250
21630 * c-parse.in (init): Change to exprtype.
21631 (primary): Set original_code for STRING to STRING_CST.
21632 Call maybe_warn_string_init for compound literals.
21633 (initdcl, notype_initdcl): Call maybe_warn_string_init.
21634 (initval): Update.
21635 * c-tree.h (maybe_warn_string_init): New.
21636 (pop_init_level, process_init_element): Use struct c_expr.
21637 (struct c_expr): Update comment.
21638 * c-typeck.c (maybe_warn_string_init): New function.
21639 (digest_init): Call it. Additional parameter strict_string. All
21640 callers changed.
21641 (output_init_element): Likewise.
21642 (struct constructor_stack): Use struct c_expr for
21643 replacement_value.
21644 (really_start_incremental_init, push_init_level): Update.
21645 (pop_init_level): Update. Return struct c_expr.
21646 (process_init_level): Update. Take struct c_expr argument.
21647
21648 2004-07-21 David S. Miller <davem@nuts.davemloft.net>
21649
21650 * config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
21651 commit.
21652
21653 2004-07-21 Eric Christopher <echristo@redhat.com>
21654
21655 * builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
21656 removal.
21657 * c-decl.c (pop_scope): Ditto.
21658 * calls.c (expand_call): Remove call to current_nesting_level,
21659 update comment accordingly. Remove calls to expand_start_target_temps
21660 and expand_end_target_temps.
21661 * cfgexpand.c (construct_init_block): Remove call to
21662 expand_start_bindings_and_block.
21663 (construct_exit_block): Remove call to expand_end_bindings.
21664 * expr.c (safe_from_p): Remove BIND_EXPR handling.
21665 (expand_expr_real_1): Ditto. Fix formatting.
21666 (expand_vars): Delete.
21667 * stmt.c (POPSTACK): Remove block_stack.
21668 (stmt_status): Remove x_block_stack.
21669 (block_stack): Delete.
21670 (expand_start_bindings_and_block): Ditto.
21671 (expand_start_target_temps): Ditto.
21672 (expand_end_target_temps): Ditto.
21673 (current_nesting_level): Ditto.
21674 (warn_about_unused_variables): Ditto.
21675 (expand_end_bindings): Ditto.
21676 * tree.h: Remove declarations for above.
21677
21678 2004-07-21 Steven Bosscher <stevenb@suse.de>
21679
21680 * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
21681 * rtl.c (note_insn_name): Likewise.
21682 * print-rtl.c (print_rtx): Don't print it.
21683 * cfgrtl.h (can_delete_note_p): Don't handle it.
21684 (rtl_delete_block): Likewise.
21685 * passes.c (rest_of_handle_guess_branch_prob): Remove.
21686 (rest_of_compilation): Don't call it.
21687 * predict.c (process_note_predictions, process_note_prediction,
21688 note_prediction_to_br_prob): Remove.
21689 * basic-block.c (note_prediction_to_br_prob): Remove prototype.
21690 * stmt.c (return_prediction): Remove.
21691 (expand_value_return): Don't call it. Don't add prediction
21692 notes for return statements.
21693
21694 2004-07-21 Josef Zlomek <zlomekj@suse.cz>
21695
21696 * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
21697 once.
21698
21699 2004-07-21 Paolo Bonzini <bonzini@gnu.org>
21700
21701 * c-common.c (vector_types_convertible_p): Use vector types'
21702 TYPE_SIZE and TREE_TYPE instead of their mode.
21703 * convert.c (convert_to_integer): Likewise.
21704 (convert_to_vector): Likewise.
21705 * fold-const.c (fold_convert): Likewise.
21706 * varasm.c (output_constant): Likewise.
21707 * expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
21708 Allow a VECTOR_TYPE initializer to be made of several vectors.
21709 For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
21710 of cleared and need_to_clear, and use fold_convert.
21711 * c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
21712 integer vectors.
21713
21714 2004-07-20 Richard Henderson <rth@redhat.com>
21715
21716 * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
21717 (expand_gimple_basic_block): out from here. Renamed from expand_block.
21718
21719 2004-07-20 David S. Miller <davem@nuts.davemloft.net>
21720
21721 * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
21722 enormous cost if not TARGET_HARD_MUL.
21723
21724 2004-07-20 Andrew Pinski <apinski@apple.com>
21725
21726 PR target/16557
21727 * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
21728 (ASM_SPEC): here.
21729
21730 2004-07-21 Paul brook <paul@codesourcery.com>
21731
21732 * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
21733
21734 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21735
21736 * fold-const.c (operand_equal_p): Temporarily support NULL args.
21737 (operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
21738 (operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.
21739
21740 2004-07-20 Zack Weinberg <zack@codesourcery.com>
21741
21742 * rtl.h (plus_constant): Delete.
21743 (plus_constant_wide): Rename to plus_constant.
21744 (plus_constant_for_output_wide): Delete vestigial prototype.
21745 (GEN_INT): Remove unnecessary cast.
21746 * tree.h (build_int_2, size_int_type): Delete.
21747 (build_int_2_wide): Rename to build_int_2.
21748 (size_int_wide): Rename to size_int_kind.
21749 (size_int_type_wide): Rename to size_int_type.
21750 (size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
21751 Remove unnecessary cast.
21752 * tree.c (build_int_2_wide): Rename build_int_2; update comment.
21753 * explow.c (plus_constant_wide): Rename plus_constant; update comment.
21754 * fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
21755 (size_int_type_wide): Rename size_int_type.
21756 (int_const_binop): Use size_int_type.
21757 * c-lex.c (interpret_integer): Use build_int_2.
21758 * final.c (split_double): Remove unnecessary casts.
21759 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.
21760
21761 2004-07-20 Richard Henderson <rth@redhat.com>
21762
21763 * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
21764 (gimplify_compound_lval): Use is_gimple_tmp_reg.
21765 * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
21766 (is_gimple_tmp_reg): New.
21767 * tree-gimple.h (is_gimple_tmp_reg): Declare.
21768
21769 2004-07-20 Richard Henderson <rth@redhat.com>
21770
21771 * tree-pretty-print.c (dump_generic_node): Dump
21772 CALL_EXPR_HAS_RETURN_SLOT_ADDR.
21773
21774 2004-07-20 Frank Ch. Eigler <fche@redhat.com>
21775
21776 * tree-mudflap.c (mf_set_options_fndecl): New tree.
21777 (mudflap_init): Set it.
21778 (mudflap_register_call): Remove __mf_init call.
21779 (mudflap_finish_file): Emit call to __mf_init here. Emit a call to
21780 to pass "-ignore-reads" option to libmudflap if needed.
21781
21782 2004-07-20 John David Anglin <dava.anglin@nrc-cnrc.gc.ca>
21783
21784 PR c++/14607
21785 * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
21786 (MAKE_DECL_ONE_ONLY): Undefine.
21787 * pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
21788 readonly_data, one_only_data_section, forget_section): New prototypes.
21789 * pa.c (pa_init_machine_status, som_text_section_asm_op): New
21790 functions.
21791 (pa_select_section): Add one-only (COMDAT) support.
21792 * pa.h (struct machine_function): Define.
21793 * som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
21794 (TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
21795 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
21796 ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
21797 ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
21798 (EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
21799 (EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
21800 (READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
21801 ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
21802 for EXTRA_SECTION_FUNCTIONS.
21803 * doc/install.texi: Update binutils requirements.
21804
21805 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
21806
21807 * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
21808 VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
21809 VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
21810 size_t.
21811 (struct VEC): Use unsigned for num and alloc.
21812 * vec.c (struct vec_prefix): Likewise.
21813 (vec_o_reserve): Adjust.
21814
21815 * dbxout.c (dbxout_type): Fix printf format.
21816
21817 * tree.h (binfo_member): Remove.
21818 * tree.c (binfo_member): Remove.
21819
21820 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
21821
21822 * tree.h: Include vec.h
21823 (DEF_VEC_P(tree)): New type.
21824 (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): Adjust.
21825 (BINFO_BASE_APPEND, BINFO_BASE_ITERATE): New.
21826 (BINFO_LANG_SLOT): Remove.
21827 (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): New.
21828 (struct tree_binfo): Turn base_binfos into a trailing
21829 VEC(tree). Add vtt_subvtt, vtt_vptr, primary fields.
21830 (binfo_lang_slots): Remove.
21831 * tree.c (binfo_lang_slots): Remove.
21832 (make_tree_binfo_stat): Take a base binfo count, not a
21833 lang slot count. Adjust.
21834 * Makefile.in (TREE_H): Add vec.h
21835 * alias.c (record_component_aliases): Adjust BINFO access.
21836 * dbxout.c (dbxout_type): Likewise.
21837 * dwarf2out.c (gen_member_die): Likewise.
21838 * sdbout.c (sdbout_one_type): Likewise.
21839 * tree-dump.c (deque_and_dump): Likewise.
21840 * config/i386/i386.c (classify_argument,
21841 contains_128bit_aligned_vector_p): Likewise.
21842 * config/sh/symbian.c (symbian_export_vtable_and_rtti_p): Likewise.
21843 * doc/c-tree.texi (Classes): Update BINFO documentation.
21844
21845 2004-07-20 Steven Bosscher <stevenb@suse.de>
21846
21847 * c-common.h (check_case_value): Remove prototype.
21848 (c_add_case_label): Adjust prototype.
21849 * c-common.c (check_case_value): Make static.
21850 (check_case_bounds): New function.
21851 (c_add_case_label): Use it. Take new argument orig_type.
21852 * c-typeck.c (struct c_switch): New orig_type field.
21853 (c_start_case): Set it.
21854 (do_case): Pass it to c_add_case_label.
21855 * expr.c (expand_expr_real_1): Don't warn for out-of-bounds
21856 cases from here. Add the labels in reverse order.
21857 * stmt.c (struct case_node): Adjust comment. Remove balance field.
21858 (add_case_node): Return nothing, don't check for duplicate cases.
21859 Insert new case nodes in a list, not in an AVL tree.
21860 (expand_end_case_type): Don't turn a case tree into a case list.
21861 (case_tree2list): Remove.
21862 * tree.h (add_case_node): Adjust prototype.
21863
21864 2004-07-19 Paolo Bonzini <bonzini@gnu.org>
21865
21866 * genattr.c (struct range, struct function_unit,
21867 write_units, extend_range, init_range): Remove them.
21868 (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
21869 Output "#define INSN_SCHEDULING" here.
21870 * genattrtab.c (struct range, struct function_unit_op,
21871 struct function_unit, struct dimension, enum operator,
21872 operate_exp, expand_units, simplify_knowing,
21873 encode_units_mask, simplify_by_exploding,
21874 find_and_mark_used_attributes, unmark_used_attributes,
21875 add_values_to_cover, increment_current_value,
21876 test_for_current_value, simplify_with_current_value,
21877 simplify_with_current_value_aux, gen_unit,
21878 write_unit_name, write_function_unit_info,
21879 write_complex_function, write_toplevel_expr,
21880 find_single_value, extend_range): Remove.
21881 (write_attr_get): Do not handle common_av->value
21882 being an FFS.
21883 (struct attr_desc): Remove func_units_p and blockage_p.
21884 (write_attr_valueq): Do not handle them.
21885 (find_attr): Do not clear them.
21886 (make_internal_attr): Do not initialize them.
21887 (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
21888 * sched-vis.c (init_target_units, insn_print_units,
21889 init_block_visualization, print_block_visualization,
21890 visualize_scheduled_insns, visualize_no_unit,
21891 visualize_stall_cycles, visualize_alloc,
21892 visualize_free, target_units, get_visual_tbl_length,
21893 MAX_VISUAL_LINES, INSN_LEN, n_visual_lines,
21894 visual_tbl_line_length, visual_tbl, n_vis_no_unit,
21895 MAX_VISUAL_NO_UNIT, vis_no_unit): Remove.
21896 * haifa-sched.c (blockage_range, clear_units,
21897 schedule_unit, actual_hazard, potential_hazard,
21898 insn_unit, unit_last_insn, unit_tick,
21899 actual_hazard_this_instance, potential_hazard,
21900 schedule_unit, max_insn_queue_index_value): Remove.
21901 (MAX_INSN_QUEUE_INDEX): Removed, renamed throughout to
21902 max_insn_queue_index.
21903 * rtl.def (DEFINE_FUNCTION_UNIT): Remove.
21904 * doc/md.texi (Processor pipeline description): Remove
21905 references to old pipeline descriptions.
21906 (Automaton pipeline description): Merge with the above.
21907 (Old pipeline description, Comparison of the two descriptions):
21908 Remove.
21909
21910 * bt-load.c (migrate_btr_def): Remove references to
21911 use_pipeline_interface.
21912 * haifa-sched.c (insn_cost, schedule_insn,
21913 schedule_block, advance_one_cycle, sched_init,
21914 queue_to_ready, sched_finish): Likewise.
21915 * modulo-sched.c (sms_schedule, advance_one_cycle,
21916 ps_has_conflicts): Likewise.
21917 * sched-rgn.c (init_ready): Likewise.
21918 (debug_dependencies): Likewise, and remove an "if (1)".
21919 * target.h (use_dfa_pipeline_interface): Remove.
21920 * config/alpha/alpha.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21921 * config/arc/arc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21922 * config/arm/arm.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21923 * config/c4x/c4x.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21924 * config/frv/frv.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21925 * config/i386/i386.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21926 * config/ia64/ia64.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21927 * config/iq2000/iq2000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21928 * config/m32r/m32r.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21929 * config/mcore/mcore.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21930 * config/mips/mips.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21931 * config/pa/pa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21932 * config/rs6000/rs6000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21933 * config/s390/s390.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21934 * config/sh/sh.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21935 * config/sparc/sparc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21936 * config/v850/v850.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21937 * config/xtensa/xtensa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21938 * doc/tm.texi (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21939
21940 2004-07-19 Roger Sayle <roger@eyesopen.com>
21941
21942 * rtlanal.c (reg_set_p): Add check for regs_invalidated_by_call.
21943
21944 2004-07-19 Jeff Law <law@redhat.com>
21945
21946 * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): New.
21947 (get_eq_expr_value): Use it. Simplify slightly.
21948
21949 2004-07-19 Maciej W. Rozycki <macro@linux-mips.org>
21950
21951 * config/mips/mips.md (mulsidi3_32bit_r4000): Fix the clobber list.
21952 (umulsidi3_32bit_r4000): Likewise.
21953
21954 2004-07-19 Nathan Sidwell <nathan@codesourcery.com>
21955
21956 * vec.h: Propagate location information properly.
21957 (VEC_T_iterate): Add result pointer parameter.
21958 (VEC_T_space): New.
21959 (VEC_T_reserve): Use it.
21960
21961 2004-07-19 Daniel Jacobowitz <dan@debian.org>
21962
21963 * Makefile.in (c-format.o): Depend on c-format.h.
21964 * c-format.h: New file.
21965 (struct format_char_info): Add CHAIN member.
21966 * c-format.c: Move some types and constants to c-format.h.
21967 (format_type_error): Set to -1.
21968 (struct function_format_info): Use an int for format_type.
21969 (decode_format_type): Return an int. Return format_type_error
21970 on error.
21971 (print_char_table, asm_fprintf_char_table, gcc_diag_char_table)
21972 (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table)
21973 (scan_char_table, time_char_table, monetary_char_table): Initialize
21974 CHAIN to NULL.
21975 (n_format_types): New variable.
21976 (check_format_info_main): Handle CHAIN in format_char_info.
21977 (handle_format_attribute): Handle TARGET_FORMAT_TYPES and
21978 TARGET_N_FORMAT_TYPES.
21979 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
21980 (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c.
21981 * config/sol2-c.c: New file.
21982 * config/t-sol2: New file.
21983 * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define.
21984 * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine
21985 TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES.
21986
21987 * doc/extend.texi (Target Format Checks): New section.
21988 (Function Attributes): Mention it.
21989 * doc/invoke.texi: Mention target format checks.
21990 * doc/sourcebuild.texi: Mention target format checks.
21991 * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and
21992 TARGET_FORMAT_TYPES.
21993
21994 2004-07-19 Andreas Krebbel <krebbel1@de.ibm.com>
21995
21996 * config/s390/s390-protos.h (s390_return_address_offset): Prototype
21997 added.
21998 * config/s390/s390.c (regclass_map initializer): Register 35 added to
21999 ADDR_REGS.
22000 (load_multiple_operation, store_multiple_operation): Removed
22001 pointless sanity check.
22002 (s390_decompose_address): Added check for return_address_pointer_rtx.
22003 (s390_return_addr_rtx): Use return_address_pointer_rtx for count == 0.
22004 (s390_return_address_offset): New function.
22005 * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Increased to 36.
22006 (FRAME_REGNO_P): Added check for register 35.
22007 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
22008 REG_ALLOC_ORDER): Appended entry for register 35.
22009 (REG_CLASS_CONTENTS): Adjusted class masks for register 35.
22010 (EH_RETURN_HANDLER_RTX): Use return_address_pointer_rtx.
22011 (RETURN_ADDRESS_POINTER_REGNUM): New macro.
22012 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Return address pointer
22013 is eliminable using stack pointer or hard frame pointer.
22014 (REGISTER_NAMES): Added name for register 35.
22015 * config/s390/s390.md ("load_multiple", "store_multiple"): Removed
22016 pointless sanity check.
22017
22018 2004-07-19 Roger Sayle <roger@eyesopen.com>
22019
22020 * fold-const.c (tree_expr_nonzero_p): Add function prototype.
22021 (fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
22022 fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
22023 (fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
22024 of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
22025 (fold_relational_const): Tidy up handling of floating point
22026 comparisons by calling real_compare. Remove tree_expr_nonzero_p
22027 transformation; fold_relational_const assumes constant operands.
22028
22029 2004-07-19 Gabriel Dos Reis <gdr@integrable-solution.net>
22030
22031 * doc/sourcebuild.texi: Add libcpp, now that CPP has its own
22032 directory.
22033
22034 2004-07-19 Joseph S. Myers <jsm@polyomino.org.uk>
22035
22036 * c-tree.h (struct c_expr): Define.
22037 (C_SET_EXP_ORIGINAL_CODE): Remove.
22038 (parser_build_binary_op, build_compound_expr): Update prototypes.
22039 * c-parse.in (%union): Add exprtype.
22040 (FUNC_NAME): Mark as ttype.
22041 (expr, expr_no_commas, cast_expr, unary_expr, primary): Change to
22042 exprtype.
22043 (expr): Update. Define directly in terms of expr_no_commas
22044 instead of using nonnull_exprlist.
22045 (nonnull_exprlist, unary_expr, cast_expr, expr_no_commas, primary,
22046 offsetof_member_designator, typespec_nonreserved_nonattr, init,
22047 initval, designator, component_declarator,
22048 component_notype_declarator, enumerator, array_declarator,
22049 condition, exexpr, switch_statement, stmt_nocomp, stmt,
22050 nonnull_asm_operands, ivar_declarator, receiver): Update. Don't
22051 set C_EXP_ORIGINAL_CODE. Use TREE_NO_WARNING for assignments
22052 where appropriate.
22053 * c-common.h (C_EXP_ORIGINAL_CODE): Remove.
22054 * c-common.c (c_common_truthvalue_conversion): Don't check
22055 C_EXP_ORIGINAL_CODE.
22056 * c-typeck.c (parser_build_binary_op): Use c_expr structures.
22057 Don't use C_EXP_ORIGINAL_CODE.
22058 (default_conversion, default_function_array_conversion): Don't use
22059 C_EXP_ORIGINAL_CODE. Preserve TREE_NO_WARNING.
22060 (internal_build_compound_expr): Merge into build_compound_expr.
22061 (build_compound_expr): Take two operands instead of a TREE_LIST.
22062 * objc/objc-act.c (get_super_receiver): Update calls to
22063 build_compound_expr.
22064
22065 2004-07-18 Paolo Bonzini <bonzini@gnu.org>
22066
22067 * config/sh/sh.c (sh_use_dfa_interface): Remove.
22068 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to
22069 hook_int_void_1.
22070 * config/sh/sh.md: Extract pipeline descriptions
22071 into separate files.
22072 * config/sh/sh1.md: New file, extracted from sh.md.
22073 * config/sh/sh4.md: New file, extracted from sh.md.
22074 * config/sh/shmedia.md: New file, extracted from sh.md
22075 and rewritten using new-style pipeline description.
22076
22077 2004-07-18 Zack Weinberg <zack@codesourcery.com>
22078
22079 * config/pa/pa.md: Delete the two remaining define_peephole
22080 patterns.
22081
22082 2004-07-18 Steven Bosscher <stevenb@suse.de>
22083 Joseph S. Myers <jsm@polyomino.org.uk>
22084
22085 * c-common.c (c_common_truthvalue_conversion): Don't warn if
22086 TREE_NO_WARNING is set.
22087
22088 2004-07-18 Roger Sayle <roger@eyesopen.com>
22089
22090 * builtins.c (simplify_builtin_memcmp, simplify_builtin_strcmp,
22091 simplify_builtin_strncmp): Delete.
22092 (fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
22093 Change argument to accept an arglist instead of an "exp". Assume
22094 that the return type is always integer_type_node. Copy missing
22095 transformations from their now obsolete simplify_builtin_*
22096 equivalents.
22097 (fold_builtin_1): Pass arglist instead of exp to fold_builtin_memcmp,
22098 fold_builtin_strcmp and fold_builtin_strncmp.
22099 (simplify_builtin): Call fold_builtin_memcmp, fold_builtin_strcmp
22100 and fold_builtin_strncmp instead of simplify_builtin_memcmp,
22101 simplify_builtin_strcmp and simplify_builtin_strncmp respectively.
22102
22103 2004-07-18 Daniel Jacobowitz <dan@debian.org>
22104
22105 * Makefile.in (tree-alias-common.o): Update dependencies.
22106
22107 2004-07-17 Sebastian Pop <pop@cri.ensmp.fr>
22108
22109 * cfgloop.c (flow_loop_nested_p): Fix comment.
22110
22111 2004-07-17 Jason Merrill <jason@redhat.com>
22112
22113 PR c++/16115
22114 * stor-layout.c (relayout_decl): New fn.
22115 * tree.h: Declare it.
22116 (DECL_BY_REFERENCE): New macro.
22117
22118 2004-07-17 Eric Botcazou <ebotcazou@act-europe.fr>
22119
22120 * libgcc2.c (__enable_execute_stack): New symbol.
22121 * libgcc-std.ver (GCC_3.4.2): New version. Inherit from GCC_3.4
22122 and declare __enable_execute_stack.
22123 * mklibgcc.in (lib2funcs): Add _enable_execute_stack.
22124 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): ANSIfy.
22125 * config/sol2.h (TRANSFER_FROM_TRAMPOLINE): Rename into
22126 ENABLE_EXECUTE_STACK.
22127 * config/alpha/alpha.c (alpha_initialize_trampoline): Conditionalize
22128 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
22129 * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Rename into
22130 ENABLE_EXECUTE_STACK.
22131 * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
22132 * config/i386/i386.c (x86_initialize_trampoline): Conditionalize
22133 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
22134 * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Rename into
22135 ENABLE_EXECUTE_STACK.
22136 * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
22137 * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
22138 * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
22139 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
22140 * config/sparc/sparc.c (sparc_initialize_trampoline): Conditionalize
22141 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
22142 (sparc64_initialize_trampoline): Likewise.
22143 * doc/tm.texi (trampolines): Add ENABLE_EXECUTE_STACK macro.
22144
22145 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
22146
22147 * langhooks.h (builtin_function): New langhook.
22148 * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New.
22149 (LANG_HOOKS_INITIALIZER): Update.
22150 * tree.h (builtin_function): Remove.
22151 * doc/tm.texi: Update.
22152 * c-tree.h (builtin_function): Declare.
22153 * c-common.c, config/alpha/alpha.c, config/arm/arm.c,
22154 config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c,
22155 config/ia64/ia64.c, config/iq2000/iq2000.c,
22156 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
22157 config/stormy16/stormy16.c: All callers of builtin_function
22158 changed.
22159
22160 2004-07-17 Andrew Pinski <pinskia@physics.uc.edu>
22161
22162 PR target/16556
22163 * config/i386/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
22164 Remove white space after the backslash.
22165
22166 2004-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
22167
22168 PR rtl-optimization/16294
22169 * resource.c (return_insn_p): New predicate.
22170 (mark_target_live_regs): Use it. Special-case return insns.
22171 (init_resource_info): Use it. Don't scan the epilogue past
22172 a return.
22173
22174 2004-07-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
22175
22176 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Do not
22177 destroy dominance information.
22178 * passes.c (rest_of_handle_loop2): Free dominance information.
22179 * tree-cfg.c (cleanup_tree_cfg): Remove unreachable blocks before
22180 jump threading.
22181 (thread_jumps): Update dominance information and remove unreachable
22182 blocks.
22183 * tree-ssa-phiopt.c (replace_phi_with_stmt): Update dominance
22184 information and remove the unreachable block.
22185
22186 2004-07-17 Graham Stott <graham.stott@btinternet.com>
22187
22188 * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
22189
22190 2004-07-17 Toon Moene <toon@moene.indiv.nluug.nl>
22191
22192 * doc/sourcebuild.texi: Remove libf2c entry.
22193
22194 2004-07-17 Paolo Bonzini <bonzini@gnu.org>
22195
22196 * config/i386/i386.md (movv16qi_internal): Fix typo.
22197
22198 2004-07-17 Steven Bosscher <stevenb@suse.de>
22199
22200 * final.c (final_scan_insn): Fix broken commit from previous
22201 patch.
22202
22203 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
22204
22205 * c-typeck.c (parser_build_binary_op): Condition warnings for
22206 X<=Y<=Z on -Wparentheses instead of -Wextra.
22207 * doc/invoke.texi: Update. Document that most of -Wparentheses is
22208 supported for C only.
22209
22210 2004-07-17 Steven Bosscher <stevenb@suse.de>
22211
22212 * cfgcleanup.c (try_simplify_condjump): Don't remove line
22213 notes to avoid unreachable code warnings.
22214 * toplev.c (backend_init): Don't emit line notes for
22215 unreachable code warnings.
22216
22217 * combine.c (distribute_notes): Don't distribute a
22218 REG_VTABLE_REF note.
22219 * final.c (final_scan_insn): Don't handle it.
22220 * rtl.c (reg_note_name): Remove it.
22221 * rtl.h (enum reg_node): Dito.
22222
22223 * emit-rtl.c (force_line_numbers, restore_line_number_status):
22224 Remove.
22225 * rtl.h (force_line_numbers, restore_line_number_status):
22226 Remove prototypes.
22227
22228 * stmt.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Move...
22229 * tree-eh.c (using_eh_for_cleanups_p): ...here. Make static.
22230 (using_eh_for_cleanups): Also moved here.
22231
22232 * expr.c (expand_expr_real_1) <CASE_LABEL_EXPR>: Die if we see one.
22233 <SWITCH_EXPR>: Die if we have a non-NULL SWITCH_BODY. Update calls
22234 to expand_start_case and add_case_node.
22235 * stmt.c (struct nesting): Cleanup unused fields condition_code,
22236 last_unconditional_cleanup, nominal_type, printname, and
22237 line_number_status.
22238 (struct fixup_goto): Remove.
22239 (struct stmt_status): Remove x_goto_fixup_chain field.
22240 (goto_fixup_chain): Remove.
22241 (strip_default_case_nodes, group_case_nodes, emit_jump_if_reachable,
22242 pushcase, pushcase_range): Remove.
22243 (expand_start_bindings_and_block): Don't set unused fields in
22244 the nesting stack.
22245 (expand_start_case, add_case_node): Cleanup unused formal arguments.
22246 (expand_end_case_type): Don't simplify the case-list. Use emit_jump
22247 instead of emit_jump_if_reachable.
22248 (emit_case_nodes): Likewise.
22249 * tree-cfg.c (group_case_labels, cleanup_dead_labels): No longer
22250 static.
22251 (update_eh_label): Work around left-over exception handing regions.
22252 * tree-flow.h (group_case_labels, cleanup_dead_labels): Add protos.
22253 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): New function.
22254 (pass_cleanup_cfg_post_optimizing): New pass.
22255 (init_tree_optimization_passes): Run the new pass after all
22256 optimizations.
22257 * tree.h (pushcase, pushcase_range): Remove prototypes.
22258 (expand_start_case, add_case_node): Update prototypes.
22259
22260 2004-07-16 Krister Walfridsson <cato@df.lth.se>
22261
22262 * tree-inline.c (estimate_num_insns_1): Correct increase of count.
22263
22264 2004-07-16 Richard Henderson <rth@redhat.com>
22265
22266 * builtins.c (std_expand_builtin_va_arg): Remove.
22267 (expand_builtin_va_arg): Remove.
22268 * expr.h: Don't declare them.
22269 * gimplify.c (mark_decls_volatile_r): Remove.
22270 (copy_if_shared_r): Don't call it.
22271 * target-def.h: Don't test EXPAND_BUILTIN_VA_ARG.
22272 * expr.c (expand_expr_real_1): Don't handle VA_ARG_EXPR.
22273 * gimple-low.c (lower_stmt): Likewise.
22274 * tree-cfg.c (cfg_remove_useless_stmts_bb): Likewise.
22275 * tree-gimple.c (is_gimple_tmp_rhs, is_gimple_stmt): Likewise.
22276 * tree-ssa-operands.c (get_expr_operands): Likewise.
22277 * doc/tm.texi (TARGET_GIMPLIFY_VA_ARG_EXPR): Don't mention
22278 EXPAND_BUILTIN_VA_ARG.
22279 * system.h (EXPAND_BUILTIN_VA_ARG): Poison.
22280 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/i386/i386.h,
22281 config/ia64/ia64.h, config/rs6000/rs6000.h, config/s390/s390.h,
22282 config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Remove.
22283
22284 2004-07-16 Daniel Berlin <dberlin@dberlin.org>
22285
22286 * tree-ssa-pre.c (insert_aux): Break out if we hit
22287 a critical edge.
22288
22289 2004-07-16 Richard Henderson <rth@redhat.com>
22290
22291 * basic-block.h (remove_fake_exit_edges): Declare.
22292 * cfganal.c (remove_fake_predecessors): Rename from
22293 remove_fake_successors; iterate over predecessors.
22294 (remove_fake_exit_edges): New.
22295 * cfgcleanup.c (try_optimize_cfg): Use it.
22296 * gcse.c (one_pre_gcse_pass, store_motion): Likewise.
22297 * predict.c (estimate_probability): Likewise.
22298 (tree_estimate_probability, note_prediction_to_br_prob): Likewise.
22299 * tree-cfg.c (make_edges): Likewise.
22300 * tree-ssa-pre.c (fini_pre): Likewise.
22301 * profile.c (instrument_edges): Don't remove_fake_edges.
22302 (branch_prob): Do it earlier here.
22303
22304 2004-07-16 Richard Henderson <rth@redhat.com>
22305
22306 * tree-ssa-operands.c (get_expr_operands): Fix 2004-07-15
22307 switchification wrt CONSTRUCTOR. Document the reason.
22308
22309 2004-07-16 Frank Ch. Eigler <fche@redhat.com>
22310
22311 * tree-mudflap.c (mf_file_function_line_tree): Correct typo
22312 that prevented descriptive __mf_check source location strings.
22313
22314 2004-07-16 Richard Henderson <rth@redhat.com>
22315
22316 * tree-def (WITH_SIZE_EXPR): New.
22317 * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
22318 * expr.c (expand_expr_real_1): Likewise.
22319 * gimplify.c (maybe_with_size_expr): New.
22320 (gimplify_arg, gimplify_modify_expr): Use it.
22321 (gimplify_modify_expr_to_memcpy): Take size parameter.
22322 (gimplify_modify_expr_to_memset): Likewise.
22323 (gimplify_expr): Handle WITH_SIZE_EXPR.
22324 * tree-alias-common.c (find_func_aliases): Likewise.
22325 * tree-eh.c (tree_could_trap_p): Likewise.
22326 (tree_could_throw_p): Likewise.
22327 * tree-gimple.c (is_gimple_lvalue): Likewise.
22328 (get_call_expr_in): Likewise.
22329 * tree-inline.c (estimate_num_insns_1): Likewise.
22330 (expand_calls_inline): Likewise.
22331 * tree-nested.c (convert_call_expr): Likewise.
22332 * tree-pretty-print.c (dump_generic_node): Likewise.
22333 * tree-sra.c (sra_walk_expr): Likewise.
22334 * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
22335 * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
22336 * tree-ssa-operands.c (get_expr_operands): Likewise.
22337 * tree-tailcall.c (find_tail_calls): Likewise.
22338
22339 * calls.c (expand_call): Reset old_stack_allocated after
22340 calling emit_stack_restore.
22341
22342 2004-07-16 Richard Henderson <rth@redhat.com>
22343
22344 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING,
22345 lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
22346 * langhooks.c (lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
22347 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
22348 copy_res_decl_for_inlining.
22349
22350 * tree-inline.c (declare_return_variable): New modify_dest argument.
22351 Use it as the return value, when possible or manditory. Handle
22352 TREE_ADDRESSABLE types.
22353 (expand_call_inline): Extract MODIFY_EXPR lhs for call. Simplify
22354 replacement of CALL_EXPR.
22355
22356 2004-07-16 Richard Henderson <rth@redhat.com>
22357
22358 * tree-flow.h (struct var_ann_d): Remove has_hidden_use.
22359 * gimple-low.c (expand_var_p): Don't check it.
22360 * tree-ssa-alias.c (setup_pointers_and_addressables): Likewise.
22361 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
22362 * tree-ssa-operands.c (add_stmt_operand): Likewise.
22363 * tree-dfa.c (find_hidden_use_vars, find_hidden_use_vars_r): Kill.
22364 (find_referenced_vars): Don't call them.
22365 * tree-flow-inline.h (has_hidden_use, set_has_hidden_use): Kill.
22366
22367 2004-07-16 Richard Henderson <rth@redhat.com>
22368
22369 * function.c (pass_by_reference): True for all variable sized types.
22370
22371 2004-07-16 Sebastian Pop <pop@cri.ensmp.fr>
22372
22373 * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
22374 * tree-pretty-print.c: Include tree-chrec.h.
22375 (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
22376 and POLYNOMIAL_CHREC nodes.
22377
22378 2004-07-16 Steve Ellcey <sje@cup.hp.com>
22379
22380 * builtins.c (expand_builtin_stpcpy): Do not create temporary
22381 reg with VOIDmode.
22382
22383 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
22384
22385 * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
22386
22387 2004-07-16 Andreas Krebbel <krebbel1@de.ibm.com>
22388
22389 * config/s390/s390.md: Changed every occurence of BASE_REGISTER
22390 to BASE_REGNUM.
22391 * config/s390/s390.c: Likewise.
22392 * config/s390/s390.h: Likewise.
22393
22394 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22395
22396 * config/mips/mips.md (addsi3, adddi3): Remove special handling
22397 of $sp adds. Remove REGNO checks from mips16 patterns.
22398
22399 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22400
22401 * config/mips/mips.md: Delete outdated comment.
22402
22403 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22404
22405 * config/mips/mips.c (get_float_compare_codes): Delete.
22406 (mips_emit_compare): New function, mostly extracted from
22407 get_float_compare_codes and gen_conditional_branch.
22408 (gen_conditional_branch, gen_conditional_move): Use it.
22409
22410 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
22411
22412 * genautomata.c (add_vect): Speedup by using integers as
22413 bit-vectors for walking through the comb_vect and finding
22414 a match.
22415
22416 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22417
22418 * config/mips/mips.c (mips_zero_if_equal): Only use XORs if the second
22419 operand is an uns_arith_operand; use subtraction otherwise.
22420 * config/mips/mips.md (cmpsi, cmpdi): Allow any nonmemory_operand,
22421 not just arith_operands.
22422
22423 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22424
22425 * config/mips/mips-protos.h (gen_int_relational): Delete.
22426 (mips_emit_scc): Declare.
22427 * config/mips/mips.c (internal_test): Delete.
22428 (sle_operand, sleu_operand): New functions.
22429 (map_test_to_internal_test, gen_int_relational): Delete.
22430 (mips_emit_binary, mips_relational_operand_ok_p)
22431 (mips_emit_int_relational, mips_zero_if_equal)
22432 (mips_emit_scc): New functions.
22433 (gen_conditional_branch): Rework to use mips_emit_int_relational.
22434 * config/mips/mips.h (PREDICATE_CODES): Add sle_operand and
22435 sleu_operand.
22436 * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
22437 (sltu, sleu): Use mips_emit_scc.
22438 (*sge_[sd]i, *sgeu_[sd]i): New patterns.
22439 (*sle_[sd]i, *sle_[sd]i_mips16): Use sle_operand.
22440 (*sleu_[sd]i, *sleu_[sd]i_mips16): Use sleu_operand.
22441
22442 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22443
22444 * config/mips/mips.md (*sgt_di_mips16): Fix destination constraint.
22445
22446 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22447
22448 * config/mips/mips.md (*seq_[sd]i): Renamed from seq_[sd]i_zero.
22449 (*sne_[sd]i): Likewise sne_[sd]i_zero.
22450 (*sgt_[sd]i): ...and sgt_[sd]i.
22451 (*slt_[sd]i): ...and slt_[sd]i.
22452 (*sgtu_[sd]i): ...and sgtu_[sd]i.
22453 (*sltu_[sd]i): ...and sltu_[sd]i.
22454 (*sleu_[sd]i): ...and sleu_[sd]i_const.
22455 Name previously unnamed mips16 patterns. Formatting fixes.
22456
22457 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22458
22459 * config/mips/mips.c (cmp_operands): Renamed from branch_cmp.
22460 (branch_type): Delete.
22461 (gen_conditional_branch, gen_conditional_move)
22462 (mips_gen_conditional_trap): Update after name change. Get the
22463 comparison mode from cmp_operands[0].
22464 * config/mips/mips.h (cmp_type, branch_type): Delete.
22465 (cmp_operands): Renamed from branch_cmp.
22466 * config/mips/mips.md (cmpsi, cmpdi, cmpsf, cmpdf): Update after
22467 name change. Don't set branch_type.
22468 (seq, sne, sgt, sge, slt, sle, sgtu, sgeu, sltu, sleu): Check the
22469 mode class of cmp_operands[0] rather than branch_type. Update after
22470 name change.
22471
22472 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22473
22474 * config/mips/mips.c (mips_rtx_costs): In mips16 code, set the cost
22475 of 0...255 to 0 when inside a SET.
22476
22477 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22478
22479 * config/mips/mips.md: Remove mips16 define_peepholes.
22480
22481 2004-07-16 Daniel Berlin <dberlin@dberlin.org>
22482
22483 * tree-ssa-pre.c (init_pre): Connect infinite loops to exit.
22484 (fini_pre): Remove fake edges.
22485
22486 2004-07-15 Richard Henderson <rth@redhat.com>
22487
22488 * tree-ssa-operands.c (get_expr_operands): Use a switch. Split out...
22489 (get_indirect_ref_operands, get_call_expr_operands): ... these.
22490
22491 2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
22492
22493 * vec.h (VEC_address): New function.
22494
22495 2004-07-14 Jason Merrill <jason@redhat.com>
22496
22497 PR middle-end/15885
22498 * gimplify.c (gimplify_arg): New fn, split out from...
22499 (gimplify_call_expr): Here. Special-case BUILT_IN_VA_START.
22500
22501 2004-07-15 Roman Zippel <zippel@linux-m68k.org>
22502
22503 * config/m68k/m68k.c (output_move_qimode): Abort on an attempt to
22504 generate code which is generated by pushqi1 now
22505 * config/m68k/m68k.h (MOVE_BY_PIECES_P): Remove.
22506
22507 2004-07-15 Roman Zippel <zippel@linux-m68k.org>
22508
22509 * combine.c (simplify_set): match the mode of the constant 0 with
22510 the tested operand to match the compare behaviour and the
22511 simplify_relational_operation() expectation.
22512
22513 2004-07-15 Aldy Hernandez <aldyh@redhat.com>
22514
22515 * config/rs6000/rs6000.md ("bunordered"): Disable for e500.
22516 ("bordered"): Same.
22517
22518 2004-07-15 Aldy Hernandez <aldyh@redhat.com>
22519
22520 * config/rs6000/rs6000.md ("*cceq_ior_compare"): Allow
22521 unconditionally.
22522 * config/rs6000/spe.md ("e500_cceq_ior_compare"): Remove.
22523
22524 2004-07-15 Richard Sandiford <rsandifo@redhat.com>
22525
22526 * config/mips/mips.c (mips_adjust_insn_length): Fix handling of
22527 calls in mips16 code.
22528
22529 2004-07-15 Richard Sandiford <rsandifo@redhat.com>
22530
22531 * config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
22532 the destination of the li as well as for the neg.
22533
22534 2004-07-15 Frank Ch. Eigler <fche@redhat.com>
22535
22536 g++/15861
22537 * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument.
22538 * cgraph.h: Update declaration.
22539 * c-decl.c (build_cdtor): Update call with default priority.
22540 * coverage.c (create_coverage): Ditto.
22541 * tree-mudflap.c (mf_init_fndecl): New tree.
22542 (mudflap_init): Set it.
22543 (mudflap_register_call): Arrange to call __mf_init before the first
22544 __mf_register call.
22545 (mudflap_finish_file): Mark the mudflap static initializer as extra
22546 high priority, to beat all C++ static constructors.
22547
22548 2004-07-15 Jeff Law <law@redhat.com>
22549
22550 * loop.c (check_insn_for_givs): Restore check for code labels that was
22551 accidentally deleted by a recent checkin.
22552
22553 2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
22554
22555 * vec.h (VEC_T_truncate): Allow truncation of an empty vector.
22556 (VEC_T_quick_insert, VEC_T_ordered_remove): Fix sizeof(T) thinko.
22557
22558 2004-07-14 Richard Henderson <rth@redhat.com>
22559
22560 * print-tree.c (print_node): Fix casts last change.
22561
22562 2004-07-15 Paul Brook <paul@codesourcery.com>
22563
22564 * dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO
22565 to TARGET_UNWIND_INFO.
22566 * except.c (output_function_exception_table): Ditto.
22567 * except.h: Ditto.
22568 * opts.c (decode_options): Ditto.
22569 * passes.c (rest_of_handle_final): Ditto.
22570 * final.c (final_start_function): Ditto.
22571 (final_scan_insn, final_scan_insn): Replace IA64_UNWIND_EMIT with
22572 target hook.
22573 * targhooks.h (default_unwind_emit): Declare.
22574 * targhooks.c (default_unwind_emit): New function.
22575 * target-def.h: Define and use TARGET_UNWIND_EMIT.
22576 * target.h (struct gcc_target): Add unwind_emit.
22577 * config/ia64/ia64.c (TARGET_UNWIND_EMIT): Define.
22578 * config/ia64/ia64.h: Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO.
22579 Remove IA64_UNWIND_EMIT.
22580 * doc/tm.texi: Document TARGET_UNWIND_EMIT and TARGET_UNWIND_INFO.
22581
22582 2004-07-14 Richard Henderson <rth@redhat.com>
22583
22584 * print-tree.c (print_node): Handle SSA_NAME.
22585
22586 2004-07-14 James E Wilson <wilson@specifixinc.com>
22587
22588 PR target/16325
22589 * config/mips/mips.h (STARTING_FRAME_OFFSET): When flag_profile_value
22590 and ! TARGET_64BIT, include REG_PARM_STACK_SPACE.
22591
22592 2004-07-15 Jakub Jelinek <jakub@redhat.com>
22593
22594 * expr.c (expand_assignment): Reenable bitfield += optimizations.
22595 Use alias set 0 for memory, do proper mode calculations and adjust
22596 address for memories.
22597
22598 2004-07-14 Per Bothner <per@bothner.com>
22599
22600 * input.h: If USE_MAPPED_LOCATION, define separate expanded_location
22601 structure with extra column field.
22602 * tree.c (expand_location): Also fill in column field.
22603 * gengtype-lex.l: Ignore expanded_location typedef, sinze gengtype
22604 gets confused by the two conditionally-compiled definitions.
22605
22606 2004-07-14 Eric Christopher <echristo@redhat.com>
22607
22608 * calls.c (expand_call): Fix typo in comment.
22609
22610 2004-07-14 Steve Ellcey <sje@cup.hp.com>
22611
22612 * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
22613 comparision of TFmode.
22614
22615 2004-07-14 Richard Henderson <rth@redhat.com>
22616
22617 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
22618 (alpha_gimplify_va_arg): ... handling here. Use pass_by_reference.
22619 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Use pass_by_reference.
22620 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
22621 * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
22622 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
22623 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
22624 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
22625 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
22626
22627 2004-07-14 Mike Stump <mrs@apple.com>
22628
22629 * config/darwin.h (WINT_TYPE): Define to be int to match
22630 system header files.
22631
22632 2004-07-14 Bob Wilson <bob.wilson@acm.org>
22633
22634 * config/xtensa/xtensa.c (function_arg_advance): Check for args
22635 that must be passed in the stack.
22636 (xtensa_gimplify_va_arg_expr): Skip special-case padding for small
22637 arguments if the size is not a constant.
22638
22639 2004-07-14 Per Bothner <per@bothner.com>
22640
22641 * c-typeck.c (emit_side_effect_warnings): Use EXPR_HAS_LOCATION
22642 instead of EXPR_LOCUS in a boolean context, which is always true
22643 if --enable-mapped-location.
22644 * stmt.c (warn_if_unused_value): Likewise. Also use EXPR_LOCATION.
22645
22646 2004-07-14 Richard Henderson <rth@redhat.com>
22647
22648 * dominance.c (struct dom_info): Add fake_exit_edge.
22649 (init_dom_info): Allocate it.
22650 (free_dom_info): Free it.
22651 (calc_dfs_tree): Set it. Handle noreturn and infinite loops
22652 in two passes.
22653 (calc_idoms): Honor fake_exit_edge.
22654
22655 2004-07-13 Jason Merrill <jason@redhat.com>
22656
22657 * tree-gimple.c (is_gimple_reg_rhs, is_gimple_mem_rhs): New fns.
22658 (rhs_test_for): New fn.
22659 (is_gimple_tmp_rhs): Rename from is_gimple_rhs.
22660 * tree-gimple.h: Declare them.
22661 * gimplify.c (gimplify_modify_expr): Use the new fns.
22662
22663 2004-07-14 Richard Henderson <rth@redhat.com>
22664
22665 * config/arm/arm-protos.h (arm_va_arg): Remove.
22666 * config/arm/arm.c (arm_va_arg): Remove.
22667 (arm_init_expanders): Fix alignment of arg_pointer_rtx.
22668 * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG): Remove.
22669
22670 2004-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22671
22672 * pa.c (fix_range): New function to mark a range(s) of registers as
22673 fixed registers.
22674 (override_options): Call fix_range if the -mfixed-range option string
22675 is not empty.
22676 * pa.h (TARGET_OPTIONS): Add -mfixed-range option.
22677 * doc/invoke.texi (-mfixed-range): Document new option.
22678
22679 2004-07-14 David Edelsohn <edelsohn@gnu.org>
22680
22681 * config/rs6000/rs6000.c (function_arg_padding): Do not pad SFmode
22682 for TARGET_64BIT.
22683 (rs6000_gimplify_va_arg): Use size_int instead of build_int_2.
22684
22685 2004-07-14 Roger Sayle <roger@eyesopen.com>
22686
22687 * expmed.c (expand_sdiv_pow2): New function to expand signed division
22688 by a positive power of two, split out from expand_divmod. Provide
22689 an alternate implementation when shifts are expensive. Lower the
22690 threshold for using a branchless implementation to BRANCH_COST >= 2.
22691 (expand_divmod): Call expand_sdiv_pow2 for suitable divisions.
22692
22693 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
22694
22695 * tree-dfa.c (make_rename_temp): *Really* work just
22696 like create_tmp_var if called while outside SSA form.
22697
22698 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
22699
22700 * config/s390/s390.md ("udivsi3"): Ensure trap is generated
22701 for division by zero.
22702 ("umodsi3"): Likewise.
22703
22704 2004-07-14 Richard Sandiford <rsandifo@redhat.com>
22705
22706 * config/mips/mips.c (mips_output_move): When generating mips16 code,
22707 force loads of negative constants to be split.
22708 * config/mips/mips.md (*movhi_mips16, *movqi_mips16): Likewise.
22709 Generalize SImode li/neg splitter to cope with other modes.
22710
22711 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
22712
22713 * expmed.c: Remove more references to QUEUED in the comments.
22714 * expr.c: Likewise.
22715
22716 2004-07-14 Richard Sandiford <rsandifo@redhat.com>
22717
22718 Revert:
22719 2004-07-13 Richard Henderson <rth@redhat.com>
22720 * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes
22721 correctly.
22722
22723 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
22724
22725 * tree-dfa.c (make_rename_temp): Work just like
22726 create_tmp_var if called while outside SSA form.
22727
22728 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
22729
22730 * expr.c (enqueue_insn, finish_expr_for_function,
22731 protect_from_queue, queued_subexp_p, mark_queue,
22732 emit_insns_enqueued_after_mark, emit_queue,
22733 expand_increment): Remove.
22734 (store_constructor): Expand increment as an assignment.
22735 (expand_expr_real_1 <case PREINCREMENT_EXPR,
22736 case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
22737 case POSTDECREMENT_EXPR>): Abort.
22738 * expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
22739 QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
22740 protect_from_queue, emit_queue, queued_subexp_p): Remove.
22741 * function.h (pending_chain, x_pending_chain): Remove.
22742 * rtl.def (QUEUED): Remove.
22743
22744 * emit-rtl.c (copy_insn_1, copy_most_rtx,
22745 set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
22746 * genattrtab.c (attr_copy_rtx, clear_struct_flag,
22747 encode_units_mask): Likewise.
22748 * local-alloc.c (equiv_init_varies_p): Likewise.
22749 * rtl.c (copy_rtx): Likewise.
22750 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
22751 * simplify-rtx.c (simplify_gen_subreg): Likewise.
22752 * config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
22753
22754 * builtins.c (expand_builtin, expand_builtin_apply,
22755 expand_builtin_mathfn, expand_builtin_mathfn_2,
22756 expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
22757 Remove calls to emit_queue and protect_from_queue.
22758 * calls.c (expand_call, precompute_arguments,
22759 precompute_register_parameters, rtx_for_function_call,
22760 store_one_arg): Likewise.
22761 * dojump.c (do_compare_and_jump, do_jump): Likewise.
22762 * explow.c (memory_address): Likewise.
22763 * expmed.c (clear_by_pieces_1, clear_storage,
22764 clear_storage_via_libcall, emit_group_load,
22765 emit_group_store, emit_store_flag,
22766 expand_expr_real_1, store_by_pieces,
22767 store_constructor, store_expr, try_casesi,
22768 try_tablejump): Likewise.
22769 * function.c (expand_pending_sizes): Likewise.
22770 * optabs.c (emit_cmp_and_jump_insns,
22771 emit_conditional_add, emit_conditional_move,
22772 expand_fix, expand_float, prepare_cmp_insn): Likewise.
22773 * stmt.c (emit_case_bit_tests,
22774 expand_asm_expr, expand_computed_goto,
22775 expand_decl_init, expand_end_case_type,
22776 expand_end_stmt_expr, expand_expr_stmt_value,
22777 expand_return, expand_start_case,
22778 optimize_tail_recursion): Likewise.
22779 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
22780 * config/s390/s390.c (s390_expand_cmpmem): Likewise.
22781
22782 2004-07-14 Ben Elliston <bje@au.ibm.com>
22783
22784 * vec.h: Comment fix.
22785
22786 2004-07-13 Richard Henderson <rth@redhat.com>
22787
22788 * target.h (struct gcc_target): Add calls.pass_by_reference.
22789 * target-def.h (TARGET_PASS_BY_REFERENCE): New.
22790 * function.c (pass_by_reference): Use the hook.
22791 * system.h (FUNCTION_ARG_PASS_BY_REFERENCE): Poison.
22792 * targhooks.c, targhooks.h (hook_pass_by_reference_false): New.
22793 (hook_pass_by_reference_must_pass_in_stack): New.
22794 * config/alpha/alpha.c (function_arg): Don't query pass-by-ref.
22795 (alpha_pass_by_reference): New.
22796 (TARGET_PASS_BY_REFERENCE): New.
22797 * config/alpha/alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22798 * config/arc/arc.c (arc_pass_by_reference): New.
22799 (TARGET_PASS_BY_REFERENCE): New.
22800 * config/arc/arc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22801 (FUNCTION_ARG_CALLEE_COPIES): True.
22802 * config/arm/arm-protos.h (arm_function_arg_pass_by_reference): Remove.
22803 * config/arm/arm.c (TARGET_PASS_BY_REFERENCE): New.
22804 (arm_pass_by_reference): Rename from arm_function_arg_pass_by_reference.
22805 * config/arm/arm.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22806 * config/c4x/c4x.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22807 * config/cris/cris.c (cris_pass_by_reference): New.
22808 (TARGET_PASS_BY_REFERENCE): New.
22809 * config/cris/cris.h (FUNCTION_ARG): Don't query pass-by-ref.
22810 (FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): Likewise.
22811 (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22812 * config/fr30/fr30.c (TARGET_PASS_BY_REFERENCE): New.
22813 * config/fr30/fr30.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22814 * config/frv/frv-protos.h (frv_function_arg_pass_by_reference): Kill.
22815 * config/frv/frv.c (TARGET_PASS_BY_REFERENCE): New.
22816 (frv_function_arg_pass_by_reference): Remove.
22817 * config/frv/frv.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22818 * config/i386/i386-protos.h (function_arg_pass_by_reference): Remove.
22819 * config/i386/i386.c (TARGET_PASS_BY_REFERENCE): New.
22820 (ix86_pass_by_reference): Rename from function_arg_pass_by_reference.
22821 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22822 * config/ia64/ia64-protos.h (ia64_function_arg_pass_by_reference): Kill.
22823 * config/ia64/ia64.c (TARGET_PASS_BY_REFERENCE): New.
22824 (ia64_pass_by_reference): Rename from
22825 ia64_function_arg_pass_by_reference.
22826 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22827 * config/ip2k/ip2k.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22828 * config/iq2000/iq2000-protos.h (function_arg_pass_by_reference): Kill.
22829 * config/iq2000/iq2000.c (TARGET_PASS_BY_REFERENCE): New.
22830 (iq2000_pass_by_reference): Rename from function_arg_pass_by_reference.
22831 * config/iq2000/iq2000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22832 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
22833 * config/m32r/m32r-protos.h (m32r_pass_by_reference): Remove.
22834 * config/m32r/m32r.c (TARGET_PASS_BY_REFERENCE): New.
22835 (m32r_pass_by_reference): Adjust prototype. Make static.
22836 Handle mode sizes correctly.
22837 * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22838 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c
22839 (m68hc11_function_arg_pass_by_reference): Remove.
22840 * config/m68hc11/m68hc11.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22841 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
22842 * config/mcore/mcore.c (TARGET_PASS_BY_REFERENCE): New.
22843 * config/mcore/mcore.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22844 * config/mips/mips-protos.h (function_arg_pass_by_reference): Remove.
22845 * config/mips/mips.c (TARGET_PASS_BY_REFERENCE): New.
22846 (mips_va_arg): Use pass_by_reference.
22847 (mips_pass_by_reference): Rename from function_arg_pass_by_reference.
22848 Handle mode sizes correctly.
22849 * config/mips/mips.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22850 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
22851 * config/mmix/mmix-protos.h (mmix_function_arg_pass_by_reference): Kill.
22852 * config/mmix/mmix.c (TARGET_PASS_BY_REFERENCE): New.
22853 (mmix_pass_by_reference): Rename from
22854 mmix_function_arg_pass_by_reference.
22855 * config/mmix/mmix.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22856 (FUNCTION_ARG_CALLEE_COPIES): True.
22857 * config/mn10300/mn10300.c (TARGET_PASS_BY_REFERENCE): New.
22858 (mn10300_pass_by_reference): New.
22859 * config/mn10300/mn10300.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22860 (FUNCTION_ARG_CALLEE_COPIES): True.
22861 * config/pa/pa.c (pa_pass_by_reference): New.
22862 (TARGET_PASS_BY_REFERENCE): New.
22863 * config/pa/pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22864 (FUNCTION_ARG_CALLEE_COPIES): True.
22865 * config/rs6000/rs6000-protos.h (function_arg_pass_by_reference): Kill.
22866 * config/rs6000/rs6000.c (TARGET_PASS_BY_REFERENCE): New.
22867 (rs6000_pass_by_reference): Rename from function_arg_pass_by_reference.
22868 * config/rs6000/rs6000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22869 * config/s390/s390-protos.h (s390_function_arg_pass_by_reference): Kill.
22870 * config/s390/s390.c (TARGET_PASS_BY_REFERENCE): New.
22871 (s390_pass_by_reference): Rename from
22872 s390_function_arg_pass_by_reference.
22873 (s390_function_arg_advance): Don't query pass-by-ref.
22874 (s390_function_arg): Likewise.
22875 (s390_gimplify_va_arg): Use pass_by_reference.
22876 (s390_call_saved_register_used): Likewise.
22877 * config/s390/s390.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22878 * config/sh/sh.c (TARGET_PASS_BY_REFERENCE): New.
22879 (shcompact_byref, sh_pass_by_reference): New.
22880 * config/sh/sh.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22881 (SHCOMPACT_BYREF): Remove.
22882 * config/sparc/sparc-protos.h (function_arg_pass_by_reference): Kill.
22883 * config/sparc/sparc.c (TARGET_PASS_BY_REFERENCE): New.
22884 (sparc_pass_by_reference): Rename from function_arg_pass_by_reference.
22885 (sparc_gimplify_va_arg): Use pass_by_reference.
22886 * config/sparc/sparc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22887 * config/stormy16/stormy16.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22888 * config/v850/v850.c (TARGET_PASS_BY_REFERENCE): New.
22889 (v850_pass_by_reference): New.
22890 * config/v850/v850.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22891 (FUNCTION_ARG_CALLEE_COPIES): True.
22892 * doc/tm.texi (TARGET_PASS_BY_REFERENCE): Update from
22893 FUNCTION_ARG_PASS_BY_REFERENCE docs.
22894
22895 2004-07-14 Richard Henderson <rth@redhat.com>
22896 Richard Sandiford <rsandifo@redhat.com>
22897
22898 * config/mips/mips-protos.h (mips_va_arg): Delete.
22899 * config/mips/mips.h (EXPAND_BUILTIN_VA_ARG): Delete.
22900 * config/mips/mips.c: Include tree-gimple.h.
22901 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
22902 (mips_arg_info): Remove special handling of must_pass_in_stck args.
22903 (mips_gimplify_va_arg_expr): Rewritten from mips_va_arg.
22904 (function_arg_pass_by_reference): Return true if must_pass_in_stack.
22905
22906 2004-07-13 Bob Wilson <bob.wilson@acm.org>
22907
22908 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap
22909 arguments for COND_EXPR in big-endian adjustment code.
22910
22911 2004-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22912
22913 * pa-64.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Delete.
22914 * pa.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Modify for hppa64.
22915 * pa32-regs.h (REG_ALLOC_ORDER): Reorder caller-saved registers.
22916 * pa64-regs.h (REG_ALLOC_ORDER): Likewise.
22917
22918 2004-07-13 Diego Novillo <dnovillo@redhat.com>
22919
22920 PR tree-optimization/16443
22921 * tree-ssa-alias.c: Add more description for
22922 CALL_CLOBBERED_VARS and ADDRESSABLE_VARS.
22923 * tree-ssa-operands.c (get_asm_expr_operands): Re-order the
22924 clobbering of call-clobbered and addressable variables. If
22925 there are any before aliases have been computed, add them.
22926
22927 2004-07-13 Diego Novillo <dnovillo@redhat.com>
22928
22929 * tree-optimize.c (execute_todo): Flush DUMP_FILE before
22930 verification.
22931
22932 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
22933
22934 * config/s390/s390.c (s390_gimplify_va_arg): Use size_int instead
22935 of build_int_2. Convert both operands of PLUS_EXPR and MULT_EXPR
22936 to the same type.
22937
22938 2004-07-13 Per Bothner <per@bothner.com>
22939
22940 * collect2.c (main): Handle --no-demangle and --demangle flags.
22941
22942 2004-07-13 Sebastian Pop <pop@cri.ensmp.fr>
22943
22944 * Makefile.in (OBJS-common): Add tree-data-ref.o.
22945 (tree-scalar-evolution.o): Add missing dependences on tree-pass.h flags.h.
22946 (tree-data-ref.o): New rule.
22947 * lambda.h: New file.
22948 * tree-data-ref.c: New file.
22949 * tree-data-ref.h: New file.
22950 * tree.c (int_cst_value, tree_fold_gcd): New functions.
22951 * tree.h (int_cst_value, tree_fold_gcd): Declared here.
22952
22953 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
22954
22955 PR target/13926
22956 * config/sparc/sparc-protos.h (output_ubranch): New prototype.
22957 * config/sparc/sparc.c (output_ubranch): New function.
22958 * config/sparc/sparc.md (jump pattern): Use it.
22959
22960 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
22961
22962 PR target/16494
22963 * config/sparc/sparc.c (output_cbranch): Properly guard
22964 the code handling far branches with TARGET_V9.
22965 * config/sparc/sparc.md (length attribute): Document the
22966 side-effect of having a length greater or equal to 3.
22967
22968 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
22969 Lloyd Parkes <lloyd@must-have-coffee.gen.nz>
22970
22971 PR target/15186
22972 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
22973 /usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
22974
22975 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
22976 Martin Sebor <sebor@roguewave.com>
22977
22978 PR target/12602
22979 * doc/invoke.texi (SPARC options): Document -threads
22980 and -pthreads on Solaris.
22981
22982 2004-07-13 Richard Henderson <rth@redhat.com>
22983
22984 * builtins.c (std_gimplify_va_arg_expr): Handle types passed
22985 by reference.
22986 (ind_gimplify_va_arg_expr): Remove.
22987 * tree.h (ind_gimplify_va_arg_expr): Remove.
22988 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Don't use it.
22989 * config/mmix/mmix.c (mmix_function_arg_pass_by_reference): Allow
22990 argsp to be null.
22991
22992 * config/arc/arc.c (arc_gimplify_va_arg_expr): Remove.
22993 (TARGET_GIMPLIFY_VA_ARG_EXPR): Remove.
22994 * config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c,
22995 config/iq2000/iq2000.c, config/m32r/m32r.c, config/mmix/mmix.c,
22996 config/mn10300/mn10300.c, config/v850/v850.c: Similarly.
22997
22998 2004-07-13 Richard Henderson <rth@redhat.com>
22999
23000 * function.c (pass_by_reference): New.
23001 (assign_parm_find_data_types): Use it.
23002 * calls.c (initialize_argument_information): Likewise.
23003 (emit_library_call_value_1): Likewise.
23004 * expr.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
23005 * function.h (pass_by_reference): Declare.
23006
23007 2004-07-13 Richard Henderson <rth@redhat.com>
23008
23009 * target-def.h (TARGET_MUST_PASS_IN_STACK): New.
23010 * target.h (struct gcc_target): Add calls.must_pass_in_stack.
23011 * expr.h (MUST_PASS_IN_STACK): Remove.
23012 * system.h (MUST_PASS_IN_STACK): Poison.
23013 * tree.h (must_pass_in_stack_var_size): Declare.
23014 (must_pass_in_stack_var_size_or_pad): Declare.
23015 * calls.c (must_pass_in_stack_var_size): New.
23016 (must_pass_in_stack_var_size_or_pad): Rename from
23017 default_must_pass_in_stack.
23018 * config/alpha/alpha.c (unicosmk_must_pass_in_stack): New.
23019 (TARGET_MUST_PASS_IN_STACK): New.
23020 * config/alpha/unicosmk.h (MUST_PASS_IN_STACK): Remove.
23021 * config/fr30/fr30.c (fr30_must_pass_in_stack): New.
23022 (TARGET_MUST_PASS_IN_STACK): New.
23023 * config/fr30/fr30.h (MUST_PASS_IN_STACK): Remove.
23024 * config/frv/frv.c (frv_must_pass_in_stack): New.
23025 (TARGET_MUST_PASS_IN_STACK): New.
23026 * config/frv/frv.h (MUST_PASS_IN_STACK): Remove.
23027 * config/i386/i386-protos.h (ix86_must_pass_in_stack): Remove.
23028 * config/i386/i386.c (TARGET_MUST_PASS_IN_STACK): New.
23029 (ix86_must_pass_in_stack): Make static.
23030 * config/i386/i386.h (MUST_PASS_IN_STACK): Remove.
23031 * config/ia64/ia64.c (TARGET_MUST_PASS_IN_STACK): New.
23032 * config/ia64/ia64.h (MUST_PASS_IN_STACK): Remove.
23033 * config/m32r/m32r.c (TARGET_MUST_PASS_IN_STACK): New.
23034 * config/m32r/m32r.h (MUST_PASS_IN_STACK): Remove.
23035 * config/mcore/mcore-protos.h (mcore_must_pass_on_stack): Remove.
23036 * config/mcore/mcore.c (TARGET_MUST_PASS_IN_STACK): New.
23037 (mcore_must_pass_on_stack): Remove.
23038 * config/mcore/mcore.h (MUST_PASS_IN_STACK): Remove.
23039 * config/mips/mips.c (TARGET_MUST_PASS_IN_STACK): New.
23040 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove.
23041 * config/pa/pa.c (TARGET_MUST_PASS_IN_STACK): New.
23042 * config/pa/pa.h (MUST_PASS_IN_STACK): Remove.
23043 * config/rs6000/aix.h (MUST_PASS_IN_STACK): Remove.
23044 * config/rs6000/linux64.h (MUST_PASS_IN_STACK): Remove.
23045 * config/rs6000/rs6000.c (rs6000_must_pass_in_stack): New.
23046 (TARGET_MUST_PASS_IN_STACK): New.
23047 * config/sh/sh.c (TARGET_MUST_PASS_IN_STACK): New.
23048 * config/sh/sh.h (MUST_PASS_IN_STACK): Remove.
23049 * config/sparc/sparc.c (TARGET_MUST_PASS_IN_STACK): New.
23050 * config/sparc/sparc.h (MUST_PASS_IN_STACK): Remove.
23051 * config/xtensa/xtensa.c (TARGET_MUST_PASS_IN_STACK): New.
23052 * config/xtensa/xtensa.h (MUST_PASS_IN_STACK): Remove.
23053 * doc/tm.texi (TARGET_MUST_PASS_IN_STACK): Update from
23054 MUST_PASS_IN_STACK.
23055
23056 * calls.c, function.c, config/alpha/alpha.c, config/alpha/alpha.h,
23057 config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.c,
23058 config/cris/cris.h, config/fr30/fr30.c, config/fr30/fr30.h,
23059 config/frv/frv.c, config/i386/i386.c, config/iq2000/iq2000.c,
23060 config/mcore/mcore.c, config/mcore/mcore.h, config/mips/mips.c,
23061 config/mmix/mmix.c, config/mmix/mmix.h, config/rs6000/rs6000.c,
23062 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
23063 config/xtensa/xtensa.c: Use target hook.
23064
23065 2004-07-13 Anthony Heading <aheading@jpmorgan.com>
23066
23067 * configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo.
23068 * configure: Rebuilt.
23069
23070 2004-07-13 Richard Sandiford <rsandifo@redhat.com>
23071
23072 * doc/invoke.texi: Remove documentation for MIPS -mrnames option.
23073 * config/mips/mips.h (mips_reg_names): Don't declare.
23074 (MASK_NAME_REGS): Delete. Shuffle other MASK_* values down.
23075 (TARGET_NAME_REGS): Delete.
23076 (TARGET_SWITCHES): Remove -mrnames.
23077 (REGISTER_NAMES): Initialise with the old contents of mips_reg_names[].
23078 (ADDITIONAL_REGISTER_NAMES): Remove entries for names mentioned
23079 in REGISTER_NAMES.
23080 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Delete.
23081 (override_options): Remove handling of TARGET_NAME_REGS.
23082
23083 2004-07-13 Richard Sandiford <rsandifo@redhat.com>
23084
23085 * config/mips/mips.h (TARGET_*): Boolify.
23086
23087 2004-07-12 Nick Clifton <nickc@redhat.com>
23088
23089 * config.gcc: Add sh-*-symbianelf target.
23090 * config/sh/sh.c: Add new target macros:
23091 TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING,
23092 TARGET_CXX_IMPORT_EXPORT_CLASS.
23093 (sh_file_start): Create a definition of the .directive section.
23094 (sh_attribute): Add dllimport and dllexport attributes.
23095 * config/sh/symbian-pre.h: New file.
23096 * config/sh/symbian-post.h: New file.
23097 * config/sh/symbian.c: New file. Contains Symbian specific
23098 functions.
23099 * config/sh/sh-protos.h: Add prototypes for new functions
23100 provided by symbian.c.
23101 * config/sh/t-symbian: New file.
23102 * doc/extend.texi: Document support for dllimport and dllexport
23103 attributes by the sh-symbianelf target.
23104
23105 2004-07-12 James E Wilson <wilson@specifixinc.com>
23106
23107 * Makefile.in (AR): Use @AR@ not ar.
23108 (NM): New.
23109 (AR_FOR_TARGET): Use $(AR) not ar for native.
23110 (NM_FOR_TARGET): Use $(NM) not nm for native.
23111 * configure.ac: Add AC_CHECK_PROG calls for NM and AR.
23112 * configure: Regenerate.
23113
23114 2004-07-12 David S. Miller <davem@nuts.davemloft.net>
23115
23116 * config/sparc/sparc.md (ashlsi3): Eliminate const 1
23117 special case.
23118 (ashldi3_sp64): Likewise.
23119
23120 2004-07-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23121
23122 PR target/16477
23123 * pa.c (function_arg): Update comment.
23124 * pa.h (BLOCK_REG_PADDING): Define.
23125
23126 2004-07-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
23127
23128 PR tree-optimization/16461
23129 * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
23130 arguments of phi nodes.
23131
23132 2004-07-12 Devang Patel <dpatel@apple.com>
23133
23134 * doc/invoke.texi (Darwin Options): Document -gused and -gfull.
23135
23136 2004-07-12 Steve Ellcey <sje@cup.hp.com>
23137
23138 * function.c (expand_function_start): Ensure r_save is in Pmode.
23139 * calls.c (prepare_call_address): Ensure static_chain_value is
23140 in Pmode.
23141 * builtins.c (expand_builtin_nonlocal_goto): Ensure r_label and
23142 r_save_area are in Pmode.
23143 * config/ia64/ia64.c (ia64_initialize_trampoline): Ensure addr,
23144 fnaddr, and static_chain are in Pmode.
23145
23146 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
23147
23148 PR target/16445
23149 * config/ia64/ia64.c (bundling): Don't count ignored insns.
23150
23151 2004-07-12 Richard Henderson <rth@redhat.com>
23152
23153 * target.h (struct gcc_target): Move gimplify_va_arg_expr
23154 next to build_builtin_va_list.
23155 * target-def.h (TARGET_GIMPLIFY_VA_ARG_EXPR): Update to match.
23156 * builtins.c (gimplify_va_arg_expr): Likewise.
23157 * gimplify.c (copy_if_shared_r): Likewise.
23158
23159 2004-07-12 Alexandre Oliva <aoliva@redhat.com>
23160
23161 * passes.c (rest_of_decl_compilation): Don't defer call of
23162 assemble_variable if its DECL_RTL is already set.
23163
23164 2004-07-12 Sebastian Pop <pop@cri.ensmp.fr>
23165
23166 * cfgloop.h (struct loop): Add nb_iterations field.
23167 (current_loops): Declare.
23168 * tree-chrec.c (chrec_not_analyzed_yet,
23169 chrec_dont_know, chrec_known, count_ev_in_wider_type,
23170 chrec_contains_symbols_defined_in_loop): Remove the temporary
23171 hooks.
23172 * tree-flow-inline.h (loop_containing_stmt): New function.
23173 * tree-scalar-evolution.c: Add implementation.
23174 * tree-scalar-evolution.h: Add declarations.
23175
23176 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
23177
23178 PR rtl-optimization/15921
23179 * Makefile.in (global.o): Add recog.h.
23180
23181 * global.c (recog.h): Add the include-clause.
23182 (bb_info): New member earlyclobber.
23183 (allocate_bb_info, free_bb_info): Initialize/finish the new
23184 member.
23185 (earlyclobber_regclass, earlyclobber_regclass_length): The new
23186 global variables.
23187 (check_earlyclobber, regclass_intersect,
23188 mark_reg_use_for_earlyclobber, mark_reg_use_for_earlyclobber_1):
23189 New functions.
23190 (calculate_local_reg_bb_info): Calculate value of earlyclobber.
23191 (make_accurate_live_analysis): Modify pavin.
23192
23193 2004-07-12 Diego Novillo <dnovillo@redhat.com>
23194
23195 * tree-cfg.c (find_taken_edge): Statically compute the truth
23196 value of a predicate comparing an SSA_NAME to itself.
23197
23198 2004-07-12 Roger Sayle <roger@eyesopen.com>
23199
23200 * config/rs6000/rs6000.c (rs6000_rtx_costs): Indicate that the
23201 rs6000 doesn't have shift-and-add or shift-and-sub instructions
23202 by returning the cost of a multiplication plus an addition.
23203
23204 2004-07-12 Paolo Bonzini <bonzini@gnu.org>
23205
23206 PR tree-optimization/14107
23207 * gimplify.c (gimplify_return_expr): Accept a
23208 RETURN_EXPR with an error argument.
23209 * tree-optimize.c (init_tree_optimization_passes):
23210 Run pass_warn_function_return at -O0.
23211
23212 2004-07-12 Roger Sayle <roger@eyesopen.com>
23213
23214 * doc/invoke.texi: Correct -fasynchronous-unwind-tables option
23215 index entry.
23216
23217 2004-07-12 Richard Sandiford <rsandifo@redhat.com>
23218
23219 * config/mips/mips.c (mips_use_dfa_pipeline_interface): Delete.
23220 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
23221 * config/mips/3000.md: Add copyright notice. Remove automota and
23222 function units; use generic ones instead. Only define reservations
23223 for things that are different from generic.md. Extend each clause
23224 to include r3900.
23225 * config/mips/{4000,4100,4300,4600,5000,6000,generic}.md: New files.
23226 * config/mips/mips.md: Include them. Remove define_function_units.
23227 (alu, imuldiv): New automata and units.
23228
23229 2004-07-12 Ben Elliston <bje@au.ibm.com>
23230
23231 * doc/invoke.texi (Optimize Options): Document -frename-registers
23232 not being enabled by default at -O3.
23233
23234 2004-07-11 Roger Sayle <roger@eyesopen.com>
23235
23236 * fold-const.c (fold) <PLUS_EXPR>: Canonicalize X + -C as X - C for
23237 floating point additions, to keep real immediate constant positive.
23238 <MINUS_EXPR>: For floating point subtractions, only transform X - -C
23239 into X + C, and leave positive real constants as X - C.
23240
23241 2004-07-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23242
23243 * pa.c (hppa_gimplify_va_arg_expr): Remove comment.
23244
23245 2004-07-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
23246
23247 PR tree-optimization/15654
23248 * tree-tailcall.c (eliminate_tail_call): Remove unreachable code.
23249
23250 2004-07-11 Roger Sayle <roger@eyesopen.com>
23251
23252 * builtins.c (fold_builtin_fputs): Don't bother converting the
23253 return type to integer_type_node, as we've already checked that
23254 the result will be ignored.
23255
23256 * tree-eh.c (tree_could_trap_p): Add support for -ftrapv such
23257 that signed addition, subtraction, multiplication, division,
23258 remainder, negation and absolute value may potentially trap.
23259
23260 * fold-const.c (fold_ignored_result): New function to strip
23261 non-side-effecting tree nodes from an expression whose result
23262 is ignored.
23263 (fold_convert): Call fold_ignored_result when casting a value
23264 to VOID_TYPE.
23265 (omit_one_operand): Call fold_ignored_result on the "omitted"
23266 operand when building a COMPOUND_EXPR.
23267 (pedantic_omit_one_operand): Likewise.
23268 * tree.h (fold_ignored_result): Prototype here.
23269 * tree-ssa-ccp.c (ccp_fold_builtin): Call fold_ignored_result
23270 when we're going to ignore the result.
23271
23272 2004-07-11 Richard Henderson <rth@redhat.com>
23273
23274 PR tree-opt/16383
23275 * tree-ssa-ccp.c (fold_stmt_r): Split out...
23276 * tree.c (fields_compatible_p, find_compatible_field): ... new.
23277 * tree.h (fields_compatible_p, find_compatible_field): Declare.
23278 * tree-sra.c (sra_hash_tree): Hash fields by offset.
23279 (sra_elt_eq): Use fields_compatible_p.
23280 (generate_one_element_ref): Use find_compatible_field.
23281
23282 2004-07-11 Richard Henderson <rth@redhat.com>
23283
23284 PR tree-opt/16422
23285 * tree-sra.c (generate_one_element_init): New.
23286 (generate_element_init): Use it.
23287 (scalarize_init): Push/pop gimplify context around it.
23288 (find_new_referenced_vars_1, find_new_referenced_vars): New.
23289 * gimplify.c (gimplify_expr): Allow SSA_NAME.
23290
23291 2004-07-11 Roger Sayle <roger@eyesopen.com>
23292
23293 * rtlanal.c (insn_rtx_cost): New function, moved and renamed from
23294 combine.c's combine_insn_cost.
23295 * rtl.h (insn_rtx_cost): Prototype here.
23296 * combine.c (combine_insn_cost): Delete function.
23297 (combine_validate_cost): Update callers of combine_insn_cost to
23298 call insn_rtx_cost instead.
23299 (combine_instructions): Likewise. Use NONJUMP_INSN_P to avoid
23300 requesting the rtx_cost of call and/or jump instructions.
23301
23302 * ifcvt.c (total_bb_rtx_cost): Use insn_rtx_cost instead of calling
23303 rtx_cost directly. Don't request/use the cost of call or jump
23304 instructions. Return -1 if the cost of any instruction can't be
23305 determined (or the BB contains a function call).
23306 (find_if_case_1): Abort transformation if total_bb_rtx_cost returns
23307 -1 (i.e. can't determine the cost of any instruction or the basic
23308 block contains a subroutine call).
23309 (find_if_case_2): Likewise.
23310
23311 2004-07-11 Roger Sayle <roger@eyesopen.com>
23312
23313 * rs6000.c (struct processor_costs): Change semantics of fields to
23314 include the COST_N_INSNS scaling, and update all initializers.
23315 (rs6000_rtx_costs): Don't use COSTS_N_INSNS on rs6000_cost fields.
23316 Use COSTS_N_INSNS(1) for NOT, SIGN_EXTEND, ZERO_EXTEND and COMPARE.
23317 Use rs6000_cost->fp for both FLOAT_TRUNCATE and UNSPEC_FRSP. When
23318 optimizing for size, use COSTS_N_INSNS(1) for CALL and IF_THEN_ELSE.
23319
23320 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
23321
23322 * LANGUAGES: Remove obsolete information.
23323
23324 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
23325
23326 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and
23327 SIGBUS signal frames, the PSW address points *to* the faulting
23328 instruction, not after it.
23329
23330 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
23331
23332 * config/s390/s390.c (legitimize_tls_address): Handle constant offsets
23333 added to TLS symbol addresses.
23334
23335 2004-07-11 Richard Henderson <rth@redhat.com>
23336
23337 * expmed.c (init_expmed): Use stack-local structures for
23338 temporary rtl. Don't recognize shifts.
23339
23340 2004-07-11 Richard Henderson <rth@redhat.com>
23341
23342 * expr.c (store_expr): Don't fiddle subreg promotion for types
23343 with precision smaller than the mode.
23344
23345 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
23346
23347 * tree.h (all_types_permanent): Remove.
23348
23349 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
23350
23351 * langhooks.h (estimate_num_insns, pushlevel, poplevel, set_block,
23352 maybe_build_cleanup, update_decl_after_saving): Remove hooks.
23353 * langhooks.c (lhd_clear_binding_stack): Remove.
23354 * langhooks-def.h (lhd_clear_binding_stack,
23355 LANG_HOOKS_MAYBE_BUILD_CLEANUP,
23356 LANG_HOOKS_UPDATE_DECL_AFTER_SAVING,
23357 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, LANG_HOOKS_PUSHLEVEL,
23358 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
23359 (LANG_HOOKS_CLEAR_BINDING_STACK): Define to lhd_do_nothing.
23360 * system.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
23361 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_SET_BLOCK,
23362 LANG_HOOKS_MAYBE_BUILD_CLEANUP,
23363 LANG_HOOKS_UPDATE_DECL_AFTER_SAVING, LANG_HOOKS_POPLEVEL): Poison.
23364 * tree.h (poplevel): Don't declare.
23365 * c-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
23366 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
23367 * objc/objc-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK,
23368 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
23369 Remove.
23370
23371 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
23372
23373 PR tree-optimization/16437
23374 * c-common.c (shorten_compare): Don't mark result of conversion to
23375 narrower signed type as overflowing.
23376 * fold-const.c (decode_field_reference): Determine whether
23377 signedness comes from outer type using precision rather than size.
23378
23379 2004-07-11 Phil Edwards <phil@codesourcery.com>
23380
23381 * configure.ac: Alphabetize --enable-checking list, add
23382 missing valgrind entry.
23383 * configure: Regenerate.
23384
23385 2004-07-11 Phil Edwards <phil@codesourcery.com>
23386
23387 * doc/install.texi (Testing): Fix syntax in "make check" example.
23388
23389 2004-07-10 James E Wilson <wilson@specifixinc.com>
23390
23391 * config/gofast.h (gofast_maybe_init_libfuncs): Use SImode for litodp.
23392
23393 2004-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
23394
23395 PR rtl-optimization/16001
23396 * loop-iv.c (iv_number_of_iterations): Prevent copy propagation in
23397 niter_expr.
23398
23399 2004-07-10 Geoffrey Keating <geoffk@apple.com>
23400
23401 * config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.
23402
23403 2004-07-10 Steve Kargl <sgk@troutmask.apl.washington.edu>
23404 James Morrison <phython@gcc.gnu.org>
23405
23406 * doc/contrib.texi (Contributors): Add gfortran contributors and
23407 fix a couple of typos.
23408
23409 2004-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
23410
23411 PR rtl-optimization/15387
23412 * calls.c (check_sibcall_argument_overlap_1): Handle pointers
23413 to incoming args space correctly.
23414
23415 2004-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23416
23417 * pa.c (output_indirect_call): Only use %r2 as the link register in
23418 indirect calls with the long PA 2.0 pc-relative branch.
23419
23420 2004-07-10 Daniel Jacobowitz <dan@debian.org>
23421
23422 * config/i386/i386.c (override_options): Pick a 64-bit CPU
23423 for the default tuning if TARGET_64BIT.
23424
23425 2004-07-10 Richard Henderson <rth@redhat.com>
23426
23427 * builtins.c (std_gimplify_va_arg_expr): Widen align/boundary
23428 to HOST_WIDE_INT. Fold pad-args-down arithmetic.
23429
23430 2004-07-10 Jakub Jelinek <jakub@redhat.com>
23431
23432 * expr.h (store_bit_field, extract_bit_field): Remove last argument.
23433 * expmed.c (store_bit_field, extract_bit_field): Remove last
23434 argument.
23435 * builtins.c (expand_builtin_signbit): Adjust callers.
23436 * optabs.c (expand_vector_binop, expand_vector_unop): Likewise.
23437 * calls.c (store_unaligned_arguments_into_pseudos): Likewise.
23438 * ifcvt.c (noce_emit_move_insn): Likewise.
23439 * stmt.c (expand_return): Likewise.
23440 * expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg,
23441 store_field, expand_expr_real_1): Likewise.
23442
23443 2004-07-10 Richard Henderson <rth@redhat.com>
23444
23445 * builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.
23446
23447 2004-07-09 Mike Stump <mrs@apple.com>
23448
23449 * config/darwin.c (no_dead_strip): Add.
23450 (HAVE_DEAD_STRIP): Add.
23451 (darwin_emit_unwind_label): Ensure that we don't dead code strip
23452 the .eh label.
23453
23454 2004-07-09 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
23455
23456 * tree-ssa-loop-im.c: New file.
23457 * Makefile.in (tree-ssa-loop-im.o): Add.
23458 * cfgloop.c (superloop_at_depth): New function.
23459 * cfgloop.h (superloop_at_depth): Declare.
23460 * common.opt (ftree-lim): New flag.
23461 * expr.c (array_ref_up_bound): New function.
23462 * params.def (PARAM_LIM_EXPENSIVE): New parameter.
23463 * timevar.def (TV_LIM): New timevar.
23464 * tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when
23465 computing immediate uses of a phi node.
23466 * tree-flow.h (struct tree_ann_common_d): Add aux field.
23467 (loop_commit_inserts, for_each_index, tree_ssa_lim): Declare.
23468 * tree-optimize.c (init_tree_optimization_passes): Add pass_lim.
23469 * tree-pass.h (pass_lim): Declare.
23470 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New
23471 functions.
23472 (pass_lim): New pass structure.
23473 * tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly.
23474 * tree.c (in_array_bounds_p): New function.
23475 * tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs.
23476 (in_array_bounds_p, array_ref_up_bound): Declare.
23477 * doc/invoke.texi (-ftree-lim, --param lim-expensive): Document.
23478 * doc/passes.texi (tree-ssa-loop-im.c): Document.
23479
23480 2004-07-09 Richard Henderson <rth@redhat.com>
23481
23482 * builtins.c (expand_builtin_stpcpy): Don't modify len.
23483
23484 * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
23485 with prejudice.
23486
23487 2004-07-10 Kelley Cook <kcook@gcc.gnu.org>
23488
23489 * flags.h: Delete redundant prototypes that are being generated
23490 in options.h from common.opt.
23491 * common.opt: Add in the expository comments formerly in flags.h.
23492
23493 2004-07-09 Jan Beulich <jbeulich@novell.com>
23494
23495 * config/i386/i386.c (init_cumulative_args): Set mmx/sse registers
23496 available for use only when TARGET_MMX/_SSE is set, and check for
23497 variable argument function if any register count is non-zero.
23498 (function_arg): Correctly suppress repeated warnings for passing SSE
23499 vectors are arguments without SSE enabled.
23500 (ix86_function_arg_boundary): Without SSE enabled, the use of what
23501 would be SSE register modes does no longer influence the alignment.
23502
23503 2004-07-09 Richard Henderson <rth@redhat.com>
23504
23505 * builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.
23506 Always align upward to arg boundary. Use size_in_bytes/round_up.
23507 Maintain type-correctness of constants.
23508 * stor-layout.c (round_up, round_down): Special-case powers of 2.
23509
23510 2004-07-09 David S. Miller <davem@nuts.davemloft.net>
23511
23512 * config/sparc/sparc.c (*_costs): Scale instruction costs
23513 by COSTS_N_INSNS.
23514 (sparc_rtx_costs): Adjust as appropriate.
23515
23516 2004-07-09 Jan Beulich <jbeulich@novell.com>
23517
23518 * config/i386/mm3dnow.h: New.
23519 * config.gcc: Add mm3dnow.h to extra_headers for i?86 and x86-64.
23520
23521 2004-07-09 Richard Henderson <rth@redhat.com>
23522
23523 * simplify-rtx.c (simplify_const_relational_operation): Only
23524 look at bounds of scalar integers.
23525
23526 2004-07-09 Jan Beulich <jbeulich@novell.com>
23527
23528 * config/i386/i386.md (sse2_clflush): Use correct operand for clflush.
23529
23530 2004-07-09 Andrew Pinski <apinski@apple.com>
23531
23532 * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
23533 always referenced.
23534 (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
23535 UOBJC_METACLASS_decl.
23536
23537 2004-07-09 James E Wilson <wilson@specifixinc.com>
23538
23539 PR target/16364
23540 * config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
23541 do return a parallel if hfa_mode == XFmode and mode == TImode.
23542
23543 2004-07-09 Jan Beulich <jbeulich@novell.com>
23544
23545 * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes
23546 permissible for unary plus.
23547
23548 2004-07-09 Jan Beulich <jbeulich@novell.com>
23549
23550 * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.
23551 (BT_FN_UINT): Rename from BT_FN_UNSIGNED.
23552 (BT_FN_PTR_UINT): Rename from BT_FN_PTR_UNSIGNED.
23553 (BT_ULONG, BT_ULONGLONG, BT_UINTMAX, BT_FN_INT_UINT, BT_FN_INT_ULONG,
23554 BT_FN_INT_ULONGLONG, BT_FN_INT_INTMAX, BT_FN_INT_UINTMAX): New.
23555 * builtins.def (BUILTIN_CLZxxx, BUILTIN_CTXxxx, BUILTIN_PARITYxxx,
23556 BUILTIN_POPCOUNTxxx): Arguments are unsigned.
23557 (BUILTIN_xxxIMAX): New.
23558 * builtins.c (expand_builtin): Handle BUILT_IN_FFSIMAX,
23559 BUILT_IN_CLZIMAX, BUILT_IN_CTZIMAX, BUILT_IN_POPCOUNIMAX, and
23560 BUILT_IN_PARITYIMAX.
23561
23562 2004-07-09 David S. Miller <davem@nuts.davemloft.net>
23563
23564 * config/sparc/sparc.h (processor_costs): Define.
23565 (sparc_costs): Declare.
23566 * config/sparc/sparc.c (cypress_costs, supersparc_costs,
23567 hypersparc_costs, sparclet_costs, ultrasparc_costs,
23568 ultrasparc3_costs): New.
23569 (sparc_override_options): Set sparc_costs as appropriate.
23570 (sparc_rtx_costs): Use sparc_costs instead of messy
23571 conditionals.
23572
23573 2004-07-09 Steven Bosscher <stevenb@suse.de>
23574
23575 * doc/md.texi (Processor pipeline description): Mention that
23576 the old pipeline description is deprecated.
23577
23578 * config/rs6000/7450.md (automaton ppc7450): Split up, move
23579 mciu_7450 function unit to...
23580 (automaton ppc7450mciu): ...new automaton.
23581
23582 * haifa-sched.c (insert_schedule_bubbles_p): Remove.
23583 (schedule_block): Don't consider inserting bubbles.
23584 (sched_init): Don't initialize DFA bubbles.
23585 * target-def.h (TARGET_SCHED_INIT_DFA_BUBBLES,
23586 TARGET_SCHED_DFA_BUBBLE): Remove.
23587 * target.h (init_dfa_bubbles, dfa_bubble): Remove hooks.
23588 * doc/tm.texi (TARGET_SCHED_INIT_DFA_BUBBLES,
23589 TARGET_SCHED_DFA_BUBBLE): Remove documentation.
23590
23591 * stmt.c (conditional_context): Remove prototype.
23592 * tree.h (conditional_context): Remove.
23593 * tree-cfg.c (pre_insert_on_edge): Remove.
23594
23595 * c-common.h (c_expand_asm_operands): Remove prototype.
23596 * c-typeck.c (c_expand_asm_operands): Remove.
23597
23598 2004-07-09 Jan Beulich <jbeulich@novell.com>
23599
23600 * config/i386/i386.c (classify_argument): Treat V1xx modes the same as
23601 their base modes. CTImode, TCmode, and XCmode must be passed in memory.
23602 TFmode (__float128) must be is an SSE/SSEUP pair. V2SImode, V4HImode,
23603 and V8QI are class SSE. All sufficiently small remaining vector modes
23604 must be passed in one or two integer registers.
23605 (ix86_libcall_value): TFmode must be returned in xmm0, XCmode must be
23606 returned in memory.
23607 (bdesc_2arg, ix86_init_mmx_sse_builtins): __builtin_ia32_pmuludq and
23608 __builtin_ia32_pmuludq128 have non-uniform argument and return types
23609 and must thus be handled explicitly.
23610 * config/i386/i386.md (*movdi_1_rex64): Add cases for moving between
23611 MMX and XMM regs.
23612 (movv8qi_internal, movv4hi_internal, movv2si_internal,
23613 movv2sf_internal): Permit moving between MMX and XMM registers (since
23614 MMX areguments and return values are passed in XMM registers).
23615 (sse2_umulsidi3): Correct type and mode.
23616
23617 2004-07-09 Richard Henderson <rth@redhat.com>
23618
23619 * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.
23620
23621 2004-07-09 Eric Christopher <echristo@redhat.com>
23622
23623 * config/rs6000/40x.md: Split into two automatons.
23624
23625 2004-07-09 Zack Weinberg <zack@codesourcery.com>
23626 Andrew Pinski <apinski@apple.com>
23627
23628 * c-opts.c (c_common_post_options): Force unit-at-a-time mode
23629 on when we have more than one input file.
23630 (c_common_parse_file): Restore loop over all input files.
23631 Clarify diagnostic for -dy when YYDEBUG wasn't defined.
23632
23633 * c-decl.c (set_type_context): New function.
23634 (pop_scope): Use it to set context of types. When we
23635 encounter a TYPE_DECL, set the context of the attached type too.
23636 (pop_file_scope): Don't call cpp_undef_all here.
23637 (diagnose_mismatched_decls): Do not complain about a second
23638 definition of an 'extern inline' function if it's not in the
23639 same translation unit. Do not complain about inline
23640 declaration after use if the use was in a different
23641 translation unit.
23642 (merge_decls): Don't clobber olddecl's DECL_CONTEXT.
23643 (pushdecl): Do not put DECL_EXTERNAL, !TREE_PUBLIC decls in
23644 the external scope.
23645 (pushdecl_top_level): Likewise.
23646 (grokdeclarator): Clarify what is going on with setting
23647 DECL_EXTERNAL on function types, a little.
23648 (c_write_global_declarations): Don't do anything if
23649 -fsyntax-only or errors have been encountered.
23650
23651 2004-07-09 Zack Weinberg <zack@codesourcery.com>
23652
23653 * vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.
23654
23655 2004-07-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23656
23657 PR target/16459
23658 * pa.c (output_indirect_call): Use %r2 as the link register when
23659 calling $$dyncall with a pc-relative branch.
23660
23661 2004-07-08 Gerald Pfeifer <gerald@pfeifer.com>
23662
23663 * doc/install.texi (Binaries): Mention OpenPKG.
23664
23665 2004-07-09 Diego Novillo <dnovillo@redhat.com>
23666
23667 Fix PR tree-optimization/15555
23668 * tree-dfa.c (dump_variable): If the variable is a pointer
23669 SSA_NAME, also dump its points-to information.
23670 * tree-flow.h (struct ptr_info_def): Add field
23671 is_dereferenced.
23672 (dump_points_to_info_for): Declare.
23673 (debug_points_to_info_for): Declare.
23674 * tree-optimize.c (init_tree_optimization_passes): Add a
23675 second alias analysis pass after DOM2.
23676 Move pass_del_pta to a later spot.
23677 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
23678 create a name tags when we find a dereferenced pointer. Just
23679 mark the pointer dereferenced.
23680 (collect_points_to_info_for): Move code to clear points-to
23681 information to create_name_tags.
23682 (create_name_tags): New function.
23683 (compute_flow_sensitive_aliasing): Call it.
23684 (setup_pointers_and_addressables): Mark type tags for renaming
23685 here instead of ...
23686 (create_memory_tag): ... here.
23687 (merge_pointed_to_info): Do not merge PT_MALLOC attributes.
23688 (dump_points_to_info_for): Declare extern.
23689 (debug_points_to_info_for): New function.
23690
23691 2004-07-09 Paolo Bonzini <bonzini@gnu.org>
23692
23693 * config/arc/arc.md: Switch to DFA-based scheduler description.
23694 * config/arc/arc.c: Switch to DFA-based scheduler description.
23695
23696 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
23697
23698 * arm/unknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame
23699 pointer.
23700
23701 2004-07-09 Richard Henderson <rth@redhat.com>
23702
23703 * config/xtensa/xtensa-protos.h (xtensa_va_arg): Remove.
23704 * config/xtensa/xtensa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23705 (xtensa_gimplify_va_arg_expr): Rewrite from xtensa_va_arg.
23706 * config/xtensa/xtensa.h (EXPAND_BUILTIN_VA_ARG): Remove.
23707
23708 * config/v850/v850-protos.h (v850_va_arg): Remove.
23709 * config/v850/v850.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23710 (v850_gimplify_va_arg_expr): Rewrite from v850_va_arg.
23711 * config/v850/v850.h (EXPAND_BUILTIN_VA_ARG): Remove.
23712 (FUNCTION_ARG_PASS_BY_REFERENCE): Handle variable size types.
23713 (FUNCTION_ARG_CALLEE_COPIES): Use FUNCTION_ARG_PASS_BY_REFERENCE.
23714
23715 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
23716
23717 PR target/12133
23718 * arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
23719 and DImode to use +/-4k offset.
23720
23721 2004-07-09 Richard Henderson <rth@redhat.com>
23722
23723 * config/stormy16/stormy16-protos.h (xstormy16_expand_builtin_va_arg):
23724 Remove.
23725 * config/stormy16/stormy16.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23726 (xstormy16_gimplify_va_arg_expr): Rewrite from
23727 xstormy16_expand_builtin_va_arg.
23728 * config/stormy16/stormy16.h (EXPAND_BUILTIN_VA_ARG): Remove.
23729
23730 * config/sparc/sparc-protos.h (sparc_va_arg): Remove.
23731 * config/sparc/sparc.c (sparc_gimplify_va_arg): Mark static.
23732
23733 * config/sh/sh-protos.h (sh_va_arg): Remove.
23734 * config/sh/sh.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23735 (sh_gimplify_va_arg_expr): Rewrite from sh_va_arg.
23736 * config/sh/sh.h (EXPAND_BUILTIN_VA_ARG): Remove.
23737
23738 * config/pa/pa-protos.h (hppa_va_arg): Remove.
23739 * config/pa/pa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23740 (hppa_gimplify_va_arg_expr): Rewrite from hppa_va_arg.
23741 * config/pa/pa.h (EXPAND_BUILTIN_VA_ARG): Remove.
23742
23743 * config/mn10300/mn10300-protos.h (mn10300_va_arg): Remove.
23744 * config/mn10300/mn10300.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23745 (mn10300_gimplify_va_arg_expr): Rewrite from mn10300_va_arg.
23746 * config/mn10300/mn10300.h (EXPAND_BUILTIN_VA_ARG): Remove.
23747
23748 2004-07-09 Eric Botcazou <ebotcazou@libertysurf.fr>
23749
23750 * config/sparc/sparc.md (return): Rewrite length formula.
23751 * config/sparc/sparc.c (output_return): Pass 1 as 5th
23752 argument to final_scan_insn when in a delay slot.
23753 (output_sibcall): Likewise.
23754
23755 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
23756
23757 * arm.c (arm_cpp_interwork): New variable.
23758 (arm_override_options): Set it if TARGET_INTERWORK was on the command
23759 line.
23760 * arm.h (arm_cpp_interwork): Declare it.
23761 (TARGET_CPU_CPP_BUILTINS): Use it to control definition of
23762 __THUMB_INTERWORK__ in the preprocessor.
23763
23764 2004-07-09 Nathan Sidwell <nathan@codesourcery.com>
23765
23766 * vec.h (VEC_T_alloc): Fix MEM_STAT_DECL pasto.
23767
23768 2004-07-09 Eric Botcazou <ebotcazou@libertysurf.fr>
23769
23770 PR target/16416
23771 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): New macro.
23772 Override default settings to account for -m32 and -m64.
23773
23774 2004-07-08 Randolph Chung <tausq@debian.org>
23775
23776 * pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
23777
23778 2004-07-09 Alexandre Oliva <aoliva@redhat.com>
23779
23780 * builtins.c (fold_builtin_strncpy): Make sure len is a constant
23781 before comparing it as such.
23782
23783 2004-07-08 Richard Henderson <rth@redhat.com>
23784
23785 * builtins.c (std_gimplify_va_arg_expr): Hoist valist into a
23786 temporary. Use bit arithmetic to align.
23787
23788 2004-07-08 Jerry Quinn <jlquinn@optonline.net>
23789
23790 * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p,
23791 nonlocal_set_p, init_alias_analysis): Use, LABEL_P, JUMP_P, CALL_P,
23792 NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P.
23793 * bb-reorder.c (mark_bb_for_unlikely_executed_section,
23794 add_labels_and_missing_jumps, find_jump_block,
23795 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
23796 Likewise.
23797 * bt-load.c (btr_referenced_p, compute_defs_uses_and_gen,
23798 link_btr_uses, move_btr_def): Likewise.
23799 * builtins.c (expand_builtin_longjmp, expand_builtin_nonlocal_goto,
23800 expand_builtin_expect_jump): Likewise.
23801 * caller-save.c (save_call_clobbered_regs, insert_one_insn): Likewise.
23802 * calls.c (expand_call, emit_library_call_value_1): Likewise.
23803 * cfganal.c (forwarder_block_p): Likewise.
23804 * cfgbuild.c (inside_basic_block_p, count_basic_blocks,
23805 make_label_edge, rtl_make_eh_edge, make_edges, find_basic_blocks_1,
23806 find_bb_boundaries): Likewise.
23807 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
23808 merge_blocks_move_predecessor_nojumps,
23809 merge_blocks_move_successor_nojumps, insns_match_p,
23810 flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
23811 try_optimize_cfg): Likewise.
23812 * cfgexpand.c (expand_block, construct_exit_block): Likewise.
23813 * cfglayout.c (skip_insns_after_block, label_for_bb,
23814 record_effective_endpoints, insn_locators_initialize,
23815 fixup_reorder_chain, update_unlikely_executed_notes): Likewise.
23816 * cfgmainloop.c (create_loop_notes): Likewise.
23817 * cfgrtl.c (delete_insn, delete_insn_chain,
23818 create_basic_block_structure, rtl_delete_block, free_bb_for_insn,
23819 update_bb_for_insn, rtl_merge_blocks, rtl_can_merge_blocks,
23820 block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
23821 redirect_branch_edge, force_nonfallthru_and_redirect,
23822 rtl_tidy_fallthru_edge, back_edge_of_syntactic_loop_p,
23823 rtl_split_edge, commit_one_edge_insertion, print_rtl_with_bb,
23824 update_br_prob_note, rtl_verify_flow_info_1, rtl_verify_flow_info,
23825 purge_dead_edges, cfg_layout_redirect_edge_and_branch,
23826 cfg_layout_delete_block, cfg_layout_can_merge_blocks_p,
23827 cfg_layout_merge_blocks, rtl_block_ends_with_call_p,
23828 need_fake_edge_p, rtl_flow_call_edges_add): Likewise.
23829 * combine.c (combine_instructions, can_combine_p, try_combine,
23830 find_split_point, record_dead_and_set_regs, reg_dead_at_p,
23831 distribute_notes, distribute_links, insn_cuid): Likewise.
23832 * cse.c (fold_rtx, cse_insn, cse_around_loop,
23833 invalidate_skipped_block, cse_set_around_loop,
23834 cse_end_of_basic_block, cse_main, cse_basic_block,
23835 cse_condition_code_reg): Likewise.
23836 * cselib.c (cselib_process_insn): Likewise.
23837 * ddg.c (create_ddg): Likewise.
23838 * df.c (df_insn_refs_record, df_bb_rd_local_compute, df_insns_modify):
23839 Likewise.
23840 * dwarf2out.c (dwarf2out_stack_adjust, dwarf2out_frame_debug,
23841 gen_label_die, dwarf2out_var_location): Likewise.
23842 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn,
23843 next_insn, previous_insn, next_nonnote_insn, prev_nonnote_insn,
23844 last_call_insn, active_insn_p, next_label, prev_label,
23845 link_cc0_insns, next_cc0_user, try_split, add_insn_after,
23846 add_insn_before, remove_insn, add_function_usage_to,
23847 reorder_insns, find_line_note, remove_unnecessary_notes,
23848 emit_insn_after_1, classify_insn): Likewise.
23849 * except.c (convert_from_eh_region_ranges_1, emit_to_new_bb_before,
23850 connect_post_landing_pads, sjlj_mark_call_sites,
23851 sjlj_emit_function_enter, sjlj_emit_function_exit, reachable_handlers,
23852 can_throw_internal, can_throw_external, set_nothrow_function_flags,
23853 convert_to_eh_region_ranges): Likewise.
23854 * explow.c (optimize_save_area_alloca): Likewise.
23855 * expr.c (expand_expr_real): Likewise.
23856 * final.c (insn_current_reference_address, compute_alignments,
23857 shorten_branches, final, scan_ahead_for_unlikely_executed_note,
23858 final_scan_insn, output_asm_label, leaf_function_p): Likewise.
23859 * flow.c (first_insn_after_basic_block_note, delete_dead_jumptables,
23860 propagate_block_delete_insn, propagate_one_insn,
23861 init_propagate_block_info, propagate_block, libcall_dead_p,
23862 mark_set_1, attempt_auto_inc, find_auto_inc, try_pre_increment):
23863 Likewise.
23864 * function.c (instantiate_virtual_regs, reorder_blocks_1,
23865 expand_function_start, expand_function_end, contains,
23866 thread_prologue_and_epilogue_insns,
23867 reposition_prologue_and_epilogue_notes): Likewise.
23868 * gcse.c (constprop_register, bypass_conditional_jumps,
23869 insert_insn_end_bb, gcse_after_reload): Likewise.
23870 * genemit.c (gen_expand, gen_split): Likewise.
23871 * genpeep.c (gen_peephole, main): Likewise.
23872 * global.c (build_insn_chain): Likewise.
23873 * graph.c (node_data, print_rtl_graph_with_bb): Likewise.
23874 * haifa-sched.c (unlink_other_notes, unlink_line_notes,
23875 get_block_head_tail, no_real_insns_p, rm_line_notes, save_line_notes,
23876 restore_line_notes, rm_redundant_line_notes, rm_other_notes,
23877 ok_for_early_queue_removal, set_priorities, sched_init): Likewise.
23878 * ifcvt.c (count_bb_insns, first_active_insn, last_active_insn,
23879 cond_exec_process_insns, end_ifcvt_sequence, noce_process_if_block,
23880 merge_if_block, block_jumps_and_fallthru_p, find_if_block,
23881 dead_or_predicable): Likewise.
23882 * integrate.c (try_constants): Likewise.
23883 * jump.c (rebuild_jump_labels, cleanup_barriers,
23884 purge_line_number_notes, init_label_info, mark_all_labels,
23885 squeeze_notes, get_label_before, get_label_after,
23886 reversed_comparison_code_parts, simplejump_p, pc_set,
23887 returnjump_p, onlyjump_p, follow_jumps, mark_jump_label,
23888 delete_barrier, delete_prior_computation, delete_computation,
23889 delete_related_insns, delete_for_peephole, redirect_jump):
23890 Likewise.
23891 * lcm.c (optimize_mode_switching): Likewise.
23892 * local-alloc.c (validate_equiv_mem, update_equiv_regs, block_alloc):
23893 Likewise.
23894 * loop-doloop.c (doloop_valid_p, doloop_optimize): Likewise.
23895 * loop-invariant.c (find_exits, find_invariants_bb): Likewise.
23896 * loop-iv.c (simplify_using_assignment): Likewise.
23897 * loop.c (compute_luids, loop_optimize, scan_loop, libcall_other_reg,
23898 libcall_benefit, skip_consec_insns, move_movables, prescan_loop,
23899 find_and_verify_loops, labels_in_range_p, for_each_insn_in_loop,
23900 loop_bivs_init_find, strength_reduce, check_insn_for_bivs,
23901 check_insn_for_givs, check_final_value, update_giv_derive,
23902 basic_induction_var, product_cheap_p, check_dbra_loop,
23903 loop_insn_first_p, last_use_this_basic_block,
23904 canonicalize_condition, get_condition, loop_regs_scan, load_mems,
23905 try_copy_prop, LOOP_BLOCK_NUM, loop_dump_aux): Likewise.
23906 * modulo-sched.c (doloop_register_get, find_line_note, sms_schedule,
23907 sms_schedule_by_order): Likewise.
23908 * optabs.c (emit_no_conflict_block, emit_libcall_block): Likewise.
23909 * postreload.c (reload_cse_simplify_operands, reload_combine,
23910 reload_cse_move2add): Likewise.
23911 * predict.c (can_predict_insn_p, estimate_probability,
23912 expected_value_to_br_prob, process_note_predictions): Likewise.
23913 * print-rtl.c (print_rtx, print_rtl, print_rtl_single): Likewise.
23914 * profile.c (branch_prob): Likewise.
23915 * ra-build.c (live_out_1, livethrough_conflicts_bb,
23916 detect_webs_set_in_cond_jump): Likewise.
23917 * ra-debug.c (ra_print_rtx_object, ra_debug_insns,
23918 ra_print_rtl_with_bb): Likewise.
23919 * ra-rewrite.c (insert_stores, rewrite_program2): Likewise.
23920 * recog.c (next_insn_tests_no_inequality, find_single_use,
23921 split_all_insns, peephole2_optimize, if_test_bypass_p): Likewise.
23922 * reg-stack.c (next_flags_user, record_label_references,
23923 emit_swap_insn, swap_rtx_condition, subst_stack_regs,
23924 compensate_edge, convert_regs_1): Likewise.
23925 * regclass.c (scan_one_insn): Likewise.
23926 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
23927 regmove_optimize, fixup_match_1, single_set_for_csa,
23928 combine_stack_adjustments_for_block): Likewise.
23929 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Likewise.
23930 * reload.c (find_reloads, find_reloads_address_1, subst_reloads,
23931 find_equiv_reg): Likewise.
23932 * reload1.c (reload, calculate_needs_all_insns, set_label_offsets,
23933 reload_as_needed, emit_input_reload_insns, do_output_reload,
23934 delete_output_reload, delete_address_reloads_1, fixup_abnormal_edges):
23935 Likewise.
23936 * reorg.c (find_end_label, emit_delay_sequence,
23937 delete_from_delay_slot, delete_scheduled_jump, optimize_skip,
23938 get_jump_flags, rare_destination, mostly_true_jump,
23939 try_merge_delay_insns, redundant_insn, own_thread_p,
23940 fill_simple_delay_slots, fill_slots_from_thread,
23941 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
23942 dbr_schedule): Likewise.
23943 * resource.c (find_basic_block, next_insn_no_annul,
23944 find_dead_or_set_registers, mark_target_live_regs): Likewise.
23945 * rtl.h (RTX_PREV): Likewise.
23946 * rtlanal.c (global_reg_mentioned_p, no_labels_between_p,
23947 no_jumps_between_p, reg_used_between_p, reg_referenced_between_p,
23948 reg_set_p, find_last_value, dead_or_set_regno_p, find_reg_fusage,
23949 find_regno_fusage, pure_call_p, replace_label, rtx_referenced_p_1,
23950 tablejump_p, computed_jump_p, insns_safe_to_move_p,
23951 find_first_parameter_load, can_hoist_insn_p): Likewise.
23952 * sched-deps.c (get_condition, add_dependence, sched_analyze_2,
23953 sched_analyze_insn, sched_analyze, add_forward_dependence): Likewise.
23954 * sched-ebb.c (fix_basic_block_boundaries, add_deps_for_risky_insns,
23955 schedule_ebbs): Likewise.
23956 * sched-rgn.c (is_cfg_nonregular, find_conditional_protection,
23957 is_conditionally_protected, can_schedule_ready_p,
23958 add_branch_dependences, debug_dependencies): Likewise.
23959 * stmt.c (emit_nop, expand_start_case, emit_jump_if_reachable):
23960 Likewise.
23961 * unroll.c (unroll_loop, copy_loop_body, back_branch_in_range_p,
23962 reg_dead_after_loop, loop_find_equiv_value, loop_iterations,
23963 set_dominates_use, ujump_to_loop_cont): Likewise.
23964 * var-tracking.c (prologue_stack_adjust, vt_initialize): Likewise.
23965 * varasm.c (output_constant_pool_1): Likewise.
23966
23967 2004-07-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
23968
23969 * tree-scalar-evolution.c: New file.
23970 * tree-scalar-evolution.h: New file.
23971 * tree-ssa-loop-niter.c: New file.
23972 * Makefile.in (SCEV_H): New.
23973 (tree-scalar-evolution.o, tree-ssa-loop-niter.o): Add new files.
23974 * cfgloop.h (struct loop): Add bounds field.
23975 * tree-flow.h (struct tree_niter_desc): New type.
23976 (number_of_iterations_cond, number_of_iterations_exit,
23977 loop_niter_by_eval, find_loop_niter_by_eval,
23978 estimate_numbers_of_iterations, can_count_iv_in_wider_type,
23979 free_numbers_of_iterations_estimates): Declare.
23980 * tree.h (lower_bound_in_type, upper_bound_in_type): Declare.
23981 * params.def (PARAM_MAX_ITERATIONS_TO_TRACK): New parameter.
23982 * doc/invoke.texi (max-iterations-to-track): Document.
23983
23984 2004-07-08 Kaz Kojima <kkojima@gcc.gnu.org>
23985
23986 * config/sh/sh.c (sh_va_arg): Initinalize lab_over.
23987 * config/sh/sh.h (CONST_OK_FOR_J16): Use parentheses.
23988 (MODE_AFTER): Add cast appropriately.
23989 * config/sh/sh.md (movdi splitter): Likewise.
23990 (casesi_worker_2): Add const qualifier appropriately.
23991 (eh_return): Remove unused variable.
23992 (insv): Initialize v;
23993
23994 2004-07-08 Richard Henderson <rth@redhat.com>
23995
23996 * config/mmix/mmix-protos.h (mmix_expand_builtin_va_arg): Remove.
23997 * config/mmix/mmix.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23998 (mmix_gimplify_va_arg_expr): Rewrite from mmix_expand_builtin_va_arg.
23999 * config/mmix/mmix.h (EXPAND_BUILTIN_VA_ARG): Remove.
24000 (FRAME_POINTER_REQUIRED): Use current_function_has_nonlocal_label.
24001
24002 * config/m32r/m32r-protos.h (m32r_va_arg): Remove.
24003 * config/m32r/m32r.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
24004 (m32r_gimplify_va_arg_expr): Rewrite from m32r_va_arg.
24005 * config/m32r/m32r.h (EXPAND_BUILTIN_VA_ARG): Remove.
24006
24007 * config/iq2000/iq2000-protos.h (iq2000_va_arg): Remove.
24008 * config/iq2000/iq2000.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
24009 (iq2000_gimplify_va_arg_expr): Rewrite from iq2000_va_arg.
24010 * config/iq2000/iq2000.h (EXPAND_BUILTIN_VA_ARG): Remove.
24011
24012 * config/frv/frv-protos.h (frv_expand_builtin_va_arg): Remove.
24013 * config/frv/frv.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
24014 (frv_gimplify_va_arg_expr): Rewrite from frv_expand_builtin_va_arg.
24015 * config/frv/frv.h (EXPAND_BUILTIN_VA_ARG): Remove.
24016
24017 * config/i860/i860-protos.h (i860_va_arg): Remove.
24018 * config/i860/i860.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
24019 (i860_gimplify_va_arg_expr): Rewrite from i860_va_arg.
24020 * config/i860/i860.h (EXPAND_BUILTIN_VA_ARG): Remove.
24021
24022 2004-05-31 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
24023
24024 * system.h: Prototype getpagesize if missing.
24025 * configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS.
24026 * configure: Regenerate.
24027 * config.in: Regenerate.
24028
24029 2004-07-08 Richard Henderson <rth@redhat.com>
24030
24031 * config/fr30/fr30-protos.h (fr30_va_arg): Remove.
24032 * config/fr30/fr30.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
24033 (fr30_gimplify_va_arg_expr): New.
24034 (fr30_pass_by_reference, fr30_pass_by_value, fr30_va_arg): Remove.
24035 * config/fr30/fr30.h (EXPAND_BUILTIN_VA_ARG): Remove.
24036
24037 2004-07-08 Vladimir Makarov <vmakarov@redhat.com>
24038
24039 PR target/16414
24040 * config/ia64/ia64.c (ia64_dfa_new_cycle): Fix typo in comparison
24041 of asm_noperands result.
24042
24043 2004-07-08 Richard Henderson <rth@redhat.com>
24044
24045 * config/cris/cris-protos.h (cris_expand_builtin_va_arg): Remove.
24046 * config/cris/cris.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
24047 (cris_gimplify_va_arg_expr): Rewrite from cris_expand_builtin_va_arg.
24048 * config/cris/cris.h (EXPAND_BUILTIN_VA_ARG): Remove.
24049
24050 2004-07-08 Richard Henderson <rth@redhat.com>
24051
24052 * builtins.c (ind_gimplify_va_arg_expr): New.
24053 * tree.h (ind_gimplify_va_arg_expr): Declare.
24054 * config/arc/arc.c (arc_gimplify_va_arg_expr): Use it.
24055
24056 2004-07-08 Jan Beulich <jbeulich@novell.com>
24057
24058 * expmed.c (extract_bit_field): Correct condition to use vec_extract
24059 patterns also on vector elements other than the first one.
24060 * config/i386/i386.md (vec_extractv2df, vec_extractv4sf): Add missing
24061 break statements.
24062
24063 2004-07-08 Geoffrey Keating <geoffk@apple.com>
24064
24065 * config/rs6000/darwin-ldouble.c: Correct reference
24066 to the Linnainmaa paper.
24067
24068 2004-07-08 Richard Henderson <rth@redhat.com>
24069
24070 * config/arc/arc-protos.h (arc_va_arg): Remove.
24071 * config/arc/arc.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
24072 (arc_gimplify_va_arg_expr): Rewrite from arc_va_arg.
24073 * config/arc/arc.h (EXPAND_BUILTIN_VA_ARG): Remove.
24074
24075 * config/c4x/c4x-protos.h (c4x_va_arg): Remove.
24076 * config/c4x/c4x.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
24077 (c4x_gimplify_va_arg_expr): Rewrite from c4x_va_arg.
24078 * config/c4x/c4x.h (EXPAND_BUILTIN_VA_ARG): Remove.
24079
24080 2004-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24081
24082 * pa.md (prefetch_32, prefetch_64): Simplify constraint checks.
24083
24084 2004-07-08 Zack Weinberg <zack@codesourcery.com>
24085
24086 * c-decl.c (static_ctors, static_dtors): Make static.
24087 (pop_file_scope): Call c_common_write_pch and
24088 cgraph_finalize_compilation_unit here.
24089 (build_cdtor): Moved here from c-objc-common.c; simplify.
24090 (c_write_global_declarations_1): Clarify comment.
24091 (c_write_global_declarations): Close the external scope before
24092 doing anything else. Call build_cdtor, cgraph_optimize, and
24093 mudflap_finish_file here.
24094 * c-lang.c (finish_file): Don't call c_objc_common_finish_file.
24095 Clarify comment.
24096 * c-objc-common.c: No need to include cgraph.h.
24097 (build_cdtor): Moved to c-decl.c.
24098 (c_objc_common_finish_file): Delete.
24099 * c-tree.h: Update to match.
24100 * objc/objc-act.c (finish_file): Don't call c_objc_common_finish_file.
24101 (generate_static_references): Set TREE_USED before calling finish_decl.
24102 Eliminate unnecessary dummy declaration. Call rest_of_decl_compilation
24103 on the static_instances_decl.
24104
24105 2004-07-08 Zack Weinberg <zack@codesourcery.com>
24106
24107 * c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope
24108 decls when there is only one input translation unit.
24109 * langhooks.c (lhd_set_decl_assembler_name): Partially revert
24110 change of 2004-07-05; do not treat declarations with
24111 DECL_CONTEXT a TRANSLATION_UNIT_DECL specially.
24112 * opts.c (cur_in_fname): Delete.
24113 * opts.h: Likewise.
24114 * tree.c: Revert changes of 2004-07-05; no special treatment
24115 for TRANSLATION_UNIT_DECLs.
24116 * Makefile.in (tree.o): Update dependencies.
24117
24118 2004-07-08 Roger Sayle <roger@eyesopen.com>
24119
24120 * builtins.c (fold_builtin_strcpy): Merge functionality from
24121 simplify_builtin_strcpy. Add additional len argument. No longer
24122 static. Remove function prototype.
24123 (fold_builtin_strncpy): Likewise integrate functionality from
24124 simplify_builtin_strncpy. Add additional slen argument. No
24125 longer static. Remove function prototype.
24126 (simplify_builtin_strcy, simplify_builtin_strncpy): Delete.
24127 (simplify_builtin_fputs): Rename to fold_builtin_fputs. Change
24128 types of "ignore" and "unlocked" parameters to bool.
24129 (fold_builtin_1): Add additional ignore argument. Call renamed
24130 fold_builtin_fputs to simplify GCC "fputs" and "fputs_unlocked"
24131 builtins. Update arguments to fold_builtin_strncpy and
24132 fold_builtin_strcpy. Add function prototype.
24133 (fold_builtin): Add additional Boolean ignore argument to pass
24134 to fold_builtin_1.
24135 (simplify_builtin): Call fold_builtin_fputs, fold_builtin_strcpy
24136 and fold_builtin_strncpy instead of simplify_builtin_fputs,
24137 simplify_builtin_strcpy and simplify_builtin_strncpy respectively.
24138
24139 * expr.h (simplify_builtin_fputs, simplify_builtin_strcpy,
24140 simplify_builtin_strncpy): Delete function prototypes.
24141 * tree.h (fold_builtin_fputs, fold_builtin_strcpy,
24142 fold_builtin_strncpy): Add function prototypes here.
24143 (fold_builtin): Update function prototype with new "bool ignore".
24144
24145 * tree-ssa-ccp.c (ccp_fold): Update call to fold_builtin.
24146 (ccp_fold_builtin): Update call to fold_builtin. Call
24147 fold_builtin_fputs, fold_builtin_strcpy and fold_builtin_strncpy
24148 instead of simplify_builtin_fputs, simplify_builtin_strcpy and
24149 simplify_builtin_strncpy respectively.
24150 * fold-const.c (fold): Update call to fold_builtin.
24151
24152 2004-07-08 Alexandre Oliva <aoliva@redhat.com>
24153
24154 * builtins.c (expand_builtin_stpcpy): Un-simplify decay of stpcpy
24155 to strcpy.
24156
24157 * expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0.
24158 (FUNCTION_ARG_PASS_BY_REFERENCE): Likewise.
24159 (FUNCTION_ARG_CALLEE_COPIES): Likewise.
24160 * calls.c: Remove ifdefs of macros above.
24161 * functions.c: Likewise.
24162 * expr.c: Likewise.
24163
24164 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
24165
24166 * config/sparc/sparc.md (UNSPECV_GOTO_V9): Delete.
24167 (arch attribute): Delete.
24168 (current_function_calls_alloca attribute): Rename into calls_alloca.
24169 (calls_eh_return): New attribute.
24170 (leaf_function): Likewise.
24171 (length attribute): Fix formula for sibcalls.
24172 (return insn): Correctly compute the 'length' attribute.
24173 (do_builtin_setjmp_setup): Adjust use of current_function_calls_alloca.
24174
24175 2004-07-08 Richard Henderson <rth@redhat.com>
24176
24177 * tree-cfg.c (make_exit_edges): Use get_call_expr_in.
24178 (remove_useless_stmts_1, is_ctrl_altering_stmt): Likewise.
24179 (tree_block_ends_with_call_p, need_fake_edge_p): Likewise.
24180 * tree-eh.c (lower_eh_constructs_1): Likewise.
24181 * tree-sra.c (sra_walk_modify_expr): Likewise.
24182 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
24183 (eliminate_unnecessary_stmts): Likewise.
24184 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
24185 * tree-tailcall.c (optimize_tail_call): Likewise.
24186 * tree-ssa-ccp.c (get_rhs, set_rhs): Reorg to use switch.
24187
24188 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
24189 Jakub Jelinek <jakub@redhat.com>
24190
24191 * config/i386/i386.c (override_options): Enable
24192 SSE prefetches with -mtune, as long as we are
24193 compiling for i686 or higher. All i686 processors
24194 accept SSE prefetches as NOPS, some i586's don't.
24195
24196 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
24197
24198 PR target/10567
24199 * config/sparc/sparc.md (update_return): Honor flag_delayed_branch.
24200
24201 2004-07-08 Diego Novillo <dnovillo@redhat.com>
24202
24203 * tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in
24204 the handling of clobbering ASM_EXPRs.
24205
24206 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
24207
24208 PR target/16430
24209 * config/sparc/sparc.c (function_value): In 64-bit mode,
24210 return the aggregates larger than 16 bytes like unions.
24211
24212 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
24213
24214 PR target/16199
24215 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): When
24216 'temp' is zero, generate new pseudos as needed and emit the
24217 sequence of insns in single-assignment form. Resync comments
24218 with code.
24219 (sparc_emit_set_const64): Pass zero as 'temp' argument to above
24220 function before reload.
24221
24222 2004-07-08 Nathan Sidwell <nathan@codesourcery.com>
24223
24224 * vec.c (vec_assert_fail): Remove duplicate 'function'.
24225
24226 * vec.c (vec_p_reserve, vec_o_reserve): Allocation is signed.
24227
24228 * vec.h (VEC_alloc, VEC_embedded_size, VEC_embedded_init):
24229 Allocation is signed.
24230 (VEC_reserve): Return flag, allocation is signed.
24231
24232 2004-07-08 Richard Henderson <rth@redhat.com>
24233
24234 * tree-ssa-ccp.c (fold_stmt): Get type directly from
24235 OBJ_TYPE_REF_OBJECT.
24236
24237 2004-07-08 Joseph S. Myers <jsm@polyomino.org.uk>
24238 Neil Booth <neil@daikokuya.co.uk>
24239
24240 PR c/2511
24241 PR c/3325
24242 * c-decl.c (finish_struct): Ensure bit-fields are given the
24243 correct type.
24244 * c-common.c (c_common_signed_or_unsigned_type): For C, require
24245 the precision to match as well as the mode.
24246 * expr.c (reduce_to_bit_field_precision): New function.
24247 (expand_expr_real_1): Reduce expressions of bit-field type to
24248 proper precision.
24249 * langhooks.h (reduce_bit_field_operations): New hook.
24250 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
24251 Define.
24252 * c-lang.c, objc/objc-lang.c
24253 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define.
24254 * objc/objc-act.c (check_ivars): Convert types to bit-field types
24255 before checking.
24256 * tree.c (build_nonstandard_integer_type): New function.
24257 * tree.h (build_nonstandard_integer_type): New prototype.
24258 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't treat
24259 conversions between integer and boolean types as useless.
24260
24261 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
24262
24263 * c-common.c (c_common_nodes_and_builtins): Do not
24264 create __builtin_ptrdiff_t and __builtin_size_t.
24265
24266 2004-07-08 Andrew Pinski <apinski@apple.com>
24267
24268 * Makefile.in (libbackend.o): Add -combine to the gcc
24269 command line.
24270
24271 2004-07-08 Nick Clifton <nickc@redhat.com>
24272
24273 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Define.
24274 Set to -Os.
24275
24276 2004-07-08 Richard Henderson <rth@redhat.com>
24277
24278 * except.c (expand_eh_region_start, expand_eh_region_end,
24279 expand_eh_handler, expand_eh_region_end_cleanup,
24280 expand_start_all_catch, expand_start_catch, expand_end_catch,
24281 expand_end_all_catch, expand_eh_region_end_allowed,
24282 expand_eh_region_end_must_not_throw, expand_eh_region_end_throw,
24283 expand_eh_region_end_fixup): Remove.
24284 * stmt.c (struct nesting): Remove stack_level, innermost_stack_block,
24285 cleanups, outer_cleanups, label_chain, exception_region.
24286 (struct goto_fixup): Remove stack_level, cleanup_list_list.
24287 (struct label_chain): Remove.
24288 (struct stmt_status): Remove x_stack_block_stack.
24289 (stack_block_stack, expand_goto_internal, expand_fixup, expand_fixups,
24290 fixup_gotos, save_stack_pointer, expand_decl_cleanup,
24291 expand_decl_cleanup_eh, expand_cleanups, start_cleanup_deferral,
24292 end_cleanup_deferral, last_cleanup_this_contour,
24293 containing_blocks_have_cleanups_or_stack_level,
24294 any_pending_cleanups): Remove.
24295 (expand_null_return_1): Take no arguments.
24296 (expand_label, expand_naked_return, expand_return,
24297 expand_start_bindings_and_block, expand_end_bindings, expand_decl,
24298 expand_anon_union_decl, expand_start_case, pushcase, pushcase_range,
24299 expand_end_case_type): Don't use any of them.
24300 * calls.c (expand_call): Likewise.
24301 * dojump.c (do_jump): Likewise.
24302 * function.c (expand_function_end): Likewise.
24303 * expr.c (store_expr, expand_expr_real_1): Likewise.
24304 (safe_from_p): Don't handle WITH_CLEANUP_EXPR, CLEANUP_POINT_EXPR.
24305 (expand_expr_real_1): Don't handle WITH_CLEANUP_EXPR,
24306 CLEANUP_POINT_EXPR, TARGET_EXPR, TRY_CATCH_EXPR, CATCH_EXPR,
24307 EH_FILTER_EXPR, TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR.
24308 * fold-const.c (fold_checksum_tree): Use first_rtl_op.
24309 * gengtype.c (adjust_field_tree_exp): Remove rtl op handling.
24310 * gimplify.c (gimplify_cleanup_point_expr): Renumber operands
24311 for WITH_CLEANUP_EXPR.
24312 (gimple_push_cleanup): Likewise.
24313 * integrate.c (copy_decl_for_inlining): Don't DECL_TOO_LATE.
24314 * print-tree.c (print_node): Likewise.
24315 * tree-pretty-print.c (dump_generic_node): Remove GOTO_SUBROUTINE_EXPR.
24316 * tree.c (first_rtl_op): Always just TREE_CODE_LENGTH.
24317 (has_cleanups): Remove GOTO_SUBROUTINE_EXPR.
24318 * tree.def (WITH_CLEANUP_EXPR): Remove op1 and op2.
24319 (GOTO_SUBROUTINE_EXPR): Remove.
24320 * tree.h (WITH_CLEANUP_EXPR_RTL): Remove.
24321 (DECL_TOO_LATE): Remove.
24322 * except.h, tree.h: Update decls.
24323
24324 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
24325
24326 * explow.c (optimize_save_area_alloca): Do not accept parameters.
24327 * passes.c (rest_of_handle_final): Handle symout.
24328 (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc):
24329 Push timevar here.
24330 (rest_of_handle_sched): Break out SMS. Remove ifs for
24331 flag_schedule_insns and flag_modulo_sched.
24332 (rest_of_handle_addressof, rest_of_handle_cse2): Garbage
24333 collect at the end.
24334 (rest_of_handle_gcse2): Put under timevar TV_RELOAD_CSE_REGS.
24335 (rest_of_handle_partition_blocks, rest_of_handle_sms,
24336 rest_of_handle_if_after_reload, rest_of_handle_peephole2,
24337 rest_of_handle_mode_switching, rest_of_handle_jump,
24338 rest_of_handle_guess_branch_prob, rest_of_handle_eh,
24339 rest_of_handle_jump2, rest_of_handle_postreload,
24340 rest_of_handle_flow2, rest_of_clean_state,
24341 rest_of_handle_shorten_branches,
24342 rest_of_handle_prologue_epilogue,
24343 rest_of_handle_branch_target_load_optimize): New.
24344 (rest_of_compilation): Call the above. Remove ggc_collect
24345 calls moved to rest_of_handle_*.
24346 * rtl.h (optimize_save_area_alloca): Do not accept parameters.
24347
24348 * dwarf2out.c (dwarf2out_begin_prologue): Use TREE_NOTHROW.
24349 * except.c (set_nothrow_function_flags): Set TREE_NOTHROW.
24350 * except.h (set_nothrow_function_flags): Update comment.
24351 * function.c (current_function_nothrow): Remove.
24352 * output.h (current_function_nothrow): Remove.
24353 * passes.c (rest_of_compilation): Do not set TREE_NOTHROW.
24354 * config/arm/arm.c (arm_compute_func_type): Use TREE_NOTHROW.
24355
24356 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
24357
24358 PR bootstrap/16326
24359 * reorg.c: Revert 2004-06-30 change.
24360 (find_end_label): If HAVE_epilogue and !HAVE_return,
24361 return 0 instead of creating a label at the end of the insn chain.
24362 (optimize_skip): Account for the failure mode of find_end_label.
24363 (fill_simple_delay_slots): Likewise.
24364 (fill_slots_from_thread): Likewise.
24365 (relax_delay_slots): Likewise.
24366
24367 2004-07-08 Diego Novillo <dnovillo@redhat.com>
24368
24369 * tree-flow.h (addressable_vars): Declare.
24370 * tree-ssa-alias.c (addressable_vars): Define.
24371 (setup_pointers_and_addressables): Add addressable variables
24372 to addressable_vars.
24373 * tree-ssa-operands.c (get_stmt_operands): Move
24374 handling of ASM_EXPRs ...
24375 (get_asm_expr_operands): ... here.
24376 When the ASM_EXPR clobbers memory, also clobber addressable
24377 variables.
24378 * tree-ssa.c (init_tree_ssa): Initialize addressable_vars.
24379 (delete_tree_ssa): Reset addressable_vars.
24380
24381 2004-07-07 Jan Beulich <jbeulich@novell.com>
24382 Richard Henderson <rth@redhat.com>
24383
24384 * varasm.c (assemble_variable): Use assemble_zeros for
24385 zero-initialized variables.
24386 (categorize_decl_for_section): Honor flag_zero_initialized_in_bss
24387 for SECCAT_BSS and SECCAT_TBSS.
24388
24389 2004-07-07 Jan Beulich <jbeulich@novell.com>
24390
24391 * varasm.c (asm_output_bss): Don't declare unless BSS_SECTION_ASM_OP.
24392
24393 * expmed.c (emit_store_flag): Also special-case double-word
24394 (in-)equality comparison against -1.
24395
24396 * config/i386/i386.c (ix86_gimplify_va_arg): Don't need temporary for
24397 passing arguments the containers for which are registers.
24398
24399 * calls.c (emit_library_call_value_1): Use mode of function parameter
24400 rather than that of argument since constants have none.
24401
24402 2004-07-08 Alexandre Oliva <aoliva@redhat.com>
24403
24404 Introduce H8SX support.
24405 * expr.c (expand_strcpy): Renamed and moved to...
24406 * builtins.c (expand_movstr): ... here. Tweak.
24407 (expand_builtin_strcpy): Adjust. Use movstr if len can't be
24408 computed or has side effects.
24409 (expand_builtin_stpcpy): Likewise. Use strcpy if return value is
24410 unused, or if mempcpy fails. Adjust the return value in the
24411 latter case. Use movstr if everything else fails.
24412 * doc/md.texi (movstr): Document.
24413 (movmemM, clrmemM): Fix explanation of memory block operands.
24414 * config/h8300/h8300.md (stpcpy): Renamed to...
24415 (movstr): ... this. Adjust.
24416 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
24417 * config/h8300/h8300.md: Rename movstr*, except for movstrict*, to
24418 movmem* and clrstr* to clrmem*.
24419 2004-06-27 Alexandre Oliva <aoliva@redhat.com>
24420 * config/h8300/h8300.c (h8300_reg_class_from_letter): Map 'D' to
24421 GENERAL_REGS, always.
24422 (h8300_swap_into_er6, h8300_swap_into_er6): Handle the case of
24423 getting the stack pointer as addr.
24424 * config/h8300/h8300.h (PREDICATE_CODES): Remove constant rtxes
24425 from general_operand_dst.
24426 * config/h8300/h8300.md (movmd_internal_normal): New, normal-mode
24427 variant of...
24428 (movmd_internal): ... this. Add modes to operands. Disparage `D'
24429 instead of requiring it to match only before reload.
24430 (stpcpy_internal_normal): New, normal-mode variant of...
24431 (stpcpy_internal): ... this. Add modes to operands. Disparage
24432 `D' instead of requiring it to match only before reload.
24433 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Add
24434 mode argument.
24435 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Pass it to...
24436 * config/h8300/h8300.c (h8300_legitimate_address_p): Pass it to
24437 h8300_get_index.
24438 * config/h8300/h8300.md (attr type): Add call.
24439 (attr can_delay): If type is call, set it no.
24440 (call, call_value): Set type to call.
24441 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
24442 * config/h8300/h8300.md (logicalhi3_sn, logicalsi3_sn): New.
24443 2004-06-16 Alexandre Oliva <aoliva@redhat.com>
24444 * tree.c (get_narrower): Don't narrow integral types into
24445 non-integral types.
24446 * config/h8300/h8300.c (h8300_expand_epilogue): Initialize
24447 frame_size *before* the first use.
24448 * config/h8300/h8300.md (movstrictqi): Reintroduce post-increment
24449 on input.
24450 (peephole2): Don't widen instructions that push SP. Move
24451 decrement of SP to the end of all stm-generating peepholes.
24452 2003-07-24 Richard Sandiford <rsandifo@redhat.com>
24453 * config/h8300/h8300.md (insv): Prefer to use AND to clear a bitfield
24454 and OR to set it to all ones.
24455 2003-07-24 Richard Sandiford <rsandifo@redhat.com>
24456 * config/h8300/h8300.md (can_delay): Default to "no" for bit branches.
24457 (call, call_value): Set can_delay to "no".
24458 2003-07-22 Richard Sandiford <rsandifo@redhat.com>
24459 * config/h8300/h8300.md (extzv): Make subreg check more robust.
24460 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
24461 * config/h8300/h8300.md (*brabit): Remove.
24462 * config/h8300/h8300.md (*brabc, *brabs): Remove mode from
24463 zero_extract. Use bit_memory_operand as the predicate for
24464 operand 1 and 'WU' as the constraint. Check the difference
24465 between the base length and the final one when deciding which
24466 type of branch to use.
24467 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
24468 * config/h8300/h8300.md (extzv): Remove mode from operands 0 and 1.
24469 Use convert_move to extend the result for TARGET_H8300SX. Check
24470 for QImode memory references. Optimize the case where the
24471 destination is a paradoxical subreg.
24472 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
24473 * config/h8300/h8300.md (*movsf_h8sx): Add an r <- G alternative.
24474 * config/h8300/h8300.md (andqi): Remove bclr from h8sx version.
24475 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
24476 * config/h8300/h8300.md: Include mova.md
24477 (length_table): Add mova and mova_zero.
24478 * config/h8300/h8300.c (print_operand): Handle '%o'. Print a length
24479 after all constant addresses for '%R', '%X', '%T' and '%S'.
24480 (h8300_mova_length): New function.
24481 (h8300_insn_length_from_table): Use it to handle mova and mova_zero.
24482 * config/h8300/t-h8300 (mova.md): Generate from genmova.sh. Add to
24483 dependencies for s-config, etc.
24484 * config/h8300/gemova.sh: New file.
24485 * config/h8300/mova.md: Generated.
24486 2003-07-20 Alexandre Oliva <aoliva@redhat.com>
24487 * config/h8300/h8300.c (h8300_bitfield_length): New.
24488 (nibble_operand): Adjust.
24489 (h8300_binary_length): Handle conditional binary op.
24490 (h8300_insn_length_from_table): Handle bitfield and bitbranch.
24491 * config/h8300/h8300.h: Change constraints W# and Y# to P#>X and
24492 P#<X, respectively. The original P is now IP4>X. Introduced P#>0
24493 and P#<0, unused so far. W and Y are now prefixes to multi-letter
24494 constraints. WU is introduced as a variant of U that requires a
24495 mem, and is therefore considered an EXTRA_MEMORY_CONSTRAINT.
24496 * config/h8300/h8300.md (attr type): Added bitbranch.
24497 (attr length_table): Added bitfield and bitbranch.
24498 (attr length): Compute bitbranch length.
24499 (andqi): Separate pattern for H8300SX. Use bfld for loading the
24500 least-significant bit of a byte.
24501 (brabit, brabc, brabs): New.
24502 (insv, extzv): Emit bfst and bfld on H8300SX.
24503 (bfld, bfst, seq, sne): New.
24504 (bstzhireg, cmpstz, bstz, bistz): New.
24505 (cmpcondbset, condbset, cmpcondbclr, condbclr): New.
24506 (cmpcondbsetreg, condbsetreg, cmpcondbclrreg, condbclrreg): New.
24507 2003-07-11 Richard Sandiford <rsandifo@redhat.com>
24508 * config/h8300/h8300.c (h8sx_binary_memory_operator): New function.
24509 (h8sx_unary_memory_operator): New function.
24510 * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Disable.
24511 (PREDICATE_CODES): Add h8sx_{unary,binary}_memory_operator.
24512 * config/h8300/h8300.md: Add peepholes to combine reloads and
24513 arithmetic insns.
24514 2003-07-10 Richard Sandiford <rsandifo@redhat.com>
24515 * config/h8300/h830.md (cmpqi): Use 'i' rather than 'n' in constraints.
24516 (*cmphi_h8300hs, *addqi3, *addhi3_h8sx, subhi3): Likewise.
24517 (and?i, ior?i, xor?i): Likewise.
24518 2003-07-10 Richard Sandiford <rsandifo@redhat.com>
24519 * config/h8300/h8300.c: Move enums and prototypes to head of file.
24520 Various whitespace fixes.
24521 (h8300_constant_length): New function, split out from...
24522 (h8300_displacement_size): ...here. Rename h8300_displacement_length.
24523 (h8300_classify_operand): Use IN_RANGE.
24524 (h8300_classify_operand): Use h8300_constant_length.
24525 (h8300_short_move_mem_p): Tighten size check.
24526 (h8sx_mergeable_memrefs_p): Tighten equality check.
24527 2003-06-30 Richard Sandiford <rsandifo@redhat.com>
24528 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Define __H8300SX__
24529 for -msx.
24530 * config/h8300/crti.asm: Use .h8300sx or .h8300sxn for -msx code.
24531 * config/h8300/crtn.asm: Likewise.
24532 * config/h8300/lib1funcs.asm: Likewise. Use 32-bit pointers
24533 if __H8300SX__ is defined.
24534 2003-06-27 Richard Sandiford <rsandifo@redhat.com>
24535 * config/h8300/h8300-protos.h (h8300_get_index): Add mode parameter.
24536 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Update accordingly.
24537 (GO_IF_MODE_DEPENDENT_ADDRESS): Treat POST_DEC, PRE_INC and indexed
24538 addresses as mode-dependent.
24539 * config/h8300/h8300.c (print_operand_address): Update call to
24540 h8300_get_index.
24541 (h8300_get_index): Take a mode argument. Rework to fix an
24542 earlier misunderstanding.
24543 2003-06-26 Richard Sandiford <rsandifo@redhat.com>
24544 * config/h8300/h8300.c (zero_extendqisi2): Force the source operand
24545 into a register if TARGET_H8300SX.
24546 (*zero_extendqisi2_h8300hs, *extendqisi2_h8300): Disable for
24547 TARGET_H8300SX. Also disable related define_splits.
24548 (*zero_extendqisi2_h8sx, *extendqisi2_h8sx): New patterns.
24549 2003-06-23 Richard Sandiford <rsandifo@redhat.com>
24550 * config/h8300/h8300.c (h8300_rtx_costs): Add h8sx handling.
24551 2003-06-20 Richard Sandiford <rsandifo@redhat.com>
24552 * config/h8300/h8300.h (OK_FOR_Z): New macro.
24553 (EXTRA_CONSTRAINT_STR): Check it.
24554 * config/h8300/h8300.c (h8300_classify_operand): Accept null
24555 class arguments.
24556 (h8300_insn_length_from_table): Handle LENGTH_TABLE_MOV_IMM4.
24557 * config/h8300/h8300.md (length_table): Add mov_imm4.
24558 (movqi, movhi): Add Z <- W4 alternatives to h8sx patterns.
24559 2003-06-20 Richard Sandiford <rsandifo@redhat.com>
24560 * genattrtab.c (write_eligible_delay): Allow candidate_insn to
24561 be a label.
24562 * config/h8300/h8300.h (DELAY_SLOT_LENGTH): New macro.
24563 * config/h8300/h8300.c (h8300_reorg): New function.
24564 (TARGET_MACHINE_DEPENDENT_REORG): Define.
24565 * config/h8300/h8300.md (length): Subtract the length of the
24566 delay slot from (pc) when checking the range of forward branches.
24567 (delay_slot, can_delay): New attributes.
24568 (define_delay): Add bra/s handling.
24569 (movmd_internal, return_h8sx, *return_1): Set can_delay to no.
24570 (jump): Add delayed-branch handling.
24571 2003-06-17 Richard Sandiford <rsandifo@redhat.com>
24572 * expr.c (expand_strcpy): New function.
24573 * builtins.c (expand_builtin_strcpy): Fall back on expand_strcpy.
24574 (expand_builtin_stpcpy): Likewise.
24575 * config/h8300/h8300-protos.h (h8sx_split_movmd): Remove.
24576 (h8300_swap_into_er6, h8300_swap_out_of_er6): Declare.
24577 * config/h8300/h8300.c (h8300_reg_class_from_letter): Tweak 'd'
24578 handling to improve register allocation for -fno-omit-frame-pointer.
24579 (h8sx_split_movmd): Delete, moving er6 handling into...
24580 (h8300_swap_into_er6, h8300_swap_out_of_er6): ...these new functions.
24581 * config/h8300/h8300.md (UNSPEC_STPCPY): New unspec constant.
24582 (movmd): Add calls to copy_rtx.
24583 (movmd_internal): In the second alternative, allow the initial and
24584 final destination registers to be different . Update the splitter
24585 accordingly. Call h8300_swap_into_er6 and h8300_swap_out_of_er6
24586 instead of h8sx_split_movmd.
24587 (stpcpy, movsd): New expanders.
24588 (movsd_internal): New define_insn.
24589 2003-06-13 Richard Sandiford <rsandifo@redhat.com>
24590 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Declare.
24591 (h8sx_emit_movmd, h8sx_split_movmd): Declare.
24592 * config/h8300/h8300.h (reg_class): Add COUNTER_REGS, SOURCE_REGS
24593 and DESTINATION_REGS.
24594 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
24595 (REGNO_REG_CLASS): Map er4, er5 and er6 to the new classes.
24596 (REG_CLASS_FROM_LETTER): Use h8300_reg_class_from_letter.
24597 (h8300_move_ratio): Declare.
24598 (MOVE_RATIO): Use it.
24599 * config/h8300/h8300.c (h8300_move_ratio): New variable.
24600 (h8300_init_once): Initialize it.
24601 (h8300_reg_class_from_letter): New function.
24602 (print_operand): Add an 'm' prefix for printing ".b", ".w" or ".l".
24603 (h8sx_emit_movmd, h8sx_split_movmd): New functions.
24604 * config/h8300/h8300.md (UNSPEC_MOVMD): New unspec constant.
24605 (COUNTER_REG, SOURCE_REG, DESTINATION_REG): New register constants.
24606 (movstrsi, movmd): New expanders.
24607 (movmd_internal): New insn.
24608 2003-06-06 Richard Sandiford <rsandifo@redhat.com>
24609 * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Define.
24610 2003-06-04 Richard Sandiford <rsandifo@redhat.com>
24611 * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxnelf for -msx -mn.
24612 * config/h8300/h8300.c (asm_file_start): Use .h8300sxn likewise.
24613 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
24614 * config/h8300/h8300.c (nibble_operand): Fix warning.
24615 * config/h8300/h8300.md (movstricthi): Set adjust_length to no.
24616 (movsi_h8sx): Likewise here and the normal h8sx movhi pattern.
24617 (movsf_h8300h): Disable for TARGET_H8300SX.
24618 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
24619 * config/h8300/h8300.h (PREDICATE_CODES): Add h8300_ldm_parallel,
24620 h8300_stm_parallel and h8300_return_parallel.
24621 * config/h8300/h8300.c (h8300_push_pop, h8300_stack_offset_p,
24622 h8300_ldm_stm_regno, h8300_ldm_stm_parallel, h8300_ldm_parallel,
24623 h8300_stm_parallel, h8300_return_parallel): New functions.
24624 (h8300_expand_prologue): Don't enforce ldm/stm register alignment
24625 if TARGET_H8300SX. Use h8300_push_pop.
24626 (h8300_expand_epilogue): Likewise. Try to merge the return insn
24627 and final pop when generating h8sx code. Always emit some form
24628 of return insn.
24629 * config/h8300/h8300.md: Don't enforce register alignment in
24630 stm peepholes if TARGET_H8300SX.
24631 (ldm_h8300s, stm_h8300s, return_h8sx): New patterns.
24632 (ldm_h8300s_[234], stm_h8300_[234]): Disable.
24633 (epilogue): Expect h8300_expand_epilogue to emit a return insn.
24634 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
24635 * config/h8300/t-h8300 (MULTILIB_OPTIONS): Add a -msx multilib.
24636 (MULTILIB_DIRNAMES): Add a directory for it.
24637 (MULTILIB_MATCHES): Delete.
24638 2003-05-28 Richard Sandiford <rsandifo@redhat.com>
24639 * final.c (walk_alter_subreg): Handle addresses with subregs
24640 inside a ZERO_EXTEND or AND.
24641 * config/h8300/h8300-protos.h (h8300_get_index): Declare.
24642 * config/h8300/h8300.h (INDEX_REG_CLASS): Set to GENERAL_REGS
24643 if TARGET_H8300SX.
24644 (GO_IF_LEGITIMATE_ADDRESS): Use h8300_get_index.
24645 * config/h8300/h8300.c (print_operand_address): Handle @(dd,RnL.b),
24646 @(dd,Rn.w) and @(dd,ERn.L).
24647 (h8300_displacement_size): Take the whole address as argument.
24648 (h8300_classify_operand, h8300_short_move_mem_p): Adjust accordingly.
24649 2003-05-28 Richard Sandiford <rsandifo@redhat.com>
24650 * config/mips/mips-protos.h (h8300_operands_match_p): Declare.
24651 (h8sx_mergeable_memrefs_p): Declare.
24652 * config/h8300/h8300.h (HAVE_POST_DECREMENT): Define to TARGET_H8300SX.
24653 (HAVE_PRE_INCREMENT): Likewise.
24654 (GO_IF_LEGITIMATE_ADDRESS): Accept pre/post increment/decrement
24655 addresses for TARGET_H8300SX,
24656 * config/h8300/h8300.c (print_operand_address): Deal with PRE_INC
24657 and POST_DEC.
24658 (movb_length_table, movl_length_table): New tables.
24659 (movw_length_table): Define to movb_length_table.
24660 (h8300_displacement_size): New, split out from...
24661 (h8300_classify_address): ...here. Handle pre/post inc/dec.
24662 (h8300_short_immediate_length): Allow H8OP_MEM_COMPLEX operands.
24663 (h8300_insn_length_from_table): Add cases for movb, movw and movl.
24664 (h8sx_mergeable_memrefs_p, h8300_operands_match_p): New functions.
24665 (output_plussi): Use add.l #xx:3,Rn and sub.l #xx:3,Rn for h8sx.
24666 (compute_plussi_length, compute_plussi_cc): Update accordingly.
24667 (h8sx_unary_shift_operator): Get the mode from the operator.
24668 (binary_shift_operator): Likewise.
24669 * config/h8300/h8300.md: If a peephole2 applies gen_lowpart to
24670 a memory reference, check whether the reference is offsettable.
24671 (length_table): Add movb, movw and movl.
24672 (movqi): Add new h8sx pattern. Don't force one operand to be a
24673 register when generating h8sx code.
24674 (movhi, movsi, movsf): Likewise.
24675 (movstrictqi): Use the length_table attribute.
24676 (movstricthi): Likewise. Add h8sx alternative for mov.w #xx:3,Rn.
24677 (addqi3): Split into a define_expand and define_insn. Don't accept
24678 memory operands in the expander. Use h8300_operands_match_p to
24679 check for matching operands in the define_insn.
24680 (subqi3, negqi2, one_cmplqi2): Likewise.
24681 (add[hs]i3): Don't accept memory operands in the expander. Likewise
24682 in any patterns that are unused in h8sx code. In the h8sx patterns,
24683 use h8300_operands_match_p to check whether operands match.
24684 (sub[hs]i3, and[hi]3, ior[hs]i3, xor[hs]i3, neg[hsi]3,
24685 one_cmpl[hs]i3): Likewise.
24686 (andqi3, iorqi3, xorqi3): Likewise. Don't call fix_bit_operand
24687 in the expander.
24688 2003-05-23 Richard Sandiford <rsandifo@redhat.com>
24689 * config/h8300/h8300-protos.h (expand_a_shift): Return a bool.
24690 (h8300_insn_length_from_table): Add a second parameter.
24691 (output_h8sx_shift): Declare.
24692 * config/h8300/h8300.h (OK_FOR_W, OK_FOR_Y): New macros.
24693 (EXTRA_CONSTRAINT): Replace with...
24694 (EXTRA_CONSTRAINT_STR): ...this. Use OK_FOR_W and OK_FOR_Y.
24695 (CONSTRAINT_LEN): Define, returning 2 for 'W' and 'Y'.
24696 (PREDICATE_CODES): Add entries for h8sx_unary_shift_operator
24697 and h8sx_binary_shift_operator.
24698 * config/h8300/h8300.c (two_insn_adds_subs_operand): Return false
24699 for TARGET_H8300SX.
24700 (bit_operand): Replace use of EXTRA_CONSTRAINT with OK_FOR_U.
24701 (bit_memory_operand, fix_bit_operand): Likewise.
24702 (h8300_length_table_for_insn): Remove.
24703 (h8300_classify_operand): Fix check for 16-bit operands in 32-bit
24704 instructions.
24705 (h8300_short_immediate_length, h8300_binary_length): New functions.
24706 (h8300_insn_length_from_table): Add an opcodes parameter. Rework.
24707 (output_plussi): Use sub to add negative constants.
24708 (compute_plussi_length): Adjust accordingly.
24709 (h8sx_single_shift_type): New enum.
24710 (h8sx_single_shift, h8sx_unary_shift_operator,
24711 h8sx_binary_shift_operator, output_h8sx_shift): New functions.
24712 (expand_a_shift, expand_a_rotate): Emit nothing if the shift is a
24713 single h8sx instruction. Return false in this case.
24714 * config/h8300/h8300.md (length_table): Add short_immediate.
24715 (length): Pass the operand array to h8300_insn_length_from_table.
24716 (adjust_length): Assume "no" for insns with a length_table attribute.
24717 (*cmphi_h8300hs, cmpsi): Add alternatives for #xx:3.
24718 (*addhi3_h8300hs): Don't use for h8sx.
24719 (*addhi3_h8sx): New pattern, with alternatives for add.w #xx:3
24720 and sub.w #xx:3.
24721 (ashl[qhs]i3, lshr[qhs]i3, ashr[qhs]i3, rotl[qhs]i3): Change operand
24722 1's predicate to nonimmediate_operand. Only skip default expansion
24723 if expand_a_shift or expand_a_rotate returns true. Add new patterns
24724 for single h8sx shift instructions.
24725 2003-05-22 Alexandre Oliva <aoliva@redhat.com>
24726 * config/h8300/h8300.c (nibble_operand): Split out of...
24727 (reg_or_nibble_operand): ... this.
24728 * config/h8300/h8300.h (PREDICATE_CODES): Added nibble_operand.
24729 * config/h8300/h8300.md: (mulqihi3, mulhisi3, umulqihi3,
24730 umulhisi3): Introduce expand, and introduce separate insns for
24731 sign- or zero-extended REG and already-extended CONST_INT.
24732 2003-05-20 Richard Sandiford <rsandifo@redhat.com>
24733 * config/h8300/h8300.c (h8300_unary_length): Fix miscounting.
24734 * config/h8300/h8300.md (subqi3): Generalize for h8sx.
24735 (subhi3): Likewise. Don't accept immediates for operand 1.
24736 Remove the early clobber from second alternative of the h8300s pattern.
24737 (subsi3): Generalize for h8sx. Force operand 2 into a register
24738 on plain h8300 targets.
24739 (subsi3_h8300): Use h8300_dst_operand for consistency with expander.
24740 (subsi3_h8300h): Generalize for h8sx.
24741 (one_cmplqi2, one_cmplhi2, one_cmplsi2): Likewise.
24742 2003-05-19 Alexandre Oliva <aoliva@redhat.com>
24743 * config/h8300/h8300.c (reg_or_nibble_operand): New.
24744 * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
24745 (TARGET_H8300SXMUL): New.
24746 (CONST_OK_FOR_P): New.
24747 (CONST_OK_FOR_LETTER_P): Adjust.
24748 * config/h8300/h8300.md (mulqihi3, mulhisi3, umulqihi3,
24749 umulhisi3): Accept 4-bit immediate on H8SX.
24750 (mulhi3, mulsi3, smulsi3_highpart, umulsi3_highpart): New.
24751 (udivsi3, divhi3, udivsi3, divsi3): New.
24752 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
24753 * config/h8300/h8300-protos.h (h8300_insn_length_from_table): Declare.
24754 * config/h8300/h8300.h (OK_FOR_Q): New macro.
24755 (EXTRA_CONSTRAINT): Use it to check the 'Q' constraint.
24756 (PREDICATE_CODES): Add h8300_src_operand and h8300_dst_operand.
24757 Add ADDRESSOF to the bit_operand entry.
24758 * config/h8300/h8300.c (h8300_dst_operand): New predicate.
24759 (h8300_src_operand): Likewise.
24760 (bit_operand): Check nonimmediate_operand rather than general_operand.
24761 Accept any nonimmediate_operand in h8sx code.
24762 (h8300_and_costs): Initialize operands[1].
24763 (h8300_rtx_costs) <AND>: Return false if the operands aren't valid.
24764 (h8300_operand_class): New enum.
24765 (h8300_length_table): New typedef.
24766 (addb_length_table, addw_length_table, addl_length_table,
24767 logicl_length_table): New tables.
24768 (logicb_length_table, logicw_length_table): New macros.
24769 (h8300_classify_operand, h8300_length_from_table,
24770 h8300_length_table_for_insn, h8300_unary_length,
24771 h8300_insn_length_from_table): New functions.
24772 (output_plussi): Only use adds and subs for register destinations.
24773 Disable redundant clause.
24774 (compute_plussi_cc): Likewise.
24775 (compute_plussi_length): Likewise. Use h8300_length_from_table
24776 to work out the length of an insn.
24777 (output_logical_op): Only use narrower immediate instructions
24778 if the destination is a register.
24779 (compute_logical_op_cc): Likewise.
24780 (compute_logical_op_length): Likewise. Use h8300_length_from_table.
24781 (h8300_adjust_insn_length): Tighten check for reg<->mem moves.
24782 * config/h8300/h8300.md (length_table): New attribute.
24783 (length): When an instruction has a length_table attribute, use
24784 h8300_insn_length_from_table to calculate its default length.
24785 (cmpqi): Use h8300_dst_operand for the first operand and
24786 h8300_src_operand for the second.
24787 (cmphi, *cmphi_h8300hs, cmpsi, negqi2, neghi2, neghi2_h8300h, negsi2,
24788 negsi2_h8300h, addqi3, addhi3, *addhi3_h8300, *addhi3_h8300hs, addsi3,
24789 addsi_h8300, addsi_h8300h, andhi3, andsi3, iorhi3,
24790 iorsi3, xorhi3, xorsi3): Likewise.
24791 (andqi3): Use h8300_src_operand for operand 2. Adjust the condition
24792 so that it allows any combination of operands for TARGET_H8300SX.
24793 (iorqi3, xorqi3): Likewise.
24794 (cmpqi): Use the length_table attribute.
24795 (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, andqi3, iorqi3,
24796 xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
24797 (cmpqi): Add 'Q' constraint.
24798 (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, addsi_h8300h, andqi3,
24799 iorqi3, xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
24800 2003-05-14 Richard Sandiford <rsandifo@redhat.com>
24801 * config/h8300/h8300.h (MASK_H8300SX): New macro.
24802 (TARGET_H8300S): True for both -ms and -msx.
24803 (TARGET_H8300SX): New macro.
24804 (TARGET_SWITCHES): Add entries for -msx and -mno-sx.
24805 * config/h8300/h8300.c (asm_file_start): Write .h8300sx for -msx.
24806 * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxelf for -msx.
24807 * config/h8300/t-h8300 (MULTILIB_MATCHES): Use -ms multilibs for -msx.
24808 [Temporary change.]
24809 2003-02-28 Alexandre Oliva <aoliva@redhat.com>
24810 * config/h8300/h8300.h (SIZE_TYPE, PTRDIFF_TYPE): Use short with
24811 16-bit pointers and 32-bit ints.
24812 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Accept
24813 CONST_DOUBLE with mode no wider than SImode.
24814 * config/h8300/h8300.md (extendqisi2_h8300): Add constraints for
24815 output operand.
24816 2003-02-27 Alexandre Oliva <aoliva@redhat.com>
24817 * config/h8300/h8300.c (general_operand_src): Match CONSTANT_P_RTX
24818 or SUBREG thereof.
24819 * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
24820 2003-02-22 Alexandre Oliva <aoliva@redhat.com>
24821 * config/h8300/h8300.c (dosize): Truncate sign * size to Pmode.
24822
24823 2004-05-28 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
24824
24825 * config.gcc (i[34567]86-*-mingw32*): Enable threads by default.
24826
24827 2004-07-07 Per Bothner <per@bothner.com>
24828
24829 * flow.c (attempt_auto_inc): Remove now-redundant PUT_CODE.
24830
24831 2004-07-07 Mike Stump <mrs@apple.com>
24832
24833 * darwin.h (ASM_OUTPUT_LABELREF): Fix -fno-leading-underscore.
24834 * darwin.c (machopic_non_lazy_ptr_name, machopic_stub_name)
24835 (machopic_finish): Likewise.
24836
24837 2004-07-07 Richard Henderson <rth@redhat.com>
24838
24839 * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look
24840 through any value-preserving cast.
24841
24842 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
24843
24844 * function.c (assign_parm_find_data_types): Call
24845 FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.
24846
24847 2004-07-07 Steven Bosscher <stevenb@suse.de>
24848
24849 * tree-cfg.c (group_case_labels): Remove case labels that have
24850 the same target as the default case.
24851
24852 2004-07-07 Steven Bosscher <stevenb@suse.de>
24853
24854 * tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS
24855 regardless of DECL_LANG_SPECIFIC being present or not.
24856 * tree.h (DECL_NUM_STMTS): Purge.
24857
24858 2004-07-07 Andrew Pinski <apinski@apple.com>
24859
24860 * configure: Regenerate with the right autoconf.
24861
24862 2004-07-07 David Edelsohn <edelsohn@gnu.org>
24863
24864 * ifcvt.c (total_bb_rtx_cost): New function.
24865 (find_if_case_1): Compare rtx_cost of basic block to cost of
24866 BRANCH_COST insns.
24867 (find_if_case_2): Same.
24868
24869 2004-07-07 Eric Botcazou <ebotcazou@libertysurf.fr>
24870
24871 PR target/10567
24872 * config/sparc/sparc.c (load_pic_register): Honor flag_delayed_branch.
24873 (output_return): Likewise.
24874 (output_sibcall): Abort if !flag_delayed_branch.
24875 (sparc_function_ok_for_sibcall): Return 0 if !flag_delayed_branch.
24876 (emit_and_preserve): New function.
24877 (sparc_output_mi_thunk): Use it. Honor flag_delayed_branch. Emit an
24878 indirect jump to the thunked-to function if !flag_delayed_branch.
24879 * config/sparc/sparc.md (delayed_branch): New attribute.
24880 (load_pcrel_sym): Honor flag_delayed_branch. Use above
24881 attribute to compute the length of the insn.
24882 (goto_handler_and_restore): Likewise.
24883
24884 2004-07-07 Andrew Pinski <apinski@apple.com>
24885
24886 PR tree-optimization/15777
24887 * fold-const.c (fold_single_bit_test): Fold the x^1 expression.
24888
24889 * expr.c (expand_expr_real_1): Fix formating.
24890 BUFFER_REF and IN_EXPR are dead.
24891 * fold-const.c (non_lvalue): BUFFER_REF is dead.
24892 * tree-inline.c (estimate_num_insns_1): Likewise.
24893 * tree-pretty-print.c (dump_generic_node): BUFFER_REF,
24894 IN_EXPR, SET_LE_EXPR, and CARD_EXPR are dead.
24895 * tree.def (BUFFER_REF, IN_EXPR, SET_LE_EXPR, CARD_EXPR): Kill.
24896
24897 2004-07-07 H.J. Lu <hongjiu.lu@intel.com>
24898
24899 * collect2.c (dump_file): Don't call cplus_demangle if
24900 HAVE_LD_DEMANGLE is defined.
24901 (main): Pass "--demangle" to ld if no_demangle is not 0 and
24902 HAVE_LD_DEMANGLE is defined. Don't set current_demangling_style
24903 if HAVE_LD_DEMANGLE is defined.
24904
24905 * configure.ac (--with-demangler-in-ld): Added
24906 (HAVE_LD_DEMANGLE): Define if ld supports --demangle when
24907 --with-demangler-in-ld is used.
24908 * config.in: Regenerated.
24909 * configure: Likewise.
24910
24911 2004-07-07 Roger Sayle <roger@eyesopen.com>
24912
24913 * config/rs6000/rs6000.c (struct processor_costs): Add new fields
24914 for simple floating point operations "fp", double precision
24915 multiplication "dmul", and single and double precision division
24916 "sdiv" and "ddiv". Update all CPU variant tables as appropriate.
24917 (ppc630_cost): New table split from ppc620_cost, to distinguish
24918 differences in floating point latencies.
24919 (rs6000_override_options): Use ppc630_cost for PROCESSOR_PPC630.
24920 (rs6000_rtx_costs): Add support for single and double precision
24921 floating point addition, subtraction, multiplication, division,
24922 fused-multiply-add, fused-multiply-sub, negation, absolute value
24923 and negative absolute value. Tweak MEM case to use prefered idiom.
24924
24925 2004-07-07 Richard Henderson <rth@redhat.com>
24926
24927 * tree-flow-inline.h (may_propagate_copy): Move...
24928 * tree-ssa-copy.c (may_propagate_copy): ... here. Fail if we
24929 attempt to copy between types requiring conversion.
24930 * tree-flow.h (may_propagate_copy): Update decl.
24931 * tree-ssa-dom.c (cprop_operand): Tidy redundant tests.
24932
24933 2004-07-07 Jakub Jelinek <jakub@redhat.com>
24934
24935 * config/i386/i386.c (override_options): Don't set x86_prefetch_sse
24936 from -mtune= option.
24937
24938 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
24939
24940 * builtins.c: Rename movstr*, except for movstrict*, to
24941 movmem* and clrstr* to clrmem*.
24942 * expr.c: Likewise.
24943 * expr.h: Likewise.
24944 * genopinit.c: Likewise.
24945 * integrate.c: Likewise.
24946 * local-alloc.c: Likewise.
24947 * optabs.c: Likewise.
24948 * optabs.h: Likewise.
24949 * config/alpha/alpha.h: Likewise.
24950 * config/alpha/alpha.md: Likewise.
24951 * config/arm/arm-protos.h: Likewise.
24952 * config/arm/arm.c: Likewise.
24953 * config/arm/arm.md: Likewise.
24954 * config/avr/avr.md: Likewise.
24955 * config/c4x/c4x.c: Likewise.
24956 * config/c4x/c4x.md: Likewise.
24957 * config/frv/frv.md: Likewise.
24958 * config/i386/i386-protos.h: Likewise.
24959 * config/i386/i386.c: Likewise.
24960 * config/i386/i386.h: Likewise.
24961 * config/i386/i386.md: Likewise.
24962 * config/i860/i860.c: Likewise.
24963 * config/i860/i860.md: Likewise.
24964 * config/ip2k/ip2k.md: Likewise.
24965 * config/ip2k/libgcc.S: Likewise.
24966 * config/ip2k/t-ip2k: Likewise.
24967 * config/m32r/m32r.c: Likewise.
24968 * config/m32r/m32r.md: Likewise.
24969 * config/mcore/mcore.md: Likewise.
24970 * config/mips/mips.c: Likewise.
24971 * config/mips/mips.md: Likewise.
24972 * config/ns32k/ns32k.c: Likewise.
24973 * config/ns32k/ns32k.h: Likewise.
24974 * config/ns32k/ns32k.md: Likewise.
24975 * config/pa/pa.c: Likewise.
24976 * config/pa/pa.md: Likewise.
24977 * config/pdp11/pdp11.h: Likewise.
24978 * config/pdp11/pdp11.md: Likewise.
24979 * config/rs6000/rs6000.c: Likewise.
24980 * config/rs6000/rs6000.md: Likewise.
24981 * config/s390/s390-protos.h: Likewise.
24982 * config/s390/s390.c: Likewise.
24983 * config/s390/s390.md: Likewise.
24984 * config/sh/lib1funcs.asm: Likewise.
24985 * config/sh/sh.c: Likewise.
24986 * config/sh/sh.md: Likewise.
24987 * config/sh/t-sh: Likewise.
24988 * config/sparc/sparc.h: Likewise.
24989 * config/vax/vax.md: Likewise.
24990 * config/xtensa/xtensa.c: Likewise.
24991 * config/xtensa/xtensa.md: Likewise.
24992 * doc/invoke.texi: Likewise.
24993 * doc/md.texi: Likewise.
24994 * doc/rtl.texi: Likewise.
24995
24996 2004-07-07 Richard Sandiford <rsandifo@redhat.com>
24997
24998 PR target/16407
24999 * config/mips/mips-protos.h (mips_declare_common_object): Declare.
25000 * config/mips/mips.c (mips_declare_common_object): New function,
25001 mostly split out from...
25002 (mips_output_aligned_decl_common): ...here.
25003 * config/mips/mips.h (ASM_OUTPUT_LOCAL): Remove in favor of...
25004 (ASM_OUTPUT_ALIGNED_LOCAL): ...this new definition.
25005 * config/mips/iris6.h (ASM_OUTPUT_ALIGNED_LOCAL): Undefine this
25006 rather than ASM_OUTPUT_LOCAL. Call mips_declare_common_object.
25007
25008 2004-07-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25009
25010 PR c/16392
25011 * function.c (assign_parms): Fix typo from previous change.
25012
25013 2004-07-07 Jason Merrill <jason@redhat.com>
25014
25015 PR c++/15815
25016 * doc/extend.texi (C++ Interface): Correct information and
25017 discourage use.
25018
25019 2004-07-07 Vladimir Makarov <vmakarov@redhat.com>
25020
25021 PR target/16130
25022 PR target/16142
25023 PR target/16143
25024 * config/ia64/ia64.c (ia64_dfa_new_cycle): Reset DFA state for asm
25025 insn.
25026
25027 2004-07-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
25028
25029 PR target/1679.
25030 * config/m32r/m32r.c (m32r_function_symbol): New function:
25031 Generate a symbol name RTX with the correct m32r specific flags
25032 set.
25033 (block_move_call): Use new function to generate correct symbol.
25034 * config/m32r/m32r-protos.h: Add prototype for new funcion.
25035 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Use the new
25036 function.
25037
25038 2004-07-07 Nathan Sidwell <nathan@codesourcery.com>
25039
25040 * tree.h (TYPE_BINFO_OFFSET, TYPE_BINFO_VTABLE,
25041 TYPE_BINFO_VIRTUALS, TYPE_BINFO_BASETYPES,
25042 TYPE_BINFO_BASETYPE): Remove.
25043 (BINFO_BASETYPES, BINFO_N_BASETYPES, BINFO_BASETYPE): Rename
25044 to ...
25045 (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): ...
25046 here.
25047 (BINFO_BASEACCESSES, BINFO_BASEACCESS): Rename to ...
25048 (BINFO_BASE_ACCESSES, BINFO_BASE_ACCESS): ... here.
25049 (BINFO_INHERITANCE_CHAIN): Redocument as it is actually used.
25050 (struct tree_binfo): Rename base_types to base_binfos.
25051 * alias.c (record_component_aliases): Adjust BINFO macros.
25052 * dbxout.c (dbxout_type): Likewise.
25053 * dwarf2out.c (gen_member_die): Likewise.
25054 * sdbout.c (sdbout_one_type): Likewise.
25055 * tree-dump.c (deque_and_dump): Likewise.
25056 * config/i386/i386.c (classify_argument,
25057 contains_128bit_aligned_vector_p): Likewise.
25058
25059 2004-07-07 Nick Clifton <nickc@redhat.com>
25060
25061 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Change
25062 arguments to match TARGET_SETUP_INCOMING_VARARGS prototype.
25063
25064 2004-07-07 Nathan Sidwell <nathan@codesourcery.com>
25065
25066 * vec.h: Fix the example use.
25067
25068 2004-07-06 Richard Henderson <rth@redhat.com>
25069
25070 * langhooks-def.h (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Remove.
25071 * langhooks.h (struct lang_hooks): Remove gimple_before_inlining.
25072 * tree-inline.c (copy_body_r, setup_one_parameter,
25073 initialize_inlined_parameters, expand_call_inline,
25074 declare_inline_vars): Don't check it.
25075 (expand_calls_inline): Remove old version, rename new version
25076 from gimple_expand_calls_inline.
25077 * tree-optimize.c (execute_gimple): Remove.
25078 (pass_gimple): Don't run anything.
25079
25080 2004-07-06 Joseph S. Myers <jsm@polyomino.org.uk>
25081
25082 * doc/sourcebuild.texi: Use semicolons instead of commas in
25083 section title.
25084
25085 2004-07-06 Richard Henderson <rth@redhat.com>
25086
25087 * tree-sra.c (struct sra_walk_fns): Revert 2004-07-05 change.
25088 (sra_walk_modify_expr, scan_init): Likewise.
25089 (generate_element_zero): Check visited before scanning children.
25090 (generate_element_init): Set visited on error.
25091 (scalarize_init): Handle generate_element_init failure similar
25092 to use_block_copy.
25093
25094 2004-07-06 Joseph S. Myers <jsm@polyomino.org.uk>
25095
25096 * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Define.
25097 (warning, error, pedwarn, sorry): Use ATTRIBUTE_GCC_FE_DIAG.
25098
25099 2004-07-06 Richard Henderson <rth@redhat.com>
25100
25101 * config/i386/i386.c (legitimize_pic_address): Make static.
25102 (legitimize_address): Handle CONST with TLS operand.
25103 (ix86_expand_move): Don't call legitimize_pic_address directly.
25104 * config/i386/i386-protos.h (legitimize_pic_address): Remove.
25105
25106 2004-07-06 Roger Sayle <roger@eyesopen.com>
25107
25108 * ifcvt.c (struct noce_if_info): Add a Boolean b_unconditional field.
25109 (noce_try_sign_mask): Tweak rtx_cost check if t is evaluated anyway.
25110 (noce_process_if_block): Initialize if_info.b_unconditional if insn_b
25111 is currently executed unconditionally, i.e. not in "else_bb".
25112
25113 2004-07-06 Steven Bosscher <stevenb@suse.de>
25114
25115 * config/alpha/alpha.c (alpha_use_dfa_pipeline_interface): Remove.
25116 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
25117 * config/arm/arm.c (arm_use_dfa_pipeline_interface): Remove.
25118 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
25119 * config/frv/frv.c (frv_use_dfa_pipeline_interface): Remove.
25120 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
25121 * config/i386/i386.c (ia32_use_dfa_pipeline_interface): Remove.
25122 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
25123 * config/ia64/ia64.c (ia64_use_dfa_pipeline_interface): Remove.
25124 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
25125 * config/pa/pa.c (hhpa_use_dfa_pipeline_interface): Remove.
25126 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
25127 * config/sparc/sparc.c (sparc_use_dfa_pipeline_interface): Remove.
25128 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
25129 * config/v850/v850.c (v850_use_dfa_pipeline_interface): Remove.
25130 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
25131
25132 2004-07-06 Daniel Berlin <dberlin@dberlin.org>
25133
25134 * dojump.c (do_jump): REFERENCE_EXPR is dead.
25135 * expr.c (expand_expr_real_1): Ditto.
25136 * tree-inline.c (estimate_num_insns_1): Ditto.
25137 * tree-pretty-print.c (dump_generic_node): Ditto.
25138 (op_symbol): Ditto.
25139 * tree.def: Ditto.
25140
25141 2004-07-06 Daniel Berlin <dberlin@dberlin.org>
25142
25143 * tree-ssa-pre.c (reference_node_pool): New pool.
25144 (find_or_generate_expression): Class 'r' is okay too.
25145 (create_value_expr_from): Ditto.
25146 (add_to_sets): LHS should not include vuses.
25147 (eliminate): Ditto.
25148 (compute_avail): Reverse ordering of tests.
25149 Valuize INDIRECT_REF as well.
25150
25151 2004-07-06 Richard Sandiford <rsandifo@redhat.com>
25152
25153 PR rtl-optimization/16380
25154 * loop.c (check_dbra_loop): Sink comparison instructions if they
25155 do something other than set cc0.
25156
25157 2004-07-06 James E Wilson <wilson@specifixinc.com>
25158
25159 * doc/interface.texi (longjmp and automatic variables): Delete
25160 paragraph recommending taking the address of a variable.
25161
25162 2004-07-06 Nathan Sidwell <nathan@codesourcery.com>
25163
25164 * vec.h (VEC_embedded_alloc): Remove.
25165 (VEC_embedded_size, VEC_embedded_init): New.
25166 (VEC_alloc, VEC_reserve, VEC_safe_push, VEC_safe_insert): Add
25167 MEM_STAT_INFO.
25168 (VEC_truncate): New.
25169 (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL.
25170 (vec_embedded_alloc): Remove.
25171 * vec.c (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL, adjust.
25172 (vec_embedded_alloc): Remove.
25173
25174 2004-07-06 Mark Mitchell <mark@codesourcery.com>
25175
25176 * Makefile.in (langhooks.o): Do not depend on gt-langhooks.h.
25177 (gt-langhooks.h): Remove.
25178
25179 2004-07-06 George Helffrich <george@gly.bris.ac.uk>
25180
25181 * xcoffout.h (DBX_FINISH_SYMBOL): Fix typo.
25182
25183 2004-07-06 Eric Botcazou <ebotcazou@libertysurf.fr>
25184
25185 * config/sparc/sparc.c (get_pc_symbol): Rename into
25186 add_pc_to_pic_symbol.
25187 (get_pc_symbol_name): Rename into add_pc_to_pic_symbol_name.
25188 (load_pic_register): Account for previous changes.
25189 Use reg_names. Don't create the label twice.
25190 * config/sparc/sparc.md (UNSPEC_GET_PC): Rename into
25191 UNSPEC_LOAD_PCREL_SYM.
25192 (get_pc): Rename into load_pcrel_sym. Add predicate to
25193 operands. Remove condition.
25194
25195 2004-07-06 Nathan Sidwell <nathan@codesourcery.com>
25196
25197 * dbxout.c (dbxout_type): Don't test whether the binfo slot of
25198 RECORD, UNION & QUAL_UNION is actually a binfo.
25199
25200 * tree.h (TREE_VIA_VIRTUAL): Rename to ...
25201 (BINFO_VIRTUAL_P): ... here. Require TREE_BINFO only.
25202 (BINFO_MARKED, BINFO_FLAG_[16]): New binfo flags.
25203 * dbxout.c (dbxout_type): Use BINFO_VIRTUAL_P.
25204 * dwarf2out.c (add_data_member_location_attribute): Likewise.
25205 (gen_inheritance_die): Likewise.
25206 * tree-dump.c (deque_and_dump): Likewise.
25207 * doc/c-tree.texi (Binfos): Add under reconstruction note.
25208
25209 2004-07-06 Steven Bosscher <stevenb@suse.de>
25210
25211 * config/mcore/mcore.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
25212 Define.
25213 * config/mcore/mcore.md: Model memory latency with a simple DFA
25214 pipeline description instead of a define_function_unit.
25215
25216 2004-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25217
25218 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Extra arg.
25219 * langhooks.h (var_mod_type_p): Likewise.
25220 * c-decl.c (finish_decl): Add extra arg to variably_modified_type_p.
25221 * expr.c (count_type_elements): Properly handle return from
25222 array_type_nelts and properly test for overflow.
25223 * gimplify.c (gimplify_init_constructor): Properly handle return
25224 from array_type_nelts.
25225 (gimplify_addr_expr): Remove redundant clear of TREE_SIDE_EFFECTS.
25226 * integrate.c (copy_decl_for_inlining): Correct comments.
25227 * tree-inline.c (remap_decl): Update comments, remove dead code,
25228 and copy DECL_FIELD_OFFSET and DECL_QUALIFIER, if they exist.
25229 (remap_type): Only remap if variably modified by vars in function
25230 being inlined.
25231 (copy_body_r): Use compatible_type langhooks to see when can fold.
25232 (setup_one_parameter): Don't remap type.
25233 (inline_forbidden_p_1): Add arg to variably_modified_type_p.
25234 * tree.c (recompute_tree_invarant_for_addr_expr): Properly
25235 compute TREE_INVARIANT for decl case.
25236 (find_var_from_fn): New function.
25237 (variably_modified_type_p): Add arg and call new function.
25238 * tree.h (variably_modified_type_p): Add extra arg.
25239
25240 2004-07-05 Eric Botcazou <ebotcazou@libertysurf.fr>
25241
25242 * config/sparc/sparc.md (nonlocal_goto): Remove disabled code.
25243 (goto_handler_and_restore_v9): Delete disabled insn.
25244 (goto_handler_and_restore_v9_sp64): Likewise.
25245
25246 2004-07-05 Roger Sayle <roger@eyesopen.com>
25247
25248 * calls.c (load_register_parameters): Call expand_shift instead
25249 of expand_binop with ashl_optab (or other shift optab) directly.
25250 * expr.c (emit_group_load, emit_group_store): Likewise.
25251 * function.c (assign_parm_setup_block): Likewise.
25252 * stmt.c (shift_return_value): Likewise.
25253
25254 2004-07-05 Jakub Jelinek <jakub@redhat.com>
25255
25256 * expr.c (expand_assignment): Disable the bitfield += optimizations.
25257
25258 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
25259
25260 * doc/sourcebuild.texi: Revert previous patch.
25261
25262 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
25263
25264 * c-decl.c, config/m32r/m32r.c, expr.c, optabs.c: Don't check
25265 TARGET_MEM_FUNCTIONS.
25266 * system.h: Poison TARGET_MEM_FUNCTIONS.
25267 * libfuncs.h (LTI_bcopy, LTI_bcmp, LTI_bzero, bcopy_libfunc,
25268 bcmp_libfunc, bzero_libfunc): Remove.
25269 * optabs.c (init_obtabs): Don't set bcopy_libfunc, bcmp_libfunc or
25270 bzero_libfunc.
25271 * doc/tm.texi (TARGET_MEM_FUNCTIONS): Remove.
25272 * doc/standards.texi: Don't mention calling BSD string functions.
25273 * doc/invoke.texi: Likewise. Mention that memmove may be called.
25274 * config/vax/t-memfuncs: New.
25275 * config/memcmp.c, config/memcpy.c, config/memmove.c,
25276 config/memset.c: New.
25277 * config/pdp11/t-pdp11 (LIB2FUNCS_EXTRA): Use these files.
25278 * config.gcc (vax-*-bsd*, vax-*-sysv*, vax-*-ultrix*): Use
25279 vax/t-memfuncs.
25280 * config/alpha/alpha.h, config/arc/arc.h, config/arm/arm.h,
25281 config/avr/avr.h, config/c4x/c4x.h, config/cris/aout.h,
25282 config/elfos.h, config/gnu.h, config/h8300/h8300.h,
25283 config/i386/gas.h, config/ia64/ia64.h, config/interix.h,
25284 config/ip2k/ip2k.h, config/lynx-ng.h, config/m32r/m32r.h,
25285 config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h,
25286 config/netbsd.h, config/openbsd.h, config/pa/pa.h,
25287 config/rs6000/rs6000.h, config/rtems.h, config/s390/s390.h,
25288 config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
25289 config/svr3.h: Don't define TARGET_MEM_FUNCTIONS.
25290
25291 2004-07-05 Richard Henderson <rth@redhat.com>
25292
25293 * function.c (assign_parm_setup_reg): Properly rename variables in
25294 FUNCTION_ARG_CALLEE_COPIES section.
25295
25296 2004-07-05 Zack Weinberg <zack@codesourcery.com>
25297
25298 * tree-mudflap.c: Include cgraph.h.
25299 (mf_init_extern_trees): Rename to mudflap_init. Export.
25300 Rewrite to create synthetic declarations instead of looking
25301 up declarations from mf-runtime.h.
25302 (mf_make_builtin, mf_make_cache_struct_type): New functions.
25303 (mf_cache_shift_decl, mf_cache_mask_decl, mf_unregister_fndecl):
25304 Correct commentary.
25305 (execute_mudflap_function_decls, mudflap_register_call):
25306 Don't call mf_init_extern_trees.
25307 (mudflap_finish_file): Use cgraph_build_static_cdtor.
25308
25309 * tree-mudflap.h: Update prototypes.
25310 * c-mudflap.c: Delete file.
25311 * c-common.c: Include tree-mudflap.h.
25312 (c_common_nodes_and_builtins): Call mudflap_init if appropriate.
25313 * Makefile.in: Remove all references to c-mudflap.o.
25314 Update dependencies.
25315
25316 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25317
25318 * pa.md (prefetch, prefetch_32, prefetch_64): Only allow short
25319 displacements with the spatial-locality cache-control completer.
25320
25321 2004-07-05 Zack Weinberg <zack@codesourcery.com>
25322
25323 * langhooks.c: Don't include gt-langhooks.h.
25324 (var_labelno): Delete.
25325 (lhd_set_decl_assembler_name): Do not append a distinguishing
25326 number to file-scope internal-linkage declarations for the first
25327 input file, even if they have DECL_CONTEXT set. Use DECL_UID of
25328 the declaration itself (if at block scope), or its containing
25329 TRANSLATION_UNIT_DECL (if at file scope) for the distinguishing
25330 number.
25331
25332 * opts.c (cur_in_fname): New global.
25333 * opts.h: Declare it.
25334 * tree.c: Include opts.h.
25335 (make_node_stat): If creating a TRANSLATION_UNIT_DECL, give it
25336 DECL_UID equal to cur_in_fname.
25337 (copy_node_stat): Do not change DECL_UID when copying a
25338 TRANSLATION_UNIT_DECL.
25339 (build_common_tree_nodes): Adjust next_decl_uid to reserve the
25340 range 0 .. num_in_fnames-1 for TRANSLATION_UNIT_DECLs.
25341
25342 * c-decl.c (c_static_assembler_name): Delete.
25343 * c-tree.h (c_static_assembler_name): Delete prototype.
25344 * c-lang.c, objc/objc-lang.c: Don't override
25345 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME.
25346
25347 * Makefile.in (tree.o): Update dependencies.
25348 (GTFILES): Remove langhooks.c.
25349
25350 2004-07-05 Roger Sayle <roger@eyesopen.com>
25351
25352 * fold-const.c (fold) <TRUNC_MOD_EXPR>: Optimize unsigned modulus
25353 by a power of two into a bit-wise AND, i.e. "X % C" as "X & (C-1)".
25354 Normalize "X % C" as "X % -C" for signed modulus and negative C.
25355 Optimize "X % -Y" as "X % Y" for signed modulus.
25356 <EQ_EXPR>: Recursively call "fold" when transforming "(X % Y) == 0"
25357 into "((unsigned) X % Y) == 0".
25358
25359 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
25360
25361 * sourcebuild.texi (Config Fragments): Use @comma{} in
25362 cross-reference to section title.
25363
25364 2004-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25365
25366 * tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.
25367 * gimplify.c (gimple_add_tmp_var, gimplify_bind_expr): Use it.
25368 (gimplify_target_expr, gimplify_expr): Likewise.
25369 (copy_if_shared_r): No longer need special case for BIND_EXPR.
25370 (unshare_body, unvisit_body): Only look at nested if BODY_P is
25371 whole function.
25372 (gimplify_compound_lval): See if we can strip any useless conversion.
25373 (gimplify_modify_expr, gimplify_modify_expr_to_memcpy): Take size
25374 from RHS, not LHS.
25375 (gimplify_modify_expr_to_memset): Likewise.
25376 (gimplify_expr, case CONSTRUCTOR): Handle use as statement.
25377 * tree-inline.c (setup_one_parameter): Use DECL_SEEN_IN_BIND_EXPR_P.
25378 (declare_inline_vars): Likewise.
25379 (walk_type_fields): New function.
25380 (walk_tree): Use it.
25381 * tree-nested.c (create_tmp_var_for): Show seen in BIND_EXPR.
25382
25383 * tree-sra.c (struct sra_walk_fns): Init function now returns bool.
25384 (sra_walk_modify_expr): Allow init function to fail.
25385 (scan_init): Now returns bool.
25386 (generate_element_init): If can't understand INIT, return false.
25387 (scalarize_init): Return false if generate_element_init does.
25388
25389 * tree-pretty-print.c (dump_generic_node, case ARRAY_TYPE): Properly
25390 print bounds.
25391
25392 * expr.c (expand_expr_real_1, case SWITCH_EXPR): Don't check against
25393 bounds if bounds aren't constant.
25394
25395 * tree-cfg.c (verify_expr): Use CHECK_OP in binary case.
25396
25397 * function.c, langhooks-def.h, langhooks.h: Move max_size hook
25398 to type hooks; remove bogus PARAMS.
25399
25400 2004-07-05 Nathan Sidwell <nathan@codesourcery.com>
25401
25402 * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Use TYPE_LANG_SLOT_1.
25403 * dwarf2out.c (add_data_member_location_attribute): Check for
25404 TREE_BINFO.
25405 * tree.c (tree_node_kinds): Add "binfos".
25406 (binfo_lang_slots): New.
25407 (make_node_stat): Add TREE_BINFO.
25408 (make_tree_binfo_stat): New.
25409 (tree_node_structure): Add TREE_BINFO.
25410 * tree.def (TREE_BINFO): New.
25411 * tree.h (REC_OR_UNION_CHECK): Rename to ...
25412 (RECORD_OR_UNION_CHECK): ... here.
25413 (NOT_RECORD_OR_UNION_CHECK): New.
25414 (TRE_VIA_VIRTUAL): Allow TREE_LIST or TREE_BINFO.
25415 (TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD): Adjust for
25416 RECORD_OR_UNION_CHECK.
25417 (TYPE_BINFO): Use RECORD_OR_UNION_CHECK.
25418 (TYPE_LANG_SLOT_1): New.
25419 (BINFO_TYPE, BINFO_OFFSET, BINFO_VTABLE, BINFO_VIRTUALS,
25420 BINFO_BASETYPES, TYPE_BINFO_BASETYPES, BINFO_VPTR_FIELD,
25421 BINFO_BASEACCESSES, BINFO_INHERITANCE_CHAIN): Adjust.
25422 (BINFO_ELTS): Remove.
25423 (BINFO_LANG_SLOT): New.
25424 (struct tree_binfo): New.
25425 (binfo_lang_slots): Declare.
25426 (enum tree_node_structure_enum): Add TS_BINFO.
25427 (union tree_node): Add binfo.
25428 (make_tree_binfo_stat): Declare.
25429 (make_tree_binfo): New.
25430 (enum tree_node_kind): Add binfo_kind.
25431
25432 * objc/objc-act.c (start_class, objc_declare_protocols,
25433 start_protocols): Use TYPE_LANG_SLOT_1.
25434 * objc/objc-act.h (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): Rename
25435 to ...
25436 (CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS): ... here.
25437 (CLASS_IVARS, CLASS_RAW_IVARS, CLASS_STATIC_TEMPLATE,
25438 CLASS_CATEGORY_LIST, CLASS_PROTOCOL_LIST, CLASS_OWN_IVARS,
25439 PROTOCOL_LIST, PROTOCOL_FORWARD_DECL): Use TYPE_LANG_SLOT_1.
25440
25441 2004-07-05 Steven Bosscher <stevenb@suse.de>
25442
25443 * rtl.h (struct rtx_def): Remove the integrated flag.
25444 Use the return_val flag for MEM_SCALAR_P.
25445 Reshuffle and update flags in CLEAR_RTX_FLAGS.
25446
25447 2004-07-05 Richard Sandiford <rsandifo@redhat.com>
25448
25449 PR target/16357
25450 * config/mips/mips.c (mips_block_move_straight): Pass BLKmode memrefs
25451 to mips_expand_unaligned_load, mips_expand_unaligned_store, and
25452 move_by_pieces.
25453
25454 2004-07-05 Josef Zlomek <zlomekj@suse.cz>
25455
25456 * var-tracking.c: Fix some comments.
25457 (frame_stack_adjust): New.
25458 (vt_stack_adjustments): Init stack_adjust of entry block to
25459 minus stack adjustment of function prologue.
25460 (adjust_stack_reference): Do not adjust if adjustment == 0.
25461 (compute_bb_dataflow): Use plus_constant instead of gen_rtx_PLUS.
25462 (emit_notes_in_bb): Likewise.
25463 (vt_add_function_parameters): Do not adjust locations of
25464 function arguments.
25465 (vt_initialize): Compute the stack adjustment of function
25466 prologue and offset the initial "location" of frame_base_decl
25467 from the stack pointer after prologue.
25468
25469 2004-07-04 Richard Henderson <rth@redhat.com>
25470
25471 * function.c (struct assign_parm_data_all): New.
25472 (struct assign_parm_data_one): New.
25473 (assign_parms_initialize_all, assign_parms_augmented_arg_list,
25474 assign_parm_find_data_types, assign_parms_setup_varargs,
25475 assign_parm_find_entry_rtl, assign_parm_is_stack_parm,
25476 assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl,
25477 assign_parm_adjust_stack_rtl, assign_parm_setup_block_p,
25478 assign_parm_setup_block, assign_parm_setup_reg,
25479 assign_parm_setup_stack, assign_parms_unsplit_complex): Split from ...
25480 (assign_parms): ... here.
25481
25482 2004-07-04 Daniel Berlin <dberlin@dberlin.org>
25483
25484 * tree-ssa-pre.c (bb_value_sets): phi_gen, tmp_gen, new_sets
25485 now are bitmap_set_t's.
25486 (bitmap_insert_into_set): No point in inserting the value if
25487 it's invariant.
25488 (bitmap_set_contains): New function.
25489 (bitmap_set_replace_value): Add comment on why we do it
25490 this way.
25491 (set_contains): Removed.
25492 (bitmap_set_subtract_from_value_set): New name of
25493 set_subtract now that it's arguments are two different
25494 types of sets.
25495 Update callers.
25496 (bitmap_find_leader): Change algorithm used.
25497 (find_or_generate_expression): Update use of functions for new
25498 bitmap sets.
25499 (create_expression_by_pieces): Ditto.
25500 (insert_aux): Ditto.
25501 (insert): Ditto.
25502 (add_to_sets): Ditto.
25503 (init_pre): Ditto.
25504 (execute_pre): Ditto.
25505 (compute_avail): Ditto.
25506 Also ignore virtual phis.
25507
25508 2004-07-04 Richard Sandiford <rsandifo@redhat.com>
25509
25510 * combine.c (simplify_comparison): Fix comment typo.
25511
25512 2004-07-04 Eric Botcazou <ebotcazou@libertysurf.fr>
25513
25514 * config/sparc/sparc.c (SIBCALL_SLOT_EMPTY_P): Rename
25515 into LEAF_SIBCALL_SLOT_RESERVED_P after negation.
25516 (eligible_for_sibcall_delay): Adjust use of SIBCALL_SLOT_EMPTY_P.
25517 (output_restore): Change parameter from 'insn' to 'pat'.
25518 (output_return): Adjust call to output_restore.
25519 (output_sibcall): Adjust use of SIBCALL_SLOT_EMPTY_P.
25520 Adjust call to output_restore.
25521
25522 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
25523
25524 * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_COMMON): Define __unix__
25525 and assert system is bsd.
25526
25527 2004-07-04 Richard Sandiford <rsandifo@redhat.com>
25528
25529 * config/mips/mips.h (MASK_DEBUG_C, TARGET_DEBUG_C_MODE): Delete.
25530 (TARGET_SWITCHES): Remove -mdebugc.
25531 * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
25532 (sltu, sleu): Remove TARGET_DEBUG_C_MODE handling.
25533 (seq_[sd]i, sne_[sd]i, sge_[sd]i, sle_[sd]i_reg, sgeu_[sd]i)
25534 (sle_[sd]i_reg): Delete.
25535
25536 2004-07-04 Steven Bosscher <stevenb@suse.de>
25537
25538 * config/iq2000/iq2000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
25539 Define.
25540 * config/iq2000/iq2000.md: Translate old pipeline description to an
25541 equivalent new one.
25542
25543 2004-07-04 Roger Sayle <roger@eyesopen.com>
25544
25545 * tree-ssa-ccp.c (set_rhs): Change function to return a bool.
25546 Ensure the replacement rhs is valid gimple before performing
25547 the substitution. Return false if these sanity checks fail.
25548 (fold_stmt): Only set changed to true, if set_rhs returns true.
25549 (execute_fold_all_builtins): Only call modify_stmt if set_rhs
25550 succeeds.
25551
25552 2004-07-04 Richard Henderson <rth@redhat.com>
25553
25554 PR c/16348
25555 * c-typeck.c (c_finish_loop): Don't clear cond for cond_is_first loops.
25556
25557 2004-07-04 Mark Mitchell <mark@codesourcery.com>
25558
25559 * configure.ac (ranlib_flags): New variable.
25560 * Makefile.in (RANLIB_FLAGS): New variable.
25561 (libbackend.a): Use it.
25562 * configure: Regenerated.
25563
25564 2004-07-04 Roger Sayle <roger@eyesopen.com>
25565
25566 * ifcvt.c (noce_try_sign_mask): Call emit_store_flag to generate
25567 a "sign mask" instead of using ashr_optab directly.
25568
25569 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
25570
25571 * doc/cpp.texi: Don't document what we do for ill-formed expressions.
25572 * doc/cppopts.texi: Clarify processing of command-line defines.
25573
25574 2004-07-04 Gerald Pfeifer <gerald@pfeifer.com>
25575
25576 * doc/contrib.texi (Contributors): Adjust link for GNU Classpath.
25577
25578 2004-07-04 Richard Henderson <rth@redhat.com>
25579
25580 * rtl.def (ADDRESSOF): Remove.
25581 * alias.c (rtx_equal_for_memref_p): Don't handle addressof.
25582 (find_base_term, memrefs_conflict_p): Likewise.
25583 * cse.c (fixed_base_plus_p, find_best_addr: Likewise.
25584 (fold_rtx, cse_insn, set_live_p): Likewise.
25585 * dwarf2out.c (mem_loc_descriptor): Likewise.
25586 (add_location_or_const_value_attribute): Likewise.
25587 * emit-rtl.c (copy_insn_1): Likewise.
25588 * explow.c (memory_address): Likewise.
25589 * expmed.c (store_split_bit_field): Likewise.
25590 * expr.c (expand_expr_real_1): Likewise.
25591 * function.c (instantiate_decl
25592 (instantiate_virtual_regs_1, fix_lexical_addr): Likewise.
25593 * genrecog.c (preds, validate_pattern): Likewise.
25594 * integrate.c (copy_rtx_and_substitute): Likewise.
25595 * recog.c (general_operand, register_operand): Likewise.
25596 (memory_address_p): Likwise.
25597 * reload1.c (eliminate_regs, elimination_effects): Likewise.
25598 * rtl.c (copy_rtx): Likewise.
25599 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
25600 (rtx_addr_can_trap_p, nonzero_address_p, address_cost): Likewise.
25601 * rtlhooks.c (gen_lowpart_general): Likewise.
25602 * stmt.c (expand_asm_operands): Likewise.
25603 * web.c (entry_register, replace_ref, web_main): Likewise.
25604 * config/alpha/alpha.c (input_operand, alpha_legitimate_address_p,
25605 alpha_expand_block_move, alpha_expand_block_clear): Likewise.
25606 * config/arm/arm.c (thumb_rtx_costs): Likewise.
25607 * config/c4x/c4x.c (c4x_valid_operands): Likewise.
25608 * config/frv/frv.c (move_destination_operand, move_source_operand,
25609 condexec_dest_operand, condexec_source_operand,
25610 condexec_memory_operand): Likewise.
25611 * config/h8300/h8300.h (PREDICATE_CODES): Likewise.
25612 * config/ia64/ia64.c (general_xfmode_operand): Likewise.
25613 (destination_xfmode_operand): Likewise.
25614 * config/mips/mips.h (PREDICATE_CODES): Likewise.
25615 * config/mn10300/mn10300.c (mn10300_address_cost_1): Likewise.
25616 * config/s390/s390.c (general_s_operand): Likewise.
25617 * config/s390/s390.md (mov*): Likewise.
25618 * config/sparc/sparc.h (PREDICATE_CODES): Likewise.
25619
25620 * c-typeck.c (c_mark_addressable): Don't put_var_into_stack.
25621 * expr.c (expand_expr_real_1): Likewise.
25622 * stmt.c (expand_decl): Likewise.
25623 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
25624
25625 * function.c (struct fixup_replacement, struct insns_for_mem_entry,
25626 postponed_insns, put_var_into_stack, put_reg_into_stack,
25627 schedule_fixup_var_refs, fixup_var_refs, find_fixup_replacement,
25628 fixup_var_refs_insns, fixup_var_refs_insns_with_hash,
25629 fixup_var_refs_insn, fixup_var_refs_1, fixup_memory_subreg,
25630 walk_fixup_memory_subreg, fixup_stack_1, optimize_bit_field,
25631 gen_mem_addressof, flush_addressof, put_addressof_into_stack,
25632 purge_bitfield_addressof_replacements, purge_addressof_replacements,
25633 purge_addressof_1, insns_for_mem_hash, insns_for_mem_comp,
25634 struct insns_for_mem_walk_info, insns_for_mem_walk,
25635 compute_insns_for_mem, is_addressof, purge_addressof, setjmp_protect,
25636 setjmp_protect_args): Remove.
25637 (push_function_context_to): Don't handle var_refs_queue.
25638 (pop_function_context_from, free_after_compilation): Likewise.
25639 (instantiate_virtual_regs): Don't handle parm_reg_stack_loc.
25640 (assign_parms, allocate_struct_function): Likewise.
25641 (use_register_for_decl): New.
25642 (expand_function_end): Don't setjmp_protect.
25643 * function.h (struct emit_status): Update commentary.
25644 (struct function): Remove x_max_parm_reg, x_parm_reg_stack_loc.
25645 (max_parm_reg, parm_reg_stack_loc): Remove.
25646 * passes.c (DFI_addressof): Remove.
25647 (dump_file_info): Remove addressof.
25648 (rest_of_handle_addressof): Remove.
25649 (rest_of_compilation): Don't call it.
25650 * rtl.h (ADDRESSOF_REGNO, ADDRESSOF_DECL): Remove.
25651 * stmt.c (expand_decl): Use use_register_for_decl.
25652 * tree.h: Update decls.
25653 * web.c (mark_addressof): Remove.
25654 * doc/invoke.texi (-dF): Remove.
25655
25656 2004-07-03 Richard Henderson <rth@redhat.com>
25657
25658 * config/ia64/ia64.c (spill_xfmode_operand): Use assign_stack_temp
25659 instead of gen_mem_addressof.
25660 * config/ia64/ia64.md (movxf): Use assign_stack_temp to handle
25661 TImode output register.
25662
25663 2004-07-03 Richard Henderson <rth@redhat.com>
25664
25665 PR tree-optimization/16341
25666 * tree-sra.c (sra_walk_function): Increment to next stmt before
25667 processing the current stmt.
25668 (sra_insert_after): Always use BSI_SAME_STMT.
25669
25670 2004-07-03 Richard Henderson <rth@redhat.com>
25671
25672 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Don't fold
25673 fp plus with minus.
25674
25675 2004-07-03 Joseph S. Myers <jsm@polyomino.org.uk>
25676
25677 * tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
25678 with tree_int_cst_equal.
25679
25680 2004-07-03 Andreas Schwab <schwab@suse.de>
25681
25682 * config/ia64/ia64.md: Define new attribute "empty".
25683 (prologue_use, nop_x, insn_group_barrier): Set it.
25684
25685 * config/ia64/ia64.c (ia64_reorg): When looking for trailing call
25686 skip over "empty" insns.
25687
25688 2004-07-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25689
25690 * tree-inline.c (initialize_inlined_parameters): Pass proper function
25691 context to gimplify_body.
25692 (walk_tree): Don't walk into types twice.
25693 (walk_tree, case POINTER_TYPE): Deal with mutually recursive pointers.
25694
25695 * tree-sra.c (generate_element_init): Remove any useless conversions.
25696
25697 * gimplify.c (gimplify_conversion): Remove stripping useless
25698 conversions from here.
25699 (gimplify_expr): Put it here, in place of call to STRIP_MAIN_TYPE_NOPS.
25700 (gimplify_modify_expr_to_memcpy, gimplify_variable_sized_compare):
25701 Unshare before substituting PLACEHOLDER_EXPR.
25702 (gimplify_modify_expr_to_memset): Likewise.
25703 Pass address of TO to memset, not TO itself.
25704 (gimplify_init_constructor): Make copy of OBJECT so we have it each
25705 time we make an expression (to match a PLACEHOLDER_EXPR).
25706
25707 * tree-ssa.c (tree_ssa_useless_type_conversion): Also look at
25708 VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
25709 * tree-ssa-ccp.c (fold_stmt): Call just STRIP_USELESS_TYPE_CONVERSION.
25710 * tree-ssa-dom.c (local_fold): Likewise.
25711
25712 * langhooks-def.h (LANG_HOOKS_TYPE_MAX_SIZE): New langhook.
25713 * langhooks.h (strct lang_hooks): New field type_max_size.
25714 * function.c (assign_temp): Call it.
25715
25716 2004-07-03 Steven Bosscher <stevenb@suse.de>
25717
25718 * config/sh/sh.c (sh_use_dfa_interface): Add TARGET_SH1.
25719 * config/sh/sh.md: Convert the SH1 pipeline description to
25720 a DFA model.
25721
25722 2004-07-02 Zack Weinberg <zack@codesourcery.com>
25723
25724 * c-decl.c (struct c_binding): Remove contour field; add
25725 depth, invisible, nested fields.
25726 (B_IN_SCOPE, B_IN_CURRENT_SCOPE, B_IN_FILE_SCOPE)
25727 (B_IN_EXTERNAL_SCOPE): New convenience macros.
25728 (bind): Add invisible and nested arguments. Initialize
25729 new fields of struct c_binding; adjust loop scanning for
25730 insertion point.
25731 (free_binding_and_advance): Clear structure with memset.
25732 (pop_scope): Adjust to match. Set DECL_CONTEXT on everything
25733 in file scope, even if it's in external scope too.
25734 (pushdecl): Adjust to match. Create invisible file-scope
25735 declarations for block-scope forward declarations of static functions.
25736 (pushtag, warn_if_shadowing, pushdecl_top_level, implicitly_declare)
25737 (undeclared_variable, lookup_label, declare_label, define_label)
25738 (lookup_tag, lookup_name, lookup_name_in_scope, builtin_function)
25739 (c_make_fname_decl, store_parm_decls_newstyle, identifier_global_value)
25740 (store_parm_decls_oldstyle): Adjust to match.
25741 (diagnose_mismatched_decls): Correct handling of linkage clashes.
25742 (merge_decls): No need to copy C_DECL_IN_EXTERNAL_SCOPE.
25743
25744 * c-tree.h (C_DECL_IN_EXTERNAL_SCOPE): Delete.
25745 (C_DECL_DECLARED_BUILTIN, C_DECL_REGISTER): Slide down one.
25746
25747 2004-07-02 Richard Henderson <rth@redhat.com>
25748
25749 * c-decl.c (grokdeclarator): Don't frob current_function_decl
25750 around variable_size.
25751 (set_decl_nonlocal): Remove.
25752 (store_parm_decls): Add stmts for pending sizes.
25753 * calls.c (calls_function, calls_function_1): Remove.
25754 (precompute_arguments): Don't call it.
25755 * cfgexpand.c (set_save_expr_context): Remove.
25756 (tree_expand_cfg): Don't call it.
25757 * dwarf2out.c (add_bound_info): Don't handle SAVE_EXPR.
25758 (dwarf2out_finish): Likewise.
25759 * expr.c (emit_block_move): Adjust addresses to BLKmode.
25760 (store_constructor): Don't pre-evaluate SAVE_EXPR.
25761 (safe_from_p): Don't queue SAVE_EXPRs.
25762 (expand_expr_real_1 <case SAVE_EXPR>): Rewrite to expect,
25763 or build plain VAR_DECLs.
25764 * fold-const.c (twoval_comparison_p): Don't look at SAVE_EXPR_RTL.
25765 (fold): Likewise.
25766 (fold_checksum_tree): Don't special-case SAVE_EXPR.
25767 * function.c (free_after_compilation): Don't clear x_save_expr_regs.
25768 (put_var_into_stack): Don't handle SAVE_EXPR.
25769 (gen_mem_addressof): Likewise.
25770 * function.h (struct function): Remove x_save_expr_regs.
25771 (save_expr_regs): Remove.
25772 * gengtype.c (adjust_field_tree_exp): Don't special-case SAVE_EXPR.
25773 * print-tree.c (print_node): Don't dump SAVE_EXPR_NOPLACEHOLDER.
25774 * stor-layout.c (variable_size): Don't set it.
25775 (force_type_save_exprs, force_type_save_exprs_1): Remove.
25776 * tree-inline.c (remap_save_expr): Remove fn argument. Update
25777 all callers. Don't set SAVE_EXPR_CONTEXT.
25778 * tree-inline.h (remap_save_expr): Update decl.
25779 * tree.c (save_expr): Update build size.
25780 (first_rtl_op): Don't handle SAVE_EXPR.
25781 (unsave_expr_1, contains_placeholder_p): Likewise.
25782 (decl_function_context): Likewise.
25783 * tree.def (SAVE_EXPR): Remove args 1 and 2.
25784 * tree.h (SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL): Remove.
25785 (SAVE_EXPR_NOPLACEHOLDER, SAVE_EXPR_PERSISTENT_P): Remove.
25786
25787 2004-07-03 Joseph S. Myers <jsm@polyomino.org.uk>
25788
25789 * doc/bugreport.texi, doc/configterms.texi, doc/contrib.texi,
25790 doc/contribute.texi, doc/cpp.texi, doc/cppinternals.texi,
25791 doc/extend.texi, doc/install.texi, doc/invoke.texi, doc/md.texi,
25792 doc/portability.texi, doc/tree-ssa.texi, doc/trouble.texi: Avoid
25793 some first-person references and patronizing comments. Based on
25794 printed manual.
25795 * doc/invoke.texi: Don't reference fortran@gnu.org.
25796 * doc/trouble.texi (Warning when a non-void function value is
25797 ignored): Rewrite. From Russ Allbery and Chris Devers.
25798
25799 2004-07-02 Daniel Berlin <dberlin@dberlin.org)
25800
25801 * tree-ssa-pre.c (bitmap_set_t): New.
25802 (bb_value_sets): avail_out is now a bitmap_set_t.
25803 (bitmap_find_leader): New function.
25804 (bitmap_value_insert_into_set): Ditto.
25805 (bitmap_set_copy): Ditto.
25806 (bitmap_value_replace_in_set): Ditto.
25807 (bitmap_set_contains_value): Ditto.
25808 (bitmap_set_new): Ditto.
25809 (bitmap_set_pool): New pool.
25810 (find_or_generate_expression): Use bitmap_ functions on AVAIL sets.
25811 (insert_aux): Ditto.
25812 (add_to_sets): Ditto.
25813 (compute_avail): Ditto
25814 (eliminate): Ditto.
25815 (init_pre): Ditto.
25816 (fini_pre): Ditto.
25817 (execute_pre): Ditto.
25818
25819 2004-07-02 Roger Sayle <roger@eyesopen.com>
25820
25821 * config/rs6000/rs6000.c (struct processor_costs): New structure
25822 used to hold instruction latencies/sizes for processor types.
25823 (rs6000_cost): New global variable pointing to current CPU's costs.
25824 (rs6000_override_options): Initialize rs6000_cost to point to the
25825 appropriate cost table based upon rs6000_cpu and optimize_size.
25826 (rs6000_rtx_costs): Use rs6000_cost to avoid hardcoding processor
25827 timings inline.
25828
25829 2004-07-02 Richard Henderson <rth@redhat.com>
25830
25831 * expmed.c (make_tree): Don't use SET_DECL_RTL.
25832
25833 2004-07-02 Steven Bosscher <stevenb@suse.de>
25834
25835 * tree-flow.h (bb_ann_d): Remove ephi_nodes field.
25836
25837 2004-07-01 Richard Henderson <rth@redhat.com>
25838
25839 * config/alpha/alpha.c (struct machine_function): Add gp_save_rtx.
25840 (alpha_gp_save_rtx): Use assign_stack_local instead of
25841 gen_mem_addressof.
25842
25843 2004-07-01 Richard Henderson <rth@redhat.com>
25844
25845 * config/alpha/alpha.c (struct alpha_rtx_cost_data): Add int_div.
25846 (alpha_rtx_cost_data): Update to match.
25847 (alpha_rtx_cost_size): New.
25848 (alpha_rtx_costs): Honor optimize_size.
25849
25850 2004-07-01 Richard Henderson <rth@redhat.com>
25851
25852 * gimple-low.c (lower_function_body): Don't reset_block_changes here.
25853 * cfgexpand.c (tree_expand_cfg): Do it here.
25854 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): And here.
25855 * config/ia64/ia64.c (ia64_output_mi_thunk): And here.
25856 * config/mips/mips.c (mips_output_mi_thunk): And here.
25857 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): And here.
25858 * config/sh/sh.c (sh_output_mi_thunk): And here.
25859 * config/sparc/sparc.c (sparc_output_mi_thunk): And here.
25860
25861 2004-07-01 Richard Henderson <rth@redhat.com>
25862
25863 * tree.def (RTL_EXPR): Remove.
25864 * c-typeck.c (lvalue_p): Don't handle it.
25865 * expr.c (safe_from_p): Likewise.
25866 (expand_expr_real_1): Likewise.
25867 * fold-const.c (non_lvalue, operand_equal_p, fold): Likewise.
25868 (fold_checksum_tree, tree_expr_nonnegative_p): Likewise.
25869 * gengtype.c (adjust_field_tree_exp): Likewise.
25870 * stmt.c (warn_if_unused_value): Likewise.
25871 * tree-gimple.c (recalculate_side_effects): Likewise.
25872 * tree-pretty-print.c (dump_generic_node): Likewise.
25873 * tree.c (make_node_stat, first_rtl_op, unsave_expr_1): Likewise.
25874 (unsafe_for_reeval, stabilize_reference, build1_stat): Likewise.
25875 * tree.h (RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, RTL_EXPR_ALT_RTL): Remove.
25876
25877 * stmt.c (struct stmt_status): Remove x_last_expr_type,
25878 x_last_expr_value, x_last_expr_alt_rtl, x_expr_stmts_for_value.
25879 (last_expr_type, last_expr_value, last_expr_alt_rtl): Remove.
25880 (expand_expr_stmt): Merge with expand_expr_stmt_value. Remove
25881 all the bits that tracked last_expr.
25882 (expand_end_bindings): Don't track last_expr.
25883 (expand_start_stmt_expr, expand_end_stmt_expr): Remove.
25884 (clear_last_expr): Remove.
25885 (expand_asm): Don't call it.
25886 (expand_asm_operands, expand_end_cond): Likewise.
25887 (expand_naked_return, expand_null_return_1): Likewise.
25888 * c-typeck.c (c_begin_compound_stmt): Likewise.
25889 * cfgexpand.c (expand_block): Use expand_expr_stmt.
25890 * expr.c (expand_expr_real_1): Likewise.
25891 * tree.h: Update prototypes.
25892
25893 * function.h (struct sequence_stack): Remove sequence_rtl_expr.
25894 (struct emit_status): Remove sequence_rtl_expr.
25895 (struct function): Remove x_rtl_expr_chain.
25896 (seq_rtl_expr, rtl_expr_chain): Remove.
25897 * function.c (struct temp_slot): Remove rtl_expr.
25898 (assign_stack_temp_for_type): Don't set it.
25899 (free_temp_slots, pop_temp_slots): Don't check it.
25900 (free_after_compilation): Don't clear x_rtl_expr_chain.
25901 (fixup_var_refs): Don't search it.
25902 (preserve_rtl_expr_result, free_temps_for_rtl_expr): Remove.
25903 * emit-rtl.c (start_sequence): Don't use sequence_rtl_expr
25904 or seq_rtl_expr.
25905 (push_topmost_sequence): Likewise.
25906 (end_sequence, init_emit): Likewise.
25907 (start_sequence_for_rtl_expr): Remove.
25908 * expmed.c (make_tree): Build a VAR_DECL instead of an RTL_EXPR.
25909 * rtl.h (preserve_rtl_expr_result): Remove.
25910
25911 2004-07-02 Kazu Hirata <kazu@cs.umass.edu>
25912
25913 * ifcvt.c, modulo-sched.c, tree-alias-common.c, tree-sra.c,
25914 tree-ssa-copy.c, tree-ssa-dom.c, tree-ssa-pre.c: Fix comment
25915 typos.
25916
25917 2004-07-02 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
25918
25919 * gcc.c (STANDARD_STARTFILE_PREFIX_1): Define.
25920 (STANDARD_STARTFILE_PREFIX_2): Define.
25921 (standard_startfile_prefix_1): Initialize to
25922 STANDARD_STARTFILE_PREFIX_1.
25923 (standard_startfile_prefix_2): Initialize to
25924 STANDARD_STARTFILE_PREFIX_2.
25925 * config/i386/mingw32.h (MD_STARTFILE_PREFIX): Remove.
25926 (STANDARD_STARTFILE_PREFIX_1): Define.
25927 (STANDARD_STARTFILE_PREFIX_2): Define.
25928 * doc/tm.texi (STANDARD_STARTFILE_PREFIX_1): Document.
25929 (STANDARD_STARTFILE_PREFIX_2): Document.
25930
25931 2004-07-01 Richard Henderson <rth@redhat.com>
25932
25933 * tree-sra.c (sra_walk_expr): Don't maybe_lookup_element_for_expr
25934 in order to disable scalarization. Instead set a flag and wait
25935 for a candidate decl.
25936
25937 2004-07-01 Joseph S. Myers <jsm@polyomino.org.uk>
25938
25939 * doc/cppinternals.texi, doc/install.texi, doc/invoke.texi,
25940 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi:
25941 Use terminology "testsuite" and "enumerated".
25942
25943 2004-07-01 Richard Henderson <rth@redhat.com>
25944
25945 * dwarf2out.c (reg_save): Use INVALID_REGNUM.
25946 (dwarf2out_reg_save, dwarf2out_return_save): Likewise.
25947 (initial_return_save): Likewise.
25948 (flush_queued_reg_saves): Remap register numbers.
25949 (dwarf2out_return_reg): Likewise.
25950
25951 2004-07-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25952
25953 * gimplify.c (gimplify_one_sizepos): Don't do anything if any VAR_DECL.
25954
25955 * tree-pretty-print.c (dump_generic_node, case ARRAY_REF): Use
25956 access functions for lower bound and element size and only output
25957 if lower bound nonzero or element size not same as that of type.
25958 (dump_generic_node, case COMPONENT_REF): Use access func. for offset.
25959
25960 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
25961
25962 * c-pretty-print.c (pp_c_postfix_expression): Fix pasto.
25963
25964 2004-07-01 Per Bothner <per@bothner.com>
25965
25966 * final.c (final): Fix typo reported by Aaron W. LaFramboise.
25967
25968 2004-07-01 Jakub Jelinek <jakub@redhat.com>
25969
25970 * expr.c (expand_assignment): Optimize bitfld += cst for 1 bit
25971 bitfields as well. STRIP_NOPS from src operand and PLUS_EXPR's
25972 first operand. Don't optimize if the bitfield is volatile.
25973
25974 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
25975
25976 * c-pretty-print.c (pp_c_postfix_expression): Handle
25977 floating-point comparison operators.
25978 (pp_c_expression): Pass floating-point comparison
25979 operators to pp_c_postfix_expression.
25980
25981 2004-07-01 Roger Sayle <roger@eyesopen.com>
25982
25983 * simplify-rtx.c (simplify_binary_operation) <PLUS, MINUS>: Use
25984 rtx_cost instead of "had_mult" to determine whether the transformed
25985 expression is cheaper than the original.
25986
25987 2004-07-01 Jerry Quinn <jlquinn@optonline.net>
25988
25989 * alias.c (get_alias_set, canon_rtx, get_addr,
25990 nonoverlapping_memrefs_p, nonlocal_referenced_p_1, memory_modified_1):
25991 Use MEM_P.
25992 * builtins.c (expand_builtin_prefetch, expand_builtin_profile_func,
25993 expand_builtin): Likewise.
25994 * calls.c (expand_call, emit_library_call_value_1, store_one_arg):
25995 Likewise.
25996 * combine.c (can_combine_p, combinable_i3pat, try_combine,
25997 find_split_point, combine_simplify_rtx, simplify_set, make_extraction,
25998 rtx_equal_for_field_assignment_p, gen_lowpart_for_combine,
25999 record_dead_and_set_regs_1, get_last_value_validate,
26000 mark_used_regs_combine, move_deaths, unmentioned_reg_p_1): Likewise.
26001 * cse.c (check_dependence, canon_hash, equiv_constant,
26002 gen_lowpart_if_possible, cse_insn, invalidate_from_clobbers,
26003 cse_around_loop, cse_check_loop_start, cse_set_around_loop,
26004 count_reg_usage): Likewise.
26005 * cselib.c (rtx_equal_for_cselib_p, add_mem_for_addr, cselib_lookup,
26006 cselib_invalidate_mem, cselib_invalidate_rtx, cselib_record_set,
26007 cselib_record_sets): Likewise.
26008 * dbxout.c (PARM_PASSED_IN_MEMORY, dbxout_symbol,
26009 dbxout_symbol_location, dbxout_parms, dbxout_reg_parms): Likewise.
26010 * ddg.c (mark_mem_use, mark_mem_store, rtx_mem_access_p): Likewise.
26011 * df.c (df_uses_record): Likewise.
26012 * dojump (do_jump): Likewise.
26013 * dwarf2out.c (stack_adjust_offset, mem_loc_descriptor,
26014 loc_descriptor_from_tree, rtl_for_decl_location, add_bound_info,
26015 decl_start_label): Likewise.
26016 * emit-rtl.c (gen_complex_constant_part, gen_highpart,
26017 operand_subword, change_address_1, make_safe_from): Likewise.
26018 * explow.c (break_out_memory_refs, copy_all_regs, validize_mem,
26019 stabilize, force_not_mem): Likewise.
26020 * expmed.c (store_bit_field, store_split_bit_field, extract_bit_field,
26021 expand_mult_const, expand_divmod, emit_store_flag): Likewise.
26022 * expr.c (convert_move, convert_modes, emit_block_move,
26023 emit_group_load, emit_group_store, clear_storage, emit_move_insn,
26024 emit_move_insn_1, expand_assignment, store_expr,
26025 store_constructor_field, store_constructor, store_field,
26026 force_operand, safe_from_p, expand_expr_real_1, expand_increment):
26027 Likewise.
26028 * final.c (cleanup_subreg_operands, alter_subreg,
26029 get_mem_expr_from_op): Likewise.
26030 * flow.c (notice_stack_pointer_modification_1,
26031 init_propagate_block_info, insn_dead_p, mark_set_1, mark_used_regs):
26032 Likewise.
26033 * function.c (mark_temp_addr_taken, preserve_temp_slots,
26034 preserve_rtl_expr_result, put_var_into_stack, fixup_var_refs_1,
26035 optimize_bit_field, flush_addressof, purge_addressof_1,
26036 instantiate_decl, instantiate_virtual_regs_1, assign_parms,
26037 setjmp_protect, setjmp_protect_args, fix_lexical_addr,
26038 keep_stack_depressed): Likewise.
26039 * ifcvt.c (noce_try_cmove_arith, noce_try_abs, noce_operand_ok,
26040 noce_process_if_block, find_memory): Likewise.
26041 * integrate.c (subst_constants, allocate_initial_values): Likewise.
26042 * local-alloc.c (validate_equiv_mem_from_store, memref_referenced_p,
26043 update_equiv_regs): Likewise.
26044 * loop.c (scan_loop, prescan_loop, note_addr_stored, check_store,
26045 maybe_eliminate_biv_1, find_mem_in_note_1): Likewise.
26046 * optabs.c (expand_abs, emit_unop_insn): Likewise.
26047 * passes.c (rest_of_handle_final): Likewise.
26048 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
26049 move2add_note_store): Likewise.
26050 * ra-build.c (detect_remat_webs): Likewise.
26051 * ra-debug.c (dump_static_insn_cost): Likewise.
26052 * ra-rewrite.c (slots_overlap_p, insert_stores): Likewise.
26053 * recog.c (validate_change, apply_change_group, cancel_changes,
26054 validate_replace_rtx_1, general_operand, register_operand,
26055 nonmemory_operand, push_operand, pop_operand, memory_operand,
26056 indirect_operand, asm_operand_ok, offsettable_memref_p,
26057 offsettable_nonstrict_memref_p, constrain_operands,
26058 store_data_bypass_p): Likewise.
26059 * reg-stack.c (subst_stack_regs_pat): Likewise.
26060 * regclass.c (record_operand_costs, scan_one_insn, record_reg_classes,
26061 copy_cost, reg_scan_mark_refs): Likewise.
26062 * regmove.c (optimize_reg_copy_3, stack_memref_p,
26063 combine_stack_adjustments_for_block): Likewise.
26064 * regrename.c (copyprop_hardreg_forward_1): Likewise.
26065 * reload.c (can_reload_into, push_reload, decompose, immune_p,
26066 find_reloads, find_reloads_address, find_reloads_address_1,
26067 reg_overlap_mentioned_for_reload_p, refers_to_mem_for_reload_p,
26068 find_equiv_reg): Likewise.
26069 * reload1.c (reload, eliminate_regs, eliminate_regs_in_insn,
26070 reload_as_needed, choose_reload_regs, emit_input_reload_insns,
26071 do_input_reload, emit_reload_insns, gen_reload, delete_output_reload,
26072 delete_address_reloads): Likewise.
26073 * resource.c (mark_referenced_resources): Likewise.
26074 * rtlanal.c (get_jump_table_offset, count_occurrences,
26075 reg_referenced_p, reg_set_p, set_of_1, set_noop_p,
26076 reg_overlap_mentioned_p, note_uses, replace_regs, nonzero_bits1,
26077 num_sign_bit_copies1): Likewise.
26078 * rtlhooks.c (gen_lowpart_general): Likewise.
26079 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
26080 * sdbout.c (PARM_PASSED_IN_MEMORY, sdbout_symbol,
26081 sdbout_toplevel_data, sdbout_parms, sdbout_reg_parms,
26082 sdbout_global_decl): Likewise.
26083 * simplify-rtx.c (simplify_subreg): Likewise.
26084 * stmt.c (expand_asm_operands, expand_expr_stmt_value, expand_decl,
26085 expand_anon_union_decl, expand_end_case_type): Likewise.
26086 * unroll.c (calculate_giv_inc): Likewise.
26087 * var-tracking.c (stack_adjust_offset_pre_post,
26088 bb_stack_adjust_offset, track_expr_p, count_uses, add_uses,
26089 add_stores, compute_bb_dataflow, vt_get_decl_and_offset,
26090 vt_add_function_parameters): Likewise.
26091 * varasm.c (make_var_volatile, notice_global_symbol,
26092 assemble_external, decode_addr_const, mark_weak,
26093 default_encode_section_info): Likewise.
26094
26095 2004-07-01 Steven Bosscher <stevenb@suse.de>
26096
26097 * stmt.c (check_seenlabel): Remove.
26098 (pushcase, pushcase_range, expand_end_case_type): Don't call it.
26099
26100 2004-07-01 Richard Henderson <rth@redhat.com>
26101
26102 * function.h (struct function): Remove x_function_call_count.
26103 (function_call_count): Remove.
26104 * calls.c (expand_call): Don't set it.
26105 * integrate.c (copy_rtx_and_substitute): Likewise.
26106
26107 * function.h (struct function): Remove x_cleanup_label.
26108 (cleanup_label): Remove.
26109 * stmt.c (expand_value_return): Don't use it.
26110 * function.c (free_after_compilation): Don't set it.
26111 (expand_function_start): Likewise. Remove parms_have_cleanups arg.
26112 * cfgexpand.c (tree_expand_cfg): Update call.
26113 * tree.h (expand_function_start): Update decl.
26114
26115 2004-07-01 Joseph S. Myers <jsm@polyomino.org.uk>
26116
26117 PR c/1027
26118 * c-lang.c (c_initialize_diagnostics): Move from here ...
26119 * c-objc-common.c: ... to here. Include "c-pretty-print.h".
26120 (c_tree_printer): Use pretty-printer to format %T.
26121 * c-pretty-print.c (pp_c_specifier_qualifier_list): Include space
26122 before '*' if not C++.
26123 (pp_c_direct_abstract_declarator): Don't try to print array upper
26124 bound for flexible array members.
26125 * c-tree.h: Include "diagnostic.h".
26126 (c_initialize_diagnostics): Declare.
26127 * objc/objc-lang.c (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Define.
26128 * c-format.c (format_type_warning): New function. Improve
26129 diagnostics for incorrect format argument types.
26130 (check_format_types): Use it. Add two parameters. Use the
26131 TYPE_MAIN_VARIANT of wanted_type.
26132 (check_format_info_main): Pass new parameters to
26133 check_format_types.
26134 (struct format_wanted_type): Update comment.
26135
26136 2004-07-01 Nick Clifton <nickc@redhat.com>
26137
26138 * target.h (struct gcc_target): Add new field to struct cxx:
26139 import_export_class.
26140 * target-def.h (TARGET_CXX): Initialise the new field.
26141 (TARGET_CXX_IMPORT_EXPORT_CLASS): Provide a default value for
26142 the new field.
26143 * doc/tm.texi: Document the new target hook.
26144
26145 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
26146
26147 * builtins.c (fold_builtin_classify): Fix typo.
26148
26149 2004-07-01 Richard Henderson <rth@redhat.com>
26150
26151 * function.c (identify_blocks, identify_blocks_1): Remove.
26152 * function.h (identify_blocks): Remove.
26153 * rtl.h (NOTE_INSN_BLOCK_BEG): Update comment.
26154
26155 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
26156
26157 * builtins.c (fold_builtin_classify): New.
26158 (fold_builtin_unordered_cmp): Fix commentary.
26159 (fold_builtin): Use it.
26160 * builtins.def: Define builtins for isnan,
26161 isnanf, isnanl, finite, finitef, finitel,
26162 isinf, isinff, isinfl.
26163
26164 2004-07-01 Richard Henderson <rth@redhat.com>
26165
26166 * function.h (struct function): Remove dont_emit_block_notes.
26167 * gimple-low.c (lower_function_body): Don't set it.
26168 * cfgexpand.c (expand_block): Don't check it.
26169 * cfglayout.c (insn_locators_initialize): Likewise.
26170 * expr.c (expand_expr_real, expand_expr_real_1): Likewise.
26171 * passes.c (rest_of_compilation): Likewise.
26172 * stmt.c (expand_start_bindings_and_block): Likewise.
26173 (expand_end_bindings): Likewise.
26174
26175 2004-07-01 Richard Henderson <rth@redhat.com>
26176
26177 * cgraph.h (cgraph_build_static_cdtor): Declare.
26178 * cgraphunit.c (cgraph_build_static_cdtor): New.
26179 * c-objc-common.c (build_cdtor): Use it.
26180 * coverage.c (create_coverage): Likewise.
26181 * libfuncs.h (LTI_gcov_init, gcov_init_libfunc): Remove.
26182 * optabs.c (init_optabs): Don't set gcov_init_libfunc.
26183
26184 See ChangeLog.11 for earlier changes.