OSDN Git Service

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