OSDN Git Service

patch to fix extraneous nop at function start, bug from David Mosberger
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-03-16  James E. Wilson  <wilson@specifixinc.com>
2
3         * config/ia64/ia64.c (issue_nops_and_insn): Check first_insn attribute,
4         and return without creating new state if before_nops_num is nonzero.
5         * config/ia64/ia64.md (first_insn): New attribute.
6         (alloc): Set it to yes.
7
8 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
9
10         * tree-vectorizer.c (new_vec_stmt_info): Initialize
11         STMT_VINFO_SUBVARS to NULL.
12         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
13         
14 2005-03-16 Dale Johannesen  <dalej@apple.com>
15
16         * rtlanal.c (find_first_parameter_load):  Rewrite to
17         return actual first param load or the call if none,
18         instead of first in block, when not all loads exist.
19
20 2005-03-16  Roger Sayle  <roger@eyesopen.com>
21
22         * optabs.c (expand_copysign_absneg): Make static.
23         * optabs.h (expand_copysign_absneg): Delete prototype.
24         * config/rs6000/rs6000.md (copysigntf3): Delete pattern.
25
26 2005-03-16  Richard Henderson  <rth@redhat.com>
27
28         PR middle-end/15700
29         * varasm.c (struct alias_pair): Rename from struct output_def_pair.
30         (alias_pairs): Rename from output_defs.
31         (find_decl_and_mark_needed): Split out from assemble_alias.
32         (do_assemble_alias): New.
33         (assemble_output_def): Remove.
34         (finish_aliases_1, finish_aliases_2): New.
35         (process_pending_assemble_output_defs): Remove.
36         (assemble_alias): Defer aliases for which we don't yet have a
37         non-external decl for the target symbol.
38         * passes.c (rest_of_decl_compilation): Register variables with cgraph.
39         * cgraphunit.c (cgraph_finalize_compilation_unit): Use finish_aliases_1.
40         * toplev.c (compile_file): Use finish_aliases_2 instead of
41         process_pending_assemble_output_defs.
42         * tree.h (finish_aliases_1, finish_aliases_2): Declare.
43         (process_pending_assemble_output_defs): Remove.
44
45 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
46         
47         Fix PR tree-optimization/20489
48
49         * tree-ssa-alias.c (push_fields_onto_fieldstack): DTRT
50         for empty structures.
51
52 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
53
54         Fix PR tree-optimization/20490
55         
56         * tree-ssa-pre.c (create_expression_by_pieces): Use
57         force_gimple_operand on result of fold.
58
59 2005-03-16  Andrew Pinski  <pinskia@physics.uc.edu>
60
61         * config/i386/emmintrin.h (_mm_extract_epi16): Correct the number
62         of closing parenthesis.
63
64 2005-03-16  Kazu Hirata  <kazu@cs.umass.edu>
65
66         * builtins.c (expand_movstr): Update a call to
67         fold_builtin_strcpy.
68         (expand_builtin_strncpy): Update a call to
69         fold_builtin_strncpy.
70         (fold_builtin_strcpy, fold_builtin_strncpy): Take decomosed
71         arguments of CALL_EXPR.
72         (fold_builtin_1): Update calls to fold_builtin_strcpy and
73         fold_builtin_strncpy.
74         * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
75         * tree.h: Update the prototypes of fold_builtin_strcpy and
76         fold_builtin_strncpy.
77
78 2005-03-16  Steven Bosscher  <stevenb@suse.de>
79             Dorit Naishlos  <dorit@il.ibm.com>
80
81         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Copy 
82         UNITS_PER_SIMD_WORD to a local variable to avoid a "division by zero" 
83         error.
84
85 2005-03-16  Steven Bosscher  <stevenb@suse.de>
86
87         * tree-inline.c (walk_type_fields, walk_tree,
88         walk_tree_without_duplicates): Move from here...
89         * tree.c: ...to here.
90
91 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
92
93         * BASE-VER, DATESTAMP, DEV-PHASE: New files.
94         * Makefile.in (gcc_version, gcc_version_trigger, ): Delete.
95         (BASEVER, DEVPHASE, DATESTAMP, BASEVER_c, DEVPHASE_c, DATESTAMP_c)
96         (BASEVER_s, DEVPHASE_s, DATESTAMP_s): New variables.
97         (version): Define using $(BASEVER_c).
98         (Makefile, config.status, build/gcov-iov.o): No longer depends on
99         version.c.
100         (version.o): Depend on version files; add custom generation command.
101         (prefix.o): Define BASEVER on command line.
102         (s-iov): Depend on version files; adjust command.
103         (TEXI_CPP_FILES, TEX_IGCC_FILES, TEXI_GCCINT_FILES, TEXI_CPPINT_FILES):
104         Add gcc-vers.texi.
105         (gcc-vers.texi): New rule.
106         (doc/%.info, doc/%.dvi): Add -I . to command line.
107         (doc/gccinstall.dvi): Likewise.
108         (PACKAGE): Delete.  All uses replaced with "gcc".
109         * aclocal.m4: Do not include gcc-version.m4.
110         * configure.ac: Do not invoke TL_AC_GCC_VERSION.
111         Do not AC_SUBST nor AC_DEFINE PACKAGE or VERSION.
112         Set is_release based on contents of DEV-PHASE.
113         Set gcc_version based on contents of BASE-VER.
114         Define WIN32_REGISTRY_KEY only if the user overrode the default.
115         * config.in, configure: Regenerate.
116         * gccbug.in: Determine version of GCC in use at runtime.
117         * gcov-iov.c: Get version number and development phase from
118         command line, not by including version.c.
119         * intl.c: Replace all uses of PACKAGE with "gcc".
120         * libada-mk.in: Delete unused "gcc_version" variable.
121         * prefix.c: Default WIN32_REGISTRY_KEY to BASEVER.
122         * version.c: (VERSUFFIX): New hook for redistributors; adjust
123         commentary to match.
124         (version_string): Put together from pieces.
125         * config/alpha/x-vms: Do not use $(gcc_version).
126         * config/i386/t-nwld: Likewise.
127         * doc/include/gcc-common.texi: Include gcc-vers.texi for
128         version-GCC and DEVELOPMENT.
129
130 2005-03-15  Roger Sayle  <roger@eyesopen.com>
131
132         PR tree-optimization/17454
133         * tree.c (tree_size): Add case for TREE_BINFO.
134         * fold-const.c (fold_checksum_tree): Only clear the overloaded
135         field TYPE_CACHED_VALUES if TYPE_CACHED_VALUES_P is set.
136
137 2005-03-15  Roger Sayle  <roger@eyesopen.com>
138
139         * optabs.c (expand_doubleword_mult): Avoid clobbering op0 and
140         op1 whilst expanding the signed widenening multiply variant.
141
142 2005-03-15  Richard Sandiford  <rsandifo@redhat.com>
143
144         * toplev.c (display_target_options): Avoid unused variable warning if
145         TARGET_SWITCHES and TARGET_OPTIONS are both undefined.
146         * config/mips/mips.c (mips_arch_string, mips_tune_string): Make static.
147         (mips_isa_string, mips_abi_string, mips_fix_vr4130_string): Delete.
148         (mips_isa): Initialize to MIPS_ABI_DEFAULT.
149         (mips_isa_info): New variable.
150         (mips_parse_cpu): Remove the first argument and leave the caller
151         to report errors.
152         (TARGET_HANDLE_OPTION): Override default.
153         (mips_handle_option): New function.  Move option validation code from...
154         (override_options): ...here.  Update calls to mips_parse_cpu.
155         * config/mips/mips.h (mips_arch_string, mips_tune_string)
156         (mips_isa_string, mips_abi_string, TARGET_OPTIONS)
157         (SUBTARGET_TARGET_OPTIONS): Delete.
158         * config/mips/mips.opt (mabi=, march=, mflush-func=, mips)
159         (mno-flush-func, mtune=): New options.
160
161 2005-03-15  Roger Sayle  <roger@eyesopen.com>
162             Richard Henderson  <rth@redhat.com>
163
164         * real.c (c4x_single_format, c4x_extended_format): Provide values
165         for signbit_ro for c4x's single and extended floating point formats.
166         * optabs.c (expand_copysign): Use the floating point format's
167         signbit_ro for expanding via expand_copysign_absneg, and it's
168         signbit_rw field for expanding via expand_copysign_bit.
169
170 2005-03-15  Dorit Naishlos  <dorit@il.ibm.com>
171
172         * tree-vectorizer.h (unknown_alignment_for_access_p): Replaced by
173         known_alignment_for_access_p.
174         (known_alignment_for_access_p): New.
175         (do_peeling_for_alignment): Field made int instead of bool and renamed
176         to peeling_for_alignment.
177         (LOOP_DO_PEELING_FOR_ALIGNMENT): Renamed to LOOP_PEELING_FOR_ALIGNMENT.
178         * tree-vect-analyze.c (vect_determine_vectorization_factor): New. This
179         functionality used to be in vect_analyze_operations.
180         (vect_analyze_operations): Code to determine vectorization factor was
181         moved to vect_determine_vectorization_factor.
182         (vect_enhance_data_refs_alignment): Update to correct alignment when it
183         is known instead of -1.  Set LOOP_PEELING_FOR_ALIGNMENT to peeling
184         factor.
185         (vect_analyze_loop): Call vect_determine_vectorization_factor (used to
186         be part of vect_analyze_operations).
187         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Use fold when
188         creating the guard condition, as the number of iterations may be
189         constant.
190         (slpeel_tree_peel_loop_to_edge): Use new name of
191         LOOP_DO_PEELING_FOR_ALIGNMENT. Set it to 0 instead of false.
192         * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Handle known
193         alignment case more efficiently. Use LOOP_PEELING_FOR_ALIGNMENT.
194         (vect_do_peeling_for_alignment): Use fold.
195         (vect_transform_loop): Use new name of LOOP_DO_PEELING_FOR_ALIGNMENT.
196
197         (vect_update_inits_of_dr): Renamed to
198         vect_update_init_of_dr.
199         (vect_update_inits_of_drs): Use new name of vect_update_inits_of_dr.
200         (vectorizable_store): Fix assertion to use == instead of =.
201
202 2005-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
203
204         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't clear
205         call_used_regs for wCG registers.
206
207 2005-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
208
209         * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
210         for non-offsettable memory references to cope with outstanding reload
211         replacements, take 2.
212
213 2005-03-15  Uros Bizjak  <uros@kss-loka.si>
214
215         PR target/18668
216         * config/i386/i386.h (x86_fisttp): New.
217         (TARGET_FISTTP): New macro.
218         * config/i386/i386.c (x86_fisttp): Set for NOCONA.
219         (output_fix_trunc): Add fisttp parameter.  Generate fisttp x87
220         instruction when fisttp flag is set.
221         * config/i386/i386-protos.h (output_fix_trunc): Change declaration.
222
223         * config/i386/i386.md (type attribute): Add fisttp.
224         (unit attribute): Set to i387 for fisttp type.
225         (X87MODEF, X87MODEI, SSEMODEF, SSEMODEI24): New mode macros.
226         (fix_truncxfdi2, fix_truncxfsi2): Generate fisttp patterns for
227         TARGET_FISTTP.
228         (fix_truncdfdi2, fix_truncsfdi2, fix_truncdfsi2, fix_truncsfsi2):
229         Generate fisttp patterns for TARGET_FISTTP. Implement using mode
230         macros.
231         (fix_truncxfhi2, fix_truncdfhi2, fix_truncsfhi2): Generate fisttp
232         patterns for TARGET_FISTTP.  Enable patterns for
233         (TARGET_FISTTP && !TARGET_SSE_MATH). Implement using mode macros.
234         (fix_trunc<mode>_i387_fisttp_1, fix_trunc<mode>_i387_fisttp,
235         fix_trunc<mode>_i387_fisttp_with_temp): New instruction patterns to
236         implement fisttp x87 insn.
237         (fix_trunc*_i387_fisttp splitters): New patterns.
238         (*fix_truncdi_i387, *fix_truncsi_i387, *fix_trunchi_i387):
239         Rename to *fix_trunc<mode>_i387_1.  Implement using mode macros.
240         Disable patterns for TARGET_FISTTP.  Add comment about FLAGS_REG
241         clobber.
242         (fix_truncdi_memory, fix_truncdi_nomemory, fix_trunchi_nomemory):
243         Rename to fix_trunc<mode>_i387 and fix_trunc<mode>_i387_with_temp.
244         Implement using mode macros. Disable patterns for TARGET_FISTTP.
245         (fix_truncsi_memory, fix_truncsi_nomemory, fix_trunchi_memory,
246         fix_trunchi_nomemory): Rename to fix_trunc<mode>_i387 and
247         fix_trunc<mode>_i387_with_temp. Implement using mode macros.
248         Disable patterns for TARGET_FISTTP.
249         (fix_trunc*_i387 splitters): Implement usign mode macros.
250         (fix_truncdfdi_sse, fix_truncsfdi_sse, fix_truncdfsi_sse,
251         fix_truncsfsi_sse): Disable for (TARGET_FISTTP && !TARGET_SSE_MATH).
252         (fix_trunx*_sse peephole2s): Implement using mode macros.
253
254 2005-03-15  J"orn Rennecke <joern.rennecke@st.com>
255
256         PR rtl-optimization/20291
257         * combine.c (try_combine): If splitting fails, re-try with
258         original combined pattern, i.e. before clobber stripping.
259
260 2005-03-14  Eric Christopher  <echristo@redhat.com>
261
262         * config/mips/mips.h (DWARF_CIE_DATA_ALIGNMENT): Change for
263         STACK_GROWS_DOWNWARD.
264
265 2005-03-14  Roger Sayle  <roger@eyesopen.com>
266
267         * real.h (struct real_format): Split the signbit field into two
268         two fields, signbit_ro and signbit_rw.
269         * real.c (ieee_single_format, mips_single_format, ieee_double_format,
270         mips_double_format, ieee_extended_motorola_format,
271         ieee_extended_intel_96_format, ieee_extended_intel_96_round_53_format,
272         ieee_extended_intel_128_format, ibm_extended_format,
273         mips_extended_format, ieee_quad_format, mips_quad_format,
274         vax_f_format, vax_d_format, vax_g_format, i370_single_format,
275         i370_double_format, c4x_single_format, c4x_extended_format,
276         real_internal_format): Update initializers for new field.
277         * builtins.c (expand_builtin_signbit): Use signbit_ro field of the
278         real_format structure.
279         * optabs.c (expand_absneg_bit, expand_copysign): Use signbit_rw
280         field of the real_format structure.
281
282 2005-03-14  Daniel Berlin <dberlin@dberlin.org>
283
284         Fix PR tree-optimization/20458
285
286         * tree-flow-inline.h (mark_call_clobbered): Don't fiddle
287         DECL_EXTERNAL on STRUCT_FIELD tags.
288         (clear_call_clobbered): Ditto.
289         * tree-ssa-operands.c (note_addressable): Make sure the original
290         variable doesn't slip into the addressable list if we have
291         subvars.
292         * tree-tailcall.c (suitable_for_tail_opt_p): Look at STRUCT_FIELD
293         tags too.
294
295 2005-03-14  Geoffrey Keating  <geoffk@apple.com>
296
297         * doc/cppopts.texi (-fexec-charset): Add concept index entry.
298         (-fwide-exec-charset): Likewise.
299         (-finput-charset): Likewise.
300         * doc/invoke.texi (Warning Options): Document -Wnormalized=.
301         * c-opts.c (c_common_handle_option): Handle -Wnormalized=.
302         * c.opt (Wnormalized): New.
303
304 2005-03-14  Devang Patel  <dpatel@apple.com>
305
306         * doc/invoke.texi: Add reference to Visibility document.
307
308 2005-03-14  Richard Sandiford  <rsandifo@redhat.com>
309
310         * config.gcc (mips*-*-*): Rename MASK_SPLIT_ADDRS to
311         MASK_SPLIT_ADDRESSES.
312         * config/mips/mips.h (target_flags, mips_fix_vr4130_string): Delete.
313         (MASK_INT64, MASK_LONG64, MASK_SPLIT_ADDR, MASK_NO_FUSED_MADD)
314         (MASK_EXPLICIT_RELOCS, MASK_MEMCPY, MASK_SOFT_FLOAT)
315         (MASK_FLOAT64, MASK_ABICALLS, MASK_XGOT, MASK_LONG_CALLS)
316         (MASK_64BIT, MASK_EMBEDDED_DATA, MASK_BIG_ENDIAN)
317         (MASK_SINGLE_FLOAT, MASK_MAD, MASK_4300_MUL_FIX, MASK_MIPS16)
318         (MASK_NO_CHECK_ZERO_DIV, MASK_BRANCHLIKELY)
319         (MASK_UNINIT_CONST_IN_RODATA, MASK_FIX_R4000, MASK_FIX_R4400)
320         (MASK_FIX_SB1, MASK_FIX_VR4120, MASK_VR4130_ALIGN)
321         (MASK_FP_EXCEPTIONS, MASK_DIVIDE_BREAKS, MASK_PAIRED_SINGLE)
322         (MASK_MIPS3D, MASK_SYM32, MASK_DEBUG, MASK_DEBUG_D)
323         (MASK_MIPS_TFILE, TARGET_INT64, TARGET_LONG64, TARGET_FLOAT64)
324         (TARGET_64BIT, TARGET_SPLIT_ADDRESSES, TARGET_DEBUG_MODE)
325         (TARGET_DEBUG_D_MODE, TARGET_MEMCPY, TARGET_ABICALLS)
326         (TARGET_XGOT, TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT)
327         (TARGET_LONG_CALLS, TARGET_EMBEDDED_DATA)
328         (TARGET_UNINIT_CONST_IN_RODATA, TARGET_BIG_ENDIAN)
329         (TARGET_SINGLE_FLOAT, TARGET_DOUBLE_FLOAT, TARGET_MAD)
330         (TARGET_FUSED_MADD, TARGET_4300_MUL_FIX, TARGET_CHECK_ZERO_DIV)
331         (TARGET_DIVIDE_TRAPS, TARGET_BRANCHLIKELY, TARGET_FIX_SB1)
332         (TARGET_FIX_R4000, TARGET_FIX_R4400, TARGET_FIX_VR4120)
333         (TARGET_FIX_VR4130, TARGET_VR4130_ALIGN, TARGET_FP_EXCEPTIONS)
334         (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D, TARGET_SYM32)
335         (TARGET_EXPLICIT_RELOCS): Delete.
336         (TARGET_SWITCHES, SUBTARGET_TARGET_SWITCHES): Delete.
337         (TARGET_OPTIONS): Remove entry for -mfix-vr4130.
338         * config/mips/mips.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
339         (override_options): Set MASK_LONG64 if -mint64 is given and no
340         -mlongXX option is.  Complain about -mint64 -mlong32.
341         (override_options, CMP_BUILTINS, mips_bdesc, sb1_desc): Rename
342         MASK_PAIRED_SINGLE to MASK_PAIRED_SINGLE_FLOAT.
343         * config/mips/mips.opt: New file.
344
345 2005-03-14  Richard Sandiford  <rsandifo@redhat.com>
346
347         * config.gcc (extra_options): New variable for listing option files.
348         Add ${cpu_type}/${cpu_type}.opt to it if that file exists.
349         * configure.ac (extra_opt_files): New AC_SUBST variable.
350         (tm_file_list, tm_include_list): Include options.h first.
351         * configure: Regenerate.
352         * Makefile.in (extra_opt_files, ALL_OPT_FILES): New variables.
353         (s-options): Use $(ALL_OPT_FILES) instead of $(lang_opt_files)
354         (s-options-h): New rule.
355         (options.h): Depend on it.
356         (TEXI_GCCINT_FILES): Add options.texi.
357         * hooks.h (hook_bool_size_t_constcharptr_int_true): Declare.
358         * hooks.c (hook_bool_size_t_constcharptr_int_true): New function.
359         * target.h (gcc_target): Add default_target_flags and handle_option.
360         * target-def.h (TARGET_DEFAULT_TARGET_FLAGS)
361         (TARGET_HANDLE_OPTION): New macros.
362         (TARGET_INITIALIZER): Include them.
363         * opt-functions.awk (opt_args, nth_arg): New functions.
364         (switch_flags): Handle the "Target" flag.
365         (var_args): Delete.
366         (var_name): Use opt_args and nth_arg.
367         (var_set, var_ref): Likewise.  Handle "Mask" and "InverseMask".
368         * opth-gen.awk: Declare target_flags.  Declare MASK_* and TARGET_*
369         macros for the "Mask" and "InverseMask" options.
370         * opts.h (cl_var_cond): New enum.
371         (cl_option): Replace the "has_set_value" and "set_value" fields with
372         "var_cond" and "var_value".
373         (CL_TARGET): New macro.
374         (option_enabled, print_filtered_help): Declare.
375         (decode_options): Move definition.
376         * opts.c (handle_option): Search for the original option before
377         removing any "no-" prefix.  Handle CL_TARGET.  Adjust for the new
378         var_cond and var_value fields.  Use targetm.handle_option to handle
379         target options.
380         (decode_options): Set target_flags to targetm.default_target_flags.
381         (print_filtered_help): Make global.  Handle CL_TARGET.
382         (option_enabled): New function.
383         * toplev.c (target_switches): Guard with #ifdef TARGET_SWITCHES.
384         (display_target_options, set_target_switch, print_switch_values)
385         (default_pch_valid_p): Guard uses of target_switches with
386         #ifdef TARGET_SWITCHES.  Also...
387         (display_target_options): Display the CL_TARGET entries in cl_options.
388         (set_target_option): Don't complain about the "" option when
389         TARGET_SWITCHES is undefined.
390         (print_switch_values): Use option_enabled.
391         (default_pch_valid_p): Check cl_options[] when looking for something
392         that has changed the value of target_flags.
393         * c.opt: Remove documentation from top of file.
394         * doc/gccint.texi: Add an "Options" chapter.  Include options.texi.
395         * doc/sourecebuild.texi: Refer to the new options documentation
396         instead of c.opt.  Document machine-specific .opt files.
397         * doc/tm.texi (target_flags): Say that this variable is declared
398         by options.h.
399         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Document.
400         (TARGET_SWITCHES, TARGET_OPTIONS): Refer to the option files as
401         an alternative.
402         * doc/options.texi: New file.
403
404 2005-03-14  Alexandre Oliva  <aoliva@redhat.com>
405
406         PR middle-end/18628
407         * cse.c (fold_rtx_mem): Don't fold a load from a jumptable into a
408         register.
409
410 2005-03-14  Alexandre Oliva  <aoliva@redhat.com>
411
412         PR c++/20280
413         * gimplify.c (gimplify_cond_expr): Add fallback argument.  Use a
414         temporary variable of pointer type if an lvalues is required.
415         (gimplify_modify_expr_rhs): Request an rvalue from it.
416         (gimplify_expr): Pass fallback on.
417
418 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
419
420         * cfgbuild.c: Update comments.
421
422 2005-03-14  Roger Sayle  <roger@eyesopen.com>
423
424         PR rtl-optimization/17236
425         * optabs.c (expand_doubleword_mult): New helper function split out
426         from expand_binop.  Permute the order in which instructions are
427         emitted to minimize the number of simultaneously live registers.
428         (expand_binop): Call expand_doubleword_mult to synthesize a double
429         word multiplication.
430
431 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
432
433         * basic-block.h: Update the prototypes of cached_make_edge and
434         rtl_make_eh_edge.
435         * cfg.c (cached_make_edge): Take edge_cache representing one
436         row of the adjacency matrix of edges.
437         * cfgbuild.c (make_label_edge, rtl_make_eh_edge): Likewise.
438         (make_edges): Initialize edge_cache to represent one row of
439         the adjacency matrix of edges.
440
441 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
442
443         * tree-ssa-phiopt.c (minmax_replacement, blocks_in_phiopt_order):
444         New functions.
445         (tree_ssa_phiopt): Use blocks_in_phiopt_order and minmax_replacement.
446         Remove unused removed_phis variable.
447         (conditional_replacement): Use build1/build2.
448         (abs_replacement): Use last_and_only_stmt and build1/build2.
449
450 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
451
452         * builtin-attrs.def (ATTR_NOVOPS, ATTR_NOVOPS_LIST,
453         ATTR_PURE_NOTHROW_NOVOPS_LIST): New.
454         * builtins.def (ATTR_MATHFN_FPROUNDING): Use NOVOPS.
455         (BUILT_IN_PREFETCH): Set the NOVOPS attribute.
456         * c-common.c (handle_novops_attribute): New function.
457         (c_common_attribute_table): Add "no vops" entry.
458         * c-decl.c (merge_decls): Copy DECL_IS_NOVOPS.
459         * calls.c (flags_from_decl_or_type): Set ECF_NOVOPS.
460         * tree-ssa-operands.c (get_call_expr_operands): Do not
461         create virtual operands for calls with ECF_NOVOPS flag.
462         * tree.h (DECL_IS_NOVOPS): New macro.
463         (struct tree_decl): Add novops_flag.
464         (ECF_NOVOPS): New constant.
465
466 2005-03-14  Uros Bizjak  <uros@kss-loka.si>
467
468         PR target/17688
469         * config/i386/i386.c (x86_use_himode_fiop): New.
470         (x86_use_simode_fiop): Rename from x86_use_fiop.
471         * config/i386/i386.h (x86_use_himode_fiop): Declare.
472         (TARGET_USE_HIMODE_FIOP): New.
473         (x86_use_simode_fiop): Rename from x86_use_fiop.
474         (TARGET_USE_SIMODE_FIOP): Rename from TARGET_USE_FIOP.
475
476         * config/i386/i386.md (X87MODEI12): New mode macro define.
477         (*cmpfp_<mode>): Rename from *cmpfp_si.  Use X87MODEI12 mode macro
478         to implement x87 FP compare with HImode input operands.
479         (*fp_jcc_8<mode>_387, splitter): Rename from *fp_jcc_8_387.
480         Use X87MODEI12 mode macro to handle HImode input operands.
481         (*fop_sf_2<mode>_i387, *fop_sf_3<mode>_i387, *fop_df_2<mode>_i387,
482         *fop_df_3<mode>_i387, *fop_xf_2<mode>_i387, *fop_xf_3<mode>_i387):
483         Renamed from *fop_sf_2_i387, *fop_sf_3_i387, *fop_df_2_i387,
484         *fop_df_3_i387, *fop_xf_2_i387, *fop_xf_3_i387. Use X87MODEI12 mode
485         macro to implement x87 operators with HImode input operands.
486         (fop splitters): Use X87MODEI12 mode macro to handle HImode
487         input operands.
488
489 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
490
491         * tree-cfg.c (find_taken_edge_cond_expr): Use zero_p instead of
492         integer_zerop.
493         * tree-gimple.c (is_gimple_min_invariant): Consider overflowed
494         constants invariant.
495
496 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
497
498         * basic-block.h (BB_VISITED): Removed.
499         * cfganal.c (dfs_enumerate_from): Do not use BB_VISITED flag.
500
501 2005-03-14  Falk Hueffner  <falk@debian.org>
502
503         PR bootstrap/20424
504         * config/alpha/alpha.c (alpha_fold_builtin_cmpbge): Fix typo.
505
506 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
507
508         * ggc-zone.c: Fix comment typos.
509
510         * alloc-pool.c, except.h, ggc-common.c, ggc-zone.c, ggc.h,
511         stringpool.c, config/mips/mips-protos.h: Update copyright.
512
513 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
514
515         * config/rs6000/rs6000-protos.h: Replace "struct rtx_def *"
516         throughout with its typedef, "rtx".
517         * config/rs6000/rs6000.c: Likewise.  Formatting fixes.
518         (rs6000_tls_symbol_ref_1): Remove inline keyword.
519         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Formatting.  Reorder
520         regs in comment to match code.
521
522 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
523
524         * except.c (check_handled): Make it static.
525         * except.h: Remove the corresponding prototype.
526
527         * function.c (get_func_frame_size): Make it static.
528         * function.h: Remove the corresponding type.
529
530         * regclass.c (reg_class_superclasses, reg_class_subclasses):
531         Make them static.
532         * hard-reg-set.h: Remove the corresponding declarations.
533
534         * tree-cfg.c (verify_stmts): Check that
535         bb_for_stmt (stmt) == bb for every PHI node and statement.
536
537 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
538
539         * config.gcc: Remove excess indentation.
540         (powerpc*-*-*, rs6000-*-*): Accept --with-cpu/tune power5 and 8548.
541
542 2005-03-13  Roger Sayle  <roger@eyesopen.com>
543
544         PR middle-end/19331
545         * tree.c (get_unwidened): Treat CONVERT_EXPR and NOP_EXPR identically.
546         * fold-const.c (fold_sign_changed_comparison): Likewise.
547         (fold_binary): Optimize comparisons against widened operands if
548         the extension is represented by a CONVERT_EXPR, same as a NOP_EXPR.
549
550 2005-03-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
551
552         * config/sparc/sparc.c (struct_value_alias_set): New global variable.
553         (sparc_override_options): Initialize it.
554         (sparc_struct_value_rtx): Set it on the MEM to be returned.
555
556 2005-03-13  David Edelsohn  <edelsohn@gnu.org>
557
558         * config/rs6000/predicates.md (mem_or_easy_const_operand): Delete.
559         (reg_or_none500mem_operand): New predicate.
560         (zero_reg_mem_operand): New predicate.
561         * config/rs6000/rs6000.md (extendsfdf2): Change operand1 predicate
562         to reg_or_none500mem_operand.
563         (extendsfdf2_fpr): Add MEM alternative.
564         (extenddftf2_internal): Change operand2 predicate to
565         zero_reg_mem_operand.
566
567 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
568
569         * ggc-zone.c: Rewritten.
570
571         * alloc-pool.c (dump_alloc_pool_statistics): Don't print statistics
572         if there are none.
573         * configure.ac: Define GGC_ZONE for --with-gc=zone.
574         * config.in: Regenerated.
575         * configure: Regenerated.
576         * gengtype.c (write_types_process_field, write_func_for_structure):
577         Pass new argument to gt_pch_note_object.
578         * ggc-common.c (struct ptr_data): Add TYPE.
579         (gt_pch_note_object): Take TYPE argument and save it.
580         (call_count): Update call to ggc_pch_count_object.
581         (call_alloc): Update call to ggc_pch_alloc_object.
582         (gt_pch_save): Call ggc_pch_prepare_write after paddng the PCH
583         file.
584         * ggc-none.c (rtl_zone, garbage_zone, ggc_alloc_zone_stat): Delete.
585         * ggc-page.c (rtl_zone, tree_zone, garbage_zone)
586         (ggc_alloc_zone_stat): Delete.
587         (ggc_pch_count_object, ggc_pch_alloc_object): Add TYPE argument.
588         * ggc.h (gt_pch_note_object, ggc_pch_count_object)
589         (ggc_pch_alloc_object): Update prototypes.
590         (garbage_zone): Delete.
591         (tree_zone, rtl_zone, ggc_alloc_zone_stat, ggc_alloc_zone): Move to
592         GGC_ZONE conditional.  Update.  Change tree_zone and rtl_zone into
593         pointers.
594         (tree_id_zone): New variable.
595         (ggc_alloc_cleared_zone): Remove unused.
596         (ggc_alloc_zone): Define.
597         (ggc_alloc_rtvec, ggc_alloc_tree): Update to use ggc_alloc_zone.
598         * rtl.c (rtx_alloc_stat, shallow_copy_rtx_stat): Use
599         ggc_alloc_zone_stat.
600         * stringpool.c (gt_pch_n_S): Update call to gt_pch_note_object.
601         * tree.c (copy_node_stat, make_tree_binfo_stat, make_tree_vec_stat)
602         (tree_cons_stat, build1_stat): Update call to ggc_alloc_zone_stat.
603         (make_node_stat): Likewise.  Use tree_id_zone.
604
605 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
606             Joseph S. Myers  <joseph@codesourcery.com>
607
608         * configure.ac: Check for MIPS TLS.
609         * configure: Regenerated.
610         * config/mips/mips-protos.h (enum mips_symbol_type): Add
611         SYMBOL_TLS, SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL,
612         SYMBOL_GOTTPREL, and SYMBOL_TPREL.
613         * config/mips/mips.c (mips_regno_to_class): Handle V1_REG.
614         (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
615         (mips_classify_symbol, mips_symbolic_constant_p)
616         (mips_symbolic_address_p, mips_symbol_insns): Handle TLS symbols.
617         (mips_tls_operand_p, mips_call_tls_get_addr)
618         (mips_legitimize_tls_address, mips_cannot_force_const_mem)
619         (mips_tls_symbol_ref_1): New functions.
620         (mips_legitimize_address, mips_legitimize_const_move): Call
621         mips_legitimize_tls_address.
622         (override_options): Handle V1_REG and TLS symbols.  Disable TLS
623         for MIPS16.
624         * config/mips/mips.h (enum reg_class, REG_CLASS_NAMES)
625         (REG_CLASS_CONTENTS, GR_REG_CLASS_P): Include V1_REG.
626         (mips_char_to_class): Document V1_REG.
627         (HAVE_AS_TLS): Provide default.
628         * config/mips/mips.md (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): New
629         constants.
630         (load_got<mode>): Renamed from *load_got<mode>.  Allow when
631         !TARGET_ABICALLS.
632         (tls_get_tp_<mode>): New instruction.
633
634 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
635
636         * configure.ac: Update checks for target tools.
637         * configure: Regenerated.
638
639 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
640
641         * varasm.c (decl_tls_model): Check flag_shlib instead of flag_pic.
642
643 2005-03-13  Roger Sayle  <roger@eyesopen.com>
644
645         * expmed.c (expand_mult): Use synthetic multiplication sequences for
646         more classes of DImode multiplication by constant.  Allow both
647         multiplication by small negative constants (by performing a
648         multiplication by a positive constant and negating the result) and
649         multiplications by large powers of two, by using a left shift.
650
651 2005-03-13  Kazu Hirata  <kazu@cs.umass.edu>
652
653         * tree-into-ssa.c (find_idf): Speed up by putting the indexes
654         of basic blocks into work_stack.
655
656         * builtin-attrs.def, c-lex.c, c-pragma.h, reg-stack.c,
657         config/mips/vr.h: Update copyright.
658
659         * c-decl.c (c_init_decl_processing): Remove useless calls to
660         build_function_type.
661
662         * builtins.c (fold_trunc_transparent_mathfn,
663         fold_fixed_mathfn, fold_builtin_atan, fold_builtin_trunc,
664         fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
665         fold_builtin_lround, fold_builtin_bitop, fold_builtin_memcpy,
666         fold_builtin_strcpy, fold_builtin_strncpy,
667         fold_builtin_signbit): Use TYPE (TYPE (fndecl)) instead of
668         TREE_TYPE (exp).
669
670         * builtins.c (expand_builtin_mathfn_3): Remove local variable
671         before_call.
672
673         * lambda-code.c (lambda_compute_auxillary_space): Remove local
674         variable determinant.
675
676         * tree-cfg.c (group_case_labels): Remove local variable type.
677
678         * tree-ssa-live.c (build_tree_conflict_graph): Remove local
679         variable ann.
680
681         * tree-ssa-phiopt.c (value_replacement): Remove local variable
682         result.
683
684 2005-03-13  Andy Hutchinson  <HutchinsonAndy@netscape.net>
685
686         PR target/18251
687         * config/avr/avr.md (movmemhi): Rewrite as RTL loop.
688         (*movmemqi_insn): Delete.
689         (*movmemhi): Delete.
690
691 2005-03-13  Kazu Hirata  <kazu@cs.umass.edu>
692
693         * builtins.c (fold_builtin_classify): Take decomposed
694         arguments of CALL_EXPR.
695         (fold_builtin_1): Update a call to fold_builtin_classify.
696
697 2005-03-13  Joseph S. Myers  <joseph@codesourcery.com>
698
699         PR c/20402
700         * c-parser.c (c_parser_struct_or_union_specifier): Don't fall
701         through into call to parser_xref_tag after parse error.
702         (c_parser_struct_declaration): Consistently return NULL_TREE on
703         error.
704
705 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
706
707         * tree-flow-inline.h (ref_contains_array_ref): New function.
708         (lookup_subvars_for_var): Ditto.
709         (get_subvars_for_var): Ditto.
710         (var_can_have_subvars): Ditto.
711
712         * tree-flow.h (mem_tag_kind): Add STRUCT_FIELD.
713         (struct subvar): New type.
714
715         * tree-dfa.c (okay_component_ref_for_subvars): New function.
716
717         * tree-optimize.c (init_tree_optimization_passes): Call
718         pass_create_structure_vars.
719
720         * tree-ssa-alias.c: Include vec.h.
721         (init_alias_info): Don't auto-clear call clobbered on struct-field
722         tags.
723         (compute_flow_insensitive_aliasing): Handle subvars.
724         (group_aliases): Handle STRUCT_FIELD aliases.
725         (setup_pointers_and_addressables): Ditto.
726         Don't mark variables non-addressable if they still have
727         addressable subvars.
728         Also mark subvars addressable when the real variable is marked
729         addressable.
730         (add_pointed_to_var): Try to prune the pointed-to set by only
731         pointing to subvars when possible.
732         Otherwise, make sure we set addresses_needed and pt_vars to
733         properly include subvars.
734         (bitpos_of_field): New function.
735         (push_fields_onto_fieldstack): Ditto.
736         (get_or_create_used_part_for): Ditto.
737         (create_overlap_variables_for): Ditto.
738         (find_used_portions): Ditto.
739         (create_structure_vars): Ditto.
740         (pass_create_structure_vars): New structure.
741
742         * tree-ssa-operands.c (finalize_ssa_v_must_defs): Remove assert.
743         (get_expr_operands): Handle subvars.  Also try to turn
744         COMPONENT_REF accesses into must-defs now that we can accurately
745         portray it.
746         (note_addressable): Try to only mark as addressable those subvars
747         we know a COMPONENT_REF touches.
748         (overlap_subvar): New function.
749
750         * tree-vect-analyze.c (vect_object_analysis): Add new parameter.
751         Handle subvar storing.
752         (vect_address_analysis): Update caller of vect_object_analysis.
753
754         * tree-vect-transform.c (vect_create_data_ref_ptr): Copy subvars.
755
756         * tree-vectorizer.h (struct _stmt_vec_info): Add subvars member.
757         (STMT_VINFO_SUBVARS): New macro.
758
759         * common.opts: add flag_tree_salias.
760
761         * opts.c (decode_options): flag_tree_salias defaults to on.
762
763         * doc/invoke.texi: Document fdump-tree-svars and -ftree-salias.
764
765         * doc/tree-ssa.texi: Document structural alias analysis.
766
767 2005-03-12  Steven Bosscher  <stevenb@suse.de>
768
769         * tree-cfg.c (make_goto_expr_edges): Don't use error_mark_node.
770         * tree-ssa-dce.c (mark_stmt_necessary): Don't check for it.
771         * tree-ssa-operands.c (get_expr_operands): Likewise.
772         (get_expr_operands): Likewise for ERROR_MARK.
773
774 2005-03-12  Kazu Hirata  <kazu@cs.umass.edu>
775
776         * tree-ssa.c (kill_redundant_phi_nodes): Remove local variable
777         var.
778
779         * tree-ssa-phiopt.c (tree_ssa_phiopt): Remove local variable
780         removed_phis.
781
782         * tree-ssa-pre.c (compute_avail): Remove local variable val.
783         (mark_operand_necessary): Remove local variable ver.
784
785         * tree-vect-transform.c (vect_get_new_vect_var): Remove local
786         variable prefix_len.
787
788         * value-prof.c (mod_subtract_transform): Remove local variable
789         value.
790
791         * builtins.c (fold_builtin_exponent): Take decomposed
792         arguments of CALL_EXPR.
793         (fold_builtin_1): Update a call to fold_builtin_exponent.
794
795         * builtins.c (fold_builtin_logarithm): Take decomposed
796         arguments of CALL_EXPR.
797         (fold_builtin_1): Update a call to fold_builtin_logarithm.
798
799         * c-decl.c (c_init_decl_processing): Remove local variables
800         ptr_ftype_void and ptr_ftype_ptr.
801
802         * gimplify.c (gimplify_expr): Remove local variables r0 and
803         r1.
804
805         * reg-stack.c (move_for_stack_reg): Remove local variable
806         push_insn.
807         (compare_for_stack_reg): Remove local variable flags_user.
808         (convert_regs_1): Remove local variable deleted.
809
810         * tree-if-conv.c (tree_if_convert_cond_expr): Remove local
811         variable new_cond.
812         (combine_blocks): Remove local variables exits and new_e.
813
814         * tree-inline.c (expand_call_inline): Remove local variable
815         decl.
816
817         * tree-ssa-live.c (create_ssa_var_map,
818         calculate_live_on_entry): Remove local variable snn.
819
820 2005-03-12  Geoffrey Keating  <geoffk@apple.com>
821
822         * c-lex.c (c_lex_with_flags): Add parameter to call to
823         cpp_spell_token.
824
825 2005-03-11  Per Bothner  <per@bothner.com>
826
827         * c-tree.h (struct c_declarator): New id_loc field.
828         * c-pragma.h (c_lex_with_flags): Take position reference.
829         * c-lex.c (c_lex_with_flags): Set passed-in location from cpp token,
830         iff USE_MAPPED_LOCATION. (Type doesn't match otherwise.)
831         (c_lex): Pass dummy location to c_lex_with_flags.
832         * c-parser.c (c_lex_one_token): Set c_token's location using
833         c_lex_with_flags, instead of input_location, which might be "ahead".
834         (c_parser_direct_declarator): Set declarator's id_loc from
835         c_token's id_loc.
836         * c-decl.c (grokdeclarator): Set DECL_SOURCE_LOCATION from
837         declarator's id_loc, rather than probably-imprecise input_location.
838         (build_id_declarator): Initialize c_declarator's id_loc field.
839
840 2005-03-11  Roger Sayle  <roger@eyesopen.com>
841
842         PR middle-end/20419
843         * builtins.c (expand_builtin_signbit): Force the signbit's word
844         into an integer register to avoid SUBREGs of floating point modes.
845
846 2005-03-12  Kazu Hirata  <kazu@cs.umass.edu>
847
848         * cfglayout.c, loop-doloop.c, profile.c, target-def.h,
849         target.h, targhooks.c, tracer.c, tree-ssa-loop-ch.c,
850         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, vec.c, vmsdbgout.c,
851         config/m32r/m32r.md, config/xtensa/xtensa.h: Update copyright.
852
853 2005-03-11  David Edelsohn  <edelsohn@gnu.org>
854
855         PR rtl-optimization/20306
856         * expr.c (emit_move_complex): Set try_int false if mode is
857         MODE_COMPLEX_FLOAT and mov_optab exists for inner mode.  Only try
858         emit_block_move if try_int is true.
859
860 2005-03-11  Richard Henderson  <rth@redhat.com>
861
862         PR target/20415
863         * config/i386/mmx.md (vec_dupv4hi): Fix predicate.
864         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Update
865         to match.
866
867 2005-03-11  Richard Sandiford  <rsandifo@redhat.com>
868
869         * config/mips/mips.h (mips_fix_vr4130_string): Declare.
870         (TARGET_FIX_VR4130): New macro.
871         (TARGET_OPTIONS): Add -mfix-vr4130.
872         (ISA_HAS_MACCHI): New macro.
873         (ASM_SPEC): Add -mfix-vr4130.
874         * config/mips/mips.c (mips_fix_vr4130_string): New variable.
875         (override_options): Handle mips_fix_vr4130_string.
876         (mips_avoid_hazards): Clear all_noreorder_p
877         if we're working around VR4130 errata and the macc alternatives
878         are not available.
879         * config/mips/mips.md (mfhilo_<mode>): Turn into a define_expand.
880         (*mfhilo_<mode>, *mfhilo_<mode>_macc): New insns.
881         * config/mips/vr.h (DEFAULT_VR_ARCH): Set to mfix-vr4130.
882         (MULTILIB_DEFAULTS): Remove leading "march=".
883         (DRIVER_SELF_SPECS): Likewise.  Make -mfix-vr4130 imply -march=vr4130
884         if no architecture option is given.
885         * config/mips/t-vr (MULTILIB_OPTIONS): Use -mfix-vr4130 for the
886         VR4130 multilibs.
887         (MULTILIB_MATCHES): Map -march=vr4130 to the -mfix-vr4130 multilibs.
888         * doc/invoke.texi: Document -mfix-vr4130.
889
890 2005-03-11  Richard Sandiford  <rsandifo@redhat.com>
891
892         * config/mips/mips.c (override_options): Only warn about -mint64
893         deprecation if TARGET_INT64.
894
895 2005-03-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
896
897         * builtin-attrs.def (ATTR_NONNULL_LIST, ATTR_NOTHROW_NONNULL,
898         ATTR_CONST_NOTHROW_NONNULL, ATTR_PURE_NOTHROW_NONNULL,
899         ATTR_MALLOC_NOTHROW_NONNULL): New "nonnull" attribute lists which
900         are non-specific regarding the nonnull parameter positions.
901         (ATTR_NONNULL_1_2, ATTR_NONNULL_1_4, ATTR_NOTHROW_NONNULL_1_2,
902         ATTR_NOTHROW_NONNULL_1_4, ATTR_CONST_NOTHROW_NONNULL_1,
903         ATTR_PURE_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1_2,
904         ATTR_MALLOC_NOTHROW_NONNULL_1): Delete.
905
906         * builtins.def: Use the non-specific "nonnull" attibute lists.
907
908 2005-03-11  Zdenek Dvorak  <dvorakz@suse.cz>
909
910         * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
911         single_pred_edge, single_succ, single_pred): Improve comments.
912
913 2005-03-11  Zdenek Dvorak  <dvorakz@suse.cz>
914
915         * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
916         single_pred_edge, single_succ, single_pred): New inline functions.
917         * bb-reorder.c (rotate_loop, find_traces_1_round,
918         add_labels_and_missing_jumps, fix_up_fall_thru_edges,
919         duplicate_computed_gotos): Use the single_succ/pred functions.
920         * cfganal.c (forwarder_block_p): Ditto.
921         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
922         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
923         outgoing_edges_match, try_crossjump_to_edge, try_optimize_cfg,
924         merge_seq_blocks): Ditto.
925         * cfghooks.c (split_edge, tidy_fallthru_edges): Ditto.
926         * cfglayout.c (fixup_reorder_chain): Ditto.
927         * cfgloop.c (mark_single_exit_loops, update_latch_info,
928         canonicalize_loop_headers, verify_loop_structure): Ditto.
929         * cfgloopmanip.c (remove_path, unloop, loop_delete_branch_edge,
930         mfb_update_loops, create_preheader, force_single_succ_latches,
931         create_loop_notes): Ditto.
932         * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
933         force_nonfallthru_and_redirect, rtl_tidy_fallthru_edge,
934         commit_one_edge_insertion, purge_dead_edges,
935         cfg_layout_can_merge_blocks_p): Ditto.
936         * except.c (sjlj_emit_function_enter): Ditto.
937         * flow.c (init_propagate_block_info): Ditto.
938         * function.c (thread_prologue_and_epilogue_insns): Ditto.
939         * gcse.c (find_implicit_sets, bypass_conditional_jumps,
940         insert_insn_end_bb): Ditto.
941         * ifcvt.c (merge_if_block, find_if_block, find_if_case_1,
942         find_if_case_2): Ditto.
943         * lambda-code.c (perfect_nestify): Ditto.
944         * lcm.c (optimize_mode_switching): Ditto.
945         * loop-doloop.c (doloop_modify): Ditto.
946         * loop-init.c (loop_optimizer_init): Ditto.
947         * loop-iv.c (simplify_using_initial_values): Ditto.
948         * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
949         * loop-unswitch.c (unswitch_loop): Ditto.
950         * modulo-sched.c (generate_prolog_epilog): Ditto.
951         * predict.c (combine_predictions_for_insn, estimate_probability,
952         tree_estimate_probability, last_basic_block_p,
953         estimate_bb_frequencies): Ditto.
954         * profile.c (branch_prob): Ditto.
955         * regrename.c (copyprop_hardreg_forward): Ditto.
956         * sched-rgn.c (is_cfg_nonregular, find_rgns, update_live): Ditto.
957         * tracer.c (layout_superblocks): Ditto.
958         * tree-cfg.c (tree_can_merge_blocks_p, tree_merge_blocks,
959         cfg_remove_useless_stmts_bb, cleanup_control_flow,
960         cleanup_control_expr_graph, disband_implicit_edges,
961         tree_find_edge_insert_loc, bsi_commit_edge_inserts,
962         tree_verify_flow_info, tree_make_forwarder_block,
963         tree_forwarder_block_p, remove_forwarder_block,
964         remove_forwarder_block_with_phi, merge_phi_nodes): Ditto.
965         * tree-if-conv.c (tree_if_conversion): Ditto.
966         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
967         * tree-ssa-dce.c (remove_dead_stmt): Ditto.
968         * tree-ssa-dom.c (dom_opt_finalize_block): Ditto.
969         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
970         copy_loop_headers): Ditto.
971         * tree-ssa-loop-im.c (loop_commit_inserts): Ditto.
972         * tree-ssa-loop-ivopts.c (compute_phi_arg_on_exit): Ditto.
973         * tree-ssa-loop-manip.c (split_loop_exit_edge, ip_normal_pos,
974         lv_adjust_loop_entry_edge, tree_ssa_loop_version): Ditto.
975         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Ditto.
976         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Ditto.
977         * tree-ssa-phiopt.c (tree_ssa_phiopt, value_replacement): Ditto.
978         * tree-ssa-pre.c (compute_antic_aux, insert_aux, init_pre): Ditto.
979         * tree-ssa-threadupdate.c (redirect_edges): Ditto.
980         * tree-tailcall.c (independent_of_stmt_p, find_tail_calls,
981         eliminate_tail_call, tree_optimize_tail_calls_1): Ditto.
982         * tree-vect-analyze.c (vect_analyze_loop_form): Ditto.
983         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
984         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard,
985         slpeel_add_loop_guard): Ditto.
986
987 2005-03-11  James A. Morrison  <phython@gcc.gnu.org>
988
989         PR tree-optimization/15784
990         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
991         and -1 - A to ~A.
992
993         * stmt.c (expand_case): Don't change index_type.  Convert minval
994         to the proper type.
995
996         PR tree-optimization/20130
997         * fold-const.c (fold): Fold x * -1 into -x.
998
999 2005-03-11  Kaz Kojima  <kkojima@gcc.gnu.org>
1000
1001         PR rtl-optimization/20331
1002         * rtlanal.c (modified_between_p): Check its address first for MEM.
1003         (modified_in_p): Likewise.
1004
1005 2005-03-11  Joseph S. Myers  <joseph@codesourcery.com>
1006
1007         * config.gcc (hppa*64*-*-hpux11*): Use pa/t-hpux-shlib.
1008
1009 2005-03-10  Steven Bosscher  <stevenb@suse.de>
1010
1011         * expr.c (expand_expr_real_1): If possible, use a conditional
1012         move for expanding MIN_EXPR and MAX_EXPR.
1013         Use temp for moving around rtx-en.
1014
1015 2005-03-10  Andrew Pinski  <pinskia@physics.uc.edu>
1016
1017         PR rtl-opt/20412
1018         * simplify-rtx.c (simplify_relational_operation_1): Fix typo - check the
1019         correct mode.
1020
1021 2005-03-10  Roger Sayle  <roger@eyesopen.com>
1022
1023         * builtins.c (expand_builtin_signbit): Extend to handle floating
1024         point modes wider than the largest integer type, using the
1025         operand_subword_force function to obtain the signbit's word.
1026
1027 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
1028
1029         PR target/20322
1030         * combine.c (try_combine): If recog_for_combine added CLOBBERs
1031         to NEWI2PAT, fail to combine if they are used by NEWPAT.
1032
1033 2005-03-10  Aldy Hernandez  <aldyh@redhat.com>
1034
1035         * doc/invoke.texi: Add 8540 to list of cpus in rs6000 cpu section.
1036
1037 2005-03-10  Kazu Hirata  <kazu@cs.umass.edu>
1038
1039         * tree-outof-ssa.c (analyze_edges_for_bb): Make the return
1040         type void.
1041         (perform_edge_inserts): Unconditionally call
1042         free_dominator_info.
1043
1044         * tree-outof-ssa.c (analyze_edges_for_bb): Update a comment.
1045
1046 2005-03-10  Bob Wilson  <bob.wilson@acm.org>
1047
1048         * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Define.
1049
1050 2005-03-10  Nathan Sidwell  <nathan@codesourcery.com>
1051
1052         * bitmap.c (bitmap_copy): Remove manual loop unrolling.
1053
1054         * value-prof.c (rtl_find_values_to_profile): Use gcc_assert and
1055         gcc_unreachable.
1056         (rtl_register_value_prof_hooks,
1057         tree_value_profile_transformations,
1058         tree_register_value_prof_hooks): Likewise.
1059         * var-tracking.c (stack_adjust_offset_pre_post,
1060         variable_htab_free, variable_union, dataflow_set_different_2,
1061         count_uses, variable_was_changed, set_frame_base_location,
1062         set_variable_part, emit_note_insn_var_location, vt_emit_notes,
1063         vt_add_function_parameters): Likewise.
1064         * varasm.c (named_section_real, named_section, make_decl_rtl,
1065         asm_emit_uninitialised, assemble_integer, decode_addr_const,
1066         const_hash_1, compare_constant, copy_constant, force_const_mem,
1067         output_constant_pool_2, output_constant_pool_1, output_constant,
1068         output_constructor, make_decl_one_only, decl_tls_model,
1069         default_no_named_section, default_elf_select_section_1,
1070         default_unique_section_1): Likewise.
1071         * vec.c (vec_gc_o_reserve, vec_heap_o_reserve): Likewise.
1072         * vmsdbgout.c (addr_const_to_string): Likewise.
1073
1074         PR c++/20375
1075         * function.c (struct assign_parm_data_one): Remove last_named
1076         field.
1077         (assign_parm_find_data_types): Don't determine last_named.
1078         Reorder named_parm determination.
1079         (assign_parms): Only setup varargs on the last non-varadic
1080         parameter.
1081
1082 2005-03-10  Kazuhiro Inaoka  <inaoka.lazuhiro@renesas.com>
1083
1084         * config/m32r/m32r.md (load_sda_base_32): New pattern.  Loads
1085         sda base address on medium model.
1086
1087 2005-03-10  Zdenek Dvorak  <dvorakz@suse.cz>
1088
1089         * Makefile.in (tree-optimize.o): Add CFGLOOP_H dependence.
1090         * cfgloop.c (flow_loop_nodes_find): Export.
1091         * cfgloop.h (flow_loop_nodes_find, fix_loop_structure):
1092         Declare.
1093         * cfgloopmanip.c (fix_loop_structure): New function.
1094         * predict.c (predict_loops): Clean up the loops information.
1095         * tree-cfg.c (cleanup_tree_cfg_loop): New function.
1096         (tree_can_merge_blocks_p, remove_bb, tree_forwarder_block_p): Respect
1097         loop structure.
1098         * tree-flow.h (cleanup_tree_cfg_loop): Declare.
1099         (rewrite_into_loop_closed_ssa): Declaration changed.
1100         * tree-loop-linear.c (linear_transform_loops): Add argument to
1101         rewrite_into_loop_closed_ssa call.
1102         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
1103         * tree-ssa-loop-im.c (move_computations): Ditto.
1104         * tree-ssa-loop.c (tree_loop_optimizer_init): Ditto.
1105         * tree-vectorizer.c (vectorize_loops): Ditto.
1106         * tree-optimize.c: Include cfgloop.h.
1107         (execute_todo): Choose whether to call cleanup_tree_cfg or
1108         cleanup_tree_cfg_loop.
1109         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables,
1110         (tree_unroll_loops_completely): Enable cleanup_tree_cfg_loop call.
1111         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Enable
1112         cleanup_tree_cfg_loop call.
1113         * tree-ssa-loop-manip.c (find_uses_to_rename_bb): New function.
1114         (find_uses_to_rename, rewrite_into_loop_closed_ssa): Support
1115         work on part of cfg.
1116
1117 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
1118
1119         PR inline-asm/20314
1120         * gimplify.c (gimplify_asm_expr): Handle input/output constraints
1121         with multiple alternatives.
1122
1123         * stmt.c (parse_output_constraint): Fix a typo.
1124
1125 2005-03-09  Bob Wilson  <bob.wilson@acm.org>
1126
1127         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Use "no-transform"
1128         assembly directive instead of deprecated "no-generics".
1129
1130 2005-03-09  Ulrich Weigand  <uweigand@de.ibm.com>
1131
1132         * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
1133         for non-offsettable memory references to cope with outstanding reload
1134         replacements.
1135         * config/s390/s390.md ("reload_outti"): Call find_replacement to
1136         avoid losing outstanding address reloads.
1137         ("reload_outdi", "reload_outdf"): Likewise.
1138
1139 2005-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1140
1141         * builtins.c (fold_builtin_cbrt, fold_builtin_pow): Rearrange
1142         code.  Add more cbrt transformations.
1143
1144 2005-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1145
1146         * fold-const.c (fold_unary_to_constant): Add FIX_ROUND_EXPR case.
1147
1148 2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>
1149
1150         * fold-const.c (fold_unary, fold_binary, fold_ternary): Return
1151         NULL_TREE when a given tree is not simplified.
1152         (fold): Return the original tree when any of the functions
1153         mentioned above NULL_TREE.
1154
1155         * fold-const.c (fold_unary, fold_binary): Take decomposed
1156         arguments, code, type, op0, and op1 in case of fold_binary.
1157         (fold): Update calls to fold_unary and fold_binary.
1158
1159 2005-03-09  Roger Sayle  <roger@eyesopen.com>
1160
1161         * builtins.c (fold_builtin_unordered_cmp): Change prototype to take
1162         a fndecl and an arglist instead of a CALL_EXPR, exp.
1163
1164 2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>
1165
1166         * cfglayout.c (fixup_reorder_chain): Remove old_bb.
1167
1168         * cfgrtl.c (cfg_layout_merge_blocks): Remove new_e.
1169
1170         * expr.c (expand_assignment): Remove orig_to_rtx.
1171
1172         * fold-const.c (int_const_binop): Remove no_overflow.
1173
1174         * ifcvt.c (noce_emit_move_insn): Remove inmode.
1175
1176         * loop-iv.c (get_biv_step_1): Remove lhs.
1177
1178         * loop-unroll.c (analyze_insns_in_loop): Remove preheader.
1179
1180         * real.c (real_nan): Remove neg.
1181
1182         * function.c (thread_prologue_and_epilogue_insns): Remove i
1183         and newinsn.
1184
1185         * tree-data-ref.c (array_base_name_differ_p): Remove ta and
1186         tb.
1187
1188         * tree-eh.c (tree_could_trap_p): Remove idx.
1189
1190         * tree-into-ssa.c (ann): Remove ann.
1191
1192         * tree-outof-ssa.c (num_nodes): Remove num_nodes.
1193
1194         * tree-sra.c (decide_block_copy): Remove inst_count.
1195
1196         * tree-ssa-alias.c (may_alias_p): Remove v_ann.
1197
1198         * tree-ssa-loop-im.c (lhs): Remove.
1199
1200         * cfgbuild.c (state, STATE, SET_STATE,
1201         BLOCK_USED_BY_TABLEJUMP, FULL_STATE): Move just before
1202         make_edges.
1203         (make_edges): Speed up by skipping blocks with BLOCK_ORIGINAL.
1204         (find_basic_blocks): Set the state of each basic block to
1205         BLOCK_NEW.
1206
1207 2005-03-08  Jeff Law  <law@redhat.com>
1208
1209         * tree-cfg.c (cleanup_control_flow): If removal of a computed
1210         goto results in the removal of edges in the CFG, then we need
1211         to recompute dominators.
1212
1213 2005-03-09  Ben Elliston  <bje@au.ibm.com>
1214
1215         * c-common.c (c_do_switch_warnings): Comment fix.
1216
1217 2005-03-08  Julian Brown  <julian@codesourcery.com>
1218
1219         * Patch from 2005-03-08 reverted for causing regressions and
1220         ppc-darwin bootstrap failure.
1221
1222 2005-03-08  Fariborz Jahanian <fjahanian@apple.com>
1223
1224         * config/rs6000/rs6000.c (invalid_arg_for_unprototyped_fn):
1225         Define the real function for ppc-darwin.
1226         * c-typeck.c (convert_arguments): Check for target-specific
1227         invalid argument call to unprototyped function.
1228         * target-def.h (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
1229         New Macro.
1230         * target.h (invalid_arg_for_unprototyped_fn): New field
1231         in struct calls.
1232         * targhooks.c (hook_invalid_arg_for_unprototyped_fn): New
1233         default target hook.
1234         * targhooks.h (hook_invalid_arg_for_unprototyped_fn):
1235         Declare.
1236
1237 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
1238
1239         * c-typeck.c (constructor_stack, constructor_range_stack,
1240         initializer_stack): Make them static.
1241
1242         * cfg.c (rbi_pool): Make it static.
1243
1244         * gimple-low.c (lower_stmt_body): Make it static.
1245         * tree-flow.h: Remove the corresponding prototype.  Don't
1246         declare lower_data.
1247
1248         * sched-deps.c (cache_size): Make it static.
1249
1250         * stor-layout.c (lang_adjust_rli): Make it static.
1251
1252 2005-03-08  Julian Brown  <julian@codesourcery.com>
1253
1254         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
1255         from being used for symbols with vague linkage when
1256         HAVE_GAS_COMDAT_GROUP is true.
1257
1258 2005-03-08  J"orn Rennecke <joern.rennecke@st.com>
1259
1260         * jump.c (invert_jump_1): Don't call redirect_jump_1 with
1261         nlabel == JUMP_LABEL (jump).
1262
1263 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
1264
1265         * c-common.c, c-opts.c, combine.c, cse.c, dojump.c,
1266         gimplify.c, tree-dfa.c, tree-ssa-loop-ivopts.c,
1267         tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-sink.c,
1268         tree-vect-analyze.c, tree.def, tree.h: Fix comment formatting.
1269
1270 2005-03-08  Alexey Neyman  <alex.neyman@auriga.ru>
1271
1272         PR c/14411
1273         * calls.c (flags_from_decl_or_type): Handle eturns_twice' attribute.
1274         * c-common.c (handle_returns_twice): New function.
1275         (c_common_attribute_table): Declare eturns_twice' attribute.
1276         * doc/extend.texi: Document eturns_twice' attribute.
1277         * tree.h (DECL_IS_RETURNS_TWICE): New macro.
1278         (struct tree_decl): Add returns_twice_flag.
1279
1280 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
1281
1282         * tree-ssa-phiopt.c: Fix a comment typo.
1283
1284         * c-semantics.c, cfghooks.c, diagnostic.h, loop-iv.c,
1285         loop-unswitch.c, modulo-sched.c, stor-layout.c, tree-gimple.h,
1286         config/i386/cygwin1.c, doc/cfg.texi, doc/objc.texi: Update
1287         copyright.
1288
1289 2005-03-08  Richard Henderson  <rth@redhat.com>
1290
1291         * config/alpha/alpha.c (code_for_builtin): Replace special-case
1292         builtin codes with ctzdi2, clzdi2, popcountdi2.
1293         (struct alpha_builtin_def): Add is_const.
1294         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): Init it.
1295         (alpha_v8qi_u, alpha_v8qi_s, alpha_v4hi_u, alpha_v4hi_s): New.
1296         (alpha_init_builtins): Init them.  Set nothrow and const attributes
1297         on builtins.
1298         (alpha_fold_builtin_cmpbge, alpha_fold_builtin_zapnot,
1299         alpha_fold_builtin_extxx, alpha_fold_builtin_insxx,
1300         alpha_fold_builtin_mskxx, alpha_fold_builtin_umulh,
1301         alpha_fold_vector_minmax, alpha_fold_builtin_perr,
1302         alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb,
1303         alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw,
1304         alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz,
1305         alpha_fold_builtin_ctpop, alpha_fold_builtin): New.
1306         (TARGET_FOLD_BUILTIN): New.
1307         * config/alpha/alpha.md (UNSPEC_CTTZ): Remove.
1308         (UNSPEC_CTLZ, UNSPEC_CTPOP): Remove.
1309         (ffsdi2): Use ctz.
1310         (cttz, builtin_cttz, builtin_ctlz, builtin_ctpop): Remove.
1311
1312 2005-03-08  Ira Rosen  <irar@il.ibm.com>
1313
1314         PR tree-optimization/20122
1315         * tree-vect-analyze.c (vect_object_analysis): Analyze initial
1316         condition of access function instead of base.
1317
1318 2005-03-07  Jeff Law  <law@redhat.com>
1319             Steven Bosscher  <stevenb@suse.de>
1320
1321         * tree-cfg.c (find_taken_edge_computed_goto): New function.
1322         (find_taken_edge): Call find_taken_edge_computed_goto as
1323         appropriate.  Allow any gimple invariant rather than just
1324         INTEGER_CST for VAL.
1325         (cleanup_control_flow): Cleanup a computed goto which has turned
1326         into a simple goto.
1327         (tree_merge_blocks): If block B has any forced labels, move
1328         them to the start of block A.
1329         * tree-ssa-dom.c (thread_across_edge): Allow threading across
1330         computed gotos as well.
1331         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Handle
1332         removal of unnecessary computed gotos too.
1333         (lookup_redirection_data): Fix type of INSERT argument.  Callers
1334         updated.
1335
1336 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
1337
1338         * tree-ssa-phiopt.c: Update copyright.  Fix indentations.
1339         Remove trailing spaces.
1340
1341         * gimplify.c (gimple_push_bind_expr, gimple_pop_bind_expr,
1342         unshare_all_trees): Make them static.
1343         * tree-gimple.h: Remove the corresponding prototypes.
1344
1345         * diagnostic.h: Remove unused prototype
1346         debug_output_buffer.
1347         * modulo-sched.c: Remove unused prototype
1348         set_row_column_for_ps.
1349
1350         * tree-ssa-phiopt.c (tree_ssa_phiopt,
1351         replace_phi_edge_with_variable): Remove unused variable i.
1352
1353 2005-03-07  Per Bothner  <per@bothner.com>
1354
1355         * tree.h (DECL_IS_BUILTIN): Reverted my patch from earlier today.
1356
1357 2005-03-06  Andrew Pinski  <pinskia@physics.uc.edu>
1358
1359         PR tree-opt/17671
1360         * tree-ssa-phiopt.c (tree_ssa_phiopt): Rewrite so we base the
1361         bbs on the COND_EXPR instead of the PHI_NODEs.
1362         (candidate_bb_for_phi_optimization): Remove.
1363         (replace_phi_with_stmt): Rename to ...
1364         (replace_phi_edge_with_variable): this and change so that we
1365         replace the phi argument instead of removing the PHI.
1366         (conditional_replacement): Change so we deal with PHI with more
1367         than two arguments.
1368         (value_replacement): Likewise.
1369         (abs_replacement): Likewise.
1370
1371 2005-03-07  Aldy Hernandez  <aldyh@redhat.com>
1372
1373         * config/rs6000/rs6000-protos.h: Rename output_e500_flip_eq_bit to
1374         output_e500_flip_gt_bit.
1375
1376         * config/rs6000/rs6000.c (print_operand): case D: Print out bit 31
1377         as bit 31.
1378         (rs6000_generate_compare): Fix logic to look at the correct bits.
1379         (output_e500_flip_eq_bit): Rename to output_e500_flip_gt_bit.
1380         Look at GT bit.
1381         (rs6000_emit_sCOND): Rename gen_e500_flip_eq_bit to
1382         gen_e500_flip_gt_bit.  Rename gen_move_from_CR_eq_bit to
1383         gen_move_from_CR_gt_bit.
1384
1385         * config/rs6000/rs6000.md ("move_from_CR_eq_bit"): Change bit
1386         ("move_from_CR_eq_bit"): Rename to move_from_CR_gt_bit.
1387         (UNSPEC_MV_CR_EQ): Rename to UNSPEC_MV_CR_GT.
1388
1389         * config/rs6000/spe.md ("e500_cr_ior_compare"): New.
1390         (E500_CR_IOR_COMPARE): New constant.
1391
1392 2005-03-08  Earl Chew <earl_chew@agilent.com>
1393             David Billinghurst <David.Billinghurst@riotinto.com>
1394
1395         * config/i386/host-cygwin.c: New file to support precompiled
1396         headers on cygwin
1397         * config/i386/x-cygwin: Use host-cygwin.c on cygwin host
1398         * config.host: Use above files for cygwin host.
1399
1400 2005-03-07  David Edelsohn  <edelsohn@gnu.org>
1401
1402         * fold-const.c (fold_binary_op_with_conditional_arg): Fix typo
1403         ordering ops from earlier change.
1404
1405 2005-03-07  Per Bothner  <per@bothner.com>
1406
1407         Various fixes to allow us to again build if --enable-mapped-location:
1408         * c-decl.c (finish_function): Use SET_EXPR_LOCATION instead of
1409         unavailable annotate_with_file_line, if USE_MAPPED_LOCATION.
1410         * tree-cfg.c (remove_bb): If USE_MAPPED_LOCATION, change type of
1411         local variable loc. Change logic appropriately.
1412         * tree-vect-transform.c (vect_finish_stmt_generation): Use
1413         EXPR_LOCATION rather than EXPR_LOCUS if USE_MAPPED_LOCATION.
1414         * c-parser.c (c_parser_for_statement): Initialize loc variable.
1415         * tree.h (DECL_IS_BUILTIN): Temporarily revert definition of
1416         DECL_IS_BUILTIN in the USE_MAPPED_LOCATION because of jc1 issues.
1417
1418 2005-03-07  Richard Sandiford  <rsandifo@redhat.com>
1419
1420         PR rtl-optimization/19683
1421         * reload1.c (choose_reload_regs): Pass the number of bits, not the
1422         number of bytes, to smallest_int_for_mode.  Fix arguments to
1423         REG_CANNOT_CHANGE_MODE_P.
1424
1425 2005-03-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
1426
1427         * reorg.c (relax_delay_slots): Check that the jump is
1428         conditional before trying to invert it.
1429
1430 2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
1431
1432         * bb-reorder.c (max_entry_frequency, max_entry_frequency):
1433         Make them static.
1434
1435         * calls (stack_arg_under_construction): Make it static.
1436
1437         * flow.c (regs_live_at_setjmp): Make it static.
1438         * flow.h: Remove the corresponding prototype.
1439
1440         * reload1.c (reload_startobj, reload_firstobj,
1441         something_needs_operands_changed, reload_inherited,
1442         reload_inheritance_insn, reload_override_in,
1443         reload_spill_index): Make them static.
1444
1445         * recog.c (verify_changes): Make it static.
1446         * recog.h: Remove the corresponding prototype.
1447
1448         * cfgbuild.c (find_sub_basic_blocks): Remove.
1449         * basic-block.h: Remove the corresponding prototype.
1450         * cfgexpand.c, cfgrtl.c: Don't mention find_sub_basic_blocks
1451         in comments.
1452         * doc/cfg.texi: Don't mention find_sub_basic_blocks.
1453
1454         * tree-ssa-operands.c (check_build_stmt): Remove.
1455
1456         * stor-layout.c (set_alignment): Remove.
1457         * tree.h: Remove the corresponding prototype.
1458
1459         * tree-ssa-pre.c (has_abnormal_preds): Make it static.
1460
1461         * tree-ssa-dce.c (control_dependence_map,
1462         visited_control_parents): Make them static.
1463
1464         * cfghooks.c (verify_flow_info): Remove local variable
1465         num_bb_notes.
1466
1467         * cfgrtl.c (rtl_verify_flow_info_1): Remove local variable
1468         last_bb_seen.
1469
1470         * loop-unswitch.c (unswitch_loop): Remove local variable src.
1471
1472 2005-03-07  David Billinghurst <David.Billinghurst@riotinto.com>
1473
1474         * config/i386/cygwin1.c(mingw_scan): Use xstrdup in calls to putenv.
1475
1476 2005-03-07  Joseph S. Myers  <joseph@codesourcery.com>
1477
1478         * config/ia64/hpux.h (LINK_SPEC): Add -z.
1479         * config/ia64/ia64.c (ia64_function_value): Return a REG not a
1480         PARALLEL for an empty structure.
1481
1482 2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
1483
1484         * fold-const.c (fold_binary): Remove handling of RANGE_EXPR.
1485
1486         * fold-const.c (fold_binary): Unroll the very first "for"
1487         loop.
1488
1489 2005-03-06  David Edelsohn  <edelsohn@gnu.org>
1490
1491         * config/rs6000/predicates.md (branch_comparison_operator): Remove
1492         redundant match_code test.
1493         (scc_comparison_operator): Swap match_operand and match_code
1494         tests.
1495         (branch_positive_comparison_operator): Same.
1496         (trap_comparison_operator): Use comparison_operator and swap with
1497         match_code test.
1498
1499 2005-03-06  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1500
1501         PR target/20288
1502         * config/avr/avr.c (print_operand): Add 'p' and 'r'.
1503         (out_movhi_r_mr): Read low byte of volatile MEM first.
1504         (out_movhi_mr_r): Write high byte of volatile MEM first.
1505
1506 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
1507
1508         * cselib.c (reg_values, reg_values_size): Make them static.
1509
1510         * cse.c (cse_reg_info_table): Make it static.
1511
1512         * fold-const.c (fold_unary): Use build1 instead of copy_node.
1513
1514 2005-03-06  Zdenek Dvorak  <dvorakz@suse.cz>
1515
1516         * cse.c (find_best_addr): Use canon_for_address.
1517
1518 2005-03-06  Kazu Hirata  <kazu@cs.umass.edu>
1519
1520         * cse.c (fold_rtx_subreg, fold_rtx_mem): New.
1521         (fold_rtx): Call fold_rtx_subreg and fold_rtx_mem to handle
1522         SUBREG and MEM, respectively.
1523
1524         * fold-const.c (fold_binary): Use code instead of t.
1525
1526         * fold-const.c (optimize_minmax_comparison): Take decomposed
1527         arguments code, type, op0, and op1 instead of t.
1528         (fold_binary): Update a call to optimize_minmax_comparison.
1529
1530         * fold-const.c (fold_range_test): Take decomposed arguments
1531         code, type, op0, and op1 instead of t.
1532         (fold_binary): Update a call to fold_range_test.
1533
1534         * fold-const.c (fold_binary_op_with_conditional_arg): Take
1535         decomposed arguments code, type, op0, and op1 instead of t.
1536         (fold_binary): Update a call to fold_range_test.
1537
1538 2005-03-06  Kazu Hirata  <kazu@cs.umass.edu>
1539
1540         * fold-const.c (fold_binary): Avoid directly using the original
1541         expression t as much as possible.
1542
1543 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
1544
1545         * c-semantics.c (build_stmt): Use TYPE_P instead of
1546         IS_NON_TYPE_CODE_CLASS.
1547         * tree.h (IS_NON_TYPE_CODE_CLASS): Remove.
1548         (NON_TYPE_CHECK): Use TYPE_P instead of
1549         IS_NON_TYPE_CODE_CLASS.
1550
1551         * fold-const.c (fold): Remove handling of binary expressions.
1552
1553 2005-03-05  James A. Morrison  <phython@gcc.gnu.org>
1554
1555         * doc/c-tree.texi: Wrap comments in @r{}.
1556         * doc/cpp.texi: Likewise.
1557         * doc/cppinternals.texi: Likewise.
1558         * doc/extend.texi: Likewise.
1559         * doc/md.texi: Likewise.
1560         * doc/objc.texi: Likewise.
1561         * doc/sourcebuild.texi: Likewise.
1562         * doc/tm.texi: Likewise.
1563         * doc/tree-ssa.texi
1564
1565 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
1566
1567         * predict.c (apply_return_prediction): Standardize PHI chain
1568         walking.
1569         * tree-ssa.c (ssa_redirect_edge): Likewise.
1570
1571         * genattrtab.c, genemit.c, genoutput.c, genrecog.c,
1572         gensupport.c, jump.c, tree-phinodes.c, unwind-dw2-fde-glibc.c:
1573         Update copyright.
1574
1575         * tree-phinodes.c (remove_phi_node): Drop the last argument.
1576         * tree-flow.h: Adjust the prototype for remove_phi_node.
1577         * lambda-code.c (perfect_nestify): Adjust a call to
1578         remove_phi_node.
1579         * tree-cfg.c
1580         (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
1581         * tree-outof-ssa.c (eliminate_virtual_phis, remove_ssa_form):
1582         Likewise.
1583         * tree-ssa-dce.c (remove_dead_phis): Likewise.
1584         * tree-ssa-loop-ivopts.c (remove_statement): Likewise.
1585         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
1586         * tree-ssa.c (kill_redundant_phi_nodes): Likewise.
1587
1588         * combine.c (simplify_and_const_int): Use gen_int_mode instead
1589         of GEN_INT (trunc_int_for_mode (...)).
1590         * loop-iv.c (iv_number_of_iterations): Likewise.
1591         * postreload.c (reload_cse_move2add): Likewise.
1592         * simplify-rtx.c (simplify_const_unary_operation,
1593         simplify_const_binary_operation): Likewise.
1594         * stor-layout.c (get_mode_bounds): Likewise.
1595
1596         * fold-const.c (fold_binary): New.
1597         (fold): Call fold_binary on binary expressions.
1598
1599 2005-03-05  Richard Sandiford  <rsandifo@redhat.com>
1600
1601         * doc/invoke.texi: Document new MIPS -msym32 and -mno-sym32 options.
1602         * config/mips/mips.h (MASK_SYM32, TARGET_SYM32): New macros.
1603         (TARGET_SWITCHES): Add -msym32 and -mno-sym32.
1604         (ABI_HAS_64BIT_SYMBOLS): Set to false if TARGET_SYM32.
1605         (ASM_SPEC): Pass down -msym32 and -mno-sym32.
1606
1607 2005-03-04  Devang Patel  <dpatel@apple.com>
1608
1609         PR tree-optimization/18815
1610         * tree-if-conv.c (combine_blocks): Adjust loop header edges for
1611         loops with zero exit edges.
1612
1613 2005-03-04  Devang Patel  <dpatel@apple.com>
1614
1615         * doc/invoke.texi: Remove reference to webpage that does not exist.
1616
1617 2005-03-04  John David Anglin  <dave.danglin@nrc-cnrc.gc.ca>
1618             Joseph S. Myers  <joseph@codesourcery.com>
1619
1620         PR c++/19797
1621         * pa/elf.h, pa64-hpux.h, som.h (ASM_OUTPUT_EXTERNAL_REAL): Define.
1622         (ASM_OUTPUT_EXTERNAL): Call pa_hpux_asm_output_external.
1623         * pa-protos.h (pa_hpux_asm_output_external): Add prototype.
1624         * pa.c (get_plabel): Change argument to symbol_ref.  Call
1625         maybe_get_identifier instead of get_identifier.
1626         (pa_hpux_asm_output_external, pa_hpux_file_end): New functions.
1627         (struct deferred_plabel): Replace name field with symbol field.
1628         (TARGET_ASM_FILE_END): Define as pa_hpux_file_end if
1629         ASM_OUTPUT_EXTERNAL_REAL is defined.
1630         (output_global_address): Use output_addr_const for output of all
1631         symbol_refs.
1632         (output_deferred_plabels): Use symbol_ref instead of name for address
1633         output.
1634         * pa.h (SYMBOL_FLAG_REFERENCED, SYMBOL_REF_REFERENCED_P,
1635         ASM_OUTPUT_SYMBOL_REF): New macros.
1636         * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use assemble_name_raw.  Update
1637         comment.
1638         (ASM_WEAKEN_LABEL): Use targetm.asm_out.globalize_label to globalize
1639         label.
1640
1641 2005-03-05  Joseph S. Myers  <joseph@codesourcery.com>
1642
1643         * config.gcc (hppa*64*-*-hpux11*): Use pa/pa-hpux1111.h for
1644         *-*-hpux11.[1-9]*, not just for *-*-hpux11.11.
1645
1646 2005-03-04  Jeff Law  <law@redhat.com>
1647
1648         * basic-block.h (rediscover_loops_after_threading): Declare.
1649         * tree-ssa-dom.c: Include cfgloop.h.
1650         (tree_ssa_dominator_optimize): Discover loops and some basic
1651         properties.  Remove forwarder blocks recreated by loop header
1652         canonicalization.  Also mark backedges in the CFG.
1653         * tree-ssa-threadupdate.c: Include cfgloop.h
1654         (rediscover_loops_after_threading): Define.
1655         (struct local_info): New field, JUMP_THREADED.
1656         (prune_undesirable_thread_requests): New function.
1657         (redirect_edges): Clear EDGE_ABNORMAL.  If edges were threaded
1658         then record that fact for the callers of redirct_edges.
1659         (thread_block): If BB has incoming backedges, then call
1660         prune_undesirable_thraed_requests.    Note when we are
1661         going to have to rediscover loop information.  Return a
1662         boolean indicating if any jumps were threaded.
1663         (thread_through_all_blocks): Bubble up boolean indicating
1664         if any jumps were threaded.
1665         * Makefile.in (tree-ssa-dom.o): Depend on cfgloop.h
1666         (tree-ssa-threadupdate.o): Similarly.
1667
1668 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
1669
1670         * fold-const.c (fold_ternary): Unroll the "for" loop to
1671         extract operands.
1672
1673 2005-03-04  Andrew Haley  <aph@redhat.com>
1674
1675         * unwind-dw2-fde-glibc.c (struct
1676         unw_eh_callback_data.check_cache): New field.
1677         (frame_hdr_cache): New.
1678         (_Unwind_IteratePhdrCallback): Add ext_dl_phdr_info.
1679         Cache frame header info.
1680
1681 2005-03-04  Richard Sandiford  <rsandifo@redhat.com>
1682
1683         * rtl.h (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
1684         (print_c_condition): Declare.
1685         * read-rtl.c (ptr_loc): New structure.
1686         (ptr_locs, ptr_loc_obstack, joined_conditions)
1687         (joined_conditions_obstack): New variables.
1688         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc)
1689         (get_rtx_ptr_loc, copy_rtx_ptr_loc, print_rtx_ptr_loc)
1690         (join_c_conditions, print_c_condition): New functions.
1691         (apply_macro_to_string): Associate the new string with the same
1692         source location as the old one.
1693         (add_condition_to_string): Use join_c_conditions.
1694         (read_string): Use set_rtx_ptr_loc to record a filename and line
1695         number for the string.
1696         (read_rtx): Initialize the new variables above.
1697         * genattrtab.c (write_test_expr, write_attr_value): Use
1698         print_c_condition.
1699         * genconditions.c (write_header): Don't define MAYBE_EVAL.  Move its
1700         comment above the GCC_VERSION check.
1701         (write_one_condition): Use print_rtx_ptr_loc and print_c_condition.
1702         Inline the definition of MAYBE_EVAL.
1703         * genemit.c (gen_expand, gen_split): Use print_rtx_ptr_loc.
1704         * genoutput.c (process_template): Likewise.
1705         * genpreds.c (write_predicate_subfunction): Likewise.
1706         (write_predicate_expr): Use print_c_condition.
1707         * genrecog.c (write_cond): Likewise.
1708         * gensupport.c (process_rtx): Use join_c_conditions to join the
1709         conditions of a define_insn_and_split.  Record a source location
1710         for the string after the "&&".
1711         (alter_test_for_insn): Use join_c_conditions.
1712
1713 2005-03-04  Andrew Pinski  <pinskia@physics.uc.edu>
1714
1715         Revert for now:
1716         2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
1717         PR tree-optimization/15784
1718         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
1719         and -1 - A to ~A.
1720
1721 2005-03-04  Ben Elliston  <bje@au.ibm.com>
1722
1723         * gcc.c (option_map): Add --coverage.
1724         (LINK_COMMAND_SPEC): Pass -lgcov for `coverage'.
1725         (cc1_options): Pass -fprofile-arcs -ftest-coverage for `coverage'.
1726         * config/darwin.h: Pass -lgcov for `coverage'.
1727         * doc/invoke.texi (Debugging Options): Document --coverage.
1728
1729 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
1730
1731         * gcse.c (bypass_block): Use find_edge wherever possible.
1732
1733 2005-03-03  Daniel Berlin <dberlin@dbrelin.org>
1734
1735         Fix PR debug/20253
1736
1737         * c-opts.c (c_common_parse_file): Call start_source_file
1738         and end_source_file at the approriate times.
1739
1740         * dwarf2out.c (dwarf2out_finish): Don't auto-end
1741         the main file, it will be done for us now.
1742
1743 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
1744
1745         * fold-const.c (fold_ternary): New.
1746         (fold): Call fold_ternary on ternary expressions.  Remove
1747         handling of ternary expressions.
1748
1749 2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
1750
1751         PR tree-optimization/15784
1752         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
1753         and -1 - A to ~A.
1754
1755 2005-03-03  David Edelsohn  <edelsohn@gnu.org>
1756
1757         * config/rs6000/predicates.md (branch_comparison_operator):
1758         Convert from C block to conditional format.
1759
1760 2005-03-03  Jan Hubicka  <jh@suse.cz>
1761
1762         * tree-dfa.c (add_referenced_var): Don't walk initializer of external
1763         and non-constant public variables.
1764
1765 2005-03-03  Kazu Hirata  <kazu@cs.umass.edu>
1766
1767         * tree-cfg.c (stmt_starts_bb_p): Clean up by replacing code
1768         with LABEL_EXPR.
1769
1770         * cfgexpand.c (construct_exit_block): Use EDGE_PRED instead of
1771         EDGE_I.
1772
1773         * tree-phinodes.c (remove_phi_node): Clean up by factoring out
1774         calls to release_ssa_name and release_phi_node.
1775
1776         * fold-const.c (fold): Remove handling of unary expressions.
1777
1778         * fold-const.c (fold_unary): Avoid directly using the original
1779         expression t as much as possible.
1780
1781 2005-03-03  Roger Sayle  <roger@eyesopen.com>
1782             Andrew Pinski  <pinskia@physics.uc.edu>
1783
1784         * jump.c (redirect_exp_1): If nlabel is a NULL pointer create a
1785         RETURN rtx, and not a LABEL_REF containing a NULL pointer.
1786
1787 2005-03-03  Hans-Peter Nilsson  <hp@axis.com>
1788
1789         Describe special registers SRP and MOF as allocatable registers.
1790         * config/cris/cris.c (cris_md_asm_clobbers): New function.
1791         (TARGET_MD_ASM_CLOBBERS): Define to cris_md_asm_clobbers.
1792         (cris_conditional_register_usage): Enable CRIS_MOF_REGNUM if
1793         TARGET_HAS_MUL_INSNS.
1794         (cris_print_operand) <case 'd'>: New case.
1795         <case REG>: Allow CRIS_MOF_REGNUM and CRIS_SRP_REGNUM.
1796         * config/cris/cris.h (CRIS_PC_REGNUM, CRIS_SRP_REGNUM): Don't
1797         define.
1798         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS)
1799         (REG_ALLOC_ORDER): Update for MOF.
1800         (enum reg_class): New members MOF_REGS, GENERAL_REGS and
1801         SPECIAL_REGS.
1802         (GENERAL_REGS): No longer a define of ALL_REGS.
1803         (REGNO_REG_CLASS, REG_CLASS_CONTENTS, REG_CLASS_NAMES)
1804         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
1805         Adjust accordingly.
1806         (CRIS_SPECIAL_REGS_CONTENTS): New macro.
1807         (REG_CLASS_FROM_LETTER): Allocate 'h' and 'x'.
1808         (SECONDARY_RELOAD_CLASS): Define.
1809         (STACK_POINTER_REGNUM): Define as CRIS_SP_REGNUM.
1810         (FRAME_POINTER_REGNUM): Define as CRIS_FP_REGNUM.
1811         (ARG_POINTER_REGNUM): Define as CRIS_AP_REGNUM.
1812         (STATIC_CHAIN_REGNUM): Define as CRIS_STATIC_CHAIN_REGNUM.
1813         (REGISTER_MOVE_COST): Define.
1814         (PIC_OFFSET_TABLE_REGNUM): Define in terms of CRIS_GOT_REGNUM.
1815         * config/cris/cris.md (CRIS_GOT_REGNUM, CRIS_STATIC_CHAIN_REGNUM)
1816         (CRIS_FP_REGNUM, CRIS_SP_REGNUM, CRIS_SRP_REGNUM, CRIS_AP_REGNUM)
1817         (CRIS_MOF_REGNUM): New define_constants.
1818         ("*movsi_internal", "movhi", "movqi", "movsf"): Add alternatives for
1819         special registers.
1820         ("reload_inhi", "reload_outhi", "reload_inqi", "reload_outqi"):
1821         New patterns.
1822         ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3")
1823         ("mulsidi3", "umulsidi3", "smulsi3_highpart", "umulsi3_highpart"):
1824         Adjust for MOF being properly described as a register.
1825         (indir_to_reg_split): Name this split.  Conditionalize on the
1826         destination register being a general register.
1827         (movei): Conditionalize on on operands 0 and 1 having the same
1828         register class.
1829
1830 2005-03-03  Alan Modra  <amodra@bigpond.net.au>
1831
1832         PR target/20277
1833         * config/rs6000/rs6000.c (rs6000_override_options): Don't allow
1834         -mcpu to override any other explicitly given flags.
1835
1836 2005-03-02  J"orn Rennecke <joern.rennecke@st.com>
1837
1838         * recog.c (verify_changes, confirm_change_group): New functions,
1839         broken out of apply_change_group.
1840         (apply_change_group): Use them.
1841         * recog.h (verify_change, confirm_change_group): Declare.
1842         * rtl.h (redirect_jump_2): Declare.
1843         * jump.c (redirect_exp, invert_exp): Delete.
1844         (invert_exp_1): Take second parameter.  Return value.  Changed caller.
1845         (redirect_jump_2): New function, broken out of redirect_jump.
1846         (redirect_jump): Use redirect_jump_1 and redirect_jump_2.
1847         (invert_jump): Use invert_jump_1 and redirect_jump_2.
1848         * ifcvt.c (dead_or_predicable): Use redirect_jump_2.
1849
1850 2005-03-02  Geoffrey Keating  <geoffk@apple.com>
1851
1852         * varasm.c (named_section): Use xstrdup rather than doing it by
1853         hand.
1854
1855         * config/darwin8.h (LIB_SPEC): Switch -lmx and -lSystem.
1856
1857 2005-03-02  Devang Patel  <dpatel@apple.com>
1858
1859         Undo PR tree-optimization/18815 fix.
1860
1861 2005-03-02  Devang Patel  <dpatel@apple.com>
1862
1863         PR tree-optimization/18815
1864         * tree-if-conv.c (combine_blocks): Adjust loop header edges for
1865         loops with zero exit edges.
1866
1867 2005-03-02  Kazu Hirata  <kazu@cs.umass.edu>
1868
1869         * cfg.c (connect_src, connect_dest, disconnect_src,
1870         disconnct_dest): New.
1871         (unchecked_make_edge, remove_edge, redirect_edge_succ,
1872         redirect_edge_pred): Use the new functions.
1873
1874         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
1875         free_dominance_info only when needed.
1876
1877 2005-03-02  David Edelsohn  <edelsohn@gnu.org>
1878
1879         PR target/20276
1880         * config/rs6000/predicates.md (reg_or_cint64_operand): Fix typo.
1881         (reg_or_sub_cint64_operand): Same.
1882
1883 2005-03-02  Jeff Law  <law@redhat.com>
1884
1885         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Fix setting of
1886         CFG_ALTERED in the main DOM iteration loop.
1887
1888 2005-03-02  Mark Mitchell  <mark@codesourcery.com>
1889
1890         PR c++/19916
1891         * varasm.c (initializer_constant_valid_p): Allow conversions
1892         between OFFSET_TYPEs.  Tidy.
1893
1894 2005-03-02  Hans-Peter Nilsson  <hp@axis.com>
1895
1896         * config/cris/cris.md ("return"): Remove epilogue delay list
1897         sanity check.
1898
1899 2005-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
1900
1901         * config/arm/linux-elf.h (ARM_FUNCTION_PROFILER): Do not use (PLT)
1902         for Thumb.
1903         * config/arm/netbsd-elf.h (ARM_FUNCTION_PROFILER): Likewise.
1904
1905 2005-03-02  Kazu Hirata  <kazu@cs.umass.edu>
1906
1907         * cfgloop.h, cfgloopanal.c, cfgloopmanip.c, conflict.c,
1908         loop-init.c, loop-unroll.c, print-tree.c, reg-notes.def,
1909         config/m68k/m68k.c, config/mips/mips.h,
1910         config/rs6000/rs6000-protos.h, doc/contrib.texi,
1911         doc/include/gcc-common.texi: Update copyright.
1912
1913         PR middle-end/18029 and PR middle-end/18030
1914         * expr.c (optimize_bitfield_assignment_op): Add a special case
1915         to handle BIT_IOR_EXPR and BIT_XOR_EXPR.
1916
1917         * fold-const.c (fold_unary): New.
1918         (fold): Call fold_unary on unary expressions.
1919
1920 2005-03-02  Richard Guenther  <rguenth@gcc.gnu.org>
1921
1922         * cgraph.h (struct cgraph_edge): Add prev_caller and
1923         prev_callee fields.
1924         (cgraph_node_remove_callees): Export.
1925         * cgraph.c (cgraph_create_edge): Initialize prev_caller
1926         and prev_callee.
1927         (cgraph_edge_remove_callee): New function.
1928         (cgraph_edge_remove_caller): Likewise.
1929         (cgraph_remove_edge): Use.
1930         (cgraph_redirect_edge_callee): Likewise.
1931         (cgraph_node_remove_callees): New function.
1932         (cgraph_node_remove_callers): Likewise.
1933         (cgraph_remove_node): Use.
1934         * tree-optimize.c (tree_rest_of_compilation): Use
1935         cgraph_node_remove_callees instead of manual loop.
1936         * cgraphunit.c (cgraph_finalize_function): Likewise.
1937         (cgraph_expand_function): Likewise.
1938         (cgraph_remove_unreachable_nodes): Likewise.
1939
1940 2005-03-02  Joseph S. Myers  <joseph@codesourcery.com>
1941
1942         PR c/8927
1943         * c-tree.h (undeclared_variable, build_external_ref): Add extra
1944         argument.
1945         * c-decl.c (undeclared_variable): Take location as argument.
1946         * c-typeck.c (build_external_ref): Likewise.
1947         * c-parser.c (c_parser_postfix_expression): Pass location of
1948         identifier to build_external_ref.
1949
1950 2005-03-01  David Edelsohn  <edelsohn@gnu.org>
1951
1952         * config/rs6000/rs6000.md (cceq splitter): Use operand mode, not
1953         CCEQ mode for branch_positive_comparison_operator test.
1954         * config/rs6000/predicates (branch_comparison_operator): Revert to
1955         define_predicate.
1956         (scc_comparison_operator): Same.
1957         (branch_positive_comparison_operator): Same.
1958
1959 2005-03-01  Hans-Peter Nilsson  <hp@axis.com>
1960
1961         * config/cris/cris.c (cris_eligible_for_epilogue_delay)
1962         (cris_delay_slots_for_epilogue): Remove.
1963         (save_last): Move into cris_target_asm_function_epilogue.
1964         (cris_target_asm_function_epilogue): Remove tests for file being
1965         NULL.
1966         * config/cris/cris-protos.h (cris_eligible_for_epilogue_delay)
1967         (cris_delay_slots_for_epilogue): Remove prototypes.
1968         * config/cris/cris.h (DELAY_SLOTS_FOR_EPILOGUE)
1969         (ELIGIBLE_FOR_EPILOGUE_DELAY): Do not define.
1970
1971 2005-03-01  David Edelsohn  <edelsohn@gnu.org>
1972
1973         * config/rs6000/predicates.md (branch_comparison_operator): Change
1974         to define_special_predicate.
1975         (scc_comparison_operator): Same.
1976         (branch_positive_comparison_operator): Same.
1977
1978 2005-03-01  Daniel Berlin <dberlin@dberlin.org>
1979
1980         * Makefile.in (tree-ssa-sink.o): New.
1981         (OBJS-common): Add tree-ssa-sink.o.
1982         * common.opt: Add -ftree-sink
1983         * opts.c (decode_options): flag_tree_sink is set at O1 or higher.
1984         * timevar.def (TV_TREE_SINK): new timevar.
1985         * tree-flow.h (is_hidden_global_store): Prototype.
1986         * tree-optimize.c (init_tree_optimization_passes): Add
1987         pass_sink_code.
1988         * tree-pass.h (pass_sink_code): New.
1989         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Move checking
1990         for non-obvious global store store to is_hidden_global_store, and
1991         call that new function.
1992         * tree-ssa-sink.c: New file.
1993         * doc/invoke.texi: Document -fdump-tree-sink and -ftree-sink.
1994         * doc/passes.texi: Document forward store motion.
1995         * testsuite/gcc.dg/tree-ssa/ssa-sink-1.c: New test
1996         * testsuite/gcc.dg/tree-ssa/ssa-sink-2.c: New test
1997         * testsuite/gcc.dg/tree-ssa/ssa-sink-3.c: New test
1998         * testsuite/gcc.dg/tree-ssa/ssa-sink-4.c: New test
1999
2000 2005-03-01  Per Bothner  <per@bothner.com>
2001
2002         * diagnostic.c (diagnostic_build_prefix): If USE_MAPPED_LOCATION
2003         and we have a non-zero column-number, add it to the message.
2004         Also factor out the diagnostic_kind_text.
2005
2006 2005-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
2007
2008         * cfgloop.c (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
2009         flow_loop_pre_header_scan, flow_loop_pre_header_find,
2010         flow_loop_scan): Removed.
2011         (flow_loop_dump): Do not dump removed fields.
2012         (flow_loop_free): Do not free removed fields.
2013         (flow_loops_find): Flags argument removed.  Do not call flow_loop_scan.
2014         (loop_exit_edge_p): New function.
2015         * cfgloop.h (struct loop): Removed fields pre_header, pre_header_edges,
2016         num_pre_header_edges, entry_edges, num_entries, exit_edges,
2017         num_exits, exits_doms.
2018         (LOOP_TREE, LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
2019         LOOP_EDGES, LOOP_ALL): Removed.
2020         (flow_loop_scan): Declaration removed.
2021         (loop_exit_edge_p, mark_loop_exit_edges): Declare.
2022         * cfgloopmanip.c (create_loop_notes): Do not pass flags to
2023         flow_loops_find.
2024         * ifcvt.c (mark_loop_exit_edges): Moved to cfgloopanal.c.
2025         (if_convert): Call flow_loops_find and flow_loops_free
2026         when calling mark_loop_exit_edges.
2027         * cfgloopanal.c (mark_loop_exit_edges): Moved from
2028         ifcvt.c.  Removed the flow_loops_find, flow_loops_free and
2029         free_dominance_info calls.
2030         * loop-init.c (flow_loops_find): Ditto.
2031         * passes.c (rest_of_handle_branch_prob): Ditto.
2032         * lambda-code.c (perfect_nestify): Do not call flow_loops_find.
2033         * loop-unroll.c (analyze_insns_in_loop): Do not use
2034         EDGE_LOOP_EXIT.
2035         * predict.c (predict_loops): Do not call flow_loop_scan.
2036         Use get_loop_exit_edges.
2037         (tree_estimate_probability): Do not pass flags to flow_loops_find.
2038         * tree-if-conv.c (bb_with_exit_edge_p): Take loop as argument.
2039         Do not use EDGE_LOOP_EXIT.
2040         (tree_if_convert_cond_expr, if_convertible_modify_expr_p): Pass loop
2041         to bb_with_exit_edge_p.
2042         (if_convertible_loop_p): Do not call flow_loop_scan.  Use
2043         loop->single_exit.  Do not use EDGE_LOOP_EXIT.  Pass loop
2044         to bb_with_exit_edge_p.
2045         (combine_blocks): Pass loop to bb_with_exit_edge_p.  Do not use
2046         EDGE_LOOP_EXIT.
2047         * tree-loop-linear.c (linear_transform_loops): Do not call
2048         flow_loop_scan.  Use loop->single_exit.
2049         * tree-vect-analyze.c (vect_analyze_operations): Use loop->single_exit.
2050         (vect_analyze_loop_form): Do not call flow_loop_scan.
2051         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Use
2052         loop->single_exit.
2053         (vect_do_peeling_for_loop_bound): Use loop_preheader_edge and
2054         loop->single_exit.
2055         * tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop,
2056         slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
2057         slpeel_tree_duplicate_loop_to_edge_cfg,
2058         slpeel_verify_cfg_after_peeling, slpeel_tree_peel_loop_to_edge):
2059         Use loop_preheader_edge and loop->single_exit.  Do not call
2060         flow_loop_scan.
2061
2062 2005-03-01  Nick Clifton  <nickc@redhat.com>
2063
2064         * config/arm/arm.c (thumb_find_work_register): Check all of the
2065         argument registers to see if they are free, and a couple of
2066         special cases where the last argument register but can be proved
2067         to be available during the function's prologue.
2068         (print_multi_reg, arm_compute_save_reg0_reg12_mask,
2069         output_return_instruction, emit_multi_reg_push, thumb_pushpop,
2070         thumb_unexpanded_epilogue): Use unsigned long as the type for the
2071         register bit-mask.
2072         (thumb_compute_save_reg_mask): Likewise.  Also use
2073         thumb_find_work_register() to ensure that there is agreement about
2074         which work register is going to be used in the prologue.
2075         (thumb_output_function_prologue): Use unsigned long as the type
2076         for the register bit-mask.  Also delay pushing the link register if
2077         other high registers are going to be pushed.
2078         (thumb_compute_save_reg_mask, emit_multi_reg_push,
2079         print_multi-reg, number_of_first_bit_set, thumb_pushpop): Remove
2080         redundant prototypes.
2081
2082 2005-02-28  John David Anglin  <dave.anglin#nrc-cnrc.gc.ca>
2083
2084         PR target/19819
2085         * pa.h (GO_IF_LEGITIMATE_ADDRESS): Allow allow hard registers during
2086         and after reload in REG+REG indexed addresses without REG_POINTER
2087         set in the base and not set in the index.
2088
2089 2005-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
2090
2091         * config/sh/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
2092         Don't undefine here.
2093         (HANDLE_PRAGMA_PACK_PUSH_POP): Delete.
2094         (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC): Likewise.
2095         (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
2096         (LIB_SPEC, LINK_EH_SPEC, STARTFILE_SPEC, ENDFILE_SPEC,
2097         LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED, TARGET_C99_FUNCTIONS):
2098         Delete.
2099         * config.gcc (sh*-*-linux*): Use config/linux.h.
2100
2101 2005-02-28  Dale Johannesen  <dalej@apple.com>
2102             Stan Shebs  <shebs@apple.com>
2103
2104         Rewrite of 64-bit Darwin structure-by-value pass/return.
2105         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): New fields
2106         intoffset, use_stack, named.
2107         * config/rs6000/rs6000.c (rs6000_darwin64_function_arg):  Remove.
2108         (rs6000_darwin64_record_arg_advance_flush):  New.
2109         (rs6000_darwin64_record_arg_advance_recurse): New.
2110         (rs6000_darwin64_record_arg_flush):  New.
2111         (rs6000_darwin64_record_arg_recurse):  New.
2112         (rs6000_darwin64_record_arg):  New.
2113         (rs6000_return_in_memory):  Remove AGGREGATE_TYPE_P check.
2114         (function_arg_boundary):  Handle 128-bit aligned structs.
2115         (function_arg_advance):  Rewrite darwin64 struct handling.
2116         (function_arg):  Call rs6000_darwin64_record_arg.
2117         (function_arg_partial_nregs):  Handle darwin64 structs.
2118         (rs6000_darwin64_function_value):  Remove.
2119         (rs6000_function_value):  Call rs6000_darwin64_record_arg.
2120
2121 2005-02-28  Roger Sayle  <roger@eyesopen.com>
2122
2123         PR tree-optimization/20216
2124         * tree-chrec.c (tree_fold_factorial): Delete.
2125         (tree_fold_binomial): Change argument list to take a return type
2126         and change the type of K to unsigned int.  Rewrite to avoid explicit
2127         evaluation of factorials, and (recursively) calling fold to perform
2128         compile-time arithmetic.  Return NULL on (internal) overflow.
2129         (chrec_evaluate): Change type of K to an unsigned int.  Avoid
2130         calling tree_fold_binomial unnecessarily.  Return chrec_dont_know
2131         if any intermediate calculation overflows.
2132         (chrec_apply): Update call to chrec_evaluate.
2133
2134 2005-02-28  James E Wilson  <wilson@specifixinc.com>
2135
2136         * config/mips/mips.h (NO_PROFILE_COUNTERS): Define.
2137
2138 2005-02-28  Joseph S. Myers  <joseph@codesourcery.com>
2139
2140         PR c/20245
2141         * c-parser.c (c_parser_compound_statement): Return error_mark_node
2142         instead of NULL_TREE on error.
2143
2144 2005-02-28  David Edelsohn  <edelsohn@gnu.org>
2145
2146         * config/rs6000/rs6000.c (EASY_VECTOR_15): Remove.
2147         (EASY_VECTOR_15_ADD_SELF): Remove.
2148         (num_insns_constant_wide): Not static.
2149         (validate_condition_mode): Not static.
2150         (toc_relative_expr_p): Not static.
2151         (legitimate_indirect_address_p): Not static.
2152         (macho_lo_sum_memory_operand): Not static.
2153         (invalid_e500_subreg): Not static.
2154         (easy_vector_same): Not static.
2155         (easy_vector_splat_const): Not static.
2156         (RS6000_SYMBOL_REF_TLS_P): Remove.
2157         (any_operand): Delete.
2158         (any_parallel_operand): Delete.
2159         (count_register_operand): Delete.
2160         (altivec_register_operand): Delete.
2161         (xer_operand): Delete.
2162         (s8bit_cint_operand): Delete.
2163         (short_cint_operand): Delete.
2164         (u_short_cint_operand): Delete.
2165         (non_short_cint_operand): Delete.
2166         (exact_log2_cint_operand): Delete.
2167         (gpc_reg_operand): Delete.
2168         (cc_reg_operand): Delete.
2169         (cc_reg_not_cr0_operand): Delete.
2170         (reg_or_short_operand): Delete.
2171         (reg_or_neg_short_operand): Delete.
2172         (reg_or_aligned_short_operand): Delete.
2173         (reg_or_u_short_operand): Delete.
2174         (reg_or_cint_operand): Delete.
2175         (reg_or_arith_cint_operand): Delete.
2176         (reg_or_add_cint64_operand): Delete.
2177         (reg_or_sub_cint64_operand): Delete.
2178         (reg_or_logical_cint_operand): Delete.
2179         (got_operand): Delete.
2180         (got_no_const_operand): Delete.
2181         (easy_fp_constant): Delete.
2182         (easy_vector_constant): Delete.
2183         (easy_vector_constant_add_self): Delete.
2184         (zero_constant): Delete.
2185         (zero_fp_constant): Delete.
2186         (volatile_mem_operand): Delete.
2187         (offsettable_mem_operand): Delete.
2188         (mem_or_easy_const_operand): Delete.
2189         (add_operand): Delete.
2190         (non_add_cint_operand): Delete.
2191         (logical_operand): Delete.
2192         (non_logical_cint_operand): Delete.
2193         (mask_operand): Delete.
2194         (mask_operand_wrap): Delete.
2195         (mask64_operand): Delete.
2196         (mask64_2_operand): Delete.
2197         (and64_operand): Delete.
2198         (and64_2_operand): Delete.
2199         (and_operand): Delete.
2200         (reg_or_mem_operand): Delete.
2201         (lwa_operand): Delete.
2202         (symbol_ref_operand): Delete.
2203         (call_operand): Delete.
2204         (current_file_function_operand): Delete.
2205         (input_operand): Delete.
2206         (rs6000_nonimmediate_operand): Delete.
2207         (rs6000_tls_symbol_ref): Delete.
2208         (save_world_operation): Delete.
2209         (restore_world_operation): Delete.
2210         (load_multiple_operation): Delete.
2211         (store_multiple_operation): Delete.
2212         (vrsave_operation): Delete.
2213         (mfcr_operation): Delete.
2214         (mtcrf_operation): Delete.
2215         (lmw_operation): Delete.
2216         (stmw_operation): Delete.
2217         (branch_comparison_operator): Delete.
2218         (branch_positive_comparison_operator): Delete.
2219         (scc_comparison_operator): Delete.
2220         (trap_comparison_operator): Delete.
2221         (boolean_operator): Delete.
2222         (boolean_or_operator): Delete.
2223         (min_max_operator): Delete.
2224         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Move to here.
2225         (EASY_VECTOR_15): Moved to here.
2226         (EASY_VECTOR_15_ADD_SELF): Move to here.
2227         (PREDICATE_CODES): Delete.
2228         * config/rs6000/rs6000-protos.h: Delete predicate functions.
2229         Declare functions no longer static.
2230         * config/rs6000/predicates.md: New.
2231         * config/rs6000/rs6000.md: Include predicates.md
2232
2233 2005-02-28  Kazu Hirata  <kazu@cs.umass.edu>
2234
2235         * calls.c (emit_call_1): Don't use  REG_ALWAYS_RETURN.
2236         (emit_library_call_value_1): Don't use LCT_ALWAYS_RETURN and
2237         REG_ALWAYS_RETURN.
2238         * cfgrtl.c (need_fake_edge_p): Likewise.
2239         * combine.c (distribute_notes): Likewise.
2240         * emit-rtl.c (try_split): Likewise.
2241         * recog.c (peephole2_opimize): Likewise.
2242         * reg-notes.def (ALWAYS_RETURN): Remove.
2243         * rtl.h (LCT_ALWAYS_RETURN): Remove.
2244         * tree-cfg.c (need_fake_edge_p): Don't use ECF_ALWAYS_RETURN.
2245         * tree.h (ECF_ALWAYS_RETURN): Remove.
2246
2247 2005-02-28  Roger Sayle  <roger@eyesopen.com>
2248
2249         PR middle-end/19874
2250         * tree-ssa.c (tree_ssa_useless_type_conversion_1): A conversion
2251         between different machine modes is never a "useless" conversion.
2252
2253 2005-02-28  Geert Bosch  <bosch@gnat.com>
2254
2255         PR ada/15977
2256         * doc/contrib.texi: List contributors for Ada front end
2257
2258 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
2259
2260         * simplify-rtx.c (simplify_unary_operation_1,
2261         simplify_const_unary_operation): New, extracted from...
2262         (simplify_unary_operation): ... this one.
2263         (simplify_binary_operation_1,
2264         simplify_const_binary_operation): New, extracted from...
2265         (simplify_binary_operation): ... this one.
2266         * rtl.h (simplify_const_unary_operation,
2267         simplify_const_binary_operation): Add prototypes.
2268
2269 2005-02-28  Julian Brown  <julian@codesourcery.com>
2270
2271         * config/elfos.h: Revert my patch from 2005-02-25 since it broke
2272         building libjava and caused PR regression/20228.
2273
2274 2005-02-28  Paolo Bonzini  <bonzini@gnu.org>
2275
2276         PR bootstrap/17383
2277         * Makefile.in (host_subdir): New.
2278         (build_objdir): New.  Replace ../$(build_subdir) with it throughout.
2279         * configure: Regenerate.
2280
2281 2005-02-27  Zack Weinberg  <zack@codesourcery.com>
2282
2283         * config/alpha/t-osf4, config/arm/t-netbsd, config/ia64/t-hpux
2284         * config/pa/t-hpux-shlib (SHLIB_INSTALL): Create the
2285         installation directory first.
2286
2287 2005-02-28  Hans-Peter Nilsson  <hp@axis.com>
2288
2289         PR target/19065.
2290         * config/cris/cris.h (EXTRA_CONSTRAINT_Q): Accept only (mem (reg)),
2291         not including (reg). Do not check for reg being CRIS_PC_REGNUM.
2292         (EXTRA_MEMORY_CONSTRAINT): Define as 'Q'.
2293         * config/cris/cris.md: Tweak comments referring to Q.
2294         ("cmpsi", "cmphi", "cmpqi", "*movsi_internal", "movhi")
2295         ("movstricthi", "movqi", "movstrictqi", "movsf", "addsi3")
2296         ("addhi3", "addqi3", "subsi3", "subhi3", "subqi3")
2297         ("*expanded_andsi", "*expanded_andhi", "*andhi_lowpart", "andqi3")
2298         ("*andqi_lowpart", "iorsi3", "iorhi3", "iorqi3", "uminsi3"):
2299         Insert spaces in constraints to align alternatives vertically for
2300         readability.
2301         ("cmphi"): Ditto.  Add separate alternative for operand 0 "r",
2302         operand 1: "M".
2303
2304 2005-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2305
2306         PR rtl-optimization/17728
2307         * pa.md (mulsi3, divsi3, udivsi3, modsi3): Change predicate for
2308         operand 0 from general_operand to move_dest_operand.
2309
2310 2005-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2311
2312         * pa/elf.h, pa/som.h (ASM_OUTPUT_EXTERNAL): Use assemble_name_raw
2313         instead of trying to save and restore TREE_SYMBOL_REFERENCED.
2314         * pa/pa64-hpux.h (ASM_OUTPUT_TYPE_DIRECTIVE): Define.
2315         (ASM_OUTPUT_EXTERNAL): Don't save and restore TREE_SYMBOL_REFERENCED.
2316
2317 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
2318
2319         * configure.ac: Rename cc_for_cross_gnattools to host_cc_for_libada.
2320         * configure: Regenerate.
2321         * libada-mk.in: Remove CC; rename
2322         cc_for_cross_gnattools / cc_set_by_configure to host_cc_for_libada.
2323
2324 2005-02-26  Andrew Pinski  <pinskia@physics.uc.edu>
2325
2326         PR tree-opt/20188
2327         * tree-ssa-alias.c (count_uses_and_derefs): If we have TREE_LIST
2328         for the lhs, also walk over the tree.  Likewise for rhs.
2329
2330 2005-02-26  Zdenek Dvorak  <dvorakz@suse.cz>
2331
2332         * tree-ssa-dom.c (simple_iv_increment_p): New function.
2333         (simplify_rhs_and_lookup_avail_expr, eliminate_redundant_computations):
2334         Do not propagate value of iv before increment over the increment.
2335
2336 2005-02-25  Joseph S. Myers  <joseph@codesourcery.com>
2337
2338         * c-parser.c: New file.
2339         * c-parse.in: Remove.
2340         * Makefile.in (c-parse.o-warn, c-parse.o, c-parse.c, c-parse.y):
2341         Remove.
2342         (c-parser.o): Add dependencies.
2343         (C_AND_OBJC_OBJC, C_OBJS, gcc.srcextra, GTFILES, distclean,
2344         maintainer-clean, TAGS): Update.
2345         * c-config-lang.in (gtfiles): Update.
2346         * gengtype-lex.l: Don't handle "@@".
2347         * stub-objc.c (objc_get_class_ivars, objc_build_throw_stmt,
2348         objc_build_synchronized, objc_begin_try_stmt,
2349         objc_begin_catch_clause, objc_finish_catch_clause,
2350         objc_build_finally_clause, objc_finish_try_stmt): New.
2351         * c-tree.h (struct c_declspecs): Add declspecs_seen_p and
2352         type_seen_p.
2353         (c_parse_init): Update comment.
2354         * c-decl.c (c_init_decl_processing): Update comment.
2355         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
2356         declspecs_add_scspec, declspecs_add_attrs): Initialize and update
2357         new c_declspecs members.
2358
2359 2005-02-25  Julian Brown  <julian@codesourcery.com>
2360
2361         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
2362         from being used for symbols with vague linkage when
2363         HAVE_GAS_COMDAT_GROUP is true.
2364
2365 2005-02-25  Mark Mitchell  <mark@codesourcery.com>
2366
2367         * doc/include/gcc-common.texi (version-GCC): Update to 4.1.
2368
2369 2005-02-25  Steve Ellcey  <sje@cup.hp.com>
2370
2371         PR target/19930
2372         * doc/tm.texi (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Document.
2373         (LIBGCC2_HAS_DF_MODE): New.
2374         (LIBGCC2_HAS_XF_MODE): New.
2375         (LIBGCC2_HAS_TF_MODE): New.
2376         * libgcc2.h (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
2377         (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
2378         * libgcc2.c (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
2379         (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
2380         (LIBGCC2_HAS_DF_MODE): New name for HAVE_DFMODE.
2381         * config/ia64/t-ia64 (LIB1ASMFUNCS): Remove __compat
2382         and add _fixtfdi, _fixunstfdi, _floatditf
2383         * lib1funcs.asm: Remove L__compat. Add L_fixtfdi,
2384         L_fixunstfdi, L_floatditf.
2385         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE): Define.
2386         (LIBGCC2_HAS_TF_MODE): Define.
2387
2388 2005-02-25  Diego Novillo  <dnovillo@redhat.com>
2389
2390         PR tree-optimization/20204
2391         * tree-into-ssa.c (insert_phi_nodes_for): Do not use
2392         REWRITE_THIS_STMT markers on PHI nodes.
2393         (rewrite_initialize_block): Likewise.
2394
2395 2005-02-25  Mark Mitchell  <mark@codesourcery.com>
2396
2397         * version.c (version_string): Update to 4.1.
2398
2399 2005-02-25  Paolo Carlini  <pcarlini@suse.de>
2400
2401         * doc/extend.texi (5.24 Declaring Attributes of Functions)<noreturn>:
2402         Clarify that the alternative way doesn't work in GNU C++.
2403
2404 2005-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
2405
2406         PR tree-optimization/19937
2407         * tree-ssa-loop-ivopts.c (rewrite_use_compare): Cast the final value
2408         to the type of the induction variable.
2409
2410 2005-02-25  Kaz Kojima  <kkojima@gcc.gnu.org>
2411
2412         PR rtl-optimization/20117
2413         * bb-reorder.c (duplicate_computed_gotos): Don't duplicate
2414         the block including noncopyable insn.
2415
2416 2005-02-24  Kazu Hirata  <kazu@cs.umass.edu>
2417
2418         * cse.c (delete_trivially_dead_insns): Speed up by minimizing
2419         calls to find_reg_note.
2420
2421 2005-02-24  Richard Henderson  <rth@redhat.com>
2422
2423         PR tree-opt/20127
2424         * tree-sra.c (instantiate_element): Copy TREE_THIS_VOLATILE from
2425         the type.
2426
2427 2005-02-24  Fariborz Jahanian <fjahanian@apple.com>
2428
2429         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Check for
2430         vector types if to use base reg for misaligned non-word ld/std.
2431
2432 2005-02-24  Hans-Peter Nilsson  <hp@axis.com>
2433
2434         PR target/14619
2435         * config/cris/cris.c (cris_target_asm_function_prologue): Create
2436         dwarf2 label manually and put it after, not before the prologue.
2437
2438 2005-02-24  David Edelsohn  <edelsohn@gnu.org>
2439
2440         PR target/19019
2441         * reload.c (operands_match_p): Only increment register number for
2442         SCALAR_INT_MODE_P modes in multiple hard registers.
2443
2444         * config/rs6000/rs6000.md (trunctfdf2): Remove register constraints.
2445         Fix formatting.
2446
2447 2005-02-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2448
2449         * ChangeLog.5: Fix log message typo(s).
2450         * ChangeLog.7: Likewise.
2451         * ChangeLog.tree-ssa: Likewise.
2452         * cfgexpand.c: Fix comment typo(s).
2453         * conflict.c: Likewise.
2454         * defaults.h: Likewise.
2455         * dwarf2out.c: Likewise.
2456         * gcse.c: Likewise.
2457         * ggc-page.c: Likewise.
2458         * tree-eh.c: Likewise.
2459         * tree-ssa-dom.c: Likewise.
2460
2461 2005-02-24  Jakub Jelinek  <jakub@redhat.com>
2462
2463         PR target/19019
2464         * mklibgcc.in: Pass -DSHARED when compiling all *_s${objext} objects.
2465         * config/rs6000/darwin-ldouble.c: Only use the .symver directives
2466         if SHARED is defined.
2467
2468         PR target/20196
2469         * config/rs6000/rs6000.md (LTU, GTU sCC splitters): Add earlyclobber,
2470         allow splitting only if operands 0 and 3 don't overlap.
2471
2472 2005-02-24  Richard Henderson  <rth@redhat.com>
2473
2474         PR middle-end/19953
2475         * builtins.c (fold_builtin_complex_mul, fold_builtin_complex_div): New.
2476         (fold_builtin_1): Call them.
2477         * fold-const.c (fold_complex_mult_parts): Split out from ...
2478         (fold_complex_mult): ... here.  Fix typo in both imaginary case.
2479         (fold_complex_div_parts, fold_complex_div): New.
2480         (fold): Use them.
2481         * tree.h (fold_complex_mult_parts, fold_complex_div_parts): Declare.
2482
2483 2005-02-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2484
2485         * tree-ssa-ccp.c (visit_assignment): Verify that result of
2486         VIEW_CONVERT_EXPR is_gimple_min_invariant.
2487
2488         * print-tree.c (print_node_brief): Print LABEL_DECL_UID.
2489         (print_node): Likewise.
2490         Print TYPE_SIZES_GIMPLIFIED.
2491
2492 2005-02-24  Hans-Peter Nilsson  <hp@axis.com>
2493
2494         * config/cris/cris.md ("umulhisi3", "umulqihi3", "mulsi3")
2495         ("mulqihi3", "mulhisi3", "mulsidi3", "umulsidi3"): Mark input
2496         operands as commutative in constraints.
2497
2498 2005-02-24  Diego Novillo  <dnovillo@redhat.com>
2499
2500         * tree-into-ssa.c: Re-organize internal functions.
2501
2502 2005-02-24  Richard Henderson  <rth@redhat.com>
2503
2504         PR middle-end/18902
2505         * c-opts.c (c_common_post_options): Set flag_complex_method to 2
2506         for c99.
2507         * common.opt (fcx-limited-range): New.
2508         * opts.c (set_fast_math_flags): Set flag_cx_limited_range.
2509         * toplev.c (flag_complex_method): Initialize to 1.
2510         (process_options): Set flag_complex_method to 0 if
2511         flag_cx_limited_range.
2512         * doc/invoke.texi (-fcx-limited-range): New.
2513
2514 2005-02-24  Kazu Hirata  <kazu@cs.umass.edu>
2515
2516         * cse.c (delete_trivially_dead_insns): Speed up by using
2517         NEXT_INSN and PREV_INSN directly instead of next_real_insn and
2518         prev_real_insn.
2519
2520 2005-02-24  Andrea Tarani  <andrea.tarani@gilbarco.com>
2521
2522         * config/m68k/m68k.c (m68k_save_reg): Also save A5 for non-leaf
2523         functions when -mid-shared-library is being used.
2524
2525 2005-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
2526
2527         * doc/tm.texi (LINK_LIBGCC_SPECIAL): Remove.
2528         (LINK_LIBGCC_SPECIAL_1): Don't mention it.
2529         * gcc.c: Don't check for LINK_LIBGCC_SPECIAL.
2530         * system.h: Poison LINK_LIBGCC_SPECIAL.
2531
2532 2005-02-23  James E Wilson  <wilson@specifixinc.com>
2533
2534         * gengtype.c (note_insn_name): Make 1 element larger.
2535
2536 2005-02-23  Roger Sayle  <roger@eyesopen.com>
2537
2538         PR target/20018
2539         PR rtl-optimization/20097
2540         * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
2541         BImode SUBREGs of SImode registers which confuse the ia64 backend.
2542
2543 2005-02-23  David Edelsohn  <edelsohn@gnu.org>
2544
2545         * t-aix43 (SHLIB_INSTALL): Create directory for shared library.
2546         * t-aix52 (SHLIB_INSTALL): Same.
2547
2548 2005-02-23  Kazu Hirata  <kazu@cs.umass.edu>
2549
2550         * genpreds.c: Update copyright.
2551
2552 2005-02-23  Michael Beach  <michaelb@ieee.org>
2553
2554         PR target/20159
2555         * config/sparc/t-elf (startup files): Assemble with CPP.
2556
2557 2005-02-23  Paolo Bonzini  <bonzini@gnu.org>
2558
2559         * genpreds.c (mark_mode_tests): Handle non-VOIDmode match_operands.
2560         (write_predicate_expr): Likewise.
2561
2562 2005-02-22  Diego Novillo  <dnovillo@redhat.com>
2563
2564         PR tree-optimization/20100
2565         PR tree-optimization/20115
2566         * tree-optimize.c (init_tree_optimization_passes): Remove
2567         pass_maybe_create_global_var.
2568         * tree-pass.h (pass_maybe_create_global_var): Remove.
2569         * tree-ssa-alias.c (aliases_computed_p): Declare.
2570         (struct alias_info): Add field NUM_PURE_CONST_CALLS_FOUND.
2571         (count_calls_and_maybe_create_global_var): Remove.
2572         (pass_maybe_create_global_var): Remove.
2573         (init_alias_info): Do not declare aliases_computed_p.
2574         (maybe_create_global_var): If the function contains no
2575         call-clobbered variables and a mix of pure/const and regular
2576         function calls, create .GLOBAL_VAR.
2577         Mark all call-clobbered variables for renaming.
2578         (merge_pointed_to_info): Update comment.
2579         (add_pointed_to_var): Likewise.
2580         (is_escape_site): Likewise.
2581         Accept struct alias_info * instead of size_t *.
2582         Update all users.
2583         Update AI->NUM_CALLS_FOUND and AI->NUM_PURE_CONST_CALLS_FOUND
2584         as necessary.
2585         * tree-ssa-operands.c (get_call_expr_operands): If
2586         ALIASES_COMPUTED_P is false, do not add call-clobbering
2587         operands.
2588         * tree-ssa.c (init_tree_ssa): Set ALIASES_COMPUTED_P to false.
2589         (delete_tree_ssa): Likewise.
2590
2591 2005-02-22  James E Wilson  <wilson@specifixinc.com>
2592
2593         * toplev.c (backend_init): Don't call init_adjust_machine_modes here.
2594         (do_compile): Do call it here.
2595
2596 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
2597
2598         PR rtl-optimization/20017.
2599         * passes.c (rest_of_handle_combine, rest_of_handle_cse,
2600         rest_of_handle_cse2, rest_of_handle_gcse): Call
2601         delete_dead_jumptables immediately before calling cleanup_cfg.
2602
2603 2005-02-22  Devang Patel  <dpatel@apple.com>
2604
2605         PR 19952
2606         * tree-if-conv.c (process_phi_nodes): Use bsi_after_labels and skip
2607         all labels
2608
2609 2005-02-22  David Edelsohn  <edelsohn@gnu.org>
2610
2611         * config/rs6000/aix.h (WINT_TYPE): Define.
2612
2613 2005-02-22  Stan Shebs  <shebs@apple.com>
2614
2615         * config/rs6000/rs6000.c (rs6000_override_options): Default to
2616         natural alignment for 64-bit Darwin.
2617         (rs6000_parse_alignment_option): Warn about uses of -malign-power
2618         on 64-bit Darwin.
2619         * doc/invoke.texi: Document this.
2620
2621 2005-02-22  DJ Delorie  <dj@redhat.com>
2622
2623         * c-common.c (c_common_type_for_mode): Pass the mode's precision
2624         to make_[un]signed_type, not the mode itself.
2625
2626 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
2627
2628         * cfg.c (cached_make_edge): Call make_edge if edge cache is
2629         not available.  Use tail calls wherever possible.
2630         (make_edge): Call unchecked_make_edge to create an edge.
2631
2632         * tree-outof-ssa.c (SSANORM_USE_COALESCE_LIST): Remove.
2633         (coalesce_ssa_name): Don't check for
2634         SSANORM_USE_COALESCE_LIST.
2635         (rewrite_out_of_ssa): Don't use SSANORM_USE_COALESCE_LIST.
2636
2637 2005-02-22  Diego Novillo  <dnovillo@redhat.com>
2638
2639         * tree-into-ssa.c (rewrite_blocks): Move debug dumps from ...
2640         (rewrite_into_ssa): ... here.
2641
2642 2005-02-21  Alexandre Oliva  <aoliva@redhat.com>
2643
2644         PR tree-optimization/19786
2645         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add one
2646         tag to another's may-alias bitmap when adding to the other's list.
2647
2648 2005-02-21  DJ Delorie  <dj@redhat.com>
2649
2650         * tree-ssa-loop-ivopts.c (computation_cost): Start register
2651         numbering at LAST_VIRTUAL_REGISTER+1 to avoid possibly using hard
2652         registers in unsupported ways.
2653         * expmed.c (init_expmed): Likewise.
2654
2655 2005-02-21  Stan Cox  <scox@redhat.com>
2656
2657         * config/iq2000/iq2000.h (DWARF_FRAME_RETURN_COLUMN): Change to 31.
2658
2659 2005-02-21  Kazu Hirata  <kazu@cs.umass.edu>
2660
2661         * tree-cfg.c (fold_cond_expr_cond): New.
2662         (make_edges): Call fold_cond_expr_cond.
2663         (find_taken_edge): Accept nothing but INTEGER_CST.
2664         (find_taken_edge_cond_expr): Reject INTEGER_CST other than 0
2665         and 1.
2666         (find_taken_edge_switch_expr): Remove a check for INTEGER_CST.
2667
2668         * flow.c (delete_dead_jumptables): Speed up by scanning insns
2669         that do not belong to any basic block.
2670
2671 2005-02-21  Jeff Law  <law@redhat.com>
2672
2673         * cfganal.c (find_unreachable_blocks): Manually CSE load of
2674         e->dest.
2675
2676 2005-02-21  Kazu Hirata  <kazu@cs.umass.edu>
2677
2678         * tree-outof-ssa.c (SSANORM_REMOVE_ALL_PHIS): Remove.
2679         (SSANORM_COALESCE_PARTITIONS, SSANORM_USE_COALESCE_LIST):
2680         Adjust their definitions.
2681         (remove_ssa_form): Don't check for SSANORM_REMOVE_ALL_PHIS.
2682         (rewrite_out_of_ssa): Don't use SSANORM_REMOVE_ALL_PHIS.
2683
2684         * c-objc-common.h, c-pretty-print.c, cgraphunit.c, except.c,
2685         genautomata.c, langhooks.c, langhooks.h, system.h,
2686         config/arm/lib1funcs.asm: Update copyright.
2687
2688 2005-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
2689
2690         * dbxout.c (dbxout_function_end): Emit Lscope label always.
2691
2692 2005-02-21  Richard Guenther  <rguenth@gcc.gnu.org>
2693
2694         PR bootstrap/13770
2695         * doc/install.texi: Document --with-gc.
2696
2697 2005-02-21  Paolo Bonzini  <bonzini@gnu.org>
2698
2699         * simplify-rtx.c (simplify_unary_operation): Add a missing
2700         "break" statement.
2701
2702 2005-02-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
2703
2704         PR tree-optimization/18663
2705         * tree-ssa-dom.c (extract_range_from_cond): Return 0
2706         if the type has variable bounds.
2707
2708 2005-02-20  Kazu Hirata  <kazu@cs.umass.edu>
2709
2710         * gcse.c: Remove an obsolete comment.
2711
2712         * cse.c (init_cse_reg_info): Use xmalloc instead of xrealloc.
2713
2714 2005-02-20  Hans-Peter Nilsson  <hp@axis.com>
2715
2716         * doc/extend.texi (Function Attributes) <Attribute const>: The
2717         attribute "pure" is below this text, not above.
2718
2719 2005-02-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2720
2721         * pa.c (pa_assemble_integer, get_plabel): Small cleanups.
2722         (pa_asm_output_mi_thunk): Use asm_output_insn instead of fprintf.
2723         * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Small cleanup.
2724
2725 2005-02-20  Zack Weinberg  <zack@codesourcery.com>
2726
2727         PR 18785
2728         * langhooks.h (struct lang_hooks): Add to_target_charset.
2729         * langhooks.c (lhd_to_target_charset): New function.
2730         * langhooks-def.h: Declare lhd_to_target_charset.
2731         (LANG_HOOKS_TO_TARGET_CHARSET): New macro.
2732         (LANG_HOOKS_INITIALIZER): Update.
2733         * c-common.c (c_common_to_target_charset): New function.
2734         * c-common.h: Declare it.
2735         * c-objc-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
2736         c_common_to_target_charset.
2737
2738         * defaults.c (TARGET_BELL, TARGET_BS, TARGET_CR, TARGET_DIGIT0)
2739         (TARGET_ESC, TARGET_FF, TARGET_NEWLINE, TARGET_TAB, TARGET_VT):
2740         Delete definitions.
2741         * system.h: Poison them.
2742         * doc/tm.texi: Don't discuss them.
2743         * builtins.c (fold_builtin_isdigit): Use lang_hooks.to_target_charset.
2744         * c-pretty-print.c (pp_c_integer_constant): Don't use pp_c_char.
2745         (pp_c_char): Do not attempt to generate letter escapes for
2746         newline, tab, etc.
2747         * config/arm/arm.c (output_ascii_pseudo_op): Likewise.
2748         * config/mips/mips.c (mips_output_ascii): Likewise.
2749
2750 2005-02-20  Dorit Naishlos  <dorit@il.ibm.com>
2751
2752         PR tree-optimization/19951
2753         * tree-vect-analyze.c (vect_analyze_loop_form): Check if loop exit edge
2754         is abnormal.
2755
2756 2005-02-19  Steven Bosscher  <stevenb@suse.de>
2757
2758         PR middle-end/19698
2759         * function.h (struct function): New field `max_loop_depth'.
2760         * cfgloop.c (establish_preds): Update maximum loop depth seen so far.
2761         (flow_loops_find): Reset the max loop depth count before finding loops.
2762         * flow.c (MAX_LIVENESS_ROUNDS): New constant.
2763         (update_life_info_in_dirty_blocks): Remove 2002-05-28 workaround.
2764         (calculate_global_regs_live): Make sure the loop will terminate
2765         when the initial sets are not empty.
2766
2767 2005-02-19  Zack Weinberg  <zack@codesourcery.com>
2768
2769         * mklibgcc.in: If libgcc_eh.a would be empty, put a dummy
2770         object inside.
2771         * config/ia64/hpux.h: Don't define LIBGCC_SPEC.
2772
2773 2005-02-19  Richard Sandiford  <rsandifo@redhat.com>
2774
2775         PR other/19525
2776         * doc/invoke.texi: Remove documentation of %M spec.
2777         * gcc.c: Likewise.
2778         (init_spec): Remove %M suffix from -lgcc_s.
2779         (do_spec_1): Remove 'M' case.
2780         * mklibgcc.in: Remove SHLIB_MULTILIB handling.  Expect SHLIB_LINK
2781         to put shared libraries in the multilib directory.  Remove the
2782         shlib_so_soname substitution variable.  Don't add a multilib encoding
2783         to shlib_base_name.  Set shlib_slibdir_qual to the full pathname
2784         reported by -print-multi-os-directory.  Pass @multilib_dir@ to
2785         SHLIB_INSTALL as well as SHLIB_LINK.
2786         * config/t-slibgcc-elf-ver (SHLIB_SONAME): Use @shlib_base_name@.
2787         (SHLIB_NAME): Delete.
2788         (SHLIB_DIR): New macro.
2789         (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_SOLINK) in $(SHLIB_DIR).
2790         (SHLIB_INSTALL): Adjust accordingly.
2791         * config/t-slibgcc-darwin: As for t-slibgcc-elf-ver.
2792         * config/t-slibgcc-sld: Likewise.
2793         * config/t-libunwind-elf (SHLIBUNWIND_NAME): Delete.
2794         (SHLIBUNWIND_SONAME): Use @shlib_base_name@.
2795         (SHLIBUNWIND_LINK): Put $(SHLIBUNWIND_SONAME) and $(SHLIB_SOLINK)
2796         in $(SHLIB_DIR).
2797         (SHLIBUNWIND_INSTALL): Adjust accordingly.
2798         * config/i386/t-nwld (SHLIB_SONAME): Delete.
2799         (SHLIB_LINK, SHLIB_INSTALL): Use SHLIB_NAME instead of SHLIB_SONAME.
2800         Use @shlib_base_name@ instead of @shlib_so_name@.
2801         * config/ia64/t-hpux (SHLIB_LINK): Put @shlib_base_name@.so.0
2802         and @shlib_base_name@.so in @multilib_dir@.
2803         (SHLIB_INSTALL): Adjust accordingly.  Add @shlib_slibdir_qual@
2804         to the install path.
2805         * config/mips/t-slibgcc-irix: As for t-slibgcc-elf-ver.
2806         (SHLIB_LINK): Remove previous workaround.
2807         * config/pa/t-hpux-shlib (SHLIB_DIR, SHLIB_SLIBDIR_QUAL): New macros.
2808         (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_NAME) in $(SHLIB_DIR).
2809         (SHLIB_INSTALL): Adjust accordingly.  Add $(SHLIB_SLIBDIR_QUAL) to
2810         the install path.
2811         * config/rs6000/t-aix43 (SHLIB_LINK): Put @shlib_base_name@.a in
2812         @multilib_dir@.  Use @multilib_dir@ to check for threading libraries.
2813         (SHLIB_INSTALL): Adjust accordingly.
2814         (SHLIB_LIBS): Use @multilib_dir@ to check for threading libraries.
2815         * config/rs6000/t-aix52: As for config/rs6000/t-aix43.
2816         * config/sh/t-linux (SHLIB_LINK, SHLIB_INSTALL): As for
2817         config/t-slibgcc-elf-ver.
2818
2819 2005-02-19  Zdenek Dvorak  <dvorakz@suse.cz>
2820             Jakub Jelinek  <jakub@redhat.com>
2821
2822         PR tree-optimization/19828
2823         * tree-ssa-loop-im.c: Add a TODO comment.
2824         (movement_possibility): Return MOVE_PRESERVE_EXECUTION for calls
2825         without side-effects.
2826
2827 2005-02-18  James A. Morrison  <phython@gcc.gnu.org>
2828
2829         * tree-ssa-ccp.c (widen_bitfield): Pass type to build_int_cst and don't
2830         call fold_convert.
2831
2832 2005-02-18  James E. Wilson  <wilson@specifixinc.com>
2833
2834         * doc/invoke.texi (IA-64 Options): Delete -mb-step.
2835         * config/ia64/ia64.c (last_group, group_idx): Delete variables.
2836         (errata_find_address_regs, errata_emit_nops, fixup_errata): Delete
2837         functions.
2838         (ia64_reorg): Delete fixup_errata call.
2839         * config/ia64/ia64.h (MASK_B_STEP, TARGET_B_STEP): Delete.
2840         (TARGET_SWITCHES): Delete -mb-step entry.
2841
2842 2005-02-19  Jakub Jelinek  <jakub@redhat.com>
2843
2844         PR c/20043
2845         * c-typeck.c (composite_type): Handle quals in transparent unions.
2846         (type_lists_compatible_p): Likewise.
2847
2848 2005-02-18  Stan Shebs  <shebs@apple.com>
2849
2850         * config/darwin.c (machopic_select_rtx_section): Don't put relocatable
2851         expressions in the .literal8 section.
2852
2853 2005-02-18  Geoffrey Keating  <geoffk@apple.com>
2854
2855         * config/rs6000/darwin-tramp.asm: Remove stray 'APPLE LOCAL' marker.
2856
2857 2005-02-18  Roger Sayle  <roger@eyesopen.com>
2858
2859         * fold-const.c (constant_boolean_node): Always create values of the
2860         specified type, don't bother calling truthvalue_conversion.
2861
2862 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
2863
2864         * except.c (output_function_exception_table): Call
2865         assemble_external_libcall (eh_personality_libfunc).
2866
2867 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
2868
2869         PR target/19886
2870         * config/ia64/ia64.h (struct machine_function): Add state_num.
2871         * config/ia64/ia64.c (process_epilogue,
2872         process_for_unwind_directive): Use new unwind state numbers each
2873         time rather than state 1.
2874
2875 2005-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
2876
2877         PR target/20054
2878         * config/s390/s390.md ("*llgt_sidi", "*llgt_sidi_split"): Move to
2879         before the "*llgt_didi" pattern.
2880
2881 2005-02-18  Jason Merrill  <jason@redhat.com>
2882
2883         * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Revert again.
2884
2885 2005-02-18  Richard Earnshaw  <rearnsha@arm.com>
2886
2887         * arm/lib1funcs.asm (FUNC_ALIAS): New macro.
2888         (div0): Use it in place of ARM_FUNC_ALIAS.
2889         (lshrdi3, ashrdi3, ashlrdi3): Likewise.
2890
2891 2005-02-18  Andrew Pinski  <pinskia@physics.uc.edu>
2892
2893         PR middle-end/20030
2894         * fold-const.c (fold_indirect_ref_1): Use the correct index for zero
2895         access, the lower bound of the array type if it exists.
2896
2897 2005-02-18  Alexandre Oliva  <aoliva@redhat.com>
2898
2899         PR c++/20008
2900         * stmt.c (expand_case): Don't assume cleanup_tree_cfg will remove
2901         cases that are out-of-range for the index type.
2902
2903 2005-02-18  James A. Morrison  <phython@gcc.gnu.org>
2904
2905         * stmt.c (emit_case_bit_tests): Call fold_convert instead of convert.
2906         (estimate_case_costs): Don't call convert.
2907         * expmed.c (expand_shift): Likewise.
2908         (make_tree): Call fold_convert instead of convert.
2909
2910 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
2911
2912         PR c++/19813
2913         * emit-rtl.c (set_mem_attributes_minus_bitpos): Add assertion
2914         that ref to be marked MEM_READONLY_P doesn't have base that needs
2915         constructing.
2916
2917 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
2918
2919         * genautomata.c (output_get_cpu_unit_code_func,
2920         output_cpu_unit_reservation_p): Don't generate old-style function
2921         definitions.
2922
2923 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
2924
2925         PR c++/20023
2926         PR tree-optimization/20009
2927         * convert.c (convert_to_integer): Revert 2005-02-16 change.
2928
2929         PR tree-optimization/18947
2930         * cgraphunit.c (cgraph_finalize_function): When redefining an extern
2931         inline, remove all nodes that are inlined into the extern inline
2932         being redefined.
2933
2934 2005-02-17  Kazu Hirata  <kazu@cs.umass.edu>
2935
2936         * bt-load.c, cfgloop.c, convert.c, dominance.c, global.c,
2937         loop-invariant.c, stmt.c, tree-ssa-forwprop.c,
2938         tree-ssa-live.c, tree-ssanames.c, tree-vn.c,
2939         config/host-linux.c, config/arm/fpa.md, config/avr/avr.h:
2940         Update copyright.
2941
2942 2005-02-17  Roger Sayle  <roger@eyesopen.com>
2943
2944         PR tree-optimization/19917
2945         * tree-eh.c (tree_could_trap_p): Consider calls to weak functions
2946         to be potentially trapping.
2947
2948 2005-02-17  Kazu Hirata  <kazu@cs.umass.edu>
2949
2950         * libgcc2.c, tree-vect-analyze.c: Fix comment typos.
2951
2952 2005-02-17  Andreas Krebbel  <krebbel1@de.ibm.com>
2953
2954         * builtins.c (expand_builtin_return_addr): Remove tem parameter.
2955         tem becomes a local variable which is set to the value of the
2956         back end defined INITIAL_FRAME_ADDRESS macro.
2957         (expand_builtin_frame_address): Omit the base parameter to
2958         expand_builtin_return_addr.
2959         (expand_builtin_profile_func): Likewise.
2960         * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Define new macro.
2961         (DYNAMIC_CHAIN_ADDRESS): Remove the case for the initial frame.
2962         * doc/tm.texi: Documentation for INITIAL_FRAME_ADDRESS_RTX added.
2963
2964 2005-02-17  Jakub Jelinek  <jakub@redhat.com>
2965
2966         * config/s390/s390.c (s390_alloc_pool, s390_free_pool,
2967         s390_chunkify_start): Use BITMAP_ALLOC and BITMAP_FREE.
2968         * config/frv/frv.c (frv_function_epilogue): Likewise.
2969
2970 2005-02-17  Daniel Berlin  <dberlin@dberlin.org>
2971
2972         * lambda-code (perfect_nestify): Remove mark/unmark
2973         for rewriting hack.
2974         * tree-loop-linear.c (linear_transform_loops): Add
2975         rewrite_into_ssa call so that ssa is correct for
2976         rewriting into loop closed.
2977
2978 2005-02-17  Nathan Sidwell  <nathan@codesourcery.com>
2979
2980         * bitmap.h (BITMAP_XMALLOC, BITMAP_XFREE): Remove.
2981         * bb-reorder.c (duplicate_computed_gotos): Use BITMAP_ALLOC and
2982         BITMAP_FREE.
2983         * bt-load.c (btr_def_live_range, combine_btr_defs,
2984         migrate_btr_def, migrate_btr_defs): Likewise.
2985         * cfgcleanup.c (thread_jump): Likewise.
2986         * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
2987         * df.c (df_insn_table_realloc, df_bitmaps_alloc, df_bitmaps_free,
2988         df_alloc, df_free, df_du_chain_create, df_bb_rd_local_compute,
2989         df_rd_local_compute, df_reg_info_compute): Likewise.
2990         * dominance.c (init_dom_info, free_dom_info): Likewise.
2991         * flow.c (init_propagate_block_info,
2992         free_propagate_block_info): Likewise.
2993         * gcse.c (alloc_gcse_mem, free_gcse_mem): Likewise.
2994         * global.c (allocate_bb_info, free_bb_info, calculate_reg_pav,
2995         modify_reg_pav): Likewise.
2996         * loop-invariant.c (find_defs, find_invariant_insn,
2997         find_invariants, free_inv_motion_data): Likewise.
2998         * predict.c (tree_predict_by_opcode,
2999         estimate_bb_frequencies): Likewise.
3000         * stmt.c (expand_case): Likewise.
3001         * tree-cfg.c (tree_duplicate_sese_region): Likewise.
3002         * tree-dfa.c (mark_new_vars_to_rename): Likewise.
3003         * tree-if-conv.c (get_loop_body_in_if_conv_order): Likewise.
3004         * tree-into-ssa.c (insert_phi_nodes_for, def_blocks_free,
3005         get_def_blocks_for, mark_def_site_blocks, rewrite_into_ssa,
3006         rewrite_ssa_into_ssa): Likewise.
3007         * tree-optimize.c (tree_rest_of_compilation): Likewise.
3008         * tree-outof-ssa.c (new_temp_expr_table, free_temp_expr_table,
3009         analyze_edges_for_bb, perform_edge_inserts): Likewise.
3010         * tree-scalar-evolution.c (scev_initialize, scev_finalize): Likewise.
3011         * tree-sra.c (tree_sra): Likewise.
3012         * tree-ssa-alias.c (init_alias_info, delete_alias_info): Likewise.
3013         * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
3014         * tree-ssa-dce.c (tree_dce_init, tree_dce_done): Likewise.
3015         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
3016         * tree-ssa-dse.c (tree_ssa_dse): Likewise.
3017         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_var):
3018         Likewise.
3019         * tree-ssa-live.c (new_tree_live_info, delete_tree_live_info,
3020         calculate_live_on_entry, calculate_live_on_exit,
3021         build_tree_conflict_graph): Likewise.
3022         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_init, record_use,
3023         record_important_candidates, set_use_iv_cost, find_depends,
3024         determine_use_iv_costs, iv_ca_new, iv_ca_free, free_loop_data,
3025         tree_ssa_iv_optimize_finalize): Likewise.
3026         * tree-ssa-loop-manip.c (add_exit_phis_var, get_loops_exit,
3027         find_uses_to_rename_use, rewrite_into_loop_closed_ssa,
3028         tree_duplicate_loop_to_header_edge): Likewise.
3029         * tree-ssa-pre.c (init_pre, fini_pre): Likewise.
3030         * tree-ssa.c (verify_flow_insensitive_alias_info,
3031         verify_name_tags, verify_ssa, init_tree_ssa,
3032         delete_tree_ssa): Likewise.
3033         * tree-ssanames.c (marked_ssa_names, init_ssanames,
3034         fini_ssanames): Likewise.
3035         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Likewise.
3036
3037 2005-02-17  Ralf Corsepius  <ralf.corsepius@rtems.org>
3038
3039         * config/rs6000/t-rtems: Completely reworked.
3040
3041 2005-02-17  Ira Rosen  <irar@il.ibm.com>
3042
3043         * tree-data-ref.c (array_base_name_differ_p): Remove gcc_assert.
3044
3045 2005-02-17  Ira Rosen  <irar@il.ibm.com>
3046
3047         * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Use
3048         POINTER_TYPE_P when checking that type is a pointer.
3049         (vect_get_memtag): Remove.
3050         (vect_address_analysis): Use POINTER_TYPE_P. Call
3051         vect_object_analysis with dummy parameter for memtag.
3052         (vect_object_analysis): Extract memtag (functionality that
3053         used to be in vect_get_memtag and moved here). Fix printings.
3054         (vect_analyze_data_refs): Fix comment. Call vect_object_analysis
3055         with correct parameters. Remove call to vect_get_memtag.
3056
3057 2005-02-17  Dorit Naishlos  <dorit@il.ibm.com>
3058
3059         * Makefile.in (tree-vect-analyze.o, tree-vect-transform.o): New.
3060         (tree-vectorizer.o): Added missing dependencies.
3061
3062         * tree-vectorizer.h (vect_dump, vect_verbosity_level): Added extern
3063         decleration.
3064         (slpeel_tree_peel_loop_to_edge): Function externalized (had a static
3065         declaration in tree-vectorizer.c, now has an extern declaration in
3066         tree-vectorizer.h).
3067         (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
3068         slpeel_verify_cfg_after_peeling, vect_strip_conversion,
3069         get_vectype_for_scalar_type, vect_is_simple_use,
3070         vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
3071         vect_supportable_dr_alignment, new_loop_vec_info, destroy_loop_vec_info,
3072         new_stmt_vec_info, vect_analyze_loop, vectorizable_load,
3073         vectorizable_store, vectorizable_operation, vectorizable_assignment,
3074         vect_transform_loop, vect_print_dump_info, vect_set_verbosity_level,
3075         find_loop_location): Likewise.
3076
3077         * tree-vectorizer.c (langhooks.h): #include removed.
3078         (slpeel_tree_peel_loop_to_edge): Function externalized. Declaration
3079         moved to tree-vectorized.h.
3080         (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
3081         slpeel_verify_cfg_after_peeling, vect_strip_conversion,
3082         get_vectype_for_scalar_type, vect_is_simple_use,
3083         vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
3084         vect_supportable_dr_alignment, new_loop_vec_info,
3085         destroy_loop_vec_info, new_stmt_vec_info, vect_print_dump_info,
3086         vect_set_verbosity_level, find_loop_location): Likewise.
3087
3088         (vect_analyze_loop): Function externalized. Declaration moved to
3089         tree-vectorized.h. Function definition moved to tree-vect-analyze.c.
3090         (vect_analyze_loop_form): Moved to tree-vect-analyze.c.
3091         (vect_mark_stmts_to_be_vectorized, vect_analyze_scalar_cycles,
3092         vect_analyze_data_ref_accesses, vect_analyze_data_ref_dependences,
3093         vect_analyze_data_refs_alignment, vect_compute_data_refs_alignment,
3094         vect_enhance_data_refs_alignment, vect_analyze_operations,
3095         exist_non_indexing_operands_for_use_p, vect_mark_relevant,
3096         vect_stmt_relevant_p, vect_get_loop_niters,
3097         vect_analyze_data_ref_dependence, vect_compute_data_ref_alignment,
3098         vect_analyze_data_ref_access, vect_analyze_pointer_ref_access,
3099         vect_can_advance_ivs_p, vect_get_ptr_offset, vect_analyze_offset_expr,
3100         vect_base_addr_differ_p, vect_object_analysis, vect_address_analysis,
3101         vect_get_memtag): Likewise.
3102
3103         (vectorizable_load): Function externalized. Declaration moved to
3104         tree-vectorized.h. Function definition moved to tree-vect-transform.c.
3105         (vectorizable_store, vectorizable_operation, vectorizable_assignment,
3106         vect_transform_loop): Likewise.
3107         (vect_transform_stmt): Moved to tree-vect-transform.c.
3108         (vect_align_data_ref, vect_create_destination_var,
3109         vect_create_data_ref_ptr, vect_create_index_for_vector_ref,
3110         vect_create_addr_base_for_vector_ref, vect_get_new_vect_var,
3111         vect_get_vec_def_for_operand, vect_init_vector,
3112         vect_finish_stmt_generation, vect_generate_tmps_on_preheader,
3113         vect_build_loop_niters, vect_update_ivs_after_vectorizer,
3114         vect_gen_niters_for_prolog_loop, vect_update_inits_of_dr,
3115         vect_update_inits_of_drs, vect_do_peeling_for_alignment,
3116         vect_do_peeling_for_loop_bound): Likewise.
3117
3118         * tree-vect-analyze.c: New file.
3119         * tree-vect-transform.c: New file.
3120
3121 2005-02-17  Jason Merrill  <jason@redhat.com>
3122
3123         PR mudflap/19319, c++/19317
3124         * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Make return
3125         slot explicit.
3126
3127 2005-02-17  Gerald Pfeifer  <gerald@pfeifer.com>
3128
3129         * doc/install.texi (Specific): Update link for Darwin-specific
3130         tool binary site.
3131
3132 2005-02-16  James A. Morrison  <phython@gcc.gnu.org>
3133
3134         * fold-const.c (invert_truthvalue): <INTEGER_CST>: Call
3135         constant_boolean_node.
3136
3137 2005-02-16  David Edelsohn  <edelsohn@gnu.org>
3138
3139         PR target/19019
3140         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
3141         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Same.
3142
3143 2005-02-16  Richard Henderson  <rth@redhat.com>
3144
3145         PR 19920
3146         * libgcc2.c (WORD_SIZE): Remove all definitions; replace uses
3147         with W_TYPE_SIZE.
3148         (HIGH_WORD_COEFF, HIGH_HALFWORD_COEFF): Remove all definitions;
3149         replace uses with Wtype_MAXp1_F.
3150         (L_fixunstfdi, L_fixtfdi, L_floatditf, L_fixunsxfdi, L_fixxfdi,
3151         L_floatdixf, L_fixunsxfsi, L_fixunsdfdi, L_floatdidf, L_fixunsdfsi,
3152         L_powidf2, L_powixf2, L_powitf2, L_muldc3, L_divdc3, L_mulxc3,
3153         L_divxc3, L_multc3, L_divtc3): Protect with HAVE_DFMODE, HAVE_XFMODE,
3154         and HAVE_TFMODE as appropriate.
3155         (__fixunssfDI): Provide an implementation that doesn't need DFmode.
3156         (__floatdisf): Likewise.
3157         * libgcc2.h (LIBGCC2_DOUBLE_TYPE_SIZE): New.
3158         (HAVE_DFMODE, HAVE_XFMODE, HAVE_TFMODE): New.
3159         (Wtype_MAXp1_F): New.
3160         (DFtype, DCtype, __fixdfdi, __floatdidf, __fixunsdfSI, __fixunsdfDI,
3161         __powidf2, __divdc3, __muldc3): Protect with HAVE_DFMODE.
3162
3163 2005-02-16  Richard Earnshaw  <rearnsha@arm.com>
3164
3165         * PR target/19162
3166         * arm.c (arm_apply_result_size): New function.
3167         * arm.h (APPLY_RESULT_SIZE): Define.
3168         * arm-protos.h (arm_apply_result_size): Add prototype.
3169         * arm.md (RO_REGNUM, FPA_F0_REGNUM, FPA_F7_REGNUM): New constants.
3170         (movxf): New expand.
3171         (ldmsi_postinc4_thumb, stmsi_postinc4_thumb): New patterns for Thumb.
3172         (call_value_symbol): Remove predicate for operand 0.
3173         (call_value_insn, sibcall_value, sibcall_value_insn): Likewise.
3174         (untyped_call): Rework to correclty return values for any type.
3175         (untyped_return): New expand.
3176         * fpa.md (movxf_fpa): Simplify and use sfm/lfm when appropriate.
3177
3178 2005-02-16  Stan Shebs  <shebs@apple.com>
3179
3180         * config.gcc (powerpc-*-darwin*): Use fragment for Darwin 8 or later.
3181         * config/rs6000/t-darwin8: New, for 64-bit multilib.
3182
3183 2005-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
3184
3185         * doc/install.texi (sparc-sun-solaris2*): Document required GMP
3186         configure settings on Solaris 7 and later.
3187
3188 2005-02-16  Diego Novillo  <dnovillo@redhat.com>
3189
3190         PR tree-optimization/19865
3191         * tree-optimize.c (init_tree_optimization_passes): Run
3192         pass_may_alias after pass_sra.
3193
3194 2005-02-16  Richard Henderson  <rth@redhat.com>
3195             Stuart Hastings  <stuart@apple.com>
3196
3197         PR debug/19521
3198         * dbxout.c (dbxout_function_end): Take decl parameter; update callers.
3199         Do nothing if debug info suppressed for this function.
3200         (dbxout_begin_function): Early exit if debug info suppressed for
3201         this function.
3202
3203 2005-02-16  Kazu Hirata  <kazu@cs.umass.edu>
3204
3205         PR target/20007
3206         * config/ip2k/ip2k.c (ip2k_reorg): Adjust calls to
3207         find_basic_blocks.
3208         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
3209
3210         PR tree-optimization/19967
3211         * builtins.c (expand_builtin_strstr, expand_builtin_strpbrk,
3212         expand_builtin_strchr, expand_builtin_strrchr): Take a new
3213         argument TYPE.  Adjust calls to fold_builtin_XXX.
3214         (expand_builtin, fold_builtin_1): Adjust calls to
3215         expand_builtin_XXX.
3216         (fold_builtin_strchr, fold_builtin_strpbrk,
3217         fold_builtin_strstr, fold_builtin_strrchr): Convert the folded
3218         result to a requested type TYPE.
3219
3220 2005-02-16  Jakub Jelinek  <jakub@redhat.com>
3221
3222         PR middle-end/19857
3223         * fold-const.c (fold): Don't optimize (T)(x & cst) to
3224         (T)x & (T)cst if (T)cst overflows.
3225         * convert.c (convert_to_integer) <case POINTER_TYPE>: Pass
3226         TYPE_UNSIGNED (type) as type_for_size's UNSIGNEDP argument.
3227
3228 2005-02-15  Jeff Law  <law@redhat.com>
3229
3230         * gcse.c (blocks_with_calls): New bitmap.
3231         (alloc_gcse_mem): Allocate it.
3232         (free_gcse_mem): Free it.
3233         (clear_modifY_mem_tables): Clear it.
3234         (record_last_mem_set_info): Set the proper bit in BLOCK_WITH_CALLS
3235         when we encounter CALL_INSNs.
3236         (compute_transp, case MEM): Handle blocks with calls separate
3237         from blocks without calls.  Use bitmap iterators rather than
3238         FOR_EACH_BB.
3239
3240 2005-02-15  Peter O'Gorman  <peter@pogma.com>
3241
3242         PR bootstrap/18810
3243         * mklibgcc.in (vis_hide): Use a temporary object file, not
3244         -o /dev/null.
3245
3246 2005-02-15  Andy Hutchinson  <HutchinsonAndy@netscape.net>
3247
3248         PR target/19924
3249         * config/avr/avr.h (MODES_TIEABLE_P): Define to 1 to allow subreg
3250         access optimization.
3251
3252 2005-02-15  David Edelsohn  <edelsohn@gnu.org>
3253             Alan Modra  <amodra@bigpond.net.au>
3254
3255         PR target/19019
3256         * config/rs6000/darwin-ldouble.c (_xlqadd): Rename to __gcc_qadd.
3257         (_xlqsub): Rename to __gcc_qsub.
3258         (_xlqmul): Rename to __gcc_qmul.
3259         (_xlqdiv): Rename to __gcc_qdiv.
3260         Provide versioned symbol aliases with old names.
3261         * config/rs6000/libgcc-ppc64.ver: Rename symbols.
3262         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Rename symbols.
3263         * config/rs6000/t-aix43 (LIB2FUNCS_EXTRA): New.
3264         * config/rs6000/t-aix52 (LIB2FUNCS_EXTRA): New.
3265         * config/rs6000/t-newas (LIB2FUNCS_EXTRA): New.
3266
3267 2005-02-15  James A. Morrison  <phython@gcc.gnu.org>
3268
3269         * fold-const.c (fold): Fold -(~A) to A + 1.  Fold ~(-A) to A - 1.
3270         Fold ~(A - 1) and ~(A + -1) to -A.
3271
3272 2005-02-15  James A. Morrison  <phython@gcc.gnu.org>
3273
3274         PR pch/14940
3275         PR target/19300
3276         * config/host-linux.c (linux_gt_pch_use_address): Copy from
3277         config/pa/pa-host.c:pa_gt_pch_use_address.
3278
3279 2005-02-15  Daniel Berlin  <dberlin@dberlin.org>
3280
3281         * tree-vn.c (get_value_handle): Make sure that given an
3282         is_gimple_min_invariant expression, we always return it.
3283
3284 2005-02-15  Kazu Hirata  <kazu@cs.umass.edu>
3285
3286         * passes.c (rest_of_handle_gcse): Fix a comment.
3287
3288 2005-02-15  Jeff Law  <law@redhat.com>
3289
3290         * gcse.c (canon_modify_mem_set_list_set): Kill unnecessary
3291         bitmap.
3292         (alloc_gcse_mem, free_gcse_mem): Corresponding changes.
3293         (canon_list_insert, record_last_mem_set_info): Similarly.
3294         (clear_modify_mem_tables): Similarly.
3295
3296 2005-02-15  Kazu Hirata  <kazu@cs.umass.edu>
3297
3298         * bitmap.c, bitmap.h, lambda-code.c, tree-dfa.c, tree-dump.c,
3299         tree-dump.h, tree-ssa-loop-manip.c, value-prof.c,
3300         config/mips/mips.md, config/rs6000/aix.h,
3301         config/rs6000/beos.h, config/rs6000/sysv4.h: Update copyright.
3302
3303 2005-02-15  Richard Henderson  <rth@redhat.com>
3304
3305         * bb-reorder.c (find_traces_1_round): Force fallthru edge from a
3306         call to be best_edge.
3307
3308 2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>
3309
3310         * basic-block.h: Adjust the prototype for find_basic_blocks.
3311         * cfgbuild.c (find_basic_blocks): Remove unused arguments.
3312         * passes.c (rest_of_handle_loop_optimize): Adjust the call to
3313         find_basic_blocks.
3314
3315         * flow.c (recompute_reg_usage): Remove all arguments.
3316         * passes.c (rest_of_compilation): Adjust the call to
3317         recompute_reg_usage.
3318         * rtl.h: Adjust the prototype for recompute_reg_usage.
3319
3320 2005-02-14  Daniel Berlin  <dberlin@dberlin.org>
3321
3322         * tree-dump.c (dump_files): Update to reflect new member
3323         of dump_file_info.
3324         (dump_register): Add new argument.
3325         Set glob name.
3326         (dump_switch_p_1): Check against glob name if doglob was passed.
3327         (dump_switch_p): Check against regular first, then glob if
3328         we didn't have any hits on the dump name.
3329         * tree-optimize.c (register_one_dump_file):
3330         Pass in glob name as well.
3331         * tree-pass.h (struct dump_file_info): Add glob
3332         member.
3333
3334 2005-02-14  Joseph S. Myers  <joseph@codesourcery.com>
3335
3336         PR preprocessor/16323
3337         * doc/invoke.texi: Document that -Wendif-labels is on by default.
3338
3339 2005-02-14  David Edelsohn  <edelsohn@gnu.org>
3340
3341         PR target/19019
3342         * config/rs6000/rs6000.md (trunctfdf2): Change to define_expand.
3343         (trunctfdf2_internal1): New.
3344         (trunctfdf2_internal2): Renamed from trunctfdf2.
3345
3346 2005-02-14  Diego Novillo  <dnovillo@redhat.com>
3347
3348         PR tree-optimization/19853
3349         * tree-dfa.c (add_referenced_var): Always examine DECL_INITIAL.
3350
3351 2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>
3352
3353         * passes.c (rest_of_handle_loop_optimize): Remove calls to
3354         delete_dead_jumptables and cleanup_cfg.
3355
3356 2005-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
3357
3358         * reload.c (find_reloads): Swap address_reloaded flags when
3359         swapping commutative operands.
3360
3361 2005-02-14  Sebastian Pop  <pop@cri.ensmp.fr>
3362
3363         * lambda-code.c (lambda_loopnest_to_gcc_loopnest, perfect_nestify):
3364         Use standard_iv_increment_position for computing the bsi position
3365         for create_iv.
3366         * tree-ssa-loop-manip.c (create_iv): Add a comment on how to compute
3367         the bsi position.
3368
3369 2005-02-13  Zdenek Dvorak  <dvorakz@suse.cz>
3370
3371         PR target/17428
3372         * cfgrtl.c (safe_insert_insn_on_edge): Avoid extending
3373         life range of hard registers.
3374         * value-prof.c (insn_prefetch_values_to_profile): Only
3375         scan normal insns.
3376
3377         * value-prof.c (rtl_find_values_to_profile): Do not look for values to
3378         profile in libcalls.
3379
3380 2005-02-13  Nathan Sidwell  <nathan@codesourcery.com>
3381
3382         * bitmap.h (bitmap_and_compl_into): Return bool.
3383         * bitmap.c (bitmap_and_compl_into): Return changed flag.
3384
3385 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
3386
3387         PR tree-optimization/19944
3388         * fold-const.c (fold): Re-add ABS_EXPR folding.
3389
3390 2005-02-13  David Edelsohn  <edelsohn@gnu.org>
3391
3392         PR target/19019
3393         * config/rs6000/aix.h ({TARGET,MASK}_XL_CALL): Rename to
3394         {TARGET,MASK}_XL_COMPAT.
3395         (SUBTARGET_SWITCHES): Rename xl-call to xl-compat.  Use
3396         MASK_XL_COMPAT.
3397         * config/rs6000/beos.h ({TARGET,MASK}_XL_CALL): Remove.
3398         * config/rs6000/rs6000.c (function_arg): Change TARGET_XL_CALL to
3399         TARGET_XL_COMPAT.
3400         (rs6000_arg_partial_bytes): Same.
3401         (rs6000_generate_compare): Generate PARALLEL for compare if TFmode
3402         and XL compatibility enabled.
3403         * config/rs6000/rs6000.h (TARGET_XL_CALL): Rename to TARGET_XL_COMPAT.
3404         * config/rs6000/rs6000.md (cmptf_internal1): Add !TARGET_XL_COMPAT
3405         test to final condition.
3406         (cmptf_internal2): New.
3407         * doc/invoke.texi (RS/6000 Subtarget Options): Change xl-call to
3408         xl-compat.  Add TFmode information to description.
3409
3410 2005-02-13  Kazu Hirata  <kazu@cs.umass.edu>
3411
3412         * flags.h, read-rtl.c, tree-ssa-live.h: Update copyright.
3413
3414 2005-02-13  Jason Merrill  <jason@redhat.com>
3415
3416         PR c++/16405
3417         * fold-const.c (fold_indirect_ref_1): Split out from...
3418         (build_fold_indirect_ref): Here.
3419         (fold_indirect_ref): New fn.
3420         * tree.h: Declare it.
3421         * gimplify.c (gimplify_compound_lval): Call fold_indirect_ref.
3422         (gimplify_modify_expr_rhs): Likewise.
3423         (gimplify_expr): Likewise.
3424
3425 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
3426
3427         PR tree-optimization/14303
3428         PR tree-optimization/15784
3429         * fold-const.c (fold): Fold ABS_EXPR<x> >= 0 to true, when possible.
3430         Fold ABS_EXPR<x> < 0 to false.  Fold ABS_EXPR<x> == 0 to x == 0 and
3431         ABS_EXPR<x> != 0 to x != 0.
3432
3433 2005-02-12  Kazu Hirata  <kazu@cs.umass.edu>
3434
3435         * c-tree.h, combine.c, expmed.c, flow.c, libgcc2.c,
3436         simplify-rtx.c, tree-ssa-live.h: Fix comment typos.  Follow
3437         spelling conventions.
3438
3439         * passes.c (rest_of_handle_gcse): Don't run cse_main and
3440         delete_trivially_dead_insns too many times.
3441
3442      &nb