OSDN Git Service

4237524377759ff9b53199e56951fc83dcd16bb0
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-03-22  Joel Brobecker  <brobecker@gnat.com>
2
3         * dwarf2out.c (is_subrange_type): Minor code rework. No behavior
4         change.
5
6 2004-03-22  Jakub Jelinek  <jakub@redhat.com>
7
8         PR c/14069
9         * c-decl.c (finish_struct): Change type of incorrect flexible array
10         field into error_mark_node.
11
12 2004-03-22  Andrew Pinski  <pinskia@physics.uc.edu>
13
14         PR target/14580
15         * config/rs6000/rs6000.c (symbol_ref_operand): Reject symbols
16         who are not local for Darwin PIC.
17
18 2004-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
19
20         * regrename.c (regrename_optimize): Set regs_ever_live for all
21         registers introduced as replacement.
22
23 2004-03-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
24
25         PR middle-end/14470
26         * expr.c (mark_queue): New function.
27         (emit_insns_enqueued_after_mark): New function replacing
28         emit_queue.  Clear the body of emitted queued insns.
29         (emit_queue): Call emit_insns_enqueued_after_mark.
30         (store_expr): Mark the increment queue on entry.  Emit
31         only the incrementations queued when expanding the source.
32
33 2004-03-22  Nathanael Nerode  <neroden@gcc.gnu.org>
34
35         * configure.ac: Allow --disable-coverage-flags (for the future benefit
36         of top level bootstrap, and consistency).  Reindent.
37         * configure: Regenerate.
38
39 2004-03-21  Kazu Hirata  <kazu@cs.umass.edu>
40
41         * bt-load.c, builtins.c, cfghooks.c, cfgrtl.c, gcse.c,
42         ggc-page.c, integrate.c, var-tracking.c, web.c: Remove
43         unnecessary casts.
44
45 2004-03-22  Danny Smith  <dannysmith@users.sourceforge.net>
46
47         PR target/14291
48         * gcov-io.h (gcov_truncate): Define ftruncate as _chsize for
49         __MINGW32__.
50
51 2004-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
52
53         * config/s390/s390.md ("*doloop_si"): Change predicate for operand 2
54         to nonimmediate_operand.
55         ("*doloop_di"): Likewise.
56
57 2004-03-21  Alexandre Oliva  <aoliva@redhat.com>
58
59         * real.h (struct real_value): Use the same type for all
60         bitfields.  Rename exp to uexp.
61         (REAL_EXP, SET_REAL_EXP): New accessor macros for uexp.
62         Adjust all uses of exp...
63         * builtins.c: ... here, ...
64         * emit-rtl.c: ... here, and ...
65         * real.c: ... and here.
66
67 2004-03-21  Gabriel Dos Reis  <gdr@integrable-solutions.net>
68
69         * pretty-print.c (pp_base_maybe_space): New function.
70         * pretty-print.h (pp_base_maybe_space): Declare.
71         (pp_maybe_space): New macro.
72
73 2004-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
74
75         * config/s390/s390.md ("addti3", "subti3"): New insns and splitters.
76
77 2004-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
78
79         * expmed.c (choose_mult_variant): Pass MULT_COST as argument instead
80         of using register multiplication cost.
81         (expand_mult): Adapt choose_mult_variant call.
82         (expand_mult_highpart): Call choose_mult_variant with WIDER_MODE
83         of MODE; pass appropriate cost bound.  Adjust result when
84         performing signed multiplication by a negative constant.
85         Don't use intermediate modes larger than word_mode.
86
87 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
88
89         * alias.c (get_alias_set): Remove handling of PLACEHOLDER_EXPR.
90         * emit-rtl.c (component_ref_for_mem_expr): Likewise.
91         (set_mem_attributes_minus_bitpos): Call SUBSTITUTE_PLACEHOLDER_IN_EXPR.
92         * explow.c (expr_size): Likewise.
93         * expr.h (placeholder_list, find_placeholder): Deleted.
94         * expr.c (store_constructor): Likewise.
95         (get_inner_reference): Likewise.  Also don't call find_placeholder.
96         (placeholder_list, find_placeholder): Deleted.
97         (is_aligning_offset): Don't handle WITH_RECORD_EXPR, PLACEHOLDER_EXPR.
98         (expand_expr_real, cases PLACEHOLDER_EXPR, WITH_RECORD_EXPR): Likewise.
99         (highest_pow2_factor, case WITH_RECORD_EXPR): Remove.
100         * dojump.c (do_jump, case WITH_RECORD_EXPR): Likewise.
101         * dwarf2out.c (loc_descriptor_from_tree, case WITH_RECORD_EXPR):
102         Likewise.
103         * fold-const.c (invert_truthvalue, case WITH_RECORD_EXPR): Likewise.
104         (extract_muldiv, case WITH_RECORD_EXPR): Likewise.
105         * tree.c (expr_align, case WITH_RECORD_EXPR): Likewise.
106         (contains_placeholder_p): Don't handle WITH_RECORD_EXPR.
107         Clean up by using first_rtl_op.
108         (substitute_in_expr): Use SUBSTITUTE_IN_EXPR for recursive call.
109         (substitute_placeholder_in_expr): New function.
110         * tree.def (WITH_RECORD_EXPR): Deleted.
111         * tree.h (SUBSTITUTE_IN_EXPR, SUBSTITUTE_PLACEHOLDER_IN_EXPR): New.
112         (substitute_placeholder_in_expr): New.
113
114 2004-03-21  Andrew Pinski  <pinskia@gcc.gnu.org>
115
116         * dojump.c (prefer_and_bit_test): Fix which part of
117         the and_test is replaced.
118
119 2004-03-21  Joseph S. Myers  <jsm@polyomino.org.uk>
120
121         * frontends.texi: Add missing line.
122
123 2004-03-21  Zack Weinberg  <zack@codesourcery.com>
124             Chris Devers  <cdevers@pobox.com>
125             Joseph S. Myers  <jsm@polyomino.org.uk>
126
127         * doc/frontends.texi: Rewrite.
128         * doc/gcc.texi: Update last modification date.
129
130 2004-03-21  Josef Zlomek  <zlomekj@suse.cz>
131
132         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Print the debug
133         message before redirecting the edge.
134
135 2004-03-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
136
137         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_POINTER
138         flag.
139         * explow.c (force_not_mem): Set REG_POINTER flag according to
140         MEM_POINTER one.
141         * rtl.h (MEM_POINTER): New macro.
142         (struct rtx_def): Use integrated for MEM_SCALAR_P and frame_related
143         for MEM_POINTER.
144
145 2004-03-20  Roger Sayle  <roger@eyesopen.com>
146
147         PR target/13889
148         * cse.c (fold_rtx): Avoid substituting constants into unary
149         conversion operations.
150
151 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
152
153         * fold-const.c (fold): Replace "expr" with "t".
154
155 2004-03-20  Ian Lance Taylor  <ian@wasabisystems.com>
156
157         PR c/12373
158         * c-typeck.c (tagged_types_tu_compatible_p): Don't use
159         DECL_ORIGINAL_TYPE if there isn't one.
160
161 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
162
163         * fold-const.c (fold): Replace "final_type" with "type".
164         Remove variable "final_type".
165
166 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
167
168         * fold-const.c (fold): Constify "type".
169         Replace "TREE_TYPE (t)" with "type".
170
171 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
172
173         * bb-reorder.c, bt-load.c, c-decl.c, cfgcleanup.c, coverage.c,
174         dwarf2asm.c, ifcvt.c, stor-layout.c, varasm.c: Replace calls
175         via (*targetm.foo) () with targetm.foo ().
176
177 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
178
179         PR other/14630
180         * doc/install.texi: Add info directory category and entry.
181
182 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
183
184         * fold-const.c (fold): Replace "t" with "tem" where it is used
185         as a temporary variable.  Remove "orig_t" and all of its uses.
186
187 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
188
189         * fold-const.c (fold): Remove variable "invert".
190         Move the handling of relational expressions that can be folded
191         to a constant ...
192         (fold_relational_const): ... here.
193         (tree_expr_nonzero_p): New.
194
195 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
196
197         PR c/14635
198         * builtins.def (nan, nanf, nanl, nans, nansf, nansl): Change to
199         DEF_GCC_BUILTIN.
200
201 2004-03-20  Richard Sandiford  <rsandifo@redhat.com>
202
203         * Makefile.in (dojump.o): Depend on $(GGC_H) and dojump.h.
204         (GTFILES): Add $(srcdir)/dojump.h.
205         (gt-dojump.h): New dependency.
206         * dojump.c (and_reg, and_test, shift_test): New static variables.
207         (prefer_and_bit_test): New function.
208         (do_jump): Use it to choose between (X & (1 << C)) and (X >> C) & 1.
209
210 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
211
212         * c-common.c, cfgcleanup.c, cgraphunit.c, c-pretty-print.c,
213         expmed.c, ggc-common.c, jump.c, passes.c, recog.c, regmove.c,
214         reorg.c, tree.h: Fix comment typos.
215
216 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
217
218         * alias.c, attribs.c, bt-load.c, builtins.c, c-common.c,
219         c-decl.c, c-objc-common.c, c-typeck.c, calls.c, cfglayout.c,
220         cse.c, dbxout.c, dwarf2out.c, except.c, final.c,
221         haifa-sched.c, integrate.c, passes.c, rtlanal.c, sched-rgn.c,
222         sched-vis.c, simplify-rtx.c, stor-layout.c, tree.c, varasm.c,
223         vmsdbgout.c: Replace calls via (*targetm.foo) () with
224         targetm.foo ().
225
226 2004-03-19  Ziemowit Laski  <zlaski@apple.com>
227
228         * config/rs6000/altivec.h (vec_dst, vec_dstst, vec_dststt,
229         vec_dstt, vec_sld, vec_splat): Add prototypes, marked with
230         always_inline attribute.
231         * config/rs6000/rs6000.c (altivec_expand_dst_builtin):
232         Treat expansion as completed even if literal argument is
233         invalid (so that other expansions are not tried in vain).
234
235 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
236
237         * loop-doloop.c (add_test): Replace GEN_INT (0) with
238         const0_rtx.
239
240 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
241
242         * fold-const.c (fold) <ABS_EXPR>: Move the handling of constants
243         ...
244         (fold_abs_const): ... here.
245
246 2004-03-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
247
248         * tree.h (TYPE_ARRAY_MAX_SIZE): Use type.maxval directly.
249
250 2004-03-19  Denis Chertykov  <denisc@overta.ru>
251
252         PR target/11520
253         * config/avr/avr.md ("call_insn"): Handle explicit integer
254         specially.
255         (call_value_insn): Likewise.
256
257 2004-03-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
258
259         * tree.c (substitute_in_expr): Rewrite to simplify and be more generic.
260
261 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
262
263         * fold-const.c (negate_expr): Move the handling of constants
264         ...
265         (fold_negate_const): ... here.
266
267 2004-03-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
268
269         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook.
270         * langhooks.h (struct lang_hooks_for_types): New field hash_types.
271         * tree.c (debug_no_type_hash): Deleted.
272         (type_hash_canon): Abort if passed a variant.
273         Check lang_hooks.types.hash_types.
274         (build_type_no_quals): Copy mode of POINTER_TYPE and REFERENCE_TYPE.
275         (build_array_type): Remove unnecessary allocation of pointer type.
276         (build_complex_type): Properly qualify resulting type.
277
278 2004-03-19  Paolo Bonzini  <bonzini@gnu.org>
279
280         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo.
281
282 2004-03-19  Richard Sandiford  <rsandifo@redhat.com>
283
284         * expmed.c (choose_mult_variant, expand_mult_const): New, split from...
285         (expand_mult): ...here.
286         (extract_high_half): New, split out from expand_mult_highpart.
287         (expand_highpart_optab): Likewise.  Don't clobber target prematurely.
288         (expand_highpart): Evaluate the cost of a shift/add sequence,
289         then see if any of the specialized optabs are cheaper.
290
291 2004-03-18  Ian Lance Taylor  <ian@wasabisystems.com>
292
293         * mklibgcc.in: Remove obsolete MAYBE_USE_COLLECT2.
294
295 2004-03-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
296
297         * convert.c (convert_to_real): Add more math builtins.
298
299 2004-03-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
300
301         * convert.c (convert_to_real): Reformat using switch stmt.
302
303 2004-03-18  Mark Mitchell  <mark@codesourcery.com>
304
305         * c-common.c (pointer_int_sum): Do not complain about using
306         pointers to pointers-to-members.
307
308 2004-03-18  Kazu Hirata  <kazu@cs.umass.edu>
309
310         * system.h (MD_ASM_CLOBBERS): Move to "Old target macros that
311         have moved to the target hooks structure".
312
313 2004-03-18  James E Wilson  <wilson@specifixinc.com>
314
315         * config/mips/mips.md (type): Split move into arith and fmove.  Split
316         hilo into mthilo and mfhilo.  Add trap.  Delete icmp.  Fix all uses.
317         * config/mips/5400.md (ir_vr54_hilo, ir_vr54_arith, ir_vr54_fabs):
318         Likewise.
319         * config/mips/5500.md (ir_vr55_hilo, ir_vr55_arith, ir_vr55_fabs):
320         Likewise.
321         * config/mips/7000.md (rm7_int_other, rm7_mthilo, rm7_mfhilo,
322         rm7_fp_quick): Likewise.
323         * config/mips/9000.md (rm9k_int, rm9k_mfhilo, rm9k_mthilo,
324         rm9k_fquick): Likewise.
325         * config/mips/sr71k.md (ir_sr70_hilo, ir_sr70_arith, ir_sr70_fabs):
326         Likewise.
327         (ir_sr70_icmp): Delete.
328
329 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
330         
331         * tree.h (TREE_CHECK2, TREE_CHECK3, TREE_CHECK5): New macros.
332         (tree_check2_failed, tree_check3_failed, tree_check5_failed): New decl.
333         (FUNC_OR_METHOD_CHECK, SET_ARRAY_OR_VECTOR_CHECK): New macros.
334         (REC_OR_UNION_CHECK, NUMERICAL_TYPE_CHECK): Likewise.
335         (TYPE_VALUES, TYPE_DOMAIN, TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD):
336         Protect with proper check.
337         (TYPE_ARG_TYPES, TYPE_METHOD_BASETYPE, TYPE_OFFSET_BASETYPE): Likewise.
338         (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Likewise.
339         * tree.c (type_hash_eq): Rewrite to access proper fields for each type.
340         (tree_check2_failed, tree_check3_failed, tree_check5_failed): New.
341         * c-typeck.c (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES.
342         * dwarf2out.c (gen_enumeration_type_die): Use TYPE_VALUES,
343         not TYPE_FIELDS.
344         * stor-layout.c (set_sizetype): Use TYPE_ORIG_SIZE_TYPE.
345
346 2004-03-18  Mostafa Hagog  <mustafa@il.ibm.com>
347
348         * gcse.c (eliminate_partially_redundant_loads): Reject change if
349         dest is set between beginning and current insn.
350
351 2004-03-18  Mark Mitchell  <mark@codesourcery.com>
352
353         * c-decl.c (grokdeclarator): Do not complain about redeclaring
354         visible "static" identifiers "extern" in a local scope.
355         * dwarf2out.c (loc_descriptor_from_tree): Handle pre- and
356         post-increments/decrements.
357
358 2004-03-18  Bob Wilson  <bob.wilson@acm.org>
359
360         * config/xtensa/xtensa.c (current_function_arg_words): Delete.
361         (xtensa_builtin_saveregs): Use current_function_args_info.arg_words.
362         (xtensa_va_start): Remove assignment to current_function_arg_words.
363
364 2004-03-18  Richard Sandiford  <rsandifo@redhat.com>
365
366         * alias.c (record_set): Detect the case where a register is assigned
367         a new value that has the same base term as the old one.
368
369 2004-03-18  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
370
371         * doloop.c: Removed.
372         * loop-doloop.c: New file.
373         * Makefile.in (doloop.o): Remove.
374         (loop-doloop.o): New.
375         * cfgloop.h (get_loop_level, doloop_optimize_loops): Declare.
376         * cfgloopanal.c (get_loop_level): New function.
377         * loop-iv.c (iv_number_of_iterations): Handle case when loop
378         is leaved immediatelly.
379         * loop.c (strength_reduce): Do not call doloop optimization.
380         * loop.h (LOOP_BCT): Removed.
381         * passes.c (rest_of_handle_loop_optimize): Do not use LOOP_BCT.
382         (rest_of_handle_loop2): Call doloop_optimize_loops.
383         (rest_of_compilation): Test for optimizations moved to
384         rest_of_handle_loop2.
385
386 2004-03-17  Fariborz Jahanian <fjahanian@apple.com>
387
388         * config/rs6000/rs6000.c (rs6000_stack_info): correct reg_size
389         for mixed mode.
390         (rs6000_emit_prologue): Ditto.
391         (rs6000_emit_epilogue): Ditto.
392         * config/rs6000/rs6000.h: Definition of DWARF_CIE_DATA_ALIGNMENT
393         macro for mixed mode.
394
395 2004-03-18  Jan Hubicka  <jh@suse.cz>
396
397         * predict.c (propagate_freq): Compute correctly frequency of
398         EXIT_BLOCK.
399
400 2004-03-17  Eric Christopher  <echristo@redhat.com>
401
402         * builtins.c (apply_args_size): Use reg_raw_mode.
403         (apply_result_size): Ditto.
404
405 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
406
407         PR target/14620
408         * config/rtems.h: Add STD_LIB_SPEC and LIB_SPEC.
409
410 2004-03-17  Jakub Jelinek  <jakub@redhat.com>
411
412         * config/rs6000/t-linux64 (bispecs): Don't add -mlong-double-128 for
413         32-bit builds when defaulting to 32-bit.
414
415 2004-03-17  Jan Hubicka  <jh@suse.cz>
416
417         * cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info
418         array.
419
420 2004-03-17  James E Wilson  <wilson@specifixinc.com>
421
422         * config/mips/mips.md (zero_extendsidi2): Add length attribute.
423         (hazard_nop): Change type to nop.
424         (type): Split arith into arith, shift, slt, clz.  Delete darith.
425         Fix all uses.  Change arith to multi if more than one insn emitted.
426         * config/mips/5400.md (ir_vr54_arith): Likewise.
427         * config/mips/5500.md (ir_vr55_arith): Likewise.
428         * config/mips/7000.md (rm7_int_other): Likewise.
429         * config/mips/9000.md (rm9k_int): Likewise.
430         * config/mips/sr71k.md (ir_sr70_arith): Likewise.
431
432 2004-03-17  Joel Brobecker  <brobecker@gnat.com>
433
434         * dwarf2out.c (subrange_type_die): Define new variable "subtype"
435         to hold the subtype tree instead of recomputing it several times.
436
437 2004-03-17  Kazu Hirata  <kazu@cs.umass.edu>
438
439         * config/mn10300/mn10300.c (notice_update_cc): Don't handle
440         CC_INVERT.
441         * config/mn10300/mn10300.md (cc): Remove "invert".
442
443 2004-03-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
444
445         * builtins.c (integer_valued_real_p): Add builtin rint.
446         (fold_builtin): Likewise.
447         * convert.c (convert_to_real): Likewise.
448
449         * convert.c (convert_to_real): Fix typos in `long double'
450         builtins.
451
452 2004-03-16  Mark Mitchell  <mark@codesourcery.com>
453
454         PR c++/14481
455         * fold-const.c (fold): Set TREE_NO_UNUSED_WARNING on implicitly
456         generated COMPOUND_EXPRs.
457
458 2004-03-16  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
459
460         * config/h8300/t-rtems (h8300-*-rtems*): New.
461
462 2004-03-16  Eric Christopher  <echristo@redhat.com>
463
464         * doc/cppopts.texi(fwide-exec-charset): Fix typo.
465
466 2004-03-16  Kazu Hirata  <kazu@cs.umass.edu>
467
468         * config/i386/i386-protos.h: Add a prototype for
469         ix86_reverse_condition.
470         * config/i386/i386.c (ix86_reverse_condition): New.
471         * config/i386/i386.h (REVERSE_CONDITION): Use
472         ix86_reverse_condition.
473         * config/i386/i386.md: Use ix86_reverse_condition instead of
474         REVERSE_CONDITION.
475
476 2004-03-16  J. Brobecker  <brobecker@gnat.com>
477
478         * dwarf2out.c (loc_descriptor_from_tree): Add handling for MIN_EXPR.
479
480 2004-03-16  Nathanael Nerode  <neroden@gcc.gnu.org>
481
482         PR bootstrap/12974
483         * Makefile.in: Pass $(INCLUDES) down to libgcc.mk explicitly.
484
485 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
486
487         * c-common.c (c_common_type_for_mode): Build vector types on
488         demand.
489         (handle_mode_attribute): Deprecate using the mode attribute
490         to create vector types.  Fix indentation.
491         (vector_type_node_list): Remove.
492         (handle_vector_size_attribute): Create vector types on demand.
493         Strip a NON_LVALUE_EXPR from the attribute if there is one.
494         * c-typeck.c (comptypes): Make vector types compatible if they
495         have the same underlying mode.
496         (convert_for_assignment): Use comptypes to convert between
497         vector types.
498         * tree.c (build_common_tree_nodes_2): Do not create vector types.
499         * config/arm/arm.c (arm_init_iwmmxt_builtins): Create necessary
500         vector types.
501         * tree.h: Remove vector types.
502         * config/i386/i386.c (i386_init_mmx_sse_builtins): Likewise.
503         * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
504         (V16QI_type_node, V2SI_type_node, V2SF_type_node, V4HI_type_node,
505         V4SI_type_node, V4SF_type_node, V8HI_type_node): New globals.
506         * doc/extend.texi (Vector Types): Document how to use the
507         vector_size attribute to create vectors, rather than mode.
508
509         * config/arm/mmintrin.h: Use vector_size attribute, not mode.
510         * config/i386/emmintrin.h: Likewise.
511         * config/i386/mmintrin.h: Likewise.
512         * config/i386/xmmintrin.h: Likewise.
513         * config/sh/ushmedia.h: Likewise.
514
515 2004-03-16  Kazu Hirata  <kazu@cs.umass.edu>
516
517         * config/freebsd-spec.h, config/arc/arc-protos.h,
518         config/arm/aout.h, config/arm/elf.h, config/arm/freebsd.h,
519         config/arm/linux-gas.h, config/arm/semi.h,
520         config/cris/cris-protos.h, config/i386/xm-djgpp.h,
521         config/ia64/freebsd.h, config/mips/7000.md,
522         config/mips/9000.md, config/ns32k/ns32k-protos.h,
523         config/sparc/pbd.h: Update copyright.
524
525 2004-03-16  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
526
527         PR target/14577
528         * config.gcc: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff.
529
530 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
531
532         * combine.c (combine_simplify_rtx): Remove the "last"
533         parameter and its documentation.  Adjust recursive calls.
534         (simplify_logical): Always perform the only simplification
535         controlled by "last", if the simplified expression is
536         actually different.
537         (try_combine): Do not pass the "last" parameter to
538         combine_simplify_rtx.
539
540 2004-03-16  Richard Sandiford  <rsandifo@redhat.com>
541
542         PR target/14599
543         * config/mips/mips.md (UNSPEC_GP): New constant.
544         * config/mips/mips.c (CONST_GP_P): Expect the CONST to contain
545         an UNSPEC instead of (reg $gp).
546         (mips16_gp_pseudo_reg): Change accordingly.
547         (print_operand): Print $gp directly when handling CONST_GP_P.
548
549 2004-03-16  Richard Zidlicky  <rz@linux-m68k.org>
550
551         * config.gcc, config/m68k/linux.h: Implement with-cpu for m68k-linux.
552         * longlong.h: Make code 68060 clean when compiling for m68060.
553
554 2004-03-16  Richard Zidlicky  <rz@linux-m68k.org>
555
556         * config/m68k/m68k.md: Fix constraints for bitfield instructions.
557         * doc/md.texi: Clarify description of "i" constraint.
558
559 2004-03-15  James E Wilson  <wilson@specifixinc.com>
560
561         * config/mips/mips.md (type): Split load into load, fpload, fpidxload.
562         Split store into store, fpstore, fpidxstore.  Fix all uses.
563         * config/mips/5400.md (ir_vr54_load, ir_vr54_store, ir_vr54_fstore):
564         Likewise.
565         * config/mips/5500.md (ir_vr55_load, i5_vr55_store): Likewise.
566         * config/mips/7000.md (rm7_ld, rm7_st): Likewise.
567         * config/mips/9000.md (rm9k_load, rm9k_store): Likewise.
568         * config/mips/sr71k.md (ir_sr70_load, ir_sr70_store, ir_sr70_fload,
569         ir_sr70_fstore): Likewise.
570
571 2004-03-15  Richard Henderson  <rth@redhat.com>
572
573         PR middle-end/14535
574         * except.c (collect_one_action_chain): Record action for cleanup
575         outer of exception spec.
576
577 2004-03-15  Ian Lance Taylor  <ian@wasabisystems.com>
578
579         * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
580         Fix the check for abort and only do the mmap if we can.
581
582 2004-03-15  Eric Botcazou  <ebotcazou@act-europe.fr>
583
584         * config/sparc/sparc.h: Rework comments about the code model
585         in 64-bit environment and the mode 'Pmode'.
586         * doc/invoke.texi (SPARC options): Rework description of the
587         different code models supported in 64-bit environment.
588
589 2004-03-15  Kazu Hirata  <kazu@cs.umass.edu>
590
591         * defaults.h (REVERSIBLE_CC_MODE): Define.
592         * jump.c (reversed_comparison_code_parts): Don't check if
593         REVERSIBLE_CC_MODE is defined.
594
595 2004-03-15  Kazu Hirata  <kazu@cs.umass.edu>
596
597         * c-incpath.c, c-incpath.h, c-pch.c, c.opt, cppexp.c,
598         et-forest.h, genattr.c, ggc-none.c, hosthooks-def.h,
599         hosthooks.h, params.h, ra-colorize.c, web.c,
600         config/darwin-c.c, config/alpha/freebsd.h, config/arm/pe.c,
601         config/avr/avr-protos.h, config/avr/avr.md,
602         config/fr30/fr30-protos.h, config/fr30/fr30.md,
603         config/h8300/fixunssfsi.c, config/i386/darwin.h,
604         config/i386/freebsd.h, config/i386/freebsd64.h,
605         config/ia64/hpux.h, config/ia64/unwind-ia64.c,
606         config/ip2k/libgcc.S, config/m32r/xm-m32r.h,
607         config/mmix/mmix-modes.def, config/ns32k/netbsd.h,
608         config/ns32k/ns32k.md, config/pa/pa64-hpux.h,
609         config/pa/pa64-regs.h, config/rs6000/aix41.h,
610         config/rs6000/aix43.h, config/rs6000/host-darwin.c,
611         config/sparc/aout.h, config/sparc/freebsd.h,
612         config/sparc/litecoff.h, config/vax/vax-protos.h,
613         doc/hostconfig.texi, doc/include/gcc-common.texi: Update
614         copyright.
615
616 2004-03-15  Paul Brook  <paul@codesourcery.com>
617
618         * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp.
619
620 2004-03-15  Gabriel Dos Reis  <gdr@integrable-solutions.net>
621
622         * c-pretty-print.c (pp_c_semicolon): Fix formatting.
623         (pp_c_cv_qualifier): Document.
624         (pp_c_space_for_pointer_operator): Likewise.
625         (pp_c_integer_constant): Likewise.
626         (pp_c_identifier): Likewise.
627         (pp_c_init_declarator): Don't print function body.
628
629 2004-03-14  Joseph S. Myers  <jsm@polyomino.org.uk>
630
631         * doc/contrib.texi, doc/extend.texi, doc/gcov.texi,
632         doc/install.texi, doc/invoke.texi, doc/makefile.texi,
633         doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi: Capitalize
634         "gcc", "g++" and "g77" or mark up with appropriate markup.  Adjust
635         wording and grammar.
636
637 2004-03-14  Roger Sayle  <roger@eyesopen.com>
638
639         * alias.c (get_alias_set): Replace calls via (*lang_hooks.foo) ()
640         with lang_hooks.foo ().
641         * builtins.c (expand_builtin_va_arg): Likewise.
642         * c-common.c (fname_as_string, c_common_truthvalue_conversion,
643         c_common_type_for_mode, c_common_nodes_and_builtins,
644         handle_mode_attribute, handle_vector_size_attribute): Likewise.
645         * c-convert.c (convert): Likewise.
646         * c-format.c (check_format_types): Likewise.
647         * c-objc-common.c (c_tree_printer): Likewise.
648         * c-typeck.c (build_unary_op, build_conditional_expr,
649         build_binary_op): Likewise.
650         * calls.c (try_to_integrate, expand_call,
651         emit_library_call_value_1): Likewise.
652         * cgraph.c (cgraph_node_name, cgraph_function_possibly_inlined_p):
653         Likewise.
654         * cgraphunit.c (record_call_1, cgraph_analyze_function,
655         cgraph_expand_function): Likewise.
656         * convert.c (convert_to_pointer, convert_to_integer): Likewise.
657         * coverage.c (build_fn_info_type, build_ctr_info_type,
658         build_gcov_info, create_coverage): Likewise.
659         * dbxout.c (dbxout_init): Likewise.
660         * diagnostic.c (diagnostic_report_current_function): Likewise.
661         * dojump.c (do_jump): Likewise.
662         * dwarf2out.c (dwarf2_name): Likewise.
663         * except.c (init_eh): Likewise.
664         * explow.c (expr_size, int_expr_size): Likewise.
665         * expmed.c (make_tree, const_mult_add_overflow_p, expand_mult_add):
666         Likewise.
667         * expr.c (store_expr, store_constructor, safe_from_p,
668         expand_expr_real, do_store_flag, try_casesi): Likewise.
669         * function.c (push_function_context_to, pop_function_context_from,
670         free_after_parsing, assign_stack_local_1, assign_stack_temp_for_type,
671         put_var_into_stack, allocate_struct_function, current_function_name):
672         Likewise.
673         * integrate.c (copy_decl_for_inlining, expand_inline_function):
674         Likewise.
675         * langhooks.c (lhd_clear_binding_stack, write_global_declarations,
676         lhd_print_error_function): Likewise.
677         * opts.c (handle_option, decode_options): Likewise.
678         * passes.c (open_dump_file): Likewise.
679         * print-tree.c (print_node): Likewise.
680         * stmt.c (expand_fixup, fixup_gotos, expand_asm_operands,
681         expand_decl_cleanup, emit_case_nodes): Likewise.
682         * stor-layout.c (variable_size): Likewise.
683         * toplev.c (announce_function, wrapup_global_declarations,
684         check_global_declarations, compile_file, default_tree_printer,
685         process_options, lang_dependent_init, finalize): Likewise.
686         * tree-dump.c (dequeue_and_dump): Likewise.
687         * tree-inline.c (remap_decl, remap_block, copy_body_r,
688         initialize_inlined_parameters, declare_return_variable,
689         inlinable_function_p, expand_call_inline, optimize_inline_calls,
690         walk_tree, copy_tree_r): Likewise.
691         * tree-optimize.c (tree_rest_of_compilation): Likewise.
692         * tree.c (decl_assembler_name, tree_size, size_in_bytes, staticp,
693         unsafe_for_reeval, get_unwidened, get_narrower, get_callee_fndecl,
694         variably_modified_type_p, dump_tree_statistics): Likewise.
695         * varasm.c (assemble_variable, compare_constant, copy_constant,
696         force_const_mem, compute_reloc_for_constant, output_constant,
697         output_addressed_constants, initializer_constant_valid_p): Likewise.
698
699 2004-03-14  Kelley Cook  <kcook@gcc.gnu.org>
700
701         * doc/install.texi: Make autoconf 2.13 the exception, not the rule.
702
703 2004-03-14  Andreas Tobler  <a.tobler@schweiz.ch>
704
705         * doc/install.texi: Reflect autoconf and automake version for
706         libffi. Update autoconf version to 2.59.
707
708 2004-03-13  Roger Sayle  <roger@eyesopen.com>
709
710         * fold-const.c (negate_expr, operand_equal_for_comparison_p,
711         optimize_bit_field_compare, decode_field_reference, all_ones_mask_p,
712         make_range, build_range_check, fold_range_test, unextend,
713         constant_boolean_node, fold_binary_op_with_conditional_arg,
714         fold_truthop, fold_mathfn_compare, fold_inf_compare,
715         fold_single_bit_test, fold): Replace calls via (*lang_hooks.foo) ()
716         with lang_hooks.foo ().
717
718 2004-03-14  Richard Earnshaw  <rearnsha@arm.com>
719
720         * arm.h (EXTRA_CONSTRAINT_STR_ARM): Update comment.
721
722 2004-03-13  Dara Hazeghi  <dhazeghi@yahoo.com>
723
724         * doc/install.texi: Note status of -fnew-ra.
725
726 2004-03-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
727
728         PR middle-end/14470
729         * expr.c (store_expr): Call emit_queue before generating the move
730         from the temporary to the original target.  Protect the temporary
731         from emit_queue.
732
733 2004-03-13  Jakub Jelinek  <jakub@redhat.com>
734
735         PR target/14533
736         * config/s390/s390.c (legitimize_pic_address): Don't abort on UNSPEC
737         other than UNSPEC_GOTOFF.
738
739 2004-03-13  Richard Earnshaw  <rearnsha@arm.com>
740
741         * arm.c (arm_legitimate_address_p): New argument, OUTER.  Pass through
742         to arm_legitimate_index_p.  Update all callers with SET as default
743         value.
744         (arm_legitimate_index_p): New argument, OUTER.  Restrict the index
745         range if OUTER is a sign-extend operation on QImode.  Correctly
746         reject shift operations on sign-extended QImode addresses.
747         (bad_signed_byte_operand): Delete.
748         (arm_extendqisi_mem_op): New function.
749         * arm.h (EXTRA_CONSTRAINT_ARM): Delete.  Replace with...
750         (EXTRA_CONSTRAINT_STR_ARM): ... this.  Handle extended address
751         constraints.
752         (CONSTRAINT_LEN): New.
753         (EXTRA_CONSTRAINT): Delete.  Replace with...
754         (EXTRA_CONSTRAINT_STR): ... this.
755         (PREDICATE_CODES): Remove bad_signed_byte_operand.
756         * arm.md (extendqihi_insn): Use new constraint Uq.  Rework.  Length
757         is now always default.
758         (define_splits for bad sign-extend loads): Delete.
759         (arm_extendqisi, arm_extendqisi_v5): Likewise.
760         * arm/vfp.md (arm_movsi_vfp, arm_movdi_vfp, movsf_vfp, movdf_vfp):
761         Rework 'U' constraint to 'Uv'.
762         * arm-protos.h: Remove bad_signed_byte_operand.  Add
763         arm_extendqisi_mem_op.
764         * doc/md.texi (ARM constraints): Rename VFP constraint (now Uv).
765         Add Uq constraint.
766
767 2004-03-13  Alan Modra  <amodra@bigpond.net.au>
768
769         * config/rs6000/rs6000.c (rs6000_va_arg): Replace SPLIT_COMPLEX_ARGS
770         with targetm version.
771
772         PR target/14567
773         * config/rs6000/rs6000.h (UNITS_PER_ARG, RS6000_ARG_SIZE): Delete.
774         (HARD_REGNO_MODE_OK): Disallow TFmode for fp31.
775         * config/rs6000/rs6000.c (rs6000_arg_size): New function.
776         Update all users of RS6000_ARG_SIZE.
777         (function_arg_advance): Count fregno using mode size.
778         (function_arg): Handle long double split over regs and memory.
779         (function_arg_partial_nregs): Likewise.
780         (rs6000_va_arg): Repackage complex args.
781
782 2004-03-13  Dean Ferreyra <dferreyra@igc.org>
783
784         PR target/14047
785         * config/avr/avr.c (avr_progmem_p): Add "attributes" parameter.
786         (avr_insert_attributes): Pass "attributes" to avr_progmem_p.
787         * config/avr/avr-protos.h (avr_progmem_p): Change prototype.
788
789 2004-03-12  Jakub Jelinek  <jakub@redhat.com>
790
791         * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Add
792         prototype.
793         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): New.
794         * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Define.
795
796 2003-03-12  Andrew Pinski  <apinski@apple.com>
797
798         * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
799         Use ret instead of result. Use addr instead of base.
800
801 2004-03-12  David Edelsohn  <edelsohn@gnu.org>
802
803         * doc/install.texi (*-ibm-aix*): Document assembler and achiver
804         fixes required by libstdc++ and update installation instructions
805         for libstdc++.a.
806
807 2004-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
808
809         * config/i386/winnt.c (i386_pe_strip_name_encoding_full): Strip
810         leading '@' on fastcall symbols before stripping suffix.
811
812 2004-03-12  Roger Sayle  <roger@eyesopen.com>
813
814         * combine.c (unmentioned_reg_p): New function to check whether an
815         expression is a "specialization" of another, i.e. that there are
816         no registers or memory references mentioned in the first that don't
817         appear in the second.
818         (unmentioned_reg_p_1): New helper subroutine of unmentioned_reg_p.
819         (combine_instructions): Also try combining instructions using the
820         REG_EQUAL note from a preceding log-linked instruction.
821
822 2004-03-12  Roger Sayle  <roger@eyesopen.com>
823
824         * config/i386/i386.c (ix86_split_ashrdi): Optimize shift by 63.
825
826 2004-03-12  Matt Austern  <austern@apple.com>
827
828         * target.h (struct gcc_target): New target hook, unwind_label.
829         * target-def.h (TARGET_ASM_EMIT_UNWIND_LABEL): New hook.
830         * output.h (default_emit_unwind_label): New function.
831         * default.h (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): New macro.
832         (TARGET_USES_WEAK_UNWIND_INFO): New target macro.
833         (TARGET_SUPPORTS_HIDDEN): New target macro.
834         * dwarf2out.c (struct dw_fde_struct): Add field for function decl
835         that corresponds to this FDE.
836         (FRAME_BEGIN_LABEL): Allow target to override default label.
837         (output_call_frame_info): If FDEs are linknonce, then use extra
838         indirection for FDE encoding, output a label for each FDE, and
839         output an empty label for each function without an FDE.
840         (dwarf2out_begin_prologue): Set up decl field when creating an FDE.
841         * varasm.c (globalize_decl): Call ASM_MAKE_LABEL_LINKONCE for
842         decls with DECL_ONE_ONLY set, if that macro is defined.
843         (make_decl_one_only): Don't use DECL_COMMON if we're compiling
844         for a SUPPORTS_ONE_ONLY target.
845         * config/darwin-protos.h (darwin_unique_section): Declare.
846         (darwin_asm_named_section): Likewise.
847         (darwin_section_type_flags): Likewise.
848         (darwin_non_lazy_pcrel): Likewise.
849         (darwin_emit_unwind_label): Likewise.
850         (darwin_make_decl_one_only): Likewise.
851         * config/darwin.c (machopic_finish): Get rid of tweak that
852         eliminate stubs for symbols that are defined.
853         (darwin_encode_section_info): Don't treat weak functions as defined.
854         (darwin_make_decl_one_only): Define.
855         (darwin_asm_named_section): Likewise.
856         (darwin_section_type_flags): Likewise.
857         (darwin_unique_section): Likewise.
858         (darwin_emit_unwind_label): Likewise.
859         (darwin_non_lazy_pcrel): Likewise.
860         (darwin_asm_output_dwarf_delta): Difference between two labels is
861         local only if both labels are local.
862         * config/darwin.h (MAKE_DECL_ONE_ONLY): Define.
863         (ASM_MAKE_LABEL_LINKONCE): Likewise.
864         (TARGET_SUPPORTS_HIDDEN): Likewise.
865         (TARGET_USES_WEAK_UNWIND_INFO): Likewise.
866         (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): Likewise.
867         (FRAME_BEGIN_LABEL): Likewise.
868         (ASM_DECLARE_OBJECT_NAME): Make references to weak symbols indirect.
869         (ASM_DECLARE_FUNCTION_NAME): Likewise.
870         (darwin_eh_frame_section): Give __eh_frame section the coalesced flag.
871         (TARGET_ASM_UNIQUE_SECTION): Define.
872         (EH_FRAME_SECTION_NAME): Define.
873         (EH_FRAME_SECTION_ATTR): Likewise.
874         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
875         (TARGET_ASM_NAMED_SECTION): Likewise.
876         (TARGET_SECTION_TYPE_FLAGS): Likewise.
877         * doc/tm.texi: Document TARGET_USES_WEAK_UNWIND_INFO,
878         TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, TARGET_SUPPORTS_HIDDEN,
879         TARGET_ASM_EMIT_UNWIND_LABEL.
880
881 2004-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
882
883         * builtins.c (expand_builtin_mathfn): Add pow10* to the
884         existing exp10* case.
885         (expand_builtin): Likewise.
886
887 2004-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
888
889         * doc/tm.texi (registers) <Values in Registers>: Add
890         entry for REGMODE_NATURAL_SIZE.
891
892 2004-03-12  Richard Henderson  <rth@redhat.com>
893
894         PR target/14547
895         * target.h (struct gcc_target): Move calls substructure before
896         booleans.  Add split_complex_arg.
897         * function.c (assign_parms, split_complex_args): Use it.
898         * calls.c (expand_call): Likewise.
899         (split_complex_values): Likewise.  Check for splittable types
900         before allocating memory.
901         (split_complex_types): Likewise.
902         * system.h (SPLIT_COMPLEX_ARGS): Poison.
903         * expr.h (SPLIT_COMPLEX_ARGS): Remove.
904         * target-def.h (TARGET_SPLIT_COMPLEX_ARG): New.
905         * config/alpha/alpha.c (alpha_split_complex_arg): New.
906         (TARGET_SPLIT_COMPLEX_ARG): New.
907         * config/alpha/alpha.h (SPLIT_COMPLEX_ARGS): Remove.
908         * config/rs6000/rs6000.c (TARGET_SPLIT_COMPLEX_ARG): New.
909         (rs6000_override_options): Zap it for non-AIX.
910         (rs6000_function_value): Use targetm.calls.split_complex_arg.
911         * config/rs6000/rs6000.h (SPLIT_COMPLEX_ARGS): Remove.
912         * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): New.
913         * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Remove.
914         * doc/tm.texi (TARGET_SPLIT_COMPLEX_ARG): Modify from old
915         SPLIT_COMPLEX_ARGS entry.
916
917 2004-03-11  Richard Henderson  <rth@redhat.com>
918
919         * config/alpha/alpha.c (xfloating_ops, vax_cvt_ops): New.
920         (alpha_lookup_xfloating_lib_func): Use them, return rtx.
921         (alpha_emit_xfloating_arith): Update to match.
922         (alpha_emit_xfloating_compare): Likewise.
923         (alpha_emit_xfloating_cvt): Likewise.
924         (alpha_emit_xfloating_libcall): Take already built symbol,
925         mark call const.
926         * config/alpha/alpha.md (extendsftf2, extenddftf2): Take
927         op1 in a register.
928
929 2004-03-11  Richard Henderson  <rth@redhat.com>
930
931         PR target/14539
932         * config/alpha/alpha.h (STACK_BOUNDARY): Set to 128.
933
934         * simplify-rtx.c (simplify_relational_operation): Fix typo.
935
936 2004-03-11  Richard Henderson  <rth@redhat.com>
937
938         PR middle-end/14477
939         * except.c (remove_unreachable_regions): Look thru CALL_PLACEHOLDER.
940
941 2004-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
942
943         PR target/14262
944         * calls.c (load_register_parameters): If BLOCK_REG_PADDING is not
945         defined, pass small BLKmode values in registers in the low-order part.
946
947 2004-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
948
949         * combine.c (if_then_else_cond): Check for NULL return value of
950         simplify_gen_subreg.
951
952 2004-03-11  Richard Sandiford  <rsandifo@redhat.com>
953
954         PR target/14496
955         * config/mips/mips.h (UNITS_PER_FPVALUE): Fix value for
956         TARGET_SINGLE_FLOAT.
957
958 2004-03-11  Steve Ellcey  <sje@cup.hp.com>
959
960         * config/ia64/hpux.h (TARGET_INIT_LIBFUNCS): Add undef.
961         * config/ia64/ia64.h (TARGET_INIT_LIBFUNCS): Add define.
962         * config/ia64/ia64.c (ia64_init_libfuncs): New.
963         (ia64_hpux_init_libfuncs): Add call to ia64_init_libfuncs.
964
965 2004-03-11  Roger Sayle  <roger@eyesopen.com>
966
967         * fold-const.c (negate_expr_p) <RSHIFT_EXPR>: We can optimize
968         -((int)X>>C) where C is an integer constant one bit less than the
969         size of X into (unsigned)X>>C.  Similarly for unsigned->signed.
970         (negate_expr) <RSHIFT_EXPR>: Implement the above transformations.
971
972         * simplify-rtx.c (simplify_unary_operation): Also implement the
973         above transformations at the RTL level.
974
975 2004-03-11  Alan Modra  <amodra@bigpond.net.au>
976
977         * real.c (encode_ibm_extended): Do round low word.
978
979 2004-03-11  Ben Elliston  <bje@wasabisystems.com>
980
981         * config/arm/arm.md (is_xscale): Comment this attribute and move
982         it a bit further up in the file, closer to related attributes.
983
984 2004-03-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
985
986         * config/host-solaris.c (sol_gt_pch_use_address): Add
987         missing terminating marker to comment.
988
989 2004-03-11  Richard Sandiford  <rsandifo@redhat.com>
990
991         * config/mips/mips.md: Use move_operand in splitters for 64-bit moves.
992         (movdi, movsi, movhi, movqi, movsf, movdf): Remove predicates.
993         (*movdi_32bit_mips16, *movsi_mips16, *movhi_mips16, *movqi_mips16)
994         (*movsf_mips16, *movdf_mips16):  Name unnamed patterns.  Use
995         move_operand as source predicate in all cases.
996         (*movdi_32bit): Renamed from movdi_internal.  Remove 'F' constraint.
997         Test reg_or_0_operand.  Use move_operand as source predicate.
998         (*movdi_64bit): Renamed from movdi_internal2.  Test reg_or_0_operand.
999         (*movdi_64bit_mips16): Renamed from movdi_internal2_mips16.
1000         (*movsi_internal): Renamed from movsi_internal.  Test reg_or_0_operand.
1001         (movhi, movqi, movsf, movdf): Use mips_legitimize_move.
1002         (*movhi_internal): Renamed from movhi_internal.  Test reg_or_0_operand.
1003         Use move_operand as source predicate.  Remove 'K' constraint.
1004         (*movqi_internal): Likewise movqi_internal.
1005         (*movsf_hardfloat): Renamed from movsf_internal1.  Test
1006         reg_or_0_operand.  Use move_operand as source predicate.
1007         (*movsf_softfloat): Likewise movsf_internal2.
1008         (*movdf_hardfloat_64bit): Likewise movsf_internal1a.
1009         (*movdf_hardfloat_32bit): Likewise movsf_internal1b.
1010         (*movdf_softfloat): Likewise movdf_internal2.
1011         * config/mips/mips.c (move_operand): Match arbitrary CONST_INTs
1012         for DImode if !TARGET_64BIT.
1013         (mips_legitimize_move): Simplify accordingly.
1014
1015 2004-03-11  Josef Zlomek  <zlomekj@suse.cz>
1016
1017         PR/14362
1018         * var-tracking.c (struct variable_def): Added field refcount.
1019         (variable_htab_free): Decrease the refcount and delete variable
1020         only if there are no more references.
1021         (unshare_variable): New function.
1022         (vars_copy_1): Increase refcount instead of copying the variable.
1023         (variable_union): Share the variables where possible, unshare
1024         the variables if needed.
1025         (variable_different_p): Return false if var1 and var2 are
1026         the same structure.
1027         (variable_was_changed): Init the refcount of new variable.
1028         (set_frame_base_location): Unshare variable if needed.
1029         (set_variable_part): Init the refcount of new variable.
1030         Unshare the variables if needed.
1031         (delete_variable_part): Unshare the variables if needed.
1032         (emit_notes_for_differences_1): Init the refcount of new variable.
1033         (vt_add_function_parameters): Do not add function parameters to
1034         IN set of ENTRY_BLOCK_PTR because it is unused anyway.
1035         (vt_initialize): Do not add frame_base_decl to IN set of
1036         ENTRY_BLOCK_PTR because it is unused anyway.
1037
1038 2004-03-11  Josef Zlomek  <zlomekj@suse.cz>
1039
1040         * var-tracking.c (vars_copy_1): Cleanup and speedup chain operations.
1041         (vars_copy): Likewise.
1042         (variable_union): Likewise.
1043         (set_variable_part): Likewise.
1044         (delete_variable_part): Likewise.
1045
1046 2004-03-11  Kazu Hirata  <kazu@cs.umass.edu>
1047
1048         * c-typeck.c, combine.c, cse.c, dominance.c, et-forest.h,
1049         ggc-page.c, var-tracking.c, config/fp-bit.c, config/c4x/c4x.c,
1050         config/cris/cris.c, config/i386/ppro.md, config/i860/i860.c,
1051         config/i860/i860.h, config/m32r/m32r.h, config/m32r/xm-m32r.h,
1052         config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
1053         config/mips/mips.c, config/mmix/mmix.c, config/ns32k/ns32k.h,
1054         config/pa/pa.c, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
1055         config/pdp11/pdp11.h, config/rs6000/rs6000.c,
1056         config/stormy16/stormy16.c: Fix comment typos and formatting.
1057
1058 2004-03-11  Nathanael Nerode  <neroden@gcc.gnu.org>
1059
1060         * configure: Regenerate, since I forgot to while committing Paolo's
1061         changes.
1062
1063 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
1064
1065         PR ada/14131
1066         Move language detection to the top level.
1067         * configure.ac: Remove code to detect languages,
1068         it now lives exclusively in the top level.
1069         * aclocal.m4 (gcc_AC_PROG_GNAT): Moved to the
1070         top level, renamed to ACX_PROG_GNAT.
1071
1072 2004-03-10  Richard Henderson  <rth@redhat.com>
1073
1074         * c-pch.c (c_common_no_more_pch): Update for gt_pch_use_address
1075         extra arguments.
1076         * config.host (*-*-solaris2*, *-*-linux*): Add out_host_hook_obj
1077         and host_xmake_file fragments.
1078         * ggc-common.c (gt_pch_save): Update for gt_pch_get_address change.
1079         (gt_pch_restore): Similarly for gt_pch_use_address.
1080         (default_gt_pch_get_address): New.
1081         (mmap_gt_pch_get_address): Split out of gt_pch_save.
1082         (default_gt_pch_use_address): Split out of gt_pch_restore.
1083         (mmap_gt_pch_use_address): Likewise.
1084         * hooks.c (hook_voidp_size_t_null): Remove.
1085         (hook_bool_voidp_size_t_false): Remove.
1086         * hooks.h: Likewise.
1087         * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): Use one of the
1088         default_ or mmap_ definitions.
1089         (HOST_HOOKS_GT_PCH_USE_ADDRESS): Likewise.
1090         * hosthooks.h (struct host_hooks): Update gt_pch_get_address
1091         and gt_pch_use_address.
1092         * config/host-linux.c, config/host-solaris.c: New files.
1093         * config/x-linux, config/x-solaris: New files.
1094         * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_get_address):
1095         Update for changed definition.
1096         (darwin_rs6000_gt_pch_use_address): Likewise.
1097         * doc/hostconfig.texi: Update docs.
1098
1099 2004-03-10  Richard Henderson  <rth@redhat.com>
1100
1101         PR c/14517
1102         * c-decl.c (grokdeclarator): Don't warn for duplicate qualifiers
1103         except for pedantic c90 mode.
1104
1105 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
1106
1107         * configure.ac: Bump AC_PREREQ to 2.59.
1108         * configure: Regenerate.
1109
1110 2004-03-10  Uros Bizjak  <uros@kss-loka.si>
1111
1112         * optabs.h (enum optab_index): Add new OTI_exp10 and OTI_exp2.
1113         (exp10_optab, exp2_optab): Define corresponding macros.
1114         * optabs.c (init_optabs): Initialize exp10_optab and exp2_optab.
1115         * genopinit.c (optabs): Implement exp10_optab and exp2_optab
1116         using exp10?f2 and exp2?f2 patterns.
1117         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP10{,F,L}
1118         using exp10_optab, and BUILT_IN_EXP2{,F,L} using exp2_optab.
1119         (expand_builtin): Expand BUILT_IN_EXP10{,F,L} and BUILT_IN_EXP2{,F,L}
1120         using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
1121
1122         * config/i386/i386.md (exp10sf2, exp10df2, exp10xf2, exp2sf2,
1123         exp2df2, exp2xf2): New patterns to implement exp10, exp10f, exp10l,
1124         exp2, exp2f and exp2l built-ins as inline x87 intrinsics.
1125
1126 2004-03-10  Anthony Green  <green@redhat.com>
1127
1128         * doc/invoke.texi (ARM Options): Fix -mpfu typo.
1129
1130 2004-03-10  David Edelsohn  <edelsohn@gnu.org>
1131
1132         * config/rs6000/aix.h (TARGET_OS_CPP_BUILTINS): Rename to ...
1133         (TARGET_OS_AIX_CPP_BUILTINS): this.  Conditionally define
1134         __LONGDOUBLE128.
1135         * config/rs6000/aix41.h (TARGET_OS_CPP_BUILTINS): Use
1136         TARGET_OS_AIX_CPP_BUILTINS.
1137         * config/rs6000/aix43.h (TARGET_OS_CPP_BUILTINS): Same.
1138         * config/rs6000/aix51.h (TARGET_OS_CPP_BUILTINS): Same.
1139         * config/rs6000/aix52.h (TARGET_OS_CPP_BUILTINS): Same.
1140         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Revert
1141         previous change.
1142
1143 2004-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1144
1145         * fold-const.c (tree_expr_nonnegative_p): Add more builtin cases.
1146
1147 2004-03-10  David Edelsohn  <edelsohn@gnu.org>
1148
1149         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
1150         __LONGDOUBLE128 on AIX.
1151
1152 2004-03-10  Andrew Haley  <aph@redhat.com>
1153
1154         PR optimization/14381
1155         * function.c (expand_function_end): Emit a blockage insn before
1156         the epilogue when -fnon-call-exceptions is used.
1157
1158         * except.c (expand_start_all_catch): Make comment more accurate.
1159
1160 2004-03-08  Joel Sherrill  <joel@oarcorp.com>
1161
1162         PR target/14480
1163         * config/rs6000/t-rtems: Add missing file on branch.
1164
1165 2004-03-10  Ulrich Weigand  <uweigand@de.ibm.com>
1166
1167         * dbxout.c (dbxout_symbol_location): Do not output references
1168         to optimized-out constant pool symbols.
1169
1170 2004-03-10  Andreas Schwab  <schwab@suse.de>
1171
1172         * config/ia64/ia64.md (divsi3, udivsi3): Remove unused variable
1173         twon34_r.
1174
1175 2004-03-09  James E Wilson  <wilson@specifixinc.com>
1176
1177         * alias.c (alias_sets_might_conflict_p): New.
1178         * c-typeck.c (build_c_cast): Call it if warn_strict_aliasing > 1.
1179         * common.opt (Wstrict-aliasing=): New.
1180         * flags.h (warn_strict_aliasing): Change type to int.
1181         * opts.c (warn_strict_aliasing): Change type to int.
1182         (common_handle_option): Handle OPT_Wstrict_aliasing_.
1183         * tree.h (alias_sets_might_conflict_p): Declare it.
1184         * doc/invoke.tex (-Wstrict-aliasing=2): Document it.
1185
1186 2004-03-10  Roman Zippel  <zippel@linux-m68k.org>
1187
1188         PR bootstrap/12371
1189         * config/m68k/m68k.h (FIXED_REGISTERS): Add arg pointer.
1190         (CALL_USED_REGISTERS): Likewise.
1191         (REG_CLASS_CONTENTS): Likewise.
1192         (REG_ALLOC_ORDER): New.
1193         (REGNO_REG_CLASS): Use regno_reg_class.
1194         * config/m68k/m68k.c: Add regno_reg_class array.
1195
1196 2004-03-09  Steve Ellcey  <sje@cup.hp.com>
1197
1198         * config/ia64/ia64.md (divsi3): Fix algorithm.
1199           (udivsi3): Ditto.
1200           (setf_exp_xf): Remove '*' from name.
1201         * testsuite/gcc.dg/20040309-1.c: New test.
1202
1203 2004-03-09  Ian Lance Taylor  <ian@wasabisystems.com>
1204
1205         * system.h (SUNOS4_SHARED_LIBRARIES): Poison.
1206         * collect2.c: Remove SUNOS4_SHARED_LIBRARIES code.
1207         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): Don't define.
1208         * config/sparc/sparc.c (sparc_aout_select_section): Remove.
1209         (sparc_aout_select_rtx_section): Don't check
1210         SUNOS4_SHARED_LIBRARIES.
1211         * config/sparc/sparc.h (SUNOS4_SHARED_LIBRARIES): Don't define.
1212
1213 2004-03-10  Hans-Peter Nilsson  <hp@axis.com>
1214
1215         PR other/14474
1216         * doc/md.texi (Pattern Ordering, Dependent Patterns)
1217         (Jump Patterns, Looping Patterns): Wrap in separate "@ifset
1218         INTERNALS".
1219
1220 2004-03-09  Zack Weinberg  <zack@codesourcery.com>
1221
1222         * config/ia64/hpux.h (MULTILIB_DEFAULTS): Define.
1223         (LIBGCC_SPEC): Update to match.
1224
1225 2004-03-09  Zack Weinberg  <zack@codesourcery.com>
1226
1227         * c-decl.c (last_function_parms, last_function_parm_tags)
1228         (last_function_parm_others, current_function_parms)
1229         (current_function_parm_tags, current_function_parm_others):
1230         Delete.
1231         (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES, ARG_INFO_OTHERS):
1232         New macros.
1233         (grokdeclarator): For function definitions, save the arg-info
1234         block from the declarator in DECL_ARGUMENTS.
1235         (grokparms): Do not write to last_function_parm*.  Use ARG_INFO_*
1236         macros to operate on arg-info block.  Can assume ARG_INFO_PARMS
1237         contains only PARM_DECLs.  Improve diagnostics.
1238         (get_parm_info): Use ARG_INFO_* macros.  Improve comments and
1239         diagnostics.  Disable some expensive checks if not ENABLE_CHECKING.
1240         (store_parm_decls_newstyle): Take the function to operate on,
1241         and an arg-info block, as arguments; don't get anything from
1242         current_function_* globals.
1243         (store_parm_decls_oldstyle): Likewise.
1244         (store_parm_decls): Pass fndecl and its arg-info block down to
1245         store_parm_decls_newstyle/oldstyle.  Send functions with empty
1246         argument lists through store_parm_decls_newstyle to reduce
1247         overhead.
1248         (pushdecl): Comment on the problems with the call to copy_node.
1249         Clear DECL_ARGUMENTS of the old node after copying it, if it
1250         is an arg-info block instead of a chain of decls.
1251         (start_function): Do not manipulate current_function_parm* or
1252         last_function_parm*.
1253
1254 2004-03-09  Roger Sayle  <roger@eyesopen.com>
1255             Andrew Pinski  <pinskia@physics.uc.edu>
1256
1257         * ifcvt.c (noce_try_sign_mask): New function to transform
1258         "x = (y < 0) ? z : 0" into the equivalent "x = (y >> C) & z".
1259         (noce_process_if_block): Call noce_try_sign_mask.
1260
1261 2004-03-09  Andrew Pinski  <apinski@apple.com>
1262
1263         * c-typeck.c (tagged_types_tu_compatible_p):
1264         Fix typo.
1265
1266 2004-03-09  Roger Sayle  <roger@eyesopen.com>
1267
1268         * simplify-rtx.c (simplify_const_relational_operation): New function
1269         renamed from simplify_relational_operation.
1270         (simplify_relational_operation): Change prototype to accept an
1271         additional mode argument.  Call simplify_const_relational_operation.
1272         (simplify_gen_relational): Update simplify_relational_operation call.
1273         (simplify_ternary_operation): Update simplify_relational_operation
1274         subroutine call to use simplify_const_relational_operation instead.
1275
1276         * rtl.h (simplify_const_relational_operation): Prototype here.
1277         (simplify_relational_operation): Add addtional mode argument.
1278
1279         * combine.c (combine_simplify_rtx): Update calls to
1280         simplify_relational_operation.
1281         (simplify_set): Likewise.
1282         (gen_binary): Likewise.
1283         * cse.c (fold_rtx): Likewise.
1284         * dojump.c (compare_from_rtx): Likewise.
1285         (do_compare_rtx_and_jump): Likewise.
1286         * integrate.c (subst_constants): Likewise.
1287         * unroll.c (simplify_cmp_and_jump_insns): Likewise.
1288
1289 2004-03-09  Kazu Hirata  <kazu@cs.umass.edu>
1290
1291         * config/m32r/m32r.md: Remove all define_peephole's.
1292
1293 2004-03-09  Alan Modra  <amodra@bigpond.net.au>
1294
1295         * config/rs6000/rs6000.md: Remove trailing whitespace.
1296
1297 2004-03-08  Eric Christopher  <echristo@redhat.com>
1298
1299         * Makefile.in (site.exp): Add libiconv variable definition.
1300
1301 2004-03-09  Hans-Peter Nilsson  <hp@axis.com>
1302
1303         * configure: Regenerate for config/accross.m4 correction.
1304
1305 2004-03-08  Joel Sherrill  <joel@oarcorp.com>
1306
1307         PR target/14480
1308         * config/rs6000/t-rtems: Add missing file on branch.
1309
1310 2004-03-08  Roger Sayle  <roger@eyesopen.com>
1311
1312         PR middle-end/14289
1313         * c-typeck.c (c_mark_addressable): A register variable should
1314         be considered global if its not automatic, i.e. TREE_PUBLIC,
1315         TREE_STATIC or DECL_EXTERNAL.
1316         * function.c (put_var_into_stack): Call abort when placing a
1317         hard register into the stack, if x_parm_reg_stack_loc is NULL.
1318
1319 2004-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
1320
1321         * config/s390/s390.md ("*extendqidi2_short_displ"): Add CC clobber.
1322         ("*extendqisi2_short_displ"): Likewise.
1323
1324 2004-03-08  Kazu Hirata  <kazu@cs.umass.edu>
1325
1326         * config/pdp11/pdp11.c (comparison_operator_index): Remove.
1327         (comp_operator): Likewise.
1328         * config/pdp11/pdp11-protos.h: Remove corresponding
1329         prototypes.
1330
1331 2004-03-08  Eric Botcazou  <ebotcazou@act-europe.fr>
1332
1333         * expr.c (highest_pow2_factor_for_type): Rename into
1334         highest_pow2_factor_for_target.  Use DECL_ALIGN instead of
1335         TYPE_ALIGN when the target is a COMPONENT_REF.
1336         (expand_assignment): Ajust call to highest_pow2_factor_for_type.
1337
1338 2004-03-08  Alan Modra  <amodra@bigpond.net.au>
1339
1340         * config/rs6000/rs6000.c: Formatting fix.
1341         (legitimate_offset_address_p): Correct offset range check.
1342
1343         * config/rs6000/rs6000.c (rs6000_override_options): Don't override
1344         -msoft-float by -mcpu.  Consolidate similar code for MASK_MULTIPLE
1345         and MASK_STRING.
1346
1347 2004-03-07  Aldy Hernandez  <aldyh@redhat.com>
1348
1349         * config/rs6000/rs6000.md (ashrdi3): Do not call ashrdi3_no_power
1350         for little endian.
1351         ("ashrdi3_no_power"): Disable for little endian.
1352         (ashrdi3): Same.
1353
1354 2004-03-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1355
1356         * fold-const.c (tree_expr_nonnegative_p): Reformat checks for
1357         builtins.
1358
1359 2004-03-08  Hans-Peter Nilsson  <hp@axis.com>
1360
1361         PR target/14471
1362         * configure.ac (Target-specific assembler checks) <cris-*-*>: New
1363         case, checking for -no-mul-bug-abort option.
1364         * configure, config.in: Regenerate.
1365         * doc/invoke.texi (CRIS Options): Document -mmul-bug-workaround
1366         and -mno-mul-bug-workaround.
1367         * config/cris/cris.md ("smulsi3_highpart", "umulsi3_highpart")
1368         ("mulsidi3", "umulsidi3"): Prefix output template with "%!".
1369         ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3"):
1370         Ditto.  Make attribute "slottable" dependent on TARGET_MUL_BUG.
1371         * config/cris/mulsi3.asm (__Mul) [__CRIS_arch_version >= 10]: Make
1372         sure mulu.d is not last on cache-line.
1373         * config/cris/cris.h (ASM_SPEC): Translate -mno-mul-bug-workaround
1374         into -no-mul-bug-abort depending on HAVE_AS_MUL_BUG_ABORT_OPTION.
1375         (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG): New macros.
1376         (TARGET_SWITCHES): New options -mmul-bug-workaround and
1377         -mno-mul-bug-workaround.
1378         (TARGET_DEFAULT): Include TARGET_MASK_MUL_BUG.
1379         (PRINT_OPERAND_PUNCT_VALID_P): Include '!'.
1380         * config/cris/cris.c (cris_operand_extend_operator): Clarify
1381         relation to MULT in head comment.
1382         (cris_op_str): Abort for MULT.
1383         (cris_print_operand) <case '!'>: New case.
1384
1385 2004-03-08  Alan Modra  <amodra@bigpond.net.au>
1386
1387         PR debug/11983
1388         * dwarf2out.c (enum dw_val_class): Rename dw_val_class_float to
1389         dw_val_class_vec.  Replace use throughout file.
1390         (dw_float_const): Delete.
1391         (dw_vec_const): New.
1392         (dw_val_struct_union): Rename val_float to val_vec.  Replace use
1393         throughout file.
1394         (add_AT_vec): Rename from add_AT_float.  Add elt_size param.
1395         (same_dw_val_p): Adjust vec comparison.  Use memcmp.
1396         (size_of_die): Adjust dw_val_class_vec sizing.
1397         (output_die): Output dw_val_class_vec.
1398         (insert_int, extract_int, insert_float): New functions.
1399         (add_const_value_attribute): Use insert_float for CONST_DOUBLE.
1400         Handle CONST_VECTOR.
1401         (add_location_or_const_value_attribute): Handle CONST_VECTOR.
1402
1403 2004-03-07  Aldy Hernandez  <aldyh@redhat.com>
1404
1405         * config/rs6000/rs6000.c (rs6000_parse_abi_options): SPE and
1406         AltiVec abi cannot co-exist.
1407
1408         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Same.
1409
1410 2004-03-07  Jan Hubicka  <jh@suse.cz>
1411
1412         * except.c (emit_to_new_bb_before):  Break fallthru edges.
1413
1414 2004-03-07  Stephane Carrez  <stcarrez@nerim.fr>
1415
1416         * config/m68hc11/m68hc11.md ("*lshrsi3_const"): Disable for 68HC12.
1417         ("*lshrsi3"): Also accept an immediate for 68HC12.
1418         ("*ashrsi3_const"): Likewise.
1419         ("*ashrsi3"): Likewise.
1420         ("*ashlsi3_const"): Likewise.
1421         ("*ashlsi3"): Likewise.
1422         ("cmphi_1_hc12"): Compare two hard register by pushing them and
1423         comparing with a pop; don't use a split for that.
1424         ("cmphi split"): Disable compare split for 68HC12.
1425
1426         * config/m68hc11/m68hc11.c (m68hc11_notice_update_cc): Invalidate
1427         the status operands if they have side effects.
1428
1429 2004-03-07  Kazu Hirata  <kazu@cs.umass.edu>
1430
1431         * defaults.h (LEGITIMIZE_ADDRESS): Provide a default
1432         definition.
1433         * config/arc/arc.h, config/fr30/fr30.h, config/frv/frv.h,
1434         config/h8300/h8300.h, config/ia64/ia64.h,
1435         config/mcore/mcore.h, config/mmix/mmix.h,
1436         config/ns32k/ns32k.h, config/pdp11/pdp11.h,
1437         config/stormy16/stormy16.h, config/v850/v850.h,
1438         config/vax/vax.h (LEGITIMIZE_ADDRESS): Remove.
1439         * doc/tm.texi (LEGITIMIZE_ADDRESS): Mention the default
1440         definition.
1441
1442 2004-03-07  Roger Sayle  <roger@eyesopen.com>
1443
1444         * fold-const.c (fold) <IOR_EXPR>: Fold x | x as x.
1445         <XOR_EXPR>: Fold x ^ x as zero.
1446         <AND_EXPR>: Fold x & x as x.
1447
1448 2004-03-07  Roger Sayle  <roger@eyesopen.com>
1449
1450         * fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform
1451         "foo++ == const" into "++foo == const+incr".
1452
1453 2004-03-07  Richard Sandiford  <rsandifo@redhat.com>
1454
1455         * config/mips/mips.c (mips_in_small_data_p): Return false if
1456         TARGET_ABICALLS.
1457
1458 2004-03-06  Stephane Carrez  <stcarrez@nerim.fr>
1459
1460         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push
1461         the stack register.
1462         (expand_prologue): Don't make an interrupt or a trap handler a far
1463         symbol.
1464         (m68hc11_initial_elimination_offset): Likewise.
1465
1466 2004-03-06  Richard Henderson  <rth@redhat.com>
1467
1468         * config/alpha/alpha.c (alpha_in_small_data_p): False for functions.
1469
1470 2004-03-06  Kazu Hirata  <kazu@cs.umass.edu>
1471
1472         * config/ns32k/ns32k-protos.h: Add a prototype for
1473         ns32k_notice_update_cc.
1474         * config/ns32k/ns32k.c (ns32k_notice_update_cc): New.
1475         * config/ns32k/ns32k.h (NOTICE_UPDATE_CC): Call
1476         ns32k_notice_update_cc.
1477
1478 2004-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
1479
1480         * config/s390/s390.md ("load_multiple", "*load_multiple_di",
1481         "*load_multiple_si"): Allow only if reload_completed.
1482         ("store_multiple", "*store_multiple_di", "*store_multiple_si"):
1483         Likewise.
1484
1485 2004-03-06  Kazu Hirata  <kazu@cs.umass.edu>
1486
1487         * config/vax/vax-protos.h: Add a prototype for
1488         vax_notice_update_cc.
1489         * config/vax/vax.c (vax_notice_update_cc): New.
1490         * config/vax/vax.h (NOTICE_UPDATE_CC): Call
1491         vax_notice_update_cc.
1492
1493 2004-03-06  David Edelsohn  <edelsohn@gnu.org>
1494
1495         * collect2.c (main): Only export initfunc and finifunc if
1496         LD_INIT_SWITCH not defined.
1497         (scan_prog_file): Only export constructors and destructors if
1498         LD_INIT_SWITCH not defined.  Only export symbols not found in
1499         shared objects.
1500
1501 2004-03-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1502
1503         * pa.md (icacheflush): Reorder operands to make match_scratch operand
1504         last.
1505         * pa.h (INITIALIZE_TRAMPOLINE): Remove unnecessary scratch argument
1506         from calls to gen_icacheflush.
1507
1508 2004-03-06  Richard Henderson  <rth@redhat.com>
1509
1510         * config/alpha/alpha.h (MASK_LONG_DOUBLE_128): New.
1511         (TARGET_LONG_DOUBLE_128): New.
1512         (TARGET_SWITCHES): Add long-double-{128,64}.
1513         (TARGET_HAS_XFLOATING_LIBS): Default to TARGET_LONG_DOUBLE_128.
1514         (LONG_DOUBLE_TYPE_SIZE): Honor TARGET_LONG_DOUBLE_128.
1515         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New.
1516         (WIDEST_HARDWARE_FP_SIZE): New.
1517         (TARGET_CPU_CPP_BUILTINS): Define __LONG_DOUBLE_128__.
1518         * config/alpha/alpha.c (override_options): Clear MASK_LONG_DOUBLE_128
1519         if TARGET_VAX_FLOAT.
1520         * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): Remove.
1521         (TARGET_DEFAULT): Set MASK_LONG_DOUBLE_128.
1522
1523 2004-03-06  Richard Henderson  <rth@redhat.com>
1524
1525         * config/alpha/alpha.c (alpha_swapped_comparison_operator): Fix
1526         botched rtx class conversion.
1527
1528 2004-03-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1529
1530         * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P,
1531         BUILTIN_CBRT_P, BUILTIN_ROOT_P): New macros.
1532
1533         * builtins.c (fold_builtin_logarithm, fold_builtin): Use new
1534         macros.
1535         * fold-const.c (fold_mathfn_compare, fold): Likewise.
1536
1537 2004-03-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
1538
1539         PR target/14343
1540         * config/i386/i386.md (movv2di_internal): Conditionalize on
1541         TARGET_SSE, not TARGET_SSE2.
1542
1543 2004-03-05  Chris Demetriou  <cgd@broadcom.com>
1544
1545         * config.gcc (mips64orion-*-elf*, mips64orionel-*-elf*): Delete
1546         duplicated line.
1547
1548 2004-03-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1549
1550         * builtins.c: Consistently use logN not log* in comments.
1551
1552 2004-03-05  Andreas Krebbel  <krebbel1@de.ibm.com>
1553
1554         * rtl.h (mem_expr_equal_p): Function prototype added.
1555         * cfgcleanup.c (merge_memattrs): New function.
1556         (flow_find_cross_jump): Call merge_memattrs for matching insns.
1557         * emit-rtl.c (mem_expr_equal_p): New function.
1558
1559 2004-03-05  Ziemowit Laski  <zlaski@apple.com>
1560
1561         * objc/objc-act.c (synth_module_prologue): Const-qualify
1562         objc_selector type if using the GNU runtime; fix generated
1563         signatures for objc_msg_lookup and objc_msg_lookup_super
1564         to match what GNU ObjC headers provide; reformat and clean up.
1565         (synth_self_and_ucmd_args): Use previously constructed (and
1566         hence possibly const-qualified) objc_selector type.
1567
1568 2004-03-05  Kazu Hirata  <kazu@cs.umass.edu>
1569
1570         * doc/tm.texi (HARD_REGNO_RENAME_OK): Document.
1571
1572 2004-03-05  Jason Merrill  <jason@redhat.com>
1573
1574         * tree.h (TYPE_HASH): Use TYPE_UID.
1575         (TREE_HASH): New macro with old definition of TYPE_HASH.
1576         * tree.c (build_type_attribute_variant): Use iterative_hash_object.
1577         (build_array_type, build_function_type): Likewise.
1578         (build_method_type_directly): Likewise.
1579         (build_offset_type, build_complex_type): Likewise.
1580         (type_hash_list, attribute_hash_list): Likewise. Now static.
1581         * except.c: s/TYPE_HASH/TREE_HASH/.
1582
1583 2004-03-05  Bob Wilson  <bob.wilson@acm.org>
1584
1585         * config/xtensa/xtensa.c (function_arg): Handle 16-byte aligned args.
1586         (xtensa_va_start): Initialize __va_stk to ($arg_ptr - 32).  Adjust
1587         __va_ndx by 2 words when referencing an argument on the stack.
1588         (xtensa_va_arg): Handle 16-byte aligned args.  Adjust __va_ndx by 2
1589         words when an arg on the stack is first seen.
1590
1591 2004-03-05  Paul Brook  <paul@codesourcery.com>
1592
1593         * arm.h (ARM_FLAG_VFP): Remove.
1594         (ARM_FLAG_ATPCS, CIRRUS_FIX_INVALID_INSNS): Renumber.
1595         * netbsd-elf.h (ARM_FLAG_VFP): Remove.
1596
1597 2004-03-05  Paul Brook  <paul@codesourcery.com>
1598
1599         * function.c (assign_parms): Include pretend alignment offset.
1600
1601 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1602
1603         * stor-layout.c (layout_type, case FUNCTION_TYPE): Make size
1604         FUNCTION_BOUNDARY, not POINTER_SIZE * 2.
1605
1606 2004-03-05  Ian Lance Taylor  <ian@wasabisystems.com>
1607
1608         * configure.ac: When passing --enable-languages to subdir
1609         configure when host != build, make sure we don't pass an empty
1610         value.
1611         * configure: Regenerate.
1612
1613 2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>
1614
1615         PR 13577
1616         * gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
1617         options.
1618
1619 2004-03-05  Paolo Bonzini  <bonzini@gnu.org>
1620
1621         * simplify-rtx.c (simplify_relational_operation): If
1622         flag_wrapv is set, do not move terms between the two
1623         side of a relational operator.
1624
1625 2004-03-05  Paolo Bonzini  <bonzini@gnu.org>
1626
1627         * rtlanal.c: Include target.h and output.h
1628         (rtx_cost, address_cost, default_address_cost): Move from...
1629         * cse.c (rtx_cost, address_cost, default_address_cost):
1630         ... this file.
1631         * rtl.h (rtx_cost, address_cost): Move under rtlanal.c.
1632         * Makefile.in: Adjust dependencies.
1633
1634 2004-03-05  Paolo Bonzini <bonzini@gnu.org>
1635
1636         * cse.c (cse_end_of_basic_block): Make static.
1637         * local-alloc.c (function_invariant_p): Move to
1638         reload1.c.
1639         * loop.c (libcall_other_reg, record_excess_regs):
1640         Make static.
1641         * reload1.c (function_invariant_p): Moved here
1642         from local-alloc.c, made static.
1643         * rtl.h (cse_end_of_basic_block, function_invariant_p,
1644         libcall_other_reg, record_excess_regs): Remove
1645         declarations.
1646
1647 2004-03-05  Kazu Hirata  <kazu@cs.umass.edu>
1648
1649         * config/m32r/m32r.c (signed_comparison_operator): Add a
1650         missing parenthesis.
1651
1652 2004-03-04  Ian Lance Taylor  <ian@wasabisystems.com>
1653
1654         * ggc-common.c (gt_pch_restore): Don't unmap addr unless we are
1655         going to call mmap again.  Read the file into the right place.
1656         Give a fatal error if we have to relocate.
1657
1658 2004-03-04  Bob Wilson  <bob.wilson@acm.org>
1659
1660         * config/xtensa/xtensa.c (xtensa_return_in_msb): New function.
1661         (TARGET_RETURN_IN_MSB): Define to xtensa_return_in_msb.
1662
1663 2004-03-05  Hans-Peter Nilsson  <hp@axis.com>
1664
1665         PR other/14354
1666         * config/fp-bit.c (_fpdiv_parts): Do not round when pack_d would
1667         round the same.  When rounding, clear bits that would cause a
1668         second rounding in pack_d.
1669         (_fpmul_parts): Ditto.  Remove #if 0:d code.
1670
1671 2004-03-04  Ziemowit Laski  <zlaski@apple.com>
1672
1673         PR c++/14425, c++/14426
1674         * config/rs6000/altivec.h (vec_splat_s8, vec_splat_s16,
1675         vec_splat_s32, vec_splat_u8, vec_splat_u16, vec_splat_u32):
1676         Change C++ definitions to accept a 'const int' argument;
1677         the prototypes already do.
1678         * config/rs6000/rs6000.c (rs6000_common_init_builtins):
1679         Rename v4si_ftype_char, v8hi_ftype_char, v16qi_ftype_char,
1680         v4sf_ftype_v4si_char, v4si_ftype_v4sf_char, v4si_ftype_v4si_char,
1681         v8hi_ftype_v8hi_char, v16qi_ftype_v16qi_char,
1682         v16qi_ftype_v16qi_v16qi_char, v8hi_ftype_v8hi_v8hi_char,
1683         v4si_ftype_v4si_v4si_char and v4sf_ftype_v4sf_v4sf_char to
1684         end in ..._int; change them to accept an int instead of a char
1685         as the last parameter.
1686
1687 2004-03-04  Phil Edwards  <phil@codesourcery.com>
1688
1689         * genmultilib:  Change '=' to '-' when translating option names
1690         to directory names.
1691
1692 2004-03-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1693
1694         * expr.c (expand_expr_real, case COMPONENT_REF): Get proper type of
1695         stack slot for temp used for result of BLKmode but in integral mode.
1696
1697 2004-03-04  Jan Hubicka  <jh@suse.cz>
1698
1699         * reload.c (find_reloads): Reorganize if seqeunce to switch.
1700
1701         * cfgrtl.c (rtl_redirect_edge_and_branch):  Set the source BB as dirty.
1702         (cfglayout_redirect_edge_and_branch):  Set the source BB as dirty.
1703
1704 2004-03-04  Steve Ellcey  <sje@cup.hp.com>
1705
1706         * config/ia64/ia64.md (divdf3_internal_thr): Fix algorithm.
1707         * testsuite/gcc.dg/20040303-1.c: New test.
1708
1709 2004-03-04  Steven Bosscher  <stevenb@suse.de>
1710
1711         * ppro.md: Rewrite as a DFA pipeline description.
1712         * i386.md: Remove all uses of the ppro_uops attribute.
1713         * i386.c: (ix86_safe_ppro_uops, ix86_dump_ppro_packet,
1714         ix86_reorder_insn, ix86_sched_reorder_ppro, ix86_sched_init,
1715         ix86_sched_reorder, ix86_variable_issue,
1716         struct ix86_sched_data, TARGET_SCHED_VARIABLE_ISSUE,
1717         TARGET_SCHED_INIT, TARGET_SCHED_REORDER): Remove.
1718         (ia32_use_dfa_pipeline_interface): Add TARGET_PENTIUMPRO.
1719         (ia32_multipass_dfa_lookahead): Add TARGET_PENTIUMPRO.
1720         * athlon.md (athlon_ssecmp_load): Fix comment
1721
1722 2004-03-04  Stuart Hastings  <stuart@apple.com>
1723
1724         * gcc/doc/invoke.texi: Document -mlongcall for Darwin/PPC.
1725
1726 2004-03-04  Stuart Hastings  <stuart@apple.com>
1727
1728         * gcc/config/i386/darwin.h: Darwin/x86 doesn't support CPUs before
1729         686, tell Darwin assembler to allow prefetch insns, non-empty def
1730         of SUBTARGET_OPTION_TRANSLATE_TABLE.
1731
1732 2004-03-04  DJ Delorie  <dj@redhat.com>
1733
1734         PR optimization/14282
1735         * sched-deps.c (sched_analyze_insn): Allow a stack adjustment
1736         between a call and the assignment of its return value.
1737
1738 2004-03-04  Kazu Hirata  <kazu@cs.umass.edu>
1739
1740         * config/h8300/h8300.c: Put a comment for every function.
1741
1742 2004-03-04  Kazu Hirata  <kazu@cs.umass.edu>
1743
1744         * config/h8300/h8300.md: Add comments about peephole2's.
1745
1746 2004-03-04  Steven Bosscher  <stevenb@suse.de>
1747
1748         * i386.h (TARGET_CPU_DEFAULT_nocona): Fix value.
1749
1750 2004-03-04  Jan Hubicka  <jh@suse.cz>
1751
1752         * cfgcleanup.c (thread_jump): Update call of cselib_init.
1753         * cselib.c (cselib_record_memory): New static variable.
1754         (cselib_lookup_mem, cselib_record_set, cselib_record_sets):
1755         Give up on memories when asked for.
1756         (cselib_init): Accept new argument.
1757         * cselib.h (cselib_init): Update prototype.
1758         * gcse.c (local_cprop_pass): Update call of cselib_init.
1759         * loop.c (load_mems): Update call of cselib_init.
1760         * postreload.c (reload_cse_regs_1): Update call of cselib_init.
1761         * sched-deps.c (sched_analyze): Update call of cselib_init.
1762
1763 2004-03-04  David Edelsohn  <edelsohn@gnu.org>
1764             GP <gp@qnx.com>
1765
1766         * config/rs6000/rs6000.c (output_function_profiler): Append @plt
1767         when compiling PIC.
1768
1769 2004-03-04  Josef Zlomek  <zlomekj@suse.cz>
1770
1771         PR/14362
1772         * var-tracking.c (track_expr_p): Do not track variables which
1773         should be ignored for debugging purposes.
1774
1775 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
1776
1777         * real.c (encode_ibm_extended): Don't bother rounding low double.
1778         * c-cppbuiltin.c (builtin_define_float_constants): Tweak MAX
1779         when fmt->pnan < fmt->p.
1780
1781 2004-03-04  Eric Christopher  <echristo@redhat.com>
1782
1783         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Fix to check
1784         only range of valid arg registers and fixed_regs.
1785
1786 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
1787
1788         PR target/14406
1789         * config/rs6000/rs6000.md (abstf2, abstf2+1): Delete define_insn.
1790         (abstf2, abstf2_internal): New define_expand.
1791
1792 2004-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1793
1794         PR optimization/14235
1795         * expr.c (convert_move): Copy the source to a new pseudo
1796         when converting from a sub-word source to a larger-than-word
1797         register which conflicts with the source.
1798
1799 2004-03-03  Zack Weinberg  <zack@codesourcery.com>
1800
1801         PR 13728
1802         * c-decl.c (diagnose_mismatched_decls): Issue an error for two
1803         parameters with the same name, unless one is a forward decl.
1804         Do not issue a redundant-redeclaration warning for forward
1805         decls of parameters.
1806
1807 2004-03-04  David Edelsohn  <edelsohn@gnu.org>
1808
1809         * doc/install.texi (*-ibm-aix*): Document use of Bash to speed up
1810         configuration.
1811
1812 2004-03-03  Ian Lance Taylor  <ian@wasabisystems.com>
1813
1814         * ggc-zone.c (ggc_pch_write_object): Don't align file pointer.
1815
1816 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
1817
1818         * target-def.h (TARGET_OPTF): Delete.
1819         * c-opts.c (TARGET_OPTF): Define.
1820
1821 2004-03-04  Jan Hubicka  <jh@suse.cz>
1822
1823         * cselib.c (cselib_finish): Fix another miss-application of my previous
1824         patch.
1825
1826 2004-03-03  Mike Stump  <mrs@apple.com>
1827
1828         Add framework support for darwin.
1829
1830         * c-incpath.c: Include target.h and machmode.h.
1831         (add_path): Use a consistent style for cpp_dir.  Initialize
1832         p->construct to 0.
1833         (add_cpp_dir_path): New.
1834         (register_include_chains): Add use of extra_includes callback.
1835         (hook_void_int): Add.
1836         (target_c_incpath): Add.
1837         * c-incpath.h (add_cpp_dir_path): New.
1838         (target_c_incpath_s): Add.
1839         (target_c_incpath): Add.
1840         (C_INCPATH_INIT): Add.
1841         * c-opts.c (c_common_missing_argument,
1842         c_common_handle_option): Add -F argument processing.
1843         * c.opt: Add -F argument processing.
1844         * gcc.c (trad_capable_cpp): Add -F argument processing.
1845         * cppfiles.c (find_file_in_dir): Update to use construct
1846         callback.
1847         (search_path_exhausted, cpp_get_path, cpp_get_buffer,
1848         cpp_get_prev): New.
1849         (_cpp_find_file): Use search_path_exhausted.
1850         (make_cpp_dir): Initialize construct to 0.
1851         * cpplib.h (missing_header_cb
1852         cpp_get_path, cpp_get_buffer, cpp_get_file, cpp_get_prev): New.
1853         (cpp_callbacks): Add missing_header
1854         (cpp_dir): Add construct.
1855         * target-def.h: (TARGET_OPTF): New.
1856         * hooks.c (hook_void_int, hook_void_charptr): Add.
1857         * hooks.h (hook_void_int, hook_void_charptr): Add.
1858         * Makefile.in (c-incpath.o) : Add $(TARGET_H) and
1859         $(MACHMODE_H) dependencies.
1860         * doc/invoke.texi (Darwin Options): Document -F.
1861         * doc/tm.texi (TARGET_EXTRA_INCLUDES): Add.
1862         (TARGET_OPTF): Add.
1863         * fix-header.c (target_c_incpath): Add.
1864
1865         * config/darwin-c.c: Add c-incpath.h include.
1866         (using_frameworks, find_subframework_file,
1867         find_subframework_header, add_system_framework_path,
1868         frameworks_in_use, num_frameworks, max_frameworks,
1869         add_framework, find_framework, struct framework_header,
1870         framework_header_dirs, framework_construct_pathname,
1871         find_subframework_file, add_system_framework_path,
1872         add_framework_path, framework_defaults,
1873         darwin_register_frameworks, find_subframework_header): Add.
1874         * config/darwin.h (TARGET_EXTRA_INCLUDES, TARGET_OPTF): New.
1875         (TARGET_OPTION_TRANSLATE_TABLE): Add -framework support.
1876         (CPP_SPEC): Add __APPLE_CC__ support.
1877         * t-darwin (darwin-c.o): Add c-incpath.h dependency.
1878
1879 2004-03-04  Jan Hubicka  <jh@suse.cz>
1880
1881         * cselib.c (cselib_finish): Fix miss-application of my previous
1882         patch.
1883
1884 2004-03-03  Kazu Hirata  <kazu@cs.umass.edu>
1885
1886         * hooks.c (hook_tree_tree_identity): New.
1887         * hooks.h: Add a prototype for hook_tree_tree_identity.
1888         * stmt.c (expand_asm_operands): Use targetm.md_asm_clobbers
1889         instead of MD_ASM_CLOBBERS.
1890         * system.h (MD_ASM_CLOBBERS): Poison.
1891         * target-def.h (TARGET_MD_ASM_CLOBBERS): New.
1892         (TARGET_INITIALIZER): Add TARGET_MD_ASM_CLOBBERS.
1893         * target.h (gcc_target): Add md_asm_clobbers.
1894         * config/i386/i386.c (TARGET_MD_ASM_CLOBBERS): New.
1895         (ix86_md_asm_clobbers): New.
1896         * config/i386/i386.h (MD_ASM_CLOBBERS): Remove.
1897         * doc/tm.texi (MD_ASM_CLOBBERS): Change to
1898         TARGET_MD_ASM_CLOBBERS.
1899
1900 2004-03-03  Stuart Hastings  <stuart@apple.com>
1901
1902         * gcc/config.gcc: Arrange for Darwin/x86 to build libgcc_eh.a.
1903
1904 2004-03-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
1905
1906         * config/sparc/sparc.c (noov_compare64_op): Fix typo.
1907
1908         * config/sparc/sparc.h (ASM_FLOAT): Delete.
1909         (ASM_DOUBLE): Likewise.
1910         (ASM_LONGDOUBLE): Likewise.
1911         * config/sparc/pbd.h (ASM_INT_OP): Delete.
1912
1913 2003-03-03  Richard Henderson  <rth@redhat.com>
1914
1915         PR opt/13862
1916         * cselib.c (cselib_record_sets): Don't record multiple sets in
1917         asm insns.
1918
1919 2004-03-03  Mostafa Hagog  <mustafa@il.ibm.com>
1920
1921         * common.opt: Add description of the new -fgcse-after-reload flag.
1922
1923         * flags.h (flag_gcse_after_reload): Declaration of global variable.
1924
1925         * gcse.c (reg_used_on_edge ,reg_set_between_after_reload_p,
1926         reg_used_between_after_reload_p, rtx get_avail_load_store_reg,
1927         is_jump_table_basic_block, bb_has_well_behaved_predecessors,
1928         get_bb_avail_insn, hash_scan_set_after_reload,
1929         compute_hash_table_after_reload, eliminate_partially_redundant_loads,
1930         gcse_after_reload, get_bb_avail_insn): New functions to implement
1931         gcse-after-reload.
1932         (gcse_after_reload_main): New function, the main entry point to
1933         gcse-after-reload.
1934
1935         * rtl.h (gcse_after_reload_main): Declaration of the new function.
1936
1937         * opts.c (common_handle_option): Handle the -fgcse-after-reload flag.
1938
1939         * toplev.c (flag_gcse_after_reload): Initialization.
1940
1941         * passes.c (rest_of_handl_gcse2): Call gcse_after_reload_main.
1942
1943         * params.def (PARAM_GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
1944         PARAM_GCSE_AFTER_RELOAD_CRITICAL_FRACTION): New parameters for tuning
1945         the gcse after reload optimization.
1946
1947         * params.h (GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
1948         GCSE_AFTER_RELOAD_CRITICAL_FRACTION): Two macros to access the tuning
1949         parameters.
1950
1951         * doc/invoke.texi: Documentation for the new flag gcse-after-reload.
1952
1953 2004-03-03  Nicolas Pitre <nico@cam.org>
1954
1955         * config/arm/ieee754-df.S (muldf3, divdf3): Fix denormalization of
1956         small negative values.
1957
1958 2004-03-03  Jan Hubicka  <jh@suse.cz>
1959
1960         * cselib.c (hash_table):  Remove GTY marker.
1961         (reg_values): Turn into array.
1962         (used_regs): Likewise.
1963         (n_used_regs): New static variable.
1964         (reg_values_old): Kill.
1965         (clear_table): Update uses of arrays.
1966         (cselib_lookup): Likewise.
1967         (cselib_record_set): Likewise.
1968         (cselib_init): Likewise.
1969         (cselib_finish): Likewise.
1970         (cselib_udpate_varray_sizes): Kill.
1971         * cselib.h (cselib_update_varray_sizes): Kill.
1972
1973 2004-03-03  Paul Brook  <paul@codesourcery.com>
1974
1975         * flow.c (ior_reg_cond, and_reg_cond): Remove stray ")".
1976
1977 2004-03-03  Jan Hubicka  <jh@suse.cz>
1978
1979         * ggc-common.c (ggc_alloc_cleared_stat, ggc_realloc_stat):
1980         Rename from ...; make statistics transparent.
1981         (ggc_alloc_cleared, ggc_realloc_stat): ... these.
1982         (loc_descriptor): New structure.
1983         (hash_descriptor, eq_descriptor, loc_descriptor, cmp_statistics,
1984         add_statistics):
1985         New static function.
1986         (ggc_record_overhead, dump_statistics): New global function.
1987         * ggc-none.c (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
1988         ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Rename
1989         from ...; accept locations
1990         (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
1991         ggc_realloc, ggc_alloc_typed):  ... this one.
1992         from ...; accept locations
1993         * ggc-page.c (ggc_alloc_typed_stat, ggc_alloc_zone_stat,
1994         ggc_alloc_stat): Rename from ... ; pass locations
1995         * ggc-page.c (ggc_alloc_typed, ggc_alloc_zone, ggc_alloc):
1996         ... this one.
1997         (ggc_alloc_stat): Record overehead.
1998         * ggc.h (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
1999         ggc_realloc, ggc_alloc_typed):  Turn to macros
2000         (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
2001         ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Declare.
2002         (dump_ggc_loc_satistics, ggc_record_overehead): Declare.
2003         * langhooks.h (lhd_make_node): Declare.
2004         (LANG_HOOKS_MAKE_TYPE): Default to new function,
2005         * langhooks.c (lhd_make_node): New.
2006         * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Rename from ... ; pass
2007         locations.
2008         (rtx_alloc, swallow_copy_rtx): ... this one.
2009         * rtl.h (rtx_alloc, swallow_copy_rtx): Turn to macros.
2010         * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Declare.
2011         * toplpev.c (finalize): Dump stats.
2012         * tree.c (make_node_stat, copy_node_stat, make_tree_vec_stat,
2013         build_tree_list_stat, tree_cons_stat, build?_stat,  build_decl_stat):
2014         Rename from ... ; pass locators.
2015         (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
2016         build?,  build_decl): Declare.
2017         * tree.h (make_node_stat, copy_node_stat, make_tree_vec_stat,
2018         build_tree_list_stat, tree_cons_stat, build?_stat,  build_decl_stat):
2019         Declare.
2020         (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
2021         build?,  build_decl): New macros.
2022         * Makefile.in (RTL_H, TREE_H): Add statistics.h dependency.
2023         * statistics.h: New file.
2024
2025 2004-03-03  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2026             Richard Sandiford  <rsandifo@redhat.com>
2027
2028         * config/mips/mips.h (MASK_FIX_SB1): Bump.
2029         (MASK_FIX_R4400, TARGET_FIX_R4400): New macros.
2030         (TARGET_SWITCHES): Add -mfix-r4400 and -mno-fix-r4400.
2031         * config/mips/mips.c (mips_output_division): Fill the branch delay
2032         slot with a nop if TARGET_FIX_R4000.  Extend R4000 workarounds to
2033         TARGET_FIX_R4400.
2034         (mips_output_division): Adjust accordingly.
2035         (override_options): Make -march=r4400 imply -mfix-r4400 by default.
2036         * doc/invoke.texi: Document -mfix-r4400 and new errata workarounds.
2037
2038 2004-03-03  Paolo Bonzini  <bonzini@gnu.org>
2039
2040         * alias.c (rtx_equal_for_memref_p): Use predicates
2041         to test rtx classes and new rtx class codes, possibly
2042         splitting conditionals that tested against '<' and 'o'.
2043         * caller-save.c (save_call_clobbered_regs): Likewise.
2044         * combine.c (contains_muldiv, find_split_point, subst,
2045         combine_simplify_rtx, simplify_if_then_else,
2046         simplify_set, simplify_logical, expand_compound_operation,
2047         make_compound_operation, if_then_else_cond, known_cond,
2048         apply_distributive_law, cached_nonzero_bits,
2049         cached_num_sign_bit_copies, simplify_shift_const,
2050         gen_binary, simplify_comparison, update_table_tick,
2051         record_value_for_reg, get_lsat_value_validate): Likewise.
2052         * cse.c (mention_regs, find_best_addr, find_comparison_args,
2053         fold_rtx, cse_insn, invalidate_memory, cse_basic_block):
2054         Likewise.
2055         * emit-rtl.c (copy_insn_1): Likewise.
2056         * expr.c (force_operand): Likewise.
2057         * final.c (final_scan_insn, get_mem_expr_from_op): Likewise.
2058         * flow.c (notice_stack_pointer_modification_1,
2059         invalidate_mems_from_autoinc, ior_reg_cond, not_reg_cond,
2060         and_reg_cond, elim_reg_cond): Likewise.
2061         * function.c (update_epilogue_consts): Likewise.
2062         * genattrtab.c (attr_rtx_1): Likewise.
2063         * genopinit.c (gen_insn): Likewise.
2064         * integrate.c (subst_constants): Likewise.
2065         * jump.c (reversed_comparison_code_parts,
2066         reversed_comparison_code, delete_related_insns,
2067         rtx_renumbered_equal_p): Likewise.
2068         * local-alloc.c (block_alloc): Likewise.
2069         * loop.c (rtx_equal_for_prefetch_p, maybe_eliminate_biv,
2070         canonicalize_condition): Likewise.
2071         * loop-iv.c (simplify_using_conditions, iv_number_of_iterations):
2072         Likewise.
2073         * optabs.c (add_equal_node, expand_binop): Likewise.
2074         * predict.c (estimate_probability): Likewise.
2075         * ra-debug.c (ra_print_rtx_2op, ra_print_rtx): Likewise.
2076         * recog.c (validate_replace_rtx_1, comparison_operator,
2077         offsettable_address_p, constrain_operands): Likewise.
2078         * reg-stack.c (swap_rtx_condition_1, subst_stack_regs_pat):
2079         Likewise.
2080         * regclass.c (scan_one_insn): Likewise.
2081         * regmove.c (stable_and_no_regs_but_for_p): Likewise.
2082         * regrename.c (kill_autoinc_value): Likewise.
2083         * reload.c (find_reusable_reload, find_reloads,
2084         reg_overlap_mentioned_for_reload_p): Likewise.
2085         * reload1.c (gen_reload, delete_address_reloads_1): Likewise.
2086         * rtl.c (copy_rtx): Likewise.
2087         * rtl.h (CONSTANT_P, INSN_P): Likewise.
2088         * rtlanal.c (commutative_operand_precedence): Likewise.
2089         * sched-deps.c (conditions_mutex_p): Likewise.
2090         * sched-rgn.c (is_cfg_nonregular): Likewise.
2091         * simplify-rtx.c (simplify_gen_binary,
2092         simplify_gen_relational, simplify_replace_rtx,
2093         simplify_unary_operation, simplify_binary_operation,
2094         simplify_ternary_operation, simplify_rtx): Likewise.
2095         * unroll.c (reg_dead_after_loop): Likewise.
2096         * config/alpha/alpha.c (alpha_swapped_comparison_operator,
2097         print_operand): Likewise.
2098         * config/arc/arc.c (proper_comparison_operator): Likewise.
2099         * config/arm/arm.c (arm_arm_address_cost, arm_select_cc_mode):
2100         Likewise.
2101         * config/avr/avr.c (_reg_unused_after): Likewise.
2102         * config/frv/frv.c (frv_ifcvt_modify_tests,
2103         frv_ifcvt_modify_insn, frv_pack_insn): Likewise.
2104         * config/i386/i386.c (ix86_comparison_operator,
2105         ix86_carry_flag_operator, fcmov_comparison_operator,
2106         arith_or_logical_operator, print_operand,
2107         ix86_expand_binary_operator, ix86_binary_operator_ok):
2108         Likewise.
2109         * config/i386/i386.md: Likewise.
2110         * config/ia64/ia64.c (not_postinc_memory_operand,
2111         ia64_print_operand, update_set_flags, errata_emit_nops):
2112         Likewise.
2113         * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS,
2114         CONSTRAINT_OK_FOR_S): Likewise.
2115         * config/ip2k/ip2k.c (mdr_resequence_xy_yx,
2116         mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
2117         ip2k_xexp_not_uses_reg_for_mem, ip2k_xexp_not_uses_reg_p,
2118         ip2k_composite_xexp_not_uses_reg_p, ip2k_unary_operator):
2119         Likewise.
2120         * config/iq2000/iq2000.c (cmp_op, symbolic_expression_p,
2121         eqne_comparison_operator, signed_comparison_operator):
2122         Likewise.
2123         * config/mips/mips.c (cmp_op, symbolic_expression_p):
2124         Likewise.
2125         * config/mmix/mmix (mmix_foldable_comparison_operator,
2126         mmix_comparison_operator): Likewise.
2127         * config/pa/pa.c (hppa_legitimize_address): Likewise.
2128         * config/rs6000/rs6000.c (stmw_operation,
2129         branch_comparison_operator, trap_comparison_operator,
2130         ccr_bit): Likewise.
2131         * config/rs6000/rs6000.h (SELECT_CC_MODE): Likewise.
2132         * config/s390/s390.c (s390_alc_comparison,
2133         s390_slb_comparison):L Likewise.
2134         * config/sh/sh.c (gen_block_redirect, reg_unused_after):
2135         Likewise.
2136         * config/sparc/sparc.c (eq_or_neq, normal_comp_operator,
2137         noov_compare_op, noov_compare64_op, v9_regcmp_op,
2138         emit_hard_tfmode_operation, reg_unused_after)
2139         * doc/md.texi, doc/rtl.texi: Likewise.
2140
2141         * ra-debug.c: Add 2004 to list of copyright years.
2142         * unroll.c: Likewise.
2143
2144         * combine.c (simplify_logical): Remove dummy test,
2145         (apply_distributive_law): Fix typo in comment.
2146         GET_CODE (x) == AND so x is a commutative binary op.
2147         * jump.c (delete_related_insns): simplify loop
2148         condition, move testing of RTX codes inside the loop.
2149         (rtx_renumbered_equal_p): do not use RTX_CODE.
2150         * rtl.c (rtx_class): Declare as enum rtx_class.
2151         * rtl.def (EQ, NE, UNEQ, LTGT, UNORDERED, ORDERED):
2152         Move to RTX_COMM_COMPARE class.
2153         (HIGH, SYMBOL_REF, LABEL_REF, CONST, CONST_INT, CONST_DOUBLE):
2154         Move to RTX_CONST_OBJ class.
2155         * rtl.h (enum rtx_class): New declaration,
2156         (RTX_OBJ_MASK, RTX_OBJ_RESULT, RTX_COMPARE_MASK,
2157         RTX_COMPARE_RESULT, RTX_ARITHMETIC_MASK, RTX_ARITHMETIC_RESULT,
2158         RTX_BINARY_MASK, RTX_BINARY_RESULT, RTX_COMMUTATIVE_MASK,
2159         RTX_COMMUTATIVE_RESULT, RTX_NON_COMMUTATIVE_RESULT,
2160         RTX_EXPR_FIRST, RTX_EXPR_LAST, UNARY_P, BINARY_P,
2161         ARITHMETIC_P, COMMUTATIVE_ARITHMETIC_P, COMPARISON_P,
2162         SWAPPABLE_OPERANDS_P, NON_COMMUTATIVE_P, COMMUTATIVE_P,
2163         OBJECT_P): New macros.
2164         * config/sparc/sparc.c (noov_compare_op): Remove register
2165         from parameter.
2166
2167 2004-03-03  Kazu Hirata  <kazu@cs.umass.edu>
2168
2169         * target.h: Remove texi jargons in comments.
2170
2171 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2172
2173         * config/h8300/lib1funcs.asm (___fixunssfsi): Change the
2174         threshold to 0x4f.
2175
2176         Revert:
2177         2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
2178         * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
2179         as well.
2180         * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
2181         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
2182
2183 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2184
2185         * doc/md.texi (cbranchmode4): New.
2186
2187 2004-03-02  Eric Christopher  <echristo@redhat.com>
2188
2189         * config/mips/mips16.S: Change fixsfsi and fixdfsi to
2190         fix_trunc.
2191         * config/mips/mips.c (mips_init_libfuncs): Change accordingly.
2192         * config/mips/t-elf (LIB1ASMFUNCS): Ditto.
2193         * config/mips/t-isa3264 (LIB1ASMFUNCS): Ditto.
2194         * config/mips/t-r3900 (LIB1ASMFUNCS): Ditto.
2195
2196 2004-03-02  Richard Henderson  <rth@redhat.com>
2197
2198         PR middle-end/11767
2199         * coverage.c (coverage_counter_ref): Set MEM_NOTRAP_P.
2200         * optabs.c (prepare_cmp_insn): Force trapping memories to registers
2201         before the compare, if flag_non_call_exceptions.
2202
2203 2004-03-02  Richard Henderson  <rth@redhat.com>
2204
2205         PR middle-end/14327
2206         * stmt.c (expand_computed_goto): Do do_pending_stack_adjust before
2207         emitting the label, not after.
2208
2209 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
2210
2211         * config/m68hc11/m68hc11.c (m68hc11_addr_mode): New variable.
2212         (m68hc11_mov_addr_mode): Likewise.
2213         (m68hc11_override_options): Initialize them based on target.
2214         (register_indirect_p): Allow a MEM for indirect addressing modes and
2215         use flags to control what is allowed.
2216         (m68hc11_small_indexed_indirect_p): Use m68hc11_mov_addr_mode for
2217         supported addressing modes.
2218         (m68hc11_register_indirect_p): Use m68hc11_addr_mode.
2219         (go_if_legitimate_address_internal): Likewise.
2220         (m68hc11_indirect_p): Likewise and check the mode.
2221         (print_operand): Allow a (MEM (MEM)) and generate indirect addressing.
2222
2223 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2224
2225         * builtins.c (BUILTIN_SETJMP_FRAME_VALUE): Remove.
2226         (expand_builtin_setjmp_setup): Use
2227         targetm.builtin_setjmp_frame_value instead of
2228         BUILTIN_SETJMP_FRAME_VALUE.
2229         * system.h (BUILTIN_SETJMP_FRAME_VALUE): Poison.
2230         * target-def.h (TARGET_BUILTIN_SETJMP_FRAME_VALUE): New.
2231         (TARGET_INITIALIZER): Add TARGET_BUILTIN_SETJMP_FRAME_VALUE.
2232         * target.h (gcc_target): Add builtin_setjmp_frame_value.
2233         * targhooks.c (default_builtin_setjmp_frame_value): New.
2234         * targhooks.h: Add a prototype for
2235         default_builtin_setjmp_frame_value.
2236         * doc/tm.texi (BUILTIN_SETJMP_FRAME_VALUE): Change to
2237         TARGET_BUILTIN_SETJMP_FRAME_VALUE.
2238
2239 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
2240
2241         * config/m68hc11/m68hc11.md (move peephole2): New peepholes to optimize
2242         sequences of moves.
2243         (add peepholes): New peepholes to optimize sequences adding small
2244         constants.
2245         (bset peepholes): New peepholes to transform an OR in a bset form
2246         (bclr peepholes): Likewise for bclr form.
2247         (cmp peepholes): New peepholes to avoid register copies when comparing.
2248
2249 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
2250
2251         * config/m68hc11/m68hc11.md ("*pushdi_internal"): New insn and split
2252         to separate push from moves.
2253         ("*pushdf_internal"): Likewise.
2254         ("*pushsf_internal"): Likewise.
2255         ("*pushsi_internal"): Likewise.
2256         ("movdi_internal"): Use define_insn_and_split; non push operand.
2257         ("movdf_internal"): Likewise.
2258         ("movsf_internal"): Likewise.
2259         ("movsi_internal"): Likewise.
2260         ("*movhi_68hc12", "*addhi3_68hc12"): Fix and tune constraints
2261         ("*addhi3", "*subhi3", "*andhi3_mem", "*iorhi3_mem"): Likewise.
2262         ("*ashlsi3_const1", "*lshrsi3_const1"): Likewise.
2263
2264 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
2265
2266         * config/m68hc11/m68hc11.md ("tstqi_z_used"): Use define_insn_and_split.
2267         ("cmphi_z_used", "cmpqi_z_used"): Likewise.
2268         ("movstrictsi", "movstricthi", "movstrictqi"): Likewise.
2269         ("anddi3", "andsi3", "iordi3", "iorsi3"): Likewise.
2270         ("xordi3", "xorsi3", "*logicalsi3_zexthi"): Likewise.
2271         ("*logicalsi3_zextqi", "*logicalhi3_zexthi_ashift8"): Likewise.
2272         ("logicalhi3_zexthi", "*logicalsi3_silshr16"): Likewise.
2273         ("*logicalsi3_silshl16", "*logicalsi3_silshl16_zext"): Likewise.
2274         ("*ashldi3_const32", "*ashldi3_const1", "addsi_silshr16"): Likewise.
2275         ("addsi_andshr16", "*ashlsi3_const16_zexthi"): Likewise.
2276         ("*lshrdi3_const32", "*lshrdi_const1"): Likewise.
2277
2278 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
2279
2280         * config/m68hc11/m68hc11.md (SOFT_TMP_REGNUM): Define.
2281         (SOFT_XY_REGNUM): Define.
2282         (cmp split): Use the above instead of hard coded numbers.
2283         (8-bit op split): No need to check the mode; allow Q_REG.
2284         (ashift split): Adjust the first operand if it uses the SP and we
2285         are pushing the shifted value.
2286         (plus shift split): Fix when a source is in register D+X.
2287         ("doloop_end"): Pass dummy arguments to gen_rtx_NE.
2288
2289 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
2290
2291         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix when
2292         comparing with Z register.
2293
2294 2004-03-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2295
2296         * cfgloop.h (struct loop_desc): Removed.
2297         (struct loop): Fields simple, desc and has_desc removed.
2298         (simple_loop_p, count_loop_iterations): Declaration removed.
2299         * cfgloopanal.c (struct unmark_altered_insn_data): Removed.
2300         (unmark_altered, blocks_invariant_registers, unmark_altered_insn
2301         blocks_single_set_registers, invariant_rtx_wrto_regs_p_helper,
2302         invariant_rtx_wrto_regs_p, test_for_iteration, constant_iterations,
2303         simple_loop_exit_p, variable_initial_value, variable_initial_values,
2304         simple_condition_p, simple_increment, count_strange_loop_iterations,
2305         inverse, fits_in_mode_p, simple_loop_p, count_loop_iterations):
2306         Removed.
2307         * loop-iv.c (check_simple_exit, find_simple_exit): Update comments.
2308
2309 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2310
2311         * genattrtab.c: Don't handle MATCH_INSN.
2312         * genrecog.c: Likewise.
2313         * gensupport.c: Likewise.
2314         * rtl.def (match_insn): Remove.
2315         * doc/md.texi (match_insn, match_insn2): Remove.
2316
2317 2004-03-02  Mark Mitchell  <mark@codesourcery.com>
2318
2319         * doc/c-tree.texi (DECL_ASSEMBLER_NAME): Mention that using this
2320         macro results in memory allocation.
2321
2322 2004-03-02  David O'Brien  <obrien@FreeBSD.org>
2323
2324         * config/freebsd-spec.h (FBSD_DYNAMIC_LINKER): Add.
2325         * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Define
2326         %(fbsd_dynamic_linker),
2327         (LINK_SPEC): Use %(fbsd_dynamic_linker), and sync style with
2328         config/i386/freebsd.h
2329         * config/arm/freebsd.h: Ditto.
2330         * config/i386/freebsd.h: Ditto.
2331         * config/i386/freebsd64.h: Ditto.
2332         * config/ia64/freebsd.h: Ditto.
2333         * config/rs6000/sysv4.h: Ditto.
2334         * config/sparc/freebsd.h: Ditto.
2335
2336 2004-03-02  Loren James Rittle  <ljrittle@acm.org>
2337
2338         * gcc/doc/install.texi (*-*-freebsd*): Update target information.
2339
2340 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2341
2342         * rtl.def (define_combine): Remove.
2343
2344 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2345
2346         * config/h8300/h8300.md: Tweak formatting.
2347
2348 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2349
2350         * config/h8300/h8300.md (*cmphi_h8300): Rename to
2351         *cmphi_h8300_znvc.
2352         (*cmphi_h8300hs): Rename to *cmphi_h8300hs_znvc.
2353
2354 2004-03-01  Mark Mitchell  <mark@codesourcery.com>
2355
2356         PR bootstrap/14356
2357         * gcc.c (process_command): Remove const-qualification from argv.
2358         (main): Likewise.
2359
2360 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2361
2362         * config/h8300/h8300.md (pushqi1_h8300hs): Rename to
2363         pushqi1_h8300hs_advanced.  Adjust its caller.
2364         (pushhi1_h8300hs): Rename to pushhi1_h8300hs_advanced.
2365         Adjust its caller.
2366
2367 2004-03-02  Nicolas Roche  <roche@act-europe.fr>
2368
2369         * Makefile.in (install-libgcc, install-multilib): Pass
2370         mkinstalldirs var to libgcc.mk.
2371
2372 2004-03-01  Kazu Hirata  <kazu@cs.umass.edu>
2373
2374         * system.h (DBX_OUTPUT_STANDARD_TYPES): Poison.
2375         * doc/tm.texi (DBX_OUTPUT_STANDARD_TYPES): Remove.
2376
2377 2004-03-01  Kazu Hirata  <kazu@cs.umass.edu>
2378
2379         * config/h8300/h8300.c (gtle_operator): Accept GT and LE.
2380         * config/h8300/h8300.md: Split several peephole2's, each into
2381         two.
2382
2383 2004-03-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2384
2385         * dominance.c (recount_dominator): Handle postdominators.
2386
2387 2004-03-01  Richard Sandiford  <rsandifo@redhat.com>
2388
2389         * config/mips/mips-protos.h (enum mips_symbol_type): Move from mips.h.
2390         (NUM_SYMBOL_TYPES): Likewise.
2391         (SYMBOL_64_HIGH, SYMBOL_64_MID, SYMBOL_64_LOW): New symbol types.
2392         (mips_unspec_address): Declare.
2393         (mips_gotoff_page, mips_gotoff_global): Delete.
2394         * config/mips/mips.h (PREDICATE_CODES): Add general_symbolic_operand.
2395         * config/mips/mips.c (enum mips_symbol_type, NUM_SYMBOL_TYPES): Delete.
2396         (mips_symbolic_constant_p, mips_symbolic_address_p)
2397         (mips_symbol_insns): Handle new symbol types.
2398         (general_symbolic_operand): New predicate.
2399         (mips_unspec_address): Make extern.
2400         (mips_gotoff_page, mips_gotoff_global): Delete.
2401         (override_options): Allow -mabi=64 -mno-abicalls -mexplicit-relocs.
2402         Handle new symbol types.
2403         * config/mips/mips.md (*lea_high64, *lea64): New patterns.
2404         (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_disp[sd]i): Call
2405         mips_unspec_address directly.
2406         * doc/invoke.texi: Remove the -mabi=64 -mno-abicalls exception from
2407         the documentation of -mexplicit-relocs.
2408
2409 2004-03-01  Jeff Law  <law@redhat.com>
2410
2411         * fold-const.c (fold): An equality comparison of a non-weak object
2412         against zero has a known result.  Similarly an equality comparison
2413         of the address of two non-weak, unaliased symbols has a known result.
2414
2415         * ggc-page.c (struct page_entry): New field PREV.
2416         (ggc_alloc): Update PREV field appropriately.
2417         (sweep_pages): Likewise.
2418         (ggc_free): Likewise.  Use PREV field rather than loop to
2419         improve ggc_free performance.
2420
2421 2004-03-01  Richard Sandiford  <rsandifo@redhat.com>
2422
2423         * config/mips/mips.c (mips_output_division): Use the division
2424         instruction to fill the delay slot of a zero check.
2425         (mips_idiv_insns): Adjust accordingly.
2426
2427 2004-03-01  Nathanael Nerode  <neroden@gcc.gnu.org>
2428
2429         * config.gcc: Create a default tmake_file for linux, and use
2430         it in all but two linux clauses.  Comment those two.
2431
2432 2004-03-01  Paolo Bonzini  <bonzini@gnu.org>
2433
2434         * combine.c (try_combine):  Do not refer to is_replaced.
2435         (gen_lowpart_for_combine):  Perverse subregs now have a
2436         more politically correct name.
2437         * cse.c (cse_insn): Likewise.
2438         * jump.c: Fix bogus reference to delete_insn.
2439
2440 2004-02-29  Mark Mitchell  <mark@codesourcery.com>
2441
2442         PR debug/14328
2443         * dwarf2out.c (gen_enumeration_type_die): Output all enumeration
2444         constants as signed values.
2445
2446         PR middle-end/13448
2447         * c-tree.h (readonly_warning): Rename to ...
2448         (readonly_error): ... this.
2449         * c-typeck.c (build_unary_op): Adjust accordingly.
2450         (readonly_warning): Rename to ...
2451         (readonly_error): ... this and issue errors, not warnings.
2452         (build_modify_expr): Call readonly_error, not readonly_warning.
2453         (c_expand_asm_operands): Likewise.
2454         * tree-inline.c (optimize_inline_calls): Do not inline functions
2455         after errors have occurred.
2456
2457 2004-02-29  Nathanael Nerode  <neroden@gcc.gnu.org>
2458
2459         * configure.ac: Rearrange some threading code for clarity;
2460         add section comment.
2461         * configure: Regenerate.
2462
2463 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
2464
2465         * passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment
2466         typos.
2467         * doc/cppopts.texi: Fix a typo.
2468
2469 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
2470
2471         * config/i386/i386.md: Fix formatting.
2472
2473 2004-02-29  Nathanael Nerode  <neroden@gcc.gnu.org>
2474
2475         * configure.ac: Add some comments delineating sections of code.
2476
2477         * doc/install.texi: Note that libada uses autoconf 2.57 also.
2478
2479         * doc/install.texi: Fix idiot typo in previous commit.
2480
2481         * doc/install.texi: Update for conversion of intl to autoconf 2.57.
2482
2483 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
2484
2485         * config/h8300/h8300.md: Add comments about peephole2's.
2486
2487 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
2488
2489         * config/h8300/h8300.md: Tweak operand numbers of some
2490         peephole2's.
2491
2492 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
2493
2494         * config/h8300/h8300.md: Tweak comments about peephole2's.
2495
2496 2004-02-29  Waldek Hebisch  <hebisch@math.uni.wroc.pl>
2497
2498         PR middle-end/14203
2499         * function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
2500         instead of testing whether DECL_RTL is not NULL.
2501
2502 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
2503
2504         * config/sh/sh.c: Fix formatting.
2505
2506 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
2507
2508         * config/sh/sh.c: Convert to ISO-C.
2509
2510 2004-02-28  Andrew Pinski  <pinskia@physics.uc.edu>
2511
2512         * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
2513         my previous patch.
2514
2515         * config/darwin.h (machopic_finish): Output stub even if the
2516         symbol is already defined.
2517
2518 2004-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2519
2520         * pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
2521
2522 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
2523
2524         * genattr.c (main): Don't define
2525         TRADITIONAL_PIPELINE_INTERFACE or DFA_PIPELINE_INTERFACE.
2526         * system.h (TRADITIONAL_PIPELINE_INTERFACE): Poison.
2527         (DFA_PIPELINE_INTERFACE): Likewise.
2528         * doc/tm.texi (TRADITIONAL_PIPELINE_INTERFACE): Remove.
2529         (DFA_PIPELINE_INTERFACE): Likewise.
2530
2531 2004-02-28  Richard Sandiford  <rsandifo@redhat.com>
2532
2533         * config/mips/mips.md (tstsi, tstdi): Delete.
2534
2535 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2536
2537         * config/mips/mips.c (override_options): Remove an obsolete
2538         duplicate definition of the "e" constraint.
2539         * config/mips/mips.h: Update a comment accordingly.
2540
2541 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2542
2543         * config/mips/mips.md: Complete the unfinished R4000
2544         multiply/shift errata workaround.  Improve documentation.
2545         (hazard): Use TARGET_FIX_R4000 to decide whether an "imul" instruction
2546         has a hilo hazard.
2547         (mulsi3, mulsi3_internal, mulsi3_r4000): Use TARGET_FIX_R4000.
2548         (muldi3, muldi3_internal): Likewise.
2549         (muldi3_internal2): Remove, replacing with...
2550         (muldi3_mult3, muldi3_r4000): ...these new patterns.
2551         (mulsidi3): Take the errata into account.
2552         (mulsidi3_32bit): Remove, replacing with...
2553         (mulsidi3_32bit_internal, mulsidi3_32bit_r4000): ...these new patterns.
2554         (mulsidi3_64bit, mulsidi3_64bit_parts): Disable if TARGET_FIX_R4000.
2555         (umulsidi3): Take the errata into account.
2556         (umulsidi3_32bit): Remove, replacing with..
2557         (umulsidi3_32bit_internal, umulsidi3_32bit_r4000): ...these patterns.
2558         (umulsi3_highpart, umulsi3_highpart_internal): Disable if
2559         TARGET_FIX_R4000.
2560         (smulsi3_highpart, smulsi3_highpart_internal): Likewise.
2561         (smuldi3_highpart, umuldi3_highpart): Likewise.
2562         * doc/invoke.texi: Document the errata workaround.
2563
2564 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2565
2566         * config/mips/mips-protos.h (mips_idiv_insns): Declare.
2567         * config/mips/mips.h (MASK_FIX_SB1): Bump.
2568         (MASK_FIX_R4000, TARGET_FIX_R4000): New macros.
2569         (TARGET_SWITCHES): Add -mfix-r4000 and -mno-fix-r4000.
2570         * config/mips/mips.c (mips_idiv_insns): New function.
2571         (override_options): Make -march=r4000 imply -mfix-r4000 by default.
2572         (mips_output_division): Add a workaround for the R4000 divide/shift
2573         errata.
2574         * config/mips/mips.md (length): Use mips_idiv_insns() to calculate
2575         the length of an "idiv" instruction.
2576         * doc/invoke.texi: Document the new switches.
2577
2578 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
2579
2580         * doc/tm.texi (IS_COSTLY_DEPENDENCE): Change to
2581         TARGET_SCHED_IS_COSTLY_DEPENDENCE.
2582
2583 2004-02-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2584
2585         PR optimization/14229
2586         * cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.
2587
2588 2004-02-28  Eric Botcazou  <ebotcazou@act-europe.fr>
2589
2590         * fold-const.c (fold): Strip NOPs that change the signedness
2591         for RSHIFT too.  Expand comment.
2592
2593 2004-02-27  Ian Lance Taylor  <ian@wasabisystems.com>
2594
2595         PR optimization/7871
2596         * flow.c (mark_set_1): Don't add LOG_LINKS for global registers
2597         from or to call insns.
2598
2599 2004-02-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
2600
2601         PR optimization/7871
2602         * flow.c (propagate_one_insn): Interpret calls as setting global
2603         registers, not merely clobbering them.
2604
2605 2004-02-27  Dale Johannesen  <dalej@apple.com>
2606
2607         * config/darwin.c (machopic_output_possible_stub_label):  Remove.
2608         config/darwin-protos.h:  Ditto.
2609         config/darwin.h:  Remove call to it.
2610         * combine.c (distribute_notes): Do not place a REG_DEAD note
2611         when value is both set and used.
2612
2613 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
2614
2615         * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
2616         as well.
2617         * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
2618         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
2619
2620 2004-02-27  Andrew Pinski  <apinski@apple.com>
2621
2622         * c-typeck.c (tagged_types_tu_compatible_p) <ENUMERAL_TYPE>:
2623         Speedup common case of the type values being in the same order.
2624
2625 2004-02-27  Steve Ellcey  <sje@cup.hp.com>
2626
2627         * config/ia64/ia64.h (no-inline-float-divide): New option.
2628         * config/ia64/ia64.h (no-inline-int-divide): New option.
2629         * config/ia64/ia64.h (no-inline-sqrt): New option.
2630         (TARGET_DEFAULT): Add MASK_INLINE_FLOAT_DIV_THR to define.
2631         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
2632         * config/ia64/ia64.c (ia64_override_options): Modify error
2633         checking for inlined division/sqrt.
2634
2635 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
2636
2637         * bb-reorder.c, cfgbuild.c, diagnostic.c, explow.c, profile.c,
2638         ra-build.c, read-rtl.c, tracer.c, unwind-dw2-fde-glibc.c,
2639         value-prof.c, config/darwin-protos.h, config/frv/frv-abi.h,
2640         config/i386/pmmintrin.h, config/pa/pa-hpux.h: Update
2641         copyright.
2642
2643 2004-02-27  Paul Brook  <paul@codesourcery.com>
2644
2645         * function.c (assign_parms): Don't count pretend args for alignment.
2646
2647 2004-02-27  Richard Henderson  <rth@redhat.com>
2648
2649         * passes.c: New file.
2650         * Makefile.in (OBJS-common): Add it.
2651         * diagnostic.c (rtl_dump_and_exit): Move decl ...
2652         * flags.h (rtl_dump_and_exit): ... here.
2653         * output.h (size_directive_output, last_assemble_variable_decl):
2654         Move from toplev.c.
2655         * rtl.h (reg_alloc): Move from toplev.c.
2656         * toplev.c (HAVE_conditional_execution, DUMPFILE_FORMAT,
2657         struct dump_file_info, enum dump_file_index, dump_file_tbl,
2658         open_dump_file, close_dump_file, rest_of_decl_compilation,
2659         rest_of_type_compilation, rest_of_handle_final,
2660         rest_of_handle_delay_slots, rest_of_handle_stack_regs,
2661         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
2662         rest_of_handle_new_regalloc, rest_of_handle_old_regalloc,
2663         rest_of_handle_regrename, rest_of_handle_reorder_blocks,
2664         rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_regmove,
2665         rest_of_handle_tracer, rest_of_handle_if_conversion,
2666         rest_of_handle_if_after_combine, rest_of_handle_web,
2667         rest_of_handle_branch_prob,
2668         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
2669         rest_of_handle_addressof, rest_of_handle_sibling_calls,
2670         rest_of_handle_jump_bypass, rest_of_handle_inlining,
2671         rest_of_handle_null_pointer, rest_of_handle_combine,
2672         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
2673         rest_of_handle_gcse, rest_of_handle_loop_optimize,
2674         rest_of_handle_loop2, rest_of_compilation): Move to passes.c.
2675         (decode_d_option): Use enable_rtl_dump_file.
2676         (compile_file, finalize, do_compile): Move profile+combine+graph
2677         cleanup to finish_optimization_passes.
2678         * toplev.h (init_optimization_passes, finish_optimization_passes,
2679         enable_rtl_dump_file): Declare.
2680
2681 2004-02-27  Eric Botcazou  <ebotcazou@act-europe.fr>
2682             Roger Sayle  <roger@eyesopen.com>
2683
2684         * fold-const.c (fold): Revert 2004-02-25 change.  Use the original
2685         operands to build a tree with swapped operands.
2686         * expr.c (expand_expr_real) <MAX_EXPR>: Consistently use the
2687         'unsignedp' predicate to specify the signedness.
2688
2689 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
2690
2691         * c-decl.c, c-ppoutput.c, combine.c, cppfiles.c, dwarf2out.c,
2692         expr.c, fold-const.c, gcc.c, haifa-sched.c, loop-iv.c,
2693         params.def, read-rtl.c, rtl.c, rtlanal.c, toplev.c: Fix
2694         comment typos and formatting.  Follow spelling conventions.
2695
2696 2004-02-26  Aldy Hernandez  <aldyh@redhat.com>
2697
2698         * config/rs6000/rs6000.md: Add fixuns_truncsfsi2 and
2699         fix_truncsfsi2.
2700
2701         * config/rs6000/spe.md: Delete spe_efsctuiz.
2702         Add spe_fixuns_truncsfsi2.
2703         Add spe_fix_truncsfsi2.
2704
2705 2004-02-26  Eric Christopher  <echristo@redhat.com>
2706
2707         * c-lex.c (c_lex_string_translate): New variable.
2708         (lex_string): Use to determine string translation.
2709         * c-pragma.h: Prototype.
2710         * c-parse.in (start_string_translation): New. Set above.
2711         (stop_string_translation): Ditto.
2712         (attribute, attribute_list, asm_def, asm_stmt,
2713         asm_operand): Use above functions.
2714         * cp/parser.c (cp_parser_declaration): Translate strings
2715         unless token is RID_EXTERN. Set c_lex_string_translate
2716         for recursive use.
2717         (cp_parser_asm_definition): Only translate argument strings
2718         to asms.
2719         (cp_parser_asm_operand_list): Ditto.
2720         (cp_parser_attribute_list): Do not translate attribute strings.
2721
2722 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
2723
2724         * stmt.c (expand_start_case_dummy): Remove.
2725         * tree.h: Remove the corresponding prototype.
2726
2727 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
2728
2729         * builtins.c (apply_args_register_offset): Remove.
2730         * tree.h: Remove the corresponding prototype.
2731
2732 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
2733
2734         * stor-layout.c (is_pending_size): Remove.
2735         * tree.h: Remove the corresponding prototype.
2736
2737 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
2738
2739         * recog.c (validate_replace_src): Remove.
2740         * recog.h: Remove the corresponding prototype.
2741
2742 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
2743
2744         * calls.c: Don't reference FINAL_REG_PARM_STACK_SPACE or
2745         MAYBE_REG_PARM_STACK_SPACE.
2746         * function.c: Likewise.
2747         * system.h (FINAL_REG_PARM_STACK_SPACE): Poison.
2748         (MAYBE_REG_PARM_STACK_SPACE): Likewise.
2749         * doc/tm.texi (FINAL_REG_PARM_STACK_SPACE): Remove.
2750         (MAYBE_REG_PARM_STACK_SPACE): Likewise.
2751
2752 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
2753
2754         * c-decl.c (c_expand_deferred_function): Remove.
2755         * c-tree.h: Remove the corresponding prototype.
2756
2757 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
2758
2759         * postreload.c (reload_cse_move2add): Generate just a PLUS
2760         instead of an entire SET.
2761
2762 2004-02-26  Jan Hubicka  <jh@suse.cz>
2763
2764         * config.gcc: Add support for nocoma/prescott/pentium-m/pentium3m
2765         /pentium4m.
2766         * i386.c (override_options): Add support for new CPUs.
2767         * i386.h (TARGET_CPU_DEFAULT_NAMES): New names.
2768         (TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_pentium4e): New
2769         constants.
2770         * invoke.texi: Extend documentation of -mtune/-march for new CPUs.
2771
2772 2004-02-26  Bob Wilson  <bob.wilson@acm.org>
2773
2774         * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define __xtensa__.
2775
2776 2004-02-26  Eric Botcazou  <ebotcazou@act-europe.fr>
2777
2778         * config/sparc/sparc-protos.h (sparc_emit_floatunsdi): Add 'mode'.
2779         (sparc_emit_fixunsdi): New prototype.
2780         * config/sparc/sparc.c (sparc_emit_floatunsdi): Use 'mode' argument.
2781         (sparc_emit_fixunsdi): New function.
2782         * config/sparc/sparc.md (floatunsdisf2): Use 'general_operand' for
2783         operand 1.  Pass SFmode to sparc_emit_floatunsdi.
2784         (floatunsdidf2): Use 'general_operand' for operand 1.  Pass DFmode
2785         to sparc_emit_floatunsdi.
2786         (fixuns_truncsfdi2): New expander.
2787         (fixuns_truncdfdi2): Likewise.
2788
2789 2004-02-26  Alan Modra  <amodra@bigpond.net.au>
2790
2791         * gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
2792         unless HAVE_cc0.
2793
2794 2004-02-25  Richard Henderson  <rth@redhat.com>
2795
2796         * explow.c (force_reg): Call mark_reg_pointer as appropriate.
2797         * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't
2798         use (op0-op1) == 0 if op0 is a pointer.
2799         * config/alpha/alpha.md (cmpdi): Use some_operand.
2800         (three comparison combine splits): Remove.
2801
2802 2004-02-25  Richard Henderson  <rth@redhat.com>
2803
2804         PR c/12794
2805         * c-common.c (handle_alias_attribute): Reject the attribute if
2806         current_function_decl is set.
2807
2808 2004-02-25  Kelley Cook  <kcook@gcc.gnu.org>
2809
2810         * config.gcc: Add comment describing extra_gcc_objs.
2811         i[34567]86-*-cygwin*): Replace host_extra_gcc_objs with extra_gcc_objs.
2812         * configure.ac (extra_gcc_objs): New substitution variable.
2813         (host_extra_gcc_objs): Don't substitute.
2814         * configure: Regenerate.
2815         * Makefile.in: Use extra_gcc_objs.
2816
2817 2004-02-25  Kelley Cook  <kcook@gcc.gnu.org>
2818
2819         * doc/contrib.texi: Add an entry for myself.
2820
2821 2004-02-25  Jan Hubicka  <jh@suse.cz>
2822
2823         * basic-block.h (make_eh_edge, break_superblocks): Declare.
2824         * cfgbuild.c (make_eh_edge):  Make global.
2825         * cfglayout.c (break_superblocks): Likewise; fix memory leak.
2826         * except.c (build_post_landing_pads, connect_post_landing_pads,
2827         dw2_build_landing_pads, sjlj_emit_function_enter,
2828         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
2829         sjlj_build_landing_pads): Update CFG.
2830         (emit_to_new_bb_before): New function.
2831         (finish_eh_generation): Do not rebuild the CFG.
2832
2833 2004-02-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2834
2835         * config.gcc (hppa*-*-*, parisc*-*-*): Add MASK_BIG_SWITCH to all
2836         target_cpu_default defines.
2837         * pa-hpux.h (TARGET_DEFAULT): Add MASK_BIG_SWITCH to define.
2838         * pa.h (TARGET_DEFAULT): Likewise.
2839
2840 2004-02-25  Eric Botcazou  <ebotcazou@act-europe.fr>
2841
2842         * fold-const.c (fold): Treat MAX_EXPR and MIN_EXPR like
2843         comparisons with regard to signedness.
2844
2845 2004-02-25  Richard Earnshaw  <rearnsha@arm.com>
2846
2847         * arm.c (thumb_legitimize_address): New function.
2848         * arm-protos.h: Prototype it.
2849         * arm.h (THUMB_LEGITIMIZE_ADDRESS): Define.
2850         (LEGITIMIZE_ADDRESS): Use it.
2851
2852 2004-02-25  J"orn Rennecke <joern.rennecke@superh.com>
2853
2854         * reload1.c (reload): Only spill eliminable register with multiple
2855         adjacent elimination alternatives if all alternatives fail.
2856
2857 2004-02-25  Richard Earnshaw  <rearnsha@arm.com>
2858
2859         * arm.c (arm_legitimate_index_p): For QImode the range of an offset
2860         is -4095...+4095 inclusive.
2861
2862 2004-02-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
2863
2864         * doc/install.texi (sparc-sun-solaris2* specific notes): Document
2865         the bootstrap failure with Sun CC 5.4 and 5.5.
2866
2867 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
2868
2869         * cse.c (cse_change_cc_mode_insns): Stop at any instruction
2870         which modifies NEWREG.
2871         (cse_condition_code_reg): Update the mode of CC_REG in
2872         CC_SRC_INSN on our own.
2873
2874 2004-02-24  Michael Matz  <matz@suse.de>
2875
2876         * config/i386/i386.c (ix86_comp_type_attributes): Check for
2877         regparm attributes.
2878
2879 2004-02-24  Richard Henderson  <rth@redhat.com>
2880
2881         * toplev.c (dump_file_tbl): Rename from dump_file.
2882         * bb-reorder.c, bt-load.c, cfgcleanup.c, cfglayout.c, cfgloopanal.c,
2883         cfgloopmanip.c, cfgrtl.c, config/arm/arm.c, config/frv/frv.c,
2884         config/i386/i386.c, config/ia64/ia64.c, config/mips/mips.c,
2885         config/sh/sh.c, cse.c, flow.c, ifcvt.c, loop-iv.c, loop-unroll.c,
2886         loop-unswitch.c, output.h, predict.c, profile.c, ra-build.c,
2887         ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, regrename.c, reload1.c,
2888         toplev.c, tracer.c, value-prof.c, var-tracking.c, web.c:
2889         s/rtl_dump_file/dump_file/g.
2890
2891 2004-02-24  Aldy Hernandez  <aldyh@redhat.com>
2892
2893         * config/rs6000/spe.md (spe_fix_truncsfsi2): Delete.
2894         (spe_fixuns_truncsfsi2): Delete.
2895
2896         * config/rs6000/rs6000.md (fix_truncsfsi2): Delete.
2897         (fixuns_truncsfsi2): Delete.
2898
2899 2004-02-24  Josef Zlomek  <zlomekj@suse.cz>
2900
2901         PR/14240
2902         * rtlanal.c (replace_label): Fix replacing labels in constant pool.
2903
2904 2004-02-24  Geoffrey Keating  <geoffk@apple.com>
2905
2906         * config/darwin.h (TARGET_HAS_F_SETLKW): Define.
2907
2908 2004-02-24  Jason Merrill  <jason@redhat.com>
2909
2910         * tree.c (check_qualified_type): New fn.
2911         (get_qualified_type): Use it.  If type already has the desired
2912         quals, just return it.
2913         * tree.h: Declare it.
2914
2915 2003-02-24  Sanjiv Kumar Gupta  <sanjivg@noida.hcltech.com>
2916
2917         * target-def.h (TARGET_SCHED_INIT_GLOBAL,
2918         TARGET_SCHED_FINISH_GLOBAL): New macros.
2919
2920         * target.h (md_init_global, md_finish_global): Function
2921         declarations corresponding to new target macros.
2922
2923         * haifa-sched.c (sched_init, sched_finish): Allow target to
2924         call the new schedular hooks.
2925
2926         * flow.c (recompute_reg_usage): Add PROP_DEATH_NOTES flag in
2927         call to update_life_info.
2928
2929         * config/sh/sh.h (OVERRIDE_OPTIONS): Re-enable
2930         flag_schedule_insns for SH4.
2931
2932         * config/sh/sh.c (sh_md_init_global, sh_md_finish_global,
2933         find_set_regmode_weight, find_insn_regmode_weight,
2934         find_regmode_weight), sh_md_init, sh_dfa_new_cycle,
2935         sh_variable_issue, high_pressure, ready_reorder,
2936         rank_for_reorder, swap_reorder, sh_reorder, sh_reorder2): New
2937         functions used to throttle the insn movement in first
2938         scheduling pass for SH.
2939
2940         * gcc/doc/tm.texi: Document TARGET_SCHED_INIT_GLOBAL and
2941         TARGET_SCHED_FINISH_GLOBAL.
2942
2943 2004-02-24  Alexandre Oliva  <aoliva@redhat.com>
2944
2945         Implement FR-V FDPIC ABI support for frv-uclinux and frv-linux.
2946         2004-02-05  Alexandre Oliva  <aoliva@redhat.com>
2947         * config/frv/frv.c (frv_emit_movsi): Use GOT relocations for
2948         symbols in sections named by the user.
2949         2004-01-30  Alexandre Oliva  <aoliva@redhat.com>
2950         * config/frv/linux.h (TARGET_OS_CPP_BUILTINS): New.
2951         2004-01-27  Alexandre Oliva  <aoliva@redhat.com>
2952         * config.gcc (frv-*-*linux*): Handle like *-*-linux*.
2953         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove, obviated by
2954         the above.
2955         2004-01-20  Alexandre Oliva  <aoliva@redhat.com>
2956         * config/frv/frv.md (symGOT2reg_hilo, symGOTOFF2reg_hilo): Add
2957         one more pseudo to further improve code generation.
2958         2004-01-19  Alexandre Oliva  <aoliva@redhat.com>
2959         * config/frv/frv.md (movdi_ldd): Introduce explicit indirection
2960         inside UNSPEC.
2961         2004-01-16  Alexandre Oliva  <aoliva@redhat.com>
2962         * config/frv/frv.c (frv_legitimate_address_p): Added
2963         allow_double_reg_p argument.  Adjust all callers.  Use it to
2964         decide whether to enable double-register indirect addressing.
2965         (frv_funcdesc_alias_set): Remove.
2966         (frv_expand_fdpic_call): Force non-SYMBOL_REF operand into
2967         register.  Emit movdi_ldd.
2968         (ldd_address_operand): New.
2969         * config/frv/frv-protos.h (frv_legitimate_address_p): Adjust.
2970         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Likewise.
2971         (PREDICATE_CODES): Add ldd_address_operand.
2972         * config/frv/frv.md (movdi_ldd): New.
2973         (symGOT2reg_hilo, symGOTOFF2reg_hilo): Use separate pseudo for
2974         intermediate computations if possible.
2975         (symGOTOFF2reg_i): Fix harmless typo.
2976         2003-12-18  Alexandre Oliva  <aoliva@redhat.com>
2977         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Cast
2978         relocated p_vaddr to vaddr type.
2979         * config/frv/frv-protos.h (frv_expand_fdpic_call): Return void.
2980         * config/frv/frv.c (frv_get_funcdesc_alias_set): New.
2981         (frv_expand_fdpic_call): Propagate incoming MEM's expr to funcdesc
2982         MEM, or use a funcdesc alias set.  Use regular move instead of
2983         ldd.
2984         (dbl_memory_one_insn_operand): Recognize function descriptors by
2985         type or by alias set, and don't split them.
2986         * config/frv/frv.md (call, call_value): Never use call_internal
2987         for fdpic.
2988         (call_internal, call_value_internal): Never match for FDPIC.
2989         (call_fdpicdi, call_fdpicsi, call_value_fdpicdi,
2990         call_value_fdpicsi): Require FDPIC.
2991         (ldd): Removed.
2992         2003-12-17  Alexandre Oliva  <aoliva@redhat.com>
2993         * config/frv/frv.h (CRT_GET_RFIB_DATA): Define for __FRV_FDPIC__.
2994         * unwind-dw2-fde-glibc.c: Don't include elf-fdpic.h any more.
2995         (_Unwind_IteratePhdrCallback): Adjust type of load_base for FRV
2996         FDPIC.  Compute data base address.
2997         * config/frv/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Enable -mfdpic
2998         before the other self-specs are processed.
2999         * config/frv/t-linux (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS):
3000         Build with -fPIC.
3001         2003-12-15  Alexandre Oliva  <aoliva@redhat.com>
3002         * unwind-dw2-fde-glibc.c: Don't include bits/elf-fdpic.h if
3003         inhibit_libc is defined.
3004         2003-12-12  Alexandre Oliva  <aoliva@redhat.com>
3005         * unwind-dw2-fde-glibc.c: Include bits/elf-fdpic.h for
3006         __FRV_FDPIC__.
3007         (__RELOC_POINTER): Define.
3008         (_Unwind_IteratePhdrCallback): Use it.
3009         * config/frv/frv.h (Twrite): Define.
3010         (TRANSFER_FROM_TRAMPOLINE): Use it.
3011         * config/frv/linux.h (INVOKE__main): Undefine.
3012         (Twrite): Override.
3013         2003-12-05  Richard Sandiford  <rsandifo@redhat.com>
3014         * doc/invoke.texi (-mlong-calls, -mlinked-fp): Document FRV options.
3015         (-mlibrary-pic): Emphasize that this option generates EABI code.
3016         (-mcpu): Add fr550.
3017         (-mpack): Remove.
3018         2003-11-30  Alexandre Oliva  <aoliva@redhat.com>
3019         * config/frv/frv.c (int_2word_operand): Reject LABELs, SYMBOL_REFs
3020         and CONSTs in FDPIC mode.
3021         * gcc/config.gcc (with_cpu): Default to fr400 on frv-*-*linux*.
3022         2003-11-29  Richard Sandiford  <rsandifo@redhat.com>
3023         * config/frv/frv.c (move_source_operand): Don't accept symbolic
3024         constants.
3025         * config/frv/frv.md (*movhi_internal, *movsi_internal): Use an 'n'
3026         rather than 'i' constraint for the 2-instruction alternative.
3027         (*movsi_2word): New, incorporating existing int_2word_operand splitter.
3028         2003-11-29  Richard Sandiford  <rsandifo@redhat.com>
3029         * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Q): Renamed from
3030         EXTRA_CONSTRAINT_FOR_Y.
3031         (EXTRA_CONSTRAINT): Remove handling of 'Y'.
3032         * config/frv/frv.md (*movsi_internal): Remove 'Q' constraint.
3033         (addsi3): Change 'Y' constraint to 'Q'.
3034         2003-11-27  Richard Sandiford  <rsandifo@redhat.com>
3035         * reload.c (CONST_POOL_OK_P): New macro.
3036         (find_reloads): Use it to decide whether a constant can be forced
3037         into memory.
3038         * config/frv/frv.h (LEGITIMATE_PIC_OPERAND_P): Return true if the
3039         constant satisfies got12_operand.
3040         (frv_cannot_force_const_mem): Always return true for TARGET_FDPIC.
3041         (frv_legitimate_address_p): Check for valid unspec offsets using
3042         got12_operand rather than frv_legitimate_fdpic_operand_p.
3043         (frv_legitimate_fdpic_operand_p): Delete.
3044         (frv_emit_movsi): Abort if we try to use the FDPIC register during
3045         or after reload.
3046         (frv_legitimate_constant_p): Return LEGITIMATE_PIC_OPERAND_P if
3047         TARGET_FDPIC.
3048         * config/frv/frv.md (*movdf_double): Add alternatives for CONST_DOUBLE.
3049         2003-11-19  Richard Sandiford  <rsandifo@redhat.com>
3050         * config/frv/frv-protos.h (fdpic_operand, fdpic_got12_operand)
3051         (frv_fdpic_fptr_operand): Don't declare here.
3052         * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Y): Call got12_operand
3053         rather than fdpic_got12_operand.
3054         (PREDICATE_CODES): Remove symbolic_operand entry.  Add entries for
3055         got12_operand and const_unspec_operand.
3056         * config/frv/frv.c (got12_operand): Renamed from fdpic_got12_operand.
3057         (gpr_or_int12_operand, dbl_memory_one_insn_operand): Update calls.
3058         (symbolic_operand): Remove.
3059         (const_unspec_operand): New predicate.
3060         * config/frv/frv.md (*movsi_got): Use got12_operand.
3061         (*movsi_high_got, *movsi_lo_sum_got): Use const_unspec_operand.
3062         2003-11-18  Richard Sandiford  <rsandifo@redhat.com>
3063         * config/frv/frv-protos.h (frv_output_addr_const_extra): Remove.
3064         * config/frv/frv.h (OUTPUT_ADDR_CONST_EXTRA): Remove definition.
3065         * config/frv/frv.c (frv_unspec): New structure.
3066         (frv_small_data_reloc_p, frv_const_unspec_p): New functions.
3067         (frv_print_operand_memory_reference): Use frv_const_unspec_p to
3068         validate CONST indices.  Use frv_output_const_unspec to print them.
3069         (frv_print_operand): Update call to unspec_got_name.  Use
3070         frv_output_const_unspec to print constant unspecs.
3071         (frv_legitimate_fdpic_operand_p): Return true if frv_const_unspec_p.
3072         Reject UNSPECs otherwise.
3073         (unspec_got_name): Take the relocation number as argument, not an
3074         rtx containing it.
3075         (frv_output_addr_const_extra): Remove, replacing with...
3076         (frv_output_const_unspec): ...this new function.
3077         (frv_find_base_term): Use frv_const_unspec_p & frv_small_data_reloc_p.
3078         (gpr_or_int12_operand): Use fdpic_got12_operand.
3079         (dbl_memory_one_insn_operand): Likewise.
3080         (fdpic_got12_operand): Use frv_const_unspec_p.
3081         (frv_emit_movsi): Use frv_const_unspec_p to check for CONSTs that
3082         are already legitimate.  Use frv_small_data_reloc_p when deciding
3083         whether to use HIGH/LO_SUM for R_FRV_GOTOFF12 and R_FRV_GPREL12.
3084         2003-11-18  Alexandre Oliva  <aoliva@redhat.com>
3085         * config/frv/t-linux (SHLIB_MAPFILES): Override so as to export...
3086         * config/frv/libgcc-frv.ver: ... frv-specific symbols.  New file.
3087         * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
3088         label, for real this time.
3089         * config/frv/frv.c (frv_local_funcdesc_p): Update to new
3090         representation of visibility.
3091         (fdpic_got12_operand, symbolic_operand): Mark unused arguments as
3092         such.
3093         2003-11-17  Richard Sandiford  <rsandifo@redhat.com>
3094         * config/frv/frv.h (MASK_LINKED_FP, TARGET_LINKED_FP): New macros.
3095         (TARGET_SWITCHES): Add -mlinked-fp and -mno-linked-fp.
3096         * config/frv/frv.c (frv_override_options): Set MASK_LINKED_FP unless
3097         it was explicitly disabled.
3098         (frv_stack_info): There is no need to save the link register in every
3099         frame unless TARGET_LINKED_FP is true.
3100         (frv_frame_pointer_required): If !TARGET_LINKED_FP, only require a
3101         frame pointer if the stack pointer might change value.
3102         (frv_return_addr_rtx): Check and process "count" argument.
3103         2003-11-14  Richard Sandiford  <rsandifo@redhat.com>
3104         * config/frv/frv-protos.h (frv_legitimize_address): Remove.
3105         (frv_find_base_term): Declare.
3106         * config/frv/frv.h (LEGITIMIZE_ADDRESS): Do nothing.
3107         (FIND_BASE_TERM): Define.
3108         (PREDICATE_CODES): Remove pic_register_operand, pic_symbolic_operand,
3109         small_data_register_operand, small_data_symbolic_operand.  Add
3110         symbolic_operand.
3111         * config/frv/frv.c (const_small_data_p, plus_small_data_p): Delete.
3112         (frv_print_operand_memory_reference, output_move_single): Remove
3113         special handling for unlegitimized sdata addresses.
3114         (frv_legitimate_address_p): Don't allow sums of SDA_BASE_REG
3115         and symbolic addresses.
3116         (frv_legitimize_address, frv_legitimize_fdpic_address): Delete.
3117         (frv_find_base_term): New function.
3118         (int_2word_operand): Check specifically for symbolic address constants.
3119         (pic_register_operand, pic_symbolic_operand): Delete.
3120         (small_data_register_operand, small_data_symbolic_operand): Delete.
3121         (dbl_memory_one_insn_operand): Don't call plus_small_data_p.
3122         Allow UNSPEC_GOT constants if !TARGET_FDPIC.
3123         (move_source_operand): Only accept CONSTs if they're a two-insn
3124         symbolic constant.
3125         (fdpic_got12_operand): Don't require TARGET_FDPIC.
3126         (frv_emit_movsi): Legitimize sdata and -mlibrary-pic addresses
3127         using gen_symGOTOFF2reg*.
3128         (frv_ifcvt_rewrite_mem): Remove (plus gr16 ...) special cases.
3129         (frv_rtx_costs): Give all MEM addresses a cost of 0.  Give MEMs
3130         themselves a cost of 3 insns.
3131         * config/mips/mips.md (*movsi_got): Allow for !TARGET_FDPIC too.
3132         Change predicate to symbolic_operand.
3133         (*movsi_high_got, *movsi_lo_sum_got): Likewise.
3134         (*movsi_lda_sdata): Delete.
3135         (*movsi_pic, movsi_high_pic, movsi_lo_sum_pic): Delete.
3136         2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
3137         * config.gcc: Add t-slibgcc-elf-ver and support --with-cpu for
3138         frv-*-*linux*.
3139         * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
3140         label.
3141         * config/frv/frv.h (DRIVER_SELF_SPECS): Add blank before
3142         -multilib-library-pic.
3143         (LINK_SPEC): Add -z text for -mfdpic.
3144         * config/frv/frvbegin.c (__ROFIXUP_LIST__): Don't define on FDPIC.
3145         * config/frv/frvend.c (__ROFIXUP_END__): Likewise.
3146         * config/frv/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, LINK_SPEC):
3147         Override.
3148         (OPTION_DEFAULT_SPECS, HAS_INIT_SECTION, INIT_SECTION_ASM_OP,
3149         FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION): Define.
3150         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Use
3151         crtstuff-generated files.
3152         2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
3153         * config.gcc: Add frv-*-*linux*.
3154         * config/frv/linux.h, config/frv/t-linux: New.
3155         2003-10-06  Alexandre Oliva  <aoliva@redhat.com>
3156         * config/frv/frv.h (LINK_SPEC): Pass -melf32frvfd to the linker
3157         when -mfdpic even if a linker script is explicitly listed.
3158         2003-10-02  Alexandre Oliva  <aoliva@redhat.com>
3159         * config/frv/frv.c (frv_override_options): Clear asm_out
3160         unaligned_op for SImode on FDPIC.
3161         (frv_emit_movsi): Use compute_reloc_for_constant to compute the
3162         argument passed to decl_readonly_section.
3163         (frv_assemble_integer): Revert 2003-09-30's change, but make the
3164         whole block run with FDPIC even with -fno-PIC.
3165         2003-10-02  Alexandre Oliva  <aoliva@redhat.com>
3166         * config/frv/frv.c (frv_cannot_force_const_mem): Don't force
3167         symbol or label plus offset to memory.
3168         (frv_emit_movsi): Emit GPREL only if -mgprel-ro.  Emit 32-bit
3169         GOTOFF and GPREL for LABEL_REF.
3170         * config/frv/frv.h (DRIVER_SELF_SPECS): Add -mgprel-ro with
3171         -mfdpic unless -mno-gprel-ro, -fpic or -fpie.
3172         (MASK_GPREL_RO, TARGET_GPREL_RO): New.
3173         (TARGET_SWITCHES): Added gprel-ro and no-gprel-ro.
3174         * doc/invoke.texi: Document them.
3175         2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
3176         * config/frv/frv-protos.h (frv_gen_GPsym2reg): Declare.
3177         (frv_splittable_got_operand): Removed.
3178         * config/frv/frv.c (frv_cannot_force_const_mem): Reject HIGH and
3179         LO_SUM.  Add comments.
3180         (frv_override_options): Moved enabling of FDPIC to
3181         DRIVER_SELF_SPECS.  Don't enable MASK_DWORD.
3182         (frv_local_funcdesc_p): Remove unnecessary heck for flag_pie.
3183         (frv_legitimize_fdpic_address): Don't duplicate logic in
3184         frv_emit_movsi.
3185         (frv_gen_GPsym2reg): New.
3186         (unspec_got_name): Added gprel.
3187         (frv_expand_fdpic_call): Add support for inlining PLTs.
3188         (fdpic_fptr_operand): Renamed from frv_fdpic_fptr_operand.
3189         (gpr_or_int12_operand): Added GPREL12.
3190         (pic_symbolic_operand): Match even if !flag_pic for FDPIC.
3191         (small_data_symbolic_operand): Fail if FDPIC.
3192         (fdpic_splittable_got_operand): Removed.
3193         (fdpic_got12_operand): Added GPREL12.
3194         (frv_emit_movsi): Reorganize to avoid duplication.  Emit GPREL
3195         when appropriate.  Fix sdata GOTOFF.
3196         (frv_legitimate_constant_p): Require legitimate PIC operand for
3197         FDPIC with pic, but only a legitimate fdpic operand for non-pic.
3198         (frv_assemble_integer): Move FDPIC funcdesc handling out of
3199         flag_pic case.
3200         (frv_asm_out_constructor, frv_asm_out_destructor): Abort if
3201         frv_assemble_integer fails.
3202         * config/frv/frv.h (DRIVER_SELF_SPECS): New.
3203         (SUBTARGET_DRIVER_SELF_SPECS): New.
3204         (ASM_SPEC): Don't pass -mno-fdpic.
3205         (LINK_SPEC): Pass -melf32frvfd for FDPIC.
3206         (MASK_INLINE_PLT, TARGET_INLINE_PLT): New.
3207         (TARGET_SWITCHES): Add -minline-plt, -mno-inline-plt and
3208         -multilib-library-pic.
3209         (PREDICATE_CODES): Added fdpic_operand, fdpic_fptr_operand,
3210         condexec_si_media_operator, condexec_sf_add_operator and
3211         condexec_sf_conv_operator.  Removed condexec_sf_binary_operator
3212         and condexec_sf_unary_operator.
3213         * config/frv/frv.md (R_FRV_GPREL12, R_FRV_GPRELHI, R_FRV_GPRELLO):
3214         New.
3215         (movsi_got, movsi_high_got, movsi_lo_sum_got): Move before
3216         movsi_internal.  Give them internal names.  movsi_got has type
3217         int.
3218         (fdpic got splitters): Remove.
3219         (symGPREL2reg, symGPREL2reg_hilo): New.
3220         * config/frv/t-frv (MULTILIB_MATCHES): Don't map -fpic and -fPIC
3221         to -mlibrary-pic.  Map -multilib-library-pic to it.
3222         * doc/invoke.texi: -mfdpic, -minline-plt, -multilib-library-pic:
3223         Document.
3224         2003-09-28  Alexandre Oliva  <aoliva@redhat.com>
3225         * config/frv/frv.c (frv_function_symbol_referenced_p): Declare.
3226         (TARGET_CANNOT_FORCE_CONST_MEM): Define to...
3227         (frv_cannot_force_const_mem): New function.
3228         (const_small_data_p, plus_small_data_p): Update comments on sdata
3229         on FDPIC.
3230         (frv_override_options): Set flag_pie for FDPIC too.
3231         (frv_conditional_register_usage): Mark gr16 and gr17 as non-fixed,
3232         call-saved registers on FDPIC.
3233         (frv_stack_info): Don't preserve the PIC register on FDPIC, and
3234         don't force LR to be preserved.
3235         (frv_expand_prologue): Likewise.
3236         (frv_asm_output_mi_thunk): Use 12-bit funcdesc gotoff for -fpic.
3237         (frv_frame_pointer_required): Don't force it just because the
3238         FDPIC register is used.
3239         (frv_legitimate_address_p) <CONST>: Accept a legitimate FDPIC
3240         operand only if !condexec_p.
3241         (frv_legitimize_address): Return the FDPIC-legitimized address.
3242         Don't match small data here on FDPIC.
3243         (frv_legitimate_fdpic_operand_p): Don't accept unadorned function
3244         symbols.  Use TRUE/FALSE instead of 1/0.
3245         (frv_local_funcdesc_p): New.
3246         (frv_legitimize_fdpic_address): Rewrite to use GOTOFF and 12-bit
3247         immediates when possible.
3248         (pic_symbolic_operand): Accept SYMBOL_REFs and CONSTs in FDPIC.
3249         (dbl_memory_one_insn_operand): Accept addresses that add a REG and
3250         an UNSPEC_GOT.
3251         (frv_emit_movsi): Handle FDPIC before small data.  Use GOTOFF and
3252         12-bit immediates when possible.
3253         (frv_legitimate_constant_p): In FDPIC, reject SImode operands that
3254         are not legitimate pic operands.
3255         (frv_in_small_data_p): Re-enable for FDPIC.
3256         * config/frv/frv.h (SDA_BASE_REG): Remove comment about FDPIC.
3257         (FRV_GLOBAL_P): Removed.
3258         * config/frv/frv.md: Add modes to CONSTs.
3259         (movsi_got): New.
3260         (movsi_lo_sum_got): Use separate matches instead of match_dup.
3261         (movsi_high_pic, movsi_lo_sum_pic): Match on non-FDPIC only.
3262         (fdpic splittable operations): Match on flag_pic != 1.
3263         2003-09-22  Alexandre Oliva  <aoliva@redhat.com>
3264         * config/frv/frv.c (frv_asm_out_constructor,
3265         frv_asm_out_destructor): Pass to frv_assemble_integer the size in
3266         bytes, not bits.
3267         2003-09-19  Alexandre Oliva  <aoliva@redhat.com>
3268         * config/frv/frv.c (frv_assemble_integer): Reject complex
3269         expressions referencing function SYMBOL_REFs.
3270         * config/frv/frv.c (frv_function_symbol_referenced_p): New.
3271         (move_source_operand): Reject CONSTs that reference function
3272         SYMBOL_REFs on FDPIC.
3273         (frv_emit_movsi): If we get such a CONST, break it up.
3274         * config/frv/frv.h (CPP_SPEC): Define __FRV_FDPIC__ for -mfdpic.
3275         (TRANSFER_FROM_TRAMPOLINE): Use different definitions for FDPIC.
3276         * config/frv/frv.c (frv_print_operand) <I>: Recognize PLUS without
3277         MEM.
3278         (frv_assemble_integer): Don't use funcdesc for LABEL_REFs.
3279         (frv_trampoline_size): Increase for FDPIC.
3280         * config/frv/frv.h (TRAMPOLINE_ALIGNMENT): Bump to 64 for FDPIC.
3281         (TRANSFER_FROM_TRAMPOLINE): Handle FDPIC trampolines.
3282         * config/frv/frv.c (frv_legitimize_fdpic_address, frv_emit_movsi):
3283         Disable use of GOTOFF for now.
3284         (const_small_data_p, plus_small_data_p, frv_in_small_data_p):
3285         Disable use of small data in FDPIC for now.
3286         (frv_asm_output_mi_thunk): Implement for FDPIC.
3287         * config/frv/frv.h (SDA_BASE_REG): Set to -1 with FDPIC.
3288         * config/frv/frv.c (frv_asm_out_constructor): Use
3289         frv_assemble_integer for FDPIC pointers.
3290         (frv_asm_out_destructor): Likewise.
3291         * config/frv/frv.md (ldd): Fix order of operands.  Use
3292         address_operand for input.
3293         2003-09-18  DJ Delorie  <dj@redhat.com>
3294         * config/frv/frv.c (frv_legitimate_fdpic_operand_p): Remove UNSPEC_PIC.
3295         (unspec_got_name): Correct typo.
3296         (frv_emit_movsi): Pre-expand splittable GOTs.
3297         (frv_expand_fdpic_call): Rename gen_lddi to gen_ldd.
3298         * config/frv/frv.md (lddi): Fix syntax error, rename to ldd.
3299         (symGOT2reg_hilo, symGOTOFF2reg_hilo): New.
3300         * config/frv/t-frv: Add -mfdpic multilibs.
3301         * config/frv/frv.h (ASM_SPEC): Pass -mfdpic/-mno-fdpic.
3302         (TARGET_SWITCHES): Add -mno-fdpic, fix documentation.
3303         * config/frv/frv.c (frv_override_options): -mfdpic assumes
3304         flag_pic, default to 32-bit pics, require DWORD ops.
3305         (frv_override_options): Add W and Z constraints.
3306         (frv_expand_prologue): No pic prologue for -mfdpic.
3307         (frv_asm_output_mi_thunk): Support -mfdpic (soon).
3308         (frv_print_operand_memory_reference): Handle GOT constants.
3309         (frv_legitimate_address_p): Allow GOT constants.
3310         (frv_legitimize_address): Handle GOT addresses too.
3311         (frv_legitimate_fdpic_operand_p): New.
3312         (frv_legitimize_fdpic_address): New.
3313         (unspec_got_name): New.
3314         (frv_output_addr_const_extra): New.
3315         (frv_expand_fdpic_call): New.
3316         (frv_fdpic_fptr_operand): New.
3317         (gpr_or_int12_operand): Handle GOT operands.
3318         (int_2word_operand): Handle GOT operands.
3319         (fdpic_operand): New.
3320         (fdpic_splittable_got_operand): New.
3321         (fdpic_got12_operand): New.
3322         (frv_emit_movsi): Handle GOT operands.
3323         (frv_assemble_integer): -mfdpic doesn't use rofixups.
3324         (frv_print_operand): Support 'g' code for GOT operands.
3325         * config/frv/frv-protos.h: Add prototypes as needed.
3326         * config/frv/frv.md (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
3327         R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
3328         R_FRV_FUNCDESC_GOTLO, R_FRV_FUNCDESC_VALUE,
3329         R_FRV_FUNCDESC_GOTOFF12, R_FRV_FUNCDESC_GOTOFFHI,
3330         R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12, R_FRV_GOTOFFHI,
3331         R_FRV_GOTOFFLO): New.
3332         (movsi_high_got, movsi_lo_sum_got): New.
3333         (*movsi_pic): Don't use this splitter for -mfdpic.
3334         (addsi3): Allow GOT references also.
3335         (call, call_value): Handle -mfdpic separately.
3336         (call_fdpicdi, call_fdpicsi, lddi, call_value_fdpicdi,
3337         call_value_fdpicsi): New.
3338         (symGOT2reg, symGOT2reg_i, got splitters, symGOTOFF2reg,
3339         symGOTOFF2reg_i): New.
3340         * config/frv/frv.h (MASK_FDPIC): New.
3341         (TARGET_FDPIC): New.
3342         (TARGET_SWITCHES): Add -mfdpic.
3343         (FDPIC_FPTR_REGNO): New.
3344         (FDPIC_REGNO): New.
3345         (OUR_FDPIC_REG): New.
3346         (enum reg_class): Add FDPIC_REGS, FDPIC_FPTR_REGS, and
3347         FDPIC_CALL_REGS.
3348         (REG_CLASS_NAMES): Likewise.
3349         (REG_CLASS_CONTENTS): Likewise.
3350         (EXTRA_CONSTRAINT_FOR_Y): New, for 12-bit GOTs.
3351         (EXTRA_CONSTRAINT): Add it here.
3352         (FRV_GLOBAL_P): New.
3353         (OUTPUT_ADDR_CONST_EXTRA): New.
3354
3355 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
3356
3357         * config/sparc/sparc.h: Remove commented-out definitions of
3358         TARGET_EDOM and GEN_ERRNO_RTX.
3359
3360 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
3361
3362         * df.c, df.h, ra-build.c, ra-rewrite.c, ra.c, web.c: Replace
3363         df_analyse with df_analyze.
3364
3365 2004-02-24  Alan Modra  <amodra@bigpond.net.au>
3366
3367         * gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
3368         beginning of block.
3369
3370 2004-02-23  James E Wilson  <wilson@specifixinc.com>
3371
3372         * calls.c (precompute_arguments): Update comment.
3373
3374 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
3375
3376         * et-forest.c: Replace et_occurences with et_occurrences.
3377
3378 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
3379
3380         * cfgloop.h, loop-iv.c, loop-unswitch.c: Replace iv_analyse
3381         with iv_analyze.
3382
3383 2004-02-23  Kelley Cook  <kcook@gcc.gnu.org>
3384
3385         * config/i386/i386.c: Rename pni to sse3.
3386         * config/i386/i386.h: Likewise.
3387         * config/i386/i386.md: Likewise.
3388         * config/i386/pmmintrin.h: Likewise.
3389         * doc/extend.texi: Likewise.
3390         * doc/invoke.texi: Likewise.
3391
3392 2004-02-23  Zack Weinberg  <zack@codesourcery.com>
3393             Kazu Hirata  <kazu@cs.umass.edu>
3394
3395         Remove -fwritable-strings.
3396         * c-common.c (fix_string_type): Don't check
3397         flag_writable_strings.
3398         (fix_string_type): Likewise.
3399         * c-opts.c (set_std_c89): Don't initialize
3400         flag_writable_strings.
3401         (set_std_c99): Likewise.
3402         * common.opt (fwritable-strings): Remove.
3403         * flags.h: Remove the external declaration of
3404         flag_writable_strings.
3405         * opts.c (common_handle_option) <OPT_fwritable_strings>:
3406         Remove.
3407         * toplev.c (flag_writable_strings): Remove.
3408         (f_options): Remove an entry for writable-strings.
3409         * varasm.c (const_hash_1) <STRING_CST>: Don't check
3410         flag_writable_strings.
3411         (compare_constant) <STRING_CST>: Likewise.
3412         (build_constant_desc): Likewise.
3413         * config/darwin.c (machopic_select_section): Likewise.
3414         * config/arm/arm.c (AOF_ASSEMBLER): Likewise.
3415         * config/arm/pe.c (arm_pe_encode_section_info): Likewise.
3416         * config/iq2000/iq2000.c (iq2000_select_section): Likewise.
3417         * config/mips/mips.c (mips_select_section): Likewise.
3418         (mips_encode_section_info): Likewise.
3419         * config/pa/pa.c (pa_select_section): Likewise.
3420         * config/pa/pa.h (TEXT_SPACE_P): Likewise.
3421         * config/v850/v850.c (v850_select_section): Likewise.
3422         * doc/invoke.texi (-fwritable-strings): Remove.
3423         (-fno-const-strings): Don't mention -fwritable-strings.
3424         * doc/trouble.texi: Don't mention -fwritable-strings.
3425
3426 2003-02-23  Nathanael Nerode  <neroden@gcc.gnu.org>
3427
3428         * doc/install.texi: Update for switch of boehm-gc to autoconf 2.57.
3429
3430 2004-02-23  Dale Johannesen  <dalej@apple.com>
3431
3432         * config/rs6000.md (movsf_hardfloat): Add POWER form of nop.
3433         (movdf_hardfloat64):  Ditto.
3434         (movdf_softfloat64):  Ditto.
3435
3436 2004-02-23  Fariborz Jahanian <fjahanian@apple.com>
3437         * config/rs6000/rs6000.c (function_arg): call to
3438         rs6000_mixed_function_arg for DFmode moved to allow
3439         normal DFmode incoming register assignment.
3440
3441 2004-02-23  Dale Johannesen  <dalej@apple.com>
3442
3443         * config/rs6000.md (movsf_hardfloat): Accept CTR-to-CTR copy.
3444         (movdf_hardfloat64):  Ditto.
3445
3446 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
3447
3448         * convert.c, gcov-io.c, libgcov.c, sched-int.h, sibcall.c,
3449         config/rs6000/linux.h, config/rs6000/rs6000-c.c: Update
3450         copyright.
3451
3452 2004-02-23  Andrew Pinski  <pinskia@physics.uc.edu>
3453
3454         PR c/14156
3455         * c-typeck.c (c_expand_return): Change check for VAR_DECL
3456         to use DECL_P instead.
3457
3458         * config/rs6000/linux.h (OS_MISSING_POWERPC64): Define.
3459         * config/rs6000/linux64.h (OS_MISSING_POWERPC64): Define.
3460
3461 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
3462
3463         * Makefile.in (opts.o): Depend on target.h.
3464         * opts.c (decode_options): Use targetm.default_short_enums
3465         instead of DEFAULT_SHORT_ENUMS.
3466         * system.h (DEFAULT_SHORT_ENUMS): Poison.
3467         * target-def.h (TARGET_DEFAULT_SHORT_ENUMS): New.
3468         (TARGET_INITIALIZER): Add TARGET_DEFAULT_SHORT_ENUMS.
3469         * target.h (gcc_target): Add default_short_enums.
3470         * config/cris/cris.h: Remove a comment about
3471         DEFAULT_SHORT_ENUMS.
3472         * config/ip2k/ip2k.h: Likewise.
3473         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Change to
3474         TARGET_DEFAULT_SHORT_ENUMS.  Update the description.
3475
3476 2004-02-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
3477             Falk Hueffner  <falk@debian.org>
3478
3479         PR c/14188
3480         * builtins.c (expand_builtin_va_arg): Emit an informative message
3481         if a trap is generated.
3482         * c-typeck.c (build_function_call): Likewise.
3483
3484 2004-02-22  Jakub Jelinek  <jakub@redhat.com>
3485
3486         * gcov-io.c (gcov_open) [GCOV_LOCKED]: Use open + fdopen instead of
3487         fopen.
3488         * libgcov.c: Include sys/stat.h.
3489         * config/rs6000/linux.h (TARGET_HAS_F_SETLKW): Define.
3490         * config/rs6000/linux64.h (TARGET_HAS_F_SETLKW): Define.
3491         * config/sparc/linux.h (TARGET_HAS_F_SETLKW): Define.
3492         * config/sparc/linux64.h (TARGET_HAS_F_SETLKW): Define.
3493
3494 2004-02-22  Kazu Hirata  <kazu@cs.umass.edu>
3495
3496         * reorg.c: Remove comments about dead ports.
3497
3498 2004-02-22  Christopher Faylor  <cgf@redhat.com>
3499
3500         * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): *Really* specify
3501         extra host object file when targetting cygwin rather than generic
3502         object files.
3503
3504 2004-02-22  Josef Zlomek  <zlomekj@suse.cz>
3505
3506         Merge from tree-ssa:
3507         2003-11-20  Richard Henderson  <rth@redhat.com>
3508
3509                 * tree-inline.c (insert_decl_map): New.
3510                 (remap_decl, remap_type, remap_block, copy_body_r,
3511                 initialize_inlined_parameters, declare_return_variable,
3512                 remap_save_expr): Use it.
3513
3514         * function.c (copy_body_r): Add mapping from id->ret_label to
3515         id->ret_label.  Revert test for ret_label.
3516
3517 2004-02-22  Jakub Jelinek  <jakub@redhat.com>
3518
3519         * genoutput.c (process_template): Strip trailing whitespace in @
3520         templates and issue a warning if there was any.
3521
3522 2004-02-21  Christopher Faylor  <cgf@redhat.com>
3523
3524         * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): Specify extra host
3525         object file when targetting cygwin.
3526         * config/i386/t-cygwin (EXTRA_GCC_OBJS): Remove definition since it is
3527         overridden by top-level Makefile.
3528
3529 2004-02-21  Roger Sayle  <roger@eyesopen.com>
3530
3531         * config/i386/i386.c (standard_80387_constant_p): Also prefer
3532         the x87's load constant instructions when optimizing for size.
3533
3534 2004-02-21  Kazu Hirata  <kazu@cs.umass.edu>
3535
3536         * combine.c (SHIFT_COUNT_TRUNCATED): Remove.
3537         * defaults.h (SHIFT_COUNT_TRUNCATED): Provide the default.
3538         * expmed.c: Assume SHIFT_COUNT_TRUNCATED is always defined.
3539         * fold-const.c: Likewise.
3540         * simplify-rtx.c: Likewise.
3541
3542 2004-02-21  Alan Modra  <amodra@bigpond.net.au>
3543
3544         * combine.c (can_combine_p): Don't ignore SETs marked with
3545         REG_EH_REGION notes.
3546         (try_combine): When attemting to fix unrecognized insns, don't
3547         split a PARALLEL that contains the original i2.
3548
3549 2004-02-21  Ziemowit Laski  <zlaski@apple.com>
3550
3551         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to
3552         SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
3553         * config/i386/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): Define it.
3554         * config/rs6000/altivec.h: #error out if '-maltivec' not specified.
3555         (vector, pixel, bool): #define to __vector, __pixel and __bool.
3556         (__un_args_eq, __bin_args_eq, __tern_args_eq): Move to C-specific
3557         portion of header.
3558         (__altivec_link_error_invalid_argument): Remove prototype; will use
3559         __builtin_altivec_compiletime_error("vec_*") instead.
3560         (vec_*): Fix/complete set of available operation overloads given the
3561         existence of distinct 'vector bool ...' and 'vector pixel' types; tighten
3562         cv-correctness of pointer arguments; in C, always check for correct
3563         argument types before macro expansion.
3564         * config/rs6000/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): New macro
3565         defining Darwin/PowerPC-specific '-f[no-]altivec' and
3566         '-W[no-]altivec-long-deprecated' switches.
3567         * config/rs6000/rs6000-c (rs6000_cpu_cpp_builtins): Pre-define
3568         '__vector', '__pixel' and '__bool' macros using
3569         '__attribute__((altivec(...)))' types.
3570         * config/rs6000/rs6000.c (bool_char_type_node, bool_short_type_node,
3571         bool_int_type_node, pixel_type_node, bool_V16QI_type_node,
3572         bool_V8HI_type_node, bool_V4SI_type_node, pixel_V8HI_type_node):
3573         New type nodes.
3574         (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): New, for
3575         handling '-W[no-]altivec-long-deprecated'.
3576         (rs6000_override_options): Handle '-W[no-]altivec-long-deprecated'.
3577         (rs6000_expand_binop_builtin, rs6000_expand_ternop_builtin,
3578         altivec_expand_dst_builtin): Remove casts from integer literals.
3579         (altivec_expand_builtin): Likewise; handle expansion of new
3580         '__builtin_altivec_compiletime_error' function.
3581         (rs6000_init_builtins): Initialize 'vector bool ...' and 'vector pixel'
3582         types, and make them distinct from other vector types; register
3583         '__builtin_altivec_compiletime_error' function.
3584         (print_operand): For 'P', print a full target register name instead of
3585         merely its number.
3586         (rs6000_attribute_table): Add "altivec" attribute.
3587         (rs6000_handle_altivec_attribute): New function.
3588         * config/rs6000/rs6000.h (TARGET_OPTIONS): Describe
3589         '-m[no-]-warn-altivec-long' (which '-W[no-]altivec-long-deprecated'
3590         maps to).
3591         (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): Forward
3592         declare.
3593         (ALTIVEC_BUILTIN_COMPILETIME_ERROR): New built-in enumeration.
3594
3595 2004-02-20  James E Wilson  <wilson@specifixinc.com>
3596
3597         * config/ia64/ia64.md (shift_mix4left+1): Delete reload_completed
3598         check.
3599         (shift_mix4left+2): Delete redundant pattern.
3600
3601 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
3602
3603         * alias.c (OUTGOING_REGNO): Don't define the default.
3604         * builtins.c (OUTGOING_REGNO): Likewise.
3605         (INCOMING_REGNO): Likewise.
3606         (apply_args_register_offset): Always use OUTGOING_REGNO.
3607         * combine.c (OUTGOING_REGNO): Likewise.
3608         * sibcall.c (OUTGOING_REGNO): Likewise.
3609         * defaults.h (INCOMING_REGNO): Provide the default.
3610         (OUTGOING_REGNO): Likewise.
3611
3612 2004-02-21  Jan Hubicka  <jh@suse.cz>
3613
3614         * params.def (max-peeled-insns, max-completely-peeled-insns,
3615         max-once-peeled-insns): Set to 400.
3616
3617 2004-02-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3618
3619         PR c++/12007
3620         * dbxout.c (dbxout_parms): Check that DECL_RTL and DECL_INCOMING_RTL
3621         are set for parameters before outputing debugging information.
3622
3623 2004-02-20  Falk Hueffner  <falk@debian.org>
3624
3625         PR target/14201
3626         * config/alpha/alpha.md (*fix_truncsfsi_ieee): Fix typoed operand
3627         numbers.
3628
3629 2004-02-20  Per Bothner  <per@bothner.com>
3630
3631         * input.h:  Don't #include line-map.h.  It may cause link problems
3632         with undefined linemap_line_start when line-map.h is included but
3633         line-map.o is not linked, as currently happens with gengtype on
3634         compilers that don't support inline.
3635         * toplev.c:  So we do have to explicitly #include line-map.h here.
3636
3637 2004-02-20  Richard Henderson  <rth@redhat.com>
3638
3639         * doc/invoke.texi: Add -Wvariadic-macros.
3640
3641 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
3642
3643         * haifa-sched.c (sched_emit_insn): Remove.
3644         * sched-int.h: Remove the corresponding prototype.
3645
3646 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
3647
3648         Revert:
3649         2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
3650         * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
3651         * system.h (DEFAULT_SHORT_ENUMS): Poison.
3652         * config/cris/cris.h: Remove a comment about
3653         DEFAULT_SHORT_ENUMS.
3654         * config/ip2k/ip2k.h: Likewise.
3655         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
3656
3657 2004-02-20  Mohan Embar  <gnustuff@thisiscool.com>
3658             Tom Tromey  <tromey@redhat.com>
3659
3660         * doc/install.texi: Moved --disable-libgcj and
3661         --with-system-zlib documentation to new section for
3662         Java-specific options.
3663         Added explicit Cross-Compiler-Specific Options subheading.
3664         Added section for Java-specific options.
3665
3666 2004-02-20  Matt Kraai  <kraai@alumni.cmu.edu>
3667
3668         * doc/install.texi (Building the Ada compiler): Remove
3669         example.
3670
3671 2004-02-20  James E Wilson  <wilson@specifixinc.com>
3672
3673         * toplev.c (dump_file_index, dump_file): Put ce3 before rnreg.
3674
3675 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
3676
3677         * gcc.c (process_command): Allow translation of the copyright
3678         symbol but not the rest of the copyright message.
3679         * gcov.c (print_version): Likewise.  Allow translation of the
3680         message about warranty.
3681
3682 2004-02-20  Hans-Peter Nilsson  <hp@axis.com>
3683
3684         * config/cris/cris.md ("*andsi_movu"): Correct parentheses in
3685         predicate.
3686         ("*andsi_clear"): Tweak constraints to not match postincrement.
3687         Adjust the predicate to exclude a volatile memory reference.
3688         ("*andhi_clear"): Ditto.  Rename from "*andhi_clear_signed".
3689         ("*andhi_clear_unsigned"): Remove, non-matching pattern.
3690
3691 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
3692
3693         * move-if-change: Remove.
3694         * Makefile.in (s-mlib, c-parse.y, s-check, s-gencheck)
3695         (s-specs, s-options, s-config, s-conditions, s-flags, s-codes)
3696         (s-constants, s-emit, s-recog, s-opinit, s-extract, s-peep)
3697         (s-attr, s-attrtab, s-output, s-genrtl, s-modes, s-preds)
3698         (s-gtyp-gen, s-iov): Use the top level move-if-change.
3699         * objc/Make-lang.in (objc/objc-parse.y): Likewise.
3700
3701 2004-02-19  James E Wilson  <wilson@specifixinc.com>
3702
3703         * config/i386/i386.md (doloop_end_internal): Use nonimmediate_operand
3704         for operand2.  Add condition that requires register_operand operand2
3705         before reload.
3706
3707 2004-02-19  Richard Sandiford  <rsandifo@redhat.com>
3708             Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3709
3710         * config/mips/mips.c (mips_address_insns): Treat BLKmode specially.
3711         * config/mips/mips.md: Expand comment above unaligned loads and stores.
3712
3713 2004-02-19  Richard Henderson  <rth@redhat.com>
3714
3715         * Makefile.in (STRICT2_WARN): Add -Wno-variadic-macros.
3716         * tree.c (build0, build1, build2, build3, build4): Split out from...
3717         (build): ... here.  Call them.
3718         * tree.h (build, _buildN1, _buildN2, _buildC1, _buildC2): New.
3719
3720         * convert.c (convert_to_integer): Remove extra build argument.
3721         * tree-inline.c (expand_call_inline): Likewise.
3722
3723 2004-02-19  Richard Henderson  <rth@redhat.com>
3724
3725         * c-opts.c (warn_variadic_macros): New.
3726         (c_common_handle_option): Set it.
3727         (sanitize_cpp_opts): Copy it to cpp_opts.
3728         * c.opt (Wvariadic-macros): New.
3729         * cpplib.h (struct cpp_options): Add warn_variadic_macros.
3730         * cppinit.c (cpp_create_reader): Initialize it.
3731         * cppmacro.c (parse_params): Check it.
3732
3733 2004-02-19  David Daney <ddaney@avtrex.com>
3734
3735         PR preprocessor/14198
3736         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Add
3737         builtin_assert ("machine=mips")
3738
3739 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
3740
3741         * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
3742         * system.h (DEFAULT_SHORT_ENUMS): Poison.
3743         * config/cris/cris.h: Remove a comment about
3744         DEFAULT_SHORT_ENUMS.
3745         * config/ip2k/ip2k.h: Likewise.
3746         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
3747
3748 2004-02-19  Zack Weinberg  <zack@codesourcery.com>
3749
3750         * config/ia64/ia64.c (ia64_function_arg): In big-endian mode,
3751         when passing single SFmode quantities in general registers,
3752         put them in the high half.
3753
3754 2004-02-19  Aldy Hernandez  <aldyh@redhat.com>
3755
3756         * doc/md.texi (Standard Names): Document additional dependency on
3757         fix pattern.
3758
3759         * optabs.c (ftruncify): Remove.
3760         (expand_fix): Manually inline ftruncify above.
3761         (can_fix_p): Add FIXME note.
3762
3763 2004-02-19  Aldy Hernandez  <aldyh@redhat.com>
3764
3765         * config/rs6000/spe.md (spe_fixunssfsi2): Rename to
3766         spe_fixuns_truncsfsi2.
3767
3768         * config/rs6000/rs6000.md (fixunssfsi2): Rename to
3769         fixuns_truncsfsi2.
3770
3771 2004-02-19  Steve Ellcey  <sje@cup.hp.com>
3772
3773         * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
3774         * testsuite/gcc.dg/20040219-1.c: New test.
3775
3776 2004-02-19  Ulrich Weigand  <uweigand@de.ibm.com>
3777
3778         * config/s390/s390.md ("*subdf3_cc", "*subdf3_cconly", "*subsf3_cc",
3779         "*subsf3_cconly"): Subtraction is not commutative.
3780
3781 2004-02-19  Zack Weinberg  <zack@codesourcery.com>
3782
3783         * sdbout.c (preinit_symbols, sdbout_initialized): New statics.
3784         (sdbout_symbol): If called before sdbout_init, queue DECL for
3785         later and return.
3786         (sdbout_init): Set sdbout_initialized true, process decls
3787         queued earlier by sdbout_symbol.
3788         (sdbout_finish): Use size_t for index variable.
3789
3790 2004-02-19  Jeff Law  <law@redhat.com>
3791
3792         * fold-const.c (invert_truthvalue): Do not call invert_tree_comparison
3793         for unordered comparison codes.
3794
3795 2004-02-19  Ian Lance Taylor  <ian@wasabisystems.com>
3796
3797         * reload1.c (reload): Correct comment.
3798         (scan_paradoxical_subregs): Remove #if 0 and old comment.
3799         * doc/extend.texi (Local Reg Vars): Remove obsolete comment that
3800         register variables are not used by reload.
3801
3802 2004-02-19  Hans-Peter Nilsson  <hp@axis.com>
3803
3804         PR target/14209
3805         * config/cris/cris.md ("*andsi_movu", "*andhi_movu"): Tweak
3806         constraints to not match postincrement.  Adjust the predicate to
3807         exclude a volatile memory reference.
3808
3809 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
3810
3811         * config/mcore/mcore.h (ASM_OUTPUT_EXTERNAL): Remove.
3812
3813 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
3814
3815         * hooks.c (hook_void_tree_int): Remove.
3816         (hook_void_constcharptr): Likewise.
3817         (hook_int_void_0): Likewise.
3818         * hooks.h: Remove the prototypes for the above three
3819         functions.
3820         * targhooks.c (hook_bool_machine_mode_true): Remove.
3821         * targhooks.h: Remove the prototype for
3822         hook_bool_machine_mode_true.
3823
3824 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
3825
3826         * emit-rtl.c (subreg_realpart_p): Remove.
3827         (reorder_insns_with_line_notes): Likewise.
3828         (end_full_sequence): Likewise.
3829         * rtl.h: Remove the prototype for the above functions.
3830
3831 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
3832
3833         * config/arc/arc.h, config/arm/arm.h, config/frv/frv.h,
3834         config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
3835         config/iq2000/iq2000.h, config/m32r/m32r.h,
3836         config/pdp11/pdp11.h, config/sparc/sparc.h,
3837         config/xtensa/xtensa.h: Remove commented-out or useless
3838         definitions of CASE_VECTOR_PC_RELATIVE.
3839
3840 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
3841
3842         * loop.c (all_sets_invariant_p): Remove.
3843
3844 2004-02-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
3845
3846         PR target/12916
3847         * config/sparc/sparc.h (NPARM_REGS): Delete.
3848         (BASE_RETURN_VALUE_REG): Likewise.
3849         (BASE_OUTGOING_VALUE_REG): Likewise.
3850         (BASE_PASSING_ARG_REG): Likewise.
3851         (BASE_INCOMING_ARG_REG): Likewise.
3852         * config/sparc/sparc.c (sparc_strict_argument_naming): Test
3853         TARGET_ARCH64, not TARGET_V9.
3854         (function_arg_slotno): Dispatch based on the mode class.
3855         Handle vector modes like floating-point modes.
3856         (function_arg_record_value_1): Handle vector types like
3857         floating-point types.
3858         (function_arg_record_value_2): Likewise.
3859         Calculate regno after mode transformation.
3860         (function_arg): Handle vector modes like floating-point modes.
3861         (function_arg_partial_nregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX.
3862         If ARCH64, do not recheck alignment.
3863         (function_arg_pass_by_reference): Reorder the conditions.
3864         (sparc_return_in_memory): Move after function_arg_padding.
3865         Implement calling conventions for vector modes.
3866         (sparc_struct_value_rtx): Move after sparc_return_in_memory.
3867         (function_value): Move scope of 'regbase'.
3868         Implement calling conventions for vector modes.
3869         (sparc_builtin_saveregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX
3870         and BASE_INCOMING_ARG_REG by SPARC_INCOMING_INT_ARG_FIRST.
3871         (sparc_va_arg): Use function_arg_pass_by_reference to test whether
3872         the argument is passed by reference.
3873         (sparc_type_code): Handle vector types.
3874
3875 2004-02-19  Alan Modra  <amodra@bigpond.net.au>
3876
3877         * function.c (assign_parms): When building decl_rtl for
3878         SPLIT_COMPLEX_ARGS, ensure inner modes of concat match outer.
3879
3880 2004-02-19  Olivier Hainque  <hainque@act-europe.fr>
3881
3882         * expr.c (is_aligning_offset): Check if we are aligning the
3883         expressions's address over BIGGEST_ALIGNMENT in bytes, not
3884         in bits.
3885
3886 2003-02-18  Matt Austern  <austern@apple.com>
3887
3888         * gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined, and
3889         LIBGCC_SPEC isn't, set LIBGCC_SPEC to REAL_LIBGCC_SPEC.
3890         (init_gcc_spec): Don't define or call if REAL_LIBGCC_SPEC is
3891         defined.  Instead use REAL_LIBGCC_SPEC, unmodifed, as the libgcc
3892         spec string.
3893         * doc/tm.texi (REAL_LIBGCC_SPEC): Document.
3894
3895 2004-02-18  Zack Weinberg  <zack@codesourcery.com>
3896
3897         * dwarf2out.c (loclabel_num): Move outside #ifdef
3898         DWARF2_DEBUGGING_INFO and mark with GTY(()).
3899         * config/ia64/ia64.c (struct extern_func_list,extern_func_head):
3900         Mark with GTY(()).
3901         (ia64_hpux_add_extern_decl): Save the decl, not the name string.
3902         Allocate memory with ggc_alloc.  No need to copy anything.
3903         (ia64_hpux_file_end): Update to match.
3904
3905 2004-02-18  Jakub Jelinek  <jakub@redhat.com>
3906
3907         * config/i386/i386.c (override_options): Don't imply 3DNow! for -m64
3908         by default.
3909
3910 2004-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
3911
3912         * config/s390/s390.md ("divmodtidi3"): Use canonical RTL.
3913         ("divmodtisi3"): Likewise.
3914         ("udivmoddi4", "udivmodtidi3"): Likewise.
3915         ("divmodsi4", "divmoddisi3"): Likewise.
3916         ("udivmodsi4", "udivmoddisi3"): Likewise.
3917         ("udivsi3", "umodsi3"): Likewise.
3918
3919 2004-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
3920
3921         * config/s390/s390.c (s390_mainpool_start): Delete the main pool
3922         placeholder insn when chunkifying the pool.
3923
3924 2004-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3925
3926         * pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
3927         generating PIC code.
3928
3929 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
3930
3931         * config/h8300/h8300-protos.h: Add a prototype for
3932         h8300_expand_branch.
3933         * config/h8300/h8300.c (h8300_expand_branch): New.
3934         * config/h8300/h8300.md (ble, bleu, bge, bgeu, blt, bltu, bgt,
3935         bgtu, beq, bne): Call h8300_expand_branch().
3936
3937 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
3938
3939         * config/h8300/h8300-protos.h: Add prototypes for
3940         h8300_hard_regno_nregs and h8300_hard_regno_mode_ok.
3941         * config/h8300/h8300.c (h8300_hard_regno_nregs): New.
3942         (h8300_hard_regno_mode_ok): Likewise.
3943         * config/h8300/h8300.h (HARD_REGNO_NREGS): Call
3944         h8300_hard_regno_nregs().
3945         (HARD_REGNO_MODE_OK): Call h8300_hard_regno_mode_ok().
3946
3947 2004-02-18  Per Bothner  <per@bothner.com>
3948
3949         * cpphash.h (struct cpp_buffer):  Restore return_at_eof field.  This
3950         partly reverts my 2003-10-01 change, because we're back to logically
3951         including <command line> inside the main line.
3952         * cpplex.c (_cpp_get_fresh_line):  Check return_at_eof field.
3953         * cppmacro.c (cpp_scan_nooutput):  Set return_at_eof of current buffer.
3954         Fixes PR preprocessor/14103.
3955
3956         * cppfiles.c (_cpp_stack_include):  When appropriate decrement
3957         line_table's highest_location, fixing LAST_SOURCE_LINE_LOCATION.
3958         (cpp_push_include):  Don't need to increment pfile's line field.
3959         * line-map.h (LAST_SOURCE_LINE_LOCATION):  Only decrement by 1.
3960
3961         * c-ppoutput.c (print struct):  New first_time field.
3962         (init_pp_output):  Set print.first_time.
3963         (pp_file_change):  Use print.first_time, rather than MAIN_FILE_P,
3964         which is set also for (say) <command line>.  Clear print.first_time.
3965
3966         * cppfiles.c (struct _cpp_file):  Comment and type for pch field
3967         does not match the code, so fix both.
3968         (should_stack_file):  Inline include_pch_p function.
3969         (include_pch_p):  Remove pointless function.
3970
3971         * cpphash.h (struct cpp_buffer):  Remove unused search_cached field.
3972
3973 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
3974
3975         * config/h8300/h8300.md (four define_peephole2's): Use
3976         h8300_regs_ok_for_stm().
3977
3978 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
3979
3980         * config/h8300/h8300-protos.h: Update the prototype for
3981         expand_a_rotate().
3982         * config/h8300/h8300.c (expand_a_rotate): Remove the first
3983         argument.
3984         * config/h8300/h8300.md: Update all callers.
3985
3986 2004-02-18  Jan Hubicka  <jh@suse.cz>
3987
3988         * simplify-rtx.c (simplify_unary_operation): Deal with logicals on
3989         floats.
3990         (simplify_binary_operation): Deal with logicals on floats.
3991
3992         * i386.md (SSE fabs splitters): Emit new patterns.
3993         (SSE cmov splitters): Likewise.
3994         (sse_andv4sf3, sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3
3995         (sse_andv2df3, sse_nandv2df3, sse_iorv2df3, sse_xorv2df3): Do not use
3996         subregs.
3997         (sse_andsf3, sse_nandsf3, sse_xorsf3): Kill.
3998         (sse_anddf3, sse_nanddf3, sse_xordf3): Kill.
3999
4000 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
4001
4002         * config/h8300/h8300.c (expand_a_rotate): Don't generate insns
4003         by hand.
4004         (output_a_rotate): Tweak a comment.
4005         * config/h8300/h8300.md (*rotlqi3_1): Change to rotlqi3_1.
4006         (*rotlhi3_1): Change to rotlhi3_1.
4007         (*rotlsi3_1): Change to rotlsi3_1.
4008
4009 2004-02-18  Richard Earnshaw  <rearnsha@arm.com>
4010
4011         PR target/13866
4012         * arm.c (load_multiple_operation): Don't insist that the source reg
4013         of a post-increment component is the same as the destination.
4014         (store_multiple_operation): Likewise.
4015
4016 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
4017
4018      &nbs