i386.md (truncdfsf2): Don't create stack temp when using sse math only.
[gcc.git] / gcc / ChangeLog
1 2004-12-22 Richard Henderson <rth@redhat.com>
2 Uros Bizjak <uros@kss-loka.si>
3
4 * config/i386/i386.md (truncdfsf2): Don't create stack temp when
5 using sse math only. Use truncdfsf2_with_temp.
6 (truncdfsf2_with_temp): New.
7 (truncdfsf_fast_i387): Rename from truncdfsf2_noop. Add memory
8 output alternative.
9 (truncdfsf_mixed): Rename from truncdfsf2_1_sse. Compress duplicate
10 alternatives.
11 (truncdfsf_fast_sse): Rename from truncdfsf2_2. Remove f alternative.
12 (truncdfsf2_3, truncdfsf2_sse_only): Remove.
13 (truncdfsf_i387): Rename from truncdfsf2_1. Compress duplicates.
14 (truncdfsf_fast_mixed): New.
15 (truncdfsf splitters): Remove all except the 387 load/store split.
16 (truncxfsf2_1, truncxfdf2_1): Unify enable constraint with
17 respect to TARGET_SSE2, TARGET_80387, TARGET_SSE_MATH and
18 TARGET_MIX_SSE_I387.
19 (*truncxf{s,d}f2_1): Rename to *truncxf{s,d}f2_mixed.
20 (truncxf{s,d}f2_noop) Rename to truncxf{d,s}f2_i387_noop.
21 (*truncxf{s,d}f2_i387): New patterns.
22 (*truncxf{s,d}f2_2): Rename to *truncxf{s,d}f2_i387_1.
23 (truncxf{s,d}f2, fmod{s,d}f3, drem{s,d}f3, log1p{s,d}f2,
24 rint{s,d}f2, floor{s,d}f2, ceil{s,d}f2, btrunc{s,d}f2,
25 nearbyint{s,d}f2): Use renamed patterns.
26
27 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28
29 * tree.h (TYPE_SIZES_GIMPLIFIED): New.
30 * function.c (gimplify_parm_type): Don't gimplify type if already done.
31 * gimplify.c (gimplify_decl_expr): Likewise.
32 (gimplify_type_sizes): Set TYPE_SIZES_GIMPLIFIED. Examine nested
33 array types.
34
35 2004-12-22 Richard Henderson <rth@redhat.com>
36
37 * gimplify.c (eval_save_expr): Remove.
38 (gimplify_one_sizepos): Unshare expr before gimplifying.
39 * stor-layout.c (variable_size): Revert 2004-12-19 change.
40 (layout_decl): Revert 2004-12-18 change.
41 (layout_type): Revert 2004-12-21 change.
42
43 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
44
45 * tree-sra.c (type_can_be_decomposed_p): Reject variable sized types.
46
47 2004-12-22 Mark Mitchell <mark@codesourcery.com>
48
49 * Makefile.in (install-common): Remove special-case code for when
50 SPECS is defined.
51
52 2004-12-22 Jan Beulich <jbeulich@novell.com>
53
54 * config.gcc: Add dbxelf.h to NetWare's tm_file.
55 * config/i386/netware-crt0.c: Prototype __init_environment and
56 __deinit_environment prior to their definition.
57 (__init_environment): Correct invokation of constructor function.
58 * config/i386/netware.h (TARGET_OS_CPP_BUILTINS): Use
59 builtin_define_std rather than builtin_define on IAPX386.
60 * config/i386/nwld.h: Disable stabs debugging info with the linker
61 this file supports.
62 * config/i386/t-nwld (SHLIB_LINK): Do not use a temporary file for
63 the output. Add -posix to the options as that is the more compatible
64 mode.
65 * gthr-nks.h: Formatting.
66 (__gthread_mutex_init_function): Kill the dubious use of
67 NX_MUTEX_RECURSIVE as it is now clear that the traditional mutexes
68 were not meant to be recursive.
69 (__gthread_recursive_mutex_t, __GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION,
70 __gthread_recursive_mutex_init_function,
71 __gthread_recursive_mutex_lock, __gthread_recursive_mutex_trylock,
72 __gthread_recursive_mutex_unlock): New.
73
74 2004-12-22 Alexandre Oliva <aoliva@redhat.com>
75
76 * config/mips/t-linux64: Remove code that messed with $(SPECS).
77 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES): Move
78 n32 to the front.
79 (MULTILIB_EXTRA_OPTS, CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S):
80 Removed.
81 * config/mips/linux64.h (DRIVER_SELF_SPECS): Don't handle
82 -mabi-fake-default.
83 (SUBTARGET_TARGET_SWITCHES): Likewise.
84
85 2004-12-21 Andrew Pinski <pinskia@physics.uc.edu>
86
87 PR c++/18984
88 * pointer-set.c (pointer_set_contains): Add back.
89 * pointer-set.h (pointer_set_contains): Add back.
90
91 2004-12-21 Richard Henderson <rth@redhat.com>
92
93 * gimplify.c (eval_save_expr): New.
94 (gimplify_one_sizepos): Use it.
95 * stor-layout.c (layout_type): Unshare TYPE_MIN/MAX_VALUE.
96
97 2004-12-21 Nathan Sidwell <nathan@codesourcery.com>
98
99 * system.c (IN_RANGE): Use plain unsigned, not unsigned
100 HOST_WIDE_INT.
101 * tree.def (VOID_TYPE, INTEGER_TYPE, REAL_TYPE, COMPLEX_TYPE,
102 VECTOR_TYPE, OFFSET_TYPE, ENUMERAL_TYPE, BOOLEAN_TYPE, CHAR_TYPE,
103 POINTER_TYPE, REFERENCE_TYPE, METHOD_TYPE, FUNCTION_TYPE,
104 FILE_TYPE, ARRAY_TYPE, RECORD_TYPE, UNION_TYPE,
105 QUAL_UNION_TYPE): Reorder for better code efficiency.
106 (CONST_DECL, TYPE_DECL, VAR_DECL, FIELD_DECL, PARM_DECL): Likewise.
107 (INDIRECT_REF, ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF): Likewise.
108 * tree.h (INDIRECT_REF_P): Reorder checks for better optimization.
109 (IS_EXPR_CODE_CLASS): Use IN_RANGE.
110 (INTEGRAL_TYPE_P, FLOAT_TYPE_P): Reorder checks for better
111 optimization.
112
113 2004-12-21 David O'Brien <obrien@FreeBSD.org>
114
115 * config/freebsd-spec.h: Use KSE pthread lib for -pthread.
116
117 2004-12-21 James A. Morrison <phython@gcc.gnu.org>
118
119 PR c/18963
120 * c-decl.c (pushdecl): Remove block trying to merge static function
121 declarations at block scope to file scope declarations.
122
123 2004-12-21 James A. Morrison <phython@gcc.gnu.org>
124
125 PR c/18596
126 * c-parse.in (initdcl): Don't process a declaration if start_decl fails.
127 (notype_initdcl): Don't process a declaration if start_decl fails.
128 * c-decl.c (start_decl): Fail if grokdeclarator fails.
129 (grokdeclarator): Fail if a function definition has an invalid storage
130 class.
131 * c-typeck.c (start_init): Treat error_mark_node the same as 0.
132
133 2004-12-21 Richard Henderson <rth@redhat.com>
134
135 * config/i386/i386.c (x86_sse_split_regs): Rename from
136 x86_sse_partial_regs.
137 * config/i386/i386.h (x86_sse_split_regs): Likewise.
138 (TARGET_SSE_SPLIT_REGS): Rename from TARGET_SSE_PARTIAL_REGS.
139 * config/i386/i386.md (*): Update to match. Remove two
140 floatsisf splitters that use it.
141
142 * config/i386/i386.h (x86_sse_partial_regs_for_cvtsd2ss): Remove.
143
144 * config/i386/i386.c (x86_sse_partial_regs_for_cvtsd2ss): Remove.
145 * config/i386/i386.h (TARGET_SSE_PARTIAL_REGS_FOR_CVTSD2SS): Remove.
146 * config/i386/i386.md (truncdfsf2_1_sse): Don't test it.
147 (truncdfsf2_2, truncdfsf2_sse_only): Likewise.
148 (truncdfsf2_1_sse_nooverlap, truncdfsf2_2_nooverlap): Remove.
149 (truncdfsf2_sse_only_nooverlap): Remove.
150
151 * config/i386/i386.h (TARGET_SSE_TYPELESS_LOAD0): Remove.
152
153 2004-12-21 Eric Botcazou <ebotcazou@libertysurf.fr>
154
155 * expr.c (emit_group_load_1): Return the source if the move
156 is a regular move between complex values.
157
158 2004-12-20 Roger Sayle <roger@eyesopen.com>
159
160 PR middle-end/18683
161 * config/rs6000/rs6000.c (current_file_function_operand): Only check
162 current_function_decl's DECL_RTL if it has already been set.
163
164 2004-12-20 Roger Sayle <roger@eyesopen.com>
165
166 PR middle-end/18683
167 * function.c (pop_function_context_from): Don't reset reg_renumber.
168
169 2004-12-20 Eric Botcazou <ebotcazou@libertysurf.fr>
170
171 PR middle-end/18776
172 * expr.c (write_complex_part): Use a subreg if the original object
173 is a hard reg that spans an even number of regs or a MEM.
174 (read_complex_part): Likewise.
175
176 2004-12-20 Mark Mitchell <mark@codesourcery.com>
177
178 * Makefile.in (install-common): Do not install the specs file
179 unless SPECS is defined.
180
181 2004-12-20 Zdenek Dvorak <dvorakz@suse.cz>
182
183 PR rtl-optimization/18942
184 * simplify-rtx.c (simplify_relational_operation_1): Simplify
185 x + cst1 == cst2 to x == cst2 - cst1. Made static.
186
187 2004-12-20 Matt Austern <austern@apple.com>
188
189 PR c++/19044
190 * c-common.c (set_builtin_user_assembler_name): New.
191 * c-common.h (set_builtin_user_assembler_name): Declare.
192 * c-decl.c (finish_decl): Use set_builtin_user_assembler_name
193
194 2004-12-20 Diego Novillo <dnovillo@redhat.com>
195
196 PR tree-optimization/19080
197
198 Merge from tree-cleanup-branch
199
200 * tree-flow-inline.h (clear_call_clobbered): New function.
201 * tree-ssa-alias.c (init_alias_info): Call it.
202
203 2004-12-20 Richard Henderson <rth@redhat.com>
204
205 * config/i386/i386.md (sse2_movsd): Remove ix86_binary_operator_ok
206 check.
207
208 2004-12-20 Steven Bosscher <stevenb@suse.de>
209 Andrew Pinski <pinskia@physics.uc.edu>
210
211 PR middle-end/18191
212 PR middle-end/18965
213 PR middle-end/18999
214 * expr.c (categorize_ctor_elements_1): Count the total number
215 of elements in the constructor.
216 (categorize_ctor_elements): Return it in a new argument.
217 * tree.h (categorize_ctor_elements): Adjust prototype.
218 * gimplify.c (gimplify_init_ctor_eval_range): New.
219 (gimplify_init_ctor_eval): Gimplify RANGE_EXPR.
220 (gimplify_init_constructor): Block clear the object if the
221 constructor has fewer elements than the object type. Only try
222 to add assignments to individual elements when we have to.
223
224 2004-12-20 Richard Henderson <rth@redhat.com>
225
226 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
227 long_long_integer_type_node in building V2DI_type_node.
228
229 * config/i386/emmintrin.h: Use __vector_size__ instead of vector_size.
230 * config/i386/mmintrin.h, config/i386/xmmintrin.h: Likewise.
231
232 2004-12-20 Ben Elliston <bje@au.ibm.com>
233
234 * doc/md.texi (Expander Definitions): Use @emph instead of @strong
235 around Note: text to workaround a limitation of the Info format.
236 * doc/cpp.texi (Invocation): Likewise.
237 * doc/cppopts.texi: Likewise.
238
239 2004-12-19 Dale Johannesen <dalej@apple.com>
240
241 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Don't
242 reference operand 1 of ADDR_EXPRs.
243
244 2004-12-19 Mark Mitchell <mark@codesourcery.com>
245
246 * defaults.h (ASM_OUTPUT_INTERNAL_LABEL): New macro.
247 * output.h (assemble_name_raw): Declare it.
248 * system.h (ASM_OUTPUT_INTERNAL_LABEL): Do not poison it.
249 * varasm.c (assemble_name_raw): New function.
250 (assemble_name): Use it.
251 (default_internal_label): Likewise.
252 * config/darwin.c (darwin_asm_output_dwarf_delta): Likewise.
253 * doc/tm.texi (ASM_OUTPUT_INTERNAL_LABEL): Document.
254
255 2004-12-19 Richard Henderson <rth@redhat.com>
256
257 PR 18067
258 * stor-layout.c (variable_size): Force creation of a SAVE_EXPR.
259
260 2003-12-19 Steven Bosscher <stevenb@suse.de>
261
262 * config/i386/i386.c (ix86_split_to_parts): Use an array with
263 four elements for decoding a CONST_DOUBLE on 64 bits targets.
264
265 2004-12-19 Bernardo Innocenti <bernie@develer.com>
266
267 * config/m68k/m68kemb.h (TARGET_OS_CPP_BUILTINS): Remove redundant
268 definition of mc68000, already present in TARGET_CPU_CPP_BUILTINS.
269
270 2004-12-18 Daniel Berlin <dberlin@dberlin.org>
271
272 * lambda-code.c (can_convert_to_perfect_nest): Make checking
273 match up with what perfect_nestify can actually handle.
274 (perfect_nestify): Don't return false in the phi node loop.
275
276 2004-12-18 Richard Henderson <rth@redhat.com>
277
278 * config/i386/i386.md (SSEINT16): New.
279 (movv16qi, movv8hi, movv4si, movv2di): Compress via macros.
280 (movv16qi_internal, movv8hi_internal, movv4si_internal,
281 movv2di_internal): Compress via macros. Add SSE zero alternative.
282 Fix pure SSE alternatives to use 'x' instead of 'Y'.
283 (MMXINT8): New.
284 (movv8qi, movv4hi, movv2si, movv8qi_internal, movv4hi_internal,
285 movv2si_internal): Compress via macros.
286 (SSEPUSH, MMXPUSH): New.
287 (pushv18qi, pushv8hi, pushv4si, pushv2di, pushti, pushv4sf, pushv2df,
288 pushv8qi, pushv4hi, pushv2si, pushv2sf): Compress via macros.
289
290 2004-12-18 Richard Henderson <rth@redhat.com>
291
292 PR middle-end/16417
293 * c-decl.c (store_parm_decls): Clarify get_pending_sizes insertion
294 comment.
295 * c-objc-common.c (c_cannot_inline_tree_fn): Remove pending sizes
296 checks.
297 * c-tree.h (struct lang_decl): Remove pending_sizes.
298 * function.c: Include tree-gimple.h
299 (assign_parm_setup_reg): Remove callee-copies code.
300 (gimplify_parm_type, gimplify_parameters): New functions.
301 (expand_pending_sizes): Remove.
302 (expand_function_start): Don't call it.
303 * gimplify.c (gimplify_expr): Examine DECL_VALUE_EXPR for PARM_DECL.
304 (gimplify_body): Add do_parms argument. Use gimplify_parameters.
305 (gimplify_function_tree): Setup cfun. Update gimplify_body call.
306 * tree-gimple.h (gimplify_body): Update decl.
307 * tree-inline.c (initialize_inlined_parameters): Update gimplify_body
308 call.
309 * tree.h (gimplify_parameters): Declare.
310 * Makefile.in (function.o): Depend on TREE_GIMPLE_H.
311
312 2004-12-18 Richard Henderson <rth@redhat.com>
313
314 * c-decl.c (finish_struct): Add DECL_EXPR for variable sized
315 structures seen inside functions.
316
317 2004-12-18 Richard Henderson <rth@redhat.com>
318
319 * c-decl.c (grokdeclarator): Save variable array size before
320 subtracting 1, rather than after.
321
322 2004-12-18 Eric Botcazou <ebotcazou@libertysurf.fr>
323
324 PR middle-end/15486
325 * varasm.c (asm_emit_uninitialised): Return early if
326 a custom section is requested.
327 (assemble_variable): Revert 2002-03-15 patch.
328
329 2004-12-18 Richard Henderson <rth@redhat.com>
330
331 * stor-layout.c (layout_decl): Use unshare_expr, not unsave_expr.
332
333 2004-12-18 Zdenek Dvorak <dvorakz@suse.cz>
334
335 PR tree-optimization/18800
336 * params.def (PARAM_IV_ALWAYS_PRUNE_CAND_SET_BOUND): New parameter.
337 * tree-ssa-loop-ivopts.c (struct iv_ca): Add n_cands field.
338 (ALWAYS_PRUNE_CAND_SET_BOUND): New macro.
339 (iv_ca_set_no_cp, iv_ca_set_cp, iv_ca_new): Update n_cands field.
340 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_n_cands, iv_ca_prune):
341 New functions.
342 (iv_ca_extend): Return number of candidates in the set.
343 (try_add_cand_for): Add argument to iv_ca_extend calls.
344 (try_improve_iv_set): Use iv_ca_prune.
345 * doc/invoke.texi (iv-always-prune-cand-set-bound): Document.
346
347 2004-12-18 Zdenek Dvorak <dvorakz@suse.cz>
348
349 PR rtl-optimization/19001
350 * loop-iv.c (iv_number_of_iterations): Record assumptions for loops
351 with power of two step to 'infinite' field.
352
353 2004-12-18 Roger Sayle <roger@eyesopen.com>
354
355 * Makefile.in (stor-layout.o): Depend upon gt-stor-layout.h.
356 (tree-ssa-propagate.o): Depend upon gt-tree-ssa-propagate.h.
357 (tree-ssa-operands.o): Depend upon gt-tree-ssa-operands.h.
358 (tree-mudflap.o): Depend upon gt-tree-mudflap.h.
359 (expr.o): Depend upon gt-expr.h.
360 (regclass.o): Depend upon gt-regclass.h.
361 (bitmap.o): Depend upon gt-bitmap.h.
362 (lists.o): Depend upon gt-lists.h.
363
364 (cfgexpand.o): Don't depend upon gt-tree-cfg.h.
365
366 (GTFILES): Remove fold-const.c.
367 (gt-stmt.h, gt-fold-const.h, gt-input.h, gt-tree-ssa-ccp.h):
368 Remove rules.
369
370 2004-12-18 Richard Henderson <rth@redhat.com>
371
372 * stor-layout.c (layout_decl): Unshare size expressions copied
373 from the type.
374
375 * fold-const.c (multiple_of_p): Handle BIT_AND_EXPR when
376 BOTTOM is a power of two.
377
378 2004-12-18 Richard Henderson <rth@redhat.com>
379
380 * tree-nested.c (save_tmp_var): New.
381 (struct walk_stmt_info): Add is_lhs.
382 (walk_stmts) <MODIFY_EXPR>: Be more accurate with setting of
383 val_only; set is_lhs.
384 (convert_nonlocal_reference): Use save_tmp_var when is_lhs;
385 clear is_lhs when appropriate.
386 (convert_local_reference): Likewise.
387
388 2004-12-18 Richard Earnshaw <rearnsha@arm.com>
389
390 * arm/ieee754-sf.S (floatdisf): Fix label definition in FPA
391 compatibility code.
392
393 2004-12-18 Roger Sayle <roger@eyesopen.com>
394
395 * ifcvt.c (total_bb_rtx_cost): Rename function to cheap_bb_rtx_cost_p.
396 Take a max_cost argument to avoid scanning large blocks, by returning
397 a Boolean instead of a total. Include the cost of a "fstp %st(0)"
398 instruction required to pop dead values off of a register stack.
399
400 2004-12-18 Roger Sayle <roger@eyesopen.com>
401
402 PR middle-end/18548
403 * expr.c (expand_expr_real_1) <MAX_EXPR>: Ensure that target, op0
404 and op1 are all registers (or constants) before expanding the RTL
405 comparison sequence [to avoid reg_overlap_mentioned (target, op1)].
406
407 2004-12-18 Eric Botcazou <ebotcazou@libertysurf.fr>
408
409 PR rtl-optimization/16968
410 * loop.c (scan_loop): Stop scanning the loop for movable
411 insns as soon as an optimization barrier is encountered.
412
413 2004-12-17 Zack Weinberg <zack@codesourcery.com>
414
415 PR 18897
416 * toplev.c (compile_file): Call process_pending_assemble_externals
417 just before targetm.asm_out.file_end.
418
419 2004-12-17 Diego Novillo <dnovillo@redhat.com>
420
421 tree-optimization/18501
422 * tree-optimize.c (init_tree_optimization_passes): Run
423 pass_late_warn_uninitialized before the last DCE run.
424
425 2004-12-17 Richard Henderson <rth@redhat.com>
426
427 * config/i386/i386.c (x86_64_reg_class_name): Re-indent.
428 (classify_argument, examine_argument, construct_container,
429 merge_classes): Remove prototypes.
430 (type_natural_mode): Split out from ...
431 (function_arg): ... here.
432 (gen_reg_or_parallel): Remove alt_mode argument. Update callers.
433 Use orig_mode unless it's BLKmode.
434 (construct_container): Add orig_mode argument. Update callers.
435 Use gen_reg_or_parallel for SSE registers.
436 (ix86_function_value): Use type_natural_mode.
437 (ix86_gimplify_va_arg): Likewise.
438 (ix86_hard_regno_mode_ok): Always accept all SSE, MMX, 3DNOW modes in
439 SSE registers; always accept all MMX, 3DNOW modes in MMX registers.
440 * config/i386/i386.h (VALID_SSE2_REG_MODE): Don't include
441 VALID_MMX_REG_MODE.
442 * config/i386/i386.md (attribute mode): Add V1DF.
443 (movsi_1): Use 'x' instead of 'Y' constraints.
444 (movsi_1_nointernunit, movdi_2, movdi_1_rex64): Likewise.
445 (movdi_1_rex64_nointerunit): Likewise.
446 (movdf_nointeger, movdf_integer): Likewise. Handle SSE1.
447 (movsf_1, movsf_1_nointerunit): Line up constraint alternatives.
448 (swapsf): Use fp_register_operand, don't disable for TARGET_SSE.
449 (swapdf): Likewise.
450 (swapxf): Enable only for TARGET_80387.
451 (movv2sf, movv2sf_internal, pushv2sf): Enable for MMX.
452 (movtf): Remove double-check for TARGET_64BIT.
453 (movv2df_internal): Enable for SSE1.
454 (movv8hi_internal, movv16qi_internal): Likewise.
455 (movv2df, movv8hi, movv16qi): Likewise.
456 (pushv2di, pushv8hi, pushv16qi, pushv4si): Likewise.
457 (pushdi2_rex64, movv4sf_internal, movv4si_internal, movv2di_internal,
458 movv8qi_internal, movv4hi_internal, movv2sf_internal,
459 movv2df_internal, movv8hi_internal, movv16qi_internal,
460 movti_internal): Add leading '*' to name.
461
462 2004-12-17 Dale Johannesen <dalej@apple.com>
463
464 * c-decl.c (diagnose_mismatched_decls): Accept mismatched
465 function types: void with previous implicit int.
466
467 2004-12-17 Andreas Krebbel <krebbel1@de.ibm.com>
468
469 * config/s390/s390.c (s390_gimplify_va_arg): Set alias set to
470 s390_sr_alias_set.
471
472 2004-12-17 Jan Beulich <jbeulich@novell.com>
473
474 PR target/17603
475 * config/i386/i386.c (enum x86_64_reg_class): Define
476 X86_64_COMPLEX_X87_CLASS.
477 (x86_64_reg_class_names): Add name for X86_64_COMPLEX_X87_CLASS.
478 (merge_classes): Handle X86_64_COMPLEX_X87_CLASS.
479 (classify_argument): XCmode is X86_64_COMPLEX_X87_CLASS.
480 (examine_argument): X86_64_COMPLEX_X87_CLASS requires two
481 registers when dealing with a return value.
482 (construct_container): Handle X86_64_COMPLEX_X87_CLASS.
483 Eliminate impossible case of two X87/X87UP pairs (this now is
484 being expressed by a single COMPLEX_X87).
485 (x86_libcall_value): XCmode gets returned in st0/st1.
486
487 2004-12-17 Steven Bosscher <stevenb@suse.de>
488
489 * tree.c (type_contains_placeholder_1): Always return false
490 for VECTOR_TYPE if its TREE_TYPE does not contain a placeholder.
491
492 2004-12-17 Uros Bizjak <uros@kss-loka.si>
493
494 * config/i386/i386.md (extendsfdf2, *extendsfdf2_1,
495 *extendsfdf2_1_sse_only): Unify enable constraint with
496 respect to TARGET_SSE2, TARGET_80387, TARGET_SSE_MATH
497 and TARGET_MIX_SSE_I387.
498 (*extendsfdf2_i387): New insn pattern.
499 (*extendsfdf2_1): Rename to *extendsfdf2_mixed. Fix
500 register constraint for operand 0.
501 (*extendsfdf2_1_sse_only): Rename to *extendsfdf2_sse.
502 (*extend{s,d}fxf2_1): Rename to *extend{s,d}fxf2_i387.
503
504 2004-12-16 Andrew Pinski <pinskia@physics.uc.edu>
505
506 PR target/19041
507 * config/darwin.c (machopic_symbol_defined_p): Return false
508 if the binds local and is a common symbol.
509
510 2004-12-16 Richard Henderson <rth@redhat.com>
511
512 * config/i386/i386.md (extv, extzv, insv): Revalidate the
513 operand with ext_register_operand.
514
515 2004-12-16 Kazu Hirata <kazu@cs.umass.edu>
516
517 * global.c: Fix a comment typo.
518
519 2004-12-16 Eric Botcazou <ebotcazou@libertysurf.fr>
520 Roger Sayle <roger@eyesopen.com>
521
522 PR tree-optimization/18707
523 * cfgloopmanip.c (create_preheader): Move the preheader
524 only if the latch was falling through to the header.
525
526 2004-12-16 Danny Smith <dannysmith@users.sourceforge.net>
527
528 PR target/18997
529 * config/i386/cygwin.h (GTHREAD_USE_WEAK): Define to 0.
530
531 2004-12-16 Richard Henderson <rth@redhat.com>
532 Aldy Hernandez <aldyh@redhat.com>
533
534 * simplify-rtx.c (simplify_replace_rtx): Do not blindly replace
535 hard registers.
536
537 2004-12-16 H.J. Lu <hongjiu.lu@intel.com>
538
539 PR other/18508
540 * config/alpha/t-osf4 (SHLIB_LINK): Use `.backup' as the suffix
541 to back up the existing shared library.
542 * config/arm/t-netbsd (SHLIB_LINK): Likewise.
543 * config/mips/t-slibgcc-irix (SHLIB_LINK): Likewise.
544 * config/pa/t-hpux-shlib (SHLIB_LINK): Likewise.
545 * config/sh/t-linux (SHLIB_LINK): Likewise.
546 * config/t-libunwind-elf (SHLIBUNWIND_LINK): Likewise.
547 * config/t-slibgcc-darwin (SHLIB_LINK): Likewise.
548 * config/t-slibgcc-elf-ver (SHLIB_LINK): Likewise.
549 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
550
551 * config/i386/t-nwld (SHLIB_LINK): Don't use the temporary
552 file.
553
554 2004-12-16 Richard Henderson <rth@redhat.com>
555
556 * Makefile.in (MD_DEPS, s-mddeps): New.
557 (s-config, s-conditions, s-flags, s-codes, s-constants, s-emit,
558 s-recog, s-opinit, s-extract, s-peep, s-attr, s-attrtab, s-output,
559 s-preds): Depend on MD_DEPS instead of md_file.
560 (genobjnames): Add genmddeps.o
561 (build/genmddeps, build/genmddeps.o): New.
562 (mostlyclean): Remove mddeps.mk.
563 * genmddeps.c: New file.
564 * gensupport.c (include_callback): New.
565 (process_include): Call it.
566 * gensupport.h (include_callback): Declare.
567
568 2004-12-16 Nathan Sidwell <nathan@codesourcery.com>
569
570 * local-alloc.c (block_alloc): Replace IN_RANGE with simple
571 comparison.
572
573 * doc/c-tree.texi (CONSTRUCTOR): Mention RANGE_EXPRs.
574
575 2004-12-16 Mark Dettinger <dettinge@de.ibm.com>
576
577 * config/s390/s390.c (struct processor_costs): Two new fields:
578 madbr, maebr.
579 (s390_rtx_costs): Added handling of multipy and add in SFmode.
580 More precise values for cost of multiply and add.
581
582 2004-12-15 Richard Henderson <rth@redhat.com>
583
584 PR target/19028
585 * config/i386/i386.md (sse compare splitter): Test for SF and DFmode
586 explicitly instead of using VALID_SSE_REG_MODE.
587
588 2004-12-15 Richard Henderson <rth@redhat.com>
589
590 PR target/19005
591 * config/i386/i386.md (swaphi_1): Swap with swaphi_2, allow with
592 optimize_size.
593 (swapqi_1): Rename from swapqi. Enable only for no partial reg
594 stall and optimize_size.
595 (swapqi_2): New.
596 (swaphi_1, swaphi_2, swapqi_1): Add athlon_decode.
597 (swapsi, swaphi_1, swaphi_2, swapqi_1, swapdi): Remove modrm override.
598
599 2004-12-16 Uros Bizjak <uros@kss-loka.si>
600
601 * config/i386/i386.md (*floathisf2_i387, *floathidf2_i387):
602 Also enable for TARGET_MIX_SSE_I387.
603
604 2004-12-16 Uros Bizjak <uros@kss-loka.si>
605
606 * config/i386/i386.md (sqrt{s,d}f2_1, sqrt{s,d}f2_1_sse_only,
607 sqrt{s,d}f2_i387): Unify enable constraint with respect to
608 TARGET_SSE, TARGET_SSE2, TARGET_USE_FANCY_MATH_387,
609 TARGET_SSE_MATH and TARGET_MIX_SSE_I387.
610 (sqrt{s,d}f2_1): Rename to *sqrt{s,d}f2_mixed.
611 (sqrt{s,d}f2_1_sse_only): Rename to *sqrt{s,d}f2_sse.
612 (sqrt{s,d}f2_i387): Rename to *sqrt{s,d}f2_i387.
613 (*sqrtextendsfdf2): Also enable for TARGET_MIX_SSE_I387.
614 (*sqrtextend?f?f2): Rename to *sqrtextendsfdf2_i387.
615
616 2004-12-16 Uros Bizjak <uros@kss-loka.si>
617
618 * config/i386/i386.md (*fop_?f_comm_{,sse,nosse},
619 *fop_?f_1_{,sse,nosse}, *fop_{d,x}f_{2,3,4,5,6}): Unify enable
620 constraint with respect to TARGET_80387, TARGET_SSE, TARGET_SSE2,
621 TARGET_SSE_MATH and TARGET_MIX_SSE_I387.
622 (*fop_?f_{comm,1}): Rename to *fop_?f_{comm,1}_mixed.
623 (*fop_?f_{comm,1}_nosse): Rename to *fop_?f_{comm,1}_i387.
624 (*fop_{d,x}f_{2,3,4,5,6}): Rename to *fop_{d,x}f_{2,3,4,5,6}_i387.
625
626 2004-12-15 H.J. Lu <hongjiu.lu@intel.com>
627
628 PR target/18153
629 * configure.ac: Define HAVE_LD_STATIC_DYNAMIC if linker supports
630 -Bstatic/-Bdynamic option.
631 * config.in: Regenerated.
632 * configure: Likewise.
633
634 * gcc.c (init_spec): Pass -Bstatic/-Bdynamic to ld for static
635 -lunwind if possible.
636
637 2004-12-15 Daniel Berlin <dberlin@dberlin.org>
638
639 * cfgloop.c (flow_loops_dump): Don't print out levels.
640 (flow_loops_find): Don't set loop->levels.
641 (flow_loops_level_compute): Make void.
642 * cfgloop.h (struct loops): Remove levels member.
643 Add comment about loops in parray possibly being NULL.
644
645 2004-12-15 Alexandre Oliva <aoliva@redhat.com>
646
647 * reload.c (SMALL_REGISTER_CLASS_P): New.
648 (push_secondary_reload, find_reusable_reload, find_reloads): Use
649 it instead of testing only the class size.
650
651 2004-12-15 Eric Botcazou <ebotcazou@libertysurf.fr>
652
653 PR c++/17972
654 * tree-inline.c (expand_call_inline): Set TREE_SIDE_EFFECTS
655 on the STMT_EXPR wrapping up the inlined body.
656
657 2004-12-15 Vladimir Makarov <vmakarov@redhat.com>
658 Steven Bosscher <stevenb@suse.de>
659 PR middle end/17340
660
661 * global.c: Update comments in a few places.
662 (check_earlyclobber): Return true if there are early clobber
663 classes.
664 (calculate_local_reg_bb_info): Do not try to mark earlyclobber
665 regs if there are none.
666 (bb_info, allocate_bb_info, free_bb_info, modify_reg_pav,
667 make_accurate_live_analysis): Rename pavin, pavout to live_pavin,
668 live_pavout.
669 (modify_bb_reg_pav): Remove.
670 (calculate_reg_pav): Use code from modify_bb_reg_pav.
671 (temp_bitmap): New variable.
672 (calculate_reg_pav): Allocate/deallocate temp_bitmap.
673
674 2004-12-15 Richard Henderson <rth@redhat.com>
675
676 PR target/19010
677 * config/i386/i386.c (ix86_must_pass_in_stack): Don't return true
678 for TImode vectors.
679 (gen_reg_or_parallel): New.
680 (function_arg): Use it.
681 (ix86_hard_regno_mode_ok): Test SSE1 and SSE2 separately,
682 MMX and 3DNOW separately.
683 (ix86_rtx_costs): Simplify FLOAT_EXTEND case.
684 (ix86_vector_mode_supported_p): Test SSE1 and SSE2 separately.
685 * config/i386/i386.h (VALID_SSE2_REG_MODE): Move SSE2 cases from ...
686 (VALID_SSE_REG_MODE): ... here.
687
688 2004-12-15 David Edelsohn <edelsohn@gnu.org>
689
690 * xcoffout.c (xcoffout_declare_function): Change strncpy to memcpy.
691
692 2004-12-15 Ian Lance Taylor <ian@wasabisystems.com>
693
694 * config/arm/arm.c (arm_xscale_rtx_costs): Increase cost of
695 COMPARE of MULT.
696 * config/arm/arm.md (mulsi3_compare0): Don't check
697 arm_arch_xscale.
698 (mulsi_compare0_scratch, mulsi3_addsi_compare0): Likewise.
699 (mulsi3addsi_compare0_scratch): Likewise.
700
701 2004-12-15 Eric Botcazou <ebotcazou@libertysurf.fr>
702
703 PR other/18665
704 * libgcc-std.ver (GCC_3.4.4): Inherit from GCC_3.4.2.
705 Export __absvti2, __addvti3, __mulvti3, __negvti2 and __subvti3.
706 * libgcc2.c (__addvsi3): Rename to __addvSI3.
707 New version if COMPAT_SIMODE_TRAPPING_ARITHMETIC.
708 (__addvdi3): Rename to __addvDI3.
709 (__subvsi3): Rename to __subvSI3. Use word type for the result.
710 New version if COMPAT_SIMODE_TRAPPING_ARITHMETIC.
711 (__subvdi3): Rename to __subvDI3.
712 (_mulvsi3): Rename to _mulvSI3.
713 New version if COMPAT_SIMODE_TRAPPING_ARITHMETIC.
714 (_mulvdi3): Rename to _mulvDI3.
715 (__negvsi2): Rename to __negvSI2.
716 New version if COMPAT_SIMODE_TRAPPING_ARITHMETIC.
717 (__negvdi2): Rename to __negvDI2.
718 (__absvsi2): Rename to __absvSI2.
719 New version if COMPAT_SIMODE_TRAPPING_ARITHMETIC.
720 (__absvdi2): Rename to __absvDI2.
721 * libgcc2.h (64-bit targets): Define COMPAT_SIMODE_TRAPPING_ARITHMETIC.
722 (__absvSI2, __addvSI3, __subvSI3, __mulvSI3, __negvSI2, __absvDI2,
723 __addvDI3, __subvDI3, __mulvDI3, __negvDI2): Define to the appropriate
724 symbol and declare.
725 (__absvsi2, __addvsi3, __subvsi3, __mulvsi3, __negvsi2): Declare if
726 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
727
728 2004-12-15 Kazuhiro Inaoka <inaoka.kazuhiro@reneasas.com>
729
730 * config/m32r/m32r.h (PREFERRED_DEBUGGING_TYPE):
731 Use DWARF2_DEBUG.
732
733 * config/m32r.c (m32r_legitimize_pic_address): Changed
734 to support GOTOFF relocation.
735 * config/m32r.md (UNSPEC_GOTOFF): New.
736 (gotoff_load_addr): New.
737
738 2004-12-15 Richard Sandiford <rsandifo@redhat.com>
739
740 * config/mips/mips.c (mips_arg_info): Use FUNCTION_ARG_BOUNDARY to
741 decide whether an argument is double-word aligned.
742
743 2004-12-15 Richard Henderson <rth@redhat.com>
744
745 * config/i386/i386.md: Fix missing modes on cmove splitters.
746
747 2004-12-15 Jan Beulich <jbeulich@novell.com>
748
749 * mklibgcc.in (libgcc2_c_dep): Add dependency on libgcc2.h.
750
751 2004-12-15 Uros Bizjak <uros@kss-loka.si>
752
753 * config/i386/i386.md (floathisf2, *floathisf2_1, floatsisf2,
754 *floatsisf2_i387, *floatsisf2_sse, floatdisf2,
755 *floatdisf2_i387_only, *floatdisf2_i387, *floatdisf2_sse,
756 floathidf2, *floathidf2_1, *floatsidf2_i387, *floatsidf2_sse,
757 floatdidf2, *floatdidf2_i387_only, *floatdidf2_i387,
758 *floatdidf2_sse, floatunssisf2, floatunsdisf2, floatunsdidf2):
759 Unify enable constraint with respect to TARGET_80387, TARGET_SSE,
760 TARGET_SSE2, TARGET_64BIT, TARGET_SSE_MATH and TARGET_MIX_SSE_I387.
761 (*float?i?f_i387): Rename to *float?i?f2_mixed.
762 (*float?i?f2_1): Rename to *float?i?f2_i387.
763 (*float?i?f2_i387_only): Rename to *float?i?f2_i387.
764 (float?ixf2): Penalize integer register operand.
765
766 2004-12-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
767
768 PR c++/17242
769 * configure.ac: Add GAS check for HP-UX .nsubspa comdat.
770 * configure, config.in: Rebuilt.
771 * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Delete
772 defines.
773 * config/pa/pa.c (pa_select_section): Allow uninitialized variables in
774 one-only (comdat) subspaces.
775 * config/pa/som.h (SUPPORTS_SOM_COMDAT): New define.
776 (SUPPORTS_ONE_ONLY): True if SUPPORTS_WEAK or SUPPORTS_SOM_COMDAT are
777 true.
778 (MAKE_DECL_ONE_ONLY): Place uninitialized variables in common.
779
780 2004-12-14 Ian Lance Taylor <ian@wasabisystems.com>
781
782 * combine.c (combine_validate_cost): Consider cost of
783 undobuf.other_insn rather than always allowing the recombination
784 if it is set.
785
786 2004-12-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
787
788 * pa-host.c (MAP_FAILED): Define if not defined.
789 (pa_gt_pch_use_address): Handle short reads.
790
791 2004-12-14 Richard Henderson <rth@redhat.com>
792
793 PR target/17990
794 * config/i386/i386.c (x86_use_bt): New.
795 (ix86_expand_unary_operator): Use MEM_P.
796 (ix86_expand_fp_absneg_operator): New.
797 * config/i386/i386.h (x86_use_bt): Declare.
798 (TARGET_USE_BT): New.
799 * config/i386/i386-protos.h: Update.
800 * config/i386/i386.md (negsf2): Use ix86_expand_fp_absneg_operator.
801 (negdf2, negxf2, abssf2, absdf2, absxf2): Likewise.
802 (negsf2_memory, negsf2_ifs, negsf2_if, negdf2_memory, negdf2_ifs,
803 negdf2_ifs_rex64, negdf2_if, negdf2_if_rex64, negxf2_if,
804 abssf2_memory, abssf2_ifs, abssf2_if, absdf2_memory, absdf2_ifs,
805 absdf2_ifs_rex64, absdf2_if, absxf2_if): Remove.
806 (absnegsf2_mixed, absnegsf2_sse, absnegsf2_i387, absnegdf2_mixed,
807 absnegdf2_sse, absnegdf2_i387, absnegxf2_i387): New. Merge all
808 neg and abs splitters. Handle DFmode in general regs in 64-bit mode.
809 (negextendsfdf2, absextendsfdf2): Disable for non-mixed sse math.
810 (btsq, btrq, btcq): New. Add peepholes as well.
811 (movv4sf_internal splitter): Postpone til after reload.
812 (movv2di_internal splitter): Likewise.
813 * config/i386/predicates.md (const_0_to_63_operand): New.
814 (absneg_operator): New.
815
816 2004-12-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
817
818 * pa.h (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_FP_P):
819 Check register number and that reg_renumber is nonzero before using it.
820
821 2004-12-14 Steve Ellcey <sje@cup.hp.com>
822
823 * doc/invoke.texi (IA-64 options): Add existing options that
824 weren't already listed.
825
826 2004-12-14 Jeff Law <law@redhat.com>
827
828 * tree-outof-ssa.c (coalesce_abnormal_edges): Pass the correct target
829 partition to conflict_graph_merge_regs.
830
831 2004-12-14 Uttam Pawar <uttamp@us.ibm.com>
832 Janis Johnson <janis187@us.ibm.com>
833
834 * rs6000.c (rs6000_handle_altivec_attribute_tree): Report errors
835 for vector types with invalid component types.
836
837 2004-12-14 Jakub Jelinek <jakub@redhat.com>
838
839 PR middle-end/18951
840 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2,
841 expand_builtin_mathfn_3): Avoid using arguments passed to
842 save_expr after that call.
843
844 * fold-const.c (fold_single_bit_test): If flag_syntax_only, pretend
845 LOAD_EXTEND_OP is not defined.
846 (fold): Likewise. If flag_syntax_only, don't depend on BITS_PER_WORD.
847
848 2004-12-14 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
849
850 * tree.def, doc/c-tree.texi: Correctly document restrictions on the
851 shift width.
852
853 2004-12-14 Kazu Hirata <kazu@cs.umass.edu>
854
855 * expr.h (expand_modifier): Define EXPAND_STACK_PARM as 1.
856
857 2004-12-14 Richard Earnshaw <rearnsha@arm.com>
858
859 PR target/18973
860 arm-cores.def (arm926ej-s, arm1026ej-s, arm1136j-s, arm1136-jfs)
861 (arm1176jz-s, arm1176jzf-s, mpcorenovfp, mpcore): Add load-scheduling
862 property to flags.
863
864 2004-12-14 Diego Novillo <dnovillo@redhat.com>
865
866 * tree-gimple.c (get_base_address): Update documentation.
867
868 2004-12-13 Richard Henderson <rth@redhat.com>
869
870 PR middle-end/17930
871 * passes.c (rest_of_clean_state): Fix computation of
872 preferred_incoming_stack_boundary.
873
874 2004-12-13 Wolfgang Bangerth <bangerth@dealii.org>
875
876 * reload.h: Remove struct needs and its only use.
877
878 2004-12-13 Roger Sayle <roger@eyesopen.com>
879
880 PR rtl-optimization/18928
881 * simplify_rtx.c (plus_minus_operand_p): New function to encode
882 the test for suitable operands for calls to simplify_plus_minus.
883 Only allow (CONST (PLUS x y)) if both x and y are CONSTANT_P.
884 (simplify_binary_operation): Use plus_minus_operand_p.
885
886 2004-12-13 Alexandre Oliva <aoliva@redhat.com>
887
888 PR tree-opt/16951
889 * tree-inline.c (setup_one_parameter): Don't directly map a
890 parameter to the address of another variable of the same
891 function.
892
893 2004-13-12 Steven Bosscher <stevenb@suse.de>
894
895 * basic-block.h (PROP_POSTRELOAD): Do not include PROP_AUTOINC, we
896 can never create autoinc insns after reload.
897
898 2004-12-13 Jeff Law <law@redhat.com>
899 Kazu Hirata <kazu@cs.umass.edu>
900
901 PR tree-optimization/18694
902 * tree-ssa-dom.c (thread_across_edge): Do not thread jumps if a
903 PHI argument is set from a PHI_RESULT in the same block and the
904 PHI argument is not the same as the PHI result.
905
906 2004-12-13 David Edelsohn <edelsohn@gnu.org>
907
908 * xcoffout.c (xcoffout_declare_function): Always strip storage
909 class encoding.
910
911 2004-12-13 Andrew Pinski <pinskia@physics.uc.edu>
912
913 PR target/18964
914 * config/darwin.c (darwin_assemble_visibility): Fix minor diagnostic
915 problem, adding a space at the end of the string before concatenation.
916
917 2004-12-13 Kazu Hirata <kazu@cs.umass.edu>
918
919 * c-common.c (fname_as_string): Free namep if we are returning
920 cstr.text.
921
922 * tree-ssa-dom.c (record_edge_info): Fix memory leak.
923
924 2004-12-13 Andrew Pinski <pinskia@physics.uc.edu>
925
926 * tree-cfg.c (remove_useless_stmts_cond): Call fold on COND_EXPR_COND.
927
928 2004-12-13 Kazu Hirata <kazu@cs.umass.edu>
929
930 * tree-ssa-dom.c (record_equivalences_from_phis): Speed up by
931 doing a pointer comparison.
932
933 * tree-ssa-dom.c (record_equivalences_from_phis): Add a
934 comment.
935
936 * defaults.h, stmt.c, tree-cfg.c, tree-ssa-dce.c: Fix comment
937 typos.
938
939 2004-12-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
940
941 * config/m32r/t-linux (SHLIB_MAPFILES): Add libgcc-glibc.ver to
942 the list rather than replacing the existing value.
943
944 2004-12-13 Richard Henderson <rth@redhat.com>
945
946 * cfg.c (dump_flow_info): Don't dump pseudo info after reload.
947
948 2004-12-13 Richard Henderson <rth@redhat.com>
949
950 * Makefile.in (insn-preds.o): Depend on REGS_H.
951 * genpreds.c (write_insn_preds_c): Include regs.h.
952 * config/i386/predicates.md (index_register_operand): Use
953 REG_OK_FOR_INDEX_STRICT_P and REG_OK_FOR_INDEX_NONSTRICT_P.
954
955 * config/i386/i386.h (REG_CLASS_FROM_LETTER): Add 'l'.
956 * config/i386/i386.md (lea_general_1, lea_general_1_zext,
957 lea_general_2, lea_general_2_zext, lea_general_3, lea_general_3_zext,
958 adddi_1_rex64, addsi_1, addsi_1_zext, addhi_1_lea, addqi_1_lea,
959 ashldi3_1_rex64, ashlsi3_1, ashlsi3_1_zext, ashlhi3_1_lea,
960 ashlqi3_1_lea): Use 'l' for index register operand.
961 (ashldi3_1_rex64 splitter): Use index_register_operand.
962 (ashlsi3_1 splitter): Be more careful with modes.
963
964 2004-12-13 Danny Smith <dannysmith@users.sourceforge.net>
965
966 PR target/18459
967 * defaults.h (TARGET_USE_JCR_SECTION): New macro.
968 * doc/tm.texi (TARGET_USE_JCR_SECTION): Document it.
969 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Override
970 default.
971
972 2004-12-13 Uros Bizjak <uros@kss-loka.si>
973
974 PR target/14941
975 PR target/18503
976 * config/i386/i386.md (sse_movss, sse2_movsd, sse2_movhpd):
977 Fix wrong vec_merge selector bitmask.
978
979 2004-12-12 Richard Henderson <rth@redhat.com>
980
981 PR rtl-opt/17186
982 * reg-stack.c (move_nan_for_stack_reg): New.
983 (subst_stack_regs_pat): Use it.
984 (move_for_stack_reg): Handle source register not live with a nan.
985
986 2004-12-12 Richard Henderson <rth@redhat.com>
987
988 * config/i386/i386.c (ix86_gimplify_va_arg): Fix type mismatch
989 errors across operations.
990
991 2004-12-12 Di-an Jan <dianj@freeshell.org>
992
993 * doc/passes.texi (Pass Manager): Correct list of source files.
994
995 2004-12-12 Richard Henderson <rth@redhat.com>
996
997 * expr.c (emit_move_change_mode): New.
998 (emit_move_via_alt_mode): Use it.
999
1000 2004-12-12 Nathanael Nerode <neroden@gcc.gnu.org>
1001 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1002
1003 PR middle-end/17564
1004 * dojump.c (do_compare_and_jump): Only canonicalize function pointers
1005 in a comparison if both sides are function pointers.
1006
1007 2004-12-12 Richard Henderson <rth@redhat.com>
1008
1009 PR target/18932
1010 * config/i386/i386.md (all splits and peepholes): Use flags_reg_operand
1011 and compare_operator to propagate the input CC mode to the output.
1012 * config/i386/predicates.md (compare_operator): New.
1013
1014 2004-12-12 Andrew Pinski <pinskia@physics.uc.edu>
1015
1016 PR tree-opt/18040
1017 * expr.c (get_inner_reference): Remove NON_LVALUE_EXPR, NOP_EXPR,
1018 CONVERT_EXPR cases.
1019 (handled_component_p): Likewise.
1020
1021 2004-12-12 Kazu Hirata <kazu@cs.umass.edu>
1022
1023 * reg-stack.c (convert_regs_2): Free stack.
1024
1025 * tree-ssa-dom.c (thread_across_edge, dom_opt_finalize_block): Fix
1026 comment typos.
1027
1028 2004-12-12 Daniel Berlin <dberlin@dberlin.org>
1029
1030 * tree-ssa-loop-ch.c (copy_loop_headers): Loop can be null.
1031 * tree-ssa-loop-im.c (determine_lsm): tree_root may not have a real
1032 inner loop.
1033
1034 2004-12-12 Diego Novillo <dnovillo@redhat.com>
1035
1036 * tree-gimple.c (get_base_address): Update documentation.
1037
1038 2004-12-12 Kazu Hirata <kazu@cs.umass.edu>
1039
1040 * lcm.c (optimize_mode_switching): Free ptr even when mode_set
1041 is NULL_RTX.
1042
1043 2004-12-12 Roger Sayle <roger@eyesopen.com>
1044
1045 * reg-stack.c (change_stack): Avoid placing the new top-of-stack in
1046 its correct location during popping if we need to permute the stack
1047 afterwards. Attempt to preserve the original stack ordering.
1048
1049 2004-12-12 Kazu Hirata <kazu@cs.umass.edu>
1050
1051 * lcm.c (optimize_mode_switching): Free insert and delete in
1052 the "for" loop.
1053
1054 2004-12-11 David Edelsohn <edelsohn@gnu.org>
1055 Ulrich Weigand <uweigand@de.ibm.com>
1056
1057 PR target/18641
1058 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Reload all
1059 constants into all register classes intersecting with FLOAT_REGS
1060 via memory.
1061 * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): Same.
1062 * config/rs6000/rs6000.md (movdi_internal32): Ignore FPRs when
1063 choosing register preferences.
1064 (movdi_internal64): Same.
1065
1066 2004-12-11 Kazu Hirata <kazu@cs.umass.edu>
1067
1068 * tree-into-ssa.c (rewrite_ssa_into_ssa): Free SSA_NAME_AUX
1069 before we release an SSA_NAME.
1070
1071 2004-12-11 Roger Sayle <roger@eyesopen.com>
1072
1073 PR middle-end/18921
1074 * fold-const.c (fold_unwidened_comparison): Use omit_one_operand
1075 instead of constant_boolean_node as arg0 may have side-effects.
1076
1077 2004-12-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1078
1079 * pa-host.c (pa_gt_pch_use_address): Use lseek and read to copy PCH
1080 file to anonymous private map.
1081
1082 2004-12-10 Roger Sayle <roger@eyesopen.com>
1083
1084 PR target/18002
1085 PR middle-end/18424
1086 * dojump.c (do_jump): When attempting to reverse the effects of
1087 fold_single_bit_test, we need to STRIP_NOPS and narrowing type
1088 conversions, and handle BIT_XOR_EXPR that's used to invert the
1089 sense of the single bit test.
1090
1091 2004-12-10 Devang Patel <dpatel@apple.com>
1092
1093 PR 18732
1094 * gcc.c (main): Do not break out of loop when error is reported while
1095 processing one source file.
1096
1097 2004-12-10 Diego Novillo <dnovillo@redhat.com>
1098
1099 * tree-into-ssa.c (REWRITE_THIS_STMT): Define.
1100 (mark_def_sites): Clear REWRITE_THIS_STMT for statements that
1101 don't need any operands rewritten.
1102 (rewrite_stmt): Ignore statements that don't need to be
1103 rewritten.
1104 (rewrite_operand): Validate that an existing SSA_NAME is
1105 identical to the current reaching definition of the operand.
1106
1107 2004-12-10 Diego Novillo <dnovillo@redhat.com>
1108
1109 * tree-dfa.c (mark_call_clobbered_vars_to_rename): New function.
1110 * tree-vectorizer.c (vectorizable_load): Call it.
1111 * tree-flow.h (mark_call_clobbered_vars_to_rename): Declare.
1112 * tree-sra.c (mark_all_v_defs): Also mark VUSEs for renaming.
1113
1114 2004-12-10 Kazu Hirata <kazu@cs.umass.edu>
1115
1116 * regmove.c (combine_stack_adjustments_for_block): Free
1117 memlist if it hasn't been freed.
1118
1119 2004-12-10 Ziemowit Laski <zlaski@apple.com>
1120
1121 * c-typeck.c (lookup_field): Check if a TYPE_LANG_SPECIFIC
1122 pointer field is set before dereferencing it.
1123
1124 2004-12-10 Andrew Pinski <pinskia@physics.uc.edu>
1125
1126 PR middle-end/18903
1127 * tree-cfg.c (remove_bb): Put the moved label at the beginning
1128 of the basic block.
1129
1130 2004-12-10 Kazu Hirata <kazu@cs.umass.edu>
1131
1132 * tree-data-ref.c (free_data_refs): Free each data_reference
1133 object.
1134
1135 * tree-ssa-dom.c (thread_across_edge): Speed up by avoiding a
1136 call to is_gimple_min_invariant if we know the result.
1137
1138 2004-12-10 Jeff Law <law@redhat.com>
1139
1140 * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
1141 redundant test of v_ann->mem_tag_kind.
1142
1143 * tree-ssa-operands.c (get_indirect_ref_operands): Remove
1144 redundant conditional clearing opf_kill_def.
1145
1146 2004-12-10 Richard Sandiford <rsandifo@redhat.com>
1147
1148 * config/frv/frv-modes.def: Fix comment typos.
1149 (CC_NZ): Define new mode.
1150 * config/frv/frv-protos.h (frv_select_cc_mode): Declare.
1151 (condexec_intop_cmp_operator): Delete.
1152 * config/frv/frv.c (comparison_string): New function.
1153 (frv_print_operand): Use it to handle 'c' and 'C'.
1154 (relational_operator): Redefine in terms of integer_relational_operator
1155 and float_relational_operator.
1156 (signed_relational_operator, unsigned_relational_operator): Delete.
1157 (integer_relational_operator): New predicate, combining the above.
1158 Check the mode of the first operand but leave frv.md to check the rest.
1159 (float_relational_operator): Just check the mode of the first operand
1160 and leave frv.md to check the rest.
1161 (intop_compare_operator): Assume the result is compared with zero
1162 in mode CC_NZmode. Allow PLUS and MINUS. Leave frv.md to check
1163 the operand predicates.
1164 (condexec_intop_cmp_operator): Delete.
1165 (frv_ifcvt_modify_tests, frv_ifcvt_modify_multiple_tests)
1166 (frv_hard_regno_mode_ok): Handle CC_NZmode.
1167 (frv_select_cc_mode): New function.
1168 * config/frv/frv.h (SELECT_CC_MODE): Use frv_select_cc_mode.
1169 (REVERSIBLE_CC_MODE): Include CC_NZmode.
1170 (PREDICATE_CODES): Replace entries for signed_relational_operand and
1171 unsigned_relational_operator with one for integer_relational_operator.
1172 Delete entry for condexec_intop_cmp_operator.
1173 * config/frv/frv.md (movcc_nz, *internal_movcc_nz, reload_incc_nz)
1174 (reload_outcc_nz, *cmpsi_cc_nz, *cond_exec_cmpsi_cc_nz): New patterns.
1175 (*combo_intop_compare2, *combo_intop_compare4): Delete.
1176 (*combo_intop_compare1): Change mode to CC_NZ.
1177 (*combo_intop_compare2): Likewise. Renamed from *combo_intop_compare3.
1178 (branch_{un,}signed_true, branch_{un,}signed_false)
1179 (*scc_{un,}signed, *scc_neg1_{un,}signed, *ck_{un,}signed)
1180 (*movqicc_internal1_{un,}signed, *movqicc_internal2_{un,}signed)
1181 (*movhicc_internal1_{un,}signed, *movhicc_internal2_{un,}signed)
1182 (*movsicc_internal1_{un,}signed, *movsicc_internal2_{un,}signed)
1183 (*movsfcc_has_fprs_{un,}signed, *movsfcc_no_fprs_{un,}signed)
1184 (*return_{unsigned_,}true, *return_{unsigned_,}false): Merge these
1185 pattern pairs. Use integer_relational_operator. Remove mode from
1186 icc_operand.
1187
1188 2004-12-10 Mark Dettinger <dettinge@de.ibm.com>
1189
1190 * config/s390/s390.c (struct processor_costs): New fields ml,
1191 sqdbr, sqebr.
1192 (s390_rtx_costs): Added the missing handling of multiply & add,
1193 square root, and umulsidi.
1194
1195 2004-12-10 Kazu Hirata <kazu@cs.umass.edu>
1196
1197 * expmed.c (synth_mult): Initialize new_limit.latency before
1198 making a recursive call.
1199
1200 2004-12-10 Nick Clifton <nickc@redhat.com>
1201
1202 * config/mn10300/mn10300.c (legitimate_address_p): Reject address
1203 whose index is itself the sum of two other parts.
1204
1205 2004-12-10 Alan Modra <amodra@bigpond.net.au>
1206
1207 * config/t-slibgcc-sld (SHLIB_LINK): Correct symlink.
1208
1209 2004-12-10 Uros Bizjak <uros@kss-loka.si>
1210
1211 * config/i386/i386.md (*cmpfp_sf): Change type attribute to "multi".
1212
1213 2004-12-09 Richard Henderson <rth@redhat.com>
1214
1215 PR c/18282
1216 * attribs.c (decl_attributes): Use relayout_decl.
1217 * c-common.c (handle_mode_attribute): Copy all relevant type
1218 parameters from the new underlying integral type.
1219
1220 2004-12-09 Richard Henderson <rth@redhat.com>
1221
1222 * c-common.c (shorten_compare): Don't special-case min/maxval
1223 for C enumerations.
1224
1225 2004-12-09 Richard Sandiford <rsandifo@redhat.com>
1226
1227 * simplify-rtx.c (simplify_subreg): In the CONCAT case, check whether
1228 the request subreg is entirely contained in the requested component.
1229 (simplify_gen_subreg): Return null for CONCATs that are rejected
1230 by simplify_subreg.
1231 * expmed.c (store_bit_field): Create a temporary when changing the
1232 value to an integer mode.
1233
1234 2004-12-09 David Edelsohn <edelsohn@gnu.org>
1235
1236 * real.c (ibm_extended): Correct comment.
1237
1238 2004-12-09 Stan Shebs <shebs@apple.com>
1239
1240 * config/rs6000/darwin-asm.h: New file, 32/64-bit assembly macros
1241 formerly in darwin-tramp.asm.
1242 * config/rs6000/darwin-tramp.asm: Include darwin-asm.h.
1243 * config/rs6000/darwin-fpsave.asm: Use 32/64-bit macros.
1244 * config/rs6000/t-darwin: Add dependencies.
1245
1246 2004-12-09 Richard Henderson <rth@redhat.com>
1247
1248 PR target/17025
1249 * config/i386/i386.md (testqi_1_maybe_si, andqi_2_maybe_si): New.
1250 (test_qi_1, andqi_2): Do not promote to simode.
1251
1252 2004-12-09 Andrew Pinski <pinskia@physics.uc.edu>
1253
1254 PR tree-opt/18904
1255 * tree-chrec.c (chrec_convert): Use fold_convert
1256 instead of convert.
1257
1258 2004-12-09 Matt Rice <ratmice@yahoo.com>
1259
1260 PR preprocessor/18102
1261 * c-incpath.c (remove_duplicates): Check for construct
1262 equality.
1263
1264 2004-12-09 Dorit Naishlos <dorit@il.ibm.com>
1265
1266 * genopinit.c (vec_realign_store_optab): Initialization removed.
1267 * optabs.c (optab_for_tree_code): REALIGN_STORE_EXPR case removed.
1268 * optabs.h (optab_index): OTI_vec_realign_store Removed.
1269 (vec_realign_store_optab): Removed.
1270 * target-def.h (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Removed.
1271 * target.h (builtin_mask_for_store): Removed.
1272 * tree.def (REALIGN_STORE_EXPR): Removed.
1273 * config/rs6000/rs6000.c (rs6000_builtin_mask_for_store): Removed.
1274 (altivec_builtin_mask_for_store): Removed.
1275 (altivec_init_builtins): Removed initialization of
1276 altivec_builtin_mask_for_store.
1277
1278 * doc/tm.texi (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
1279 (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): New.
1280
1281 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
1282
1283 * doc/c-tree.texi (CONSTRUCTOR): Mention RANGE_EXPRs.
1284
1285 * tree.def (SET_TYPE): Remove.
1286 (CONSTRUCTOR): Update description.
1287 * builtins.c (type_to_class) Remove SET_TYPE case.
1288 * dbxout.c (dbxout_type): Likewise.
1289 * dwarf2out.c (is_base_type): Likewise.
1290 (gen_set_type_die): Remove.
1291 (gen_type_die): Remove SET_TYPE case.
1292 * expr.c (count_type_elements): Likewise.
1293 (mostly_zeroes_p): Likewise.
1294 (store_constructor): Likewise.
1295 * print_tree.c (print_node): Likewise.
1296 * stor-layout.c (layout_type): Likewise.
1297 * tree-browser.c (browse_tree): Likewise.
1298 * tree-inline.c (remap_type): Likewise.
1299 * tree-pretty-print.c (dump_generic_node): Likewise.
1300 * tree.c (type_contains_plaeholder_1, type_hash_eq,
1301 variably_modified_type_p, initializer_zerop): Likewise.
1302 * tree.h (SET_OR_ARRAY_CHECK): Remove.
1303 (AGGREGATE_TYPE_P): Remove SET_TYPE check.
1304 (TYPE_DOMAIN): Use ARRAY_TYPE_CHECK.
1305 * typeclass.h (enum type_class): Remove set_type_class.
1306 * varasm.c (const_hash_1): Remove SET_TYPE case.
1307 (compare_constant, copy_constant, output_constant): Likewise.
1308 * config/i386/i386.c (classify_argument): Likewise.
1309 * config/ia64/ia64.c (hfa_element_mode): Likewise.
1310 * config/sparc/sparc.c (sparc_type_code): Likewise.
1311
1312 PR c++/16681
1313 * tree-inline.c (estimate_num_insns_1): Add RANGE_EXPR case.
1314
1315 2004-12-08 Richard Henderson <rth@redhat.com>
1316
1317 * config/i386/i386.md: Use FLAGS_REG everywhere.
1318
1319 2004-12-08 Eric Christopher <echristo@redhat.com>
1320
1321 * config/mips/mips.c (mips_scalar_mode_supported_p): Rewrite
1322 to avoid call to default function.
1323
1324 2004-12-08 Zack Weinberg <zack@codesourcery.com>
1325
1326 PR 17982
1327 * varasm.c (pending_assemble_externals): New static.
1328 (assemble_external_real): Meat of assemble_external split out
1329 to this new function.
1330 (process_pending_assemble_externals): New function.
1331 (assemble_external): Use gcc_assert. If flag_unit_at_a_time
1332 is true and the basic test passes, merely cons the decl onto
1333 the pending list to be handled later.
1334 * tree.h: Declare process_pending_assemble_externals.
1335 * cgraphunit.c (cgraph_optimize): Call it.
1336
1337 * config/h8300/h8300.h: Do not define ASM_OUTPUT_EXTERNAL.
1338
1339 2004-12-08 Kazu Hirata <kazu@cs.umass.edu>
1340
1341 * cfgloopmanip.c (create_preheader): Speed up by "unrolling"
1342 and simplifying FOR_EACH_EDGE.
1343
1344 2004-12-08 Richard Sandiford <rsandifo@redhat.com>
1345
1346 * config/frv/frv.c (frv_sort_insn_group): Always initialize
1347 packet_group->nop.
1348
1349 2004-12-08 Nathan Sidwell <nathan@codesourcery.com>
1350
1351 PR c++/18672
1352 * gimplify.c (canonicalize_addr_expr): Cope with array of
1353 incomplete type.
1354 (gimplify_conversion): Remove redundant checks.
1355
1356 * doc/trouble.texi (Non-bugs): Clarify empty loop removal.
1357
1358 2004-12-08 Uros Bizjak <uros@kss-loka.si>
1359
1360 * config/i386/i386.c (output_387_binary_op,
1361 ix86_prepare_fp_compare_args): Fix is_sse condition.
1362
1363 2004-12-07 Uros Bizjak <uros@kss-loka.si>
1364
1365 * config/i386/i386-protos.h (ix86_split_fp_branch): New rtx
1366 argument.
1367
1368 * config/i386/i386.c (output_fp_compare): Fix is_sse condition.
1369 Use EFLAGS_P only when fcomi insn should be used. Fix handling
1370 of eflags_p variable. Change alt table accordingly. For non-fcomi
1371 compare insn always use trailing fnstsw insn. Fix intmode
1372 calculation for ficom insn.
1373 (ix86_split_fp_branch): Add "rtx pushed" as new parameter. Call
1374 ix86_free_from_memory when "pushed" is specified.
1375 (ix86_expand_branch): Change call to ix86_split_fp_branch.
1376
1377 * config/i386/i386.md (*cmpfp_0_sf, *cmpfp_0_df, *cmpfp_0_xf):
1378 Change eflags_p parameter in call to output_fp_compare.
1379 (*cmpfp_2_sf, *cmpfp_2_df, *cmpfp_2_xf): Remove.
1380 (*cmpfp_2_sf_1, *cmpfp_2_df_1, *cmpfp_2_xf_1): Rename to
1381 *cmpfp_2_sf, *cmpfp_2_df, *cmpfp_2_xf. Change eflags_p
1382 parameter in call to output_fp_compare.
1383 (*cmpfp_2_u): Remove.
1384 (*cmpfp_2_u_1): Rename to *cmpfp_2_u. Change eflags_p parameter
1385 in call to output_fp_compare.
1386 (*ficom_1): Remove insn definition and corresponding define_split.
1387 (*cmpfp_si): New insn definition.
1388 (*fp_jcc_8): New insn definition. Add new splitters for
1389 "memory_operand" and "register_operand".
1390 (define_split): Add new parameter in call to ix86_split_fp_branch.
1391
1392 config/i386/predicates.md (float_operator): New predicate.
1393
1394 2004-12-08 Kazu Hirata <kazu@cs.umass.edu>
1395
1396 * c-common.c (verify_tree): Don't check code length if we know
1397 we are handling tcc_unary.
1398 * print_tree.c (print_node): Remove code to handle RTL
1399 appearing as a part of a tree node.
1400 * tree-gimple.c (recalculate_side_effects): Rename fro as len.
1401 * tree.c (build1_stat): Don't check TREE_CODE_LENGTH.
1402 (PROCESS_ARG): Don't refer to fro.
1403 (build2_stat, build3_stat, build4_stat): Don't compute fro.
1404
1405 2004-12-07 Roger Sayle <roger@eyesopen.com>
1406
1407 PR middle-end/18293
1408 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Move definition earlier.
1409 (expand_mult): Special case powers of two to avoid synth_mult.
1410 * loop.c (product_cheap_p): Handle case where expand_mult does
1411 require/generate any instructions (i.e. multiplication by zero).
1412
1413 2004-12-07 Richard Henderson <rth@redhat.com>
1414
1415 * tree-pretty-print.c (dump_array_domain): Split out from
1416 dump_generic_node; fix off-by-one error on zero-based array bounds.
1417 (dump_generic_node): Use it.
1418 (print_declaration): Likewise.
1419
1420 2004-12-08 Richard Guenther <richard.guenther@uni-tuebingen.de>
1421
1422 * doc/invoke.texi: Adjust default values for
1423 large-function-growth and inline-unit-growth to match
1424 params.def. Clarify used algorithm.
1425
1426 2004-12-07 David Mosberger <davidm@hpl.hp.com>
1427
1428 PR target/18443
1429 * config/ia64/ia64.c (ia64_assemble_integer): Add support for
1430 emitting unaligned pointer-sized integers.
1431
1432 2004-12-07 Steven Bosscher <stevenb@suse.de>
1433
1434 PR c/18867
1435 * c-typeck.c (c_start_case): Set orig_type to error_mark_node
1436 when the type of the controlling expression is not a valid type.
1437
1438 2004-12-07 Steven Bosscher <stevenb@suse.de>
1439
1440 PR tree-optimization/17340
1441 * tree-ssa-pre.c (compute_antic): Fix comment.
1442 (compute_avail): Do not recurse, instead do a DFS using a stack
1443 and a loop.
1444 (execute_pre): Adjust.
1445
1446 2004-12-07 Ziemowit Laski <zlaski@apple.com>
1447
1448 * c-tree.h (struct lang_type): Rename 'objc_protocols' field
1449 to 'objc_info'.
1450
1451 2004-12-07 Eric Christopher <echristo@redhat.com>
1452
1453 PR target/16317
1454 * config/netbsd.h (NO_IMPLICIT_EXTERN_C): Define.
1455
1456 2004-12-07 Eric Christopher <echristo@redhat.com>
1457
1458 * config/mips/mips-protos.h (mips_valid_pointer_mode): Move
1459 prototype...
1460 * config/mips/mips.c: ... here. Make static.
1461
1462 2004-12-07 Eric Christopher <echristo@redhat.com>
1463
1464 PR target/18442
1465 * config/mips/mips.c (mips_vector_mode_supported_p): New function.
1466 (TARGET_SCALAR_MODE_SUPPORTED_P): Define to above.
1467
1468 2004-12-07 Kazu Hirata <kazu@cs.umass.edu>
1469
1470 * c-common.c, expr.c, fold-const.c, print-tree.c,
1471 tree-gimple.c, tree-inline.c, tree-pretty-print.c,
1472 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c: Replace uses of
1473 first_rtl_op with TREE_CODE_LENGTH.
1474 * tree.c (first_rtl_op): Remove.
1475 Replace uses of first_rtl_op with TREE_CODE_LENGTH.
1476 * tree.h: Remove the prototype for first_rtl_op.
1477
1478 2004-12-07 David Edelsohn <edelsohn@gnu.org>
1479
1480 * config/rs6000/t-aix43, config/rs6000/t-aix52 (SHLIB_LINK):
1481 Revert 2004-12-01 change.
1482
1483 2004-12-06 Ziemowit Laski <zlaski@apple.com>
1484
1485 * c-tree.h (struct lang_type): Add 'objc_protocols' field.
1486
1487 2004-12-06 DJ Delorie <dj@redhat.com>
1488
1489 * reload.c (find_valid_class): Fix logic to test inner mode as well.
1490 (push_reload): Pass inner mode.
1491
1492 2004-12-06 Eric Christopher <echristo@redhat.com>
1493
1494 * doc/tm.texi (TARGET_VALID_POINTER_MODE): Document.
1495
1496 2004-12-06 Aldy Hernandez <aldyh@redhat.com>
1497
1498 * config/rs6000/sysv4.h: Define RELOCATABLE_NEEDS_FIXUP to 1.
1499
1500 2004-12-06 Zdenek Dvorak <dvorakz@suse.cz>
1501 Kazu Hirata <kazu@cs.umass.edu>
1502
1503 PR tree-optimization/18601
1504 * tree-cfg.c (thread_jumps, thread_jumps_from_bb): Removed.
1505 (tree_forwarder_block_p): Do not consider blocks that are its own
1506 successors forwarders.
1507 (cleanup_forwarder_blocks, remove_forwarder_block): New functions.
1508 (cleanup_tree_cfg): Use cleanup_forwarder_blocks instead of
1509 thread_jumps.
1510 * tree-flow.h (bb_ann_d): Remove forwardable.
1511
1512 2004-12-06 Kazu Hirata <kazu@cs.umass.edu>
1513
1514 * expr.c (expand_expr_real_1): Remove an "if" whose condition
1515 is always false.
1516
1517 2004-12-06 Roger Sayle <roger@eyesopen.com>
1518
1519 * c-gimplify.c (gimplify_c_loop): Improve initial implementations
1520 for loops whose conditions are known at compile-time.
1521 * gimplify.c (append_to_statement_list_1): Remove side_effects
1522 parameter, this function should never be called if its false.
1523 (append_to_statement_list): Only call append_to_statement_list_1
1524 if t is non-NULL tree with side-effects.
1525 (append_to_statement_list_force): Likewise, if t is not NULL.
1526
1527 2004-12-06 J"orn Rennecke <joern.rennecke@st.com>
1528
1529 * bt-load.c (btr_def_s): New member own_end;
1530 (add_btr_to_live_range): Add second parameter. Changed caller.
1531 (clear_btr_from_live_range): Clear btrs_live_at_end bit
1532 for the register its definition basic block if own_end is set.
1533 (augment_live_range): Also take btrs_live_at_end into account.
1534 (combine_btr_defs): Don't bother with
1535 other_def->other_btr_uses_after_use if it pertains to a different
1536 register.
1537 (move_btr_def): Set def->other_btr_uses_before_def after
1538 calling combine_btr_defs."
1539
1540 * bt-load.c (augment_live_range): New argument full_range.
1541 Changed all callers.
1542
1543 * bt-load.c (move_tr_def): Set other_tr_uses_before_def
1544 taking new btr assignment into account.
1545
1546 2004-12-05 Daniel Berlin <dberlin@dberlin.org>
1547
1548 * tree-ssa-alias.c (create_global_var): Use void_type_node,
1549 not size_type_node.
1550
1551 2004-12-05 Kazu Hirata <kazu@cs.umass.edu>
1552
1553 * expr.c (expand_expr_real_1): Abort on COND_EXPR of
1554 VOID_TYPE.
1555
1556 2004-12-05 Richard Henderson <rth@redhat.com>
1557
1558 PR target/18841
1559 * config/alpha/alpha.md (UNSPECV_SETJMPR_ER): New.
1560 (builtin_setjmp_receiver_er_sl_1): Use it.
1561 (builtin_setjmp_receiver_er_1): Likewise.
1562 (builtin_setjmp_receiver_er, exception_receiver_er): Remove.
1563 (builtin_setjmp_receiver): Don't split for explicit relocs until
1564 after reload.
1565 (exception_receiver): Likewise.
1566
1567 2004-12-05 Andrew Pinski <pinskia@physics.uc.edu>
1568
1569 * mklibgcc.in (vis_hide): Add the prototype for the test.
1570
1571 2004-12-05 Roger Sayle <roger@eyesopen.com>
1572
1573 * c-typeck.c (c_finish_loop): Improve initial implementations
1574 for loops whose conditions are known at compile-time.
1575
1576 2004-12-05 Kazu Hirata <kazu@cs.umass.edu>
1577
1578 * builtins.c: Fix comment typos.
1579
1580 2004-12-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1581
1582 PR middle-end/18730
1583 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): When
1584 the first/last insn is a sequence, return the first/last insn of the
1585 sequence.
1586
1587 PR bootstrap/18804
1588 * mklibgcc.in (vis_hide): Use implementation instead of declaration
1589 for test function.
1590
1591 2004-12-04 Richard Henderson <rth@redhat.com>
1592
1593 * config/alpha/alpha.c (alpha_expand_unaligned_load): Don't forget to
1594 use ofs in BWX two byte special case.
1595 (alpha_expand_unaligned_store): Likewise.
1596
1597 2004-12-04 Kazu Hirata <kazu@cs.umass.edu>
1598
1599 * gcse.c (gcse_main): Add a comment.
1600
1601 2004-12-04 Andrew Pinski <pinskia@physics.uc.edu>
1602
1603 PR middle-end/17909
1604 * builtins.c (fold_builtin_next_arg): Export and return true
1605 when there is a warning or an error.
1606 (expand_builtin_va_start): When fold_builtin_next_arg returns true,
1607 return const0_rtx.
1608 (expand_builtin): Likewise.
1609 * gimplify.c (gimplify_call_expr): Error out if there is not
1610 enough arguments to va_start. Call fold_builtin_next_arg also
1611 on the second argument.
1612 * tree.h (fold_builtin_next_arg): Prototype.
1613
1614 2004-12-04 Alan Modra <amodra@bigpond.net.au>
1615
1616 * mklibgcc.in: Build shared libgcc and shared libunwind in gcc/.
1617 Don't subst shlib_dir for SHLIB_LINK, SHLIBUNWIND_LINK,
1618 SHLIB_INSTALL, and SHLIBUNWIND_INSTALL.
1619 * config/i386/t-nwld (SHLIB_NAME): Use shlib_base_name in place of
1620 shlib_dir and shlib_so_name.
1621 * config/mips/t-slibgcc-irix (SHLIB_NAME): Likewise.
1622 * config/t-libunwind-elf (SHLIB_NAME): Likewise.
1623 * config/t-slibgcc-darwin (SHLIB_NAME): Likewise.
1624 * config/t-slibgcc-elf-ver (SHLIB_NAME): Likewise.
1625 * config/t-slibgcc-sld (SHLIB_NAME): Likewise.
1626 (SHLIB_LINK): Don't use shlib_dir when creating symlink.
1627
1628 2004-12-03 Roger Sayle <roger@eyesopen.com>
1629
1630 * doc/tm.texi (TARGET_DELEGITIMIZE_ADDRESS): Document target hook.
1631
1632 2004-12-03 Richard Henderson <rth@redhat.com>
1633
1634 * alias.c (component_uses_parent_alias_set): Rename from
1635 can_address_p. Return bool. Reverse the sense of the result.
1636 Reinstate the check for alias set zero.
1637 (get_alias_set): Update to match.
1638 * alias.h (component_uses_parent_alias_set): Likewise.
1639 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
1640 * expr.c (expand_assignment): Likewise.
1641 * expr.h: Remove commented out prototypes that were moved to alias.h.
1642
1643 2004-12-03 Richard Henderson <rth@redhat.com>
1644
1645 * doc/tm.texi (TARGET_BUILD_BUILTIN_VA_LIST): New.
1646 (TARGET_CANNOT_FORCE_CONST_MEM): New.
1647
1648 2004-12-04 Alan Modra <amodra@bigpond.net.au>
1649
1650 PR middle end/18718
1651 * sched-rgn.c (schedule_region): Don't assume REG_SAVE_NOTEs are
1652 in pairs.
1653 * sched-ebb.c (schedule_ebb): Likewise.
1654
1655 2004-12-03 Andreas Schwab <schwab@suse.de>
1656
1657 * Makefile.in (HOSTHOOKS_DEF_H): Define.
1658 (ggc-common.o): Depend on $(HOSTHOOKS_DEF_H).
1659 (host-default.o): Likewise.
1660
1661 2004-12-03 Eric Christopher <echristo@redhat.com>
1662
1663 * config/stormy16/stormy16.md (pushqi, popqi, pushhi,
1664 pophi): Add number of arguments to name so that the
1665 pattern is recognized as a named pattern.
1666
1667 2004-12-03 Janis Johnson <janis187@us.ibm.com>
1668
1669 * doc/extend.texi (AltiVec Builtins): Fix info about signedness.
1670
1671 2004-12-03 Andreas Tobler <a.tobler@schweiz.ch>
1672
1673 * config/rs6000/rs6000.c (rs6000_override_options): Protect
1674 darwin_one_byte_bool with #if.
1675
1676 2004-12-03 Paolo Bonzini <bonzini@gnu.org>
1677
1678 * doc/tm.texi (Misc): Document TARGET_FOLD_BUILTIN.
1679
1680 2004-12-03 H.J. Lu <hongjiu.lu@intel.com>
1681
1682 * mklibgcc.in: Put back the default set of EXTRA_MULTILIB_PART.
1683
1684 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
1685
1686 * configure.ac: Move TL_AC_GCC_VERSION into initialization section.
1687 Set libstdcxx_incdir directly.
1688 * configure: Regenerate.
1689
1690 2004-12-03 Kazu Hirata <kazu@cs.umass.edu>
1691
1692 * tree-ssa-dom.c (record_equivalences_from_phis): Remove an
1693 "if" whose condition is always true.
1694
1695 * cfgrtl.c (rtl_verify_flow_info_1): Use JUMP_P instead of
1696 INSN_P.
1697
1698 2004-12-02 Stan Shebs <shebs@apple.com>
1699
1700 * config/rs6000/rs6000.c (rs6000_override_options): Make 64-bit
1701 Darwin default to one-byte bools.
1702
1703 2004-12-02 Richard Henderson <rth@redhat.com>
1704
1705 PR 18774
1706 * simplify-rtx.c (simplify_immed_subreg): Fail complex modes.
1707
1708 2004-12-03 Ben Elliston <bje@au.ibm.com>
1709
1710 * doc/cfg.texi (Edges): Update. Document the edge_iterator data
1711 type and its methods.
1712
1713 2004-12-02 Richard Henderson <rth@redhat.com>
1714
1715 * expr.c (write_complex_part): Use simplify_gen_subreg when the
1716 submode is at least as large as a word.
1717 (read_complex_part): Likewise.
1718
1719 2004-12-02 H.J. Lu <hongjiu.lu@intel.com>
1720
1721 PR bootstrap/18532
1722 * mklibgcc.in: Build one set of EXTRA_MULTILIB_PARTS for
1723 multilib at a time. Don't build the default set. Don't add
1724 EXTRA_MULTILIB_PARTS to shared libunwind nor libgcc. Remove
1725 filter for shared libunwind and libgcc.
1726
1727 2004-12-02 Roger Sayle <roger@eyesopen.com>
1728
1729 PR target/18759
1730 * config/i386/i386.c (override_options): If -fomit-frame-pointer has
1731 already been specified, ignore the -momit-leaf-frame-pointer option.
1732
1733 2004-12-02 H.J. Lu <hongjiu.lu@intel.com>
1734
1735 * varasm.c (make_decl_rtl): Add the missing `;'.
1736
1737 2004-12-02 Andrew Pinski <pinskia@physics.uc.edu>
1738
1739 * tree.c (is_attribute_p): Split out to ..
1740 (is_attribute_with_length_p): Here. Use IDENTIFIER_LENGTH instead
1741 of strlen and compare the string lengths before calling strcmp.
1742 (lookup_attribute): Call is_attribute_with_length_p instead of
1743 is_attribute_p.
1744
1745 2004-12-02 Devang Patel <dpatel@apple.com>
1746
1747 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -gfull and -gused.
1748 * config/rs6000/darwin.h (CC1_SPEC): Do not handle -gfull and -gused.
1749 * config/i386/darwin.h (CC1_SPEC): Same.
1750
1751 2004-12-02 Richard Henderson <rth@redhat.com>
1752
1753 * optabs.c (lowpart_subreg_maybe_copy): New.
1754 (expand_unop, expand_abs_nojump): Use it.
1755
1756 2004-12-02 J"orn Rennecke <joern.rennecke@st.com>
1757
1758 * sh.md (extv, extzv): Add pattern predicate.
1759
1760 2004-12-02 Kazu Hirata <kazu@cs.umass.edu>
1761
1762 * tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF
1763 is not null.
1764
1765 * tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF
1766 is not null.
1767
1768 * tree-cfg.c (thread_jumps): Reduce the size of WORKLIST.
1769
1770 2004-12-02 Jeff Law <law@redhat.com>
1771
1772 * tree-eh.c: Revert yesterday's change.
1773
1774 2004-12-02 Andrew Pinski <pinskia@physics.uc.edu>
1775
1776 * varasm.c (decode_reg_name): Revert change to check for zero
1777 length strings.
1778 (make_decl_rtl): Make sure that we call decode_reg_name only
1779 when needed.
1780
1781 2004-12-02 Dorit Naishlos <dorit@il.ibm.com>
1782
1783 PR tree-opt/18716
1784 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Properly set
1785 then and else labels.
1786
1787 2004-12-02 Andreas Schwab <schwab@suse.de>
1788
1789 * Makefile.in (WERROR_FLAGS): Renamed from WERROR.
1790 (STRICT2_WARN): Use $(WERROR_FLAGS) instead of $(WERROR).
1791 (STAGE2_FLAGS_TO_PASS): Likewise.
1792
1793 * config/i386/x-mingw32: Set WERROR_FLAGS instead of WERROR.
1794
1795 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
1796
1797 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version. Remove
1798 now-redundant AC_SUBSTs.
1799 * aclocal.m4: Include ../config/gcc-version.m4.
1800 * configure: Regenerate.
1801
1802 2004-12-02 Alan Modra <amodra@bigpond.net.au>
1803
1804 * config/rs6000/rs6000.c (rs6000_assemble_integer): Put back the
1805 #ifdef RELOCATABLE_NEEDS_FIXUP.
1806
1807 2004-12-01 Roger Sayle <roger@eyesopen.com>
1808
1809 PR target/9908
1810 * config/i386/i386.md (*call_value_1, *sibcall_value_1): Correct
1811 Intel assembler syntax by using %A1 instead of %*%1.
1812
1813 2004-12-01 Richard Henderson <rth@redhat.com>
1814
1815 * expr.c (expand_assignment): Handle CONCAT both as a final
1816 destination and as a middle point.
1817
1818 2004-12-01 Jeff Law <law@redhat.com>
1819
1820 * tree-eh.c (save_eptr, save_filt): Now file scoped statics.
1821 (honor_protect_cleanup_actions): Only create save_eptr and
1822 save_filt if they do not already exist.
1823 (lower_eh_constructs): Wipe all knowledge of save_eptr and
1824 save_filt before returning.
1825
1826 2004-12-02 Kazu Hirata <kazu@cs.umass.edu>
1827
1828 * tree-phinodes.c (remove_phi_arg_num): Fix a comment.
1829
1830 2004-12-02 Alan Modra <amodra@bigpond.net.au>
1831
1832 PR target/16952
1833 * config/rs6000/rs6000.c (rs6000_assemble_integer): Replace
1834 #ifdef RELOCATABLE_NEEDS_FIXUP with if.
1835 * config/rs6000/linux.h (RELOCATABLE_NEEDS_FIXUP): Define in terms
1836 of target_flags_explicit.
1837 * config/rs6000/linux64.h (RELOCATABLE_NEEDS_FIXUP): Ditto for biarch
1838 case. Define as 0 for non-biarch.
1839
1840 2004-12-01 Zack Weinberg <zack@codesourcery.com>
1841
1842 * config/rs6000/t-aix43, config/rs6000/t-aix52 (SHLIB_LINK):
1843 Change temporary file tag from a prefix to an infix.
1844
1845 2004-12-02 Andreas Schwab <schwab@suse.de>
1846
1847 * gcc.c (struct option_map): Add entry for "--pass-exit-codes".
1848
1849 2004-12-01 Andrew Pinski <pinskia@physics.uc.edu>
1850
1851 PR tree-opt/18763
1852 PR tree-opt/18746
1853 * tree-ssa-alias.c (init_alias_info): Get statement operands for all
1854 the statements if aliases_computed_p is true.
1855
1856 2004-12-01 Mark Mitchell <mark@codesourcery.com>
1857
1858 * Makefile.in (WERROR): New variable.
1859 (STRICT2_WARN): Use it.
1860 (STAGE2_FLAGS_TO_PASS): Likewise.
1861 * config/i386/x-mingw32 (WERROR): Add -Wno-format.
1862
1863 2004-12-01 Richard Henderson <rth@redhat.com>
1864
1865 * expr.c (get_inner_reference): Fix thinko in REAL/IMAGPART_EXPR
1866 offsetting.
1867
1868 2004-12-01 Diego Novillo <dnovillo@redhat.com>
1869
1870 PR tree-optimization/18291
1871 * tree-ssa-copy.c (merge_alias_info): Fix merging of
1872 flow-sensitive alias information. If the new pointer has no
1873 name tag, copy it from the original pointer. Otherwise, make
1874 sure that the pointed-to sets have a common intersection.
1875
1876 2004-12-01 Richard Henderson <rth@redhat.com>
1877
1878 PR rtl-opt/15289
1879 * emit-rtl.c (gen_complex_constant_part): Remove.
1880 (gen_realpart, gen_imagpart): Remove.
1881 * rtl.h (gen_realpart, gen_imagpart): Remove.
1882 * expmed.c (extract_bit_field): Remove CONCAT hack catering to
1883 gen_realpart/gen_imagpart.
1884 * expr.c (write_complex_part, read_complex_part): New.
1885 (emit_move_via_alt_mode, emit_move_via_integer, emit_move_resolve_push,
1886 emit_move_complex_push, emit_move_complex, emit_move_ccmode,
1887 emit_move_multi_word): Split out from ...
1888 (emit_move_insn_1): ... here.
1889 (expand_expr_real_1) <COMPLEX_EXPR>: Use write_complex_part.
1890 <REALPART_EXPR, IMAGPART_EXPR>: Use read_complex_part.
1891 * function.c (assign_parm_setup_reg): Hard-code transformations
1892 instead of using gen_realpart/gen_imagpart.
1893
1894 * expr.c (optimize_bitfield_assignment_op): Split out from ...
1895 (expand_assignment): ... here. Use handled_component_p to gate
1896 get_inner_reference code. Simplify MEM handling. Special case
1897 CONCAT destinations.
1898
1899 * expmed.c (store_bit_field): Use simplify_gen_subreg instead
1900 of gen_rtx_SUBREG directly.
1901
1902 2004-12-01 David Edelsohn <edelsohn@gnu.org>
1903 Nathan Sidwell <nathan@codesourcery.com>
1904
1905 PR target/17107
1906 * config/rs6000/rs6000.md (sge): Enable for non-TARGET_POWER.
1907 (sgt): Same.
1908 (sle): Same.
1909 (slt): Same.
1910
1911 2004-12-01 Nathan Sidwell <nathan@codesourcery.com>
1912
1913 PR middle-end/18667
1914 * params.c (set_param_value): Add range check.
1915 * params.def: Add min and max values. Reformat long strings.
1916 * params.h (struct param_info): Add min and max fields.
1917 (enum compiler_param): Adjust DEFPARAM.
1918 * toplev.c (lang_independent_params): Likewise.
1919
1920 2004-12-01 Alan Modra <amodra@bigpond.net.au>
1921
1922 PR target/12817
1923 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use r0 for vrsave.
1924
1925 2004-12-01 Joseph S. Myers <joseph@codesourcery.com>
1926
1927 * doc/standards.texi: Update for C99 TC2.
1928
1929 2004-11-30 Jeff Law <law@redhat.com>
1930
1931 * sbitmap.c (sbitmap_any_common_bits): New function.
1932 * sbitmap.h (sbitmap_any_common_bits): Prototype.
1933 * modulo-sched.c (sms_schedule_by_order): Use sbitmap_any_common_bits
1934 No longer allocate/free "psp", "pss" sbitmaps.
1935 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Similarly for
1936 the "res" sbitmap.
1937 (group_aliases): Similarly.
1938
1939 2004-11-30 Nathan Sidwell <nathan@codesourcery.com>
1940
1941 * tree-vectorizer.c (vect_analyze_data_refs): Reformat and avoid
1942 uninitialized variable.
1943
1944 2004-11-30 Eric Christopher <echristo@redhat.com>
1945
1946 * fold-const.c (fold_widened_comparison): Make sure that we're
1947 passing an INTEGER_TYPE to int_fits_type_p.
1948 (fold): Clean up comment.
1949
1950 2004-11-30 Zack Weinberg <zack@codesourcery.com>
1951
1952 * mklibgcc.in: Correct calculation of libgcc_s_soname and
1953 libunwind_soname. Use $out, not $outS, in commands for
1954 no-shared-library case. Move EXTRA_MULTILIB_PARTS rules above
1955 library build rules, make $libunwind_so and $libgcc_s_so
1956 depend on them in the normal fashion, and filter those objects
1957 out of @shlib_objs@.
1958
1959 2004-11-30 Janis Johnson <janis187@us.ibm.com>
1960
1961 * config/rs6000/altivec.h (vec_step_help): Support const vector types.
1962
1963 2004-11-30 Andrew Pinski <pinskia@physics.uc.edu>
1964
1965 PR tree-opt/18298
1966 * tree-optimize.c (init_tree_optimization_passes): Add a may_alias
1967 pass right after fold builtins.
1968
1969 2004-11-30 Andreas Krebbel <krebbel1@de.ibm.com>
1970
1971 * config/s390/s390-modes.def: Added cc modes documentation.
1972 * config/s390/s390.c: (s390_tm_ccmode, s390_select_ccmode,
1973 s390_expand_addcc): Added cc mode comments.
1974 * config/s390/s390.md: Removed old cc mode documentation.
1975
1976 2004-11-30 Mark Dettinger <dettinge@de.ibm.com>
1977
1978 * config/s390/s390.c (struct processor_costs): New data type.
1979 (s390_cost, z900_cost, z990_cost): New global variables.
1980 (override_options): Initialize s390_cost.
1981 (s390_rtx_costs): Reimplement.
1982
1983 2004-11-29 Daniel Berlin <dberlin@dberlin.org>
1984
1985 Fix PR tree-optimization/18673
1986
1987 * tree-ssa-pre.c: Remove splay-tree.h include.
1988 (bitmap_value_replace_in_set): Fix to add if it does not exist.
1989 (find_or_generate_expression): Remove now-wrong condition.
1990 (create_expression_by_pieces): Fix condition and comment reason
1991 for it.
1992 (insert_aux): Fix condition and comment reasons for it.
1993 Factor insertion code from here.
1994 (insert_into_preds_of_block): To here. Fix conditions in factored
1995 function and comment reasons for them.
1996
1997 2004-11-30 Ira Rosen <irar@il.ibm.com>
1998
1999 PR tree-opt/18607
2000 * tree-vectorizer.c (vect_analyze_data_refs): Use temporary
2001 variable for data_reference when looking for memtag.
2002
2003 2004-11-30 Jakub Jelinek <jakub@redhat.com>
2004
2005 * c-opts.c (check_deps_environment_vars): If spec != NULL, set
2006 deps_seen.
2007
2008 2004-11-30 Dorit Naishlos <dorit@il.ibm.com>
2009
2010 * tree-vectorizer.c (vect_gen_niters_for_prolog_loop): Use
2011 tree_low_cst instead of TREE_INT_CST_LOW.
2012
2013 2004-11-30 Dorit Naishlos <dorit@il.ibm.com>
2014
2015 PR target/18173
2016 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Return false for
2017 decls that are assembled before vectorization takes place.
2018 (vect_compute_data_ref_alignment): Set DECL_USER_ALIGN to 1.
2019
2020 2004-11-30 Ulrich Weigand <uweigand@de.ibm.com>
2021
2022 * passes.c (rest_of_handle_old_regalloc): Delete unreachable blocks
2023 if local_alloc modified jumps.
2024
2025 2004-11-30 Alan Modra <amodra@bigpond.net.au>
2026
2027 * varasm.c (default_encode_section_info): Don't set SYMBOL_FLAG_SMALL
2028 on TLS symbols.
2029 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Remove TLS
2030 check.
2031
2032 2004-11-30 Zack Weinberg <zack@codesourcery.com>
2033
2034 * gthr-gnat.c, gthr-gnat.h, gthr.h, libgcc2.h, unwind-dw2-fde.h
2035 * unwind.h: Surround all visibility pragmas with #ifndef HIDE_EXPORTS.
2036
2037 * mklibgcc.in: Drastic restructure for comprehensibility.
2038 Remove the old hidden-directive hack.
2039 Eliminate support for .txt files in LIB2ADD etc (never used).
2040 Eliminate support for assembly source files in LIB2ADDEH* and
2041 LIBUNWIND (also never used).
2042 Build up dependency lists for libraries incrementally.
2043 If we have SHLIB_LINK, compile each file twice, once for the
2044 static and once for the shared library; also probe for
2045 -fvisibility=hidden in the generated libgcc.mk. If found,
2046 pass that and -DHIDE_EXPORTS to the compilation of every C
2047 source file going into the static library. If found, generate
2048 hidden-directive lists for every assembly source file going
2049 into the static library, but incorporate them with -include
2050 instead of ld -r.
2051 Write comments into generated libgcc.mk to facilitate debugging.
2052 * Makefile.in: Pass ASM_HIDDEN_OP to mklibgcc.
2053 * config/t-slibgcc-darwin: Define ASM_HIDDEN_OP.
2054
2055 * config/darwin.h (REAL_LIBGCC_SPEC): Put -lgcc back in
2056 -Zdynamiclib case.
2057
2058 2004-11-29 Richard Henderson <rth@redhat.com>
2059
2060 * expr.c (get_inner_reference): Handle REAL/IMAGPART_EXPR.
2061 (handled_component_p): Likewise.
2062 * alias.c (can_address_p): Reformat and simplify. Handle
2063 REAL/IMAGPART_EXPR. Do not disable addressability based on
2064 alias set zero.
2065 * fold-const.c (build_fold_addr_expr_with_type): Remove duplicate
2066 check for REAL/IMAGPART_EXPR.
2067 * gimplify.c (gimplify_compound_lval): Likewise.
2068 * tree-cfg.c (verify_expr): Likewise.
2069 * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
2070 * tree-nested.c (build_addr, convert_nonlocal_reference): Likewise.
2071 (convert_local_reference): Likewise.
2072 * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Likewise.
2073
2074 2004-11-30 Alan Modra <amodra@bigpond.net.au>
2075
2076 * expr.c (emit_group_load_1): Don't die on const_int orig_src.
2077
2078 2004-11-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2079
2080 PR pch/14940
2081 * config/pa/pa-host.c, config/pa/x-hpux, config/pa/x-linux: New files.
2082 * config.host (hppa*-*-hpux*, hppa*-*-linux): Define out_host_hook_obj
2083 and host_xmake_file using new host configuration files.
2084
2085 2004-11-29 Roger Sayle <roger@eyesopen.com>
2086
2087 * reg-stack.c (change_stack): Improve algorithm used to pop regs
2088 off the stack to maximize ffreep usage and reduce fxch count.
2089
2090 2004-11-30 James A. Morrison <phython@gcc.gnu.org>
2091
2092 PR middle-end/18596
2093 * c-decl.c (grokdeclarator): Reset DECL_INTIAL to error_mark_node
2094 on errors.
2095
2096 2004-11-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2097
2098 * expr.c (expand_expr_real_1, case NOP_EXPR): Properly handle
2099 REDUCE_BIT_FIELD by applying it to result, not input, of conversion.
2100
2101 2004-11-30 Ben Elliston <bje@au.ibm.com>
2102
2103 * Makefile.in (REGS_H): Depend on $(BASIC_BLOCK_H).
2104
2105 2004-11-29 Andrew Pinski <pinskia@physics.uc.edu>
2106
2107 PR c/18479
2108 * c-common.c (handle_visibility_attribute): When the type decl
2109 is really a identifier node, warn about being ignored and return.
2110
2111 2004-11-29 Richard Henderson <rth@redhat.com>
2112
2113 * tree-cfg.c (tree_node_can_be_shared): Fix typo'd error_mark_node.
2114
2115 2004-11-29 Steven Bosscher <stevenb@suse.de>
2116
2117 * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge):
2118 Remove CASE_DROPS_THROUGH checks, it is never defined.
2119 * cfglyout.c (fixup_reorder_chain): Likewise.
2120 * cfgrtl.c (rtl_verify_flow_info): Likewise.
2121 * stmt.c (expand_case): Likewise.
2122 * cfgbuild.c (make_edges): Likewise. Also remove force_fallthru,
2123 it is now always 0.
2124 * system.h (CASE_DROPS_THROUGH): Poison.
2125 * doc/md.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
2126 * doc/tm.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
2127
2128 * config/v850/v850.h: Remove commented out CASE_DROPS_THROUGH.
2129
2130 2004-11-29 Andrew Pinski <pinskia@physics.uc.edu>
2131
2132 PR middle-end/18725
2133 * tree-cfg.c (tree_node_can_be_shared): Error_mark_node can be
2134 shared always.
2135
2136 2004-11-29 Diego Novillo <dnovillo@redhat.com>
2137
2138 PR tree-optimization/18712
2139 * tree-into-ssa.c (insert_phi_nodes_for): Pass argument
2140 WORK_STACK by reference.
2141 Call VEC_safe_push instead of VEC_quick_push.
2142 Update all users.
2143
2144 2004-11-29 Daniel Jacobowitz <dan@codesourcery.com>
2145
2146 PR c/7544
2147 * Makefile.in (c-lang.o): Update dependencies.
2148 * c-lang.c: Include "c-pragma.h".
2149 (finish_file): Call maybe_apply_pending_pragma_weaks.
2150 * c-pragma.c (maybe_apply_pending_pragma_weaks): New function.
2151 * c-pragma.h (maybe_apply_pending_pragma_weaks): New prototype.
2152
2153 2004-11-29 Richard Henderson <rth@redhat.com>
2154
2155 PR target/17224
2156 * config/ia64/predicates.md (sdata_symbolic_operand): Deny offsets
2157 outside the referenced object.
2158
2159 2004-11-29 Kazu Hirata <kazu@cs.umass.edu>
2160
2161 * tree-if-conv.c (replace_phi_with_cond_modify_expr): Use
2162 EDGE_PRED instead of PHI_ARG_EDGE.
2163 * tree-ssa-live.c: Likewise.
2164 * tree-ssa-loop-manip.c: Likewise.
2165 * tree-ssa.c: Likewise.
2166
2167 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Speed up by
2168 simplifying edge manipulation.
2169
2170 * cfgrtl.c (rtl_tidy_fallthru_edge): Speed up by using
2171 EDGE_COUNT.
2172
2173 * tree-cfg.c (tree_redirect_edge_and_branch): Call find_edge
2174 only when needed.
2175
2176 * cfg.c (flow_obstack): Remove.
2177 (flow_firstobj): Likewise.
2178 (init_flow): Remove all uses of flow_obstack.
2179
2180 2004-11-29 Alan Modra <amodra@bigpond.net.au>
2181
2182 * varasm.c (default_elf_select_section_1): Only pass DECL_P decl
2183 to named_section.
2184
2185 2004-11-29 Nathan Sidwell <nathan@codesourcery.com>
2186
2187 * opts.c (decode_options): Do not set max-inline-insns-rtl.
2188 (common_handle_option): Likewise.
2189 * params.def (PARAM_MAX_INLINE_INSNS_RTL): Remove.
2190 * params.h (MAX_INLINE_INSNS_RTL): Remove.
2191 * doc/invoke.texi (max-inline-insns-rtl): Remove.
2192
2193 2004-11-29 Alan Modra <amodra@bigpond.net.au>
2194
2195 PR target/9571
2196 * varasm.c (default_elf_select_section_1): Pass decl to named_section.
2197
2198 2004-11-28 Andrew Pinski <pinskia@physics.uc.edu>
2199
2200 PR middle-end/18164
2201 * gimplify.c (gimplify_asm_expr): If the length of an output operand
2202 is zero, do not process it, just let it go through.
2203
2204 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2205 Diego Novillo <dnovillo@redhat.com>
2206
2207 PR/18662, also backported from tree-cleanup-branch.
2208 * tree-ssa-ccp.c (substitute_and_fold): If replaced anything,
2209 always call maybe_clean_eh_stmt and modify_stmt.
2210
2211 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2212
2213 PR/18664
2214 * tree-ssa-operands.c (build_ssa_operands, case MODIFY_EXPR):
2215 Ignore a VIEW_CONVERT_EXPR on LHS when deciding if must or may def.
2216 * tree-ssa-ccp.c (visit_assignment): If LHS is a VIEW_CONVERT_EXPR,
2217 add an inverse VIEW_CONVERT_EXPR to const_val.
2218
2219 PR/18657
2220 * tree-nested.c (check_for_nested_with_variably_modified): New.
2221 (create_nesting_tree): Call it.
2222
2223 * tree-ssa-alias.c (compute_points_to_and_addr_escapes): Remove
2224 special code for assigning to non-pointer.
2225 (is_escape_site): If RHS is a conversion between pointer and integer
2226 types, this is an escape site.
2227
2228 * gcse.c (insert_store): Error if try to insert store on abnormal edge.
2229 (store_motion): Don't move store if any edge we'd want to move it
2230 to is abnormal.
2231
2232 * expr.c (expand_expr_real_1, case ARRAY_REF): Properly fold with
2233 non-zero lower bound.
2234
2235 * expr.c (categorize_ctor_elements_1, case STRING_CST): New case.
2236
2237 2004-11-28 Matt Kraai <kraai@alumni.cmu.edu>
2238
2239 PR diagnostic/17594
2240 * opts.c (find_opt): Require that the input match a switch exactly
2241 or that the switch take a joined option to be interpreted as a
2242 match for another language.
2243
2244 2004-11-28 Andrew Pinski <pinskia@physics.uc.edu>
2245
2246 * timevar.def (TV_TREE_REDPHI): New timevar.
2247 * tree-ssa.c (pass_redundant_phi): Use TV_TREE_REDPHI for the tv id.
2248
2249 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
2250
2251 PR preprocessor/17651
2252 * c-opts.c (sanitize_cpp_opts): Make flag_no_output imply
2253 flag_no_line_commands.
2254 * c-ppoutput.c (pp_file_change): Remove now-redundant check of
2255 flag_no_output.
2256
2257 2004-11-28 Theodore A. Roth <troth@openavr.org>
2258
2259 * config/avr/avr.c (avr_handle_fndecl_attribute): Generate a
2260 warning if the function name does not begin with "__vector" and the
2261 function has either the 'signal' or 'interrupt' attribute.
2262
2263 2004-11-28 Theodore A. Roth <troth@openavr.org>
2264
2265 * config/avr/avr.c (avr_mcu_types): Add entries for atmega48,
2266 atmega88, atmega168, attiny13, attiny2313, at90can128, atmega165,
2267 atmega325, atmega3250, atmega645 and atmega6450.
2268 * config/avr/avr.h (LINK_SPEC): Ditto.
2269 (LIB_SPEC): Ditto.
2270 (LIBGCC_SPEC): Ditto.
2271 (CRT_BINUTILS_SPECS): Ditto.
2272 * config/avr/t-avr (MULTILIB_MATCHES): Ditto.
2273
2274 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
2275
2276 PR preprocessor/17610
2277 * testsuite/gcc.dg/cpp/empty-include.c: New testcase.
2278
2279 2004-11-28 Jeff Law <law@redhat.com>
2280
2281 * tree-ssa-alias.c (count_calls_and_maybe_create_global_var): New.
2282 (pass_maybe_create_global_var): New.
2283 * tree-pass.h (pass_maybe_create_global_var): Declare.
2284 * tree-optimize.c (init_tree_optimization_passes): Link in
2285 pass_maybe_create_global_var.
2286
2287 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2288
2289 * tree-inline.c (inline_forbidden_p_1, case RECORD_TYPE): Add comment.
2290
2291 2004-11-28 Ulrich Weigand <uweigand@de.ibm.com>
2292
2293 PR rtl-optimization/18420
2294 * simplify-rtx.c (simplify_gen_subreg): Revert 2004-10-28 change.
2295
2296 2004-11-28 Steven Bosscher <stevenb@suse.de>
2297 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2298
2299 * config/vax/vax.h (CASE_DROPS_THROUGH): Don't define.
2300 * config/vax/vax.md (casesi): Emit a test-and-branch to make sure
2301 that the case is in range, to make sure the casesi insn is always
2302 in range and never falls through.
2303 (casesi1): Add comment to explain why casesi never falls through.
2304 Remove the unnamed special case casesi pattern.
2305
2306 2004-11-28 Hans-Peter Nilsson <hp@bitrange.com>
2307
2308 PR target/18331
2309 * config/mmix/mmix.md ("*movdicc_real_reversible"): Rename from
2310 "*movdicc_real". Only match reversible comparisons.
2311 ("*movdicc_real_nonreversible"): New pattern, split from
2312 "*movdicc_real". Match only nonreversible comparisons. Exclude
2313 reversed alternatives.
2314 ("*movdfcc_real_reversible", "*movdfcc_real_nonreversible"):
2315 Similar.
2316
2317 2004-11-27 Richard Henderson <rth@redhat.com>
2318
2319 * config/ia64/ia64.md: Move all define_predicate's ...
2320 * config/ia64/predicates.md: ... here. New file.
2321
2322 2004-11-27 Per Bothner <per@bothner.com>
2323
2324 PR bootstrap/18142
2325 Re-applied following, with two modifications: add a URL for the
2326 fixed cctools; only exit if $build = $target.
2327
2328 2004-10-18 Kelley Cook <kcook@gcc.gnu.org>
2329 * configure.ac (powerpc-*-darwin*): Require assembler to support
2330 .machine directive.
2331 * configure: Regenerate.
2332
2333 2004-11-28 David Edelsohn <edelsohn@gnu.org>
2334
2335 PR target/16800
2336 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve accuracy of
2337 EQ, GTU, and LTU costs. Add costs for GT, LT, and UNORDERED.
2338 Distinguish between SImode and DImode CONST_INT.
2339
2340 2004-11-28 Andreas Fischer <a_fisch@gmx.de>
2341 Alan Modra <amodra@bigpond.net.au>
2342
2343 PR target/16343
2344 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Disallow
2345 functions, strings and thread-local vars.
2346
2347 2004-11-28 Alan Modra <amodra@bigpond.net.au>
2348
2349 * config/rs6000/rs6000.h (WORLD_SAVE_P): Define.
2350 * config/rs6000/darwin.h (WORLD_SAVE_P): Define.
2351 * config/rs6000/rs6000.c (compute_save_world_info): Use WORLD_SAVE_P
2352 to allow non-darwin ABIs to optimize away code.
2353 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
2354
2355 2004-11-27 Kazu Hirata <kazu@cs.umass.edu>
2356
2357 * tree.c (operand_equal_for_phi_arg_p): New.
2358 * tree.h: Add a prototype for operand_equal_for_phi_arg_p.
2359 * tree-cfg.c, tree-ssa-dom.c, tree-ssa-phiopt.c, tree-ssa.c:
2360 Replace operand_equal_p with operand_for_phi_arg_p
2361 appropriately.
2362
2363 * bb-reorder.c (find_traces_1_round): Speed up by using
2364 EDGE_COUNT instead of FOR_EACH_EDGE.
2365
2366 * fold-const.c, config/i386/linux64.h: Fix comment typos.
2367
2368 2004-11-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2369
2370 PR pch/14940
2371 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Revert 2004-11-22 change.
2372
2373 2004-11-27 Kazu Hirata <kazu@cs.umass.edu>
2374
2375 * config/i386/linux.h: Fix a comment typo.
2376 * doc/extend.texi: Fix a typo.
2377
2378 2004-11-27 Jeff Law <law@redhat.com>
2379
2380 * tree-cfg.c (cleanup_tree_cfg): Also return true if blocks
2381 are merged.
2382
2383 2004-11-27 Jakub Jelinek <jakub@redhat.com>
2384
2385 * config/i386/linux64.h (REG_NAME): Define.
2386
2387 2004-11-27 Jakub Jelinek <jakub@redhat.com>
2388
2389 * fold-const.c (extract_muldiv_1) <case ABS_EXPR>: If ctype is
2390 unsigned and type signed, build ABS_EXPR with signed_type (ctype)
2391 and only afterwards convert to ctype.
2392
2393 2004-11-27 Richard Sandiford <rsandifo@redhat.com>
2394
2395 * config/mips/mips-protos.h (function_arg_boundary): Declare.
2396 * config/mips/mips.h (PARM_BOUNDARY): Simplify definition.
2397 (STACK_BOUNDARY, MIPS_STACK_ALIGN): Likewise.
2398 (FUNCTION_ARG_BOUNDARY): Use new function_arg_boundary function.
2399 * config/mips/mips.c (function_arg_boundary): New function.
2400 Impose a maximum alignment of STACK_BOUNDARY.
2401
2402 2004-11-27 Jakub Jelinek <jakub@redhat.com>
2403
2404 PR rtl-optimization/17825
2405 * combine.c (subst): Ignore STRICT_LOW_PART no matter if REG_P (new)
2406 or not.
2407
2408 2004-11-27 Alan Modra <amodra@bigpond.net.au>
2409
2410 PR target/12769
2411 * config/rs6000/rs6000.c (init_cumulative_args): Set call_cookie
2412 from rs6000_default_long_calls for libcalls.
2413
2414 2004-11-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2415
2416 * expmed.c (extract_bit_field): When extracting from non-integer mode,
2417 force a SUBREG into a register because we may be taking a further
2418 SUBREG of it.
2419
2420 2004-11-27 Di-an Jan <dianj@freeshell.org>
2421
2422 * doc/contrib.texi (Tim Josling): Remove nesting quotation marks.
2423
2424 2004-11-26 Robert Millan <robertmh@gnu.org>
2425
2426 Changes for k*bsd-gnu support.
2427 * config/i386/linux.h: Define REG_NAME to allow overriding of
2428 register names in sc structure.
2429 * config/i386/linux-unwind.h: Refer to sc->REG_NAME(reg) instead
2430 of sc->reg.
2431 * config.gcc: Detect x86_64-k*bsd-gnu systems.
2432
2433 2004-11-26 Jeff Law <law@redhat.com>
2434
2435 * tree-ssa.c (verify_flow_sensitive_alias_info): Don't
2436 retrieve annotations or pointer info before it's necessary.
2437 Reorder tests for early continue of the loop. Manually CSE
2438 SSA_NAME_VAR.
2439
2440 2004-11-26 Eric Botcazou <ebotcazou@libertysurf.fr>
2441
2442 * target.h (struct gcc_target): New field 'dwarf_handle_frame_unspec'.
2443 * target_def.h (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to 0.
2444 (TARGET_INITIALIZER): Add TARGET_DWARF_HANDLE_FRAME_UNSPEC.
2445 * dwarf2out.c (dwarf2out_frame_debug_expr): Allow REG->REG move
2446 to a fixed reg if the source is the Return Address register.
2447 Implement new Rule 15.
2448 * doc/tm.texi (Frame Layout): Document TARGET_DWARF_HANDLE_FRAME_UNSPEC.
2449 * config/sparc/sparc.c (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to
2450 sparc_dwarf_handle_frame_unspec.
2451 (gen_save_register_window): New function.
2452 (emit_stack_pointer_increment): Rename into gen_stack_pointer_inc.
2453 (emit_stack_pointer_decrement): Rename into gen_stack_pointer_dec.
2454 (expand_prologue): Adjust calls to emit_stack_pointer_{in,de}crement.
2455 Set RTX_FRAME_RELATED_P on the appropriate insns and members of insns.
2456 (sparc_asm_function_prologue): Do not emit call frame debugging info.
2457 (emit_and_preserve): Adjust calls to emit_stack_pointer_{in,de}crement.
2458 (sparc_expand_epilogue): Likewise.
2459 (sparc_dwarf_handle_frame_unspec): New function.
2460 * config/sparc/sparc.md (save_register_window): Remove.
2461 (save_register_windowdi): Rewrite modelled on the callframe debug info.
2462 (save_register_windowsi): Likewise.
2463
2464 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
2465
2466 * config/frv/frv-protos.h: Guard ifcvt functions declarations with
2467 BB_HEAD, not BLOCK_HEAD.
2468
2469 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
2470
2471 * config/frv/frv.c (frv_ifcvt_modify_insn): Don't leave alone
2472 scratch insns that set a register live at the join point.
2473
2474 2004-11-26 Kazu Hirata <kazu@cs.umass.edu>
2475
2476 * cse.c, tree-ssa-operands.c: Fix comment typos.
2477
2478 * tree-cfg.c (tree_split_edge): Speed up by using find_edge.
2479
2480 2004-11-26 James A. Morrison <phython@gcc.gnu.org>
2481
2482 PR target/18510
2483 * doc/extend.texi (SPARC VIS Built-in Functions): New section.
2484
2485 2004-11-26 Kazu Hirata <kazu@cs.umass.edu>
2486
2487 * cfgrtl.c (try_redirect_by_replacing_jump): Speed up the
2488 check that tests if all edges go to the same destination.
2489
2490 * bitmap.c (bitmap_find_bit): Speed up by traversing from
2491 head->first if that seems profitable.
2492
2493 2004-11-25 Jeff Law <law@redhat.com>
2494
2495 * timevar.def (TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI): New timevars.
2496 * tree-ssa-loop.c (pass_loop_init): Use TV_TREE_LOOP_INIT.
2497 (pass_loop_done): Use TV_TREE_LOOP_FINI.
2498
2499 2004-11-26 Alan Modra <amodra@bigpond.net.au>
2500
2501 PR rtl-optimization/16356
2502 * config/rs6000/rs6000.md (floatdisf2_internal2): Rewrite with
2503 separate output register and one less jump. Enable for powerpc64.
2504 (floatdisf2): Adjust for above.
2505
2506 2004-11-25 Bob Wilson <bob.wilson@acm.org>
2507
2508 * config/xtensa/xtensa.h (STARTFILE_SPEC): Add crt0.
2509 (GCC_DRIVER_HOST_INITIALIZATION): Define.
2510
2511 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
2512
2513 PR middle-end/17957
2514 * tree-complex.c (vector_inner_type): New variable moved from
2515 build_word_mode_vector_type.
2516 (vector_last_type): Likewise.
2517 (vector_last_nunits): Likewise.
2518 (build_word_mode_vector_type): Use the new variables.
2519 * Makefile.in (tree-complex.o): Add gt-tree-complex.h $(GGC_H).
2520 (GTFILES): Add tree-complex.c.
2521 (gt-tree-complex.h): New rule, add it to the rest of the gt-* rules.
2522
2523 2004-11-25 Bob Wilson <bob.wilson@acm.org>
2524
2525 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define
2526 __XTENSA_WINDOWED_ABI__.
2527
2528 2004-11-25 Richard Henderson <rth@redhat.com>
2529
2530 * dwarf2out.c (dwarf2out_stack_adjust): Add after_p argument. Save
2531 args_size adjustments for calls even with cfa as stack pointer.
2532 Search calls for stack adjustments after the insn is issued.
2533 (dwarf2out_frame_debug): Add after_p argument; pass it on.
2534 * dwarf2out.h (dwarf2out_frame_debug): Update to match.
2535 * final.c (final_start_function, final_scan_insn): Likewise.
2536
2537 2004-11-25 Richard Henderson <rth@redhat.com>
2538
2539 PR c++/6764
2540 * reload1.c (set_initial_eh_label_offset): New.
2541 (set_initial_label_offsets): Use it.
2542
2543 2004-11-25 Kaz Kojima <kkojima@gcc.gnu.org>
2544
2545 * config/sh/sh.c (sh_output_mi_thunk): Initialize bitmap obstacks
2546 before calling life_analysis and release them after.
2547
2548 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
2549
2550 * tree-ssa-forwprop.c (substitute_single_use_vars): Remove
2551 duplicate code.
2552
2553 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
2554
2555 * bitmap.h (BITMAP_XMALLOC): Use BITMAP_ALLOC and not
2556 BITMAP_OBSTACK_ALLOC.
2557 (BITMAP_XFREE): Use BITMAP_FREE and not BITMAP_OBSTACK_FREE.
2558
2559 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
2560
2561 parts of PR rtl-opt/18463, rtl-opt/17647
2562 * cse.c (canon_for_address): New function.
2563 (find_best_addr): Call canon_for_address before getting the
2564 address's cost when checking if we should take that address.
2565
2566 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
2567
2568 * tree-phinodes.c (add_phi_arg): Take "tree" instead of
2569 "tree *" as the first argument.
2570 * tree-flow.h: Update the prototype of add_phi_arg.
2571 * lambda-code.c, tree-cfg.c, tree-into-ssa.c,
2572 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
2573 tree-ssa-threadupdate.c, tree-ssa.c, tree-tailcall.c,
2574 tree-vectorizer.c: Update all call sites of add_phi_arg.
2575
2576 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
2577
2578 * bitmap.c (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
2579 * bitmap.h (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
2580 (BITMAP_XMALLOC): Forward to BITMAP_OBSTACK_ALLOC.
2581 (BITMAP_XFREE): Forward to BITMAP_OBSTACK_FREE.
2582
2583 2004-11-25 Andrew MacLeod <amacleod@redhat.com>
2584
2585 PR tree-optimization/18587
2586 * tree-flow-inline.h (mark_call_clobbered, mark_non_addressable): Flag
2587 call clobbered caches as invalid.
2588 * tree-ssa-operands.c (ssa_call_clobbered_cache_valid): New. Flag
2589 indicating whether the call clobbered operand cache is valid.
2590 (ssa_ro_call_cache_valid): New. Flag indicating whether the
2591 pure/const call operand cache is valid.
2592 (clobbered_v_may_defs, clobbered_vuses, ro_call_vuses): New. Cached
2593 list of operands for cached call virtual operands.
2594 (clobbered_aliased_loads, clobbered_aliased_stores,
2595 ro_call_aliased_load): New. flags caching whether alias bits are
2596 to be set in call stmt's.
2597 (fini_ssa_operands): Remove call operand caches if present.
2598 (get_expr_operands, get_asm_expr_operands,
2599 get_indirect_ref_operands): Pass stmt annotation to add_stmt_operand.
2600 (get_call_expr_operands): Add call clobbered variables first.
2601 (add_stmt_operand): Take stmt annotation rather than stmt as a param.
2602 (add_call_clobber_ops, add_call_read_ops): Use the call operand cache
2603 if it is valid, otherise fill the cache.
2604 * tree-ssa-operands.h (ssa_clobbered_cache_valid): Declare extern.
2605 * tree-flow.h (struct var_ann_d): Add in_vuse_list and
2606 in_v_may_def_list bits.
2607 * tree-ssa-operands.c (cleanup_v_may_defs): New. Clear the
2608 in_list bits for the v_may_def elements and empty the operand
2609 build array
2610 (finalize_ssa_vuses): Use cleanup_v_may_defs and remove redundant
2611 VUSES by checking the in_v_may_def_list bit.
2612 (append_v_may_def, append_vuse): Use the in_list bit rather than
2613 scanning the array for duplicates.
2614
2615 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
2616
2617 * config/s390/s390.c (s390_short_displacement): UNSPEC_GOTNTPOFF
2618 displacements are not short.
2619
2620 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
2621
2622 * config/s390/s390.c (legitimize_pic_address): Use s390_load_address
2623 to load addresses.
2624
2625 2004-11-25 Mark Mitchell <mark@codesourcery.com>
2626
2627 PR c++/18001
2628 * c-common.h (lvalue_use): Move here from c-ctypeck.c.
2629 (lvalue_or_else): Declare.
2630 * c-common.c (lvalue_or_else): Move here from c-typeck.c.
2631 * c-typeck.c (lvalue_use): Remove.
2632 (lvalue_or_else): Remove.
2633
2634 PR c++/18556
2635 * toplev.c (check_global_declarations): Set DECL_IGNORED_P on
2636 unemitted variables with static storage duration.
2637
2638 2004-11-25 Gerald Pfeifer <gerald@pfeifer.com>
2639
2640 * tree-cfg.c (tree_verify_flow_info): Do not terminate error()
2641 message with \n.
2642
2643 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
2644
2645 * config/rs6000/altivec.md (VIshort): New mode macro.
2646 (altivec_vaddubs, altivec_vadduhs, altivec_vadduws): Replace
2647 with ...
2648 (altivec_vaddu<VI_char>s): ... this.
2649 (altivec_vaddsbs, altivec_vaddshs, altivec_vaddsws): Replace
2650 with ...
2651 (altivec_vadds<VI_char>s): ... this.
2652 (altivec_vsububs, altivec_vsubuhs, altivec_vsubuws): Replace
2653 with ...
2654 (altivec_vsubu<VI_char>s): ... this.
2655 (altivec_vsubsbs, altivec_vsubshs, altivec_vsubsws): Replace
2656 with ...
2657 (altivec_vsubs<VI_char>s): ... this.
2658 (altivec_vavgub, altivec_vavguh, altivec_vavguw): Replace
2659 with ...
2660 (altivec_vavgu<VI_char>): ... this.
2661 (altivec_vavgsb, altivec_vavgsh, altivec_vavgsw): Replace
2662 with ...
2663 (altivec_vavgs<VI_char>): ... this.
2664 (altivec_vmsumubm, altivec_vmsumuhm): Replace with ...
2665 (altivec_vmsumu<VI_char>m): ... this.
2666 (altivec_vmsummbm, altivec_vmsummhm): Replace
2667 with ...
2668 (altivec_vmsumm<VI_char>m): ... this.
2669 (altivec_vandc): Remove.
2670 (*andc<mode>3): Renamed to ...
2671 (andc<mode>3): ... here. Swap operand 1 and 2 numbering.
2672 (altivec_vrlb, altivec_vrlh, altivec_vrlw): Replace
2673 with ...
2674 (altivec_vrl<VI_char>): ... this.
2675 (altivec_vslb, altivec_vslh, altivec_vslw): Replace
2676 with ...
2677 (altivec_vsl<VI_char>): ... this.
2678 (altivec_vsrb, altivec_vsrh, altivec_vsrw): Replace
2679 with ...
2680 (altivec_vsr<VI_char>): ... this.
2681 (altivec_vsrab, altivec_vsrah, altivec_vsraw): Replace
2682 with ...
2683 (altivec_vsra<VI_char>): ... this.
2684 (altivec_vsum4sbs, altivec_vsum4shs): Replace with ...
2685 (altivec_vsum4s<VI_char>s): ... this.
2686 (altivec_vperm_4si, altivec_vperm_8hi, altivec_vperm_16qi): Replace
2687 with ...
2688 (altivec_vperm_<mode>): ... this.
2689 (altivec_vsel_4sf): Rename to ...
2690 (altivec_vsel_v4sf): ... here.
2691 (altivec_vsel_4si, altivec_vsel_8hi, altivec_vsel_16qi): Replace
2692 with ...
2693 (altivec_vsel_<mode>): ... this.
2694 (altivec_vsldoi_4si, altivec_vsldoi_8hi,
2695 altivec_vsldoi_16qi): Rename to ...
2696 (altivec_vsldoi_v4si, altivec_vsldoi_v8hi,
2697 altivec_vsldoi_v16qi): ... here.
2698 (altivec_vsldoi_4sf): Rename to ...
2699 (altivec_vsldoi_v4sf): ... here.
2700 (altivec_predicate_v4si, altivec_predicate_v8hi,
2701 altivec_predicate_v16qi): Replace with ...
2702 (altivec_predicate_<mode>): ... this.
2703 (altivec_lvebx, altivec_lvehx, altivec_lvewx): Replace
2704 with ...
2705 (altivec_lve<VI_char>x): ... this.
2706 (altivec_stvebx, altivec_stvehx, altivec_stvewx): Replace
2707 with ...
2708 (altivec_stve<VI_char>x): ... this.
2709 (absv16qi2, absv8hi2, absv4si2): Replace
2710 with ...
2711 (abs<mode>2): ... this.
2712 (altivec_abss_v16qi, altivec_abss_v8hi, altivec_abss_v4si): Replace
2713 with ...
2714 (altivec_abss_<mode>): ... this.
2715 (vec_realign_load_v16qi, vec_realign_load_v8hi,
2716 vec_realign_load_v4si): Replace with ...
2717 (vec_realign_load_<mode>): ... this.
2718 * config/rs6000/rs6000.c (bdesc_3arg, bdesc_2arg): Update tweaked
2719 insn names.
2720 (rs6000_expand_ternop_builtin): Likewise.
2721
2722 2004-11-25 Andrew Haley <aph@redhat.com>
2723
2724 * gcc.c (process_command): Don't supply -v to linker.
2725
2726 2004-11-25 Joseph S. Myers <joseph@codesourcery.com>
2727
2728 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs
2729 instead of `%s' in diagnostic.
2730
2731 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
2732
2733 * basic-block.h (OBSTACK_ALLOC_REG_SET): Adjust.
2734 (FREE_REG_SET): Adjust.
2735 * bitmap.c (bitmap_obstack_free): Cope with NULL bitmap.
2736 * bitmap.h (BITMAP_OBSTACK_ALLOC): Rename to ...
2737 (BITMAP_ALLOC): ... here.
2738 (BITMAP_OBSTACK_FREE): Rename to ...
2739 (BITMAP_FREE): Don't check for NULL bitmap here.
2740 * tree-ssa-pre.c (value_insert_into_set_bitmap,
2741 bitmap_set_new): Use new names.
2742
2743 * bt-load.c (migrate_btr_defs): Remove unneeded NULL check.
2744 * df.c (df_free): Likewise.
2745 * ra-build.c (ra_build_free, ra_build_free_all): Likewise.
2746 * tree-ssa-loop-ivopts.c (set_use_iv_cost): Likewise.
2747
2748 * basic-block.h (OBSTACK_ALLOC_REG_SET): Rename to ...
2749 (ALLOC_REG_SET): ... here.
2750 (FREE_REG_SET): Adjust.
2751 (XMALLOC_REG_SET, XFREE_REG_SET): Remove.
2752 * bb-reorder.c (fix_crossing_conditional_branches): Adjust.
2753 * cfglayout.c (cfg_layout_duplicate_bb): Adjust.
2754 * cfgrtl.c (rtl_split_block, rtl_split_edge,
2755 safe_insert_insn_on_edge, cfg_layout_split_edge): Adjust.
2756 * flow.c (update_life_info, calculate_global_regs_live,
2757 allocate_bb_life_data, init_propagate_block_info): Adjust.
2758 * global.c (build_insn_chain): Adjust.
2759 * ifcvt.c (dead_or_predicable): Adjust.
2760 * loop-iv.c (simplify_using_initial_values): Adjust.
2761 * recog.c (peephole2_optimize): Adjust.
2762 * sched-deps.c (init_deps_global): Adjust.
2763
2764 2004-11-25 Ralf Corsepius <ralf.corsepius@rtems.org>
2765
2766 * config.gcc (avr-*-rtems*): Fix typo.
2767
2768 2004-11-25 J"orn Rennecke <joern.rennecke@st.com>
2769
2770 * sh.c (sh_output_mi_thunk): Do not call regset_release_memory.
2771
2772 2004-11-24 Jeff Law <law@redhat.com>
2773
2774 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Reduce
2775 the number of queries to random elements in the ai->written_vars
2776 bitmap.
2777
2778 2004-11-24 Roger Sayle <roger@eyesopen.com>
2779
2780 * config/i386/i386.c (override_options): Disable x87 fancy math
2781 intrinsics if -mfpmath= doesn't include 387 (default on x86_64).
2782
2783 2004-11-24 Roger Sayle <roger@eyesopen.com>
2784
2785 * configure.ac: Tweak test for HAVE_DECL_LDGETNAME to avoid a
2786 system header conflict on AIX 5.2.
2787 * configure: Regenerate.
2788
2789 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
2790
2791 * tree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx
2792 instead of calling phi_arg_from_edge.
2793
2794 * tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge
2795 with e->dest_idx.
2796
2797 2004-11-24 Ben Elliston <bje@au.ibm.com>
2798
2799 * config/i386/i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
2800 * config/i386/i386.c (i386_dwarf_output_addr_const): Likewise.
2801 * config/i386/i386-protos.h (i386_dwarf_output_addr_const):
2802 Likewise.
2803
2804 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2805
2806 * tree-sra.c (sra_walk_modify_expr): Handle RHS first, then LHS.
2807
2808 * tree-inline.c (copy_body_r): Explicitly copy a constant if the
2809 type will be remapped.
2810
2811 2004-11-24 Steven Bosscher <stevenb@suse.de>
2812
2813 * c-opts.c (c_common_post_options): Don't clear
2814 flag_inline_functions.
2815 * dojump.c (clear_pending_stack_adjust): Remove check on
2816 flag_inline_functions, it's always true.
2817 * config/alpha/alpha.md (movdi_er_maybe_g): Remove splitter
2818 that can never trigger.
2819 * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Don't look at
2820 flag_inline_trees, now that flag_inline_functions is never
2821 cleared.
2822 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Don't set
2823 flag_inline_functions at optimization levels greater than
2824 or equal to 3. This is already done by default.
2825
2826 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
2827
2828 * tree-outof-ssa.c (eliminate_build): Use g->e->dest_idx
2829 instead to find the PHI argument. Do not take I as an
2830 argument.
2831 (eliminate_phi): Adjust the call to eliminate_build. Do not
2832 take I as an argument.
2833 (rewrite_trees): Adjust the call to eliminate_phi.
2834
2835 2004-11-24 Richard Sandiford <rsandifo@redhat.com>
2836
2837 * optabs.h (force_expand_binop): Declare.
2838 * optabs.c (force_expand_binop): Export.
2839 * stmt.c (shift_return_value): Delete.
2840 (expand_return): Don't call it.
2841 * expr.h (shift_return_value): Declare.
2842 * calls.c (shift_returned_value): Delete in favor of...
2843 (shift_return_value): ...this new function. Leave the caller to check
2844 for non-BLKmode values passed in the msb of a register. Take said mode
2845 and a shift direction as argument. Operate on the hard function value,
2846 not a pseudo.
2847 (expand_call): Adjust accordingly.
2848 * function.c (expand_function_start): If a non-BLKmode return value
2849 is padded at the last significant end of the return register, use the
2850 return value's natural mode for the DECL_RESULT, not the mode of the
2851 padded register.
2852 (expand_function_end): Shift the same sort of return values left by
2853 the appropriate amount.
2854
2855 2004-11-24 Matt Austern <austern@apple.com>
2856
2857 * recog.c (recog_memoized_1): Remove.
2858 * recog.h (recog_memoized_1): Remove declaration.
2859 (recog_memoized): Change from macro to inline function.
2860
2861 2004-11-24 Devang Patel <dpatel@apple.com>
2862
2863 PR/18555
2864 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add isysroot.
2865 * config/darwin-c.c (darwin_register_frameworks): Use sysroot.
2866
2867 2004-11-24 Devang Patel <dpatel@apple.com>
2868
2869 * gcc.c (process_command): Supply -v to linker.
2870
2871 2004-11-24 David Edelsohn <edelsohn@gnu.org>
2872 Paolo Bonzini <bonzini@gnu.org>
2873
2874 * config/rs6000/rs6000.c (rs6000_return_in_memory): Allow Altivec
2875 vector modes without ALTIVEC_ABI. Use GCC vector instead of
2876 synthetic vector.
2877 (rs6000_pass_by_reference): Split conditional into pieces. Use
2878 GCC vector instead of synthetic vector.
2879
2880 2004-11-24 Aldy Hernandez <aldyh@redhat.com>
2881
2882 * tree.c (recompute_tree_invarant_for_addr_expr): The address of a
2883 thread-local variable is invariant.
2884
2885 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2886
2887 * tree-pretty-print.c (dump_generic_node, case POINTER_TYPE):
2888 Handle TYPE_REF_CAN_ALIAS_ALL.
2889 (print_declaration): Print array dimensions like dump_generic_node.
2890
2891 * fold-const.c (operand_equal_p): Remove kludge allowing ARG0 and
2892 ARG1 to be null; instead define OP_SAME and OP_SAME_NULL and use them.
2893
2894 2004-11-24 Nathan Sidwell <nathan@codesourcery.com>
2895
2896 * bitmap.c (INLINE): Do not define.
2897 (bitmap_elem_to_freelist, bitmap_element_free,
2898 bitmap_element_allocate, bitmap_clear, bitmap_element_zerop,
2899 bitmap_element_link, bitmap_find_bit): Use inline keyword/macro.
2900
2901 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
2902
2903 * tree-ssa-dom.c (cprop_into_successor_phis): Remove code to
2904 find the index of a PHI argument. Use e->dest_idx instead.
2905 Replace hint with index.
2906
2907 * tree-ssa-dom.c (cprop_into_successor_phis): Replace index
2908 with indx.
2909
2910 2004-11-24 Diego Novillo <dnovillo@redhat.com>
2911
2912 * tree-ssa-alias.c (merge_pointed_to_info): Fix comment
2913 regarding PT_MALLOC.
2914
2915 2004-11-24 Joseph Myers <joseph@codesourcery.com>
2916
2917 * config/i386/i386.c (optimization_options): Use
2918 SUBTARGET_OPTIMIZATION_OPTIONS.
2919 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define.
2920 (TARGET_SUBTARGET_DEFAULT): Don't include
2921 MASK_OMIT_LEAF_FRAME_POINTER.
2922
2923 2004-11-24 Mark Mitchell <mark@codesourcery.com>
2924
2925 * config/i386/sol2.h (X86_FILE_START_VERSION_DIRECTIVE):
2926 Define to false.
2927
2928 2004-11-24 Joseph Myers <joseph@codesourcery.com>
2929
2930 * config/i386/t-sol2-10 (MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES):
2931 Use amd64 instead of 64.
2932
2933 2004-11-24 Mark Mitchell <mark@codesourcery.com>
2934 Joseph Myers <joseph@codesourcery.com>
2935
2936 * crtstuff.c (IN_LIBGCC2): Define it.
2937 (EH_FRAME_SECTION_CONST): Check EH_TABLES_CAN_BE_READ_ONLY
2938 instead of HAVE_LD_RO_RW_SECTION_MIXING.
2939 * defaults.h (EH_TABLES_CAN_BE_READ_ONLY): New macro.
2940 * dwarf2out.c (named_section_eh_frame_section): Check
2941 EH_TABLES_CAN_BE_READ_ONLY.
2942 * except.c (default_exception_section): Likewise.
2943 * config/i386/sol2.h (EH_TABLES_CAN_BE_READ_ONLY): Define.
2944 * doc/tm.texi (EH_TABLES_CAN_BE_READ_ONLY): Document.
2945
2946 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
2947
2948 * tree-ssa-pre.c (phi_translate): Use find_edge to find the
2949 index of a PHI argument.
2950
2951 * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi): Use
2952 find_edge to find the index of a PHI argument.
2953
2954 2004-11-24 Steven Bosscher <stevenb@suse.de>
2955
2956 * expr.c (expand_expr_real_1): Remove cases for EXIT_BLOCK_EXPR
2957 and LABELED_BLOCK_EXPR.
2958 * gimplify.c (gimplify_labeled_block_expr): Remove.
2959 (gimplify_exit_block_expr): Remove.
2960 (gimplify_expr): Don't call them.
2961 * tree-inline.c (copy_body_r): Don't handle EXIT_BLOCK_EXPR
2962 and LABELED_BLOCK_EXPR.
2963 (estimate_num_insns_1): Likewise.
2964 (walk_tree): Likewise.
2965 * tree-pretty-print.c (dump_generic_node): Don't handle
2966 EXIT_BLOCK_EXPR and LABELED_BLOCK_EXPR.
2967 * tree.def (EXIT_BLOCK_EXPR): Moved to java-tree.def.
2968 (LABELED_BLOCK_EXPR): Likewise.
2969 * tree.h (LABELED_BLOCK_LABEL): Moved to java-tree.h.
2970 (LABELED_BLOCK_BODY): Likewise.
2971 (EXIT_BLOCK_LABELED_BLOCK): Likewise.
2972 (EXIT_BLOCK_RETURN): Removed.
2973
2974 2004-11-24 Steven Bosscher <stevenb@suse.de>
2975
2976 * cfgrtl.c (rtl_delete_block): Fix comment.
2977 * emit-rtl.c (remove_unnecessary_notes): Die if we see BLOCK_BEG
2978 or BLOCK_END insn notes.
2979 * jump.c (squeeze_notes): Likewise.
2980 * haifa-sched.c (reemit_notes): Don't "re-emit" EH_REGION_BEG and
2981 EH_REGION_END notes, we never have them to begin with.
2982 * sched-deps.c (sched_analyze_insn): When updating loop notes,
2983 verify that we have indeed only recorded loop notes.
2984 (sched_analyze): Die if we see EH_REGION_BEG or EH_REGION_END notes.
2985 Only record loop notes.
2986
2987 * cfgexpand.c (tree_expand_cfg): Fix comment.
2988
2989 * passes.c (rest_of_compilation): Don't do a second call to
2990 convert_from_eh_region_ranges from here, it's already called
2991 from cfgexpand.c.
2992 * except.c (resolve_fixup_regions): Remove.
2993 (remove_fixup_regions): Remove.
2994 (convert_from_eh_region_ranges_1): Remove.
2995 (convert_from_eh_region_ranges): Remove the case where EH is
2996 not already lowered at the tree level. We always lower there.
2997
2998 2004-11-24 Paolo Bonzini <bonzini@gnu.org>
2999
3000 PR c++/16882
3001 * tree.c (make_vector_type): Move qualifiers to the vector type,
3002 use the inner type's main variant and build a main variant for
3003 the vector type if necessary.
3004 (type_hash_eq): Check a vector type's TYPE_VECTOR_SUBPARTS.
3005
3006 2004-11-24 Eric Botcazou <ebotcazou@libertysurf.fr>
3007
3008 * target.h (late_rtl_prologue_epilogue): Remove.
3009 * target-def.h (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
3010 * system.h: Poison TARGET_LATE_RTL_PROLOGUE_EPILOGUE.
3011 * passes.c (rest_of_handle_prologue_epilogue): Remove and move
3012 remaining bits to...
3013 (rest_of_handle_flow2): ...here.
3014 (rest_of_compilation): Remove call to rest_of_handle_prologue_epilogue.
3015 * doc/tm.texi (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
3016
3017 2004-11-23 Mark Mitchell <mark@codesourcery.com>
3018
3019 * hwint.h (HOST_LONG_LONG_FORMAT): New macro. Use it throughout.
3020 * config/i386/xm-mingw32.h (HOST_LONG_LONG_FORMAT): Define.
3021 * doc/hostconfig.texi (HOST_LONG_LONG_FORMAT): Document.
3022
3023 2004-11-24 Daniel Jacobowitz <dan@codesourcery.com>
3024
3025 * config/i386/i386.c (override_options): Move
3026 SUBTARGET_OVERRIDE_OPTIONS before defaulting
3027 flag_omit_frame_pointer.
3028
3029 2004-11-23 Richard Henderson <rth@redhat.com>
3030
3031 * rtl.h (validate_subreg): Declare.
3032 * emit-rtl.c (validate_subreg): New.
3033 (gen_rtx_SUBREG): Use it.
3034 * simplify-rtx.c (simplify_subreg): Likewise.
3035 (simplify_gen_subreg): Likewise. Remove duplicate asserts.
3036 * expr.c (emit_move_insn_1): Tidy complex move code. Use memory
3037 fallback whenever gen_realpart/gen_imagpart would not be able to
3038 create SUBREGs.
3039
3040 2004-11-23 Richard Henderson <rth@redhat.com>
3041
3042 * expmed.c (extract_bit_field): Use simplify_gen_subreg instead of
3043 hard-coding avoiding calls to gen_rtx_SUBREG. Split complex return
3044 modes to CONCAT.
3045
3046 2004-11-23 Diego Novillo <dnovillo@redhat.com>
3047
3048 PR tree-optimization/18618
3049 * tree-into-ssa.c (DEF_VEC_MALLOC_P(basic_block)): Declare.
3050 (insert_phi_nodes_for): Change third argument to VEC(basic_block).
3051 * tree-ssa-dom.c (avail_exprs_stack): Change type to VEC(tree_on_heap).
3052 Update all users.
3053 (stmts_to_rescan): Likewise.
3054 (const_and_copies_stack): Likewise.
3055 (nonzero_vars_stack): Likewise.
3056 (vrp_variables_stack): Likewise.
3057
3058 2004-11-23 Richard Henderson <rth@redhat.com>
3059
3060 * cse.c (record_jump_cond_subreg): New.
3061 (record_jump_cond): Use it instead of gen_lowpart.
3062
3063 2004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
3064 Joseph Myers <joseph@codesourcery.com>
3065
3066 * config/sol2-c.c (solaris_register_pragmas): Use
3067 c_register_pragma_with_expansion.
3068 * config/sol2.h (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Define.
3069 * c-pragma.c (c_register_pragma): Update call to
3070 cpp_register_pragma.
3071 (c_register_pragma_with_expansion): New function.
3072 (init_pragma): Honor HANDLE_PRAGMA_PACK_WITH_EXPANSION.
3073 * c-pragma.h (c_register_pragma_with_expansion): New prototype.
3074 * doc/extend.texi (Solaris Pragmas): Mention macro expansion for
3075 #pragma align.
3076 * doc/tm.texi (c_register_pragma_with_expansion,
3077 HANDLE_PRAGMA_PACK_WITH_EXPANSION): Document.
3078
3079 2004-11-23 Richard Henderson <rth@redhat.com>
3080
3081 * combine.c (gen_lowpart_for_combine): Factor out mode of x as well
3082 as mode sizes into local temporaries. Unify failure path.
3083
3084 2004-11-23 Richard Henderson <rth@redhat.com>
3085
3086 * emit-rtl.c, rtl.h (subreg_hard_regno): Remove.
3087 * caller-save.c (mark_set_regs): Use subreg_regno instead.
3088 * final.c (alter_subreg): Likewise.
3089 * local-alloc.c (reg_is_born): Likewise.
3090
3091 2004-11-23 Richard Henderson <rth@redhat.com>
3092
3093 * simplify-rtx.c (simplify_subreg): Use subreg_regno_offset directly
3094 instead of using a SUBREG temporary.
3095
3096 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
3097
3098 * tree-cfg.c (tree_forwarder_block_p): Speed up by reordering
3099 two checks.
3100
3101 2004-11-23 Zack Weinberg <zack@codesourcery.com>
3102
3103 * function.h (struct function): Remove calls_longjmp.
3104 (current_function_calls_longjmp): Delete.
3105 * tree.h (ECF_LONGJMP): Delete.
3106 (ECF_SIBCALL, ECF_PURE, ECF_SP_DEPRESSED, ECF_ALWAYS_RETURN)
3107 (ECF_LIBCALL_BLOCK): Everybody slide down one.
3108 (ECF_CONST, ECF_NORETURN, ECF_SIBCALL): Clarify comments.
3109 * builtins.c (expand_builtin_longjmp): Don't set
3110 current_function_calls_longjmp.
3111 * calls.c (special_function_p): Mark longjmp and siglongjmp
3112 with ECF_NORETURN, not ECF_LONGJMP.
3113 (emit_call_1, expand_call, emit_library_call_value_1):
3114 Don't check for ECF_LONGJMP.
3115 * tree-cfg.c (make_exit_edges, is_ctrl_altering_stmt)
3116 (need_fake_edge_p): Likewise.
3117
3118 * config/avr/avr.h, config/ip2k/ip2k.h: Don't define NON_SAVING_SETJMP.
3119 * system.h: Poison NON_SAVING_SETJMP.
3120 * function.c (use_register_for_decl)
3121 * gcse.c (compute_hash_table_work, compute_store_table)
3122 * postreload-gcse.c (record_opr_changes)
3123 * reload.c (find_equiv_reg)
3124 * reload1.c (reload)
3125 * config/i386/i386.c (ix86_can_use_return_insn_p):
3126 Remove code conditional on NON_SAVING_SETJMP.
3127 * doc/tm.texi: Delete documentation of NON_SAVING_SETJMP.
3128
3129 * config/i386/sysv3.h: Delete file.
3130 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Delete.
3131
3132 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
3133
3134 * tree-vectorizer.c (vect_analyze_operations): Don't vectorize if
3135 the vectorization factor is greater than the iteration count.
3136 (vect_gen_niters_for_prolog_loop): No need to calculate min if the
3137 iteration count is known.
3138
3139 (vect_build_symbol_bound): Removed. Its functionality moved to
3140 vect_generate_tmps_on_preheader.
3141 (vect_generate_tmps_on_preheader): Moved content of
3142 vect_build_symbol_bound here instead of calling it. Changed some
3143 variables names.
3144
3145 (vect_build_loop_niters): We don't expect a new_bb to be generated -
3146 use gcc_assert.
3147 (vect_gen_niters_for_prolog_loop): Likewise.
3148 (vect_gen_niters_for_prolog_loo): Likewise.
3149
3150 (slpeel_make_loop_iterate_ntimes): Use buildN instead of build.
3151 (slpeel_add_loop_guard): Likewise.
3152 (slpeel_tree_peel_loop_to_edge): Likewise.
3153 (vect_do_peeling_for_alignment): Likewise.
3154
3155 (vect_get_first_index): Missing space.
3156
3157 2004-11-23 Ulrich Weigand <uweigand@de.ibm.com>
3158
3159 * config/s390/s390.md ("*iordi3"): Mark commutative.
3160 ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
3161
3162 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
3163
3164 * tree-phinode.c (resize_phi_node): Abort when LEN is strictly
3165 greater than PHI_ARG_CAPACITY.
3166 (reserve_phi_args_for_new_edge): Initialize the new PHI
3167 argument to NULL_TREE. Increment PHI_NUM_ARGS.
3168 (add_phi_arg): Add a PHI argument to the slot given by
3169 E->dest_idx.
3170 (remove_phi_arg_num): Do not write to PHI_ARG_EDGE.
3171 * tree-flow-inline (phi_arg_from_edge): Return E->dest_idx.
3172 * tree-ssa.c (ssa_redirect_edge): Check for a missing PHI
3173 argument by looking at PHI_ARG_DEF.
3174 (verify_phi_args): Check for a missing PHI argument. Remove
3175 the check for duplicate PHI arguments.
3176 * tree.h (PHI_ARG_EDGE): Redefine in terms of EDGE_PRED.
3177 (phi_arg_d): Remove e.
3178
3179 * tree-cfg.c (tree_try_redirect_by_replacing_jump): Speed up
3180 by restricting to the case with two outgoing edges.
3181
3182 2004-11-23 Andreas Krebbel <krebbel1@de.ibm.com>
3183
3184 * config/s390/s390.c (s390_backchain_string): Removed.
3185 (s390_return_addr_rtx, s390_back_chain_rtx, s390_frame_info)
3186 (s390_emit_prologue, s390_va_start, s390_gimplify_va_arg):
3187 Changed users of TARGET_BACKCHAIN, TARGET_NO_BACKCHAIN and
3188 TARGET_KERNEL_BACKCHAIN to reflect the new options.
3189 * config/s390/s390.h (MASK_BACKCHAIN, MASK_PACKED_STACK): New macros.
3190 (TARGET_KERNEL_BACKCHAIN): Removed.
3191 (TARGET_BACKCHAIN): Former triple state option change to a target flag.
3192 (TARGET_PACKED_STACK): New macro.
3193 (TARGET_SWITCHES): New switches added.
3194 (TARGET_OPTIONS): "backchain", "no-backchain" and "kernel-backchain"
3195 removed.
3196 (DYNAMIC_CHAIN_ADDRESS): Use TARGET_PACKED_STACK.
3197 * config/s390/s390.md ("allocate_stack", "restore_stack_block")
3198 ("save_stack_nonlocal", "restore_stack_nonlocal"): Modified to reflect
3199 the change in target switch semantics.
3200 * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Removed.
3201 (TARGET_DEFAULT): MASK_BACKCHAIN added.
3202 * doc/invoke.texi: Added documentation for the new/changed options.
3203
3204 2004-11-23 Uros Bizjak <uros@kss-loka.si>
3205
3206 PR rtl-optimization/18614
3207 * simplify-rtx.c (simplify_binary_operation): Do not
3208 simplify inner elements of constant arguments of
3209 VEC_CONCAT insn.
3210
3211 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
3212
3213 * gthr-solaris.h (__gthread_recursive_mutex_init_function): Use
3214 0 instead of NULL.
3215
3216 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
3217
3218 * tree-phinode.c (make_phi_node): Use a new variable,
3219 capacity, to receive the return value of ideal_phi_node_len.
3220
3221 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
3222
3223 * gthr-solaris.h (__gthread_recursive_mutex_t): New type.
3224 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
3225 __gthread_recursive_mutex_init_function.
3226 (__gthread_key_create): Properly cast -1.
3227 (__gthread_recursive_mutex_init_function): New function.
3228 (__gthread_recursive_mutex_lock): Rewrite.
3229 (__gthread_recursive_mutex_trylock): Likewise.
3230 (__gthread_recursive_mutex_unlock): Likewise.
3231
3232 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
3233
3234 * config/c4x/t-rtems: New.
3235 * config.gcc: Reflect having added c4x/t-rtems.
3236
3237 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
3238
3239 PR tree-opt/18403
3240 PR tree-opt/18505
3241 * tree-vectorizer.c (vect_create_data_ref_ptr): Use
3242 lang_hooks.types.type_for_size instead of integer_type_node for the
3243 type of ptr_update.
3244
3245 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
3246
3247 * config.gcc (h8300-*-rtems*): Use h8300/t-rtems.
3248
3249 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
3250
3251 * config/arm/t-rtems: New.
3252 * config.gcc: Reflect having added arm/t-rtems.
3253
3254 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
3255
3256 * tree-cfg.c (tree_execute_on_growing_pred): New.
3257 (tree_cfg_hooks): Add tree_execute_on_growing_pred.
3258 * tree-flow.h: Add a prototype for
3259 reserve_phi_args_for_new_edge.
3260 * tree-phinodes.c (reserve_phi_args_for_new_edge): New.
3261 (add_phi_arg): Don't resize a PHI array.
3262
3263 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
3264
3265 * config.gcc: Add avr-*-rtems*.
3266 * config/avr/t-rtems: New.
3267 * config/avr/rtems.h: New.
3268
3269 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
3270
3271 * df.c (dataflow_set_a_op_b): Remove reslt parameter, since it's
3272 always the same as op1. Use bitmap_ior_into and bitmap_and_into.
3273 Add comment to function.
3274
3275 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3276
3277 PR pch/14940
3278 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __hppa__.
3279
3280 PR rtl-optimization/14838
3281 * emit-rtl.c (get_first_nonnote_insn): Don't assume first insn is a
3282 note.
3283 (get_last_nonnote_insn): Don't assume last insn is a note.
3284
3285 2004-11-22 Roger Sayle <roger@eyesopen.com>
3286
3287 * fold-const.c (nondestructive_fold_binary_to_constant): Rename
3288 to fold_binary_to_constant.
3289 (nondestructive_fold_unary_to_constant): Likewise, rename to
3290 fold_unary_to_constant.
3291 (fold_relational_hi_lo): Update call to fold_binary_to_constant.
3292 * tree.h (nondestructive_fold_binary_to_constant): Update prototype.
3293 (nondestructive_fold_unary_to_constant): Likewise.
3294 * tree-ssa-ccp.c (ccp_fold): Update calls to fold_unary_to_constant
3295 and fold_binary_to_constant.
3296 * tree-ssa-loop-niter.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
3297 (inverse, number_of_iterations_cond): Replace uses of EXEC_BINARY
3298 and EXEC_UNARY with calls to fold_*nary_to_constant.
3299 * tree-ssa-loop-ivopts.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
3300 (idx_find_step): Replace uses of EXEC_BINARY with calls to
3301 fold_binary_to_constant.
3302
3303 2004-11-22 Nick Clifton <nickc@redhat.com>
3304
3305 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
3306 initialisation of 'e'.
3307
3308 2004-11-22 Roger Sayle <roger@eyesopen.com>
3309
3310 * config/i386/i386.h (TARGET_USE_FANCY_MATH_387): New macro.
3311 * config/i386/i386.c (override_options): Set MASK_NO_FANCY_MATH_387
3312 automatically for targets without TARGET_80387.
3313 * config/i386/i386.md (sqrtsf2, sqrtsf2_1, sqrtsf2_i387, sqrtdf2,
3314 sqrtdf2_1, sqrtdf2_i387, *sqrtextendsfdf2, sqrtxf2,
3315 *sqrtextenddfxf2, *sqrtextendsfxf2, fpremxf4, fmodsf3, fmoddf3,
3316 fmodxf3, fprem1xf4, dremsf3, dremdf3, dremxf3, *sindf2, *sinsf2,
3317 *sinextendsfdf2, *sinxf2, *cosdf2, *cossf2, *cosextendsfdf2,
3318 *cosxf2, sincosdf3, sincossf3, *sincosextendsfdf3, sincosxf3,
3319 *tandf3_1, tandf2, *tansf3_1, tansf2, *tanxf3_1, tanxf2,
3320 atan2df3_1, atan2df3, atandf2, atan2sf3_1, atan2sf3, atansf2,
3321 atan2xf3_1, atan2xf3, atanxf2, asindf2, asinsf2, asinxf2,
3322 acosdf2, acossf2, acosxf2, fyl2x_xf3, logsf2, logdf2, logxf2,
3323 log10sf2, log10df2, log10xf2, log2sf2, log2df2, log2xf2,
3324 fyl2xp1_xf3, log1psf2, log1pdf2, log1pxf2, *fxtractxf3, logbsf2,
3325 logbdf2, logbxf2, ilogbsi2, *f2xm1xf2, *fscalexf4, expsf2,
3326 expdf2, expxf2, exp10sf2, exp10df2, exp10xf2, exp2sf2, exp2df2,
3327 exp2xf2, expm1df2, expm1sf2, expm1xf2, frndintxf2, rintdf2,
3328 rintsf2, rintxf2, frndintxf2_floor, floordf2, floorsf2,
3329 floorxf2, frndintxf2_ceil, ceildf2, ceilsf2, ceilxf2,
3330 frndintxf2_trunc, btruncdf2, btruncsf2, btruncxf2,
3331 frndintxf2_mask_pm, nearbyintdf2, nearbyintsf2, nearbyintxf2):
3332 Simplify conditionals using TARGET_USE_FANCY_MATH_387.
3333
3334 2004-11-22 Dale Johannesen <dalej@apple.com>
3335
3336 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Conditionalize
3337 properly and comment.
3338
3339 2004-11-22 James A. Morrison <phython@gcc.gnu.org
3340
3341 * config/sparc/sparc.c: Include insn-codes.h and langhooks.h.
3342 (sparc_init_builtins): New function.
3343 (sparc_init_vis_builtins): Create builtin functions for VIS
3344 instructions.
3345 (sparc_expand_builtin): Expand builtin functions for VIS instructions.
3346 (TARGET_INIT_BUILTINS): Define to sparc_init_builtins.
3347 (TARGET_EXPAND_BUILTIN): Define to sparc_expand_builtin.
3348 (def_builtin): New macro for creating builtin functions.
3349 (P): New mode macro for pointer types.
3350 (UNSPEC_FPACK16, UNSPEC_FPACK32, UNSPEC_FPACKFIX, UNSPEC_FEXPAND,
3351 UNSPEC_FPMERGE, UNSPEC_MUL16AL, UNSPEC_MUL8UL, UNSPEC_MULDUL,
3352 UNSPEC_ALIGNDATA, UNSPEC_ALIGNADDR, UNSPEC_PDIST): New constants.
3353 (fpack16_vis, fpackfix_vis, fpack32_vis, fexpand_vis, fpmerge_vis,
3354 fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
3355 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis, pdist_vis,
3356 faligndata<V64:mode>_vis, alignaddr<P:mode>_vis): New patterns.
3357
3358 2004-11-22 Devang Patel <dpatel@apple.com>
3359
3360 * tree-if-conv.c (clean_predicate_lists): Clean all basic blocks.
3361
3362 2004-11-22 Devang Patel <dpatel@apple.com>
3363
3364 * tree-if-conv.c (if_convertable_phi_p): Rename to ...
3365 (if_convertible_phi_p): ... new name.
3366 (if_convertable_modify_expr_p): Rename to ...
3367 (if_convertible_modify_expr_p): ... new name.
3368 (if_convertable_stmt_p): Rename to ...
3369 (if_convertible_stmt_p): ... new name.
3370 (if_convertable_bb_p): Rename to ...
3371 (if_convertible_bb_p): ... new name.
3372 (if_convertable_loop_p): Rename to ...
3373 (if_convertible_loop_p): ... new name.
3374
3375 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
3376
3377 PR target/18444
3378 * configure.ac (threading): Accept 'posix95'.
3379 * configure: Regenerate.
3380 * config.gcc (i[34567]86-*-solaris2*): On Solaris up to 2.6,
3381 include sol26.h and default to posix95 threads if have_pthread_h.
3382 (sparc-*-solaris2*): Likewise.
3383 * gthr.h: Include gthr-posix95.h if _PTHREADS95 is defined.
3384 * gthr-posix95.h: New file.
3385 * config/sol26.h: New file.
3386 * doc/install.texi (--enable-threads): Document 'posix95'.
3387
3388 2004-11-23 Ben Elliston <bje@au.ibm.com>
3389
3390 * pointer-set.h (pointer_set_contains): Remove.
3391 * pointer-set.c (pointer_set_contains): Likewise.
3392
3393 2004-11-22 Dale Johannesen <dalej@apple.com>
3394
3395 * calls.c (expand_call): Do not call preserve_temp_slots.
3396
3397 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
3398
3399 * tree-flow.h: Remove the prototype for remove_phi_arg.
3400 Add a prototype for remove_phi_args.
3401 * tree-phinodes.c (remove_phi_arg): Remove.
3402 (remove_phi_args): New.
3403 * tree-ssa.c (ssa_remove_edge): Call remove_phi_args instead
3404 of remove_phi_arg.
3405
3406 * cfg.c (unchecked_make_edge): Call execute_on_growing_pred
3407 after making an edge.
3408 (remove_edge): Call execute_on_shrinking_pred before removing
3409 an edge.
3410 (redirect_edge_succ): Call execute_on_growing_pred and
3411 execute_on_shrinking_pred.
3412 * cfghooks.c (execute_on_growing_pred): New.
3413 (execute_on_shrinking_pred): Likewise.
3414 * cfghooks.h (cfg_hooks): Add execute_on_growing_pred and
3415 execute_on_shrinking_pred.
3416 Add prototypes for execute_on_growing_pred and
3417 execute_on_shrinking_pred.
3418 * cfgrtl.c (rtl_cfg_hooks): Add NULL hooks to
3419 execute_on_growing_pred and execute_on_shrinking_pred.
3420 (cfg_layout_rtl_cfg_hook): Likewise.
3421 * tree-cfg.c (tree_cfg_hooks): Likewise.
3422
3423 * tree-cfg.c (tree_execute_on_shrinking_pred): New.
3424 (tree_cfg_hooks): Use it.
3425 * tree-ssa.c (ssa_remove_edge): Don't call remove_phi_args.
3426 (ssa_redirect_edge): Don't call remove_phi_arg_num.
3427
3428 * tree-phinodes.c (remove_phi_arg_num): Make it static.
3429 * tree-flow.h: Remove the corresponding prototype.
3430
3431 * tree-ssa.c (ssa_remove_edge): Remove.
3432 * tree-flow.h: Remove the corresponding prototype.
3433 * tree-cfg.c: Replace ssa_remove_edge with remove_edge.
3434 * basic-block.h: Likewise.
3435 * tree-if-conv.c: Likewise.
3436 * tree-ssa-threadupdate.c: Likewise.
3437
3438 2004-11-23 Ben Elliston <bje@au.ibm.com>
3439
3440 * doc/cfg.texi (Maintaining the CFG): Use @ftable instead of
3441 @table to list the BSI methods. Use individual @findex directives
3442 instead of one with a comma-separated list of index entries.
3443
3444 2004-11-22 Zdenek Dvorak <dvorakz@suse.cz>
3445
3446 PR tree-optimization/18529
3447 * fold-const.c (fold_to_nonsharp_ineq_using_bound): New function.
3448 (simple_operand_p): Use STRIP_NOPS. Consider SSA names simple.
3449 (fold): Call fold_to_nonsharp_ineq_using_bound.
3450 * tree-ssa-loop-niter.c (simplify_replace_tree): New function.
3451 (number_of_iterations_cond): Fold the expressions before futher
3452 processing.
3453 (tree_simplify_using_condition): Handle case when cond or expr is
3454 an EQ_EXPR specially.
3455
3456 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
3457
3458 * tree-ssa.c (verify_ssa): SSA_OP_ALL_USES should be
3459 SSA_OP_ALL_USES | SSA_OP_ALL_KILLS for verification purposes.
3460
3461 2004-11-22 David Edelsohn <edelsohn@gnu.org>
3462 Fariborz Jahanian <fjahanian@apple.com>
3463
3464 * config/rs6000/rs6000.c (rs6000_return_in_memory): Test
3465 TARGET_ALTIVEC_ABI.
3466 (function_arg_boundary): Align 8 to 16 byte vectors like SPE.
3467 Align 16 byte and larger vectors like Altivec.
3468 (function_arg_advance): Pass any 16 byte vector like Altivec vector.
3469 (function_arg): Same.
3470 (rs6000_pass_by_references): Test TARGET_ALTIVEC_ABI.
3471
3472 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
3473
3474 PR tree-opt/18572
3475 * tree-sra.c (scalarize_init): Unshare the rhs before gimplifying
3476 it.
3477
3478 2004-11-22 Richard Henderson <rth@redhat.com>
3479
3480 * function.c (assign_parm_setup_block): Revert 11-13 change to
3481 forcably re-mode a (possibly BLKmode) hard register.
3482
3483 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
3484
3485 * config/sparc/sparc.c (mem_min_alignment): Check MEM_ALIGN.
3486
3487 2004-11-22 David Edelsohn <edelsohn@gnu.org>
3488
3489 * config/rs6000/power4.md: Remove delay between dispatch and issue
3490 associated with dispatch group slots 3 and 4.
3491 * config/rs6000/power5.md: Same.
3492
3493 2004-11-21 Jeff Law <law@redhat.com>
3494
3495 * cfg.c (cached_make_edge): Use find_edge rather than an inlined
3496 variant.
3497 * cfgbuild.c (make_edges): Likewise.
3498 * cfghooks.c (can_duplicate_block_p): Likewise.
3499 * cfgloop.c (loop_latch_edge): Likewise.
3500 * cfgloopmanip.c (force_single_succ_latches): Likewise.
3501 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
3502 * predict.c (predict_loops, propagate_freq): Likewise.
3503 * tracer.c (tail_duplicate): Likewise.
3504 * tree-cfg.c (disband_implicit_edges): Likewise.
3505 (tree_forwarder_block_p, tree_flow_call_edges_add): Likewise.
3506
3507 2004-11-22 Nick Clifton <nickc@redhat.com>
3508
3509 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
3510 initialisation of 'e'.
3511
3512 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
3513
3514 PR rtl-optimization/18599
3515 * regrename.c (copyprop_hardreg_forward): Speed up by putting
3516 BB_VISITED flags on basic blocks as we process them.
3517
3518 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
3519
3520 PR target/18531
3521 * config/rs6000/altivec.md (VI_char): New mode attribute.
3522 (addv16qi3, addv8hi3, addv4ai3): Replace with ...
3523 (add<mode>3): ... this.
3524 (subv16qi3, subv8hi3, subv4ai3): Replace with ...
3525 (sub<mode>3): ... this.
3526 (smaxv16qi3, smaxv8hi3, smaxv4ai3): Replace with ...
3527 (smax<mode>3): ... this.
3528 (sminv16qi3, sminv8hi3, sminv4ai3): Replace with ...
3529 (smin<mode>3): ... this.
3530 (umaxv16qi3, umaxv8hi3, umaxv4ai3): Replace with ...
3531 (umax<mode>3): ... this.
3532 (uminv16qi3, uminv8hi3, uminv4ai3): Replace with ...
3533 (umin<mode>3): ... this.
3534 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
3535 (and<mode>3): ... this.
3536 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
3537 (ior<mode>3): ... this.
3538 (xorv16qi3, xorv8hi3, xorv4ai3): Replace with ...
3539 (xor<mode>3): ... this.
3540 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
3541 (and<mode>3): ... this.
3542 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
3543 (ior<mode>3): ... this.
3544 (altivec_vnor): Replace with ...
3545 (altivec_nor<mode>): ... this.
3546 (one_cmplv16qi2, one_cmplv8hi2, one_complv4ai2): Replace with ...
3547 (one_cmpl<mode>2): ... this.
3548 (altivec_vandc): New expander.
3549 (*andc<mode>3): New insn.
3550 * config/rs6000/rs6000.c (bdesc_2arg): Adjust for new insn names.
3551
3552 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
3553
3554 PR tree-opt/18536
3555 * tree-vectorizer.c (make_loop_iterate_ntimes): Use type of niters when
3556 creating iv instead of integer_type.
3557 (vect_build_loop_niters): Remove redundant code.
3558 (vect_transform_loop_bound): Removed (duplicates functionality of
3559 make_loop_iterate_ntimes.
3560 (vect_gen_niters_for_prolog_loop): Add documentation. Call
3561 lang_hooks.types.type_for_size to create a type of the required size.
3562 Use that type instead of integer_type. Remove redundant code.
3563 (vect_update_niters_after_peeling): Use type of niters instead of
3564 integer_type.
3565 (vect_transform_loop): Unify handling of known and unknown loop bound
3566 cases. Call make_loop_iterate_ntimes instead of
3567 vect_transform_loop_bound.
3568
3569 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
3570
3571 PR target/18217
3572 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Move darwin-fallback.c to
3573 (LIB2ADDEH): Here.
3574
3575 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
3576
3577 PR tree-opt/18544
3578 * tree-vectorizer.c (vect_analyze_data_refs): Fail if memtag not found.
3579
3580 2004-11-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3581
3582 * config.gcc: Use t-slibgcc-elf to build libgcc_s.so on
3583 m32r*linux.
3584 * config/m32r/t-linux (SHLIB_MAPFILES): Override to use
3585 m32r/libgcc-glibc.ver.
3586 * config/m32r/libgcc-glibc.ver: Add New file.
3587
3588 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
3589
3590 * bitmap.h (struct bitmap_obstack): New obstack type.
3591 (struct bitmap_head_def): Replace using_obstack with obstack
3592 pointer.
3593 (bitmap_default_obstack): New.
3594 (bitmap_initialize): Make inline, does not do allocation.
3595 (bitmap_release_memory): Remove.
3596 (bitmap_obstack_initialize, bitmap_obstack_release): Declare.
3597 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
3598 bitmap_obstack_free, bitmap_malloc_free): Declare.
3599 (BITMAP_OBSTACK_ALLOC, BITMAP_GGC_ALLOC, BITMAP_XMALLOC): Adjust.
3600 (BITMAP_FREE): Replace with ...
3601 (BITMAP_OBSTACK_FREE): ... this.
3602 (BITMAP_XFREE): Adjust.
3603 (BITMAP_INIT_ONCE): Remove.
3604 * bitmap.c (bitmap_obstack, bitmap_obstack_init, bitmap_free: Remove.
3605 (bitmap_default_obstack): New.
3606 (bitmap_elem_to_freelist): Adjust.
3607 (bitmap_element_allocate): Adjust. Break initialization into ...
3608 (bitmap_obstack_initialize): ... here.
3609 (bitmap_release_memory): Replace with ...
3610 (bitmap_obstack_release): ... this.
3611 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
3612 bitmap_obstack_free, bitmap_malloc_free): New.
3613 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Use
3614 bitmap_initialize.
3615 (bitmap_initialize): Move to bitmap.h.
3616 * gengtype.c (open_base_files): Add obstack.h to ifiles.
3617 * Makefile.in (BASIC_BLOCK_H, REGS_H): Add obstack.h.
3618 * basic-block.h (INIT_REG_SET): Allocate from reg_obstack.
3619 (INITIALIZE_REG_SET): Remove.
3620 (FREE_REG_SET): Use BITMAP_OBSTACK_FREE.
3621 (INIT_ONCE_REG_SET, MAX_REGNO_REG_SET): Remove.
3622 (flow_obstack): Do not declare.
3623 (reg_obstack): Declare.
3624 * regs.h: Include obstack.h.
3625 * tree-optimize.c (tree_rest_of_compilation): Initialize and
3626 release bitmap obstack here.
3627 * bb-reorder.c: #include regs, not basic-block.
3628 (fix_crossing_conditional_branches): Allocate regsets from
3629 reg_obstack.
3630 * bt-load.c: Do not inlude bitmap.h, sbitmap.h, basic-block.h or
3631 obstack.h.
3632 * caller-save.c: Include regs.h earlier.
3633 * cfg.c: Do not include basic-block.h or obstack.h.
3634 (reg_obstack): Define.
3635 * cfganal.c: Include obstack.h
3636 * cfgcleanyp.c: Do not include basic-block.h. Include regs.h
3637 earlier.
3638 * cfglayout.c: Do not include obstack.h.
3639 (flow_obstack): Remove declaration.
3640 (cfg_layout_duplicate_bb): Use reg_obstack.
3641 * cfgloop.c, cfgloopanal.c, cfgloopmanip.c: Include obstack.h.
3642 * cfgrtl.c (rtl_split_block): Use reg_obstack.
3643 (force_nonfallthru_and_redirect, rtl_split_edge): Likewise.
3644 (safe_insert_insn_on_edge): Use OBSTACK_ALLOC_REG_SET, adjust.
3645 (cfg_layout_split_edge): Use reg_obstack.
3646 * cse.c: Include regs.h earlier.
3647 * ddg.c: Do not include basic-block.h.
3648 * dominance.c: Inlude obstack.h.
3649 * flow.c (update_life_info): Use OBSTACK_ALLOC_REG_SET, adjust.
3650 (calculate_global_regs_live): Likewise.
3651 (allocate_bb_life_data): Use reg_obstack.
3652 (init_propagate_block_info): Use OBSTACK_ALLOC_REGSET.
3653 * global.c: Do not include basic-block.h.
3654 (build_insn_chain): Use OBSTACK_ALLOC_REG_SET, adjust.
3655 * graph.c: Include obstack.h.
3656 * haifa-sched.c: Do not include basic-block.h.
3657 * ifcvt.c: Use OBSTACK_ALLOC_REG_SET, adjust.
3658 * local-alloc.c: Do not include basic-block.h.
3659 * loop-init.c, loop-invariant.c: Include obstack.h.
3660 * loop-iv.c: Likewise.
3661 (simplify_using_initial_values): Use OBSTACK_ALLOC_REG_SET,
3662 adjust.
3663 * loop-unroll.c, loop-unswitch.c: Inlude obstack.h.
3664 * modulo-sched.c: Do not include basic-block.h.
3665 * passes.c (rest_of_handle_final): Do not call
3666 regset_release_memory.
3667 * ra-debug.c: Include regs.h earlier. Do not include
3668 basic-block.h.
3669 * recog.c (peephole2_optimize): Use OBSTACK_ALLOC_REG_SET, adjust.
3670 * regclass.c (init_reg_sets): Do not call INIT_ONCE_REG_SET.
3671 (allocate_reg_info): Do not call MAX_REGNO_REG_SET.
3672 (regset_release_memory): Remove.
3673 * resource.c: Do not include basic-block.h.
3674 * rtlanal.c: Do not include basic-block.h.
3675 * sbitmap.c: Include obstack.h.
3676 * sched-deps.c: Do not include basic-block.h.
3677 (reg_pending_sets_head, reg_pending_clobbers_head,
3678 reg_pending_uses_head): Remove.
3679 (init_deps_global): Use OBSTACK_ALLOC_REG_SET.
3680 * sched-ebb.c: Do not include basic-block.h.
3681 * sched-rgn.c: Likewise.
3682 * tree-if-conv.c (get_loop_body_in_if_conv_order): Use
3683 BITMAP_XFREE.
3684 * tree-outof-ssa.c (perform_edge_inserts): Use BITMAP_XFREE.
3685 * tree-sra.c (decide_instantiations): Adjust bitmap
3686 initialization.
3687 * tree-ssa-dce.c: Include obstack.h.
3688 * tree-ssa-pre.c (grand_bitmap_obstack): Make a bitmap_obstack.
3689 (value_insert_into_set_bitmap): Remove useless bitmap_clear.
3690 (bitmap_set_new): Likewise.
3691 (init_pre): Initialize bitmap obstack.
3692 (fini_pre): Release bitmap obstack.
3693 * tree-ssanames.c (ssa_names_to_rewrite): Make static.
3694 (marked_for_rewrite_p): ssa_names_to_rewrite is never NULL.
3695 (mark_for_rewrite, unmark_for_rewrite): Likewise.
3696 (marked_ssa_names): Likewise.
3697 (init_ssanames): Use BITMAP_XMALLOC.
3698 (fini_ssanames): Use BITMAP_XFREE.
3699 * web.c: Include obstack.h
3700
3701 2004-11-22 Nick Clifton <nickc@redhat.com>
3702
3703 * sbitmap.c (sbitmap_union_of_preds): Set 'e' to the next edge
3704 predecessor in the first for-loop.
3705
3706 2004-11-21 Stan Shebs <shebs@apple.com>
3707
3708 * config/rs6000/rs6000.c: (rs6000_darwin64_function_arg): Add
3709 UNION_TYPE case.
3710 (function_arg): Move darwin test up, sniff mode first for
3711 efficiency, test for union type.
3712
3713 2004-11-21 Dale Johannesen <dalej@apple.com>
3714
3715 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
3716
3717 2004-11-21 Jeff Law <law@redhat.com>
3718
3719 * tree-ssa.c (verify_use): Fix comment.
3720 (verify_phi_args): Check that the number of incoming edges matches
3721 the number of PHI arguments. Check that each PHI argument is
3722 either an SSA_NAME or an invariant. Coalesce tests for PHIs for
3723 dead or duplicated edges. Clear e->aux earlier and avoid separate
3724 loop to clear e->aux and test for missed edges.
3725 (verify_ssa): Remove first walk over statements. Move checking
3726 of PHI args into verify_phi_args. Move checking of statements
3727 with aliased stores and V_MAY_DEFS into the remaining loop over
3728 the statements. Register defs by walking through the formal
3729 SSA_NAME table.
3730
3731 2004-11-21 Roger Sayle <roger@eyesopen.com>
3732
3733 PR middle-end/18520
3734 * dojump.c (compare_from_rtx): Clarify mode argument in function
3735 description. Correct order of mode/cmp_mode arguments in call to
3736 simplify_relational_operation. Check "tem" for COMPARISON_P.
3737
3738 2004-11-21 Paolo Bonzini <bonzini@gnu.org>
3739 David Edelsohn <edelsohn@gnu.org>
3740
3741 PR target/17836
3742 * config/rs6000/rs6000.c (rs6000_return_in_memory): Return
3743 synthetic vectors in memory.
3744 (function_arg_boundary): Align large synthetic vectors.
3745 (rs6000_pass_by_reference): Pass synthetic vectors in memory.
3746
3747 2004-11-21 Jeff Law <law@redhat.com>
3748
3749 * cfg.c (update_bb_profile_for_threading): Do not rescale the
3750 successor probabilities if they are not going to change. Pull
3751 division out of loop if we do need to rescale successor probabilities.
3752
3753 * tree-ssa-threadupdate.c (redirection_data_hash): Use the
3754 index of the destination block for the hash value rather than
3755 hashing a pointer.
3756
3757 2004-11-20 Joseph S. Myers <joseph@codesourcery.com>
3758
3759 * c-typeck.c (build_array_ref): Don't check for index == 0. Make
3760 checks for neither argument being an array or pointer (swapping
3761 the arguments if necessary), the array argument being a pointer to
3762 or array of functions and for -Wchar-subscripts warnings upfront.
3763
3764 2004-11-20 Jeff Law <law@redhat.com>
3765
3766 * regrename.c (copyprop_hardreg_forward): Only search for a
3767 previously processed block if the current block only has one
3768 predecessor.
3769
3770 2004-11-20 Kazu Hirata <kazu@cs.umass.edu>
3771
3772 * tree-ssa-threadupdate.c, tree-vectorizer.c: Fix comment
3773 typos.
3774 * config/arm/arm.c: Follow spelling conventions.
3775
3776 2004-11-20 Richard Earnshaw <rearnsha@arm.com>
3777
3778 * arm.c (arm_override_options): Use arm_ld_sched rather than testing
3779 a bit in tune_flags.
3780 (const_double_needs_minipool): Likewise. Split most of the code out
3781 into ...
3782 (arm_const_double_inline_cost): ... new function here.
3783 * arm-protos.h (arm_const_double_inline_cost): Add prototype.
3784 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Add D[abc] constraints for double-
3785 word constants of length 2, 3 and 4 insns respectively.
3786 (CONSTRAINT_LEN): The 'D' prefix is a 2-letter constraint.
3787 * arm.md (arm_movdi, movdf_soft_insn): Add alternatives for D[abc]
3788 constraints. Set insn lenghts accordingly.
3789
3790 2004-11-19 Jeff Law <law@redhat.com>
3791
3792 * tree-ssa-threadupdate.c: Replace REDIRECTION_DATA varray with
3793 a hash table. Extensive modifications throughout to support
3794 that change.
3795 (struct el): New.
3796 (struct local_info): New.
3797 (struct redirection_data): Add new INCOMING_EDGES and DO_NOT_DUPLICATE
3798 fields.
3799 (redirection_data): Now a hashtable.
3800 (redirection_data_hash, redirection_data_eq): New.
3801 (lookup_redirection_data, create_duplicates): New.
3802 (create_edge_and_update_destionation_phis): New.
3803 (fixup_template_block, redirect_edges): New.
3804 (thread_block): Use hash table traversals instead of loops over
3805 varray entries or incoming edge vectors.
3806
3807 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
3808
3809 * basic-block.h (edge_def): Add dest_idx.
3810 * cfg.c (unchecked_make_edge): Initialize dest_idx.
3811 (remove_edge): Simplify the disconnection of an edge from its
3812 destination.
3813 (redirect_edge_succ): Likewise.
3814 * cfghooks.c (verify_flow_info): Check the consistency of
3815 dest_idx for each edge.
3816
3817 2004-11-19 Aldy Hernandez <aldyh@redhat.com>
3818
3819 * simplify-rtx.c (simplify_ternary_operation): Use
3820 gen_int_mode.
3821
3822 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
3823
3824 * tree-cfg.c (reinstall_phi_args): New.
3825 (tree_split_edge): Use it after redirecting an edge. Don't
3826 modify PHI_ARG_EDGE.
3827
3828 2004-11-19 Andreas Tobler <a.tobler@schweiz.ch>
3829
3830 * tree-vectorizer.c (slpeel_verify_cfg_after_peeling): Define only
3831 if checking is enabled.
3832
3833 2004-11-19 Joseph S. Myers <joseph@codesourcery.com>
3834
3835 * c-decl.c (push_scope): Remove "\n" from end of diagnostic for
3836 too many nested scopes.
3837
3838 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
3839
3840 PR tree-opt/18181
3841 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Peeling scheme
3842 changed to suppoer uses-after-loop and to void creating flow paths
3843 that shouldn't exist.
3844 (slpeel_update_phi_nodes_for_guard): Takes additional two arguments.
3845 Modified to fit the new peeling scheme. Avoid quadratic behavior.
3846 (slpeel_add_loop_guard): Takes additional argument.
3847 (slpeel_verify_cfg_after_peeling): New function.
3848 (vect_update_ivs_after_vectorizer): Takes additional argument. Updated
3849 documentation. Use 'exit-bb' instead of creating 'new-bb'.
3850 (rename_variables_in_bb): Don't update phis for BBs out of loop, to fit
3851 the new peeling scheme.
3852 (copy_phi_nodes): Function removed. Its functionality moved to
3853 update_phis_for_duplicate_loop.
3854 (slpeel_update_phis_for_duplicate_loop): Functionality of copy_phi_nodes
3855 moved here. Added documentation. Modified to fit the new peeling scheme.
3856 (slpeel_make_loop_iterate_ntimes): Setting loop->single_exit not not
3857 needed - done in slpeel_tree_peel_loop_to_edge.
3858 (slpeel_tree_duplicate_loop_to_edge_cfg): Debug printouts compacted.
3859 (vect_do_peeling_for_loop_bound): Add documentation. Call
3860 slpeel_verify_cfg_after_peeling. Call vect_update_ivs_after_vectorizer
3861 with additional argument.
3862 (vect_do_peeling_for_alignment): Call slpeel_verify_cfg_after_peeling.
3863
3864 (vect_finish_stmt_generation): Avoid 80 column oveflow.
3865
3866 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
3867
3868 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Last two
3869 arguments removed.
3870 (slpeel_tree_peel_loop_to_edge): Call slpeel_make_loop_iterate_ntimes
3871 without last two arguments. Update single_exit of loops.
3872 (vect_update_niters_after_peeling): Removed. Its functionality was
3873 moved to vect_do_peeling_for_alignment.
3874 (vect_do_peeling_for_loop_bound): New name for function previously
3875 called vect_transform_for_unknown_loop_bound.
3876 (vect_transform_loop_bound): Call slpeel_make_loop_iterate_ntimes
3877 instead of code that duplicates the same functionality.
3878 (vect_do_peeling_for_alignment): Functionality of
3879 vect_update_niters_after_peeling moved here.
3880 (vect_transform_loop): Unify call to vect_do_peeling_for_loop_bound -
3881 previously named vect_transform_for_unknown_loop_bound - for both known
3882 and unknown loop bound cases.
3883
3884 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
3885
3886 * tree-vectorizer.c (slpeel_can_duplicate_loop_p): New name for function
3887 previously called verify_loop_for_duplication. All conditions compacted
3888 into one compound condition. Removed debug dumps.
3889 (vect_analyze_loop_with_symbolic_num_of_iters): Removed. Some of the
3890 functionality moved to vect_can_advance_ivs_p, and some to
3891 vect_analyze_loop_form.
3892 (vect_can_advance_ivs_p): New function. Contains functionality that was
3893 taken out of vect_analyze_loop_with_symbolic_num_of_iters.
3894 (slpeel_tree_peel_loop_to_edge): Call slpeel_can_duplicate_loop_p.
3895 (vect_analyze_operations): Call vect_can_advance_ivs_p and
3896 slpeel_can_duplicate_loop_p.
3897 (vect_get_loop_niters): Added documentation.
3898 (vect_analyze_loop_form): Check the loop entry always - not only in case
3899 of unknown loop bound. Create preheader and exit bb if necessary. Apply
3900 a check that used to take place in
3901 vect_analyze_loop_with_symbolic_num_of_iters.
3902 (vectorize_loops): Call verify_loop_closed_ssa under ENABLE_CHECKING.
3903 Remove redundant call to rewrite_into_loop_closed_ssa.
3904 (vect_compute_data_refs_alignment): Removed obsolete comment.
3905
3906 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
3907
3908 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): New name for
3909 function previously called tree_duplicate_loop_to_edge.
3910 (slpeel_tree_duplicate_loop_to_edge_cfg): New name for function
3911 previously called tree_duplicate_loop_to_edge_cfg.
3912 (slpeel_update_phis_for_duplicate_loop): Prefix 'slpeel' added to
3913 function name.
3914 (slpeel_update_phi_nodes_for_guard): Likewise.
3915 (slpeel_make_loop_iterate_ntimes): Likewise.
3916 (slpeel_add_loop_guard): Likewise.
3917 (allocate_new_names, free_new_names): Function declaration moved to top
3918 of file.
3919 (rename_use_op, rename_def_op): Likewise.
3920 (rename_variables_in_bb, rename_variables_in_loop): Likewise.
3921 (vect_generate_tmps_on_preheader): Function declaration moved.
3922 (vect_transform_for_unknown_loop_bound): Added missing function
3923 declaration.
3924
3925 2004-11-19 Andrew Pinski <pinskia@physics.uc.edu>
3926
3927 PR tree-opt/18507
3928 * tree-flow.h (tree_on_heap): Typedef because there is already a VEC(tree).
3929 Define a VEC(tree_on_heap) for head.
3930 (register_new_def): Change second argument to be a VEC(tree_on_heap).
3931 * tree-ssa-dom.c (block_defs_stack): Change to be a VEC(tree_on_heap).
3932 (tree_ssa_dominator_optimize): Initialize block_defs_stack with
3933 the VEC(tree_on_heap) function. Also free it before returning.
3934 (dom_opt_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
3935 for block_defs_stack.
3936 (restore_currdefs_to_original_value): Use VEC_length instead of
3937 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
3938 (dom_opt_finalize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
3939 for block_defs_stack.
3940 * tree-into-ssa.c (block_defs_stack): Change to be a VEC(tree_on_heap).
3941 (rewrite_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
3942 for block_defs_stack.
3943 (ssa_register_new_def): Likewise.
3944 (ssa_rewrite_initialize_block): Likewise.
3945 (rewrite_finalize_block): Use VEC_length instead of
3946 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
3947 (ssa_rewrite_finalize_block): Likewise.
3948 (register_new_def): Change second argument to be a VEC(tree_on_heap).
3949 Use VEC_safe_push instead of VARRAY_PUSH_TREE.
3950 (rewrite_blocks): Initialize block_defs_stack with
3951 the VEC(tree_on_heap) function. Also free it before returning.
3952 (rewrite_ssa_into_ssa): Likewise.
3953
3954 2004-11-19 Fariborz Jahanian <fjahanian@apple.com>
3955
3956 * config/darwin.c (machopic_data_defined_p): return 1 for
3957 MACHOPIC_DEFINED_FUNCTION.
3958
3959 2004-11-19 Jeff Law <law@redhat.com>
3960
3961 * tree-ssa.c (verify_ssa): Remove redundant checking of PHI
3962 arguments.
3963
3964 2004-11-19 Paul Brook <paul@codesourcery.com>
3965
3966 PR target/17735
3967 * varasm.c (default_assemble_integer): Allow pointer-sized values.
3968 Expand comment.
3969
3970 2004-11-19 Nick Clifton <nickc@redhat.com>
3971
3972 * config/stormy16/stormy16.c (combine_bnp): Add code to handle
3973 zero_extension and lshiftrt insns.
3974 Replace uses of XEXP(...) with either SET_DEST() or SET_SRC()
3975 where appropriate.
3976 * config/stormy16.stormy16.md (bclrx3, bsetx3): New patterns
3977 to handle bp and bn insn patterns with a zero_extend rtx
3978 inside them.
3979
3980 2004-11-19 Ian Lance Taylor <ian@wasabisystems.com>
3981
3982 * config/arm/arm.md (generic_sched): Make const.
3983
3984 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
3985
3986 * emit-rtl.c (classify_insn): Make it static.
3987 * rtl.h: Remove the corresponding prototype.
3988
3989 * integrate.c (has_func_hard_reg_initial_val,
3990 get_func_hard_reg_initial_val): Make them static.
3991 * integrate.h: Remove the corresponding prototypes.
3992
3993 2004-11-19 Ben Elliston <bje@au.ibm.com>
3994
3995 * dwarf2asm.h (dw2_asm_output_pcel): Stub out with #if 0.
3996 (dw2_asm_output_delta_sleb128): Likewise.
3997 * dwarf2asm.c (dw2_asm_output_pcrel): Likewise.
3998 (dw2_asm_output_delta_sleb128): Likewise.
3999
4000 2004-11-19 Adam Nemet <anemet@lnxw.com>
4001
4002 * tree-ssa-alias.c: Fix comment.
4003
4004 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
4005
4006 * tree-outof-ssa.c: Fix a comment typo.
4007
4008 2004-11-19 Ben Elliston <bje@au.ibm.com>
4009
4010 * predict.h (predict_insn): Remove extern declaration.
4011 * predict.c (predict_insn): Make static.
4012
4013 2004-11-19 Alan Modra <amodra@bigpond.net.au>
4014
4015 * config/rs6000/rs6000.c (function_arg): Don't return BLKmode regs.
4016
4017 2004-11-18 Nicolas Pitre <nico@cam.org>
4018
4019 * config/arm/arm.c (const_double_needs_minipool): New function to
4020 determine if a CONST_DOUBLE should be pushed to the minipool.
4021 (note_invalid_constants): Use it.
4022
4023 2004-11-18 Paul Brook <paul@codesourcery.com>
4024
4025 * config/arm/arm.c (target_float_switch): New variable..
4026 (arm_override_options): Use TARGET_DEFAULT_FLOAT_ABI and
4027 target_float_switch.
4028 * config/arm/arm.h (target_float_switch): Declare.
4029 (ARM_FLAG_SOFT_FLOAT): Remove.
4030 (TARGET_SWITCHES): Remove hard-float and soft-float.
4031 (TARGET_OPTIONS): Add hard-float and soft-float.
4032 (TARGET_DEFAULT_FLOAT_ABI): Define.
4033 * config/arm/coff.h (TARGET_DEFAULT_FLOAT_ABI): Define
4034 (TARGET_DEFAULT): Don't use ARM_FLAG_SOFT_FLOAT.
4035 * config/arm/elf.h: Don't use ARM_FLAG_SOFT_FLOAT.
4036 * config/arm/netbsd-elf.h: Ditto.
4037 * config/arm/netbsd.h: Ditto.
4038 * config/arm/pe.h: Ditto.
4039 * config/arm/unknown-elf.h: Ditto.
4040 * config/arm/wince-pe.h: Ditto.
4041 * config/arm/linux-elf.h (TARGET_DEFAULT_FLOAT_ABI): Define.
4042 * config/arm/semi.h (TARGET_DEFAULT_FLOAT_ABI): Define.
4043 * config/arm/semiaof.h (TARGET_DEFAULT_FLOAT_ABI): Define.
4044
4045 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
4046
4047 * config/rs6000/altivec.md (VI, VF, V): New mode macros.
4048 (altivec_lvx_4si, altivec_lvx_8hi, altivec_lvx_16qi,
4049 altivec_lvx_4sf): Rename and replace with ...
4050 (altivec_lvx_<mode>): ... mode macro version.
4051 (altivec_stvx_4si, altivec_stvx_8hi, altivec_stvx_16qi,
4052 altivec_stvx_4sf): Rename and replace with ...
4053 (altivec_stvx_<mode>): ... mode macro version.
4054 (movv4si, movv8hi, movv16qi, movv4sf}): Replace with ...
4055 (mov<mode>): ... mode macro version.
4056 (*movv4si_internal, *movv8hi_internal1, *movv16qi_internal1,
4057 *movv4sf_internal1): Replace with ...
4058 (*mov<mode>_internal): ... mode macro version.
4059 (get_vrsave_internal, *set_vrsave_internal, *save_world,
4060 *restore_world): Unquote output statements.
4061 * config/rs6000/rs6000.c (altivec_expand_ld_builtin,
4062 altivec_expand_st_builtin): Adjust insn names.
4063
4064 2004-11-18 Aldy Hernandez <aldyh@redhat.com>
4065
4066 * config/rs6000/rs6000.c (rs6000_complex_function_value): Revert
4067 previous change.
4068 (rs6000_override_options): Likewise.
4069 (spe_build_register_parallel): Handle complex doubles on e500v2.
4070 (rs6000_spe_function_arg): Likewise.
4071 (function_arg): Likewise.
4072 (rs6000_function_value): Likewise.
4073 (rs6000_libcall_value): Likewise.
4074
4075 2004-11-18 Andrew Pinski <pinskia@physics.uc.edu>
4076
4077 * ifcvt.c (find_if_block): Move the check for the number of edges
4078 above the loops checking for complex edges.
4079 Remove the counting of edges as we use EDGE_COUNT now.
4080
4081 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
4082
4083 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
4084 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.3
4085
4086 2004-11-18 Andreas Schwab <schwab@suse.de>
4087
4088 * config/i386/i386.md (define_peephole2): Revert last change.
4089
4090 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
4091
4092 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
4093 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.
4094
4095 2004-11-18 Diego Novillo <dnovillo@redhat.com>
4096
4097 * tree-ssa-propagate.c (ssa_prop_init): Use FOR_ALL_BB instead
4098 of FOR_EACH_BB.
4099
4100 2004-11-18 Jon Grimm <jgrimm2@us.ibm.com>
4101
4102 * Makefile.in (macro_list): Depend on s-macro_list.
4103 (s-macro_list): New target.
4104
4105 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
4106
4107 PR target/17107
4108 * fold-const.c (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
4109 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
4110 (fold_range_test): Adjust.
4111 (fold_truthop): Use it.
4112 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
4113 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
4114
4115 2004-11-18 Uros Bizjak <uros@kss-loka.si>
4116
4117 * configure/i386/i386.md (*fix_trunch_1): Add "&& 1" to
4118 insn split constraint.
4119 (define_peephole2): Remove unneeded "&& 1" from peephole2
4120 constraints.
4121
4122 2004-11-18 Ben Elliston <bje@au.ibm.com>
4123
4124 * doc/cfg.texi (Maintaining the CFG): Remove duplicated @item
4125 element for bsi_prev; use @findex instead.
4126
4127 2004-11-18 Ben Elliston <bje@au.ibm.com>
4128
4129 * opts.h (add_input_filename): Remove extern declaration.
4130 * opts.c (add_input_filename): Make static.
4131
4132 2004-11-17 Mark Mitchell <mark@codesourcery.com>
4133
4134 * config/i386/i386.c (i386_solaris_elf_named_section): Mark with
4135 ATTRIBUTE_UNUSED.
4136
4137 2004-11-17 Zack Weinberg <zack@codesourcery.com>
4138
4139 * defaults.h, config/darwin.h: Don't define TARGET_SUPPORTS_HIDDEN.
4140 * system.h: Poison it.
4141 * doc/tm.texi: Delete its documentation.
4142
4143 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
4144 Mark Mitchell <mark@codesourcery.com>
4145
4146 * config/i386/sol2-10.h, config/i386/t-sol2-10: New files.
4147 * config/i386/i386.c (i386_solaris_elf_named_section): New
4148 function.
4149 * config.gcc (i[34567]86-*-solaris2*): Handle Solaris 2.10.
4150 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Handle
4151 64-bit.
4152 (ASM_QUAD): Don't undefine for biarch targets.
4153 * config/i386/t-sol2: Introduce multilib support.
4154
4155 2004-11-18 Ben Elliston <bje@au.ibm.com>
4156
4157 * cgraphunit.c: Replace "it's" with "its" and fix a typo.
4158
4159 2004-11-18 Ben Elliston <bje@au.ibm.com>
4160
4161 * cgraph.h: Replace "it's" with "its" throughout.
4162
4163 2004-11-18 Ben Elliston <bje@au.ibm.com>
4164
4165 * doc/rtl.texi (Flags): Grammar fix.
4166
4167 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
4168
4169 * expmed.c (alg_code): Add alg_unknown.
4170 (alg_hash_entry): New.
4171 (NUM_ALG_HASH_ENTRIES): Likewise.
4172 (alg_hash): Likewise.
4173 (synth_mult): Cache the result into alg_hash.
4174
4175 2004-11-17 Zack Weinberg <zack@codesourcery.com>
4176
4177 * config/rs6000/t-darwin: Augment SHLIB_MAPFILES with
4178 config/rs6000/libgcc-ppc64.ver.
4179
4180 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
4181
4182 * cfgrtl.c (rtl_verify_flow_info): Don't use INSN_P when
4183 checking if an unconditional return is followed by a barrier.
4184
4185 * jump.c (condjump_p): Remove unreachable code.
4186
4187 * basic-block.h, c-common.h, df.h, expr.h, output.h, rtl.h,
4188 tree-chrec.h, tree-flow.h, tree-scalar-evolution.h,
4189 tree-ssa-live.h, tree.h: Remove unused prototypes.
4190
4191 2004-11-17 Jeff Law <law@redhat.com>
4192
4193 * tree-cfg.c (edge_to_cases): Renamed from edge_to_case_leader.
4194 (edge_to_cases_elt): Renamed from edge_to_case_leader.
4195 (edge_to_cases_hash): Renamed from edge_to_case_leader_hash.
4196 (edge_to_cases_eq): Renamed from edge_to_case_leader_eq.
4197 (edge_to_cases_cleanup, recording_case_labels_p): New functions.
4198 (get_cases_for_edge): New function.
4199 (start_recording_case_labels, end_recording_case_labels): Similarly.
4200 (record_switch_edge): Don't muck with the CASE_LABEL. Instead
4201 chain equivalent CASE_LABEL_EXPRs together.
4202 (get_case_leader_for_edge, get_case_leader_for_edge_hash): Kill.
4203 (make_switch_expr_edges): Do not record edge/cases here.
4204 (cleanup_tree_cfg): Record cases around the call to thread_jumps.
4205 (split_critical_edges): Record cases around the edge splitting code.
4206 (cleanup_dead_labels): Use CASE_LABEL again.
4207 (tree_redirect_edge_and_branch): If we have a mapping from edge
4208 to cases, use it to handle redirections. Else do it the slow way.
4209 * tree.h (CASE_LEADER_OR_LABEL): Kill.
4210 (CASE_LABEL): Revert to just looking at the tree's second operand.
4211 * tree.c (get_case_label): Kill.
4212
4213 2004-11-17 Diego Novillo <dnovillo@redhat.com>
4214
4215 PR tree-optimization/18307
4216 * tree-ssa-alias.c (merge_pointed_to_info): ICE if 'dest' and
4217 'orig' are the same node.
4218 (collect_points_to_info_r): Do not call merge_pointed_to_info
4219 when the PHI argument is identical to the LHS.
4220
4221 2004-11-17 Steven Bosscher <stevenb@suse.de>
4222
4223 * tree-ssa-propagate.c (cfg_blocks_add): Assert we're not trying
4224 to insert the exit or entry block.
4225 (ssa_prop_init): Use add_control_edge to seed the algorithm.
4226
4227 2004-11-16 Zack Weinberg <zack@codesourcery.com>
4228
4229 * mkmap-flat.awk, mkmap-symver.awk: If the last version
4230 assigned to a symbol was '%exclude', do not emit it anywhere.
4231 If leading_underscore is true, prefix all symbols from the
4232 version scripts with a leading underscore before comparing
4233 them with nm output or emitting them. Remove support for dot
4234 symbols.
4235 * config/t-slibgcc-darwin (SHLIB_LINK): Use mkmap-flat.awk.
4236 (SHLIB_MAPFILES): Use libgcc-std.ver.
4237 (SHLIB_MKMAP_OPTS): Enable leading-underscore mode.
4238 (SHLIB_LINK): Add -Wl,-exported_symbols_list,$(SHLIB_MAP).
4239 * config/sh/t-linux: Use the normal libgcc-std.ver, plus
4240 libgcc-excl.ver and libgcc-glibc.ver.
4241
4242 * config/sh/libgcc-excl.ver: New file.
4243 * config/sh/libgcc-std.ver, libgcc-darwin.ver: Delete.
4244
4245 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
4246
4247 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Swap
4248 the test when the edge has the opposite meaning, not when
4249 the first argument is invariant.
4250
4251 2004-11-16 Aldy Hernandez <aldyh@redhat.com>
4252
4253 * config/rs6000/rs6000.c (rs6000_override_options): Split e500v2
4254 doubles.
4255 (rs6000_complex_function_value): Handle e500 v2 variant.
4256
4257 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
4258
4259 Fix PR tree-optimization/18519
4260
4261 * tree-optimize (execute_todo): Add case for TODO_cleanup_cfg.
4262 * tree-pass.h: Add TODO_cleanup_cfg.
4263 * tree-ssa-ccp.c (pass_ccp): Use TODO_cleanup_cfg.
4264 (ccp_finalize): Remove call to cleanup_cfg.
4265 * tree-ssa-dce.c (pass_dce): Use TODO_cleanup_cfg and TODO_dump_func.
4266 (pass_cd_dce): Ditto.
4267 (perform_tree_ssa_dce): Remove call to cleanup_cfg,
4268 dump_function_to_file.
4269 * tree-ssa-loop-ch.c (copy_loop_headers): Remove call
4270 to cleanup_cfg.
4271 (pass_ch): Add TODO_cleanup_cfg.
4272 * tree-ssa-loop.c (tree_ssa_loop_done): Remove call to
4273 cleanup_cfg.
4274 (pass_loop_done): Add TODO_cleanup_cfg.
4275 * tree-ssa-phiopt.c (pass_phiopt): Ditto.
4276 (tree_ssa_phiopt): Remove call to cleanup_cfg.
4277
4278 2004-11-16 Devang Patel <dpatel@apple.com>
4279
4280 * optabs.c (vector_compare_rtx): Fix COMPARISON_CLASS_P use.
4281
4282 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
4283
4284 * expmed.c, ra-colorize.c: Fix comment typos.
4285
4286 * doc/tm.texi: Fix typos.
4287
4288 2004-11-16 Daniel Jacobowitz <dan@codesourcery.com>
4289 Mark Mitchell <mark@codesourcery.com>
4290
4291 PR target/6123
4292 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and
4293 __pic__ if PIC.
4294
4295 2004-11-16 Ulrich Weigand <uweigand@de.ibm.com>
4296
4297 * regmove.c (regmove_optimize): Use lowpart_subreg instead of
4298 gen_rtx_SUBREG with incorrect offset to compute SRC_SUBREG.
4299
4300 2004-11-16 Devang Patel <dpatel@apple.com>
4301
4302 * tree-if-conv.c (clean_predicate_lists): Update gcc_assert check.
4303
4304 2004-11-16 Eric Christopher <echristo@redhat.com>
4305
4306 * config/mips/mips.c: Use rtl _P predicates.
4307 * config/mips/mips.h: Ditto.
4308 * config/mips/mips.md: Ditto.
4309
4310 2004-11-16 Fariborz Jahanian <fjahanian@apple.com>
4311
4312 * config/rs6000/altivec.md (altivec_vandc): Canonicalize
4313 the pattern.
4314
4315 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
4316
4317 * config/s390/s390.c (s390_cc_modes_compatible): New function.
4318 (TARGET_CC_MODES_COMPATIBLE): Target macro defined.
4319
4320 2004-11-16 Kaz Kojima <kkojima@gcc.gnu.org>
4321
4322 PR target/18447
4323 * config/sh/sh.c (prepare_move_operands): Emit blockage insns
4324 before and after the insns for getting GOT address in non-PIC
4325 TLS_MODEL_INITIAL_EXEC tls sequence when the first scheduling
4326 is enabled.
4327
4328 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
4329
4330 * gcc/cse.c (struct change_cc_mode_args): New structure.
4331 (cse_change_cc_mode_insn): New function.
4332 (cse_change_cc_mode): Use validate_change to perfom changes.
4333 (cse_change_cc_mode_insns, cse_condition_code_reg):
4334 Call cse_change_cc_mode_insn.
4335
4336 2004-11-16 Steven Bosscher <stevenb@suse.de>
4337
4338 * stack.h: Remove.
4339
4340 2004-11-16 Steven Bosscher <stevenb@suse.de>
4341
4342 * config/i386/i386.c (x86_schedule): Fix typo, m_K6 intead of m_K8.
4343
4344 2004-11-15 Dale Johannesen <dalej@apple.com>
4345
4346 * tree-flow.h (add_referenced_temp_var): Remove name from prototype.
4347
4348 2004-11-15 Dale Johannesen <dalej@apple.com>
4349
4350 * profile.c (compute_branch_probabilities): Prevent
4351 crash with EH in RTL-based profiling.
4352
4353 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
4354
4355 * tree-cfg.c (verify_expr): Replace TREE_OPERAND with
4356 COND_EXPR_COND.
4357 * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
4358 * tree-ssa-dom.c (thread_across_edge): Likewise.
4359 * tree-vectorizer.c (vect_transform_loop_bound): Replace
4360 TREE_OPERAND with COND_EXPR_COND, COND_EXPR_THEN, or
4361 COND_EXPR_ELSE.
4362
4363 * tree-cfg.c (bsi_commit_edge_inserts): Remove an argument.
4364 (tree_flow_call_edges_add): Update the call to
4365 bsi_commit_edge_inserts.
4366 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
4367 * profile.c (branch_prob): Likewise.
4368 * tree-mudflap.c (mf_decl_cache_locals): Likewise.
4369 * tree-sra.c (scalarize_function): Likewise.
4370 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
4371 * tree-ssa-pre.c (fini_pre): Likewise.
4372 * tree-flow.h: Update the prototype for
4373 bsi_commit_edge_inserts.
4374
4375 2004-11-15 Eric Christopher <echristo@redhat.com>
4376
4377 * sched-deps.c (set_sched_group_p): Delete.
4378 (delete_all_dependencies): New function.
4379 (fixup_sched_groups): Use. New function.
4380 (sched_analyze_insn): Use.
4381
4382 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
4383
4384 * c-common.c (binary_op_error): Don't allow LROTATE_EXPR,
4385 RROTATE_EXPR or unknown code.
4386 * c-typeck.c (build_binary_op): Don't allow RROTATE_EXPR,
4387 LROTATE_EXPR, MAX_EXPR, MIN_EXPR, UNORDERED_EXPR, ORDERED_EXPR,
4388 UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR
4389 or unknown code.
4390
4391 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
4392
4393 PR c/18498
4394 * c-decl.c (grokdeclarator): Call check_bitfield_type_and_width
4395 after processing the declarator.
4396
4397 2004-11-15 Aldy Hernandez <aldyh@redhat.com>
4398
4399 * config/rs6000/altivec.md ("altivec_vsplth"): Rewrite with
4400 vec_duplicate.
4401 (altivec_vspltb): Same.
4402 (altivec_vspltw): Same.
4403 (altivec_vspltisb): Same.
4404 (altivec_vspltish): Same.
4405 (altivec_vspltisw): Same.
4406 (altivec_vspltisw_v4sf): Same.
4407 (define_constants): Remove UNSPEC_VSPLTISB, UNSPEC_VSPLTISW,
4408 UNSPEC_VSPLTISH.
4409 Move "End of vector xor's" comment to the right place.
4410
4411 2004-11-15 Steve Ellcey <sje@cup.hp.com>
4412
4413 * config/ia64/ia64.md (*movtf_internal): Use destination_operand
4414 instead of nonimmediate_operand.
4415
4416 2004-11-15 Mark Mitchell <mark@codesourcery.com>
4417
4418 * config/i386/sol2.h (ASM_OUTPUT_CALL): Use print_operand.
4419 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Likewise.
4420 * config/sol2.c (solaris_output_init_fini): Update calls to
4421 ASM_OUTPUT_CALL. Include "rtl.h".
4422
4423 2004-11-15 Mark Mitchell <mark@codesourcery.com>
4424
4425 * config/sol2-c.c (cmn_err_char_table): Add "p".
4426
4427 2004-11-15 Mark Mitchell <mark@codesourcery.com>
4428
4429 * config/sparc/sol2.h (SUPPORTS_INIT_PRIORITY): Remove.
4430 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define here.
4431
4432 2004-11-15 Mark Mitchell <mark@codesourcery.com>
4433
4434 * config/t-slibgcc-sld (SHLIB_LINK): Make symlinks entirely
4435 within the multilib directory.
4436
4437 2004-11-15 Nick Clifton <nickc@redhat.com>
4438
4439 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Add
4440 builtin assert of cpu=xstormy16.
4441
4442 2004-11-15 Nathan Sidwell <nathan@codesourcery.com>
4443
4444 * tree-ssa-pre.c (bitmap_print_value_set): Fix uninitialized
4445 variable.
4446
4447 2004-11-14 Richard Henderson <rth@redhat.com>
4448
4449 PR 18480
4450 * calls.c (struct arg_data): Add parallel_value.
4451 (precompute_register_parameters): Set it.
4452 (load_register_parameters): Use it.
4453 (store_one_arg): Also set it here.
4454
4455 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
4456
4457 PR tree-optimization/18431
4458 * fold-const.c (associate_trees): Do not produce x + 0.
4459 (fold_widened_comparison, fold_sign_changed_comparison): New functions.
4460 (fold): Use them.
4461 * tree-ssa-loop-niter.c (upper_bound_in_type, lower_bound_in_type):
4462 Moved ...
4463 * tree.c (upper_bound_in_type, lower_bound_in_type): Here.
4464 * tree.h (upper_bound_in_type, lower_bound_in_type): Declare.
4465
4466 2004-11-14 Eric Botcazou <ebotcazou@libertysurf.fr>
4467
4468 * doc/rtl.texi (SUBREG): Adjust BYTENUM value in example.
4469
4470 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
4471
4472 * cfgrtl.c, global.c, tree-ssa-copy.c, tree-ssa-loop-ivopts.c,
4473 value-prof.c: Fix comment typos.
4474
4475 2004-11-14 Stan Shebs <shebs@apple.com>
4476
4477 Basic ABI changes for passing structs by value in 64-bit Darwin.
4478 * config/rs6000/rs6000.c (rs6000_darwin64_abi): New flag.
4479 (rs6000_override_options): Set it for 64-bit Darwin.
4480 (rs6000_parse_abi_options): Add testing options to change it.
4481 (rs6000_return_in_memory): Test whether the type is one
4482 that can be passed in registers.
4483 (darwin64_function_arg_advance): New.
4484 (function_arg_advance): Call it, plus add recursion depth
4485 argument and test when counting off arguments.
4486 (rs6000_darwin64_function_arg): New.
4487 (function_arg): Call it.
4488 (setup_incoming_varargs): Add argument to function_arg_advance.
4489 (rs6000_darwin64_function_value): New.
4490 (rs6000_function_value): Call it.
4491 * config/rs6000/rs6000.h (FUNCTION_ARG_ADVANCE): Pass depth arg.
4492 * config/rs6000/rs6000-protos.h: Update decl of
4493 function_arg_advance.
4494
4495 2004-11-14 Andrew Pinski <pinskia@physics.uc.edu>
4496
4497 PR c/17279
4498 * c-common.c (c_common_nodes_and_builtins): Ask the back-end if we
4499 support TImode before adding __int128_t and __uint128_t types.
4500
4501 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
4502
4503 PR tree-opt/18400
4504 * tree-vectorizer.c (make_loop_iterate_ntimes): Set loop->nb_iterations.
4505 (vect_transform_loop_bound): Set loop->nb_iterations.
4506
4507 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
4508 Andrew Pinski <pinskia@physics.uc.edu>
4509
4510 PR tree-opt/18425
4511 * tree-vectorize.c (vect_build_loop_niters): Do not insert
4512 NULL into the instruction stream. Initialize new_bb to NULL.
4513 (vect_update_ivs_after_vectorizer): Likewise.
4514 (vect_gen_niters_for_prolog_loop): Likewise.
4515
4516 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
4517
4518 PR tree-optimization/18431
4519 * tree-flow.h (stmt_references_memory_p): Declare.
4520 * tree-ssa-loop-im.c (stmt_cost): Use stmt_references_memory_p.
4521 * tree-ssa.c (stmt_references_memory_p): New function.
4522
4523 2004-11-14 Andreas Schwab <schwab@suse.de>
4524
4525 * Makefile.in (lambda-code.o, tree-loop-linear.o): Depend on
4526 $(EXPR_H).
4527
4528 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
4529
4530 * c-common.c (walk_stmt_tree): Remove.
4531 * c-common.h: Remove the corresponding prototype.
4532
4533 * emit-rtl.c (push_to_full_sequence): Remove.
4534 * rtl.h: Remove the corresponding prototype.
4535
4536 * cselib.c, expr.c: Fix comment typos.
4537
4538 2004-11-13 Richard Henderson <rth@redhat.com>
4539
4540 * calls.c (precompute_register_parameters): Force all PARALLELs
4541 into pseudo registers.
4542 (load_register_parameters): Copy PARALLELs into hard registers.
4543 * function.c (assign_parm_setup_block): Copy PARALLELS into
4544 pseudo registers. Do emit_group_store in conversion_insns.
4545 * expr.c (emit_group_load_1): Rename from emit_group_load, take
4546 tmps as an argument. Move final copy loop ...
4547 (emit_group_load): ... here. New function.
4548 (emit_group_load_into_temps, emit_group_move_into_temps): New.
4549 * expr.h: Declare them.
4550
4551 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
4552
4553 * tree-cfg.c, tree-if-conv.c, tree-ssa-loop-ivopts.c,
4554 tree-ssa-loop-manip.c, tree-vectorizer.c: Replace TREE_CHAIN
4555 with PHI_CHAIN where appropriate.
4556
4557 2004-11-13 Dale Johannesen <dalej@apple.com>
4558
4559 * tree-flow.h (bsi_commit_one_edge_insert): Remove name from prototype.
4560 (tree_block_label): Ditto.
4561 (flush_pending_stmts): Ditto.
4562 (insert_edge_copies): Ditto.
4563 (expr_invariant_in_loop_p): Ditto.
4564 (TDF_USE_OPS): Parenthesize definition.
4565 (TDF_USE_VOPS): Ditto.
4566
4567 2004-11-13 David Edelsohn <edelsohn@gnu.org>
4568
4569 * config/rs6000/aix51.h (ASM_CPU_SPEC): Add 970 and G5.
4570 * config/rs6000/aix52.h (ASM_CPU_SPEC): Same.
4571 (atoll): Declare.
4572 * config/rs6000/t-aix52 (BOOT_LDFLAGS): Define.
4573
4574 2004-11-14 Joseph Myers <joseph@codesourcery.com>
4575
4576 * config/i386/i386.c (override_options): Move loop to set default
4577 tuning to correct place.
4578
4579 2004-11-13 Zak Kipling <zak@transversal.com>
4580
4581 PR target/18300
4582 * config/i386/i386.c (classify_argument): Fix infinite loop when
4583 passing object with 3 or more base classes by value.
4584
4585 2004-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
4586
4587 * doc/md.texi (constraints) <% modifier>: Mention that it is
4588 useless when the two alternatives are strictly identical.
4589
4590 2004-11-13 Richard Henderson <rth@redhat.com>
4591
4592 * expmed.c (extract_split_bit_field): Temporarily disable call to
4593 extract_force_align_mem_bit_field.
4594
4595 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
4596
4597 * bitmap.c, bitmap.h, expmed.c, tree-cfg.c: Fix comment
4598 formatting.
4599
4600 * c-cppbuiltin.c, cgraph.c, domwalk.h, except.c, gimplify.c,
4601 lambda-code.c, postreload.c, predict.c, tree-sra.c,
4602 tree-ssa-loop-manip.c, tree.c: Fix comment typos.
4603
4604 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
4605
4606 * doc/install.texi (automake): Correctly document that everything now
4607 will use automake 1.9.3.
4608
4609 2004-11-13 Hans-Peter Nilsson <hp@bitrange.com>
4610
4611 PR target/18347
4612 * config/mmix/mmix.c (mmix_function_outgoing_value): Handle
4613 TImode. Sorry for other non-complex larger-than-64-bit modes.
4614 * config/mmix/mmix.h (MIN_UNITS_PER_WORD): Do not define.
4615
4616 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
4617
4618 * doc/install.texi (automake): Document that everything now uses 1.9.
4619
4620 2004-11-13 Bernd Schmidt <bernd.schmidt@analog.com>
4621
4622 * cse.c (cse_insn): Stores in a libcall sequence can invalidate
4623 previous loads.
4624
4625 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
4626
4627 * tree.h: Fix comment typos.
4628
4629 2004-11-13 Steven Bosscher <stevenb@suse.de>
4630
4631 * cse.c (CHEAP_REGNO): Redefine using REGNO_PTR_FRAME_P and
4632 HARD_REGISTER_NUM_P.
4633
4634 * cselib.c (new_cselib_val): Make comment correct and more detailed.
4635 * flow.c (mark_set_1): Likewise.
4636
4637 * except.c (duplicate_eh_region_1, duplicate_eh_region_2,
4638 duplicate_eh_regions): Remove.
4639 * except.h (duplicate_eh_regions): Remove prototype.
4640 * integrate.c (get_label_from_map, copy_rtx_and_substitute,
4641 global_const_equiv_varray): Remove.
4642 * integrate.h (get_label_from_map, copy_rtx_and_substitute,
4643 global_const_equiv_varray, set_label_in_map): Remove prototypes,
4644 extern declaration, and #define.
4645 (MAYBE_EXTEND_CONST_EQUIV_VARRAY, SET_CONST_EQUIV_DATA): Remove.
4646 (struct inline_remap): Remove.
4647 * varray.c (struct element): Remove entry for const_equiv_data.
4648 * varray.h (struct const_equiv_data): Remove.
4649 (enum varray_data_enum) <VARRAY_DATA_CONST_EQUIV>: Remove.
4650 (union varray_data_tag) <const_equiv>: Remove.
4651 (VARRAY_CONST_EQUIV_INIT, VARRAY_CONST_EQUIV,
4652 VARRAY_PUSH_CONST_EQUIV, VARRAY_TOP_CONST_EQUIV): Remove.
4653
4654 * regstack.c (record_label_references): Remove unused function.
4655
4656 * rtl.def (VALUE): Update comment.
4657 (LABEL_REF): Remove unused operand 2.
4658 * rtl.h (struct rtx_def): Update for removed accessor macros.
4659 (XCADVFLAGS, INSN_DEAD_CODE_P, LINE_NUMBER, CONTAINING_INSN,
4660 REG_LOOP_TEST_P): Remove.
4661 (ADDR_DIFF_VEC_FLAGS, CSELIB_VAL_PTR, LABEL_NEXTREF): Add comments.
4662 * web.c (entry_register): Don't copy REG_LOOP_TEST_P.
4663 * doc/rtl.texi (INSN_DEAD_CODE_P, REG_LOOP_TEST_P): Remove.
4664
4665 2004-11-13 James A. Morrison <phython@gcc.gnu.org>
4666 Eric Botcazou <ebotcazou@libertysurf.fr>
4667
4668 PR target/18230
4669 * config/sparc/sparc.c (sparc_rtx_costs): Handle the NAND vector
4670 patterns.
4671 * config/sparc/sparc.md (V64I): New macro for 64-bit modes.
4672 (V32I): New macro for 32-bit modes.
4673 (anddi3, anddi_sp32, anddi_sp64, and_not_di_sp32, and_not_di_sp64,
4674 iordi3, iordi3_sp32, iordi_sp64, or_not_di_sp32, or_not_di_sp64,
4675 xordi3, xordi3_sp32, xordi3_sp64, {AND, IOR, XOR} DI splitter,
4676 xor_not_di_sp32, xordi_not_di_sp64, one_cmpldi2, one_cmpldi_sp32,
4677 one_cmpldi_sp64): Use V64I instead of DI.
4678 (andsi3, andsi_sp32, andsi_sp64, and_not_si, iorsi3, or_not_si,
4679 xorsi3, xor_not_si, one_cmplsi2): Use V32I instead of SI.
4680 (addv2si3, addv4hi3, addv2hi3): Remove % modifier.
4681 (nandv64i_vis, nandv32i_vis): New patterns.
4682
4683 2004-11-12 Mike Stump <mrs@apple.com>
4684
4685 * Makefile.in: Add html support.
4686 * java/Make-lang.in: Likewise.
4687 * fortran/Make-lang.in: Likewise.
4688 * treelang/Make-lang.in: Likewise.
4689 * doc/install.texi: Likewise.
4690 * doc/makefile.texi: Likewise.
4691 * doc/sourcebuild.texi: Likewise.
4692
4693 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
4694
4695 * tree-ssa-loop-manip.c: Fix a comment typo.
4696
4697 2004-11-12 Mike Stump <mrs@apple.com>
4698
4699 * doc/cppinternals.texi (Index): Fix html generation with makeinfo by
4700 renaming this node to Concept Index.
4701 * doc/gccint.texi (Index): Likewise. Also minor formatting tweaks
4702 to more closely match gcc.texi.
4703
4704 2004-11-12 Jeff Law <law@redhat.com>
4705
4706 * tree-cfg.c (hashtab.h): Include.
4707 (struct edge_to_case_leader_elt): New structure.
4708 (edge_to_case_leader): New.
4709 (edge_to_case_leader_hash): New hashtable hasing function.
4710 (edge_to_case_leader_eq): New hashtable equality function.
4711 (record_switch_edge): New function.
4712 (get_case_leader_for_edge, get_case_leader_for_edge): New functions.
4713 (make_switch_expr_edges): Build the edge-to-case-leader
4714 hash table. Tear down the hash table when we're done.
4715 (cleanup_dead_labels): Use CASE_LEADER_OR_LABEL instead of
4716 CASE_LABEL.
4717 (tree_node_can_be_shared): Allow sharing of CASE_LABEL_EXPR nodes.
4718 (tree_redirect_edge_and_branch, case SWITCH_EXPR): Update
4719 to use new concept of case leaders to reduce overhead of
4720 redirecting outgoing edges from switch statements.
4721 * tree.c (get_case_label): New function.
4722 * tree.h (CASE_LABEL): Define in terms of get_case_label.
4723 (CASE_LEADER_OR_LABEL): Define.
4724
4725 2004-11-12 Ziemowit Laski <zlaski@apple.com>
4726
4727 * varasm.c (output_addressed_constants): For CONST_DECLs,
4728 output the initializer if present.
4729
4730 2004-11-12 Ziemowit Laski <zlaski@apple.com>
4731
4732 * config/rs6000/darwin.h: Fix confusing typo in comment.
4733
4734 2004-11-12 Devang Patel <dpatel@apple.com>
4735
4736 * optabs.c (vector_compare_rtx): Use COMPARISON_CLASS_P.
4737
4738 2004-11-12 Devang Patel <dpatel@apple.com>
4739
4740 * tree-if-conv.c (clean_predicate_lists): Use loop header
4741 and latch directly.
4742
4743 2004-11-12 Richard Henderson <rth@redhat.com>
4744
4745 PR 17778
4746 * config/i386/i386.h (TARGET_96_ROUND_53_LONG_DOUBLE): New.
4747 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
4748 (TARGET_96_ROUND_53_LONG_DOUBLE): New.
4749 * config/i386/i386-modes.def (XF): Use it.
4750
4751 2004-11-11 Geoffrey Keating <geoffk@apple.com>
4752
4753 * Makefile.in (macro_list): Use move-if-change to avoid spurious
4754 rebuilds.
4755
4756 2004-11-12 Mark Mitchell <mark@codesourcery.com>
4757
4758 PR c++/18416
4759 * passes.c (rest_of_decl_compilation): Do not look at DECL_RTL
4760 when deciding whether to pass a variable to
4761 cgraph_varpool_finalize_decl or assemble_variable.
4762 * toplev.c (check_global_declarations): Do not clear DECL_RTL.
4763
4764 2004-11-12 Kazu Hirata <kazu@cs.umass.edu>
4765
4766 * tree-vectorizer.c: Fix a comment typo.
4767
4768 2004-11-12 Bernd Schmidt <bernd.schmidt@analog.com>
4769
4770 * genconfig.c (walk_insn_part): Look at match_dups inside a label_ref.
4771
4772 2004-11-12 Diego Novillo <dnovillo@redhat.com>
4773
4774 * tree-scalar-evolution.c (analyzable_condition): Remove
4775 superfluous TREE_THIS_VOLATILE checks on SSA_NAMEs.
4776
4777 2004-11-12 Ralf Corsepius <ralf.corsepius@rtems.org>
4778
4779 * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
4780 Remove m505/roe multilib variant.
4781
4782 2004-11-12 Eric Botcazou <ebotcazou@libertysurf.fr>
4783
4784 * expr.c (emit_group_load) <CONCAT>: Use extract_bit_field
4785 to load from the stack.
4786
4787 2004-11-12 Richard Henderson <rth@redhat.com>
4788
4789 * toplev.c (floor_log2): Rename from floor_log2_wide, use CLZ_HWI.
4790 (exact_log2): Rename from exact_log2_wide, use CTZ_HWI.
4791 * toplev.h (FL2T__): Remove.
4792 (CLZ_HWI): Rename from FL2T_CLZ__.
4793 (CTZ_HWI): New.
4794 (floor_log2): Simplify.
4795 (exact_log2): New.
4796
4797 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
4798
4799 * tree-data-ref.c (analyze_subscript_affine_affine): Correctly
4800 compute the first overlapping iterations.
4801
4802 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
4803
4804 PR middle-end/18005
4805 * tree-data-ref.c (estimate_niter_from_size_of_data): Ensure
4806 that arguments of EXACT_DIV_EXPR are INTEGER_CST.
4807
4808 2004-11-12 Steven Bosscher <stevenb@suse.de>
4809
4810 PR tree-optimization/18419
4811 * tree-ssa.c (walk_use_def_chains_1): Make the visited map a
4812 pointer set instead of a bitmap.
4813 (walk_use_def_chains): Create, pass and clean up that pointer_set.
4814
4815 * tree-ssa-alias.c (struct alias_info): Make the ssa_names_visited
4816 field an sbitmap.
4817 (init_alias_info): Allocate and zero it here.
4818 (delete_alias_info): Delete it here.
4819 (collect_points_to_info_for): Use it.
4820
4821 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
4822
4823 * alias.c (record_alias_subset, addr_side_effect_eval):
4824 Make them static.
4825 * alias.h: Remove the prototype for record_alias_subset.
4826 * expr.h: Remove the commented-out prototype for
4827 record_alias_subset.
4828 * rtl.h: Remove the prototype for addr_side_effect_eval.
4829
4830 * cfglayout.c (choose_inner_scope): Make it static.
4831 * rtl.h: Remove the corresponding prototype.
4832
4833 * cfgloopmanip.c (update_single_exits_after_duplication,
4834 unloop): Make them static.
4835 * cfgloop.h: Remove the corresponding prototypes.
4836
4837 * c-typeck.c (c_size_in_bytes, record_maybe_used_decl):
4838 Make them static.
4839 * c-tree.h: Remove the corresponding prototypes.
4840
4841 * explow.c (round_push): Make it static.
4842 * expr.h: Remove the corresponding prototype.
4843
4844 * varasm.c (get_named_section_flags, decl_tls_model): Make
4845 them static.
4846 * output.h: Remove the prototype for get_named_section_flags.
4847 * tree.h: Remove the prototype for decl_tls_model.
4848
4849 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
4850
4851 * function.c (expand_function_end): Remove an "if" statement
4852 that always triggers.
4853 * stmt.c (expand_null_return_1): Likewise.
4854
4855 2004-11-11 James E. Wilson <wilson@specifixinc.com>
4856
4857 * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle XCmode.
4858 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, SECONDARY_MEMORY_NEEDED,
4859 CLASS_MAX_NREGS): Likewise.
4860
4861 2004-11-11 Zdenek Dvorak <dvorakz@suse.cz>
4862
4863 PR tree-optimization/17742
4864 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Handle
4865 MINUS_EXPR correctly.
4866
4867 2004-11-11 Sebastian Pop <pop@cri.ensmp.fr>
4868
4869 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
4870 Give up as soon as the evolution is known not computable.
4871
4872 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
4873
4874 PR target/16457
4875 * config/rs6000/rs6000.c (mask64_2_operand): Stub to call
4876 mask64_1or2_operand.
4877 (mask64_1or2_operand): Broken out of mask64_2_operand, add flag
4878 to spot rlwinm opportunities.
4879 (and64_2_operand): Use mask_1or2_operand.
4880 * config/rs6000/rs6000.md (anddi3): Use rlwinm when possible.
4881
4882 2004-11-11 Dorit Naishlos <dorit@il.ibm.com>
4883
4884 * tree-vectorizer.c (update_phi_nodes_for_guard): Call reverse_phis.
4885 (vect_update_ivs_after_vectorizer): Update function documentation.
4886 Avoid quadratic behavior and direct write to PHI_ARG_DEF.
4887
4888 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
4889
4890 * config/arm/arm.c: Fix a comment typo.
4891
4892 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
4893
4894 * bitmap.h (nBITMAP_WORD_BITS): Remove.
4895 (BITMAP_WORD_BITS): Force unsigned by use of 1u.
4896 (BITMAP_ELEMENT_WORDS, BITMAP_ELEMENT_ALL_BITS): Remove
4897 unnecessary casts.
4898 (bitmap_first_set_bit): Return unsigned, use ctzl.
4899 (bitmap_last_set_bit): Remove.
4900 * bitmap.c (bitmap_element_zerop, bitmap_copy): Make iterator
4901 unsigned.
4902 (bitmap_first_set_bit): Return unsigned, require non-empty bitmap,
4903 remove special case code for two word elements.
4904 (bitmap_last_set_bit): Remove.
4905 * ra-build.c (livethrough_conflicts_bb): Replace unnecessary use of
4906 bitmap_first_set_bit with bitmap_empty_p.
4907 * tree-outof-ssa.c (analyze_edges_for_bb): Likewise.
4908 * tree-ssa-pre.c (bitmap_print_value): Use simple flag rather than
4909 bitmap_last_bit_set.
4910
4911 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
4912
4913 PR target/16796
4914 * config/rs6000/rs6000.md: Add DF & SF reg move peepholes.
4915
4916 PR target/16458
4917 * config/rs6000/rs6000.c (rs6000_generate_compare): Generate an
4918 unsigned equality compare when we know the operands are unsigned.
4919
4920 2004-11-10 Peter S. Mazinger <ps.m@gmx.net>
4921
4922 * config/mips/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Define
4923 __PIC__ and __pic__ only if TARGET_ABICALLS.
4924 (SUBTARGET_CPP_SPECS): Don't define or undefine __PIC__ and __pic__.
4925 (SUBTARGET_ASM_SPECS): Don't pass -non_shared to assembler; pass
4926 -KPIC only if not -mno-abicalls.
4927
4928 * config/alpha/linux.h, config/arm/linux-elf.h, config/pa/pa-linux.h
4929 * config/sparc/linux.h, config/sparc/linux64.h
4930 (TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ if flag_pic.
4931
4932 * config/arm/linux-gas.h (CPP_SPEC): Don't define __PIC__ or __pic__.
4933 * config/pa/pa/linux.h (CPP_SPEC): Likewise.
4934 * config/sparc/linux.h (CPP_SUBTARGET_SPEC): Likewise.
4935 * config/sparc/linux64.h (CPP_SUBTARGET_SPEC): Likewise.
4936
4937 2004-11-11 Paul Brook <paul@codesourcery.com>
4938
4939 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Save PIC
4940 register if current_function_uses_pic_offset_table is set.
4941
4942 2004-11-10 David Edelsohn <edelsohn@gnu.org>
4943
4944 * config/rs6000/rs6000.md (define_attr "type"): Add two and three.
4945 Change multi-instruction sequences to new attribute.
4946 * config/rs6000/{40x.md,440.md,603.md,6xx.md,
4947 7450.md,7xx.md,8540.md,mpc.md,power4.md,power5.md,
4948 rios1.md,rios2.md,rs64.md}: Add descriptions for two and three.
4949
4950 2004-11-10 Daniel Berlin <dberlin@dberlin.org>
4951
4952 * tree-data-ref.c (build_classic_dist_vector): If either loop
4953 is outside of the nest we asked about, the dependence can't
4954 matter.
4955 (build_classic_dir_vector): Ditto.
4956
4957 2004-11-10 Zdenek Dvorak <dvorakz@suse.cz>
4958
4959 * tree-ssa-loop-ivopts.c (get_address_cost): Add address elements in
4960 right order.
4961 (force_var_cost): Determine cost of addition and multiplication more
4962 precisely.
4963 (get_computation_cost_at): Add cost for computing address elements to
4964 the final cost.
4965
4966 * fold-const.c (fold): Attempt to use ptr_difference_const whenever
4967 one of the arguments of MINUS_EXPR is an address.
4968 (split_address_to_core_and_offset): New function.
4969 (ptr_difference_const): Handle case when one of the operands is a
4970 pointer.
4971 * tree-ssa-loop-ivopts.c (determine_base_object): Fold &*addr.
4972 (ptr_difference_cost): Pass addresses instead of objects to
4973 ptr_difference_const.
4974
4975 2004-11-10 Nathan Sidwell <nathan@codesourcery.com>
4976
4977 * tree.c (tree_check_failed): Emit general error if the list of
4978 node types is empty.
4979
4980 2004-11-10 Eric Botcazou <ebotcazou@libertysurf.fr>
4981
4982 * config/sparc/sparc.c (function_arg_union_value): New 'slotno'
4983 argument. When the union is passed in the 6th slot, build a
4984 PARALLEL with only one element.
4985 (function_arg): Adjust call to function_arg_union_value.
4986 (function_value): Likewise.
4987
4988 2004-11-10 Fariborz Jahanian <fjahanian@apple.com>
4989
4990 PR tree-optimization/17892
4991 * tree-ssa-dom.c (unsafe_associative_fp_binop): Add test for
4992 MINUS_EXPR operator.
4993
4994 2004-11-10 James A. Morrison <phython@gcc.gnu.org>
4995
4996 PR target/18230
4997 config/sparc/sparc.md (addsi3, subsi3): Set "fptype" attribute.
4998 (addv2si, addv4hi, addv2hi, subv2si, subv4hi, subv2hi): New patterns.
4999
5000 2004-11-10 Steven Bosscher <stevenb@suse.de>
5001
5002 * basic-block.h (XMALLOC_REG_SET, XFREE_REG_SET): New.
5003 (struct basic_block_def): Remove local_set and cond_local_set
5004 fields. Update comment for global_live_at_start.
5005 * flow.c (calculate_global_regs_live): Allocate local_sets and
5006 cond_local_sets here as arrays of bitmaps previously stored in
5007 bb->local_set and bb->cond_local_set. Use xmalloc instead of
5008 obstack allocated bitmaps.
5009
5010 2004-11-09 H.J. Lu <hongjiu.lu@intel.com>
5011
5012 PR target/18380
5013 * config/ia64/unwind-ia64.h (_Unwind_FindTableEntry): Mark it
5014 hidden.
5015
5016 * unwind-dw2.c (_Unwind_FindTableEntry): Removed.
5017
5018 2004-11-09 Jeff Law <law@redhat.com>
5019
5020 * cfganal.c (flow_dfs_compute_reverse_execute): Accept new
5021 argument holding last unvisited block. Start search for
5022 unvisited blocks at LAST_UNVISITED rather than EXIT_BLOCK.
5023 (connect_infinite_loops_to_exit): Supply last unvisited block
5024 to flow_dfs_compute_reverse_execute.
5025
5026 2004-10-22 Aldy Hernandez <aldyh@redhat.com>
5027
5028 * config/rs6000/rs6000.md (fix_truncdfsi2): Handle e500
5029 doubles.
5030 (floatunssidf2): Same.
5031 (floatsidf2): Same.
5032 ("extendsfdf2"): New expander.
5033 (*extendsfdf2_fpr): Rename.
5034 (*truncdfsf2_fpr): Same.
5035 (*negdf2_fpr): Same.
5036 (*absdf2_fpr): Same.
5037 (*nabsdf2_fpr): Same.
5038 (*adddf3_fpr): Same.
5039 (*subdf3_fpr): Same.
5040 (*muldf3_fpr): Same.
5041 (*divdf3_fpr): Same.
5042
5043 * config/rs6000/spe.md ("spe_extendsfdf2"): Remove FIXME comment.
5044 ("spe_fix_truncdfsi2"): Same.
5045 (spe_floatunssidf2): Same.
5046 (spe_floatsidf2): Same.
5047
5048 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
5049
5050 PR c/18322
5051 * c-common.c (fname_decl): Don't use line number of decl in
5052 diagnostic.
5053
5054 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
5055
5056 * config/s390/s390-protos.h (s390_pool_operand): Remove.
5057 * config/s390/s390.c (s390_pool_operand): Likewise.
5058 (s390_extra_constraint_str): Handle 'B' constraints.
5059 * config/s390/s390.h (CONSTRAINT_LEN): Handle 'B' constraints.
5060 * config/s390/s390.md: Document 'B' constraints.
5061 ("*cmpdi_cct", "*cmpsi_cct"): Use 'B' constraint instead of
5062 s390_pool_operand to prevent insns with two literal pool
5063 references. Make pattern commutative.
5064 ("*cmpdi_ccu", "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use
5065 'B' constraint instead of s390_pool_operand.
5066
5067 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
5068
5069 * tree-cfg.c (create_bb): Remove unnecessary memset.
5070
5071 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
5072
5073 * tree-ssa-threadupdate.c (copy_phis_to_block): Remove.
5074 (thread_block): Call flush_pending_stmt instead of
5075 copy_phis_to_block.
5076
5077 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
5078
5079 * loop-iv.c (iv_number_of_iterations): Make it static.
5080 * cfgloop.h: Remove the corresponding prototype.
5081
5082 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
5083
5084 * function.c (combine_temp_slots, assign_parms,
5085 expand_pending_sizes): Make them static.
5086 * tree.h: Remove the corresponding prototypes.
5087
5088 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
5089
5090 * emit-rtl.c (copy_most_rtx): Remove.
5091 * rtl.h: Remove the corresponding prototype.
5092
5093 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
5094
5095 * cfgloop.c (flow_loops_update): Remove.
5096 * cfgloop.h: Remove the corresponding prototype.
5097
5098 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
5099
5100 * conflict.c (mark_reg, conflict_graph_compute): Remove.
5101 * basic-block.h: Remove the prototype for
5102 conflict_graph_compute.
5103
5104 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
5105
5106 * tree-if-conv.c (add_to_dst_predicate_list): Change the
5107 second argument to basic_block.
5108 (tree_if_convert_cond_expr): Update call sites.
5109
5110 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
5111
5112 * fold-const.c (pedantic_non_lvalue): Make it static.
5113 * tree.h: Remove the corresponding prototype.
5114
5115 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
5116
5117 * optabs.c (prepare_operand): Make it static.
5118 * optabs.h: Remove the corresponding prototype.
5119
5120 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
5121
5122 * reload1.c (reloads_conflict, gen_reload): Make them static.
5123 * reload.h: Remove the corresponding prototypes.
5124
5125 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
5126
5127 * reload.c (refers_to_mem_for_reload_p,
5128 refers_to_regno_for_reload_p): Make them static.
5129 * reload.h: Remove the corresponding prototypes.
5130
5131 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
5132 Eric Botcazou <ebotcazou@libertysurf.fr>
5133
5134 PR target/18230
5135 * doc/md.texi (SPARC constraints): Document 'Y' constraint.
5136 * config/sparc/sparc-modes.def: Add vector modes of 4 and 8 bytes.
5137 * config/sparc/sparc.c (sparc_vector_mode_supported_p): New function.
5138 (TARGET_VECTOR_MODE_SUPPORTED_P): Set to sparc_vector_mode_supported_p.
5139 (fp_zero_operand): Accept MODE_VECTOR_INT modes.
5140 (input_operand): Accept CONST_VECTOR with MODE_VECTOR_INT modes.
5141 (sparc_cannot_force_const_mem): Return false for CONST_VECTOR.
5142 (sparc_init_modes): Set sparc_mode_class to SF_MODE or DF_MODE for
5143 MODE_VECTOR_INT modes.
5144 (sparc_extra_constraint_check): Add new constraint 'Y'.
5145 * config/sparc/sparc.h: Define UNITS_PER_SIMD_WORD to 8 for TARGET_VIS.
5146 * config/sparc/sparc.md (V32): New mode macro for 32-bit modes.
5147 (V64): New mode macro for 64-bit modes.
5148 (movsf): Use V32 for mode instead of SF.
5149 (movsf_insn_vis): Use V32 for mode instead of SF. Add 'Y' constraint
5150 alongside 'G' constraint.
5151 (movdf): Use V64 for mode instead of DF.
5152 (movdf_insn_v9only_vis, modf_insn_sp64_vis): Use V64 for mode instead
5153 of DF. Add 'Y' constraint alongside 'G' constraint.
5154 (multi-isn and misaligned mems DFmode splitters): Use V64 for mode
5155 instead of DF.
5156
5157 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
5158
5159 * config/s390/s390.c (s390_select_ccmode): Return CCAPmode for
5160 integer NEG and ABS.
5161 * config/s390/s390.md ("*negdi2_64"): Fix op_type attribute.
5162 ("*negdi2_31"): Reimplement using a splitter.
5163 ("*negdi2_cc", "*negdi2_cconly"): New insns.
5164 ("*negdi2_sign", "*negdi2_sign_cc"): Likewise.
5165 ("*negsi2_cc", "*negsi2_cconly"): Likewise.
5166 ("*negdf2_cc", "*negdf2_cconly"): Likewise.
5167 ("*negsf2_cc", "*negsf2_cconly"): Likewise.
5168 ("*absdi2_cc", "*absdi2_cconly"): New insns.
5169 ("*absdi2_sign", "*absdi2_sign_cc"): Likewise.
5170 ("*abssi2_cc", "*abssi2_cconly"): Likewise.
5171 ("*absdf2_cc", "*absdf2_cconly"): Likewise.
5172 ("*abssf2_cc", "*abssf2_cconly"): Likewise.
5173 ("*negabsdi2_cc", "*negabsdi2_cconly"): New insns.
5174 ("*negabsdi2_sign", "*negabsdi2_sign_cc"): Likewise.
5175 ("*negabssi2_cc", "*negabssi2_cconly"): Likewise.
5176 ("*negabsdf2_cc", "*negabsdf2_cconly"): Likewise.
5177 ("*negabssf2_cc", "*negabssf2_cconly"): Likewise.
5178
5179 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
5180
5181 * config/s390/s390.c (s390_canonicalize_comparison): Reverse condition
5182 when eliminating an UNSPEC_CMPINT.
5183 (s390_secondary_input_reload_class): Fix test for CC register reload.
5184 (s390_secondary_output_reload_class): Likewise.
5185 (s390_expand_cmpmem): Swap operands. Use gen_cmpint.
5186 * config/s390/s390.md ("*cmpint_si", "*cmpint_di"): Remove.
5187 ("cmpint", "*cmpint_cc", "*cmpint_sign", "*cmpint_sign_cc"): New
5188 insn patterns with splitters.
5189
5190 2004-11-09 David Edelsohn <edelsohn@gnu.org>
5191
5192 * config/rs6000/rs6000.c (rs6000_rtx_costs): Add EQ, GTU, and LTU.
5193 * config/rs6000/rs6000.md (sCC): Split GTU and LTU patterns.
5194
5195 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
5196
5197 * tree-phinodes.c (phi_reverse): New.
5198 * tree-cfg.c (tree_make_forwarder_block, tree_duplicate_bb):
5199 Use it.
5200 * tree-flow.h: Add a prototype for phi_reverse.
5201
5202 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
5203
5204 * tree-ssa-loop-ivopts.c: Fix a comment typo.
5205
5206 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
5207
5208 PR pch/14940
5209 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __sparc__
5210 definitions.
5211
5212 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
5213
5214 * builtins.c, c-common.c, c-decl.c, c-format.c: Say "argument"
5215 instead of "arg" in diagnostics.
5216
5217 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
5218
5219 * builtins.c, c-common.c, c-decl.c, c-format.c, c-format.h,
5220 c-parse.in, c-pch.c, c-pragma.c, collect2.c, final.c, gcc.c,
5221 gcov.c, opts.c, pretty-print.h, protoize.c, reg-stack.c, rtl.c,
5222 tlink.c, config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
5223 config/avr/avr.c, config/c4x/c4x.c, config/darwin.c,
5224 config/frv/frv.c, config/h8300/h8300.c, config/i386/i386.c,
5225 config/i386/winnt.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
5226 config/iq2000/iq2000.c, config/m32r/m32r.c,
5227 config/m68hc11/m68hc11.c, config/m68k/m68k.c, config/m68k/m68k.h,
5228 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.c,
5229 config/ns32k/ns32k.c, config/rs6000/host-darwin.c,
5230 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
5231 config/sh/symbian.c, config/stormy16/stormy16.c,
5232 config/v850/v850.c: Avoid "`" as left quote, using "'" or %q, %<
5233 and %> as appropriate. Use %' as apostrophe in diagnostics where
5234 applicable. Use %< and %> in place of '' quotes where applicable.
5235 Use %qs in place of %<%s%>. Consistently quote __builtin function
5236 names.
5237
5238 2004-11-09 Hans-Peter Nilsson <hp@bitrange.com>
5239
5240 * gdbinit.in (pbb, pbm): New macros.
5241
5242 2004-11-08 Jeff Law <law@redhat.com>
5243
5244 * cfg.c (redirect_edge_succ_nodup): Use find_edge rather than
5245 implementing it inline.
5246
5247 * cfganal.c (find_edge): Search pred->succs or succ->preds,
5248 whichever is shorter.
5249
5250 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
5251
5252 * passes.c (rest_of_handle_jump): Remove dead code.
5253
5254 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
5255
5256 * tree-cfg.c (thread_jumps): Speed up by keeping a pointer to
5257 the last used element in the worklist.
5258
5259 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
5260
5261 * tree-inline.c (remap_save_expr): Make it static.
5262 * tree-inline.h: Remove the corresponding prototype.
5263
5264 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
5265
5266 * tree-ssa-loop-niter.c (upper_bound_in_type,
5267 lower_bound_in_type): Make them static.
5268 * tree.h: Remove the corresponding prototypes.
5269
5270 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
5271
5272 * tree-ssa-live.c (tpa_init, pop_best_coalesce): Make them
5273 static.
5274 * tree-ssa-live.h: Remove the corresponding prototypes.
5275
5276 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
5277
5278 * tree-if-conv.c (tree_if_conversion): Make it static.
5279 * tree-flow.h: Remove the corresponding prototype.
5280
5281 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
5282
5283 * tree-ssa-operands.c (build_ssa_operands): Make it static.
5284 * tree-flow.h: Remove the corresponding prototype.
5285
5286 2004-11-08 Andrew Pinski <pinskia@physics.uc.edu>
5287
5288 PR tree-opt/18299
5289 * tree-inline.c (copy_body_r): Change "t = t" to empty
5290 statement instead of "t".
5291
5292 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
5293
5294 * modulo-sched.c (create_partial_schedule,
5295 free_partial_schedule, reset_partial_schedule,
5296 ps_add_node_check_conflicts, rotate_partial_schedule): Make
5297 them static.
5298
5299 2004-11-08 Richard Henderson <rth@redhat.com>
5300
5301 * expmed.c (extract_force_align_mem_bit_field): Correct handling at
5302 the end of a page.
5303
5304 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
5305
5306 * sched-deps.c (add_insn_mem_dependence): Make it static.
5307 * sched-int.h: Remove the corresponding prototypes.
5308
5309 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
5310
5311 * flow.c (allocate_bb_life_data): Make it static.
5312 * basic-block.h: Remove the corresponding prototype.
5313
5314 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
5315
5316 * calls.c (split_complex_values, split_complex_types): Make
5317 them static.
5318 * expr.h: Remove the corresponding prototypes.
5319
5320 2004-11-08 Richard Earnshaw <rearnsha@arm.com>
5321
5322 * arm.c (arm_handle_notshared_attribute): Wrap declaration and use
5323 with #if TARGET_DLLIMPORT_DECL_ATTRIBUTES.
5324
5325 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
5326
5327 * tree-if-conv.c (tree_if_convert_cond_expr): Remove two "if"
5328 statements that always trigger.
5329
5330 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
5331
5332 * tree-cfg.c, tree-if-conv.c, tree-into-ssa.c,
5333 tree-scalar-evolution.c, tree-ssa-loop-im.c,
5334 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa.c,
5335 tree-vectorizer.c: Replace TREE_CHAIN with PHI_CHAIN where
5336 appropriate.
5337
5338 2004-11-08 Ben Elliston <bje@au.ibm.com>
5339
5340 * cgraph.h (cgraph_calls_p): Remove.
5341 * cgraph.c (cgraph_calls_p): Likewise.
5342
5343 * varray.h (varray_copy): Remove.
5344 * varray.c (varray_copy): Likewise.
5345
5346 2004-11-07 Andrew Pinski <pinskia@physics.uc.edu>
5347
5348 PR target/18269
5349 * config/darwin.c (machopic_indirect_data_reference):
5350 Call gen_macho_high and gen_macho_low instead of
5351 checking the mode and calling gen_macho_high_di directly.
5352 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
5353 * config/rs6000/rs6000.md: Move most of TARGET_MACHO expand/insns
5354 to darwin.md.
5355 (movdf_low, movsf_low, movsf_low_st, movsi_low, macho_correct_pic,
5356 load_macho_picbase, macho_low, macho_high): Removed.
5357 (builtin_setjmp_receiver): Call gen_macho_high and
5358 gen_macho_low instead of checking the mode and calling
5359 gen_macho_high_di directly.
5360 * config/rs6000/darwin.md (load_macho_picbase_di): Use the MD constant.
5361 (movdf_low_si, movsf_low_si, movsf_low_st_si, movsi_low_st):
5362 Moved from rs6000.md.
5363 (macho_high): New expander.
5364 (macho_high_si): Renamed version of macho_high from rs6000.md.
5365 (macho_low): New expander.
5366 (macho_low_si): Renamed version of macho_low from rs6000.md.
5367 (load_macho_picbase): New expander.
5368 (load_macho_picbase_si): Renamed version of load_macho_picbase
5369 from rs6000.md.
5370 (macho_correct_pic): New expander.
5371 (macho_correct_pic_si): Renamed version of macho_correct_pic
5372 from rs6000.md.
5373
5374 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
5375
5376 * c-decl.c (finish_struct): Use complete sentences for diagnostic
5377 for structures or unions with no members or named members.
5378
5379 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
5380
5381 * c-typeck.c (build_unary_op): Replace unreachable diagnostic for
5382 taking address of bit-field by assertion.
5383
5384 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
5385
5386 * config/s390/s390.md (attribute "op_type"): Default to "NN".
5387 (attribute "atype"): Default to "agen".
5388 (attribute "length"): Default to 6.
5389 (define_asm_attibutes): Remove.
5390 ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
5391 "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf",
5392 "*clc", "*mvc", "*nc", "*oc", "*xc", "*xc_zero"):
5393 Do not set type attribute to "cs" where already default.
5394 ("*cmpint_si", "*cmpint_di", "fix_truncdfsi2_ibm", "floatsidf2_ibm",
5395 "*negdi2_31"):
5396 Do not set type attribute to "other" where already default.
5397 ("movti", "*movdi_64", "*movdi_31", "*movdf_31",
5398 "*strlendi", "*strlensi",
5399 "*movmem_long_64", "*movmem_long_31",
5400 "*clrmem_long_64", "*clrmem_long_31",
5401 "*cmpmem_long_64", "*cmpmem_long_31",
5402 "*cmpint_si", "*cmpint_di",
5403 "addti3", "*adddi3_31z", "*adddi3_31",
5404 "subti3", "*subdi3_31z", "*subdi3_31", "*negdi2_31",
5405 "*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg",
5406 "fix_truncdfsi2_ibm", "floatsidf2_ibm", "extendsfdf2_ibm",
5407 "*pool_entry", "pool_align", "pool_section_start",
5408 "pool_section_end", "main_pool", "reload_base_31", "pool"):
5409 Do not set op_type attribute to "NN" where already default.
5410 ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
5411 "*zero_extendqisi2_31", "*zero_extendqihi2_31",
5412 "fix_truncdfsi2_ibm", "floatsidf2_ibm"):
5413 Do not set atype attribute to "agen" where already default.
5414 ("*movmem_short", "*clrmem_short", "*cmpmem_short"): Don't set op_type.
5415
5416 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
5417
5418 * config/mips/t-iris6 (tp-bit.c): Fix target filename.
5419
5420 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
5421
5422 PR target/16830
5423 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define the
5424 R3000 and R4000 macros on IRIX.
5425
5426 2004-11-06 Andreas Schwab <schwab@suse.de>
5427
5428 PR target/16286
5429 * config/rs6000/altivec.h: Replace bool by __bool and pixel by
5430 __pixel.
5431
5432 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
5433
5434 * tree-ssa-copyrename.c (rename_ssa_copies): Make it static.
5435
5436 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
5437
5438 * config/s390/2064.md ("z_int", "z_agen"): Ensure the condition
5439 matches no insns already matched by other reservations.
5440 * config/s390/2084.md ("x_int", "x_agen"): Ensure the condition
5441 matches no insns already matched by other reservations.
5442 ("x_ss"): Remove, replace by ...
5443 ("x_cs"): ... this new reservation. Check type instead of op_type.
5444 Update bypasses to use x_cs instead of x_ss.
5445 ("x_nn"): Remove, replace by ...
5446 ("x_other"): ... this new reservation. Check type instead of op_type.
5447 Add x_other and x_branch to bypasses.
5448 ("x_vs"): New reservation.
5449 * config/s390/s390.md (attribute "type"): Default according to op_type.
5450 ("*execute"): Set type to "cs".
5451
5452 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
5453
5454 * fold-const.c (non_lvalue): Don't construct NON_LVALUE_EXPR
5455 if we are in GIMPLE.
5456
5457 2004-11-06 Hans-Peter Nilsson <hp@bitrange.com>
5458
5459 PR rtl-optimization/17933
5460 * rtlanal.c (dead_or_set_regno_p): Break out common code to...
5461 (covers_regno_p): New function. Handle SETs of PARALLEL,
5462 and defer the rest to...
5463 (covers_regno_no_parallel_p): New function.
5464
5465 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
5466
5467 * config/sparc/sparc.c (function_arg_record_value_1): Skip
5468 fields with zero length.
5469 (function_arg_record_value_2): Likewise.
5470 (function_arg_record_value_3): Use smallest_mode_for_size
5471 instead of mode_for_size.
5472 (function_arg_union_value): Return naked register for unions
5473 with zero length.
5474
5475 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
5476
5477 * config/sparc/sparc.c (scan_record_type): Handle vector types.
5478 (function_arg_slotno): Handle vector types specially.
5479 (function_arg_record_value_1): Split fields with vector type and
5480 BLKmode into their subparts.
5481 (function_arg_record_value_2): Likewise. Be prepared to handle
5482 more than 2 registers per field.
5483 (function_arg_union_value): Increment regno inside the loop.
5484 (function_arg_vector_value): New function.
5485 (function_arg): Use it to split fields with vector type and
5486 BLKmode into their subparts and build a PARALLEL. Treat
5487 other vector types like floats.
5488 (function_value): Likewise.
5489 (sparc_pass_by_reference): Handle vector types.
5490 (sparc_return_in_memory): Likewise.
5491
5492 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
5493
5494 * tree-cfg.c (find_taken_edge_cond_expr): Remove an "if"
5495 statement that never triggers.
5496
5497 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
5498
5499 * config/s390/2064.md ("z_o2", "z_o3"): Remove.
5500 * config/s390/2084.md ("x_o2", "x_o3"): Remove.
5501 ("x_fdivd"): Use also for fsqrtd type.
5502 ("x_fdivs"): Use also for fsqrts type.
5503 * config/s390/s390.md (attribute "type"): Remove "o2" and "o3" types.
5504 ("fix_truncdfsi2_ieee"): Set type to "ftoi".
5505 ("fix_truncdfsi2_ibm"): Set type to "other".
5506 ("floatdidf2", "floatdisf2"): Do not clobber CC.
5507 ("floatsidf2", "floatsidf2_ieee"): Likewise.
5508 ("floatsisf2", "floatsisf2_ieee"): Likewise.
5509 ("truncdfsf2", "truncdfsf2_ieee"): Only allow "register_operand".
5510 ("truncdfsf2_ibm"): Only allow "nonimmediate_operand". Use LER
5511 instead of LRER.
5512 ("extendsfdf2_ibm"): Do not set atype. Set type to "floads".
5513 ("sqrtdf2"): Set type to "fsqrtd".
5514 ("sqrtsf2"): Set type to "fsqrts".
5515
5516 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
5517
5518 * tree-phinodes.c (remove_all_phi_nodes_for): Speed up using a
5519 pointer to the last PHI node in the new PHI chain.
5520
5521 2004-11-06 Kaz Kojima <kkojima@gcc.gnu.org>
5522
5523 * config/sh/sh.c (prepare_move_operands): Emit a use of r12
5524 for non-PIC TLS_MODEL_INITIAL_EXEC case.
5525
5526 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
5527
5528 * expmed.c: Fix a comment typo.
5529
5530 2004-11-06 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
5531
5532 PR target/18106
5533 * config/i386/cygming.h
5534 [HAVE_GAS_WEAK] (ASM_WEAKEN_LABEL): Macro defined.
5535
5536 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
5537
5538 * config/sh/sh4a.md: Fix copyright.
5539
5540 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
5541
5542 * config/rs6000/darwin.md, config/sh/sh4a.md: Replace GNU CC
5543 with GCC.
5544
5545 2004-11-05 David Edelsohn <edelsohn@gnu.org>
5546
5547 * config/rs6000/rs6000.md (scc patterns): Replace subfc with subf
5548 when carry not used. Suggested by Torbjorn Granlund.
5549
5550 * config/rs6000/rs6000.c (rs6000_emit_move): Don't force_reg
5551 operand[1] unnecessarily. Suggested by Eric Christopher.
5552 (rs6000_adjust_cost): Increase latency of store to wider load.
5553 (rs6000_rtx_costs): mulli only allows 16-bit constants.
5554
5555 2004-11-05 Stan Shebs <shebs@apple.com>
5556
5557 * config/rs6000/rs6000.c (machopic_output_stub): Output
5558 ldu instead of lwzu for 64-bit stubs.
5559
5560 2004-11-05 Richard Henderson <rth@redhat.com>
5561
5562 * config/alpha/alpha.c (alpha_expand_unaligned_load): Special case
5563 size 2 with BWX.
5564 (alpha_expand_unaligned_store): Likewise.
5565
5566 2004-11-05 Richard Henderson <rth@redhat.com>
5567
5568 * expmed.c (extract_force_align_mem_bit_field): New.
5569 (extract_split_bit_field): Call it.
5570
5571 2004-11-05 Richard Henderson <rth@redhat.com>
5572
5573 * ia64.md (UNSPEC_SHRP): New.
5574 (dshift_count_operand): New.
5575 (ashrti3, ashrti3_internal, lshrti3, lshrti3_internal, shrp): New.
5576 * ia64.c (rtx_needs_barrier): Handle UNSPEC_SHRP.
5577
5578 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
5579
5580 * c-typeck.c (output_init_element): Return early if value is
5581 error_mark_node.
5582
5583 2004-11-05 James E Wilson <wilson@specifixinc.com>
5584
5585 * invoke.texi (-fno-guess-branch-probability): Rewrite.
5586
5587 * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC_GR_SPILL): Change
5588 1 to UNSPEC_GR_SPILL.
5589
5590 2004-11-05 Andreas Krebbel <krebbel1@de.ibm.com>
5591
5592 * config/s390/s390.c (s390_fixed_condition_code_regs): New function.
5593 (TARGET_FIXED_CONDITION_CODE_REGS): Macro defined.
5594
5595 2004-11-05 Nathan Sidwell <nathan@codesourcery.com>
5596
5597 * bitmap.h (enum bitmap_bits): Remove.
5598 (bitmap_operation): Remove.
5599 (bitmap_and, bitmap_and_into, bitmap_and_compl,
5600 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
5601 bitmap_xor_into): Prototype.
5602 * bitmap.c (bitmap_elt_insert_after, bitmap_elt_clear_from): New.
5603 (bitmap_operation): Remove.
5604 (bitmap_and, bitmap_and_into, bitmap_and_compl,
5605 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
5606 bitmap_xor_into): New.
5607 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Adjust.
5608
5609 PR tree-optimization/18307
5610 * tree-ssa-alias.c (merge_pointed_to_info): Protected against DEST
5611 and ORIG being the same node.
5612
5613 2004-11-04 Geoffrey Keating <geoffk@apple.com>
5614
5615 * Makefile.in (distclean): Don't delete nonexistent fixinc/ directory.
5616 (install-mkheaders): Install the version built for the
5617 host, not for the build machine.
5618 * configure.ac: Always run fixincludes.
5619 (all_outputs): Remove mkheaders.
5620 * configure: Regenerate.
5621 * fixinc.in: Move to fixincludes/.
5622 * mkfixinc.sh: Likewise.
5623 * mkheaders.in: Likewise.
5624 * README-fixinc: Likewise.
5625
5626 2004-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
5627
5628 PR target/18263
5629 * config/arc/lib1funcs.asm (___umulsidi3): Change use of cmp to the
5630 equivalent on the A4.
5631
5632 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
5633
5634 * doc/c-tree.texi, doc/cfg.texi, doc/contrib.texi, doc/cpp.texi,
5635 doc/cppopts.texi, doc/extend.texi, doc/fragments.texi,
5636 doc/frontends.texi, doc/gcov.texi, doc/hostconfig.texi,
5637 doc/implement-c.texi, doc/install.texi, doc/invoke.texi,
5638 doc/libgcc.texi, doc/md.texi, doc/passes.texi,
5639 doc/portability.texi, doc/rtl.texi, doc/sourcebuild.texi,
5640 doc/standards.texi, doc/tm.texi, doc/tree-ssa.texi,
5641 doc/trouble.texi: Correct end-of-sentence markup and markup of
5642 "etc.", "e.g." and "i.e.". Use @code in various places where
5643 appropriate.
5644
5645 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
5646
5647 * doc/c-tree.texi, doc/cfg.texi, doc/extend.texi, doc/gty.texi,
5648 doc/install.texi, doc/invoke.texi, doc/md.texi, doc/passes.texi,
5649 doc/rtl.texi, doc/tm.texi, doc/tree-ssa.texi: Remove trailing
5650 whitespace.
5651
5652 2004-11-04 Mark Mitchell <mark@codesourcery.com>
5653
5654 * config/arm/arm.c (arm_handle_notshared_attribute): New function.
5655 * doc/extend.texi: Document "notshared" attribute.
5656
5657 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5658
5659 * tree-phinodes.c (make_phi_node): Make it static.
5660 * tree.h: Remove the prototypes for make_phi_node.
5661
5662 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5663
5664 * stmt.c (expand_asm, expand_asm_operands): Make them static.
5665 * tree.h: Remove the prototypes for expand_asm and
5666 expand_asm_operands.
5667
5668 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5669
5670 * passes.c (rest_of_compilation): Make it static.
5671 * toplev.h: Remove the prototype for rest_of_compilation.
5672
5673 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5674
5675 * jump.c (cleanup_barriers): Use delete_insn instead of
5676 delete_barrier.
5677 (delete_barrier): Remove.
5678 * rtl.h: Remove the corresponding prototype.
5679
5680 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5681
5682 * expr.c (mostly_zero_p): Make it static.
5683 * tree.h: Remove the prototype for mostly_zeros_p.
5684
5685 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5686
5687 * cfgrtl.c (force_nonfallthru_and_redirect): Make it static.
5688
5689 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5690
5691 * builtins.c (expand_builtin_return_addr,
5692 expand_builtin_longjmp, expand_builtin_trap): Make them static.
5693 * expr.h: Remove the prototypes for expand_builtin_longjmp and
5694 expand_builtin_trap.
5695 * tree.h: Remove the prototype for expand_builtin_return_addr.
5696
5697 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5698
5699 * tree-cfg.c (find_taken_edge): Reject VAL begin NULL.
5700 * tree-ssa-ccp.c (visit_cond_stmt): Don't call find_taken_edge
5701 with VAL being NULL.
5702
5703 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5704
5705 * cfghooks.c (delete_basic_block): Remove code to truncate
5706 edge vectors.
5707
5708 2004-11-04 Andrew Pinski <pinskia@physics.uc.edu>
5709
5710 * flow.c (init_propagate_block_info): Change the type of i to
5711 unsigned.
5712
5713 2004-11-04 Ulrich Weigand <uweigand@de.ibm.com>
5714
5715 PR tree-optimization/18184
5716 * c-typeck.c (comptypes): Do not treat pointers of different
5717 modes or alias-all flags as equivalent.
5718 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Likewise.
5719
5720 2004-11-04 Joseph S. Myers <joseph@codesourcery.com>
5721
5722 * doc/gty.texi, doc/makefile.texi, doc/sourcebuild.texi: Don't
5723 reference specific C parser files in examples.
5724
5725 2004-11-04 Richard Sandiford <rsandifo@redhat.com>
5726
5727 PR target/15342
5728 * regrename.c (scan_rtx): Treat the destinations of SETs and CLOBBERs
5729 as OP_INOUT if the instruction is predicated.
5730
5731 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5732
5733 * bitmap.h: Fix a comment typo. Follow spelling conventions.
5734 * tree-vectorizer.c: Fix a comment typo.
5735
5736 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
5737
5738 * sdbout.c (SDB_GENERATE_FAKE): Remove.
5739 (gen_fake_label): Don't use SDB_GENERATE_FAKE.
5740 * system.h: Poison SDB_GENERATE_FAKE.
5741 * doc/tm.texi (SDB_GENERATE_FAKE): Remove.
5742
5743 2004-11-04 Ulrich Weigand <uweigand@de.ibm.com>
5744
5745 * config/s390/s390.md ("*addsi3_sign"): Use canonical RTL.
5746
5747 2004-11-04 Eric Botcazou <ebotcazou@libertysurf.fr>
5748
5749 PR other/18277
5750 * gthr-posix.h (__gthread_recursive_mutex_init_function): Revert
5751 2004-10-29 patch
5752
5753 2004-11-04 Nathan Sidwell <nathan@codesourcery.com>
5754
5755 * predict.c (propagate_freq): Make bitno unsigned. Move
5756 npredecessors update out of loop.
5757
5758 * bitmap.h (bitmap_iterator): Remove word_bit and bit
5759 fields. Rename others.
5760 (bmp_iter_common_next_1, bmp_iter_single_next_1,
5761 bmp_iter_single_init, bmp_iter_end_p, bmp_iter_single_next,
5762 bmp_iter_and_not_next_1, bmp_iter_and_not_init,
5763 bmp_iter_and_not_next, bmp_iter_and_next_1, bmp_iter_and_init,
5764 bmp_iter_and_next): Remove.
5765 (bmp_iter_set_init, bmp_iter_and_init, bmp_iter_and_compl_init,
5766 bmp_iter_next, bmp_iter_set, bmp_iter_and, bmp_iter_and_compl):
5767 New.
5768 (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_IN_BITMAP,
5769 EXECUTE_IF_AND_COMPL_IN_BITMAP): Adjust.
5770
5771 * bitmap.h (bitmap_a_or_b, bitmap_a_and_b): Remove.
5772 * df.c (dataflow_set_a_op_b): Use bitmap_and, bitmap_ior,
5773 bitmap_and_into, bitmap_ior_into as appropriate.
5774 * except.c (remove_eh_handler): Likewise.
5775 * global.c (modify_bb_reg_pav, make_accurate_live_analysis): Likewise.
5776 * tree-dfa.c (mark_new_vars_to_rename): Likewise.
5777 * tree-ssa-alias.c (merge_pointed_to_info): Likewise.
5778 * tree-ssa-live.h (live_merge_and_clear): Likewise.
5779 * tree-ssa-loop-ivopts.c (find_best_candidate, try_add_cand_for):
5780 Likewise.
5781
5782 * bitmap.c (bitmap_print): Make bitno unsigned.
5783 * bt-load.c (clear_btr_from_live_range,
5784 btr_def_live_range): Likewise.
5785 * caller-save.c (save_call_clobbered_regs): Likewise.
5786 * cfganal.c (compute_dominance_frontiers_1): Likewise.
5787 * cfgcleanup.c (thread_jump): Likewise.
5788 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
5789 * conflict.c (conflict_graph_compute): Likewise.
5790 * ddg.c (add_deps_for_use): Likewise.
5791 * df.c (df_refs_update): Likewise.
5792 * except.c (remove_eh_handler): Likewise.
5793 * flow.c (verify_local_live_at_start, update_life_info,
5794 initialize_uninitialized_subregs, propagate_one_insn,
5795 free_propagate_block_info, propagate_block, find_use_as_address,
5796 reg_set_to_hard_reg_set): Likewise.
5797 * gcse.c (clear_modify_mem_tables): Likewise.
5798 * global.c (global_conflicts, build_insn_chain): Likewise.
5799 * ifcvt.c (dead_or_predicable): Likewise.
5800 * local-alloc.c (update_equiv_regs): Likewise.
5801 * loop.c (load_mems): Likewise.
5802 * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs):
5803 Likewise.
5804 * ra-rewrite.c (reloads_to_loads, rewrite_program2, actual_spill):
5805 Likewise.
5806 * reload1.c (order_regs_for_reload, finish_spills): Likewise.
5807 * sched-deps.c (sched_analyze_insn, free_deps): Likewise.
5808 * sched-rgn.c (propagate_deps
5809 * tree-cfg.c (tree_purge_all_dead_eh_edges): Likewise.
5810 * tree-dfa.c (dump_dfa_stats
5811 tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
5812 insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags):
5813 Likewise.
5814 * tree-outof-ssa.c (coalesce_ssa_name, coalesce_vars,
5815 free_temp_expr_table, find_replaceable_exprs): Likewise.
5816 * tree-sra.c (scan_function, scalarize_parms): Likewise.
5817 * tree-ssa-alias.c (init_alias_info,
5818 compute_points_to_and_addr_escape,
5819 compute_flow_sensitive_aliasing, maybe_create_global_var): Likewise.
5820 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Likewise.
5821 * tree-ssa-live.c (new_tree_live_info, live_worklist,
5822 calculate_live_on_entry, calculate_live_on_exit, compare_pairs,
5823 sort_coalesce_list, build_tree_conflict_graph, dump_live_info
5824 tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
5825 tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
5826 add_call_read_ops): Likewise.
5827 * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Likewise.
5828 * tree-ssa-live.h (num_var_partitions): Return unsigned.
5829
5830 2004-11-03 Dorit Naishlos <dorit@il.ibm.com>
5831
5832 PR tree-optimization/18009
5833 * tree-vectorizer.h (enum dr_alignment_support): New type.
5834 (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): Removed.
5835 (LOOP_UNALIGNED_DR): replaced with LOOP_VINFO_UNALIGNED_DR and holds a
5836 single data_reference (instead of a varray of references).
5837 * tree-vectorizer.c (new_loop_vec_info): Likewise.
5838 (vect_gen_niters_for_prolog_loop): Likewise.
5839 (vect_update_inits_of_drs): Likewise.
5840
5841 (vect_update_inits_of_drs): Setting of DR_MISALIGNMENT moved to
5842 vect_enhance_data_refs_alignment.
5843 (vect_do_peeling_for_alignment): Likewise.
5844 (vect_enhance_data_refs_alignment): Decide if and by how much to peel;
5845 this functionality used to be in vect_analyze_data_refs_alignment.
5846 Also update DR_MISALIGNMENT due to peeling; this functionality used to
5847 be in vect_update_inits_of_drs and vect_do_peeling_for_alignment).
5848 (vect_analyze_data_refs_alignment): Decision on whether and by how much
5849 to peel moved to vect_enhance_data_refs_alignment. Call
5850 vect_supportable_dr_alignment.
5851
5852 (vect_compute_data_ref_alignment): Set STMT_VINFO_VECTYPE.
5853 (vect_compute_data_refs_alignment): Return bool. Consider return value
5854 of vect_compute_data_ref_alignment and return true/false accordingly.
5855 (vect_enhance_data_refs_alignment): Consider return value of
5856 vect_compute_data_refs_alignment and return true/false accordingly.
5857
5858 (vect_supportable_dr_alignment): New function.
5859 (vectorizable_store): Call vect_supportable_dr_alignment.
5860 (vectorizable_load): Call vect_supportable_dr_alignment. Alignment
5861 support checks moved from here to vect_supportable_dr_alignment.
5862
5863 (vect_transform_loop): Avoid 80 columns overflow.
5864
5865 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
5866
5867 * timevar.c (timevar_enable): Change from
5868 static.
5869 (timevar_push): Rename to ...
5870 (timevar_push_1): this and remove the
5871 enabled check.
5872 (timevar_pop): Rename to ...
5873 (timevar_pop_1): this and remove the
5874 enabled check.
5875 * timevar.h (POP_TIMEVAR_AND_RETURN): Use do/while loops.
5876 (timevar_pop): New macro.
5877 (timevar_push): New macro.
5878 (timevar_enable): Declare.
5879
5880 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
5881
5882 * config/darwin.h (REAL_LIBGCC_SPEC): Define to use shared
5883 libgcc for shared libraries.
5884
5885 2004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
5886
5887 * config/s390/s390-protos.h (s390_split_access_reg): Add prototype.
5888 * config/s390/s390.c (s390_split_access_reg): New function.
5889 (regclass_map): Add access registers.
5890 (get_thread_pointer): Use access register instead of UNSPEC_TP.
5891 * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Set to 38.
5892 (ACCESS_REGNO_P, ACCESS_REG_P): New macros.
5893 (TP_REGNUM): New define.
5894 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5895 REG_ALLOC_ORDER): Add access registers.
5896 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
5897 CANNOT_CHANGE_MODE_CLASS): Support access registers.
5898 (enum reg_class): Add ACCESS_REGS.
5899 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
5900 (REG_CLASS_FROM_LETTER): Add 't' constraint.
5901 (REGISTER_NAMES): Add access registers.
5902 * config/s390/s390.md (UNSPEC_TP): Remove.
5903 ("*movdi_64"): Add access register alternatives. Provide splitters
5904 to split DImode access register <-> GPR moves into SImode moves.
5905 ("*movsi_zarch", "*movsi_esa"): Add access register alternatives.
5906 ("movstrictsi"): Likewise.
5907 ("get_tp_64", "get_tp_31"): Reimplement using access registers.
5908 ("set_tp_64", "set_tp_31"): Likewise.
5909 ("*set_tp"): New insn.
5910
5911 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
5912
5913 * tree-phinodes.c (resize_phi_node): Copy only a portion of
5914 the PHI node currently in use.
5915
5916 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
5917
5918 PR tree-opt/18231
5919 * tree.c (staticp) <case FUNCTION_DECL>: Nested functions are static
5920 also.
5921
5922 2004-11-03 Andrew MacLeod <amacleod@redhat.com>
5923
5924 PR tree-optimization/18270
5925 * tree-outof-ssa.c (analyze_edges_for_bb): If a block has incoming
5926 abnormal edges, commit all pending stmts on incoming edges.
5927
5928 2004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
5929
5930 * tree-ssa-loop-ivopts.c (get_address_cost): Offset zero does not
5931 cause extra costs. Generate canonical RTL.
5932
5933 2004-11-02 Daniel Berlin <dberlin@dberlin.org>
5934
5935 * lambda-code.c (lambda_compute_auxillary_space): Update comments.
5936 (lambda_compute_target_space). Ditto.
5937 * lambda.h (lambda_trans_matrix): Ditto.
5938 (lambda_linear_expression): Ditto.
5939 (lambda_body_vector): Ditto.
5940 (lambda_loopnest): Ditto.
5941 * tree-loop-linear.c (gather_interchange_stats): Combine tests,
5942 update comments, and remove pointless addition of 0.
5943 (linear_transform_loops): Update comments.
5944
5945 2004-11-03 Sebastian Pop <pop@cri.ensmp.fr>
5946
5947 * tree.c (tree_fold_gcd): Use FLOOR_MOD_EXPR instead of
5948 CEIL_MOD_EXPR.
5949
5950 2004-11-03 Jeff Law <law@redhat.com>
5951
5952 * predict.c (struct block_info_def): Kill "tovisit" field.
5953 (propagate_freq): Accept new "tovisit" parameter. Change
5954 read/write access methods for "tovisit" to check the "tovisit"
5955 bitmap instead of a bit in block_info_def.
5956 (estimate_loops_at_level): Allocate "tovisit" bitmap. Pass
5957 it to propagate_freq.
5958
5959 * stmt.c (expand_case): Speed up code to detect duplicate case
5960 label targets and count unique case label targets.
5961
5962 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
5963
5964 * cppdefault.c, cppdefault.h, timevar.h: Update copyright.
5965
5966 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
5967
5968 * bitmap.h, dbxout.c, tree-mudflap.c: Fix comment formatting.
5969
5970 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
5971
5972 * tree-cfg.c (find_taken_edge): Abort if we are given a
5973 statement that is neither COND_EXPR nor SWITCH_EXPR.
5974
5975 2004-11-02 Zdenek Dvorak <dvorakz@suse.cz>
5976
5977 * fold-const.c (fold): Reassociate also (x - mult) + mult and
5978 (mult - x) + mult. Cast operands of expression after applying
5979 distributive law to the correct types. Apply distributive law
5980 to a * c - b * c for all non-float types.
5981
5982 2004-11-02 Geoffrey Keating <geoffk@apple.com>
5983
5984 * configure.ac: Don't clear STMP_FIXINC or STMP_FIXPROTO just
5985 because we don't want to run them now; instead, set them to
5986 stmp-install-fixproto or stmp-install-fixinc.
5987 * Makefile.in (stmp-install-fixproto): New.
5988 (stmp-install-fixinc): New.
5989 * configure: Regenerate.
5990
5991 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
5992
5993 * flow.c (init_propagate_block_info): Use bitmap_empty_p on result
5994 of bitmap_xor.
5995
5996 2004-11-02 Ziemowit Laski <zlaski@apple.com>
5997
5998 * c-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
5999 (c_types_compatible_p): Move function definition...
6000 * c-objc-common.c (c_types_compatible_p): ...here.
6001 * c-objc-common.h (LANG_HOOKS_TYPES_COMPATIBLE_P): Moved here from
6002 c-lang.c.
6003
6004 2004-11-02 Steven Bosscher <stevenb@suse.de>
6005
6006 * cfgloop.h (struct loop): Update comment.
6007 * cse.c (cse_main): Remove obsolete comment.
6008
6009 * expr.h (gen_cond_trap): Move prototype under functions provided
6010 by optabs.c.
6011 (canonicalize_condition, get_condition): Move to...
6012 * rtl.h (canonicalize_condition, get_condition): ...here.
6013 (branch_target_load_optimize): Add comment that this function is
6014 in bt-load.c.
6015 * loop.c (canonicalize_condition, get_condition): Move to...
6016 * rtlanal.c (canonicalize_condition, get_condition): ...here.
6017 * sched-deps.c (get_condition): Rename to sched_get_condition.
6018 (add_dependence): Update this caller.
6019
6020 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
6021
6022 PR tree-opt/16808
6023 * tree-ssa.c (replace_immediate_uses): If we call fold_stmt, make sure
6024 that the vops get marked for renaming.
6025
6026 2004-11-02 Andreas Krebbel <krebbel1@de.ibm.com>
6027
6028 * config/s390/s390.md ("movcc"): Set type attribute.
6029
6030 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
6031
6032 * tree-phinodes.c (add_phi_arg): Add an assertion that the
6033 edge already exists.
6034
6035 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
6036
6037 * tree-phinodes.c (remove_phi_arg_num): Do not zero the
6038 element that's being removed.
6039
6040 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
6041
6042 * tree-ssa-threadupdate.c (copy_phis_to_block): Install PHI
6043 arguments using PENDING_STMT.
6044 (thread_block): Call copy_phis_to_block after redirecting an
6045 edge.
6046
6047 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
6048
6049 * bitmap.h (bitmap_and, bitmap_and_into, bitmap_and_compl,
6050 bitmap_and_compl_into, bitmap_ior, bitmap_iot_into,
6051 bitmap_ior_compl, bitmap_xor, bitmap_xor_into): Produce void.
6052 (bitmap_ior_and_compl_into): Produce bool.
6053 (bitmap_union_of_diff): Rename to ...
6054 (bitmap_ior_and_compl): ... here. Produce bool.
6055 * bitmap.c (bitmap_ior_and_compl_into): Return bool. Use
6056 bitmap_operation directly.
6057 (bitmap_union_of_diff): Rename to ...
6058 (bitmap_ior_and_compl): ... here. Return bool, use
6059 bitmap_operation directly.
6060 * df.c (df_rd_transfer_function): Use bitmap_ior_and_compl.
6061 (df_ru_transfer_function, df_lr_transfer_function): Likewise.
6062 * global.c (modify_bb_reg_pav): Likewise.
6063
6064 * bitmap.h (bitmap_equal_p): Return bool.
6065 (bitmap_intersect_p, bitmap_intersect_compl_p): Declare.
6066 * bitmap.c (bitmap_equal_p): Return bool. Compare directly.
6067 (bitmap_intersect_p, bitmap_intersect_compl_p): New.
6068 * flow.c (calculate_global_regs_live): Use bitmap_intersect_p and
6069 bitmap_intersect_compl_p.
6070 * ifcvt (dead_or_predicable): Likewise.
6071
6072 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
6073
6074 PR rtl-optimization/17104
6075 * config/rs6000/rs6000.c (rs6000_emit_move): Don't wrap small
6076 loads in zero_extend.
6077
6078 2004-11-02 Danny Smith <dannysmith@users.sourceforge.net>
6079
6080 PR debug/18242
6081 * toplev.c (debug_type_names): Remove "dwarf-1".
6082
6083 2004-11-02 Ben Elliston <bje@au.ibm.com>
6084
6085 * timevar.h (timevar_get): Remove.
6086 * timevar.c (timevar_get): Remove unused function.
6087
6088 2004-11-02 Joseph S. Myers <joseph@codesourcery.com>
6089
6090 * doc/include/texinfo.tex: Update from Texinfo CVS.
6091
6092 2004-11-02 Ben Elliston <bje@au.ibm.com>
6093
6094 * cppdefault.h (cpp_SYSROOT): Remove.
6095 * cppdefault.c (cpp_SYSROOT): Likewise.
6096
6097 2004-11-01 Andrew MacLeod <amacleod@redhat.com>
6098
6099 PR tree-optimization/16447
6100 * tree-cfg.c (bsi_commit_one_edge_insert): Rename from
6101 bsi_commit_edge_inserts_1, and make funtion external. Return new block.
6102 (bsi_commit_edge_inserts): Use renamed bsi_commit_one_edge_insert.
6103 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Enable listing.
6104 * tree-flow.h (bsi_commit_one_edge_insert): Extern decl.
6105 * tree-outof-ssa.c (rewrite_trees): Don't commit edges here.
6106 (same_stmt_list_p): New. Return TRUE if edge is to be forwarded.
6107 (identical_copies_p): New. Return true is two copies are the same.
6108 (identical_stmt_lists_p): New. Return true if stmt lists are the same.
6109 (analyze_edges_for_bb): New. Determine how best to insert edge stmts
6110 for a basic block.
6111 (perform_edge_inserts): New. Determine what to do with all stmts that
6112 have been inserted on edges.
6113 (remove_ssa_form): Analyze and commit edges from here.
6114
6115 2004-11-01 Andrew Pinski <pinskia@physics.uc.edu>
6116
6117 PR bootstrap/18232
6118 * bitmap.h (bmp_iter_end_p): Take a const pointer instead of a struct.
6119 (EXECUTE_IF_SET_IN_BITMAP): Update call to bmp_iter_end_p.
6120 (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
6121 (EXECUTE_IF_AND_IN_BITMAP): Likewise.
6122
6123 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
6124
6125 PR c/18239
6126 * c-decl.c (get_parm_info): Allow FUNCTION_DECLs to appear amongst
6127 parameter declarations.
6128
6129 2004-11-01 Andreas Krebbel <krebbel1@de.ibm.com>
6130
6131 * config/s390/s390.c (regclass_map): Put reg 33 (cc) to CC_REGS group.
6132 (s390_secondary_input_reload_class)
6133 (s390_secondary_output_reload_class): Use GENERAL_REGS to reload a cc
6134 register.
6135 (s390_expand_cmpmem): Enable cmpmem implementation.
6136 * config/s390/s390.h (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
6137 Added three new classes: CC_REGS, ADDR_CC_REGS, GENERAL_CC_REGS.
6138 (REG_CLASS_FROM_LETTER): New constraint 'c' added.
6139 * config/s390/s390.md ("movcc"): New insn pattern.
6140 * doc/md.texi: Document 'c' constraint for s390.
6141
6142 2004-11-01 Nathan Sidwell <nathan@codesourcery.com>
6143
6144 PR c++/18064
6145 * doc/extend.texi (Deprecated Features): Deprecate G++ covariant
6146 extension.
6147
6148 2004-10-16 Daniel Berlin <dberlin@dberlin.org>
6149
6150 Fix PR tree-optimization/17672
6151 Fix PR tree-optimization/18168
6152
6153 * lambda-code.c (lambda_lattice_compute_base): Fix reversed
6154 assert test.
6155 (gcc_tree_to_linear_expression): Add extra to existing constant.
6156 (depth_of_nest): Factor out function used in various places.
6157 (gcc_loop_to_lambda_loop): Clean up code a little bit. No
6158 functional changes.
6159 (find_induction_var_from_exit_cond): Stop guessing, and just
6160 get the right answer :).
6161 (gcc_loopnest_to_lambda_loopnest): Remove useless pre-allocation.
6162 Print out message about result of attempt to create perfect nest.
6163 (lbv_to_gcc_expression): Add type argument, use it to do math
6164 and induction variable creation.
6165 (lle_to_gcc_expression): Ditto.
6166 (lambda_loopnest_to_gcc_loopnest): Create new iv with same type as
6167 oldiv. Pass type argument to lle_to_gcc_expression and
6168 lbv_to_gcc_expression.
6169 Reset number of iterations after transformation.
6170 (perfect_nestify): Remove useless pre-allocation, and cleanup
6171 a small amount.
6172
6173 * tree-data-ref.c (build_classic_dist_vector): Return false for
6174 dependences completely outside of the loop nest we asked about.
6175 (build_classic_dir_vector): Ditto.
6176 (compute_data_dependences_for_loop): Only add dependence relations
6177 inside the loop we asked about.
6178
6179 * tree-loop-linear.c (linear_transform_loops): Use DDR_SIZE_VECT.
6180 Compute immediate uses.
6181
6182 * tree-optimize.c: Move linear_transform_loops to before ivcanon.
6183
6184 2004-11-01 Kazu Hirata <kazu@cs.umass.edu>
6185
6186 * tree-cfg.c (thread_jumps): Fix a comment typo.
6187
6188 2004-11-01 Kazu Hirata <kazu@cs.umass.edu>
6189
6190 * tree-cfg.c (thread_jumps): Fix a comment typo.
6191
6192 2004-10-31 Nicolas Pitre <nico@cam.org>
6193
6194 * config/arm/ieee754-sf.S (floatdisf): Fix regression with
6195 values smaller than 2^32.
6196
6197 2004-10-31 Jeff Law <law@redhat.com>
6198
6199 * cfgloop.h (struct loop): Remove unused "nodes" field.
6200 * timevar.def (TV_TREE_LOOP_BOUNDS): New.
6201 * tree-data-ref.c (find_data_references_in_loop): Use get_loop_body
6202 instead of calling flow_bb_inside_loop_p for every basic block
6203 in the function.
6204 * tree-ssa-loop.c (pass_record_bounds): Use TV_TREE_LOOP_BOUNDS.
6205
6206 2004-10-31 Graham Stott <graham.stott@btinternet.com>
6207
6208 * config/pa/pa.md: (prefetch_64, prefetch_32): Fix typo. Use
6209 INT_5_BITS instead of VAL_5_BITS_P.
6210
6211 2004-10-31 Roger Sayle <roger@eyesopen.com>
6212
6213 PR middle-end/14521
6214 * tree-inline.c (inline_forbidden_p_1): Use %qF instead of '%F'
6215 for consistent quoting in diagnostic messages.
6216 (expand_call_inline): Likewise.
6217 * tree-optimize.c (tree_rest_of_compilation): Likewise.
6218 * tree-ssa.c (warn_uninitialized_var): Likewise.
6219 (warn_uninitialized_phi): Likewise.
6220
6221 2004-10-31 Richard Sandiford <rsandifo@redhat.com>
6222
6223 * config/mips/mips.c (mips_cannot_change_mode_class): Use a stricter
6224 mode check.
6225
6226 2004-10-31 Kazu Hirata <kazu@cs.umass.edu>
6227
6228 * c-common.c: Fix a comment typo.
6229
6230 2004-10-31 Jason Merrill <jason@redhat.com>
6231
6232 PR middle-end/17526
6233 * tree-gimple.c (is_gimple_mem_rhs): Also require a val for
6234 aggregate types that are not BLKmode.
6235
6236 2004-10-30 Ziemowit Laski <zlaski@apple.com>
6237
6238 * c-common.h (objc_lookup_ivar): Add second parameter to
6239 prototype.
6240 * c-typeck.c (build_external_ref): After looking up symbol,
6241 pass it to objc_lookup_ivar() to decide whether it or the
6242 ivar should be used, rather than deciding the issue locally.
6243 * stub-objc.c (objc_lookup_ivar): Add an OTHER parameter,
6244 which is simply returned in the non-ObjC case.
6245
6246 2004-10-30 Danny Smith <dannysmith@users.sourceforge.net>
6247
6248 * sdbout.c (sdbout_symbol): Do not output type .def statements
6249 for builtin types.
6250
6251 2004-10-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
6252
6253 * c-common.c (catenate_strings): New.
6254 (c_parse_error): Use it. Don't over-escape.
6255
6256 2004-10-30 Kaz Kojima <kkojima@gcc.gnu.org>
6257
6258 * config/sh/sh.c (calc_live_regs): Declare reg as unsigned and
6259 modify the for loop expressions for it. Remove unnecessary casts.
6260 (sh_expand_prologue): Declare reg as unsigned.
6261 (sh_gimplify_va_arg_expr): Initinalize lab_over.
6262 (sh_handle_sp_switch_attribute): Add const qualifier appropriately.
6263
6264 2004-10-30 Geoffrey Keating <geoffk@apple.com>
6265
6266 * doc/invoke.texi (Darwin Options): Improve description of
6267 how the subtype is chosen.
6268
6269 2004-10-30 Roger Sayle <roger@eyesopen.com>
6270
6271 PR middle-end/18096
6272 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Check that
6273 the stack adjustment, "size", is valid for Pmode. If the stack
6274 frame is too large, generate a trap insn and issue a warning.
6275
6276 2004-10-30 Kazu Hirata <kazu@cs.umass.edu>
6277
6278 * tree-ssa-dom.c: Fix comment typos.
6279
6280 2004-10-30 Kaz Kojima <kkojima@gcc.gnu.org>
6281
6282 * config/sh/sh.c (prepare_move_operands): Use operands[0]
6283 for the output rtl if no_new_pseudos is set. Remove redundant
6284 line.
6285
6286 2004-10-30 Joseph S. Myers <joseph@codesourcery.com>
6287
6288 PR c/16666
6289 * c-decl.c (start_function): Don't check for DECL_BUILT_IN when
6290 determining whether to copy parameter types from a previous
6291 prototype declaration.
6292
6293 2004-10-29 Roger Sayle <roger@eyesopen.com>
6294
6295 PR rtl-optimization/17581
6296 * cselib.c (cselib_process_insn): The last instruction of a libcall
6297 block, with the REG_RETVAL note, should be considered in the libcall.
6298 * gcse.c (do_local_cprop): Allow constants to be propagated outside
6299 of libcall blocks.
6300 (adjust_libcall_notes): Use simplify_replace_rtx instead of
6301 replace_rtx to avoid creating invalid RTL in REG_RETVAL notes.
6302
6303 2004-10-30 Kazu Hirata <kazu@cs.umass.edu>
6304
6305 * tree-phinodes.c (create_phi_node): Don't zero PHI_REWRITTEN.
6306
6307 2004-10-29 Jeff Law <law@redhat.com>
6308
6309 * tree-ssa-dom.c (struct edge_info): New structure holding
6310 edge equivalences and edge redirection information.
6311 (get_eq_expr_value, record_dominating_conditions): Kill.
6312 (propagate_to_outgoing_edges): Renamed from cprop_into_phis.
6313 Call record_edge_info.
6314 (allocate_edge_info, free_edge_info): New.
6315 (tree_ssa_dominator_optimize): Use propagate_to_outgoing_edges
6316 rather than cprop_into_phis. Free all edge infos before threading
6317 jumps.
6318 (thread_across_edge): Allocate new edge info structures as needed
6319 and store the redirection target into the edge info structure
6320 instead of the edge's AUX field.
6321 (dom_opt_initialize_block): Mark unused argument with ATTRIBUTE_UNUSED.
6322 (record_equivalence_from_incoming_edge): Lose unnecessary argument.
6323 Revamp code which finds and records equivalences associated with
6324 edges to use saved data in the edge_info structure.
6325 (record_equivalencs_from_phis): Similarly.
6326 (dom_opt_finalize_block): Revamp code which finds and records
6327 equivalences associated with edges to use saved data in the
6328 edge_info structure.
6329 (build_and_record_new_cond): New function.
6330 (record_conditions): Use build_and_record_new_cond to record
6331 dominating conditions.
6332 (record_edge_info): New function.
6333 (record_range): Tighten test for conditions which create
6334 useful range records.
6335
6336 2004-10-29 Geoffrey Keating <geoffk@apple.com>
6337
6338 * config/i386/darwin.h (ASM_SPEC): Simplify.
6339 (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
6340 * config/rs6000/darwin.h (DARWIN_SUBARCH_SPEC): New.
6341 (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
6342 * config/darwin.h (LINK_COMMAND_SPEC): Don't pass -arch here.
6343 (LINK_SPEC): Do pass -arch here. Handle -force_cpusubtype_ALL
6344 in all cases. Pass the right -arch or -arch_only based on -mcpu.
6345 (ASM_SPEC): Handle -force_cpusubtype_ALL.
6346 * doc/invoke.texi (Darwin Options): Improve documentation for
6347 Darwin linker (and libtool) switches.
6348
6349 * config/rs6000/darwin-fallback.c: Include <mach/thread_status.h>.
6350
6351 2004-10-29 Stan Shebs <shebs@apple.com>
6352
6353 * config/rs6000/darwin-tramp.asm: Make more 64-bit-friendly.
6354
6355 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
6356
6357 * tree-phinodes.c (allocate_phi_node): New.
6358 (make_phi_node, resize_phi_node): Use it.
6359
6360 2004-10-29 David Edelsohn <edelsohn@gnu.org>
6361
6362 * config/rs6000/sysv4.h (TARGET_POWER): Define as 0.
6363 * config/rs6000/darwin.h (TARGET_POWER): Define as 0.
6364
6365 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
6366
6367 * tree-phinodes.c (make_phi_node, resize_phi_node): Don't zero
6368 the whole PHI node.
6369 * tree.h (tree_phi_node): Tell the garbage collector to chase
6370 num_args arguments.
6371
6372 2004-10-29 Richard Earnshaw <rearnsha@arm.com>
6373
6374 * opts.c (decode_options): Lower the crossjump threshold for -Os.
6375
6376 2004-10-29 Diego Novillo <dnovillo@redhat.com>
6377
6378 * tree.h (struct tree_ssa_name): Remove field 'equiv'.
6379
6380 2004-10-28 Nathan Sidwell <nathan@codesourcery.com>
6381
6382 * bitmap.h (bitmap_empty_p): New.
6383 (bitmap_and, bitmap_and_into, bitmap_and_compl,
6384 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into,
6385 bitmap_ior_compl, bitmap_xor, bitmap_xor_into): New bitmap
6386 operation macros.
6387 (bitmap_ior_and_compl): Rename to ...
6388 (bitmap_ior_and_compl_into): ... here.
6389 * bitmap.c (bitmap_equal_p): Use bitmap_xor.
6390 (bitmap_ior_and_compl): Rename to ...
6391 (bitmap_ior_and_compl_into): ... here. Adjust. Return changed
6392 flag.
6393 (bitmap_union_of_diff): Use renamed bitmap functions.
6394 * basic-block.h (AND_REG_SET, AND_COMPL_REG_SET, IOR_REG_SET,
6395 XOR_REG_SET, IOR_AND_COMPL_REG_SET): Likewise.
6396 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
6397 * df.c (df_bb_rd_local_compute)
6398 * flow.c (calculate_global_regs_live,
6399 init_propagate_block_info): Likewise.
6400 * ifcvt.c (find_if_case_1, find_if_case_2,
6401 dead_or_predicable): Likewise.
6402 * ra-build.c (union_web_part_roots, livethrough_conflicts_bb,
6403 reset_conflicts, conflicts_between_webs): Likewise.
6404 * ra-rewrite.c (reloads_to_loads, rewrite_program2,
6405 detect_web_parts_to_rebuild): Likewise.
6406 * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
6407 * tree-int-ssa.c (insert_phi_nodes_for, rewrite_into_ssa): Likewise.
6408 * tree-sra.c (decide_instantiations): Likewise.
6409 * tree-ssa-alias.c (create_name_tags,
6410 merge_pointed_to_info): Likewise.
6411 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
6412 * tree-ssa-loop-im.c (move_computations): Likewise.
6413 * tree-ssa-operands.c (get_call_expr_operands): Likewise.
6414 * tree-ssa-pre.c (fini_pre): Likewise.
6415 * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
6416 * tree-ssanames.c (any_marked_for_rewrite_p): Likewise.
6417 * tree-vectorizer.c (vectorize_loops): Likewise.
6418
6419 2004-10-29 Nick Clifton <nickc@redhat.com>
6420
6421 config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): When
6422 adding the PIC register to the fixed_regs array, also add it
6423 to the call_used_regs array.
6424
6425 2004-10-29 Eric Botcazou <ebotcazou@libertysurf.fr>
6426
6427 * gthr-posix.h (__gthread_recursive_mutex_init_function): Guard
6428 with #ifdef PTHREAD_MUTEX_RECURSIVE/#endif pairs.
6429
6430 2004-10-28 Daniel Berlin <dberlin@dberlin.org>
6431
6432 * tree-into-ssa.c (rewrite_virtual_phi_arguments): New function.
6433 (rewrite_blocks): Modify argument, and use it to decide which
6434 function to call.
6435 (rewrite_def_def_chains): Call rewrite_blocks with true here.
6436 (rewrite_into_ssa): and call it with false here.
6437
6438 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
6439
6440 * tree-phinodes.c (add_phi_arg): Turn an "if" that always
6441 triggers into gcc_assert.
6442
6443 2004-10-28 Diego Novillo <dnovillo@redhat.com>
6444
6445 PR tree-optimization/16728
6446 * tree-flow.h (get_ptr_info): Declare.
6447 * tree-ssa-alias.c (get_ptr_info): Make extern.
6448 * tree-ssa-copy.c (merge_alias_info): Merge flow-sensitive
6449 alias information.
6450
6451 2004-10-28 Stan Shebs <shebs@apple.com>
6452
6453 * config/rs6000/darwin.h (SUBTARGET_EXTRA_SPECS): Handle -m64.
6454 * config/rs6000/rs6000.c (rs6000_darwin_file_start): Add ppc64
6455 case.
6456
6457 2004-10-28 Frank Ch. Eigler <fche@redhat.com>
6458
6459 * tree-mudflap.c (mudflap_init): Mark cache-lookup decls to
6460 prevent their later unnecessary registration.
6461 (mf_build_check_statement_for): Remove "addr" argument, and
6462 related "__mf_value" generated code. Update callers.
6463 (mf_decl_eligible_p): New function, factored from mx_register_decls.
6464 (mx_register_decls): Call it.
6465 (mf_xform_derefs_1): Rewrite COMPONENT_REF and ARRAY_REF cases
6466 to restore support for complex nested expressions.
6467 (mudflap_enqueue_decl): Simplify. Move registration call emission
6468 out ...
6469 (mudflap_finish_file): ... to here.
6470 (mudflap_enqueue_constant): Remove dump code.
6471
6472 2004-10-28 Zack Weinberg <zack@codesourcery.com>
6473
6474 PR 18199
6475 * dbxout.c (dbxout_begin_complex_stabs_noforcetext): New function.
6476 (DBX_FINISH_STABS): Add (unused by default) SYM parameter.
6477 (dbxout_finish_complex_stabs): Update to match.
6478 (dbxout_symbol_location): Call emit_pending_bincls_if_required
6479 and FORCE_TEXT before DBX_STATIC_BLOCK_START. Use
6480 dbxout_begin_complex_stabs_noforcetext.
6481 * xcoffout.h (DBX_FINISH_STABS): Restore special case for
6482 N_GSYM, using new SYM parameter. Correct logic for special
6483 cases for N_FUN.
6484
6485 * varasm.c (function_section): If DECL is NULL_TREE, don't try
6486 to do anything else. Do not call get_insns if cfun or
6487 cfun->emit are NULL.
6488
6489 2004-10-28 Adam Nemet <anemet@lnxw.com>
6490
6491 PR middle-end/18160
6492 * c-typeck.c (c_mark_addressable): Issue error if address of a
6493 register variable is taken. Use "%qD" to print DECL_NAME.
6494
6495 2004-10-28 Diego Novillo <dnovillo@redhat.com>
6496
6497 * opts.c (decode_options): Don't run PRE at -Os.
6498
6499 2004-10-28 Richard Henderson <rth@redhat.com>
6500
6501 * config/alpha/alpha.md (movqicc_internal): Allow exactly one
6502 zero in the conditional.
6503 (movhicc_internal, movsicc_internal, movdicc_internal): Likewise.
6504
6505 2004-10-28 Richard Henderson <rth@redhat.com>
6506
6507 * cse.c (memory_extend_rtx): Remove.
6508 (cse_main): Don't set it.
6509 (cse_insn): Use a local buffer instead.
6510
6511 2004-10-28 Andreas Krebbel <krebbel1@de.ibm.com>
6512
6513 * profile.c (branch_prob): Call to init_edge_profiler added.
6514 * rtl-profile.c (rtl_init_edge_profiler): New function.
6515 (rtl_gen_edge_profiler): Replaced call to insert_insn_on_edge with
6516 call to safe_insert_insn_on_edge.
6517 (rtl_profile_hooks): rtl_init_edge_profiler added.
6518 * tree-profile.c (tree_init_edge_profiler): New function.
6519 (tree_profile_hooks): tree_init_edge_profiler added.
6520 * value-prof.h (profile_hooks) init_edge_profiler prototype added.
6521
6522 2004-10-28 Nick Clifton <nickc@redhat.com>
6523
6524 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Use
6525 emit_jump_insn() to generate the return instruction.
6526
6527 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
6528
6529 * tree-phinodes.c: Remove trailing whitespace.
6530
6531 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
6532
6533 * tree-ssa-loop-ivopts.c: Fix a comment typo.
6534 * doc/invoke.texi: Fix a typo.
6535
6536 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
6537
6538 * Makefile.in (OBJS-common): Remove duplicates.
6539
6540 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
6541
6542 * lambda-code.c (nestify_update_pending_stmts): Remove.
6543 (perfect_nestify): Use flush_pending_stmts instead of
6544 nestify_update_pending_stmts.
6545 * tree-cfg.c (tree_make_forwarder_block): Use
6546 flush_pending_stmts.
6547 * tree-flow.h: Add a prototype for flush_pending_stmts.
6548 * tree-ssa-loop-manip.c (tree_duplicate_loop_to_header_edge):
6549 Use flush_pending_stmts.
6550 (lv_update_pending_stmts): Remove.
6551 (tree_ssa_loop_version): Use flush_pending_stmts instead of
6552 lv_update_pending_stmts.
6553 * tree-ssa.c (flush_pending_stmts): New.
6554
6555 2004-10-28 Ulrich Weigand <uweigand@de.ibm.com>
6556
6557 PR target/15286
6558 * final.c (alter_subreg): Compute correct offset to use with
6559 paradoxical SUBREGs of memory operands.
6560 * recog.c (general_operand): Allow paradoxical SUBREGs of
6561 memory operands after reload.
6562 * simplify-rtx.c (simplify_gen_subreg): Fail if simplify_subreg
6563 has failed when passed a hard register.
6564
6565 2004-10-28 Aldy Hernandez <aldyh@redhat.com>
6566
6567 * function.c (assign_parm_setup_block): Handle parallels correctly.
6568
6569 2004-10-28 Kaz Kojima <kkojima@gcc.gnu.org>
6570
6571 * final.c (shorten_branches): Initialize flags structure.
6572
6573 2004-10-28 Nathan Sidwell <nathan@codesourcery.com>
6574
6575 * tree.c (int_cst_node, int_cst_hash_table): New variables.
6576 (init_ttree): Initialize them.
6577 (int_cst_hash_hash, int_cst_hash_eq): New hashing functions.
6578 (build_int_cst_wide): Use hash table for oversized integers.
6579
6580 2004-10-28 Nick Clifton <nickc@redhat.com>
6581
6582 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Define
6583 begin_label.
6584
6585 2004-10-27 Richard Henderson <rth@redhat.com>
6586
6587 PR middle-end/18163
6588 * expr.c (emit_group_load): Don't go force temporary for memory
6589 or concat source.
6590 (emit_group_store): Similarly.
6591
6592 2004-10-27 Andrew Pinski <pinskia@physics.uc.edu>
6593
6594 PR other/18186
6595 * common.opt (--param): Fix spelling of parameter.
6596
6597 2004-10-27 Andrew Pinski <pinskia@physics.uc.edu>
6598
6599 PR tree-opt/17529
6600 * tree-cfg.c (remove_useless_stmts_1) <case SWITCH_EXPR>:
6601 Don't fold statement.
6602 <case ASM_EXPR>: Fold the statement.
6603
6604 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
6605
6606 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
6607 <COND_EXPR>: Use EDGE_COUNT instead of GOTO_DESTINATION.
6608
6609 2004-10-28 Joseph S. Myers <jsm@polyomino.org.uk>
6610
6611 * doc/contrib.texi, doc/cpp.texi, doc/cppopts.texi,
6612 doc/extend.texi, doc/gcov.texi, doc/install.texi, doc/invoke.texi,
6613 doc/libgcc.texi, doc/md.texi, doc/passes.texi,
6614 doc/sourcebuild.texi, doc/tm.texi: Improve Texinfo formatting.
6615
6616 2004-10-28 Joseph S. Myers <jsm@polyomino.org.uk>
6617
6618 * doc/c-tree.texi, doc/cpp.texi, doc/implement-c.texi,
6619 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/tm.texi: Put
6620 punctuation outside quotes.
6621
6622 2004-10-27 David Mosberger <davidm@hpl.hp.com>
6623 James E Wilson <wilson@specifixinc.com>
6624
6625 PR target/13158
6626 * config/ia64/ia64.c (ia64_expand_epilogue): Set RTX_FRAME_RELATED_P on
6627 sibcall alloc instruction.
6628 (process_set): Handle sibcall alloc instruction.
6629
6630 2004-10-27 Geoffrey Keating <geoffk@apple.com>
6631
6632 * config/rs6000/rs6000.c (rs6000_attribute_table): Add
6633 SUBTARGET_ATTRIBUTE_TABLE.
6634 * config/darwin.h (ASM_WEAKEN_DECL): Handle weak_import.
6635 (SUBTARGET_ATTRIBUTE_TABLE): Define.
6636 * config/darwin.c (darwin_handle_weak_import_attribute): New.
6637 (HAVE_DEAD_STRIP): Delete.
6638 (no_dead_strip): Don't test HAVE_DEAD_STRIP.
6639 * config/darwin-protos.h (darwin_handle_weak_import_attribute):
6640 Prototype.
6641
6642 * doc/tm.texi (USE_SELECT_SECTION_FOR_FUNCTIONS): Document.
6643
6644 * config/darwin.h (GTHREAD_USE_WEAK): Define.
6645
6646 2004-10-28 Ben Elliston <bje@au.ibm.com>
6647
6648 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): New.
6649 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Likewise.
6650 * params.h (SRA_MAX_STRUCTURE_SIZE): New.
6651 (SRA_FIELD_STRUCTURE_RATIO): Likewise.
6652 * tree-sra.c: Include "params.h".
6653 (decide_block_copy): Use new parameters.
6654 * doc/invoke.texi (Optimize Options): Document new SRA pass
6655 parameters sra-max-structure-size and sra-field-structure-ratio.
6656
6657 2004-10-27 Nicolas Pitre <nico@cam.org>
6658
6659 * config/arm/ieee754-df.S (floatdidf): Fix regression with big values.
6660
6661 2004-10-27 Zdenek Dvorak <dvorakz@suse.cz>
6662
6663 PR tree-optimization/18048
6664 * fold-const.c (try_move_mult_to_index): New function.
6665 (fold): Use try_move_mult_to_index.
6666 * tree-ssa-loop-ivopts.c (try_add_cand_for): Prefer common candidates.
6667 * tree-ssa-loop-niter.c (number_of_iterations_cond): Produce
6668 an all-ones unsigned constant without extra bits.
6669 * tree.c (build_low_bits_mask): New function.
6670 * tree.h (build_low_bits_mask): Declare.
6671
6672 2004-10-27 David Edelsohn <edelsohn@gnu.org>
6673
6674 PR target/17956
6675 * config/rs6000/rs6000.md (maxsf3): Add !flag_trapping_math to
6676 final condition.
6677 (minsf3): Same.
6678 (maxdf3): Same.
6679 (mindf3): Same.
6680
6681 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
6682
6683 * tree-cfg.c (thread_jumps): Speed up by reordering the two
6684 conditions for entering basic blocks into worklist.
6685
6686 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
6687
6688 * tree-cfg.c (thread_jumps): Speed up by pretending to have
6689 ENTRY_BLOCK_PTR in worklist.
6690
6691 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
6692
6693 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
6694 <GOTO_EXPR>: Don't let an explicit GOTO_EXPR slip through.
6695
6696 2004-10-27 Daniel Berlin <dberlin@dberlin.org>
6697
6698 Fix PR tree-optimization/17133
6699
6700 * tree-cfg.c (rewrite_to_new_ssa_names_bb): Also rewrite must
6701 def kill operand.
6702
6703 * tree-flow-inline.h: V_MUST_DEF_OP became V_MUST_DEF_RESULT.
6704 (get_v_must_def_result_ptr): Modify for new structure of
6705 v_must_defs array.
6706 (get_v_must_def_kill_ptr): New.
6707 (op_iter_next_use): Add support for the kill that occurs in V_MUST_DEFs.
6708 (op_iter_next_tree): Ditto. Also V_MAY_DEF_OP became V_MAY_DEF_RESULT.
6709 (op_iter_next_def): V_MAY_DEF_OP became V_MAY_DEF_RESULT.
6710 (op_iter_init): Initialize new mustu members.
6711 (op_iter_next_mustdef): New function.
6712 (op_iter_init_mustdef): Ditto.
6713
6714 * tree-flow.h (rewrite_def_def_chains): New function.
6715
6716 * tree-into-ssa.c (mark_def_sites): Handle mustdefkill operands.
6717 (ssa_mark_def_sites): Ditto.
6718 (rewrite_stmt): Ditto.
6719 (ssa_rewrite_stmt): Ditto.
6720 (rewrite_blocks): Factor out from rewrite_into_ssa.
6721 (mark_def_block_sites): Ditto.
6722 (rewrite_def_def_chains): New function, just rewrites def-def
6723 chains without phi node insertion.
6724
6725 * tree-pass.h (TODO_fix_def_def_chains): New todo flag.
6726
6727 * tree-optimize.c (execute_todo): Handle TODO_fix_def_def_chains.
6728
6729 * tree-pretty-print.c (dump_vops): Print out MUST_DEF's so that
6730 they include the rhs now.
6731
6732 * tree-ssa-ccp.c (visit_assignment): V_MUST_DEF_OP became
6733 V_MUST_DEF_RESULT.
6734
6735 * tree-ssa-dce.c (mark_operand_necessary): Add phionly argument.
6736 Update callers.
6737 (mark_really_necessary_kill_operand_phis): New function.
6738 (perform_tree_ssa_dce): Call it.
6739 (pass_dce): Add TODO_fix_def_def_chains.
6740 (pass_cd_dce): Ditto.
6741
6742 * tree-ssa-loop-im.c (determine_max_movement): Look at kills as
6743 well.
6744 (rewrite_mem_refs): Ditto.
6745
6746 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Look at kills
6747 as well.
6748
6749 * tree-ssa-operands.c (allocate_v_may_def_optype):
6750 v_may_def_operand_type_t became v_def_use_operand_type_t.
6751 (allocate_v_must_def_optype) Ditto.
6752 (finalize_ssa_v_must_defs): Update for new operand type, as well
6753 as setting the use portion as well.
6754 (copy_virtual_operands): Copy the kill operand as well.
6755 (create_ssa_artficial_load_stmt): V_MUST_DEF_OP became
6756 V_MUST_DEF_RESULT.
6757
6758 * tree-ssa-operands.h (v_may_def_operand_type): Renamed to
6759 v_def_use_operand_type.
6760 (v_must_def_optype_d): Use v_def_use_operand_type.
6761 (V_MUST_DEF_OP_*): Renamed to V_MUST_DEF_RESULT_*
6762 (V_MUST_DEF_KILL_*): New macros.
6763 (struct ssa_operand_iterator_d): Add num_v_mustu and v_mustu_i
6764 members.
6765 Rename existing must_i and num_v_must members to mustd_i and
6766 num_v_mustd.
6767 (SSA_OP_VMUSTDEFKILL): New flag.
6768 (SSA_OP_VIRTUAL_KILLS): New flag.
6769 (SSA_OP_ALL_OPERANDS): Add in SSA_OP_ALL_KILLS.
6770 (SSA_OP_ALL_KILLS): New flag.
6771 (FOR_EACH_SSA_MUSTDEF_OPERAND): New macro.
6772
6773 * tree-ssa.c (verify_ssa): Verify virtual kills as well.
6774
6775 * tree-vectorizer.c (vect_create_data_ref_ptr): V_MUST_DEF_OP
6776 became V_MUST_DEF_RESULT.
6777 (rename_variables_in_bb): Rename kill pointer as well.
6778
6779 * tree-dfa.c (compute_immediate_uses_for_stmt): Add kills into the
6780 immediate uses.
6781
6782 2004-10-27 Richard Sandiford <rsandifo@redhat.com>
6783
6784 * dbxout.c (dbxout_source_line): Move declaration of begin_label to
6785 the block that needs it.
6786
6787 2004-10-27 Zack Weinberg <zack@codesourcery.com>
6788
6789 * dbxout.c (dbxout_finish_complex_stabs): Mark 'line' variable
6790 ATTRIBUTE_UNUSED.
6791
6792 2004-10-27 Zack Weinberg <zack@codesourcery.com>
6793
6794 * c-lex.c (cb_def_pragma): Clean up code for making location
6795 palatable to diagnostic.c.
6796
6797 2004-10-27 Steven Bosscher <stevenb@suse.de>
6798
6799 PR tree-optimization/17757
6800 * tree-phinodes.c (remove_phi_arg_num): Don't remove PHIs
6801 without any PHI arguments left. Make sure the argument that
6802 we're supposed to remove exists at all.
6803
6804 2004-10-27 Paul Brook <paul@codesourcery.com>
6805
6806 * configure.ac: Don't test for [build] __cxa_atexit when building a
6807 cross compiler.
6808 * configure: Regenerate.
6809
6810 2004-10-27 Paul Brook <paul@codeosurcery.com>
6811
6812 * configure.ac: Use build_exeext not host_exeext when lookin for
6813 target tools.
6814 * configure: Regenerate.
6815
6816 2004-10-27 Andreas Krebbel <krebbel1@de.ibm.com>
6817
6818 * config/s390/s390.md ("*subdf3_cc"): Replaced plus by minus.
6819
6820 2004-10-27 Andreas Krebbel <krebbel1@de.ibm.com>
6821 patch originally created by Kelley Cook <kcook@gcc.gnu.org>
6822
6823 PR middle-end/14684
6824 * opts.c (OPT_fprofile_generate): Default to -funroll-loops
6825 to match -fprofile-use.
6826
6827 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
6828
6829 * config/rs6000/rs6000.c: Fix a comment typo.
6830
6831 2004-10-27 Zack Weinberg <zack@codesourcery.com>
6832
6833 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Increment line
6834 counter.
6835
6836 2004-10-27 Andreas Schwab <schwab@suse.de>
6837
6838 * varasm.c (default_stabs_asm_out_destructor): Mark symbol as
6839 unused.
6840 (default_stabs_asm_out_constructor): Likewise.
6841
6842 2004-10-26 Geoffrey Keating <geoffk@apple.com>
6843
6844 * builtins.c (fold_builtin_unordered_cmp): Always bring both
6845 operands to the same type.
6846
6847 2004-10-26 James E Wilson <wilson@specifixinc.com>
6848
6849 PR target/18010
6850 * emit-rtl.c (emit_copy_of_insn_after): Copy RTX_FRAME_RELATED_P.
6851
6852 2004-10-26 Zack Weinberg <zack@codesourcery.com>
6853
6854 * dbxout.c: Include obstack.h.
6855 (ASM_STABS_OP): Take XCOFF_DEBUGGING_INFO into account in
6856 default definition.
6857 (ASM_STABD_OP, NO_DBX_MAIN_SOURCE_DIRECTORY, DBX_CONTIN_CHAR):
6858 Default-define here.
6859 (DBX_CONTIN_LENGTH): Move definition with others.
6860 (DBX_FINISH_STABS): New target macro.
6861 (current_sym_code, current_sym_value, current_sym_addr)
6862 (current_sym_nchars, CHARS, dbxout_continue)
6863 (print_int_cst_octal, print_octal, print_wide_int)
6864 (dbxout_prepare_symbol, dbxout_finish_symbol): Delete.
6865 (stabstr_ob, stabstr_last_contin_point): New variables.
6866 (NUMBER_FMT_LOOP): New improper macro.
6867 (dbxout_int, dbxout_stab_value_zero, dbxout_stab_value_label)
6868 (dbxout_stab_value_label_diff, dbxout_stab_value_internal_label)
6869 (dbxout_stab_value_internal_label_diff, dbxout_stabd)
6870 (dbxout_begin_stabn, dbxout_begin_stabn_sline)
6871 (dbxout_begin_simple_stabs, dbxout_begin_simple_stabs_desc)
6872 (dbxout_begin_complex_stabs, dbxout_finish_complex_stabs)
6873 (stabstr_C, stabstr_S, stabstr_I, stabstr_D, stabstr_U, stabstr_O)
6874 (stabstr_continue, DECL_ACCESSIBILITY_CHAR)
6875 New functions and/or proper function-like macros.
6876 (CONTIN): Use stabstr_continue, unconditionally.
6877 (get_lang_number): Define unconditionally, with ATTRIBUTE_UNUSED.
6878 (dbxout_init): Initialize stabstr_ob. Check
6879 NO_DBX_MAIN_SOURCE_DIRECTORY. Only write out the Ltext label
6880 if it was used. Use the new interfaces.
6881 (dbxout_source_file): Remove file argument; always write to
6882 asm_out_file. Use the new interfaces.
6883 (dbxout_type_method_1): Remove second argument which is always
6884 DECL_ASSEMBLER_NAME of the first argument. Use the new interfaces.
6885 (dbxout_type_methods): Remove write-only variables. Use the
6886 new interfaces.
6887 (dbxout_parms): Refactor to remove code duplicated in each of
6888 several successive if-else-if blocks. Use the new interfaces.
6889 (dbxout_function_end, emit_bincl_stab, dbxout_end_source_file)
6890 (dbxout_source_line, dbxout_finish, dbxout_type_index)
6891 (dbxout_type_fields, dbxout_range_type, dbxout_type, dbxout_type_name)
6892 (dbxout_class_name_qualifiers, dbxout_symbol, dbxout_symbol_location)
6893 (dbxout_symbol_name, dbxout_reg_parms, dbxout_args)
6894 (dbx_output_lbrac, dbx_output_rbrac, dbxout_block):
6895 Use the new interfaces.
6896 * Makefile.in (dbxout.o): Update dependencies.
6897
6898 * defaults.h: Don't define ASM_STABD_OP.
6899 * output.h: Prototype new dbxout_* interfaces.
6900 * system.h: Poison DBX_OUTPUT_GCC_MARKER and DBX_FINISH_SYMBOL.
6901 * varasm.c: Don't define ASM_STABS_OP.
6902 (default_stabs_asm_out_constructor, default_stabs_asm_out_destructor):
6903 Use the new dbxout.c interfaces. Call sorry if neither
6904 DBX_DEBUGGING_INFO nor XCOFF_DEBUGGING_INFO is defined.
6905
6906 * xcoffout.h: Don't define ASM_STABS_OP.
6907 (DBX_FINISH_SYMBOL): Rewrite and rename DBX_FINISH_STABS.
6908 (DBX_OUTPUT_MAIN_SOURCE_DIRECTORY, DBX_OUTPUT_GCC_MARKER): Delete.
6909 (NO_DBX_MAIN_SOURCE_DIRECTORY, NO_DBX_GCC_MARKER): Define.
6910 (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Change bare block to
6911 do { ... } while (0) idiom.
6912
6913 * config/alpha/alpha.c (num_source_filenames): Export.
6914 * config/alpha/alpha.h (num_source_filenames): Declare.
6915 (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
6916 (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
6917 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
6918 Always use .debugsym. Update commentary.
6919 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
6920 (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
6921 * config/rs6000/linux64.h (DBX_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC):
6922 Use new interfaces.
6923 * config/rs6000/rs6000.c: If TARGET_MACHO, include gstab.h.
6924 (macho_branch_islands): Use new interfaces.
6925
6926 * doc/tm.texi: Update.
6927
6928 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
6929
6930 * expr.c (emit_group_store): Do not treat floats as BLKmode.
6931 (emit_group_load): Same.
6932
6933 2004-10-26 Joseph S. Myers <jsm@polyomino.org.uk>
6934
6935 * c-parse.in (datadef): Use pedwarn rather than error and warning
6936 for diagnostic in case of no declaration specifiers.
6937
6938 2004-10-26 Richard Sandiford <rsandifo@redhat.com>
6939
6940 PR bootstrap/15747
6941 * doc/install.texi (mips-sgi-irix5): Document that /bin/sh has been
6942 reported to hang during bootstrap and that CONFIG_SHELL=/bin/ksh
6943 can be used to work around this.
6944
6945 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
6946
6947 * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Adjust for e500
6948 doubles.
6949
6950 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
6951
6952 * stmt.c (expand_case): Update a comment.
6953
6954 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
6955
6956 * stmt.c (expand_case): Put an assertion that index_expr is
6957 never INTEGER_CST. Don't special case for constant
6958 index_expr.
6959
6960 2004-10-26 Andrew Pinski <pinskia@physics.uc.edu>
6961
6962 PR 18162
6963 * c-parse.in (designator): Finish with a semi-colon.
6964
6965 2004-10-26 Fariborz Jahanian <fjahanian@apple.com>
6966
6967 * config/rs6000/rs6000.md (andsi3_internal8): Set CR when splitting
6968 into rotlsi3.
6969
6970 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
6971
6972 * stmt.c (expand_case): Remove code to handle SWITCH_EXPR with
6973 a default case only.
6974
6975 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
6976
6977 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs): Adjust for
6978 e500 doubles.
6979 (spe_build_register_parallel): New.
6980 (rs6000_spe_function_arg): Handle e500 doubles.
6981 (function_arg): Same.
6982 (spe_func_has_64bit_regs_p): Same.
6983 (rs6000_function_value): Same.
6984 (rs6000_libcall_value): Same.
6985 (legitimate_lo_sum_address_p): Return false for e500 doubles.
6986
6987 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT): Adjust for e500
6988 doubles.
6989 (DATA_ALIGNMENT): Same.
6990 (CANNOT_CHANGE_MODE_CLASS): Same.
6991
6992 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
6993
6994 * expr.c (emit_group_load): Handle floats.
6995 (emit_group_store): Same.
6996
6997 2004-10-26 Nathan Sidwell <nathan@codesourcery.com>
6998
6999 * c-lex.c (get_nonpadding_token): Remove.
7000 (c_lex_with_flags): Push timevar and eat padding here. Improve
7001 stray token diagnostic.
7002 (lex_string): Replace logic with switch statement, eat padding
7003 token here.
7004
7005 2004-10-26 Geoffrey Keating <geoffk@apple.com>
7006
7007 PR 18149
7008 * config/i386/darwin.h (ASM_SPEC): Undef it before defining.
7009
7010 2004-10-25 Geoffrey Keating <geoffk@apple.com>
7011
7012 * config/darwin.h (LINK_SPEC): Default weak_reference_mismatches
7013 to 'non-weak'.
7014 (MAKE_DECL_ONE_ONLY): Set DECL_WEAK.
7015 (ASM_MAKE_LABEL_LINKONCE): Delete.
7016 (ASM_WEAKEN_DECL): New.
7017 (ASM_DECLARE_OBJECT_NAME): Look at DECL_WEAK not DECL_ONE_ONLY.
7018 (ASM_DECLARE_FUNCTION_NAME): Likewise.
7019 (TEXT_SECTION_ASM_OP): Add a tab.
7020 (DATA_SECTION_ASM_OP): Likewise.
7021 (SECTION_FUNCTION): Add a tab. Use fputs. Don't call
7022 data_section on every section change.
7023 (EXTRA_SECTIONS): Add a bunch of new extra sections.
7024 (EXTRA_SECTION_FUNCTIONS): Likewise.
7025 (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
7026 (JCR_SECTION_NAME): Define.
7027 (TARGET_SECTION_TYPE_FLAGS): Don't define.
7028 * config/darwin.c (darwin_encode_section_info): A symbol is defined
7029 in this file if it is not weak.
7030 (textcoal_section): Delete.
7031 (datacoal_section): Delete.
7032 (darwin_make_decl_one_only): Delete.
7033 (machopic_select_section): Handle functions.
7034 (darwin_asm_named_section): Add a tab.
7035 (darwin_section_type_flags): Delete.
7036 (darwin_unique_section): Delete contents.
7037 (darwin_emit_unwind_label): Add a tab. Make decls weak if
7038 DECL_WEAK is set.
7039 * config/darwin-protos.h (darwin_section_type_flags): Delete.
7040 (darwin_make_decl_one_only): Delete.
7041 (text_coal_section): New.
7042 (text_unlikely_section): New.
7043 (text_unlikely_coal_section): New.
7044 (const_coal_section): New.
7045 (data_coal_section): New.
7046 (const_data_coal_section): New.
7047 * varasm.c (function_section): Honour
7048 USE_SELECT_SECTION_FOR_FUNCTIONS.
7049 * dwarf2out.c (output_call_frame_info): Look at DECL_WEAK when
7050 TARGET_USES_WEAK_UNWIND_INFO is in effect.
7051 * dbxout.c (dbxout_source_file): Don't change sections while
7052 a function is being output.
7053
7054 2004-10-25 David Ayers <d.ayers@inode.at>
7055
7056 * c-common.h: Remove RID_ID.
7057 * c-parse.in: Remove OBJECTNAME and references to RID_ID.
7058 (typespec_reserved_attr): Add rule for TYPENAME
7059 non_empty_protocolrefs.
7060 (yylexname): Remove special handling of RID_ID.
7061
7062 2004-10-25 James E Wilson <wilson@specifixinc.com>
7063
7064 * doc/invoke.texi (-fcrossjumping): Not enabled at -O.
7065
7066 2004-10-25 Joseph S. Myers <jsm@polyomino.org.uk>
7067
7068 PR c/16667
7069 * c-parse.in (array_designator): New.
7070 (designator): Use it.
7071 (initelt): Only permit array_designator without '=', not ".foo".
7072
7073 2004-10-25 Kenneth Zadeck <zadeck@naturalbridge.com>
7074 * gcc/Makefile.in: removed ggc for cgraphunit.
7075 * gcc/cgraph.c.dump_cgraph_node: removed static var analysis.
7076 * gcc/cgraph.h: removed static var analysis data structures and calls.
7077 * gcc/cgraphunit.c:
7078 cgraph_mark_local_and_external_functions:changed name to
7079 cgraph_mark_local_functions
7080 (print_order,convert_UIDs_in_bitmap,new_static_vars_info,
7081 cgraph_reset_static_var_maps,get_global_static_vars_info,
7082 get_global_statics_not_read,get_global_statics_not_written,searchc,
7083 cgraph_reduced_inorder,has_proper_scope_for_analysis,check_rhs_var,
7084 check_lhs_var,get_asm_expr_operands,process_call_for_static_vars,
7085 scan_for_static_refs,cgraph_characterize_statics_local,
7086 clear_static_vars_maps,cgraph_propagate_bits,cgraph_characterize_statics):
7087 removed.
7088 (cgraph_optimize,init_cgraph): removed calls to static vars analysis
7089 * gcc/tree-dfa.c find_referenced_vars: removed call to static vars
7090 analysis
7091 * gcc/tree-flow.h static_vars_info: removed
7092 * gcc/tree-ssa-operands.c (add_call_clobber_ops,add_call_read_ops):
7093 removed calls to static vars analysis.
7094 get_call_expr_operands: removed callee variable.
7095
7096 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
7097
7098 * cfg.c (unchecked_make_edge, redirect_edge_succ,
7099 redirect_edge_pred): Use VEC_safe_push instead of
7100 VEC_safe_insert.
7101 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
7102
7103 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
7104
7105 * cfgloopmanip.c (loopify): Take two more arguments true_edge
7106 and false_edge.
7107 * cfgloop.h: Adjust the corresponding prototype.
7108 * loop-unswitch.c (unswitch_loop): Adjust a call to loopify.
7109 * tree-ssa-loop-manip.c (tree_ssa_loop_version): Likewise.
7110
7111 2004-10-25 Jakub Jelinek <jakub@redhat.com>
7112
7113 * dwarf2out.c (rtl_for_decl_location): Avoid segfault if
7114 DECL_INCOMING_RTL is NULL.
7115
7116 2004-10-25 Steven Bosscher <stevenb@suse.de>
7117
7118 * timevar.def (TV_FIND_REFERENCED_VARS): New.
7119 * tree-dfa.c (pass_referenced_var): Use it.
7120
7121 2004-10-25 Roger Sayle <roger@eyesopen.com>
7122 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7123
7124 * cse.c: Change encoding of quantity numbers to avoid undefined
7125 pointer arithmetic on qty_table.
7126 (REGNO_QTY_VALID_P): A quantity is now valid if it isn't negative.
7127 (get_cse_reg_info): Initialize reg_qty to a unique negative value.
7128 (new_basic_block): Assign "real" quantity numbers from zero.
7129 (delete_reg_equiv): Do nothing if quantity is invalid. Reset the
7130 REG_QTY to its unique negative value.
7131 (merge_equiv_classes): Calculate need_rehash if quantity is valid.
7132 (cse_main): Don't include max_reg when determining max_qty.
7133 (cse_basic_block): Avoid subtracting a large offset from qty_table,
7134 which causes undefined C99 behaviour. Only allocate needed memory.
7135
7136 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
7137
7138 * stmt.c (expand_case): Remove an obsolete comment.
7139
7140 2004-10-25 Andrew Pinski <pinskia@physics.uc.edu>
7141
7142 PR middle-end/17407
7143 * c-decl.c (grokdeclarator) <case cdk_array>: Remove the call
7144 layout_type as it is already done by build_array_type.
7145 * tree.c (build_array_type): Layout the type even
7146
7147 2004-10-25 Alexandre Oliva <aoliva@redhat.com>
7148
7149 * config/frv/linux.h (TARGET_C99_FUNCTIONS): Define to 0.
7150
7151 2004-10-25 Alexandre Oliva <aoliva@redhat.com>
7152
7153 * config/frv/frv.md (movdi, movdf): Handle wide-constant splits
7154 with wider-than-32-bit HOST_WIDE_INTs.
7155
7156 2004-10-25 David Billinghurst <David.Billinghurst@riotinto.com>
7157
7158 * config/mips/mips.c(mips_output_filename): Remove unused
7159 array ltext_label_name
7160
7161 2004-10-24 Geoffrey Keating <geoffk@geoffk.org>
7162
7163 * config/rs6000/darwin.h (BLOCK_REG_PADDING): Define.
7164
7165 2004-10-25 Ben Elliston <bje@au.ibm.com>
7166
7167 * cfgcleanup.c (outgoing_edges_match): Fix typo in dump output.
7168
7169 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
7170
7171 * predict.c (predict_loops): Call scev_finalize instead of
7172 scev_reset.
7173
7174 2004-10-24 Kazu Hirata <kazu@cs.umass.edu>
7175
7176 * config/dbxcoff.h, config/dbxelf.h, config/libgloss.h,
7177 config/openbsd.h, config/mips/r3900.h, config/pdp11/pdp11.md,
7178 config/sh/ushmedia.h, config/sparc/elf.h,
7179 config/sparc/sp64-elf.h: Update copyright.
7180
7181 2004-10-24 Kazu Hirata <kazu@cs.umass.edu>
7182
7183 * stmt.c (expand_case): Handle the default label outside of
7184 the for loop. Remove code to handle a missing default label.
7185
7186 2004-10-23 Kazu Hirata <kazu@cs.umass.edu>
7187
7188 * dbxout.c (dbxout_function_decl): Don't use
7189 DBX_OUTPUT_FUNCTION_END.
7190 * system.h: Poison DBX_OUTPUT_FUNCTION_END.
7191 * doc/tm.texi (DBX_OUTPUT_FUNCTION_END): Remove.
7192
7193 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
7194
7195 PR middle-end/17967
7196 * tree-cfg.c (remove_usless_stmts_cond): Don't Fold statement.
7197
7198 2004-10-23 Daniel Berlin <dberlin@dberlin.org>
7199
7200 * tree-ssa-dom.c (record_equality): Use loop depth to determine
7201 which way to record the equality as well.
7202 (loop_depth_of_name): New function.
7203
7204 2004-10-23 Eric Botcazou <ebotcazou@libertysurf.fr>
7205
7206 PR middle-end/17793
7207 * gimplify.c (gimplify_addr_expr) <VIEW_CONVERT_EXPR>: Look
7208 through the operand if it is a useless type conversion.
7209
7210 2004-10-23 Ben Elliston <bje@au.ibm.com>
7211
7212 * cfg.c (remove_edge): Use VEC_unordered_remove.
7213 (redirect_edge_succ): Likewise.
7214 (redirect_edge_pred): Likewise.
7215 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
7216
7217 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
7218
7219 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Don't access PTR
7220 beyond its end.
7221
7222 2004-10-22 Eric Christopher <echristo@redhat.com>
7223
7224 * config/rs6000/rs6000.c (setup_incoming_varargs): Align DFmode
7225 saves.
7226
7227 2004-10-22 Aldy Hernandez <aldyh@redhat.com>
7228
7229 * config/rs6000/spe.md (spe_extendsfdf2): New.
7230 (movdf_e500_double): New.
7231 (spe_truncdfsf2): New.
7232 (spe_absdf2): New.
7233 (spe_nabsdf2): New.
7234 (spe_negdf2): New.
7235 (sub_adddf3): New.
7236 (spe_subdf3): New.
7237 (spe_muldf3): New.
7238 (spe_floatsidf2): New.
7239 (spe_floatunssidf2): New.
7240 (fix_truncdfsi2): New.
7241 (spe_fixuns_truncdfsi2): New.
7242
7243 * config/rs6000/rs6000.md (truncdfsf2): Change to expander.
7244 (fpr_truncdfsf2): New.
7245 (negdf2): Change to expander.
7246 (fpr_negdf2): New.
7247 (fpr_nabsdf2): Name pattern.
7248 (adddf3): Change to expander.
7249 (fpr_adddf3): Nem.
7250 (subdf3): Change to expander.
7251 (fpr_subdf3): New.
7252 (muldf3): Change to expander.
7253 (fpr_muldf3): New.
7254 (divdf3): Change to expander.
7255 (fpr_divdf3): New.
7256 (movdf_softfloat32): Change !TARGET_FPRS to TARGET_E500_SINGLE.
7257 (cmpdf): Allow for TARGET_E500_DOUBLE.
7258
7259 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
7260
7261 * c-semantics.c (re_push_stmt_list): Remove.
7262 * c-common.h: Remove the corresponding prototype.
7263
7264 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
7265
7266 * stmt.c (asm_op_is_mem_input): Remove.
7267 * tree.h: Remove the corresponding prototype.
7268
7269 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
7270
7271 * tree-gimple.c (is_gimple_constructor_elt): Remove.
7272 * tree-gimple.h: Remove the corresponding prototype.
7273
7274 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
7275
7276 * varasm.c (get_pool_mode_for_function, get_pool_offset):
7277 Remove.
7278 * rtl.h: Remove the corresponding prototypes.
7279
7280 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
7281
7282 * tree-cfg.c (thread_jumps_from_bb): Speed up by extracting
7283 edge information when we commit ourselves to threading a
7284 particular jump.
7285
7286 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
7287
7288 * tree-cfg.c (thread_jumps): Speed up by putting basic blocks
7289 into worklist instead of their indexes.
7290
7291 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
7292
7293 * alias.c, basic-block.h, cgraphunit.c, combine.c, domwalk.h,
7294 final.c, gengtype.c, genpreds.c, ggc-page.c, insn-notes.def,
7295 lambda-code.c, loop-unroll.c, modulo-sched.c, pointer-set.c,
7296 pretty-print.c, ra-colorize.c, sbitmap.c, tree-complex.c,
7297 tree-data-ref.c, tree-dfa.c, tree-inline.c, tree-into-ssa.c,
7298 tree-scalar-evolution.c, tree-ssa-dom.c,
7299 tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
7300 tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-threadupdate.c,
7301 tree-vectorizer.c, vec.h: Fix comment formatting.
7302
7303 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
7304
7305 * dwarf.h, gthr-dce.h, gthr-single.h, gthr-solaris.h, gthr.h,
7306 libfuncs.h, libgcc2.h, stab.def, tsystem.h: Update copyright.
7307
7308 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
7309
7310 * config/ptx4.h, config/mcore/mcore-pe.h,
7311 config/rs6000/eabi.h, config/vax/elf.h: Update copyright.
7312
7313 2004-10-22 Peter Barada <peter@the-baradas.com>
7314
7315 * config/m68k/m68k.h (HARD_REGNO_RENAME_OK): New macro.
7316 * config/m68k/m68k.c (m68k_hard regno_rename_ok): Disallow
7317 renaming of non-live registers in interrupt functions.
7318 * config/m68k/m68k-protos.h (m68k_hard_regno_rename_ok): Add prototype.
7319
7320 2004-10-22 Zdenek Dvorak <dvorakz@suse.cz>
7321
7322 * tree-ssa-loop-niter.c (inverse): Count in HOST_WIDE_INT if possible.
7323 Use integer for loop counter.
7324 (num_ending_zeros): New function.
7325 (number_of_iterations_cond): Use num_ending_zeros.
7326
7327 2004-10-21 Aldy Hernandez <aldyh@redhat.com>
7328
7329 * config.gcc: Add support for --enable-e500_double.
7330
7331 * config/rs6000/e500-double.h: New file.
7332
7333 * config/rs6000/rs6000.h: Define TARGET_E500_SINGLE and
7334 TARGET_E500_DOUBLE.
7335
7336 * config/rs6000/eabi.h: Define TARGET_E500_SINGLE and
7337 TARGET_E500_DOUBLE.
7338
7339 * config/rs6000/linuxspe.h: Same.
7340
7341 * doc/invoke.texi (Option Summary): Document new options for
7342 mfloat-gprs.
7343 (RS/6000 and PowerPC Options): Same.
7344
7345 * config/rs6000/rs6000.c (rs6000_parse_float_gprs_option): New
7346 function.
7347 (rs6000_override_options): Use it. Use
7348 SUB3TARGET_OVERRIDE_OPTIONS.
7349 Add 8548 to processor_target_table.
7350 (rs6000_legitimate_address): Handle e500 doubles.
7351 (rs6000_legitimize_address): Same.
7352 (rs6000_legitimize_reload_address): Same.
7353 (rs6000_hard_regno_nregs): Same.
7354 (spe_func_has_64bit_regs_p): Same.
7355 (emit_frame_save): Same.
7356 (gen_frame_mem_offset): Same.
7357 (rs6000_dwarf_register_span): Same.
7358 (rs6000_generate_compare): Same.
7359 (easy_fp_constant): Same.
7360 (legitimate_offset_address_p): Same.
7361
7362 * config/rs6000/spe.md: (cmdfeq_gpr): New.
7363 (tstdfeq_gpr): New.
7364 (cmpdfgt_gpr): New.
7365 (tstdfgt_gpr): New.
7366 (tstdfgt_gpr): New.
7367 (cmpdflt_gpr): New.
7368 (tstdflt_gpr): New.
7369 Add new constants.
7370
7371 2004-10-21 Giovanni Bajo <giovannibajo@gcc.gnu.org>
7372
7373 * config/arc/lib1funcs.asm (___umulsidi3): Fix typo.
7374
7375 2004-10-21 Zack Weinberg <zack@codesourcery.com>
7376
7377 * dbxout.c: Remove unnecessary #undefs.
7378 (GDB_INV_REF_REGPARM_STABS_LETTER, DBX_MEMPARM_STABS_LETTER)
7379 (FILE_NAME_JOINER, STABS_GCC_MARKER): Remove; fold sole
7380 definition into use sites.
7381 (cwd): Make local to dbxout_init.
7382 (dbxout_init): Restructure cwd-using logic for clarity. Use
7383 IS_DIR_SEPARATOR.
7384 * xcoffout.h (DBX_OUTPUT_GCC_MARKER): Definition of
7385 STABS_GCC_MARKER folded in here.
7386 * system.h: Poison now-unused macros.
7387 * doc/tm.texi: Remove documentation of now-unused macros.
7388
7389 2004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
7390
7391 PR c/17538
7392 * c-opts.c (push_command_line_include): Use the current file
7393 name instead of the main one.
7394
7395 2004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
7396
7397 PR objc/17923
7398 * tree.c (staticp): A CONST_DECL has static storage if either
7399 TREE_STATIC or DECL_EXTERNAL is set.
7400 * c-decl.c (pushdecl_top_level): Accept CONST_DECLs which can
7401 have null names.
7402
7403 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
7404
7405 * expr.c (store_expr): Remove dont_store_target.
7406
7407 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
7408
7409 * tree-cfg.c (thread_jumps): Speed up by using a worklist.
7410
7411 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
7412
7413 * tree-cfg.c (thread_jumps): Move a part of it to ...
7414 (thread_jumps_from_bb): ... here.
7415
7416 2004-10-21 David Edelsohn <edelsohn@gnu.org>
7417
7418 * dbxout.c (DBX_FINISH_SYMBOL): Add asm_out_file argument.
7419 * xcoffout.h (DBX_FINISH_SYMBOL): Change asmfile to (ASMFILE).
7420
7421 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
7422
7423 * expr.c (store_expr): Clean up by renaming want_value to
7424 call_param_p.
7425
7426 2004-10-21 Kaz Kojima <kkojima@gcc.gnu.org>
7427
7428 * config/sh/linux-unwind.h (sh_fallback_frame_state): Don't
7429 fixup pc here.
7430
7431 2004-10-21 Aldy Hernandez <aldyh@redhat.com>
7432
7433 PR 18004.
7434 * expmed.c (store_bit_field): Pass original 'value' before
7435 recursing.
7436
7437 2004-10-21 Nicolas Pitre <nico@cam.org>
7438
7439 * config/arm/ieee754-sf.S: Large speed improvements. Fix NAN handling.
7440 * config/arm/ieee754-df.S: Ditto.
7441
7442 2004-10-20 Zack Weinberg <zack@codesourcery.com>
7443
7444 * dbxout.c (asmfile): Delete. All uses changed to asm_out_file.
7445 (DBX_BLOCKS_FUNCTION_RELATIVE, DBX_LINES_FUNCTION_RELATIVE):
7446 Default to 0.
7447 (dbxout_source_line): Use DBX_OUTPUT_SOURCE_LINE when defined.
7448 When it is not, but DBX_LINES_FUNCTION_RELATIVE is true, emit
7449 an internal label and an N_SLINE .stabn whose value is the
7450 difference between that label and the function entry label.
7451 (dbxout_finish): If DBX_OUTPUT_MAIN_SOURCE_FILE_END is not defined,
7452 but DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END is, emit a
7453 label and an N_SO stab with an empty string referring to it.
7454 (dbx_output_lbrac, dbx_output_rbrac): Use if statement instead
7455 of #ifdef directive to test DBX_BLOCKS_FUNCTION_RELATIVE.
7456 (dbxout_type_methods, dbxout_symbol): Remove #if 0 block.
7457 (dbxout_prepare_symbol): Remove #ifdef WINNING_GDB block, this
7458 macro is never defined.
7459 * sdbout.c (sdbout_source_line_counter): Delete.
7460 (PUT_SDB_SRC_FILE): Delete. Uses replaced with sole definition.
7461 (sdbout_source_line): Use SDB_OUTPUT_SOURCE_LINE, which takes
7462 only two arguments.
7463 * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Rename ASM_OUTPUT_LINE.
7464
7465 * config/dbxcoff.h, config/dbxelf.h: Remove unncessary #undefs.
7466 * config/c4x/c4x.h, config/pa/pa.h: Remove unnecessary macro
7467 definitions (identical to default).
7468 * config/darwin.h, config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
7469 * config/h8300/coff.h, config/pa/som.h, config/sh/elf.h:
7470 Define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END, not
7471 DBX_OUTPUT_MAIN_SOURCE_FILE_END.
7472 * config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
7473 * config/mcore/mcore-pe.h, config/pa/som.h, config/sh/elf.h:
7474 Define DBX_LINES_FUNCTION_RELATIVE, not ASM_OUTPUT_SOURCE_LINE.
7475 * config/alpha/alpha-protos.h: Don't prototype alpha_output_lineno.
7476 * config/alpha/alpha.c: Move declaration of num_source_filenames up.
7477 (alpha_start_function): Use SDB_OUTPUT_SOURCE_LINE.
7478 (sym_lineno): Delete.
7479 (alpha_output_filename): Do not emit N_SOL stabs here. Remove
7480 now-unused variable.
7481 (alpha_output_lineno): Delete.
7482 * config/mips/mips-protos.h: Don't prototype mips_output_lineno.
7483 * config/mips/mips.c (mips_output_filename): Don't use
7484 ASM_OUTPUT_FILENAME. Don't emit N_SOL stabs here.
7485 (mips_output_lineno): Delete.
7486 (mips_output_function_prologue: Use SDB_OUTPUT_SOURCE_LINE.
7487 * config/alpha/alpha.h: Define DBX_OUTPUT_SOURCE_LINE and
7488 SDB_OUTPUT_SOURCE_LINE, not ASM_OUTPUT_SOURCE_LINE.
7489 * config/mips/mips.h: Likewise. Don't define ASM_OUTPUT_FILENAME.
7490 * config/mips/sdb.h: Use SDB_OUTPUT_SOURCE_LINE.
7491 * config/avr/avr.h: Don't define ASM_OUTPUT_SOURCE_LINE.
7492 * config/mmix/mmix.h: Likewise.
7493 * config/mmix/mmix.c (mmix_asm_output_source_line): Delete.
7494 * config/mmix/mmix-protos.h: Don't prototype it.
7495 * config/alpha/unicosmk.h: Also #undef PREFERRED_DEBUGGING_TYPE;
7496 no need to #undef ASM_OUTPUT_SOURCE_LINE.
7497 * config/arm/aout.h: Remove RISCiX-specific definition of
7498 DBX_OUTPUT_MAIN_SOURCE_FILENAME.
7499 * config/m32r/m32r.h: Define DBX_OUTPUT_SOURCE_LINE, not
7500 ASM_OUTPUT_SOURCE_LINE.
7501 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Rename to
7502 DBX_OUTPUT_SOURCE_LINE. Don't use current_function_func_begin_label.
7503 * config/vax/elf.h: No need to define DBX_OUTPUT_FUNCTION_END.
7504
7505 * doc/tm.texi: Update.
7506
7507 2004-10-20 Richard Henderson <rth@redhat.com>
7508
7509 * tree-sra.c (instantiate_element): Copy DECL_IGNORED_P also.
7510
7511 2004-10-20 Kelley Cook <kcook@gcc.gnu.org>
7512
7513 * configure.ac: Revert my previous patch.
7514 * configure: Regenerate.
7515
7516 2004-10-20 Ben Elliston <bje@au.ibm.com>
7517
7518 * config/rs6000/rs6000.c
7519 (rs6000_va_start): Use build_va_arg_indirect_ref.
7520 (rs6000_gimplify_va_arg): Likewise.
7521
7522 2004-10-20 Bryce McKinlay <mckinlay@redhat.com>
7523
7524 PR java/15575
7525 * configure.ac: Declare AM_LANGINFO_CODESET.
7526 * aclocal.m4: Define AM_LANGINFO_CODESET.
7527 * configure, config.in: Rebuilt.
7528
7529 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
7530
7531 * expr.c (store_expr): Remove code that is run when
7532 want_value & 1 is nonzero.
7533
7534 2004-10-20 Mark Mitchell <mark@codesourcery.com>
7535
7536 * gthr-posix.h (__gthread_active_p): Use __extension__ around cast
7537 from function pointer to void *.
7538
7539 2004-10-20 Kaz Kojima <kkojima@gcc.gnu.org>
7540
7541 PR target/18032
7542 * config/sh/sh.c (sh_expand_epilogue): Emit a blockage insn before
7543 the frame pointer adjustment when exception handling is enabled.
7544
7545 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
7546
7547 * stor-layout.c: Fix a comment typo.
7548
7549 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
7550
7551 * expr.c (store_field): Remove two arguments value_mode and
7552 unsignedp.
7553 (expand_assignment, store_constructor_field,
7554 expand_expr_real_1): Adjust calls to store_field.
7555
7556 2004-10-18 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
7557
7558 * config/arc/lib1funcs.asm (___umulsidi3): Correct usage of flags.
7559
7560 PR target/17317
7561 * config/arc/arc.h (REGNO_OK_FOR_BASE_P,REGNO_OK_FOR_INDEX_P,
7562 REG_OK_FOR_BASE, REG_OK_FOR_INDEX): Consider blink(r31) as a valid
7563 base and index register for loads.
7564
7565 * config/arc/t-arc: Fix multilib handling.
7566
7567 2004-10-20 Hans-Peter Nilsson <hp@bitrange.com>
7568
7569 * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
7570 don't inspect BLOCK_FOR_INSN for barriers.
7571 * emit-rtl.c (emit_barrier_before): Revert last change.
7572 (emit_barrier_after, emit_barrier): Ditto.
7573
7574 * doc/extend.texi (Extended Asm): Warn and provide example
7575 solution for using a call-clobbered asm register.
7576 (Local Reg Vars): Similar. Cross-reference example.
7577
7578 2004-10-19 Andrew Pinski <pinskia@physics.uc.edu>
7579
7580 * tree-cfg.c (group_case_labels): Look at the second to last
7581 case statement for combing with the default case.
7582
7583 2004-10-19 Richard Hendeson <rth@redhat.com>
7584
7585 PR 17962
7586 * stor-layout.c (layout_type): Set TYPE_ALIGN for vectors.
7587
7588 2004-10-19 Richard Hendeson <rth@redhat.com>
7589
7590 * builtins.c (expand_builtin_memmove): If fold_builtin_memmove
7591 succeeds, only expand the result.
7592
7593 2004-10-19 Richard Hendeson <rth@redhat.com>
7594
7595 PR middle-end/17885
7596 * tree.c (recompute_tree_invarant_for_addr_expr): Always poll address
7597 of INDIRECT_REF.
7598
7599 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
7600
7601 * tree-cfg.c (thread_jumps): Use a do-while loop instead of a
7602 loop with goto.
7603
7604 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
7605
7606 * expr.c (expand_assignment): Remove the last argument.
7607 Change the return type to void.
7608 * expr.h: Update the prototype of expand_assignment.
7609 * function.c (assign_parm_setup_reg): Update a call to
7610 expand_assignment.
7611 * stmt.c (expand_asm_expr): Likewise.
7612
7613 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
7614
7615 * expr.c (expand_expr_real_1) <MODIFY_EXPR>: Remove
7616 unnecessary assignments to temp. Return const0_rtx.
7617
7618 2004-10-19 Kaz Kojima <kkojima@gcc.gnu.org>
7619
7620 * config/sh/sh.c (sh5_schedule_saves): Fix typo.
7621
7622 2004-10-18 Kelley Cook <kcook@gcc.gnu.org>
7623
7624 * configure.ac (powerpc-*-darwin*): Require assembler to support
7625 .machine directive.
7626 * configure: Regenerate.
7627
7628 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7629
7630 * reload1.c (ior_hard_reg_set): Remove.
7631 (finish_spills): Use IOR_HARD_REG_SET instead of
7632 ior_hard_reg_set.
7633
7634 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7635
7636 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Speed up by shifting
7637 the currently visited word to right.
7638
7639 2004-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
7640
7641 PR middle-end/18045
7642 * expmed.c (expand_smod_pow2): Handle modes whose size
7643 is greater than that of HOST_WIDE_INT.
7644
7645 2004-10-18 Ziemowit Laski <zlaski@apple.com>
7646
7647 * c-parse.in (reservedwords): Add OBJC_TYPE_QUAL as alternative.
7648
7649 2004-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
7650 Roger Sayle <roger@eyesopen.com>
7651
7652 PR middle-end/17813
7653 * dojump.c (discard_pending_stack_adjust): New function.
7654 (clear_pending_stack_adjust): Call it.
7655 * expr.h (discard_pending_stack_adjust): Declare it.
7656 * explow.c (emit_stack_save): Emit pending stack adjustments
7657 before saving the stack pointer.
7658 (emit_stack_restore): Discard pending stack adjustments before
7659 restoring the stack pointer.
7660
7661 2004-10-18 Richard Henderson <rth@redhat.com>
7662
7663 * c-common.c (handle_mode_attribute): Allow scalar->vector
7664 type changes yet.
7665
7666 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7667
7668 * expr.c (expand_expr_real_1) [MODIFY_EXPR]: Don't request a
7669 value to expand_assignment.
7670
7671 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7672
7673 * tree-cfg.c (cleanup_tree_cfg): Don't iterate on
7674 thread_jumps.
7675 (thread_jumps): Iterate until no new forwarder block arises.
7676
7677 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7678
7679 * tree-cfg.c (tree_forwarder_block_p): Don't set forwardable.
7680 (thread_jumps): Use forwardable as cache of
7681 tree_forwarder_block_p throughout the function.
7682
7683 2004-10-18 Andreas Krebbel <krebbel1@de.ibm.com>
7684
7685 * cfg.c (dump_flow_info): Remove redundant dump of reg life info.
7686
7687 2004-10-18 Andrew Pinski <pinskia@physics.uc.edu>
7688
7689 PR middle-end/15014
7690 PR middle-end/16973
7691 * tree-cfg.c (remove_bb): If we have a label expression in the
7692 basic block and the label we have taken the address, move the
7693 label expression to the basic block which is previous in the
7694 linked list.
7695 (tree_verify_flow_info): Fix printing out the label name of the
7696 problematic label expression.
7697
7698 2004-10-18 Pat Haugen <pthaugen@us.ibm.com>
7699
7700 PR rtl-optimization/18002
7701 * simplify-rtx.c (mode_signbit_p): Externalize function...
7702 * rtl.h (mode_signbit_p): ... to here.
7703 * combine.c (simplify_shift_const): Recognize PLUS signbit as
7704 canonical form of XOR signbit and move to outer op.
7705
7706 2004-10-18 Diego Novillo <dnovillo@redhat.com>
7707
7708 * tree-cfg.c (bsi_for_stmt): Rename from stmt_for_bsi.
7709 Update all callers.
7710 * tree-ssa.c (replace_immediate_uses): Call bsi_for_stmt.
7711 Don't call fold_stmt more than once, use bsi_replace.
7712
7713 2004-10-18 Diego Novillo <dnovillo@redhat.com>
7714
7715 PR tree-optimization/17656
7716 * tree-ssa.c (replace_immediate_uses): When replacing a
7717 constant, if the call to fold_stmt produced a different
7718 statement, get an appropriate statement pointer by scanning
7719 STMT's basic block.
7720
7721 2004-10-18 Richard Henderson <rth@redhat.com>
7722
7723 * pointer-set.c (hash1): Don't use libm functions in fallback case.
7724
7725 2004-10-18 H.J. Lu <hongjiu.lu@intel.com>
7726
7727 PR bootstrap/17684
7728 * Makefile.in (clean): Remove libgcc_s$(SHLIB_EXT).1.stage?.
7729 (stage1-start): Remove and copy libunwind.a and
7730 libunwind*$(SHLIB_EXT) instead of libunwind*.
7731 (stage2-start): Likewise.
7732 (stage3-start): Likewise.
7733 (stage4-start): Likewise.
7734 (stageprofile-start): Likewise.
7735 (stagefeedback-start): Likewise.
7736
7737 * config/alpha/t-osf4 (SHLIB_LINK): Use a temporary file for
7738 the shared library to be created and don't remove the existing
7739 shared library.
7740 * config/arm/t-netbsd (SHLIB_LINK): Likewise.
7741 * config/i386/t-nwld (SHLIB_LINK): Likewise.
7742 * config/mips/t-slibgcc-irix (SHLIB_LINK): Likewise.
7743 * config/pa/t-hpux-shlib (SHLIB_LINK): Likewise.
7744 * config/sh/t-linux (SHLIB_LINK): Likewise.
7745 * config/t-libunwind-elf (SHLIBUNWIND_LINK): Likewise.
7746 * config/t-slibgcc-darwin (SHLIB_LINK): Likewise.
7747 * config/t-slibgcc-elf-ver (SHLIB_LINK): Likewise.
7748 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
7749
7750 * mklibgcc.in (libgcc-stage-start): Also move "*${objext}s"
7751 files.
7752
7753 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7754
7755 * basic-block.h (reg_set_iterator): New.
7756 (EXECUTE_IF_SET_IN_REG_SET): Make it iterator style.
7757 (EXECUTE_IF_AND_COMPL_IN_REG_SET): Likewise.
7758 (EXECUTE_IF_AND_IN_REG_SET): Likewise.
7759 * caller-save.c (save_call_clobbered_regs): Adjust to the new
7760 style.
7761 * cfgcleanup.c (thread_jump): Likewise.
7762 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
7763 * conflict.c (conflict_graph_compute): Likewise.
7764 * flow.c (verify_local_live_at_start, update_life_info,
7765 initialize_uninitialized_subregs, propagate_one_insn,
7766 init_propagate_block_info, free_propagate_block_info,
7767 propagate_block, dump_regset): Likewise.
7768 * global.c (global_conflicts): Likewise.
7769 * graph.c (start_bb): Likewise.
7770 * local-alloc.c (update_equiv_regs): Likewise.
7771 * loop.c (load_mems): Likewise.
7772 * reload1.c (compute_use_by_pseudos, order_regs_for_reload,
7773 find_reg, finish_spills): Likewise.
7774 * resource.c (mark_target_live_regs): Likewise.
7775 * sched-deps.c (sched_analyze_insn): Likewise.
7776 * sched-rgn.c (sched-rgn.c): Likewise.
7777 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
7778
7779 2004-10-18 Jakub Jelinek <jakub@redhat.com>
7780
7781 * config/i386/i386.md (addqi_1_slp): Test for incdec_operand
7782 operand 1 instead of 2
7783
7784 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
7785
7786 * loop-unroll.c: Fix comment typos.
7787
7788 2004-10-18 Revital Eres <eres@il.ibm.com>
7789
7790 * Makefile.in (loop-unroll.o): Add VARRAY_H dependency.
7791 * loop-unroll.c: Include varray.h.
7792 (struct var_to_expand, struct opt_info): Rename split_ivs_info to
7793 opt_info and expand it to support variable expansion.
7794 (analyze_insns_in_loop): Rename analyze_ivs_to_split and
7795 expand it to support variable expansion.
7796 (pt_info_start_duplication): Rename si_info_start_duplication.
7797 (apply_opt_in_copies): Rename split_ivs_in_copies and add support
7798 to the variable expansion optimization.
7799 (free_opt_info): Rename free_si_info.
7800 (analyze_insn_to_expand_var, referenced_in_one_insn_in_loop_p,
7801 expand_var_during_unrolling, insert_var_expansion_initialization,
7802 combine_var_copies_in_loop_exit, release_var_copies,
7803 get_expansion): New functions.
7804 (peel_loop_completely, unroll_loop_constant_iterations,
7805 unroll_loop_runtime_iterations, peel_loop_simple,
7806 unroll_loop_stupid): Change uses of struct si_info
7807 to struct opt_info
7808 and add uses of fvariable-expansion-in-unroller flag.
7809 * params.def: Add parameter to restrict the number of expansions.
7810 * params.h: (MAX_VARIABLE_EXPANSIONS): New define to restrict
7811 the number of expansions.
7812 * common.opt: (fvariable-expansion-in-unroller): New flag.
7813 * doc/invoke.texi: (fvariable-expansion-in-unroller): Document.
7814
7815 2004-10-18 Danny Smith <dannysmith@users.sourceforge.net>
7816
7817 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define
7818 __GXX_MERGED_TYPEINFO_NAMES to 0.
7819
7820 2004-10-17 Hans-Peter Nilsson <hp@bitrange.com>
7821
7822 * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
7823 handle barriers in a bb by checking that it points to a NULL bb.
7824 * emit-rtl.c (emit_barrier_before): Set BLOCK_FOR_INSN to NULL.
7825 (emit_barrier_after, emit_barrier): Ditto.
7826
7827 2004-10-18 Joseph S. Myers <jsm@polyomino.org.uk>
7828
7829 * doc/extend.texi (Attribute Syntax): Clarify details of
7830 attributes on parameters.
7831
7832 2004-10-17 Zdenek Dvorak <dvorakz@suse.cz>
7833
7834 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Move checking out of
7835 loop.
7836
7837 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
7838
7839 Revert:
7840 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
7841
7842 * c-typeck.c (default_function_array_conversion): Always create
7843 &a[0] for array types.
7844 (build_unary_op): Do not fold &a[x] into a + x.
7845
7846 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
7847
7848 PR middle-end/17925
7849 * cfgexpand.c (expand_gimple_cond_expr): Emit line notes for next basic
7850 block if there is a goto with a locus.
7851
7852 2004-10-17 Kazu Hirata <kazu@cs.umass.edu>
7853
7854 * config/elfos.h, config/gofast.h, config/interix.h,
7855 config/netbsd.h, config/svr3.h, config/vxworks.h,
7856 config/alpha/alpha-modes.def, config/alpha/alpha-protos.h,
7857 config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
7858 config/alpha/netbsd.h, config/arm/arm-modes.def,
7859 config/arm/unknown-elf.h, config/c4x/c4x-modes.def,
7860 config/cris/aout.h, config/frv/frv-modes.def,
7861 config/i386/beos-elf.h, config/i386/gas.h,
7862 config/i386/i386-coff.h, config/i386/i386-modes.def,
7863 config/i386/linux.h, config/i386/linux64.h,
7864 config/i386/mingw32.h, config/i386/netbsd-elf.h,
7865 config/i386/netbsd64.h, config/i386/sco5.h,
7866 config/i386/sol2.h, config/i386/uwin.h, config/i860/i860.md,
7867 config/ia64/ia64-modes.def, config/ia64/itanium1.md,
7868 config/ia64/itanium2.md, config/m68k/m68k-modes.def,
7869 config/mips/mips-modes.def, config/mips/sdb.h,
7870 config/mips/vr.h, config/mips/vxworks.h,
7871 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h,
7872 config/pa/pa32-linux.h, config/rs6000/40x.md,
7873 config/rs6000/7450.md, config/rs6000/8540.md,
7874 config/rs6000/linuxspe.h, config/rs6000/power4.md,
7875 config/rs6000/rs6000-modes.def, config/rs6000/rtems.h,
7876 config/rs6000/spe.h, config/s390/2064.md, config/s390/linux.h,
7877 config/s390/s390-modes.def, config/sh/elf.h,
7878 config/sh/sh-modes.def, config/sh/sh64.h,
7879 config/sparc/ultra1_2.md, config/sparc/ultra3.md,
7880 config/stormy16/stormy16.md, config/v850/v850-protos.h,
7881 config/vax/vax.md: Update copyright.
7882
7883 2004-10-17 Kazu Hirata <kazu@cs.umass.edu>
7884
7885 * expr.c (expand_expr_real_1): Remove an obsolete comment.
7886
7887 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
7888
7889 * c-typeck.c (default_function_array_conversion): Always create
7890 &a[0] for array types.
7891 (build_unary_op): Do not fold &a[x] into a + x.
7892
7893 2004-10-17 Jakub Jelinek <jakub@redhat.com>
7894
7895 * pointer-set.c (hash1): Use integer part of 2^64 / phi
7896 instead 2^32 / phi if long is 64-bit.
7897
7898 2004-10-17 Joseph S. Myers <jsm@polyomino.org.uk>
7899
7900 * c-common.h (enum rid): Remove RID_PTRBASE, RID_PTREXTENT and
7901 RID_PTRVALUE.
7902 * c-parse.in (PTR_VALUE, PTR_BASE, PTR_EXTENT): Remove %token
7903 declarations.
7904 (reswords): Remove __ptrbase, __ptrbase__, __ptrextent,
7905 __ptrextent__, __ptrvalue and __ptrvalue__.
7906 (rid_to_yy): Remove RID_PTRBASE, RID_PTREXTENT and RID_PTRVALUE
7907 entries.
7908
7909 2004-10-16 Dale Johannesen <dalej@apple.com>
7910
7911 * c-common.c (c_common_get_alias_set): Use GGC for type_hash_table.
7912
7913 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
7914
7915 PR tree-optimization/17766
7916 * basic-block.h (enum dom_state): DOM_CONS_OK removed.
7917 (dom_info_available_p): Declare.
7918 * cfghooks.c (split_block, make_forwarder_block): Use
7919 dom_info_available_p.
7920 * dominance.c (compute_dom_fast_query, calculate_dominance_info,
7921 free_dominance_info, verify_dominators): Ditto.
7922 (dom_info_available_p): New function.
7923 * tree-cfg.c (cleanup_control_expr_graph): Free dominance information.
7924 (thread_jumps): Use dom_info_available_p.
7925 * tree-complex.c (expand_complex_div_wide): Ditto.
7926 * tree-mudflap.c (mf_build_check_statement_for): Ditto.
7927
7928 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
7929
7930 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field important_candidates.
7931 (find_best_candidate): Take also important candidates into account.
7932 (find_optimal_iv_set): Initialize important_candidates bitmap.
7933
7934 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
7935
7936 PR tree-optimization/17560
7937 * predict.c (tree_estimate_probability): Mark irreducible
7938 loops.
7939
7940 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
7941
7942 PR rtl-optimization/17723
7943 * cfgcleanup.c (merge_memattrs): Handle case when
7944 MEM_SIZE == NULL_RTX.
7945
7946 2004-10-15 Andrew Pinski <pinskia@physics.uc.edu>
7947
7948 * toplev.c (dump_file_name): Change type to be const.
7949
7950 2004-10-15 Joseph S. Myers <jsm@polyomino.org.uk>
7951
7952 * c-typeck.c (build_compound_expr, build_c_cast): Don't try to use
7953 non_lvalue to stop something being a null pointer constant.
7954
7955 2004-10-15 Aldy Hernandez <aldyh@redhat.com>
7956
7957 * config/rs6000/rs6000.h (FUNCTION_ARG_REGNO_P): FPRs are only
7958 available for TARGET_FPRS.
7959 (FUNCTION_VALUE_REGNO_P): Same.
7960
7961 2004-10-15 Geoffrey Keating <geoffk@apple.com>
7962
7963 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7964 -maltivec in same style as other ISA options.
7965
7966 2004-10-15 Jon Grimm <jgrimm2@us.ibm.com>
7967
7968 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __powerpc__
7969 definition.
7970
7971 2004-10-15 Kazu Hirata <kazu@cs.umass.edu>
7972
7973 * bitmap.c, bitmap.h, builtin-attrs.def, cfglayout.h,
7974 collect2.h, conflict.c, coretypes.h, coverage.h, errors.h,
7975 gcc.h, gcov-dump.c, gen-protos.c, gencheck.c, gencodes.c,
7976 genconstants.c, gengenrtl.c, genmodes.c, genpeep.c,
7977 gensupport.h, graph.h, gthr-gnat.c, gthr-gnat.h, gthr-posix.c,
7978 gthr-posix.h, hard-reg-set.h, hwint.h, integrate.h, libgcc2.c,
7979 lists.c, machmode.def, mips-tdump.c, opts.h, params.c,
7980 predict.def, predict.h, protoize.c, reload.h, resource.h,
7981 rtl-error.c, sbitmap.c, sbitmap.h, sreal.c, tlink.c,
7982 tree-dump.h, tree-inline.h, unwind-dw2-fde.c, unwind-dw2.c,
7983 unwind-sjlj.c, value-prof.h: Update copyright.
7984
7985 2004-10-15 Kazu Hirata <kazu@cs.umass.edu>
7986
7987 * pointer-set.c, tree-vectorizer.c: Fix comment typos.
7988
7989 2004-10-15 Diego Novillo <dnovillo@redhat.com>
7990
7991 * tree-optimize.c (execute_one_pass): Stop timer right after
7992 executing the pass.
7993
7994 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
7995
7996 Revert:
7997 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
7998 PR middle-end/17967
7999 Revert:
8000 * tree-cfg.c (remove_usless_stmts_cond): Fold statement.
8001 (remove_useless_stmts_1): Fold trees we know how to fold.
8002
8003 2004-10-14 David Edelsohn <edelsohn@gnu.org>
8004
8005 * configure.ac: Add .machine power4 directive when testing for
8006 mfcr field.
8007 * configure: Regenerate.
8008
8009 2004-10-14 Geoffrey Keating <geoffk@apple.com>
8010
8011 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Don't define.
8012
8013 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
8014
8015 * tree-vectorizer.c (vect_transform_loop): Declare vectorization_factor
8016 always.
8017
8018 2004-10-14 Daniel Jacobowitz <dan@codesourcery.com>
8019
8020 * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Return NO_REGS
8021 for 'f' if !TARGET_FPRS.
8022
8023 2004-10-14 Richard Henderson <rth@redhat.com>
8024
8025 PR debug/14492
8026 * dwarf2out.c (loc_descriptor_from_tree_1): Handle FIX_*_EXPR.
8027
8028 2004-10-14 Richard Henderson <rth@redhat.com>
8029
8030 PR c/17023
8031 * c-decl.c (store_parm_decls_oldstyle): Care for parameter type
8032 as error_mark_node.
8033 * c-parse.in (compstmt_primary_start): Check cur_stmt_list non-null
8034 instaed of current_function_decl non-null.
8035
8036 2004-10-14 Matt Austern <austern@apple.com>
8037
8038 * pointer-set.c: New file, special-purpose hash table.
8039 * pointer-set.h: New file.
8040 * tree.h (struct pointer_set_t): Declare as opaque type.
8041 (tree_walk): Last argument is pointer_set_t* now.
8042 * tree-inline.c (WALK_SUBTREE): Convert from htab to pset.
8043 (walk_type_fields):
8044 (walk_tree): Convert from htab_t to pointer_set_t for keeping
8045 track of which nodes have already been visited.
8046 (walk_tree_without_duplicates): Convert from htab_t to pointer_set_t.
8047 * cgraphunit.c (cgraph_create_edges): Likewise.
8048 (cgraph_characterize_statics_local): Likewise.
8049 * tree-dfa.c (collect_dfa_stats): Likewise.
8050 * langhooks-def.h (lhd_tree_inlining_walk_subtrees): Last arg is
8051 pointer_set_t* now.
8052 * langhooks.c (lhd_tree_inlining_walk_subtrees): Likewise.
8053 * langhooks.h (struct lang_hooks_for_tree_inlining): Last arg type
8054 of walk_subtrees is pointer_set_t* now.
8055 * Makefile.in (OBJS-common): add pointer-set.o
8056 (tree-inline.o): Depends on pointer-set.h
8057 (tree-dfa.o): Likewise
8058 (cgraphunit.o): Likewise
8059
8060 2004-10-14 Geoffrey Keating <geoffk@apple.com>
8061
8062 * config/rs6000/darwin.h (ASM_SPEC): Delete.
8063 (TARGET_ASM_FILE_START): Define.
8064 * config/darwin.h (ASM_SPEC): Define.
8065 * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Don't supply
8066 -mlong-double-128, it's the default. Update comment about reason
8067 for force_cpusubtype_ALL.
8068 * config/rs6000/darwin-vecsave.asm: Supply .machine.
8069 * config/rs6000/darwin-world.asm: Likewise.
8070 * config/rs6000/rs6000.c (rs6000_darwin_file_start): New.
8071 (symbolic_operand): Delete #if 0ed code.
8072
8073 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
8074
8075 * stmt.c (add_case_node): Make sure that we have integer
8076 constant before calling tree_int_cst_compare.
8077
8078 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
8079
8080 PR middle-end/17967
8081 Revert:
8082 * tree-cfg.c (remove_usless_stmts_cond): Fold statement.
8083 (remove_useless_stmts_1): Fold trees we know how to fold.
8084
8085 2004-10-14 Joseph S. Myers <joseph@codesourcery.com>
8086
8087 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS),
8088 config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow
8089 -m64.
8090
8091 2004-10-14 Ulrich Weigand <uweigand@de.ibm.com>
8092
8093 * reload.c (find_reloads): When reloading a PLUS with constant
8094 operand, make sure the constant is pushed to the constant pool
8095 if required.
8096 * config/s390/s390.c (s390_secondary_input_reload_class): Remove
8097 reload bug workaround.
8098 (s390_expand_plus_operand): Likewise.
8099
8100 2004-10-14 David Edelsohn <edelsohn@gnu.org>
8101
8102 * opts.c (common_handle_option): Do not enable
8103 flag_speculative_prefetching for -fprofile-generate/use.
8104
8105 2004-10-14 Devang Patel <dpatel@apple.com>
8106
8107 PR 17635
8108 * tree-if-conv.c (process_phi_nodes): Process latch block.
8109 (combine_blocks): Process latch block and update loop structure.
8110
8111 2004-10-14 Olga Golovanevsky <olga@il.ibm.com>
8112
8113 * tree-vectorizer.c (vect_generate_tmps_on_preheader):
8114 (vect_update_ivs_after_vectorizer):
8115 (vect_transform_for_unknown_loop_bound):
8116 (tree_duplicate_loop_to_edge):
8117 (allocate_new_names):
8118 (rename_use_op):
8119 (rename_def_op):
8120 (rename_variables_in_bb):
8121 (free_new_names):
8122 (rename_variables_in_loop):
8123 (copy_phi_nodes):
8124 (update_phis_for_duplicate_loop):
8125 (update_phi_nodes_for_guard):
8126 (make_loop_iterate_ntimes):
8127 (tree_duplicate_loop_to_edge_cfg):
8128 (add_loop_guard):
8129 (vect_analyze_loop_with_symbolic_num_of_iters):
8130 (verify_loop_for_duplication):
8131 (vect_gen_niters_for_prolog_loop):
8132 (vect_update_niters_after_peeling):
8133 (vect_update_inits_of_dr):
8134 (vect_update_inits_of_drs):
8135 (vect_build_loop_niters):
8136 (vect_do_peeling_for_alignment): New functions.
8137 (vect_transform_loop): Add unknown and known but indivisible loop
8138 bound support; add peeling for unalignment support.
8139 (vect_analyze_loop_form): Support symbolic number of iterations.
8140 (vect_transform_loop_bound): New input parameter.
8141 (vect_get_loop_niters): Change input parameter type.
8142 (new_loop_vec_info): LOOP_VINFO_NITERS is tree now.
8143 (vectorizable_store): Allow unaligned access.
8144 (vectorize_loops): Add rewrite_into_loop_closed_ssa.
8145 (vect_analyze_data_refs_alignment): Allowed one unaligned
8146 store.
8147 * tree-vectorizer.h (LOOP_VINFO_NITERS_KNOWN_P): Redefined
8148 to use tree.
8149 (LOOP_VINFO_INT_NITERS): New macro.
8150 (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): New define.
8151 (do_peeling_for_alignment):
8152 (unaligned_drs): New members of _loop_vec_info.
8153 (LOOP_DO_PEELING_FOR_ALIGNMENT): New macro.
8154
8155 2004-10-14 Ranjit Mathew <rmathew@hotmail.com>
8156
8157 * tree.h (TREE_STRING_POINTER): Wrap in "const char *".
8158 (struct tree_string): Remove "const" qualifier for "str".
8159
8160 2004-10-14 Ira Rosen <irar@il.ibm.com>
8161
8162 * tree-vectorizer.c (vect_analyze_data_refs): Call
8163 vect_get_base_and_bit_offset to get memory tag for array ref.
8164 (vect_create_addr_base_for_vector_ref): Remove redundant checks.
8165
8166 2004-10-14 Richard Earnshaw <rearnsha@arm.com>
8167
8168 * configure.ac: Use $LN_S for creating symlinks (not $LN).
8169 * configure: Regenerate.
8170
8171 2004-10-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8172
8173 * doc/install.texi (*-*-solaris2*): Update with info about kernel
8174 patches to solve spurious testsuite failures.
8175
8176 2004-10-14 Dorit Naishlos <dorit@il.bim.com>
8177
8178 * tree-vectorizer.c (get_vectype_for_scalar_type): Added debug prinouts.
8179 Added check that vectype is VECTOR_MODE_P, instead of check for BLKmode.
8180 (vect_analyze_operations): Make sure the vectorization factor > 1. Add
8181 gcc_assert under ENABLE_CHECKING.
8182 (vectorizable_operation): Remove check for VECTOR_MODE_P (moved to
8183 get_vectype_for_scalar_type).
8184
8185 (vect_get_vec_def_for_operand): Remove redundant variables.
8186 (vect_transform_loop): Likewise.
8187
8188 2004-10-14 Richard Sandiford <rsandifo@redhat.com>
8189
8190 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Make r11 fixed and
8191 global for -mcaller-super-interworking.
8192 (CALLER_INTERWORKING_SLOT_SIZE): New macro.
8193 * config/arm/arm.c (thumb_compute_save_reg_mask): Save r11 if
8194 CALLER_INTERWORKING_SLOT_SIZE is nonzero and the function does
8195 not need a frame pointer.
8196 (arm_get_frame_offsets): Add CALLER_INTERWORKING_SLOT_SIZE bytes to
8197 the soft frame pointer offset.
8198 (thumb_expand_prologue): Set up r11 for -mcaller-super-interworking.
8199 * config/arm/arm.md (*call_reg_thumb, *call_value_reg_thumb): Use
8200 _interwork_{r7,r11}_call_via_rN if some arguments are passed on
8201 the stack. Use frame_pointer_needed to choose between them.
8202 * config/arm/lib1funcs.asm (_arm_return_{r7,r11}): New functions.
8203 (interwork_with_frame): New macro.
8204 (interwork): Add _interwork_{r7,r11}_call_via_rN().
8205
8206 2004-10-14 Ben Elliston <bje@au.ibm.com>
8207
8208 PR other/17900
8209 * diagnostic.c (trim_filename): Fix logic bug in walking backwards
8210 up the filename looking for a previous directory separator.
8211
8212 2004-10-14 Joseph S. Myers <jsm@polyomino.org.uk>
8213
8214 * c-tree.h (enum c_typespec_kind, struct c_typespec,
8215 parser_xref_tag): New.
8216 (struct c_declspecs): Add tag_defined_p. Adjust definition of
8217 typedef_p.
8218 (declspecs_add_type): Adjust prototypes.
8219 * c-parse.in (%union): Add tstype.
8220 (typespec_nonattr, typespec_attr, typespec_reserved_nonattr,
8221 typespec_reserved_attr, typespec_nonreserved_nonattr,
8222 structsp_attr, structsp_nonattr): Change to tstype. Update
8223 actions.
8224 * c-decl.c (build_null_declspecs): Initialize tag_defined_p.
8225 (declspecs_add_type): Update to take struct c_typespec argument.
8226 Set tag_defined_p and typedef_p as appropriate.
8227 (xref_tag): Rename to parser_xref_tag and replace by wrapper.
8228 Update to return struct c_typespec.
8229 (shadow_tag_warned): Don't let empty declarations with qualifiers
8230 or storage class specifiers redeclare a tag if a previous
8231 declaration is visible.
8232
8233 2004-10-13 Richard Henderson <rth@redhat.com>
8234
8235 PR debug/15860
8236 * dwarf2out.c (rtl_for_decl_location): Apply big-endian correction
8237 for DECL_INCOMING_RTL.
8238
8239 2004-10-14 Hans-Peter Nilsson <hp@axis.com>
8240
8241 PR target/17984
8242 * config/cris/cris.md (asrandb, asrandw, lsrandb, lsrandw): Apply
8243 trunc_int_for_mode for constants used in shortened mode.
8244
8245 2004-10-13 Richard Henderson <rth@redhat.com>
8246
8247 PR c/17384
8248 * c-common.c (handle_mode_attribute): Disallow mode changes that
8249 alter the CODE of the top-level type.
8250
8251 * crtstuff.c (__FRAME_END__): Remove mode attribute. Find 32-bit
8252 integer from internal limits macros.
8253 * config/i386/mm3dnow.h (__v2sf): Fix base type.
8254
8255 2004-10-13 Richard Henderson <rth@redhat.com>
8256
8257 PR debug/13841
8258 * function.c (instantiate_decl): Recurse for CONCAT.
8259
8260 2004-10-13 David Edelsohn <edelsohn@gnu.org>
8261
8262 * config/rs6000/rs6000.md (andsi3): Add attribute "compare" for
8263 andi./andis.
8264 (anddi3): Same.
8265 (extzvdi_internal1): Add attribute "compare".
8266 (extzvdi_internal2): Same.
8267
8268 2004-10-12 Tom Tromey <tromey@redhat.com>
8269
8270 * doc/md.texi (Insn Canonicalizations): Removed extraneous quote.
8271
8272 2004-10-13 Dale Johannesen <dalej@apple.com>
8273
8274 * doc/extend.texi (Extended Asm): Rewrite asm volatile description.
8275
8276 2004-10-13 Frank Ch. Eigler <fche@redhat.com>
8277
8278 * toplev.c (compile_file): Call mudflap_finish_file from here ...
8279 * c-decl.c (c_write_global_declarations): ... instead of here ...
8280 * cp/decl.c (cp_finish_file): ... and here.
8281 * tree-mudflap.c (mudflap_enqueue_decl): Reword a warning message.
8282
8283 2004-10-13 Andrew Pinski <pinskia@physics.uc.edu>
8284
8285 * tree-ssa-dom.c (record_range): Free the element if we are not
8286 going to use it.
8287
8288 2004-10-13 Tom Tromey <tromey@redhat.com>
8289
8290 PR java/15578:
8291 * gcc.c (option_map): Added --extdirs and --encoding.
8292
8293 2004-10-13 Eric Botcazou <ebotcazou@libertysurf.fr>
8294
8295 PR target/14454
8296 * config/sparc/sparc.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Set to
8297 sparc_can_output_mi_thunk.
8298 (sparc_output_mi_thunk): Simplify handling of delta offset. Add
8299 handling of vcall offset.
8300 (sparc_can_output_mi_thunk): New predicate.
8301 * doc/tm.texi (TARGET_ASM_OUTPUT_MI_THUNK): Document VCALL_OFFSET.
8302 (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Delete.
8303 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New target hook.
8304
8305 * config/sparc/sparc.c (emit_and_preserve): Preserve stack alignment.
8306
8307 * config/sparc/sparc.md (movdi): Remove redundant test.
8308
8309 2004-10-13 Paolo Bonzini <bonzini@gnu.org>
8310
8311 * tree-dump.c (dump_options): Remove TDF_TREE, TDF_RTL,
8312 TDF_IPA from -fdump-tree-*-all.
8313
8314 2004-10-13 Paul Brook <paul@codesourcery.com>
8315
8316 * config/arm/arm-protos.h (arm_load_pic_register): Update prototype.
8317 * config/arm/arm.c (thumb_find_work_register): Update comments.
8318 (arm_load_pic_register): Add argument for scratch register.
8319 (arm_expand_prologue, thumb_expand_prologue): Pass extra argument.
8320 * config/arm/arm.md (builtin_setjmp_receiver): Ditto.
8321
8322 2004-10-13 Kazu Hirata <kazu@cs.umass.edu>
8323
8324 * tree-data-ref.c: Fix comment typos.
8325
8326 2004-10-13 Jakub Jelinek <jakub@redhat.com>
8327 Zdenek Dvorak <dvorakz@suse.cz>
8328
8329 PR tree-optimization/17724
8330 * tree-cfg.c (tree_purge_dead_eh_edges): Free dominance info.
8331
8332 2004-10-13 Dorit Naishlos <dorit@il.ibm.com>
8333
8334 * rs6000.c (altivec_builtin_mask_for_load): Made static GTY(()).
8335 (altivec_builtin_mask_for_store): Likewise.
8336 (altivec_init_builtins): Use lang_hooks.builtin_function to
8337 create the decls for builtin_altivec_mask_for_load/store.
8338
8339 2004-10-13 Nick Clifton <nickc@redhat.com>
8340
8341 * config/c4x/c4x.c: Remove inclusion of loop.h.
8342
8343 2004-10-12 Ben Elliston <bje@au.ibm.com>
8344
8345 * basic-block.h (edge_iterator): Keep the address of VEC(edge) *.
8346 (ei_container): New; renamed.
8347 (ei_start, ei_last): New macros.
8348 (ei_start_1, ei_last_1): Renamed from ei_start.
8349 (ei_last_1, ei_end_p): Use ei_container() where applicable.
8350 (ei_one_before_end_p, ei_next, ei_edge): Likewise.
8351 * gcse.c (remove_reachable_equiv_notes): Use ei_container().
8352
8353 2004-10-11 Sebastian Pop <pop@cri.ensmp.fr>
8354
8355 * Makefile.in (tree-ssa-loop-niter.o): Depends on tree-data-ref.h.
8356 * cfgloop.c (initialize_loops_parallel_p): New.
8357 (flow_loops_find): Initialize the parallel_p field to true for all
8358 the loops.
8359 * tree-ssa-loop-niter.c: Include "tree-data-ref.h".
8360 (estimate_numbers_of_iterations_loop): Infers the loop bounds from
8361 the size of the data accessed in the loop.
8362 (struct nb_iter_bound): Moved...
8363 * cfgloop.h (struct nb_iter_bound): ... here.
8364 (estimated_nb_iterations, parallel_p): New fields in struct loop.
8365 (record_estimate): Declare extern here.
8366 * tree-chrec.c: Fix comments.
8367 (nb_vars_in_chrec): New function.
8368 * tree-chrec.h (nb_vars_in_chrec): Declared here.
8369 * tree-data-ref.c: Don't include lambda.h, that is already included
8370 in tree-data-ref.h.
8371 (tree_fold_divides_p): Don't check for integer_onep.
8372 (tree_fold_bezout): Removed.
8373 (gcd): New static duplicated function.
8374 (int_divides_p, dump_subscript): New.
8375 (dump_data_dependence_relation): Use dump_subscript.
8376 (dump_dist_dir_vectors, dump_ddrs, compute_estimated_nb_iterations,
8377 estimate_niter_from_size_of_data): New.
8378 (analyze_array_indexes, analyze_array): Call
8379 estimate_niter_from_size_of_data during the detection of array
8380 references. Pass in a pointer to the statement that contains the
8381 array reference.
8382 (all_chrecs_equal_p): New.
8383 (compute_distance_vector): Renamed compute_subscript_distance.
8384 Deal with multivariate conflict functions.
8385 (initialize_data_dependence_relation): Initialize DDR_AFFINE_P,
8386 DDR_SIZE_VECT, DDR_DIST_VECT, and DDR_DIR_VECT.
8387 (non_affine_dependence_relation): New.
8388 (analyze_ziv_subscript, analyze_siv_subscript_cst_affine,
8389 analyze_siv_subscript, analyze_miv_subscript,
8390 analyze_overlapping_iterations, subscript_dependence_tester):
8391 Initialize and return last_conflicts function.
8392 (initialize_matrix_A, FLOOR, compute_overlap_steps_for_affine_univar,
8393 compute_overlap_steps_for_affine_1_2): New.
8394 (analyze_siv_subscript_affine_cst): Removed.
8395 (analyze_subscript_affine_affine): Disprove dependences based on the
8396 iteration domains. Solve the univariate dependence case as before,
8397 but use lambda_matrix_right_hermite instead of tree_fold_bezout.
8398 Implement the multivariate case of 2 versus 1 variables.
8399 (build_classic_dist_vector, build_classic_dir_vector): Implement some
8400 unhandled cases.
8401 (find_data_references_in_loop): Compute and initialize
8402 loop->estimated_nb_iterations and loop->parallel_p.
8403 (analyze_all_data_dependences): Modify the debug dump order.
8404 * tree-data-ref.h (SUB_LAST_CONFLICT_IN_A, SUB_LAST_CONFLICT_IN_B,
8405 subscript->last_conflict_in_a, subscript->last_conflict_in_b): Removed.
8406 (SUB_LAST_CONFLICT, subscript->last_conflict,
8407 data_dependence_relation->affine_p, data_dependence_relation->size_vect,
8408 DDR_AFFINE_P, DDR_SIZE_VECT): New.
8409 (find_data_references_in_loop, initialize_data_dependence_relation,
8410 dump_subscript, dump_ddrs, dump_dist_dir_vectors): Declared here.
8411
8412 2004-10-12 Kelley Cook <kcook@gcc.gnu.org>
8413
8414 * configure: Regenerate.
8415
8416 2004-10-12 Fariborz Jahanian <fjahanian@apple.com>
8417
8418 PR 17892
8419 * tree-ssa-dom.c (unsafe_associative_fp_binop): New function.
8420 (simplify_rhs_and_lookup_avail_expr): Disallow associativity
8421 and constant folding of floating point MULT_EXPR/PLUS_EXPR
8422 expressions.
8423
8424 2004-10-12 Ulrich Weigand <uweigand@de.ibm.com>
8425
8426 * config/s390/s390.c (s390_va_start): Use build_va_arg_indirect_ref.
8427 (s390_gimplify_va_arg): Likewise.
8428
8429 2004-10-12 Daniel Jacobowitz <dan@debian.org>
8430
8431 * defaults.h (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P)
8432 (MODE_BASE_REG_REG_CLASS, REGNO_MODE_OK_FOR_REG_BASE_P)
8433 (REG_MODE_OK_FOR_REG_BASE_P): Provide default definitions.
8434 * regclass.c (record_address_regs): Remove ifdef. Use
8435 REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
8436 * regrename.c (REG_MODE_OK_FOR_BASE_P): Remove unnecessary
8437 definition.
8438 (scan_rtx_address, replace_oldest_value_addr): Use
8439 REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
8440 * reload.c (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Remove
8441 unnecessary definitions.
8442 (find_reloads_address_1): Support REG_MODE_OK_FOR_REG_BASE_P
8443 and MODE_BASE_REG_REG_CLASS.
8444 * config/arm/arm.h (MODE_BASE_REG_CLASS): Don't check reload_completed.
8445 (MODE_BASE_REG_REG_CLASS): Define.
8446 (REGNO_MODE_OK_FOR_REG_BASE_P): Define.
8447 (REG_MODE_OK_FOR_REG_BASE_P): Define.
8448 * doc/tm.texi (Register Classes): Document MODE_BASE_REG_REG_CLASS,
8449 REG_MODE_OK_FOR_REG_BASE_P, and REGNO_MODE_OK_FOR_REG_BASE_P.
8450
8451 2004-10-12 Daniel Berlin <dberlin@dberlin.org>
8452
8453 * tree-ssa-alias.c (verify_name_tags): New function.
8454 (verify_flow_sensitive_alias_info): Remove code that used to check name tags.
8455 (verify_alias_info): Call verify_name_tags.
8456
8457 2004-10-12 Kazu Hirata <kazu@cs.umass.edu>
8458
8459 PR rtl-optimization/17931
8460 * config/i386/i386.c (ix86_rtx_costs): Handle COMPARE with
8461 ZERO_EXTRACT in it.
8462
8463 2004-10-12 Richard Earnshaw <rearnsha@arm.com>
8464
8465 * arm.c (arm_print_operand): Use output_operand_lossage where possible
8466 rather than aborting.
8467
8468 2004-10-12 Paul Brook <paul@coudesourcery.com>
8469
8470 * config.gcc: Add armv6{k,z,zk}
8471 * config/arm/arm-cores.def: Add arm1176 and mpcore.
8472 * config/arm/tune.md: Regenerate.
8473 * config/arm/arm.c (FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK):
8474 Define.
8475 (all_architectures): Add armv6k, armv6z, armv6zk.
8476 * config/arm/lib1funcs.asm: Recognise new arm arcitectures.
8477 * doc/invoke.texi: Document new arch and cpu values.
8478
8479 2004-10-12 Paul Brook <paul@coodesourcery.com>
8480
8481 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Change meabi=3 to
8482 meabi=4.
8483
8484 2004-10-12 Paul Brook <paul@codesourcery.com>
8485
8486 * config/arm/arm.md (addsi3_cbranch_scratch): Correct constraints.
8487 Handle negative constants.
8488
8489 2004-10-12 Joseph S. Myers <jsm@polyomino.org.uk>
8490
8491 PR c/17301
8492 * c-typeck.c (convert_arguments): Return error_mark_node if there
8493 are too few arguments.
8494 (build_function_call): Handle error_mark_node return from
8495 convert_arguments.
8496
8497 2004-10-06 Paolo Bonzini <bonzini@gnu.org>
8498
8499 * configure.ac (symbolic_link): Replace with $LN_S.
8500 (Assembler/Linker): Hard link from gas and binutils trees.
8501 * aclocal.m4 (gcc_AC_PROG_LN_S): Try "cp -p" before cp.
8502 * configure: Regenerate.
8503
8504 2004-10-12 Paul Brook <paul@codesourcery.com>
8505
8506 * configure.ac: Don't look for host assembler when building a canadian
8507 cross.
8508 * configure: Regenerate.
8509
8510 2004-10-11 Roger Sayle <roger@eyesopen.com>
8511
8512 PR other/17361
8513 * c-opts.c (permit_fortran_options): Delete/obsolete global variable.
8514 (c_common_init_options): Remove #ifdef CL_F77 code. Scan command
8515 line options for "-lang-asm" and if found allow any of the C-family
8516 front-end options.
8517 (c_common_handle_option): Remove last use of permit_fortran_options.
8518
8519 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
8520
8521 * config/s390/s390.c (print_operand): Support 'S' format flag.
8522 * config/s390/s390.md ("*tmqi_mem"): Use 'S' format flag.
8523 ("*tstsi", "*tstsi_cconly", "*tstsi_cconly2"): Likewise.
8524 ("*tsthiCCT", "*tsthiCCT_cconly", "*tsthi", "*tsthi_cconly"): Likewise.
8525 ("*tstqiCCT", "*tstqiCCT_cconly", "*tstqi", "*tstqi_cconly"): Likewise.
8526 ("*cmphi_ccu", "*cmpqi_ccu", "*clc"): Likewise
8527 ("movti", "*movdi_31", "*movqi", "*movdf_31", "*mvc"): Likewise.
8528 ("*movstricthi"): Likewise.
8529 ("*load_multiple_di", "*load_multiple_si"): Likewise.
8530 ("*store_multiple_di", "*store_multiple_si"): Likewise.
8531 ("*sethiqisi", "*sethihisi"): Likewise.
8532 ("*sethiqidi_64", "*sethiqidi_31"): Likewise.
8533 ("*andqi3_zarch", "*andqi3_esa", "*nc"): Likewise.
8534 ("*iorqi3_zarch", "*iorqi3_esa", "*oc"): Likewise.
8535 ("*xorqi3", "*xc", "*xc_zero"): Likewise.
8536 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): Likewise.
8537
8538 ("*tmhi_full"): Fix incorrect op_type attribute.
8539
8540 ("*adddi3_alc_cc", "*adddi3_alc"): Remove double backslash.
8541 ("*subdi3_slb_cc", "*subdi3_slb"): Likewise.
8542 ("*addsi3_alc_cc", "*addsi3_alc"): Likewise.
8543 ("*subsi3_slb_cc", "*subsi3_slb"): Likewise.
8544
8545 2004-10-11 Andrew Pinski <pinskia@physics.uc.edu
8546
8547 PR middle-end/16266
8548 * function.c (temp_slots_at_level): Fix typo which creates too
8549 many temp stack slots levels.
8550
8551 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
8552
8553 * config/s390/s390.c (s390_trampoline_template): Generate shorter
8554 trampoline code.
8555 (s390_trampoline_instantiate): Adapt.
8556 * config/s390/s390.h (TRAMPOLINE_SIZE): Adapt to new code.
8557
8558 2004-10-11 Roger Sayle <roger@eyesopen.com>
8559
8560 PR middle-end/17657
8561 * stmt.c (add_case_node): Add additional type argument. Declare
8562 as static to match prototype. Convert the upper and lower bounds
8563 to the specified index type. Optimize away case ranges/values
8564 that are outside the index type's bounds. Truncate case ranges
8565 that span the index type's bounds.
8566 (expand_case): Avoid unnessary computation and memory allocation
8567 when index type is error_mark_node. Pass index_type as required
8568 by change to add_case_node API. No need to convert case range
8569 bounds to index_type, this is now done by add_case_node.
8570
8571 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
8572
8573 * config/s390/s390-protos.h (s390_offset_p): Add prototype.
8574 * config/s390/s390.c (s390_offset_p): New function.
8575 * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccu",
8576 "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use splitter to
8577 transform Q->Q alternatives to *clc pattern.
8578 ("*clc"): Move.
8579 ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
8580 "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf"): Use splitter
8581 to transform Q->Q alternatives to *mvc pattern.
8582 ("*mvc"): Move. Add peephole to merge adjacent MVCs.
8583 ("*anddi3", "*andsi3_zarch", "*andsi3_esa", "*andhi3_zarch",
8584 "*andhi3_esa", "*andqi3_zarch", "*andqi3_esa"): Use splitter to
8585 transform Q->Q alternatives to *nc pattern.
8586 ("*nc"): New insn. New peephole to merge adjacent NCs.
8587 ("*iordi3", "*iorsi3_zarch", "*iorsi3_esa", "*iorhi3_zarch",
8588 "*iorhi3_esa", "*iorqi3_zarch", "*iorqi3_esa"): Use splitter to
8589 transform Q->Q alternatives to *oc pattern.
8590 ("*oc"): New insn. New peephole to merge adjacent OCs.
8591 ("*xordi3", "*xorsi3", "*xorhi3", "*xorqi3"): Use splitter to
8592 transform Q->Q alternatives to *xc pattern.
8593 ("*xc"): New insn. New peephole to merge adjacent XCs.
8594 ("*xc_zero"): Move. Add peephole to merge adjacent XCs.
8595
8596 2004-10-11 Andrew Pinski <pinskia@physics.uc.edu>
8597
8598 * gimplify.c (gimple_push_condition): Make sure that we don't
8599 have any saved condition cleanup if we were at the top level.
8600
8601 2004-10-11 Richard Sandiford <rsandifo@redhat.com>
8602
8603 * config/frv/frv.md (*adddi3_internal): Change name to...
8604 (adddi3): ...replacing the exisiting define_expand. Combine
8605 alternatives. Fix the range of the constant constraints ('J' instead
8606 of 'NOP'). Remove bogus operands[2] check. Use simplify_gen_subreg
8607 to extract the lower and upper halves of the DImode operands.
8608 Always use addi3_lower and adddi3_upper, not the subdi3 forms.
8609 (adddi3_lower): Fix the range of the constant constraints and
8610 remove the bogus operands[2] check.
8611 (adddi3_upper): Use gpr_or_int10_operand as the predicate for
8612 operand 2. Use addxi to handle constant operands.
8613 (subdi3_lower, subdi3_upper): Don't handle constant operands.
8614
8615 2004-10-11 Nathan Sidwell <nathan@codesourcery.com>
8616
8617 * gengtype-lex.l: Add commented } & ) characters to unconfuse
8618 editor's paren matching. Allow #define inside a struct.
8619
8620 2004-10-10 Andrew Pinski <pinskia@physics.uc.edu>
8621
8622 PR middle-end/17703
8623 part of PR c++/17657
8624 * fold-const.c (fold_build_cleanup_point_expr): New function.
8625 * tree.h (fold_build_cleanup_point_expr): Prototype.
8626
8627 2004-10-10 Eric Christopher <echristo@redhat.com>
8628
8629 * dwarf2out.c: Move attribute to subprogram declaration
8630 instead of subroutine type.
8631
8632 2004-10-10 Kazu Hirata <kazu@cs.umass.edu>
8633
8634 * basic-block.h: Remove the prototypes for can_hoist_insn_p,
8635 hoist_insn_after, and hoist_insn_to_edge.
8636 * rtl.h: Remove the prototypes for reg_referenced_between_p,
8637 no_jumps_between_p, and insn_dependent_p.
8638 * rtlanal.c (no_jumps_between_p, reg_referenced_between_p,
8639 insn_dependent_p, insn_dependent_p_1, hoist_test_store,
8640 can_hoist_insn_p, hoist_update_store, hoist_insn_after,
8641 hoist_insn_to_edge): Remove.
8642
8643 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
8644
8645 PR c/17881
8646 * c-decl.c (grokparms): Don't warn for parameters of incomplete
8647 type in declarations that are not definitions except for the case
8648 of parameters of void type.
8649
8650 2004-10-10 Kazu Hirata <kazu@cs.umass.edu>
8651
8652 * tree-cfg.c: Fix comment typos.
8653
8654 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
8655
8656 PR c/17301
8657 * builtins.c (expand_builtin_va_start): Check for too few
8658 arguments to va_start.
8659
8660 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
8661
8662 PR c/17189
8663 * c-decl.c (grokfield): Make diagnostic for bad cases of unnamed
8664 fields a pedwarn. Pedwarn here for unnamed structs/unions if
8665 pedantic.
8666 * c-parse.in (component_decl): Don't pedwarn here for unnamed
8667 fields.
8668
8669 2004-10-09 Zdenek Dvorak <dvorakz@suse.cz>
8670
8671 PR tree-optimization/17906
8672 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not attempt to
8673 copy non-gimple reg arguments.
8674
8675 2004-10-09 Roger Sayle <roger@eyesopen.com>
8676
8677 PR rtl-optimization/17853
8678 * simplify-rtx.c (simplify_relational_operation): Correct comment.
8679 Reorganize handling of comparison operations with floating point
8680 results (always return 0.0 even without FLOAT_STORE_FLAG_VALUE).
8681 Likewise, introduce support for comparison operations with vector
8682 result types, introducing a new VECTOR_STORE_FLAG_VALUE target macro.
8683
8684 * doc/rtl.texi: Document new VECTOR_STORE_FLAG_VALUE target macro.
8685 * doc/tm.texi: Likewise.
8686
8687 2004-10-09 Steven Bosscher <stevenb@suse.de>
8688
8689 * regs.h (struct reg_info_def): Remove the last_node_uid and
8690 changes_mode fields.
8691 (REGNO_LAST_NOTE_UID): Don't define.
8692 * regclass.c (reg_scan_mark_refs): Don't set REGNO_LAST_NOTE_UID.
8693 * regmove.c (copy_src_to_dest): Likewise.
8694
8695 2004-10-09 Roger Sayle <roger@eyesopen.com>
8696
8697 PR middle-end/17894
8698 * fold-const.c (fold_div_compare): When optimizing X/C1 op C2, the
8699 relational comparison operator op needs to be swapped/reversed when
8700 C1 is negative. i.e. X/-10 < 1 becomes X >= -9, not X < -9.
8701
8702 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
8703
8704 PR tree-opt/17902
8705 * tree-ssa-phiopt.c (conditional_replacement): Use bsi_after_labels
8706 instead of bsi_start.
8707 (value_replacement): Likewise.
8708 (abs_replacement): Likewise
8709
8710 2004-10-09 Steven Bosscher <stevenb@suse.de>
8711
8712 * cfgexpand.c (maybe_dump_rtl_for_tree_stmt): New function.
8713 (expand_gimple_cond_expr, expand_gimple_tailcall,
8714 expand_gimple_basic_block): Use it to dump RTL for each stmt.
8715 (tree_expand_cfg): Announce full RTL function dump.
8716 * tree-optimize.c (execute_one_pass): Use normal RTL printing,
8717 not the graph version.
8718 * tree-pretty-print.c (dump_generic_node): Allow empty statements
8719 in the arms of a COND_EXPR for lowered nodes.
8720
8721 2004-10-08 Joseph S. Myers <joseph@codesourcery.com>
8722
8723 * config/rs6000/spe.h (atosfix16, atosfix32, atosfix64, atoufix16,
8724 atoufix32, atoufix64, strtosfix16, strtosfix32, strtosfix64,
8725 strtoufix16, strtoufix32, strtoufix64): Declare.
8726
8727 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
8728
8729 * c-lex.c (interpret_float): Give a pedwarn rather than a warning
8730 for an out-of-range floating point constant.
8731 * builtins.c (fold_builtin_inf): Give a pedwarn rather than a
8732 warning if the target format does not support infinities.
8733
8734 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
8735
8736 * emit-rtl.c (last_label_num, base_label_num): Remove.
8737 (max_label_num): Always return label_num.
8738 (set_new_last_label_num, restore_emit_status): Remove.
8739 (init_emit): Don't initialize last_label_num.
8740 * function.c (pop_function_context_from): Don't call
8741 restore_emit_status.
8742 * function.h: Remove the prototype for restore_emit_status.
8743 * rtl.h: Remove the prototype for set_new_last_label_num.
8744
8745 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
8746
8747 * stmt.c (expand_decl_init): Remove.
8748 * tree.h: Remove the corresponding prototype.
8749
8750 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
8751
8752 * integrate.c (try_constants, subst_constants, mark_stores):
8753 Remove.
8754 * integrate.h: Remove the prototype for try_constants.
8755
8756 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
8757
8758 * c-typeck.c (enum impl_conv): Add ic_argpass_nonproto.
8759 (convert_for_assignment): Handle ic_argpass_nonproto. Add
8760 comments about its relevance to errors.
8761 (c_convert_parm_for_inlining): Use ic_argpass_nonproto.
8762
8763 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
8764
8765 PR c/16999
8766 * c-ppoutput.c (cb_ident): Don't quote string as it is already
8767 quoted.
8768
8769 2004-10-08 Diego Novillo <dnovillo@redhat.com>
8770
8771 * tree-ssa-pre.c (init_pre): Use size of ARRAY_REF to allocate
8772 reference_node_pool.
8773
8774 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
8775
8776 * tree-cfg.c: Fix a comment typo.
8777
8778 2004-10-08 Andreas Krebbel <krebbel1@de.ibm.com>
8779
8780 * config/s390/s390.c (s390_register_info): Don't save fprs for
8781 -msoft-float.
8782 (s390_conditional_register_usage): Make fprs 'fixed' for -msoft-float.
8783
8784 2004-10-08 Ulrich Weigand <uweigand@de.ibm.com>
8785
8786 * config/s390/s390.h (TARGET_DEFAULT_BACKCHAIN): New define.
8787 (TARGET_DEFAULT): Use symbolic values.
8788 * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Redefine.
8789 (TARGET_DEFAULT): Use symbolic values.
8790 * config/s390/s390.c (s390_backchain_string): Initialize to
8791 TARGET_DEFAULT_BACKCHAIN.
8792
8793 2004-10-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8794
8795 * builtins.c (expand_builtin_mempcpy): Move tree handling code to
8796 fold_builtin_mempcpy. Accept a type parameter. Delete duplicate
8797 code.
8798 (expand_builtin_strcat): Accept a type parameter.
8799 (fold_builtin_mempcpy): Accept a type and endp parameter.
8800
8801 * builtins.c (expand_builtin_strncpy): Delete duplicate code.
8802 Accept an `exp' instead of an `arglist'.
8803
8804 2004-10-08 Nathan Sidwell <nathan@codesourcery.com>
8805
8806 * tree-tailcall.c (tree_optimize_tail_calls_1): Use fold_convert,
8807 reverting my 2004-09-07 patch to use build_int_cst.
8808
8809 2004-10-08 Eric Botcazou <ebotcazou@libertysurf.fr>
8810
8811 PR target/17245
8812 * config/sparc/sparc.c (input_operand): Remove redundant code
8813 for handling LO_SUM.
8814 (legitimate_address_p) <REG+REG>: Do not recheck TARGET_V9.
8815 <LO_SUM>: If LO_SUM is offsettable, accept it for TFmode on V9.
8816 Otherwise only accept it for TFmode if quad move insns are available.
8817
8818 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
8819
8820 * tree-cfg.c (tree_forwarder_block_p): Reorder checks so that
8821 common cases will be caught earlier than others.
8822
8823 2004-10-08 Michael Matz <matz@suse.de>
8824
8825 * loop-doloop.c (doloop_optimize): Extend count.
8826
8827 2004-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
8828
8829 * config/sh/sh.md (prefetch_media, prefetch_i4): New insns.
8830 (prefetch): Convert to expander.
8831
8832 2004-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
8833
8834 * config/sh/sh.md (tls_global_dynamic): Use MEM pattern for the
8835 first argument of CALL.
8836 (tls_local_dynamic): Likewise.
8837
8838 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
8839
8840 * c-typeck.c (enum impl_conv): New.
8841 (convert_for_assignment): Use it. Take tree for function called
8842 instead of its name. Handle ObjC selectors for diagnostics at
8843 start of function. Select diagnostic text within the function
8844 using full sentences for diagnsotics. Use %qE to name functions
8845 in diagnostics.
8846 (convert_arguments, build_modify_expr,
8847 c_convert_parm_for_inlining, digest_init, c_finish_return): Update
8848 callers to convert_for_assignment.
8849 (warn_for_assignment): Remove.
8850
8851 2004-10-08 Nick Clifton <nickc@redhat.com>
8852
8853 * config/sh/symbian.c (symbian_possibly_export_base_class):
8854 Replace use of deleted TYPE_USES_VIRTUAL_BASECLASSES macro with
8855 TYPE_CONTAINS_VPTR_P.
8856
8857 2004-10-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
8858
8859 * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Don't exclude
8860 fixed registers form all_used_regs. Update call_really_used_regs.
8861 (CALL_REALLY_USED_REGISTERS): Define.
8862 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Replace call_used_regs
8863 with call_really_used_regs.
8864
8865 2004-10-08 Alan Modra <amodra@bigpond.net.au>
8866
8867 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Choose gcrt1.o
8868 for -profile as well as -p and -pg.
8869
8870 2004-10-07 Andrew Pinski <pinskia@physics.uc.edu>
8871
8872 * libgcc2.c (__moddi3): Cast &w to UDWtype*.
8873
8874 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
8875
8876 * tree-cfg.c (tree_block_forwards_to): Remove.
8877 * tree-flow.h: Remove the corresponding prototype.
8878
8879 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
8880
8881 * tree-flow-inline.h (phi_nodes): Remove an unnecessary check
8882 for ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR.
8883
8884 2004-10-07 Geoffrey Keating <geoffk@apple.com>
8885
8886 Radar 3813796
8887 * config/rs6000/rs6000.c (rs6000_generate_compare): When
8888 flag_trapping_math is in effect, don't generate subtract
8889 instructions.
8890
8891 2004-10-07 Ulrich Weigand <uweigand@de.ibm.com>
8892
8893 * config/s390/s390-protos.h (s390_narrow_logical_operator): Add.
8894 * config/s390/s390.c (s390_narrow_logical_operator): New function.
8895 (s390_extra_constraint_str): Add 'A' constraints.
8896 (s390_const_ok_for_constraint_p): Add 'Nx' constraints.
8897 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'A' constraint.
8898 (CONSTRAINT_LEN): Likewise.
8899 * config/s390/s390.md ("*anddi3"): Add NI alternative and splitter.
8900 ("*andsi3_zarch", "*andsi3_esa"): Likewise.
8901 ("*andhi3_zarch", "*andhi3_esa"): Likewise.
8902 ("*iordi3"): Add OI alternative and splitter.
8903 ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
8904 ("*iorhi3_zarch", "*iorhi3_esa"): Likewise.
8905 ("*xordi3"): Add XI alternative and splitter.
8906 ("*xorsi3", "*xorhi3"): Likewise.
8907
8908 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
8909
8910 * config/mips/mips.c (mips_function_rodata_section): New function.
8911 (TARGET_ASM_FUNCTION_RODATA_SECTION): Use it.
8912
8913 2004-10-07 Devang Patel <dpatel@apple.com>
8914
8915 * rs6000/altivec.md (UNSPEC_VCMPBFP, UNSPEC_VCMPEQUB, UNSPEC_VCMPEQUH,
8916 UNSPEC_VCMPEQUW, UNSPEC_VCMPGEFP, UNSPEC_VCMPGTUB, UNSPEC_VCMPGTSB,
8917 UNSPEC_VCMPGTUH, UNSPEC_VCMPGTSH, UNSPEC_VCMPGTUW, UNSPEC_VCMPGTSW,
8918 UNSPEC_VCMPGTFP, UNSPEC_VSEL4SI, UNSPEC_VSEL4SF, UNSPEC_VSEL8HI,
8919 UNSPEC_VSEL16QI, UNSPEC_VCOND_V4SI, UNSPEC_VCOND_V4SF, UNSPEC_VCOND_V8HI,
8920 UNSPEC_VCOND_V16QI, UNSPEC_VCONDU_V4SI, UNSPEC_VCONDU_V8HI,
8921 UNSPEC_VCONDU_V16QI): New constant defines.
8922 (vcondv4si, vcondv4sf, vcondv8hi, vcondv16qi, vconduv4si, vconduv8hi,
8923 vconduv16qi): New patterns.
8924 * rs6000/rs6000-protos.h (rs6000_emit_vector_cond_expr): New function.
8925 * rs6000/rs6000.c (rs6000_emit_vector_cond_expr): New function.
8926 (get_vec_cmp_insn): Same.
8927 (get_vsel_insn): Same.
8928 (rs6000_emit_vector_compare): Same.
8929 (rs6000_emit_vector_select): Same.
8930 (INSN_NOT_AVAILABLE): New.
8931
8932 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
8933
8934 PR tree-optimization/17749
8935 * tree-tailcall.c (find_tail_calls): Check that parameter is
8936 a gimple_reg.
8937
8938 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
8939
8940 * config/ia64/ia64.c: Fix a comment typo.
8941
8942 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
8943
8944 * doc/install.texi (*-*-solaris2*): Fix marker for URL.
8945
8946 2004-10-07 Giovanni Bajo <giovannibajo@gcc.gnu.org>
8947
8948 PR c++/17115
8949 * tree-inline.c (expand_call_inline): Do not warn for functions
8950 marked with attribute noinline.
8951
8952 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
8953
8954 PR target/17862
8955 * config/sparc/sparc.c (sparc_output_mi_thunk): Set
8956 current_function_uses_only_leaf_regs as well as sparc_leaf_function_p.
8957
8958 * config/sparc/sparc.c (sparc_gimplify_va_arg): Pass 'false' instead
8959 of 0 as 4th argument to pass_by_reference.
8960 Call build_va_arg_indirect_ref instead of build_fold_indirect_ref.
8961
8962 2004-10-06 Eric Christopher <echristo@redhat.com>
8963
8964 * config/sh/sh.c (sh_dwarf_calling_convention): Fix renesas dwarf
8965 attribute.
8966
8967 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
8968
8969 PR target/17770
8970 * config/mips/mips.md (mov_<load>l): Remove hazard=none attribute.
8971
8972 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
8973
8974 PR rtl-optimization/17791
8975 * loop-doloop.c (doloop_modify): Take number of iterations as
8976 argument.
8977 (doloop_optimize): Extend or shorten the number of iterations
8978 when changing mode of counter register.
8979 * loop-iv.c (lowpart_subreg): Export.
8980 * rtl.h (lowpart_subreg): Declare.
8981
8982 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
8983
8984 PR tree-optimization/17806
8985 * cfghooks.c (split_edge): Update IRREDUCIBLE_LOOP flags.
8986 * cfgloopmanip.c (loop_split_edge_with): Updating of IRREDUCIBLE_LOOP
8987 flags moved to split_edge.
8988
8989 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
8990
8991 PR middle-end/17835
8992 * expmed.c (expand_sdiv_pow2): Force a stack adjustment
8993 before tentatively building the conditional move sequence.
8994
8995 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
8996
8997 PR target/16815
8998 * function.c (assign_parm_setup_block_p): Tighten BLOCK_REG_PADDING
8999 check.
9000 * config/pa/pa.h (BLOCK_REG_PADDING): Define in terms of
9001 function_arg_padding.
9002
9003 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
9004
9005 PR bootstrap/17857
9006 * Makefile.in (stmp-fixproto): Pass FIX_HEADER=build/... to fixproto.
9007
9008 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
9009
9010 * hooks.c (hook_int_void_1, hook_void_int): Remove.
9011 * hooks.h: Remove the corresponding prototypes.
9012
9013 2004-10-06 Andrew Pinski <pinskia@physics.uc.edu>
9014
9015 PR middle-end/17849
9016 * tree-nested.c (walk_stmt_info): Add changed field.
9017 (convert_nonlocal_reference): Set changed to when we
9018 change a decl to unnested decl.
9019 <case ADDR_EXPR>: Instead of checking if the immediate part
9020 of the ADDR_EXPR changed, check the field changed.
9021 Use recompute_tree_invarant_for_addr_expr instead of unsetting
9022 TREE_INVARIANT.
9023 (convert_local_reference): Set changed to when we
9024 change a decl to unnested decl.
9025 <case ADDR_EXPR>: Instead of checking if the immediate part
9026 of the ADDR_EXPR changed, check the field changed.
9027 Also call recompute_tree_invarant_for_addr_expr on the ADDR_EXPR.
9028
9029 2004-10-06 Kazu Hirata <kazu@cs.umass.edu>
9030
9031 * defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
9032 * dwarf2out.c (dwarf2out_init): Remove references to
9033 DWARF2_GENERATE_TEXT_SECTION_LABEL.
9034 * system.h: Poison DWARF2_GENERATE_TEXT_SECTION_LABEL.
9035 * doc/tm.texi (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
9036
9037 2004-10-06 Joseph S. Myers <jsm@polyomino.org.uk>
9038
9039 * c-typeck.c (convert_arguments): Take expression for called
9040 function rather than its name. Handle ObjC selectors directly
9041 rather than relying on warn_for_assignment to do so. Call warning
9042 directly rather than warn_for_assignment. Use %qE in diagnostics.
9043 Say "argument" rather than "arg" in diagnostics.
9044 (build_function_call): Update call to convert_arguments.
9045
9046 2004-10-06 Andrew Pinski <pinskia@physics.uc.edu>
9047
9048 PR debug/17787
9049 * dbxout.c (dbxout_symbol): Really handle RECORD, UNION, and
9050 ENUMs specially instead of just saying we do.
9051
9052 2004-10-06 Eric Christopher <echristo@redhat.com>
9053
9054 * dwarf2.h: Sync with include/elf/dwarf2.h
9055
9056 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
9057
9058 * tree-pretty-print.c (dump_generic_node): Fix printing of BINFO
9059 and TREE_VEC nodes.
9060
9061 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
9062
9063 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Convert
9064 to use FOR_EACH_SSA_USE_OPERAND iterator, and propagate_value.
9065
9066 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
9067
9068 * lambda-code.c (compute_nest_using_fourier_motzkin): New
9069 function.
9070 (lambda_compute_auxillary_space): Split from here.
9071
9072 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
9073
9074 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop): Make non-static.
9075 * tree-flow.h: Add prototype.
9076 * lambda-code.c (invariant_in_loop_and_outer_loops): Use
9077 expr_invariant_in_loop.
9078
9079 2004-10-06 Kazu Hirata <kazu@cs.umass.edu>
9080
9081 * tree-cfg.c (thread_jumps): Remove a duplicate check for
9082 EXIT_BLOCK_PTR.
9083
9084 2004-10-06 Ulrich Weigand <uweigand@de.ibm.com>
9085
9086 * config/s390/s390-protos.h (s_imm_operand): Remove.
9087 (s390_pool_operand): Add prototype.
9088 * config/s390/s390.c (general_s_operand): Remove.
9089 (s_imm_operand): Remove.
9090 (s_operand): Merge contents of general_s_operand.
9091 (s390_pool_operand): New function.
9092 * config/s390/s390.h (PREDICATE_CODES): Remove s_imm_operand.
9093 * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct"): New insns.
9094 ("*cmpdi_ccu"): Merge Q->Q alternative.
9095 ("*cmpsi_ccu", "*cmphi_ccu"): Likewise.
9096 ("*cmpqi_ccu"): Merge Q->Q, n->Q, n->S alternatives.
9097 ("*cli"): Remove.
9098 ("*cmpdi_ccu_mem", "*cmpsi_ccu_mem"): Likewise.
9099 ("*cmphi_ccu_mem", "*cmpqi_ccu_mem"): Likewise.
9100 ("*movstricthi"): Use memory_operand instead of s_imm_operand.
9101
9102 2004-10-06 Steve Ellcey <sje@cup.hp.com>
9103
9104 * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Change macro to
9105 call ia64_function_arg_boundary.
9106 * config/ia64/ia64-protos.h (ia64_function_arg_boundary): New.
9107 * config/ia64/ia64.c (ia64_function_arg_boundary): New.
9108 (ia64_function_arg_advance): Do not put 128 bit floats into
9109 FP registers.
9110
9111 2004-10-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9112
9113 * builtins.c (expand_builtin_strcpy): Delete duplicate code.
9114 Accept an expression instead of an arglist.
9115 (expand_builtin_stpcpy): Accept an expression instead of an
9116 arglist.
9117
9118 2004-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
9119
9120 PR target/16007
9121 * doc/install.texi (*-*-solaris2*): Mention potential problem
9122 with Sun assembler + GNU linker and C++ programs.
9123 Document status of binutils 2.15 release.
9124
9125 2004-10-06 Jan Hubicka <jh@suse.cz>
9126
9127 * cse.c (cse_main): Kill push/pop context.
9128
9129 2004-10-05 Zack Weinberg <zack@codesourcery.com>
9130
9131 * pretty-print.c: Include tree.h.
9132 (pp_base_prepare_to_format): New function, logic from
9133 text_specifies_location.
9134 (pp_base_format_text): Use gcc_assert.
9135 * pretty-print.h (pp_prepare_to_format): New macro.
9136 (pp_base_prepare_to_format): Prototype.
9137 * diagnostic.c (text_specifies_location): Delete.
9138 (bug_report_request): Delete.
9139 (diagnostic_set_info): Don't call text_specifies_location.
9140 (diagnostic_action_after_output): Put text from
9141 bug_report_request inline here. Use gcc_unreachable.
9142 (diagnostic_report_current_function): Fix comment.
9143 (diagnostic_report_diagnostic): Clarify logic for error recursion.
9144 Call pp_prepare_to_format before diagnostic_starter.
9145 (trim_filename): Use IS_DIR_SEPARATOR.
9146 (fatal_error, internal_error): Use gcc_unreachable.
9147 (error_recursion): Call diagnostic_action_after_output to
9148 issue the bug_report_request message and exit.
9149 * Makefile.in (diagnostic.o, pretty-print.o): Update dependencies.
9150
9151 * c-parse.in: Add list of diagnostic messages to insulate
9152 translation template from version of yacc/bison used to
9153 compile the grammar.
9154
9155 2004-10-06 Alan Modra <amodra@bigpond.net.au>
9156
9157 PR 16406
9158 * doc/tm.texi (USE_LD_AS_NEEDED, LINK_EH_SPEC): Document.
9159
9160 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
9161
9162 * basic-block.h: Remove the prototype for
9163 flow_preorder_transversal_compute.
9164 * cfganal.c (dfst_node): Remove.
9165 (flow_preorder_transversal_compute): Likewise.
9166 * rtl.h: Remove the prototype for get_jump_table_offset.
9167 * rtlanal.c (get_jump_table_offset): Remove.
9168
9169 2004-10-05 Richard Henderson <rth@redhat.com>
9170
9171 PR 17756
9172 * tree-ssa-operands.c (get_expr_operands): Handle CONST_DECL.
9173
9174 2004-10-05 Kelley Cook <kcook@gcc.gnu.org>
9175
9176 PR bootstrap/17817
9177 * Makefile.in: Stage the build directory too.
9178
9179 2004-10-05 Aldy Hernandez <aldyh@redhat.com>
9180
9181 * config/frv/frv.h (LEGITIMIZE_ADDRESS): New.
9182
9183 * config/frv/frv-protos.h (frv_legitimize_address): Protoize.
9184 (frv_emit_move): Same.
9185
9186 * config/frv/frv.c (frv_emit_move): New.
9187 (frv_legitimize_address): New.
9188
9189 * config/frv/frv.md ("movsi"): Call frv_emit_move.
9190 ("movqi"): Same.
9191 ("movhi"): Same.
9192 ("movdi"): Same.
9193 ("movsf"): Same.
9194 ("movdf"): Same.
9195
9196 2004-10-05 Joseph S. Myers <jsm@polyomino.org.uk>
9197
9198 * c-decl.c (declspecs_add_type): Don't pedwarn for _Complex in
9199 system headers.
9200
9201 2004-10-05 Joseph S. Myers <jsm@polyomino.org.uk>
9202
9203 * c-decl.c (pushdecl): When an extern declaration at block scope
9204 refers to a visible entity with internal linkage, use the old DECL
9205 rather than the new one.
9206
9207 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
9208
9209 * tree-cfg.c (cleanup_tree_cfg): Remove extra parentheses in
9210 comments.
9211
9212 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
9213
9214 * tree-cfg.c (thread_jumps): Remove a duplicate check for
9215 an infinite loop.
9216
9217 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
9218
9219 * tree-cfg.c (thread_jumps): Iterate with FOR_EACH_BB instead
9220 of FOR_BB_BETWEEN. Remove a useless check for unreachable
9221 blocks.
9222
9223 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
9224
9225 * tree-cfg.c (cleanup_tree_cfg): Don't call
9226 delete_unreachable_blosk() after thread_jumps().
9227 (thread_jumps): Always remove basic blocks as they become
9228 unreachable.
9229
9230 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
9231
9232 * tree-cfg.c (cleanup_tree_cfg): Remove variable
9233 something_changed. Simplify the while loop.
9234
9235 2004-10-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9236
9237 * builtins.c (expand_builtin_memmove): Delete duplicate code
9238 and accept a tree type for the result.
9239 (expand_builtin_bcopy): Accept a tree type for the result.
9240 (fold_builtin_memmove): Accept an arglist and tree type for
9241 the result.
9242
9243 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
9244
9245 * config/s390/s390.c (s390_dump_pool): Remove return value.
9246 Use gen_pool_align, gen_pool_section_start/end instead of
9247 gen_pool_start/end_31/64.
9248 * config/s390/s390.md (UNSPECV_POOL_START, UNSPECV_POOL_END): Remove.
9249 (UNSPECV_POOL_SECTION, UNSPECV_POOL_ALIGN): New constants.
9250 ("pool_start_31", "pool_end_31"): Remove.
9251 ("pool_start_64", "pool_end_64"): Likewise.
9252 ("pool_align", "pool_section_start", "pool_section_end": New insns.
9253
9254 * config/s390/s390.c (s390_cannot_copy_insn_p): New function.
9255 (TARGET_CANNOT_COPY_INSN_P): Define.
9256 (s390_cannot_force_const_mem): Handle UNSPEC_INSN.
9257 (struct constant_pool): New member 'execute'.
9258 (s390_add_execute, s390_find_execute): New functions.
9259 (s390_execute_label, s390_execute_target): Likewise.
9260 (s390_dump_pool): Output in-pool execute target templates.
9261 (s390_dump_execute): New function.
9262 (s390_alloc_pool, s390_free_pool): Handle execute templates.
9263 (s390_mainpool_start, s390_mainpool_finish): Likewise.
9264 (s390_chunkify_start, s390_chunkify_finish): Likewise.
9265 * config/s390/s390.md (UNSPEC_INSN, UNSPEC_EXECUTE): New constants.
9266 ("*execute"): New insn pattern.
9267 ("movmem_short", "*movmem_short"): Use splitters to generate
9268 explicit execute pattern, remove embedded execute.
9269 ("clrmem_short", "*clrmem_short"): Likewise.
9270 ("cmpmem_short", "*cmpmem_short"): Likewise.
9271
9272 2004-10-05 Daniel Berlin <dberlin@dberlin.org>
9273
9274 * tree-ssa.c (verify_ssa): Verify phi arguments only
9275 contain renamed names.
9276
9277 2004-10-05 Alan Modra <amodra@bigpond.net.au>
9278
9279 * config/rs6000/linux.h: Formatting, whitespace.
9280 * config/rs6000/linux64.h: Likewise.
9281 * config/rs6000/rs6000-protos.h: Likewise.
9282 * config/rs6000/rs6000.c: Likewise.
9283 (easy_vector_splat_const): Add fall thru comments.
9284 (output_vec_const_move): Likewise.
9285
9286 2004-10-05 Kelley Cook <kcook@gcc.gnu.org>
9287
9288 * Makefile.in: Update -Wno-error exceptions for move to build dir.
9289
9290 2004-10-05 Chao-Ying Fu <fu@mips.com>
9291 Richard Sandiford <rsandifo@redhat.com>
9292
9293 * doc/invoke.texi (-mpaired-single): Link to the new description of the
9294 built-in functions. Document dependencies.
9295 (-mips3d): Add link here too.
9296 * doc/extend.texi (MIPS Paired-Single Support): New section.
9297
9298 2004-10-04 Chao-ying Fu <fu@mips.com>
9299
9300 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Define.
9301
9302 2004-10-04 Diego Novillo <dnovillo@redhat.com>
9303
9304 * tree-ssa-dom.c (tree_ssa_dominator_optimize):
9305 Initialize OPT_STATS to 0.
9306
9307 2004-10-04 Kazu Hirata <kazu@cs.umass.edu>
9308
9309 * tree-data-ref.c: Fix comment typos.
9310
9311 2004-10-04 Sebastian Pop <pop@cri.ensmp.fr>
9312
9313 * tree-data-ref.c (array_base_name_differ_p): Fix comments. When
9314 the predicate cannot be computed, don't initialize the result to
9315 false.
9316
9317 2004-10-01 Eric Christopher <echristo@redhat.com>
9318
9319 * dwarf2.h (dwarf_calling_convention): Add GNU prefix to
9320 locally defined enum.
9321 * dwarf2out.c (add_calling_convention_attribute): Don't
9322 emit DW_CC_normal.
9323
9324 2004-10-03 Andrew Pinski <pinskia@physics.uc.edu>
9325
9326 PR c/17178, PR c/17820
9327 * c-decl.c (pop_scope): Do not warn about unused static
9328 variables as they warned in the middle-end.
9329
9330 2004-10-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9331
9332 * builtins.c (expand_builtin_memcpy): Delete duplicate code
9333 and make the first parameter the expression not the arglist.
9334
9335 2004-10-03 Ulrich Weigand <uweigand@de.ibm.com>
9336
9337 * expr.c (expand_expr_addr_expr): Only accept Pmode or ptr_mode
9338 as valid modes to expand address expressions.
9339
9340 2004-10-03 Joseph S. Myers <jsm@polyomino.org.uk>
9341
9342 * c-aux-info.c, c-common.c, c-common.h, c-cppbuiltin.c, c-decl.c,
9343 c-format.c, c-incpath.c, c-lex.c, c-objc-common.c, c-opts.c,
9344 c-parse.in, c-pch.c, c-ppoutput.c, c-pragma.c, c-typeck.c: Follow
9345 code formatting conventions.
9346
9347 2004-10-03 Richard Sandiford <rsandifo@redhat.com>
9348
9349 * config/mips/mips.md (<u>mulsidi3_32bit_r4000): Fix unsigned case.
9350
9351 2004-10-03 Kazu Hirata <kazu@cs.umass.edu>
9352
9353 PR tree-optimization/16632
9354 * fold-const.c (fold) [EQ_EXPR]: When seeing if D & ~C != 0 to
9355 fold (A & C) == D into 0, fold ~C. Similarly, for the case
9356 where | is used instead of &.
9357
9358 2004-10-03 Kazu Hirata <kazu@cs.umass.edu>
9359
9360 * ginclude/stddef.h: Fix a comment typo.
9361
9362 2004-10-03 Eric Botcazou <ebotcazou@libertysurf.fr>
9363
9364 PR target/17443
9365 * config.gcc (i?86-*-solaris2*): Restore correct logic
9366 for --enable-threads option.
9367 (sparc64-*-solaris2*): Likewise.
9368 (sparc-*-solaris2*): Likewise.
9369
9370 2004-10-03 Alan Modra <amodra@bigpond.net.au>
9371
9372 * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define.
9373 (OS_MISSING_POWERPC64): Move, and comment.
9374 * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Define.
9375 (OS_MISSING_POWERPC64): Move, and comment.
9376
9377 2004-10-02 Ian Lance Taylor <ian@wasabisystems.com>
9378
9379 * arm.c (output_call_mem): Add missing \t.
9380
9381 2004-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9382
9383 * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp,
9384 expand_builtin_strncmp): Delete duplicate code.
9385
9386 2004-10-02 Frank Ch. Eigler <fche@redhat.com>
9387
9388 * tree-mudflap.c (mf_build_check_statement_for): Reorganize to
9389 take check-base and -limit arguments.
9390 (mf_xform_derefs_1): Reorganize slightly to pass proper base/limit
9391 check ranges for ARRAY_REF and COMPONENT_REF.
9392 (execute_mudflap_fnction_ops, ..._decls): Limit unnecessary
9393 instrumentation.
9394
9395 2004-10-02 Joseph S. Myers <jsm@polyomino.org.uk>
9396
9397 * c-objc-common.c (c_tree_printer): Correct description of %E.
9398 Don't fall through after printing an expression.
9399
9400 2004-10-02 Kazu Hirata <kazu@cs.umass.edu>
9401
9402 * tree-cfg.c, config/s390/tpf-unwind.h: Fix comment typos.
9403
9404 2004-10-02 Kazu Hirata <kazu@cs.umass.edu>
9405
9406 * tree-cfg.c (cleanup_tree_cfg): Speed up by calling
9407 delete_unrechable_blocks() only when necessary.
9408
9409 2004-10-02 P.J. Darcy <darcypj@us.ibm.com>
9410
9411 * gthr-tpf.h (__gthread_recursive_mutex_t): New type.
9412 (__GTHREAD_RECURSIVE_MUTEX_INIT): Define.
9413 (__gthread_recursive_mutex_lock, __gthread_recursive_mutex_trylock,
9414 __gthread_recursive_mutex_unlock): New functions.
9415
9416 2004-10-02 P.J. Darcy <darcypj@us.ibm.com>
9417
9418 * config/s390/t-tpf (LIB2ADDEH): Remove tpf-eh.c.
9419 * config/s390/tpf-eh.c: Remove file.
9420 * config/s390/tpf-unwind.h: New file.
9421 * config/s390/tpf.h (MD_FALLBACK_FRAME_STATE_FOR): Remove.
9422 (MD_UNWIND_SUPPORT): Define.
9423
9424 2004-10-02 Joseph S. Myers <jsm@polyomino.org.uk>
9425
9426 * c-typeck.c (warn_for_assignment): Don't permit argnum == 0.
9427
9428 2004-10-01 Ulrich Weigand <uweigand@de.ibm.com>
9429
9430 * config/s390/s390-protos.h (s390_comparison): Add prototype.
9431 * config/s390/s390.c (s390_comparison): New function.
9432 (s390_branch_condition_mask): Return -1 for invalid comparisons.
9433 (s390_branch_condition_mnemonic): Assert valid comparison.
9434 * config/s390/s390.h (PREDICATE_CODES): Add s390_comparison.
9435 * config/s390/s390.md ("*cjump_64", "*cjump_31", "*cjump_long",
9436 "*icjump_64", "*icjump_31", "*icjump_long", "*trap"): Use
9437 s390_comparison instead of comparison_operator.
9438
9439 * config/s390/s390.md (UNSPEC_CMPINT): New constant.
9440 ("cmpmemdi"): Remove.
9441 ("cmpmem_short", "*cmpmem_short"): Use CCUmode instead of CCSmode.
9442 ("cmpmem_long", "*cmpmem_long_64", "*cmpmem_long_31"): Likewise.
9443 ("cmpint_si"): Rename to ...
9444 ("*cmpint_si"): ... this. Use UNSPEC_CMPINT.
9445 ("cmpint_di", "*cmpint_di"): Likewise.
9446 * config/s390/s390.c (s390_canonicalize_comparison): Remove
9447 redundant UNSPEC_CMPINT conversions.
9448 (s390_expand_cmpmem): Adapt to cmpint pattern changes.
9449
9450 2004-10-01 Kazu Hirata <kazu@cs.umass.edu>
9451
9452 * collect2.c (COLLECT_PARSE_FLAG): Remove.
9453 (main): Remove a reference to COLLECT_PARSE_FLAG
9454 * system.h: Poison COLLECT_PARSE_FLAG.
9455 * doc/tm.texi (COLLECT_PARSE_FLAG): Remove.
9456
9457 2004-10-01 Paul Brook <paul@codesourcery.com>
9458
9459 * config/arm/crti.asm: Give _init and _fini function type.
9460
9461 2004-10-01 Zdenek Dvorak <dvorakz@suse.cz>
9462
9463 * common.opt (ftree-loop-ivcanon): Enable by default.
9464 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
9465 Enable complete loop unrolling.
9466 (canonicalize_induction_variables, tree_unroll_loops_completely):
9467 Reset scev info.
9468
9469 2004-10-01 Paul Brook <paul@codesourcery.com>
9470
9471 * config/arm/arm.c (thumb_compute_saved_rag_mask): Or with bitmask,
9472 not register number.
9473 (thumb_find_work_register): Search full register range.
9474
9475 2004-10-01 Andrew Pinski <pinskia@physics.uc.edu>
9476
9477 PR tree-opt/17343
9478 * tree-cfg.c (group_case_labels): Get the label and not
9479 the case expr for the default case.
9480 When the label we looking at is the default, decrement the
9481 new_size.
9482
9483 2004-10-01 Jan Hubicka <jh@suse.cz>
9484
9485 * c-decl.c (c_expand_body): Update call tree_rest_of_compilation.
9486 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
9487 * toplev.h (tree_rest_of_compilation): Update prototype.
9488 * tree-optimize.c (tree_rest_of_compilation): Kill nested_p argument.
9489
9490 2004-10-01 Kazu Hirata <kazu@cs.umass.edu>
9491
9492 * tree-cfg.c (cleanup_tree_cfg): Pull a call to
9493 cleanup_control_flow() out of the while loop.
9494
9495 2004-10-01 Paolo Bonzini <bonzini@gnu.org>
9496
9497 * tree-vectorizer.c (vectorizable_operation): Fail unless
9498 the mode for the vector type is indeed a vector mode.
9499
9500 2004-10-01 Zdenek Dvorak <dvorakz@suse.cz>
9501
9502 * tree-chrec.c (chrec_fold_plus_poly_poly, chrec_fold_plus_1,
9503 chrec_fold_multiply): Use fold_convert or build_int_cst_type instead
9504 of convert.
9505 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
9506 add_to_evolution, set_nb_iterations_in_loop, follow_ssa_edge_in_rhs,
9507 follow_ssa_edge_in_rhs): Ditto.
9508 * tree-ssa-loop-ivopts.c (struct iv): Add base_object field.
9509 (dump_iv): Dump base_object.
9510 (dump_use, dump_cand): Use dump_iv.
9511 (determine_base_object): New function.
9512 (alloc_iv): Initialize base_object field.
9513 (record_use): Clear the ssa_name field of iv.
9514 (get_computation_cost_at): Do not use difference of addresses of
9515 two different objects.
9516 (may_eliminate_iv): Do not require the loop to have just single exit.
9517 * tree-ssa-loop-niter.c (zero_p): Do not check for overflows.
9518 (nonzero_p): New function.
9519 (inverse, number_of_iterations_cond, simplify_using_outer_evolutions,
9520 tree_simplify_using_condition, simplify_using_initial_conditions,
9521 loop_niter_by_eval, find_loop_niter_by_eval,
9522 estimate_numbers_of_iterations_loop, compare_trees,
9523 upper_bound_in_type, lower_bound_in_type,
9524 can_count_iv_in_wider_type_bound): Use buildN instead of build. Use
9525 fold_convert or build_int_cst_type instead of convert. Use (non)zero_p
9526 instead of integer_(non)zerop.
9527
9528 2004-10-01 Jakub Jelinek <jakub@redhat.com>
9529
9530 Revert
9531 2004-09-29 Jakub Jelinek <jakub@redhat.com>
9532
9533 * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
9534 and TI_VA_LIST_FPR_COUNTER_FIELD.
9535 (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
9536 * tree-pass.h (pass_stdarg): Add.
9537 * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
9538 * tree-stdarg.c: New file.
9539 * Makefile.in (OBJS-common): Add tree-stdarg.o.
9540 (tree-stdarg.o): Add dependencies.
9541 * function.h (struct function): Add va_list_gpr_size and
9542 va_list_fpr_size fields.
9543 * function.c (allocate_struct_function): Initialize them.
9544
9545 * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
9546 va_list_{g,f}pr_counter_field.
9547 (ix86_setup_incoming_varargs): Don't do anything if reg_save
9548 area will not be used. Only save registers that tree-stdarg.c
9549 detected they need saving.
9550 (ix86_va_start): Don't set up fields that won't be used.
9551
9552 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
9553 va_list_{g,f}pr_counter_field.
9554 (setup_incoming_varargs): Don't do anything if reg_save
9555 area will not be used. Only save registers that tree-stdarg.c
9556 detected they need saving.
9557 (rs6000_va_start): Don't set up fields that won't be used.
9558
9559 2004-09-30 Eric Christopher <echristo@redhat.com>
9560
9561 * dwarf2.h (dwarf_calling_convention): Add enum for renesas
9562 sh abi.
9563 * dwarf2out.c (add_calling_convention_attribute): New function.
9564 (gen_subroutine_type_die): Use.
9565 * target-def.h (TARGET_DWARF_CALLING_CONVENTION): New hook.
9566 * target.h (gcc_target): Add dwarf_calling_convention.
9567 * hooks.c (hook_int_tree_0): New function.
9568 * hooks.h: Prototype.
9569 * config/sh/sh.c: Include dwarf2.h.
9570 (sh_dwarf_calling_convention): New function.
9571 (TARGET_DWARF_CALLING_CONVENTION): Use.
9572 * doc/tm.texi (TARGET_DWARF_CALLING_CONVENTION): Document.
9573
9574 2004-09-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9575
9576 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
9577 expand_builtin_strrchr, expand_builtin_strpbrk,
9578 expand_builtin_strncat, expand_builtin_strspn,
9579 expand_builtin_strcspn, expand_builtin_fputs): Eliminate duplicate
9580 code.
9581
9582 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
9583
9584 * config/s390/s390-protos.h (s390_expand_logical_operator): Add
9585 prototype.
9586 (s390_logical_operator_ok_p): Likewise.
9587 * config/s390/s390.c (s390_expand_logical_operator): New function.
9588 (s390_logical_operator_ok_p): Likewise.
9589 * config/s390/s390.md ("anddi3"): New expander.
9590 ("*anddi3"): Rename from old anddi3 pattern, add Q->Q alternative.
9591 ("*anddi3_ss", "*anddi3_ss_inv"): Remove.
9592 ("andsi3"): Use s390_expand_logical_operator.
9593 ("*andsi3_esa", "*andsi3_zarch"): Add Q->Q alternative.
9594 ("*andsi3_ss", "*andsi3_ss_inv"): Remove.
9595 ("andhi3"): New expander.
9596 ("*andhi3_zarch", "*andhi3_esa"): New patterns.
9597 ("andhi3", "*andhi3_ni", "*andhi3_ss", "*andhi3_ss_inv"): Remove.
9598 ("andqi3"): New expander.
9599 ("*andqi3_zarch", "*andqi3_esa"): New patterns.
9600 ("andqi3", "*andqi3_ni", "*andqi3_ss", "*andqi3_ss_inv"): Remove.
9601 ("iordi3"): New expander.
9602 ("*iordi3"): Rename from old iordi3 pattern, add Q->Q alternative.
9603 ("*iordi3_ss", "*iordi3_ss_inv"): Remove.
9604 ("iorsi3"): Use s390_expand_logical_operator.
9605 ("*iorsi3_esa", "*iorsi3_zarch"): Add Q->Q alternative.
9606 ("*iorsi3_ss", "*iorsi3_ss_inv"): Remove.
9607 ("iorhi3"): New expiorer.
9608 ("*iorhi3_zarch", "*iorhi3_esa"): New patterns.
9609 ("iorhi3", "*iorhi3_ni", "*iorhi3_ss", "*iorhi3_ss_inv"): Remove.
9610 ("iorqi3"): New expiorer.
9611 ("*iorqi3_zarch", "*iorqi3_esa"): New patterns.
9612 ("iorqi3", "*iorqi3_ni", "*iorqi3_ss", "*iorqi3_ss_inv"): Remove.
9613 ("xordi3"): New expander.
9614 ("*xordi3"): Rename from old xordi3 pattern, add Q->Q alternative.
9615 ("*xordi3_ss", "*xordi3_ss_inv"): Remove.
9616 ("xorsi3"): New expander.
9617 ("*xorsi3"): Rename from old xorsi3 pattern, add Q->Q alternative.
9618 ("*xorsi3_ss", "*xorsi3_ss_inv"): Remove.
9619 ("xorhi3"): New expander.
9620 ("*xorqi3"): Rename from old xorhi3 pattern, add Q->Q alternative.
9621 ("*xorhi3_ss", "*xorhi3_ss_inv"): Remove.
9622 ("xorqi3"): New expander.
9623 ("*xorqi3"): Rename from old xorqi3 pattern, add Q->Q alternative.
9624 ("*xorqi3_ss", "*xorqi3_ss_inv"): Remove.
9625
9626 2004-09-30 Roger Sayle <roger@eyesopen.com>
9627
9628 * combine.c (force_to_mode) <NE_EXPR>: Only convert the expression
9629 (AND (NE FOO 0) CONST) into (AND FOO CONST) if FOO has the same
9630 machine mode as the result.
9631
9632 2004-09-30 Ben Elliston <bje@au.ibm.com>
9633
9634 PR bootstrap/17761
9635 * lcm.c (optimize_mode_switching): Update to use EDGE_SUCC and
9636 FOR_EACH_EDGE macros.
9637
9638 2004-09-30 Joseph S. Myers <jsm@polyomino.org.uk>
9639
9640 * c-tree.h (readonly_error): Remove.
9641 * c-typeck (enum lvalue_use): New.
9642 (lvalue_or_else, readonly_error): Use it. All callers changed.
9643 (readonly_error): Make static.
9644
9645 2004-09-30 Jan Hubicka <jh@suse.cz>
9646
9647 PR debug/13974
9648 * cfgrtl.c (try_redirect_by_replacing_jump,
9649 force_nonfallthru_and_redirect, commit_one_edge_insertion,
9650 cfg_layout_merge_blocks): Do not attach any line number information
9651 to newly inserted instructions.
9652 * emit-rtl.c (emit_insn*_before, emit_insn*_after): Rename to
9653 emit_insn_*_noloc.
9654 (emit_*insn_before, emit_insn*_after): New.
9655 (emit_*insn_before_setloc, emit_*insn_after_setloc): Do not overwrite
9656 existing locators.
9657 * rtl.h (emit_*insn_before_noloc, emit_*insn_after_noloc): Declare.
9658 (emit_*insn_before_sameloc, emit_*insn_after_sameloc): Kill.
9659
9660 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
9661
9662 * config/s390/s390-protos.h (s390_arg_frame_offset): Remove.
9663 (s390_return_address_offset): Remove.
9664 (s390_can_eliminate): Add prototype.
9665 (s390_initial_elimination_offset): Add prototype.
9666 * config/s390/s390.h (CAN_ELIMINATE): Call s390_can_eliminate.
9667 (INITIAL_ELIMINATION_OFFSET): Call s390_initial_elimination_offset.
9668 * config/s390/s390.c (s390_arg_frame_offset): Remove.
9669 (s390_return_address_offset): Remove.
9670 (s390_can_eliminate, s390_initial_elimination_offset): New functions.
9671 (struct machine_function): New member split_branches_pending_p.
9672 (s390_mainpool_start): Allow nonexistant pool insn for empty pool.
9673 (s390_mainpool_finish): Likewise. Clear base_reg if pool empty.
9674 (s390_optimize_prologue): Remove base_used argument. Call
9675 s390_update_frame_layout instead of s390_register_info. Handle
9676 prologue/epilogue insns that touch only RETURN_REGNUM.
9677 (s390_reorg): Remove base_used. Clear split_branches_pending_p.
9678 (s390_register_info): Remove base_used and return_addr_used
9679 arguments, compute special register usage inline. Return live
9680 register data to caller.
9681 (s390_frame_info): Remove arguments, do not call s390_register_info.
9682 (s390_init_frame_layout): New function.
9683 (s390_update_frame_layout): Likewise.
9684 (s390_emit_prologue): Call s390_update_frame_layout; some code
9685 move to there. Do not emit pool placeholder insn if unnecessary.
9686
9687 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
9688
9689 * config/s390/s390.c (legitimate_reload_constant_p): Remove
9690 floating point constant workaround.
9691 (s390_secondary_input_reload_class): Handle PLUS reloads
9692 with too-large constant.
9693 (s390_expand_plus_operand): Likewise.
9694 * config/s390/s390.md ("movdi"): Do not call force_const_mem.
9695 ("movsi"): Likewise. Also, remove workaround for non-general
9696 operands.
9697 ("movdf"): Do not call force_const_mem.
9698 ("movsf"): Likewise. Merge expander with *movsf insn.
9699 ("*movsf"): Remove, merge with movsf expander.
9700
9701 2004-09-30 Paul Brook <paul@codesourcery.com>
9702
9703 * config/arm/symbian.h (STARTFILE_SPEC): Remove crt*.o.
9704 (ENDFILE_SPEC): Define.
9705 * config/arm/t-symbian.h (EXTRA_MULTILIB_PARTS): Set.
9706
9707 2004-09-30 Richard Henderson <rth@redhat.com>
9708
9709 * config/alpha/qrnnd.asm: Mark for noexecstack.
9710
9711 2004-09-30 Kazu Hirata <kazu@cs.umass.edu>
9712
9713 * protoize.c, tree-cfg.c: Fix comment typos.
9714
9715 2004-09-30 Joseph S. Myers <jsm@polyomino.org.uk>
9716
9717 PR c/17730
9718 * c-typeck.c (lvalue_or_else): Pass msgid directly to error.
9719
9720 2004-09-30 Diego Novillo <dnovillo@redhat.com>
9721
9722 * tree-ssa-alias.c (collect_points_to_info_r): Move analysis of
9723 expressions...
9724 (add_pointed_to_expr): ... here.
9725 Call add_pointed_to_expr for variables with DECL_INITIAL set.
9726 * tree-dfa.c (add_referenced_var): Scan DECL_INITIAL of any
9727 pointer variable, if set.
9728
9729 2004-09-30 Kazu Hirata <kazu@cs.umass.edu>
9730
9731 * config/sh/sh.c: Follow spelling conventions.
9732
9733 2004-09-29 Richard Henderson <rth@redhat.com>
9734
9735 * unwind-dw2.c (_Unwind_GetGR): Honor DWARF_ZERO_REG.
9736 * doc/tm.texi (DWARF_ZERO_REG): New.
9737
9738 * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
9739 alpha_expand_epilogue): Revert 2003-09-30 change to store zero.
9740 * config/alpha/alpha.h (DWARF_ZERO_REG): New.
9741
9742 2004-09-29 Ulrich Weigand <uweigand@de.ibm.com>
9743
9744 * builtins.c (expand_builtin_strlen): Do not call emit_move_insn
9745 with a PLUS as source operand.
9746 (expand_movstr): Likewise.
9747 (expand_builtin_stpcpy): Likewise.
9748
9749 2004-09-29 Richard Henderson <rth@redhat.com>
9750
9751 PR 17739
9752 * tree-gimple.c (is_gimple_reg): Reject hard registers.
9753 (is_gimple_asm_val): New.
9754 * tree-gimple.h (is_gimple_asm_val): Declare.
9755 * gimplify.c (gimplify_asm_expr): Use it.
9756 * tree-pretty-print.c (print_declaration): Dump hard regs.
9757 * tree-outof-ssa.c (check_replaceable): Don't check for hard regs.
9758 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
9759 * tree-ssa-pre.c (is_undefined_value): Likewise.
9760 * tree-ssa-copy.c (may_propagate_copy): Likewise.
9761 (may_propagate_copy_into_asm): Protect DECL_HARD_REGISTER.
9762 * tree-ssa.c (warn_uninit): Likewise.
9763 * tree.h (DECL_HARD_REGISTER): Check for VAR_DECL.
9764
9765 2004-09-29 Fariborz Jahanian <fjahanian@apple.com>
9766
9767 * c-decl.c (merge_decls): Use comptype when comparing
9768 types to decide on DECL_SIZE save of olddecl.
9769
9770 2004-09-29 Daniel Berlin <dberlin@dberlin.org>
9771
9772 * tree.h (INDIRECT_REF_P): New macro.
9773 * alias.c (get_alias_set): Use it
9774 (nonoverlapping_memrefs_p): Ditto.
9775 * emit-rtl.c (mem_expr_equal_p): Ditto.
9776 (set_mem_attributes_minus_bitpos): Ditto.
9777 (is_gimple_addressable): Ditto.
9778 (get_base_address): Ditto.
9779 * tree-ssa-alias.c (find_ptr_derefernece): Ditto.
9780 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Ditto.
9781 * tree-ssa-dom.c (record_equivalences_from_stmt): Ditto.
9782 * tree-ssa-loop-im.c (is_call_clobbered_ref): Ditto.
9783 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Ditto.
9784 (add_address_candidates): Ditto.
9785 (rewrite_address_base): Ditto.
9786
9787 2004-09-30 Ben Elliston <bje@au.ibm.com>
9788
9789 * tree-flow.h (struct bb_ann_d): Remove num_preds member.
9790 * tree-into-ssa.c (rewrite_into_ssa): Don't set it.
9791 (rewrite_ssa_into_ssa): Likewise.
9792 * tree-phinodes.c (create_phi_node): Access the number of
9793 predecessor edges using EDGE_COUNT() and not num_preds.
9794
9795 2004-09-29 Joseph S. Myers <jsm@polyomino.org.uk>
9796
9797 PR c/7425
9798 * c-decl.c (merge_decls): Merge TREE_DEPRECATED.
9799
9800 2004-09-29 Eric Christopher <echristo@redhat.com>
9801
9802 * fold-const.c (tree_swap_operands_p): Remove duplicated code.
9803
9804 2004-09-29 Hans-Peter Nilsson <hp@axis.com>
9805
9806 * config/cris/cris.md (moverside, movemside): With MEM, make sure
9807 the address is (plus reg mem).
9808
9809 2004-09-29 David Edelsohn <edelsohn@gnu.org>
9810
9811 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
9812
9813 2004-09-29 Nathan Sidwell <nathan@codesourcery.com>
9814
9815 * tree.c (make_node_stat): Fix uninitialized warning. Replace
9816 cascaded if ... else if with a switch.
9817
9818 2004-09-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
9819
9820 * read-rtl.c (apply_macro_to_string): Replace index with strchr.
9821
9822 2004-09-29 Jakub Jelinek <jakub@redhat.com>
9823
9824 * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
9825 and TI_VA_LIST_FPR_COUNTER_FIELD.
9826 (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
9827 * tree-pass.h (pass_stdarg): Add.
9828 * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
9829 * tree-stdarg.c: New file.
9830 * Makefile.in (OBJS-common): Add tree-stdarg.o.
9831 (tree-stdarg.o): Add dependencies.
9832 * function.h (struct function): Add va_list_gpr_size and
9833 va_list_fpr_size fields.
9834 * function.c (allocate_struct_function): Initialize them.
9835
9836 * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
9837 va_list_{g,f}pr_counter_field.
9838 (ix86_setup_incoming_varargs): Don't do anything if reg_save
9839 area will not be used. Only save registers that tree-stdarg.c
9840 detected they need saving.
9841 (ix86_va_start): Don't set up fields that won't be used.
9842
9843 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
9844 va_list_{g,f}pr_counter_field.
9845 (setup_incoming_varargs): Don't do anything if reg_save
9846 area will not be used. Only save registers that tree-stdarg.c
9847 detected they need saving.
9848 (rs6000_va_start): Don't set up fields that won't be used.
9849
9850 2004-09-29 Jakub Jelinek <jakub@redhat.com>
9851
9852 * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED,
9853 BUILT_IN_FPUTS, BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE,
9854 BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_PUTCHAR, BUILT_IN_PUTCHAR_UNLOCKED,
9855 BUILT_IN_PUTS, BUILT_IN_PUTS_UNLOCKED): Remove nothrow attribute.
9856 * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_1_2,
9857 ATTR_NONNULL_1_4): New.
9858
9859 2004-09-29 Jakub Jelinek <jakub@redhat.com>
9860
9861 PR tree-optimization/17697
9862 * tree-ssa-ccp.c (execute_fold_all_builtins): Update eh and cleanup
9863 cfg if needed.
9864
9865 2004-09-28 Per Bothner <per@bothner.com>
9866
9867 * profile.c (branch_prob): Pass correct value to output_location,
9868 even when USE_MAPPED_LOCATION. Fixes bug from 09-11.
9869
9870 2004-09-28 Richard Henderson <rth@redhat.com>
9871
9872 PR 15089
9873 * tree-ssa-copy.c (may_propagate_copy_into_asm): New.
9874 * tree-flow.h (may_propagate_copy_into_asm): Declare.
9875 * tree-ssa-ccp.c (replace_uses_in): Use it.
9876 * tree-ssa-dom.c (cprop_operand): Likewise.
9877
9878 2004-09-28 Jeff Law <law@redhat.com>
9879
9880 * tree-ssa-threadupdate.c (create_block_for_threading): Request
9881 that no outgoing edges be left in the duplicate block. Do no
9882 update information on outgoing edges or PHI nodes in target
9883 blocks here.
9884 (remove_ctrl_stmt_and_useless_edges): Renamed from
9885 remove_last_stmt_and_useless_edges. Handle case where the
9886 block is empty or has no control statements. Do not update edge
9887 flags here.
9888 (thread_block): Create a template block rather than copying the
9889 original block every time. Create outgoing edges from the
9890 duplicate blocks and update PHIs at the target of the outgoing
9891 edges here. Fix edge flags for the original block if necessary.
9892 * cfghooks (duplicate_block): No longer assert that the original
9893 block has incoming edges.
9894
9895 2004-09-29 Hans-Peter Nilsson <hp@bitrange.com>
9896
9897 * doc/extend.texi (Extended Asm): Add blurb about using Explicit
9898 Reg Vars to enforce register allocation with general constraints.
9899 (Explicit Reg Vars): Clarify relation to asm statements.
9900 (Local Reg Vars): Similar.
9901
9902 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
9903
9904 * sched-rgn.c (haifa_edge, edge_table, NEXT_IN, NEXT_OUT, FROM_BLOCK,
9905 TO_BLOCK, nr_edges, in_edges, out_edges, IN_EDGES, OUT_EDGES,
9906 build_control_flow, new_edge): Remove.
9907 (schedule_insns): Remove edge_table/in_edges/out_edges cleanup.
9908 (bitlst, bitlst_table_last, bitlst_table): Remove.
9909 (bblst): Store basic_block pointer instead of block index.
9910 (bblst_table): Likewise.
9911 (edgelst): Store edge pointer instead of edge index.
9912 (edgelst_table, edgelst_last): New variables.
9913 (extract_bitlst): Rename to ...
9914 (extract_edgelst): ... this. Return edge pointers, not indices.
9915 (split_edges): Update call.
9916 (rgn_edges): Store edge pointers instead of indices.
9917 (edge_to_bit): Remove.
9918 (EDGE_TO_BIT): Store per-region edge index in edge->aux.
9919 (SET_EDGE_TO_BIT): New macro.
9920 (is_cfg_nonregular): Check for simple cases of unreachable blocks.
9921 (find_rgns): Remove edge_list parameter. Traverse standard CFG
9922 data structures instead of haifa_edge et al. Use edge pointers
9923 instead of edge indices everywhere.
9924 (compute_dom_prob_ps): Use standard CFG data structures. Account
9925 for exit edges.
9926 (compute_trg_info): Likewise.
9927 (propagate_deps): Likewise.
9928 (debug_candidate): Account for bblst data structure change.
9929 (check_live_1, update_live_1, is_pfree): Likewise.
9930 (IS_REACHABLE): Use standard CFG data structures.
9931 (init_ready_list): Update bblst_table/edgelst_table allocation.
9932 (schedule_region): Update alloc/cleanup code to data structure
9933 changes. Use edge->aux to store per-region edge index.
9934 (init_regions): No longer call build_control_flow. Do not
9935 create edge list any more.
9936
9937 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
9938
9939 * cse.c (cse_insn): Avoid creating direct non-local jumps.
9940 * combine.c (can_combine_p): Likewise.
9941 * local-alloc. (update_equiv_regs): Likewise.
9942
9943 2004-09-28 Richard Henderson <rth@redhat.com>
9944
9945 PR 17531
9946 * expr.c (expand_expr_addr_expr_1): Only assemble_external for decls.
9947 Don't check VOIDmode here. Force PLUS operands to common type.
9948 (expand_expr_addr_expr): Do VOIDmode check earlier. Force use of
9949 Pmode if given a non pointer type.
9950
9951 2004-09-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9952
9953 PR 17531
9954 * optabs.c (expand_binop): Force constants to the correct mode.
9955
9956 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
9957
9958 * config/s390/s390.c (s390_adjust_cost): Remove.
9959 (TARGET_SCHED_ADJUST_COST): Do not redefine.
9960 (s390_adjust_priority): Handle TYPE_STM like TYPE_STORE.
9961 * config/s390/s390.md ("main_pool"): Use "larl" type
9962 attribute if TARGET_CPU_ZARCH.
9963
9964 2004-09-28 Jakub Jelinek <jakub@redhat.com>
9965
9966 * config/ia64/ia64.c (ia64_expand_prologue): Declare ei
9967 variable.
9968
9969 2004-09-28 Diego Novillo <dnovillo@redhat.com>
9970
9971 * tree-ssa-loop.c (pass_record_bounds): Do not assign a
9972 name to the pass.
9973
9974 2004-09-28 Steven Bosscher <stevenb@suse.de>
9975
9976 * common.opt (flag_gcse_sm): Disable by default.
9977 (flag_gcse_las): Likewise.
9978 (flag_web): Likewise. Create from this file.
9979 * flags.h: Remove flag_web declaration.
9980 * toplev.c (flag_web): Likewise.
9981 (process_options): Never set flag_web.
9982
9983 2004-09-28 Steven Bosscher <stevenb@suse.de>
9984
9985 * Makefile.in (tree-ssa-propagate.o): Depend on vec.h.
9986 * tree-ssa-propagate.c: Include vec.h.
9987 (interesting_ssa_edges, varying_ssa_edges): Make these VECs
9988 instead of varrays.
9989 (cfg_blocks_add): Assert the block is not already in the worklist.
9990 Update uses of interesting_ssa_edges and varying_ssa_edges.
9991 (process_ssa_edge_worklist, ssa_prop_init, ssa_prop_fini,
9992 ssa_propagate): Likewise.
9993
9994 2004-09-28 Joseph S. Myers <jsm@polyomino.org.uk>
9995
9996 PR c/16409
9997 * c-decl.c (start_decl): Check for initializing incomplete array
9998 of VLAs.
9999 (build_compound_literal): Check for TYPE being error_mark_node.
10000 * c-parse.in (primary): Check for VLA compound literals.
10001
10002 2004-09-28 Diego Novillo <dnovillo@redhat.com>
10003
10004 * tree-ssa-live.c (calculate_live_on_entry): Fix warnings
10005 with --disable-checking.
10006
10007 2004-09-28 Devang Patel <dpatel@apple.com>
10008
10009 * tree-pretty-print.c (dump_generic_node): Print vector types.
10010
10011 2004-09-28 Nick Clifton <nickc@redhat.com>
10012
10013 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Replace with an
10014 invocation of the function sh_init_cumulative_args.
10015 (INIT_CUMULATIVE_LIBCALL_ARGS): Likewise.
10016 (INIT_CUMULATIVE_INCOMING_ARGS): Delete.
10017 * config/sh/sh-protos.h: Prototype sh_init_cumulative_args.
10018 * config/sh/sh.c (sh_init_cumulative_args): New function based
10019 on the contents of the old INIT_CUMULATIVE_ARGS macro but with a
10020 heuristic added to determine the setting of force_mem when a
10021 library function is being called.
10022
10023 2004-09-28 Diego Novillo <dnovillo@redhat.com>
10024
10025 * tree-ssa-loop-im.c (single_reachable_address) <PHI_NODE>:
10026 Skip constant arguments.
10027
10028 2004-09-28 Diego Novillo <dnovillo@redhat.com>
10029
10030 * tree-ssa-alias.c (create_name_tags): If PTR points to a
10031 volatile type, mark the tag volatile.
10032 (get_tmt_for): If TAG_TYPE is a volatile type, mark the tag
10033 volatile.
10034
10035 2004-09-28 Andrew Pinski <pinskia@physics.uc.edu>
10036
10037 * tree.def (vec_cond_expr): Fix. Change 'e'
10038 to tcc_expression.
10039
10040 2004-09-28 Kazu Hirata <kazu@cs.umass.edu>
10041
10042 * basic-block.h: Fix a comment typo.
10043
10044 2004-09-28 Kazu Hirata <kazu@cs.umass.edu>
10045
10046 * optabs.c, optabs.h: Fix comment typos.
10047
10048 2004-09-28 Eric Botcazou <ebotcazou@act-europe.fr>
10049
10050 * config/sparc/sparc.md (call_address_struct_value_sp32):
10051 Properly mask the immediate field of the 'unimp' instruction.
10052 (call_symbolic_struct_value_sp32): Likewise.
10053
10054 2004-09-28 Ben Elliston <bje@au.ibm.com>
10055 Steven Bosscher <stevenb@suse.de>
10056 Andrew Pinski <pinskia@physics.uc.edu>
10057
10058 Merge from edge-vector-branch:
10059 * basic-block.h: Include vec.h, errors.h. Instantiate a VEC(edge).
10060 (struct edge_def): Remove pred_next, succ_next members.
10061 (struct basic_block_def): Remove pred, succ members. Add preds
10062 and succs members of type VEC(edge).
10063 (FALLTHRU_EDGE): Redefine using EDGE_SUCC.
10064 (BRANCH_EDGE): Likewise.
10065 (EDGE_CRITICAL_P): Redefine using EDGE_COUNT.
10066 (EDGE_COUNT, EDGE_I, EDGE_PRED, EDGE_SUCC): New.
10067 (edge_iterator): New.
10068 (ei_start, ei_last, ei_end_p, ei_one_before_end_p): New.
10069 (ei_next, ei_prev, ei_edge, ei_safe_edge): Likewise.
10070 (FOR_EACH_EDGE): New.
10071 * bb-reorder.c (find_traces): Use FOR_EACH_EDGE and EDGE_* macros
10072 where applicable.
10073 (rotate_loop): Likewise.
10074 (find_traces_1_route): Likewise.
10075 (bb_to_key): Likewise.
10076 (connect_traces): Likewise.
10077 (copy_bb_p): Likewise.
10078 (find_rarely_executed_basic_blocks_and_crossing_edges): Likewise.
10079 (add_labels_and_missing_jumps): Likewise.
10080 (fix_up_fall_thru_edges): Likewise.
10081 (find_jump_block): Likewise.
10082 (fix_crossing_conditional_branches): Likewise.
10083 (fix_crossing_unconditional_branches): Likewise.
10084 (add_reg_crossing_jump_notes): Likewise.
10085 * bt-load.c (augment_live_range): Likewise.
10086 * cfg.c (clear_edges): Likewise.
10087 (unchecked_make_edge): Likewise.
10088 (cached_make_edge): Likewise.
10089 (make_single_succ_edge): Likewise.
10090 (remove_edge): Likewise.
10091 (redirect_edge_succ_nodup): Likewise.
10092 (check_bb_profile): Likewise.
10093 (dump_flow_info): Likewise.
10094 (alloc_aux_for_edges): Likewise.
10095 (clear_aux_for_edges): Likewise.
10096 (dump_cfg_bb_info): Likewise.
10097 * cfganal.c (forwarder_block_p): Likewise.
10098 (can_fallthru): Likewise.
10099 (could_fall_through): Likewise.
10100 (mark_dfs_back_edges): Likewise.
10101 (set_edge_can_fallthru_flag): Likewise.
10102 (find_unreachable_blocks): Likewise.
10103 (create_edge_list): Likewise.
10104 (verify_edge_list): Likewise.
10105 (add_noreturn_fake_exit_edges): Likewise.
10106 (connect_infinite_loops_to_exit): Likewise.
10107 (flow_reverse_top_sort_order_compute): Likewise.
10108 (flow_depth_first_order_compute): Likewise.
10109 (flow_preorder_transversal_compute): Likewise.
10110 (flow_dfs_compute_reverse_execute): Likewise.
10111 (dfs_enumerate_from): Likewise.
10112 (compute_dominance_frontiers_1): Likewise.
10113 * cfgbuild.c (make_edges): Likewise.
10114 (compute_outgoing_frequencies): Likewise.
10115 (find_many_sub_basic_blocks): Likewise.
10116 (find_sub_basic_blocks): Likewise.
10117 * cfgcleanup.c (try_simplify_condjump): Likewise.
10118 (thread_jump): Likewise.
10119 (try_forward_edges): Likewise.
10120 (merge_blocks_move): Likewise.
10121 (outgoing_edges_match): Likewise.
10122 (try_crossjump_to_edge): Likewise.
10123 (try_crossjump_bb): Likewise.
10124 (try_optimize_cfg): Likewise.
10125 (merge_seq_blocks): Likewise.
10126 * cfgexpand.c (expand_gimple_tailcall): Likewise.
10127 (expand_gimple_basic_block): Likewise.
10128 (construct_init_block): Likewise.
10129 (construct_exit_block): Likewise.
10130 * cfghooks.c (verify_flow_info): Likewise.
10131 (dump_bb): Likewise.
10132 (delete_basic_block): Likewise.
10133 (split_edge): Likewise.
10134 (merge_blocks): Likewise.
10135 (make_forwarder_block): Likewise.
10136 (tidy_fallthru_edges): Likewise.
10137 (can_duplicate_block_p): Likewise.
10138 (duplicate_block): Likewise.
10139 * cfglayout.c (fixup_reorder_chain): Likewise.
10140 (fixup_fallthru_exit_predecessor): Likewise.
10141 (can_copy_bbs_p): Likewise.
10142 (copy_bbs): Likewise.
10143 * cfgloop.c (flow_loops_cfg_dump): Likewise.
10144 (flow_loop_entry_edges_find): Likewise.
10145 (flow_loop_exit_edges_find): Likewise.
10146 (flow_loop_nodes_find): Likewise.
10147 (mark_single_exit_loops): Likewise.
10148 (flow_loop_pre_header_scan): Likewise.
10149 (flow_loop_pre_header_find): Likewise.
10150 (update_latch_info): Likewise.
10151 (canonicalize_loop_headers): Likewise.
10152 (flow_loops_find): Likewise.
10153 (get_loop_body_in_bfs_order): Likewise.
10154 (get_loop_exit_edges): Likewise.
10155 (num_loop_branches): Likewise.
10156 (verify_loop_structure): Likewise.
10157 (loop_latch_edge): Likewise.
10158 (loop_preheader_edge): Likewise.
10159 * cfgloopanal.c (mark_irreducible_loops): Likewise.
10160 (expected_loop_iterations): Likewise.
10161 * cfgloopmanip.c (remove_bbs): Likewise.
10162 (fix_bb_placement): Likewise.
10163 (fix_irreducible_loops): Likewise.
10164 (remove_path): Likewise.
10165 (scale_bbs_frequencies): Likewise.
10166 (loopify): Likewise.
10167 (unloop): Likewise.
10168 (fix_loop_placement): Likewise.
10169 (loop_delete_branch_edge): Likewise.
10170 (duplicate_loop_to_header_edge): Likewise.
10171 (mfb_keep_just): Likewise.
10172 (create_preheader): Likewise.
10173 (force_single_succ_latches): Likewise.
10174 (loop_split_edge_with): Likewise.
10175 (create_loop_notes): Likewise.
10176 * cfgrtl.c (rtl_split_block): Likewise.
10177 (rtl_merge_blocks): Likewise.
10178 (rtl_can_merge_blocks): Likewise.
10179 (try_redirect_by_replacing_jump): Likewise.
10180 (force_nonfallthru_and_redirect): Likewise.
10181 (rtl_tidy_fallthru_edge): Likewise.
10182 (commit_one_edge_insertion): Likewise.
10183 (commit_edge_insertions): Likewise.
10184 (commit_edge_insertions_watch_calls): Likewise.
10185 (rtl_verify_flow_info_1): Likewise.
10186 (rtl_verify_flow_info): Likewise.
10187 (purge_dead_edges): Likewise.
10188 (cfg_layout_redirect_edge_and_branch): Likewise.
10189 (cfg_layout_can_merge_blocks_p): Likewise.
10190 (rtl_flow_call_edges_add): Likewise.
10191 * cse.c (cse_cc_succs): Likewise.
10192 * df.c (hybrid_search): Likewise.
10193 * dominance.c (calc_dfs_tree_nonrec): Likewise.
10194 (calc_dfs_tree): Likewise.
10195 (calc_idoms): Likewise.
10196 (recount_dominator): Likewise.
10197 * domwalk.c (walk_dominator_tree): Likewise.
10198 * except.c (emit_to_new_bb_before): Likewise.
10199 (connect_post_landing_pads): Likewise.
10200 (sjlj_emit_function_enter): Likewise.
10201 (sjlj_emit_function_exit): Likewise.
10202 (finish_eh_generation): Likewise.
10203 * final.c (compute_alignments): Likewise.
10204 * flow.c (calculate_global_regs_live): Likewise.
10205 (initialize_uninitialized_subregs): Likewise.
10206 (init_propagate_block_info): Likewise.
10207 * function.c (thread_prologue_and_epilogue_insns): Likewise.
10208 * gcse.c (find_implicit_sets): Likewise.
10209 (bypass_block): Likewise.
10210 (bypass_conditional_jumps): Likewise.
10211 (compute_pre_data): Likewise.
10212 (insert_insn_end_bb): Likewise.
10213 (insert_store): Likewise.
10214 (remove_reachable_equiv_notes): Likewise.
10215 * global.c (global_conflicts): Likewise.
10216 (calculate_reg_pav): Likewise.
10217 * graph.c (print_rtl_graph_with_bb): Likewise.
10218 * ifcvt.c (mark_loop_exit_edges): Likewise.
10219 (merge_if_block): Likewise.
10220 (find_if_header): Likewise.
10221 (block_jumps_and_fallthru_p): Likewise.
10222 (find_if_block): Likewise.
10223 (find_cond_trap): Likewise.
10224 (block_has_only_trap): Likewise.
10225 (find_if_case1): Likewise.
10226 (find_if_case_2): Likewise.
10227 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
10228 (perfect_nestify): Likewise.
10229 * lcm.c (compute_antinout_edge): Likewise.
10230 (compute_laterin): Likewise.
10231 (compute_available): Likewise.
10232 (compute_nearerout): Likewise.
10233 * loop-doloop.c (doloop_modify): Likewise.
10234 * loop-init.c (loop_optimizer_init): Likewise.
10235 * loop-invariant.c (find_exits): Likewise.
10236 * loop-iv.c (simplify_using_initial_values): Likewise.
10237 (check_simple_exit): Likewise.
10238 (find_simple_exit): Likewise.
10239 * loop-unroll.c (peel_loop_completely): Likewise.
10240 (unroll_loop_constant_iterations): Likewise.
10241 (unroll_loop_runtime_iterations): Likewise.
10242 * loop-unswitch.c (may_unswitch_on): Likewise.
10243 (unswitch_loop): Likewise.
10244 * modulo-sched.c (generate_prolog_epilog): Likewise.
10245 (sms_schedule): Likewise.
10246 * postreload-gcse.c (eliminate_partially_redundant_load):
10247 Likewise.
10248 * predict.c (can_predict_insn_p): Likewise.
10249 (set_even_probabilities): Likewise.
10250 (combine_predictions_for_bb): Likewise.
10251 (predict_loops): Likewise.
10252 (estimate_probability): Likewise.
10253 (tree_predict_by_opcode): Likewise.
10254 (tree_estimate_probability): Likewise.
10255 (last_basic_block_p): Likewise.
10256 (propagate_freq): Likewise.
10257 (estimate_loops_at_level): Likewise.
10258 (estimate_bb_frequencies): Likewise.
10259 * profile.c (instrument_edges): Likewise.
10260 (get_exec_counts): Likewise.
10261 (compute_branch_probabilities): Likewise.
10262 (branch_prob): Likewise.
10263 * ra-build.c (live_in): Likewise.
10264 * ra-rewrite.c (rewrite_program2): Likewise.
10265 * ra.c (reg_alloc): Likewise.
10266 * reg-stack.c (reg_to_stack): Likewise.
10267 (convert_regs_entry): Likewise.
10268 (compensate_edge): Likewise.
10269 (convert_regs_1): Likewise,
10270 (convert_regs_2): Likewise.
10271 (convert_regs): Likewise.
10272 * regrename.c (copyprop_hardreg_forward): Likewise.
10273 * reload1.c (fixup_abnormal_edges): Likewise.
10274 * sbitmap.c (sbitmap_intersection_of_succs): Likewise.
10275 (sbitmap_insersection_of_preds): Likewise.
10276 (sbitmap_union_of_succs): Likewise.
10277 (sbitmap_union_of_preds): Likewise.
10278 * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
10279 (fix_basic_block_boundaries): Likewise.
10280 (sched_ebbs): Likewise.
10281 * sched-rgn.c (build_control_flow): Likewise.
10282 (find_rgns): Likewise.
10283 * tracer.c (find_best_successor): Likewise.
10284 (find_best_predecessor): Likewise.
10285 (tail_duplicate): Likewise.
10286 * tree-cfg.c (make_edges): Likewise.
10287 (make_ctrl_stmt_edges): Likewise.
10288 (make_goto_expr_edges): Likewise.
10289 (tree_can_merge_blocks_p): Likewise.
10290 (tree_merge_blocks): Likewise.
10291 (cfg_remove_useless_stmts_bb): Likewise.
10292 (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
10293 (tree_block_forwards_to): Likewise.
10294 (cleanup_control_expr_graph): Likewise.
10295 (find_taken_edge): Likewise.
10296 (dump_cfg_stats): Likewise.
10297 (tree_cfg2vcg): Likewise.
10298 (disband_implicit_edges): Likewise.
10299 (tree_find_edge_insert_loc): Likewise.
10300 (bsi_commit_edge_inserts): Likewise.
10301 (tree_split_edge): Likewise.
10302 (tree_verify_flow_info): Likewise.
10303 (tree_make_forwarder_block): Likewise.
10304 (tree_forwarder_block_p): Likewise.
10305 (thread_jumps): Likewise.
10306 (tree_try_redirect_by_replacing_jump): Likewise.
10307 (tree_split_block): Likewise.
10308 (add_phi_args_after_copy_bb): Likewise.
10309 (rewrite_to_new_ssa_names_bb): Likewise.
10310 (dump_function_to_file): Likewise.
10311 (print_pred_bbs): Likewise.
10312 (print_loop): Likewise.
10313 (tree_flow_call_edges_add): Likewise.
10314 (split_critical_edges): Likewise.
10315 (execute_warn_function_return): Likewise.
10316 (extract_true_false_edges_from_block): Likewise.
10317 * tree-if-conv.c (tree_if_conversion): Likewise.
10318 (if_convertable_bb_p): Likewise.
10319 (find_phi_replacement_condition): Likewise.
10320 (combine_blocks): Likewise.
10321 * tree-into-ssa.c (compute_global_livein): Likewise.
10322 (ssa_mark_phi_uses): Likewise.
10323 (ssa_rewrite_initialize_block): Likewise.
10324 (rewrite_add_phi_arguments): Likewise.
10325 (ssa_rewrite_phi_arguments): Likewise.
10326 (insert_phi_nodes_for): Likewise.
10327 (rewrite_into_ssa): Likewise.
10328 (rewrite_ssa_into_ssa): Likewise.
10329 * tree-mudflap.c (mf_build_check_statement_for): Likewise.
10330 * tree-outof-ssa.c (coalesce_abnormal_edges): Likewise.
10331 (rewrite_trees): Likewise.
10332 * tree-pretty-print.c (dump_bb_header): Likewise.
10333 (dump_implicit_edges): Likewise.
10334 * tree-sra.c (insert_edge_copies): Likewise.
10335 (find_obviously_necessary_stmts): Likewise.
10336 (remove_data_stmt): Likewise.
10337 * tree-ssa-dom.c (thread_across_edge): Likewise.
10338 (dom_opt_finalize_block): Likewise.
10339 (single_incoming_edge_ignoring_loop_edges): Likewise.
10340 (record_equivalences_from_incoming_edges): Likewise.
10341 (cprop_into_successor_phis): Likewise.
10342 * tree-ssa-live.c (live_worklist): Likewise.
10343 (calculate_live_on_entry): Likewise.
10344 (calculate_live_on_exit): Likewise.
10345 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
10346 (copy_loop_headers): Likewise.
10347 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
10348 (fill_always_executed_in): Likewise.
10349 * tree-ssa-loop-ivcanon.c (create_canonical_iv): Likewise.
10350 * tree-ssa-loop-ivopts.c (find_interesting_uses): Likewise.
10351 (compute_phi_arg_on_exit): Likewise.
10352 * tree-ssa-loop-manip.c (add_exit_phis_edge): Likewise.
10353 (get_loops_exit): Likewise.
10354 (split_loop_exit_edge): Likewise.
10355 (ip_normal_pos): Likewise.
10356 * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
10357 Likewise.
10358 * tree-ssa-phiopt.c (candidate_bb_for_phi_optimization): Likewise.
10359 (replace_phi_with_stmt): Likewise.
10360 (value_replacement): Likewise.
10361 * tree-ssa-pre.c (compute_antic_aux): Likewise.
10362 (insert_aux): Likewise.
10363 (init_pre): Likewise.
10364 * tree-ssa-propagate.c (simulate_stmt): Likewise.
10365 (simulate_block): Likewise.
10366 (ssa_prop_init): Likewise.
10367 * tree-ssa-threadupdate.c (thread_block): Likewise.
10368 (create_block_for_threading): Likewise.
10369 (remove_last_stmt_and_useless_edges): Likewise.
10370 * tree-ssa.c (verify_phi_args): Likewise.
10371 (verify_ssa): Likewise.
10372 * tree_tailcall.c (independent_of_stmt_p): Likewise.
10373 (find_tail_calls): Likewise.
10374 (eliminate_tail_call): Likewise.
10375 (tree_optimize_tail_calls_1): Likewise.
10376 * tree-vectorizer.c (vect_transform_loop): Likewise.
10377 * var-tracking.c (prologue_stack_adjust): Likewise.
10378 (vt_stack_adjustments): Likewise.
10379 (vt_find_locations): Likewise.
10380 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
10381 * config/i386/i386.c (ix86_pad_returns): Likewise.
10382 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
10383 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
10384
10385 2004-09-28 Eric Botcazou <ebotcazou@libertysurf.fr>
10386
10387 PR target/16532
10388 * config/sparc/sparc.c (struct machine_function): New field
10389 'leaf_function_p' and 'prologue_data_valid_p'.
10390 (sparc_leaf_function_p, sparc_prologue_data_valid_p): New macro
10391 to conveniently access the above fields.
10392 (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Delete.
10393 (eligible_for_return_delay): Use 'sparc_leaf_function_p' instead
10394 of the generic flavor 'current_function_uses_only_leaf_regs'.
10395 (eligible_for_sibcall_delay): Likewise.
10396 (sparc_expand_prologue): Compute 'sparc_leaf_function_p' and set
10397 'sparc_prologue_data_valid_p'. Use 'sparc_leaf_function_p'.
10398 (sparc_asm_function_prologue): Add sanity check for the assumption
10399 made in 'sparc_expand_prologue'. Use 'sparc_leaf_function_p'.
10400 (sparc_can_use_return_insn_p): New function.
10401 (sparc_expand_epilogue): Use 'sparc_leaf_function_p'.
10402 (output_restore): Likewise.
10403 (output_sibcall): Likewise.
10404 (sparc_output_mi_thunk): Likewise.
10405 * config/sparc/sparc-protos.h (sparc_can_use_return_insn_p): Declare.
10406 * config/sparc/sparc.md (return): New expander.
10407
10408 * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Minor tweak.
10409
10410 2004-09-27 Mark Mitchell <mark@codesourcery.com>
10411
10412 PR c++/17642
10413 * stor-layout.c (layout_decl): Use fold_convert, not convert.
10414 (bit_from_pos): Likewise.
10415 (byte_from_pos): Likewise.
10416 (pos_from_bit): Likewise.
10417 (normalize_offset): Likewise.
10418 (place_field): Likewise.
10419 (finalize_type_size): Likewise.
10420 (layout_type): Likewise.
10421 * tree.c (build_index_type): Likewise.
10422
10423 2004-09-27 Devang Patel <dpatel@apple.com>
10424
10425 * expr.c (expand_expr_real_1): Handle VEC_COND_EXPR.
10426 * genopinit.c (optabs): New entry for vcond_gen_code and
10427 vcondu_gen_code.
10428 * optabs.c (vcond_gen_code, vcondu_gen_code): New optabs.
10429 (get_rtx_code): New function.
10430 (vector_compare_rtx): New function.
10431 (init_optabs): Initialize vcond_gen_code and vcondu_gen_code.
10432 (expand_vec_cond_expr_p): New function.
10433 (expand_vec_cond_expr): New function.
10434 (get_vcond_icode): New function.
10435 * optabs.h (expand_vec_cond_expr, expand_vec_cond_expr_p): New externs.
10436 (vcond_gen_code, vcondu_gen_code): Same.
10437
10438 2004-09-27 Kelley Cook <kcook@gcc.gnu.org>
10439
10440 * Makefile.in (STAGESTUFF): Split into ...
10441 (STAGECOPYSTUFF, STAGEMOVESTUFF): ... these.
10442 (mostlyclean): Update.
10443 (stage1-start, stage2-start, stage3-start, stage4-start,
10444 stageprofile-start, stagefeedback-start): Copy the STAGECOPYSTUFF.
10445 Move the STAGEMOVESTUFF.
10446
10447 2004-09-27 Eric Botcazou <ebotcazou@libertysurf.fr>
10448
10449 * system.h (getpagesize): Return 'int' instead of 'long'.
10450
10451 2004-09-27 Michael Matz <matz@suse.de>
10452
10453 PR bootstrap/17698
10454 PR bootstrap/17702
10455 * bitmap.h (bmp_iter_single_init, bmp_iter_and_not_init,
10456 bmp_iter_and_init): Shift by bit_in_word.
10457
10458 2004-09-27 Kelley Cook <kcook@gcc.gnu.org>
10459
10460 * aclocal.m4: Quote m4_includes. Include ../config/gcc-lib-path.m4.
10461 * configure.ac: Don't sinclude it here.
10462 * configure: Regenerate.
10463
10464 2004-09-27 Dorit Naishlos <dorit@il.ibm.com>
10465
10466 * config/rs6000/rs6000.c (rs6000_legitimate_address, print_operand):
10467 Handle AND pattern
10468
10469 2004-09-27 Joseph S. Myers <jsm@polyomino.org.uk>
10470
10471 PR c/13804
10472 * c-typeck.c (build_component_ref): Name type involved in
10473 diagnostic for structure or union without a member of the given
10474 name.
10475
10476 2004-09-27 DJ Delorie <dj@redhat.com>
10477
10478 * config/stormy16/stormy16.c (xstormy16_asm_output_aligned_common):
10479 .comm alignment is bytes, not bits.
10480
10481 2004-09-27 Devang Patel <dpatel@apple.com>
10482
10483 * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
10484 (print_call_name): Do not print VEC_COND_EXPR.
10485
10486 2004-09-27 Devang Patel <dpatel@apple.com>
10487
10488 * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
10489
10490 2004-09-27 Jan Hubicka <jh@suse.cz>
10491
10492 * i386.c (athlon_cost, k8_cost): Set BRANCH_COST to 5.
10493
10494 2004-09-27 Kazu Hirata <kazu@cs.umass.edu>
10495
10496 * bitmap.h: Fix a comment typo.
10497
10498 2004-09-27 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
10499
10500 * libgcc2.c (getpagesize): Change type of return value to int.
10501
10502 2004-09-26 Matt Austern <austern@apple.com>
10503
10504 * ggc-page.c (GGC_QUIRE_SIZE): Bump up from 16 to 256 if we're
10505 using mmap.
10506
10507 2004-09-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10508
10509 * bitmap.h (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_COMPL_IN_BITMAP,
10510 EXECUTE_IF_AND_IN_BITMAP): Changed to iterator style.
10511 (bitmap_iterator): New type.
10512 (bmp_iter_common_next_1, bmp_iter_single_next_1, bmp_iter_single_init,
10513 bmp_iter_end_p, bmp_iter_single_next, bmp_iter_and_not_next_1,
10514 bmp_iter_and_not_init, bmp_iter_and_not_next, bmp_iter_and_next_1,
10515 bmp_iter_and_init, bmp_iter_and_next): New functions.
10516 * basic-block.h (EXECUTE_IF_SET_IN_REG_SET,
10517 EXECUTE_IF_AND_COMPL_IN_REG_SET, EXECUTE_IF_AND_IN_REG_SET): Changed to
10518 use iterator-style EXECUTE_IF_IN_BITMAP macros.
10519 * bitmap.c (bitmap_print): Ditto.
10520 * bt-load.c (clear_btr_from_live_range, add_btr_to_live_range,
10521 btr_def_live_range): Ditto.
10522 * cfganal.c (compute_dominance_frontiers_1) Ditto.
10523 * cgraphunit.c (convert_UIDs_in_bitmap, cgraph_characterize_statics):
10524 Ditto.
10525 * ddg.c (build_inter_loop_deps): Ditto.
10526 * df.c (FOR_EACH_BB_IN_BITMAP, df_bb_reg_info_compute, df_refs_update):
10527 Ditto.
10528 * except.c (remove_eh_handler): Ditto.
10529 * flow.c (reg_set_to_hard_reg_set): Ditto.
10530 * gcse.c (clear_modify_mem_tables): Ditto.
10531 * global.c (build_insn_chain): Ditto.
10532 * ifcvt.c (dead_or_predicable): Ditto.
10533 * loop-invariant.c (get_inv_cost, set_move_mark, move_invariant_reg):
10534 Ditto.
10535 * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs): Ditto.
10536 * ra-rewrite.c (reloads_to_loads, rewrite_program2,
10537 detect_web_parts_to_rebuild, delete_useless_defs, actual_spill): Ditto.
10538 * tree-cfg.c (allocate_ssa_names, tree_duplicate_sese_region,
10539 tree_purge_all_dead_eh_edges): Ditto.
10540 * tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
10541 insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags,
10542 rewrite_ssa_into_ssa): Ditto.
10543 * tree-outof-ssa.c (find_replaceable_exprs): Ditto.
10544 * tree-sra.c (scan_function, decide_instantiations, scalarize_parms):
10545 Ditto.
10546 * tree-ssa-alias.c (init_alias_info, compute_points_to_and_addr_escape,
10547 compute_flow_sensitive_aliasing, maybe_create_global_var,
10548 dump_points_to_info_for): Ditto.
10549 * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Ditto.
10550 * tree-ssa-dse.c (dse_finalize_block): Ditto.
10551 * tree-ssa-live.c (live_worklist, calculate_live_on_entry,
10552 calculate_live_on_exit, build_tree_conflict_graph, dump_live_info):
10553 Ditto.
10554 * tree-ssa-loop-ivopts.c (find_induction_variables,
10555 find_interesting_uses, add_old_ivs_candidates, alloc_use_cost_map,
10556 determine_use_iv_costs, determine_set_costs, find_best_candidate,
10557 set_cost_up_to, create_new_ivs, remove_unused_ivs, free_loop_data):
10558 Ditto.
10559 * tree-ssa-loop-manip.c (add_exit_phis_var, add_exit_phis): Ditto.
10560 * tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
10561 add_call_read_ops): Ditto.
10562 * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Ditto.
10563
10564 2004-09-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10565
10566 * pa.c (print_operand): Use non-trapping completers for UNLE, UNLT,
10567 UNGE, UNGT, UNEQ, UNORDERED and ORDERED comparisons.
10568
10569 2004-09-26 Ulrich Weigand <uweigand@de.ibm.com>
10570
10571 * builtins.c (expand_builtin_memcmp): Adjust MEM_SIZE to
10572 reflect size of memory regions being compared.
10573
10574 2004-09-26 Ulrich Weigand <uweigand@de.ibm.com>
10575
10576 * builtins.c (get_memory_rtx): Set mem attributes for non-ADDR_EXPR
10577 expressions. Always clear MEM_SIZE and alias set.
10578
10579 2004-09-26 Roger Sayle <roger@eyesopen.com>
10580 Giovanni Bajo <giovannibajo@gcc.gnu.org>
10581
10582 PR middle-end/17112
10583 * stor-layout.c (compute_record_mode): For records with a single
10584 field, only use the field's mode if its size matches what we'd
10585 have choosen for the record ourselves. This forces the use of
10586 BLKmode for packed records that don't completely fill a mode.
10587
10588 2004-09-26 Roger Sayle <roger@eyesopen.com>
10589
10590 PR middle-end/17151
10591 * combine.c (force_to_mode): Remove dubious early return test that
10592 inhibits further optimization.
10593
10594 2004-09-26 Kazu Hirata <kazu@cs.umass.edu>
10595
10596 * profile.c: Fix a comment typo.
10597
10598 2004-09-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10599
10600 PR bootstrap/17591
10601 * tree-ssa-loop-im.c (for_each_index): Call callback for component_refs
10602 with varying offset.
10603 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): New function.
10604 (idx_contains_abnormal_ssa_name_p): Scan step and lower bound for
10605 ARRAY_REFS.
10606 (expr_invariant_in_loop_p): New function.
10607 (idx_find_step): Handle step and lower bound for ARRAY_REFs. Handle
10608 component_ref_field_offset for COMPONENT_REFs. Do not allow
10609 ALIGN_INDIRECT_REFs and MISALIGNED_INDIRECT_REFs.
10610 (add_address_candidates): Do not handle ALIGN_INDIRECT_REFs and
10611 MISALIGNED_INDIRECT_REFs.
10612 (idx_remove_ssa_names): Handle step and lower bound for ARRAY_REFs.
10613 (rewrite_address_base): Do not handle ALIGN_INDIRECT_REFs and
10614 MISALIGNED_INDIRECT_REFs.
10615
10616 2004-09-26 Joseph S. Myers <jsm@polyomino.org.uk>
10617
10618 PR c/11459
10619 * gcc.c (cpp_options, cc1_options): Preserve relative order of
10620 -std and -ansi options.
10621
10622 2004-09-26 Jan Hubicka <jh@suse.cz>
10623
10624 * dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die
10625 for nested functions whose proper parent has not been output.
10626
10627 * profile.c (compute_branch_probabilities): Use REG_BR_PROB notes
10628 when re-constructing profile previously invalidated by loop.
10629
10630 2004-09-25 Dale Johannesen <dalej@apple.com>
10631
10632 * tree-gimple.c: Move GIMPLE definition...
10633 * doc/tree-ssa.texi: here.
10634
10635 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
10636
10637 * tree-vectorizer.c: Fix a comment typo.
10638
10639 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
10640
10641 * c-typeck.c, defaults.h, dwarf.h, dwarf2out.c, fold-const.c,
10642 gthr-dce.h, gthr-posix.h, gthr-solaris.h, gthr-win32.h,
10643 lambda-code.c, lambda-mat.c, libgcc2.c, stmt.c,
10644 tree-ssa-pre.c, tree-vn.c, tree.h: Fix comment formatting.
10645
10646 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
10647
10648 * tree-ssa-loop-unswitch.c: Fix a comment typo.
10649
10650 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
10651
10652 * doc/passes.texi: Fix a typo.
10653
10654 2004-09-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10655
10656 * tree-optimize.c (init_tree_optimization_passes): Add
10657 pass_record_bounds.
10658 * tree-pass.h (pass_record_bounds): Declare.
10659 * tree-ssa-loop.c (tree_ssa_loop_bounds, pass_record_bounds):
10660 New pass.
10661
10662 2004-09-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10663
10664 PR tree-optimization/17474
10665 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Determine
10666 offset of the field correctly when DECL_FIELD_BIT_OFFSET != 0.
10667
10668 2004-09-25 Jan Hubicka <jh@suse.cz>
10669
10670 * predict.c (counts_to_freqs): Make global.
10671 * predict.h (counts_to_freqa): Declare.
10672 * profile.c (compute_branch_probabilities): Compute frequencies
10673 * tree-profile.c (do_tree_profiling): Refine conditional on when
10674 tree profiling pass is needed.
10675
10676 * passes.c (rest_of_handle_cfg): Disable const/pure function
10677 detection when doing tree based profiling.
10678
10679 * tree-inline.c (expand_call_inline): Fix incorrectly reversed
10680 conditional.
10681
10682 2004-09-25 Richard Sandiford <rsandifo@redhat.com>
10683
10684 * config/mips/mips.h (struct mips_args): Clarify comments.
10685 * config/mips/mips.c (struct mips_arg_info): Likewise.
10686 (mips_arg_info): Don't allow fpr_p to affect the register or
10687 stack alignment. Remove o64 silliness.
10688 (function_arg): Deal with the o32 float,float case specially.
10689
10690 2004-09-25 Richard Sandiford <rsandifo@redhat.com>
10691
10692 * config/mips/mips.md (loadx, storex): Define for V2SF.
10693
10694 2004-09-25 Ulrich Weigand <uweigand@de.ibm.com>
10695
10696 * config/s390/s390-protos.h (s390_back_chain_rtx): Add prototype.
10697 * config/s390/s390.c (s390_back_chain_rtx): New function.
10698 * config/s390/s390.md ("allocate_stack"): Use s390_back_chain_rtx.
10699 Call anti_adjust_stack.
10700 ("restore_stack_block"): Use s390_back_chain_rtx. Enable pattern
10701 only if compiling with back chain.
10702 ("save_stack_nonlocal", "restore_stack_nonlocal"): Save/restore
10703 back chain only if back chain enabled. Use s390_back_chain_rtx.
10704
10705 2004-09-25 Joseph S. Myers <jsm@polyomino.org.uk>
10706
10707 * doc/trouble.texi: Remove obsolete information. Update
10708 information on how to regenerate fixincluded headers.
10709
10710 2004-09-25 Joseph S. Myers <jsm@polyomino.org.uk>
10711
10712 PR c/12951
10713 * doc/invoke.texi: Document that
10714 -Wno-error-implicit-function-declaration is not accepted.
10715
10716 2004-09-24 Richard Henderson <rth@redhat.com>
10717
10718 * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): New.
10719 * config/alpha/alpha.c (alpha_vector_mode_supported_p): Don't depend
10720 on TARGET_MAX.
10721 (alpha_expand_mov): Allow unaligned vectors.
10722 (alpha_expand_unaligned_store): Use CONST0_RTX.
10723 (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
10724
10725 2004-09-24 Jeff Law <law@redhat.com>
10726
10727 * tree-ssa-dom.c (dom_opt_finalize_block): Fix violation of strict
10728 aliasing rules.
10729 (simplify_cond_and_lookup_avail_expr): Likewise.
10730
10731 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
10732
10733 PR c/12802
10734 * doc/extend.texi (Unnamed Fields): Remove "." from end of long
10735 title. Document interaction with -fms-extensions.
10736 * doc/invoke.texi (-fms-extensions): Refer to Unnamed Fields
10737 section.
10738
10739 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
10740
10741 PR c/12713
10742 * doc/extend.texi: Document interaction of attribute noreturn and
10743 longjmp.
10744
10745 2004-09-24 Richard Henderson <rth@redhat.com>
10746
10747 PR rtl-opt/17503
10748 * regclass.c (subregs_of_mode): Turn into an htab. Make static.
10749 (som_hash, som_eq): New.
10750 (init_subregs_of_mode, record_subregs_of_mode): New.
10751 (cannot_change_mode_set_regs): Rewrite for htab implementation.
10752 (invalid_mode_change_p): Likewise.
10753 * combine.c (gen_lowpart_for_combine): Use record_subregs_of_mode.
10754 * flow.c (mark_used_regs): Likewise.
10755 (life_analysis): Use init_subregs_of_mode.
10756 * regs.h (subregs_of_mode): Remove.
10757 * rtl.h (init_subregs_of_mode, record_subregs_of_mode): Declare.
10758
10759 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
10760
10761 * tree-ssa-phiopt.c (conditional_replacement): Use the correct
10762 type with the copy of the conditional.
10763
10764 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
10765
10766 PR tree-opt/16954
10767 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10768 Prevent renaming if the aliasing sets of the type which the
10769 pointer points to are different.
10770
10771 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
10772
10773 PR c/17188
10774 * c-decl.c (diagnose_mismatched_decls): Check for duplicate
10775 declarations of enumerators.
10776 (start_struct): Check TYPE_SIZE rather than TYPE_FIELDS to check
10777 for redefinition. Check for nested redefinition.
10778 (finish_struct): Don't check for nested redefinition.
10779 (start_enum): Check for nested redefinition.
10780
10781 2004-09-24 Devang Patel <dpatel@apple.com>
10782
10783 * tree-if-conv.c (tree_if_convert_cond_expr0: Create temp. variable
10784 only when necesssary.
10785 (combine_blocks): Combine loop header and exit block.
10786
10787 2004-09-24 Paolo Bonzini <bonzini@gnu.org>
10788
10789 * hooks.c (hook_tree_tree_bool_null): New.
10790 * hooks.h (hook_tree_tree_bool_null): Declare it.
10791 * target-def.c (TARGET_FOLD_BUILTIN): Point to it.
10792 * targhooks.c (default_fold_builtin): Remove.
10793 * targhooks.h (default_fold_builtin): Remove.
10794
10795 2004-09-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10796
10797 PR rtl-optimization/17625
10798 * loop-doloop.c (doloop_modify): Unshare rtl before emitting it.
10799
10800 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
10801
10802 PR tree-opt/17624
10803 * tree-ssa-forwprop.c (record_single_argument_cond_exprs):
10804 Reject if any of the operands occur in an abnormal PHI.
10805
10806 2004-09-24 Andreas Schwab <schwab@suse.de>
10807
10808 * tree-ssa-dom.c (record_range): Fix violation of strict aliasing
10809 rules.
10810
10811 2004-09-24 Eric Botcazou <ebotcazou@libertysurf.fr>
10812
10813 * config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h
10814 if the GNU assembler is used.
10815 (sparc-*-solaris2*): Likewise.
10816 * dbxout.c (NO_DBX_BNSYM_ENSYM): Default to zero.
10817 (dbxout_function_end): Protect N_ENSYM with it.
10818 (dbxout_begin_prologue): Protect N_BNSYM with it.
10819 * doc/tm.texi (NO_DBX_BNSYM_ENSYM): Document it.
10820 * config/sparc/sol2.h (NO_DBX_BNSYM_ENSYM): Define to 1.
10821 * config/sparc/sol2-gas.h: New file.
10822
10823 2004-09-23 H.J. Lu <hongjiu.lu@intel.com>
10824
10825 PR bootstrap/17369
10826 * Makefile.in (@set_gcc_lib_path@): Added.
10827
10828 * configure.ac: Include ../config/gcc-lib-path.m4. Use
10829 TL_AC_GNU_MAKE_GCC_LIB_PATH.
10830 * configure: Regenerated.
10831
10832 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
10833
10834 PR c/6980
10835 * c-typeck.c (build_c_cast): Improve wording of
10836 -Wbad-function-cast diagnostic.
10837
10838 2004-09-23 Hans-Peter Nilsson <hp@axis.com>
10839
10840 PR target/17626
10841 * config/cris/cris.md (moverside, movemside): Rename variable
10842 "reg" to "otherop". To generate canonical RTX, check that otherop
10843 isn't constant instead of checking that operand 1 is a register.
10844
10845 2004-09-23 Jakub Jelinek <jakub@redhat.com>
10846
10847 * tree-ssa-propagate.c (set_rhs): Fail if EXPR is COMPOUND_EXPR.
10848
10849 2004-09-23 Diego Novillo <dnovillo@redhat.com>
10850 Jakub Jelinek <jakub@redhat.com>
10851
10852 * tree-flow.h (find_new_referenced_vars): Add prototype.
10853 * tree-sra.c (find_new_referenced_vars_1, find_new_referenced_vars):
10854 Move to...
10855 * tree-dfa.c (find_new_referenced_vars_1, find_new_referenced_vars):
10856 ... here.
10857 (mark_new_vars_to_rename): Walk through all operands.
10858 * tree-ssa-ccp.c (convert_to_gimple_builtin): New function.
10859 (execute_fold_all_builtins): Use it.
10860 (pass_fold_builtins): Add TODO_rename_vars to todo_flags_finish.
10861
10862 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
10863
10864 * gthr-tpf.h: New file.
10865 * config.gcc (s390x-ibm-tpf*): Add thread_file='tpf'.
10866 * gthr.h: Use gthr-tpf.h on TPF OS.
10867
10868 2004-09-23 Jeff Law <law@redhat.com>
10869
10870 * tree-ssa-ccp.c (get_default_value): Use SSA_NAME_VALUE rather
10871 than SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
10872 (substitute_and_fold): Likewise.
10873 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Remove everything
10874 except invariants from SSA_NAME_VALUE.
10875 (thread_across_edge): Use SSA_NAME_VALUE rather than SSA_NAME_EQUIV
10876 and SET_SSA_NAME_EQUIV.
10877 (restore_vars_to_original_value, record_const_or_copy): Likewise.
10878 (record_equivalences_from_phis, record_const_or_copy_1): Likewise.
10879 (record_equality, cprop_into_successor_phis): Likewise.
10880 (record_equivalences_from_stmt, cprop_operand): Likewise.
10881 (lookup_avail_expr): Likewise.
10882 * tree-ssa-pre.c (fini_pre): Remove everything except invariants
10883 from SSA_NAME_VALUE.
10884 * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): Kill.
10885 (struct tree_ssa_name): Kill EQUIV field. Remove GGC skip
10886 annotation from the VALUE_HANDLE field.
10887
10888 2004-09-21 Fariborz Jahanian <fjahanian@apple.com>
10889
10890 PR c++/13989
10891 PR c++/9844
10892 * tree.c (reconstruct_complex_type): Remove extra "this".
10893 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
10894 Add V4SFmode to case statement.
10895
10896 2004-09-23 Joseph S. Myers <jsm@polyomino.org.uk>
10897
10898 PR c/16833
10899 * doc/extend.texi, doc/invoke.texi: Document interaction of
10900 -fno-builtin with format checks. Note that built-in functions
10901 have effects beyond generating code that avoids calls to those
10902 functions.
10903
10904 2004-09-23 Frank Ch. Eigler <fche@redhat.com>
10905
10906 PR tree-optimization/17533
10907 * dominance.c (verify_dominators): Tolerate even more incorrect
10908 dominance data during error message printing.
10909 * tree-mudflap.c (mf_build_check_statement_for): Build basic blocks
10910 and edges more correctly.
10911
10912 2004-09-23 Dorit Naishlos <dorit@il.ibm.com>
10913
10914 * tree.def (ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF):
10915 New tree-codes.
10916 * tree.h (REF_ORIGINAL): Consider ALIGN_INDIRECT_REF and
10917 MISALIGNED_INDIRECT_REF.
10918 * alias.c (get_alias_set, nonoverlapping_memrefs_p): Likewise.
10919 * emit-rtl.c (mem_expr_equal_p, set_mem_attributes_minus_bitpos):
10920 Likewise.
10921 * expr.c (safe_from_p, expand_expr_real_1, rewrite_address_base)
10922 (find_interesting_uses_address): Likewise.
10923 * fold-const.c (non_lvalue, operand_equal_p): Likewise.
10924 (build_fold_addr_expr_with_type): Likewise.
10925 * gimplify.c (gimplify_addr_expr, gimplify_expr): Likewise.
10926 * print-rtl.c (print_mem_expr): Likewise.
10927 * tree-dump.c (dequeue_and_dump): Likewise.
10928 * tree-eh.c (tree_could_trap_p): Likewise.
10929 * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
10930 * tree-pretty-print.c (op_prio, op_symbol, dump_generic_node): Likewise.
10931 * tree-ssa-alias.c (find_ptr_dereference, ptr_is_dereferenced_by):
10932 Likewise.
10933 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
10934 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
10935 * tree-ssa-loop-im.c (for_each_index, is_call_clobbered_ref): Likewise.
10936 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
10937 (add_address_candidates, rewrite_address_base): Likewise.
10938 * tree-ssa-operands.c (get_expr_operands, get_indirect_ref_operands):
10939 Likewise.
10940 * tree.c (staticp, build1_stat): Likewise.
10941
10942 * tree.def (REALIGN_LOAD_EXPR, REALIGN_STORE_EXPR): New tree-codes.
10943 * tree-pretty-print.c (dump_generic_node): Consider REALIGN_LOAD_EXPR.
10944 * tree-ssa-operands.c (get_expr_operands): Likewise.
10945 * expr.c (expand_expr_real_1): Likewise.
10946
10947 * optabs.h (vec_realign_store_optab, vec_realign_load_optab): New
10948 optabs.
10949 (OTI_vec_realign_store, OTI_vec_realign_load): New optab_index values
10950 for the new optabs.
10951 (expand_ternary_op): New function.
10952 * genopinit.c (optabs): Handle the new optabs.
10953 * optabs.c (optab_for_tree_code): Add cases for the new tree-codes.
10954 (init_optabs): Initialize vec_realign_load_optab.
10955 (expand_ternary_op): New functions.
10956
10957 * target-def.h (TARGET_VECTORIZE): New member for struct gcc_target.
10958 (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New member for targetm.vectorize.
10959 (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): Likewise.
10960 (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Likewise.
10961 * target.h (struct vectorize): New member for struct gcc_target.
10962 (misaligned_mem_ok): New member for targetm.vectorize.
10963 (builtin_mask_for_load): Likewise.
10964 (builtin_mask_for_store): Likewise.
10965 * targethooks.c (default_vect_misaligned_mem_ok): New function.
10966 * targethooks.h (default_vect_misaligned_mem_ok): New function.
10967
10968 * config/rs6000/altivec.md (build_vector_mask_for_load): New
10969 define_expand.
10970 (vec_realign_load_v4si, vec_realign_load_v4sf, vec_realign_load_v8hi)
10971 (vec_realign_load_v16qi): New define_insn.
10972 * config/rs6000/rs6000.h (ALTIVEC_BUILTIN_MASK_FOR_LOAD):
10973 (ALTIVEC_BUILTIN_MASK_FOR_STORE): New target builtins.
10974 * config/rs6000/rs6000.c (altivec_builtin_mask_for_load):
10975 (altivec_builtin_mask_for_store): New variables.
10976 (rs6000_builtin_mask_for_load): New function. Implements
10977 TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD.
10978 (rs6000_builtin_mask_for_store): New function. Implements
10979 TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE.
10980 (rs6000_expand_builtin): Expand the target builtins
10981 builtin_mask_for_load and builtin_mask_for_store.
10982 (altivec_init_builtins): Initialize the new target builtins.
10983 * config/i386/i386.c (ix86_misaligned_mem_ok): New function.
10984 Implements the target hook TARGET_VECTORIZE_MISALIGNED_MEM_OK.
10985
10986 * tree-vectorizer.c (vect_create_data_ref): Renamed to
10987 vect_create_data_ref_ptr. Returns a pointer instead of an array-ref.
10988 (vect_create_addr_base_for_vector_ref): Additional argument (offset).
10989 (vectorizable_store): Call vect_create_data_ref_ptr with additional
10990 arguments, and create an indirect_ref with its return value data_ref.
10991 Check aligned_access_p.
10992 (vectorizable_load): Handle misaligned loads, using software-pipelined
10993 scheme with REALIGN_LOAD_EXPR and ALIGN_INDIRECT_REF if
10994 vec_realign_load_optab is supported, or using a scheme without
10995 software-pipelining with MISALIGNED_INDIRECT_REF if the target hook
10996 misaligned_mem_ok is supported.
10997
10998 (vect_finish_stmt_generation): Typo.
10999 (vect_enhance_data_refs_alignment): Rename loop_vinfo to loop_info.
11000 (vect_analyze_data_refs_alignment): Don't fail vectorization in the
11001 presence of misaligned loads.
11002 (vect_analyze_data_ref_access): Add check for constant init.
11003 (vect_get_symbl_and_dr): Remove duplicate line.
11004 * tree-vectorizer.h (DR_MISALIGNMENT): Add comment.
11005
11006 2004-09-23 Kazu Hirata <kazu@cs.umass.edu>
11007
11008 * builtins.c: Fix a comment typo.
11009
11010 2004-09-23 Jan Hubicka <jh@suse.cz>
11011
11012 * profile.c (branch_prob): Do not verify flow info in the middle of the
11013 pass.
11014
11015 2004-09-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11016
11017 * cfgloop.h (update_single_exits_after_duplication): Declare.
11018 (loopify, split_loop_bb): Declaration changed.
11019 * cfgloopmanip.c (split_loop_bb): Take void * as an argument instead
11020 of rtx.
11021 (loopify): Added redirect_all_edges argument.
11022 (update_single_exits_after_duplication): Export.
11023 * loop-unswitch.c (unswitch_loop): Changed due to loopify change.
11024 * tree-flow.h (tree_duplicate_loop_to_header_edge,
11025 tree_ssa_loop_version): Declare.
11026 * tree-ssa-loop-manip.c (copy_phi_node_args, rename_variables,
11027 set_phi_def_stmts, tree_duplicate_loop_to_header_edge,
11028 lv_adjust_loop_header_phi, lv_adjust_loop_entry_edge,
11029 lv_update_pending_stmts, tree_ssa_loop_version): New functions.
11030
11031 * tree-ssa-loop-unswitch.c: New file.
11032 * Makefile.in (tree-ssa-loop-unswitch.o): Add.
11033 * timevar.def (TV_TREE_LOOP_UNSWITCH): New timevar.
11034 * tree-flow.h (tree_ssa_unswitch_loops): Declare.
11035 * tree-optimize.c (init_tree_optimization_passes): Add pass_unswitch.
11036 * tree-pass.h (pass_unswitch): Declare.
11037 * tree-ssa-loop.c (tree_ssa_loop_unswitch,
11038 gate_tree_ssa_loop_unswitch, pass_unswitch): New pass.
11039 * doc/passes.texi: Documen tree level loop unswitching.
11040
11041 2004-09-23 Kazu Hirata <kazu@cs.umass.edu>
11042
11043 * cfgexpand.c, config/s390/tpf-eh.c: Fix comment typos.
11044
11045 2004-09-22 Eric Christopher <echristo@redhat.com>
11046
11047 * builtins.c (simplify_builtin_va_start): Remove.
11048 (simplify_builtin): Ditto.
11049 (fold_builtin_strchr): Ditto.
11050 (simplify_builtin_*): Rename remainders to fold_builtin_*.
11051 (expand_builtin): Fix up for above changes.
11052 (fold_builtin_1): Add new folders. Change for above.
11053 (expand_builtin_va_start): Call fold_builtin_next_arg.
11054 * gimplify.c (gimplify_call_expr): Fix calls to simplify_builtin.
11055 * tree.h: Remove prototype for simplify_builtin.
11056
11057 2004-09-23 Jan Hubicka <jh@suse.cz>
11058
11059 PR debug/17389
11060 * dwarf2out.c (dwarf2out_finish): Deal with nested functions
11061 of fully inlined functions.
11062 * tree-inline.c (inline_forbidden_p_1): Nested functions can be
11063 inlined.
11064
11065 * cfgexpand.c (add_reg_br_prob_note): New function.
11066 (expand_gimple_cond_expr): Use it.
11067 (tree_expand_cfg): No longer kill the profile.
11068 * cfgrt.c (rtl_verify_flow_info_1): Check profile consistency
11069 only if it is present.
11070 * passes.c (rest_of_handle_loop_optimize): Kill the profile.
11071 * predict.c (combine_predictions_for_insn): Set the probabilities
11072 based on REG_BR_PROB note if present.
11073 * predict.c (branch_prob): Profile is read only with
11074 flag_branch_probabilities.
11075
11076 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
11077
11078 * aclocal.m4: Add in gettext's m4 includes.
11079 (AC_ICONV, AC_LCMESSAGES, GCC_PATH_PROG): Remove.
11080 * configure.ac: Add in check for iconv.h
11081 * configure: Regenerate.
11082
11083 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
11084
11085 * aclocal.m4: Update for rename of gettext-sister.m4.
11086
11087 2004-09-22 Daniel Berlin <dberlin@dberlin.org>
11088
11089 Fix PR tree-optimization/17587
11090 * tree-ssa-pre.c (fini_pre): Commit edge inserts here.
11091 (insert_aux): Instead of here.
11092
11093 2004-09-22 Diego Novillo <dnovillo@redhat.com>
11094
11095 PR tree-optimization/16721
11096 * tree-dfa.c (dump_variable): Show TREE_THIS_VOLATILE.
11097 * tree-ssa-alias.c (create_memory_tag): Move setting of
11098 TREE_THIS_VOLATILE ...
11099 (get_tmt_for): ... here.
11100
11101 2004-09-22 Eric Botcazou <ebotcazou@libertysurf.fr>
11102
11103 * config/sparc/sparc.md (cmove splitter): Fix formatting.
11104 (conditional_trap expander): Reject inappropriate CCmodes.
11105 (conditional trap insn): Use V9 syntax if possible.
11106
11107 2004-09-22 Joseph S. Myers <jsm@polyomino.org.uk>
11108
11109 PR c/16566
11110 * c-typeck.c (build_component_ref): Don't special-case
11111 COMPOUND_EXPR.
11112
11113 2004-09-22 Frank Ch. Eigler <fche@redhat.com>
11114
11115 * dominance.c (verify_dominators): Don't SEGV if recount_dominator
11116 returns NULL.
11117
11118 2004-09-22 Kazu Hirata <kazu@cs.umass.edu>
11119
11120 * doc/c-tree.texi (TRUTH_NOT_EXPR, TRUTH_ANDIF_EXPR,
11121 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
11122 TRUTH_XOR_EXPR): Mention the restriction on types.
11123
11124 2004-09-22 Matt Austern <austern@apple.com>
11125
11126 * config/darwin.c (darwin_make_decl_one_only):
11127 Allow coalesced symbol to appear in static archive's table of contents
11128
11129 2004-09-22 Kazu Hirata <kazu@cs.umass.edu>
11130
11131 PR tree-optimization/17512
11132 * convert.c (convert_to_integer): Don't handle TRUTH_*_EXPR as
11133 special cases.
11134
11135 2004-09-22 David Edelsohn <edelsohn@gnu.org>
11136
11137 * dbxout.c (get_lang_number): Do not define if
11138 DBX_OUTPUT_MAIN_SOURCE_DIRECTORY is defined.
11139
11140 2004-09-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
11141
11142 PR target/15583
11143 * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Add
11144 builtin_define ("__USE_INIT_FINI__").
11145
11146 2004-09-22 P.J. Darcy <darcypj@us.ibm.com>
11147
11148 * config/s390/s390-protos.h (s390_emit_tpf_eh_return): Add prototype.
11149 * config/s390/s390.c (s390_emit_tpf_eh_return): New function.
11150 * config/s390/s390.h (TARGET_TPF): New macro.
11151 * config/s390/s390.md ("eh_return"): New expander.
11152 * config/s390/t-tpf (LIB2ADDEH): Use unwind-dw2-fde.c rather than
11153 unwind-dw2-fde-glibc.c. Add config/s390/tpf-eh.c.
11154 (LIB2ADDEHDEP): Remove unwind-dw2-fde.c.
11155 * config/s390/tpf.h (TARGET_TPF): Define to 1.
11156 (STACK_POINTER_OFFSET): Increase to 448.
11157 (TARGET_DEFAULT): Set -mtpf-trace on as default.
11158 (TPF_LOC_DIFF_OFFSET): New macro.
11159 (ASM_PREFERRED_EH_DATA_FORMAT): Redefine to always use absolute
11160 encoding.
11161 (__isPATrange): Add prototype.
11162 (MD_FALLBACK_FRAME_STATE_FOR): Define.
11163 * config/s390/tpf-eh.c: New file.
11164
11165 2004-09-22 Diego Novillo <dnovillo@redhat.com>
11166
11167 * fold-const.c (fold): Avoid non INTEGER_TYPEs when widening
11168 operands in an integer comparison.
11169 * tree-cfg.c (find_taken_edge): Call fold() to determine
11170 whether the predicate is known.
11171
11172 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
11173
11174 * aclocal.m4: Import AM_PROG_CC_C_O and AM_AUX_DIR_EXPAND.
11175 * configure.ac: Call AM_PROG_CC_C_O instead of AC_PROG_CC_C_O.
11176 Create build and doc directories along with the language directories.
11177 Don't create doc directory separately.
11178 * configure: Regenerate.
11179 * Makefile.in: Create all object and executables files built
11180 with the build compiler in a build/ directory.
11181 (genobjnames): Add missing build objects.
11182 (STAGESTUFF): Don't stage the gen* programs.
11183 (ggc-none.o): Define dependencies for the target compiler.
11184 (build-print-rtl.o): Rename to build/print-rtl.o.
11185 (build-errors.o): Rename to build/errors.o.
11186 (build-varray.o): Rename to build/varray.o.
11187 (maintainerclean): Delete the contents of the build directory.
11188 ($(genobjs): %.o): Explicitly use -o.
11189 (build/insn-conditions.o): Delete specfic rule to use generic rule.
11190 (build/gengtype-lex.o): Likewise.
11191 (build/gengtype-yacc.o): Likewise.
11192 (build/gcov-iov.o): Likewise.
11193
11194 2004-09-22 Nathan Sidwell <nathan@codesourcery.com>
11195
11196 * vec.h (VEC_space): Return true if there _is_ space.
11197 (VEC_reserve): Adjust.
11198
11199 2004-09-22 Richard Sandiford <rsandifo@redhat.com>
11200
11201 * config/mips/mips.c (mips_function_value): For o32, o64, n32 and n64,
11202 use FPRs for scalar, complex and vector types only.
11203
11204 2004-09-21 Jeff Law <law@redhat.com>
11205
11206 * tree-ssa-dom.c (opt_stats): Move so that it lives just after
11207 the opt_stats_d structure.
11208 (vrp_data): Change from a varray into a hash table.
11209 (vrp_hash_elt): New structure for elements in the vrp hash table.
11210 (vrp_hash, vrp_eq):New functions for hashing and testing equality
11211 in the vrp hash table.
11212 (tree_ssa_dominator_optimize): Initialize VRP_DATA. Reorganize
11213 initialization slightly to make it easier to read. No longer need
11214 to grow/clear the varray. Instead empty and delete the hash table.
11215 (dom_opt_finalize_block): Update due to change of VRP_DATA from
11216 a varray to a hash table.
11217 (simplify_cond_and_loop_avail_expr, record_range): Similarly.
11218
11219 * tree-ssa-ccp.c (get_default_value): If we have a constant
11220 value recorded for an SSA_NAME, then use that constant as
11221 the initial lattice value.
11222 (substitute_and_fold): Transfer equivalences discovered into
11223 SSA_NAME_EQUIV.
11224
11225 * tree.h (SSA_NAME_EQUIV): Add comments.
11226 (SET_SSA_NAME_EQUIV): Similarly.
11227
11228 2004-09-21 David Edelsohn <edelsohn@gnu.org>
11229
11230 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to POWER4.
11231
11232 * config/rs6000/rs6000.c (rs6000_adjust_cost): dep_insn is used.
11233
11234 2004-09-21 Mark Mitchell <mark@codesourcery.com>
11235
11236 * c-decl.c (implicityl_declare): Call maybe_apply_renaming_pragma.
11237 (finish_decl): Likewise.
11238
11239 2004-09-21 Devang Patel <dpatel@apple.com>
11240
11241 * tree.def (VEC_COND_EXPR): New tree node.
11242 * tree-ssa-operands.c (get_expr_operands): Handle VEC_COND_EXPR.
11243
11244 2004-09-21 Stan Shebs <shebs@apple.com>
11245
11246 * config/rs6000/darwin-tramp.asm: Add __ppc64__ case.
11247 * config/rs6000/darwin-world.asm: Likewise.
11248
11249 2004-09-21 Daniel Berlin <dberlin@dberlin.org>
11250
11251 * tree-ssa.c (verify_def): Use print_generic_stmt,
11252 not debug_generic_stmt.
11253 (verify_use): Ditto.
11254 (verify_phi_args): Ditto.
11255 (verify_ssa): Ditto.
11256
11257 2004-09-21 Paul Brook <paul@codesourcery.com>
11258
11259 * varasm.c (default_assemble_integer): Return false for values wider
11260 than the target word size. Works around GAS bug.
11261
11262 2004-09-21 Zack Weinberg <zack@codesourcery.com>
11263
11264 * reg-notes.def (REG_DEP_TRUE): New entry, place first so it
11265 gets value 0.
11266 * print-rtl.c (print_rtx): Print the name of a REG_NOTE even
11267 if it has value 0.
11268
11269 2004-09-21 Daniel Berlin <dberlin@dberlin.org>
11270
11271 * c-typeck.c (build_function_call): Give name of object
11272 we are attempting to call in error message.
11273 * c-objc-common.c (c_tree_printer): Call pp_expression,
11274 not return false, for 'E' case.
11275
11276 2004-09-21 Steven Bosscher <stevenb@suse.de>
11277
11278 PR rtl-optimization/17482
11279 * postreload-gcse.c (reg_avail_info, oprs_unchanged_p,
11280 load_killed_in_block_p): Clarify comments.
11281 (record_last_reg_set_info): Make static inline.
11282 (mark_call, mark_set, mark_clobber, mark_oprs_set): Remove.
11283 (record_opr_changes): New function to replace the above.
11284 (compute_hash_table): Clarify comments. Use record_opr_changes.
11285 (reg_set_between_after_reload_p): Clean up.
11286 (reg_used_between_after_reload_p): Likewise.
11287 (eliminate_partially_redundant_load): Clarify comments.
11288
11289 2004-09-21 Eric Botcazou <ebotcazou@libertysurf.fr>
11290
11291 PR rtl-optimization/17266
11292 * regmove.c (optimize_reg_copy_3): Make a new SUBREG for each insn.
11293
11294 2004-09-21 Uros Bizjak <uros@kss-loka.si>
11295
11296 PR rtl-optimization/14851
11297 * rtlanal.c (commutative_operand_precedence): Calculate
11298 precedence of stripped constant.
11299
11300 2004-09-20 Jeff Law <law@redhat.com>
11301 Jan Hubicka <jh@suse.cz>
11302
11303 * tree-ssanames.c (make_ssa_name): No longer need to clear, then
11304 initialize key elements here.
11305 (release_ssa_name): Zero the released SSA_NAME here.
11306 * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): New macros.
11307 (struct tree_ssa_name): Add new "equiv" field.
11308 * tree-ssa-dom.c (const_and_copies): Kill the global varray.
11309 (tree_ssa_dominator_optimize): No longer allocate, resize or
11310 clear CONST_AND_COPIES.
11311 (get_value_for, set_value_for): Kill.
11312 (thread_across_edge): Get/set the equivalency using
11313 SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
11314 (restore_vars_to_original_value): Likewise.
11315 (record_equivalences_from_phis): Likewise.
11316 (record_dominating_conditions): Likewise.
11317 (record_const_or_copy, record_equality): Likewise.
11318 (lookup_avail_expr): Likewise.
11319 (record_equivalences_from_stmt, cprop_operand): Likewise.
11320 (cprop_into_successor_phis): No longer need to pass around
11321 CONST_AND_COPIES. Callers updated. Get equivalences via
11322 SSA_NAME_EQUIV.
11323 (cprop_into_phis): Likewise.
11324
11325 2004-09-20 Matt Austern <austern@apple.com>
11326 Zack Weinberg <zack@codesourcery.com>
11327
11328 * c-common.c (fix_string_type): Build the unqualified array
11329 type unconditionally, then use c_build_qualified_type to get
11330 the proper const-qualified variant, and set its
11331 TYPE_MAIN_VARIANT to refer to the unqualified type.
11332 * c-lex.c (c_lex_return_raw_string): New global.
11333 (c_lex_with_flags): Honor it.
11334 * c-pragma.h: Declare it.
11335
11336 2004-09-20 Daniel Berlin <dberlin@dberlin.org>
11337
11338 * Makefile.in: Fix flags.h dependencies to be $(FLAGS_H).
11339
11340 2004-09-21 Jan Hubicka <jh@suse.cz>
11341
11342 PR middle-end/17126
11343 * tree-optimize.c (update_inlined_to_pointers): Fix the recursion.
11344 (tree_rest_of_compilation): Cleanup.
11345
11346 2004-09-20 Ulrich Weigand <uweigand@de.ibm.com>
11347
11348 * config/s390/s390.c (s390_select_rtx_section): Remove.
11349 (TARGET_ASM_SELECT_RTX_SECTION): Do not redefine.
11350
11351 2004-09-20 Kaz Kojima <kkojima@gcc.gnu.org>
11352
11353 * config/sh/sh.c (sh_expand_prologue): Add a REG_FRAME_RELATED_EXPR
11354 note to pretend a direct save from the original register when an
11355 intermediate register is used for the save.
11356
11357 2004-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11358
11359 * tsystem.h (alloca): Provide a default definition.
11360
11361 Revert:
11362 2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11363 * unwind-dw2.c: Call __builtin_alloca, not alloca.
11364
11365 2004-09-20 Andrew Pinski <pinskia@physics.uc.edu>
11366
11367 PR tree-opt/17558
11368 * tree-ssa-copy.c (may_propagate_copy): Only allow if the
11369 aliasing sets are the same rather than just conflicting.
11370
11371 2004-09-20 Jan Hubicka <jh@suse.cz>
11372
11373 PR middle-end/16460
11374
11375 * cgraph.c (cgraph_unnest_node): New function.
11376 (c_finalize): Rename to ....
11377 (c_warn_unused_result_recursivly): ... this one; do only the warning
11378 (finish_function): Finalize the toplevel function; do not lower nested tree.
11379 * cgraph.h (cgraph_unnest_node): Declare.
11380 * cgraphunit.c (decide_is_function_needed): Do not use cgraph
11381 nestedness datastructure.
11382 * cse.c (cse_insn): Do not cprop nonlocal LABEL_REFs.
11383 * reload1.c (set_label_offsets): Fix call of set_label_offsets.
11384 * tree-nested.c (finlize_nesting_tree_1): Use un-nesting code.
11385
11386 2004-09-20 Richard Henderson <rth@redhat.com>
11387
11388 * config/alpha/alpha.c (some_small_symbolic_operand_int): Rename
11389 from some_small_symbolic_operand_1; export.
11390 (some_small_symbolic_operand): Remove.
11391 * config/alpha/alpha.md (some_small_symbolic_operand splitter): Remove
11392 extra C check.
11393 * config/alpha/predicates.md (some_small_symbolic_operand): New.
11394
11395 2004-09-20 Jan Hubicka <jh@suse.cz>
11396
11397 * predict.c (return_prediction): New function.
11398 (apply_return_prediction): Likewise.
11399 (tree_bb_level_predictions): Likewise.
11400 (tree_estimate_probability): Add noreturn exit edges; call
11401 bb_level_predictions; fix logic of return heuristics.
11402 (predict_paths_leading_to): Rescuesce from old CVS version of
11403 process_note_prediction function.
11404 * predict.def (PRED_TREE_EARLY_RETURN): New predictor.
11405
11406 2004-09-20 Andreas Krebbel <krebbel1@de.ibm.com>
11407
11408 * config/s390/s390.c (s390_frame_info): Added alignment statement for
11409 floating point register area on stack.
11410
11411 2004-09-20 Jakub Jelinek <jakub@redhat.com>
11412
11413 * predict.c (expr_expected_value): Use *_CLASS_P macros.
11414
11415 2004-09-20 Daniel Berlin <dberlin@dberlin.org>
11416
11417 * tree-ssa-pre.c (compute_antic_aux): Use malloc'd worklist, to avoid
11418 generating useless garbage.
11419
11420 2004-09-20 Paolo Bonzini <bonzini@gnu.org>
11421
11422 * builtins.c (fold_builtin): Call the new omonymous
11423 target hook for machine-dependent built-ins.
11424 * target-def.h (TARGET_FOLD_BUILTIN): New.
11425 * target.h (struct gcc_target): Add the fold_builtin hook.
11426 * targhooks.c (default_fold_builtin): New.
11427 * targhooks.h (default_fold_builtin): Declare it.
11428
11429 2004-09-20 Kazu Hirata <kazu@cs.umass.edu>
11430
11431 * cfg.c, tree-ssa-threadupdate.c, tree-vectorizer.c: Fix
11432 comment typos.
11433
11434 2004-09-20 Richard Sandiford <rsandifo@redhat.com>
11435
11436 PR target/17565
11437 * config/mips/mips.md (define_asm_attributes): Set can_delay to no.
11438
11439 2004-09-20 Jan Hubicka <jh@suse.cz>
11440
11441 * predict.c (estimate_probability): Remove unnecesary code.
11442
11443 2004-09-19 Ira Rosen <irar@il.ibm.com>
11444
11445 * tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field.
11446 (STMT_VINFO_VECT_DR_BASE): Declare.
11447 (VECT_SMODULO): Declare.
11448 * tree-vectorizer.c (vect_compute_array_ref_alignment): New function.
11449 (vect_compute_array_base_alignment): New function.
11450 (vect_analyze_data_ref_access): Check array indices. Remove one
11451 dimensional arrays restriction.
11452 (vect_get_ptr_offset): New function.
11453 (vect_get_symbl_and_dr): New function.
11454 (vect_get_base_and_bit_offset): Support additional data refs. Renamed
11455 (former name vect_get_base_decl_and_bit_offset).
11456 (vect_create_index_for_array_ref): Removed.
11457 (vect_create_index_for_vector_ref): New function.
11458 (vect_create_addr_base_for_vector_ref): New function.
11459 (vect_create_data_ref): Handle additional data refs. Call
11460 vect_create_index_for_vector_ref and vect_create_addr_base_for_vector_ref.
11461 (vect_compute_data_ref_alignment): Support the changes. Call
11462 vect_get_base_and_bit_offset.
11463 (vect_analyze_data_refs): Call vect_get_symbl_and_dr. Support additional
11464 data refs. Store vect_dr_base.
11465 (vect_analyze_data_ref_accesses): Support nonconstant init.
11466 (new_stmt_vec_info): Initialize vect_dr_base field.
11467 (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
11468 (get_vectype_for_scalar_type): Check for BLKmode.
11469 * tree-chrec.h (initial_condition_in_loop_num): Declare.
11470 * tree-chrec.c (initial_condition_in_loop_num): New function.
11471 (chrec_component_in_loop_num): New function.
11472 (evolution_part_in_loop_num): Call chrec_component_in_loop_num.
11473 * tree-data-ref.c (analyze_array_indexes): Change parameter (access_fns)
11474 to be pointer to varray_type.
11475
11476 2004-09-19 Jan Hubicka <jh@suse.cz>
11477
11478 * basic-block.h (update_bb_profile_after_threading): Declare.
11479 * cfg.c (update_bb_profile_after_threading): Break out from ...
11480 * cfgcleanup.c (try_forward_edges): ... here; use it.
11481 * tree-ssa-dom.c (thread_across_edge): Use it.
11482 * tree-ssa-threadupdate.c (create_block_for_threading): Zero out
11483 profile of the new BB.
11484
11485 2004-09-19 Daniel Berlin <dberlin@dberlin.org>
11486
11487 * tree-ssa-pre.c (insert_into_set): Don't put
11488 is_gimple_min_invariant values into the set.
11489
11490 2004-09-19 Andreas Jaeger <aj@suse.de>
11491
11492 * tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix
11493 prototype.
11494
11495 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
11496
11497 * config/cris/cris.h: Preserve the original spelling in a
11498 quote.
11499
11500 2004-09-18 Jeff Law <law@redhat.com>
11501
11502 * tree-ssa-dom.c (nonzero_vars_stack, vrp_variables_stack): New
11503 global varrays to replace the block local varrays.
11504 (struct dom_walk_block_data): Remove, no longer used.
11505 (get_eq_expr_value): No longer need to pass around pointers to local
11506 varrays. Callers updated. Unused markers added to unused parameters.
11507 (record_range, record_equivalences_from_stmt): Likewise.
11508 (record_equivalences_from_incoming_edge): Likewise.
11509 (record_var_is_nonzero): Likewise. Update now that we have a
11510 single global varray of SSA_NAMEs that need restoring.
11511 (dom_opt_initialize_block_local_data): Kill, no longer used.
11512 (tree_ssa_dominator_optimize): Initialize new global varrays.
11513 Update callbacks in dominator walker structure.
11514 (dom_opt_initialize_block): Add markers to NONZERO_VAR_STACK and
11515 VRP_VARIABLES_STACK.
11516 (restore_nonzero_vars_to_original_value): Update now that we have
11517 a single global varray of SSA_NAMEs that need restoring.
11518 (dom_opt_finalize_block): Similarly for VRP_VARIABLES_STACK.
11519 Remove unused variables.
11520 (optimize_stmt): Remove unused variable.
11521
11522 2004-09-18 Jan Hubicka <jh@suse.cz>
11523
11524 * tree-cfg.c (thread_jumps): Fix updating of the profile.
11525
11526 * tree-optimize.c (tree_rest_of_compilation): Kill forgotten
11527 verify_cgraph call.
11528
11529 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
11530
11531 * alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c,
11532 gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c,
11533 optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c,
11534 tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c,
11535 tree-ssa-operands.c, tree-ssa-phiopt.c,
11536 tree-ssa-threadupdate.c: Fix comment typos.
11537
11538 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
11539
11540 * config/darwin-c.c, config/arc/arc.c, config/arc/arc.md,
11541 config/arm/README-interworking, config/arm/arm-cores.def,
11542 config/arm/arm.c, config/arm/arm.h, config/arm/pe.c,
11543 config/arm/vfp.md, config/c4x/c4x.c, config/c4x/c4x.h,
11544 config/cris/cris.c, config/cris/cris.h, config/fr30/fr30.c,
11545 config/fr30/fr30.h, config/fr30/fr30.md, config/frv/frv.c,
11546 config/frv/frv.md, config/i386/winnt.c,
11547 config/ia64/unwind-ia64.c, config/iq2000/iq2000.c,
11548 config/iq2000/iq2000.h, config/m68hc11/m68hc11.c,
11549 config/m68hc11/m68hc11.md, config/m68k/m68k.c,
11550 config/mcore/mcore.c, config/mips/mips.h,
11551 config/mn10300/mn10300.md, config/pa/pa.c,
11552 config/pa/pa64-regs.h, config/pdp11/pdp11.c,
11553 config/rs6000/rs6000.c, config/sh/symbian.c,
11554 config/sparc/sparc.h: Fix comment typos. Follow spelling
11555 conventions.
11556
11557 2004-09-18 Joseph S. Myers <jsm@polyomino.org.uk>
11558
11559 PR c/17424
11560 * c-typeck.c (c_expr_sizeof_expr): Check for error_mark_node.
11561
11562 2004-09-18 Diego Novillo <dnovillo@redhat.com>
11563
11564 * tree-ssa-alias.c (setup_pointers_and_addressables): Don't
11565 remove TREE_ADDRESSABLE from RESULT_DECL.
11566
11567 2004-09-18 Diego Novillo <dnovillo@redhat.com>
11568
11569 * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
11570
11571 2004-09-18 Jan Hubicka <jh@suse.cz>
11572
11573 * tree-into-ssa.c (rewrite_ssa_into_ssa): Expect ssa_name to return
11574 NULL.
11575 * tree-ssa-alias.c (init_alias_info): Likewise.
11576 * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
11577 (verify_ssa): Likewise.
11578 * tree-ssanames.c (make_ssa_name): Clear out ssa_names arrays.
11579
11580 2004-09-18 Jan Hubicka <jh@suse.cz>
11581
11582 * i386.c (legitimize_pic_address): Fix splitting of PLUS with
11583 huge offset.
11584
11585 2004-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
11586
11587 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
11588 * config/sh/sh.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
11589 DW_EH_PE_sdata* for data.
11590 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
11591
11592 2004-09-17 Geoffrey Keating <geoffk@apple.com>
11593
11594 * tree-inline.c (copy_tree_r): Don't duplicate constants, they're
11595 shared anyway.
11596
11597 PR pch/13361
11598 * c-typeck.c (constructor_asmspec): Delete.
11599 (struct initializer_stack): Delete field 'asmspec'.
11600 (start_init): Delete saving of asmspec.
11601 (finish_init): Don't update constructor_asmspec.
11602 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
11603 * stmt.c (expand_asm): Duplicate strings from tree.
11604 (expand_asm_operands): Likewise.
11605 * tree.c (tree_size): Update computation of size of STRING_CST.
11606 (make_node): Don't make STRING_CST nodes.
11607 (build_string): Allocate string with tree node.
11608 (tree_code_size): Clean up assertions, don't allow requests
11609 for "the size of a STRING_CST".
11610 * tree.def (STRING_CST): Update comment.
11611 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
11612 (tree_string): Place contents of string in tree node.
11613 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
11614 from tree.
11615
11616 2004-09-17 Zack Weinberg <zack@codesourcery.com>
11617
11618 * Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
11619 * objc/Make-lang.in (objc/objc-parse.o): Likewise.
11620
11621 2004-09-17 Jones Desougi <jones@ingate.com>
11622
11623 * configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
11624 * configure, config.in: Regenerate.
11625
11626 2004-09-17 Zack Weinberg <zack@codesourcery.com>
11627
11628 * tree.c, tree.h (tree_class_strings): Make array const.
11629 Reindent per coding convention. Move asterisk to proper place
11630 per coding convention.
11631
11632 2004-09-18 Andreas Schwab <schwab@suse.de>
11633
11634 * Makefile.in (gimple-low.o): Depend on $(EXPR_H).
11635 (tree-vectorizer.o): Likewise.
11636 (targhooks.o): Likewise.
11637
11638 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
11639 Zack Weinberg <zack@codesourcery.com>
11640
11641 * alias.c (find_base_decl): Remove unreachable case '3' block.
11642 * expr.c (safe_from_p): Abort if passed a type.
11643 * tree-gimple.c (recalculate_side_effects): Abort if passed
11644 anything other than an expression.
11645 * tree-ssa-pre.c (phi_translate): Return expr immediately if
11646 is_gimple_min_invariant is true for it. Reorder cases for clarity.
11647 Abort on un-handled tree classes.
11648 (valid_in_set): Likewise.
11649 * tree.c (tree_code_class_strings): New static data.
11650
11651 * tree.h (enum tree_code_class): New.
11652 (tree_code_class_strings): Declare.
11653 (TREE_CODE_CLASS_STRING, EXCEPTIONAL_CLASS_P, CONSTANT_CLASS_P)
11654 (REFERENCE_CLASS_P, COMPARISON_CLASS_P, UNARY_CLASS_P, BINARY_CLASS_P)
11655 (STATEMENT_CLASS_P, EXPRESSION_CLASS_P, IS_TYPE_OR_DECL_P): New macros.
11656 (TYPE_P, DECL_P, IS_NON_TYPE_CODE_CLASS, IS_EXPR_CODE_CLASS)
11657 (checking macros, EXPR_LOCATION, SET_EXPR_LOCATION, EXPR_LOCUS): Update.
11658
11659 * tree.def, c-common.def, objc/objc-tree.def: Use
11660 tree_code_class enumeration constants instead of code letters.
11661
11662 * alias.c, builtins.c, c-common.c, c-format.c, c-lang.c, c-pragma.c
11663 * c-typeck.c, cgraphunit.c, convert.c, dbxout.c, dwarf2out.c
11664 * emit-rtl.c expr.c, fold-const.c, gimplify.c, lambda-code.c
11665 * langhooks.c, langhooks.h, predict.c, print-tree.c, reload1.c, stmt.c
11666 * tree-browser.c, tree-cfg.c, tree-chrec.c, tree-complex.c, tree-dfa.c
11667 * tree-dump.c, tree-eh.c, tree-gimple.c, tree-inline.c, tree-nested.c
11668 * tree-outof-ssa.c, tree-pretty-print.c, tree-sra.c, tree-ssa-ccp.c
11669 * tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-forwprop.c, tree-ssa-live.c
11670 * tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c
11671 * tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-propagate.c
11672 * tree-ssa.c, tree-ssanames.c, tree-tailcall.c, tree.c, varasm.c
11673 * config/sol2-c.c, config/arm/arm.c, config/i386/winnt.c
11674 * config/pa/pa.c, config/pa/pa.h, config/sh/sh.c, objc/objc-lang.c
11675 Update to match.
11676
11677 * LANGUAGES: Add note about change.
11678
11679 2004-09-17 Diego Novillo <dnovillo@redhat.com>
11680
11681 PR tree-optimization/17319
11682 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Also
11683 examine pointers on the LHS of an assignment.
11684 (collect_points_to_info_r): Handle RETURN_EXPR.
11685
11686 2004-09-17 Jeff Law <law@redhat.com>
11687
11688 * tree-ssa-dom.c (const_and_copies_stack): New.
11689 (dom_walk_block_data): Remove const_and_copies field.
11690 (record_const_or_copy): No longer need to pass in varray_type *.
11691 Use CONST_AND_COPIES_STACK rather than passed in block local stack.
11692 Callers updated.
11693 (record_equality): Similarly.
11694 (restore_vars_to_original_value): Similarly. Revamp to use new
11695 single global stack rather than per-block stacks.
11696 (tree_ssa_dominator_optimize): Initialize the CONST_AND_COPIES_STACK.
11697 (thread_across_edge): Remove now unused parameters.
11698 (dom_opt_initialize_block_local_data): No longer test the block
11699 local CONST_AND_COPIES.
11700 (dom_opt_initialize_block): Push a marker on CONST_AND_COPIES_STACK.
11701
11702 2004-09-17 Jan Hubicka <jh@suse.cz>
11703
11704 PR tree-optimization/17509
11705 * tree-optimize.c (update_inlined_to_pointers): New function.
11706 (tree_rest_of_compilation): Use it.
11707
11708 2004-09-17 Devang Patel <dpatel@apple.com>
11709
11710 * dbxout.c (get_lang_number): New.
11711 (dbxout_init): Include lang number in N_SO stab.
11712 * dbxout.h (N_SO_AS, N_SO_C, N_SO_ANSI_C, N_SO_CC, N_SO_FORTRAN,
11713 N_SO_PASCAL, N_SO_FORTRAN90, N_SO_OBJC, N_SO_OBJCPLUS): New #define.
11714
11715 2004-09-17 Diego Novillo <dnovillo@redhat.com>
11716
11717 PR tree-optimization/17273
11718 * tree-ssa.c (replace_immediate_uses): Call fold_stmt if the
11719 replacement is a constant.
11720
11721 2004-09-17 Joseph S. Myers <jsm@polyomino.org.uk>
11722
11723 * c-tree.h (enum c_typespec_keyword): New.
11724 (struct c_declspecs): Adjust description of "type". Remove
11725 specbits, explicit_int_p and explicit_char_p. Rename
11726 typedef_signed_p to explicit_signed_p. Add default_int_p, long_p,
11727 short_p, signed_p, unsigned_p and complex_p.
11728 (finish_declspecs): New.
11729 * c-parse.in (datadef, datadecl, setspecs, decl, component_decl,
11730 typename): Call finish_declspecs.
11731 * c-decl.c (finish_declspecs): New.
11732 (declspecs_add_type): Check for combinations which cannot occur in
11733 valid specifier lists. Update comments.
11734 (shadow_tag_warned): Remove checks done in finish_declspecs.
11735 Don't report useless type name if type defaulted to int.
11736 (grokdeclarator): Remove checks and actions done in
11737 finish_declspecs. Don't allow for type being NULL. Update for
11738 datastructures changes. Initialize decl_attr.
11739 (build_null_declspecs, quals_from_declspecs): Update for
11740 datastructures changes.
11741
11742 2004-09-17 Sylvain Pion <Sylvain.Pion@sophia.inria.fr>
11743
11744 * doc/extend.texi: Fix duplicated word.
11745
11746 2004-09-17 Toon Moene <toon@moene.indiv.nluug.nl>
11747
11748 * doc/invoke.texi: Remove stray explanation on
11749 -freduce-all-givs and -fmove-all-movables.
11750
11751 2004-09-17 James Morrison <phython@gcc.gnu.org>
11752
11753 * doc/cfg.texi: Use @smallexample.
11754 * doc/md.texi: Likewise.
11755 * doc/tree-ssa.texi: Likewise.
11756 * doc/extend.texi: Likewise. Use @r{} in comments.
11757 * doc/trouble.texi: Use @r{} in comments.
11758
11759 2004-09-17 Hans-Peter Nilsson <hp@bitrange.com>
11760
11761 * configure.ac (gcc_cv_gld_version): Handle whitespace before
11762 "VERSION=".
11763 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto.
11764 * configure: Regenerate.
11765
11766 2004-09-17 J"orn Rennecke <joern.rennecke@superh.com>
11767
11768 * sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.
11769 (sh_pass_by_reference): Work around std_gimplify_va_arg_expr bug.
11770 * t-sh (MULTILIB_CPUS): s/ML_m/ML_sh/g .
11771 * t-sh64 (MULTILIB_CPU_DIRS): Likewise. Match dashes and trailing
11772 slashes in substitutions.
11773 (MULTILIB_DIRNAMES): Remove defunct removal of /media32.
11774
11775 2004-09-17 Kazu Hirata <kazu@cs.umass.edu>
11776
11777 * basic-block.h, c-decl.c, c-parse.in, cgraphunit.c, ddg.c,
11778 gimplify.c, lambda-code.c, optabs.c, predict.c,
11779 tree-scalar-evolution.c, tree-sra.c, tree-ssa-loop-ch.c,
11780 tree-ssa.c, vec.h: Fix comment typos. Follow spelling
11781 conventions.
11782
11783 2004-09-17 Kazu Hirata <kazu@cs.umass.edu>
11784
11785 * doc/compat.texi, doc/cpp.texi, doc/cppopts.texi,
11786 doc/extend.texi, doc/install.texi, doc/invoke.texi,
11787 doc/sourcebuild.texi, doc/tm.texi, doc/tree-ssa.texi,
11788 doc/trouble.texi: Use @option around options.
11789
11790 2004-09-17 Richard Sandiford <rsandifo@redhat.com>
11791
11792 * Makefile.in (gen-protos.o): Depend on errors.h.
11793
11794 2004-09-17 Steven Bosscher <stevenb@suse.de>
11795
11796 PR tree-optimization/17513
11797 * cfgexpand.c (construct_init_block): Clear EDGE_EXECUTABLE
11798 for successors of the entry block.
11799
11800 2004-09-17 Uros Bizjak <uros@kss-loka.si>
11801
11802 PR rtl-optimization/15187
11803 * ifcvt.c (noce_try_cmove_arith): Exit early if total
11804 insn_rtx_cost of both branches > BRANCH_COST
11805
11806 2004-09-16 Diego Novillo <dnovillo@redhat.com>
11807
11808 PR tree-optimization/17528
11809 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Do not
11810 erase the may-alias set for a tag when merging it with
11811 another.
11812
11813 2004-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
11814
11815 * config/sh/sh.md (call): Extend 32-bit addresses to DImode
11816 for 32-bit TARGET_SHMEDIA.
11817 (call_value): Likewise.
11818
11819 2004-09-16 Diego Novillo <dnovillo@redhat.com>
11820
11821 * tree-ssa-operands.c (add_call_clobber_ops): Make read-only
11822 test apply only to TREE_STATIC and DECL_EXTERNAL.
11823
11824 2004-09-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11825
11826 * Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
11827 * basic-block.h (get_dominated_by_region): Declare.
11828 * dominance.c (get_dominated_by_region): New function.
11829 * tree-cfg.c: Include cfglayout.h.
11830 (tree_duplicate_bb): Duplicate also phi nodes.
11831 (struct ssa_name_map_entry): New type.
11832 (add_phi_args_after_copy_bb, add_phi_args_after_copy,
11833 ssa_name_map_entry_hash, ssa_name_map_entry_eq,
11834 allocate_ssa_names, rewrite_to_new_ssa_names_def,
11835 rewrite_to_new_ssa_names_use, rewrite_to_new_ssa_names_bb,
11836 rewrite_to_new_ssa_names, tree_duplicate_sese_region): New functions.
11837 * tree-flow.h (tree_duplicate_sese_region, add_phi_args_after_copy_bb,
11838 add_phi_args_after_copy, rewrite_to_new_ssa_names_bb,
11839 rewrite_to_new_ssa_names, allocate_ssa_names,
11840 rewrite_into_loop_closed_ssa, verify_loop_closed_ssa): Declare.
11841 * tree-ssa-loop-ch.c (duplicate_blocks): Removed.
11842 (copy_loop_headers): Use tree_duplicate_sese_region.
11843
11844 2004-09-16 Frank Ch. Eigler <fche@redhat.com>
11845
11846 * profile.c (branch_prob): Restore support for USE_MAPPED_LOCATION.
11847
11848 2004-09-16 Jeff Law <law@redhat.com>
11849
11850 * tree-into-ssa.c (block_defs_stack): New toplevel varray.
11851 (rewrite_block_data): Remove, no longer used.
11852 (rewrite_initialize_block_local_data): Remove, no longer used.
11853 (rewrite_initialize_block): Mark parameters as unused as needed.
11854 Change references to the block local block_defs to be block_defs_stack.
11855 Push a marker onto the block_defs_stack.
11856 (ssa_rewrite_initialize_block): Similarly.
11857 (rewrite_stmt, ssa_rewrite_stmt): Similarly.
11858 (ssa_register_new_def): No longer needs varray argument. Use
11859 block_defs_stack instead. No longer handle possibly null block_defs
11860 varray. Reverse order of items we push on the stack to make it
11861 easier to identify our marker.
11862 (register_new_def): No longer handle possibly null block_defs
11863 varray.
11864 (rewrite_finalize_block): Revamp to look for markers in the global
11865 block_defs_stack varray rather than wiping a block local varray.
11866 Mark arguments as unused as needed.
11867 (ssa_rewrite_finalize_block): Similarly.
11868 (rewrite_into_ssa): Update initialization of dom walker structure
11869 to reflect that we don't need block local data anymore. Initialize
11870 the block_defs_stack varray.
11871 (rewrite_ssa_into_ssa): Similarly.
11872 * tree-ssa-dom.c (block_defs_stack): New toplevel varray.
11873 (struct dom_walk_data): Kill block_defs field.
11874 (tree_ssa_dominator_optimize): Initialize block_defs_stack.
11875 (thread_across_edge): Use the global block_defs_stack instead of
11876 the old block_defs varray.
11877 (dom_opt_initialize_block_local_data): Update now that we don't have
11878 block_defs field to check anymore.
11879 (dom_opt_initialize_block): Push a marker onto block_defs_stack.
11880 (restore_currdefs_to_original_value): Use the new block_defs_stack
11881 instead of a block local varray.
11882 (dom_opt_finalize_block): Similarly.
11883 (record_equivalencs_from_phis): Similarly.
11884 (optimize_stmt, register_definitions_for_stmt): Similarly.
11885
11886 2004-09-16 Andrew MacLeod <amacleod@redhat.com>
11887
11888 PR tree-optimization/17517
11889 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11890 coalesce same-root variables without checking for abnormal PHI usage.
11891
11892 2004-09-16 Daniel Berlin <dberlin@dberlin.org>
11893
11894 * cfgloop.h (duplicate_loop): Add prototype.
11895 * cfgloopmanip.c (duplicate_loop): Make non-static.
11896 * lambda-code.c (perfect_nestify): Factor out test whether
11897 we can handle this loop into separate function.
11898 Call it.
11899 (can_convert_to_perfect_nest): New function.
11900 (replace_uses_of_x_with_y): Add modify_stmt call.
11901 * tree-loop-linear.c (linear_transform_loops): Call
11902 rewrite_into_loop_closed_ssa and free_df.
11903
11904 2004-09-16 Daniel Berlin <dberlin@dberlin.org>
11905
11906 * lambda-code.c (invariant_in_loop): is_gimple_min_invariant is
11907 loop invariant as well.
11908 (perfect_nestify): new function.
11909 (gcc_loop_to_lambda_loop): New parameters to track lower bounds,
11910 upper bounds, and steps.
11911 Set outerinductionvar properly.
11912 (gcc_loopnest_to_lambda_loopnest): Add loops and need_perfect
11913 parameters.
11914 Return NULL if we need a perfect loop and can't make one.
11915 (lambda_loopnest_to_gcc_loopnest): Correct algorithm.
11916 (not_interesting_stmt): New function.
11917 (phi_loop_edge_uses_def): Ditto.
11918 (stmt_uses_phi_result): Ditto.
11919 (stmt_is_bumper_for_loop): Ditto.
11920 (perfect_nest_p): Ditto.
11921 (nestify_update_pending_stmts): Ditto.
11922 (replace_uses_of_x_with_y): Ditto.
11923 (stmt_uses_op): Ditto.
11924 (perfect_nestify): Ditto.
11925 * lambda-mat.c (lambda_matrix_id_p): New function.
11926 * lambda-trans.c (lambda_trans_matrix_id_p): Ditto.
11927 * lambda.h: Update prototypes.
11928 * tree-loop-linear (linear_transform_loop): Use new
11929 perfect_nest_p. Detect and ignore identity transform.
11930 * tree-ssa-loop.c (pass_linear_transform): Use TODO_write_loop_closed.
11931
11932 2004-09-16 Sebastian Pop <pop@cri.ensmp.fr>
11933
11934 * tree-loop-linear.c (gather_interchange_stats): Add more comments.
11935 Gather also strides of accessed data. Pass in the data references
11936 array.
11937 (try_interchange_loops): Add a new heuristic for handling the temporal
11938 locality. Pass in the data references array.
11939 (linear_transform_loops): Pass the data references array to
11940 try_interchange_loops.
11941
11942 2004-09-16 Kazu Hirata <kazu@cs.umass.edu>
11943
11944 * doc/invoke.texi: Fix typos. Follow spelling conventions.
11945
11946 2004-09-16 Nathan Sidwell <nathan@codesourcery.com>
11947
11948 * doc/c-tree.texi (Classes): Remove index entries for
11949 TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}.
11950
11951 2004-09-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11952
11953 * fold-const.c (fold): Fold difference of addresses.
11954 (ptr_difference_const): Moved from tree-ssa-loop-ivopts, based on
11955 get_inner_reference.
11956 * tree-ssa-loop-ivopts.c (peel_address): Removed.
11957 (ptr_difference_const): Moved to fold-const.c.
11958 (split_address_cost): Use get_inner_reference instead of peel_address.
11959 (ptr_difference_cost): Change type of diff to HOST_WIDE_INT.
11960 * tree.h (ptr_difference_const): Export.
11961
11962 * tree-ssa-loop-ivopts.c (dump_iv, dump_use, dump_cand): Add induction
11963 variable type to the dump. Fix indentation.
11964 (idx_find_step): Handle nonconstant array_ref_element_size and
11965 array_ref_low_bound.
11966 (idx_record_use): Handle array_ref_element_size and
11967 array_ref_low_bound.
11968 (find_interesting_uses_stmt): Handle memory = nontrivial_expression
11969 statements correctly.
11970 (get_computation_at, iv_value): Do not unshare expressions here.
11971 (rewrite_use_outer): Unshare the expression before it is emitted
11972 to code.
11973 * tree-ssa-loop-niter.c (unsigned_type_for, signed_type_for):
11974 Moved to tree.c.
11975 * tree.c (unsigned_type_for, signed_type_for): Moved from
11976 tree-ssa-loop-niter.c. Use langhooks.
11977 * tree.h (signed_type_for): Export.
11978
11979 2004-09-16 David Edelsohn <edelsohn@gnu.org>
11980
11981 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Update
11982 prototype.
11983
11984 2004-09-15 Andrew Pinski <pinskia@physics.uc.edu>
11985
11986 PR target/11572
11987 * c-incpath.h (target_c_incpath_s): Add extra_pre_includes.
11988 Add two parameters to extra_includes.
11989 (C_INCPATH_INIT): Remove.
11990 * c-incpath.c (register_include_chains): Call extra_pre_includes
11991 before adding the standard include directory.
11992 Update call to extra_includes.
11993 (!defined TARGET_EXTRA_INCLUDES): Update
11994 hook_void_charptr_charptr_int and add !define
11995 TARGET_EXTRA_PRE_INCLUDES.
11996 (!define TARGET_EXTRA_INCLUDES): Define as
11997 hook_void_charptr_charptr_int.
11998 (!define TARGET_EXTRA_PRE_INCLUDES): Likewise.
11999 (target_c_incpath): Always declare.
12000 * fixinclude.c (defined TARGET_EXTRA_INCLUDES): Declare a
12001 empty function.
12002 (define TARGET_EXTRA_PRE_INCLUDES): Likewise.
12003 * config/darwin.h: (darwin_register_frameworks): Update for
12004 the two new parameters.
12005 (darwin_register_objc_includes): Add prototype.
12006 (TARGET_EXTRA_PRE_INCLUDES): Define.
12007 * config/darwin-c.c (darwin_register_objc_includes): New function.
12008 (darwin_register_frameworks): Update for the two new parameters.
12009 (target_c_incpath): Remove.
12010 * config/t-darwin (darwin-c.o): Add $(PREPROCESSOR_DEFINES) to
12011 the compile line.
12012 * doc/tm.texi (TARGET_EXTRA_INCLUDES): Document the two new
12013 parameters.
12014 (TARGET_EXTRA_PRE_INCLUDES): Document.
12015
12016 * gcc.c (spec_function): Add replace-outfile.
12017 (replace_outfile_spec_function): New function.
12018 * config/darwin.h (LINK_SPEC): Add replace
12019 -lobjc with -lobjc-gnu if -fgnu-runtime is
12020 supplied.
12021 * invoke.texi (replace-outfile): Document.
12022
12023 2004-09-13 Jan Hubicka <jh@suse.cz>
12024
12025 * predict.c (expr_expected_value, strip_builtin_expect): New function.
12026 (tree_predict_by_opcode): Use it.
12027 (tree_estimate_probability): Add, for now disabled,
12028 strip_builtin_expect call.
12029
12030 2004-09-15 James E Wilson <wilson@specifixinc.com>
12031
12032 PR target/17455
12033 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Return false
12034 if current_function_decl is a sibcall.
12035
12036 2004-09-15 Mark Mitchell <mark@codesourcery.com>
12037
12038 * varasm.c (default_function_rdodata_section): Make sure to pass
12039 along a decl for a link-once section.
12040
12041 2004-09-15 Richard Henderson <rth@redhat.com>
12042
12043 * tree-ssa-operands.c (add_call_clobber_ops): Fix unused variable
12044 warning with code disable. Fix formatting.
12045
12046 2004-09-15 Steven Bosscher <stevenb@suse.de>
12047
12048 * Makefile.in (tree-ssa-dom.o): Depend on tree-ssa-propagate.h.
12049 * tree-ssa-dom.c (cprop_into_stmt): Recompute TREE_INVARIANT
12050 after propagating into an ADDR_EXPR.
12051
12052 2004-09-15 Andrew Pinski <apinski@apple.com>
12053
12054 PR rtl-opt/17427
12055 * gcse.c (process_insert_insn): insn_invalid_p has side effects.
12056 Move it out of gcc_assert.
12057
12058 2004-09-15 Joseph S. Myers <jsm@polyomino.org.uk>
12059
12060 * attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c,
12061 except.c, fold-const.c, function.c, langhooks.c, params.c,
12062 reload.c, reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
12063 tree-dump.c, tree-mudflap.c, tree.c, varasm.c: Use %<, %> and %q
12064 for quoting in diagnostics going through pretty-print.c. Use ''
12065 for quoting in other diagnostic text.
12066 * langhooks.c: Include intl.h. Mark text locating diagnostics for
12067 translation.
12068 * Makefile.in (langhooks.o): Update dependencies.
12069 * pretty-print.h (pp_printf): Mark as accepting GCC diagnostic
12070 formats.
12071
12072 2004-09-15 Mark Mitchell <mark@codesourcery.com>
12073
12074 * configure.ac: Check for COMDAT support. Robustify check for
12075 SHF_MERGE support.
12076 * configure: Regenerated.
12077 * config.in: Likewise.
12078 * langhooks-def.h (lhd_comdat_group): New function.
12079 (LANG_HOOKS_COMDAT_GROUP): New macro.
12080 (LANG_HOOKS_DECLS): Use it.
12081 * langhooks.c (lhd_comdat_group): Define.
12082 * langhooks.h (lang_hooks_for_decls): Add comdat_group.
12083 * output.h (named_section_flags): Make it a macro.
12084 (named_section_real): New function.
12085 (default_no_named_section): Add decl parameter.
12086 (default_elf_asm_named_section): Likewise.
12087 (default_coff_asm_named_section): Likewise.
12088 (default_pe_asm_named_section): Likewise.
12089 * target.h (gcc_target): Adjust type of named_section.
12090 * varasm.c (named_section_flags): Rename to named_section_real.
12091 Add decl parameter.
12092 (default_no_named_section): Add decl parameter.
12093 (default_elf_asm_named_section): Use COMDAT, if available. Deal
12094 with the case that ASM_COMMENT_START is "@".
12095 (default_coff_asm_named_section): Add decl parameter.
12096 (default_pe_asm_named_section): Likewise.
12097 * config/alpha/alpha.c (vms_asm_named_section): Add decl
12098 parameter.
12099 (unicosmk_asm_named_section): Likewise.
12100 * config/arm/arm.c (arm_elf_asm_named_section): Remove.
12101 * config/arm/elf.h (TARGET_ASM_NAMED_SECTION): Likewise.
12102 * config/c4x/c4x.c (c4x_asm_named_section): Add decl parameter.
12103 * config/cris/cris-protos.h (cris_target_asm_named_section):
12104 Likewise.
12105 * config/cris/cris.c (cris_target_asm_named_section):
12106 Likewise.
12107 * config/darwin/darwin-protos.h (darwin_asm_named_section):
12108 Likewise.
12109 * config/darwin/darwin.c (darwin_asm_named_section): Likewise.
12110 * config/h8300/h8300.c (h8300_asm_named_section): Likewise.
12111 * config/i386/i386-protos.h (i386_pe_asm_named_section):
12112 Likewise.
12113 * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
12114 * config/m68k/m68k.c (m68k_coff_asm_named_section): Likewise.
12115 * config/mcore/mcore.c (mcore_asm_named_section): Likewise.
12116 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section):
12117 Likewise.
12118 * config/sparc/sparc.c (sparce_elf_asm_named_section): Likewise.
12119 * cp/cp-lang.h (LANG_HOOKS_COMDAT_GROUP): Define.
12120 * cp/cp-tree.h (cxx_comdat_group): Declare.
12121 * cp/decl.c (cxx_comdat_group): New function.
12122
12123 2004-09-15 Jan Hubicka <jh@suse.cz>
12124
12125 * tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes.
12126 * tree-tailcall.c (eliminate_tail_call): Release SSA name.
12127
12128 * tree-cfg.c (remove_bb): Release SSA defs.
12129
12130 2004-09-15 Kazu Hirata <kazu@cs.umass.edu>
12131
12132 * doc/tm.texi: Follow spelling conventions.
12133
12134 2004-09-15 Kazu Hirata <kazu@cs.umass.edu>
12135
12136 * tree-ssa-dom.c: Fix comment typos.
12137
12138 2004-09-15 Alan Modra <amodra@bigpond.net.au>
12139
12140 * config/rs6000/linux-unwind.h (struct gcc_pt_regs): Extend to
12141 include ccr.
12142 (ppc_fallback_frame_state): Save location of CR.
12143
12144 2004-09-15 Jakub Jelinek <jakub@redhat.com>
12145
12146 * expr.c (string_constant): Handle also read-only variables
12147 initialized to string literals.
12148
12149 * builtins.c (expand_builtin_memmove): Optimize memmove (x, y, 1)
12150 into memcpy (x, y, 1) if memcpy can be expanded inline.
12151
12152 2004-09-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12153
12154 PR tree-optimization/17468
12155 * tree-ssa.c (verify_use, verify_phi_args, verify_ssa): Verify that
12156 definition inside a block precede uses.
12157 * tree-tailcall.c (adjust_return_value): Emit statements in the
12158 correct order.
12159
12160 2004-09-15 Richard Sandiford <rsandifo@redhat.com>
12161
12162 * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Delete.
12163
12164 2004-09-15 Eric Botcazou <ebotcazou@libertysurf.fr>
12165
12166 * doc/install.texi (sparc-sun-solaris2*): Properly format warning.
12167
12168 2004-09-14 Jeff Law <law@redhat.com>
12169
12170 * tree-ssa-dom.c (avail_exprs_stack): New global varray.
12171 (struct dom_walk_block_data): Remove avail_exprs member.
12172 (tree_ssa_dominator_optimize): Initialize avail_exprs_stack.
12173 (lookup_avail_expr): No longer need to pass in address of
12174 the block local available exprs stack. All callers changed.
12175 (simplify_cond_and_lookup_avail_expr): Similarly.
12176 (simplify_switch_and_lookup_avail_expr): Similarly.
12177 (get_eq_expr_value, record_cond): Likewise.
12178 (record_dominating_conditions): Likewise.
12179 (update_rhs_and_lookup_avail_expr): Likewise.
12180 (record_equivalences_from_stmt): Likewise.
12181 (dom_opt_initialize_block_local_data): No longer test state of
12182 block local avail_exprs.
12183 (dom_opt_initialize_block): Mark unwind point in the global
12184 avail_expr stack.
12185 (remove_expressions_from_table): Update to unwind to the
12186 most recent unwind marker in the global avail_expr stack.
12187 All callers changed.
12188 (dom_opt_finalize_block): Mark unwind point in the global
12189 avail_expr stack as needed.
12190 (record_cond): Push elements into the global avail_exprs stack.
12191
12192 * tree-dfa.c (free_df_for_stmt): No longer static.
12193 (free_df): Update comments.
12194 * tree-flow.h (free_df_for_stmt): Prototype.
12195 * tree-ssa-dse.c (dse_optimize_stmt): Call free_df_for_stmt. Also
12196 call release_defs.
12197
12198 2004-09-14 Diego Novillo <dnovillo@redhat.com>
12199
12200 PR tree-optimization/17252
12201 * tree-ssa-alias.c (may_alias_p): Don't assume that a
12202 pointer may not point to itself when using relaxed
12203 aliasing rules.
12204
12205 2004-09-14 Richard Henderson <rth@redhat.com>
12206
12207 PR middle-end/17397
12208 * gimplify.c (gimplify_addr_expr): Don't inadvertently change types
12209 while folding <ADDR_EXPR <INDIRECT_REF X>>.
12210
12211 2004-09-14 Andrew Pinski <apinski@apple.com>
12212
12213 * tree-ssa-copy.c (may_propagate_copy): Don't check the aliasing
12214 sets of the pointers but the aliasing sets of what they point to.
12215
12216 2004-09-14 Roger Sayle <roger@eyesopen.com>
12217
12218 PR rtl-optimization/9771
12219 * regclass.c (CALL_REALLY_USED_REGNO_P): New macro to eliminate
12220 conditional compilation in init_reg_sets_1.
12221 (init_reg_sets_1): Let global_regs[i] take priority over the frame
12222 (but not stack) pointer exceptions to regs_invalidated_by_call.
12223 (globalize_reg): Globalizing a fixed register may need to update
12224 regs_invalidated_by_call.
12225
12226 2004-09-14 Diego Novillo <dnovillo@redhat.com>
12227
12228 PR tree-optimization/15262
12229 * tree-dfa.c (dump_variable): Also print the type of the
12230 variable.
12231 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If two
12232 memory tags are of conflicting alias sets but have no aliased
12233 symbols in common, add one tag to the alias set of the other.
12234 (setup_pointers_and_addressables): Remove hack to deal with
12235 programs with no aliased symbols.
12236 (may_alias_p): Don't special case aggregate types.
12237
12238 2004-09-14 Joseph S. Myers <jsm@polyomino.org.uk>
12239
12240 PR c/15498
12241 * doc/invoke.texi (Environment Variables): Correct example locale.
12242
12243 2004-09-14 Jan Hubicka <jh@suse.cz>
12244
12245 * cfg.c (expunge_block): Revert previous change adding ggc_free call.
12246
12247 2004-09-14 Mark Mitchell <mark@codesourcery.com>
12248
12249 * config.gcc: Do not build a shared libgcc for arm-none-eabi.
12250
12251 2004-09-14 Joseph S. Myers <jsm@polyomino.org.uk>
12252
12253 * c-tree.h (struct c_declspecs): Add const_p, volatile_p and
12254 restrict_p.
12255 (struct c_declarator): Change u.array.quals and pointer_quals to
12256 int. Add u.array.attrs.
12257 (quals_from_declspecs): New.
12258 * c-decl.c (quals_from_declspecs): New.
12259 (shadow_tag_warned): Give more specific message for useless type
12260 qualifiers.
12261 (build_array_declarator, set_array_declarator_inner,
12262 grokdeclarator, make_pointer_declarator, build_null_declspecs,
12263 declspecs_add_qual): Update for changed structures.
12264
12265 2004-09-14 Jeff Law <law@redhat.com>
12266
12267 * tree-ssa-dom.c (stmts_to_rescan): Move from a block-local
12268 to a global varray.
12269 (tree_ssa_dominator_optimize): Allocate stmts_to_rescan.
12270 (dom_opt_initialize_block_local_data): No longer test state
12271 of stmts_to_rescan.
12272 (dom_opt_finalize_block): Update due to change in scope of
12273 stmts_to_rescan.
12274 (optimize_stmt): Similarly.
12275
12276 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
12277
12278 * cgraph.h, cgraphunit.c, fold-const.c, lambda-mat.c,
12279 lambda.h, profile.c, tree-optimize.c, tree-sra.c, vec.h: Fix
12280 comment typos. Follow spelling conventions.
12281
12282 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
12283
12284 * config/darwin-c.c, config/alpha/alpha.c, config/i386/i386.c,
12285 config/i386/predicates.md, config/sparc/sparc.c: Follow
12286 spelling conventions.
12287
12288 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12289 Steven Bosscher <stevenb@suse.de>
12290
12291 * Makefile.in (loop-unroll.o): Add HASHTAB_H and RECOG_H dependency.
12292 * basic-block.h (struct reorder_block_def): Add copy_number field.
12293 * cfgloop.h (biv_p): Declare.
12294 * cfgloopmanip.c (duplicate_loop_to_header_edge): Set copy_number.
12295 * common.opt (fsplit-ivs-in-unroller): New flag.
12296 * loop-iv.c (biv_p): New function.
12297 * loop-unroll.c: Include hashtab.h and recog.h.
12298 (struct iv_to_split, struct split_ivs_info): New types.
12299 (analyze_ivs_to_split, si_info_start_duplication, split_ivs_in_copies,
12300 free_si_info, si_info_hash, si_info_eq, analyze_iv_to_split_insn,
12301 determine_split_iv_delta, get_ivts_expr, allocate_basic_variable,
12302 insert_base_initialization, split_iv): New functions.
12303 (peel_loop_completely, unroll_loop_constant_iterations,
12304 unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
12305 Use them.
12306 * doc/invoke.texi (-fsplit-ivs-in-unroller): Document.
12307
12308 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12309
12310 * tree-cfg.c (thread_jumps): Update dominators correctly in
12311 case destination of threaded edge dominates its source.
12312
12313 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12314
12315 * unroll.c: Removed.
12316 * loop.h: Removed.
12317 * Makefile.in (LOOP_H, unroll.o): Removed.
12318 (toplev.o, passes.o, stmt.o, integrate.o, loop.o): Remove LOOP_H
12319 dependency.
12320 * alias.c (init_alias_analysis): Remove flag_old_unroll_loops
12321 reference.
12322 * cfgloop.h (LOOP_PREFETCH, loop_optimize): Moved from loop.h.
12323 * common.opt (fold-unroll-loops, fold-unroll-all-loops): Removed.
12324 * loop.c: Do not include loop.h.
12325 (LOOP_INFO, LOOP_MOVABLES, LOOP_REGS, LOOP_IVS, INSN_LUID,
12326 REGNO_FIRST_LUID, REGNO_LAST_LUID, enum g_types, struct induction,
12327 struct iv_class, enum iv_mode, struct iv, REG_IV_TYPE, REG_IV_INFO,
12328 REG_IV_CLASS, struct loop_ivs, struct loop_mem_info, struct loop_reg,
12329 struct loop_regs, struct loop_movables, struct loop_info): Moved
12330 from loop.h.
12331 (back_branch_in_range_p, fold_rtx_mult_add, biv_total_increment,
12332 reg_dead_after_loop, final_biv_value, loop_find_equiv_value,
12333 find_common_reg_term, loop_iterations, final_giv_value): Moved
12334 from unroll.c.
12335 (uid_luid, uid_loop, max_uid_for_loop, max_reg_before_loop,
12336 loop_dump_stream, for_each_insn_in_loop, express_from,
12337 extend_value_for_giv, loop_iv_add_mult_emit_before,
12338 loop_iv_add_mult_sink, loop_iv_add_mult_hoist,
12339 loop_insn_first_p, get_condition_for_loop,
12340 loop_insn_emit_before, loop_insn_hoist,
12341 loop_insn_sink): Made static.
12342 (loop_invariant_p): Made static. Removed flag_old_unroll_loops
12343 reference.
12344 (strength_reduce): Do not call unroller.
12345 (record_giv): Do not initialize unrolled field.
12346 (prescan_loop): Do not set loop_info->preconditioned.
12347 * passes.c: Do not include loop.h.
12348 (rest_of_handle_loop_optimize): Do not call unroller.
12349 * predict.c: Do not include loop.h.
12350 * rtl.h (NOTE_PRECONDITIONED): Removed.
12351 * stmt.c: Do not include loop.h.
12352 * toplev.c: Do not include loop.h.
12353 (process_options): Do not handle flag_old_unroll_loops.
12354
12355 * doc/invoke.texi (fold-unroll-loops, fold-unroll-all-loops):
12356 Documentation removed.
12357 * doc/passes.texi (unroll.c, loop.h): Documentation removed.
12358
12359 2004-09-14 Nathan Sidwell <nathan@codesourcery.com>
12360
12361 * Makefile.in (STAGE1_CHECKING): New variable.
12362 (stage1_build): Use it.
12363 * tree-ssa.c (verify_ssa): Preserve state of dominance
12364 information.
12365
12366 2004-09-14 Uros Bizjak <uros@kss-loka.si>
12367
12368 * config/i386/i386.c (output_fp_compare): Add generation
12369 of ftst instruction.
12370 * config/i386/i386.md (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf):
12371 Use output_fp_compare () function.
12372 (cmpfp_i, *cmpfp_i_sse, *cmpfp_i_sse_only): Fix insn constraint.
12373 (fix_truncdi_memory): Remove operands[5] copy.
12374
12375 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
12376
12377 * config/m32r/m32r.md, config/m68k/m68kelf.h,
12378 config/mcore/mcore.md, config/rs6000/linux64.h,
12379 config/rs6000/rs6000.c, config/sparc/sparc.c: Fix comment
12380 typos.
12381
12382 2004-09-13 James E Wilson <wilson@specifixinc.com>
12383
12384 * Makefile.in (GEN_PROTOS_OBJS): Add $(BUILD_ERRORS).
12385 * gen-protos.c: Include errors.h.
12386 (progname): Delete.
12387
12388 2004-09-14 Jan Hubicka <jh@suse.cz>
12389
12390 * Makefile.in (predict.o): Depend on tree-scalar-evolution.h
12391 * predict.c: Include tree-scalar-evolution.h and cfgloop.h
12392 (predict_loops): Use number_of_iterations_exit to predict
12393 number of iterations on trees.
12394
12395 2004-09-13 Dale Johannesen <dalej@apple.com>
12396
12397 PR 17408
12398 PR 17409
12399 * c-decl.c (start_decl): Repair TREE_STATIC for initialized
12400 objects declared extern.
12401
12402 2004-09-14 Paul Brook <paul@codesourcery.com>
12403
12404 * config/arm/arm.c (arm_expand_prologue): Make args_to_push a
12405 HOST_WIDE_INT.
12406
12407 2004-09-13 Daniel Jacobowitz <dan@debian.org>
12408
12409 * fold-const.c (fold_checksum_tree): Ignore TYPE_CACHED_VALUES.
12410 Only use TYPE_BINFO for aggregates.
12411
12412 2004-09-13 Daniel Jacobowitz <dan@debian.org>
12413
12414 * expmed.c (synth_mult): Initialize latency. Check cost before
12415 checking ops count.
12416
12417 2004-09-13 Kenneth Zadeck <Kenneth.Zadeck@NaturalBridge.com>
12418
12419 * tree-ssa-operands.c (get_call_expr_operands): Added parm to
12420 add_call_clobber_ops and add_call_read_ops.
12421 (add_call_clobber_ops, add_call_read_ops): Added code to reduce
12422 the number of vdefs and vuses inserted based on analysis of global
12423 variables across calls. * tree-dfa.c (find_referenced_vars):
12424 Needed to reset static var maps before each function is compiled.
12425 * cgraphunit.c:
12426 (static_vars_to_consider_by_tree,static_vars_to_consider_by_uid,
12427 static_vars_info,functions_to_static_vars_info,module_statics_escape,
12428 all_module_statics,searchc_env,dfs_info): New fields to support
12429 analysis of static global variables.
12430 (print_order, convert_UIDs_in_bitmap, new_static_vars_info,
12431 cgraph_reset_static_var_maps, get_global_static_vars_info,
12432 get_global_statics_not_read, get_global_statics_not_written,
12433 searchc, cgraph_reduced_inorder, has_proper_scope_for_analysis,
12434 check_rhs_var, check_lhs_var, get_asm_expr_operands,
12435 process_call_for_static_vars, scan_for_static_refs,
12436 cgraph_characterize_statics_local, cgraph_get_static_name_by_uid,
12437 clear_static_vars_maps, cgraph_propagate_bits,
12438 cgraph_characterize_statics): New. Functions to support analysis
12439 of static global variables.
12440 (cgraph_mark_local_and_external_functions): Renamed from:
12441 (cgraph_mark_local_functions)
12442 (cgraph_expand_all_functions): Remove call to
12443 cgraph_mark_local_and_external_functions.
12444 (cgraph_optimize): Added driver to analyze static variables whose
12445 scope is within the compilation unit. * cgraph.h (struct
12446 cgraph_local_info, GTY): Added statics_read, statics_written,
12447 local, calls_read_all, calls_write_all, for_functions_valid.
12448 (struct cgraph_node): Added next_cycle. * cgraph.c
12449 (dump_cgraph_node): Added print routines for new fields. *
12450 makefile.in: macroized cgraph.h, added cgraphunit.c to the ggc
12451 list.
12452
12453 2004-09-13 Joseph S. Myers <jsm@polyomino.org.uk>
12454
12455 * c-decl.c (grokdeclarator): Correct comments about where storage
12456 class specifiers are rejected by grammar and add corresponding
12457 asserts. Diagnose typedefs and parameters declared inline.
12458 Change warning for inline main to a pedwarn. Only diagnose inline
12459 main if hosted.
12460 (declspecs_add_scspec): Allow duplicate "inline".
12461
12462 2004-09-13 Steve Ellcey <sje@cup.hp.com>
12463
12464 * config/ia64/ia64.c (ia64_scalar_mode_supported_p): New.
12465 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
12466
12467 2004-09-13 Richard Henderson <rth@redhat.com>
12468
12469 PR 17436
12470 * tree.h (TYPE_CONTAINS_PLACEHOLDER_INTERNAL): New.
12471 (tree_type): Replace spare with contains_placeholder_bits.
12472 (type_contains_placeholder_1): Rename from type_contains_placeholder_p,
12473 make static. Remove seen_types list.
12474 (type_contains_placeholder_p): New.
12475
12476 2004-09-13 James E Wilson <wilson@specifixinc.com>
12477
12478 * config/mips/mips.c (CODE_FOR_mips_sqrt_ps): New.
12479 (sb1_bdesc, bdesc_map, bdesc_arrays): New.
12480 (mips_expand_builtin): Add SB-1 support. Use bdesc_map and
12481 bdesc_arrays instead of mips_bdesc.
12482 (mips_init_builtins): Likewise.
12483 * config/mips/mips.h (TARGET_SB1): New.
12484 (HAVE_SQRT_P): Delete.
12485 * config/mips/mips.md (divide_condition): Support V2SF.
12486 (sqrt_condition, recip_condition): New.
12487 (div<mode>3): Use ANYF instead of SCALARF.
12488 (*div<mode>3): Use ANYF instead of SCALARF. Use UNITMODE instead of
12489 MODE.
12490 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Use recip_condition
12491 instead of ISA_HAS_FP4. Use ANYF instead of SCALARF. Use UNITMODE
12492 instead of MODE.
12493 (sqrt<mode>2): Use sqrt_condition instead of HAVE_SQRT_P. Use ANYF
12494 instead of SCALARF. Use UNITMODE instead of MODE.
12495
12496 2004-09-13 Zack Weinberg <zack@codesourcery.com>
12497
12498 * config.in: Regenerate after removal of libbanshee.
12499
12500 2004-09-13 Andrew MacLeod <amacleod@redhat.com>
12501
12502 PR tree-optimization/17400
12503 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12504 coalesce partitions when one occurs in an abnormal PHI.
12505
12506 2004-09-13 Andrew Pinski <apinski@apple.com>
12507
12508 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Change variable size's
12509 name to _new_size.
12510
12511 2004-09-13 Richard Henderson <rth@redhat.com>
12512
12513 PR inline-asm/6806
12514 * cselib.c (cselib_invalidate_rtx): Export. Remove unused args.
12515 (cselib_invalidate_rtx_note_stores): New.
12516 (cselib_record_sets, cselib_process_insn): Update to match.
12517 * cselib.h (cselib_invalidate_rtx): Declare.
12518 * postreload.c (reload_cse_simplify): Invalidate asm clobbers.
12519
12520 2004-09-13 Richard Henderson <rth@redhat.com>
12521
12522 PR tree-opt/10528
12523 * tree-inline.c (copy_body_r): Recompute bits for ADDR_EXPR,
12524 after copying its argument.
12525
12526 2004-09-13 Joseph S. Myers <jsm@polyomino.org.uk>
12527
12528 * c-common.c, c-decl.c, c-lex.c, c-objc-common.c, c-opts.c,
12529 c-parse.in, c-pragma.c, c-typeck.c: Use %q, %< and %> for quoting
12530 in diagnostics. Use %' for English apostrophes.
12531 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Define.
12532 (pedwarn_c90, pedwarn_c99): Use it.
12533 * c-decl.c (lookup_label): Quote label name in diagnostic.
12534 * c-parse.in (yyprint): Use ' instead of ` for left quote.
12535 * c-typeck.c (warn_for_assignment): Likewise.
12536
12537 2004-09-13 Jan Hubicka <jh@suse.cz>
12538
12539 * i386.c (x86_schedule): New global variable.
12540 (override_options): Disable scheduling when not supported.
12541 * i386.h (x86_schedule): Declare.
12542 (TARGET_SCHEDULE): New macro.
12543
12544 2004-09-12 Richard Henderson <rth@redhat.com>
12545
12546 PR c++/16254
12547 * fold-const.c (fold) <case CLEANUP_POINT_EXPR>: Remove.
12548 * tree.c, tree.h (has_cleanups): Remove.
12549
12550 2004-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12551
12552 * tree-ssa-loop-manip.c (split_loop_exit_edge): Handle non-ssaname
12553 arguments of the phi nodes correctly.
12554
12555 2004-09-12 Jan Hubicka <jh@suse.cz>
12556
12557 * ggc-common.c (cmp_statistics): Fix sorting.
12558
12559 2004-09-12 David Edelsohn <edelsohn@gnu.org>
12560
12561 PR target/16795
12562 * expmed.c (expand_divmod): If cheap power of 2 divide is
12563 available, use it for negative constant as well.
12564
12565 2004-09-12 Andrew Pinski <apinski@apple.com>
12566
12567 * darwin.h (ASM_OUTPUT_COMMON): Make sure we do not have a
12568 size of 0.
12569
12570 * tree-chrec.c (initialize_scalar_evolutions_analyzer): Remove.
12571
12572 2004-09-12 Richard Henderson <rth@redhat.com>
12573
12574 * config/i386/i386.c (ix86_split_ashldi): Special case op1 as one
12575 or minus one.
12576 (ix86_split_ashrdi, ix86_split_lshrdi): Clean up conditions for
12577 post-reload, and scratch NULL.
12578 * config/i386/i386.md (testqi_1): Use FLAGS_REG name.
12579 (x86_shift_adj_2): Use ix86_expand_clear.
12580 (ashldi3): Remove CMOVE expansion difference.
12581 (ashldi3_1): Remove.
12582 (*ashldi3_1): Rename from *ashldi3_2. Use reg_or_pm1_operand and
12583 add constraints for immediates. New peephole for split-with-temp.
12584 Run splitter after peep2 pass.
12585 (ashrdi3, ashrdi3_1, ashrdi3_2): Similarly.
12586 (lshrdi3, lshrdi3_1, lshrdi3_2): Similarly.
12587 (setcc_2): Rename with *.
12588 * config/i386/predicates.md (reg_or_pm1_operand): New.
12589 (ashldi_input_operand): New.
12590
12591 2004-09-12 Richard Henderson <rth@redhat.com
12592
12593 * print-rtl.c (print_decl_name): New.
12594 (print_mem_expr): Use it.
12595
12596 2004-09-12 Richard Henderson <rth@redhat.com
12597
12598 PR 17186, part deux
12599 * except.c (sjlj_emit_function_exit): Fix logic locating
12600 sjlj_exit_after in final block.
12601
12602 2004-09-12 Toon Moene <toon@moene.indiv.nluug.nl>
12603
12604 * common.opt: Remove flags -fmove-all-movables and
12605 -freduce-all-givs.
12606 * loop-invariant.c (find_invariants_to_move):
12607 Remove all uses of flag_move_all_movables.
12608 * loop.c (move_movables): Remove all uses of
12609 flag_move_all_movables.
12610 (strength_reduce): Remove all uses of
12611 flag_reduce_all_givs.
12612 * doc/invoke.texi: Remove documentation of flags
12613 -fremove-all-movables and -freduce-all-givs.
12614
12615 2004-09-11 Roger Sayle <roger@eyesopen.com>
12616
12617 PR middle-end/17411
12618 * tree-sra.c (generate_element_zero): Revert recent build_int_cst
12619 change. elt->type may be a floating point type, so use fold_convert.
12620
12621 2004-09-11 Geoffrey Keating <geoffk@apple.com>
12622
12623 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Mark
12624 the thing referenced as used, not the stub itself.
12625
12626 2004-09-11 Joseph S. Myers <jsm@polyomino.org.uk>
12627
12628 * c-tree.h (enum c_storage_class): New.
12629 (struct c_declspecs): Add storage_class, inline_p and thread_p.
12630 * c-decl.c (shadow_tag_warned): Give errors for "inline" in empty
12631 declarations and "auto" or "register" in file scope empty
12632 declarations. Give more specific warnings for other cases of
12633 storage class specifiers in empty declarations.
12634 (grokdeclarator): Update for new structures. Don't check for
12635 multiple storage classes. Diagnose file-scope "register" if
12636 pedantic.
12637 (build_null_declspecs): Update.
12638 (declspecs_add_scspec): Update. Diagnose multiple storage class
12639 specifiers and invalid uses of "__thread".
12640
12641 2004-09-11 Zack Weinberg <zack@codesourcery.com>
12642
12643 * tree.c (tree_code_size): New function, bulk of code from tree_size.
12644 (tree_size, make_node): Use it.
12645 * tree-ssa-pre.c (init_pre): Use it.
12646 * tree.h: Prototype it.
12647
12648 2004-09-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12649
12650 * tree-cfg.c (set_bb_for_stmt): Use PHI_BB.
12651 * tree-dfa.c (compute_immediate_uses, add_immediate_use,
12652 redirect_immediate_use): Use PHI_DF.
12653 * tree-flow-inline.h (stmt_ann): Abort on phi nodes.
12654 (bb_for_stmt): Use PHI_BB.
12655 (get_immediate_uses): Use PHI_DF.
12656 * tree-ssa-dse.c (max_stmt_uid): New variable.
12657 (get_stmt_uid): New function.
12658 (dse_optimize_stmt, dse_record_phis, tree_ssa_dse): Do not use phi
12659 node annotations.
12660 * tree-ssa-loop-im.c (LIM_DATA): Do not use phi statement annotations.
12661 (max_uid): Renamed to max_stmt_uid.
12662 (get_stmt_uid): New function.
12663 (maybe_queue_var, single_reachable_address, determine_lsm): Do not use
12664 phi node annotations.
12665 * tree-ssa.c (replace_immediate_uses): Do not use phi node annotations.
12666 * tree.h (PHI_BB, PHI_DF): New accessor functions.
12667 (struct tree_phi_node): Add bb and df fields.
12668
12669 2004-09-11 Richard Henderson <rth@redhat.com>
12670
12671 PR middle-end/17416
12672 * cfgexpand.c (expand_used_vars_for_block): Fix off-by-one bug
12673 in conflict loop.
12674
12675 2004-09-11 Jan Hubicka <jh@suse.cz>
12676
12677 * i386.h (MODE_NEEDED): Calls need UNINITIALIZED mode; add comment.
12678 (EMIT_MODE_SET): UNINITIALIZED mode needs no set.
12679 * i386.md (i387_cw): Add 'uninitialized' mode.
12680
12681 * profile.c (BB_TO_GCOV_INDEX): move more to the front.
12682 (output_location): Break out from ....
12683 (branch_prob): ... here; handle gcov output on trees.
12684 * toplev.c (process_options): No longer be sorry about coverage for
12685 trees.
12686
12687 2004-09-11 Steven Bosscher <stevenb@suse.de>
12688
12689 PR c++/17412
12690 * fold-const.c (fold): Do not try to fold the operand of a
12691 CLEANUP_POINT_EXPR if that operand does itself not have any
12692 operands.
12693
12694 PR middle-end/17417
12695 * langhooks.c (lhd_decl_printable_name): Make sure that this
12696 function is called with is a decl node that has an identifier.
12697 * tree-pretty-print.c (dump_function_name): New function to
12698 wrap PRINT_FUNCTION_NAME and dump_decl_name.
12699 (print_call_name): Use it.
12700
12701 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
12702
12703 * ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE,
12704 "config.h" if not.
12705
12706 2004-09-11 Jakub Jelinek <jakub@redhat.com>
12707
12708 * tree-ssa-alias.c (collect_points_to_info_r): Handle
12709 pointing to PTR + OFFSET as PTR, not as pointing to PTR or pointing
12710 to OFFSET.
12711
12712 2004-09-11 Richard Henderson <rth@redhat.com>
12713
12714 * expr.c (expand_expr_addr_expr_1) Rename from expand_expr_addr_expr.
12715 (expand_expr_addr_expr): New function. Take ADDR_EXPR instead of the
12716 operand of the ADDR_EXPR.
12717 (expand_expr_real_1): Update to match.
12718
12719 2004-09-11 David Edelsohn <edelsohn@gnu.org>
12720
12721 PR target/17277
12722 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to
12723 choose 64-bit version.
12724
12725 2004-09-11 Richard Henderson <rth@redhat.com>
12726
12727 PR c/17396
12728 * c-typeck.c (build_unary_op): Add legacy offsetof hack.
12729
12730 2004-09-11 Kazu Hirata <kazu@cs.umass.edu>
12731
12732 * doc/cfg.texi, doc/hostconfig.texi, doc/install.texi,
12733 doc/invoke.texi, doc/md.texi, doc/tm.texi, doc/tree-ssa.texi:
12734 Insert @: after i.e. or e.g.
12735
12736 2004-09-10 Geoffrey Keating <geoffk@apple.com>
12737
12738 * tree-pretty-print.c (dump_decl_name): Print unnamed decls as
12739 D.xxx rather than <Dxxx>.
12740
12741 2004-09-10 Adam Nemet <anemet@lnxw.com>
12742
12743 * configure.ac (AC_MSG_CHECKING(what linker to use)):
12744 in_tree_ld_is_elf should be true for LynxOS.
12745 * configure: Regenerate.
12746
12747 2004-09-10 Adam Nemet <anemet@lnxw.com>
12748
12749 * Makefile.in (all.cross): Add srcextra.
12750
12751 2004-09-10 Roger Sayle <roger@eyesopen.com>
12752
12753 PR middle-end/17024
12754 * fold-const.c (fold_cond_expr_with_comparison): Handle unordered
12755 floating point comparison operators. Change aborts to gcc_asserts.
12756
12757 2004-09-10 Geoffrey Keating <geoffk@apple.com>
12758
12759 * final.c (output_asm_insn): Correct problem with -fverbose-asm.
12760
12761 2004-09-10 James E Wilson <wilson@specifixinc.com>
12762
12763 * Makefile.in (LIBGCC_DEPS): Delete duplicate stmp-int-hdrs reference.
12764 (stmp-fixproto): Change stmp-int-headers to stmp-int-hdrs in comment.
12765
12766 * convert.c (convert_to_vector): Replace recursive call with
12767 error_mark_node.
12768
12769 * emit-rtl.c (gen_const_vector): Renamed from gen_const_vector_0.
12770 Add integer argument named constant. Use const_tiny_rtx instead of
12771 CONST0_RTX.
12772 (gen_rtx_CONST_VECTOR): Rewrite to handle checks for both CONST0_RTX
12773 and CONST1_RTX.
12774 (init_emit_once): Fix users of gen_const_vector. Set CONST1_RTX for
12775 vector types.
12776 * expr.c (const_vector_from_tree): Call gen_rtx_CONST_VECTOR instead
12777 of gen_rtx_raw_CONST_VECTOR.
12778
12779 2004-09-10 Eric Christopher <echristo@redhat.com>
12780
12781 PR c/16046
12782 * c-parse.in (attribute): Add NULL_TREE for error case
12783 for error recovery.
12784
12785 2004-09-10 Zack Weinberg <zack@codesourcery.com>
12786
12787 * c-common.h (struct c_fileinfo): Comment moved here from cp-tree.h.
12788 (extract_interface_info): Delete prototype.
12789 * c-decl.c (extract_interface_info): Delete stub.
12790 * c-lex.c (get_fileinfo): Initialize file_info_tree here, if
12791 it's not already been done ...
12792 (init_c_lex): ... not here.
12793 (fe_file_change): Don't call extract_interface_info.
12794
12795 2004-09-11 Joseph S. Myers <jsm@polyomino.org.uk>
12796
12797 * c-tree.h (struct c_declspecs): Remove typedef_decl. Add
12798 typedef_p and typedef_signed_p.
12799 * c-decl.c (shadow_tag_warned): Check typedef_p, not typedef_decl.
12800 (grokdeclarator): Don't use typedef_decl for warn_deprecated_use.
12801 Check typedef_p and typedef_signed_p, not typedef_decl.
12802 (grokfield): Check typedef_p, not typedef_decl.
12803 (build_null_declspecs): Initialize typedef_p and typedef_signed_p,
12804 not typedef_decl.
12805 (declspecs_add_type): Set typedef_p and typedef_signed_p, not
12806 typedef_decl.
12807
12808 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
12809
12810 * doc/tm.texi, doc/tree-ssa.texi: Fix typos.
12811
12812 2004-09-10 Geoffrey Keating <geoffk@apple.com>
12813
12814 * gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless
12815 temporary variables.
12816
12817 * dbxout.c (dbxout_block): Update for
12818 current_function_func_begin_label a string.
12819 * dwarf2out.c (dwarf2out_begin_prologue): Likewise.
12820 * except.c (dw2_output_call_site_table): Likewise.
12821 * toplev.c (current_function_func_begin_label): Likewise.
12822 * tree.h (current_function_func_begin_label): Likewise.
12823 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Likewise.
12824
12825 * final.c (output_asm_insn): Use strtoul instead of atoi, save a
12826 loop.
12827
12828 * config/darwin.c: Include target.h.
12829 (struct machopic_indirection): Make ptr_name a string.
12830 (machopic_indirection_hash): Update for ptr_name a string.
12831 (machopic_indirection_eq): Likewise.
12832 (machopic_indirection_name): Likewise.
12833 (machopic_output_indirection): Likewise.
12834 (machopic_validate_stub_or_non_lazy_ptr): Update for ptr_name a
12835 string. Don't expect stub names to be in the identifier hash table.
12836 Do call strip_name_encoding before looking up entry in ID hash table.
12837 * config/t-darwin (darwin.o): Add target.h to dependencies.
12838
12839 * gcc/config/rs6000/rs6000.c (print_operand): Use fputs instead
12840 of fprintf for register names.
12841
12842 * output.h (unlikely_section_label): Delete declaration.
12843 (unlikely_text_section_name): Likewise.
12844 * varasm.c (unlikely_section_label_printed): Make static.
12845 (unlikely_section_label): Likewise.
12846 (unlikely_text_section_name): Likewise.
12847 (assemble_start_function): Use reconcat.
12848
12849 * rtl.def (REG): Add comment to describe third field.
12850
12851 2004-09-10 Andrew Pinski <apinski@apple.com>
12852
12853 * config/darwin.c (machopic_mcount_stub_name): Call
12854 machopic_indirection_name instead of making the string
12855 ourselves.
12856
12857 2004-09-10 Diego Novillo <dnovillo@redhat.com>
12858
12859 Revert
12860
12861 2004-09-08 Jie Zhang <zhangjie@magima.com.cn>
12862
12863 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
12864 memory tag is call clobbered, so are its aliases.
12865 (group_aliases): When two memory tags being grouped, if one is
12866 call clobbered, so are the other and its aliases.
12867 (add_may_alias): Remove call-clobbering stuff.
12868 (replace_may_alias): Likewise.
12869 (merge_pointed_to_info): Merge pt_global_mem
12870
12871 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
12872
12873 * bb-reorder.c, c-common.c, c-incpath.c, c-typeck.c,
12874 genrecog.c, lambda-code.c, mips-tdump.c, mips-tfile.c,
12875 passes.c, tree-data-ref.c, tree-data-ref.h, tree-mudflap.c,
12876 tree-scalar-evolution.c, tree-ssa-copyrename.c,
12877 tree-ssa-live.c, tree-ssa-live.h: Fix comment typos.
12878
12879 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
12880
12881 * config/frv/frv.md (UNSPEC_MASACCS, UNSPEC_MDASACCS): New constants.
12882 (maddaccs, msubaccs, *maddacc): Turn operand 0 into a single ACC/ACCG
12883 pair. Remove match_dup from inputs. Remove masaccs handling.
12884 (mdaddaccs, mdsubaccs, *mdaddacc): Likewise a dual ACC/ACCG pair.
12885 (masaccs, mdasaccs): Turn into define_insns.
12886
12887 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
12888
12889 * tree-tailcall.c (process_assignment): Only do accumulator transforms
12890 for floating-point types if flag_unsafe_math_optimizations.
12891
12892 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
12893
12894 * config/darwin.c, config/alpha/alpha.h, config/arm/arm.c,
12895 config/arm/arm.h, config/arm/arm.md, config/arm/bpabi.h,
12896 config/arm/predicates.md, config/frv/frv.c, config/frv/frv.md,
12897 config/h8300/h8300.md, config/i386/gmm_malloc.h,
12898 config/ia64/ia64.md, config/ip2k/libgcc.S,
12899 config/mips/mips-ps-3d.md, config/mips/mips.c,
12900 config/rs6000/rs6000.c, config/s390/s390.c,
12901 config/sh/symbian.c: Fix comment typos.
12902
12903 2004-09-10 Andreas Krebbel <krebbel1@de.ibm.com>
12904
12905 * config/s390/s390.c (s390_emit_prologue): Added missing
12906 "{}" brackets.
12907
12908 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
12909
12910 * doc/extend.texi, doc/invoke.texi, doc/passes.texi: Fix
12911 typos. Follow spelling conventions.
12912
12913 2004-09-10 Joseph S. Myers <jsm@polyomino.org.uk>
12914
12915 * toplev.c (warn_deprecated_use): Correct logic for saying "type"
12916 in diagnostic. Don't dereference NULL TYPE_NAME.
12917
12918 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
12919
12920 * c-common.c, c-pch.c, defaults.h, lambda-code.c, passes.c,
12921 tree-data-ref.c, tree-flow.h, tree-ssa-operands.c,
12922 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
12923 value-prof.c: Fix comment typos. Follow spelling conventions.
12924
12925 2004-09-10 Jan Hubicka <jh@suse.cz>
12926
12927 * tree-ssa-dce.c (remove_dead_stmt): Update profile.
12928 * tree-split_edge.c (tree_split_edge): Likewise.
12929 (thread_jumps): Likewise.
12930
12931 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
12932
12933 * cgraphunit.c, predict.c, tree-ssa-loop-ivopts.c: Fix comment
12934 typos.
12935
12936 2004-09-10 Paolo Bonzini <bonzini@gnu.org>
12937
12938 * cgraph.h (cgraph_dump_file): Do not declare.
12939 * cgraphunit.c (cgraph_dump_file): Declare as static.
12940 (init_cgraph): New.
12941 * toplev.c (cgraph_dump_file): Do not declare.
12942 (compile_file): Call init_cgraph.
12943 * tree-dump.c (dump_files): Add IPA dump file, remove
12944 XML dump of call graph.
12945 (get_dump_file_name): Support IPA dump file naming scheme.
12946 * tree.h (enum tree_dump_index): Add IPA dump file, remove
12947 XML dump of call graph.
12948 * doc/invoke.texi (Debugging Options): Document the new options.
12949
12950 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
12951
12952 * doc/extend.texi: Document the FR-V built-in functions.
12953
12954 2004-09-09 James E Wilson <wilson@specifixinc.com>
12955
12956 * doc/sourcebuild.texi: Delete libbanshee reference.
12957
12958 2004-09-10 Kelley Cook <kcook@gcc.gnu.org>
12959
12960 * Makefile.in (s-gtype): Add $(build_exeext) to gengtype command.
12961
12962 2004-09-09 James E Wilson <wilson@specifixinc.com>
12963
12964 * c-typeck.c (convert_for_assignment): Check that rhs has VECTOR_TYPE
12965 before calling vector_types_convertible_p.
12966 (digest_init): Check that inside_init has VECTOR_TYPE before calling
12967 vector_types_convertible_p. Don't give another error if
12968 convert_for_assignment returns error_mark_node.
12969
12970 2004-09-09 Roger Sayle <roger@eyesopen.com>
12971
12972 PR middle-end/17055
12973 * fold-const.c (build_zero_vector): New function to construct a
12974 vector (either floating point or integer) of zeros.
12975 (fold_convert): Internally, enable conversions of integer zero
12976 to arbitrary vector types, using the new build_zero_vector.
12977
12978 2004-09-09 Roger Sayle <roger@eyesopen.com>
12979
12980 * config/i386/i386.c (ix86_expand_ashlsi3_const): New function to
12981 expand a left shift by an immediate constant as either an ashl or
12982 a sequence of additions.
12983 (ix86_split_ashldi): Use new ix86_expand_ashlsi3_const function
12984 instead of calling gen_ashlsi3 with a constant directly.
12985
12986 2004-09-09 Roger Sayle <roger@eyesopen.com>
12987
12988 * config/i386/i386.c (ix86_split_long_move): When optimizing for
12989 size, and the low and high parts of a DImode constant are equal,
12990 copy one register to another instead of loading the same immediate
12991 value twice.
12992
12993 2004-09-09 Richard Henderson <rth@redhat.com>
12994
12995 PR middle-end/17367
12996 * function.c (assign_parm_setup_block): Only put PARALLELs into
12997 a register if use_register_for_decl.
12998
12999 2004-09-09 Eric Christopher <echristo@redhat.com>
13000
13001 * ra-colorize.c (reset_lists): Move variable declaration inside
13002 ENABLE_CHECKING to avoid unused variable warnings when
13003 not --enable-checking.
13004 (check_colors): Ditto.
13005
13006 2004-09-09 Mike Stump <mrs@apple.com>
13007
13008 * version.c (version_string): Bump to 4.0.0.
13009 * doc/include/gcc-common.texi (version-GCC): Likewise.
13010
13011 2004-09-10 Jakub Jelinek <jakub@redhat.com>
13012
13013 * doc/extend.texi (nothrow attribute): The attribute is not
13014 implemented in 3.2 and earlier.
13015
13016 2004-09-09 Steve Ellcey <sje@cup.hp.com>
13017
13018 * genrecog.c (compute_predicate_codes): Use op0_codes
13019 instead of codes.
13020
13021 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
13022
13023 * ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET
13024 implementation changes.
13025
13026 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
13027
13028 * combine.c (try_combine): When swapping i2 and i3, newi2pat may be
13029 a PARALLEL instead of a SET due to added clobbers.
13030
13031 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
13032
13033 * reload.c (find_reloads_address): Pass correct operand to
13034 maybe_memory_address_p.
13035
13036 2004-09-09 Daniel Berlin <dberlin@dberlin.org>
13037
13038 * Makefile.in: Remove libbanshee, tree-alias-*.
13039 Remove tree-alias-common.h dependencies.
13040 * common.opt: Remove -ftree-points-to.
13041 * configure.ac: Remove libbanshee.
13042 * flags.h: Remove pta_type, flag_tree_points_to.
13043 * gengtype.c (open_base_files): Remove tree-alias-type.h.
13044 * opts.c (OPT_ftree_points_to): Remove.
13045 * toplev.c: Remove tree-alias-common.h, flag_tree_points_to.
13046 * tree-dfa.c: Remove tree-alias-common.h
13047 * tree-into-ssa.c: Ditto.
13048 * tree-outof-ssa.c: Ditto.
13049 * tree-ssa-copyrename.c: Ditto.
13050 * tree-ssa-live.c: Ditto.
13051 * tree-optimize.c: Ditto.
13052 * tree-ssa.c: Ditto.
13053 Remove pass_build_pta, pass_del_pta.
13054 * tree-pass.h: Ditto.
13055 * tree-ssa-alias.c: Remove tree-alias-common.h.
13056 (struct alias_stats_d): Remove pta_queries, pta_resolved.
13057 (pass_may_alias): Remove PROP_pta requirement.
13058 (may_alias_p): Remove pta_queries, pta_resolved, use of andersens.
13059 (get_tmt_for): Ditto.
13060 (dump_alias_stats): Ditto.
13061 * doc/passes.texi: Remove blurb about points-to analysis.
13062 * fortran/Make-lang.in: Remove tree-alias-*.o.
13063
13064 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
13065
13066 * genattrtab.c (write_insn_cases): New function, split out from
13067 write_attr_case. Correctly handle define_peepholes when printing
13068 the instruction name.
13069 (write_attr_case, write_const_num_delay_slots): Use write_insn_cases.
13070
13071 2004-09-09 Hans-Peter Nilsson <hp@axis.com>
13072
13073 PR target/17377
13074 * config/cris/cris-protos.h (cris_return_address_on_stack): Declare.
13075 * config/cris/cris.c (cris_return_address_on_stack): New function.
13076 * config/cris/cris.md ("return"): For location of return address,
13077 also check cris_return_address_on_stack.
13078
13079 2004-09-09 Diego Novillo <dnovillo@redhat.com>
13080
13081 * tree-outof-ssa.c (coalesce_abnormal_edges): Fix typo in
13082 calling phi_ssa_name_p.
13083
13084 2004-09-09 Richard Henderson <rth@redhat.com>
13085
13086 PR c/17322
13087 * c-typeck.c (valid_compound_expr_initializer): Use only
13088 initializer_constant_valid_p, and not TREE_CONSTANT.
13089 (digest_init): Likewise.
13090 (output_init_element): Likewise.
13091
13092 2004-09-09 Giovanni Bajo <giovannibajo@gcc.gnu.org>
13093
13094 * ra-build.c (copy_insn_p, remember_move, defuse_overlap_p_1,
13095 live_out_1, prune_hardregs_for_mode, init_one_web_common,
13096 reinit_one_web, add_subweb, add_subweb_2, init_web_parts,
13097 record_conflict, compare_and_free_webs, init_webs_defs_uses,
13098 parts_to_webs_1, parts_to_webs, reset_conflicts,
13099 check_conflict_numbers, remember_web_was_spilled, handle_asm_insn,
13100 ra_build_free): Use gcc_assert and gcc_unreachable instead of abort.
13101 * ra-colorize.c (push_list, put_web, reset_lists, put_web_at_end,
13102 put_move, remove_move, combine, select_spill, colorize_one_web,
13103 try_recolor_web, insert_coalesced_conflicts, check_colors,
13104 break_precolored_alias, restore_conflicts_from_coalesce,
13105 sort_and_combine_web_pairs, check_uncoalesced_moves): Likewise.
13106 * ra-rewrite.c (spill_coalescing, slots_overlap_p, emit_loads,
13107 reloads_to_loads, rewrite_program2, emit_colors): Likewise.
13108 * ra.c (first_hard_reg, create_insn_info, find_subweb, init_ra,
13109 check_df): Likewise.
13110 * real.c (do_add, do_multiply, do_divide, do_compare, do_fix_trunc,
13111 real_arithmetic, real_compare, real_exponent, real_ldexp,
13112 real_identical, real_to_integer, real_to_integer2, real_to_decimal,
13113 real_to_hexadecimal, real_from_integer, ten_to_ptwo, ten_to_mptwo,
13114 real_digit, real_nan, real_maxval, round_for_format, real_convert,
13115 real_to_target, real_from_target, real_hash, encode_ieee_single,
13116 encode_ieee_double, encode_ieee_extended, encode_ieee_quad,
13117 encode_vax_f, encode_vax_d, encode_vax_g, encode_i370_single,
13118 encode_i370_double, encode_c4x_single, encode_c4x_extended): Likewise.
13119 * recog.c (validate_change, validate_replace_rtx_1, asm_operand_ok,
13120 extract_insn, peep2_next_insn, peep2_reg_dead_p,
13121 peep2_find_free_register, peephole2_optimize, store_data_bypass_p,
13122 if_test_bypass_p): Likewise.
13123 * reg-stack.c (record_label_references, get_asm_operand_n_inputs,
13124 stack_result, remove_regno_note, get_hard_regnum, emit_pop_insn,
13125 emit_swap_insn, swap_to_top, move_for_stack_reg,
13126 subst_stack_regs_pat, subst_asm_stack_regs, change_stack,
13127 compensate_edge, convert_regs_1): Likewise.
13128 * regclass.c (init_reg_sets, init_reg_sets_1,
13129 memory_move_secondary_cost): Likewise.
13130 * regrename.c (note_sets, clear_dead_regs, scan_rtx_reg, scan_rtx):
13131 Likewise.
13132 * reload.c (push_secondary_reload, find_valid_class, push_reload,
13133 operands_match_p, decompose, immune_p, find_reloads,
13134 find_reloads_toplev, find_reloads_address_1, subst_reloads,
13135 copy_replacements, refers_to_regno_for_reload_p,
13136 reg_overlap_mentioned_for_reload_p): Likewise.
13137 * reload1.c (compute_use_by_pseudos, replace_pseudos_in, reload,
13138 count_pseudo, find_reg, eliminate_regs, eliminate_regs_in_insn,
13139 verify_initial_elim_offsets, finish_spills, clear_reload_reg_in_use,
13140 reload_reg_free_p, reload_reg_reaches_end_p, reloads_conflict,
13141 choose_reload_regs, merge_assigned_reloads, emit_input_reload_insns,
13142 do_output_reload, fixup_abnormal_edges): Likewise.
13143 * reorg.c (stop_search_p, emit_delay_sequence, get_jump_flags,
13144 fill_slots_from_thread, relax_delay_slots): Likewise.
13145 * resource.c (mark_referenced_resources, mark_set_resources):
13146 Likewise.
13147 * rtl.c (copy_rtx, rtx_equal_p): Likewise.
13148 * rtlanal.c (insn_dependent_p, reg_overlap_mentioned_p,
13149 dead_or_set_p, find_reg_fusage, remove_note, replace_rtx,
13150 subreg_lsb_1, subreg_regno_offset, subreg_offset_representable_p,
13151 find_first_parameter_load, can_hoist_insn_p, hoist_update_store,
13152 hoist_insn_after, hoist_insn_to_edge, nonzero_bits1): Likewise.
13153 * rtlhooks.c (gen_lowpart_general): Likewise.
13154 * sbitmap.c (sbitmap_difference): Likewise.
13155 * sched-deps.c (add_dependence, sched_analyze_1, sched_analyze_2,
13156 sched_analyze, add_forward_dependence): Likewise.
13157 * sched-ebb.c (fix_basic_block_boundaries, schedule_ebb): Likewise.
13158 * sched-rgn.c (debug_regions, compute_trg_info, schedule_region,
13159 schedule_insns): Likewise.
13160 * sched-vis.c (print_pattern): Likewise.
13161 * sdbout.c (sdbout_symbol, sdbout_toplevel_data): Likewise.
13162 * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
13163 simplify_const_relational_operation, simplify_ternary_operation,
13164 simplify_immed_subreg, simplify_subreg, simplify_gen_subreg):
13165 Likewise.
13166 * sreal.c (copy, sreal_sub, sreal_div): Likewise.
13167 * stmt.c (force_label_rtx, expand_goto, expand_asm_operands,
13168 resolve_operand_name_1, expand_return, expand_decl,
13169 expand_anon_union_decl, emit_case_bit_tests, expand_case): Likewise.
13170 * stor-layout.c (put_pending_size, smallest_mode_for_size,
13171 int_mode_for_mode, layout_decl, finish_builtin_struct, layout_type,
13172 set_sizetype, get_mode_bounds): Likewise.
13173
13174 2004-09-09 Zack Weinberg <zack@codesourcery.com>
13175
13176 * defaults.h (MULTIPLE_SYMBOL_SPACES): Provide default.
13177 * config/arm/pecoff.h, config/i386/beos-elf.h
13178 * config/i386/cygming.h, config/i386/i386-interix.h:
13179 Define MULTIPLE_SYMBOL_SPACES to 1, not nothing. Remove
13180 comment cloned from manual.
13181 * doc/tm.texi: Update description of MULTIPLE_SYMBOL_SPACES.
13182
13183 2004-09-09 Frank Ch. Eigler <fche@redhat.com>
13184
13185 * builtins.c (build_va_arg_indirect_ref): New function.
13186 (std_gimplify_va_arg_expr): Call it instead of mudflap check and
13187 build_fold_indirect_ref.
13188 * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
13189 * config/ia64/ia64.c (ia64_gimplify_va_arg): Ditto.
13190 * tree.h: Declare new function.
13191
13192 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
13193
13194 * cgraphunit.c (cgraph_mark_functions_to_output): Renable node
13195 dumping for development builds.
13196 * emit-rtl.c (verify_rtx_sharing): Give verbose failure for
13197 development builds only.
13198 * genattrtab.c (write_eligible_delay): Fix typo in previous
13199 commit.
13200 * tree.c (iterative_hash_expr): Replace gcc_unreachable with
13201 gcc_assert.
13202
13203 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
13204
13205 * gcse.c (INSN_CUID, insert_set_in_table, find_avail_set,
13206 cprop_insn, do_local_cprop, local_cprop_pass, find_bypass_set,
13207 process_insert_insn, insert_insn_end_bb, pre_insert_copy_insn,
13208 hoist_code, extract_mentioned_regs_helper, compute_store_table,
13209 insert_store): Use gcc_assert and gcc_unreachable.
13210 * ggc-common.c (ggc_splay_alloc, ggc_splay_dont_free,
13211 gt_pch_note_object, gt_pch_note_reorder, relocate_ptrs,
13212 ggc_record_overhead): Likewise.
13213 * ggc-page.c (alloc_page, free_page, ggc_set_mark, ggc_marked_p,
13214 init_ggc, ggc_push_context, ggc_recalculate_in_use_p,
13215 ggc_pop_context, clear_marks, validate_free_objects,
13216 ggc_pch_read): Likewise.
13217 * ggc-zone.c (ggc_allocated_p, free_chunk, ggc_set_mark,
13218 ggc_marked_p, ggc_get_size, init_ggc, destroy_ggc_zone,
13219 ggc_push_context, check_cookies, ggc_collect,
13220 ggc_print_statistics): Likewise.
13221 * gimple-low.c (lower_function_body, lower_stmt,
13222 lower_bind_expr): Likewise.
13223 * gimplify.c (gimple_tree_eq, push_gimplify_context,
13224 pop_gimplify_context, gimple_pop_condition, create_tmp_var,
13225 declare_tmp_vars, gimple_add_tmp_var, annotate_all_with_locus,
13226 mostly_copy_tree_r, gimplify_return_expr, gimplify_switch_expr,
13227 gimplify_case_label_expr, gimplify_exit_block_expr,
13228 canonicalize_component_ref, gimplify_compound_lval,
13229 gimplify_self_mod_expr, gimplify_call_expr,
13230 gimplify_init_ctor_eval, gimplify_init_constructor,
13231 gimplify_modify_expr, gimplify_save_expr, gimplify_target_expr,
13232 gimplify_expr, check_pointer_types_r,
13233 force_gimple_operand): Likewise.
13234 * global.c (global_alloc, build_insn_chain): Likewise.
13235 * graph.c (clean_graph_dump_file,
13236 finish_graph_dump_file): Likewise.
13237 gcov-io.c (gcov_open): Use GCOV_CHECK.
13238
13239 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
13240
13241 * config/frv/frv.c (acc_operand, accg_operand): Use REGNO.
13242
13243 2004-09-09 Jan Hubicka <jh@suse.cz>
13244
13245 middle-end/17128
13246 * tree-inline.c (expand_call_inline): Make overactive sanity check
13247 happy.
13248
13249 2004-09-09 Jan Hubicka <jh@suse.cz>
13250
13251 * tree-ssa-loop-ivopts.c (peel_address): Fix abort on
13252 VIEW_CONVERT_EXPR.
13253
13254 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
13255
13256 * Makefile.in (gengtype): Use $(BUILD_ERRORS).
13257 (gengtype.o): Depend on errors.h.
13258 * genattrtab.c (strcmp_check): Use gcc_assert and gcc_unreachable.
13259 (attr_rtx_1, attr_printf, attr_copy_rtx, evaluate_eq_attr,
13260 attr_alt_subset_p, attr_alt_subset_of_compl_p,
13261 attr_alt_intersection, attr_alt_union, optimize_attrs, gen_insn,
13262 write_test_expr, write_attr_value, write_eligible_delay,
13263 make_internal_attr, make_numeric_value): Likewise.
13264 * genautomata.c (regexp_name, get_str_vect,
13265 gen_presence_absence_set, automaton_decl_hash,
13266 automaton_decl_eq_p, insn_decl_hash, insn_decl_eq_p, decl_hash,
13267 decl_eq_p, process_regexp, loop_in_regexp, check_loops_in_regexps,
13268 process_regexp_cycles, reserv_sets_cmp, set_unit_reserv,
13269 test_unit_reserv, it_is_empty_reserv_sets,
13270 reserv_sets_are_intersected, reserv_sets_shift, reserv_sets_or,
13271 reserv_sets_and, output_cycle_reservs, get_free_state,
13272 intersected_state_reservs_p, states_union, remove_arc,
13273 copy_insn_regexp, transform_1, transform_2, transform_3,
13274 regexp_transform_func, store_alt_unit_usage,
13275 check_regexp_units_distribution, process_seq_for_forming_states,
13276 process_alts_for_forming_states, make_automaton,
13277 form_arcs_marked_by_insn, create_composed_state,
13278 set_out_arc_insns_equiv_num, partition_equiv_class,
13279 process_insn_equiv_class, set_insn_equiv_classes,
13280 units_to_automata_heuristic_distr, form_regexp,
13281 longest_path_length, output_dfa_max_issue_rate, add_vect,
13282 out_state_arcs_num, add_vect_el, output_trans_table,
13283 output_state_alts_table, output_dead_lock_vect,
13284 output_max_insn_queue_index_def,
13285 output_min_insn_conflict_delay_func,
13286 output_internal_insn_latency_func, output_print_reservation_func,
13287 output_cpu_unit_reservation_p, output_state_arcs,
13288 make_insn_alts_attr, make_internal_dfa_insn_code_attr,
13289 make_default_insn_latency_attr,
13290 form_important_insn_automata_lists): Likewise.
13291 * genemit.c (gen_exp, output_add_clobbers,
13292 output_added_clobbers_hard_reg_p): Likewise.
13293 * genextract.c (print_path, main): Likewise.
13294 * genflags.c (gen_macro): Likewise.
13295 * gengenrtl.c: Include errors.h
13296 (type_from_format, accessor_from_format): Likewise.
13297 * gengtype.c (get_file_basename, output_mangled_typename,
13298 walk_type, write_types_process_field,
13299 write_types_local_process_field): Likewise.
13300 * genmodes.c (complete_mode): Likewise.
13301 * genopinit.c (gen_insn): Likewise.
13302 * genoutput.c (output_insn_data, check_constraint_len,
13303 constraint_len): Likewise.
13304 * genpreds.c (add_mode_tests):Likewise.
13305 * gen-protos.c (add_hash): Likewise.
13306 * genrecog.c (find_operand, find_matching_operand,
13307 validate_pattern, add_to_sequence, maybe_both_true,
13308 nodes_identical_1, merge_trees, write_switch, write_cond,
13309 write_action, is_unconditional, make_insn_sequence,
13310 debug_decision_2): Likewise.
13311 * gensupport.c (is_predicable, collect_insn_data,
13312 alter_predicate_for_insn, maybe_eval_c_test): Likewise.
13313
13314 2004-09-09 Jan Hubicka <jh@suse.cz>
13315
13316 * basic-block.h (guess_outgoing_edge_probabilities): Declare.
13317 * cfgbuild.c (compute_outgoing_frequencies): When probability is
13318 missing, guess it.
13319 (find_many_sub_basic_blocks): Do update profile only when it is
13320 present.
13321 * predict.c (set_even_probabilities): Break out from ...
13322 (combine_predictions_for_insn): ... here; deal with
13323 !can_predict_insn_p insns.
13324 (combine_predictions_for_bb): Use set_even_probabilities.
13325 (bb_estimate_probability_locally): Break out from ....
13326 (estimate_probability): ... here.
13327 (guess_outgoing_edge_probabilities): New entry point.
13328
13329 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
13330
13331 * gcc.c (add_sysrooted_prefix, execute, do_self_spec, do_spec_1,
13332 handle_braces, process_brace_body, main, used_arg,
13333 set_multilib_dir, print_multilib_info): Use fatal, not abort.
13334
13335 * tree-nested.c (create_tmp_var_for): Correct missinverted assert.
13336
13337 * tree-outof-ssa.c (free_temp_expr_table): Add missed assert.
13338 * tree-ssa-ccp.c (set_lattice_value): Correct missapplied de
13339 Morgan's theorem in last checkin.
13340
13341 2004-09-09 Giovanni Bajo <giovannibajo@gcc.gnu.org>
13342 Nathan Sidwell <nathan@codesourcery.com>
13343
13344 * targhooks.c (default_unwind_emit, default_scalar_mode_supported_p):
13345 Use gcc_assert, gcc_unreachable & internal_error instead of abort.
13346 * timevar.c (timevar_push, timevar_pop, timevar_start,
13347 timevar_stop): Likewise.
13348 * toplev.c (default_pch_valid_p): Likewise.
13349 * tracer.c (tail_duplicate): Likewise.
13350 * tree-alias-common.c (get_alias_var_decl,
13351 get_values_from_constructor, create_alias_var, delete_alias_vars,
13352 empty_points_to_set, same_points_to_set, ptr_may_alias_var):
13353 Likewise.
13354 * tree.c (tree_size, make_node_stat, copy_node_stat,
13355 build_int_cst_wide, integer_all_onesp, list_length, chainon,
13356 tree_node_structure, type_contains_placeholder_p, substitute_in_expr,
13357 substitute_placeholder_in_expr, tabilize_reference_1, build0_stat,
13358 build1_stat, build2_stat, build3_stat, build4_stat, is_attribute_p,
13359 lookup_attribute, type_hash_canon, host_integerp, iterative_hash_expr,
13360 build_method_type_directly, decl_type_context, get_callee_fndecl,
13361 get_set_constructor_bits, build_vector_type_for_mode, int_cst_value,
13362 tree_fold_gcd): Likewise.
13363 * tree-cfg.c (create_bb, make_ctrl_stmt_edges, make_exit_edges,
13364 make_cond_expr_edges, group_case_labels, tree_merge_blocks,
13365 cleanup_control_expr_graph, find_taken_edge,
13366 find_taken_edge_switch_expr, phi_alternatives_equal,
13367 is_ctrl_altering_stmt, disband_implicit_edges, set_bb_for_stmt,
13368 stmt_for_bsi, tree_find_edge_insert_loc, bsi_insert_on_edge_immediate,
13369 tree_split_edge, tree_verify_flow_info, thread_jumps,
13370 tree_redirect_edge_and_branch, tree_flow_call_edges_add): Likewise.
13371 * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
13372 chrec_fold_multiply_poly_poly): Likewise.
13373 * tree-complex.c (extract_component, expand_complex_division,
13374 expand_complex_comparison, expand_complex_operations_1,
13375 build_replicated_const, expand_vector_operations_1): Likewise.
13376 * tree-data-ref.c (tree_fold_bezout, build_classic_dist_vector,
13377 build_classic_dir_vector): Likewise.
13378 * tree-dfa.c (compute_immediate_uses_for_phi,
13379 compute_immediate_uses_for_stmt, create_var_ann, create_stmt_ann,
13380 create_tree_ann, collect_dfa_stats, get_virtual_var): Likewise.
13381 * tree-dump.c (dequeue_and_dump): Likewise.
13382 * tree-eh.c (record_stmt_eh_region, add_stmt_to_eh_region,
13383 record_in_finally_tree, replace_goto_queue_1,
13384 maybe_record_in_goto_queue, verify_norecord_switch_expr,
13385 do_return_redirection): Likewise.
13386 * tree-if-conv.c (tree_if_convert_stmt, tree_if_convert_cond_expr,
13387 add_to_dst_predicate_list, find_phi_replacement_condition,
13388 replace_phi_with_cond_modify_expr, get_loop_body_in_if_conv_order):
13389 Likewise.
13390 * tree-inline.c (remap_decl, remap_type, remap_decls, copy_body_r,
13391 initialize_inlined_parameters, declare_return_variable,
13392 estimate_num_insns_1, expand_call_inline, expand_calls_inline,
13393 optimize_inline_calls, copy_tree_r): Likewise.
13394 * tree-into-ssa.c (rewrite_initialize_block_local_data, rewrite_stmt,
13395 ssa_rewrite_stmt, rewrite_into_ssa): Likewise.
13396 * tree-iterator.c (alloc_stmt_list, tsi_link_before, tsi_link_after,
13397 tsi_split_statement_list_after, tsi_split_statement_list_before):
13398 Likewise.
13399 * tree-mudflap.c (mf_varname_tree): Likewise.
13400 * tree-nested.c (create_tmp_var_for, lookup_field_for_decl,
13401 lookup_tramp_for_decl, convert_all_function_calls): Likewise.
13402 * tree-optimize.c (tree_rest_of_compilation): Likewise.
13403 * tree-outof-ssa.c (create_temp, eliminate_build, eliminate_phi,
13404 coalesce_abnormal_edges, coalesce_ssa_name, eliminate_virtual_phis,
13405 free_temp_expr_table, add_dependance, finish_expr, rewrite_trees):
13406 Likewise.
13407 * tree-phinodes.c (resize_phi_node, add_phi_arg,
13408 remove_all_phi_nodes_for): Likewise.
13409 * tree-pretty-print.c (op_prio, print_call_name): Likewise.
13410 * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
13411 tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Likewise.
13412 * tree-sra.c (type_can_instantiate_all_elements, sra_hash_tree,
13413 sra_elt_eq, sra_walk_expr, instantiate_missing_elements,
13414 generate_one_element_ref, generate_element_copy,
13415 generate_element_zero, scalarize_copy, scalarize_init,
13416 scalarize_ldst): Likewise.
13417 * tree-ssa-alias.c (delete_alias_info, group_aliases, may_alias_p,
13418 add_may_alias, add_pointed_to_expr, add_pointed_to_var,
13419 collect_points_to_info_r, get_tmt_for, get_ptr_info): Likewise.
13420 * tree-ssa.c (walk_use_def_chains, check_phi_redundancy): Likewise.
13421 * tree-ssa-ccp.c (dump_lattice_value, get_default_value, get_value,
13422 set_lattice_value, likely_value, ccp_visit_phi_node, visit_assignment,
13423 widen_bitfield, ccp_fold_builtin): Likewise.
13424 * tree-ssa-copy.c (may_propagate_copy, merge_alias_info,
13425 replace_exp_1, propagate_tree_value): Likewise.
13426 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
13427 * tree-ssa-dce.c (set_control_dependence_map_bit,
13428 find_control_dependence, find_pdom, mark_operand_necessary,
13429 mark_stmt_if_obviously_necessary,
13430 mark_control_dependent_edges_necessary, remove_dead_stmt): Likewise.
13431 * tree-ssa-dom.c (dom_opt_initialize_block_local_data,
13432 simplify_switch_and_lookup_avail_expr, cprop_into_successor_phis,
13433 eliminate_redundant_computations, avail_expr_eq): Likewise.
13434 * tree-ssa-dse.c (fix_stmt_v_may_defs): Likewise.
13435 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
13436 duplicate_blocks): Likewise.
13437 * tree-ssa-loop-im.c (for_each_index, set_level,
13438 is_call_clobbered_ref): Likewise.
13439 * tree-ssa-loop-ivopts.c (dump_use, divide, stmt_after_ip_normal_pos,
13440 stmt_after_increment, set_iv, contains_abnormal_ssa_name_p,
13441 find_interesting_uses_outer_or_nonlin, add_derived_ivs_candidates,
13442 peel_address, ptr_difference_cost, may_replace_final_value,
13443 determine_use_iv_cost, rewrite_use_nonlinear_expr, rewrite_use_outer,
13444 rewrite_use, rewrite_uses): Likewise.
13445 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
13446 check_loop_closed_ssa_use): Likewise.
13447 * tree-ssanames.c (make_ssa_name): Likewise.
13448 * tree-ssa-operands.c (finalize_ssa_defs, finalize_ssa_uses,
13449 finalize_ssa_v_must_defs, finalize_ssa_stmt_operands,
13450 get_stmt_operands, get_expr_operands, get_asm_expr_operands,
13451 get_indirect_ref_operands, add_stmt_operand): Likewise.
13452 * tree-ssa-pre.c (value_exists_in_set_bitmap,
13453 value_remove_from_set_bitmap, bitmap_insert_into_set, insert_into_set,
13454 phi_translate, valid_in_set, compute_antic,
13455 find_or_generate_expression, create_expression_by_pieces, insert_aux,
13456 create_value_expr_from, eliminate): Likewise.
13457 * tree-ssa-propagate.c (cfg_blocks_get): Likewise.
13458 * tree-ssa-threadupdate.c (remove_last_stmt_and_useless_edges):
13459 Likewise.
13460 * tree-tailcall.c (independent_of_stmt_p, adjust_return_value,
13461 eliminate_tail_call): Likewise.
13462 * tree-vectorizer.c (vect_create_index_for_array_ref,
13463 vect_align_data_ref, vect_create_data_ref,
13464 vect_create_destination_var, vect_get_vec_def_for_operand,
13465 vect_finish_stmt_generation, vect_transform_stmt,
13466 vect_transform_loop_bound, vect_transform_loop,
13467 vect_analyze_operations): Likewise.
13468 * tree-vn.c (vn_compute, set_value_handle, get_value_handle):
13469 Likewise.
13470 * tree-flow-inline.h (var_ann, get_var_ann, get_def_from_ptr,
13471 get_use_op_ptr, immediate_use, phi_ssa_name_p, bsi_start,
13472 bsi_after_labels, bsi_last): Likewise.
13473 * tree-ssa-live.c (var_union, change_partition_var,
13474 create_ssa_var_map, calculate_live_on_entry, root_var_init,
13475 type_var_init, add_coalesce, sort_coalesce_list, pop_best_coalesce):
13476 Likewise.
13477 * tree-ssa-live.h (partition_is_global, live_entry_blocks,
13478 tpa_find_tree): Likewise.
13479 (register_ssa_partition_check): Declare.
13480 (register_ssa_partition): use it.
13481 * tree-ssa-live.c: Include errors.h.
13482 (register_ssa_partition_check): New.
13483 * tree-ssa-operands.c: Include errors.h.
13484 * Makefile.in (tree-ssa-operands.o): Depend on errors.h.
13485
13486 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
13487 Catherine Moore <clm@redhat.com>
13488
13489 * config/frv/frv-protos.h (FRV_CPU_FR550, FRV_CPU_FR450)
13490 (FRV_CPU_FR405): New processor enums.
13491 (frv_issue_rate, frv_acc_group): Declare.
13492 * config/frv/frv.h (CPP_SPEC, CPP_FRV_SPEC, CPP_FR500_SPEC): Delete.
13493 (CPP_FR400_SPEC, CPP_SIMPLE_SPEC): Delete.
13494 (MASK_DEFAULT_FR550, MASK_DEFAULT_FR450): New macros.
13495 (SUBTARGET_EXTRA_SPECS, EXTRA_SPECS, CPP_CPU_DEFAULT_SPEC): Delete.
13496 (TARGET_CPU_CPP_BUILTINS): Define the macros that were previously
13497 handled by CPP_SPEC.
13498 (MASK_LONG_CALLS, TARGET_LONG_CALLS): New macros.
13499 (MASK_ALIGN_LABELS, TARGET_ALIGN_LABELS): New macros.
13500 (ACC_MASK): New macro.
13501 (TARGET_MEDIA_REV2): Include FRV_CPU_{FR405,FR450,FR550}.
13502 (TARGET_MEDIA_FR450): New macro.
13503 (TARGET_FR500_FR550_BUILTINS, TARGET_FR405_BUILTINS): New macros.
13504 (TARGET_SWITCHES): Add -m{no-,}align-labels and -m{no-,}long-calls.
13505 (LABEL_ALIGN_AFTER_BARRIER): Define.
13506 (ACC_LAST, ACCG_LAST): Add four new accumulator registers.
13507 (IACC_FIRST, IACC_LAST): New pair of SPRs.
13508 (ACCG_FIRST, AP_FIRST, SPR_FIRST, SPR_LAST): Adjust accordingly.
13509 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
13510 (REGISTER_NAMES): Add entries for new registers.
13511 (REG_CLASS_CONTENTS): Update for new register ranges.
13512 (EXTRA_CONSTRAINT_FOR_S): Redefine in terms of call_operand.
13513 (ISSUE_RATE, CLEAR_VLIW_START, SET_VLIW_START): Delete.
13514 (PACKING_FLAG_USED_P): Delete.
13515 (FRV_BUILTIN_MQLCLRHS, FRV_BUILTIN_MQLMTHS, FRV_BUILTIN_MQSLLHI)
13516 (FRV_BUILTIN_MQSRAHI, FRV_BUILTIN_SMUL, FRV_BUILTIN_UMUL)
13517 (FRV_BUILTIN_PREFETCH0, FRV_BUILTIN_PREFETCH, FRV_BUILTIN_SMASS)
13518 (FRV_BUILTIN_SMSSS, FRV_BUILTIN_SMU, FRV_BUILTIN_SCUTSS)
13519 (FRV_BUILTIN_ADDSS, FRV_BUILTIN_SUBSS, FRV_BUILTIN_SLASS)
13520 (FRV_BUILTIN_IACCread{l,ll}, FRV_BUILTIN_IACCset{ll,l})
13521 (FRV_BUILTIN_SCAN): New members of frv_builtin_enum.
13522 (FRV_BUILTIN_FIRST_NONMEDIA): New macro.
13523 (CPU_UNITS_QUERY): Define to 1.
13524 * config/frv/frv.c: Include gt-frv.h
13525 (NUM_NOP_PATTERNS, NTH_UNIT, UNIT_NUMBER, PACKING_FLAG_P): New macros.
13526 (SET_PACKING_FLAG, CLEAR_PACKING_FLAG, FOR_EACH_REGNO): New macros.
13527 (frv_insn_group): New enumeration.
13528 (frv_unit_names, frv_unit_groups, frv_unit_codes): New variables.
13529 (frv_type_to_unit, frv_nops, frv_num_nops): New variables.
13530 (REGSTATE_DEAD, REGSTATE_LIVE, REGSTATE_UNUSED, REGSTATE_MASK)
13531 (REGSTATE_CONDJUMP): Delete. Shuffle other numbers to cover the
13532 gap left by REGSTATE_LIVE.
13533 (regstate_t): New typedef.
13534 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13535 (frv_default_flags_for_cpu): Handle FRV_CPU_{FR550,FR450,FR405}.
13536 (frv_override_options): Check for -mcpu={fr550,fr450,fr405}.
13537 Initialize frv_unit_codes[] and frv_type_to_unit[].
13538 (frv_conditional_register_usage): Remove redundant fixing of
13539 accumulator registers.
13540 (frv_insn_packing_flag): Update specification.
13541 (frv_function_prologue): Don't set frv_insn_packing_flag here.
13542 Zero out frv_nops[].
13543 (frv_expand_epilogue): Remove comments about the no-longer-present
13544 SIBCALL_P argument.
13545 (frv_asm_output_mi_thunk): Check frv_issue_rate() rather than
13546 PACKING_FLAG_USED_P() when deciding whether to pack instructions.
13547 (frv_asm_output_opcode, frv_final_prescan_insn): Simplify in light
13548 of the new meaning of frv_insn_packing_flag. Emit an mnop.p if
13549 packing is disabled and if INSN can only issue to M1.
13550 (call_operand): Check TARGET_LONG_CALLS.
13551 (acc_operand, even_acc_operand, quad_acc_operand)
13552 (accg_operand): Simplify. Don't accept pseudo registers.
13553 (output_move_single): Handle SPR<-zero moves.
13554 (frv_issue_rate): Make non-static. Handle FRV_CPU_{FR550,FR450,FR405}.
13555 (frv_registers_update, frv_registers_used_p): Delete.
13556 (frv_registers_set_p): Delete.
13557 (frv_acc_group_1, frv_acc_group, frv_insn_unit): New functions.
13558 (frv_issues_to_branch_unit_p): New function.
13559 (frv_packet): New structure.
13560 (frv_cond_flags, frv_regstate_conflict_p): New functions.
13561 (frv_registers_conflict_p_1, frv_registers_conflict_p): New functions.
13562 (frv_registers_update_1, frv_registers_update): New functions.
13563 (frv_start_packet, frv_start_packet_block, frv_finish_packet)
13564 (frv_pack_insn_p, frv_add_insn_to_packet, frv_insert_nop_in_packet)
13565 (frv_for_each_packet, frv_sort_insn_group_1, frv_compare_insns)
13566 (frv_sort_insn_group, frv_reorder_packet): New functions.
13567 (frv_pack_insns): Use frv_reorder_packet.
13568 (frv_packet_address): New variable.
13569 (frv_fill_unused_units, frv_align_label, frv_reorg_packet)
13570 (frv_register_nop, frv_reorg): New functions.
13571 (bdesc_1arg): Add __SCUTSS.
13572 (bdesc_2arg): Add __MQLCLRHS, __MQLMTHS, __SMUL, __UMUL, __ADDSS,
13573 __SUBSS, __SLASS and __SCAN.
13574 (bdesc_2argimm): Add __MQSLLHI and __MQSRAHI.
13575 (bdesc_int_void2arg, bdesc_prefetches): New arrays.
13576 (frv_init_builtins): Register the above builtins.
13577 (frv_int_to_acc): Use ACC_MASK to check for valid accumulator
13578 registers. Turn the referenced accumulators into global registers.
13579 (frv_read_iacc_argument): New function.
13580 (frv_expand_int_void2arg, frv_expand_prefetches): New functions.
13581 (frv_split_iacc_move): New function.
13582 (frv_expand_builtin): Handle the new builtins.
13583 * config/frv/frv.md: Replace old schedulers with new order-independent
13584 ones. Add schedulers for the FR405, FR450 and FR550. Describe new
13585 packing algorithm.
13586 (cpu): Add fr550, fr450 and fr405.
13587 (type): Add macc, scan, cut, fnop, fscmp, fdcmp, mnop, mqlimh and
13588 mqshift. Replace fmas with fsmadd and fmad with fdmadd. Delete m7.
13589 (*muladd[sd]f4, *mulsub[sd]f4): Fix types.
13590 (*cmp[sd]f_cc_fp): Use new f[sd]cmp types.
13591 (fnop, mnop): New patterns.
13592 (UNSPEC_MQLCLRHS, UNSPEC_MQLMTHS, UNSPEC_MQSLLHI, UNSPEC_MQSRAHI):
13593 New constants.
13594 (mexpdhw, *cond_exec_mexpdhw): Fix destination operands.
13595 (mclracca8): Use ACC_MASK to determine the upper set of accumulator
13596 registers.
13597 (mqlclrhs, mqlmths, mqsllhi, mqsrahi): New patterns.
13598 (UNSPEC_SMUL, UNSPEC_UMUL, UNSPEC_SMU, UNSPEC_ADDSS, UNSPEC_SUBSS)
13599 (UNSPEC_SLASS, UNSPEC_SCAN, UNSPEC_INTSS, UNSPEC_SCUTSS)
13600 (UNSPEC_PREFETCH0, UNSPEC_PREFETCH, UNSPEC_IACCreadll)
13601 (UNSPEC_IACCreadl, UNSPEC_IACCsetll, UNSPEC_IACCsetl, UNSPEC_SMASS)
13602 (UNSPEC_SMSSS, UNSPEC_IMUL, IACC0_REG): New constants.
13603 (smul, umul, smass, smsss, smu, addss, subss, slass, scan, scutss)
13604 (frv_prefetch0, frv_prefetch): New patterns.
13605 * config/frv/t-frv (MULTILIB_OPTIONS): Remove -mcpu=frv and
13606 -mcpu=simple. Add -mcpu=fr550.
13607 (MULTILIB_DIRNAMES): Update accordingly.
13608 (MULTILIB_MATCHES): Use the fr400 multilibs for -mcpu=fr405 and
13609 -mcpu=fr450.
13610 * doc/invoke.texi: Document the new -mcpu={fr550,fr450,fr405},
13611 -mlong-calls and -malign-labels options for FR-V.
13612
13613 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
13614
13615 PR c/8420
13616 * c-tree.h (struct c_declspecs): New.
13617 (struct c_declarator, struct c_type_name, struct c_parm): Update
13618 element types.
13619 (build_array_declarator, grokfield, shadow_tag, shadow_tag_warned,
13620 start_function, start_decl, build_c_parm,
13621 make_pointer_declarator): Update prototypes.
13622 (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
13623 declspecs_add_scspec, declspecs_add_attrs): New.
13624 (split_specs_attrs): Remove.
13625 * c-parse.in (%union): Add dsptype.
13626 (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
13627 declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
13628 declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
13629 declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
13630 declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
13631 declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
13632 declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
13633 declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea, declspecs_ts,
13634 declspecs_nots, declspecs_ts_nosa, declspecs_nots_nosa,
13635 declspecs_nosc_ts, declspecs_nosc_nots, declspecs_nosc, declspecs,
13636 maybe_type_quals_attrs): Change to dsptype.
13637 (struct c_declspec_stack): New.
13638 (current_declspecs, declspec_stack): Change type.
13639 (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): Update to new
13640 structures.
13641 (extdefs): Likewise.
13642 (setspecs): Likewise.
13643 (fndef): Use current_declspecs for empty declspecs list.
13644 (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
13645 declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
13646 declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
13647 declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
13648 declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
13649 declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
13650 declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
13651 declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea): Update to new
13652 structures and helper functions. Update comments.
13653 (typespec_nonattr): Correct comment.
13654 (maybe_type_quals_attrs, typename): Update to new structures.
13655 * c-decl.c (grokdeclarator, build_array_declarator, grokfield,
13656 shadow_tag, shadow_tag_warned, start_function, start_decl,
13657 build_c_parm, make_pointer_declarator,
13658 set_array_declarator_inner, groktypename): Update to new
13659 structures.
13660 (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
13661 declspecs_add_scspec, declspecs_add_attrs): New.
13662 (split_specs_attrs): Remove.
13663 (shadow_tag_warned): Make warning for useless type names a
13664 pedwarn. Give hard error for long, short, signed, unsigned or
13665 _Complex used with struct, union or enum in empty declaration.
13666 Make found_tag a bool.
13667 (grokdeclarator): Remove checks now done at parse time.
13668
13669 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
13670
13671 * c-tree.h (enum c_declarator_kind, struct c_arg_info, struct
13672 c_declarator, struct c_type_name, struct c_parm): New.
13673 (build_array_declarator, set_array_declarator_inner,
13674 get_parm_info, grokfield, groktypename, grokparm, push_parm_decl,
13675 start_function, start_decl, build_c_parm, build_attrs_declarator,
13676 build_function_declarator, make_pointer_declarator, c_cast_expr,
13677 store_parm_decls_newstyle, c_expr_sizeof_type): Update prototypes.
13678 (build_id_declarator): New.
13679 * c-typeck.c (c_cast_expr, c_expr_sizeof_type): Update to new
13680 structures.
13681 * c-decl.c (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES,
13682 ARG_INFO_OTHERS): Remove.
13683 (build_id_declarator): New.
13684 (build_array_declarator, set_array_declarator_inner, groktypename,
13685 start_decl, grokparm, push_parm_decl, grokparms, get_parm_info,
13686 grokfield, start_function, store_parm_decls_newstyle,
13687 store_parm_decls_oldstyle, store_parm_decls,
13688 build_c_parm, build_attrs_declarator, build_function_declarator,
13689 make_pointer_declarator, grokdeclarator): Update to new
13690 structures.
13691 * c-parse.in (%union): Add arginfotype, dtrtype, typenametype and
13692 parmtype.
13693 (declarator, notype_declarator, after_type_declarator,
13694 parm_declarator, parm_declarator_starttypename,
13695 parm_declarator_nostarttypename, array_declarator, typename,
13696 absdcl, absdcl1, absdcl1_ea, absdcl1_noea, direct_absdcl1,
13697 absdcl_maybe_attribute, parm, firstparm, parms, parmlist,
13698 parmlist_1, parmlist_2, parmlist_or_identifiers,
13699 parmlist_or_identifiers_1): Use these types.
13700 (primary, after_type_declarator, parm_declarator_starttypename,
13701 notype_declarator, component_decl, component_declarator,
13702 component_notype_declarator, typename, absdcl,
13703 absdcl_maybe_attribute, absdcl1_ea, direct_absdcl1, parmlist_1,
13704 parmlist_2, parmlist_or_identifiers_1): Update to new structures.
13705
13706 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
13707
13708 * c-tree.h (C_DECL_USED, parser_obstack, in_alignof, in_sizeof,
13709 in_typeof, record_maybe_used_decl, pop_maybe_used,
13710 c_expr_sizeof_expr, c_expr_sizeof_type): New.
13711 * c-decl.c (parser_obstack): New.
13712 (c_init_decl_processing): Initialize parser_obstack.
13713 (c_write_global_declarations_1): Check for used but undefined
13714 static functions.
13715 * c-parse.in (%union): Add otype.
13716 (save_obstack_position): New.
13717 (extdefs): Use it.
13718 (unary_expr): Update in_sizeof and in_alignof. Use
13719 c_expr_sizeof_expr and c_expr_sizeof_type.
13720 (sizeof): Update in_sizeof.
13721 (alignof): Update in_alignof.
13722 (typeof): Update in_typeof.
13723 (typespec_nonreserved_nonattr): Call pop_maybe_used.
13724 * c-typeck.c (in_alignof, in_sizeof, in_typeof, struct
13725 maybe_used_decl, maybe_used_decls, record_maybe_used_decl,
13726 pop_maybe_used, c_expr_sizeof_expr, c_expr_sizeof_type): New.
13727 (build_external_ref): Set C_DECL_USED or call
13728 record_maybe_used_decl if appropriate.
13729 * toplev.c (check_global_declarations): Check TREE_NO_WARNING.
13730
13731 2004-09-08 Eric Christopher <echristo@redhat.com>
13732
13733 * builtins.c: Fix prototype for fold_builtin_atan.
13734
13735 2004-09-08 Eric Christopher <echristo@redhat.com>
13736
13737 * builtins.c (fold_builtin_strlen, fold_builtin_sqrt, fold_builtin_cbrt,
13738 fold_builtin_pow, fold_builtin_sin, fold_builtin_cos, fold_builtin_tan,
13739 fold_builtin_atan): New functions. Migrate function bodies...
13740 (fold_builtin_1): ... from here.
13741
13742 2004-09-09 Alan Modra <amodra@bigpond.net.au>
13743
13744 * config/rs6000/rs6000.c (rs6000_stack_info): Correct alignment of
13745 save_size.
13746
13747 2004-09-08 David Edelsohn <edelsohn@gnu.org>
13748
13749 * config/rs6000/power4.md (power4-lmul): du4 feeds iu1.
13750 * config/rs6000/power5.md (power5-lmul): Same.
13751
13752 2004-09-08 Richard Henderson <rth@redhat.com>
13753
13754 PR rtl-opt/17186
13755 * function.c (expand_function_end): Have fall-off-the-end
13756 return path jump around return register setup.
13757
13758 2004-09-08 Eric Botcazou <ebotcazou@libertysurf.fr>
13759
13760 * config/sparc/sparc.c (sparc_indent_opcode): New variable.
13761 (output_return): Do not test for the presence of the 'unimp' insn.
13762 Use 'current_function_uses_only_leaf_regs' and 'final_sequence'
13763 as predicates instead of custom ones. Return raw strings when
13764 possible.
13765 (output_sibcall): Likewise. Concatenate strings.
13766 (output_ubranch): Remove kludge for TurboSPARC.
13767 (output_cbranch): Remove 'noop' parameter. Do not output 'nop'.
13768 (output_v9branch): Likewise.
13769 (print_operand): Use 'final_sequence' instead of 'dbr_sequence_length'.
13770 <#>: Set sparc_indent_opcode if the delay slot is filled.
13771 <(>: Likewise.
13772 <)>: New operand to emit the displacement from the saved PC on return.
13773 <@>: Remove.
13774 * config/sparc/sparc.h (sparc_indent_opcode): Declare it.
13775 (ASM_OUTPUT_OPCODE): New macro.
13776 (PRINT_OPERAND_PUNCT_VALID_P): Remove '^' and add ')'.
13777 * config/sparc/sparc.md (normal_branch, inverted_branch,
13778 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
13779 inverted_fpe_branch): Adjust call to output_cbranch.
13780 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust
13781 call to output_v9branch.
13782 * config/sparc/sparc-protos.h (output_cbranch): Adjust.
13783 (output_v9branch): Likewise.
13784
13785 2004-09-08 Devang Patel <dpatel@apple.com>
13786
13787 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -segaddr,
13788 -segs_read_only_addr and -segs_read_write_addr.
13789 (WORD_SWITCH_TAKES_ARG): Same.
13790 (LINK_SPEC): Same.
13791 * doc/invoke.texi: Document -segaddr, -segs_read_only_addr and
13792 -segs_read_write_addr.
13793
13794 2004-09-08 Richard Henderson <rth@redhat.com>
13795
13796 * function.c (reference_callee_copied): New.
13797 (assign_parm_setup_reg): Use it.
13798 * calls.c (initialize_argument_information): Likewise.
13799 (emit_library_call_value_1): Likewise.
13800 * function.h (reference_callee_copied): Declare.
13801
13802 * target.h (struct gcc_target): Add callee_copies.
13803 * target-def.h (TARGET_CALLEE_COPIES): New.
13804 (TARGET_PASS_BY_REFERENCE): Update default.
13805 * expr.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13806 * targhooks.c (hook_callee_copies_named): New.
13807 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Rename from
13808 hook_pass_by_reference_false.
13809 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): New.
13810 * targhooks.h: Update decls.
13811 * config/arc/arc.c (TARGET_CALLEE_COPIES): New.
13812 * config/arc/arc.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13813 * config/frv/frv-protos.h (frv_function_arg_callee_copies): Remove.
13814 * config/frv/frv.c (frv_function_arg_callee_copies): Remove.
13815 * config/frv/frv.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13816 * config/iq2000/iq2000.c (TARGET_CALLEE_COPIES): New.
13817 * config/iq2000/iq2000.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13818 * config/m68hc11/m68hc11.c (TARGET_CALLEE_COPIES): New.
13819 * config/m68hc11/m68hc11.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13820 * config/mips/mips.c (TARGET_CALLEE_COPIES): New.
13821 (mips_callee_copies): New.
13822 * config/mips/mips.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13823 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): New.
13824 * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13825 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): New.
13826 * config/mn10300/mn10300.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13827 * config/pa/pa.c (TARGET_CALLEE_COPIES): New.
13828 * config/pa/pa.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13829 * config/sh/sh.c (sh_callee_copies): New.
13830 (TARGET_CALLEE_COPIES): New.
13831 * config/sh/sh.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13832 * config/v850/v850.c (TARGET_CALLEE_COPIES): New.
13833 * config/v850/v850.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
13834 * doc/tm.texi (TARGET_CALLEE_COPIES): Replace documentation
13835 for FUNCTION_ARG_CALLEE_COPIES.
13836 * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Update.
13837
13838 2004-09-08 Devang Patel <dpatel@apple.com>
13839
13840 * tree-if-conv.c (find_phi_replacement_condition): Return true
13841 edge block.
13842 (replace_phi_with_cond_modify_expr): Select conditional expr args
13843 based on true edge basic block.
13844
13845 2004-09-08 Jan Hubicka <jh@suse.cz>
13846
13847 * tree-ssa-operands.c (add_stmt_operand): Use V_MUST_DEF even for
13848 variables being alias set.
13849
13850 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
13851
13852 * final.c (shorten_branches, final, get_insn_template,
13853 output_alternate_entry_point, final_scan_insn, alter_subreg,
13854 alter_cond, output_operand, asm_fprintf, final_forward_branch_p,
13855 leaf_renumber_regs_insn): Use gcc_assert and gcc_unreachable.
13856 * fix-header.c (lookup_std_proto): Likewise.
13857 * flow.c (first_insn_after_basic_block_note, verify_wide_reg,
13858 verify_local_live_at_start, update_life_info, mark_reg,
13859 calculate_global_regs_live, allocate_reg_life_data,
13860 init_propagate_block_info, mark_set_regs, flush_reg_cond_reg_1,
13861 ior_reg_cond, not_reg_cond, and_reg_cond, elim_reg_cond,
13862 attempt_auto_inc, mark_used_reg, mark_used_regs): Likewise.
13863 * fold-const.c (force_fit_type, div_and_round_double,
13864 may_negate_without_overflow_p, int_const_binop, const_binop,
13865 size_binop, size_diffop, fold_convert_const, fold_convert,
13866 invert_tree_comparison, swap_tree_comparison,
13867 comparison_to_compcode, compcode_to_comparison, invert_truthvalue,
13868 range_binop, make_range, fold_cond_expr_with_comparison,
13869 fold_div_compare, fold, fold_checksum_tree, fold_negate_const,
13870 fold_abs_const, fold_not_const, fold_relational_const, round_up,
13871 round_down): Likewise.
13872 * function.c (find_function_data, assign_stack_temp_for_type,
13873 instantiate_virtual_regs_lossage, aggregate_value_p,
13874 assign_parm_find_entry_rtl, assign_parm_setup_block,
13875 expand_function_start, expand_function_end, keep_stack_depressed,
13876 handle_epilogue_set, thread_prologue_and_epilogue_insns): Likewise.
13877
13878 2004-09-08 Daniel Berlin <dberlin@dberlin.org>
13879
13880 * Makefile.in (tree-loop-linear.o): Added.
13881 (OBJS-common): Add tree-loop-linear.o
13882 * common.opt: New flag, ftree-loop-linear.
13883 * timevar.def: New timevar, TV_TREE_LOOP_LINEAR.
13884 * tree-flow.h: Add prototype for linear_transform_loops.
13885 * tree-optimize.c: Add linear transform after vectorization.
13886 * tree-pass.h: Add struct pass_linear_transform.
13887 * tree-ssa-loop.c: Add pass_linear_transform.
13888 * tree-loop-linear.c: New file.
13889 * lambda-code.c: gcc_assertify.
13890 (gcc_loop_to_lambda_loop): Handle all exit tests.
13891 Handle case where we have (invariant >= induction var).
13892 (find_induction_var_from_exit_cond): Ditto.
13893
13894 2004-09-08 Jie Zhang <zhangjie@magima.com.cn>
13895
13896 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
13897 memory tag is call clobbered, so are its aliases.
13898 (group_aliases): When two memory tags being grouped, if one is
13899 call clobbered, so are the other and its aliases.
13900 (add_may_alias): Remove call-clobbering stuff.
13901 (replace_may_alias): Likewise.
13902 (merge_pointed_to_info): Merge pt_global_mem
13903
13904 2004-09-08 Jan Hubicka <jh@suse.cz>
13905
13906 * cgraph.c (cgraph_remove_node): Free DECL_INITIAL field of node.
13907 * cgraphunit.c (verify_cgraph): Don't verify on syntax errors.
13908 (cgraph_expand_function): Remove stale cgraph edges of currently
13909 compiled function; fix non-unit-at-a-time code copying function
13910 node for later reuse.
13911
13912 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
13913
13914 * vec.c (vec_p_reserve, vec_o_reserve): Rename to ...
13915 (vec_gc_p_reserve, vec_gc_o_reserve): ... here. Clone to
13916 (vec_heap_p_reserve, vec_heap_o_reserve): ... here, adjust.
13917 (vec_gc_free, vec_heap_free): New.
13918 * vec.h (DEF_VEC_GC_P, DEF_VEC_MALLOC_P): New.
13919 (DEF_VEC_P): Add allocator argument. Adjust.
13920 (DEF_VEC_GC_O, DEF_VEC_MALLOC_O): New.
13921 (DEF_VEC_O): Add allocator argument. Adjust.
13922 (VEC(free)): New.
13923
13924 * tree.h (tree): Define a GC'd vector.
13925 * lamba-code.c (lambda_loop): Likewise.
13926 * value-prof.h (histogram_value): Likewise.
13927
13928 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
13929
13930 * emit-rtl.c (immed_double_const): Use gcc_assert and gcc_unreachable.
13931 (gen_rtx_SUBREG, gen_reg_rtx, mark_user_reg, subreg_hard_regno,
13932 gen_lowpart_common, gen_highpart, gen_highpart_mode,
13933 subreg_highpart_offset, operand_subword, operand_subword_force,
13934 mem_expr_equal_p, set_mem_attributes_minus_bitpos,
13935 set_mem_alias_set, change_address_1, verify_rtx_sharing,
13936 copy_most_rtx, set_first_insn, set_last_insn, prev_cc0_setter,
13937 try_split, add_insn_after, add_insn_before, remove_insn,
13938 remove_unnecessary_notes, emit_insn_before, emit_jump_insn_before,
13939 emit_call_insn_before, emit_insn_after, emit_jump_insn_after,
13940 emit_call_insn_after, emit_insn, emit_jump_insn, emit_call_insn,
13941 set_unique_reg_note, emit, push_to_full_sequence, copy_insn_1,
13942 gen_const_vector_0, emit_copy_of_insn_after): Likewise.
13943 * et-forest.c (set_prev, set_next, et_check_occ_sanity,
13944 record_path_before_1, check_path_after_1, check_path_after): Likewise.
13945 * except.c (gen_eh_region, resolve_one_fixup_region,
13946 remove_unreachable_regions, convert_from_eh_region_ranges_1,
13947 add_ehl_entry, duplicate_eh_region_1, build_post_landing_pads,
13948 connect_post_landing_pads, sjlj_emit_function_exit,
13949 remove_exception_handler_label, remove_eh_handler,
13950 reachable_next_level, collect_one_action_chain,
13951 output_function_exception_table): Likewise.
13952 * explow.c (trunc_int_for_mode, copy_to_mode_reg,
13953 optimize_save_area_alloca, allocate_dynamic_stack_space,
13954 probe_stack_range, hard_function_value): Likewise.
13955 * expmed.c (mode_for_extraction, store_bit_field,
13956 store_fixed_bit_field, extract_bit_field, expand_shift,
13957 expand_mult_const, expand_mult, choose_multiplier,
13958 expand_mult_highpart, expand_divmod, emit_store_flag,
13959 do_cmp_and_jump): Likewise.
13960 * expr.c (convert_move, convert_modes, move_by_pieces,
13961 move_by_pieces_ninsns, move_by_pieces_1, emit_block_move,
13962 move_block_from_reg, gen_group_rtx, emit_group_load,
13963 emit_group_move, emit_group_store, use_reg, use_regs,
13964 can_store_by_pieces, store_by_pieces, store_by_pieces_1,
13965 emit_move_insn, emit_move_insn_1, emit_push_insn,
13966 expand_assignment, store_expr, count_type_elements,
13967 store_constructor, store_field, safe_from_p, expand_var,
13968 expand_expr_addr_expr, expand_expr_real_1, do_store_flag): Likewise.
13969
13970 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
13971
13972 * dbxout.c (dbxout_type, dbxout_type_name, dbxout_symbol): Use
13973 gcc_assert and gcc_unreachable.
13974 * ddg.c (create_ddg_dependence, add_deps_for_def,
13975 add_deps_for_use, create_ddg, add_edge_to_ddg): Likewise.
13976 * df.c (df_ref_unlink, df_ref_record, df_uses_record,
13977 df_reg_def_chain_create, df_reg_use_chain_create, df_analyze,
13978 df_insn_delete, df_refs_reg_replace, df_ref_reg_replace,
13979 df_insns_modify, df_pattern_emit_before, df_bb_reg_live_start_p,
13980 df_bb_reg_live_end_p, df_bb_regs_lives_compare,
13981 df_bb_single_def_use_insn_find, dataflow_set_a_op_b,
13982 dataflow_set_copy, hybrid_search, diagnostic.c,
13983 diagnostic_build_prefix, diagnostic_count_diagnostic): Likewise.
13984 * dojump.c (do_jump): Likewise.
13985 * dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
13986 compute_dom_fast_query, calculate_dominance_info,
13987 free_dominance_info, get_immediate_dominator,
13988 set_immediate_dominator, get_dominated_by,
13989 redirect_immediate_dominators, nearest_common_dominator,
13990 dominated_by_p, verify_dominators, recount_dominator,
13991 iterate_fix_dominators, add_to_dominance_info,
13992 delete_from_dominance_info): Likewise.
13993 * dwarf2asm.c (size_of_encoded_value, eh_data_format_name,
13994 dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
13995 dw2_force_const_mem, dw2_asm_output_encoded_addr_rtx): Likewise.
13996 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes, reg_save,
13997 initial_return_save, stack_adjust_offset, dwarf2out_stack_adjust,
13998 flush_queued_reg_saves, dwarf2out_frame_debug_expr,
13999 dwarf2out_frame_debug, dw_cfi_oprnd1_desc, output_cfi,
14000 output_call_frame_info, output_loc_operands, build_cfa_loc,
14001 decl_ultimate_origin, AT_flag, AT_int, AT_unsigned, AT_string,
14002 AT_string_form, add_AT_specification, AT_ref, set_AT_ref_external,
14003 AT_loc, AT_loc_list, AT_addr, AT_lbl, add_child_die,
14004 splice_child_die, attr_checksum, same_dw_val_p,
14005 break_out_includes, build_abbrev_table, size_of_die, mark_dies,
14006 unmark_dies, value_format, output_loc_list, output_die,
14007 output_pubnames, output_aranges, base_type_die, is_base_type,
14008 modified_type_die, dbx_reg_number, multiple_reg_loc_descriptor,
14009 mem_loc_descriptor, loc_descriptor, loc_descriptor_from_tree_1,
14010 field_byte_offset, add_data_member_location_attribute,
14011 add_const_value_attribute, rtl_for_decl_location,
14012 add_location_or_const_value_attribute, add_byte_size_attribute,
14013 add_bit_offset_attribute, add_bit_size_attribute,
14014 add_abstract_origin_attribute, pop_decl_scope, scope_die_for,
14015 decl_start_label, gen_formal_parameter_die,
14016 gen_type_die_for_member, gen_subprogram_die, gen_label_die,
14017 gen_typedef_die, gen_type_die, gen_tagged_type_instantiation_die,
14018 force_decl_die, force_type_die, gen_decl_die,
14019 dwarf2out_imported_module_or_decl, prune_unused_types_prune,
14020 dwarf2out_finish): Likewise.
14021
14022 2004-09-08 Andreas Tobler <toa@pop.agri.ch>
14023
14024 * Makefile.in (builtins.o): Depend on tree-mudflap.h.
14025 * builtins.c: Include tree-mudflap.h.
14026
14027 2004-09-08 Uros Bizjak <uros@kss-loka.si>
14028
14029 * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
14030 force operand 0.0 into register in XFmode. Also do not force
14031 operand 0.0 into register if !TARGET_CMOVE.
14032 * config/i386/i386.md (*cmpfp_0): Delete. Remove comment.
14033 (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf): New patterns to
14034 implement ftst x87 instruction.
14035 (*fp_jcc_7): New insn pattern. Change corresponding split
14036 pattern to handle "general_operand" instead of
14037 "nonimmediate_operand".
14038
14039 2004-09-08 Ben Elliston <bje@au.ibm.com>
14040
14041 * doc/rtl.texi (Insns): Document NOTE_INSN_FUNCTION_BEG.
14042
14043 2004-09-07 Frank Ch. Eigler <fche@redhat.com>
14044
14045 * builtins.c (std_gimplify_va_arg_expr): Mark INDIRECT_REF nodes
14046 generated from standard va_arg expansion.
14047 * tree-mudflap.c (mx_xform_derefs_1): Omit instrumentation from
14048 marked nodes.
14049 (mf_varname_tree, mf_file_function_line_tree): Add some support
14050 for column numbers if compiled with USE_MAPPED_LOCATION.
14051
14052 2004-09-07 Ziemowit Laski <zlaski@apple.com>
14053
14054 * c-decl.c (groktypename_in_parm_context): Remove function.
14055 * c-tree.h (groktypename_in_parm_context): Remove prototype.
14056
14057 2004-09-07 Ziemowit Laski <zlaski@apple.com>
14058
14059 * Makefile.in (c-parse.o): Depend on $(C_COMMON_H).
14060 * c-parse.in: Include c-common.h instead of objc-act.h.
14061 (ivar_decl_list, ivar_decls, ivar_decl, ivars, ivar_declarator,
14062 myparms, myparm): Remove %type declarations.
14063 (methodtype, optparms, OBJC_TYPE_QUAL, objc_quals, objc_qual,
14064 objc_typename, objc_try_catch_stmt, optellipsis): Add %type
14065 declarations.
14066 (objc_inherit_code, objc_public_flag): Remove.
14067 (typespec_nonreserved_nonattr): Call
14068 objc_get_protocol_qualified_type() instead of get_static_reference()
14069 and get_protocol_reference().
14070 (stmt_nocomp): Call grokparm() on @catch parameter.
14071 (objcdef): Move semantic action to objc_finish_implementation().
14072 (classdef): Move semantic action to objc_start_class_interface(),
14073 objc_continue_interface(), objc_finish_interface(),
14074 objc_start_class_implementation(), objc_continue_implementation(),
14075 objc_start_category_interface() and
14076 objc_start_category_implementation().
14077 (protocoldef): Move semantic actions to objc_start_protocol() and
14078 objc_finish_interface().
14079 (ivar_decl_list): Remove nonterminal.
14080 (visibility_spec): Move semantic actions to objc_set_visibility().
14081 (ivar_decls): Remove assignment to $$.
14082 (ivar_decl): Rephrase in terms of component_decl; call
14083 objc_add_instance_variable().
14084 (ivars, ivar_declarator): Remove nonterminals.
14085 (opt_semi): New nonterminal.
14086 (methodtype): Remove semantic actions.
14087 (methoddef): Move semantic actions to objc_set_method_type(),
14088 objc_start_method_definition() and objc_finish_method_definition().
14089 (methodproto): Move semantic actions to objc_set_method_type() and
14090 objc_add_method_declaration().
14091 (methoddecl): Use objc_typename instead of typename; move semantic
14092 actions to objc_build_method_signature().
14093 (optarglist, myxdecls, mydecl, myparms, myparm): Remove nonterminals.
14094 (optparmlist): Express in terms of optparms and optellipsis.
14095 (optparms, optellipsis, objc_qual, objc_quals, objc_typename): New
14096 nonterminals.
14097 (keyworddecl): Use objc_typename instead of typename.
14098 (rid_to_yy): Mark RID_IN, RID_OUT, RID_INOUT, RID_BYCOPY, RID_BYREF
14099 and RID_ONEWAY as returning OBJC_TYPE_QUAL to yyparse().
14100
14101 2004-09-08 Alan Modra <amodra@bigpond.net.au>
14102
14103 * doc/tm.texi (MD_UNWIND_SUPPORT): Document.
14104 (MD_FALLBACK_FRAME_STATE_FOR): Update.
14105 * unwind-dw2.c (MD_UNWIND_SUPPORT): #include if defined.
14106 (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
14107 (MD_FROB_UPDATE_CONTEXT): Remove default.
14108 (uw_update_context_1): Instead #ifdef invocation.
14109 * config/ia64/unwind-ia64.c (MD_UNWIND_SUPPORT): #include if defined.
14110 (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
14111 * config/alpha/gnu.h (MD_FALLBACK_FRAME_STATE_FOR): Don't undef.
14112 (MD_UNWIND_SUPPORT): Undefine this instead.
14113 * config/i386/gnu.h: Likewise.
14114 * config/alpha/linux-unwind.h: New file, macro converted to
14115 function, extracted from..
14116 * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): ..this.
14117 (MD_UNWIND_SUPPORT): Define.
14118 * config/alpha/vms-unwind.h, config/alpha/vms.h: Likewise.
14119 * config/i386/linux-unwind.h, config/i386/linux.h,
14120 config/i386/linux64.h: Likewise.
14121 * config/ia64/linux-unwind.h, config/ia64/linux.h: Likewise.
14122 MD_HANDLE_UNWABI too.
14123 * config/mips/linux-unwind.h, config/mips/linux.h: Likewise.
14124 * config/pa/linux-unwind.h, config/pa/pa32-linux.h: Likewise.
14125 * config/rs6000/darwin-unwind.h, config/rs6000/darwin.h: Likewise.
14126 * config/s390/linux-unwind.h, config/s390/linux.h: Likewise.
14127 * config/sparc/linux-unwind.h, config/sparc/linux.h,
14128 config/sparc/linux64.h: Likewise.
14129 * config/sh/linux-unwind.h, config/sh/linux.h: Likewise, but merge
14130 SH_FALLBACK_FRAME_FLOAT_STATE into sh_fallback_frame_state.
14131 * config/rs6000/linux-unwind.h, config/rs6000/linux.h,
14132 config/rs6000/linux64.h: Likewise. Split out get_sigcontext
14133 function. Use ARG_POINTER_REGNUM for 32-bit temp reg too.
14134
14135 2004-09-07 Jan Hubicka <jh@suse.cz>
14136
14137 * cse.c (fold_rtx): Avoid building of
14138 (CONST (MINUS (CONST_INT) (SYMBOL_REF)))
14139
14140 * tree-ssa-pre.c (grand_bitmap_obstack): New.
14141 (value_insert_into_set_bitmap, bitmap_set_new): Use the obstack.
14142 (init_pre): Initialize obstack.
14143 (fini_pre): Free obstack.
14144
14145 2004-09-07 David Daney <ddaney@avtrex.com>
14146
14147 * config.gcc: Added support for --with-divide=[breaks|traps] for
14148 mips targets.
14149 * config/mips/mips.h (MASK_DIVIDE_BREAKS): New target_flags bit.
14150 (TARGET_DIVIDE_TRAPS): New macro.
14151 (TARGET_SWITCHES): Added -mdivide-traps and -mdivide-breaks.
14152 (OPTION_DEFAULT_SPECS): Added --with-divide= support.
14153 * config/mips/mips.c (mips_idiv_insns): Generate proper count on
14154 GENERATE_DIVIDE_TRAPS.
14155 (mips_output_division): Emit conditional trap if
14156 GENERATE_DIVIDE_TRAPS is set.
14157 * doc/install.texi: Document --with-divide.
14158 * doc/invoke.texi: Document -mdivide-traps and -mdivide-breaks.
14159
14160 2004-09-07 Caroline Tice <ctice@apple.com>
14161
14162 * cfgrtl.c (rtl_verify_flow_info_1): Add new edge flag,
14163 EDGE_CROSSING, to flags test case.
14164
14165 2004-09-07 Jan Hubicka <jh@suse.cz>
14166
14167 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Deal with '<'
14168 class too.
14169
14170 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
14171
14172 * cfganal.c (flow_depth_first_order_compute, dfs_enumerate_from,
14173 cfgbuild.c, inside_basic_block_p, control_flow_insn_p,
14174 make_label_edge, make_edges, find_basic_blocks_1): Use gcc_assert
14175 or gcc_unreachable.
14176 * cfg.c (clear_edges, initialize_bb_rbi, compact_blocks,
14177 remove_edge, alloc_aux_for_blocks, free_aux_for_blocks,
14178 alloc_aux_for_edges, free_aux_for_edges): Likewise.
14179 * cfgcleanup.c (try_forward_edges,
14180 merge_blocks_move_predecessor_nojumps,
14181 merge_blocks_move_successor_nojumps): Likewise.
14182 * cfgexpand.c (expand_gimple_cond_expr,
14183 expand_gimple_tailcall): Likewise.
14184 * cfghooks.c (duplicate_block): Likewise.
14185 * cfglayout.c (record_effective_endpoints,
14186 insn_locators_initialize, change_scope, fixup_reorder_chain,
14187 verify_insn_chain, fixup_fallthru_exit_predecessor,
14188 duplicate_insn_chain, cfg_layout_finalize): Likewise.
14189 * cfgloopanal.c (check_irred): Likewise.
14190 * cfgloop.c (superloop_at_depth, flow_loops_free,
14191 flow_loop_entry_edges_find, flow_loops_find,
14192 flow_loop_outside_edge_p, get_loop_body,
14193 get_loop_body_in_dom_order, get_loop_body_in_bfs_order,
14194 get_loop_exit_edges, num_loop_branches, cancel_loop,
14195 verify_loop_structure): Likewise.
14196 cfgloopmanip.c (find_path, remove_path, loop_delete_branch_edge,
14197 duplicate_loop_to_header_edge, create_preheader,
14198 create_loop_notes): Likewise.
14199 * cfgrtl.c (delete_insn, try_redirect_by_replacing_jump,
14200 edirect_branch_edge, force_nonfallthru_and_redirect,
14201 rtl_split_edge, insert_insn_on_edge, commit_one_edge_insertion,
14202 commit_edge_insertions, commit_edge_insertions_watch_calls,
14203 purge_dead_edges, cfg_layout_redirect_edge_and_branch,
14204 cfg_layout_redirect_edge_and_branch_force,
14205 cfg_layout_merge_blocks, rtl_flow_call_edges_add): Likewise.
14206 * cgraph.c (cgraph_node, cgraph_create_edge, cgraph_remove_edge,
14207 cgraph_redirect_edge_callee, cgraph_global_info, cgraph_rtl_info,
14208 cgraph_varpool_node): Likewise.
14209 * cgraphunit.c (cgraph_finalize_function,
14210 cgraph_finalize_compilation_unit, cgraph_mark_functions_to_output,
14211 cgraph_expand_function, cgraph_remove_unreachable_nodes,
14212 cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
14213 cgraph_mark_inline, cgraph_expand_all_functions,
14214 cgraph_build_static_cdtor): Likewise.
14215 * combine.c (do_SUBST, try_combine, subst, combine_simplify_rtx,
14216 simplify_logical, distribute_notes, insn_cuid): Likewise.
14217 * conflict.c (conflict_graph_add, print_conflict): Likewise.
14218 * coverage.c (rtl_coverage_counter_ref, tree_coverage_counter_ref,
14219 coverage_checksum_string): Likewise.
14220 * cse.c (make_new_qty, make_regs_eqv, insert, invalidate,
14221 hash_rtx, exp_equiv_p, cse_basic_block, count_reg_usage,
14222 cse_cc_succs, cse_condition_code_reg): Likewise.
14223 * cselib.c (entry_and_rtx_equal_p, remove_useless_values,
14224 rtx_equal_for_cselib_p, wrap_constant, cselib_hash_rtx,
14225 new_cselib_val, cselib_subst_to_values, cselib_invalidate_regno,
14226 cselib_record_set): Likewise.
14227
14228 2004-09-07 Jan Hubicka <jh@suse.cz>
14229
14230 * tree-ssa-loop-ivopts.c (iv_value): Avoid invalid sharing on niter.
14231
14232 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
14233
14234 * builtins.c (fold_builtin_strchr): Use build_int_cst, not
14235 fold_convert.
14236 (fold_builtin_strpbrk): Likewise.
14237 * expr.c (array_ref_low_bound): Likewise.
14238 * tree-scalar-evolution.c (chrec_is_positive, add_to_evolution_1,
14239 interpret_rhs_modify_expr, number_of_iterations_in_loop): Likewise.
14240 * tree-sra.c (generate_element_zero): Likewise.
14241 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
14242 * tree-ssa-loop-ivopts.c (determine_biv_step, idx_find_step,
14243 add_old_iv_candidates, add_iv_candidates): Likewise.
14244 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
14245
14246 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
14247
14248 * c-aux-info.c (gen_type): Use gcc_assert or gcc_unreachable.
14249 * c-common.c (c_type_hash, c_common_nodes_and_builtins,
14250 c_expand_expr, boolean_increment, nonnull_check_p,
14251 check_function_arguments_recurse, fold_offsetof_1): Likewise.
14252 * c-cppbuiltin.c (define__GNUC__, builtin_define_stdint_macros,
14253 builtin_define_type_max): Likewise.
14254 * c-decl.c (bind, pop_scope, merge_decls, pushdecl_top_level,
14255 implicit_decl_warning, builtin_function, build_compound_literal,
14256 complete_array_type, grokdeclarator, get_parm_info,
14257 start_function, store_parm_decls_oldstyle,
14258 c_write_global_declarations): Likewise.
14259 * c-format.c (get_constant, decode_format_attr,
14260 maybe_read_dollar_number, get_flag_spec, check_format_arg,
14261 check_format_types, format_type_warning,
14262 find_char_info_specifier_index, init_dynamic_asm_fprintf_info,
14263 init_dynamic_diag_info, handle_format_attribute): Likewise.
14264 * c-gimplify.c (push_context, pop_context, finish_bc_block):
14265 * c-lex.c (c_lex_with_flags, lex_string): Likewise.
14266 * c-objc-common.c (c_tree_printer): Likewise.
14267 * c-pch.c (pch_init): Likewise.
14268 * c-pragma.c (maybe_apply_pragma_weak): Likewise.
14269 * c-pretty-print.c (pp_c_tree_decl_identifier): Likewise.
14270 * c-typeck.c (c_incomplete_type_error, composite_type,
14271 common_pointer_type, common_type, same_translation_unit_p,
14272 tagged_types_tu_compatible_p, finish_init, pop_init_level,
14273 set_designator, set_nonincremental_init_from_string,
14274 process_init_element, c_finish_if_stmt): Likewise.
14275 * caller-save.c (init_caller_save, save_call_clobbered_regs,
14276 insert_restore, insert_save, insert_one_insn): Likewise.
14277 * calls.c (emit_call_1, compute_argument_block_size,
14278 precompute_arguments, expand_call, emit_library_call_value_1,
14279 store_one_arg): Likewise.
14280
14281 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
14282
14283 * configure.ac (enable-checking): Add release option. Reorganize
14284 to avoid repetition.
14285 * configure: Rebuilt.
14286 * doc/install.texi (enable-checking): Amend documentation.
14287
14288 2004-09-06 H.J. Lu <hongjiu.lu@intel.com>
14289
14290 PR bootstrap/17313
14291 * Makefile.in (specs.ready): Depend on cc1$(exeext).
14292
14293 2004-09-06 James E Wilson <wilson@specifixinc.com>
14294
14295 * config/mips/mips.md (movsf_hardfloat, movdf_hardfloat_64bit,
14296 movdf_hardfloat_32bit): Split fG into two alternatives.
14297 (movv2sf_hardfloat_64bit): Split fYG into two alternatives.
14298
14299 * emit-rtl.c (try_split): Check INSN_P before may_trap_p call.
14300
14301 2004-09-06 Eric Botcazou <ebotcazou@libertysurf.fr>
14302
14303 * final.c (output_in_slot): Delete.
14304 (final_scan_insn): Revert 2004-09-03 change.
14305 (output_asm_insn): Likewise.
14306 * config/sparc/sparc.c (output_return): Likewise.
14307 (output_sibcall): Likewise.
14308
14309 2004-09-06 Jan Hubicka <jh@suse.cz>
14310
14311 * loop.c (loop_dump_aux): Do not print RTL when not available.
14312 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates): Do not use
14313 frontend specific type nodes.
14314 (produce_memory_decl_rtl): Break out from ...
14315 (prepare_decl_rtl): ... here. Handle ADDR_EXPR correctly.
14316 (get_computation_at): Avoid random tree sharing.
14317 (tree_ssa_iv_optimize): Verify tree sharing; dump loops.
14318
14319 2004-09-06 Zack Weinberg <zack@codesourcery.com>
14320
14321 * Makefile.in (rtl.o, bitmap.o): Correct dependencies, remove
14322 unnecessary commands.
14323
14324 2004-09-06 Mohan Embar <gnustuff@thisiscool.com>
14325
14326 * Makefile.in (rtl.o): Remove -DGENERATOR_FILE.
14327 (bitmap.o): Likewise.
14328
14329 2004-09-06 Paolo Bonzini <bonzini@gnu.org>
14330
14331 Unify the management of RTL and tree-level dump files.
14332
14333 * cfgexpand.c (tree_expand_cfg): Fix incorrect comment.
14334 Don't print function name to the dump file, the pass manager
14335 would do this for us. Add code from the top of
14336 rest_of_compilation, up to the initial RTL dump.
14337 * passes.c (rest_of_handle_jump): Call fixup_tail_calls and
14338 close the DFI_sibling dump file.
14339 (rest_of_compilation): Don't do that here. Remove code up to the
14340 initial RTL dump.
14341 (init_optimization_passes): Remove.
14342 (pass_rest_of_compilation): Change pass name to NULL.
14343 * toplev.c (lang_dependent_init): Do not use an empty dump file prefix.
14344 Do not call init_optimization_passes.
14345 * toplev.h (init_optimization_passes): Remove.
14346
14347 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
14348 finish_graph_dump_file): Remove SUFFIX parameter.
14349 * graph.h (print_rtl_graph_with_bb, clean_graph_dump_file,
14350 finish_graph_dump_file): Likewise.
14351
14352 * tree-pass.h (struct tree_opt_pass): Add `letter' field.
14353 * cfgexpand.c (pass_expand): Adjust.
14354 * gimple-low.c (pass_lower_cf, pass_remove_useless_vars): Adjust.
14355 * passes.c (pass_rest_of_compilation): Adjust.
14356 * predict.c (pass_profile): Adjust.
14357 * tree-alias-common.c (pass_build_pta, pass_del_pta): Adjust.
14358 * tree-cfg.c (pass_build_cfg, pass_remove_useless_stmts,
14359 pass_split_crit_edges, pass_warn_function_return): Adjust.
14360 * tree-complex.c (pass_lower_vector_ssa, pass_pre_expand): Adjust.
14361 * tree-dfa.c (pass_referenced_vars): Adjust.
14362 * tree-eh.c (pass_lower_eh): Adjust.
14363 * tree-if-conv.c (pass_build_ssa): Adjust.
14364 * tree-into-ssa.c (pass_build_ssa): Adjust.
14365 * tree-mudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
14366 * tree-nomudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
14367 * tree-nrv.c (pass_nrv): Adjust.
14368 * tree-optimize.c (pass_gimple, pass_all_optimizations,
14369 pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
14370 pass_init_datastructures): Adjust.
14371 * tree-outof-ssa.c (pass_del_ssa): Adjust.
14372 * tree-profile.c (pass_tree_profile): Adjust.
14373 * tree-sra.c (pass_sra): Adjust.
14374 * tree-ssa-alias.c (pass_may_alias): Adjust.
14375 * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Adjust.
14376 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Adjust.
14377 * tree-ssa-dce.c (pass_dce, pass_cd_dce): Adjust.
14378 * tree-ssa-dom.c (pass_dominator): Adjust.
14379 * tree-ssa-dse.c (pass_dse): Adjust.
14380 * tree-ssa-forwprop.c (pass_forwprop): Adjust.
14381 * tree-ssa-if-conv.c (pass_if_conversion): Adjust.
14382 * tree-ssa-loop-ch.c (pass_ch): Adjust.
14383 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_lim,
14384 pass_loop_done, pass_complete_unroll, pass_iv_canon,
14385 pass_iv_optimize, pass_vectorize): Adjust.
14386 * tree-ssa-phiopt.c (pass_phiopt): Adjust.
14387 * tree-ssa-pre.c (pass_pre, pass_fre): Adjust.
14388 * tree-ssa.c (pass_redundant_phi, pass_early_warn_uninitialized,
14389 pass_late_warn_uninnitialized): Adjust.
14390 * tree-tailcall.c (pass_tail_recursion, pass_tail_calls): Adjust.
14391
14392 * Makefile.in (tree-dump.o): Add new dependencies.
14393 * cgraph.c (cgraph_remove_node): TDF_all -> TDF_tree_all.
14394 * cgraphunit.c (cgraph_preserve_function_body_p, cgraph_optimize):
14395 Likewise.
14396 * toplev.c (dump_file_name): New.
14397 * tree-dump.c (dump_enable_all): Add LETTER parameter.
14398 (struct dump_file_info): Add NUM and LETTER fields.
14399 (dump_files): Adjust and add RTL dump files.
14400 (dump_register): Add NUM and LETTER fields.
14401 (get_dump_file_name, dump_initialized_p, enable_rtl_dump_file): New.
14402 (dump_begin): Use get_dump_file_name.
14403 (dump_switch_p_1): Adjust call to dump_enable_all.
14404 * tree-dump.h (dump_register): Adjust prototype.
14405 * tree-optimize.c (register_one_dump_file): Take dump file index.
14406 Support flags for RTL dumps.
14407 (register_dump_files): Fill in NUM field of struct dump_file_info.
14408 Track properties both when the gate is executed and when it is not.
14409 (execute_todo): Dump RTL. Add PROPERTIES parameter.
14410 (execute_one_pass): Pass properties to execute_todo. Handle VCG
14411 dumps of RTL.
14412 * tree-pass.h (dump_file_name): New.
14413 * tree.h (TDF_TREE, TDF_RTL, get_dump_file_name, dump_initialized_p):
14414 New.
14415
14416 * Makefile.in (passes.o): Add new dependencies.
14417 * passes.c (struct dump_file_info, enum dump_file_index,
14418 dump_file_tbl, init_optimization_passes): Remove.
14419 (open_dump_file, close_dump_file): Use tree-dumping infrastructure.
14420 (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc): Use
14421 dump_enabled_p.
14422 (finish_optimization_passes): Update finish_graph_dump_file loop.
14423 (enable_rtl_dump_file): Remove.
14424 * tree-dump.c (dump_files): Adjust and add RTL dump files.
14425 (enable_rtl_dump_file): Add here.
14426 * tree.h (enum tree_dump_index): Add RTL dump file indices.
14427 * doc/invoke.texi (Debugging options): Document new RTL debugging
14428 options. Update.
14429
14430 2004-09-05 Kazu Hirata <kazu@cs.umass.edu>
14431
14432 * c-common.c, c-decl.c, combine.c, defaults.h, fold-const.c,
14433 gimplify.c, gthr-nks.h, hooks.c, lambda-code.c, lambda-mat.c,
14434 stor-layout.c, target.h, tree-cfg.c, tree-chrec.c,
14435 tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
14436 tree-mudflap.c, tree-optimize.c, tree-scalar-evolution.c,
14437 tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dce.c,
14438 tree-ssa-pre.c, tree-vectorizer.c, tree-vectorizer.h, tree.h,
14439 vec.h: Fix comment formatting.
14440
14441 2004-09-05 Kazu Hirata <kazu@cs.umass.edu>
14442
14443 * c-common.c, cfgexpand.c, cgraphunit.c, defaults.h,
14444 et-forest.c, expr.c, gimplify.c, global.c, gthr-lynx.h,
14445 hard-reg-set.h, modulo-sched.c, optabs.c, postreload-gcse.c,
14446 tree-data-ref.c, tree-flow.h, tree-if-conv.c, tree-inline.c,
14447 tree-sra.c, tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
14448 tree-ssa-loop-niter.c, tree-ssa-operands.c,
14449 tree-ssa-operands.h, tree-ssa-propagate.c,
14450 tree-ssa-propagate.h, tree-ssa-threadupdate.c, value-prof.c,
14451 vec.c, vec.h: Fix comment typos. Follow spelling conventions.
14452
14453 2004-09-05 Diego Novillo <dnovillo@redhat.com>
14454
14455 * tree-if-conv.c (gate_tree_if_conversion): Enable only if the
14456 vectorizer is enabled.
14457
14458 2004-09-05 Andreas Jaeger <aj@suse.de>
14459
14460 * tree-if-conv.c: Spell check comments and clean up whitespace.
14461
14462 2004-09-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14463
14464 * tree-ssa-loop-ivopts.c: New file.
14465 * Makefile.in (tree-ssa-loop-ivopts.c): Add.
14466 * cfgloop.h (target_avail_regs, target_res_regs, target_small_cost,
14467 target_pres_cost, target_spill_cost): Declare.
14468 * cfgloopanal.c (avail_regs, res_regs, small_cost, pres_cost,
14469 spill_cost): Renamed to ...
14470 (target_avail_regs, target_res_regs, target_small_cost,
14471 target_pres_cost, target_spill_cost): ... and exported.
14472 (init_set_costs, global_cost_for_size): Work with renamed variables.
14473 * common.opt (flag_ivopts): New flag.
14474 * expr.c (expand_expr_real_1): Handle SSA_NAME case. Handle
14475 REF_ORIGINAL.
14476 * gimplify.c (struct gimplify_ctx): Add into_ssa field.
14477 (internal_get_tmp_var, gimplify_modify_expr, gimplify_expr): Support
14478 generating SSA form.
14479 (force_gimple_operand): New function.
14480 * timevar.def (TV_TREE_LOOP_IVOPTS): New timevar.
14481 * tree-cfg.c (stmt_bsi): New function.
14482 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
14483 PARAM_IV_MAX_CONSIDERED_USES): New.
14484 * tree-flow.h (stmt_bsi, tree_ssa_iv_optimize, split_loop_exit_edge,
14485 bsi_insert_on_edge_immediate_loop. standard_iv_increment_position,
14486 ip_end_pos, ip_normal_pos, force_gimple_operand): Declare.
14487 * tree-gimple.c (is_gimple_formal_tmp_var): Accept ssa names.
14488 * tree-nested.c (build_addr): Export.
14489 * tree-optimize.c (init_tree_optimization_passes): Add
14490 pass_iv_optimize.
14491 * tree-pass.h (pass_iv_optimize): Declare.
14492 * tree-ssa-loop-im.c (for_each_index): Handle REALPART_EXPR and
14493 IMAGPART_EXPR.
14494 * tree-ssa-loop-manip.c (create_iv): Force the base to be acceptable
14495 as a phi node argument.
14496 (split_loop_exit_edge, bsi_insert_on_edge_immediate_loop,
14497 ip_end_pos, ip_normal_pos, standard_iv_increment_position): New
14498 functions.
14499 * tree-ssa-loop-niter.c (zero_p, unsigned_type_for): Export.
14500 * tree-ssa-loop.c (tree_ssa_loop_ivopts, gate_tree_ssa_loop_ivopts,
14501 pass_iv_optimize): New pass.
14502 * tree-ssa-operands.c (get_indirect_ref_operands): Handle REF_ORIGINAL.
14503 * tree-ssanames.c (release_ssa_name): Allow calling with var = NULL.
14504 * tree.c (build_int_cst_type, cst_and_fits_in_hwi): New functions.
14505 * tree.h (REF_ORIGINAL): New macro.
14506 (build_int_cst_type, unsigned_type_for, zero_p,
14507 cst_and_fits_in_hwi, build_addr): Declare.
14508 * doc/invoke.texi (-fivopts): Document.
14509 (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
14510 PARAM_IV_MAX_CONSIDERED_USES): Document.
14511 * doc/passes.texi: Document induction variable optimizations pass.
14512
14513 2004-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14514
14515 * builtin-attrs.def (ATTR_NOTHROW_SENTINEL_1): New.
14516 * builtins.def (BUILT_IN_EXECLE): Set ATTR_NOTHROW_SENTINEL_1.
14517 * c-common.c (c_common_attribute_table): Accept parameters to
14518 sentinel attribute.
14519 (check_function_sentinel, handle_sentinel_attribute): Likewise.
14520 * doc/extend.texi: Update accordingly.
14521
14522 2004-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14523
14524 * builtin-attrs.def (ATTR_SENTINEL, ATTR_SENTINEL_NOTHROW_LIST):
14525 New.
14526 * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP): Add `sentinel'
14527 attribute.
14528 * c-common.c (handle_sentinel_attribute, check_function_sentinel):
14529 New functions.
14530 (c_common_attribute_table): Add `sentinel' attribute.
14531 (check_function_arguments): Handle `sentinel' attribute.
14532 * doc/extend.texi: Document `sentinel' attribute.
14533
14534 2004-09-04 H.J. Lu <hongjiu.lu@intel.com>
14535
14536 * configure: Regenerated.
14537
14538 2004-09-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14539
14540 * gimplify.c (internal_get_tmp_var): Remove unused var CLASS.
14541
14542 * tree.c (save_expr): No longer TREE_READONLY.
14543
14544 2004-09-04 Jan Hubicka <jh@suse.cz>
14545
14546 * passes.c (rest_of_clean_state): Fix merge conflict made during
14547 commiting the patch.
14548
14549 2004-09-04 Jan Hubicka <jh@suse.cz>
14550
14551 * passes.c (rest_of_clean_state): Decompose the instruction stream.
14552
14553 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
14554
14555 * doc/md.texi (shift patterns): New anchor. Add reference to
14556 TARGET_SHIFT_TRUNCATION_MASK.
14557 * doc/tm.texi (TARGET_SHIFT_TRUNCATION_MASK): Document.
14558 * target.h (shift_truncation_mask): New target hook.
14559 * targhook.h (default_shift_truncation_mask): Declare.
14560 * targhook.c (default_shift_truncation_mask): Define.
14561 * target-def.h (TARGET_SHIFT_TRUNCATION_MASK): Define.
14562 (TARGET_INITIALIZER): Include it.
14563 * simplify-rtx.c (simplify_binary_operation): Combine ASHIFT, ASHIFTRT
14564 and LSHIFTRT cases. Truncate arg1 if SHIFT_COUNT_TRUNCATED, otherwise
14565 reject all out-of-range values. Fix sign-extension code for modes
14566 whose width is smaller than HOST_BITS_PER_WIDE_INT.
14567 * optabs.c (simplify_expand_binop, force_expand_binop): New functions.
14568 (expand_superword_shift, expand_subword_shift): Likewise.
14569 (expand_doubleword_shift_condmove, expand_doubleword_shift): Likewise.
14570 (expand_binop): Use them to implement double-word shifts.
14571 * config/arm/arm.c (arm_shift_truncation_mask): New function.
14572 (TARGET_SHIFT_TRUNCATION_MASK): Define.
14573
14574 2004-09-04 Jan Hubicka <jh@suse.cz>
14575
14576 * tree.c (iterate_hash_expr): Optimize, avoid use of iterative_hash_object.
14577 (mix): New macro copied from hashtab.c
14578 (iterative_hash_hashval_t, iterative_hash_pointer,
14579 iterative_hash_host_wide_int): New functions based on hashtab.c
14580 implementation.
14581
14582 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
14583
14584 * config/mips/mips.md (mask): New mode attribute.
14585 (zero_extendsidi2): Add memory alternative.
14586 (*zero_extendsidi2_mem): Delete.
14587 (zero_extend[qh]i[sd]i2): Redefine using :GPR and :SHORT. Use
14588 memory_operand in the TARGET_MIPS16 check.
14589 (*zero_extend[qh]i[sd]i2{,_mips16}): Name previously unnamed patterns.
14590 Redefine using :GPR and :SHORT.
14591 (zero_extendqihi2): Use memory_operand in the TARGET_MIPS16 check.
14592
14593 2004-09-04 Uros Bizjak <uros@kss-loka.si>
14594
14595 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_RINT{,F,L}
14596 using rint_optab.
14597 (expand_builtin): Expand BUILT_IN_RINT{,F,L} using
14598 expand_builtin_mathfn.
14599 * genopinit.c (optabs): Rename trunc_optab to btrunc_optab. Use
14600 btrunc?f patterns for btrunc_optab. Implement rint_optab using
14601 rint?f patterns.
14602 * optabs.c (init_optabs): Initialize rint_optab.
14603 * optabs.h (enum optab_index): Rename OTI_trunc to OTI_btrunc.
14604 Add new OTI_rint.
14605 (btrunc_optab): Rename macro from trunc_optab.
14606 (rint_optab): Define corresponding macro.
14607
14608 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT_FLOOR,
14609 UNSPEC_FRNDINT_CEIL, UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM.
14610
14611 * config/i386/i386-protos.h (emit_i387_cw_initialization):
14612 Change prototype. Add new int parameter.
14613 * config/i386/i386.c (emit_i387_cw_initialization):
14614 Handle new rounding modes.
14615
14616 * config/i386/i386.h (enum fp_cw_mode): Delete.
14617 (MODE_NEEDED): Handle new rounding modes.
14618 (EMIT_MODE_SET): Change condition to handle new rounding modes.
14619
14620 * config/i386/i386.md (UNSPEC_FRNDINT_FLOOR, UNSPEC_FRNDINT_CEIL,
14621 UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM): New unspecs to
14622 represent different rounding modes of frndint insn.
14623 (type): Add frndint type.
14624 (i387, length, memory): Handle this type.
14625 (i387_cw): New attribute definition.
14626 (*fix_truncdi_1, fix_truncdi_nomemory, fix_truncdi_memory,
14627 *fix_truncsi_1, fix_truncsi_nomemory, fix_truncsi_memory,
14628 *fix_trunchi_1, fix_trunchi_nomemory, fix_trunchi_memory):
14629 Add "i387_cw" attribute defined to "trunc".
14630 (x86_fnstcw_1): Remove comment.
14631 (*frndintxf2): Rename insn definition to frndintxf2. Move
14632 insn definition near rint?f2 expanders.
14633 (rintdf2, rintsf2, rintxf2): New expanders to implement rint,
14634 rintf and rintl built-ins as inline x87 intrinsics.
14635 (frndintxf2_floor): New pattern to implement floor rounding
14636 mode with frndint x87 instruction.
14637 (floordf2, floorsf2, floorxf2): New expanders to implement floor,
14638 floorf and floorl built-ins as inline x87 intrinsics.
14639 (frndintxf2_ceil): New pattern to implement ceil rounding
14640 mode with frndint x87 instruction.
14641 (ceildf2, ceilsf2, ceilxf2): New expanders to implement ceil,
14642 ceilf and ceill built-ins as inline x87 intrinsics.
14643 (frndintxf2_trunc): New pattern to implement trunc rounding
14644 mode with frndint x87 instruction.
14645 (btruncdf2, btruncsf2, btruncxf2): New expanders to implement trunc,
14646 truncf and truncl built-ins as inline x87 intrinsics.
14647 (frndintxf2_mask_pm): New pattern to implement rounding
14648 mode with exceptions with frndint x87 instruction.
14649 (nearbyintdf2, nearbyintsf2, nearbyintxf2): New expanders to
14650 implement nearbyint, nearbyintf and nearbyintl built-ins as
14651 inline x87 intrinsics.
14652
14653 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
14654
14655 * config/mips/mips.md (SHORT): New mode macro.
14656 (size): New mode attribute.
14657 (extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.
14658 (*extend[qh]i[sd]i2): New define_insn_and_split, combining previous
14659 *extend[qh]i[sd]i2 and *extend[qh]i[sd]i2_mem patterns. Use only if
14660 !ISA_HAS_SEB_SEH.
14661 (*extend[qh]i[sd]i2_se[bh]): New pattern, combining previous
14662 *extend[qh]isi2_hw patterns and extending them to di.
14663 (extendqihi2): Implement as define_insn_and_split that produces
14664 extendqisi2 after reload.
14665
14666 2004-09-03 Devang Patel <dpatel@apple.com>
14667
14668 * Makefile.in (OBJS-common): Add tree-if-conv.o
14669 (tree-if-conv.o): New rule.
14670 * cfgloop.c (flow_loop_exit_edges_find): Set EDGE_LOOP_EXIT flag.
14671 (get_loop_body_in_bfs_order): New.
14672 * cfgloop.h (get_loop_body_in_bfs_order): New.
14673 * tree-flow.h (enum move_pos): Move here from ..
14674 * tree-ssa-loop-im.c (enum move_pos): here.
14675 (movement_possibility): Make externally visible.
14676 * tree-optimize.c (init_tree_optimization_passes): New entry for
14677 if conversion pass.
14678 * tree-pass.h (pass_if_conversion): New.
14679 * tree-ssa-operands.c (get_expr_operands): Handle COND_EXPR.
14680 * tree-if-conv.c: New file.
14681 * doc/passes.texi: Document tree if-conversion pass.
14682 * doc/tree-ssa.texi: Same.
14683
14684 2004-09-03 H.J. Lu <hongjiu.lu@intel.com>
14685
14686 PR target/14925:
14687 Makefile.in (LIB2ADDEHSTATIC): New.
14688 (LIB2ADDEHSHARED): New.
14689 (LIBUNWIND): New.
14690 (LIBUNWINDDEP): New.
14691 (SHLIBUNWIND_LINK): New.
14692 (SHLIBUNWIND_INSTALL): New.
14693 (libgcc.mk): Pass LIB2ADDEHSTATIC, LIB2ADDEHSHARED, LIBUNWIND,
14694 LIBUNWINDDEP, SHLIBUNWIND_LINK and SHLIBUNWIND_INSTALL.
14695 (clean): Remove libunwind*
14696 (stage1-start): Remove and copy stage1/libunwind*.
14697 (stage2-start): Remove and copy stage2/libunwind*.
14698 (stage3-start): Remove and copy stage3/libunwind*.
14699 (stage4-start): Remove and copy stage4/libunwind*.
14700 (stageprofile-start): Remove and copy stageprofile/libunwind*.
14701 (stagefeedback-start): Remove and copy stagefeedback/libunwind*.
14702
14703 * config.gcc (ia64*-*-linux*): Always add t-libunwind to
14704 tmake_file. Add t-libunwind-elf and ia64/t-glibc-libunwind to
14705 tmake_file if --with-system-libunwind isn't used.
14706
14707 * config/ia64/t-glibc-libunwind: New file.
14708 * config/t-libunwind-elf: Likewise.
14709 * unwind-compat.c: Likewise.
14710 * unwind-compat.h: Likewise.
14711 * unwind-dw2-fde-compat.c: Likewise.
14712
14713 * config/ia64/t-glibc (LIB2ADDEH): Updated.
14714 * config/ia64/t-hpux (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
14715
14716 * config/ia64/unwind-ia64.c: Include "unwind-compat.h". Define
14717 aliases if needed.
14718 * unwind-dw2-fde-glibc.c: Likewise.
14719 * unwind-dw2.c: Likewise.
14720
14721 * config/t-libunwind (LIB2ADDEH): Updated.
14722 (LIB2ADDEHSTATIC): New.
14723 (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
14724 (TARGET_LIBGCC2_CFLAGS): Set to -DUSE_GAS_SYMVER.
14725
14726 * configure.ac: Change --enable-libunwind-exceptions to
14727 --with-system-libunwind. Don't define USE_LIBUNWIND_EXCEPTIONS.
14728 * configure: Regenerated.
14729 * config.in: Updated.
14730
14731 * doc/install.texi (ia64-*-linux): Require libunwind 0.98 or
14732 above and mention --with-system-libunwind.
14733 (ia64-*-hpux*): Mention --enable-libunwind-exceptions is
14734 removed in gcc 3.4.3 and later.
14735
14736 * gcc.c (init_spec): Add -lunwind to -lgcc_s if
14737 USE_LIBUNWIND_EXCEPTIONS is defined.
14738
14739 * mklibgcc.in: Support libunwind.
14740
14741 2004-09-03 H.J. Lu <hongjiu.lu@intel.com>
14742
14743 * config/i386/i386.c (x86_branch_hints): Remove m_PENT4 and
14744 m_NOCONA.
14745
14746 2004-09-03 Richard Henderson <rth@redhat.com>
14747
14748 PR middle-end/9997
14749 * cfgexpand.c (LOCAL_ALIGNMENT): Provide default.
14750 (STACK_ALIGNMENT_NEEDED, FRAME_GROWS_DOWNWARD): Likewise.
14751 (struct stack_var, EOC, stack_vars, stack_vars_alloc, stack_vars_num,
14752 stack_vars_sorted, stack_vars_conflict, stack_vars_conflict_alloc,
14753 frame_phase, get_decl_align_unit, add_stack_var, triangular_index,
14754 resize_stack_vars_conflict, add_stack_var_conflict,
14755 stack_var_conflict_p, add_alias_set_conflicts, stack_var_size_cmp,
14756 union_stack_vars, partition_stack_vars, dump_stack_var_partition,
14757 expand_one_stack_var_at, expand_stack_vars, expand_one_stack_var,
14758 expand_one_static_var, expand_one_hard_reg_var,
14759 expand_one_register_var, expand_one_error_var, defer_stack_allocation,
14760 expand_one_var, expand_used_vars_for_block, clear_tree_used): New.
14761 (expand_used_vars): Rewrite.
14762 * Makefile.in (cfgexpand.o): Update dependencies.
14763
14764 2004-09-04 Jan Hubicka <jh@suse.cz>
14765
14766 * cfg.c (free_edge): Use ggc_free.
14767 (expunge_block): Use ggc_free.
14768 * passes.c (rest_of_clean_state): Free after compilation.
14769 * tree-ssa.c (delete_tree_ssa): Free annotations; call release_defs
14770 * tree-ssanames.c (release_defs): Ignore non-SSA_NAME arguments.
14771
14772 2004-09-03 James E Wilson <wilson@specifixinc.com>
14773
14774 * tree-ssa-alias.c (may_be_aliased): Move TREE_STATIC check after
14775 DECL_EXTERNAL check.
14776
14777 2004-09-03 Eric Botcazou <ebotcazou@libertysurf.fr>
14778
14779 * final.c (output_in_slot): New global variable.
14780 (final_scan_insn): Add new state '2' to the 'nopeepholes' parameter.
14781 Pass 2 as 'nopeepholes' to self for insns in a SEQUENCE. Set
14782 'output_in_slot' before invoking output_asm_insn.
14783 (output_asm_insn): Add a space after the tab if 'output_in_slot'
14784 is set.
14785 * config/sparc/sparc.c (output_return): Pass 2 as 'nopeepholes' to
14786 final_scan_insn.
14787 (output_sibcall): Likewise.
14788
14789 2004-09-03 Jan Hubicka <jh@suse.cz>
14790
14791 * tree-ssa-operands.c (fini_ssa_operands): ggc_free unused arrays.
14792 * tree-ssanames (init_ssanames): Likewise.
14793
14794 2004-09-03 Ziemowit Laski <zlaski@apple.com>
14795
14796 * stub-objc.c (objc_is_id, objc_declare_alias, objc_declare_class,
14797 objc_declare_protocols, objc_start_protocol,
14798 objc_start_class_interface, objc_start_category_interface,
14799 objc_continue_interface, objc_finish_interface,
14800 objc_add_instance_variable, objc_set_visibility, objc_set_method_type,
14801 objc_start_class_implementation, objc_start_category_implementation,
14802 objc_continue_implementation, objc_finish_implementation,
14803 objc_add_method_declaration, objc_start_method_definition,
14804 objc_finish_method_definition, objc_build_keyword_decl,
14805 objc_build_method_signature, objc_build_encode_expr,
14806 objc_build_protocol_expr, objc_build_selector_expr,
14807 objc_build_message_expr, objc_build_string_object,
14808 objc_get_class_reference, objc_get_protocol_qualified_type,
14809 objc_static_init_needed_p, objc_generate_static_init_call): New stubs.
14810
14811 2004-09-03 James E Wilson <wilson@specifixinc.com>
14812
14813 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips3d.
14814
14815 * config/mips/generic.md (generic_frecip_fsqrt_step): New.
14816 * config/mips/mips-ps-3d.md (mips_rsqrt1_<fmt>): Use frsqrt1 type.
14817 (mips_rsqrt2_<fmt>): Use frsqrt2 type.
14818 (mips_recip1_<fmt>): Use frdiv1 type.
14819 (mips_recip2_<fmt>): Use frdiv2 type.
14820 * config/mips/mips.md (type): Add frdiv1, frdiv2, frsqrt1, frsqrt2.
14821 * config/mips/sb1.md (ir_sb1_fpu_2pipes, ir_sb1_fpu_1pipe): Add frdiv1
14822 and frsqrt1.
14823 (ir_sb1_fpu_step2_2pipes, ir_sb1_fpu_step2_1pipe): New.
14824
14825 2004-09-03 Daniel Jacobowitz <dan@debian.org>
14826
14827 * reload.c (find_reloads): Swap operand_loc pointers for
14828 find_dummy_reload if we have swapped two operands.
14829
14830 2004-09-03 Hans-Peter Nilsson <hp@axis.com>
14831
14832 * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn
14833 to get the tablejump-insn before the jump-table label.
14834
14835 2004-09-03 Ziemowit Laski <zlaski@apple.com>
14836
14837 * c-common.h (objc_is_id, objc_declare_alias, objc_declare_class,
14838 objc_declare_protocols, objc_build_message_expr,
14839 objc_finish_message_expr, objc_build_selector_expr,
14840 objc_build_protocol_expr, objc_build_encode_expr,
14841 objc_build_string_object, objc_get_protocol_qualified_type,
14842 objc_get_class_reference, objc_get_class_ivars,
14843 objc_start_class_interface, objc_start_category_interface,
14844 objc_start_protocol, objc_continue_interface, objc_finish_interface,
14845 objc_start_class_implementation, objc_start_category_implementation,
14846 objc_continue_implementation, objc_finish_implementation,
14847 objc_set_visibility, objc_set_method_type, objc_build_method_signature,
14848 objc_add_method_declaration, objc_start_method_definition,
14849 objc_finish_method_definition, objc_add_instance_variable,
14850 objc_build_keyword_decl, objc_build_throw_stmt, objc_begin_try_stmt,
14851 objc_finish_try_stmt, objc_begin_catch_clause,
14852 objc_finish_catch_clause, objc_build_finally_clause,
14853 objc_build_synchronized, objc_static_init_needed_p,
14854 objc_generate_static_init_call): New prototypes.
14855
14856 2004-09-03 Steve Ellcey <sje@cup.hp.com>
14857
14858 * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL even if there
14859 is only one reg.
14860 (ia64_function_value): Ditto.
14861
14862 2004-09-03 Jan Beulich <jbeulich@novell.com>
14863
14864 * config.gcc: Resurrect NetWare as a target. Handle special case of
14865 Novell linker to be used (specified through --with-ld=) and threading
14866 model of either Posix (default) or NKS.
14867 * config/i386/i386.c (ix86_return_pops_args): Conditionalize popping
14868 of incoming hidden argument on KEEP_AGGREGATE_RETURN_POINTER.
14869 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): New.
14870 * config/i386/netware.c, config/i386/netware.h: New.
14871 * config/i386/nwld.c, config/i386/nwld.h: New.
14872 * config/i386/netware-crt0.c: New.
14873 * config/i386/netware-libgcc.c: New.
14874 * config/i386/netware-libgcc.def: New.
14875 * config/i386/netware-libgcc.exp: New.
14876 * config/i386/t-netware, config/i386/t-nwld: New.
14877 * gthr-nks.h: New.
14878 * doc/install.texi: Document NKS threading model.
14879
14880 2004-09-03 Jan Beulich <jbeulich@novell.com>
14881
14882 PR c/7054
14883 * defaults.h (TARGET_DEFAULT_PACK_STRUCT): Provide default.
14884 * tree.h (initial_max_fld_align): Declare
14885 * stor-layout.c (initial_max_fld_align): Define and initialize.
14886 (maximum_field_alignment): Initialize to the same value.
14887 * common.opt: Add -fpack-struct= variant of switch.
14888 * opts.c: Handle -fpack-struct= variant of switch.
14889 * c-pragma.c: Change #pragma pack() handling so that it becomes
14890 compatible to other compilers: accept individual 'push' argument,
14891 make final pop restore (command line) default, correct interaction
14892 of push/pop and sole specification of a new alignment (so that the
14893 sequence #pragma pack(push) - #pragma pack(<n>) becomes identical
14894 to #pragma pack(push, <n>).
14895 * doc/extend.texi: New node "Structure-Packing Pragmas" under
14896 "Pragmas", describing #pragma pack.
14897 * doc/invoke.texi: Document -fpack-struct=<n> variant of switch.
14898 * doc/tm.texi: Adjust description for HANDLE_PRAGMA_PACK_PUSH_POP.
14899 Document new TARGET_DEFAULT_PACK_STRUCT.
14900
14901 2004-09-03 Devang Patel <dpatel@apple.com>
14902
14903 * dwarf2out.c (gen_field_die). Equate decl number to die.
14904
14905 2004-09-03 Vladimir Makarov <vmakarov@redhat.com>
14906
14907 PR target/15832
14908 * global.c (modify_reg_pav): New function.
14909 (make_accurate_live_analysis): Call the new function. Move pavin
14910 modification by earlyclobber set into the new function.
14911
14912 2004-09-03 Andreas Schwab <schwab@suse.de>
14913
14914 * config/m68k/m68k.c (output_andsi3): Use -1 instead of
14915 (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
14916 extended.
14917
14918 2004-09-02 Jan Beulich <jbeulich@novell.com>
14919
14920 * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
14921 * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
14922 not unwind code specific ones.
14923 (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
14924 Remove unwind code specific dependencies.
14925 (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
14926 Remove gbl-ctors.h.
14927 Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
14928 LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
14929 * tsystem.h: Declare memcpy and memset when inhibit_libc.
14930
14931 2004-09-02 Roman Zippel <zippel@linux-m68k.org>
14932
14933 * combine.c (try_combine): Delay modifying of insns which cannot
14934 be easily undone.
14935
14936 2004-09-02 Daniel Berlin <dberlin@dberlin.org>
14937
14938 * gcc/common.opt: Rename ivcanon to tree-loop-ivcanon, tree-lim to
14939 tree-loop-im.
14940 * gcc/tree-ssa-loop.c: Ditto
14941 * gcc/tree-ssa-loop-ivcanon.c: Ditto
14942 * gcc/doc/invoke.texi: Ditto.
14943
14944 2004-09-02 Ziemowit Laski <zlaski@apple.com>
14945
14946 * c-decl.c (store_parm_decls_newstyle): Make static.
14947 (store_parm_decls_from): New function.
14948 * c-tree.h (store_parm_decls_newstyle): Remove prototype.
14949 (store_parm_decls_from): New prototype.
14950
14951 2004-09-02 David Edelsohn <edelsohn@gnu.org>
14952
14953 * config/rs6000/rs6000.c (expand_block_move): Use SImode and
14954 HImode with STRICT_ALIGNMENT.
14955
14956 2004-09-02 Mark Mitchell <mark@codesourcery.com>
14957
14958 * config/arm/bpabi.h (TARGET_BPABI_CPP_BUILTINS): Define.
14959 (TARGET_OS_CPP_BUILTINS): Likewise.
14960 * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Include
14961 TARGET_BPABI_CPP_BUILTINS.
14962
14963 2004-09-02 Roman Zippel <zippel@linux-m68k.org>
14964
14965 * combine.c (distribute_notes): Don't add REG_LABEL to jump insn.
14966
14967 2004-09-02 Eric Christopher <echristo@redhat.com>
14968
14969 * builtins.c (expand_builtin_cabs): Delete.
14970 (expand_builtin): If unable to fold the values do a normal
14971 library call for builtin_cab*.
14972 (fold_builtin_cabs): Depend on optimize and optimize_size.
14973 * optabs.c (expand_cmplxdiv_straight): Delete.
14974 (expand_cmplxdiv_wide): Ditto.
14975 (expand_vector_binop): Ditto.
14976 (expand_vector_unop): Ditto.
14977 (expand_complex_abs): Delete.
14978 (expand_binop): Remove calls to above functions.
14979 Remove open coding of complex arithmetic.
14980 (expand_unop): Ditto.
14981 * optabs.h: Remove prototypes.
14982
14983 2004-09-02 Ziemowit Laski <zlaski@apple.com>
14984
14985 * c-decl.c (store_parm_decls_newstyle): Make externally visible.
14986 * c-tree.h (store_parm_decls_newstyle): New prototype.
14987
14988 2004-09-02 Geoffrey Keating <geoffk@apple.com>
14989
14990 * config/rs6000/rs6000.c (expand_block_clear): Use vector
14991 instructions if available.
14992 (expand_block_move): Likewise.
14993
14994 2004-09-03 Jan Hubicka <jh@suse.cz>
14995
14996 * rtl.def (RANGE_INFO, RANGE_REG, RANGE_VAR, RANGE_LIVE): Kill.
14997
14998 2004-09-02 Mark Mitchell <mark@codesourcery.com>
14999
15000 * config/arm/symbian.h (LIB_SPEC): Define to empty.
15001 * config/arm/t-symbian (SHLIB_LC): Likewise.
15002
15003 2004-09-02 Paul Brook <paul@codesourcery.com>
15004
15005 * config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
15006
15007 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
15008
15009 * config/mips/mips.c (mips_classify_symbol, mips_fetch_insns):
15010 (mips_restore_gp, mips_set_return_address, mips_expand_prologue)
15011 (mips16_fp_args, mips_avoid_hazard): Replace abort with gcc_assert.
15012 (build_mips16_call_stub): Likewise. Remove daft CALL_INSN checks.
15013 (mips_issue_rate): Remove unreachable abort.
15014 (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
15015 (mips_output_move, mips_relational_operand_ok_p, mips_arg_info)
15016 (mips_block_move_straight, print_operand_address, mips_file_start)
15017 (mips_initial_elimination_offset, mips16_fp_args, dump_constants_1)
15018 (mips_output_conditional_branch, mips_expand_builtin_direct)
15019 (mips_expand_builtin_compare): Replace abort with gcc_unreachable.
15020 * config/mips/mips.md (rotr<mode>3, consttable_float): Replace abort
15021 with gcc_assert.
15022
15023 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
15024
15025 * config/mips/mips.md (*lea_high64): Change split condition to
15026 flow2_completed. Add a peephole2 to generate a more parallel version.
15027
15028 2004-09-02 Jan Hubicka <jh@suse.cz>
15029
15030 * gimplify.c (gimplify_compound_lval): Move "stack" varray out of
15031 GGC.
15032
15033 * ggc-page.c: include tree-flow.h.
15034 (extra_order_size_table): Add stmt_ann_d.
15035 (STAT_LABEL): Rename from ....
15036 (LABEL): ... this one.
15037 * Makefile.in (ggc-page.o): Add dependency.
15038
15039 * ggc-common.c (ggc_force_collect): New global variable.
15040 (loc_description): Add fields "freed", "collected"
15041 (ptr_hash): New static hash
15042 (ptr_hash_entry): New structure.
15043 (hash_ptr,eq_ptr,ggc_prune_ptr): New static functions.
15044 (ggc_record_overhead): Take ptr argument, record it
15045 (ggc_prune_overhead_list, ggc_free_overhead): New functions.
15046 (cmp_statistics): Imrove sorting.
15047 (dump_ggc_loc_statistics): Output newly collected statistics
15048 * ggc-page.c (ggc_alloc): Update call of ggc_record_overhead
15049 (ggc_free): Call ggc_free_overhead.
15050 (ggc_collect): Force collection when asked to be forced.
15051 (ggc_collect): Call ggc_prune_overhead_list.
15052 * ggc.h (ggc_force_collect): Declare
15053 (ggc_record_overhead): Update prototype.
15054 (ggc_free_overhead, ggc_prune_overhead_list): Declare.
15055
15056 2004-09-02 James E Wilson <wilson@specifixinc.com>
15057
15058 * common.opt (ftrapping-math): Default to on.
15059
15060 2004-09-02 Richard Earnshaw <rearnsha@arm.com>
15061
15062 * arm/predicates.md (arm_reload_memory_operand): Allow MEM.
15063
15064 2004-09-02 Denis Chertykov <denisc@overta.ru>
15065
15066 PR target/16884
15067 * config/avr/avr.md ("movmemhi"): Substitute match_dup to
15068 match_scratch.
15069 (*movmemqi_insn): Likewise.
15070 (*movmemhi): Likewise.
15071 (clrmemhi): Likewise.
15072 (*clrmemqi): Likewise.
15073 (*clrmemhi): Likewise.
15074
15075 2004-09-02 Paul Brook <paul@codesourcery.com>
15076
15077 * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
15078 default_use_cxa_atexit=yes.
15079
15080 2004-09-02 Alan Modra <amodra@bigpond.net.au>
15081
15082 * config/rs6000/linux64.h: Don't include signal.h or sys/ucontext.h.
15083 (struct kernel_old_ucontext): Delete.
15084 (struct gcc_pt_regs, gcc_sigcontext, gcc_ucontext): New.
15085 (MD_FALLBACK_FRAME_STATE_FOR): Use gcc_* structs. Only define
15086 when IN_LIGGCC2.
15087
15088 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
15089
15090 * toplev.c (process_options): Fix typo.
15091
15092 2004-09-01 Richard Henderson <rth@redhat.com>
15093
15094 PR middle-end/17258
15095 * calls.c (initialize_argument_information): Tighten pass-through
15096 conditions for pass-by-reference. Remove dead TARGET_EXPR code.
15097 Use build_fold_addr_expr.
15098 (emit_library_call_value_1): Use build_fold_addr_expr. Remove code
15099 that assumes ADDR_EXPR allocates stack space.
15100 * fold-const.c (build_fold_addr_expr_with_type): Look through
15101 WITH_SIZE_EXPR.
15102
15103 2004-09-01 Dan Nicolaescu <dann@ics.uci.edu>
15104
15105 * gengenrtl.c (gendef): Use rtx_alloc, don't do PUT_CODE.
15106 * ggc.h (ggc_alloc_rtx): Delete.
15107
15108 2004-09-01 Roger Sayle <roger@eyesopen.com>
15109
15110 * expmed.c (enum alg_code): Remove long unused enumeration values.
15111 (struct mult_cost): New structure to hold the "score" of a synthetic
15112 multiply sequence, including both a rtx_cost and a latency field.
15113 (MULT_COST_LESS): New macro to compare mult_cost to a constant.
15114 (CHEAPER_MULT_COST): New macro to compare two mult_costs.
15115 (struct algorithm): Change type of cost field to be mult_cost.
15116 (synth_mult): Change type of cost_limit argument to be a
15117 pointer to a mult_cost. Update all cost comparisons to use the
15118 new mult_cost infrastructure. For alg_add_factor and
15119 alg_sub_factor operations, latency is lower than the rtx_cost.
15120 (choose_mult_variant): Update calls to synth_mult. Perform
15121 cost comparisons using the new mult_cost infrastructure.
15122 (expand_mult_highpart): Use alg.cost.cost instead of alg.cost
15123 to optain the total rtx_cost of a synth_mult "algorithm".
15124
15125 2004-09-01 David Edelsohn <edelsohn@gnu.org>
15126
15127 * config/rs6000/power4.md: Increase store latency to 12.
15128 * config/rs6000/power5.md: Same.
15129
15130 2004-09-01 James E Wilson <wilson@specifixinc.com>
15131
15132 PR target/14064
15133 * config/avr/avr.c (avr_unique_section): Delete prototype and
15134 definition.
15135 (TARGET_ASM_UNIQUE_SECTION): Delete.
15136
15137 2004-09-01 Ziemowit Laski <zlaski@apple.com>
15138
15139 * c-parse.in (primary): Call objc_build_message_expr(),
15140 objc_build_selector_expr(), objc_build_protocol_expr(),
15141 objc_build_encode_expr() and objc_build_string_object() instead of
15142 build_message_expr(), build_selector_expr(), build_protocol_expr(),
15143 build_encode_expr() and build_objc_string_object(), respectively.
15144 (component_decl_list2): Call objc_get_class_ivars() instead of
15145 get_class_ivars_from_name().
15146 (keyworddecl): Call objc_build_keyword_decl() instead of
15147 build_keyword_decl().
15148 (receiver): Call objc_get_class_reference() instead of
15149 get_class_reference().
15150 (reswords): Add blank line before @@ifobjc section, for clarity.
15151
15152 2002-09-01 Fariborz Jahanian <fjahanian@apple.com>
15153
15154 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
15155 to Altivec vetors.
15156
15157 2004-09-01 Wu Yongwei <adah@sh163.net>
15158 Danny Smith <dannysmith@users.sourceforge.net>
15159
15160 * gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
15161 not Windows 'DWORD'.
15162 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
15163 (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
15164 (__gthr_win32_recursive_mutex_init_function): Add prototype for
15165 __GTHREAD_HIDE_WIN32API case..
15166 (__gthr_win32_recursive_mutex_lock): Likewise.
15167 (__gthr_win32_recursive_mutex_trylock): Likewise.
15168 (__gthr_win32_recursive_mutex_unlock): Likewise.
15169 (__gthread_recursive_mutex_init_function); Add definition for
15170 __GTHREAD_HIDE_WIN32API case.
15171 (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
15172 * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
15173 call to InterlockedDecrement.
15174
15175 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15176
15177 * tree-tailcall.c (find_tail_calls): Also fail is statement has
15178 volatile operands.
15179
15180 * tree-ssa.c (propagate_into_addr): Properly test for LHR.
15181
15182 * doc/c-tree.texi: Document new operands for ARRAY_REF and
15183 COMPONENT_REF.
15184
15185 2004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15186
15187 * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
15188 * common.opt (fspeculative-prefetching): New.
15189 * flags.h (flag_speculative_prefetching_set): Declare.
15190 * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
15191 values.
15192 * opts.c (flag_sepculative_prefetching_set): New variable.
15193 (common_handle_option): Handle -fspeculative-prefetching.
15194 * passes.c (rest_of_compilation): Ditto.
15195 * profile.c (instrument_values, compute_value_histograms, branch_prob):
15196 Use vectors instead of arrays.
15197 * toplev.c (process_options): Handle -fspeculative-prefetching.
15198 * rtl-profile.c: Include ggc.h.
15199 (rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
15200 rtl_gen_one_value_profiler_no_edge_manipulation,
15201 rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
15202 argument changed.
15203 * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
15204 tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
15205 argument changed.
15206 * value-prof.c: Include ggc.h.
15207 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
15208 macros.
15209 (insn_prefetch_values_to_profile, find_mem_reference_1,
15210 find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
15211 speculative_prefetching_transform): New.
15212 (value_profile_transformations): Call speculative_prefetching_transform.
15213 (insn_values_to_profile): Call insn_prefetch_values_to_profile.
15214 (insn_divmod_values_to_profile, rtl_find_values_to_profile,
15215 tree_find_values_to_profile, find_values to profile): Use vectors
15216 instead of arrays.
15217 (free_profiled_values): Removed.
15218 * value-prof.h (struct histogram_value): Renamed to
15219 struct histogram_value_t.
15220 (histogram_value, histogram_values): New types.
15221 (find_values_to_profile): Declaration changed.
15222 (free_profiled_values): Removed.
15223 (struct profile_hooks): Type of argument of the hooks changed to
15224 histogram_value.
15225 * doc/invoke.texi (-fspeculative-prefetching): Document.
15226
15227 2004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15228
15229 PR rtl-optimization/16408
15230 * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.
15231
15232 2004-09-01 Richard Henderson <rth@redhat.com>
15233
15234 * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
15235 (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
15236
15237 2004-09-01 Jakub Jelinek <jakub@redhat.com>
15238
15239 * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
15240
15241 2004-09-01 Mike Stump <mrs@apple.com>
15242
15243 * config/darwin.c (machopic_symbol_defined_p): In addition to
15244 being SYMBOL_REF_LOCAL_P, a symbol must also be
15245 ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
15246 defined in this output file, or translation unit in the case
15247 of IMA not being used.
15248 (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
15249 never need .indirect_symbol when indirecting.
15250
15251 2004-09-01 Jakub Jelinek <jakub@redhat.com>
15252
15253 * Makefile.in (bb-reorder.o): Add several dependencies.
15254
15255 2004-09-01 Jakub Jelinek <jakub@redhat.com>
15256
15257 * fold-const.c (operand_equal_p): Require equal sign also for
15258 FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
15259
15260 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
15261
15262 * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
15263 for use in configargs.h. Put the cname in a separate variable. Use
15264 that to set target_cpu_default2.
15265
15266 2004-09-01 J"orn Rennecke <joern.rennecke@superh.com>
15267 Nick Clifton <nickc@redhat.com>
15268
15269 * config/sh/sh.md ("length"): Increase branch length when
15270 SH1 pic code to 18: 12 bytes of instructions, 4 byte for the
15271 constant, 2 byte for aligning the constant.
15272
15273 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
15274
15275 * arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
15276 CPU.
15277 (arm7tdmi-s): New CPU name.
15278 * arm/arm.c (ARM_CORE): Update for new format.
15279 * arm/arm.h (ARM_CORE): Likewise.
15280 * arm/gentune.sh: Update for extra field.
15281 * config.gcc: Likewise.
15282 * arm/arm-tune.md: Regenerate.
15283 * doc/invoke.texi: Document the real processor names for ARM cpus.
15284
15285 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
15286
15287 * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
15288 (floatdidf): New functions.
15289 * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
15290 (floatdisf): New functions.
15291 * t-arm-elf: Use them.
15292
15293 2004-09-01 Ziemowit Laski <zlaski@apple.com>
15294
15295 * c-common.h (lookup_interface): Remove prototype.
15296 (is_class_name): Rename to objc_is_class_name.
15297 (lookup_objc_ivar): Rename to objc_lookup_ivar.
15298 (get_current_scope): Rename to objc_get_current_scope.
15299 * c-decl.c (get_current_scope): Rename to objc_get_current_scope.
15300 * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
15301 (yylexname): Call objc_is_class_name() instead of is_class_name().
15302 * c-typeck.c (build_external_ref): Call objc_lookup_ivar()
15303 instead of lookup_objc_ivar().
15304 * stub-objc.c (lookup_interface): Remove stub.
15305 (is_class_name): Rename to objc_is_class_name.
15306 (lookup_objc_ivar): Rename to objc_lookup_ivar.
15307
15308 2004-08-31 Mark Mitchell <mark@codesourcery.com>
15309
15310 * config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
15311 * config/arm/lib1funcs.asm: Do not include supplemental .S files
15312 when compiling for Symbian.
15313 * config/arm/symbian.h (RENAME_LIBRARY): New macro.
15314 (TARGET_OS_CPP_BUILTINS): Likewise.
15315 * config/arm/t-symbian (LIB1ASMFUNCS): Define.
15316
15317 2004-08-31 Stan Shebs <shebs@apple.com>
15318
15319 * toplev.c (process_options): Ensure debug_hooks is initialized.
15320
15321 2004-08-31 Mark Mitchell <mark@codesourcery.com>
15322
15323 * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
15324 * target.h (cxx): Add export_class_data.
15325 * config/arm/arm.c (arm_cxx_export_class_data): New function.
15326 (TARGET_CXX_EXPORT_CLASS_DATA): Use it.
15327 * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Document it.
15328
15329 2004-08-31 Kaz Kojima <kkojima@gcc.gnu.org>
15330
15331 * config/sh/sh.c (output_branch): Check the insn length possibly
15332 in the delayed slot.
15333
15334 2004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15335
15336 * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
15337 blank after ')'.
15338 (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.
15339
15340 * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
15341 (c_sizeof_of_alignof_type): Likewise.
15342 * expr.c (array_ref_element_size): Likewise.
15343 (highest_pow2_factor_for_target): Likewise.
15344 * gimplify.c (canonicalize_addr_expr): Likewise.
15345 (gimplify_compound_lval): Likewise.
15346 * stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
15347 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
15348 * varasm.c (assemble_variable): Likewise.
15349 (output_constant_def_contents): Alignments are unsigned.
15350
15351 2004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15352 Jeff Law <law@redhat.com>
15353
15354 * tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
15355 gets modified.
15356
15357 2004-08-31 Mark Mitchell <mark@codesourcery.com>
15358
15359 * hooks.c (hook_bool_void_true): New function.
15360 * hooks.h (hook_bool_void_true): Declare.
15361 * target-def.h (TARGET_CXX): Add
15362 TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.
15363 * target.h (struct cxx): Add key_method_may_be_inline.
15364 * config/arm/arm.c (arm_cxx_key_method_may_be_inline): New
15365 function.
15366 (TARGET_CXX_KEY_METHOD_MAY_BE_INLINE): New macro.
15367 * config/arm/bpabi.h: Use __THUMB_INTERWORK__ instead of
15368 __THUMB_INTERWORK.
15369
15370 2004-08-31 Denis Chertykov <denisc@overta.ru>
15371
15372 PR target/15417
15373 * config/avr/avr.c (avr_hard_regno_mode_ok): Enable usage of
15374 frame pointer register only in Pmode while reload in progress.
15375
15376 2004-08-31 Stephane Carrez <stcarrez@nerim.fr>
15377
15378 PR target/15334
15379 * config/m68hc11/m68hc11.c (m68hc11_override_options): Disable -fweb
15380 because it breaks the 32-bit shift patterns that rely on a match_dup.
15381
15382 2004-08-31 Matt Austern <austern@apple.com>
15383
15384 * config/darwin.c (darwin_make_decl_one_only): Allocate section
15385 names once per compilation, instead of once per symbol.
15386
15387 2004-08-31 Paolo Bonzini <bonzini@gnu.org>
15388
15389 * Makefile.in (build_subdir): New substitution.
15390 (fixinc.sh): Simplify heavily since fixincludes is already built.
15391 (stmp-fixinc): Depend on specs.ready.
15392 (install-mkheaders): Use new location of fixincludes.
15393 (clean): Do not descend into fixinc.
15394 (FORBUILD): Replace with ../$(build_subdir).
15395 * configure.ac (build_subdir): Substitute.
15396 (FORBUILD): Do not set.
15397 (all_outputs): Remove fixinc/Makefile.
15398 (default commands): Do not create links in fixinc.
15399 * mkfixinc.sh: New, from fixinc/mkfixinc.sh without
15400 the fixincludes configuration steps and substituting
15401 @FIXINCL@ in fixinc.in.
15402 * fixinc.in: New, from fixinc/fixincl.sh.
15403
15404 * fixinc/*: Removed.
15405
15406 2004-08-31 Joseph S. Myers <jsm@polyomino.org.uk>
15407
15408 * attribs.c (strip_attrs): Remove.
15409 (split_specs_attrs): Move ...
15410 * c-decl.c: ... to here.
15411 * tree.h (split_specs_attrs, strip_attrs): Remove.
15412 * c-tree.h (split_specs_attrs): Declare.
15413
15414 2004-08-31 Richard Sandiford <rsandifo@redhat.com>
15415
15416 * read-rtl.c: Disable RTL checking.
15417 (apply_macro_to_rtx): Use XTMPL to access 'T' fields.
15418
15419 2004-08-31 Richard Sandiford <rsandifo@redhat.com>
15420
15421 * config/mips/mips.md (fcond): New code macro and attribute.
15422 (sunordered_[sd]f, suneq_[sd]f, sunlt_[sd]f, sunle_[sd]f)
15423 (seq_[sd]f, slt_[sd]f, sle_[sd]f): Redefine using :SCALARF and fcond.
15424 (sgt_[sd]f, sge_[sd]f): Redefine using :SCALARF.
15425
15426 2004-08-30 Mark Mitchell <mark@codesourcery.com>
15427
15428 Revert:
15429 2004-08-29 Mark Mitchell <mark@codesourcery.com>
15430 PR rtl-optimization/16590
15431 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
15432
15433 2004-08-30 Andrew Pinski <apinski@apple.com>
15434
15435 * hard-reg-set.h:
15436 s/HOST_BITS_PER_WIDES_FAST_INT/HOST_BITS_PER_WIDEST_FAST_INT.
15437 * ChangeLog: Fix previous ChangeLog entry.
15438
15439 PR rtl-opt/13987
15440 * config.host (use_long_long_for_widest_fast_int): New, default is
15441 off.
15442 (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int.
15443 * configure.ac: If use_long_long_for_widest_fast_int, then
15444 define USE_LONG_LONG_FOR_WIDEST_FAST_INT.
15445 * configure: Regenerate.
15446 * config.in: Regenerate.
15447 * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT):
15448 New: widest integer type supported efficiently in hardware for the
15449 host.
15450 * sbitmap.h (SBITMAP_ELT_BITS): Define based on
15451 HOST_BITS_PER_WIDEST_FAST_INT.
15452 (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT.
15453 * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on
15454 HOST_WIDEST_FAST_INT
15455 instead of HOST_WIDE_INT.
15456 (HARD_REG_SET_LONGS): Likewise.
15457 (UHOST_BITS_PER_WIDE_INT): Likewise.
15458 Change the checks for the fast cases to be based on
15459 HOST_BITS_PER_WIDEST_FAST_INT instead of HOST_BITS_PER_WIDE_INT.
15460
15461 2004-08-30 Steven Bosscher <stevenb@suse.de>
15462
15463 * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
15464 not the pointers.
15465
15466 2004-08-30 Geoffrey Keating <geoffk@apple.com>
15467
15468 PR 12738
15469 PR 17205
15470 Radar 3460526
15471 Radar 3775729
15472 * c-decl.c (grokdeclarator): Produce error for 'static' on local
15473 function declaration.
15474
15475 2004-08-30 Richard Henderson <rth@redhat.com>
15476
15477 * expr.c (array_ref_element_size): Force aligned_size back to
15478 sizetype.
15479 (component_ref_field_offset): Similarly for aligned_offset.
15480 * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
15481 low-bound, element-size, field-offset fields rather than
15482 computed values.
15483
15484 2004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
15485
15486 * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
15487 redundant code.
15488
15489 2004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
15490
15491 * c-tree.h (struct language_function): Add arg_info element.
15492 * c-decl.c (current_function_arg_info): New.
15493 (grokdeclarator, store_parm_decls): Use it instead of
15494 DECL_ARGUMENTS.
15495 (c_push_function_context, c_pop_function_context): Save and
15496 restore it.
15497
15498 2004-08-30 Richard Henderson <rth@redhat.com>
15499
15500 * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
15501 COMPONENT_REF to pointer arithmetic.
15502 * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
15503 constant "c" as a valid constant initializer. Allow narrowing of
15504 differences against the same base object, for any base object.
15505
15506 2004-08-30 Richard Henderson <rth@redhat.com>
15507
15508 * expr.c (expand_expr_addr_expr): New.
15509 (expand_expr_real_1) <case ADDR_EXPR>: Use it.
15510
15511 2004-08-30 Richard Sandiford <rsandifo@redhat.com>
15512
15513 * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
15514 (mips_fp_condition): New enum.
15515 (mips_fp_conditions): New array.
15516 (print_fcc_operand): Delete.
15517 (print_operand): Remove %V, %v and %Q. Redefine %Z so that it prints
15518 the operand and comma if and only if ISA_HAS_8CC. Add %Y.
15519 (builtin_description): Add "cond" field.
15520 (DIRECT_BUILTIN): Initialize it.
15521 (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
15522 into INSN and CODE. Initialize the "cond" field.
15523 (CMP_BUILTINS): Update accordingly.
15524 (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
15525 (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
15526 mips_fp_condition as argument. Make it the final operand of the
15527 comparison instruction.
15528 (mips_expand_builtin): Update accordingly.
15529 * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
15530 (UNSPEC_C, UNSPEC_CABS): New constants. Shuffle others to fill
15531 the gaps.
15532 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
15533 Don't use the 'Q' operand prefix; just print the operand normally.
15534 (mips_cabs_*, mips_c_*): Delete, replacing with...
15535 (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
15536 patterns. Split the 4s versions into 2 ps patterns after reload.
15537
15538 2004-08-30 Richard Henderson <rth@redhat.com>
15539
15540 * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
15541 assuming an ADDR_EXPR is non-null.
15542
15543 2004-08-30 Jason Merrill <jason@redhat.com>
15544
15545 * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
15546
15547 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
15548
15549 * alias.c (mems_in_disjoint_alias_sets_p, record_alias_subset,
15550 record_set, rtx_equal_for_memref_p, init_alias_analysis): Use
15551 gcc_assert and gcc_unreachable instead of abort.
15552 * alloc-pool.c (abort, fancy_abort): Remove.
15553 (create_alloc_pool, free_alloc_pool, pool_alloc, pool_free): Use
15554 gcc_assert or gcc_unreachable.
15555 * attribs.c (init_attributes, decl_attributes): Likewise.
15556 * bb-reorder.c (FREE, find_traces_1_round, copy_bb,
15557 mark_bb_for_unlikely_executed_section,
15558 add_labels_and_missing_jumps, fix_crossing_conditional_branches,
15559 fix_crossing_unconditional_branches): Likewise.
15560 * bitmap.c (bitmap_first_set_bit, bitmap_last_set_bit,
15561 bitmap_operation): Likewise.
15562 * bt-load.c (insn_sets_btr_p, augment_live_range,
15563 move_btr_def): Likewise.
15564 * builtins.c (c_readstr, expand_builtin_longjmp, apply_args_size,
15565 apply_result_size, expand_builtin_apply, expand_builtin_mathfn,
15566 expand_builtin_mathfn_2, expand_builtin_mathfn_3,
15567 builtin_memcpy_read_str, expand_movstr, expand_builtin_stpcpy,
15568 expand_builtin_memcmp, expand_builtin_args_info,
15569 std_gimplify_va_arg_expr, expand_builtin_unop,
15570 expand_builtin_fputs, expand_builtin_profile_func,
15571 expand_builtin_fork_or_exec, fold_builtin_bitop,
15572 fold_builtin_classify, fold_builtin_fputs): Likewise.
15573
15574 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
15575
15576 * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
15577 * gcov.c (abort): Remove undef.
15578
15579 * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
15580 (struct tree_binfo): Remove primary field.
15581
15582 2004-08-30 Paolo Bonzini <bonzini@gnu.org>
15583
15584 * fixinc/Makefile.in (machname.h): Remove.
15585 (fixincl.x): Do not pass $@ to genfixes.
15586 * fixinc/genfixes: Remove code to produce machname.h.
15587 * fixinc/fixincl.sh: Move it here instead.
15588 * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
15589 instead check if pz_mn_name_pat is NULL. Make mn_get_regexps
15590 return a bool indicating whether pz_mn_name_pat is NULL.
15591 * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
15592 Declare extern C variables for the ENV_TABLE.
15593 * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
15594 instead use the result of mn_get_regexps.
15595 * fixinc/fixtests.c: Likewise.
15596
15597 2004-08-30 Paolo Bonzini <bonzini@gnu.org>
15598
15599 * configure.ac: Do not run fixincludes after stage1 during
15600 toplevel bootstrap.
15601 * configure: Regenerate.
15602
15603 2004-08-30 Richard Earnshaw <rearnsha@arm.com>
15604
15605 * sched-deps.c (get_condition): Partially revert previous, by never
15606 trying to extract the condition from a condjump.
15607
15608 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
15609
15610 * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
15611 (handle_visibility_attribute, c_determine_visibility): Likewise.
15612 * c-common.h (my_friendly_assert): Remove.
15613
15614 2004-08-30 Richard Sandiford <rsandifo@redhat.com>
15615
15616 * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
15617 (UNSPEC_{RSQRT,RECIP}[12]): New constants.
15618 (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
15619 * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
15620 (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
15621
15622 2004-08-30 Diego Novillo <dnovillo@redhat.com>
15623
15624 * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
15625 in COMPONENT_REF nodes.
15626
15627 2004-08-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
15628
15629 PR c++/15378
15630 * c-opts.c (c_common_handle_option): <case OPT_Werror> set
15631 global_dc->warning_as_error_requested.
15632 * diagnostic.c (diagnostic_initialize): Tidy.
15633 * diagnostic.h (diagnostic_context::x_data): Remove
15634 (diagnostic_context::issue_warnings_are_errors_message): Rename
15635 from warnings_are_errors_message.
15636 (diagnostic_context::warning_as_error_requested): New.
15637
15638 2004-08-30 Richard Earnshaw <rearnsha@arm.com>
15639
15640 * sched-deps.c (get_condition): Fix breakage in previous patch.
15641
15642 2004-08-30 Paul Brook <paul@codesourcery.com>
15643
15644 * doc/install.texi: Fix broken mpfr link.
15645
15646 2004-08-29 David O'Brien <obrien@FreeBSD.org>
15647
15648 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
15649 other FreeBSD platforms.
15650
15651 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
15652
15653 * arm.h (REVERSE_CONDITION): Define.
15654 (REVERSIBLE_CC_MODE): All comparisons are now reversible.
15655
15656 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
15657
15658 * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
15659 just the codes, call reversed_comparison_code ().
15660 (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
15661 (not_reg_cond): Use reversed_comparison_code.
15662 (and_reg_cond): Likewise.
15663 * ifcvt.c (cond_exec_process_if_block): Likewise.
15664 * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
15665
15666 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
15667
15668 * sched-deps.c (get_condition): Rewrite using jump support functions.
15669 Use reversed_comparison_code.
15670 (conditions_mutex_p): Use reversed_comparison_code.
15671
15672 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15673
15674 * config/mips/mips.c (override_options): Disable hot/cold partitioning
15675 for MIPS16.
15676
15677 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15678
15679 * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
15680 (mips_function_type): Move to mips.c.
15681 * config/mips/mips.c (mips_builtin_type): New enum.
15682 (builtin_description): Replace code and ftype with builtin_type
15683 and function_type.
15684 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
15685 (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
15686 (CODE_FOR_mips_abs_ps): Define.
15687 (mips_bdesc): Use new macros.
15688 (mips_expand_builtin): Use builtin_type. Update calls to subroutines.
15689 (mips_init_builtins): Use the mips_bdesc[] index as the function code.
15690 (mips_expand_builtin_direct): New function.
15691 (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
15692 builtin. Replace boolean parameter with builtin_type.
15693 (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
15694 (mips_expand_4s_compare_builtin): Delete, replacing with...
15695 (mips_expand_builtin_compare): ...this new function.
15696
15697 2004-08-29 Mark Mitchell <mark@codesourcery.com>
15698
15699 PR rtl-optimization/16590
15700 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
15701
15702 2004-08-29 Diego Novillo <dnovillo@redhat.com>
15703
15704 * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
15705 * tree-ssa-propagate.c: Fix documentation.
15706
15707 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15708
15709 * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
15710 (mov[sd]fcc): Likewise.
15711
15712 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15713
15714 * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
15715
15716 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15717
15718 * config/mips/mips.md (divide_condition): New mode attribute.
15719 (div[sd]f3, *div[sd]f3): Use it. Redefine using :SCALARF.
15720 (sqrt[sd]f3): Redefine using SCALARF.
15721 (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise. Name formerly unnamed
15722 patterns.
15723
15724 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15725
15726 * config/mips/mips.md (ANYF, SCALARF): New mode macros.
15727 (loadx, storex, fmt, UNITMODE): New mode attributes.
15728 (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
15729 (mul[sd]f3): Redefine using :SCALARF.
15730 (*mul[sd]f3): Renamed from mul[sd]f3_internal. Use :SCALARF.
15731 (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
15732 (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns. Use :ANYF.
15733 Check TARGET_FUSED_MADD for V2SF too.
15734 (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
15735 were already named.
15736 (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
15737 (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
15738
15739 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15740
15741 * config/mips/mips.c (mips_init_builtins): Simplify. Only create
15742 V2SF_type_node if it will be needed.
15743
15744 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15745
15746 * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
15747 * config/mips/mips.c (mips_prepare_builtin_arg): New function.
15748 (mips_prepare_builtin_target): New function.
15749 (mips_expand_builtin): Use them. Update calls to subroutines.
15750 (mips_expand_ps_cond_move_builtin): Use the new functions. Replace
15751 cmp_choice with a boolean argument to select between movt and movf.
15752 Take the comparison's icode as an argument, not the function's fcode.
15753 (mips_expand_compare_builtin): New function. Rename existing function
15754 to mips_expand_scalar_compare_builtin.
15755 (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
15756 (mips_expand_ps_compare_builtin): Use the new functions. Take the
15757 comparison's icode as an argument, not the builtin's fcode.
15758
15759 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15760
15761 * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
15762 (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
15763 registers are false and -1 if all registers are true.
15764 (mips_expand_ps_compare_builtin): Likewise CCV2. Use subregs for
15765 MIPS_CMP_UPPER and MIPS_CMP_LOWER.
15766 * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
15767 (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
15768 (bc1any2t, bc1any2f): Likewise CCV2.
15769 (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
15770
15771 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
15772
15773 * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
15774 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
15775 UNSPEC rather than an IF_THEN_ELSE.
15776 * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
15777 mips_cond_move_tf_ps by name.
15778
15779 2004-08-29 Chao-ying Fu <fu@mips.com>
15780 James E Wilson <wilson@specifixinc.com>
15781
15782 * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
15783 8 byte size and alignment. Give CCV4 16 byte size and alignment.
15784 * config/mips/mips-ps-3d.md: New file.
15785 * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
15786 TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
15787 (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
15788 (mips_output_move): Emit "mov.ps" for V2SFmode.
15789 (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
15790 MODE_VECTOR_FLOAT.
15791 (override_options): Check if TARGET_MIPS3D and there was an explicit
15792 !TARGET_PAIRED_SINGLE_FLOAT. Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
15793 Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
15794 TARGET_PAIRED_SINGLE_FLOAT is true. Check if the ISA supports
15795 TARGET_PAIRED_SINGLE_FLOAT. Allow MODE_VECTOR_FLOAT in fp registers,
15796 and allow CCV2 and CCV4 to occupy two and four CC registers.
15797 (print_fcc_operand): New function.
15798 (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC. Modify
15799 %Z to call print_fcc_operand.
15800 (mips_function_value): Handle MODE_VECTOR_FLOAT.
15801 (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
15802 (mips_vector_mode_supported_p): New function.
15803 (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
15804 (builtin_description): New struct.
15805 (mips_bdesc): New array of struct builtin_description.
15806 (mips_expand_builtin, mips_init_builtins,
15807 mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
15808 mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
15809 functions.
15810 * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
15811 (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
15812 (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
15813 (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
15814 "-mips3d", and "-mno-mips3d".
15815 (ASM_SPEC): Map -mips3d to -mips3d in gas.
15816 (EXTRA_CONSTRAINT_Y): New macro.
15817 (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT. Add new
15818 multi-letter constraint 'Y'.
15819 (CONSTRAINT_LEN): New macro.
15820 (enum mips_builtins): New for MIPS builtin functions.
15821 (enum mips_function_type): New for the types of MIPS builtin functions.
15822 (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
15823 * config/mips/mips.md: New constants for paired single and MIPS-3D
15824 instructions. Include the new mips-ps-3d.md file.
15825 (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
15826 movv2sf_hardfloat_64bit): New named patterns.
15827 (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
15828 nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
15829 sdxc1_v2sf_di): New unnamed patterns.
15830 * config/mips/predicates.md (const_0_operand, const_1_operand): Add
15831 const_vector support.
15832 (const_0_or_1_operand): New predicate.
15833 * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
15834
15835 2004-08-29 Diego Novillo <dnovillo@redhat.com>
15836
15837 * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
15838 (tree-ssa-propagate.o): New rule.
15839 (GTFILES): Add tree-ssa-propagate.c.
15840 * tree-flow.h (struct stmt_ann_d): Remove field
15841 in_ccp_worklist.
15842 * tree-ssa-propagate.c: New file.
15843 * tree-ssa-propagate.h: New file.
15844 * tree-ssa-ccp.c: Re-write to use the routines from
15845 tree-ssa-propagate.c.
15846
15847 2004-08-28 Andrew Pinski <apinski@apple.com>
15848
15849 * tree-ssa-loop.c: Remove extra include of basic-block.h.
15850
15851 2004-08-28 Ziemowit Laski <zlaski@apple.com>
15852
15853 * c-common.h: Update comments about ObjC/ObjC++ entry points.
15854 (objc_is_reserved_word): New prototype.
15855 (get_current_scope, objc_mark_locals_volatile): Move prototypes to
15856 separate section; these are call-backs.
15857 * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
15858 ObjC/ObjC++ "@" keywords.
15859 * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
15860 prototypes; they already live in c-common.h.
15861 * stub-objc.c: Update copyright notice.
15862 (objc_is_reserved_word): New stub.
15863
15864 2004-08-28 Nathan Sidwell <nathan@codesourcery.com>
15865
15866 * system.h (gcc_assert): Remove __builtin_expect. Evaluate EXPR
15867 even when not checking.
15868
15869 2004-08-27 Jason Merrill <jason@redhat.com>
15870
15871 PR c++/13684
15872 * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
15873 (gimple_push_cleanup): Add eh_only parm.
15874 (gimplify_target_expr): Pass it.
15875 * c.opt (-fno-threadsafe-statics): New option.
15876 * c-opts.c (c_common_handle_option): Handle it.
15877 * c-common.h (flag_threadsafe_statics): Declare it.
15878 * c-common.c (flag_threadsafe_statics): Record it.
15879 * doc/invoke.texi: Document it.
15880 * tsystem.h (_GNU_SOURCE): Define.
15881 * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
15882 (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
15883 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
15884 (__gthread_recursive_mutex_init_function): New fn.
15885 (__gthread_recursive_mutex_lock): New fn.
15886 (__gthread_recursive_mutex_trylock): New fn.
15887 (__gthread_recursive_mutex_unlock): New fn.
15888 * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
15889 * gthr-win32.h, gthr-vxworks.h: Likewise.
15890 * gthr.h: Document.
15891
15892 2004-08-27 David Edelsohn <edelsohn@gnu.org>
15893
15894 * config/rs6000/rs6000.c (rs6000_override_options): Increase
15895 maximum skip to 15. Set function alignment, jump alignment, and
15896 loop alignment to 16 for processors that form dispatch groups.
15897 (rs6000_rtx_costs): outer_code is used.
15898
15899 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
15900
15901 * stor-layout.c (sizetype_set): Remove.
15902 (set_sizetype): Don't test or set it.
15903
15904 * tree.h (size_int_type): Remove.
15905 * fold-const.c: Do not #include gt-fold-const.h.
15906 (size_htab_hash, size_htab_eq): Remove.
15907 (size_int_kind): Use build_int_cst.
15908 (new_const, size_htab): Remove.
15909 (size_int_type): Remove.
15910 (round_up): Use build_int_cst.
15911 (round_down): Likewise. Remove spurious constant build.
15912
15913 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
15914
15915 * configure.ac: Add ENABLE_ASSERT_CHECKING control.
15916 Add is_release variable, use it for --enable-werror and
15917 --enable-checking defaults.
15918 * system.h (gcc_assert, gcc_unreachable): New.
15919 * doc/install.texi (--enable-checking): Update.
15920 * configure, config.in: Rebuilt.
15921
15922 2004-08-26 Richard Sandiford <rsandifo@redhat.com>
15923
15924 * rtl.h (read_rtx): Change prototype.
15925 * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
15926 line number. Return true on success.
15927 * gensupport.c (process_include, init_md_reader_args_cb): Adjust
15928 callers accordingly.
15929
15930 2004-08-26 Richard Henderson <rth@redhat.com>
15931
15932 * c-typeck.c (build_offsetof): Remove.
15933 * c-tree.h (build_offsetof): Remove.
15934 * c-common.c (fold_offsetof_1, fold_offsetof): New.
15935 * c-common.h (fold_offsetof): Declare.
15936 * c-parse.in (offsetof_base): New.
15937 (offsetof_member_designator): Use it. Build references, not just
15938 a tree list.
15939 (primary): Use fold_offsetof, not build_offsetof.
15940
15941 2004-08-26 Richard Henderson <rth@redhat.com>
15942
15943 * tree.c (staticp): Return the static object.
15944 * tree.h (staticp): Update decl.
15945 * langhooks.h (struct lang_hooks): Change staticp return type to tree.
15946 * langhooks.c (lhd_staticp): Return NULL_TREE.
15947 * langhooks-def.h (lhd_staticp): Update decl.
15948 * c-common.c (c_staticp): Return the static object.
15949 * c-common.h (c_staticp): Update decl.
15950
15951 2004-08-26 Richard Henderson <rth@redhat.com>
15952
15953 * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
15954 modes.
15955
15956 2004-08-26 Joseph S. Myers <jsm@polyomino.org.uk>
15957
15958 PR c/13801
15959 * c-decl.c (struct c_binding): Add type and inner_comp fields.
15960 (bind): Set type and inner_comp fields.
15961 (pop_scope): Restore type of decl to the correct type from an
15962 outer scope. Give error when popping file scope for incomplete
15963 arrays completed incompatibly with default initialization in an
15964 inner scope.
15965 (diagnose_mismatched_decls): Handle externs with initializers at
15966 block scope.
15967 (pushdecl): Set type of external declaration at block scope based
15968 only on the visible declarations. Save type when changing the
15969 type of a declaration. Merge an external declaration at block
15970 scope with a visible static declaration at file scope.
15971 (implicitly_declare): Give recycled old declaration the new type
15972 except for incompatible declarations of built-in functions, saving
15973 the old type.
15974
15975 2004-08-26 Ziemowit Laski <zlaski@apple.com>
15976
15977 * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
15978
15979 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
15980
15981 * tree-alias-common.c (gate_pta): New function.
15982 (pass_build_pta): Use it.
15983 (pass_del_pta): Use it.
15984 (delete_alias_vars): Don't check flag_tree_points_to.
15985
15986 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
15987
15988 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
15989 TFmode as additional register mode cloberred by call.
15990
15991 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
15992
15993 * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
15994 parallel pattern for library call returning DImode in
15995 mixed mode.
15996
15997 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
15998
15999 * config/rs6000/rs6000.c (function_arg): Generate parallel
16000 pattern for more split args.
16001
16002 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
16003
16004 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
16005 either gen_movdi_di_update or gen_movdi_si_update depending on
16006 target mode.
16007 * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
16008 to generate two versions.
16009
16010 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
16011
16012 * Makefile.in (lambda-code.o): New.
16013 (lambda-trans.o): Ditto.
16014 (TREE_DATA_REF_H): Ditto.
16015 (LAMBDA_H): Ditto.
16016 (lambda-mat.o): Use LAMBDA_H.
16017 (tree-data-ref.o): Ditto.
16018 * lambda-code.c: New file. Lambda code generation algorithm.
16019 * lambda-trans.c: Ditto. Lambda transformation matrix support.
16020 * lambda.h: Add lambda loop structures.
16021 Add lambda loopnest structures.
16022 Add lambda body vector structure.
16023 Add lambda linear expression structures.
16024 Add prototypes for functions in new files.
16025 * lambda-mat.c: Include tree.h
16026
16027 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
16028 Sebastian Pop <pop@cri.ensmp.fr>
16029
16030 * tree-data-ref.h: Include lambda.h
16031 (free_dependence_relation): Declared here.
16032 (free_dependence_relations): Ditto.
16033 (free_data_refs): Ditto.
16034 * tree-data-ref.c (free_dependence_relation): New function.
16035 (free_dependence_relations): Ditto.
16036 (free_data_refs): Ditot.
16037 (analyze_all_data_dependences): Free datarefs and dependence_relations.
16038 (build_classic_dist_vector): Store in the dependence_relations the
16039 information. Each arc in the dependence_relations graph is labelled
16040 with the distance and direction vectors.
16041 (build_classic_dir_vector): Ditto.
16042 (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
16043 Now computes again the whole dependence graph including read-read
16044 relations.
16045 (compute_data_dependences_for_loop): Now dependence_relations contains
16046 all the data, and thus it doesn't need to initialize the classic_dir
16047 and classic_dist vectors.
16048 (analyze_all_data_dependences): Adjusted for using the new interface of
16049 compute_data_dependences_for_loop. Remove the statistics dump.
16050
16051 2004-08-26 Bob Wilson <bob.wilson@acm.org>
16052
16053 * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
16054 (xtensa_expand_block_move): Update comment.
16055 (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
16056
16057 2004-08026 Richard Earnshaw <rearnsha@arm.com>
16058
16059 PR target/13506
16060 * toplev.c (crash_signal): If we crashed while emitting
16061 a user asm, then die more gracefully.
16062
16063 2004-08-26 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
16064
16065 PR target/17119.
16066 * config/m32r.c (gen_compare): Use reg_or_int16_operand when
16067 checking for a valid constant, regardless of sign.
16068
16069 2004-08-25 Richard Henderson <rth@redhat.com>
16070
16071 PR target/16974
16072 * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
16073 if the constant satisfies add_operand.
16074
16075 2004-08-25 Richard Henderson <rth@redhat.com>
16076
16077 PR debug/10695
16078 * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
16079 (alpha_expand_prologue): Handle >32-bit frames. Generate proper
16080 unwind info for >16-bit frames.
16081
16082 2004-08-25 Richard B. Kreckel <richard.kreckel@framatome-anp.com>
16083
16084 PR target/17171
16085 * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
16086
16087 2004-08-25 Richard Henderson <rth@redhat.com>
16088
16089 * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
16090 (TARGET_CANNOT_FORCE_CONST_MEM): New.
16091
16092 2004-08-25 Andrew MacLeod <amacleod@redhat.com>
16093
16094 * doc/tree-ssa.texi: Document new operand iterator.
16095
16096 2004-08-26 Alan Modra <amodra@bigpond.net.au>
16097
16098 PR target/16480
16099 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
16100 on "(mem (symbol_ref ..))" rtl. Look at LO_SUM base regs as well
16101 as PLUS base regs.
16102
16103 2005-08-28 Paul Brook <paul@codesourcery.com>
16104
16105 * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
16106 -mfpu=vfp -march=armv5t
16107 * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
16108
16109 2004-08-25 Richard Henderson <rth@redhat.com>
16110
16111 * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
16112 * target.h (struct gcc_target): Add scalar_mode_supported_p.
16113 * targhooks.c (default_scalar_mode_supported_p): New.
16114 * targhooks.h (default_scalar_mode_supported_p): Declare.
16115 * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
16116
16117 * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
16118 before attempting to create types. Tidy.
16119 * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
16120
16121 * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
16122 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
16123
16124 2004-08-25 Richard Henderson <rth@redhat.com>
16125
16126 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
16127 set REAL_MODE_FORMAT for TFmode.
16128
16129 2004-08-25 Ziemowit Laski <zlaski@apple.com>
16130
16131 * c-decl.c (grokparm): New function.
16132 * c-tree.h (grokparm): New prototype.
16133
16134 2004-08-25 Andrew MacLeod <amacleod@redhat.com>
16135
16136 * tree-ssa-operands.h (struct ssa_operand_iterator_d): New. SSA operand
16137 iterator controlling structure.
16138 (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
16139 SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
16140 SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New. Operand
16141 iterator flags.
16142 (FOR_EACH_SSA_TREE_OPERAND): New. Iterate over operands as trees.
16143 (FOR_EACH_SSA_USE_OPERAND): New. Iterate over operands as uses.
16144 (FOR_EACH_SSA_DEF_OPERAND): New. Iterate over operands as defs.
16145 (FOR_EACH_SSA_MAYDEF_OPERAND): New. Iterate over V_MAY_DEFs.
16146 * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
16147 Empty operand pointers.
16148 * tree-flow-inline.h (op_iter_done): New. Return true if finished.
16149 (op_iter_next_use): New. Return next use_operand_p.
16150 (op_iter_next_def): New. Return next def_operand_p.
16151 (op_iter_next_tree): New. Return next operands as a tree.
16152 (op_iter_init): New. Initialize an iterator structure.
16153 (op_iter_init_use): New. Initialize structure and get the first use.
16154 (op_iter_init_def): New. Initialize structure and get the first def.
16155 (op_iter_init_tree): New. Initialize structure and get the first tree.
16156 (op_iter_next_maydef): New. Return next V_MAY_DEF operands.
16157 (op_iter_init_maydef): New. Initialize structure and get the first
16158 V_MAY_DEF operands.
16159 * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
16160 * tree-dfa.c (compute_immediate_uses_for_stmt,
16161 redirect_immediate_uses): Use new operand iterator.
16162 (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
16163 (mark_new_vars_to_rename): Use new operand iterator. Count virtual
16164 operands instead of using *_disappeared_p routines.
16165 * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
16166 ssa_rewrite_stmt): Use new operand iterator.
16167 * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
16168 rewrite_trees): Use new operand iterator.
16169 * tree-pretty-print.c (dump_vops): Use new operand iterator.
16170 * tree-sra.c (mark_all_v_defs): Use new operand iterator.
16171 * tree-ssa-alias.c (compute_points_to_and_addr_escape,
16172 dump_points_to_info): Use new operand iterator.
16173 * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
16174 replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
16175 operand iterator.
16176 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
16177 propagate_necessity): Use new operand iterator.
16178 * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
16179 (register_definitions_for_stmt): Use new operand iterator. Take stmt as
16180 a parameter instead of a stmt_ann_t.
16181 * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
16182 build_tree_conflict_graph): Use new operand iterator.
16183 * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
16184 rewrite_mem_refs): Use new operand iterator.
16185 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
16186 check_loop_closed_ssa_use): Use new operand iterator.
16187 * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
16188 * tree-ssanames.c (release_defs): Use new operand iterator.
16189 * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
16190
16191 2004-08-25 Adam Nemet <anemet@lnxw.com>
16192
16193 * tlink.c (initial_cwd): New variable.
16194 (tlink_init): Initialize it.
16195 (recompile_files): Use tlink_execute() instead of system(). Don't
16196 duplicate verbose output of collect_execute. Restore initial_cwd.
16197 Update comment before the function.
16198
16199 2004-08-25 Ziemowit Laski <zlaski@apple.com>
16200
16201 * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
16202 accept) a cast from one Objective-C pointer type to another.
16203
16204 2004-08-25 Paolo Carlini <pcarlini@suse.de>
16205
16206 * doc/install.texi: Document that libstdc++-v3 requires
16207 now automake 1.9.1.
16208
16209 2004-08-25 Caroline Tice <ctice@apple.com>
16210
16211 * bb-reorder.c (partition_hot_cold_basic_blocks): Add more details
16212 to comments at start of function.
16213 * cfgbuild.c (make_edges): Add more details to hot/cold partitioning
16214 comment.
16215 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
16216 merge_blocks_move_predecessor_nojumps,
16217 merge_blocks_move_successor_nojumps, merge_blocks_move,
16218 try_crossjump_to_edge, try_crossjump_bb): Likewise.
16219 * cfglayout.c (fixup_reorder_chain): Likewise.
16220 * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
16221 cfg_layout_can_merge_blocks_p): Likewise.
16222 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
16223 * passes.c (rest_of_compilation): Update comments for calling
16224 optimization that partitions hot/cold basic blocks.
16225 * doc/invoke.texi: Update documentation of
16226 freorder-blocks-and-partition flag.
16227
16228 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
16229
16230 * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
16231 (*mov*_on_*): Adjust accordingly. Add an explicit MOVECC: prefix.
16232
16233 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
16234
16235 * config/mips/mips.md (any_shift): New code macro.
16236 (optab, insn): New code attributes.
16237 ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
16238 Use the standard rather than internal patterns for the MIPS16
16239 double-shift optimization.
16240 (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
16241 Redefine using :GPR and any_shift.
16242 (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
16243 to cover all three shifts.
16244 (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
16245 Redefine using any_shift. Use :GPR and any_shift to combine splitters.
16246 (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
16247
16248 2004-08-24 Geoffrey Keating <geoffk@apple.com>
16249
16250 * gimplify.c (lookup_tmp_var): Separate temporaries when not
16251 optimizing.
16252
16253 2004-08-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16254
16255 PR libstdc++/17005 (fix for HP-UX 11.11)
16256 * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
16257 (hppa*-*-hpux*): Consolidate hppa1.0-*-* code. Rework handling of
16258 tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
16259 * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
16260 * config/pa/pa-hpux.h (TARGET_HPUX): Define.
16261 (LINK_SPEC): Handle march=1.0 option.
16262 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
16263 and _XOPEN_SOURCE_EXTENDED for UNIX 95.
16264 (SUBTARGET_OPTIONS): New define.
16265 (LINK_SPEC): Handle march=1.0 option.
16266 (STARTFILE_SPEC): New define.
16267 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
16268 and _XOPEN_SOURCE_EXTENDED for UNIX 95. Additionally, predefine
16269 _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
16270 (SUBTARGET_OPTIONS): New define.
16271 (LINK_SPEC): Handle march=1.0 option.
16272 (STARTFILE_SPEC): New define.
16273 * config/pa/pa.c (override_options): Add code to process -munix= option.
16274 * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
16275 (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
16276 defines.
16277 (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
16278 (SUBTARGET_OPTIONS): Provide default define.
16279 * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
16280 STANDARD_STARTFILE_PREFIX_2): New defines.
16281 (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
16282 (ENDFILE_SPEC): Use %O.
16283 * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
16284 Mention issue caused by changing namespace and runtime to UNIX 95/98.
16285 * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
16286 Document -munix=std option.
16287
16288 2004-08-25 Steven Bosscher <stevenb@suse.de>
16289
16290 * cse.c (cse_around_loop, cse_check_loop_start,
16291 cse_set_around_loop): Remove.
16292 (cse_basic_block): Remove the around_loop argument.
16293 (cse_end_of_basic_block): Remove the after_loop argument.
16294 (cse_main): Likewise.
16295 * rtl.h (cse_main): Update prototype.
16296 * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
16297 rest_of_handle_gcse): Update cse_main calls.
16298
16299 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
16300
16301 * tree.h (build_int_cst): New, sign extended constant.
16302 (build_int_cstu): New, zero extended constant.
16303 (build_int_cst_wide): Renamed from build_int_cst.
16304 * tree.c (build_int_cst, build_int_cstu): New.
16305 (build_int_cst_wide): Renamed from build_int_cst.
16306 (make_vector_type, build_common_tree_nodes,
16307 build_common_tree_nodes_2): Adjust build_int_cst calls.
16308 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
16309 expand_builtin_strpbrk, expand_builtin_fputs,
16310 build_string_literal, expand_builtin_printf,
16311 expand_builtin_sprintf, fold_builtin_classify_type,
16312 fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
16313 fold_builtin_toascii, fold_builtin_isdigit,
16314 simplify_builtin_strstr, simplify_builtin_strpbrk,
16315 fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
16316 * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
16317 DEF_ATTR_INT): Likewise.
16318 * c-decl.c (complete_array_type, check_bitfield_type_and_width):
16319 Likewise.
16320 * c-lex.c (interpret_integer, lex_charconst): Likewise.
16321 * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
16322 * c-pretty-print.c (pp_c_integer_constant): Likewise.
16323 * c-typeck.c (really_start_incremental_init, push_init_level,
16324 set_nonincremental_init_from_string): Likewise.
16325 * calls.c (load_register_parameters): Likewise.
16326 convert.c (convert_to_pointer): Likewise.
16327 coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
16328 build_fn_info_type, build_fn_info_value, build_ctr_info_value,
16329 build_gcov_info): Likewise.
16330 * except.c (init_eh, assign_filter_values): Likewise.
16331 * expmed.c (store_fixed_bit_field, extract_bit_field,
16332 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
16333 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
16334 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
16335 * expr.c (convert_move, emit_group_load, emit_group_store,
16336 expand_assignment, store_constructor, store_field,
16337 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
16338 fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
16339 invert_truthvalue, optimize_bit_field_compare,
16340 decode_field_reference, all_ones_mask_p, constant_boolean_node,
16341 fold_div_compare, fold, fold_read_from_constant_string,
16342 fold_negate_const, fold_abs_const, fold_not_const, round_up,
16343 round_down): Likewise.
16344 * function.c (assign_parm_setup_block): Likewise.
16345 * stmt.c (shift_return_value, expand_case, estimate_case_costs):
16346 Likewise.
16347 * stor-layout.c (layout_type, initialize_sizetypes,
16348 set_min_and_max_values_for_integral_type): Likewise.
16349 * tree-chrec.c (chrec_fold_multiply_poly_poly,
16350 reset_evolution_in_loop): Likewise.
16351 * tree-chrec.h (build_polynomial_chrec): Likewise.
16352 * tree-complex.c (build_replicated_const): Likewise.
16353 * tree-eh.c (honor_protect_cleanup_actions,
16354 lower_try_finally_onedest, lower_try_finally_copy,
16355 lower_try_finally_switch): Likewise.
16356 * tree-mudflap.c (mf_build_string, mx_register_decls,
16357 mudflap_register_call, mudflap_enqueue_constant): Likewise.
16358 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
16359 * tree-pretty-print.c (dump_generic_node): Likewise.
16360 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
16361 Likewise.
16362 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
16363 * tree-ssa-loop-niter.c (number_of_iterations_cond,
16364 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
16365 Likewise.
16366 * tree-ssa-loop-ivcanon.c (create_canonical_iv,
16367 canonicalize_loop_induction_variables): Likewise.
16368 * tree-vectorizer.c (vect_create_index_for_array_ref,
16369 vect_transform_loop_bound, vect_compute_data_ref_alignment):
16370 Likewise.
16371
16372 * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
16373 alpha_gimplify_va_arg_1): Likewise.
16374 * config/arm/arm.c (arm_get_cookie_size): Likewise.
16375 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
16376 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
16377 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
16378 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
16379 mips_gimplify_va_arg_expr): Likewise.
16380 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
16381 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
16382 add_compiler_branch_island): Likewise.
16383 * config/s390/s390.c (s390_va_start): Likewise.
16384 * config/sh/sh.c (sh_va_start): Likewise.
16385 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
16386 Likewise.
16387 * config/xtensa/xtensa.c (xtensa_va_start,
16388 xtensa_gimplify_va_arg_expr): Likewise.
16389
16390 * objc/objc-act.c (build_objc_string_object,
16391 build_objc_symtab_template, init_def_list, init_objc_symtab,
16392 init_module_descriptor, generate_static_references,
16393 build_selector_translation_table, get_proto_encoding,
16394 build_typed_selector_reference, build_selector_reference,
16395 build_next_objc_exception_stuff,
16396 build_method_prototype_list_template, generate_descriptor_table,
16397 generate_protocols, build_protocol_initializer,
16398 build_ivar_list_template, build_method_list_template,
16399 build_ivar_list_initializer, generate_ivars_list,
16400 generate_dispatch_table, generate_protocol_list,
16401 build_category_initializer, build_shared_structure_initializer,
16402 generate_shared_structures, handle_impent,
16403 generate_objc_image_info): Likewise.
16404
16405 2004-04-25 Paolo Bonzini <bonzini@gnu.org>
16406
16407 * cfglayout.c (duplicate_insn_chain): Remove references to
16408 NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
16409 * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
16410 * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
16411 * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
16412 and NOTE_INSN_LOOP_CONT.
16413 * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
16414 * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
16415 and NOTE_INSN_LOOP_CONT.
16416 * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
16417 check_dbra_loop, loop_dump_aux): Remove references to removed notes
16418 and fields.
16419 * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
16420 * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
16421 references to removed notes and fields.
16422 (subtract_reg_term, ujump_to_loop_cont): Remove.
16423
16424 2004-08-25 Paolo Bonzini <bonzini@gnu.org>
16425
16426 * doc/install.texi: Document that libcpp does not require
16427 Automake any longer. Document that Automake 1.9.1 should
16428 work everywhere.
16429
16430 2004-08-25 Zack Weinberg <zack@codesourcery.com>
16431
16432 * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
16433 * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
16434 DWARF_DEBUGGING_INFO from choice-of-definition chain;
16435 restructure using C89 features (#elif, #error).
16436 * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
16437 * config/sh/sh.h: Remove references to DWARF_DEBUG.
16438 * doc/invoke.texi: Remove references to DWARF version 1;
16439 clarify why -gdwarf-2<n> doesn't work.
16440
16441 2004-08-25 Zack Weinberg <zack@codesourcery.com>
16442
16443 * basic-block.h (BB_SET_PARTITION): Clear old value first.
16444 * cfg.c (clear_bb_flags): Don't clear partition setting.
16445 * ifcvt.c (find_if_case_1): Remove ??? comment.
16446
16447 2004-08-25 Alan Modra <amodra@bigpond.net.au>
16448
16449 PR target/17052
16450 * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
16451 * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
16452 current_function_stdarg in place of sysv_varargs_p.
16453 * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
16454 sysv_varargs_p.
16455
16456 2004-08-24 Richard Henderson <rth@redhat.com>
16457
16458 PR target/16298
16459 * config/i386/i386.c (legitimate_constant_p): Rework to not accept
16460 random codes within CONST.
16461
16462 2004-08-24 James E Wilson <wilson@specifixinc.com>
16463
16464 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
16465 -freorder-blocks-and-partition.
16466
16467 2004-08-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16468
16469 PR middle-end/17044
16470 * tree-ssa-threadupdate.c (redirection_data): Make static.
16471 (thread_block): Use ggc_alloc_cleared to allocate struct
16472 redirection_data. Don't free elements in redirection_data.
16473
16474 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16475
16476 * config/mips/predicates.md (small_data_pattern): Match prefetches.
16477
16478 2004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16479
16480 PR tree-optimization/17016
16481 * tree-ssa-loop-niter.c (number_of_iterations_cond,
16482 number_of_iterations_exit): Use POINTER_TYPE_P instead
16483 of testing for POINTER_TYPE.
16484
16485 2004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16486
16487 * tree-ssa-loop-ivcanon.c: New file.
16488 * tree-ssa-loop-manip.c (create_iv): New function.
16489 * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
16490 (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
16491 * cfgloop.c (mark_single_exit_loops): New function.
16492 (verify_loop_structure): Verify single-exit loops.
16493 * cfgloop.h (struct loop): Add single_exit field.
16494 (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
16495 (mark_single_exit_loops): Declare.
16496 (tree_num_loop_insns): Declare.
16497 * cfgloopmanip.c (update_single_exits_after_duplication): New function.
16498 (duplicate_loop_to_header_edge): Use it.
16499 * common.opt (fivcanon): New flag.
16500 * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
16501 * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
16502 (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
16503 (bsi_insert_on_edge_immediate): New function.
16504 * tree-flow.h (bsi_insert_on_edge_immediate,
16505 canonicalize_induction_variables, tree_unroll_loops_completely,
16506 create_iv): Declare.
16507 * tree-optimize.c (init_tree_optimization_passes): Add
16508 pass_iv_canon and pass_complete_unroll.
16509 * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
16510 * tree-scalar-evolution.c (get_loop_exit_condition,
16511 get_exit_conditions_rec, number_of_iterations_in_loop,
16512 scev_initialize): Use single_exit information.
16513 * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
16514 missing assumptions.
16515 (loop_niter_by_eval): Return number of iterations as unsigned
16516 int.
16517 * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
16518 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
16519 tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
16520 New passes.
16521 (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
16522 * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
16523 the defining statement is ready.
16524 * tree-vectorizer.c (vect_create_iv_simple): Removed.
16525 (vect_create_index_for_array_ref, vect_transform_loop_bound):
16526 Use create_iv.
16527 (vect_transform_loop_bound): Use single_exit information.
16528 (vect_analyze_loop_form): Cleanup bogus tests.
16529 (vectorize_loops): Do not call flow_loop_scan.
16530 * tree.h (may_negate_without_overflow_p): Declare.
16531 * fold-const.c (may_negate_without_overflow_p): Split out from ...
16532 (negate_expr_p): ... this function.
16533 (tree_expr_nonzero_p): Handle overflowed constants correctly.
16534 * doc/invoke.texi (-fivcanon): Document.
16535 * doc/passes.texi: Document canonical induction variable creation.
16536
16537 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16538
16539 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
16540 * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
16541 using the mode of the operand to decide between them.
16542 * config/mips/mips.md (MOVECC): New mode macro.
16543 (ccreg): New mode attribute.
16544 (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
16545 Redefine using :GPR and :MOVECC. Use %T and %t for the condition.
16546 (mov[sd]icc): Redefine using :GPR.
16547
16548 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16549
16550 * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
16551 (mips_prefetch_cookie): New function.
16552 * config/mips/mips.c (print_operand_address): Fix handling of
16553 ADDRESS_CONST_INT.
16554 (mips_emit_prefetch): Delete.
16555 (mips_prefetch_cookie): New function.
16556 * config/mips/mips.md (prefetch): Turn into a define_insn. Use a
16557 mode of QImode for the address_operand. Use mips_prefetch_cookie
16558 to calculate the first "pref" operand.
16559 (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
16560 (prefetch_indexed_[sd]i): Redefine using :P. Use mips_prefetch_cookie.
16561
16562 2004-08-24 Richard Earnshaw <rearnsha@arm.com>
16563
16564 * arm.md: Include predicates.md.
16565 * predicates.md: New file.
16566 * arm.c (s_register_operand, arm_hard_register_operand)
16567 (arm_general_register_operand, f_register_operand, reg_or_int_operand)
16568 (arm_immediate_operand, arm_neg_immediate_operand)
16569 (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
16570 (arm_add_operand, arm_addimm_operand, arm_not_operand)
16571 (offsettable_memory_operand, alignable_memory_operand)
16572 (arm_reload_memory_operand, arm_float_rhs_operand)
16573 (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
16574 (index_operand, shiftable_operator, logical_binary_operator)
16575 (shift_operator, equality_operator, arm_comparison_operator)
16576 (minmax_operator, cc_register, dominant_cc_register)
16577 (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
16578 (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
16579 (const_shift_operand, load_multiple_operation)
16580 (store_multiple_operation, multi_register_push, thumb_cmp_operand)
16581 (thumb_cmpneg_operand, thumb_cbrch_target_operand)
16582 (cirrus_register_operand, cirrus_fp_register)
16583 (cirrus_shift_const): Delete, replaced with equivalents in
16584 predicates.md.
16585 (shift_op): Handle ROTATE.
16586 * arm-protos.h: Delete declarations for above.
16587 * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
16588 * t-arm (MD_INCLUDES): Add predicates.md.
16589 (s-preds): Depends on MD_INCLUDES.
16590
16591 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16592
16593 * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
16594 * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
16595 patterns. Redefine using :GPR. Give the match_operator a mode.
16596 Use '%2' rather than '%z2' for operand 2.
16597
16598 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16599
16600 * config/mips/mips.md (load_call[sd]i): Redefine using :P. Add mode
16601 attribute.
16602
16603 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16604
16605 * config/mips/mips.md (indirect_jump): Use force_reg. Adjust names
16606 of internal patterns.
16607 (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
16608 Redefine using :P.
16609 (tablejump): Use expand_binop to calculate address. Adjust names
16610 of internal patterns.
16611 (tablejump[sd]i): Renamed from tablejump_internal[12].
16612 Redefine using :P.
16613 (tablejump_mips16[12]): Delete.
16614
16615 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16616
16617 * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
16618 (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
16619 (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
16620 (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
16621 (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
16622
16623 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
16624
16625 * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
16626 (*branch_zero[sd]i): Renamed from branch_zero{,_di}. Redefine
16627 using :GPR.
16628 (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
16629 (*branch_equality[sd]i): Likewise branch_equality{,_di}.
16630 (*branch_equality[sd]i_inverted): Likewise
16631 branch_equality{,_di}_inverted.
16632 (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
16633 Redefine using :GPR.
16634
16635 2004-08-24 Zack Weinberg <zack@codesourcery.com>
16636
16637 * rtl.def: Reorganize, placing all codes used only in machine
16638 descriptions at the end.
16639
16640 * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
16641 * gengtype.c: Don't include rtl.h. Define enum rtx_code and
16642 rtx_name, rtx_format arrays by direct reference to rtl.def,
16643 first undefining GENERATOR_FILE. Define enum insn_note and
16644 note_insn_name array by direct reference to insn-notes.def.
16645 (adjust_field_rtx_def): Remove local definition of rtx_name.
16646 Use symbolic names for insn notes.
16647 * Makefile.in (gengtype.o): Update dependencies.
16648
16649 2004-08-24 Zack Weinberg <zack@codesourcery.com>
16650
16651 * basic-block.h (struct basic_block_def): Reorder fields to
16652 eliminate interior padding. Remove 'partition' field.
16653 (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
16654 (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
16655 (BB_COPY_PARTITION): New macros.
16656 * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
16657 Replace all references to the 'partition' field of a basic
16658 block with new macros.
16659
16660 * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
16661 * final.c (final_scan_insn): Don't handle it.
16662 * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
16663 instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
16664 * sched-rgn.c (sched_is_disabled_for_current_region_p):
16665 Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
16666
16667 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
16668
16669 * c-decl.c (c_init_decl_processing): Adjust
16670 build_common_tree_nodes call.
16671 * expmed.c (const_mult_add_overflow_p): Use
16672 build_distinct_type_copy.
16673 * stor-layout.c (early_type_list): Remove.
16674 (layout_type): Don't append to early_type_list.
16675 (initialize_sizetypes): Add signed_p argument.
16676 (set_sizetype): Overwrite the stub type nodes directly.
16677 * tree.c (copy_node_stat): Clear a type's value cache here ...
16678 (build_distinct_type): ... not here.
16679 (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
16680 * tree.h (initialize_sizetypes): Add signed_p argument.
16681 (build_common_tree_nodes): Likewise.
16682
16683 * objc/objc-act.c (get_static_reference): Use
16684 build_variant_type_copy.
16685 (get_protocol_reference): Likewise.
16686 * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
16687
16688 2004-08-24 Richard Henderson <rth@redhat.com>
16689 Andrew Pinski <apinski@apple.com>
16690
16691 * gimplify.c (gimplify_array_ref_to_plus): Delete.
16692 (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
16693 for ARRAY_REF.
16694
16695 * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
16696 ARRAY_REF also to get to the STRING_CST.
16697
16698 2004-08-24 Paul Brook <paul@codesourcery.com>
16699
16700 * config/arm/arm.c (arm_override_options): Update error message.
16701 * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
16702 TARGET_HARD_FLOAT_ABI.
16703 (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
16704 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
16705
16706 2004-08-24 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
16707
16708 PR target/17093
16709 * config/m32r.md (movsi_sda): Add SI mode specification to
16710 UNSPEC.
16711
16712 2004-08-24 Nick Clifton <nickc@redhat.com>
16713
16714 * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
16715 of seth_add3_operand.
16716
16717 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
16718
16719 * Makefile.in (PROTO_OBJS): Add errors.o.
16720 * protoize.c (fancy_abort): Remove.
16721 * mips-tfile.c (fancy_abort): Add parameters.
16722
16723 2004-08-24 Jonathan Wakely <redi@gcc.gnu.org>
16724
16725 * doc/trouble.texi (C++ misunderstandings): Fix example code.
16726
16727 2004-08-24 Andreas Tobler <a.tobler@schweiz.ch>
16728
16729 * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
16730 (host-default.o): Add dependency on HOOKS_H.
16731 * config/x-linux: Likewise.
16732 * config/x-solaris: Likewise.
16733 * config/i386/x-mingw32: Likewise.
16734 * config/rs6000/x-darwin: Likewise.
16735
16736 2004-08-23 James E Wilson <wilson@specifixinc.com>
16737
16738 * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
16739 DEF_REG_NOTE.
16740
16741 2004-08-23 Mark Mitchell <mark@codesourcery.com>
16742
16743 PR c/14492
16744 * dwarf2out.c (loc_descriptor_from_tree): Robustify.
16745
16746 2004-08-23 Diego Novillo <dnovillo@redhat.com>
16747
16748 * cfg.c (check_bb_profile): Fix typos.
16749 * function.c (assign_parm_is_stack_parm): Likewise.
16750 * tree-nested.c: Likewise.
16751
16752 2004-08-23 Daniel Jacobowitz <dan@debian.org>
16753
16754 * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
16755 Remove TYPECODE.
16756 (ggc_alloc_zone_1): Mark TYPE as unused. Don't save it in the chunk.
16757
16758 2004-08-23 Eric Christopher <echristo@redhat.com>
16759
16760 * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
16761 * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
16762 * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
16763 * target.h: Ditto.
16764 * hooks.h: Include machmode.h.
16765 (hook_bool_mode_false): Declare.
16766 * hooks.c (hook_bool_mode_false): Define.
16767 * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
16768 * stor-layout.c (layout_type): Ditto.
16769 * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
16770 Define to target macro.
16771 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
16772 * config/arm/arm.c: Ditto. Use.
16773 * config/arm/arm.h: Ditto.
16774 * config/arm/arm-protos.h: Ditto.
16775 * config/i386/i386.c: Ditto.
16776 * config/i386/i386.h: Ditto.
16777 * config/rs6000/rs6000.c: Ditto.
16778 * config/rs6000/rs6000.h: Ditto.
16779 * config/sh/sh.c: Ditto.
16780 * config/sh/sh.h: Ditto.
16781 * config/sh/sh-protos.h: Ditto.
16782 * config/sh/sh.md: Use.
16783 * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
16784 to TARGET_VECTOR_MODE_SUPPORTED_P.
16785
16786 2004-08-23 Nathan Sidwell <nathan@codesourcery.com>
16787
16788 * Makefile.in (BUILD_ERRORS): Set to build-errors.
16789 (errors.o): New target for host.
16790 (build-errors.o): New target for build.
16791 (genobjs): Replace errors.o with build-errors.
16792 (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
16793 (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
16794 (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
16795 (fix-header.o): Add errors.h
16796 * collect2.c (fancy_abort): Add parameters.
16797 * collect2.h (fancy_abort): Don't declare.
16798 * errors.h (fancy_abort): Don't declare.
16799 * errors.c: Include either bconfig.h or config.h.
16800 (fancy_abort): Trim filename.
16801 * fix-header.c (v_fatal, fatal): Remove.
16802 (progname): Remove definition.
16803 (main): Set progname here.
16804 * gcc.c (fancy_abort): Add parameters.
16805 * gcc.h (fancy_abort): Remove declaration.
16806 * gcov.c (fancy_abort): Remove.
16807 * rtl.h (fancy_abort): Don't declare.
16808 (abort): Don't define.
16809 * tree.h (fancy_abort): Don't declare.
16810 (abort): Don't define.
16811 * system.h (fancy_abort): Declare.
16812 (abort): Define to fancy_abort.
16813 * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
16814
16815 * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
16816 (usize_type, ubitsizetype): Remove.
16817 * stor-layout.c (set_sizetype): Don't initialize usizetype,
16818 ubitsizetype.
16819 * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
16820
16821 * tree.h (build_distinct_type_copy): New.
16822 (build_type_copy): ... here. Rename to ...
16823 (build_variant_type_copy): ... here.
16824 * tree.c (build_qualified_type): Rename build_type_copy call.
16825 (build_distinct_type_copy): New, broken out of ...
16826 (build_type_copy): ... here. Rename to ...
16827 (build_variant_type_copy): ... here. Use
16828 build_distinct_type_copy.
16829 (build_common_tree_nodes_2): Rename build_type_copy call.
16830 * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
16831 call.
16832 (handle_packed_attribute, handle_unused_attribute,
16833 handle_transparanet_union_attribute, handle_aligned_attribute,
16834 handle_deprecated_attribute): Likewise.
16835 * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
16836 Likewise.
16837 * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
16838 * config/rs6000/rs6000.c (rs6000_init_builtins): Use
16839 build_distinct_type_copy.
16840
16841 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16842
16843 * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR. Add mode
16844 attribute.
16845
16846 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16847
16848 * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
16849 loads and stores.
16850 (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
16851 formerly unnamed patterns. Redefine using :P for the address. Remove
16852 explicit length attributes.
16853
16854 2004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16855
16856 * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
16857 New functions.
16858 (single_reachable_address): Use them.
16859 (schedule_sm): Add dump.
16860 (is_call_clobbered_ref): New function.
16861 (determine_lsm_reg): Check whether the reference is call clobbered.
16862 Only work for gimple_reg_type values.
16863
16864 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16865
16866 * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
16867 $31 store insns. Redefine using :GPR.
16868
16869 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16870
16871 * config/mips/mips.md (P): New mode macro.
16872 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
16873 (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
16874 Add mode attributes.
16875
16876 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16877
16878 * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
16879 (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants. Shuffle
16880 later constants to cover the gap.
16881 (load, store): New mode attributes.
16882 (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
16883 Use new unspec constants.
16884
16885 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16886
16887 * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
16888 (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise. Change 32-bit patterns
16889 to use register_operand rather than uns_arith_operand as the predicate
16890 for operand 1. Remove redundant MIPS16 force_reg() for operand 1.
16891 (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
16892 Redefine using :GPR. Make same predicate change here. Extend the
16893 commutativity of operands 1 and 2 from the SImode version to the
16894 DImode one.
16895 (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
16896 but with no predicate changes.
16897 (*nor[sd]i3): Redefine using :GPR.
16898
16899 2004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16900
16901 * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
16902 noreturn functions.
16903
16904 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16905
16906 * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
16907 * config/mips/mips.md (abs[sd]i2): Redefine using :GPR. Only use
16908 branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY. Use "%."
16909 rather than "%z2" (with a fake const0_rtx for operand 2).
16910 (ffs[sd]i2): Redefine using :GPR.
16911 (clz[sd]i2): Likewise. Use ISA_HAS_CLO_CLZ for the 64-bit case.
16912
16913 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16914
16915 * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
16916
16917 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16918
16919 * config/mips/mips.md (any_extend): New code macro.
16920 (u, su): New code attributes.
16921 ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
16922 ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
16923 ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
16924 (*{s,u}mul_acc_di): Redefine using any_extend.
16925 (*{,u}muls_di, *{s,u}msac_di): Likewise. Change names of patterns
16926 to reflect real insn names.
16927 (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
16928 with an any_extend template.
16929 ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
16930 Add '*' to name.
16931
16932 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16933
16934 * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
16935 * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
16936 (mul[sd]i3_r4000): Redefine using :GPR.
16937 (mulsi3_mult3): Don't check TARGET_MAD separately.
16938 (muldi3_mult3): Moved after mulsi_mult3.
16939
16940 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16941
16942 * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
16943 OBJECT_FORMAT_ELF. Set MASK_SPLIT_ADDR by default if using GNU ld.
16944 * config/mips/mips.h (MASK_GAS): Delete. Shuffle later masks down.
16945 (TARGET_GAS, TARGET_MIPS_AS): Delete.
16946 (TARGET_GPWORD): Define to true for n32 on IRIX.
16947 (TARGET_SWITCHES): Remove -mmips-as. Turn -mgas into a no-op.
16948 (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
16949 (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
16950 (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
16951 (MDEBUG_ASM_SPEC): Delete, folding into...
16952 (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
16953 (ASM_SPEC): Inline old GAS_ASM_SPEC. Use GNU names for ABI switches.
16954 (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
16955 subtarget_mips_as_asm_spec, mdebug_asm_spec. Use MULTILIB_ABI_DEFAULT
16956 to define asm_abi_default_spec.
16957 (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
16958 (TARGET_ASM_SELECT_SECTION): Delete.
16959 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
16960 for non-mips16 code, removing previous workaround for SGI assemblers.
16961 (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
16962 (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
16963 (override_options): Remove !TARGET_GAS and !have_named_sections code.
16964 (print_operand): Fold TARGET_GAS conditionals into asm strings.
16965 (mips_output_filename): Remove !TARGET_GAS code. Replace use of
16966 ASM_STABS_OP and ASM_STABN_OP.
16967 (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
16968 (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
16969 (mips_output_function_prologue): Remove !TARGET_GAS code.
16970 (mips_select_rtx_section): Remove !have_named_sections code.
16971 (mips_select_section): Delete.
16972 * config/mips/mips.md (trap): Remove !TARGET_GAS check.
16973 * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
16974 * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
16975 (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
16976 * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
16977 * config/mips/windiss.h (ASM_SPEC): Likewise.
16978
16979 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
16980
16981 * read-rtl.c (map_value, mapping, macro_group): New structures.
16982 (BELLWETHER_CODE): New macro.
16983 (modes, codes, bellwether_codes): New variables.
16984 (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
16985 (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
16986 (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
16987 (add_condition_to_rtx, apply_macro_traverse, add_mapping)
16988 (add_map_value, initialize_macros): New functions.
16989 (def_hash, def_hash_eq_p): Generalize to anything that points to,
16990 or starts with, a char * field.
16991 (find_macro, read_mapping, check_code_macro): New functions.
16992 (read_rtx_1): New, split out from read_rtx. Handle the new
16993 define_{mode,code}_{macro,attr} constructs. Use find_macro
16994 to parse the name of a code or mode. Use BELLWETHER_CODE to
16995 extract the format and to choose a suitable code for rtx_alloc.
16996 Modify recursive invocations to use read_rtx_1.
16997 (read_rtx): Call initialize_macros. Apply code and mode macros
16998 to the rtx returned by read_rtx_1. Cache everything after the
16999 first macro expansion for subsequent read_rtx calls.
17000 * doc/md.texi: Document new .md constructs.
17001 * config/mips/mips.md (GPR): New mode macro.
17002 (d, si8_di5): New mode attributes.
17003 (any_cond): New code macro.
17004 (add[sd]i3): Redefine using :GPR.
17005 (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
17006 (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
17007 previously unnamed MIPS16 patterns.
17008 (*addsi3_extended): Renamed from addsi3_internal_2. Fix overly long
17009 lines. Don't match (plus (const_int 0) ...).
17010 (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
17011 Use a define_split to generate the addition.
17012 (sub[sd]i3): Redefine using :GPR. Turn subsi3 into a define_insn.
17013 (subsi3_internal): Delete.
17014 (*subsi3_extended): Renamed from subsi3_internal_2.
17015 (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
17016 (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
17017 using an any_cond template.
17018
17019 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
17020
17021 * read-rtl.c (read_rtx): Tidy use of format_ptr.
17022
17023 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
17024
17025 * read-rtl.c (string_obstack): New file-scope variable.
17026 (read_string, read_quoted_string, read_braced_string)
17027 (read_escape): Remove obstack parameter and use string_obstack instead.
17028 (read_rtx): Remove function-local rtl_obstack and initialize
17029 string_obstack instead. Update call to read_string.
17030
17031 2004-08-22 Andrew Pinski <apinski@apple.com>
17032
17033 PR c/15262
17034 * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
17035 expression is not constant.
17036 (c_finish_return): Do not go through INDIRECT_REF when looking
17037 for the inner expression of an ADDR_EXPR for warning about.
17038
17039 2004-08-22 Richard Henderson <rth@redhat.com>
17040
17041 PR 17075
17042 * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
17043 create new blocks and fall through.
17044 (expand_gimple_basic_block): Update to match.
17045
17046 2004-08-22 Ulrich Weigand <uweigand@de.ibm.com>
17047
17048 * reload.c (find_reloads_address): Make return value tri-state.
17049 Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
17050 (find_reloads): Assume that reloaded addresses match 'o' or
17051 EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
17052 returned 1 (not -1). Omit optional reloads for address operands
17053 only if find_reloads_address returned 1 (not -1).
17054
17055 * config/s390/s390.c (legitimize_reload_address): New function.
17056 * config/s390/s390-protos.h (legitimize_reload_address): Declare.
17057 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define. Call
17058 legitimize_reload_address.
17059
17060 2004-08-22 Richard Hendersion <rth@redhat.com>
17061
17062 * tree.h (SAVE_EXPR_RESOLVED_P): New.
17063 * gimplify.c (gimplify_save_expr): Use it.
17064 * expr.c (expand_expr_real_1): Likewise. Also set DECL_IGNORED_P
17065 on the temporary variable.
17066
17067 2004-08-22 Andrew Pinski <pinskia@physics.uc.edu>
17068
17069 * fold-const.c (rtl_expr_nonnegative_p): Delete.
17070 * tree.h (rtl_expr_nonnegative_p): Remove.
17071
17072 2004-08-22 Steven Bosscher <stevenb@suse.de>
17073
17074 * config/i386/ppro.md (ppro_complex_insn): Add missing check
17075 for cpu==pentiumpro.
17076
17077 * combine.c (struct reg_stat): Fix comment typo.
17078
17079 2004-08-22 Joseph S. Myers <jsm@polyomino.org.uk>
17080
17081 * c-tree.h (c_sizeof_nowarn): Remove.
17082
17083 2004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
17084
17085 * c-decl.c (set_array_declarator_type): Rename to
17086 set_array_declarator_inner.
17087 (build_c_parm, build_attrs_declarator, build_function_declarator):
17088 New functions.
17089 (make_pointer_declarator): Call build_attrs_declarator.
17090 * c-tree.h (set_array_declarator_type): Rename to
17091 set_array_declarator_inner.
17092 (build_c_parm, build_attrs_declarator, build_function_declarator):
17093 New prototypes.
17094 * c-parse.in (after_type_declarator,
17095 parm_declarator_starttypename, parm_declarator_nostarttypename,
17096 notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
17097 firstparm): Use these functions
17098
17099 2004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
17100
17101 * c-decl.c (build_array_declarator, set_array_declarator_type,
17102 start_decl, grokdeclarator, grokparms): Change boolean parameters
17103 to type bool.
17104 * c-tree.h (build_array_declarator, set_array_declarator_type,
17105 start_decl): Update prototypes.
17106 * c-decl.c, c-parse.in: All callers changed.
17107
17108 2004-08-21 Mike Stump <mrs@apple.com>
17109
17110 * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
17111 (darwin_fix_and_continue): Likewise.
17112 (darwin_fix_and_continue_switch): Likewise.
17113 * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
17114 (darwin_fix_and_continue): Likewise.
17115 (darwin_fix_and_continue_switch): Likewise.
17116
17117 2004-08-21 Danny Smith <dannysmith@users.sourceforge.net>
17118
17119 PR c++/16030
17120 * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
17121 Remove, merging into ...
17122 (gen_stdcall_or_fastcall_suffix): New function, returning tree
17123 rather than const char*, and accepting additional parameter.
17124 Don't add suffix to '*'-prefixed symbols or variadic functions.
17125 (i386_pe_encode_section_info): Adjust for call to new function.
17126 Call change_decl_assembler_name.
17127
17128 2004-08-20 Mike Stump <mrs@apple.com>
17129
17130 * config/darwin.c (machopic_indirect_data_reference): Mark
17131 stubs as defined.
17132 * config/386/386.c (darwin_local_data_pic): Add.
17133 (legitimate_constant_p): Reorder so that PLUS handling runs
17134 before darwin_local_data_pic to match the ordering in
17135 legitimate_pic_address_disp_p and so that MINUS runs after
17136 darwin_local_data_pic as otherwise the darwin_local_data_pic
17137 logic can be skipped, which would be very bad.
17138 (legitimate_pic_address_disp_p): Move from from here to
17139 darwin_local_data_pic so it can be reused.
17140
17141 2004-08-21 Alan Modra <amodra@bigpond.net.au>
17142
17143 * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
17144 (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
17145 (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
17146 (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
17147 (RS6000_ABI_NAME): Define as "linux".
17148 (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
17149 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
17150 ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
17151 * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
17152 * config/rs6000/rs6000.c (dot_symbols): New global var.
17153 (rs6000_output_function_entry): New function, modified for
17154 !DOT_SYMBOLS..
17155 (print_operand <case 'z'>): ..extracted from here.
17156 (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
17157 (rs6000_output_function_epilogue): Likewise.
17158 (rs6000_elf_declare_function_name): Likewise.
17159 * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
17160 (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
17161 * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
17162 * configure: Regenerate.
17163 * config.in: Regenerate.
17164
17165 2004-08-20 Mark Mitchell <mark@codesourcery.com>
17166
17167 * reload.c (find_reloads_address): Fix thinko in previous change.
17168
17169 * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
17170 a CONST_INT.
17171
17172 2004-08-20 Jakub Jelinek <jakub@redhat.com>
17173
17174 PR rtl-optimization/17099
17175 * combine.c (force_to_mode): Check if inner_mask has any bits set
17176 outside of GET_MODE (x) instead of op_mode.
17177
17178 2004-08-20 Mark Mitchell <mark@codesourcery.com>
17179
17180 * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
17181 fragment.
17182 * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
17183 (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
17184 * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
17185 architecture.
17186 (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
17187 configurations.
17188 * config/arm/t-symbian: New file.
17189
17190 2004-08-20 Andrew Pinski <apinski@apple.com>
17191
17192 * regrename.c (kill_value_regno): ANSIfy.
17193
17194 2004-08-20 Dale Johannesen <dalej@apple.com>
17195
17196 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
17197
17198 2004-08-20 Daniel Jacobowitz <dan@debian.org>
17199
17200 * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
17201 (kill_value_regno): New function, derived from kill_value.
17202 (kill_value): Update.
17203 (copyprop_hardreg_forward_1): Update call to kill_value_regno.
17204
17205 2004-08-20 Daniel Berlin <dberlin@dberlin.org>
17206
17207 Fix PR tree-optimization/17111
17208 * tree-ssa-pre.c (create_value_expr_from): Don't change the types
17209 of non-value_handles.
17210 (bitmap_set_contains): All constants are in every set.
17211
17212 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
17213
17214 * fold-const.c (round_up, round_down): Use build_int_cst.
17215 Optimize common case.
17216
17217 2004-08-20 Zack Weinberg <zack@codesourcery.com>
17218 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17219
17220 * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
17221 one_only_data_section): Rename to som_readonly_data_section,
17222 som_one_only_readonly_data_section and som_one_only_data_section.
17223 * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
17224 NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
17225 conditional defines.
17226 (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
17227 NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
17228 string values.
17229 (pa_select_section): Use renamed section functions.
17230 * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
17231 SOM_READONLY_DATA_SECTION_FUNCTION,
17232 SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
17233 SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
17234 Define here ...
17235 * config/pa/som.h: ... not here.
17236 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
17237 ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
17238 ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
17239 ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
17240 (READONLY_DATA_SECTION): Use som_readonly_data_section.
17241
17242 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
17243
17244 * fold-const.c (int_const_binop): Don't generate non-overflowing
17245 size-types specially.
17246 (fold_convert_const): Likewise.
17247
17248 * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
17249 clear cache on copied sizetype.
17250
17251 2004-08-20 Ben Elliston <bje@au.ibm.com>
17252
17253 * configure.ac: Don't escape apostrophe in --enable-coverage help.
17254 * configure: Regenerate.
17255
17256 2004-08-20 Danny Smith <dannysmith@users.sourceforge.net>
17257
17258 PR 5620
17259 * gcc.c (struct stat input_stat): Don't define if
17260 HOST_LACKS_INODE_NUMBERS
17261 (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
17262 than stat to determine if temp file is same as input file.
17263 * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
17264 * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
17265
17266 2004-08-20 Richard Sandiford <rsandifo@redhat.com>
17267
17268 * configure.ac (mips*-*-*): Print an error if not using GAS.
17269 * configure: Regenerated.
17270 * doc/install.texi: Remove irix5 bullet from --with-gnu-as. Remove
17271 comments about buggy MIPSpro assemblers.
17272 * config.gcc (mips-sgi-irix[56]*): Combine stanzas. Include elfos.h
17273 before mips.h and iris.h after it. Use t-iris and t-slibgcc-irix.
17274 Use iris5.h only for IRIX 5 configs. Use iris6.h and t-iris6 for
17275 IRIX 6 configs. Define IRIX_USING_GNU_LD if using GNU ld.
17276 * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
17277 (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
17278 (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
17279 (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
17280 (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
17281 of more general IRIX 6 definitions.
17282 (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
17283 (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
17284 (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
17285 (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
17286 (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
17287 (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
17288 (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
17289 (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
17290 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
17291 (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
17292 (LINK_SPEC): Move most of definition to iris.h.
17293 (SUBTARGET_LINK_SPEC): New macro.
17294 (IRIX_STARTFILE_SPEC): Fold into...
17295 (STARTFILE_SPEC): ...here.
17296 (IRIX_ENDFILE_SPEC): Fold into...
17297 (ENDFILE_SPEC): ...here.
17298 * config/mips/iris6.h (TARGET_IRIX5): Remove override.
17299 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
17300 (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
17301 (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
17302 (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
17303 (TARGET_OS_CPP_BUILTINS): Likewise. Guard IRIX6-specific bits.
17304 (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
17305 (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
17306 (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
17307 (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
17308 (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
17309 (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
17310 (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
17311 (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
17312 (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
17313 (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
17314 (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
17315 (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
17316 (TARGET_IRIX6): Define to 1.
17317 (DRIVER_SELF_SPECS): Define.
17318 (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
17319 (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
17320 (SUBTARGET_LINK_SPEC): New macro.
17321 (IRIX_STARTFILE_SPEC): Fold into...
17322 (STARTFILE_SPEC): ...here. Remove !mabi=* case.
17323 (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
17324 (LIB_SPEC, LIBGCC_SPEC): Use them.
17325 (LIB_SPEC): Remove !mabi=* case.
17326 (IRIX_ENDFILE_SPEC): Fold into...
17327 (ENDFILE_SPEC): ...here. Remove !mabi=* case.
17328 * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
17329 * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
17330 (TARGET_IRIX6): New macro.
17331 (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
17332 (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
17333 (LABEL_AFTER_LOC): Delete.
17334 * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
17335 (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
17336 (mips_build_builtin_va_list): Check TARGET_IRIX6.
17337 (override_options): Remove TARGET_SGI_O32_AS-related code.
17338 (irix_output_external_libcall): Make static.
17339 (mips_output_filename): Avoid use of SET_FILE_NUMBER and
17340 LABEL_AFTER_LOC.
17341 (mips_file_start): Tidy guard for ABI sections. Remove use of
17342 ABICALLS_ASM_OP; use .abicalls instead.
17343 (mips_output_aligned_decl_common, mips_declare_object_name)
17344 (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
17345 (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
17346 .globl foo .text directives.
17347 (irix_asm_named_section_1, irix_asm_named_section)
17348 (irix_section_align_entry, irix_section_align_htab)
17349 (irix_orig_asm_out_file, irix_section_align_entry_eq)
17350 (irix_section_align_entry_hash, irix_asm_output_align)
17351 (irix_file_start, irix_section_align_1, copy_file_data)
17352 (irix_file_end, irix_section_type_flags): Delete.
17353 * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
17354 Use standard section syntax. Remove protective "jr $31".
17355 (__gcc_fini): Likewise .gcc_fini.
17356 * config/mips/irix-crtn.asm: Adjust sections accordingly.
17357 * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
17358 iris5gas.h.
17359 * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
17360 from t-irix-gld.
17361 (EXTRA_MULTILIB_PARTS): Define.
17362 * config/mips/t-iris6: Remove bogus comment.
17363 (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
17364 * config/mips/iris5gas.h, config/mips/iris5gld.h,
17365 config/mips/iris6gas.h, config/mips/iris6gld.h,
17366 config/mips/t-iris5-as, config/mips/t-iris5-gas
17367 config/mips/t-irix-gld: Delete.
17368 * config/mips/iris.h: New file.
17369 * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
17370
17371 2004-08-20 Richard Earnshaw <rearnsha@arm.com>
17372
17373 * postreload.c (reload_cse_move2add): Allow any condjump, but check
17374 that the implicit set isn't clobbered in the jump insn.
17375
17376 2004-08-19 Mark Mitchell <mark@codesourcery.com>
17377
17378 * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
17379 * optabs.c (init_optabs): Don't check it.
17380 * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
17381 * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
17382
17383 2004-08-18 Andreas Krebbel <krebbel1@de.ibm.com>
17384
17385 * config/s390/s390.md (s390_warn_framesize_string)
17386 (s390_warn_dynamic_string, s390_stack_size_string)
17387 (s390_stack_guard_string): New global string variables.
17388 (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
17389 (s390_stack_guard): New global variables.
17390 (override_options): Added checks for the new options.
17391 (s390_emit_prologue): Emit stack check and trap code and perform
17392 compile time stack size checking.
17393
17394 * config/s390/s390.h (TARGET_OPTIONS): Added new options
17395 "warn-framesize", "warn-dynamicstack", "stack-size" and
17396 "stack-guard".
17397
17398 * doc/invoke.texi: Added documentation for the new options.
17399
17400 2004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
17401
17402 * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
17403 to eliminate warning.
17404 (linear_search_fdes): Declare p as unsigned.
17405 (binary_search_mixed_encoding_fdes): Likewise.
17406 * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
17407 to eliminate warning.
17408 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
17409 type cast.
17410
17411 2004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
17412
17413 * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
17414 * config/s390/s390.c (preferred_la_operand_p): Accept two operands
17415 instead of one. Check for strictly legitimate address.
17416 * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
17417 to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
17418
17419 2004-08-19 Eric Christopher <echristo@redhat.com>
17420
17421 * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
17422 * langhooks.h (unsave_expr_now): Ditto.
17423 * tree.h (unsave_expr_1): Remove prototype.
17424 (lhd_unsave_expr_now): Rename to unsave_expr_now.
17425 * tree-inline.c (unsave_expr_1): Move here
17426 from tree.c. Make static.
17427 (unsave_expr_now): Rename from lhd_unsave_expr_now.
17428 * tree-sra.c: Fix up for rename.
17429 * tree-ssa-copy.c: Ditto.
17430 * tree-eh.c: Ditto.
17431 * tree.c (unsave_expr_1): Move to tree-inline.c.
17432
17433 2004-08-19 Caroline Tice <ctice@apple.com>
17434
17435 * config/i386/cygming.h (switch_to_section): Fix typo (change
17436 in_unlikely_text_section to in_unlikely_executed_text).
17437
17438 2004-08-19 Daniel Berlin <dberlin@dberlin.org>
17439
17440 * vec.h (VEC_lower_bound): New macro.
17441
17442 2004-08-19 Richard Sandiford <rsandifo@redhat.com>
17443
17444 PR target/16446
17445 * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
17446 (mips_arg_info): Update accordingly. Remove common treatment of fpr_p;
17447 treat each ABI separately. Deal with n32/n64 complex float arguments.
17448 (function_arg): Add associated complex handling here.
17449
17450 2004-08-19 Richard Henderson <rth@redhat.com>
17451
17452 * config/arm/arm.c (arm_gen_load_multiple): Use
17453 adjust_automodify_address. Take base memory and offset instead
17454 of unchanging/struct/scalar bits.
17455 (arm_gen_store_multiple): Likewise.
17456 (arm_gen_movmemqi): Use adjust_automodify_address.
17457 * config/arm/arm-protos.h: Update decls.
17458 * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
17459 (store_multiple): Similarly.
17460
17461 2004-08-19 J"orn Rennecke <joern.rennecke@superh.com>
17462
17463 * regclass.c (globalize_reg): Update call_really_used_regs.
17464
17465 2004-08-19 Nathan Sidwell <nathan@codesourcery.com>
17466
17467 * doc/invoke.texi (integer-share-limit): Document.
17468
17469 * tree.h (TYPE_CACHED_VALUES_P): New.
17470 (TYPE_CACHED_VALUES): New.
17471 (TYPE_ORIG_SIZE_TYPE): Adjust.
17472 * tree.def (INTEGER_CST): Update documentation.
17473 * tree.c: Inlcude params.h.
17474 (build_int_cst): Cache small values.
17475 (build_type_copy): Do not copy the value cache.
17476 * c-common.c (c_common_nodes_and_builtins): Add comment, remove
17477 unneeded zeroing.
17478 * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
17479 * expmed.c (const_mult_add_overflow_p): Clear type copy's value
17480 cache.
17481 * fold-const.c (force_fit_type): Copy value when setting
17482 overflows.
17483 (int_const_binop): Likewise.
17484 * stor-layout.c: Include params.h
17485 (set_sizetype): Create values cache.
17486 (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
17487 * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
17488 * params.h (INTEGER_SHARE_LIMIT): New.
17489 * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
17490
17491 2004-08-19 Paolo Bonzini <bonzini@gnu.org>
17492
17493 * gimplify.c (gimplify_minimax_expr): Remove.
17494 (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
17495
17496 2004-08-19 Dorit Naishlos <dorit@il.ibm.com>
17497
17498 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
17499 STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
17500
17501 2004-08-19 Mark Mitchell <mark@codesourcery.com>
17502
17503 * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
17504
17505 2004-08-18 Andrew Pinski <apinski@apple.com>
17506
17507 * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
17508
17509 2004-08-18 Mark Mitchell <mark@codesourcery.com>
17510
17511 * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
17512 (__aeabi_ul2f): Likewise.
17513
17514 2004-08-18 Richard Henderson <rth@redhat.com>
17515
17516 * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
17517 move to rtl completely.
17518 (struct meminsnbuf, xtensa_emit_block_move): Remove.
17519 (xtensa_find_mode_for_size): Remove.
17520 * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
17521 * config/xtensa/xtensa.md (movmemsi_internal): Remove.
17522
17523 2004-08-18 Richard Henderson <rth@redhat.com>
17524
17525 * config/mcore/mcore.c (mode_from_align): Remove DImode.
17526 (block_move_sequence): Rewrite to use adjust_address.
17527 (mcore_expand_block_move): Cleanup logic. Accept only operands.
17528 Return boolean indicating success/failure.
17529 * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
17530 * config/mcore/mcore.md (movmemsi): Update to match.
17531
17532 2004-08-18 Mike Stump <mrs@apple.com>
17533
17534 * doc/invoke.texi (-mfix-and-continue): Add support for
17535 fast turn around debugging.
17536 (-ffix-and-continue): Likewise.
17537 (-mindirect-data): Likewise.
17538 (-findirect-data): Likewise.
17539 * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
17540 (indirect_data): Likewise.
17541 (machopic_data_defined_p): Likewise.
17542 (machopic_output_indirection): Likewise.
17543 (darwin_encode_section_info): Likewise.
17544 (darwin_fix_and_continue): Likewise.
17545 (darwin_fix_and_continue_switch): Likewise.
17546 * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
17547 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
17548 (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
17549 (SUBTARGET_OPTIONS): Likewise.
17550 (darwin_fix_and_continue): Likewise.
17551 (darwin_fix_and_continue_switch): Likewise.
17552 (TARGET_FIX_AND_CONTINUE): Likewise.
17553 * config/rs6000.c (rs6000_emit_prologue): Likewise.
17554
17555 2004-08-19 Steven Bosscher <stevenb@suse.de>
17556
17557 * basic-block.h (struct edge_def): Remove crossing_edge.
17558 (EDGE_CROSSING): New define.
17559 (EDGE_ALL_FLAGS): Update.
17560 * bb-reorder.c (find_traces_1_round, better_edge_p,
17561 find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
17562 find_jump_block, fix_crossing_conditional_branches,
17563 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
17564 Replace all occurences of crossing_edge with an edge flag check
17565 or set/reset.
17566 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
17567 try_crossjump_bb): Likewise.
17568 * cfglayout.c (fixup_reorder_chain): Likewise.
17569 * cfgrtl.c (force_nonfallthru_and_redirect,
17570 commit_one_edge_insertion): Likewise.
17571
17572 * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
17573 * tree-flow.h (compute_dominance_frontiers): Move prototype...
17574 * basic-block.h: ...here.
17575 * tree-cfg.c (compute_dominance_frontiers_1,
17576 compute_dominance_frontiers): Move from here...
17577 * cfganal.c: ...to here. Include timevar.h.
17578
17579 2004-08-18 James E Wilson <wilson@specifixinc.com>
17580
17581 * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
17582 * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
17583
17584 * config/mips/mips.md (type): Add frdiv.
17585 (divsf3+1, divsf3+2): Change type to frdiv.
17586 * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
17587 ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
17588
17589 * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
17590 * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
17591 * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
17592 * config/mips/5000.md (r5k_fdiv_single): Likewise.
17593 * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
17594 * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
17595 * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
17596 * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
17597 * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
17598 * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
17599 Likewise.
17600 * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
17601
17602 2004-08-18 Robert Bowdidge <bowdidge@apple.com>
17603
17604 * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
17605 get regression tester working again.
17606
17607 2004-08-18 Zack Weinberg <zack@codesourcery.com>
17608
17609 * insn-notes.def, reg-notes.def: New files.
17610 * rtl.h: Use them to define enum insn_note and enum reg_note.
17611 * rtl.c: Use them to define note_insn_name and reg_note_name.
17612 * Makefile.in (RTL_BASE_H): Update.
17613
17614 * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
17615 renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
17616
17617 2004-08-18 Richard Earnshaw <rearnsha@arm.com>
17618
17619 * arm.c (arm_size_rtx_costs): New function.
17620 (arm_override_options): Use it if optimizing for space.
17621
17622 2004-08-18 Richard Henderson <rth@redhat.com>
17623
17624 * emit-rtl.c (gen_const_mem): New.
17625 * rtl.h (gen_const_mem): Declare.
17626 * expr.c (do_tablejump): Use it.
17627 * varasm.c (force_const_mem): Likewise.
17628 * config/darwin.c (machopic_indirect_data_reference): Likewise.
17629 (machopic_legitimize_pic_address): Likewise.
17630 * config/arm/arm.c (legitimize_pic_address): Likewise.
17631 * config/i386/i386.c (legitimize_pic_address): Likewise.
17632 (legitimize_tls_address): Likewise.
17633 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
17634 * config/ia64/ia64.md (load_fptr): Likewise.
17635 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
17636 * config/pa/pa.c (legitimize_pic_address): Likewise.
17637 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
17638 (rs6000_emit_move): Likewise.
17639 * config/s390/s390.c (legitimize_pic_address): Likewise.
17640 (legitimize_tls_address): Likewise.
17641 * config/s390/s390.md (casesi): Likewise.
17642 * config/sh/sh.c (sh_reorg): Likewise.
17643 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
17644 * config/v850/v850.md (casesi): Likewise.
17645
17646 * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
17647 * config/sh/sh.c (prepare_move_operands): Remove incorrect
17648 use of MEM_READONLY_P.
17649
17650 2004-08-18 Steven Bosscher <stevenb@suse.de>
17651
17652 * Makefile.in (OBJS-common): Add postreload-gcse.c.
17653 Add new postreload-gcse.o.
17654 * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
17655 (lookup_as_function, insert, rehash_using_reg, use_related_value,
17656 equiv_constant): Use SAFE_HASH instead of safe_hash.
17657 (exp_equiv_p): Export. Add for_gcse argument when comparing
17658 for GCSE.
17659 (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
17660 find_comparison_args, fold_rtx, cse_insn): Update callers.
17661 (hash_rtx): New function derived from old canon_hash and bits
17662 from gcse.c hash_expr_1.
17663 (canon_hash_string): Rename to hash_rtx_string.
17664 (canon_hash, safe_hash): Make static inline. Call hash_rtx.
17665 * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
17666 (cselib_lookup): Update this caller.
17667 * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
17668 Make static.
17669 (hash_expr): Call hash_rtx.
17670 (ldst_entry): Likewise.
17671 (expr_equiv_p): Call exp_equiv_p.
17672 (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
17673 reg_used_on_edge, reg_set_between_after_reload_p,
17674 reg_used_between_after_reload_p, get_avail_load_store_reg,
17675 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
17676 get_bb_avail_insn, hash_scan_set_after_reload,
17677 compute_hash_table_after_reload,
17678 eliminate_partially_redundant_loads, gcse_after_reload,
17679 get_bb_avail_insn, gcse_after_reload_main): Remove.
17680 * postreload-gcse.c: New file, reincarnating most of the above.
17681 * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
17682 (gcse_after_reload_main): Update prototype.
17683 * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
17684 * passes.c (rest_of_handle_gcse2): Use it.
17685
17686 2004-08-18 Diego Novillo <dnovillo@redhat.com>
17687
17688 * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
17689 (pass_loop_done): Likewise.
17690
17691 2004-08-18 Andrew Pinski <apinski@apple.com>
17692
17693 * config/rs6000/darwin.md: Delete the altivec patterns which are
17694 handled differently now.
17695 (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
17696 (macho_correct_pic_di): Likewise.
17697 (call_indirect_nonlocal_darwin64): Likewise.
17698 Delete the save world/saveFP/saveVec patterns.
17699
17700 Revert the reversion of: 2004-08-16 Stan Shebs <shebs@apple.com>
17701 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
17702 * config/rs6000/rs6000.md: Include darwin.md.
17703 (builtin_setjmp_receiver): Add DImode case.
17704 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
17705 Darwin bits.
17706
17707 2004-08-18 Matt Austern <austern@apple.com>
17708
17709 Dead code stripping
17710 * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
17711 * darwin.c (darwin_file_end): Mark file as potentially strippable.
17712
17713 2004-08-18 Richard Henderson <rth@redhat.com>
17714
17715 * alias.c (readonly_fields_p): Remove.
17716 (objects_must_conflict_p): Don't call it.
17717 * tree.h (readonly_fields_p): Remove.
17718 * langhooks.h (struct lang_hooks): Remove honor_readonly.
17719 * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
17720
17721 2004-08-18 Diego Novillo <dnovillo@redhat.com>
17722
17723 * tree-dfa.c (add_referenced_var): Only global variables are
17724 call-clobbered.
17725 * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
17726 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
17727 all pointers dereferenced if the statement dereferences them.
17728 (create_name_tags): Do not create memory tags for pointers
17729 that have PT_ANYTHING set.
17730 Also check if PT_VARS is not empty before creating a name tag.
17731 (compute_flow_sensitive_aliasing): Don't mark call-clobbered
17732 variables that share the same alias set with a pointer that
17733 may point anywhere.
17734 (add_may_alias): Add FIXME comment to remove clobbering
17735 aliased variables and tags.
17736 (replace_may_alias): Likewise.
17737 (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
17738 (merge_pointed_to_info): If the original variable has not
17739 points-to information, call set_pt_anything.
17740 (add_pointed_to_var): Do not prevent adding a pointed-to
17741 variable if the pointers is PT_ANYTHING.
17742 If the variable is a global, set PT_GLOBAL_MEM.
17743 (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
17744 pointer type only come in PTR+OFFSET flavours.
17745 Always call merge_pointed_to_info on PHI arguments that are
17746 SSA_NAMEs.
17747 (get_nmt_for): Mark call-clobbered tags whose pointer points
17748 to global memory.
17749 * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
17750 values.
17751 (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
17752 FLAGS.
17753 (add_stmt_operand): Abort if the caller tried to add a killing
17754 definition for a memory tag.
17755 * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
17756 unnecessary checks.
17757
17758 2004-08-18 J"orn Rennecke <joern.rennecke@superh.com>
17759
17760 * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
17761 from call_used_regs. Update call_really_used_regs.
17762 (CALL_REALLY_USED_REGISTERS): Define.
17763 * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
17764 Replace call_used_regs with call_really_used_regs.
17765 (calc_live_regs, sh_media_register_for_return): Likewise.
17766 (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
17767 * sh.md (return_media): Likewise.
17768
17769 2004-08-18 Andrew Pinski <apinski@apple.com>
17770
17771 * config/darwin.c (machopic_legitimize_pic_address): Only set
17772 MEM_READONLY_P in the non TARGET_TOC case.
17773
17774 2004-08-18 Zack Weinberg <zack@codesourcery.com>
17775
17776 * rtl.def (NIL): Delete.
17777 * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
17778 Tighten the syntax a little.
17779
17780 * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
17781 * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
17782 * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
17783 * config/i386/predicates.md, config/m32r/m32r.h
17784 * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
17785 * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
17786 * config/sparc/sparc.h, doc/tm.texi:
17787 Replace all occurrences of NIL with UNKNOWN.
17788
17789 2004-08-18 Zack Weinberg <zack@codesourcery.com>
17790
17791 * dojump.c (do_jump <unordered_bcc>): Do not recursively call
17792 self with a TRUTH_ORIF_EXPR; generate the appropriate jump
17793 sequence inline. Move drop_through_label code into this
17794 block, being the only place it is used. Adjust comments.
17795
17796 2004-08-18 Fariborz Jahanian <fjahanian@apple.com>
17797
17798 * config/rs6000/altivec.md: Add new patterns for calls to
17799 save_world/rest_world functions.
17800
17801 * config/rs6000/rs6000-protos.h: (save_world_operation,
17802 restore_world_operation) new declarations.
17803
17804 * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
17805 field added.
17806 (rs6000_stack_info): Set world_save_p field.
17807 (save_world_operation): New function.
17808 (restore_world_operation): New function.
17809 (compute_save_world_info): New function.
17810 (rs6000_stack_info): Call compute_save_world_info.
17811 (rs6000_emit_prologue): Check for world_save_p and generate
17812 pattern to call save_world for saving all non-volatile and
17813 special registers.
17814 (rs6000_emit_epilogue): Check for world_save_p and generate
17815 pattern to call rest_world to restore saved registers.
17816
17817 config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
17818 FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
17819 (rs6000_reg_names): New entries added for save_world_operation and
17820 restore_world_operation.
17821
17822 2004-08-18 Caroline Tice <ctice@apple.com>
17823
17824 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
17825 "-freorder-blocks-and-partition" to the flags used in second
17826 stage of profiledbootstrap.
17827 * bb-reorder.c (push_to_next_round_p): Add new variable,
17828 next_round_is_last; set and use variable to make sure, when
17829 partitioning, that the last trace construction round consists
17830 of all (and only) cold basic blocks.
17831 (rotate_loop): Don't copy blocks that end in a section
17832 crossing jump.
17833 (copy_bb): Correctly initialize "partition" of duplicated bb.
17834 (add_unlikely_executed_notes): Add a comment.
17835 (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
17836 to make sure, if function contains hot blocks, that the
17837 successors of ENTRY_BLOCK_PTR are hot; also, only look for
17838 crossing edges if the architecture supports named sections.
17839 (mark_bb_for_unlikely_executed_section): Modify to always
17840 insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
17841 the basic block note insn.
17842 (fix_crossing_unconditional_branches): Remove extra space.
17843 (fix_edges_for_rarely_executed_code): Modify to only do
17844 partitioning work if the architecture supports named sections.
17845 (reorder_basic_blocks): Modify to only add
17846 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
17847 supports named sections.
17848 * c-common.c (handle_section_attribute): Initialize new global
17849 variable, user_defined_section_attribute, to true if user has
17850 specified one.
17851 * cfgcleanup.c (try_forward_edges): Modify to not attempt to
17852 forward edges that cross section boundaries.
17853 * cfglayout.c (fixup_reorder_chain): Modify to only fix up
17854 partitioning information if the architecture supports named
17855 sections.
17856 * cfgrtl.c (target.h): Add statement to include this.
17857 (rtl_split_block): Make sure newly created bb gets correct
17858 partition.
17859 (try_redirect_by_replacing_jump): Make sure redirection isn't
17860 attempting to cross section boundaries.
17861 (force_nonfallthru_and_redirect): Only do partition fix up if
17862 architecture supports named sections.
17863 (rtl_split_edge): Make sure newly created bb ends up in
17864 correct partition.
17865 (commit_one_edge_insertion): Remove code that incorrectly
17866 updated basic block partition; Make sure partition fix up only
17867 happens if architecture supports named sections and it's not
17868 already done.
17869 (rtl_verify_flow_info_1): Fix if-condition on test/error
17870 condition that fallthru edges are not allowed to cross section
17871 boundaries.
17872 * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
17873 * final.c (final_scan_insn): Remove redundant test from if-statement;
17874 change calls to text_section into calls to function_section; add code
17875 to only to partitioning fix up if architecture supports named
17876 sections.
17877 * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
17878 partition.
17879 (if_convert): Add targetm.have_named_sections to test.
17880 * output.h (unlikely_section_label): Extern declaration for new global
17881 variable.
17882 (unlikely_text_section_name): Likewise.
17883 * opts.c (decode_options): If both partitioning and DWARF debugging
17884 are turned on, issue a warning that this doesn't work, and change
17885 partitiong to basic block reordering (without hot/cold partitions).
17886 * passes.c (rest_of_handle_final): Re-set new global variable,
17887 user_defined_section_attribute, to false.
17888 (rest_of_compilation): Change options for calling partitioning
17889 function: Don't call if the user defined the section attribute, and
17890 don't call if DECL_ONE_ONLY is true for the current function.
17891 * predict.c (choose_function_section): Return immediately if we
17892 are doing hot/cold partitioning (i.e. let the basic block partitioning
17893 determine where the function belongs).
17894 * reg-stack.c (emit_swap_insn): Add condition to step over
17895 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
17896 * toplev.c (user_defined_section_attribute): New global variable.
17897 * toplev.h (user_defined_section_attribute): Extern declaration
17898 for new global variable.
17899 * varasm.c (unlikely_section_label): New global variable.
17900 (unlikely_text_section_name): New global variable.
17901 (unlikely_text_section): Add code to initialize
17902 unlikely_text_section_name if necessary; modify to use
17903 unlikely_text_section_name and unlikely_section_label; also to use
17904 named_section properly.
17905 (in_unlikely_text_section): Modify to work correctly with
17906 named_section and to use unlikely_text_section_name.
17907 (named_section): Add code to work properly with cold section.
17908 (function_section): Clean up if-statement.
17909 * config/darwin.c (darwin_asm_named_section): Return to original
17910 code, removing use of SECTION_FORMAT_STRING.
17911 * config/arm/pe.h (switch_to_section): Add case for
17912 in_unlikely_executed_text to switch statement.
17913 * config/i386/cygming.h (switch_to_section): Likewise.
17914 * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
17915 (SECTION_FORMAT_STRING): Likewise.
17916 * config/mcore/mcore.h (switch_to_section): Likewise.
17917 * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
17918 (SECTION_FORMAT_STRING): Remove.
17919
17920 2004-08-18 Roger Sayle <roger@eyesopen.com>
17921
17922 * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
17923 -ffixed-reg safe, by preserving the meanings of zero and one.
17924 (CALL_USED_REGISTERS): Likewise.
17925 (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
17926
17927 2004-08-18 Kaz Kojima <kkojima@gcc.gnu.org>
17928
17929 * config/sh/sh.c (split_branches): Check the result of
17930 next_active_insn.
17931 (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
17932 Call rtl_register_cfg_hooks.
17933
17934 2004-08-18 Richard Henderson <rth@redhat.com>
17935
17936 * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
17937 * alias.c (true_dependence): Update to match new semantics.
17938 (canon_true_dependence, write_dependence_p): Likewise.
17939 (anti_dependence, output_dependence): Update write_dependence_p args.
17940 (unchanging_anti_dependence): Remove.
17941 * calls.c (purge_mem_unchanging_flag): Remove.
17942 (fixup_tail_calls): Don't call it.
17943 (expand_call): Don't add unchanging memory to function usage.
17944 * expr.c (emit_block_move_via_libcall): Likewise.
17945 (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
17946 (get_subtarget): Don't use RTX_UNCHANGING_P.
17947 (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
17948 (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
17949 * combine.c (get_last_value_validate): Use MEM_READONLY_P.
17950 * cse.c (insert): Don't use RTX_UNCHANGING_P.
17951 (cse_insn, canon_hash): Use MEM_READONLY_P.
17952 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
17953 instead of RTX_UNCHANGING_P.
17954 * explow.c (maybe_set_unchanging): Remove.
17955 * expr.h (maybe_set_unchanging): Remove.
17956 * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
17957 * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
17958 (assign_parm_setup_reg, expand_function_start): Likewise.
17959 * integrate.c (copy_rtx_and_substitute): Likewise.
17960 * ra-rewrite.c (emit_colors): Likewise.
17961 * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
17962 (fixup_match_1): Likewise.
17963 * reload1.c (reload, alter_reg): Likewise.
17964 * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
17965 not RTX_UNCHANGING_P.
17966 (equiv_init_varies_p): Likewise.
17967 * loop-invariant.c (check_maybe_invariant): Likewise.
17968 * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
17969 * loop.c (note_addr_stored): Likewise.
17970 (prescan_loop): Likewise. Don't check function usage for clobbered
17971 unchanging memory.
17972 * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
17973 not RTX_UNCHANGING_P.
17974 (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
17975 * varasm.c (force_const_mem): Likewise.
17976 * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
17977 * web.c (entry_register): Likewise.
17978 * tree-gimple.h (get_base_address): Move decl ...
17979 * tree.h: ... here.
17980 * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
17981
17982 * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
17983 called via for_each_rtx. Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
17984 (alpha_set_memflags): Update to match.
17985
17986 * config/darwin.c (machopic_indirect_data_reference): Set
17987 MEM_READONLY_P instead of RTX_UNCHANGING_P.
17988 (machopic_indirect_call_target): Likewise.
17989 (machopic_legitimize_pic_address): Likewise.
17990 * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
17991 arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
17992 * config/arm/arm.md (load_multiple, store_multiple): Likewise.
17993 * config/frv/frv.md (symGOT2reg): Likewise.
17994 * config/i386/i386.c (legitimize_pic_address,
17995 legitimize_tls_address, ix86_split_to_parts): Likewise.
17996 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
17997 * config/ia64/ia64.md (load_fptr): Likewise.
17998 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
17999 * config/m68k/m68k.c (legitimize_pic_address): Likewise.
18000 * config/mcore/mcore.c (block_move_sequence): Likewise.
18001 * config/mn10300/mn10300.md (symGOT2reg): Likewise.
18002 * config/pa/pa.c (legitimize_pic_address): Likewise.
18003 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
18004 (rs6000_emit_move): Likewise.
18005 * config/s390/s390.c (legitimize_pic_address): Likewise.
18006 (legitimize_tls_address): Likewise.
18007 * config/s390/s390.md (casesi): Likewise.
18008 * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
18009 * config/sh/sh.md (symGOT2reg): Likewise.
18010 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
18011 * config/v850/v850.md (casesi): Likewise.
18012
18013 * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
18014 * config/iq2000/iq2000.c (save_restore_insns): Likewise.
18015 * config/mips/mips.c (mips_restore_gp): Likewise.
18016 (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
18017 * config/sh/sh.c (sh_reorg): Likewise.
18018
18019 2004-08-18 Richard Henderson <rth@redhat.com>
18020
18021 * tree.h (struct tree_decl): Add gimple_formal_temp.
18022 (DECL_GIMPLE_FORMAL_TEMP_P): New.
18023 * gimplify.c (pop_gimplify_context): Clear it.
18024 (lookup_tmp_var): Set it, if is_formal.
18025 (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
18026 Use is_gimple_val for VECTOR. Simplify return value.
18027 (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
18028 (gimplify_expr): Likewise.
18029 * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
18030 is_gimple_tmp_rhs for clarity. Update all callers.
18031 (is_gimple_reg_rhs): Simplify logic.
18032 (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
18033 clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
18034 (is_gimple_formal_tmp_reg): Similarly.
18035 * tree-gimple.h: Update decls.
18036 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
18037 DECL_IGNORED_P, not DECL_ARTIFICIAL. Tidy formatting.
18038 * tree-ssa-live.c (var_union, type_var_init): Likewise.
18039
18040 2004-08-18 Paolo Bonzini <bonzini@gnu.org>
18041
18042 * c4x.c (legitimize_operands): Remove calls to
18043 preserve_subexpressions_p.
18044
18045 2004-08-18 David Edelsohn <edelsohn@gnu.org>
18046
18047 * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
18048 * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
18049
18050 2004-08-18 Ziemowit Laski <zlaski@apple.com>
18051
18052 * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
18053 Objective-C++ extensions.
18054 * gengtype.c (get_file_basename): Match entire subdirectory name
18055 ('cp', 'objc', 'objcp') rather than just its suffix.
18056 (get_base_file_bitmap): Allow for files to belong to more than one
18057 language.
18058 (get_output_file_with_visibility): Treat objc/objc-act.h as a header
18059 used by more than one front-end.
18060
18061 2004-08-18 Richard Earnshaw <rearnsha@arm.com>
18062
18063 * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
18064 avoid use of preserve_subexpressions_p.
18065
18066 2004-08-17 Richard Henderson <rth@redhat.com>
18067
18068 PR 17051
18069 * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
18070
18071 2004-08-17 DJ Delorie <dj@redhat.com>
18072
18073 * doc/extend.texi: Document new xstormy16 attribute.
18074
18075 * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
18076 (xstormy16_splittable_below100_or_register): New.
18077 (combine_bnp): New.
18078 (xstormy16_reorg): New.
18079 (TARGET_MACHINE_DEPENDENT_REORG): Define.
18080
18081 * config/stormy16/stormy16.md (movqi_internal): Make name public.
18082 (movhi_internal): Likewise.
18083 (cbhranchhi): Likewise.
18084 (cbhranchhi_neg): Likewise.
18085 (andhi3): Only allow splittable below100 operands.
18086 (iorhi3): Likewise.
18087 (peephole2): New and/zero_extend->and peephole.
18088 (peephole2): New load/ior/save->set1 peephole.
18089 (peephole2): New load/and/save->clr1 peephole.
18090 (bclrx, bclrx2, bclr7, bclr15): New.
18091 (bsetx, bsetx2, bset7, bset15): New.
18092
18093 * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
18094 liberal about acceptable 'B' masks.
18095
18096 * config/stormy16/stormy16-protos.h
18097 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
18098 xstormy16_below100_operand, xstormy16_below100_or_register,
18099 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
18100 (PREDICATE_CODES): Add new predicates.
18101
18102 * config/stormy16/stormy16.c
18103 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
18104 xstormy16_below100_operand, xstormy16_below100_or_register,
18105 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
18106 (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
18107 (xstormy16_legitimate_address_p): Allow below100 symbols.
18108 (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
18109 (xstormy16_expand_move): Leave below100 operands as-is.
18110 (xstormy16_encode_section_info): Encode below100 symbols.
18111 (xstormy16_strip_name_encoding): New.
18112 (xstormy16_print_operand): Print 'b' as shift mask.
18113 (xstormy16_attribute_table): Add below100 attributes.
18114 (xstormy16_handle_below100_attribute): New.
18115
18116 * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
18117 (XSTORMY16_SECTION_FUNCTION): New.
18118 (EXTRA_SECTION_FUNCTIONS): Define using the above.
18119 (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
18120 (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
18121 (ASM_OUTPUT_LABELREF): Define.
18122
18123 * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
18124 (movhi_internal): Add below100 support.
18125 (andhi3): Add below100 support.
18126 (iorhi3): Add below100 support.
18127 (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
18128
18129 2004-08-17 James E Wilson <wilson@specifixinc.com>
18130
18131 * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
18132 of VOIDmode for comparison code mode.
18133 * config/mips/mips.md: For conditional move patterns, use mode of
18134 first compare operand for comparison mode, instead of VOIDmode.
18135
18136 * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
18137 normal and -ffast-math code.
18138
18139 2004-08-17 Mark Mitchell <mark@codesourcery.com>
18140
18141 PR c++/15871
18142 * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
18143
18144 2004-08-17 Robert Bowdidge <bowdidge@apple.com>
18145
18146 * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
18147
18148 2004-08-17 Andreas Tobler <a.tobler@schweiz.ch>
18149
18150 * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
18151 for non Darwin targets.
18152 (*call_value_nonlocal_darwin64): Likewise.
18153
18154 2004-08-17 Fariborz Jahanian <fjahanian@apple.com>
18155
18156 * config/rs6000/rs6000.c (rs6000_function_value): Check for
18157 altivec mode for altivec return register.
18158
18159 2004-08-17 David Edelsohn <edelsohn@gnu.org>
18160
18161 Revert 2004-08-16 Stan Shebs <shebs@apple.com>
18162 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
18163 * config/rs6000/rs6000.md: Include darwin.md.
18164 (builtin_setjmp_receiver): Add DImode case.
18165 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
18166 Darwin bits.
18167
18168 2004-08-17 Dorit Naishlos <dorit@il.ibm.com>
18169
18170 * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
18171 trees.
18172 * tree-vectorizer.h: New File: Same.
18173 * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
18174 * common.opt (ftree-vectorize): New flag to enable vectorization.
18175 * timevar.def (TV_TREE_VECTORIZATION): New dump file for
18176 vectorization pass.
18177 * tree-data-ref.h (init_data_ref): Additional argument.
18178 (array_base_name_differ_p): Moved to tree-data-ref.c.
18179 * tree-data-ref.c (array_base_name_differ_p): Revised.
18180 (initialize_data_dependence_relation): Call array_base_name_differ_p
18181 with an extra argument.
18182 (analyze_all_data_dependences): Same.
18183 (init_data_ref): Additional argument is_read to set DR_IS_READ.
18184 * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
18185 file.
18186 * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
18187 * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
18188 * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
18189 vectorization pass.
18190 * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
18191 (tree_ssa_loop_done): Call scev_finalize.
18192 (tree_vectorize): Define the new vectorization pass.
18193 * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
18194 size of the vector they support (until support for multiple vector
18195 sizes is added to the vectorizer).
18196 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
18197 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
18198 * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
18199 documentation.
18200
18201 2004-08-17 Nathan Sidwell <nathan@codesourcery.com>
18202
18203 * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
18204 usage.
18205 (generate_protocol_list, handle_impent): Likewise.
18206
18207 2004-08-17 Roger Sayle <roger@eyesopen.com>
18208
18209 * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
18210 ensure that call_used_regs is a superset of both fixed_regs and
18211 call_really_used_regs.
18212
18213 2004-08-17 Daniel Bornstein <danfuzz@milk.com>
18214
18215 PR target/17019
18216 * arm.md (addsi3_cbranch_scratch): Correct case labels.
18217
18218 2004-08-17 Paolo Bonzini <bonzini@gnu.org>
18219
18220 PR middle-end/17036
18221 * fold-const.c (fold): Check for integer operand when
18222 folding (A >> N) & 1 ? (1 << N) : 0. Fix from Andrew
18223 Pinski <pinskia@physics.uc.edu>.
18224
18225 2004-08-17 Paolo Bonzini <bonzini@gnu.org>
18226
18227 * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
18228 No need to check if in a cross configuration.
18229 * configure: Regenerate.
18230
18231 * calls.c (precompute_register_parameters):
18232 Inline preserve_subexpressions_p ().
18233 * expmed.c (expand_mult_const, emit_store_flag): Likewise.
18234 * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
18235 Likewise.
18236 * expr.c (get_subtarget): Likewise.
18237 * rtl.h (preserve_subexpressions_p): Remove.
18238 * stmt.c (preserve_subexpressions_p): Remove.
18239
18240 * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
18241 TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
18242 Abort on gimplified cases.
18243
18244 2004-08-16 James E Wilson <wilson@specifixinc.com>
18245
18246 * tree.h (VECTOR_FLOAT_TYPE_P): New.
18247 (FLOAT_TYPE_P): Use it.
18248 * c-typeck.c (build_binary_op): After convert calls, check for
18249 check for ERROR_MARK operands.
18250
18251 2004-08-16 Zack Weinberg <zack@codesourcery.com>
18252
18253 * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
18254 (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
18255 (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
18256 (genobjs static pattern rule): Remove %.c dependency.
18257 ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
18258 Rename rules; delete commands; fix dependencies.
18259 (mostlyclean): Do not delete temporary source copies.
18260 * configure.ac: Delete all references to BUILD_PREFIX and
18261 BUILD_PREFIX_1.
18262 * configure: Regenerate.
18263
18264 * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
18265 Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
18266 basic-block.h #ifdef GENERATOR_FILE. Surround some more code
18267 with #ifndef GENERATOR_FILE so that nothing from those headers
18268 is used.
18269
18270 * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
18271
18272 2004-08-16 Adam Nemet <anemet@lnxw.com>
18273
18274 * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
18275
18276 2004-08-16 Andrew Pinski <apinski@apple.com>
18277
18278 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
18279 extraneous semicolon.
18280
18281 2004-08-16 Devang Patel <dpatel@apple.com>
18282
18283 * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
18284 * print-tree.c (print_node): Print DECL_PRESERVE_P.
18285 * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
18286 (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
18287 * target.h (struct gcc_target): New member, mark_decl_preserved.
18288 * hooks.c (hook_void_charptr): Rename to ...
18289 (hook_void_constcharptr): ... new name.
18290 * hooks.h (hook_void_charptr): Rename to ..
18291 (hook_void_constcharptr): ... new name.
18292 * tree.h (DECL_PRESERVE_P): New #define.
18293 (struct tree_decl): New member, preserve_flag.
18294 * varasm.c (assemble_start_function): Mark decl preserved.
18295 (assemble_variable): Same.
18296 * darwin.c (darwin_mark_decl_preserved): New function.
18297 * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
18298 * darwin-protos.h (darwin_mark_decl_preserved): New decl.
18299 * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
18300
18301 2004-08-16 Joseph S. Myers <jsm@polyomino.org.uk>
18302
18303 * c-decl.c (grokdeclarator): Allow for function definition where
18304 innermost declarator has attributes.
18305
18306 2004-08-16 Fariborz Jahanian <fjahanian@apple.com>
18307
18308 * except.c (get_exception_filter, build_post_landing_pads,
18309 dw2_build_landing_pads): Use target-specific mode for 'filter'.
18310 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
18311 * target.h (eh_return_filter_mode): New field added.
18312 * targhooks.c (default_eh_return_filter_mode): Defined.
18313 * targhooks.h (default_eh_return_filter_mode): Declared.
18314 * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
18315
18316 2004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
18317
18318 * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
18319 ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
18320 * configure: Regenerate.
18321
18322 2004-08-16 Stan Shebs <shebs@apple.com>
18323
18324 Basic support for 64-bit Darwin.
18325 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
18326 (machopic_legitimize_pic_address): Similarly, plus use Pmode
18327 instead of SImode.
18328 * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
18329 (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
18330 (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
18331 (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
18332 (PROCESSOR_DEFAULT64): Define.
18333 * config/rs6000/darwin.md: New file, patterns specific to 64-bit
18334 Darwin.
18335 * config/rs6000/rs6000.md: Include darwin.md.
18336 (builtin_setjmp_receiver): Add DImode case.
18337 * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
18338 Darwin.
18339 (TARGET_ASM_ALIGNED_DI_OP): Ditto.
18340 (rs6000_emit_move): Add DImode case to Darwin bits.
18341 (machopic_output_stub): Use .quad if 64-bit.
18342 * invoke.texi: Document -m32 and -m64.
18343
18344 2004-08-16 Janis Johnson <janis187@us.ibm.com>
18345
18346 * doc/extend.texi (AltiVec builtins): Document additional differences
18347 from the Motorola AltiVec PIM.
18348
18349 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
18350
18351 * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
18352 * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
18353 (struct tree_common): Update public_flag documentation.
18354
18355 2004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
18356
18357 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
18358 Check for artificial variables, not is_gimple_tmp_var.
18359 * tree-ssa-live.c (var_union): Likewise.
18360
18361 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
18362
18363 * calls.c (load_register_parameters): Remove spurious FIXME token.
18364
18365 2004-08-15 Ziemowit Laski <zlaski@apple.com>
18366
18367 * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
18368 (c-lang.o): Depend on c-objc-common.h.
18369 (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
18370 c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
18371 * c-lang.c: Include c-objc-common.h.
18372 (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
18373 LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
18374 LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
18375 LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
18376 LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
18377 LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
18378 LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
18379 LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
18380 LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
18381 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
18382 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
18383 LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
18384 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
18385 LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
18386 LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
18387 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
18388 LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
18389 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
18390 LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
18391 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
18392 LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
18393 LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
18394 LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
18395 LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
18396 Move to c-objc-common.h.
18397 * c-objc-common.c: Include c-objc-common.h.
18398 * c-objc-common.h: New file.
18399
18400 2004-08-15 Andreas Tobler <a.tobler@schweiz.ch>
18401 Andrew Pinski <pinskia@physics.uc.edu>
18402
18403 PR target/14931
18404 * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
18405 style.
18406
18407 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
18408
18409 * tree.h (build_int_cst): New.
18410 (build_int_2): Remove.
18411 * tree.c (build_int_2): Remove.
18412 (build_int_cst): New.
18413 (make_vector_type, build_common_tree_nodes,
18414 build_common_tree_nodes_2): Use build_int_cst.
18415 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
18416 expand_builtin_strpbrk, expand_builtin_fputs,
18417 build_string_literal, expand_builtin_printf,
18418 expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
18419 fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
18420 fold_builtin_isdigit, simplify_builtin_strstr,
18421 simplify_builtin_strpbrk, fold_builtin_fputs,
18422 simplify_builtin_sprintf): Use build_int_cst.
18423 * c-common.c (start_fname_decls, fix_string_type,
18424 c_common_nodes_and_builtins, c_init_attributes,
18425 shorten_compare): Likewise.
18426 * c-decl.c (complete_array_type,
18427 check_bitfield_type_and_width): Likewise.
18428 * c-lex.c (interpret_integer, lex_charconst): Likewise.
18429 * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
18430 * c-pretty-print.c (pp_c_integer_constant): Likewise.
18431 * c-typeck.c (really_start_incremental_init, push_init_level,
18432 set_nonincremental_init_from_string): Likewise.
18433 * calls.c (load_register_parameters): Likewise.
18434 * convert.c (convert_to_pointer): Likewise.
18435 * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
18436 build_fn_info_type, build_ctr_info_value, build_gcov_info):
18437 Likewise.
18438 * except.c (init_eh, assign_filter_values, assign_filter_values):
18439 Likewise.
18440 * expmed.c (store_fixed_bit_field, extract_bit_field,
18441 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
18442 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
18443 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
18444 * expr.c (convert_move, emit_group_load, emit_group_store,
18445 expand_assignment, store_constructor, store_field,
18446 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
18447 * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
18448 invert_truthvalue, optimize_bit_field_compare,
18449 decode_field_reference, all_ones_mask_p, constant_boolean_node,
18450 fold_div_compare, fold, fold_read_from_constant_string,
18451 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
18452 * function.c (assign_parm_setup_block): Likewise.
18453 * stmt.c (shift_return_value, expand_end_case_type,
18454 estimate_case_costs): Likewise.
18455 * stor-layout.c (layout_type, initialize_sizetypes,
18456 set_min_and_max_values_for_integral_type): Likewise.
18457 * tree-chrec.c (chrec_fold_multiply_poly_poly,
18458 reset_evolution_in_loop): Likewise.
18459 * tree-chrec.h (build_polynomial_chrec): Likewise.
18460 * tree-complex.c (build_replicated_const): Likewise.
18461 * tree-eh.c (honor_protect_cleanup_actions,
18462 lower_try_finally_onedest, lower_try_finally_copy,
18463 lower_try_finally_switch): Likewise.
18464 * tree-mudflap.c (mf_build_string, mx_register_decls,
18465 mudflap_register_call, mudflap_enqueue_constant): Likewise.
18466 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
18467 * tree-pretty-print.c (dump_generic_node): Likewise.
18468 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
18469 Likewise.
18470 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
18471 * tree-ssa-loop-niter.c (number_of_iterations_cond,
18472 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
18473 Likewise.
18474
18475 * config/alpha/alpha.c (alpha_initialize_trampoline,
18476 alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
18477 * config/arm/arm.c (arm_get_cookie_size): Likewise.
18478 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
18479 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
18480 * config/i860/i860.c (i860_va_start): Likewise.
18481 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
18482 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
18483 mips_gimplify_va_arg_expr): Likewise.
18484 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
18485 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
18486 add_compiler_branch_island): Likewise.
18487 * config/s390/s390.c (s390_va_start): Likewise.
18488 * config/sh/sh.c (sh_va_start): Likewise.
18489 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
18490 Likewise.
18491 * config/xtensa/xtensa.c (xtensa_va_start,
18492 xtensa_gimplify_va_arg_expr): Likewise.
18493
18494 * objc/objc-act.c (build_objc_string_object,
18495 build_objc_symtab_template, init_def_list, init_objc_symtab,
18496 init_module_descriptor, generate_static_references,
18497 build_selector_translation_table, get_proto_encoding,
18498 build_typed_selector_reference, build_selector_reference,
18499 build_next_objc_exception_stuff,
18500 build_method_prototype_list_template, generate_descriptor_table,
18501 generate_protocols, build_protocol_initializer,
18502 build_ivar_list_template, build_method_list_template,
18503 build_ivar_list_initializer, generate_ivars_list,
18504 generate_dispatch_table, generate_protocol_list,
18505 build_category_initializer, build_shared_structure_initializer,
18506 generate_shared_structures, handle_impent,
18507 generate_objc_image_info): Use build_int_cst.
18508
18509 2004-08-15 Ben Elliston <bje@au.ibm.com>
18510
18511 * vec.h: Comment improvements.
18512
18513 2004-08-14 Roger Sayle <roger@eyesopen.com>
18514
18515 * c-common.c (shorten_compare, pointer_int_sum,
18516 c_common_truthvalue_conversion, boolean_increment): Replace calls
18517 to build with calls to buildN.
18518 * c-decl.c (complete_array_type, grokdeclarator): Likewise.
18519 * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
18520 gimplify_switch_stmt): Likewise.
18521 * c-typeck.c (default_function_array_conversion,
18522 build_component_ref, build_array_ref, build_function_call,
18523 pointer_diff, build_unary_op, build_conditional_expr,
18524 build_compound_expr, build_modify_expr, c_finish_goto_label,
18525 c_finish_goto_ptr, c_finish_return, c_finish_loop,
18526 c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
18527 build_binary_op): Likewise.
18528
18529 2004-08-15 Steven Bosscher <stevenb@suse.de>
18530
18531 * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
18532
18533 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18534
18535 * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
18536 curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
18537 * fixinc/fixincl.x: Rebuilt.
18538
18539 2004-08-14 Richard Sandiford <rsandifo@redhat.com>
18540
18541 * config/mips/mips-protos.h (mips_symbolic_constant_p)
18542 (mips_atomic_symbolic_constant_p, mips_stack_address_p)
18543 (mips_small_data_pattern_p): Declare.
18544 * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
18545 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
18546 * config/mips/mips.c (mips_symbolic_constant_p): Make global.
18547 (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
18548 (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
18549 (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
18550 (reg_or_const_float_1_operand, hilo_operand, extend_operator)
18551 (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
18552 (pc_or_label_operand, call_insn_operand, move_operand)
18553 (consttable_operand, symbolic_operand, general_symbolic_operand)
18554 (global_got_operand, local_got_operand, stack_operand)
18555 (fp_register_operand, lo_operand, fcc_register_operand): Delete.
18556 (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
18557 (mips_small_data_pattern_p): Replace previous small_data_pattern
18558 predicate. Turn into a bool () (rtx) function.
18559 * config/mips/predicates.md: New file.
18560 * config/mips/mips.md: Include it. Use the target-independent
18561 comparison_operator instead of cmp_op. Rename trap_cmp_op to
18562 trap_comparison_operator and equality_op to equality_operator.
18563 Replace uses of small_int with the equivalent const_arith_operand.
18564 Rename reg_or_const_float_1_operand to reg_or_1_operand. Rename
18565 const_float_1_operand to const_1_operand. Rename fcc_register_operand
18566 to fcc_reload_operand.
18567 * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
18568
18569 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18570
18571 PR libstdc++/17005 partial fix.
18572 * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
18573 except when generating ANSI/C89 code.
18574
18575 2004-08-14 Nathan Sidwell <nathan@codesourcery.com>
18576
18577 * c-common.c (shorten_compare): Use force_fit_type directly.
18578
18579 2004-08-14 Gerald Pfeifer <gerald@pfeifer.com>
18580 Dimitri Papadopoulos-Orfanos <papadopo@shfj.cea.fr>
18581 Dave Korn <dk@artimi.com>
18582
18583 * doc/install.texi (Building): Avoid duplicate reference to GNU
18584 make requirement.
18585 (*-*-solaris2*): Do not recommend GNU make any longer. Simplify.
18586
18587 2004-08-14 Richard Henderson <rth@redhat.com>
18588
18589 * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
18590 * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
18591
18592 2004-08-13 Richard Henderson <rth@redhat.com>
18593
18594 * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
18595 for constant_call_address_operand.
18596 (call_value_pop_1, call_value_1): Likewise.
18597 (sibcall_value_1, call_value_1_rex64): Likewise.
18598
18599 2004-08-13 James E Wilson <wilson@specifixinc.com>
18600
18601 * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
18602 Correct mode from SFmode to DFmode.
18603
18604 2004-08-13 Ziemowit Laski <zlaski@apple.com>
18605
18606 * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
18607 __cstring_object and __image_info sections with the no_dead_strip
18608 attribute.
18609
18610 2004-08-13 Roger Sayle <roger@eyesopen.com>
18611 David Billinghurst <David.Billinghurst@riotinto.com>
18612
18613 PR libgfortran/15930
18614 * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
18615 * fixinc/fixincl.x: Regenerate.
18616 * fixinc/tests/base/internal/math_core.h: New file.
18617
18618 2004-08-13 Richard Henderson <rth@redhat.com>
18619
18620 * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
18621 (dbxout_function_end): Remove ifdefs for it.
18622 (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
18623
18624 2004-08-13 Richard Henderson <rth@redhat.com>
18625
18626 * Makefile.in (insn-preds.o): Depend on TREE_H.
18627 * genpreds.c (write_insn_preds_c): Include tree.h.
18628 * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
18629 reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
18630 const48_operand, and_operand, or_operand, mode_width_operand,
18631 mode_mask_operand, mul8_operand, const0_operand,
18632 hard_fp_register_operand, hard_int_register_operand,
18633 reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
18634 samegp_function_operand, direct_call_operand, small_symbolic_operand,
18635 global_symbolic_operand, call_operand, symbolic_operand,
18636 dtp16_symbolic_operand, dtp32_symbolic_operand,
18637 gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
18638 gottp_symbolic_operand, alpha_comparison_operator,
18639 alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
18640 signed_comparison_operator, alpha_fp_comparison_operator,
18641 divmod_operator, fix_operator, aligned_memory_operand,
18642 unaligned_memory_operand, reg_or_unaligned_mem_operand,
18643 any_memory_operand, reg_not_elim_operand, normal_memory_operand,
18644 reg_no_subreg_operand, addition_operation): Move to predicates.md.
18645 (reg_or_const_int_operand): Remove. Replace all users with
18646 reg_or_cint_operand.
18647 (tls_symbolic_operand_1): Export. Don't check mode or for CONST.
18648 (resolve_reload_operand): Split out of aligned_memory_operand.
18649 * config/alpha/alpha-protos.h: Update for exports.
18650 * config/alpha/alpha.h (PREDICATE_CODES): Remove.
18651 * config/alpha/alpha.md: Include predicates.md.
18652 * config/alpha/predicates.md: New file.
18653
18654 2004-08-13 Richard Sandiford <rsandifo@redhat.com>
18655
18656 * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
18657 fields with a pointer to the instruction definition.
18658 (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
18659 (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
18660 (write_attr_case, write_const_num_delay_slots): Update accordingly.
18661 (write_attr_case, write_const_num_delay_slots): Write the name of
18662 an insn next to its case statement.
18663 * genoutput.c (data): Add a filename field.
18664 (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
18665 (output_insn_data): Print the location of each insn definition.
18666 * genrecog.c (write_action): Print the name of an insn above
18667 the statement that returns its code.
18668
18669 2004-08-12 Andrew Pinski <pinskia@physics.uc.edu>
18670
18671 * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
18672 * config/libgloss.h: Likewise.
18673 * config/arm/arm.c (arm_gen_load_multiple): Likewise.
18674 * c4x/c4x-modes.def: Likewise.
18675 * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
18676 (c4x_rptb_nop_p): Likewise.
18677 (c4x_rptb_valid_p): Likewise.
18678 (c4x_rptb_insert): Likewise.
18679 (c4x_address_conflict): Likewise.
18680 * config/c4x/c4x.md: Likewise.
18681 * config/frv/frv.md: Likewise.
18682 * config/i386/athlon.md: Likewise.
18683 * config/i386/i386.md: Likewise.
18684 * config/i386/predicates.md: Likewise.
18685 * config/ia64/ia64.c: Likewise.
18686 * config/ia64/itanium1.md: Likewise.
18687 * config/ia64/itanium2.md: Likewise.
18688 * config/iq2000/iq2000.md: Likewise.
18689 * config/mcore/mcore.c: Likewise.
18690 * config/mips/mips.c: Likewise.
18691 * config/mips/r3900.h: Likewise.
18692 * config/mips/sb1.md: Likewise.
18693 * config/pa/milli64.S: Likewise.
18694 * config/pa/pa.c: Likewise.
18695 * config/pa/pa.h: Likewise.
18696 * config/rs6000/8540.md: Likewise.
18697
18698 2004-08-13 Daniel Berlin <dberlin@dberlin.org>
18699
18700 * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
18701
18702 2004-08-13 J"orn Rennecke <joern.rennecke@superh.com>
18703
18704 * sh.md (cbranch define_delay) Use cond_delay_slot for
18705 non-anulled condition too.
18706
18707 2004-08-12 David Edelsohn <edelsohn@gnu.org>
18708
18709 * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
18710 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
18711 any_parallel_operand, lmw_operation, stmw_operation,
18712 mfcr_operation, mtcrf_operation. Remove PARALLEL from any_operand.
18713 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
18714 any_parallel_operand.
18715 (return_and_restore_fpregs_{si,di}): Same.
18716
18717 2004-08-12 Zack Weinberg <zack@codesourcery.com>
18718
18719 * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
18720 if pred->singleton != PARALLEL, issue a warning and pretend it was.
18721 Also issue a warning for any predicate we don't know about.
18722
18723 2004-08-12 Richard Henderson <rth@redhat.com>
18724
18725 * config/i386/i386.c (internal_label_prefix): Export.
18726 (internal_label_prefix_len, struct ix86_address,
18727 ix86_decompose_address, maybe_get_pool_constant,
18728 ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
18729 memory_address_length): Export.
18730 (any_fp_register_operand, fp_register_operand,
18731 register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
18732 x86_64_general_operand, x86_64_szext_general_operand,
18733 x86_64_nonmemory_operand, x86_64_movabs_operand,
18734 x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
18735 x86_64_zext_immediate_operand, const_int_1_31_operand,
18736 symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
18737 tls_symbolic_operand, global_dynamic_symbolic_operand,
18738 local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
18739 local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
18740 constant_call_address_operand, const0_operand, const1_operand,
18741 const248_operand, const_0_to_3_operand, const_0_to_7_operand,
18742 const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
18743 shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
18744 general_no_elim_operand, nonmemory_no_elim_operand,
18745 index_register_operand, q_regs_operand, flags_reg_operand,
18746 non_q_regs_operand, zero_extended_scalar_load_operand,
18747 vector_move_operand, no_seg_address_operand, sse_comparison_operator,
18748 ix86_comparison_operator, ix86_carry_flag_operator,
18749 fcmov_comparison_operator, promotable_binary_operator,
18750 cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
18751 mult_operator, div_operator, arith_or_logical_operator,
18752 memory_displacement_operand, cmpsi_operand, long_memory_operand,
18753 aligned_operand): Move to predicates.md as define_predicates.
18754 (tls_symbolic_operand_1): Remove.
18755 (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
18756 (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
18757 (legitimize_address): Merge tls_symbolic_operand contents.
18758 (ix86_expand_move): Likewise.
18759 * config/i386/i386-protos.h: Update for exports.
18760 * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
18761 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
18762 * config/i386/i386.md: Include predicates.md.
18763 * config/i386/predicates.md: New file.
18764
18765 2004-08-13 Mark Mitchell <mark@codesourcery.com>
18766
18767 PR c++/16924
18768 * config/i386/winnt.c (i386_pe_mark_dllexport): Set
18769 SYMBOL_REF_DECL.
18770 (i386_pe_mark_dllimport): Likewise.
18771 (i386_pe_encode_section_info): Likewise, when overriding
18772 dllimport attribute.
18773
18774 2004-08-12 Geoffrey Keating <geoffk@apple.com>
18775
18776 * configure.ac: When testing for flex, nm, ar, and bison, check
18777 that they will actually be built.
18778 * configure: Regenerate.
18779
18780 2004-08-12 Ulrich Weigand <uweigand@de.ibm.com>
18781
18782 * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
18783 (MOVE_MAX_PIECES): Define.
18784
18785 2004-08-12 Devang patel <dpatel@apple.com>
18786
18787 * dbxout.c (dbxout_begin_prologue): New function.
18788 (dbx_debug_hooks): Use new begin prologue hook.
18789 (dbxout_function_end): Emit N_ENSYM.
18790 * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
18791
18792 2004-08-12 Janis Johnson <janis187@us.ibm.com>
18793
18794 * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
18795 argument is float*.
18796
18797 * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
18798 for vec_dss.
18799
18800 * doc/extend.texi (AltiVec builtins): Fix description for recent
18801 changes. Update operation list to match current support.
18802
18803 2004-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
18804
18805 * config/s390/s390.c (struct s390_frame_layout): New struct as element
18806 of struct machine_function.
18807 (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
18808 changed all uses.
18809 (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
18810 changed all uses.
18811 (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
18812 (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
18813 (s390_frame_area, s390_register_info): New functions.
18814 (s390_optimize_prolog): Renamed to s390_optimize_prologue. Added check
18815 for base register.
18816 (s390_return_addr_rtx, s390_return_address_offset)
18817 (s390_va_start, s390_gimplify_va_arg)
18818 (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
18819 layouts.
18820 (s390_frame_info): Functionality partly moved to s390_register_info.
18821 Made adaptions for new stack layout.
18822 (save_gprs, restore_gprs): Changed meaning of second parameter and
18823 adapted all callers.
18824
18825 * config/s390/s390.h (s390_backchain_string): New global variable.
18826 (MASK_BACKCHAIN): Removed definition.
18827 (TARGET_BACKCHAIN): Changed check.
18828 (TARGET_KERNEL_BACKCHAIN): New macro.
18829 (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
18830 (TARGET_OPTIONS): Added "backchain", "no-backchain" and
18831 "kernel-backchain".
18832 (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
18833
18834 * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
18835 as condition. Adjusted for new stack layout.
18836
18837 * doc/invoke.texi: Added documentation for new option
18838 "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
18839 "-mno-backchain".
18840
18841 2004-08-12 Paul Brook <paul@codesourcery.com>
18842
18843 * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
18844 (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
18845
18846 2004-08-12 David Daney <ddaney@avtrex.com>
18847
18848 * java/gcj.texi: Add subsection on signal usage.
18849
18850 2004-08-12 David Edelsohn <edelsohn@gnu.org>
18851
18852 * expr.c (move_by_pieces): Set alignment for move to minimum of
18853 MOVE_MAX_PIECES mode alignment and the largest non-slow mode
18854 alignment, but not less than the original alignment.
18855 (move_by_pieces_ninsns): Same.
18856 (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
18857 (store_by_pieces_1): Same.
18858
18859 2004-08-12 Diego Novillo <dnovillo@redhat.com>
18860
18861 PR tree-optimization/16867
18862 * tree.c (is_global_var): New function.
18863 (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
18864 Call is_global_var.
18865 * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
18866 Update all users.
18867 (is_global_var): Declare.
18868 * tree-dfa.c (dump_variable): Display global and addressable
18869 attributes.
18870 (add_referenced_var): Clarify documentation when marking
18871 variables call-clobbered.
18872 * tree-flow-inline.h (is_call_clobbered): Call is_global_var
18873 instead of needs_to_live_in_memory.
18874 (mark_call_clobbered): If the variable is a tag, mark it
18875 DECL_EXTERNAL.
18876 * tree-gimple.c (is_gimple_reg): Don't check for
18877 TREE_ADDRESSABLE.
18878 (is_gimple_non_addressable): Likewise.
18879 * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
18880 needs to be marked call-clobbered.
18881 (setup_pointers_and_addressables): Call is_global_var instead
18882 of needs_to_live_in_memory.
18883 * tree-ssa-dce.c (need_to_preserve_store): Remove.
18884 Update all users with is_global_var.
18885 (mark_stmt_if_obviously_necessary): Fix processing of aliased
18886 stores. Don't check the virtual definitions. Rather, check
18887 whether the store is going into global memory.
18888 (find_obviously_necessary_stmts): Get the symbol from the PHI
18889 result.
18890 * tree-ssa-operands.c (get_call_expr_operands): Do not add
18891 clobbering may-defs if the call does not have side effects.
18892
18893 2004-08-12 Jakub Jelinek <jakub@redhat.com>
18894
18895 PR c++/16276
18896 * output.h (default_function_rodata_section,
18897 default_no_function_rodata_section): New prototypes.
18898 * target.h (struct gcc_target): Add asm_out.function_rodata_section.
18899 * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
18900 (TARGET_ASM_OUT): Add it.
18901 * varasm.c (default_function_rodata_section,
18902 default_no_function_rodata_section): New functions.
18903 * final.c (final_scan_insn): Call
18904 targetm.asm_out.function_rodata_section instead of
18905 readonly_data_section.
18906 * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
18907 * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18908 * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18909 * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
18910 Likewise.
18911 * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18912 * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
18913 Likewise.
18914 * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
18915 Likewise.
18916 * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18917 * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18918 * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
18919
18920 2004-08-12 Paul Brook <paul@codesourcery.com>
18921
18922 * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
18923 frame info.
18924 * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
18925 DWARF2_UNWIND_INFO.
18926
18927 2004-08-12 Ben Elliston <bje@au.ibm.com>
18928
18929 PR target/16286
18930 * config/rs6000/altivec.h: Change vector to __vector throughout.
18931 (Except for the `vector' macro itself).
18932
18933 2004-08-12 Zack Weinberg <zack@codesourcery.com>
18934
18935 * genpreds.c: Add capability to generate predicate bodies as
18936 well as function prototypes. Write function prototypes for
18937 the generic predicates too.
18938 (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
18939 (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
18940 (write_match_code, write_predicate_expr, write_one_predicate_function)
18941 (parse_option): New functions.
18942 (output_predicate_decls): Delete.
18943 (main): Read the machine description, process DEFINE_PREDICATE or
18944 DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
18945 as appropriate.
18946
18947 * genrecog.c (struct decision_test): Replace index with
18948 struct pred_data pointer.
18949 (next_index): Remove, unused.
18950 (pred_table, preds, special_mode_pred_table): Delete.
18951 (compute_predicate_codes, process_define_predicate): New functions.
18952 (validate_pattern, add_to_sequence, write_switch): Update for
18953 new data structures.
18954 (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
18955 Check both error_count and have_error.
18956
18957 * gensupport.c (in_fname, first_predicate): New globals.
18958 (define_pred_queue, define_pred_tail): New RTL-pattern queue.
18959 (predicate_table, last_predicate, old_pred_table)
18960 (old_special_pred_table): New statics.
18961 (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
18962 (add_predicate, init_predicate_table): New functions.
18963 (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
18964 (init_md_reader_args_cb): Use the global in_fname. No need to zero
18965 it or max_include_len. Call init_predicate_table.
18966 (read_rtx): Run the predicate queue after the attribute queue
18967 but before all the others.
18968 * gensupport.h (in_fname, struct pred_data, first_predicate)
18969 (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
18970 * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
18971 (DEFINE_SPECIAL_PREDICATE): New RTL codes.
18972 * dummy-conditions.c: Don't include bconfig.h, system.h,
18973 coretypes.h, tm.h, or system.h. Do include stddef.h.
18974 Duplicate declaration of struct c_test from gensupport.h.
18975
18976 * Makefile.in (OBJS-common): Add insn-preds.o.
18977 (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
18978 (insn-preds.c, insn-preds.o): New rules.
18979 (s-preds): Also generate insn-preds.c.
18980 (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
18981 Update dependencies.
18982 (print-rtl.o, print-rtl1.o): Correct dependencies.
18983
18984 * recog.h: Delete prototypes of predicate functions.
18985
18986 * doc/md.texi (Predicates): New section with complete
18987 documentation of operand/operator predicates. Remove some
18988 incomplete documentation of predicates from other places.
18989 * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
18990 PREDICATE_CODES; indicate that both are deprecated in favor
18991 of define_predicate/define_special_predicate.
18992
18993 * config/ia64/ia64.c: All predicate function definitions moved
18994 to ia64.md, except
18995 (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
18996 (ia64_expand_load_address, ia64_expand_move):
18997 Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
18998
18999 * config/ia64/ia64.md: All predicates now defined here.
19000 (symbolic_operand): Is now a special predicate.
19001
19002 * config/ia64/ia64.h: Declare ia64_section_threshold.
19003 (PREDICATE_CODES): Delete.
19004
19005 2004-08-12 Richard Henderson <rth@redhat.com>
19006
19007 * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
19008 * c-semantics.c (add_stmt): Set it.
19009 * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
19010 before instantiating a variable sized type.
19011
19012 2004-08-12 Richard Henderson <rth@redhat.com>
19013
19014 * stor-layout.c (round_up, round_down): Move ...
19015 * fold-const.c (round_up, round_down): ... here. Use
19016 multiple_of_p to avoid any arithmetic at all.
19017
19018 2004-08-12 Richard Henderson <rth@redhat.com>
19019
19020 * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
19021 (gimplify_init_ctor_preeval_1): New.
19022 (gimplify_init_ctor_preeval): New.
19023 (gimplify_init_ctor_eval): New.
19024 (gimplify_init_constructor): Use them. Always gimplify the LHS
19025 object first.
19026
19027 2004-08-12 Ziemowit Laski <zlaski@apple.com>
19028
19029 (This patch is part of merge of objc-improvements-branch
19030 into mainline.)
19031
19032 * doc/frontends.texi: Mention Objective-C++ in addition to
19033 Objective-C.
19034 * doc/install.texi: Add 'obj-c++' to list of configurable
19035 languages.
19036 * doc/invoke.texi: Rename Objective-C option headings to
19037 indicate they also apply to Objective-C++. List file
19038 extensions for Objective-C++ sources. Mention that
19039 ObjC and ObjC++ compilations may also use C and C++ options,
19040 respectively. Point users to doc/standards.texi for
19041 further info on ObjC and ObjC++.
19042 * doc/sourcebuild.texi: Mention the objcp/ directory and
19043 the Objective-C++ sources it contains.
19044 * doc/standards.texi: Update link to Apple ObjC site;
19045 add link to gcc readings.html WWW doc.
19046
19047 2004-08-12 Alan Modra <amodra@bigpond.net.au>
19048
19049 * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
19050 and 2004-07-14 changes.
19051
19052 2004-08-12 Paul Brook <paul@codesourcery.com>
19053
19054 * doc/invoke.texi: Fix typo.
19055
19056 2004-08-11 Devang Patel <dpatel@apple.com>
19057
19058 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
19059 and -no_dead_strip_inits_and_terms.
19060 (LINK_SPEC): Same.
19061 * doc/invoke.texi (Darwin Options): Document -dead_strip and
19062 -no_dead_strip_inits_and_terms.
19063
19064 2004-08-11 Paul Brook <paul@codesourcery.com>
19065
19066 * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
19067 (arm_load_pic_register): ... to this.
19068 * config/arm/arm.c (arm_finalize_pic): Rename ...
19069 (arm_load_pic_register): ... to this. Always output insns at the
19070 current location. Load via low reg in thumb mode.
19071 (arm_expand_prologue): Call arm_load_pic_register.
19072 (thumb_expand_prologue): Ditto.
19073 * config/arm/arm.h (FINALIZE_PIC): Remove.
19074 * config/arm/arm.md (builtin_setjmp_receiver): Call
19075 arm_load_pic_register.
19076
19077 2004-08-11 Paul Brook <paul@codesourcery.com>
19078
19079 * arm.c (thumb_force_lr_save): Add prototype.
19080 (thumb_compute_save_reg_mask): New function.
19081 (thumb_find_work_register): New function.
19082 (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
19083 (thumb_unexpanded_epilogue): Ditto. Remove redundant code.
19084 Don't clobber r3 when removing pretend args.
19085 (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
19086 (thumb_output_function_prologue): Use new functions.
19087 (thumb_set_return_address): Use thumb_compute_save_reg_mask.
19088 * arm.h (THUMB_REG_PUSHED_P): Remove.
19089
19090 2004-08-11 James E Wilson <wilson@specifixinc.com>
19091
19092 PR rtl-optimization/16490
19093 * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
19094 global_live_at_end for new basic block if already set for other blocks.
19095
19096 2004-08-11 David Edelsohn <edelsohn@gnu.org>
19097
19098 * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
19099
19100 * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
19101 (mfcr rlwinm rlwinm patterns): Set length to 12.
19102
19103 2004-08-11 Andrew MacLeod <amacleod@redhat.com>
19104
19105 * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
19106 get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
19107 (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
19108 (start_ssa_stmt_operands): Delete.
19109 * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
19110 struct stmt_operands_d.
19111 (build_ssa_operands): New extern entry point.
19112 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
19113 building code, replace with create_ssa_artficial_load_stmt().
19114 * tree-ssa-operands.c (struct voperands_d): Delete.
19115 (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
19116 (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
19117 (free_uses, free_defs, free_vuses, free_v_may_defs,
19118 free_v_must_defs): Remove dealloc parameter.
19119 (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
19120 (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
19121 finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
19122 vector comparisons, ssa_name reuse, and allocations here.
19123 (verify_start_operands): Delete.
19124 (finalize_ssa_stmt_operands): Set new operands by calling finalize
19125 routines.
19126 (start_ssa_stmt_operands): Move from tree-flow-inline.h.
19127 (append_def, append_usei): Simplify to simple accumulation.
19128 (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
19129 duplicates and simple accumulation.
19130 (free_ssa_operands): Free vectors in a stmt_operand structure.
19131 (build_ssa_operands): New. Create a new stmt_operand structure from
19132 a stmt and an old set of stmt_operands.
19133 (get_stmt_operands): Simplify and call build_ssa_operands.
19134 (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
19135 get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
19136 add_call_read_ops): Don't pass prev_vops around anymore.
19137 (note_addressable): Return if no stmt annotation.
19138 (copy_virtual_operands): Access v_may_def operands through a struct.
19139 (create_ssa_artficial_load_stmt): New. Create a load stmt for DOM's
19140 hash tables without treating the stmt as a real stmt.
19141 * tree-ssa-operands.h (struct v_may_def_operand_type): New. Access
19142 v_may_def def and use through a struct instead of 2 array elements.
19143 (struct v_may_def_optype_d): Use v_may_def_operand_type.
19144 (struct stmt_operands_d): New. Struct for storing all operand vectors.
19145
19146 2004-08-11 Nick Clifton <nickc@redhat.com>
19147
19148 * config/arm/arm.c (arm_is_longcall_p): Update comment describing
19149 this funciton's behaviour. Return true when the current function
19150 has a section attribute and -mlong-calls is in effect.
19151 * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
19152 short-call marker when -mlong-calls is in effect and the function
19153 has a section attribute.
19154
19155 2004-08-10 Zack Weinberg <zack@codesourcery.com>
19156
19157 * stmt.c (expand_return): If asked to return the RESULT_DECL,
19158 just call expand_value_return on result_rtl.
19159
19160 2004-08-10 Richard Henderson <rth@redhat.com>
19161
19162 * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
19163 * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
19164 * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
19165 (add_location_or_const_value_attribute): ... not here. Use
19166 loc_descriptor_from_tree if possible.
19167 (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
19168 Simplify address handling. Handle DECL_VALUE_EXPR. Handle register
19169 values specially.
19170 (loc_descriptor_from_tree): New. Update callers.
19171 * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
19172 * gimplify.c (gimplify_decl_expr): Lower variable sized types to
19173 pointer plus dereference. Set DECL_VALUE_EXPR. Set save_stack.
19174 (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
19175 and BUILT_IN_STACK_RESTORE.
19176 (gimplify_expr): Lower DECL_VALUE_EXPR decls.
19177 * stmt.c (expand_stack_alloc): Remove.
19178 * tree-mudflap.c (mx_register_decls): Don't look for
19179 BUILT_IN_STACK_ALLOC.
19180 * tree-nested.c (convert_local_reference): Likewise.
19181 * tree.h (DECL_VALUE_EXPR): New.
19182
19183 2004-08-10 Richard Henderson <rth@redhat.com>
19184
19185 * stor-layout.c (round_up): Check for 0/1 before dividing.
19186 (round_down): Likewise.
19187
19188 * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
19189
19190 2004-08-09 Mark Mitchell <mark@codesourcery.com>
19191
19192 * config.gcc (arm*-*-eabi*): New target.
19193 * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
19194 (TARGET_LIB_INT_CMP_BIASED): Likewise.
19195 * expmed.c (expand_divmod): Try a two-valued divmod function as a
19196 last resort.
19197 * gthr.h: Remove bogus tokens at end of #pragma.
19198 * optabs.c (expand_twoval_binop_libfunc): New function.
19199 (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
19200 (prepare_float_lib_cmp): Try reversing the condition.
19201 (debug_optab_libfuncs): New function.
19202 * optabs.h (expand_twoval_binop_libfunc): Declare.
19203 * config/arm/arm.c (arm_init_libfuncs): New function.
19204 (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
19205 (TARGET_INIT_LIBFUNCS): Define it.
19206 * config/arm/arm.h (TARGET_BPABI): New macro.
19207 * config/arm/arm-protos.h
19208 (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
19209 * config/arm/bpabi.S: New file.
19210 * config/arm/bpabi.c: Likewise.
19211 * config/arm/bpabi.h: Likewise.
19212 * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
19213 (__aeabi_drsub): Likewise.
19214 (__aeabi_dsub): Likewise.
19215 (__aeabi_dadd): Likewise.
19216 (__aeabi_ui2d): Likewise.
19217 (__aeabi_i2d): Likewise.
19218 (__aeabi_f2d): Likewise.
19219 (__aeabi_dmul): Likewise.
19220 (__aeabi_ddiv): Likewise.
19221 (__aeabi_cdrcmple): Likewise.
19222 (__aeabi_cdcmpeq): Likewise.
19223 (__aeabi_cdcmple): Likewise.
19224 (__aeabi_dcmpeq): Likewise.
19225 (__aeabi_dcmplt): Likewise.
19226 (__aeabi_dcmple): Likewise.
19227 (__aeabi_dcmpge): Likewise.
19228 (__aeabi_dcmpgt): Likewise.
19229 (__aeabi_dcmpun): Likewise.
19230 (__aeabi_d2iz): Likewise.
19231 (__aeabi_d2uiz): Likewise.
19232 (__aeabi_d2f): Likewise.
19233 * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
19234 (__aeabi_frsub): Likewise.
19235 (__aeabi_fsub): Likewise.
19236 (__aeabi_fadd): Likewise.
19237 (__aeabi_ui2f): Likewise.
19238 (__aeabi_i2f): Likewise.
19239 (__aeabi_fmul): Likewise.
19240 (__aeabi_fdiv): Likewise.
19241 (__aeabi_cfrcmple): Likewise.
19242 (__aeabi_cfcmpeq): Likewise.
19243 (__aeabi_cfcmple): Likewise.
19244 (__aeabi_fcmpeq): Likewise.
19245 (__aeabi_fcmplt): Likewise.
19246 (__aeabi_fcmple): Likewise.
19247 (__aeabi_fcmpge): Likewise.
19248 (__aeabi_fcmpgt): Likewise.
19249 (__aeabi_fcmpun): Likewise.
19250 (__aeabi_f2iz): Likewise.
19251 (__aeabi_f2uiz): Likewise.
19252 * config/arm/lib1funcs.asm (ARM_CALL): New macro.
19253 (__aeabi_uidivmod): New function or alias.
19254 (__aeabi_idivmod): Likewise.
19255 (__aeabi_idiv0): Likewise.
19256 (__aeabi_ldiv0): Likewise.
19257 (__aeabi_llsr): Likewise.
19258 (__aeabi_lasr): Likewise.
19259 (__aeabi_llsl): Likewise.
19260 (bpabi.S): Include it.
19261 * config/arm/libgcc-bpabi.ver: New file.
19262 * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
19263 (LINK_SPEC): Remove.
19264 * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
19265 __aeabi_ulcmp.
19266 * config/arm/t-bpabi: New file.
19267 * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
19268 (TARGET_LIB_INT_CMP_BIASED): Likewise.
19269
19270 2004-08-10 David Edelsohn <edelsohn@gnu.org>
19271
19272 * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
19273 * config/rs6000/rs6000.md (clrmemsi): New pattern.
19274 * config/rs6000/rs6000.c (expand_block_clear): New function.
19275 (expand_block_move): Convert alignment to bits. Use SImode and
19276 HImode for unaligned addresses if not STRICT_ALIGNMENT.
19277
19278 2004-08-10 Caroline Tice <ctice@apple.com>
19279
19280 * varasm.c (unlikely_section_label): New global variable.
19281 (unlikely_text_section_name): New global variable.
19282 (text_section): Remove alignment statement.
19283 (unlikely_text_section): Remove alignment statement; use
19284 unlikely_section_label rather than hard-coded string.
19285 (assemble_start_function): Initialize unlikely_section_label and
19286 unlikely_text_section_name; make sure cold section is properly
19287 aligned at start of function; output unlikely_section_label if
19288 appropriate.
19289
19290 2004-08-10 Ulrich Weigand <uweigand@de.ibm.com>
19291
19292 * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
19293 * config/s390/s390.c (s390_canonicalize_comparison): New function.
19294 * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
19295 * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
19296 "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
19297 ("*tmqi_mem"): Remove SUBREG from pattern.
19298 ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
19299 ("*andsi3_cconly"): Likewise.
19300
19301 2004-08-10 H.J. Lu <hongjiu.lu@intel.com>
19302
19303 PR target/16909
19304 * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
19305
19306 2004-08-10 Janis Johnson <janis187@us.ibm.com>
19307
19308 * doc/sourcebuild.texi (compat testing): Document available test
19309 framework commands. Use the preferred spelling of DejaGnu.
19310
19311 2004-08-10 Daniel Berlin <dberlin@dberlin.org>
19312
19313 * lambda.h: Add matrix type, and prototypes for remainder of
19314 matrix and vector functions.
19315 (lambda_vector_mult_const): New function.
19316 (lambda_vector_negate): Ditto.
19317 (lambda_vector_add): Ditto.
19318 (lambda_vector_add_mc): Ditto.
19319 (lambda_vector_copy): Ditto.
19320 (lambda_vector_zerop): Ditto.
19321 (lambda_vector_equal): Ditto.
19322 (lambda_vector_min_nz): Ditto.
19323 (lambda_vector_first_nz): Ditto.
19324 (lambda_vector_matrix_mult): Ditto.
19325 * lambda-mat.c: New file.
19326 * Makefile.in (lambda-mat.o): New.
19327
19328 2004-08-10 Andrew MacLeod <amacleod@redhat.com>
19329
19330 * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
19331 after linking stmt into the program.
19332 (bsi_remove): Don't call modify_stmt.
19333 * tree-complex.c (update_complex_assignment,
19334 expand_complex_comparison): Call modify_stmt after changing the stmt.
19335 * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
19336 removing the stmt.
19337 * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
19338 the stmt, and only if needed.
19339 * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
19340 expression.
19341 (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
19342 (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
19343 (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
19344 (eliminate_redundant_computations): Don't pass an annotation. Call
19345 modify_stmt rather than setting the annotation directly.
19346 (record_equivalences_from_stmt): Remove unused local 'j'.
19347 (cprop_operand): Take a stmt rather than an annotation as a parameter.
19348 Call modify_stmt.
19349 (cprop_into_stmt): Pass stmt rather than annotation.
19350 (update_rhs_and_lookup_avail_expr): Call modify_stmt.
19351 * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
19352 modify_stmt.
19353 * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
19354
19355 2004-08-10 Jason Merrill <jason@redhat.com>
19356
19357 PR middle-end/16948
19358 * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
19359 the RESULT_DECL.
19360
19361 2004-08-10 Geoffrey Keating <geoffk@apple.com>
19362
19363 * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
19364 hash function.
19365
19366 2004-08-10 Roger Sayle <roger@eyesopen.com>
19367
19368 * config/mips/mips.md: New reciprocal square root patterns that
19369 match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
19370
19371 2004-08-10 Paul Brook <paul@codesourcery.com>
19372
19373 * config/arm/arm-protos.h (arm_set_return_address,
19374 thumb_set_return_address): Add prototypes.
19375 * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
19376 * config/arm/arm.c (arm_compute_func_type,
19377 use_return_insn, arm_compute_save_reg0_reg12_mask,
19378 arm_compute_save_reg_mask, arm_output_function_prologue,
19379 arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
19380 current_function_calls_eh_return.
19381 (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
19382 old eh code.
19383 (arm_set_return_address, thumb_set_return_address): New functions.
19384 * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
19385 ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
19386 * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
19387 (epilogue): Use the stackadj register.
19388 (eh_return, arm_eh_return, thumb_eh_return): New pattern.
19389
19390 2004-08-10 Jakub Jelinek <jakub@redhat.com>
19391
19392 PR target/3144
19393 * expr.c (move_by_pieces_ninsns): Add max_size argument.
19394 (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
19395 (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
19396 (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
19397 but using MOVE_RATIO.
19398 (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
19399 (can_store_by_pieces): Change max_size type to unsigned int.
19400 (store_by_pieces_1): Likewise. Pass max_size to
19401 move_by_pieces_ninsns.
19402 * config/s390/s390.h (STORE_BY_PIECES_P): Define.
19403 * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
19404 to move_by_pieces_ninsns.
19405 (STORE_BY_PIECES_P): Define.
19406 * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
19407 to move_by_pieces_ninsns.
19408 * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
19409
19410 * config/i386/i386.h (CLEAR_RATIO): Define.
19411
19412 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
19413
19414 * expr.c (expand_expr_real_1): Add back code that was not dead.
19415
19416 2004-08-09 Andrew Pinski <apinski@apple.com>
19417
19418 * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
19419 which is found to be compatible before returning the aliasing set.
19420
19421 2004-08-09 Daniel Jacobowitz <dan@debian.org>
19422
19423 * ggc-zone.c (struct alloc_zone): Add statistics counters.
19424 (always_collect): New flag.
19425 (ggc_alloc_zone_1): Update statistics support. Don't include
19426 overhead in allocated counter.
19427 (sweep_pages): Update allocated counter for large pages. Don'y
19428 include overhead.
19429 (ggc_collect_1): Always collect.
19430 (ggc_collect): Honor always_collect flag. Sum all zones to decide
19431 whether to collect.
19432 (SCALE, LABEL): New macros.
19433 (ggc_print_statistics): Add statistics support.
19434
19435 2004-08-09 Roger Sayle <roger@eyesopen.com>
19436
19437 * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
19438 (init_expmed): Fix potential overrun problem with "all.reg".
19439 (expand_sdiv2_pow2): Add an alternate implementation for signed
19440 division, if the target provides a suitable conditional move insn.
19441
19442 2004-08-09 Paul Brook <paul@codesourcery.com>
19443 Richard Henderson <rth@redhat.com>
19444
19445 * unwind-dw2.c (uw_install_context_1): Update target saved stack
19446 pointer.
19447
19448 2004-08-09 Geoffrey Keating <geoffk@apple.com>
19449
19450 * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
19451 Check DATA limit only if there's no AS limit. Ignore insanely
19452 low DATA limits.
19453 (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
19454 but take care that the AS limit isn't overrun.
19455 * doc/invoke.texi: Update documentation of min-heapsize parameter.
19456
19457 2004-08-09 Jeff Law <law@redhat.com>
19458
19459 * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
19460 (tree-ssa-threadupdate.o): Add dependencies.
19461 * tree-ssa-threadupdate.c: New file.
19462 * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
19463 (rewrite_vars_out_of_ssa): Remove prototype.
19464 (cleanup_tree_cfg): Returns a bool.
19465 * tree.h (thread_through_all_blocks): Prototype.
19466 * tree-outof-ssa.c (SSANORM_*): Move into here.
19467 (remove_ssa_form): Now static.
19468 (rewrite_vars_out_of_ssa): Kill.
19469 * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
19470 * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
19471 (remove_ssa_form, register_partitions_for_vars): Kill declarations.
19472 * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
19473 anything was changed.
19474 * tree-phinodes.c (add_phi_arg): Get the block for the PHI
19475 from the PHI's annotation rather than the edge associated with
19476 the new argument.
19477 * tree-ssa-dom.c (redirection_edges): Kill.
19478 (redirect_edges_and_update_ssa_graph): Kill.
19479 (tree_ssa_dominator_optimize): Do not reset forwardable flag
19480 for blocks anymore. Do not initialize redirection_edges.
19481 Call thread_through_all_blocks. Simplify code for cleanup
19482 of the CFG and iterating. No longer call cleanup_tree_cfg
19483 outside the iteration loop.
19484 (thread_across_edge): No longer mess with forwardable blocks.
19485
19486 2004-08-09 Zack Weinberg <zack@codesourcery.com>
19487
19488 * explow.c (memory_address): Use memory_address_p.
19489 * recog.c (general_operand): Likewise.
19490 * regrename.c: No need to define REG_OK_STRICT.
19491
19492 2004-08-09 Steven Bosscher <stevenb@suse.de>
19493
19494 * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
19495 New timers.
19496 * gcse.c: Include timevar.h.
19497 (const_prop_count, copy_prop_count): Rename to global_const_prop_count
19498 and global_copy_prop_count.
19499 (local_const_prop_count, local_copy_prop_count): New static globals.
19500 (gcse_main): Set the right timevar for each pass.
19501 (cprop_jump): Increment global_const_prop_count when a constant is
19502 propagated. Add "GLOBAL" to dump output.
19503 (cprop_insn): Increment global_const_prop_count when a constant is
19504 propagated, or global_copy_prop_count when a copy is propagated.
19505 (do_local_cprop): Likewise for local_const_prop_count and
19506 local_copy_prop_count.
19507 (one_cprop_pass): Initialize const/cprop counters to zero.
19508 Print out results of local and global const/cprop separately.
19509 (bypass_block): Break over-length line.
19510 * Makefile.in (gcse.o): Add TIMEVAR_H dependency. Fix dependencies
19511 for bb-reorder.o and tracer.o.
19512
19513 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
19514
19515 * Makefile.in (GTFILES): Remove stmt.c
19516 (stmt.o): Do not depend on gt-stmt.h.
19517 * emit-rtl.c (emit_line_note): Do not call
19518 set_file_and_line_for_stmt.
19519 * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
19520 do everything.
19521 * function.c (free_after_parsing): Do not free STMT field.
19522 (allocate_struct_function): Do not call init_stmt_for_function.
19523 (assign_stack_temp_for_type): Do not accept values of keep
19524 other than 0 or 1.
19525 (init_temp_slots): Do not initialize removed variables.
19526 * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
19527 and X_VAR_TEMP_SLOT_LEVEL fields.
19528 * rtl.h (set_file_and_line_for_stmt): Remove.
19529 * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
19530 struct stmt_status, cond_stack, case_stack, nesting_stack,
19531 nesting_depth, emit_locus, set_file_and_line_for_stmt,
19532 same_case_target_p, init_stmt_for_function, emit_nop,
19533 expand_start_cond, expand_start_elseif, expand_start_else,
19534 expand_elseif, expand_end_cond): Remove.
19535 (preserve_subexpressions_p): Remove references to CFUN->STMT.
19536 (expand_start_case, expand_end_case_type): Remove, merge into...
19537 (expand_case): ... this one, including other bits from
19538 expand_expr_real_1. Inline same_case_target_p. Turn members
19539 of CASE_STACK into local variables.
19540 (emit_case_bit_tests): Inline same_case_target_p.
19541 (add_case_node): Add HEAD argument, return new head of the list,
19542 do not handle default label here.
19543 * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
19544 expand_start_elseif, current_nesting_level, expand_start_case,
19545 expand_end_case_type, expand_end_case, add_case_node,
19546 init_stmt_for_function, expand_elseif): Remove prototypes.
19547 (expand_case): Add prototype.
19548
19549 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
19550
19551 * expr.c (expand_expr_real_1): Use optab_for_tree_code.
19552
19553 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
19554
19555 * expr.c (var_rtx): Remove.
19556 (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
19557 LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
19558 TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
19559 Abort.
19560 (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
19561 * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
19562 * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
19563
19564 2004-08-08 Mostafa Hagog <mustafa@il.ibm.com>
19565 Ayal Zaks <zaks@il.ibm.com>
19566
19567 * common.opt (freschedule-modulo-scheduled-loops): New flag.
19568 * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
19569 * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
19570 when -freschedule-modulo-scheduled-loops flag is not specified.
19571 (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
19572 add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
19573 More accurate placing of insn in row of partial schedule.
19574 (ps_insn_find_column): New function.
19575 * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
19576 * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
19577 (schedule_region): Use sched_is_disabled_for_current_region_p.
19578 * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
19579
19580 2004-08-07 H.J. Lu <hongjiu.lu@intel.com>
19581
19582 * config/i386/i386.c (ix86_expand_clrmem): Revert the last
19583 change.
19584
19585 2004-08-07 H.J. Lu <hongjiu.lu@intel.com>
19586
19587 * config/i386/i386.c (ix86_expand_clrmem): Properly call
19588 gen_strset for 64bit target.
19589
19590 2004-08-07 Olivier Hainque <hainque@act-europe.fr>
19591
19592 * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
19593
19594 2004-08-07 Jason Merrill <jason@redhat.com>
19595
19596 Make return in memory explicit.
19597 * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
19598 (assign_parm_find_data_types): Remove code for old front end
19599 invisible reference handling.
19600 (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
19601 (expand_function_end): Likewise.
19602 * gimplify.c (gimplify_return_expr): Handle a dereferenced
19603 RESULT_DECL.
19604 * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
19605 (declare_return_variable): Handle DECL_BY_REFERENCE.
19606 * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
19607 (cp_genericize_r): Use convert_from_reference.
19608 Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
19609 (cp_genericize): Handle the RESULT_DECL. Unset TREE_ADDRESSABLE.
19610
19611 * c-common.c (c_warn_unused_result): Check TREE_USED before
19612 warning about a CALL_EXPR with an unused value.
19613
19614 2004-08-06 Mark Mitchell <mark@codesourcery.com>
19615
19616 * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
19617 to the compiler. Use -fshort-wchar by default.
19618
19619 2004-08-06 Pat Haugen <pthaugen@us.ibm.com>
19620
19621 * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
19622 * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
19623 threshhold.
19624 * doc/invoke.texi (param): Document min-crossjump-insns.
19625
19626 2004-08-06 Richard Sandiford <rsandifo@redhat.com>
19627
19628 PR c/13282
19629 * c.opt (Wmissing-field-initializers): New option.
19630 * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
19631 * c-typeck.c (pop_init_level): Guard the missing field warning with
19632 warn_missing_field_initializers rather than extra_warnings.
19633 * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
19634 some of the explanation from...
19635 (-Wextra): ...here. Say that the missing field warning can be
19636 seperately controlled by -Wmissing-field-initializers.
19637
19638 2004-08-06 Paolo Bonzini <bonzini@gnu.org>
19639
19640 * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
19641 * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
19642 * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
19643 * tree.def (ENTRY_VALUE_EXPR): Remove.
19644
19645 2004-08-06 Jakub Jelinek <jakub@redhat.com>
19646
19647 * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
19648 the places where it is actually needed. Don't use repz; stosb
19649 for -Os with sufficiently small constant sizes.
19650 For sufficiently small repz; stos{l,q} repeat counts use a sequence
19651 of stos{l,q} instructions instead.
19652
19653 2004-08-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19654
19655 PR tree-optimization/16807
19656 * loop-iv.c (dump_iv_info): Dump invariants correctly.
19657 (iv_subreg, iv_extend): Express value of invariant purely in
19658 base field.
19659
19660 2004-08-06 Mark Mitchell <mark@codesourcery.com>
19661
19662 * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
19663 (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
19664
19665 2004-08-06 Roman Zippel <zippel@linux-m68k.org>
19666
19667 * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
19668 * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
19669 pre_dec_operand.
19670 * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
19671 pattern until reload is finished to allow better code generation
19672 and split them completely into separate instrunctions.
19673 (*andsi3_split): New pattern.
19674
19675 2004-08-05 Mark Mitchell <mark@codesourcery.com>
19676
19677 * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
19678 Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P. Set
19679 DECL_VISIBLITY. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
19680 * tree.h (handle_dll_attribute): Declare. Test
19681 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
19682 * c-common.h (c_determine_visibility): Declare.
19683 * c-common.c (c_determine_visibility): New function.
19684 * c-decl.c (finish_decl): Use it.
19685 (finish_function): Likewise.
19686 * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
19687 zero, by default. Use #if, not #ifdef, to test it.
19688 * config/arm/arm.c (arm_attribute_table): Use
19689 handle_dll_attribute. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
19690 #if.
19691 * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
19692 * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
19693 to 1.
19694 * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
19695 * config/i386/i386.c (ix86_attribute_table): Use
19696 handle_dll_attribute for dllimport/dllexport. Test
19697 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
19698 * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
19699 * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
19700 it to 1.
19701 * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
19702 with #if.
19703 * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
19704 it to 1.
19705 * doc/extend.texi (dllexport): Clarify and correct documentation.
19706 (dllimport): Likewise.
19707 * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
19708 handle_dll_attribute.
19709
19710 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19711
19712 * tree-ssa-loop-manip.c: New file.
19713 * Makefile.in (tree-ssa-loop-manip.o): Add.
19714 * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
19715 Declare.
19716 * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
19717 form.
19718 (tree_ssa_loop_done): Verify loop closed ssa form.
19719 * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
19720
19721 2004-08-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19722
19723 * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
19724 pa_asm_output_aligned_local): New functions.
19725 * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
19726 pa_asm_output_aligned_common and pa_asm_output_aligned_local.
19727 * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
19728 pa_asm_output_aligned_common.
19729 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
19730 * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
19731 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
19732 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
19733 * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
19734 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
19735 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
19736 * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
19737 common data.
19738
19739 2004-08-05 Andrew Pinski <apinski@apple.com>
19740
19741 * objc/objc-act.c (build_objc_string_object): Mark the address
19742 expression as constant.
19743
19744 2004-08-05 David Edelsohn <edelsohn@gnu.org>
19745
19746 * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
19747 and mask64_operand thinkos. Handle ZERO_EXTRACT. Handle
19748 SIGN_EXTEND / ZERO_EXTEND of MEM. Handle rlwinm patterns.
19749
19750 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
19751
19752 * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
19753 Remove definitions conditioned on USE_GNULIBC_1 or conditioned
19754 out, and associated obsolete comments.
19755
19756 2004-08-05 Nathan Sidwell <nathan@codesourcery.com>
19757
19758 * tree.h (force_fit_type): Return a tree, take three flags.
19759 * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
19760 TREE_CONSTANT_OVERFLOW here.
19761 (int_const_binop, const_binop): Adjust.
19762 (size_int_type): Do sign extension here.
19763 (fold_convert_const, optimize_bit_field_compare,
19764 decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
19765 fold_negate_const, fold_abs_const, fold_not_const): Adjust.
19766 * tree.c (size_in_bytes, int_fits_type_p): Adjust.
19767
19768 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19769
19770 PR tree-optimization/16864
19771 * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
19772 for ssa names without default_def.
19773
19774 2004-08-05 Richard Sandiford <rsandifo@redhat.com>
19775
19776 * config/i386/i386.c (ix86_expand_prologue): If the function uses a
19777 frame pointer, restore eax with an ebp-relative address.
19778
19779 2004-08-04 Geoffrey Keating <geoffk@apple.com>
19780
19781 PR 14516
19782 * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
19783 * c-common.h (make_rtl_for_local_static): Delete.
19784 * c-decl.c (shadow_tag_warned): Clean up comment.
19785 (finish_decl): Clean up spacing. Use set_user_assembler_name when
19786 appropriate. Don't pass asmspec to rest_of_decl_compilation.
19787 * c-semantics.c (make_rtl_for_local_static): Delete.
19788 * expr.c (init_block_move_fn): Use set_user_assembler_name.
19789 (init_block_clear_fn): Likewise.
19790 * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
19791 expect it to be in DECL_ASSEMBLER_NAME. Update callers in many files.
19792 * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
19793 * tree.h (make_decl_rtl): Remove second parameter.
19794 (set_user_assembler_name): New.
19795 * varasm.c (set_user_assembler_name): New.
19796 (make_decl_rtl): Remove second parameter. Update callers in many
19797 files.
19798
19799 2004-08-05 Adam Nemet <anemet@lnxw.com>
19800
19801 * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
19802 (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*. Update
19803 to LynxOS 4.0.
19804 * gthr-lynx.h: New file.
19805 * config/lynx-ng.h: Remove file.
19806 * config/lynx.h: Update to LynxOS 4.0.
19807 * config/t-lynx: New file.
19808 * config/i386/lynx-ng.h: Remove file.
19809 * config/i386/lynx.h: Update to LynxOS 4.0.
19810 * config/rs6000/lynxbase.h: Remove file.
19811 * config/rs6000/lynx.h: Update to LynxOS 4.0.
19812 * config/rs6000/t-lynx: New file.
19813 * doc/install.texi (Options specification): Remove reference to
19814 LynxOS from systems where --with-gnu-as makes a difference.
19815
19816 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
19817
19818 * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
19819 __UINTMAX_TYPE__.
19820 * c-cppbuiltin.c (builtin_define_stdint_macros): New. Define
19821 __INTMAX_MAX__.
19822 (c_cpp_builtins): Call it.
19823 * doc/cpp.texi: Update.
19824
19825 2004-08-04 David Edelsohn <edelsohn@gnu.org>
19826
19827 * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
19828 cost.
19829
19830 2004-08-04 Jan Hubicka <jh@suse.cz>
19831
19832 * basic-block.h (profile_staus): New global variable.
19833 * cfg.c (profile_status): Declare.
19834 (check_bb_profile): Break out from ....; use profile_status
19835 (dump_flow_info): ... here.
19836 * cfgbuild.c (find_basic_blocks): Set profile_status.
19837 * cfgexpand.c (tree_expand_cfg): Likewise.
19838 * predict.c (estimate_probability): Likewise.
19839 * profile.c (branch_prob): Likewise.
19840 * tree-cfg.c (build_tree_cfg): Likewise.
19841 (dump_function_to_file): Use check_bb_profile.
19842 * tree-pretty-print (dump_bb_header): Likewise.
19843 * tree-profile.c (do_tree_profiling): Cleanup.
19844
19845 2004-08-04 Zack Weinberg <zack@codesourcery.com>
19846
19847 * Makefile.in (RTL_BASE_H, RTL_H): Correct.
19848 (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
19849 (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
19850 (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
19851 (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
19852 (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
19853 (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
19854 (ggc-none.o, errors.o): Move rule to generators section;
19855 correct dependencies.
19856 (min-insn-modes.o): Move rule to generators section; remove
19857 unnecessary explicit command; correct dependencies.
19858 (print-rtl.o, print-rtl1.o): Correct dependencies.
19859 ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
19860 (mostlyclean): Update.
19861
19862 * errors.c: Include bconfig.h not config.h. Correct comment.
19863 * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
19864 * ggc-none.c: Include bconfig.h; not config.h or tm.h.
19865 * print-rtl.c: Don't include tm_p.h.
19866
19867 * rtl.h: Move forward-decl of struct function down where it's
19868 needed. Include genrtl.h #ifndef GENERATOR_FILE, not
19869 #ifndef NO_GENRTL_H. Remove unnecessary #ifdef BUFSIZ statements.
19870
19871 2004-08-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19872 Jeff Law <law@redhat.com>
19873
19874 * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
19875 * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
19876 * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
19877 manipulate the duplicated ssa names.
19878 * tree-ssanames.c (ssa_names_to_rewrite): New variable.
19879 (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
19880 unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
19881 New functions.
19882 (release_ssa_name): Do not release ssa names that may have multiple
19883 definitions.
19884 * tree.h (release_ssa_name_force, mark_for_rewrite,
19885 unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
19886 marked_ssa_names): Declare.
19887 * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
19888 (duplicate_blocks): Remove call to mark_defs_for_rewrite.
19889 Update call to rewrite_ssa_into_ssa.
19890
19891 2004-08-04 Mark Mitchell <mark@codesourcery.com>
19892
19893 * defaults.h (TARGET_DECLSPEC): New macro.
19894 * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
19895 * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
19896 * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
19897 * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
19898 __declspec support.
19899 (TARGET_DECLSPEC): Define.
19900 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
19901 __declspec support.
19902 * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
19903 __declspec support.
19904 (TARGET_DECLSPEC): Define.
19905 * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
19906 __declspec support.
19907 * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
19908 support.
19909 * doc/tm.texi (TARGET_DECLSPEC): Document.
19910
19911 * doc/extend.texi: Fix typo in comment.
19912
19913 2004-08-04 Paul Brook <paul@codesourcery.com>
19914
19915 * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
19916 (TARGET_CXX): Use it.
19917 * target.h (struct gcc_target): Add cdtor_returns_this.
19918 * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
19919 (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
19920 * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
19921
19922 2004-08-03 Nathan Sidwell <nathan@codesourcery.com>
19923
19924 * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
19925 low/high pair. Do range checking directly.
19926 (interpret_integer): Adjust.
19927
19928 2004-08-04 Nick Clifton <nickc@redhat.com>
19929
19930 * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
19931 GCC ABI.
19932 * doc/invoke.texi: Document this new switch and also the -mrenesas
19933 switch.
19934
19935 2004-08-04 Nathan Sidwell <nathan@codesourcery.com>
19936
19937 * cfglayout.c (insn_locators_initialize): Update the current
19938 location before initializing a location.
19939
19940 2004-08-03 Zack Weinberg <zack@codesourcery.com>
19941
19942 * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
19943 (dbxout_function_end): Return after emitting the "Lscope" symbol
19944 under the same conditions that this function formerly wasn't called.
19945 Add explanatory comments.
19946
19947 PR 14860
19948 * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
19949 on the new decl.
19950
19951 PR 13956
19952 * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
19953 functions, broken out of dbxout_block.
19954 (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
19955 stabs too, if it contains symbols. Use the begin_label and
19956 the Lscope label (emitted by dbxout_function_end) for the
19957 range of this block.
19958
19959 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
19960
19961 * doc/install.texi: Update autoconf version requirements.
19962
19963 2004-08-03 Zack Weinberg <zack@codesourcery.com>
19964
19965 * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
19966 * recog.c (general_operand, immediate_operand, nonmemory_operand)
19967 (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
19968 * regclass.c (record_reg_classes): Likewise.
19969 * reload.c (find_reloads): Likewise.
19970 * reload1.c (reload): Likewise.
19971
19972 2004-08-03 Zack Weinberg <zack@codesourcery.com>
19973
19974 * gensupport.c (init_md_reader_args_cb): Renamed from
19975 init_md_reader_args. Add third option, callback function for
19976 parsing program-specific options. Add diagnosis of incorrect
19977 number of input files.
19978 (init_md_reader): Fold into init_md_reader_args_cb.
19979 (init_md_reader_args): Now a thin wrapper around
19980 init_md_reader_args_cb.
19981 * gensupport.h: Update prototypes.
19982
19983 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
19984 * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
19985 * genrecog.c: No need to diagnose lack of an input file;
19986 init_md_reader_args will handle it.
19987 * genconditions.c: Likewise, and use init_md_reader_args.
19988 * genconstants.c: Likewise, and no need to call read_md_rtx.
19989
19990 2004-08-03 Joseph S. Myers <jsm@polyomino.org.uk>
19991
19992 * c-decl.c (implicitly_declare): Diagnose incompatible implicit
19993 declarations.
19994
19995 2004-08-03 Mike Stump <mrs@apple.com>
19996
19997 * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
19998 for frameworks.
19999 * doc/invoke.texi (Darwin Options): Update to reflect above.
20000
20001 2004-08-03 Roger Sayle <roger@eyesopen.com>
20002
20003 PR middle-end/16790
20004 * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
20005 truncations, not just global truncations.
20006
20007 2004-08-03 Andrew Pinski <apinski@apple.com>
20008
20009 PR bootstrap/16865
20010 * loop-iv.c (simplify_using_assignment): Initialize lhs.
20011
20012 2004-08-03 Paul Brook <paul@codesourcery.com>
20013
20014 * gcc/doc/install.texi: Document MPFR requirement.
20015
20016 2004-08-03 Maciej W. Rozycki <macro@linux-mips.org>
20017
20018 * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
20019 and mmap() explicitly instead of relying on preset autoconf cache
20020 variables.
20021 * configure: Regenerate.
20022
20023 2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
20024
20025 PR target/16570
20026 * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
20027 to tmake_file.
20028 (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
20029 (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
20030 to tmake_file.
20031
20032 * config/i386/t-gmm_malloc: New file.
20033 * config/i386/t-pmm_malloc: Likewise.
20034
20035 * config/i386/xmmintrin.h: Include <mm_malloc.h>.
20036
20037 2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
20038 Tanguy Fautrà <tfautre@pandora.be>
20039
20040 * config/i386/pmm_malloc.h: New file.
20041
20042 2004-08-03 Danny Smith <dannysmith@users.sourceforge.net>
20043
20044 * config/i386/gmm_malloc.h: New file.
20045
20046 2004-08-03 Dale Johannesen <dalej@apple.com>
20047
20048 * config/rs6000/rs6000.c (machopic_output_stub): Align Darwin stubs.
20049 * c-common.c: Include opts.h.
20050 (c_common_get_alias_set): Fix check for a single input file.
20051 * toplev.c: Remove current_file_decl.
20052 * tree.h: Ditto.
20053
20054 2004-08-03 Mark Mitchell <mark@codesourcery.com>
20055
20056 * config.gcc (arm*-*-symbianelf*): New target.
20057 * config/arm/symbian.h: New file.
20058
20059 * gthr-gnat.c: Add visibility #pragmas.
20060 * gthr-gnat.h : Likewise.
20061 * gthr.h: Likewise.
20062 * libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
20063 (__ffsDI2): Likewise.
20064 (__clzSI2): Likewise.
20065 (__ctzSI2): Likewise.
20066 (__ctzDI2): Likewise.
20067 (__popcountSI2): Likewise.
20068 (__popcountDI2): Likewise.
20069 (__paritySI2): Likewise.
20070 (__parityDI2): Likewise.
20071 * libgcc2.h: Add visibility #pragmas.
20072 (__clzDI2): Add prototype.
20073 (__clzSI2): Likewise.
20074 (__ctzSI2): Likewise.
20075 (__ffsDI2): Likewise.
20076 (__ffsSI2): Likewise.
20077 (__ctzDI2): Likewise.
20078 (__popcountSI2): Likewise.
20079 (__popcountDI2): Likewise.
20080 (__paritySI2): Likewise.
20081 (__parityDI2): Likewise.
20082 * unwind-dw2-fde.h: Add visibility #pragmas.
20083 * unwind.h: Likewise.
20084
20085 2004-08-03 David Edelsohn <edelsohn@gnu.org>
20086 Dale Johannesen <dalej@apple.com>
20087 Roger Sayle <roger@eyesopen.com>
20088
20089 * config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
20090 constants more accurately. Adjust costs for FMA instructions.
20091 Add cases for most logical and float operations. Recurse into
20092 most operands.
20093
20094 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
20095
20096 * config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
20097
20098 2004-08-03 Pat Haugen <pthaugen@us.ibm.com>
20099
20100 * ra-build.c (conflicts_between_webs): For webs that cross a call add
20101 conflicts to regs_invalidated_by_call.
20102
20103 2004-08-03 Paul Brook <paul@codesourcery.com>
20104
20105 * config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
20106
20107 2004-08-03 Jan Hubicka <jh@suse.cz>
20108
20109 * coverage.c (tree_coverage_counter_ref): Fix computation of the new
20110 ARRAY_REF argument.
20111
20112 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
20113
20114 * arm-cores.def: Sort by architecture. Add arm946es, arm966es,
20115 arm968es, arm10e, arm1020e, arm1022e.
20116 * invoke.texi: Update list of ARM cores.
20117 * arm-tune.md: Regenerate.
20118
20119 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
20120
20121 * arm/gentune.sh: New file.
20122 * arm/t-arm: New file.
20123 * arm/arm-tune.md: New file (autogenerated).
20124 * config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
20125 * arm.md (attribute tune): Delete. Include arm-tune.md.
20126
20127 2004-08-03 Paolo Bonzini <bonzini@gnu.org>
20128
20129 * gcc.c (add_prefix, add_sysrooted_prefix): Remove
20130 penultimate parameter. All callers adjusted.
20131 (struct prefix_list): Remove used_flag_ptr.
20132 (find_a_file): Do not set *pl->used_flag_ptr.
20133 (warn_B, warn_std_ptr): Remove.
20134
20135 2004-08-03 Yossi Markovich <yossim@il.ibm.com>
20136 Mostafa Hagog <mustafa@il.ibm.com>
20137
20138 * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.
20139
20140 2004-08-02 Geoffrey Keating <geoffk@apple.com>
20141
20142 * dwarf2out.c (output_call_frame_info): Don't change data format
20143 due to TARGET_USES_WEAK_UNWIND_INFO. Always refer to the local
20144 label. Use 'true' not '1'.
20145 * doc/install.texi (powerpc-*-darwin*): Mention cctools version
20146 required.
20147
20148 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
20149
20150 * gdbinit.in: Reflect previous changes to rtunion_def.
20151
20152 2004-08-02 Roger Sayle <roger@eyesopen.com>
20153
20154 * fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
20155 -> "X % Y" is only valid for TRUNC_MOD_EXPR.
20156
20157 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
20158
20159 * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
20160 vec_p_reserve.
20161 * langhooks.h (lang_hooks::builtin_function): Rename parameter
20162 from "class" to "bt_class".
20163
20164 2004-08-02 Paul Brook <paul@codesourcery.com>
20165
20166 PR rtl-optimization/15068
20167 * flow.c (init_propagate_block_info): Check condition is reversible.
20168
20169 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
20170
20171 * gengtype.h (options::info): Change type to const char *.
20172 (enum gc_used_enum): Move out of struct type scope.
20173 * gengtype.c (create_option): Convert initializer for option::info to
20174 appropiate type.
20175 (adjust_field_type, walk_type, write_func_for_structure,
20176 write_root, write_roots): Remove pointless cast.
20177
20178 2004-08-02 J"orn Rennecke <joern.rennecke@superh.com>
20179
20180 * genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
20181
20182 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
20183
20184 * rtl.h (union rtunion_def): Have all members start with the
20185 prefix "rt_".
20186 (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
20187 X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
20188 X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
20189 XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members
20190 access.
20191 * gengtype.c (adjust_field_rtx_def): Likewise.
20192 * rtlanal.c (loc_mentioned_in_p): Likewise.
20193
20194 2004-08-02 Richard Sandiford <rsandifo@redhat.com>
20195
20196 * config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
20197 Replace uses of mips/elf64.h with mips/elf.h
20198 * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
20199 (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
20200 (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
20201 (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
20202 (HANDLE_SYSV_PRAGMA): Delete.
20203 (ASM_OUTPUT_DEF): Fix formatting.
20204 * config/mips/elf64.h: Delete.
20205
20206 2004-08-01 Zack Weinberg <zack@codesourcery.com>
20207
20208 * config/ia64/ia64.c (got_symbolic_operand): Do require a
20209 symbol+offset operand to have its offset be zero mod 0x3fff
20210 when GOT entries are in use. Clarify logic in SYMBOL_REF
20211 case. Clarify comments.
20212 (ia64_expand_load_address): Split a symbol+offset load when
20213 the offset is nonzero mod 0x3fff, not 0x1fff.
20214
20215 2004-08-01 Geoffrey Keating <geoffk@apple.com>
20216
20217 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
20218 if trying to *store* to a non-offsettable address.
20219 * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
20220 a nonoffsettable address.
20221 (movdi_internal32): Don't move GPRs to a nonoffsettable address.
20222 Clean up.
20223 (movti_string): Don't move GPRs to a nonoffsettable address.
20224 (movti_ppc64): Don't move GPRs to a nonoffsettable address. Clean up.
20225
20226 2004-08-02 Ben Elliston <bje@au.ibm.com>
20227
20228 PR target/16155
20229 * config/rs6000/altivec.h: Replace typeof with __typeof__.
20230
20231 2004-08-01 Richard Henderson <rth@redhat.com>
20232
20233 * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
20234 variable sized types.
20235
20236 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
20237
20238 * doc/invoke.texi: In the MIPS options section, remove the passage
20239 saying that -mexplicit-relocs is usually disabled for -mabicalls
20240 -fno-unit-at-a-time.
20241 * config/mips/mips.c (override_options): Remove the code that enforced
20242 this rule.
20243
20244 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
20245
20246 * config/mips/mips.md (cprestore): Provide two alternatives, one for
20247 an in-range offset and one for an out-of-range offset. Wrap the latter
20248 in .set macro/.set nomacro if it's inside a .set nomacro block.
20249
20250 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
20251
20252 * config/mips/mips-protos.h (mips_gp_save_slot): Remove.
20253 (mips_restore_gp): Declare.
20254 * config/mips/mips.c (mips_add_offset): Add a scratch register
20255 argument. Reimplement in rtl only, reusing MIPS16 logic from
20256 mips_output_mi_thunk.
20257 (mips_legitimize_address, mips_legitimize_const_move): Adjust calls
20258 to mips_add_offset.
20259 (mips_gp_save_slot): Delete.
20260 (mips_restore_gp): New function.
20261 (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
20262 * config/mips/mips.md (exception_receiver): Turn into a
20263 define_insn_and_split. Use mips_restore_gp to do the split.
20264 (call_internal, call_value_internal, call_value_multiple_internal): Use
20265 mips_restore_gp to restore $gp.
20266
20267 2004-07-31 Andrew Pinski <apinski@apple.com>
20268
20269 PR other/16842
20270 * mkheaders.in (libsubdir): s/gcc-lib/gcc/.
20271
20272 2004-07-31 Joseph S. Myers <jsm@polyomino.org.uk>
20273
20274 * c-decl.c (diagnose_mismatched_decls): Give error for external
20275 redeclaration of identifier declared with no linkage, not just
20276 warning with -Wtraditional. Do not check DECL_CONTEXT to give
20277 error for redeclaration with no linkage.
20278
20279 2004-07-30 Geoffrey Keating <geoffk@apple.com>
20280 Fariborz Jahanian <fjahanian@apple.com>
20281
20282 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
20283 non-offsettable addresses even for DImode.
20284 (rs6000_split_multireg_move): Cope with non-offsettable addresses
20285 being moved into multiple GPRs.
20286
20287 * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
20288 to 64.
20289 (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
20290 * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
20291 to 128.
20292 * config/rs6000/darwin-ldouble.c (isless): New macro.
20293 (inf): New macro.
20294 (nonfinite): New macro.
20295 (FPKINF): Delete.
20296 (_xlqadd): Completely rewrite.
20297 (_xlqmul): Correct overflow handling.
20298 (_xlqdiv): Correct overflow handling.
20299 * config/rs6000/darwin-ldouble-format: New file.
20300
20301 2004-07-30 Roger Sayle <roger@eyesopen.com>
20302 Richard Henderson <rth@redhat.com>
20303
20304 * config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
20305 9 into the equivalent lea instruction.
20306
20307 2004-07-30 Richard Henderson <rth@redhat.com>
20308
20309 * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
20310 with DECL_INITIAL if fb_lvalue.
20311 * tree-gimple.c (is_gimple_id): Add CONST_DECL.
20312 * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
20313 with <Cxxx>.
20314 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
20315
20316 2004-07-30 Diego Novillo <dnovillo@redhat.com>
20317
20318 * tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
20319 pointer escapes through a function call, assume that the
20320 callee will dereference it.
20321 (add_pointed_to_var): Assume that VALUE is always an
20322 ADDR_EXPR.
20323 (collect_points_to_info_r): Only call add_pointed_to_var if
20324 the value is an ADDR_EXPR.
20325
20326 2004-07-30 Diego Novillo <dnovillo@redhat.com>
20327
20328 * tree-ssa-alias.c (create_alias_map_for): Do not get the
20329 alias set of the inner type of ARRAY_TYPEs.
20330
20331 2004-07-29 Diego Novillo <dnovillo@redhat.com>
20332
20333 * tree-ssa-ccp.c (visit_assignment): Move code to prevent
20334 setting a non-register to UNDEFINED right before the call to
20335 set_lattice_value.
20336
20337 2004-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
20338
20339 * config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
20340
20341 2004-07-29 Diego Novillo <dnovillo@redhat.com>
20342
20343 * tree-ssa.c (verify_flow_sensitive_alias_info): When
20344 comparing points-to sets of different pointers, make sure the
20345 second pointer is actually referenced in the code.
20346
20347 2004-07-29 Zack Weinberg <zack@codesourcery.com>
20348
20349 * config/ia64/ia64.c (setjmp_operand): Delete, unused.
20350 (got_symbolic_operand): Remove unreachable code.
20351 * config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
20352 setjmp_operand; add entry for tls_symbolic_operand.
20353 * config/ia64/ia64-protos.h: Remove all prototypes of
20354 predicate functions.
20355
20356 2004-07-29 Mark Mitchell <mark@codesourcery.com>
20357
20358 * c-common.h (lang_post_pch_load): New variable.
20359 * c-pch.c (lang_post_pch_load): Define it.
20360 (c_common_read_pch): Use it.
20361 * cgraphunit.c (record_call_1): Give the front end a chance to
20362 record additional needed entities when a variable is marked as
20363 needed.
20364 * tlink.c (recompile_files): Robustify.
20365 (scan_linker_output): If a symbol is assigned to a file,
20366 but after recompilation is not present there, issue an error
20367 message.
20368
20369 2004-07-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
20370
20371 * tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
20372 Take orig_loop argument and pass it to set_level.
20373 (schedule_sm): Pass the correct orig_loop to force_move_till.
20374
20375 2004-07-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
20376
20377 * cfgloop.c (update_latch_info): Update dominator of the new block.
20378 (canonicalize_loop_headers, flow_loops_find): Do not free dominance
20379 info.
20380 * dominance.c (verify_dominators): Check that the dominance tree is
20381 connected.
20382 (recount_dominator): Ignore unreachable blocks.
20383 (iterate_fix_dominators): Cleanup old dominance information before
20384 recomputing it.
20385
20386 2004-07-29 Diego Novillo <dnovillo@redhat.com>
20387
20388 * tree-ssa-operands.c (get_expr_operands): Revert changes
20389 to ADDR_EXPR processing introduced by:
20390 2004-06-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20391 * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
20392
20393 2004-07-29 Joseph S. Myers <jsm@polyomino.org.uk>
20394
20395 * doc/implement-c.texi: Add C90 subclause references. Point to
20396 preprocessor documentation instead of duplicating it. Add points
20397 only present in C90. Fill in documentation for all points.
20398
20399 2004-07-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20400
20401 * pa.c (output_movb): Correct typo.
20402
20403 2004-07-29 Pat Haugen <pthaugen@us.ibm.com>
20404
20405 * ra.h (single_reg_in_regclass): Declare.
20406 * ra.c (single_reg_in_regclass): Define.
20407 (first_hard_reg): New.
20408 (init_ra): Initialize single_reg_in_regclass.
20409 * ra-colorize.c (ok_class): New.
20410 (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
20411
20412 2004-07-29 Nathan Sidwell <nathan@codesourcery.com>
20413
20414 * gcov-io.h: Allow zero tag as EOF indicator.
20415 (gcov_is_eof): Remove.
20416 (gcov_truncate): Remove.
20417 * gcov-io.c (gcov_seek): Always SEEK_SET.
20418 * libgcov.c (gcov_exit): Don't use gcov_truncate. Write explicit
20419 EOF tag.
20420 * coverage.c (read_counts_file): Don't use gcov_is_eof.
20421 * gcov-dump.c (dump_file): Likewise.
20422 * gcov.c (read_graph_file, read_count_file): Likewise.
20423
20424 * c-decl.c (complete_array_type): Don't gratuitously copy
20425 maxindex. Check it always has a type.
20426
20427 2004-07-29 Steven Bosscher <stevenb@suse.de>
20428
20429 * rtl.c (currently_expanding_to_rtl): New.
20430 * rtl.h (currently_expanding_to_rtl): Export it.
20431 * cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
20432
20433 * config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
20434 inliner hack.
20435 * config/sh/sh.c: Replace rtx_equal_function_value_matters
20436 with currently_expanding_to_rtl.
20437 * config/sh/sh.md: Likewise.
20438 * config/ia64/ia64.c (got_symbolic_operand): Likewise.
20439
20440 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
20441
20442 Introduce sh2a support.
20443 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
20444 * config.gcc: Build multilibs for sh2a and sh2a-single by
20445 default.
20446 * config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
20447 default. Split their tests out of the corresponding SH4
20448 multilibs.
20449 * config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
20450 multilibs for SH2a.
20451 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
20452 * config.gcc: Handle sh2a multilibs and cpu selection.
20453 * config/sh/sh.h: Likewise. Handle sh2a command line flags.
20454 * config/sh/t-mlib-sh2a: New.
20455 * config/sh/t-mlib-sh2a-nofpu: New.
20456 * config/sh/t-mlib-sh2a-single: New.
20457 * config/sh/t-mlib-sh2a-single-only: New.
20458 2004-07-09 Nick Clifton <nickc@redhat.com>
20459 Issue 43400
20460 * config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
20461 -ml and -m2a are used together.
20462 2004-03-23 DJ Delorie <dj@redhat.com>
20463 * config/sh/sh.c (sh_builtin_saveregs): Use the double code only
20464 when we have a double-sized FPU.
20465 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
20466 * config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
20467 is set.
20468 * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
20469 -msh2a-single and -msh2a-single-only
20470 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
20471 * config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
20472 is set.
20473 2004-02-20 DJ Delorie <dj@delorie.com>
20474 * config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
20475 2004-02-20 Fred Fish <fnf@redhat.com>,
20476 Corinna Vinschen <vinschen@redhat.com>
20477 * config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
20478 (MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
20479 2004-02-18 DJ Delorie <dj@redhat.com>
20480 * config/sh/sh.c (broken_move): Add support for movi20.
20481 * config/sh/sh.h: Likewise.
20482 (SHIFT_COUNT_TRUNCATED): Set for sh2a.
20483 * config/sh/sh.md (udivsi3_sh2a): New.
20484 (udivsi3): Call it.
20485 (divsi3_sh2a): New.
20486 (divsi3): Call it.
20487 (mul_r): New.
20488 (ashlsi3_sh2a): New.
20489 (ashrsi3_sh2a): New.
20490 (lshrsi3_sh2a): New.
20491 (movsi_i): Disable for sh2a.
20492 (movsi_ie): Add movi20.
20493 (movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
20494 sh2a, for -m2a-nofpu mode.
20495 2004-02-13 DJ Delorie <dj@redhat.com>
20496 * config/sh/lib1funcs.asm: Handle double vs single better.
20497 * config/sh/sh.h: Likewise.
20498 2004-02-09 DJ Delorie <dj@redhat.com>
20499 * config/sh/crt1.asm: Add support for sh2a.
20500 * config/sh/elf.h: Likewise.
20501 * config/sh/lib1funcs.asm: Likewise.
20502 * config/sh/sh.c: Likewise.
20503 * config/sh/sh.md: Likewise.
20504 * config/sh/sh.h: Likewise.
20505 * config/sh/t-sh: Likewise.
20506
20507 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
20508
20509 * config/frv/frv.md (movqi_internal, movhi_internal,
20510 movsi_internal): Add backup alternatives for memory inputs.
20511
20512 2004-07-28 Matt Austern <austern@apple.com>
20513
20514 * config/darwin.c (darwin_one_byte_bool): New global variable.
20515 * config/darwin.h (darwin_one_byte_bool): Declare.
20516 (SUBTARGET_OPTIONS): Define macro. (for -mone-byte-bool flag.)
20517 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
20518 value of darwin_one_byte_bool.
20519 * doc/invoke.texi: Document -mone-byte-bool flag.
20520
20521 2004-07-28 Eric Christopher <echristo@redhat.com>
20522
20523 * c-common.c (c_common_unsafe_for_reeval): Delete.
20524 * c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
20525 * c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
20526 * calls.c (fix_unsafe_tree): Delete.
20527 (expand_call): Delete code which used above.
20528 * dojump.c (do_jump): Delete UNSAVE_EXPR case.
20529 * expr.c (expand_expr_real_1): Ditto.
20530 * fold-const.c (non_lvalue): Ditto.
20531 * langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
20532 (lhd_unsafe_for_reeval): Ditto.
20533 * langhooks.c (lhd_unsafe_for_reeval): Ditto.
20534 * langhooks.h (unsafe_for_reeval): Ditto.
20535 (unsave_expr_now): Adjust comment.
20536 * tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
20537 (estimate_num_insns_1): Ditto.
20538 * tree-pretty-print.c (dump_generic_node): Ditto.
20539 * tree.c (expr_align): Ditto.
20540 (unsave_expr): Delete.
20541 (unsafe_for_reeval): Ditto.
20542 * tree.h (unsafe_for_reeval, unsave_expr): Ditto.
20543 * tree.def (UNSAVE_EXPR): Delete.
20544 * objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
20545
20546 2004-07-28 Zack Weinberg <zack@codesourcery.com>
20547
20548 * tree.h (enum tls_model): Move ...
20549 * coretypes.h: ... here.
20550
20551 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
20552
20553 * config/frv/frv.h (EPILOGUE_USES): New. Use LR.
20554
20555 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
20556
20557 * cse.c (validate_canon_reg): New function, split out from...
20558 (canon_reg): ...here. Use validate_canon_reg for both 'e' and 'E'.
20559
20560 2004-07-28 Diego Novillo <dnovillo@redhat.com>
20561
20562 * tree-ssa-alias.c (maybe_create_global_var): Don't just
20563 return if .GLOBAL_VAR has been created.
20564
20565 2004-07-28 Diego Novillo <dnovillo@redhat.com>
20566
20567 * tree-ssa.c (verify_flow_insensitive_alias_info): Process
20568 every variable that may have aliases, not just tags.
20569
20570 2004-07-28 Aldy Hernandez <aldyh@redhat.com>
20571
20572 * config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
20573 move_from_CR_eq_bit.
20574 Rename UNSPEC_MV_CR_GT to UNSPEC_MV_CR_EQ.
20575
20576
20577 * config/rs6000/spe.md ("e500_flip_gt_bit"): Rename to
20578 e500_flip_eq_bit.
20579
20580 * config/rs6000/rs6000-protos.h: Rename output_e500_flip_gt_bit to
20581 output_e500_flip_eq_bit.
20582
20583 * config/rs6000/rs6000.c (output_e500_flip_gt_bit): Rename to
20584 output_e500_flip_eq_bit.
20585 (rs6000_emit_sCOND): Rename call to output_e500_flip_gt_bit to
20586 output_e500_flip_eq_bit.
20587 Rename gen_move_from_CR_gt_bit to gen_move_from_CR_eq_bit.
20588 (print_operand): case D. Get to EQ bit.
20589
20590 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
20591
20592 * gcov.c (function_summary): Add missing \n.
20593
20594 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
20595
20596 Introduce sh4a support.
20597 * config.gcc: Handle sh4a multilibs and cpu selection.
20598 * config/sh/sh.h: Likewise. Handle sh4a command line flags.
20599 * config/sh/t-mlib-sh4a: New.
20600 * config/sh/t-mlib-sh4al: New.
20601 * config/sh/t-mlib-sh4a-nofpu: New.
20602 * config/sh/t-mlib-sh4a-single: New.
20603 * config/sh/t-mlib-sh4a-single-only: New.
20604 2004-02-20 DJ Delorie <dj@redhat.com>
20605 * config/sh/sh.md ("movua"): Change constraint from "m" to "Sua".
20606 * config/sh/sh.h (EXTRA_CONSTRAINT_S): Add "Sua" support.
20607 2003-08-22 Eric Christopher <echristo@redhat.com>
20608 * config/sh/sh4a.md: Update for chip errata.
20609 2003-08-07 Eric Christopher <echristo@redhat.com>
20610 * config/sh/sh4a.md: New file. sh4a processor description.
20611 2003-07-08 Alexandre Oliva <aoliva@redhat.com>
20612 * config/sh/sh.h (TARGET_SWITCHES): Added 4al. Adjust description
20613 of -m4a-nofpu.
20614 (SH_ASM_SPEC): Pass -dsp for -m4al, not -m4a-nofpu.
20615 * config/sh/t-sh (MULTILIB_MATCHES): Map -m4al to -m4a-nofpu.
20616 * doc/invoke.texi (SH Options): Document -m4al.
20617 2003-07-03 Alexandre Oliva <aoliva@redhat.com>
20618 * config/sh/sh.c (expand_block_move): Remove commented-out code
20619 checked in by mistake.
20620 (sh_cannot_change_mode_class): Enable SUBREGs to be used to select
20621 single elements from SFmode vectors.
20622 * config/sh/sh.md (fsca): Use VEC_CONCAT to initialize the output
20623 register.
20624 (sinsf2, cossf2, sindf2, cosdf2): Don't emit CLOBBER.
20625 2003-07-01 Alexandre Oliva <aoliva@redhat.com>
20626 * config/sh/sh.h (sh_fsca_sf2int, sh_fsca_df2int,
20627 sh_fsca_int2sf): Remove variable declarations.
20628 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
20629 sh_fsca_int2sf): New functions.
20630 (sh_fsca_sf2int_rtx, sh_fsca_df2int_rtx,
20631 sh_fsca_int2sf_rtx): New static variables.
20632 * config/sh/sh-protos.h (sh_fsca_sf2int, sh_fsca_df2int,
20633 sh_fsca_int2sf): Declare.
20634 * config/sh/sh.md: Adjust.
20635 * doc/invoke.texi (SH Options): Document new options.
20636 * config/sh/lib1funcs.asm (ic_invalidate): Remove SH4a forward
20637 compatibility from SH4 code.
20638 2003-06-27 Alexandre Oliva <aoliva@redhat.com>
20639 * config/sh/sh.c (expand_block_move): Don't emit POST_INC too
20640 early.
20641 (memory_movsrc_operand): Renamed to...
20642 (unaligned_load_operand): ... this. Simplified.
20643 * config/sh/sh.h (PREDICATE_CODES): Adjust.
20644 * config/sh/sh.md (movua, extv, extzv): Likewise. Change movua's
20645 input operand to SImode, and adjust the others. Introduce
20646 post-increment by peephole.
20647 * config/sh/sh.c (expand_block_move): Give the target address the
20648 same mode as the temp reg.
20649 * config/sh/sh.c (expand_block_move): Use a temp reg for unaligned
20650 copying.
20651 2003-06-26 Alexandre Oliva <aoliva@redhat.com>
20652 Introduce support for SH4a.
20653 * config/sh/lib1funcs.asm (ic_invalidate): Use icbi if
20654 __SH4A__. Emit 4 4kb blocks and touch all of them otherwise.
20655 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
20656 sh_fsca_int2sf): New.
20657 (sh_init_builtins): Initialize them.
20658 (print_operand): Support `d'.
20659 (expand_block_move): Use movua if src is misaligned.
20660 (memory_movsrc_operand): New.
20661 * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH4A__
20662 and one of the SH4 macros.
20663 (SH4A_BIT, TARGET_SH4A_ARCH, TARGET_SH4A_FP,
20664 SELECT_SH4A_NOFPU, SELECT_SH4A_SINGLE_ONLY, SELECT_SH4A,
20665 SELECT_SH4A_SINGLE): New.
20666 (TARGET_NONE): Add SH4A_BIT.
20667 (TARGET_SWITCHES): Add 4a-single-only, 4a-single, 4a-nofpu and 4a.
20668 (SH_ASM_SPEC): Pass -dsp if -m4a-nofpu.
20669 (sh_fsca_sf2int, sh_fsca_df2int, sh_fsca_int2sf): Declare.
20670 (OVERRIDE_OPTIONS): Set cpu to CPU_SH4A when appropriate.
20671 (enum processor_type): Added PROCESSOR_SH4A.
20672 (PREDICATE_CODES): Add memory_movsrc_operand.
20673 * config/sh/sh.md: Removed unused variables.
20674 (attr cpu): Add sh4a.
20675 (attr type): Add movua, fsrra and fsca.
20676 (prefetch): New, for SH4.
20677 (ic_invalidate_line, ic_invalidate_line_sh4a): Use icbi.
20678 (toggle_sz): Set type to fp.
20679 (toggle_pr, rsqrtsf2, fsca, sinsf2, cossf2, sindf2, cosdf2): New.
20680 (movua, extv, extzv): New.
20681 * config/sh/t-sh: Add multilibs for 4a, 4a-nofpu, 4a-single
20682 and 4a-single-only.
20683
20684 2004-07-28 Diego Novillo <dnovillo@redhat.com>
20685
20686 * tree-optimize.c (init_tree_optimization_passes): Schedule
20687 pass_may_alias right after the program is renamed into SSA.
20688 * tree-pass.h (PROP_alias): Define.
20689 * tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
20690 * tree-sra.c (pass_sra): Likewise.
20691 * tree-ssa-ccp.c (pass_ccp): Likewise.
20692 * tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
20693 * tree-ssa-dce.c (pass_dce): Likewise.
20694 * tree-ssa-dom.c (pass_dominator): Likewise.
20695 * tree-ssa-dse.c (pass_dse): Likewise.
20696 * tree-ssa-forwprop.c (pass_forwprop): Likewise.
20697 * tree-ssa-loop-ch.c (pass_ch): Likewise.
20698 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
20699 * tree-ssa-pre.c (pass_pre): Likewise.
20700 * tree-tailcall.c (pass_tail_recursion): Likewise.
20701 * tree-ssa.c (pass_redundant_phi): Likewise.
20702 * tree-ssa-alias.c (aliases_computed_p): Remove.
20703 Update all users.
20704 (init_alias_info): Do not mark all type tags for renaming
20705 unconditionally.
20706 Clear may_aliases from every symbol.
20707 (setup_pointers_and_addressables): If a pointer has not been
20708 dereferenced and it had a type tag, clear it and mark the old
20709 tag for renaming.
20710
20711 2004-07-28 Diego Novillo <dnovillo@redhat.com>
20712
20713 PR tree-optimization/16705
20714 * tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
20715 .GLOBAL_VAR.
20716
20717 2004-07-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20718
20719 * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error
20720 check.
20721
20722 * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,
20723 don't make another one.
20724
20725 PR optimization/15077
20726 * function.h (struct function): Add field saved_static_chain_decl.
20727 Fix comment for static_chain_decl.
20728 * tree-inline.c (save_body): Add new arg and handle static_chain_decl.
20729 * tree-inline.h (save_body): Add new arg.
20730 * tree-optimize.c (tree_rest_of_compilation): Handle saving
20731 static_chain_decl.
20732
20733 2004-07-27 Richard Henderson <rth@redhat.com>
20734
20735 * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
20736 (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
20737 is_gimple_addressable.
20738 * tree-gimple.c (is_gimple_addressable): Rename from
20739 is_gimple_addr_expr_arg; accept INDIRECT_REF.
20740 (is_gimple_lvalue): Don't test INDIRECT_REF directly.
20741 * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
20742 rename to is_gimple_addressable.
20743
20744 2004-07-28 Alan Modra <amodra@bigpond.net.au>
20745
20746 * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
20747
20748 2004-07-27 Richard Henderson <rth@redhat.com>
20749
20750 * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
20751 before rounding.
20752
20753 2004-07-27 Zack Weinberg <zack@codesourcery.com>
20754
20755 * libgcc2.c: Change all conditionals testing
20756 LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80.
20757 * libgcc2.h: Likewise.
20758 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set
20759 TYPE_PRECISION of float80_type to 80.
20760 * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION
20761 of fpreg_type and float80_type to 80.
20762 * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h
20763 * config/m68k/netbsd-elf.h:
20764 Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE
20765 to evaluate to 80 whenever they would formerly have evaluated to 96.
20766 * config/i386/sco5.h: Remove unnecessary redefinition of
20767 LONG_DOUBLE_TYPE_SIZE.
20768 * doc/rtl.texi: Clarify uses of XFmode and TFmode.
20769 * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for
20770 XFmode, with a bitsize of 80. Update commentary.
20771 * config/ia64/ia64-modes.def: Likewise.
20772 * config/m68k/m68k-modes.def: Likewise.
20773
20774 2004-07-27 Steven Bosscher <stevenb@suse.de>
20775
20776 * cfgexpand.c (tree_expand_cfg): Fix comment.
20777
20778 * calls.c (expand_call): Ignore rtx_equal_function_value_matters.
20779 * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets):
20780 Remove.
20781 (prepare_function_start): Don't set rtx_equal_function_value_matters.
20782 * integrate.c (copy_rtx_and_substitute): Don't test for it.
20783 * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets.
20784 Don't set rtx_equal_function_value_matters. Don't register RTL hooks
20785 here again. Update leading comment.
20786 * rtl.c (rtx_equal_function_value_matters): Remove.
20787 (rtx_equal_p): Don't test for it.
20788 * simplify-rtx.c (simplify_binary_operation, simplify_subreg):
20789 Likewise.
20790
20791 * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND.
20792 * rtl.c (note_insn_name): Likewise.
20793 * emit-rtl.c (remove_unnecessary_notes): Don't handle it.
20794 * final.c (final_scan_insn): Likewise.
20795
20796 * except.c (finish_eh_generation): Don't call cfg_cleanup from here.
20797 * passes.c (rest_of_handle_eh): Do it here.
20798
20799 * stmt.c (struct nesting): Remove struct nesting block member.
20800 (struct stmt_status): Remove x_block_start_count field.
20801 (current_block_start_count): Remove.
20802
20803 2004-07-27 Brian Booth <bbooth@redhat.com>
20804
20805 * tree-optimize.c (register_one_dump_file): Update condition that uses
20806 static_pass_number.
20807 (dup_pass_1): Replace with...
20808 (next_pass_1): This.
20809 (NEXT_PASS): Call next_pass_1.
20810 (DUP_PASS): Remove.
20811 (init_tree_optimization_passes): Remove uses of DUP_PASS.
20812 (execute_one_pass): Update condition that uses
20813 static_pass_number.
20814 * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed
20815 integer.
20816
20817 2004-07-27 Nick Clifton <nickc@redhat.com>
20818
20819 * config/m32r/m32r.c: Include integrate.h in order to get the
20820 prototype for get_hard_reg_initial_val().
20821
20822 * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r"
20823 and tidy up indentation.
20824 (final_presence_set): Use absence_set instead, so that if there is
20825 nothing in the "o" pipe the "s" pipe can be scheduled.
20826
20827 2004-07-27 Diego Novillo <dnovillo@redhat.com>
20828
20829 * tree-ssa-alias.c (create_name_tags): Ignore pointers that
20830 don't have PT_VARS nor PT_MALLOC set.
20831 Clear name tag from pointers that have not been dereferenced.
20832 (set_pt_anything, set_pt_malloc): Forward declare.
20833 * tree-ssa-copy.c (may_propagate_copy): Compare alias sets,
20834 not type compatibility when determining if a pointer can be
20835 copy propagated.
20836
20837 2004-07-27 Richard Sandiford <rsandifo@redhat.com>
20838
20839 * expr.h (canonicalize_condition, get_condition): Add an int argument.
20840 * gcse.c (fis_get_condition): Reimplement using get_condition, leaving
20841 it to check whether the condition is still valid at the jump insn.
20842 * ifcvt.c (noce_get_condition): Likewise.
20843 (noce_get_alt_condition): Update call to canonicalize_condition.
20844 * loop-iv.c (simplify_using_initial_values): Update call to
20845 get_condition. Remove FIXME.
20846 (check_simple_exit): Update call to get_condition.
20847 * loop-unswitch.c (may_unswitch_on): Likewise.
20848 * loop.c (check_dbra_loop): Likewise.
20849 (canonicalize_condition, get_condition): Add an argument to say whether
20850 the condition must still be valid at INSN.
20851 (get_condition_for_loop): Update call to get_condition. Require that
20852 the condition be valid at INSN.
20853 * predict.c (estimate_probability): Update call to get_condition.
20854 Remove unused earliest parameter.
20855 (expected_value_to_br_prob): Update call to canonicalize_condition.
20856
20857 2004-07-26 Eric Christopher <echristo@redhat.com>
20858
20859 * tree-dfa.c (add_referenced_var): Register initializers of global
20860 variables.
20861
20862 2004-07-26 Paolo Bonzini <bonzini@gnu.org>
20863
20864 * config/i386/i386.c (function_arg): Always treat 8-
20865 and 16-byte wide vectors the same, even if MMX/SSE
20866 are disabled.
20867 (contains_128bit_aligned_vector_p): Add comment.
20868
20869 2004-07-26 J"orn Rennecke <joern.rennecke@superh.com>
20870
20871 * ra.h (enum node_type): Rename to:
20872 (enum ra_node_type).
20873 * ra-colorize.c: Likewise.
20874
20875 2004-07-26 Richard Sandiford <rsandifo@redhat.com>
20876
20877 * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
20878 after simplifying the jump.
20879
20880 2004-06-26 Richard Henderson <rth@redhat.com>
20881
20882 * calls.c (combine_pending_stack_adjustment_and_call): Make
20883 preferred_unit_stack_boundary argument unsigned. Make
20884 unadjusted_alignment unsigned.
20885 (expand_call): Make preferred_stack_boundary and
20886 preferred_unit_stack_boundary variables unsigned.
20887 * function.c (assign_stack_local_1): Make alignment unsigned.
20888 * function.h (struct function): Make stack_alignment_needed,
20889 preferred_stack_boundary unsigned.
20890 * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
20891 (ix86_compute_frame_layout): Make stack_alignment_needed,
20892 preferred_alignment variables unsigned.
20893 * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.
20894
20895 2004-07-26 Tom Tromey <tromey@redhat.com>
20896
20897 * tree.h: Fix typo in comment.
20898
20899 2004-07-26 Daniel Jacobowitz <dan@debian.org>
20900
20901 PR bootstrap/12804
20902 * ggc-zone.c (struct alloc_chunk): Remove attribute packed.
20903 (MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
20904 (ggc_free): Remove incorrect freeing.
20905 (sweep_pages): Advance PP for large pages. Fix indentation.
20906
20907 2004-07-26 Richard Sandiford <rsandifo@redhat.com>
20908
20909 PR rtl-optimization/16643
20910 * cfglayout.h (cfg_layout_initialize): Add a flags parameter.
20911 * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
20912 * basic-block.h (reorder_basic_blocks): Add a flags parameter.
20913 * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
20914 (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
20915 * function.c (thread_prologue_and_epilogue_insns): Likewise.
20916 * rtl.h (tracer): Add a flags parameter.
20917 * tracer.c (tracer): Pass it to cfg_layout_initialise.
20918 * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
20919 (rest_of_handle_reorder_blocks): Update calls to tracer and
20920 reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
20921 (rest_of_handle_tracer): Pass 0 to tracer.
20922 (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
20923
20924 2004-07-25 David Edelsohn <edelsohn@gnu.org>
20925
20926 PR target/16239
20927 * config/rs6000/rs6000.md (movdi_internal64): Further disparage
20928 f->f.
20929
20930 2004-07-24 Nathan Sidwell <nathan@codesourcery.com>
20931
20932 * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
20933 (BINFO_BASE_ACCESS): Adjust.
20934 (BINFO_BASE_ACCESS_APPEND): New.
20935 (struct tree_binfo): Make base_accesses a VEC(tree) pointer.
20936 * dbxout.c (dbxout_type): Adjust binfo access accessing.
20937 * dwarf2out.c (gen_member_die): Likewise.
20938 * tree-dump.c (deque_and_dump): Likewise.
20939
20940 2004-07-26 Falk Hueffner <falk@debian.org>
20941
20942 * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
20943 costs.
20944
20945 2004-07-25 Roger Sayle <roger@eyesopen.com>
20946
20947 * config/i386/i386.c (output_fp_compare): Use ffreep to pop top
20948 value off of the stack if TARGET_USE_FFREEP.
20949
20950 2004-07-26 Bernardo Innocenti <bernie@develer.com>
20951
20952 * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
20953 * gengtype-yacc.y: Likewise. Replace free() with XDELETE ().
20954 * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
20955 check on invocation of XRESIZEVEC ().
20956
20957 2004-07-26 Bernardo Innocenti <bernie@develer.com>
20958
20959 * c-common.c (disable_builtin_function): Rename variable n to
20960 new_disabled_builtin.
20961 * c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
20962 Rename local variable old to old_decl.
20963 * gensupport.c (shift_output_template): Rename parameter old to src.
20964 * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
20965 old_rtx and newx to new_rtx.
20966
20967 2004-07-26 Bernardo Innocenti <bernie@develer.com>
20968
20969 * Makefile.in (C_PRAGMA_H): New variable to track dependencies
20970 of c-pragma.h.
20971 * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
20972 enum cpp_ttype.
20973 * c-lex.c: Likewise.
20974
20975 2004-07-25 Roger Sayle <roger@eyesopen.com>
20976
20977 * fold-const.c (constant_boolean_node): Make extern.
20978 (make_range): Wrap long lines.
20979 (fold_cond_expr_with_comparison): Remove unnecessary call to
20980 pedantic_non_lvalue. Add missing calls to fold_convert.
20981 (fold_truthop): Add missing calls to fold_convert.
20982 (fold): Likewise.
20983 * tree.h (constant_boolean_node): Add prototype here.
20984 * builtins.c (expand_builtin_strncmp): Add missing calls to
20985 fold_convert.
20986 * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
20987 Call fold_convert and constant_boolean_node to correct types.
20988 * tree-ssa-forwprop.c (substitute_single_use_vars): Add
20989 missing call to fold_convert to correct types.
20990
20991 2004-07-26 Niall Douglas <s_fsfeurope2@nedprod.com>
20992 Brian Ryner <bryner@brianryner.com>
20993
20994 PR c++/9283
20995 PR c++/15000
20996 * c-common.c (c_common_attribute_table): Allow
20997 handle_visibility_attribute to be called for types.
20998 (handle_visibility_attribute) When given a type, set the visibility
20999 bits on the TYPE_NAME. When given a decl, don't set no_add_attrs
21000 so that we can check later whether the attribute was present. Added
21001 warning if attribute applied to non class type.
21002 * c-decl.c (diagnose_mismatched_decls): Updated rules for merging
21003 decls and checking that they are consistent.
21004 * common.opt: Added -fvisibility.
21005 * c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
21006 * c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
21007 * flags.h, tree.h: Added assorted support defines for overall patch
21008 * opts.c: Added parsing support for -fvisibility.
21009 * tree.c (build_decl): Set visibility for all decls to be whatever
21010 is in force at that time.
21011 * varasm.c (default_binds_local_p_1): Reworked logic determining
21012 when to make a symbol locally bound.
21013 * doc/invoke.texi: Added documentation for -fvisibility and
21014 -fvisibility-inlines-hidden.
21015
21016 2004-07-25 Bernardo Innocenti <bernie@develer.com>
21017
21018 * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
21019 * c-common.c: Add missing casts from void * to other types.
21020 * c-decl.c: Likewise.
21021 * c-format.c: Likewise.
21022 * c-lex.c: Likewise.
21023 * c-pragma.c: Likewise.
21024 * c-typeck.c: Likewise.
21025 * defaults.h: Likewise.
21026 * genconstants.c: Likewise.
21027 * gengtype-lex.l: Likewise.
21028 * genmodes.c: Likewise.
21029 * read-rtl.c: Likewise.
21030 * rtl.c: Likewise.
21031
21032 2004-07-25 Bernardo Innocenti <bernie@develer.com>
21033
21034 * bitmap.c: Use type-safe memory allocation macros from libiberty.
21035 * c-common.c: Likewise.
21036 * c-decl.c: Likewise.
21037 * c-lang.c: Likewise.
21038 * c-lex.c: Likewise.
21039 * c-opts.c: Likewise.
21040 * c-parse.in: Likewise.
21041 * c-typeck.c: Likewise.
21042 * genconditions.c: Likewise.
21043 * gengtype-lex.l: Likewise.
21044 * gengtype-yacc.y: Likewise.
21045 * gengtype.c: Likewise.
21046 * genmodes.c: Likewise.
21047 * gensupport.c: Likewise.
21048 * read-rtl.c: Likewise.
21049 * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
21050 htab_find_slot().
21051
21052 2004-07-25 Bernardo Innocenti <bernie@develer.com>
21053
21054 * c-decl.c (groktypename, groktypename_in_param_context): Rename
21055 variable typename to type_name.
21056 * c-lex.c (interpret_float): Likewise.
21057
21058 2004-07-25 Roger Sayle <roger@eyesopen.com>
21059
21060 * convert.c (convert_to_real, convert_to_integer,
21061 convert_to_complex): Replace calls to build with calls to buildN.
21062 * coverage.c (tree_coverage_counter_ref): Likewise.
21063 * dojump.c (do_jump): Likewise.
21064 * dwarf2out.c (loc_descriptor_from_tree): Likewise.
21065 * emit-rtl.c (component_ref_for_mem_expr,
21066 set_mem_attributes_minus_bitpos): Likewise.
21067 * explow.c (update_nonlocal_goto_save_area): Likewise.
21068 * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
21069 expand_mult_add): Likewise.
21070 * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
21071 store_constructor, get_inner_reference, expand_expr_real_1,
21072 try_casesi, try_tablejump): Likewise.
21073 * function.c (expand_function_start): Likewise.
21074 * stmt.c (emit_case_bit_tests, expand_end_case_type,
21075 node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
21076 * stor-layout.c (place_union_field, layout_type): Likewise.
21077 * tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
21078 * varasm.c (copy_constant): Likewise.
21079
21080 2004-07-25 Bernardo Innocenti <bernie@develer.com>
21081
21082 * c-common.c: Rename all identifiers named `new'.
21083 * c-decl.c: Likewise.
21084 * gensupport.c: Likewise.
21085 * simplify-rtx.c: Likewise.
21086 * c-common.c (disable_builtin_function): Replace a call to xmalloc()
21087 with XNEW().
21088 * gensupport.c (alter_output_for_insn): Replace two calls to xmalloc()
21089 with XNEWVEC().
21090
21091 2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
21092
21093 PR c/15360
21094 * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
21095 declarations until after calling pushdecl.
21096 (grokdeclarator): Set DECL_EXTERNAL for variables based on use of
21097 "extern" and not on whether the declaration is initialized.
21098
21099 2004-07-25 Daniel Jacobowitz <dan@debian.org>
21100
21101 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
21102 (sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
21103 * config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
21104 "cpplib.h", "c-pragma.h", "c-common.h".
21105 (solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
21106 (solaris_register_pragmas): New functions.
21107 * config/sol2-protos.h: New file.
21108 * config/sol2.c: New file.
21109 * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
21110 (REGISTER_TARGET_PRAGMAS): New macros.
21111 (solaris_pending_aligns, solaris_pending_inits)
21112 (solaris_pending_finis): New variables.
21113 * config/t-sol2 (sol2-c.o): Update dependencies.
21114 (sol2.o): New rule.
21115 * config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
21116 SUBTARGET_INSERT_ATTRIBUTES.
21117 (ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
21118 * config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
21119 (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
21120 * config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
21121 * config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
21122 * config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
21123 (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
21124 * config/sparc/sparc.c (sparc_attribute_table): New.
21125 (TARGET_INSERT_ATTRIBUTES): Define in terms of
21126 SUBTARGET_INSERT_ATTRIBUTES.
21127 (TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
21128 is defined.
21129 * doc/extend.texi (Solaris Pragmas): New section.
21130
21131 2004-07-25 Bernardo Innocenti <bernie@develer.com>
21132
21133 * c-common.c: Rename all identifiers named `class' to `cl'.
21134 * c-common.h: Likewise.
21135 * c-parse.in: Likewise.
21136 * c-typeck.c: Likewise.
21137 * genmodes.c: Likewise.
21138 * real.c: Likewise.
21139 * real.h: Likewise.
21140 * recog.c: Likewise.
21141 * recog.h: Likewise.
21142 * regrename.c: Likewise.
21143 * tree.h: Likewise.
21144 * c-common.c (builtin_function_2): Change type of 5th parameter from
21145 int to enum built_in_function. Change type of 8th parameter from int
21146 to bool.
21147 * c-decl (builtin_function): Replace call to ggc_alloc_cleared ()
21148 with GGC_CNEW().
21149 * c-typeck.c (convert_arguments): Change type of formal_prec from
21150 int to unsigned int.
21151 * genmodes.c (blank_mode): Make a few negative constants unsigned.
21152 (complete_all_modes, calc_wider_mode, emit_insn_modes_h,
21153 emit_mode_name, emit_mode_class, emit_mode_precision, emit_mode_size,
21154 emit_mode_nunits, emit_mode_wider, emit_mode_mask, emit_mode_inner,
21155 emit_mode_base_align, emit_class_narrowest_mode): Pass an integer
21156 iterator to for_all_modes () instead of an enum because enums can't
21157 be incremented in C++.
21158
21159
21160 2004-07-25 Daniel Jacobowitz <dan@debian.org>
21161
21162 * regmove.c (optimize_reg_copy_1): Don't try to replace call-used
21163 hard registers.
21164
21165 2004-07-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21166
21167 * tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
21168 Handle ARRAY_RANGE_REF like ARRAY_REF.
21169
21170 2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
21171
21172 * c-typeck.c (digest_init): Don't allow arrays of signed or
21173 unsigned variants of wchar_t to be initialized by wide string
21174 constants. Do allow arrays of enumerated types compatible with
21175 wchar_t to be initialized by wide string constants. Refine tests
21176 distinguishing wide and narrow strings and arrays. Give specific
21177 error for arrays of other integer types initialized by string
21178 constants.
21179 (output_init_element, process_init_element): Check for
21180 INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
21181 initializing with string constants.
21182
21183 2004-07-25 Richard Henderson <rth@redhat.com>
21184
21185 * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
21186 on the RESULT_DECL.
21187 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
21188 * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
21189 DECL_IGNORED_P to new decl.
21190
21191 2004-07-24 Zack Weinberg <zack@codesourcery.com>
21192
21193 * config/ia64/ia64.c (general_xfmode_operand)
21194 (destination_xfmode_operand): Delete.
21195 * config/ia64/ia64.h (PREDICATE_CODES): Remove them.
21196 * config/ia64/ia64.md (*movxf_internal): Use general_operand
21197 and destination_operand.
21198
21199 2004-07-24 Alexander Kabaev <kan@freebsd.org>
21200
21201 * config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
21202 (EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.
21203
21204 2004-07-24 Alexander Kabaev <kan@freebsd.org>
21205 Zack Weinberg <zack@codesourcery.com
21206
21207 PR 16684
21208 * c-decl.c (diagnose_mismatched_decls): Don't issue a
21209 redundant-declaration warning the first time a builtin is
21210 declared explicitly.
21211
21212 2004-07-25 Bernardo Innocenti <bernie@develer.com>
21213
21214 * tree.h (staticp): Change return type to bool.
21215
21216 2004-07-25 Bernardo Innocenti <bernie@develer.com>
21217
21218 * c-common.c (c_staticp): Last episode of the staticp saga.
21219
21220 2004-07-25 Bernardo Innocenti <bernie@develer.com>
21221
21222 * c-common.h (c_staticp): Change return type from int to bool.
21223 * tree.c (staticp): Likewise.
21224 * langhooks.h (staticp): Likewise.
21225
21226 2004-07-25 Bernardo Innocenti <bernie@develer.com>
21227
21228 * langhooks-def.h (lhd_staticp): Change return type from int to
21229 bool in prototype to match definition.
21230
21231 2004-07-25 Bernardo Innocenti <bernie@develer.com>
21232
21233 * system.h (bool, true, false): Don't redefine as preprocessor macros
21234 in C++.
21235
21236 2004-07-24 Roger Sayle <roger@eyesopen.com>
21237
21238 * expmed.c (init_expmed): A signed modulus by a power of two is
21239 considered cheap if its less than or equal to four instructions.
21240
21241 2004-07-25 Bernardo Innocenti <bernie@develer.com>
21242
21243 * ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
21244 GGC_CNEWVAR): New macros.
21245
21246 2004-07-25 Bernardo Innocenti <bernie@develer.com>
21247
21248 * c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
21249 lists.
21250 * c-decl.c: Likewise.
21251 * c-format.c: Likewise.
21252 * c-lex.c: Likewise.
21253 * c-opts.c: Likewise.
21254 * c-pragma.c: Likewise.
21255 * c-typeck.c: Likewise.
21256 * gencheck.c: Likewise.
21257 * genconditions.c: Likewise.
21258 * genconfig.c: Likewise.
21259 * genflags.c: Likewise.
21260 * gengtype.c: Likewise.
21261 * gensupport.c: Likewise.
21262 * ggc-none.c: Likewise.
21263 * langhooks.c: Likewise.
21264 * statistics.h: Likewise.
21265 * stub-objc.c: Likewise.
21266 * java/decl.c: Likewise.
21267
21268 2004-07-24 Roman Zippel <zippel@linux-m68k.org>
21269
21270 * config/m68k/m68k.c (output_scc_di): Fix coding style.
21271 (symbolic_operand): Fix prototype.
21272 * config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
21273 * config/m68k/m68k.md: Add constants for registers a0 and sp and
21274 use them, change from the "{...}" syntax to the simpler {...}
21275 syntax.
21276 (*cfv4_extendqisi2): Fix destination predicate.
21277 * config/m68k/m68k-protos.h: Remove various declarations also
21278 generated via PREDICATE_CODES.
21279
21280 2004-07-23 Mike Stump <mrs@apple.com>
21281
21282 * c-typeck.c (convert_for_assignment): Tightened up pointer
21283 converstions that differ in signedness.
21284
21285 2004-07-23 Zack Weinberg <zack@codesourcery.com>
21286
21287 * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
21288
21289 2004-07-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21290
21291 * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
21292 * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
21293
21294 * gimplify.c (gimplify_compound_lval): Check for no handled
21295 operations, rather than checking for explicit list of nodes.
21296 (is_gimple_addr_expr_arg_or_indirect): New function.
21297 (gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
21298 redundant setting of TREE_INVARIANT.
21299 (gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
21300 * tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.
21301
21302 2004-07-23 Diego Novillo <dnovillo@redhat.com>
21303
21304 PR tree-optimization/16688
21305 PR tree-optimization/16689
21306 * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
21307 unnecessary initialization of 'tag'.
21308 (get_tmt_for): Check that the new type tag has the same alias
21309 set as the pointed-to type.
21310 (group_aliases): Only regular variables need to be removed
21311 from the alias set of a name tag.
21312 * tree-ssa-copy.c (may_propagate_copy): Do not allow copy
21313 propagation if the two types are not compatible.
21314 (merge_alias_info): Rename from replace_ssa_names_ann.
21315 Add more checking.
21316 (replace_exp_1): If both arguments are SSA_NAMEs, check that
21317 the propagation can be done.
21318 Only call merge_alias_info on pointers.
21319 (propagate_value): Likewise.
21320 * tree-ssa-copyrename.c: Include langhooks.h.
21321 (copy_rename_partition_coalesce): Call replace_ssa_name_symbol
21322 to do the merging.
21323 Do not coalesce variables with incompatible types.
21324 (rename_ssa_copies): Call replace_ssa_name_symbol.
21325 * tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
21326 the same type as the underlying _DECL.
21327 * tree-ssanames.c (replace_ssa_name_symbol): New function.
21328 * tree.h (replace_ssa_name_symbol): Declare.
21329
21330 2004-07-23 Richard Henderson <rth@redhat.com>
21331
21332 PR c++/16277
21333 * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
21334 unshare it properly.
21335 (gimplify_modify_expr_rhs): Push assignment from a conditional into
21336 the conditional for all non-register types.
21337
21338 2004-07-23 Richard Henderson <rth@redhat.com>
21339
21340 * expr.c (expand_expr_real_1): Don't handle non-local variables.
21341 * expr.h (fix_lexical_addr): Remove.
21342 * function.c (NEED_SEPARATE_AP): Remove.
21343 (fix_lexical_addr): Remove.
21344 * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
21345 not null decl_function_context.
21346 (create_alias_vars): Likewise.
21347 * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
21348 (simple_goto_p): Likewise.
21349 * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
21350 * tree-ssa-ccp.c (get_default_value): Likewise.
21351 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
21352 * tree.c (needs_to_live_in_memory): Likewise.
21353 * tree-flow-inline.h (may_be_aliased): Move...
21354 * tree-ssa-alias.c (may_be_aliased): ... here. Enhance check for
21355 when TREE_STATIC variables may be addressable.
21356
21357 2004-07-24 Jakub Jelinek <jakub@redhat.com>
21358
21359 * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
21360
21361 2004-07-23 Zack Weinberg <zack@codesourcery.com>
21362
21363 * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
21364 bitmap contents if GENERATOR_FILE is defined.
21365 * Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
21366 ($(BUILD_PREFIX_1)bitmap.o): Delete rule.
21367
21368 2004-07-23 Joseph S. Myers <jsm@polyomino.org.uk>
21369
21370 * c-decl.c (start_function): Form composite type of function types
21371 rather than copying type from previous prototype declaration.
21372
21373 2004-07-23 Janis Johnson <janis187@us.ibm.com>
21374
21375 * config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
21376 the const qualifier for the second argument in the C++ functions.
21377
21378 * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
21379 specific pointer types.
21380
21381 * config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
21382 vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
21383 for vector bool and/or vector pixel, add C++ and C missing support.
21384 (vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
21385 vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
21386 vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
21387 vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
21388 vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
21389 missing C++ and C support for vector bool and/or vector pixel.
21390 (vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
21391 vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
21392 vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
21393 vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
21394 vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
21395 C++ and C types used for vector bool and/or vector pixel.
21396 (vec_st, vec_stl): Add C++ support for vector pixel.
21397 (vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
21398 (vec_all_ne): Add C++ support for vector pixel.
21399
21400 * config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
21401 (vec_vmulesb): Add missing C++ function.
21402 (vec_perm): Fix type of third argument in C++ function.
21403 (vec_vsum4shs): Fix C++ function name.
21404 (vec_any_ge): Remove C++ functions for unsupported arg combinations.
21405 (vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
21406 argument passed to the error handler in C macro.
21407 (vec_nmsub): Remove extra parens around argument names in C macro.
21408 (vec_packpx): Add missing parens in C macro.
21409
21410 2004-07-22 Paolo Bonzini <bonzini@gnu.org>
21411
21412 * machmode.def: Remove vector modes.
21413 * config/alpha/alpha-modes.def: Add supported vector modes.
21414 * config/arm/arm-modes.def: Likewise.
21415 * config/frv/frv-modes.def: Likewise.
21416 * config/i386/i386-modes.def: Likewise.
21417 * config/rs6000/rs6000-modes.def: Likewise.
21418 * config/sh/sh-modes.def: Likewise.
21419
21420 2004-07-23 Matthias Klose <doko@debian.org>
21421
21422 * intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
21423 * configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
21424 * config.h: Regenerate.
21425 * configure: Likewise.
21426
21427 2004-07-22 Mark Mitchell <mark@codesourcery.com>
21428
21429 * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
21430 generated SYMBOL_REFs for labels.
21431 * config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
21432 Change prototype.
21433 (machopic_stub_name): Remove.
21434 (machopic_indirection_name): New function.
21435 (machopic_mcount_stub_name): Likewise.
21436 (machopic_classify_name): Remove.
21437 (machopic_function_base_sym): New function.
21438 (machpoic_classify_symbol): Likewise.
21439 (machopic_classify_ident): Remove.
21440 (machopic_define_ident): Likewise.
21441 (machopic_define_name): Likewise.
21442 (machopic_name_defined_p): Likewise.
21443 (machopic_ident_defined_p): Likewise.
21444 (darwin_strip_name_encoding): Likewise.
21445 (machopic_define_symbol): New function.
21446 * config/darwin.c (hashtab.h): Include.
21447 (machopic_defined_list): Remove.
21448 (machopic_classify_ident): Likewise.
21449 (machopic_classify_name): Likewise.
21450 (machopic_ident_defined_p): Likewise.
21451 (machopic_define_ident): Likewise.
21452 (machopic_define_name): Likewise.
21453 (machopic_symbol_defined_p): New function.
21454 (machopic_classify_symbol): Likewise.
21455 (machopic_data_defined_p): Use machopic_classify_symbol.
21456 (machopic_define_symbol): New function.
21457 (machopic_function_base_sym): New function.
21458 (machopic_non_lazy_pointers): Remove.
21459 (machopic_non_lazy_ptr_name): Likewise.
21460 (machopic_stubs): Likewise.
21461 (machopic_stub_name): Likewise.
21462 (NON_LAZY_POINTER_SUFFIX): New macro.
21463 (STUB_SUFFIX): Likewise.
21464 (machopic_indirection): New structure.
21465 (machopic_indirections): New variable.
21466 (machopic_indirection_hash): New function.
21467 (machopic_indirection_eq): Likewise.
21468 (machopic_indirection_name): Likewise.
21469 (machopic_mcount_stub_name): New function.
21470 (machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
21471 hash table.
21472 (machopic_indirect_data_reference): Rework to use new functions.
21473 (machopic_indirect_call_target): Likewise.
21474 (machopic_legitimize_pic_address): Likewise.
21475 (machopic_output_indirection): New function.
21476 (machopic_finish): Use it.
21477 (machopic_operand_p): Rework to use new functions.
21478 (darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
21479 (darwin_strip_name_encoding): Remove.
21480 (update_non_lazy_ptrs): Remove.
21481 (update_stubs): Likewise.
21482 (darwin_non_lazy_pcrel): Use new functions.
21483 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
21484 (ASM_OUTPUT_LABELREF): Likewise.
21485 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
21486 (MACHO_SYMBOL_FLAG_VARIABLE): New macro.
21487 (MACHO_SYMBOL_FLAG_DEFINED): Likewise.
21488 (TARGET_STRIP_NAME_ENCODING): Do not use
21489 darwin_strip_name_encoding.
21490 (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
21491 darwin_strip_name_encoding.
21492 * config/i386/darwin.h (FUNCTION_PROFILER): Use
21493 machopic_mcount_stub_name.
21494 * config/i386/i386.c (x86_output_mi_thunk): Use
21495 machopic_indirection_name, not machopic_stub_name.
21496 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
21497 machopic_function_base_sym.
21498 (print_operand): Use machopic_classify_symbol.
21499 (rs6000_emit_prologue): Use machopic_function_base_sym.
21500 (output_profile_hook): Do not use machopic_stub_name.
21501 (macho_branch_isalnds): Do not use darwin_strip_name_encoding.
21502
21503 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
21504
21505 PR c/7284
21506 * fold-const.c (extract_muldiv_1): Do not treat signed left shift
21507 as multiplication.
21508
21509 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
21510
21511 * doc/implement-c.texi: New file.
21512 * doc/extend.texi (C Implementation): Move to there.
21513 * doc/gcc.texi: Include implement-c.texi.
21514 * Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.
21515
21516 2004-07-22 Jason Merrill <jason@redhat.com>
21517
21518 * integrate.c (copy_decl_for_inlining): Remove invisible reference
21519 handling.
21520 * tree-inline.c (setup_one_parameter): Likewise.
21521
21522 2004-07-22 Brian Booth <bbooth@redhat.com>
21523
21524 * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
21525 (substitute_and_fold): Propigate into VUSE operands when possible.
21526 (visit_phi_node): Handle UNKNOWN_VAL latticevalue.
21527 (cp_lattice_meet): Handle merging of latticevalues when
21528 UNKNOWN_VAL is present.
21529 (visit_stmt): Visit assignments with V_MUST_DEFs.
21530 (visit_assignment): Gather ccp information for V_MUST_DEF operands.
21531 (ccp_fold): Deal with RHS' that are constant and virtual.
21532 (evaluate_stmt): Handle UNKNOWN_VAL likely values.
21533 (dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
21534 (initialize): Mark statements with V_MUST_DEFs as VARYING only if the
21535 V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
21536 computing immediate uses.
21537 (set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
21538 transition.
21539 (replace_vuse_in): New function.
21540 (likely_value): Add check of vuse operands.
21541 (get_default_value): Set the default value of virtually defined
21542 variables to UKNOWN_VAL instead of VARYING.
21543
21544 2004-07-22 Richard Henderson <rth@redhat.com>
21545
21546 * expr.c (emit_push_insn): Don't use set_mem_attributes.
21547
21548 2004-07-22 Richard Henderson <rth@redhat.com>
21549
21550 * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
21551 variables due to conditional compilation.
21552
21553 2004-07-22 Diego Novillo <dnovillo@redhat.com>
21554
21555 * tree-into-ssa.c (set_livein_block): Fix typo in comment.
21556 (rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
21557 Release SSA names that have been re-renamed.
21558 * tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
21559 variable.
21560 * tree-ssa-alias.c (init_alias_info): If aliases have been
21561 computed before, clear existing alias information.
21562 (create_name_tags): Do no fixup PT_ANYTHING pointers.
21563 If the new name tag for a pointer is different than the one it
21564 had before, mark the old tag for renaming.
21565 (replace_may_alias): New function.
21566 (group_aliases): Call it.
21567 (setup_pointers_and_addressables): Always call get_tmt_for.
21568 (maybe_create_global_var): Don't create .GLOBAL_VAR more than
21569 once.
21570 (set_pt_anything): New local function.
21571 (set_pt_malloc): New local function.
21572 (merge_pointed_to_info): Don't merge pointed-to variables from
21573 the original pointer if the destination is pointing to an
21574 unknown location.
21575 (add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
21576 (add_pointed_to_var): Do not add a variable to the points-to
21577 set if the pointer is already pointing to anywhere.
21578 (collect_points_to_info_r): If the defining statement is a PHI
21579 node, only merge pointed-to information if the argument has
21580 already been visited.
21581 (get_tmt_for): Only create a new tag if the pointer didn't
21582 have one already.
21583 (dump_alias_info): Emit more information.
21584 (dump_points_to_info_for): Likewise.
21585 * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
21586 try to get the annotation of an SSA_NAME.
21587 * tree-ssa-operands.c (add_stmt_operand): Only check for empty
21588 alias sets when checking is enabled.
21589 * tree-ssa-pre.c (need_eh_cleanup): New local variable.
21590 (eliminate): Mark basic blocks that will need
21591 EH information cleaned up.
21592 (init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
21593 predecessor.
21594 Initialize need_eh_cleanup.
21595 (fini_pre): Call tree_purge_all_dead_eh_edges and
21596 cleanup_tree_cfg if needed.
21597 Free need_eh_cleanup.
21598 * tree-ssa.c (verify_ssa_name): New function.
21599 (verify_def): Call it.
21600 Re-arrange to avoid printing too many error messages.
21601 (verify_use): Likewise.
21602 (verify_phi_args): Likewise.
21603 (verify_flow_insensitive_alias_info): New function.
21604 (verify_flow_sensitive_alias_info): New function.
21605 (verify_alias_info): New function.
21606 (verify_ssa): Call verify_alias_info.
21607 Clear TREE_VISITED on all the SSA_NAMEs before scanning the
21608 program.
21609 Re-arrange to avoid printing too many error messages.
21610 * tree-ssanames.c (make_ssa_name): Clear
21611 SSA_NAME_IN_FREE_LIST.
21612 (release_ssa_name): Never release a default definition.
21613 (release_defs): New function.
21614 * tree.h: Declare it.
21615 * tree-ssa-dce.c (remove_dead_stmt): Call it.
21616
21617 2004-07-22 Diego Novillo <dnovillo@redhat.com>
21618
21619 * tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
21620 If true, do a depth-first search. Do a breadht-first search,
21621 otherwise.
21622 (walk_use_def_chains): Add new argument IS_DFS.
21623 Update all users.
21624 * tree-flow.h (walk_use_def_chains): Update prototype.
21625
21626 2004-07-22 Hans-Peter Nilsson <hp@axis.com>
21627
21628 * config/cris/cris.md: Tweak formatting.
21629 (asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
21630 (mover2side, moverside, movemside, movei, op3, andu): Replace
21631 live define_peephole:s with define_peephole2 near-equivalents.
21632 Delete the rest.
21633 ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap". Match all
21634 word-size modes.
21635 ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
21636 Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
21637 "*mov_sidesi_mem" respectively.
21638
21639 2004-07-22 Paolo Bonzini <bonzini@gnu.org>
21640
21641 * tree-cfg.c (gimplify_val): Move from tree-complex.c.
21642 (gimplify_build1): Move from tree-complex.c do_unop.
21643 (gimplify_build2): Move from tree-complex.c do_binop.
21644 (gimplify_build3): New.
21645 * tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
21646 Adjust throughout to call the functions above.
21647 * tree-flow.h: Declare the functions above.
21648 * tree-nested.c (gimplify_val): Rename to...
21649 (tsi_gimplify_val): ... this.
21650
21651 * Makefile.in (tree_complex.o): Update dependencies.
21652 (stor-layout.o): Depend on regs.h.
21653 * c-common.c (handle_vector_size_attribute): Update for
21654 vector types without corresponding vector modes.
21655 * expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
21656 a corresponding vector mode is not available.
21657 * print-tree.c (print_node): Print nunits for vector types
21658 * regclass.c (have_regs_of_mode): New.
21659 (init_reg_sets_1): Initialize it and use it instead
21660 of allocatable_regs_of_mode.
21661 * regs.h (have_regs_of_mode): Declare it.
21662 * stor-layout.c (layout_type): Pick a mode for vector types.
21663 * tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
21664 build_replicated_const, do_unop, do_binop, do_plus_minus,
21665 do_negate, expand_vector_piecewise, expand_vector_parallel,
21666 expand_vector_addition, expand_vector_operations_1,
21667 expand_vector_operations, tree_lower_operations,
21668 pass_lower_vector_ssa, pass_pre_expand): New.
21669 (expand_complex_operations, pass_lower_complex): Remove.
21670 * tree-optimize.c (init_tree_optimization_passes): Adjust
21671 pass ordering for changes in tree-complex.c.
21672 * tree-pass.h: Declare new passes.
21673 * tree.c (finish_vector_type): Remove.
21674 (make_vector_type): New.
21675 (build_vector_type_for_mode, build_vector_type): Rewritten.
21676 * tree.def (VECTOR_TYPE): Document where the number of
21677 subparts is stored.
21678 * tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
21679 (make_vector): Remove declaration.
21680
21681 2004-07-21 Richard Henderson <rth@redhat.com>
21682
21683 * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
21684 TREE_THIS_VOLATILE, may_aliases, or optimization level.
21685 (remove_useless_vars): Dump debugging info.
21686 (expand_used_vars): Move ...
21687 * cfgexpand.c (expand_used_vars): ... here. Make static.
21688 * tree-flow-inline.h (set_is_used): New.
21689 (set_default_def): Use get_var_ann.
21690 * tree-flow.h: Update decls.
21691 * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
21692 (create_ssa_var_map): Use it.
21693 * tree-ssa.c (set_is_used): Remove.
21694
21695 2004-07-22 Ben Elliston <bje@au.ibm.com>
21696
21697 * gdbinit.in: Set a breakpoint on internal_error.
21698
21699 2004-07-21 Richard Henderson <rth@redhat.com>
21700
21701 * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
21702 to create a new basic block.
21703
21704 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
21705
21706 PR c/15052
21707 * c-decl.c (grokdeclarator): Only pedwarn for qualified void
21708 return type on function definitions. Move other warnings for
21709 qualified return type to -Wreturn-type. Do not condition any such
21710 warnings on -pedantic. Update comments.
21711 (start_function): Only copy function type from previous prototype
21712 declaration if return types are compatible.
21713 * c-typeck.c (function_types_compatible_p): Don't condition
21714 warning for incompatibility of volatile qualifiers on the return
21715 type on -pedantic. Update comment.
21716 * doc/invoke.texi (-Wreturn-type, -Wextra): Update.
21717
21718 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
21719
21720 * c-typeck.c (set_init_index): Require designator to be of integer
21721 type.
21722
21723 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
21724
21725 PR c/11250
21726 * c-parse.in (init): Change to exprtype.
21727 (primary): Set original_code for STRING to STRING_CST.
21728 Call maybe_warn_string_init for compound literals.
21729 (initdcl, notype_initdcl): Call maybe_warn_string_init.
21730 (initval): Update.
21731 * c-tree.h (maybe_warn_string_init): New.
21732 (pop_init_level, process_init_element): Use struct c_expr.
21733 (struct c_expr): Update comment.
21734 * c-typeck.c (maybe_warn_string_init): New function.
21735 (digest_init): Call it. Additional parameter strict_string. All
21736 callers changed.
21737 (output_init_element): Likewise.
21738 (struct constructor_stack): Use struct c_expr for
21739 replacement_value.
21740 (really_start_incremental_init, push_init_level): Update.
21741 (pop_init_level): Update. Return struct c_expr.
21742 (process_init_level): Update. Take struct c_expr argument.
21743
21744 2004-07-21 David S. Miller <davem@nuts.davemloft.net>
21745
21746 * config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
21747 commit.
21748
21749 2004-07-21 Eric Christopher <echristo@redhat.com>
21750
21751 * builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
21752 removal.
21753 * c-decl.c (pop_scope): Ditto.
21754 * calls.c (expand_call): Remove call to current_nesting_level,
21755 update comment accordingly. Remove calls to expand_start_target_temps
21756 and expand_end_target_temps.
21757 * cfgexpand.c (construct_init_block): Remove call to
21758 expand_start_bindings_and_block.
21759 (construct_exit_block): Remove call to expand_end_bindings.
21760 * expr.c (safe_from_p): Remove BIND_EXPR handling.
21761 (expand_expr_real_1): Ditto. Fix formatting.
21762 (expand_vars): Delete.
21763 * stmt.c (POPSTACK): Remove block_stack.
21764 (stmt_status): Remove x_block_stack.
21765 (block_stack): Delete.
21766 (expand_start_bindings_and_block): Ditto.
21767 (expand_start_target_temps): Ditto.
21768 (expand_end_target_temps): Ditto.
21769 (current_nesting_level): Ditto.
21770 (warn_about_unused_variables): Ditto.
21771 (expand_end_bindings): Ditto.
21772 * tree.h: Remove declarations for above.
21773
21774 2004-07-21 Steven Bosscher <stevenb@suse.de>
21775
21776 * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
21777 * rtl.c (note_insn_name): Likewise.
21778 * print-rtl.c (print_rtx): Don't print it.
21779 * cfgrtl.h (can_delete_note_p): Don't handle it.
21780 (rtl_delete_block): Likewise.
21781 * passes.c (rest_of_handle_guess_branch_prob): Remove.
21782 (rest_of_compilation): Don't call it.
21783 * predict.c (process_note_predictions, process_note_prediction,
21784 note_prediction_to_br_prob): Remove.
21785 * basic-block.c (note_prediction_to_br_prob): Remove prototype.
21786 * stmt.c (return_prediction): Remove.
21787 (expand_value_return): Don't call it. Don't add prediction
21788 notes for return statements.
21789
21790 2004-07-21 Josef Zlomek <zlomekj@suse.cz>
21791
21792 * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
21793 once.
21794
21795 2004-07-21 Paolo Bonzini <bonzini@gnu.org>
21796
21797 * c-common.c (vector_types_convertible_p): Use vector types'
21798 TYPE_SIZE and TREE_TYPE instead of their mode.
21799 * convert.c (convert_to_integer): Likewise.
21800 (convert_to_vector): Likewise.
21801 * fold-const.c (fold_convert): Likewise.
21802 * varasm.c (output_constant): Likewise.
21803 * expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
21804 Allow a VECTOR_TYPE initializer to be made of several vectors.
21805 For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
21806 of cleared and need_to_clear, and use fold_convert.
21807 * c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
21808 integer vectors.
21809
21810 2004-07-20 Richard Henderson <rth@redhat.com>
21811
21812 * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
21813 (expand_gimple_basic_block): out from here. Renamed from expand_block.
21814
21815 2004-07-20 David S. Miller <davem@nuts.davemloft.net>
21816
21817 * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
21818 enormous cost if not TARGET_HARD_MUL.
21819
21820 2004-07-20 Andrew Pinski <apinski@apple.com>
21821
21822 PR target/16557
21823 * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
21824 (ASM_SPEC): here.
21825
21826 2004-07-21 Paul brook <paul@codesourcery.com>
21827
21828 * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
21829
21830 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21831
21832 * fold-const.c (operand_equal_p): Temporarily support NULL args.
21833 (operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
21834 (operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.
21835
21836 2004-07-20 Zack Weinberg <zack@codesourcery.com>
21837
21838 * rtl.h (plus_constant): Delete.
21839 (plus_constant_wide): Rename to plus_constant.
21840 (plus_constant_for_output_wide): Delete vestigial prototype.
21841 (GEN_INT): Remove unnecessary cast.
21842 * tree.h (build_int_2, size_int_type): Delete.
21843 (build_int_2_wide): Rename to build_int_2.
21844 (size_int_wide): Rename to size_int_kind.
21845 (size_int_type_wide): Rename to size_int_type.
21846 (size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
21847 Remove unnecessary cast.
21848 * tree.c (build_int_2_wide): Rename build_int_2; update comment.
21849 * explow.c (plus_constant_wide): Rename plus_constant; update comment.
21850 * fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
21851 (size_int_type_wide): Rename size_int_type.
21852 (int_const_binop): Use size_int_type.
21853 * c-lex.c (interpret_integer): Use build_int_2.
21854 * final.c (split_double): Remove unnecessary casts.
21855 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.
21856
21857 2004-07-20 Richard Henderson <rth@redhat.com>
21858
21859 * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
21860 (gimplify_compound_lval): Use is_gimple_tmp_reg.
21861 * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
21862 (is_gimple_tmp_reg): New.
21863 * tree-gimple.h (is_gimple_tmp_reg): Declare.
21864
21865 2004-07-20 Richard Henderson <rth@redhat.com>
21866
21867 * tree-pretty-print.c (dump_generic_node): Dump
21868 CALL_EXPR_HAS_RETURN_SLOT_ADDR.
21869
21870 2004-07-20 Frank Ch. Eigler <fche@redhat.com>
21871
21872 * tree-mudflap.c (mf_set_options_fndecl): New tree.
21873 (mudflap_init): Set it.
21874 (mudflap_register_call): Remove __mf_init call.
21875 (mudflap_finish_file): Emit call to __mf_init here. Emit a call to
21876 to pass "-ignore-reads" option to libmudflap if needed.
21877
21878 2004-07-20 John David Anglin <dava.anglin@nrc-cnrc.gc.ca>
21879
21880 PR c++/14607
21881 * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
21882 (MAKE_DECL_ONE_ONLY): Undefine.
21883 * pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
21884 readonly_data, one_only_data_section, forget_section): New prototypes.
21885 * pa.c (pa_init_machine_status, som_text_section_asm_op): New
21886 functions.
21887 (pa_select_section): Add one-only (COMDAT) support.
21888 * pa.h (struct machine_function): Define.
21889 * som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
21890 (TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
21891 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
21892 ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
21893 ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
21894 (EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
21895 (EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
21896 (READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
21897 ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
21898 for EXTRA_SECTION_FUNCTIONS.
21899 * doc/install.texi: Update binutils requirements.
21900
21901 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
21902
21903 * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
21904 VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
21905 VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
21906 size_t.
21907 (struct VEC): Use unsigned for num and alloc.
21908 * vec.c (struct vec_prefix): Likewise.
21909 (vec_o_reserve): Adjust.
21910
21911 * dbxout.c (dbxout_type): Fix printf format.
21912
21913 * tree.h (binfo_member): Remove.
21914 * tree.c (binfo_member): Remove.
21915
21916 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
21917
21918 * tree.h: Include vec.h
21919 (DEF_VEC_P(tree)): New type.
21920 (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): Adjust.
21921 (BINFO_BASE_APPEND, BINFO_BASE_ITERATE): New.
21922 (BINFO_LANG_SLOT): Remove.
21923 (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): New.
21924 (struct tree_binfo): Turn base_binfos into a trailing
21925 VEC(tree). Add vtt_subvtt, vtt_vptr, primary fields.
21926 (binfo_lang_slots): Remove.
21927 * tree.c (binfo_lang_slots): Remove.
21928 (make_tree_binfo_stat): Take a base binfo count, not a
21929 lang slot count. Adjust.
21930 * Makefile.in (TREE_H): Add vec.h
21931 * alias.c (record_component_aliases): Adjust BINFO access.
21932 * dbxout.c (dbxout_type): Likewise.
21933 * dwarf2out.c (gen_member_die): Likewise.
21934 * sdbout.c (sdbout_one_type): Likewise.
21935 * tree-dump.c (deque_and_dump): Likewise.
21936 * config/i386/i386.c (classify_argument,
21937 contains_128bit_aligned_vector_p): Likewise.
21938 * config/sh/symbian.c (symbian_export_vtable_and_rtti_p): Likewise.
21939 * doc/c-tree.texi (Classes): Update BINFO documentation.
21940
21941 2004-07-20 Steven Bosscher <stevenb@suse.de>
21942
21943 * c-common.h (check_case_value): Remove prototype.
21944 (c_add_case_label): Adjust prototype.
21945 * c-common.c (check_case_value): Make static.
21946 (check_case_bounds): New function.
21947 (c_add_case_label): Use it. Take new argument orig_type.
21948 * c-typeck.c (struct c_switch): New orig_type field.
21949 (c_start_case): Set it.
21950 (do_case): Pass it to c_add_case_label.
21951 * expr.c (expand_expr_real_1): Don't warn for out-of-bounds
21952 cases from here. Add the labels in reverse order.
21953 * stmt.c (struct case_node): Adjust comment. Remove balance field.
21954 (add_case_node): Return nothing, don't check for duplicate cases.
21955 Insert new case nodes in a list, not in an AVL tree.
21956 (expand_end_case_type): Don't turn a case tree into a case list.
21957 (case_tree2list): Remove.
21958 * tree.h (add_case_node): Adjust prototype.
21959
21960 2004-07-19 Paolo Bonzini <bonzini@gnu.org>
21961
21962 * genattr.c (struct range, struct function_unit,
21963 write_units, extend_range, init_range): Remove them.
21964 (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
21965 Output "#define INSN_SCHEDULING" here.
21966 * genattrtab.c (struct range, struct function_unit_op,
21967 struct function_unit, struct dimension, enum operator,
21968 operate_exp, expand_units, simplify_knowing,
21969 encode_units_mask, simplify_by_exploding,
21970 find_and_mark_used_attributes, unmark_used_attributes,
21971 add_values_to_cover, increment_current_value,
21972 test_for_current_value, simplify_with_current_value,
21973 simplify_with_current_value_aux, gen_unit,
21974 write_unit_name, write_function_unit_info,
21975 write_complex_function, write_toplevel_expr,
21976 find_single_value, extend_range): Remove.
21977 (write_attr_get): Do not handle common_av->value
21978 being an FFS.
21979 (struct attr_desc): Remove func_units_p and blockage_p.
21980 (write_attr_valueq): Do not handle them.
21981 (find_attr): Do not clear them.
21982 (make_internal_attr): Do not initialize them.
21983 (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
21984 * sched-vis.c (init_target_units, insn_print_units,
21985 init_block_visualization, print_block_visualization,
21986 visualize_scheduled_insns, visualize_no_unit,
21987 visualize_stall_cycles, visualize_alloc,
21988 visualize_free, target_units, get_visual_tbl_length,
21989 MAX_VISUAL_LINES, INSN_LEN, n_visual_lines,
21990 visual_tbl_line_length, visual_tbl, n_vis_no_unit,
21991 MAX_VISUAL_NO_UNIT, vis_no_unit): Remove.
21992 * haifa-sched.c (blockage_range, clear_units,
21993 schedule_unit, actual_hazard, potential_hazard,
21994 insn_unit, unit_last_insn, unit_tick,
21995 actual_hazard_this_instance, potential_hazard,
21996 schedule_unit, max_insn_queue_index_value): Remove.
21997 (MAX_INSN_QUEUE_INDEX): Removed, renamed throughout to
21998 max_insn_queue_index.
21999 * rtl.def (DEFINE_FUNCTION_UNIT): Remove.
22000 * doc/md.texi (Processor pipeline description): Remove
22001 references to old pipeline descriptions.
22002 (Automaton pipeline description): Merge with the above.
22003 (Old pipeline description, Comparison of the two descriptions):
22004 Remove.
22005
22006 * bt-load.c (migrate_btr_def): Remove references to
22007 use_pipeline_interface.
22008 * haifa-sched.c (insn_cost, schedule_insn,
22009 schedule_block, advance_one_cycle, sched_init,
22010 queue_to_ready, sched_finish): Likewise.
22011 * modulo-sched.c (sms_schedule, advance_one_cycle,
22012 ps_has_conflicts): Likewise.
22013 * sched-rgn.c (init_ready): Likewise.
22014 (debug_dependencies): Likewise, and remove an "if (1)".
22015 * target.h (use_dfa_pipeline_interface): Remove.
22016 * config/alpha/alpha.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
22017 * config/arc/arc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
22018 * config/arm/arm.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
22019 * config/c4x/c4x.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
22020 * config/frv/frv.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
22021 * config/i386/i386.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
22022 * config/ia64/ia64.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
22023 * config/iq2000/iq2000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
22024 * config/m32r/m32r.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
22025 * config/mcore/mcore.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
22026 * config/mips/mips.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
22027 * config/pa/pa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
22028 * config/rs6000/rs6000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
22029 * config/s390/s390.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
22030 * config/sh/sh.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
22031 * config/sparc/sparc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
22032 * config/v850/v850.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
22033 * config/xtensa/xtensa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
22034 * doc/tm.texi (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
22035
22036 2004-07-19 Roger Sayle <roger@eyesopen.com>
22037
22038 * rtlanal.c (reg_set_p): Add check for regs_invalidated_by_call.
22039
22040 2004-07-19 Jeff Law <law@redhat.com>
22041
22042 * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): New.
22043 (get_eq_expr_value): Use it. Simplify slightly.
22044
22045 2004-07-19 Maciej W. Rozycki <macro@linux-mips.org>
22046
22047 * config/mips/mips.md (mulsidi3_32bit_r4000): Fix the clobber list.
22048 (umulsidi3_32bit_r4000): Likewise.
22049
22050 2004-07-19 Nathan Sidwell <nathan@codesourcery.com>
22051
22052 * vec.h: Propagate location information properly.
22053 (VEC_T_iterate): Add result pointer parameter.
22054 (VEC_T_space): New.
22055 (VEC_T_reserve): Use it.
22056
22057 2004-07-19 Daniel Jacobowitz <dan@debian.org>
22058
22059 * Makefile.in (c-format.o): Depend on c-format.h.
22060 * c-format.h: New file.
22061 (struct format_char_info): Add CHAIN member.
22062 * c-format.c: Move some types and constants to c-format.h.
22063 (format_type_error): Set to -1.
22064 (struct function_format_info): Use an int for format_type.
22065 (decode_format_type): Return an int. Return format_type_error
22066 on error.
22067 (print_char_table, asm_fprintf_char_table, gcc_diag_char_table)
22068 (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table)
22069 (scan_char_table, time_char_table, monetary_char_table): Initialize
22070 CHAIN to NULL.
22071 (n_format_types): New variable.
22072 (check_format_info_main): Handle CHAIN in format_char_info.
22073 (handle_format_attribute): Handle TARGET_FORMAT_TYPES and
22074 TARGET_N_FORMAT_TYPES.
22075 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
22076 (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c.
22077 * config/sol2-c.c: New file.
22078 * config/t-sol2: New file.
22079 * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define.
22080 * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine
22081 TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES.
22082
22083 * doc/extend.texi (Target Format Checks): New section.
22084 (Function Attributes): Mention it.
22085 * doc/invoke.texi: Mention target format checks.
22086 * doc/sourcebuild.texi: Mention target format checks.
22087 * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and
22088 TARGET_FORMAT_TYPES.
22089
22090 2004-07-19 Andreas Krebbel <krebbel1@de.ibm.com>
22091
22092 * config/s390/s390-protos.h (s390_return_address_offset): Prototype
22093 added.
22094 * config/s390/s390.c (regclass_map initializer): Register 35 added to
22095 ADDR_REGS.
22096 (load_multiple_operation, store_multiple_operation): Removed
22097 pointless sanity check.
22098 (s390_decompose_address): Added check for return_address_pointer_rtx.
22099 (s390_return_addr_rtx): Use return_address_pointer_rtx for count == 0.
22100 (s390_return_address_offset): New function.
22101 * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Increased to 36.
22102 (FRAME_REGNO_P): Added check for register 35.
22103 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
22104 REG_ALLOC_ORDER): Appended entry for register 35.
22105 (REG_CLASS_CONTENTS): Adjusted class masks for register 35.
22106 (EH_RETURN_HANDLER_RTX): Use return_address_pointer_rtx.
22107 (RETURN_ADDRESS_POINTER_REGNUM): New macro.
22108 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Return address pointer
22109 is eliminable using stack pointer or hard frame pointer.
22110 (REGISTER_NAMES): Added name for register 35.
22111 * config/s390/s390.md ("load_multiple", "store_multiple"): Removed
22112 pointless sanity check.
22113
22114 2004-07-19 Roger Sayle <roger@eyesopen.com>
22115
22116 * fold-const.c (tree_expr_nonzero_p): Add function prototype.
22117 (fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
22118 fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
22119 (fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
22120 of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
22121 (fold_relational_const): Tidy up handling of floating point
22122 comparisons by calling real_compare. Remove tree_expr_nonzero_p
22123 transformation; fold_relational_const assumes constant operands.
22124
22125 2004-07-19 Gabriel Dos Reis <gdr@integrable-solution.net>
22126
22127 * doc/sourcebuild.texi: Add libcpp, now that CPP has its own
22128 directory.
22129
22130 2004-07-19 Joseph S. Myers <jsm@polyomino.org.uk>
22131
22132 * c-tree.h (struct c_expr): Define.
22133 (C_SET_EXP_ORIGINAL_CODE): Remove.
22134 (parser_build_binary_op, build_compound_expr): Update prototypes.
22135 * c-parse.in (%union): Add exprtype.
22136 (FUNC_NAME): Mark as ttype.
22137 (expr, expr_no_commas, cast_expr, unary_expr, primary): Change to
22138 exprtype.
22139 (expr): Update. Define directly in terms of expr_no_commas
22140 instead of using nonnull_exprlist.
22141 (nonnull_exprlist, unary_expr, cast_expr, expr_no_commas, primary,
22142 offsetof_member_designator, typespec_nonreserved_nonattr, init,
22143 initval, designator, component_declarator,
22144 component_notype_declarator, enumerator, array_declarator,
22145 condition, exexpr, switch_statement, stmt_nocomp, stmt,
22146 nonnull_asm_operands, ivar_declarator, receiver): Update. Don't
22147 set C_EXP_ORIGINAL_CODE. Use TREE_NO_WARNING for assignments
22148 where appropriate.
22149 * c-common.h (C_EXP_ORIGINAL_CODE): Remove.
22150 * c-common.c (c_common_truthvalue_conversion): Don't check
22151 C_EXP_ORIGINAL_CODE.
22152 * c-typeck.c (parser_build_binary_op): Use c_expr structures.
22153 Don't use C_EXP_ORIGINAL_CODE.
22154 (default_conversion, default_function_array_conversion): Don't use
22155 C_EXP_ORIGINAL_CODE. Preserve TREE_NO_WARNING.
22156 (internal_build_compound_expr): Merge into build_compound_expr.
22157 (build_compound_expr): Take two operands instead of a TREE_LIST.
22158 * objc/objc-act.c (get_super_receiver): Update calls to
22159 build_compound_expr.
22160
22161 2004-07-18 Paolo Bonzini <bonzini@gnu.org>
22162
22163 * config/sh/sh.c (sh_use_dfa_interface): Remove.
22164 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to
22165 hook_int_void_1.
22166 * config/sh/sh.md: Extract pipeline descriptions
22167 into separate files.
22168 * config/sh/sh1.md: New file, extracted from sh.md.
22169 * config/sh/sh4.md: New file, extracted from sh.md.
22170 * config/sh/shmedia.md: New file, extracted from sh.md
22171 and rewritten using new-style pipeline description.
22172
22173 2004-07-18 Zack Weinberg <zack@codesourcery.com>
22174
22175 * config/pa/pa.md: Delete the two remaining define_peephole
22176 patterns.
22177
22178 2004-07-18 Steven Bosscher <stevenb@suse.de>
22179 Joseph S. Myers <jsm@polyomino.org.uk>
22180
22181 * c-common.c (c_common_truthvalue_conversion): Don't warn if
22182 TREE_NO_WARNING is set.
22183
22184 2004-07-18 Roger Sayle <roger@eyesopen.com>
22185
22186 * builtins.c (simplify_builtin_memcmp, simplify_builtin_strcmp,
22187 simplify_builtin_strncmp): Delete.
22188 (fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
22189 Change argument to accept an arglist instead of an "exp". Assume
22190 that the return type is always integer_type_node. Copy missing
22191 transformations from their now obsolete simplify_builtin_*
22192 equivalents.
22193 (fold_builtin_1): Pass arglist instead of exp to fold_builtin_memcmp,
22194 fold_builtin_strcmp and fold_builtin_strncmp.
22195 (simplify_builtin): Call fold_builtin_memcmp, fold_builtin_strcmp
22196 and fold_builtin_strncmp instead of simplify_builtin_memcmp,
22197 simplify_builtin_strcmp and simplify_builtin_strncmp respectively.
22198
22199 2004-07-18 Daniel Jacobowitz <dan@debian.org>
22200
22201 * Makefile.in (tree-alias-common.o): Update dependencies.
22202
22203 2004-07-17 Sebastian Pop <pop@cri.ensmp.fr>
22204
22205 * cfgloop.c (flow_loop_nested_p): Fix comment.
22206
22207 2004-07-17 Jason Merrill <jason@redhat.com>
22208
22209 PR c++/16115
22210 * stor-layout.c (relayout_decl): New fn.
22211 * tree.h: Declare it.
22212 (DECL_BY_REFERENCE): New macro.
22213
22214 2004-07-17 Eric Botcazou <ebotcazou@act-europe.fr>
22215
22216 * libgcc2.c (__enable_execute_stack): New symbol.
22217 * libgcc-std.ver (GCC_3.4.2): New version. Inherit from GCC_3.4
22218 and declare __enable_execute_stack.
22219 * mklibgcc.in (lib2funcs): Add _enable_execute_stack.
22220 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): ANSIfy.
22221 * config/sol2.h (TRANSFER_FROM_TRAMPOLINE): Rename into
22222 ENABLE_EXECUTE_STACK.
22223 * config/alpha/alpha.c (alpha_initialize_trampoline): Conditionalize
22224 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
22225 * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Rename into
22226 ENABLE_EXECUTE_STACK.
22227 * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
22228 * config/i386/i386.c (x86_initialize_trampoline): Conditionalize
22229 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
22230 * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Rename into
22231 ENABLE_EXECUTE_STACK.
22232 * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
22233 * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
22234 * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
22235 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
22236 * config/sparc/sparc.c (sparc_initialize_trampoline): Conditionalize
22237 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
22238 (sparc64_initialize_trampoline): Likewise.
22239 * doc/tm.texi (trampolines): Add ENABLE_EXECUTE_STACK macro.
22240
22241 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
22242
22243 * langhooks.h (builtin_function): New langhook.
22244 * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New.
22245 (LANG_HOOKS_INITIALIZER): Update.
22246 * tree.h (builtin_function): Remove.
22247 * doc/tm.texi: Update.
22248 * c-tree.h (builtin_function): Declare.
22249 * c-common.c, config/alpha/alpha.c, config/arm/arm.c,
22250 config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c,
22251 config/ia64/ia64.c, config/iq2000/iq2000.c,
22252 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
22253 config/stormy16/stormy16.c: All callers of builtin_function
22254 changed.
22255
22256 2004-07-17 Andrew Pinski <pinskia@physics.uc.edu>
22257
22258 PR target/16556
22259 * config/i386/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
22260 Remove white space after the backslash.
22261
22262 2004-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
22263
22264 PR rtl-optimization/16294
22265 * resource.c (return_insn_p): New predicate.
22266 (mark_target_live_regs): Use it. Special-case return insns.
22267 (init_resource_info): Use it. Don't scan the epilogue past
22268 a return.
22269
22270 2004-07-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
22271
22272 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Do not
22273 destroy dominance information.
22274 * passes.c (rest_of_handle_loop2): Free dominance information.
22275 * tree-cfg.c (cleanup_tree_cfg): Remove unreachable blocks before
22276 jump threading.
22277 (thread_jumps): Update dominance information and remove unreachable
22278 blocks.
22279 * tree-ssa-phiopt.c (replace_phi_with_stmt): Update dominance
22280 information and remove the unreachable block.
22281
22282 2004-07-17 Graham Stott <graham.stott@btinternet.com>
22283
22284 * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
22285
22286 2004-07-17 Toon Moene <toon@moene.indiv.nluug.nl>
22287
22288 * doc/sourcebuild.texi: Remove libf2c entry.
22289
22290 2004-07-17 Paolo Bonzini <bonzini@gnu.org>
22291
22292 * config/i386/i386.md (movv16qi_internal): Fix typo.
22293
22294 2004-07-17 Steven Bosscher <stevenb@suse.de>
22295
22296 * final.c (final_scan_insn): Fix broken commit from previous
22297 patch.
22298
22299 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
22300
22301 * c-typeck.c (parser_build_binary_op): Condition warnings for
22302 X<=Y<=Z on -Wparentheses instead of -Wextra.
22303 * doc/invoke.texi: Update. Document that most of -Wparentheses is
22304 supported for C only.
22305
22306 2004-07-17 Steven Bosscher <stevenb@suse.de>
22307
22308 * cfgcleanup.c (try_simplify_condjump): Don't remove line
22309 notes to avoid unreachable code warnings.
22310 * toplev.c (backend_init): Don't emit line notes for
22311 unreachable code warnings.
22312
22313 * combine.c (distribute_notes): Don't distribute a
22314 REG_VTABLE_REF note.
22315 * final.c (final_scan_insn): Don't handle it.
22316 * rtl.c (reg_note_name): Remove it.
22317 * rtl.h (enum reg_node): Dito.
22318
22319 * emit-rtl.c (force_line_numbers, restore_line_number_status):
22320 Remove.
22321 * rtl.h (force_line_numbers, restore_line_number_status):
22322 Remove prototypes.
22323
22324 * stmt.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Move...
22325 * tree-eh.c (using_eh_for_cleanups_p): ...here. Make static.
22326 (using_eh_for_cleanups): Also moved here.
22327
22328 * expr.c (expand_expr_real_1) <CASE_LABEL_EXPR>: Die if we see one.
22329 <SWITCH_EXPR>: Die if we have a non-NULL SWITCH_BODY. Update calls
22330 to expand_start_case and add_case_node.
22331 * stmt.c (struct nesting): Cleanup unused fields condition_code,
22332 last_unconditional_cleanup, nominal_type, printname, and
22333 line_number_status.
22334 (struct fixup_goto): Remove.
22335 (struct stmt_status): Remove x_goto_fixup_chain field.
22336 (goto_fixup_chain): Remove.
22337 (strip_default_case_nodes, group_case_nodes, emit_jump_if_reachable,
22338 pushcase, pushcase_range): Remove.
22339 (expand_start_bindings_and_block): Don't set unused fields in
22340 the nesting stack.
22341 (expand_start_case, add_case_node): Cleanup unused formal arguments.
22342 (expand_end_case_type): Don't simplify the case-list. Use emit_jump
22343 instead of emit_jump_if_reachable.
22344 (emit_case_nodes): Likewise.
22345 * tree-cfg.c (group_case_labels, cleanup_dead_labels): No longer
22346 static.
22347 (update_eh_label): Work around left-over exception handing regions.
22348 * tree-flow.h (group_case_labels, cleanup_dead_labels): Add protos.
22349 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): New function.
22350 (pass_cleanup_cfg_post_optimizing): New pass.
22351 (init_tree_optimization_passes): Run the new pass after all
22352 optimizations.
22353 * tree.h (pushcase, pushcase_range): Remove prototypes.
22354 (expand_start_case, add_case_node): Update prototypes.
22355
22356 2004-07-16 Krister Walfridsson <cato@df.lth.se>
22357
22358 * tree-inline.c (estimate_num_insns_1): Correct increase of count.
22359
22360 2004-07-16 Richard Henderson <rth@redhat.com>
22361
22362 * builtins.c (std_expand_builtin_va_arg): Remove.
22363 (expand_builtin_va_arg): Remove.
22364 * expr.h: Don't declare them.
22365 * gimplify.c (mark_decls_volatile_r): Remove.
22366 (copy_if_shared_r): Don't call it.
22367 * target-def.h: Don't test EXPAND_BUILTIN_VA_ARG.
22368 * expr.c (expand_expr_real_1): Don't handle VA_ARG_EXPR.
22369 * gimple-low.c (lower_stmt): Likewise.
22370 * tree-cfg.c (cfg_remove_useless_stmts_bb): Likewise.
22371 * tree-gimple.c (is_gimple_tmp_rhs, is_gimple_stmt): Likewise.
22372 * tree-ssa-operands.c (get_expr_operands): Likewise.
22373 * doc/tm.texi (TARGET_GIMPLIFY_VA_ARG_EXPR): Don't mention
22374 EXPAND_BUILTIN_VA_ARG.
22375 * system.h (EXPAND_BUILTIN_VA_ARG): Poison.
22376 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/i386/i386.h,
22377 config/ia64/ia64.h, config/rs6000/rs6000.h, config/s390/s390.h,
22378 config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Remove.
22379
22380 2004-07-16 Daniel Berlin <dberlin@dberlin.org>
22381
22382 * tree-ssa-pre.c (insert_aux): Break out if we hit
22383 a critical edge.
22384
22385 2004-07-16 Richard Henderson <rth@redhat.com>
22386
22387 * basic-block.h (remove_fake_exit_edges): Declare.
22388 * cfganal.c (remove_fake_predecessors): Rename from
22389 remove_fake_successors; iterate over predecessors.
22390 (remove_fake_exit_edges): New.
22391 * cfgcleanup.c (try_optimize_cfg): Use it.
22392 * gcse.c (one_pre_gcse_pass, store_motion): Likewise.
22393 * predict.c (estimate_probability): Likewise.
22394 (tree_estimate_probability, note_prediction_to_br_prob): Likewise.
22395 * tree-cfg.c (make_edges): Likewise.
22396 * tree-ssa-pre.c (fini_pre): Likewise.
22397 * profile.c (instrument_edges): Don't remove_fake_edges.
22398 (branch_prob): Do it earlier here.
22399
22400 2004-07-16 Richard Henderson <rth@redhat.com>
22401
22402 * tree-ssa-operands.c (get_expr_operands): Fix 2004-07-15
22403 switchification wrt CONSTRUCTOR. Document the reason.
22404
22405 2004-07-16 Frank Ch. Eigler <fche@redhat.com>
22406
22407 * tree-mudflap.c (mf_file_function_line_tree): Correct typo
22408 that prevented descriptive __mf_check source location strings.
22409
22410 2004-07-16 Richard Henderson <rth@redhat.com>
22411
22412 * tree-def (WITH_SIZE_EXPR): New.
22413 * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
22414 * expr.c (expand_expr_real_1): Likewise.
22415 * gimplify.c (maybe_with_size_expr): New.
22416 (gimplify_arg, gimplify_modify_expr): Use it.
22417 (gimplify_modify_expr_to_memcpy): Take size parameter.
22418 (gimplify_modify_expr_to_memset): Likewise.
22419 (gimplify_expr): Handle WITH_SIZE_EXPR.
22420 * tree-alias-common.c (find_func_aliases): Likewise.
22421 * tree-eh.c (tree_could_trap_p): Likewise.
22422 (tree_could_throw_p): Likewise.
22423 * tree-gimple.c (is_gimple_lvalue): Likewise.
22424 (get_call_expr_in): Likewise.
22425 * tree-inline.c (estimate_num_insns_1): Likewise.
22426 (expand_calls_inline): Likewise.
22427 * tree-nested.c (convert_call_expr): Likewise.
22428 * tree-pretty-print.c (dump_generic_node): Likewise.
22429 * tree-sra.c (sra_walk_expr): Likewise.
22430 * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
22431 * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
22432 * tree-ssa-operands.c (get_expr_operands): Likewise.
22433 * tree-tailcall.c (find_tail_calls): Likewise.
22434
22435 * calls.c (expand_call): Reset old_stack_allocated after
22436 calling emit_stack_restore.
22437
22438 2004-07-16 Richard Henderson <rth@redhat.com>
22439
22440 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING,
22441 lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
22442 * langhooks.c (lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
22443 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
22444 copy_res_decl_for_inlining.
22445
22446 * tree-inline.c (declare_return_variable): New modify_dest argument.
22447 Use it as the return value, when possible or manditory. Handle
22448 TREE_ADDRESSABLE types.
22449 (expand_call_inline): Extract MODIFY_EXPR lhs for call. Simplify
22450 replacement of CALL_EXPR.
22451
22452 2004-07-16 Richard Henderson <rth@redhat.com>
22453
22454 * tree-flow.h (struct var_ann_d): Remove has_hidden_use.
22455 * gimple-low.c (expand_var_p): Don't check it.
22456 * tree-ssa-alias.c (setup_pointers_and_addressables): Likewise.
22457 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
22458 * tree-ssa-operands.c (add_stmt_operand): Likewise.
22459 * tree-dfa.c (find_hidden_use_vars, find_hidden_use_vars_r): Kill.
22460 (find_referenced_vars): Don't call them.
22461 * tree-flow-inline.h (has_hidden_use, set_has_hidden_use): Kill.
22462
22463 2004-07-16 Richard Henderson <rth@redhat.com>
22464
22465 * function.c (pass_by_reference): True for all variable sized types.
22466
22467 2004-07-16 Sebastian Pop <pop@cri.ensmp.fr>
22468
22469 * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
22470 * tree-pretty-print.c: Include tree-chrec.h.
22471 (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
22472 and POLYNOMIAL_CHREC nodes.
22473
22474 2004-07-16 Steve Ellcey <sje@cup.hp.com>
22475
22476 * builtins.c (expand_builtin_stpcpy): Do not create temporary
22477 reg with VOIDmode.
22478
22479 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
22480
22481 * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
22482
22483 2004-07-16 Andreas Krebbel <krebbel1@de.ibm.com>
22484
22485 * config/s390/s390.md: Changed every occurence of BASE_REGISTER
22486 to BASE_REGNUM.
22487 * config/s390/s390.c: Likewise.
22488 * config/s390/s390.h: Likewise.
22489
22490 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22491
22492 * config/mips/mips.md (addsi3, adddi3): Remove special handling
22493 of $sp adds. Remove REGNO checks from mips16 patterns.
22494
22495 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22496
22497 * config/mips/mips.md: Delete outdated comment.
22498
22499 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22500
22501 * config/mips/mips.c (get_float_compare_codes): Delete.
22502 (mips_emit_compare): New function, mostly extracted from
22503 get_float_compare_codes and gen_conditional_branch.
22504 (gen_conditional_branch, gen_conditional_move): Use it.
22505
22506 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
22507
22508 * genautomata.c (add_vect): Speedup by using integers as
22509 bit-vectors for walking through the comb_vect and finding
22510 a match.
22511
22512 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22513
22514 * config/mips/mips.c (mips_zero_if_equal): Only use XORs if the second
22515 operand is an uns_arith_operand; use subtraction otherwise.
22516 * config/mips/mips.md (cmpsi, cmpdi): Allow any nonmemory_operand,
22517 not just arith_operands.
22518
22519 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22520
22521 * config/mips/mips-protos.h (gen_int_relational): Delete.
22522 (mips_emit_scc): Declare.
22523 * config/mips/mips.c (internal_test): Delete.
22524 (sle_operand, sleu_operand): New functions.
22525 (map_test_to_internal_test, gen_int_relational): Delete.
22526 (mips_emit_binary, mips_relational_operand_ok_p)
22527 (mips_emit_int_relational, mips_zero_if_equal)
22528 (mips_emit_scc): New functions.
22529 (gen_conditional_branch): Rework to use mips_emit_int_relational.
22530 * config/mips/mips.h (PREDICATE_CODES): Add sle_operand and
22531 sleu_operand.
22532 * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
22533 (sltu, sleu): Use mips_emit_scc.
22534 (*sge_[sd]i, *sgeu_[sd]i): New patterns.
22535 (*sle_[sd]i, *sle_[sd]i_mips16): Use sle_operand.
22536 (*sleu_[sd]i, *sleu_[sd]i_mips16): Use sleu_operand.
22537
22538 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22539
22540 * config/mips/mips.md (*sgt_di_mips16): Fix destination constraint.
22541
22542 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22543
22544 * config/mips/mips.md (*seq_[sd]i): Renamed from seq_[sd]i_zero.
22545 (*sne_[sd]i): Likewise sne_[sd]i_zero.
22546 (*sgt_[sd]i): ...and sgt_[sd]i.
22547 (*slt_[sd]i): ...and slt_[sd]i.
22548 (*sgtu_[sd]i): ...and sgtu_[sd]i.
22549 (*sltu_[sd]i): ...and sltu_[sd]i.
22550 (*sleu_[sd]i): ...and sleu_[sd]i_const.
22551 Name previously unnamed mips16 patterns. Formatting fixes.
22552
22553 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22554
22555 * config/mips/mips.c (cmp_operands): Renamed from branch_cmp.
22556 (branch_type): Delete.
22557 (gen_conditional_branch, gen_conditional_move)
22558 (mips_gen_conditional_trap): Update after name change. Get the
22559 comparison mode from cmp_operands[0].
22560 * config/mips/mips.h (cmp_type, branch_type): Delete.
22561 (cmp_operands): Renamed from branch_cmp.
22562 * config/mips/mips.md (cmpsi, cmpdi, cmpsf, cmpdf): Update after
22563 name change. Don't set branch_type.
22564 (seq, sne, sgt, sge, slt, sle, sgtu, sgeu, sltu, sleu): Check the
22565 mode class of cmp_operands[0] rather than branch_type. Update after
22566 name change.
22567
22568 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22569
22570 * config/mips/mips.c (mips_rtx_costs): In mips16 code, set the cost
22571 of 0...255 to 0 when inside a SET.
22572
22573 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
22574
22575 * config/mips/mips.md: Remove mips16 define_peepholes.
22576
22577 2004-07-16 Daniel Berlin <dberlin@dberlin.org>
22578
22579 * tree-ssa-pre.c (init_pre): Connect infinite loops to exit.
22580 (fini_pre): Remove fake edges.
22581
22582 2004-07-15 Richard Henderson <rth@redhat.com>
22583
22584 * tree-ssa-operands.c (get_expr_operands): Use a switch. Split out...
22585 (get_indirect_ref_operands, get_call_expr_operands): ... these.
22586
22587 2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
22588
22589 * vec.h (VEC_address): New function.
22590
22591 2004-07-14 Jason Merrill <jason@redhat.com>
22592
22593 PR middle-end/15885
22594 * gimplify.c (gimplify_arg): New fn, split out from...
22595 (gimplify_call_expr): Here. Special-case BUILT_IN_VA_START.
22596
22597 2004-07-15 Roman Zippel <zippel@linux-m68k.org>
22598
22599 * config/m68k/m68k.c (output_move_qimode): Abort on an attempt to
22600 generate code which is generated by pushqi1 now
22601 * config/m68k/m68k.h (MOVE_BY_PIECES_P): Remove.
22602
22603 2004-07-15 Roman Zippel <zippel@linux-m68k.org>
22604
22605 * combine.c (simplify_set): match the mode of the constant 0 with
22606 the tested operand to match the compare behaviour and the
22607 simplify_relational_operation() expectation.
22608
22609 2004-07-15 Aldy Hernandez <aldyh@redhat.com>
22610
22611 * config/rs6000/rs6000.md ("bunordered"): Disable for e500.
22612 ("bordered"): Same.
22613
22614 2004-07-15 Aldy Hernandez <aldyh@redhat.com>
22615
22616 * config/rs6000/rs6000.md ("*cceq_ior_compare"): Allow
22617 unconditionally.
22618 * config/rs6000/spe.md ("e500_cceq_ior_compare"): Remove.
22619
22620 2004-07-15 Richard Sandiford <rsandifo@redhat.com>
22621
22622 * config/mips/mips.c (mips_adjust_insn_length): Fix handling of
22623 calls in mips16 code.
22624
22625 2004-07-15 Richard Sandiford <rsandifo@redhat.com>
22626
22627 * config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
22628 the destination of the li as well as for the neg.
22629
22630 2004-07-15 Frank Ch. Eigler <fche@redhat.com>
22631
22632 g++/15861
22633 * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument.
22634 * cgraph.h: Update declaration.
22635 * c-decl.c (build_cdtor): Update call with default priority.
22636 * coverage.c (create_coverage): Ditto.
22637 * tree-mudflap.c (mf_init_fndecl): New tree.
22638 (mudflap_init): Set it.
22639 (mudflap_register_call): Arrange to call __mf_init before the first
22640 __mf_register call.
22641 (mudflap_finish_file): Mark the mudflap static initializer as extra
22642 high priority, to beat all C++ static constructors.
22643
22644 2004-07-15 Jeff Law <law@redhat.com>
22645
22646 * loop.c (check_insn_for_givs): Restore check for code labels that was
22647 accidentally deleted by a recent checkin.
22648
22649 2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
22650
22651 * vec.h (VEC_T_truncate): Allow truncation of an empty vector.
22652 (VEC_T_quick_insert, VEC_T_ordered_remove): Fix sizeof(T) thinko.
22653
22654 2004-07-14 Richard Henderson <rth@redhat.com>
22655
22656 * print-tree.c (print_node): Fix casts last change.
22657
22658 2004-07-15 Paul Brook <paul@codesourcery.com>
22659
22660 * dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO
22661 to TARGET_UNWIND_INFO.
22662 * except.c (output_function_exception_table): Ditto.
22663 * except.h: Ditto.
22664 * opts.c (decode_options): Ditto.
22665 * passes.c (rest_of_handle_final): Ditto.
22666 * final.c (final_start_function): Ditto.
22667 (final_scan_insn, final_scan_insn): Replace IA64_UNWIND_EMIT with
22668 target hook.
22669 * targhooks.h (default_unwind_emit): Declare.
22670 * targhooks.c (default_unwind_emit): New function.
22671 * target-def.h: Define and use TARGET_UNWIND_EMIT.
22672 * target.h (struct gcc_target): Add unwind_emit.
22673 * config/ia64/ia64.c (TARGET_UNWIND_EMIT): Define.
22674 * config/ia64/ia64.h: Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO.
22675 Remove IA64_UNWIND_EMIT.
22676 * doc/tm.texi: Document TARGET_UNWIND_EMIT and TARGET_UNWIND_INFO.
22677
22678 2004-07-14 Richard Henderson <rth@redhat.com>
22679
22680 * print-tree.c (print_node): Handle SSA_NAME.
22681
22682 2004-07-14 James E Wilson <wilson@specifixinc.com>
22683
22684 PR target/16325
22685 * config/mips/mips.h (STARTING_FRAME_OFFSET): When flag_profile_value
22686 and ! TARGET_64BIT, include REG_PARM_STACK_SPACE.
22687
22688 2004-07-15 Jakub Jelinek <jakub@redhat.com>
22689
22690 * expr.c (expand_assignment): Reenable bitfield += optimizations.
22691 Use alias set 0 for memory, do proper mode calculations and adjust
22692 address for memories.
22693
22694 2004-07-14 Per Bothner <per@bothner.com>
22695
22696 * input.h: If USE_MAPPED_LOCATION, define separate expanded_location
22697 structure with extra column field.
22698 * tree.c (expand_location): Also fill in column field.
22699 * gengtype-lex.l: Ignore expanded_location typedef, sinze gengtype
22700 gets confused by the two conditionally-compiled definitions.
22701
22702 2004-07-14 Eric Christopher <echristo@redhat.com>
22703
22704 * calls.c (expand_call): Fix typo in comment.
22705
22706 2004-07-14 Steve Ellcey <sje@cup.hp.com>
22707
22708 * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
22709 comparision of TFmode.
22710
22711 2004-07-14 Richard Henderson <rth@redhat.com>
22712
22713 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
22714 (alpha_gimplify_va_arg): ... handling here. Use pass_by_reference.
22715 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Use pass_by_reference.
22716 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
22717 * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
22718 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
22719 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
22720 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
22721 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
22722
22723 2004-07-14 Mike Stump <mrs@apple.com>
22724
22725 * config/darwin.h (WINT_TYPE): Define to be int to match
22726 system header files.
22727
22728 2004-07-14 Bob Wilson <bob.wilson@acm.org>
22729
22730 * config/xtensa/xtensa.c (function_arg_advance): Check for args
22731 that must be passed in the stack.
22732 (xtensa_gimplify_va_arg_expr): Skip special-case padding for small
22733 arguments if the size is not a constant.
22734
22735 2004-07-14 Per Bothner <per@bothner.com>
22736
22737 * c-typeck.c (emit_side_effect_warnings): Use EXPR_HAS_LOCATION
22738 instead of EXPR_LOCUS in a boolean context, which is always true
22739 if --enable-mapped-location.
22740 * stmt.c (warn_if_unused_value): Likewise. Also use EXPR_LOCATION.
22741
22742 2004-07-14 Richard Henderson <rth@redhat.com>
22743
22744 * dominance.c (struct dom_info): Add fake_exit_edge.
22745 (init_dom_info): Allocate it.
22746 (free_dom_info): Free it.
22747 (calc_dfs_tree): Set it. Handle noreturn and infinite loops
22748 in two passes.
22749 (calc_idoms): Honor fake_exit_edge.
22750
22751 2004-07-13 Jason Merrill <jason@redhat.com>
22752
22753 * tree-gimple.c (is_gimple_reg_rhs, is_gimple_mem_rhs): New fns.
22754 (rhs_test_for): New fn.
22755 (is_gimple_tmp_rhs): Rename from is_gimple_rhs.
22756 * tree-gimple.h: Declare them.
22757 * gimplify.c (gimplify_modify_expr): Use the new fns.
22758
22759 2004-07-14 Richard Henderson <rth@redhat.com>
22760
22761 * config/arm/arm-protos.h (arm_va_arg): Remove.
22762 * config/arm/arm.c (arm_va_arg): Remove.
22763 (arm_init_expanders): Fix alignment of arg_pointer_rtx.
22764 * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG): Remove.
22765
22766 2004-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22767
22768 * pa.c (fix_range): New function to mark a range(s) of registers as
22769 fixed registers.
22770 (override_options): Call fix_range if the -mfixed-range option string
22771 is not empty.
22772 * pa.h (TARGET_OPTIONS): Add -mfixed-range option.
22773 * doc/invoke.texi (-mfixed-range): Document new option.
22774
22775 2004-07-14 David Edelsohn <edelsohn@gnu.org>
22776
22777 * config/rs6000/rs6000.c (function_arg_padding): Do not pad SFmode
22778 for TARGET_64BIT.
22779 (rs6000_gimplify_va_arg): Use size_int instead of build_int_2.
22780
22781 2004-07-14 Roger Sayle <roger@eyesopen.com>
22782
22783 * expmed.c (expand_sdiv_pow2): New function to expand signed division
22784 by a positive power of two, split out from expand_divmod. Provide
22785 an alternate implementation when shifts are expensive. Lower the
22786 threshold for using a branchless implementation to BRANCH_COST >= 2.
22787 (expand_divmod): Call expand_sdiv_pow2 for suitable divisions.
22788
22789 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
22790
22791 * tree-dfa.c (make_rename_temp): *Really* work just
22792 like create_tmp_var if called while outside SSA form.
22793
22794 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
22795
22796 * config/s390/s390.md ("udivsi3"): Ensure trap is generated
22797 for division by zero.
22798 ("umodsi3"): Likewise.
22799
22800 2004-07-14 Richard Sandiford <rsandifo@redhat.com>
22801
22802 * config/mips/mips.c (mips_output_move): When generating mips16 code,
22803 force loads of negative constants to be split.
22804 * config/mips/mips.md (*movhi_mips16, *movqi_mips16): Likewise.
22805 Generalize SImode li/neg splitter to cope with other modes.
22806
22807 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
22808
22809 * expmed.c: Remove more references to QUEUED in the comments.
22810 * expr.c: Likewise.
22811
22812 2004-07-14 Richard Sandiford <rsandifo@redhat.com>
22813
22814 Revert:
22815 2004-07-13 Richard Henderson <rth@redhat.com>
22816 * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes
22817 correctly.
22818
22819 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
22820
22821 * tree-dfa.c (make_rename_temp): Work just like
22822 create_tmp_var if called while outside SSA form.
22823
22824 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
22825
22826 * expr.c (enqueue_insn, finish_expr_for_function,
22827 protect_from_queue, queued_subexp_p, mark_queue,
22828 emit_insns_enqueued_after_mark, emit_queue,
22829 expand_increment): Remove.
22830 (store_constructor): Expand increment as an assignment.
22831 (expand_expr_real_1 <case PREINCREMENT_EXPR,
22832 case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
22833 case POSTDECREMENT_EXPR>): Abort.
22834 * expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
22835 QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
22836 protect_from_queue, emit_queue, queued_subexp_p): Remove.
22837 * function.h (pending_chain, x_pending_chain): Remove.
22838 * rtl.def (QUEUED): Remove.
22839
22840 * emit-rtl.c (copy_insn_1, copy_most_rtx,
22841 set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
22842 * genattrtab.c (attr_copy_rtx, clear_struct_flag,
22843 encode_units_mask): Likewise.
22844 * local-alloc.c (equiv_init_varies_p): Likewise.
22845 * rtl.c (copy_rtx): Likewise.
22846 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
22847 * simplify-rtx.c (simplify_gen_subreg): Likewise.
22848 * config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
22849
22850 * builtins.c (expand_builtin, expand_builtin_apply,
22851 expand_builtin_mathfn, expand_builtin_mathfn_2,
22852 expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
22853 Remove calls to emit_queue and protect_from_queue.
22854 * calls.c (expand_call, precompute_arguments,
22855 precompute_register_parameters, rtx_for_function_call,
22856 store_one_arg): Likewise.
22857 * dojump.c (do_compare_and_jump, do_jump): Likewise.
22858 * explow.c (memory_address): Likewise.
22859 * expmed.c (clear_by_pieces_1, clear_storage,
22860 clear_storage_via_libcall, emit_group_load,
22861 emit_group_store, emit_store_flag,
22862 expand_expr_real_1, store_by_pieces,
22863 store_constructor, store_expr, try_casesi,
22864 try_tablejump): Likewise.
22865 * function.c (expand_pending_sizes): Likewise.
22866 * optabs.c (emit_cmp_and_jump_insns,
22867 emit_conditional_add, emit_conditional_move,
22868 expand_fix, expand_float, prepare_cmp_insn): Likewise.
22869 * stmt.c (emit_case_bit_tests,
22870 expand_asm_expr, expand_computed_goto,
22871 expand_decl_init, expand_end_case_type,
22872 expand_end_stmt_expr, expand_expr_stmt_value,
22873 expand_return, expand_start_case,
22874 optimize_tail_recursion): Likewise.
22875 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
22876 * config/s390/s390.c (s390_expand_cmpmem): Likewise.
22877
22878 2004-07-14 Ben Elliston <bje@au.ibm.com>
22879
22880 * vec.h: Comment fix.
22881
22882 2004-07-13 Richard Henderson <rth@redhat.com>
22883
22884 * target.h (struct gcc_target): Add calls.pass_by_reference.
22885 * target-def.h (TARGET_PASS_BY_REFERENCE): New.
22886 * function.c (pass_by_reference): Use the hook.
22887 * system.h (FUNCTION_ARG_PASS_BY_REFERENCE): Poison.
22888 * targhooks.c, targhooks.h (hook_pass_by_reference_false): New.
22889 (hook_pass_by_reference_must_pass_in_stack): New.
22890 * config/alpha/alpha.c (function_arg): Don't query pass-by-ref.
22891 (alpha_pass_by_reference): New.
22892 (TARGET_PASS_BY_REFERENCE): New.
22893 * config/alpha/alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22894 * config/arc/arc.c (arc_pass_by_reference): New.
22895 (TARGET_PASS_BY_REFERENCE): New.
22896 * config/arc/arc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22897 (FUNCTION_ARG_CALLEE_COPIES): True.
22898 * config/arm/arm-protos.h (arm_function_arg_pass_by_reference): Remove.
22899 * config/arm/arm.c (TARGET_PASS_BY_REFERENCE): New.
22900 (arm_pass_by_reference): Rename from arm_function_arg_pass_by_reference.
22901 * config/arm/arm.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22902 * config/c4x/c4x.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22903 * config/cris/cris.c (cris_pass_by_reference): New.
22904 (TARGET_PASS_BY_REFERENCE): New.
22905 * config/cris/cris.h (FUNCTION_ARG): Don't query pass-by-ref.
22906 (FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): Likewise.
22907 (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22908 * config/fr30/fr30.c (TARGET_PASS_BY_REFERENCE): New.
22909 * config/fr30/fr30.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22910 * config/frv/frv-protos.h (frv_function_arg_pass_by_reference): Kill.
22911 * config/frv/frv.c (TARGET_PASS_BY_REFERENCE): New.
22912 (frv_function_arg_pass_by_reference): Remove.
22913 * config/frv/frv.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22914 * config/i386/i386-protos.h (function_arg_pass_by_reference): Remove.
22915 * config/i386/i386.c (TARGET_PASS_BY_REFERENCE): New.
22916 (ix86_pass_by_reference): Rename from function_arg_pass_by_reference.
22917 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22918 * config/ia64/ia64-protos.h (ia64_function_arg_pass_by_reference): Kill.
22919 * config/ia64/ia64.c (TARGET_PASS_BY_REFERENCE): New.
22920 (ia64_pass_by_reference): Rename from
22921 ia64_function_arg_pass_by_reference.
22922 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22923 * config/ip2k/ip2k.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22924 * config/iq2000/iq2000-protos.h (function_arg_pass_by_reference): Kill.
22925 * config/iq2000/iq2000.c (TARGET_PASS_BY_REFERENCE): New.
22926 (iq2000_pass_by_reference): Rename from function_arg_pass_by_reference.
22927 * config/iq2000/iq2000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22928 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
22929 * config/m32r/m32r-protos.h (m32r_pass_by_reference): Remove.
22930 * config/m32r/m32r.c (TARGET_PASS_BY_REFERENCE): New.
22931 (m32r_pass_by_reference): Adjust prototype. Make static.
22932 Handle mode sizes correctly.
22933 * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22934 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c
22935 (m68hc11_function_arg_pass_by_reference): Remove.
22936 * config/m68hc11/m68hc11.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22937 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
22938 * config/mcore/mcore.c (TARGET_PASS_BY_REFERENCE): New.
22939 * config/mcore/mcore.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22940 * config/mips/mips-protos.h (function_arg_pass_by_reference): Remove.
22941 * config/mips/mips.c (TARGET_PASS_BY_REFERENCE): New.
22942 (mips_va_arg): Use pass_by_reference.
22943 (mips_pass_by_reference): Rename from function_arg_pass_by_reference.
22944 Handle mode sizes correctly.
22945 * config/mips/mips.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22946 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
22947 * config/mmix/mmix-protos.h (mmix_function_arg_pass_by_reference): Kill.
22948 * config/mmix/mmix.c (TARGET_PASS_BY_REFERENCE): New.
22949 (mmix_pass_by_reference): Rename from
22950 mmix_function_arg_pass_by_reference.
22951 * config/mmix/mmix.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22952 (FUNCTION_ARG_CALLEE_COPIES): True.
22953 * config/mn10300/mn10300.c (TARGET_PASS_BY_REFERENCE): New.
22954 (mn10300_pass_by_reference): New.
22955 * config/mn10300/mn10300.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22956 (FUNCTION_ARG_CALLEE_COPIES): True.
22957 * config/pa/pa.c (pa_pass_by_reference): New.
22958 (TARGET_PASS_BY_REFERENCE): New.
22959 * config/pa/pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22960 (FUNCTION_ARG_CALLEE_COPIES): True.
22961 * config/rs6000/rs6000-protos.h (function_arg_pass_by_reference): Kill.
22962 * config/rs6000/rs6000.c (TARGET_PASS_BY_REFERENCE): New.
22963 (rs6000_pass_by_reference): Rename from function_arg_pass_by_reference.
22964 * config/rs6000/rs6000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22965 * config/s390/s390-protos.h (s390_function_arg_pass_by_reference): Kill.
22966 * config/s390/s390.c (TARGET_PASS_BY_REFERENCE): New.
22967 (s390_pass_by_reference): Rename from
22968 s390_function_arg_pass_by_reference.
22969 (s390_function_arg_advance): Don't query pass-by-ref.
22970 (s390_function_arg): Likewise.
22971 (s390_gimplify_va_arg): Use pass_by_reference.
22972 (s390_call_saved_register_used): Likewise.
22973 * config/s390/s390.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22974 * config/sh/sh.c (TARGET_PASS_BY_REFERENCE): New.
22975 (shcompact_byref, sh_pass_by_reference): New.
22976 * config/sh/sh.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22977 (SHCOMPACT_BYREF): Remove.
22978 * config/sparc/sparc-protos.h (function_arg_pass_by_reference): Kill.
22979 * config/sparc/sparc.c (TARGET_PASS_BY_REFERENCE): New.
22980 (sparc_pass_by_reference): Rename from function_arg_pass_by_reference.
22981 (sparc_gimplify_va_arg): Use pass_by_reference.
22982 * config/sparc/sparc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22983 * config/stormy16/stormy16.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22984 * config/v850/v850.c (TARGET_PASS_BY_REFERENCE): New.
22985 (v850_pass_by_reference): New.
22986 * config/v850/v850.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22987 (FUNCTION_ARG_CALLEE_COPIES): True.
22988 * doc/tm.texi (TARGET_PASS_BY_REFERENCE): Update from
22989 FUNCTION_ARG_PASS_BY_REFERENCE docs.
22990
22991 2004-07-14 Richard Henderson <rth@redhat.com>
22992 Richard Sandiford <rsandifo@redhat.com>
22993
22994 * config/mips/mips-protos.h (mips_va_arg): Delete.
22995 * config/mips/mips.h (EXPAND_BUILTIN_VA_ARG): Delete.
22996 * config/mips/mips.c: Include tree-gimple.h.
22997 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
22998 (mips_arg_info): Remove special handling of must_pass_in_stck args.
22999 (mips_gimplify_va_arg_expr): Rewritten from mips_va_arg.
23000 (function_arg_pass_by_reference): Return true if must_pass_in_stack.
23001
23002 2004-07-13 Bob Wilson <bob.wilson@acm.org>
23003
23004 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap
23005 arguments for COND_EXPR in big-endian adjustment code.
23006
23007 2004-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23008
23009 * pa-64.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Delete.
23010 * pa.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Modify for hppa64.
23011 * pa32-regs.h (REG_ALLOC_ORDER): Reorder caller-saved registers.
23012 * pa64-regs.h (REG_ALLOC_ORDER): Likewise.
23013
23014 2004-07-13 Diego Novillo <dnovillo@redhat.com>
23015
23016 PR tree-optimization/16443
23017 * tree-ssa-alias.c: Add more description for
23018 CALL_CLOBBERED_VARS and ADDRESSABLE_VARS.
23019 * tree-ssa-operands.c (get_asm_expr_operands): Re-order the
23020 clobbering of call-clobbered and addressable variables. If
23021 there are any before aliases have been computed, add them.
23022
23023 2004-07-13 Diego Novillo <dnovillo@redhat.com>
23024
23025 * tree-optimize.c (execute_todo): Flush DUMP_FILE before
23026 verification.
23027
23028 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
23029
23030 * config/s390/s390.c (s390_gimplify_va_arg): Use size_int instead
23031 of build_int_2. Convert both operands of PLUS_EXPR and MULT_EXPR
23032 to the same type.
23033
23034 2004-07-13 Per Bothner <per@bothner.com>
23035
23036 * collect2.c (main): Handle --no-demangle and --demangle flags.
23037
23038 2004-07-13 Sebastian Pop <pop@cri.ensmp.fr>
23039
23040 * Makefile.in (OBJS-common): Add tree-data-ref.o.
23041 (tree-scalar-evolution.o): Add missing dependences on tree-pass.h flags.h.
23042 (tree-data-ref.o): New rule.
23043 * lambda.h: New file.
23044 * tree-data-ref.c: New file.
23045 * tree-data-ref.h: New file.
23046 * tree.c (int_cst_value, tree_fold_gcd): New functions.
23047 * tree.h (int_cst_value, tree_fold_gcd): Declared here.
23048
23049 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
23050
23051 PR target/13926
23052 * config/sparc/sparc-protos.h (output_ubranch): New prototype.
23053 * config/sparc/sparc.c (output_ubranch): New function.
23054 * config/sparc/sparc.md (jump pattern): Use it.
23055
23056 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
23057
23058 PR target/16494
23059 * config/sparc/sparc.c (output_cbranch): Properly guard
23060 the code handling far branches with TARGET_V9.
23061 * config/sparc/sparc.md (length attribute): Document the
23062 side-effect of having a length greater or equal to 3.
23063
23064 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
23065 Lloyd Parkes <lloyd@must-have-coffee.gen.nz>
23066
23067 PR target/15186
23068 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
23069 /usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
23070
23071 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
23072 Martin Sebor <sebor@roguewave.com>
23073
23074 PR target/12602
23075 * doc/invoke.texi (SPARC options): Document -threads
23076 and -pthreads on Solaris.
23077
23078 2004-07-13 Richard Henderson <rth@redhat.com>
23079
23080 * builtins.c (std_gimplify_va_arg_expr): Handle types passed
23081 by reference.
23082 (ind_gimplify_va_arg_expr): Remove.
23083 * tree.h (ind_gimplify_va_arg_expr): Remove.
23084 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Don't use it.
23085 * config/mmix/mmix.c (mmix_function_arg_pass_by_reference): Allow
23086 argsp to be null.
23087
23088 * config/arc/arc.c (arc_gimplify_va_arg_expr): Remove.
23089 (TARGET_GIMPLIFY_VA_ARG_EXPR): Remove.
23090 * config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c,
23091 config/iq2000/iq2000.c, config/m32r/m32r.c, config/mmix/mmix.c,
23092 config/mn10300/mn10300.c, config/v850/v850.c: Similarly.
23093
23094 2004-07-13 Richard Henderson <rth@redhat.com>
23095
23096 * function.c (pass_by_reference): New.
23097 (assign_parm_find_data_types): Use it.
23098 * calls.c (initialize_argument_information): Likewise.
23099 (emit_library_call_value_1): Likewise.
23100 * expr.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
23101 * function.h (pass_by_reference): Declare.
23102
23103 2004-07-13 Richard Henderson <rth@redhat.com>
23104
23105 * target-def.h (TARGET_MUST_PASS_IN_STACK): New.
23106 * target.h (struct gcc_target): Add calls.must_pass_in_stack.
23107 * expr.h (MUST_PASS_IN_STACK): Remove.
23108 * system.h (MUST_PASS_IN_STACK): Poison.
23109 * tree.h (must_pass_in_stack_var_size): Declare.
23110 (must_pass_in_stack_var_size_or_pad): Declare.
23111 * calls.c (must_pass_in_stack_var_size): New.
23112 (must_pass_in_stack_var_size_or_pad): Rename from
23113 default_must_pass_in_stack.
23114 * config/alpha/alpha.c (unicosmk_must_pass_in_stack): New.
23115 (TARGET_MUST_PASS_IN_STACK): New.
23116 * config/alpha/unicosmk.h (MUST_PASS_IN_STACK): Remove.
23117 * config/fr30/fr30.c (fr30_must_pass_in_stack): New.
23118 (TARGET_MUST_PASS_IN_STACK): New.
23119 * config/fr30/fr30.h (MUST_PASS_IN_STACK): Remove.
23120 * config/frv/frv.c (frv_must_pass_in_stack): New.
23121 (TARGET_MUST_PASS_IN_STACK): New.
23122 * config/frv/frv.h (MUST_PASS_IN_STACK): Remove.
23123 * config/i386/i386-protos.h (ix86_must_pass_in_stack): Remove.
23124 * config/i386/i386.c (TARGET_MUST_PASS_IN_STACK): New.
23125 (ix86_must_pass_in_stack): Make static.
23126 * config/i386/i386.h (MUST_PASS_IN_STACK): Remove.
23127 * config/ia64/ia64.c (TARGET_MUST_PASS_IN_STACK): New.
23128 * config/ia64/ia64.h (MUST_PASS_IN_STACK): Remove.
23129 * config/m32r/m32r.c (TARGET_MUST_PASS_IN_STACK): New.
23130 * config/m32r/m32r.h (MUST_PASS_IN_STACK): Remove.
23131 * config/mcore/mcore-protos.h (mcore_must_pass_on_stack): Remove.
23132 * config/mcore/mcore.c (TARGET_MUST_PASS_IN_STACK): New.
23133 (mcore_must_pass_on_stack): Remove.
23134 * config/mcore/mcore.h (MUST_PASS_IN_STACK): Remove.
23135 * config/mips/mips.c (TARGET_MUST_PASS_IN_STACK): New.
23136 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove.
23137 * config/pa/pa.c (TARGET_MUST_PASS_IN_STACK): New.
23138 * config/pa/pa.h (MUST_PASS_IN_STACK): Remove.
23139 * config/rs6000/aix.h (MUST_PASS_IN_STACK): Remove.
23140 * config/rs6000/linux64.h (MUST_PASS_IN_STACK): Remove.
23141 * config/rs6000/rs6000.c (rs6000_must_pass_in_stack): New.
23142 (TARGET_MUST_PASS_IN_STACK): New.
23143 * config/sh/sh.c (TARGET_MUST_PASS_IN_STACK): New.
23144 * config/sh/sh.h (MUST_PASS_IN_STACK): Remove.
23145 * config/sparc/sparc.c (TARGET_MUST_PASS_IN_STACK): New.
23146 * config/sparc/sparc.h (MUST_PASS_IN_STACK): Remove.
23147 * config/xtensa/xtensa.c (TARGET_MUST_PASS_IN_STACK): New.
23148 * config/xtensa/xtensa.h (MUST_PASS_IN_STACK): Remove.
23149 * doc/tm.texi (TARGET_MUST_PASS_IN_STACK): Update from
23150 MUST_PASS_IN_STACK.
23151
23152 * calls.c, function.c, config/alpha/alpha.c, config/alpha/alpha.h,
23153 config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.c,
23154 config/cris/cris.h, config/fr30/fr30.c, config/fr30/fr30.h,
23155 config/frv/frv.c, config/i386/i386.c, config/iq2000/iq2000.c,
23156 config/mcore/mcore.c, config/mcore/mcore.h, config/mips/mips.c,
23157 config/mmix/mmix.c, config/mmix/mmix.h, config/rs6000/rs6000.c,
23158 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
23159 config/xtensa/xtensa.c: Use target hook.
23160
23161 2004-07-13 Anthony Heading <aheading@jpmorgan.com>
23162
23163 * configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo.
23164 * configure: Rebuilt.
23165
23166 2004-07-13 Richard Sandiford <rsandifo@redhat.com>
23167
23168 * doc/invoke.texi: Remove documentation for MIPS -mrnames option.
23169 * config/mips/mips.h (mips_reg_names): Don't declare.
23170 (MASK_NAME_REGS): Delete. Shuffle other MASK_* values down.
23171 (TARGET_NAME_REGS): Delete.
23172 (TARGET_SWITCHES): Remove -mrnames.
23173 (REGISTER_NAMES): Initialise with the old contents of mips_reg_names[].
23174 (ADDITIONAL_REGISTER_NAMES): Remove entries for names mentioned
23175 in REGISTER_NAMES.
23176 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Delete.
23177 (override_options): Remove handling of TARGET_NAME_REGS.
23178
23179 2004-07-13 Richard Sandiford <rsandifo@redhat.com>
23180
23181 * config/mips/mips.h (TARGET_*): Boolify.
23182
23183 2004-07-12 Nick Clifton <nickc@redhat.com>
23184
23185 * config.gcc: Add sh-*-symbianelf target.
23186 * config/sh/sh.c: Add new target macros:
23187 TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING,
23188 TARGET_CXX_IMPORT_EXPORT_CLASS.
23189 (sh_file_start): Create a definition of the .directive section.
23190 (sh_attribute): Add dllimport and dllexport attributes.
23191 * config/sh/symbian-pre.h: New file.
23192 * config/sh/symbian-post.h: New file.
23193 * config/sh/symbian.c: New file. Contains Symbian specific
23194 functions.
23195 * config/sh/sh-protos.h: Add prototypes for new functions
23196 provided by symbian.c.
23197 * config/sh/t-symbian: New file.
23198 * doc/extend.texi: Document support for dllimport and dllexport
23199 attributes by the sh-symbianelf target.
23200
23201 2004-07-12 James E Wilson <wilson@specifixinc.com>
23202
23203 * Makefile.in (AR): Use @AR@ not ar.
23204 (NM): New.
23205 (AR_FOR_TARGET): Use $(AR) not ar for native.
23206 (NM_FOR_TARGET): Use $(NM) not nm for native.
23207 * configure.ac: Add AC_CHECK_PROG calls for NM and AR.
23208 * configure: Regenerate.
23209
23210 2004-07-12 David S. Miller <davem@nuts.davemloft.net>
23211
23212 * config/sparc/sparc.md (ashlsi3): Eliminate const 1
23213 special case.
23214 (ashldi3_sp64): Likewise.
23215
23216 2004-07-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23217
23218 PR target/16477
23219 * pa.c (function_arg): Update comment.
23220 * pa.h (BLOCK_REG_PADDING): Define.
23221
23222 2004-07-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
23223
23224 PR tree-optimization/16461
23225 * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
23226 arguments of phi nodes.
23227
23228 2004-07-12 Devang Patel <dpatel@apple.com>
23229
23230 * doc/invoke.texi (Darwin Options): Document -gused and -gfull.
23231
23232 2004-07-12 Steve Ellcey <sje@cup.hp.com>
23233
23234 * function.c (expand_function_start): Ensure r_save is in Pmode.
23235 * calls.c (prepare_call_address): Ensure static_chain_value is
23236 in Pmode.
23237 * builtins.c (expand_builtin_nonlocal_goto): Ensure r_label and
23238 r_save_area are in Pmode.
23239 * config/ia64/ia64.c (ia64_initialize_trampoline): Ensure addr,
23240 fnaddr, and static_chain are in Pmode.
23241
23242 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
23243
23244 PR target/16445
23245 * config/ia64/ia64.c (bundling): Don't count ignored insns.
23246
23247 2004-07-12 Richard Henderson <rth@redhat.com>
23248
23249 * target.h (struct gcc_target): Move gimplify_va_arg_expr
23250 next to build_builtin_va_list.
23251 * target-def.h (TARGET_GIMPLIFY_VA_ARG_EXPR): Update to match.
23252 * builtins.c (gimplify_va_arg_expr): Likewise.
23253 * gimplify.c (copy_if_shared_r): Likewise.
23254
23255 2004-07-12 Alexandre Oliva <aoliva@redhat.com>
23256
23257 * passes.c (rest_of_decl_compilation): Don't defer call of
23258 assemble_variable if its DECL_RTL is already set.
23259
23260 2004-07-12 Sebastian Pop <pop@cri.ensmp.fr>
23261
23262 * cfgloop.h (struct loop): Add nb_iterations field.
23263 (current_loops): Declare.
23264 * tree-chrec.c (chrec_not_analyzed_yet,
23265 chrec_dont_know, chrec_known, count_ev_in_wider_type,
23266 chrec_contains_symbols_defined_in_loop): Remove the temporary
23267 hooks.
23268 * tree-flow-inline.h (loop_containing_stmt): New function.
23269 * tree-scalar-evolution.c: Add implementation.
23270 * tree-scalar-evolution.h: Add declarations.
23271
23272 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
23273
23274 PR rtl-optimization/15921
23275 * Makefile.in (global.o): Add recog.h.
23276
23277 * global.c (recog.h): Add the include-clause.
23278 (bb_info): New member earlyclobber.
23279 (allocate_bb_info, free_bb_info): Initialize/finish the new
23280 member.
23281 (earlyclobber_regclass, earlyclobber_regclass_length): The new
23282 global variables.
23283 (check_earlyclobber, regclass_intersect,
23284 mark_reg_use_for_earlyclobber, mark_reg_use_for_earlyclobber_1):
23285 New functions.
23286 (calculate_local_reg_bb_info): Calculate value of earlyclobber.
23287 (make_accurate_live_analysis): Modify pavin.
23288
23289 2004-07-12 Diego Novillo <dnovillo@redhat.com>
23290
23291 * tree-cfg.c (find_taken_edge): Statically compute the truth
23292 value of a predicate comparing an SSA_NAME to itself.
23293
23294 2004-07-12 Roger Sayle <roger@eyesopen.com>
23295
23296 * config/rs6000/rs6000.c (rs6000_rtx_costs): Indicate that the
23297 rs6000 doesn't have shift-and-add or shift-and-sub instructions
23298 by returning the cost of a multiplication plus an addition.
23299
23300 2004-07-12 Paolo Bonzini <bonzini@gnu.org>
23301
23302 PR tree-optimization/14107
23303 * gimplify.c (gimplify_return_expr): Accept a
23304 RETURN_EXPR with an error argument.
23305 * tree-optimize.c (init_tree_optimization_passes):
23306 Run pass_warn_function_return at -O0.
23307
23308 2004-07-12 Roger Sayle <roger@eyesopen.com>
23309
23310 * doc/invoke.texi: Correct -fasynchronous-unwind-tables option
23311 index entry.
23312
23313 2004-07-12 Richard Sandiford <rsandifo@redhat.com>
23314
23315 * config/mips/mips.c (mips_use_dfa_pipeline_interface): Delete.
23316 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
23317 * config/mips/3000.md: Add copyright notice. Remove automota and
23318 function units; use generic ones instead. Only define reservations
23319 for things that are different from generic.md. Extend each clause
23320 to include r3900.
23321 * config/mips/{4000,4100,4300,4600,5000,6000,generic}.md: New files.
23322 * config/mips/mips.md: Include them. Remove define_function_units.
23323 (alu, imuldiv): New automata and units.
23324
23325 2004-07-12 Ben Elliston <bje@au.ibm.com>
23326
23327 * doc/invoke.texi (Optimize Options): Document -frename-registers
23328 not being enabled by default at -O3.
23329
23330 2004-07-11 Roger Sayle <roger@eyesopen.com>
23331
23332 * fold-const.c (fold) <PLUS_EXPR>: Canonicalize X + -C as X - C for
23333 floating point additions, to keep real immediate constant positive.
23334 <MINUS_EXPR>: For floating point subtractions, only transform X - -C
23335 into X + C, and leave positive real constants as X - C.
23336
23337 2004-07-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23338
23339 * pa.c (hppa_gimplify_va_arg_expr): Remove comment.
23340
23341 2004-07-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
23342
23343 PR tree-optimization/15654
23344 * tree-tailcall.c (eliminate_tail_call): Remove unreachable code.
23345
23346 2004-07-11 Roger Sayle <roger@eyesopen.com>
23347
23348 * builtins.c (fold_builtin_fputs): Don't bother converting the
23349 return type to integer_type_node, as we've already checked that
23350 the result will be ignored.
23351
23352 * tree-eh.c (tree_could_trap_p): Add support for -ftrapv such
23353 that signed addition, subtraction, multiplication, division,
23354 remainder, negation and absolute value may potentially trap.
23355
23356 * fold-const.c (fold_ignored_result): New function to strip
23357 non-side-effecting tree nodes from an expression whose result
23358 is ignored.
23359 (fold_convert): Call fold_ignored_result when casting a value
23360 to VOID_TYPE.
23361 (omit_one_operand): Call fold_ignored_result on the "omitted"
23362 operand when building a COMPOUND_EXPR.
23363 (pedantic_omit_one_operand): Likewise.
23364 * tree.h (fold_ignored_result): Prototype here.
23365 * tree-ssa-ccp.c (ccp_fold_builtin): Call fold_ignored_result
23366 when we're going to ignore the result.
23367
23368 2004-07-11 Richard Henderson <rth@redhat.com>
23369
23370 PR tree-opt/16383
23371 * tree-ssa-ccp.c (fold_stmt_r): Split out...
23372 * tree.c (fields_compatible_p, find_compatible_field): ... new.
23373 * tree.h (fields_compatible_p, find_compatible_field): Declare.
23374 * tree-sra.c (sra_hash_tree): Hash fields by offset.
23375 (sra_elt_eq): Use fields_compatible_p.
23376 (generate_one_element_ref): Use find_compatible_field.
23377
23378 2004-07-11 Richard Henderson <rth@redhat.com>
23379
23380 PR tree-opt/16422
23381 * tree-sra.c (generate_one_element_init): New.
23382 (generate_element_init): Use it.
23383 (scalarize_init): Push/pop gimplify context around it.
23384 (find_new_referenced_vars_1, find_new_referenced_vars): New.
23385 * gimplify.c (gimplify_expr): Allow SSA_NAME.
23386
23387 2004-07-11 Roger Sayle <roger@eyesopen.com>
23388
23389 * rtlanal.c (insn_rtx_cost): New function, moved and renamed from
23390 combine.c's combine_insn_cost.
23391 * rtl.h (insn_rtx_cost): Prototype here.
23392 * combine.c (combine_insn_cost): Delete function.
23393 (combine_validate_cost): Update callers of combine_insn_cost to
23394 call insn_rtx_cost instead.
23395 (combine_instructions): Likewise. Use NONJUMP_INSN_P to avoid
23396 requesting the rtx_cost of call and/or jump instructions.
23397
23398 * ifcvt.c (total_bb_rtx_cost): Use insn_rtx_cost instead of calling
23399 rtx_cost directly. Don't request/use the cost of call or jump
23400 instructions. Return -1 if the cost of any instruction can't be
23401 determined (or the BB contains a function call).
23402 (find_if_case_1): Abort transformation if total_bb_rtx_cost returns
23403 -1 (i.e. can't determine the cost of any instruction or the basic
23404 block contains a subroutine call).
23405 (find_if_case_2): Likewise.
23406
23407 2004-07-11 Roger Sayle <roger@eyesopen.com>
23408
23409 * rs6000.c (struct processor_costs): Change semantics of fields to
23410 include the COST_N_INSNS scaling, and update all initializers.
23411 (rs6000_rtx_costs): Don't use COSTS_N_INSNS on rs6000_cost fields.
23412 Use COSTS_N_INSNS(1) for NOT, SIGN_EXTEND, ZERO_EXTEND and COMPARE.
23413 Use rs6000_cost->fp for both FLOAT_TRUNCATE and UNSPEC_FRSP. When
23414 optimizing for size, use COSTS_N_INSNS(1) for CALL and IF_THEN_ELSE.
23415
23416 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
23417
23418 * LANGUAGES: Remove obsolete information.
23419
23420 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
23421
23422 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and
23423 SIGBUS signal frames, the PSW address points *to* the faulting
23424 instruction, not after it.
23425
23426 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
23427
23428 * config/s390/s390.c (legitimize_tls_address): Handle constant offsets
23429 added to TLS symbol addresses.
23430
23431 2004-07-11 Richard Henderson <rth@redhat.com>
23432
23433 * expmed.c (init_expmed): Use stack-local structures for
23434 temporary rtl. Don't recognize shifts.
23435
23436 2004-07-11 Richard Henderson <rth@redhat.com>
23437
23438 * expr.c (store_expr): Don't fiddle subreg promotion for types
23439 with precision smaller than the mode.
23440
23441 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
23442
23443 * tree.h (all_types_permanent): Remove.
23444
23445 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
23446
23447 * langhooks.h (estimate_num_insns, pushlevel, poplevel, set_block,
23448 maybe_build_cleanup, update_decl_after_saving): Remove hooks.
23449 * langhooks.c (lhd_clear_binding_stack): Remove.
23450 * langhooks-def.h (lhd_clear_binding_stack,
23451 LANG_HOOKS_MAYBE_BUILD_CLEANUP,
23452 LANG_HOOKS_UPDATE_DECL_AFTER_SAVING,
23453 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, LANG_HOOKS_PUSHLEVEL,
23454 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
23455 (LANG_HOOKS_CLEAR_BINDING_STACK): Define to lhd_do_nothing.
23456 * system.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
23457 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_SET_BLOCK,
23458 LANG_HOOKS_MAYBE_BUILD_CLEANUP,
23459 LANG_HOOKS_UPDATE_DECL_AFTER_SAVING, LANG_HOOKS_POPLEVEL): Poison.
23460 * tree.h (poplevel): Don't declare.
23461 * c-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
23462 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
23463 * objc/objc-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK,
23464 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
23465 Remove.
23466
23467 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
23468
23469 PR tree-optimization/16437
23470 * c-common.c (shorten_compare): Don't mark result of conversion to
23471 narrower signed type as overflowing.
23472 * fold-const.c (decode_field_reference): Determine whether
23473 signedness comes from outer type using precision rather than size.
23474
23475 2004-07-11 Phil Edwards <phil@codesourcery.com>
23476
23477 * configure.ac: Alphabetize --enable-checking list, add
23478 missing valgrind entry.
23479 * configure: Regenerate.
23480
23481 2004-07-11 Phil Edwards <phil@codesourcery.com>
23482
23483 * doc/install.texi (Testing): Fix syntax in "make check" example.
23484
23485 2004-07-10 James E Wilson <wilson@specifixinc.com>
23486
23487 * config/gofast.h (gofast_maybe_init_libfuncs): Use SImode for litodp.
23488
23489 2004-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
23490
23491 PR rtl-optimization/16001
23492 * loop-iv.c (iv_number_of_iterations): Prevent copy propagation in
23493 niter_expr.
23494
23495 2004-07-10 Geoffrey Keating <geoffk@apple.com>
23496
23497 * config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.
23498
23499 2004-07-10 Steve Kargl <sgk@troutmask.apl.washington.edu>
23500 James Morrison <phython@gcc.gnu.org>
23501
23502 * doc/contrib.texi (Contributors): Add gfortran contributors and
23503 fix a couple of typos.
23504
23505 2004-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
23506
23507 PR rtl-optimization/15387
23508 * calls.c (check_sibcall_argument_overlap_1): Handle pointers
23509 to incoming args space correctly.
23510
23511 2004-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23512
23513 * pa.c (output_indirect_call): Only use %r2 as the link register in
23514 indirect calls with the long PA 2.0 pc-relative branch.
23515
23516 2004-07-10 Daniel Jacobowitz <dan@debian.org>
23517
23518 * config/i386/i386.c (override_options): Pick a 64-bit CPU
23519 for the default tuning if TARGET_64BIT.
23520
23521 2004-07-10 Richard Henderson <rth@redhat.com>
23522
23523 * builtins.c (std_gimplify_va_arg_expr): Widen align/boundary
23524 to HOST_WIDE_INT. Fold pad-args-down arithmetic.
23525
23526 2004-07-10 Jakub Jelinek <jakub@redhat.com>
23527
23528 * expr.h (store_bit_field, extract_bit_field): Remove last argument.
23529 * expmed.c (store_bit_field, extract_bit_field): Remove last
23530 argument.
23531 * builtins.c (expand_builtin_signbit): Adjust callers.
23532 * optabs.c (expand_vector_binop, expand_vector_unop): Likewise.
23533 * calls.c (store_unaligned_arguments_into_pseudos): Likewise.
23534 * ifcvt.c (noce_emit_move_insn): Likewise.
23535 * stmt.c (expand_return): Likewise.
23536 * expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg,
23537 store_field, expand_expr_real_1): Likewise.
23538
23539 2004-07-10 Richard Henderson <rth@redhat.com>
23540
23541 * builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.
23542
23543 2004-07-09 Mike Stump <mrs@apple.com>
23544
23545 * config/darwin.c (no_dead_strip): Add.
23546 (HAVE_DEAD_STRIP): Add.
23547 (darwin_emit_unwind_label): Ensure that we don't dead code strip
23548 the .eh label.
23549
23550 2004-07-09 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
23551
23552 * tree-ssa-loop-im.c: New file.
23553 * Makefile.in (tree-ssa-loop-im.o): Add.
23554 * cfgloop.c (superloop_at_depth): New function.
23555 * cfgloop.h (superloop_at_depth): Declare.
23556 * common.opt (ftree-lim): New flag.
23557 * expr.c (array_ref_up_bound): New function.
23558 * params.def (PARAM_LIM_EXPENSIVE): New parameter.
23559 * timevar.def (TV_LIM): New timevar.
23560 * tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when
23561 computing immediate uses of a phi node.
23562 * tree-flow.h (struct tree_ann_common_d): Add aux field.
23563 (loop_commit_inserts, for_each_index, tree_ssa_lim): Declare.
23564 * tree-optimize.c (init_tree_optimization_passes): Add pass_lim.
23565 * tree-pass.h (pass_lim): Declare.
23566 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New
23567 functions.
23568 (pass_lim): New pass structure.
23569 * tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly.
23570 * tree.c (in_array_bounds_p): New function.
23571 * tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs.
23572 (in_array_bounds_p, array_ref_up_bound): Declare.
23573 * doc/invoke.texi (-ftree-lim, --param lim-expensive): Document.
23574 * doc/passes.texi (tree-ssa-loop-im.c): Document.
23575
23576 2004-07-09 Richard Henderson <rth@redhat.com>
23577
23578 * builtins.c (expand_builtin_stpcpy): Don't modify len.
23579
23580 * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
23581 with prejudice.
23582
23583 2004-07-10 Kelley Cook <kcook@gcc.gnu.org>
23584
23585 * flags.h: Delete redundant prototypes that are being generated
23586 in options.h from common.opt.
23587 * common.opt: Add in the expository comments formerly in flags.h.
23588
23589 2004-07-09 Jan Beulich <jbeulich@novell.com>
23590
23591 * config/i386/i386.c (init_cumulative_args): Set mmx/sse registers
23592 available for use only when TARGET_MMX/_SSE is set, and check for
23593 variable argument function if any register count is non-zero.
23594 (function_arg): Correctly suppress repeated warnings for passing SSE
23595 vectors are arguments without SSE enabled.
23596 (ix86_function_arg_boundary): Without SSE enabled, the use of what
23597 would be SSE register modes does no longer influence the alignment.
23598
23599 2004-07-09 Richard Henderson <rth@redhat.com>
23600
23601 * builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.
23602 Always align upward to arg boundary. Use size_in_bytes/round_up.
23603 Maintain type-correctness of constants.
23604 * stor-layout.c (round_up, round_down): Special-case powers of 2.
23605
23606 2004-07-09 David S. Miller <davem@nuts.davemloft.net>
23607
23608 * config/sparc/sparc.c (*_costs): Scale instruction costs
23609 by COSTS_N_INSNS.
23610 (sparc_rtx_costs): Adjust as appropriate.
23611
23612 2004-07-09 Jan Beulich <jbeulich@novell.com>
23613
23614 * config/i386/mm3dnow.h: New.
23615 * config.gcc: Add mm3dnow.h to extra_headers for i?86 and x86-64.
23616
23617 2004-07-09 Richard Henderson <rth@redhat.com>
23618
23619 * simplify-rtx.c (simplify_const_relational_operation): Only
23620 look at bounds of scalar integers.
23621
23622 2004-07-09 Jan Beulich <jbeulich@novell.com>
23623
23624 * config/i386/i386.md (sse2_clflush): Use correct operand for clflush.
23625
23626 2004-07-09 Andrew Pinski <apinski@apple.com>
23627
23628 * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
23629 always referenced.
23630 (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
23631 UOBJC_METACLASS_decl.
23632
23633 2004-07-09 James E Wilson <wilson@specifixinc.com>
23634
23635 PR target/16364
23636 * config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
23637 do return a parallel if hfa_mode == XFmode and mode == TImode.
23638
23639 2004-07-09 Jan Beulich <jbeulich@novell.com>
23640
23641 * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes
23642 permissible for unary plus.
23643
23644 2004-07-09 Jan Beulich <jbeulich@novell.com>
23645
23646 * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.
23647 (BT_FN_UINT): Rename from BT_FN_UNSIGNED.
23648 (BT_FN_PTR_UINT): Rename from BT_FN_PTR_UNSIGNED.
23649 (BT_ULONG, BT_ULONGLONG, BT_UINTMAX, BT_FN_INT_UINT, BT_FN_INT_ULONG,
23650 BT_FN_INT_ULONGLONG, BT_FN_INT_INTMAX, BT_FN_INT_UINTMAX): New.
23651 * builtins.def (BUILTIN_CLZxxx, BUILTIN_CTXxxx, BUILTIN_PARITYxxx,
23652 BUILTIN_POPCOUNTxxx): Arguments are unsigned.
23653 (BUILTIN_xxxIMAX): New.
23654 * builtins.c (expand_builtin): Handle BUILT_IN_FFSIMAX,
23655 BUILT_IN_CLZIMAX, BUILT_IN_CTZIMAX, BUILT_IN_POPCOUNIMAX, and
23656 BUILT_IN_PARITYIMAX.
23657
23658 2004-07-09 David S. Miller <davem@nuts.davemloft.net>
23659
23660 * config/sparc/sparc.h (processor_costs): Define.
23661 (sparc_costs): Declare.
23662 * config/sparc/sparc.c (cypress_costs, supersparc_costs,
23663 hypersparc_costs, sparclet_costs, ultrasparc_costs,
23664 ultrasparc3_costs): New.
23665 (sparc_override_options): Set sparc_costs as appropriate.
23666 (sparc_rtx_costs): Use sparc_costs instead of messy
23667 conditionals.
23668
23669 2004-07-09 Steven Bosscher <stevenb@suse.de>
23670
23671 * doc/md.texi (Processor pipeline description): Mention that
23672 the old pipeline description is deprecated.
23673
23674 * config/rs6000/7450.md (automaton ppc7450): Split up, move
23675 mciu_7450 function unit to...
23676 (automaton ppc7450mciu): ...new automaton.
23677
23678 * haifa-sched.c (insert_schedule_bubbles_p): Remove.
23679 (schedule_block): Don't consider inserting bubbles.
23680 (sched_init): Don't initialize DFA bubbles.
23681 * target-def.h (TARGET_SCHED_INIT_DFA_BUBBLES,
23682 TARGET_SCHED_DFA_BUBBLE): Remove.
23683 * target.h (init_dfa_bubbles, dfa_bubble): Remove hooks.
23684 * doc/tm.texi (TARGET_SCHED_INIT_DFA_BUBBLES,
23685 TARGET_SCHED_DFA_BUBBLE): Remove documentation.
23686
23687 * stmt.c (conditional_context): Remove prototype.
23688 * tree.h (conditional_context): Remove.
23689 * tree-cfg.c (pre_insert_on_edge): Remove.
23690
23691 * c-common.h (c_expand_asm_operands): Remove prototype.
23692 * c-typeck.c (c_expand_asm_operands): Remove.
23693
23694 2004-07-09 Jan Beulich <jbeulich@novell.com>
23695
23696 * config/i386/i386.c (classify_argument): Treat V1xx modes the same as
23697 their base modes. CTImode, TCmode, and XCmode must be passed in memory.
23698 TFmode (__float128) must be is an SSE/SSEUP pair. V2SImode, V4HImode,
23699 and V8QI are class SSE. All sufficiently small remaining vector modes
23700 must be passed in one or two integer registers.
23701 (ix86_libcall_value): TFmode must be returned in xmm0, XCmode must be
23702 returned in memory.
23703 (bdesc_2arg, ix86_init_mmx_sse_builtins): __builtin_ia32_pmuludq and
23704 __builtin_ia32_pmuludq128 have non-uniform argument and return types
23705 and must thus be handled explicitly.
23706 * config/i386/i386.md (*movdi_1_rex64): Add cases for moving between
23707 MMX and XMM regs.
23708 (movv8qi_internal, movv4hi_internal, movv2si_internal,
23709 movv2sf_internal): Permit moving between MMX and XMM registers (since
23710 MMX areguments and return values are passed in XMM registers).
23711 (sse2_umulsidi3): Correct type and mode.
23712
23713 2004-07-09 Richard Henderson <rth@redhat.com>
23714
23715 * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.
23716
23717 2004-07-09 Eric Christopher <echristo@redhat.com>
23718
23719 * config/rs6000/40x.md: Split into two automatons.
23720
23721 2004-07-09 Zack Weinberg <zack@codesourcery.com>
23722 Andrew Pinski <apinski@apple.com>
23723
23724 * c-opts.c (c_common_post_options): Force unit-at-a-time mode
23725 on when we have more than one input file.
23726 (c_common_parse_file): Restore loop over all input files.
23727 Clarify diagnostic for -dy when YYDEBUG wasn't defined.
23728
23729 * c-decl.c (set_type_context): New function.
23730 (pop_scope): Use it to set context of types. When we
23731 encounter a TYPE_DECL, set the context of the attached type too.
23732 (pop_file_scope): Don't call cpp_undef_all here.
23733 (diagnose_mismatched_decls): Do not complain about a second
23734 definition of an 'extern inline' function if it's not in the
23735 same translation unit. Do not complain about inline
23736 declaration after use if the use was in a different
23737 translation unit.
23738 (merge_decls): Don't clobber olddecl's DECL_CONTEXT.
23739 (pushdecl): Do not put DECL_EXTERNAL, !TREE_PUBLIC decls in
23740 the external scope.
23741 (pushdecl_top_level): Likewise.
23742 (grokdeclarator): Clarify what is going on with setting
23743 DECL_EXTERNAL on function types, a little.
23744 (c_write_global_declarations): Don't do anything if
23745 -fsyntax-only or errors have been encountered.
23746
23747 2004-07-09 Zack Weinberg <zack@codesourcery.com>
23748
23749 * vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.
23750
23751 2004-07-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23752
23753 PR target/16459
23754 * pa.c (output_indirect_call): Use %r2 as the link register when
23755 calling $$dyncall with a pc-relative branch.
23756
23757 2004-07-08 Gerald Pfeifer <gerald@pfeifer.com>
23758
23759 * doc/install.texi (Binaries): Mention OpenPKG.
23760
23761 2004-07-09 Diego Novillo <dnovillo@redhat.com>
23762
23763 Fix PR tree-optimization/15555
23764 * tree-dfa.c (dump_variable): If the variable is a pointer
23765 SSA_NAME, also dump its points-to information.
23766 * tree-flow.h (struct ptr_info_def): Add field
23767 is_dereferenced.
23768 (dump_points_to_info_for): Declare.
23769 (debug_points_to_info_for): Declare.
23770 * tree-optimize.c (init_tree_optimization_passes): Add a
23771 second alias analysis pass after DOM2.
23772 Move pass_del_pta to a later spot.
23773 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
23774 create a name tags when we find a dereferenced pointer. Just
23775 mark the pointer dereferenced.
23776 (collect_points_to_info_for): Move code to clear points-to
23777 information to create_name_tags.
23778 (create_name_tags): New function.
23779 (compute_flow_sensitive_aliasing): Call it.
23780 (setup_pointers_and_addressables): Mark type tags for renaming
23781 here instead of ...
23782 (create_memory_tag): ... here.
23783 (merge_pointed_to_info): Do not merge PT_MALLOC attributes.
23784 (dump_points_to_info_for): Declare extern.
23785 (debug_points_to_info_for): New function.
23786
23787 2004-07-09 Paolo Bonzini <bonzini@gnu.org>
23788
23789 * config/arc/arc.md: Switch to DFA-based scheduler description.
23790 * config/arc/arc.c: Switch to DFA-based scheduler description.
23791
23792 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
23793
23794 * arm/unknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame
23795 pointer.
23796
23797 2004-07-09 Richard Henderson <rth@redhat.com>
23798
23799 * config/xtensa/xtensa-protos.h (xtensa_va_arg): Remove.
23800 * config/xtensa/xtensa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23801 (xtensa_gimplify_va_arg_expr): Rewrite from xtensa_va_arg.
23802 * config/xtensa/xtensa.h (EXPAND_BUILTIN_VA_ARG): Remove.
23803
23804 * config/v850/v850-protos.h (v850_va_arg): Remove.
23805 * config/v850/v850.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23806 (v850_gimplify_va_arg_expr): Rewrite from v850_va_arg.
23807 * config/v850/v850.h (EXPAND_BUILTIN_VA_ARG): Remove.
23808 (FUNCTION_ARG_PASS_BY_REFERENCE): Handle variable size types.
23809 (FUNCTION_ARG_CALLEE_COPIES): Use FUNCTION_ARG_PASS_BY_REFERENCE.
23810
23811 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
23812
23813 PR target/12133
23814 * arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
23815 and DImode to use +/-4k offset.
23816
23817 2004-07-09 Richard Henderson <rth@redhat.com>
23818
23819 * config/stormy16/stormy16-protos.h (xstormy16_expand_builtin_va_arg):
23820 Remove.
23821 * config/stormy16/stormy16.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23822 (xstormy16_gimplify_va_arg_expr): Rewrite from
23823 xstormy16_expand_builtin_va_arg.
23824 * config/stormy16/stormy16.h (EXPAND_BUILTIN_VA_ARG): Remove.
23825
23826 * config/sparc/sparc-protos.h (sparc_va_arg): Remove.
23827 * config/sparc/sparc.c (sparc_gimplify_va_arg): Mark static.
23828
23829 * config/sh/sh-protos.h (sh_va_arg): Remove.
23830 * config/sh/sh.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23831 (sh_gimplify_va_arg_expr): Rewrite from sh_va_arg.
23832 * config/sh/sh.h (EXPAND_BUILTIN_VA_ARG): Remove.
23833
23834 * config/pa/pa-protos.h (hppa_va_arg): Remove.
23835 * config/pa/pa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23836 (hppa_gimplify_va_arg_expr): Rewrite from hppa_va_arg.
23837 * config/pa/pa.h (EXPAND_BUILTIN_VA_ARG): Remove.
23838
23839 * config/mn10300/mn10300-protos.h (mn10300_va_arg): Remove.
23840 * config/mn10300/mn10300.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23841 (mn10300_gimplify_va_arg_expr): Rewrite from mn10300_va_arg.
23842 * config/mn10300/mn10300.h (EXPAND_BUILTIN_VA_ARG): Remove.
23843
23844 2004-07-09 Eric Botcazou <ebotcazou@libertysurf.fr>
23845
23846 * config/sparc/sparc.md (return): Rewrite length formula.
23847 * config/sparc/sparc.c (output_return): Pass 1 as 5th
23848 argument to final_scan_insn when in a delay slot.
23849 (output_sibcall): Likewise.
23850
23851 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
23852
23853 * arm.c (arm_cpp_interwork): New variable.
23854 (arm_override_options): Set it if TARGET_INTERWORK was on the command
23855 line.
23856 * arm.h (arm_cpp_interwork): Declare it.
23857 (TARGET_CPU_CPP_BUILTINS): Use it to control definition of
23858 __THUMB_INTERWORK__ in the preprocessor.
23859
23860 2004-07-09 Nathan Sidwell <nathan@codesourcery.com>
23861
23862 * vec.h (VEC_T_alloc): Fix MEM_STAT_DECL pasto.
23863
23864 2004-07-09 Eric Botcazou <ebotcazou@libertysurf.fr>
23865
23866 PR target/16416
23867 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): New macro.
23868 Override default settings to account for -m32 and -m64.
23869
23870 2004-07-08 Randolph Chung <tausq@debian.org>
23871
23872 * pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
23873
23874 2004-07-09 Alexandre Oliva <aoliva@redhat.com>
23875
23876 * builtins.c (fold_builtin_strncpy): Make sure len is a constant
23877 before comparing it as such.
23878
23879 2004-07-08 Richard Henderson <rth@redhat.com>
23880
23881 * builtins.c (std_gimplify_va_arg_expr): Hoist valist into a
23882 temporary. Use bit arithmetic to align.
23883
23884 2004-07-08 Jerry Quinn <jlquinn@optonline.net>
23885
23886 * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p,
23887 nonlocal_set_p, init_alias_analysis): Use, LABEL_P, JUMP_P, CALL_P,
23888 NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P.
23889 * bb-reorder.c (mark_bb_for_unlikely_executed_section,
23890 add_labels_and_missing_jumps, find_jump_block,
23891 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
23892 Likewise.
23893 * bt-load.c (btr_referenced_p, compute_defs_uses_and_gen,
23894 link_btr_uses, move_btr_def): Likewise.
23895 * builtins.c (expand_builtin_longjmp, expand_builtin_nonlocal_goto,
23896 expand_builtin_expect_jump): Likewise.
23897 * caller-save.c (save_call_clobbered_regs, insert_one_insn): Likewise.
23898 * calls.c (expand_call, emit_library_call_value_1): Likewise.
23899 * cfganal.c (forwarder_block_p): Likewise.
23900 * cfgbuild.c (inside_basic_block_p, count_basic_blocks,
23901 make_label_edge, rtl_make_eh_edge, make_edges, find_basic_blocks_1,
23902 find_bb_boundaries): Likewise.
23903 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
23904 merge_blocks_move_predecessor_nojumps,
23905 merge_blocks_move_successor_nojumps, insns_match_p,
23906 flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
23907 try_optimize_cfg): Likewise.
23908 * cfgexpand.c (expand_block, construct_exit_block): Likewise.
23909 * cfglayout.c (skip_insns_after_block, label_for_bb,
23910 record_effective_endpoints, insn_locators_initialize,
23911 fixup_reorder_chain, update_unlikely_executed_notes): Likewise.
23912 * cfgmainloop.c (create_loop_notes): Likewise.
23913 * cfgrtl.c (delete_insn, delete_insn_chain,
23914 create_basic_block_structure, rtl_delete_block, free_bb_for_insn,
23915 update_bb_for_insn, rtl_merge_blocks, rtl_can_merge_blocks,
23916 block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
23917 redirect_branch_edge, force_nonfallthru_and_redirect,
23918 rtl_tidy_fallthru_edge, back_edge_of_syntactic_loop_p,
23919 rtl_split_edge, commit_one_edge_insertion, print_rtl_with_bb,
23920 update_br_prob_note, rtl_verify_flow_info_1, rtl_verify_flow_info,
23921 purge_dead_edges, cfg_layout_redirect_edge_and_branch,
23922 cfg_layout_delete_block, cfg_layout_can_merge_blocks_p,
23923 cfg_layout_merge_blocks, rtl_block_ends_with_call_p,
23924 need_fake_edge_p, rtl_flow_call_edges_add): Likewise.
23925 * combine.c (combine_instructions, can_combine_p, try_combine,
23926 find_split_point, record_dead_and_set_regs, reg_dead_at_p,
23927 distribute_notes, distribute_links, insn_cuid): Likewise.
23928 * cse.c (fold_rtx, cse_insn, cse_around_loop,
23929 invalidate_skipped_block, cse_set_around_loop,
23930 cse_end_of_basic_block, cse_main, cse_basic_block,
23931 cse_condition_code_reg): Likewise.
23932 * cselib.c (cselib_process_insn): Likewise.
23933 * ddg.c (create_ddg): Likewise.
23934 * df.c (df_insn_refs_record, df_bb_rd_local_compute, df_insns_modify):
23935 Likewise.
23936 * dwarf2out.c (dwarf2out_stack_adjust, dwarf2out_frame_debug,
23937 gen_label_die, dwarf2out_var_location): Likewise.
23938 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn,
23939 next_insn, previous_insn, next_nonnote_insn, prev_nonnote_insn,
23940 last_call_insn, active_insn_p, next_label, prev_label,
23941 link_cc0_insns, next_cc0_user, try_split, add_insn_after,
23942 add_insn_before, remove_insn, add_function_usage_to,
23943 reorder_insns, find_line_note, remove_unnecessary_notes,
23944 emit_insn_after_1, classify_insn): Likewise.
23945 * except.c (convert_from_eh_region_ranges_1, emit_to_new_bb_before,
23946 connect_post_landing_pads, sjlj_mark_call_sites,
23947 sjlj_emit_function_enter, sjlj_emit_function_exit, reachable_handlers,
23948 can_throw_internal, can_throw_external, set_nothrow_function_flags,
23949 convert_to_eh_region_ranges): Likewise.
23950 * explow.c (optimize_save_area_alloca): Likewise.
23951 * expr.c (expand_expr_real): Likewise.
23952 * final.c (insn_current_reference_address, compute_alignments,
23953 shorten_branches, final, scan_ahead_for_unlikely_executed_note,
23954 final_scan_insn, output_asm_label, leaf_function_p): Likewise.
23955 * flow.c (first_insn_after_basic_block_note, delete_dead_jumptables,
23956 propagate_block_delete_insn, propagate_one_insn,
23957 init_propagate_block_info, propagate_block, libcall_dead_p,
23958 mark_set_1, attempt_auto_inc, find_auto_inc, try_pre_increment):
23959 Likewise.
23960 * function.c (instantiate_virtual_regs, reorder_blocks_1,
23961 expand_function_start, expand_function_end, contains,
23962 thread_prologue_and_epilogue_insns,
23963 reposition_prologue_and_epilogue_notes): Likewise.
23964 * gcse.c (constprop_register, bypass_conditional_jumps,
23965 insert_insn_end_bb, gcse_after_reload): Likewise.
23966 * genemit.c (gen_expand, gen_split): Likewise.
23967 * genpeep.c (gen_peephole, main): Likewise.
23968 * global.c (build_insn_chain): Likewise.
23969 * graph.c (node_data, print_rtl_graph_with_bb): Likewise.
23970 * haifa-sched.c (unlink_other_notes, unlink_line_notes,
23971 get_block_head_tail, no_real_insns_p, rm_line_notes, save_line_notes,
23972 restore_line_notes, rm_redundant_line_notes, rm_other_notes,
23973 ok_for_early_queue_removal, set_priorities, sched_init): Likewise.
23974 * ifcvt.c (count_bb_insns, first_active_insn, last_active_insn,
23975 cond_exec_process_insns, end_ifcvt_sequence, noce_process_if_block,
23976 merge_if_block, block_jumps_and_fallthru_p, find_if_block,
23977 dead_or_predicable): Likewise.
23978 * integrate.c (try_constants): Likewise.
23979 * jump.c (rebuild_jump_labels, cleanup_barriers,
23980 purge_line_number_notes, init_label_info, mark_all_labels,
23981 squeeze_notes, get_label_before, get_label_after,
23982 reversed_comparison_code_parts, simplejump_p, pc_set,
23983 returnjump_p, onlyjump_p, follow_jumps, mark_jump_label,
23984 delete_barrier, delete_prior_computation, delete_computation,
23985 delete_related_insns, delete_for_peephole, redirect_jump):
23986 Likewise.
23987 * lcm.c (optimize_mode_switching): Likewise.
23988 * local-alloc.c (validate_equiv_mem, update_equiv_regs, block_alloc):
23989 Likewise.
23990 * loop-doloop.c (doloop_valid_p, doloop_optimize): Likewise.
23991 * loop-invariant.c (find_exits, find_invariants_bb): Likewise.
23992 * loop-iv.c (simplify_using_assignment): Likewise.
23993 * loop.c (compute_luids, loop_optimize, scan_loop, libcall_other_reg,
23994 libcall_benefit, skip_consec_insns, move_movables, prescan_loop,
23995 find_and_verify_loops, labels_in_range_p, for_each_insn_in_loop,
23996 loop_bivs_init_find, strength_reduce, check_insn_for_bivs,
23997 check_insn_for_givs, check_final_value, update_giv_derive,
23998 basic_induction_var, product_cheap_p, check_dbra_loop,
23999 loop_insn_first_p, last_use_this_basic_block,
24000 canonicalize_condition, get_condition, loop_regs_scan, load_mems,
24001 try_copy_prop, LOOP_BLOCK_NUM, loop_dump_aux): Likewise.
24002 * modulo-sched.c (doloop_register_get, find_line_note, sms_schedule,
24003 sms_schedule_by_order): Likewise.
24004 * optabs.c (emit_no_conflict_block, emit_libcall_block): Likewise.
24005 * postreload.c (reload_cse_simplify_operands, reload_combine,
24006 reload_cse_move2add): Likewise.
24007 * predict.c (can_predict_insn_p, estimate_probability,
24008 expected_value_to_br_prob, process_note_predictions): Likewise.
24009 * print-rtl.c (print_rtx, print_rtl, print_rtl_single): Likewise.
24010 * profile.c (branch_prob): Likewise.
24011 * ra-build.c (live_out_1, livethrough_conflicts_bb,
24012 detect_webs_set_in_cond_jump): Likewise.
24013 * ra-debug.c (ra_print_rtx_object, ra_debug_insns,
24014 ra_print_rtl_with_bb): Likewise.
24015 * ra-rewrite.c (insert_stores, rewrite_program2): Likewise.
24016 * recog.c (next_insn_tests_no_inequality, find_single_use,
24017 split_all_insns, peephole2_optimize, if_test_bypass_p): Likewise.
24018 * reg-stack.c (next_flags_user, record_label_references,
24019 emit_swap_insn, swap_rtx_condition, subst_stack_regs,
24020 compensate_edge, convert_regs_1): Likewise.
24021 * regclass.c (scan_one_insn): Likewise.
24022 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
24023 regmove_optimize, fixup_match_1, single_set_for_csa,
24024 combine_stack_adjustments_for_block): Likewise.
24025 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Likewise.
24026 * reload.c (find_reloads, find_reloads_address_1, subst_reloads,
24027 find_equiv_reg): Likewise.
24028 * reload1.c (reload, calculate_needs_all_insns, set_label_offsets,
24029 reload_as_needed, emit_input_reload_insns, do_output_reload,
24030 delete_output_reload, delete_address_reloads_1, fixup_abnormal_edges):
24031 Likewise.
24032 * reorg.c (find_end_label, emit_delay_sequence,
24033 delete_from_delay_slot, delete_scheduled_jump, optimize_skip,
24034 get_jump_flags, rare_destination, mostly_true_jump,
24035 try_merge_delay_insns, redundant_insn, own_thread_p,
24036 fill_simple_delay_slots, fill_slots_from_thread,
24037 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
24038 dbr_schedule): Likewise.
24039 * resource.c (find_basic_block, next_insn_no_annul,
24040 find_dead_or_set_registers, mark_target_live_regs): Likewise.
24041 * rtl.h (RTX_PREV): Likewise.
24042 * rtlanal.c (global_reg_mentioned_p, no_labels_between_p,
24043 no_jumps_between_p, reg_used_between_p, reg_referenced_between_p,
24044 reg_set_p, find_last_value, dead_or_set_regno_p, find_reg_fusage,
24045 find_regno_fusage, pure_call_p, replace_label, rtx_referenced_p_1,
24046 tablejump_p, computed_jump_p, insns_safe_to_move_p,
24047 find_first_parameter_load, can_hoist_insn_p): Likewise.
24048 * sched-deps.c (get_condition, add_dependence, sched_analyze_2,
24049 sched_analyze_insn, sched_analyze, add_forward_dependence): Likewise.
24050 * sched-ebb.c (fix_basic_block_boundaries, add_deps_for_risky_insns,
24051 schedule_ebbs): Likewise.
24052 * sched-rgn.c (is_cfg_nonregular, find_conditional_protection,
24053 is_conditionally_protected, can_schedule_ready_p,
24054 add_branch_dependences, debug_dependencies): Likewise.
24055 * stmt.c (emit_nop, expand_start_case, emit_jump_if_reachable):
24056 Likewise.
24057 * unroll.c (unroll_loop, copy_loop_body, back_branch_in_range_p,
24058 reg_dead_after_loop, loop_find_equiv_value, loop_iterations,
24059 set_dominates_use, ujump_to_loop_cont): Likewise.
24060 * var-tracking.c (prologue_stack_adjust, vt_initialize): Likewise.
24061 * varasm.c (output_constant_pool_1): Likewise.
24062
24063 2004-07-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
24064
24065 * tree-scalar-evolution.c: New file.
24066 * tree-scalar-evolution.h: New file.
24067 * tree-ssa-loop-niter.c: New file.
24068 * Makefile.in (SCEV_H): New.
24069 (tree-scalar-evolution.o, tree-ssa-loop-niter.o): Add new files.
24070 * cfgloop.h (struct loop): Add bounds field.
24071 * tree-flow.h (struct tree_niter_desc): New type.
24072 (number_of_iterations_cond, number_of_iterations_exit,
24073 loop_niter_by_eval, find_loop_niter_by_eval,
24074 estimate_numbers_of_iterations, can_count_iv_in_wider_type,
24075 free_numbers_of_iterations_estimates): Declare.
24076 * tree.h (lower_bound_in_type, upper_bound_in_type): Declare.
24077 * params.def (PARAM_MAX_ITERATIONS_TO_TRACK): New parameter.
24078 * doc/invoke.texi (max-iterations-to-track): Document.
24079
24080 2004-07-08 Kaz Kojima <kkojima@gcc.gnu.org>
24081
24082 * config/sh/sh.c (sh_va_arg): Initinalize lab_over.
24083 * config/sh/sh.h (CONST_OK_FOR_J16): Use parentheses.
24084 (MODE_AFTER): Add cast appropriately.
24085 * config/sh/sh.md (movdi splitter): Likewise.
24086 (casesi_worker_2): Add const qualifier appropriately.
24087 (eh_return): Remove unused variable.
24088 (insv): Initialize v;
24089
24090 2004-07-08 Richard Henderson <rth@redhat.com>
24091
24092 * config/mmix/mmix-protos.h (mmix_expand_builtin_va_arg): Remove.
24093 * config/mmix/mmix.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
24094 (mmix_gimplify_va_arg_expr): Rewrite from mmix_expand_builtin_va_arg.
24095 * config/mmix/mmix.h (EXPAND_BUILTIN_VA_ARG): Remove.
24096 (FRAME_POINTER_REQUIRED): Use current_function_has_nonlocal_label.
24097
24098 * config/m32r/m32r-protos.h (m32r_va_arg): Remove.
24099 * config/m32r/m32r.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
24100 (m32r_gimplify_va_arg_expr): Rewrite from m32r_va_arg.
24101 * config/m32r/m32r.h (EXPAND_BUILTIN_VA_ARG): Remove.
24102
24103 * config/iq2000/iq2000-protos.h (iq2000_va_arg): Remove.
24104 * config/iq2000/iq2000.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
24105 (iq2000_gimplify_va_arg_expr): Rewrite from iq2000_va_arg.
24106 * config/iq2000/iq2000.h (EXPAND_BUILTIN_VA_ARG): Remove.
24107
24108 * config/frv/frv-protos.h (frv_expand_builtin_va_arg): Remove.
24109 * config/frv/frv.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
24110 (frv_gimplify_va_arg_expr): Rewrite from frv_expand_builtin_va_arg.
24111 * config/frv/frv.h (EXPAND_BUILTIN_VA_ARG): Remove.
24112
24113 * config/i860/i860-protos.h (i860_va_arg): Remove.
24114 * config/i860/i860.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
24115 (i860_gimplify_va_arg_expr): Rewrite from i860_va_arg.
24116 * config/i860/i860.h (EXPAND_BUILTIN_VA_ARG): Remove.
24117
24118 2004-05-31 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
24119
24120 * system.h: Prototype getpagesize if missing.
24121 * configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS.
24122 * configure: Regenerate.
24123 * config.in: Regenerate.
24124
24125 2004-07-08 Richard Henderson <rth@redhat.com>
24126
24127 * config/fr30/fr30-protos.h (fr30_va_arg): Remove.
24128 * config/fr30/fr30.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
24129 (fr30_gimplify_va_arg_expr): New.
24130 (fr30_pass_by_reference, fr30_pass_by_value, fr30_va_arg): Remove.
24131 * config/fr30/fr30.h (EXPAND_BUILTIN_VA_ARG): Remove.
24132
24133 2004-07-08 Vladimir Makarov <vmakarov@redhat.com>
24134
24135 PR target/16414
24136 * config/ia64/ia64.c (ia64_dfa_new_cycle): Fix typo in comparison
24137 of asm_noperands result.
24138
24139 2004-07-08 Richard Henderson <rth@redhat.com>
24140
24141 * config/cris/cris-protos.h (cris_expand_builtin_va_arg): Remove.
24142 * config/cris/cris.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
24143 (cris_gimplify_va_arg_expr): Rewrite from cris_expand_builtin_va_arg.
24144 * config/cris/cris.h (EXPAND_BUILTIN_VA_ARG): Remove.
24145
24146 2004-07-08 Richard Henderson <rth@redhat.com>
24147
24148 * builtins.c (ind_gimplify_va_arg_expr): New.
24149 * tree.h (ind_gimplify_va_arg_expr): Declare.
24150 * config/arc/arc.c (arc_gimplify_va_arg_expr): Use it.
24151
24152 2004-07-08 Jan Beulich <jbeulich@novell.com>
24153
24154 * expmed.c (extract_bit_field): Correct condition to use vec_extract
24155 patterns also on vector elements other than the first one.
24156 * config/i386/i386.md (vec_extractv2df, vec_extractv4sf): Add missing
24157 break statements.
24158
24159 2004-07-08 Geoffrey Keating <geoffk@apple.com>
24160
24161 * config/rs6000/darwin-ldouble.c: Correct reference
24162 to the Linnainmaa paper.
24163
24164 2004-07-08 Richard Henderson <rth@redhat.com>
24165
24166 * config/arc/arc-protos.h (arc_va_arg): Remove.
24167 * config/arc/arc.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
24168 (arc_gimplify_va_arg_expr): Rewrite from arc_va_arg.
24169 * config/arc/arc.h (EXPAND_BUILTIN_VA_ARG): Remove.
24170
24171 * config/c4x/c4x-protos.h (c4x_va_arg): Remove.
24172 * config/c4x/c4x.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
24173 (c4x_gimplify_va_arg_expr): Rewrite from c4x_va_arg.
24174 * config/c4x/c4x.h (EXPAND_BUILTIN_VA_ARG): Remove.
24175
24176 2004-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24177
24178 * pa.md (prefetch_32, prefetch_64): Simplify constraint checks.
24179
24180 2004-07-08 Zack Weinberg <zack@codesourcery.com>
24181
24182 * c-decl.c (static_ctors, static_dtors): Make static.
24183 (pop_file_scope): Call c_common_write_pch and
24184 cgraph_finalize_compilation_unit here.
24185 (build_cdtor): Moved here from c-objc-common.c; simplify.
24186 (c_write_global_declarations_1): Clarify comment.
24187 (c_write_global_declarations): Close the external scope before
24188 doing anything else. Call build_cdtor, cgraph_optimize, and
24189 mudflap_finish_file here.
24190 * c-lang.c (finish_file): Don't call c_objc_common_finish_file.
24191 Clarify comment.
24192 * c-objc-common.c: No need to include cgraph.h.
24193 (build_cdtor): Moved to c-decl.c.
24194 (c_objc_common_finish_file): Delete.
24195 * c-tree.h: Update to match.
24196 * objc/objc-act.c (finish_file): Don't call c_objc_common_finish_file.
24197 (generate_static_references): Set TREE_USED before calling finish_decl.
24198 Eliminate unnecessary dummy declaration. Call rest_of_decl_compilation
24199 on the static_instances_decl.
24200
24201 2004-07-08 Zack Weinberg <zack@codesourcery.com>
24202
24203 * c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope
24204 decls when there is only one input translation unit.
24205 * langhooks.c (lhd_set_decl_assembler_name): Partially revert
24206 change of 2004-07-05; do not treat declarations with
24207 DECL_CONTEXT a TRANSLATION_UNIT_DECL specially.
24208 * opts.c (cur_in_fname): Delete.
24209 * opts.h: Likewise.
24210 * tree.c: Revert changes of 2004-07-05; no special treatment
24211 for TRANSLATION_UNIT_DECLs.
24212 * Makefile.in (tree.o): Update dependencies.
24213
24214 2004-07-08 Roger Sayle <roger@eyesopen.com>
24215
24216 * builtins.c (fold_builtin_strcpy): Merge functionality from
24217 simplify_builtin_strcpy. Add additional len argument. No longer
24218 static. Remove function prototype.
24219 (fold_builtin_strncpy): Likewise integrate functionality from
24220 simplify_builtin_strncpy. Add additional slen argument. No
24221 longer static. Remove function prototype.
24222 (simplify_builtin_strcy, simplify_builtin_strncpy): Delete.
24223 (simplify_builtin_fputs): Rename to fold_builtin_fputs. Change
24224 types of "ignore" and "unlocked" parameters to bool.
24225 (fold_builtin_1): Add additional ignore argument. Call renamed
24226 fold_builtin_fputs to simplify GCC "fputs" and "fputs_unlocked"
24227 builtins. Update arguments to fold_builtin_strncpy and
24228 fold_builtin_strcpy. Add function prototype.
24229 (fold_builtin): Add additional Boolean ignore argument to pass
24230 to fold_builtin_1.
24231 (simplify_builtin): Call fold_builtin_fputs, fold_builtin_strcpy
24232 and fold_builtin_strncpy instead of simplify_builtin_fputs,
24233 simplify_builtin_strcpy and simplify_builtin_strncpy respectively.
24234
24235 * expr.h (simplify_builtin_fputs, simplify_builtin_strcpy,
24236 simplify_builtin_strncpy): Delete function prototypes.
24237 * tree.h (fold_builtin_fputs, fold_builtin_strcpy,
24238 fold_builtin_strncpy): Add function prototypes here.
24239 (fold_builtin): Update function prototype with new "bool ignore".
24240
24241 * tree-ssa-ccp.c (ccp_fold): Update call to fold_builtin.
24242 (ccp_fold_builtin): Update call to fold_builtin. Call
24243 fold_builtin_fputs, fold_builtin_strcpy and fold_builtin_strncpy
24244 instead of simplify_builtin_fputs, simplify_builtin_strcpy and
24245 simplify_builtin_strncpy respectively.
24246 * fold-const.c (fold): Update call to fold_builtin.
24247
24248 2004-07-08 Alexandre Oliva <aoliva@redhat.com>
24249
24250 * builtins.c (expand_builtin_stpcpy): Un-simplify decay of stpcpy
24251 to strcpy.
24252
24253 * expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0.
24254 (FUNCTION_ARG_PASS_BY_REFERENCE): Likewise.
24255 (FUNCTION_ARG_CALLEE_COPIES): Likewise.
24256 * calls.c: Remove ifdefs of macros above.
24257 * functions.c: Likewise.
24258 * expr.c: Likewise.
24259
24260 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
24261
24262 * config/sparc/sparc.md (UNSPECV_GOTO_V9): Delete.
24263 (arch attribute): Delete.
24264 (current_function_calls_alloca attribute): Rename into calls_alloca.
24265 (calls_eh_return): New attribute.
24266 (leaf_function): Likewise.
24267 (length attribute): Fix formula for sibcalls.
24268 (return insn): Correctly compute the 'length' attribute.
24269 (do_builtin_setjmp_setup): Adjust use of current_function_calls_alloca.
24270
24271 2004-07-08 Richard Henderson <rth@redhat.com>
24272
24273 * tree-cfg.c (make_exit_edges): Use get_call_expr_in.
24274 (remove_useless_stmts_1, is_ctrl_altering_stmt): Likewise.
24275 (tree_block_ends_with_call_p, need_fake_edge_p): Likewise.
24276 * tree-eh.c (lower_eh_constructs_1): Likewise.
24277 * tree-sra.c (sra_walk_modify_expr): Likewise.
24278 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
24279 (eliminate_unnecessary_stmts): Likewise.
24280 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
24281 * tree-tailcall.c (optimize_tail_call): Likewise.
24282 * tree-ssa-ccp.c (get_rhs, set_rhs): Reorg to use switch.
24283
24284 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
24285 Jakub Jelinek <jakub@redhat.com>
24286
24287 * config/i386/i386.c (override_options): Enable
24288 SSE prefetches with -mtune, as long as we are
24289 compiling for i686 or higher. All i686 processors
24290 accept SSE prefetches as NOPS, some i586's don't.
24291
24292 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
24293
24294 PR target/10567
24295 * config/sparc/sparc.md (update_return): Honor flag_delayed_branch.
24296
24297 2004-07-08 Diego Novillo <dnovillo@redhat.com>
24298
24299 * tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in
24300 the handling of clobbering ASM_EXPRs.
24301
24302 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
24303
24304 PR target/16430
24305 * config/sparc/sparc.c (function_value): In 64-bit mode,
24306 return the aggregates larger than 16 bytes like unions.
24307
24308 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
24309
24310 PR target/16199
24311 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): When
24312 'temp' is zero, generate new pseudos as needed and emit the
24313 sequence of insns in single-assignment form. Resync comments
24314 with code.
24315 (sparc_emit_set_const64): Pass zero as 'temp' argument to above
24316 function before reload.
24317
24318 2004-07-08 Nathan Sidwell <nathan@codesourcery.com>
24319
24320 * vec.c (vec_assert_fail): Remove duplicate 'function'.
24321
24322 * vec.c (vec_p_reserve, vec_o_reserve): Allocation is signed.
24323
24324 * vec.h (VEC_alloc, VEC_embedded_size, VEC_embedded_init):
24325 Allocation is signed.
24326 (VEC_reserve): Return flag, allocation is signed.
24327
24328 2004-07-08 Richard Henderson <rth@redhat.com>
24329
24330 * tree-ssa-ccp.c (fold_stmt): Get type directly from
24331 OBJ_TYPE_REF_OBJECT.
24332
24333 2004-07-08 Joseph S. Myers <jsm@polyomino.org.uk>
24334 Neil Booth <neil@daikokuya.co.uk>
24335
24336 PR c/2511
24337 PR c/3325
24338 * c-decl.c (finish_struct): Ensure bit-fields are given the
24339 correct type.
24340 * c-common.c (c_common_signed_or_unsigned_type): For C, require
24341 the precision to match as well as the mode.
24342 * expr.c (reduce_to_bit_field_precision): New function.
24343 (expand_expr_real_1): Reduce expressions of bit-field type to
24344 proper precision.
24345 * langhooks.h (reduce_bit_field_operations): New hook.
24346 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
24347 Define.
24348 * c-lang.c, objc/objc-lang.c
24349 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define.
24350 * objc/objc-act.c (check_ivars): Convert types to bit-field types
24351 before checking.
24352 * tree.c (build_nonstandard_integer_type): New function.
24353 * tree.h (build_nonstandard_integer_type): New prototype.
24354 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't treat
24355 conversions between integer and boolean types as useless.
24356
24357 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
24358
24359 * c-common.c (c_common_nodes_and_builtins): Do not
24360 create __builtin_ptrdiff_t and __builtin_size_t.
24361
24362 2004-07-08 Andrew Pinski <apinski@apple.com>
24363
24364 * Makefile.in (libbackend.o): Add -combine to the gcc
24365 command line.
24366
24367 2004-07-08 Nick Clifton <nickc@redhat.com>
24368
24369 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Define.
24370 Set to -Os.
24371
24372 2004-07-08 Richard Henderson <rth@redhat.com>
24373
24374 * except.c (expand_eh_region_start, expand_eh_region_end,
24375 expand_eh_handler, expand_eh_region_end_cleanup,
24376 expand_start_all_catch, expand_start_catch, expand_end_catch,
24377 expand_end_all_catch, expand_eh_region_end_allowed,
24378 expand_eh_region_end_must_not_throw, expand_eh_region_end_throw,
24379 expand_eh_region_end_fixup): Remove.
24380 * stmt.c (struct nesting): Remove stack_level, innermost_stack_block,
24381 cleanups, outer_cleanups, label_chain, exception_region.
24382 (struct goto_fixup): Remove stack_level, cleanup_list_list.
24383 (struct label_chain): Remove.
24384 (struct stmt_status): Remove x_stack_block_stack.
24385 (stack_block_stack, expand_goto_internal, expand_fixup, expand_fixups,
24386 fixup_gotos, save_stack_pointer, expand_decl_cleanup,
24387 expand_decl_cleanup_eh, expand_cleanups, start_cleanup_deferral,
24388 end_cleanup_deferral, last_cleanup_this_contour,
24389 containing_blocks_have_cleanups_or_stack_level,
24390 any_pending_cleanups): Remove.
24391 (expand_null_return_1): Take no arguments.
24392 (expand_label, expand_naked_return, expand_return,
24393 expand_start_bindings_and_block, expand_end_bindings, expand_decl,
24394 expand_anon_union_decl, expand_start_case, pushcase, pushcase_range,
24395 expand_end_case_type): Don't use any of them.
24396 * calls.c (expand_call): Likewise.
24397 * dojump.c (do_jump): Likewise.
24398 * function.c (expand_function_end): Likewise.
24399 * expr.c (store_expr, expand_expr_real_1): Likewise.
24400 (safe_from_p): Don't handle WITH_CLEANUP_EXPR, CLEANUP_POINT_EXPR.
24401 (expand_expr_real_1): Don't handle WITH_CLEANUP_EXPR,
24402 CLEANUP_POINT_EXPR, TARGET_EXPR, TRY_CATCH_EXPR, CATCH_EXPR,
24403 EH_FILTER_EXPR, TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR.
24404 * fold-const.c (fold_checksum_tree): Use first_rtl_op.
24405 * gengtype.c (adjust_field_tree_exp): Remove rtl op handling.
24406 * gimplify.c (gimplify_cleanup_point_expr): Renumber operands
24407 for WITH_CLEANUP_EXPR.
24408 (gimple_push_cleanup): Likewise.
24409 * integrate.c (copy_decl_for_inlining): Don't DECL_TOO_LATE.
24410 * print-tree.c (print_node): Likewise.
24411 * tree-pretty-print.c (dump_generic_node): Remove GOTO_SUBROUTINE_EXPR.
24412 * tree.c (first_rtl_op): Always just TREE_CODE_LENGTH.
24413 (has_cleanups): Remove GOTO_SUBROUTINE_EXPR.
24414 * tree.def (WITH_CLEANUP_EXPR): Remove op1 and op2.
24415 (GOTO_SUBROUTINE_EXPR): Remove.
24416 * tree.h (WITH_CLEANUP_EXPR_RTL): Remove.
24417 (DECL_TOO_LATE): Remove.
24418 * except.h, tree.h: Update decls.
24419
24420 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
24421
24422 * explow.c (optimize_save_area_alloca): Do not accept parameters.
24423 * passes.c (rest_of_handle_final): Handle symout.
24424 (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc):
24425 Push timevar here.
24426 (rest_of_handle_sched): Break out SMS. Remove ifs for
24427 flag_schedule_insns and flag_modulo_sched.
24428 (rest_of_handle_addressof, rest_of_handle_cse2): Garbage
24429 collect at the end.
24430 (rest_of_handle_gcse2): Put under timevar TV_RELOAD_CSE_REGS.
24431 (rest_of_handle_partition_blocks, rest_of_handle_sms,
24432 rest_of_handle_if_after_reload, rest_of_handle_peephole2,
24433 rest_of_handle_mode_switching, rest_of_handle_jump,
24434 rest_of_handle_guess_branch_prob, rest_of_handle_eh,
24435 rest_of_handle_jump2, rest_of_handle_postreload,
24436 rest_of_handle_flow2, rest_of_clean_state,
24437 rest_of_handle_shorten_branches,
24438 rest_of_handle_prologue_epilogue,
24439 rest_of_handle_branch_target_load_optimize): New.
24440 (rest_of_compilation): Call the above. Remove ggc_collect
24441 calls moved to rest_of_handle_*.
24442 * rtl.h (optimize_save_area_alloca): Do not accept parameters.
24443
24444 * dwarf2out.c (dwarf2out_begin_prologue): Use TREE_NOTHROW.
24445 * except.c (set_nothrow_function_flags): Set TREE_NOTHROW.
24446 * except.h (set_nothrow_function_flags): Update comment.
24447 * function.c (current_function_nothrow): Remove.
24448 * output.h (current_function_nothrow): Remove.
24449 * passes.c (rest_of_compilation): Do not set TREE_NOTHROW.
24450 * config/arm/arm.c (arm_compute_func_type): Use TREE_NOTHROW.
24451
24452 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
24453
24454 PR bootstrap/16326
24455 * reorg.c: Revert 2004-06-30 change.
24456 (find_end_label): If HAVE_epilogue and !HAVE_return,
24457 return 0 instead of creating a label at the end of the insn chain.
24458 (optimize_skip): Account for the failure mode of find_end_label.
24459 (fill_simple_delay_slots): Likewise.
24460 (fill_slots_from_thread): Likewise.
24461 (relax_delay_slots): Likewise.
24462
24463 2004-07-08 Diego Novillo <dnovillo@redhat.com>
24464
24465 * tree-flow.h (addressable_vars): Declare.
24466 * tree-ssa-alias.c (addressable_vars): Define.
24467 (setup_pointers_and_addressables): Add addressable variables
24468 to addressable_vars.
24469 * tree-ssa-operands.c (get_stmt_operands): Move
24470 handling of ASM_EXPRs ...
24471 (get_asm_expr_operands): ... here.
24472 When the ASM_EXPR clobbers memory, also clobber addressable
24473 variables.
24474 * tree-ssa.c (init_tree_ssa): Initialize addressable_vars.
24475 (delete_tree_ssa): Reset addressable_vars.
24476
24477 2004-07-07 Jan Beulich <jbeulich@novell.com>
24478 Richard Henderson <rth@redhat.com>
24479
24480 * varasm.c (assemble_variable): Use assemble_zeros for
24481 zero-initialized variables.
24482 (categorize_decl_for_section): Honor flag_zero_initialized_in_bss
24483 for SECCAT_BSS and SECCAT_TBSS.
24484
24485 2004-07-07 Jan Beulich <jbeulich@novell.com>
24486
24487 * varasm.c (asm_output_bss): Don't declare unless BSS_SECTION_ASM_OP.
24488
24489 * expmed.c (emit_store_flag): Also special-case double-word
24490 (in-)equality comparison against -1.
24491
24492 * config/i386/i386.c (ix86_gimplify_va_arg): Don't need temporary for
24493 passing arguments the containers for which are registers.
24494
24495 * calls.c (emit_library_call_value_1): Use mode of function parameter
24496 rather than that of argument since constants have none.
24497
24498 2004-07-08 Alexandre Oliva <aoliva@redhat.com>
24499
24500 Introduce H8SX support.
24501 * expr.c (expand_strcpy): Renamed and moved to...
24502 * builtins.c (expand_movstr): ... here. Tweak.
24503 (expand_builtin_strcpy): Adjust. Use movstr if len can't be
24504 computed or has side effects.
24505 (expand_builtin_stpcpy): Likewise. Use strcpy if return value is
24506 unused, or if mempcpy fails. Adjust the return value in the
24507 latter case. Use movstr if everything else fails.
24508 * doc/md.texi (movstr): Document.
24509 (movmemM, clrmemM): Fix explanation of memory block operands.
24510 * config/h8300/h8300.md (stpcpy): Renamed to...
24511 (movstr): ... this. Adjust.
24512 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
24513 * config/h8300/h8300.md: Rename movstr*, except for movstrict*, to
24514 movmem* and clrstr* to clrmem*.
24515 2004-06-27 Alexandre Oliva <aoliva@redhat.com>
24516 * config/h8300/h8300.c (h8300_reg_class_from_letter): Map 'D' to
24517 GENERAL_REGS, always.
24518 (h8300_swap_into_er6, h8300_swap_into_er6): Handle the case of
24519 getting the stack pointer as addr.
24520 * config/h8300/h8300.h (PREDICATE_CODES): Remove constant rtxes
24521 from general_operand_dst.
24522 * config/h8300/h8300.md (movmd_internal_normal): New, normal-mode
24523 variant of...
24524 (movmd_internal): ... this. Add modes to operands. Disparage `D'
24525 instead of requiring it to match only before reload.
24526 (stpcpy_internal_normal): New, normal-mode variant of...
24527 (stpcpy_internal): ... this. Add modes to operands. Disparage
24528 `D' instead of requiring it to match only before reload.
24529 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Add
24530 mode argument.
24531 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Pass it to...
24532 * config/h8300/h8300.c (h8300_legitimate_address_p): Pass it to
24533 h8300_get_index.
24534 * config/h8300/h8300.md (attr type): Add call.
24535 (attr can_delay): If type is call, set it no.
24536 (call, call_value): Set type to call.
24537 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
24538 * config/h8300/h8300.md (logicalhi3_sn, logicalsi3_sn): New.
24539 2004-06-16 Alexandre Oliva <aoliva@redhat.com>
24540 * tree.c (get_narrower): Don't narrow integral types into
24541 non-integral types.
24542 * config/h8300/h8300.c (h8300_expand_epilogue): Initialize
24543 frame_size *before* the first use.
24544 * config/h8300/h8300.md (movstrictqi): Reintroduce post-increment
24545 on input.
24546 (peephole2): Don't widen instructions that push SP. Move
24547 decrement of SP to the end of all stm-generating peepholes.
24548 2003-07-24 Richard Sandiford <rsandifo@redhat.com>
24549 * config/h8300/h8300.md (insv): Prefer to use AND to clear a bitfield
24550 and OR to set it to all ones.
24551 2003-07-24 Richard Sandiford <rsandifo@redhat.com>
24552 * config/h8300/h8300.md (can_delay): Default to "no" for bit branches.
24553 (call, call_value): Set can_delay to "no".
24554 2003-07-22 Richard Sandiford <rsandifo@redhat.com>
24555 * config/h8300/h8300.md (extzv): Make subreg check more robust.
24556 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
24557 * config/h8300/h8300.md (*brabit): Remove.
24558 * config/h8300/h8300.md (*brabc, *brabs): Remove mode from
24559 zero_extract. Use bit_memory_operand as the predicate for
24560 operand 1 and 'WU' as the constraint. Check the difference
24561 between the base length and the final one when deciding which
24562 type of branch to use.
24563 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
24564 * config/h8300/h8300.md (extzv): Remove mode from operands 0 and 1.
24565 Use convert_move to extend the result for TARGET_H8300SX. Check
24566 for QImode memory references. Optimize the case where the
24567 destination is a paradoxical subreg.
24568 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
24569 * config/h8300/h8300.md (*movsf_h8sx): Add an r <- G alternative.
24570 * config/h8300/h8300.md (andqi): Remove bclr from h8sx version.
24571 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
24572 * config/h8300/h8300.md: Include mova.md
24573 (length_table): Add mova and mova_zero.
24574 * config/h8300/h8300.c (print_operand): Handle '%o'. Print a length
24575 after all constant addresses for '%R', '%X', '%T' and '%S'.
24576 (h8300_mova_length): New function.
24577 (h8300_insn_length_from_table): Use it to handle mova and mova_zero.
24578 * config/h8300/t-h8300 (mova.md): Generate from genmova.sh. Add to
24579 dependencies for s-config, etc.
24580 * config/h8300/gemova.sh: New file.
24581 * config/h8300/mova.md: Generated.
24582 2003-07-20 Alexandre Oliva <aoliva@redhat.com>
24583 * config/h8300/h8300.c (h8300_bitfield_length): New.
24584 (nibble_operand): Adjust.
24585 (h8300_binary_length): Handle conditional binary op.
24586 (h8300_insn_length_from_table): Handle bitfield and bitbranch.
24587 * config/h8300/h8300.h: Change constraints W# and Y# to P#>X and
24588 P#<X, respectively. The original P is now IP4>X. Introduced P#>0
24589 and P#<0, unused so far. W and Y are now prefixes to multi-letter
24590 constraints. WU is introduced as a variant of U that requires a
24591 mem, and is therefore considered an EXTRA_MEMORY_CONSTRAINT.
24592 * config/h8300/h8300.md (attr type): Added bitbranch.
24593 (attr length_table): Added bitfield and bitbranch.
24594 (attr length): Compute bitbranch length.
24595 (andqi): Separate pattern for H8300SX. Use bfld for loading the
24596 least-significant bit of a byte.
24597 (brabit, brabc, brabs): New.
24598 (insv, extzv): Emit bfst and bfld on H8300SX.
24599 (bfld, bfst, seq, sne): New.
24600 (bstzhireg, cmpstz, bstz, bistz): New.
24601 (cmpcondbset, condbset, cmpcondbclr, condbclr): New.
24602 (cmpcondbsetreg, condbsetreg, cmpcondbclrreg, condbclrreg): New.
24603 2003-07-11 Richard Sandiford <rsandifo@redhat.com>
24604 * config/h8300/h8300.c (h8sx_binary_memory_operator): New function.
24605 (h8sx_unary_memory_operator): New function.
24606 * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Disable.
24607 (PREDICATE_CODES): Add h8sx_{unary,binary}_memory_operator.
24608 * config/h8300/h8300.md: Add peepholes to combine reloads and
24609 arithmetic insns.
24610 2003-07-10 Richard Sandiford <rsandifo@redhat.com>
24611 * config/h8300/h830.md (cmpqi): Use 'i' rather than 'n' in constraints.
24612 (*cmphi_h8300hs, *addqi3, *addhi3_h8sx, subhi3): Likewise.
24613 (and?i, ior?i, xor?i): Likewise.
24614 2003-07-10 Richard Sandiford <rsandifo@redhat.com>
24615 * config/h8300/h8300.c: Move enums and prototypes to head of file.
24616 Various whitespace fixes.
24617 (h8300_constant_length): New function, split out from...
24618 (h8300_displacement_size): ...here. Rename h8300_displacement_length.
24619 (h8300_classify_operand): Use IN_RANGE.
24620 (h8300_classify_operand): Use h8300_constant_length.
24621 (h8300_short_move_mem_p): Tighten size check.
24622 (h8sx_mergeable_memrefs_p): Tighten equality check.
24623 2003-06-30 Richard Sandiford <rsandifo@redhat.com>
24624 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Define __H8300SX__
24625 for -msx.
24626 * config/h8300/crti.asm: Use .h8300sx or .h8300sxn for -msx code.
24627 * config/h8300/crtn.asm: Likewise.
24628 * config/h8300/lib1funcs.asm: Likewise. Use 32-bit pointers
24629 if __H8300SX__ is defined.
24630 2003-06-27 Richard Sandiford <rsandifo@redhat.com>
24631 * config/h8300/h8300-protos.h (h8300_get_index): Add mode parameter.
24632 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Update accordingly.
24633 (GO_IF_MODE_DEPENDENT_ADDRESS): Treat POST_DEC, PRE_INC and indexed
24634 addresses as mode-dependent.
24635 * config/h8300/h8300.c (print_operand_address): Update call to
24636 h8300_get_index.
24637 (h8300_get_index): Take a mode argument. Rework to fix an
24638 earlier misunderstanding.
24639 2003-06-26 Richard Sandiford <rsandifo@redhat.com>
24640 * config/h8300/h8300.c (zero_extendqisi2): Force the source operand
24641 into a register if TARGET_H8300SX.
24642 (*zero_extendqisi2_h8300hs, *extendqisi2_h8300): Disable for
24643 TARGET_H8300SX. Also disable related define_splits.
24644 (*zero_extendqisi2_h8sx, *extendqisi2_h8sx): New patterns.
24645 2003-06-23 Richard Sandiford <rsandifo@redhat.com>
24646 * config/h8300/h8300.c (h8300_rtx_costs): Add h8sx handling.
24647 2003-06-20 Richard Sandiford <rsandifo@redhat.com>
24648 * config/h8300/h8300.h (OK_FOR_Z): New macro.
24649 (EXTRA_CONSTRAINT_STR): Check it.
24650 * config/h8300/h8300.c (h8300_classify_operand): Accept null
24651 class arguments.
24652 (h8300_insn_length_from_table): Handle LENGTH_TABLE_MOV_IMM4.
24653 * config/h8300/h8300.md (length_table): Add mov_imm4.
24654 (movqi, movhi): Add Z <- W4 alternatives to h8sx patterns.
24655 2003-06-20 Richard Sandiford <rsandifo@redhat.com>
24656 * genattrtab.c (write_eligible_delay): Allow candidate_insn to
24657 be a label.
24658 * config/h8300/h8300.h (DELAY_SLOT_LENGTH): New macro.
24659 * config/h8300/h8300.c (h8300_reorg): New function.
24660 (TARGET_MACHINE_DEPENDENT_REORG): Define.
24661 * config/h8300/h8300.md (length): Subtract the length of the
24662 delay slot from (pc) when checking the range of forward branches.
24663 (delay_slot, can_delay): New attributes.
24664 (define_delay): Add bra/s handling.
24665 (movmd_internal, return_h8sx, *return_1): Set can_delay to no.
24666 (jump): Add delayed-branch handling.
24667 2003-06-17 Richard Sandiford <rsandifo@redhat.com>
24668 * expr.c (expand_strcpy): New function.
24669 * builtins.c (expand_builtin_strcpy): Fall back on expand_strcpy.
24670 (expand_builtin_stpcpy): Likewise.
24671 * config/h8300/h8300-protos.h (h8sx_split_movmd): Remove.
24672 (h8300_swap_into_er6, h8300_swap_out_of_er6): Declare.
24673 * config/h8300/h8300.c (h8300_reg_class_from_letter): Tweak 'd'
24674 handling to improve register allocation for -fno-omit-frame-pointer.
24675 (h8sx_split_movmd): Delete, moving er6 handling into...
24676 (h8300_swap_into_er6, h8300_swap_out_of_er6): ...these new functions.
24677 * config/h8300/h8300.md (UNSPEC_STPCPY): New unspec constant.
24678 (movmd): Add calls to copy_rtx.
24679 (movmd_internal): In the second alternative, allow the initial and
24680 final destination registers to be different . Update the splitter
24681 accordingly. Call h8300_swap_into_er6 and h8300_swap_out_of_er6
24682 instead of h8sx_split_movmd.
24683 (stpcpy, movsd): New expanders.
24684 (movsd_internal): New define_insn.
24685 2003-06-13 Richard Sandiford <rsandifo@redhat.com>
24686 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Declare.
24687 (h8sx_emit_movmd, h8sx_split_movmd): Declare.
24688 * config/h8300/h8300.h (reg_class): Add COUNTER_REGS, SOURCE_REGS
24689 and DESTINATION_REGS.
24690 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
24691 (REGNO_REG_CLASS): Map er4, er5 and er6 to the new classes.
24692 (REG_CLASS_FROM_LETTER): Use h8300_reg_class_from_letter.
24693 (h8300_move_ratio): Declare.
24694 (MOVE_RATIO): Use it.
24695 * config/h8300/h8300.c (h8300_move_ratio): New variable.
24696 (h8300_init_once): Initialize it.
24697 (h8300_reg_class_from_letter): New function.
24698 (print_operand): Add an 'm' prefix for printing ".b", ".w" or ".l".
24699 (h8sx_emit_movmd, h8sx_split_movmd): New functions.
24700 * config/h8300/h8300.md (UNSPEC_MOVMD): New unspec constant.
24701 (COUNTER_REG, SOURCE_REG, DESTINATION_REG): New register constants.
24702 (movstrsi, movmd): New expanders.
24703 (movmd_internal): New insn.
24704 2003-06-06 Richard Sandiford <rsandifo@redhat.com>
24705 * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Define.
24706 2003-06-04 Richard Sandiford <rsandifo@redhat.com>
24707 * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxnelf for -msx -mn.
24708 * config/h8300/h8300.c (asm_file_start): Use .h8300sxn likewise.
24709 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
24710 * config/h8300/h8300.c (nibble_operand): Fix warning.
24711 * config/h8300/h8300.md (movstricthi): Set adjust_length to no.
24712 (movsi_h8sx): Likewise here and the normal h8sx movhi pattern.
24713 (movsf_h8300h): Disable for TARGET_H8300SX.
24714 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
24715 * config/h8300/h8300.h (PREDICATE_CODES): Add h8300_ldm_parallel,
24716 h8300_stm_parallel and h8300_return_parallel.
24717 * config/h8300/h8300.c (h8300_push_pop, h8300_stack_offset_p,
24718 h8300_ldm_stm_regno, h8300_ldm_stm_parallel, h8300_ldm_parallel,
24719 h8300_stm_parallel, h8300_return_parallel): New functions.
24720 (h8300_expand_prologue): Don't enforce ldm/stm register alignment
24721 if TARGET_H8300SX. Use h8300_push_pop.
24722 (h8300_expand_epilogue): Likewise. Try to merge the return insn
24723 and final pop when generating h8sx code. Always emit some form
24724 of return insn.
24725 * config/h8300/h8300.md: Don't enforce register alignment in
24726 stm peepholes if TARGET_H8300SX.
24727 (ldm_h8300s, stm_h8300s, return_h8sx): New patterns.
24728 (ldm_h8300s_[234], stm_h8300_[234]): Disable.
24729 (epilogue): Expect h8300_expand_epilogue to emit a return insn.
24730 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
24731 * config/h8300/t-h8300 (MULTILIB_OPTIONS): Add a -msx multilib.
24732 (MULTILIB_DIRNAMES): Add a directory for it.
24733 (MULTILIB_MATCHES): Delete.
24734 2003-05-28 Richard Sandiford <rsandifo@redhat.com>
24735 * final.c (walk_alter_subreg): Handle addresses with subregs
24736 inside a ZERO_EXTEND or AND.
24737 * config/h8300/h8300-protos.h (h8300_get_index): Declare.
24738 * config/h8300/h8300.h (INDEX_REG_CLASS): Set to GENERAL_REGS
24739 if TARGET_H8300SX.
24740 (GO_IF_LEGITIMATE_ADDRESS): Use h8300_get_index.
24741 * config/h8300/h8300.c (print_operand_address): Handle @(dd,RnL.b),
24742 @(dd,Rn.w) and @(dd,ERn.L).
24743 (h8300_displacement_size): Take the whole address as argument.
24744 (h8300_classify_operand, h8300_short_move_mem_p): Adjust accordingly.
24745 2003-05-28 Richard Sandiford <rsandifo@redhat.com>
24746 * config/mips/mips-protos.h (h8300_operands_match_p): Declare.
24747 (h8sx_mergeable_memrefs_p): Declare.
24748 * config/h8300/h8300.h (HAVE_POST_DECREMENT): Define to TARGET_H8300SX.
24749 (HAVE_PRE_INCREMENT): Likewise.
24750 (GO_IF_LEGITIMATE_ADDRESS): Accept pre/post increment/decrement
24751 addresses for TARGET_H8300SX,
24752 * config/h8300/h8300.c (print_operand_address): Deal with PRE_INC
24753 and POST_DEC.
24754 (movb_length_table, movl_length_table): New tables.
24755 (movw_length_table): Define to movb_length_table.
24756 (h8300_displacement_size): New, split out from...
24757 (h8300_classify_address): ...here. Handle pre/post inc/dec.
24758 (h8300_short_immediate_length): Allow H8OP_MEM_COMPLEX operands.
24759 (h8300_insn_length_from_table): Add cases for movb, movw and movl.
24760 (h8sx_mergeable_memrefs_p, h8300_operands_match_p): New functions.
24761 (output_plussi): Use add.l #xx:3,Rn and sub.l #xx:3,Rn for h8sx.
24762 (compute_plussi_length, compute_plussi_cc): Update accordingly.
24763 (h8sx_unary_shift_operator): Get the mode from the operator.
24764 (binary_shift_operator): Likewise.
24765 * config/h8300/h8300.md: If a peephole2 applies gen_lowpart to
24766 a memory reference, check whether the reference is offsettable.
24767 (length_table): Add movb, movw and movl.
24768 (movqi): Add new h8sx pattern. Don't force one operand to be a
24769 register when generating h8sx code.
24770 (movhi, movsi, movsf): Likewise.
24771 (movstrictqi): Use the length_table attribute.
24772 (movstricthi): Likewise. Add h8sx alternative for mov.w #xx:3,Rn.
24773 (addqi3): Split into a define_expand and define_insn. Don't accept
24774 memory operands in the expander. Use h8300_operands_match_p to
24775 check for matching operands in the define_insn.
24776 (subqi3, negqi2, one_cmplqi2): Likewise.
24777 (add[hs]i3): Don't accept memory operands in the expander. Likewise
24778 in any patterns that are unused in h8sx code. In the h8sx patterns,
24779 use h8300_operands_match_p to check whether operands match.
24780 (sub[hs]i3, and[hi]3, ior[hs]i3, xor[hs]i3, neg[hsi]3,
24781 one_cmpl[hs]i3): Likewise.
24782 (andqi3, iorqi3, xorqi3): Likewise. Don't call fix_bit_operand
24783 in the expander.
24784 2003-05-23 Richard Sandiford <rsandifo@redhat.com>
24785 * config/h8300/h8300-protos.h (expand_a_shift): Return a bool.
24786 (h8300_insn_length_from_table): Add a second parameter.
24787 (output_h8sx_shift): Declare.
24788 * config/h8300/h8300.h (OK_FOR_W, OK_FOR_Y): New macros.
24789 (EXTRA_CONSTRAINT): Replace with...
24790 (EXTRA_CONSTRAINT_STR): ...this. Use OK_FOR_W and OK_FOR_Y.
24791 (CONSTRAINT_LEN): Define, returning 2 for 'W' and 'Y'.
24792 (PREDICATE_CODES): Add entries for h8sx_unary_shift_operator
24793 and h8sx_binary_shift_operator.
24794 * config/h8300/h8300.c (two_insn_adds_subs_operand): Return false
24795 for TARGET_H8300SX.
24796 (bit_operand): Replace use of EXTRA_CONSTRAINT with OK_FOR_U.
24797 (bit_memory_operand, fix_bit_operand): Likewise.
24798 (h8300_length_table_for_insn): Remove.
24799 (h8300_classify_operand): Fix check for 16-bit operands in 32-bit
24800 instructions.
24801 (h8300_short_immediate_length, h8300_binary_length): New functions.
24802 (h8300_insn_length_from_table): Add an opcodes parameter. Rework.
24803 (output_plussi): Use sub to add negative constants.
24804 (compute_plussi_length): Adjust accordingly.
24805 (h8sx_single_shift_type): New enum.
24806 (h8sx_single_shift, h8sx_unary_shift_operator,
24807 h8sx_binary_shift_operator, output_h8sx_shift): New functions.
24808 (expand_a_shift, expand_a_rotate): Emit nothing if the shift is a
24809 single h8sx instruction. Return false in this case.
24810 * config/h8300/h8300.md (length_table): Add short_immediate.
24811 (length): Pass the operand array to h8300_insn_length_from_table.
24812 (adjust_length): Assume "no" for insns with a length_table attribute.
24813 (*cmphi_h8300hs, cmpsi): Add alternatives for #xx:3.
24814 (*addhi3_h8300hs): Don't use for h8sx.
24815 (*addhi3_h8sx): New pattern, with alternatives for add.w #xx:3
24816 and sub.w #xx:3.
24817 (ashl[qhs]i3, lshr[qhs]i3, ashr[qhs]i3, rotl[qhs]i3): Change operand
24818 1's predicate to nonimmediate_operand. Only skip default expansion
24819 if expand_a_shift or expand_a_rotate returns true. Add new patterns
24820 for single h8sx shift instructions.
24821 2003-05-22 Alexandre Oliva <aoliva@redhat.com>
24822 * config/h8300/h8300.c (nibble_operand): Split out of...
24823 (reg_or_nibble_operand): ... this.
24824 * config/h8300/h8300.h (PREDICATE_CODES): Added nibble_operand.
24825 * config/h8300/h8300.md: (mulqihi3, mulhisi3, umulqihi3,
24826 umulhisi3): Introduce expand, and introduce separate insns for
24827 sign- or zero-extended REG and already-extended CONST_INT.
24828 2003-05-20 Richard Sandiford <rsandifo@redhat.com>
24829 * config/h8300/h8300.c (h8300_unary_length): Fix miscounting.
24830 * config/h8300/h8300.md (subqi3): Generalize for h8sx.
24831 (subhi3): Likewise. Don't accept immediates for operand 1.
24832 Remove the early clobber from second alternative of the h8300s pattern.
24833 (subsi3): Generalize for h8sx. Force operand 2 into a register
24834 on plain h8300 targets.
24835 (subsi3_h8300): Use h8300_dst_operand for consistency with expander.
24836 (subsi3_h8300h): Generalize for h8sx.
24837 (one_cmplqi2, one_cmplhi2, one_cmplsi2): Likewise.
24838 2003-05-19 Alexandre Oliva <aoliva@redhat.com>
24839 * config/h8300/h8300.c (reg_or_nibble_operand): New.
24840 * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
24841 (TARGET_H8300SXMUL): New.
24842 (CONST_OK_FOR_P): New.
24843 (CONST_OK_FOR_LETTER_P): Adjust.
24844 * config/h8300/h8300.md (mulqihi3, mulhisi3, umulqihi3,
24845 umulhisi3): Accept 4-bit immediate on H8SX.
24846 (mulhi3, mulsi3, smulsi3_highpart, umulsi3_highpart): New.
24847 (udivsi3, divhi3, udivsi3, divsi3): New.
24848 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
24849 * config/h8300/h8300-protos.h (h8300_insn_length_from_table): Declare.
24850 * config/h8300/h8300.h (OK_FOR_Q): New macro.
24851 (EXTRA_CONSTRAINT): Use it to check the 'Q' constraint.
24852 (PREDICATE_CODES): Add h8300_src_operand and h8300_dst_operand.
24853 Add ADDRESSOF to the bit_operand entry.
24854 * config/h8300/h8300.c (h8300_dst_operand): New predicate.
24855 (h8300_src_operand): Likewise.
24856 (bit_operand): Check nonimmediate_operand rather than general_operand.
24857 Accept any nonimmediate_operand in h8sx code.
24858 (h8300_and_costs): Initialize operands[1].
24859 (h8300_rtx_costs) <AND>: Return false if the operands aren't valid.
24860 (h8300_operand_class): New enum.
24861 (h8300_length_table): New typedef.
24862 (addb_length_table, addw_length_table, addl_length_table,
24863 logicl_length_table): New tables.
24864 (logicb_length_table, logicw_length_table): New macros.
24865 (h8300_classify_operand, h8300_length_from_table,
24866 h8300_length_table_for_insn, h8300_unary_length,
24867 h8300_insn_length_from_table): New functions.
24868 (output_plussi): Only use adds and subs for register destinations.
24869 Disable redundant clause.
24870 (compute_plussi_cc): Likewise.
24871 (compute_plussi_length): Likewise. Use h8300_length_from_table
24872 to work out the length of an insn.
24873 (output_logical_op): Only use narrower immediate instructions
24874 if the destination is a register.
24875 (compute_logical_op_cc): Likewise.
24876 (compute_logical_op_length): Likewise. Use h8300_length_from_table.
24877 (h8300_adjust_insn_length): Tighten check for reg<->mem moves.
24878 * config/h8300/h8300.md (length_table): New attribute.
24879 (length): When an instruction has a length_table attribute, use
24880 h8300_insn_length_from_table to calculate its default length.
24881 (cmpqi): Use h8300_dst_operand for the first operand and
24882 h8300_src_operand for the second.
24883 (cmphi, *cmphi_h8300hs, cmpsi, negqi2, neghi2, neghi2_h8300h, negsi2,
24884 negsi2_h8300h, addqi3, addhi3, *addhi3_h8300, *addhi3_h8300hs, addsi3,
24885 addsi_h8300, addsi_h8300h, andhi3, andsi3, iorhi3,
24886 iorsi3, xorhi3, xorsi3): Likewise.
24887 (andqi3): Use h8300_src_operand for operand 2. Adjust the condition
24888 so that it allows any combination of operands for TARGET_H8300SX.
24889 (iorqi3, xorqi3): Likewise.
24890 (cmpqi): Use the length_table attribute.
24891 (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, andqi3, iorqi3,
24892 xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
24893 (cmpqi): Add 'Q' constraint.
24894 (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, addsi_h8300h, andqi3,
24895 iorqi3, xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
24896 2003-05-14 Richard Sandiford <rsandifo@redhat.com>
24897 * config/h8300/h8300.h (MASK_H8300SX): New macro.
24898 (TARGET_H8300S): True for both -ms and -msx.
24899 (TARGET_H8300SX): New macro.
24900 (TARGET_SWITCHES): Add entries for -msx and -mno-sx.
24901 * config/h8300/h8300.c (asm_file_start): Write .h8300sx for -msx.
24902 * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxelf for -msx.
24903 * config/h8300/t-h8300 (MULTILIB_MATCHES): Use -ms multilibs for -msx.
24904 [Temporary change.]
24905 2003-02-28 Alexandre Oliva <aoliva@redhat.com>
24906 * config/h8300/h8300.h (SIZE_TYPE, PTRDIFF_TYPE): Use short with
24907 16-bit pointers and 32-bit ints.
24908 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Accept
24909 CONST_DOUBLE with mode no wider than SImode.
24910 * config/h8300/h8300.md (extendqisi2_h8300): Add constraints for
24911 output operand.
24912 2003-02-27 Alexandre Oliva <aoliva@redhat.com>
24913 * config/h8300/h8300.c (general_operand_src): Match CONSTANT_P_RTX
24914 or SUBREG thereof.
24915 * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
24916 2003-02-22 Alexandre Oliva <aoliva@redhat.com>
24917 * config/h8300/h8300.c (dosize): Truncate sign * size to Pmode.
24918
24919 2004-05-28 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
24920
24921 * config.gcc (i[34567]86-*-mingw32*): Enable threads by default.
24922
24923 2004-07-07 Per Bothner <per@bothner.com>
24924
24925 * flow.c (attempt_auto_inc): Remove now-redundant PUT_CODE.
24926
24927 2004-07-07 Mike Stump <mrs@apple.com>
24928
24929 * darwin.h (ASM_OUTPUT_LABELREF): Fix -fno-leading-underscore.
24930 * darwin.c (machopic_non_lazy_ptr_name, machopic_stub_name)
24931 (machopic_finish): Likewise.
24932
24933 2004-07-07 Richard Henderson <rth@redhat.com>
24934
24935 * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look
24936 through any value-preserving cast.
24937
24938 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
24939
24940 * function.c (assign_parm_find_data_types): Call
24941 FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.
24942
24943 2004-07-07 Steven Bosscher <stevenb@suse.de>
24944
24945 * tree-cfg.c (group_case_labels): Remove case labels that have
24946 the same target as the default case.
24947
24948 2004-07-07 Steven Bosscher <stevenb@suse.de>
24949
24950 * tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS
24951 regardless of DECL_LANG_SPECIFIC being present or not.
24952 * tree.h (DECL_NUM_STMTS): Purge.
24953
24954 2004-07-07 Andrew Pinski <apinski@apple.com>
24955
24956 * configure: Regenerate with the right autoconf.
24957
24958 2004-07-07 David Edelsohn <edelsohn@gnu.org>
24959
24960 * ifcvt.c (total_bb_rtx_cost): New function.
24961 (find_if_case_1): Compare rtx_cost of basic block to cost of
24962 BRANCH_COST insns.
24963 (find_if_case_2): Same.
24964
24965 2004-07-07 Eric Botcazou <ebotcazou@libertysurf.fr>
24966
24967 PR target/10567
24968 * config/sparc/sparc.c (load_pic_register): Honor flag_delayed_branch.
24969 (output_return): Likewise.
24970 (output_sibcall): Abort if !flag_delayed_branch.
24971 (sparc_function_ok_for_sibcall): Return 0 if !flag_delayed_branch.
24972 (emit_and_preserve): New function.
24973 (sparc_output_mi_thunk): Use it. Honor flag_delayed_branch. Emit an
24974 indirect jump to the thunked-to function if !flag_delayed_branch.
24975 * config/sparc/sparc.md (delayed_branch): New attribute.
24976 (load_pcrel_sym): Honor flag_delayed_branch. Use above
24977 attribute to compute the length of the insn.
24978 (goto_handler_and_restore): Likewise.
24979
24980 2004-07-07 Andrew Pinski <apinski@apple.com>
24981
24982 PR tree-optimization/15777
24983 * fold-const.c (fold_single_bit_test): Fold the x^1 expression.
24984
24985 * expr.c (expand_expr_real_1): Fix formating.
24986 BUFFER_REF and IN_EXPR are dead.
24987 * fold-const.c (non_lvalue): BUFFER_REF is dead.
24988 * tree-inline.c (estimate_num_insns_1): Likewise.
24989 * tree-pretty-print.c (dump_generic_node): BUFFER_REF,
24990 IN_EXPR, SET_LE_EXPR, and CARD_EXPR are dead.
24991 * tree.def (BUFFER_REF, IN_EXPR, SET_LE_EXPR, CARD_EXPR): Kill.
24992
24993 2004-07-07 H.J. Lu <hongjiu.lu@intel.com>
24994
24995 * collect2.c (dump_file): Don't call cplus_demangle if
24996 HAVE_LD_DEMANGLE is defined.
24997 (main): Pass "--demangle" to ld if no_demangle is not 0 and
24998 HAVE_LD_DEMANGLE is defined. Don't set current_demangling_style
24999 if HAVE_LD_DEMANGLE is defined.
25000
25001 * configure.ac (--with-demangler-in-ld): Added
25002 (HAVE_LD_DEMANGLE): Define if ld supports --demangle when
25003 --with-demangler-in-ld is used.
25004 * config.in: Regenerated.
25005 * configure: Likewise.
25006
25007 2004-07-07 Roger Sayle <roger@eyesopen.com>
25008
25009 * config/rs6000/rs6000.c (struct processor_costs): Add new fields
25010 for simple floating point operations "fp", double precision
25011 multiplication "dmul", and single and double precision division
25012 "sdiv" and "ddiv". Update all CPU variant tables as appropriate.
25013 (ppc630_cost): New table split from ppc620_cost, to distinguish
25014 differences in floating point latencies.
25015 (rs6000_override_options): Use ppc630_cost for PROCESSOR_PPC630.
25016 (rs6000_rtx_costs): Add support for single and double precision
25017 floating point addition, subtraction, multiplication, division,
25018 fused-multiply-add, fused-multiply-sub, negation, absolute value
25019 and negative absolute value. Tweak MEM case to use prefered idiom.
25020
25021 2004-07-07 Richard Henderson <rth@redhat.com>
25022
25023 * tree-flow-inline.h (may_propagate_copy): Move...
25024 * tree-ssa-copy.c (may_propagate_copy): ... here. Fail if we
25025 attempt to copy between types requiring conversion.
25026 * tree-flow.h (may_propagate_copy): Update decl.
25027 * tree-ssa-dom.c (cprop_operand): Tidy redundant tests.
25028
25029 2004-07-07 Jakub Jelinek <jakub@redhat.com>
25030
25031 * config/i386/i386.c (override_options): Don't set x86_prefetch_sse
25032 from -mtune= option.
25033
25034 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
25035
25036 * builtins.c: Rename movstr*, except for movstrict*, to
25037 movmem* and clrstr* to clrmem*.
25038 * expr.c: Likewise.
25039 * expr.h: Likewise.
25040 * genopinit.c: Likewise.
25041 * integrate.c: Likewise.
25042 * local-alloc.c: Likewise.
25043 * optabs.c: Likewise.
25044 * optabs.h: Likewise.
25045 * config/alpha/alpha.h: Likewise.
25046 * config/alpha/alpha.md: Likewise.
25047 * config/arm/arm-protos.h: Likewise.
25048 * config/arm/arm.c: Likewise.
25049 * config/arm/arm.md: Likewise.
25050 * config/avr/avr.md: Likewise.
25051 * config/c4x/c4x.c: Likewise.
25052 * config/c4x/c4x.md: Likewise.
25053 * config/frv/frv.md: Likewise.
25054 * config/i386/i386-protos.h: Likewise.
25055 * config/i386/i386.c: Likewise.
25056 * config/i386/i386.h: Likewise.
25057 * config/i386/i386.md: Likewise.
25058 * config/i860/i860.c: Likewise.
25059 * config/i860/i860.md: Likewise.
25060 * config/ip2k/ip2k.md: Likewise.
25061 * config/ip2k/libgcc.S: Likewise.
25062 * config/ip2k/t-ip2k: Likewise.
25063 * config/m32r/m32r.c: Likewise.
25064 * config/m32r/m32r.md: Likewise.
25065 * config/mcore/mcore.md: Likewise.
25066 * config/mips/mips.c: Likewise.
25067 * config/mips/mips.md: Likewise.
25068 * config/ns32k/ns32k.c: Likewise.
25069 * config/ns32k/ns32k.h: Likewise.
25070 * config/ns32k/ns32k.md: Likewise.
25071 * config/pa/pa.c: Likewise.
25072 * config/pa/pa.md: Likewise.
25073 * config/pdp11/pdp11.h: Likewise.
25074 * config/pdp11/pdp11.md: Likewise.
25075 * config/rs6000/rs6000.c: Likewise.
25076 * config/rs6000/rs6000.md: Likewise.
25077 * config/s390/s390-protos.h: Likewise.
25078 * config/s390/s390.c: Likewise.
25079 * config/s390/s390.md: Likewise.
25080 * config/sh/lib1funcs.asm: Likewise.
25081 * config/sh/sh.c: Likewise.
25082 * config/sh/sh.md: Likewise.
25083 * config/sh/t-sh: Likewise.
25084 * config/sparc/sparc.h: Likewise.
25085 * config/vax/vax.md: Likewise.
25086 * config/xtensa/xtensa.c: Likewise.
25087 * config/xtensa/xtensa.md: Likewise.
25088 * doc/invoke.texi: Likewise.
25089 * doc/md.texi: Likewise.
25090 * doc/rtl.texi: Likewise.
25091
25092 2004-07-07 Richard Sandiford <rsandifo@redhat.com>
25093
25094 PR target/16407
25095 * config/mips/mips-protos.h (mips_declare_common_object): Declare.
25096 * config/mips/mips.c (mips_declare_common_object): New function,
25097 mostly split out from...
25098 (mips_output_aligned_decl_common): ...here.
25099 * config/mips/mips.h (ASM_OUTPUT_LOCAL): Remove in favor of...
25100 (ASM_OUTPUT_ALIGNED_LOCAL): ...this new definition.
25101 * config/mips/iris6.h (ASM_OUTPUT_ALIGNED_LOCAL): Undefine this
25102 rather than ASM_OUTPUT_LOCAL. Call mips_declare_common_object.
25103
25104 2004-07-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25105
25106 PR c/16392
25107 * function.c (assign_parms): Fix typo from previous change.
25108
25109 2004-07-07 Jason Merrill <jason@redhat.com>
25110
25111 PR c++/15815
25112 * doc/extend.texi (C++ Interface): Correct information and
25113 discourage use.
25114
25115 2004-07-07 Vladimir Makarov <vmakarov@redhat.com>
25116
25117 PR target/16130
25118 PR target/16142
25119 PR target/16143
25120 * config/ia64/ia64.c (ia64_dfa_new_cycle): Reset DFA state for asm
25121 insn.
25122
25123 2004-07-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
25124
25125 PR target/1679.
25126 * config/m32r/m32r.c (m32r_function_symbol): New function:
25127 Generate a symbol name RTX with the correct m32r specific flags
25128 set.
25129 (block_move_call): Use new function to generate correct symbol.
25130 * config/m32r/m32r-protos.h: Add prototype for new funcion.
25131 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Use the new
25132 function.
25133
25134 2004-07-07 Nathan Sidwell <nathan@codesourcery.com>
25135
25136 * tree.h (TYPE_BINFO_OFFSET, TYPE_BINFO_VTABLE,
25137 TYPE_BINFO_VIRTUALS, TYPE_BINFO_BASETYPES,
25138 TYPE_BINFO_BASETYPE): Remove.
25139 (BINFO_BASETYPES, BINFO_N_BASETYPES, BINFO_BASETYPE): Rename
25140 to ...
25141 (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): ...
25142 here.
25143 (BINFO_BASEACCESSES, BINFO_BASEACCESS): Rename to ...
25144 (BINFO_BASE_ACCESSES, BINFO_BASE_ACCESS): ... here.
25145 (BINFO_INHERITANCE_CHAIN): Redocument as it is actually used.
25146 (struct tree_binfo): Rename base_types to base_binfos.
25147 * alias.c (record_component_aliases): Adjust BINFO macros.
25148 * dbxout.c (dbxout_type): Likewise.
25149 * dwarf2out.c (gen_member_die): Likewise.
25150 * sdbout.c (sdbout_one_type): Likewise.
25151 * tree-dump.c (deque_and_dump): Likewise.
25152 * config/i386/i386.c (classify_argument,
25153 contains_128bit_aligned_vector_p): Likewise.
25154
25155 2004-07-07 Nick Clifton <nickc@redhat.com>
25156
25157 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Change
25158 arguments to match TARGET_SETUP_INCOMING_VARARGS prototype.
25159
25160 2004-07-07 Nathan Sidwell <nathan@codesourcery.com>
25161
25162 * vec.h: Fix the example use.
25163
25164 2004-07-06 Richard Henderson <rth@redhat.com>
25165
25166 * langhooks-def.h (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Remove.
25167 * langhooks.h (struct lang_hooks): Remove gimple_before_inlining.
25168 * tree-inline.c (copy_body_r, setup_one_parameter,
25169 initialize_inlined_parameters, expand_call_inline,
25170 declare_inline_vars): Don't check it.
25171 (expand_calls_inline): Remove old version, rename new version
25172 from gimple_expand_calls_inline.
25173 * tree-optimize.c (execute_gimple): Remove.
25174 (pass_gimple): Don't run anything.
25175
25176 2004-07-06 Joseph S. Myers <jsm@polyomino.org.uk>
25177
25178 * doc/sourcebuild.texi: Use semicolons instead of commas in
25179 section title.
25180
25181 2004-07-06 Richard Henderson <rth@redhat.com>
25182
25183 * tree-sra.c (struct sra_walk_fns): Revert 2004-07-05 change.
25184 (sra_walk_modify_expr, scan_init): Likewise.
25185 (generate_element_zero): Check visited before scanning children.
25186 (generate_element_init): Set visited on error.
25187 (scalarize_init): Handle generate_element_init failure similar
25188 to use_block_copy.
25189
25190 2004-07-06 Joseph S. Myers <jsm@polyomino.org.uk>
25191
25192 * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Define.
25193 (warning, error, pedwarn, sorry): Use ATTRIBUTE_GCC_FE_DIAG.
25194
25195 2004-07-06 Richard Henderson <rth@redhat.com>
25196
25197 * config/i386/i386.c (legitimize_pic_address): Make static.
25198 (legitimize_address): Handle CONST with TLS operand.
25199 (ix86_expand_move): Don't call legitimize_pic_address directly.
25200 * config/i386/i386-protos.h (legitimize_pic_address): Remove.
25201
25202 2004-07-06 Roger Sayle <roger@eyesopen.com>
25203
25204 * ifcvt.c (struct noce_if_info): Add a Boolean b_unconditional field.
25205 (noce_try_sign_mask): Tweak rtx_cost check if t is evaluated anyway.
25206 (noce_process_if_block): Initialize if_info.b_unconditional if insn_b
25207 is currently executed unconditionally, i.e. not in "else_bb".
25208
25209 2004-07-06 Steven Bosscher <stevenb@suse.de>
25210
25211 * config/alpha/alpha.c (alpha_use_dfa_pipeline_interface): Remove.
25212 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
25213 * config/arm/arm.c (arm_use_dfa_pipeline_interface): Remove.
25214 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
25215 * config/frv/frv.c (frv_use_dfa_pipeline_interface): Remove.
25216 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
25217 * config/i386/i386.c (ia32_use_dfa_pipeline_interface): Remove.
25218 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
25219 * config/ia64/ia64.c (ia64_use_dfa_pipeline_interface): Remove.
25220 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
25221 * config/pa/pa.c (hhpa_use_dfa_pipeline_interface): Remove.
25222 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
25223 * config/sparc/sparc.c (sparc_use_dfa_pipeline_interface): Remove.
25224 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
25225 * config/v850/v850.c (v850_use_dfa_pipeline_interface): Remove.
25226 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
25227
25228 2004-07-06 Daniel Berlin <dberlin@dberlin.org>
25229
25230 * dojump.c (do_jump): REFERENCE_EXPR is dead.
25231 * expr.c (expand_expr_real_1): Ditto.
25232 * tree-inline.c (estimate_num_insns_1): Ditto.
25233 * tree-pretty-print.c (dump_generic_node): Ditto.
25234 (op_symbol): Ditto.
25235 * tree.def: Ditto.
25236
25237 2004-07-06 Daniel Berlin <dberlin@dberlin.org>
25238
25239 * tree-ssa-pre.c (reference_node_pool): New pool.
25240 (find_or_generate_expression): Class 'r' is okay too.
25241 (create_value_expr_from): Ditto.
25242 (add_to_sets): LHS should not include vuses.
25243 (eliminate): Ditto.
25244 (compute_avail): Reverse ordering of tests.
25245 Valuize INDIRECT_REF as well.
25246
25247 2004-07-06 Richard Sandiford <rsandifo@redhat.com>
25248
25249 PR rtl-optimization/16380
25250 * loop.c (check_dbra_loop): Sink comparison instructions if they
25251 do something other than set cc0.
25252
25253 2004-07-06 James E Wilson <wilson@specifixinc.com>
25254
25255 * doc/interface.texi (longjmp and automatic variables): Delete
25256 paragraph recommending taking the address of a variable.
25257
25258 2004-07-06 Nathan Sidwell <nathan@codesourcery.com>
25259
25260 * vec.h (VEC_embedded_alloc): Remove.
25261 (VEC_embedded_size, VEC_embedded_init): New.
25262 (VEC_alloc, VEC_reserve, VEC_safe_push, VEC_safe_insert): Add
25263 MEM_STAT_INFO.
25264 (VEC_truncate): New.
25265 (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL.
25266 (vec_embedded_alloc): Remove.
25267 * vec.c (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL, adjust.
25268 (vec_embedded_alloc): Remove.
25269
25270 2004-07-06 Mark Mitchell <mark@codesourcery.com>
25271
25272 * Makefile.in (langhooks.o): Do not depend on gt-langhooks.h.
25273 (gt-langhooks.h): Remove.
25274
25275 2004-07-06 George Helffrich <george@gly.bris.ac.uk>
25276
25277 * xcoffout.h (DBX_FINISH_SYMBOL): Fix typo.
25278
25279 2004-07-06 Eric Botcazou <ebotcazou@libertysurf.fr>
25280
25281 * config/sparc/sparc.c (get_pc_symbol): Rename into
25282 add_pc_to_pic_symbol.
25283 (get_pc_symbol_name): Rename into add_pc_to_pic_symbol_name.
25284 (load_pic_register): Account for previous changes.
25285 Use reg_names. Don't create the label twice.
25286 * config/sparc/sparc.md (UNSPEC_GET_PC): Rename into
25287 UNSPEC_LOAD_PCREL_SYM.
25288 (get_pc): Rename into load_pcrel_sym. Add predicate to
25289 operands. Remove condition.
25290
25291 2004-07-06 Nathan Sidwell <nathan@codesourcery.com>
25292
25293 * dbxout.c (dbxout_type): Don't test whether the binfo slot of
25294 RECORD, UNION & QUAL_UNION is actually a binfo.
25295
25296 * tree.h (TREE_VIA_VIRTUAL): Rename to ...
25297 (BINFO_VIRTUAL_P): ... here. Require TREE_BINFO only.
25298 (BINFO_MARKED, BINFO_FLAG_[16]): New binfo flags.
25299 * dbxout.c (dbxout_type): Use BINFO_VIRTUAL_P.
25300 * dwarf2out.c (add_data_member_location_attribute): Likewise.
25301 (gen_inheritance_die): Likewise.
25302 * tree-dump.c (deque_and_dump): Likewise.
25303 * doc/c-tree.texi (Binfos): Add under reconstruction note.
25304
25305 2004-07-06 Steven Bosscher <stevenb@suse.de>
25306
25307 * config/mcore/mcore.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
25308 Define.
25309 * config/mcore/mcore.md: Model memory latency with a simple DFA
25310 pipeline description instead of a define_function_unit.
25311
25312 2004-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25313
25314 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Extra arg.
25315 * langhooks.h (var_mod_type_p): Likewise.
25316 * c-decl.c (finish_decl): Add extra arg to variably_modified_type_p.
25317 * expr.c (count_type_elements): Properly handle return from
25318 array_type_nelts and properly test for overflow.
25319 * gimplify.c (gimplify_init_constructor): Properly handle return
25320 from array_type_nelts.
25321 (gimplify_addr_expr): Remove redundant clear of TREE_SIDE_EFFECTS.
25322 * integrate.c (copy_decl_for_inlining): Correct comments.
25323 * tree-inline.c (remap_decl): Update comments, remove dead code,
25324 and copy DECL_FIELD_OFFSET and DECL_QUALIFIER, if they exist.
25325 (remap_type): Only remap if variably modified by vars in function
25326 being inlined.
25327 (copy_body_r): Use compatible_type langhooks to see when can fold.
25328 (setup_one_parameter): Don't remap type.
25329 (inline_forbidden_p_1): Add arg to variably_modified_type_p.
25330 * tree.c (recompute_tree_invarant_for_addr_expr): Properly
25331 compute TREE_INVARIANT for decl case.
25332 (find_var_from_fn): New function.
25333 (variably_modified_type_p): Add arg and call new function.
25334 * tree.h (variably_modified_type_p): Add extra arg.
25335
25336 2004-07-05 Eric Botcazou <ebotcazou@libertysurf.fr>
25337
25338 * config/sparc/sparc.md (nonlocal_goto): Remove disabled code.
25339 (goto_handler_and_restore_v9): Delete disabled insn.
25340 (goto_handler_and_restore_v9_sp64): Likewise.
25341
25342 2004-07-05 Roger Sayle <roger@eyesopen.com>
25343
25344 * calls.c (load_register_parameters): Call expand_shift instead
25345 of expand_binop with ashl_optab (or other shift optab) directly.
25346 * expr.c (emit_group_load, emit_group_store): Likewise.
25347 * function.c (assign_parm_setup_block): Likewise.
25348 * stmt.c (shift_return_value): Likewise.
25349
25350 2004-07-05 Jakub Jelinek <jakub@redhat.com>
25351
25352 * expr.c (expand_assignment): Disable the bitfield += optimizations.
25353
25354 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
25355
25356 * doc/sourcebuild.texi: Revert previous patch.
25357
25358 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
25359
25360 * c-decl.c, config/m32r/m32r.c, expr.c, optabs.c: Don't check
25361 TARGET_MEM_FUNCTIONS.
25362 * system.h: Poison TARGET_MEM_FUNCTIONS.
25363 * libfuncs.h (LTI_bcopy, LTI_bcmp, LTI_bzero, bcopy_libfunc,
25364 bcmp_libfunc, bzero_libfunc): Remove.
25365 * optabs.c (init_obtabs): Don't set bcopy_libfunc, bcmp_libfunc or
25366 bzero_libfunc.
25367 * doc/tm.texi (TARGET_MEM_FUNCTIONS): Remove.
25368 * doc/standards.texi: Don't mention calling BSD string functions.
25369 * doc/invoke.texi: Likewise. Mention that memmove may be called.
25370 * config/vax/t-memfuncs: New.
25371 * config/memcmp.c, config/memcpy.c, config/memmove.c,
25372 config/memset.c: New.
25373 * config/pdp11/t-pdp11 (LIB2FUNCS_EXTRA): Use these files.
25374 * config.gcc (vax-*-bsd*, vax-*-sysv*, vax-*-ultrix*): Use
25375 vax/t-memfuncs.
25376 * config/alpha/alpha.h, config/arc/arc.h, config/arm/arm.h,
25377 config/avr/avr.h, config/c4x/c4x.h, config/cris/aout.h,
25378 config/elfos.h, config/gnu.h, config/h8300/h8300.h,
25379 config/i386/gas.h, config/ia64/ia64.h, config/interix.h,
25380 config/ip2k/ip2k.h, config/lynx-ng.h, config/m32r/m32r.h,
25381 config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h,
25382 config/netbsd.h, config/openbsd.h, config/pa/pa.h,
25383 config/rs6000/rs6000.h, config/rtems.h, config/s390/s390.h,
25384 config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
25385 config/svr3.h: Don't define TARGET_MEM_FUNCTIONS.
25386
25387 2004-07-05 Richard Henderson <rth@redhat.com>
25388
25389 * function.c (assign_parm_setup_reg): Properly rename variables in
25390 FUNCTION_ARG_CALLEE_COPIES section.
25391
25392 2004-07-05 Zack Weinberg <zack@codesourcery.com>
25393
25394 * tree-mudflap.c: Include cgraph.h.
25395 (mf_init_extern_trees): Rename to mudflap_init. Export.
25396 Rewrite to create synthetic declarations instead of looking
25397 up declarations from mf-runtime.h.
25398 (mf_make_builtin, mf_make_cache_struct_type): New functions.
25399 (mf_cache_shift_decl, mf_cache_mask_decl, mf_unregister_fndecl):
25400 Correct commentary.
25401 (execute_mudflap_function_decls, mudflap_register_call):
25402 Don't call mf_init_extern_trees.
25403 (mudflap_finish_file): Use cgraph_build_static_cdtor.
25404
25405 * tree-mudflap.h: Update prototypes.
25406 * c-mudflap.c: Delete file.
25407 * c-common.c: Include tree-mudflap.h.
25408 (c_common_nodes_and_builtins): Call mudflap_init if appropriate.
25409 * Makefile.in: Remove all references to c-mudflap.o.
25410 Update dependencies.
25411
25412 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25413
25414 * pa.md (prefetch, prefetch_32, prefetch_64): Only allow short
25415 displacements with the spatial-locality cache-control completer.
25416
25417 2004-07-05 Zack Weinberg <zack@codesourcery.com>
25418
25419 * langhooks.c: Don't include gt-langhooks.h.
25420 (var_labelno): Delete.
25421 (lhd_set_decl_assembler_name): Do not append a distinguishing
25422 number to file-scope internal-linkage declarations for the first
25423 input file, even if they have DECL_CONTEXT set. Use DECL_UID of
25424 the declaration itself (if at block scope), or its containing
25425 TRANSLATION_UNIT_DECL (if at file scope) for the distinguishing
25426 number.
25427
25428 * opts.c (cur_in_fname): New global.
25429 * opts.h: Declare it.
25430 * tree.c: Include opts.h.
25431 (make_node_stat): If creating a TRANSLATION_UNIT_DECL, give it
25432 DECL_UID equal to cur_in_fname.
25433 (copy_node_stat): Do not change DECL_UID when copying a
25434 TRANSLATION_UNIT_DECL.
25435 (build_common_tree_nodes): Adjust next_decl_uid to reserve the
25436 range 0 .. num_in_fnames-1 for TRANSLATION_UNIT_DECLs.
25437
25438 * c-decl.c (c_static_assembler_name): Delete.
25439 * c-tree.h (c_static_assembler_name): Delete prototype.
25440 * c-lang.c, objc/objc-lang.c: Don't override
25441 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME.
25442
25443 * Makefile.in (tree.o): Update dependencies.
25444 (GTFILES): Remove langhooks.c.
25445
25446 2004-07-05 Roger Sayle <roger@eyesopen.com>
25447
25448 * fold-const.c (fold) <TRUNC_MOD_EXPR>: Optimize unsigned modulus
25449 by a power of two into a bit-wise AND, i.e. "X % C" as "X & (C-1)".
25450 Normalize "X % C" as "X % -C" for signed modulus and negative C.
25451 Optimize "X % -Y" as "X % Y" for signed modulus.
25452 <EQ_EXPR>: Recursively call "fold" when transforming "(X % Y) == 0"
25453 into "((unsigned) X % Y) == 0".
25454
25455 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
25456
25457 * sourcebuild.texi (Config Fragments): Use @comma{} in
25458 cross-reference to section title.
25459
25460 2004-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25461
25462 * tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.
25463 * gimplify.c (gimple_add_tmp_var, gimplify_bind_expr): Use it.
25464 (gimplify_target_expr, gimplify_expr): Likewise.
25465 (copy_if_shared_r): No longer need special case for BIND_EXPR.
25466 (unshare_body, unvisit_body): Only look at nested if BODY_P is
25467 whole function.
25468 (gimplify_compound_lval): See if we can strip any useless conversion.
25469 (gimplify_modify_expr, gimplify_modify_expr_to_memcpy): Take size
25470 from RHS, not LHS.
25471 (gimplify_modify_expr_to_memset): Likewise.
25472 (gimplify_expr, case CONSTRUCTOR): Handle use as statement.
25473 * tree-inline.c (setup_one_parameter): Use DECL_SEEN_IN_BIND_EXPR_P.
25474 (declare_inline_vars): Likewise.
25475 (walk_type_fields): New function.
25476 (walk_tree): Use it.
25477 * tree-nested.c (create_tmp_var_for): Show seen in BIND_EXPR.
25478
25479 * tree-sra.c (struct sra_walk_fns): Init function now returns bool.
25480 (sra_walk_modify_expr): Allow init function to fail.
25481 (scan_init): Now returns bool.
25482 (generate_element_init): If can't understand INIT, return false.
25483 (scalarize_init): Return false if generate_element_init does.
25484
25485 * tree-pretty-print.c (dump_generic_node, case ARRAY_TYPE): Properly
25486 print bounds.
25487
25488 * expr.c (expand_expr_real_1, case SWITCH_EXPR): Don't check against
25489 bounds if bounds aren't constant.
25490
25491 * tree-cfg.c (verify_expr): Use CHECK_OP in binary case.
25492
25493 * function.c, langhooks-def.h, langhooks.h: Move max_size hook
25494 to type hooks; remove bogus PARAMS.
25495
25496 2004-07-05 Nathan Sidwell <nathan@codesourcery.com>
25497
25498 * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Use TYPE_LANG_SLOT_1.
25499 * dwarf2out.c (add_data_member_location_attribute): Check for
25500 TREE_BINFO.
25501 * tree.c (tree_node_kinds): Add "binfos".
25502 (binfo_lang_slots): New.
25503 (make_node_stat): Add TREE_BINFO.
25504 (make_tree_binfo_stat): New.
25505 (tree_node_structure): Add TREE_BINFO.
25506 * tree.def (TREE_BINFO): New.
25507 * tree.h (REC_OR_UNION_CHECK): Rename to ...
25508 (RECORD_OR_UNION_CHECK): ... here.
25509 (NOT_RECORD_OR_UNION_CHECK): New.
25510 (TRE_VIA_VIRTUAL): Allow TREE_LIST or TREE_BINFO.
25511 (TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD): Adjust for
25512 RECORD_OR_UNION_CHECK.
25513 (TYPE_BINFO): Use RECORD_OR_UNION_CHECK.
25514 (TYPE_LANG_SLOT_1): New.
25515 (BINFO_TYPE, BINFO_OFFSET, BINFO_VTABLE, BINFO_VIRTUALS,
25516 BINFO_BASETYPES, TYPE_BINFO_BASETYPES, BINFO_VPTR_FIELD,
25517 BINFO_BASEACCESSES, BINFO_INHERITANCE_CHAIN): Adjust.
25518 (BINFO_ELTS): Remove.
25519 (BINFO_LANG_SLOT): New.
25520 (struct tree_binfo): New.
25521 (binfo_lang_slots): Declare.
25522 (enum tree_node_structure_enum): Add TS_BINFO.
25523 (union tree_node): Add binfo.
25524 (make_tree_binfo_stat): Declare.
25525 (make_tree_binfo): New.
25526 (enum tree_node_kind): Add binfo_kind.
25527
25528 * objc/objc-act.c (start_class, objc_declare_protocols,
25529 start_protocols): Use TYPE_LANG_SLOT_1.
25530 * objc/objc-act.h (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): Rename
25531 to ...
25532 (CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS): ... here.
25533 (CLASS_IVARS, CLASS_RAW_IVARS, CLASS_STATIC_TEMPLATE,
25534 CLASS_CATEGORY_LIST, CLASS_PROTOCOL_LIST, CLASS_OWN_IVARS,
25535 PROTOCOL_LIST, PROTOCOL_FORWARD_DECL): Use TYPE_LANG_SLOT_1.
25536
25537 2004-07-05 Steven Bosscher <stevenb@suse.de>
25538
25539 * rtl.h (struct rtx_def): Remove the integrated flag.
25540 Use the return_val flag for MEM_SCALAR_P.
25541 Reshuffle and update flags in CLEAR_RTX_FLAGS.
25542
25543 2004-07-05 Richard Sandiford <rsandifo@redhat.com>
25544
25545 PR target/16357
25546 * config/mips/mips.c (mips_block_move_straight): Pass BLKmode memrefs
25547 to mips_expand_unaligned_load, mips_expand_unaligned_store, and
25548 move_by_pieces.
25549
25550 2004-07-05 Josef Zlomek <zlomekj@suse.cz>
25551
25552 * var-tracking.c: Fix some comments.
25553 (frame_stack_adjust): New.
25554 (vt_stack_adjustments): Init stack_adjust of entry block to
25555 minus stack adjustment of function prologue.
25556 (adjust_stack_reference): Do not adjust if adjustment == 0.
25557 (compute_bb_dataflow): Use plus_constant instead of gen_rtx_PLUS.
25558 (emit_notes_in_bb): Likewise.
25559 (vt_add_function_parameters): Do not adjust locations of
25560 function arguments.
25561 (vt_initialize): Compute the stack adjustment of function
25562 prologue and offset the initial "location" of frame_base_decl
25563 from the stack pointer after prologue.
25564
25565 2004-07-04 Richard Henderson <rth@redhat.com>
25566
25567 * function.c (struct assign_parm_data_all): New.
25568 (struct assign_parm_data_one): New.
25569 (assign_parms_initialize_all, assign_parms_augmented_arg_list,
25570 assign_parm_find_data_types, assign_parms_setup_varargs,
25571 assign_parm_find_entry_rtl, assign_parm_is_stack_parm,
25572 assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl,
25573 assign_parm_adjust_stack_rtl, assign_parm_setup_block_p,
25574 assign_parm_setup_block, assign_parm_setup_reg,
25575 assign_parm_setup_stack, assign_parms_unsplit_complex): Split from ...
25576 (assign_parms): ... here.
25577
25578 2004-07-04 Daniel Berlin <dberlin@dberlin.org>
25579
25580 * tree-ssa-pre.c (bb_value_sets): phi_gen, tmp_gen, new_sets
25581 now are bitmap_set_t's.
25582 (bitmap_insert_into_set): No point in inserting the value if
25583 it's invariant.
25584 (bitmap_set_contains): New function.
25585 (bitmap_set_replace_value): Add comment on why we do it
25586 this way.
25587 (set_contains): Removed.
25588 (bitmap_set_subtract_from_value_set): New name of
25589 set_subtract now that it's arguments are two different
25590 types of sets.
25591 Update callers.
25592 (bitmap_find_leader): Change algorithm used.
25593 (find_or_generate_expression): Update use of functions for new
25594 bitmap sets.
25595 (create_expression_by_pieces): Ditto.
25596 (insert_aux): Ditto.
25597 (insert): Ditto.
25598 (add_to_sets): Ditto.
25599 (init_pre): Ditto.
25600 (execute_pre): Ditto.
25601 (compute_avail): Ditto.
25602 Also ignore virtual phis.
25603
25604 2004-07-04 Richard Sandiford <rsandifo@redhat.com>
25605
25606 * combine.c (simplify_comparison): Fix comment typo.
25607
25608 2004-07-04 Eric Botcazou <ebotcazou@libertysurf.fr>
25609
25610 * config/sparc/sparc.c (SIBCALL_SLOT_EMPTY_P): Rename
25611 into LEAF_SIBCALL_SLOT_RESERVED_P after negation.
25612 (eligible_for_sibcall_delay): Adjust use of SIBCALL_SLOT_EMPTY_P.
25613 (output_restore): Change parameter from 'insn' to 'pat'.
25614 (output_return): Adjust call to output_restore.
25615 (output_sibcall): Adjust use of SIBCALL_SLOT_EMPTY_P.
25616 Adjust call to output_restore.
25617
25618 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
25619
25620 * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_COMMON): Define __unix__
25621 and assert system is bsd.
25622
25623 2004-07-04 Richard Sandiford <rsandifo@redhat.com>
25624
25625 * config/mips/mips.h (MASK_DEBUG_C, TARGET_DEBUG_C_MODE): Delete.
25626 (TARGET_SWITCHES): Remove -mdebugc.
25627 * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
25628 (sltu, sleu): Remove TARGET_DEBUG_C_MODE handling.
25629 (seq_[sd]i, sne_[sd]i, sge_[sd]i, sle_[sd]i_reg, sgeu_[sd]i)
25630 (sle_[sd]i_reg): Delete.
25631
25632 2004-07-04 Steven Bosscher <stevenb@suse.de>
25633
25634 * config/iq2000/iq2000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
25635 Define.
25636 * config/iq2000/iq2000.md: Translate old pipeline description to an
25637 equivalent new one.
25638
25639 2004-07-04 Roger Sayle <roger@eyesopen.com>
25640
25641 * tree-ssa-ccp.c (set_rhs): Change function to return a bool.
25642 Ensure the replacement rhs is valid gimple before performing
25643 the substitution. Return false if these sanity checks fail.
25644 (fold_stmt): Only set changed to true, if set_rhs returns true.
25645 (execute_fold_all_builtins): Only call modify_stmt if set_rhs
25646 succeeds.
25647
25648 2004-07-04 Richard Henderson <rth@redhat.com>
25649
25650 PR c/16348
25651 * c-typeck.c (c_finish_loop): Don't clear cond for cond_is_first loops.
25652
25653 2004-07-04 Mark Mitchell <mark@codesourcery.com>
25654
25655 * configure.ac (ranlib_flags): New variable.
25656 * Makefile.in (RANLIB_FLAGS): New variable.
25657 (libbackend.a): Use it.
25658 * configure: Regenerated.
25659
25660 2004-07-04 Roger Sayle <roger@eyesopen.com>
25661
25662 * ifcvt.c (noce_try_sign_mask): Call emit_store_flag to generate
25663 a "sign mask" instead of using ashr_optab directly.
25664
25665 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
25666
25667 * doc/cpp.texi: Don't document what we do for ill-formed expressions.
25668 * doc/cppopts.texi: Clarify processing of command-line defines.
25669
25670 2004-07-04 Gerald Pfeifer <gerald@pfeifer.com>
25671
25672 * doc/contrib.texi (Contributors): Adjust link for GNU Classpath.
25673
25674 2004-07-04 Richard Henderson <rth@redhat.com>
25675
25676 * rtl.def (ADDRESSOF): Remove.
25677 * alias.c (rtx_equal_for_memref_p): Don't handle addressof.
25678 (find_base_term, memrefs_conflict_p): Likewise.
25679 * cse.c (fixed_base_plus_p, find_best_addr: Likewise.
25680 (fold_rtx, cse_insn, set_live_p): Likewise.
25681 * dwarf2out.c (mem_loc_descriptor): Likewise.
25682 (add_location_or_const_value_attribute): Likewise.
25683 * emit-rtl.c (copy_insn_1): Likewise.
25684 * explow.c (memory_address): Likewise.
25685 * expmed.c (store_split_bit_field): Likewise.
25686 * expr.c (expand_expr_real_1): Likewise.
25687 * function.c (instantiate_decl
25688 (instantiate_virtual_regs_1, fix_lexical_addr): Likewise.
25689 * genrecog.c (preds, validate_pattern): Likewise.
25690 * integrate.c (copy_rtx_and_substitute): Likewise.
25691 * recog.c (general_operand, register_operand): Likewise.
25692 (memory_address_p): Likwise.
25693 * reload1.c (eliminate_regs, elimination_effects): Likewise.
25694 * rtl.c (copy_rtx): Likewise.
25695 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
25696 (rtx_addr_can_trap_p, nonzero_address_p, address_cost): Likewise.
25697 * rtlhooks.c (gen_lowpart_general): Likewise.
25698 * stmt.c (expand_asm_operands): Likewise.
25699 * web.c (entry_register, replace_ref, web_main): Likewise.
25700 * config/alpha/alpha.c (input_operand, alpha_legitimate_address_p,
25701 alpha_expand_block_move, alpha_expand_block_clear): Likewise.
25702 * config/arm/arm.c (thumb_rtx_costs): Likewise.
25703 * config/c4x/c4x.c (c4x_valid_operands): Likewise.
25704 * config/frv/frv.c (move_destination_operand, move_source_operand,
25705 condexec_dest_operand, condexec_source_operand,
25706 condexec_memory_operand): Likewise.
25707 * config/h8300/h8300.h (PREDICATE_CODES): Likewise.
25708 * config/ia64/ia64.c (general_xfmode_operand): Likewise.
25709 (destination_xfmode_operand): Likewise.
25710 * config/mips/mips.h (PREDICATE_CODES): Likewise.
25711 * config/mn10300/mn10300.c (mn10300_address_cost_1): Likewise.
25712 * config/s390/s390.c (general_s_operand): Likewise.
25713 * config/s390/s390.md (mov*): Likewise.
25714 * config/sparc/sparc.h (PREDICATE_CODES): Likewise.
25715
25716 * c-typeck.c (c_mark_addressable): Don't put_var_into_stack.
25717 * expr.c (expand_expr_real_1): Likewise.
25718 * stmt.c (expand_decl): Likewise.
25719 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
25720
25721 * function.c (struct fixup_replacement, struct insns_for_mem_entry,
25722 postponed_insns, put_var_into_stack, put_reg_into_stack,
25723 schedule_fixup_var_refs, fixup_var_refs, find_fixup_replacement,
25724 fixup_var_refs_insns, fixup_var_refs_insns_with_hash,
25725 fixup_var_refs_insn, fixup_var_refs_1, fixup_memory_subreg,
25726 walk_fixup_memory_subreg, fixup_stack_1, optimize_bit_field,
25727 gen_mem_addressof, flush_addressof, put_addressof_into_stack,
25728 purge_bitfield_addressof_replacements, purge_addressof_replacements,
25729 purge_addressof_1, insns_for_mem_hash, insns_for_mem_comp,
25730 struct insns_for_mem_walk_info, insns_for_mem_walk,
25731 compute_insns_for_mem, is_addressof, purge_addressof, setjmp_protect,
25732 setjmp_protect_args): Remove.
25733 (push_function_context_to): Don't handle var_refs_queue.
25734 (pop_function_context_from, free_after_compilation): Likewise.
25735 (instantiate_virtual_regs): Don't handle parm_reg_stack_loc.
25736 (assign_parms, allocate_struct_function): Likewise.
25737 (use_register_for_decl): New.
25738 (expand_function_end): Don't setjmp_protect.
25739 * function.h (struct emit_status): Update commentary.
25740 (struct function): Remove x_max_parm_reg, x_parm_reg_stack_loc.
25741 (max_parm_reg, parm_reg_stack_loc): Remove.
25742 * passes.c (DFI_addressof): Remove.
25743 (dump_file_info): Remove addressof.
25744 (rest_of_handle_addressof): Remove.
25745 (rest_of_compilation): Don't call it.
25746 * rtl.h (ADDRESSOF_REGNO, ADDRESSOF_DECL): Remove.
25747 * stmt.c (expand_decl): Use use_register_for_decl.
25748 * tree.h: Update decls.
25749 * web.c (mark_addressof): Remove.
25750 * doc/invoke.texi (-dF): Remove.
25751
25752 2004-07-03 Richard Henderson <rth@redhat.com>
25753
25754 * config/ia64/ia64.c (spill_xfmode_operand): Use assign_stack_temp
25755 instead of gen_mem_addressof.
25756 * config/ia64/ia64.md (movxf): Use assign_stack_temp to handle
25757 TImode output register.
25758
25759 2004-07-03 Richard Henderson <rth@redhat.com>
25760
25761 PR tree-optimization/16341
25762 * tree-sra.c (sra_walk_function): Increment to next stmt before
25763 processing the current stmt.
25764 (sra_insert_after): Always use BSI_SAME_STMT.
25765
25766 2004-07-03 Richard Henderson <rth@redhat.com>
25767
25768 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Don't fold
25769 fp plus with minus.
25770
25771 2004-07-03 Joseph S. Myers <jsm@polyomino.org.uk>
25772
25773 * tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
25774 with tree_int_cst_equal.
25775
25776 2004-07-03 Andreas Schwab <schwab@suse.de>
25777
25778 * config/ia64/ia64.md: Define new attribute "empty".
25779 (prologue_use, nop_x, insn_group_barrier): Set it.
25780
25781 * config/ia64/ia64.c (ia64_reorg): When looking for trailing call
25782 skip over "empty" insns.
25783
25784 2004-07-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25785
25786 * tree-inline.c (initialize_inlined_parameters): Pass proper function
25787 context to gimplify_body.
25788 (walk_tree): Don't walk into types twice.
25789 (walk_tree, case POINTER_TYPE): Deal with mutually recursive pointers.
25790
25791 * tree-sra.c (generate_element_init): Remove any useless conversions.
25792
25793 * gimplify.c (gimplify_conversion): Remove stripping useless
25794 conversions from here.
25795 (gimplify_expr): Put it here, in place of call to STRIP_MAIN_TYPE_NOPS.
25796 (gimplify_modify_expr_to_memcpy, gimplify_variable_sized_compare):
25797 Unshare before substituting PLACEHOLDER_EXPR.
25798 (gimplify_modify_expr_to_memset): Likewise.
25799 Pass address of TO to memset, not TO itself.
25800 (gimplify_init_constructor): Make copy of OBJECT so we have it each
25801 time we make an expression (to match a PLACEHOLDER_EXPR).
25802
25803 * tree-ssa.c (tree_ssa_useless_type_conversion): Also look at
25804 VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
25805 * tree-ssa-ccp.c (fold_stmt): Call just STRIP_USELESS_TYPE_CONVERSION.
25806 * tree-ssa-dom.c (local_fold): Likewise.
25807
25808 * langhooks-def.h (LANG_HOOKS_TYPE_MAX_SIZE): New langhook.
25809 * langhooks.h (strct lang_hooks): New field type_max_size.
25810 * function.c (assign_temp): Call it.
25811
25812 2004-07-03 Steven Bosscher <stevenb@suse.de>
25813
25814 * config/sh/sh.c (sh_use_dfa_interface): Add TARGET_SH1.
25815 * config/sh/sh.md: Convert the SH1 pipeline description to
25816 a DFA model.
25817
25818 2004-07-02 Zack Weinberg <zack@codesourcery.com>
25819
25820 * c-decl.c (struct c_binding): Remove contour field; add
25821 depth, invisible, nested fields.
25822 (B_IN_SCOPE, B_IN_CURRENT_SCOPE, B_IN_FILE_SCOPE)
25823 (B_IN_EXTERNAL_SCOPE): New convenience macros.
25824 (bind): Add invisible and nested arguments. Initialize
25825 new fields of struct c_binding; adjust loop scanning for
25826 insertion point.
25827 (free_binding_and_advance): Clear structure with memset.
25828 (pop_scope): Adjust to match. Set DECL_CONTEXT on everything
25829 in file scope, even if it's in external scope too.
25830 (pushdecl): Adjust to match. Create invisible file-scope
25831 declarations for block-scope forward declarations of static functions.
25832 (pushtag, warn_if_shadowing, pushdecl_top_level, implicitly_declare)
25833 (undeclared_variable, lookup_label, declare_label, define_label)
25834 (lookup_tag, lookup_name, lookup_name_in_scope, builtin_function)
25835 (c_make_fname_decl, store_parm_decls_newstyle, identifier_global_value)
25836 (store_parm_decls_oldstyle): Adjust to match.
25837 (diagnose_mismatched_decls): Correct handling of linkage clashes.
25838 (merge_decls): No need to copy C_DECL_IN_EXTERNAL_SCOPE.
25839
25840 * c-tree.h (C_DECL_IN_EXTERNAL_SCOPE): Delete.
25841 (C_DECL_DECLARED_BUILTIN, C_DECL_REGISTER): Slide down one.
25842
25843 2004-07-02 Richard Henderson <rth@redhat.com>
25844
25845 * c-decl.c (grokdeclarator): Don't frob current_function_decl
25846 around variable_size.
25847 (set_decl_nonlocal): Remove.
25848 (store_parm_decls): Add stmts for pending sizes.
25849 * calls.c (calls_function, calls_function_1): Remove.
25850 (precompute_arguments): Don't call it.
25851 * cfgexpand.c (set_save_expr_context): Remove.
25852 (tree_expand_cfg): Don't call it.
25853 * dwarf2out.c (add_bound_info): Don't handle SAVE_EXPR.
25854 (dwarf2out_finish): Likewise.
25855 * expr.c (emit_block_move): Adjust addresses to BLKmode.
25856 (store_constructor): Don't pre-evaluate SAVE_EXPR.
25857 (safe_from_p): Don't queue SAVE_EXPRs.
25858 (expand_expr_real_1 <case SAVE_EXPR>): Rewrite to expect,
25859 or build plain VAR_DECLs.
25860 * fold-const.c (twoval_comparison_p): Don't look at SAVE_EXPR_RTL.
25861 (fold): Likewise.
25862 (fold_checksum_tree): Don't special-case SAVE_EXPR.
25863 * function.c (free_after_compilation): Don't clear x_save_expr_regs.
25864 (put_var_into_stack): Don't handle SAVE_EXPR.
25865 (gen_mem_addressof): Likewise.
25866 * function.h (struct function): Remove x_save_expr_regs.
25867 (save_expr_regs): Remove.
25868 * gengtype.c (adjust_field_tree_exp): Don't special-case SAVE_EXPR.
25869 * print-tree.c (print_node): Don't dump SAVE_EXPR_NOPLACEHOLDER.
25870 * stor-layout.c (variable_size): Don't set it.
25871 (force_type_save_exprs, force_type_save_exprs_1): Remove.
25872 * tree-inline.c (remap_save_expr): Remove fn argument. Update
25873 all callers. Don't set SAVE_EXPR_CONTEXT.
25874 * tree-inline.h (remap_save_expr): Update decl.
25875 * tree.c (save_expr): Update build size.
25876 (first_rtl_op): Don't handle SAVE_EXPR.
25877 (unsave_expr_1, contains_placeholder_p): Likewise.
25878 (decl_function_context): Likewise.
25879 * tree.def (SAVE_EXPR): Remove args 1 and 2.
25880 * tree.h (SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL): Remove.
25881 (SAVE_EXPR_NOPLACEHOLDER, SAVE_EXPR_PERSISTENT_P): Remove.
25882
25883 2004-07-03 Joseph S. Myers <jsm@polyomino.org.uk>
25884
25885 * doc/bugreport.texi, doc/configterms.texi, doc/contrib.texi,
25886 doc/contribute.texi, doc/cpp.texi, doc/cppinternals.texi,
25887 doc/extend.texi, doc/install.texi, doc/invoke.texi, doc/md.texi,
25888 doc/portability.texi, doc/tree-ssa.texi, doc/trouble.texi: Avoid
25889 some first-person references and patronizing comments. Based on
25890 printed manual.
25891 * doc/invoke.texi: Don't reference fortran@gnu.org.
25892 * doc/trouble.texi (Warning when a non-void function value is
25893 ignored): Rewrite. From Russ Allbery and Chris Devers.
25894
25895 2004-07-02 Daniel Berlin <dberlin@dberlin.org)
25896
25897 * tree-ssa-pre.c (bitmap_set_t): New.
25898 (bb_value_sets): avail_out is now a bitmap_set_t.
25899 (bitmap_find_leader): New function.
25900 (bitmap_value_insert_into_set): Ditto.
25901 (bitmap_set_copy): Ditto.
25902 (bitmap_value_replace_in_set): Ditto.
25903 (bitmap_set_contains_value): Ditto.
25904 (bitmap_set_new): Ditto.
25905 (bitmap_set_pool): New pool.
25906 (find_or_generate_expression): Use bitmap_ functions on AVAIL sets.
25907 (insert_aux): Ditto.
25908 (add_to_sets): Ditto.
25909 (compute_avail): Ditto
25910 (eliminate): Ditto.
25911 (init_pre): Ditto.
25912 (fini_pre): Ditto.
25913 (execute_pre): Ditto.
25914
25915 2004-07-02 Roger Sayle <roger@eyesopen.com>
25916
25917 * config/rs6000/rs6000.c (struct processor_costs): New structure
25918 used to hold instruction latencies/sizes for processor types.
25919 (rs6000_cost): New global variable pointing to current CPU's costs.
25920 (rs6000_override_options): Initialize rs6000_cost to point to the
25921 appropriate cost table based upon rs6000_cpu and optimize_size.
25922 (rs6000_rtx_costs): Use rs6000_cost to avoid hardcoding processor
25923 timings inline.
25924
25925 2004-07-02 Richard Henderson <rth@redhat.com>
25926
25927 * expmed.c (make_tree): Don't use SET_DECL_RTL.
25928
25929 2004-07-02 Steven Bosscher <stevenb@suse.de>
25930
25931 * tree-flow.h (bb_ann_d): Remove ephi_nodes field.
25932
25933 2004-07-01 Richard Henderson <rth@redhat.com>
25934
25935 * config/alpha/alpha.c (struct machine_function): Add gp_save_rtx.
25936 (alpha_gp_save_rtx): Use assign_stack_local instead of
25937 gen_mem_addressof.
25938
25939 2004-07-01 Richard Henderson <rth@redhat.com>
25940
25941 * config/alpha/alpha.c (struct alpha_rtx_cost_data): Add int_div.
25942 (alpha_rtx_cost_data): Update to match.
25943 (alpha_rtx_cost_size): New.
25944 (alpha_rtx_costs): Honor optimize_size.
25945
25946 2004-07-01 Richard Henderson <rth@redhat.com>
25947
25948 * gimple-low.c (lower_function_body): Don't reset_block_changes here.
25949 * cfgexpand.c (tree_expand_cfg): Do it here.
25950 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): And here.
25951 * config/ia64/ia64.c (ia64_output_mi_thunk): And here.
25952 * config/mips/mips.c (mips_output_mi_thunk): And here.
25953 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): And here.
25954 * config/sh/sh.c (sh_output_mi_thunk): And here.
25955 * config/sparc/sparc.c (sparc_output_mi_thunk): And here.
25956
25957 2004-07-01 Richard Henderson <rth@redhat.com>
25958
25959 * tree.def (RTL_EXPR): Remove.
25960 * c-typeck.c (lvalue_p): Don't handle it.
25961 * expr.c (safe_from_p): Likewise.
25962 (expand_expr_real_1): Likewise.
25963 * fold-const.c (non_lvalue, operand_equal_p, fold): Likewise.
25964 (fold_checksum_tree, tree_expr_nonnegative_p): Likewise.
25965 * gengtype.c (adjust_field_tree_exp): Likewise.
25966 * stmt.c (warn_if_unused_value): Likewise.
25967 * tree-gimple.c (recalculate_side_effects): Likewise.
25968 * tree-pretty-print.c (dump_generic_node): Likewise.
25969 * tree.c (make_node_stat, first_rtl_op, unsave_expr_1): Likewise.
25970 (unsafe_for_reeval, stabilize_reference, build1_stat): Likewise.
25971 * tree.h (RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, RTL_EXPR_ALT_RTL): Remove.
25972
25973 * stmt.c (struct stmt_status): Remove x_last_expr_type,
25974 x_last_expr_value, x_last_expr_alt_rtl, x_expr_stmts_for_value.
25975 (last_expr_type, last_expr_value, last_expr_alt_rtl): Remove.
25976 (expand_expr_stmt): Merge with expand_expr_stmt_value. Remove
25977 all the bits that tracked last_expr.
25978 (expand_end_bindings): Don't track last_expr.
25979 (expand_start_stmt_expr, expand_end_stmt_expr): Remove.
25980 (clear_last_expr): Remove.
25981 (expand_asm): Don't call it.
25982 (expand_asm_operands, expand_end_cond): Likewise.
25983 (expand_naked_return, expand_null_return_1): Likewise.
25984 * c-typeck.c (c_begin_compound_stmt): Likewise.
25985 * cfgexpand.c (expand_block): Use expand_expr_stmt.
25986 * expr.c (expand_expr_real_1): Likewise.
25987 * tree.h: Update prototypes.
25988
25989 * function.h (struct sequence_stack): Remove sequence_rtl_expr.
25990 (struct emit_status): Remove sequence_rtl_expr.
25991 (struct function): Remove x_rtl_expr_chain.
25992 (seq_rtl_expr, rtl_expr_chain): Remove.
25993 * function.c (struct temp_slot): Remove rtl_expr.
25994 (assign_stack_temp_for_type): Don't set it.
25995 (free_temp_slots, pop_temp_slots): Don't check it.
25996 (free_after_compilation): Don't clear x_rtl_expr_chain.
25997 (fixup_var_refs): Don't search it.
25998 (preserve_rtl_expr_result, free_temps_for_rtl_expr): Remove.
25999 * emit-rtl.c (start_sequence): Don't use sequence_rtl_expr
26000 or seq_rtl_expr.
26001 (push_topmost_sequence): Likewise.
26002 (end_sequence, init_emit): Likewise.
26003 (start_sequence_for_rtl_expr): Remove.
26004 * expmed.c (make_tree): Build a VAR_DECL instead of an RTL_EXPR.
26005 * rtl.h (preserve_rtl_expr_result): Remove.
26006
26007 2004-07-02 Kazu Hirata <kazu@cs.umass.edu>
26008
26009 * ifcvt.c, modulo-sched.c, tree-alias-common.c, tree-sra.c,
26010 tree-ssa-copy.c, tree-ssa-dom.c, tree-ssa-pre.c: Fix comment
26011 typos.
26012
26013 2004-07-02 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
26014
26015 * gcc.c (STANDARD_STARTFILE_PREFIX_1): Define.
26016 (STANDARD_STARTFILE_PREFIX_2): Define.
26017 (standard_startfile_prefix_1): Initialize to
26018 STANDARD_STARTFILE_PREFIX_1.
26019 (standard_startfile_prefix_2): Initialize to
26020 STANDARD_STARTFILE_PREFIX_2.
26021 * config/i386/mingw32.h (MD_STARTFILE_PREFIX): Remove.
26022 (STANDARD_STARTFILE_PREFIX_1): Define.
26023 (STANDARD_STARTFILE_PREFIX_2): Define.
26024 * doc/tm.texi (STANDARD_STARTFILE_PREFIX_1): Document.
26025 (STANDARD_STARTFILE_PREFIX_2): Document.
26026
26027 2004-07-01 Richard Henderson <rth@redhat.com>
26028
26029 * tree-sra.c (sra_walk_expr): Don't maybe_lookup_element_for_expr
26030 in order to disable scalarization. Instead set a flag and wait
26031 for a candidate decl.
26032
26033 2004-07-01 Joseph S. Myers <jsm@polyomino.org.uk>
26034
26035 * doc/cppinternals.texi, doc/install.texi, doc/invoke.texi,
26036 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi:
26037 Use terminology "testsuite" and "enumerated".
26038
26039 2004-07-01 Richard Henderson <rth@redhat.com>
26040
26041 * dwarf2out.c (reg_save): Use INVALID_REGNUM.
26042 (dwarf2out_reg_save, dwarf2out_return_save): Likewise.
26043 (initial_return_save): Likewise.
26044 (flush_queued_reg_saves): Remap register numbers.
26045 (dwarf2out_return_reg): Likewise.
26046
26047 2004-07-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26048
26049 * gimplify.c (gimplify_one_sizepos): Don't do anything if any VAR_DECL.
26050
26051 * tree-pretty-print.c (dump_generic_node, case ARRAY_REF): Use
26052 access functions for lower bound and element size and only output
26053 if lower bound nonzero or element size not same as that of type.
26054 (dump_generic_node, case COMPONENT_REF): Use access func. for offset.
26055
26056 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
26057
26058 * c-pretty-print.c (pp_c_postfix_expression): Fix pasto.
26059
26060 2004-07-01 Per Bothner <per@bothner.com>
26061
26062 * final.c (final): Fix typo reported by Aaron W. LaFramboise.
26063
26064 2004-07-01 Jakub Jelinek <jakub@redhat.com>
26065
26066 * expr.c (expand_assignment): Optimize bitfld += cst for 1 bit
26067 bitfields as well. STRIP_NOPS from src operand and PLUS_EXPR's
26068 first operand. Don't optimize if the bitfield is volatile.
26069
26070 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
26071
26072 * c-pretty-print.c (pp_c_postfix_expression): Handle
26073 floating-point comparison operators.
26074 (pp_c_expression): Pass floating-point comparison
26075 operators to pp_c_postfix_expression.
26076
26077 2004-07-01 Roger Sayle <roger@eyesopen.com>
26078
26079 * simplify-rtx.c (simplify_binary_operation) <PLUS, MINUS>: Use
26080 rtx_cost instead of "had_mult" to determine whether the transformed
26081 expression is cheaper than the original.
26082
26083 2004-07-01 Jerry Quinn <jlquinn@optonline.net>
26084
26085 * alias.c (get_alias_set, canon_rtx, get_addr,
26086 nonoverlapping_memrefs_p, nonlocal_referenced_p_1, memory_modified_1):
26087 Use MEM_P.
26088 * builtins.c (expand_builtin_prefetch, expand_builtin_profile_func,
26089 expand_builtin): Likewise.
26090 * calls.c (expand_call, emit_library_call_value_1, store_one_arg):
26091 Likewise.
26092 * combine.c (can_combine_p, combinable_i3pat, try_combine,
26093 find_split_point, combine_simplify_rtx, simplify_set, make_extraction,
26094 rtx_equal_for_field_assignment_p, gen_lowpart_for_combine,
26095 record_dead_and_set_regs_1, get_last_value_validate,
26096 mark_used_regs_combine, move_deaths, unmentioned_reg_p_1): Likewise.
26097 * cse.c (check_dependence, canon_hash, equiv_constant,
26098 gen_lowpart_if_possible, cse_insn, invalidate_from_clobbers,
26099 cse_around_loop, cse_check_loop_start, cse_set_around_loop,
26100 count_reg_usage): Likewise.
26101 * cselib.c (rtx_equal_for_cselib_p, add_mem_for_addr, cselib_lookup,
26102 cselib_invalidate_mem, cselib_invalidate_rtx, cselib_record_set,
26103 cselib_record_sets): Likewise.
26104 * dbxout.c (PARM_PASSED_IN_MEMORY, dbxout_symbol,
26105 dbxout_symbol_location, dbxout_parms, dbxout_reg_parms): Likewise.
26106 * ddg.c (mark_mem_use, mark_mem_store, rtx_mem_access_p): Likewise.
26107 * df.c (df_uses_record): Likewise.
26108 * dojump (do_jump): Likewise.
26109 * dwarf2out.c (stack_adjust_offset, mem_loc_descriptor,
26110 loc_descriptor_from_tree, rtl_for_decl_location, add_bound_info,
26111 decl_start_label): Likewise.
26112 * emit-rtl.c (gen_complex_constant_part, gen_highpart,
26113 operand_subword, change_address_1, make_safe_from): Likewise.
26114 * explow.c (break_out_memory_refs, copy_all_regs, validize_mem,
26115 stabilize, force_not_mem): Likewise.
26116 * expmed.c (store_bit_field, store_split_bit_field, extract_bit_field,
26117 expand_mult_const, expand_divmod, emit_store_flag): Likewise.
26118 * expr.c (convert_move, convert_modes, emit_block_move,
26119 emit_group_load, emit_group_store, clear_storage, emit_move_insn,
26120 emit_move_insn_1, expand_assignment, store_expr,
26121 store_constructor_field, store_constructor, store_field,
26122 force_operand, safe_from_p, expand_expr_real_1, expand_increment):
26123 Likewise.
26124 * final.c (cleanup_subreg_operands, alter_subreg,
26125 get_mem_expr_from_op): Likewise.
26126 * flow.c (notice_stack_pointer_modification_1,
26127 init_propagate_block_info, insn_dead_p, mark_set_1, mark_used_regs):
26128 Likewise.
26129 * function.c (mark_temp_addr_taken, preserve_temp_slots,
26130 preserve_rtl_expr_result, put_var_into_stack, fixup_var_refs_1,
26131 optimize_bit_field, flush_addressof, purge_addressof_1,
26132 instantiate_decl, instantiate_virtual_regs_1, assign_parms,
26133 setjmp_protect, setjmp_protect_args, fix_lexical_addr,
26134 keep_stack_depressed): Likewise.
26135 * ifcvt.c (noce_try_cmove_arith, noce_try_abs, noce_operand_ok,
26136 noce_process_if_block, find_memory): Likewise.
26137 * integrate.c (subst_constants, allocate_initial_values): Likewise.
26138 * local-alloc.c (validate_equiv_mem_from_store, memref_referenced_p,
26139 update_equiv_regs): Likewise.
26140 * loop.c (scan_loop, prescan_loop, note_addr_stored, check_store,
26141 maybe_eliminate_biv_1, find_mem_in_note_1): Likewise.
26142 * optabs.c (expand_abs, emit_unop_insn): Likewise.
26143 * passes.c (rest_of_handle_final): Likewise.
26144 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
26145 move2add_note_store): Likewise.
26146 * ra-build.c (detect_remat_webs): Likewise.
26147 * ra-debug.c (dump_static_insn_cost): Likewise.
26148 * ra-rewrite.c (slots_overlap_p, insert_stores): Likewise.
26149 * recog.c (validate_change, apply_change_group, cancel_changes,
26150 validate_replace_rtx_1, general_operand, register_operand,
26151 nonmemory_operand, push_operand, pop_operand, memory_operand,
26152 indirect_operand, asm_operand_ok, offsettable_memref_p,
26153 offsettable_nonstrict_memref_p, constrain_operands,
26154 store_data_bypass_p): Likewise.
26155 * reg-stack.c (subst_stack_regs_pat): Likewise.
26156 * regclass.c (record_operand_costs, scan_one_insn, record_reg_classes,
26157 copy_cost, reg_scan_mark_refs): Likewise.
26158 * regmove.c (optimize_reg_copy_3, stack_memref_p,
26159 combine_stack_adjustments_for_block): Likewise.
26160 * regrename.c (copyprop_hardreg_forward_1): Likewise.
26161 * reload.c (can_reload_into, push_reload, decompose, immune_p,
26162 find_reloads, find_reloads_address, find_reloads_address_1,
26163 reg_overlap_mentioned_for_reload_p, refers_to_mem_for_reload_p,
26164 find_equiv_reg): Likewise.
26165 * reload1.c (reload, eliminate_regs, eliminate_regs_in_insn,
26166 reload_as_needed, choose_reload_regs, emit_input_reload_insns,
26167 do_input_reload, emit_reload_insns, gen_reload, delete_output_reload,
26168 delete_address_reloads): Likewise.
26169 * resource.c (mark_referenced_resources): Likewise.
26170 * rtlanal.c (get_jump_table_offset, count_occurrences,
26171 reg_referenced_p, reg_set_p, set_of_1, set_noop_p,
26172 reg_overlap_mentioned_p, note_uses, replace_regs, nonzero_bits1,
26173 num_sign_bit_copies1): Likewise.
26174 * rtlhooks.c (gen_lowpart_general): Likewise.
26175 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
26176 * sdbout.c (PARM_PASSED_IN_MEMORY, sdbout_symbol,
26177 sdbout_toplevel_data, sdbout_parms, sdbout_reg_parms,
26178 sdbout_global_decl): Likewise.
26179 * simplify-rtx.c (simplify_subreg): Likewise.
26180 * stmt.c (expand_asm_operands, expand_expr_stmt_value, expand_decl,
26181 expand_anon_union_decl, expand_end_case_type): Likewise.
26182 * unroll.c (calculate_giv_inc): Likewise.
26183 * var-tracking.c (stack_adjust_offset_pre_post,
26184 bb_stack_adjust_offset, track_expr_p, count_uses, add_uses,
26185 add_stores, compute_bb_dataflow, vt_get_decl_and_offset,
26186 vt_add_function_parameters): Likewise.
26187 * varasm.c (make_var_volatile, notice_global_symbol,
26188 assemble_external, decode_addr_const, mark_weak,
26189 default_encode_section_info): Likewise.
26190
26191 2004-07-01 Steven Bosscher <stevenb@suse.de>
26192
26193 * stmt.c (check_seenlabel): Remove.
26194 (pushcase, pushcase_range, expand_end_case_type): Don't call it.
26195
26196 2004-07-01 Richard Henderson <rth@redhat.com>
26197
26198 * function.h (struct function): Remove x_function_call_count.
26199 (function_call_count): Remove.
26200 * calls.c (expand_call): Don't set it.
26201 * integrate.c (copy_rtx_and_substitute): Likewise.
26202
26203 * function.h (struct function): Remove x_cleanup_label.
26204 (cleanup_label): Remove.
26205 * stmt.c (expand_value_return): Don't use it.
26206 * function.c (free_after_compilation): Don't set it.
26207 (expand_function_start): Likewise. Remove parms_have_cleanups arg.
26208 * cfgexpand.c (tree_expand_cfg): Update call.
26209 * tree.h (expand_function_start): Update decl.
26210
26211 2004-07-01 Joseph S. Myers <jsm@polyomino.org.uk>
26212
26213 PR c/1027
26214 * c-lang.c (c_initialize_diagnostics): Move from here ...
26215 * c-objc-common.c: ... to here. Include "c-pretty-print.h".
26216 (c_tree_printer): Use pretty-printer to format %T.
26217 * c-pretty-print.c (pp_c_specifier_qualifier_list): Include space
26218 before '*' if not C++.
26219 (pp_c_direct_abstract_declarator): Don't try to print array upper
26220 bound for flexible array members.
26221 * c-tree.h: Include "diagnostic.h".
26222 (c_initialize_diagnostics): Declare.
26223 * objc/objc-lang.c (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Define.
26224 * c-format.c (format_type_warning): New function. Improve
26225 diagnostics for incorrect format argument types.
26226 (check_format_types): Use it. Add two parameters. Use the
26227 TYPE_MAIN_VARIANT of wanted_type.
26228 (check_format_info_main): Pass new parameters to
26229 check_format_types.
26230 (struct format_wanted_type): Update comment.
26231
26232 2004-07-01 Nick Clifton <nickc@redhat.com>
26233
26234 * target.h (struct gcc_target): Add new field to struct cxx:
26235 import_export_class.
26236 * target-def.h (TARGET_CXX): Initialise the new field.
26237 (TARGET_CXX_IMPORT_EXPORT_CLASS): Provide a default value for
26238 the new field.
26239 * doc/tm.texi: Document the new target hook.
26240
26241 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
26242
26243 * builtins.c (fold_builtin_classify): Fix typo.
26244
26245 2004-07-01 Richard Henderson <rth@redhat.com>
26246
26247 * function.c (identify_blocks, identify_blocks_1): Remove.
26248 * function.h (identify_blocks): Remove.
26249 * rtl.h (NOTE_INSN_BLOCK_BEG): Update comment.
26250
26251 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
26252
26253 * builtins.c (fold_builtin_classify): New.
26254 (fold_builtin_unordered_cmp): Fix commentary.
26255 (fold_builtin): Use it.
26256 * builtins.def: Define builtins for isnan,
26257 isnanf, isnanl, finite, finitef, finitel,
26258 isinf, isinff, isinfl.
26259
26260 2004-07-01 Richard Henderson <rth@redhat.com>
26261
26262 * function.h (struct function): Remove dont_emit_block_notes.
26263 * gimple-low.c (lower_function_body): Don't set it.
26264 * cfgexpand.c (expand_block): Don't check it.
26265 * cfglayout.c (insn_locators_initialize): Likewise.
26266 * expr.c (expand_expr_real, expand_expr_real_1): Likewise.
26267 * passes.c (rest_of_compilation): Likewise.
26268 * stmt.c (expand_start_bindings_and_block): Likewise.
26269 (expand_end_bindings): Likewise.
26270
26271 2004-07-01 Richard Henderson <rth@redhat.com>
26272
26273 * cgraph.h (cgraph_build_static_cdtor): Declare.
26274 * cgraphunit.c (cgraph_build_static_cdtor): New.
26275 * c-objc-common.c (build_cdtor): Use it.
26276 * coverage.c (create_coverage): Likewise.
26277 * libfuncs.h (LTI_gcov_init, gcov_init_libfunc): Remove.
26278 * optabs.c (init_optabs): Don't set gcov_init_libfunc.
26279
26280 See ChangeLog.11 for earlier changes.