OSDN Git Service

* config/i386/i386.md (*cmpfp_sf): Change type
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-12-10  Uros Bizjak  <uros@kss-loka.si>
2
3         * config/i386/i386.md (*cmpfp_sf): Change type
4         attribute to "multi".
5
6 2004-12-09  Richard Henderson  <rth@redhat.com>
7
8         PR c/18282
9         * attribs.c (decl_attributes): Use relayout_decl.
10         * c-common.c (handle_mode_attribute): Copy all relevant type
11         parameters from the new underlying integral type.
12
13 2004-12-09  Richard Henderson  <rth@redhat.com>
14
15         * c-common.c (shorten_compare): Don't special-case min/maxval
16         for C enumerations.
17
18 2004-12-09  Richard Sandiford  <rsandifo@redhat.com>
19
20         * simplify-rtx.c (simplify_subreg): In the CONCAT case, check whether
21         the request subreg is entirely contained in the requested component.
22         (simplify_gen_subreg): Return null for CONCATs that are rejected
23         by simplify_subreg.
24         * expmed.c (store_bit_field): Create a temporary when changing the
25         value to an integer mode.
26
27 2004-12-09  David Edelsohn  <edelsohn@gnu.org>
28
29         * real.c (ibm_extended): Correct comment.
30
31 2004-12-09  Stan Shebs  <shebs@apple.com>
32
33         * config/rs6000/darwin-asm.h: New file, 32/64-bit assembly macros
34         formerly in darwin-tramp.asm.
35         * config/rs6000/darwin-tramp.asm: Include darwin-asm.h.
36         * config/rs6000/darwin-fpsave.asm: Use 32/64-bit macros.
37         * config/rs6000/t-darwin: Add dependencies.
38
39 2004-12-09  Richard Henderson  <rth@redhat.com>
40
41         PR target/17025
42         * config/i386/i386.md (testqi_1_maybe_si, andqi_2_maybe_si): New.
43         (test_qi_1, andqi_2): Do not promote to simode.
44
45 2004-12-09  Andrew Pinski  <pinskia@physics.uc.edu>
46
47         PR tree-opt/18904
48         * tree-chrec.c (chrec_convert): Use fold_convert
49         instead of convert.
50
51 2004-12-09  Matt Rice  <ratmice@yahoo.com>
52
53         PR preprocessor/18102
54         * c-incpath.c (remove_duplicates): Check for construct
55         equality.
56
57 2004-12-09  Dorit Naishlos  <dorit@il.ibm.com>
58
59         * genopinit.c (vec_realign_store_optab): Initialization removed.
60         * optabs.c (optab_for_tree_code): REALIGN_STORE_EXPR case removed.
61         * optabs.h (optab_index): OTI_vec_realign_store Removed.
62         (vec_realign_store_optab): Removed.
63         * target-def.h (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Removed.
64         * target.h (builtin_mask_for_store): Removed.
65         * tree.def (REALIGN_STORE_EXPR): Removed.
66         * config/rs6000/rs6000.c (rs6000_builtin_mask_for_store): Removed.
67         (altivec_builtin_mask_for_store): Removed.
68         (altivec_init_builtins): Removed initialization of
69         altivec_builtin_mask_for_store.
70
71         * doc/tm.texi (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
72         (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): New.
73
74 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
75
76         * tree.def (SET_TYPE): Remove.
77         (CONSTRUCTOR): Update description.
78         * builtins.c (type_to_class) Remove SET_TYPE case.
79         * dbxout.c (dbxout_type): Likewise.
80         * dwarf2out.c (is_base_type): Likewise.
81         (gen_set_type_die): Remove.
82         (gen_type_die): Remove SET_TYPE case.
83         * expr.c (count_type_elements): Likewise.
84         (mostly_zeroes_p): Likewise.
85         (store_constructor): Likewise.
86         * print_tree.c (print_node): Likewise.
87         * stor-layout.c (layout_type): Likewise.
88         * tree-browser.c (browse_tree): Likewise.
89         * tree-inline.c (remap_type): Likewise.
90         * tree-pretty-print.c (dump_generic_node): Likewise.
91         * tree.c (type_contains_plaeholder_1, type_hash_eq,
92         variably_modified_type_p, initializer_zerop): Likewise.
93         * tree.h (SET_OR_ARRAY_CHECK): Remove.
94         (AGGREGATE_TYPE_P): Remove SET_TYPE check.
95         (TYPE_DOMAIN): Use ARRAY_TYPE_CHECK.
96         * typeclass.h (enum type_class): Remove set_type_class.
97         * varasm.c (const_hash_1): Remove SET_TYPE case.
98         (compare_constant, copy_constant, output_constant): Likewise.
99         * config/i386/i386.c (classify_argument): Likewise.
100         * config/ia64/ia64.c (hfa_element_mode): Likewise.
101         * config/sparc/sparc.c (sparc_type_code): Likewise.
102
103         PR c++/16681
104         * tree-inline.c (estimate_num_insns_1): Add RANGE_EXPR case.
105
106 2004-12-08  Richard Henderson  <rth@redhat.com>
107
108         * config/i386/i386.md: Use FLAGS_REG everywhere.
109
110 2004-12-08  Eric Christopher  <echristo@redhat.com>
111
112         * config/mips/mips.c (mips_scalar_mode_supported_p): Rewrite
113         to avoid call to default function.
114
115 2004-12-08  Zack Weinberg  <zack@codesourcery.com>
116
117         PR 17982
118         * varasm.c (pending_assemble_externals): New static.
119         (assemble_external_real): Meat of assemble_external split out
120         to this new function.
121         (process_pending_assemble_externals): New function.
122         (assemble_external): Use gcc_assert.  If flag_unit_at_a_time
123         is true and the basic test passes, merely cons the decl onto
124         the pending list to be handled later.
125         * tree.h: Declare process_pending_assemble_externals.
126         * cgraphunit.c (cgraph_optimize): Call it.
127
128         * config/h8300/h8300.h: Do not define ASM_OUTPUT_EXTERNAL.
129
130 2004-12-08  Kazu Hirata  <kazu@cs.umass.edu>
131
132         * cfgloopmanip.c (create_preheader): Speed up by "unrolling"
133         and simplifying FOR_EACH_EDGE.
134
135 2004-12-08  Richard Sandiford  <rsandifo@redhat.com>
136
137         * config/frv/frv.c (frv_sort_insn_group): Always initialize
138         packet_group->nop.
139
140 2004-12-08  Nathan Sidwell  <nathan@codesourcery.com>
141
142         PR c++/18672
143         * gimplify.c (canonicalize_addr_expr): Cope with array of
144         incomplete type.
145         (gimplify_conversion): Remove redundant checks.
146
147         * doc/trouble.texi (Non-bugs): Clarify empty loop removal.
148
149 2004-12-08  Uros Bizjak  <uros@kss-loka.si>
150
151         * config/i386/i386.c (output_387_binary_op,
152         ix86_prepare_fp_compare_args): Fix is_sse condition.
153
154 2004-12-07  Uros Bizjak  <uros@kss-loka.si>
155
156         * config/i386/i386-protos.h (ix86_split_fp_branch): New rtx
157         argument.
158
159         * config/i386/i386.c (output_fp_compare): Fix is_sse condition.
160         Use EFLAGS_P only when fcomi insn should be used. Fix handling
161         of eflags_p variable. Change alt table accordingly. For non-fcomi
162         compare insn always use trailing fnstsw insn. Fix intmode
163         calculation for ficom insn.
164         (ix86_split_fp_branch): Add "rtx pushed" as new parameter. Call
165         ix86_free_from_memory when "pushed" is specified.
166         (ix86_expand_branch): Change call to ix86_split_fp_branch.
167
168         * config/i386/i386.md (*cmpfp_0_sf, *cmpfp_0_df, *cmpfp_0_xf):
169         Change eflags_p parameter in call to output_fp_compare.
170         (*cmpfp_2_sf, *cmpfp_2_df, *cmpfp_2_xf): Remove.
171         (*cmpfp_2_sf_1, *cmpfp_2_df_1, *cmpfp_2_xf_1): Rename to
172         *cmpfp_2_sf, *cmpfp_2_df, *cmpfp_2_xf.  Change eflags_p
173         parameter in call to output_fp_compare.
174         (*cmpfp_2_u): Remove.
175         (*cmpfp_2_u_1): Rename to *cmpfp_2_u. Change eflags_p parameter
176         in call to output_fp_compare.
177         (*ficom_1): Remove insn definition and corresponding define_split.
178         (*cmpfp_si): New insn definition.
179         (*fp_jcc_8): New insn definition. Add new splitters for
180         "memory_operand" and "register_operand".
181         (define_split): Add new parameter in call to ix86_split_fp_branch.
182
183         config/i386/predicates.md (float_operator): New predicate.
184
185 2004-12-08  Kazu Hirata  <kazu@cs.umass.edu>
186
187         * c-common.c (verify_tree): Don't check code length if we know
188         we are handling tcc_unary.
189         * print_tree.c (print_node): Remove code to handle RTL
190         appearing as a part of a tree node.
191         * tree-gimple.c (recalculate_side_effects): Rename fro as len.
192         * tree.c (build1_stat): Don't check TREE_CODE_LENGTH.
193         (PROCESS_ARG): Don't refer to fro.
194         (build2_stat, build3_stat, build4_stat): Don't compute fro.
195
196 2004-12-07  Roger Sayle  <roger@eyesopen.com>
197
198         PR middle-end/18293
199         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Move definition earlier.
200         (expand_mult): Special case powers of two to avoid synth_mult.
201         * loop.c (product_cheap_p): Handle case where expand_mult does
202         require/generate any instructions (i.e. multiplication by zero).
203
204 2004-12-07  Richard Henderson  <rth@redhat.com>
205
206         * tree-pretty-print.c (dump_array_domain): Split out from
207         dump_generic_node; fix off-by-one error on zero-based array bounds.
208         (dump_generic_node): Use it.
209         (print_declaration): Likewise.
210
211 2004-12-08  Richard Guenther <richard.guenther@uni-tuebingen.de>
212
213         * doc/invoke.texi: Adjust default values for
214         large-function-growth and inline-unit-growth to match
215         params.def.  Clarify used algorithm.
216
217 2004-12-07  David Mosberger  <davidm@hpl.hp.com>
218
219         PR target/18443
220         * config/ia64/ia64.c (ia64_assemble_integer): Add support for
221         emitting unaligned pointer-sized integers.
222
223 2004-12-07  Steven Bosscher  <stevenb@suse.de>
224
225         PR c/18867
226         * c-typeck.c (c_start_case): Set orig_type to error_mark_node
227         when the type of the controlling expression is not a valid type.
228
229 2004-12-07  Steven Bosscher  <stevenb@suse.de>
230
231         PR tree-optimization/17340
232         * tree-ssa-pre.c (compute_antic): Fix comment.
233         (compute_avail): Do not recurse, instead do a DFS using a stack
234         and a loop.
235         (execute_pre): Adjust.
236
237 2004-12-07  Ziemowit Laski  <zlaski@apple.com>
238
239         * c-tree.h (struct lang_type): Rename 'objc_protocols' field
240         to 'objc_info'.
241
242 2004-12-07  Eric Christopher  <echristo@redhat.com>
243
244         PR target/16317
245         * config/netbsd.h (NO_IMPLICIT_EXTERN_C): Define.
246
247 2004-12-07  Eric Christopher  <echristo@redhat.com>
248
249         * config/mips/mips-protos.h (mips_valid_pointer_mode): Move
250         prototype...
251         * config/mips/mips.c: ... here. Make static.
252
253 2004-12-07  Eric Christopher  <echristo@redhat.com>
254
255         PR target/18442
256         * config/mips/mips.c (mips_vector_mode_supported_p): New function.
257         (TARGET_SCALAR_MODE_SUPPORTED_P): Define to above.
258
259 2004-12-07  Kazu Hirata  <kazu@cs.umass.edu>
260
261         * c-common.c, expr.c, fold-const.c, print-tree.c,
262         tree-gimple.c, tree-inline.c, tree-pretty-print.c,
263         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c: Replace uses of
264         first_rtl_op with TREE_CODE_LENGTH.
265         * tree.c (first_rtl_op): Remove.
266         Replace uses of first_rtl_op with TREE_CODE_LENGTH.
267         * tree.h: Remove the prototype for first_rtl_op.
268
269 2004-12-07  David Edelsohn  <edelsohn@gnu.org>
270
271         * config/rs6000/t-aix43, config/rs6000/t-aix52 (SHLIB_LINK):
272         Revert 2004-12-01 change.
273
274 2004-12-06  Ziemowit Laski  <zlaski@apple.com>
275
276         * c-tree.h (struct lang_type): Add 'objc_protocols' field.
277
278 2004-12-06  DJ Delorie  <dj@redhat.com>
279
280         * reload.c (find_valid_class): Fix logic to test inner mode as well.
281         (push_reload): Pass inner mode.
282
283 2004-12-06  Eric Christopher  <echristo@redhat.com>
284
285         * doc/tm.texi (TARGET_VALID_POINTER_MODE): Document.
286
287 2004-12-06  Aldy Hernandez  <aldyh@redhat.com>
288
289         * config/rs6000/sysv4.h: Define RELOCATABLE_NEEDS_FIXUP to 1.
290
291 2004-12-06  Zdenek Dvorak  <dvorakz@suse.cz>
292             Kazu Hirata  <kazu@cs.umass.edu>
293
294         PR tree-optimization/18601
295         * tree-cfg.c (thread_jumps, thread_jumps_from_bb): Removed.
296         (tree_forwarder_block_p): Do not consider blocks that are its own
297         successors forwarders.
298         (cleanup_forwarder_blocks, remove_forwarder_block): New functions.
299         (cleanup_tree_cfg): Use cleanup_forwarder_blocks instead of
300         thread_jumps.
301         * tree-flow.h (bb_ann_d): Remove forwardable.
302
303 2004-12-06  Kazu Hirata  <kazu@cs.umass.edu>
304
305         * expr.c (expand_expr_real_1): Remove an "if" whose condition
306         is always false.
307
308 2004-12-06  Roger Sayle  <roger@eyesopen.com>
309
310         * c-gimplify.c (gimplify_c_loop): Improve initial implementations
311         for loops whose conditions are known at compile-time.
312         * gimplify.c (append_to_statement_list_1): Remove side_effects
313         parameter, this function should never be called if its false.
314         (append_to_statement_list): Only call append_to_statement_list_1
315         if t is non-NULL tree with side-effects.
316         (append_to_statement_list_force):  Likewise, if t is not NULL.
317
318 2004-12-06  J"orn Rennecke <joern.rennecke@st.com>
319
320         * bt-load.c (btr_def_s): New member own_end;
321         (add_btr_to_live_range): Add second parameter.  Changed caller.
322         (clear_btr_from_live_range): Clear btrs_live_at_end bit
323         for the register its definition basic block if own_end is set.
324         (augment_live_range): Also take btrs_live_at_end into account.
325         (combine_btr_defs): Don't bother with
326         other_def->other_btr_uses_after_use if it pertains to a different
327         register.
328         (move_btr_def): Set def->other_btr_uses_before_def after
329         calling combine_btr_defs."
330
331         * bt-load.c (augment_live_range): New argument full_range.
332         Changed all callers.
333
334         * bt-load.c (move_tr_def): Set other_tr_uses_before_def
335         taking new btr assignment into account.
336
337 2004-12-05  Daniel Berlin <dberlin@dberlin.org>
338
339         * tree-ssa-alias.c (create_global_var): Use void_type_node,
340         not size_type_node.
341
342 2004-12-05  Kazu Hirata  <kazu@cs.umass.edu>
343
344         * expr.c (expand_expr_real_1): Abort on COND_EXPR of
345         VOID_TYPE.
346
347 2004-12-05  Richard Henderson  <rth@redhat.com>
348
349         PR target/18841
350         * config/alpha/alpha.md (UNSPECV_SETJMPR_ER): New.
351         (builtin_setjmp_receiver_er_sl_1): Use it.
352         (builtin_setjmp_receiver_er_1): Likewise.
353         (builtin_setjmp_receiver_er, exception_receiver_er): Remove.
354         (builtin_setjmp_receiver): Don't split for explicit relocs until
355         after reload.
356         (exception_receiver): Likewise.
357
358 2004-12-05  Andrew Pinski  <pinskia@physics.uc.edu>
359
360         * mklibgcc.in (vis_hide): Add the prototype for the test.
361
362 2004-12-05  Roger Sayle  <roger@eyesopen.com>
363
364         * c-typeck.c (c_finish_loop): Improve initial implementations
365         for loops whose conditions are known at compile-time.
366
367 2004-12-05  Kazu Hirata  <kazu@cs.umass.edu>
368
369         * builtins.c: Fix comment typos.
370
371 2004-12-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
372
373         PR middle-end/18730
374         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): When
375         the first/last insn is a sequence, return the first/last insn of the
376         sequence.
377
378         PR bootstrap/18804
379         * mklibgcc.in (vis_hide): Use implementation instead of declaration
380         for test function.
381
382 2004-12-04  Richard Henderson  <rth@redhat.com>
383
384         * config/alpha/alpha.c (alpha_expand_unaligned_load): Don't forget to
385         use ofs in BWX two byte special case.
386         (alpha_expand_unaligned_store): Likewise.
387
388 2004-12-04  Kazu Hirata  <kazu@cs.umass.edu>
389
390         * gcse.c (gcse_main): Add a comment.
391
392 2004-12-04  Andrew  Pinski  <pinskia@physics.uc.edu>
393
394         PR middle-end/17909
395         * builtins.c (fold_builtin_next_arg): Export and return true
396         when there is a warning or an error.
397         (expand_builtin_va_start): When fold_builtin_next_arg returns true,
398         return const0_rtx.
399         (expand_builtin): Likewise.
400         * gimplify.c (gimplify_call_expr): Error out if there is not
401         enough arguments to va_start. Call fold_builtin_next_arg also
402         on the second argument.
403         * tree.h (fold_builtin_next_arg): Prototype.
404
405 2004-12-04  Alan Modra  <amodra@bigpond.net.au>
406
407         * mklibgcc.in: Build shared libgcc and shared libunwind in gcc/.
408         Don't subst shlib_dir for SHLIB_LINK, SHLIBUNWIND_LINK,
409         SHLIB_INSTALL, and SHLIBUNWIND_INSTALL.
410         * config/i386/t-nwld (SHLIB_NAME): Use shlib_base_name in place of
411         shlib_dir and shlib_so_name.
412         * config/mips/t-slibgcc-irix (SHLIB_NAME): Likewise.
413         * config/t-libunwind-elf (SHLIB_NAME): Likewise.
414         * config/t-slibgcc-darwin (SHLIB_NAME): Likewise.
415         * config/t-slibgcc-elf-ver (SHLIB_NAME): Likewise.
416         * config/t-slibgcc-sld (SHLIB_NAME): Likewise.
417         (SHLIB_LINK): Don't use shlib_dir when creating symlink.
418
419 2004-12-03  Roger Sayle  <roger@eyesopen.com>
420
421         * doc/tm.texi (TARGET_DELEGITIMIZE_ADDRESS): Document target hook.
422
423 2004-12-03  Richard Henderson  <rth@redhat.com>
424
425         * alias.c (component_uses_parent_alias_set): Rename from
426         can_address_p.  Return bool.  Reverse the sense of the result.
427         Reinstate the check for alias set zero.
428         (get_alias_set): Update to match.
429         * alias.h (component_uses_parent_alias_set): Likewise.
430         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
431         * expr.c (expand_assignment): Likewise.
432         * expr.h: Remove commented out prototypes that were moved to alias.h.
433
434 2004-12-03  Richard Henderson  <rth@redhat.com>
435
436         * doc/tm.texi (TARGET_BUILD_BUILTIN_VA_LIST): New.
437         (TARGET_CANNOT_FORCE_CONST_MEM): New.
438
439 2004-12-04  Alan Modra  <amodra@bigpond.net.au>
440
441         PR middle end/18718
442         * sched-rgn.c (schedule_region): Don't assume REG_SAVE_NOTEs are
443         in pairs.
444         * sched-ebb.c (schedule_ebb): Likewise.
445
446 2004-12-03  Andreas Schwab  <schwab@suse.de>
447
448         * Makefile.in (HOSTHOOKS_DEF_H): Define.
449         (ggc-common.o): Depend on $(HOSTHOOKS_DEF_H).
450         (host-default.o): Likewise.
451
452 2004-12-03  Eric Christopher  <echristo@redhat.com>
453
454         * config/stormy16/stormy16.md (pushqi, popqi, pushhi,
455         pophi): Add number of arguments to name so that the
456         pattern is recognized as a named pattern.
457
458 2004-12-03  Janis Johnson  <janis187@us.ibm.com>
459
460         * doc/extend.texi (AltiVec Builtins): Fix info about signedness.
461
462 2004-12-03  Andreas Tobler  <a.tobler@schweiz.ch>
463
464         * config/rs6000/rs6000.c (rs6000_override_options): Protect
465         darwin_one_byte_bool with #if.
466
467 2004-12-03  Paolo Bonzini  <bonzini@gnu.org>
468
469         * doc/tm.texi (Misc): Document TARGET_FOLD_BUILTIN.
470
471 2004-12-03  H.J. Lu  <hongjiu.lu@intel.com>
472
473         * mklibgcc.in: Put back the default set of EXTRA_MULTILIB_PART.
474
475 2004-12-03  Richard Sandiford  <rsandifo@redhat.com>
476
477         * configure.ac: Move TL_AC_GCC_VERSION into initialization section.
478         Set libstdcxx_incdir directly.
479         * configure: Regenerate.
480
481 2004-12-03  Kazu Hirata  <kazu@cs.umass.edu>
482
483         * tree-ssa-dom.c (record_equivalences_from_phis): Remove an
484         "if" whose condition is always true.
485
486         * cfgrtl.c (rtl_verify_flow_info_1): Use JUMP_P instead of
487         INSN_P.
488
489 2004-12-02  Stan Shebs  <shebs@apple.com>
490
491         * config/rs6000/rs6000.c (rs6000_override_options): Make 64-bit
492         Darwin default to one-byte bools.
493
494 2004-12-02  Richard Henderson  <rth@redhat.com>
495
496         PR 18774
497         * simplify-rtx.c (simplify_immed_subreg): Fail complex modes.
498
499 2004-12-03  Ben Elliston  <bje@au.ibm.com>
500
501         * doc/cfg.texi (Edges): Update. Document the edge_iterator data
502         type and its methods.
503
504 2004-12-02  Richard Henderson  <rth@redhat.com>
505
506         * expr.c (write_complex_part): Use simplify_gen_subreg when the
507         submode is at least as large as a word.
508         (read_complex_part): Likewise.
509
510 2004-12-02  H.J. Lu  <hongjiu.lu@intel.com>
511
512         PR bootstrap/18532
513         * mklibgcc.in: Build one set of EXTRA_MULTILIB_PARTS for
514         multilib at a time. Don't build the default set. Don't add
515         EXTRA_MULTILIB_PARTS to shared libunwind nor libgcc. Remove
516         filter for shared libunwind and libgcc.
517
518 2004-12-02  Roger Sayle  <roger@eyesopen.com>
519
520         PR target/18759
521         * config/i386/i386.c (override_options): If -fomit-frame-pointer has
522         already been specified, ignore the -momit-leaf-frame-pointer option.
523
524 2004-12-02  H.J. Lu  <hongjiu.lu@intel.com>
525
526         * varasm.c (make_decl_rtl): Add the missing `;'.
527
528 2004-12-02  Andrew Pinski  <pinskia@physics.uc.edu>
529
530         * tree.c (is_attribute_p): Split out to ..
531         (is_attribute_with_length_p): Here.  Use IDENTIFIER_LENGTH instead
532         of strlen and compare the string lengths before calling strcmp.
533         (lookup_attribute): Call is_attribute_with_length_p instead of
534         is_attribute_p.
535
536 2004-12-02  Devang Patel  <dpatel@apple.com>
537
538         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -gfull and -gused.
539         * config/rs6000/darwin.h (CC1_SPEC): Do not handle -gfull and -gused.
540         * config/i386/darwin.h (CC1_SPEC): Same.
541
542 2004-12-02  Richard Henderson  <rth@redhat.com>
543
544         * optabs.c (lowpart_subreg_maybe_copy): New.
545         (expand_unop, expand_abs_nojump): Use it.
546
547 2004-12-02  J"orn Rennecke <joern.rennecke@st.com>
548
549         * sh.md (extv, extzv): Add pattern predicate.
550
551 2004-12-02  Kazu Hirata  <kazu@cs.umass.edu>
552
553         * tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF
554         is not null.
555
556         * tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF
557         is not null.
558
559         * tree-cfg.c (thread_jumps): Reduce the size of WORKLIST.
560
561 2004-12-02  Jeff Law  <law@redhat.com>
562
563         * tree-eh.c: Revert yesterday's change.
564
565 2004-12-02  Andrew Pinski  <pinskia@physics.uc.edu>
566
567         * varasm.c (decode_reg_name): Revert change to check for zero
568         length strings.
569         (make_decl_rtl): Make sure that we call decode_reg_name only
570         when needed.
571
572 2004-12-02  Dorit Naishlos  <dorit@il.ibm.com>
573
574         PR tree-opt/18716
575         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Properly set
576         then and else labels.
577
578 2004-12-02  Andreas Schwab  <schwab@suse.de>
579
580         * Makefile.in (WERROR_FLAGS): Renamed from WERROR.
581         (STRICT2_WARN): Use $(WERROR_FLAGS) instead of $(WERROR).
582         (STAGE2_FLAGS_TO_PASS): Likewise.
583
584         * config/i386/x-mingw32: Set WERROR_FLAGS instead of WERROR.
585
586 2004-12-02  Richard Sandiford  <rsandifo@redhat.com>
587
588         * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.  Remove
589         now-redundant AC_SUBSTs.
590         * aclocal.m4: Include ../config/gcc-version.m4.
591         * configure: Regenerate.
592
593 2004-12-02  Alan Modra  <amodra@bigpond.net.au>
594
595         * config/rs6000/rs6000.c (rs6000_assemble_integer): Put back the
596         #ifdef RELOCATABLE_NEEDS_FIXUP.
597
598 2004-12-01  Roger Sayle  <roger@eyesopen.com>
599
600         PR target/9908
601         * config/i386/i386.md (*call_value_1, *sibcall_value_1): Correct
602         Intel assembler syntax by using %A1 instead of %*%1.
603
604 2004-12-01  Richard Henderson  <rth@redhat.com>
605
606         * expr.c (expand_assignment): Handle CONCAT both as a final
607         destination and as a middle point.
608
609 2004-12-01  Jeff Law  <law@redhat.com>
610
611         * tree-eh.c (save_eptr, save_filt): Now file scoped statics.
612         (honor_protect_cleanup_actions): Only create save_eptr and
613         save_filt if they do not already exist.
614         (lower_eh_constructs): Wipe all knowledge of save_eptr and
615         save_filt before returning.
616
617 2004-12-02  Kazu Hirata  <kazu@cs.umass.edu>
618
619         * tree-phinodes.c (remove_phi_arg_num): Fix a comment.
620
621 2004-12-02  Alan Modra  <amodra@bigpond.net.au>
622
623         PR target/16952
624         * config/rs6000/rs6000.c (rs6000_assemble_integer): Replace
625         #ifdef RELOCATABLE_NEEDS_FIXUP with if.
626         * config/rs6000/linux.h (RELOCATABLE_NEEDS_FIXUP): Define in terms
627         of target_flags_explicit.
628         * config/rs6000/linux64.h (RELOCATABLE_NEEDS_FIXUP): Ditto for biarch
629         case.  Define as 0 for non-biarch.
630
631 2004-12-01  Zack Weinberg  <zack@codesourcery.com>
632
633         * config/rs6000/t-aix43, config/rs6000/t-aix52 (SHLIB_LINK):
634         Change temporary file tag from a prefix to an infix.
635
636 2004-12-02  Andreas Schwab  <schwab@suse.de>
637
638         * gcc.c (struct option_map): Add entry for "--pass-exit-codes".
639
640 2004-12-01  Andrew Pinski  <pinskia@physics.uc.edu>
641
642         PR tree-opt/18763
643         PR tree-opt/18746
644         * tree-ssa-alias.c (init_alias_info): Get statement operands for all
645         the statements if aliases_computed_p is true.
646
647 2004-12-01  Mark Mitchell  <mark@codesourcery.com>
648
649         * Makefile.in (WERROR): New variable.
650         (STRICT2_WARN): Use it.
651         (STAGE2_FLAGS_TO_PASS): Likewise.
652         * config/i386/x-mingw32 (WERROR): Add -Wno-format.
653
654 2004-12-01  Richard Henderson  <rth@redhat.com>
655
656         * expr.c (get_inner_reference): Fix thinko in REAL/IMAGPART_EXPR
657         offsetting.
658
659 2004-12-01  Diego Novillo  <dnovillo@redhat.com>
660
661         PR tree-optimization/18291
662         * tree-ssa-copy.c (merge_alias_info): Fix merging of
663         flow-sensitive alias information.  If the new pointer has no
664         name tag, copy it from the original pointer.  Otherwise, make
665         sure that the pointed-to sets have a common intersection.
666
667 2004-12-01  Richard Henderson  <rth@redhat.com>
668
669         PR rtl-opt/15289
670         * emit-rtl.c (gen_complex_constant_part): Remove.
671         (gen_realpart, gen_imagpart): Remove.
672         * rtl.h (gen_realpart, gen_imagpart): Remove.
673         * expmed.c (extract_bit_field): Remove CONCAT hack catering to
674         gen_realpart/gen_imagpart.
675         * expr.c (write_complex_part, read_complex_part): New.
676         (emit_move_via_alt_mode, emit_move_via_integer, emit_move_resolve_push,
677         emit_move_complex_push, emit_move_complex, emit_move_ccmode,
678         emit_move_multi_word): Split out from ...
679         (emit_move_insn_1): ... here.
680         (expand_expr_real_1) <COMPLEX_EXPR>: Use write_complex_part.
681         <REALPART_EXPR, IMAGPART_EXPR>: Use read_complex_part.
682         * function.c (assign_parm_setup_reg): Hard-code transformations
683         instead of using gen_realpart/gen_imagpart.
684
685         * expr.c (optimize_bitfield_assignment_op): Split out from ...
686         (expand_assignment): ... here.  Use handled_component_p to gate
687         get_inner_reference code.  Simplify MEM handling.  Special case
688         CONCAT destinations.
689
690         * expmed.c (store_bit_field): Use simplify_gen_subreg instead
691         of gen_rtx_SUBREG directly.
692
693 2004-12-01  David Edelsohn  <edelsohn@gnu.org>
694             Nathan Sidwell  <nathan@codesourcery.com>
695
696         PR target/17107
697         * config/rs6000/rs6000.md (sge): Enable for non-TARGET_POWER.
698         (sgt): Same.
699         (sle): Same.
700         (slt): Same.
701
702 2004-12-01  Nathan Sidwell  <nathan@codesourcery.com>
703
704         PR middle-end/18667
705         * params.c (set_param_value): Add range check.
706         * params.def: Add min and max values. Reformat long strings.
707         * params.h (struct param_info): Add min and max fields.
708         (enum compiler_param): Adjust DEFPARAM.
709         * toplev.c (lang_independent_params): Likewise.
710
711 2004-12-01  Alan Modra  <amodra@bigpond.net.au>
712
713         PR target/12817
714         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use r0 for vrsave.
715
716 2004-12-01  Joseph S. Myers  <joseph@codesourcery.com>
717
718         * doc/standards.texi: Update for C99 TC2.
719
720 2004-11-30  Jeff Law  <law@redhat.com>
721
722         * sbitmap.c (sbitmap_any_common_bits): New function.
723         * sbitmap.h (sbitmap_any_common_bits): Prototype.
724         * modulo-sched.c (sms_schedule_by_order): Use sbitmap_any_common_bits
725         No longer allocate/free "psp", "pss" sbitmaps.
726         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Similarly for
727         the "res" sbitmap.
728         (group_aliases): Similarly.
729
730 2004-11-30  Nathan Sidwell  <nathan@codesourcery.com>
731
732         * tree-vectorizer.c (vect_analyze_data_refs): Reformat and avoid
733         uninitialized variable.
734
735 2004-11-30  Eric Christopher  <echristo@redhat.com>
736
737         * fold-const.c (fold_widened_comparison): Make sure that we're
738         passing an INTEGER_TYPE to int_fits_type_p.
739         (fold): Clean up comment.
740
741 2004-11-30  Zack Weinberg  <zack@codesourcery.com>
742
743         * mklibgcc.in: Correct calculation of libgcc_s_soname and
744         libunwind_soname.  Use $out, not $outS, in commands for
745         no-shared-library case.  Move EXTRA_MULTILIB_PARTS rules above
746         library build rules, make $libunwind_so and $libgcc_s_so
747         depend on them in the normal fashion, and filter those objects
748         out of @shlib_objs@.
749
750 2004-11-30  Janis Johnson  <janis187@us.ibm.com>
751
752         * config/rs6000/altivec.h (vec_step_help): Support const vector types.
753
754 2004-11-30  Andrew Pinski  <pinskia@physics.uc.edu>
755
756         PR tree-opt/18298
757         * tree-optimize.c (init_tree_optimization_passes): Add a may_alias
758         pass right after fold builtins.
759
760 2004-11-30  Andreas Krebbel  <krebbel1@de.ibm.com>
761
762         * config/s390/s390-modes.def: Added cc modes documentation.
763         * config/s390/s390.c: (s390_tm_ccmode, s390_select_ccmode,
764         s390_expand_addcc): Added cc mode comments.
765         * config/s390/s390.md: Removed old cc mode documentation.
766
767 2004-11-30  Mark Dettinger  <dettinge@de.ibm.com>
768
769         * config/s390/s390.c (struct processor_costs): New data type.
770         (s390_cost, z900_cost, z990_cost): New global variables.
771         (override_options): Initialize s390_cost.
772         (s390_rtx_costs): Reimplement.
773
774 2004-11-29  Daniel Berlin  <dberlin@dberlin.org>
775
776         Fix PR tree-optimization/18673
777
778         * tree-ssa-pre.c: Remove splay-tree.h include.
779         (bitmap_value_replace_in_set): Fix to add if it does not exist.
780         (find_or_generate_expression): Remove now-wrong condition.
781         (create_expression_by_pieces): Fix condition and comment reason
782         for it.
783         (insert_aux): Fix condition and comment reasons for it.
784         Factor insertion code from here.
785         (insert_into_preds_of_block): To here.  Fix conditions in factored
786         function and comment reasons for them.
787
788 2004-11-30  Ira Rosen  <irar@il.ibm.com>
789
790         PR tree-opt/18607
791         * tree-vectorizer.c (vect_analyze_data_refs): Use temporary
792         variable for data_reference when looking for memtag.
793
794 2004-11-30  Jakub Jelinek  <jakub@redhat.com>
795
796         * c-opts.c (check_deps_environment_vars): If spec != NULL, set
797         deps_seen.
798
799 2004-11-30  Dorit Naishlos  <dorit@il.ibm.com>
800
801         * tree-vectorizer.c (vect_gen_niters_for_prolog_loop): Use
802         tree_low_cst instead of TREE_INT_CST_LOW.
803
804 2004-11-30  Dorit Naishlos  <dorit@il.ibm.com>
805
806         PR target/18173
807         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Return false for
808         decls that are assembled before vectorization takes place.
809         (vect_compute_data_ref_alignment): Set DECL_USER_ALIGN to 1.
810
811 2004-11-30  Ulrich Weigand  <uweigand@de.ibm.com>
812
813         * passes.c (rest_of_handle_old_regalloc): Delete unreachable blocks
814         if local_alloc modified jumps.
815
816 2004-11-30  Alan Modra  <amodra@bigpond.net.au>
817
818         * varasm.c (default_encode_section_info): Don't set SYMBOL_FLAG_SMALL
819         on TLS symbols.
820         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Remove TLS
821         check.
822
823 2004-11-30  Zack Weinberg  <zack@codesourcery.com>
824
825         * gthr-gnat.c, gthr-gnat.h, gthr.h, libgcc2.h, unwind-dw2-fde.h
826         * unwind.h: Surround all visibility pragmas with #ifndef HIDE_EXPORTS.
827
828         * mklibgcc.in: Drastic restructure for comprehensibility.
829         Remove the old hidden-directive hack.
830         Eliminate support for .txt files in LIB2ADD etc (never used).
831         Eliminate support for assembly source files in LIB2ADDEH* and
832         LIBUNWIND (also never used).
833         Build up dependency lists for libraries incrementally.
834         If we have SHLIB_LINK, compile each file twice, once for the
835         static and once for the shared library; also probe for
836         -fvisibility=hidden in the generated libgcc.mk.  If found,
837         pass that and -DHIDE_EXPORTS to the compilation of every C
838         source file going into the static library.  If found, generate
839         hidden-directive lists for every assembly source file going
840         into the static library, but incorporate them with -include
841         instead of ld -r.
842         Write comments into generated libgcc.mk to facilitate debugging.
843         * Makefile.in: Pass ASM_HIDDEN_OP to mklibgcc.
844         * config/t-slibgcc-darwin: Define ASM_HIDDEN_OP.
845
846         * config/darwin.h (REAL_LIBGCC_SPEC): Put -lgcc back in
847         -Zdynamiclib case.
848
849 2004-11-29  Richard Henderson  <rth@redhat.com>
850
851         * expr.c (get_inner_reference): Handle REAL/IMAGPART_EXPR.
852         (handled_component_p): Likewise.
853         * alias.c (can_address_p): Reformat and simplify.  Handle
854         REAL/IMAGPART_EXPR.  Do not disable addressability based on
855         alias set zero.
856         * fold-const.c (build_fold_addr_expr_with_type): Remove duplicate
857         check for REAL/IMAGPART_EXPR.
858         * gimplify.c (gimplify_compound_lval): Likewise.
859         * tree-cfg.c (verify_expr): Likewise.
860         * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
861         * tree-nested.c (build_addr, convert_nonlocal_reference): Likewise.
862         (convert_local_reference): Likewise.
863         * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Likewise.
864
865 2004-11-30  Alan Modra  <amodra@bigpond.net.au>
866
867         * expr.c (emit_group_load_1): Don't die on const_int orig_src.
868
869 2004-11-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
870
871         PR pch/14940
872         * config/pa/pa-host.c, config/pa/x-hpux, config/pa/x-linux: New files.
873         * config.host (hppa*-*-hpux*, hppa*-*-linux): Define out_host_hook_obj
874         and host_xmake_file using new host configuration files.
875
876 2004-11-29  Roger Sayle  <roger@eyesopen.com>
877
878         * reg-stack.c (change_stack): Improve algorithm used to pop regs
879         off the stack to maximize ffreep usage and reduce fxch count.
880
881 2004-11-30  James A. Morrison  <phython@gcc.gnu.org>
882
883         PR middle-end/18596
884         * c-decl.c (grokdeclarator): Reset DECL_INTIAL to error_mark_node
885         on errors.
886
887 2004-11-30  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
888
889         * expr.c (expand_expr_real_1, case NOP_EXPR): Properly handle
890         REDUCE_BIT_FIELD by applying it to result, not input, of conversion.
891
892 2004-11-30  Ben Elliston  <bje@au.ibm.com>
893
894         * Makefile.in (REGS_H): Depend on $(BASIC_BLOCK_H).
895
896 2004-11-29  Andrew Pinski  <pinskia@physics.uc.edu>
897
898         PR c/18479
899         * c-common.c (handle_visibility_attribute): When the type decl
900         is really a identifier node, warn about being ignored and return.
901
902 2004-11-29  Richard Henderson  <rth@redhat.com>
903
904         * tree-cfg.c (tree_node_can_be_shared): Fix typo'd error_mark_node.
905
906 2004-11-29  Steven Bosscher  <stevenb@suse.de>
907
908         * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge):
909         Remove CASE_DROPS_THROUGH checks, it is never defined.
910         * cfglyout.c (fixup_reorder_chain): Likewise.
911         * cfgrtl.c (rtl_verify_flow_info): Likewise.
912         * stmt.c (expand_case): Likewise.
913         * cfgbuild.c (make_edges): Likewise.  Also remove force_fallthru,
914         it is now always 0.
915         * system.h (CASE_DROPS_THROUGH): Poison.
916         * doc/md.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
917         * doc/tm.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
918
919         * config/v850/v850.h: Remove commented out CASE_DROPS_THROUGH.
920
921 2004-11-29  Andrew Pinski  <pinskia@physics.uc.edu>
922
923         PR middle-end/18725
924         * tree-cfg.c (tree_node_can_be_shared): Error_mark_node can be
925         shared always.
926
927 2004-11-29  Diego Novillo  <dnovillo@redhat.com>
928
929         PR tree-optimization/18712
930         * tree-into-ssa.c (insert_phi_nodes_for): Pass argument
931         WORK_STACK by reference.
932         Call VEC_safe_push instead of VEC_quick_push.
933         Update all users.
934
935 2004-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
936
937         PR c/7544
938         * Makefile.in (c-lang.o): Update dependencies.
939         * c-lang.c: Include "c-pragma.h".
940         (finish_file): Call maybe_apply_pending_pragma_weaks.
941         * c-pragma.c (maybe_apply_pending_pragma_weaks): New function.
942         * c-pragma.h (maybe_apply_pending_pragma_weaks): New prototype.
943
944 2004-11-29  Richard Henderson  <rth@redhat.com>
945
946         PR target/17224
947         * config/ia64/predicates.md (sdata_symbolic_operand): Deny offsets
948         outside the referenced object.
949
950 2004-11-29  Kazu Hirata  <kazu@cs.umass.edu>
951
952         * tree-if-conv.c (replace_phi_with_cond_modify_expr): Use
953         EDGE_PRED instead of PHI_ARG_EDGE.
954         * tree-ssa-live.c: Likewise.
955         * tree-ssa-loop-manip.c: Likewise.
956         * tree-ssa.c: Likewise.
957
958         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Speed up by
959         simplifying edge manipulation.
960
961         * cfgrtl.c (rtl_tidy_fallthru_edge): Speed up by using
962         EDGE_COUNT.
963
964         * tree-cfg.c (tree_redirect_edge_and_branch): Call find_edge
965         only when needed.
966
967         * cfg.c (flow_obstack): Remove.
968         (flow_firstobj): Likewise.
969         (init_flow): Remove all uses of flow_obstack.
970
971 2004-11-29  Alan Modra  <amodra@bigpond.net.au>
972
973         * varasm.c (default_elf_select_section_1): Only pass DECL_P decl
974         to named_section.
975
976 2004-11-29  Nathan Sidwell  <nathan@codesourcery.com>
977
978         * opts.c (decode_options): Do not set max-inline-insns-rtl.
979         (common_handle_option): Likewise.
980         * params.def (PARAM_MAX_INLINE_INSNS_RTL): Remove.
981         * params.h (MAX_INLINE_INSNS_RTL): Remove.
982         * doc/invoke.texi (max-inline-insns-rtl): Remove.
983
984 2004-11-29  Alan Modra  <amodra@bigpond.net.au>
985
986         PR target/9571
987         * varasm.c (default_elf_select_section_1): Pass decl to named_section.
988
989 2004-11-28  Andrew Pinski  <pinskia@physics.uc.edu>
990
991         PR middle-end/18164
992         * gimplify.c (gimplify_asm_expr): If the length of an output operand
993         is zero, do not process it, just let it go through.
994
995 2004-11-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
996             Diego Novillo  <dnovillo@redhat.com>
997
998         PR/18662, also backported from tree-cleanup-branch.
999         * tree-ssa-ccp.c (substitute_and_fold): If replaced anything,
1000         always call maybe_clean_eh_stmt and modify_stmt.
1001
1002 2004-11-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1003
1004         PR/18664
1005         * tree-ssa-operands.c (build_ssa_operands, case MODIFY_EXPR):
1006         Ignore a VIEW_CONVERT_EXPR on LHS when deciding if must or may def.
1007         * tree-ssa-ccp.c (visit_assignment): If LHS is a VIEW_CONVERT_EXPR,
1008         add an inverse VIEW_CONVERT_EXPR to const_val.
1009
1010         PR/18657
1011         * tree-nested.c (check_for_nested_with_variably_modified): New.
1012         (create_nesting_tree): Call it.
1013
1014         * tree-ssa-alias.c (compute_points_to_and_addr_escapes): Remove
1015         special code for assigning to non-pointer.
1016         (is_escape_site): If RHS is a conversion between pointer and integer
1017         types,  this is an escape site.
1018
1019         * gcse.c (insert_store): Error if try to insert store on abnormal edge.
1020         (store_motion): Don't move store if any edge we'd want to move it
1021         to is abnormal.
1022
1023         * expr.c (expand_expr_real_1, case ARRAY_REF): Properly fold with
1024         non-zero lower bound.
1025
1026         * expr.c (categorize_ctor_elements_1, case STRING_CST): New case.
1027
1028 2004-11-28  Matt Kraai  <kraai@alumni.cmu.edu>
1029
1030         PR diagnostic/17594
1031         * opts.c (find_opt): Require that the input match a switch exactly
1032         or that the switch take a joined option to be interpreted as a
1033         match for another language.
1034
1035 2004-11-28  Andrew Pinski  <pinskia@physics.uc.edu>
1036
1037         * timevar.def (TV_TREE_REDPHI): New timevar.
1038         * tree-ssa.c (pass_redundant_phi): Use TV_TREE_REDPHI for the tv id.
1039
1040 2004-11-28  Nathanael Nerode  <neroden@gcc.gnu.org>
1041
1042         PR preprocessor/17651
1043         * c-opts.c (sanitize_cpp_opts): Make flag_no_output imply
1044         flag_no_line_commands.
1045         * c-ppoutput.c (pp_file_change): Remove now-redundant check of
1046         flag_no_output.
1047
1048 2004-11-28  Theodore A. Roth  <troth@openavr.org>
1049
1050         * config/avr/avr.c (avr_handle_fndecl_attribute): Generate a
1051         warning if the function name does not begin with "__vector" and the
1052         function has either the 'signal' or 'interrupt' attribute.
1053
1054 2004-11-28  Theodore A. Roth  <troth@openavr.org>
1055
1056         * config/avr/avr.c (avr_mcu_types): Add entries for atmega48,
1057         atmega88, atmega168, attiny13, attiny2313, at90can128, atmega165,
1058         atmega325, atmega3250, atmega645 and atmega6450.
1059         * config/avr/avr.h (LINK_SPEC): Ditto.
1060         (LIB_SPEC): Ditto.
1061         (LIBGCC_SPEC): Ditto.
1062         (CRT_BINUTILS_SPECS): Ditto.
1063         * config/avr/t-avr (MULTILIB_MATCHES): Ditto.
1064
1065 2004-11-28  Nathanael Nerode  <neroden@gcc.gnu.org>
1066
1067         PR preprocessor/17610
1068         * testsuite/gcc.dg/cpp/empty-include.c: New testcase.
1069
1070 2004-11-28  Jeff Law  <law@redhat.com>
1071
1072         * tree-ssa-alias.c (count_calls_and_maybe_create_global_var): New.
1073         (pass_maybe_create_global_var): New.
1074         * tree-pass.h (pass_maybe_create_global_var): Declare.
1075         * tree-optimize.c (init_tree_optimization_passes): Link in
1076         pass_maybe_create_global_var.
1077
1078 2004-11-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1079
1080         * tree-inline.c (inline_forbidden_p_1, case RECORD_TYPE): Add comment.
1081
1082 2004-11-28  Ulrich Weigand  <uweigand@de.ibm.com>
1083
1084         PR rtl-optimization/18420
1085         * simplify-rtx.c (simplify_gen_subreg): Revert 2004-10-28 change.
1086
1087 2004-11-28  Steven Bosscher  <stevenb@suse.de>
1088             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1089
1090         * config/vax/vax.h (CASE_DROPS_THROUGH): Don't define.
1091         * config/vax/vax.md (casesi): Emit a test-and-branch to make sure
1092         that the case is in range, to make sure the casesi insn is always
1093         in range and never falls through.
1094         (casesi1): Add comment to explain why casesi never falls through.
1095         Remove the unnamed special case casesi pattern.
1096
1097 2004-11-28  Hans-Peter Nilsson  <hp@bitrange.com>
1098
1099         PR target/18331
1100         * config/mmix/mmix.md ("*movdicc_real_reversible"): Rename from
1101         "*movdicc_real".  Only match reversible comparisons.
1102         ("*movdicc_real_nonreversible"): New pattern, split from
1103         "*movdicc_real".  Match only nonreversible comparisons.  Exclude
1104         reversed alternatives.
1105         ("*movdfcc_real_reversible", "*movdfcc_real_nonreversible"):
1106         Similar.
1107
1108 2004-11-27  Richard Henderson  <rth@redhat.com>
1109
1110         * config/ia64/ia64.md: Move all define_predicate's ...
1111         * config/ia64/predicates.md: ... here.  New file.
1112
1113 2004-11-27  Per Bothner  <per@bothner.com>
1114
1115         PR bootstrap/18142
1116         Re-applied following, with two modifications: add a URL for the
1117         fixed cctools; only exit if $build = $target.
1118
1119         2004-10-18  Kelley Cook  <kcook@gcc.gnu.org>
1120         * configure.ac (powerpc-*-darwin*): Require assembler to support
1121         .machine directive.
1122         * configure: Regenerate.
1123
1124 2004-11-28  David Edelsohn  <edelsohn@gnu.org>
1125
1126         PR target/16800
1127         * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve accuracy of
1128         EQ, GTU, and LTU costs.  Add costs for GT, LT, and UNORDERED.
1129         Distinguish between SImode and DImode CONST_INT.
1130
1131 2004-11-28  Andreas Fischer <a_fisch@gmx.de>
1132             Alan Modra  <amodra@bigpond.net.au>
1133
1134         PR target/16343
1135         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Disallow
1136         functions, strings and thread-local vars.
1137
1138 2004-11-28  Alan Modra  <amodra@bigpond.net.au>
1139
1140         * config/rs6000/rs6000.h (WORLD_SAVE_P): Define.
1141         * config/rs6000/darwin.h (WORLD_SAVE_P): Define.
1142         * config/rs6000/rs6000.c (compute_save_world_info): Use WORLD_SAVE_P
1143         to allow non-darwin ABIs to optimize away code.
1144         (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
1145
1146 2004-11-27  Kazu Hirata  <kazu@cs.umass.edu>
1147
1148         * tree.c (operand_equal_for_phi_arg_p): New.
1149         * tree.h: Add a prototype for operand_equal_for_phi_arg_p.
1150         * tree-cfg.c, tree-ssa-dom.c, tree-ssa-phiopt.c, tree-ssa.c:
1151         Replace operand_equal_p with operand_for_phi_arg_p
1152         appropriately.
1153
1154         * bb-reorder.c (find_traces_1_round): Speed up by using
1155         EDGE_COUNT instead of FOR_EACH_EDGE.
1156
1157         * fold-const.c, config/i386/linux64.h: Fix comment typos.
1158
1159 2004-11-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1160
1161         PR pch/14940
1162         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Revert 2004-11-22 change.
1163
1164 2004-11-27  Kazu Hirata  <kazu@cs.umass.edu>
1165
1166         * config/i386/linux.h: Fix a comment typo.
1167         * doc/extend.texi: Fix a typo.
1168
1169 2004-11-27  Jeff Law  <law@redhat.com>
1170
1171         * tree-cfg.c (cleanup_tree_cfg): Also return true if blocks
1172         are merged.
1173
1174 2004-11-27  Jakub Jelinek  <jakub@redhat.com>
1175
1176         * config/i386/linux64.h (REG_NAME): Define.
1177
1178 2004-11-27  Jakub Jelinek  <jakub@redhat.com>
1179
1180         * fold-const.c (extract_muldiv_1) <case ABS_EXPR>: If ctype is
1181         unsigned and type signed, build ABS_EXPR with signed_type (ctype)
1182         and only afterwards convert to ctype.
1183
1184 2004-11-27  Richard Sandiford  <rsandifo@redhat.com>
1185
1186         * config/mips/mips-protos.h (function_arg_boundary): Declare.
1187         * config/mips/mips.h (PARM_BOUNDARY): Simplify definition.
1188         (STACK_BOUNDARY, MIPS_STACK_ALIGN): Likewise.
1189         (FUNCTION_ARG_BOUNDARY): Use new function_arg_boundary function.
1190         * config/mips/mips.c (function_arg_boundary): New function.
1191         Impose a maximum alignment of STACK_BOUNDARY.
1192
1193 2004-11-27  Jakub Jelinek  <jakub@redhat.com>
1194
1195         PR rtl-optimization/17825
1196         * combine.c (subst): Ignore STRICT_LOW_PART no matter if REG_P (new)
1197         or not.
1198
1199 2004-11-27  Alan Modra  <amodra@bigpond.net.au>
1200
1201         PR target/12769
1202         * config/rs6000/rs6000.c (init_cumulative_args): Set call_cookie
1203         from rs6000_default_long_calls for libcalls.
1204
1205 2004-11-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1206
1207         * expmed.c (extract_bit_field): When extracting from non-integer mode,
1208         force a SUBREG into a register because we may be taking a further
1209         SUBREG of it.
1210
1211 2004-11-27  Di-an Jan  <dianj@freeshell.org>
1212
1213         * doc/contrib.texi (Tim Josling): Remove nesting quotation marks.
1214
1215 2004-11-26  Robert Millan  <robertmh@gnu.org>
1216
1217         Changes for k*bsd-gnu support.
1218         * config/i386/linux.h: Define REG_NAME to allow overriding of
1219         register names in sc structure.
1220         * config/i386/linux-unwind.h: Refer to sc->REG_NAME(reg) instead
1221         of sc->reg.
1222         * config.gcc: Detect x86_64-k*bsd-gnu systems.
1223
1224 2004-11-26  Jeff Law  <law@redhat.com>
1225
1226         * tree-ssa.c (verify_flow_sensitive_alias_info): Don't
1227         retrieve annotations or pointer info before it's necessary.
1228         Reorder tests for early continue of the loop.  Manually CSE
1229         SSA_NAME_VAR.
1230
1231 2004-11-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
1232
1233         * target.h (struct gcc_target): New field 'dwarf_handle_frame_unspec'.
1234         * target_def.h (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to 0.
1235         (TARGET_INITIALIZER): Add TARGET_DWARF_HANDLE_FRAME_UNSPEC.
1236         * dwarf2out.c (dwarf2out_frame_debug_expr): Allow REG->REG move
1237         to a fixed reg if the source is the Return Address register.
1238         Implement new Rule 15.
1239         * doc/tm.texi (Frame Layout): Document TARGET_DWARF_HANDLE_FRAME_UNSPEC.
1240         * config/sparc/sparc.c (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to
1241         sparc_dwarf_handle_frame_unspec.
1242         (gen_save_register_window): New function.
1243         (emit_stack_pointer_increment): Rename into gen_stack_pointer_inc.
1244         (emit_stack_pointer_decrement): Rename into gen_stack_pointer_dec.
1245         (expand_prologue): Adjust calls to emit_stack_pointer_{in,de}crement.
1246         Set RTX_FRAME_RELATED_P on the appropriate insns and members of insns.
1247         (sparc_asm_function_prologue): Do not emit call frame debugging info.
1248         (emit_and_preserve): Adjust calls to emit_stack_pointer_{in,de}crement.
1249         (sparc_expand_epilogue): Likewise.
1250         (sparc_dwarf_handle_frame_unspec): New function.
1251         * config/sparc/sparc.md (save_register_window): Remove.
1252         (save_register_windowdi): Rewrite modelled on the callframe debug info.
1253         (save_register_windowsi): Likewise.
1254
1255 2004-11-26  Alexandre Oliva  <aoliva@redhat.com>
1256
1257         * config/frv/frv-protos.h: Guard ifcvt functions declarations with
1258         BB_HEAD, not BLOCK_HEAD.
1259
1260 2004-11-26  Alexandre Oliva  <aoliva@redhat.com>
1261
1262         * config/frv/frv.c (frv_ifcvt_modify_insn): Don't leave alone
1263         scratch insns that set a register live at the join point.
1264
1265 2004-11-26  Kazu Hirata  <kazu@cs.umass.edu>
1266
1267         * cse.c, tree-ssa-operands.c: Fix comment typos.
1268
1269         * tree-cfg.c (tree_split_edge): Speed up by using find_edge.
1270
1271 2004-11-26  James A. Morrison  <phython@gcc.gnu.org>
1272
1273         PR target/18510
1274         * doc/extend.texi (SPARC VIS Built-in Functions): New section.
1275
1276 2004-11-26  Kazu Hirata  <kazu@cs.umass.edu>
1277
1278         * cfgrtl.c (try_redirect_by_replacing_jump): Speed up the
1279         check that tests if all edges go to the same destination.
1280
1281         * bitmap.c (bitmap_find_bit): Speed up by traversing from
1282         head->first if that seems profitable.
1283
1284 2004-11-25  Jeff Law  <law@redhat.com>
1285
1286         * timevar.def (TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI): New timevars.
1287         * tree-ssa-loop.c (pass_loop_init): Use TV_TREE_LOOP_INIT.
1288         (pass_loop_done): Use TV_TREE_LOOP_FINI.
1289
1290 2004-11-26  Alan Modra  <amodra@bigpond.net.au>
1291
1292         PR rtl-optimization/16356
1293         * config/rs6000/rs6000.md (floatdisf2_internal2): Rewrite with
1294         separate output register and one less jump.  Enable for powerpc64.
1295         (floatdisf2): Adjust for above.
1296
1297 2004-11-25  Bob Wilson  <bob.wilson@acm.org>
1298
1299         * config/xtensa/xtensa.h (STARTFILE_SPEC): Add crt0.
1300         (GCC_DRIVER_HOST_INITIALIZATION): Define.
1301
1302 2004-11-25  Andrew Pinski  <pinskia@physics.uc.edu>
1303
1304         PR middle-end/17957
1305         * tree-complex.c (vector_inner_type): New variable moved from
1306         build_word_mode_vector_type.
1307         (vector_last_type): Likewise.
1308         (vector_last_nunits): Likewise.
1309         (build_word_mode_vector_type): Use the new variables.
1310         * Makefile.in (tree-complex.o): Add gt-tree-complex.h $(GGC_H).
1311         (GTFILES): Add tree-complex.c.
1312         (gt-tree-complex.h): New rule, add it to the rest of the gt-* rules.
1313
1314 2004-11-25  Bob Wilson  <bob.wilson@acm.org>
1315
1316         * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define
1317         __XTENSA_WINDOWED_ABI__.
1318
1319 2004-11-25  Richard Henderson  <rth@redhat.com>
1320
1321         * dwarf2out.c (dwarf2out_stack_adjust): Add after_p argument.  Save
1322         args_size adjustments for calls even with cfa as stack pointer.
1323         Search calls for stack adjustments after the insn is issued.
1324         (dwarf2out_frame_debug): Add after_p argument; pass it on.
1325         * dwarf2out.h (dwarf2out_frame_debug): Update to match.
1326         * final.c (final_start_function, final_scan_insn): Likewise.
1327
1328 2004-11-25  Richard Henderson  <rth@redhat.com>
1329
1330         PR c++/6764
1331         * reload1.c (set_initial_eh_label_offset): New.
1332         (set_initial_label_offsets): Use it.
1333
1334 2004-11-25  Kaz Kojima  <kkojima@gcc.gnu.org>
1335
1336         * config/sh/sh.c (sh_output_mi_thunk): Initialize bitmap obstacks
1337         before calling life_analysis and release them after.
1338
1339 2004-11-25  Kazu Hirata  <kazu@cs.umass.edu>
1340
1341         * tree-ssa-forwprop.c (substitute_single_use_vars): Remove
1342         duplicate code.
1343
1344 2004-11-25  Andrew Pinski <pinskia@physics.uc.edu>
1345
1346         * bitmap.h (BITMAP_XMALLOC): Use BITMAP_ALLOC and not
1347         BITMAP_OBSTACK_ALLOC.
1348         (BITMAP_XFREE): Use BITMAP_FREE and not BITMAP_OBSTACK_FREE.
1349
1350 2004-11-25  Andrew Pinski <pinskia@physics.uc.edu>
1351
1352         parts of PR rtl-opt/18463, rtl-opt/17647
1353         * cse.c (canon_for_address): New function.
1354         (find_best_addr): Call canon_for_address before getting the
1355         address's cost when checking if we should take that address.
1356
1357 2004-11-25  Kazu Hirata  <kazu@cs.umass.edu>
1358
1359         * tree-phinodes.c (add_phi_arg): Take "tree" instead of
1360         "tree *" as the first argument.
1361         * tree-flow.h: Update the prototype of add_phi_arg.
1362         * lambda-code.c, tree-cfg.c, tree-into-ssa.c,
1363         tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
1364         tree-ssa-threadupdate.c, tree-ssa.c, tree-tailcall.c,
1365         tree-vectorizer.c: Update all call sites of add_phi_arg.
1366
1367 2004-11-25  Nathan Sidwell  <nathan@codesourcery.com>
1368
1369         * bitmap.c (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
1370         * bitmap.h (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
1371         (BITMAP_XMALLOC): Forward to BITMAP_OBSTACK_ALLOC.
1372         (BITMAP_XFREE): Forward to BITMAP_OBSTACK_FREE.
1373
1374 2004-11-25  Andrew MacLeod  <amacleod@redhat.com>
1375
1376         PR tree-optimization/18587
1377         * tree-flow-inline.h (mark_call_clobbered, mark_non_addressable): Flag
1378         call clobbered caches as invalid.
1379         * tree-ssa-operands.c (ssa_call_clobbered_cache_valid): New.  Flag
1380         indicating whether the call clobbered operand cache is valid.
1381         (ssa_ro_call_cache_valid): New.  Flag indicating whether the
1382         pure/const call operand cache is valid.
1383         (clobbered_v_may_defs, clobbered_vuses, ro_call_vuses): New.  Cached
1384         list of operands for cached call virtual operands.
1385         (clobbered_aliased_loads, clobbered_aliased_stores,
1386         ro_call_aliased_load): New.  flags caching whether alias bits are
1387         to be set in call stmt's.
1388         (fini_ssa_operands): Remove call operand caches if present.
1389         (get_expr_operands, get_asm_expr_operands,
1390         get_indirect_ref_operands): Pass stmt annotation to add_stmt_operand.
1391         (get_call_expr_operands): Add call clobbered variables first.
1392         (add_stmt_operand): Take stmt annotation rather than stmt as a param.
1393         (add_call_clobber_ops, add_call_read_ops): Use the call operand cache
1394         if it is valid, otherise fill the cache.
1395         * tree-ssa-operands.h (ssa_clobbered_cache_valid): Declare extern.
1396         * tree-flow.h (struct var_ann_d): Add in_vuse_list and
1397         in_v_may_def_list bits.
1398         * tree-ssa-operands.c (cleanup_v_may_defs): New.  Clear the
1399         in_list bits for the v_may_def elements and empty the operand
1400         build array
1401         (finalize_ssa_vuses): Use cleanup_v_may_defs and remove redundant
1402         VUSES by checking the in_v_may_def_list bit.
1403         (append_v_may_def, append_vuse): Use the in_list bit rather than
1404         scanning the array for duplicates.
1405
1406 2004-11-25  Ulrich Weigand  <uweigand@de.ibm.com>
1407
1408         * config/s390/s390.c (s390_short_displacement): UNSPEC_GOTNTPOFF
1409         displacements are not short.
1410
1411 2004-11-25  Ulrich Weigand  <uweigand@de.ibm.com>
1412
1413         * config/s390/s390.c (legitimize_pic_address): Use s390_load_address
1414         to load addresses.
1415
1416 2004-11-25  Mark Mitchell  <mark@codesourcery.com>
1417
1418         PR c++/18001
1419         * c-common.h (lvalue_use): Move here from c-ctypeck.c.
1420         (lvalue_or_else): Declare.
1421         * c-common.c (lvalue_or_else): Move here from c-typeck.c.
1422         * c-typeck.c (lvalue_use): Remove.
1423         (lvalue_or_else): Remove.
1424
1425         PR c++/18556
1426         * toplev.c (check_global_declarations): Set DECL_IGNORED_P on
1427         unemitted variables with static storage duration.
1428
1429 2004-11-25  Gerald Pfeifer  <gerald@pfeifer.com>
1430
1431         * tree-cfg.c (tree_verify_flow_info): Do not terminate error()
1432         message with \n.
1433
1434 2004-11-25  Nathan Sidwell  <nathan@codesourcery.com>
1435
1436         * config/rs6000/altivec.md (VIshort): New mode macro.
1437         (altivec_vaddubs, altivec_vadduhs, altivec_vadduws): Replace
1438         with ...
1439         (altivec_vaddu<VI_char>s): ... this.
1440         (altivec_vaddsbs, altivec_vaddshs, altivec_vaddsws): Replace
1441         with ...
1442         (altivec_vadds<VI_char>s): ... this.
1443         (altivec_vsububs, altivec_vsubuhs, altivec_vsubuws): Replace
1444         with ...
1445         (altivec_vsubu<VI_char>s): ... this.
1446         (altivec_vsubsbs, altivec_vsubshs, altivec_vsubsws): Replace
1447         with ...
1448         (altivec_vsubs<VI_char>s): ... this.
1449         (altivec_vavgub, altivec_vavguh, altivec_vavguw): Replace
1450         with ...
1451         (altivec_vavgu<VI_char>): ... this.
1452         (altivec_vavgsb, altivec_vavgsh, altivec_vavgsw): Replace
1453         with ...
1454         (altivec_vavgs<VI_char>): ... this.
1455         (altivec_vmsumubm, altivec_vmsumuhm): Replace with ...
1456         (altivec_vmsumu<VI_char>m): ... this.
1457         (altivec_vmsummbm, altivec_vmsummhm): Replace
1458         with ...
1459         (altivec_vmsumm<VI_char>m): ... this.
1460         (altivec_vandc): Remove.
1461         (*andc<mode>3): Renamed to ...
1462         (andc<mode>3): ... here. Swap operand 1 and 2 numbering.
1463         (altivec_vrlb, altivec_vrlh, altivec_vrlw): Replace
1464         with ...
1465         (altivec_vrl<VI_char>): ... this.
1466         (altivec_vslb, altivec_vslh, altivec_vslw): Replace
1467         with ...
1468         (altivec_vsl<VI_char>): ... this.
1469         (altivec_vsrb, altivec_vsrh, altivec_vsrw): Replace
1470         with ...
1471         (altivec_vsr<VI_char>): ... this.
1472         (altivec_vsrab, altivec_vsrah, altivec_vsraw): Replace
1473         with ...
1474         (altivec_vsra<VI_char>): ... this.
1475         (altivec_vsum4sbs, altivec_vsum4shs): Replace with ...
1476         (altivec_vsum4s<VI_char>s): ... this.
1477         (altivec_vperm_4si, altivec_vperm_8hi, altivec_vperm_16qi): Replace
1478         with ...
1479         (altivec_vperm_<mode>): ... this.
1480         (altivec_vsel_4sf): Rename to ...
1481         (altivec_vsel_v4sf): ... here.
1482         (altivec_vsel_4si, altivec_vsel_8hi, altivec_vsel_16qi): Replace
1483         with ...
1484         (altivec_vsel_<mode>): ... this.
1485         (altivec_vsldoi_4si, altivec_vsldoi_8hi,
1486         altivec_vsldoi_16qi): Rename to ...
1487         (altivec_vsldoi_v4si, altivec_vsldoi_v8hi,
1488         altivec_vsldoi_v16qi): ... here.
1489         (altivec_vsldoi_4sf): Rename to ...
1490         (altivec_vsldoi_v4sf): ... here.
1491         (altivec_predicate_v4si, altivec_predicate_v8hi,
1492         altivec_predicate_v16qi): Replace with ...
1493         (altivec_predicate_<mode>): ... this.
1494         (altivec_lvebx, altivec_lvehx, altivec_lvewx): Replace
1495         with ...
1496         (altivec_lve<VI_char>x): ... this.
1497         (altivec_stvebx, altivec_stvehx, altivec_stvewx): Replace
1498         with ...
1499         (altivec_stve<VI_char>x): ... this.
1500         (absv16qi2, absv8hi2, absv4si2): Replace
1501         with ...
1502         (abs<mode>2): ... this.
1503         (altivec_abss_v16qi, altivec_abss_v8hi, altivec_abss_v4si): Replace
1504         with ...
1505         (altivec_abss_<mode>): ... this.
1506         (vec_realign_load_v16qi, vec_realign_load_v8hi,
1507         vec_realign_load_v4si): Replace with ...
1508         (vec_realign_load_<mode>): ... this.
1509         * config/rs6000/rs6000.c (bdesc_3arg, bdesc_2arg): Update tweaked
1510         insn names.
1511         (rs6000_expand_ternop_builtin): Likewise.
1512
1513 2004-11-25  Andrew Haley  <aph@redhat.com>
1514
1515         * gcc.c (process_command): Don't supply -v to linker.
1516
1517 2004-11-25  Joseph S. Myers  <joseph@codesourcery.com>
1518
1519         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs
1520         instead of `%s' in diagnostic.
1521
1522 2004-11-25  Nathan Sidwell  <nathan@codesourcery.com>
1523
1524         * basic-block.h (OBSTACK_ALLOC_REG_SET): Adjust.
1525         (FREE_REG_SET): Adjust.
1526         * bitmap.c (bitmap_obstack_free): Cope with NULL bitmap.
1527         * bitmap.h (BITMAP_OBSTACK_ALLOC): Rename to ...
1528         (BITMAP_ALLOC): ... here.
1529         (BITMAP_OBSTACK_FREE): Rename to ...
1530         (BITMAP_FREE): Don't check for NULL bitmap here.
1531         * tree-ssa-pre.c (value_insert_into_set_bitmap,
1532         bitmap_set_new): Use new names.
1533
1534         * bt-load.c (migrate_btr_defs): Remove unneeded NULL check.
1535         * df.c (df_free): Likewise.
1536         * ra-build.c (ra_build_free, ra_build_free_all): Likewise.
1537         * tree-ssa-loop-ivopts.c (set_use_iv_cost): Likewise.
1538
1539         * basic-block.h (OBSTACK_ALLOC_REG_SET): Rename to ...
1540         (ALLOC_REG_SET): ... here.
1541         (FREE_REG_SET): Adjust.
1542         (XMALLOC_REG_SET, XFREE_REG_SET): Remove.
1543         * bb-reorder.c (fix_crossing_conditional_branches): Adjust.
1544         * cfglayout.c (cfg_layout_duplicate_bb): Adjust.
1545         * cfgrtl.c (rtl_split_block, rtl_split_edge,
1546         safe_insert_insn_on_edge, cfg_layout_split_edge): Adjust.
1547         * flow.c (update_life_info, calculate_global_regs_live,
1548         allocate_bb_life_data, init_propagate_block_info): Adjust.
1549         * global.c (build_insn_chain): Adjust.
1550         * ifcvt.c (dead_or_predicable): Adjust.
1551         * loop-iv.c (simplify_using_initial_values): Adjust.
1552         * recog.c (peephole2_optimize): Adjust.
1553         * sched-deps.c (init_deps_global): Adjust.
1554
1555 2004-11-25  Ralf Corsepius <ralf.corsepius@rtems.org>
1556
1557         * config.gcc (avr-*-rtems*): Fix typo.
1558
1559 2004-11-25  J"orn Rennecke <joern.rennecke@st.com>
1560
1561         * sh.c (sh_output_mi_thunk): Do not call regset_release_memory.
1562
1563 2004-11-24  Jeff Law  <law@redhat.com>
1564
1565         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Reduce
1566         the number of queries to random elements in the ai->written_vars
1567         bitmap.
1568
1569 2004-11-24  Roger Sayle  <roger@eyesopen.com>
1570
1571         * config/i386/i386.c (override_options): Disable x87 fancy math
1572         intrinsics if -mfpmath= doesn't include 387 (default on x86_64).
1573
1574 2004-11-24  Roger Sayle  <roger@eyesopen.com>
1575
1576         * configure.ac: Tweak test for HAVE_DECL_LDGETNAME to avoid a
1577         system header conflict on AIX 5.2.
1578         * configure: Regenerate.
1579
1580 2004-11-24  Kazu Hirata  <kazu@cs.umass.edu>
1581
1582         * tree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx
1583         instead of calling phi_arg_from_edge.
1584
1585         * tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge
1586         with e->dest_idx.
1587
1588 2004-11-24  Ben Elliston  <bje@au.ibm.com>
1589
1590         * config/i386/i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
1591         * config/i386/i386.c (i386_dwarf_output_addr_const): Likewise.
1592         * config/i386/i386-protos.h (i386_dwarf_output_addr_const):
1593         Likewise.
1594
1595 2004-11-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1596
1597         * tree-sra.c (sra_walk_modify_expr): Handle RHS first, then LHS.
1598
1599         * tree-inline.c (copy_body_r): Explicitly copy a constant if the
1600         type will be remapped.
1601
1602 2004-11-24  Steven Bosscher  <stevenb@suse.de>
1603
1604         * c-opts.c (c_common_post_options): Don't clear
1605         flag_inline_functions.
1606         * dojump.c (clear_pending_stack_adjust): Remove check on
1607         flag_inline_functions, it's always true.
1608         * config/alpha/alpha.md (movdi_er_maybe_g): Remove splitter
1609         that can never trigger.
1610         * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Don't look at
1611         flag_inline_trees, now that flag_inline_functions is never
1612         cleared.
1613         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Don't set
1614         flag_inline_functions at optimization levels greater than
1615         or equal to 3.  This is already done by default.
1616
1617 2004-11-24  Kazu Hirata  <kazu@cs.umass.edu>
1618
1619         * tree-outof-ssa.c (eliminate_build): Use g->e->dest_idx
1620         instead to find the PHI argument.  Do not take I as an
1621         argument.
1622         (eliminate_phi): Adjust the call to eliminate_build.  Do not
1623         take I as an argument.
1624         (rewrite_trees): Adjust the call to eliminate_phi.
1625
1626 2004-11-24  Richard Sandiford  <rsandifo@redhat.com>
1627
1628         * optabs.h (force_expand_binop): Declare.
1629         * optabs.c (force_expand_binop): Export.
1630         * stmt.c (shift_return_value): Delete.
1631         (expand_return): Don't call it.
1632         * expr.h (shift_return_value): Declare.
1633         * calls.c (shift_returned_value): Delete in favor of...
1634         (shift_return_value): ...this new function.  Leave the caller to check
1635         for non-BLKmode values passed in the msb of a register.  Take said mode
1636         and a shift direction as argument.  Operate on the hard function value,
1637         not a pseudo.
1638         (expand_call): Adjust accordingly.
1639         * function.c (expand_function_start): If a non-BLKmode return value
1640         is padded at the last significant end of the return register, use the
1641         return value's natural mode for the DECL_RESULT, not the mode of the
1642         padded register.
1643         (expand_function_end): Shift the same sort of return values left by
1644         the appropriate amount.
1645
1646 2004-11-24  Matt Austern  <austern@apple.com>
1647
1648         * recog.c (recog_memoized_1): Remove.
1649         * recog.h (recog_memoized_1): Remove declaration.
1650         (recog_memoized): Change from macro to inline function.
1651
1652 2004-11-24  Devang Patel  <dpatel@apple.com>
1653
1654         PR/18555
1655         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add isysroot.
1656         * config/darwin-c.c (darwin_register_frameworks): Use sysroot.
1657
1658 2004-11-24  Devang Patel  <dpatel@apple.com>
1659
1660         * gcc.c (process_command): Supply -v to linker.
1661
1662 2004-11-24  David Edelsohn  <edelsohn@gnu.org>
1663             Paolo Bonzini  <bonzini@gnu.org>
1664
1665         * config/rs6000/rs6000.c (rs6000_return_in_memory): Allow Altivec
1666         vector modes without ALTIVEC_ABI.  Use GCC vector instead of
1667         synthetic vector.
1668         (rs6000_pass_by_reference): Split conditional into pieces.  Use
1669         GCC vector instead of synthetic vector.
1670
1671 2004-11-24  Aldy Hernandez  <aldyh@redhat.com>
1672
1673         * tree.c (recompute_tree_invarant_for_addr_expr): The address of a
1674         thread-local variable is invariant.
1675
1676 2004-11-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1677
1678         * tree-pretty-print.c (dump_generic_node, case POINTER_TYPE):
1679         Handle TYPE_REF_CAN_ALIAS_ALL.
1680         (print_declaration): Print array dimensions like dump_generic_node.
1681
1682         * fold-const.c (operand_equal_p): Remove kludge allowing ARG0 and
1683         ARG1 to be null; instead define OP_SAME and OP_SAME_NULL and use them.
1684
1685 2004-11-24  Nathan Sidwell  <nathan@codesourcery.com>
1686
1687         * bitmap.c (INLINE): Do not define.
1688         (bitmap_elem_to_freelist, bitmap_element_free,
1689         bitmap_element_allocate, bitmap_clear, bitmap_element_zerop,
1690         bitmap_element_link, bitmap_find_bit): Use inline keyword/macro.
1691
1692 2004-11-24  Kazu Hirata  <kazu@cs.umass.edu>
1693
1694         * tree-ssa-dom.c (cprop_into_successor_phis): Remove code to
1695         find the index of a PHI argument.  Use e->dest_idx instead.
1696         Replace hint with index.
1697
1698         * tree-ssa-dom.c (cprop_into_successor_phis): Replace index
1699         with indx.
1700
1701 2004-11-24  Diego Novillo  <dnovillo@redhat.com>
1702
1703         * tree-ssa-alias.c (merge_pointed_to_info): Fix comment
1704         regarding PT_MALLOC.
1705
1706 2004-11-24  Joseph Myers  <joseph@codesourcery.com>
1707
1708         * config/i386/i386.c (optimization_options): Use
1709         SUBTARGET_OPTIMIZATION_OPTIONS.
1710         * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define.
1711         (TARGET_SUBTARGET_DEFAULT): Don't include
1712         MASK_OMIT_LEAF_FRAME_POINTER.
1713
1714 2004-11-24  Mark Mitchell  <mark@codesourcery.com>
1715
1716         * config/i386/sol2.h (X86_FILE_START_VERSION_DIRECTIVE):
1717         Define to false.
1718
1719 2004-11-24  Joseph Myers  <joseph@codesourcery.com>
1720
1721         * config/i386/t-sol2-10 (MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES):
1722         Use amd64 instead of 64.
1723
1724 2004-11-24  Mark Mitchell  <mark@codesourcery.com>
1725             Joseph Myers  <joseph@codesourcery.com>
1726
1727         * crtstuff.c (IN_LIBGCC2): Define it.
1728         (EH_FRAME_SECTION_CONST): Check EH_TABLES_CAN_BE_READ_ONLY
1729         instead of HAVE_LD_RO_RW_SECTION_MIXING.
1730         * defaults.h (EH_TABLES_CAN_BE_READ_ONLY): New macro.
1731         * dwarf2out.c (named_section_eh_frame_section): Check
1732         EH_TABLES_CAN_BE_READ_ONLY.
1733         * except.c (default_exception_section): Likewise.
1734         * config/i386/sol2.h (EH_TABLES_CAN_BE_READ_ONLY): Define.
1735         * doc/tm.texi (EH_TABLES_CAN_BE_READ_ONLY): Document.
1736
1737 2004-11-24  Kazu Hirata  <kazu@cs.umass.edu>
1738
1739         * tree-ssa-pre.c (phi_translate): Use find_edge to find the
1740         index of a PHI argument.
1741
1742         * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi): Use
1743         find_edge to find the index of a PHI argument.
1744
1745 2004-11-24  Steven Bosscher  <stevenb@suse.de>
1746
1747         * expr.c (expand_expr_real_1): Remove cases for EXIT_BLOCK_EXPR
1748         and LABELED_BLOCK_EXPR.
1749         * gimplify.c (gimplify_labeled_block_expr): Remove.
1750         (gimplify_exit_block_expr): Remove.
1751         (gimplify_expr): Don't call them.
1752         * tree-inline.c (copy_body_r): Don't handle EXIT_BLOCK_EXPR
1753         and LABELED_BLOCK_EXPR.
1754         (estimate_num_insns_1): Likewise.
1755         (walk_tree): Likewise.
1756         * tree-pretty-print.c (dump_generic_node): Don't handle
1757         EXIT_BLOCK_EXPR and LABELED_BLOCK_EXPR.
1758         * tree.def (EXIT_BLOCK_EXPR): Moved to java-tree.def.
1759         (LABELED_BLOCK_EXPR): Likewise.
1760         * tree.h (LABELED_BLOCK_LABEL): Moved to java-tree.h.
1761         (LABELED_BLOCK_BODY): Likewise.
1762         (EXIT_BLOCK_LABELED_BLOCK): Likewise.
1763         (EXIT_BLOCK_RETURN): Removed.
1764
1765 2004-11-24  Steven Bosscher  <stevenb@suse.de>
1766
1767         * cfgrtl.c (rtl_delete_block): Fix comment.
1768         * emit-rtl.c (remove_unnecessary_notes): Die if we see BLOCK_BEG
1769         or BLOCK_END insn notes.
1770         * jump.c (squeeze_notes): Likewise.
1771         * haifa-sched.c (reemit_notes): Don't "re-emit" EH_REGION_BEG and
1772         EH_REGION_END notes, we never have them to begin with.
1773         * sched-deps.c (sched_analyze_insn): When updating loop notes,
1774         verify that we have indeed only recorded loop notes.
1775         (sched_analyze): Die if we see EH_REGION_BEG or EH_REGION_END notes.
1776         Only record loop notes.
1777
1778         * cfgexpand.c (tree_expand_cfg): Fix comment.
1779
1780         * passes.c (rest_of_compilation): Don't do a second call to
1781         convert_from_eh_region_ranges from here, it's already called
1782         from cfgexpand.c.
1783         * except.c (resolve_fixup_regions): Remove.
1784         (remove_fixup_regions): Remove.
1785         (convert_from_eh_region_ranges_1): Remove.
1786         (convert_from_eh_region_ranges): Remove the case where EH is
1787         not already lowered at the tree level.  We always lower there.
1788
1789 2004-11-24  Paolo Bonzini  <bonzini@gnu.org>
1790
1791         PR c++/16882
1792         * tree.c (make_vector_type): Move qualifiers to the vector type,
1793         use the inner type's main variant and build a main variant for
1794         the vector type if necessary.
1795         (type_hash_eq): Check a vector type's TYPE_VECTOR_SUBPARTS.
1796
1797 2004-11-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
1798
1799         * target.h (late_rtl_prologue_epilogue): Remove.
1800         * target-def.h (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
1801         * system.h: Poison TARGET_LATE_RTL_PROLOGUE_EPILOGUE.
1802         * passes.c (rest_of_handle_prologue_epilogue): Remove and move
1803         remaining bits to...
1804         (rest_of_handle_flow2): ...here.
1805         (rest_of_compilation): Remove call to rest_of_handle_prologue_epilogue.
1806         * doc/tm.texi (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
1807
1808 2004-11-23  Mark Mitchell  <mark@codesourcery.com>
1809
1810         * hwint.h (HOST_LONG_LONG_FORMAT): New macro.  Use it throughout.
1811         * config/i386/xm-mingw32.h (HOST_LONG_LONG_FORMAT): Define.
1812         * doc/hostconfig.texi (HOST_LONG_LONG_FORMAT): Document.
1813
1814 2004-11-24  Daniel Jacobowitz  <dan@codesourcery.com>
1815
1816         * config/i386/i386.c (override_options): Move
1817         SUBTARGET_OVERRIDE_OPTIONS before defaulting
1818         flag_omit_frame_pointer.
1819
1820 2004-11-23  Richard Henderson  <rth@redhat.com>
1821
1822         * rtl.h (validate_subreg): Declare.
1823         * emit-rtl.c (validate_subreg): New.
1824         (gen_rtx_SUBREG): Use it.
1825         * simplify-rtx.c (simplify_subreg): Likewise.
1826         (simplify_gen_subreg): Likewise.  Remove duplicate asserts.
1827         * expr.c (emit_move_insn_1): Tidy complex move code.  Use memory
1828         fallback whenever gen_realpart/gen_imagpart would not be able to
1829         create SUBREGs.
1830
1831 2004-11-23  Richard Henderson  <rth@redhat.com>
1832
1833         * expmed.c (extract_bit_field): Use simplify_gen_subreg instead of
1834         hard-coding avoiding calls to gen_rtx_SUBREG.  Split complex return
1835         modes to CONCAT.
1836
1837 2004-11-23  Diego Novillo  <dnovillo@redhat.com>
1838
1839         PR tree-optimization/18618
1840         * tree-into-ssa.c (DEF_VEC_MALLOC_P(basic_block)): Declare.
1841         (insert_phi_nodes_for): Change third argument to VEC(basic_block).
1842         * tree-ssa-dom.c (avail_exprs_stack): Change type to VEC(tree_on_heap).
1843         Update all users.
1844         (stmts_to_rescan): Likewise.
1845         (const_and_copies_stack): Likewise.
1846         (nonzero_vars_stack): Likewise.
1847         (vrp_variables_stack): Likewise.
1848
1849 2004-11-23  Richard Henderson  <rth@redhat.com>
1850
1851         * cse.c (record_jump_cond_subreg): New.
1852         (record_jump_cond): Use it instead of gen_lowpart.
1853
1854 2004-11-23  Daniel Jacobowitz  <dan@codesourcery.com>
1855             Joseph Myers  <joseph@codesourcery.com>
1856
1857         * config/sol2-c.c (solaris_register_pragmas): Use
1858         c_register_pragma_with_expansion.
1859         * config/sol2.h (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Define.
1860         * c-pragma.c (c_register_pragma): Update call to
1861         cpp_register_pragma.
1862         (c_register_pragma_with_expansion): New function.
1863         (init_pragma): Honor HANDLE_PRAGMA_PACK_WITH_EXPANSION.
1864         * c-pragma.h (c_register_pragma_with_expansion): New prototype.
1865         * doc/extend.texi (Solaris Pragmas): Mention macro expansion for
1866         #pragma align.
1867         * doc/tm.texi (c_register_pragma_with_expansion,
1868         HANDLE_PRAGMA_PACK_WITH_EXPANSION): Document.
1869
1870 2004-11-23  Richard Henderson  <rth@redhat.com>
1871
1872         * combine.c (gen_lowpart_for_combine): Factor out mode of x as well
1873         as mode sizes into local temporaries.  Unify failure path.
1874
1875 2004-11-23  Richard Henderson  <rth@redhat.com>
1876
1877         * emit-rtl.c, rtl.h (subreg_hard_regno): Remove.
1878         * caller-save.c (mark_set_regs): Use subreg_regno instead.
1879         * final.c (alter_subreg): Likewise.
1880         * local-alloc.c (reg_is_born): Likewise.
1881
1882 2004-11-23  Richard Henderson  <rth@redhat.com>
1883
1884         * simplify-rtx.c (simplify_subreg): Use subreg_regno_offset directly
1885         instead of using a SUBREG temporary.
1886
1887 2004-11-23  Kazu Hirata  <kazu@cs.umass.edu>
1888
1889         * tree-cfg.c (tree_forwarder_block_p): Speed up by reordering
1890         two checks.
1891
1892 2004-11-23  Zack Weinberg  <zack@codesourcery.com>
1893
1894         * function.h (struct function): Remove calls_longjmp.
1895         (current_function_calls_longjmp): Delete.
1896         * tree.h (ECF_LONGJMP): Delete.
1897         (ECF_SIBCALL, ECF_PURE, ECF_SP_DEPRESSED, ECF_ALWAYS_RETURN)
1898         (ECF_LIBCALL_BLOCK): Everybody slide down one.
1899         (ECF_CONST, ECF_NORETURN, ECF_SIBCALL): Clarify comments.
1900         * builtins.c (expand_builtin_longjmp): Don't set
1901         current_function_calls_longjmp.
1902         * calls.c (special_function_p): Mark longjmp and siglongjmp
1903         with ECF_NORETURN, not ECF_LONGJMP.
1904         (emit_call_1, expand_call, emit_library_call_value_1):
1905         Don't check for ECF_LONGJMP.
1906         * tree-cfg.c (make_exit_edges, is_ctrl_altering_stmt)
1907         (need_fake_edge_p): Likewise.
1908
1909         * config/avr/avr.h, config/ip2k/ip2k.h: Don't define NON_SAVING_SETJMP.
1910         * system.h: Poison NON_SAVING_SETJMP.
1911         * function.c (use_register_for_decl)
1912         * gcse.c (compute_hash_table_work, compute_store_table)
1913         * postreload-gcse.c (record_opr_changes)
1914         * reload.c (find_equiv_reg)
1915         * reload1.c (reload)
1916         * config/i386/i386.c (ix86_can_use_return_insn_p):
1917         Remove code conditional on NON_SAVING_SETJMP.
1918         * doc/tm.texi: Delete documentation of NON_SAVING_SETJMP.
1919
1920         * config/i386/sysv3.h: Delete file.
1921         * config/i386/i386.c (ix86_svr3_asm_out_constructor): Delete.
1922
1923 2004-11-23  Dorit Naishlos  <dorit@il.ibm.com>
1924
1925         * tree-vectorizer.c (vect_analyze_operations): Don't vectorize if
1926         the vectorization factor is greater than the iteration count.
1927         (vect_gen_niters_for_prolog_loop): No need to calculate min if the
1928         iteration count is known.
1929
1930         (vect_build_symbol_bound): Removed. Its functionality moved to
1931         vect_generate_tmps_on_preheader.
1932         (vect_generate_tmps_on_preheader): Moved content of
1933         vect_build_symbol_bound here instead of calling it.  Changed some
1934         variables names.
1935
1936         (vect_build_loop_niters): We don't expect a new_bb to be generated -
1937         use gcc_assert.
1938         (vect_gen_niters_for_prolog_loop): Likewise.
1939         (vect_gen_niters_for_prolog_loo): Likewise.
1940
1941         (slpeel_make_loop_iterate_ntimes): Use buildN instead of build.
1942         (slpeel_add_loop_guard): Likewise.
1943         (slpeel_tree_peel_loop_to_edge): Likewise.
1944         (vect_do_peeling_for_alignment): Likewise.
1945
1946         (vect_get_first_index): Missing space.
1947
1948 2004-11-23  Ulrich Weigand  <uweigand@de.ibm.com>
1949
1950         * config/s390/s390.md ("*iordi3"): Mark commutative.
1951         ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
1952
1953 2004-11-23  Kazu Hirata  <kazu@cs.umass.edu>
1954
1955         * tree-phinode.c (resize_phi_node): Abort when LEN is strictly
1956         greater than PHI_ARG_CAPACITY.
1957         (reserve_phi_args_for_new_edge): Initialize the new PHI
1958         argument to NULL_TREE.  Increment PHI_NUM_ARGS.
1959         (add_phi_arg): Add a PHI argument to the slot given by
1960         E->dest_idx.
1961         (remove_phi_arg_num): Do not write to PHI_ARG_EDGE.
1962         * tree-flow-inline (phi_arg_from_edge): Return E->dest_idx.
1963         * tree-ssa.c (ssa_redirect_edge): Check for a missing PHI
1964         argument by looking at PHI_ARG_DEF.
1965         (verify_phi_args): Check for a missing PHI argument.  Remove
1966         the check for duplicate PHI arguments.
1967         * tree.h (PHI_ARG_EDGE): Redefine in terms of EDGE_PRED.
1968         (phi_arg_d): Remove e.
1969
1970         * tree-cfg.c (tree_try_redirect_by_replacing_jump): Speed up
1971         by restricting to the case with two outgoing edges.
1972
1973 2004-11-23  Andreas Krebbel  <krebbel1@de.ibm.com>
1974
1975         * config/s390/s390.c (s390_backchain_string): Removed.
1976         (s390_return_addr_rtx, s390_back_chain_rtx, s390_frame_info)
1977         (s390_emit_prologue, s390_va_start, s390_gimplify_va_arg):
1978         Changed users of TARGET_BACKCHAIN, TARGET_NO_BACKCHAIN and
1979         TARGET_KERNEL_BACKCHAIN to reflect the new options.
1980         * config/s390/s390.h (MASK_BACKCHAIN, MASK_PACKED_STACK): New macros.
1981         (TARGET_KERNEL_BACKCHAIN): Removed.
1982         (TARGET_BACKCHAIN): Former triple state option change to a target flag.
1983         (TARGET_PACKED_STACK): New macro.
1984         (TARGET_SWITCHES): New switches added.
1985         (TARGET_OPTIONS): "backchain", "no-backchain" and "kernel-backchain"
1986         removed.
1987         (DYNAMIC_CHAIN_ADDRESS): Use TARGET_PACKED_STACK.
1988         * config/s390/s390.md ("allocate_stack", "restore_stack_block")
1989         ("save_stack_nonlocal", "restore_stack_nonlocal"): Modified to reflect
1990         the change in target switch semantics.
1991         * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Removed.
1992         (TARGET_DEFAULT): MASK_BACKCHAIN added.
1993         * doc/invoke.texi: Added documentation for the new/changed options.
1994
1995 2004-11-23  Uros Bizjak  <uros@kss-loka.si>
1996
1997         PR rtl-optimization/18614
1998         * simplify-rtx.c (simplify_binary_operation): Do not
1999         simplify inner elements of constant arguments of
2000         VEC_CONCAT insn.
2001
2002 2004-11-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
2003
2004         * gthr-solaris.h (__gthread_recursive_mutex_init_function): Use
2005         0 instead of NULL.
2006
2007 2004-11-23  Kazu Hirata  <kazu@cs.umass.edu>
2008
2009         * tree-phinode.c (make_phi_node): Use a new variable,
2010         capacity, to receive the return value of ideal_phi_node_len.
2011
2012 2004-11-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
2013
2014         * gthr-solaris.h (__gthread_recursive_mutex_t): New type.
2015         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
2016         __gthread_recursive_mutex_init_function.
2017         (__gthread_key_create): Properly cast -1.
2018         (__gthread_recursive_mutex_init_function): New function.
2019         (__gthread_recursive_mutex_lock): Rewrite.
2020         (__gthread_recursive_mutex_trylock): Likewise.
2021         (__gthread_recursive_mutex_unlock): Likewise.
2022
2023 2004-11-23  Ralf Corsepius <ralf.corsepius@rtems.org>
2024
2025         * config/c4x/t-rtems: New.
2026         * config.gcc: Reflect having added c4x/t-rtems.
2027
2028 2004-11-23  Dorit Naishlos <dorit@il.ibm.com>
2029
2030         PR tree-opt/18403
2031         PR tree-opt/18505
2032         * tree-vectorizer.c (vect_create_data_ref_ptr): Use
2033         lang_hooks.types.type_for_size instead of integer_type_node for the
2034         type of ptr_update.
2035
2036 2004-11-23  Ralf Corsepius <ralf.corsepius@rtems.org>
2037
2038         * config.gcc (h8300-*-rtems*): Use h8300/t-rtems.
2039
2040 2004-11-23  Ralf Corsepius <ralf.corsepius@rtems.org>
2041
2042         * config/arm/t-rtems: New.
2043         * config.gcc: Reflect having added arm/t-rtems.
2044
2045 2004-11-23  Kazu Hirata  <kazu@cs.umass.edu>
2046
2047         * tree-cfg.c (tree_execute_on_growing_pred): New.
2048         (tree_cfg_hooks): Add tree_execute_on_growing_pred.
2049         * tree-flow.h: Add a prototype for
2050         reserve_phi_args_for_new_edge.
2051         * tree-phinodes.c (reserve_phi_args_for_new_edge): New.
2052         (add_phi_arg): Don't resize a PHI array.
2053
2054 2004-11-23  Ralf Corsepius <ralf.corsepius@rtems.org>
2055
2056         * config.gcc: Add avr-*-rtems*.
2057         * config/avr/t-rtems: New.
2058         * config/avr/rtems.h: New.
2059
2060 2004-11-22  Daniel Berlin  <dberlin@dberlin.org>
2061
2062         * df.c (dataflow_set_a_op_b): Remove reslt parameter, since it's
2063         always the same as op1.  Use bitmap_ior_into and bitmap_and_into.
2064         Add comment to function.
2065
2066 2004-11-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2067
2068         PR pch/14940
2069         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __hppa__.
2070
2071         PR rtl-optimization/14838
2072         * emit-rtl.c (get_first_nonnote_insn): Don't assume first insn is a
2073         note.
2074         (get_last_nonnote_insn): Don't assume last insn is a note.
2075
2076 2004-11-22  Roger Sayle  <roger@eyesopen.com>
2077
2078         * fold-const.c (nondestructive_fold_binary_to_constant): Rename
2079         to fold_binary_to_constant.
2080         (nondestructive_fold_unary_to_constant): Likewise, rename to
2081         fold_unary_to_constant.
2082         (fold_relational_hi_lo): Update call to fold_binary_to_constant.
2083         * tree.h (nondestructive_fold_binary_to_constant): Update prototype.
2084         (nondestructive_fold_unary_to_constant): Likewise.
2085         * tree-ssa-ccp.c (ccp_fold): Update calls to fold_unary_to_constant
2086         and fold_binary_to_constant.
2087         * tree-ssa-loop-niter.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
2088         (inverse, number_of_iterations_cond): Replace uses of EXEC_BINARY
2089         and EXEC_UNARY with calls to fold_*nary_to_constant.
2090         * tree-ssa-loop-ivopts.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
2091         (idx_find_step): Replace uses of EXEC_BINARY with calls to
2092         fold_binary_to_constant.
2093
2094 2004-11-22  Nick Clifton  <nickc@redhat.com>
2095
2096         * sbitmap.c (sbitmap_union_of_preds): Remove redundant
2097         initialisation of 'e'.
2098
2099 2004-11-22  Roger Sayle  <roger@eyesopen.com>
2100
2101         * config/i386/i386.h (TARGET_USE_FANCY_MATH_387): New macro.
2102         * config/i386/i386.c (override_options):  Set MASK_NO_FANCY_MATH_387
2103         automatically for targets without TARGET_80387.
2104         * config/i386/i386.md (sqrtsf2, sqrtsf2_1, sqrtsf2_i387, sqrtdf2,
2105         sqrtdf2_1, sqrtdf2_i387, *sqrtextendsfdf2, sqrtxf2,
2106         *sqrtextenddfxf2, *sqrtextendsfxf2, fpremxf4, fmodsf3, fmoddf3,
2107         fmodxf3, fprem1xf4, dremsf3, dremdf3, dremxf3, *sindf2, *sinsf2,
2108         *sinextendsfdf2, *sinxf2, *cosdf2, *cossf2, *cosextendsfdf2,
2109         *cosxf2, sincosdf3, sincossf3, *sincosextendsfdf3, sincosxf3,
2110         *tandf3_1, tandf2, *tansf3_1, tansf2, *tanxf3_1, tanxf2,
2111         atan2df3_1, atan2df3, atandf2, atan2sf3_1, atan2sf3, atansf2,
2112         atan2xf3_1, atan2xf3, atanxf2, asindf2, asinsf2, asinxf2,
2113         acosdf2, acossf2, acosxf2, fyl2x_xf3, logsf2, logdf2, logxf2,
2114         log10sf2, log10df2, log10xf2, log2sf2, log2df2, log2xf2,
2115         fyl2xp1_xf3, log1psf2, log1pdf2, log1pxf2, *fxtractxf3, logbsf2,
2116         logbdf2, logbxf2, ilogbsi2, *f2xm1xf2, *fscalexf4, expsf2,
2117         expdf2, expxf2, exp10sf2, exp10df2, exp10xf2, exp2sf2, exp2df2,
2118         exp2xf2, expm1df2, expm1sf2, expm1xf2, frndintxf2, rintdf2,
2119         rintsf2, rintxf2, frndintxf2_floor, floordf2, floorsf2,
2120         floorxf2, frndintxf2_ceil, ceildf2, ceilsf2, ceilxf2,
2121         frndintxf2_trunc, btruncdf2, btruncsf2, btruncxf2,
2122         frndintxf2_mask_pm, nearbyintdf2, nearbyintsf2, nearbyintxf2):
2123         Simplify conditionals using TARGET_USE_FANCY_MATH_387.
2124
2125 2004-11-22  Dale Johannesen  <dalej@apple.com>
2126
2127         * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION):  Conditionalize
2128         properly and comment.
2129
2130 2004-11-22  James A. Morrison  <phython@gcc.gnu.org
2131
2132         * config/sparc/sparc.c: Include insn-codes.h and langhooks.h.
2133         (sparc_init_builtins): New function.
2134         (sparc_init_vis_builtins): Create builtin functions for VIS
2135         instructions.
2136         (sparc_expand_builtin): Expand builtin functions for VIS instructions.
2137         (TARGET_INIT_BUILTINS): Define to sparc_init_builtins.
2138         (TARGET_EXPAND_BUILTIN): Define to sparc_expand_builtin.
2139         (def_builtin): New macro for creating builtin functions.
2140         (P): New mode macro for pointer types.
2141         (UNSPEC_FPACK16, UNSPEC_FPACK32, UNSPEC_FPACKFIX, UNSPEC_FEXPAND,
2142         UNSPEC_FPMERGE, UNSPEC_MUL16AL, UNSPEC_MUL8UL, UNSPEC_MULDUL,
2143         UNSPEC_ALIGNDATA, UNSPEC_ALIGNADDR, UNSPEC_PDIST): New constants.
2144         (fpack16_vis, fpackfix_vis, fpack32_vis, fexpand_vis, fpmerge_vis,
2145         fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
2146         fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis, pdist_vis,
2147         faligndata<V64:mode>_vis, alignaddr<P:mode>_vis): New patterns.
2148
2149 2004-11-22  Devang Patel  <dpatel@apple.com>
2150
2151         * tree-if-conv.c (clean_predicate_lists): Clean all basic blocks.
2152
2153 2004-11-22  Devang Patel  <dpatel@apple.com>
2154
2155         * tree-if-conv.c (if_convertable_phi_p): Rename to ...
2156         (if_convertible_phi_p): ... new name.
2157         (if_convertable_modify_expr_p): Rename to ...
2158         (if_convertible_modify_expr_p): ... new name.
2159         (if_convertable_stmt_p): Rename to ...
2160         (if_convertible_stmt_p): ... new name.
2161         (if_convertable_bb_p): Rename to ...
2162         (if_convertible_bb_p): ... new name.
2163         (if_convertable_loop_p): Rename to ...
2164         (if_convertible_loop_p): ... new name.
2165
2166 2004-11-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
2167
2168         PR target/18444
2169         * configure.ac (threading): Accept 'posix95'.
2170         * configure: Regenerate.
2171         * config.gcc (i[34567]86-*-solaris2*): On Solaris up to 2.6,
2172         include sol26.h and default to posix95 threads if have_pthread_h.
2173         (sparc-*-solaris2*): Likewise.
2174         * gthr.h: Include gthr-posix95.h if _PTHREADS95 is defined.
2175         * gthr-posix95.h: New file.
2176         * config/sol26.h: New file.
2177         * doc/install.texi (--enable-threads): Document 'posix95'.
2178
2179 2004-11-23  Ben Elliston  <bje@au.ibm.com>
2180
2181         * pointer-set.h (pointer_set_contains): Remove.
2182         * pointer-set.c (pointer_set_contains): Likewise.
2183
2184 2004-11-22  Dale Johannesen  <dalej@apple.com>
2185
2186         * calls.c (expand_call): Do not call preserve_temp_slots.
2187
2188 2004-11-22  Kazu Hirata  <kazu@cs.umass.edu>
2189
2190         * tree-flow.h: Remove the prototype for remove_phi_arg.
2191         Add a prototype for remove_phi_args.
2192         * tree-phinodes.c (remove_phi_arg): Remove.
2193         (remove_phi_args): New.
2194         * tree-ssa.c (ssa_remove_edge): Call remove_phi_args instead
2195         of remove_phi_arg.
2196
2197         * cfg.c (unchecked_make_edge): Call execute_on_growing_pred
2198         after making an edge.
2199         (remove_edge): Call execute_on_shrinking_pred before removing
2200         an edge.
2201         (redirect_edge_succ): Call execute_on_growing_pred and
2202         execute_on_shrinking_pred.
2203         * cfghooks.c (execute_on_growing_pred): New.
2204         (execute_on_shrinking_pred): Likewise.
2205         * cfghooks.h (cfg_hooks): Add execute_on_growing_pred and
2206         execute_on_shrinking_pred.
2207         Add prototypes for execute_on_growing_pred and
2208         execute_on_shrinking_pred.
2209         * cfgrtl.c (rtl_cfg_hooks): Add NULL hooks to
2210         execute_on_growing_pred and execute_on_shrinking_pred.
2211         (cfg_layout_rtl_cfg_hook): Likewise.
2212         * tree-cfg.c (tree_cfg_hooks): Likewise.
2213
2214         * tree-cfg.c (tree_execute_on_shrinking_pred): New.
2215         (tree_cfg_hooks): Use it.
2216         * tree-ssa.c (ssa_remove_edge): Don't call remove_phi_args.
2217         (ssa_redirect_edge): Don't call remove_phi_arg_num.
2218
2219         * tree-phinodes.c (remove_phi_arg_num): Make it static.
2220         * tree-flow.h: Remove the corresponding prototype.
2221
2222         * tree-ssa.c (ssa_remove_edge): Remove.
2223         * tree-flow.h: Remove the corresponding prototype.
2224         * tree-cfg.c: Replace ssa_remove_edge with remove_edge.
2225         * basic-block.h: Likewise.
2226         * tree-if-conv.c: Likewise.
2227         * tree-ssa-threadupdate.c: Likewise.
2228
2229 2004-11-23  Ben Elliston  <bje@au.ibm.com>
2230
2231         * doc/cfg.texi (Maintaining the CFG): Use @ftable instead of
2232         @table to list the BSI methods.  Use individual @findex directives
2233         instead of one with a comma-separated list of index entries.
2234
2235 2004-11-22  Zdenek Dvorak  <dvorakz@suse.cz>
2236
2237         PR tree-optimization/18529
2238         * fold-const.c (fold_to_nonsharp_ineq_using_bound): New function.
2239         (simple_operand_p): Use STRIP_NOPS.  Consider SSA names simple.
2240         (fold): Call fold_to_nonsharp_ineq_using_bound.
2241         * tree-ssa-loop-niter.c (simplify_replace_tree): New function.
2242         (number_of_iterations_cond): Fold the expressions before futher
2243         processing.
2244         (tree_simplify_using_condition): Handle case when cond or expr is
2245         an EQ_EXPR specially.
2246
2247 2004-11-22 Daniel Berlin  <dberlin@dberlin.org>
2248
2249         * tree-ssa.c (verify_ssa): SSA_OP_ALL_USES should be
2250         SSA_OP_ALL_USES | SSA_OP_ALL_KILLS for verification purposes.
2251
2252 2004-11-22  David Edelsohn  <edelsohn@gnu.org>
2253             Fariborz Jahanian  <fjahanian@apple.com>
2254
2255         * config/rs6000/rs6000.c (rs6000_return_in_memory): Test
2256         TARGET_ALTIVEC_ABI.
2257         (function_arg_boundary): Align 8 to 16 byte vectors like SPE.
2258         Align 16 byte and larger vectors like Altivec.
2259         (function_arg_advance): Pass any 16 byte vector like Altivec vector.
2260         (function_arg): Same.
2261         (rs6000_pass_by_references): Test TARGET_ALTIVEC_ABI.
2262
2263 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
2264
2265         PR tree-opt/18572
2266         * tree-sra.c (scalarize_init): Unshare the rhs before gimplifying
2267         it.
2268
2269 2004-11-22  Richard Henderson  <rth@redhat.com>
2270
2271         * function.c (assign_parm_setup_block): Revert 11-13 change to
2272         forcably re-mode a (possibly BLKmode) hard register.
2273
2274 2004-11-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
2275
2276         * config/sparc/sparc.c (mem_min_alignment): Check MEM_ALIGN.
2277
2278 2004-11-22  David Edelsohn  <edelsohn@gnu.org>
2279
2280         * config/rs6000/power4.md: Remove delay between dispatch and issue
2281         associated with dispatch group slots 3 and 4.
2282         * config/rs6000/power5.md: Same.
2283
2284 2004-11-21  Jeff Law  <law@redhat.com>
2285
2286         * cfg.c (cached_make_edge): Use find_edge rather than an inlined
2287         variant.
2288         * cfgbuild.c (make_edges): Likewise.
2289         * cfghooks.c (can_duplicate_block_p): Likewise.
2290         * cfgloop.c (loop_latch_edge): Likewise.
2291         * cfgloopmanip.c (force_single_succ_latches): Likewise.
2292         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
2293         * predict.c (predict_loops, propagate_freq): Likewise.
2294         * tracer.c (tail_duplicate): Likewise.
2295         * tree-cfg.c (disband_implicit_edges): Likewise.
2296         (tree_forwarder_block_p, tree_flow_call_edges_add): Likewise.
2297
2298 2004-11-22  Nick Clifton  <nickc@redhat.com>
2299
2300         * sbitmap.c (sbitmap_union_of_preds): Remove redundant
2301         initialisation of 'e'.
2302
2303 2004-11-22  Kazu Hirata  <kazu@cs.umass.edu>
2304
2305         PR rtl-optimization/18599
2306         * regrename.c (copyprop_hardreg_forward): Speed up by putting
2307         BB_VISITED flags on basic blocks as we process them.
2308
2309 2004-11-22  Nathan Sidwell  <nathan@codesourcery.com>
2310
2311         PR target/18531
2312         * config/rs6000/altivec.md (VI_char): New mode attribute.
2313         (addv16qi3, addv8hi3, addv4ai3): Replace with ...
2314         (add<mode>3): ... this.
2315         (subv16qi3, subv8hi3, subv4ai3): Replace with ...
2316         (sub<mode>3): ... this.
2317         (smaxv16qi3, smaxv8hi3, smaxv4ai3): Replace with ...
2318         (smax<mode>3): ... this.
2319         (sminv16qi3, sminv8hi3, sminv4ai3): Replace with ...
2320         (smin<mode>3): ... this.
2321         (umaxv16qi3, umaxv8hi3, umaxv4ai3): Replace with ...
2322         (umax<mode>3): ... this.
2323         (uminv16qi3, uminv8hi3, uminv4ai3): Replace with ...
2324         (umin<mode>3): ... this.
2325         (andv16qi3, andv8hi3, andv4ai3): Replace with ...
2326         (and<mode>3): ... this.
2327         (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
2328         (ior<mode>3): ... this.
2329         (xorv16qi3, xorv8hi3, xorv4ai3): Replace with ...
2330         (xor<mode>3): ... this.
2331         (andv16qi3, andv8hi3, andv4ai3): Replace with ...
2332         (and<mode>3): ... this.
2333         (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
2334         (ior<mode>3): ... this.
2335         (altivec_vnor): Replace with ...
2336         (altivec_nor<mode>): ... this.
2337         (one_cmplv16qi2, one_cmplv8hi2, one_complv4ai2): Replace with ...
2338         (one_cmpl<mode>2): ... this.
2339         (altivec_vandc): New expander.
2340         (*andc<mode>3): New insn.
2341         * config/rs6000/rs6000.c (bdesc_2arg): Adjust for new insn names.
2342
2343 2004-11-22  Dorit Naishlos  <dorit@il.ibm.com>
2344
2345         PR tree-opt/18536
2346         * tree-vectorizer.c (make_loop_iterate_ntimes): Use type of niters when
2347         creating iv instead of integer_type.
2348         (vect_build_loop_niters): Remove redundant code.
2349         (vect_transform_loop_bound): Removed (duplicates functionality of
2350         make_loop_iterate_ntimes.
2351         (vect_gen_niters_for_prolog_loop): Add documentation. Call
2352         lang_hooks.types.type_for_size to create a type of the required size.
2353         Use that type instead of integer_type. Remove redundant code.
2354         (vect_update_niters_after_peeling): Use type of niters instead of
2355         integer_type.
2356         (vect_transform_loop): Unify handling of known and unknown loop bound
2357         cases. Call make_loop_iterate_ntimes instead of
2358         vect_transform_loop_bound.
2359
2360 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
2361
2362         PR target/18217
2363         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Move darwin-fallback.c to
2364         (LIB2ADDEH): Here.
2365
2366 2004-11-22  Dorit Naishlos  <dorit@il.ibm.com>
2367
2368         PR tree-opt/18544
2369         * tree-vectorizer.c (vect_analyze_data_refs): Fail if memtag not found.
2370
2371 2004-11-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2372
2373         * config.gcc: Use t-slibgcc-elf to build libgcc_s.so on
2374         m32r*linux.
2375         * config/m32r/t-linux (SHLIB_MAPFILES): Override to use
2376         m32r/libgcc-glibc.ver.
2377         * config/m32r/libgcc-glibc.ver: Add New file.
2378
2379 2004-11-22  Nathan Sidwell  <nathan@codesourcery.com>
2380
2381         * bitmap.h (struct bitmap_obstack): New obstack type.
2382         (struct bitmap_head_def): Replace using_obstack with obstack
2383         pointer.
2384         (bitmap_default_obstack): New.
2385         (bitmap_initialize): Make inline, does not do allocation.
2386         (bitmap_release_memory): Remove.
2387         (bitmap_obstack_initialize, bitmap_obstack_release): Declare.
2388         (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
2389         bitmap_obstack_free, bitmap_malloc_free): Declare.
2390         (BITMAP_OBSTACK_ALLOC, BITMAP_GGC_ALLOC, BITMAP_XMALLOC): Adjust.
2391         (BITMAP_FREE): Replace with ...
2392         (BITMAP_OBSTACK_FREE): ... this.
2393         (BITMAP_XFREE): Adjust.
2394         (BITMAP_INIT_ONCE): Remove.
2395         * bitmap.c (bitmap_obstack, bitmap_obstack_init, bitmap_free: Remove.
2396         (bitmap_default_obstack): New.
2397         (bitmap_elem_to_freelist): Adjust.
2398         (bitmap_element_allocate): Adjust. Break initialization into ...
2399         (bitmap_obstack_initialize): ... here.
2400         (bitmap_release_memory): Replace with ...
2401         (bitmap_obstack_release): ... this.
2402         (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
2403         bitmap_obstack_free, bitmap_malloc_free): New.
2404         (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Use
2405         bitmap_initialize.
2406         (bitmap_initialize): Move to bitmap.h.
2407         * gengtype.c (open_base_files): Add obstack.h to ifiles.
2408         * Makefile.in (BASIC_BLOCK_H, REGS_H): Add obstack.h.
2409         * basic-block.h (INIT_REG_SET): Allocate from reg_obstack.
2410         (INITIALIZE_REG_SET): Remove.
2411         (FREE_REG_SET): Use BITMAP_OBSTACK_FREE.
2412         (INIT_ONCE_REG_SET, MAX_REGNO_REG_SET): Remove.
2413         (flow_obstack): Do not declare.
2414         (reg_obstack): Declare.
2415         * regs.h: Include obstack.h.
2416         * tree-optimize.c (tree_rest_of_compilation): Initialize and
2417         release bitmap obstack here.
2418         * bb-reorder.c: #include regs, not basic-block.
2419         (fix_crossing_conditional_branches): Allocate regsets from
2420         reg_obstack.
2421         * bt-load.c: Do not inlude bitmap.h, sbitmap.h, basic-block.h or
2422         obstack.h.
2423         * caller-save.c: Include regs.h earlier.
2424         * cfg.c: Do not include basic-block.h or obstack.h.
2425         (reg_obstack): Define.
2426         * cfganal.c: Include obstack.h
2427         * cfgcleanyp.c: Do not include basic-block.h. Include regs.h
2428         earlier.
2429         * cfglayout.c: Do not include obstack.h.
2430         (flow_obstack): Remove declaration.
2431         (cfg_layout_duplicate_bb): Use reg_obstack.
2432         * cfgloop.c, cfgloopanal.c, cfgloopmanip.c: Include obstack.h.
2433         * cfgrtl.c (rtl_split_block): Use reg_obstack.
2434         (force_nonfallthru_and_redirect, rtl_split_edge): Likewise.
2435         (safe_insert_insn_on_edge): Use OBSTACK_ALLOC_REG_SET, adjust.
2436         (cfg_layout_split_edge): Use reg_obstack.
2437         * cse.c: Include regs.h earlier.
2438         * ddg.c: Do not include basic-block.h.
2439         * dominance.c: Inlude obstack.h.
2440         * flow.c (update_life_info): Use OBSTACK_ALLOC_REG_SET, adjust.
2441         (calculate_global_regs_live): Likewise.
2442         (allocate_bb_life_data): Use reg_obstack.
2443         (init_propagate_block_info): Use OBSTACK_ALLOC_REGSET.
2444         * global.c: Do not include basic-block.h.
2445         (build_insn_chain): Use OBSTACK_ALLOC_REG_SET, adjust.
2446         * graph.c: Include obstack.h.
2447         * haifa-sched.c: Do not include basic-block.h.
2448         * ifcvt.c: Use OBSTACK_ALLOC_REG_SET, adjust.
2449         * local-alloc.c: Do not include basic-block.h.
2450         * loop-init.c, loop-invariant.c: Include obstack.h.
2451         * loop-iv.c: Likewise.
2452         (simplify_using_initial_values): Use OBSTACK_ALLOC_REG_SET,
2453         adjust.
2454         * loop-unroll.c, loop-unswitch.c: Inlude obstack.h.
2455         * modulo-sched.c: Do not include basic-block.h.
2456         * passes.c (rest_of_handle_final): Do not call
2457         regset_release_memory.
2458         * ra-debug.c: Include regs.h earlier. Do not include
2459         basic-block.h.
2460         * recog.c (peephole2_optimize): Use OBSTACK_ALLOC_REG_SET, adjust.
2461         * regclass.c (init_reg_sets): Do not call INIT_ONCE_REG_SET.
2462         (allocate_reg_info): Do not call MAX_REGNO_REG_SET.
2463         (regset_release_memory): Remove.
2464         * resource.c: Do not include basic-block.h.
2465         * rtlanal.c: Do not include basic-block.h.
2466         * sbitmap.c: Include obstack.h.
2467         * sched-deps.c: Do not include basic-block.h.
2468         (reg_pending_sets_head, reg_pending_clobbers_head,
2469         reg_pending_uses_head): Remove.
2470         (init_deps_global): Use OBSTACK_ALLOC_REG_SET.
2471         * sched-ebb.c: Do not include basic-block.h.
2472         * sched-rgn.c: Likewise.
2473         * tree-if-conv.c (get_loop_body_in_if_conv_order): Use
2474         BITMAP_XFREE.
2475         * tree-outof-ssa.c (perform_edge_inserts): Use BITMAP_XFREE.
2476         * tree-sra.c (decide_instantiations): Adjust bitmap
2477         initialization.
2478         * tree-ssa-dce.c: Include obstack.h.
2479         * tree-ssa-pre.c (grand_bitmap_obstack): Make a bitmap_obstack.
2480         (value_insert_into_set_bitmap): Remove useless bitmap_clear.
2481         (bitmap_set_new): Likewise.
2482         (init_pre): Initialize bitmap obstack.
2483         (fini_pre): Release bitmap obstack.
2484         * tree-ssanames.c (ssa_names_to_rewrite): Make static.
2485         (marked_for_rewrite_p): ssa_names_to_rewrite is never NULL.
2486         (mark_for_rewrite, unmark_for_rewrite): Likewise.
2487         (marked_ssa_names): Likewise.
2488         (init_ssanames): Use BITMAP_XMALLOC.
2489         (fini_ssanames): Use BITMAP_XFREE.
2490         * web.c: Include obstack.h
2491
2492 2004-11-22  Nick Clifton  <nickc@redhat.com>
2493
2494         * sbitmap.c (sbitmap_union_of_preds): Set 'e' to the next edge
2495         predecessor in the first for-loop.
2496
2497 2004-11-21  Stan Shebs  <shebs@apple.com>
2498
2499         * config/rs6000/rs6000.c: (rs6000_darwin64_function_arg): Add
2500         UNION_TYPE case.
2501         (function_arg): Move darwin test up, sniff mode first for
2502         efficiency, test for union type.
2503
2504 2004-11-21  Dale Johannesen  <dalej@apple.com>
2505
2506         * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION):  Define.
2507
2508 2004-11-21  Jeff Law  <law@redhat.com>
2509
2510         * tree-ssa.c (verify_use): Fix comment.
2511         (verify_phi_args): Check that the number of incoming edges matches
2512         the number of PHI arguments.  Check that each PHI argument is
2513         either an SSA_NAME or an invariant.  Coalesce tests for PHIs for
2514         dead or duplicated edges.  Clear e->aux earlier and avoid separate
2515         loop to clear e->aux and test for missed edges.
2516         (verify_ssa): Remove first walk over statements.  Move checking
2517         of PHI args into verify_phi_args.  Move checking of statements
2518         with aliased stores and V_MAY_DEFS into the remaining loop over
2519         the statements.  Register defs by walking through the formal
2520         SSA_NAME table.
2521
2522 2004-11-21  Roger Sayle  <roger@eyesopen.com>
2523
2524         PR middle-end/18520
2525         * dojump.c (compare_from_rtx): Clarify mode argument in function
2526         description.  Correct order of mode/cmp_mode arguments in call to
2527         simplify_relational_operation.  Check "tem" for COMPARISON_P.
2528
2529 2004-11-21  Paolo Bonzini  <bonzini@gnu.org>
2530             David Edelsohn  <edelsohn@gnu.org>
2531
2532         PR target/17836
2533         * config/rs6000/rs6000.c (rs6000_return_in_memory): Return
2534         synthetic vectors in memory.
2535         (function_arg_boundary): Align large synthetic vectors.
2536         (rs6000_pass_by_reference): Pass synthetic vectors in memory.
2537
2538 2004-11-21  Jeff Law  <law@redhat.com>
2539
2540         * cfg.c (update_bb_profile_for_threading): Do not rescale the
2541         successor probabilities if they are not going to change.  Pull
2542         division out of loop if we do need to rescale successor probabilities.
2543
2544         * tree-ssa-threadupdate.c (redirection_data_hash): Use the
2545         index of the destination block for the hash value rather than
2546         hashing a pointer.
2547
2548 2004-11-20  Joseph S. Myers  <joseph@codesourcery.com>
2549
2550         * c-typeck.c (build_array_ref): Don't check for index == 0.  Make
2551         checks for neither argument being an array or pointer (swapping
2552         the arguments if necessary), the array argument being a pointer to
2553         or array of functions and for -Wchar-subscripts warnings upfront.
2554
2555 2004-11-20  Jeff Law  <law@redhat.com>
2556
2557         * regrename.c (copyprop_hardreg_forward): Only search for a
2558         previously processed block if the current block only has one
2559         predecessor.
2560
2561 2004-11-20  Kazu Hirata  <kazu@cs.umass.edu>
2562
2563         * tree-ssa-threadupdate.c, tree-vectorizer.c: Fix comment
2564         typos.
2565         * config/arm/arm.c: Follow spelling conventions.
2566
2567 2004-11-20  Richard Earnshaw  <rearnsha@arm.com>
2568
2569         * arm.c (arm_override_options): Use arm_ld_sched rather than testing
2570         a bit in tune_flags.
2571         (const_double_needs_minipool): Likewise.  Split most of the code out
2572         into ...
2573         (arm_const_double_inline_cost): ... new function here.
2574         * arm-protos.h (arm_const_double_inline_cost): Add prototype.
2575         * arm.h (EXTRA_CONSTRAINT_STR_ARM): Add D[abc] constraints for double-
2576         word constants of length 2, 3 and 4 insns respectively.
2577         (CONSTRAINT_LEN): The 'D' prefix is a 2-letter constraint.
2578         * arm.md (arm_movdi, movdf_soft_insn): Add alternatives for D[abc]
2579         constraints.  Set insn lenghts accordingly.
2580
2581 2004-11-19  Jeff Law  <law@redhat.com>
2582
2583         * tree-ssa-threadupdate.c: Replace REDIRECTION_DATA varray with
2584         a hash table.  Extensive modifications throughout to support
2585         that change.
2586         (struct el): New.
2587         (struct local_info): New.
2588         (struct redirection_data): Add new INCOMING_EDGES and DO_NOT_DUPLICATE
2589         fields.
2590         (redirection_data): Now a hashtable.
2591         (redirection_data_hash, redirection_data_eq): New.
2592         (lookup_redirection_data, create_duplicates): New.
2593         (create_edge_and_update_destionation_phis): New.
2594         (fixup_template_block, redirect_edges): New.
2595         (thread_block): Use hash table traversals instead of loops over
2596         varray entries or incoming edge vectors.
2597
2598 2004-11-19  Kazu Hirata  <kazu@cs.umass.edu>
2599
2600         * basic-block.h (edge_def): Add dest_idx.
2601         * cfg.c (unchecked_make_edge): Initialize dest_idx.
2602         (remove_edge): Simplify the disconnection of an edge from its
2603         destination.
2604         (redirect_edge_succ): Likewise.
2605         * cfghooks.c (verify_flow_info): Check the consistency of
2606         dest_idx for each edge.
2607
2608 2004-11-19  Aldy Hernandez  <aldyh@redhat.com>
2609
2610         * simplify-rtx.c (simplify_ternary_operation): Use
2611         gen_int_mode.
2612
2613 2004-11-19  Kazu Hirata  <kazu@cs.umass.edu>
2614
2615         * tree-cfg.c (reinstall_phi_args): New.
2616         (tree_split_edge): Use it after redirecting an edge.  Don't
2617         modify PHI_ARG_EDGE.
2618
2619 2004-11-19  Andreas Tobler  <a.tobler@schweiz.ch>
2620
2621         * tree-vectorizer.c (slpeel_verify_cfg_after_peeling): Define only
2622         if checking is enabled.
2623
2624 2004-11-19  Joseph S. Myers  <joseph@codesourcery.com>
2625
2626         * c-decl.c (push_scope): Remove "\n" from end of diagnostic for
2627         too many nested scopes.
2628
2629 2004-11-19  Dorit Naishlos  <dorit@il.ibm.com>
2630
2631         PR tree-opt/18181
2632         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Peeling scheme
2633         changed to suppoer uses-after-loop and to void creating flow paths
2634         that shouldn't exist.
2635         (slpeel_update_phi_nodes_for_guard): Takes additional two arguments.
2636         Modified to fit the new peeling scheme. Avoid quadratic behavior.
2637         (slpeel_add_loop_guard): Takes additional argument.
2638         (slpeel_verify_cfg_after_peeling): New function.
2639         (vect_update_ivs_after_vectorizer): Takes additional argument. Updated
2640         documentation. Use 'exit-bb' instead of creating 'new-bb'.
2641         (rename_variables_in_bb): Don't update phis for BBs out of loop, to fit
2642         the new peeling scheme.
2643         (copy_phi_nodes): Function removed. Its functionality moved to
2644         update_phis_for_duplicate_loop.
2645         (slpeel_update_phis_for_duplicate_loop): Functionality of copy_phi_nodes
2646         moved here. Added documentation. Modified to fit the new peeling scheme.
2647         (slpeel_make_loop_iterate_ntimes): Setting loop->single_exit not not
2648         needed - done in slpeel_tree_peel_loop_to_edge.
2649         (slpeel_tree_duplicate_loop_to_edge_cfg): Debug printouts compacted.
2650         (vect_do_peeling_for_loop_bound): Add documentation. Call
2651         slpeel_verify_cfg_after_peeling. Call vect_update_ivs_after_vectorizer
2652         with additional argument.
2653         (vect_do_peeling_for_alignment): Call slpeel_verify_cfg_after_peeling.
2654
2655         (vect_finish_stmt_generation): Avoid 80 column oveflow.
2656
2657 2004-11-19  Dorit Naishlos  <dorit@il.ibm.com>
2658
2659         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Last two
2660         arguments removed.
2661         (slpeel_tree_peel_loop_to_edge): Call slpeel_make_loop_iterate_ntimes
2662         without last two arguments. Update single_exit of loops.
2663         (vect_update_niters_after_peeling): Removed. Its functionality was
2664         moved to vect_do_peeling_for_alignment.
2665         (vect_do_peeling_for_loop_bound): New name for function previously
2666         called vect_transform_for_unknown_loop_bound.
2667         (vect_transform_loop_bound): Call slpeel_make_loop_iterate_ntimes
2668         instead of code that duplicates the same functionality.
2669         (vect_do_peeling_for_alignment): Functionality of
2670         vect_update_niters_after_peeling moved here.
2671         (vect_transform_loop): Unify call to vect_do_peeling_for_loop_bound -
2672         previously named vect_transform_for_unknown_loop_bound - for both known
2673         and unknown loop bound cases.
2674
2675 2004-11-19  Dorit Naishlos  <dorit@il.ibm.com>
2676
2677         * tree-vectorizer.c (slpeel_can_duplicate_loop_p): New name for function
2678         previously called verify_loop_for_duplication. All conditions compacted
2679         into one compound condition. Removed debug dumps.
2680         (vect_analyze_loop_with_symbolic_num_of_iters): Removed. Some of the
2681         functionality moved to vect_can_advance_ivs_p, and some to
2682         vect_analyze_loop_form.
2683         (vect_can_advance_ivs_p): New function. Contains functionality that was
2684         taken out of vect_analyze_loop_with_symbolic_num_of_iters.
2685         (slpeel_tree_peel_loop_to_edge): Call slpeel_can_duplicate_loop_p.
2686         (vect_analyze_operations): Call vect_can_advance_ivs_p and
2687         slpeel_can_duplicate_loop_p.
2688         (vect_get_loop_niters): Added documentation.
2689         (vect_analyze_loop_form): Check the loop entry always - not only in case
2690         of unknown loop bound. Create preheader and exit bb if necessary. Apply
2691         a check that used to take place in
2692         vect_analyze_loop_with_symbolic_num_of_iters.
2693         (vectorize_loops): Call verify_loop_closed_ssa under ENABLE_CHECKING.
2694         Remove redundant call to rewrite_into_loop_closed_ssa.
2695         (vect_compute_data_refs_alignment): Removed obsolete comment.
2696
2697 2004-11-19  Dorit Naishlos  <dorit@il.ibm.com>
2698
2699         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): New name for
2700         function previously called tree_duplicate_loop_to_edge.
2701         (slpeel_tree_duplicate_loop_to_edge_cfg): New name for function
2702         previously called tree_duplicate_loop_to_edge_cfg.
2703         (slpeel_update_phis_for_duplicate_loop): Prefix 'slpeel' added to
2704         function name.
2705         (slpeel_update_phi_nodes_for_guard): Likewise.
2706         (slpeel_make_loop_iterate_ntimes): Likewise.
2707         (slpeel_add_loop_guard): Likewise.
2708         (allocate_new_names, free_new_names): Function declaration moved to top
2709         of file.
2710         (rename_use_op, rename_def_op): Likewise.
2711         (rename_variables_in_bb, rename_variables_in_loop): Likewise.
2712         (vect_generate_tmps_on_preheader): Function declaration moved.
2713         (vect_transform_for_unknown_loop_bound): Added missing function
2714         declaration.
2715
2716 2004-11-19  Andrew Pinski  <pinskia@physics.uc.edu>
2717
2718         PR tree-opt/18507
2719         * tree-flow.h (tree_on_heap): Typedef because there is already a VEC(tree).
2720         Define a VEC(tree_on_heap) for head.
2721         (register_new_def): Change second argument to be a VEC(tree_on_heap).
2722         * tree-ssa-dom.c (block_defs_stack): Change to be a VEC(tree_on_heap).
2723         (tree_ssa_dominator_optimize): Initialize block_defs_stack with
2724         the VEC(tree_on_heap) function.  Also free it before returning.
2725         (dom_opt_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
2726         for block_defs_stack.
2727         (restore_currdefs_to_original_value): Use VEC_length instead of
2728         VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
2729         (dom_opt_finalize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
2730         for block_defs_stack.
2731         * tree-into-ssa.c (block_defs_stack): Change to be a VEC(tree_on_heap).
2732         (rewrite_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
2733         for block_defs_stack.
2734         (ssa_register_new_def): Likewise.
2735         (ssa_rewrite_initialize_block): Likewise.
2736         (rewrite_finalize_block): Use VEC_length instead of
2737         VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
2738         (ssa_rewrite_finalize_block): Likewise.
2739         (register_new_def): Change second argument to be a VEC(tree_on_heap).
2740         Use VEC_safe_push instead of VARRAY_PUSH_TREE.
2741         (rewrite_blocks): Initialize block_defs_stack with
2742         the VEC(tree_on_heap) function.  Also free it before returning.
2743         (rewrite_ssa_into_ssa): Likewise.
2744
2745 2004-11-19  Fariborz Jahanian <fjahanian@apple.com>
2746
2747         * config/darwin.c (machopic_data_defined_p): return 1 for
2748         MACHOPIC_DEFINED_FUNCTION.
2749
2750 2004-11-19  Jeff Law  <law@redhat.com>
2751
2752         * tree-ssa.c (verify_ssa): Remove redundant checking of PHI
2753         arguments.
2754
2755 2004-11-19  Paul Brook  <paul@codesourcery.com>
2756
2757         PR target/17735
2758         * varasm.c (default_assemble_integer): Allow pointer-sized values.
2759         Expand comment.
2760
2761 2004-11-19  Nick Clifton  <nickc@redhat.com>
2762
2763         * config/stormy16/stormy16.c (combine_bnp): Add code to handle
2764         zero_extension and lshiftrt insns.
2765         Replace uses of XEXP(...) with either SET_DEST() or SET_SRC()
2766         where appropriate.
2767         * config/stormy16.stormy16.md (bclrx3, bsetx3): New patterns
2768         to handle bp and bn insn patterns with a zero_extend rtx
2769         inside them.
2770
2771 2004-11-19  Ian Lance Taylor  <ian@wasabisystems.com>
2772
2773         * config/arm/arm.md (generic_sched): Make const.
2774
2775 2004-11-19  Kazu Hirata  <kazu@cs.umass.edu>
2776
2777         * emit-rtl.c (classify_insn): Make it static.
2778         * rtl.h: Remove the corresponding prototype.
2779
2780         * integrate.c (has_func_hard_reg_initial_val,
2781         get_func_hard_reg_initial_val): Make them static.
2782         * integrate.h: Remove the corresponding prototypes.
2783
2784 2004-11-19  Ben Elliston  <bje@au.ibm.com>
2785
2786         * dwarf2asm.h (dw2_asm_output_pcel): Stub out with #if 0.
2787         (dw2_asm_output_delta_sleb128): Likewise.
2788         * dwarf2asm.c (dw2_asm_output_pcrel): Likewise.
2789         (dw2_asm_output_delta_sleb128): Likewise.
2790
2791 2004-11-19  Adam Nemet  <anemet@lnxw.com>
2792
2793         * tree-ssa-alias.c: Fix comment.
2794
2795 2004-11-19  Kazu Hirata  <kazu@cs.umass.edu>
2796
2797         * tree-outof-ssa.c: Fix a comment typo.
2798
2799 2004-11-19  Ben Elliston  <bje@au.ibm.com>
2800
2801         * predict.h (predict_insn): Remove extern declaration.
2802         * predict.c (predict_insn): Make static.
2803
2804 2004-11-19  Alan Modra  <amodra@bigpond.net.au>
2805
2806         * config/rs6000/rs6000.c (function_arg): Don't return BLKmode regs.
2807
2808 2004-11-18  Nicolas Pitre <nico@cam.org>
2809
2810         * config/arm/arm.c (const_double_needs_minipool): New function to
2811         determine if a CONST_DOUBLE should be pushed to the minipool.
2812         (note_invalid_constants): Use it.
2813
2814 2004-11-18  Paul Brook  <paul@codesourcery.com>
2815
2816         * config/arm/arm.c (target_float_switch): New variable..
2817         (arm_override_options): Use TARGET_DEFAULT_FLOAT_ABI and
2818         target_float_switch.
2819         * config/arm/arm.h (target_float_switch): Declare.
2820         (ARM_FLAG_SOFT_FLOAT): Remove.
2821         (TARGET_SWITCHES): Remove hard-float and soft-float.
2822         (TARGET_OPTIONS): Add hard-float and soft-float.
2823         (TARGET_DEFAULT_FLOAT_ABI): Define.
2824         * config/arm/coff.h (TARGET_DEFAULT_FLOAT_ABI): Define
2825         (TARGET_DEFAULT): Don't use ARM_FLAG_SOFT_FLOAT.
2826         * config/arm/elf.h: Don't use ARM_FLAG_SOFT_FLOAT.
2827         * config/arm/netbsd-elf.h: Ditto.
2828         * config/arm/netbsd.h: Ditto.
2829         * config/arm/pe.h: Ditto.
2830         * config/arm/unknown-elf.h: Ditto.
2831         * config/arm/wince-pe.h: Ditto.
2832         * config/arm/linux-elf.h (TARGET_DEFAULT_FLOAT_ABI): Define.
2833         * config/arm/semi.h (TARGET_DEFAULT_FLOAT_ABI): Define.
2834         * config/arm/semiaof.h (TARGET_DEFAULT_FLOAT_ABI): Define.
2835
2836 2004-11-18  Nathan Sidwell  <nathan@codesourcery.com>
2837
2838         * config/rs6000/altivec.md (VI, VF, V): New mode macros.
2839         (altivec_lvx_4si, altivec_lvx_8hi, altivec_lvx_16qi,
2840         altivec_lvx_4sf): Rename and replace with ...
2841         (altivec_lvx_<mode>): ... mode macro version.
2842         (altivec_stvx_4si, altivec_stvx_8hi, altivec_stvx_16qi,
2843         altivec_stvx_4sf): Rename and replace with ...
2844         (altivec_stvx_<mode>): ... mode macro version.
2845         (movv4si, movv8hi, movv16qi, movv4sf}): Replace with ...
2846         (mov<mode>): ... mode macro version.
2847         (*movv4si_internal, *movv8hi_internal1, *movv16qi_internal1,
2848         *movv4sf_internal1): Replace with ...
2849         (*mov<mode>_internal): ... mode macro version.
2850         (get_vrsave_internal, *set_vrsave_internal, *save_world,
2851         *restore_world): Unquote output statements.
2852         * config/rs6000/rs6000.c (altivec_expand_ld_builtin,
2853         altivec_expand_st_builtin): Adjust insn names.
2854
2855 2004-11-18  Aldy Hernandez  <aldyh@redhat.com>
2856
2857         * config/rs6000/rs6000.c (rs6000_complex_function_value): Revert
2858         previous change.
2859         (rs6000_override_options): Likewise.
2860         (spe_build_register_parallel): Handle complex doubles on e500v2.
2861         (rs6000_spe_function_arg): Likewise.
2862         (function_arg): Likewise.
2863         (rs6000_function_value): Likewise.
2864         (rs6000_libcall_value): Likewise.
2865
2866 2004-11-18  Andrew Pinski  <pinskia@physics.uc.edu>
2867
2868         * ifcvt.c (find_if_block): Move the check for the number of edges
2869         above the loops checking for complex edges.
2870         Remove the counting of edges as we use EDGE_COUNT now.
2871
2872 2004-11-18  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
2873
2874         * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
2875         TARGET_ASM_FILE_END to file_end_indicate_exec_stack.3
2876
2877 2004-11-18  Andreas Schwab  <schwab@suse.de>
2878
2879         * config/i386/i386.md (define_peephole2): Revert last change.
2880
2881 2004-11-18  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
2882
2883         * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
2884         TARGET_ASM_FILE_END to file_end_indicate_exec_stack.
2885
2886 2004-11-18  Diego Novillo  <dnovillo@redhat.com>
2887
2888         * tree-ssa-propagate.c (ssa_prop_init): Use FOR_ALL_BB instead
2889         of FOR_EACH_BB.
2890
2891 2004-11-18  Jon Grimm <jgrimm2@us.ibm.com>
2892
2893         * Makefile.in (macro_list): Depend on s-macro_list.
2894         (s-macro_list): New target.
2895
2896 2004-11-18  Nathan Sidwell  <nathan@codesourcery.com>
2897
2898         PR target/17107
2899         * fold-const.c (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
2900         (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
2901         (fold_range_test): Adjust.
2902         (fold_truthop): Use it.
2903         * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
2904         (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
2905
2906 2004-11-18  Uros Bizjak  <uros@kss-loka.si>
2907
2908         * configure/i386/i386.md (*fix_trunch_1): Add "&& 1" to
2909         insn split constraint.
2910         (define_peephole2): Remove unneeded "&& 1" from peephole2
2911         constraints.
2912
2913 2004-11-18  Ben Elliston  <bje@au.ibm.com>
2914
2915         * doc/cfg.texi (Maintaining the CFG): Remove duplicated @item
2916         element for bsi_prev; use @findex instead.
2917
2918 2004-11-18  Ben Elliston  <bje@au.ibm.com>
2919
2920         * opts.h (add_input_filename): Remove extern declaration.
2921         * opts.c (add_input_filename): Make static.
2922
2923 2004-11-17  Mark Mitchell  <mark@codesourcery.com>
2924
2925         * config/i386/i386.c (i386_solaris_elf_named_section): Mark with
2926         ATTRIBUTE_UNUSED.
2927
2928 2004-11-17  Zack Weinberg  <zack@codesourcery.com>
2929
2930         * defaults.h, config/darwin.h: Don't define TARGET_SUPPORTS_HIDDEN.
2931         * system.h: Poison it.
2932         * doc/tm.texi: Delete its documentation.
2933
2934 2004-11-18  Daniel Jacobowitz  <dan@codesourcery.com>
2935             Mark Mitchell  <mark@codesourcery.com>
2936
2937         * config/i386/sol2-10.h, config/i386/t-sol2-10: New files.
2938         * config/i386/i386.c (i386_solaris_elf_named_section): New
2939         function.
2940         * config.gcc (i[34567]86-*-solaris2*): Handle Solaris 2.10.
2941         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Handle
2942         64-bit.
2943         (ASM_QUAD): Don't undefine for biarch targets.
2944         * config/i386/t-sol2: Introduce multilib support.
2945
2946 2004-11-18  Ben Elliston  <bje@au.ibm.com>
2947
2948         * cgraphunit.c: Replace "it's" with "its" and fix a typo.
2949
2950 2004-11-18  Ben Elliston  <bje@au.ibm.com>
2951
2952         * cgraph.h: Replace "it's" with "its" throughout.
2953
2954 2004-11-18  Ben Elliston  <bje@au.ibm.com>
2955
2956         * doc/rtl.texi (Flags): Grammar fix.
2957
2958 2004-11-17  Kazu Hirata  <kazu@cs.umass.edu>
2959
2960         * expmed.c (alg_code): Add alg_unknown.
2961         (alg_hash_entry): New.
2962         (NUM_ALG_HASH_ENTRIES): Likewise.
2963         (alg_hash): Likewise.
2964         (synth_mult): Cache the result into alg_hash.
2965
2966 2004-11-17  Zack Weinberg  <zack@codesourcery.com>
2967
2968         * config/rs6000/t-darwin: Augment SHLIB_MAPFILES with
2969         config/rs6000/libgcc-ppc64.ver.
2970
2971 2004-11-17  Kazu Hirata  <kazu@cs.umass.edu>
2972
2973         * cfgrtl.c (rtl_verify_flow_info): Don't use INSN_P when
2974         checking if an unconditional return is followed by a barrier.
2975
2976         * jump.c (condjump_p): Remove unreachable code.
2977
2978         * basic-block.h, c-common.h, df.h, expr.h, output.h, rtl.h,
2979         tree-chrec.h, tree-flow.h, tree-scalar-evolution.h,
2980         tree-ssa-live.h, tree.h: Remove unused prototypes.
2981
2982 2004-11-17  Jeff Law  <law@redhat.com>
2983
2984         * tree-cfg.c (edge_to_cases): Renamed from edge_to_case_leader.
2985         (edge_to_cases_elt): Renamed from edge_to_case_leader.
2986         (edge_to_cases_hash): Renamed from edge_to_case_leader_hash.
2987         (edge_to_cases_eq): Renamed from edge_to_case_leader_eq.
2988         (edge_to_cases_cleanup, recording_case_labels_p): New functions.
2989         (get_cases_for_edge): New function.
2990         (start_recording_case_labels, end_recording_case_labels): Similarly.
2991         (record_switch_edge): Don't muck with the CASE_LABEL.  Instead
2992         chain equivalent CASE_LABEL_EXPRs together.
2993         (get_case_leader_for_edge, get_case_leader_for_edge_hash): Kill.
2994         (make_switch_expr_edges): Do not record edge/cases here.
2995         (cleanup_tree_cfg): Record cases around the call to thread_jumps.
2996         (split_critical_edges): Record cases around the edge splitting code.
2997         (cleanup_dead_labels): Use CASE_LABEL again.
2998         (tree_redirect_edge_and_branch): If we have a mapping from edge
2999         to cases, use it to handle redirections.  Else do it the slow way.
3000         * tree.h (CASE_LEADER_OR_LABEL): Kill.
3001         (CASE_LABEL): Revert to just looking at the tree's second operand.
3002         * tree.c (get_case_label): Kill.
3003
3004 2004-11-17  Diego Novillo  <dnovillo@redhat.com>
3005
3006         PR tree-optimization/18307
3007         * tree-ssa-alias.c (merge_pointed_to_info): ICE if 'dest' and
3008         'orig' are the same node.
3009         (collect_points_to_info_r): Do not call merge_pointed_to_info
3010         when the PHI argument is identical to the LHS.
3011
3012 2004-11-17  Steven Bosscher  <stevenb@suse.de>
3013
3014         * tree-ssa-propagate.c (cfg_blocks_add): Assert we're not trying
3015         to insert the exit or entry block.
3016         (ssa_prop_init): Use add_control_edge to seed the algorithm.
3017
3018 2004-11-16  Zack Weinberg  <zack@codesourcery.com>
3019
3020         * mkmap-flat.awk, mkmap-symver.awk: If the last version
3021         assigned to a symbol was '%exclude', do not emit it anywhere.
3022         If leading_underscore is true, prefix all symbols from the
3023         version scripts with a leading underscore before comparing
3024         them with nm output or emitting them.  Remove support for dot
3025         symbols.
3026         * config/t-slibgcc-darwin (SHLIB_LINK): Use mkmap-flat.awk.
3027         (SHLIB_MAPFILES): Use libgcc-std.ver.
3028         (SHLIB_MKMAP_OPTS): Enable leading-underscore mode.
3029         (SHLIB_LINK): Add -Wl,-exported_symbols_list,$(SHLIB_MAP).
3030         * config/sh/t-linux: Use the normal libgcc-std.ver, plus
3031         libgcc-excl.ver and libgcc-glibc.ver.
3032
3033         * config/sh/libgcc-excl.ver: New file.
3034         * config/sh/libgcc-std.ver, libgcc-darwin.ver: Delete.
3035
3036 2004-11-16  Daniel Berlin  <dberlin@dberlin.org>
3037
3038         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Swap
3039         the test when the edge has the opposite meaning, not when
3040         the first argument is invariant.
3041
3042 2004-11-16  Aldy Hernandez  <aldyh@redhat.com>
3043
3044         * config/rs6000/rs6000.c (rs6000_override_options): Split e500v2
3045         doubles.
3046         (rs6000_complex_function_value): Handle e500 v2 variant.
3047
3048 2004-11-16  Daniel Berlin  <dberlin@dberlin.org>
3049
3050         Fix PR tree-optimization/18519
3051
3052         * tree-optimize (execute_todo): Add case for TODO_cleanup_cfg.
3053         * tree-pass.h: Add TODO_cleanup_cfg.
3054         * tree-ssa-ccp.c (pass_ccp): Use TODO_cleanup_cfg.
3055         (ccp_finalize): Remove call to cleanup_cfg.
3056         * tree-ssa-dce.c (pass_dce): Use TODO_cleanup_cfg and TODO_dump_func.
3057         (pass_cd_dce): Ditto.
3058         (perform_tree_ssa_dce): Remove call to cleanup_cfg,
3059         dump_function_to_file.
3060         * tree-ssa-loop-ch.c (copy_loop_headers): Remove call
3061         to cleanup_cfg.
3062         (pass_ch): Add TODO_cleanup_cfg.
3063         * tree-ssa-loop.c (tree_ssa_loop_done): Remove call to
3064         cleanup_cfg.
3065         (pass_loop_done): Add TODO_cleanup_cfg.
3066         * tree-ssa-phiopt.c (pass_phiopt): Ditto.
3067         (tree_ssa_phiopt): Remove call to cleanup_cfg.
3068
3069 2004-11-16  Devang Patel  <dpatel@apple.com>
3070
3071         * optabs.c (vector_compare_rtx): Fix COMPARISON_CLASS_P use.
3072
3073 2004-11-16  Kazu Hirata  <kazu@cs.umass.edu>
3074
3075         * expmed.c, ra-colorize.c: Fix comment typos.
3076
3077         * doc/tm.texi: Fix typos.
3078
3079 2004-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
3080             Mark Mitchell  <mark@codesourcery.com>
3081
3082         PR target/6123
3083         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and
3084         __pic__ if PIC.
3085
3086 2004-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
3087
3088         * regmove.c (regmove_optimize): Use lowpart_subreg instead of
3089         gen_rtx_SUBREG with incorrect offset to compute SRC_SUBREG.
3090
3091 2004-11-16  Devang Patel  <dpatel@apple.com>
3092
3093         * tree-if-conv.c (clean_predicate_lists): Update gcc_assert check.
3094
3095 2004-11-16  Eric Christopher  <echristo@redhat.com>
3096
3097         * config/mips/mips.c: Use rtl _P predicates.
3098         * config/mips/mips.h: Ditto.
3099         * config/mips/mips.md: Ditto.
3100
3101 2004-11-16  Fariborz Jahanian <fjahanian@apple.com>
3102
3103         * config/rs6000/altivec.md (altivec_vandc): Canonicalize
3104         the pattern.
3105
3106 2004-11-16  Andreas Krebbel  <krebbel1@de.ibm.com>
3107
3108         * config/s390/s390.c (s390_cc_modes_compatible): New function.
3109         (TARGET_CC_MODES_COMPATIBLE): Target macro defined.
3110
3111 2004-11-16  Kaz Kojima  <kkojima@gcc.gnu.org>
3112
3113         PR target/18447
3114         * config/sh/sh.c (prepare_move_operands): Emit blockage insns
3115         before and after the insns for getting GOT address in non-PIC
3116         TLS_MODEL_INITIAL_EXEC tls sequence when the first scheduling
3117         is enabled.
3118
3119 2004-11-16  Andreas Krebbel  <krebbel1@de.ibm.com>
3120
3121         * gcc/cse.c (struct change_cc_mode_args): New structure.
3122         (cse_change_cc_mode_insn): New function.
3123         (cse_change_cc_mode): Use validate_change to perfom changes.
3124         (cse_change_cc_mode_insns, cse_condition_code_reg):
3125         Call cse_change_cc_mode_insn.
3126
3127 2004-11-16  Steven Bosscher  <stevenb@suse.de>
3128
3129         * stack.h: Remove.
3130
3131 2004-11-16  Steven Bosscher  <stevenb@suse.de>
3132
3133         * config/i386/i386.c (x86_schedule): Fix typo, m_K6 intead of m_K8.
3134
3135 2004-11-15  Dale Johannesen  <dalej@apple.com>
3136
3137         * tree-flow.h (add_referenced_temp_var):  Remove name from prototype.
3138
3139 2004-11-15  Dale Johannesen  <dalej@apple.com>
3140
3141         * profile.c (compute_branch_probabilities):  Prevent
3142         crash with EH in RTL-based profiling.
3143
3144 2004-11-16  Kazu Hirata  <kazu@cs.umass.edu>
3145
3146         * tree-cfg.c (verify_expr): Replace TREE_OPERAND with
3147         COND_EXPR_COND.
3148         * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
3149         * tree-ssa-dom.c (thread_across_edge): Likewise.
3150         * tree-vectorizer.c (vect_transform_loop_bound): Replace
3151         TREE_OPERAND with COND_EXPR_COND, COND_EXPR_THEN, or
3152         COND_EXPR_ELSE.
3153
3154         * tree-cfg.c (bsi_commit_edge_inserts): Remove an argument.
3155         (tree_flow_call_edges_add): Update the call to
3156         bsi_commit_edge_inserts.
3157         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
3158         * profile.c (branch_prob): Likewise.
3159         * tree-mudflap.c (mf_decl_cache_locals): Likewise.
3160         * tree-sra.c (scalarize_function): Likewise.
3161         * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
3162         * tree-ssa-pre.c (fini_pre): Likewise.
3163         * tree-flow.h: Update the prototype for
3164         bsi_commit_edge_inserts.
3165
3166 2004-11-15  Eric Christopher  <echristo@redhat.com>
3167
3168         * sched-deps.c (set_sched_group_p): Delete.
3169         (delete_all_dependencies): New function.
3170         (fixup_sched_groups): Use. New function.
3171         (sched_analyze_insn): Use.
3172
3173 2004-11-15  Joseph S. Myers  <joseph@codesourcery.com>
3174
3175         * c-common.c (binary_op_error): Don't allow LROTATE_EXPR,
3176         RROTATE_EXPR or unknown code.
3177         * c-typeck.c (build_binary_op): Don't allow RROTATE_EXPR,
3178         LROTATE_EXPR, MAX_EXPR, MIN_EXPR, UNORDERED_EXPR, ORDERED_EXPR,
3179         UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR
3180         or unknown code.
3181
3182 2004-11-15  Joseph S. Myers  <joseph@codesourcery.com>
3183
3184         PR c/18498
3185         * c-decl.c (grokdeclarator): Call check_bitfield_type_and_width
3186         after processing the declarator.
3187
3188 2004-11-15  Aldy Hernandez  <aldyh@redhat.com>
3189
3190         * config/rs6000/altivec.md ("altivec_vsplth"): Rewrite with
3191         vec_duplicate.
3192         (altivec_vspltb): Same.
3193         (altivec_vspltw): Same.
3194         (altivec_vspltisb): Same.
3195         (altivec_vspltish): Same.
3196         (altivec_vspltisw): Same.
3197         (altivec_vspltisw_v4sf): Same.
3198         (define_constants): Remove UNSPEC_VSPLTISB, UNSPEC_VSPLTISW,
3199         UNSPEC_VSPLTISH.
3200         Move "End of vector xor's" comment to the right place.
3201
3202 2004-11-15  Steve Ellcey  <sje@cup.hp.com>
3203
3204         * config/ia64/ia64.md (*movtf_internal):  Use destination_operand
3205         instead of nonimmediate_operand.
3206
3207 2004-11-15  Mark Mitchell <mark@codesourcery.com>
3208
3209         * config/i386/sol2.h (ASM_OUTPUT_CALL): Use print_operand.
3210         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Likewise.
3211         * config/sol2.c (solaris_output_init_fini): Update calls to
3212         ASM_OUTPUT_CALL.  Include "rtl.h".
3213
3214 2004-11-15  Mark Mitchell <mark@codesourcery.com>
3215
3216         * config/sol2-c.c (cmn_err_char_table): Add "p".
3217
3218 2004-11-15  Mark Mitchell <mark@codesourcery.com>
3219
3220         * config/sparc/sol2.h (SUPPORTS_INIT_PRIORITY): Remove.
3221         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define here.
3222
3223 2004-11-15  Mark Mitchell <mark@codesourcery.com>
3224
3225         * config/t-slibgcc-sld (SHLIB_LINK): Make symlinks entirely
3226         within the multilib directory.
3227
3228 2004-11-15  Nick Clifton  <nickc@redhat.com>
3229
3230         * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Add
3231         builtin assert of cpu=xstormy16.
3232
3233 2004-11-15  Nathan Sidwell  <nathan@codesourcery.com>
3234
3235         * tree-ssa-pre.c (bitmap_print_value_set): Fix uninitialized
3236         variable.
3237
3238 2004-11-14  Richard Henderson  <rth@redhat.com>
3239
3240         PR 18480
3241         * calls.c (struct arg_data): Add parallel_value.
3242         (precompute_register_parameters): Set it.
3243         (load_register_parameters): Use it.
3244         (store_one_arg): Also set it here.
3245
3246 2004-11-14  Zdenek Dvorak  <dvorakz@suse.cz>
3247
3248         PR tree-optimization/18431
3249         * fold-const.c (associate_trees): Do not produce x + 0.
3250         (fold_widened_comparison, fold_sign_changed_comparison): New functions.
3251         (fold): Use them.
3252         * tree-ssa-loop-niter.c (upper_bound_in_type, lower_bound_in_type):
3253         Moved ...
3254         * tree.c (upper_bound_in_type, lower_bound_in_type): Here.
3255         * tree.h (upper_bound_in_type, lower_bound_in_type): Declare.
3256
3257 2004-11-14  Eric Botcazou <ebotcazou@libertysurf.fr>
3258
3259         * doc/rtl.texi (SUBREG): Adjust BYTENUM value in example.
3260
3261 2004-11-14  Kazu Hirata  <kazu@cs.umass.edu>
3262
3263         * cfgrtl.c, global.c, tree-ssa-copy.c, tree-ssa-loop-ivopts.c,
3264         value-prof.c: Fix comment typos.
3265
3266 2004-11-14  Stan Shebs  <shebs@apple.com>
3267
3268         Basic ABI changes for passing structs by value in 64-bit Darwin.
3269         * config/rs6000/rs6000.c (rs6000_darwin64_abi): New flag.
3270         (rs6000_override_options): Set it for 64-bit Darwin.
3271         (rs6000_parse_abi_options): Add testing options to change it.
3272         (rs6000_return_in_memory): Test whether the type is one
3273         that can be passed in registers.
3274         (darwin64_function_arg_advance): New.
3275         (function_arg_advance): Call it, plus add recursion depth
3276         argument and test when counting off arguments.
3277         (rs6000_darwin64_function_arg): New.
3278         (function_arg): Call it.
3279         (setup_incoming_varargs): Add argument to function_arg_advance.
3280         (rs6000_darwin64_function_value): New.
3281         (rs6000_function_value): Call it.
3282         * config/rs6000/rs6000.h (FUNCTION_ARG_ADVANCE): Pass depth arg.
3283         * config/rs6000/rs6000-protos.h: Update decl of
3284         function_arg_advance.
3285
3286 2004-11-14  Andrew Pinski  <pinskia@physics.uc.edu>
3287
3288         PR c/17279
3289         * c-common.c (c_common_nodes_and_builtins): Ask the back-end if we
3290         support TImode before adding __int128_t and __uint128_t types.
3291
3292 2004-11-14  Dorit Naishlos  <dorit@il.ibm.com>
3293
3294         PR tree-opt/18400
3295         * tree-vectorizer.c (make_loop_iterate_ntimes): Set loop->nb_iterations.
3296         (vect_transform_loop_bound): Set loop->nb_iterations.
3297
3298 2004-11-14  Dorit Naishlos  <dorit@il.ibm.com>
3299             Andrew Pinski  <pinskia@physics.uc.edu>
3300
3301         PR tree-opt/18425
3302         * tree-vectorize.c (vect_build_loop_niters): Do not insert
3303         NULL into the instruction stream. Initialize new_bb to NULL.
3304         (vect_update_ivs_after_vectorizer): Likewise.
3305         (vect_gen_niters_for_prolog_loop): Likewise.
3306
3307 2004-11-14  Zdenek Dvorak  <dvorakz@suse.cz>
3308
3309         PR tree-optimization/18431
3310         * tree-flow.h (stmt_references_memory_p): Declare.
3311         * tree-ssa-loop-im.c (stmt_cost): Use stmt_references_memory_p.
3312         * tree-ssa.c (stmt_references_memory_p): New function.
3313
3314 2004-11-14  Andreas Schwab  <schwab@suse.de>
3315
3316         * Makefile.in (lambda-code.o, tree-loop-linear.o): Depend on
3317         $(EXPR_H).
3318
3319 2004-11-14  Kazu Hirata  <kazu@cs.umass.edu>
3320
3321         * c-common.c (walk_stmt_tree): Remove.
3322         * c-common.h: Remove the corresponding prototype.
3323
3324         * emit-rtl.c (push_to_full_sequence): Remove.
3325         * rtl.h: Remove the corresponding prototype.
3326
3327         * cselib.c, expr.c: Fix comment typos.
3328
3329 2004-11-13  Richard Henderson  <rth@redhat.com>
3330
3331         * calls.c (precompute_register_parameters): Force all PARALLELs
3332         into pseudo registers.
3333         (load_register_parameters): Copy PARALLELs into hard registers.
3334         * function.c (assign_parm_setup_block): Copy PARALLELS into
3335         pseudo registers.  Do emit_group_store in conversion_insns.
3336         * expr.c (emit_group_load_1): Rename from emit_group_load, take
3337         tmps as an argument.  Move final copy loop ...
3338         (emit_group_load): ... here.  New function.
3339         (emit_group_load_into_temps, emit_group_move_into_temps): New.
3340         * expr.h: Declare them.
3341
3342 2004-11-14  Kazu Hirata  <kazu@cs.umass.edu>
3343
3344         * tree-cfg.c, tree-if-conv.c, tree-ssa-loop-ivopts.c,
3345         tree-ssa-loop-manip.c, tree-vectorizer.c: Replace TREE_CHAIN
3346         with PHI_CHAIN where appropriate.
3347
3348 2004-11-13  Dale Johannesen  <dalej@apple.com>
3349
3350         * tree-flow.h (bsi_commit_one_edge_insert): Remove name from prototype.
3351         (tree_block_label): Ditto.
3352         (flush_pending_stmts): Ditto.
3353         (insert_edge_copies): Ditto.
3354         (expr_invariant_in_loop_p): Ditto.
3355         (TDF_USE_OPS): Parenthesize definition.
3356         (TDF_USE_VOPS): Ditto.
3357
3358 2004-11-13  David Edelsohn  <edelsohn@gnu.org>
3359
3360         * config/rs6000/aix51.h (ASM_CPU_SPEC): Add 970 and G5.
3361         * config/rs6000/aix52.h (ASM_CPU_SPEC): Same.
3362         (atoll): Declare.
3363         * config/rs6000/t-aix52 (BOOT_LDFLAGS): Define.
3364
3365 2004-11-14  Joseph Myers  <joseph@codesourcery.com>
3366
3367         * config/i386/i386.c (override_options): Move loop to set default
3368         tuning to correct place.
3369
3370 2004-11-13  Zak Kipling  <zak@transversal.com>
3371
3372         PR target/18300
3373         * config/i386/i386.c (classify_argument): Fix infinite loop when
3374         passing object with 3 or more base classes by value.
3375
3376 2004-11-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
3377
3378         * doc/md.texi (constraints) <% modifier>: Mention that it is
3379         useless when the two alternatives are strictly identical.
3380
3381 2004-11-13  Richard Henderson  <rth@redhat.com>
3382
3383         * expmed.c (extract_split_bit_field): Temporarily disable call to
3384         extract_force_align_mem_bit_field.
3385
3386 2004-11-13  Kazu Hirata  <kazu@cs.umass.edu>
3387
3388         * bitmap.c, bitmap.h, expmed.c, tree-cfg.c: Fix comment
3389         formatting.
3390
3391         * c-cppbuiltin.c, cgraph.c, domwalk.h, except.c, gimplify.c,
3392         lambda-code.c, postreload.c, predict.c, tree-sra.c,
3393         tree-ssa-loop-manip.c, tree.c: Fix comment typos.
3394
3395 2004-11-13  Kelley Cook  <kcook@gcc.gnu.org>
3396
3397         * doc/install.texi (automake): Correctly document that everything now
3398         will use automake 1.9.3.
3399
3400 2004-11-13  Hans-Peter Nilsson  <hp@bitrange.com>
3401
3402         PR target/18347
3403         * config/mmix/mmix.c (mmix_function_outgoing_value): Handle
3404         TImode.  Sorry for other non-complex larger-than-64-bit modes.
3405         * config/mmix/mmix.h (MIN_UNITS_PER_WORD): Do not define.
3406
3407 2004-11-13  Kelley Cook  <kcook@gcc.gnu.org>
3408
3409         * doc/install.texi (automake): Document that everything now uses 1.9.
3410
3411 2004-11-13  Bernd Schmidt  <bernd.schmidt@analog.com>
3412
3413         * cse.c (cse_insn): Stores in a libcall sequence can invalidate
3414         previous loads.
3415
3416 2004-11-13  Kazu Hirata  <kazu@cs.umass.edu>
3417
3418         * tree.h: Fix comment typos.
3419
3420 2004-11-13  Steven Bosscher  <stevenb@suse.de>
3421
3422         * cse.c (CHEAP_REGNO): Redefine using REGNO_PTR_FRAME_P and
3423         HARD_REGISTER_NUM_P.
3424
3425         * cselib.c (new_cselib_val): Make comment correct and more detailed.
3426         * flow.c (mark_set_1): Likewise.
3427
3428         * except.c (duplicate_eh_region_1, duplicate_eh_region_2,
3429         duplicate_eh_regions): Remove.
3430         * except.h (duplicate_eh_regions): Remove prototype.
3431         * integrate.c (get_label_from_map, copy_rtx_and_substitute,
3432         global_const_equiv_varray): Remove.
3433         * integrate.h (get_label_from_map, copy_rtx_and_substitute,
3434         global_const_equiv_varray, set_label_in_map): Remove prototypes,
3435         extern declaration, and #define.
3436         (MAYBE_EXTEND_CONST_EQUIV_VARRAY, SET_CONST_EQUIV_DATA): Remove.
3437         (struct inline_remap): Remove.
3438         * varray.c (struct element): Remove entry for const_equiv_data.
3439         * varray.h (struct const_equiv_data): Remove.
3440         (enum varray_data_enum) <VARRAY_DATA_CONST_EQUIV>: Remove.
3441         (union varray_data_tag) <const_equiv>: Remove.
3442         (VARRAY_CONST_EQUIV_INIT, VARRAY_CONST_EQUIV,
3443         VARRAY_PUSH_CONST_EQUIV, VARRAY_TOP_CONST_EQUIV): Remove.
3444
3445         * regstack.c (record_label_references): Remove unused function.
3446
3447         * rtl.def (VALUE): Update comment.
3448         (LABEL_REF): Remove unused operand 2.
3449         * rtl.h (struct rtx_def): Update for removed accessor macros.
3450         (XCADVFLAGS, INSN_DEAD_CODE_P, LINE_NUMBER, CONTAINING_INSN,
3451         REG_LOOP_TEST_P): Remove.
3452         (ADDR_DIFF_VEC_FLAGS, CSELIB_VAL_PTR, LABEL_NEXTREF): Add comments.
3453         * web.c (entry_register): Don't copy REG_LOOP_TEST_P.
3454         * doc/rtl.texi (INSN_DEAD_CODE_P, REG_LOOP_TEST_P): Remove.
3455
3456 2004-11-13  James A. Morrison  <phython@gcc.gnu.org>
3457             Eric Botcazou  <ebotcazou@libertysurf.fr>
3458
3459         PR target/18230
3460         * config/sparc/sparc.c (sparc_rtx_costs): Handle the NAND vector
3461         patterns.
3462         * config/sparc/sparc.md (V64I): New macro for 64-bit modes.
3463         (V32I): New macro for 32-bit modes.
3464         (anddi3, anddi_sp32, anddi_sp64, and_not_di_sp32, and_not_di_sp64,
3465         iordi3, iordi3_sp32, iordi_sp64, or_not_di_sp32, or_not_di_sp64,
3466         xordi3, xordi3_sp32, xordi3_sp64, {AND, IOR, XOR} DI splitter,
3467         xor_not_di_sp32, xordi_not_di_sp64, one_cmpldi2, one_cmpldi_sp32,
3468         one_cmpldi_sp64): Use V64I instead of DI.
3469         (andsi3, andsi_sp32, andsi_sp64, and_not_si, iorsi3, or_not_si,
3470         xorsi3, xor_not_si, one_cmplsi2): Use V32I instead of SI.
3471         (addv2si3, addv4hi3, addv2hi3): Remove % modifier.
3472         (nandv64i_vis, nandv32i_vis): New patterns.
3473
3474 2004-11-12  Mike Stump  <mrs@apple.com>
3475
3476         * Makefile.in: Add html support.
3477         * java/Make-lang.in: Likewise.
3478         * fortran/Make-lang.in: Likewise.
3479         * treelang/Make-lang.in: Likewise.
3480         * doc/install.texi: Likewise.
3481         * doc/makefile.texi: Likewise.
3482         * doc/sourcebuild.texi: Likewise.
3483
3484 2004-11-13  Kazu Hirata  <kazu@cs.umass.edu>
3485
3486         * tree-ssa-loop-manip.c: Fix a comment typo.
3487
3488 2004-11-12  Mike Stump  <mrs@apple.com>
3489
3490         * doc/cppinternals.texi (Index): Fix html generation with makeinfo by
3491         renaming this node to Concept Index.
3492         * doc/gccint.texi (Index): Likewise.  Also minor formatting tweaks
3493         to more closely match gcc.texi.
3494
3495 2004-11-12  Jeff Law  <law@redhat.com>
3496
3497         * tree-cfg.c (hashtab.h): Include.
3498         (struct edge_to_case_leader_elt): New structure.
3499         (edge_to_case_leader): New.
3500         (edge_to_case_leader_hash): New hashtable hasing function.
3501         (edge_to_case_leader_eq): New hashtable equality function.
3502         (record_switch_edge): New function.
3503         (get_case_leader_for_edge, get_case_leader_for_edge): New functions.
3504         (make_switch_expr_edges): Build the edge-to-case-leader
3505         hash table.  Tear down the hash table when we're done.
3506         (cleanup_dead_labels): Use CASE_LEADER_OR_LABEL instead of
3507         CASE_LABEL.
3508         (tree_node_can_be_shared): Allow sharing of CASE_LABEL_EXPR nodes.
3509         (tree_redirect_edge_and_branch, case SWITCH_EXPR): Update
3510         to use new concept of case leaders to reduce overhead of
3511         redirecting outgoing edges from switch statements.
3512         * tree.c (get_case_label): New function.
3513         * tree.h (CASE_LABEL): Define in terms of get_case_label.
3514         (CASE_LEADER_OR_LABEL): Define.
3515
3516 2004-11-12  Ziemowit Laski  <zlaski@apple.com>
3517
3518         * varasm.c (output_addressed_constants): For CONST_DECLs,
3519         output the initializer if present.
3520
3521 2004-11-12  Ziemowit Laski  <zlaski@apple.com>
3522
3523         * config/rs6000/darwin.h: Fix confusing typo in comment.
3524
3525 2004-11-12  Devang Patel  <dpatel@apple.com>
3526
3527         * optabs.c (vector_compare_rtx): Use COMPARISON_CLASS_P.
3528
3529 2004-11-12  Devang Patel  <dpatel@apple.com>
3530
3531         * tree-if-conv.c (clean_predicate_lists): Use loop header
3532         and latch directly.
3533
3534 2004-11-12  Richard Henderson  <rth@redhat.com>
3535
3536         PR 17778
3537         * config/i386/i386.h (TARGET_96_ROUND_53_LONG_DOUBLE): New.
3538         * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3539         (TARGET_96_ROUND_53_LONG_DOUBLE): New.
3540         * config/i386/i386-modes.def (XF): Use it.
3541
3542 2004-11-11  Geoffrey Keating  <geoffk@apple.com>
3543
3544         * Makefile.in (macro_list): Use move-if-change to avoid spurious
3545         rebuilds.
3546
3547 2004-11-12  Mark Mitchell  <mark@codesourcery.com>
3548
3549         PR c++/18416
3550         * passes.c (rest_of_decl_compilation): Do not look at DECL_RTL
3551         when deciding whether to pass a variable to
3552         cgraph_varpool_finalize_decl or assemble_variable.
3553         * toplev.c (check_global_declarations): Do not clear DECL_RTL.
3554
3555 2004-11-12  Kazu Hirata  <kazu@cs.umass.edu>
3556
3557         * tree-vectorizer.c: Fix a comment typo.
3558
3559 2004-11-12  Bernd Schmidt  <bernd.schmidt@analog.com>
3560
3561         * genconfig.c (walk_insn_part): Look at match_dups inside a label_ref.
3562
3563 2004-11-12  Diego Novillo  <dnovillo@redhat.com>
3564
3565         * tree-scalar-evolution.c (analyzable_condition): Remove
3566         superfluous TREE_THIS_VOLATILE checks on SSA_NAMEs.
3567
3568 2004-11-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
3569
3570         * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
3571         Remove m505/roe multilib variant.
3572
3573 2004-11-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
3574
3575         * expr.c (emit_group_load) <CONCAT>: Use extract_bit_field
3576         to load from the stack.
3577
3578 2004-11-12  Richard Henderson  <rth@redhat.com>
3579
3580         * toplev.c (floor_log2): Rename from floor_log2_wide, use CLZ_HWI.
3581         (exact_log2): Rename from exact_log2_wide, use CTZ_HWI.
3582         * toplev.h (FL2T__): Remove.
3583         (CLZ_HWI): Rename from FL2T_CLZ__.
3584         (CTZ_HWI): New.
3585         (floor_log2): Simplify.
3586         (exact_log2): New.
3587
3588 2004-11-12  Sebastian Pop  <pop@cri.ensmp.fr>
3589
3590         * tree-data-ref.c (analyze_subscript_affine_affine): Correctly
3591         compute the first overlapping iterations.
3592
3593 2004-11-12  Sebastian Pop  <pop@cri.ensmp.fr>
3594
3595         PR middle-end/18005
3596         * tree-data-ref.c (estimate_niter_from_size_of_data): Ensure
3597         that arguments of EXACT_DIV_EXPR are INTEGER_CST.
3598
3599 2004-11-12  Steven Bosscher  <stevenb@suse.de>
3600
3601         PR tree-optimization/18419
3602         * tree-ssa.c (walk_use_def_chains_1): Make the visited map a
3603         pointer set instead of a bitmap.
3604         (walk_use_def_chains): Create, pass and clean up that pointer_set.
3605
3606         * tree-ssa-alias.c (struct alias_info): Make the ssa_names_visited
3607         field an sbitmap.
3608         (init_alias_info): Allocate and zero it here.
3609         (delete_alias_info): Delete it here.
3610         (collect_points_to_info_for): Use it.
3611
3612 2004-11-11  Kazu Hirata  <kazu@cs.umass.edu>
3613
3614         * alias.c (record_alias_subset, addr_side_effect_eval):
3615         Make them static.
3616         * alias.h: Remove the prototype for record_alias_subset.
3617         * expr.h: Remove the commented-out prototype for
3618         record_alias_subset.
3619         * rtl.h: Remove the prototype for addr_side_effect_eval.
3620
3621         * cfglayout.c (choose_inner_scope): Make it static.
3622         * rtl.h: Remove the corresponding prototype.
3623
3624         * cfgloopmanip.c (update_single_exits_after_duplication,
3625         unloop): Make them static.
3626         * cfgloop.h: Remove the corresponding prototypes.
3627
3628         * c-typeck.c (c_size_in_bytes, record_maybe_used_decl):
3629         Make them static.
3630         * c-tree.h: Remove the corresponding prototypes.
3631
3632         * explow.c (round_push): Make it static.
3633         * expr.h: Remove the corresponding prototype.
3634
3635         * varasm.c (get_named_section_flags, decl_tls_model): Make
3636         them static.
3637         * output.h: Remove the prototype for get_named_section_flags.
3638         * tree.h: Remove the prototype for decl_tls_model.
3639
3640 2004-11-11  Kazu Hirata  <kazu@cs.umass.edu>
3641
3642         * function.c (expand_function_end): Remove an "if" statement
3643         that always triggers.
3644         * stmt.c (expand_null_return_1): Likewise.
3645
3646 2004-11-11  James E. Wilson  <wilson@specifixinc.com>
3647
3648         * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle XCmode.
3649         (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, SECONDARY_MEMORY_NEEDED,
3650         CLASS_MAX_NREGS): Likewise.
3651
3652 2004-11-11  Zdenek Dvorak  <dvorakz@suse.cz>
3653
3654         PR tree-optimization/17742
3655         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Handle
3656         MINUS_EXPR correctly.
3657
3658 2004-11-11  Sebastian Pop  <pop@cri.ensmp.fr>
3659
3660         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
3661         Give up as soon as the evolution is known not computable.
3662
3663 2004-11-11  Nathan Sidwell  <nathan@codesourcery.com>
3664
3665         PR target/16457
3666         * config/rs6000/rs6000.c (mask64_2_operand): Stub to call
3667         mask64_1or2_operand.
3668         (mask64_1or2_operand): Broken out of mask64_2_operand, add flag
3669         to spot rlwinm opportunities.
3670         (and64_2_operand): Use mask_1or2_operand.
3671         * config/rs6000/rs6000.md (anddi3): Use rlwinm when possible.
3672
3673 2004-11-11  Dorit Naishlos  <dorit@il.ibm.com>
3674
3675         * tree-vectorizer.c (update_phi_nodes_for_guard): Call reverse_phis.
3676         (vect_update_ivs_after_vectorizer): Update function documentation.
3677         Avoid quadratic behavior and direct write to PHI_ARG_DEF.
3678
3679 2004-11-11  Kazu Hirata  <kazu@cs.umass.edu>
3680
3681         * config/arm/arm.c: Fix a comment typo.
3682
3683 2004-11-11  Nathan Sidwell  <nathan@codesourcery.com>
3684
3685         * bitmap.h (nBITMAP_WORD_BITS): Remove.
3686         (BITMAP_WORD_BITS): Force unsigned by use of 1u.
3687         (BITMAP_ELEMENT_WORDS, BITMAP_ELEMENT_ALL_BITS): Remove
3688         unnecessary casts.
3689         (bitmap_first_set_bit): Return unsigned, use ctzl.
3690         (bitmap_last_set_bit): Remove.
3691         * bitmap.c (bitmap_element_zerop, bitmap_copy): Make iterator
3692         unsigned.
3693         (bitmap_first_set_bit): Return unsigned, require non-empty bitmap,
3694         remove special case code for two word elements.
3695         (bitmap_last_set_bit): Remove.
3696         * ra-build.c (livethrough_conflicts_bb): Replace unnecessary use of
3697         bitmap_first_set_bit with bitmap_empty_p.
3698         * tree-outof-ssa.c (analyze_edges_for_bb): Likewise.
3699         * tree-ssa-pre.c (bitmap_print_value): Use simple flag rather than
3700         bitmap_last_bit_set.
3701
3702 2004-11-11  Nathan Sidwell  <nathan@codesourcery.com>
3703
3704         PR target/16796
3705         * config/rs6000/rs6000.md: Add DF & SF reg move peepholes.
3706
3707         PR target/16458
3708         * config/rs6000/rs6000.c (rs6000_generate_compare): Generate an
3709         unsigned equality compare when we know the operands are unsigned.
3710
3711 2004-11-10  Peter S. Mazinger  <ps.m@gmx.net>
3712
3713         * config/mips/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Define
3714         __PIC__ and __pic__ only if TARGET_ABICALLS.
3715         (SUBTARGET_CPP_SPECS): Don't define or undefine __PIC__ and __pic__.
3716         (SUBTARGET_ASM_SPECS): Don't pass -non_shared to assembler; pass
3717         -KPIC only if not -mno-abicalls.
3718
3719         * config/alpha/linux.h, config/arm/linux-elf.h, config/pa/pa-linux.h
3720         * config/sparc/linux.h, config/sparc/linux64.h
3721         (TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ if flag_pic.
3722
3723         * config/arm/linux-gas.h (CPP_SPEC): Don't define __PIC__ or __pic__.
3724         * config/pa/pa/linux.h (CPP_SPEC): Likewise.
3725         * config/sparc/linux.h (CPP_SUBTARGET_SPEC): Likewise.
3726         * config/sparc/linux64.h (CPP_SUBTARGET_SPEC): Likewise.
3727
3728 2004-11-11  Paul Brook  <paul@codesourcery.com>
3729
3730         * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Save PIC
3731         register if current_function_uses_pic_offset_table is set.
3732
3733 2004-11-10  David Edelsohn  <edelsohn@gnu.org>
3734
3735         * config/rs6000/rs6000.md (define_attr "type"): Add two and three.
3736         Change multi-instruction sequences to new attribute.
3737         * config/rs6000/{40x.md,440.md,603.md,6xx.md,
3738         7450.md,7xx.md,8540.md,mpc.md,power4.md,power5.md,
3739         rios1.md,rios2.md,rs64.md}: Add descriptions for two and three.
3740
3741 2004-11-10  Daniel Berlin  <dberlin@dberlin.org>
3742
3743         * tree-data-ref.c (build_classic_dist_vector): If either loop
3744         is outside of the nest we asked about, the dependence can't
3745         matter.
3746         (build_classic_dir_vector): Ditto.
3747
3748 2004-11-10  Zdenek Dvorak  <dvorakz@suse.cz>
3749
3750         * tree-ssa-loop-ivopts.c (get_address_cost): Add address elements in
3751         right order.
3752         (force_var_cost): Determine cost of addition and multiplication more
3753         precisely.
3754         (get_computation_cost_at): Add cost for computing address elements to
3755         the final cost.
3756
3757         * fold-const.c (fold): Attempt to use ptr_difference_const whenever
3758         one of the arguments of MINUS_EXPR is an address.
3759         (split_address_to_core_and_offset): New function.
3760         (ptr_difference_const): Handle case when one of the operands is a
3761         pointer.
3762         * tree-ssa-loop-ivopts.c (determine_base_object): Fold &*addr.
3763         (ptr_difference_cost): Pass addresses instead of objects to
3764         ptr_difference_const.
3765
3766 2004-11-10  Nathan Sidwell  <nathan@codesourcery.com>
3767
3768         * tree.c (tree_check_failed): Emit general error if the list of
3769         node types is empty.
3770
3771 2004-11-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
3772
3773         * config/sparc/sparc.c (function_arg_union_value): New 'slotno'
3774         argument.  When the union is passed in the 6th slot, build a
3775         PARALLEL with only one element.
3776         (function_arg): Adjust call to function_arg_union_value.
3777         (function_value): Likewise.
3778
3779 2004-11-10  Fariborz Jahanian <fjahanian@apple.com>
3780
3781         PR tree-optimization/17892
3782         * tree-ssa-dom.c (unsafe_associative_fp_binop): Add test for
3783         MINUS_EXPR operator.
3784
3785 2004-11-10  James A. Morrison  <phython@gcc.gnu.org>
3786
3787         PR target/18230
3788         config/sparc/sparc.md (addsi3, subsi3): Set "fptype" attribute.
3789         (addv2si, addv4hi, addv2hi, subv2si, subv4hi, subv2hi): New patterns.
3790
3791 2004-11-10  Steven Bosscher  <stevenb@suse.de>
3792
3793         * basic-block.h (XMALLOC_REG_SET, XFREE_REG_SET): New.
3794         (struct basic_block_def): Remove local_set and cond_local_set
3795         fields.  Update comment for global_live_at_start.
3796         * flow.c (calculate_global_regs_live): Allocate local_sets and
3797         cond_local_sets here as arrays of bitmaps previously stored in
3798         bb->local_set and bb->cond_local_set.  Use xmalloc instead of
3799         obstack allocated bitmaps.
3800
3801 2004-11-09  H.J. Lu  <hongjiu.lu@intel.com>
3802
3803         PR target/18380
3804         * config/ia64/unwind-ia64.h (_Unwind_FindTableEntry): Mark it
3805         hidden.
3806
3807         * unwind-dw2.c (_Unwind_FindTableEntry): Removed.
3808
3809 2004-11-09  Jeff Law  <law@redhat.com>
3810
3811         * cfganal.c (flow_dfs_compute_reverse_execute): Accept new
3812         argument holding last unvisited block.  Start search for
3813         unvisited blocks at LAST_UNVISITED rather than EXIT_BLOCK.
3814         (connect_infinite_loops_to_exit): Supply last unvisited block
3815         to flow_dfs_compute_reverse_execute.
3816
3817 2004-10-22  Aldy Hernandez  <aldyh@redhat.com>
3818
3819         * config/rs6000/rs6000.md (fix_truncdfsi2): Handle e500
3820         doubles.
3821         (floatunssidf2): Same.
3822         (floatsidf2): Same.
3823         ("extendsfdf2"): New expander.
3824         (*extendsfdf2_fpr): Rename.
3825         (*truncdfsf2_fpr): Same.
3826         (*negdf2_fpr): Same.
3827         (*absdf2_fpr): Same.
3828         (*nabsdf2_fpr): Same.
3829         (*adddf3_fpr): Same.
3830         (*subdf3_fpr): Same.
3831         (*muldf3_fpr): Same.
3832         (*divdf3_fpr): Same.
3833
3834         * config/rs6000/spe.md ("spe_extendsfdf2"): Remove FIXME comment.
3835         ("spe_fix_truncdfsi2"): Same.
3836         (spe_floatunssidf2): Same.
3837         (spe_floatsidf2): Same.
3838
3839 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
3840
3841         PR c/18322
3842         * c-common.c (fname_decl): Don't use line number of decl in
3843         diagnostic.
3844
3845 2004-11-09  Ulrich Weigand  <uweigand@de.ibm.com>
3846
3847         * config/s390/s390-protos.h (s390_pool_operand): Remove.
3848         * config/s390/s390.c (s390_pool_operand): Likewise.
3849         (s390_extra_constraint_str): Handle 'B' constraints.
3850         * config/s390/s390.h (CONSTRAINT_LEN): Handle 'B' constraints.
3851         * config/s390/s390.md: Document 'B' constraints.
3852         ("*cmpdi_cct", "*cmpsi_cct"): Use 'B' constraint instead of
3853         s390_pool_operand to prevent insns with two literal pool
3854         references.  Make pattern commutative.
3855         ("*cmpdi_ccu", "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use
3856         'B' constraint instead of s390_pool_operand.
3857
3858 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
3859
3860         * tree-cfg.c (create_bb): Remove unnecessary memset.
3861
3862 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
3863
3864         * tree-ssa-threadupdate.c (copy_phis_to_block): Remove.
3865         (thread_block): Call flush_pending_stmt instead of
3866         copy_phis_to_block.
3867
3868 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
3869
3870         * loop-iv.c (iv_number_of_iterations): Make it static.
3871         * cfgloop.h: Remove the corresponding prototype.
3872
3873 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
3874
3875         * function.c (combine_temp_slots, assign_parms,
3876         expand_pending_sizes): Make them static.
3877         * tree.h: Remove the corresponding prototypes.
3878
3879 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
3880
3881         * emit-rtl.c (copy_most_rtx): Remove.
3882         * rtl.h: Remove the corresponding prototype.
3883
3884 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
3885
3886         * cfgloop.c (flow_loops_update): Remove.
3887         * cfgloop.h: Remove the corresponding prototype.
3888
3889 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
3890
3891         * conflict.c (mark_reg, conflict_graph_compute): Remove.
3892         * basic-block.h: Remove the prototype for
3893         conflict_graph_compute.
3894
3895 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
3896
3897         * tree-if-conv.c (add_to_dst_predicate_list): Change the
3898         second argument to basic_block.
3899         (tree_if_convert_cond_expr): Update call sites.
3900
3901 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
3902
3903         * fold-const.c (pedantic_non_lvalue): Make it static.
3904         * tree.h: Remove the corresponding prototype.
3905
3906 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
3907
3908         * optabs.c (prepare_operand): Make it static.
3909         * optabs.h: Remove the corresponding prototype.
3910
3911 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
3912
3913         * reload1.c (reloads_conflict, gen_reload): Make them static.
3914         * reload.h: Remove the corresponding prototypes.
3915
3916 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
3917
3918         * reload.c (refers_to_mem_for_reload_p,
3919         refers_to_regno_for_reload_p): Make them static.
3920         * reload.h: Remove the corresponding prototypes.
3921
3922 2004-11-09  James A. Morrison  <phython@gcc.gnu.org>
3923             Eric Botcazou  <ebotcazou@libertysurf.fr>
3924
3925         PR target/18230
3926         * doc/md.texi (SPARC constraints): Document 'Y' constraint.
3927         * config/sparc/sparc-modes.def: Add vector modes of 4 and 8 bytes.
3928         * config/sparc/sparc.c (sparc_vector_mode_supported_p): New function.
3929         (TARGET_VECTOR_MODE_SUPPORTED_P): Set to sparc_vector_mode_supported_p.
3930         (fp_zero_operand): Accept MODE_VECTOR_INT modes.
3931         (input_operand): Accept CONST_VECTOR with MODE_VECTOR_INT modes.
3932         (sparc_cannot_force_const_mem): Return false for CONST_VECTOR.
3933         (sparc_init_modes): Set sparc_mode_class to SF_MODE or DF_MODE for
3934         MODE_VECTOR_INT modes.
3935         (sparc_extra_constraint_check): Add new constraint 'Y'.
3936         * config/sparc/sparc.h: Define UNITS_PER_SIMD_WORD to 8 for TARGET_VIS.
3937         * config/sparc/sparc.md (V32): New mode macro for 32-bit modes.
3938         (V64): New mode macro for 64-bit modes.
3939         (movsf): Use V32 for mode instead of SF.
3940         (movsf_insn_vis): Use V32 for mode instead of SF.  Add 'Y' constraint
3941         alongside 'G' constraint.
3942         (movdf): Use V64 for mode instead of DF.
3943         (movdf_insn_v9only_vis, modf_insn_sp64_vis): Use V64 for mode instead
3944         of DF.  Add 'Y' constraint alongside 'G' constraint.
3945         (multi-isn and misaligned mems DFmode splitters): Use V64 for mode
3946         instead of DF.
3947
3948 2004-11-09  Ulrich Weigand  <uweigand@de.ibm.com>
3949
3950         * config/s390/s390.c (s390_select_ccmode): Return CCAPmode for
3951         integer NEG and ABS.
3952         * config/s390/s390.md ("*negdi2_64"): Fix op_type attribute.
3953         ("*negdi2_31"): Reimplement using a splitter.
3954         ("*negdi2_cc", "*negdi2_cconly"): New insns.
3955         ("*negdi2_sign", "*negdi2_sign_cc"): Likewise.
3956         ("*negsi2_cc", "*negsi2_cconly"): Likewise.
3957         ("*negdf2_cc", "*negdf2_cconly"): Likewise.
3958         ("*negsf2_cc", "*negsf2_cconly"): Likewise.
3959         ("*absdi2_cc", "*absdi2_cconly"): New insns.
3960         ("*absdi2_sign", "*absdi2_sign_cc"): Likewise.
3961         ("*abssi2_cc", "*abssi2_cconly"): Likewise.
3962         ("*absdf2_cc", "*absdf2_cconly"): Likewise.
3963         ("*abssf2_cc", "*abssf2_cconly"): Likewise.
3964         ("*negabsdi2_cc", "*negabsdi2_cconly"): New insns.
3965         ("*negabsdi2_sign", "*negabsdi2_sign_cc"): Likewise.
3966         ("*negabssi2_cc", "*negabssi2_cconly"): Likewise.
3967         ("*negabsdf2_cc", "*negabsdf2_cconly"): Likewise.
3968         ("*negabssf2_cc", "*negabssf2_cconly"): Likewise.
3969
3970 2004-11-09  Ulrich Weigand  <uweigand@de.ibm.com>
3971
3972         * config/s390/s390.c (s390_canonicalize_comparison): Reverse condition
3973         when eliminating an UNSPEC_CMPINT.
3974         (s390_secondary_input_reload_class): Fix test for CC register reload.
3975         (s390_secondary_output_reload_class): Likewise.
3976         (s390_expand_cmpmem): Swap operands.  Use gen_cmpint.
3977         * config/s390/s390.md ("*cmpint_si", "*cmpint_di"): Remove.
3978         ("cmpint", "*cmpint_cc", "*cmpint_sign", "*cmpint_sign_cc"): New
3979         insn patterns with splitters.
3980
3981 2004-11-09  David Edelsohn  <edelsohn@gnu.org>
3982
3983         * config/rs6000/rs6000.c (rs6000_rtx_costs): Add EQ, GTU, and LTU.
3984         * config/rs6000/rs6000.md (sCC): Split GTU and LTU patterns.
3985
3986 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
3987
3988         * tree-phinodes.c (phi_reverse): New.
3989         * tree-cfg.c (tree_make_forwarder_block, tree_duplicate_bb):
3990         Use it.
3991         * tree-flow.h: Add a prototype for phi_reverse.
3992
3993 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
3994
3995         * tree-ssa-loop-ivopts.c: Fix a comment typo.
3996
3997 2004-11-09  James A. Morrison  <phython@gcc.gnu.org>
3998
3999         PR pch/14940
4000         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __sparc__
4001         definitions.
4002
4003 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
4004
4005         * builtins.c, c-common.c, c-decl.c, c-format.c: Say "argument"
4006         instead of "arg" in diagnostics.
4007
4008 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
4009
4010         * builtins.c, c-common.c, c-decl.c, c-format.c, c-format.h,
4011         c-parse.in, c-pch.c, c-pragma.c, collect2.c, final.c, gcc.c,
4012         gcov.c, opts.c, pretty-print.h, protoize.c, reg-stack.c, rtl.c,
4013         tlink.c, config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
4014         config/avr/avr.c, config/c4x/c4x.c, config/darwin.c,
4015         config/frv/frv.c, config/h8300/h8300.c, config/i386/i386.c,
4016         config/i386/winnt.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
4017         config/iq2000/iq2000.c, config/m32r/m32r.c,
4018         config/m68hc11/m68hc11.c, config/m68k/m68k.c, config/m68k/m68k.h,
4019         config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.c,
4020         config/ns32k/ns32k.c, config/rs6000/host-darwin.c,
4021         config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
4022         config/sh/symbian.c, config/stormy16/stormy16.c,
4023         config/v850/v850.c: Avoid "`" as left quote, using "'" or %q, %<
4024         and %> as appropriate.  Use %' as apostrophe in diagnostics where
4025         applicable.  Use %< and %> in place of '' quotes where applicable.
4026         Use %qs in place of %<%s%>.  Consistently quote __builtin function
4027         names.
4028
4029 2004-11-09  Hans-Peter Nilsson  <hp@bitrange.com>
4030
4031         * gdbinit.in (pbb, pbm): New macros.
4032
4033 2004-11-08 Jeff Law  <law@redhat.com>
4034
4035         * cfg.c (redirect_edge_succ_nodup): Use find_edge rather than
4036         implementing it inline.
4037
4038         * cfganal.c (find_edge): Search pred->succs or succ->preds,
4039         whichever is shorter.
4040
4041 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4042
4043         * passes.c (rest_of_handle_jump): Remove dead code.
4044
4045 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4046
4047         * tree-cfg.c (thread_jumps): Speed up by keeping a pointer to
4048         the last used element in the worklist.
4049
4050 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4051
4052         * tree-inline.c (remap_save_expr): Make it static.
4053         * tree-inline.h: Remove the corresponding prototype.
4054
4055 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4056
4057         * tree-ssa-loop-niter.c (upper_bound_in_type,
4058         lower_bound_in_type): Make them static.
4059         * tree.h: Remove the corresponding prototypes.
4060
4061 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4062
4063         * tree-ssa-live.c (tpa_init, pop_best_coalesce): Make them
4064         static.
4065         * tree-ssa-live.h: Remove the corresponding prototypes.
4066
4067 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4068
4069         * tree-if-conv.c (tree_if_conversion): Make it static.
4070         * tree-flow.h: Remove the corresponding prototype.
4071
4072 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4073
4074         * tree-ssa-operands.c (build_ssa_operands): Make it static.
4075         * tree-flow.h: Remove the corresponding prototype.
4076
4077 2004-11-08  Andrew Pinski  <pinskia@physics.uc.edu>
4078
4079         PR tree-opt/18299
4080         * tree-inline.c (copy_body_r): Change "t = t" to empty
4081         statement instead of "t".
4082
4083 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4084
4085         * modulo-sched.c (create_partial_schedule,
4086         free_partial_schedule, reset_partial_schedule,
4087         ps_add_node_check_conflicts, rotate_partial_schedule): Make
4088         them static.
4089
4090 2004-11-08  Richard Henderson  <rth@redhat.com>
4091
4092         * expmed.c (extract_force_align_mem_bit_field): Correct handling at
4093         the end of a page.
4094
4095 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4096
4097         * sched-deps.c (add_insn_mem_dependence): Make it static.
4098         * sched-int.h: Remove the corresponding prototypes.
4099
4100 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4101
4102         * flow.c (allocate_bb_life_data): Make it static.
4103         * basic-block.h: Remove the corresponding prototype.
4104
4105 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4106
4107         * calls.c (split_complex_values, split_complex_types): Make
4108         them static.
4109         * expr.h: Remove the corresponding prototypes.
4110
4111 2004-11-08  Richard Earnshaw  <rearnsha@arm.com>
4112
4113         * arm.c (arm_handle_notshared_attribute): Wrap declaration and use
4114         with #if TARGET_DLLIMPORT_DECL_ATTRIBUTES.
4115
4116 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4117
4118         * tree-if-conv.c (tree_if_convert_cond_expr): Remove two "if"
4119         statements that always trigger.
4120
4121 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4122
4123         * tree-cfg.c, tree-if-conv.c, tree-into-ssa.c,
4124         tree-scalar-evolution.c, tree-ssa-loop-im.c,
4125         tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa.c,
4126         tree-vectorizer.c: Replace TREE_CHAIN with PHI_CHAIN where
4127         appropriate.
4128
4129 2004-11-08  Ben Elliston  <bje@au.ibm.com>
4130
4131         * cgraph.h (cgraph_calls_p): Remove.
4132         * cgraph.c (cgraph_calls_p): Likewise.
4133
4134         * varray.h (varray_copy): Remove.
4135         * varray.c (varray_copy): Likewise.
4136
4137 2004-11-07  Andrew Pinski  <pinskia@physics.uc.edu>
4138
4139         PR target/18269
4140         * config/darwin.c (machopic_indirect_data_reference):
4141         Call gen_macho_high and gen_macho_low instead of
4142         checking the mode and calling gen_macho_high_di directly.
4143         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
4144         * config/rs6000/rs6000.md: Move most of TARGET_MACHO expand/insns
4145         to darwin.md.
4146         (movdf_low, movsf_low, movsf_low_st, movsi_low, macho_correct_pic,
4147         load_macho_picbase, macho_low, macho_high): Removed.
4148         (builtin_setjmp_receiver): Call gen_macho_high and
4149         gen_macho_low instead of checking the mode and calling
4150         gen_macho_high_di directly.
4151         * config/rs6000/darwin.md (load_macho_picbase_di): Use the MD constant.
4152         (movdf_low_si, movsf_low_si, movsf_low_st_si, movsi_low_st):
4153         Moved from rs6000.md.
4154         (macho_high): New expander.
4155         (macho_high_si): Renamed version of macho_high from rs6000.md.
4156         (macho_low): New expander.
4157         (macho_low_si): Renamed version of macho_low from rs6000.md.
4158         (load_macho_picbase): New expander.
4159         (load_macho_picbase_si): Renamed version of load_macho_picbase
4160         from rs6000.md.
4161         (macho_correct_pic): New expander.
4162         (macho_correct_pic_si): Renamed version of macho_correct_pic
4163         from rs6000.md.
4164
4165 2004-11-07  Joseph S. Myers  <joseph@codesourcery.com>
4166
4167         * c-decl.c (finish_struct): Use complete sentences for diagnostic
4168         for structures or unions with no members or named members.
4169
4170 2004-11-07  Joseph S. Myers  <joseph@codesourcery.com>
4171
4172         * c-typeck.c (build_unary_op): Replace unreachable diagnostic for
4173         taking address of bit-field by assertion.
4174
4175 2004-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
4176
4177         * config/s390/s390.md (attribute "op_type"): Default to "NN".
4178         (attribute "atype"): Default to "agen".
4179         (attribute "length"): Default to 6.
4180         (define_asm_attibutes): Remove.
4181         ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
4182         "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf",
4183         "*clc", "*mvc", "*nc", "*oc", "*xc", "*xc_zero"):
4184         Do not set type attribute to "cs" where already default.
4185         ("*cmpint_si", "*cmpint_di", "fix_truncdfsi2_ibm", "floatsidf2_ibm",
4186         "*negdi2_31"):
4187         Do not set type attribute to "other" where already default.
4188         ("movti", "*movdi_64", "*movdi_31", "*movdf_31",
4189         "*strlendi", "*strlensi",
4190         "*movmem_long_64", "*movmem_long_31",
4191         "*clrmem_long_64", "*clrmem_long_31",
4192         "*cmpmem_long_64", "*cmpmem_long_31",
4193         "*cmpint_si", "*cmpint_di",
4194         "addti3", "*adddi3_31z", "*adddi3_31",
4195         "subti3", "*subdi3_31z", "*subdi3_31", "*negdi2_31",
4196         "*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg",
4197         "fix_truncdfsi2_ibm", "floatsidf2_ibm", "extendsfdf2_ibm",
4198         "*pool_entry", "pool_align", "pool_section_start",
4199         "pool_section_end", "main_pool", "reload_base_31", "pool"):
4200         Do not set op_type attribute to "NN" where already default.
4201         ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
4202         "*zero_extendqisi2_31", "*zero_extendqihi2_31",
4203         "fix_truncdfsi2_ibm", "floatsidf2_ibm"):
4204         Do not set atype attribute to "agen" where already default.
4205         ("*movmem_short", "*clrmem_short", "*cmpmem_short"): Don't set op_type.
4206
4207 2004-11-06  Richard Sandiford  <rsandifo@redhat.com>
4208
4209         * config/mips/t-iris6 (tp-bit.c): Fix target filename.
4210
4211 2004-11-06  Richard Sandiford  <rsandifo@redhat.com>
4212
4213         PR target/16830
4214         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define the
4215         R3000 and R4000 macros on IRIX.
4216
4217 2004-11-06  Andreas Schwab  <schwab@suse.de>
4218
4219         PR target/16286
4220         * config/rs6000/altivec.h: Replace bool by __bool and pixel by
4221         __pixel.
4222
4223 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
4224
4225         * tree-ssa-copyrename.c (rename_ssa_copies): Make it static.
4226
4227 2004-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
4228
4229         * config/s390/2064.md ("z_int", "z_agen"): Ensure the condition
4230         matches no insns already matched by other reservations.
4231         * config/s390/2084.md ("x_int", "x_agen"): Ensure the condition
4232         matches no insns already matched by other reservations.
4233         ("x_ss"): Remove, replace by ...
4234         ("x_cs"): ... this new reservation.  Check type instead of op_type.
4235         Update bypasses to use x_cs instead of x_ss.
4236         ("x_nn"): Remove, replace by ...
4237         ("x_other"): ... this new reservation.  Check type instead of op_type.
4238         Add x_other and x_branch to bypasses.
4239         ("x_vs"): New reservation.
4240         * config/s390/s390.md (attribute "type"): Default according to op_type.
4241         ("*execute"): Set type to "cs".
4242
4243 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
4244
4245         * fold-const.c (non_lvalue): Don't construct NON_LVALUE_EXPR
4246         if we are in GIMPLE.
4247
4248 2004-11-06  Hans-Peter Nilsson  <hp@bitrange.com>
4249
4250         PR rtl-optimization/17933
4251         * rtlanal.c (dead_or_set_regno_p): Break out common code to...
4252         (covers_regno_p): New function.  Handle SETs of PARALLEL,
4253         and defer the rest to...
4254         (covers_regno_no_parallel_p): New function.
4255
4256 2004-11-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
4257
4258         * config/sparc/sparc.c (function_arg_record_value_1): Skip
4259         fields with zero length.
4260         (function_arg_record_value_2): Likewise.
4261         (function_arg_record_value_3): Use smallest_mode_for_size
4262         instead of mode_for_size.
4263         (function_arg_union_value): Return naked register for unions
4264         with zero length.
4265
4266 2004-11-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
4267
4268         * config/sparc/sparc.c (scan_record_type): Handle vector types.
4269         (function_arg_slotno): Handle vector types specially.
4270         (function_arg_record_value_1): Split fields with vector type and
4271         BLKmode into their subparts.
4272         (function_arg_record_value_2): Likewise.  Be prepared to handle
4273         more than 2 registers per field.
4274         (function_arg_union_value): Increment regno inside the loop.
4275         (function_arg_vector_value): New function.
4276         (function_arg): Use it to split fields with vector type and
4277         BLKmode into their subparts and build a PARALLEL.  Treat
4278         other vector types like floats.
4279         (function_value): Likewise.
4280         (sparc_pass_by_reference): Handle vector types.
4281         (sparc_return_in_memory): Likewise.
4282
4283 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
4284
4285         * tree-cfg.c (find_taken_edge_cond_expr): Remove an "if"
4286         statement that never triggers.
4287
4288 2004-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
4289
4290         * config/s390/2064.md ("z_o2", "z_o3"): Remove.
4291         * config/s390/2084.md ("x_o2", "x_o3"): Remove.
4292         ("x_fdivd"): Use also for fsqrtd type.
4293         ("x_fdivs"): Use also for fsqrts type.
4294         * config/s390/s390.md (attribute "type"): Remove "o2" and "o3" types.
4295         ("fix_truncdfsi2_ieee"): Set type to "ftoi".
4296         ("fix_truncdfsi2_ibm"): Set type to "other".
4297         ("floatdidf2", "floatdisf2"): Do not clobber CC.
4298         ("floatsidf2", "floatsidf2_ieee"): Likewise.
4299         ("floatsisf2", "floatsisf2_ieee"): Likewise.
4300         ("truncdfsf2", "truncdfsf2_ieee"): Only allow "register_operand".
4301         ("truncdfsf2_ibm"): Only allow "nonimmediate_operand".  Use LER
4302         instead of LRER.
4303         ("extendsfdf2_ibm"): Do not set atype.  Set type to "floads".
4304         ("sqrtdf2"): Set type to "fsqrtd".
4305         ("sqrtsf2"): Set type to "fsqrts".
4306
4307 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
4308
4309         * tree-phinodes.c (remove_all_phi_nodes_for): Speed up using a
4310         pointer to the last PHI node in the new PHI chain.
4311
4312 2004-11-06  Kaz Kojima  <kkojima@gcc.gnu.org>
4313
4314         * config/sh/sh.c (prepare_move_operands): Emit a use of r12
4315         for non-PIC TLS_MODEL_INITIAL_EXEC case.
4316
4317 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
4318
4319         * expmed.c: Fix a comment typo.
4320
4321 2004-11-06  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
4322
4323         PR target/18106
4324         * config/i386/cygming.h
4325         [HAVE_GAS_WEAK] (ASM_WEAKEN_LABEL): Macro defined.
4326
4327 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
4328
4329         * config/sh/sh4a.md: Fix copyright.
4330
4331 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
4332
4333         * config/rs6000/darwin.md, config/sh/sh4a.md: Replace GNU CC
4334         with GCC.
4335
4336 2004-11-05  David Edelsohn  <edelsohn@gnu.org>
4337
4338         * config/rs6000/rs6000.md (scc patterns): Replace subfc with subf
4339         when carry not used.  Suggested by Torbjorn Granlund.
4340
4341         * config/rs6000/rs6000.c (rs6000_emit_move): Don't force_reg
4342         operand[1] unnecessarily.  Suggested by Eric Christopher.
4343         (rs6000_adjust_cost): Increase latency of store to wider load.
4344         (rs6000_rtx_costs): mulli only allows 16-bit constants.
4345
4346 2004-11-05  Stan Shebs  <shebs@apple.com>
4347
4348         * config/rs6000/rs6000.c (machopic_output_stub): Output
4349         ldu instead of lwzu for 64-bit stubs.
4350
4351 2004-11-05  Richard Henderson  <rth@redhat.com>
4352
4353         * config/alpha/alpha.c (alpha_expand_unaligned_load): Special case
4354         size 2 with BWX.
4355         (alpha_expand_unaligned_store): Likewise.
4356
4357 2004-11-05  Richard Henderson  <rth@redhat.com>
4358
4359         * expmed.c (extract_force_align_mem_bit_field): New.
4360         (extract_split_bit_field): Call it.
4361
4362 2004-11-05  Richard Henderson  <rth@redhat.com>
4363
4364         * ia64.md (UNSPEC_SHRP): New.
4365         (dshift_count_operand): New.
4366         (ashrti3, ashrti3_internal, lshrti3, lshrti3_internal, shrp): New.
4367         * ia64.c (rtx_needs_barrier): Handle UNSPEC_SHRP.
4368
4369 2004-11-05  Joseph S. Myers  <joseph@codesourcery.com>
4370
4371         * c-typeck.c (output_init_element): Return early if value is
4372         error_mark_node.
4373
4374 2004-11-05  James E Wilson  <wilson@specifixinc.com>
4375
4376         * invoke.texi (-fno-guess-branch-probability): Rewrite.
4377
4378         * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC_GR_SPILL): Change
4379         1 to UNSPEC_GR_SPILL.
4380
4381 2004-11-05  Andreas Krebbel  <krebbel1@de.ibm.com>
4382
4383         * config/s390/s390.c (s390_fixed_condition_code_regs): New function.
4384         (TARGET_FIXED_CONDITION_CODE_REGS): Macro defined.
4385
4386 2004-11-05  Nathan Sidwell  <nathan@codesourcery.com>
4387
4388         * bitmap.h (enum bitmap_bits): Remove.
4389         (bitmap_operation): Remove.
4390         (bitmap_and, bitmap_and_into, bitmap_and_compl,
4391         bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
4392         bitmap_xor_into): Prototype.
4393         * bitmap.c (bitmap_elt_insert_after, bitmap_elt_clear_from): New.
4394         (bitmap_operation): Remove.
4395         (bitmap_and, bitmap_and_into, bitmap_and_compl,
4396         bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
4397         bitmap_xor_into): New.
4398         (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Adjust.
4399
4400         PR tree-optimization/18307
4401         * tree-ssa-alias.c (merge_pointed_to_info): Protected against DEST
4402         and ORIG being the same node.
4403
4404 2004-11-04  Geoffrey Keating  <geoffk@apple.com>
4405
4406         * Makefile.in (distclean): Don't delete nonexistent fixinc/ directory.
4407         (install-mkheaders): Install the version built for the
4408         host, not for the build machine.
4409         * configure.ac: Always run fixincludes.
4410         (all_outputs): Remove mkheaders.
4411         * configure: Regenerate.
4412         * fixinc.in: Move to fixincludes/.
4413         * mkfixinc.sh: Likewise.
4414         * mkheaders.in: Likewise.
4415         * README-fixinc: Likewise.
4416
4417 2004-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
4418
4419         PR target/18263
4420         * config/arc/lib1funcs.asm (___umulsidi3): Change use of cmp to the
4421         equivalent on the A4.
4422
4423 2004-11-05  Joseph S. Myers  <joseph@codesourcery.com>
4424
4425         * doc/c-tree.texi, doc/cfg.texi, doc/contrib.texi, doc/cpp.texi,
4426         doc/cppopts.texi, doc/extend.texi, doc/fragments.texi,
4427         doc/frontends.texi, doc/gcov.texi, doc/hostconfig.texi,
4428         doc/implement-c.texi, doc/install.texi, doc/invoke.texi,
4429         doc/libgcc.texi, doc/md.texi, doc/passes.texi,
4430         doc/portability.texi, doc/rtl.texi, doc/sourcebuild.texi,
4431         doc/standards.texi, doc/tm.texi, doc/tree-ssa.texi,
4432         doc/trouble.texi: Correct end-of-sentence markup and markup of
4433         "etc.", "e.g." and "i.e.".  Use @code in various places where
4434         appropriate.
4435
4436 2004-11-05  Joseph S. Myers  <joseph@codesourcery.com>
4437
4438         * doc/c-tree.texi, doc/cfg.texi, doc/extend.texi, doc/gty.texi,
4439         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/passes.texi,
4440         doc/rtl.texi, doc/tm.texi, doc/tree-ssa.texi: Remove trailing
4441         whitespace.
4442
4443 2004-11-04  Mark Mitchell  <mark@codesourcery.com>
4444
4445         * config/arm/arm.c (arm_handle_notshared_attribute): New function.
4446         * doc/extend.texi: Document "notshared" attribute.
4447
4448 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4449
4450         * tree-phinodes.c (make_phi_node): Make it static.
4451         * tree.h: Remove the prototypes for make_phi_node.
4452
4453 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4454
4455         * stmt.c (expand_asm, expand_asm_operands): Make them static.
4456         * tree.h: Remove the prototypes for expand_asm and
4457         expand_asm_operands.
4458
4459 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4460
4461         * passes.c (rest_of_compilation): Make it static.
4462         * toplev.h: Remove the prototype for rest_of_compilation.
4463
4464 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4465
4466         * jump.c (cleanup_barriers): Use delete_insn instead of
4467         delete_barrier.
4468         (delete_barrier): Remove.
4469         * rtl.h: Remove the corresponding prototype.
4470
4471 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4472
4473         * expr.c (mostly_zero_p): Make it static.
4474         * tree.h: Remove the prototype for mostly_zeros_p.
4475
4476 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4477
4478         * cfgrtl.c (force_nonfallthru_and_redirect): Make it static.
4479
4480 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4481
4482         * builtins.c (expand_builtin_return_addr,
4483         expand_builtin_longjmp, expand_builtin_trap): Make them static.
4484         * expr.h: Remove the prototypes for expand_builtin_longjmp and
4485         expand_builtin_trap.
4486         * tree.h: Remove the prototype for expand_builtin_return_addr.
4487
4488 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4489
4490         * tree-cfg.c (find_taken_edge): Reject VAL begin NULL.
4491         * tree-ssa-ccp.c (visit_cond_stmt): Don't call find_taken_edge
4492         with VAL being NULL.
4493
4494 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4495
4496         * cfghooks.c (delete_basic_block): Remove code to truncate
4497         edge vectors.
4498
4499 2004-11-04  Andrew Pinski  <pinskia@physics.uc.edu>
4500
4501         * flow.c (init_propagate_block_info): Change the type of i to
4502         unsigned.
4503
4504 2004-11-04  Ulrich Weigand  <uweigand@de.ibm.com>
4505
4506         PR tree-optimization/18184
4507         * c-typeck.c (comptypes): Do not treat pointers of different
4508         modes or alias-all flags as equivalent.
4509         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Likewise.
4510
4511 2004-11-04  Joseph S. Myers  <joseph@codesourcery.com>
4512
4513         * doc/gty.texi, doc/makefile.texi, doc/sourcebuild.texi: Don't
4514         reference specific C parser files in examples.
4515
4516 2004-11-04  Richard Sandiford  <rsandifo@redhat.com>
4517
4518         PR target/15342
4519         * regrename.c (scan_rtx): Treat the destinations of SETs and CLOBBERs
4520         as OP_INOUT if the instruction is predicated.
4521
4522 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4523
4524         * bitmap.h: Fix a comment typo.  Follow spelling conventions.
4525         * tree-vectorizer.c: Fix a comment typo.
4526
4527 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4528
4529         * sdbout.c (SDB_GENERATE_FAKE): Remove.
4530         (gen_fake_label): Don't use SDB_GENERATE_FAKE.
4531         * system.h: Poison SDB_GENERATE_FAKE.
4532         * doc/tm.texi (SDB_GENERATE_FAKE): Remove.
4533
4534 2004-11-04  Ulrich Weigand  <uweigand@de.ibm.com>
4535
4536         * config/s390/s390.md ("*addsi3_sign"): Use canonical RTL.
4537
4538 2004-11-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
4539
4540         PR other/18277
4541         * gthr-posix.h (__gthread_recursive_mutex_init_function): Revert
4542         2004-10-29 patch
4543
4544 2004-11-04  Nathan Sidwell  <nathan@codesourcery.com>
4545
4546         * predict.c (propagate_freq): Make bitno unsigned. Move
4547         npredecessors update out of loop.
4548
4549         * bitmap.h (bitmap_iterator): Remove word_bit and bit
4550         fields. Rename others.
4551         (bmp_iter_common_next_1, bmp_iter_single_next_1,
4552         bmp_iter_single_init, bmp_iter_end_p, bmp_iter_single_next,
4553         bmp_iter_and_not_next_1, bmp_iter_and_not_init,
4554         bmp_iter_and_not_next, bmp_iter_and_next_1, bmp_iter_and_init,
4555         bmp_iter_and_next): Remove.
4556         (bmp_iter_set_init, bmp_iter_and_init, bmp_iter_and_compl_init,
4557         bmp_iter_next, bmp_iter_set, bmp_iter_and, bmp_iter_and_compl):
4558         New.
4559         (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_IN_BITMAP,
4560         EXECUTE_IF_AND_COMPL_IN_BITMAP): Adjust.
4561
4562         * bitmap.h (bitmap_a_or_b, bitmap_a_and_b): Remove.
4563         * df.c (dataflow_set_a_op_b): Use bitmap_and, bitmap_ior,
4564         bitmap_and_into, bitmap_ior_into as appropriate.
4565         * except.c (remove_eh_handler): Likewise.
4566         * global.c (modify_bb_reg_pav, make_accurate_live_analysis): Likewise.
4567         * tree-dfa.c (mark_new_vars_to_rename): Likewise.
4568         * tree-ssa-alias.c (merge_pointed_to_info): Likewise.
4569         * tree-ssa-live.h (live_merge_and_clear): Likewise.
4570         * tree-ssa-loop-ivopts.c (find_best_candidate, try_add_cand_for):
4571         Likewise.
4572
4573         * bitmap.c (bitmap_print): Make bitno unsigned.
4574         * bt-load.c (clear_btr_from_live_range,
4575         btr_def_live_range): Likewise.
4576         * caller-save.c (save_call_clobbered_regs): Likewise.
4577         * cfganal.c (compute_dominance_frontiers_1): Likewise.
4578         * cfgcleanup.c (thread_jump): Likewise.
4579         * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
4580         * conflict.c (conflict_graph_compute): Likewise.
4581         * ddg.c (add_deps_for_use): Likewise.
4582         * df.c (df_refs_update): Likewise.
4583         * except.c (remove_eh_handler): Likewise.
4584         * flow.c (verify_local_live_at_start, update_life_info,
4585         initialize_uninitialized_subregs, propagate_one_insn,
4586         free_propagate_block_info, propagate_block, find_use_as_address,
4587         reg_set_to_hard_reg_set): Likewise.
4588         * gcse.c (clear_modify_mem_tables): Likewise.
4589         * global.c (global_conflicts, build_insn_chain): Likewise.
4590         * ifcvt.c (dead_or_predicable): Likewise.
4591         * local-alloc.c (update_equiv_regs): Likewise.
4592         * loop.c (load_mems): Likewise.
4593         * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs):
4594         Likewise.
4595         * ra-rewrite.c (reloads_to_loads, rewrite_program2, actual_spill):
4596         Likewise.
4597         * reload1.c (order_regs_for_reload, finish_spills): Likewise.
4598         * sched-deps.c (sched_analyze_insn, free_deps): Likewise.
4599         * sched-rgn.c (propagate_deps
4600         * tree-cfg.c (tree_purge_all_dead_eh_edges): Likewise.
4601         * tree-dfa.c (dump_dfa_stats
4602         tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
4603         insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags):
4604         Likewise.
4605         * tree-outof-ssa.c (coalesce_ssa_name, coalesce_vars,
4606         free_temp_expr_table, find_replaceable_exprs): Likewise.
4607         * tree-sra.c (scan_function, scalarize_parms): Likewise.
4608         * tree-ssa-alias.c (init_alias_info,
4609         compute_points_to_and_addr_escape,
4610         compute_flow_sensitive_aliasing, maybe_create_global_var): Likewise.
4611         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Likewise.
4612         * tree-ssa-live.c (new_tree_live_info, live_worklist,
4613         calculate_live_on_entry, calculate_live_on_exit, compare_pairs,
4614         sort_coalesce_list, build_tree_conflict_graph, dump_live_info
4615         tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
4616         tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
4617         add_call_read_ops): Likewise.
4618         * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Likewise.
4619         * tree-ssa-live.h (num_var_partitions): Return unsigned.
4620
4621 2004-11-03  Dorit Naishlos  <dorit@il.ibm.com>
4622
4623         PR tree-optimization/18009
4624         * tree-vectorizer.h (enum dr_alignment_support): New type.
4625         (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): Removed.
4626         (LOOP_UNALIGNED_DR): replaced with LOOP_VINFO_UNALIGNED_DR and holds a
4627         single data_reference (instead of a varray of references).
4628         * tree-vectorizer.c (new_loop_vec_info): Likewise.
4629         (vect_gen_niters_for_prolog_loop): Likewise.
4630         (vect_update_inits_of_drs): Likewise.
4631
4632         (vect_update_inits_of_drs): Setting of DR_MISALIGNMENT moved to
4633         vect_enhance_data_refs_alignment.
4634         (vect_do_peeling_for_alignment): Likewise.
4635         (vect_enhance_data_refs_alignment): Decide if and by how much to peel;
4636         this functionality used to be in vect_analyze_data_refs_alignment.
4637         Also update DR_MISALIGNMENT due to peeling; this functionality used to
4638         be in vect_update_inits_of_drs and vect_do_peeling_for_alignment).
4639         (vect_analyze_data_refs_alignment): Decision on whether and by how much
4640         to peel moved to vect_enhance_data_refs_alignment. Call
4641         vect_supportable_dr_alignment.
4642
4643         (vect_compute_data_ref_alignment): Set STMT_VINFO_VECTYPE.
4644         (vect_compute_data_refs_alignment): Return bool. Consider return value
4645         of vect_compute_data_ref_alignment and return true/false accordingly.
4646         (vect_enhance_data_refs_alignment): Consider return value of
4647         vect_compute_data_refs_alignment and return true/false accordingly.
4648
4649         (vect_supportable_dr_alignment): New function.
4650         (vectorizable_store): Call vect_supportable_dr_alignment.
4651         (vectorizable_load): Call vect_supportable_dr_alignment. Alignment
4652         support checks moved from here to vect_supportable_dr_alignment.
4653
4654         (vect_transform_loop): Avoid 80 columns overflow.
4655
4656 2004-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
4657
4658         * timevar.c (timevar_enable): Change from
4659         static.
4660         (timevar_push): Rename to ...
4661         (timevar_push_1): this and remove the
4662         enabled check.
4663         (timevar_pop): Rename to ...
4664         (timevar_pop_1): this and remove the
4665         enabled check.
4666         * timevar.h (POP_TIMEVAR_AND_RETURN): Use do/while loops.
4667         (timevar_pop): New macro.
4668         (timevar_push): New macro.
4669         (timevar_enable): Declare.
4670
4671 2004-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
4672
4673         * config/darwin.h (REAL_LIBGCC_SPEC): Define to use shared
4674         libgcc for shared libraries.
4675
4676 2004-11-03  Ulrich Weigand  <uweigand@de.ibm.com>
4677
4678         * config/s390/s390-protos.h (s390_split_access_reg): Add prototype.
4679         * config/s390/s390.c (s390_split_access_reg): New function.
4680         (regclass_map): Add access registers.
4681         (get_thread_pointer): Use access register instead of UNSPEC_TP.
4682         * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Set to 38.
4683         (ACCESS_REGNO_P, ACCESS_REG_P): New macros.
4684         (TP_REGNUM): New define.
4685         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
4686         REG_ALLOC_ORDER): Add access registers.
4687         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
4688         CANNOT_CHANGE_MODE_CLASS): Support access registers.
4689         (enum reg_class): Add ACCESS_REGS.
4690         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
4691         (REG_CLASS_FROM_LETTER): Add 't' constraint.
4692         (REGISTER_NAMES): Add access registers.
4693         * config/s390/s390.md (UNSPEC_TP): Remove.
4694         ("*movdi_64"): Add access register alternatives.  Provide splitters
4695         to split DImode access register <-> GPR moves into SImode moves.
4696         ("*movsi_zarch", "*movsi_esa"): Add access register alternatives.
4697         ("movstrictsi"): Likewise.
4698         ("get_tp_64", "get_tp_31"): Reimplement using access registers.
4699         ("set_tp_64", "set_tp_31"): Likewise.
4700         ("*set_tp"): New insn.
4701
4702 2004-11-03  Kazu Hirata  <kazu@cs.umass.edu>
4703
4704         * tree-phinodes.c (resize_phi_node): Copy only a portion of
4705         the PHI node currently in use.
4706
4707 2004-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
4708
4709         PR tree-opt/18231
4710         * tree.c (staticp) <case FUNCTION_DECL>: Nested functions are static
4711         also.
4712
4713 2004-11-03  Andrew MacLeod  <amacleod@redhat.com>
4714
4715         PR tree-optimization/18270
4716         * tree-outof-ssa.c (analyze_edges_for_bb): If a block has incoming
4717         abnormal edges, commit all pending stmts on incoming edges.
4718
4719 2004-11-03  Ulrich Weigand  <uweigand@de.ibm.com>
4720
4721         * tree-ssa-loop-ivopts.c (get_address_cost): Offset zero does not
4722         cause extra costs.  Generate canonical RTL.
4723
4724 2004-11-02  Daniel Berlin  <dberlin@dberlin.org>
4725
4726         * lambda-code.c (lambda_compute_auxillary_space): Update comments.
4727         (lambda_compute_target_space). Ditto.
4728         * lambda.h (lambda_trans_matrix): Ditto.
4729         (lambda_linear_expression): Ditto.
4730         (lambda_body_vector): Ditto.
4731         (lambda_loopnest): Ditto.
4732         * tree-loop-linear.c (gather_interchange_stats): Combine tests,
4733         update comments, and remove pointless addition of 0.
4734         (linear_transform_loops): Update comments.
4735
4736 2004-11-03  Sebastian Pop  <pop@cri.ensmp.fr>
4737
4738         * tree.c (tree_fold_gcd): Use FLOOR_MOD_EXPR instead of
4739         CEIL_MOD_EXPR.
4740
4741 2004-11-03 Jeff Law  <law@redhat.com>
4742
4743         * predict.c (struct block_info_def): Kill "tovisit" field.
4744         (propagate_freq): Accept new "tovisit" parameter.  Change
4745         read/write access methods for "tovisit" to check the "tovisit"
4746         bitmap instead of a bit in block_info_def.
4747         (estimate_loops_at_level): Allocate "tovisit" bitmap.  Pass
4748         it to propagate_freq.
4749
4750         * stmt.c (expand_case): Speed up code to detect duplicate case
4751         label targets and count unique case label targets.
4752
4753 2004-11-03  Kazu Hirata  <kazu@cs.umass.edu>
4754
4755         * cppdefault.c, cppdefault.h, timevar.h: Update copyright.
4756
4757 2004-11-03  Kazu Hirata  <kazu@cs.umass.edu>
4758
4759         * bitmap.h, dbxout.c, tree-mudflap.c: Fix comment formatting.
4760
4761 2004-11-03  Kazu Hirata  <kazu@cs.umass.edu>
4762
4763         * tree-cfg.c (find_taken_edge): Abort if we are given a
4764         statement that is neither COND_EXPR nor SWITCH_EXPR.
4765
4766 2004-11-02  Zdenek Dvorak  <dvorakz@suse.cz>
4767
4768         * fold-const.c (fold): Reassociate also (x - mult) + mult and
4769         (mult - x) + mult.  Cast operands of expression after applying
4770         distributive law to the correct types.  Apply distributive law
4771         to a * c - b * c for all non-float types.
4772
4773 2004-11-02  Geoffrey Keating  <geoffk@apple.com>
4774
4775         * configure.ac: Don't clear STMP_FIXINC or STMP_FIXPROTO just
4776         because we don't want to run them now; instead, set them to
4777         stmp-install-fixproto or stmp-install-fixinc.
4778         * Makefile.in (stmp-install-fixproto): New.
4779         (stmp-install-fixinc): New.
4780         * configure: Regenerate.
4781
4782 2004-11-02  Nathan Sidwell  <nathan@codesourcery.com>
4783
4784         * flow.c (init_propagate_block_info): Use bitmap_empty_p on result
4785         of bitmap_xor.
4786
4787 2004-11-02  Ziemowit Laski  <zlaski@apple.com>
4788
4789         * c-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
4790         (c_types_compatible_p): Move function definition...
4791         * c-objc-common.c (c_types_compatible_p): ...here.
4792         * c-objc-common.h (LANG_HOOKS_TYPES_COMPATIBLE_P): Moved here from
4793         c-lang.c.
4794
4795 2004-11-02  Steven Bosscher  <stevenb@suse.de>
4796
4797         * cfgloop.h (struct loop): Update comment.
4798         * cse.c (cse_main): Remove obsolete comment.
4799
4800         * expr.h (gen_cond_trap): Move prototype under functions provided
4801         by optabs.c.
4802         (canonicalize_condition, get_condition): Move to...
4803         * rtl.h (canonicalize_condition, get_condition): ...here.
4804         (branch_target_load_optimize): Add comment that this function is
4805         in bt-load.c.
4806         * loop.c (canonicalize_condition, get_condition): Move to...
4807         * rtlanal.c (canonicalize_condition, get_condition): ...here.
4808         * sched-deps.c (get_condition): Rename to sched_get_condition.
4809         (add_dependence): Update this caller.
4810
4811 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
4812
4813         PR tree-opt/16808
4814         * tree-ssa.c (replace_immediate_uses): If we call fold_stmt, make sure
4815         that the vops get marked for renaming.
4816
4817 2004-11-02  Andreas Krebbel  <krebbel1@de.ibm.com>
4818
4819         * config/s390/s390.md ("movcc"): Set type attribute.
4820
4821 2004-11-02  Kazu Hirata  <kazu@cs.umass.edu>
4822
4823         * tree-phinodes.c (add_phi_arg): Add an assertion that the
4824         edge already exists.
4825
4826 2004-11-02  Kazu Hirata  <kazu@cs.umass.edu>
4827
4828         * tree-phinodes.c (remove_phi_arg_num): Do not zero the
4829         element that's being removed.
4830
4831 2004-11-02  Kazu Hirata  <kazu@cs.umass.edu>
4832
4833         * tree-ssa-threadupdate.c (copy_phis_to_block): Install PHI
4834         arguments using PENDING_STMT.
4835         (thread_block): Call copy_phis_to_block after redirecting an
4836         edge.
4837
4838 2004-11-02  Nathan Sidwell  <nathan@codesourcery.com>
4839
4840         * bitmap.h (bitmap_and, bitmap_and_into, bitmap_and_compl,
4841         bitmap_and_compl_into, bitmap_ior, bitmap_iot_into,
4842         bitmap_ior_compl, bitmap_xor, bitmap_xor_into): Produce void.
4843         (bitmap_ior_and_compl_into): Produce bool.
4844         (bitmap_union_of_diff): Rename to ...
4845         (bitmap_ior_and_compl): ... here. Produce bool.
4846         * bitmap.c (bitmap_ior_and_compl_into): Return bool. Use
4847         bitmap_operation directly.
4848         (bitmap_union_of_diff): Rename to ...
4849         (bitmap_ior_and_compl): ... here. Return bool, use
4850         bitmap_operation directly.
4851         * df.c (df_rd_transfer_function): Use bitmap_ior_and_compl.
4852         (df_ru_transfer_function, df_lr_transfer_function): Likewise.
4853         * global.c (modify_bb_reg_pav): Likewise.
4854
4855         * bitmap.h (bitmap_equal_p): Return bool.
4856         (bitmap_intersect_p, bitmap_intersect_compl_p): Declare.
4857         * bitmap.c (bitmap_equal_p): Return bool. Compare directly.
4858         (bitmap_intersect_p, bitmap_intersect_compl_p): New.
4859         * flow.c (calculate_global_regs_live): Use bitmap_intersect_p and
4860         bitmap_intersect_compl_p.
4861         * ifcvt (dead_or_predicable): Likewise.
4862
4863 2004-11-02  Nathan Sidwell  <nathan@codesourcery.com>
4864
4865         PR rtl-optimization/17104
4866         * config/rs6000/rs6000.c (rs6000_emit_move): Don't wrap small
4867         loads in zero_extend.
4868
4869 2004-11-02  Danny Smith  <dannysmith@users.sourceforge.net>
4870
4871         PR debug/18242
4872         * toplev.c (debug_type_names): Remove "dwarf-1".
4873
4874 2004-11-02  Ben Elliston  <bje@au.ibm.com>
4875
4876         * timevar.h (timevar_get): Remove.
4877         * timevar.c (timevar_get): Remove unused function.
4878
4879 2004-11-02  Joseph S. Myers  <joseph@codesourcery.com>
4880
4881         * doc/include/texinfo.tex: Update from Texinfo CVS.
4882
4883 2004-11-02  Ben Elliston  <bje@au.ibm.com>
4884
4885         * cppdefault.h (cpp_SYSROOT): Remove.
4886         * cppdefault.c (cpp_SYSROOT): Likewise.
4887
4888 2004-11-01  Andrew MacLeod  <amacleod@redhat.com>
4889
4890         PR tree-optimization/16447
4891         * tree-cfg.c (bsi_commit_one_edge_insert): Rename from
4892         bsi_commit_edge_inserts_1, and make funtion external.  Return new block.
4893         (bsi_commit_edge_inserts): Use renamed bsi_commit_one_edge_insert.
4894         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Enable listing.
4895         * tree-flow.h (bsi_commit_one_edge_insert): Extern decl.
4896         * tree-outof-ssa.c (rewrite_trees): Don't commit edges here.
4897         (same_stmt_list_p): New.  Return TRUE if edge is to be forwarded.
4898         (identical_copies_p): New.  Return true is two copies are the same.
4899         (identical_stmt_lists_p): New.  Return true if stmt lists are the same.
4900         (analyze_edges_for_bb): New.  Determine how best to insert edge stmts
4901         for a basic block.
4902         (perform_edge_inserts): New.  Determine what to do with all stmts that
4903         have been inserted on edges.
4904         (remove_ssa_form):  Analyze and commit edges from here.
4905
4906 2004-11-01  Andrew Pinski  <pinskia@physics.uc.edu>
4907
4908         PR bootstrap/18232
4909         * bitmap.h (bmp_iter_end_p): Take a const pointer instead of a struct.
4910         (EXECUTE_IF_SET_IN_BITMAP): Update call to bmp_iter_end_p.
4911         (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
4912         (EXECUTE_IF_AND_IN_BITMAP): Likewise.
4913
4914 2004-11-01  Joseph S. Myers  <joseph@codesourcery.com>
4915
4916         PR c/18239
4917         * c-decl.c (get_parm_info): Allow FUNCTION_DECLs to appear amongst
4918         parameter declarations.
4919
4920 2004-11-01  Andreas Krebbel  <krebbel1@de.ibm.com>
4921
4922         * config/s390/s390.c (regclass_map): Put reg 33 (cc) to CC_REGS group.
4923         (s390_secondary_input_reload_class)
4924         (s390_secondary_output_reload_class): Use GENERAL_REGS to reload a cc
4925         register.
4926         (s390_expand_cmpmem): Enable cmpmem implementation.
4927         * config/s390/s390.h (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
4928         Added three new classes: CC_REGS, ADDR_CC_REGS, GENERAL_CC_REGS.
4929         (REG_CLASS_FROM_LETTER): New constraint 'c' added.
4930         * config/s390/s390.md ("movcc"): New insn pattern.
4931         * doc/md.texi: Document 'c' constraint for s390.
4932
4933 2004-11-01  Nathan Sidwell  <nathan@codesourcery.com>
4934
4935         PR c++/18064
4936         * doc/extend.texi (Deprecated Features): Deprecate G++ covariant
4937         extension.
4938
4939 2004-10-16  Daniel Berlin  <dberlin@dberlin.org>
4940
4941         Fix PR tree-optimization/17672
4942         Fix PR tree-optimization/18168
4943
4944         * lambda-code.c (lambda_lattice_compute_base): Fix reversed
4945         assert test.
4946         (gcc_tree_to_linear_expression): Add extra to existing constant.
4947         (depth_of_nest): Factor out function used in various places.
4948         (gcc_loop_to_lambda_loop): Clean up code a little bit. No
4949         functional changes.
4950         (find_induction_var_from_exit_cond): Stop guessing, and just
4951         get the right answer :).
4952         (gcc_loopnest_to_lambda_loopnest): Remove useless pre-allocation.
4953         Print out message about result of attempt to create perfect nest.
4954         (lbv_to_gcc_expression): Add type argument, use it to do math
4955         and induction variable creation.
4956         (lle_to_gcc_expression): Ditto.
4957         (lambda_loopnest_to_gcc_loopnest): Create new iv with same type as
4958         oldiv. Pass type argument to lle_to_gcc_expression and
4959         lbv_to_gcc_expression.
4960         Reset number of iterations after transformation.
4961         (perfect_nestify): Remove useless pre-allocation, and cleanup
4962         a small amount.
4963
4964         * tree-data-ref.c (build_classic_dist_vector): Return false for
4965         dependences completely outside of the loop nest we asked about.
4966         (build_classic_dir_vector): Ditto.
4967         (compute_data_dependences_for_loop): Only add dependence relations
4968         inside the loop we asked about.
4969
4970         * tree-loop-linear.c (linear_transform_loops): Use DDR_SIZE_VECT.
4971         Compute immediate uses.
4972
4973         * tree-optimize.c: Move linear_transform_loops to before ivcanon.
4974
4975 2004-11-01  Kazu Hirata  <kazu@cs.umass.edu>
4976
4977         * tree-cfg.c (thread_jumps): Fix a comment typo.
4978
4979 2004-11-01  Kazu Hirata  <kazu@cs.umass.edu>
4980
4981         * tree-cfg.c (thread_jumps): Fix a comment typo.
4982
4983 2004-10-31  Nicolas Pitre <nico@cam.org>
4984
4985         * config/arm/ieee754-sf.S (floatdisf): Fix regression with
4986         values smaller than 2^32.
4987
4988 2004-10-31 Jeff Law  <law@redhat.com>
4989
4990         * cfgloop.h (struct loop): Remove unused "nodes" field.
4991         * timevar.def (TV_TREE_LOOP_BOUNDS): New.
4992         * tree-data-ref.c (find_data_references_in_loop): Use get_loop_body
4993         instead of calling flow_bb_inside_loop_p for every basic block
4994         in the function.
4995         * tree-ssa-loop.c (pass_record_bounds): Use TV_TREE_LOOP_BOUNDS.
4996
4997 2004-10-31  Graham Stott <graham.stott@btinternet.com>
4998
4999         * config/pa/pa.md: (prefetch_64, prefetch_32): Fix typo.  Use
5000         INT_5_BITS instead of VAL_5_BITS_P.
5001
5002 2004-10-31  Roger Sayle  <roger@eyesopen.com>
5003
5004         PR middle-end/14521
5005         * tree-inline.c (inline_forbidden_p_1): Use %qF instead of '%F'
5006         for consistent quoting in diagnostic messages.
5007         (expand_call_inline): Likewise.
5008         * tree-optimize.c (tree_rest_of_compilation): Likewise.
5009         * tree-ssa.c (warn_uninitialized_var): Likewise.
5010         (warn_uninitialized_phi): Likewise.
5011
5012 2004-10-31  Richard Sandiford  <rsandifo@redhat.com>
5013
5014         * config/mips/mips.c (mips_cannot_change_mode_class): Use a stricter
5015         mode check.
5016
5017 2004-10-31  Kazu Hirata  <kazu@cs.umass.edu>
5018
5019         * c-common.c: Fix a comment typo.
5020
5021 2004-10-31  Jason Merrill  <jason@redhat.com>
5022
5023         PR middle-end/17526
5024         * tree-gimple.c (is_gimple_mem_rhs): Also require a val for
5025         aggregate types that are not BLKmode.
5026
5027 2004-10-30  Ziemowit Laski  <zlaski@apple.com>
5028
5029         * c-common.h (objc_lookup_ivar): Add second parameter to
5030         prototype.
5031         * c-typeck.c (build_external_ref): After looking up symbol,
5032         pass it to objc_lookup_ivar() to decide whether it or the
5033         ivar should be used, rather than deciding the issue locally.
5034         * stub-objc.c (objc_lookup_ivar): Add an OTHER parameter,
5035         which is simply returned in the non-ObjC case.
5036
5037 2004-10-30  Danny Smith  <dannysmith@users.sourceforge.net>
5038
5039         * sdbout.c (sdbout_symbol): Do not output type .def statements
5040         for builtin types.
5041
5042 2004-10-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5043
5044         * c-common.c (catenate_strings): New.
5045         (c_parse_error): Use it.  Don't over-escape.
5046
5047 2004-10-30  Kaz Kojima  <kkojima@gcc.gnu.org>
5048
5049         * config/sh/sh.c (calc_live_regs): Declare reg as unsigned and
5050         modify the for loop expressions for it.  Remove unnecessary casts.
5051         (sh_expand_prologue): Declare reg as unsigned.
5052         (sh_gimplify_va_arg_expr): Initinalize lab_over.
5053         (sh_handle_sp_switch_attribute): Add const qualifier appropriately.
5054
5055 2004-10-30  Geoffrey Keating  <geoffk@apple.com>
5056
5057         * doc/invoke.texi (Darwin Options): Improve description of
5058         how the subtype is chosen.
5059
5060 2004-10-30  Roger Sayle  <roger@eyesopen.com>
5061
5062         PR middle-end/18096
5063         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Check that
5064         the stack adjustment, "size", is valid for Pmode.  If the stack
5065         frame is too large, generate a trap insn and issue a warning.
5066
5067 2004-10-30  Kazu Hirata  <kazu@cs.umass.edu>
5068
5069         * tree-ssa-dom.c: Fix comment typos.
5070
5071 2004-10-30  Kaz Kojima  <kkojima@gcc.gnu.org>
5072
5073         * config/sh/sh.c (prepare_move_operands): Use operands[0]
5074         for the output rtl if no_new_pseudos is set.  Remove redundant
5075         line.
5076
5077 2004-10-30  Joseph S. Myers  <joseph@codesourcery.com>
5078
5079         PR c/16666
5080         * c-decl.c (start_function): Don't check for DECL_BUILT_IN when
5081         determining whether to copy parameter types from a previous
5082         prototype declaration.
5083
5084 2004-10-29  Roger Sayle  <roger@eyesopen.com>
5085
5086         PR rtl-optimization/17581
5087         * cselib.c (cselib_process_insn): The last instruction of a libcall
5088         block, with the REG_RETVAL note, should be considered in the libcall.
5089         * gcse.c (do_local_cprop): Allow constants to be propagated outside
5090         of libcall blocks.
5091         (adjust_libcall_notes): Use simplify_replace_rtx instead of
5092         replace_rtx to avoid creating invalid RTL in REG_RETVAL notes.
5093
5094 2004-10-30  Kazu Hirata  <kazu@cs.umass.edu>
5095
5096         * tree-phinodes.c (create_phi_node): Don't zero PHI_REWRITTEN.
5097
5098 2004-10-29 Jeff Law  <law@redhat.com>
5099
5100         * tree-ssa-dom.c (struct edge_info): New structure holding
5101         edge equivalences and edge redirection information.
5102         (get_eq_expr_value, record_dominating_conditions): Kill.
5103         (propagate_to_outgoing_edges): Renamed from cprop_into_phis.
5104         Call record_edge_info.
5105         (allocate_edge_info, free_edge_info): New.
5106         (tree_ssa_dominator_optimize): Use propagate_to_outgoing_edges
5107         rather than cprop_into_phis.  Free all edge infos before threading
5108         jumps.
5109         (thread_across_edge): Allocate new edge info structures as needed
5110         and store the redirection target into the edge info structure
5111         instead of the edge's AUX field.
5112         (dom_opt_initialize_block): Mark unused argument with ATTRIBUTE_UNUSED.
5113         (record_equivalence_from_incoming_edge): Lose unnecessary argument.
5114         Revamp code which finds and records equivalences associated with
5115         edges to use saved data in the edge_info structure.
5116         (record_equivalencs_from_phis): Similarly.
5117         (dom_opt_finalize_block): Revamp code which finds and records
5118         equivalences associated with edges to use saved data in the
5119         edge_info structure.
5120         (build_and_record_new_cond): New function.
5121         (record_conditions): Use build_and_record_new_cond to record
5122         dominating conditions.
5123         (record_edge_info): New function.
5124         (record_range): Tighten test for conditions which create
5125         useful range records.
5126
5127 2004-10-29  Geoffrey Keating  <geoffk@apple.com>
5128
5129         * config/i386/darwin.h (ASM_SPEC): Simplify.
5130         (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
5131         * config/rs6000/darwin.h (DARWIN_SUBARCH_SPEC): New.
5132         (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
5133         * config/darwin.h (LINK_COMMAND_SPEC): Don't pass -arch here.
5134         (LINK_SPEC): Do pass -arch here.  Handle -force_cpusubtype_ALL
5135         in all cases.  Pass the right -arch or -arch_only based on -mcpu.
5136         (ASM_SPEC): Handle -force_cpusubtype_ALL.
5137         * doc/invoke.texi (Darwin Options): Improve documentation for
5138         Darwin linker (and libtool) switches.
5139
5140         * config/rs6000/darwin-fallback.c: Include <mach/thread_status.h>.
5141
5142 2004-10-29  Stan Shebs  <shebs@apple.com>
5143
5144         * config/rs6000/darwin-tramp.asm: Make more 64-bit-friendly.
5145
5146 2004-10-29  Kazu Hirata  <kazu@cs.umass.edu>
5147
5148         * tree-phinodes.c (allocate_phi_node): New.
5149         (make_phi_node, resize_phi_node): Use it.
5150
5151 2004-10-29  David Edelsohn  <edelsohn@gnu.org>
5152
5153         * config/rs6000/sysv4.h (TARGET_POWER): Define as 0.
5154         * config/rs6000/darwin.h (TARGET_POWER): Define as 0.
5155
5156 2004-10-29  Kazu Hirata  <kazu@cs.umass.edu>
5157
5158         * tree-phinodes.c (make_phi_node, resize_phi_node): Don't zero
5159         the whole PHI node.
5160         * tree.h (tree_phi_node): Tell the garbage collector to chase
5161         num_args arguments.
5162
5163 2004-10-29  Richard Earnshaw  <rearnsha@arm.com>
5164
5165         * opts.c (decode_options): Lower the crossjump threshold for -Os.
5166
5167 2004-10-29  Diego Novillo  <dnovillo@redhat.com>
5168
5169         * tree.h (struct tree_ssa_name): Remove field 'equiv'.
5170
5171 2004-10-28  Nathan Sidwell  <nathan@codesourcery.com>
5172
5173         * bitmap.h (bitmap_empty_p): New.
5174         (bitmap_and, bitmap_and_into, bitmap_and_compl,
5175         bitmap_and_compl_into, bitmap_ior, bitmap_ior_into,
5176         bitmap_ior_compl, bitmap_xor, bitmap_xor_into): New bitmap
5177         operation macros.
5178         (bitmap_ior_and_compl): Rename to ...
5179         (bitmap_ior_and_compl_into): ... here.
5180         * bitmap.c (bitmap_equal_p): Use bitmap_xor.
5181         (bitmap_ior_and_compl): Rename to ...
5182         (bitmap_ior_and_compl_into): ... here. Adjust. Return changed
5183         flag.
5184         (bitmap_union_of_diff): Use renamed bitmap functions.
5185         * basic-block.h (AND_REG_SET, AND_COMPL_REG_SET, IOR_REG_SET,
5186         XOR_REG_SET, IOR_AND_COMPL_REG_SET): Likewise.
5187         * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
5188         * df.c (df_bb_rd_local_compute)
5189         * flow.c (calculate_global_regs_live,
5190         init_propagate_block_info): Likewise.
5191         * ifcvt.c (find_if_case_1, find_if_case_2,
5192         dead_or_predicable): Likewise.
5193         * ra-build.c (union_web_part_roots, livethrough_conflicts_bb,
5194         reset_conflicts, conflicts_between_webs): Likewise.
5195         * ra-rewrite.c (reloads_to_loads, rewrite_program2,
5196         detect_web_parts_to_rebuild): Likewise.
5197         * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
5198         * tree-int-ssa.c (insert_phi_nodes_for, rewrite_into_ssa): Likewise.
5199         * tree-sra.c (decide_instantiations): Likewise.
5200         * tree-ssa-alias.c (create_name_tags,
5201         merge_pointed_to_info): Likewise.
5202         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
5203         * tree-ssa-loop-im.c (move_computations): Likewise.
5204         * tree-ssa-operands.c (get_call_expr_operands): Likewise.
5205         * tree-ssa-pre.c (fini_pre): Likewise.
5206         * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
5207         * tree-ssanames.c (any_marked_for_rewrite_p): Likewise.
5208         * tree-vectorizer.c (vectorize_loops): Likewise.
5209
5210 2004-10-29  Nick Clifton  <nickc@redhat.com>
5211
5212         config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): When
5213         adding the PIC register to the fixed_regs array, also add it
5214         to the call_used_regs array.
5215
5216 2004-10-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
5217
5218         * gthr-posix.h (__gthread_recursive_mutex_init_function): Guard
5219         with #ifdef PTHREAD_MUTEX_RECURSIVE/#endif pairs.
5220
5221 2004-10-28  Daniel Berlin  <dberlin@dberlin.org>
5222
5223         * tree-into-ssa.c (rewrite_virtual_phi_arguments): New function.
5224         (rewrite_blocks): Modify argument, and use it to decide which
5225         function to call.
5226         (rewrite_def_def_chains): Call rewrite_blocks with true here.
5227         (rewrite_into_ssa): and call it with false here.
5228
5229 2004-10-29  Kazu Hirata  <kazu@cs.umass.edu>
5230
5231         * tree-phinodes.c (add_phi_arg): Turn an "if" that always
5232         triggers into gcc_assert.
5233
5234 2004-10-28  Diego Novillo  <dnovillo@redhat.com>
5235
5236         PR tree-optimization/16728
5237         * tree-flow.h (get_ptr_info): Declare.
5238         * tree-ssa-alias.c (get_ptr_info): Make extern.
5239         * tree-ssa-copy.c (merge_alias_info): Merge flow-sensitive
5240         alias information.
5241
5242 2004-10-28  Stan Shebs  <shebs@apple.com>
5243
5244         * config/rs6000/darwin.h (SUBTARGET_EXTRA_SPECS): Handle -m64.
5245         * config/rs6000/rs6000.c (rs6000_darwin_file_start): Add ppc64
5246         case.
5247
5248 2004-10-28  Frank Ch. Eigler  <fche@redhat.com>
5249
5250         * tree-mudflap.c (mudflap_init): Mark cache-lookup decls to
5251         prevent their later unnecessary registration.
5252         (mf_build_check_statement_for): Remove "addr" argument, and
5253         related "__mf_value" generated code.  Update callers.
5254         (mf_decl_eligible_p): New function, factored from mx_register_decls.
5255         (mx_register_decls): Call it.
5256         (mf_xform_derefs_1): Rewrite COMPONENT_REF and ARRAY_REF cases
5257         to restore support for complex nested expressions.
5258         (mudflap_enqueue_decl): Simplify.  Move registration call emission
5259         out ...
5260         (mudflap_finish_file): ... to here.
5261         (mudflap_enqueue_constant): Remove dump code.
5262
5263 2004-10-28  Zack Weinberg  <zack@codesourcery.com>
5264
5265         PR 18199
5266         * dbxout.c (dbxout_begin_complex_stabs_noforcetext): New function.
5267         (DBX_FINISH_STABS): Add (unused by default) SYM parameter.
5268         (dbxout_finish_complex_stabs): Update to match.
5269         (dbxout_symbol_location): Call emit_pending_bincls_if_required
5270         and FORCE_TEXT before DBX_STATIC_BLOCK_START.  Use
5271         dbxout_begin_complex_stabs_noforcetext.
5272         * xcoffout.h (DBX_FINISH_STABS): Restore special case for
5273         N_GSYM, using new SYM parameter.  Correct logic for special
5274         cases for N_FUN.
5275
5276         * varasm.c (function_section): If DECL is NULL_TREE, don't try
5277         to do anything else.  Do not call get_insns if cfun or
5278         cfun->emit are NULL.
5279
5280 2004-10-28  Adam Nemet  <anemet@lnxw.com>
5281
5282         PR middle-end/18160
5283         * c-typeck.c (c_mark_addressable): Issue error if address of a
5284         register variable is taken.  Use "%qD" to print DECL_NAME.
5285
5286 2004-10-28  Diego Novillo  <dnovillo@redhat.com>
5287
5288         * opts.c (decode_options): Don't run PRE at -Os.
5289
5290 2004-10-28  Richard Henderson  <rth@redhat.com>
5291
5292         * config/alpha/alpha.md (movqicc_internal): Allow exactly one
5293         zero in the conditional.
5294         (movhicc_internal, movsicc_internal, movdicc_internal): Likewise.
5295
5296 2004-10-28  Richard Henderson  <rth@redhat.com>
5297
5298         * cse.c (memory_extend_rtx): Remove.
5299         (cse_main): Don't set it.
5300         (cse_insn): Use a local buffer instead.
5301
5302 2004-10-28  Andreas Krebbel  <krebbel1@de.ibm.com>
5303
5304         * profile.c (branch_prob): Call to init_edge_profiler added.
5305         * rtl-profile.c (rtl_init_edge_profiler): New function.
5306         (rtl_gen_edge_profiler): Replaced call to insert_insn_on_edge with
5307         call to safe_insert_insn_on_edge.
5308         (rtl_profile_hooks): rtl_init_edge_profiler added.
5309         * tree-profile.c (tree_init_edge_profiler): New function.
5310         (tree_profile_hooks): tree_init_edge_profiler added.
5311         * value-prof.h (profile_hooks) init_edge_profiler prototype added.
5312
5313 2004-10-28  Nick Clifton  <nickc@redhat.com>
5314
5315         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Use
5316         emit_jump_insn() to generate the return instruction.
5317
5318 2004-10-28  Kazu Hirata  <kazu@cs.umass.edu>
5319
5320         * tree-phinodes.c: Remove trailing whitespace.
5321
5322 2004-10-28  Kazu Hirata  <kazu@cs.umass.edu>
5323
5324         * tree-ssa-loop-ivopts.c: Fix a comment typo.
5325         * doc/invoke.texi: Fix a typo.
5326
5327 2004-10-28  Kazu Hirata  <kazu@cs.umass.edu>
5328
5329         * Makefile.in (OBJS-common): Remove duplicates.
5330
5331 2004-10-28  Kazu Hirata  <kazu@cs.umass.edu>
5332
5333         * lambda-code.c (nestify_update_pending_stmts): Remove.
5334         (perfect_nestify): Use flush_pending_stmts instead of
5335         nestify_update_pending_stmts.
5336         * tree-cfg.c (tree_make_forwarder_block): Use
5337         flush_pending_stmts.
5338         * tree-flow.h: Add a prototype for flush_pending_stmts.
5339         * tree-ssa-loop-manip.c (tree_duplicate_loop_to_header_edge):
5340         Use flush_pending_stmts.
5341         (lv_update_pending_stmts): Remove.
5342         (tree_ssa_loop_version): Use flush_pending_stmts instead of
5343         lv_update_pending_stmts.
5344         * tree-ssa.c (flush_pending_stmts): New.
5345
5346 2004-10-28  Ulrich Weigand  <uweigand@de.ibm.com>
5347
5348         PR target/15286
5349         * final.c (alter_subreg): Compute correct offset to use with
5350         paradoxical SUBREGs of memory operands.
5351         * recog.c (general_operand): Allow paradoxical SUBREGs of
5352         memory operands after reload.
5353         * simplify-rtx.c (simplify_gen_subreg): Fail if simplify_subreg
5354         has failed when passed a hard register.
5355
5356 2004-10-28  Aldy Hernandez  <aldyh@redhat.com>
5357
5358         * function.c (assign_parm_setup_block): Handle parallels correctly.
5359
5360 2004-10-28  Kaz Kojima  <kkojima@gcc.gnu.org>
5361
5362         * final.c (shorten_branches): Initialize flags structure.
5363
5364 2004-10-28  Nathan Sidwell  <nathan@codesourcery.com>
5365
5366         * tree.c (int_cst_node, int_cst_hash_table): New variables.
5367         (init_ttree): Initialize them.
5368         (int_cst_hash_hash, int_cst_hash_eq): New hashing functions.
5369         (build_int_cst_wide): Use hash table for oversized integers.
5370
5371 2004-10-28  Nick Clifton  <nickc@redhat.com>
5372
5373         * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Define
5374         begin_label.
5375
5376 2004-10-27  Richard Henderson  <rth@redhat.com>
5377
5378         PR middle-end/18163
5379         * expr.c (emit_group_load): Don't go force temporary for memory
5380         or concat source.
5381         (emit_group_store): Similarly.
5382
5383 2004-10-27  Andrew Pinski  <pinskia@physics.uc.edu>
5384
5385         PR other/18186
5386         * common.opt (--param): Fix spelling of parameter.
5387
5388 2004-10-27  Andrew Pinski  <pinskia@physics.uc.edu>
5389
5390         PR tree-opt/17529
5391         * tree-cfg.c (remove_useless_stmts_1) <case SWITCH_EXPR>:
5392         Don't fold statement.
5393         <case ASM_EXPR>: Fold the statement.
5394
5395 2004-10-28  Kazu Hirata  <kazu@cs.umass.edu>
5396
5397         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
5398         <COND_EXPR>: Use EDGE_COUNT instead of GOTO_DESTINATION.
5399
5400 2004-10-28  Joseph S. Myers  <jsm@polyomino.org.uk>
5401
5402         * doc/contrib.texi, doc/cpp.texi, doc/cppopts.texi,
5403         doc/extend.texi, doc/gcov.texi, doc/install.texi, doc/invoke.texi,
5404         doc/libgcc.texi, doc/md.texi, doc/passes.texi,
5405         doc/sourcebuild.texi, doc/tm.texi: Improve Texinfo formatting.
5406
5407 2004-10-28  Joseph S. Myers  <jsm@polyomino.org.uk>
5408
5409         * doc/c-tree.texi, doc/cpp.texi, doc/implement-c.texi,
5410         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/tm.texi: Put
5411         punctuation outside quotes.
5412
5413 2004-10-27  David Mosberger  <davidm@hpl.hp.com>
5414             James E Wilson  <wilson@specifixinc.com>
5415
5416         PR target/13158
5417         * config/ia64/ia64.c (ia64_expand_epilogue): Set RTX_FRAME_RELATED_P on
5418         sibcall alloc instruction.
5419         (process_set): Handle sibcall alloc instruction.
5420
5421 2004-10-27  Geoffrey Keating  <geoffk@apple.com>
5422
5423         * config/rs6000/rs6000.c (rs6000_attribute_table): Add
5424         SUBTARGET_ATTRIBUTE_TABLE.
5425         * config/darwin.h (ASM_WEAKEN_DECL): Handle weak_import.
5426         (SUBTARGET_ATTRIBUTE_TABLE): Define.
5427         * config/darwin.c (darwin_handle_weak_import_attribute): New.
5428         (HAVE_DEAD_STRIP): Delete.
5429         (no_dead_strip): Don't test HAVE_DEAD_STRIP.
5430         * config/darwin-protos.h (darwin_handle_weak_import_attribute):
5431         Prototype.
5432
5433         * doc/tm.texi (USE_SELECT_SECTION_FOR_FUNCTIONS): Document.
5434
5435         * config/darwin.h (GTHREAD_USE_WEAK): Define.
5436
5437 2004-10-28  Ben Elliston  <bje@au.ibm.com>
5438
5439         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): New.
5440         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Likewise.
5441         * params.h (SRA_MAX_STRUCTURE_SIZE): New.
5442         (SRA_FIELD_STRUCTURE_RATIO): Likewise.
5443         * tree-sra.c: Include "params.h".
5444         (decide_block_copy): Use new parameters.
5445         * doc/invoke.texi (Optimize Options): Document new SRA pass
5446         parameters sra-max-structure-size and sra-field-structure-ratio.
5447
5448 2004-10-27  Nicolas Pitre <nico@cam.org>
5449
5450         * config/arm/ieee754-df.S (floatdidf): Fix regression with big values.
5451
5452 2004-10-27  Zdenek Dvorak  <dvorakz@suse.cz>
5453
5454         PR tree-optimization/18048
5455         * fold-const.c (try_move_mult_to_index): New function.
5456         (fold): Use try_move_mult_to_index.
5457         * tree-ssa-loop-ivopts.c (try_add_cand_for): Prefer common candidates.
5458         * tree-ssa-loop-niter.c (number_of_iterations_cond): Produce
5459         an all-ones unsigned constant without extra bits.
5460         * tree.c (build_low_bits_mask): New function.
5461         * tree.h (build_low_bits_mask): Declare.
5462
5463 2004-10-27  David Edelsohn  <edelsohn@gnu.org>
5464
5465         PR target/17956
5466         * config/rs6000/rs6000.md (maxsf3): Add !flag_trapping_math to
5467         final condition.
5468         (minsf3): Same.
5469         (maxdf3): Same.
5470         (mindf3): Same.
5471
5472 2004-10-27  Kazu Hirata  <kazu@cs.umass.edu>
5473
5474         * tree-cfg.c (thread_jumps): Speed up by reordering the two
5475         conditions for entering basic blocks into worklist.
5476
5477 2004-10-27  Kazu Hirata  <kazu@cs.umass.edu>
5478
5479         * tree-cfg.c (thread_jumps): Speed up by pretending to have
5480         ENTRY_BLOCK_PTR in worklist.
5481
5482 2004-10-27  Kazu Hirata  <kazu@cs.umass.edu>
5483
5484         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
5485         <GOTO_EXPR>: Don't let an explicit GOTO_EXPR slip through.
5486
5487 2004-10-27  Daniel Berlin <dberlin@dberlin.org>
5488
5489         Fix PR tree-optimization/17133
5490
5491         * tree-cfg.c (rewrite_to_new_ssa_names_bb): Also rewrite must
5492         def kill operand.
5493
5494         * tree-flow-inline.h: V_MUST_DEF_OP became V_MUST_DEF_RESULT.
5495         (get_v_must_def_result_ptr): Modify for new structure of
5496         v_must_defs array.
5497         (get_v_must_def_kill_ptr): New.
5498         (op_iter_next_use): Add support for the kill that occurs in V_MUST_DEFs.
5499         (op_iter_next_tree): Ditto. Also V_MAY_DEF_OP became V_MAY_DEF_RESULT.
5500         (op_iter_next_def): V_MAY_DEF_OP became V_MAY_DEF_RESULT.
5501         (op_iter_init): Initialize new mustu members.
5502         (op_iter_next_mustdef): New function.
5503         (op_iter_init_mustdef): Ditto.
5504
5505         * tree-flow.h (rewrite_def_def_chains): New function.
5506
5507         * tree-into-ssa.c (mark_def_sites): Handle mustdefkill operands.
5508         (ssa_mark_def_sites): Ditto.
5509         (rewrite_stmt): Ditto.
5510         (ssa_rewrite_stmt): Ditto.
5511         (rewrite_blocks): Factor out from rewrite_into_ssa.
5512         (mark_def_block_sites): Ditto.
5513         (rewrite_def_def_chains): New function, just rewrites def-def
5514         chains without phi node insertion.
5515
5516         * tree-pass.h (TODO_fix_def_def_chains): New todo flag.
5517
5518         * tree-optimize.c (execute_todo): Handle TODO_fix_def_def_chains.
5519
5520         * tree-pretty-print.c (dump_vops): Print out MUST_DEF's so that
5521         they include the rhs now.
5522
5523         * tree-ssa-ccp.c (visit_assignment): V_MUST_DEF_OP became
5524         V_MUST_DEF_RESULT.
5525
5526         * tree-ssa-dce.c (mark_operand_necessary): Add phionly argument.
5527         Update callers.
5528         (mark_really_necessary_kill_operand_phis): New function.
5529         (perform_tree_ssa_dce): Call it.
5530         (pass_dce): Add TODO_fix_def_def_chains.
5531         (pass_cd_dce): Ditto.
5532
5533         * tree-ssa-loop-im.c (determine_max_movement): Look at kills as
5534         well.
5535         (rewrite_mem_refs): Ditto.
5536
5537         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Look at kills
5538         as well.
5539
5540         * tree-ssa-operands.c (allocate_v_may_def_optype):
5541         v_may_def_operand_type_t became v_def_use_operand_type_t.
5542         (allocate_v_must_def_optype) Ditto.
5543         (finalize_ssa_v_must_defs): Update for new operand type, as well
5544         as setting the use portion as well.
5545         (copy_virtual_operands): Copy the kill operand as well.
5546         (create_ssa_artficial_load_stmt): V_MUST_DEF_OP became
5547         V_MUST_DEF_RESULT.
5548
5549         * tree-ssa-operands.h (v_may_def_operand_type): Renamed to
5550         v_def_use_operand_type.
5551         (v_must_def_optype_d): Use v_def_use_operand_type.
5552         (V_MUST_DEF_OP_*): Renamed to V_MUST_DEF_RESULT_*
5553         (V_MUST_DEF_KILL_*): New macros.
5554         (struct ssa_operand_iterator_d): Add num_v_mustu and v_mustu_i
5555         members.
5556         Rename existing must_i and num_v_must members to mustd_i and
5557         num_v_mustd.
5558         (SSA_OP_VMUSTDEFKILL): New flag.
5559         (SSA_OP_VIRTUAL_KILLS): New flag.
5560         (SSA_OP_ALL_OPERANDS): Add in SSA_OP_ALL_KILLS.
5561         (SSA_OP_ALL_KILLS): New flag.
5562         (FOR_EACH_SSA_MUSTDEF_OPERAND): New macro.
5563
5564         * tree-ssa.c (verify_ssa): Verify virtual kills as well.
5565
5566         * tree-vectorizer.c (vect_create_data_ref_ptr): V_MUST_DEF_OP
5567         became V_MUST_DEF_RESULT.
5568         (rename_variables_in_bb): Rename kill pointer as well.
5569
5570         * tree-dfa.c (compute_immediate_uses_for_stmt): Add kills into the
5571         immediate uses.
5572
5573 2004-10-27  Richard Sandiford  <rsandifo@redhat.com>
5574
5575         * dbxout.c (dbxout_source_line): Move declaration of begin_label to
5576         the block that needs it.
5577
5578 2004-10-27  Zack Weinberg  <zack@codesourcery.com>
5579
5580         * dbxout.c (dbxout_finish_complex_stabs): Mark 'line' variable
5581         ATTRIBUTE_UNUSED.
5582
5583 2004-10-27  Zack Weinberg  <zack@codesourcery.com>
5584
5585         * c-lex.c (cb_def_pragma): Clean up code for making location
5586         palatable to diagnostic.c.
5587
5588 2004-10-27  Steven Bosscher  <stevenb@suse.de>
5589
5590         PR tree-optimization/17757
5591         * tree-phinodes.c (remove_phi_arg_num): Don't remove PHIs
5592         without any PHI arguments left.  Make sure the argument that
5593         we're supposed to remove exists at all.
5594
5595 2004-10-27  Paul Brook  <paul@codesourcery.com>
5596
5597         * configure.ac: Don't test for [build] __cxa_atexit when building a
5598         cross compiler.
5599         * configure: Regenerate.
5600
5601 2004-10-27  Paul Brook  <paul@codeosurcery.com>
5602
5603         * configure.ac: Use build_exeext not host_exeext when lookin for
5604         target tools.
5605         * configure: Regenerate.
5606
5607 2004-10-27  Andreas Krebbel  <krebbel1@de.ibm.com>
5608
5609         * config/s390/s390.md ("*subdf3_cc"): Replaced plus by minus.
5610
5611 2004-10-27  Andreas Krebbel  <krebbel1@de.ibm.com>
5612             patch originally created by Kelley Cook  <kcook@gcc.gnu.org>
5613
5614         PR middle-end/14684
5615         * opts.c (OPT_fprofile_generate): Default to -funroll-loops
5616         to match -fprofile-use.
5617
5618 2004-10-27  Kazu Hirata  <kazu@cs.umass.edu>
5619
5620         * config/rs6000/rs6000.c: Fix a comment typo.
5621
5622 2004-10-27  Zack Weinberg  <zack@codesourcery.com>
5623
5624         * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Increment line
5625         counter.
5626
5627 2004-10-27  Andreas Schwab  <schwab@suse.de>
5628
5629         * varasm.c (default_stabs_asm_out_destructor): Mark symbol as
5630         unused.
5631         (default_stabs_asm_out_constructor): Likewise.
5632
5633 2004-10-26  Geoffrey Keating  <geoffk@apple.com>
5634
5635         * builtins.c (fold_builtin_unordered_cmp): Always bring both
5636         operands to the same type.
5637
5638 2004-10-26  James E Wilson  <wilson@specifixinc.com>
5639
5640         PR target/18010
5641         * emit-rtl.c (emit_copy_of_insn_after): Copy RTX_FRAME_RELATED_P.
5642
5643 2004-10-26  Zack Weinberg  <zack@codesourcery.com>
5644
5645         * dbxout.c: Include obstack.h.
5646         (ASM_STABS_OP): Take XCOFF_DEBUGGING_INFO into account in
5647         default definition.
5648         (ASM_STABD_OP, NO_DBX_MAIN_SOURCE_DIRECTORY, DBX_CONTIN_CHAR):
5649         Default-define here.
5650         (DBX_CONTIN_LENGTH): Move definition with others.
5651         (DBX_FINISH_STABS): New target macro.
5652         (current_sym_code, current_sym_value, current_sym_addr)
5653         (current_sym_nchars, CHARS, dbxout_continue)
5654         (print_int_cst_octal, print_octal, print_wide_int)
5655         (dbxout_prepare_symbol, dbxout_finish_symbol): Delete.
5656         (stabstr_ob, stabstr_last_contin_point): New variables.
5657         (NUMBER_FMT_LOOP): New improper macro.
5658         (dbxout_int, dbxout_stab_value_zero, dbxout_stab_value_label)
5659         (dbxout_stab_value_label_diff, dbxout_stab_value_internal_label)
5660         (dbxout_stab_value_internal_label_diff, dbxout_stabd)
5661         (dbxout_begin_stabn, dbxout_begin_stabn_sline)
5662         (dbxout_begin_simple_stabs, dbxout_begin_simple_stabs_desc)
5663         (dbxout_begin_complex_stabs, dbxout_finish_complex_stabs)
5664         (stabstr_C, stabstr_S, stabstr_I, stabstr_D, stabstr_U, stabstr_O)
5665         (stabstr_continue, DECL_ACCESSIBILITY_CHAR)
5666         New functions and/or proper function-like macros.
5667         (CONTIN): Use stabstr_continue, unconditionally.
5668         (get_lang_number): Define unconditionally, with ATTRIBUTE_UNUSED.
5669         (dbxout_init): Initialize stabstr_ob.  Check
5670         NO_DBX_MAIN_SOURCE_DIRECTORY.  Only write out the Ltext label
5671         if it was used.  Use the new interfaces.
5672         (dbxout_source_file): Remove file argument; always write to
5673         asm_out_file.  Use the new interfaces.
5674         (dbxout_type_method_1): Remove second argument which is always
5675         DECL_ASSEMBLER_NAME of the first argument.  Use the new interfaces.
5676         (dbxout_type_methods): Remove write-only variables.  Use the
5677         new interfaces.
5678         (dbxout_parms): Refactor to remove code duplicated in each of
5679         several successive if-else-if blocks.  Use the new interfaces.
5680         (dbxout_function_end, emit_bincl_stab, dbxout_end_source_file)
5681         (dbxout_source_line, dbxout_finish, dbxout_type_index)
5682         (dbxout_type_fields, dbxout_range_type, dbxout_type, dbxout_type_name)
5683         (dbxout_class_name_qualifiers, dbxout_symbol, dbxout_symbol_location)
5684         (dbxout_symbol_name, dbxout_reg_parms, dbxout_args)
5685         (dbx_output_lbrac, dbx_output_rbrac, dbxout_block):
5686         Use the new interfaces.
5687         * Makefile.in (dbxout.o): Update dependencies.
5688
5689         * defaults.h: Don't define ASM_STABD_OP.
5690         * output.h: Prototype new dbxout_* interfaces.
5691         * system.h: Poison DBX_OUTPUT_GCC_MARKER and DBX_FINISH_SYMBOL.
5692         * varasm.c: Don't define ASM_STABS_OP.
5693         (default_stabs_asm_out_constructor, default_stabs_asm_out_destructor):
5694         Use the new dbxout.c interfaces.  Call sorry if neither
5695         DBX_DEBUGGING_INFO nor XCOFF_DEBUGGING_INFO is defined.
5696
5697         * xcoffout.h: Don't define ASM_STABS_OP.
5698         (DBX_FINISH_SYMBOL): Rewrite and rename DBX_FINISH_STABS.
5699         (DBX_OUTPUT_MAIN_SOURCE_DIRECTORY, DBX_OUTPUT_GCC_MARKER): Delete.
5700         (NO_DBX_MAIN_SOURCE_DIRECTORY, NO_DBX_GCC_MARKER): Define.
5701         (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Change bare block to
5702         do { ... } while (0) idiom.
5703
5704         * config/alpha/alpha.c (num_source_filenames): Export.
5705         * config/alpha/alpha.h (num_source_filenames): Declare.
5706         (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
5707         (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
5708         * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
5709         Always use .debugsym.  Update commentary.
5710         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
5711         (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
5712         * config/rs6000/linux64.h (DBX_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC):
5713         Use new interfaces.
5714         * config/rs6000/rs6000.c: If TARGET_MACHO, include gstab.h.
5715         (macho_branch_islands): Use new interfaces.
5716
5717         * doc/tm.texi: Update.
5718
5719 2004-10-26  Aldy Hernandez  <aldyh@redhat.com>
5720
5721         * expr.c (emit_group_store): Do not treat floats as BLKmode.
5722         (emit_group_load): Same.
5723
5724 2004-10-26  Joseph S. Myers  <jsm@polyomino.org.uk>
5725
5726         * c-parse.in (datadef): Use pedwarn rather than error and warning
5727         for diagnostic in case of no declaration specifiers.
5728
5729 2004-10-26  Richard Sandiford  <rsandifo@redhat.com>
5730
5731         PR bootstrap/15747
5732         * doc/install.texi (mips-sgi-irix5): Document that /bin/sh has been
5733         reported to hang during bootstrap and that CONFIG_SHELL=/bin/ksh
5734         can be used to work around this.
5735
5736 2004-10-26  Aldy Hernandez  <aldyh@redhat.com>
5737
5738         * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Adjust for e500
5739         doubles.
5740
5741 2004-10-26  Kazu Hirata  <kazu@cs.umass.edu>
5742
5743         * stmt.c (expand_case): Update a comment.
5744
5745 2004-10-26  Kazu Hirata  <kazu@cs.umass.edu>
5746
5747         * stmt.c (expand_case): Put an assertion that index_expr is
5748         never INTEGER_CST.  Don't special case for constant
5749         index_expr.
5750
5751 2004-10-26  Andrew Pinski  <pinskia@physics.uc.edu>
5752
5753         PR 18162
5754         * c-parse.in (designator): Finish with a semi-colon.
5755
5756 2004-10-26  Fariborz Jahanian <fjahanian@apple.com>
5757
5758         * config/rs6000/rs6000.md (andsi3_internal8): Set CR when splitting
5759         into rotlsi3.
5760
5761 2004-10-26  Kazu Hirata  <kazu@cs.umass.edu>
5762
5763         * stmt.c (expand_case): Remove code to handle SWITCH_EXPR with
5764         a default case only.
5765
5766 2004-10-26  Aldy Hernandez  <aldyh@redhat.com>
5767
5768         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs): Adjust for
5769         e500 doubles.
5770         (spe_build_register_parallel): New.
5771         (rs6000_spe_function_arg): Handle e500 doubles.
5772         (function_arg): Same.
5773         (spe_func_has_64bit_regs_p): Same.
5774         (rs6000_function_value): Same.
5775         (rs6000_libcall_value): Same.
5776         (legitimate_lo_sum_address_p): Return false for e500 doubles.
5777
5778         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT): Adjust for e500
5779         doubles.
5780         (DATA_ALIGNMENT): Same.
5781         (CANNOT_CHANGE_MODE_CLASS): Same.
5782
5783 2004-10-26  Aldy Hernandez  <aldyh@redhat.com>
5784
5785         * expr.c (emit_group_load): Handle floats.
5786         (emit_group_store): Same.
5787
5788 2004-10-26  Nathan Sidwell  <nathan@codesourcery.com>
5789
5790         * c-lex.c (get_nonpadding_token): Remove.
5791         (c_lex_with_flags): Push timevar and eat padding here.  Improve
5792         stray token diagnostic.
5793         (lex_string): Replace logic with switch statement, eat padding
5794         token here.
5795
5796 2004-10-26  Geoffrey Keating  <geoffk@apple.com>
5797
5798         PR 18149
5799         * config/i386/darwin.h (ASM_SPEC): Undef it before defining.
5800
5801 2004-10-25  Geoffrey Keating  <geoffk@apple.com>
5802
5803         * config/darwin.h (LINK_SPEC): Default weak_reference_mismatches
5804         to 'non-weak'.
5805         (MAKE_DECL_ONE_ONLY): Set DECL_WEAK.
5806         (ASM_MAKE_LABEL_LINKONCE): Delete.
5807         (ASM_WEAKEN_DECL): New.
5808         (ASM_DECLARE_OBJECT_NAME): Look at DECL_WEAK not DECL_ONE_ONLY.
5809         (ASM_DECLARE_FUNCTION_NAME): Likewise.
5810         (TEXT_SECTION_ASM_OP): Add a tab.
5811         (DATA_SECTION_ASM_OP): Likewise.
5812         (SECTION_FUNCTION): Add a tab.  Use fputs.  Don't call
5813         data_section on every section change.
5814         (EXTRA_SECTIONS): Add a bunch of new extra sections.
5815         (EXTRA_SECTION_FUNCTIONS): Likewise.
5816         (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
5817         (JCR_SECTION_NAME): Define.
5818         (TARGET_SECTION_TYPE_FLAGS): Don't define.
5819         * config/darwin.c (darwin_encode_section_info): A symbol is defined
5820         in this file if it is not weak.
5821         (textcoal_section): Delete.
5822         (datacoal_section): Delete.
5823         (darwin_make_decl_one_only): Delete.
5824         (machopic_select_section): Handle functions.
5825         (darwin_asm_named_section): Add a tab.
5826         (darwin_section_type_flags): Delete.
5827         (darwin_unique_section): Delete contents.
5828         (darwin_emit_unwind_label): Add a tab.  Make decls weak if
5829         DECL_WEAK is set.
5830         * config/darwin-protos.h (darwin_section_type_flags): Delete.
5831         (darwin_make_decl_one_only): Delete.
5832         (text_coal_section): New.
5833         (text_unlikely_section): New.
5834         (text_unlikely_coal_section): New.
5835         (const_coal_section): New.
5836         (data_coal_section): New.
5837         (const_data_coal_section): New.
5838         * varasm.c (function_section): Honour
5839         USE_SELECT_SECTION_FOR_FUNCTIONS.
5840         * dwarf2out.c (output_call_frame_info): Look at DECL_WEAK when
5841         TARGET_USES_WEAK_UNWIND_INFO is in effect.
5842         * dbxout.c (dbxout_source_file): Don't change sections while
5843         a function is being output.
5844
5845 2004-10-25  David Ayers  <d.ayers@inode.at>
5846
5847         * c-common.h: Remove RID_ID.
5848         * c-parse.in: Remove OBJECTNAME and references to RID_ID.
5849         (typespec_reserved_attr): Add rule for TYPENAME
5850         non_empty_protocolrefs.
5851         (yylexname): Remove special handling of RID_ID.
5852
5853 2004-10-25  James E Wilson  <wilson@specifixinc.com>
5854
5855         * doc/invoke.texi (-fcrossjumping): Not enabled at -O.
5856
5857 2004-10-25  Joseph S. Myers  <jsm@polyomino.org.uk>
5858
5859         PR c/16667
5860         * c-parse.in (array_designator): New.
5861         (designator): Use it.
5862         (initelt): Only permit array_designator without '=', not ".foo".
5863
5864 2004-10-25  Kenneth Zadeck <zadeck@naturalbridge.com>
5865         * gcc/Makefile.in: removed ggc for cgraphunit.
5866         * gcc/cgraph.c.dump_cgraph_node: removed static var analysis.
5867         * gcc/cgraph.h: removed static var analysis data structures and calls.
5868         * gcc/cgraphunit.c:
5869         cgraph_mark_local_and_external_functions:changed name to
5870                 cgraph_mark_local_functions
5871         (print_order,convert_UIDs_in_bitmap,new_static_vars_info,
5872         cgraph_reset_static_var_maps,get_global_static_vars_info,
5873         get_global_statics_not_read,get_global_statics_not_written,searchc,
5874         cgraph_reduced_inorder,has_proper_scope_for_analysis,check_rhs_var,
5875         check_lhs_var,get_asm_expr_operands,process_call_for_static_vars,
5876         scan_for_static_refs,cgraph_characterize_statics_local,
5877         clear_static_vars_maps,cgraph_propagate_bits,cgraph_characterize_statics):
5878         removed.
5879         (cgraph_optimize,init_cgraph): removed calls to static vars analysis
5880         * gcc/tree-dfa.c find_referenced_vars: removed call to static vars
5881         analysis
5882         * gcc/tree-flow.h static_vars_info: removed
5883         * gcc/tree-ssa-operands.c (add_call_clobber_ops,add_call_read_ops):
5884         removed calls to static vars analysis.
5885         get_call_expr_operands: removed callee variable.
5886
5887 2004-10-25  Kazu Hirata  <kazu@cs.umass.edu>
5888
5889         * cfg.c (unchecked_make_edge, redirect_edge_succ,
5890         redirect_edge_pred): Use VEC_safe_push instead of
5891         VEC_safe_insert.
5892         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
5893
5894 2004-10-25  Kazu Hirata  <kazu@cs.umass.edu>
5895
5896         * cfgloopmanip.c (loopify): Take two more arguments true_edge
5897         and false_edge.
5898         * cfgloop.h: Adjust the corresponding prototype.
5899         * loop-unswitch.c (unswitch_loop): Adjust a call to loopify.
5900         * tree-ssa-loop-manip.c (tree_ssa_loop_version): Likewise.
5901
5902 2004-10-25  Jakub Jelinek  <jakub@redhat.com>
5903
5904         * dwarf2out.c (rtl_for_decl_location): Avoid segfault if
5905         DECL_INCOMING_RTL is NULL.
5906
5907 2004-10-25  Steven Bosscher  <stevenb@suse.de>
5908
5909         * timevar.def (TV_FIND_REFERENCED_VARS): New.
5910         * tree-dfa.c (pass_referenced_var): Use it.
5911
5912 2004-10-25  Roger Sayle  <roger@eyesopen.com>
5913             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5914
5915         * cse.c: Change encoding of quantity numbers to avoid undefined
5916         pointer arithmetic on qty_table.
5917         (REGNO_QTY_VALID_P): A quantity is now valid if it isn't negative.
5918         (get_cse_reg_info): Initialize reg_qty to a unique negative value.
5919         (new_basic_block): Assign "real" quantity numbers from zero.
5920         (delete_reg_equiv): Do nothing if quantity is invalid.  Reset the
5921         REG_QTY to its unique negative value.
5922         (merge_equiv_classes): Calculate need_rehash if quantity is valid.
5923         (cse_main): Don't include max_reg when determining max_qty.
5924         (cse_basic_block): Avoid subtracting a large offset from qty_table,
5925         which causes undefined C99 behaviour.  Only allocate needed memory.
5926
5927 2004-10-25  Kazu Hirata  <kazu@cs.umass.edu>
5928
5929         * stmt.c (expand_case): Remove an obsolete comment.
5930
5931 2004-10-25  Andrew Pinski  <pinskia@physics.uc.edu>
5932
5933         PR middle-end/17407
5934         * c-decl.c (grokdeclarator) <case cdk_array>: Remove the call
5935         layout_type as it is already done by build_array_type.
5936         * tree.c (build_array_type): Layout the type even
5937
5938 2004-10-25  Alexandre Oliva  <aoliva@redhat.com>
5939
5940         * config/frv/linux.h (TARGET_C99_FUNCTIONS): Define to 0.
5941
5942 2004-10-25  Alexandre Oliva  <aoliva@redhat.com>
5943
5944         * config/frv/frv.md (movdi, movdf): Handle wide-constant splits
5945         with wider-than-32-bit HOST_WIDE_INTs.
5946
5947 2004-10-25  David Billinghurst <David.Billinghurst@riotinto.com>
5948
5949         * config/mips/mips.c(mips_output_filename): Remove unused
5950         array ltext_label_name
5951
5952 2004-10-24  Geoffrey Keating  <geoffk@geoffk.org>
5953
5954         * config/rs6000/darwin.h (BLOCK_REG_PADDING): Define.
5955
5956 2004-10-25  Ben Elliston  <bje@au.ibm.com>
5957
5958         * cfgcleanup.c (outgoing_edges_match): Fix typo in dump output.
5959
5960 2004-10-23  Andrew Pinski  <pinskia@physics.uc.edu>
5961
5962         * predict.c (predict_loops): Call scev_finalize instead of
5963         scev_reset.
5964
5965 2004-10-24  Kazu Hirata  <kazu@cs.umass.edu>
5966
5967         * config/dbxcoff.h, config/dbxelf.h, config/libgloss.h,
5968         config/openbsd.h, config/mips/r3900.h, config/pdp11/pdp11.md,
5969         config/sh/ushmedia.h, config/sparc/elf.h,
5970         config/sparc/sp64-elf.h: Update copyright.
5971
5972 2004-10-24  Kazu Hirata  <kazu@cs.umass.edu>
5973
5974         * stmt.c (expand_case): Handle the default label outside of
5975         the for loop.  Remove code to handle a missing default label.
5976
5977 2004-10-23  Kazu Hirata  <kazu@cs.umass.edu>
5978
5979         * dbxout.c (dbxout_function_decl): Don't use
5980         DBX_OUTPUT_FUNCTION_END.
5981         * system.h: Poison DBX_OUTPUT_FUNCTION_END.
5982         * doc/tm.texi (DBX_OUTPUT_FUNCTION_END): Remove.
5983
5984 2004-10-23  Andrew Pinski  <pinskia@physics.uc.edu>
5985
5986         PR middle-end/17967
5987         * tree-cfg.c (remove_usless_stmts_cond):  Don't Fold statement.
5988
5989 2004-10-23  Daniel Berlin  <dberlin@dberlin.org>
5990
5991         * tree-ssa-dom.c (record_equality): Use loop depth to determine
5992         which way to record the equality as well.
5993         (loop_depth_of_name): New function.
5994
5995 2004-10-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
5996
5997         PR middle-end/17793
5998         * gimplify.c (gimplify_addr_expr) <VIEW_CONVERT_EXPR>: Look
5999         through the operand if it is a useless type conversion.
6000
6001 2004-10-23  Ben Elliston  <bje@au.ibm.com>
6002
6003         * cfg.c (remove_edge): Use VEC_unordered_remove.
6004         (redirect_edge_succ): Likewise.
6005         (redirect_edge_pred): Likewise.
6006         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
6007
6008 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
6009
6010         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Don't access PTR
6011         beyond its end.
6012
6013 2004-10-22  Eric Christopher  <echristo@redhat.com>
6014
6015         * config/rs6000/rs6000.c (setup_incoming_varargs): Align DFmode
6016         saves.
6017
6018 2004-10-22  Aldy Hernandez  <aldyh@redhat.com>
6019
6020         * config/rs6000/spe.md (spe_extendsfdf2): New.
6021         (movdf_e500_double): New.
6022         (spe_truncdfsf2): New.
6023         (spe_absdf2): New.
6024         (spe_nabsdf2): New.
6025         (spe_negdf2): New.
6026         (sub_adddf3): New.
6027         (spe_subdf3): New.
6028         (spe_muldf3): New.
6029         (spe_floatsidf2): New.
6030         (spe_floatunssidf2): New.
6031         (fix_truncdfsi2): New.
6032         (spe_fixuns_truncdfsi2): New.
6033
6034         * config/rs6000/rs6000.md (truncdfsf2): Change to expander.
6035         (fpr_truncdfsf2): New.
6036         (negdf2): Change to expander.
6037         (fpr_negdf2): New.
6038         (fpr_nabsdf2): Name pattern.
6039         (adddf3): Change to expander.
6040         (fpr_adddf3): Nem.
6041         (subdf3): Change to expander.
6042         (fpr_subdf3): New.
6043         (muldf3): Change to expander.
6044         (fpr_muldf3): New.
6045         (divdf3): Change to expander.
6046         (fpr_divdf3): New.
6047         (movdf_softfloat32): Change !TARGET_FPRS to TARGET_E500_SINGLE.
6048         (cmpdf): Allow for TARGET_E500_DOUBLE.
6049
6050 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
6051
6052         * c-semantics.c (re_push_stmt_list): Remove.
6053         * c-common.h: Remove the corresponding prototype.
6054
6055 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
6056
6057         * stmt.c (asm_op_is_mem_input): Remove.
6058         * tree.h: Remove the corresponding prototype.
6059
6060 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
6061
6062         * tree-gimple.c (is_gimple_constructor_elt): Remove.
6063         * tree-gimple.h: Remove the corresponding prototype.
6064
6065 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
6066
6067         * varasm.c (get_pool_mode_for_function, get_pool_offset):
6068         Remove.
6069         * rtl.h: Remove the corresponding prototypes.
6070
6071 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
6072
6073         * tree-cfg.c (thread_jumps_from_bb): Speed up by extracting
6074         edge information when we commit ourselves to threading a
6075         particular jump.
6076
6077 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
6078
6079         * tree-cfg.c (thread_jumps): Speed up by putting basic blocks
6080         into worklist instead of their indexes.
6081
6082 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
6083
6084         * alias.c, basic-block.h, cgraphunit.c, combine.c, domwalk.h,
6085         final.c, gengtype.c, genpreds.c, ggc-page.c, insn-notes.def,
6086         lambda-code.c, loop-unroll.c, modulo-sched.c, pointer-set.c,
6087         pretty-print.c, ra-colorize.c, sbitmap.c, tree-complex.c,
6088         tree-data-ref.c, tree-dfa.c, tree-inline.c, tree-into-ssa.c,
6089         tree-scalar-evolution.c, tree-ssa-dom.c,
6090         tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
6091         tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-threadupdate.c,
6092         tree-vectorizer.c, vec.h: Fix comment formatting.
6093
6094 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
6095
6096         * dwarf.h, gthr-dce.h, gthr-single.h, gthr-solaris.h, gthr.h,
6097         libfuncs.h, libgcc2.h, stab.def, tsystem.h: Update copyright.
6098
6099 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
6100
6101         * config/ptx4.h, config/mcore/mcore-pe.h,
6102         config/rs6000/eabi.h, config/vax/elf.h: Update copyright.
6103
6104 2004-10-22  Peter Barada <peter@the-baradas.com>
6105
6106         * config/m68k/m68k.h (HARD_REGNO_RENAME_OK): New macro.
6107         * config/m68k/m68k.c (m68k_hard regno_rename_ok): Disallow
6108         renaming of non-live registers in interrupt functions.
6109         * config/m68k/m68k-protos.h (m68k_hard_regno_rename_ok): Add prototype.
6110
6111 2004-10-22  Zdenek Dvorak  <dvorakz@suse.cz>
6112
6113         * tree-ssa-loop-niter.c (inverse): Count in HOST_WIDE_INT if possible.
6114         Use integer for loop counter.
6115         (num_ending_zeros): New function.
6116         (number_of_iterations_cond): Use num_ending_zeros.
6117
6118 2004-10-21  Aldy Hernandez  <aldyh@redhat.com>
6119
6120         * config.gcc: Add support for --enable-e500_double.
6121
6122         * config/rs6000/e500-double.h: New file.
6123
6124         * config/rs6000/rs6000.h: Define TARGET_E500_SINGLE and
6125         TARGET_E500_DOUBLE.
6126
6127         * config/rs6000/eabi.h: Define TARGET_E500_SINGLE and
6128         TARGET_E500_DOUBLE.
6129
6130         * config/rs6000/linuxspe.h: Same.
6131
6132         * doc/invoke.texi (Option Summary): Document new options for
6133         mfloat-gprs.
6134         (RS/6000 and PowerPC Options): Same.
6135
6136         * config/rs6000/rs6000.c (rs6000_parse_float_gprs_option): New
6137         function.
6138         (rs6000_override_options): Use it.  Use
6139         SUB3TARGET_OVERRIDE_OPTIONS.
6140         Add 8548 to processor_target_table.
6141         (rs6000_legitimate_address): Handle e500 doubles.
6142         (rs6000_legitimize_address): Same.
6143         (rs6000_legitimize_reload_address): Same.
6144         (rs6000_hard_regno_nregs): Same.
6145         (spe_func_has_64bit_regs_p): Same.
6146         (emit_frame_save): Same.
6147         (gen_frame_mem_offset): Same.
6148         (rs6000_dwarf_register_span): Same.
6149         (rs6000_generate_compare): Same.
6150         (easy_fp_constant): Same.
6151         (legitimate_offset_address_p): Same.
6152
6153         * config/rs6000/spe.md: (cmdfeq_gpr): New.
6154         (tstdfeq_gpr): New.
6155         (cmpdfgt_gpr): New.
6156         (tstdfgt_gpr): New.
6157         (tstdfgt_gpr): New.
6158         (cmpdflt_gpr): New.
6159         (tstdflt_gpr): New.
6160         Add new constants.
6161
6162 2004-10-21  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
6163
6164         * config/arc/lib1funcs.asm (___umulsidi3): Fix typo.
6165
6166 2004-10-21  Zack Weinberg  <zack@codesourcery.com>
6167
6168         * dbxout.c: Remove unnecessary #undefs.
6169         (GDB_INV_REF_REGPARM_STABS_LETTER, DBX_MEMPARM_STABS_LETTER)
6170         (FILE_NAME_JOINER, STABS_GCC_MARKER): Remove; fold sole
6171         definition into use sites.
6172         (cwd): Make local to dbxout_init.
6173         (dbxout_init): Restructure cwd-using logic for clarity.  Use
6174         IS_DIR_SEPARATOR.
6175         * xcoffout.h (DBX_OUTPUT_GCC_MARKER): Definition of
6176         STABS_GCC_MARKER folded in here.
6177         * system.h: Poison now-unused macros.
6178         * doc/tm.texi: Remove documentation of now-unused macros.
6179
6180 2004-10-21  Andrew Pinski  <pinskia@physics.uc.edu>
6181
6182         PR c/17538
6183         * c-opts.c (push_command_line_include): Use the current file
6184         name instead of the main one.
6185
6186 2004-10-21  Andrew Pinski  <pinskia@physics.uc.edu>
6187
6188         PR objc/17923
6189         * tree.c (staticp): A CONST_DECL has static storage if either
6190         TREE_STATIC or DECL_EXTERNAL is set.
6191         * c-decl.c (pushdecl_top_level): Accept CONST_DECLs which can
6192         have null names.
6193
6194 2004-10-21  Kazu Hirata  <kazu@cs.umass.edu>
6195
6196         * expr.c (store_expr): Remove dont_store_target.
6197
6198 2004-10-21  Kazu Hirata  <kazu@cs.umass.edu>
6199
6200         * tree-cfg.c (thread_jumps): Speed up by using a worklist.
6201
6202 2004-10-21  Kazu Hirata  <kazu@cs.umass.edu>
6203
6204         * tree-cfg.c (thread_jumps): Move a part of it to ...
6205         (thread_jumps_from_bb): ... here.
6206
6207 2004-10-21  David Edelsohn  <edelsohn@gnu.org>
6208
6209         * dbxout.c (DBX_FINISH_SYMBOL): Add asm_out_file argument.
6210         * xcoffout.h (DBX_FINISH_SYMBOL): Change asmfile to (ASMFILE).
6211
6212 2004-10-21  Kazu Hirata  <kazu@cs.umass.edu>
6213
6214         * expr.c (store_expr): Clean up by renaming want_value to
6215         call_param_p.
6216
6217 2004-10-21  Kaz Kojima  <kkojima@gcc.gnu.org>
6218
6219         * config/sh/linux-unwind.h (sh_fallback_frame_state): Don't
6220         fixup pc here.
6221
6222 2004-10-21  Aldy Hernandez  <aldyh@redhat.com>
6223
6224         PR 18004.
6225         * expmed.c (store_bit_field): Pass original 'value' before
6226         recursing.
6227
6228 2004-10-21  Nicolas Pitre <nico@cam.org>
6229
6230         * config/arm/ieee754-sf.S: Large speed improvements. Fix NAN handling.
6231         * config/arm/ieee754-df.S: Ditto.
6232
6233 2004-10-20  Zack Weinberg  <zack@codesourcery.com>
6234
6235         * dbxout.c (asmfile): Delete.  All uses changed to asm_out_file.
6236         (DBX_BLOCKS_FUNCTION_RELATIVE, DBX_LINES_FUNCTION_RELATIVE):
6237         Default to 0.
6238         (dbxout_source_line): Use DBX_OUTPUT_SOURCE_LINE when defined.
6239         When it is not, but DBX_LINES_FUNCTION_RELATIVE is true, emit
6240         an internal label and an N_SLINE .stabn whose value is the
6241         difference between that label and the function entry label.
6242         (dbxout_finish): If DBX_OUTPUT_MAIN_SOURCE_FILE_END is not defined,
6243         but DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END is, emit a
6244         label and an N_SO stab with an empty string referring to it.
6245         (dbx_output_lbrac, dbx_output_rbrac): Use if statement instead
6246         of #ifdef directive to test DBX_BLOCKS_FUNCTION_RELATIVE.
6247         (dbxout_type_methods, dbxout_symbol): Remove #if 0 block.
6248         (dbxout_prepare_symbol): Remove #ifdef WINNING_GDB block, this
6249         macro is never defined.
6250         * sdbout.c (sdbout_source_line_counter): Delete.
6251         (PUT_SDB_SRC_FILE): Delete.  Uses replaced with sole definition.
6252         (sdbout_source_line): Use SDB_OUTPUT_SOURCE_LINE, which takes
6253         only two arguments.
6254         * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Rename ASM_OUTPUT_LINE.
6255
6256         * config/dbxcoff.h, config/dbxelf.h: Remove unncessary #undefs.
6257         * config/c4x/c4x.h, config/pa/pa.h: Remove unnecessary macro
6258         definitions (identical to default).
6259         * config/darwin.h, config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
6260         * config/h8300/coff.h, config/pa/som.h, config/sh/elf.h:
6261         Define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END, not
6262         DBX_OUTPUT_MAIN_SOURCE_FILE_END.
6263         * config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
6264         * config/mcore/mcore-pe.h, config/pa/som.h, config/sh/elf.h:
6265         Define DBX_LINES_FUNCTION_RELATIVE, not ASM_OUTPUT_SOURCE_LINE.
6266         * config/alpha/alpha-protos.h: Don't prototype alpha_output_lineno.
6267         * config/alpha/alpha.c: Move declaration of num_source_filenames up.
6268         (alpha_start_function): Use SDB_OUTPUT_SOURCE_LINE.
6269         (sym_lineno): Delete.
6270         (alpha_output_filename): Do not emit N_SOL stabs here.  Remove
6271         now-unused variable.
6272         (alpha_output_lineno): Delete.
6273         * config/mips/mips-protos.h: Don't prototype mips_output_lineno.
6274         * config/mips/mips.c (mips_output_filename): Don't use
6275         ASM_OUTPUT_FILENAME. Don't emit N_SOL stabs here.
6276         (mips_output_lineno): Delete.
6277         (mips_output_function_prologue: Use SDB_OUTPUT_SOURCE_LINE.
6278         * config/alpha/alpha.h: Define DBX_OUTPUT_SOURCE_LINE and
6279         SDB_OUTPUT_SOURCE_LINE, not ASM_OUTPUT_SOURCE_LINE.
6280         * config/mips/mips.h: Likewise.  Don't define ASM_OUTPUT_FILENAME.
6281         * config/mips/sdb.h: Use SDB_OUTPUT_SOURCE_LINE.
6282         * config/avr/avr.h: Don't define ASM_OUTPUT_SOURCE_LINE.
6283         * config/mmix/mmix.h: Likewise.
6284         * config/mmix/mmix.c (mmix_asm_output_source_line): Delete.
6285         * config/mmix/mmix-protos.h: Don't prototype it.
6286         * config/alpha/unicosmk.h: Also #undef PREFERRED_DEBUGGING_TYPE;
6287         no need to #undef ASM_OUTPUT_SOURCE_LINE.
6288         * config/arm/aout.h: Remove RISCiX-specific definition of
6289         DBX_OUTPUT_MAIN_SOURCE_FILENAME.
6290         * config/m32r/m32r.h: Define DBX_OUTPUT_SOURCE_LINE, not
6291         ASM_OUTPUT_SOURCE_LINE.
6292         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Rename to
6293         DBX_OUTPUT_SOURCE_LINE.  Don't use current_function_func_begin_label.
6294         * config/vax/elf.h: No need to define DBX_OUTPUT_FUNCTION_END.
6295
6296         * doc/tm.texi: Update.
6297
6298 2004-10-20  Richard Henderson  <rth@redhat.com>
6299
6300         * tree-sra.c (instantiate_element): Copy DECL_IGNORED_P also.
6301
6302 2004-10-20  Kelley Cook  <kcook@gcc.gnu.org>
6303
6304         * configure.ac: Revert my previous patch.
6305         * configure: Regenerate.
6306
6307 2004-10-20  Ben Elliston  <bje@au.ibm.com>
6308
6309         * config/rs6000/rs6000.c
6310         (rs6000_va_start): Use build_va_arg_indirect_ref.
6311         (rs6000_gimplify_va_arg): Likewise.
6312
6313 2004-10-20  Bryce McKinlay  <mckinlay@redhat.com>
6314
6315         PR java/15575
6316         * configure.ac: Declare AM_LANGINFO_CODESET.
6317         * aclocal.m4: Define AM_LANGINFO_CODESET.
6318         * configure, config.in: Rebuilt.
6319
6320 2004-10-20  Kazu Hirata  <kazu@cs.umass.edu>
6321
6322         * expr.c (store_expr): Remove code that is run when
6323         want_value & 1 is nonzero.
6324
6325 2004-10-20  Mark Mitchell  <mark@codesourcery.com>
6326
6327         * gthr-posix.h (__gthread_active_p): Use __extension__ around cast
6328         from function pointer to void *.
6329
6330 2004-10-20  Kaz Kojima  <kkojima@gcc.gnu.org>
6331
6332         PR target/18032
6333         * config/sh/sh.c (sh_expand_epilogue): Emit a blockage insn before
6334         the frame pointer adjustment when exception handling is enabled.
6335
6336 2004-10-20  Kazu Hirata  <kazu@cs.umass.edu>
6337
6338         * stor-layout.c: Fix a comment typo.
6339
6340 2004-10-20  Kazu Hirata  <kazu@cs.umass.edu>
6341
6342         * expr.c (store_field): Remove two arguments value_mode and
6343         unsignedp.
6344         (expand_assignment, store_constructor_field,
6345         expand_expr_real_1): Adjust calls to store_field.
6346
6347 2004-10-18  Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
6348
6349         * config/arc/lib1funcs.asm (___umulsidi3): Correct usage of flags.
6350
6351         PR target/17317
6352         * config/arc/arc.h (REGNO_OK_FOR_BASE_P,REGNO_OK_FOR_INDEX_P,
6353         REG_OK_FOR_BASE, REG_OK_FOR_INDEX): Consider blink(r31) as a valid
6354         base and index register for loads.
6355
6356         * config/arc/t-arc: Fix multilib handling.
6357
6358 2004-10-20  Hans-Peter Nilsson  <hp@bitrange.com>
6359
6360         * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
6361         don't inspect BLOCK_FOR_INSN for barriers.
6362         * emit-rtl.c (emit_barrier_before): Revert last change.
6363         (emit_barrier_after, emit_barrier): Ditto.
6364
6365         * doc/extend.texi (Extended Asm): Warn and provide example
6366         solution for using a call-clobbered asm register.
6367         (Local Reg Vars): Similar.  Cross-reference example.
6368
6369 2004-10-19  Andrew Pinski  <pinskia@physics.uc.edu>
6370
6371         * tree-cfg.c (group_case_labels): Look at the second to last
6372         case statement for combing with the default case.
6373
6374 2004-10-19  Richard Hendeson  <rth@redhat.com>
6375
6376         PR 17962
6377         * stor-layout.c (layout_type): Set TYPE_ALIGN for vectors.
6378
6379 2004-10-19  Richard Hendeson  <rth@redhat.com>
6380
6381         * builtins.c (expand_builtin_memmove): If fold_builtin_memmove
6382         succeeds, only expand the result.
6383
6384 2004-10-19  Richard Hendeson  <rth@redhat.com>
6385
6386         PR middle-end/17885
6387         * tree.c (recompute_tree_invarant_for_addr_expr): Always poll address
6388         of INDIRECT_REF.
6389
6390 2004-10-19  Kazu Hirata  <kazu@cs.umass.edu>
6391
6392         * tree-cfg.c (thread_jumps): Use a do-while loop instead of a
6393         loop with goto.
6394
6395 2004-10-19  Kazu Hirata  <kazu@cs.umass.edu>
6396
6397         * expr.c (expand_assignment): Remove the last argument.
6398         Change the return type to void.
6399         * expr.h: Update the prototype of expand_assignment.
6400         * function.c (assign_parm_setup_reg): Update a call to
6401         expand_assignment.
6402         * stmt.c (expand_asm_expr): Likewise.
6403
6404 2004-10-19  Kazu Hirata  <kazu@cs.umass.edu>
6405
6406         * expr.c (expand_expr_real_1) <MODIFY_EXPR>: Remove
6407         unnecessary assignments to temp.  Return const0_rtx.
6408
6409 2004-10-19  Kaz Kojima  <kkojima@gcc.gnu.org>
6410
6411         * config/sh/sh.c (sh5_schedule_saves): Fix typo.
6412
6413 2004-10-18  Kelley Cook  <kcook@gcc.gnu.org>
6414
6415         * configure.ac (powerpc-*-darwin*): Require assembler to support
6416         .machine directive.
6417         * configure: Regenerate.
6418
6419 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
6420
6421         * reload1.c (ior_hard_reg_set): Remove.
6422         (finish_spills): Use IOR_HARD_REG_SET instead of
6423         ior_hard_reg_set.
6424
6425 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
6426
6427         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Speed up by shifting
6428         the currently visited word to right.
6429
6430 2004-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
6431
6432         PR middle-end/18045
6433         * expmed.c (expand_smod_pow2): Handle modes whose size
6434         is greater than that of HOST_WIDE_INT.
6435
6436 2004-10-18  Ziemowit Laski  <zlaski@apple.com>
6437
6438         * c-parse.in (reservedwords): Add OBJC_TYPE_QUAL as alternative.
6439
6440 2004-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
6441             Roger Sayle  <roger@eyesopen.com>
6442
6443         PR middle-end/17813
6444         * dojump.c (discard_pending_stack_adjust): New function.
6445         (clear_pending_stack_adjust): Call it.
6446         * expr.h (discard_pending_stack_adjust): Declare it.
6447         * explow.c (emit_stack_save): Emit pending stack adjustments
6448         before saving the stack pointer.
6449         (emit_stack_restore): Discard pending stack adjustments before
6450         restoring the stack pointer.
6451
6452 2004-10-18  Richard Henderson  <rth@redhat.com>
6453
6454         * c-common.c (handle_mode_attribute): Allow scalar->vector
6455         type changes yet.
6456
6457 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
6458
6459         * expr.c (expand_expr_real_1) [MODIFY_EXPR]: Don't request a
6460         value to expand_assignment.
6461
6462 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
6463
6464         * tree-cfg.c (cleanup_tree_cfg): Don't iterate on
6465         thread_jumps.
6466         (thread_jumps): Iterate until no new forwarder block arises.
6467
6468 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
6469
6470         * tree-cfg.c (tree_forwarder_block_p): Don't set forwardable.
6471         (thread_jumps): Use forwardable as cache of
6472         tree_forwarder_block_p throughout the function.
6473
6474 2004-10-18  Andreas Krebbel  <krebbel1@de.ibm.com>
6475
6476         * cfg.c (dump_flow_info): Remove redundant dump of reg life info.
6477
6478 2004-10-18  Andrew Pinski  <pinskia@physics.uc.edu>
6479
6480         PR middle-end/15014
6481         PR middle-end/16973
6482         * tree-cfg.c (remove_bb): If we have a label expression in the
6483         basic block and the label we have taken the address, move the
6484         label expression to the basic block which is previous in the
6485         linked list.
6486         (tree_verify_flow_info): Fix printing out the label name of the
6487         problematic label expression.
6488
6489 2004-10-18  Pat Haugen  <pthaugen@us.ibm.com>
6490
6491         PR rtl-optimization/18002
6492         * simplify-rtx.c (mode_signbit_p): Externalize function...
6493         * rtl.h (mode_signbit_p): ... to here.
6494         * combine.c (simplify_shift_const): Recognize PLUS signbit as
6495         canonical form of XOR signbit and move to outer op.
6496
6497 2004-10-18  Diego Novillo  <dnovillo@redhat.com>
6498
6499         * tree-cfg.c (bsi_for_stmt): Rename from stmt_for_bsi.
6500         Update all callers.
6501         * tree-ssa.c (replace_immediate_uses): Call bsi_for_stmt.
6502         Don't call fold_stmt more than once, use bsi_replace.
6503
6504 2004-10-18  Diego Novillo  <dnovillo@redhat.com>
6505
6506         PR tree-optimization/17656
6507         * tree-ssa.c (replace_immediate_uses): When replacing a
6508         constant, if the call to fold_stmt produced a different
6509         statement, get an appropriate statement pointer by scanning
6510         STMT's basic block.
6511
6512 2004-10-18  Richard Henderson  <rth@redhat.com>
6513
6514         * pointer-set.c (hash1): Don't use libm functions in fallback case.
6515
6516 2004-10-18  H.J. Lu  <hongjiu.lu@intel.com>
6517
6518         PR bootstrap/17684
6519         * Makefile.in (clean): Remove libgcc_s$(SHLIB_EXT).1.stage?.
6520         (stage1-start): Remove and copy libunwind.a and
6521         libunwind*$(SHLIB_EXT) instead of libunwind*.
6522         (stage2-start): Likewise.
6523         (stage3-start): Likewise.
6524         (stage4-start): Likewise.
6525         (stageprofile-start): Likewise.
6526         (stagefeedback-start): Likewise.
6527
6528         * config/alpha/t-osf4 (SHLIB_LINK): Use a temporary file for
6529         the shared library to be created and don't remove the existing
6530         shared library.
6531         * config/arm/t-netbsd (SHLIB_LINK): Likewise.
6532         * config/i386/t-nwld (SHLIB_LINK): Likewise.
6533         * config/mips/t-slibgcc-irix (SHLIB_LINK): Likewise.
6534         * config/pa/t-hpux-shlib (SHLIB_LINK): Likewise.
6535         * config/sh/t-linux (SHLIB_LINK): Likewise.
6536         * config/t-libunwind-elf (SHLIBUNWIND_LINK): Likewise.
6537         * config/t-slibgcc-darwin (SHLIB_LINK): Likewise.
6538         * config/t-slibgcc-elf-ver (SHLIB_LINK): Likewise.
6539         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
6540
6541         * mklibgcc.in (libgcc-stage-start): Also move "*${objext}s"
6542         files.
6543
6544 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
6545
6546         * basic-block.h (reg_set_iterator): New.
6547         (EXECUTE_IF_SET_IN_REG_SET): Make it iterator style.
6548         (EXECUTE_IF_AND_COMPL_IN_REG_SET): Likewise.
6549         (EXECUTE_IF_AND_IN_REG_SET): Likewise.
6550         * caller-save.c (save_call_clobbered_regs): Adjust to the new
6551         style.
6552         * cfgcleanup.c (thread_jump): Likewise.
6553         * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
6554         * conflict.c (conflict_graph_compute): Likewise.
6555         * flow.c (verify_local_live_at_start, update_life_info,
6556         initialize_uninitialized_subregs, propagate_one_insn,
6557         init_propagate_block_info, free_propagate_block_info,
6558         propagate_block, dump_regset): Likewise.
6559         * global.c (global_conflicts): Likewise.
6560         * graph.c (start_bb): Likewise.
6561         * local-alloc.c (update_equiv_regs): Likewise.
6562         * loop.c (load_mems): Likewise.
6563         * reload1.c (compute_use_by_pseudos, order_regs_for_reload,
6564         find_reg, finish_spills): Likewise.
6565         * resource.c (mark_target_live_regs): Likewise.
6566         * sched-deps.c (sched_analyze_insn): Likewise.
6567         * sched-rgn.c (sched-rgn.c): Likewise.
6568         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
6569
6570 2004-10-18  Jakub Jelinek  <jakub@redhat.com>
6571
6572         * config/i386/i386.md (addqi_1_slp): Test for incdec_operand
6573         operand 1 instead of 2
6574
6575 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
6576
6577         * loop-unroll.c: Fix comment typos.
6578
6579 2004-10-18  Revital Eres  <eres@il.ibm.com>
6580
6581         * Makefile.in (loop-unroll.o): Add VARRAY_H dependency.
6582         * loop-unroll.c: Include varray.h.
6583         (struct var_to_expand, struct opt_info): Rename split_ivs_info to
6584         opt_info and expand it to support variable expansion.
6585         (analyze_insns_in_loop): Rename analyze_ivs_to_split and
6586         expand it to support variable expansion.
6587         (pt_info_start_duplication): Rename si_info_start_duplication.
6588         (apply_opt_in_copies): Rename split_ivs_in_copies and add support
6589         to the variable expansion optimization.
6590         (free_opt_info): Rename free_si_info.
6591         (analyze_insn_to_expand_var, referenced_in_one_insn_in_loop_p,
6592         expand_var_during_unrolling, insert_var_expansion_initialization,
6593         combine_var_copies_in_loop_exit, release_var_copies,
6594         get_expansion): New functions.
6595         (peel_loop_completely, unroll_loop_constant_iterations,
6596         unroll_loop_runtime_iterations, peel_loop_simple,
6597         unroll_loop_stupid): Change uses of struct si_info
6598         to struct opt_info
6599         and add uses of fvariable-expansion-in-unroller flag.
6600         * params.def: Add parameter to restrict the number of expansions.
6601         * params.h: (MAX_VARIABLE_EXPANSIONS): New define to restrict
6602         the number of expansions.
6603         * common.opt: (fvariable-expansion-in-unroller): New flag.
6604         * doc/invoke.texi: (fvariable-expansion-in-unroller): Document.
6605
6606 2004-10-18  Danny Smith  <dannysmith@users.sourceforge.net>
6607
6608         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define
6609         __GXX_MERGED_TYPEINFO_NAMES to 0.
6610
6611 2004-10-17  Hans-Peter Nilsson  <hp@bitrange.com>
6612
6613         * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
6614         handle barriers in a bb by checking that it points to a NULL bb.
6615         * emit-rtl.c (emit_barrier_before): Set BLOCK_FOR_INSN to NULL.
6616         (emit_barrier_after, emit_barrier): Ditto.
6617
6618 2004-10-18  Joseph S. Myers  <jsm@polyomino.org.uk>
6619
6620         * doc/extend.texi (Attribute Syntax): Clarify details of
6621         attributes on parameters.
6622
6623 2004-10-17  Zdenek Dvorak  <dvorakz@suse.cz>
6624
6625         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Move checking out of
6626         loop.
6627
6628 2004-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
6629
6630         Revert:
6631         2004-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
6632
6633         * c-typeck.c (default_function_array_conversion): Always create
6634         &a[0] for array types.
6635         (build_unary_op): Do not fold &a[x] into a + x.
6636
6637 2004-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
6638
6639         PR middle-end/17925
6640         * cfgexpand.c (expand_gimple_cond_expr): Emit line notes for next basic
6641         block if there is a goto with a locus.
6642
6643 2004-10-17  Kazu Hirata  <kazu@cs.umass.edu>
6644
6645         * config/elfos.h, config/gofast.h, config/interix.h,
6646         config/netbsd.h, config/svr3.h, config/vxworks.h,
6647         config/alpha/alpha-modes.def, config/alpha/alpha-protos.h,
6648         config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
6649         config/alpha/netbsd.h, config/arm/arm-modes.def,
6650         config/arm/unknown-elf.h, config/c4x/c4x-modes.def,
6651         config/cris/aout.h, config/frv/frv-modes.def,
6652         config/i386/beos-elf.h, config/i386/gas.h,
6653         config/i386/i386-coff.h, config/i386/i386-modes.def,
6654         config/i386/linux.h, config/i386/linux64.h,
6655         config/i386/mingw32.h, config/i386/netbsd-elf.h,
6656         config/i386/netbsd64.h, config/i386/sco5.h,
6657         config/i386/sol2.h, config/i386/uwin.h, config/i860/i860.md,
6658         config/ia64/ia64-modes.def, config/ia64/itanium1.md,
6659         config/ia64/itanium2.md, config/m68k/m68k-modes.def,
6660         config/mips/mips-modes.def, config/mips/sdb.h,
6661         config/mips/vr.h, config/mips/vxworks.h,
6662         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h,
6663         config/pa/pa32-linux.h, config/rs6000/40x.md,
6664         config/rs6000/7450.md, config/rs6000/8540.md,
6665         config/rs6000/linuxspe.h, config/rs6000/power4.md,
6666         config/rs6000/rs6000-modes.def, config/rs6000/rtems.h,
6667         config/rs6000/spe.h, config/s390/2064.md, config/s390/linux.h,
6668         config/s390/s390-modes.def, config/sh/elf.h,
6669         config/sh/sh-modes.def, config/sh/sh64.h,
6670         config/sparc/ultra1_2.md, config/sparc/ultra3.md,
6671         config/stormy16/stormy16.md, config/v850/v850-protos.h,
6672         config/vax/vax.md: Update copyright.
6673
6674 2004-10-17  Kazu Hirata  <kazu@cs.umass.edu>
6675
6676         * expr.c (expand_expr_real_1): Remove an obsolete comment.
6677
6678 2004-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
6679
6680         * c-typeck.c (default_function_array_conversion): Always create
6681         &a[0] for array types.
6682         (build_unary_op): Do not fold &a[x] into a + x.
6683
6684 2004-10-17  Jakub Jelinek  <jakub@redhat.com>
6685
6686         * pointer-set.c (hash1): Use integer part of 2^64 / phi
6687         instead 2^32 / phi if long is 64-bit.
6688
6689 2004-10-17  Joseph S. Myers  <jsm@polyomino.org.uk>
6690
6691         * c-common.h (enum rid): Remove RID_PTRBASE, RID_PTREXTENT and
6692         RID_PTRVALUE.
6693         * c-parse.in (PTR_VALUE, PTR_BASE, PTR_EXTENT): Remove %token
6694         declarations.
6695         (reswords): Remove __ptrbase, __ptrbase__, __ptrextent,
6696         __ptrextent__, __ptrvalue and __ptrvalue__.
6697         (rid_to_yy): Remove RID_PTRBASE, RID_PTREXTENT and RID_PTRVALUE
6698         entries.
6699
6700 2004-10-16  Dale Johannesen  <dalej@apple.com>
6701
6702         * c-common.c (c_common_get_alias_set):  Use GGC for type_hash_table.
6703
6704 2004-10-16  Zdenek Dvorak  <dvorakz@suse.cz>
6705
6706         PR tree-optimization/17766
6707         * basic-block.h (enum dom_state): DOM_CONS_OK removed.
6708         (dom_info_available_p): Declare.
6709         * cfghooks.c (split_block, make_forwarder_block): Use
6710         dom_info_available_p.
6711         * dominance.c (compute_dom_fast_query, calculate_dominance_info,
6712         free_dominance_info, verify_dominators): Ditto.
6713         (dom_info_available_p): New function.
6714         * tree-cfg.c (cleanup_control_expr_graph): Free dominance information.
6715         (thread_jumps): Use dom_info_available_p.
6716         * tree-complex.c (expand_complex_div_wide): Ditto.
6717         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
6718
6719 2004-10-16  Zdenek Dvorak  <dvorakz@suse.cz>
6720
6721         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field important_candidates.
6722         (find_best_candidate): Take also important candidates into account.
6723         (find_optimal_iv_set): Initialize important_candidates bitmap.
6724
6725 2004-10-16  Zdenek Dvorak  <dvorakz@suse.cz>
6726
6727         PR tree-optimization/17560
6728         * predict.c (tree_estimate_probability): Mark irreducible
6729         loops.
6730
6731 2004-10-16  Zdenek Dvorak  <dvorakz@suse.cz>
6732
6733         PR rtl-optimization/17723
6734         * cfgcleanup.c (merge_memattrs): Handle case when
6735         MEM_SIZE == NULL_RTX.
6736
6737 2004-10-15  Andrew Pinski  <pinskia@physics.uc.edu>
6738
6739         * toplev.c (dump_file_name): Change type to be const.
6740
6741 2004-10-15  Joseph S. Myers  <jsm@polyomino.org.uk>
6742
6743         * c-typeck.c (build_compound_expr, build_c_cast): Don't try to use
6744         non_lvalue to stop something being a null pointer constant.
6745
6746 2004-10-15  Aldy Hernandez  <aldyh@redhat.com>
6747
6748         * config/rs6000/rs6000.h (FUNCTION_ARG_REGNO_P): FPRs are only
6749         available for TARGET_FPRS.
6750         (FUNCTION_VALUE_REGNO_P): Same.
6751
6752 2004-10-15  Geoffrey Keating  <geoffk@apple.com>
6753
6754         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6755         -maltivec in same style as other ISA options.
6756
6757 2004-10-15  Jon Grimm <jgrimm2@us.ibm.com>
6758
6759         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __powerpc__
6760         definition.
6761
6762 2004-10-15  Kazu Hirata  <kazu@cs.umass.edu>
6763
6764         * bitmap.c, bitmap.h, builtin-attrs.def, cfglayout.h,
6765         collect2.h, conflict.c, coretypes.h, coverage.h, errors.h,
6766         gcc.h, gcov-dump.c, gen-protos.c, gencheck.c, gencodes.c,
6767         genconstants.c, gengenrtl.c, genmodes.c, genpeep.c,
6768         gensupport.h, graph.h, gthr-gnat.c, gthr-gnat.h, gthr-posix.c,
6769         gthr-posix.h, hard-reg-set.h, hwint.h, integrate.h, libgcc2.c,
6770         lists.c, machmode.def, mips-tdump.c, opts.h, params.c,
6771         predict.def, predict.h, protoize.c, reload.h, resource.h,
6772         rtl-error.c, sbitmap.c, sbitmap.h, sreal.c, tlink.c,
6773         tree-dump.h, tree-inline.h, unwind-dw2-fde.c, unwind-dw2.c,
6774         unwind-sjlj.c, value-prof.h: Update copyright.
6775
6776 2004-10-15  Kazu Hirata  <kazu@cs.umass.edu>
6777
6778         * pointer-set.c, tree-vectorizer.c: Fix comment typos.
6779
6780 2004-10-15  Diego Novillo  <dnovillo@redhat.com>
6781
6782         * tree-optimize.c (execute_one_pass): Stop timer right after
6783         executing the pass.
6784
6785 2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
6786
6787         Revert:
6788         2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
6789         PR middle-end/17967
6790         Revert:
6791                 * tree-cfg.c (remove_usless_stmts_cond):  Fold statement.
6792                 (remove_useless_stmts_1):  Fold trees we know how to fold.
6793
6794 2004-10-14  David Edelsohn  <edelsohn@gnu.org>
6795
6796         * configure.ac: Add .machine power4 directive when testing for
6797         mfcr field.
6798         * configure: Regenerate.
6799
6800 2004-10-14  Geoffrey Keating  <geoffk@apple.com>
6801
6802         * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Don't define.
6803
6804 2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
6805
6806         * tree-vectorizer.c (vect_transform_loop): Declare vectorization_factor
6807         always.
6808
6809 2004-10-14  Daniel Jacobowitz  <dan@codesourcery.com>
6810
6811         * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Return NO_REGS
6812         for 'f' if !TARGET_FPRS.
6813
6814 2004-10-14  Richard Henderson  <rth@redhat.com>
6815
6816         PR debug/14492
6817         * dwarf2out.c (loc_descriptor_from_tree_1): Handle FIX_*_EXPR.
6818
6819 2004-10-14  Richard Henderson  <rth@redhat.com>
6820
6821         PR c/17023
6822         * c-decl.c (store_parm_decls_oldstyle): Care for parameter type
6823         as error_mark_node.
6824         * c-parse.in (compstmt_primary_start): Check cur_stmt_list non-null
6825         instaed of current_function_decl non-null.
6826
6827 2004-10-14  Matt Austern  <austern@apple.com>
6828
6829         * pointer-set.c: New file, special-purpose hash table.
6830         * pointer-set.h: New file.
6831         * tree.h (struct pointer_set_t): Declare as opaque type.
6832         (tree_walk): Last argument is pointer_set_t* now.
6833         * tree-inline.c (WALK_SUBTREE): Convert from htab to pset.
6834         (walk_type_fields):
6835         (walk_tree): Convert from htab_t to pointer_set_t for keeping
6836         track of which nodes have already been visited.
6837         (walk_tree_without_duplicates): Convert from htab_t to pointer_set_t.
6838         * cgraphunit.c (cgraph_create_edges): Likewise.
6839         (cgraph_characterize_statics_local): Likewise.
6840         * tree-dfa.c (collect_dfa_stats): Likewise.
6841         * langhooks-def.h (lhd_tree_inlining_walk_subtrees): Last arg is
6842         pointer_set_t* now.
6843         * langhooks.c (lhd_tree_inlining_walk_subtrees): Likewise.
6844         * langhooks.h (struct lang_hooks_for_tree_inlining): Last arg type
6845         of walk_subtrees is pointer_set_t* now.
6846         * Makefile.in (OBJS-common): add pointer-set.o
6847         (tree-inline.o): Depends on pointer-set.h
6848         (tree-dfa.o): Likewise
6849         (cgraphunit.o): Likewise
6850
6851 2004-10-14  Geoffrey Keating  <geoffk@apple.com>
6852
6853         * config/rs6000/darwin.h (ASM_SPEC): Delete.
6854         (TARGET_ASM_FILE_START): Define.
6855         * config/darwin.h (ASM_SPEC): Define.
6856         * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Don't supply
6857         -mlong-double-128, it's the default.  Update comment about reason
6858         for force_cpusubtype_ALL.
6859         * config/rs6000/darwin-vecsave.asm: Supply .machine.
6860         * config/rs6000/darwin-world.asm: Likewise.
6861         * config/rs6000/rs6000.c (rs6000_darwin_file_start): New.
6862         (symbolic_operand): Delete #if 0ed code.
6863
6864 2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
6865
6866         * stmt.c (add_case_node): Make sure that we have integer
6867         constant before calling tree_int_cst_compare.
6868
6869 2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
6870
6871         PR middle-end/17967
6872         Revert:
6873                 * tree-cfg.c (remove_usless_stmts_cond):  Fold statement.
6874                 (remove_useless_stmts_1):  Fold trees we know how to fold.
6875
6876 2004-10-14  Joseph S. Myers  <joseph@codesourcery.com>
6877
6878         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS),
6879         config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow
6880         -m64.
6881
6882 2004-10-14  Ulrich Weigand  <uweigand@de.ibm.com>
6883
6884         * reload.c (find_reloads): When reloading a PLUS with constant
6885         operand, make sure the constant is pushed to the constant pool
6886         if required.
6887         * config/s390/s390.c (s390_secondary_input_reload_class): Remove
6888         reload bug workaround.
6889         (s390_expand_plus_operand): Likewise.
6890
6891 2004-10-14  David Edelsohn  <edelsohn@gnu.org>
6892
6893         * opts.c (common_handle_option): Do not enable
6894         flag_speculative_prefetching for -fprofile-generate/use.
6895
6896 2004-10-14  Devang Patel  <dpatel@apple.com>
6897
6898         PR 17635
6899         * tree-if-conv.c (process_phi_nodes): Process latch block.
6900         (combine_blocks): Process latch block and update loop structure.
6901
6902 2004-10-14  Olga Golovanevsky  <olga@il.ibm.com>
6903
6904         * tree-vectorizer.c (vect_generate_tmps_on_preheader):
6905         (vect_update_ivs_after_vectorizer):
6906         (vect_transform_for_unknown_loop_bound):
6907         (tree_duplicate_loop_to_edge):
6908         (allocate_new_names):
6909         (rename_use_op):
6910         (rename_def_op):
6911         (rename_variables_in_bb):
6912         (free_new_names):
6913         (rename_variables_in_loop):
6914         (copy_phi_nodes):
6915         (update_phis_for_duplicate_loop):
6916         (update_phi_nodes_for_guard):
6917         (make_loop_iterate_ntimes):
6918         (tree_duplicate_loop_to_edge_cfg):
6919         (add_loop_guard):
6920         (vect_analyze_loop_with_symbolic_num_of_iters):
6921         (verify_loop_for_duplication):
6922         (vect_gen_niters_for_prolog_loop):
6923         (vect_update_niters_after_peeling):
6924         (vect_update_inits_of_dr):
6925         (vect_update_inits_of_drs):
6926         (vect_build_loop_niters):
6927         (vect_do_peeling_for_alignment): New functions.
6928         (vect_transform_loop): Add unknown and known but indivisible loop
6929         bound support; add peeling for unalignment support.
6930         (vect_analyze_loop_form): Support symbolic number of iterations.
6931         (vect_transform_loop_bound): New input parameter.
6932         (vect_get_loop_niters): Change input parameter type.
6933         (new_loop_vec_info): LOOP_VINFO_NITERS is tree now.
6934         (vectorizable_store): Allow unaligned access.
6935         (vectorize_loops): Add rewrite_into_loop_closed_ssa.
6936         (vect_analyze_data_refs_alignment): Allowed one unaligned
6937         store.
6938         * tree-vectorizer.h (LOOP_VINFO_NITERS_KNOWN_P): Redefined
6939         to use tree.
6940         (LOOP_VINFO_INT_NITERS): New macro.
6941         (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): New define.
6942         (do_peeling_for_alignment):
6943         (unaligned_drs): New members of _loop_vec_info.
6944         (LOOP_DO_PEELING_FOR_ALIGNMENT): New macro.
6945
6946 2004-10-14  Ranjit Mathew  <rmathew@hotmail.com>
6947
6948         * tree.h (TREE_STRING_POINTER): Wrap in "const char *".
6949         (struct tree_string): Remove "const" qualifier for "str".
6950
6951 2004-10-14  Ira Rosen  <irar@il.ibm.com>
6952
6953         * tree-vectorizer.c (vect_analyze_data_refs): Call
6954         vect_get_base_and_bit_offset to get memory tag for array ref.
6955         (vect_create_addr_base_for_vector_ref): Remove redundant checks.
6956
6957 2004-10-14  Richard Earnshaw  <rearnsha@arm.com>
6958
6959         * configure.ac: Use $LN_S for creating symlinks (not $LN).
6960         * configure: Regenerate.
6961
6962 2004-10-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6963
6964         * doc/install.texi (*-*-solaris2*): Update with info about kernel
6965         patches to solve spurious testsuite failures.
6966
6967 2004-10-14  Dorit Naishlos  <dorit@il.bim.com>
6968
6969         * tree-vectorizer.c (get_vectype_for_scalar_type): Added debug prinouts.
6970         Added check that vectype is VECTOR_MODE_P, instead of check for BLKmode.
6971         (vect_analyze_operations): Make sure the vectorization factor > 1. Add
6972         gcc_assert under ENABLE_CHECKING.
6973         (vectorizable_operation): Remove check for VECTOR_MODE_P (moved to
6974         get_vectype_for_scalar_type).
6975
6976         (vect_get_vec_def_for_operand): Remove redundant variables.
6977         (vect_transform_loop): Likewise.
6978
6979 2004-10-14  Richard Sandiford  <rsandifo@redhat.com>
6980
6981         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Make r11 fixed and
6982         global for -mcaller-super-interworking.
6983         (CALLER_INTERWORKING_SLOT_SIZE): New macro.
6984         * config/arm/arm.c (thumb_compute_save_reg_mask): Save r11 if
6985         CALLER_INTERWORKING_SLOT_SIZE is nonzero and the function does
6986         not need a frame pointer.
6987         (arm_get_frame_offsets): Add CALLER_INTERWORKING_SLOT_SIZE bytes to
6988         the soft frame pointer offset.
6989         (thumb_expand_prologue): Set up r11 for -mcaller-super-interworking.
6990         * config/arm/arm.md (*call_reg_thumb, *call_value_reg_thumb): Use
6991         _interwork_{r7,r11}_call_via_rN if some arguments are passed on
6992         the stack.  Use frame_pointer_needed to choose between them.
6993         * config/arm/lib1funcs.asm (_arm_return_{r7,r11}): New functions.
6994         (interwork_with_frame): New macro.
6995         (interwork): Add _interwork_{r7,r11}_call_via_rN().
6996
6997 2004-10-14  Ben Elliston  <bje@au.ibm.com>
6998
6999         PR other/17900
7000         * diagnostic.c (trim_filename): Fix logic bug in walking backwards
7001         up the filename looking for a previous directory separator.
7002
7003 2004-10-14  Joseph S. Myers  <jsm@polyomino.org.uk>
7004
7005         * c-tree.h (enum c_typespec_kind, struct c_typespec,
7006         parser_xref_tag): New.
7007         (struct c_declspecs): Add tag_defined_p.  Adjust definition of
7008         typedef_p.
7009         (declspecs_add_type): Adjust prototypes.
7010         * c-parse.in (%union): Add tstype.
7011         (typespec_nonattr, typespec_attr, typespec_reserved_nonattr,
7012         typespec_reserved_attr, typespec_nonreserved_nonattr,
7013         structsp_attr, structsp_nonattr): Change to tstype.  Update
7014         actions.
7015         * c-decl.c (build_null_declspecs): Initialize tag_defined_p.
7016         (declspecs_add_type): Update to take struct c_typespec argument.
7017         Set tag_defined_p and typedef_p as appropriate.
7018         (xref_tag): Rename to parser_xref_tag and replace by wrapper.
7019         Update to return struct c_typespec.
7020         (shadow_tag_warned): Don't let empty declarations with qualifiers
7021         or storage class specifiers redeclare a tag if a previous
7022         declaration is visible.
7023
7024 2004-10-13  Richard Henderson  <rth@redhat.com>
7025
7026         PR debug/15860
7027         * dwarf2out.c (rtl_for_decl_location): Apply big-endian correction
7028         for DECL_INCOMING_RTL.
7029
7030 2004-10-14  Hans-Peter Nilsson  <hp@axis.com>
7031
7032         PR target/17984
7033         * config/cris/cris.md (asrandb, asrandw, lsrandb, lsrandw): Apply
7034         trunc_int_for_mode for constants used in shortened mode.
7035
7036 2004-10-13  Richard Henderson  <rth@redhat.com>
7037
7038         PR c/17384
7039         * c-common.c (handle_mode_attribute): Disallow mode changes that
7040         alter the CODE of the top-level type.
7041
7042         * crtstuff.c (__FRAME_END__): Remove mode attribute.  Find 32-bit
7043         integer from internal limits macros.
7044         * config/i386/mm3dnow.h (__v2sf): Fix base type.
7045
7046 2004-10-13  Richard Henderson  <rth@redhat.com>
7047
7048         PR debug/13841
7049         * function.c (instantiate_decl): Recurse for CONCAT.
7050
7051 2004-10-13  David Edelsohn  <edelsohn@gnu.org>
7052
7053         * config/rs6000/rs6000.md (andsi3): Add attribute "compare" for
7054         andi./andis.
7055         (anddi3): Same.
7056         (extzvdi_internal1): Add attribute "compare".
7057         (extzvdi_internal2): Same.
7058
7059 2004-10-12  Tom Tromey  <tromey@redhat.com>
7060
7061         * doc/md.texi (Insn Canonicalizations): Removed extraneous quote.
7062
7063 2004-10-13  Dale Johannesen  <dalej@apple.com>
7064
7065         * doc/extend.texi (Extended Asm):  Rewrite asm volatile description.
7066
7067 2004-10-13  Frank Ch. Eigler  <fche@redhat.com>
7068
7069         * toplev.c (compile_file): Call mudflap_finish_file from here ...
7070         * c-decl.c (c_write_global_declarations): ... instead of here ...
7071         * cp/decl.c (cp_finish_file): ... and here.
7072         * tree-mudflap.c (mudflap_enqueue_decl): Reword a warning message.
7073
7074 2004-10-13  Andrew Pinski  <pinskia@physics.uc.edu>
7075
7076         * tree-ssa-dom.c (record_range): Free the element if we are not
7077         going to use it.
7078
7079 2004-10-13  Tom Tromey  <tromey@redhat.com>
7080
7081         PR java/15578:
7082         * gcc.c (option_map): Added --extdirs and --encoding.
7083
7084 2004-10-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
7085
7086         PR target/14454
7087         * config/sparc/sparc.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Set to
7088         sparc_can_output_mi_thunk.
7089         (sparc_output_mi_thunk): Simplify handling of delta offset.  Add
7090         handling of vcall offset.
7091         (sparc_can_output_mi_thunk): New predicate.
7092         * doc/tm.texi (TARGET_ASM_OUTPUT_MI_THUNK): Document VCALL_OFFSET.
7093         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Delete.
7094         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New target hook.
7095
7096         * config/sparc/sparc.c (emit_and_preserve): Preserve stack alignment.
7097
7098         * config/sparc/sparc.md (movdi): Remove redundant test.
7099
7100 2004-10-13  Paolo Bonzini  <bonzini@gnu.org>
7101
7102         * tree-dump.c (dump_options): Remove TDF_TREE, TDF_RTL,
7103         TDF_IPA from -fdump-tree-*-all.
7104
7105 2004-10-13  Paul Brook  <paul@codesourcery.com>
7106
7107         * config/arm/arm-protos.h (arm_load_pic_register): Update prototype.
7108         * config/arm/arm.c (thumb_find_work_register): Update comments.
7109         (arm_load_pic_register): Add argument for scratch register.
7110         (arm_expand_prologue, thumb_expand_prologue): Pass extra argument.
7111         * config/arm/arm.md (builtin_setjmp_receiver): Ditto.
7112
7113 2004-10-13  Kazu Hirata  <kazu@cs.umass.edu>
7114
7115         * tree-data-ref.c: Fix comment typos.
7116
7117 2004-10-13  Jakub Jelinek  <jakub@redhat.com>
7118             Zdenek Dvorak  <dvorakz@suse.cz>
7119
7120         PR tree-optimization/17724
7121         * tree-cfg.c (tree_purge_dead_eh_edges): Free dominance info.
7122
7123 2004-10-13  Dorit Naishlos  <dorit@il.ibm.com>
7124
7125         * rs6000.c (altivec_builtin_mask_for_load): Made static GTY(()).
7126         (altivec_builtin_mask_for_store): Likewise.
7127         (altivec_init_builtins): Use lang_hooks.builtin_function to
7128         create the decls for builtin_altivec_mask_for_load/store.
7129
7130 2004-10-13  Nick Clifton  <nickc@redhat.com>
7131
7132         * config/c4x/c4x.c: Remove inclusion of loop.h.
7133
7134 2004-10-12  Ben Elliston  <bje@au.ibm.com>
7135
7136         * basic-block.h (edge_iterator): Keep the address of VEC(edge) *.
7137         (ei_container): New; renamed.
7138         (ei_start, ei_last): New macros.
7139         (ei_start_1, ei_last_1): Renamed from ei_start.
7140         (ei_last_1, ei_end_p): Use ei_container() where applicable.
7141         (ei_one_before_end_p, ei_next, ei_edge): Likewise.
7142         * gcse.c (remove_reachable_equiv_notes): Use ei_container().
7143
7144 2004-10-11  Sebastian Pop  <pop@cri.ensmp.fr>
7145
7146         * Makefile.in (tree-ssa-loop-niter.o): Depends on tree-data-ref.h.
7147         * cfgloop.c (initialize_loops_parallel_p): New.
7148         (flow_loops_find): Initialize the parallel_p field to true for all
7149         the loops.
7150         * tree-ssa-loop-niter.c: Include "tree-data-ref.h".
7151         (estimate_numbers_of_iterations_loop): Infers the loop bounds from
7152         the size of the data accessed in the loop.
7153         (struct nb_iter_bound): Moved...
7154         * cfgloop.h (struct nb_iter_bound): ... here.
7155         (estimated_nb_iterations, parallel_p): New fields in struct loop.
7156         (record_estimate): Declare extern here.
7157         * tree-chrec.c: Fix comments.
7158         (nb_vars_in_chrec): New function.
7159         * tree-chrec.h (nb_vars_in_chrec): Declared here.
7160         * tree-data-ref.c: Don't include lambda.h, that is already included
7161         in tree-data-ref.h.
7162         (tree_fold_divides_p): Don't check for integer_onep.
7163         (tree_fold_bezout): Removed.
7164         (gcd): New static duplicated function.
7165         (int_divides_p, dump_subscript): New.
7166         (dump_data_dependence_relation): Use dump_subscript.
7167         (dump_dist_dir_vectors, dump_ddrs, compute_estimated_nb_iterations,
7168         estimate_niter_from_size_of_data): New.
7169         (analyze_array_indexes, analyze_array): Call
7170         estimate_niter_from_size_of_data during the detection of array
7171         references.  Pass in a pointer to the statement that contains the
7172         array reference.
7173         (all_chrecs_equal_p): New.
7174         (compute_distance_vector): Renamed compute_subscript_distance.
7175         Deal with multivariate conflict functions.
7176         (initialize_data_dependence_relation): Initialize DDR_AFFINE_P,
7177         DDR_SIZE_VECT, DDR_DIST_VECT, and DDR_DIR_VECT.
7178         (non_affine_dependence_relation): New.
7179         (analyze_ziv_subscript, analyze_siv_subscript_cst_affine,
7180         analyze_siv_subscript, analyze_miv_subscript,
7181         analyze_overlapping_iterations, subscript_dependence_tester):
7182         Initialize and return last_conflicts function.
7183         (initialize_matrix_A, FLOOR, compute_overlap_steps_for_affine_univar,
7184         compute_overlap_steps_for_affine_1_2): New.
7185         (analyze_siv_subscript_affine_cst): Removed.
7186         (analyze_subscript_affine_affine): Disprove dependences based on the
7187         iteration domains.  Solve the univariate dependence case as before,
7188         but use lambda_matrix_right_hermite instead of tree_fold_bezout.
7189         Implement the multivariate case of 2 versus 1 variables.
7190         (build_classic_dist_vector, build_classic_dir_vector): Implement some
7191         unhandled cases.
7192         (find_data_references_in_loop): Compute and initialize
7193         loop->estimated_nb_iterations and loop->parallel_p.
7194         (analyze_all_data_dependences): Modify the debug dump order.
7195         * tree-data-ref.h (SUB_LAST_CONFLICT_IN_A, SUB_LAST_CONFLICT_IN_B,
7196         subscript->last_conflict_in_a, subscript->last_conflict_in_b): Removed.
7197         (SUB_LAST_CONFLICT, subscript->last_conflict,
7198         data_dependence_relation->affine_p, data_dependence_relation->size_vect,
7199         DDR_AFFINE_P, DDR_SIZE_VECT): New.
7200         (find_data_references_in_loop, initialize_data_dependence_relation,
7201         dump_subscript, dump_ddrs, dump_dist_dir_vectors): Declared here.
7202
7203 2004-10-12  Kelley Cook  <kcook@gcc.gnu.org>
7204
7205         * configure: Regenerate.
7206
7207 2004-10-12  Fariborz Jahanian <fjahanian@apple.com>
7208
7209         PR 17892
7210         * tree-ssa-dom.c (unsafe_associative_fp_binop): New function.
7211         (simplify_rhs_and_lookup_avail_expr): Disallow associativity
7212         and constant folding of floating point MULT_EXPR/PLUS_EXPR
7213         expressions.
7214
7215 2004-10-12  Ulrich Weigand  <uweigand@de.ibm.com>
7216
7217         * config/s390/s390.c (s390_va_start): Use build_va_arg_indirect_ref.
7218         (s390_gimplify_va_arg): Likewise.
7219
7220 2004-10-12  Daniel Jacobowitz  <dan@debian.org>
7221
7222         * defaults.h (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P)
7223         (MODE_BASE_REG_REG_CLASS, REGNO_MODE_OK_FOR_REG_BASE_P)
7224         (REG_MODE_OK_FOR_REG_BASE_P): Provide default definitions.
7225         * regclass.c (record_address_regs): Remove ifdef.  Use
7226         REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
7227         * regrename.c (REG_MODE_OK_FOR_BASE_P): Remove unnecessary
7228         definition.
7229         (scan_rtx_address, replace_oldest_value_addr): Use
7230         REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
7231         * reload.c (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Remove
7232         unnecessary definitions.
7233         (find_reloads_address_1): Support REG_MODE_OK_FOR_REG_BASE_P
7234         and MODE_BASE_REG_REG_CLASS.
7235         * config/arm/arm.h (MODE_BASE_REG_CLASS): Don't check reload_completed.
7236         (MODE_BASE_REG_REG_CLASS): Define.
7237         (REGNO_MODE_OK_FOR_REG_BASE_P): Define.
7238         (REG_MODE_OK_FOR_REG_BASE_P): Define.
7239         * doc/tm.texi (Register Classes): Document MODE_BASE_REG_REG_CLASS,
7240         REG_MODE_OK_FOR_REG_BASE_P, and REGNO_MODE_OK_FOR_REG_BASE_P.
7241
7242 2004-10-12  Daniel Berlin <dberlin@dberlin.org>
7243
7244         * tree-ssa-alias.c (verify_name_tags): New function.
7245         (verify_flow_sensitive_alias_info): Remove code that used to check name tags.
7246         (verify_alias_info): Call verify_name_tags.
7247
7248 2004-10-12  Kazu Hirata  <kazu@cs.umass.edu>
7249
7250         PR rtl-optimization/17931
7251         * config/i386/i386.c (ix86_rtx_costs): Handle COMPARE with
7252         ZERO_EXTRACT in it.
7253
7254 2004-10-12  Richard Earnshaw  <rearnsha@arm.com>
7255
7256         * arm.c (arm_print_operand): Use output_operand_lossage where possible
7257         rather than aborting.
7258
7259 2004-10-12  Paul Brook  <paul@coudesourcery.com>
7260
7261         * config.gcc: Add armv6{k,z,zk}
7262         * config/arm/arm-cores.def: Add arm1176 and mpcore.
7263         * config/arm/tune.md: Regenerate.
7264         * config/arm/arm.c (FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK):
7265         Define.
7266         (all_architectures): Add armv6k, armv6z, armv6zk.
7267         * config/arm/lib1funcs.asm: Recognise new arm arcitectures.
7268         * doc/invoke.texi: Document new arch and cpu values.
7269
7270 2004-10-12  Paul Brook  <paul@coodesourcery.com>
7271
7272         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Change meabi=3 to
7273         meabi=4.
7274
7275 2004-10-12  Paul Brook  <paul@codesourcery.com>
7276
7277         * config/arm/arm.md (addsi3_cbranch_scratch): Correct constraints.
7278         Handle negative constants.
7279
7280 2004-10-12  Joseph S. Myers  <jsm@polyomino.org.uk>
7281
7282         PR c/17301
7283         * c-typeck.c (convert_arguments): Return error_mark_node if there
7284         are too few arguments.
7285         (build_function_call): Handle error_mark_node return from
7286         convert_arguments.
7287
7288 2004-10-06  Paolo Bonzini  <bonzini@gnu.org>
7289
7290         * configure.ac (symbolic_link): Replace with $LN_S.
7291         (Assembler/Linker): Hard link from gas and binutils trees.
7292         * aclocal.m4 (gcc_AC_PROG_LN_S): Try "cp -p" before cp.
7293         * configure: Regenerate.
7294
7295 2004-10-12  Paul Brook  <paul@codesourcery.com>
7296
7297         * configure.ac: Don't look for host assembler when building a canadian
7298         cross.
7299         * configure: Regenerate.
7300
7301 2004-10-11  Roger Sayle  <roger@eyesopen.com>
7302
7303         PR other/17361
7304         * c-opts.c (permit_fortran_options): Delete/obsolete global variable.
7305         (c_common_init_options): Remove #ifdef CL_F77 code.  Scan command
7306         line options for "-lang-asm" and if found allow any of the C-family
7307         front-end options.
7308         (c_common_handle_option): Remove last use of permit_fortran_options.
7309
7310 2004-10-11  Ulrich Weigand  <uweigand@de.ibm.com>
7311
7312         * config/s390/s390.c (print_operand): Support 'S' format flag.
7313         * config/s390/s390.md ("*tmqi_mem"): Use 'S' format flag.
7314         ("*tstsi", "*tstsi_cconly", "*tstsi_cconly2"): Likewise.
7315         ("*tsthiCCT", "*tsthiCCT_cconly", "*tsthi", "*tsthi_cconly"): Likewise.
7316         ("*tstqiCCT", "*tstqiCCT_cconly", "*tstqi", "*tstqi_cconly"): Likewise.
7317         ("*cmphi_ccu", "*cmpqi_ccu", "*clc"): Likewise
7318         ("movti", "*movdi_31", "*movqi", "*movdf_31", "*mvc"): Likewise.
7319         ("*movstricthi"): Likewise.
7320         ("*load_multiple_di", "*load_multiple_si"): Likewise.
7321         ("*store_multiple_di", "*store_multiple_si"): Likewise.
7322         ("*sethiqisi", "*sethihisi"): Likewise.
7323         ("*sethiqidi_64", "*sethiqidi_31"): Likewise.
7324         ("*andqi3_zarch", "*andqi3_esa", "*nc"): Likewise.
7325         ("*iorqi3_zarch", "*iorqi3_esa", "*oc"): Likewise.
7326         ("*xorqi3", "*xc", "*xc_zero"): Likewise.
7327         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): Likewise.
7328
7329         ("*tmhi_full"): Fix incorrect op_type attribute.
7330
7331         ("*adddi3_alc_cc", "*adddi3_alc"): Remove double backslash.
7332         ("*subdi3_slb_cc", "*subdi3_slb"): Likewise.
7333         ("*addsi3_alc_cc", "*addsi3_alc"): Likewise.
7334         ("*subsi3_slb_cc", "*subsi3_slb"): Likewise.
7335
7336 2004-10-11  Andrew Pinski  <pinskia@physics.uc.edu
7337
7338         PR middle-end/16266
7339         * function.c (temp_slots_at_level): Fix typo which creates too
7340         many temp stack slots levels.
7341
7342 2004-10-11  Ulrich Weigand  <uweigand@de.ibm.com>
7343
7344         * config/s390/s390.c (s390_trampoline_template): Generate shorter
7345         trampoline code.
7346         (s390_trampoline_instantiate): Adapt.
7347         * config/s390/s390.h (TRAMPOLINE_SIZE): Adapt to new code.
7348
7349 2004-10-11  Roger Sayle  <roger@eyesopen.com>
7350
7351         PR middle-end/17657
7352         * stmt.c (add_case_node): Add additional type argument.  Declare
7353         as static to match prototype.  Convert the upper and lower bounds
7354         to the specified index type.  Optimize away case ranges/values
7355         that are outside the index type's bounds.  Truncate case ranges
7356         that span the index type's bounds.
7357         (expand_case): Avoid unnessary computation and memory allocation
7358         when index type is error_mark_node.  Pass index_type as required
7359         by change to add_case_node API.  No need to convert case range
7360         bounds to index_type, this is now done by add_case_node.
7361
7362 2004-10-11  Ulrich Weigand  <uweigand@de.ibm.com>
7363
7364         * config/s390/s390-protos.h (s390_offset_p): Add prototype.
7365         * config/s390/s390.c (s390_offset_p): New function.
7366         * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccu",
7367         "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use splitter to
7368         transform Q->Q alternatives to *clc pattern.
7369         ("*clc"): Move.
7370         ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
7371         "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf"): Use splitter
7372         to transform Q->Q alternatives to *mvc pattern.
7373         ("*mvc"): Move.  Add peephole to merge adjacent MVCs.
7374         ("*anddi3", "*andsi3_zarch", "*andsi3_esa", "*andhi3_zarch",
7375         "*andhi3_esa", "*andqi3_zarch", "*andqi3_esa"): Use splitter to
7376         transform Q->Q alternatives to *nc pattern.
7377         ("*nc"): New insn.  New peephole to merge adjacent NCs.
7378         ("*iordi3", "*iorsi3_zarch", "*iorsi3_esa", "*iorhi3_zarch",
7379         "*iorhi3_esa", "*iorqi3_zarch", "*iorqi3_esa"): Use splitter to
7380         transform Q->Q alternatives to *oc pattern.
7381         ("*oc"): New insn.  New peephole to merge adjacent OCs.
7382         ("*xordi3", "*xorsi3", "*xorhi3", "*xorqi3"): Use splitter to
7383         transform Q->Q alternatives to *xc pattern.
7384         ("*xc"): New insn.  New peephole to merge adjacent XCs.
7385         ("*xc_zero"): Move.  Add peephole to merge adjacent XCs.
7386
7387 2004-10-11  Andrew Pinski  <pinskia@physics.uc.edu>
7388
7389         * gimplify.c (gimple_push_condition): Make sure that we don't
7390         have any saved condition cleanup if we were at the top level.
7391
7392 2004-10-11  Richard Sandiford  <rsandifo@redhat.com>
7393
7394         * config/frv/frv.md (*adddi3_internal): Change name to...
7395         (adddi3): ...replacing the exisiting define_expand.  Combine
7396         alternatives.  Fix the range of the constant constraints ('J' instead
7397         of 'NOP').  Remove bogus operands[2] check.  Use simplify_gen_subreg
7398         to extract the lower and upper halves of the DImode operands.
7399         Always use addi3_lower and adddi3_upper, not the subdi3 forms.
7400         (adddi3_lower): Fix the range of the constant constraints and
7401         remove the bogus operands[2] check.
7402         (adddi3_upper): Use gpr_or_int10_operand as the predicate for
7403         operand 2.  Use addxi to handle constant operands.
7404         (subdi3_lower, subdi3_upper): Don't handle constant operands.
7405
7406 2004-10-11  Nathan Sidwell  <nathan@codesourcery.com>
7407
7408         * gengtype-lex.l: Add commented } & ) characters to unconfuse
7409         editor's paren matching. Allow #define inside a struct.
7410
7411 2004-10-10  Andrew Pinski  <pinskia@physics.uc.edu>
7412
7413         PR middle-end/17703
7414         part of PR c++/17657
7415         * fold-const.c (fold_build_cleanup_point_expr): New function.
7416         * tree.h (fold_build_cleanup_point_expr): Prototype.
7417
7418 2004-10-10  Eric Christopher  <echristo@redhat.com>
7419
7420         * dwarf2out.c: Move attribute to subprogram declaration
7421         instead of subroutine type.
7422
7423 2004-10-10  Kazu Hirata  <kazu@cs.umass.edu>
7424
7425         * basic-block.h: Remove the prototypes for can_hoist_insn_p,
7426         hoist_insn_after, and hoist_insn_to_edge.
7427         * rtl.h: Remove the prototypes for reg_referenced_between_p,
7428         no_jumps_between_p, and insn_dependent_p.
7429         * rtlanal.c (no_jumps_between_p, reg_referenced_between_p,
7430         insn_dependent_p, insn_dependent_p_1, hoist_test_store,
7431         can_hoist_insn_p, hoist_update_store, hoist_insn_after,
7432         hoist_insn_to_edge): Remove.
7433
7434 2004-10-10  Joseph S. Myers  <jsm@polyomino.org.uk>
7435
7436         PR c/17881
7437         * c-decl.c (grokparms): Don't warn for parameters of incomplete
7438         type in declarations that are not definitions except for the case
7439         of parameters of void type.
7440
7441 2004-10-10  Kazu Hirata  <kazu@cs.umass.edu>
7442
7443         * tree-cfg.c: Fix comment typos.
7444
7445 2004-10-10  Joseph S. Myers  <jsm@polyomino.org.uk>
7446
7447         PR c/17301
7448         * builtins.c (expand_builtin_va_start): Check for too few
7449         arguments to va_start.
7450
7451 2004-10-10  Joseph S. Myers  <jsm@polyomino.org.uk>
7452
7453         PR c/17189
7454         * c-decl.c (grokfield): Make diagnostic for bad cases of unnamed
7455         fields a pedwarn.  Pedwarn here for unnamed structs/unions if
7456         pedantic.
7457         * c-parse.in (component_decl): Don't pedwarn here for unnamed
7458         fields.
7459
7460 2004-10-09  Zdenek Dvorak  <dvorakz@suse.cz>
7461
7462         PR tree-optimization/17906
7463         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not attempt to
7464         copy non-gimple reg arguments.
7465
7466 2004-10-09  Roger Sayle  <roger@eyesopen.com>
7467
7468         PR rtl-optimization/17853
7469         * simplify-rtx.c (simplify_relational_operation): Correct comment.
7470         Reorganize handling of comparison operations with floating point
7471         results (always return 0.0 even without FLOAT_STORE_FLAG_VALUE).
7472         Likewise, introduce support for comparison operations with vector
7473         result types, introducing a new VECTOR_STORE_FLAG_VALUE target macro.
7474
7475         * doc/rtl.texi: Document new VECTOR_STORE_FLAG_VALUE target macro.
7476         * doc/tm.texi: Likewise.
7477
7478 2004-10-09  Steven Bosscher  <stevenb@suse.de>
7479
7480         * regs.h (struct reg_info_def): Remove the last_node_uid and
7481         changes_mode fields.
7482         (REGNO_LAST_NOTE_UID): Don't define.
7483         * regclass.c (reg_scan_mark_refs): Don't set REGNO_LAST_NOTE_UID.
7484         * regmove.c (copy_src_to_dest): Likewise.
7485
7486 2004-10-09  Roger Sayle  <roger@eyesopen.com>
7487
7488         PR middle-end/17894
7489         * fold-const.c (fold_div_compare): When optimizing X/C1 op C2, the
7490         relational comparison operator op needs to be swapped/reversed when
7491         C1 is negative.  i.e. X/-10 < 1 becomes X >= -9, not X < -9.
7492
7493 2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
7494
7495         PR tree-opt/17902
7496         * tree-ssa-phiopt.c (conditional_replacement): Use bsi_after_labels
7497         instead of bsi_start.
7498         (value_replacement): Likewise.
7499         (abs_replacement): Likewise
7500
7501 2004-10-09  Steven Bosscher  <stevenb@suse.de>
7502
7503         * cfgexpand.c (maybe_dump_rtl_for_tree_stmt): New function.
7504         (expand_gimple_cond_expr, expand_gimple_tailcall,
7505         expand_gimple_basic_block): Use it to dump RTL for each stmt.
7506         (tree_expand_cfg): Announce full RTL function dump.
7507         * tree-optimize.c (execute_one_pass): Use normal RTL printing,
7508         not the graph version.
7509         * tree-pretty-print.c (dump_generic_node): Allow empty statements
7510         in the arms of a COND_EXPR for lowered nodes.
7511
7512 2004-10-08  Joseph S. Myers  <joseph@codesourcery.com>
7513
7514         * config/rs6000/spe.h (atosfix16, atosfix32, atosfix64, atoufix16,
7515         atoufix32, atoufix64, strtosfix16, strtosfix32, strtosfix64,
7516         strtoufix16, strtoufix32, strtoufix64): Declare.
7517
7518 2004-10-08  Joseph S. Myers  <jsm@polyomino.org.uk>
7519
7520         * c-lex.c (interpret_float): Give a pedwarn rather than a warning
7521         for an out-of-range floating point constant.
7522         * builtins.c (fold_builtin_inf): Give a pedwarn rather than a
7523         warning if the target format does not support infinities.
7524
7525 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
7526
7527         * emit-rtl.c (last_label_num, base_label_num): Remove.
7528         (max_label_num): Always return label_num.
7529         (set_new_last_label_num, restore_emit_status): Remove.
7530         (init_emit): Don't initialize last_label_num.
7531         * function.c (pop_function_context_from): Don't call
7532         restore_emit_status.
7533         * function.h: Remove the prototype for restore_emit_status.
7534         * rtl.h: Remove the prototype for set_new_last_label_num.
7535
7536 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
7537
7538         * stmt.c (expand_decl_init): Remove.
7539         * tree.h: Remove the corresponding prototype.
7540
7541 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
7542
7543         * integrate.c (try_constants, subst_constants, mark_stores):
7544         Remove.
7545         * integrate.h: Remove the prototype for try_constants.
7546
7547 2004-10-08  Joseph S. Myers  <jsm@polyomino.org.uk>
7548
7549         * c-typeck.c (enum impl_conv): Add ic_argpass_nonproto.
7550         (convert_for_assignment): Handle ic_argpass_nonproto.  Add
7551         comments about its relevance to errors.
7552         (c_convert_parm_for_inlining): Use ic_argpass_nonproto.
7553
7554 2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
7555
7556         PR c/16999
7557         * c-ppoutput.c (cb_ident): Don't quote string as it is already
7558         quoted.
7559
7560 2004-10-08  Diego Novillo  <dnovillo@redhat.com>
7561
7562         * tree-ssa-pre.c (init_pre): Use size of ARRAY_REF to allocate
7563         reference_node_pool.
7564
7565 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
7566
7567         * tree-cfg.c: Fix a comment typo.
7568
7569 2004-10-08  Andreas Krebbel  <krebbel1@de.ibm.com>
7570
7571         * config/s390/s390.c (s390_register_info): Don't save fprs for
7572         -msoft-float.
7573         (s390_conditional_register_usage): Make fprs 'fixed' for -msoft-float.
7574
7575 2004-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
7576
7577         * config/s390/s390.h (TARGET_DEFAULT_BACKCHAIN): New define.
7578         (TARGET_DEFAULT): Use symbolic values.
7579         * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Redefine.
7580         (TARGET_DEFAULT): Use symbolic values.
7581         * config/s390/s390.c (s390_backchain_string): Initialize to
7582         TARGET_DEFAULT_BACKCHAIN.
7583
7584 2004-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7585
7586         * builtins.c (expand_builtin_mempcpy): Move tree handling code to
7587         fold_builtin_mempcpy.  Accept a type parameter.  Delete duplicate
7588         code.
7589         (expand_builtin_strcat): Accept a type parameter.
7590         (fold_builtin_mempcpy): Accept a type and endp parameter.
7591
7592         * builtins.c (expand_builtin_strncpy): Delete duplicate code.
7593         Accept an `exp' instead of an `arglist'.
7594
7595 2004-10-08  Nathan Sidwell  <nathan@codesourcery.com>
7596
7597         * tree-tailcall.c (tree_optimize_tail_calls_1): Use fold_convert,
7598         reverting my 2004-09-07 patch to use build_int_cst.
7599
7600 2004-10-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
7601
7602         PR target/17245
7603         * config/sparc/sparc.c (input_operand): Remove redundant code
7604         for handling LO_SUM.
7605         (legitimate_address_p) <REG+REG>: Do not recheck TARGET_V9.
7606         <LO_SUM>: If LO_SUM is offsettable, accept it for TFmode on V9.
7607         Otherwise only accept it for TFmode if quad move insns are available.
7608
7609 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
7610
7611         * tree-cfg.c (tree_forwarder_block_p): Reorder checks so that
7612         common cases will be caught earlier than others.
7613
7614 2004-10-08  Michael Matz  <matz@suse.de>
7615
7616         * loop-doloop.c (doloop_optimize): Extend count.
7617
7618 2004-10-08  Kaz Kojima  <kkojima@gcc.gnu.org>
7619
7620         * config/sh/sh.md (prefetch_media, prefetch_i4): New insns.
7621         (prefetch): Convert to expander.
7622
7623 2004-10-08  Kaz Kojima  <kkojima@gcc.gnu.org>
7624
7625         * config/sh/sh.md (tls_global_dynamic): Use MEM pattern for the
7626         first argument of CALL.
7627         (tls_local_dynamic): Likewise.
7628
7629 2004-10-08  Joseph S. Myers  <jsm@polyomino.org.uk>
7630
7631         * c-typeck.c (enum impl_conv): New.
7632         (convert_for_assignment): Use it.  Take tree for function called
7633         instead of its name.  Handle ObjC selectors for diagnostics at
7634         start of function.  Select diagnostic text within the function
7635         using full sentences for diagnsotics.  Use %qE to name functions
7636         in diagnostics.
7637         (convert_arguments, build_modify_expr,
7638         c_convert_parm_for_inlining, digest_init, c_finish_return): Update
7639         callers to convert_for_assignment.
7640         (warn_for_assignment): Remove.
7641
7642 2004-10-08  Nick Clifton  <nickc@redhat.com>
7643
7644         * config/sh/symbian.c (symbian_possibly_export_base_class):
7645         Replace use of deleted TYPE_USES_VIRTUAL_BASECLASSES macro with
7646         TYPE_CONTAINS_VPTR_P.
7647
7648 2004-10-08  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
7649
7650         * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Don't exclude
7651         fixed registers form all_used_regs. Update call_really_used_regs.
7652         (CALL_REALLY_USED_REGISTERS): Define.
7653         * config/m32r/m32r.c (MUST_SAVE_REGISTER): Replace call_used_regs
7654         with call_really_used_regs.
7655
7656 2004-10-08  Alan Modra  <amodra@bigpond.net.au>
7657
7658         * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Choose gcrt1.o
7659         for -profile as well as -p and -pg.
7660
7661 2004-10-07  Andrew Pinski  <pinskia@physics.uc.edu>
7662
7663         * libgcc2.c (__moddi3): Cast &w to UDWtype*.
7664
7665 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
7666
7667         * tree-cfg.c (tree_block_forwards_to): Remove.
7668         * tree-flow.h: Remove the corresponding prototype.
7669
7670 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
7671
7672         * tree-flow-inline.h (phi_nodes): Remove an unnecessary check
7673         for ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR.
7674
7675 2004-10-07  Geoffrey Keating  <geoffk@apple.com>
7676
7677         Radar 3813796
7678         * config/rs6000/rs6000.c (rs6000_generate_compare): When
7679         flag_trapping_math is in effect, don't generate subtract
7680         instructions.
7681
7682 2004-10-07  Ulrich Weigand  <uweigand@de.ibm.com>
7683
7684         * config/s390/s390-protos.h (s390_narrow_logical_operator): Add.
7685         * config/s390/s390.c (s390_narrow_logical_operator): New function.
7686         (s390_extra_constraint_str): Add 'A' constraints.
7687         (s390_const_ok_for_constraint_p): Add 'Nx' constraints.
7688         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'A' constraint.
7689         (CONSTRAINT_LEN): Likewise.
7690         * config/s390/s390.md ("*anddi3"): Add NI alternative and splitter.
7691         ("*andsi3_zarch", "*andsi3_esa"): Likewise.
7692         ("*andhi3_zarch", "*andhi3_esa"): Likewise.
7693         ("*iordi3"): Add OI alternative and splitter.
7694         ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
7695         ("*iorhi3_zarch", "*iorhi3_esa"): Likewise.
7696         ("*xordi3"): Add XI alternative and splitter.
7697         ("*xorsi3", "*xorhi3"): Likewise.
7698
7699 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
7700
7701         * config/mips/mips.c (mips_function_rodata_section): New function.
7702         (TARGET_ASM_FUNCTION_RODATA_SECTION): Use it.
7703
7704 2004-10-07  Devang Patel  <dpatel@apple.com>
7705
7706         * rs6000/altivec.md (UNSPEC_VCMPBFP, UNSPEC_VCMPEQUB, UNSPEC_VCMPEQUH,
7707         UNSPEC_VCMPEQUW, UNSPEC_VCMPGEFP, UNSPEC_VCMPGTUB, UNSPEC_VCMPGTSB,
7708         UNSPEC_VCMPGTUH, UNSPEC_VCMPGTSH, UNSPEC_VCMPGTUW, UNSPEC_VCMPGTSW,
7709         UNSPEC_VCMPGTFP, UNSPEC_VSEL4SI, UNSPEC_VSEL4SF, UNSPEC_VSEL8HI,
7710         UNSPEC_VSEL16QI, UNSPEC_VCOND_V4SI, UNSPEC_VCOND_V4SF, UNSPEC_VCOND_V8HI,
7711         UNSPEC_VCOND_V16QI, UNSPEC_VCONDU_V4SI, UNSPEC_VCONDU_V8HI,
7712         UNSPEC_VCONDU_V16QI): New constant defines.
7713         (vcondv4si, vcondv4sf, vcondv8hi, vcondv16qi, vconduv4si, vconduv8hi,
7714         vconduv16qi): New patterns.
7715         * rs6000/rs6000-protos.h (rs6000_emit_vector_cond_expr): New function.
7716         * rs6000/rs6000.c (rs6000_emit_vector_cond_expr): New function.
7717         (get_vec_cmp_insn): Same.
7718         (get_vsel_insn): Same.
7719         (rs6000_emit_vector_compare): Same.
7720         (rs6000_emit_vector_select): Same.
7721         (INSN_NOT_AVAILABLE): New.
7722
7723 2004-10-07  Zdenek Dvorak  <dvorakz@suse.cz>
7724
7725         PR tree-optimization/17749
7726         * tree-tailcall.c (find_tail_calls): Check that parameter is
7727         a gimple_reg.
7728
7729 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
7730
7731         * config/ia64/ia64.c: Fix a comment typo.
7732
7733 2004-10-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
7734
7735         * doc/install.texi (*-*-solaris2*): Fix marker for URL.
7736
7737 2004-10-07  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
7738
7739         PR c++/17115
7740         * tree-inline.c (expand_call_inline): Do not warn for functions
7741         marked with attribute noinline.
7742
7743 2004-10-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
7744
7745         PR target/17862
7746         * config/sparc/sparc.c (sparc_output_mi_thunk): Set
7747         current_function_uses_only_leaf_regs as well as sparc_leaf_function_p.
7748
7749         * config/sparc/sparc.c (sparc_gimplify_va_arg): Pass 'false' instead
7750         of 0 as 4th argument to pass_by_reference.
7751         Call build_va_arg_indirect_ref instead of build_fold_indirect_ref.
7752
7753 2004-10-06  Eric Christopher  <echristo@redhat.com>
7754
7755         * config/sh/sh.c (sh_dwarf_calling_convention): Fix renesas dwarf
7756         attribute.
7757
7758 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
7759
7760         PR target/17770
7761         * config/mips/mips.md (mov_<load>l): Remove hazard=none attribute.
7762
7763 2004-10-07  Zdenek Dvorak  <dvorakz@suse.cz>
7764
7765         PR rtl-optimization/17791
7766         * loop-doloop.c (doloop_modify): Take number of iterations as
7767         argument.
7768         (doloop_optimize): Extend or shorten the number of iterations
7769         when changing mode of counter register.
7770         * loop-iv.c (lowpart_subreg): Export.
7771         * rtl.h (lowpart_subreg): Declare.
7772
7773 2004-10-07  Zdenek Dvorak  <dvorakz@suse.cz>
7774
7775         PR tree-optimization/17806
7776         * cfghooks.c (split_edge): Update IRREDUCIBLE_LOOP flags.
7777         * cfgloopmanip.c (loop_split_edge_with): Updating of IRREDUCIBLE_LOOP
7778         flags moved to split_edge.
7779
7780 2004-10-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
7781
7782         PR middle-end/17835
7783         * expmed.c (expand_sdiv_pow2): Force a stack adjustment
7784         before tentatively building the conditional move sequence.
7785
7786 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
7787
7788         PR target/16815
7789         * function.c (assign_parm_setup_block_p): Tighten BLOCK_REG_PADDING
7790         check.
7791         * config/pa/pa.h (BLOCK_REG_PADDING): Define in terms of
7792         function_arg_padding.
7793
7794 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
7795
7796         PR bootstrap/17857
7797         * Makefile.in (stmp-fixproto): Pass FIX_HEADER=build/... to fixproto.
7798
7799 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
7800
7801         * hooks.c (hook_int_void_1, hook_void_int): Remove.
7802         * hooks.h: Remove the corresponding prototypes.
7803
7804 2004-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
7805
7806         PR middle-end/17849
7807         * tree-nested.c (walk_stmt_info): Add changed field.
7808         (convert_nonlocal_reference): Set changed to when we
7809         change a decl to unnested decl.
7810         <case ADDR_EXPR>: Instead of checking if the immediate part
7811         of the ADDR_EXPR changed, check the field changed.
7812         Use recompute_tree_invarant_for_addr_expr instead of unsetting
7813         TREE_INVARIANT.
7814         (convert_local_reference):  Set changed to when we
7815         change a decl to unnested decl.
7816         <case ADDR_EXPR>: Instead of checking if the immediate part
7817         of the ADDR_EXPR changed, check the field changed.
7818         Also call recompute_tree_invarant_for_addr_expr on the ADDR_EXPR.
7819
7820 2004-10-06  Kazu Hirata  <kazu@cs.umass.edu>
7821
7822         * defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
7823         * dwarf2out.c (dwarf2out_init): Remove references to
7824         DWARF2_GENERATE_TEXT_SECTION_LABEL.
7825         * system.h: Poison DWARF2_GENERATE_TEXT_SECTION_LABEL.
7826         * doc/tm.texi (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
7827
7828 2004-10-06  Joseph S. Myers  <jsm@polyomino.org.uk>
7829
7830         * c-typeck.c (convert_arguments): Take expression for called
7831         function rather than its name.  Handle ObjC selectors directly
7832         rather than relying on warn_for_assignment to do so.  Call warning
7833         directly rather than warn_for_assignment.  Use %qE in diagnostics.
7834         Say "argument" rather than "arg" in diagnostics.
7835         (build_function_call): Update call to convert_arguments.
7836
7837 2004-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
7838
7839         PR debug/17787
7840         * dbxout.c (dbxout_symbol): Really handle RECORD, UNION, and
7841         ENUMs specially instead of just saying we do.
7842
7843 2004-10-06  Eric Christopher  <echristo@redhat.com>
7844
7845         * dwarf2.h: Sync with include/elf/dwarf2.h
7846
7847 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
7848
7849         * tree-pretty-print.c (dump_generic_node): Fix printing of BINFO
7850         and TREE_VEC nodes.
7851
7852 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
7853
7854         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Convert
7855         to use FOR_EACH_SSA_USE_OPERAND iterator, and propagate_value.
7856
7857 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
7858
7859         * lambda-code.c (compute_nest_using_fourier_motzkin): New
7860         function.
7861         (lambda_compute_auxillary_space): Split from here.
7862
7863 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
7864
7865         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop): Make non-static.
7866         * tree-flow.h: Add prototype.
7867         * lambda-code.c (invariant_in_loop_and_outer_loops): Use
7868         expr_invariant_in_loop.
7869
7870 2004-10-06  Kazu Hirata  <kazu@cs.umass.edu>
7871
7872         * tree-cfg.c (thread_jumps): Remove a duplicate check for
7873         EXIT_BLOCK_PTR.
7874
7875 2004-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
7876
7877         * config/s390/s390-protos.h (s_imm_operand): Remove.
7878         (s390_pool_operand): Add prototype.
7879         * config/s390/s390.c (general_s_operand): Remove.
7880         (s_imm_operand): Remove.
7881         (s_operand): Merge contents of general_s_operand.
7882         (s390_pool_operand): New function.
7883         * config/s390/s390.h (PREDICATE_CODES): Remove s_imm_operand.
7884         * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct"): New insns.
7885         ("*cmpdi_ccu"): Merge Q->Q alternative.
7886         ("*cmpsi_ccu", "*cmphi_ccu"): Likewise.
7887         ("*cmpqi_ccu"): Merge Q->Q, n->Q, n->S alternatives.
7888         ("*cli"): Remove.
7889         ("*cmpdi_ccu_mem", "*cmpsi_ccu_mem"): Likewise.
7890         ("*cmphi_ccu_mem", "*cmpqi_ccu_mem"): Likewise.
7891         ("*movstricthi"): Use memory_operand instead of s_imm_operand.
7892
7893 2004-10-06  Steve Ellcey  <sje@cup.hp.com>
7894
7895         * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Change macro to
7896         call ia64_function_arg_boundary.
7897         * config/ia64/ia64-protos.h (ia64_function_arg_boundary): New.
7898         * config/ia64/ia64.c (ia64_function_arg_boundary): New.
7899         (ia64_function_arg_advance): Do not put 128 bit floats into
7900         FP registers.
7901
7902 2004-10-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7903
7904         * builtins.c (expand_builtin_strcpy): Delete duplicate code.
7905         Accept an expression instead of an arglist.
7906         (expand_builtin_stpcpy): Accept an expression instead of an
7907         arglist.
7908
7909 2004-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
7910
7911         PR target/16007
7912         * doc/install.texi (*-*-solaris2*): Mention potential problem
7913         with Sun assembler + GNU linker and C++ programs.
7914         Document status of binutils 2.15 release.
7915
7916 2004-10-06  Jan Hubicka  <jh@suse.cz>
7917
7918         * cse.c (cse_main): Kill push/pop context.
7919
7920 2004-10-05  Zack Weinberg  <zack@codesourcery.com>
7921
7922         * pretty-print.c: Include tree.h.
7923         (pp_base_prepare_to_format): New function, logic from
7924         text_specifies_location.
7925         (pp_base_format_text): Use gcc_assert.
7926         * pretty-print.h (pp_prepare_to_format): New macro.
7927         (pp_base_prepare_to_format): Prototype.
7928         * diagnostic.c (text_specifies_location): Delete.
7929         (bug_report_request): Delete.
7930         (diagnostic_set_info): Don't call text_specifies_location.
7931         (diagnostic_action_after_output): Put text from
7932         bug_report_request inline here.  Use gcc_unreachable.
7933         (diagnostic_report_current_function): Fix comment.
7934         (diagnostic_report_diagnostic): Clarify logic for error recursion.
7935         Call pp_prepare_to_format before diagnostic_starter.
7936         (trim_filename): Use IS_DIR_SEPARATOR.
7937         (fatal_error, internal_error): Use gcc_unreachable.
7938         (error_recursion): Call diagnostic_action_after_output to
7939         issue the bug_report_request message and exit.
7940         * Makefile.in (diagnostic.o, pretty-print.o): Update dependencies.
7941
7942         * c-parse.in: Add list of diagnostic messages to insulate
7943         translation template from version of yacc/bison used to
7944         compile the grammar.
7945
7946 2004-10-06  Alan Modra  <amodra@bigpond.net.au>
7947
7948         PR 16406
7949         * doc/tm.texi (USE_LD_AS_NEEDED, LINK_EH_SPEC): Document.
7950
7951 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
7952
7953         * basic-block.h: Remove the prototype for
7954         flow_preorder_transversal_compute.
7955         * cfganal.c (dfst_node): Remove.
7956         (flow_preorder_transversal_compute): Likewise.
7957         * rtl.h: Remove the prototype for get_jump_table_offset.
7958         * rtlanal.c (get_jump_table_offset): Remove.
7959
7960 2004-10-05  Richard Henderson  <rth@redhat.com>
7961
7962         PR 17756
7963         * tree-ssa-operands.c (get_expr_operands): Handle CONST_DECL.
7964
7965 2004-10-05  Kelley Cook  <kcook@gcc.gnu.org>
7966
7967         PR bootstrap/17817
7968         * Makefile.in: Stage the build directory too.
7969
7970 2004-10-05  Aldy Hernandez  <aldyh@redhat.com>
7971
7972         * config/frv/frv.h (LEGITIMIZE_ADDRESS): New.
7973
7974         * config/frv/frv-protos.h (frv_legitimize_address): Protoize.
7975         (frv_emit_move): Same.
7976
7977         * config/frv/frv.c (frv_emit_move): New.
7978         (frv_legitimize_address): New.
7979
7980         * config/frv/frv.md ("movsi"): Call frv_emit_move.
7981         ("movqi"): Same.
7982         ("movhi"): Same.
7983         ("movdi"): Same.
7984         ("movsf"): Same.
7985         ("movdf"): Same.
7986
7987 2004-10-05  Joseph S. Myers  <jsm@polyomino.org.uk>
7988
7989         * c-decl.c (declspecs_add_type): Don't pedwarn for _Complex in
7990         system headers.
7991
7992 2004-10-05  Joseph S. Myers  <jsm@polyomino.org.uk>
7993
7994         * c-decl.c (pushdecl): When an extern declaration at block scope
7995         refers to a visible entity with internal linkage, use the old DECL
7996         rather than the new one.
7997
7998 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
7999
8000         * tree-cfg.c (cleanup_tree_cfg): Remove extra parentheses in
8001         comments.
8002
8003 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
8004
8005         * tree-cfg.c (thread_jumps): Remove a duplicate check for
8006         an infinite loop.
8007
8008 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
8009
8010         * tree-cfg.c (thread_jumps): Iterate with FOR_EACH_BB instead
8011         of FOR_BB_BETWEEN.  Remove a useless check for unreachable
8012         blocks.
8013
8014 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
8015
8016         * tree-cfg.c (cleanup_tree_cfg): Don't call
8017         delete_unreachable_blosk() after thread_jumps().
8018         (thread_jumps): Always remove basic blocks as they become
8019         unreachable.
8020
8021 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
8022
8023         * tree-cfg.c (cleanup_tree_cfg): Remove variable
8024         something_changed.  Simplify the while loop.
8025
8026 2004-10-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8027
8028         * builtins.c (expand_builtin_memmove): Delete duplicate code
8029         and accept a tree type for the result.
8030         (expand_builtin_bcopy): Accept a tree type for the result.
8031         (fold_builtin_memmove): Accept an arglist and tree type for
8032         the result.
8033
8034 2004-10-05  Ulrich Weigand  <uweigand@de.ibm.com>
8035
8036         * config/s390/s390.c (s390_dump_pool): Remove return value.
8037         Use gen_pool_align, gen_pool_section_start/end instead of
8038         gen_pool_start/end_31/64.
8039         * config/s390/s390.md (UNSPECV_POOL_START, UNSPECV_POOL_END): Remove.
8040         (UNSPECV_POOL_SECTION, UNSPECV_POOL_ALIGN): New constants.
8041         ("pool_start_31", "pool_end_31"): Remove.
8042         ("pool_start_64", "pool_end_64"): Likewise.
8043         ("pool_align", "pool_section_start", "pool_section_end": New insns.
8044
8045         * config/s390/s390.c (s390_cannot_copy_insn_p): New function.
8046         (TARGET_CANNOT_COPY_INSN_P): Define.
8047         (s390_cannot_force_const_mem): Handle UNSPEC_INSN.
8048         (struct constant_pool): New member 'execute'.
8049         (s390_add_execute, s390_find_execute): New functions.
8050         (s390_execute_label, s390_execute_target): Likewise.
8051         (s390_dump_pool): Output in-pool execute target templates.
8052         (s390_dump_execute): New function.
8053         (s390_alloc_pool, s390_free_pool): Handle execute templates.
8054         (s390_mainpool_start, s390_mainpool_finish): Likewise.
8055         (s390_chunkify_start, s390_chunkify_finish): Likewise.
8056         * config/s390/s390.md (UNSPEC_INSN, UNSPEC_EXECUTE): New constants.
8057         ("*execute"): New insn pattern.
8058         ("movmem_short", "*movmem_short"): Use splitters to generate
8059         explicit execute pattern, remove embedded execute.
8060         ("clrmem_short", "*clrmem_short"): Likewise.
8061         ("cmpmem_short", "*cmpmem_short"): Likewise.
8062
8063 2004-10-05  Daniel Berlin  <dberlin@dberlin.org>
8064
8065         * tree-ssa.c (verify_ssa): Verify phi arguments only
8066         contain renamed names.
8067
8068 2004-10-05  Alan Modra  <amodra@bigpond.net.au>
8069
8070         * config/rs6000/linux.h: Formatting, whitespace.
8071         * config/rs6000/linux64.h: Likewise.
8072         * config/rs6000/rs6000-protos.h: Likewise.
8073         * config/rs6000/rs6000.c: Likewise.
8074         (easy_vector_splat_const): Add fall thru comments.
8075         (output_vec_const_move): Likewise.
8076
8077 2004-10-05  Kelley Cook  <kcook@gcc.gnu.org>
8078
8079         * Makefile.in: Update -Wno-error exceptions for move to build dir.
8080
8081 2004-10-05  Chao-Ying Fu  <fu@mips.com>
8082             Richard Sandiford  <rsandifo@redhat.com>
8083
8084         * doc/invoke.texi (-mpaired-single): Link to the new description of the
8085         built-in functions.  Document dependencies.
8086         (-mips3d): Add link here too.
8087         * doc/extend.texi (MIPS Paired-Single Support): New section.
8088
8089 2004-10-04  Chao-ying Fu  <fu@mips.com>
8090
8091         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Define.
8092
8093 2004-10-04  Diego Novillo  <dnovillo@redhat.com>
8094
8095         * tree-ssa-dom.c (tree_ssa_dominator_optimize):
8096         Initialize OPT_STATS to 0.
8097
8098 2004-10-04  Kazu Hirata  <kazu@cs.umass.edu>
8099
8100         * tree-data-ref.c: Fix comment typos.
8101
8102 2004-10-04  Sebastian Pop  <pop@cri.ensmp.fr>
8103
8104         * tree-data-ref.c (array_base_name_differ_p): Fix comments.  When
8105         the predicate cannot be computed, don't initialize the result to
8106         false.
8107
8108 2004-10-01  Eric Christopher  <echristo@redhat.com>
8109
8110         * dwarf2.h (dwarf_calling_convention): Add GNU prefix to
8111         locally defined enum.
8112         * dwarf2out.c (add_calling_convention_attribute): Don't
8113         emit DW_CC_normal.
8114
8115 2004-10-03  Andrew Pinski  <pinskia@physics.uc.edu>
8116
8117         PR c/17178, PR c/17820
8118         * c-decl.c (pop_scope): Do not warn about unused static
8119         variables as they warned in the middle-end.
8120
8121 2004-10-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8122
8123         * builtins.c (expand_builtin_memcpy): Delete duplicate code
8124         and make the first parameter the expression not the arglist.
8125
8126 2004-10-03  Ulrich Weigand  <uweigand@de.ibm.com>
8127
8128         * expr.c (expand_expr_addr_expr): Only accept Pmode or ptr_mode
8129         as valid modes to expand address expressions.
8130
8131 2004-10-03  Joseph S. Myers  <jsm@polyomino.org.uk>
8132
8133         * c-aux-info.c, c-common.c, c-common.h, c-cppbuiltin.c, c-decl.c,
8134         c-format.c, c-incpath.c, c-lex.c, c-objc-common.c, c-opts.c,
8135         c-parse.in, c-pch.c, c-ppoutput.c, c-pragma.c, c-typeck.c: Follow
8136         code formatting conventions.
8137
8138 2004-10-03  Richard Sandiford  <rsandifo@redhat.com>
8139
8140         * config/mips/mips.md (<u>mulsidi3_32bit_r4000): Fix unsigned case.
8141
8142 2004-10-03  Kazu Hirata  <kazu@cs.umass.edu>
8143
8144         PR tree-optimization/16632
8145         * fold-const.c (fold) [EQ_EXPR]: When seeing if D & ~C != 0 to
8146         fold (A & C) == D into 0, fold ~C.  Similarly, for the case
8147         where | is used instead of &.
8148
8149 2004-10-03  Kazu Hirata  <kazu@cs.umass.edu>
8150
8151         * ginclude/stddef.h: Fix a comment typo.
8152
8153 2004-10-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
8154
8155         PR target/17443
8156         * config.gcc (i?86-*-solaris2*): Restore correct logic
8157         for --enable-threads option.
8158         (sparc64-*-solaris2*): Likewise.
8159         (sparc-*-solaris2*): Likewise.
8160
8161 2004-10-03  Alan Modra  <amodra@bigpond.net.au>
8162
8163         * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define.
8164         (OS_MISSING_POWERPC64): Move, and comment.
8165         * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Define.
8166         (OS_MISSING_POWERPC64): Move, and comment.
8167
8168 2004-10-02  Ian Lance Taylor  <ian@wasabisystems.com>
8169
8170         * arm.c (output_call_mem): Add missing \t.
8171
8172 2004-10-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8173
8174         * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp,
8175         expand_builtin_strncmp): Delete duplicate code.
8176
8177 2004-10-02  Frank Ch. Eigler  <fche@redhat.com>
8178
8179         * tree-mudflap.c (mf_build_check_statement_for): Reorganize to
8180         take check-base and -limit arguments.
8181         (mf_xform_derefs_1): Reorganize slightly to pass proper base/limit
8182         check ranges for ARRAY_REF and COMPONENT_REF.
8183         (execute_mudflap_fnction_ops, ..._decls): Limit unnecessary
8184         instrumentation.
8185
8186 2004-10-02  Joseph S. Myers  <jsm@polyomino.org.uk>
8187
8188         * c-objc-common.c (c_tree_printer): Correct description of %E.
8189         Don't fall through after printing an expression.
8190
8191 2004-10-02  Kazu Hirata  <kazu@cs.umass.edu>
8192
8193         * tree-cfg.c, config/s390/tpf-unwind.h: Fix comment typos.
8194
8195 2004-10-02  Kazu Hirata  <kazu@cs.umass.edu>
8196
8197         * tree-cfg.c (cleanup_tree_cfg): Speed up by calling
8198         delete_unrechable_blocks() only when necessary.
8199
8200 2004-10-02  P.J. Darcy  <darcypj@us.ibm.com>
8201
8202         * gthr-tpf.h (__gthread_recursive_mutex_t): New type.
8203         (__GTHREAD_RECURSIVE_MUTEX_INIT): Define.
8204         (__gthread_recursive_mutex_lock, __gthread_recursive_mutex_trylock,
8205         __gthread_recursive_mutex_unlock): New functions.
8206
8207 2004-10-02  P.J. Darcy  <darcypj@us.ibm.com>
8208
8209         * config/s390/t-tpf (LIB2ADDEH): Remove tpf-eh.c.
8210         * config/s390/tpf-eh.c: Remove file.
8211         * config/s390/tpf-unwind.h: New file.
8212         * config/s390/tpf.h (MD_FALLBACK_FRAME_STATE_FOR): Remove.
8213         (MD_UNWIND_SUPPORT): Define.
8214
8215 2004-10-02  Joseph S. Myers  <jsm@polyomino.org.uk>
8216
8217         * c-typeck.c (warn_for_assignment): Don't permit argnum == 0.
8218
8219 2004-10-01  Ulrich Weigand  <uweigand@de.ibm.com>
8220
8221         * config/s390/s390-protos.h (s390_comparison): Add prototype.
8222         * config/s390/s390.c (s390_comparison): New function.
8223         (s390_branch_condition_mask): Return -1 for invalid comparisons.
8224         (s390_branch_condition_mnemonic): Assert valid comparison.
8225         * config/s390/s390.h (PREDICATE_CODES): Add s390_comparison.
8226         * config/s390/s390.md ("*cjump_64", "*cjump_31", "*cjump_long",
8227         "*icjump_64", "*icjump_31", "*icjump_long", "*trap"): Use
8228         s390_comparison instead of comparison_operator.
8229
8230         * config/s390/s390.md (UNSPEC_CMPINT): New constant.
8231         ("cmpmemdi"): Remove.
8232         ("cmpmem_short", "*cmpmem_short"): Use CCUmode instead of CCSmode.
8233         ("cmpmem_long", "*cmpmem_long_64", "*cmpmem_long_31"): Likewise.
8234         ("cmpint_si"): Rename to ...
8235         ("*cmpint_si"): ... this.  Use UNSPEC_CMPINT.
8236         ("cmpint_di", "*cmpint_di"): Likewise.
8237         * config/s390/s390.c (s390_canonicalize_comparison): Remove
8238         redundant UNSPEC_CMPINT conversions.
8239         (s390_expand_cmpmem): Adapt to cmpint pattern changes.
8240
8241 2004-10-01  Kazu Hirata  <kazu@cs.umass.edu>
8242
8243         * collect2.c (COLLECT_PARSE_FLAG): Remove.
8244         (main): Remove a reference to COLLECT_PARSE_FLAG
8245         * system.h: Poison COLLECT_PARSE_FLAG.
8246         * doc/tm.texi (COLLECT_PARSE_FLAG): Remove.
8247
8248 2004-10-01  Paul Brook  <paul@codesourcery.com>
8249
8250         * config/arm/crti.asm: Give _init and _fini function type.
8251
8252 2004-10-01  Zdenek Dvorak  <dvorakz@suse.cz>
8253
8254         * common.opt (ftree-loop-ivcanon): Enable by default.
8255         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
8256         Enable complete loop unrolling.
8257         (canonicalize_induction_variables, tree_unroll_loops_completely):
8258         Reset scev info.
8259
8260 2004-10-01  Paul Brook  <paul@codesourcery.com>
8261
8262         * config/arm/arm.c (thumb_compute_saved_rag_mask): Or with bitmask,
8263         not register number.
8264         (thumb_find_work_register): Search full register range.
8265
8266 2004-10-01  Andrew Pinski  <pinskia@physics.uc.edu>
8267
8268         PR tree-opt/17343
8269         * tree-cfg.c (group_case_labels): Get the label and not
8270         the case expr for the default case.
8271         When the label we looking at is the default, decrement the
8272         new_size.
8273
8274 2004-10-01  Jan Hubicka  <jh@suse.cz>
8275
8276         * c-decl.c (c_expand_body): Update call tree_rest_of_compilation.
8277         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
8278         * toplev.h (tree_rest_of_compilation): Update prototype.
8279         * tree-optimize.c (tree_rest_of_compilation):  Kill nested_p argument.
8280
8281 2004-10-01  Kazu Hirata  <kazu@cs.umass.edu>
8282
8283         * tree-cfg.c (cleanup_tree_cfg): Pull a call to
8284         cleanup_control_flow() out of the while loop.
8285
8286 2004-10-01  Paolo Bonzini  <bonzini@gnu.org>
8287
8288         * tree-vectorizer.c (vectorizable_operation): Fail unless
8289         the mode for the vector type is indeed a vector mode.
8290
8291 2004-10-01  Zdenek Dvorak  <dvorakz@suse.cz>
8292
8293         * tree-chrec.c (chrec_fold_plus_poly_poly, chrec_fold_plus_1,
8294         chrec_fold_multiply): Use fold_convert or build_int_cst_type instead
8295         of convert.
8296         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
8297         add_to_evolution, set_nb_iterations_in_loop, follow_ssa_edge_in_rhs,
8298         follow_ssa_edge_in_rhs): Ditto.
8299         * tree-ssa-loop-ivopts.c (struct iv): Add base_object field.
8300         (dump_iv): Dump base_object.
8301         (dump_use, dump_cand): Use dump_iv.
8302         (determine_base_object): New function.
8303         (alloc_iv): Initialize base_object field.
8304         (record_use): Clear the ssa_name field of iv.
8305         (get_computation_cost_at): Do not use difference of addresses of
8306         two different objects.
8307         (may_eliminate_iv): Do not require the loop to have just single exit.
8308         * tree-ssa-loop-niter.c (zero_p): Do not check for overflows.
8309         (nonzero_p): New function.
8310         (inverse, number_of_iterations_cond, simplify_using_outer_evolutions,
8311         tree_simplify_using_condition, simplify_using_initial_conditions,
8312         loop_niter_by_eval, find_loop_niter_by_eval,
8313         estimate_numbers_of_iterations_loop, compare_trees,
8314         upper_bound_in_type, lower_bound_in_type,
8315         can_count_iv_in_wider_type_bound): Use buildN instead of build.  Use
8316         fold_convert or build_int_cst_type instead of convert.  Use (non)zero_p
8317         instead of integer_(non)zerop.
8318
8319 2004-10-01  Jakub Jelinek  <jakub@redhat.com>
8320
8321         Revert
8322         2004-09-29  Jakub Jelinek  <jakub@redhat.com>
8323
8324         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
8325         and TI_VA_LIST_FPR_COUNTER_FIELD.
8326         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
8327         * tree-pass.h (pass_stdarg): Add.
8328         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
8329         * tree-stdarg.c: New file.
8330         * Makefile.in (OBJS-common): Add tree-stdarg.o.
8331         (tree-stdarg.o): Add dependencies.
8332         * function.h (struct function): Add va_list_gpr_size and
8333         va_list_fpr_size fields.
8334         * function.c (allocate_struct_function): Initialize them.
8335
8336         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
8337         va_list_{g,f}pr_counter_field.
8338         (ix86_setup_incoming_varargs): Don't do anything if reg_save
8339         area will not be used.  Only save registers that tree-stdarg.c
8340         detected they need saving.
8341         (ix86_va_start): Don't set up fields that won't be used.
8342
8343         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
8344         va_list_{g,f}pr_counter_field.
8345         (setup_incoming_varargs): Don't do anything if reg_save
8346         area will not be used.  Only save registers that tree-stdarg.c
8347         detected they need saving.
8348         (rs6000_va_start): Don't set up fields that won't be used.
8349
8350 2004-09-30  Eric Christopher  <echristo@redhat.com>
8351
8352         * dwarf2.h (dwarf_calling_convention): Add enum for renesas
8353         sh abi.
8354         * dwarf2out.c (add_calling_convention_attribute): New function.
8355         (gen_subroutine_type_die): Use.
8356         * target-def.h (TARGET_DWARF_CALLING_CONVENTION): New hook.
8357         * target.h (gcc_target): Add dwarf_calling_convention.
8358         * hooks.c (hook_int_tree_0): New function.
8359         * hooks.h: Prototype.
8360         * config/sh/sh.c: Include dwarf2.h.
8361         (sh_dwarf_calling_convention): New function.
8362         (TARGET_DWARF_CALLING_CONVENTION): Use.
8363         * doc/tm.texi (TARGET_DWARF_CALLING_CONVENTION): Document.
8364
8365 2004-09-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8366
8367         * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
8368         expand_builtin_strrchr, expand_builtin_strpbrk,
8369         expand_builtin_strncat, expand_builtin_strspn,
8370         expand_builtin_strcspn, expand_builtin_fputs): Eliminate duplicate
8371         code.
8372
8373 2004-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
8374
8375         * config/s390/s390-protos.h (s390_expand_logical_operator): Add
8376         prototype.
8377         (s390_logical_operator_ok_p): Likewise.
8378         * config/s390/s390.c (s390_expand_logical_operator): New function.
8379         (s390_logical_operator_ok_p): Likewise.
8380         * config/s390/s390.md ("anddi3"): New expander.
8381         ("*anddi3"): Rename from old anddi3 pattern, add Q->Q alternative.
8382         ("*anddi3_ss", "*anddi3_ss_inv"): Remove.
8383         ("andsi3"): Use s390_expand_logical_operator.
8384         ("*andsi3_esa", "*andsi3_zarch"): Add Q->Q alternative.
8385         ("*andsi3_ss", "*andsi3_ss_inv"): Remove.
8386         ("andhi3"): New expander.
8387         ("*andhi3_zarch", "*andhi3_esa"): New patterns.
8388         ("andhi3", "*andhi3_ni", "*andhi3_ss", "*andhi3_ss_inv"): Remove.
8389         ("andqi3"): New expander.
8390         ("*andqi3_zarch", "*andqi3_esa"): New patterns.
8391         ("andqi3", "*andqi3_ni", "*andqi3_ss", "*andqi3_ss_inv"): Remove.
8392         ("iordi3"): New expander.
8393         ("*iordi3"): Rename from old iordi3 pattern, add Q->Q alternative.
8394         ("*iordi3_ss", "*iordi3_ss_inv"): Remove.
8395         ("iorsi3"): Use s390_expand_logical_operator.
8396         ("*iorsi3_esa", "*iorsi3_zarch"): Add Q->Q alternative.
8397         ("*iorsi3_ss", "*iorsi3_ss_inv"): Remove.
8398         ("iorhi3"): New expiorer.
8399         ("*iorhi3_zarch", "*iorhi3_esa"): New patterns.
8400         ("iorhi3", "*iorhi3_ni", "*iorhi3_ss", "*iorhi3_ss_inv"): Remove.
8401         ("iorqi3"): New expiorer.
8402         ("*iorqi3_zarch", "*iorqi3_esa"): New patterns.
8403         ("iorqi3", "*iorqi3_ni", "*iorqi3_ss", "*iorqi3_ss_inv"): Remove.
8404         ("xordi3"): New expander.
8405         ("*xordi3"): Rename from old xordi3 pattern, add Q->Q alternative.
8406         ("*xordi3_ss", "*xordi3_ss_inv"): Remove.
8407         ("xorsi3"): New expander.
8408         ("*xorsi3"): Rename from old xorsi3 pattern, add Q->Q alternative.
8409         ("*xorsi3_ss", "*xorsi3_ss_inv"): Remove.
8410         ("xorhi3"): New expander.
8411         ("*xorqi3"): Rename from old xorhi3 pattern, add Q->Q alternative.
8412         ("*xorhi3_ss", "*xorhi3_ss_inv"): Remove.
8413         ("xorqi3"): New expander.
8414         ("*xorqi3"): Rename from old xorqi3 pattern, add Q->Q alternative.
8415         ("*xorqi3_ss", "*xorqi3_ss_inv"): Remove.
8416
8417 2004-09-30  Roger Sayle  <roger@eyesopen.com>
8418
8419         * combine.c (force_to_mode) <NE_EXPR>: Only convert the expression
8420         (AND (NE FOO 0) CONST) into (AND FOO CONST) if FOO has the same
8421         machine mode as the result.
8422
8423 2004-09-30  Ben Elliston  <bje@au.ibm.com>
8424
8425         PR bootstrap/17761
8426         * lcm.c (optimize_mode_switching): Update to use EDGE_SUCC and
8427         FOR_EACH_EDGE macros.
8428
8429 2004-09-30  Joseph S. Myers  <jsm@polyomino.org.uk>
8430
8431         * c-tree.h (readonly_error): Remove.
8432         * c-typeck (enum lvalue_use): New.
8433         (lvalue_or_else, readonly_error): Use it.  All callers changed.
8434         (readonly_error): Make static.
8435
8436 2004-09-30  Jan Hubicka  <jh@suse.cz>
8437
8438         PR debug/13974
8439         * cfgrtl.c (try_redirect_by_replacing_jump,
8440         force_nonfallthru_and_redirect, commit_one_edge_insertion,
8441         cfg_layout_merge_blocks):  Do not attach any line number information
8442         to newly inserted instructions.
8443         * emit-rtl.c (emit_insn*_before, emit_insn*_after): Rename to
8444         emit_insn_*_noloc.
8445         (emit_*insn_before, emit_insn*_after): New.
8446         (emit_*insn_before_setloc, emit_*insn_after_setloc): Do not overwrite
8447         existing locators.
8448         * rtl.h (emit_*insn_before_noloc, emit_*insn_after_noloc): Declare.
8449         (emit_*insn_before_sameloc, emit_*insn_after_sameloc): Kill.
8450
8451 2004-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
8452
8453         * config/s390/s390-protos.h (s390_arg_frame_offset): Remove.
8454         (s390_return_address_offset): Remove.
8455         (s390_can_eliminate): Add prototype.
8456         (s390_initial_elimination_offset): Add prototype.
8457         * config/s390/s390.h (CAN_ELIMINATE): Call s390_can_eliminate.
8458         (INITIAL_ELIMINATION_OFFSET): Call s390_initial_elimination_offset.
8459         * config/s390/s390.c (s390_arg_frame_offset): Remove.
8460         (s390_return_address_offset): Remove.
8461         (s390_can_eliminate, s390_initial_elimination_offset): New functions.
8462         (struct machine_function): New member split_branches_pending_p.
8463         (s390_mainpool_start): Allow nonexistant pool insn for empty pool.
8464         (s390_mainpool_finish): Likewise.  Clear base_reg if pool empty.
8465         (s390_optimize_prologue): Remove base_used argument.  Call
8466         s390_update_frame_layout instead of s390_register_info.  Handle
8467         prologue/epilogue insns that touch only RETURN_REGNUM.
8468         (s390_reorg): Remove base_used.  Clear split_branches_pending_p.
8469         (s390_register_info): Remove base_used and return_addr_used
8470         arguments, compute special register usage inline.  Return live
8471         register data to caller.
8472         (s390_frame_info): Remove arguments, do not call s390_register_info.
8473         (s390_init_frame_layout): New function.
8474         (s390_update_frame_layout): Likewise.
8475         (s390_emit_prologue): Call s390_update_frame_layout; some code
8476         move to there.  Do not emit pool placeholder insn if unnecessary.
8477
8478 2004-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
8479
8480         * config/s390/s390.c (legitimate_reload_constant_p): Remove
8481         floating point constant workaround.
8482         (s390_secondary_input_reload_class): Handle PLUS reloads
8483         with too-large constant.
8484         (s390_expand_plus_operand): Likewise.
8485         * config/s390/s390.md ("movdi"): Do not call force_const_mem.
8486         ("movsi"): Likewise.  Also, remove workaround for non-general
8487         operands.
8488         ("movdf"): Do not call force_const_mem.
8489         ("movsf"): Likewise.  Merge expander with *movsf insn.
8490         ("*movsf"): Remove, merge with movsf expander.
8491
8492 2004-09-30  Paul Brook  <paul@codesourcery.com>
8493
8494         * config/arm/symbian.h (STARTFILE_SPEC): Remove crt*.o.
8495         (ENDFILE_SPEC): Define.
8496         * config/arm/t-symbian.h (EXTRA_MULTILIB_PARTS): Set.
8497
8498 2004-09-30  Richard Henderson  <rth@redhat.com>
8499
8500         * config/alpha/qrnnd.asm: Mark for noexecstack.
8501
8502 2004-09-30  Kazu Hirata  <kazu@cs.umass.edu>
8503
8504         * protoize.c, tree-cfg.c: Fix comment typos.
8505
8506 2004-09-30  Joseph S. Myers  <jsm@polyomino.org.uk>
8507
8508         PR c/17730
8509         * c-typeck.c (lvalue_or_else): Pass msgid directly to error.
8510
8511 2004-09-30  Diego Novillo  <dnovillo@redhat.com>
8512
8513         * tree-ssa-alias.c (collect_points_to_info_r): Move analysis of
8514         expressions...
8515         (add_pointed_to_expr): ... here.
8516         Call add_pointed_to_expr for variables with DECL_INITIAL set.
8517         * tree-dfa.c (add_referenced_var): Scan DECL_INITIAL of any
8518         pointer variable, if set.
8519
8520 2004-09-30  Kazu Hirata  <kazu@cs.umass.edu>
8521
8522         * config/sh/sh.c: Follow spelling conventions.
8523
8524 2004-09-29  Richard Henderson  <rth@redhat.com>
8525
8526         * unwind-dw2.c (_Unwind_GetGR): Honor DWARF_ZERO_REG.
8527         * doc/tm.texi (DWARF_ZERO_REG): New.
8528
8529         * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
8530         alpha_expand_epilogue): Revert 2003-09-30 change to store zero.
8531         * config/alpha/alpha.h (DWARF_ZERO_REG): New.
8532
8533 2004-09-29  Ulrich Weigand  <uweigand@de.ibm.com>
8534
8535         * builtins.c (expand_builtin_strlen): Do not call emit_move_insn
8536         with a PLUS as source operand.
8537         (expand_movstr): Likewise.
8538         (expand_builtin_stpcpy): Likewise.
8539
8540 2004-09-29  Richard Henderson  <rth@redhat.com>
8541
8542         PR 17739
8543         * tree-gimple.c (is_gimple_reg): Reject hard registers.
8544         (is_gimple_asm_val): New.
8545         * tree-gimple.h (is_gimple_asm_val): Declare.
8546         * gimplify.c (gimplify_asm_expr): Use it.
8547         * tree-pretty-print.c (print_declaration): Dump hard regs.
8548         * tree-outof-ssa.c (check_replaceable): Don't check for hard regs.
8549         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
8550         * tree-ssa-pre.c (is_undefined_value): Likewise.
8551         * tree-ssa-copy.c (may_propagate_copy): Likewise.
8552         (may_propagate_copy_into_asm): Protect DECL_HARD_REGISTER.
8553         * tree-ssa.c (warn_uninit): Likewise.
8554         * tree.h (DECL_HARD_REGISTER): Check for VAR_DECL.
8555
8556 2004-09-29  Fariborz Jahanian <fjahanian@apple.com>
8557
8558         * c-decl.c (merge_decls): Use comptype when comparing
8559         types to decide on DECL_SIZE save of olddecl.
8560
8561 2004-09-29  Daniel Berlin  <dberlin@dberlin.org>
8562
8563         * tree.h (INDIRECT_REF_P): New macro.
8564         * alias.c (get_alias_set): Use it
8565         (nonoverlapping_memrefs_p): Ditto.
8566         * emit-rtl.c (mem_expr_equal_p): Ditto.
8567         (set_mem_attributes_minus_bitpos): Ditto.
8568         (is_gimple_addressable): Ditto.
8569         (get_base_address): Ditto.
8570         * tree-ssa-alias.c (find_ptr_derefernece): Ditto.
8571         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Ditto.
8572         * tree-ssa-dom.c (record_equivalences_from_stmt): Ditto.
8573         * tree-ssa-loop-im.c (is_call_clobbered_ref): Ditto.
8574         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Ditto.
8575         (add_address_candidates): Ditto.
8576         (rewrite_address_base): Ditto.
8577
8578 2004-09-30  Ben Elliston  <bje@au.ibm.com>
8579
8580         * tree-flow.h (struct bb_ann_d): Remove num_preds member.
8581         * tree-into-ssa.c (rewrite_into_ssa): Don't set it.
8582         (rewrite_ssa_into_ssa): Likewise.
8583         * tree-phinodes.c (create_phi_node): Access the number of
8584         predecessor edges using EDGE_COUNT() and not num_preds.
8585
8586 2004-09-29  Joseph S. Myers  <jsm@polyomino.org.uk>
8587
8588         PR c/7425
8589         * c-decl.c (merge_decls): Merge TREE_DEPRECATED.
8590
8591 2004-09-29  Eric Christopher  <echristo@redhat.com>
8592
8593         * fold-const.c (tree_swap_operands_p): Remove duplicated code.
8594
8595 2004-09-29  Hans-Peter Nilsson  <hp@axis.com>
8596
8597         * config/cris/cris.md (moverside, movemside): With MEM, make sure
8598         the address is (plus reg mem).
8599
8600 2004-09-29  David Edelsohn  <edelsohn@gnu.org>
8601
8602         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
8603
8604 2004-09-29  Nathan Sidwell  <nathan@codesourcery.com>
8605
8606         * tree.c (make_node_stat): Fix uninitialized warning.  Replace
8607         cascaded if ... else if with a switch.
8608
8609 2004-09-29  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
8610
8611         * read-rtl.c (apply_macro_to_string): Replace index with strchr.
8612
8613 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
8614
8615         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
8616         and TI_VA_LIST_FPR_COUNTER_FIELD.
8617         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
8618         * tree-pass.h (pass_stdarg): Add.
8619         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
8620         * tree-stdarg.c: New file.
8621         * Makefile.in (OBJS-common): Add tree-stdarg.o.
8622         (tree-stdarg.o): Add dependencies.
8623         * function.h (struct function): Add va_list_gpr_size and
8624         va_list_fpr_size fields.
8625         * function.c (allocate_struct_function): Initialize them.
8626
8627         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
8628         va_list_{g,f}pr_counter_field.
8629         (ix86_setup_incoming_varargs): Don't do anything if reg_save
8630         area will not be used.  Only save registers that tree-stdarg.c
8631         detected they need saving.
8632         (ix86_va_start): Don't set up fields that won't be used.
8633
8634         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
8635         va_list_{g,f}pr_counter_field.
8636         (setup_incoming_varargs): Don't do anything if reg_save
8637         area will not be used.  Only save registers that tree-stdarg.c
8638         detected they need saving.
8639         (rs6000_va_start): Don't set up fields that won't be used.
8640
8641 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
8642
8643         * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED,
8644         BUILT_IN_FPUTS, BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE,
8645         BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_PUTCHAR, BUILT_IN_PUTCHAR_UNLOCKED,
8646         BUILT_IN_PUTS, BUILT_IN_PUTS_UNLOCKED): Remove nothrow attribute.
8647         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_1_2,
8648         ATTR_NONNULL_1_4): New.
8649
8650 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
8651
8652         PR tree-optimization/17697
8653         * tree-ssa-ccp.c (execute_fold_all_builtins): Update eh and cleanup
8654         cfg if needed.
8655
8656 2004-09-28  Per Bothner  <per@bothner.com>
8657
8658         * profile.c (branch_prob): Pass correct value to output_location,
8659         even when USE_MAPPED_LOCATION.  Fixes bug from 09-11.
8660
8661 2004-09-28  Richard Henderson  <rth@redhat.com>
8662
8663         PR 15089
8664         * tree-ssa-copy.c (may_propagate_copy_into_asm): New.
8665         * tree-flow.h (may_propagate_copy_into_asm): Declare.
8666         * tree-ssa-ccp.c (replace_uses_in): Use it.
8667         * tree-ssa-dom.c (cprop_operand): Likewise.
8668
8669 2004-09-28 Jeff Law  <law@redhat.com>
8670
8671         * tree-ssa-threadupdate.c (create_block_for_threading):  Request
8672         that no outgoing edges be left in the duplicate block.  Do no
8673         update information on outgoing edges or PHI nodes in target
8674         blocks here.
8675         (remove_ctrl_stmt_and_useless_edges): Renamed from
8676         remove_last_stmt_and_useless_edges.  Handle case where the
8677         block is empty or has no control statements.  Do not update edge
8678         flags here.
8679         (thread_block): Create a template block rather than copying the
8680         original block every time.  Create outgoing edges from the
8681         duplicate blocks and update PHIs at the target of the outgoing
8682         edges here.  Fix edge flags for the original block if necessary.
8683         * cfghooks (duplicate_block): No longer assert that the original
8684         block has incoming edges.
8685
8686 2004-09-29  Hans-Peter Nilsson  <hp@bitrange.com>
8687
8688         * doc/extend.texi (Extended Asm): Add blurb about using Explicit
8689         Reg Vars to enforce register allocation with general constraints.
8690         (Explicit Reg Vars): Clarify relation to asm statements.
8691         (Local Reg Vars): Similar.
8692
8693 2004-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
8694
8695         * sched-rgn.c (haifa_edge, edge_table, NEXT_IN, NEXT_OUT, FROM_BLOCK,
8696         TO_BLOCK, nr_edges, in_edges, out_edges, IN_EDGES, OUT_EDGES,
8697         build_control_flow, new_edge): Remove.
8698         (schedule_insns): Remove edge_table/in_edges/out_edges cleanup.
8699         (bitlst, bitlst_table_last, bitlst_table): Remove.
8700         (bblst): Store basic_block pointer instead of block index.
8701         (bblst_table): Likewise.
8702         (edgelst): Store edge pointer instead of edge index.
8703         (edgelst_table, edgelst_last): New variables.
8704         (extract_bitlst): Rename to ...
8705         (extract_edgelst): ... this.  Return edge pointers, not indices.
8706         (split_edges): Update call.
8707         (rgn_edges): Store edge pointers instead of indices.
8708         (edge_to_bit): Remove.
8709         (EDGE_TO_BIT): Store per-region edge index in edge->aux.
8710         (SET_EDGE_TO_BIT): New macro.
8711         (is_cfg_nonregular): Check for simple cases of unreachable blocks.
8712         (find_rgns): Remove edge_list parameter.  Traverse standard CFG
8713         data structures instead of haifa_edge et al.  Use edge pointers
8714         instead of edge indices everywhere.
8715         (compute_dom_prob_ps): Use standard CFG data structures.  Account
8716         for exit edges.
8717         (compute_trg_info): Likewise.
8718         (propagate_deps): Likewise.
8719         (debug_candidate): Account for bblst data structure change.
8720         (check_live_1, update_live_1, is_pfree): Likewise.
8721         (IS_REACHABLE): Use standard CFG data structures.
8722         (init_ready_list): Update bblst_table/edgelst_table allocation.
8723         (schedule_region): Update alloc/cleanup code to data structure
8724         changes.  Use edge->aux to store per-region edge index.
8725         (init_regions): No longer call build_control_flow.  Do not
8726         create edge list any more.
8727
8728 2004-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
8729
8730         * cse.c (cse_insn): Avoid creating direct non-local jumps.
8731         * combine.c (can_combine_p): Likewise.
8732         * local-alloc. (update_equiv_regs): Likewise.
8733
8734 2004-09-28  Richard Henderson  <rth@redhat.com>
8735
8736         PR 17531
8737         * expr.c (expand_expr_addr_expr_1): Only assemble_external for decls.
8738         Don't check VOIDmode here.  Force PLUS operands to common type.
8739         (expand_expr_addr_expr): Do VOIDmode check earlier.  Force use of
8740         Pmode if given a non pointer type.
8741
8742 2004-09-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8743
8744         PR 17531
8745         * optabs.c (expand_binop): Force constants to the correct mode.
8746
8747 2004-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
8748
8749         * config/s390/s390.c (s390_adjust_cost): Remove.
8750         (TARGET_SCHED_ADJUST_COST): Do not redefine.
8751         (s390_adjust_priority): Handle TYPE_STM like TYPE_STORE.
8752         * config/s390/s390.md ("main_pool"): Use "larl" type
8753         attribute if TARGET_CPU_ZARCH.
8754
8755 2004-09-28  Jakub Jelinek  <jakub@redhat.com>
8756
8757         * config/ia64/ia64.c (ia64_expand_prologue): Declare ei
8758         variable.
8759
8760 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
8761
8762         * tree-ssa-loop.c (pass_record_bounds): Do not assign a
8763         name to the pass.
8764
8765 2004-09-28  Steven Bosscher  <stevenb@suse.de>
8766
8767         * common.opt (flag_gcse_sm): Disable by default.
8768         (flag_gcse_las): Likewise.
8769         (flag_web): Likewise.  Create from this file.
8770         * flags.h: Remove flag_web declaration.
8771         * toplev.c (flag_web): Likewise.
8772         (process_options): Never set flag_web.
8773
8774 2004-09-28  Steven Bosscher  <stevenb@suse.de>
8775
8776         * Makefile.in (tree-ssa-propagate.o): Depend on vec.h.
8777         * tree-ssa-propagate.c: Include vec.h.
8778         (interesting_ssa_edges, varying_ssa_edges): Make these VECs
8779         instead of varrays.
8780         (cfg_blocks_add): Assert the block is not already in the worklist.
8781         Update uses of interesting_ssa_edges and varying_ssa_edges.
8782         (process_ssa_edge_worklist, ssa_prop_init, ssa_prop_fini,
8783         ssa_propagate): Likewise.
8784
8785 2004-09-28  Joseph S. Myers  <jsm@polyomino.org.uk>
8786
8787         PR c/16409
8788         * c-decl.c (start_decl): Check for initializing incomplete array
8789         of VLAs.
8790         (build_compound_literal): Check for TYPE being error_mark_node.
8791         * c-parse.in (primary): Check for VLA compound literals.
8792
8793 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
8794
8795         * tree-ssa-live.c (calculate_live_on_entry): Fix warnings
8796         with --disable-checking.
8797
8798 2004-09-28  Devang Patel  <dpatel@apple.com>
8799
8800         * tree-pretty-print.c (dump_generic_node): Print vector types.
8801
8802 2004-09-28  Nick Clifton  <nickc@redhat.com>
8803
8804         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Replace with an
8805         invocation of the function sh_init_cumulative_args.
8806         (INIT_CUMULATIVE_LIBCALL_ARGS): Likewise.
8807         (INIT_CUMULATIVE_INCOMING_ARGS): Delete.
8808         * config/sh/sh-protos.h: Prototype sh_init_cumulative_args.
8809         * config/sh/sh.c (sh_init_cumulative_args): New function based
8810         on the contents of the old INIT_CUMULATIVE_ARGS macro but with a
8811         heuristic added to determine the setting of force_mem when a
8812         library function is being called.
8813
8814 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
8815
8816         * tree-ssa-loop-im.c (single_reachable_address) <PHI_NODE>:
8817         Skip constant arguments.
8818
8819 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
8820
8821         * tree-ssa-alias.c (create_name_tags): If PTR points to a
8822         volatile type, mark the tag volatile.
8823         (get_tmt_for): If TAG_TYPE is a volatile type, mark the tag
8824         volatile.
8825
8826 2004-09-28  Andrew Pinski  <pinskia@physics.uc.edu>
8827
8828         * tree.def (vec_cond_expr): Fix. Change 'e'
8829         to tcc_expression.
8830
8831 2004-09-28  Kazu Hirata  <kazu@cs.umass.edu>
8832
8833         * basic-block.h: Fix a comment typo.
8834
8835 2004-09-28  Kazu Hirata  <kazu@cs.umass.edu>
8836
8837         * optabs.c, optabs.h: Fix comment typos.
8838
8839 2004-09-28  Eric Botcazou  <ebotcazou@act-europe.fr>
8840
8841         * config/sparc/sparc.md (call_address_struct_value_sp32):
8842         Properly mask the immediate field of the 'unimp' instruction.
8843         (call_symbolic_struct_value_sp32): Likewise.
8844
8845 2004-09-28  Ben Elliston  <bje@au.ibm.com>
8846             Steven Bosscher  <stevenb@suse.de>
8847             Andrew Pinski  <pinskia@physics.uc.edu>
8848
8849         Merge from edge-vector-branch:
8850         * basic-block.h: Include vec.h, errors.h. Instantiate a VEC(edge).
8851         (struct edge_def): Remove pred_next, succ_next members.
8852         (struct basic_block_def): Remove pred, succ members.  Add preds
8853         and succs members of type VEC(edge).
8854         (FALLTHRU_EDGE): Redefine using EDGE_SUCC.
8855         (BRANCH_EDGE): Likewise.
8856         (EDGE_CRITICAL_P): Redefine using EDGE_COUNT.
8857         (EDGE_COUNT, EDGE_I, EDGE_PRED, EDGE_SUCC): New.
8858         (edge_iterator): New.
8859         (ei_start, ei_last, ei_end_p, ei_one_before_end_p): New.
8860         (ei_next, ei_prev, ei_edge, ei_safe_edge): Likewise.
8861         (FOR_EACH_EDGE): New.
8862         * bb-reorder.c (find_traces): Use FOR_EACH_EDGE and EDGE_* macros
8863         where applicable.
8864         (rotate_loop): Likewise.
8865         (find_traces_1_route): Likewise.
8866         (bb_to_key): Likewise.
8867         (connect_traces): Likewise.
8868         (copy_bb_p): Likewise.
8869         (find_rarely_executed_basic_blocks_and_crossing_edges): Likewise.
8870         (add_labels_and_missing_jumps): Likewise.
8871         (fix_up_fall_thru_edges): Likewise.
8872         (find_jump_block): Likewise.
8873         (fix_crossing_conditional_branches): Likewise.
8874         (fix_crossing_unconditional_branches): Likewise.
8875         (add_reg_crossing_jump_notes): Likewise.
8876         * bt-load.c (augment_live_range): Likewise.
8877         * cfg.c (clear_edges): Likewise.
8878         (unchecked_make_edge): Likewise.
8879         (cached_make_edge): Likewise.
8880         (make_single_succ_edge): Likewise.
8881         (remove_edge): Likewise.
8882         (redirect_edge_succ_nodup): Likewise.
8883         (check_bb_profile): Likewise.
8884         (dump_flow_info): Likewise.
8885         (alloc_aux_for_edges): Likewise.
8886         (clear_aux_for_edges): Likewise.
8887         (dump_cfg_bb_info): Likewise.
8888         * cfganal.c (forwarder_block_p): Likewise.
8889         (can_fallthru): Likewise.
8890         (could_fall_through): Likewise.
8891         (mark_dfs_back_edges): Likewise.
8892         (set_edge_can_fallthru_flag): Likewise.
8893         (find_unreachable_blocks): Likewise.
8894         (create_edge_list): Likewise.
8895         (verify_edge_list): Likewise.
8896         (add_noreturn_fake_exit_edges): Likewise.
8897         (connect_infinite_loops_to_exit): Likewise.
8898         (flow_reverse_top_sort_order_compute): Likewise.
8899         (flow_depth_first_order_compute): Likewise.
8900         (flow_preorder_transversal_compute): Likewise.
8901         (flow_dfs_compute_reverse_execute): Likewise.
8902         (dfs_enumerate_from): Likewise.
8903         (compute_dominance_frontiers_1): Likewise.
8904         * cfgbuild.c (make_edges): Likewise.
8905         (compute_outgoing_frequencies): Likewise.
8906         (find_many_sub_basic_blocks): Likewise.
8907         (find_sub_basic_blocks): Likewise.
8908         * cfgcleanup.c (try_simplify_condjump): Likewise.
8909         (thread_jump): Likewise.
8910         (try_forward_edges): Likewise.
8911         (merge_blocks_move): Likewise.
8912         (outgoing_edges_match): Likewise.
8913         (try_crossjump_to_edge): Likewise.
8914         (try_crossjump_bb): Likewise.
8915         (try_optimize_cfg): Likewise.
8916         (merge_seq_blocks): Likewise.
8917         * cfgexpand.c (expand_gimple_tailcall): Likewise.
8918         (expand_gimple_basic_block): Likewise.
8919         (construct_init_block): Likewise.
8920         (construct_exit_block): Likewise.
8921         * cfghooks.c (verify_flow_info): Likewise.
8922         (dump_bb): Likewise.
8923         (delete_basic_block): Likewise.
8924         (split_edge): Likewise.
8925         (merge_blocks): Likewise.
8926         (make_forwarder_block): Likewise.
8927         (tidy_fallthru_edges): Likewise.
8928         (can_duplicate_block_p): Likewise.
8929         (duplicate_block): Likewise.
8930         * cfglayout.c (fixup_reorder_chain): Likewise.
8931         (fixup_fallthru_exit_predecessor): Likewise.
8932         (can_copy_bbs_p): Likewise.
8933         (copy_bbs): Likewise.
8934         * cfgloop.c (flow_loops_cfg_dump): Likewise.
8935         (flow_loop_entry_edges_find): Likewise.
8936         (flow_loop_exit_edges_find): Likewise.
8937         (flow_loop_nodes_find): Likewise.
8938         (mark_single_exit_loops): Likewise.
8939         (flow_loop_pre_header_scan): Likewise.
8940         (flow_loop_pre_header_find): Likewise.
8941         (update_latch_info): Likewise.
8942         (canonicalize_loop_headers): Likewise.
8943         (flow_loops_find): Likewise.
8944         (get_loop_body_in_bfs_order): Likewise.
8945         (get_loop_exit_edges): Likewise.
8946         (num_loop_branches): Likewise.
8947         (verify_loop_structure): Likewise.
8948         (loop_latch_edge): Likewise.
8949         (loop_preheader_edge): Likewise.
8950         * cfgloopanal.c (mark_irreducible_loops): Likewise.
8951         (expected_loop_iterations): Likewise.
8952         * cfgloopmanip.c (remove_bbs): Likewise.
8953         (fix_bb_placement): Likewise.
8954         (fix_irreducible_loops): Likewise.
8955         (remove_path): Likewise.
8956         (scale_bbs_frequencies): Likewise.
8957         (loopify): Likewise.
8958         (unloop): Likewise.
8959         (fix_loop_placement): Likewise.
8960         (loop_delete_branch_edge): Likewise.
8961         (duplicate_loop_to_header_edge): Likewise.
8962         (mfb_keep_just): Likewise.
8963         (create_preheader): Likewise.
8964         (force_single_succ_latches): Likewise.
8965         (loop_split_edge_with): Likewise.
8966         (create_loop_notes): Likewise.
8967         * cfgrtl.c (rtl_split_block): Likewise.
8968         (rtl_merge_blocks): Likewise.
8969         (rtl_can_merge_blocks): Likewise.
8970         (try_redirect_by_replacing_jump): Likewise.
8971         (force_nonfallthru_and_redirect): Likewise.
8972         (rtl_tidy_fallthru_edge): Likewise.
8973         (commit_one_edge_insertion): Likewise.
8974         (commit_edge_insertions): Likewise.
8975         (commit_edge_insertions_watch_calls): Likewise.
8976         (rtl_verify_flow_info_1): Likewise.
8977         (rtl_verify_flow_info): Likewise.
8978         (purge_dead_edges): Likewise.
8979         (cfg_layout_redirect_edge_and_branch): Likewise.
8980         (cfg_layout_can_merge_blocks_p): Likewise.
8981         (rtl_flow_call_edges_add): Likewise.
8982         * cse.c (cse_cc_succs): Likewise.
8983         * df.c (hybrid_search): Likewise.
8984         * dominance.c (calc_dfs_tree_nonrec): Likewise.
8985         (calc_dfs_tree): Likewise.
8986         (calc_idoms): Likewise.
8987         (recount_dominator): Likewise.
8988         * domwalk.c (walk_dominator_tree): Likewise.
8989         * except.c (emit_to_new_bb_before): Likewise.
8990         (connect_post_landing_pads): Likewise.
8991         (sjlj_emit_function_enter): Likewise.
8992         (sjlj_emit_function_exit): Likewise.
8993         (finish_eh_generation): Likewise.
8994         * final.c (compute_alignments): Likewise.
8995         * flow.c (calculate_global_regs_live): Likewise.
8996         (initialize_uninitialized_subregs): Likewise.
8997         (init_propagate_block_info): Likewise.
8998         * function.c (thread_prologue_and_epilogue_insns): Likewise.
8999         * gcse.c (find_implicit_sets): Likewise.
9000         (bypass_block): Likewise.
9001         (bypass_conditional_jumps): Likewise.
9002         (compute_pre_data): Likewise.
9003         (insert_insn_end_bb): Likewise.
9004         (insert_store): Likewise.
9005         (remove_reachable_equiv_notes): Likewise.
9006         * global.c (global_conflicts): Likewise.
9007         (calculate_reg_pav): Likewise.
9008         * graph.c (print_rtl_graph_with_bb): Likewise.
9009         * ifcvt.c (mark_loop_exit_edges): Likewise.
9010         (merge_if_block): Likewise.
9011         (find_if_header): Likewise.
9012         (block_jumps_and_fallthru_p): Likewise.
9013         (find_if_block): Likewise.
9014         (find_cond_trap): Likewise.
9015         (block_has_only_trap): Likewise.
9016         (find_if_case1): Likewise.
9017         (find_if_case_2): Likewise.
9018         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
9019         (perfect_nestify): Likewise.
9020         * lcm.c (compute_antinout_edge): Likewise.
9021         (compute_laterin): Likewise.
9022         (compute_available): Likewise.
9023         (compute_nearerout): Likewise.
9024         * loop-doloop.c (doloop_modify): Likewise.
9025         * loop-init.c (loop_optimizer_init): Likewise.
9026         * loop-invariant.c (find_exits): Likewise.
9027         * loop-iv.c (simplify_using_initial_values): Likewise.
9028         (check_simple_exit): Likewise.
9029         (find_simple_exit): Likewise.
9030         * loop-unroll.c (peel_loop_completely): Likewise.
9031         (unroll_loop_constant_iterations): Likewise.
9032         (unroll_loop_runtime_iterations): Likewise.
9033         * loop-unswitch.c (may_unswitch_on): Likewise.
9034         (unswitch_loop): Likewise.
9035         * modulo-sched.c (generate_prolog_epilog): Likewise.
9036         (sms_schedule): Likewise.
9037         * postreload-gcse.c (eliminate_partially_redundant_load):
9038         Likewise.
9039         * predict.c (can_predict_insn_p): Likewise.
9040         (set_even_probabilities): Likewise.
9041         (combine_predictions_for_bb): Likewise.
9042         (predict_loops): Likewise.
9043         (estimate_probability): Likewise.
9044         (tree_predict_by_opcode): Likewise.
9045         (tree_estimate_probability): Likewise.
9046         (last_basic_block_p): Likewise.
9047         (propagate_freq): Likewise.
9048         (estimate_loops_at_level): Likewise.
9049         (estimate_bb_frequencies): Likewise.
9050         * profile.c (instrument_edges): Likewise.
9051         (get_exec_counts): Likewise.
9052         (compute_branch_probabilities): Likewise.
9053         (branch_prob): Likewise.
9054         * ra-build.c (live_in): Likewise.
9055         * ra-rewrite.c (rewrite_program2): Likewise.
9056         * ra.c (reg_alloc): Likewise.
9057         * reg-stack.c (reg_to_stack): Likewise.
9058         (convert_regs_entry): Likewise.
9059         (compensate_edge): Likewise.
9060         (convert_regs_1): Likewise,
9061         (convert_regs_2): Likewise.
9062         (convert_regs): Likewise.
9063         * regrename.c (copyprop_hardreg_forward): Likewise.
9064         * reload1.c (fixup_abnormal_edges): Likewise.
9065         * sbitmap.c (sbitmap_intersection_of_succs): Likewise.
9066         (sbitmap_insersection_of_preds): Likewise.
9067         (sbitmap_union_of_succs): Likewise.
9068         (sbitmap_union_of_preds): Likewise.
9069         * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
9070         (fix_basic_block_boundaries): Likewise.
9071         (sched_ebbs): Likewise.
9072         * sched-rgn.c (build_control_flow): Likewise.
9073         (find_rgns): Likewise.
9074         * tracer.c (find_best_successor): Likewise.
9075         (find_best_predecessor): Likewise.
9076         (tail_duplicate): Likewise.
9077         * tree-cfg.c (make_edges): Likewise.
9078         (make_ctrl_stmt_edges): Likewise.
9079         (make_goto_expr_edges): Likewise.
9080         (tree_can_merge_blocks_p): Likewise.
9081         (tree_merge_blocks): Likewise.
9082         (cfg_remove_useless_stmts_bb): Likewise.
9083         (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
9084         (tree_block_forwards_to): Likewise.
9085         (cleanup_control_expr_graph): Likewise.
9086         (find_taken_edge): Likewise.
9087         (dump_cfg_stats): Likewise.
9088         (tree_cfg2vcg): Likewise.
9089         (disband_implicit_edges): Likewise.
9090         (tree_find_edge_insert_loc): Likewise.
9091         (bsi_commit_edge_inserts): Likewise.
9092         (tree_split_edge): Likewise.
9093         (tree_verify_flow_info): Likewise.
9094         (tree_make_forwarder_block): Likewise.
9095         (tree_forwarder_block_p): Likewise.
9096         (thread_jumps): Likewise.
9097         (tree_try_redirect_by_replacing_jump): Likewise.
9098         (tree_split_block): Likewise.
9099         (add_phi_args_after_copy_bb): Likewise.
9100         (rewrite_to_new_ssa_names_bb): Likewise.
9101         (dump_function_to_file): Likewise.
9102         (print_pred_bbs): Likewise.
9103         (print_loop): Likewise.
9104         (tree_flow_call_edges_add): Likewise.
9105         (split_critical_edges): Likewise.
9106         (execute_warn_function_return): Likewise.
9107         (extract_true_false_edges_from_block): Likewise.
9108         * tree-if-conv.c (tree_if_conversion): Likewise.
9109         (if_convertable_bb_p): Likewise.
9110         (find_phi_replacement_condition): Likewise.
9111         (combine_blocks): Likewise.
9112         * tree-into-ssa.c (compute_global_livein): Likewise.
9113         (ssa_mark_phi_uses): Likewise.
9114         (ssa_rewrite_initialize_block): Likewise.
9115         (rewrite_add_phi_arguments): Likewise.
9116         (ssa_rewrite_phi_arguments): Likewise.
9117         (insert_phi_nodes_for): Likewise.
9118         (rewrite_into_ssa): Likewise.
9119         (rewrite_ssa_into_ssa): Likewise.
9120         * tree-mudflap.c (mf_build_check_statement_for): Likewise.
9121         * tree-outof-ssa.c (coalesce_abnormal_edges): Likewise.
9122         (rewrite_trees): Likewise.
9123         * tree-pretty-print.c (dump_bb_header): Likewise.
9124         (dump_implicit_edges): Likewise.
9125         * tree-sra.c (insert_edge_copies): Likewise.
9126         (find_obviously_necessary_stmts): Likewise.
9127         (remove_data_stmt): Likewise.
9128         * tree-ssa-dom.c (thread_across_edge): Likewise.
9129         (dom_opt_finalize_block): Likewise.
9130         (single_incoming_edge_ignoring_loop_edges): Likewise.
9131         (record_equivalences_from_incoming_edges): Likewise.
9132         (cprop_into_successor_phis): Likewise.
9133         * tree-ssa-live.c (live_worklist): Likewise.
9134         (calculate_live_on_entry): Likewise.
9135         (calculate_live_on_exit): Likewise.
9136         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
9137         (copy_loop_headers): Likewise.
9138         * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
9139         (fill_always_executed_in): Likewise.
9140         * tree-ssa-loop-ivcanon.c (create_canonical_iv): Likewise.
9141         * tree-ssa-loop-ivopts.c (find_interesting_uses): Likewise.
9142         (compute_phi_arg_on_exit): Likewise.
9143         * tree-ssa-loop-manip.c (add_exit_phis_edge): Likewise.
9144         (get_loops_exit): Likewise.
9145         (split_loop_exit_edge): Likewise.
9146         (ip_normal_pos): Likewise.
9147         * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
9148         Likewise.
9149         * tree-ssa-phiopt.c (candidate_bb_for_phi_optimization): Likewise.
9150         (replace_phi_with_stmt): Likewise.
9151         (value_replacement): Likewise.
9152         * tree-ssa-pre.c (compute_antic_aux): Likewise.
9153         (insert_aux): Likewise.
9154         (init_pre): Likewise.
9155         * tree-ssa-propagate.c (simulate_stmt): Likewise.
9156         (simulate_block): Likewise.
9157         (ssa_prop_init): Likewise.
9158         * tree-ssa-threadupdate.c (thread_block): Likewise.
9159         (create_block_for_threading): Likewise.
9160         (remove_last_stmt_and_useless_edges): Likewise.
9161         * tree-ssa.c (verify_phi_args): Likewise.
9162         (verify_ssa): Likewise.
9163         * tree_tailcall.c (independent_of_stmt_p): Likewise.
9164         (find_tail_calls): Likewise.
9165         (eliminate_tail_call): Likewise.
9166         (tree_optimize_tail_calls_1): Likewise.
9167         * tree-vectorizer.c (vect_transform_loop): Likewise.
9168         * var-tracking.c (prologue_stack_adjust): Likewise.
9169         (vt_stack_adjustments): Likewise.
9170         (vt_find_locations): Likewise.
9171         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
9172         * config/i386/i386.c (ix86_pad_returns): Likewise.
9173         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
9174         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
9175
9176 2004-09-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
9177
9178         PR target/16532
9179         * config/sparc/sparc.c (struct machine_function): New field
9180         'leaf_function_p' and 'prologue_data_valid_p'.
9181         (sparc_leaf_function_p, sparc_prologue_data_valid_p): New macro
9182         to conveniently access the above fields.
9183         (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Delete.
9184         (eligible_for_return_delay): Use 'sparc_leaf_function_p' instead
9185         of the generic flavor 'current_function_uses_only_leaf_regs'.
9186         (eligible_for_sibcall_delay): Likewise.
9187         (sparc_expand_prologue): Compute 'sparc_leaf_function_p' and set
9188         'sparc_prologue_data_valid_p'.  Use 'sparc_leaf_function_p'.
9189         (sparc_asm_function_prologue): Add sanity check for the assumption
9190         made in 'sparc_expand_prologue'.  Use 'sparc_leaf_function_p'.
9191         (sparc_can_use_return_insn_p): New function.
9192         (sparc_expand_epilogue): Use 'sparc_leaf_function_p'.
9193         (output_restore): Likewise.
9194         (output_sibcall): Likewise.
9195         (sparc_output_mi_thunk): Likewise.
9196         * config/sparc/sparc-protos.h (sparc_can_use_return_insn_p): Declare.
9197         * config/sparc/sparc.md (return): New expander.
9198
9199         * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Minor tweak.
9200
9201 2004-09-27  Mark Mitchell  <mark@codesourcery.com>
9202
9203         PR c++/17642
9204         * stor-layout.c (layout_decl): Use fold_convert, not convert.
9205         (bit_from_pos): Likewise.
9206         (byte_from_pos): Likewise.
9207         (pos_from_bit): Likewise.
9208         (normalize_offset): Likewise.
9209         (place_field): Likewise.
9210         (finalize_type_size): Likewise.
9211         (layout_type): Likewise.
9212         * tree.c (build_index_type): Likewise.
9213
9214 2004-09-27  Devang Patel  <dpatel@apple.com>
9215
9216         * expr.c (expand_expr_real_1): Handle VEC_COND_EXPR.
9217         * genopinit.c (optabs): New entry for vcond_gen_code and
9218         vcondu_gen_code.
9219         * optabs.c (vcond_gen_code, vcondu_gen_code): New optabs.
9220         (get_rtx_code): New function.
9221         (vector_compare_rtx): New function.
9222         (init_optabs): Initialize vcond_gen_code and vcondu_gen_code.
9223         (expand_vec_cond_expr_p): New function.
9224         (expand_vec_cond_expr): New function.
9225         (get_vcond_icode): New function.
9226         * optabs.h (expand_vec_cond_expr, expand_vec_cond_expr_p): New externs.
9227         (vcond_gen_code, vcondu_gen_code): Same.
9228
9229 2004-09-27  Kelley Cook  <kcook@gcc.gnu.org>
9230
9231         * Makefile.in (STAGESTUFF): Split into ...
9232         (STAGECOPYSTUFF, STAGEMOVESTUFF): ... these.
9233         (mostlyclean): Update.
9234         (stage1-start, stage2-start, stage3-start, stage4-start,
9235         stageprofile-start, stagefeedback-start): Copy the STAGECOPYSTUFF.
9236         Move the STAGEMOVESTUFF.
9237
9238 2004-09-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
9239
9240         * system.h (getpagesize): Return 'int' instead of 'long'.
9241
9242 2004-09-27  Michael Matz <matz@suse.de>
9243
9244         PR bootstrap/17698
9245         PR bootstrap/17702
9246         * bitmap.h (bmp_iter_single_init, bmp_iter_and_not_init,
9247         bmp_iter_and_init): Shift by bit_in_word.
9248
9249 2004-09-27  Kelley Cook  <kcook@gcc.gnu.org>
9250
9251         * aclocal.m4: Quote m4_includes. Include ../config/gcc-lib-path.m4.
9252         * configure.ac: Don't sinclude it here.
9253         * configure: Regenerate.
9254
9255 2004-09-27  Dorit Naishlos  <dorit@il.ibm.com>
9256
9257         * config/rs6000/rs6000.c (rs6000_legitimate_address, print_operand):
9258         Handle AND pattern
9259
9260 2004-09-27  Joseph S. Myers  <jsm@polyomino.org.uk>
9261
9262         PR c/13804
9263         * c-typeck.c (build_component_ref): Name type involved in
9264         diagnostic for structure or union without a member of the given
9265         name.
9266
9267 2004-09-27  DJ Delorie  <dj@redhat.com>
9268
9269         * config/stormy16/stormy16.c (xstormy16_asm_output_aligned_common):
9270         .comm alignment is bytes, not bits.
9271
9272 2004-09-27  Devang Patel  <dpatel@apple.com>
9273
9274         * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
9275         (print_call_name): Do not print VEC_COND_EXPR.
9276
9277 2004-09-27  Devang Patel  <dpatel@apple.com>
9278
9279         * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
9280
9281 2004-09-27  Jan Hubicka  <jh@suse.cz>
9282
9283         * i386.c (athlon_cost, k8_cost): Set BRANCH_COST to 5.
9284
9285 2004-09-27  Kazu Hirata  <kazu@cs.umass.edu>
9286
9287         * bitmap.h: Fix a comment typo.
9288
9289 2004-09-27  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
9290
9291         * libgcc2.c (getpagesize): Change type of return value to int.
9292
9293 2004-09-26  Matt Austern  <austern@apple.com>
9294
9295         * ggc-page.c (GGC_QUIRE_SIZE): Bump up from 16 to 256 if we're
9296         using mmap.
9297
9298 2004-09-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9299
9300         * bitmap.h (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_COMPL_IN_BITMAP,
9301         EXECUTE_IF_AND_IN_BITMAP): Changed to iterator style.
9302         (bitmap_iterator): New type.
9303         (bmp_iter_common_next_1, bmp_iter_single_next_1, bmp_iter_single_init,
9304         bmp_iter_end_p, bmp_iter_single_next, bmp_iter_and_not_next_1,
9305         bmp_iter_and_not_init, bmp_iter_and_not_next, bmp_iter_and_next_1,
9306         bmp_iter_and_init, bmp_iter_and_next): New functions.
9307         * basic-block.h (EXECUTE_IF_SET_IN_REG_SET,
9308         EXECUTE_IF_AND_COMPL_IN_REG_SET, EXECUTE_IF_AND_IN_REG_SET): Changed to
9309         use iterator-style EXECUTE_IF_IN_BITMAP macros.
9310         * bitmap.c (bitmap_print): Ditto.
9311         * bt-load.c (clear_btr_from_live_range, add_btr_to_live_range,
9312         btr_def_live_range): Ditto.
9313         * cfganal.c (compute_dominance_frontiers_1) Ditto.
9314         * cgraphunit.c (convert_UIDs_in_bitmap, cgraph_characterize_statics):
9315         Ditto.
9316         * ddg.c (build_inter_loop_deps): Ditto.
9317         * df.c (FOR_EACH_BB_IN_BITMAP, df_bb_reg_info_compute, df_refs_update):
9318         Ditto.
9319         * except.c (remove_eh_handler): Ditto.
9320         * flow.c (reg_set_to_hard_reg_set): Ditto.
9321         * gcse.c (clear_modify_mem_tables): Ditto.
9322         * global.c (build_insn_chain): Ditto.
9323         * ifcvt.c (dead_or_predicable): Ditto.
9324         * loop-invariant.c (get_inv_cost, set_move_mark, move_invariant_reg):
9325         Ditto.
9326         * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs): Ditto.
9327         * ra-rewrite.c (reloads_to_loads, rewrite_program2,
9328         detect_web_parts_to_rebuild, delete_useless_defs, actual_spill): Ditto.
9329         * tree-cfg.c (allocate_ssa_names, tree_duplicate_sese_region,
9330         tree_purge_all_dead_eh_edges): Ditto.
9331         * tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
9332         insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags,
9333         rewrite_ssa_into_ssa): Ditto.
9334         * tree-outof-ssa.c (find_replaceable_exprs): Ditto.
9335         * tree-sra.c (scan_function, decide_instantiations, scalarize_parms):
9336         Ditto.
9337         * tree-ssa-alias.c (init_alias_info, compute_points_to_and_addr_escape,
9338         compute_flow_sensitive_aliasing, maybe_create_global_var,
9339         dump_points_to_info_for): Ditto.
9340         * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Ditto.
9341         * tree-ssa-dse.c (dse_finalize_block): Ditto.
9342         * tree-ssa-live.c (live_worklist, calculate_live_on_entry,
9343         calculate_live_on_exit, build_tree_conflict_graph, dump_live_info):
9344         Ditto.
9345         * tree-ssa-loop-ivopts.c (find_induction_variables,
9346         find_interesting_uses, add_old_ivs_candidates, alloc_use_cost_map,
9347         determine_use_iv_costs, determine_set_costs, find_best_candidate,
9348         set_cost_up_to, create_new_ivs, remove_unused_ivs, free_loop_data):
9349         Ditto.
9350         * tree-ssa-loop-manip.c (add_exit_phis_var, add_exit_phis): Ditto.
9351         * tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
9352         add_call_read_ops): Ditto.
9353         * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Ditto.
9354
9355 2004-09-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9356
9357         * pa.c (print_operand): Use non-trapping completers for UNLE, UNLT,
9358         UNGE, UNGT, UNEQ, UNORDERED and ORDERED comparisons.
9359
9360 2004-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
9361
9362         * builtins.c (expand_builtin_memcmp): Adjust MEM_SIZE to
9363         reflect size of memory regions being compared.
9364
9365 2004-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
9366
9367         * builtins.c (get_memory_rtx): Set mem attributes for non-ADDR_EXPR
9368         expressions.  Always clear MEM_SIZE and alias set.
9369
9370 2004-09-26  Roger Sayle  <roger@eyesopen.com>
9371             Giovanni Bajo  <giovannibajo@gcc.gnu.org>
9372
9373         PR middle-end/17112
9374         * stor-layout.c (compute_record_mode): For records with a single
9375         field, only use the field's mode if its size matches what we'd
9376         have choosen for the record ourselves.  This forces the use of
9377         BLKmode for packed records that don't completely fill a mode.
9378
9379 2004-09-26  Roger Sayle  <roger@eyesopen.com>
9380
9381         PR middle-end/17151
9382         * combine.c (force_to_mode): Remove dubious early return test that
9383         inhibits further optimization.
9384
9385 2004-09-26  Kazu Hirata  <kazu@cs.umass.edu>
9386
9387         * profile.c: Fix a comment typo.
9388
9389 2004-09-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9390
9391         PR bootstrap/17591
9392         * tree-ssa-loop-im.c (for_each_index): Call callback for component_refs
9393         with varying offset.
9394         * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): New function.
9395         (idx_contains_abnormal_ssa_name_p): Scan step and lower bound for
9396         ARRAY_REFS.
9397         (expr_invariant_in_loop_p): New function.
9398         (idx_find_step): Handle step and lower bound for ARRAY_REFs.  Handle
9399         component_ref_field_offset for COMPONENT_REFs.  Do not allow
9400         ALIGN_INDIRECT_REFs and MISALIGNED_INDIRECT_REFs.
9401         (add_address_candidates): Do not handle ALIGN_INDIRECT_REFs and
9402         MISALIGNED_INDIRECT_REFs.
9403         (idx_remove_ssa_names): Handle step and lower bound for ARRAY_REFs.
9404         (rewrite_address_base): Do not handle ALIGN_INDIRECT_REFs and
9405         MISALIGNED_INDIRECT_REFs.
9406
9407 2004-09-26  Joseph S. Myers  <jsm@polyomino.org.uk>
9408
9409         PR c/11459
9410         * gcc.c (cpp_options, cc1_options): Preserve relative order of
9411         -std and -ansi options.
9412
9413 2004-09-26  Jan Hubicka  <jh@suse.cz>
9414
9415         * dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die
9416         for nested functions whose proper parent has not been output.
9417
9418         * profile.c (compute_branch_probabilities): Use REG_BR_PROB notes
9419         when re-constructing profile previously invalidated by loop.
9420
9421 2004-09-25  Dale Johannesen  <dalej@apple.com>
9422
9423         * tree-gimple.c:  Move GIMPLE definition...
9424         * doc/tree-ssa.texi:  here.
9425
9426 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
9427
9428         * tree-vectorizer.c: Fix a comment typo.
9429
9430 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
9431
9432         * c-typeck.c, defaults.h, dwarf.h, dwarf2out.c, fold-const.c,
9433         gthr-dce.h, gthr-posix.h, gthr-solaris.h, gthr-win32.h,
9434         lambda-code.c, lambda-mat.c, libgcc2.c, stmt.c,
9435         tree-ssa-pre.c, tree-vn.c, tree.h: Fix comment formatting.
9436
9437 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
9438
9439         * tree-ssa-loop-unswitch.c: Fix a comment typo.
9440
9441 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
9442
9443         * doc/passes.texi: Fix a typo.
9444
9445 2004-09-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9446
9447         * tree-optimize.c (init_tree_optimization_passes): Add
9448         pass_record_bounds.
9449         * tree-pass.h (pass_record_bounds): Declare.
9450         * tree-ssa-loop.c (tree_ssa_loop_bounds, pass_record_bounds):
9451         New pass.
9452
9453 2004-09-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9454
9455         PR tree-optimization/17474
9456         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Determine
9457         offset of the field correctly when DECL_FIELD_BIT_OFFSET != 0.
9458
9459 2004-09-25  Jan Hubicka  <jh@suse.cz>
9460
9461         * predict.c (counts_to_freqs): Make global.
9462         * predict.h (counts_to_freqa): Declare.
9463         * profile.c (compute_branch_probabilities): Compute frequencies
9464         * tree-profile.c (do_tree_profiling): Refine conditional on when
9465         tree profiling pass is needed.
9466
9467         * passes.c (rest_of_handle_cfg): Disable const/pure function
9468         detection when doing tree based profiling.
9469
9470         * tree-inline.c (expand_call_inline): Fix incorrectly reversed
9471         conditional.
9472
9473 2004-09-25  Richard Sandiford  <rsandifo@redhat.com>
9474
9475         * config/mips/mips.h (struct mips_args): Clarify comments.
9476         * config/mips/mips.c (struct mips_arg_info): Likewise.
9477         (mips_arg_info): Don't allow fpr_p to affect the register or
9478         stack alignment.  Remove o64 silliness.
9479         (function_arg): Deal with the o32 float,float case specially.
9480
9481 2004-09-25  Richard Sandiford  <rsandifo@redhat.com>
9482
9483         * config/mips/mips.md (loadx, storex): Define for V2SF.
9484
9485 2004-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
9486
9487         * config/s390/s390-protos.h (s390_back_chain_rtx): Add prototype.
9488         * config/s390/s390.c (s390_back_chain_rtx): New function.
9489         * config/s390/s390.md ("allocate_stack"): Use s390_back_chain_rtx.
9490         Call anti_adjust_stack.
9491         ("restore_stack_block"): Use s390_back_chain_rtx.  Enable pattern
9492         only if compiling with back chain.
9493         ("save_stack_nonlocal", "restore_stack_nonlocal"): Save/restore
9494         back chain only if back chain enabled.  Use s390_back_chain_rtx.
9495
9496 2004-09-25  Joseph S. Myers  <jsm@polyomino.org.uk>
9497
9498         * doc/trouble.texi: Remove obsolete information.  Update
9499         information on how to regenerate fixincluded headers.
9500
9501 2004-09-25  Joseph S. Myers  <jsm@polyomino.org.uk>
9502
9503         PR c/12951
9504         * doc/invoke.texi: Document that
9505         -Wno-error-implicit-function-declaration is not accepted.
9506
9507 2004-09-24  Richard Henderson  <rth@redhat.com>
9508
9509         * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): New.
9510         * config/alpha/alpha.c (alpha_vector_mode_supported_p): Don't depend
9511         on TARGET_MAX.
9512         (alpha_expand_mov): Allow unaligned vectors.
9513         (alpha_expand_unaligned_store): Use CONST0_RTX.
9514         (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
9515
9516 2004-09-24 Jeff Law  <law@redhat.com>
9517
9518         * tree-ssa-dom.c (dom_opt_finalize_block): Fix violation of strict
9519         aliasing rules.
9520         (simplify_cond_and_lookup_avail_expr): Likewise.
9521
9522 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
9523
9524         PR c/12802
9525         * doc/extend.texi (Unnamed Fields): Remove "." from end of long
9526         title.  Document interaction with -fms-extensions.
9527         * doc/invoke.texi (-fms-extensions): Refer to Unnamed Fields
9528         section.
9529
9530 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
9531
9532         PR c/12713
9533         * doc/extend.texi: Document interaction of attribute noreturn and
9534         longjmp.
9535
9536 2004-09-24  Richard Henderson  <rth@redhat.com>
9537
9538         PR rtl-opt/17503
9539         * regclass.c (subregs_of_mode): Turn into an htab.  Make static.
9540         (som_hash, som_eq): New.
9541         (init_subregs_of_mode, record_subregs_of_mode): New.
9542         (cannot_change_mode_set_regs): Rewrite for htab implementation.
9543         (invalid_mode_change_p): Likewise.
9544         * combine.c (gen_lowpart_for_combine): Use record_subregs_of_mode.
9545         * flow.c (mark_used_regs): Likewise.
9546         (life_analysis): Use init_subregs_of_mode.
9547         * regs.h (subregs_of_mode): Remove.
9548         * rtl.h (init_subregs_of_mode, record_subregs_of_mode): Declare.
9549
9550 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
9551
9552         * tree-ssa-phiopt.c (conditional_replacement): Use the correct
9553         type with the copy of the conditional.
9554
9555 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
9556
9557         PR tree-opt/16954
9558         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
9559         Prevent renaming if the aliasing sets of the type which the
9560         pointer points to are different.
9561
9562 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
9563
9564         PR c/17188
9565         * c-decl.c (diagnose_mismatched_decls): Check for duplicate
9566         declarations of enumerators.
9567         (start_struct): Check TYPE_SIZE rather than TYPE_FIELDS to check
9568         for redefinition.  Check for nested redefinition.
9569         (finish_struct): Don't check for nested redefinition.
9570         (start_enum): Check for nested redefinition.
9571
9572 2004-09-24  Devang Patel  <dpatel@apple.com>
9573
9574         * tree-if-conv.c (tree_if_convert_cond_expr0: Create temp. variable
9575         only when necesssary.
9576         (combine_blocks): Combine loop header and exit block.
9577
9578 2004-09-24  Paolo Bonzini  <bonzini@gnu.org>
9579
9580         * hooks.c (hook_tree_tree_bool_null): New.
9581         * hooks.h (hook_tree_tree_bool_null): Declare it.
9582         * target-def.c (TARGET_FOLD_BUILTIN): Point to it.
9583         * targhooks.c (default_fold_builtin): Remove.
9584         * targhooks.h (default_fold_builtin): Remove.
9585
9586 2004-09-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9587
9588         PR rtl-optimization/17625
9589         * loop-doloop.c (doloop_modify): Unshare rtl before emitting it.
9590
9591 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
9592
9593         PR tree-opt/17624
9594         * tree-ssa-forwprop.c (record_single_argument_cond_exprs):
9595         Reject if any of the operands occur in an abnormal PHI.
9596
9597 2004-09-24  Andreas Schwab  <schwab@suse.de>
9598
9599         * tree-ssa-dom.c (record_range): Fix violation of strict aliasing
9600         rules.
9601
9602 2004-09-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
9603
9604         * config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h
9605         if the GNU assembler is used.
9606         (sparc-*-solaris2*): Likewise.
9607         * dbxout.c (NO_DBX_BNSYM_ENSYM): Default to zero.
9608         (dbxout_function_end): Protect N_ENSYM with it.
9609         (dbxout_begin_prologue): Protect N_BNSYM with it.
9610         * doc/tm.texi (NO_DBX_BNSYM_ENSYM): Document it.
9611         * config/sparc/sol2.h (NO_DBX_BNSYM_ENSYM): Define to 1.
9612         * config/sparc/sol2-gas.h: New file.
9613
9614 2004-09-23  H.J. Lu  <hongjiu.lu@intel.com>
9615
9616         PR bootstrap/17369
9617         * Makefile.in (@set_gcc_lib_path@): Added.
9618
9619         * configure.ac: Include ../config/gcc-lib-path.m4. Use
9620         TL_AC_GNU_MAKE_GCC_LIB_PATH.
9621         * configure: Regenerated.
9622
9623 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
9624
9625         PR c/6980
9626         * c-typeck.c (build_c_cast): Improve wording of
9627         -Wbad-function-cast diagnostic.
9628
9629 2004-09-23  Hans-Peter Nilsson  <hp@axis.com>
9630
9631         PR target/17626
9632         * config/cris/cris.md (moverside, movemside): Rename variable
9633         "reg" to "otherop".  To generate canonical RTX, check that otherop
9634         isn't constant instead of checking that operand 1 is a register.
9635
9636 2004-09-23  Jakub Jelinek  <jakub@redhat.com>
9637
9638         * tree-ssa-propagate.c (set_rhs): Fail if EXPR is COMPOUND_EXPR.
9639
9640 2004-09-23  Diego Novillo  <dnovillo@redhat.com>
9641             Jakub Jelinek  <jakub@redhat.com>
9642
9643         * tree-flow.h (find_new_referenced_vars): Add prototype.
9644         * tree-sra.c (find_new_referenced_vars_1, find_new_referenced_vars):
9645         Move to...
9646         * tree-dfa.c (find_new_referenced_vars_1, find_new_referenced_vars):
9647         ... here.
9648         (mark_new_vars_to_rename): Walk through all operands.
9649         * tree-ssa-ccp.c (convert_to_gimple_builtin): New function.
9650         (execute_fold_all_builtins): Use it.
9651         (pass_fold_builtins): Add TODO_rename_vars to todo_flags_finish.
9652
9653 2004-09-23  P.J. Darcy  <darcypj@us.ibm.com>
9654
9655         * gthr-tpf.h: New file.
9656         * config.gcc (s390x-ibm-tpf*): Add thread_file='tpf'.
9657         * gthr.h: Use gthr-tpf.h on TPF OS.
9658
9659 2004-09-23 Jeff Law  <law@redhat.com>
9660
9661         * tree-ssa-ccp.c (get_default_value): Use SSA_NAME_VALUE rather
9662         than SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
9663         (substitute_and_fold):  Likewise.
9664         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Remove everything
9665         except invariants from SSA_NAME_VALUE.
9666         (thread_across_edge): Use SSA_NAME_VALUE rather than SSA_NAME_EQUIV
9667         and SET_SSA_NAME_EQUIV.
9668         (restore_vars_to_original_value, record_const_or_copy): Likewise.
9669         (record_equivalences_from_phis, record_const_or_copy_1): Likewise.
9670         (record_equality, cprop_into_successor_phis): Likewise.
9671         (record_equivalences_from_stmt, cprop_operand): Likewise.
9672         (lookup_avail_expr): Likewise.
9673         * tree-ssa-pre.c (fini_pre): Remove everything except invariants
9674         from SSA_NAME_VALUE.
9675         * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): Kill.
9676         (struct tree_ssa_name):  Kill EQUIV field.  Remove GGC skip
9677         annotation from the VALUE_HANDLE field.
9678
9679 2004-09-21 Fariborz Jahanian <fjahanian@apple.com>
9680
9681         PR c++/13989
9682         PR c++/9844
9683         * tree.c (reconstruct_complex_type): Remove extra "this".
9684         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
9685         Add V4SFmode to case statement.
9686
9687 2004-09-23  Joseph S. Myers  <jsm@polyomino.org.uk>
9688
9689         PR c/16833
9690         * doc/extend.texi, doc/invoke.texi: Document interaction of
9691         -fno-builtin with format checks.  Note that built-in functions
9692         have effects beyond generating code that avoids calls to those
9693         functions.
9694
9695 2004-09-23  Frank Ch. Eigler <fche@redhat.com>
9696
9697         PR tree-optimization/17533
9698         * dominance.c (verify_dominators): Tolerate even more incorrect
9699         dominance data during error message printing.
9700         * tree-mudflap.c (mf_build_check_statement_for): Build basic blocks
9701         and edges more correctly.
9702
9703 2004-09-23  Dorit Naishlos <dorit@il.ibm.com>
9704
9705         * tree.def (ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF):
9706         New tree-codes.
9707         * tree.h (REF_ORIGINAL): Consider ALIGN_INDIRECT_REF and
9708         MISALIGNED_INDIRECT_REF.
9709         * alias.c (get_alias_set, nonoverlapping_memrefs_p): Likewise.
9710         * emit-rtl.c (mem_expr_equal_p, set_mem_attributes_minus_bitpos):
9711         Likewise.
9712         * expr.c (safe_from_p, expand_expr_real_1, rewrite_address_base)
9713         (find_interesting_uses_address): Likewise.
9714         * fold-const.c (non_lvalue, operand_equal_p): Likewise.
9715         (build_fold_addr_expr_with_type): Likewise.
9716         * gimplify.c (gimplify_addr_expr, gimplify_expr): Likewise.
9717         * print-rtl.c (print_mem_expr): Likewise.
9718         * tree-dump.c (dequeue_and_dump): Likewise.
9719         * tree-eh.c (tree_could_trap_p): Likewise.
9720         * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
9721         * tree-pretty-print.c (op_prio, op_symbol, dump_generic_node): Likewise.
9722         * tree-ssa-alias.c (find_ptr_dereference, ptr_is_dereferenced_by):
9723         Likewise.
9724         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
9725         * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
9726         * tree-ssa-loop-im.c (for_each_index, is_call_clobbered_ref): Likewise.
9727         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
9728         (add_address_candidates, rewrite_address_base): Likewise.
9729         * tree-ssa-operands.c (get_expr_operands, get_indirect_ref_operands):
9730         Likewise.
9731         * tree.c (staticp, build1_stat): Likewise.
9732
9733         * tree.def (REALIGN_LOAD_EXPR, REALIGN_STORE_EXPR): New tree-codes.
9734         * tree-pretty-print.c (dump_generic_node): Consider REALIGN_LOAD_EXPR.
9735         * tree-ssa-operands.c (get_expr_operands): Likewise.
9736         * expr.c (expand_expr_real_1): Likewise.
9737
9738         * optabs.h (vec_realign_store_optab, vec_realign_load_optab): New
9739         optabs.
9740         (OTI_vec_realign_store, OTI_vec_realign_load): New optab_index values
9741         for the new optabs.
9742         (expand_ternary_op): New function.
9743         * genopinit.c (optabs): Handle the new optabs.
9744         * optabs.c (optab_for_tree_code): Add cases for the new tree-codes.
9745         (init_optabs): Initialize vec_realign_load_optab.
9746         (expand_ternary_op): New functions.
9747
9748         * target-def.h (TARGET_VECTORIZE): New member for struct gcc_target.
9749         (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New member for targetm.vectorize.
9750         (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): Likewise.
9751         (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Likewise.
9752         * target.h (struct vectorize): New member for struct gcc_target.
9753         (misaligned_mem_ok): New member for targetm.vectorize.
9754         (builtin_mask_for_load): Likewise.
9755         (builtin_mask_for_store): Likewise.
9756         * targethooks.c (default_vect_misaligned_mem_ok): New function.
9757         * targethooks.h (default_vect_misaligned_mem_ok): New function.
9758
9759         * config/rs6000/altivec.md (build_vector_mask_for_load): New
9760         define_expand.
9761         (vec_realign_load_v4si, vec_realign_load_v4sf, vec_realign_load_v8hi)
9762         (vec_realign_load_v16qi): New define_insn.
9763         * config/rs6000/rs6000.h (ALTIVEC_BUILTIN_MASK_FOR_LOAD):
9764         (ALTIVEC_BUILTIN_MASK_FOR_STORE): New target builtins.
9765         * config/rs6000/rs6000.c (altivec_builtin_mask_for_load):
9766         (altivec_builtin_mask_for_store): New variables.
9767         (rs6000_builtin_mask_for_load): New function. Implements
9768         TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD.
9769         (rs6000_builtin_mask_for_store): New function. Implements
9770         TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE.
9771         (rs6000_expand_builtin): Expand the target builtins
9772         builtin_mask_for_load and builtin_mask_for_store.
9773         (altivec_init_builtins): Initialize the new target builtins.
9774         * config/i386/i386.c (ix86_misaligned_mem_ok): New function.
9775         Implements the target hook TARGET_VECTORIZE_MISALIGNED_MEM_OK.
9776
9777         * tree-vectorizer.c (vect_create_data_ref): Renamed to
9778         vect_create_data_ref_ptr. Returns a pointer instead of an array-ref.
9779         (vect_create_addr_base_for_vector_ref): Additional argument (offset).
9780         (vectorizable_store): Call vect_create_data_ref_ptr with additional
9781         arguments, and create an indirect_ref with its return value data_ref.
9782         Check aligned_access_p.
9783         (vectorizable_load): Handle misaligned loads, using software-pipelined
9784         scheme with REALIGN_LOAD_EXPR and ALIGN_INDIRECT_REF if
9785         vec_realign_load_optab is supported, or using a scheme without
9786         software-pipelining with MISALIGNED_INDIRECT_REF if the target hook
9787         misaligned_mem_ok is supported.
9788
9789         (vect_finish_stmt_generation): Typo.
9790         (vect_enhance_data_refs_alignment): Rename loop_vinfo to loop_info.
9791         (vect_analyze_data_refs_alignment): Don't fail vectorization in the
9792         presence of misaligned loads.
9793         (vect_analyze_data_ref_access): Add check for constant init.
9794         (vect_get_symbl_and_dr): Remove duplicate line.
9795         * tree-vectorizer.h (DR_MISALIGNMENT): Add comment.
9796
9797 2004-09-23  Kazu Hirata  <kazu@cs.umass.edu>
9798
9799         * builtins.c: Fix a comment typo.
9800
9801 2004-09-23  Jan Hubicka  <jh@suse.cz>
9802
9803         * profile.c (branch_prob): Do not verify flow info in the middle of the
9804         pass.
9805
9806 2004-09-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9807
9808         * cfgloop.h (update_single_exits_after_duplication): Declare.
9809         (loopify, split_loop_bb): Declaration changed.
9810         * cfgloopmanip.c (split_loop_bb): Take void * as an argument instead
9811         of rtx.
9812         (loopify): Added redirect_all_edges argument.
9813         (update_single_exits_after_duplication): Export.
9814         * loop-unswitch.c (unswitch_loop): Changed due to loopify change.
9815         * tree-flow.h (tree_duplicate_loop_to_header_edge,
9816         tree_ssa_loop_version): Declare.
9817         * tree-ssa-loop-manip.c (copy_phi_node_args, rename_variables,
9818         set_phi_def_stmts, tree_duplicate_loop_to_header_edge,
9819         lv_adjust_loop_header_phi, lv_adjust_loop_entry_edge,
9820         lv_update_pending_stmts, tree_ssa_loop_version): New functions.
9821
9822         * tree-ssa-loop-unswitch.c: New file.
9823         * Makefile.in (tree-ssa-loop-unswitch.o): Add.
9824         * timevar.def (TV_TREE_LOOP_UNSWITCH): New timevar.
9825         * tree-flow.h (tree_ssa_unswitch_loops): Declare.
9826         * tree-optimize.c (init_tree_optimization_passes): Add pass_unswitch.
9827         * tree-pass.h (pass_unswitch): Declare.
9828         * tree-ssa-loop.c (tree_ssa_loop_unswitch,
9829         gate_tree_ssa_loop_unswitch, pass_unswitch): New pass.
9830         * doc/passes.texi: Documen tree level loop unswitching.
9831
9832 2004-09-23  Kazu Hirata  <kazu@cs.umass.edu>
9833
9834         * cfgexpand.c, config/s390/tpf-eh.c: Fix comment typos.
9835
9836 2004-09-22  Eric Christopher  <echristo@redhat.com>
9837
9838         * builtins.c (simplify_builtin_va_start): Remove.
9839         (simplify_builtin): Ditto.
9840         (fold_builtin_strchr): Ditto.
9841         (simplify_builtin_*): Rename remainders to fold_builtin_*.
9842         (expand_builtin): Fix up for above changes.
9843         (fold_builtin_1): Add new folders. Change for above.
9844         (expand_builtin_va_start): Call fold_builtin_next_arg.
9845         * gimplify.c (gimplify_call_expr): Fix calls to simplify_builtin.
9846         * tree.h: Remove prototype for simplify_builtin.
9847
9848 2004-09-23  Jan Hubicka  <jh@suse.cz>
9849
9850         PR debug/17389
9851         * dwarf2out.c (dwarf2out_finish): Deal with nested functions
9852         of fully inlined functions.
9853         * tree-inline.c (inline_forbidden_p_1): Nested functions can be
9854         inlined.
9855
9856         * cfgexpand.c (add_reg_br_prob_note): New function.
9857         (expand_gimple_cond_expr): Use it.
9858         (tree_expand_cfg): No longer kill the profile.
9859         * cfgrt.c (rtl_verify_flow_info_1): Check profile consistency
9860         only if it is present.
9861         * passes.c (rest_of_handle_loop_optimize): Kill the profile.
9862         * predict.c (combine_predictions_for_insn): Set the probabilities
9863         based on REG_BR_PROB note if present.
9864         * predict.c (branch_prob): Profile is read only with
9865         flag_branch_probabilities.
9866
9867 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
9868
9869         * aclocal.m4: Add in gettext's m4 includes.
9870         (AC_ICONV, AC_LCMESSAGES, GCC_PATH_PROG): Remove.
9871         * configure.ac: Add in check for iconv.h
9872         * configure: Regenerate.
9873
9874 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
9875
9876         * aclocal.m4: Update for rename of gettext-sister.m4.
9877
9878 2004-09-22  Daniel Berlin <dberlin@dberlin.org>
9879
9880         Fix PR tree-optimization/17587
9881         * tree-ssa-pre.c (fini_pre): Commit edge inserts here.
9882         (insert_aux): Instead of here.
9883
9884 2004-09-22  Diego Novillo  <dnovillo@redhat.com>
9885
9886         PR tree-optimization/16721
9887         * tree-dfa.c (dump_variable): Show TREE_THIS_VOLATILE.
9888         * tree-ssa-alias.c (create_memory_tag): Move setting of
9889         TREE_THIS_VOLATILE ...
9890         (get_tmt_for): ... here.
9891
9892 2004-09-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
9893
9894         * config/sparc/sparc.md (cmove splitter): Fix formatting.
9895         (conditional_trap expander): Reject inappropriate CCmodes.
9896         (conditional trap insn): Use V9 syntax if possible.
9897
9898 2004-09-22  Joseph S. Myers  <jsm@polyomino.org.uk>
9899
9900         PR c/16566
9901         * c-typeck.c (build_component_ref): Don't special-case
9902         COMPOUND_EXPR.
9903
9904 2004-09-22  Frank Ch. Eigler  <fche@redhat.com>
9905
9906         * dominance.c (verify_dominators): Don't SEGV if recount_dominator
9907         returns NULL.
9908
9909 2004-09-22  Kazu Hirata  <kazu@cs.umass.edu>
9910
9911         * doc/c-tree.texi (TRUTH_NOT_EXPR, TRUTH_ANDIF_EXPR,
9912         TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
9913         TRUTH_XOR_EXPR): Mention the restriction on types.
9914
9915 2004-09-22  Matt Austern  <austern@apple.com>
9916
9917         * config/darwin.c (darwin_make_decl_one_only):
9918         Allow coalesced symbol to appear in static archive's table of contents
9919
9920 2004-09-22  Kazu Hirata  <kazu@cs.umass.edu>
9921
9922         PR tree-optimization/17512
9923         * convert.c (convert_to_integer): Don't handle TRUTH_*_EXPR as
9924         special cases.
9925
9926 2004-09-22  David Edelsohn  <edelsohn@gnu.org>
9927
9928         * dbxout.c (get_lang_number): Do not define if
9929         DBX_OUTPUT_MAIN_SOURCE_DIRECTORY is defined.
9930
9931 2004-09-22  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
9932
9933         PR target/15583
9934         * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Add
9935         builtin_define ("__USE_INIT_FINI__").
9936
9937 2004-09-22  P.J. Darcy  <darcypj@us.ibm.com>
9938
9939         * config/s390/s390-protos.h (s390_emit_tpf_eh_return): Add prototype.
9940         * config/s390/s390.c (s390_emit_tpf_eh_return): New function.
9941         * config/s390/s390.h (TARGET_TPF): New macro.
9942         * config/s390/s390.md ("eh_return"): New expander.
9943         * config/s390/t-tpf (LIB2ADDEH): Use unwind-dw2-fde.c rather than
9944         unwind-dw2-fde-glibc.c.  Add config/s390/tpf-eh.c.
9945         (LIB2ADDEHDEP): Remove unwind-dw2-fde.c.
9946         * config/s390/tpf.h (TARGET_TPF): Define to 1.
9947         (STACK_POINTER_OFFSET): Increase to 448.
9948         (TARGET_DEFAULT): Set -mtpf-trace on as default.
9949         (TPF_LOC_DIFF_OFFSET): New macro.
9950         (ASM_PREFERRED_EH_DATA_FORMAT): Redefine to always use absolute
9951         encoding.
9952         (__isPATrange): Add prototype.
9953         (MD_FALLBACK_FRAME_STATE_FOR): Define.
9954         * config/s390/tpf-eh.c: New file.
9955
9956 2004-09-22  Diego Novillo  <dnovillo@redhat.com>
9957
9958         * fold-const.c (fold): Avoid non INTEGER_TYPEs when widening
9959         operands in an integer comparison.
9960         * tree-cfg.c (find_taken_edge): Call fold() to determine
9961         whether the predicate is known.
9962
9963 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
9964
9965         * aclocal.m4: Import AM_PROG_CC_C_O and AM_AUX_DIR_EXPAND.
9966         * configure.ac: Call AM_PROG_CC_C_O instead of AC_PROG_CC_C_O.
9967         Create build and doc directories along with the language directories.
9968         Don't create doc directory separately.
9969         * configure: Regenerate.
9970         * Makefile.in: Create all object and executables files built
9971         with the build compiler in a build/ directory.
9972         (genobjnames): Add missing build objects.
9973         (STAGESTUFF): Don't stage the gen* programs.
9974         (ggc-none.o): Define dependencies for the target compiler.
9975         (build-print-rtl.o): Rename to build/print-rtl.o.
9976         (build-errors.o): Rename to build/errors.o.
9977         (build-varray.o): Rename to build/varray.o.
9978         (maintainerclean): Delete the contents of the build directory.
9979         ($(genobjs): %.o): Explicitly use -o.
9980         (build/insn-conditions.o): Delete specfic rule to use generic rule.
9981         (build/gengtype-lex.o): Likewise.
9982         (build/gengtype-yacc.o): Likewise.
9983         (build/gcov-iov.o): Likewise.
9984
9985 2004-09-22  Nathan Sidwell  <nathan@codesourcery.com>
9986
9987         * vec.h (VEC_space): Return true if there _is_ space.
9988         (VEC_reserve): Adjust.
9989
9990 2004-09-22  Richard Sandiford  <rsandifo@redhat.com>
9991
9992         * config/mips/mips.c (mips_function_value): For o32, o64, n32 and n64,
9993         use FPRs for scalar, complex and vector types only.
9994
9995 2004-09-21 Jeff Law  <law@redhat.com>
9996
9997         * tree-ssa-dom.c (opt_stats): Move so that it lives just after
9998         the opt_stats_d structure.
9999         (vrp_data): Change from a varray into a hash table.
10000         (vrp_hash_elt): New structure for elements in the vrp hash table.
10001         (vrp_hash, vrp_eq):New functions for hashing and testing equality
10002         in the vrp hash table.
10003         (tree_ssa_dominator_optimize): Initialize VRP_DATA.  Reorganize
10004         initialization slightly to make it easier to read.  No longer need
10005         to grow/clear the varray.  Instead empty and delete the hash table.
10006         (dom_opt_finalize_block): Update due to change of VRP_DATA from
10007         a varray to a hash table.
10008         (simplify_cond_and_loop_avail_expr, record_range): Similarly.
10009
10010         * tree-ssa-ccp.c (get_default_value): If we have a constant
10011         value recorded for an SSA_NAME, then use that constant as
10012         the initial lattice value.
10013         (substitute_and_fold): Transfer equivalences discovered into
10014         SSA_NAME_EQUIV.
10015
10016         * tree.h (SSA_NAME_EQUIV): Add comments.
10017         (SET_SSA_NAME_EQUIV): Similarly.
10018
10019 2004-09-21  David Edelsohn  <edelsohn@gnu.org>
10020
10021         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to POWER4.
10022
10023         * config/rs6000/rs6000.c (rs6000_adjust_cost): dep_insn is used.
10024
10025 2004-09-21  Mark Mitchell  <mark@codesourcery.com>
10026
10027         * c-decl.c (implicityl_declare): Call maybe_apply_renaming_pragma.
10028         (finish_decl): Likewise.
10029
10030 2004-09-21  Devang Patel  <dpatel@apple.com>
10031
10032         * tree.def (VEC_COND_EXPR): New tree node.
10033         * tree-ssa-operands.c (get_expr_operands): Handle VEC_COND_EXPR.
10034
10035 2004-09-21  Stan Shebs  <shebs@apple.com>
10036
10037         * config/rs6000/darwin-tramp.asm: Add __ppc64__ case.
10038         * config/rs6000/darwin-world.asm: Likewise.
10039
10040 2004-09-21  Daniel Berlin  <dberlin@dberlin.org>
10041
10042         * tree-ssa.c (verify_def): Use print_generic_stmt,
10043         not debug_generic_stmt.
10044         (verify_use): Ditto.
10045         (verify_phi_args): Ditto.
10046         (verify_ssa): Ditto.
10047
10048 2004-09-21  Paul Brook  <paul@codesourcery.com>
10049
10050         * varasm.c (default_assemble_integer): Return false for values wider
10051         than the target word size.  Works around GAS bug.
10052
10053 2004-09-21  Zack Weinberg  <zack@codesourcery.com>
10054
10055         * reg-notes.def (REG_DEP_TRUE): New entry, place first so it
10056         gets value 0.
10057         * print-rtl.c (print_rtx): Print the name of a REG_NOTE even
10058         if it has value 0.
10059
10060 2004-09-21  Daniel Berlin <dberlin@dberlin.org>
10061
10062         * c-typeck.c (build_function_call): Give name of object
10063         we are attempting to call in error message.
10064         * c-objc-common.c (c_tree_printer): Call pp_expression,
10065         not return false, for 'E' case.
10066
10067 2004-09-21  Steven Bosscher  <stevenb@suse.de>
10068
10069         PR rtl-optimization/17482
10070         * postreload-gcse.c (reg_avail_info, oprs_unchanged_p,
10071         load_killed_in_block_p): Clarify comments.
10072         (record_last_reg_set_info): Make static inline.
10073         (mark_call, mark_set, mark_clobber, mark_oprs_set): Remove.
10074         (record_opr_changes): New function to replace the above.
10075         (compute_hash_table): Clarify comments.  Use record_opr_changes.
10076         (reg_set_between_after_reload_p): Clean up.
10077         (reg_used_between_after_reload_p): Likewise.
10078         (eliminate_partially_redundant_load): Clarify comments.
10079
10080 2004-09-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
10081
10082         PR rtl-optimization/17266
10083         * regmove.c (optimize_reg_copy_3): Make a new SUBREG for each insn.
10084
10085 2004-09-21  Uros Bizjak  <uros@kss-loka.si>
10086
10087         PR rtl-optimization/14851
10088         * rtlanal.c (commutative_operand_precedence): Calculate
10089         precedence of stripped constant.
10090
10091 2004-09-20 Jeff Law  <law@redhat.com>
10092            Jan Hubicka  <jh@suse.cz>
10093
10094         * tree-ssanames.c (make_ssa_name): No longer need to clear, then
10095         initialize key elements here.
10096         (release_ssa_name): Zero the released SSA_NAME here.
10097         * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): New macros.
10098         (struct tree_ssa_name): Add new "equiv" field.
10099         * tree-ssa-dom.c (const_and_copies): Kill the global varray.
10100         (tree_ssa_dominator_optimize): No longer allocate, resize or
10101         clear CONST_AND_COPIES.
10102         (get_value_for, set_value_for): Kill.
10103         (thread_across_edge): Get/set the equivalency using
10104         SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
10105         (restore_vars_to_original_value): Likewise.
10106         (record_equivalences_from_phis): Likewise.
10107         (record_dominating_conditions): Likewise.
10108         (record_const_or_copy, record_equality): Likewise.
10109         (lookup_avail_expr): Likewise.
10110         (record_equivalences_from_stmt, cprop_operand): Likewise.
10111         (cprop_into_successor_phis): No longer need to pass around
10112         CONST_AND_COPIES.  Callers updated. Get equivalences via
10113         SSA_NAME_EQUIV.
10114         (cprop_into_phis): Likewise.
10115
10116 2004-09-20  Matt Austern <austern@apple.com>
10117             Zack Weinberg  <zack@codesourcery.com>
10118
10119         * c-common.c (fix_string_type): Build the unqualified array
10120         type unconditionally, then use c_build_qualified_type to get
10121         the proper const-qualified variant, and set its
10122         TYPE_MAIN_VARIANT to refer to the unqualified type.
10123         * c-lex.c (c_lex_return_raw_string): New global.
10124         (c_lex_with_flags): Honor it.
10125         * c-pragma.h: Declare it.
10126
10127 2004-09-20  Daniel Berlin  <dberlin@dberlin.org>
10128
10129         * Makefile.in: Fix flags.h dependencies to be $(FLAGS_H).
10130
10131 2004-09-21  Jan Hubicka  <jh@suse.cz>
10132
10133         PR middle-end/17126
10134         * tree-optimize.c (update_inlined_to_pointers): Fix the recursion.
10135         (tree_rest_of_compilation): Cleanup.
10136
10137 2004-09-20  Ulrich Weigand  <uweigand@de.ibm.com>
10138
10139         * config/s390/s390.c (s390_select_rtx_section): Remove.
10140         (TARGET_ASM_SELECT_RTX_SECTION): Do not redefine.
10141
10142 2004-09-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10143
10144         * config/sh/sh.c (sh_expand_prologue): Add a REG_FRAME_RELATED_EXPR
10145         note to pretend a direct save from the original register when an
10146         intermediate register is used for the save.
10147
10148 2004-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10149
10150         * tsystem.h (alloca): Provide a default definition.
10151
10152         Revert:
10153         2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10154             * unwind-dw2.c: Call __builtin_alloca, not alloca.
10155
10156 2004-09-20  Andrew Pinski  <pinskia@physics.uc.edu>
10157
10158         PR tree-opt/17558
10159         * tree-ssa-copy.c (may_propagate_copy): Only allow if the
10160         aliasing sets are the same rather than just conflicting.
10161
10162 2004-09-20  Jan Hubicka  <jh@suse.cz>
10163
10164         PR middle-end/16460
10165
10166         * cgraph.c (cgraph_unnest_node): New function.
10167         (c_finalize): Rename to ....
10168         (c_warn_unused_result_recursivly): ... this one; do only the warning
10169         (finish_function): Finalize the toplevel function; do not lower nested tree.
10170         * cgraph.h (cgraph_unnest_node): Declare.
10171         * cgraphunit.c (decide_is_function_needed): Do not use cgraph
10172         nestedness datastructure.
10173         * cse.c (cse_insn): Do not cprop nonlocal LABEL_REFs.
10174         * reload1.c (set_label_offsets): Fix call of set_label_offsets.
10175         * tree-nested.c (finlize_nesting_tree_1):  Use un-nesting code.
10176
10177 2004-09-20  Richard Henderson  <rth@redhat.com>
10178
10179         * config/alpha/alpha.c (some_small_symbolic_operand_int): Rename
10180         from some_small_symbolic_operand_1; export.
10181         (some_small_symbolic_operand): Remove.
10182         * config/alpha/alpha.md (some_small_symbolic_operand splitter): Remove
10183         extra C check.
10184         * config/alpha/predicates.md (some_small_symbolic_operand): New.
10185
10186 2004-09-20  Jan Hubicka  <jh@suse.cz>
10187
10188         * predict.c (return_prediction): New function.
10189         (apply_return_prediction): Likewise.
10190         (tree_bb_level_predictions): Likewise.
10191         (tree_estimate_probability): Add noreturn exit edges; call
10192         bb_level_predictions; fix logic of return heuristics.
10193         (predict_paths_leading_to):  Rescuesce from old CVS version of
10194         process_note_prediction function.
10195         * predict.def (PRED_TREE_EARLY_RETURN): New predictor.
10196
10197 2004-09-20  Andreas Krebbel  <krebbel1@de.ibm.com>
10198
10199         * config/s390/s390.c (s390_frame_info): Added alignment statement for
10200         floating point register area on stack.
10201
10202 2004-09-20  Jakub Jelinek  <jakub@redhat.com>
10203
10204         * predict.c (expr_expected_value): Use *_CLASS_P macros.
10205
10206 2004-09-20  Daniel Berlin  <dberlin@dberlin.org>
10207
10208         * tree-ssa-pre.c (compute_antic_aux): Use malloc'd worklist, to avoid
10209         generating useless garbage.
10210
10211 2004-09-20  Paolo Bonzini  <bonzini@gnu.org>
10212
10213         * builtins.c (fold_builtin): Call the new omonymous
10214         target hook for machine-dependent built-ins.
10215         * target-def.h (TARGET_FOLD_BUILTIN): New.
10216         * target.h (struct gcc_target): Add the fold_builtin hook.
10217         * targhooks.c (default_fold_builtin): New.
10218         * targhooks.h (default_fold_builtin): Declare it.
10219
10220 2004-09-20  Kazu Hirata  <kazu@cs.umass.edu>
10221
10222         * cfg.c, tree-ssa-threadupdate.c, tree-vectorizer.c: Fix
10223         comment typos.
10224
10225 2004-09-20  Richard Sandiford  <rsandifo@redhat.com>
10226
10227         PR target/17565
10228         * config/mips/mips.md (define_asm_attributes): Set can_delay to no.
10229
10230 2004-09-20  Jan Hubicka  <jh@suse.cz>
10231
10232         * predict.c (estimate_probability): Remove unnecesary code.
10233
10234 2004-09-19  Ira Rosen  <irar@il.ibm.com>
10235
10236         * tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field.
10237         (STMT_VINFO_VECT_DR_BASE): Declare.
10238         (VECT_SMODULO): Declare.
10239         * tree-vectorizer.c (vect_compute_array_ref_alignment): New function.
10240         (vect_compute_array_base_alignment): New function.
10241         (vect_analyze_data_ref_access): Check array indices. Remove one
10242         dimensional arrays restriction.
10243         (vect_get_ptr_offset): New function.
10244         (vect_get_symbl_and_dr): New function.
10245         (vect_get_base_and_bit_offset): Support additional data refs. Renamed
10246         (former name vect_get_base_decl_and_bit_offset).
10247         (vect_create_index_for_array_ref): Removed.
10248         (vect_create_index_for_vector_ref): New function.
10249         (vect_create_addr_base_for_vector_ref): New function.
10250         (vect_create_data_ref): Handle additional data refs. Call
10251         vect_create_index_for_vector_ref and vect_create_addr_base_for_vector_ref.
10252         (vect_compute_data_ref_alignment): Support the changes. Call
10253         vect_get_base_and_bit_offset.
10254         (vect_analyze_data_refs): Call vect_get_symbl_and_dr. Support additional
10255         data refs. Store vect_dr_base.
10256         (vect_analyze_data_ref_accesses): Support nonconstant init.
10257         (new_stmt_vec_info): Initialize vect_dr_base field.
10258         (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
10259         (get_vectype_for_scalar_type): Check for BLKmode.
10260         * tree-chrec.h (initial_condition_in_loop_num): Declare.
10261         * tree-chrec.c (initial_condition_in_loop_num): New function.
10262         (chrec_component_in_loop_num): New function.
10263         (evolution_part_in_loop_num): Call chrec_component_in_loop_num.
10264         * tree-data-ref.c (analyze_array_indexes): Change parameter (access_fns)
10265         to be pointer to varray_type.
10266
10267 2004-09-19  Jan Hubicka  <jh@suse.cz>
10268
10269         * basic-block.h (update_bb_profile_after_threading): Declare.
10270         * cfg.c (update_bb_profile_after_threading): Break out from ...
10271         * cfgcleanup.c (try_forward_edges): ... here; use it.
10272         * tree-ssa-dom.c (thread_across_edge): Use it.
10273         * tree-ssa-threadupdate.c (create_block_for_threading): Zero out
10274         profile of the new BB.
10275
10276 2004-09-19  Daniel Berlin  <dberlin@dberlin.org>
10277
10278         * tree-ssa-pre.c (insert_into_set): Don't put
10279         is_gimple_min_invariant values into the set.
10280
10281 2004-09-19  Andreas Jaeger  <aj@suse.de>
10282
10283         * tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix
10284         prototype.
10285
10286 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
10287
10288         * config/cris/cris.h: Preserve the original spelling in a
10289         quote.
10290
10291 2004-09-18 Jeff Law  <law@redhat.com>
10292
10293         * tree-ssa-dom.c (nonzero_vars_stack, vrp_variables_stack): New
10294         global varrays to replace the block local varrays.
10295         (struct dom_walk_block_data): Remove, no longer used.
10296         (get_eq_expr_value): No longer need to pass around pointers to local
10297         varrays.  Callers updated.  Unused markers added to unused parameters.
10298         (record_range, record_equivalences_from_stmt): Likewise.
10299         (record_equivalences_from_incoming_edge): Likewise.
10300         (record_var_is_nonzero): Likewise.  Update now that we have a
10301         single global varray of SSA_NAMEs that need restoring.
10302         (dom_opt_initialize_block_local_data): Kill, no longer used.
10303         (tree_ssa_dominator_optimize): Initialize new global varrays.
10304         Update callbacks in dominator walker structure.
10305         (dom_opt_initialize_block): Add markers to NONZERO_VAR_STACK and
10306         VRP_VARIABLES_STACK.
10307         (restore_nonzero_vars_to_original_value): Update now that we have
10308         a single global varray of SSA_NAMEs that need restoring.
10309         (dom_opt_finalize_block): Similarly for VRP_VARIABLES_STACK.
10310         Remove unused variables.
10311         (optimize_stmt): Remove unused variable.
10312
10313 2004-09-18  Jan Hubicka  <jh@suse.cz>
10314
10315         * tree-cfg.c (thread_jumps):  Fix updating of the profile.
10316
10317         * tree-optimize.c (tree_rest_of_compilation): Kill forgotten
10318         verify_cgraph call.
10319
10320 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
10321
10322         * alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c,
10323         gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c,
10324         optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c,
10325         tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c,
10326         tree-ssa-operands.c, tree-ssa-phiopt.c,
10327         tree-ssa-threadupdate.c: Fix comment typos.
10328
10329 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
10330
10331         * config/darwin-c.c, config/arc/arc.c, config/arc/arc.md,
10332         config/arm/README-interworking, config/arm/arm-cores.def,
10333         config/arm/arm.c, config/arm/arm.h, config/arm/pe.c,
10334         config/arm/vfp.md, config/c4x/c4x.c, config/c4x/c4x.h,
10335         config/cris/cris.c, config/cris/cris.h, config/fr30/fr30.c,
10336         config/fr30/fr30.h, config/fr30/fr30.md, config/frv/frv.c,
10337         config/frv/frv.md, config/i386/winnt.c,
10338         config/ia64/unwind-ia64.c, config/iq2000/iq2000.c,
10339         config/iq2000/iq2000.h, config/m68hc11/m68hc11.c,
10340         config/m68hc11/m68hc11.md, config/m68k/m68k.c,
10341         config/mcore/mcore.c, config/mips/mips.h,
10342         config/mn10300/mn10300.md, config/pa/pa.c,
10343         config/pa/pa64-regs.h, config/pdp11/pdp11.c,
10344         config/rs6000/rs6000.c, config/sh/symbian.c,
10345         config/sparc/sparc.h: Fix comment typos.  Follow spelling
10346         conventions.
10347
10348 2004-09-18  Joseph S. Myers  <jsm@polyomino.org.uk>
10349
10350         PR c/17424
10351         * c-typeck.c (c_expr_sizeof_expr): Check for error_mark_node.
10352
10353 2004-09-18  Diego Novillo  <dnovillo@redhat.com>
10354
10355         * tree-ssa-alias.c (setup_pointers_and_addressables): Don't
10356         remove TREE_ADDRESSABLE from RESULT_DECL.
10357
10358 2004-09-18  Diego Novillo  <dnovillo@redhat.com>
10359
10360         * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
10361
10362 2004-09-18  Jan Hubicka  <jh@suse.cz>
10363
10364         * tree-into-ssa.c (rewrite_ssa_into_ssa):  Expect ssa_name to return
10365         NULL.
10366         * tree-ssa-alias.c (init_alias_info): Likewise.
10367         * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
10368         (verify_ssa): Likewise.
10369         * tree-ssanames.c (make_ssa_name): Clear out ssa_names arrays.
10370
10371 2004-09-18  Jan Hubicka  <jh@suse.cz>
10372
10373         * i386.c (legitimize_pic_address): Fix splitting of PLUS with
10374         huge offset.
10375
10376 2004-09-18  Kaz Kojima  <kkojima@gcc.gnu.org>
10377
10378         * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
10379         * config/sh/sh.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
10380         DW_EH_PE_sdata* for data.
10381         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
10382
10383 2004-09-17  Geoffrey Keating  <geoffk@apple.com>
10384
10385         * tree-inline.c (copy_tree_r): Don't duplicate constants, they're
10386         shared anyway.
10387
10388         PR pch/13361
10389         * c-typeck.c (constructor_asmspec): Delete.
10390         (struct initializer_stack): Delete field 'asmspec'.
10391         (start_init): Delete saving of asmspec.
10392         (finish_init): Don't update constructor_asmspec.
10393         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
10394         * stmt.c (expand_asm): Duplicate strings from tree.
10395         (expand_asm_operands): Likewise.
10396         * tree.c (tree_size): Update computation of size of STRING_CST.
10397         (make_node): Don't make STRING_CST nodes.
10398         (build_string): Allocate string with tree node.
10399         (tree_code_size): Clean up assertions, don't allow requests
10400         for "the size of a STRING_CST".
10401         * tree.def (STRING_CST): Update comment.
10402         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
10403         (tree_string): Place contents of string in tree node.
10404         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
10405         from tree.
10406
10407 2004-09-17  Zack Weinberg  <zack@codesourcery.com>
10408
10409         * Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
10410         * objc/Make-lang.in (objc/objc-parse.o): Likewise.
10411
10412 2004-09-17  Jones Desougi  <jones@ingate.com>
10413
10414         * configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
10415         * configure, config.in: Regenerate.
10416
10417 2004-09-17  Zack Weinberg  <zack@codesourcery.com>
10418
10419         * tree.c, tree.h (tree_class_strings): Make array const.
10420         Reindent per coding convention.  Move asterisk to proper place
10421         per coding convention.
10422
10423 2004-09-18  Andreas Schwab  <schwab@suse.de>
10424
10425         * Makefile.in (gimple-low.o): Depend on $(EXPR_H).
10426         (tree-vectorizer.o): Likewise.
10427         (targhooks.o): Likewise.
10428
10429 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
10430             Zack Weinberg  <zack@codesourcery.com>
10431
10432         * alias.c (find_base_decl): Remove unreachable case '3' block.
10433         * expr.c (safe_from_p): Abort if passed a type.
10434         * tree-gimple.c (recalculate_side_effects): Abort if passed
10435         anything other than an expression.
10436         * tree-ssa-pre.c (phi_translate): Return expr immediately if
10437         is_gimple_min_invariant is true for it.  Reorder cases for clarity.
10438         Abort on un-handled tree classes.
10439         (valid_in_set): Likewise.
10440         * tree.c (tree_code_class_strings): New static data.
10441
10442         * tree.h (enum tree_code_class): New.
10443         (tree_code_class_strings): Declare.
10444         (TREE_CODE_CLASS_STRING, EXCEPTIONAL_CLASS_P, CONSTANT_CLASS_P)
10445         (REFERENCE_CLASS_P, COMPARISON_CLASS_P, UNARY_CLASS_P, BINARY_CLASS_P)
10446         (STATEMENT_CLASS_P, EXPRESSION_CLASS_P, IS_TYPE_OR_DECL_P): New macros.
10447         (TYPE_P, DECL_P, IS_NON_TYPE_CODE_CLASS, IS_EXPR_CODE_CLASS)
10448         (checking macros, EXPR_LOCATION, SET_EXPR_LOCATION, EXPR_LOCUS): Update.
10449
10450         * tree.def, c-common.def, objc/objc-tree.def: Use
10451         tree_code_class enumeration constants instead of code letters.
10452
10453         * alias.c, builtins.c, c-common.c, c-format.c, c-lang.c, c-pragma.c
10454         * c-typeck.c, cgraphunit.c, convert.c, dbxout.c, dwarf2out.c
10455         * emit-rtl.c expr.c, fold-const.c, gimplify.c, lambda-code.c
10456         * langhooks.c, langhooks.h, predict.c, print-tree.c, reload1.c, stmt.c
10457         * tree-browser.c, tree-cfg.c, tree-chrec.c, tree-complex.c, tree-dfa.c
10458         * tree-dump.c, tree-eh.c, tree-gimple.c, tree-inline.c, tree-nested.c
10459         * tree-outof-ssa.c, tree-pretty-print.c, tree-sra.c, tree-ssa-ccp.c
10460         * tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-forwprop.c, tree-ssa-live.c
10461         * tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c
10462         * tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-propagate.c
10463         * tree-ssa.c, tree-ssanames.c, tree-tailcall.c, tree.c, varasm.c
10464         * config/sol2-c.c, config/arm/arm.c, config/i386/winnt.c
10465         * config/pa/pa.c, config/pa/pa.h, config/sh/sh.c, objc/objc-lang.c
10466         Update to match.
10467
10468         * LANGUAGES: Add note about change.
10469
10470 2004-09-17  Diego Novillo  <dnovillo@redhat.com>
10471
10472         PR tree-optimization/17319
10473         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Also
10474         examine pointers on the LHS of an assignment.
10475         (collect_points_to_info_r): Handle RETURN_EXPR.
10476
10477 2004-09-17 Jeff Law  <law@redhat.com>
10478
10479         * tree-ssa-dom.c (const_and_copies_stack): New.
10480         (dom_walk_block_data): Remove const_and_copies field.
10481         (record_const_or_copy): No longer need to pass in varray_type *.
10482         Use CONST_AND_COPIES_STACK rather than passed in block local stack.
10483         Callers updated.
10484         (record_equality): Similarly.
10485         (restore_vars_to_original_value): Similarly.  Revamp to use new
10486         single global stack rather than per-block stacks.
10487         (tree_ssa_dominator_optimize): Initialize the CONST_AND_COPIES_STACK.
10488         (thread_across_edge): Remove now unused parameters.
10489         (dom_opt_initialize_block_local_data): No longer test the block
10490         local CONST_AND_COPIES.
10491         (dom_opt_initialize_block): Push a marker on CONST_AND_COPIES_STACK.
10492
10493 2004-09-17  Jan Hubicka  <jh@suse.cz>
10494
10495         PR tree-optimization/17509
10496         * tree-optimize.c (update_inlined_to_pointers): New function.
10497         (tree_rest_of_compilation): Use it.
10498
10499 2004-09-17  Devang Patel  <dpatel@apple.com>
10500
10501         * dbxout.c (get_lang_number): New.
10502         (dbxout_init): Include lang number in N_SO  stab.
10503         * dbxout.h (N_SO_AS, N_SO_C, N_SO_ANSI_C, N_SO_CC, N_SO_FORTRAN,
10504         N_SO_PASCAL, N_SO_FORTRAN90, N_SO_OBJC, N_SO_OBJCPLUS): New #define.
10505
10506 2004-09-17  Diego Novillo  <dnovillo@redhat.com>
10507
10508         PR tree-optimization/17273
10509         * tree-ssa.c (replace_immediate_uses): Call fold_stmt if the
10510         replacement is a constant.
10511
10512 2004-09-17  Joseph S. Myers  <jsm@polyomino.org.uk>
10513
10514         * c-tree.h (enum c_typespec_keyword): New.
10515         (struct c_declspecs): Adjust description of "type".  Remove
10516         specbits, explicit_int_p and explicit_char_p.  Rename
10517         typedef_signed_p to explicit_signed_p.  Add default_int_p, long_p,
10518         short_p, signed_p, unsigned_p and complex_p.
10519         (finish_declspecs): New.
10520         * c-parse.in (datadef, datadecl, setspecs, decl, component_decl,
10521         typename): Call finish_declspecs.
10522         * c-decl.c (finish_declspecs): New.
10523         (declspecs_add_type): Check for combinations which cannot occur in
10524         valid specifier lists.  Update comments.
10525         (shadow_tag_warned): Remove checks done in finish_declspecs.
10526         Don't report useless type name if type defaulted to int.
10527         (grokdeclarator): Remove checks and actions done in
10528         finish_declspecs.  Don't allow for type being NULL.  Update for
10529         datastructures changes.  Initialize decl_attr.
10530         (build_null_declspecs, quals_from_declspecs): Update for
10531         datastructures changes.
10532
10533 2004-09-17  Sylvain Pion  <Sylvain.Pion@sophia.inria.fr>
10534
10535         * doc/extend.texi: Fix duplicated word.
10536
10537 2004-09-17  Toon Moene  <toon@moene.indiv.nluug.nl>
10538
10539         * doc/invoke.texi: Remove stray explanation on
10540         -freduce-all-givs and -fmove-all-movables.
10541
10542 2004-09-17  James Morrison  <phython@gcc.gnu.org>
10543
10544         * doc/cfg.texi: Use @smallexample.
10545         * doc/md.texi: Likewise.
10546         * doc/tree-ssa.texi: Likewise.
10547         * doc/extend.texi: Likewise.  Use @r{} in comments.
10548         * doc/trouble.texi: Use @r{} in comments.
10549
10550 2004-09-17  Hans-Peter Nilsson  <hp@bitrange.com>
10551
10552         * configure.ac (gcc_cv_gld_version): Handle whitespace before
10553         "VERSION=".
10554         * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto.
10555         * configure: Regenerate.
10556
10557 2004-09-17  J"orn Rennecke <joern.rennecke@superh.com>
10558
10559         * sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.
10560         (sh_pass_by_reference): Work around std_gimplify_va_arg_expr bug.
10561         * t-sh (MULTILIB_CPUS): s/ML_m/ML_sh/g .
10562         * t-sh64 (MULTILIB_CPU_DIRS): Likewise.  Match dashes and trailing
10563         slashes in substitutions.
10564         (MULTILIB_DIRNAMES): Remove defunct removal of /media32.
10565
10566 2004-09-17  Kazu Hirata  <kazu@cs.umass.edu>
10567
10568         * basic-block.h, c-decl.c, c-parse.in, cgraphunit.c, ddg.c,
10569         gimplify.c, lambda-code.c, optabs.c, predict.c,
10570         tree-scalar-evolution.c, tree-sra.c, tree-ssa-loop-ch.c,
10571         tree-ssa.c, vec.h: Fix comment typos.  Follow spelling
10572         conventions.
10573
10574 2004-09-17  Kazu Hirata  <kazu@cs.umass.edu>
10575
10576         * doc/compat.texi, doc/cpp.texi, doc/cppopts.texi,
10577         doc/extend.texi, doc/install.texi, doc/invoke.texi,
10578         doc/sourcebuild.texi, doc/tm.texi, doc/tree-ssa.texi,
10579         doc/trouble.texi: Use @option around options.
10580
10581 2004-09-17  Richard Sandiford  <rsandifo@redhat.com>
10582
10583         * Makefile.in (gen-protos.o): Depend on errors.h.
10584
10585 2004-09-17  Steven Bosscher  <stevenb@suse.de>
10586
10587         PR tree-optimization/17513
10588         * cfgexpand.c (construct_init_block): Clear EDGE_EXECUTABLE
10589         for successors of the entry block.
10590
10591 2004-09-17  Uros Bizjak  <uros@kss-loka.si>
10592
10593         PR rtl-optimization/15187
10594         * ifcvt.c (noce_try_cmove_arith): Exit early if total
10595         insn_rtx_cost of both branches > BRANCH_COST
10596
10597 2004-09-16  Diego Novillo  <dnovillo@redhat.com>
10598
10599         PR tree-optimization/17528
10600         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Do not
10601         erase the may-alias set for a tag when merging it with
10602         another.
10603
10604 2004-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
10605
10606         * config/sh/sh.md (call): Extend 32-bit addresses to DImode
10607         for 32-bit TARGET_SHMEDIA.
10608         (call_value): Likewise.
10609
10610 2004-09-16  Diego Novillo  <dnovillo@redhat.com>
10611
10612         * tree-ssa-operands.c (add_call_clobber_ops): Make read-only
10613         test apply only to TREE_STATIC and DECL_EXTERNAL.
10614
10615 2004-09-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10616
10617         * Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
10618         * basic-block.h (get_dominated_by_region): Declare.
10619         * dominance.c (get_dominated_by_region): New function.
10620         * tree-cfg.c: Include cfglayout.h.
10621         (tree_duplicate_bb): Duplicate also phi nodes.
10622         (struct ssa_name_map_entry): New type.
10623         (add_phi_args_after_copy_bb, add_phi_args_after_copy,
10624         ssa_name_map_entry_hash, ssa_name_map_entry_eq,
10625         allocate_ssa_names, rewrite_to_new_ssa_names_def,
10626         rewrite_to_new_ssa_names_use, rewrite_to_new_ssa_names_bb,
10627         rewrite_to_new_ssa_names, tree_duplicate_sese_region): New functions.
10628         * tree-flow.h (tree_duplicate_sese_region, add_phi_args_after_copy_bb,
10629         add_phi_args_after_copy, rewrite_to_new_ssa_names_bb,
10630         rewrite_to_new_ssa_names, allocate_ssa_names,
10631         rewrite_into_loop_closed_ssa, verify_loop_closed_ssa): Declare.
10632         * tree-ssa-loop-ch.c (duplicate_blocks): Removed.
10633         (copy_loop_headers): Use tree_duplicate_sese_region.
10634
10635 2004-09-16  Frank Ch. Eigler  <fche@redhat.com>
10636
10637         * profile.c (branch_prob): Restore support for USE_MAPPED_LOCATION.
10638
10639 2004-09-16 Jeff Law  <law@redhat.com>
10640
10641         * tree-into-ssa.c (block_defs_stack): New toplevel varray.
10642         (rewrite_block_data): Remove, no longer used.
10643         (rewrite_initialize_block_local_data): Remove, no longer used.
10644         (rewrite_initialize_block): Mark parameters as unused as needed.
10645         Change references to the block local block_defs to be block_defs_stack.
10646         Push a marker onto the block_defs_stack.
10647         (ssa_rewrite_initialize_block): Similarly.
10648         (rewrite_stmt, ssa_rewrite_stmt): Similarly.
10649         (ssa_register_new_def): No longer needs varray argument.  Use
10650         block_defs_stack instead.  No longer handle possibly null block_defs
10651         varray.  Reverse order of items we push on the stack to make it
10652         easier to identify our marker.
10653         (register_new_def): No longer handle possibly null block_defs
10654         varray.
10655         (rewrite_finalize_block): Revamp to look for markers in the global
10656         block_defs_stack varray rather than wiping a block local varray.
10657         Mark arguments as unused as needed.
10658         (ssa_rewrite_finalize_block): Similarly.
10659         (rewrite_into_ssa): Update initialization of dom walker structure
10660         to reflect that we don't need block local data anymore.  Initialize
10661         the block_defs_stack varray.
10662         (rewrite_ssa_into_ssa): Similarly.
10663         * tree-ssa-dom.c (block_defs_stack): New toplevel varray.
10664         (struct dom_walk_data): Kill block_defs field.
10665         (tree_ssa_dominator_optimize): Initialize block_defs_stack.
10666         (thread_across_edge): Use the global block_defs_stack instead of
10667         the old block_defs varray.
10668         (dom_opt_initialize_block_local_data): Update now that we don't have
10669         block_defs field to check anymore.
10670         (dom_opt_initialize_block): Push a marker onto block_defs_stack.
10671         (restore_currdefs_to_original_value): Use the new block_defs_stack
10672         instead of a block local varray.
10673         (dom_opt_finalize_block): Similarly.
10674         (record_equivalencs_from_phis): Similarly.
10675         (optimize_stmt, register_definitions_for_stmt): Similarly.
10676
10677 2004-09-16  Andrew MacLeod  <amacleod@redhat.com>
10678
10679         PR tree-optimization/17517
10680         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
10681         coalesce same-root variables without checking for abnormal PHI usage.
10682
10683 2004-09-16  Daniel Berlin  <dberlin@dberlin.org>
10684
10685         * cfgloop.h (duplicate_loop):  Add prototype.
10686         * cfgloopmanip.c (duplicate_loop): Make non-static.
10687         * lambda-code.c (perfect_nestify): Factor out test whether
10688         we can handle this loop into separate function.
10689         Call it.
10690         (can_convert_to_perfect_nest): New function.
10691         (replace_uses_of_x_with_y): Add modify_stmt call.
10692         * tree-loop-linear.c (linear_transform_loops): Call
10693         rewrite_into_loop_closed_ssa and free_df.
10694
10695 2004-09-16  Daniel Berlin  <dberlin@dberlin.org>
10696
10697         * lambda-code.c (invariant_in_loop): is_gimple_min_invariant is
10698         loop invariant as well.
10699         (perfect_nestify): new function.
10700         (gcc_loop_to_lambda_loop): New parameters to track lower bounds,
10701         upper bounds, and steps.
10702         Set outerinductionvar properly.
10703         (gcc_loopnest_to_lambda_loopnest): Add loops and need_perfect
10704         parameters.
10705         Return NULL if we need a perfect loop and can't make one.
10706         (lambda_loopnest_to_gcc_loopnest): Correct algorithm.
10707         (not_interesting_stmt): New function.
10708         (phi_loop_edge_uses_def): Ditto.
10709         (stmt_uses_phi_result): Ditto.
10710         (stmt_is_bumper_for_loop): Ditto.
10711         (perfect_nest_p): Ditto.
10712         (nestify_update_pending_stmts): Ditto.
10713         (replace_uses_of_x_with_y): Ditto.
10714         (stmt_uses_op): Ditto.
10715         (perfect_nestify): Ditto.
10716         * lambda-mat.c (lambda_matrix_id_p): New function.
10717         * lambda-trans.c (lambda_trans_matrix_id_p): Ditto.
10718         * lambda.h: Update prototypes.
10719         * tree-loop-linear (linear_transform_loop): Use new
10720         perfect_nest_p. Detect and ignore identity transform.
10721         * tree-ssa-loop.c (pass_linear_transform): Use TODO_write_loop_closed.
10722
10723 2004-09-16  Sebastian Pop  <pop@cri.ensmp.fr>
10724
10725         * tree-loop-linear.c (gather_interchange_stats): Add more comments.
10726         Gather also strides of accessed data.  Pass in the data references
10727         array.
10728         (try_interchange_loops): Add a new heuristic for handling the temporal
10729         locality.  Pass in the data references array.
10730         (linear_transform_loops): Pass the data references array to
10731         try_interchange_loops.
10732
10733 2004-09-16  Kazu Hirata  <kazu@cs.umass.edu>
10734
10735         * doc/invoke.texi: Fix typos.  Follow spelling conventions.
10736
10737 2004-09-16  Nathan Sidwell  <nathan@codesourcery.com>
10738
10739         * doc/c-tree.texi (Classes): Remove index entries for
10740         TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}.
10741
10742 2004-09-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10743
10744         * fold-const.c (fold): Fold difference of addresses.
10745         (ptr_difference_const): Moved from tree-ssa-loop-ivopts, based on
10746         get_inner_reference.
10747         * tree-ssa-loop-ivopts.c (peel_address): Removed.
10748         (ptr_difference_const): Moved to fold-const.c.
10749         (split_address_cost): Use get_inner_reference instead of peel_address.
10750         (ptr_difference_cost): Change type of diff to HOST_WIDE_INT.
10751         * tree.h (ptr_difference_const): Export.
10752
10753         * tree-ssa-loop-ivopts.c (dump_iv, dump_use, dump_cand): Add induction
10754         variable type to the dump.  Fix indentation.
10755         (idx_find_step): Handle nonconstant array_ref_element_size and
10756         array_ref_low_bound.
10757         (idx_record_use): Handle array_ref_element_size and
10758         array_ref_low_bound.
10759         (find_interesting_uses_stmt): Handle memory = nontrivial_expression
10760         statements correctly.
10761         (get_computation_at, iv_value): Do not unshare expressions here.
10762         (rewrite_use_outer): Unshare the expression before it is emitted
10763         to code.
10764         * tree-ssa-loop-niter.c (unsigned_type_for, signed_type_for):
10765         Moved to tree.c.
10766         * tree.c (unsigned_type_for, signed_type_for): Moved from
10767         tree-ssa-loop-niter.c.  Use langhooks.
10768         * tree.h (signed_type_for): Export.
10769
10770 2004-09-16  David Edelsohn  <edelsohn@gnu.org>
10771
10772         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Update
10773         prototype.
10774
10775 2004-09-15  Andrew Pinski  <pinskia@physics.uc.edu>
10776
10777         PR target/11572
10778         * c-incpath.h (target_c_incpath_s): Add extra_pre_includes.
10779         Add two parameters to extra_includes.
10780         (C_INCPATH_INIT): Remove.
10781         * c-incpath.c (register_include_chains): Call extra_pre_includes
10782         before adding the standard include directory.
10783         Update call to extra_includes.
10784         (!defined TARGET_EXTRA_INCLUDES): Update
10785         hook_void_charptr_charptr_int and add !define
10786         TARGET_EXTRA_PRE_INCLUDES.
10787         (!define TARGET_EXTRA_INCLUDES): Define as
10788         hook_void_charptr_charptr_int.
10789         (!define TARGET_EXTRA_PRE_INCLUDES): Likewise.
10790         (target_c_incpath): Always declare.
10791         * fixinclude.c (defined TARGET_EXTRA_INCLUDES): Declare a
10792         empty function.
10793         (define TARGET_EXTRA_PRE_INCLUDES): Likewise.
10794         * config/darwin.h: (darwin_register_frameworks): Update for
10795         the two new parameters.
10796         (darwin_register_objc_includes): Add prototype.
10797         (TARGET_EXTRA_PRE_INCLUDES): Define.
10798         * config/darwin-c.c (darwin_register_objc_includes): New function.
10799         (darwin_register_frameworks): Update for the two new parameters.
10800         (target_c_incpath): Remove.
10801         * config/t-darwin (darwin-c.o): Add $(PREPROCESSOR_DEFINES) to
10802         the compile line.
10803         * doc/tm.texi (TARGET_EXTRA_INCLUDES): Document the two new
10804         parameters.
10805         (TARGET_EXTRA_PRE_INCLUDES): Document.
10806
10807         * gcc.c (spec_function): Add replace-outfile.
10808         (replace_outfile_spec_function): New function.
10809         * config/darwin.h (LINK_SPEC): Add replace
10810         -lobjc with -lobjc-gnu if -fgnu-runtime is
10811         supplied.
10812         * invoke.texi (replace-outfile): Document.
10813
10814 2004-09-13  Jan Hubicka  <jh@suse.cz>
10815
10816         * predict.c (expr_expected_value, strip_builtin_expect): New function.
10817         (tree_predict_by_opcode): Use it.
10818         (tree_estimate_probability): Add, for now disabled,
10819         strip_builtin_expect call.
10820
10821 2004-09-15  James E Wilson  <wilson@specifixinc.com>
10822
10823         PR target/17455
10824         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Return false
10825         if current_function_decl is a sibcall.
10826
10827 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
10828
10829         * varasm.c (default_function_rdodata_section): Make sure to pass
10830         along a decl for a link-once section.
10831
10832 2004-09-15  Richard Henderson  <rth@redhat.com>
10833
10834         * tree-ssa-operands.c (add_call_clobber_ops): Fix unused variable
10835         warning with code disable.  Fix formatting.
10836
10837 2004-09-15  Steven Bosscher  <stevenb@suse.de>
10838
10839         * Makefile.in (tree-ssa-dom.o): Depend on tree-ssa-propagate.h.
10840         * tree-ssa-dom.c (cprop_into_stmt): Recompute TREE_INVARIANT
10841         after propagating into an ADDR_EXPR.
10842
10843 2004-09-15  Andrew Pinski  <apinski@apple.com>
10844
10845         PR rtl-opt/17427
10846         * gcse.c (process_insert_insn): insn_invalid_p has side effects.
10847         Move it out of gcc_assert.
10848
10849 2004-09-15  Joseph S. Myers  <jsm@polyomino.org.uk>
10850
10851         * attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c,
10852         except.c, fold-const.c, function.c, langhooks.c, params.c,
10853         reload.c, reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
10854         tree-dump.c, tree-mudflap.c, tree.c, varasm.c: Use %<, %> and %q
10855         for quoting in diagnostics going through pretty-print.c.  Use ''
10856         for quoting in other diagnostic text.
10857         * langhooks.c: Include intl.h.  Mark text locating diagnostics for
10858         translation.
10859         * Makefile.in (langhooks.o): Update dependencies.
10860         * pretty-print.h (pp_printf): Mark as accepting GCC diagnostic
10861         formats.
10862
10863 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
10864
10865         * configure.ac: Check for COMDAT support.  Robustify check for
10866         SHF_MERGE support.
10867         * configure: Regenerated.
10868         * config.in: Likewise.
10869         * langhooks-def.h (lhd_comdat_group): New function.
10870         (LANG_HOOKS_COMDAT_GROUP): New macro.
10871         (LANG_HOOKS_DECLS): Use it.
10872         * langhooks.c (lhd_comdat_group): Define.
10873         * langhooks.h (lang_hooks_for_decls): Add comdat_group.
10874         * output.h (named_section_flags): Make it a macro.
10875         (named_section_real): New function.
10876         (default_no_named_section): Add decl parameter.
10877         (default_elf_asm_named_section): Likewise.
10878         (default_coff_asm_named_section): Likewise.
10879         (default_pe_asm_named_section): Likewise.
10880         * target.h (gcc_target): Adjust type of named_section.
10881         * varasm.c (named_section_flags): Rename to named_section_real.
10882         Add decl parameter.
10883         (default_no_named_section): Add decl parameter.
10884         (default_elf_asm_named_section): Use COMDAT, if available.  Deal
10885         with the case that ASM_COMMENT_START is "@".
10886         (default_coff_asm_named_section): Add decl parameter.
10887         (default_pe_asm_named_section): Likewise.
10888         * config/alpha/alpha.c (vms_asm_named_section): Add decl
10889         parameter.
10890         (unicosmk_asm_named_section): Likewise.
10891         * config/arm/arm.c (arm_elf_asm_named_section): Remove.
10892         * config/arm/elf.h (TARGET_ASM_NAMED_SECTION): Likewise.
10893         * config/c4x/c4x.c (c4x_asm_named_section): Add decl parameter.
10894         * config/cris/cris-protos.h (cris_target_asm_named_section):
10895         Likewise.
10896         * config/cris/cris.c (cris_target_asm_named_section):
10897         Likewise.
10898         * config/darwin/darwin-protos.h (darwin_asm_named_section):
10899         Likewise.
10900         * config/darwin/darwin.c (darwin_asm_named_section): Likewise.
10901         * config/h8300/h8300.c (h8300_asm_named_section): Likewise.
10902         * config/i386/i386-protos.h (i386_pe_asm_named_section):
10903         Likewise.
10904         * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
10905         * config/m68k/m68k.c (m68k_coff_asm_named_section): Likewise.
10906         * config/mcore/mcore.c (mcore_asm_named_section): Likewise.
10907         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section):
10908         Likewise.
10909         * config/sparc/sparc.c (sparce_elf_asm_named_section): Likewise.
10910         * cp/cp-lang.h (LANG_HOOKS_COMDAT_GROUP): Define.
10911         * cp/cp-tree.h (cxx_comdat_group): Declare.
10912         * cp/decl.c (cxx_comdat_group): New function.
10913
10914 2004-09-15  Jan Hubicka  <jh@suse.cz>
10915
10916         * tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes.
10917         * tree-tailcall.c (eliminate_tail_call): Release SSA name.
10918
10919         * tree-cfg.c (remove_bb): Release SSA defs.
10920
10921 2004-09-15  Kazu Hirata  <kazu@cs.umass.edu>
10922
10923         * doc/tm.texi: Follow spelling conventions.
10924
10925 2004-09-15  Kazu Hirata  <kazu@cs.umass.edu>
10926
10927         * tree-ssa-dom.c: Fix comment typos.
10928
10929 2004-09-15  Alan Modra  <amodra@bigpond.net.au>
10930
10931         * config/rs6000/linux-unwind.h (struct gcc_pt_regs): Extend to
10932         include ccr.
10933         (ppc_fallback_frame_state): Save location of CR.
10934
10935 2004-09-15  Jakub Jelinek  <jakub@redhat.com>
10936
10937         * expr.c (string_constant): Handle also read-only variables
10938         initialized to string literals.
10939
10940         * builtins.c (expand_builtin_memmove): Optimize memmove (x, y, 1)
10941         into memcpy (x, y, 1) if memcpy can be expanded inline.
10942
10943 2004-09-15  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10944
10945         PR tree-optimization/17468
10946         * tree-ssa.c (verify_use, verify_phi_args, verify_ssa):  Verify that
10947         definition inside a block precede uses.
10948         * tree-tailcall.c (adjust_return_value): Emit statements in the
10949         correct order.
10950
10951 2004-09-15  Richard Sandiford  <rsandifo@redhat.com>
10952
10953         * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Delete.
10954
10955 2004-09-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
10956
10957         * doc/install.texi (sparc-sun-solaris2*): Properly format warning.
10958
10959 2004-09-14 Jeff Law  <law@redhat.com>
10960
10961         * tree-ssa-dom.c (avail_exprs_stack): New global varray.
10962         (struct dom_walk_block_data): Remove avail_exprs member.
10963         (tree_ssa_dominator_optimize): Initialize avail_exprs_stack.
10964         (lookup_avail_expr): No longer need to pass in address of
10965         the block local available exprs stack.  All callers changed.
10966         (simplify_cond_and_lookup_avail_expr): Similarly.
10967         (simplify_switch_and_lookup_avail_expr): Similarly.
10968         (get_eq_expr_value, record_cond): Likewise.
10969         (record_dominating_conditions): Likewise.
10970         (update_rhs_and_lookup_avail_expr): Likewise.
10971         (record_equivalences_from_stmt): Likewise.
10972         (dom_opt_initialize_block_local_data): No longer test state of
10973         block local avail_exprs.
10974         (dom_opt_initialize_block): Mark unwind point in the global
10975         avail_expr stack.
10976         (remove_expressions_from_table): Update to unwind to the
10977         most recent unwind marker in the global avail_expr stack.
10978         All callers changed.
10979         (dom_opt_finalize_block): Mark unwind point in the global
10980         avail_expr stack as needed.
10981         (record_cond): Push elements into the global avail_exprs stack.
10982
10983         * tree-dfa.c (free_df_for_stmt): No longer static.
10984         (free_df): Update comments.
10985         * tree-flow.h (free_df_for_stmt): Prototype.
10986         * tree-ssa-dse.c (dse_optimize_stmt): Call free_df_for_stmt.  Also
10987         call release_defs.
10988
10989 2004-09-14  Diego Novillo  <dnovillo@redhat.com>
10990
10991         PR tree-optimization/17252
10992         * tree-ssa-alias.c (may_alias_p): Don't assume that a
10993         pointer may not point to itself when using relaxed
10994         aliasing rules.
10995
10996 2004-09-14  Richard Henderson  <rth@redhat.com>
10997
10998         PR middle-end/17397
10999         * gimplify.c (gimplify_addr_expr): Don't inadvertently change types
11000         while folding <ADDR_EXPR <INDIRECT_REF X>>.
11001
11002 2004-09-14  Andrew Pinski  <apinski@apple.com>
11003
11004         * tree-ssa-copy.c (may_propagate_copy): Don't check the aliasing
11005         sets of the pointers but the aliasing sets of what they point to.
11006
11007 2004-09-14  Roger Sayle  <roger@eyesopen.com>
11008
11009         PR rtl-optimization/9771
11010         * regclass.c (CALL_REALLY_USED_REGNO_P): New macro to eliminate
11011         conditional compilation in init_reg_sets_1.
11012         (init_reg_sets_1): Let global_regs[i] take priority over the frame
11013         (but not stack) pointer exceptions to regs_invalidated_by_call.
11014         (globalize_reg): Globalizing a fixed register may need to update
11015         regs_invalidated_by_call.
11016
11017 2004-09-14  Diego Novillo  <dnovillo@redhat.com>
11018
11019         PR tree-optimization/15262
11020         * tree-dfa.c (dump_variable): Also print the type of the
11021         variable.
11022         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If two
11023         memory tags are of conflicting alias sets but have no aliased
11024         symbols in common, add one tag to the alias set of the other.
11025         (setup_pointers_and_addressables): Remove hack to deal with
11026         programs with no aliased symbols.
11027         (may_alias_p): Don't special case aggregate types.
11028
11029 2004-09-14  Joseph S. Myers  <jsm@polyomino.org.uk>
11030
11031         PR c/15498
11032         * doc/invoke.texi (Environment Variables): Correct example locale.
11033
11034 2004-09-14  Jan Hubicka  <jh@suse.cz>
11035
11036         * cfg.c (expunge_block): Revert previous change adding ggc_free call.
11037
11038 2004-09-14  Mark Mitchell  <mark@codesourcery.com>
11039
11040         * config.gcc: Do not build a shared libgcc for arm-none-eabi.
11041
11042 2004-09-14  Joseph S. Myers  <jsm@polyomino.org.uk>
11043
11044         * c-tree.h (struct c_declspecs): Add const_p, volatile_p and
11045         restrict_p.
11046         (struct c_declarator): Change u.array.quals and pointer_quals to
11047         int.  Add u.array.attrs.
11048         (quals_from_declspecs): New.
11049         * c-decl.c (quals_from_declspecs): New.
11050         (shadow_tag_warned): Give more specific message for useless type
11051         qualifiers.
11052         (build_array_declarator, set_array_declarator_inner,
11053         grokdeclarator, make_pointer_declarator, build_null_declspecs,
11054         declspecs_add_qual): Update for changed structures.
11055
11056 2004-09-14  Jeff Law  <law@redhat.com>
11057
11058         * tree-ssa-dom.c (stmts_to_rescan): Move from a block-local
11059         to a global varray.
11060         (tree_ssa_dominator_optimize): Allocate stmts_to_rescan.
11061         (dom_opt_initialize_block_local_data): No longer test state
11062         of stmts_to_rescan.
11063         (dom_opt_finalize_block): Update due to change in scope of
11064         stmts_to_rescan.
11065         (optimize_stmt): Similarly.
11066
11067 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
11068
11069         * cgraph.h, cgraphunit.c, fold-const.c, lambda-mat.c,
11070         lambda.h, profile.c, tree-optimize.c, tree-sra.c, vec.h: Fix
11071         comment typos.  Follow spelling conventions.
11072
11073 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
11074
11075         * config/darwin-c.c, config/alpha/alpha.c, config/i386/i386.c,
11076         config/i386/predicates.md, config/sparc/sparc.c: Follow
11077         spelling conventions.
11078
11079 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11080             Steven Bosscher  <stevenb@suse.de>
11081
11082         * Makefile.in (loop-unroll.o): Add HASHTAB_H and RECOG_H dependency.
11083         * basic-block.h (struct reorder_block_def): Add copy_number field.
11084         * cfgloop.h (biv_p): Declare.
11085         * cfgloopmanip.c (duplicate_loop_to_header_edge): Set copy_number.
11086         * common.opt (fsplit-ivs-in-unroller): New flag.
11087         * loop-iv.c (biv_p): New function.
11088         * loop-unroll.c: Include hashtab.h and recog.h.
11089         (struct iv_to_split, struct split_ivs_info): New types.
11090         (analyze_ivs_to_split, si_info_start_duplication, split_ivs_in_copies,
11091         free_si_info, si_info_hash, si_info_eq, analyze_iv_to_split_insn,
11092         determine_split_iv_delta, get_ivts_expr, allocate_basic_variable,
11093         insert_base_initialization, split_iv): New functions.
11094         (peel_loop_completely, unroll_loop_constant_iterations,
11095         unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
11096         Use them.
11097         * doc/invoke.texi (-fsplit-ivs-in-unroller): Document.
11098
11099 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11100
11101         * tree-cfg.c (thread_jumps): Update dominators correctly in
11102         case destination of threaded edge dominates its source.
11103
11104 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11105
11106         * unroll.c: Removed.
11107         * loop.h: Removed.
11108         * Makefile.in (LOOP_H, unroll.o): Removed.
11109         (toplev.o, passes.o, stmt.o, integrate.o, loop.o): Remove LOOP_H
11110         dependency.
11111         * alias.c (init_alias_analysis): Remove flag_old_unroll_loops
11112         reference.
11113         * cfgloop.h (LOOP_PREFETCH, loop_optimize): Moved from loop.h.
11114         * common.opt (fold-unroll-loops, fold-unroll-all-loops): Removed.
11115         * loop.c: Do not include loop.h.
11116         (LOOP_INFO, LOOP_MOVABLES, LOOP_REGS, LOOP_IVS, INSN_LUID,
11117         REGNO_FIRST_LUID, REGNO_LAST_LUID, enum g_types, struct induction,
11118         struct iv_class, enum iv_mode, struct iv, REG_IV_TYPE, REG_IV_INFO,
11119         REG_IV_CLASS, struct loop_ivs, struct loop_mem_info, struct loop_reg,
11120         struct loop_regs, struct loop_movables, struct loop_info): Moved
11121         from loop.h.
11122         (back_branch_in_range_p, fold_rtx_mult_add, biv_total_increment,
11123         reg_dead_after_loop, final_biv_value, loop_find_equiv_value,
11124         find_common_reg_term, loop_iterations, final_giv_value): Moved
11125         from unroll.c.
11126         (uid_luid, uid_loop, max_uid_for_loop, max_reg_before_loop,
11127         loop_dump_stream, for_each_insn_in_loop, express_from,
11128         extend_value_for_giv, loop_iv_add_mult_emit_before,
11129         loop_iv_add_mult_sink, loop_iv_add_mult_hoist,
11130         loop_insn_first_p, get_condition_for_loop,
11131         loop_insn_emit_before, loop_insn_hoist,
11132         loop_insn_sink): Made static.
11133         (loop_invariant_p): Made static.  Removed flag_old_unroll_loops
11134         reference.
11135         (strength_reduce): Do not call unroller.
11136         (record_giv): Do not initialize unrolled field.
11137         (prescan_loop): Do not set loop_info->preconditioned.
11138         * passes.c: Do not include loop.h.
11139         (rest_of_handle_loop_optimize): Do not call unroller.
11140         * predict.c: Do not include loop.h.
11141         * rtl.h (NOTE_PRECONDITIONED): Removed.
11142         * stmt.c: Do not include loop.h.
11143         * toplev.c: Do not include loop.h.
11144         (process_options): Do not handle flag_old_unroll_loops.
11145
11146         * doc/invoke.texi (fold-unroll-loops, fold-unroll-all-loops):
11147         Documentation removed.
11148         * doc/passes.texi (unroll.c, loop.h): Documentation removed.
11149
11150 2004-09-14  Nathan Sidwell  <nathan@codesourcery.com>
11151
11152         * Makefile.in (STAGE1_CHECKING): New variable.
11153         (stage1_build): Use it.
11154         * tree-ssa.c (verify_ssa): Preserve state of dominance
11155         information.
11156
11157 2004-09-14  Uros Bizjak  <uros@kss-loka.si>
11158
11159         * config/i386/i386.c (output_fp_compare): Add generation
11160         of ftst instruction.
11161         * config/i386/i386.md (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf):
11162         Use output_fp_compare () function.
11163         (cmpfp_i, *cmpfp_i_sse, *cmpfp_i_sse_only): Fix insn constraint.
11164         (fix_truncdi_memory): Remove operands[5] copy.
11165
11166 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
11167
11168         * config/m32r/m32r.md, config/m68k/m68kelf.h,
11169         config/mcore/mcore.md, config/rs6000/linux64.h,
11170         config/rs6000/rs6000.c, config/sparc/sparc.c: Fix comment
11171         typos.
11172
11173 2004-09-13  James E Wilson  <wilson@specifixinc.com>
11174
11175         * Makefile.in (GEN_PROTOS_OBJS): Add $(BUILD_ERRORS).
11176         * gen-protos.c: Include errors.h.
11177         (progname): Delete.
11178
11179 2004-09-14  Jan Hubicka  <jh@suse.cz>
11180
11181         * Makefile.in (predict.o): Depend on tree-scalar-evolution.h
11182         * predict.c: Include tree-scalar-evolution.h and cfgloop.h
11183         (predict_loops): Use number_of_iterations_exit to predict
11184         number of iterations on trees.
11185
11186 2004-09-13  Dale Johannesen  <dalej@apple.com>
11187
11188         PR 17408
11189         PR 17409
11190         * c-decl.c (start_decl): Repair TREE_STATIC for initialized
11191         objects declared extern.
11192
11193 2004-09-14  Paul Brook  <paul@codesourcery.com>
11194
11195         * config/arm/arm.c (arm_expand_prologue): Make args_to_push a
11196         HOST_WIDE_INT.
11197
11198 2004-09-13  Daniel Jacobowitz  <dan@debian.org>
11199
11200         * fold-const.c (fold_checksum_tree): Ignore TYPE_CACHED_VALUES.
11201         Only use TYPE_BINFO for aggregates.
11202
11203 2004-09-13  Daniel Jacobowitz  <dan@debian.org>
11204
11205         * expmed.c (synth_mult): Initialize latency.  Check cost before
11206         checking ops count.
11207
11208 2004-09-13  Kenneth Zadeck  <Kenneth.Zadeck@NaturalBridge.com>
11209
11210         * tree-ssa-operands.c (get_call_expr_operands): Added parm to
11211         add_call_clobber_ops and add_call_read_ops.
11212         (add_call_clobber_ops, add_call_read_ops): Added code to reduce
11213         the number of vdefs and vuses inserted based on analysis of global
11214         variables across calls.  * tree-dfa.c (find_referenced_vars):
11215         Needed to reset static var maps before each function is compiled.
11216         * cgraphunit.c:
11217         (static_vars_to_consider_by_tree,static_vars_to_consider_by_uid,
11218         static_vars_info,functions_to_static_vars_info,module_statics_escape,
11219         all_module_statics,searchc_env,dfs_info): New fields to support
11220         analysis of static global variables.
11221         (print_order, convert_UIDs_in_bitmap, new_static_vars_info,
11222         cgraph_reset_static_var_maps, get_global_static_vars_info,
11223         get_global_statics_not_read, get_global_statics_not_written,
11224         searchc, cgraph_reduced_inorder, has_proper_scope_for_analysis,
11225         check_rhs_var, check_lhs_var, get_asm_expr_operands,
11226         process_call_for_static_vars, scan_for_static_refs,
11227         cgraph_characterize_statics_local, cgraph_get_static_name_by_uid,
11228         clear_static_vars_maps, cgraph_propagate_bits,
11229         cgraph_characterize_statics): New. Functions to support analysis
11230         of static global variables.
11231         (cgraph_mark_local_and_external_functions): Renamed from:
11232         (cgraph_mark_local_functions)
11233         (cgraph_expand_all_functions): Remove call to
11234         cgraph_mark_local_and_external_functions.
11235         (cgraph_optimize): Added driver to analyze static variables whose
11236         scope is within the compilation unit.  * cgraph.h (struct
11237         cgraph_local_info, GTY): Added statics_read, statics_written,
11238         local, calls_read_all, calls_write_all, for_functions_valid.
11239         (struct cgraph_node): Added next_cycle.  * cgraph.c
11240         (dump_cgraph_node): Added print routines for new fields.  *
11241         makefile.in: macroized cgraph.h, added cgraphunit.c to the ggc
11242         list.
11243
11244 2004-09-13  Joseph S. Myers  <jsm@polyomino.org.uk>
11245
11246         * c-decl.c (grokdeclarator): Correct comments about where storage
11247         class specifiers are rejected by grammar and add corresponding
11248         asserts.  Diagnose typedefs and parameters declared inline.
11249         Change warning for inline main to a pedwarn.  Only diagnose inline
11250         main if hosted.
11251         (declspecs_add_scspec): Allow duplicate "inline".
11252
11253 2004-09-13  Steve Ellcey  <sje@cup.hp.com>
11254
11255         * config/ia64/ia64.c (ia64_scalar_mode_supported_p): New.
11256         (TARGET_SCALAR_MODE_SUPPORTED_P): New.
11257
11258 2004-09-13  Richard Henderson  <rth@redhat.com>
11259
11260         PR 17436
11261         * tree.h (TYPE_CONTAINS_PLACEHOLDER_INTERNAL): New.
11262         (tree_type): Replace spare with contains_placeholder_bits.
11263         (type_contains_placeholder_1): Rename from type_contains_placeholder_p,
11264         make static.  Remove seen_types list.
11265         (type_contains_placeholder_p): New.
11266
11267 2004-09-13  James E Wilson  <wilson@specifixinc.com>
11268
11269         * config/mips/mips.c (CODE_FOR_mips_sqrt_ps): New.
11270         (sb1_bdesc, bdesc_map, bdesc_arrays): New.
11271         (mips_expand_builtin): Add SB-1 support.  Use bdesc_map and
11272         bdesc_arrays instead of mips_bdesc.
11273         (mips_init_builtins): Likewise.
11274         * config/mips/mips.h (TARGET_SB1): New.
11275         (HAVE_SQRT_P): Delete.
11276         * config/mips/mips.md (divide_condition): Support V2SF.
11277         (sqrt_condition, recip_condition): New.
11278         (div<mode>3): Use ANYF instead of SCALARF.
11279         (*div<mode>3): Use ANYF instead of SCALARF.  Use UNITMODE instead of
11280         MODE.
11281         (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Use recip_condition
11282         instead of ISA_HAS_FP4.  Use ANYF instead of SCALARF.  Use UNITMODE
11283         instead of MODE.
11284         (sqrt<mode>2): Use sqrt_condition instead of HAVE_SQRT_P.  Use ANYF
11285         instead of SCALARF.  Use UNITMODE instead of MODE.
11286
11287 2004-09-13  Zack Weinberg  <zack@codesourcery.com>
11288
11289         * config.in: Regenerate after removal of libbanshee.
11290
11291 2004-09-13  Andrew MacLeod  <amacleod@redhat.com>
11292
11293         PR tree-optimization/17400
11294         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11295         coalesce partitions when one occurs in an abnormal PHI.
11296
11297 2004-09-13  Andrew Pinski  <apinski@apple.com>
11298
11299         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Change variable size's
11300         name to _new_size.
11301
11302 2004-09-13  Richard Henderson  <rth@redhat.com>
11303
11304         PR inline-asm/6806
11305         * cselib.c (cselib_invalidate_rtx): Export.  Remove unused args.
11306         (cselib_invalidate_rtx_note_stores): New.
11307         (cselib_record_sets, cselib_process_insn): Update to match.
11308         * cselib.h (cselib_invalidate_rtx): Declare.
11309         * postreload.c (reload_cse_simplify): Invalidate asm clobbers.
11310
11311 2004-09-13  Richard Henderson  <rth@redhat.com>
11312
11313         PR tree-opt/10528
11314         * tree-inline.c (copy_body_r): Recompute bits for ADDR_EXPR,
11315         after copying its argument.
11316
11317 2004-09-13  Joseph S. Myers  <jsm@polyomino.org.uk>
11318
11319         * c-common.c, c-decl.c, c-lex.c, c-objc-common.c, c-opts.c,
11320         c-parse.in, c-pragma.c, c-typeck.c: Use %q, %< and %> for quoting
11321         in diagnostics.  Use %' for English apostrophes.
11322         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Define.
11323         (pedwarn_c90, pedwarn_c99): Use it.
11324         * c-decl.c (lookup_label): Quote label name in diagnostic.
11325         * c-parse.in (yyprint): Use ' instead of ` for left quote.
11326         * c-typeck.c (warn_for_assignment): Likewise.
11327
11328 2004-09-13  Jan Hubicka  <jh@suse.cz>
11329
11330         * i386.c (x86_schedule): New global variable.
11331         (override_options): Disable scheduling when not supported.
11332         * i386.h (x86_schedule): Declare.
11333         (TARGET_SCHEDULE): New macro.
11334
11335 2004-09-12  Richard Henderson  <rth@redhat.com>
11336
11337         PR c++/16254
11338         * fold-const.c (fold) <case CLEANUP_POINT_EXPR>: Remove.
11339         * tree.c, tree.h (has_cleanups): Remove.
11340
11341 2004-09-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11342
11343         * tree-ssa-loop-manip.c (split_loop_exit_edge): Handle non-ssaname
11344         arguments of the phi nodes correctly.
11345
11346 2004-09-12  Jan Hubicka  <jh@suse.cz>
11347
11348         * ggc-common.c (cmp_statistics): Fix sorting.
11349
11350 2004-09-12  David Edelsohn  <edelsohn@gnu.org>
11351
11352         PR target/16795
11353         * expmed.c (expand_divmod): If cheap power of 2 divide is
11354         available, use it for negative constant as well.
11355
11356 2004-09-12  Andrew Pinski  <apinski@apple.com>
11357
11358         * darwin.h (ASM_OUTPUT_COMMON): Make sure we do not have a
11359         size of 0.
11360
11361         * tree-chrec.c (initialize_scalar_evolutions_analyzer): Remove.
11362
11363 2004-09-12  Richard Henderson  <rth@redhat.com>
11364
11365         * config/i386/i386.c (ix86_split_ashldi): Special case op1 as one
11366         or minus one.
11367         (ix86_split_ashrdi, ix86_split_lshrdi): Clean up conditions for
11368         post-reload, and scratch NULL.
11369         * config/i386/i386.md (testqi_1): Use FLAGS_REG name.
11370         (x86_shift_adj_2): Use ix86_expand_clear.
11371         (ashldi3): Remove CMOVE expansion difference.
11372         (ashldi3_1): Remove.
11373         (*ashldi3_1): Rename from *ashldi3_2.  Use reg_or_pm1_operand and
11374         add constraints for immediates.  New peephole for split-with-temp.
11375         Run splitter after peep2 pass.
11376         (ashrdi3, ashrdi3_1, ashrdi3_2): Similarly.
11377         (lshrdi3, lshrdi3_1, lshrdi3_2): Similarly.
11378         (setcc_2): Rename with *.
11379         * config/i386/predicates.md (reg_or_pm1_operand): New.
11380         (ashldi_input_operand): New.
11381
11382 2004-09-12  Richard Henderson  <rth@redhat.com
11383
11384         * print-rtl.c (print_decl_name): New.
11385         (print_mem_expr): Use it.
11386
11387 2004-09-12  Richard Henderson  <rth@redhat.com
11388
11389         PR 17186, part deux
11390         * except.c (sjlj_emit_function_exit): Fix logic locating
11391         sjlj_exit_after in final block.
11392
11393 2004-09-12  Toon Moene  <toon@moene.indiv.nluug.nl>
11394
11395         * common.opt: Remove flags -fmove-all-movables and
11396         -freduce-all-givs.
11397         * loop-invariant.c (find_invariants_to_move):
11398         Remove all uses of flag_move_all_movables.
11399         * loop.c (move_movables): Remove all uses of
11400         flag_move_all_movables.
11401         (strength_reduce): Remove all uses of
11402         flag_reduce_all_givs.
11403         * doc/invoke.texi: Remove documentation of flags
11404         -fremove-all-movables and -freduce-all-givs.
11405
11406 2004-09-11  Roger Sayle  <roger@eyesopen.com>
11407
11408         PR middle-end/17411
11409         * tree-sra.c (generate_element_zero): Revert recent build_int_cst
11410         change. elt->type may be a floating point type, so use fold_convert.
11411
11412 2004-09-11  Geoffrey Keating  <geoffk@apple.com>
11413
11414         * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Mark
11415         the thing referenced as used, not the stub itself.
11416
11417 2004-09-11  Joseph S. Myers  <jsm@polyomino.org.uk>
11418
11419         * c-tree.h (enum c_storage_class): New.
11420         (struct c_declspecs): Add storage_class, inline_p and thread_p.
11421         * c-decl.c (shadow_tag_warned): Give errors for "inline" in empty
11422         declarations and "auto" or "register" in file scope empty
11423         declarations.  Give more specific warnings for other cases of
11424         storage class specifiers in empty declarations.
11425         (grokdeclarator): Update for new structures.  Don't check for
11426         multiple storage classes.  Diagnose file-scope "register" if
11427         pedantic.
11428         (build_null_declspecs): Update.
11429         (declspecs_add_scspec): Update.  Diagnose multiple storage class
11430         specifiers and invalid uses of "__thread".
11431
11432 2004-09-11  Zack Weinberg  <zack@codesourcery.com>
11433
11434         * tree.c (tree_code_size): New function, bulk of code from tree_size.
11435         (tree_size, make_node): Use it.
11436         * tree-ssa-pre.c (init_pre): Use it.
11437         * tree.h: Prototype it.
11438
11439 2004-09-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11440
11441         * tree-cfg.c (set_bb_for_stmt): Use PHI_BB.
11442         * tree-dfa.c (compute_immediate_uses, add_immediate_use,
11443         redirect_immediate_use): Use PHI_DF.
11444         * tree-flow-inline.h (stmt_ann): Abort on phi nodes.
11445         (bb_for_stmt): Use PHI_BB.
11446         (get_immediate_uses): Use PHI_DF.
11447         * tree-ssa-dse.c (max_stmt_uid): New variable.
11448         (get_stmt_uid): New function.
11449         (dse_optimize_stmt, dse_record_phis, tree_ssa_dse): Do not use phi
11450         node annotations.
11451         * tree-ssa-loop-im.c (LIM_DATA): Do not use phi statement annotations.
11452         (max_uid): Renamed to max_stmt_uid.
11453         (get_stmt_uid): New function.
11454         (maybe_queue_var, single_reachable_address, determine_lsm): Do not use
11455         phi node annotations.
11456         * tree-ssa.c (replace_immediate_uses): Do not use phi node annotations.
11457         * tree.h (PHI_BB, PHI_DF): New accessor functions.
11458         (struct tree_phi_node): Add bb and df fields.
11459
11460 2004-09-11  Richard Henderson  <rth@redhat.com>
11461
11462         PR middle-end/17416
11463         * cfgexpand.c (expand_used_vars_for_block): Fix off-by-one bug
11464         in conflict loop.
11465
11466 2004-09-11  Jan Hubicka  <jh@suse.cz>
11467
11468         * i386.h (MODE_NEEDED): Calls need UNINITIALIZED mode; add comment.
11469         (EMIT_MODE_SET): UNINITIALIZED mode needs no set.
11470         * i386.md (i387_cw): Add 'uninitialized' mode.
11471
11472         * profile.c (BB_TO_GCOV_INDEX): move more to the front.
11473         (output_location): Break out from ....
11474         (branch_prob): ... here; handle gcov output on trees.
11475         * toplev.c (process_options): No longer be sorry about coverage for
11476         trees.
11477
11478 2004-09-11  Steven Bosscher  <stevenb@suse.de>
11479
11480         PR c++/17412
11481         * fold-const.c (fold): Do not try to fold the operand of a
11482         CLEANUP_POINT_EXPR if that operand does itself not have any
11483         operands.
11484
11485         PR middle-end/17417
11486         * langhooks.c (lhd_decl_printable_name): Make sure that this
11487         function is called with is a decl node that has an identifier.
11488         * tree-pretty-print.c (dump_function_name): New function to
11489         wrap PRINT_FUNCTION_NAME and dump_decl_name.
11490         (print_call_name): Use it.
11491
11492 2004-09-11  Mohan Embar  <gnustuff@thisiscool.com>
11493
11494         * ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE,
11495         "config.h" if not.
11496
11497 2004-09-11  Jakub Jelinek  <jakub@redhat.com>
11498
11499         * tree-ssa-alias.c (collect_points_to_info_r): Handle
11500         pointing to PTR + OFFSET as PTR, not as pointing to PTR or pointing
11501         to OFFSET.
11502
11503 2004-09-11  Richard Henderson  <rth@redhat.com>
11504
11505         * expr.c (expand_expr_addr_expr_1) Rename from expand_expr_addr_expr.
11506         (expand_expr_addr_expr): New function.  Take ADDR_EXPR instead of the
11507         operand of the ADDR_EXPR.
11508         (expand_expr_real_1): Update to match.
11509
11510 2004-09-11  David Edelsohn  <edelsohn@gnu.org>
11511
11512         PR target/17277
11513         * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to
11514         choose 64-bit version.
11515
11516 2004-09-11  Richard Henderson  <rth@redhat.com>
11517
11518         PR c/17396
11519         * c-typeck.c (build_unary_op): Add legacy offsetof hack.
11520
11521 2004-09-11  Kazu Hirata  <kazu@cs.umass.edu>
11522
11523         * doc/cfg.texi, doc/hostconfig.texi, doc/install.texi,
11524         doc/invoke.texi, doc/md.texi, doc/tm.texi, doc/tree-ssa.texi:
11525         Insert @: after i.e. or e.g.
11526
11527 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
11528
11529         * tree-pretty-print.c (dump_decl_name): Print unnamed decls as
11530         D.xxx rather than <Dxxx>.
11531
11532 2004-09-10  Adam Nemet  <anemet@lnxw.com>
11533
11534         * configure.ac (AC_MSG_CHECKING(what linker to use)):
11535         in_tree_ld_is_elf should be true for LynxOS.
11536         * configure: Regenerate.
11537
11538 2004-09-10  Adam Nemet  <anemet@lnxw.com>
11539
11540         * Makefile.in (all.cross): Add srcextra.
11541
11542 2004-09-10  Roger Sayle  <roger@eyesopen.com>
11543
11544         PR middle-end/17024
11545         * fold-const.c (fold_cond_expr_with_comparison): Handle unordered
11546         floating point comparison operators.  Change aborts to gcc_asserts.
11547
11548 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
11549
11550         * final.c (output_asm_insn): Correct problem with -fverbose-asm.
11551
11552 2004-09-10  James E Wilson  <wilson@specifixinc.com>
11553
11554         * Makefile.in (LIBGCC_DEPS): Delete duplicate stmp-int-hdrs reference.
11555         (stmp-fixproto): Change stmp-int-headers to stmp-int-hdrs in comment.
11556
11557         * convert.c (convert_to_vector): Replace recursive call with
11558         error_mark_node.
11559
11560         * emit-rtl.c (gen_const_vector): Renamed from gen_const_vector_0.
11561         Add integer argument named constant.  Use const_tiny_rtx instead of
11562         CONST0_RTX.
11563         (gen_rtx_CONST_VECTOR): Rewrite to handle checks for both CONST0_RTX
11564         and CONST1_RTX.
11565         (init_emit_once): Fix users of gen_const_vector.  Set CONST1_RTX for
11566         vector types.
11567         * expr.c (const_vector_from_tree): Call gen_rtx_CONST_VECTOR instead
11568         of gen_rtx_raw_CONST_VECTOR.
11569
11570 2004-09-10  Eric Christopher  <echristo@redhat.com>
11571
11572         PR c/16046
11573         * c-parse.in (attribute): Add NULL_TREE for error case
11574         for error recovery.
11575
11576 2004-09-10  Zack Weinberg  <zack@codesourcery.com>
11577
11578         * c-common.h (struct c_fileinfo): Comment moved here from cp-tree.h.
11579         (extract_interface_info): Delete prototype.
11580         * c-decl.c (extract_interface_info): Delete stub.
11581         * c-lex.c (get_fileinfo): Initialize file_info_tree here, if
11582         it's not already been done ...
11583         (init_c_lex): ... not here.
11584         (fe_file_change): Don't call extract_interface_info.
11585
11586 2004-09-11  Joseph S. Myers  <jsm@polyomino.org.uk>
11587
11588         * c-tree.h (struct c_declspecs): Remove typedef_decl.  Add
11589         typedef_p and typedef_signed_p.
11590         * c-decl.c (shadow_tag_warned): Check typedef_p, not typedef_decl.
11591         (grokdeclarator): Don't use typedef_decl for warn_deprecated_use.
11592         Check typedef_p and typedef_signed_p, not typedef_decl.
11593         (grokfield): Check typedef_p, not typedef_decl.
11594         (build_null_declspecs): Initialize typedef_p and typedef_signed_p,
11595         not typedef_decl.
11596         (declspecs_add_type): Set typedef_p and typedef_signed_p, not
11597         typedef_decl.
11598
11599 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
11600
11601         * doc/tm.texi, doc/tree-ssa.texi: Fix typos.
11602
11603 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
11604
11605         * gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless
11606         temporary variables.
11607
11608         * dbxout.c (dbxout_block): Update for
11609         current_function_func_begin_label a string.
11610         * dwarf2out.c (dwarf2out_begin_prologue): Likewise.
11611         * except.c (dw2_output_call_site_table): Likewise.
11612         * toplev.c (current_function_func_begin_label): Likewise.
11613         * tree.h (current_function_func_begin_label): Likewise.
11614         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Likewise.
11615
11616         * final.c (output_asm_insn): Use strtoul instead of atoi, save a
11617         loop.
11618
11619         * config/darwin.c: Include target.h.
11620         (struct machopic_indirection): Make ptr_name a string.
11621         (machopic_indirection_hash): Update for ptr_name a string.
11622         (machopic_indirection_eq): Likewise.
11623         (machopic_indirection_name): Likewise.
11624         (machopic_output_indirection): Likewise.
11625         (machopic_validate_stub_or_non_lazy_ptr): Update for ptr_name a
11626         string.  Don't expect stub names to be in the identifier hash table.
11627         Do call strip_name_encoding before looking up entry in ID hash table.
11628         * config/t-darwin (darwin.o): Add target.h to dependencies.
11629
11630         * gcc/config/rs6000/rs6000.c (print_operand): Use fputs instead
11631         of fprintf for register names.
11632
11633         * output.h (unlikely_section_label): Delete declaration.
11634         (unlikely_text_section_name): Likewise.
11635         * varasm.c (unlikely_section_label_printed): Make static.
11636         (unlikely_section_label): Likewise.
11637         (unlikely_text_section_name): Likewise.
11638         (assemble_start_function): Use reconcat.
11639
11640         * rtl.def (REG): Add comment to describe third field.
11641
11642 2004-09-10  Andrew Pinski  <apinski@apple.com>
11643
11644         * config/darwin.c (machopic_mcount_stub_name): Call
11645         machopic_indirection_name instead of making the string
11646         ourselves.
11647
11648 2004-09-10  Diego Novillo  <dnovillo@redhat.com>
11649
11650         Revert
11651
11652         2004-09-08  Jie Zhang  <zhangjie@magima.com.cn>
11653
11654             * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
11655             memory tag is call clobbered, so are its aliases.
11656             (group_aliases): When two memory tags being grouped, if one is
11657             call clobbered, so are the other and its aliases.
11658             (add_may_alias): Remove call-clobbering stuff.
11659             (replace_may_alias): Likewise.
11660             (merge_pointed_to_info): Merge pt_global_mem
11661
11662 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
11663
11664         * bb-reorder.c, c-common.c, c-incpath.c, c-typeck.c,
11665         genrecog.c, lambda-code.c, mips-tdump.c, mips-tfile.c,
11666         passes.c, tree-data-ref.c, tree-data-ref.h, tree-mudflap.c,
11667         tree-scalar-evolution.c, tree-ssa-copyrename.c,
11668         tree-ssa-live.c, tree-ssa-live.h: Fix comment typos.
11669
11670 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
11671
11672         * config/frv/frv.md (UNSPEC_MASACCS, UNSPEC_MDASACCS): New constants.
11673         (maddaccs, msubaccs, *maddacc): Turn operand 0 into a single ACC/ACCG
11674         pair.  Remove match_dup from inputs.  Remove masaccs handling.
11675         (mdaddaccs, mdsubaccs, *mdaddacc): Likewise a dual ACC/ACCG pair.
11676         (masaccs, mdasaccs): Turn into define_insns.
11677
11678 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
11679
11680         * tree-tailcall.c (process_assignment): Only do accumulator transforms
11681         for floating-point types if flag_unsafe_math_optimizations.
11682
11683 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
11684
11685         * config/darwin.c, config/alpha/alpha.h, config/arm/arm.c,
11686         config/arm/arm.h, config/arm/arm.md, config/arm/bpabi.h,
11687         config/arm/predicates.md, config/frv/frv.c, config/frv/frv.md,
11688         config/h8300/h8300.md, config/i386/gmm_malloc.h,
11689         config/ia64/ia64.md, config/ip2k/libgcc.S,
11690         config/mips/mips-ps-3d.md, config/mips/mips.c,
11691         config/rs6000/rs6000.c, config/s390/s390.c,
11692         config/sh/symbian.c: Fix comment typos.
11693
11694 2004-09-10  Andreas Krebbel  <krebbel1@de.ibm.com>
11695
11696         * config/s390/s390.c (s390_emit_prologue): Added missing
11697         "{}" brackets.
11698
11699 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
11700
11701         * doc/extend.texi, doc/invoke.texi, doc/passes.texi: Fix
11702         typos.  Follow spelling conventions.
11703
11704 2004-09-10  Joseph S. Myers  <jsm@polyomino.org.uk>
11705
11706         * toplev.c (warn_deprecated_use): Correct logic for saying "type"
11707         in diagnostic.  Don't dereference NULL TYPE_NAME.
11708
11709 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
11710
11711         * c-common.c, c-pch.c, defaults.h, lambda-code.c, passes.c,
11712         tree-data-ref.c, tree-flow.h, tree-ssa-operands.c,
11713         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
11714         value-prof.c: Fix comment typos.  Follow spelling conventions.
11715
11716 2004-09-10  Jan Hubicka  <jh@suse.cz>
11717
11718         * tree-ssa-dce.c (remove_dead_stmt): Update profile.
11719         * tree-split_edge.c (tree_split_edge): Likewise.
11720         (thread_jumps): Likewise.
11721
11722 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
11723
11724         * cgraphunit.c, predict.c, tree-ssa-loop-ivopts.c: Fix comment
11725         typos.
11726
11727 2004-09-10  Paolo Bonzini  <bonzini@gnu.org>
11728
11729         * cgraph.h (cgraph_dump_file): Do not declare.
11730         * cgraphunit.c (cgraph_dump_file): Declare as static.
11731         (init_cgraph): New.
11732         * toplev.c (cgraph_dump_file): Do not declare.
11733         (compile_file): Call init_cgraph.
11734         * tree-dump.c (dump_files): Add IPA dump file, remove
11735         XML dump of call graph.
11736         (get_dump_file_name): Support IPA dump file naming scheme.
11737         * tree.h (enum tree_dump_index): Add IPA dump file, remove
11738         XML dump of call graph.
11739         * doc/invoke.texi (Debugging Options): Document the new options.
11740
11741 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
11742
11743         * doc/extend.texi: Document the FR-V built-in functions.
11744
11745 2004-09-09  James E Wilson  <wilson@specifixinc.com>
11746
11747         * doc/sourcebuild.texi: Delete libbanshee reference.
11748
11749 2004-09-10  Kelley Cook  <kcook@gcc.gnu.org>
11750
11751         * Makefile.in (s-gtype): Add $(build_exeext) to gengtype command.
11752
11753 2004-09-09  James E Wilson  <wilson@specifixinc.com>
11754
11755         * c-typeck.c (convert_for_assignment): Check that rhs has VECTOR_TYPE
11756         before calling vector_types_convertible_p.
11757         (digest_init): Check that inside_init has VECTOR_TYPE before calling
11758         vector_types_convertible_p.  Don't give another error if
11759         convert_for_assignment returns error_mark_node.
11760
11761 2004-09-09  Roger Sayle  <roger@eyesopen.com>
11762
11763         PR middle-end/17055
11764         * fold-const.c (build_zero_vector): New function to construct a
11765         vector (either floating point or integer) of zeros.
11766         (fold_convert): Internally, enable conversions of integer zero
11767         to arbitrary vector types, using the new build_zero_vector.
11768
11769 2004-09-09  Roger Sayle  <roger@eyesopen.com>
11770
11771         * config/i386/i386.c (ix86_expand_ashlsi3_const): New function to
11772         expand a left shift by an immediate constant as either an ashl or
11773         a sequence of additions.
11774         (ix86_split_ashldi): Use new ix86_expand_ashlsi3_const function
11775         instead of calling gen_ashlsi3 with a constant directly.
11776
11777 2004-09-09  Roger Sayle  <roger@eyesopen.com>
11778
11779         * config/i386/i386.c (ix86_split_long_move): When optimizing for
11780         size, and the low and high parts of a DImode constant are equal,
11781         copy one register to another instead of loading the same immediate
11782         value twice.
11783
11784 2004-09-09  Richard Henderson  <rth@redhat.com>
11785
11786         PR middle-end/17367
11787         * function.c (assign_parm_setup_block): Only put PARALLELs into
11788         a register if use_register_for_decl.
11789
11790 2004-09-09  Eric Christopher  <echristo@redhat.com>
11791
11792         * ra-colorize.c (reset_lists): Move variable declaration inside
11793         ENABLE_CHECKING to avoid unused variable warnings when
11794         not --enable-checking.
11795         (check_colors): Ditto.
11796
11797 2004-09-09  Mike Stump  <mrs@apple.com>
11798
11799         * version.c (version_string): Bump to 4.0.0.
11800         * doc/include/gcc-common.texi (version-GCC): Likewise.
11801
11802 2004-09-10  Jakub Jelinek  <jakub@redhat.com>
11803
11804         * doc/extend.texi (nothrow attribute): The attribute is not
11805         implemented in 3.2 and earlier.
11806
11807 2004-09-09  Steve Ellcey  <sje@cup.hp.com>
11808
11809         * genrecog.c (compute_predicate_codes): Use op0_codes
11810         instead of codes.
11811
11812 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
11813
11814         * ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET
11815         implementation changes.
11816
11817 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
11818
11819         * combine.c (try_combine): When swapping i2 and i3, newi2pat may be
11820         a PARALLEL instead of a SET due to added clobbers.
11821
11822 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
11823
11824         * reload.c (find_reloads_address): Pass correct operand to
11825         maybe_memory_address_p.
11826
11827 2004-09-09  Daniel Berlin  <dberlin@dberlin.org>
11828
11829         * Makefile.in: Remove libbanshee, tree-alias-*.
11830         Remove tree-alias-common.h dependencies.
11831         * common.opt: Remove -ftree-points-to.
11832         * configure.ac: Remove libbanshee.
11833         * flags.h: Remove pta_type, flag_tree_points_to.
11834         * gengtype.c (open_base_files): Remove tree-alias-type.h.
11835         * opts.c (OPT_ftree_points_to): Remove.
11836         * toplev.c: Remove tree-alias-common.h, flag_tree_points_to.
11837         * tree-dfa.c: Remove tree-alias-common.h
11838         * tree-into-ssa.c: Ditto.
11839         * tree-outof-ssa.c: Ditto.
11840         * tree-ssa-copyrename.c: Ditto.
11841         * tree-ssa-live.c: Ditto.
11842         * tree-optimize.c: Ditto.
11843         * tree-ssa.c: Ditto.
11844         Remove pass_build_pta, pass_del_pta.
11845         * tree-pass.h: Ditto.
11846         * tree-ssa-alias.c: Remove tree-alias-common.h.
11847         (struct alias_stats_d): Remove pta_queries, pta_resolved.
11848         (pass_may_alias): Remove PROP_pta requirement.
11849         (may_alias_p): Remove pta_queries, pta_resolved, use of andersens.
11850         (get_tmt_for): Ditto.
11851         (dump_alias_stats): Ditto.
11852         * doc/passes.texi: Remove blurb about points-to analysis.
11853         * fortran/Make-lang.in: Remove tree-alias-*.o.
11854
11855 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
11856
11857         * genattrtab.c (write_insn_cases): New function, split out from
11858         write_attr_case.  Correctly handle define_peepholes when printing
11859         the instruction name.
11860         (write_attr_case, write_const_num_delay_slots): Use write_insn_cases.
11861
11862 2004-09-09  Hans-Peter Nilsson  <hp@axis.com>
11863
11864         PR target/17377
11865         * config/cris/cris-protos.h (cris_return_address_on_stack): Declare.
11866         * config/cris/cris.c (cris_return_address_on_stack): New function.
11867         * config/cris/cris.md ("return"): For location of return address,
11868         also check cris_return_address_on_stack.
11869
11870 2004-09-09  Diego Novillo  <dnovillo@redhat.com>
11871
11872         * tree-outof-ssa.c (coalesce_abnormal_edges): Fix typo in
11873         calling phi_ssa_name_p.
11874
11875 2004-09-09  Richard Henderson  <rth@redhat.com>
11876
11877         PR c/17322
11878         * c-typeck.c (valid_compound_expr_initializer): Use only
11879         initializer_constant_valid_p, and not TREE_CONSTANT.
11880         (digest_init): Likewise.
11881         (output_init_element): Likewise.
11882
11883 2004-09-09  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
11884
11885         * ra-build.c (copy_insn_p, remember_move, defuse_overlap_p_1,
11886         live_out_1, prune_hardregs_for_mode, init_one_web_common,
11887         reinit_one_web, add_subweb, add_subweb_2, init_web_parts,
11888         record_conflict, compare_and_free_webs, init_webs_defs_uses,
11889         parts_to_webs_1, parts_to_webs, reset_conflicts,
11890         check_conflict_numbers, remember_web_was_spilled, handle_asm_insn,
11891         ra_build_free): Use gcc_assert and gcc_unreachable instead of abort.
11892         * ra-colorize.c (push_list, put_web, reset_lists, put_web_at_end,
11893         put_move, remove_move, combine, select_spill, colorize_one_web,
11894         try_recolor_web, insert_coalesced_conflicts, check_colors,
11895         break_precolored_alias, restore_conflicts_from_coalesce,
11896         sort_and_combine_web_pairs, check_uncoalesced_moves): Likewise.
11897         * ra-rewrite.c (spill_coalescing, slots_overlap_p, emit_loads,
11898         reloads_to_loads, rewrite_program2, emit_colors): Likewise.
11899         * ra.c (first_hard_reg, create_insn_info, find_subweb, init_ra,
11900         check_df): Likewise.
11901         * real.c (do_add, do_multiply, do_divide, do_compare, do_fix_trunc,
11902         real_arithmetic, real_compare, real_exponent, real_ldexp,
11903         real_identical, real_to_integer, real_to_integer2, real_to_decimal,
11904         real_to_hexadecimal, real_from_integer, ten_to_ptwo, ten_to_mptwo,
11905         real_digit, real_nan, real_maxval, round_for_format, real_convert,
11906         real_to_target, real_from_target, real_hash, encode_ieee_single,
11907         encode_ieee_double, encode_ieee_extended, encode_ieee_quad,
11908         encode_vax_f, encode_vax_d, encode_vax_g, encode_i370_single,
11909         encode_i370_double, encode_c4x_single, encode_c4x_extended): Likewise.
11910         * recog.c (validate_change, validate_replace_rtx_1, asm_operand_ok,
11911         extract_insn, peep2_next_insn, peep2_reg_dead_p,
11912         peep2_find_free_register, peephole2_optimize, store_data_bypass_p,
11913         if_test_bypass_p): Likewise.
11914         * reg-stack.c (record_label_references, get_asm_operand_n_inputs,
11915         stack_result, remove_regno_note, get_hard_regnum, emit_pop_insn,
11916         emit_swap_insn, swap_to_top, move_for_stack_reg,
11917         subst_stack_regs_pat, subst_asm_stack_regs, change_stack,
11918         compensate_edge, convert_regs_1): Likewise.
11919         * regclass.c (init_reg_sets, init_reg_sets_1,
11920         memory_move_secondary_cost): Likewise.
11921         * regrename.c (note_sets, clear_dead_regs, scan_rtx_reg, scan_rtx):
11922         Likewise.
11923         * reload.c (push_secondary_reload, find_valid_class, push_reload,
11924         operands_match_p, decompose, immune_p, find_reloads,
11925         find_reloads_toplev, find_reloads_address_1, subst_reloads,
11926         copy_replacements, refers_to_regno_for_reload_p,
11927         reg_overlap_mentioned_for_reload_p): Likewise.
11928         * reload1.c (compute_use_by_pseudos, replace_pseudos_in, reload,
11929         count_pseudo, find_reg, eliminate_regs, eliminate_regs_in_insn,
11930         verify_initial_elim_offsets, finish_spills, clear_reload_reg_in_use,
11931         reload_reg_free_p, reload_reg_reaches_end_p, reloads_conflict,
11932         choose_reload_regs, merge_assigned_reloads, emit_input_reload_insns,
11933         do_output_reload, fixup_abnormal_edges): Likewise.
11934         * reorg.c (stop_search_p, emit_delay_sequence, get_jump_flags,
11935         fill_slots_from_thread, relax_delay_slots): Likewise.
11936         * resource.c (mark_referenced_resources, mark_set_resources):
11937         Likewise.
11938         * rtl.c (copy_rtx, rtx_equal_p): Likewise.
11939         * rtlanal.c (insn_dependent_p, reg_overlap_mentioned_p,
11940         dead_or_set_p, find_reg_fusage, remove_note, replace_rtx,
11941         subreg_lsb_1, subreg_regno_offset, subreg_offset_representable_p,
11942         find_first_parameter_load, can_hoist_insn_p, hoist_update_store,
11943         hoist_insn_after, hoist_insn_to_edge, nonzero_bits1): Likewise.
11944         * rtlhooks.c (gen_lowpart_general): Likewise.
11945         * sbitmap.c (sbitmap_difference): Likewise.
11946         * sched-deps.c (add_dependence, sched_analyze_1, sched_analyze_2,
11947         sched_analyze, add_forward_dependence): Likewise.
11948         * sched-ebb.c (fix_basic_block_boundaries, schedule_ebb): Likewise.
11949         * sched-rgn.c (debug_regions, compute_trg_info, schedule_region,
11950         schedule_insns): Likewise.
11951         * sched-vis.c (print_pattern): Likewise.
11952         * sdbout.c (sdbout_symbol, sdbout_toplevel_data): Likewise.
11953         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
11954         simplify_const_relational_operation, simplify_ternary_operation,
11955         simplify_immed_subreg, simplify_subreg, simplify_gen_subreg):
11956         Likewise.
11957         * sreal.c (copy, sreal_sub, sreal_div): Likewise.
11958         * stmt.c (force_label_rtx, expand_goto, expand_asm_operands,
11959         resolve_operand_name_1, expand_return, expand_decl,
11960         expand_anon_union_decl, emit_case_bit_tests, expand_case): Likewise.
11961         * stor-layout.c (put_pending_size, smallest_mode_for_size,
11962         int_mode_for_mode, layout_decl, finish_builtin_struct, layout_type,
11963         set_sizetype, get_mode_bounds): Likewise.
11964
11965 2004-09-09  Zack Weinberg  <zack@codesourcery.com>
11966
11967         * defaults.h (MULTIPLE_SYMBOL_SPACES): Provide default.
11968         * config/arm/pecoff.h, config/i386/beos-elf.h
11969         * config/i386/cygming.h, config/i386/i386-interix.h:
11970         Define MULTIPLE_SYMBOL_SPACES to 1, not nothing.  Remove
11971         comment cloned from manual.
11972         * doc/tm.texi: Update description of MULTIPLE_SYMBOL_SPACES.
11973
11974 2004-09-09  Frank Ch. Eigler  <fche@redhat.com>
11975
11976         * builtins.c (build_va_arg_indirect_ref): New function.
11977         (std_gimplify_va_arg_expr): Call it instead of mudflap check and
11978         build_fold_indirect_ref.
11979         * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
11980         * config/ia64/ia64.c (ia64_gimplify_va_arg): Ditto.
11981         * tree.h: Declare new function.
11982
11983 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
11984
11985         * cgraphunit.c (cgraph_mark_functions_to_output): Renable node
11986         dumping for development builds.
11987         * emit-rtl.c (verify_rtx_sharing): Give verbose failure for
11988         development builds only.
11989         * genattrtab.c (write_eligible_delay): Fix typo in previous
11990         commit.
11991         * tree.c (iterative_hash_expr): Replace gcc_unreachable with
11992         gcc_assert.
11993
11994 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
11995
11996         * gcse.c (INSN_CUID, insert_set_in_table, find_avail_set,
11997         cprop_insn, do_local_cprop, local_cprop_pass, find_bypass_set,
11998         process_insert_insn, insert_insn_end_bb, pre_insert_copy_insn,
11999         hoist_code, extract_mentioned_regs_helper, compute_store_table,
12000         insert_store): Use gcc_assert and gcc_unreachable.
12001         * ggc-common.c (ggc_splay_alloc, ggc_splay_dont_free,
12002         gt_pch_note_object, gt_pch_note_reorder, relocate_ptrs,
12003         ggc_record_overhead): Likewise.
12004         * ggc-page.c (alloc_page, free_page, ggc_set_mark, ggc_marked_p,
12005         init_ggc, ggc_push_context, ggc_recalculate_in_use_p,
12006         ggc_pop_context, clear_marks, validate_free_objects,
12007         ggc_pch_read): Likewise.
12008         * ggc-zone.c (ggc_allocated_p, free_chunk, ggc_set_mark,
12009         ggc_marked_p, ggc_get_size, init_ggc, destroy_ggc_zone,
12010         ggc_push_context, check_cookies, ggc_collect,
12011         ggc_print_statistics): Likewise.
12012         * gimple-low.c (lower_function_body, lower_stmt,
12013         lower_bind_expr): Likewise.
12014         * gimplify.c (gimple_tree_eq, push_gimplify_context,
12015         pop_gimplify_context, gimple_pop_condition, create_tmp_var,
12016         declare_tmp_vars, gimple_add_tmp_var, annotate_all_with_locus,
12017         mostly_copy_tree_r, gimplify_return_expr, gimplify_switch_expr,
12018         gimplify_case_label_expr, gimplify_exit_block_expr,
12019         canonicalize_component_ref, gimplify_compound_lval,
12020         gimplify_self_mod_expr, gimplify_call_expr,
12021         gimplify_init_ctor_eval, gimplify_init_constructor,
12022         gimplify_modify_expr, gimplify_save_expr, gimplify_target_expr,
12023         gimplify_expr, check_pointer_types_r,
12024         force_gimple_operand): Likewise.
12025         * global.c (global_alloc, build_insn_chain): Likewise.
12026         * graph.c (clean_graph_dump_file,
12027         finish_graph_dump_file): Likewise.
12028         gcov-io.c (gcov_open): Use GCOV_CHECK.
12029
12030 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
12031
12032         * config/frv/frv.c (acc_operand, accg_operand): Use REGNO.
12033
12034 2004-09-09  Jan Hubicka  <jh@suse.cz>
12035
12036         middle-end/17128
12037         * tree-inline.c (expand_call_inline): Make overactive sanity check
12038         happy.
12039
12040 2004-09-09  Jan Hubicka  <jh@suse.cz>
12041
12042         * tree-ssa-loop-ivopts.c (peel_address): Fix abort on
12043         VIEW_CONVERT_EXPR.
12044
12045 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
12046
12047         * Makefile.in (gengtype): Use $(BUILD_ERRORS).
12048         (gengtype.o): Depend on errors.h.
12049         * genattrtab.c (strcmp_check): Use gcc_assert and gcc_unreachable.
12050         (attr_rtx_1, attr_printf, attr_copy_rtx, evaluate_eq_attr,
12051         attr_alt_subset_p, attr_alt_subset_of_compl_p,
12052         attr_alt_intersection, attr_alt_union, optimize_attrs, gen_insn,
12053         write_test_expr, write_attr_value, write_eligible_delay,
12054         make_internal_attr, make_numeric_value): Likewise.
12055         * genautomata.c (regexp_name, get_str_vect,
12056         gen_presence_absence_set, automaton_decl_hash,
12057         automaton_decl_eq_p, insn_decl_hash, insn_decl_eq_p, decl_hash,
12058         decl_eq_p, process_regexp, loop_in_regexp, check_loops_in_regexps,
12059         process_regexp_cycles, reserv_sets_cmp, set_unit_reserv,
12060         test_unit_reserv, it_is_empty_reserv_sets,
12061         reserv_sets_are_intersected, reserv_sets_shift, reserv_sets_or,
12062         reserv_sets_and, output_cycle_reservs, get_free_state,
12063         intersected_state_reservs_p, states_union, remove_arc,
12064         copy_insn_regexp, transform_1, transform_2, transform_3,
12065         regexp_transform_func, store_alt_unit_usage,
12066         check_regexp_units_distribution, process_seq_for_forming_states,
12067         process_alts_for_forming_states, make_automaton,
12068         form_arcs_marked_by_insn, create_composed_state,
12069         set_out_arc_insns_equiv_num, partition_equiv_class,
12070         process_insn_equiv_class, set_insn_equiv_classes,
12071         units_to_automata_heuristic_distr, form_regexp,
12072         longest_path_length, output_dfa_max_issue_rate, add_vect,
12073         out_state_arcs_num, add_vect_el, output_trans_table,
12074         output_state_alts_table, output_dead_lock_vect,
12075         output_max_insn_queue_index_def,
12076         output_min_insn_conflict_delay_func,
12077         output_internal_insn_latency_func, output_print_reservation_func,
12078         output_cpu_unit_reservation_p, output_state_arcs,
12079         make_insn_alts_attr, make_internal_dfa_insn_code_attr,
12080         make_default_insn_latency_attr,
12081         form_important_insn_automata_lists): Likewise.
12082         * genemit.c (gen_exp, output_add_clobbers,
12083         output_added_clobbers_hard_reg_p): Likewise.
12084         * genextract.c (print_path, main): Likewise.
12085         * genflags.c (gen_macro): Likewise.
12086         * gengenrtl.c: Include errors.h
12087         (type_from_format, accessor_from_format): Likewise.
12088         * gengtype.c (get_file_basename, output_mangled_typename,
12089         walk_type, write_types_process_field,
12090         write_types_local_process_field): Likewise.
12091         * genmodes.c (complete_mode): Likewise.
12092         * genopinit.c (gen_insn): Likewise.
12093         * genoutput.c (output_insn_data, check_constraint_len,
12094         constraint_len): Likewise.
12095         * genpreds.c (add_mode_tests):Likewise.
12096         * gen-protos.c (add_hash): Likewise.
12097         * genrecog.c (find_operand, find_matching_operand,
12098         validate_pattern, add_to_sequence, maybe_both_true,
12099         nodes_identical_1, merge_trees, write_switch, write_cond,
12100         write_action, is_unconditional, make_insn_sequence,
12101         debug_decision_2): Likewise.
12102         * gensupport.c (is_predicable, collect_insn_data,
12103         alter_predicate_for_insn, maybe_eval_c_test): Likewise.
12104
12105 2004-09-09  Jan Hubicka  <jh@suse.cz>
12106
12107         * basic-block.h (guess_outgoing_edge_probabilities): Declare.
12108         * cfgbuild.c (compute_outgoing_frequencies): When probability is
12109         missing, guess it.
12110         (find_many_sub_basic_blocks): Do update profile only when it is
12111         present.
12112         * predict.c (set_even_probabilities): Break out from ...
12113         (combine_predictions_for_insn): ... here; deal with
12114         !can_predict_insn_p insns.
12115         (combine_predictions_for_bb): Use set_even_probabilities.
12116         (bb_estimate_probability_locally): Break out from ....
12117         (estimate_probability): ... here.
12118         (guess_outgoing_edge_probabilities): New entry point.
12119
12120 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
12121
12122         * gcc.c (add_sysrooted_prefix, execute, do_self_spec, do_spec_1,
12123         handle_braces, process_brace_body, main, used_arg,
12124         set_multilib_dir, print_multilib_info): Use fatal, not abort.
12125
12126         * tree-nested.c (create_tmp_var_for): Correct missinverted assert.
12127
12128         * tree-outof-ssa.c (free_temp_expr_table): Add missed assert.
12129         * tree-ssa-ccp.c (set_lattice_value): Correct missapplied de
12130         Morgan's theorem in last checkin.
12131
12132 2004-09-09  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
12133             Nathan Sidwell  <nathan@codesourcery.com>
12134
12135         * targhooks.c (default_unwind_emit, default_scalar_mode_supported_p):
12136         Use gcc_assert, gcc_unreachable & internal_error instead of abort.
12137         * timevar.c (timevar_push, timevar_pop, timevar_start,
12138         timevar_stop): Likewise.
12139         * toplev.c (default_pch_valid_p): Likewise.
12140         * tracer.c (tail_duplicate): Likewise.
12141         * tree-alias-common.c (get_alias_var_decl,
12142         get_values_from_constructor, create_alias_var, delete_alias_vars,
12143         empty_points_to_set, same_points_to_set, ptr_may_alias_var):
12144         Likewise.
12145         * tree.c (tree_size, make_node_stat, copy_node_stat,
12146         build_int_cst_wide, integer_all_onesp, list_length, chainon,
12147         tree_node_structure, type_contains_placeholder_p, substitute_in_expr,
12148         substitute_placeholder_in_expr, tabilize_reference_1, build0_stat,
12149         build1_stat, build2_stat, build3_stat, build4_stat, is_attribute_p,
12150         lookup_attribute, type_hash_canon, host_integerp, iterative_hash_expr,
12151         build_method_type_directly, decl_type_context, get_callee_fndecl,
12152         get_set_constructor_bits, build_vector_type_for_mode, int_cst_value,
12153         tree_fold_gcd): Likewise.
12154         * tree-cfg.c (create_bb, make_ctrl_stmt_edges, make_exit_edges,
12155         make_cond_expr_edges, group_case_labels, tree_merge_blocks,
12156         cleanup_control_expr_graph, find_taken_edge,
12157         find_taken_edge_switch_expr, phi_alternatives_equal,
12158         is_ctrl_altering_stmt, disband_implicit_edges, set_bb_for_stmt,
12159         stmt_for_bsi, tree_find_edge_insert_loc, bsi_insert_on_edge_immediate,
12160         tree_split_edge, tree_verify_flow_info, thread_jumps,
12161         tree_redirect_edge_and_branch, tree_flow_call_edges_add): Likewise.
12162         * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
12163         chrec_fold_multiply_poly_poly): Likewise.
12164         * tree-complex.c (extract_component, expand_complex_division,
12165         expand_complex_comparison, expand_complex_operations_1,
12166         build_replicated_const, expand_vector_operations_1): Likewise.
12167         * tree-data-ref.c (tree_fold_bezout, build_classic_dist_vector,
12168         build_classic_dir_vector): Likewise.
12169         * tree-dfa.c (compute_immediate_uses_for_phi,
12170         compute_immediate_uses_for_stmt, create_var_ann, create_stmt_ann,
12171         create_tree_ann, collect_dfa_stats, get_virtual_var): Likewise.
12172         * tree-dump.c (dequeue_and_dump): Likewise.
12173         * tree-eh.c (record_stmt_eh_region, add_stmt_to_eh_region,
12174         record_in_finally_tree, replace_goto_queue_1,
12175         maybe_record_in_goto_queue, verify_norecord_switch_expr,
12176         do_return_redirection): Likewise.
12177         * tree-if-conv.c (tree_if_convert_stmt, tree_if_convert_cond_expr,
12178         add_to_dst_predicate_list, find_phi_replacement_condition,
12179         replace_phi_with_cond_modify_expr, get_loop_body_in_if_conv_order):
12180         Likewise.
12181         * tree-inline.c (remap_decl, remap_type, remap_decls, copy_body_r,
12182         initialize_inlined_parameters, declare_return_variable,
12183         estimate_num_insns_1, expand_call_inline, expand_calls_inline,
12184         optimize_inline_calls, copy_tree_r): Likewise.
12185         * tree-into-ssa.c (rewrite_initialize_block_local_data, rewrite_stmt,
12186         ssa_rewrite_stmt, rewrite_into_ssa): Likewise.
12187         * tree-iterator.c (alloc_stmt_list, tsi_link_before, tsi_link_after,
12188         tsi_split_statement_list_after, tsi_split_statement_list_before):
12189         Likewise.
12190         * tree-mudflap.c (mf_varname_tree): Likewise.
12191         * tree-nested.c (create_tmp_var_for, lookup_field_for_decl,
12192         lookup_tramp_for_decl, convert_all_function_calls): Likewise.
12193         * tree-optimize.c (tree_rest_of_compilation): Likewise.
12194         * tree-outof-ssa.c (create_temp, eliminate_build, eliminate_phi,
12195         coalesce_abnormal_edges, coalesce_ssa_name, eliminate_virtual_phis,
12196         free_temp_expr_table, add_dependance, finish_expr, rewrite_trees):
12197         Likewise.
12198         * tree-phinodes.c (resize_phi_node, add_phi_arg,
12199         remove_all_phi_nodes_for): Likewise.
12200         * tree-pretty-print.c (op_prio, print_call_name): Likewise.
12201         * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
12202         tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Likewise.
12203         * tree-sra.c (type_can_instantiate_all_elements, sra_hash_tree,
12204         sra_elt_eq, sra_walk_expr, instantiate_missing_elements,
12205         generate_one_element_ref, generate_element_copy,
12206         generate_element_zero, scalarize_copy, scalarize_init,
12207         scalarize_ldst): Likewise.
12208         * tree-ssa-alias.c (delete_alias_info, group_aliases, may_alias_p,
12209         add_may_alias, add_pointed_to_expr, add_pointed_to_var,
12210         collect_points_to_info_r, get_tmt_for, get_ptr_info): Likewise.
12211         * tree-ssa.c (walk_use_def_chains, check_phi_redundancy): Likewise.
12212         * tree-ssa-ccp.c (dump_lattice_value, get_default_value, get_value,
12213         set_lattice_value, likely_value, ccp_visit_phi_node, visit_assignment,
12214         widen_bitfield, ccp_fold_builtin): Likewise.
12215         * tree-ssa-copy.c (may_propagate_copy, merge_alias_info,
12216         replace_exp_1, propagate_tree_value): Likewise.
12217         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
12218         * tree-ssa-dce.c (set_control_dependence_map_bit,
12219         find_control_dependence, find_pdom, mark_operand_necessary,
12220         mark_stmt_if_obviously_necessary,
12221         mark_control_dependent_edges_necessary, remove_dead_stmt): Likewise.
12222         * tree-ssa-dom.c (dom_opt_initialize_block_local_data,
12223         simplify_switch_and_lookup_avail_expr, cprop_into_successor_phis,
12224         eliminate_redundant_computations, avail_expr_eq): Likewise.
12225         * tree-ssa-dse.c (fix_stmt_v_may_defs): Likewise.
12226         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
12227         duplicate_blocks): Likewise.
12228         * tree-ssa-loop-im.c (for_each_index, set_level,
12229         is_call_clobbered_ref): Likewise.
12230         * tree-ssa-loop-ivopts.c (dump_use, divide, stmt_after_ip_normal_pos,
12231         stmt_after_increment, set_iv, contains_abnormal_ssa_name_p,
12232         find_interesting_uses_outer_or_nonlin, add_derived_ivs_candidates,
12233         peel_address, ptr_difference_cost, may_replace_final_value,
12234         determine_use_iv_cost, rewrite_use_nonlinear_expr, rewrite_use_outer,
12235         rewrite_use, rewrite_uses): Likewise.
12236         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
12237         check_loop_closed_ssa_use): Likewise.
12238         * tree-ssanames.c (make_ssa_name): Likewise.
12239         * tree-ssa-operands.c (finalize_ssa_defs, finalize_ssa_uses,
12240         finalize_ssa_v_must_defs, finalize_ssa_stmt_operands,
12241         get_stmt_operands, get_expr_operands, get_asm_expr_operands,
12242         get_indirect_ref_operands, add_stmt_operand): Likewise.
12243         * tree-ssa-pre.c (value_exists_in_set_bitmap,
12244         value_remove_from_set_bitmap, bitmap_insert_into_set, insert_into_set,
12245         phi_translate, valid_in_set, compute_antic,
12246         find_or_generate_expression, create_expression_by_pieces, insert_aux,
12247         create_value_expr_from, eliminate): Likewise.
12248         * tree-ssa-propagate.c (cfg_blocks_get): Likewise.
12249         * tree-ssa-threadupdate.c (remove_last_stmt_and_useless_edges):
12250         Likewise.
12251         * tree-tailcall.c (independent_of_stmt_p, adjust_return_value,
12252         eliminate_tail_call): Likewise.
12253         * tree-vectorizer.c (vect_create_index_for_array_ref,
12254         vect_align_data_ref, vect_create_data_ref,
12255         vect_create_destination_var, vect_get_vec_def_for_operand,
12256         vect_finish_stmt_generation, vect_transform_stmt,
12257         vect_transform_loop_bound, vect_transform_loop,
12258         vect_analyze_operations): Likewise.
12259         * tree-vn.c (vn_compute, set_value_handle, get_value_handle):
12260         Likewise.
12261         * tree-flow-inline.h (var_ann, get_var_ann, get_def_from_ptr,
12262         get_use_op_ptr, immediate_use, phi_ssa_name_p, bsi_start,
12263         bsi_after_labels, bsi_last): Likewise.
12264         * tree-ssa-live.c (var_union, change_partition_var,
12265         create_ssa_var_map, calculate_live_on_entry, root_var_init,
12266         type_var_init, add_coalesce, sort_coalesce_list, pop_best_coalesce):
12267         Likewise.
12268         * tree-ssa-live.h (partition_is_global, live_entry_blocks,
12269         tpa_find_tree): Likewise.
12270         (register_ssa_partition_check): Declare.
12271         (register_ssa_partition): use it.
12272         * tree-ssa-live.c: Include errors.h.
12273         (register_ssa_partition_check): New.
12274         * tree-ssa-operands.c: Include errors.h.
12275         * Makefile.in (tree-ssa-operands.o): Depend on errors.h.
12276
12277 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
12278             Catherine Moore  <clm@redhat.com>
12279
12280         * config/frv/frv-protos.h (FRV_CPU_FR550, FRV_CPU_FR450)
12281         (FRV_CPU_FR405): New processor enums.
12282         (frv_issue_rate, frv_acc_group): Declare.
12283         * config/frv/frv.h (CPP_SPEC, CPP_FRV_SPEC, CPP_FR500_SPEC): Delete.
12284         (CPP_FR400_SPEC, CPP_SIMPLE_SPEC): Delete.
12285         (MASK_DEFAULT_FR550, MASK_DEFAULT_FR450): New macros.
12286         (SUBTARGET_EXTRA_SPECS, EXTRA_SPECS, CPP_CPU_DEFAULT_SPEC): Delete.
12287         (TARGET_CPU_CPP_BUILTINS): Define the macros that were previously
12288         handled by CPP_SPEC.
12289         (MASK_LONG_CALLS, TARGET_LONG_CALLS): New macros.
12290         (MASK_ALIGN_LABELS, TARGET_ALIGN_LABELS): New macros.
12291         (ACC_MASK): New macro.
12292         (TARGET_MEDIA_REV2): Include FRV_CPU_{FR405,FR450,FR550}.
12293         (TARGET_MEDIA_FR450): New macro.
12294         (TARGET_FR500_FR550_BUILTINS, TARGET_FR405_BUILTINS): New macros.
12295         (TARGET_SWITCHES): Add -m{no-,}align-labels and -m{no-,}long-calls.
12296         (LABEL_ALIGN_AFTER_BARRIER): Define.
12297         (ACC_LAST, ACCG_LAST): Add four new accumulator registers.
12298         (IACC_FIRST, IACC_LAST): New pair of SPRs.
12299         (ACCG_FIRST, AP_FIRST, SPR_FIRST, SPR_LAST): Adjust accordingly.
12300         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
12301         (REGISTER_NAMES): Add entries for new registers.
12302         (REG_CLASS_CONTENTS): Update for new register ranges.
12303         (EXTRA_CONSTRAINT_FOR_S): Redefine in terms of call_operand.
12304         (ISSUE_RATE, CLEAR_VLIW_START, SET_VLIW_START): Delete.
12305         (PACKING_FLAG_USED_P): Delete.
12306         (FRV_BUILTIN_MQLCLRHS, FRV_BUILTIN_MQLMTHS, FRV_BUILTIN_MQSLLHI)
12307         (FRV_BUILTIN_MQSRAHI, FRV_BUILTIN_SMUL, FRV_BUILTIN_UMUL)
12308         (FRV_BUILTIN_PREFETCH0, FRV_BUILTIN_PREFETCH, FRV_BUILTIN_SMASS)
12309         (FRV_BUILTIN_SMSSS, FRV_BUILTIN_SMU, FRV_BUILTIN_SCUTSS)
12310         (FRV_BUILTIN_ADDSS, FRV_BUILTIN_SUBSS, FRV_BUILTIN_SLASS)
12311         (FRV_BUILTIN_IACCread{l,ll}, FRV_BUILTIN_IACCset{ll,l})
12312         (FRV_BUILTIN_SCAN): New members of frv_builtin_enum.
12313         (FRV_BUILTIN_FIRST_NONMEDIA): New macro.
12314         (CPU_UNITS_QUERY): Define to 1.
12315         * config/frv/frv.c: Include gt-frv.h
12316         (NUM_NOP_PATTERNS, NTH_UNIT, UNIT_NUMBER, PACKING_FLAG_P): New macros.
12317         (SET_PACKING_FLAG, CLEAR_PACKING_FLAG, FOR_EACH_REGNO): New macros.
12318         (frv_insn_group): New enumeration.
12319         (frv_unit_names, frv_unit_groups, frv_unit_codes): New variables.
12320         (frv_type_to_unit, frv_nops, frv_num_nops): New variables.
12321         (REGSTATE_DEAD, REGSTATE_LIVE, REGSTATE_UNUSED, REGSTATE_MASK)
12322         (REGSTATE_CONDJUMP): Delete.  Shuffle other numbers to cover the
12323         gap left by REGSTATE_LIVE.
12324         (regstate_t): New typedef.
12325         (TARGET_MACHINE_DEPENDENT_REORG): Define.
12326         (frv_default_flags_for_cpu): Handle FRV_CPU_{FR550,FR450,FR405}.
12327         (frv_override_options): Check for -mcpu={fr550,fr450,fr405}.
12328         Initialize frv_unit_codes[] and frv_type_to_unit[].
12329         (frv_conditional_register_usage): Remove redundant fixing of
12330         accumulator registers.
12331         (frv_insn_packing_flag): Update specification.
12332         (frv_function_prologue): Don't set frv_insn_packing_flag here.
12333         Zero out frv_nops[].
12334         (frv_expand_epilogue): Remove comments about the no-longer-present
12335         SIBCALL_P argument.
12336         (frv_asm_output_mi_thunk): Check frv_issue_rate() rather than
12337         PACKING_FLAG_USED_P() when deciding whether to pack instructions.
12338         (frv_asm_output_opcode, frv_final_prescan_insn): Simplify in light
12339         of the new meaning of frv_insn_packing_flag.  Emit an mnop.p if
12340         packing is disabled and if INSN can only issue to M1.
12341         (call_operand): Check TARGET_LONG_CALLS.
12342         (acc_operand, even_acc_operand, quad_acc_operand)
12343         (accg_operand): Simplify.  Don't accept pseudo registers.
12344         (output_move_single): Handle SPR<-zero moves.
12345         (frv_issue_rate): Make non-static.  Handle FRV_CPU_{FR550,FR450,FR405}.
12346         (frv_registers_update, frv_registers_used_p): Delete.
12347         (frv_registers_set_p): Delete.
12348         (frv_acc_group_1, frv_acc_group, frv_insn_unit): New functions.
12349         (frv_issues_to_branch_unit_p): New function.
12350         (frv_packet): New structure.
12351         (frv_cond_flags, frv_regstate_conflict_p): New functions.
12352         (frv_registers_conflict_p_1, frv_registers_conflict_p): New functions.
12353         (frv_registers_update_1, frv_registers_update): New functions.
12354         (frv_start_packet, frv_start_packet_block, frv_finish_packet)
12355         (frv_pack_insn_p, frv_add_insn_to_packet, frv_insert_nop_in_packet)
12356         (frv_for_each_packet, frv_sort_insn_group_1, frv_compare_insns)
12357         (frv_sort_insn_group, frv_reorder_packet): New functions.
12358         (frv_pack_insns): Use frv_reorder_packet.
12359         (frv_packet_address): New variable.
12360         (frv_fill_unused_units, frv_align_label, frv_reorg_packet)
12361         (frv_register_nop, frv_reorg): New functions.
12362         (bdesc_1arg): Add __SCUTSS.
12363         (bdesc_2arg): Add __MQLCLRHS, __MQLMTHS, __SMUL, __UMUL, __ADDSS,
12364         __SUBSS, __SLASS and __SCAN.
12365         (bdesc_2argimm): Add __MQSLLHI and __MQSRAHI.
12366         (bdesc_int_void2arg, bdesc_prefetches): New arrays.
12367         (frv_init_builtins): Register the above builtins.
12368         (frv_int_to_acc): Use ACC_MASK to check for valid accumulator
12369         registers.  Turn the referenced accumulators into global registers.
12370         (frv_read_iacc_argument): New function.
12371         (frv_expand_int_void2arg, frv_expand_prefetches): New functions.
12372         (frv_split_iacc_move): New function.
12373         (frv_expand_builtin): Handle the new builtins.
12374         * config/frv/frv.md: Replace old schedulers with new order-independent
12375         ones.  Add schedulers for the FR405, FR450 and FR550.  Describe new
12376         packing algorithm.
12377         (cpu): Add fr550, fr450 and fr405.
12378         (type): Add macc, scan, cut, fnop, fscmp, fdcmp, mnop, mqlimh and
12379         mqshift.  Replace fmas with fsmadd and fmad with fdmadd.  Delete m7.
12380         (*muladd[sd]f4, *mulsub[sd]f4): Fix types.
12381         (*cmp[sd]f_cc_fp): Use new f[sd]cmp types.
12382         (fnop, mnop): New patterns.
12383         (UNSPEC_MQLCLRHS, UNSPEC_MQLMTHS, UNSPEC_MQSLLHI, UNSPEC_MQSRAHI):
12384         New constants.
12385         (mexpdhw, *cond_exec_mexpdhw): Fix destination operands.
12386         (mclracca8): Use ACC_MASK to determine the upper set of accumulator
12387         registers.
12388         (mqlclrhs, mqlmths, mqsllhi, mqsrahi): New patterns.
12389         (UNSPEC_SMUL, UNSPEC_UMUL, UNSPEC_SMU, UNSPEC_ADDSS, UNSPEC_SUBSS)
12390         (UNSPEC_SLASS, UNSPEC_SCAN, UNSPEC_INTSS, UNSPEC_SCUTSS)
12391         (UNSPEC_PREFETCH0, UNSPEC_PREFETCH, UNSPEC_IACCreadll)
12392         (UNSPEC_IACCreadl, UNSPEC_IACCsetll, UNSPEC_IACCsetl, UNSPEC_SMASS)
12393         (UNSPEC_SMSSS, UNSPEC_IMUL, IACC0_REG): New constants.
12394         (smul, umul, smass, smsss, smu, addss, subss, slass, scan, scutss)
12395         (frv_prefetch0, frv_prefetch): New patterns.
12396         * config/frv/t-frv (MULTILIB_OPTIONS): Remove -mcpu=frv and
12397         -mcpu=simple.  Add -mcpu=fr550.
12398         (MULTILIB_DIRNAMES): Update accordingly.
12399         (MULTILIB_MATCHES): Use the fr400 multilibs for -mcpu=fr405 and
12400         -mcpu=fr450.
12401         * doc/invoke.texi: Document the new -mcpu={fr550,fr450,fr405},
12402         -mlong-calls and -malign-labels options for FR-V.
12403
12404 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
12405
12406         PR c/8420
12407         * c-tree.h (struct c_declspecs): New.
12408         (struct c_declarator, struct c_type_name, struct c_parm): Update
12409         element types.
12410         (build_array_declarator, grokfield, shadow_tag, shadow_tag_warned,
12411         start_function, start_decl, build_c_parm,
12412         make_pointer_declarator): Update prototypes.
12413         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
12414         declspecs_add_scspec, declspecs_add_attrs): New.
12415         (split_specs_attrs): Remove.
12416         * c-parse.in (%union): Add dsptype.
12417         (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
12418         declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
12419         declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
12420         declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
12421         declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
12422         declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
12423         declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
12424         declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea, declspecs_ts,
12425         declspecs_nots, declspecs_ts_nosa, declspecs_nots_nosa,
12426         declspecs_nosc_ts, declspecs_nosc_nots, declspecs_nosc, declspecs,
12427         maybe_type_quals_attrs): Change to dsptype.
12428         (struct c_declspec_stack): New.
12429         (current_declspecs, declspec_stack): Change type.
12430         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): Update to new
12431         structures.
12432         (extdefs): Likewise.
12433         (setspecs): Likewise.
12434         (fndef): Use current_declspecs for empty declspecs list.
12435         (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
12436         declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
12437         declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
12438         declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
12439         declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
12440         declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
12441         declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
12442         declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea): Update to new
12443         structures and helper functions.  Update comments.
12444         (typespec_nonattr): Correct comment.
12445         (maybe_type_quals_attrs, typename): Update to new structures.
12446         * c-decl.c (grokdeclarator, build_array_declarator, grokfield,
12447         shadow_tag, shadow_tag_warned, start_function, start_decl,
12448         build_c_parm, make_pointer_declarator,
12449         set_array_declarator_inner, groktypename): Update to new
12450         structures.
12451         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
12452         declspecs_add_scspec, declspecs_add_attrs): New.
12453         (split_specs_attrs): Remove.
12454         (shadow_tag_warned): Make warning for useless type names a
12455         pedwarn.  Give hard error for long, short, signed, unsigned or
12456         _Complex used with struct, union or enum in empty declaration.
12457         Make found_tag a bool.
12458         (grokdeclarator): Remove checks now done at parse time.
12459
12460 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
12461
12462         * c-tree.h (enum c_declarator_kind, struct c_arg_info, struct
12463         c_declarator, struct c_type_name, struct c_parm): New.
12464         (build_array_declarator, set_array_declarator_inner,
12465         get_parm_info, grokfield, groktypename, grokparm, push_parm_decl,
12466         start_function, start_decl, build_c_parm, build_attrs_declarator,
12467         build_function_declarator, make_pointer_declarator, c_cast_expr,
12468         store_parm_decls_newstyle, c_expr_sizeof_type): Update prototypes.
12469         (build_id_declarator): New.
12470         * c-typeck.c (c_cast_expr, c_expr_sizeof_type): Update to new
12471         structures.
12472         * c-decl.c (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES,
12473         ARG_INFO_OTHERS): Remove.
12474         (build_id_declarator): New.
12475         (build_array_declarator, set_array_declarator_inner, groktypename,
12476         start_decl, grokparm, push_parm_decl, grokparms, get_parm_info,
12477         grokfield, start_function, store_parm_decls_newstyle,
12478         store_parm_decls_oldstyle, store_parm_decls,
12479         build_c_parm, build_attrs_declarator, build_function_declarator,
12480         make_pointer_declarator, grokdeclarator): Update to new
12481         structures.
12482         * c-parse.in (%union): Add arginfotype, dtrtype, typenametype and
12483         parmtype.
12484         (declarator, notype_declarator, after_type_declarator,
12485         parm_declarator, parm_declarator_starttypename,
12486         parm_declarator_nostarttypename, array_declarator, typename,
12487         absdcl, absdcl1, absdcl1_ea, absdcl1_noea, direct_absdcl1,
12488         absdcl_maybe_attribute, parm, firstparm, parms, parmlist,
12489         parmlist_1, parmlist_2, parmlist_or_identifiers,
12490         parmlist_or_identifiers_1): Use these types.
12491         (primary, after_type_declarator, parm_declarator_starttypename,
12492         notype_declarator, component_decl, component_declarator,
12493         component_notype_declarator, typename, absdcl,
12494         absdcl_maybe_attribute, absdcl1_ea, direct_absdcl1, parmlist_1,
12495         parmlist_2, parmlist_or_identifiers_1): Update to new structures.
12496
12497 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
12498
12499         * c-tree.h (C_DECL_USED, parser_obstack, in_alignof, in_sizeof,
12500         in_typeof, record_maybe_used_decl, pop_maybe_used,
12501         c_expr_sizeof_expr, c_expr_sizeof_type): New.
12502         * c-decl.c (parser_obstack): New.
12503         (c_init_decl_processing): Initialize parser_obstack.
12504         (c_write_global_declarations_1): Check for used but undefined
12505         static functions.
12506         * c-parse.in (%union): Add otype.
12507         (save_obstack_position): New.
12508         (extdefs): Use it.
12509         (unary_expr): Update in_sizeof and in_alignof.  Use
12510         c_expr_sizeof_expr and c_expr_sizeof_type.
12511         (sizeof): Update in_sizeof.
12512         (alignof): Update in_alignof.
12513         (typeof): Update in_typeof.
12514         (typespec_nonreserved_nonattr): Call pop_maybe_used.
12515         * c-typeck.c (in_alignof, in_sizeof, in_typeof, struct
12516         maybe_used_decl, maybe_used_decls, record_maybe_used_decl,
12517         pop_maybe_used, c_expr_sizeof_expr, c_expr_sizeof_type): New.
12518         (build_external_ref): Set C_DECL_USED or call
12519         record_maybe_used_decl if appropriate.
12520         * toplev.c (check_global_declarations): Check TREE_NO_WARNING.
12521
12522 2004-09-08  Eric Christopher  <echristo@redhat.com>
12523
12524         * builtins.c: Fix prototype for fold_builtin_atan.
12525
12526 2004-09-08  Eric Christopher  <echristo@redhat.com>
12527
12528         * builtins.c (fold_builtin_strlen, fold_builtin_sqrt, fold_builtin_cbrt,
12529         fold_builtin_pow, fold_builtin_sin, fold_builtin_cos, fold_builtin_tan,
12530         fold_builtin_atan): New functions. Migrate function bodies...
12531         (fold_builtin_1): ... from here.
12532
12533 2004-09-09  Alan Modra  <amodra@bigpond.net.au>
12534
12535         * config/rs6000/rs6000.c (rs6000_stack_info): Correct alignment of
12536         save_size.
12537
12538 2004-09-08  David Edelsohn  <edelsohn@gnu.org>
12539
12540         * config/rs6000/power4.md (power4-lmul): du4 feeds iu1.
12541         * config/rs6000/power5.md (power5-lmul): Same.
12542
12543 2004-09-08  Richard Henderson  <rth@redhat.com>
12544
12545         PR rtl-opt/17186
12546         * function.c (expand_function_end): Have fall-off-the-end
12547         return path jump around return register setup.
12548
12549 2004-09-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
12550
12551         * config/sparc/sparc.c (sparc_indent_opcode): New variable.
12552         (output_return): Do not test for the presence of the 'unimp' insn.
12553         Use 'current_function_uses_only_leaf_regs' and 'final_sequence'
12554         as predicates instead of custom ones.  Return raw strings when
12555         possible.
12556         (output_sibcall): Likewise.  Concatenate strings.
12557         (output_ubranch): Remove kludge for TurboSPARC.
12558         (output_cbranch): Remove 'noop' parameter.  Do not output 'nop'.
12559         (output_v9branch): Likewise.
12560         (print_operand): Use 'final_sequence' instead of 'dbr_sequence_length'.
12561         <#>: Set sparc_indent_opcode if the delay slot is filled.
12562         <(>: Likewise.
12563         <)>: New operand to emit the displacement from the saved PC on return.
12564         <@>: Remove.
12565         * config/sparc/sparc.h (sparc_indent_opcode): Declare it.
12566         (ASM_OUTPUT_OPCODE): New macro.
12567         (PRINT_OPERAND_PUNCT_VALID_P): Remove '^' and add ')'.
12568         * config/sparc/sparc.md (normal_branch, inverted_branch,
12569         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
12570         inverted_fpe_branch): Adjust call to output_cbranch.
12571         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust
12572         call to output_v9branch.
12573         * config/sparc/sparc-protos.h (output_cbranch): Adjust.
12574         (output_v9branch): Likewise.
12575
12576 2004-09-08  Devang Patel  <dpatel@apple.com>
12577
12578         * config/darwin.h  (TARGET_OPTION_TRANSLATE_TABLE): Add -segaddr,
12579         -segs_read_only_addr and -segs_read_write_addr.
12580         (WORD_SWITCH_TAKES_ARG): Same.
12581         (LINK_SPEC): Same.
12582         * doc/invoke.texi: Document -segaddr, -segs_read_only_addr and
12583         -segs_read_write_addr.
12584
12585 2004-09-08  Richard Henderson  <rth@redhat.com>
12586
12587         * function.c (reference_callee_copied): New.
12588         (assign_parm_setup_reg): Use it.
12589         * calls.c (initialize_argument_information): Likewise.
12590         (emit_library_call_value_1): Likewise.
12591         * function.h (reference_callee_copied): Declare.
12592
12593         * target.h (struct gcc_target): Add callee_copies.
12594         * target-def.h (TARGET_CALLEE_COPIES): New.
12595         (TARGET_PASS_BY_REFERENCE): Update default.
12596         * expr.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
12597         * targhooks.c (hook_callee_copies_named): New.
12598         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Rename from
12599         hook_pass_by_reference_false.
12600         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): New.
12601         * targhooks.h: Update decls.
12602         * config/arc/arc.c (TARGET_CALLEE_COPIES): New.
12603         * config/arc/arc.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
12604         * config/frv/frv-protos.h (frv_function_arg_callee_copies): Remove.
12605         * config/frv/frv.c (frv_function_arg_callee_copies): Remove.
12606         * config/frv/frv.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
12607         * config/iq2000/iq2000.c (TARGET_CALLEE_COPIES): New.
12608         * config/iq2000/iq2000.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
12609         * config/m68hc11/m68hc11.c (TARGET_CALLEE_COPIES): New.
12610         * config/m68hc11/m68hc11.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
12611         * config/mips/mips.c (TARGET_CALLEE_COPIES): New.
12612         (mips_callee_copies): New.
12613         * config/mips/mips.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
12614         * config/mmix/mmix.c (TARGET_CALLEE_COPIES): New.
12615         * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
12616         * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): New.
12617         * config/mn10300/mn10300.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
12618         * config/pa/pa.c (TARGET_CALLEE_COPIES): New.
12619         * config/pa/pa.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
12620         * config/sh/sh.c (sh_callee_copies): New.
12621         (TARGET_CALLEE_COPIES): New.
12622         * config/sh/sh.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
12623         * config/v850/v850.c (TARGET_CALLEE_COPIES): New.
12624         * config/v850/v850.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
12625         * doc/tm.texi (TARGET_CALLEE_COPIES): Replace documentation
12626         for FUNCTION_ARG_CALLEE_COPIES.
12627         * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Update.
12628
12629 2004-09-08  Devang Patel  <dpatel@apple.com>
12630
12631         * tree-if-conv.c (find_phi_replacement_condition): Return true
12632         edge block.
12633         (replace_phi_with_cond_modify_expr): Select conditional expr args
12634         based on true edge basic block.
12635
12636 2004-09-08  Jan Hubicka  <jh@suse.cz>
12637
12638         * tree-ssa-operands.c (add_stmt_operand): Use V_MUST_DEF even for
12639         variables being alias set.
12640
12641 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
12642
12643         * final.c (shorten_branches, final, get_insn_template,
12644         output_alternate_entry_point, final_scan_insn, alter_subreg,
12645         alter_cond, output_operand, asm_fprintf, final_forward_branch_p,
12646         leaf_renumber_regs_insn): Use gcc_assert and gcc_unreachable.
12647         * fix-header.c (lookup_std_proto): Likewise.
12648         * flow.c (first_insn_after_basic_block_note, verify_wide_reg,
12649         verify_local_live_at_start, update_life_info, mark_reg,
12650         calculate_global_regs_live, allocate_reg_life_data,
12651         init_propagate_block_info, mark_set_regs, flush_reg_cond_reg_1,
12652         ior_reg_cond, not_reg_cond, and_reg_cond, elim_reg_cond,
12653         attempt_auto_inc, mark_used_reg, mark_used_regs): Likewise.
12654         * fold-const.c (force_fit_type, div_and_round_double,
12655         may_negate_without_overflow_p, int_const_binop, const_binop,
12656         size_binop, size_diffop, fold_convert_const, fold_convert,
12657         invert_tree_comparison, swap_tree_comparison,
12658         comparison_to_compcode, compcode_to_comparison, invert_truthvalue,
12659         range_binop, make_range, fold_cond_expr_with_comparison,
12660         fold_div_compare, fold, fold_checksum_tree, fold_negate_const,
12661         fold_abs_const, fold_not_const, fold_relational_const, round_up,
12662         round_down): Likewise.
12663         * function.c (find_function_data, assign_stack_temp_for_type,
12664         instantiate_virtual_regs_lossage, aggregate_value_p,
12665         assign_parm_find_entry_rtl, assign_parm_setup_block,
12666         expand_function_start, expand_function_end, keep_stack_depressed,
12667         handle_epilogue_set, thread_prologue_and_epilogue_insns): Likewise.
12668
12669 2004-09-08  Daniel Berlin  <dberlin@dberlin.org>
12670
12671         * Makefile.in (tree-loop-linear.o): Added.
12672         (OBJS-common): Add tree-loop-linear.o
12673         * common.opt: New flag, ftree-loop-linear.
12674         * timevar.def: New timevar, TV_TREE_LOOP_LINEAR.
12675         * tree-flow.h: Add prototype for linear_transform_loops.
12676         * tree-optimize.c: Add linear transform after vectorization.
12677         * tree-pass.h: Add struct pass_linear_transform.
12678         * tree-ssa-loop.c: Add pass_linear_transform.
12679         * tree-loop-linear.c: New file.
12680         * lambda-code.c: gcc_assertify.
12681         (gcc_loop_to_lambda_loop): Handle all exit tests.
12682         Handle case where we have (invariant >= induction var).
12683         (find_induction_var_from_exit_cond): Ditto.
12684
12685 2004-09-08  Jie Zhang  <zhangjie@magima.com.cn>
12686
12687         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
12688         memory tag is call clobbered, so are its aliases.
12689         (group_aliases): When two memory tags being grouped, if one is
12690         call clobbered, so are the other and its aliases.
12691         (add_may_alias): Remove call-clobbering stuff.
12692         (replace_may_alias): Likewise.
12693         (merge_pointed_to_info): Merge pt_global_mem
12694
12695 2004-09-08  Jan Hubicka  <jh@suse.cz>
12696
12697         * cgraph.c (cgraph_remove_node): Free DECL_INITIAL field of node.
12698         * cgraphunit.c (verify_cgraph): Don't verify on syntax errors.
12699         (cgraph_expand_function): Remove stale cgraph edges of currently
12700         compiled function; fix non-unit-at-a-time code copying function
12701         node for later reuse.
12702
12703 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
12704
12705         * vec.c (vec_p_reserve, vec_o_reserve): Rename to ...
12706         (vec_gc_p_reserve, vec_gc_o_reserve): ... here. Clone to
12707         (vec_heap_p_reserve, vec_heap_o_reserve): ... here, adjust.
12708         (vec_gc_free, vec_heap_free): New.
12709         * vec.h (DEF_VEC_GC_P, DEF_VEC_MALLOC_P): New.
12710         (DEF_VEC_P): Add allocator argument. Adjust.
12711         (DEF_VEC_GC_O, DEF_VEC_MALLOC_O): New.
12712         (DEF_VEC_O): Add allocator argument. Adjust.
12713         (VEC(free)): New.
12714
12715         * tree.h (tree): Define a GC'd vector.
12716         * lamba-code.c (lambda_loop): Likewise.
12717         * value-prof.h (histogram_value): Likewise.
12718
12719 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
12720
12721         * emit-rtl.c (immed_double_const): Use gcc_assert and gcc_unreachable.
12722         (gen_rtx_SUBREG, gen_reg_rtx, mark_user_reg, subreg_hard_regno,
12723         gen_lowpart_common, gen_highpart, gen_highpart_mode,
12724         subreg_highpart_offset, operand_subword, operand_subword_force,
12725         mem_expr_equal_p, set_mem_attributes_minus_bitpos,
12726         set_mem_alias_set, change_address_1, verify_rtx_sharing,
12727         copy_most_rtx, set_first_insn, set_last_insn, prev_cc0_setter,
12728         try_split, add_insn_after, add_insn_before, remove_insn,
12729         remove_unnecessary_notes, emit_insn_before, emit_jump_insn_before,
12730         emit_call_insn_before, emit_insn_after, emit_jump_insn_after,
12731         emit_call_insn_after, emit_insn, emit_jump_insn, emit_call_insn,
12732         set_unique_reg_note, emit, push_to_full_sequence, copy_insn_1,
12733         gen_const_vector_0, emit_copy_of_insn_after): Likewise.
12734         * et-forest.c (set_prev, set_next, et_check_occ_sanity,
12735         record_path_before_1, check_path_after_1, check_path_after): Likewise.
12736         * except.c (gen_eh_region, resolve_one_fixup_region,
12737         remove_unreachable_regions, convert_from_eh_region_ranges_1,
12738         add_ehl_entry, duplicate_eh_region_1, build_post_landing_pads,
12739         connect_post_landing_pads, sjlj_emit_function_exit,
12740         remove_exception_handler_label, remove_eh_handler,
12741         reachable_next_level, collect_one_action_chain,
12742         output_function_exception_table): Likewise.
12743         * explow.c (trunc_int_for_mode, copy_to_mode_reg,
12744         optimize_save_area_alloca, allocate_dynamic_stack_space,
12745         probe_stack_range, hard_function_value): Likewise.
12746         * expmed.c (mode_for_extraction, store_bit_field,
12747         store_fixed_bit_field, extract_bit_field, expand_shift,
12748         expand_mult_const, expand_mult, choose_multiplier,
12749         expand_mult_highpart, expand_divmod, emit_store_flag,
12750         do_cmp_and_jump): Likewise.
12751         * expr.c (convert_move, convert_modes, move_by_pieces,
12752         move_by_pieces_ninsns, move_by_pieces_1, emit_block_move,
12753         move_block_from_reg, gen_group_rtx, emit_group_load,
12754         emit_group_move, emit_group_store, use_reg, use_regs,
12755         can_store_by_pieces, store_by_pieces, store_by_pieces_1,
12756         emit_move_insn, emit_move_insn_1, emit_push_insn,
12757         expand_assignment, store_expr, count_type_elements,
12758         store_constructor, store_field, safe_from_p, expand_var,
12759         expand_expr_addr_expr, expand_expr_real_1, do_store_flag): Likewise.
12760
12761 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
12762
12763         * dbxout.c (dbxout_type, dbxout_type_name, dbxout_symbol): Use
12764         gcc_assert and gcc_unreachable.
12765         * ddg.c (create_ddg_dependence, add_deps_for_def,
12766         add_deps_for_use, create_ddg, add_edge_to_ddg): Likewise.
12767         * df.c (df_ref_unlink, df_ref_record, df_uses_record,
12768         df_reg_def_chain_create, df_reg_use_chain_create, df_analyze,
12769         df_insn_delete, df_refs_reg_replace, df_ref_reg_replace,
12770         df_insns_modify, df_pattern_emit_before, df_bb_reg_live_start_p,
12771         df_bb_reg_live_end_p, df_bb_regs_lives_compare,
12772         df_bb_single_def_use_insn_find, dataflow_set_a_op_b,
12773         dataflow_set_copy, hybrid_search, diagnostic.c,
12774         diagnostic_build_prefix, diagnostic_count_diagnostic): Likewise.
12775         * dojump.c (do_jump): Likewise.
12776         * dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
12777         compute_dom_fast_query, calculate_dominance_info,
12778         free_dominance_info, get_immediate_dominator,
12779         set_immediate_dominator, get_dominated_by,
12780         redirect_immediate_dominators, nearest_common_dominator,
12781         dominated_by_p, verify_dominators, recount_dominator,
12782         iterate_fix_dominators, add_to_dominance_info,
12783         delete_from_dominance_info): Likewise.
12784         * dwarf2asm.c (size_of_encoded_value, eh_data_format_name,
12785         dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
12786         dw2_force_const_mem, dw2_asm_output_encoded_addr_rtx): Likewise.
12787         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes, reg_save,
12788         initial_return_save, stack_adjust_offset, dwarf2out_stack_adjust,
12789         flush_queued_reg_saves, dwarf2out_frame_debug_expr,
12790         dwarf2out_frame_debug, dw_cfi_oprnd1_desc, output_cfi,
12791         output_call_frame_info, output_loc_operands, build_cfa_loc,
12792         decl_ultimate_origin, AT_flag, AT_int, AT_unsigned, AT_string,
12793         AT_string_form, add_AT_specification, AT_ref, set_AT_ref_external,
12794         AT_loc, AT_loc_list, AT_addr, AT_lbl, add_child_die,
12795         splice_child_die, attr_checksum, same_dw_val_p,
12796         break_out_includes, build_abbrev_table, size_of_die, mark_dies,
12797         unmark_dies, value_format, output_loc_list, output_die,
12798         output_pubnames, output_aranges, base_type_die, is_base_type,
12799         modified_type_die, dbx_reg_number, multiple_reg_loc_descriptor,
12800         mem_loc_descriptor, loc_descriptor, loc_descriptor_from_tree_1,
12801         field_byte_offset, add_data_member_location_attribute,
12802         add_const_value_attribute, rtl_for_decl_location,
12803         add_location_or_const_value_attribute, add_byte_size_attribute,
12804         add_bit_offset_attribute, add_bit_size_attribute,
12805         add_abstract_origin_attribute, pop_decl_scope, scope_die_for,
12806         decl_start_label, gen_formal_parameter_die,
12807         gen_type_die_for_member, gen_subprogram_die, gen_label_die,
12808         gen_typedef_die, gen_type_die, gen_tagged_type_instantiation_die,
12809         force_decl_die, force_type_die, gen_decl_die,
12810         dwarf2out_imported_module_or_decl, prune_unused_types_prune,
12811         dwarf2out_finish): Likewise.
12812
12813 2004-09-08  Andreas Tobler  <toa@pop.agri.ch>
12814
12815         * Makefile.in (builtins.o): Depend on tree-mudflap.h.
12816         * builtins.c: Include tree-mudflap.h.
12817
12818 2004-09-08  Uros Bizjak  <uros@kss-loka.si>
12819
12820         * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
12821         force operand 0.0 into register in XFmode. Also do not force
12822         operand 0.0 into register if !TARGET_CMOVE.
12823         * config/i386/i386.md (*cmpfp_0): Delete. Remove comment.
12824         (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf): New patterns to
12825         implement ftst x87 instruction.
12826         (*fp_jcc_7): New insn pattern. Change corresponding split
12827         pattern to handle "general_operand" instead of
12828         "nonimmediate_operand".
12829
12830 2004-09-08  Ben Elliston  <bje@au.ibm.com>
12831
12832         * doc/rtl.texi (Insns): Document NOTE_INSN_FUNCTION_BEG.
12833
12834 2004-09-07  Frank Ch. Eigler  <fche@redhat.com>
12835
12836         * builtins.c (std_gimplify_va_arg_expr): Mark INDIRECT_REF nodes
12837         generated from standard va_arg expansion.
12838         * tree-mudflap.c (mx_xform_derefs_1): Omit instrumentation from
12839         marked nodes.
12840         (mf_varname_tree, mf_file_function_line_tree): Add some support
12841         for column numbers if compiled with USE_MAPPED_LOCATION.
12842
12843 2004-09-07  Ziemowit Laski  <zlaski@apple.com>
12844
12845         * c-decl.c (groktypename_in_parm_context): Remove function.
12846         * c-tree.h (groktypename_in_parm_context): Remove prototype.
12847
12848 2004-09-07  Ziemowit Laski  <zlaski@apple.com>
12849
12850         * Makefile.in (c-parse.o): Depend on $(C_COMMON_H).
12851         * c-parse.in: Include c-common.h instead of objc-act.h.
12852         (ivar_decl_list, ivar_decls, ivar_decl, ivars, ivar_declarator,
12853         myparms, myparm): Remove %type declarations.
12854         (methodtype, optparms, OBJC_TYPE_QUAL, objc_quals, objc_qual,
12855         objc_typename, objc_try_catch_stmt, optellipsis): Add %type
12856         declarations.
12857         (objc_inherit_code, objc_public_flag): Remove.
12858         (typespec_nonreserved_nonattr): Call
12859         objc_get_protocol_qualified_type() instead of get_static_reference()
12860         and get_protocol_reference().
12861         (stmt_nocomp): Call grokparm() on @catch parameter.
12862         (objcdef): Move semantic action to objc_finish_implementation().
12863         (classdef): Move semantic action to objc_start_class_interface(),
12864         objc_continue_interface(), objc_finish_interface(),
12865         objc_start_class_implementation(), objc_continue_implementation(),
12866         objc_start_category_interface() and
12867         objc_start_category_implementation().
12868         (protocoldef): Move semantic actions to objc_start_protocol() and
12869         objc_finish_interface().
12870         (ivar_decl_list): Remove nonterminal.
12871         (visibility_spec): Move semantic actions to objc_set_visibility().
12872         (ivar_decls): Remove assignment to $$.
12873         (ivar_decl): Rephrase in terms of component_decl; call
12874         objc_add_instance_variable().
12875         (ivars, ivar_declarator): Remove nonterminals.
12876         (opt_semi): New nonterminal.
12877         (methodtype): Remove semantic actions.
12878         (methoddef): Move semantic actions to objc_set_method_type(),
12879         objc_start_method_definition() and objc_finish_method_definition().
12880         (methodproto): Move semantic actions to objc_set_method_type() and
12881         objc_add_method_declaration().
12882         (methoddecl): Use objc_typename instead of typename; move semantic
12883         actions to objc_build_method_signature().
12884         (optarglist, myxdecls, mydecl, myparms, myparm): Remove nonterminals.
12885         (optparmlist): Express in terms of optparms and optellipsis.
12886         (optparms, optellipsis, objc_qual, objc_quals, objc_typename): New
12887         nonterminals.
12888         (keyworddecl): Use objc_typename instead of typename.
12889         (rid_to_yy): Mark RID_IN, RID_OUT, RID_INOUT, RID_BYCOPY, RID_BYREF
12890         and RID_ONEWAY as returning OBJC_TYPE_QUAL to yyparse().
12891
12892 2004-09-08  Alan Modra  <amodra@bigpond.net.au>
12893
12894         * doc/tm.texi (MD_UNWIND_SUPPORT): Document.
12895         (MD_FALLBACK_FRAME_STATE_FOR): Update.
12896         * unwind-dw2.c (MD_UNWIND_SUPPORT): #include if defined.
12897         (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
12898         (MD_FROB_UPDATE_CONTEXT): Remove default.
12899         (uw_update_context_1): Instead #ifdef invocation.
12900         * config/ia64/unwind-ia64.c (MD_UNWIND_SUPPORT): #include if defined.
12901         (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
12902         * config/alpha/gnu.h (MD_FALLBACK_FRAME_STATE_FOR): Don't undef.
12903         (MD_UNWIND_SUPPORT): Undefine this instead.
12904         * config/i386/gnu.h: Likewise.
12905         * config/alpha/linux-unwind.h: New file, macro converted to
12906         function, extracted from..
12907         * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): ..this.
12908         (MD_UNWIND_SUPPORT): Define.
12909         * config/alpha/vms-unwind.h, config/alpha/vms.h: Likewise.
12910         * config/i386/linux-unwind.h, config/i386/linux.h,
12911         config/i386/linux64.h: Likewise.
12912         * config/ia64/linux-unwind.h, config/ia64/linux.h: Likewise.
12913         MD_HANDLE_UNWABI too.
12914         * config/mips/linux-unwind.h, config/mips/linux.h: Likewise.
12915         * config/pa/linux-unwind.h, config/pa/pa32-linux.h: Likewise.
12916         * config/rs6000/darwin-unwind.h, config/rs6000/darwin.h: Likewise.
12917         * config/s390/linux-unwind.h, config/s390/linux.h: Likewise.
12918         * config/sparc/linux-unwind.h, config/sparc/linux.h,
12919         config/sparc/linux64.h: Likewise.
12920         * config/sh/linux-unwind.h, config/sh/linux.h: Likewise, but merge
12921         SH_FALLBACK_FRAME_FLOAT_STATE into sh_fallback_frame_state.
12922         * config/rs6000/linux-unwind.h, config/rs6000/linux.h,
12923         config/rs6000/linux64.h: Likewise.  Split out get_sigcontext
12924         function.  Use ARG_POINTER_REGNUM for 32-bit temp reg too.
12925
12926 2004-09-07  Jan Hubicka  <jh@suse.cz>
12927
12928         * cse.c (fold_rtx):  Avoid building of
12929         (CONST (MINUS (CONST_INT) (SYMBOL_REF)))
12930
12931         * tree-ssa-pre.c (grand_bitmap_obstack): New.
12932         (value_insert_into_set_bitmap, bitmap_set_new): Use the obstack.
12933         (init_pre): Initialize obstack.
12934         (fini_pre): Free obstack.
12935
12936 2004-09-07  David Daney  <ddaney@avtrex.com>
12937
12938         * config.gcc: Added support for --with-divide=[breaks|traps] for
12939         mips targets.
12940         * config/mips/mips.h (MASK_DIVIDE_BREAKS): New target_flags bit.
12941         (TARGET_DIVIDE_TRAPS): New macro.
12942         (TARGET_SWITCHES): Added -mdivide-traps and -mdivide-breaks.
12943         (OPTION_DEFAULT_SPECS): Added --with-divide= support.
12944         * config/mips/mips.c (mips_idiv_insns): Generate proper count on
12945         GENERATE_DIVIDE_TRAPS.
12946         (mips_output_division): Emit conditional trap if
12947         GENERATE_DIVIDE_TRAPS is set.
12948         * doc/install.texi: Document --with-divide.
12949         * doc/invoke.texi: Document -mdivide-traps and -mdivide-breaks.
12950
12951 2004-09-07  Caroline Tice  <ctice@apple.com>
12952
12953         * cfgrtl.c (rtl_verify_flow_info_1):  Add new edge flag,
12954         EDGE_CROSSING, to flags test case.
12955
12956 2004-09-07  Jan Hubicka  <jh@suse.cz>
12957
12958         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Deal with '<'
12959         class too.
12960
12961 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
12962
12963         * cfganal.c (flow_depth_first_order_compute, dfs_enumerate_from,
12964         cfgbuild.c, inside_basic_block_p, control_flow_insn_p,
12965         make_label_edge, make_edges, find_basic_blocks_1): Use gcc_assert
12966         or gcc_unreachable.
12967         * cfg.c (clear_edges, initialize_bb_rbi, compact_blocks,
12968         remove_edge, alloc_aux_for_blocks, free_aux_for_blocks,
12969         alloc_aux_for_edges, free_aux_for_edges): Likewise.
12970         * cfgcleanup.c (try_forward_edges,
12971         merge_blocks_move_predecessor_nojumps,
12972         merge_blocks_move_successor_nojumps): Likewise.
12973         * cfgexpand.c (expand_gimple_cond_expr,
12974         expand_gimple_tailcall): Likewise.
12975         * cfghooks.c (duplicate_block): Likewise.
12976         * cfglayout.c (record_effective_endpoints,
12977         insn_locators_initialize, change_scope, fixup_reorder_chain,
12978         verify_insn_chain, fixup_fallthru_exit_predecessor,
12979         duplicate_insn_chain, cfg_layout_finalize): Likewise.
12980         * cfgloopanal.c (check_irred): Likewise.
12981         * cfgloop.c (superloop_at_depth, flow_loops_free,
12982         flow_loop_entry_edges_find, flow_loops_find,
12983         flow_loop_outside_edge_p, get_loop_body,
12984         get_loop_body_in_dom_order, get_loop_body_in_bfs_order,
12985         get_loop_exit_edges, num_loop_branches, cancel_loop,
12986         verify_loop_structure): Likewise.
12987         cfgloopmanip.c (find_path, remove_path, loop_delete_branch_edge,
12988         duplicate_loop_to_header_edge, create_preheader,
12989         create_loop_notes): Likewise.
12990         * cfgrtl.c (delete_insn, try_redirect_by_replacing_jump,
12991         edirect_branch_edge, force_nonfallthru_and_redirect,
12992         rtl_split_edge, insert_insn_on_edge, commit_one_edge_insertion,
12993         commit_edge_insertions, commit_edge_insertions_watch_calls,
12994         purge_dead_edges, cfg_layout_redirect_edge_and_branch,
12995         cfg_layout_redirect_edge_and_branch_force,
12996         cfg_layout_merge_blocks, rtl_flow_call_edges_add): Likewise.
12997         * cgraph.c (cgraph_node, cgraph_create_edge, cgraph_remove_edge,
12998         cgraph_redirect_edge_callee, cgraph_global_info, cgraph_rtl_info,
12999         cgraph_varpool_node): Likewise.
13000         * cgraphunit.c (cgraph_finalize_function,
13001         cgraph_finalize_compilation_unit, cgraph_mark_functions_to_output,
13002         cgraph_expand_function, cgraph_remove_unreachable_nodes,
13003         cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
13004         cgraph_mark_inline, cgraph_expand_all_functions,
13005         cgraph_build_static_cdtor): Likewise.
13006         * combine.c  (do_SUBST, try_combine, subst, combine_simplify_rtx,
13007         simplify_logical, distribute_notes, insn_cuid): Likewise.
13008         * conflict.c (conflict_graph_add, print_conflict): Likewise.
13009         * coverage.c (rtl_coverage_counter_ref, tree_coverage_counter_ref,
13010         coverage_checksum_string): Likewise.
13011         * cse.c (make_new_qty, make_regs_eqv, insert, invalidate,
13012         hash_rtx, exp_equiv_p, cse_basic_block, count_reg_usage,
13013         cse_cc_succs, cse_condition_code_reg): Likewise.
13014         * cselib.c (entry_and_rtx_equal_p, remove_useless_values,
13015         rtx_equal_for_cselib_p, wrap_constant, cselib_hash_rtx,
13016         new_cselib_val, cselib_subst_to_values, cselib_invalidate_regno,
13017         cselib_record_set): Likewise.
13018
13019 2004-09-07  Jan Hubicka  <jh@suse.cz>
13020
13021         * tree-ssa-loop-ivopts.c (iv_value): Avoid invalid sharing on niter.
13022
13023 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
13024
13025         * builtins.c (fold_builtin_strchr): Use build_int_cst, not
13026         fold_convert.
13027         (fold_builtin_strpbrk): Likewise.
13028         * expr.c (array_ref_low_bound): Likewise.
13029         * tree-scalar-evolution.c (chrec_is_positive, add_to_evolution_1,
13030         interpret_rhs_modify_expr, number_of_iterations_in_loop): Likewise.
13031         * tree-sra.c (generate_element_zero): Likewise.
13032         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
13033         * tree-ssa-loop-ivopts.c (determine_biv_step, idx_find_step,
13034         add_old_iv_candidates, add_iv_candidates): Likewise.
13035         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
13036
13037 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
13038
13039         * c-aux-info.c (gen_type): Use gcc_assert or gcc_unreachable.
13040         * c-common.c (c_type_hash, c_common_nodes_and_builtins,
13041         c_expand_expr, boolean_increment, nonnull_check_p,
13042         check_function_arguments_recurse, fold_offsetof_1): Likewise.
13043         * c-cppbuiltin.c (define__GNUC__, builtin_define_stdint_macros,
13044         builtin_define_type_max): Likewise.
13045         * c-decl.c (bind, pop_scope, merge_decls, pushdecl_top_level,
13046         implicit_decl_warning, builtin_function, build_compound_literal,
13047         complete_array_type, grokdeclarator, get_parm_info,
13048         start_function, store_parm_decls_oldstyle,
13049         c_write_global_declarations): Likewise.
13050         * c-format.c (get_constant, decode_format_attr,
13051         maybe_read_dollar_number, get_flag_spec, check_format_arg,
13052         check_format_types, format_type_warning,
13053         find_char_info_specifier_index, init_dynamic_asm_fprintf_info,
13054         init_dynamic_diag_info, handle_format_attribute): Likewise.
13055         * c-gimplify.c (push_context, pop_context, finish_bc_block):
13056         * c-lex.c (c_lex_with_flags, lex_string): Likewise.
13057         * c-objc-common.c (c_tree_printer): Likewise.
13058         * c-pch.c (pch_init): Likewise.
13059         * c-pragma.c (maybe_apply_pragma_weak): Likewise.
13060         * c-pretty-print.c (pp_c_tree_decl_identifier): Likewise.
13061         * c-typeck.c (c_incomplete_type_error, composite_type,
13062         common_pointer_type, common_type, same_translation_unit_p,
13063         tagged_types_tu_compatible_p, finish_init, pop_init_level,
13064         set_designator, set_nonincremental_init_from_string,
13065         process_init_element, c_finish_if_stmt): Likewise.
13066         * caller-save.c (init_caller_save, save_call_clobbered_regs,
13067         insert_restore, insert_save, insert_one_insn): Likewise.
13068         * calls.c (emit_call_1, compute_argument_block_size,
13069         precompute_arguments, expand_call, emit_library_call_value_1,
13070         store_one_arg): Likewise.
13071
13072 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
13073
13074         * configure.ac (enable-checking): Add release option. Reorganize
13075         to avoid repetition.
13076         * configure: Rebuilt.
13077         * doc/install.texi (enable-checking): Amend documentation.
13078
13079 2004-09-06  H.J. Lu  <hongjiu.lu@intel.com>
13080
13081         PR bootstrap/17313
13082         * Makefile.in (specs.ready): Depend on cc1$(exeext).
13083
13084 2004-09-06  James E Wilson  <wilson@specifixinc.com>
13085
13086         * config/mips/mips.md (movsf_hardfloat, movdf_hardfloat_64bit,
13087         movdf_hardfloat_32bit): Split fG into two alternatives.
13088         (movv2sf_hardfloat_64bit): Split fYG into two alternatives.
13089
13090         * emit-rtl.c (try_split): Check INSN_P before may_trap_p call.
13091
13092 2004-09-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
13093
13094         * final.c (output_in_slot): Delete.
13095         (final_scan_insn): Revert 2004-09-03 change.
13096         (output_asm_insn): Likewise.
13097         * config/sparc/sparc.c (output_return): Likewise.
13098         (output_sibcall): Likewise.
13099
13100 2004-09-06  Jan Hubicka  <jh@suse.cz>
13101
13102         * loop.c (loop_dump_aux): Do not print RTL when not available.
13103         * tree-ssa-loop-ivopts.c (add_standard_iv_candidates): Do not use
13104         frontend specific type nodes.
13105         (produce_memory_decl_rtl): Break out from ...
13106         (prepare_decl_rtl): ... here.  Handle ADDR_EXPR correctly.
13107         (get_computation_at): Avoid random tree sharing.
13108         (tree_ssa_iv_optimize): Verify tree sharing; dump loops.
13109
13110 2004-09-06  Zack Weinberg  <zack@codesourcery.com>
13111
13112         * Makefile.in (rtl.o, bitmap.o): Correct dependencies, remove
13113         unnecessary commands.
13114
13115 2004-09-06  Mohan Embar  <gnustuff@thisiscool.com>
13116
13117         * Makefile.in (rtl.o): Remove -DGENERATOR_FILE.
13118         (bitmap.o): Likewise.
13119
13120 2004-09-06  Paolo Bonzini  <bonzini@gnu.org>
13121
13122         Unify the management of RTL and tree-level dump files.
13123
13124         * cfgexpand.c (tree_expand_cfg): Fix incorrect comment.
13125         Don't print function name to the dump file, the pass manager
13126         would do this for us. Add code from the top of
13127         rest_of_compilation, up to the initial RTL dump.
13128         * passes.c (rest_of_handle_jump): Call fixup_tail_calls and
13129         close the DFI_sibling dump file.
13130         (rest_of_compilation): Don't do that here.  Remove code up to the
13131         initial RTL dump.
13132         (init_optimization_passes): Remove.
13133         (pass_rest_of_compilation): Change pass name to NULL.
13134         * toplev.c (lang_dependent_init): Do not use an empty dump file prefix.
13135         Do not call init_optimization_passes.
13136         * toplev.h (init_optimization_passes): Remove.
13137
13138         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
13139         finish_graph_dump_file): Remove SUFFIX parameter.
13140         * graph.h (print_rtl_graph_with_bb, clean_graph_dump_file,
13141         finish_graph_dump_file): Likewise.
13142
13143         * tree-pass.h (struct tree_opt_pass): Add `letter' field.
13144         * cfgexpand.c (pass_expand): Adjust.
13145         * gimple-low.c (pass_lower_cf, pass_remove_useless_vars): Adjust.
13146         * passes.c (pass_rest_of_compilation): Adjust.
13147         * predict.c (pass_profile): Adjust.
13148         * tree-alias-common.c (pass_build_pta, pass_del_pta): Adjust.
13149         * tree-cfg.c (pass_build_cfg, pass_remove_useless_stmts,
13150         pass_split_crit_edges, pass_warn_function_return): Adjust.
13151         * tree-complex.c (pass_lower_vector_ssa, pass_pre_expand): Adjust.
13152         * tree-dfa.c (pass_referenced_vars): Adjust.
13153         * tree-eh.c (pass_lower_eh): Adjust.
13154         * tree-if-conv.c (pass_build_ssa): Adjust.
13155         * tree-into-ssa.c (pass_build_ssa): Adjust.
13156         * tree-mudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
13157         * tree-nomudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
13158         * tree-nrv.c (pass_nrv): Adjust.
13159         * tree-optimize.c (pass_gimple, pass_all_optimizations,
13160         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
13161         pass_init_datastructures): Adjust.
13162         * tree-outof-ssa.c (pass_del_ssa): Adjust.
13163         * tree-profile.c (pass_tree_profile): Adjust.
13164         * tree-sra.c (pass_sra): Adjust.
13165         * tree-ssa-alias.c (pass_may_alias): Adjust.
13166         * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Adjust.
13167         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Adjust.
13168         * tree-ssa-dce.c (pass_dce, pass_cd_dce): Adjust.
13169         * tree-ssa-dom.c (pass_dominator): Adjust.
13170         * tree-ssa-dse.c (pass_dse): Adjust.
13171         * tree-ssa-forwprop.c (pass_forwprop): Adjust.
13172         * tree-ssa-if-conv.c (pass_if_conversion): Adjust.
13173         * tree-ssa-loop-ch.c (pass_ch): Adjust.
13174         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_lim,
13175         pass_loop_done, pass_complete_unroll, pass_iv_canon,
13176         pass_iv_optimize, pass_vectorize): Adjust.
13177         * tree-ssa-phiopt.c (pass_phiopt): Adjust.
13178         * tree-ssa-pre.c (pass_pre, pass_fre): Adjust.
13179         * tree-ssa.c (pass_redundant_phi, pass_early_warn_uninitialized,
13180         pass_late_warn_uninnitialized): Adjust.
13181         * tree-tailcall.c (pass_tail_recursion, pass_tail_calls): Adjust.
13182
13183         * Makefile.in (tree-dump.o): Add new dependencies.
13184         * cgraph.c (cgraph_remove_node): TDF_all -> TDF_tree_all.
13185         * cgraphunit.c (cgraph_preserve_function_body_p, cgraph_optimize):
13186         Likewise.
13187         * toplev.c (dump_file_name): New.
13188         * tree-dump.c (dump_enable_all): Add LETTER parameter.
13189         (struct dump_file_info): Add NUM and LETTER fields.
13190         (dump_files): Adjust and add RTL dump files.
13191         (dump_register): Add NUM and LETTER fields.
13192         (get_dump_file_name, dump_initialized_p, enable_rtl_dump_file): New.
13193         (dump_begin): Use get_dump_file_name.
13194         (dump_switch_p_1): Adjust call to dump_enable_all.
13195         * tree-dump.h (dump_register): Adjust prototype.
13196         * tree-optimize.c (register_one_dump_file): Take dump file index.
13197         Support flags for RTL dumps.
13198         (register_dump_files): Fill in NUM field of struct dump_file_info.
13199         Track properties both when the gate is executed and when it is not.
13200         (execute_todo): Dump RTL.  Add PROPERTIES parameter.
13201         (execute_one_pass): Pass properties to execute_todo.  Handle VCG
13202         dumps of RTL.
13203         * tree-pass.h (dump_file_name): New.
13204         * tree.h (TDF_TREE, TDF_RTL, get_dump_file_name, dump_initialized_p):
13205         New.
13206
13207         * Makefile.in (passes.o): Add new dependencies.
13208         * passes.c (struct dump_file_info, enum dump_file_index,
13209         dump_file_tbl, init_optimization_passes): Remove.
13210         (open_dump_file, close_dump_file): Use tree-dumping infrastructure.
13211         (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc): Use
13212         dump_enabled_p.
13213         (finish_optimization_passes): Update finish_graph_dump_file loop.
13214         (enable_rtl_dump_file): Remove.
13215         * tree-dump.c (dump_files): Adjust and add RTL dump files.
13216         (enable_rtl_dump_file): Add here.
13217         * tree.h (enum tree_dump_index): Add RTL dump file indices.
13218         * doc/invoke.texi (Debugging options): Document new RTL debugging
13219         options.  Update.
13220
13221 2004-09-05  Kazu Hirata  <kazu@cs.umass.edu>
13222
13223         * c-common.c, c-decl.c, combine.c, defaults.h, fold-const.c,
13224         gimplify.c, gthr-nks.h, hooks.c, lambda-code.c, lambda-mat.c,
13225         stor-layout.c, target.h, tree-cfg.c, tree-chrec.c,
13226         tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
13227         tree-mudflap.c, tree-optimize.c, tree-scalar-evolution.c,
13228         tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dce.c,
13229         tree-ssa-pre.c, tree-vectorizer.c, tree-vectorizer.h, tree.h,
13230         vec.h: Fix comment formatting.
13231
13232 2004-09-05  Kazu Hirata  <kazu@cs.umass.edu>
13233
13234         * c-common.c, cfgexpand.c, cgraphunit.c, defaults.h,
13235         et-forest.c, expr.c, gimplify.c, global.c, gthr-lynx.h,
13236         hard-reg-set.h, modulo-sched.c, optabs.c, postreload-gcse.c,
13237         tree-data-ref.c, tree-flow.h, tree-if-conv.c, tree-inline.c,
13238         tree-sra.c, tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
13239         tree-ssa-loop-niter.c, tree-ssa-operands.c,
13240         tree-ssa-operands.h, tree-ssa-propagate.c,
13241         tree-ssa-propagate.h, tree-ssa-threadupdate.c, value-prof.c,
13242         vec.c, vec.h: Fix comment typos.  Follow spelling conventions.
13243
13244 2004-09-05  Diego Novillo  <dnovillo@redhat.com>
13245
13246         * tree-if-conv.c (gate_tree_if_conversion): Enable only if the
13247         vectorizer is enabled.
13248
13249 2004-09-05  Andreas Jaeger  <aj@suse.de>
13250
13251         * tree-if-conv.c: Spell check comments and clean up whitespace.
13252
13253 2004-09-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13254
13255         * tree-ssa-loop-ivopts.c: New file.
13256         * Makefile.in (tree-ssa-loop-ivopts.c): Add.
13257         * cfgloop.h (target_avail_regs, target_res_regs, target_small_cost,
13258         target_pres_cost, target_spill_cost): Declare.
13259         * cfgloopanal.c (avail_regs, res_regs, small_cost, pres_cost,
13260         spill_cost): Renamed to ...
13261         (target_avail_regs, target_res_regs, target_small_cost,
13262         target_pres_cost, target_spill_cost): ... and exported.
13263         (init_set_costs, global_cost_for_size): Work with renamed variables.
13264         * common.opt (flag_ivopts): New flag.
13265         * expr.c (expand_expr_real_1): Handle SSA_NAME case.  Handle
13266         REF_ORIGINAL.
13267         * gimplify.c (struct gimplify_ctx): Add into_ssa field.
13268         (internal_get_tmp_var, gimplify_modify_expr, gimplify_expr): Support
13269         generating SSA form.
13270         (force_gimple_operand): New function.
13271         * timevar.def (TV_TREE_LOOP_IVOPTS): New timevar.
13272         * tree-cfg.c (stmt_bsi): New function.
13273         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
13274         PARAM_IV_MAX_CONSIDERED_USES): New.
13275         * tree-flow.h (stmt_bsi, tree_ssa_iv_optimize, split_loop_exit_edge,
13276         bsi_insert_on_edge_immediate_loop. standard_iv_increment_position,
13277         ip_end_pos, ip_normal_pos, force_gimple_operand): Declare.
13278         * tree-gimple.c (is_gimple_formal_tmp_var): Accept ssa names.
13279         * tree-nested.c (build_addr): Export.
13280         * tree-optimize.c (init_tree_optimization_passes): Add
13281         pass_iv_optimize.
13282         * tree-pass.h (pass_iv_optimize): Declare.
13283         * tree-ssa-loop-im.c (for_each_index): Handle REALPART_EXPR and
13284         IMAGPART_EXPR.
13285         * tree-ssa-loop-manip.c (create_iv): Force the base to be acceptable
13286         as a phi node argument.
13287         (split_loop_exit_edge, bsi_insert_on_edge_immediate_loop,
13288         ip_end_pos, ip_normal_pos, standard_iv_increment_position): New
13289         functions.
13290         * tree-ssa-loop-niter.c (zero_p, unsigned_type_for): Export.
13291         * tree-ssa-loop.c (tree_ssa_loop_ivopts, gate_tree_ssa_loop_ivopts,
13292         pass_iv_optimize): New pass.
13293         * tree-ssa-operands.c (get_indirect_ref_operands): Handle REF_ORIGINAL.
13294         * tree-ssanames.c (release_ssa_name): Allow calling with var = NULL.
13295         * tree.c (build_int_cst_type, cst_and_fits_in_hwi): New functions.
13296         * tree.h (REF_ORIGINAL): New macro.
13297         (build_int_cst_type, unsigned_type_for, zero_p,
13298         cst_and_fits_in_hwi, build_addr): Declare.
13299         * doc/invoke.texi (-fivopts): Document.
13300         (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
13301         PARAM_IV_MAX_CONSIDERED_USES): Document.
13302         * doc/passes.texi: Document induction variable optimizations pass.
13303
13304 2004-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13305
13306         * builtin-attrs.def (ATTR_NOTHROW_SENTINEL_1): New.
13307         * builtins.def (BUILT_IN_EXECLE): Set ATTR_NOTHROW_SENTINEL_1.
13308         * c-common.c (c_common_attribute_table): Accept parameters to
13309         sentinel attribute.
13310         (check_function_sentinel, handle_sentinel_attribute): Likewise.
13311         * doc/extend.texi: Update accordingly.
13312
13313 2004-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13314
13315         * builtin-attrs.def (ATTR_SENTINEL, ATTR_SENTINEL_NOTHROW_LIST):
13316         New.
13317         * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP): Add `sentinel'
13318         attribute.
13319         * c-common.c (handle_sentinel_attribute, check_function_sentinel):
13320         New functions.
13321         (c_common_attribute_table): Add `sentinel' attribute.
13322         (check_function_arguments): Handle `sentinel' attribute.
13323         * doc/extend.texi: Document `sentinel' attribute.
13324
13325 2004-09-04  H.J. Lu  <hongjiu.lu@intel.com>
13326
13327         * configure: Regenerated.
13328
13329 2004-09-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13330
13331         * gimplify.c (internal_get_tmp_var): Remove unused var CLASS.
13332
13333         * tree.c (save_expr): No longer TREE_READONLY.
13334
13335 2004-09-04  Jan Hubicka  <jh@suse.cz>
13336
13337         * passes.c (rest_of_clean_state):  Fix merge conflict made during
13338         commiting the patch.
13339
13340 2004-09-04  Jan Hubicka  <jh@suse.cz>
13341
13342         * passes.c (rest_of_clean_state):  Decompose the instruction stream.
13343
13344 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
13345
13346         * doc/md.texi (shift patterns): New anchor.  Add reference to
13347         TARGET_SHIFT_TRUNCATION_MASK.
13348         * doc/tm.texi (TARGET_SHIFT_TRUNCATION_MASK): Document.
13349         * target.h (shift_truncation_mask): New target hook.
13350         * targhook.h (default_shift_truncation_mask): Declare.
13351         * targhook.c (default_shift_truncation_mask): Define.
13352         * target-def.h (TARGET_SHIFT_TRUNCATION_MASK): Define.
13353         (TARGET_INITIALIZER): Include it.
13354         * simplify-rtx.c (simplify_binary_operation): Combine ASHIFT, ASHIFTRT
13355         and LSHIFTRT cases.  Truncate arg1 if SHIFT_COUNT_TRUNCATED, otherwise
13356         reject all out-of-range values.  Fix sign-extension code for modes
13357         whose width is smaller than HOST_BITS_PER_WIDE_INT.
13358         * optabs.c (simplify_expand_binop, force_expand_binop): New functions.
13359         (expand_superword_shift, expand_subword_shift): Likewise.
13360         (expand_doubleword_shift_condmove, expand_doubleword_shift): Likewise.
13361         (expand_binop): Use them to implement double-word shifts.
13362         * config/arm/arm.c (arm_shift_truncation_mask): New function.
13363         (TARGET_SHIFT_TRUNCATION_MASK): Define.
13364
13365 2004-09-04  Jan Hubicka  <jh@suse.cz>
13366
13367         * tree.c (iterate_hash_expr): Optimize, avoid use of iterative_hash_object.
13368         (mix): New macro copied from hashtab.c
13369         (iterative_hash_hashval_t, iterative_hash_pointer,
13370         iterative_hash_host_wide_int): New functions based on hashtab.c
13371         implementation.
13372
13373 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
13374
13375         * config/mips/mips.md (mask): New mode attribute.
13376         (zero_extendsidi2): Add memory alternative.
13377         (*zero_extendsidi2_mem): Delete.
13378         (zero_extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.  Use
13379         memory_operand in the TARGET_MIPS16 check.
13380         (*zero_extend[qh]i[sd]i2{,_mips16}): Name previously unnamed patterns.
13381         Redefine using :GPR and :SHORT.
13382         (zero_extendqihi2): Use memory_operand in the TARGET_MIPS16 check.
13383
13384 2004-09-04  Uros Bizjak  <uros@kss-loka.si>
13385
13386         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_RINT{,F,L}
13387         using rint_optab.
13388         (expand_builtin): Expand BUILT_IN_RINT{,F,L} using
13389         expand_builtin_mathfn.
13390         * genopinit.c (optabs): Rename trunc_optab to btrunc_optab. Use
13391         btrunc?f patterns for btrunc_optab. Implement rint_optab using
13392         rint?f patterns.
13393         * optabs.c (init_optabs): Initialize rint_optab.
13394         * optabs.h (enum optab_index): Rename OTI_trunc to OTI_btrunc.
13395         Add new OTI_rint.
13396         (btrunc_optab): Rename macro from trunc_optab.
13397         (rint_optab): Define corresponding macro.
13398
13399         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT_FLOOR,
13400         UNSPEC_FRNDINT_CEIL, UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM.
13401
13402         * config/i386/i386-protos.h (emit_i387_cw_initialization):
13403         Change prototype. Add new int parameter.
13404         * config/i386/i386.c (emit_i387_cw_initialization):
13405         Handle new rounding modes.
13406
13407         * config/i386/i386.h (enum fp_cw_mode): Delete.
13408         (MODE_NEEDED): Handle new rounding modes.
13409         (EMIT_MODE_SET): Change condition to handle new rounding modes.
13410
13411         * config/i386/i386.md (UNSPEC_FRNDINT_FLOOR, UNSPEC_FRNDINT_CEIL,
13412         UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM): New unspecs to
13413         represent different rounding modes of frndint insn.
13414         (type): Add frndint type.
13415         (i387, length, memory): Handle this type.
13416         (i387_cw): New attribute definition.
13417         (*fix_truncdi_1, fix_truncdi_nomemory, fix_truncdi_memory,
13418         *fix_truncsi_1, fix_truncsi_nomemory, fix_truncsi_memory,
13419         *fix_trunchi_1, fix_trunchi_nomemory, fix_trunchi_memory):
13420         Add "i387_cw" attribute defined to "trunc".
13421         (x86_fnstcw_1): Remove comment.
13422         (*frndintxf2): Rename insn definition to frndintxf2. Move
13423         insn definition near rint?f2 expanders.
13424         (rintdf2, rintsf2, rintxf2): New expanders to implement rint,
13425         rintf and rintl built-ins as inline x87 intrinsics.
13426         (frndintxf2_floor): New pattern to implement floor rounding
13427         mode with frndint x87 instruction.
13428         (floordf2, floorsf2, floorxf2): New expanders to implement floor,
13429         floorf and floorl built-ins as inline x87 intrinsics.
13430         (frndintxf2_ceil): New pattern to implement ceil rounding
13431         mode with frndint x87 instruction.
13432         (ceildf2, ceilsf2, ceilxf2): New expanders to implement ceil,
13433         ceilf and ceill built-ins as inline x87 intrinsics.
13434         (frndintxf2_trunc): New pattern to implement trunc rounding
13435         mode with frndint x87 instruction.
13436         (btruncdf2, btruncsf2, btruncxf2): New expanders to implement trunc,
13437         truncf and truncl built-ins as inline x87 intrinsics.
13438         (frndintxf2_mask_pm): New pattern to implement rounding
13439         mode with exceptions with frndint x87 instruction.
13440         (nearbyintdf2, nearbyintsf2, nearbyintxf2): New expanders to
13441         implement nearbyint, nearbyintf and nearbyintl built-ins as
13442         inline x87 intrinsics.
13443
13444 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
13445
13446         * config/mips/mips.md (SHORT): New mode macro.
13447         (size): New mode attribute.
13448         (extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.
13449         (*extend[qh]i[sd]i2): New define_insn_and_split, combining previous
13450         *extend[qh]i[sd]i2 and *extend[qh]i[sd]i2_mem patterns.  Use only if
13451         !ISA_HAS_SEB_SEH.
13452         (*extend[qh]i[sd]i2_se[bh]): New pattern, combining previous
13453         *extend[qh]isi2_hw patterns and extending them to di.
13454         (extendqihi2): Implement as define_insn_and_split that produces
13455         extendqisi2 after reload.
13456
13457 2004-09-03  Devang Patel  <dpatel@apple.com>
13458
13459         * Makefile.in (OBJS-common): Add tree-if-conv.o
13460         (tree-if-conv.o): New rule.
13461         * cfgloop.c (flow_loop_exit_edges_find): Set EDGE_LOOP_EXIT flag.
13462         (get_loop_body_in_bfs_order): New.
13463         * cfgloop.h (get_loop_body_in_bfs_order): New.
13464         * tree-flow.h (enum move_pos): Move here from ..
13465         * tree-ssa-loop-im.c (enum move_pos): here.
13466         (movement_possibility): Make externally visible.
13467         * tree-optimize.c (init_tree_optimization_passes): New entry for
13468         if conversion pass.
13469         * tree-pass.h (pass_if_conversion): New.
13470         * tree-ssa-operands.c (get_expr_operands): Handle COND_EXPR.
13471         * tree-if-conv.c: New file.
13472         * doc/passes.texi: Document tree if-conversion pass.
13473         * doc/tree-ssa.texi: Same.
13474
13475 2004-09-03  H.J. Lu  <hongjiu.lu@intel.com>
13476
13477         PR target/14925:
13478         Makefile.in (LIB2ADDEHSTATIC): New.
13479         (LIB2ADDEHSHARED): New.
13480         (LIBUNWIND): New.
13481         (LIBUNWINDDEP): New.
13482         (SHLIBUNWIND_LINK): New.
13483         (SHLIBUNWIND_INSTALL): New.
13484         (libgcc.mk): Pass LIB2ADDEHSTATIC, LIB2ADDEHSHARED, LIBUNWIND,
13485         LIBUNWINDDEP, SHLIBUNWIND_LINK and SHLIBUNWIND_INSTALL.
13486         (clean): Remove libunwind*
13487         (stage1-start): Remove and copy stage1/libunwind*.
13488         (stage2-start): Remove and copy stage2/libunwind*.
13489         (stage3-start): Remove and copy stage3/libunwind*.
13490         (stage4-start): Remove and copy stage4/libunwind*.
13491         (stageprofile-start): Remove and copy stageprofile/libunwind*.
13492         (stagefeedback-start): Remove and copy stagefeedback/libunwind*.
13493
13494         * config.gcc (ia64*-*-linux*): Always add t-libunwind to
13495         tmake_file. Add t-libunwind-elf and ia64/t-glibc-libunwind to
13496         tmake_file if --with-system-libunwind isn't used.
13497
13498         * config/ia64/t-glibc-libunwind: New file.
13499         * config/t-libunwind-elf: Likewise.
13500         * unwind-compat.c: Likewise.
13501         * unwind-compat.h: Likewise.
13502         * unwind-dw2-fde-compat.c: Likewise.
13503
13504         * config/ia64/t-glibc (LIB2ADDEH): Updated.
13505         * config/ia64/t-hpux (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
13506
13507         * config/ia64/unwind-ia64.c: Include "unwind-compat.h". Define
13508         aliases if needed.
13509         * unwind-dw2-fde-glibc.c: Likewise.
13510         * unwind-dw2.c: Likewise.
13511
13512         * config/t-libunwind (LIB2ADDEH): Updated.
13513         (LIB2ADDEHSTATIC): New.
13514         (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
13515         (TARGET_LIBGCC2_CFLAGS): Set to -DUSE_GAS_SYMVER.
13516
13517         * configure.ac: Change --enable-libunwind-exceptions to
13518         --with-system-libunwind. Don't define USE_LIBUNWIND_EXCEPTIONS.
13519         * configure: Regenerated.
13520         * config.in: Updated.
13521
13522         * doc/install.texi (ia64-*-linux): Require libunwind 0.98 or
13523         above and mention --with-system-libunwind.
13524         (ia64-*-hpux*): Mention --enable-libunwind-exceptions is
13525         removed in gcc 3.4.3 and later.
13526
13527         * gcc.c (init_spec): Add -lunwind to -lgcc_s if
13528         USE_LIBUNWIND_EXCEPTIONS is defined.
13529
13530         * mklibgcc.in: Support libunwind.
13531
13532 2004-09-03  H.J. Lu  <hongjiu.lu@intel.com>
13533
13534         * config/i386/i386.c (x86_branch_hints): Remove m_PENT4 and
13535         m_NOCONA.
13536
13537 2004-09-03  Richard Henderson  <rth@redhat.com>
13538
13539         PR middle-end/9997
13540         * cfgexpand.c (LOCAL_ALIGNMENT): Provide default.
13541         (STACK_ALIGNMENT_NEEDED, FRAME_GROWS_DOWNWARD): Likewise.
13542         (struct stack_var, EOC, stack_vars, stack_vars_alloc, stack_vars_num,
13543         stack_vars_sorted, stack_vars_conflict, stack_vars_conflict_alloc,
13544         frame_phase, get_decl_align_unit, add_stack_var, triangular_index,
13545         resize_stack_vars_conflict, add_stack_var_conflict,
13546         stack_var_conflict_p, add_alias_set_conflicts, stack_var_size_cmp,
13547         union_stack_vars, partition_stack_vars, dump_stack_var_partition,
13548         expand_one_stack_var_at, expand_stack_vars, expand_one_stack_var,
13549         expand_one_static_var, expand_one_hard_reg_var,
13550         expand_one_register_var, expand_one_error_var, defer_stack_allocation,
13551         expand_one_var, expand_used_vars_for_block, clear_tree_used): New.
13552         (expand_used_vars): Rewrite.
13553         * Makefile.in (cfgexpand.o): Update dependencies.
13554
13555 2004-09-04  Jan Hubicka  <jh@suse.cz>
13556
13557         * cfg.c (free_edge): Use ggc_free.
13558         (expunge_block): Use ggc_free.
13559         * passes.c (rest_of_clean_state): Free after compilation.
13560         * tree-ssa.c (delete_tree_ssa): Free annotations; call release_defs
13561         * tree-ssanames.c (release_defs): Ignore non-SSA_NAME arguments.
13562
13563 2004-09-03  James E Wilson  <wilson@specifixinc.com>
13564
13565         * tree-ssa-alias.c (may_be_aliased): Move TREE_STATIC check after
13566         DECL_EXTERNAL check.
13567
13568 2004-09-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
13569
13570         * final.c (output_in_slot): New global variable.
13571         (final_scan_insn): Add new state '2' to the 'nopeepholes' parameter.
13572         Pass 2 as 'nopeepholes' to self for insns in a SEQUENCE.  Set
13573         'output_in_slot' before invoking output_asm_insn.
13574         (output_asm_insn): Add a space after the tab if 'output_in_slot'
13575         is set.
13576         * config/sparc/sparc.c (output_return): Pass 2 as 'nopeepholes' to
13577         final_scan_insn.
13578         (output_sibcall): Likewise.
13579
13580 2004-09-03  Jan Hubicka  <jh@suse.cz>
13581
13582         * tree-ssa-operands.c (fini_ssa_operands): ggc_free unused arrays.
13583         * tree-ssanames (init_ssanames): Likewise.
13584
13585 2004-09-03  Ziemowit Laski  <zlaski@apple.com>
13586
13587         * stub-objc.c (objc_is_id, objc_declare_alias, objc_declare_class,
13588         objc_declare_protocols, objc_start_protocol,
13589         objc_start_class_interface, objc_start_category_interface,
13590         objc_continue_interface, objc_finish_interface,
13591         objc_add_instance_variable, objc_set_visibility, objc_set_method_type,
13592         objc_start_class_implementation, objc_start_category_implementation,
13593         objc_continue_implementation, objc_finish_implementation,
13594         objc_add_method_declaration, objc_start_method_definition,
13595         objc_finish_method_definition, objc_build_keyword_decl,
13596         objc_build_method_signature, objc_build_encode_expr,
13597         objc_build_protocol_expr, objc_build_selector_expr,
13598         objc_build_message_expr, objc_build_string_object,
13599         objc_get_class_reference, objc_get_protocol_qualified_type,
13600         objc_static_init_needed_p, objc_generate_static_init_call): New stubs.
13601
13602 2004-09-03  James E Wilson  <wilson@specifixinc.com>
13603
13604         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips3d.
13605
13606         * config/mips/generic.md (generic_frecip_fsqrt_step): New.
13607         * config/mips/mips-ps-3d.md (mips_rsqrt1_<fmt>): Use frsqrt1 type.
13608         (mips_rsqrt2_<fmt>): Use frsqrt2 type.
13609         (mips_recip1_<fmt>): Use frdiv1 type.
13610         (mips_recip2_<fmt>): Use frdiv2 type.
13611         * config/mips/mips.md (type): Add frdiv1, frdiv2, frsqrt1, frsqrt2.
13612         * config/mips/sb1.md (ir_sb1_fpu_2pipes, ir_sb1_fpu_1pipe): Add frdiv1
13613         and frsqrt1.
13614         (ir_sb1_fpu_step2_2pipes, ir_sb1_fpu_step2_1pipe): New.
13615
13616 2004-09-03  Daniel Jacobowitz  <dan@debian.org>
13617
13618         * reload.c (find_reloads): Swap operand_loc pointers for
13619         find_dummy_reload if we have swapped two operands.
13620
13621 2004-09-03  Hans-Peter Nilsson  <hp@axis.com>
13622
13623         * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn
13624         to get the tablejump-insn before the jump-table label.
13625
13626 2004-09-03  Ziemowit Laski  <zlaski@apple.com>
13627
13628         * c-common.h (objc_is_id, objc_declare_alias, objc_declare_class,
13629         objc_declare_protocols, objc_build_message_expr,
13630         objc_finish_message_expr, objc_build_selector_expr,
13631         objc_build_protocol_expr, objc_build_encode_expr,
13632         objc_build_string_object, objc_get_protocol_qualified_type,
13633         objc_get_class_reference, objc_get_class_ivars,
13634         objc_start_class_interface, objc_start_category_interface,
13635         objc_start_protocol, objc_continue_interface, objc_finish_interface,
13636         objc_start_class_implementation, objc_start_category_implementation,
13637         objc_continue_implementation, objc_finish_implementation,
13638         objc_set_visibility, objc_set_method_type, objc_build_method_signature,
13639         objc_add_method_declaration, objc_start_method_definition,
13640         objc_finish_method_definition, objc_add_instance_variable,
13641         objc_build_keyword_decl, objc_build_throw_stmt, objc_begin_try_stmt,
13642         objc_finish_try_stmt, objc_begin_catch_clause,
13643         objc_finish_catch_clause, objc_build_finally_clause,
13644         objc_build_synchronized, objc_static_init_needed_p,
13645         objc_generate_static_init_call): New prototypes.
13646
13647 2004-09-03  Steve Ellcey  <sje@cup.hp.com>
13648
13649         * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL even if there
13650         is only one reg.
13651         (ia64_function_value): Ditto.
13652
13653 2004-09-03  Jan Beulich  <jbeulich@novell.com>
13654
13655         * config.gcc: Resurrect NetWare as a target. Handle special case of
13656         Novell linker to be used (specified through --with-ld=) and threading
13657         model of either Posix (default) or NKS.
13658         * config/i386/i386.c (ix86_return_pops_args): Conditionalize popping
13659         of incoming hidden argument on KEEP_AGGREGATE_RETURN_POINTER.
13660         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): New.
13661         * config/i386/netware.c, config/i386/netware.h: New.
13662         * config/i386/nwld.c, config/i386/nwld.h: New.
13663         * config/i386/netware-crt0.c: New.
13664         * config/i386/netware-libgcc.c: New.
13665         * config/i386/netware-libgcc.def: New.
13666         * config/i386/netware-libgcc.exp: New.
13667         * config/i386/t-netware, config/i386/t-nwld: New.
13668         * gthr-nks.h: New.
13669         * doc/install.texi: Document NKS threading model.
13670
13671 2004-09-03  Jan Beulich  <jbeulich@novell.com>
13672
13673         PR c/7054
13674         * defaults.h (TARGET_DEFAULT_PACK_STRUCT): Provide default.
13675         * tree.h (initial_max_fld_align): Declare
13676         * stor-layout.c (initial_max_fld_align): Define and initialize.
13677         (maximum_field_alignment): Initialize to the same value.
13678         * common.opt: Add -fpack-struct= variant of switch.
13679         * opts.c: Handle -fpack-struct= variant of switch.
13680         * c-pragma.c: Change #pragma pack() handling so that it becomes
13681         compatible to other compilers: accept individual 'push' argument,
13682         make final pop restore (command line) default, correct interaction
13683         of push/pop and sole specification of a new alignment (so that the
13684         sequence #pragma pack(push) - #pragma pack(<n>) becomes identical
13685         to #pragma pack(push, <n>).
13686         * doc/extend.texi: New node "Structure-Packing Pragmas" under
13687         "Pragmas", describing #pragma pack.
13688         * doc/invoke.texi: Document -fpack-struct=<n> variant of switch.
13689         * doc/tm.texi: Adjust description for HANDLE_PRAGMA_PACK_PUSH_POP.
13690         Document new TARGET_DEFAULT_PACK_STRUCT.
13691
13692 2004-09-03  Devang Patel  <dpatel@apple.com>
13693
13694         * dwarf2out.c (gen_field_die). Equate decl number to die.
13695
13696 2004-09-03  Vladimir Makarov  <vmakarov@redhat.com>
13697
13698         PR target/15832
13699         * global.c (modify_reg_pav): New function.
13700         (make_accurate_live_analysis): Call the new function.  Move pavin
13701         modification by earlyclobber set into the new function.
13702
13703 2004-09-03  Andreas Schwab  <schwab@suse.de>
13704
13705         * config/m68k/m68k.c (output_andsi3): Use -1 instead of
13706         (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
13707         extended.
13708
13709 2004-09-02  Jan Beulich  <jbeulich@novell.com>
13710
13711         * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
13712         * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
13713         not unwind code specific ones.
13714         (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
13715         Remove unwind code specific dependencies.
13716         (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
13717         Remove gbl-ctors.h.
13718         Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
13719         LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
13720         * tsystem.h: Declare memcpy and memset when inhibit_libc.
13721
13722 2004-09-02  Roman Zippel  <zippel@linux-m68k.org>
13723
13724         * combine.c (try_combine): Delay modifying of insns which cannot
13725         be easily undone.
13726
13727 2004-09-02  Daniel Berlin  <dberlin@dberlin.org>
13728
13729         * gcc/common.opt: Rename ivcanon to tree-loop-ivcanon, tree-lim to
13730         tree-loop-im.
13731         * gcc/tree-ssa-loop.c: Ditto
13732         * gcc/tree-ssa-loop-ivcanon.c: Ditto
13733         * gcc/doc/invoke.texi: Ditto.
13734
13735 2004-09-02  Ziemowit Laski  <zlaski@apple.com>
13736
13737         * c-decl.c (store_parm_decls_newstyle): Make static.
13738         (store_parm_decls_from): New function.
13739         * c-tree.h (store_parm_decls_newstyle): Remove prototype.
13740         (store_parm_decls_from): New prototype.
13741
13742 2004-09-02  David Edelsohn  <edelsohn@gnu.org>
13743
13744         * config/rs6000/rs6000.c (expand_block_move): Use SImode and
13745         HImode with STRICT_ALIGNMENT.
13746
13747 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
13748
13749         * config/arm/bpabi.h (TARGET_BPABI_CPP_BUILTINS): Define.
13750         (TARGET_OS_CPP_BUILTINS): Likewise.
13751         * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Include
13752         TARGET_BPABI_CPP_BUILTINS.
13753
13754 2004-09-02  Roman Zippel  <zippel@linux-m68k.org>
13755
13756         * combine.c (distribute_notes): Don't add REG_LABEL to jump insn.
13757
13758 2004-09-02  Eric Christopher  <echristo@redhat.com>
13759
13760         * builtins.c (expand_builtin_cabs): Delete.
13761         (expand_builtin): If unable to fold the values do a normal
13762         library call for builtin_cab*.
13763         (fold_builtin_cabs): Depend on optimize and optimize_size.
13764         * optabs.c (expand_cmplxdiv_straight): Delete.
13765         (expand_cmplxdiv_wide): Ditto.
13766         (expand_vector_binop): Ditto.
13767         (expand_vector_unop): Ditto.
13768         (expand_complex_abs): Delete.
13769         (expand_binop): Remove calls to above functions.
13770         Remove open coding of complex arithmetic.
13771         (expand_unop): Ditto.
13772         * optabs.h: Remove prototypes.
13773
13774 2004-09-02  Ziemowit Laski  <zlaski@apple.com>
13775
13776         * c-decl.c (store_parm_decls_newstyle): Make externally visible.
13777         * c-tree.h (store_parm_decls_newstyle): New prototype.
13778
13779 2004-09-02  Geoffrey Keating  <geoffk@apple.com>
13780
13781         * config/rs6000/rs6000.c (expand_block_clear): Use vector
13782         instructions if available.
13783         (expand_block_move): Likewise.
13784
13785 2004-09-03  Jan Hubicka  <jh@suse.cz>
13786
13787         * rtl.def (RANGE_INFO, RANGE_REG, RANGE_VAR, RANGE_LIVE): Kill.
13788
13789 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
13790
13791         * config/arm/symbian.h (LIB_SPEC): Define to empty.
13792         * config/arm/t-symbian (SHLIB_LC): Likewise.
13793
13794 2004-09-02  Paul Brook  <paul@codesourcery.com>
13795
13796         * config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
13797
13798 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
13799
13800         * config/mips/mips.c (mips_classify_symbol, mips_fetch_insns):
13801         (mips_restore_gp, mips_set_return_address, mips_expand_prologue)
13802         (mips16_fp_args, mips_avoid_hazard): Replace abort with gcc_assert.
13803         (build_mips16_call_stub): Likewise.  Remove daft CALL_INSN checks.
13804         (mips_issue_rate): Remove unreachable abort.
13805         (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
13806         (mips_output_move, mips_relational_operand_ok_p, mips_arg_info)
13807         (mips_block_move_straight, print_operand_address, mips_file_start)
13808         (mips_initial_elimination_offset, mips16_fp_args, dump_constants_1)
13809         (mips_output_conditional_branch, mips_expand_builtin_direct)
13810         (mips_expand_builtin_compare): Replace abort with gcc_unreachable.
13811         * config/mips/mips.md (rotr<mode>3, consttable_float): Replace abort
13812         with gcc_assert.
13813
13814 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
13815
13816         * config/mips/mips.md (*lea_high64): Change split condition to
13817         flow2_completed.  Add a peephole2 to generate a more parallel version.
13818
13819 2004-09-02  Jan Hubicka  <jh@suse.cz>
13820
13821         * gimplify.c (gimplify_compound_lval): Move "stack" varray out of
13822         GGC.
13823
13824         * ggc-page.c: include tree-flow.h.
13825         (extra_order_size_table): Add stmt_ann_d.
13826         (STAT_LABEL): Rename from ....
13827         (LABEL): ... this one.
13828         * Makefile.in (ggc-page.o): Add dependency.
13829
13830         * ggc-common.c (ggc_force_collect): New global variable.
13831         (loc_description): Add fields "freed", "collected"
13832         (ptr_hash): New static hash
13833         (ptr_hash_entry): New structure.
13834         (hash_ptr,eq_ptr,ggc_prune_ptr): New static functions.
13835         (ggc_record_overhead): Take ptr argument, record it
13836         (ggc_prune_overhead_list, ggc_free_overhead): New functions.
13837         (cmp_statistics): Imrove sorting.
13838         (dump_ggc_loc_statistics): Output newly collected statistics
13839         * ggc-page.c (ggc_alloc): Update call of ggc_record_overhead
13840         (ggc_free): Call ggc_free_overhead.
13841         (ggc_collect): Force collection when asked to be forced.
13842         (ggc_collect): Call ggc_prune_overhead_list.
13843         * ggc.h (ggc_force_collect): Declare
13844         (ggc_record_overhead): Update prototype.
13845         (ggc_free_overhead, ggc_prune_overhead_list): Declare.
13846
13847 2004-09-02  James E Wilson  <wilson@specifixinc.com>
13848
13849         * common.opt (ftrapping-math): Default to on.
13850
13851 2004-09-02  Richard Earnshaw  <rearnsha@arm.com>
13852
13853         * arm/predicates.md (arm_reload_memory_operand): Allow MEM.
13854
13855 2004-09-02  Denis Chertykov  <denisc@overta.ru>
13856
13857         PR target/16884
13858         * config/avr/avr.md ("movmemhi"): Substitute match_dup to
13859         match_scratch.
13860         (*movmemqi_insn): Likewise.
13861         (*movmemhi): Likewise.
13862         (clrmemhi): Likewise.
13863         (*clrmemqi): Likewise.
13864         (*clrmemhi): Likewise.
13865
13866 2004-09-02  Paul Brook  <paul@codesourcery.com>
13867
13868         * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
13869         default_use_cxa_atexit=yes.
13870
13871 2004-09-02  Alan Modra  <amodra@bigpond.net.au>
13872
13873         * config/rs6000/linux64.h: Don't include signal.h or sys/ucontext.h.
13874         (struct kernel_old_ucontext): Delete.
13875         (struct gcc_pt_regs, gcc_sigcontext, gcc_ucontext): New.
13876         (MD_FALLBACK_FRAME_STATE_FOR): Use gcc_* structs.  Only define
13877         when IN_LIGGCC2.
13878
13879 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
13880
13881         * toplev.c (process_options): Fix typo.
13882
13883 2004-09-01  Richard Henderson  <rth@redhat.com>
13884
13885         PR middle-end/17258
13886         * calls.c (initialize_argument_information): Tighten pass-through
13887         conditions for pass-by-reference.  Remove dead TARGET_EXPR code.
13888         Use build_fold_addr_expr.
13889         (emit_library_call_value_1): Use build_fold_addr_expr.  Remove code
13890         that assumes ADDR_EXPR allocates stack space.
13891         * fold-const.c (build_fold_addr_expr_with_type): Look through
13892         WITH_SIZE_EXPR.
13893
13894 2004-09-01  Dan Nicolaescu  <dann@ics.uci.edu>
13895
13896         * gengenrtl.c (gendef): Use rtx_alloc, don't do PUT_CODE.
13897         * ggc.h (ggc_alloc_rtx): Delete.
13898
13899 2004-09-01  Roger Sayle  <roger@eyesopen.com>
13900
13901         * expmed.c (enum alg_code): Remove long unused enumeration values.
13902         (struct mult_cost): New structure to hold the "score" of a synthetic
13903         multiply sequence, including both a rtx_cost and a latency field.
13904         (MULT_COST_LESS): New macro to compare mult_cost to a constant.
13905         (CHEAPER_MULT_COST): New macro to compare two mult_costs.
13906         (struct algorithm): Change type of cost field to be mult_cost.
13907         (synth_mult): Change type of cost_limit argument to be a
13908         pointer to a mult_cost.  Update all cost comparisons to use the
13909         new mult_cost infrastructure.  For alg_add_factor and
13910         alg_sub_factor operations, latency is lower than the rtx_cost.
13911         (choose_mult_variant):  Update calls to synth_mult.  Perform
13912         cost comparisons using the new mult_cost infrastructure.
13913         (expand_mult_highpart): Use alg.cost.cost instead of alg.cost
13914         to optain the total rtx_cost of a synth_mult "algorithm".
13915
13916 2004-09-01  David Edelsohn  <edelsohn@gnu.org>
13917
13918         * config/rs6000/power4.md: Increase store latency to 12.
13919         * config/rs6000/power5.md: Same.
13920
13921 2004-09-01  James E Wilson  <wilson@specifixinc.com>
13922
13923         PR target/14064
13924         * config/avr/avr.c (avr_unique_section): Delete prototype and
13925         definition.
13926         (TARGET_ASM_UNIQUE_SECTION): Delete.
13927
13928 2004-09-01  Ziemowit Laski  <zlaski@apple.com>
13929
13930         * c-parse.in (primary): Call objc_build_message_expr(),
13931         objc_build_selector_expr(), objc_build_protocol_expr(),
13932         objc_build_encode_expr() and objc_build_string_object() instead of
13933         build_message_expr(), build_selector_expr(), build_protocol_expr(),
13934         build_encode_expr() and build_objc_string_object(), respectively.
13935         (component_decl_list2): Call objc_get_class_ivars() instead of
13936         get_class_ivars_from_name().
13937         (keyworddecl): Call objc_build_keyword_decl() instead of
13938         build_keyword_decl().
13939         (receiver): Call objc_get_class_reference() instead of
13940         get_class_reference().
13941         (reswords): Add blank line before @@ifobjc section, for clarity.
13942
13943 2002-09-01  Fariborz Jahanian <fjahanian@apple.com>
13944
13945         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
13946         to Altivec vetors.
13947
13948 2004-09-01  Wu Yongwei  <adah@sh163.net>
13949             Danny Smith  <dannysmith@users.sourceforge.net>
13950
13951         * gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
13952         not Windows 'DWORD'.
13953         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
13954         (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
13955         (__gthr_win32_recursive_mutex_init_function): Add prototype for
13956         __GTHREAD_HIDE_WIN32API case..
13957         (__gthr_win32_recursive_mutex_lock): Likewise.
13958         (__gthr_win32_recursive_mutex_trylock): Likewise.
13959         (__gthr_win32_recursive_mutex_unlock): Likewise.
13960         (__gthread_recursive_mutex_init_function); Add definition for
13961         __GTHREAD_HIDE_WIN32API case.
13962         (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
13963         * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
13964         call to InterlockedDecrement.
13965
13966 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13967
13968         * tree-tailcall.c (find_tail_calls): Also fail is statement has
13969         volatile operands.
13970
13971         * tree-ssa.c (propagate_into_addr): Properly test for LHR.
13972
13973         * doc/c-tree.texi: Document new operands for ARRAY_REF and
13974         COMPONENT_REF.
13975
13976 2004-09-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13977
13978         * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
13979         * common.opt (fspeculative-prefetching): New.
13980         * flags.h (flag_speculative_prefetching_set): Declare.
13981         * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
13982         values.
13983         * opts.c (flag_sepculative_prefetching_set): New variable.
13984         (common_handle_option): Handle -fspeculative-prefetching.
13985         * passes.c (rest_of_compilation): Ditto.
13986         * profile.c (instrument_values, compute_value_histograms, branch_prob):
13987         Use vectors instead of arrays.
13988         * toplev.c (process_options): Handle -fspeculative-prefetching.
13989         * rtl-profile.c: Include ggc.h.
13990         (rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
13991         rtl_gen_one_value_profiler_no_edge_manipulation,
13992         rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
13993         argument changed.
13994         * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
13995         tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
13996         argument changed.
13997         * value-prof.c: Include ggc.h.
13998         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
13999         macros.
14000         (insn_prefetch_values_to_profile, find_mem_reference_1,
14001         find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
14002         speculative_prefetching_transform): New.
14003         (value_profile_transformations): Call speculative_prefetching_transform.
14004         (insn_values_to_profile): Call insn_prefetch_values_to_profile.
14005         (insn_divmod_values_to_profile, rtl_find_values_to_profile,
14006         tree_find_values_to_profile, find_values to profile): Use vectors
14007         instead of arrays.
14008         (free_profiled_values): Removed.
14009         * value-prof.h (struct histogram_value): Renamed to
14010         struct histogram_value_t.
14011         (histogram_value, histogram_values): New types.
14012         (find_values_to_profile): Declaration changed.
14013         (free_profiled_values): Removed.
14014         (struct profile_hooks): Type of argument of the hooks changed to
14015         histogram_value.
14016         * doc/invoke.texi (-fspeculative-prefetching): Document.
14017
14018 2004-09-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14019
14020         PR rtl-optimization/16408
14021         * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.
14022
14023 2004-09-01  Richard Henderson  <rth@redhat.com>
14024
14025         * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
14026         (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
14027
14028 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
14029
14030         * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
14031
14032 2004-09-01  Mike Stump  <mrs@apple.com>
14033
14034         * config/darwin.c (machopic_symbol_defined_p): In addition to
14035         being SYMBOL_REF_LOCAL_P, a symbol must also be
14036         ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
14037         defined in this output file, or translation unit in the case
14038         of IMA not being used.
14039         (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
14040         never need .indirect_symbol when indirecting.
14041
14042 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
14043
14044         * Makefile.in (bb-reorder.o): Add several dependencies.
14045
14046 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
14047
14048         * fold-const.c (operand_equal_p): Require equal sign also for
14049         FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
14050
14051 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
14052
14053         * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
14054         for use in configargs.h.  Put the cname in a separate variable.  Use
14055         that to set target_cpu_default2.
14056
14057 2004-09-01  J"orn Rennecke <joern.rennecke@superh.com>
14058             Nick Clifton  <nickc@redhat.com>
14059
14060         * config/sh/sh.md ("length"): Increase branch length when
14061         SH1 pic code to 18: 12 bytes of instructions, 4 byte for the
14062         constant, 2 byte for aligning the constant.
14063
14064 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
14065
14066         * arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
14067         CPU.
14068         (arm7tdmi-s): New CPU name.
14069         * arm/arm.c (ARM_CORE): Update for new format.
14070         * arm/arm.h (ARM_CORE): Likewise.
14071         * arm/gentune.sh: Update for extra field.
14072         * config.gcc: Likewise.
14073         * arm/arm-tune.md: Regenerate.
14074         * doc/invoke.texi: Document the real processor names for ARM cpus.
14075
14076 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
14077
14078         * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
14079         (floatdidf): New functions.
14080         * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
14081         (floatdisf): New functions.
14082         * t-arm-elf: Use them.
14083
14084 2004-09-01  Ziemowit Laski  <zlaski@apple.com>
14085
14086         * c-common.h (lookup_interface): Remove prototype.
14087         (is_class_name): Rename to objc_is_class_name.
14088         (lookup_objc_ivar): Rename to objc_lookup_ivar.
14089         (get_current_scope): Rename to objc_get_current_scope.
14090         * c-decl.c (get_current_scope): Rename to objc_get_current_scope.
14091         * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
14092         (yylexname): Call objc_is_class_name() instead of is_class_name().
14093         * c-typeck.c (build_external_ref): Call objc_lookup_ivar()
14094         instead of lookup_objc_ivar().
14095         * stub-objc.c (lookup_interface): Remove stub.
14096         (is_class_name): Rename to objc_is_class_name.
14097         (lookup_objc_ivar): Rename to objc_lookup_ivar.
14098
14099 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
14100
14101         * config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
14102         * config/arm/lib1funcs.asm: Do not include supplemental .S files
14103         when compiling for Symbian.
14104         * config/arm/symbian.h (RENAME_LIBRARY): New macro.
14105         (TARGET_OS_CPP_BUILTINS): Likewise.
14106         * config/arm/t-symbian (LIB1ASMFUNCS): Define.
14107
14108 2004-08-31  Stan Shebs  <shebs@apple.com>
14109
14110         * toplev.c (process_options): Ensure debug_hooks is initialized.
14111
14112 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
14113
14114         * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
14115         * target.h (cxx): Add export_class_data.
14116         * config/arm/arm.c (arm_cxx_export_class_data): New function.
14117         (TARGET_CXX_EXPORT_CLASS_DATA): Use it.
14118         * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Document it.
14119
14120 2004-08-31  Kaz Kojima  <kkojima@gcc.gnu.org>
14121
14122         * config/sh/sh.c (output_branch): Check the insn length possibly
14123         in the delayed slot.
14124
14125 2004-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14126
14127         * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
14128         blank after ')'.
14129         (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.
14130
14131         * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
14132         (c_sizeof_of_alignof_type): Likewise.
14133         * expr.c (array_ref_element_size): Likewise.
14134         (highest_pow2_factor_for_target): Likewise.
14135         * gimplify.c (canonicalize_addr_expr): Likewise.
14136         (gimplify_compound_lval): Likewise.
14137         * stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
14138         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
14139         * varasm.c (assemble_variable): Likewise.
14140         (output_constant_def_contents): Alignments are unsigned.
14141
14142 2004-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14143             Jeff Law  <law@redhat.com>
14144
14145         * tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
14146         gets modified.
14147
14148 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
14149
14150         * hooks.c (hook_bool_void_true): New function.
14151         * hooks.h (hook_bool_void_true): Declare.
14152         * target-def.h (TARGET_CXX): Add
14153         TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.
14154         * target.h (struct cxx): Add key_method_may_be_inline.
14155         * config/arm/arm.c (arm_cxx_key_method_may_be_inline): New
14156         function.
14157         (TARGET_CXX_KEY_METHOD_MAY_BE_INLINE): New macro.
14158         * config/arm/bpabi.h: Use __THUMB_INTERWORK__ instead of
14159         __THUMB_INTERWORK.
14160
14161 2004-08-31  Denis Chertykov  <denisc@overta.ru>
14162
14163         PR target/15417
14164         * config/avr/avr.c (avr_hard_regno_mode_ok): Enable usage of
14165         frame pointer register only in Pmode while reload in progress.
14166
14167 2004-08-31  Stephane Carrez  <stcarrez@nerim.fr>
14168
14169         PR target/15334
14170         * config/m68hc11/m68hc11.c (m68hc11_override_options): Disable -fweb
14171         because it breaks the 32-bit shift patterns that rely on a match_dup.
14172
14173 2004-08-31  Matt Austern  <austern@apple.com>
14174
14175         * config/darwin.c (darwin_make_decl_one_only): Allocate section
14176         names once per compilation, instead of once per symbol.
14177
14178 2004-08-31  Paolo Bonzini  <bonzini@gnu.org>
14179
14180         * Makefile.in (build_subdir): New substitution.
14181         (fixinc.sh): Simplify heavily since fixincludes is already built.
14182         (stmp-fixinc): Depend on specs.ready.
14183         (install-mkheaders): Use new location of fixincludes.
14184         (clean): Do not descend into fixinc.
14185         (FORBUILD): Replace with ../$(build_subdir).
14186         * configure.ac (build_subdir): Substitute.
14187         (FORBUILD): Do not set.
14188         (all_outputs): Remove fixinc/Makefile.
14189         (default commands): Do not create links in fixinc.
14190         * mkfixinc.sh: New, from fixinc/mkfixinc.sh without
14191         the fixincludes configuration steps and substituting
14192         @FIXINCL@ in fixinc.in.
14193         * fixinc.in: New, from fixinc/fixincl.sh.
14194
14195         * fixinc/*: Removed.
14196
14197 2004-08-31  Joseph S. Myers  <jsm@polyomino.org.uk>
14198
14199         * attribs.c (strip_attrs): Remove.
14200         (split_specs_attrs): Move ...
14201         * c-decl.c: ... to here.
14202         * tree.h (split_specs_attrs, strip_attrs): Remove.
14203         * c-tree.h (split_specs_attrs): Declare.
14204
14205 2004-08-31  Richard Sandiford  <rsandifo@redhat.com>
14206
14207         * read-rtl.c: Disable RTL checking.
14208         (apply_macro_to_rtx): Use XTMPL to access 'T' fields.
14209
14210 2004-08-31  Richard Sandiford  <rsandifo@redhat.com>
14211
14212         * config/mips/mips.md (fcond): New code macro and attribute.
14213         (sunordered_[sd]f, suneq_[sd]f, sunlt_[sd]f, sunle_[sd]f)
14214         (seq_[sd]f, slt_[sd]f, sle_[sd]f): Redefine using :SCALARF and fcond.
14215         (sgt_[sd]f, sge_[sd]f): Redefine using :SCALARF.
14216
14217 2004-08-30  Mark Mitchell  <mark@codesourcery.com>
14218
14219         Revert:
14220         2004-08-29  Mark Mitchell  <mark@codesourcery.com>
14221         PR rtl-optimization/16590
14222         * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
14223
14224 2004-08-30  Andrew Pinski  <apinski@apple.com>
14225
14226         * hard-reg-set.h:
14227         s/HOST_BITS_PER_WIDES_FAST_INT/HOST_BITS_PER_WIDEST_FAST_INT.
14228         * ChangeLog: Fix previous ChangeLog entry.
14229
14230         PR rtl-opt/13987
14231         * config.host (use_long_long_for_widest_fast_int): New, default is
14232         off.
14233         (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int.
14234         * configure.ac: If use_long_long_for_widest_fast_int, then
14235         define USE_LONG_LONG_FOR_WIDEST_FAST_INT.
14236         * configure: Regenerate.
14237         * config.in: Regenerate.
14238         * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT):
14239         New: widest integer type supported efficiently in hardware for the
14240         host.
14241         * sbitmap.h (SBITMAP_ELT_BITS): Define based on
14242         HOST_BITS_PER_WIDEST_FAST_INT.
14243         (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT.
14244         * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on
14245         HOST_WIDEST_FAST_INT
14246         instead of HOST_WIDE_INT.
14247         (HARD_REG_SET_LONGS): Likewise.
14248         (UHOST_BITS_PER_WIDE_INT): Likewise.
14249         Change the checks for the fast cases to be based on
14250         HOST_BITS_PER_WIDEST_FAST_INT instead of HOST_BITS_PER_WIDE_INT.
14251
14252 2004-08-30  Steven Bosscher  <stevenb@suse.de>
14253
14254         * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
14255         not the pointers.
14256
14257 2004-08-30  Geoffrey Keating  <geoffk@apple.com>
14258
14259         PR 12738
14260         PR 17205
14261         Radar 3460526
14262         Radar 3775729
14263         * c-decl.c (grokdeclarator): Produce error for 'static' on local
14264         function declaration.
14265
14266 2004-08-30  Richard Henderson  <rth@redhat.com>
14267
14268         * expr.c (array_ref_element_size): Force aligned_size back to
14269         sizetype.
14270         (component_ref_field_offset): Similarly for aligned_offset.
14271         * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
14272         low-bound, element-size, field-offset fields rather than
14273         computed values.
14274
14275 2004-08-30  Joseph S. Myers  <jsm@polyomino.org.uk>
14276
14277         * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
14278         redundant code.
14279
14280 2004-08-30  Joseph S. Myers  <jsm@polyomino.org.uk>
14281
14282         * c-tree.h (struct language_function): Add arg_info element.
14283         * c-decl.c (current_function_arg_info): New.
14284         (grokdeclarator, store_parm_decls): Use it instead of
14285         DECL_ARGUMENTS.
14286         (c_push_function_context, c_pop_function_context): Save and
14287         restore it.
14288
14289 2004-08-30  Richard Henderson  <rth@redhat.com>
14290
14291         * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
14292         COMPONENT_REF to pointer arithmetic.
14293         * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
14294         constant "c" as a valid constant initializer.  Allow narrowing of
14295         differences against the same base object, for any base object.
14296
14297 2004-08-30  Richard Henderson  <rth@redhat.com>
14298
14299         * expr.c (expand_expr_addr_expr): New.
14300         (expand_expr_real_1) <case ADDR_EXPR>: Use it.
14301
14302 2004-08-30  Richard Sandiford  <rsandifo@redhat.com>
14303
14304         * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
14305         (mips_fp_condition): New enum.
14306         (mips_fp_conditions): New array.
14307         (print_fcc_operand): Delete.
14308         (print_operand): Remove %V, %v and %Q.  Redefine %Z so that it prints
14309         the operand and comma if and only if ISA_HAS_8CC.  Add %Y.
14310         (builtin_description): Add "cond" field.
14311         (DIRECT_BUILTIN): Initialize it.
14312         (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
14313         into INSN and CODE.  Initialize the "cond" field.
14314         (CMP_BUILTINS): Update accordingly.
14315         (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
14316         (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
14317         mips_fp_condition as argument.  Make it the final operand of the
14318         comparison instruction.
14319         (mips_expand_builtin): Update accordingly.
14320         * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
14321         (UNSPEC_C, UNSPEC_CABS): New constants.  Shuffle others to fill
14322         the gaps.
14323         * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
14324         Don't use the 'Q' operand prefix; just print the operand normally.
14325         (mips_cabs_*, mips_c_*): Delete, replacing with...
14326         (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
14327         patterns.  Split the 4s versions into 2 ps patterns after reload.
14328
14329 2004-08-30  Richard Henderson  <rth@redhat.com>
14330
14331         * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
14332         assuming an ADDR_EXPR is non-null.
14333
14334 2004-08-30  Jason Merrill  <jason@redhat.com>
14335
14336         * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
14337
14338 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
14339
14340         * alias.c (mems_in_disjoint_alias_sets_p, record_alias_subset,
14341         record_set, rtx_equal_for_memref_p, init_alias_analysis): Use
14342         gcc_assert and gcc_unreachable instead of abort.
14343         * alloc-pool.c (abort, fancy_abort): Remove.
14344         (create_alloc_pool, free_alloc_pool, pool_alloc, pool_free): Use
14345         gcc_assert or gcc_unreachable.
14346         * attribs.c (init_attributes, decl_attributes): Likewise.
14347         * bb-reorder.c (FREE, find_traces_1_round, copy_bb,
14348         mark_bb_for_unlikely_executed_section,
14349         add_labels_and_missing_jumps, fix_crossing_conditional_branches,
14350         fix_crossing_unconditional_branches):  Likewise.
14351         * bitmap.c (bitmap_first_set_bit, bitmap_last_set_bit,
14352         bitmap_operation):  Likewise.
14353         * bt-load.c (insn_sets_btr_p, augment_live_range,
14354         move_btr_def):  Likewise.
14355         * builtins.c (c_readstr, expand_builtin_longjmp, apply_args_size,
14356         apply_result_size, expand_builtin_apply, expand_builtin_mathfn,
14357         expand_builtin_mathfn_2, expand_builtin_mathfn_3,
14358         builtin_memcpy_read_str, expand_movstr, expand_builtin_stpcpy,
14359         expand_builtin_memcmp, expand_builtin_args_info,
14360         std_gimplify_va_arg_expr, expand_builtin_unop,
14361         expand_builtin_fputs, expand_builtin_profile_func,
14362         expand_builtin_fork_or_exec, fold_builtin_bitop,
14363         fold_builtin_classify, fold_builtin_fputs): Likewise.
14364
14365 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
14366
14367         * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
14368         * gcov.c (abort): Remove undef.
14369
14370         * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
14371         (struct tree_binfo): Remove primary field.
14372
14373 2004-08-30  Paolo Bonzini  <bonzini@gnu.org>
14374
14375         * fixinc/Makefile.in (machname.h): Remove.
14376         (fixincl.x): Do not pass $@ to genfixes.
14377         * fixinc/genfixes: Remove code to produce machname.h.
14378         * fixinc/fixincl.sh: Move it here instead.
14379         * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
14380         instead check if pz_mn_name_pat is NULL.  Make mn_get_regexps
14381         return a bool indicating whether pz_mn_name_pat is NULL.
14382         * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
14383         Declare extern C variables for the ENV_TABLE.
14384         * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
14385         instead use the result of mn_get_regexps.
14386         * fixinc/fixtests.c: Likewise.
14387
14388 2004-08-30  Paolo Bonzini  <bonzini@gnu.org>
14389
14390         * configure.ac: Do not run fixincludes after stage1 during
14391         toplevel bootstrap.
14392         * configure: Regenerate.
14393
14394 2004-08-30  Richard Earnshaw  <rearnsha@arm.com>
14395
14396         * sched-deps.c (get_condition): Partially revert previous, by never
14397         trying to extract the condition from a condjump.
14398
14399 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
14400
14401         * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
14402         (handle_visibility_attribute, c_determine_visibility): Likewise.
14403         * c-common.h (my_friendly_assert): Remove.
14404
14405 2004-08-30  Richard Sandiford  <rsandifo@redhat.com>
14406
14407         * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
14408         (UNSPEC_{RSQRT,RECIP}[12]): New constants.
14409         (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
14410         * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
14411         (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
14412
14413 2004-08-30  Diego Novillo  <dnovillo@redhat.com>
14414
14415         * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
14416         in COMPONENT_REF nodes.
14417
14418 2004-08-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
14419
14420         PR c++/15378
14421         * c-opts.c (c_common_handle_option): <case OPT_Werror> set
14422         global_dc->warning_as_error_requested.
14423         * diagnostic.c (diagnostic_initialize): Tidy.
14424         * diagnostic.h (diagnostic_context::x_data): Remove
14425         (diagnostic_context::issue_warnings_are_errors_message): Rename
14426         from warnings_are_errors_message.
14427         (diagnostic_context::warning_as_error_requested): New.
14428
14429 2004-08-30  Richard Earnshaw  <rearnsha@arm.com>
14430
14431         * sched-deps.c (get_condition): Fix breakage in previous patch.
14432
14433 2004-08-30  Paul Brook  <paul@codesourcery.com>
14434
14435         * doc/install.texi: Fix broken mpfr link.
14436
14437 2004-08-29  David O'Brien  <obrien@FreeBSD.org>
14438
14439         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
14440         other FreeBSD platforms.
14441
14442 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
14443
14444         * arm.h (REVERSE_CONDITION): Define.
14445         (REVERSIBLE_CC_MODE): All comparisons are now reversible.
14446
14447 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
14448
14449         * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
14450         just the codes, call reversed_comparison_code ().
14451         (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
14452         (not_reg_cond): Use reversed_comparison_code.
14453         (and_reg_cond): Likewise.
14454         * ifcvt.c (cond_exec_process_if_block): Likewise.
14455         * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
14456
14457 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
14458
14459         * sched-deps.c (get_condition): Rewrite using jump support functions.
14460         Use reversed_comparison_code.
14461         (conditions_mutex_p): Use reversed_comparison_code.
14462
14463 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
14464
14465         * config/mips/mips.c (override_options): Disable hot/cold partitioning
14466         for MIPS16.
14467
14468 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
14469
14470         * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
14471         (mips_function_type): Move to mips.c.
14472         * config/mips/mips.c (mips_builtin_type): New enum.
14473         (builtin_description): Replace code and ftype with builtin_type
14474         and function_type.
14475         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
14476         (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
14477         (CODE_FOR_mips_abs_ps): Define.
14478         (mips_bdesc): Use new macros.
14479         (mips_expand_builtin): Use builtin_type.  Update calls to subroutines.
14480         (mips_init_builtins): Use the mips_bdesc[] index as the function code.
14481         (mips_expand_builtin_direct): New function.
14482         (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
14483         builtin.  Replace boolean parameter with builtin_type.
14484         (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
14485         (mips_expand_4s_compare_builtin): Delete, replacing with...
14486         (mips_expand_builtin_compare): ...this new function.
14487
14488 2004-08-29  Mark Mitchell  <mark@codesourcery.com>
14489
14490         PR rtl-optimization/16590
14491         * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
14492
14493 2004-08-29  Diego Novillo  <dnovillo@redhat.com>
14494
14495         * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
14496         * tree-ssa-propagate.c: Fix documentation.
14497
14498 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
14499
14500         * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
14501         (mov[sd]fcc): Likewise.
14502
14503 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
14504
14505         * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
14506
14507 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
14508
14509         * config/mips/mips.md (divide_condition): New mode attribute.
14510         (div[sd]f3, *div[sd]f3): Use it.  Redefine using :SCALARF.
14511         (sqrt[sd]f3): Redefine using SCALARF.
14512         (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise.  Name formerly unnamed
14513         patterns.
14514
14515 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
14516
14517         * config/mips/mips.md (ANYF, SCALARF): New mode macros.
14518         (loadx, storex, fmt, UNITMODE): New mode attributes.
14519         (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
14520         (mul[sd]f3): Redefine using :SCALARF.
14521         (*mul[sd]f3): Renamed from mul[sd]f3_internal.  Use :SCALARF.
14522         (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
14523         (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns.  Use :ANYF.
14524         Check TARGET_FUSED_MADD for V2SF too.
14525         (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
14526         were already named.
14527         (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
14528         (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
14529
14530 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
14531
14532         * config/mips/mips.c (mips_init_builtins): Simplify.  Only create
14533         V2SF_type_node if it will be needed.
14534
14535 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
14536
14537         * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
14538         * config/mips/mips.c (mips_prepare_builtin_arg): New function.
14539         (mips_prepare_builtin_target): New function.
14540         (mips_expand_builtin): Use them.  Update calls to subroutines.
14541         (mips_expand_ps_cond_move_builtin): Use the new functions.  Replace
14542         cmp_choice with a boolean argument to select between movt and movf.
14543         Take the comparison's icode as an argument, not the function's fcode.
14544         (mips_expand_compare_builtin): New function.  Rename existing function
14545         to mips_expand_scalar_compare_builtin.
14546         (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
14547         (mips_expand_ps_compare_builtin): Use the new functions.  Take the
14548         comparison's icode as an argument, not the builtin's fcode.
14549
14550 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
14551
14552         * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
14553         (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
14554         registers are false and -1 if all registers are true.
14555         (mips_expand_ps_compare_builtin): Likewise CCV2.  Use subregs for
14556         MIPS_CMP_UPPER and MIPS_CMP_LOWER.
14557         * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
14558         (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
14559         (bc1any2t, bc1any2f): Likewise CCV2.
14560         (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
14561
14562 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
14563
14564         * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
14565         * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
14566         UNSPEC rather than an IF_THEN_ELSE.
14567         * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
14568         mips_cond_move_tf_ps by name.
14569
14570 2004-08-29  Chao-ying Fu  <fu@mips.com>
14571             James E Wilson  <wilson@specifixinc.com>
14572
14573         * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
14574         8 byte size and alignment.  Give CCV4 16 byte size and alignment.
14575         * config/mips/mips-ps-3d.md: New file.
14576         * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
14577         TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
14578         (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
14579         (mips_output_move): Emit "mov.ps" for V2SFmode.
14580         (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
14581         MODE_VECTOR_FLOAT.
14582         (override_options): Check if TARGET_MIPS3D and there was an explicit
14583         !TARGET_PAIRED_SINGLE_FLOAT.  Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
14584         Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
14585         TARGET_PAIRED_SINGLE_FLOAT is true.  Check if the ISA supports
14586         TARGET_PAIRED_SINGLE_FLOAT.  Allow MODE_VECTOR_FLOAT in fp registers,
14587         and allow CCV2 and CCV4 to occupy two and four CC registers.
14588         (print_fcc_operand): New function.
14589         (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC.  Modify
14590         %Z to call print_fcc_operand.
14591         (mips_function_value): Handle MODE_VECTOR_FLOAT.
14592         (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
14593         (mips_vector_mode_supported_p): New function.
14594         (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
14595         (builtin_description): New struct.
14596         (mips_bdesc): New array of struct builtin_description.
14597         (mips_expand_builtin, mips_init_builtins,
14598         mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
14599         mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
14600         functions.
14601         * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
14602         (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
14603         (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
14604         (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
14605         "-mips3d", and "-mno-mips3d".
14606         (ASM_SPEC): Map -mips3d to -mips3d in gas.
14607         (EXTRA_CONSTRAINT_Y): New macro.
14608         (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT.  Add new
14609         multi-letter constraint 'Y'.
14610         (CONSTRAINT_LEN): New macro.
14611         (enum mips_builtins): New for MIPS builtin functions.
14612         (enum mips_function_type): New for the types of MIPS builtin functions.
14613         (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
14614         * config/mips/mips.md: New constants for paired single and MIPS-3D
14615         instructions.  Include the new mips-ps-3d.md file.
14616         (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
14617         movv2sf_hardfloat_64bit): New named patterns.
14618         (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
14619         nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
14620         sdxc1_v2sf_di): New unnamed patterns.
14621         * config/mips/predicates.md (const_0_operand, const_1_operand): Add
14622         const_vector support.
14623         (const_0_or_1_operand): New predicate.
14624         * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
14625
14626 2004-08-29  Diego Novillo  <dnovillo@redhat.com>
14627
14628         * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
14629         (tree-ssa-propagate.o): New rule.
14630         (GTFILES): Add tree-ssa-propagate.c.
14631         * tree-flow.h (struct stmt_ann_d): Remove field
14632         in_ccp_worklist.
14633         * tree-ssa-propagate.c: New file.
14634         * tree-ssa-propagate.h: New file.
14635         * tree-ssa-ccp.c: Re-write to use the routines from
14636         tree-ssa-propagate.c.
14637
14638 2004-08-28  Andrew Pinski  <apinski@apple.com>
14639
14640         * tree-ssa-loop.c: Remove extra include of basic-block.h.
14641
14642 2004-08-28  Ziemowit Laski  <zlaski@apple.com>
14643
14644         * c-common.h: Update comments about ObjC/ObjC++ entry points.
14645         (objc_is_reserved_word): New prototype.
14646         (get_current_scope, objc_mark_locals_volatile): Move prototypes to
14647         separate section; these are call-backs.
14648         * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
14649         ObjC/ObjC++ "@" keywords.
14650         * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
14651         prototypes; they already live in c-common.h.
14652         * stub-objc.c: Update copyright notice.
14653         (objc_is_reserved_word): New stub.
14654
14655 2004-08-28  Nathan Sidwell  <nathan@codesourcery.com>
14656
14657         * system.h (gcc_assert): Remove __builtin_expect.  Evaluate EXPR
14658         even when not checking.
14659
14660 2004-08-27  Jason Merrill  <jason@redhat.com>
14661
14662         PR c++/13684
14663         * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
14664         (gimple_push_cleanup): Add eh_only parm.
14665         (gimplify_target_expr): Pass it.
14666         * c.opt (-fno-threadsafe-statics): New option.
14667         * c-opts.c (c_common_handle_option): Handle it.
14668         * c-common.h (flag_threadsafe_statics): Declare it.
14669         * c-common.c (flag_threadsafe_statics): Record it.
14670         * doc/invoke.texi: Document it.
14671         * tsystem.h (_GNU_SOURCE): Define.
14672         * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
14673         (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
14674         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
14675         (__gthread_recursive_mutex_init_function): New fn.
14676         (__gthread_recursive_mutex_lock): New fn.
14677         (__gthread_recursive_mutex_trylock): New fn.
14678         (__gthread_recursive_mutex_unlock): New fn.
14679         * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
14680         * gthr-win32.h, gthr-vxworks.h: Likewise.
14681         * gthr.h: Document.
14682
14683 2004-08-27  David Edelsohn  <edelsohn@gnu.org>
14684
14685         * config/rs6000/rs6000.c (rs6000_override_options): Increase
14686         maximum skip to 15.  Set function alignment, jump alignment, and
14687         loop alignment to 16 for processors that form dispatch groups.
14688         (rs6000_rtx_costs): outer_code is used.
14689
14690 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
14691
14692         * stor-layout.c (sizetype_set): Remove.
14693         (set_sizetype): Don't test or set it.
14694
14695         * tree.h (size_int_type): Remove.
14696         * fold-const.c: Do not #include gt-fold-const.h.
14697         (size_htab_hash, size_htab_eq): Remove.
14698         (size_int_kind): Use build_int_cst.
14699         (new_const, size_htab): Remove.
14700         (size_int_type): Remove.
14701         (round_up): Use build_int_cst.
14702         (round_down): Likewise. Remove spurious constant build.
14703
14704 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
14705
14706         * configure.ac: Add ENABLE_ASSERT_CHECKING control.
14707         Add is_release variable, use it for --enable-werror and
14708         --enable-checking defaults.
14709         * system.h (gcc_assert, gcc_unreachable): New.
14710         * doc/install.texi (--enable-checking): Update.
14711         * configure, config.in: Rebuilt.
14712
14713 2004-08-26  Richard Sandiford  <rsandifo@redhat.com>
14714
14715         * rtl.h (read_rtx): Change prototype.
14716         * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
14717         line number.  Return true on success.
14718         * gensupport.c (process_include, init_md_reader_args_cb): Adjust
14719         callers accordingly.
14720
14721 2004-08-26  Richard Henderson  <rth@redhat.com>
14722
14723         * c-typeck.c (build_offsetof): Remove.
14724         * c-tree.h (build_offsetof): Remove.
14725         * c-common.c (fold_offsetof_1, fold_offsetof): New.
14726         * c-common.h (fold_offsetof): Declare.
14727         * c-parse.in (offsetof_base): New.
14728         (offsetof_member_designator): Use it.  Build references, not just
14729         a tree list.
14730         (primary): Use fold_offsetof, not build_offsetof.
14731
14732 2004-08-26  Richard Henderson  <rth@redhat.com>
14733
14734         * tree.c (staticp): Return the static object.
14735         * tree.h (staticp): Update decl.
14736         * langhooks.h (struct lang_hooks): Change staticp return type to tree.
14737         * langhooks.c (lhd_staticp): Return NULL_TREE.
14738         * langhooks-def.h (lhd_staticp): Update decl.
14739         * c-common.c (c_staticp): Return the static object.
14740         * c-common.h (c_staticp): Update decl.
14741
14742 2004-08-26  Richard Henderson  <rth@redhat.com>
14743
14744         * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
14745         modes.
14746
14747 2004-08-26  Joseph S. Myers  <jsm@polyomino.org.uk>
14748
14749         PR c/13801
14750         * c-decl.c (struct c_binding): Add type and inner_comp fields.
14751         (bind): Set type and inner_comp fields.
14752         (pop_scope): Restore type of decl to the correct type from an
14753         outer scope.  Give error when popping file scope for incomplete
14754         arrays completed incompatibly with default initialization in an
14755         inner scope.
14756         (diagnose_mismatched_decls): Handle externs with initializers at
14757         block scope.
14758         (pushdecl): Set type of external declaration at block scope based
14759         only on the visible declarations.  Save type when changing the
14760         type of a declaration.  Merge an external declaration at block
14761         scope with a visible static declaration at file scope.
14762         (implicitly_declare): Give recycled old declaration the new type
14763         except for incompatible declarations of built-in functions, saving
14764         the old type.
14765
14766 2004-08-26  Ziemowit Laski  <zlaski@apple.com>
14767
14768         * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
14769
14770 2004-08-26  Daniel Berlin  <dberlin@dberlin.org>
14771
14772         * tree-alias-common.c (gate_pta): New function.
14773         (pass_build_pta): Use it.
14774         (pass_del_pta): Use it.
14775         (delete_alias_vars): Don't check flag_tree_points_to.
14776
14777 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
14778
14779         * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
14780         TFmode as additional register mode cloberred by call.
14781
14782 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
14783
14784         * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
14785         parallel pattern for library call returning DImode in
14786         mixed mode.
14787
14788 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
14789
14790         * config/rs6000/rs6000.c (function_arg): Generate parallel
14791         pattern for more split args.
14792
14793 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
14794
14795         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
14796         either gen_movdi_di_update or gen_movdi_si_update depending on
14797         target mode.
14798         * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
14799         to generate two versions.
14800
14801 2004-08-26  Daniel Berlin  <dberlin@dberlin.org>
14802
14803         * Makefile.in (lambda-code.o): New.
14804         (lambda-trans.o): Ditto.
14805         (TREE_DATA_REF_H): Ditto.
14806         (LAMBDA_H): Ditto.
14807         (lambda-mat.o): Use LAMBDA_H.
14808         (tree-data-ref.o): Ditto.
14809         * lambda-code.c: New file.  Lambda code generation algorithm.
14810         * lambda-trans.c: Ditto. Lambda transformation matrix support.
14811         * lambda.h: Add lambda loop structures.
14812         Add lambda loopnest structures.
14813         Add lambda body vector structure.
14814         Add lambda linear expression structures.
14815         Add prototypes for functions in new files.
14816         * lambda-mat.c: Include tree.h
14817
14818 2004-08-26  Daniel Berlin <dberlin@dberlin.org>
14819             Sebastian Pop  <pop@cri.ensmp.fr>
14820
14821         * tree-data-ref.h: Include lambda.h
14822         (free_dependence_relation): Declared here.
14823         (free_dependence_relations): Ditto.
14824         (free_data_refs): Ditto.
14825         * tree-data-ref.c (free_dependence_relation): New function.
14826         (free_dependence_relations): Ditto.
14827         (free_data_refs): Ditot.
14828         (analyze_all_data_dependences): Free datarefs and dependence_relations.
14829         (build_classic_dist_vector): Store in the dependence_relations the
14830         information. Each arc in the dependence_relations graph is labelled
14831         with the distance and direction vectors.
14832         (build_classic_dir_vector): Ditto.
14833         (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
14834         Now computes again the whole dependence graph including read-read
14835         relations.
14836         (compute_data_dependences_for_loop): Now dependence_relations contains
14837         all the data, and thus it doesn't need to initialize the classic_dir
14838         and classic_dist vectors.
14839         (analyze_all_data_dependences): Adjusted for using the new interface of
14840         compute_data_dependences_for_loop.  Remove the statistics dump.
14841
14842 2004-08-26  Bob Wilson  <bob.wilson@acm.org>
14843
14844         * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
14845         (xtensa_expand_block_move): Update comment.
14846         (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
14847
14848 2004-08026  Richard Earnshaw  <rearnsha@arm.com>
14849
14850         PR target/13506
14851         * toplev.c (crash_signal): If we crashed while emitting
14852         a user asm, then die more gracefully.
14853
14854 2004-08-26  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
14855
14856         PR target/17119.
14857         * config/m32r.c (gen_compare): Use reg_or_int16_operand when
14858         checking for a valid constant, regardless of sign.
14859
14860 2004-08-25  Richard Henderson  <rth@redhat.com>
14861
14862         PR target/16974
14863         * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
14864         if the constant satisfies add_operand.
14865
14866 2004-08-25  Richard Henderson  <rth@redhat.com>
14867
14868         PR debug/10695
14869         * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
14870         (alpha_expand_prologue): Handle >32-bit frames.  Generate proper
14871         unwind info for >16-bit frames.
14872
14873 2004-08-25  Richard B. Kreckel  <richard.kreckel@framatome-anp.com>
14874
14875         PR target/17171
14876         * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
14877
14878 2004-08-25  Richard Henderson  <rth@redhat.com>
14879
14880         * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
14881         (TARGET_CANNOT_FORCE_CONST_MEM): New.
14882
14883 2004-08-25  Andrew MacLeod  <amacleod@redhat.com>
14884
14885         * doc/tree-ssa.texi: Document new operand iterator.
14886
14887 2004-08-26  Alan Modra  <amodra@bigpond.net.au>
14888
14889         PR target/16480
14890         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
14891         on "(mem (symbol_ref ..))" rtl.  Look at LO_SUM base regs as well
14892         as PLUS base regs.
14893
14894 2005-08-28  Paul Brook  <paul@codesourcery.com>
14895
14896         * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
14897         -mfpu=vfp -march=armv5t
14898         * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
14899
14900 2004-08-25  Richard Henderson  <rth@redhat.com>
14901
14902         * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
14903         * target.h (struct gcc_target): Add scalar_mode_supported_p.
14904         * targhooks.c (default_scalar_mode_supported_p): New.
14905         * targhooks.h (default_scalar_mode_supported_p): Declare.
14906         * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
14907
14908         * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
14909         before attempting to create types.  Tidy.
14910         * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
14911
14912         * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
14913         (TARGET_SCALAR_MODE_SUPPORTED_P): New.
14914
14915 2004-08-25  Richard Henderson  <rth@redhat.com>
14916
14917         * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
14918         set REAL_MODE_FORMAT for TFmode.
14919
14920 2004-08-25  Ziemowit Laski  <zlaski@apple.com>
14921
14922         * c-decl.c (grokparm): New function.
14923         * c-tree.h (grokparm): New prototype.
14924
14925 2004-08-25  Andrew MacLeod  <amacleod@redhat.com>
14926
14927         * tree-ssa-operands.h (struct ssa_operand_iterator_d): New.  SSA operand
14928         iterator controlling structure.
14929         (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
14930         SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
14931         SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New.  Operand
14932         iterator flags.
14933         (FOR_EACH_SSA_TREE_OPERAND): New.  Iterate over operands as trees.
14934         (FOR_EACH_SSA_USE_OPERAND): New.  Iterate over operands as uses.
14935         (FOR_EACH_SSA_DEF_OPERAND): New.  Iterate over operands as defs.
14936         (FOR_EACH_SSA_MAYDEF_OPERAND): New.  Iterate over V_MAY_DEFs.
14937         * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
14938         Empty operand pointers.
14939         * tree-flow-inline.h (op_iter_done): New.  Return true if finished.
14940         (op_iter_next_use): New.  Return next use_operand_p.
14941         (op_iter_next_def): New.  Return next def_operand_p.
14942         (op_iter_next_tree): New.  Return next operands as a tree.
14943         (op_iter_init): New.  Initialize an iterator structure.
14944         (op_iter_init_use): New.  Initialize structure and get the first use.
14945         (op_iter_init_def): New.  Initialize structure and get the first def.
14946         (op_iter_init_tree): New.  Initialize structure and get the first tree.
14947         (op_iter_next_maydef): New.  Return next V_MAY_DEF operands.
14948         (op_iter_init_maydef): New.  Initialize structure and get the first
14949         V_MAY_DEF operands.
14950         * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
14951         * tree-dfa.c (compute_immediate_uses_for_stmt,
14952         redirect_immediate_uses): Use new operand iterator.
14953         (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
14954         (mark_new_vars_to_rename): Use new operand iterator.  Count virtual
14955         operands instead of using *_disappeared_p routines.
14956         * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
14957         ssa_rewrite_stmt): Use new operand iterator.
14958         * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
14959         rewrite_trees): Use new operand iterator.
14960         * tree-pretty-print.c (dump_vops): Use new operand iterator.
14961         * tree-sra.c (mark_all_v_defs): Use new operand iterator.
14962         * tree-ssa-alias.c (compute_points_to_and_addr_escape,
14963         dump_points_to_info): Use new operand iterator.
14964         * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
14965         replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
14966         operand iterator.
14967         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
14968         propagate_necessity): Use new operand iterator.
14969         * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
14970         (register_definitions_for_stmt): Use new operand iterator.  Take stmt as
14971         a parameter instead of a stmt_ann_t.
14972         * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
14973         build_tree_conflict_graph): Use new operand iterator.
14974         * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
14975         rewrite_mem_refs): Use new operand iterator.
14976         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
14977         check_loop_closed_ssa_use): Use new operand iterator.
14978         * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
14979         * tree-ssanames.c (release_defs): Use new operand iterator.
14980         * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
14981
14982 2004-08-25  Adam Nemet  <anemet@lnxw.com>
14983
14984         * tlink.c (initial_cwd): New variable.
14985         (tlink_init): Initialize it.
14986         (recompile_files): Use tlink_execute() instead of system().  Don't
14987         duplicate verbose output of collect_execute.  Restore initial_cwd.
14988         Update comment before the function.
14989
14990 2004-08-25  Ziemowit Laski  <zlaski@apple.com>
14991
14992         * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
14993         accept) a cast from one Objective-C pointer type to another.
14994
14995 2004-08-25  Paolo Carlini  <pcarlini@suse.de>
14996
14997         * doc/install.texi: Document that libstdc++-v3 requires
14998         now automake 1.9.1.
14999
15000 2004-08-25  Caroline Tice  <ctice@apple.com>
15001
15002         * bb-reorder.c (partition_hot_cold_basic_blocks):  Add more details
15003         to comments at start of function.
15004         * cfgbuild.c (make_edges):  Add more details to hot/cold partitioning
15005         comment.
15006         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
15007         merge_blocks_move_predecessor_nojumps,
15008         merge_blocks_move_successor_nojumps, merge_blocks_move,
15009         try_crossjump_to_edge, try_crossjump_bb): Likewise.
15010         * cfglayout.c (fixup_reorder_chain): Likewise.
15011         * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
15012         cfg_layout_can_merge_blocks_p):  Likewise.
15013         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15014         * passes.c (rest_of_compilation): Update comments for calling
15015         optimization that partitions hot/cold basic blocks.
15016         * doc/invoke.texi:  Update documentation of
15017         freorder-blocks-and-partition flag.
15018
15019 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
15020
15021         * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
15022         (*mov*_on_*): Adjust accordingly.  Add an explicit MOVECC: prefix.
15023
15024 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
15025
15026         * config/mips/mips.md (any_shift): New code macro.
15027         (optab, insn): New code attributes.
15028         ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
15029         Use the standard rather than internal patterns for the MIPS16
15030         double-shift optimization.
15031         (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
15032         Redefine using :GPR and any_shift.
15033         (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
15034         to cover all three shifts.
15035         (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
15036         Redefine using any_shift.  Use :GPR and any_shift to combine splitters.
15037         (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
15038
15039 2004-08-24  Geoffrey Keating  <geoffk@apple.com>
15040
15041         * gimplify.c (lookup_tmp_var): Separate temporaries when not
15042         optimizing.
15043
15044 2004-08-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15045
15046         PR libstdc++/17005 (fix for HP-UX 11.11)
15047         * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
15048         (hppa*-*-hpux*): Consolidate hppa1.0-*-* code.  Rework handling of
15049         tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
15050         * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
15051         * config/pa/pa-hpux.h (TARGET_HPUX): Define.
15052         (LINK_SPEC): Handle march=1.0 option.
15053         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
15054         and _XOPEN_SOURCE_EXTENDED for UNIX 95.
15055         (SUBTARGET_OPTIONS): New define.
15056         (LINK_SPEC): Handle march=1.0 option.
15057         (STARTFILE_SPEC): New define.
15058         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
15059         and _XOPEN_SOURCE_EXTENDED for UNIX 95.  Additionally, predefine
15060         _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
15061         (SUBTARGET_OPTIONS): New define.
15062         (LINK_SPEC): Handle march=1.0 option.
15063         (STARTFILE_SPEC): New define.
15064         * config/pa/pa.c (override_options): Add code to process -munix= option.
15065         * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
15066         (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
15067         defines.
15068         (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
15069         (SUBTARGET_OPTIONS): Provide default define.
15070         * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
15071         STANDARD_STARTFILE_PREFIX_2): New defines.
15072         (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
15073         (ENDFILE_SPEC): Use %O.
15074         * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
15075         Mention issue caused by changing namespace and runtime to UNIX 95/98.
15076         * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
15077         Document -munix=std option.
15078
15079 2004-08-25  Steven Bosscher  <stevenb@suse.de>
15080
15081         * cse.c (cse_around_loop, cse_check_loop_start,
15082         cse_set_around_loop): Remove.
15083         (cse_basic_block): Remove the around_loop argument.
15084         (cse_end_of_basic_block): Remove the after_loop argument.
15085         (cse_main): Likewise.
15086         * rtl.h (cse_main): Update prototype.
15087         * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
15088         rest_of_handle_gcse): Update cse_main calls.
15089
15090 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
15091
15092         * tree.h  (build_int_cst): New, sign extended constant.
15093         (build_int_cstu): New, zero extended constant.
15094         (build_int_cst_wide): Renamed from build_int_cst.
15095         * tree.c (build_int_cst, build_int_cstu): New.
15096         (build_int_cst_wide): Renamed from build_int_cst.
15097         (make_vector_type, build_common_tree_nodes,
15098         build_common_tree_nodes_2): Adjust build_int_cst calls.
15099         * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
15100         expand_builtin_strpbrk, expand_builtin_fputs,
15101         build_string_literal, expand_builtin_printf,
15102         expand_builtin_sprintf, fold_builtin_classify_type,
15103         fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
15104         fold_builtin_toascii, fold_builtin_isdigit,
15105         simplify_builtin_strstr, simplify_builtin_strpbrk,
15106         fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
15107         * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
15108         DEF_ATTR_INT): Likewise.
15109         * c-decl.c (complete_array_type, check_bitfield_type_and_width):
15110         Likewise.
15111         * c-lex.c (interpret_integer, lex_charconst): Likewise.
15112         * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
15113         * c-pretty-print.c (pp_c_integer_constant): Likewise.
15114         * c-typeck.c (really_start_incremental_init, push_init_level,
15115         set_nonincremental_init_from_string): Likewise.
15116         * calls.c (load_register_parameters): Likewise.
15117         convert.c (convert_to_pointer): Likewise.
15118         coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
15119         build_fn_info_type, build_fn_info_value, build_ctr_info_value,
15120         build_gcov_info): Likewise.
15121         * except.c (init_eh, assign_filter_values): Likewise.
15122         * expmed.c (store_fixed_bit_field, extract_bit_field,
15123         extract_fixed_bit_field, extract_split_bit_field, expand_shift,
15124         expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
15125         expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
15126         * expr.c (convert_move, emit_group_load, emit_group_store,
15127         expand_assignment, store_constructor, store_field,
15128         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
15129         fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
15130         invert_truthvalue, optimize_bit_field_compare,
15131         decode_field_reference, all_ones_mask_p, constant_boolean_node,
15132         fold_div_compare, fold, fold_read_from_constant_string,
15133         fold_negate_const, fold_abs_const, fold_not_const, round_up,
15134         round_down): Likewise.
15135         * function.c (assign_parm_setup_block): Likewise.
15136         * stmt.c (shift_return_value, expand_case, estimate_case_costs):
15137         Likewise.
15138         * stor-layout.c (layout_type, initialize_sizetypes,
15139         set_min_and_max_values_for_integral_type): Likewise.
15140         * tree-chrec.c (chrec_fold_multiply_poly_poly,
15141         reset_evolution_in_loop): Likewise.
15142         * tree-chrec.h (build_polynomial_chrec): Likewise.
15143         * tree-complex.c (build_replicated_const): Likewise.
15144         * tree-eh.c (honor_protect_cleanup_actions,
15145         lower_try_finally_onedest, lower_try_finally_copy,
15146         lower_try_finally_switch): Likewise.
15147         * tree-mudflap.c (mf_build_string, mx_register_decls,
15148         mudflap_register_call, mudflap_enqueue_constant): Likewise.
15149         * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
15150         * tree-pretty-print.c (dump_generic_node): Likewise.
15151         * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
15152         Likewise.
15153         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
15154         * tree-ssa-loop-niter.c (number_of_iterations_cond,
15155         loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
15156         Likewise.
15157         * tree-ssa-loop-ivcanon.c (create_canonical_iv,
15158         canonicalize_loop_induction_variables): Likewise.
15159         * tree-vectorizer.c (vect_create_index_for_array_ref,
15160         vect_transform_loop_bound, vect_compute_data_ref_alignment):
15161         Likewise.
15162
15163         * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
15164         alpha_gimplify_va_arg_1): Likewise.
15165         * config/arm/arm.c (arm_get_cookie_size): Likewise.
15166         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
15167         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
15168         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15169         * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
15170         mips_gimplify_va_arg_expr): Likewise.
15171         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15172         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
15173         add_compiler_branch_island): Likewise.
15174         * config/s390/s390.c (s390_va_start): Likewise.
15175         * config/sh/sh.c (sh_va_start): Likewise.
15176         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
15177         Likewise.
15178         * config/xtensa/xtensa.c (xtensa_va_start,
15179         xtensa_gimplify_va_arg_expr): Likewise.
15180
15181         * objc/objc-act.c (build_objc_string_object,
15182         build_objc_symtab_template, init_def_list, init_objc_symtab,
15183         init_module_descriptor, generate_static_references,
15184         build_selector_translation_table, get_proto_encoding,
15185         build_typed_selector_reference, build_selector_reference,
15186         build_next_objc_exception_stuff,
15187         build_method_prototype_list_template, generate_descriptor_table,
15188         generate_protocols, build_protocol_initializer,
15189         build_ivar_list_template, build_method_list_template,
15190         build_ivar_list_initializer, generate_ivars_list,
15191         generate_dispatch_table, generate_protocol_list,
15192         build_category_initializer, build_shared_structure_initializer,
15193         generate_shared_structures, handle_impent,
15194         generate_objc_image_info): Likewise.
15195
15196 2004-04-25  Paolo Bonzini  <bonzini@gnu.org>
15197
15198         * cfglayout.c (duplicate_insn_chain): Remove references to
15199         NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
15200         * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
15201         * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
15202         * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
15203         and NOTE_INSN_LOOP_CONT.
15204         * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
15205         * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
15206         and NOTE_INSN_LOOP_CONT.
15207         * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
15208         check_dbra_loop, loop_dump_aux): Remove references to removed notes
15209         and fields.
15210         * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
15211         * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
15212         references to removed notes and fields.
15213         (subtract_reg_term, ujump_to_loop_cont): Remove.
15214
15215 2004-08-25  Paolo Bonzini  <bonzini@gnu.org>
15216
15217         * doc/install.texi: Document that libcpp does not require
15218         Automake any longer.  Document that Automake 1.9.1 should
15219         work everywhere.
15220
15221 2004-08-25  Zack Weinberg  <zack@codesourcery.com>
15222
15223         * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
15224         * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
15225         DWARF_DEBUGGING_INFO from choice-of-definition chain;
15226         restructure using C89 features (#elif, #error).
15227         * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
15228         * config/sh/sh.h: Remove references to DWARF_DEBUG.
15229         * doc/invoke.texi: Remove references to DWARF version 1;
15230         clarify why -gdwarf-2<n> doesn't work.
15231
15232 2004-08-25  Zack Weinberg  <zack@codesourcery.com>
15233
15234         * basic-block.h (BB_SET_PARTITION): Clear old value first.
15235         * cfg.c (clear_bb_flags): Don't clear partition setting.
15236         * ifcvt.c (find_if_case_1): Remove ??? comment.
15237
15238 2004-08-25  Alan Modra  <amodra@bigpond.net.au>
15239
15240         PR target/17052
15241         * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
15242         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
15243         current_function_stdarg in place of sysv_varargs_p.
15244         * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
15245         sysv_varargs_p.
15246
15247 2004-08-24  Richard Henderson  <rth@redhat.com>
15248
15249         PR target/16298
15250         * config/i386/i386.c (legitimate_constant_p): Rework to not accept
15251         random codes within CONST.
15252
15253 2004-08-24  James E Wilson  <wilson@specifixinc.com>
15254
15255         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
15256         -freorder-blocks-and-partition.
15257
15258 2004-08-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15259
15260         PR middle-end/17044
15261         * tree-ssa-threadupdate.c (redirection_data): Make static.
15262         (thread_block): Use ggc_alloc_cleared to allocate struct
15263         redirection_data.  Don't free elements in redirection_data.
15264
15265 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
15266
15267         * config/mips/predicates.md (small_data_pattern): Match prefetches.
15268
15269 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15270
15271         PR tree-optimization/17016
15272         * tree-ssa-loop-niter.c (number_of_iterations_cond,
15273         number_of_iterations_exit): Use POINTER_TYPE_P instead
15274         of testing for POINTER_TYPE.
15275
15276 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15277
15278         * tree-ssa-loop-ivcanon.c: New file.
15279         * tree-ssa-loop-manip.c (create_iv): New function.
15280         * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
15281         (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
15282         * cfgloop.c (mark_single_exit_loops): New function.
15283         (verify_loop_structure): Verify single-exit loops.
15284         * cfgloop.h (struct loop): Add single_exit field.
15285         (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
15286         (mark_single_exit_loops): Declare.
15287         (tree_num_loop_insns): Declare.
15288         * cfgloopmanip.c (update_single_exits_after_duplication): New function.
15289         (duplicate_loop_to_header_edge): Use it.
15290         * common.opt (fivcanon): New flag.
15291         * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
15292         * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
15293         (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
15294         (bsi_insert_on_edge_immediate): New function.
15295         * tree-flow.h (bsi_insert_on_edge_immediate,
15296         canonicalize_induction_variables, tree_unroll_loops_completely,
15297         create_iv): Declare.
15298         * tree-optimize.c (init_tree_optimization_passes): Add
15299         pass_iv_canon and pass_complete_unroll.
15300         * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
15301         * tree-scalar-evolution.c (get_loop_exit_condition,
15302         get_exit_conditions_rec, number_of_iterations_in_loop,
15303         scev_initialize): Use single_exit information.
15304         * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
15305         missing assumptions.
15306         (loop_niter_by_eval):  Return number of iterations as unsigned
15307         int.
15308         * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
15309         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
15310         tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
15311         New passes.
15312         (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
15313         * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
15314         the defining statement is ready.
15315         * tree-vectorizer.c (vect_create_iv_simple): Removed.
15316         (vect_create_index_for_array_ref, vect_transform_loop_bound):
15317         Use create_iv.
15318         (vect_transform_loop_bound): Use single_exit information.
15319         (vect_analyze_loop_form): Cleanup bogus tests.
15320         (vectorize_loops): Do not call flow_loop_scan.
15321         * tree.h (may_negate_without_overflow_p): Declare.
15322         * fold-const.c (may_negate_without_overflow_p): Split out from ...
15323         (negate_expr_p): ... this function.
15324         (tree_expr_nonzero_p): Handle overflowed constants correctly.
15325         * doc/invoke.texi (-fivcanon): Document.
15326         * doc/passes.texi: Document canonical induction variable creation.
15327
15328 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
15329
15330         * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
15331         * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
15332         using the mode of the operand to decide between them.
15333         * config/mips/mips.md (MOVECC): New mode macro.
15334         (ccreg): New mode attribute.
15335         (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
15336         Redefine using :GPR and :MOVECC.  Use %T and %t for the condition.
15337         (mov[sd]icc): Redefine using :GPR.
15338
15339 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
15340
15341         * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
15342         (mips_prefetch_cookie): New function.
15343         * config/mips/mips.c (print_operand_address): Fix handling of
15344         ADDRESS_CONST_INT.
15345         (mips_emit_prefetch): Delete.
15346         (mips_prefetch_cookie): New function.
15347         * config/mips/mips.md (prefetch): Turn into a define_insn.  Use a
15348         mode of QImode for the address_operand.  Use mips_prefetch_cookie
15349         to calculate the first "pref" operand.
15350         (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
15351         (prefetch_indexed_[sd]i): Redefine using :P.  Use mips_prefetch_cookie.
15352
15353 2004-08-24  Richard Earnshaw  <rearnsha@arm.com>
15354
15355         * arm.md: Include predicates.md.
15356         * predicates.md: New file.
15357         * arm.c (s_register_operand, arm_hard_register_operand)
15358         (arm_general_register_operand, f_register_operand, reg_or_int_operand)
15359         (arm_immediate_operand, arm_neg_immediate_operand)
15360         (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
15361         (arm_add_operand, arm_addimm_operand, arm_not_operand)
15362         (offsettable_memory_operand, alignable_memory_operand)
15363         (arm_reload_memory_operand, arm_float_rhs_operand)
15364         (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
15365         (index_operand, shiftable_operator, logical_binary_operator)
15366         (shift_operator, equality_operator, arm_comparison_operator)
15367         (minmax_operator, cc_register, dominant_cc_register)
15368         (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
15369         (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
15370         (const_shift_operand, load_multiple_operation)
15371         (store_multiple_operation, multi_register_push, thumb_cmp_operand)
15372         (thumb_cmpneg_operand, thumb_cbrch_target_operand)
15373         (cirrus_register_operand, cirrus_fp_register)
15374         (cirrus_shift_const): Delete, replaced with equivalents in
15375         predicates.md.
15376         (shift_op): Handle ROTATE.
15377         * arm-protos.h: Delete declarations for above.
15378         * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
15379         * t-arm (MD_INCLUDES): Add predicates.md.
15380         (s-preds): Depends on MD_INCLUDES.
15381
15382 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
15383
15384         * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
15385         * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
15386         patterns.  Redefine using :GPR.  Give the match_operator a mode.
15387         Use '%2' rather than '%z2' for operand 2.
15388
15389 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
15390
15391         * config/mips/mips.md (load_call[sd]i): Redefine using :P.  Add mode
15392         attribute.
15393
15394 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
15395
15396         * config/mips/mips.md (indirect_jump): Use force_reg.  Adjust names
15397         of internal patterns.
15398         (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
15399         Redefine using :P.
15400         (tablejump): Use expand_binop to calculate address.  Adjust names
15401         of internal patterns.
15402         (tablejump[sd]i): Renamed from tablejump_internal[12].
15403         Redefine using :P.
15404         (tablejump_mips16[12]): Delete.
15405
15406 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
15407
15408         * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
15409         (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
15410         (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
15411         (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
15412         (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
15413
15414 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
15415
15416         * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
15417         (*branch_zero[sd]i): Renamed from branch_zero{,_di}.  Redefine
15418         using :GPR.
15419         (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
15420         (*branch_equality[sd]i): Likewise branch_equality{,_di}.
15421         (*branch_equality[sd]i_inverted): Likewise
15422         branch_equality{,_di}_inverted.
15423         (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
15424         Redefine using :GPR.
15425
15426 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
15427
15428         * rtl.def: Reorganize, placing all codes used only in machine
15429         descriptions at the end.
15430
15431         * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
15432         * gengtype.c: Don't include rtl.h.  Define enum rtx_code and
15433         rtx_name, rtx_format arrays by direct reference to rtl.def,
15434         first undefining GENERATOR_FILE.  Define enum insn_note and
15435         note_insn_name array by direct reference to insn-notes.def.
15436         (adjust_field_rtx_def): Remove local definition of rtx_name.
15437         Use symbolic names for insn notes.
15438         * Makefile.in (gengtype.o): Update dependencies.
15439
15440 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
15441
15442         * basic-block.h (struct basic_block_def): Reorder fields to
15443         eliminate interior padding.  Remove 'partition' field.
15444         (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
15445         (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
15446         (BB_COPY_PARTITION): New macros.
15447         * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
15448         Replace all references to the 'partition' field of a basic
15449         block with new macros.
15450
15451         * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
15452         * final.c (final_scan_insn): Don't handle it.
15453         * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
15454         instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
15455         * sched-rgn.c (sched_is_disabled_for_current_region_p):
15456         Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
15457
15458 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
15459
15460         * c-decl.c (c_init_decl_processing): Adjust
15461         build_common_tree_nodes call.
15462         * expmed.c (const_mult_add_overflow_p): Use
15463         build_distinct_type_copy.
15464         * stor-layout.c (early_type_list): Remove.
15465         (layout_type): Don't append to early_type_list.
15466         (initialize_sizetypes): Add signed_p argument.
15467         (set_sizetype): Overwrite the stub type nodes directly.
15468         * tree.c (copy_node_stat): Clear a type's value cache here ...
15469         (build_distinct_type): ... not here.
15470         (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
15471         * tree.h (initialize_sizetypes): Add signed_p argument.
15472         (build_common_tree_nodes): Likewise.
15473
15474         * objc/objc-act.c (get_static_reference): Use
15475         build_variant_type_copy.
15476         (get_protocol_reference): Likewise.
15477         * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
15478
15479 2004-08-24  Richard Henderson  <rth@redhat.com>
15480             Andrew Pinski  <apinski@apple.com>
15481
15482         * gimplify.c (gimplify_array_ref_to_plus): Delete.
15483         (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
15484         for ARRAY_REF.
15485
15486         * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
15487         ARRAY_REF also to get to the STRING_CST.
15488
15489 2004-08-24  Paul Brook  <paul@codesourcery.com>
15490
15491         * config/arm/arm.c (arm_override_options): Update error message.
15492         * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
15493         TARGET_HARD_FLOAT_ABI.
15494         (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
15495         (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
15496
15497 2004-08-24  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
15498
15499         PR target/17093
15500         * config/m32r.md (movsi_sda): Add SI mode specification to
15501         UNSPEC.
15502
15503 2004-08-24  Nick Clifton  <nickc@redhat.com>
15504
15505         * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
15506         of seth_add3_operand.
15507
15508 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
15509
15510         * Makefile.in (PROTO_OBJS): Add errors.o.
15511         * protoize.c (fancy_abort): Remove.
15512         * mips-tfile.c (fancy_abort): Add parameters.
15513
15514 2004-08-24  Jonathan Wakely  <redi@gcc.gnu.org>
15515
15516         * doc/trouble.texi (C++ misunderstandings): Fix example code.
15517
15518 2004-08-24  Andreas Tobler  <a.tobler@schweiz.ch>
15519
15520         * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
15521         (host-default.o): Add dependency on HOOKS_H.
15522         * config/x-linux: Likewise.
15523         * config/x-solaris: Likewise.
15524         * config/i386/x-mingw32: Likewise.
15525         * config/rs6000/x-darwin: Likewise.
15526
15527 2004-08-23  James E Wilson  <wilson@specifixinc.com>
15528
15529         * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
15530         DEF_REG_NOTE.
15531
15532 2004-08-23  Mark Mitchell  <mark@codesourcery.com>
15533
15534         PR c/14492
15535         * dwarf2out.c (loc_descriptor_from_tree): Robustify.
15536
15537 2004-08-23  Diego Novillo  <dnovillo@redhat.com>
15538
15539         * cfg.c (check_bb_profile): Fix typos.
15540         * function.c (assign_parm_is_stack_parm): Likewise.
15541         * tree-nested.c: Likewise.
15542
15543 2004-08-23  Daniel Jacobowitz  <dan@debian.org>
15544
15545         * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
15546         Remove TYPECODE.
15547         (ggc_alloc_zone_1): Mark TYPE as unused.  Don't save it in the chunk.
15548
15549 2004-08-23  Eric Christopher  <echristo@redhat.com>
15550
15551         * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
15552         * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
15553         * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
15554         * target.h: Ditto.
15555         * hooks.h: Include machmode.h.
15556         (hook_bool_mode_false): Declare.
15557         * hooks.c (hook_bool_mode_false): Define.
15558         * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
15559         * stor-layout.c (layout_type): Ditto.
15560         * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
15561         Define to target macro.
15562         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
15563         * config/arm/arm.c: Ditto. Use.
15564         * config/arm/arm.h: Ditto.
15565         * config/arm/arm-protos.h: Ditto.
15566         * config/i386/i386.c: Ditto.
15567         * config/i386/i386.h: Ditto.
15568         * config/rs6000/rs6000.c: Ditto.
15569         * config/rs6000/rs6000.h: Ditto.
15570         * config/sh/sh.c: Ditto.
15571         * config/sh/sh.h: Ditto.
15572         * config/sh/sh-protos.h: Ditto.
15573         * config/sh/sh.md: Use.
15574         * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
15575         to TARGET_VECTOR_MODE_SUPPORTED_P.
15576
15577 2004-08-23  Nathan Sidwell  <nathan@codesourcery.com>
15578
15579         * Makefile.in (BUILD_ERRORS): Set to build-errors.
15580         (errors.o): New target for host.
15581         (build-errors.o): New target for build.
15582         (genobjs): Replace errors.o with build-errors.
15583         (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
15584         (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
15585         (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
15586         (fix-header.o): Add errors.h
15587         * collect2.c (fancy_abort): Add parameters.
15588         * collect2.h (fancy_abort): Don't declare.
15589         * errors.h (fancy_abort): Don't declare.
15590         * errors.c: Include either bconfig.h or config.h.
15591         (fancy_abort): Trim filename.
15592         * fix-header.c (v_fatal, fatal): Remove.
15593         (progname): Remove definition.
15594         (main): Set progname here.
15595         * gcc.c (fancy_abort): Add parameters.
15596         * gcc.h (fancy_abort): Remove declaration.
15597         * gcov.c (fancy_abort): Remove.
15598         * rtl.h (fancy_abort): Don't declare.
15599         (abort): Don't define.
15600         * tree.h (fancy_abort): Don't declare.
15601         (abort): Don't define.
15602         * system.h (fancy_abort): Declare.
15603         (abort): Define to fancy_abort.
15604         * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
15605
15606         * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
15607         (usize_type, ubitsizetype): Remove.
15608         * stor-layout.c (set_sizetype): Don't initialize usizetype,
15609         ubitsizetype.
15610         * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
15611
15612         * tree.h (build_distinct_type_copy): New.
15613         (build_type_copy): ... here.  Rename to ...
15614         (build_variant_type_copy): ... here.
15615         * tree.c (build_qualified_type): Rename build_type_copy call.
15616         (build_distinct_type_copy): New, broken out of ...
15617         (build_type_copy): ... here.  Rename to ...
15618         (build_variant_type_copy): ... here.  Use
15619         build_distinct_type_copy.
15620         (build_common_tree_nodes_2): Rename build_type_copy call.
15621         * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
15622         call.
15623         (handle_packed_attribute, handle_unused_attribute,
15624         handle_transparanet_union_attribute, handle_aligned_attribute,
15625         handle_deprecated_attribute): Likewise.
15626         * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
15627         Likewise.
15628         * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
15629         * config/rs6000/rs6000.c (rs6000_init_builtins): Use
15630         build_distinct_type_copy.
15631
15632 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
15633
15634         * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR.  Add mode
15635         attribute.
15636
15637 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
15638
15639         * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
15640         loads and stores.
15641         (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
15642         formerly unnamed patterns.  Redefine using :P for the address.  Remove
15643         explicit length attributes.
15644
15645 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15646
15647         * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
15648         New functions.
15649         (single_reachable_address): Use them.
15650         (schedule_sm): Add dump.
15651         (is_call_clobbered_ref): New function.
15652         (determine_lsm_reg): Check whether the reference is call clobbered.
15653         Only work for gimple_reg_type values.
15654
15655 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
15656
15657         * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
15658         $31 store insns.  Redefine using :GPR.
15659
15660 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
15661
15662         * config/mips/mips.md (P): New mode macro.
15663         (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
15664         (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
15665         Add mode attributes.
15666
15667 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
15668
15669         * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
15670         (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants.  Shuffle
15671         later constants to cover the gap.
15672         (load, store): New mode attributes.
15673         (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
15674         Use new unspec constants.
15675
15676 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
15677
15678         * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
15679         (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise.  Change 32-bit patterns
15680         to use register_operand rather than uns_arith_operand as the predicate
15681         for operand 1.  Remove redundant MIPS16 force_reg() for operand 1.
15682         (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
15683         Redefine using :GPR.  Make same predicate change here.  Extend the
15684         commutativity of operands 1 and 2 from the SImode version to the
15685         DImode one.
15686         (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
15687         but with no predicate changes.
15688         (*nor[sd]i3): Redefine using :GPR.
15689
15690 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15691
15692         * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
15693         noreturn functions.
15694
15695 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
15696
15697         * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
15698         * config/mips/mips.md (abs[sd]i2): Redefine using :GPR.  Only use
15699         branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY.  Use "%."
15700         rather than "%z2" (with a fake const0_rtx for operand 2).
15701         (ffs[sd]i2): Redefine using :GPR.
15702         (clz[sd]i2): Likewise.  Use ISA_HAS_CLO_CLZ for the 64-bit case.
15703
15704 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
15705
15706         * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
15707
15708 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
15709
15710         * config/mips/mips.md (any_extend): New code macro.
15711         (u, su): New code attributes.
15712         ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
15713         ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
15714         ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
15715         (*{s,u}mul_acc_di): Redefine using any_extend.
15716         (*{,u}muls_di, *{s,u}msac_di): Likewise.  Change names of patterns
15717         to reflect real insn names.
15718         (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
15719         with an any_extend template.
15720         ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
15721         Add '*' to name.
15722
15723 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
15724
15725         * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
15726         * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
15727         (mul[sd]i3_r4000): Redefine using :GPR.
15728         (mulsi3_mult3): Don't check TARGET_MAD separately.
15729         (muldi3_mult3): Moved after mulsi_mult3.
15730
15731 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
15732
15733         * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
15734         OBJECT_FORMAT_ELF.  Set MASK_SPLIT_ADDR by default if using GNU ld.
15735         * config/mips/mips.h (MASK_GAS): Delete.  Shuffle later masks down.
15736         (TARGET_GAS, TARGET_MIPS_AS): Delete.
15737         (TARGET_GPWORD): Define to true for n32 on IRIX.
15738         (TARGET_SWITCHES): Remove -mmips-as.  Turn -mgas into a no-op.
15739         (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
15740         (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
15741         (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
15742         (MDEBUG_ASM_SPEC): Delete, folding into...
15743         (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
15744         (ASM_SPEC): Inline old GAS_ASM_SPEC.  Use GNU names for ABI switches.
15745         (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
15746         subtarget_mips_as_asm_spec, mdebug_asm_spec.  Use MULTILIB_ABI_DEFAULT
15747         to define asm_abi_default_spec.
15748         (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
15749         (TARGET_ASM_SELECT_SECTION): Delete.
15750         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
15751         for non-mips16 code, removing previous workaround for SGI assemblers.
15752         (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
15753         (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
15754         (override_options): Remove !TARGET_GAS and !have_named_sections code.
15755         (print_operand): Fold TARGET_GAS conditionals into asm strings.
15756         (mips_output_filename): Remove !TARGET_GAS code.  Replace use of
15757         ASM_STABS_OP and ASM_STABN_OP.
15758         (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
15759         (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
15760         (mips_output_function_prologue): Remove !TARGET_GAS code.
15761         (mips_select_rtx_section): Remove !have_named_sections code.
15762         (mips_select_section): Delete.
15763         * config/mips/mips.md (trap): Remove !TARGET_GAS check.
15764         * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
15765         * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
15766         (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
15767         * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
15768         * config/mips/windiss.h (ASM_SPEC): Likewise.
15769
15770 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
15771
15772         * read-rtl.c (map_value, mapping, macro_group): New structures.
15773         (BELLWETHER_CODE): New macro.
15774         (modes, codes, bellwether_codes): New variables.
15775         (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
15776         (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
15777         (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
15778         (add_condition_to_rtx, apply_macro_traverse, add_mapping)
15779         (add_map_value, initialize_macros): New functions.
15780         (def_hash, def_hash_eq_p): Generalize to anything that points to,
15781         or starts with, a char * field.
15782         (find_macro, read_mapping, check_code_macro): New functions.
15783         (read_rtx_1): New, split out from read_rtx.  Handle the new
15784         define_{mode,code}_{macro,attr} constructs.  Use find_macro
15785         to parse the name of a code or mode.  Use BELLWETHER_CODE to
15786         extract the format and to choose a suitable code for rtx_alloc.
15787         Modify recursive invocations to use read_rtx_1.
15788         (read_rtx): Call initialize_macros.  Apply code and mode macros
15789         to the rtx returned by read_rtx_1.  Cache everything after the
15790         first macro expansion for subsequent read_rtx calls.
15791         * doc/md.texi: Document new .md constructs.
15792         * config/mips/mips.md (GPR): New mode macro.
15793         (d, si8_di5): New mode attributes.
15794         (any_cond): New code macro.
15795         (add[sd]i3): Redefine using :GPR.
15796         (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
15797         (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
15798         previously unnamed MIPS16 patterns.
15799         (*addsi3_extended): Renamed from addsi3_internal_2.  Fix overly long
15800         lines.  Don't match (plus (const_int 0) ...).
15801         (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
15802         Use a define_split to generate the addition.
15803         (sub[sd]i3): Redefine using :GPR.  Turn subsi3 into a define_insn.
15804         (subsi3_internal): Delete.
15805         (*subsi3_extended): Renamed from subsi3_internal_2.
15806         (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
15807         (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
15808         using an any_cond template.
15809
15810 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
15811
15812         * read-rtl.c (read_rtx): Tidy use of format_ptr.
15813
15814 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
15815
15816         * read-rtl.c (string_obstack): New file-scope variable.
15817         (read_string, read_quoted_string, read_braced_string)
15818         (read_escape): Remove obstack parameter and use string_obstack instead.
15819         (read_rtx): Remove function-local rtl_obstack and initialize
15820         string_obstack instead.  Update call to read_string.
15821
15822 2004-08-22  Andrew Pinski  <apinski@apple.com>
15823
15824         PR c/15262
15825         * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
15826         expression is not constant.
15827         (c_finish_return): Do not go through INDIRECT_REF when looking
15828         for the inner expression of an ADDR_EXPR for warning about.
15829
15830 2004-08-22  Richard Henderson  <rth@redhat.com>
15831
15832         PR 17075
15833         * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
15834         create new blocks and fall through.
15835         (expand_gimple_basic_block): Update to match.
15836
15837 2004-08-22  Ulrich Weigand  <uweigand@de.ibm.com>
15838
15839         * reload.c (find_reloads_address): Make return value tri-state.
15840         Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
15841         (find_reloads): Assume that reloaded addresses match 'o' or
15842         EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
15843         returned 1 (not -1).  Omit optional reloads for address operands
15844         only if find_reloads_address returned 1 (not -1).
15845
15846         * config/s390/s390.c (legitimize_reload_address): New function.
15847         * config/s390/s390-protos.h (legitimize_reload_address): Declare.
15848         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define.  Call
15849         legitimize_reload_address.
15850
15851 2004-08-22  Richard Hendersion  <rth@redhat.com>
15852
15853         * tree.h (SAVE_EXPR_RESOLVED_P): New.
15854         * gimplify.c (gimplify_save_expr): Use it.
15855         * expr.c (expand_expr_real_1): Likewise.  Also set DECL_IGNORED_P
15856         on the temporary variable.
15857
15858 2004-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
15859
15860         * fold-const.c (rtl_expr_nonnegative_p): Delete.
15861         * tree.h (rtl_expr_nonnegative_p): Remove.
15862
15863 2004-08-22  Steven Bosscher  <stevenb@suse.de>
15864
15865         * config/i386/ppro.md (ppro_complex_insn): Add missing check
15866         for cpu==pentiumpro.
15867
15868         * combine.c (struct reg_stat): Fix comment typo.
15869
15870 2004-08-22  Joseph S. Myers  <jsm@polyomino.org.uk>
15871
15872         * c-tree.h (c_sizeof_nowarn): Remove.
15873
15874 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
15875
15876         * c-decl.c (set_array_declarator_type): Rename to
15877         set_array_declarator_inner.
15878         (build_c_parm, build_attrs_declarator, build_function_declarator):
15879         New functions.
15880         (make_pointer_declarator): Call build_attrs_declarator.
15881         * c-tree.h (set_array_declarator_type): Rename to
15882         set_array_declarator_inner.
15883         (build_c_parm, build_attrs_declarator, build_function_declarator):
15884         New prototypes.
15885         * c-parse.in (after_type_declarator,
15886         parm_declarator_starttypename, parm_declarator_nostarttypename,
15887         notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
15888         firstparm): Use these functions
15889
15890 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
15891
15892         * c-decl.c (build_array_declarator, set_array_declarator_type,
15893         start_decl, grokdeclarator, grokparms): Change boolean parameters
15894         to type bool.
15895         * c-tree.h (build_array_declarator, set_array_declarator_type,
15896         start_decl): Update prototypes.
15897         * c-decl.c, c-parse.in: All callers changed.
15898
15899 2004-08-21  Mike Stump  <mrs@apple.com>
15900
15901         * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
15902         (darwin_fix_and_continue): Likewise.
15903         (darwin_fix_and_continue_switch): Likewise.
15904         * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
15905         (darwin_fix_and_continue): Likewise.
15906         (darwin_fix_and_continue_switch): Likewise.
15907
15908 2004-08-21  Danny Smith  <dannysmith@users.sourceforge.net>
15909
15910         PR  c++/16030
15911         * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
15912         Remove, merging into ...
15913         (gen_stdcall_or_fastcall_suffix): New function, returning tree
15914         rather than const char*, and accepting additional parameter.
15915         Don't add suffix to '*'-prefixed symbols or variadic functions.
15916         (i386_pe_encode_section_info): Adjust for call to new function.
15917         Call change_decl_assembler_name.
15918
15919 2004-08-20  Mike Stump  <mrs@apple.com>
15920
15921         * config/darwin.c (machopic_indirect_data_reference): Mark
15922         stubs as defined.
15923         * config/386/386.c (darwin_local_data_pic): Add.
15924         (legitimate_constant_p): Reorder so that PLUS handling runs
15925         before darwin_local_data_pic to match the ordering in
15926         legitimate_pic_address_disp_p and so that MINUS runs after
15927         darwin_local_data_pic as otherwise the darwin_local_data_pic
15928         logic can be skipped, which would be very bad.
15929         (legitimate_pic_address_disp_p): Move from from here to
15930         darwin_local_data_pic so it can be reused.
15931
15932 2004-08-21  Alan Modra  <amodra@bigpond.net.au>
15933
15934         * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
15935         (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
15936         (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
15937         (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
15938         (RS6000_ABI_NAME): Define as "linux".
15939         (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
15940         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
15941         ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
15942         * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
15943         * config/rs6000/rs6000.c (dot_symbols): New global var.
15944         (rs6000_output_function_entry): New function, modified for
15945         !DOT_SYMBOLS..
15946         (print_operand <case 'z'>): ..extracted from here.
15947         (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
15948         (rs6000_output_function_epilogue): Likewise.
15949         (rs6000_elf_declare_function_name): Likewise.
15950         * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
15951         (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
15952         * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
15953         * configure: Regenerate.
15954         * config.in: Regenerate.
15955
15956 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
15957
15958         * reload.c (find_reloads_address): Fix thinko in previous change.
15959
15960         * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
15961         a CONST_INT.
15962
15963 2004-08-20  Jakub Jelinek  <jakub@redhat.com>
15964
15965         PR rtl-optimization/17099
15966         * combine.c (force_to_mode): Check if inner_mask has any bits set
15967         outside of GET_MODE (x) instead of op_mode.
15968
15969 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
15970
15971         * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
15972         fragment.
15973         * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
15974         (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
15975         * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
15976         architecture.
15977         (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
15978         configurations.
15979         * config/arm/t-symbian: New file.
15980
15981 2004-08-20  Andrew Pinski  <apinski@apple.com>
15982
15983         * regrename.c (kill_value_regno): ANSIfy.
15984
15985 2004-08-20  Dale Johannesen  <dalej@apple.com>
15986
15987         * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
15988
15989 2004-08-20  Daniel Jacobowitz  <dan@debian.org>
15990
15991         * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
15992         (kill_value_regno): New function, derived from kill_value.
15993         (kill_value): Update.
15994         (copyprop_hardreg_forward_1): Update call to kill_value_regno.
15995
15996 2004-08-20  Daniel Berlin  <dberlin@dberlin.org>
15997
15998         Fix PR tree-optimization/17111
15999         * tree-ssa-pre.c (create_value_expr_from): Don't change the types
16000         of non-value_handles.
16001         (bitmap_set_contains): All constants are in every set.
16002
16003 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
16004
16005         * fold-const.c (round_up, round_down): Use build_int_cst.
16006         Optimize common case.
16007
16008 2004-08-20  Zack Weinberg  <zack@codesourcery.com>
16009             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16010
16011         * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
16012         one_only_data_section): Rename to som_readonly_data_section,
16013         som_one_only_readonly_data_section and som_one_only_data_section.
16014         * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
16015         NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
16016         conditional defines.
16017         (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
16018         NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
16019         string values.
16020         (pa_select_section): Use renamed section functions.
16021         * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
16022         SOM_READONLY_DATA_SECTION_FUNCTION,
16023         SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
16024         SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
16025         Define here ...
16026         * config/pa/som.h: ... not here.
16027         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
16028         ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
16029         ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
16030         ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
16031         (READONLY_DATA_SECTION): Use som_readonly_data_section.
16032
16033 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
16034
16035         * fold-const.c (int_const_binop): Don't generate non-overflowing
16036         size-types specially.
16037         (fold_convert_const): Likewise.
16038
16039         * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
16040         clear cache on copied sizetype.
16041
16042 2004-08-20  Ben Elliston  <bje@au.ibm.com>
16043
16044         * configure.ac: Don't escape apostrophe in --enable-coverage help.
16045         * configure: Regenerate.
16046
16047 2004-08-20  Danny Smith  <dannysmith@users.sourceforge.net>
16048
16049         PR 5620
16050         * gcc.c (struct stat input_stat): Don't define if
16051         HOST_LACKS_INODE_NUMBERS
16052         (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
16053         than stat to determine if temp file is same as input file.
16054         * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
16055         * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
16056
16057 2004-08-20  Richard Sandiford  <rsandifo@redhat.com>
16058
16059         * configure.ac (mips*-*-*): Print an error if not using GAS.
16060         * configure: Regenerated.
16061         * doc/install.texi: Remove irix5 bullet from --with-gnu-as.  Remove
16062         comments about buggy MIPSpro assemblers.
16063         * config.gcc (mips-sgi-irix[56]*): Combine stanzas.  Include elfos.h
16064         before mips.h and iris.h after it.  Use t-iris and t-slibgcc-irix.
16065         Use iris5.h only for IRIX 5 configs.  Use iris6.h and t-iris6 for
16066         IRIX 6 configs.  Define IRIX_USING_GNU_LD if using GNU ld.
16067         * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
16068         (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
16069         (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
16070         (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
16071         (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
16072         of more general IRIX 6 definitions.
16073         (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
16074         (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
16075         (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
16076         (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
16077         (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
16078         (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
16079         (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
16080         (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
16081         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
16082         (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
16083         (LINK_SPEC): Move most of definition to iris.h.
16084         (SUBTARGET_LINK_SPEC): New macro.
16085         (IRIX_STARTFILE_SPEC): Fold into...
16086         (STARTFILE_SPEC): ...here.
16087         (IRIX_ENDFILE_SPEC): Fold into...
16088         (ENDFILE_SPEC): ...here.
16089         * config/mips/iris6.h (TARGET_IRIX5): Remove override.
16090         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
16091         (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
16092         (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
16093         (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
16094         (TARGET_OS_CPP_BUILTINS): Likewise.  Guard IRIX6-specific bits.
16095         (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
16096         (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
16097         (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
16098         (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
16099         (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
16100         (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
16101         (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
16102         (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
16103         (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
16104         (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
16105         (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
16106         (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
16107         (TARGET_IRIX6): Define to 1.
16108         (DRIVER_SELF_SPECS): Define.
16109         (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
16110         (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
16111         (SUBTARGET_LINK_SPEC): New macro.
16112         (IRIX_STARTFILE_SPEC): Fold into...
16113         (STARTFILE_SPEC): ...here.  Remove !mabi=* case.
16114         (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
16115         (LIB_SPEC, LIBGCC_SPEC): Use them.
16116         (LIB_SPEC): Remove !mabi=* case.
16117         (IRIX_ENDFILE_SPEC): Fold into...
16118         (ENDFILE_SPEC): ...here.  Remove !mabi=* case.
16119         * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
16120         * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
16121         (TARGET_IRIX6): New macro.
16122         (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
16123         (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
16124         (LABEL_AFTER_LOC): Delete.
16125         * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
16126         (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
16127         (mips_build_builtin_va_list): Check TARGET_IRIX6.
16128         (override_options): Remove TARGET_SGI_O32_AS-related code.
16129         (irix_output_external_libcall): Make static.
16130         (mips_output_filename): Avoid use of SET_FILE_NUMBER and
16131         LABEL_AFTER_LOC.
16132         (mips_file_start): Tidy guard for ABI sections.  Remove use of
16133         ABICALLS_ASM_OP; use .abicalls instead.
16134         (mips_output_aligned_decl_common, mips_declare_object_name)
16135         (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
16136         (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
16137         .globl foo .text directives.
16138         (irix_asm_named_section_1, irix_asm_named_section)
16139         (irix_section_align_entry, irix_section_align_htab)
16140         (irix_orig_asm_out_file, irix_section_align_entry_eq)
16141         (irix_section_align_entry_hash, irix_asm_output_align)
16142         (irix_file_start, irix_section_align_1, copy_file_data)
16143         (irix_file_end, irix_section_type_flags): Delete.
16144         * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
16145         Use standard section syntax.  Remove protective "jr $31".
16146         (__gcc_fini): Likewise .gcc_fini.
16147         * config/mips/irix-crtn.asm: Adjust sections accordingly.
16148         * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
16149         iris5gas.h.
16150         * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
16151         from t-irix-gld.
16152         (EXTRA_MULTILIB_PARTS): Define.
16153         * config/mips/t-iris6: Remove bogus comment.
16154         (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
16155         * config/mips/iris5gas.h, config/mips/iris5gld.h,
16156         config/mips/iris6gas.h, config/mips/iris6gld.h,
16157         config/mips/t-iris5-as, config/mips/t-iris5-gas
16158         config/mips/t-irix-gld: Delete.
16159         * config/mips/iris.h: New file.
16160         * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
16161
16162 2004-08-20  Richard Earnshaw  <rearnsha@arm.com>
16163
16164         * postreload.c (reload_cse_move2add): Allow any condjump, but check
16165         that the implicit set isn't clobbered in the jump insn.
16166
16167 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
16168
16169         * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
16170         * optabs.c (init_optabs): Don't check it.
16171         * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
16172         * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
16173
16174 2004-08-18  Andreas Krebbel  <krebbel1@de.ibm.com>
16175
16176         * config/s390/s390.md (s390_warn_framesize_string)
16177         (s390_warn_dynamic_string, s390_stack_size_string)
16178         (s390_stack_guard_string): New global string variables.
16179         (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
16180         (s390_stack_guard): New global variables.
16181         (override_options): Added checks for the new options.
16182         (s390_emit_prologue): Emit stack check and trap code and perform
16183         compile time stack size checking.
16184
16185         * config/s390/s390.h (TARGET_OPTIONS): Added new options
16186         "warn-framesize", "warn-dynamicstack", "stack-size" and
16187         "stack-guard".
16188
16189         * doc/invoke.texi: Added documentation for the new options.
16190
16191 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
16192
16193         * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
16194         to eliminate warning.
16195         (linear_search_fdes): Declare p as unsigned.
16196         (binary_search_mixed_encoding_fdes): Likewise.
16197         * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
16198         to eliminate warning.
16199         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
16200         type cast.
16201
16202 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
16203
16204         * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
16205         * config/s390/s390.c (preferred_la_operand_p): Accept two operands
16206         instead of one.  Check for strictly legitimate address.
16207         * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
16208         to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
16209
16210 2004-08-19  Eric Christopher  <echristo@redhat.com>
16211
16212         * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
16213         * langhooks.h (unsave_expr_now): Ditto.
16214         * tree.h (unsave_expr_1): Remove prototype.
16215         (lhd_unsave_expr_now): Rename to unsave_expr_now.
16216         * tree-inline.c (unsave_expr_1): Move here
16217         from tree.c. Make static.
16218         (unsave_expr_now): Rename from lhd_unsave_expr_now.
16219         * tree-sra.c: Fix up for rename.
16220         * tree-ssa-copy.c: Ditto.
16221         * tree-eh.c: Ditto.
16222         * tree.c (unsave_expr_1): Move to tree-inline.c.
16223
16224 2004-08-19  Caroline Tice  <ctice@apple.com>
16225
16226         * config/i386/cygming.h (switch_to_section):  Fix typo (change
16227         in_unlikely_text_section to in_unlikely_executed_text).
16228
16229 2004-08-19  Daniel Berlin  <dberlin@dberlin.org>
16230
16231         * vec.h (VEC_lower_bound): New macro.
16232
16233 2004-08-19  Richard Sandiford  <rsandifo@redhat.com>
16234
16235         PR target/16446
16236         * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
16237         (mips_arg_info): Update accordingly.  Remove common treatment of fpr_p;
16238         treat each ABI separately.  Deal with n32/n64 complex float arguments.
16239         (function_arg): Add associated complex handling here.
16240
16241 2004-08-19  Richard Henderson  <rth@redhat.com>
16242
16243         * config/arm/arm.c (arm_gen_load_multiple): Use
16244         adjust_automodify_address.  Take base memory and offset instead
16245         of unchanging/struct/scalar bits.
16246         (arm_gen_store_multiple): Likewise.
16247         (arm_gen_movmemqi): Use adjust_automodify_address.
16248         * config/arm/arm-protos.h: Update decls.
16249         * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
16250         (store_multiple): Similarly.
16251
16252 2004-08-19  J"orn Rennecke <joern.rennecke@superh.com>
16253
16254         * regclass.c (globalize_reg): Update call_really_used_regs.
16255
16256 2004-08-19  Nathan Sidwell  <nathan@codesourcery.com>
16257
16258         * doc/invoke.texi (integer-share-limit): Document.
16259
16260         * tree.h (TYPE_CACHED_VALUES_P): New.
16261         (TYPE_CACHED_VALUES): New.
16262         (TYPE_ORIG_SIZE_TYPE): Adjust.
16263         * tree.def (INTEGER_CST): Update documentation.
16264         * tree.c: Inlcude params.h.
16265         (build_int_cst): Cache small values.
16266         (build_type_copy): Do not copy the value cache.
16267         * c-common.c (c_common_nodes_and_builtins): Add comment, remove
16268         unneeded zeroing.
16269         * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
16270         * expmed.c (const_mult_add_overflow_p): Clear type copy's value
16271         cache.
16272         * fold-const.c (force_fit_type): Copy value when setting
16273         overflows.
16274         (int_const_binop): Likewise.
16275         * stor-layout.c: Include params.h
16276         (set_sizetype): Create values cache.
16277         (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
16278         * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
16279         * params.h (INTEGER_SHARE_LIMIT): New.
16280         * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
16281
16282 2004-08-19  Paolo Bonzini  <bonzini@gnu.org>
16283
16284         * gimplify.c (gimplify_minimax_expr): Remove.
16285         (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
16286
16287 2004-08-19  Dorit Naishlos  <dorit@il.ibm.com>
16288
16289         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
16290         STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
16291
16292 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
16293
16294         * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
16295
16296 2004-08-18  Andrew Pinski  <apinski@apple.com>
16297
16298         * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
16299
16300 2004-08-18  Mark Mitchell  <mark@codesourcery.com>
16301
16302         * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
16303         (__aeabi_ul2f): Likewise.
16304
16305 2004-08-18  Richard Henderson  <rth@redhat.com>
16306
16307         * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
16308         move to rtl completely.
16309         (struct meminsnbuf, xtensa_emit_block_move): Remove.
16310         (xtensa_find_mode_for_size): Remove.
16311         * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
16312         * config/xtensa/xtensa.md (movmemsi_internal): Remove.
16313
16314 2004-08-18  Richard Henderson  <rth@redhat.com>
16315
16316         * config/mcore/mcore.c (mode_from_align): Remove DImode.
16317         (block_move_sequence): Rewrite to use adjust_address.
16318         (mcore_expand_block_move): Cleanup logic.  Accept only operands.
16319         Return boolean indicating success/failure.
16320         * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
16321         * config/mcore/mcore.md (movmemsi): Update to match.
16322
16323 2004-08-18  Mike Stump  <mrs@apple.com>
16324
16325         * doc/invoke.texi (-mfix-and-continue): Add support for
16326         fast turn around debugging.
16327         (-ffix-and-continue): Likewise.
16328         (-mindirect-data): Likewise.
16329         (-findirect-data): Likewise.
16330         * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
16331         (indirect_data): Likewise.
16332         (machopic_data_defined_p): Likewise.
16333         (machopic_output_indirection): Likewise.
16334         (darwin_encode_section_info): Likewise.
16335         (darwin_fix_and_continue): Likewise.
16336         (darwin_fix_and_continue_switch): Likewise.
16337         * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
16338         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
16339         (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
16340         (SUBTARGET_OPTIONS): Likewise.
16341         (darwin_fix_and_continue): Likewise.
16342         (darwin_fix_and_continue_switch): Likewise.
16343         (TARGET_FIX_AND_CONTINUE): Likewise.
16344         * config/rs6000.c (rs6000_emit_prologue): Likewise.
16345
16346 2004-08-19  Steven Bosscher  <stevenb@suse.de>
16347
16348         * basic-block.h (struct edge_def): Remove crossing_edge.
16349         (EDGE_CROSSING): New define.
16350         (EDGE_ALL_FLAGS): Update.
16351         * bb-reorder.c (find_traces_1_round, better_edge_p,
16352         find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
16353         find_jump_block, fix_crossing_conditional_branches,
16354         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
16355         Replace all occurences of crossing_edge with an edge flag check
16356         or set/reset.
16357         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
16358         try_crossjump_bb): Likewise.
16359         * cfglayout.c (fixup_reorder_chain): Likewise.
16360         * cfgrtl.c (force_nonfallthru_and_redirect,
16361         commit_one_edge_insertion): Likewise.
16362
16363         * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
16364         * tree-flow.h (compute_dominance_frontiers): Move prototype...
16365         * basic-block.h:  ...here.
16366         * tree-cfg.c (compute_dominance_frontiers_1,
16367         compute_dominance_frontiers): Move from here...
16368         * cfganal.c: ...to here.  Include timevar.h.
16369
16370 2004-08-18  James E Wilson  <wilson@specifixinc.com>
16371
16372         * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
16373         * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
16374
16375         * config/mips/mips.md (type): Add frdiv.
16376         (divsf3+1, divsf3+2): Change type to frdiv.
16377         * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
16378         ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
16379
16380         * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
16381         * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
16382         * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
16383         * config/mips/5000.md (r5k_fdiv_single): Likewise.
16384         * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
16385         * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
16386         * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
16387         * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
16388         * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
16389         * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
16390         Likewise.
16391         * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
16392
16393 2004-08-18  Robert Bowdidge <bowdidge@apple.com>
16394
16395         * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
16396         get regression tester working again.
16397
16398 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
16399
16400         * insn-notes.def, reg-notes.def: New files.
16401         * rtl.h: Use them to define enum insn_note and enum reg_note.
16402         * rtl.c: Use them to define note_insn_name and reg_note_name.
16403         * Makefile.in (RTL_BASE_H): Update.
16404
16405         * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
16406         renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
16407
16408 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
16409
16410         * arm.c (arm_size_rtx_costs): New function.
16411         (arm_override_options): Use it if optimizing for space.
16412
16413 2004-08-18  Richard Henderson  <rth@redhat.com>
16414
16415         * emit-rtl.c (gen_const_mem): New.
16416         * rtl.h (gen_const_mem): Declare.
16417         * expr.c (do_tablejump): Use it.
16418         * varasm.c (force_const_mem): Likewise.
16419         * config/darwin.c (machopic_indirect_data_reference): Likewise.
16420         (machopic_legitimize_pic_address): Likewise.
16421         * config/arm/arm.c (legitimize_pic_address): Likewise.
16422         * config/i386/i386.c (legitimize_pic_address): Likewise.
16423         (legitimize_tls_address): Likewise.
16424         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
16425         * config/ia64/ia64.md (load_fptr): Likewise.
16426         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
16427         * config/pa/pa.c (legitimize_pic_address): Likewise.
16428         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
16429         (rs6000_emit_move): Likewise.
16430         * config/s390/s390.c (legitimize_pic_address): Likewise.
16431         (legitimize_tls_address): Likewise.
16432         * config/s390/s390.md (casesi): Likewise.
16433         * config/sh/sh.c (sh_reorg): Likewise.
16434         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
16435         * config/v850/v850.md (casesi): Likewise.
16436
16437         * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
16438         * config/sh/sh.c (prepare_move_operands): Remove incorrect
16439         use of MEM_READONLY_P.
16440
16441 2004-08-18  Steven Bosscher  <stevenb@suse.de>
16442
16443         * Makefile.in (OBJS-common): Add postreload-gcse.c.
16444         Add new postreload-gcse.o.
16445         * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
16446         (lookup_as_function, insert, rehash_using_reg, use_related_value,
16447         equiv_constant): Use SAFE_HASH instead of safe_hash.
16448         (exp_equiv_p): Export.  Add for_gcse argument when comparing
16449         for GCSE.
16450         (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
16451         find_comparison_args, fold_rtx, cse_insn): Update callers.
16452         (hash_rtx): New function derived from old canon_hash and bits
16453         from gcse.c hash_expr_1.
16454         (canon_hash_string): Rename to hash_rtx_string.
16455         (canon_hash, safe_hash): Make static inline.  Call hash_rtx.
16456         * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
16457         (cselib_lookup): Update this caller.
16458         * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
16459         Make static.
16460         (hash_expr): Call hash_rtx.
16461         (ldst_entry): Likewise.
16462         (expr_equiv_p): Call exp_equiv_p.
16463         (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
16464         reg_used_on_edge, reg_set_between_after_reload_p,
16465         reg_used_between_after_reload_p, get_avail_load_store_reg,
16466         is_jump_table_basic_block, bb_has_well_behaved_predecessors,
16467         get_bb_avail_insn, hash_scan_set_after_reload,
16468         compute_hash_table_after_reload,
16469         eliminate_partially_redundant_loads, gcse_after_reload,
16470         get_bb_avail_insn, gcse_after_reload_main): Remove.
16471         * postreload-gcse.c: New file, reincarnating most of the above.
16472         * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
16473         (gcse_after_reload_main): Update prototype.
16474         * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
16475         * passes.c (rest_of_handle_gcse2): Use it.
16476
16477 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
16478
16479         * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
16480         (pass_loop_done): Likewise.
16481
16482 2004-08-18  Andrew Pinski  <apinski@apple.com>
16483
16484         * config/rs6000/darwin.md: Delete the altivec patterns which are
16485         handled differently now.
16486         (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
16487         (macho_correct_pic_di): Likewise.
16488         (call_indirect_nonlocal_darwin64): Likewise.
16489         Delete the save world/saveFP/saveVec patterns.
16490
16491         Revert the reversion of: 2004-08-16  Stan Shebs  <shebs@apple.com>
16492         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
16493         * config/rs6000/rs6000.md: Include darwin.md.
16494         (builtin_setjmp_receiver): Add DImode case.
16495         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
16496         Darwin bits.
16497
16498 2004-08-18  Matt Austern  <austern@apple.com>
16499
16500         Dead code stripping
16501         * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
16502         * darwin.c (darwin_file_end): Mark file as potentially strippable.
16503
16504 2004-08-18  Richard Henderson  <rth@redhat.com>
16505
16506         * alias.c (readonly_fields_p): Remove.
16507         (objects_must_conflict_p): Don't call it.
16508         * tree.h (readonly_fields_p): Remove.
16509         * langhooks.h (struct lang_hooks): Remove honor_readonly.
16510         * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
16511
16512 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
16513
16514         * tree-dfa.c (add_referenced_var): Only global variables are
16515         call-clobbered.
16516         * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
16517         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
16518         all pointers dereferenced if the statement dereferences them.
16519         (create_name_tags): Do not create memory tags for pointers
16520         that have PT_ANYTHING set.
16521         Also check if PT_VARS is not empty before creating a name tag.
16522         (compute_flow_sensitive_aliasing): Don't mark call-clobbered
16523         variables that share the same alias set with a pointer that
16524         may point anywhere.
16525         (add_may_alias): Add FIXME comment to remove clobbering
16526         aliased variables and tags.
16527         (replace_may_alias): Likewise.
16528         (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
16529         (merge_pointed_to_info): If the original variable has not
16530         points-to information, call set_pt_anything.
16531         (add_pointed_to_var): Do not prevent adding a pointed-to
16532         variable if the pointers is PT_ANYTHING.
16533         If the variable is a global, set PT_GLOBAL_MEM.
16534         (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
16535         pointer type only come in PTR+OFFSET flavours.
16536         Always call merge_pointed_to_info on PHI arguments that are
16537         SSA_NAMEs.
16538         (get_nmt_for): Mark call-clobbered tags whose pointer points
16539         to global memory.
16540         * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
16541         values.
16542         (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
16543         FLAGS.
16544         (add_stmt_operand): Abort if the caller tried to add a killing
16545         definition for a memory tag.
16546         * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
16547         unnecessary checks.
16548
16549 2004-08-18  J"orn Rennecke <joern.rennecke@superh.com>
16550
16551         * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
16552         from call_used_regs.  Update call_really_used_regs.
16553         (CALL_REALLY_USED_REGISTERS): Define.
16554         * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
16555         Replace call_used_regs with call_really_used_regs.
16556         (calc_live_regs, sh_media_register_for_return): Likewise.
16557         (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
16558         * sh.md (return_media): Likewise.
16559
16560 2004-08-18  Andrew Pinski  <apinski@apple.com>
16561
16562         * config/darwin.c (machopic_legitimize_pic_address): Only set
16563         MEM_READONLY_P in the non TARGET_TOC case.
16564
16565 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
16566
16567         * rtl.def (NIL): Delete.
16568         * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
16569         Tighten the syntax a little.
16570
16571         * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
16572         * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
16573         * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
16574         * config/i386/predicates.md, config/m32r/m32r.h
16575         * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
16576         * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
16577         * config/sparc/sparc.h, doc/tm.texi:
16578         Replace all occurrences of NIL with UNKNOWN.
16579
16580 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
16581
16582         * dojump.c (do_jump <unordered_bcc>): Do not recursively call
16583         self with a TRUTH_ORIF_EXPR; generate the appropriate jump
16584         sequence inline.  Move drop_through_label code into this
16585         block, being the only place it is used.  Adjust comments.
16586
16587 2004-08-18  Fariborz Jahanian <fjahanian@apple.com>
16588
16589         * config/rs6000/altivec.md: Add new patterns for calls to
16590         save_world/rest_world functions.
16591
16592         * config/rs6000/rs6000-protos.h: (save_world_operation,
16593         restore_world_operation) new declarations.
16594
16595         * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
16596         field added.
16597         (rs6000_stack_info): Set world_save_p field.
16598         (save_world_operation): New function.
16599         (restore_world_operation): New function.
16600         (compute_save_world_info): New function.
16601         (rs6000_stack_info): Call compute_save_world_info.
16602         (rs6000_emit_prologue): Check for world_save_p and generate
16603         pattern to call save_world for saving all non-volatile and
16604         special registers.
16605         (rs6000_emit_epilogue): Check for world_save_p and generate
16606         pattern to call rest_world to restore saved registers.
16607
16608         config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
16609         FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
16610         (rs6000_reg_names): New entries added for save_world_operation and
16611         restore_world_operation.
16612
16613 2004-08-18  Caroline Tice  <ctice@apple.com>
16614
16615         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
16616         "-freorder-blocks-and-partition" to the flags used in second
16617         stage of profiledbootstrap.
16618         * bb-reorder.c (push_to_next_round_p): Add new variable,
16619         next_round_is_last; set and use variable to make sure, when
16620         partitioning, that the last trace construction round consists
16621         of all (and only) cold basic blocks.
16622         (rotate_loop): Don't copy blocks that end in a section
16623         crossing jump.
16624         (copy_bb): Correctly initialize "partition" of duplicated bb.
16625         (add_unlikely_executed_notes): Add a comment.
16626         (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
16627         to make sure, if function contains hot blocks, that the
16628         successors of ENTRY_BLOCK_PTR are hot; also, only look for
16629         crossing edges if the architecture supports named sections.
16630         (mark_bb_for_unlikely_executed_section): Modify to always
16631         insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
16632         the basic block note insn.
16633         (fix_crossing_unconditional_branches): Remove extra space.
16634         (fix_edges_for_rarely_executed_code): Modify to only do
16635         partitioning work if the architecture supports named sections.
16636         (reorder_basic_blocks): Modify to only add
16637         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
16638         supports named sections.
16639         * c-common.c (handle_section_attribute): Initialize new global
16640         variable, user_defined_section_attribute, to true if user has
16641         specified one.
16642         * cfgcleanup.c (try_forward_edges): Modify to not attempt to
16643         forward edges that cross section boundaries.
16644         * cfglayout.c (fixup_reorder_chain): Modify to only fix up
16645         partitioning information if the architecture supports named
16646         sections.
16647         * cfgrtl.c (target.h): Add statement to include this.
16648         (rtl_split_block): Make sure newly created bb gets correct
16649         partition.
16650         (try_redirect_by_replacing_jump): Make sure redirection isn't
16651         attempting to cross section boundaries.
16652         (force_nonfallthru_and_redirect): Only do partition fix up if
16653         architecture supports named sections.
16654         (rtl_split_edge): Make sure newly created bb ends up in
16655         correct partition.
16656         (commit_one_edge_insertion): Remove code that incorrectly
16657         updated basic block partition; Make sure partition fix up only
16658         happens if architecture supports named sections and it's not
16659         already done.
16660         (rtl_verify_flow_info_1): Fix if-condition on test/error
16661         condition that fallthru edges are not allowed to cross section
16662         boundaries.
16663         * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
16664         * final.c (final_scan_insn): Remove redundant test from if-statement;
16665         change calls to text_section into calls to function_section; add code
16666         to only to partitioning fix up if architecture supports named
16667         sections.
16668         * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
16669         partition.
16670         (if_convert): Add targetm.have_named_sections to test.
16671         * output.h (unlikely_section_label): Extern declaration for new global
16672         variable.
16673         (unlikely_text_section_name): Likewise.
16674         * opts.c (decode_options): If both partitioning and DWARF debugging
16675         are turned on, issue a warning that this doesn't work, and change
16676         partitiong to basic block reordering (without hot/cold partitions).
16677         * passes.c (rest_of_handle_final): Re-set new global variable,
16678         user_defined_section_attribute, to false.
16679         (rest_of_compilation): Change options for calling partitioning
16680         function: Don't call if the user defined the section attribute, and
16681         don't call if DECL_ONE_ONLY is true for the current function.
16682         * predict.c (choose_function_section): Return immediately if we
16683         are doing hot/cold partitioning (i.e. let the basic block partitioning
16684         determine where the function belongs).
16685         * reg-stack.c (emit_swap_insn): Add condition to step over
16686         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
16687         * toplev.c (user_defined_section_attribute): New global variable.
16688         * toplev.h (user_defined_section_attribute): Extern declaration
16689         for new global variable.
16690         * varasm.c (unlikely_section_label): New global variable.
16691         (unlikely_text_section_name): New global variable.
16692         (unlikely_text_section): Add code to initialize
16693         unlikely_text_section_name if necessary; modify to use
16694         unlikely_text_section_name and unlikely_section_label; also to use
16695         named_section properly.
16696         (in_unlikely_text_section):  Modify to work correctly with
16697         named_section and to use unlikely_text_section_name.
16698         (named_section):  Add code to work properly with cold section.
16699         (function_section): Clean up if-statement.
16700         * config/darwin.c (darwin_asm_named_section): Return to original
16701         code, removing use of SECTION_FORMAT_STRING.
16702         * config/arm/pe.h (switch_to_section):  Add case for
16703         in_unlikely_executed_text to switch statement.
16704         * config/i386/cygming.h (switch_to_section): Likewise.
16705         * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
16706         (SECTION_FORMAT_STRING): Likewise.
16707         * config/mcore/mcore.h (switch_to_section): Likewise.
16708         * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
16709         (SECTION_FORMAT_STRING): Remove.
16710
16711 2004-08-18  Roger Sayle  <roger@eyesopen.com>
16712
16713         * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
16714         -ffixed-reg safe, by preserving the meanings of zero and one.
16715         (CALL_USED_REGISTERS): Likewise.
16716         (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
16717
16718 2004-08-18  Kaz Kojima  <kkojima@gcc.gnu.org>
16719
16720         * config/sh/sh.c (split_branches): Check the result of
16721         next_active_insn.
16722         (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
16723         Call rtl_register_cfg_hooks.
16724
16725 2004-08-18  Richard Henderson  <rth@redhat.com>
16726
16727         * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
16728         * alias.c (true_dependence): Update to match new semantics.
16729         (canon_true_dependence, write_dependence_p): Likewise.
16730         (anti_dependence, output_dependence): Update write_dependence_p args.
16731         (unchanging_anti_dependence): Remove.
16732         * calls.c (purge_mem_unchanging_flag): Remove.
16733         (fixup_tail_calls): Don't call it.
16734         (expand_call): Don't add unchanging memory to function usage.
16735         * expr.c (emit_block_move_via_libcall): Likewise.
16736         (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
16737         (get_subtarget): Don't use RTX_UNCHANGING_P.
16738         (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
16739         (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
16740         * combine.c (get_last_value_validate): Use MEM_READONLY_P.
16741         * cse.c (insert): Don't use RTX_UNCHANGING_P.
16742         (cse_insn, canon_hash): Use MEM_READONLY_P.
16743         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
16744         instead of RTX_UNCHANGING_P.
16745         * explow.c (maybe_set_unchanging): Remove.
16746         * expr.h (maybe_set_unchanging): Remove.
16747         * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
16748         * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
16749         (assign_parm_setup_reg, expand_function_start): Likewise.
16750         * integrate.c (copy_rtx_and_substitute): Likewise.
16751         * ra-rewrite.c (emit_colors): Likewise.
16752         * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
16753         (fixup_match_1): Likewise.
16754         * reload1.c (reload, alter_reg): Likewise.
16755         * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
16756         not RTX_UNCHANGING_P.
16757         (equiv_init_varies_p): Likewise.
16758         * loop-invariant.c (check_maybe_invariant): Likewise.
16759         * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
16760         * loop.c (note_addr_stored): Likewise.
16761         (prescan_loop): Likewise. Don't check function usage for clobbered
16762         unchanging memory.
16763         * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
16764         not RTX_UNCHANGING_P.
16765         (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
16766         * varasm.c (force_const_mem): Likewise.
16767         * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
16768         * web.c (entry_register): Likewise.
16769         * tree-gimple.h (get_base_address): Move decl ...
16770         * tree.h: ... here.
16771         * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
16772
16773         * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
16774         called via for_each_rtx.  Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
16775         (alpha_set_memflags): Update to match.
16776
16777         * config/darwin.c (machopic_indirect_data_reference): Set
16778         MEM_READONLY_P instead of RTX_UNCHANGING_P.
16779         (machopic_indirect_call_target): Likewise.
16780         (machopic_legitimize_pic_address): Likewise.
16781         * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
16782         arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
16783         * config/arm/arm.md (load_multiple, store_multiple): Likewise.
16784         * config/frv/frv.md (symGOT2reg): Likewise.
16785         * config/i386/i386.c (legitimize_pic_address,
16786         legitimize_tls_address, ix86_split_to_parts): Likewise.
16787         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
16788         * config/ia64/ia64.md (load_fptr): Likewise.
16789         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
16790         * config/m68k/m68k.c (legitimize_pic_address): Likewise.
16791         * config/mcore/mcore.c (block_move_sequence): Likewise.
16792         * config/mn10300/mn10300.md (symGOT2reg): Likewise.
16793         * config/pa/pa.c (legitimize_pic_address): Likewise.
16794         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
16795         (rs6000_emit_move): Likewise.
16796         * config/s390/s390.c (legitimize_pic_address): Likewise.
16797         (legitimize_tls_address): Likewise.
16798         * config/s390/s390.md (casesi): Likewise.
16799         * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
16800         * config/sh/sh.md (symGOT2reg): Likewise.
16801         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
16802         * config/v850/v850.md (casesi): Likewise.
16803
16804         * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
16805         * config/iq2000/iq2000.c (save_restore_insns): Likewise.
16806         * config/mips/mips.c (mips_restore_gp): Likewise.
16807         (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
16808         * config/sh/sh.c (sh_reorg): Likewise.
16809
16810 2004-08-18  Richard Henderson  <rth@redhat.com>
16811
16812         * tree.h (struct tree_decl): Add gimple_formal_temp.
16813         (DECL_GIMPLE_FORMAL_TEMP_P): New.
16814         * gimplify.c (pop_gimplify_context): Clear it.
16815         (lookup_tmp_var): Set it, if is_formal.
16816         (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
16817         Use is_gimple_val for VECTOR.  Simplify return value.
16818         (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
16819         (gimplify_expr): Likewise.
16820         * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
16821         is_gimple_tmp_rhs for clarity.  Update all callers.
16822         (is_gimple_reg_rhs): Simplify logic.
16823         (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
16824         clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
16825         (is_gimple_formal_tmp_reg): Similarly.
16826         * tree-gimple.h: Update decls.
16827         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
16828         DECL_IGNORED_P, not DECL_ARTIFICIAL.  Tidy formatting.
16829         * tree-ssa-live.c (var_union, type_var_init): Likewise.
16830
16831 2004-08-18  Paolo Bonzini  <bonzini@gnu.org>
16832
16833         * c4x.c (legitimize_operands): Remove calls to
16834         preserve_subexpressions_p.
16835
16836 2004-08-18  David Edelsohn  <edelsohn@gnu.org>
16837
16838         * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
16839         * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
16840
16841 2004-08-18  Ziemowit Laski  <zlaski@apple.com>
16842
16843         * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
16844         Objective-C++ extensions.
16845         * gengtype.c (get_file_basename): Match entire subdirectory name
16846         ('cp', 'objc', 'objcp') rather than just its suffix.
16847         (get_base_file_bitmap): Allow for files to belong to more than one
16848         language.
16849         (get_output_file_with_visibility): Treat objc/objc-act.h as a header
16850         used by more than one front-end.
16851
16852 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
16853
16854         * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
16855         avoid use of preserve_subexpressions_p.
16856
16857 2004-08-17  Richard Henderson  <rth@redhat.com>
16858
16859         PR 17051
16860         * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
16861
16862 2004-08-17  DJ Delorie  <dj@redhat.com>
16863
16864         * doc/extend.texi: Document new xstormy16 attribute.
16865
16866         * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
16867         (xstormy16_splittable_below100_or_register): New.
16868         (combine_bnp): New.
16869         (xstormy16_reorg): New.
16870         (TARGET_MACHINE_DEPENDENT_REORG): Define.
16871
16872         * config/stormy16/stormy16.md (movqi_internal): Make name public.
16873         (movhi_internal): Likewise.
16874         (cbhranchhi): Likewise.
16875         (cbhranchhi_neg): Likewise.
16876         (andhi3): Only allow splittable below100 operands.
16877         (iorhi3): Likewise.
16878         (peephole2): New and/zero_extend->and peephole.
16879         (peephole2): New load/ior/save->set1 peephole.
16880         (peephole2): New load/and/save->clr1 peephole.
16881         (bclrx, bclrx2, bclr7, bclr15): New.
16882         (bsetx, bsetx2, bset7, bset15): New.
16883
16884         * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
16885         liberal about acceptable 'B' masks.
16886
16887         * config/stormy16/stormy16-protos.h
16888         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
16889         xstormy16_below100_operand, xstormy16_below100_or_register,
16890         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
16891         (PREDICATE_CODES): Add new predicates.
16892
16893         * config/stormy16/stormy16.c
16894         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
16895         xstormy16_below100_operand, xstormy16_below100_or_register,
16896         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
16897         (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
16898         (xstormy16_legitimate_address_p): Allow below100 symbols.
16899         (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
16900         (xstormy16_expand_move): Leave below100 operands as-is.
16901         (xstormy16_encode_section_info): Encode below100 symbols.
16902         (xstormy16_strip_name_encoding): New.
16903         (xstormy16_print_operand): Print 'b' as shift mask.
16904         (xstormy16_attribute_table): Add below100 attributes.
16905         (xstormy16_handle_below100_attribute): New.
16906
16907         * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
16908         (XSTORMY16_SECTION_FUNCTION): New.
16909         (EXTRA_SECTION_FUNCTIONS): Define using the above.
16910         (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
16911         (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
16912         (ASM_OUTPUT_LABELREF): Define.
16913
16914         * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
16915         (movhi_internal): Add below100 support.
16916         (andhi3): Add below100 support.
16917         (iorhi3): Add below100 support.
16918         (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
16919
16920 2004-08-17  James E Wilson  <wilson@specifixinc.com>
16921
16922         * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
16923         of VOIDmode for comparison code mode.
16924         * config/mips/mips.md: For conditional move patterns, use mode of
16925         first compare operand for comparison mode, instead of VOIDmode.
16926
16927         * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
16928         normal and -ffast-math code.
16929
16930 2004-08-17  Mark Mitchell  <mark@codesourcery.com>
16931
16932         PR c++/15871
16933         * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
16934
16935 2004-08-17  Robert Bowdidge  <bowdidge@apple.com>
16936
16937         * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
16938
16939 2004-08-17  Andreas Tobler  <a.tobler@schweiz.ch>
16940
16941         * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
16942         for non Darwin targets.
16943         (*call_value_nonlocal_darwin64): Likewise.
16944
16945 2004-08-17  Fariborz Jahanian <fjahanian@apple.com>
16946
16947         * config/rs6000/rs6000.c (rs6000_function_value): Check for
16948         altivec mode for altivec return register.
16949
16950 2004-08-17  David Edelsohn  <edelsohn@gnu.org>
16951
16952         Revert 2004-08-16  Stan Shebs  <shebs@apple.com>
16953         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
16954         * config/rs6000/rs6000.md: Include darwin.md.
16955         (builtin_setjmp_receiver): Add DImode case.
16956         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
16957         Darwin bits.
16958
16959 2004-08-17  Dorit Naishlos  <dorit@il.ibm.com>
16960
16961         * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
16962         trees.
16963         * tree-vectorizer.h: New File: Same.
16964         * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
16965         * common.opt (ftree-vectorize): New flag to enable vectorization.
16966         * timevar.def (TV_TREE_VECTORIZATION): New dump file for
16967         vectorization pass.
16968         * tree-data-ref.h (init_data_ref): Additional argument.
16969         (array_base_name_differ_p): Moved to tree-data-ref.c.
16970         * tree-data-ref.c (array_base_name_differ_p): Revised.
16971         (initialize_data_dependence_relation): Call array_base_name_differ_p
16972         with an extra argument.
16973         (analyze_all_data_dependences): Same.
16974         (init_data_ref): Additional argument is_read to set DR_IS_READ.
16975         * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
16976         file.
16977         * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
16978         * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
16979         * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
16980         vectorization pass.
16981         * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
16982         (tree_ssa_loop_done): Call scev_finalize.
16983         (tree_vectorize): Define the new vectorization pass.
16984         * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
16985         size of the vector they support (until support for multiple vector
16986         sizes is added to the vectorizer).
16987         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
16988         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
16989         * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
16990         documentation.
16991
16992 2004-08-17  Nathan Sidwell  <nathan@codesourcery.com>
16993
16994         * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
16995         usage.
16996         (generate_protocol_list, handle_impent): Likewise.
16997
16998 2004-08-17  Roger Sayle  <roger@eyesopen.com>
16999
17000         * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
17001         ensure that call_used_regs is a superset of both fixed_regs and
17002         call_really_used_regs.
17003
17004 2004-08-17  Daniel Bornstein  <danfuzz@milk.com>
17005
17006         PR target/17019
17007         * arm.md (addsi3_cbranch_scratch): Correct case labels.
17008
17009 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
17010
17011         PR middle-end/17036
17012         * fold-const.c (fold): Check for integer operand when
17013         folding (A >> N) & 1 ? (1 << N) : 0.  Fix from Andrew
17014         Pinski  <pinskia@physics.uc.edu>.
17015
17016 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
17017
17018         * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
17019         No need to check if in a cross configuration.
17020         * configure: Regenerate.
17021
17022         * calls.c (precompute_register_parameters):
17023         Inline preserve_subexpressions_p ().
17024         * expmed.c (expand_mult_const, emit_store_flag): Likewise.
17025         * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
17026         Likewise.
17027         * expr.c (get_subtarget): Likewise.
17028         * rtl.h (preserve_subexpressions_p): Remove.
17029         * stmt.c (preserve_subexpressions_p): Remove.
17030
17031         * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
17032         TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
17033         Abort on gimplified cases.
17034
17035 2004-08-16  James E Wilson  <wilson@specifixinc.com>
17036
17037         * tree.h (VECTOR_FLOAT_TYPE_P): New.
17038         (FLOAT_TYPE_P): Use it.
17039         * c-typeck.c (build_binary_op): After convert calls, check for
17040         check for ERROR_MARK operands.
17041
17042 2004-08-16  Zack Weinberg  <zack@codesourcery.com>
17043
17044         * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
17045         (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
17046         (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
17047         (genobjs static pattern rule): Remove %.c dependency.
17048         ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
17049         Rename rules; delete commands; fix dependencies.
17050         (mostlyclean): Do not delete temporary source copies.
17051         * configure.ac: Delete all references to BUILD_PREFIX and
17052         BUILD_PREFIX_1.
17053         * configure: Regenerate.
17054
17055         * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
17056         Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
17057         basic-block.h #ifdef GENERATOR_FILE.  Surround some more code
17058         with #ifndef GENERATOR_FILE so that nothing from those headers
17059         is used.
17060
17061         * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
17062
17063 2004-08-16  Adam Nemet  <anemet@lnxw.com>
17064
17065         * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
17066
17067 2004-08-16  Andrew Pinski  <apinski@apple.com>
17068
17069         * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
17070         extraneous semicolon.
17071
17072 2004-08-16  Devang Patel  <dpatel@apple.com>
17073
17074         * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
17075         * print-tree.c (print_node): Print DECL_PRESERVE_P.
17076         * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
17077         (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
17078         * target.h (struct gcc_target): New member, mark_decl_preserved.
17079         * hooks.c (hook_void_charptr): Rename to ...
17080         (hook_void_constcharptr): ... new name.
17081         * hooks.h (hook_void_charptr): Rename to ..
17082         (hook_void_constcharptr): ... new name.
17083         * tree.h (DECL_PRESERVE_P): New #define.
17084         (struct tree_decl): New member, preserve_flag.
17085         * varasm.c (assemble_start_function): Mark decl preserved.
17086         (assemble_variable): Same.
17087         * darwin.c (darwin_mark_decl_preserved): New function.
17088         * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
17089         * darwin-protos.h (darwin_mark_decl_preserved): New decl.
17090         * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
17091
17092 2004-08-16  Joseph S. Myers  <jsm@polyomino.org.uk>
17093
17094         * c-decl.c (grokdeclarator): Allow for function definition where
17095         innermost declarator has attributes.
17096
17097 2004-08-16  Fariborz Jahanian <fjahanian@apple.com>
17098
17099         * except.c (get_exception_filter, build_post_landing_pads,
17100         dw2_build_landing_pads): Use target-specific mode for 'filter'.
17101         * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
17102         * target.h (eh_return_filter_mode): New field added.
17103         * targhooks.c (default_eh_return_filter_mode): Defined.
17104         * targhooks.h (default_eh_return_filter_mode): Declared.
17105         * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
17106
17107 2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
17108
17109         * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
17110         ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
17111         * configure: Regenerate.
17112
17113 2004-08-16  Stan Shebs  <shebs@apple.com>
17114
17115         Basic support for 64-bit Darwin.
17116         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
17117         (machopic_legitimize_pic_address): Similarly, plus use Pmode
17118         instead of SImode.
17119         * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
17120         (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
17121         (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
17122         (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
17123         (PROCESSOR_DEFAULT64): Define.
17124         * config/rs6000/darwin.md: New file, patterns specific to 64-bit
17125         Darwin.
17126         * config/rs6000/rs6000.md: Include darwin.md.
17127         (builtin_setjmp_receiver): Add DImode case.
17128         * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
17129         Darwin.
17130         (TARGET_ASM_ALIGNED_DI_OP): Ditto.
17131         (rs6000_emit_move): Add DImode case to Darwin bits.
17132         (machopic_output_stub): Use .quad if 64-bit.
17133         * invoke.texi: Document -m32 and -m64.
17134
17135 2004-08-16  Janis Johnson  <janis187@us.ibm.com>
17136
17137         * doc/extend.texi (AltiVec builtins): Document additional differences
17138         from the Motorola AltiVec PIM.
17139
17140 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
17141
17142         * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
17143         * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
17144         (struct tree_common): Update public_flag documentation.
17145
17146 2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
17147
17148         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
17149         Check for artificial variables, not is_gimple_tmp_var.
17150         * tree-ssa-live.c (var_union): Likewise.
17151
17152 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
17153
17154         * calls.c (load_register_parameters): Remove spurious FIXME token.
17155
17156 2004-08-15  Ziemowit Laski  <zlaski@apple.com>
17157
17158         * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
17159         (c-lang.o): Depend on c-objc-common.h.
17160         (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
17161         c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
17162         * c-lang.c: Include c-objc-common.h.
17163         (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
17164         LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
17165         LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
17166         LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
17167         LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
17168         LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
17169         LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
17170         LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
17171         LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
17172         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
17173         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
17174         LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
17175         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
17176         LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
17177         LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
17178         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
17179         LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
17180         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
17181         LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
17182         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
17183         LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
17184         LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
17185         LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
17186         LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
17187         Move to c-objc-common.h.
17188         * c-objc-common.c: Include c-objc-common.h.
17189         * c-objc-common.h: New file.
17190
17191 2004-08-15  Andreas Tobler  <a.tobler@schweiz.ch>
17192             Andrew Pinski  <pinskia@physics.uc.edu>
17193
17194         PR target/14931
17195         * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
17196         style.
17197
17198 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
17199
17200         * tree.h (build_int_cst): New.
17201         (build_int_2): Remove.
17202         * tree.c (build_int_2): Remove.
17203         (build_int_cst): New.
17204         (make_vector_type, build_common_tree_nodes,
17205         build_common_tree_nodes_2): Use build_int_cst.
17206         * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
17207         expand_builtin_strpbrk, expand_builtin_fputs,
17208         build_string_literal, expand_builtin_printf,
17209         expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
17210         fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
17211         fold_builtin_isdigit, simplify_builtin_strstr,
17212         simplify_builtin_strpbrk, fold_builtin_fputs,
17213         simplify_builtin_sprintf): Use build_int_cst.
17214         * c-common.c (start_fname_decls, fix_string_type,
17215         c_common_nodes_and_builtins, c_init_attributes,
17216         shorten_compare): Likewise.
17217         * c-decl.c (complete_array_type,
17218         check_bitfield_type_and_width): Likewise.
17219         * c-lex.c (interpret_integer, lex_charconst): Likewise.
17220         * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
17221         * c-pretty-print.c (pp_c_integer_constant): Likewise.
17222         * c-typeck.c (really_start_incremental_init, push_init_level,
17223         set_nonincremental_init_from_string): Likewise.
17224         * calls.c (load_register_parameters): Likewise.
17225         * convert.c (convert_to_pointer): Likewise.
17226         * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
17227         build_fn_info_type, build_ctr_info_value, build_gcov_info):
17228         Likewise.
17229         * except.c (init_eh, assign_filter_values, assign_filter_values):
17230         Likewise.
17231         * expmed.c (store_fixed_bit_field, extract_bit_field,
17232         extract_fixed_bit_field, extract_split_bit_field, expand_shift,
17233         expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
17234         expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
17235         * expr.c (convert_move, emit_group_load, emit_group_store,
17236         expand_assignment, store_constructor, store_field,
17237         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
17238         * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
17239         invert_truthvalue, optimize_bit_field_compare,
17240         decode_field_reference, all_ones_mask_p, constant_boolean_node,
17241         fold_div_compare, fold, fold_read_from_constant_string,
17242         fold_negate_const, fold_abs_const, fold_not_const): Likewise.
17243         * function.c (assign_parm_setup_block): Likewise.
17244         * stmt.c (shift_return_value, expand_end_case_type,
17245         estimate_case_costs): Likewise.
17246         * stor-layout.c (layout_type, initialize_sizetypes,
17247         set_min_and_max_values_for_integral_type): Likewise.
17248         * tree-chrec.c (chrec_fold_multiply_poly_poly,
17249         reset_evolution_in_loop): Likewise.
17250         * tree-chrec.h (build_polynomial_chrec): Likewise.
17251         * tree-complex.c (build_replicated_const): Likewise.
17252         * tree-eh.c (honor_protect_cleanup_actions,
17253         lower_try_finally_onedest, lower_try_finally_copy,
17254         lower_try_finally_switch): Likewise.
17255         * tree-mudflap.c (mf_build_string, mx_register_decls,
17256         mudflap_register_call, mudflap_enqueue_constant): Likewise.
17257         * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
17258         * tree-pretty-print.c (dump_generic_node): Likewise.
17259         * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
17260         Likewise.
17261         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
17262         * tree-ssa-loop-niter.c (number_of_iterations_cond,
17263         loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
17264         Likewise.
17265
17266         * config/alpha/alpha.c (alpha_initialize_trampoline,
17267         alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
17268         * config/arm/arm.c (arm_get_cookie_size): Likewise.
17269         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
17270         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
17271         * config/i860/i860.c (i860_va_start): Likewise.
17272         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
17273         * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
17274         mips_gimplify_va_arg_expr): Likewise.
17275         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
17276         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
17277         add_compiler_branch_island): Likewise.
17278         * config/s390/s390.c (s390_va_start): Likewise.
17279         * config/sh/sh.c (sh_va_start): Likewise.
17280         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
17281         Likewise.
17282         * config/xtensa/xtensa.c (xtensa_va_start,
17283         xtensa_gimplify_va_arg_expr): Likewise.
17284
17285         * objc/objc-act.c (build_objc_string_object,
17286         build_objc_symtab_template, init_def_list, init_objc_symtab,
17287         init_module_descriptor, generate_static_references,
17288         build_selector_translation_table, get_proto_encoding,
17289         build_typed_selector_reference, build_selector_reference,
17290         build_next_objc_exception_stuff,
17291         build_method_prototype_list_template, generate_descriptor_table,
17292         generate_protocols, build_protocol_initializer,
17293         build_ivar_list_template, build_method_list_template,
17294         build_ivar_list_initializer, generate_ivars_list,
17295         generate_dispatch_table, generate_protocol_list,
17296         build_category_initializer, build_shared_structure_initializer,
17297         generate_shared_structures, handle_impent,
17298         generate_objc_image_info): Use build_int_cst.
17299
17300 2004-08-15  Ben Elliston  <bje@au.ibm.com>
17301
17302         * vec.h: Comment improvements.
17303
17304 2004-08-14  Roger Sayle  <roger@eyesopen.com>
17305
17306         * c-common.c (shorten_compare, pointer_int_sum,
17307         c_common_truthvalue_conversion, boolean_increment): Replace calls
17308         to build with calls to buildN.
17309         * c-decl.c (complete_array_type, grokdeclarator): Likewise.
17310         * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
17311         gimplify_switch_stmt): Likewise.
17312         * c-typeck.c (default_function_array_conversion,
17313         build_component_ref, build_array_ref, build_function_call,
17314         pointer_diff, build_unary_op, build_conditional_expr,
17315         build_compound_expr, build_modify_expr, c_finish_goto_label,
17316         c_finish_goto_ptr, c_finish_return, c_finish_loop,
17317         c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
17318         build_binary_op): Likewise.
17319
17320 2004-08-15  Steven Bosscher  <stevenb@suse.de>
17321
17322         * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
17323
17324 2004-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17325
17326         * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
17327         curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
17328         * fixinc/fixincl.x: Rebuilt.
17329
17330 2004-08-14  Richard Sandiford  <rsandifo@redhat.com>
17331
17332         * config/mips/mips-protos.h (mips_symbolic_constant_p)
17333         (mips_atomic_symbolic_constant_p, mips_stack_address_p)
17334         (mips_small_data_pattern_p): Declare.
17335         * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
17336         (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
17337         * config/mips/mips.c (mips_symbolic_constant_p): Make global.
17338         (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
17339         (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
17340         (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
17341         (reg_or_const_float_1_operand, hilo_operand, extend_operator)
17342         (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
17343         (pc_or_label_operand, call_insn_operand, move_operand)
17344         (consttable_operand, symbolic_operand, general_symbolic_operand)
17345         (global_got_operand, local_got_operand, stack_operand)
17346         (fp_register_operand, lo_operand, fcc_register_operand): Delete.
17347         (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
17348         (mips_small_data_pattern_p): Replace previous small_data_pattern
17349         predicate.  Turn into a bool () (rtx) function.
17350         * config/mips/predicates.md: New file.
17351         * config/mips/mips.md: Include it.  Use the target-independent
17352         comparison_operator instead of cmp_op.  Rename trap_cmp_op to
17353         trap_comparison_operator and equality_op to equality_operator.
17354         Replace uses of small_int with the equivalent const_arith_operand.
17355         Rename reg_or_const_float_1_operand to reg_or_1_operand.  Rename
17356         const_float_1_operand to const_1_operand.  Rename fcc_register_operand
17357         to fcc_reload_operand.
17358         * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
17359
17360 2004-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17361
17362         PR libstdc++/17005 partial fix.
17363         * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
17364         except when generating ANSI/C89 code.
17365
17366 2004-08-14  Nathan Sidwell  <nathan@codesourcery.com>
17367
17368         * c-common.c (shorten_compare): Use force_fit_type directly.
17369
17370 2004-08-14  Gerald Pfeifer  <gerald@pfeifer.com>
17371             Dimitri Papadopoulos-Orfanos  <papadopo@shfj.cea.fr>
17372             Dave Korn  <dk@artimi.com>
17373
17374         * doc/install.texi (Building): Avoid duplicate reference to GNU
17375         make requirement.
17376         (*-*-solaris2*): Do not recommend GNU make any longer.  Simplify.
17377
17378 2004-08-14  Richard Henderson  <rth@redhat.com>
17379
17380         * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
17381         * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
17382
17383 2004-08-13  Richard Henderson  <rth@redhat.com>
17384
17385         * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
17386         for constant_call_address_operand.
17387         (call_value_pop_1, call_value_1): Likewise.
17388         (sibcall_value_1, call_value_1_rex64): Likewise.
17389
17390 2004-08-13  James E Wilson  <wilson@specifixinc.com>
17391
17392         * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
17393         Correct mode from SFmode to DFmode.
17394
17395 2004-08-13  Ziemowit Laski  <zlaski@apple.com>
17396
17397         * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
17398         __cstring_object and __image_info sections with the no_dead_strip
17399         attribute.
17400
17401 2004-08-13  Roger Sayle  <roger@eyesopen.com>
17402             David Billinghurst  <David.Billinghurst@riotinto.com>
17403
17404         PR libgfortran/15930
17405         * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
17406         * fixinc/fixincl.x: Regenerate.
17407         * fixinc/tests/base/internal/math_core.h: New file.
17408
17409 2004-08-13  Richard Henderson  <rth@redhat.com>
17410
17411         * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
17412         (dbxout_function_end): Remove ifdefs for it.
17413         (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
17414
17415 2004-08-13  Richard Henderson  <rth@redhat.com>
17416
17417         * Makefile.in (insn-preds.o): Depend on TREE_H.
17418         * genpreds.c (write_insn_preds_c): Include tree.h.
17419         * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
17420         reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
17421         const48_operand, and_operand, or_operand, mode_width_operand,
17422         mode_mask_operand, mul8_operand, const0_operand,
17423         hard_fp_register_operand, hard_int_register_operand,
17424         reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
17425         samegp_function_operand, direct_call_operand, small_symbolic_operand,
17426         global_symbolic_operand, call_operand, symbolic_operand,
17427         dtp16_symbolic_operand, dtp32_symbolic_operand,
17428         gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
17429         gottp_symbolic_operand, alpha_comparison_operator,
17430         alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
17431         signed_comparison_operator, alpha_fp_comparison_operator,
17432         divmod_operator, fix_operator, aligned_memory_operand,
17433         unaligned_memory_operand, reg_or_unaligned_mem_operand,
17434         any_memory_operand, reg_not_elim_operand, normal_memory_operand,
17435         reg_no_subreg_operand, addition_operation): Move to predicates.md.
17436         (reg_or_const_int_operand): Remove.  Replace all users with
17437         reg_or_cint_operand.
17438         (tls_symbolic_operand_1): Export.  Don't check mode or for CONST.
17439         (resolve_reload_operand): Split out of aligned_memory_operand.
17440         * config/alpha/alpha-protos.h: Update for exports.
17441         * config/alpha/alpha.h (PREDICATE_CODES): Remove.
17442         * config/alpha/alpha.md: Include predicates.md.
17443         * config/alpha/predicates.md: New file.
17444
17445 2004-08-13  Richard Sandiford  <rsandifo@redhat.com>
17446
17447         * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
17448         fields with a pointer to the instruction definition.
17449         (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
17450         (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
17451         (write_attr_case, write_const_num_delay_slots): Update accordingly.
17452         (write_attr_case, write_const_num_delay_slots): Write the name of
17453         an insn next to its case statement.
17454         * genoutput.c (data): Add a filename field.
17455         (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
17456         (output_insn_data): Print the location of each insn definition.
17457         * genrecog.c (write_action): Print the name of an insn above
17458         the statement that returns its code.
17459
17460 2004-08-12  Andrew Pinski  <pinskia@physics.uc.edu>
17461
17462         * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
17463         * config/libgloss.h: Likewise.
17464         * config/arm/arm.c (arm_gen_load_multiple): Likewise.
17465         * c4x/c4x-modes.def: Likewise.
17466         * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
17467         (c4x_rptb_nop_p): Likewise.
17468         (c4x_rptb_valid_p): Likewise.
17469         (c4x_rptb_insert): Likewise.
17470         (c4x_address_conflict): Likewise.
17471         * config/c4x/c4x.md: Likewise.
17472         * config/frv/frv.md: Likewise.
17473         * config/i386/athlon.md: Likewise.
17474         * config/i386/i386.md: Likewise.
17475         * config/i386/predicates.md: Likewise.
17476         * config/ia64/ia64.c: Likewise.
17477         * config/ia64/itanium1.md: Likewise.
17478         * config/ia64/itanium2.md: Likewise.
17479         * config/iq2000/iq2000.md: Likewise.
17480         * config/mcore/mcore.c: Likewise.
17481         * config/mips/mips.c: Likewise.
17482         * config/mips/r3900.h: Likewise.
17483         * config/mips/sb1.md: Likewise.
17484         * config/pa/milli64.S: Likewise.
17485         * config/pa/pa.c: Likewise.
17486         * config/pa/pa.h: Likewise.
17487         * config/rs6000/8540.md: Likewise.
17488
17489 2004-08-13  Daniel Berlin  <dberlin@dberlin.org>
17490
17491         * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
17492
17493 2004-08-13  J"orn Rennecke <joern.rennecke@superh.com>
17494
17495         * sh.md (cbranch define_delay) Use cond_delay_slot for
17496         non-anulled condition too.
17497
17498 2004-08-12  David Edelsohn  <edelsohn@gnu.org>
17499
17500         * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
17501         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
17502         any_parallel_operand, lmw_operation, stmw_operation,
17503         mfcr_operation, mtcrf_operation.  Remove PARALLEL from any_operand.
17504         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
17505         any_parallel_operand.
17506         (return_and_restore_fpregs_{si,di}): Same.
17507
17508 2004-08-12  Zack Weinberg  <zack@codesourcery.com>
17509
17510         * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
17511         if pred->singleton != PARALLEL, issue a warning and pretend it was.
17512         Also issue a warning for any predicate we don't know about.
17513
17514 2004-08-12  Richard Henderson  <rth@redhat.com>
17515
17516         * config/i386/i386.c (internal_label_prefix): Export.
17517         (internal_label_prefix_len, struct ix86_address,
17518         ix86_decompose_address, maybe_get_pool_constant,
17519         ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
17520         memory_address_length): Export.
17521         (any_fp_register_operand, fp_register_operand,
17522         register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
17523         x86_64_general_operand, x86_64_szext_general_operand,
17524         x86_64_nonmemory_operand, x86_64_movabs_operand,
17525         x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
17526         x86_64_zext_immediate_operand, const_int_1_31_operand,
17527         symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
17528         tls_symbolic_operand, global_dynamic_symbolic_operand,
17529         local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
17530         local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
17531         constant_call_address_operand, const0_operand, const1_operand,
17532         const248_operand, const_0_to_3_operand, const_0_to_7_operand,
17533         const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
17534         shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
17535         general_no_elim_operand, nonmemory_no_elim_operand,
17536         index_register_operand, q_regs_operand, flags_reg_operand,
17537         non_q_regs_operand, zero_extended_scalar_load_operand,
17538         vector_move_operand, no_seg_address_operand, sse_comparison_operator,
17539         ix86_comparison_operator, ix86_carry_flag_operator,
17540         fcmov_comparison_operator, promotable_binary_operator,
17541         cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
17542         mult_operator, div_operator, arith_or_logical_operator,
17543         memory_displacement_operand, cmpsi_operand, long_memory_operand,
17544         aligned_operand): Move to predicates.md as define_predicates.
17545         (tls_symbolic_operand_1): Remove.
17546         (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
17547         (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
17548         (legitimize_address): Merge tls_symbolic_operand contents.
17549         (ix86_expand_move): Likewise.
17550         * config/i386/i386-protos.h: Update for exports.
17551         * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
17552         (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
17553         * config/i386/i386.md: Include predicates.md.
17554         * config/i386/predicates.md: New file.
17555
17556 2004-08-13  Mark Mitchell  <mark@codesourcery.com>
17557
17558         PR c++/16924
17559         * config/i386/winnt.c (i386_pe_mark_dllexport): Set
17560         SYMBOL_REF_DECL.
17561         (i386_pe_mark_dllimport): Likewise.
17562         (i386_pe_encode_section_info): Likewise, when overriding
17563         dllimport attribute.
17564
17565 2004-08-12  Geoffrey Keating  <geoffk@apple.com>
17566
17567         * configure.ac: When testing for flex, nm, ar, and bison, check
17568         that they will actually be built.
17569         * configure: Regenerate.
17570
17571 2004-08-12  Ulrich Weigand  <uweigand@de.ibm.com>
17572
17573         * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
17574         (MOVE_MAX_PIECES): Define.
17575
17576 2004-08-12  Devang patel  <dpatel@apple.com>
17577
17578         * dbxout.c (dbxout_begin_prologue): New function.
17579         (dbx_debug_hooks): Use new begin prologue hook.
17580         (dbxout_function_end): Emit N_ENSYM.
17581         * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
17582
17583 2004-08-12  Janis Johnson  <janis187@us.ibm.com>
17584
17585         * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
17586         argument is float*.
17587
17588         * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
17589         for vec_dss.
17590
17591         * doc/extend.texi (AltiVec builtins): Fix description for recent
17592         changes.  Update operation list to match current support.
17593
17594 2004-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
17595
17596         * config/s390/s390.c (struct s390_frame_layout): New struct as element
17597         of struct machine_function.
17598         (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
17599         changed all uses.
17600         (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
17601         changed all uses.
17602         (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
17603         (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
17604         (s390_frame_area, s390_register_info): New functions.
17605         (s390_optimize_prolog): Renamed to s390_optimize_prologue.  Added check
17606         for base register.
17607         (s390_return_addr_rtx, s390_return_address_offset)
17608         (s390_va_start, s390_gimplify_va_arg)
17609         (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
17610         layouts.
17611         (s390_frame_info): Functionality partly moved to s390_register_info.
17612         Made adaptions for new stack layout.
17613         (save_gprs, restore_gprs): Changed meaning of second parameter and
17614         adapted all callers.
17615
17616         * config/s390/s390.h (s390_backchain_string): New global variable.
17617         (MASK_BACKCHAIN): Removed definition.
17618         (TARGET_BACKCHAIN): Changed check.
17619         (TARGET_KERNEL_BACKCHAIN): New macro.
17620         (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
17621         (TARGET_OPTIONS): Added "backchain", "no-backchain" and
17622         "kernel-backchain".
17623         (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
17624
17625         * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
17626         as condition.  Adjusted for new stack layout.
17627
17628         * doc/invoke.texi: Added documentation for new option
17629         "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
17630         "-mno-backchain".
17631
17632 2004-08-12  Paul Brook  <paul@codesourcery.com>
17633
17634         * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
17635         (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
17636
17637 2004-08-12  David Daney  <ddaney@avtrex.com>
17638
17639         * java/gcj.texi:  Add subsection on signal usage.
17640
17641 2004-08-12  David Edelsohn  <edelsohn@gnu.org>
17642
17643         * expr.c (move_by_pieces): Set alignment for move to minimum of
17644         MOVE_MAX_PIECES mode alignment and the largest non-slow mode
17645         alignment, but not less than the original alignment.
17646         (move_by_pieces_ninsns): Same.
17647         (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
17648         (store_by_pieces_1): Same.
17649
17650 2004-08-12  Diego Novillo  <dnovillo@redhat.com>
17651
17652         PR tree-optimization/16867
17653         * tree.c (is_global_var): New function.
17654         (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
17655         Call is_global_var.
17656         * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
17657         Update all users.
17658         (is_global_var): Declare.
17659         * tree-dfa.c (dump_variable): Display global and addressable
17660         attributes.
17661         (add_referenced_var): Clarify documentation when marking
17662         variables call-clobbered.
17663         * tree-flow-inline.h (is_call_clobbered): Call is_global_var
17664         instead of needs_to_live_in_memory.
17665         (mark_call_clobbered): If the variable is a tag, mark it
17666         DECL_EXTERNAL.
17667         * tree-gimple.c (is_gimple_reg): Don't check for
17668         TREE_ADDRESSABLE.
17669         (is_gimple_non_addressable): Likewise.
17670         * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
17671         needs to be marked call-clobbered.
17672         (setup_pointers_and_addressables): Call is_global_var instead
17673         of needs_to_live_in_memory.
17674         * tree-ssa-dce.c (need_to_preserve_store): Remove.
17675         Update all users with is_global_var.
17676         (mark_stmt_if_obviously_necessary): Fix processing of aliased
17677         stores.  Don't check the virtual definitions.  Rather, check
17678         whether the store is going into global memory.
17679         (find_obviously_necessary_stmts): Get the symbol from the PHI
17680         result.
17681         * tree-ssa-operands.c (get_call_expr_operands): Do not add
17682         clobbering may-defs if the call does not have side effects.
17683
17684 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
17685
17686         PR c++/16276
17687         * output.h (default_function_rodata_section,
17688         default_no_function_rodata_section): New prototypes.
17689         * target.h (struct gcc_target): Add asm_out.function_rodata_section.
17690         * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
17691         (TARGET_ASM_OUT): Add it.
17692         * varasm.c (default_function_rodata_section,
17693         default_no_function_rodata_section): New functions.
17694         * final.c (final_scan_insn): Call
17695         targetm.asm_out.function_rodata_section instead of
17696         readonly_data_section.
17697         * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
17698         * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
17699         * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
17700         * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
17701         Likewise.
17702         * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
17703         * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
17704         Likewise.
17705         * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
17706         Likewise.
17707         * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
17708         * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
17709         * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
17710
17711 2004-08-12  Paul Brook  <paul@codesourcery.com>
17712
17713         * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
17714         frame info.
17715         * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
17716         DWARF2_UNWIND_INFO.
17717
17718 2004-08-12  Ben Elliston  <bje@au.ibm.com>
17719
17720         PR target/16286
17721         * config/rs6000/altivec.h: Change vector to __vector throughout.
17722         (Except for the `vector' macro itself).
17723
17724 2004-08-12  Zack Weinberg  <zack@codesourcery.com>
17725
17726         * genpreds.c: Add capability to generate predicate bodies as
17727         well as function prototypes.  Write function prototypes for
17728         the generic predicates too.
17729         (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
17730         (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
17731         (write_match_code, write_predicate_expr, write_one_predicate_function)
17732         (parse_option): New functions.
17733         (output_predicate_decls): Delete.
17734         (main): Read the machine description, process DEFINE_PREDICATE or
17735         DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
17736         as appropriate.
17737
17738         * genrecog.c (struct decision_test): Replace index with
17739         struct pred_data pointer.
17740         (next_index): Remove, unused.
17741         (pred_table, preds, special_mode_pred_table): Delete.
17742         (compute_predicate_codes, process_define_predicate): New functions.
17743         (validate_pattern, add_to_sequence, write_switch): Update for
17744         new data structures.
17745         (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
17746         Check both error_count and have_error.
17747
17748         * gensupport.c (in_fname, first_predicate): New globals.
17749         (define_pred_queue, define_pred_tail): New RTL-pattern queue.
17750         (predicate_table, last_predicate, old_pred_table)
17751         (old_special_pred_table): New statics.
17752         (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
17753         (add_predicate, init_predicate_table): New functions.
17754         (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
17755         (init_md_reader_args_cb): Use the global in_fname.  No need to zero
17756         it or max_include_len.  Call init_predicate_table.
17757         (read_rtx): Run the predicate queue after the attribute queue
17758         but before all the others.
17759         * gensupport.h (in_fname, struct pred_data, first_predicate)
17760         (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
17761         * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
17762         (DEFINE_SPECIAL_PREDICATE): New RTL codes.
17763         * dummy-conditions.c: Don't include bconfig.h, system.h,
17764         coretypes.h, tm.h, or system.h.  Do include stddef.h.
17765         Duplicate declaration of struct c_test from gensupport.h.
17766
17767         * Makefile.in (OBJS-common): Add insn-preds.o.
17768         (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
17769         (insn-preds.c, insn-preds.o): New rules.
17770         (s-preds): Also generate insn-preds.c.
17771         (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
17772         Update dependencies.
17773         (print-rtl.o, print-rtl1.o): Correct dependencies.
17774
17775         * recog.h: Delete prototypes of predicate functions.
17776
17777         * doc/md.texi (Predicates): New section with complete
17778         documentation of operand/operator predicates.  Remove some
17779         incomplete documentation of predicates from other places.
17780         * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
17781         PREDICATE_CODES; indicate that both are deprecated in favor
17782         of define_predicate/define_special_predicate.
17783
17784         * config/ia64/ia64.c: All predicate function definitions moved
17785         to ia64.md, except
17786         (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
17787         (ia64_expand_load_address, ia64_expand_move):
17788         Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
17789
17790         * config/ia64/ia64.md: All predicates now defined here.
17791         (symbolic_operand): Is now a special predicate.
17792
17793         * config/ia64/ia64.h: Declare ia64_section_threshold.
17794         (PREDICATE_CODES): Delete.
17795
17796 2004-08-12  Richard Henderson  <rth@redhat.com>
17797
17798         * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
17799         * c-semantics.c (add_stmt): Set it.
17800         * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
17801         before instantiating a variable sized type.
17802
17803 2004-08-12  Richard Henderson  <rth@redhat.com>
17804
17805         * stor-layout.c (round_up, round_down): Move ...
17806         * fold-const.c (round_up, round_down): ... here.  Use
17807         multiple_of_p to avoid any arithmetic at all.
17808
17809 2004-08-12  Richard Henderson  <rth@redhat.com>
17810
17811         * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
17812         (gimplify_init_ctor_preeval_1): New.
17813         (gimplify_init_ctor_preeval): New.
17814         (gimplify_init_ctor_eval): New.
17815         (gimplify_init_constructor): Use them.  Always gimplify the LHS
17816         object first.
17817
17818 2004-08-12  Ziemowit Laski  <zlaski@apple.com>
17819
17820         (This patch is part of merge of objc-improvements-branch
17821         into mainline.)
17822
17823         * doc/frontends.texi: Mention Objective-C++ in addition to
17824         Objective-C.
17825         * doc/install.texi: Add 'obj-c++' to list of configurable
17826         languages.
17827         * doc/invoke.texi: Rename Objective-C option headings to
17828         indicate they also apply to Objective-C++.  List file
17829         extensions for Objective-C++ sources.  Mention that
17830         ObjC and ObjC++ compilations may also use C and C++ options,
17831         respectively.  Point users to doc/standards.texi for
17832         further info on ObjC and ObjC++.
17833         * doc/sourcebuild.texi: Mention the objcp/ directory and
17834         the Objective-C++ sources it contains.
17835         * doc/standards.texi: Update link to Apple ObjC site;
17836         add link to gcc readings.html WWW doc.
17837
17838 2004-08-12  Alan Modra  <amodra@bigpond.net.au>
17839
17840         * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
17841         and 2004-07-14 changes.
17842
17843 2004-08-12  Paul Brook  <paul@codesourcery.com>
17844
17845         * doc/invoke.texi: Fix typo.
17846
17847 2004-08-11 Devang Patel  <dpatel@apple.com>
17848
17849         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
17850         and -no_dead_strip_inits_and_terms.
17851         (LINK_SPEC): Same.
17852         * doc/invoke.texi (Darwin Options): Document -dead_strip and
17853         -no_dead_strip_inits_and_terms.
17854
17855 2004-08-11  Paul Brook  <paul@codesourcery.com>
17856
17857         * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
17858         (arm_load_pic_register): ... to this.
17859         * config/arm/arm.c (arm_finalize_pic): Rename ...
17860         (arm_load_pic_register): ... to this.  Always output insns at the
17861         current location.  Load via low reg in thumb mode.
17862         (arm_expand_prologue): Call arm_load_pic_register.
17863         (thumb_expand_prologue): Ditto.
17864         * config/arm/arm.h (FINALIZE_PIC): Remove.
17865         * config/arm/arm.md (builtin_setjmp_receiver): Call
17866         arm_load_pic_register.
17867
17868 2004-08-11  Paul Brook  <paul@codesourcery.com>
17869
17870         * arm.c (thumb_force_lr_save): Add prototype.
17871         (thumb_compute_save_reg_mask): New function.
17872         (thumb_find_work_register): New function.
17873         (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
17874         (thumb_unexpanded_epilogue): Ditto.  Remove redundant code.
17875         Don't clobber r3 when removing pretend args.
17876         (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
17877         (thumb_output_function_prologue): Use new functions.
17878         (thumb_set_return_address): Use thumb_compute_save_reg_mask.
17879         * arm.h (THUMB_REG_PUSHED_P): Remove.
17880
17881 2004-08-11  James E Wilson  <wilson@specifixinc.com>
17882
17883         PR rtl-optimization/16490
17884         * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
17885         global_live_at_end for new basic block if already set for other blocks.
17886
17887 2004-08-11 David Edelsohn  <edelsohn@gnu.org>
17888
17889         * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
17890
17891         * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
17892         (mfcr rlwinm rlwinm patterns): Set length to 12.
17893
17894 2004-08-11  Andrew MacLeod  <amacleod@redhat.com>
17895
17896         * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
17897         get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
17898         (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
17899         (start_ssa_stmt_operands): Delete.
17900         * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
17901         struct stmt_operands_d.
17902         (build_ssa_operands): New extern entry point.
17903         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
17904         building code, replace with create_ssa_artficial_load_stmt().
17905         * tree-ssa-operands.c (struct voperands_d): Delete.
17906         (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
17907         (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
17908         (free_uses, free_defs, free_vuses, free_v_may_defs,
17909         free_v_must_defs): Remove dealloc parameter.
17910         (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
17911         (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
17912         finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
17913         vector comparisons, ssa_name reuse, and allocations here.
17914         (verify_start_operands): Delete.
17915         (finalize_ssa_stmt_operands): Set new operands by calling finalize
17916         routines.
17917         (start_ssa_stmt_operands): Move from tree-flow-inline.h.
17918         (append_def, append_usei): Simplify to simple accumulation.
17919         (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
17920         duplicates and simple accumulation.
17921         (free_ssa_operands): Free vectors in a stmt_operand structure.
17922         (build_ssa_operands): New. Create a new stmt_operand structure from
17923         a stmt and an old set of stmt_operands.
17924         (get_stmt_operands): Simplify and call build_ssa_operands.
17925         (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
17926         get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
17927         add_call_read_ops): Don't pass prev_vops around anymore.
17928         (note_addressable): Return if no stmt annotation.
17929         (copy_virtual_operands): Access v_may_def operands through a struct.
17930         (create_ssa_artficial_load_stmt): New.  Create a load stmt for DOM's
17931         hash tables without treating the stmt as a real stmt.
17932         * tree-ssa-operands.h (struct v_may_def_operand_type): New.  Access
17933         v_may_def def and use through a struct instead of 2 array elements.
17934         (struct v_may_def_optype_d): Use v_may_def_operand_type.
17935         (struct stmt_operands_d): New.  Struct for storing all operand vectors.
17936
17937 2004-08-11  Nick Clifton  <nickc@redhat.com>
17938
17939         * config/arm/arm.c (arm_is_longcall_p): Update comment describing
17940         this funciton's behaviour.  Return true when the current function
17941         has a section attribute and -mlong-calls is in effect.
17942         * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
17943         short-call marker when -mlong-calls is in effect and the function
17944         has a section attribute.
17945
17946 2004-08-10  Zack Weinberg  <zack@codesourcery.com>
17947
17948         * stmt.c (expand_return): If asked to return the RESULT_DECL,
17949         just call expand_value_return on result_rtl.
17950
17951 2004-08-10  Richard Henderson  <rth@redhat.com>
17952
17953         * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
17954         * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
17955         * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
17956         (add_location_or_const_value_attribute): ... not here.  Use
17957         loc_descriptor_from_tree if possible.
17958         (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
17959         Simplify address handling.  Handle DECL_VALUE_EXPR.  Handle register
17960         values specially.
17961         (loc_descriptor_from_tree): New.  Update callers.
17962         * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
17963         * gimplify.c (gimplify_decl_expr): Lower variable sized types to
17964         pointer plus dereference.  Set DECL_VALUE_EXPR.  Set save_stack.
17965         (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
17966         and BUILT_IN_STACK_RESTORE.
17967         (gimplify_expr): Lower DECL_VALUE_EXPR decls.
17968         * stmt.c (expand_stack_alloc): Remove.
17969         * tree-mudflap.c (mx_register_decls): Don't look for
17970         BUILT_IN_STACK_ALLOC.
17971         * tree-nested.c (convert_local_reference): Likewise.
17972         * tree.h (DECL_VALUE_EXPR): New.
17973
17974 2004-08-10  Richard Henderson  <rth@redhat.com>
17975
17976         * stor-layout.c (round_up): Check for 0/1 before dividing.
17977         (round_down): Likewise.
17978
17979         * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
17980
17981 2004-08-09  Mark Mitchell  <mark@codesourcery.com>
17982
17983         * config.gcc (arm*-*-eabi*): New target.
17984         * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
17985         (TARGET_LIB_INT_CMP_BIASED): Likewise.
17986         * expmed.c (expand_divmod): Try a two-valued divmod function as a
17987         last resort.
17988         * gthr.h: Remove bogus tokens at end of #pragma.
17989         * optabs.c (expand_twoval_binop_libfunc): New function.
17990         (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
17991         (prepare_float_lib_cmp): Try reversing the condition.
17992         (debug_optab_libfuncs): New function.
17993         * optabs.h (expand_twoval_binop_libfunc): Declare.
17994         * config/arm/arm.c (arm_init_libfuncs): New function.
17995         (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
17996         (TARGET_INIT_LIBFUNCS): Define it.
17997         * config/arm/arm.h (TARGET_BPABI): New macro.
17998         * config/arm/arm-protos.h
17999         (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
18000         * config/arm/bpabi.S: New file.
18001         * config/arm/bpabi.c: Likewise.
18002         * config/arm/bpabi.h: Likewise.
18003         * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
18004         (__aeabi_drsub): Likewise.
18005         (__aeabi_dsub): Likewise.
18006         (__aeabi_dadd): Likewise.
18007         (__aeabi_ui2d): Likewise.
18008         (__aeabi_i2d): Likewise.
18009         (__aeabi_f2d): Likewise.
18010         (__aeabi_dmul): Likewise.
18011         (__aeabi_ddiv): Likewise.
18012         (__aeabi_cdrcmple): Likewise.
18013         (__aeabi_cdcmpeq): Likewise.
18014         (__aeabi_cdcmple): Likewise.
18015         (__aeabi_dcmpeq): Likewise.
18016         (__aeabi_dcmplt): Likewise.
18017         (__aeabi_dcmple): Likewise.
18018         (__aeabi_dcmpge): Likewise.
18019         (__aeabi_dcmpgt): Likewise.
18020         (__aeabi_dcmpun): Likewise.
18021         (__aeabi_d2iz): Likewise.
18022         (__aeabi_d2uiz): Likewise.
18023         (__aeabi_d2f): Likewise.
18024         * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
18025         (__aeabi_frsub): Likewise.
18026         (__aeabi_fsub): Likewise.
18027         (__aeabi_fadd): Likewise.
18028         (__aeabi_ui2f): Likewise.
18029         (__aeabi_i2f): Likewise.
18030         (__aeabi_fmul): Likewise.
18031         (__aeabi_fdiv): Likewise.
18032         (__aeabi_cfrcmple): Likewise.
18033         (__aeabi_cfcmpeq): Likewise.
18034         (__aeabi_cfcmple): Likewise.
18035         (__aeabi_fcmpeq): Likewise.
18036         (__aeabi_fcmplt): Likewise.
18037         (__aeabi_fcmple): Likewise.
18038         (__aeabi_fcmpge): Likewise.
18039         (__aeabi_fcmpgt): Likewise.
18040         (__aeabi_fcmpun): Likewise.
18041         (__aeabi_f2iz): Likewise.
18042         (__aeabi_f2uiz): Likewise.
18043         * config/arm/lib1funcs.asm (ARM_CALL): New macro.
18044         (__aeabi_uidivmod): New function or alias.
18045         (__aeabi_idivmod): Likewise.
18046         (__aeabi_idiv0): Likewise.
18047         (__aeabi_ldiv0): Likewise.
18048         (__aeabi_llsr): Likewise.
18049         (__aeabi_lasr): Likewise.
18050         (__aeabi_llsl): Likewise.
18051         (bpabi.S): Include it.
18052         * config/arm/libgcc-bpabi.ver: New file.
18053         * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
18054         (LINK_SPEC): Remove.
18055         * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
18056         __aeabi_ulcmp.
18057         * config/arm/t-bpabi: New file.
18058         * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
18059         (TARGET_LIB_INT_CMP_BIASED): Likewise.
18060
18061 2004-08-10  David Edelsohn  <edelsohn@gnu.org>
18062
18063         * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
18064         * config/rs6000/rs6000.md (clrmemsi): New pattern.
18065         * config/rs6000/rs6000.c (expand_block_clear): New function.
18066         (expand_block_move): Convert alignment to bits.  Use SImode and
18067         HImode for unaligned addresses if not STRICT_ALIGNMENT.
18068
18069 2004-08-10  Caroline Tice  <ctice@apple.com>
18070
18071         * varasm.c (unlikely_section_label): New global variable.
18072         (unlikely_text_section_name): New global variable.
18073         (text_section):  Remove alignment statement.
18074         (unlikely_text_section): Remove alignment statement; use
18075         unlikely_section_label rather than hard-coded string.
18076         (assemble_start_function): Initialize unlikely_section_label and
18077         unlikely_text_section_name;  make sure cold section is properly
18078         aligned at start of function; output unlikely_section_label if
18079         appropriate.
18080
18081 2004-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
18082
18083         * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
18084         * config/s390/s390.c (s390_canonicalize_comparison): New function.
18085         * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
18086         * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
18087         "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
18088         ("*tmqi_mem"): Remove SUBREG from pattern.
18089         ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
18090         ("*andsi3_cconly"): Likewise.
18091
18092 2004-08-10  H.J. Lu  <hongjiu.lu@intel.com>
18093
18094         PR target/16909
18095         * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
18096
18097 2004-08-10  Janis Johnson  <janis187@us.ibm.com>
18098
18099         * doc/sourcebuild.texi (compat testing): Document available test
18100         framework commands.  Use the preferred spelling of DejaGnu.
18101
18102 2004-08-10  Daniel Berlin <dberlin@dberlin.org>
18103
18104         * lambda.h: Add matrix type, and prototypes for remainder of
18105         matrix and vector functions.
18106         (lambda_vector_mult_const): New function.
18107         (lambda_vector_negate): Ditto.
18108         (lambda_vector_add): Ditto.
18109         (lambda_vector_add_mc): Ditto.
18110         (lambda_vector_copy): Ditto.
18111         (lambda_vector_zerop): Ditto.
18112         (lambda_vector_equal): Ditto.
18113         (lambda_vector_min_nz): Ditto.
18114         (lambda_vector_first_nz): Ditto.
18115         (lambda_vector_matrix_mult): Ditto.
18116         * lambda-mat.c: New file.
18117         * Makefile.in (lambda-mat.o): New.
18118
18119 2004-08-10  Andrew MacLeod  <amacleod@redhat.com>
18120
18121         * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
18122         after linking stmt into the program.
18123         (bsi_remove): Don't call modify_stmt.
18124         * tree-complex.c (update_complex_assignment,
18125         expand_complex_comparison): Call modify_stmt after changing the stmt.
18126         * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
18127         removing the stmt.
18128         * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
18129         the stmt, and only if needed.
18130         * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
18131         expression.
18132         (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
18133         (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
18134         (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
18135         (eliminate_redundant_computations): Don't pass an annotation. Call
18136         modify_stmt rather than setting the annotation directly.
18137         (record_equivalences_from_stmt): Remove unused local 'j'.
18138         (cprop_operand): Take a stmt rather than an annotation as a parameter.
18139         Call modify_stmt.
18140         (cprop_into_stmt): Pass stmt rather than annotation.
18141         (update_rhs_and_lookup_avail_expr): Call modify_stmt.
18142         * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
18143         modify_stmt.
18144         * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
18145
18146 2004-08-10  Jason Merrill  <jason@redhat.com>
18147
18148         PR middle-end/16948
18149         * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
18150         the RESULT_DECL.
18151
18152 2004-08-10  Geoffrey Keating  <geoffk@apple.com>
18153
18154         * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
18155         hash function.
18156
18157 2004-08-10  Roger Sayle  <roger@eyesopen.com>
18158
18159         * config/mips/mips.md: New reciprocal square root patterns that
18160         match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
18161
18162 2004-08-10  Paul Brook  <paul@codesourcery.com>
18163
18164         * config/arm/arm-protos.h (arm_set_return_address,
18165         thumb_set_return_address): Add prototypes.
18166         * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
18167         * config/arm/arm.c (arm_compute_func_type,
18168         use_return_insn, arm_compute_save_reg0_reg12_mask,
18169         arm_compute_save_reg_mask, arm_output_function_prologue,
18170         arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
18171         current_function_calls_eh_return.
18172         (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
18173         old eh code.
18174         (arm_set_return_address, thumb_set_return_address): New functions.
18175         * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
18176         ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
18177         * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
18178         (epilogue): Use the stackadj register.
18179         (eh_return, arm_eh_return, thumb_eh_return): New pattern.
18180
18181 2004-08-10  Jakub Jelinek  <jakub@redhat.com>
18182
18183         PR target/3144
18184         * expr.c (move_by_pieces_ninsns): Add max_size argument.
18185         (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
18186         (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
18187         (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
18188         but using MOVE_RATIO.
18189         (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
18190         (can_store_by_pieces): Change max_size type to unsigned int.
18191         (store_by_pieces_1): Likewise.  Pass max_size to
18192         move_by_pieces_ninsns.
18193         * config/s390/s390.h (STORE_BY_PIECES_P): Define.
18194         * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
18195         to move_by_pieces_ninsns.
18196         (STORE_BY_PIECES_P): Define.
18197         * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
18198         to move_by_pieces_ninsns.
18199         * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
18200
18201         * config/i386/i386.h (CLEAR_RATIO): Define.
18202
18203 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
18204
18205         * expr.c (expand_expr_real_1): Add back code that was not dead.
18206
18207 2004-08-09  Andrew Pinski  <apinski@apple.com>
18208
18209         * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
18210         which is found to be compatible before returning the aliasing set.
18211
18212 2004-08-09  Daniel Jacobowitz  <dan@debian.org>
18213
18214         * ggc-zone.c (struct alloc_zone): Add statistics counters.
18215         (always_collect): New flag.
18216         (ggc_alloc_zone_1): Update statistics support.  Don't include
18217         overhead in allocated counter.
18218         (sweep_pages): Update allocated counter for large pages.  Don'y
18219         include overhead.
18220         (ggc_collect_1): Always collect.
18221         (ggc_collect): Honor always_collect flag.  Sum all zones to decide
18222         whether to collect.
18223         (SCALE, LABEL): New macros.
18224         (ggc_print_statistics): Add statistics support.
18225
18226 2004-08-09  Roger Sayle  <roger@eyesopen.com>
18227
18228         * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
18229         (init_expmed): Fix potential overrun problem with "all.reg".
18230         (expand_sdiv2_pow2): Add an alternate implementation for signed
18231         division, if the target provides a suitable conditional move insn.
18232
18233 2004-08-09  Paul Brook  <paul@codesourcery.com>
18234         Richard Henderson  <rth@redhat.com>
18235
18236         * unwind-dw2.c (uw_install_context_1): Update target saved stack
18237         pointer.
18238
18239 2004-08-09  Geoffrey Keating  <geoffk@apple.com>
18240
18241         * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
18242         Check DATA limit only if there's no AS limit.  Ignore insanely
18243         low DATA limits.
18244         (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
18245         but take care that the AS limit isn't overrun.
18246         * doc/invoke.texi: Update documentation of min-heapsize parameter.
18247
18248 2004-08-09  Jeff Law  <law@redhat.com>
18249
18250         * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
18251         (tree-ssa-threadupdate.o): Add dependencies.
18252         * tree-ssa-threadupdate.c: New file.
18253         * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
18254         (rewrite_vars_out_of_ssa): Remove prototype.
18255         (cleanup_tree_cfg): Returns a bool.
18256         * tree.h (thread_through_all_blocks): Prototype.
18257         * tree-outof-ssa.c  (SSANORM_*): Move into here.
18258         (remove_ssa_form): Now static.
18259         (rewrite_vars_out_of_ssa): Kill.
18260         * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
18261         * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
18262         (remove_ssa_form, register_partitions_for_vars): Kill declarations.
18263         * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
18264         anything was changed.
18265         * tree-phinodes.c (add_phi_arg): Get the block for the PHI
18266         from the PHI's annotation rather than the edge associated with
18267         the new argument.
18268         * tree-ssa-dom.c (redirection_edges): Kill.
18269         (redirect_edges_and_update_ssa_graph): Kill.
18270         (tree_ssa_dominator_optimize): Do not reset forwardable flag
18271         for blocks anymore.  Do not initialize redirection_edges.
18272         Call thread_through_all_blocks.  Simplify code for cleanup
18273         of the CFG and iterating.  No longer call cleanup_tree_cfg
18274         outside the iteration loop.
18275         (thread_across_edge): No longer mess with forwardable blocks.
18276
18277 2004-08-09  Zack Weinberg  <zack@codesourcery.com>
18278
18279         * explow.c (memory_address): Use memory_address_p.
18280         * recog.c (general_operand): Likewise.
18281         * regrename.c: No need to define REG_OK_STRICT.
18282
18283 2004-08-09  Steven Bosscher  <stevenb@suse.de>
18284
18285         * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
18286         New timers.
18287         * gcse.c: Include timevar.h.
18288         (const_prop_count, copy_prop_count): Rename to global_const_prop_count
18289         and global_copy_prop_count.
18290         (local_const_prop_count, local_copy_prop_count): New static globals.
18291         (gcse_main): Set the right timevar for each pass.
18292         (cprop_jump): Increment global_const_prop_count when a constant is
18293         propagated.  Add "GLOBAL" to dump output.
18294         (cprop_insn): Increment global_const_prop_count when a constant is
18295         propagated, or global_copy_prop_count when a copy is propagated.
18296         (do_local_cprop): Likewise for local_const_prop_count and
18297         local_copy_prop_count.
18298         (one_cprop_pass): Initialize const/cprop counters to zero.
18299         Print out results of local and global const/cprop separately.
18300         (bypass_block): Break over-length line.
18301         * Makefile.in (gcse.o): Add TIMEVAR_H dependency.  Fix dependencies
18302         for bb-reorder.o and tracer.o.
18303
18304 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
18305
18306         * Makefile.in (GTFILES): Remove stmt.c
18307         (stmt.o): Do not depend on gt-stmt.h.
18308         * emit-rtl.c (emit_line_note): Do not call
18309         set_file_and_line_for_stmt.
18310         * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
18311         do everything.
18312         * function.c (free_after_parsing): Do not free STMT field.
18313         (allocate_struct_function): Do not call init_stmt_for_function.
18314         (assign_stack_temp_for_type): Do not accept values of keep
18315         other than 0 or 1.
18316         (init_temp_slots): Do not initialize removed variables.
18317         * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
18318         and X_VAR_TEMP_SLOT_LEVEL fields.
18319         * rtl.h (set_file_and_line_for_stmt): Remove.
18320         * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
18321         struct stmt_status, cond_stack, case_stack, nesting_stack,
18322         nesting_depth, emit_locus, set_file_and_line_for_stmt,
18323         same_case_target_p, init_stmt_for_function, emit_nop,
18324         expand_start_cond, expand_start_elseif, expand_start_else,
18325         expand_elseif, expand_end_cond): Remove.
18326         (preserve_subexpressions_p): Remove references to CFUN->STMT.
18327         (expand_start_case, expand_end_case_type): Remove, merge into...
18328         (expand_case): ... this one, including other bits from
18329         expand_expr_real_1.  Inline same_case_target_p.  Turn members
18330         of CASE_STACK into local variables.
18331         (emit_case_bit_tests): Inline same_case_target_p.
18332         (add_case_node): Add HEAD argument, return new head of the list,
18333         do not handle default label here.
18334         * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
18335         expand_start_elseif, current_nesting_level, expand_start_case,
18336         expand_end_case_type, expand_end_case, add_case_node,
18337         init_stmt_for_function, expand_elseif): Remove prototypes.
18338         (expand_case): Add prototype.
18339
18340 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
18341
18342         * expr.c (expand_expr_real_1): Use optab_for_tree_code.
18343
18344 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
18345
18346         * expr.c (var_rtx): Remove.
18347         (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
18348         LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
18349         TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
18350         Abort.
18351         (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
18352         * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
18353         * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
18354
18355 2004-08-08  Mostafa Hagog  <mustafa@il.ibm.com>
18356         Ayal Zaks <zaks@il.ibm.com>
18357
18358         * common.opt (freschedule-modulo-scheduled-loops): New flag.
18359         * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
18360         * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
18361         when -freschedule-modulo-scheduled-loops flag is not specified.
18362         (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
18363         add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
18364         More accurate placing of insn in row of partial schedule.
18365         (ps_insn_find_column): New function.
18366         * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
18367         * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
18368         (schedule_region): Use sched_is_disabled_for_current_region_p.
18369         * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
18370
18371 2004-08-07  H.J. Lu  <hongjiu.lu@intel.com>
18372
18373         * config/i386/i386.c (ix86_expand_clrmem): Revert the last
18374         change.
18375
18376 2004-08-07  H.J. Lu  <hongjiu.lu@intel.com>
18377
18378         * config/i386/i386.c (ix86_expand_clrmem): Properly call
18379         gen_strset for 64bit target.
18380
18381 2004-08-07  Olivier Hainque  <hainque@act-europe.fr>
18382
18383         * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
18384
18385 2004-08-07  Jason Merrill  <jason@redhat.com>
18386
18387         Make return in memory explicit.
18388         * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
18389         (assign_parm_find_data_types): Remove code for old front end
18390         invisible reference handling.
18391         (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
18392         (expand_function_end): Likewise.
18393         * gimplify.c (gimplify_return_expr): Handle a dereferenced
18394         RESULT_DECL.
18395         * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
18396         (declare_return_variable): Handle DECL_BY_REFERENCE.
18397         * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
18398         (cp_genericize_r): Use convert_from_reference.
18399         Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
18400         (cp_genericize): Handle the RESULT_DECL.  Unset TREE_ADDRESSABLE.
18401
18402         * c-common.c (c_warn_unused_result): Check TREE_USED before
18403         warning about a CALL_EXPR with an unused value.
18404
18405 2004-08-06  Mark Mitchell  <mark@codesourcery.com>
18406
18407         * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
18408         to the compiler.  Use -fshort-wchar by default.
18409
18410 2004-08-06  Pat Haugen  <pthaugen@us.ibm.com>
18411
18412         * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
18413         * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
18414         threshhold.
18415         * doc/invoke.texi (param): Document min-crossjump-insns.
18416
18417 2004-08-06  Richard Sandiford  <rsandifo@redhat.com>
18418
18419         PR c/13282
18420         * c.opt (Wmissing-field-initializers): New option.
18421         * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
18422         * c-typeck.c (pop_init_level): Guard the missing field warning with
18423         warn_missing_field_initializers rather than extra_warnings.
18424         * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
18425         some of the explanation from...
18426         (-Wextra): ...here.  Say that the missing field warning can be
18427         seperately controlled by -Wmissing-field-initializers.
18428
18429 2004-08-06  Paolo Bonzini  <bonzini@gnu.org>
18430
18431         * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
18432         * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
18433         * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
18434         * tree.def (ENTRY_VALUE_EXPR): Remove.
18435
18436 2004-08-06  Jakub Jelinek  <jakub@redhat.com>
18437
18438         * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
18439         the places where it is actually needed.  Don't use repz; stosb
18440         for -Os with sufficiently small constant sizes.
18441         For sufficiently small repz; stos{l,q} repeat counts use a sequence
18442         of stos{l,q} instructions instead.
18443
18444 2004-08-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
18445
18446         PR tree-optimization/16807
18447         * loop-iv.c (dump_iv_info): Dump invariants correctly.
18448         (iv_subreg, iv_extend): Express value of invariant purely in
18449         base field.
18450
18451 2004-08-06  Mark Mitchell  <mark@codesourcery.com>
18452
18453         * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
18454         (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
18455
18456 2004-08-06  Roman Zippel  <zippel@linux-m68k.org>
18457
18458         * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
18459         * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
18460         pre_dec_operand.
18461         * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
18462         pattern until reload is finished to allow better code generation
18463         and split them completely into separate instrunctions.
18464         (*andsi3_split): New pattern.
18465
18466 2004-08-05  Mark Mitchell  <mark@codesourcery.com>
18467
18468         * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
18469         Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P.  Set
18470         DECL_VISIBLITY.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
18471         * tree.h (handle_dll_attribute): Declare.  Test
18472         TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
18473         * c-common.h (c_determine_visibility): Declare.
18474         * c-common.c (c_determine_visibility): New function.
18475         * c-decl.c (finish_decl): Use it.
18476         (finish_function): Likewise.
18477         * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
18478         zero, by default.  Use #if, not #ifdef, to test it.
18479         * config/arm/arm.c (arm_attribute_table): Use
18480         handle_dll_attribute.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
18481         #if.
18482         * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
18483         * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
18484         to 1.
18485         * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
18486         * config/i386/i386.c (ix86_attribute_table): Use
18487         handle_dll_attribute for dllimport/dllexport.  Test
18488         TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
18489         * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
18490         * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
18491         it to 1.
18492         * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
18493         with #if.
18494         * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
18495         it to 1.
18496         * doc/extend.texi (dllexport): Clarify and correct documentation.
18497         (dllimport): Likewise.
18498         * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
18499         handle_dll_attribute.
18500
18501 2004-08-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
18502
18503         * tree-ssa-loop-manip.c: New file.
18504         * Makefile.in (tree-ssa-loop-manip.o): Add.
18505         * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
18506         Declare.
18507         * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
18508         form.
18509         (tree_ssa_loop_done): Verify loop closed ssa form.
18510         * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
18511
18512 2004-08-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18513
18514         * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
18515         pa_asm_output_aligned_local): New functions.
18516         * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
18517         pa_asm_output_aligned_common and pa_asm_output_aligned_local.
18518         * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
18519         pa_asm_output_aligned_common.
18520         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
18521         * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
18522         (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
18523         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
18524         * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
18525         (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
18526         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
18527         * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
18528         common data.
18529
18530 2004-08-05  Andrew Pinski  <apinski@apple.com>
18531
18532         * objc/objc-act.c (build_objc_string_object): Mark the address
18533         expression as constant.
18534
18535 2004-08-05  David Edelsohn  <edelsohn@gnu.org>
18536
18537         * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
18538         and mask64_operand thinkos.  Handle ZERO_EXTRACT.  Handle
18539         SIGN_EXTEND / ZERO_EXTEND of MEM.  Handle rlwinm patterns.
18540
18541 2004-08-05  Joseph S. Myers  <jsm@polyomino.org.uk>
18542
18543         * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
18544         Remove definitions conditioned on USE_GNULIBC_1 or conditioned
18545         out, and associated obsolete comments.
18546
18547 2004-08-05  Nathan Sidwell  <nathan@codesourcery.com>
18548
18549         * tree.h (force_fit_type): Return a tree, take three flags.
18550         * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
18551         TREE_CONSTANT_OVERFLOW here.
18552         (int_const_binop, const_binop): Adjust.
18553         (size_int_type): Do sign extension here.
18554         (fold_convert_const, optimize_bit_field_compare,
18555         decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
18556         fold_negate_const, fold_abs_const, fold_not_const): Adjust.
18557         * tree.c (size_in_bytes, int_fits_type_p): Adjust.
18558
18559 2004-08-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
18560
18561         PR tree-optimization/16864
18562         * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
18563         for ssa names without default_def.
18564
18565 2004-08-05  Richard Sandiford  <rsandifo@redhat.com>
18566
18567         * config/i386/i386.c (ix86_expand_prologue): If the function uses a
18568         frame pointer, restore eax with an ebp-relative address.
18569
18570 2004-08-04  Geoffrey Keating  <geoffk@apple.com>
18571
18572         PR 14516
18573         * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
18574         * c-common.h (make_rtl_for_local_static): Delete.
18575         * c-decl.c (shadow_tag_warned): Clean up comment.
18576         (finish_decl): Clean up spacing.  Use set_user_assembler_name when
18577         appropriate.  Don't pass asmspec to rest_of_decl_compilation.
18578         * c-semantics.c (make_rtl_for_local_static): Delete.
18579         * expr.c (init_block_move_fn): Use set_user_assembler_name.
18580         (init_block_clear_fn): Likewise.
18581         * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
18582         expect it to be in DECL_ASSEMBLER_NAME.  Update callers in many files.
18583         * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
18584         * tree.h (make_decl_rtl): Remove second parameter.
18585         (set_user_assembler_name): New.
18586         * varasm.c (set_user_assembler_name): New.
18587         (make_decl_rtl): Remove second parameter.  Update callers in many
18588         files.
18589
18590 2004-08-05  Adam Nemet  <anemet@lnxw.com>
18591
18592         * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
18593         (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*.  Update
18594         to LynxOS 4.0.
18595         * gthr-lynx.h: New file.
18596         * config/lynx-ng.h: Remove file.
18597         * config/lynx.h: Update to LynxOS 4.0.
18598         * config/t-lynx: New file.
18599         * config/i386/lynx-ng.h: Remove file.
18600         * config/i386/lynx.h: Update to LynxOS 4.0.
18601         * config/rs6000/lynxbase.h: Remove file.
18602         * config/rs6000/lynx.h: Update to LynxOS 4.0.
18603         * config/rs6000/t-lynx: New file.
18604         * doc/install.texi (Options specification): Remove reference to
18605         LynxOS from systems where --with-gnu-as makes a difference.
18606
18607 2004-08-05  Joseph S. Myers  <jsm@polyomino.org.uk>
18608
18609         * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
18610         __UINTMAX_TYPE__.
18611         * c-cppbuiltin.c (builtin_define_stdint_macros): New.  Define
18612         __INTMAX_MAX__.
18613         (c_cpp_builtins): Call it.
18614         * doc/cpp.texi: Update.
18615
18616 2004-08-04  David Edelsohn  <edelsohn@gnu.org>
18617
18618         * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
18619         cost.
18620
18621 2004-08-04  Jan Hubicka  <jh@suse.cz>
18622
18623         * basic-block.h (profile_staus): New global variable.
18624         * cfg.c (profile_status): Declare.
18625         (check_bb_profile): Break out from ....; use profile_status
18626         (dump_flow_info): ... here.
18627         * cfgbuild.c (find_basic_blocks): Set profile_status.
18628         * cfgexpand.c (tree_expand_cfg): Likewise.
18629         * predict.c (estimate_probability): Likewise.
18630         * profile.c (branch_prob): Likewise.
18631         * tree-cfg.c (build_tree_cfg): Likewise.
18632         (dump_function_to_file): Use check_bb_profile.
18633         * tree-pretty-print (dump_bb_header): Likewise.
18634         * tree-profile.c (do_tree_profiling): Cleanup.
18635
18636 2004-08-04  Zack Weinberg  <zack@codesourcery.com>
18637
18638         * Makefile.in (RTL_BASE_H, RTL_H): Correct.
18639         (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
18640         (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
18641         (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
18642         (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
18643         (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
18644         (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
18645         (ggc-none.o, errors.o): Move rule to generators section;
18646         correct dependencies.
18647         (min-insn-modes.o): Move rule to generators section; remove
18648         unnecessary explicit command; correct dependencies.
18649         (print-rtl.o, print-rtl1.o): Correct dependencies.
18650         ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
18651         (mostlyclean): Update.
18652
18653         * errors.c: Include bconfig.h not config.h.  Correct comment.
18654         * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
18655         * ggc-none.c: Include bconfig.h; not config.h or tm.h.
18656         * print-rtl.c: Don't include tm_p.h.
18657
18658         * rtl.h: Move forward-decl of struct function down where it's
18659         needed.  Include genrtl.h #ifndef GENERATOR_FILE, not
18660         #ifndef NO_GENRTL_H.  Remove unnecessary #ifdef BUFSIZ statements.
18661
18662 2004-08-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
18663             Jeff Law  <law@redhat.com>
18664
18665         * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
18666         * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
18667         * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
18668         manipulate the duplicated ssa names.
18669         * tree-ssanames.c (ssa_names_to_rewrite): New variable.
18670         (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
18671         unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
18672         New functions.
18673         (release_ssa_name): Do not release ssa names that may have multiple
18674         definitions.
18675         * tree.h (release_ssa_name_force, mark_for_rewrite,
18676         unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
18677         marked_ssa_names): Declare.
18678         * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
18679         (duplicate_blocks): Remove call to mark_defs_for_rewrite.
18680         Update call to rewrite_ssa_into_ssa.
18681
18682 2004-08-04  Mark Mitchell  <mark@codesourcery.com>
18683
18684         * defaults.h (TARGET_DECLSPEC): New macro.
18685         * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
18686         * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
18687         * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
18688         * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
18689         __declspec support.
18690         (TARGET_DECLSPEC): Define.
18691         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
18692         __declspec support.
18693         * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
18694         __declspec support.
18695         (TARGET_DECLSPEC): Define.
18696         * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
18697         __declspec support.
18698         * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
18699         support.
18700         * doc/tm.texi (TARGET_DECLSPEC): Document.
18701
18702         * doc/extend.texi: Fix typo in comment.
18703
18704 2004-08-04  Paul Brook  <paul@codesourcery.com>
18705
18706         * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
18707         (TARGET_CXX): Use it.
18708         * target.h (struct gcc_target): Add cdtor_returns_this.
18709         * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
18710         (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
18711         * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
18712
18713 2004-08-03  Nathan Sidwell  <nathan@codesourcery.com>
18714
18715         * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
18716         low/high pair. Do range checking directly.
18717         (interpret_integer): Adjust.
18718
18719 2004-08-04  Nick Clifton  <nickc@redhat.com>
18720
18721         * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
18722         GCC ABI.
18723         * doc/invoke.texi: Document this new switch and also the -mrenesas
18724         switch.
18725
18726 2004-08-04  Nathan Sidwell  <nathan@codesourcery.com>
18727
18728         * cfglayout.c (insn_locators_initialize): Update the current
18729         location before initializing a location.
18730
18731 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
18732
18733         * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
18734         (dbxout_function_end): Return after emitting the "Lscope" symbol
18735         under the same conditions that this function formerly wasn't called.
18736         Add explanatory comments.
18737
18738         PR 14860
18739         * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
18740         on the new decl.
18741
18742         PR 13956
18743         * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
18744         functions, broken out of dbxout_block.
18745         (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
18746         stabs too, if it contains symbols.  Use the begin_label and
18747         the Lscope label (emitted by dbxout_function_end) for the
18748         range of this block.
18749
18750 2004-08-03  Nathanael Nerode  <neroden@gcc.gnu.org>
18751
18752         * doc/install.texi: Update autoconf version requirements.
18753
18754 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
18755
18756         * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
18757         * recog.c (general_operand, immediate_operand, nonmemory_operand)
18758         (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
18759         * regclass.c (record_reg_classes): Likewise.
18760         * reload.c (find_reloads): Likewise.
18761         * reload1.c (reload): Likewise.
18762
18763 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
18764
18765         * gensupport.c (init_md_reader_args_cb): Renamed from
18766         init_md_reader_args.  Add third option, callback function for
18767         parsing program-specific options.  Add diagnosis of incorrect
18768         number of input files.
18769         (init_md_reader): Fold into init_md_reader_args_cb.
18770         (init_md_reader_args): Now a thin wrapper around
18771         init_md_reader_args_cb.
18772         * gensupport.h: Update prototypes.
18773
18774         * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
18775         * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
18776         * genrecog.c: No need to diagnose lack of an input file;
18777         init_md_reader_args will handle it.
18778         * genconditions.c: Likewise, and use init_md_reader_args.
18779         * genconstants.c: Likewise, and no need to call read_md_rtx.
18780
18781 2004-08-03  Joseph S. Myers  <jsm@polyomino.org.uk>
18782
18783         * c-decl.c (implicitly_declare): Diagnose incompatible implicit
18784         declarations.
18785
18786 2004-08-03  Mike Stump  <mrs@apple.com>
18787
18788         * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
18789         for frameworks.
18790         * doc/invoke.texi (Darwin Options): Update to reflect above.
18791
18792 2004-08-03  Roger Sayle  <roger@eyesopen.com>
18793
18794         PR middle-end/16790
18795         * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
18796         truncations, not just global truncations.
18797
18798 2004-08-03  Andrew Pinski  <apinski@apple.com>
18799
18800         PR bootstrap/16865
18801         * loop-iv.c (simplify_using_assignment): Initialize lhs.
18802
18803 2004-08-03  Paul Brook  <paul@codesourcery.com>
18804
18805         * gcc/doc/install.texi: Document MPFR requirement.
18806
18807 2004-08-03  Maciej W. Rozycki  <macro@linux-mips.org>
18808
18809         * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
18810         and mmap() explicitly instead of relying on preset autoconf cache
18811         variables.
18812         * configure: Regenerate.
18813
18814 2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
18815
18816         PR target/16570
18817         * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
18818         to tmake_file.
18819         (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
18820         (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
18821         to tmake_file.
18822
18823         * config/i386/t-gmm_malloc: New file.
18824         * config/i386/t-pmm_malloc: Likewise.
18825
18826         * config/i386/xmmintrin.h: Include <mm_malloc.h>.
18827
18828 2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
18829             Tanguy Fautrà <tfautre@pandora.be>
18830
18831         * config/i386/pmm_malloc.h: New file.
18832
18833 2004-08-03  Danny Smith  <dannysmith@users.sourceforge.net>
18834
18835         * config/i386/gmm_malloc.h: New file.
18836
18837 2004-08-03  Dale Johannesen  <dalej@apple.com>
18838
18839         * config/rs6000/rs6000.c (machopic_output_stub):  Align Darwin stubs.
18840         * c-common.c: Include opts.h.
18841         (c_common_get_alias_set): Fix check for a single input file.
18842         * toplev.c: Remove current_file_decl.
18843         * tree.h: Ditto.
18844
18845 2004-08-03  Mark Mitchell  <mark@codesourcery.com>
18846
18847         * config.gcc (arm*-*-symbianelf*): New target.
18848         * config/arm/symbian.h: New file.
18849
18850         * gthr-gnat.c: Add visibility #pragmas.
18851         * gthr-gnat.h : Likewise.
18852         * gthr.h: Likewise.
18853         * libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
18854         (__ffsDI2): Likewise.
18855         (__clzSI2): Likewise.
18856         (__ctzSI2): Likewise.
18857         (__ctzDI2): Likewise.
18858         (__popcountSI2): Likewise.
18859         (__popcountDI2): Likewise.
18860         (__paritySI2): Likewise.
18861         (__parityDI2): Likewise.
18862         * libgcc2.h: Add visibility #pragmas.
18863         (__clzDI2): Add prototype.
18864         (__clzSI2): Likewise.
18865         (__ctzSI2): Likewise.
18866         (__ffsDI2): Likewise.
18867         (__ffsSI2): Likewise.
18868         (__ctzDI2): Likewise.
18869         (__popcountSI2): Likewise.
18870         (__popcountDI2): Likewise.
18871         (__paritySI2): Likewise.
18872         (__parityDI2): Likewise.
18873         * unwind-dw2-fde.h: Add visibility #pragmas.
18874         * unwind.h: Likewise.
18875
18876 2004-08-03  David Edelsohn  <edelsohn@gnu.org>
18877             Dale Johannesen  <dalej@apple.com>
18878             Roger Sayle  <roger@eyesopen.com>
18879
18880         * config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
18881         constants more accurately.  Adjust costs for FMA instructions.
18882         Add cases for most logical and float operations.  Recurse into
18883         most operands.
18884
18885 2004-08-03  Richard Earnshaw  <rearnsha@arm.com>
18886
18887         * config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
18888
18889 2004-08-03  Pat Haugen  <pthaugen@us.ibm.com>
18890
18891         * ra-build.c (conflicts_between_webs): For webs that cross a call add
18892         conflicts to regs_invalidated_by_call.
18893
18894 2004-08-03  Paul Brook  <paul@codesourcery.com>
18895
18896         * config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
18897
18898 2004-08-03  Jan Hubicka  <jh@suse.cz>
18899
18900         * coverage.c (tree_coverage_counter_ref): Fix computation of the new
18901         ARRAY_REF argument.
18902
18903 2004-08-03  Richard Earnshaw  <rearnsha@arm.com>
18904
18905         * arm-cores.def: Sort by architecture.  Add arm946es, arm966es,
18906         arm968es, arm10e, arm1020e, arm1022e.
18907         * invoke.texi: Update list of ARM cores.
18908         * arm-tune.md: Regenerate.
18909
18910 2004-08-03  Richard Earnshaw <rearnsha@arm.com>
18911
18912         * arm/gentune.sh: New file.
18913         * arm/t-arm: New file.
18914         * arm/arm-tune.md: New file (autogenerated).
18915         * config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
18916         * arm.md (attribute tune): Delete.  Include arm-tune.md.
18917
18918 2004-08-03  Paolo Bonzini <bonzini@gnu.org>
18919
18920         * gcc.c (add_prefix, add_sysrooted_prefix): Remove
18921         penultimate parameter.  All callers adjusted.
18922         (struct prefix_list): Remove used_flag_ptr.
18923         (find_a_file): Do not set *pl->used_flag_ptr.
18924         (warn_B, warn_std_ptr): Remove.
18925
18926 2004-08-03  Yossi Markovich <yossim@il.ibm.com>
18927             Mostafa Hagog <mustafa@il.ibm.com>
18928
18929         * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.
18930
18931 2004-08-02  Geoffrey Keating  <geoffk@apple.com>
18932
18933         * dwarf2out.c (output_call_frame_info): Don't change data format
18934         due to TARGET_USES_WEAK_UNWIND_INFO.  Always refer to the local
18935         label.  Use 'true' not '1'.
18936         * doc/install.texi (powerpc-*-darwin*): Mention cctools version
18937         required.
18938
18939 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18940
18941         * gdbinit.in: Reflect previous changes to rtunion_def.
18942
18943 2004-08-02  Roger Sayle  <roger@eyesopen.com>
18944
18945         * fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
18946         -> "X % Y" is only valid for TRUNC_MOD_EXPR.
18947
18948 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18949
18950         * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
18951         vec_p_reserve.
18952         * langhooks.h (lang_hooks::builtin_function): Rename parameter
18953         from "class" to "bt_class".
18954
18955 2004-08-02  Paul Brook  <paul@codesourcery.com>
18956
18957         PR rtl-optimization/15068
18958         * flow.c (init_propagate_block_info): Check condition is reversible.
18959
18960 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18961
18962         * gengtype.h (options::info): Change type to const char *.
18963         (enum gc_used_enum): Move out of struct type scope.
18964         * gengtype.c (create_option): Convert initializer for option::info to
18965         appropiate type.
18966         (adjust_field_type, walk_type, write_func_for_structure,
18967         write_root, write_roots): Remove pointless cast.
18968
18969 2004-08-02  J"orn Rennecke <joern.rennecke@superh.com>
18970
18971         * genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
18972
18973 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18974
18975         * rtl.h (union rtunion_def): Have all members  start with the
18976         prefix "rt_".
18977         (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
18978         X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
18979         X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
18980         XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members
18981         access.
18982         * gengtype.c (adjust_field_rtx_def): Likewise.
18983         * rtlanal.c (loc_mentioned_in_p): Likewise.
18984
18985 2004-08-02  Richard Sandiford  <rsandifo@redhat.com>
18986
18987         * config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
18988         Replace uses of mips/elf64.h with mips/elf.h
18989         * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
18990         (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
18991         (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
18992         (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
18993         (HANDLE_SYSV_PRAGMA): Delete.
18994         (ASM_OUTPUT_DEF): Fix formatting.
18995         * config/mips/elf64.h: Delete.
18996
18997 2004-08-01  Zack Weinberg  <zack@codesourcery.com>
18998
18999         * config/ia64/ia64.c (got_symbolic_operand): Do require a
19000         symbol+offset operand to have its offset be zero mod 0x3fff
19001         when GOT entries are in use.  Clarify logic in SYMBOL_REF
19002         case.  Clarify comments.
19003         (ia64_expand_load_address): Split a symbol+offset load when
19004         the offset is nonzero mod 0x3fff, not 0x1fff.
19005
19006 2004-08-01  Geoffrey Keating  <geoffk@apple.com>
19007
19008         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
19009         if trying to *store* to a non-offsettable address.
19010         * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
19011         a nonoffsettable address.
19012         (movdi_internal32): Don't move GPRs to a nonoffsettable address.
19013         Clean up.
19014         (movti_string): Don't move GPRs to a nonoffsettable address.
19015         (movti_ppc64): Don't move GPRs to a nonoffsettable address.  Clean up.
19016
19017 2004-08-02  Ben Elliston  <bje@au.ibm.com>
19018
19019         PR target/16155
19020         * config/rs6000/altivec.h: Replace typeof with __typeof__.
19021
19022 2004-08-01  Richard Henderson  <rth@redhat.com>
19023
19024         * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
19025         variable sized types.
19026
19027 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
19028
19029         * doc/invoke.texi: In the MIPS options section, remove the passage
19030         saying that -mexplicit-relocs is usually disabled for -mabicalls
19031         -fno-unit-at-a-time.
19032         * config/mips/mips.c (override_options): Remove the code that enforced
19033         this rule.
19034
19035 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
19036
19037         * config/mips/mips.md (cprestore): Provide two alternatives, one for
19038         an in-range offset and one for an out-of-range offset.  Wrap the latter
19039         in .set macro/.set nomacro if it's inside a .set nomacro block.
19040
19041 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
19042
19043         * config/mips/mips-protos.h (mips_gp_save_slot): Remove.
19044         (mips_restore_gp): Declare.
19045         * config/mips/mips.c (mips_add_offset): Add a scratch register
19046         argument.  Reimplement in rtl only, reusing MIPS16 logic from
19047         mips_output_mi_thunk.
19048         (mips_legitimize_address, mips_legitimize_const_move): Adjust calls
19049         to mips_add_offset.
19050         (mips_gp_save_slot): Delete.
19051         (mips_restore_gp): New function.
19052         (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
19053         * config/mips/mips.md (exception_receiver): Turn into a
19054         define_insn_and_split.  Use mips_restore_gp to do the split.
19055         (call_internal, call_value_internal, call_value_multiple_internal): Use
19056         mips_restore_gp to restore $gp.
19057
19058 2004-07-31  Andrew Pinski  <apinski@apple.com>
19059
19060         PR other/16842
19061         * mkheaders.in (libsubdir): s/gcc-lib/gcc/.
19062
19063 2004-07-31  Joseph S. Myers  <jsm@polyomino.org.uk>
19064
19065         * c-decl.c (diagnose_mismatched_decls): Give error for external
19066         redeclaration of identifier declared with no linkage, not just
19067         warning with -Wtraditional.  Do not check DECL_CONTEXT to give
19068         error for redeclaration with no linkage.
19069
19070 2004-07-30  Geoffrey Keating  <geoffk@apple.com>
19071             Fariborz Jahanian <fjahanian@apple.com>
19072
19073         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
19074         non-offsettable addresses even for DImode.
19075         (rs6000_split_multireg_move): Cope with non-offsettable addresses
19076         being moved into multiple GPRs.
19077
19078         * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
19079         to 64.
19080         (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
19081         * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
19082         to 128.
19083         * config/rs6000/darwin-ldouble.c (isless): New macro.
19084         (inf): New macro.
19085         (nonfinite): New macro.
19086         (FPKINF): Delete.
19087         (_xlqadd): Completely rewrite.
19088         (_xlqmul): Correct overflow handling.
19089         (_xlqdiv): Correct overflow handling.
19090         * config/rs6000/darwin-ldouble-format: New file.
19091
19092 2004-07-30  Roger Sayle  <roger@eyesopen.com>
19093             Richard Henderson  <rth@redhat.com>
19094
19095         * config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
19096         9 into the equivalent lea instruction.
19097
19098 2004-07-30  Richard Henderson  <rth@redhat.com>
19099
19100         * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
19101         with DECL_INITIAL if fb_lvalue.
19102         * tree-gimple.c (is_gimple_id): Add CONST_DECL.
19103         * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
19104         with <Cxxx>.
19105         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
19106
19107 2004-07-30  Diego Novillo  <dnovillo@redhat.com>
19108
19109         * tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
19110         pointer escapes through a function call, assume that the
19111         callee will dereference it.
19112         (add_pointed_to_var): Assume that VALUE is always an
19113         ADDR_EXPR.
19114         (collect_points_to_info_r): Only call add_pointed_to_var if
19115         the value is an ADDR_EXPR.
19116
19117 2004-07-30  Diego Novillo  <dnovillo@redhat.com>
19118
19119         * tree-ssa-alias.c (create_alias_map_for): Do not get the
19120         alias set of the inner type of ARRAY_TYPEs.
19121
19122 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
19123
19124         * tree-ssa-ccp.c (visit_assignment): Move code to prevent
19125         setting a non-register to UNDEFINED right before the call to
19126         set_lattice_value.
19127
19128 2004-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
19129
19130         * config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
19131
19132 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
19133
19134         * tree-ssa.c (verify_flow_sensitive_alias_info): When
19135         comparing points-to sets of different pointers, make sure the
19136         second pointer is actually referenced in the code.
19137
19138 2004-07-29  Zack Weinberg  <zack@codesourcery.com>
19139
19140         * config/ia64/ia64.c (setjmp_operand): Delete, unused.
19141         (got_symbolic_operand): Remove unreachable code.
19142         * config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
19143         setjmp_operand; add entry for tls_symbolic_operand.
19144         * config/ia64/ia64-protos.h: Remove all prototypes of
19145         predicate functions.
19146
19147 2004-07-29  Mark Mitchell  <mark@codesourcery.com>
19148
19149         * c-common.h (lang_post_pch_load): New variable.
19150         * c-pch.c (lang_post_pch_load): Define it.
19151         (c_common_read_pch): Use it.
19152         * cgraphunit.c (record_call_1): Give the front end a chance to
19153         record additional needed entities when a variable is marked as
19154         needed.
19155         * tlink.c (recompile_files): Robustify.
19156         (scan_linker_output): If a symbol is assigned to a file,
19157         but after recompilation is not present there, issue an error
19158         message.
19159
19160 2004-07-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19161
19162         * tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
19163         Take orig_loop argument and pass it to set_level.
19164         (schedule_sm): Pass the correct orig_loop to force_move_till.
19165
19166 2004-07-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19167
19168         * cfgloop.c (update_latch_info): Update dominator of the new block.
19169         (canonicalize_loop_headers, flow_loops_find): Do not free dominance
19170         info.
19171         * dominance.c (verify_dominators): Check that the dominance tree is
19172         connected.
19173         (recount_dominator): Ignore unreachable blocks.
19174         (iterate_fix_dominators): Cleanup old dominance information before
19175         recomputing it.
19176
19177 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
19178
19179         * tree-ssa-operands.c (get_expr_operands): Revert changes
19180         to ADDR_EXPR processing introduced by:
19181             2004-06-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19182             * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
19183
19184 2004-07-29  Joseph S. Myers  <jsm@polyomino.org.uk>
19185
19186         * doc/implement-c.texi: Add C90 subclause references.  Point to
19187         preprocessor documentation instead of duplicating it.  Add points
19188         only present in C90.  Fill in documentation for all points.
19189
19190 2004-07-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19191
19192         * pa.c (output_movb): Correct typo.
19193
19194 2004-07-29  Pat Haugen  <pthaugen@us.ibm.com>
19195
19196         * ra.h (single_reg_in_regclass): Declare.
19197         * ra.c (single_reg_in_regclass): Define.
19198         (first_hard_reg): New.
19199         (init_ra): Initialize single_reg_in_regclass.
19200         * ra-colorize.c (ok_class): New.
19201         (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
19202
19203 2004-07-29  Nathan Sidwell  <nathan@codesourcery.com>
19204
19205         * gcov-io.h: Allow zero tag as EOF indicator.
19206         (gcov_is_eof): Remove.
19207         (gcov_truncate): Remove.
19208         * gcov-io.c (gcov_seek): Always SEEK_SET.
19209         * libgcov.c (gcov_exit): Don't use gcov_truncate.  Write explicit
19210         EOF tag.
19211         * coverage.c (read_counts_file): Don't use gcov_is_eof.
19212         * gcov-dump.c (dump_file): Likewise.
19213         * gcov.c (read_graph_file, read_count_file): Likewise.
19214
19215         * c-decl.c (complete_array_type): Don't gratuitously copy
19216         maxindex.  Check it always has a type.
19217
19218 2004-07-29  Steven Bosscher  <stevenb@suse.de>
19219
19220         * rtl.c (currently_expanding_to_rtl): New.
19221         * rtl.h (currently_expanding_to_rtl): Export it.
19222         * cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
19223
19224         * config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
19225         inliner hack.
19226         * config/sh/sh.c: Replace rtx_equal_function_value_matters
19227         with currently_expanding_to_rtl.
19228         * config/sh/sh.md: Likewise.
19229         * config/ia64/ia64.c (got_symbolic_operand): Likewise.
19230
19231 2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
19232
19233         Introduce sh2a support.
19234         2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
19235         * config.gcc: Build multilibs for sh2a and sh2a-single by
19236         default.
19237         * config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
19238         default.  Split their tests out of the corresponding SH4
19239         multilibs.
19240         * config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
19241         multilibs for SH2a.
19242         2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
19243         * config.gcc: Handle sh2a multilibs and cpu selection.
19244         * config/sh/sh.h: Likewise.  Handle sh2a command line flags.
19245         * config/sh/t-mlib-sh2a: New.
19246         * config/sh/t-mlib-sh2a-nofpu: New.
19247         * config/sh/t-mlib-sh2a-single: New.
19248         * config/sh/t-mlib-sh2a-single-only: New.
19249         2004-07-09  Nick Clifton  <nickc@redhat.com>
19250         Issue 43400
19251         * config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
19252         -ml and -m2a are used together.
19253         2004-03-23  DJ Delorie  <dj@redhat.com>
19254         * config/sh/sh.c (sh_builtin_saveregs): Use the double code only
19255         when we have a double-sized FPU.
19256         2004-02-24  Corinna Vinschen <vinschen@redhat.com>
19257         * config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
19258         is set.
19259         * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
19260         -msh2a-single and -msh2a-single-only
19261         2004-02-24  Corinna Vinschen <vinschen@redhat.com>
19262         * config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
19263         is set.
19264         2004-02-20  DJ Delorie  <dj@delorie.com>
19265         * config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
19266         2004-02-20  Fred Fish <fnf@redhat.com>,
19267         Corinna Vinschen <vinschen@redhat.com>
19268         * config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
19269         (MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
19270         2004-02-18  DJ Delorie  <dj@redhat.com>
19271         * config/sh/sh.c (broken_move): Add support for movi20.
19272         * config/sh/sh.h: Likewise.
19273         (SHIFT_COUNT_TRUNCATED): Set for sh2a.
19274         * config/sh/sh.md (udivsi3_sh2a): New.
19275         (udivsi3): Call it.
19276         (divsi3_sh2a): New.
19277         (divsi3): Call it.
19278         (mul_r): New.
19279         (ashlsi3_sh2a): New.
19280         (ashrsi3_sh2a): New.
19281         (lshrsi3_sh2a): New.
19282         (movsi_i): Disable for sh2a.
19283         (movsi_ie): Add movi20.
19284         (movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
19285         sh2a, for -m2a-nofpu mode.
19286         2004-02-13  DJ Delorie  <dj@redhat.com>
19287         * config/sh/lib1funcs.asm: Handle double vs single better.
19288         * config/sh/sh.h: Likewise.
19289         2004-02-09  DJ Delorie  <dj@redhat.com>
19290         * config/sh/crt1.asm: Add support for sh2a.
19291         * config/sh/elf.h: Likewise.
19292         * config/sh/lib1funcs.asm: Likewise.
19293         * config/sh/sh.c: Likewise.
19294         * config/sh/sh.md: Likewise.
19295         * config/sh/sh.h: Likewise.
19296         * config/sh/t-sh: Likewise.
19297
19298 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
19299
19300         * config/frv/frv.md (movqi_internal, movhi_internal,
19301         movsi_internal): Add backup alternatives for memory inputs.
19302
19303 2004-07-28  Matt Austern  <austern@apple.com>
19304
19305         * config/darwin.c (darwin_one_byte_bool): New global variable.
19306         * config/darwin.h (darwin_one_byte_bool): Declare.
19307         (SUBTARGET_OPTIONS): Define macro.  (for -mone-byte-bool flag.)
19308         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
19309         value of darwin_one_byte_bool.
19310         * doc/invoke.texi: Document -mone-byte-bool flag.
19311
19312 2004-07-28  Eric Christopher  <echristo@redhat.com>
19313
19314         * c-common.c (c_common_unsafe_for_reeval): Delete.
19315         * c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
19316         * c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
19317         * calls.c (fix_unsafe_tree): Delete.
19318         (expand_call): Delete code which used above.
19319         * dojump.c (do_jump): Delete UNSAVE_EXPR case.
19320         * expr.c (expand_expr_real_1): Ditto.
19321         * fold-const.c (non_lvalue): Ditto.
19322         * langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
19323         (lhd_unsafe_for_reeval): Ditto.
19324         * langhooks.c (lhd_unsafe_for_reeval): Ditto.
19325         * langhooks.h (unsafe_for_reeval): Ditto.
19326         (unsave_expr_now): Adjust comment.
19327         * tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
19328         (estimate_num_insns_1): Ditto.
19329         * tree-pretty-print.c (dump_generic_node): Ditto.
19330         * tree.c (expr_align): Ditto.
19331         (unsave_expr): Delete.
19332         (unsafe_for_reeval): Ditto.
19333         * tree.h (unsafe_for_reeval, unsave_expr): Ditto.
19334         * tree.def (UNSAVE_EXPR): Delete.
19335         * objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
19336
19337 2004-07-28  Zack Weinberg  <zack@codesourcery.com>
19338
19339         * tree.h (enum tls_model): Move ...
19340         * coretypes.h: ... here.
19341
19342 2004-07-28  Richard Sandiford <rsandifo@redhat.com>
19343
19344         * config/frv/frv.h (EPILOGUE_USES): New.  Use LR.
19345
19346 2004-07-28  Richard Sandiford  <rsandifo@redhat.com>
19347
19348         * cse.c (validate_canon_reg): New function, split out from...
19349         (canon_reg): ...here.  Use validate_canon_reg for both 'e' and 'E'.
19350
19351 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
19352
19353         * tree-ssa-alias.c (maybe_create_global_var): Don't just
19354         return if .GLOBAL_VAR has been created.
19355
19356 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
19357
19358         * tree-ssa.c (verify_flow_insensitive_alias_info): Process
19359         every variable that may have aliases, not just tags.
19360
19361 2004-07-28  Aldy Hernandez  <aldyh@redhat.com>
19362
19363         * config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
19364         move_from_CR_eq_bit.
19365         Rename UNSPEC_MV_CR_GT to UNSPEC_MV_CR_EQ.
19366
19367
19368         * config/rs6000/spe.md ("e500_flip_gt_bit"): Rename to
19369         e500_flip_eq_bit.
19370
19371         * config/rs6000/rs6000-protos.h: Rename output_e500_flip_gt_bit to
19372         output_e500_flip_eq_bit.
19373
19374         * config/rs6000/rs6000.c (output_e500_flip_gt_bit): Rename to
19375         output_e500_flip_eq_bit.
19376         (rs6000_emit_sCOND): Rename call to output_e500_flip_gt_bit to
19377         output_e500_flip_eq_bit.
19378         Rename gen_move_from_CR_gt_bit to gen_move_from_CR_eq_bit.
19379         (print_operand): case D.  Get to EQ bit.
19380
19381 2004-07-28  Richard Sandiford  <rsandifo@redhat.com>
19382
19383         * gcov.c (function_summary): Add missing \n.
19384
19385 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
19386
19387         Introduce sh4a support.
19388         * config.gcc: Handle sh4a multilibs and cpu selection.
19389         * config/sh/sh.h: Likewise.  Handle sh4a command line flags.
19390         * config/sh/t-mlib-sh4a: New.
19391         * config/sh/t-mlib-sh4al: New.
19392         * config/sh/t-mlib-sh4a-nofpu: New.
19393         * config/sh/t-mlib-sh4a-single: New.
19394         * config/sh/t-mlib-sh4a-single-only: New.
19395         2004-02-20  DJ Delorie  <dj@redhat.com>
19396         * config/sh/sh.md ("movua"): Change constraint from "m" to "Sua".
19397         * config/sh/sh.h (EXTRA_CONSTRAINT_S): Add "Sua" support.
19398         2003-08-22  Eric Christopher  <echristo@redhat.com>
19399         * config/sh/sh4a.md: Update for chip errata.
19400         2003-08-07  Eric Christopher  <echristo@redhat.com>
19401         * config/sh/sh4a.md: New file. sh4a processor description.
19402         2003-07-08  Alexandre Oliva  <aoliva@redhat.com>
19403         * config/sh/sh.h (TARGET_SWITCHES): Added 4al.  Adjust description
19404         of -m4a-nofpu.
19405         (SH_ASM_SPEC): Pass -dsp for -m4al, not -m4a-nofpu.
19406         * config/sh/t-sh (MULTILIB_MATCHES): Map -m4al to -m4a-nofpu.
19407         * doc/invoke.texi (SH Options): Document -m4al.
19408         2003-07-03  Alexandre Oliva  <aoliva@redhat.com>
19409         * config/sh/sh.c (expand_block_move): Remove commented-out code
19410         checked in by mistake.
19411         (sh_cannot_change_mode_class): Enable SUBREGs to be used to select
19412         single elements from SFmode vectors.
19413         * config/sh/sh.md (fsca): Use VEC_CONCAT to initialize the output
19414         register.
19415         (sinsf2, cossf2, sindf2, cosdf2): Don't emit CLOBBER.
19416         2003-07-01  Alexandre Oliva  <aoliva@redhat.com>
19417         * config/sh/sh.h (sh_fsca_sf2int, sh_fsca_df2int,
19418         sh_fsca_int2sf): Remove variable declarations.
19419         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
19420         sh_fsca_int2sf): New functions.
19421         (sh_fsca_sf2int_rtx, sh_fsca_df2int_rtx,
19422         sh_fsca_int2sf_rtx): New static variables.
19423         * config/sh/sh-protos.h (sh_fsca_sf2int, sh_fsca_df2int,
19424         sh_fsca_int2sf): Declare.
19425         * config/sh/sh.md: Adjust.
19426         * doc/invoke.texi (SH Options): Document new options.
19427         * config/sh/lib1funcs.asm (ic_invalidate): Remove SH4a forward
19428         compatibility from SH4 code.
19429         2003-06-27  Alexandre Oliva  <aoliva@redhat.com>
19430         * config/sh/sh.c (expand_block_move): Don't emit POST_INC too
19431         early.
19432         (memory_movsrc_operand): Renamed to...
19433         (unaligned_load_operand): ... this.  Simplified.
19434         * config/sh/sh.h (PREDICATE_CODES): Adjust.
19435         * config/sh/sh.md (movua, extv, extzv): Likewise.  Change movua's
19436         input operand to SImode, and adjust the others.  Introduce
19437         post-increment by peephole.
19438         * config/sh/sh.c (expand_block_move): Give the target address the
19439         same mode as the temp reg.
19440         * config/sh/sh.c (expand_block_move): Use a temp reg for unaligned
19441         copying.
19442         2003-06-26  Alexandre Oliva  <aoliva@redhat.com>
19443         Introduce support for SH4a.
19444         * config/sh/lib1funcs.asm (ic_invalidate): Use icbi if
19445         __SH4A__.  Emit 4 4kb blocks and touch all of them otherwise.
19446         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
19447         sh_fsca_int2sf): New.
19448         (sh_init_builtins): Initialize them.
19449         (print_operand): Support `d'.
19450         (expand_block_move): Use movua if src is misaligned.
19451         (memory_movsrc_operand): New.
19452         * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH4A__
19453         and one of the SH4 macros.
19454         (SH4A_BIT, TARGET_SH4A_ARCH, TARGET_SH4A_FP,
19455         SELECT_SH4A_NOFPU, SELECT_SH4A_SINGLE_ONLY, SELECT_SH4A,
19456         SELECT_SH4A_SINGLE): New.
19457         (TARGET_NONE): Add SH4A_BIT.
19458         (TARGET_SWITCHES): Add 4a-single-only, 4a-single, 4a-nofpu and 4a.
19459         (SH_ASM_SPEC): Pass -dsp if -m4a-nofpu.
19460         (sh_fsca_sf2int, sh_fsca_df2int, sh_fsca_int2sf): Declare.
19461         (OVERRIDE_OPTIONS): Set cpu to CPU_SH4A when appropriate.
19462         (enum processor_type): Added PROCESSOR_SH4A.
19463         (PREDICATE_CODES): Add memory_movsrc_operand.
19464         * config/sh/sh.md: Removed unused variables.
19465         (attr cpu): Add sh4a.
19466         (attr type): Add movua, fsrra and fsca.
19467         (prefetch): New, for SH4.
19468         (ic_invalidate_line, ic_invalidate_line_sh4a): Use icbi.
19469         (toggle_sz): Set type to fp.
19470         (toggle_pr, rsqrtsf2, fsca, sinsf2, cossf2, sindf2, cosdf2): New.
19471         (movua, extv, extzv): New.
19472         * config/sh/t-sh: Add multilibs for 4a, 4a-nofpu, 4a-single
19473         and 4a-single-only.
19474
19475 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
19476
19477         * tree-optimize.c (init_tree_optimization_passes): Schedule
19478         pass_may_alias right after the program is renamed into SSA.
19479         * tree-pass.h (PROP_alias): Define.
19480         * tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
19481         * tree-sra.c (pass_sra): Likewise.
19482         * tree-ssa-ccp.c (pass_ccp): Likewise.
19483         * tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
19484         * tree-ssa-dce.c (pass_dce): Likewise.
19485         * tree-ssa-dom.c (pass_dominator): Likewise.
19486         * tree-ssa-dse.c (pass_dse): Likewise.
19487         * tree-ssa-forwprop.c (pass_forwprop): Likewise.
19488         * tree-ssa-loop-ch.c (pass_ch): Likewise.
19489         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
19490         * tree-ssa-pre.c (pass_pre): Likewise.
19491         * tree-tailcall.c (pass_tail_recursion): Likewise.
19492         * tree-ssa.c (pass_redundant_phi): Likewise.
19493         * tree-ssa-alias.c (aliases_computed_p): Remove.
19494         Update all users.
19495         (init_alias_info): Do not mark all type tags for renaming
19496         unconditionally.
19497         Clear may_aliases from every symbol.
19498         (setup_pointers_and_addressables): If a pointer has not been
19499         dereferenced and it had a type tag, clear it and mark the old
19500         tag for renaming.
19501
19502 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
19503
19504         PR tree-optimization/16705
19505         * tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
19506         .GLOBAL_VAR.
19507
19508 2004-07-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19509
19510         * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error
19511         check.
19512
19513         * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,
19514         don't make another one.
19515
19516         PR optimization/15077
19517         * function.h (struct function): Add field saved_static_chain_decl.
19518         Fix comment for static_chain_decl.
19519         * tree-inline.c (save_body): Add new arg and handle static_chain_decl.
19520         * tree-inline.h (save_body): Add new arg.
19521         * tree-optimize.c (tree_rest_of_compilation): Handle saving
19522         static_chain_decl.
19523
19524 2004-07-27  Richard Henderson  <rth@redhat.com>
19525
19526         * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
19527         (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
19528         is_gimple_addressable.
19529         * tree-gimple.c (is_gimple_addressable): Rename from
19530         is_gimple_addr_expr_arg; accept INDIRECT_REF.
19531         (is_gimple_lvalue): Don't test INDIRECT_REF directly.
19532         * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
19533         rename to is_gimple_addressable.
19534
19535 2004-07-28  Alan Modra  <amodra@bigpond.net.au>
19536
19537         * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
19538
19539 2004-07-27  Richard Henderson  <rth@redhat.com>
19540
19541         * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
19542         before rounding.
19543
19544 2004-07-27  Zack Weinberg  <zack@codesourcery.com>
19545
19546         * libgcc2.c: Change all conditionals testing
19547         LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80.
19548         * libgcc2.h: Likewise.
19549         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set
19550         TYPE_PRECISION of float80_type to 80.
19551         * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION
19552         of fpreg_type and float80_type to 80.
19553         * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h
19554         * config/m68k/netbsd-elf.h:
19555         Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE
19556         to evaluate to 80 whenever they would formerly have evaluated to 96.
19557         * config/i386/sco5.h: Remove unnecessary redefinition of
19558         LONG_DOUBLE_TYPE_SIZE.
19559         * doc/rtl.texi: Clarify uses of XFmode and TFmode.
19560         * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for
19561         XFmode, with a bitsize of 80.  Update commentary.
19562         * config/ia64/ia64-modes.def: Likewise.
19563         * config/m68k/m68k-modes.def: Likewise.
19564
19565 2004-07-27  Steven Bosscher  <stevenb@suse.de>
19566
19567         * cfgexpand.c (tree_expand_cfg): Fix comment.
19568
19569         * calls.c (expand_call): Ignore rtx_equal_function_value_matters.
19570         * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets):
19571         Remove.
19572         (prepare_function_start): Don't set rtx_equal_function_value_matters.
19573         * integrate.c (copy_rtx_and_substitute): Don't test for it.
19574         * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets.
19575         Don't set rtx_equal_function_value_matters.  Don't register RTL hooks
19576         here again.  Update leading comment.
19577         * rtl.c (rtx_equal_function_value_matters): Remove.
19578         (rtx_equal_p): Don't test for it.
19579         * simplify-rtx.c (simplify_binary_operation, simplify_subreg):
19580         Likewise.
19581
19582         * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND.
19583         * rtl.c (note_insn_name): Likewise.
19584         * emit-rtl.c (remove_unnecessary_notes): Don't handle it.
19585         * final.c (final_scan_insn): Likewise.
19586
19587         * except.c (finish_eh_generation): Don't call cfg_cleanup from here.
19588         * passes.c (rest_of_handle_eh): Do it here.
19589
19590         * stmt.c (struct nesting): Remove struct nesting block member.
19591         (struct stmt_status): Remove x_block_start_count field.
19592         (current_block_start_count): Remove.
19593
19594 2004-07-27  Brian Booth  <bbooth@redhat.com>
19595
19596         * tree-optimize.c (register_one_dump_file): Update condition that uses
19597         static_pass_number.
19598         (dup_pass_1): Replace with...
19599         (next_pass_1): This.
19600         (NEXT_PASS): Call next_pass_1.
19601         (DUP_PASS): Remove.
19602         (init_tree_optimization_passes): Remove uses of DUP_PASS.
19603         (execute_one_pass): Update condition that uses
19604         static_pass_number.
19605         * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed
19606         integer.
19607
19608 2004-07-27  Nick Clifton  <nickc@redhat.com>
19609
19610         * config/m32r/m32r.c: Include integrate.h in order to get the
19611         prototype for get_hard_reg_initial_val().
19612
19613         * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r"
19614         and tidy up indentation.
19615         (final_presence_set): Use absence_set instead, so that if there is
19616         nothing in the "o" pipe the "s" pipe can be scheduled.
19617
19618 2004-07-27  Diego Novillo  <dnovillo@redhat.com>
19619
19620         * tree-ssa-alias.c (create_name_tags): Ignore pointers that
19621         don't have PT_VARS nor PT_MALLOC set.
19622         Clear name tag from pointers that have not been dereferenced.
19623         (set_pt_anything, set_pt_malloc): Forward declare.
19624         * tree-ssa-copy.c (may_propagate_copy): Compare alias sets,
19625         not type compatibility when determining if a pointer can be
19626         copy propagated.
19627
19628 2004-07-27  Richard Sandiford  <rsandifo@redhat.com>
19629
19630         * expr.h (canonicalize_condition, get_condition): Add an int argument.
19631         * gcse.c (fis_get_condition): Reimplement using get_condition, leaving
19632         it to check whether the condition is still valid at the jump insn.
19633         * ifcvt.c (noce_get_condition): Likewise.
19634         (noce_get_alt_condition): Update call to canonicalize_condition.
19635         * loop-iv.c (simplify_using_initial_values): Update call to
19636         get_condition.  Remove FIXME.
19637         (check_simple_exit): Update call to get_condition.
19638         * loop-unswitch.c (may_unswitch_on): Likewise.
19639         * loop.c (check_dbra_loop): Likewise.
19640         (canonicalize_condition, get_condition): Add an argument to say whether
19641         the condition must still be valid at INSN.
19642         (get_condition_for_loop): Update call to get_condition.  Require that
19643         the condition be valid at INSN.
19644         * predict.c (estimate_probability): Update call to get_condition.
19645         Remove unused earliest parameter.
19646         (expected_value_to_br_prob): Update call to canonicalize_condition.
19647
19648 2004-07-26  Eric Christopher  <echristo@redhat.com>
19649
19650         * tree-dfa.c (add_referenced_var): Register initializers of global
19651         variables.
19652
19653 2004-07-26  Paolo Bonzini  <bonzini@gnu.org>
19654
19655         * config/i386/i386.c (function_arg): Always treat 8-
19656         and 16-byte wide vectors the same, even if MMX/SSE
19657         are disabled.
19658         (contains_128bit_aligned_vector_p): Add comment.
19659
19660 2004-07-26  J"orn Rennecke <joern.rennecke@superh.com>
19661
19662         * ra.h (enum node_type): Rename to:
19663         (enum ra_node_type).
19664         * ra-colorize.c: Likewise.
19665
19666 2004-07-26  Richard Sandiford  <rsandifo@redhat.com>
19667
19668         * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
19669         after simplifying the jump.
19670
19671 2004-06-26  Richard Henderson  <rth@redhat.com>
19672
19673         * calls.c (combine_pending_stack_adjustment_and_call): Make
19674         preferred_unit_stack_boundary argument unsigned.  Make
19675         unadjusted_alignment unsigned.
19676         (expand_call): Make preferred_stack_boundary and
19677         preferred_unit_stack_boundary variables unsigned.
19678         * function.c (assign_stack_local_1): Make alignment unsigned.
19679         * function.h (struct function): Make stack_alignment_needed,
19680         preferred_stack_boundary unsigned.
19681         * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
19682         (ix86_compute_frame_layout): Make stack_alignment_needed,
19683         preferred_alignment variables unsigned.
19684         * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.
19685
19686 2004-07-26  Tom Tromey  <tromey@redhat.com>
19687
19688         * tree.h: Fix typo in comment.
19689
19690 2004-07-26  Daniel Jacobowitz  <dan@debian.org>
19691
19692         PR bootstrap/12804
19693         * ggc-zone.c (struct alloc_chunk): Remove attribute packed.
19694         (MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
19695         (ggc_free): Remove incorrect freeing.
19696         (sweep_pages): Advance PP for large pages.  Fix indentation.
19697
19698 2004-07-26  Richard Sandiford  <rsandifo@redhat.com>
19699
19700         PR rtl-optimization/16643
19701         * cfglayout.h (cfg_layout_initialize): Add a flags parameter.
19702         * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
19703         * basic-block.h (reorder_basic_blocks): Add a flags parameter.
19704         * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
19705         (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
19706         * function.c (thread_prologue_and_epilogue_insns): Likewise.
19707         * rtl.h (tracer): Add a flags parameter.
19708         * tracer.c (tracer): Pass it to cfg_layout_initialise.
19709         * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
19710         (rest_of_handle_reorder_blocks): Update calls to tracer and
19711         reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
19712         (rest_of_handle_tracer): Pass 0 to tracer.
19713         (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
19714
19715 2004-07-25  David Edelsohn  <edelsohn@gnu.org>
19716
19717         PR target/16239
19718         * config/rs6000/rs6000.md (movdi_internal64): Further disparage
19719         f->f.
19720
19721 2004-07-24  Nathan Sidwell  <nathan@codesourcery.com>
19722
19723         * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
19724         (BINFO_BASE_ACCESS): Adjust.
19725         (BINFO_BASE_ACCESS_APPEND): New.
19726         (struct tree_binfo): Make base_accesses a VEC(tree) pointer.
19727         * dbxout.c (dbxout_type): Adjust binfo access accessing.
19728         * dwarf2out.c (gen_member_die): Likewise.
19729         * tree-dump.c (deque_and_dump): Likewise.
19730
19731 2004-07-26  Falk Hueffner  <falk@debian.org>
19732
19733         * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
19734         costs.
19735
19736 2004-07-25  Roger Sayle  <roger@eyesopen.com>
19737
19738         * config/i386/i386.c (output_fp_compare): Use ffreep to pop top
19739         value off of the stack if TARGET_USE_FFREEP.
19740
19741 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
19742
19743         * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
19744         * gengtype-yacc.y: Likewise.  Replace free() with XDELETE ().
19745         * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
19746         check on invocation of XRESIZEVEC ().
19747
19748 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
19749
19750         * c-common.c (disable_builtin_function): Rename variable n to
19751         new_disabled_builtin.
19752         * c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
19753         Rename local variable old to old_decl.
19754         * gensupport.c (shift_output_template): Rename parameter old to src.
19755         * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
19756         old_rtx and newx to new_rtx.
19757
19758 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
19759
19760         * Makefile.in (C_PRAGMA_H): New variable to track dependencies
19761         of c-pragma.h.
19762         * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
19763         enum cpp_ttype.
19764         * c-lex.c: Likewise.
19765
19766 2004-07-25  Roger Sayle  <roger@eyesopen.com>
19767
19768         * fold-const.c (constant_boolean_node): Make extern.
19769         (make_range): Wrap long lines.
19770         (fold_cond_expr_with_comparison): Remove unnecessary call to
19771         pedantic_non_lvalue.  Add missing calls to fold_convert.
19772         (fold_truthop): Add missing calls to fold_convert.
19773         (fold): Likewise.
19774         * tree.h (constant_boolean_node): Add prototype here.
19775         * builtins.c (expand_builtin_strncmp): Add missing calls to
19776         fold_convert.
19777         * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
19778         Call fold_convert and constant_boolean_node to correct types.
19779         * tree-ssa-forwprop.c (substitute_single_use_vars): Add
19780         missing call to fold_convert to correct types.
19781
19782 2004-07-26  Niall Douglas  <s_fsfeurope2@nedprod.com>
19783             Brian Ryner  <bryner@brianryner.com>
19784
19785         PR c++/9283
19786         PR c++/15000
19787         * c-common.c (c_common_attribute_table): Allow
19788         handle_visibility_attribute to be called for types.
19789         (handle_visibility_attribute) When given a type, set the visibility
19790         bits on the TYPE_NAME.  When given a decl, don't set no_add_attrs
19791         so that we can check later whether the attribute was present. Added
19792         warning if attribute applied to non class type.
19793         * c-decl.c (diagnose_mismatched_decls): Updated rules for merging
19794         decls and checking that they are consistent.
19795         * common.opt: Added -fvisibility.
19796         * c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
19797         * c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
19798         * flags.h, tree.h: Added assorted support defines for overall patch
19799         * opts.c: Added parsing support for -fvisibility.
19800         * tree.c (build_decl): Set visibility for all decls to be whatever
19801         is in force at that time.
19802         * varasm.c (default_binds_local_p_1): Reworked logic determining
19803         when to make a symbol locally bound.
19804         * doc/invoke.texi: Added documentation for -fvisibility and
19805         -fvisibility-inlines-hidden.
19806
19807 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
19808
19809         * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
19810         * c-common.c: Add missing casts from void * to other types.
19811         * c-decl.c: Likewise.
19812         * c-format.c: Likewise.
19813         * c-lex.c: Likewise.
19814         * c-pragma.c: Likewise.
19815         * c-typeck.c: Likewise.
19816         * defaults.h: Likewise.
19817         * genconstants.c: Likewise.
19818         * gengtype-lex.l: Likewise.
19819         * genmodes.c: Likewise.
19820         * read-rtl.c: Likewise.
19821         * rtl.c: Likewise.
19822
19823 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
19824
19825         * bitmap.c: Use type-safe memory allocation macros from libiberty.
19826         * c-common.c: Likewise.
19827         * c-decl.c: Likewise.
19828         * c-lang.c: Likewise.
19829         * c-lex.c: Likewise.
19830         * c-opts.c: Likewise.
19831         * c-parse.in: Likewise.
19832         * c-typeck.c: Likewise.
19833         * genconditions.c: Likewise.
19834         * gengtype-lex.l: Likewise.
19835         * gengtype-yacc.y: Likewise.
19836         * gengtype.c: Likewise.
19837         * genmodes.c: Likewise.
19838         * gensupport.c: Likewise.
19839         * read-rtl.c: Likewise.
19840         * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
19841         htab_find_slot().
19842
19843 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
19844
19845         * c-decl.c (groktypename, groktypename_in_param_context): Rename
19846         variable typename to type_name.
19847         * c-lex.c (interpret_float): Likewise.
19848
19849 2004-07-25  Roger Sayle  <roger@eyesopen.com>
19850
19851         * convert.c (convert_to_real, convert_to_integer,
19852         convert_to_complex): Replace calls to build with calls to buildN.
19853         * coverage.c (tree_coverage_counter_ref): Likewise.
19854         * dojump.c (do_jump): Likewise.
19855         * dwarf2out.c (loc_descriptor_from_tree): Likewise.
19856         * emit-rtl.c (component_ref_for_mem_expr,
19857         set_mem_attributes_minus_bitpos): Likewise.
19858         * explow.c (update_nonlocal_goto_save_area): Likewise.
19859         * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
19860         expand_mult_add): Likewise.
19861         * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
19862         store_constructor, get_inner_reference, expand_expr_real_1,
19863         try_casesi, try_tablejump): Likewise.
19864         * function.c (expand_function_start): Likewise.
19865         * stmt.c (emit_case_bit_tests, expand_end_case_type,
19866         node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
19867         * stor-layout.c (place_union_field, layout_type): Likewise.
19868         * tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
19869         * varasm.c (copy_constant): Likewise.
19870
19871 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
19872
19873         * c-common.c: Rename all identifiers named `new'.
19874         * c-decl.c: Likewise.
19875         * gensupport.c: Likewise.
19876         * simplify-rtx.c: Likewise.
19877         * c-common.c (disable_builtin_function): Replace a call to xmalloc()
19878         with XNEW().
19879         * gensupport.c (alter_output_for_insn): Replace two calls to xmalloc()
19880         with XNEWVEC().
19881
19882 2004-07-25  Joseph S. Myers  <jsm@polyomino.org.uk>
19883
19884         PR c/15360
19885         * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
19886         declarations until after calling pushdecl.
19887         (grokdeclarator): Set DECL_EXTERNAL for variables based on use of
19888         "extern" and not on whether the declaration is initialized.
19889
19890 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
19891
19892         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
19893         (sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
19894         * config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
19895         "cpplib.h", "c-pragma.h", "c-common.h".
19896         (solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
19897         (solaris_register_pragmas): New functions.
19898         * config/sol2-protos.h: New file.
19899         * config/sol2.c: New file.
19900         * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
19901         (REGISTER_TARGET_PRAGMAS): New macros.
19902         (solaris_pending_aligns, solaris_pending_inits)
19903         (solaris_pending_finis): New variables.
19904         * config/t-sol2 (sol2-c.o): Update dependencies.
19905         (sol2.o): New rule.
19906         * config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
19907         SUBTARGET_INSERT_ATTRIBUTES.
19908         (ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
19909         * config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
19910         (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
19911         * config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
19912         * config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
19913         * config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
19914         (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
19915         * config/sparc/sparc.c (sparc_attribute_table): New.
19916         (TARGET_INSERT_ATTRIBUTES): Define in terms of
19917         SUBTARGET_INSERT_ATTRIBUTES.
19918         (TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
19919         is defined.
19920         * doc/extend.texi (Solaris Pragmas): New section.
19921
19922 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
19923
19924         * c-common.c: Rename all identifiers named `class' to `cl'.
19925         * c-common.h: Likewise.
19926         * c-parse.in: Likewise.
19927         * c-typeck.c: Likewise.
19928         * genmodes.c: Likewise.
19929         * real.c: Likewise.
19930         * real.h: Likewise.
19931         * recog.c: Likewise.
19932         * recog.h: Likewise.
19933         * regrename.c: Likewise.
19934         * tree.h: Likewise.
19935         * c-common.c (builtin_function_2): Change type of 5th parameter from
19936         int to enum built_in_function. Change type of 8th parameter from int
19937         to bool.
19938         * c-decl (builtin_function): Replace call to ggc_alloc_cleared ()
19939         with GGC_CNEW().
19940         * c-typeck.c (convert_arguments): Change type of formal_prec from
19941         int to unsigned int.
19942         * genmodes.c (blank_mode): Make a few negative constants unsigned.
19943         (complete_all_modes, calc_wider_mode, emit_insn_modes_h,
19944         emit_mode_name, emit_mode_class, emit_mode_precision, emit_mode_size,
19945         emit_mode_nunits, emit_mode_wider, emit_mode_mask, emit_mode_inner,
19946         emit_mode_base_align, emit_class_narrowest_mode): Pass an integer
19947         iterator to for_all_modes () instead of an enum because enums can't
19948         be incremented in C++.
19949
19950
19951 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
19952
19953         * regmove.c (optimize_reg_copy_1): Don't try to replace call-used
19954         hard registers.
19955
19956 2004-07-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19957
19958         * tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
19959         Handle ARRAY_RANGE_REF like ARRAY_REF.
19960
19961 2004-07-25  Joseph S. Myers  <jsm@polyomino.org.uk>
19962
19963         * c-typeck.c (digest_init): Don't allow arrays of signed or
19964         unsigned variants of wchar_t to be initialized by wide string
19965         constants.  Do allow arrays of enumerated types compatible with
19966         wchar_t to be initialized by wide string constants.  Refine tests
19967         distinguishing wide and narrow strings and arrays.  Give specific
19968         error for arrays of other integer types initialized by string
19969         constants.
19970         (output_init_element, process_init_element): Check for
19971         INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
19972         initializing with string constants.
19973
19974 2004-07-25  Richard Henderson  <rth@redhat.com>
19975
19976         * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
19977         on the RESULT_DECL.
19978         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
19979         * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
19980         DECL_IGNORED_P to new decl.
19981
19982 2004-07-24  Zack Weinberg  <zack@codesourcery.com>
19983
19984         * config/ia64/ia64.c (general_xfmode_operand)
19985         (destination_xfmode_operand): Delete.
19986         * config/ia64/ia64.h (PREDICATE_CODES): Remove them.
19987         * config/ia64/ia64.md (*movxf_internal): Use general_operand
19988         and destination_operand.
19989
19990 2004-07-24  Alexander Kabaev  <kan@freebsd.org>
19991
19992         * config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
19993         (EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.
19994
19995 2004-07-24  Alexander Kabaev  <kan@freebsd.org>
19996             Zack Weinberg  <zack@codesourcery.com
19997
19998         PR 16684
19999         * c-decl.c (diagnose_mismatched_decls): Don't issue a
20000         redundant-declaration warning the first time a builtin is
20001         declared explicitly.
20002
20003 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20004
20005         * tree.h (staticp): Change return type to bool.
20006
20007 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20008
20009         * c-common.c (c_staticp): Last episode of the staticp saga.
20010
20011 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20012
20013         * c-common.h (c_staticp): Change return type from int to bool.
20014         * tree.c (staticp): Likewise.
20015         * langhooks.h (staticp): Likewise.
20016
20017 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20018
20019         * langhooks-def.h (lhd_staticp): Change return type from int to
20020         bool in prototype to match definition.
20021
20022 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20023
20024         * system.h (bool, true, false): Don't redefine as preprocessor macros
20025         in C++.
20026
20027 2004-07-24  Roger Sayle  <roger@eyesopen.com>
20028
20029         * expmed.c (init_expmed): A signed modulus by a power of two is
20030         considered cheap if its less than or equal to four instructions.
20031
20032 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20033
20034         * ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
20035         GGC_CNEWVAR): New macros.
20036
20037 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20038
20039         * c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
20040         lists.
20041         * c-decl.c: Likewise.
20042         * c-format.c: Likewise.
20043         * c-lex.c: Likewise.
20044         * c-opts.c: Likewise.
20045         * c-pragma.c: Likewise.
20046         * c-typeck.c: Likewise.
20047         * gencheck.c: Likewise.
20048         * genconditions.c: Likewise.
20049         * genconfig.c: Likewise.
20050         * genflags.c: Likewise.
20051         * gengtype.c: Likewise.
20052         * gensupport.c: Likewise.
20053         * ggc-none.c: Likewise.
20054         * langhooks.c: Likewise.
20055         * statistics.h: Likewise.
20056         * stub-objc.c: Likewise.
20057         * java/decl.c: Likewise.
20058
20059 2004-07-24  Roman Zippel  <zippel@linux-m68k.org>
20060
20061         * config/m68k/m68k.c (output_scc_di): Fix coding style.
20062         (symbolic_operand): Fix prototype.
20063         * config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
20064         * config/m68k/m68k.md: Add constants for registers a0 and sp and
20065         use them, change from the "{...}" syntax to the simpler {...}
20066         syntax.
20067         (*cfv4_extendqisi2): Fix destination predicate.
20068         * config/m68k/m68k-protos.h: Remove various declarations also
20069         generated via PREDICATE_CODES.
20070
20071 2004-07-23  Mike Stump  <mrs@apple.com>
20072
20073         * c-typeck.c (convert_for_assignment): Tightened up pointer
20074         converstions that differ in signedness.
20075
20076 2004-07-23  Zack Weinberg  <zack@codesourcery.com>
20077
20078         * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
20079
20080 2004-07-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20081
20082         * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
20083         * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
20084
20085         * gimplify.c (gimplify_compound_lval): Check for no handled
20086         operations, rather than checking for explicit list of nodes.
20087         (is_gimple_addr_expr_arg_or_indirect): New function.
20088         (gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
20089         redundant setting of TREE_INVARIANT.
20090         (gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
20091         * tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.
20092
20093 2004-07-23  Diego Novillo  <dnovillo@redhat.com>
20094
20095         PR tree-optimization/16688
20096         PR tree-optimization/16689
20097         * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
20098         unnecessary initialization of 'tag'.
20099         (get_tmt_for): Check that the new type tag has the same alias
20100         set as the pointed-to type.
20101         (group_aliases): Only regular variables need to be removed
20102         from the alias set of a name tag.
20103         * tree-ssa-copy.c (may_propagate_copy): Do not allow copy
20104         propagation if the two types are not compatible.
20105         (merge_alias_info): Rename from replace_ssa_names_ann.
20106         Add more checking.
20107         (replace_exp_1): If both arguments are SSA_NAMEs, check that
20108         the propagation can be done.
20109         Only call merge_alias_info on pointers.
20110         (propagate_value): Likewise.
20111         * tree-ssa-copyrename.c: Include langhooks.h.
20112         (copy_rename_partition_coalesce): Call replace_ssa_name_symbol
20113         to do the merging.
20114         Do not coalesce variables with incompatible types.
20115         (rename_ssa_copies): Call replace_ssa_name_symbol.
20116         * tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
20117         the same type as the underlying _DECL.
20118         * tree-ssanames.c (replace_ssa_name_symbol): New function.
20119         * tree.h (replace_ssa_name_symbol): Declare.
20120
20121 2004-07-23  Richard Henderson  <rth@redhat.com>
20122
20123         PR c++/16277
20124         * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
20125         unshare it properly.
20126         (gimplify_modify_expr_rhs): Push assignment from a conditional into
20127         the conditional for all non-register types.
20128
20129 2004-07-23  Richard Henderson  <rth@redhat.com>
20130
20131         * expr.c (expand_expr_real_1): Don't handle non-local variables.
20132         * expr.h (fix_lexical_addr): Remove.
20133         * function.c (NEED_SEPARATE_AP): Remove.
20134         (fix_lexical_addr): Remove.
20135         * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
20136         not null decl_function_context.
20137         (create_alias_vars): Likewise.
20138         * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
20139         (simple_goto_p): Likewise.
20140         * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
20141         * tree-ssa-ccp.c (get_default_value): Likewise.
20142         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
20143         * tree.c (needs_to_live_in_memory): Likewise.
20144         * tree-flow-inline.h (may_be_aliased): Move...
20145         * tree-ssa-alias.c (may_be_aliased): ... here.  Enhance check for
20146         when TREE_STATIC variables may be addressable.
20147
20148 2004-07-24  Jakub Jelinek  <jakub@redhat.com>
20149
20150         * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
20151
20152 2004-07-23  Zack Weinberg  <zack@codesourcery.com>
20153
20154         * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
20155         bitmap contents if GENERATOR_FILE is defined.
20156         * Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
20157         ($(BUILD_PREFIX_1)bitmap.o): Delete rule.
20158
20159 2004-07-23  Joseph S. Myers  <jsm@polyomino.org.uk>
20160
20161         * c-decl.c (start_function): Form composite type of function types
20162         rather than copying type from previous prototype declaration.
20163
20164 2004-07-23  Janis Johnson  <janis187@us.ibm.com>
20165
20166         * config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
20167         the const qualifier for the second argument in the C++ functions.
20168
20169         * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
20170         specific pointer types.
20171
20172         * config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
20173         vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
20174         for vector bool and/or vector pixel, add C++ and C missing support.
20175         (vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
20176         vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
20177         vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
20178         vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
20179         vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
20180         missing C++ and C support for vector bool and/or vector pixel.
20181         (vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
20182         vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
20183         vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
20184         vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
20185         vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
20186         C++ and C types used for vector bool and/or vector pixel.
20187         (vec_st, vec_stl): Add C++ support for vector pixel.
20188         (vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
20189         (vec_all_ne): Add C++ support for vector pixel.
20190
20191         * config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
20192         (vec_vmulesb): Add missing C++ function.
20193         (vec_perm): Fix type of third argument in C++ function.
20194         (vec_vsum4shs): Fix C++ function name.
20195         (vec_any_ge): Remove C++ functions for unsupported arg combinations.
20196         (vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
20197         argument passed to the error handler in C macro.
20198         (vec_nmsub): Remove extra parens around argument names in C macro.
20199         (vec_packpx): Add missing parens in C macro.
20200
20201 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
20202
20203         * machmode.def: Remove vector modes.
20204         * config/alpha/alpha-modes.def: Add supported vector modes.
20205         * config/arm/arm-modes.def: Likewise.
20206         * config/frv/frv-modes.def: Likewise.
20207         * config/i386/i386-modes.def: Likewise.
20208         * config/rs6000/rs6000-modes.def: Likewise.
20209         * config/sh/sh-modes.def: Likewise.
20210
20211 2004-07-23  Matthias Klose  <doko@debian.org>
20212
20213         * intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
20214         * configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
20215         * config.h: Regenerate.
20216         * configure: Likewise.
20217
20218 2004-07-22  Mark Mitchell  <mark@codesourcery.com>
20219
20220         * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
20221         generated SYMBOL_REFs for labels.
20222         * config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
20223         Change prototype.
20224         (machopic_stub_name): Remove.
20225         (machopic_indirection_name): New function.
20226         (machopic_mcount_stub_name): Likewise.
20227         (machopic_classify_name): Remove.
20228         (machopic_function_base_sym): New function.
20229         (machpoic_classify_symbol): Likewise.
20230         (machopic_classify_ident): Remove.
20231         (machopic_define_ident): Likewise.
20232         (machopic_define_name): Likewise.
20233         (machopic_name_defined_p): Likewise.
20234         (machopic_ident_defined_p): Likewise.
20235         (darwin_strip_name_encoding): Likewise.
20236         (machopic_define_symbol): New function.
20237         * config/darwin.c (hashtab.h): Include.
20238         (machopic_defined_list): Remove.
20239         (machopic_classify_ident): Likewise.
20240         (machopic_classify_name): Likewise.
20241         (machopic_ident_defined_p): Likewise.
20242         (machopic_define_ident): Likewise.
20243         (machopic_define_name): Likewise.
20244         (machopic_symbol_defined_p): New function.
20245         (machopic_classify_symbol): Likewise.
20246         (machopic_data_defined_p): Use machopic_classify_symbol.
20247         (machopic_define_symbol): New function.
20248         (machopic_function_base_sym): New function.
20249         (machopic_non_lazy_pointers): Remove.
20250         (machopic_non_lazy_ptr_name): Likewise.
20251         (machopic_stubs): Likewise.
20252         (machopic_stub_name): Likewise.
20253         (NON_LAZY_POINTER_SUFFIX): New macro.
20254         (STUB_SUFFIX): Likewise.
20255         (machopic_indirection): New structure.
20256         (machopic_indirections): New variable.
20257         (machopic_indirection_hash): New function.
20258         (machopic_indirection_eq): Likewise.
20259         (machopic_indirection_name): Likewise.
20260         (machopic_mcount_stub_name): New function.
20261         (machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
20262         hash table.
20263         (machopic_indirect_data_reference): Rework to use new functions.
20264         (machopic_indirect_call_target): Likewise.
20265         (machopic_legitimize_pic_address): Likewise.
20266         (machopic_output_indirection): New function.
20267         (machopic_finish): Use it.
20268         (machopic_operand_p): Rework to use new functions.
20269         (darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
20270         (darwin_strip_name_encoding): Remove.
20271         (update_non_lazy_ptrs): Remove.
20272         (update_stubs): Likewise.
20273         (darwin_non_lazy_pcrel): Use new functions.
20274         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
20275         (ASM_OUTPUT_LABELREF): Likewise.
20276         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
20277         (MACHO_SYMBOL_FLAG_VARIABLE): New macro.
20278         (MACHO_SYMBOL_FLAG_DEFINED): Likewise.
20279         (TARGET_STRIP_NAME_ENCODING): Do not use
20280         darwin_strip_name_encoding.
20281         (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
20282         darwin_strip_name_encoding.
20283         * config/i386/darwin.h (FUNCTION_PROFILER): Use
20284         machopic_mcount_stub_name.
20285         * config/i386/i386.c (x86_output_mi_thunk): Use
20286         machopic_indirection_name, not machopic_stub_name.
20287         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
20288         machopic_function_base_sym.
20289         (print_operand): Use machopic_classify_symbol.
20290         (rs6000_emit_prologue): Use machopic_function_base_sym.
20291         (output_profile_hook): Do not use machopic_stub_name.
20292         (macho_branch_isalnds): Do not use darwin_strip_name_encoding.
20293
20294 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
20295
20296         PR c/7284
20297         * fold-const.c (extract_muldiv_1): Do not treat signed left shift
20298         as multiplication.
20299
20300 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
20301
20302         * doc/implement-c.texi: New file.
20303         * doc/extend.texi (C Implementation): Move to there.
20304         * doc/gcc.texi: Include implement-c.texi.
20305         * Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.
20306
20307 2004-07-22  Jason Merrill  <jason@redhat.com>
20308
20309         * integrate.c (copy_decl_for_inlining): Remove invisible reference
20310         handling.
20311         * tree-inline.c (setup_one_parameter): Likewise.
20312
20313 2004-07-22  Brian Booth  <bbooth@redhat.com>
20314
20315         * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
20316         (substitute_and_fold): Propigate into VUSE operands when possible.
20317         (visit_phi_node): Handle UNKNOWN_VAL latticevalue.
20318         (cp_lattice_meet): Handle merging of latticevalues when
20319         UNKNOWN_VAL is present.
20320         (visit_stmt): Visit assignments with V_MUST_DEFs.
20321         (visit_assignment): Gather ccp information for V_MUST_DEF operands.
20322         (ccp_fold): Deal with RHS' that are constant and virtual.
20323         (evaluate_stmt): Handle UNKNOWN_VAL likely values.
20324         (dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
20325         (initialize): Mark statements with V_MUST_DEFs as VARYING only if the
20326         V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
20327         computing immediate uses.
20328         (set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
20329         transition.
20330         (replace_vuse_in): New function.
20331         (likely_value): Add check of vuse operands.
20332         (get_default_value): Set the default value of virtually defined
20333         variables to UKNOWN_VAL instead of VARYING.
20334
20335 2004-07-22  Richard Henderson  <rth@redhat.com>
20336
20337         * expr.c (emit_push_insn): Don't use set_mem_attributes.
20338
20339 2004-07-22  Richard Henderson  <rth@redhat.com>
20340
20341         * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
20342         variables due to conditional compilation.
20343
20344 2004-07-22  Diego Novillo  <dnovillo@redhat.com>
20345
20346         * tree-into-ssa.c (set_livein_block): Fix typo in comment.
20347         (rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
20348         Release SSA names that have been re-renamed.
20349         * tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
20350         variable.
20351         * tree-ssa-alias.c (init_alias_info): If aliases have been
20352         computed before, clear existing alias information.
20353         (create_name_tags): Do no fixup PT_ANYTHING pointers.
20354         If the new name tag for a pointer is different than the one it
20355         had before, mark the old tag for renaming.
20356         (replace_may_alias): New function.
20357         (group_aliases): Call it.
20358         (setup_pointers_and_addressables): Always call get_tmt_for.
20359         (maybe_create_global_var): Don't create .GLOBAL_VAR more than
20360         once.
20361         (set_pt_anything): New local function.
20362         (set_pt_malloc): New local function.
20363         (merge_pointed_to_info): Don't merge pointed-to variables from
20364         the original pointer if the destination is pointing to an
20365         unknown location.
20366         (add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
20367         (add_pointed_to_var): Do not add a variable to the points-to
20368         set if the pointer is already pointing to anywhere.
20369         (collect_points_to_info_r): If the defining statement is a PHI
20370         node, only merge pointed-to information if the argument has
20371         already been visited.
20372         (get_tmt_for): Only create a new tag if the pointer didn't
20373         have one already.
20374         (dump_alias_info): Emit more information.
20375         (dump_points_to_info_for): Likewise.
20376         * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
20377         try to get the annotation of an SSA_NAME.
20378         * tree-ssa-operands.c (add_stmt_operand): Only check for empty
20379         alias sets when checking is enabled.
20380         * tree-ssa-pre.c (need_eh_cleanup): New local variable.
20381         (eliminate): Mark basic blocks that will need
20382         EH information cleaned up.
20383         (init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
20384         predecessor.
20385         Initialize need_eh_cleanup.
20386         (fini_pre): Call tree_purge_all_dead_eh_edges and
20387         cleanup_tree_cfg if needed.
20388         Free need_eh_cleanup.
20389         * tree-ssa.c (verify_ssa_name): New function.
20390         (verify_def): Call it.
20391         Re-arrange to avoid printing too many error messages.
20392         (verify_use): Likewise.
20393         (verify_phi_args): Likewise.
20394         (verify_flow_insensitive_alias_info): New function.
20395         (verify_flow_sensitive_alias_info): New function.
20396         (verify_alias_info): New function.
20397         (verify_ssa): Call verify_alias_info.
20398         Clear TREE_VISITED on all the SSA_NAMEs before scanning the
20399         program.
20400         Re-arrange to avoid printing too many error messages.
20401         * tree-ssanames.c (make_ssa_name): Clear
20402         SSA_NAME_IN_FREE_LIST.
20403         (release_ssa_name): Never release a default definition.
20404         (release_defs): New function.
20405         * tree.h: Declare it.
20406         * tree-ssa-dce.c (remove_dead_stmt): Call it.
20407
20408 2004-07-22  Diego Novillo  <dnovillo@redhat.com>
20409
20410         * tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
20411         If true, do a depth-first search.  Do a breadht-first search,
20412         otherwise.
20413         (walk_use_def_chains): Add new argument IS_DFS.
20414         Update all users.
20415         * tree-flow.h (walk_use_def_chains): Update prototype.
20416
20417 2004-07-22  Hans-Peter Nilsson  <hp@axis.com>
20418
20419         * config/cris/cris.md: Tweak formatting.
20420         (asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
20421         (mover2side, moverside, movemside, movei, op3, andu): Replace
20422         live define_peephole:s with define_peephole2 near-equivalents.
20423         Delete the rest.
20424         ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap".  Match all
20425         word-size modes.
20426         ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
20427         Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
20428         "*mov_sidesi_mem" respectively.
20429
20430 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
20431
20432         * tree-cfg.c (gimplify_val): Move from tree-complex.c.
20433         (gimplify_build1): Move from tree-complex.c do_unop.
20434         (gimplify_build2): Move from tree-complex.c do_binop.
20435         (gimplify_build3): New.
20436         * tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
20437         Adjust throughout to call the functions above.
20438         * tree-flow.h: Declare the functions above.
20439         * tree-nested.c (gimplify_val): Rename to...
20440         (tsi_gimplify_val): ... this.
20441
20442         * Makefile.in (tree_complex.o): Update dependencies.
20443         (stor-layout.o): Depend on regs.h.
20444         * c-common.c (handle_vector_size_attribute): Update for
20445         vector types without corresponding vector modes.
20446         * expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
20447         a corresponding vector mode is not available.
20448         * print-tree.c (print_node): Print nunits for vector types
20449         * regclass.c (have_regs_of_mode): New.
20450         (init_reg_sets_1): Initialize it and use it instead
20451         of allocatable_regs_of_mode.
20452         * regs.h (have_regs_of_mode): Declare it.
20453         * stor-layout.c (layout_type): Pick a mode for vector types.
20454         * tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
20455         build_replicated_const, do_unop, do_binop, do_plus_minus,
20456         do_negate, expand_vector_piecewise, expand_vector_parallel,
20457         expand_vector_addition, expand_vector_operations_1,
20458         expand_vector_operations, tree_lower_operations,
20459         pass_lower_vector_ssa, pass_pre_expand): New.
20460         (expand_complex_operations, pass_lower_complex): Remove.
20461         * tree-optimize.c (init_tree_optimization_passes): Adjust
20462         pass ordering for changes in tree-complex.c.
20463         * tree-pass.h: Declare new passes.
20464         * tree.c (finish_vector_type): Remove.
20465         (make_vector_type): New.
20466         (build_vector_type_for_mode, build_vector_type): Rewritten.
20467         * tree.def (VECTOR_TYPE): Document where the number of
20468         subparts is stored.
20469         * tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
20470         (make_vector): Remove declaration.
20471
20472 2004-07-21  Richard Henderson  <rth@redhat.com>
20473
20474         * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
20475         TREE_THIS_VOLATILE, may_aliases, or optimization level.
20476         (remove_useless_vars): Dump debugging info.
20477         (expand_used_vars): Move ...
20478         * cfgexpand.c (expand_used_vars): ... here.  Make static.
20479         * tree-flow-inline.h (set_is_used): New.
20480         (set_default_def): Use get_var_ann.
20481         * tree-flow.h: Update decls.
20482         * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
20483         (create_ssa_var_map): Use it.
20484         * tree-ssa.c (set_is_used): Remove.
20485
20486 2004-07-22  Ben Elliston  <bje@au.ibm.com>
20487
20488         * gdbinit.in: Set a breakpoint on internal_error.
20489
20490 2004-07-21  Richard Henderson  <rth@redhat.com>
20491
20492         * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
20493         to create a new basic block.
20494
20495 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
20496
20497         PR c/15052
20498         * c-decl.c (grokdeclarator): Only pedwarn for qualified void
20499         return type on function definitions.  Move other warnings for
20500         qualified return type to -Wreturn-type.  Do not condition any such
20501         warnings on -pedantic.  Update comments.
20502         (start_function): Only copy function type from previous prototype
20503         declaration if return types are compatible.
20504         * c-typeck.c (function_types_compatible_p): Don't condition
20505         warning for incompatibility of volatile qualifiers on the return
20506         type on -pedantic.  Update comment.
20507         * doc/invoke.texi (-Wreturn-type, -Wextra): Update.
20508
20509 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
20510
20511         * c-typeck.c (set_init_index): Require designator to be of integer
20512         type.
20513
20514 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
20515
20516         PR c/11250
20517         * c-parse.in (init): Change to exprtype.
20518         (primary): Set original_code for STRING to STRING_CST.
20519         Call maybe_warn_string_init for compound literals.
20520         (initdcl, notype_initdcl): Call maybe_warn_string_init.
20521         (initval): Update.
20522         * c-tree.h (maybe_warn_string_init): New.
20523         (pop_init_level, process_init_element): Use struct c_expr.
20524         (struct c_expr): Update comment.
20525         * c-typeck.c (maybe_warn_string_init): New function.
20526         (digest_init): Call it.  Additional parameter strict_string.  All
20527         callers changed.
20528         (output_init_element): Likewise.
20529         (struct constructor_stack): Use struct c_expr for
20530         replacement_value.
20531         (really_start_incremental_init, push_init_level): Update.
20532         (pop_init_level): Update.  Return struct c_expr.
20533         (process_init_level): Update.  Take struct c_expr argument.
20534
20535 2004-07-21  David S. Miller  <davem@nuts.davemloft.net>
20536
20537         * config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
20538         commit.
20539
20540 2004-07-21  Eric Christopher  <echristo@redhat.com>
20541
20542         * builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
20543         removal.
20544         * c-decl.c (pop_scope): Ditto.
20545         * calls.c (expand_call): Remove call to current_nesting_level,
20546         update comment accordingly. Remove calls to expand_start_target_temps
20547         and expand_end_target_temps.
20548         * cfgexpand.c (construct_init_block): Remove call to
20549         expand_start_bindings_and_block.
20550         (construct_exit_block): Remove call to expand_end_bindings.
20551         * expr.c (safe_from_p): Remove BIND_EXPR handling.
20552         (expand_expr_real_1): Ditto. Fix formatting.
20553         (expand_vars): Delete.
20554         * stmt.c (POPSTACK): Remove block_stack.
20555         (stmt_status): Remove x_block_stack.
20556         (block_stack): Delete.
20557         (expand_start_bindings_and_block): Ditto.
20558         (expand_start_target_temps): Ditto.
20559         (expand_end_target_temps): Ditto.
20560         (current_nesting_level): Ditto.
20561         (warn_about_unused_variables): Ditto.
20562         (expand_end_bindings): Ditto.
20563         * tree.h: Remove declarations for above.
20564
20565 2004-07-21  Steven Bosscher  <stevenb@suse.de>
20566
20567         * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
20568         * rtl.c (note_insn_name): Likewise.
20569         * print-rtl.c (print_rtx): Don't print it.
20570         * cfgrtl.h (can_delete_note_p): Don't handle it.
20571         (rtl_delete_block): Likewise.
20572         * passes.c (rest_of_handle_guess_branch_prob): Remove.
20573         (rest_of_compilation): Don't call it.
20574         * predict.c (process_note_predictions, process_note_prediction,
20575         note_prediction_to_br_prob): Remove.
20576         * basic-block.c (note_prediction_to_br_prob): Remove prototype.
20577         * stmt.c (return_prediction): Remove.
20578         (expand_value_return): Don't call it.  Don't add prediction
20579         notes for return statements.
20580
20581 2004-07-21  Josef Zlomek  <zlomekj@suse.cz>
20582
20583         * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
20584         once.
20585
20586 2004-07-21  Paolo Bonzini  <bonzini@gnu.org>
20587
20588         * c-common.c (vector_types_convertible_p): Use vector types'
20589         TYPE_SIZE and TREE_TYPE instead of their mode.
20590         * convert.c (convert_to_integer): Likewise.
20591         (convert_to_vector): Likewise.
20592         * fold-const.c (fold_convert): Likewise.
20593         * varasm.c (output_constant): Likewise.
20594         * expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
20595         Allow a VECTOR_TYPE initializer to be made of several vectors.
20596         For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
20597         of cleared and need_to_clear, and use fold_convert.
20598         * c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
20599         integer vectors.
20600
20601 2004-07-20  Richard Henderson  <rth@redhat.com>
20602
20603         * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
20604         (expand_gimple_basic_block): out from here.  Renamed from expand_block.
20605
20606 2004-07-20  David S. Miller  <davem@nuts.davemloft.net>
20607
20608         * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
20609         enormous cost if not TARGET_HARD_MUL.
20610
20611 2004-07-20  Andrew Pinski  <apinski@apple.com>
20612
20613         PR target/16557
20614         * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
20615         (ASM_SPEC): here.
20616
20617 2004-07-21  Paul brook  <paul@codesourcery.com>
20618
20619         * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
20620
20621 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20622
20623         * fold-const.c (operand_equal_p): Temporarily support NULL args.
20624         (operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
20625         (operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.
20626
20627 2004-07-20  Zack Weinberg  <zack@codesourcery.com>
20628
20629         * rtl.h (plus_constant): Delete.
20630         (plus_constant_wide): Rename to plus_constant.
20631         (plus_constant_for_output_wide): Delete vestigial prototype.
20632         (GEN_INT): Remove unnecessary cast.
20633         * tree.h (build_int_2, size_int_type): Delete.
20634         (build_int_2_wide): Rename to build_int_2.
20635         (size_int_wide): Rename to size_int_kind.
20636         (size_int_type_wide): Rename to size_int_type.
20637         (size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
20638         Remove unnecessary cast.
20639         * tree.c (build_int_2_wide): Rename build_int_2; update comment.
20640         * explow.c (plus_constant_wide): Rename plus_constant; update comment.
20641         * fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
20642         (size_int_type_wide): Rename size_int_type.
20643         (int_const_binop): Use size_int_type.
20644         * c-lex.c (interpret_integer): Use build_int_2.
20645         * final.c (split_double): Remove unnecessary casts.
20646         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.
20647
20648 2004-07-20  Richard Henderson  <rth@redhat.com>
20649
20650         * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
20651         (gimplify_compound_lval): Use is_gimple_tmp_reg.
20652         * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
20653         (is_gimple_tmp_reg): New.
20654         * tree-gimple.h (is_gimple_tmp_reg): Declare.
20655
20656 2004-07-20  Richard Henderson  <rth@redhat.com>
20657
20658         * tree-pretty-print.c (dump_generic_node): Dump
20659         CALL_EXPR_HAS_RETURN_SLOT_ADDR.
20660
20661 2004-07-20  Frank Ch. Eigler  <fche@redhat.com>
20662
20663         * tree-mudflap.c (mf_set_options_fndecl): New tree.
20664         (mudflap_init): Set it.
20665         (mudflap_register_call): Remove __mf_init call.
20666         (mudflap_finish_file): Emit call to __mf_init here.  Emit a call to
20667         to pass "-ignore-reads" option to libmudflap if needed.
20668
20669 2004-07-20  John David Anglin  <dava.anglin@nrc-cnrc.gc.ca>
20670
20671         PR c++/14607
20672         * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
20673         (MAKE_DECL_ONE_ONLY): Undefine.
20674         * pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
20675         readonly_data, one_only_data_section, forget_section): New prototypes.
20676         * pa.c (pa_init_machine_status, som_text_section_asm_op): New
20677         functions.
20678         (pa_select_section): Add one-only (COMDAT) support.
20679         * pa.h (struct machine_function): Define.
20680         * som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
20681         (TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
20682         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
20683         ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
20684         ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
20685         (EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
20686         (EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
20687         (READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
20688         ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
20689         for EXTRA_SECTION_FUNCTIONS.
20690         * doc/install.texi: Update binutils requirements.
20691
20692 2004-07-20  Nathan Sidwell  <nathan@codesourcery.com>
20693
20694         * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
20695         VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
20696         VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
20697         size_t.
20698         (struct VEC): Use unsigned for num and alloc.
20699         * vec.c (struct vec_prefix): Likewise.
20700         (vec_o_reserve): Adjust.
20701
20702         * dbxout.c (dbxout_type): Fix printf format.
20703
20704         * tree.h (binfo_member): Remove.
20705         * tree.c (binfo_member): Remove.
20706
20707 2004-07-20  Nathan Sidwell  <nathan@codesourcery.com>
20708
20709         * tree.h: Include vec.h
20710         (DEF_VEC_P(tree)): New type.
20711         (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): Adjust.
20712         (BINFO_BASE_APPEND, BINFO_BASE_ITERATE): New.
20713         (BINFO_LANG_SLOT): Remove.
20714         (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): New.
20715         (struct tree_binfo): Turn base_binfos into a trailing
20716         VEC(tree). Add vtt_subvtt, vtt_vptr, primary fields.
20717         (binfo_lang_slots): Remove.
20718         * tree.c (binfo_lang_slots): Remove.
20719         (make_tree_binfo_stat): Take a base binfo count, not a
20720         lang slot count.  Adjust.
20721         * Makefile.in (TREE_H): Add vec.h
20722         * alias.c (record_component_aliases): Adjust BINFO access.
20723         * dbxout.c (dbxout_type): Likewise.
20724         * dwarf2out.c (gen_member_die): Likewise.
20725         * sdbout.c (sdbout_one_type): Likewise.
20726         * tree-dump.c (deque_and_dump): Likewise.
20727         * config/i386/i386.c (classify_argument,
20728         contains_128bit_aligned_vector_p): Likewise.
20729         * config/sh/symbian.c (symbian_export_vtable_and_rtti_p): Likewise.
20730         * doc/c-tree.texi (Classes): Update BINFO documentation.
20731
20732 2004-07-20  Steven Bosscher  <stevenb@suse.de>
20733
20734         * c-common.h (check_case_value): Remove prototype.
20735         (c_add_case_label): Adjust prototype.
20736         * c-common.c (check_case_value): Make static.
20737         (check_case_bounds): New function.
20738         (c_add_case_label): Use it.  Take new argument orig_type.
20739         * c-typeck.c (struct c_switch): New orig_type field.
20740         (c_start_case): Set it.
20741         (do_case): Pass it to c_add_case_label.
20742         * expr.c (expand_expr_real_1): Don't warn for out-of-bounds
20743         cases from here.  Add the labels in reverse order.
20744         * stmt.c (struct case_node): Adjust comment.  Remove balance field.
20745         (add_case_node): Return nothing, don't check for duplicate cases.
20746         Insert new case nodes in a list, not in an AVL tree.
20747         (expand_end_case_type): Don't turn a case tree into a case list.
20748         (case_tree2list): Remove.
20749         * tree.h (add_case_node): Adjust prototype.
20750
20751 2004-07-19  Paolo Bonzini  <bonzini@gnu.org>
20752
20753         * genattr.c (struct range, struct function_unit,
20754         write_units, extend_range, init_range): Remove them.
20755         (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
20756         Output "#define INSN_SCHEDULING" here.
20757         * genattrtab.c (struct range, struct function_unit_op,
20758         struct function_unit, struct dimension, enum operator,
20759         operate_exp, expand_units, simplify_knowing,
20760         encode_units_mask, simplify_by_exploding,
20761         find_and_mark_used_attributes, unmark_used_attributes,
20762         add_values_to_cover, increment_current_value,
20763         test_for_current_value, simplify_with_current_value,
20764         simplify_with_current_value_aux, gen_unit,
20765         write_unit_name, write_function_unit_info,
20766         write_complex_function, write_toplevel_expr,
20767         find_single_value, extend_range): Remove.
20768         (write_attr_get): Do not handle common_av->value
20769         being an FFS.
20770         (struct attr_desc): Remove func_units_p and blockage_p.
20771         (write_attr_valueq): Do not handle them.
20772         (find_attr): Do not clear them.
20773         (make_internal_attr): Do not initialize them.
20774         (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
20775         * sched-vis.c (init_target_units, insn_print_units,
20776         init_block_visualization, print_block_visualization,
20777         visualize_scheduled_insns, visualize_no_unit,
20778         visualize_stall_cycles, visualize_alloc,
20779         visualize_free, target_units, get_visual_tbl_length,
20780         MAX_VISUAL_LINES, INSN_LEN, n_visual_lines,
20781         visual_tbl_line_length, visual_tbl, n_vis_no_unit,
20782         MAX_VISUAL_NO_UNIT, vis_no_unit): Remove.
20783         * haifa-sched.c (blockage_range, clear_units,
20784         schedule_unit, actual_hazard, potential_hazard,
20785         insn_unit, unit_last_insn, unit_tick,
20786         actual_hazard_this_instance, potential_hazard,
20787         schedule_unit, max_insn_queue_index_value): Remove.
20788         (MAX_INSN_QUEUE_INDEX): Removed, renamed throughout to
20789         max_insn_queue_index.
20790         * rtl.def (DEFINE_FUNCTION_UNIT): Remove.
20791         * doc/md.texi (Processor pipeline description): Remove
20792         references to old pipeline descriptions.
20793         (Automaton pipeline description): Merge with the above.
20794         (Old pipeline description, Comparison of the two descriptions):
20795         Remove.
20796
20797         * bt-load.c (migrate_btr_def): Remove references to
20798         use_pipeline_interface.
20799         * haifa-sched.c (insn_cost, schedule_insn,
20800         schedule_block, advance_one_cycle, sched_init,
20801         queue_to_ready, sched_finish): Likewise.
20802         * modulo-sched.c (sms_schedule, advance_one_cycle,
20803         ps_has_conflicts): Likewise.
20804         * sched-rgn.c (init_ready): Likewise.
20805         (debug_dependencies): Likewise, and remove an "if (1)".
20806         * target.h (use_dfa_pipeline_interface): Remove.
20807         * config/alpha/alpha.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20808         * config/arc/arc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20809         * config/arm/arm.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20810         * config/c4x/c4x.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20811         * config/frv/frv.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20812         * config/i386/i386.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20813         * config/ia64/ia64.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20814         * config/iq2000/iq2000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20815         * config/m32r/m32r.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20816         * config/mcore/mcore.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20817         * config/mips/mips.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20818         * config/pa/pa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20819         * config/rs6000/rs6000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20820         * config/s390/s390.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20821         * config/sh/sh.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20822         * config/sparc/sparc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20823         * config/v850/v850.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20824         * config/xtensa/xtensa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20825         * doc/tm.texi (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20826
20827 2004-07-19  Roger Sayle  <roger@eyesopen.com>
20828
20829         * rtlanal.c (reg_set_p): Add check for regs_invalidated_by_call.
20830
20831 2004-07-19  Jeff Law  <law@redhat.com>
20832
20833         * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): New.
20834         (get_eq_expr_value): Use it.  Simplify slightly.
20835
20836 2004-07-19  Maciej W. Rozycki  <macro@linux-mips.org>
20837
20838         * config/mips/mips.md (mulsidi3_32bit_r4000): Fix the clobber list.
20839         (umulsidi3_32bit_r4000): Likewise.
20840
20841 2004-07-19  Nathan Sidwell  <nathan@codesourcery.com>
20842
20843         * vec.h: Propagate location information properly.
20844         (VEC_T_iterate): Add result pointer parameter.
20845         (VEC_T_space): New.
20846         (VEC_T_reserve): Use it.
20847
20848 2004-07-19  Daniel Jacobowitz  <dan@debian.org>
20849
20850         * Makefile.in (c-format.o): Depend on c-format.h.
20851         * c-format.h: New file.
20852         (struct format_char_info): Add CHAIN member.
20853         * c-format.c: Move some types and constants to c-format.h.
20854         (format_type_error): Set to -1.
20855         (struct function_format_info): Use an int for format_type.
20856         (decode_format_type): Return an int.  Return format_type_error
20857         on error.
20858         (print_char_table, asm_fprintf_char_table, gcc_diag_char_table)
20859         (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table)
20860         (scan_char_table, time_char_table, monetary_char_table): Initialize
20861         CHAIN to NULL.
20862         (n_format_types): New variable.
20863         (check_format_info_main): Handle CHAIN in format_char_info.
20864         (handle_format_attribute): Handle TARGET_FORMAT_TYPES and
20865         TARGET_N_FORMAT_TYPES.
20866         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
20867         (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c.
20868         * config/sol2-c.c: New file.
20869         * config/t-sol2: New file.
20870         * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define.
20871         * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine
20872         TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES.
20873
20874         * doc/extend.texi (Target Format Checks): New section.
20875         (Function Attributes): Mention it.
20876         * doc/invoke.texi: Mention target format checks.
20877         * doc/sourcebuild.texi: Mention target format checks.
20878         * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and
20879         TARGET_FORMAT_TYPES.
20880
20881 2004-07-19  Andreas Krebbel  <krebbel1@de.ibm.com>
20882
20883         * config/s390/s390-protos.h (s390_return_address_offset): Prototype
20884         added.
20885         * config/s390/s390.c (regclass_map initializer): Register 35 added to
20886         ADDR_REGS.
20887         (load_multiple_operation, store_multiple_operation): Removed
20888         pointless sanity check.
20889         (s390_decompose_address): Added check for return_address_pointer_rtx.
20890         (s390_return_addr_rtx): Use return_address_pointer_rtx for count == 0.
20891         (s390_return_address_offset): New function.
20892         * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Increased to 36.
20893         (FRAME_REGNO_P): Added check for register 35.
20894         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
20895         REG_ALLOC_ORDER): Appended entry for register 35.
20896         (REG_CLASS_CONTENTS): Adjusted class masks for register 35.
20897         (EH_RETURN_HANDLER_RTX): Use return_address_pointer_rtx.
20898         (RETURN_ADDRESS_POINTER_REGNUM): New macro.
20899         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Return address pointer
20900         is eliminable using stack pointer or hard frame pointer.
20901         (REGISTER_NAMES): Added name for register 35.
20902         * config/s390/s390.md ("load_multiple", "store_multiple"): Removed
20903         pointless sanity check.
20904
20905 2004-07-19  Roger Sayle  <roger@eyesopen.com>
20906
20907         * fold-const.c (tree_expr_nonzero_p): Add function prototype.
20908         (fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
20909         fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
20910         (fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
20911         of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
20912         (fold_relational_const): Tidy up handling of floating point
20913         comparisons by calling real_compare.  Remove tree_expr_nonzero_p
20914         transformation; fold_relational_const assumes constant operands.
20915
20916 2004-07-19  Gabriel Dos Reis  <gdr@integrable-solution.net>
20917
20918         * doc/sourcebuild.texi: Add libcpp, now that CPP has its own
20919         directory.
20920
20921 2004-07-19  Joseph S. Myers  <jsm@polyomino.org.uk>
20922
20923         * c-tree.h (struct c_expr): Define.
20924         (C_SET_EXP_ORIGINAL_CODE): Remove.
20925         (parser_build_binary_op, build_compound_expr): Update prototypes.
20926         * c-parse.in (%union): Add exprtype.
20927         (FUNC_NAME): Mark as ttype.
20928         (expr, expr_no_commas, cast_expr, unary_expr, primary): Change to
20929         exprtype.
20930         (expr): Update.  Define directly in terms of expr_no_commas
20931         instead of using nonnull_exprlist.
20932         (nonnull_exprlist, unary_expr, cast_expr, expr_no_commas, primary,
20933         offsetof_member_designator, typespec_nonreserved_nonattr, init,
20934         initval, designator, component_declarator,
20935         component_notype_declarator, enumerator, array_declarator,
20936         condition, exexpr, switch_statement, stmt_nocomp, stmt,
20937         nonnull_asm_operands, ivar_declarator, receiver): Update.  Don't
20938         set C_EXP_ORIGINAL_CODE.  Use TREE_NO_WARNING for assignments
20939         where appropriate.
20940         * c-common.h (C_EXP_ORIGINAL_CODE): Remove.
20941         * c-common.c (c_common_truthvalue_conversion): Don't check
20942         C_EXP_ORIGINAL_CODE.
20943         * c-typeck.c (parser_build_binary_op): Use c_expr structures.
20944         Don't use C_EXP_ORIGINAL_CODE.
20945         (default_conversion, default_function_array_conversion): Don't use
20946         C_EXP_ORIGINAL_CODE.  Preserve TREE_NO_WARNING.
20947         (internal_build_compound_expr): Merge into build_compound_expr.
20948         (build_compound_expr): Take two operands instead of a TREE_LIST.
20949         * objc/objc-act.c (get_super_receiver): Update calls to
20950         build_compound_expr.
20951
20952 2004-07-18  Paolo Bonzini  <bonzini@gnu.org>
20953
20954         * config/sh/sh.c (sh_use_dfa_interface): Remove.
20955         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to
20956         hook_int_void_1.
20957         * config/sh/sh.md: Extract pipeline descriptions
20958         into separate files.
20959         * config/sh/sh1.md: New file, extracted from sh.md.
20960         * config/sh/sh4.md: New file, extracted from sh.md.
20961         * config/sh/shmedia.md: New file, extracted from sh.md
20962         and rewritten using new-style pipeline description.
20963
20964 2004-07-18  Zack Weinberg  <zack@codesourcery.com>
20965
20966         * config/pa/pa.md: Delete the two remaining define_peephole
20967         patterns.
20968
20969 2004-07-18  Steven Bosscher  <stevenb@suse.de>
20970             Joseph S. Myers  <jsm@polyomino.org.uk>
20971
20972         * c-common.c (c_common_truthvalue_conversion): Don't warn if
20973         TREE_NO_WARNING is set.
20974
20975 2004-07-18  Roger Sayle  <roger@eyesopen.com>
20976
20977         * builtins.c (simplify_builtin_memcmp, simplify_builtin_strcmp,
20978         simplify_builtin_strncmp): Delete.
20979         (fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
20980         Change argument to accept an arglist instead of an "exp".  Assume
20981         that the return type is always integer_type_node.  Copy missing
20982         transformations from their now obsolete simplify_builtin_*
20983         equivalents.
20984         (fold_builtin_1): Pass arglist instead of exp to fold_builtin_memcmp,
20985         fold_builtin_strcmp and fold_builtin_strncmp.
20986         (simplify_builtin): Call fold_builtin_memcmp, fold_builtin_strcmp
20987         and fold_builtin_strncmp instead of simplify_builtin_memcmp,
20988         simplify_builtin_strcmp and simplify_builtin_strncmp respectively.
20989
20990 2004-07-18  Daniel Jacobowitz  <dan@debian.org>
20991
20992         * Makefile.in (tree-alias-common.o): Update dependencies.
20993
20994 2004-07-17  Sebastian Pop  <pop@cri.ensmp.fr>
20995
20996         * cfgloop.c (flow_loop_nested_p): Fix comment.
20997
20998 2004-07-17  Jason Merrill  <jason@redhat.com>
20999
21000         PR c++/16115
21001         * stor-layout.c (relayout_decl): New fn.
21002         * tree.h: Declare it.
21003         (DECL_BY_REFERENCE): New macro.
21004
21005 2004-07-17  Eric Botcazou  <ebotcazou@act-europe.fr>
21006
21007         * libgcc2.c (__enable_execute_stack): New symbol.
21008         * libgcc-std.ver (GCC_3.4.2): New version.  Inherit from GCC_3.4
21009         and declare __enable_execute_stack.
21010         * mklibgcc.in (lib2funcs): Add _enable_execute_stack.
21011         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): ANSIfy.
21012         * config/sol2.h (TRANSFER_FROM_TRAMPOLINE): Rename into
21013         ENABLE_EXECUTE_STACK.
21014         * config/alpha/alpha.c (alpha_initialize_trampoline): Conditionalize
21015         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
21016         * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Rename into
21017         ENABLE_EXECUTE_STACK.
21018         * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
21019         * config/i386/i386.c (x86_initialize_trampoline): Conditionalize
21020         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
21021         * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Rename into
21022         ENABLE_EXECUTE_STACK.
21023         * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
21024         * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
21025         * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
21026         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
21027         * config/sparc/sparc.c (sparc_initialize_trampoline): Conditionalize
21028         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
21029         (sparc64_initialize_trampoline): Likewise.
21030         * doc/tm.texi (trampolines): Add ENABLE_EXECUTE_STACK macro.
21031
21032 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
21033
21034         * langhooks.h (builtin_function): New langhook.
21035         * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New.
21036         (LANG_HOOKS_INITIALIZER): Update.
21037         * tree.h (builtin_function): Remove.
21038         * doc/tm.texi: Update.
21039         * c-tree.h (builtin_function): Declare.
21040         * c-common.c, config/alpha/alpha.c, config/arm/arm.c,
21041         config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c,
21042         config/ia64/ia64.c, config/iq2000/iq2000.c,
21043         config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
21044         config/stormy16/stormy16.c: All callers of builtin_function
21045         changed.
21046
21047 2004-07-17  Andrew Pinski  <pinskia@physics.uc.edu>
21048
21049         PR target/16556
21050         * config/i386/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
21051         Remove white space after the backslash.
21052
21053 2004-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
21054
21055         PR rtl-optimization/16294
21056         * resource.c (return_insn_p): New predicate.
21057         (mark_target_live_regs): Use it.  Special-case return insns.
21058         (init_resource_info): Use it.  Don't scan the epilogue past
21059         a return.
21060
21061 2004-07-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
21062
21063         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Do not
21064         destroy dominance information.
21065         * passes.c (rest_of_handle_loop2):  Free dominance information.
21066         * tree-cfg.c (cleanup_tree_cfg): Remove unreachable blocks before
21067         jump threading.
21068         (thread_jumps): Update dominance information and remove unreachable
21069         blocks.
21070         * tree-ssa-phiopt.c (replace_phi_with_stmt):  Update dominance
21071         information and remove the unreachable block.
21072
21073 2004-07-17  Graham Stott  <graham.stott@btinternet.com>
21074
21075         * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
21076
21077 2004-07-17  Toon Moene  <toon@moene.indiv.nluug.nl>
21078
21079         * doc/sourcebuild.texi: Remove libf2c entry.
21080
21081 2004-07-17  Paolo Bonzini  <bonzini@gnu.org>
21082
21083         * config/i386/i386.md (movv16qi_internal): Fix typo.
21084
21085 2004-07-17  Steven Bosscher  <stevenb@suse.de>
21086
21087         * final.c (final_scan_insn): Fix broken commit from previous
21088         patch.
21089
21090 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
21091
21092         * c-typeck.c (parser_build_binary_op): Condition warnings for
21093         X<=Y<=Z on -Wparentheses instead of -Wextra.
21094         * doc/invoke.texi: Update.  Document that most of -Wparentheses is
21095         supported for C only.
21096
21097 2004-07-17  Steven Bosscher  <stevenb@suse.de>
21098
21099         * cfgcleanup.c (try_simplify_condjump): Don't remove line
21100         notes to avoid unreachable code warnings.
21101         * toplev.c (backend_init): Don't emit line notes for
21102         unreachable code warnings.
21103
21104         * combine.c (distribute_notes): Don't distribute a
21105         REG_VTABLE_REF note.
21106         * final.c (final_scan_insn): Don't handle it.
21107         * rtl.c (reg_note_name): Remove it.
21108         * rtl.h (enum reg_node): Dito.
21109
21110         * emit-rtl.c (force_line_numbers, restore_line_number_status):
21111         Remove.
21112         * rtl.h (force_line_numbers, restore_line_number_status):
21113         Remove prototypes.
21114
21115         * stmt.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Move...
21116         * tree-eh.c (using_eh_for_cleanups_p): ...here.  Make static.
21117         (using_eh_for_cleanups): Also moved here.
21118
21119         * expr.c (expand_expr_real_1) <CASE_LABEL_EXPR>: Die if we see one.
21120         <SWITCH_EXPR>: Die if we have a non-NULL SWITCH_BODY.  Update calls
21121         to expand_start_case and add_case_node.
21122         * stmt.c (struct nesting): Cleanup unused fields condition_code,
21123         last_unconditional_cleanup, nominal_type, printname, and
21124         line_number_status.
21125         (struct fixup_goto): Remove.
21126         (struct stmt_status): Remove x_goto_fixup_chain field.
21127         (goto_fixup_chain): Remove.
21128         (strip_default_case_nodes, group_case_nodes, emit_jump_if_reachable,
21129         pushcase, pushcase_range): Remove.
21130         (expand_start_bindings_and_block): Don't set unused fields in
21131         the nesting stack.
21132         (expand_start_case, add_case_node): Cleanup unused formal arguments.
21133         (expand_end_case_type): Don't simplify the case-list.  Use emit_jump
21134         instead of emit_jump_if_reachable.
21135         (emit_case_nodes): Likewise.
21136         * tree-cfg.c (group_case_labels, cleanup_dead_labels): No longer
21137         static.
21138         (update_eh_label): Work around left-over exception handing regions.
21139         * tree-flow.h (group_case_labels, cleanup_dead_labels): Add protos.
21140         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): New function.
21141         (pass_cleanup_cfg_post_optimizing): New pass.
21142         (init_tree_optimization_passes): Run the new pass after all
21143         optimizations.
21144         * tree.h (pushcase, pushcase_range): Remove prototypes.
21145         (expand_start_case, add_case_node): Update prototypes.
21146
21147 2004-07-16  Krister Walfridsson  <cato@df.lth.se>
21148
21149         * tree-inline.c (estimate_num_insns_1): Correct increase of count.
21150
21151 2004-07-16  Richard Henderson  <rth@redhat.com>
21152
21153         * builtins.c (std_expand_builtin_va_arg): Remove.
21154         (expand_builtin_va_arg): Remove.
21155         * expr.h: Don't declare them.
21156         * gimplify.c (mark_decls_volatile_r): Remove.
21157         (copy_if_shared_r): Don't call it.
21158         * target-def.h: Don't test EXPAND_BUILTIN_VA_ARG.
21159         * expr.c (expand_expr_real_1): Don't handle VA_ARG_EXPR.
21160         * gimple-low.c (lower_stmt): Likewise.
21161         * tree-cfg.c (cfg_remove_useless_stmts_bb): Likewise.
21162         * tree-gimple.c (is_gimple_tmp_rhs, is_gimple_stmt): Likewise.
21163         * tree-ssa-operands.c (get_expr_operands): Likewise.
21164         * doc/tm.texi (TARGET_GIMPLIFY_VA_ARG_EXPR): Don't mention
21165         EXPAND_BUILTIN_VA_ARG.
21166         * system.h (EXPAND_BUILTIN_VA_ARG): Poison.
21167         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/i386/i386.h,
21168         config/ia64/ia64.h, config/rs6000/rs6000.h, config/s390/s390.h,
21169         config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Remove.
21170
21171 2004-07-16  Daniel Berlin  <dberlin@dberlin.org>
21172
21173         * tree-ssa-pre.c (insert_aux): Break out if we hit
21174         a critical edge.
21175
21176 2004-07-16  Richard Henderson  <rth@redhat.com>
21177
21178         * basic-block.h (remove_fake_exit_edges): Declare.
21179         * cfganal.c (remove_fake_predecessors): Rename from
21180         remove_fake_successors; iterate over predecessors.
21181         (remove_fake_exit_edges): New.
21182         * cfgcleanup.c (try_optimize_cfg): Use it.
21183         * gcse.c (one_pre_gcse_pass, store_motion): Likewise.
21184         * predict.c (estimate_probability): Likewise.
21185         (tree_estimate_probability, note_prediction_to_br_prob): Likewise.
21186         * tree-cfg.c (make_edges): Likewise.
21187         * tree-ssa-pre.c (fini_pre): Likewise.
21188         * profile.c (instrument_edges): Don't remove_fake_edges.
21189         (branch_prob): Do it earlier here.
21190
21191 2004-07-16  Richard Henderson  <rth@redhat.com>
21192
21193         * tree-ssa-operands.c (get_expr_operands): Fix 2004-07-15
21194         switchification wrt CONSTRUCTOR.  Document the reason.
21195
21196 2004-07-16  Frank Ch. Eigler  <fche@redhat.com>
21197
21198         * tree-mudflap.c (mf_file_function_line_tree): Correct typo
21199         that prevented descriptive __mf_check source location strings.
21200
21201 2004-07-16  Richard Henderson  <rth@redhat.com>
21202
21203         * tree-def (WITH_SIZE_EXPR): New.
21204         * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
21205         * expr.c (expand_expr_real_1): Likewise.
21206         * gimplify.c (maybe_with_size_expr): New.
21207         (gimplify_arg, gimplify_modify_expr): Use it.
21208         (gimplify_modify_expr_to_memcpy): Take size parameter.
21209         (gimplify_modify_expr_to_memset): Likewise.
21210         (gimplify_expr): Handle WITH_SIZE_EXPR.
21211         * tree-alias-common.c (find_func_aliases): Likewise.
21212         * tree-eh.c (tree_could_trap_p): Likewise.
21213         (tree_could_throw_p): Likewise.
21214         * tree-gimple.c (is_gimple_lvalue): Likewise.
21215         (get_call_expr_in): Likewise.
21216         * tree-inline.c (estimate_num_insns_1): Likewise.
21217         (expand_calls_inline): Likewise.
21218         * tree-nested.c (convert_call_expr): Likewise.
21219         * tree-pretty-print.c (dump_generic_node): Likewise.
21220         * tree-sra.c (sra_walk_expr): Likewise.
21221         * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
21222         * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
21223         * tree-ssa-operands.c (get_expr_operands): Likewise.
21224         * tree-tailcall.c (find_tail_calls): Likewise.
21225
21226         * calls.c (expand_call): Reset old_stack_allocated after
21227         calling emit_stack_restore.
21228
21229 2004-07-16  Richard Henderson  <rth@redhat.com>
21230
21231         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING,
21232         lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
21233         * langhooks.c (lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
21234         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
21235         copy_res_decl_for_inlining.
21236
21237         * tree-inline.c (declare_return_variable): New modify_dest argument.
21238         Use it as the return value, when possible or manditory.  Handle
21239         TREE_ADDRESSABLE types.
21240         (expand_call_inline): Extract MODIFY_EXPR lhs for call.  Simplify
21241         replacement of CALL_EXPR.
21242
21243 2004-07-16  Richard Henderson  <rth@redhat.com>
21244
21245         * tree-flow.h (struct var_ann_d): Remove has_hidden_use.
21246         * gimple-low.c (expand_var_p): Don't check it.
21247         * tree-ssa-alias.c (setup_pointers_and_addressables): Likewise.
21248         * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
21249         * tree-ssa-operands.c (add_stmt_operand): Likewise.
21250         * tree-dfa.c (find_hidden_use_vars, find_hidden_use_vars_r): Kill.
21251         (find_referenced_vars): Don't call them.
21252         * tree-flow-inline.h (has_hidden_use, set_has_hidden_use): Kill.
21253
21254 2004-07-16  Richard Henderson  <rth@redhat.com>
21255
21256         * function.c (pass_by_reference): True for all variable sized types.
21257
21258 2004-07-16  Sebastian Pop  <pop@cri.ensmp.fr>
21259
21260         * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
21261         * tree-pretty-print.c: Include tree-chrec.h.
21262         (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
21263         and POLYNOMIAL_CHREC nodes.
21264
21265 2004-07-16  Steve Ellcey  <sje@cup.hp.com>
21266
21267         * builtins.c (expand_builtin_stpcpy): Do not create temporary
21268         reg with VOIDmode.
21269
21270 2004-07-16  Segher Boessenkool  <segher@kernel.crashing.org>
21271
21272         * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
21273
21274 2004-07-16  Andreas Krebbel  <krebbel1@de.ibm.com>
21275
21276         * config/s390/s390.md: Changed every occurence of BASE_REGISTER
21277         to BASE_REGNUM.
21278         * config/s390/s390.c: Likewise.
21279         * config/s390/s390.h: Likewise.
21280
21281 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
21282
21283         * config/mips/mips.md (addsi3, adddi3): Remove special handling
21284         of $sp adds.  Remove REGNO checks from mips16 patterns.
21285
21286 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
21287
21288         * config/mips/mips.md: Delete outdated comment.
21289
21290 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
21291
21292         * config/mips/mips.c (get_float_compare_codes): Delete.
21293         (mips_emit_compare): New function, mostly extracted from
21294         get_float_compare_codes and gen_conditional_branch.
21295         (gen_conditional_branch, gen_conditional_move): Use it.
21296
21297 2004-07-16  Segher Boessenkool  <segher@kernel.crashing.org>
21298
21299         * genautomata.c (add_vect): Speedup by using integers as
21300         bit-vectors for walking through the comb_vect and finding
21301         a match.
21302
21303 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
21304
21305         * config/mips/mips.c (mips_zero_if_equal): Only use XORs if the second
21306         operand is an uns_arith_operand; use subtraction otherwise.
21307         * config/mips/mips.md (cmpsi, cmpdi): Allow any nonmemory_operand,
21308         not just arith_operands.
21309
21310 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
21311
21312         * config/mips/mips-protos.h (gen_int_relational): Delete.
21313         (mips_emit_scc): Declare.
21314         * config/mips/mips.c (internal_test): Delete.
21315         (sle_operand, sleu_operand): New functions.
21316         (map_test_to_internal_test, gen_int_relational): Delete.
21317         (mips_emit_binary, mips_relational_operand_ok_p)
21318         (mips_emit_int_relational, mips_zero_if_equal)
21319         (mips_emit_scc): New functions.
21320         (gen_conditional_branch): Rework to use mips_emit_int_relational.
21321         * config/mips/mips.h (PREDICATE_CODES): Add sle_operand and
21322         sleu_operand.
21323         * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
21324         (sltu, sleu): Use mips_emit_scc.
21325         (*sge_[sd]i, *sgeu_[sd]i): New patterns.
21326         (*sle_[sd]i, *sle_[sd]i_mips16): Use sle_operand.
21327         (*sleu_[sd]i, *sleu_[sd]i_mips16): Use sleu_operand.
21328
21329 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
21330
21331         * config/mips/mips.md (*sgt_di_mips16): Fix destination constraint.
21332
21333 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
21334
21335         * config/mips/mips.md (*seq_[sd]i): Renamed from seq_[sd]i_zero.
21336         (*sne_[sd]i): Likewise sne_[sd]i_zero.
21337         (*sgt_[sd]i): ...and sgt_[sd]i.
21338         (*slt_[sd]i): ...and slt_[sd]i.
21339         (*sgtu_[sd]i): ...and sgtu_[sd]i.
21340         (*sltu_[sd]i): ...and sltu_[sd]i.
21341         (*sleu_[sd]i): ...and sleu_[sd]i_const.
21342         Name previously unnamed mips16 patterns.  Formatting fixes.
21343
21344 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
21345
21346         * config/mips/mips.c (cmp_operands): Renamed from branch_cmp.
21347         (branch_type): Delete.
21348         (gen_conditional_branch, gen_conditional_move)
21349         (mips_gen_conditional_trap): Update after name change.  Get the
21350         comparison mode from cmp_operands[0].
21351         * config/mips/mips.h (cmp_type, branch_type): Delete.
21352         (cmp_operands): Renamed from branch_cmp.
21353         * config/mips/mips.md (cmpsi, cmpdi, cmpsf, cmpdf): Update after
21354         name change.  Don't set branch_type.
21355         (seq, sne, sgt, sge, slt, sle, sgtu, sgeu, sltu, sleu): Check the
21356         mode class of cmp_operands[0] rather than branch_type.  Update after
21357         name change.
21358
21359 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
21360
21361         * config/mips/mips.c (mips_rtx_costs): In mips16 code, set the cost
21362         of 0...255 to 0 when inside a SET.
21363
21364 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
21365
21366         * config/mips/mips.md: Remove mips16 define_peepholes.
21367
21368 2004-07-16  Daniel Berlin  <dberlin@dberlin.org>
21369
21370         * tree-ssa-pre.c (init_pre): Connect infinite loops to exit.
21371         (fini_pre): Remove fake edges.
21372
21373 2004-07-15  Richard Henderson  <rth@redhat.com>
21374
21375         * tree-ssa-operands.c (get_expr_operands): Use a switch.  Split out...
21376         (get_indirect_ref_operands, get_call_expr_operands): ... these.
21377
21378 2004-07-15  Nathan Sidwell  <nathan@codesourcery.com>
21379
21380         * vec.h (VEC_address): New function.
21381
21382 2004-07-14  Jason Merrill  <jason@redhat.com>
21383
21384         PR middle-end/15885
21385         * gimplify.c (gimplify_arg): New fn, split out from...
21386         (gimplify_call_expr): Here.  Special-case BUILT_IN_VA_START.
21387
21388 2004-07-15  Roman Zippel  <zippel@linux-m68k.org>
21389
21390         * config/m68k/m68k.c (output_move_qimode): Abort on an attempt to
21391         generate code which is generated by pushqi1 now
21392         * config/m68k/m68k.h (MOVE_BY_PIECES_P): Remove.
21393
21394 2004-07-15  Roman Zippel  <zippel@linux-m68k.org>
21395
21396         * combine.c (simplify_set): match the mode of the constant 0 with
21397         the tested operand to match the compare behaviour and the
21398         simplify_relational_operation() expectation.
21399
21400 2004-07-15  Aldy Hernandez  <aldyh@redhat.com>
21401
21402         * config/rs6000/rs6000.md ("bunordered"): Disable for e500.
21403         ("bordered"): Same.
21404
21405 2004-07-15  Aldy Hernandez  <aldyh@redhat.com>
21406
21407         * config/rs6000/rs6000.md ("*cceq_ior_compare"): Allow
21408         unconditionally.
21409         * config/rs6000/spe.md ("e500_cceq_ior_compare"): Remove.
21410
21411 2004-07-15  Richard Sandiford  <rsandifo@redhat.com>
21412
21413         * config/mips/mips.c (mips_adjust_insn_length): Fix handling of
21414         calls in mips16 code.
21415
21416 2004-07-15  Richard Sandiford  <rsandifo@redhat.com>
21417
21418         * config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
21419         the destination of the li as well as for the neg.
21420
21421 2004-07-15  Frank Ch. Eigler  <fche@redhat.com>
21422
21423         g++/15861
21424         * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument.
21425         * cgraph.h: Update declaration.
21426         * c-decl.c (build_cdtor): Update call with default priority.
21427         * coverage.c (create_coverage): Ditto.
21428         * tree-mudflap.c (mf_init_fndecl): New tree.
21429         (mudflap_init): Set it.
21430         (mudflap_register_call): Arrange to call __mf_init before the first
21431         __mf_register call.
21432         (mudflap_finish_file): Mark the mudflap static initializer as extra
21433         high priority, to beat all C++ static constructors.
21434
21435 2004-07-15  Jeff Law  <law@redhat.com>
21436
21437         * loop.c (check_insn_for_givs): Restore check for code labels that was
21438         accidentally deleted by a recent checkin.
21439
21440 2004-07-15  Nathan Sidwell  <nathan@codesourcery.com>
21441
21442         * vec.h (VEC_T_truncate): Allow truncation of an empty vector.
21443         (VEC_T_quick_insert, VEC_T_ordered_remove): Fix sizeof(T) thinko.
21444
21445 2004-07-14  Richard Henderson  <rth@redhat.com>
21446
21447         * print-tree.c (print_node): Fix casts last change.
21448
21449 2004-07-15  Paul Brook  <paul@codesourcery.com>
21450
21451         * dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO
21452         to TARGET_UNWIND_INFO.
21453         * except.c (output_function_exception_table): Ditto.
21454         * except.h: Ditto.
21455         * opts.c (decode_options): Ditto.
21456         * passes.c (rest_of_handle_final): Ditto.
21457         * final.c (final_start_function): Ditto.
21458         (final_scan_insn, final_scan_insn): Replace IA64_UNWIND_EMIT with
21459         target hook.
21460         * targhooks.h (default_unwind_emit): Declare.
21461         * targhooks.c (default_unwind_emit): New function.
21462         * target-def.h: Define and use TARGET_UNWIND_EMIT.
21463         * target.h (struct gcc_target): Add unwind_emit.
21464         * config/ia64/ia64.c (TARGET_UNWIND_EMIT): Define.
21465         * config/ia64/ia64.h: Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO.
21466         Remove IA64_UNWIND_EMIT.
21467         * doc/tm.texi: Document TARGET_UNWIND_EMIT and TARGET_UNWIND_INFO.
21468
21469 2004-07-14  Richard Henderson  <rth@redhat.com>
21470
21471         * print-tree.c (print_node): Handle SSA_NAME.
21472
21473 2004-07-14  James E Wilson  <wilson@specifixinc.com>
21474
21475         PR target/16325
21476         * config/mips/mips.h (STARTING_FRAME_OFFSET): When flag_profile_value
21477         and ! TARGET_64BIT, include REG_PARM_STACK_SPACE.
21478
21479 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
21480
21481         * expr.c (expand_assignment): Reenable bitfield += optimizations.
21482         Use alias set 0 for memory, do proper mode calculations and adjust
21483         address for memories.
21484
21485 2004-07-14  Per Bothner  <per@bothner.com>
21486
21487         * input.h:  If USE_MAPPED_LOCATION, define separate expanded_location
21488         structure with extra column field.
21489         * tree.c (expand_location):  Also fill in column field.
21490         * gengtype-lex.l:  Ignore expanded_location typedef, sinze gengtype
21491         gets confused by the two conditionally-compiled definitions.
21492
21493 2004-07-14  Eric Christopher  <echristo@redhat.com>
21494
21495         * calls.c (expand_call): Fix typo in comment.
21496
21497 2004-07-14  Steve Ellcey  <sje@cup.hp.com>
21498
21499         * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
21500         comparision of TFmode.
21501
21502 2004-07-14  Richard Henderson  <rth@redhat.com>
21503
21504         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
21505         (alpha_gimplify_va_arg): ... handling here.  Use pass_by_reference.
21506         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Use pass_by_reference.
21507         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
21508         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
21509         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
21510         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
21511         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
21512         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
21513
21514 2004-07-14  Mike Stump  <mrs@apple.com>
21515
21516         * config/darwin.h (WINT_TYPE): Define to be int to match
21517         system header files.
21518
21519 2004-07-14  Bob Wilson  <bob.wilson@acm.org>
21520
21521         * config/xtensa/xtensa.c (function_arg_advance): Check for args
21522         that must be passed in the stack.
21523         (xtensa_gimplify_va_arg_expr): Skip special-case padding for small
21524         arguments if the size is not a constant.
21525
21526 2004-07-14  Per Bothner  <per@bothner.com>
21527
21528         * c-typeck.c (emit_side_effect_warnings):  Use EXPR_HAS_LOCATION
21529         instead of EXPR_LOCUS in a boolean context, which is always true
21530         if --enable-mapped-location.
21531         * stmt.c (warn_if_unused_value):  Likewise.  Also use EXPR_LOCATION.
21532
21533 2004-07-14  Richard Henderson  <rth@redhat.com>
21534
21535         * dominance.c (struct dom_info): Add fake_exit_edge.
21536         (init_dom_info): Allocate it.
21537         (free_dom_info): Free it.
21538         (calc_dfs_tree): Set it.  Handle noreturn and infinite loops
21539         in two passes.
21540         (calc_idoms): Honor fake_exit_edge.
21541
21542 2004-07-13  Jason Merrill  <jason@redhat.com>
21543
21544         * tree-gimple.c (is_gimple_reg_rhs, is_gimple_mem_rhs): New fns.
21545         (rhs_test_for): New fn.
21546         (is_gimple_tmp_rhs): Rename from is_gimple_rhs.
21547         * tree-gimple.h: Declare them.
21548         * gimplify.c (gimplify_modify_expr): Use the new fns.
21549
21550 2004-07-14  Richard Henderson  <rth@redhat.com>
21551
21552         * config/arm/arm-protos.h (arm_va_arg): Remove.
21553         * config/arm/arm.c (arm_va_arg): Remove.
21554         (arm_init_expanders): Fix alignment of arg_pointer_rtx.
21555         * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG): Remove.
21556
21557 2004-07-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21558
21559         * pa.c (fix_range): New function to mark a range(s) of registers as
21560         fixed registers.
21561         (override_options): Call fix_range if the -mfixed-range option string
21562         is not empty.
21563         * pa.h (TARGET_OPTIONS): Add -mfixed-range option.
21564         * doc/invoke.texi (-mfixed-range): Document new option.
21565
21566 2004-07-14  David Edelsohn  <edelsohn@gnu.org>
21567
21568         * config/rs6000/rs6000.c (function_arg_padding): Do not pad SFmode
21569         for TARGET_64BIT.
21570         (rs6000_gimplify_va_arg): Use size_int instead of build_int_2.
21571
21572 2004-07-14  Roger Sayle  <roger@eyesopen.com>
21573
21574         * expmed.c (expand_sdiv_pow2): New function to expand signed division
21575         by a positive power of two, split out from expand_divmod.  Provide
21576         an alternate implementation when shifts are expensive.  Lower the
21577         threshold for using a branchless implementation to BRANCH_COST >= 2.
21578         (expand_divmod): Call expand_sdiv_pow2 for suitable divisions.
21579
21580 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
21581
21582         * tree-dfa.c (make_rename_temp): *Really* work just
21583         like create_tmp_var if called while outside SSA form.
21584
21585 2004-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
21586
21587         * config/s390/s390.md ("udivsi3"): Ensure trap is generated
21588         for division by zero.
21589         ("umodsi3"): Likewise.
21590
21591 2004-07-14  Richard Sandiford  <rsandifo@redhat.com>
21592
21593         * config/mips/mips.c (mips_output_move): When generating mips16 code,
21594         force loads of negative constants to be split.
21595         * config/mips/mips.md (*movhi_mips16, *movqi_mips16): Likewise.
21596         Generalize SImode li/neg splitter to cope with other modes.
21597
21598 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
21599
21600         * expmed.c: Remove more references to QUEUED in the comments.
21601         * expr.c: Likewise.
21602
21603 2004-07-14  Richard Sandiford  <rsandifo@redhat.com>
21604
21605         Revert:
21606         2004-07-13  Richard Henderson  <rth@redhat.com>
21607         * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes
21608         correctly.
21609
21610 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
21611
21612         * tree-dfa.c (make_rename_temp): Work just like
21613         create_tmp_var if called while outside SSA form.
21614
21615 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
21616
21617         * expr.c (enqueue_insn, finish_expr_for_function,
21618         protect_from_queue, queued_subexp_p, mark_queue,
21619         emit_insns_enqueued_after_mark, emit_queue,
21620         expand_increment): Remove.
21621         (store_constructor): Expand increment as an assignment.
21622         (expand_expr_real_1 <case PREINCREMENT_EXPR,
21623         case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
21624         case POSTDECREMENT_EXPR>): Abort.
21625         * expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
21626         QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
21627         protect_from_queue, emit_queue, queued_subexp_p): Remove.
21628         * function.h (pending_chain, x_pending_chain): Remove.
21629         * rtl.def (QUEUED): Remove.
21630
21631         * emit-rtl.c (copy_insn_1, copy_most_rtx,
21632         set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
21633         * genattrtab.c (attr_copy_rtx, clear_struct_flag,
21634         encode_units_mask): Likewise.
21635         * local-alloc.c (equiv_init_varies_p): Likewise.
21636         * rtl.c (copy_rtx): Likewise.
21637         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
21638         * simplify-rtx.c (simplify_gen_subreg): Likewise.
21639         * config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
21640
21641         * builtins.c (expand_builtin, expand_builtin_apply,
21642         expand_builtin_mathfn, expand_builtin_mathfn_2,
21643         expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
21644         Remove calls to emit_queue and protect_from_queue.
21645         * calls.c (expand_call, precompute_arguments,
21646         precompute_register_parameters, rtx_for_function_call,
21647         store_one_arg): Likewise.
21648         * dojump.c (do_compare_and_jump, do_jump): Likewise.
21649         * explow.c (memory_address): Likewise.
21650         * expmed.c (clear_by_pieces_1, clear_storage,
21651         clear_storage_via_libcall, emit_group_load,
21652         emit_group_store, emit_store_flag,
21653         expand_expr_real_1, store_by_pieces,
21654         store_constructor, store_expr, try_casesi,
21655         try_tablejump): Likewise.
21656         * function.c (expand_pending_sizes): Likewise.
21657         * optabs.c (emit_cmp_and_jump_insns,
21658         emit_conditional_add, emit_conditional_move,
21659         expand_fix, expand_float, prepare_cmp_insn): Likewise.
21660         * stmt.c (emit_case_bit_tests,
21661         expand_asm_expr, expand_computed_goto,
21662         expand_decl_init, expand_end_case_type,
21663         expand_end_stmt_expr, expand_expr_stmt_value,
21664         expand_return, expand_start_case,
21665         optimize_tail_recursion): Likewise.
21666         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
21667         * config/s390/s390.c (s390_expand_cmpmem): Likewise.
21668
21669 2004-07-14  Ben Elliston  <bje@au.ibm.com>
21670
21671         * vec.h: Comment fix.
21672
21673 2004-07-13  Richard Henderson  <rth@redhat.com>
21674
21675         * target.h (struct gcc_target): Add calls.pass_by_reference.
21676         * target-def.h (TARGET_PASS_BY_REFERENCE): New.
21677         * function.c (pass_by_reference): Use the hook.
21678         * system.h (FUNCTION_ARG_PASS_BY_REFERENCE): Poison.
21679         * targhooks.c, targhooks.h (hook_pass_by_reference_false): New.
21680         (hook_pass_by_reference_must_pass_in_stack): New.
21681         * config/alpha/alpha.c (function_arg): Don't query pass-by-ref.
21682         (alpha_pass_by_reference): New.
21683         (TARGET_PASS_BY_REFERENCE): New.
21684         * config/alpha/alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21685         * config/arc/arc.c (arc_pass_by_reference): New.
21686         (TARGET_PASS_BY_REFERENCE): New.
21687         * config/arc/arc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21688         (FUNCTION_ARG_CALLEE_COPIES): True.
21689         * config/arm/arm-protos.h (arm_function_arg_pass_by_reference): Remove.
21690         * config/arm/arm.c (TARGET_PASS_BY_REFERENCE): New.
21691         (arm_pass_by_reference): Rename from arm_function_arg_pass_by_reference.
21692         * config/arm/arm.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21693         * config/c4x/c4x.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21694         * config/cris/cris.c (cris_pass_by_reference): New.
21695         (TARGET_PASS_BY_REFERENCE): New.
21696         * config/cris/cris.h (FUNCTION_ARG): Don't query pass-by-ref.
21697         (FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): Likewise.
21698         (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21699         * config/fr30/fr30.c (TARGET_PASS_BY_REFERENCE): New.
21700         * config/fr30/fr30.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21701         * config/frv/frv-protos.h (frv_function_arg_pass_by_reference): Kill.
21702         * config/frv/frv.c (TARGET_PASS_BY_REFERENCE): New.
21703         (frv_function_arg_pass_by_reference): Remove.
21704         * config/frv/frv.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21705         * config/i386/i386-protos.h (function_arg_pass_by_reference): Remove.
21706         * config/i386/i386.c (TARGET_PASS_BY_REFERENCE): New.
21707         (ix86_pass_by_reference): Rename from function_arg_pass_by_reference.
21708         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21709         * config/ia64/ia64-protos.h (ia64_function_arg_pass_by_reference): Kill.
21710         * config/ia64/ia64.c (TARGET_PASS_BY_REFERENCE): New.
21711         (ia64_pass_by_reference): Rename from
21712         ia64_function_arg_pass_by_reference.
21713         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21714         * config/ip2k/ip2k.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21715         * config/iq2000/iq2000-protos.h (function_arg_pass_by_reference): Kill.
21716         * config/iq2000/iq2000.c (TARGET_PASS_BY_REFERENCE): New.
21717         (iq2000_pass_by_reference): Rename from function_arg_pass_by_reference.
21718         * config/iq2000/iq2000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21719         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
21720         * config/m32r/m32r-protos.h (m32r_pass_by_reference): Remove.
21721         * config/m32r/m32r.c (TARGET_PASS_BY_REFERENCE): New.
21722         (m32r_pass_by_reference): Adjust prototype.  Make static.
21723         Handle mode sizes correctly.
21724         * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21725         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c
21726         (m68hc11_function_arg_pass_by_reference): Remove.
21727         * config/m68hc11/m68hc11.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21728         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
21729         * config/mcore/mcore.c (TARGET_PASS_BY_REFERENCE): New.
21730         * config/mcore/mcore.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21731         * config/mips/mips-protos.h (function_arg_pass_by_reference): Remove.
21732         * config/mips/mips.c (TARGET_PASS_BY_REFERENCE): New.
21733         (mips_va_arg): Use pass_by_reference.
21734         (mips_pass_by_reference): Rename from function_arg_pass_by_reference.
21735         Handle mode sizes correctly.
21736         * config/mips/mips.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21737         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
21738         * config/mmix/mmix-protos.h (mmix_function_arg_pass_by_reference): Kill.
21739         * config/mmix/mmix.c (TARGET_PASS_BY_REFERENCE): New.
21740         (mmix_pass_by_reference): Rename from
21741         mmix_function_arg_pass_by_reference.
21742         * config/mmix/mmix.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21743         (FUNCTION_ARG_CALLEE_COPIES): True.
21744         * config/mn10300/mn10300.c (TARGET_PASS_BY_REFERENCE): New.
21745         (mn10300_pass_by_reference): New.
21746         * config/mn10300/mn10300.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21747         (FUNCTION_ARG_CALLEE_COPIES): True.
21748         * config/pa/pa.c (pa_pass_by_reference): New.
21749         (TARGET_PASS_BY_REFERENCE): New.
21750         * config/pa/pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21751         (FUNCTION_ARG_CALLEE_COPIES): True.
21752         * config/rs6000/rs6000-protos.h (function_arg_pass_by_reference): Kill.
21753         * config/rs6000/rs6000.c (TARGET_PASS_BY_REFERENCE): New.
21754         (rs6000_pass_by_reference): Rename from function_arg_pass_by_reference.
21755         * config/rs6000/rs6000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21756         * config/s390/s390-protos.h (s390_function_arg_pass_by_reference): Kill.
21757         * config/s390/s390.c (TARGET_PASS_BY_REFERENCE): New.
21758         (s390_pass_by_reference): Rename from
21759         s390_function_arg_pass_by_reference.
21760         (s390_function_arg_advance): Don't query pass-by-ref.
21761         (s390_function_arg): Likewise.
21762         (s390_gimplify_va_arg): Use pass_by_reference.
21763         (s390_call_saved_register_used): Likewise.
21764         * config/s390/s390.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21765         * config/sh/sh.c (TARGET_PASS_BY_REFERENCE): New.
21766         (shcompact_byref, sh_pass_by_reference): New.
21767         * config/sh/sh.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21768         (SHCOMPACT_BYREF): Remove.
21769         * config/sparc/sparc-protos.h (function_arg_pass_by_reference): Kill.
21770         * config/sparc/sparc.c (TARGET_PASS_BY_REFERENCE): New.
21771         (sparc_pass_by_reference): Rename from function_arg_pass_by_reference.
21772         (sparc_gimplify_va_arg): Use pass_by_reference.
21773         * config/sparc/sparc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21774         * config/stormy16/stormy16.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21775         * config/v850/v850.c (TARGET_PASS_BY_REFERENCE): New.
21776         (v850_pass_by_reference): New.
21777         * config/v850/v850.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21778         (FUNCTION_ARG_CALLEE_COPIES): True.
21779         * doc/tm.texi (TARGET_PASS_BY_REFERENCE): Update from
21780         FUNCTION_ARG_PASS_BY_REFERENCE docs.
21781
21782 2004-07-14  Richard Henderson  <rth@redhat.com>
21783             Richard Sandiford  <rsandifo@redhat.com>
21784
21785         * config/mips/mips-protos.h (mips_va_arg): Delete.
21786         * config/mips/mips.h (EXPAND_BUILTIN_VA_ARG): Delete.
21787         * config/mips/mips.c: Include tree-gimple.h.
21788         (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
21789         (mips_arg_info): Remove special handling of must_pass_in_stck args.
21790         (mips_gimplify_va_arg_expr): Rewritten from mips_va_arg.
21791         (function_arg_pass_by_reference): Return true if must_pass_in_stack.
21792
21793 2004-07-13  Bob Wilson  <bob.wilson@acm.org>
21794
21795         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap
21796         arguments for COND_EXPR in big-endian adjustment code.
21797
21798 2004-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21799
21800         * pa-64.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Delete.
21801         * pa.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Modify for hppa64.
21802         * pa32-regs.h (REG_ALLOC_ORDER): Reorder caller-saved registers.
21803         * pa64-regs.h (REG_ALLOC_ORDER): Likewise.
21804
21805 2004-07-13  Diego Novillo  <dnovillo@redhat.com>
21806
21807         PR tree-optimization/16443
21808         * tree-ssa-alias.c: Add more description for
21809         CALL_CLOBBERED_VARS and ADDRESSABLE_VARS.
21810         * tree-ssa-operands.c (get_asm_expr_operands): Re-order the
21811         clobbering of call-clobbered and addressable variables.  If
21812         there are any before aliases have been computed, add them.
21813
21814 2004-07-13  Diego Novillo  <dnovillo@redhat.com>
21815
21816         * tree-optimize.c (execute_todo): Flush DUMP_FILE before
21817         verification.
21818
21819 2004-07-13  Ulrich Weigand  <uweigand@de.ibm.com>
21820
21821         * config/s390/s390.c (s390_gimplify_va_arg): Use size_int instead
21822         of build_int_2.  Convert both operands of PLUS_EXPR and MULT_EXPR
21823         to the same type.
21824
21825 2004-07-13  Per Bothner  <per@bothner.com>
21826
21827         * collect2.c (main):  Handle --no-demangle and --demangle flags.
21828
21829 2004-07-13  Sebastian Pop  <pop@cri.ensmp.fr>
21830
21831         * Makefile.in (OBJS-common): Add tree-data-ref.o.
21832         (tree-scalar-evolution.o): Add missing dependences on tree-pass.h flags.h.
21833         (tree-data-ref.o): New rule.
21834         * lambda.h: New file.
21835         * tree-data-ref.c: New file.
21836         * tree-data-ref.h: New file.
21837         * tree.c (int_cst_value, tree_fold_gcd): New functions.
21838         * tree.h (int_cst_value, tree_fold_gcd): Declared here.
21839
21840 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
21841
21842         PR target/13926
21843         * config/sparc/sparc-protos.h (output_ubranch): New prototype.
21844         * config/sparc/sparc.c (output_ubranch): New function.
21845         * config/sparc/sparc.md (jump pattern): Use it.
21846
21847 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
21848
21849         PR target/16494
21850         * config/sparc/sparc.c (output_cbranch): Properly guard
21851         the code handling far branches with TARGET_V9.
21852         * config/sparc/sparc.md (length attribute): Document the
21853         side-effect of having a length greater or equal to 3.
21854
21855 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
21856             Lloyd Parkes  <lloyd@must-have-coffee.gen.nz>
21857
21858         PR target/15186
21859         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
21860         /usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
21861
21862 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
21863             Martin Sebor  <sebor@roguewave.com>
21864
21865         PR target/12602
21866         * doc/invoke.texi (SPARC options): Document -threads
21867         and -pthreads on Solaris.
21868
21869 2004-07-13  Richard Henderson  <rth@redhat.com>
21870
21871         * builtins.c (std_gimplify_va_arg_expr): Handle types passed
21872         by reference.
21873         (ind_gimplify_va_arg_expr): Remove.
21874         * tree.h (ind_gimplify_va_arg_expr): Remove.
21875         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Don't use it.
21876         * config/mmix/mmix.c (mmix_function_arg_pass_by_reference): Allow
21877         argsp to be null.
21878
21879         * config/arc/arc.c (arc_gimplify_va_arg_expr): Remove.
21880         (TARGET_GIMPLIFY_VA_ARG_EXPR): Remove.
21881         * config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c,
21882         config/iq2000/iq2000.c, config/m32r/m32r.c, config/mmix/mmix.c,
21883         config/mn10300/mn10300.c, config/v850/v850.c: Similarly.
21884
21885 2004-07-13  Richard Henderson  <rth@redhat.com>
21886
21887         * function.c (pass_by_reference): New.
21888         (assign_parm_find_data_types): Use it.
21889         * calls.c (initialize_argument_information): Likewise.
21890         (emit_library_call_value_1): Likewise.
21891         * expr.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21892         * function.h (pass_by_reference): Declare.
21893
21894 2004-07-13  Richard Henderson  <rth@redhat.com>
21895
21896         * target-def.h (TARGET_MUST_PASS_IN_STACK): New.
21897         * target.h (struct gcc_target): Add calls.must_pass_in_stack.
21898         * expr.h (MUST_PASS_IN_STACK): Remove.
21899         * system.h (MUST_PASS_IN_STACK): Poison.
21900         * tree.h (must_pass_in_stack_var_size): Declare.
21901         (must_pass_in_stack_var_size_or_pad): Declare.
21902         * calls.c (must_pass_in_stack_var_size): New.
21903         (must_pass_in_stack_var_size_or_pad): Rename from
21904         default_must_pass_in_stack.
21905         * config/alpha/alpha.c (unicosmk_must_pass_in_stack): New.
21906         (TARGET_MUST_PASS_IN_STACK): New.
21907         * config/alpha/unicosmk.h (MUST_PASS_IN_STACK): Remove.
21908         * config/fr30/fr30.c (fr30_must_pass_in_stack): New.
21909         (TARGET_MUST_PASS_IN_STACK): New.
21910         * config/fr30/fr30.h (MUST_PASS_IN_STACK): Remove.
21911         * config/frv/frv.c (frv_must_pass_in_stack): New.
21912         (TARGET_MUST_PASS_IN_STACK): New.
21913         * config/frv/frv.h (MUST_PASS_IN_STACK): Remove.
21914         * config/i386/i386-protos.h (ix86_must_pass_in_stack): Remove.
21915         * config/i386/i386.c (TARGET_MUST_PASS_IN_STACK): New.
21916         (ix86_must_pass_in_stack): Make static.
21917         * config/i386/i386.h (MUST_PASS_IN_STACK): Remove.
21918         * config/ia64/ia64.c (TARGET_MUST_PASS_IN_STACK): New.
21919         * config/ia64/ia64.h (MUST_PASS_IN_STACK): Remove.
21920         * config/m32r/m32r.c (TARGET_MUST_PASS_IN_STACK): New.
21921         * config/m32r/m32r.h (MUST_PASS_IN_STACK): Remove.
21922         * config/mcore/mcore-protos.h (mcore_must_pass_on_stack): Remove.
21923         * config/mcore/mcore.c (TARGET_MUST_PASS_IN_STACK): New.
21924         (mcore_must_pass_on_stack): Remove.
21925         * config/mcore/mcore.h (MUST_PASS_IN_STACK): Remove.
21926         * config/mips/mips.c (TARGET_MUST_PASS_IN_STACK): New.
21927         * config/mips/mips.h (MUST_PASS_IN_STACK): Remove.
21928         * config/pa/pa.c (TARGET_MUST_PASS_IN_STACK): New.
21929         * config/pa/pa.h (MUST_PASS_IN_STACK): Remove.
21930         * config/rs6000/aix.h (MUST_PASS_IN_STACK): Remove.
21931         * config/rs6000/linux64.h (MUST_PASS_IN_STACK): Remove.
21932         * config/rs6000/rs6000.c (rs6000_must_pass_in_stack): New.
21933         (TARGET_MUST_PASS_IN_STACK): New.
21934         * config/sh/sh.c (TARGET_MUST_PASS_IN_STACK): New.
21935         * config/sh/sh.h (MUST_PASS_IN_STACK): Remove.
21936         * config/sparc/sparc.c (TARGET_MUST_PASS_IN_STACK): New.
21937         * config/sparc/sparc.h (MUST_PASS_IN_STACK): Remove.
21938         * config/xtensa/xtensa.c (TARGET_MUST_PASS_IN_STACK): New.
21939         * config/xtensa/xtensa.h (MUST_PASS_IN_STACK): Remove.
21940         * doc/tm.texi (TARGET_MUST_PASS_IN_STACK): Update from
21941         MUST_PASS_IN_STACK.
21942
21943         * calls.c, function.c, config/alpha/alpha.c, config/alpha/alpha.h,
21944         config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.c,
21945         config/cris/cris.h, config/fr30/fr30.c, config/fr30/fr30.h,
21946         config/frv/frv.c, config/i386/i386.c, config/iq2000/iq2000.c,
21947         config/mcore/mcore.c, config/mcore/mcore.h, config/mips/mips.c,
21948         config/mmix/mmix.c, config/mmix/mmix.h, config/rs6000/rs6000.c,
21949         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
21950         config/xtensa/xtensa.c: Use target hook.
21951
21952 2004-07-13  Anthony Heading  <aheading@jpmorgan.com>
21953
21954         * configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo.
21955         * configure: Rebuilt.
21956
21957 2004-07-13  Richard Sandiford  <rsandifo@redhat.com>
21958
21959         * doc/invoke.texi: Remove documentation for MIPS -mrnames option.
21960         * config/mips/mips.h (mips_reg_names): Don't declare.
21961         (MASK_NAME_REGS): Delete.  Shuffle other MASK_* values down.
21962         (TARGET_NAME_REGS): Delete.
21963         (TARGET_SWITCHES): Remove -mrnames.
21964         (REGISTER_NAMES): Initialise with the old contents of mips_reg_names[].
21965         (ADDITIONAL_REGISTER_NAMES): Remove entries for names mentioned
21966         in REGISTER_NAMES.
21967         * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Delete.
21968         (override_options): Remove handling of TARGET_NAME_REGS.
21969
21970 2004-07-13  Richard Sandiford  <rsandifo@redhat.com>
21971
21972         * config/mips/mips.h (TARGET_*): Boolify.
21973
21974 2004-07-12  Nick Clifton  <nickc@redhat.com>
21975
21976         * config.gcc: Add sh-*-symbianelf target.
21977         * config/sh/sh.c: Add new target macros:
21978         TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING,
21979         TARGET_CXX_IMPORT_EXPORT_CLASS.
21980         (sh_file_start): Create a definition of the .directive section.
21981         (sh_attribute): Add dllimport and dllexport attributes.
21982         * config/sh/symbian-pre.h: New file.
21983         * config/sh/symbian-post.h: New file.
21984         * config/sh/symbian.c: New file. Contains Symbian specific
21985         functions.
21986         * config/sh/sh-protos.h: Add prototypes for new functions
21987         provided by symbian.c.
21988         * config/sh/t-symbian: New file.
21989         * doc/extend.texi: Document support for dllimport and dllexport
21990         attributes by the sh-symbianelf target.
21991
21992 2004-07-12  James E Wilson  <wilson@specifixinc.com>
21993
21994         * Makefile.in (AR): Use @AR@ not ar.
21995         (NM): New.
21996         (AR_FOR_TARGET): Use $(AR) not ar for native.
21997         (NM_FOR_TARGET): Use $(NM) not nm for native.
21998         * configure.ac: Add AC_CHECK_PROG calls for NM and AR.
21999         * configure: Regenerate.
22000
22001 2004-07-12  David S. Miller  <davem@nuts.davemloft.net>
22002
22003         * config/sparc/sparc.md (ashlsi3): Eliminate const 1
22004         special case.
22005         (ashldi3_sp64): Likewise.
22006
22007 2004-07-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22008
22009         PR target/16477
22010         * pa.c (function_arg): Update comment.
22011         * pa.h (BLOCK_REG_PADDING): Define.
22012
22013 2004-07-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
22014
22015         PR tree-optimization/16461
22016         * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
22017         arguments of phi nodes.
22018
22019 2004-07-12  Devang Patel  <dpatel@apple.com>
22020
22021         * doc/invoke.texi (Darwin Options): Document -gused and -gfull.
22022
22023 2004-07-12  Steve Ellcey  <sje@cup.hp.com>
22024
22025         * function.c (expand_function_start): Ensure r_save is in Pmode.
22026         * calls.c (prepare_call_address): Ensure static_chain_value is
22027         in Pmode.
22028         * builtins.c (expand_builtin_nonlocal_goto): Ensure r_label and
22029         r_save_area are in Pmode.
22030         * config/ia64/ia64.c (ia64_initialize_trampoline): Ensure addr,
22031         fnaddr, and static_chain are in Pmode.
22032
22033 2004-07-12  Vladimir Makarov  <vmakarov@redhat.com>
22034
22035         PR target/16445
22036         * config/ia64/ia64.c (bundling): Don't count ignored insns.
22037
22038 2004-07-12  Richard Henderson  <rth@redhat.com>
22039
22040         * target.h (struct gcc_target): Move gimplify_va_arg_expr
22041         next to build_builtin_va_list.
22042         * target-def.h (TARGET_GIMPLIFY_VA_ARG_EXPR): Update to match.
22043         * builtins.c (gimplify_va_arg_expr): Likewise.
22044         * gimplify.c (copy_if_shared_r): Likewise.
22045
22046 2004-07-12  Alexandre Oliva  <aoliva@redhat.com>
22047
22048         * passes.c (rest_of_decl_compilation): Don't defer call of
22049         assemble_variable if its DECL_RTL is already set.
22050
22051 2004-07-12  Sebastian Pop  <pop@cri.ensmp.fr>
22052
22053         * cfgloop.h (struct loop): Add nb_iterations field.
22054         (current_loops): Declare.
22055         * tree-chrec.c (chrec_not_analyzed_yet,
22056         chrec_dont_know, chrec_known, count_ev_in_wider_type,
22057         chrec_contains_symbols_defined_in_loop): Remove the temporary
22058         hooks.
22059         * tree-flow-inline.h (loop_containing_stmt): New function.
22060         * tree-scalar-evolution.c: Add implementation.
22061         * tree-scalar-evolution.h: Add declarations.
22062
22063 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
22064
22065         PR rtl-optimization/15921
22066         * Makefile.in (global.o): Add recog.h.
22067
22068         * global.c (recog.h): Add the include-clause.
22069         (bb_info): New member earlyclobber.
22070         (allocate_bb_info, free_bb_info): Initialize/finish the new
22071         member.
22072         (earlyclobber_regclass, earlyclobber_regclass_length): The new
22073         global variables.
22074         (check_earlyclobber, regclass_intersect,
22075         mark_reg_use_for_earlyclobber, mark_reg_use_for_earlyclobber_1):
22076         New functions.
22077         (calculate_local_reg_bb_info): Calculate value of earlyclobber.
22078         (make_accurate_live_analysis): Modify pavin.
22079
22080 2004-07-12  Diego Novillo  <dnovillo@redhat.com>
22081
22082         * tree-cfg.c (find_taken_edge): Statically compute the truth
22083         value of a predicate comparing an SSA_NAME to itself.
22084
22085 2004-07-12  Roger Sayle  <roger@eyesopen.com>
22086
22087         * config/rs6000/rs6000.c (rs6000_rtx_costs): Indicate that the
22088         rs6000 doesn't have shift-and-add or shift-and-sub instructions
22089         by returning the cost of a multiplication plus an addition.
22090
22091 2004-07-12  Paolo Bonzini  <bonzini@gnu.org>
22092
22093         PR tree-optimization/14107
22094         * gimplify.c (gimplify_return_expr): Accept a
22095         RETURN_EXPR with an error argument.
22096         * tree-optimize.c (init_tree_optimization_passes):
22097         Run pass_warn_function_return at -O0.
22098
22099 2004-07-12  Roger Sayle  <roger@eyesopen.com>
22100
22101         * doc/invoke.texi: Correct -fasynchronous-unwind-tables option
22102         index entry.
22103
22104 2004-07-12  Richard Sandiford  <rsandifo@redhat.com>
22105
22106         * config/mips/mips.c (mips_use_dfa_pipeline_interface): Delete.
22107         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
22108         * config/mips/3000.md: Add copyright notice.  Remove automota and
22109         function units; use generic ones instead.  Only define reservations
22110         for things that are different from generic.md.  Extend each clause
22111         to include r3900.
22112         * config/mips/{4000,4100,4300,4600,5000,6000,generic}.md: New files.
22113         * config/mips/mips.md: Include them. Remove define_function_units.
22114         (alu, imuldiv): New automata and units.
22115
22116 2004-07-12  Ben Elliston  <bje@au.ibm.com>
22117
22118         * doc/invoke.texi (Optimize Options): Document -frename-registers
22119         not being enabled by default at -O3.
22120
22121 2004-07-11  Roger Sayle  <roger@eyesopen.com>
22122
22123         * fold-const.c (fold) <PLUS_EXPR>: Canonicalize X + -C as X - C for
22124         floating point additions, to keep real immediate constant positive.
22125         <MINUS_EXPR>:  For floating point subtractions, only transform X - -C
22126         into X + C, and leave positive real constants as X - C.
22127
22128 2004-07-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22129
22130         * pa.c (hppa_gimplify_va_arg_expr): Remove comment.
22131
22132 2004-07-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
22133
22134         PR tree-optimization/15654
22135         * tree-tailcall.c (eliminate_tail_call): Remove unreachable code.
22136
22137 2004-07-11  Roger Sayle  <roger@eyesopen.com>
22138
22139         * builtins.c (fold_builtin_fputs): Don't bother converting the
22140         return type to integer_type_node, as we've already checked that
22141         the result will be ignored.
22142
22143         * tree-eh.c (tree_could_trap_p): Add support for -ftrapv such
22144         that signed addition, subtraction, multiplication, division,
22145         remainder, negation and absolute value may potentially trap.
22146
22147         * fold-const.c (fold_ignored_result): New function to strip
22148         non-side-effecting tree nodes from an expression whose result
22149         is ignored.
22150         (fold_convert): Call fold_ignored_result when casting a value
22151         to VOID_TYPE.
22152         (omit_one_operand):  Call fold_ignored_result on the "omitted"
22153         operand when building a COMPOUND_EXPR.
22154         (pedantic_omit_one_operand): Likewise.
22155         * tree.h (fold_ignored_result): Prototype here.
22156         * tree-ssa-ccp.c (ccp_fold_builtin): Call fold_ignored_result
22157         when we're going to ignore the result.
22158
22159 2004-07-11  Richard Henderson  <rth@redhat.com>
22160
22161         PR tree-opt/16383
22162         * tree-ssa-ccp.c (fold_stmt_r): Split out...
22163         * tree.c (fields_compatible_p, find_compatible_field): ... new.
22164         * tree.h (fields_compatible_p, find_compatible_field): Declare.
22165         * tree-sra.c (sra_hash_tree): Hash fields by offset.
22166         (sra_elt_eq): Use fields_compatible_p.
22167         (generate_one_element_ref): Use find_compatible_field.
22168
22169 2004-07-11  Richard Henderson  <rth@redhat.com>
22170
22171         PR tree-opt/16422
22172         * tree-sra.c (generate_one_element_init): New.
22173         (generate_element_init): Use it.
22174         (scalarize_init): Push/pop gimplify context around it.
22175         (find_new_referenced_vars_1, find_new_referenced_vars): New.
22176         * gimplify.c (gimplify_expr): Allow SSA_NAME.
22177
22178 2004-07-11  Roger Sayle  <roger@eyesopen.com>
22179
22180         * rtlanal.c (insn_rtx_cost): New function, moved and renamed from
22181         combine.c's combine_insn_cost.
22182         * rtl.h (insn_rtx_cost): Prototype here.
22183         * combine.c (combine_insn_cost): Delete function.
22184         (combine_validate_cost): Update callers of combine_insn_cost to
22185         call insn_rtx_cost instead.
22186         (combine_instructions): Likewise.  Use NONJUMP_INSN_P to avoid
22187         requesting the rtx_cost of call and/or jump instructions.
22188
22189         * ifcvt.c (total_bb_rtx_cost): Use insn_rtx_cost instead of calling
22190         rtx_cost directly.  Don't request/use the cost of call or jump
22191         instructions.  Return -1 if the cost of any instruction can't be
22192         determined (or the BB contains a function call).
22193         (find_if_case_1): Abort transformation if total_bb_rtx_cost returns
22194         -1 (i.e. can't determine the cost of any instruction or the basic
22195         block contains a subroutine call).
22196         (find_if_case_2): Likewise.
22197
22198 2004-07-11  Roger Sayle  <roger@eyesopen.com>
22199
22200         * rs6000.c (struct processor_costs): Change semantics of fields to
22201         include the COST_N_INSNS scaling, and update all initializers.
22202         (rs6000_rtx_costs): Don't use COSTS_N_INSNS on rs6000_cost fields.
22203         Use COSTS_N_INSNS(1) for NOT, SIGN_EXTEND, ZERO_EXTEND and COMPARE.
22204         Use rs6000_cost->fp for both FLOAT_TRUNCATE and UNSPEC_FRSP.  When
22205         optimizing for size, use COSTS_N_INSNS(1) for CALL and IF_THEN_ELSE.
22206
22207 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
22208
22209         * LANGUAGES: Remove obsolete information.
22210
22211 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
22212
22213         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and
22214         SIGBUS signal frames, the PSW address points *to* the faulting
22215         instruction, not after it.
22216
22217 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
22218
22219         * config/s390/s390.c (legitimize_tls_address): Handle constant offsets
22220         added to TLS symbol addresses.
22221
22222 2004-07-11  Richard Henderson  <rth@redhat.com>
22223
22224         * expmed.c (init_expmed): Use stack-local structures for
22225         temporary rtl.  Don't recognize shifts.
22226
22227 2004-07-11  Richard Henderson  <rth@redhat.com>
22228
22229         * expr.c (store_expr): Don't fiddle subreg promotion for types
22230         with precision smaller than the mode.
22231
22232 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
22233
22234         * tree.h (all_types_permanent): Remove.
22235
22236 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
22237
22238         * langhooks.h (estimate_num_insns, pushlevel, poplevel, set_block,
22239         maybe_build_cleanup, update_decl_after_saving): Remove hooks.
22240         * langhooks.c (lhd_clear_binding_stack): Remove.
22241         * langhooks-def.h (lhd_clear_binding_stack,
22242         LANG_HOOKS_MAYBE_BUILD_CLEANUP,
22243         LANG_HOOKS_UPDATE_DECL_AFTER_SAVING,
22244         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, LANG_HOOKS_PUSHLEVEL,
22245         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
22246         (LANG_HOOKS_CLEAR_BINDING_STACK): Define to lhd_do_nothing.
22247         * system.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
22248         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_SET_BLOCK,
22249         LANG_HOOKS_MAYBE_BUILD_CLEANUP,
22250         LANG_HOOKS_UPDATE_DECL_AFTER_SAVING, LANG_HOOKS_POPLEVEL): Poison.
22251         * tree.h (poplevel): Don't declare.
22252         * c-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
22253         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
22254         * objc/objc-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK,
22255         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
22256         Remove.
22257
22258 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
22259
22260         PR tree-optimization/16437
22261         * c-common.c (shorten_compare): Don't mark result of conversion to
22262         narrower signed type as overflowing.
22263         * fold-const.c (decode_field_reference): Determine whether
22264         signedness comes from outer type using precision rather than size.
22265
22266 2004-07-11  Phil Edwards  <phil@codesourcery.com>
22267
22268         * configure.ac:  Alphabetize --enable-checking list, add
22269         missing valgrind entry.
22270         * configure:  Regenerate.
22271
22272 2004-07-11  Phil Edwards  <phil@codesourcery.com>
22273
22274         * doc/install.texi (Testing):  Fix syntax in "make check" example.
22275
22276 2004-07-10  James E Wilson  <wilson@specifixinc.com>
22277
22278         * config/gofast.h (gofast_maybe_init_libfuncs): Use SImode for litodp.
22279
22280 2004-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
22281
22282         PR rtl-optimization/16001
22283         * loop-iv.c (iv_number_of_iterations): Prevent copy propagation in
22284         niter_expr.
22285
22286 2004-07-10  Geoffrey Keating  <geoffk@apple.com>
22287
22288         * config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.
22289
22290 2004-07-10  Steve Kargl  <sgk@troutmask.apl.washington.edu>
22291             James Morrison  <phython@gcc.gnu.org>
22292
22293         * doc/contrib.texi (Contributors): Add gfortran contributors and
22294         fix a couple of typos.
22295
22296 2004-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
22297
22298         PR rtl-optimization/15387
22299         * calls.c (check_sibcall_argument_overlap_1): Handle pointers
22300         to incoming args space correctly.
22301
22302 2004-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22303
22304         * pa.c (output_indirect_call): Only use %r2 as the link register in
22305         indirect calls with the long PA 2.0 pc-relative branch.
22306
22307 2004-07-10  Daniel Jacobowitz  <dan@debian.org>
22308
22309         * config/i386/i386.c (override_options): Pick a 64-bit CPU
22310         for the default tuning if TARGET_64BIT.
22311
22312 2004-07-10  Richard Henderson  <rth@redhat.com>
22313
22314         * builtins.c (std_gimplify_va_arg_expr): Widen align/boundary
22315         to HOST_WIDE_INT.  Fold pad-args-down arithmetic.
22316
22317 2004-07-10  Jakub Jelinek  <jakub@redhat.com>
22318
22319         * expr.h (store_bit_field, extract_bit_field): Remove last argument.
22320         * expmed.c (store_bit_field, extract_bit_field): Remove last
22321         argument.
22322         * builtins.c (expand_builtin_signbit): Adjust callers.
22323         * optabs.c (expand_vector_binop, expand_vector_unop): Likewise.
22324         * calls.c (store_unaligned_arguments_into_pseudos): Likewise.
22325         * ifcvt.c (noce_emit_move_insn): Likewise.
22326         * stmt.c (expand_return): Likewise.
22327         * expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg,
22328         store_field, expand_expr_real_1): Likewise.
22329
22330 2004-07-10  Richard Henderson  <rth@redhat.com>
22331
22332         * builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.
22333
22334 2004-07-09  Mike Stump  <mrs@apple.com>
22335
22336         * config/darwin.c (no_dead_strip): Add.
22337         (HAVE_DEAD_STRIP): Add.
22338         (darwin_emit_unwind_label): Ensure that we don't dead code strip
22339         the .eh label.
22340
22341 2004-07-09  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
22342
22343         * tree-ssa-loop-im.c: New file.
22344         * Makefile.in (tree-ssa-loop-im.o): Add.
22345         * cfgloop.c (superloop_at_depth): New function.
22346         * cfgloop.h (superloop_at_depth): Declare.
22347         * common.opt (ftree-lim): New flag.
22348         * expr.c (array_ref_up_bound): New function.
22349         * params.def (PARAM_LIM_EXPENSIVE): New parameter.
22350         * timevar.def (TV_LIM): New timevar.
22351         * tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when
22352         computing immediate uses of a phi node.
22353         * tree-flow.h (struct tree_ann_common_d): Add aux field.
22354         (loop_commit_inserts, for_each_index, tree_ssa_lim): Declare.
22355         * tree-optimize.c (init_tree_optimization_passes): Add pass_lim.
22356         * tree-pass.h (pass_lim): Declare.
22357         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New
22358         functions.
22359         (pass_lim): New pass structure.
22360         * tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly.
22361         * tree.c (in_array_bounds_p): New function.
22362         * tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs.
22363         (in_array_bounds_p, array_ref_up_bound): Declare.
22364         * doc/invoke.texi (-ftree-lim, --param lim-expensive): Document.
22365         * doc/passes.texi (tree-ssa-loop-im.c): Document.
22366
22367 2004-07-09  Richard Henderson  <rth@redhat.com>
22368
22369         * builtins.c (expand_builtin_stpcpy): Don't modify len.
22370
22371         * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
22372         with prejudice.
22373
22374 2004-07-10  Kelley Cook  <kcook@gcc.gnu.org>
22375
22376         * flags.h: Delete redundant prototypes that are being generated
22377         in options.h from common.opt.
22378         * common.opt: Add in the expository comments formerly in flags.h.
22379
22380 2004-07-09  Jan Beulich  <jbeulich@novell.com>
22381
22382         * config/i386/i386.c (init_cumulative_args): Set mmx/sse registers
22383         available for use only when TARGET_MMX/_SSE is set, and check for
22384         variable argument function if any register count is non-zero.
22385         (function_arg): Correctly suppress repeated warnings for passing SSE
22386         vectors are arguments without SSE enabled.
22387         (ix86_function_arg_boundary): Without SSE enabled, the use of what
22388         would be SSE register modes does no longer influence the alignment.
22389
22390 2004-07-09  Richard Henderson  <rth@redhat.com>
22391
22392         * builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.
22393         Always align upward to arg boundary.  Use size_in_bytes/round_up.
22394         Maintain type-correctness of constants.
22395         * stor-layout.c (round_up, round_down): Special-case powers of 2.
22396
22397 2004-07-09  David S. Miller  <davem@nuts.davemloft.net>
22398
22399         * config/sparc/sparc.c (*_costs): Scale instruction costs
22400         by COSTS_N_INSNS.
22401         (sparc_rtx_costs): Adjust as appropriate.
22402
22403 2004-07-09  Jan Beulich  <jbeulich@novell.com>
22404
22405         * config/i386/mm3dnow.h: New.
22406         * config.gcc: Add mm3dnow.h to extra_headers for i?86 and x86-64.
22407
22408 2004-07-09  Richard Henderson  <rth@redhat.com>
22409
22410         * simplify-rtx.c (simplify_const_relational_operation): Only
22411         look at bounds of scalar integers.
22412
22413 2004-07-09  Jan Beulich  <jbeulich@novell.com>
22414
22415         * config/i386/i386.md (sse2_clflush): Use correct operand for clflush.
22416
22417 2004-07-09  Andrew Pinski  <apinski@apple.com>
22418
22419         * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
22420         always referenced.
22421         (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
22422         UOBJC_METACLASS_decl.
22423
22424 2004-07-09  James E Wilson  <wilson@specifixinc.com>
22425
22426         PR target/16364
22427         * config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
22428         do return a parallel if hfa_mode == XFmode and mode == TImode.
22429
22430 2004-07-09  Jan Beulich  <jbeulich@novell.com>
22431
22432         * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes
22433         permissible for unary plus.
22434
22435 2004-07-09  Jan Beulich  <jbeulich@novell.com>
22436
22437         * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.
22438         (BT_FN_UINT): Rename from BT_FN_UNSIGNED.
22439         (BT_FN_PTR_UINT): Rename from BT_FN_PTR_UNSIGNED.
22440         (BT_ULONG, BT_ULONGLONG, BT_UINTMAX, BT_FN_INT_UINT, BT_FN_INT_ULONG,
22441         BT_FN_INT_ULONGLONG, BT_FN_INT_INTMAX, BT_FN_INT_UINTMAX): New.
22442         * builtins.def (BUILTIN_CLZxxx, BUILTIN_CTXxxx, BUILTIN_PARITYxxx,
22443         BUILTIN_POPCOUNTxxx): Arguments are unsigned.
22444         (BUILTIN_xxxIMAX): New.
22445         * builtins.c (expand_builtin): Handle BUILT_IN_FFSIMAX,
22446         BUILT_IN_CLZIMAX, BUILT_IN_CTZIMAX, BUILT_IN_POPCOUNIMAX, and
22447         BUILT_IN_PARITYIMAX.
22448
22449 2004-07-09  David S. Miller  <davem@nuts.davemloft.net>
22450
22451         * config/sparc/sparc.h (processor_costs): Define.
22452         (sparc_costs): Declare.
22453         * config/sparc/sparc.c (cypress_costs, supersparc_costs,
22454         hypersparc_costs, sparclet_costs, ultrasparc_costs,
22455         ultrasparc3_costs): New.
22456         (sparc_override_options): Set sparc_costs as appropriate.
22457         (sparc_rtx_costs): Use sparc_costs instead of messy
22458         conditionals.
22459
22460 2004-07-09  Steven Bosscher  <stevenb@suse.de>
22461
22462         * doc/md.texi (Processor pipeline description): Mention that
22463         the old pipeline description is deprecated.
22464
22465         * config/rs6000/7450.md (automaton ppc7450): Split up, move
22466         mciu_7450 function unit to...
22467         (automaton ppc7450mciu): ...new automaton.
22468
22469         * haifa-sched.c (insert_schedule_bubbles_p): Remove.
22470         (schedule_block): Don't consider inserting bubbles.
22471         (sched_init): Don't initialize DFA bubbles.
22472         * target-def.h (TARGET_SCHED_INIT_DFA_BUBBLES,
22473         TARGET_SCHED_DFA_BUBBLE): Remove.
22474         * target.h (init_dfa_bubbles, dfa_bubble): Remove hooks.
22475         * doc/tm.texi (TARGET_SCHED_INIT_DFA_BUBBLES,
22476         TARGET_SCHED_DFA_BUBBLE): Remove documentation.
22477
22478         * stmt.c (conditional_context): Remove prototype.
22479         * tree.h (conditional_context): Remove.
22480         * tree-cfg.c (pre_insert_on_edge): Remove.
22481
22482         * c-common.h (c_expand_asm_operands): Remove prototype.
22483         * c-typeck.c (c_expand_asm_operands): Remove.
22484
22485 2004-07-09  Jan Beulich  <jbeulich@novell.com>
22486
22487         * config/i386/i386.c (classify_argument): Treat V1xx modes the same as
22488         their base modes. CTImode, TCmode, and XCmode must be passed in memory.
22489         TFmode (__float128) must be is an SSE/SSEUP pair. V2SImode, V4HImode,
22490         and V8QI are class SSE. All sufficiently small remaining vector modes
22491         must be passed in one or two integer registers.
22492         (ix86_libcall_value): TFmode must be returned in xmm0, XCmode must be
22493         returned in memory.
22494         (bdesc_2arg, ix86_init_mmx_sse_builtins): __builtin_ia32_pmuludq and
22495         __builtin_ia32_pmuludq128 have non-uniform argument and return types
22496         and must thus be handled explicitly.
22497         * config/i386/i386.md (*movdi_1_rex64): Add cases for moving between
22498         MMX and XMM regs.
22499         (movv8qi_internal, movv4hi_internal, movv2si_internal,
22500         movv2sf_internal): Permit moving between MMX and XMM registers (since
22501         MMX areguments and return values are passed in XMM registers).
22502         (sse2_umulsidi3): Correct type and mode.
22503
22504 2004-07-09  Richard Henderson  <rth@redhat.com>
22505
22506         * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.
22507
22508 2004-07-09  Eric Christopher  <echristo@redhat.com>
22509
22510         * config/rs6000/40x.md: Split into two automatons.
22511
22512 2004-07-09  Zack Weinberg  <zack@codesourcery.com>
22513             Andrew Pinski  <apinski@apple.com>
22514
22515         * c-opts.c (c_common_post_options): Force unit-at-a-time mode
22516         on when we have more than one input file.
22517         (c_common_parse_file): Restore loop over all input files.
22518         Clarify diagnostic for -dy when YYDEBUG wasn't defined.
22519
22520         * c-decl.c (set_type_context): New function.
22521         (pop_scope): Use it to set context of types.  When we
22522         encounter a TYPE_DECL, set the context of the attached type too.
22523         (pop_file_scope): Don't call cpp_undef_all here.
22524         (diagnose_mismatched_decls): Do not complain about a second
22525         definition of an 'extern inline' function if it's not in the
22526         same translation unit.  Do not complain about inline
22527         declaration after use if the use was in a different
22528         translation unit.
22529         (merge_decls): Don't clobber olddecl's DECL_CONTEXT.
22530         (pushdecl): Do not put DECL_EXTERNAL, !TREE_PUBLIC decls in
22531         the external scope.
22532         (pushdecl_top_level): Likewise.
22533         (grokdeclarator): Clarify what is going on with setting
22534         DECL_EXTERNAL on function types, a little.
22535         (c_write_global_declarations): Don't do anything if
22536         -fsyntax-only or errors have been encountered.
22537
22538 2004-07-09  Zack Weinberg  <zack@codesourcery.com>
22539
22540         * vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.
22541
22542 2004-07-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22543
22544         PR target/16459
22545         * pa.c (output_indirect_call): Use %r2 as the link register when
22546         calling $$dyncall with a pc-relative branch.
22547
22548 2004-07-08  Gerald Pfeifer  <gerald@pfeifer.com>
22549
22550         * doc/install.texi (Binaries): Mention OpenPKG.
22551
22552 2004-07-09  Diego Novillo  <dnovillo@redhat.com>
22553
22554         Fix PR tree-optimization/15555
22555         * tree-dfa.c (dump_variable): If the variable is a pointer
22556         SSA_NAME, also dump its points-to information.
22557         * tree-flow.h (struct ptr_info_def): Add field
22558         is_dereferenced.
22559         (dump_points_to_info_for): Declare.
22560         (debug_points_to_info_for): Declare.
22561         * tree-optimize.c (init_tree_optimization_passes): Add a
22562         second alias analysis pass after DOM2.
22563         Move pass_del_pta to a later spot.
22564         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
22565         create a name tags when we find a dereferenced pointer.  Just
22566         mark the pointer dereferenced.
22567         (collect_points_to_info_for): Move code to clear points-to
22568         information to create_name_tags.
22569         (create_name_tags): New function.
22570         (compute_flow_sensitive_aliasing): Call it.
22571         (setup_pointers_and_addressables): Mark type tags for renaming
22572         here instead of ...
22573         (create_memory_tag): ... here.
22574         (merge_pointed_to_info): Do not merge PT_MALLOC attributes.
22575         (dump_points_to_info_for): Declare extern.
22576         (debug_points_to_info_for): New function.
22577
22578 2004-07-09  Paolo Bonzini  <bonzini@gnu.org>
22579
22580         * config/arc/arc.md: Switch to DFA-based scheduler description.
22581         * config/arc/arc.c: Switch to DFA-based scheduler description.
22582
22583 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
22584
22585         * arm/unknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame
22586         pointer.
22587
22588 2004-07-09  Richard Henderson  <rth@redhat.com>
22589
22590         * config/xtensa/xtensa-protos.h (xtensa_va_arg): Remove.
22591         * config/xtensa/xtensa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
22592         (xtensa_gimplify_va_arg_expr): Rewrite from xtensa_va_arg.
22593         * config/xtensa/xtensa.h (EXPAND_BUILTIN_VA_ARG): Remove.
22594
22595         * config/v850/v850-protos.h (v850_va_arg): Remove.
22596         * config/v850/v850.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
22597         (v850_gimplify_va_arg_expr): Rewrite from v850_va_arg.
22598         * config/v850/v850.h (EXPAND_BUILTIN_VA_ARG): Remove.
22599         (FUNCTION_ARG_PASS_BY_REFERENCE): Handle variable size types.
22600         (FUNCTION_ARG_CALLEE_COPIES): Use FUNCTION_ARG_PASS_BY_REFERENCE.
22601
22602 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
22603
22604         PR target/12133
22605         * arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
22606         and DImode to use +/-4k offset.
22607
22608 2004-07-09  Richard Henderson  <rth@redhat.com>
22609
22610         * config/stormy16/stormy16-protos.h (xstormy16_expand_builtin_va_arg):
22611         Remove.
22612         * config/stormy16/stormy16.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
22613         (xstormy16_gimplify_va_arg_expr): Rewrite from
22614         xstormy16_expand_builtin_va_arg.
22615         * config/stormy16/stormy16.h (EXPAND_BUILTIN_VA_ARG): Remove.
22616
22617         * config/sparc/sparc-protos.h (sparc_va_arg): Remove.
22618         * config/sparc/sparc.c (sparc_gimplify_va_arg): Mark static.
22619
22620         * config/sh/sh-protos.h (sh_va_arg): Remove.
22621         * config/sh/sh.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
22622         (sh_gimplify_va_arg_expr): Rewrite from sh_va_arg.
22623         * config/sh/sh.h (EXPAND_BUILTIN_VA_ARG): Remove.
22624
22625         * config/pa/pa-protos.h (hppa_va_arg): Remove.
22626         * config/pa/pa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
22627         (hppa_gimplify_va_arg_expr): Rewrite from hppa_va_arg.
22628         * config/pa/pa.h (EXPAND_BUILTIN_VA_ARG): Remove.
22629
22630         * config/mn10300/mn10300-protos.h (mn10300_va_arg): Remove.
22631         * config/mn10300/mn10300.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
22632         (mn10300_gimplify_va_arg_expr): Rewrite from mn10300_va_arg.
22633         * config/mn10300/mn10300.h (EXPAND_BUILTIN_VA_ARG): Remove.
22634
22635 2004-07-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
22636
22637         * config/sparc/sparc.md (return): Rewrite length formula.
22638         * config/sparc/sparc.c (output_return): Pass 1 as 5th
22639         argument to final_scan_insn when in a delay slot.
22640         (output_sibcall): Likewise.
22641
22642 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
22643
22644         * arm.c (arm_cpp_interwork): New variable.
22645         (arm_override_options): Set it if TARGET_INTERWORK was on the command
22646         line.
22647         * arm.h (arm_cpp_interwork): Declare it.
22648         (TARGET_CPU_CPP_BUILTINS): Use it to control definition of
22649         __THUMB_INTERWORK__ in the preprocessor.
22650
22651 2004-07-09  Nathan Sidwell  <nathan@codesourcery.com>
22652
22653         * vec.h (VEC_T_alloc): Fix MEM_STAT_DECL pasto.
22654
22655 2004-07-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
22656
22657         PR target/16416
22658         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): New macro.
22659         Override default settings to account for -m32 and -m64.
22660
22661 2004-07-08  Randolph Chung  <tausq@debian.org>
22662
22663         * pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
22664
22665 2004-07-09  Alexandre Oliva  <aoliva@redhat.com>
22666
22667         * builtins.c (fold_builtin_strncpy): Make sure len is a constant
22668         before comparing it as such.
22669
22670 2004-07-08  Richard Henderson  <rth@redhat.com>
22671
22672         * builtins.c (std_gimplify_va_arg_expr): Hoist valist into a
22673         temporary.  Use bit arithmetic to align.
22674
22675 2004-07-08  Jerry Quinn  <jlquinn@optonline.net>
22676
22677         * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p,
22678         nonlocal_set_p, init_alias_analysis): Use, LABEL_P, JUMP_P, CALL_P,
22679         NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P.
22680         * bb-reorder.c (mark_bb_for_unlikely_executed_section,
22681         add_labels_and_missing_jumps, find_jump_block,
22682         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
22683         Likewise.
22684         * bt-load.c (btr_referenced_p, compute_defs_uses_and_gen,
22685         link_btr_uses, move_btr_def): Likewise.
22686         * builtins.c (expand_builtin_longjmp, expand_builtin_nonlocal_goto,
22687         expand_builtin_expect_jump): Likewise.
22688         * caller-save.c (save_call_clobbered_regs, insert_one_insn): Likewise.
22689         * calls.c (expand_call, emit_library_call_value_1): Likewise.
22690         * cfganal.c (forwarder_block_p): Likewise.
22691         * cfgbuild.c (inside_basic_block_p, count_basic_blocks,
22692         make_label_edge, rtl_make_eh_edge, make_edges, find_basic_blocks_1,
22693         find_bb_boundaries): Likewise.
22694         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
22695         merge_blocks_move_predecessor_nojumps,
22696         merge_blocks_move_successor_nojumps, insns_match_p,
22697         flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
22698         try_optimize_cfg): Likewise.
22699         * cfgexpand.c (expand_block, construct_exit_block): Likewise.
22700         * cfglayout.c (skip_insns_after_block, label_for_bb,
22701         record_effective_endpoints, insn_locators_initialize,
22702         fixup_reorder_chain, update_unlikely_executed_notes): Likewise.
22703         * cfgmainloop.c (create_loop_notes): Likewise.
22704         * cfgrtl.c (delete_insn, delete_insn_chain,
22705         create_basic_block_structure, rtl_delete_block, free_bb_for_insn,
22706         update_bb_for_insn, rtl_merge_blocks, rtl_can_merge_blocks,
22707         block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
22708         redirect_branch_edge, force_nonfallthru_and_redirect,
22709         rtl_tidy_fallthru_edge, back_edge_of_syntactic_loop_p,
22710         rtl_split_edge, commit_one_edge_insertion, print_rtl_with_bb,
22711         update_br_prob_note, rtl_verify_flow_info_1, rtl_verify_flow_info,
22712         purge_dead_edges, cfg_layout_redirect_edge_and_branch,
22713         cfg_layout_delete_block, cfg_layout_can_merge_blocks_p,
22714         cfg_layout_merge_blocks, rtl_block_ends_with_call_p,
22715         need_fake_edge_p, rtl_flow_call_edges_add): Likewise.
22716         * combine.c (combine_instructions, can_combine_p, try_combine,
22717         find_split_point, record_dead_and_set_regs, reg_dead_at_p,
22718         distribute_notes, distribute_links, insn_cuid): Likewise.
22719         * cse.c (fold_rtx, cse_insn, cse_around_loop,
22720         invalidate_skipped_block, cse_set_around_loop,
22721         cse_end_of_basic_block, cse_main, cse_basic_block,
22722         cse_condition_code_reg): Likewise.
22723         * cselib.c (cselib_process_insn): Likewise.
22724         * ddg.c (create_ddg): Likewise.
22725         * df.c (df_insn_refs_record, df_bb_rd_local_compute, df_insns_modify):
22726         Likewise.
22727         * dwarf2out.c (dwarf2out_stack_adjust, dwarf2out_frame_debug,
22728         gen_label_die, dwarf2out_var_location): Likewise.
22729         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn,
22730         next_insn, previous_insn, next_nonnote_insn, prev_nonnote_insn,
22731         last_call_insn, active_insn_p, next_label, prev_label,
22732         link_cc0_insns, next_cc0_user, try_split, add_insn_after,
22733         add_insn_before, remove_insn, add_function_usage_to,
22734         reorder_insns, find_line_note, remove_unnecessary_notes,
22735         emit_insn_after_1, classify_insn): Likewise.
22736         * except.c (convert_from_eh_region_ranges_1, emit_to_new_bb_before,
22737         connect_post_landing_pads, sjlj_mark_call_sites,
22738         sjlj_emit_function_enter, sjlj_emit_function_exit, reachable_handlers,
22739         can_throw_internal, can_throw_external, set_nothrow_function_flags,
22740         convert_to_eh_region_ranges): Likewise.
22741         * explow.c (optimize_save_area_alloca): Likewise.
22742         * expr.c (expand_expr_real): Likewise.
22743         * final.c (insn_current_reference_address, compute_alignments,
22744         shorten_branches, final, scan_ahead_for_unlikely_executed_note,
22745         final_scan_insn, output_asm_label, leaf_function_p): Likewise.
22746         * flow.c (first_insn_after_basic_block_note, delete_dead_jumptables,
22747         propagate_block_delete_insn, propagate_one_insn,
22748         init_propagate_block_info, propagate_block, libcall_dead_p,
22749         mark_set_1, attempt_auto_inc, find_auto_inc, try_pre_increment):
22750         Likewise.
22751         * function.c (instantiate_virtual_regs, reorder_blocks_1,
22752         expand_function_start, expand_function_end, contains,
22753         thread_prologue_and_epilogue_insns,
22754         reposition_prologue_and_epilogue_notes): Likewise.
22755         * gcse.c (constprop_register, bypass_conditional_jumps,
22756         insert_insn_end_bb, gcse_after_reload): Likewise.
22757         * genemit.c (gen_expand, gen_split): Likewise.
22758         * genpeep.c (gen_peephole, main): Likewise.
22759         * global.c (build_insn_chain): Likewise.
22760         * graph.c (node_data, print_rtl_graph_with_bb): Likewise.
22761         * haifa-sched.c (unlink_other_notes, unlink_line_notes,
22762         get_block_head_tail, no_real_insns_p, rm_line_notes, save_line_notes,
22763         restore_line_notes, rm_redundant_line_notes, rm_other_notes,
22764         ok_for_early_queue_removal, set_priorities, sched_init): Likewise.
22765         * ifcvt.c (count_bb_insns, first_active_insn, last_active_insn,
22766         cond_exec_process_insns, end_ifcvt_sequence, noce_process_if_block,
22767         merge_if_block, block_jumps_and_fallthru_p, find_if_block,
22768         dead_or_predicable): Likewise.
22769         * integrate.c (try_constants): Likewise.
22770         * jump.c (rebuild_jump_labels, cleanup_barriers,
22771         purge_line_number_notes, init_label_info, mark_all_labels,
22772         squeeze_notes, get_label_before, get_label_after,
22773         reversed_comparison_code_parts, simplejump_p, pc_set,
22774         returnjump_p, onlyjump_p, follow_jumps, mark_jump_label,
22775         delete_barrier, delete_prior_computation, delete_computation,
22776         delete_related_insns, delete_for_peephole, redirect_jump):
22777         Likewise.
22778         * lcm.c (optimize_mode_switching): Likewise.
22779         * local-alloc.c (validate_equiv_mem, update_equiv_regs, block_alloc):
22780         Likewise.
22781         * loop-doloop.c (doloop_valid_p, doloop_optimize): Likewise.
22782         * loop-invariant.c (find_exits, find_invariants_bb): Likewise.
22783         * loop-iv.c (simplify_using_assignment): Likewise.
22784         * loop.c (compute_luids, loop_optimize, scan_loop, libcall_other_reg,
22785         libcall_benefit, skip_consec_insns, move_movables, prescan_loop,
22786         find_and_verify_loops, labels_in_range_p, for_each_insn_in_loop,
22787         loop_bivs_init_find, strength_reduce, check_insn_for_bivs,
22788         check_insn_for_givs, check_final_value, update_giv_derive,
22789         basic_induction_var, product_cheap_p, check_dbra_loop,
22790         loop_insn_first_p, last_use_this_basic_block,
22791         canonicalize_condition, get_condition, loop_regs_scan, load_mems,
22792         try_copy_prop, LOOP_BLOCK_NUM, loop_dump_aux): Likewise.
22793         * modulo-sched.c (doloop_register_get, find_line_note, sms_schedule,
22794         sms_schedule_by_order): Likewise.
22795         * optabs.c (emit_no_conflict_block, emit_libcall_block): Likewise.
22796         * postreload.c (reload_cse_simplify_operands, reload_combine,
22797         reload_cse_move2add): Likewise.
22798         * predict.c (can_predict_insn_p, estimate_probability,
22799         expected_value_to_br_prob, process_note_predictions): Likewise.
22800         * print-rtl.c (print_rtx, print_rtl, print_rtl_single): Likewise.
22801         * profile.c (branch_prob): Likewise.
22802         * ra-build.c (live_out_1, livethrough_conflicts_bb,
22803         detect_webs_set_in_cond_jump): Likewise.
22804         * ra-debug.c (ra_print_rtx_object, ra_debug_insns,
22805         ra_print_rtl_with_bb): Likewise.
22806         * ra-rewrite.c (insert_stores, rewrite_program2): Likewise.
22807         * recog.c (next_insn_tests_no_inequality, find_single_use,
22808         split_all_insns, peephole2_optimize, if_test_bypass_p): Likewise.
22809         * reg-stack.c (next_flags_user, record_label_references,
22810         emit_swap_insn, swap_rtx_condition, subst_stack_regs,
22811         compensate_edge, convert_regs_1): Likewise.
22812         * regclass.c (scan_one_insn): Likewise.
22813         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
22814         regmove_optimize, fixup_match_1, single_set_for_csa,
22815         combine_stack_adjustments_for_block): Likewise.
22816         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Likewise.
22817         * reload.c (find_reloads, find_reloads_address_1, subst_reloads,
22818         find_equiv_reg): Likewise.
22819         * reload1.c (reload, calculate_needs_all_insns, set_label_offsets,
22820         reload_as_needed, emit_input_reload_insns, do_output_reload,
22821         delete_output_reload, delete_address_reloads_1, fixup_abnormal_edges):
22822         Likewise.
22823         * reorg.c (find_end_label, emit_delay_sequence,
22824         delete_from_delay_slot, delete_scheduled_jump, optimize_skip,
22825         get_jump_flags, rare_destination, mostly_true_jump,
22826         try_merge_delay_insns, redundant_insn, own_thread_p,
22827         fill_simple_delay_slots, fill_slots_from_thread,
22828         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
22829         dbr_schedule): Likewise.
22830         * resource.c (find_basic_block, next_insn_no_annul,
22831         find_dead_or_set_registers, mark_target_live_regs): Likewise.
22832         * rtl.h (RTX_PREV): Likewise.
22833         * rtlanal.c (global_reg_mentioned_p, no_labels_between_p,
22834         no_jumps_between_p, reg_used_between_p, reg_referenced_between_p,
22835         reg_set_p, find_last_value, dead_or_set_regno_p, find_reg_fusage,
22836         find_regno_fusage, pure_call_p, replace_label, rtx_referenced_p_1,
22837         tablejump_p, computed_jump_p, insns_safe_to_move_p,
22838         find_first_parameter_load, can_hoist_insn_p): Likewise.
22839         * sched-deps.c (get_condition, add_dependence, sched_analyze_2,
22840         sched_analyze_insn, sched_analyze, add_forward_dependence): Likewise.
22841         * sched-ebb.c (fix_basic_block_boundaries, add_deps_for_risky_insns,
22842         schedule_ebbs): Likewise.
22843         * sched-rgn.c (is_cfg_nonregular, find_conditional_protection,
22844         is_conditionally_protected, can_schedule_ready_p,
22845         add_branch_dependences, debug_dependencies): Likewise.
22846         * stmt.c (emit_nop, expand_start_case, emit_jump_if_reachable):
22847         Likewise.
22848         * unroll.c (unroll_loop, copy_loop_body, back_branch_in_range_p,
22849         reg_dead_after_loop, loop_find_equiv_value, loop_iterations,
22850         set_dominates_use, ujump_to_loop_cont): Likewise.
22851         * var-tracking.c (prologue_stack_adjust, vt_initialize): Likewise.
22852         * varasm.c (output_constant_pool_1): Likewise.
22853
22854 2004-07-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
22855
22856         * tree-scalar-evolution.c: New file.
22857         * tree-scalar-evolution.h: New file.
22858         * tree-ssa-loop-niter.c: New file.
22859         * Makefile.in (SCEV_H): New.
22860         (tree-scalar-evolution.o, tree-ssa-loop-niter.o): Add new files.
22861         * cfgloop.h (struct loop): Add bounds field.
22862         * tree-flow.h (struct tree_niter_desc): New type.
22863         (number_of_iterations_cond, number_of_iterations_exit,
22864         loop_niter_by_eval, find_loop_niter_by_eval,
22865         estimate_numbers_of_iterations, can_count_iv_in_wider_type,
22866         free_numbers_of_iterations_estimates): Declare.
22867         * tree.h (lower_bound_in_type, upper_bound_in_type): Declare.
22868         * params.def (PARAM_MAX_ITERATIONS_TO_TRACK): New parameter.
22869         * doc/invoke.texi (max-iterations-to-track): Document.
22870
22871 2004-07-08  Kaz Kojima  <kkojima@gcc.gnu.org>
22872
22873         * config/sh/sh.c (sh_va_arg): Initinalize lab_over.
22874         * config/sh/sh.h (CONST_OK_FOR_J16): Use parentheses.
22875         (MODE_AFTER): Add cast appropriately.
22876         * config/sh/sh.md (movdi splitter): Likewise.
22877         (casesi_worker_2): Add const qualifier appropriately.
22878         (eh_return): Remove unused variable.
22879         (insv): Initialize v;
22880
22881 2004-07-08  Richard Henderson  <rth@redhat.com>
22882
22883         * config/mmix/mmix-protos.h (mmix_expand_builtin_va_arg): Remove.
22884         * config/mmix/mmix.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
22885         (mmix_gimplify_va_arg_expr): Rewrite from mmix_expand_builtin_va_arg.
22886         * config/mmix/mmix.h (EXPAND_BUILTIN_VA_ARG): Remove.
22887         (FRAME_POINTER_REQUIRED): Use current_function_has_nonlocal_label.
22888
22889         * config/m32r/m32r-protos.h (m32r_va_arg): Remove.
22890         * config/m32r/m32r.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
22891         (m32r_gimplify_va_arg_expr): Rewrite from m32r_va_arg.
22892         * config/m32r/m32r.h (EXPAND_BUILTIN_VA_ARG): Remove.
22893
22894         * config/iq2000/iq2000-protos.h (iq2000_va_arg): Remove.
22895         * config/iq2000/iq2000.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
22896         (iq2000_gimplify_va_arg_expr): Rewrite from iq2000_va_arg.
22897         * config/iq2000/iq2000.h (EXPAND_BUILTIN_VA_ARG): Remove.
22898
22899         * config/frv/frv-protos.h (frv_expand_builtin_va_arg): Remove.
22900         * config/frv/frv.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
22901         (frv_gimplify_va_arg_expr): Rewrite from frv_expand_builtin_va_arg.
22902         * config/frv/frv.h (EXPAND_BUILTIN_VA_ARG): Remove.
22903
22904         * config/i860/i860-protos.h (i860_va_arg): Remove.
22905         * config/i860/i860.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
22906         (i860_gimplify_va_arg_expr): Rewrite from i860_va_arg.
22907         * config/i860/i860.h (EXPAND_BUILTIN_VA_ARG): Remove.
22908
22909 2004-05-31  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
22910
22911         * system.h: Prototype getpagesize if missing.
22912         * configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS.
22913         * configure: Regenerate.
22914         * config.in: Regenerate.
22915
22916 2004-07-08  Richard Henderson  <rth@redhat.com>
22917
22918         * config/fr30/fr30-protos.h (fr30_va_arg): Remove.
22919         * config/fr30/fr30.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
22920         (fr30_gimplify_va_arg_expr): New.
22921         (fr30_pass_by_reference, fr30_pass_by_value, fr30_va_arg): Remove.
22922         * config/fr30/fr30.h (EXPAND_BUILTIN_VA_ARG): Remove.
22923
22924 2004-07-08  Vladimir Makarov  <vmakarov@redhat.com>
22925
22926         PR target/16414
22927         * config/ia64/ia64.c (ia64_dfa_new_cycle): Fix typo in comparison
22928         of asm_noperands result.
22929
22930 2004-07-08  Richard Henderson  <rth@redhat.com>
22931
22932         * config/cris/cris-protos.h (cris_expand_builtin_va_arg): Remove.
22933         * config/cris/cris.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
22934         (cris_gimplify_va_arg_expr): Rewrite from cris_expand_builtin_va_arg.
22935         * config/cris/cris.h (EXPAND_BUILTIN_VA_ARG): Remove.
22936
22937 2004-07-08  Richard Henderson  <rth@redhat.com>
22938
22939         * builtins.c (ind_gimplify_va_arg_expr): New.
22940         * tree.h (ind_gimplify_va_arg_expr): Declare.
22941         * config/arc/arc.c (arc_gimplify_va_arg_expr): Use it.
22942
22943 2004-07-08  Jan Beulich  <jbeulich@novell.com>
22944
22945         * expmed.c (extract_bit_field): Correct condition to use vec_extract
22946         patterns also on vector elements other than the first one.
22947         * config/i386/i386.md (vec_extractv2df, vec_extractv4sf): Add missing
22948         break statements.
22949
22950 2004-07-08  Geoffrey Keating  <geoffk@apple.com>
22951
22952         * config/rs6000/darwin-ldouble.c: Correct reference
22953         to the Linnainmaa paper.
22954
22955 2004-07-08  Richard Henderson  <rth@redhat.com>
22956
22957         * config/arc/arc-protos.h (arc_va_arg): Remove.
22958         * config/arc/arc.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
22959         (arc_gimplify_va_arg_expr): Rewrite from arc_va_arg.
22960         * config/arc/arc.h (EXPAND_BUILTIN_VA_ARG): Remove.
22961
22962         * config/c4x/c4x-protos.h (c4x_va_arg): Remove.
22963         * config/c4x/c4x.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
22964         (c4x_gimplify_va_arg_expr): Rewrite from c4x_va_arg.
22965         * config/c4x/c4x.h (EXPAND_BUILTIN_VA_ARG): Remove.
22966
22967 2004-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22968
22969         * pa.md (prefetch_32, prefetch_64): Simplify constraint checks.
22970
22971 2004-07-08  Zack Weinberg  <zack@codesourcery.com>
22972
22973         * c-decl.c (static_ctors, static_dtors): Make static.
22974         (pop_file_scope): Call c_common_write_pch and
22975         cgraph_finalize_compilation_unit here.
22976         (build_cdtor): Moved here from c-objc-common.c; simplify.
22977         (c_write_global_declarations_1): Clarify comment.
22978         (c_write_global_declarations): Close the external scope before
22979         doing anything else.  Call build_cdtor, cgraph_optimize, and
22980         mudflap_finish_file here.
22981         * c-lang.c (finish_file): Don't call c_objc_common_finish_file.
22982         Clarify comment.
22983         * c-objc-common.c: No need to include cgraph.h.
22984         (build_cdtor): Moved to c-decl.c.
22985         (c_objc_common_finish_file): Delete.
22986         * c-tree.h: Update to match.
22987         * objc/objc-act.c (finish_file): Don't call c_objc_common_finish_file.
22988         (generate_static_references): Set TREE_USED before calling finish_decl.
22989         Eliminate unnecessary dummy declaration.  Call rest_of_decl_compilation
22990         on the static_instances_decl.
22991
22992 2004-07-08  Zack Weinberg  <zack@codesourcery.com>
22993
22994         * c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope
22995         decls when there is only one input translation unit.
22996         * langhooks.c (lhd_set_decl_assembler_name): Partially revert
22997         change of 2004-07-05; do not treat declarations with
22998         DECL_CONTEXT a TRANSLATION_UNIT_DECL specially.
22999         * opts.c (cur_in_fname): Delete.
23000         * opts.h: Likewise.
23001         * tree.c: Revert changes of 2004-07-05; no special treatment
23002         for TRANSLATION_UNIT_DECLs.
23003         * Makefile.in (tree.o): Update dependencies.
23004
23005 2004-07-08  Roger Sayle  <roger@eyesopen.com>
23006
23007         * builtins.c (fold_builtin_strcpy): Merge functionality from
23008         simplify_builtin_strcpy.  Add additional len argument.  No longer
23009         static.  Remove function prototype.
23010         (fold_builtin_strncpy): Likewise integrate functionality from
23011         simplify_builtin_strncpy.  Add additional slen argument.  No
23012         longer static.  Remove function prototype.
23013         (simplify_builtin_strcy, simplify_builtin_strncpy): Delete.
23014         (simplify_builtin_fputs): Rename to fold_builtin_fputs.  Change
23015         types of "ignore" and "unlocked" parameters to bool.
23016         (fold_builtin_1):  Add additional ignore argument.  Call renamed
23017         fold_builtin_fputs to simplify GCC "fputs" and "fputs_unlocked"
23018         builtins.  Update arguments to fold_builtin_strncpy and
23019         fold_builtin_strcpy.  Add function prototype.
23020         (fold_builtin): Add additional Boolean ignore argument to pass
23021         to fold_builtin_1.
23022         (simplify_builtin): Call fold_builtin_fputs, fold_builtin_strcpy
23023         and fold_builtin_strncpy instead of simplify_builtin_fputs,
23024         simplify_builtin_strcpy and simplify_builtin_strncpy respectively.
23025
23026         * expr.h (simplify_builtin_fputs, simplify_builtin_strcpy,
23027         simplify_builtin_strncpy): Delete function prototypes.
23028         * tree.h (fold_builtin_fputs, fold_builtin_strcpy,
23029         fold_builtin_strncpy): Add function prototypes here.
23030         (fold_builtin): Update function prototype with new "bool ignore".
23031
23032         * tree-ssa-ccp.c (ccp_fold): Update call to fold_builtin.
23033         (ccp_fold_builtin):  Update call to fold_builtin.  Call
23034         fold_builtin_fputs, fold_builtin_strcpy and fold_builtin_strncpy
23035         instead of simplify_builtin_fputs, simplify_builtin_strcpy and
23036         simplify_builtin_strncpy respectively.
23037         * fold-const.c (fold): Update call to fold_builtin.
23038
23039 2004-07-08  Alexandre Oliva  <aoliva@redhat.com>
23040
23041         * builtins.c (expand_builtin_stpcpy): Un-simplify decay of stpcpy
23042         to strcpy.
23043
23044         * expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0.
23045         (FUNCTION_ARG_PASS_BY_REFERENCE): Likewise.
23046         (FUNCTION_ARG_CALLEE_COPIES): Likewise.
23047         * calls.c: Remove ifdefs of macros above.
23048         * functions.c: Likewise.
23049         * expr.c: Likewise.
23050
23051 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
23052
23053         * config/sparc/sparc.md (UNSPECV_GOTO_V9): Delete.
23054         (arch attribute): Delete.
23055         (current_function_calls_alloca attribute): Rename into calls_alloca.
23056         (calls_eh_return): New attribute.
23057         (leaf_function): Likewise.
23058         (length attribute): Fix formula for sibcalls.
23059         (return insn): Correctly compute the 'length' attribute.
23060         (do_builtin_setjmp_setup): Adjust use of current_function_calls_alloca.
23061
23062 2004-07-08  Richard Henderson  <rth@redhat.com>
23063
23064         * tree-cfg.c (make_exit_edges): Use get_call_expr_in.
23065         (remove_useless_stmts_1, is_ctrl_altering_stmt): Likewise.
23066         (tree_block_ends_with_call_p, need_fake_edge_p): Likewise.
23067         * tree-eh.c (lower_eh_constructs_1): Likewise.
23068         * tree-sra.c (sra_walk_modify_expr): Likewise.
23069         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
23070         (eliminate_unnecessary_stmts): Likewise.
23071         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
23072         * tree-tailcall.c (optimize_tail_call): Likewise.
23073         * tree-ssa-ccp.c (get_rhs, set_rhs): Reorg to use switch.
23074
23075 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
23076             Jakub Jelinek  <jakub@redhat.com>
23077
23078         * config/i386/i386.c (override_options): Enable
23079         SSE prefetches with -mtune, as long as we are
23080         compiling for i686 or higher.  All i686 processors
23081         accept SSE prefetches as NOPS, some i586's don't.
23082
23083 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
23084
23085         PR target/10567
23086         * config/sparc/sparc.md (update_return): Honor flag_delayed_branch.
23087
23088 2004-07-08  Diego Novillo  <dnovillo@redhat.com>
23089
23090         * tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in
23091         the handling of clobbering ASM_EXPRs.
23092
23093 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
23094
23095         PR target/16430
23096         * config/sparc/sparc.c (function_value): In 64-bit mode,
23097         return the aggregates larger than 16 bytes like unions.
23098
23099 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
23100
23101         PR target/16199
23102         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): When
23103         'temp' is zero, generate new pseudos as needed and emit the
23104         sequence of insns in single-assignment form.  Resync comments
23105         with code.
23106         (sparc_emit_set_const64): Pass zero as 'temp' argument to above
23107         function before reload.
23108
23109 2004-07-08  Nathan Sidwell  <nathan@codesourcery.com>
23110
23111         * vec.c (vec_assert_fail): Remove duplicate 'function'.
23112
23113         * vec.c (vec_p_reserve, vec_o_reserve): Allocation is signed.
23114
23115         * vec.h (VEC_alloc, VEC_embedded_size, VEC_embedded_init):
23116         Allocation is signed.
23117         (VEC_reserve): Return flag, allocation is signed.
23118
23119 2004-07-08  Richard Henderson  <rth@redhat.com>
23120
23121         * tree-ssa-ccp.c (fold_stmt): Get type directly from
23122         OBJ_TYPE_REF_OBJECT.
23123
23124 2004-07-08  Joseph S. Myers  <jsm@polyomino.org.uk>
23125             Neil Booth  <neil@daikokuya.co.uk>
23126
23127         PR c/2511
23128         PR c/3325
23129         * c-decl.c (finish_struct): Ensure bit-fields are given the
23130         correct type.
23131         * c-common.c (c_common_signed_or_unsigned_type): For C, require
23132         the precision to match as well as the mode.
23133         * expr.c (reduce_to_bit_field_precision): New function.
23134         (expand_expr_real_1): Reduce expressions of bit-field type to
23135         proper precision.
23136         * langhooks.h (reduce_bit_field_operations): New hook.
23137         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
23138         Define.
23139         * c-lang.c, objc/objc-lang.c
23140         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define.
23141         * objc/objc-act.c (check_ivars): Convert types to bit-field types
23142         before checking.
23143         * tree.c (build_nonstandard_integer_type): New function.
23144         * tree.h (build_nonstandard_integer_type): New prototype.
23145         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't treat
23146         conversions between integer and boolean types as useless.
23147
23148 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
23149
23150         * c-common.c (c_common_nodes_and_builtins): Do not
23151         create __builtin_ptrdiff_t and __builtin_size_t.
23152
23153 2004-07-08  Andrew Pinski  <apinski@apple.com>
23154
23155         * Makefile.in (libbackend.o): Add -combine to the gcc
23156         command line.
23157
23158 2004-07-08  Nick Clifton  <nickc@redhat.com>
23159
23160         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Define.
23161         Set to -Os.
23162
23163 2004-07-08  Richard Henderson  <rth@redhat.com>
23164
23165         * except.c (expand_eh_region_start, expand_eh_region_end,
23166         expand_eh_handler, expand_eh_region_end_cleanup,
23167         expand_start_all_catch, expand_start_catch, expand_end_catch,
23168         expand_end_all_catch, expand_eh_region_end_allowed,
23169         expand_eh_region_end_must_not_throw, expand_eh_region_end_throw,
23170         expand_eh_region_end_fixup): Remove.
23171         * stmt.c (struct nesting): Remove stack_level, innermost_stack_block,
23172         cleanups, outer_cleanups, label_chain, exception_region.
23173         (struct goto_fixup): Remove stack_level, cleanup_list_list.
23174         (struct label_chain): Remove.
23175         (struct stmt_status): Remove x_stack_block_stack.
23176         (stack_block_stack, expand_goto_internal, expand_fixup, expand_fixups,
23177         fixup_gotos, save_stack_pointer, expand_decl_cleanup,
23178         expand_decl_cleanup_eh, expand_cleanups, start_cleanup_deferral,
23179         end_cleanup_deferral, last_cleanup_this_contour,
23180         containing_blocks_have_cleanups_or_stack_level,
23181         any_pending_cleanups): Remove.
23182         (expand_null_return_1): Take no arguments.
23183         (expand_label, expand_naked_return, expand_return,
23184         expand_start_bindings_and_block, expand_end_bindings, expand_decl,
23185         expand_anon_union_decl, expand_start_case, pushcase, pushcase_range,
23186         expand_end_case_type): Don't use any of them.
23187         * calls.c (expand_call): Likewise.
23188         * dojump.c (do_jump): Likewise.
23189         * function.c (expand_function_end): Likewise.
23190         * expr.c (store_expr, expand_expr_real_1): Likewise.
23191         (safe_from_p): Don't handle WITH_CLEANUP_EXPR, CLEANUP_POINT_EXPR.
23192         (expand_expr_real_1): Don't handle WITH_CLEANUP_EXPR,
23193         CLEANUP_POINT_EXPR, TARGET_EXPR, TRY_CATCH_EXPR, CATCH_EXPR,
23194         EH_FILTER_EXPR, TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR.
23195         * fold-const.c (fold_checksum_tree): Use first_rtl_op.
23196         * gengtype.c (adjust_field_tree_exp): Remove rtl op handling.
23197         * gimplify.c (gimplify_cleanup_point_expr): Renumber operands
23198         for WITH_CLEANUP_EXPR.
23199         (gimple_push_cleanup): Likewise.
23200         * integrate.c (copy_decl_for_inlining): Don't DECL_TOO_LATE.
23201         * print-tree.c (print_node): Likewise.
23202         * tree-pretty-print.c (dump_generic_node): Remove GOTO_SUBROUTINE_EXPR.
23203         * tree.c (first_rtl_op): Always just TREE_CODE_LENGTH.
23204         (has_cleanups): Remove GOTO_SUBROUTINE_EXPR.
23205         * tree.def (WITH_CLEANUP_EXPR): Remove op1 and op2.
23206         (GOTO_SUBROUTINE_EXPR): Remove.
23207         * tree.h (WITH_CLEANUP_EXPR_RTL): Remove.
23208         (DECL_TOO_LATE): Remove.
23209         * except.h, tree.h: Update decls.
23210
23211 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
23212
23213         * explow.c (optimize_save_area_alloca): Do not accept parameters.
23214         * passes.c (rest_of_handle_final): Handle symout.
23215         (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc):
23216         Push timevar here.
23217         (rest_of_handle_sched): Break out SMS.  Remove ifs for
23218         flag_schedule_insns and flag_modulo_sched.
23219         (rest_of_handle_addressof, rest_of_handle_cse2): Garbage
23220         collect at the end.
23221         (rest_of_handle_gcse2): Put under timevar TV_RELOAD_CSE_REGS.
23222         (rest_of_handle_partition_blocks, rest_of_handle_sms,
23223         rest_of_handle_if_after_reload, rest_of_handle_peephole2,
23224         rest_of_handle_mode_switching, rest_of_handle_jump,
23225         rest_of_handle_guess_branch_prob, rest_of_handle_eh,
23226         rest_of_handle_jump2, rest_of_handle_postreload,
23227         rest_of_handle_flow2, rest_of_clean_state,
23228         rest_of_handle_shorten_branches,
23229         rest_of_handle_prologue_epilogue,
23230         rest_of_handle_branch_target_load_optimize): New.
23231         (rest_of_compilation): Call the above.  Remove ggc_collect
23232         calls moved to rest_of_handle_*.
23233         * rtl.h (optimize_save_area_alloca): Do not accept parameters.
23234
23235         * dwarf2out.c (dwarf2out_begin_prologue): Use TREE_NOTHROW.
23236         * except.c (set_nothrow_function_flags): Set TREE_NOTHROW.
23237         * except.h (set_nothrow_function_flags): Update comment.
23238         * function.c (current_function_nothrow): Remove.
23239         * output.h (current_function_nothrow): Remove.
23240         * passes.c (rest_of_compilation): Do not set TREE_NOTHROW.
23241         * config/arm/arm.c (arm_compute_func_type): Use TREE_NOTHROW.
23242
23243 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
23244
23245         PR bootstrap/16326
23246         * reorg.c: Revert 2004-06-30 change.
23247         (find_end_label): If HAVE_epilogue and !HAVE_return,
23248         return 0 instead of creating a label at the end of the insn chain.
23249         (optimize_skip): Account for the failure mode of find_end_label.
23250         (fill_simple_delay_slots): Likewise.
23251         (fill_slots_from_thread): Likewise.
23252         (relax_delay_slots): Likewise.
23253
23254 2004-07-08  Diego Novillo  <dnovillo@redhat.com>
23255
23256         * tree-flow.h (addressable_vars): Declare.
23257         * tree-ssa-alias.c (addressable_vars): Define.
23258         (setup_pointers_and_addressables): Add addressable variables
23259         to addressable_vars.
23260         * tree-ssa-operands.c (get_stmt_operands): Move
23261         handling of ASM_EXPRs ...
23262         (get_asm_expr_operands): ... here.
23263         When the ASM_EXPR clobbers memory, also clobber addressable
23264         variables.
23265         * tree-ssa.c (init_tree_ssa): Initialize addressable_vars.
23266         (delete_tree_ssa): Reset addressable_vars.
23267
23268 2004-07-07  Jan Beulich  <jbeulich@novell.com>
23269             Richard Henderson  <rth@redhat.com>
23270
23271         * varasm.c (assemble_variable): Use assemble_zeros for
23272         zero-initialized variables.
23273         (categorize_decl_for_section): Honor flag_zero_initialized_in_bss
23274         for SECCAT_BSS and SECCAT_TBSS.
23275
23276 2004-07-07  Jan Beulich  <jbeulich@novell.com>
23277
23278         * varasm.c (asm_output_bss): Don't declare unless BSS_SECTION_ASM_OP.
23279
23280         * expmed.c (emit_store_flag): Also special-case double-word
23281         (in-)equality comparison against -1.
23282
23283         * config/i386/i386.c (ix86_gimplify_va_arg): Don't need temporary for
23284         passing arguments the containers for which are registers.
23285
23286         * calls.c (emit_library_call_value_1): Use mode of function parameter
23287         rather than that of argument since constants have none.
23288
23289 2004-07-08  Alexandre Oliva  <aoliva@redhat.com>
23290
23291         Introduce H8SX support.
23292         * expr.c (expand_strcpy): Renamed and moved to...
23293         * builtins.c (expand_movstr): ... here.  Tweak.
23294         (expand_builtin_strcpy): Adjust.  Use movstr if len can't be
23295         computed or has side effects.
23296         (expand_builtin_stpcpy): Likewise.  Use strcpy if return value is
23297         unused, or if mempcpy fails.  Adjust the return value in the
23298         latter case.  Use movstr if everything else fails.
23299         * doc/md.texi (movstr): Document.
23300         (movmemM, clrmemM): Fix explanation of memory block operands.
23301         * config/h8300/h8300.md (stpcpy): Renamed to...
23302         (movstr): ... this.  Adjust.
23303         2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
23304         * config/h8300/h8300.md: Rename movstr*, except for movstrict*, to
23305         movmem* and clrstr* to clrmem*.
23306         2004-06-27  Alexandre Oliva  <aoliva@redhat.com>
23307         * config/h8300/h8300.c (h8300_reg_class_from_letter): Map 'D' to
23308         GENERAL_REGS, always.
23309         (h8300_swap_into_er6, h8300_swap_into_er6): Handle the case of
23310         getting the stack pointer as addr.
23311         * config/h8300/h8300.h (PREDICATE_CODES): Remove constant rtxes
23312         from general_operand_dst.
23313         * config/h8300/h8300.md (movmd_internal_normal): New, normal-mode
23314         variant of...
23315         (movmd_internal): ... this.  Add modes to operands.  Disparage `D'
23316         instead of requiring it to match only before reload.
23317         (stpcpy_internal_normal): New, normal-mode variant of...
23318         (stpcpy_internal): ... this.  Add modes to operands.  Disparage
23319         `D' instead of requiring it to match only before reload.
23320         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Add
23321         mode argument.
23322         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Pass it to...
23323         * config/h8300/h8300.c (h8300_legitimate_address_p): Pass it to
23324         h8300_get_index.
23325         * config/h8300/h8300.md (attr type): Add call.
23326         (attr can_delay): If type is call, set it no.
23327         (call, call_value): Set type to call.
23328         2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
23329         * config/h8300/h8300.md (logicalhi3_sn, logicalsi3_sn): New.
23330         2004-06-16  Alexandre Oliva  <aoliva@redhat.com>
23331         * tree.c (get_narrower): Don't narrow integral types into
23332         non-integral types.
23333         * config/h8300/h8300.c (h8300_expand_epilogue): Initialize
23334         frame_size *before* the first use.
23335         * config/h8300/h8300.md (movstrictqi): Reintroduce post-increment
23336         on input.
23337         (peephole2): Don't widen instructions that push SP.  Move
23338         decrement of SP to the end of all stm-generating peepholes.
23339         2003-07-24  Richard Sandiford  <rsandifo@redhat.com>
23340         * config/h8300/h8300.md (insv): Prefer to use AND to clear a bitfield
23341         and OR to set it to all ones.
23342         2003-07-24  Richard Sandiford  <rsandifo@redhat.com>
23343         * config/h8300/h8300.md (can_delay): Default to "no" for bit branches.
23344         (call, call_value): Set can_delay to "no".
23345         2003-07-22  Richard Sandiford  <rsandifo@redhat.com>
23346         * config/h8300/h8300.md (extzv): Make subreg check more robust.
23347         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
23348         * config/h8300/h8300.md (*brabit): Remove.
23349         * config/h8300/h8300.md (*brabc, *brabs): Remove mode from
23350         zero_extract.  Use bit_memory_operand as the predicate for
23351         operand 1 and 'WU' as the constraint.  Check the difference
23352         between the base length and the final one when deciding which
23353         type of branch to use.
23354         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
23355         * config/h8300/h8300.md (extzv): Remove mode from operands 0 and 1.
23356         Use convert_move to extend the result for TARGET_H8300SX.  Check
23357         for QImode memory references.  Optimize the case where the
23358         destination is a paradoxical subreg.
23359         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
23360         * config/h8300/h8300.md (*movsf_h8sx): Add an r <- G alternative.
23361         * config/h8300/h8300.md (andqi): Remove bclr from h8sx version.
23362         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
23363         * config/h8300/h8300.md: Include mova.md
23364         (length_table): Add mova and mova_zero.
23365         * config/h8300/h8300.c (print_operand): Handle '%o'.  Print a length
23366         after all constant addresses for '%R', '%X', '%T' and '%S'.
23367         (h8300_mova_length): New function.
23368         (h8300_insn_length_from_table): Use it to handle mova and mova_zero.
23369         * config/h8300/t-h8300 (mova.md): Generate from genmova.sh.  Add to
23370         dependencies for s-config, etc.
23371         * config/h8300/gemova.sh: New file.
23372         * config/h8300/mova.md: Generated.
23373         2003-07-20  Alexandre Oliva  <aoliva@redhat.com>
23374         * config/h8300/h8300.c (h8300_bitfield_length): New.
23375         (nibble_operand): Adjust.
23376         (h8300_binary_length): Handle conditional binary op.
23377         (h8300_insn_length_from_table): Handle bitfield and bitbranch.
23378         * config/h8300/h8300.h: Change constraints W# and Y# to P#>X and
23379         P#<X, respectively.  The original P is now IP4>X.  Introduced P#>0
23380         and P#<0, unused so far.  W and Y are now prefixes to multi-letter
23381         constraints.  WU is introduced as a variant of U that requires a
23382         mem, and is therefore considered an EXTRA_MEMORY_CONSTRAINT.
23383         * config/h8300/h8300.md (attr type): Added bitbranch.
23384         (attr length_table): Added bitfield and bitbranch.
23385         (attr length): Compute bitbranch length.
23386         (andqi): Separate pattern for H8300SX.  Use bfld for loading the
23387         least-significant bit of a byte.
23388         (brabit, brabc, brabs): New.
23389         (insv, extzv): Emit bfst and bfld on H8300SX.
23390         (bfld, bfst, seq, sne): New.
23391         (bstzhireg, cmpstz, bstz, bistz): New.
23392         (cmpcondbset, condbset, cmpcondbclr, condbclr): New.
23393         (cmpcondbsetreg, condbsetreg, cmpcondbclrreg, condbclrreg): New.
23394         2003-07-11  Richard Sandiford  <rsandifo@redhat.com>
23395         * config/h8300/h8300.c (h8sx_binary_memory_operator): New function.
23396         (h8sx_unary_memory_operator): New function.
23397         * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Disable.
23398         (PREDICATE_CODES): Add h8sx_{unary,binary}_memory_operator.
23399         * config/h8300/h8300.md: Add peepholes to combine reloads and
23400         arithmetic insns.
23401         2003-07-10  Richard Sandiford  <rsandifo@redhat.com>
23402         * config/h8300/h830.md (cmpqi): Use 'i' rather than 'n' in constraints.
23403         (*cmphi_h8300hs, *addqi3, *addhi3_h8sx, subhi3): Likewise.
23404         (and?i, ior?i, xor?i): Likewise.
23405         2003-07-10  Richard Sandiford  <rsandifo@redhat.com>
23406         * config/h8300/h8300.c: Move enums and prototypes to head of file.
23407         Various whitespace fixes.
23408         (h8300_constant_length): New function, split out from...
23409         (h8300_displacement_size): ...here.  Rename h8300_displacement_length.
23410         (h8300_classify_operand): Use IN_RANGE.
23411         (h8300_classify_operand): Use h8300_constant_length.
23412         (h8300_short_move_mem_p): Tighten size check.
23413         (h8sx_mergeable_memrefs_p): Tighten equality check.
23414         2003-06-30  Richard Sandiford  <rsandifo@redhat.com>
23415         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Define __H8300SX__
23416         for -msx.
23417         * config/h8300/crti.asm: Use .h8300sx or .h8300sxn for -msx code.
23418         * config/h8300/crtn.asm: Likewise.
23419         * config/h8300/lib1funcs.asm: Likewise.  Use 32-bit pointers
23420         if __H8300SX__ is defined.
23421         2003-06-27  Richard Sandiford  <rsandifo@redhat.com>
23422         * config/h8300/h8300-protos.h (h8300_get_index): Add mode parameter.
23423         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Update accordingly.
23424         (GO_IF_MODE_DEPENDENT_ADDRESS): Treat POST_DEC, PRE_INC and indexed
23425         addresses as mode-dependent.
23426         * config/h8300/h8300.c (print_operand_address): Update call to
23427         h8300_get_index.
23428         (h8300_get_index): Take a mode argument.  Rework to fix an
23429         earlier misunderstanding.
23430         2003-06-26  Richard Sandiford  <rsandifo@redhat.com>
23431         * config/h8300/h8300.c (zero_extendqisi2): Force the source operand
23432         into a register if TARGET_H8300SX.
23433         (*zero_extendqisi2_h8300hs, *extendqisi2_h8300): Disable for
23434         TARGET_H8300SX.  Also disable related define_splits.
23435         (*zero_extendqisi2_h8sx, *extendqisi2_h8sx): New patterns.
23436         2003-06-23  Richard Sandiford  <rsandifo@redhat.com>
23437         * config/h8300/h8300.c (h8300_rtx_costs): Add h8sx handling.
23438         2003-06-20  Richard Sandiford  <rsandifo@redhat.com>
23439         * config/h8300/h8300.h (OK_FOR_Z): New macro.
23440         (EXTRA_CONSTRAINT_STR): Check it.
23441         * config/h8300/h8300.c (h8300_classify_operand): Accept null
23442         class arguments.
23443         (h8300_insn_length_from_table): Handle LENGTH_TABLE_MOV_IMM4.
23444         * config/h8300/h8300.md (length_table): Add mov_imm4.
23445         (movqi, movhi): Add Z <- W4 alternatives to h8sx patterns.
23446         2003-06-20  Richard Sandiford  <rsandifo@redhat.com>
23447         * genattrtab.c (write_eligible_delay): Allow candidate_insn to
23448         be a label.
23449         * config/h8300/h8300.h (DELAY_SLOT_LENGTH): New macro.
23450         * config/h8300/h8300.c (h8300_reorg): New function.
23451         (TARGET_MACHINE_DEPENDENT_REORG): Define.
23452         * config/h8300/h8300.md (length): Subtract the length of the
23453         delay slot from (pc) when checking the range of forward branches.
23454         (delay_slot, can_delay): New attributes.
23455         (define_delay): Add bra/s handling.
23456         (movmd_internal, return_h8sx, *return_1): Set can_delay to no.
23457         (jump): Add delayed-branch handling.
23458         2003-06-17  Richard Sandiford  <rsandifo@redhat.com>
23459         * expr.c (expand_strcpy): New function.
23460         * builtins.c (expand_builtin_strcpy): Fall back on expand_strcpy.
23461         (expand_builtin_stpcpy): Likewise.
23462         * config/h8300/h8300-protos.h (h8sx_split_movmd): Remove.
23463         (h8300_swap_into_er6, h8300_swap_out_of_er6): Declare.
23464         * config/h8300/h8300.c (h8300_reg_class_from_letter): Tweak 'd'
23465         handling to improve register allocation for -fno-omit-frame-pointer.
23466         (h8sx_split_movmd): Delete, moving er6 handling into...
23467         (h8300_swap_into_er6, h8300_swap_out_of_er6): ...these new functions.
23468         * config/h8300/h8300.md (UNSPEC_STPCPY): New unspec constant.
23469         (movmd): Add calls to copy_rtx.
23470         (movmd_internal): In the second alternative, allow the initial and
23471         final destination registers to be different .  Update the splitter
23472         accordingly.  Call h8300_swap_into_er6 and h8300_swap_out_of_er6
23473         instead of h8sx_split_movmd.
23474         (stpcpy, movsd): New expanders.
23475         (movsd_internal): New define_insn.
23476         2003-06-13  Richard Sandiford  <rsandifo@redhat.com>
23477         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Declare.
23478         (h8sx_emit_movmd, h8sx_split_movmd): Declare.
23479         * config/h8300/h8300.h (reg_class): Add COUNTER_REGS, SOURCE_REGS
23480         and DESTINATION_REGS.
23481         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
23482         (REGNO_REG_CLASS): Map er4, er5 and er6 to the new classes.
23483         (REG_CLASS_FROM_LETTER): Use h8300_reg_class_from_letter.
23484         (h8300_move_ratio): Declare.
23485         (MOVE_RATIO): Use it.
23486         * config/h8300/h8300.c (h8300_move_ratio): New variable.
23487         (h8300_init_once): Initialize it.
23488         (h8300_reg_class_from_letter): New function.
23489         (print_operand): Add an 'm' prefix for printing ".b", ".w" or ".l".
23490         (h8sx_emit_movmd, h8sx_split_movmd): New functions.
23491         * config/h8300/h8300.md (UNSPEC_MOVMD): New unspec constant.
23492         (COUNTER_REG, SOURCE_REG, DESTINATION_REG): New register constants.
23493         (movstrsi, movmd): New expanders.
23494         (movmd_internal): New insn.
23495         2003-06-06  Richard Sandiford  <rsandifo@redhat.com>
23496         * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Define.
23497         2003-06-04  Richard Sandiford  <rsandifo@redhat.com>
23498         * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxnelf for -msx -mn.
23499         * config/h8300/h8300.c (asm_file_start): Use .h8300sxn likewise.
23500         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
23501         * config/h8300/h8300.c (nibble_operand): Fix warning.
23502         * config/h8300/h8300.md (movstricthi): Set adjust_length to no.
23503         (movsi_h8sx): Likewise here and the normal h8sx movhi pattern.
23504         (movsf_h8300h): Disable for TARGET_H8300SX.
23505         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
23506         * config/h8300/h8300.h (PREDICATE_CODES): Add h8300_ldm_parallel,
23507         h8300_stm_parallel and h8300_return_parallel.
23508         * config/h8300/h8300.c (h8300_push_pop, h8300_stack_offset_p,
23509         h8300_ldm_stm_regno, h8300_ldm_stm_parallel, h8300_ldm_parallel,
23510         h8300_stm_parallel, h8300_return_parallel): New functions.
23511         (h8300_expand_prologue): Don't enforce ldm/stm register alignment
23512         if TARGET_H8300SX.  Use h8300_push_pop.
23513         (h8300_expand_epilogue): Likewise.  Try to merge the return insn
23514         and final pop when generating h8sx code.  Always emit some form
23515         of return insn.
23516         * config/h8300/h8300.md: Don't enforce register alignment in
23517         stm peepholes if TARGET_H8300SX.
23518         (ldm_h8300s, stm_h8300s, return_h8sx): New patterns.
23519         (ldm_h8300s_[234], stm_h8300_[234]): Disable.
23520         (epilogue): Expect h8300_expand_epilogue to emit a return insn.
23521         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
23522         * config/h8300/t-h8300 (MULTILIB_OPTIONS): Add a -msx multilib.
23523         (MULTILIB_DIRNAMES): Add a directory for it.
23524         (MULTILIB_MATCHES): Delete.
23525         2003-05-28  Richard Sandiford  <rsandifo@redhat.com>
23526         * final.c (walk_alter_subreg): Handle addresses with subregs
23527         inside a ZERO_EXTEND or AND.
23528         * config/h8300/h8300-protos.h (h8300_get_index): Declare.
23529         * config/h8300/h8300.h (INDEX_REG_CLASS): Set to GENERAL_REGS
23530         if TARGET_H8300SX.
23531         (GO_IF_LEGITIMATE_ADDRESS): Use h8300_get_index.
23532         * config/h8300/h8300.c (print_operand_address): Handle @(dd,RnL.b),
23533         @(dd,Rn.w) and @(dd,ERn.L).
23534         (h8300_displacement_size): Take the whole address as argument.
23535         (h8300_classify_operand, h8300_short_move_mem_p): Adjust accordingly.
23536         2003-05-28  Richard Sandiford  <rsandifo@redhat.com>
23537         * config/mips/mips-protos.h (h8300_operands_match_p): Declare.
23538         (h8sx_mergeable_memrefs_p): Declare.
23539         * config/h8300/h8300.h (HAVE_POST_DECREMENT): Define to TARGET_H8300SX.
23540         (HAVE_PRE_INCREMENT): Likewise.
23541         (GO_IF_LEGITIMATE_ADDRESS): Accept pre/post increment/decrement
23542         addresses for TARGET_H8300SX,
23543         * config/h8300/h8300.c (print_operand_address): Deal with PRE_INC
23544         and POST_DEC.
23545         (movb_length_table, movl_length_table): New tables.
23546         (movw_length_table): Define to movb_length_table.
23547         (h8300_displacement_size): New, split out from...
23548         (h8300_classify_address): ...here.  Handle pre/post inc/dec.
23549         (h8300_short_immediate_length): Allow H8OP_MEM_COMPLEX operands.
23550         (h8300_insn_length_from_table): Add cases for movb, movw and movl.
23551         (h8sx_mergeable_memrefs_p, h8300_operands_match_p): New functions.
23552         (output_plussi): Use add.l #xx:3,Rn and sub.l #xx:3,Rn for h8sx.
23553         (compute_plussi_length, compute_plussi_cc): Update accordingly.
23554         (h8sx_unary_shift_operator): Get the mode from the operator.
23555         (binary_shift_operator): Likewise.
23556         * config/h8300/h8300.md: If a peephole2 applies gen_lowpart to
23557         a memory reference, check whether the reference is offsettable.
23558         (length_table): Add movb, movw and movl.
23559         (movqi): Add new h8sx pattern.  Don't force one operand to be a
23560         register when generating h8sx code.
23561         (movhi, movsi, movsf): Likewise.
23562         (movstrictqi): Use the length_table attribute.
23563         (movstricthi): Likewise.  Add h8sx alternative for mov.w #xx:3,Rn.
23564         (addqi3): Split into a define_expand and define_insn.  Don't accept
23565         memory operands in the expander.  Use h8300_operands_match_p to
23566         check for matching operands in the define_insn.
23567         (subqi3, negqi2, one_cmplqi2): Likewise.
23568         (add[hs]i3): Don't accept memory operands in the expander.  Likewise
23569         in any patterns that are unused in h8sx code.  In the h8sx patterns,
23570         use h8300_operands_match_p to check whether operands match.
23571         (sub[hs]i3, and[hi]3, ior[hs]i3, xor[hs]i3, neg[hsi]3,
23572         one_cmpl[hs]i3): Likewise.
23573         (andqi3, iorqi3, xorqi3): Likewise.  Don't call fix_bit_operand
23574         in the expander.
23575         2003-05-23  Richard Sandiford  <rsandifo@redhat.com>
23576         * config/h8300/h8300-protos.h (expand_a_shift): Return a bool.
23577         (h8300_insn_length_from_table): Add a second parameter.
23578         (output_h8sx_shift): Declare.
23579         * config/h8300/h8300.h (OK_FOR_W, OK_FOR_Y): New macros.
23580         (EXTRA_CONSTRAINT): Replace with...
23581         (EXTRA_CONSTRAINT_STR): ...this.  Use OK_FOR_W and OK_FOR_Y.
23582         (CONSTRAINT_LEN): Define, returning 2 for 'W' and 'Y'.
23583         (PREDICATE_CODES): Add entries for h8sx_unary_shift_operator
23584         and h8sx_binary_shift_operator.
23585         * config/h8300/h8300.c (two_insn_adds_subs_operand): Return false
23586         for TARGET_H8300SX.
23587         (bit_operand): Replace use of EXTRA_CONSTRAINT with OK_FOR_U.
23588         (bit_memory_operand, fix_bit_operand): Likewise.
23589         (h8300_length_table_for_insn): Remove.
23590         (h8300_classify_operand): Fix check for 16-bit operands in 32-bit
23591         instructions.
23592         (h8300_short_immediate_length, h8300_binary_length): New functions.
23593         (h8300_insn_length_from_table): Add an opcodes parameter.  Rework.
23594         (output_plussi): Use sub to add negative constants.
23595         (compute_plussi_length): Adjust accordingly.
23596         (h8sx_single_shift_type): New enum.
23597         (h8sx_single_shift, h8sx_unary_shift_operator,
23598         h8sx_binary_shift_operator, output_h8sx_shift): New functions.
23599         (expand_a_shift, expand_a_rotate): Emit nothing if the shift is a
23600         single h8sx instruction.  Return false in this case.
23601         * config/h8300/h8300.md (length_table): Add short_immediate.
23602         (length): Pass the operand array to h8300_insn_length_from_table.
23603         (adjust_length): Assume "no" for insns with a length_table attribute.
23604         (*cmphi_h8300hs, cmpsi): Add alternatives for #xx:3.
23605         (*addhi3_h8300hs): Don't use for h8sx.
23606         (*addhi3_h8sx): New pattern, with alternatives for add.w #xx:3
23607         and sub.w #xx:3.
23608         (ashl[qhs]i3, lshr[qhs]i3, ashr[qhs]i3, rotl[qhs]i3): Change operand
23609         1's predicate to nonimmediate_operand.  Only skip default expansion
23610         if expand_a_shift or expand_a_rotate returns true.  Add new patterns
23611         for single h8sx shift instructions.
23612         2003-05-22  Alexandre Oliva  <aoliva@redhat.com>
23613         * config/h8300/h8300.c (nibble_operand): Split out of...
23614         (reg_or_nibble_operand): ... this.
23615         * config/h8300/h8300.h (PREDICATE_CODES): Added nibble_operand.
23616         * config/h8300/h8300.md: (mulqihi3, mulhisi3, umulqihi3,
23617         umulhisi3): Introduce expand, and introduce separate insns for
23618         sign- or zero-extended REG and already-extended CONST_INT.
23619         2003-05-20  Richard Sandiford  <rsandifo@redhat.com>
23620         * config/h8300/h8300.c (h8300_unary_length): Fix miscounting.
23621         * config/h8300/h8300.md (subqi3): Generalize for h8sx.
23622         (subhi3): Likewise.  Don't accept immediates for operand 1.
23623         Remove the early clobber from second alternative of the h8300s pattern.
23624         (subsi3): Generalize for h8sx.  Force operand 2 into a register
23625         on plain h8300 targets.
23626         (subsi3_h8300): Use h8300_dst_operand for consistency with expander.
23627         (subsi3_h8300h): Generalize for h8sx.
23628         (one_cmplqi2, one_cmplhi2, one_cmplsi2): Likewise.
23629         2003-05-19  Alexandre Oliva  <aoliva@redhat.com>
23630         * config/h8300/h8300.c (reg_or_nibble_operand): New.
23631         * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
23632         (TARGET_H8300SXMUL): New.
23633         (CONST_OK_FOR_P): New.
23634         (CONST_OK_FOR_LETTER_P): Adjust.
23635         * config/h8300/h8300.md (mulqihi3, mulhisi3, umulqihi3,
23636         umulhisi3): Accept 4-bit immediate on H8SX.
23637         (mulhi3, mulsi3, smulsi3_highpart, umulsi3_highpart): New.
23638         (udivsi3, divhi3, udivsi3, divsi3): New.
23639         2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
23640         * config/h8300/h8300-protos.h (h8300_insn_length_from_table): Declare.
23641         * config/h8300/h8300.h (OK_FOR_Q): New macro.
23642         (EXTRA_CONSTRAINT): Use it to check the 'Q' constraint.
23643         (PREDICATE_CODES): Add h8300_src_operand and h8300_dst_operand.
23644         Add ADDRESSOF to the bit_operand entry.
23645         * config/h8300/h8300.c (h8300_dst_operand): New predicate.
23646         (h8300_src_operand): Likewise.
23647         (bit_operand): Check nonimmediate_operand rather than general_operand.
23648         Accept any nonimmediate_operand in h8sx code.
23649         (h8300_and_costs): Initialize operands[1].
23650         (h8300_rtx_costs) <AND>: Return false if the operands aren't valid.
23651         (h8300_operand_class): New enum.
23652         (h8300_length_table): New typedef.
23653         (addb_length_table, addw_length_table, addl_length_table,
23654         logicl_length_table): New tables.
23655         (logicb_length_table, logicw_length_table): New macros.
23656         (h8300_classify_operand, h8300_length_from_table,
23657         h8300_length_table_for_insn, h8300_unary_length,
23658         h8300_insn_length_from_table): New functions.
23659         (output_plussi): Only use adds and subs for register destinations.
23660         Disable redundant clause.
23661         (compute_plussi_cc): Likewise.
23662         (compute_plussi_length): Likewise.  Use h8300_length_from_table
23663         to work out the length of an insn.
23664         (output_logical_op): Only use narrower immediate instructions
23665         if the destination is a register.
23666         (compute_logical_op_cc): Likewise.
23667         (compute_logical_op_length): Likewise.  Use h8300_length_from_table.
23668         (h8300_adjust_insn_length): Tighten check for reg<->mem moves.
23669         * config/h8300/h8300.md (length_table): New attribute.
23670         (length): When an instruction has a length_table attribute, use
23671         h8300_insn_length_from_table to calculate its default length.
23672         (cmpqi): Use h8300_dst_operand for the first operand and
23673         h8300_src_operand for the second.
23674         (cmphi, *cmphi_h8300hs, cmpsi, negqi2, neghi2, neghi2_h8300h, negsi2,
23675         negsi2_h8300h, addqi3, addhi3, *addhi3_h8300, *addhi3_h8300hs, addsi3,
23676         addsi_h8300, addsi_h8300h, andhi3, andsi3, iorhi3,
23677         iorsi3, xorhi3, xorsi3): Likewise.
23678         (andqi3): Use h8300_src_operand for operand 2.  Adjust the condition
23679         so that it allows any combination of operands for TARGET_H8300SX.
23680         (iorqi3, xorqi3): Likewise.
23681         (cmpqi): Use the length_table attribute.
23682         (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, andqi3, iorqi3,
23683         xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
23684         (cmpqi): Add 'Q' constraint.
23685         (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, addsi_h8300h, andqi3,
23686         iorqi3, xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
23687         2003-05-14  Richard Sandiford  <rsandifo@redhat.com>
23688         * config/h8300/h8300.h (MASK_H8300SX): New macro.
23689         (TARGET_H8300S): True for both -ms and -msx.
23690         (TARGET_H8300SX): New macro.
23691         (TARGET_SWITCHES): Add entries for -msx and -mno-sx.
23692         * config/h8300/h8300.c (asm_file_start): Write .h8300sx for -msx.
23693         * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxelf for -msx.
23694         * config/h8300/t-h8300 (MULTILIB_MATCHES): Use -ms multilibs for -msx.
23695         [Temporary change.]
23696         2003-02-28  Alexandre Oliva  <aoliva@redhat.com>
23697         * config/h8300/h8300.h (SIZE_TYPE, PTRDIFF_TYPE): Use short with
23698         16-bit pointers and 32-bit ints.
23699         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Accept
23700         CONST_DOUBLE with mode no wider than SImode.
23701         * config/h8300/h8300.md (extendqisi2_h8300): Add constraints for
23702         output operand.
23703         2003-02-27  Alexandre Oliva  <aoliva@redhat.com>
23704         * config/h8300/h8300.c (general_operand_src): Match CONSTANT_P_RTX
23705         or SUBREG thereof.
23706         * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
23707         2003-02-22  Alexandre Oliva  <aoliva@redhat.com>
23708         * config/h8300/h8300.c (dosize): Truncate sign * size to Pmode.
23709
23710 2004-05-28  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
23711
23712         * config.gcc (i[34567]86-*-mingw32*): Enable threads by default.
23713
23714 2004-07-07  Per Bothner  <per@bothner.com>
23715
23716         * flow.c (attempt_auto_inc):  Remove now-redundant PUT_CODE.
23717
23718 2004-07-07  Mike Stump  <mrs@apple.com>
23719
23720         * darwin.h (ASM_OUTPUT_LABELREF): Fix -fno-leading-underscore.
23721         * darwin.c (machopic_non_lazy_ptr_name, machopic_stub_name)
23722         (machopic_finish): Likewise.
23723
23724 2004-07-07  Richard Henderson  <rth@redhat.com>
23725
23726         * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look
23727         through any value-preserving cast.
23728
23729 2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
23730
23731         * function.c (assign_parm_find_data_types): Call
23732         FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.
23733
23734 2004-07-07  Steven Bosscher  <stevenb@suse.de>
23735
23736         * tree-cfg.c (group_case_labels): Remove case labels that have
23737         the same target as the default case.
23738
23739 2004-07-07  Steven Bosscher  <stevenb@suse.de>
23740
23741         * tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS
23742         regardless of DECL_LANG_SPECIFIC being present or not.
23743         * tree.h (DECL_NUM_STMTS): Purge.
23744
23745 2004-07-07  Andrew Pinski  <apinski@apple.com>
23746
23747         * configure: Regenerate with the right autoconf.
23748
23749 2004-07-07  David Edelsohn  <edelsohn@gnu.org>
23750
23751         * ifcvt.c (total_bb_rtx_cost): New function.
23752         (find_if_case_1): Compare rtx_cost of basic block to cost of
23753         BRANCH_COST insns.
23754         (find_if_case_2): Same.
23755
23756 2004-07-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
23757
23758         PR target/10567
23759         * config/sparc/sparc.c (load_pic_register): Honor flag_delayed_branch.
23760         (output_return): Likewise.
23761         (output_sibcall): Abort if !flag_delayed_branch.
23762         (sparc_function_ok_for_sibcall): Return 0 if !flag_delayed_branch.
23763         (emit_and_preserve): New function.
23764         (sparc_output_mi_thunk): Use it.  Honor flag_delayed_branch.  Emit an
23765         indirect jump to the thunked-to function if !flag_delayed_branch.
23766         * config/sparc/sparc.md (delayed_branch): New attribute.
23767         (load_pcrel_sym): Honor flag_delayed_branch.  Use above
23768         attribute to compute the length of the insn.
23769         (goto_handler_and_restore): Likewise.
23770
23771 2004-07-07  Andrew Pinski  <apinski@apple.com>
23772
23773         PR tree-optimization/15777
23774         * fold-const.c (fold_single_bit_test): Fold the x^1 expression.
23775
23776         * expr.c (expand_expr_real_1): Fix formating.
23777         BUFFER_REF and IN_EXPR are dead.
23778         * fold-const.c (non_lvalue): BUFFER_REF is dead.
23779         * tree-inline.c (estimate_num_insns_1): Likewise.
23780         * tree-pretty-print.c (dump_generic_node): BUFFER_REF,
23781         IN_EXPR, SET_LE_EXPR, and CARD_EXPR are dead.
23782         * tree.def (BUFFER_REF, IN_EXPR, SET_LE_EXPR, CARD_EXPR): Kill.
23783
23784 2004-07-07  H.J. Lu  <hongjiu.lu@intel.com>
23785
23786         * collect2.c (dump_file): Don't call cplus_demangle if
23787         HAVE_LD_DEMANGLE is defined.
23788         (main): Pass "--demangle" to ld if no_demangle is not 0 and
23789         HAVE_LD_DEMANGLE is defined. Don't set current_demangling_style
23790         if HAVE_LD_DEMANGLE is defined.
23791
23792         * configure.ac (--with-demangler-in-ld): Added
23793         (HAVE_LD_DEMANGLE): Define if ld supports --demangle when
23794         --with-demangler-in-ld is used.
23795         * config.in: Regenerated.
23796         * configure: Likewise.
23797
23798 2004-07-07  Roger Sayle  <roger@eyesopen.com>
23799
23800         * config/rs6000/rs6000.c (struct processor_costs): Add new fields
23801         for simple floating point operations "fp", double precision
23802         multiplication "dmul", and single and double precision division
23803         "sdiv" and "ddiv".  Update all CPU variant tables as appropriate.
23804         (ppc630_cost): New table split from ppc620_cost, to distinguish
23805         differences in floating point latencies.
23806         (rs6000_override_options): Use ppc630_cost for PROCESSOR_PPC630.
23807         (rs6000_rtx_costs): Add support for single and double precision
23808         floating point addition, subtraction, multiplication, division,
23809         fused-multiply-add, fused-multiply-sub, negation, absolute value
23810         and negative absolute value.  Tweak MEM case to use prefered idiom.
23811
23812 2004-07-07  Richard Henderson  <rth@redhat.com>
23813
23814         * tree-flow-inline.h (may_propagate_copy): Move...
23815         * tree-ssa-copy.c (may_propagate_copy): ... here.  Fail if we
23816         attempt to copy between types requiring conversion.
23817         * tree-flow.h (may_propagate_copy): Update decl.
23818         * tree-ssa-dom.c (cprop_operand): Tidy redundant tests.
23819
23820 2004-07-07  Jakub Jelinek  <jakub@redhat.com>
23821
23822         * config/i386/i386.c (override_options): Don't set x86_prefetch_sse
23823         from -mtune= option.
23824
23825 2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
23826
23827         * builtins.c: Rename movstr*, except for movstrict*, to
23828         movmem* and clrstr* to clrmem*.
23829         * expr.c: Likewise.
23830         * expr.h: Likewise.
23831         * genopinit.c: Likewise.
23832         * integrate.c: Likewise.
23833         * local-alloc.c: Likewise.
23834         * optabs.c: Likewise.
23835         * optabs.h: Likewise.
23836         * config/alpha/alpha.h: Likewise.
23837         * config/alpha/alpha.md: Likewise.
23838         * config/arm/arm-protos.h: Likewise.
23839         * config/arm/arm.c: Likewise.
23840         * config/arm/arm.md: Likewise.
23841         * config/avr/avr.md: Likewise.
23842         * config/c4x/c4x.c: Likewise.
23843         * config/c4x/c4x.md: Likewise.
23844         * config/frv/frv.md: Likewise.
23845         * config/i386/i386-protos.h: Likewise.
23846         * config/i386/i386.c: Likewise.
23847         * config/i386/i386.h: Likewise.
23848         * config/i386/i386.md: Likewise.
23849         * config/i860/i860.c: Likewise.
23850         * config/i860/i860.md: Likewise.
23851         * config/ip2k/ip2k.md: Likewise.
23852         * config/ip2k/libgcc.S: Likewise.
23853         * config/ip2k/t-ip2k: Likewise.
23854         * config/m32r/m32r.c: Likewise.
23855         * config/m32r/m32r.md: Likewise.
23856         * config/mcore/mcore.md: Likewise.
23857         * config/mips/mips.c: Likewise.
23858         * config/mips/mips.md: Likewise.
23859         * config/ns32k/ns32k.c: Likewise.
23860         * config/ns32k/ns32k.h: Likewise.
23861         * config/ns32k/ns32k.md: Likewise.
23862         * config/pa/pa.c: Likewise.
23863         * config/pa/pa.md: Likewise.
23864         * config/pdp11/pdp11.h: Likewise.
23865         * config/pdp11/pdp11.md: Likewise.
23866         * config/rs6000/rs6000.c: Likewise.
23867         * config/rs6000/rs6000.md: Likewise.
23868         * config/s390/s390-protos.h: Likewise.
23869         * config/s390/s390.c: Likewise.
23870         * config/s390/s390.md: Likewise.
23871         * config/sh/lib1funcs.asm: Likewise.
23872         * config/sh/sh.c: Likewise.
23873         * config/sh/sh.md: Likewise.
23874         * config/sh/t-sh: Likewise.
23875         * config/sparc/sparc.h: Likewise.
23876         * config/vax/vax.md: Likewise.
23877         * config/xtensa/xtensa.c: Likewise.
23878         * config/xtensa/xtensa.md: Likewise.
23879         * doc/invoke.texi: Likewise.
23880         * doc/md.texi: Likewise.
23881         * doc/rtl.texi: Likewise.
23882
23883 2004-07-07  Richard Sandiford  <rsandifo@redhat.com>
23884
23885         PR target/16407
23886         * config/mips/mips-protos.h (mips_declare_common_object): Declare.
23887         * config/mips/mips.c (mips_declare_common_object): New function,
23888         mostly split out from...
23889         (mips_output_aligned_decl_common): ...here.
23890         * config/mips/mips.h (ASM_OUTPUT_LOCAL): Remove in favor of...
23891         (ASM_OUTPUT_ALIGNED_LOCAL): ...this new definition.
23892         * config/mips/iris6.h (ASM_OUTPUT_ALIGNED_LOCAL): Undefine this
23893         rather than ASM_OUTPUT_LOCAL.  Call mips_declare_common_object.
23894
23895 2004-07-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23896
23897         PR c/16392
23898         * function.c (assign_parms): Fix typo from previous change.
23899
23900 2004-07-07  Jason Merrill  <jason@redhat.com>
23901
23902         PR c++/15815
23903         * doc/extend.texi (C++ Interface): Correct information and
23904         discourage use.
23905
23906 2004-07-07  Vladimir Makarov  <vmakarov@redhat.com>
23907
23908         PR target/16130
23909         PR target/16142
23910         PR target/16143
23911         * config/ia64/ia64.c (ia64_dfa_new_cycle): Reset DFA state for asm
23912         insn.
23913
23914 2004-07-06  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
23915
23916         PR target/1679.
23917         * config/m32r/m32r.c (m32r_function_symbol): New function:
23918         Generate a symbol name RTX with the correct m32r specific flags
23919         set.
23920         (block_move_call): Use new function to generate correct symbol.
23921         * config/m32r/m32r-protos.h: Add prototype for new funcion.
23922         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Use the new
23923         function.
23924
23925 2004-07-07  Nathan Sidwell  <nathan@codesourcery.com>
23926
23927         * tree.h (TYPE_BINFO_OFFSET, TYPE_BINFO_VTABLE,
23928         TYPE_BINFO_VIRTUALS, TYPE_BINFO_BASETYPES,
23929         TYPE_BINFO_BASETYPE): Remove.
23930         (BINFO_BASETYPES, BINFO_N_BASETYPES, BINFO_BASETYPE): Rename
23931         to ...
23932         (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): ...
23933         here.
23934         (BINFO_BASEACCESSES, BINFO_BASEACCESS): Rename to ...
23935         (BINFO_BASE_ACCESSES, BINFO_BASE_ACCESS): ... here.
23936         (BINFO_INHERITANCE_CHAIN): Redocument as it is actually used.
23937         (struct tree_binfo): Rename base_types to base_binfos.
23938         * alias.c (record_component_aliases): Adjust BINFO macros.
23939         * dbxout.c (dbxout_type): Likewise.
23940         * dwarf2out.c (gen_member_die): Likewise.
23941         * sdbout.c (sdbout_one_type): Likewise.
23942         * tree-dump.c (deque_and_dump): Likewise.
23943         * config/i386/i386.c (classify_argument,
23944         contains_128bit_aligned_vector_p): Likewise.
23945
23946 2004-07-07  Nick Clifton  <nickc@redhat.com>
23947
23948         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Change
23949         arguments to match TARGET_SETUP_INCOMING_VARARGS prototype.
23950
23951 2004-07-07  Nathan Sidwell  <nathan@codesourcery.com>
23952
23953         * vec.h: Fix the example use.
23954
23955 2004-07-06  Richard Henderson  <rth@redhat.com>
23956
23957         * langhooks-def.h (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Remove.
23958         * langhooks.h (struct lang_hooks): Remove gimple_before_inlining.
23959         * tree-inline.c (copy_body_r, setup_one_parameter,
23960         initialize_inlined_parameters, expand_call_inline,
23961         declare_inline_vars): Don't check it.
23962         (expand_calls_inline): Remove old version, rename new version
23963         from gimple_expand_calls_inline.
23964         * tree-optimize.c (execute_gimple): Remove.
23965         (pass_gimple): Don't run anything.
23966
23967 2004-07-06  Joseph S. Myers  <jsm@polyomino.org.uk>
23968
23969         * doc/sourcebuild.texi: Use semicolons instead of commas in
23970         section title.
23971
23972 2004-07-06  Richard Henderson  <rth@redhat.com>
23973
23974         * tree-sra.c (struct sra_walk_fns): Revert 2004-07-05 change.
23975         (sra_walk_modify_expr, scan_init): Likewise.
23976         (generate_element_zero): Check visited before scanning children.
23977         (generate_element_init): Set visited on error.
23978         (scalarize_init): Handle generate_element_init failure similar
23979         to use_block_copy.
23980
23981 2004-07-06  Joseph S. Myers  <jsm@polyomino.org.uk>
23982
23983         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Define.
23984         (warning, error, pedwarn, sorry): Use ATTRIBUTE_GCC_FE_DIAG.
23985
23986 2004-07-06  Richard Henderson  <rth@redhat.com>
23987
23988         * config/i386/i386.c (legitimize_pic_address): Make static.
23989         (legitimize_address): Handle CONST with TLS operand.
23990         (ix86_expand_move): Don't call legitimize_pic_address directly.
23991         * config/i386/i386-protos.h (legitimize_pic_address): Remove.
23992
23993 2004-07-06  Roger Sayle  <roger@eyesopen.com>
23994
23995         * ifcvt.c (struct noce_if_info): Add a Boolean b_unconditional field.
23996         (noce_try_sign_mask): Tweak rtx_cost check if t is evaluated anyway.
23997         (noce_process_if_block): Initialize if_info.b_unconditional if insn_b
23998         is currently executed unconditionally, i.e. not in "else_bb".
23999
24000 2004-07-06  Steven Bosscher  <stevenb@suse.de>
24001
24002         * config/alpha/alpha.c (alpha_use_dfa_pipeline_interface): Remove.
24003         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24004         * config/arm/arm.c (arm_use_dfa_pipeline_interface): Remove.
24005         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24006         * config/frv/frv.c (frv_use_dfa_pipeline_interface): Remove.
24007         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24008         * config/i386/i386.c (ia32_use_dfa_pipeline_interface): Remove.
24009         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24010         * config/ia64/ia64.c (ia64_use_dfa_pipeline_interface): Remove.
24011         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24012         * config/pa/pa.c (hhpa_use_dfa_pipeline_interface): Remove.
24013         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24014         * config/sparc/sparc.c (sparc_use_dfa_pipeline_interface): Remove.
24015         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24016         * config/v850/v850.c (v850_use_dfa_pipeline_interface): Remove.
24017         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24018
24019 2004-07-06  Daniel Berlin  <dberlin@dberlin.org>
24020
24021         * dojump.c (do_jump): REFERENCE_EXPR is dead.
24022         * expr.c (expand_expr_real_1): Ditto.
24023         * tree-inline.c (estimate_num_insns_1): Ditto.
24024         * tree-pretty-print.c (dump_generic_node): Ditto.
24025         (op_symbol): Ditto.
24026         * tree.def: Ditto.
24027
24028 2004-07-06  Daniel Berlin  <dberlin@dberlin.org>
24029
24030         * tree-ssa-pre.c (reference_node_pool): New pool.
24031         (find_or_generate_expression): Class 'r' is okay too.
24032         (create_value_expr_from): Ditto.
24033         (add_to_sets): LHS should not include vuses.
24034         (eliminate): Ditto.
24035         (compute_avail): Reverse ordering of tests.
24036         Valuize INDIRECT_REF as well.
24037
24038 2004-07-06  Richard Sandiford  <rsandifo@redhat.com>
24039
24040         PR rtl-optimization/16380
24041         * loop.c (check_dbra_loop): Sink comparison instructions if they
24042         do something other than set cc0.
24043
24044 2004-07-06  James E Wilson  <wilson@specifixinc.com>
24045
24046         * doc/interface.texi (longjmp and automatic variables): Delete
24047         paragraph recommending taking the address of a variable.
24048
24049 2004-07-06  Nathan Sidwell  <nathan@codesourcery.com>
24050
24051         * vec.h (VEC_embedded_alloc): Remove.
24052         (VEC_embedded_size, VEC_embedded_init): New.
24053         (VEC_alloc, VEC_reserve, VEC_safe_push, VEC_safe_insert): Add
24054         MEM_STAT_INFO.
24055         (VEC_truncate): New.
24056         (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL.
24057         (vec_embedded_alloc): Remove.
24058         * vec.c (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL, adjust.
24059         (vec_embedded_alloc): Remove.
24060
24061 2004-07-06  Mark Mitchell  <mark@codesourcery.com>
24062
24063         * Makefile.in (langhooks.o): Do not depend on gt-langhooks.h.
24064         (gt-langhooks.h): Remove.
24065
24066 2004-07-06  George Helffrich <george@gly.bris.ac.uk>
24067
24068         * xcoffout.h (DBX_FINISH_SYMBOL): Fix typo.
24069
24070 2004-07-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
24071
24072         * config/sparc/sparc.c (get_pc_symbol): Rename into
24073         add_pc_to_pic_symbol.
24074         (get_pc_symbol_name): Rename into add_pc_to_pic_symbol_name.
24075         (load_pic_register): Account for previous changes.
24076         Use reg_names.  Don't create the label twice.
24077         * config/sparc/sparc.md (UNSPEC_GET_PC): Rename into
24078         UNSPEC_LOAD_PCREL_SYM.
24079         (get_pc): Rename into load_pcrel_sym.  Add predicate to
24080         operands.  Remove condition.
24081
24082 2004-07-06  Nathan Sidwell  <nathan@codesourcery.com>
24083
24084         * dbxout.c (dbxout_type): Don't test whether the binfo slot of
24085         RECORD, UNION & QUAL_UNION is actually a binfo.
24086
24087         * tree.h (TREE_VIA_VIRTUAL): Rename to ...
24088         (BINFO_VIRTUAL_P): ... here. Require TREE_BINFO only.
24089         (BINFO_MARKED, BINFO_FLAG_[16]): New binfo flags.
24090         * dbxout.c (dbxout_type): Use BINFO_VIRTUAL_P.
24091         * dwarf2out.c (add_data_member_location_attribute): Likewise.
24092         (gen_inheritance_die): Likewise.
24093         * tree-dump.c (deque_and_dump): Likewise.
24094         * doc/c-tree.texi (Binfos): Add under reconstruction note.
24095
24096 2004-07-06  Steven Bosscher  <stevenb@suse.de>
24097
24098         * config/mcore/mcore.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
24099         Define.
24100         * config/mcore/mcore.md: Model memory latency with a simple DFA
24101         pipeline description instead of a define_function_unit.
24102
24103 2004-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24104
24105         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Extra arg.
24106         * langhooks.h (var_mod_type_p): Likewise.
24107         * c-decl.c (finish_decl): Add extra arg to variably_modified_type_p.
24108         * expr.c (count_type_elements): Properly handle return from
24109         array_type_nelts and properly test for overflow.
24110         * gimplify.c (gimplify_init_constructor): Properly handle return
24111         from array_type_nelts.
24112         (gimplify_addr_expr): Remove redundant clear of TREE_SIDE_EFFECTS.
24113         * integrate.c (copy_decl_for_inlining): Correct comments.
24114         * tree-inline.c (remap_decl): Update comments, remove dead code,
24115         and copy DECL_FIELD_OFFSET and DECL_QUALIFIER, if they exist.
24116         (remap_type): Only remap if variably modified by vars in function
24117         being inlined.
24118         (copy_body_r): Use compatible_type langhooks to see when can fold.
24119         (setup_one_parameter): Don't remap type.
24120         (inline_forbidden_p_1): Add arg to variably_modified_type_p.
24121         * tree.c (recompute_tree_invarant_for_addr_expr): Properly
24122         compute TREE_INVARIANT for decl case.
24123         (find_var_from_fn): New function.
24124         (variably_modified_type_p): Add arg and call new function.
24125         * tree.h (variably_modified_type_p): Add extra arg.
24126
24127 2004-07-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
24128
24129         * config/sparc/sparc.md (nonlocal_goto): Remove disabled code.
24130         (goto_handler_and_restore_v9): Delete disabled insn.
24131         (goto_handler_and_restore_v9_sp64): Likewise.
24132
24133 2004-07-05  Roger Sayle  <roger@eyesopen.com>
24134
24135         * calls.c (load_register_parameters): Call expand_shift instead
24136         of expand_binop with ashl_optab (or other shift optab) directly.
24137         * expr.c (emit_group_load, emit_group_store): Likewise.
24138         * function.c (assign_parm_setup_block): Likewise.
24139         * stmt.c (shift_return_value): Likewise.
24140
24141 2004-07-05  Jakub Jelinek  <jakub@redhat.com>
24142
24143         * expr.c (expand_assignment): Disable the bitfield += optimizations.
24144
24145 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
24146
24147         * doc/sourcebuild.texi: Revert previous patch.
24148
24149 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
24150
24151         * c-decl.c, config/m32r/m32r.c, expr.c, optabs.c: Don't check
24152         TARGET_MEM_FUNCTIONS.
24153         * system.h: Poison TARGET_MEM_FUNCTIONS.
24154         * libfuncs.h (LTI_bcopy, LTI_bcmp, LTI_bzero, bcopy_libfunc,
24155         bcmp_libfunc, bzero_libfunc): Remove.
24156         * optabs.c (init_obtabs): Don't set bcopy_libfunc, bcmp_libfunc or
24157         bzero_libfunc.
24158         * doc/tm.texi (TARGET_MEM_FUNCTIONS): Remove.
24159         * doc/standards.texi: Don't mention calling BSD string functions.
24160         * doc/invoke.texi: Likewise.  Mention that memmove may be called.
24161         * config/vax/t-memfuncs: New.
24162         * config/memcmp.c, config/memcpy.c, config/memmove.c,
24163         config/memset.c: New.
24164         * config/pdp11/t-pdp11 (LIB2FUNCS_EXTRA): Use these files.
24165         * config.gcc (vax-*-bsd*, vax-*-sysv*, vax-*-ultrix*): Use
24166         vax/t-memfuncs.
24167         * config/alpha/alpha.h, config/arc/arc.h, config/arm/arm.h,
24168         config/avr/avr.h, config/c4x/c4x.h, config/cris/aout.h,
24169         config/elfos.h, config/gnu.h, config/h8300/h8300.h,
24170         config/i386/gas.h, config/ia64/ia64.h, config/interix.h,
24171         config/ip2k/ip2k.h, config/lynx-ng.h, config/m32r/m32r.h,
24172         config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h,
24173         config/netbsd.h, config/openbsd.h, config/pa/pa.h,
24174         config/rs6000/rs6000.h, config/rtems.h, config/s390/s390.h,
24175         config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
24176         config/svr3.h: Don't define TARGET_MEM_FUNCTIONS.
24177
24178 2004-07-05  Richard Henderson  <rth@redhat.com>
24179
24180         * function.c (assign_parm_setup_reg): Properly rename variables in
24181         FUNCTION_ARG_CALLEE_COPIES section.
24182
24183 2004-07-05  Zack Weinberg  <zack@codesourcery.com>
24184
24185         * tree-mudflap.c: Include cgraph.h.
24186         (mf_init_extern_trees): Rename to mudflap_init.  Export.
24187         Rewrite to create synthetic declarations instead of looking
24188         up declarations from mf-runtime.h.
24189         (mf_make_builtin, mf_make_cache_struct_type): New functions.
24190         (mf_cache_shift_decl, mf_cache_mask_decl, mf_unregister_fndecl):
24191         Correct commentary.
24192         (execute_mudflap_function_decls, mudflap_register_call):
24193         Don't call mf_init_extern_trees.
24194         (mudflap_finish_file): Use cgraph_build_static_cdtor.
24195
24196         * tree-mudflap.h: Update prototypes.
24197         * c-mudflap.c: Delete file.
24198         * c-common.c: Include tree-mudflap.h.
24199         (c_common_nodes_and_builtins): Call mudflap_init if appropriate.
24200         * Makefile.in: Remove all references to c-mudflap.o.
24201         Update dependencies.
24202
24203 2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24204
24205         * pa.md (prefetch, prefetch_32, prefetch_64): Only allow short
24206         displacements with the spatial-locality cache-control completer.
24207
24208 2004-07-05  Zack Weinberg  <zack@codesourcery.com>
24209
24210         * langhooks.c: Don't include gt-langhooks.h.
24211         (var_labelno): Delete.
24212         (lhd_set_decl_assembler_name): Do not append a distinguishing
24213         number to file-scope internal-linkage declarations for the first
24214         input file, even if they have DECL_CONTEXT set.  Use DECL_UID of
24215         the declaration itself (if at block scope), or its containing
24216         TRANSLATION_UNIT_DECL (if at file scope) for the distinguishing
24217         number.
24218
24219         * opts.c (cur_in_fname): New global.
24220         * opts.h: Declare it.
24221         * tree.c: Include opts.h.
24222         (make_node_stat): If creating a TRANSLATION_UNIT_DECL, give it
24223         DECL_UID equal to cur_in_fname.
24224         (copy_node_stat): Do not change DECL_UID when copying a
24225         TRANSLATION_UNIT_DECL.
24226         (build_common_tree_nodes): Adjust next_decl_uid to reserve the
24227         range 0 .. num_in_fnames-1 for TRANSLATION_UNIT_DECLs.
24228
24229         * c-decl.c (c_static_assembler_name): Delete.
24230         * c-tree.h (c_static_assembler_name): Delete prototype.
24231         * c-lang.c, objc/objc-lang.c: Don't override
24232         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME.
24233
24234         * Makefile.in (tree.o): Update dependencies.
24235         (GTFILES): Remove langhooks.c.
24236
24237 2004-07-05  Roger Sayle  <roger@eyesopen.com>
24238
24239         * fold-const.c (fold) <TRUNC_MOD_EXPR>: Optimize unsigned modulus
24240         by a power of two into a bit-wise AND, i.e. "X % C" as "X & (C-1)".
24241         Normalize "X % C" as "X % -C" for signed modulus and negative C.
24242         Optimize "X % -Y" as "X % Y" for signed modulus.
24243         <EQ_EXPR>: Recursively call "fold" when transforming "(X % Y) == 0"
24244         into "((unsigned) X % Y) == 0".
24245
24246 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
24247
24248         * sourcebuild.texi (Config Fragments): Use @comma{} in
24249         cross-reference to section title.
24250
24251 2004-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24252
24253         * tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.
24254         * gimplify.c (gimple_add_tmp_var, gimplify_bind_expr): Use it.
24255         (gimplify_target_expr, gimplify_expr): Likewise.
24256         (copy_if_shared_r): No longer need special case for BIND_EXPR.
24257         (unshare_body, unvisit_body): Only look at nested if BODY_P is
24258         whole function.
24259         (gimplify_compound_lval): See if we can strip any useless conversion.
24260         (gimplify_modify_expr, gimplify_modify_expr_to_memcpy): Take size
24261         from RHS, not LHS.
24262         (gimplify_modify_expr_to_memset): Likewise.
24263         (gimplify_expr, case CONSTRUCTOR): Handle use as statement.
24264         * tree-inline.c (setup_one_parameter): Use DECL_SEEN_IN_BIND_EXPR_P.
24265         (declare_inline_vars): Likewise.
24266         (walk_type_fields): New function.
24267         (walk_tree): Use it.
24268         * tree-nested.c (create_tmp_var_for): Show seen in BIND_EXPR.
24269
24270         * tree-sra.c (struct sra_walk_fns): Init function now returns bool.
24271         (sra_walk_modify_expr): Allow init function to fail.
24272         (scan_init): Now returns bool.
24273         (generate_element_init): If can't understand INIT, return false.
24274         (scalarize_init): Return false if generate_element_init does.
24275
24276         * tree-pretty-print.c (dump_generic_node, case ARRAY_TYPE): Properly
24277         print bounds.
24278
24279         * expr.c (expand_expr_real_1, case SWITCH_EXPR): Don't check against
24280         bounds if bounds aren't constant.
24281
24282         * tree-cfg.c (verify_expr): Use CHECK_OP in binary case.
24283
24284         * function.c, langhooks-def.h, langhooks.h: Move max_size hook
24285         to type hooks; remove bogus PARAMS.
24286
24287 2004-07-05  Nathan Sidwell  <nathan@codesourcery.com>
24288
24289         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Use TYPE_LANG_SLOT_1.
24290         * dwarf2out.c (add_data_member_location_attribute): Check for
24291         TREE_BINFO.
24292         * tree.c (tree_node_kinds): Add "binfos".
24293         (binfo_lang_slots): New.
24294         (make_node_stat): Add TREE_BINFO.
24295         (make_tree_binfo_stat): New.
24296         (tree_node_structure): Add TREE_BINFO.
24297         * tree.def (TREE_BINFO): New.
24298         * tree.h (REC_OR_UNION_CHECK): Rename to ...
24299         (RECORD_OR_UNION_CHECK): ... here.
24300         (NOT_RECORD_OR_UNION_CHECK): New.
24301         (TRE_VIA_VIRTUAL): Allow TREE_LIST or TREE_BINFO.
24302         (TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD): Adjust for
24303         RECORD_OR_UNION_CHECK.
24304         (TYPE_BINFO): Use RECORD_OR_UNION_CHECK.
24305         (TYPE_LANG_SLOT_1): New.
24306         (BINFO_TYPE, BINFO_OFFSET, BINFO_VTABLE, BINFO_VIRTUALS,
24307         BINFO_BASETYPES, TYPE_BINFO_BASETYPES, BINFO_VPTR_FIELD,
24308         BINFO_BASEACCESSES, BINFO_INHERITANCE_CHAIN): Adjust.
24309         (BINFO_ELTS): Remove.
24310         (BINFO_LANG_SLOT): New.
24311         (struct tree_binfo): New.
24312         (binfo_lang_slots): Declare.
24313         (enum tree_node_structure_enum): Add TS_BINFO.
24314         (union tree_node): Add binfo.
24315         (make_tree_binfo_stat): Declare.
24316         (make_tree_binfo): New.
24317         (enum tree_node_kind): Add binfo_kind.
24318
24319         * objc/objc-act.c (start_class, objc_declare_protocols,
24320         start_protocols): Use TYPE_LANG_SLOT_1.
24321         * objc/objc-act.h (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): Rename
24322         to ...
24323         (CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS): ... here.
24324         (CLASS_IVARS, CLASS_RAW_IVARS, CLASS_STATIC_TEMPLATE,
24325         CLASS_CATEGORY_LIST, CLASS_PROTOCOL_LIST, CLASS_OWN_IVARS,
24326         PROTOCOL_LIST, PROTOCOL_FORWARD_DECL): Use TYPE_LANG_SLOT_1.
24327
24328 2004-07-05  Steven Bosscher  <stevenb@suse.de>
24329
24330         * rtl.h (struct rtx_def): Remove the integrated flag.
24331         Use the return_val flag for MEM_SCALAR_P.
24332         Reshuffle and update flags in CLEAR_RTX_FLAGS.
24333
24334 2004-07-05  Richard Sandiford  <rsandifo@redhat.com>
24335
24336         PR target/16357
24337         * config/mips/mips.c (mips_block_move_straight): Pass BLKmode memrefs
24338         to mips_expand_unaligned_load, mips_expand_unaligned_store, and
24339         move_by_pieces.
24340
24341 2004-07-05  Josef Zlomek  <zlomekj@suse.cz>
24342
24343         * var-tracking.c: Fix some comments.
24344         (frame_stack_adjust): New.
24345         (vt_stack_adjustments): Init stack_adjust of entry block to
24346         minus stack adjustment of function prologue.
24347         (adjust_stack_reference): Do not adjust if adjustment == 0.
24348         (compute_bb_dataflow): Use plus_constant instead of gen_rtx_PLUS.
24349         (emit_notes_in_bb): Likewise.
24350         (vt_add_function_parameters): Do not adjust locations of
24351         function arguments.
24352         (vt_initialize): Compute the stack adjustment of function
24353         prologue and offset the initial "location" of frame_base_decl
24354         from the stack pointer after prologue.
24355
24356 2004-07-04  Richard Henderson  <rth@redhat.com>
24357
24358         * function.c (struct assign_parm_data_all): New.
24359         (struct assign_parm_data_one): New.
24360         (assign_parms_initialize_all, assign_parms_augmented_arg_list,
24361         assign_parm_find_data_types, assign_parms_setup_varargs,
24362         assign_parm_find_entry_rtl, assign_parm_is_stack_parm,
24363         assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl,
24364         assign_parm_adjust_stack_rtl, assign_parm_setup_block_p,
24365         assign_parm_setup_block, assign_parm_setup_reg,
24366         assign_parm_setup_stack, assign_parms_unsplit_complex): Split from ...
24367         (assign_parms): ... here.
24368
24369 2004-07-04  Daniel Berlin  <dberlin@dberlin.org>
24370
24371         * tree-ssa-pre.c (bb_value_sets): phi_gen, tmp_gen, new_sets
24372         now are bitmap_set_t's.
24373         (bitmap_insert_into_set): No point in inserting the value if
24374         it's invariant.
24375         (bitmap_set_contains): New function.
24376         (bitmap_set_replace_value): Add comment on why we do it
24377         this way.
24378         (set_contains): Removed.
24379         (bitmap_set_subtract_from_value_set): New name of
24380         set_subtract now that it's arguments are two different
24381         types of sets.
24382         Update callers.
24383         (bitmap_find_leader): Change algorithm used.
24384         (find_or_generate_expression): Update use of functions for new
24385         bitmap sets.
24386         (create_expression_by_pieces): Ditto.
24387         (insert_aux): Ditto.
24388         (insert): Ditto.
24389         (add_to_sets): Ditto.
24390         (init_pre): Ditto.
24391         (execute_pre): Ditto.
24392         (compute_avail): Ditto.
24393         Also ignore virtual phis.
24394
24395 2004-07-04  Richard Sandiford  <rsandifo@redhat.com>
24396
24397         * combine.c (simplify_comparison): Fix comment typo.
24398
24399 2004-07-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
24400
24401         * config/sparc/sparc.c (SIBCALL_SLOT_EMPTY_P): Rename
24402         into LEAF_SIBCALL_SLOT_RESERVED_P after negation.
24403         (eligible_for_sibcall_delay): Adjust use of SIBCALL_SLOT_EMPTY_P.
24404         (output_restore): Change parameter from 'insn' to 'pat'.
24405         (output_return): Adjust call to output_restore.
24406         (output_sibcall): Adjust use of SIBCALL_SLOT_EMPTY_P.
24407         Adjust call to output_restore.
24408
24409 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
24410
24411         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_COMMON): Define __unix__
24412         and assert system is bsd.
24413
24414 2004-07-04  Richard Sandiford  <rsandifo@redhat.com>
24415
24416         * config/mips/mips.h (MASK_DEBUG_C, TARGET_DEBUG_C_MODE): Delete.
24417         (TARGET_SWITCHES): Remove -mdebugc.
24418         * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
24419         (sltu, sleu): Remove TARGET_DEBUG_C_MODE handling.
24420         (seq_[sd]i, sne_[sd]i, sge_[sd]i, sle_[sd]i_reg, sgeu_[sd]i)
24421         (sle_[sd]i_reg): Delete.
24422
24423 2004-07-04  Steven Bosscher  <stevenb@suse.de>
24424
24425         * config/iq2000/iq2000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
24426         Define.
24427         * config/iq2000/iq2000.md: Translate old pipeline description to an
24428         equivalent new one.
24429
24430 2004-07-04  Roger Sayle  <roger@eyesopen.com>
24431
24432         * tree-ssa-ccp.c (set_rhs): Change function to return a bool.
24433         Ensure the replacement rhs is valid gimple before performing
24434         the substitution.  Return false if these sanity checks fail.
24435         (fold_stmt): Only set changed to true, if set_rhs returns true.
24436         (execute_fold_all_builtins): Only call modify_stmt if set_rhs
24437         succeeds.
24438
24439 2004-07-04  Richard Henderson  <rth@redhat.com>
24440
24441         PR c/16348
24442         * c-typeck.c (c_finish_loop): Don't clear cond for cond_is_first loops.
24443
24444 2004-07-04  Mark Mitchell  <mark@codesourcery.com>
24445
24446         * configure.ac (ranlib_flags): New variable.
24447         * Makefile.in (RANLIB_FLAGS): New variable.
24448         (libbackend.a): Use it.
24449         * configure: Regenerated.
24450
24451 2004-07-04  Roger Sayle  <roger@eyesopen.com>
24452
24453         * ifcvt.c (noce_try_sign_mask): Call emit_store_flag to generate
24454         a "sign mask" instead of using ashr_optab directly.
24455
24456 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
24457
24458         * doc/cpp.texi: Don't document what we do for ill-formed expressions.
24459         * doc/cppopts.texi: Clarify processing of command-line defines.
24460
24461 2004-07-04  Gerald Pfeifer  <gerald@pfeifer.com>
24462
24463         * doc/contrib.texi (Contributors): Adjust link for GNU Classpath.
24464
24465 2004-07-04  Richard Henderson  <rth@redhat.com>
24466
24467         * rtl.def (ADDRESSOF): Remove.
24468         * alias.c (rtx_equal_for_memref_p): Don't handle addressof.
24469         (find_base_term, memrefs_conflict_p): Likewise.
24470         * cse.c (fixed_base_plus_p, find_best_addr: Likewise.
24471         (fold_rtx, cse_insn, set_live_p): Likewise.
24472         * dwarf2out.c (mem_loc_descriptor): Likewise.
24473         (add_location_or_const_value_attribute): Likewise.
24474         * emit-rtl.c (copy_insn_1): Likewise.
24475         * explow.c (memory_address): Likewise.
24476         * expmed.c (store_split_bit_field): Likewise.
24477         * expr.c (expand_expr_real_1): Likewise.
24478         * function.c (instantiate_decl
24479         (instantiate_virtual_regs_1, fix_lexical_addr): Likewise.
24480         * genrecog.c (preds, validate_pattern): Likewise.
24481         * integrate.c (copy_rtx_and_substitute): Likewise.
24482         * recog.c (general_operand, register_operand): Likewise.
24483         (memory_address_p): Likwise.
24484         * reload1.c (eliminate_regs, elimination_effects): Likewise.
24485         * rtl.c (copy_rtx): Likewise.
24486         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
24487         (rtx_addr_can_trap_p, nonzero_address_p, address_cost): Likewise.
24488         * rtlhooks.c (gen_lowpart_general): Likewise.
24489         * stmt.c (expand_asm_operands): Likewise.
24490         * web.c (entry_register, replace_ref, web_main): Likewise.
24491         * config/alpha/alpha.c (input_operand, alpha_legitimate_address_p,
24492         alpha_expand_block_move, alpha_expand_block_clear): Likewise.
24493         * config/arm/arm.c (thumb_rtx_costs): Likewise.
24494         * config/c4x/c4x.c (c4x_valid_operands): Likewise.
24495         * config/frv/frv.c (move_destination_operand, move_source_operand,
24496         condexec_dest_operand, condexec_source_operand,
24497         condexec_memory_operand): Likewise.
24498         * config/h8300/h8300.h (PREDICATE_CODES): Likewise.
24499         * config/ia64/ia64.c (general_xfmode_operand): Likewise.
24500         (destination_xfmode_operand): Likewise.
24501         * config/mips/mips.h (PREDICATE_CODES): Likewise.
24502         * config/mn10300/mn10300.c (mn10300_address_cost_1): Likewise.
24503         * config/s390/s390.c (general_s_operand): Likewise.
24504         * config/s390/s390.md (mov*): Likewise.
24505         * config/sparc/sparc.h (PREDICATE_CODES): Likewise.
24506
24507         * c-typeck.c (c_mark_addressable): Don't put_var_into_stack.
24508         * expr.c (expand_expr_real_1): Likewise.
24509         * stmt.c (expand_decl): Likewise.
24510         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
24511
24512         * function.c (struct fixup_replacement, struct insns_for_mem_entry,
24513         postponed_insns, put_var_into_stack, put_reg_into_stack,
24514         schedule_fixup_var_refs, fixup_var_refs, find_fixup_replacement,
24515         fixup_var_refs_insns, fixup_var_refs_insns_with_hash,
24516         fixup_var_refs_insn, fixup_var_refs_1, fixup_memory_subreg,
24517         walk_fixup_memory_subreg, fixup_stack_1, optimize_bit_field,
24518         gen_mem_addressof, flush_addressof, put_addressof_into_stack,
24519         purge_bitfield_addressof_replacements, purge_addressof_replacements,
24520         purge_addressof_1, insns_for_mem_hash, insns_for_mem_comp,
24521         struct insns_for_mem_walk_info, insns_for_mem_walk,
24522         compute_insns_for_mem, is_addressof, purge_addressof, setjmp_protect,
24523         setjmp_protect_args): Remove.
24524         (push_function_context_to): Don't handle var_refs_queue.
24525         (pop_function_context_from, free_after_compilation): Likewise.
24526         (instantiate_virtual_regs): Don't handle parm_reg_stack_loc.
24527         (assign_parms, allocate_struct_function): Likewise.
24528         (use_register_for_decl): New.
24529         (expand_function_end): Don't setjmp_protect.
24530         * function.h (struct emit_status): Update commentary.
24531         (struct function): Remove x_max_parm_reg, x_parm_reg_stack_loc.
24532         (max_parm_reg, parm_reg_stack_loc): Remove.
24533         * passes.c (DFI_addressof): Remove.
24534         (dump_file_info): Remove addressof.
24535         (rest_of_handle_addressof): Remove.
24536         (rest_of_compilation): Don't call it.
24537         * rtl.h (ADDRESSOF_REGNO, ADDRESSOF_DECL): Remove.
24538         * stmt.c (expand_decl): Use use_register_for_decl.
24539         * tree.h: Update decls.
24540         * web.c (mark_addressof): Remove.
24541         * doc/invoke.texi (-dF): Remove.
24542
24543 2004-07-03  Richard Henderson  <rth@redhat.com>
24544
24545         * config/ia64/ia64.c (spill_xfmode_operand): Use assign_stack_temp
24546         instead of gen_mem_addressof.
24547         * config/ia64/ia64.md (movxf): Use assign_stack_temp to handle
24548         TImode output register.
24549
24550 2004-07-03  Richard Henderson  <rth@redhat.com>
24551
24552         PR tree-optimization/16341
24553         * tree-sra.c (sra_walk_function): Increment to next stmt before
24554         processing the current stmt.
24555         (sra_insert_after): Always use BSI_SAME_STMT.
24556
24557 2004-07-03  Richard Henderson  <rth@redhat.com>
24558
24559         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Don't fold
24560         fp plus with minus.
24561
24562 2004-07-03  Joseph S. Myers  <jsm@polyomino.org.uk>
24563
24564         * tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
24565         with tree_int_cst_equal.
24566
24567 2004-07-03  Andreas Schwab  <schwab@suse.de>
24568
24569         * config/ia64/ia64.md: Define new attribute "empty".
24570         (prologue_use, nop_x, insn_group_barrier): Set it.
24571
24572         * config/ia64/ia64.c (ia64_reorg): When looking for trailing call
24573         skip over "empty" insns.
24574
24575 2004-07-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24576
24577         * tree-inline.c (initialize_inlined_parameters): Pass proper function
24578         context to gimplify_body.
24579         (walk_tree): Don't walk into types twice.
24580         (walk_tree, case POINTER_TYPE): Deal with mutually recursive pointers.
24581
24582         * tree-sra.c (generate_element_init): Remove any useless conversions.
24583
24584         * gimplify.c (gimplify_conversion): Remove stripping useless
24585         conversions from here.
24586         (gimplify_expr): Put it here, in place of call to STRIP_MAIN_TYPE_NOPS.
24587         (gimplify_modify_expr_to_memcpy, gimplify_variable_sized_compare):
24588         Unshare before substituting PLACEHOLDER_EXPR.
24589         (gimplify_modify_expr_to_memset): Likewise.
24590         Pass address of TO to memset, not TO itself.
24591         (gimplify_init_constructor): Make copy of OBJECT so we have it each
24592         time we make an expression (to match a PLACEHOLDER_EXPR).
24593
24594         * tree-ssa.c (tree_ssa_useless_type_conversion): Also look at
24595         VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
24596         * tree-ssa-ccp.c (fold_stmt): Call just STRIP_USELESS_TYPE_CONVERSION.
24597         * tree-ssa-dom.c (local_fold): Likewise.
24598
24599         * langhooks-def.h (LANG_HOOKS_TYPE_MAX_SIZE): New langhook.
24600         * langhooks.h (strct lang_hooks): New field type_max_size.
24601         * function.c (assign_temp): Call it.
24602
24603 2004-07-03  Steven Bosscher  <stevenb@suse.de>
24604
24605         * config/sh/sh.c (sh_use_dfa_interface): Add TARGET_SH1.
24606         * config/sh/sh.md: Convert the SH1 pipeline description to
24607         a DFA model.
24608
24609 2004-07-02  Zack Weinberg  <zack@codesourcery.com>
24610
24611         * c-decl.c (struct c_binding): Remove contour field; add
24612         depth, invisible, nested fields.
24613         (B_IN_SCOPE, B_IN_CURRENT_SCOPE, B_IN_FILE_SCOPE)
24614         (B_IN_EXTERNAL_SCOPE): New convenience macros.
24615         (bind): Add invisible and nested arguments. Initialize
24616         new fields of struct c_binding; adjust loop scanning for
24617         insertion point.
24618         (free_binding_and_advance): Clear structure with memset.
24619         (pop_scope): Adjust to match.  Set DECL_CONTEXT on everything
24620         in file scope, even if it's in external scope too.
24621         (pushdecl): Adjust to match.  Create invisible file-scope
24622         declarations for block-scope forward declarations of static functions.
24623         (pushtag, warn_if_shadowing, pushdecl_top_level, implicitly_declare)
24624         (undeclared_variable, lookup_label, declare_label, define_label)
24625         (lookup_tag, lookup_name, lookup_name_in_scope, builtin_function)
24626         (c_make_fname_decl, store_parm_decls_newstyle, identifier_global_value)
24627         (store_parm_decls_oldstyle): Adjust to match.
24628         (diagnose_mismatched_decls): Correct handling of linkage clashes.
24629         (merge_decls): No need to copy C_DECL_IN_EXTERNAL_SCOPE.
24630
24631         * c-tree.h (C_DECL_IN_EXTERNAL_SCOPE): Delete.
24632         (C_DECL_DECLARED_BUILTIN, C_DECL_REGISTER): Slide down one.
24633
24634 2004-07-02  Richard Henderson  <rth@redhat.com>
24635
24636         * c-decl.c (grokdeclarator): Don't frob current_function_decl
24637         around variable_size.
24638         (set_decl_nonlocal): Remove.
24639         (store_parm_decls): Add stmts for pending sizes.
24640         * calls.c (calls_function, calls_function_1): Remove.
24641         (precompute_arguments): Don't call it.
24642         * cfgexpand.c (set_save_expr_context): Remove.
24643         (tree_expand_cfg): Don't call it.
24644         * dwarf2out.c (add_bound_info): Don't handle SAVE_EXPR.
24645         (dwarf2out_finish): Likewise.
24646         * expr.c (emit_block_move): Adjust addresses to BLKmode.
24647         (store_constructor): Don't pre-evaluate SAVE_EXPR.
24648         (safe_from_p): Don't queue SAVE_EXPRs.
24649         (expand_expr_real_1 <case SAVE_EXPR>): Rewrite to expect,
24650         or build plain VAR_DECLs.
24651         * fold-const.c (twoval_comparison_p): Don't look at SAVE_EXPR_RTL.
24652         (fold): Likewise.
24653         (fold_checksum_tree): Don't special-case SAVE_EXPR.
24654         * function.c (free_after_compilation): Don't clear x_save_expr_regs.
24655         (put_var_into_stack): Don't handle SAVE_EXPR.
24656         (gen_mem_addressof): Likewise.
24657         * function.h (struct function): Remove x_save_expr_regs.
24658         (save_expr_regs): Remove.
24659         * gengtype.c (adjust_field_tree_exp): Don't special-case SAVE_EXPR.
24660         * print-tree.c (print_node): Don't dump SAVE_EXPR_NOPLACEHOLDER.
24661         * stor-layout.c (variable_size): Don't set it.
24662         (force_type_save_exprs, force_type_save_exprs_1): Remove.
24663         * tree-inline.c (remap_save_expr): Remove fn argument.  Update
24664         all callers.  Don't set SAVE_EXPR_CONTEXT.
24665         * tree-inline.h (remap_save_expr): Update decl.
24666         * tree.c (save_expr): Update build size.
24667         (first_rtl_op): Don't handle SAVE_EXPR.
24668         (unsave_expr_1, contains_placeholder_p): Likewise.
24669         (decl_function_context): Likewise.
24670         * tree.def (SAVE_EXPR): Remove args 1 and 2.
24671         * tree.h (SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL): Remove.
24672         (SAVE_EXPR_NOPLACEHOLDER, SAVE_EXPR_PERSISTENT_P): Remove.
24673
24674 2004-07-03  Joseph S. Myers  <jsm@polyomino.org.uk>
24675
24676         * doc/bugreport.texi, doc/configterms.texi, doc/contrib.texi,
24677         doc/contribute.texi, doc/cpp.texi, doc/cppinternals.texi,
24678         doc/extend.texi, doc/install.texi, doc/invoke.texi, doc/md.texi,
24679         doc/portability.texi, doc/tree-ssa.texi, doc/trouble.texi: Avoid
24680         some first-person references and patronizing comments.  Based on
24681         printed manual.
24682         * doc/invoke.texi: Don't reference fortran@gnu.org.
24683         * doc/trouble.texi (Warning when a non-void function value is
24684         ignored): Rewrite.  From Russ Allbery and Chris Devers.
24685
24686 2004-07-02  Daniel Berlin  <dberlin@dberlin.org)
24687
24688         * tree-ssa-pre.c (bitmap_set_t): New.
24689         (bb_value_sets): avail_out is now a bitmap_set_t.
24690         (bitmap_find_leader): New function.
24691         (bitmap_value_insert_into_set): Ditto.
24692         (bitmap_set_copy): Ditto.
24693         (bitmap_value_replace_in_set): Ditto.
24694         (bitmap_set_contains_value): Ditto.
24695         (bitmap_set_new): Ditto.
24696         (bitmap_set_pool): New pool.
24697         (find_or_generate_expression): Use bitmap_ functions on AVAIL sets.
24698         (insert_aux): Ditto.
24699         (add_to_sets): Ditto.
24700         (compute_avail): Ditto
24701         (eliminate): Ditto.
24702         (init_pre): Ditto.
24703         (fini_pre): Ditto.
24704         (execute_pre): Ditto.
24705
24706 2004-07-02  Roger Sayle  <roger@eyesopen.com>
24707
24708         * config/rs6000/rs6000.c (struct processor_costs): New structure
24709         used to hold instruction latencies/sizes for processor types.
24710         (rs6000_cost): New global variable pointing to current CPU's costs.
24711         (rs6000_override_options): Initialize rs6000_cost to point to the
24712         appropriate cost table based upon rs6000_cpu and optimize_size.
24713         (rs6000_rtx_costs): Use rs6000_cost to avoid hardcoding processor
24714         timings inline.
24715
24716 2004-07-02  Richard Henderson  <rth@redhat.com>
24717
24718         * expmed.c (make_tree): Don't use SET_DECL_RTL.
24719
24720 2004-07-02  Steven Bosscher  <stevenb@suse.de>
24721
24722         * tree-flow.h (bb_ann_d): Remove ephi_nodes field.
24723
24724 2004-07-01  Richard Henderson  <rth@redhat.com>
24725
24726         * config/alpha/alpha.c (struct machine_function): Add gp_save_rtx.
24727         (alpha_gp_save_rtx): Use assign_stack_local instead of
24728         gen_mem_addressof.
24729
24730 2004-07-01  Richard Henderson  <rth@redhat.com>
24731
24732         * config/alpha/alpha.c (struct alpha_rtx_cost_data): Add int_div.
24733         (alpha_rtx_cost_data): Update to match.
24734         (alpha_rtx_cost_size): New.
24735         (alpha_rtx_costs): Honor optimize_size.
24736
24737 2004-07-01  Richard Henderson  <rth@redhat.com>
24738
24739         * gimple-low.c (lower_function_body): Don't reset_block_changes here.
24740         * cfgexpand.c (tree_expand_cfg): Do it here.
24741         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): And here.
24742         * config/ia64/ia64.c (ia64_output_mi_thunk): And here.
24743         * config/mips/mips.c (mips_output_mi_thunk): And here.
24744         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): And here.
24745         * config/sh/sh.c (sh_output_mi_thunk): And here.
24746         * config/sparc/sparc.c (sparc_output_mi_thunk): And here.
24747
24748 2004-07-01  Richard Henderson  <rth@redhat.com>
24749
24750         * tree.def (RTL_EXPR): Remove.
24751         * c-typeck.c (lvalue_p): Don't handle it.
24752         * expr.c (safe_from_p): Likewise.
24753         (expand_expr_real_1): Likewise.
24754         * fold-const.c (non_lvalue, operand_equal_p, fold): Likewise.
24755         (fold_checksum_tree, tree_expr_nonnegative_p): Likewise.
24756         * gengtype.c (adjust_field_tree_exp): Likewise.
24757         * stmt.c (warn_if_unused_value): Likewise.
24758         * tree-gimple.c (recalculate_side_effects): Likewise.
24759         * tree-pretty-print.c (dump_generic_node): Likewise.
24760         * tree.c (make_node_stat, first_rtl_op, unsave_expr_1): Likewise.
24761         (unsafe_for_reeval, stabilize_reference, build1_stat): Likewise.
24762         * tree.h (RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, RTL_EXPR_ALT_RTL): Remove.
24763
24764         * stmt.c (struct stmt_status): Remove x_last_expr_type,
24765         x_last_expr_value, x_last_expr_alt_rtl, x_expr_stmts_for_value.
24766         (last_expr_type, last_expr_value, last_expr_alt_rtl): Remove.
24767         (expand_expr_stmt): Merge with expand_expr_stmt_value.  Remove
24768         all the bits that tracked last_expr.
24769         (expand_end_bindings): Don't track last_expr.
24770         (expand_start_stmt_expr, expand_end_stmt_expr): Remove.
24771         (clear_last_expr): Remove.
24772         (expand_asm): Don't call it.
24773         (expand_asm_operands, expand_end_cond): Likewise.
24774         (expand_naked_return, expand_null_return_1): Likewise.
24775         * c-typeck.c (c_begin_compound_stmt): Likewise.
24776         * cfgexpand.c (expand_block): Use expand_expr_stmt.
24777         * expr.c (expand_expr_real_1): Likewise.
24778         * tree.h: Update prototypes.
24779
24780         * function.h (struct sequence_stack): Remove sequence_rtl_expr.
24781         (struct emit_status): Remove sequence_rtl_expr.
24782         (struct function): Remove x_rtl_expr_chain.
24783         (seq_rtl_expr, rtl_expr_chain): Remove.
24784         * function.c (struct temp_slot): Remove rtl_expr.
24785         (assign_stack_temp_for_type): Don't set it.
24786         (free_temp_slots, pop_temp_slots): Don't check it.
24787         (free_after_compilation): Don't clear x_rtl_expr_chain.
24788         (fixup_var_refs): Don't search it.
24789         (preserve_rtl_expr_result, free_temps_for_rtl_expr): Remove.
24790         * emit-rtl.c (start_sequence): Don't use sequence_rtl_expr
24791         or seq_rtl_expr.
24792         (push_topmost_sequence): Likewise.
24793         (end_sequence, init_emit): Likewise.
24794         (start_sequence_for_rtl_expr): Remove.
24795         * expmed.c (make_tree): Build a VAR_DECL instead of an RTL_EXPR.
24796         * rtl.h (preserve_rtl_expr_result): Remove.
24797
24798 2004-07-02  Kazu Hirata  <kazu@cs.umass.edu>
24799
24800         * ifcvt.c, modulo-sched.c, tree-alias-common.c, tree-sra.c,
24801         tree-ssa-copy.c, tree-ssa-dom.c, tree-ssa-pre.c: Fix comment
24802         typos.
24803
24804 2004-07-02  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
24805
24806         * gcc.c (STANDARD_STARTFILE_PREFIX_1): Define.
24807         (STANDARD_STARTFILE_PREFIX_2): Define.
24808         (standard_startfile_prefix_1): Initialize to
24809         STANDARD_STARTFILE_PREFIX_1.
24810         (standard_startfile_prefix_2): Initialize to
24811         STANDARD_STARTFILE_PREFIX_2.
24812         * config/i386/mingw32.h (MD_STARTFILE_PREFIX): Remove.
24813         (STANDARD_STARTFILE_PREFIX_1): Define.
24814         (STANDARD_STARTFILE_PREFIX_2): Define.
24815         * doc/tm.texi (STANDARD_STARTFILE_PREFIX_1): Document.
24816         (STANDARD_STARTFILE_PREFIX_2): Document.
24817
24818 2004-07-01  Richard Henderson  <rth@redhat.com>
24819
24820         * tree-sra.c (sra_walk_expr): Don't maybe_lookup_element_for_expr
24821         in order to disable scalarization.  Instead set a flag and wait
24822         for a candidate decl.
24823
24824 2004-07-01  Joseph S. Myers  <jsm@polyomino.org.uk>
24825
24826         * doc/cppinternals.texi, doc/install.texi, doc/invoke.texi,
24827         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi:
24828         Use terminology "testsuite" and "enumerated".
24829
24830 2004-07-01  Richard Henderson  <rth@redhat.com>
24831
24832         * dwarf2out.c (reg_save): Use INVALID_REGNUM.
24833         (dwarf2out_reg_save, dwarf2out_return_save): Likewise.
24834         (initial_return_save): Likewise.
24835         (flush_queued_reg_saves): Remap register numbers.
24836         (dwarf2out_return_reg): Likewise.
24837
24838 2004-07-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24839
24840         * gimplify.c (gimplify_one_sizepos): Don't do anything if any VAR_DECL.
24841
24842         * tree-pretty-print.c (dump_generic_node, case ARRAY_REF): Use
24843         access functions for lower bound and element size and only output
24844         if lower bound nonzero or element size not same as that of type.
24845         (dump_generic_node, case COMPONENT_REF): Use access func. for offset.
24846
24847 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
24848
24849         * c-pretty-print.c (pp_c_postfix_expression): Fix pasto.
24850
24851 2004-07-01  Per Bothner  <per@bothner.com>
24852
24853         * final.c (final):  Fix typo reported by Aaron W. LaFramboise.
24854
24855 2004-07-01  Jakub Jelinek  <jakub@redhat.com>
24856
24857         * expr.c (expand_assignment): Optimize bitfld += cst for 1 bit
24858         bitfields as well.  STRIP_NOPS from src operand and PLUS_EXPR's
24859         first operand.  Don't optimize if the bitfield is volatile.
24860
24861 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
24862
24863         * c-pretty-print.c (pp_c_postfix_expression): Handle
24864         floating-point comparison operators.
24865         (pp_c_expression): Pass floating-point comparison
24866         operators to pp_c_postfix_expression.
24867
24868 2004-07-01  Roger Sayle  <roger@eyesopen.com>
24869
24870         * simplify-rtx.c (simplify_binary_operation) <PLUS, MINUS>: Use
24871         rtx_cost instead of "had_mult" to determine whether the transformed
24872         expression is cheaper than the original.
24873
24874 2004-07-01  Jerry Quinn  <jlquinn@optonline.net>
24875
24876         * alias.c (get_alias_set, canon_rtx, get_addr,
24877         nonoverlapping_memrefs_p, nonlocal_referenced_p_1, memory_modified_1):
24878         Use MEM_P.
24879         * builtins.c (expand_builtin_prefetch, expand_builtin_profile_func,
24880         expand_builtin): Likewise.
24881         * calls.c (expand_call, emit_library_call_value_1, store_one_arg):
24882         Likewise.
24883         * combine.c (can_combine_p, combinable_i3pat, try_combine,
24884         find_split_point, combine_simplify_rtx, simplify_set, make_extraction,
24885         rtx_equal_for_field_assignment_p, gen_lowpart_for_combine,
24886         record_dead_and_set_regs_1, get_last_value_validate,
24887         mark_used_regs_combine, move_deaths, unmentioned_reg_p_1): Likewise.
24888         * cse.c (check_dependence, canon_hash, equiv_constant,
24889         gen_lowpart_if_possible, cse_insn, invalidate_from_clobbers,
24890         cse_around_loop, cse_check_loop_start, cse_set_around_loop,
24891         count_reg_usage): Likewise.
24892         * cselib.c (rtx_equal_for_cselib_p, add_mem_for_addr, cselib_lookup,
24893         cselib_invalidate_mem, cselib_invalidate_rtx, cselib_record_set,
24894         cselib_record_sets): Likewise.
24895         * dbxout.c (PARM_PASSED_IN_MEMORY, dbxout_symbol,
24896         dbxout_symbol_location, dbxout_parms, dbxout_reg_parms): Likewise.
24897         * ddg.c (mark_mem_use, mark_mem_store, rtx_mem_access_p): Likewise.
24898         * df.c (df_uses_record): Likewise.
24899         * dojump (do_jump): Likewise.
24900         * dwarf2out.c (stack_adjust_offset, mem_loc_descriptor,
24901         loc_descriptor_from_tree, rtl_for_decl_location, add_bound_info,
24902         decl_start_label): Likewise.
24903         * emit-rtl.c (gen_complex_constant_part, gen_highpart,
24904         operand_subword, change_address_1, make_safe_from): Likewise.
24905         * explow.c (break_out_memory_refs, copy_all_regs, validize_mem,
24906         stabilize, force_not_mem): Likewise.
24907         * expmed.c (store_bit_field, store_split_bit_field, extract_bit_field,
24908         expand_mult_const, expand_divmod, emit_store_flag): Likewise.
24909         * expr.c (convert_move, convert_modes, emit_block_move,
24910         emit_group_load, emit_group_store, clear_storage, emit_move_insn,
24911         emit_move_insn_1, expand_assignment, store_expr,
24912         store_constructor_field, store_constructor, store_field,
24913         force_operand, safe_from_p, expand_expr_real_1, expand_increment):
24914         Likewise.
24915         * final.c (cleanup_subreg_operands, alter_subreg,
24916         get_mem_expr_from_op): Likewise.
24917         * flow.c (notice_stack_pointer_modification_1,
24918         init_propagate_block_info, insn_dead_p, mark_set_1, mark_used_regs):
24919         Likewise.
24920         * function.c (mark_temp_addr_taken, preserve_temp_slots,
24921         preserve_rtl_expr_result, put_var_into_stack, fixup_var_refs_1,
24922         optimize_bit_field, flush_addressof, purge_addressof_1,
24923         instantiate_decl, instantiate_virtual_regs_1, assign_parms,
24924         setjmp_protect, setjmp_protect_args, fix_lexical_addr,
24925         keep_stack_depressed): Likewise.
24926         * ifcvt.c (noce_try_cmove_arith, noce_try_abs, noce_operand_ok,
24927         noce_process_if_block, find_memory): Likewise.
24928         * integrate.c (subst_constants, allocate_initial_values): Likewise.
24929         * local-alloc.c (validate_equiv_mem_from_store, memref_referenced_p,
24930         update_equiv_regs): Likewise.
24931         * loop.c (scan_loop, prescan_loop, note_addr_stored, check_store,
24932         maybe_eliminate_biv_1, find_mem_in_note_1): Likewise.
24933         * optabs.c (expand_abs, emit_unop_insn): Likewise.
24934         * passes.c (rest_of_handle_final): Likewise.
24935         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
24936         move2add_note_store): Likewise.
24937         * ra-build.c (detect_remat_webs): Likewise.
24938         * ra-debug.c (dump_static_insn_cost): Likewise.
24939         * ra-rewrite.c (slots_overlap_p, insert_stores): Likewise.
24940         * recog.c (validate_change, apply_change_group, cancel_changes,
24941         validate_replace_rtx_1, general_operand, register_operand,
24942         nonmemory_operand, push_operand, pop_operand, memory_operand,
24943         indirect_operand, asm_operand_ok, offsettable_memref_p,
24944         offsettable_nonstrict_memref_p, constrain_operands,
24945         store_data_bypass_p): Likewise.
24946         * reg-stack.c (subst_stack_regs_pat): Likewise.
24947         * regclass.c (record_operand_costs, scan_one_insn, record_reg_classes,
24948         copy_cost, reg_scan_mark_refs): Likewise.
24949         * regmove.c (optimize_reg_copy_3, stack_memref_p,
24950         combine_stack_adjustments_for_block): Likewise.
24951         * regrename.c (copyprop_hardreg_forward_1): Likewise.
24952         * reload.c (can_reload_into, push_reload, decompose, immune_p,
24953         find_reloads, find_reloads_address, find_reloads_address_1,
24954         reg_overlap_mentioned_for_reload_p, refers_to_mem_for_reload_p,
24955         find_equiv_reg): Likewise.
24956         * reload1.c (reload, eliminate_regs, eliminate_regs_in_insn,
24957         reload_as_needed, choose_reload_regs, emit_input_reload_insns,
24958         do_input_reload, emit_reload_insns, gen_reload, delete_output_reload,
24959         delete_address_reloads): Likewise.
24960         * resource.c (mark_referenced_resources): Likewise.
24961         * rtlanal.c (get_jump_table_offset, count_occurrences,
24962         reg_referenced_p, reg_set_p, set_of_1, set_noop_p,
24963         reg_overlap_mentioned_p, note_uses, replace_regs, nonzero_bits1,
24964         num_sign_bit_copies1): Likewise.
24965         * rtlhooks.c (gen_lowpart_general): Likewise.
24966         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
24967         * sdbout.c (PARM_PASSED_IN_MEMORY, sdbout_symbol,
24968         sdbout_toplevel_data, sdbout_parms, sdbout_reg_parms,
24969         sdbout_global_decl): Likewise.
24970         * simplify-rtx.c (simplify_subreg): Likewise.
24971         * stmt.c (expand_asm_operands, expand_expr_stmt_value, expand_decl,
24972         expand_anon_union_decl, expand_end_case_type): Likewise.
24973         * unroll.c (calculate_giv_inc): Likewise.
24974         * var-tracking.c (stack_adjust_offset_pre_post,
24975         bb_stack_adjust_offset, track_expr_p, count_uses, add_uses,
24976         add_stores, compute_bb_dataflow, vt_get_decl_and_offset,
24977         vt_add_function_parameters): Likewise.
24978         * varasm.c (make_var_volatile, notice_global_symbol,
24979         assemble_external, decode_addr_const, mark_weak,
24980         default_encode_section_info): Likewise.
24981
24982 2004-07-01  Steven Bosscher  <stevenb@suse.de>
24983
24984         * stmt.c (check_seenlabel): Remove.
24985         (pushcase, pushcase_range, expand_end_case_type): Don't call it.
24986
24987 2004-07-01  Richard Henderson  <rth@redhat.com>
24988
24989         * function.h (struct function): Remove x_function_call_count.
24990         (function_call_count): Remove.
24991         * calls.c (expand_call): Don't set it.
24992         * integrate.c (copy_rtx_and_substitute): Likewise.
24993
24994         * function.h (struct function): Remove x_cleanup_label.
24995         (cleanup_label): Remove.
24996         * stmt.c (expand_value_return): Don't use it.
24997         * function.c (free_after_compilation): Don't set it.
24998         (expand_function_start): Likewise.  Remove parms_have_cleanups arg.
24999         * cfgexpand.c (tree_expand_cfg): Update call.
25000         * tree.h (expand_function_start): Update decl.
25001
25002 2004-07-01  Joseph S. Myers  <jsm@polyomino.org.uk>
25003
25004         PR c/1027
25005         * c-lang.c (c_initialize_diagnostics): Move from here ...
25006         * c-objc-common.c: ... to here.  Include "c-pretty-print.h".
25007         (c_tree_printer): Use pretty-printer to format %T.
25008         * c-pretty-print.c (pp_c_specifier_qualifier_list): Include space
25009         before '*' if not C++.
25010         (pp_c_direct_abstract_declarator): Don't try to print array upper
25011         bound for flexible array members.
25012         * c-tree.h: Include "diagnostic.h".
25013         (c_initialize_diagnostics): Declare.
25014         * objc/objc-lang.c (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Define.
25015         * c-format.c (format_type_warning): New function.  Improve
25016         diagnostics for incorrect format argument types.
25017         (check_format_types): Use it.  Add two parameters.  Use the
25018         TYPE_MAIN_VARIANT of wanted_type.
25019         (check_format_info_main): Pass new parameters to
25020         check_format_types.
25021         (struct format_wanted_type): Update comment.
25022
25023 2004-07-01  Nick Clifton  <nickc@redhat.com>
25024
25025         * target.h (struct gcc_target): Add new field to struct cxx:
25026         import_export_class.
25027         * target-def.h (TARGET_CXX): Initialise the new field.
25028         (TARGET_CXX_IMPORT_EXPORT_CLASS): Provide a default value for
25029         the new field.
25030         * doc/tm.texi: Document the new target hook.
25031
25032 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
25033
25034         * builtins.c (fold_builtin_classify): Fix typo.
25035
25036 2004-07-01  Richard Henderson  <rth@redhat.com>
25037
25038         * function.c (identify_blocks, identify_blocks_1): Remove.
25039         * function.h (identify_blocks): Remove.
25040         * rtl.h (NOTE_INSN_BLOCK_BEG): Update comment.
25041
25042 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
25043
25044         * builtins.c (fold_builtin_classify): New.
25045         (fold_builtin_unordered_cmp): Fix commentary.
25046         (fold_builtin): Use it.
25047         * builtins.def: Define builtins for isnan,
25048         isnanf, isnanl, finite, finitef, finitel,
25049         isinf, isinff, isinfl.
25050
25051 2004-07-01  Richard Henderson  <rth@redhat.com>
25052
25053         * function.h (struct function): Remove dont_emit_block_notes.
25054         * gimple-low.c (lower_function_body): Don't set it.
25055         * cfgexpand.c (expand_block): Don't check it.
25056         * cfglayout.c (insn_locators_initialize): Likewise.
25057         * expr.c (expand_expr_real, expand_expr_real_1): Likewise.
25058         * passes.c (rest_of_compilation): Likewise.
25059         * stmt.c (expand_start_bindings_and_block): Likewise.
25060         (expand_end_bindings): Likewise.
25061
25062 2004-07-01  Richard Henderson  <rth@redhat.com>
25063
25064         * cgraph.h (cgraph_build_static_cdtor): Declare.
25065         * cgraphunit.c (cgraph_build_static_cdtor): New.
25066         * c-objc-common.c (build_cdtor): Use it.
25067         * coverage.c (create_coverage): Likewise.
25068         * libfuncs.h (LTI_gcov_init, gcov_init_libfunc): Remove.
25069         * optabs.c (init_optabs): Don't set gcov_init_libfunc.
25070
25071 See ChangeLog.11 for earlier changes.