OSDN Git Service

2004-03-08 Joel Sherrill <joel@oarcorp.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-03-08  Joel Sherrill  <joel@oarcorp.com>
2
3         PR target/14480
4         * config/rs6000/t-rtems: Add missing file on branch.
5
6 2004-03-08  Roger Sayle  <roger@eyesopen.com>
7
8         PR middle-end/14289
9         * c-typeck.c (c_mark_addressable): A register variable should
10         be considered global if its not automatic, i.e. TREE_PUBLIC,
11         TREE_STATIC or DECL_EXTERNAL.
12         * function.c (put_var_into_stack): Call abort when placing a
13         hard register into the stack, if x_parm_reg_stack_loc is NULL.
14
15 2004-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
16
17         * config/s390/s390.md ("*extendqidi2_short_displ"): Add CC clobber.
18         ("*extendqisi2_short_displ"): Likewise.
19
20 2004-03-08  Kazu Hirata  <kazu@cs.umass.edu>
21
22         * config/pdp11/pdp11.c (comparison_operator_index): Remove.
23         (comp_operator): Likewise.
24         * config/pdp11/pdp11-protos.h: Remove corresponding
25         prototypes.
26
27 2004-03-08  Eric Botcazou  <ebotcazou@act-europe.fr>
28
29         * expr.c (highest_pow2_factor_for_type): Rename into
30         highest_pow2_factor_for_target.  Use DECL_ALIGN instead of
31         TYPE_ALIGN when the target is a COMPONENT_REF.
32         (expand_assignment): Ajust call to highest_pow2_factor_for_type.
33
34 2004-03-08  Alan Modra  <amodra@bigpond.net.au>
35
36         * config/rs6000/rs6000.c: Formatting fix.
37         (legitimate_offset_address_p): Correct offset range check.
38
39         * config/rs6000/rs6000.c (rs6000_override_options): Don't override
40         -msoft-float by -mcpu.  Consolidate similar code for MASK_MULTIPLE
41         and MASK_STRING.
42
43 2004-03-07  Aldy Hernandez  <aldyh@redhat.com>
44  
45         * config/rs6000/rs6000.md (ashrdi3): Do not call ashrdi3_no_power
46         for little endian.
47         ("ashrdi3_no_power"): Disable for little endian.
48         (ashrdi3): Same.
49
50 2004-03-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
51
52         * fold-const.c (tree_expr_nonnegative_p): Reformat checks for
53         builtins.
54
55 2004-03-08  Hans-Peter Nilsson  <hp@axis.com>
56
57         PR target/14471
58         * configure.ac (Target-specific assembler checks) <cris-*-*>: New
59         case, checking for -no-mul-bug-abort option.
60         * configure, config.in: Regenerate.
61         * doc/invoke.texi (CRIS Options): Document -mmul-bug-workaround
62         and -mno-mul-bug-workaround.
63         * config/cris/cris.md ("smulsi3_highpart", "umulsi3_highpart")
64         ("mulsidi3", "umulsidi3"): Prefix output template with "%!".
65         ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3"):
66         Ditto.  Make attribute "slottable" dependent on TARGET_MUL_BUG.
67         * config/cris/mulsi3.asm (__Mul) [__CRIS_arch_version >= 10]: Make
68         sure mulu.d is not last on cache-line.
69         * config/cris/cris.h (ASM_SPEC): Translate -mno-mul-bug-workaround
70         into -no-mul-bug-abort depending on HAVE_AS_MUL_BUG_ABORT_OPTION.
71         (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG): New macros.
72         (TARGET_SWITCHES): New options -mmul-bug-workaround and
73         -mno-mul-bug-workaround.
74         (TARGET_DEFAULT): Include TARGET_MASK_MUL_BUG.
75         (PRINT_OPERAND_PUNCT_VALID_P): Include '!'.
76         * config/cris/cris.c (cris_operand_extend_operator): Clarify
77         relation to MULT in head comment.
78         (cris_op_str): Abort for MULT.
79         (cris_print_operand) <case '!'>: New case.
80
81 2004-03-08  Alan Modra  <amodra@bigpond.net.au>
82
83         PR debug/11983
84         * dwarf2out.c (enum dw_val_class): Rename dw_val_class_float to
85         dw_val_class_vec.  Replace use throughout file.
86         (dw_float_const): Delete.
87         (dw_vec_const): New.
88         (dw_val_struct_union): Rename val_float to val_vec.  Replace use
89         throughout file.
90         (add_AT_vec): Rename from add_AT_float.  Add elt_size param.
91         (same_dw_val_p): Adjust vec comparison.  Use memcmp.
92         (size_of_die): Adjust dw_val_class_vec sizing.
93         (output_die): Output dw_val_class_vec.
94         (insert_int, extract_int, insert_float): New functions.
95         (add_const_value_attribute): Use insert_float for CONST_DOUBLE.
96         Handle CONST_VECTOR.
97         (add_location_or_const_value_attribute): Handle CONST_VECTOR.
98
99 2004-03-07  Aldy Hernandez  <aldyh@redhat.com>
100
101         * config/rs6000/rs6000.c (rs6000_parse_abi_options): SPE and
102         AltiVec abi cannot co-exist.
103
104         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Same.
105
106 2004-03-07  Jan Hubicka  <jh@suse.cz>
107
108         * except.c (emit_to_new_bb_before):  Break fallthru edges.
109
110 2004-03-07  Stephane Carrez  <stcarrez@nerim.fr>
111
112         * config/m68hc11/m68hc11.md ("*lshrsi3_const"): Disable for 68HC12.
113         ("*lshrsi3"): Also accept an immediate for 68HC12.
114         ("*ashrsi3_const"): Likewise.
115         ("*ashrsi3"): Likewise.
116         ("*ashlsi3_const"): Likewise.
117         ("*ashlsi3"): Likewise.
118         ("cmphi_1_hc12"): Compare two hard register by pushing them and
119         comparing with a pop; don't use a split for that.
120         ("cmphi split"): Disable compare split for 68HC12.
121
122         * config/m68hc11/m68hc11.c (m68hc11_notice_update_cc): Invalidate
123         the status operands if they have side effects.
124
125 2004-03-07  Kazu Hirata  <kazu@cs.umass.edu>
126
127         * defaults.h (LEGITIMIZE_ADDRESS): Provide a default
128         definition.
129         * config/arc/arc.h, config/fr30/fr30.h, config/frv/frv.h,
130         config/h8300/h8300.h, config/ia64/ia64.h,
131         config/mcore/mcore.h, config/mmix/mmix.h,
132         config/ns32k/ns32k.h, config/pdp11/pdp11.h,
133         config/stormy16/stormy16.h, config/v850/v850.h,
134         config/vax/vax.h (LEGITIMIZE_ADDRESS): Remove.
135         * doc/tm.texi (LEGITIMIZE_ADDRESS): Mention the default
136         definition.
137
138 2004-03-07  Roger Sayle  <roger@eyesopen.com>
139
140         * fold-const.c (fold) <IOR_EXPR>: Fold x | x as x.
141         <XOR_EXPR>: Fold x ^ x as zero.
142         <AND_EXPR>: Fold x & x as x.
143
144 2004-03-07  Roger Sayle  <roger@eyesopen.com>
145
146         * fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform
147         "foo++ == const" into "++foo == const+incr".
148
149 2004-03-07  Richard Sandiford  <rsandifo@redhat.com>
150
151         * config/mips/mips.c (mips_in_small_data_p): Return false if
152         TARGET_ABICALLS.
153
154 2004-03-06  Stephane Carrez  <stcarrez@nerim.fr>
155
156         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push
157         the stack register.
158         (expand_prologue): Don't make an interrupt or a trap handler a far
159         symbol.
160         (m68hc11_initial_elimination_offset): Likewise.
161
162 2004-03-06  Richard Henderson  <rth@redhat.com>
163
164         * config/alpha/alpha.c (alpha_in_small_data_p): False for functions.
165
166 2004-03-06  Kazu Hirata  <kazu@cs.umass.edu>
167
168         * config/ns32k/ns32k-protos.h: Add a prototype for
169         ns32k_notice_update_cc.
170         * config/ns32k/ns32k.c (ns32k_notice_update_cc): New.
171         * config/ns32k/ns32k.h (NOTICE_UPDATE_CC): Call
172         ns32k_notice_update_cc.
173
174 2004-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
175
176         * config/s390/s390.md ("load_multiple", "*load_multiple_di",
177         "*load_multiple_si"): Allow only if reload_completed.
178         ("store_multiple", "*store_multiple_di", "*store_multiple_si"):
179         Likewise.
180
181 2004-03-06  Kazu Hirata  <kazu@cs.umass.edu>
182
183         * config/vax/vax-protos.h: Add a prototype for
184         vax_notice_update_cc.
185         * config/vax/vax.c (vax_notice_update_cc): New.
186         * config/vax/vax.h (NOTICE_UPDATE_CC): Call
187         vax_notice_update_cc.
188
189 2004-03-06  David Edelsohn  <edelsohn@gnu.org>
190
191         * collect2.c (main): Only export initfunc and finifunc if
192         LD_INIT_SWITCH not defined.
193         (scan_prog_file): Only export constructors and destructors if
194         LD_INIT_SWITCH not defined.  Only export symbols not found in
195         shared objects.
196
197 2004-03-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
198
199         * pa.md (icacheflush): Reorder operands to make match_scratch operand
200         last.
201         * pa.h (INITIALIZE_TRAMPOLINE): Remove unnecessary scratch argument
202         from calls to gen_icacheflush.
203
204 2004-03-06  Richard Henderson  <rth@redhat.com>
205
206         * config/alpha/alpha.h (MASK_LONG_DOUBLE_128): New.
207         (TARGET_LONG_DOUBLE_128): New.
208         (TARGET_SWITCHES): Add long-double-{128,64}.
209         (TARGET_HAS_XFLOATING_LIBS): Default to TARGET_LONG_DOUBLE_128.
210         (LONG_DOUBLE_TYPE_SIZE): Honor TARGET_LONG_DOUBLE_128.
211         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New.
212         (WIDEST_HARDWARE_FP_SIZE): New.
213         (TARGET_CPU_CPP_BUILTINS): Define __LONG_DOUBLE_128__.
214         * config/alpha/alpha.c (override_options): Clear MASK_LONG_DOUBLE_128
215         if TARGET_VAX_FLOAT.
216         * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): Remove.
217         (TARGET_DEFAULT): Set MASK_LONG_DOUBLE_128.
218
219 2004-03-06  Richard Henderson  <rth@redhat.com>
220
221         * config/alpha/alpha.c (alpha_swapped_comparison_operator): Fix
222         botched rtx class conversion.
223
224 2004-03-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
225
226         * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P,
227         BUILTIN_CBRT_P, BUILTIN_ROOT_P): New macros.
228
229         * builtins.c (fold_builtin_logarithm, fold_builtin): Use new
230         macros.
231         * fold-const.c (fold_mathfn_compare, fold): Likewise.
232
233 2004-03-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
234
235         PR target/14343
236         * config/i386/i386.md (movv2di_internal): Conditionalize on
237         TARGET_SSE, not TARGET_SSE2.
238
239 2004-03-05  Chris Demetriou  <cgd@broadcom.com>
240
241         * config.gcc (mips64orion-*-elf*, mips64orionel-*-elf*): Delete
242         duplicated line.
243
244 2004-03-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
245
246         * builtins.c: Consistently use logN not log* in comments.
247
248 2004-03-05  Andreas Krebbel  <krebbel1@de.ibm.com>
249
250         * rtl.h (mem_expr_equal_p): Function prototype added.
251         * cfgcleanup.c (merge_memattrs): New function.
252         (flow_find_cross_jump): Call merge_memattrs for matching insns.
253         * emit-rtl.c (mem_expr_equal_p): New function.
254
255 2004-03-05  Ziemowit Laski  <zlaski@apple.com>
256
257         * objc/objc-act.c (synth_module_prologue): Const-qualify
258         objc_selector type if using the GNU runtime; fix generated
259         signatures for objc_msg_lookup and objc_msg_lookup_super
260         to match what GNU ObjC headers provide; reformat and clean up.
261         (synth_self_and_ucmd_args): Use previously constructed (and
262         hence possibly const-qualified) objc_selector type.
263
264 2004-03-05  Kazu Hirata  <kazu@cs.umass.edu>
265
266         * doc/tm.texi (HARD_REGNO_RENAME_OK): Document.
267
268 2004-03-05  Jason Merrill  <jason@redhat.com>
269
270         * tree.h (TYPE_HASH): Use TYPE_UID.
271         (TREE_HASH): New macro with old definition of TYPE_HASH.
272         * tree.c (build_type_attribute_variant): Use iterative_hash_object.
273         (build_array_type, build_function_type): Likewise.
274         (build_method_type_directly): Likewise.
275         (build_offset_type, build_complex_type): Likewise.
276         (type_hash_list, attribute_hash_list): Likewise. Now static.
277         * except.c: s/TYPE_HASH/TREE_HASH/.
278
279 2004-03-05  Bob Wilson  <bob.wilson@acm.org>
280
281         * config/xtensa/xtensa.c (function_arg): Handle 16-byte aligned args.
282         (xtensa_va_start): Initialize __va_stk to ($arg_ptr - 32).  Adjust
283         __va_ndx by 2 words when referencing an argument on the stack.
284         (xtensa_va_arg): Handle 16-byte aligned args.  Adjust __va_ndx by 2
285         words when an arg on the stack is first seen.
286
287 2004-03-05  Paul Brook  <paul@codesourcery.com>
288
289         * arm.h (ARM_FLAG_VFP): Remove.
290         (ARM_FLAG_ATPCS, CIRRUS_FIX_INVALID_INSNS): Renumber.
291         * netbsd-elf.h (ARM_FLAG_VFP): Remove.
292
293 2004-03-05  Paul Brook  <paul@codesourcery.com>
294
295         * function.c (assign_parms): Include pretend alignment offset.
296
297 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
298
299         * stor-layout.c (layout_type, case FUNCTION_TYPE): Make size
300         FUNCTION_BOUNDARY, not POINTER_SIZE * 2.
301
302 2004-03-05  Ian Lance Taylor  <ian@wasabisystems.com>
303
304         * configure.ac: When passing --enable-languages to subdir
305         configure when host != build, make sure we don't pass an empty
306         value.
307         * configure: Regenerate.
308
309 2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>
310
311         PR 13577
312         * gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
313         options.
314
315 2004-03-05  Paolo Bonzini  <bonzini@gnu.org>
316
317         * simplify-rtx.c (simplify_relational_operation): If
318         flag_wrapv is set, do not move terms between the two
319         side of a relational operator.
320
321 2004-03-05  Paolo Bonzini  <bonzini@gnu.org>
322
323         * rtlanal.c: Include target.h and output.h
324         (rtx_cost, address_cost, default_address_cost): Move from...
325         * cse.c (rtx_cost, address_cost, default_address_cost):
326         ... this file.
327         * rtl.h (rtx_cost, address_cost): Move under rtlanal.c.
328         * Makefile.in: Adjust dependencies.
329
330 2004-03-05  Paolo Bonzini <bonzini@gnu.org>
331
332         * cse.c (cse_end_of_basic_block): Make static.
333         * local-alloc.c (function_invariant_p): Move to
334         reload1.c.
335         * loop.c (libcall_other_reg, record_excess_regs):
336         Make static.
337         * reload1.c (function_invariant_p): Moved here
338         from local-alloc.c, made static.
339         * rtl.h (cse_end_of_basic_block, function_invariant_p,
340         libcall_other_reg, record_excess_regs): Remove
341         declarations.
342
343 2004-03-05  Kazu Hirata  <kazu@cs.umass.edu>
344
345         * config/m32r/m32r.c (signed_comparison_operator): Add a
346         missing parenthesis.
347
348 2004-03-04  Ian Lance Taylor  <ian@wasabisystems.com>
349
350         * ggc-common.c (gt_pch_restore): Don't unmap addr unless we are
351         going to call mmap again.  Read the file into the right place.
352         Give a fatal error if we have to relocate.
353
354 2004-03-04  Bob Wilson  <bob.wilson@acm.org>
355
356         * config/xtensa/xtensa.c (xtensa_return_in_msb): New function.
357         (TARGET_RETURN_IN_MSB): Define to xtensa_return_in_msb.
358
359 2004-03-05  Hans-Peter Nilsson  <hp@axis.com>
360
361         PR other/14354
362         * config/fp-bit.c (_fpdiv_parts): Do not round when pack_d would
363         round the same.  When rounding, clear bits that would cause a
364         second rounding in pack_d.
365         (_fpmul_parts): Ditto.  Remove #if 0:d code.
366
367 2004-03-04  Ziemowit Laski  <zlaski@apple.com>
368
369         PR c++/14425, c++/14426
370         * config/rs6000/altivec.h (vec_splat_s8, vec_splat_s16,
371         vec_splat_s32, vec_splat_u8, vec_splat_u16, vec_splat_u32):
372         Change C++ definitions to accept a 'const int' argument;
373         the prototypes already do.
374         * config/rs6000/rs6000.c (rs6000_common_init_builtins):
375         Rename v4si_ftype_char, v8hi_ftype_char, v16qi_ftype_char,
376         v4sf_ftype_v4si_char, v4si_ftype_v4sf_char, v4si_ftype_v4si_char,
377         v8hi_ftype_v8hi_char, v16qi_ftype_v16qi_char,
378         v16qi_ftype_v16qi_v16qi_char, v8hi_ftype_v8hi_v8hi_char,
379         v4si_ftype_v4si_v4si_char and v4sf_ftype_v4sf_v4sf_char to
380         end in ..._int; change them to accept an int instead of a char
381         as the last parameter.
382
383 2004-03-04  Phil Edwards  <phil@codesourcery.com>
384
385         * genmultilib:  Change '=' to '-' when translating option names
386         to directory names.
387
388 2004-03-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
389
390         * expr.c (expand_expr_real, case COMPONENT_REF): Get proper type of
391         stack slot for temp used for result of BLKmode but in integral mode.
392
393 2004-03-04  Jan Hubicka  <jh@suse.cz>
394
395         * reload.c (find_reloads): Reorganize if seqeunce to switch.
396
397         * cfgrtl.c (rtl_redirect_edge_and_branch):  Set the source BB as dirty.
398         (cfglayout_redirect_edge_and_branch):  Set the source BB as dirty.
399
400 2004-03-04  Steve Ellcey  <sje@cup.hp.com>
401
402         * config/ia64/ia64.md (divdf3_internal_thr): Fix algorithm.
403         * testsuite/gcc.dg/20040303-1.c: New test.
404
405 2004-03-04  Steven Bosscher  <stevenb@suse.de>
406
407         * ppro.md: Rewrite as a DFA pipeline description.
408         * i386.md: Remove all uses of the ppro_uops attribute.
409         * i386.c: (ix86_safe_ppro_uops, ix86_dump_ppro_packet,
410         ix86_reorder_insn, ix86_sched_reorder_ppro, ix86_sched_init,
411         ix86_sched_reorder, ix86_variable_issue,
412         struct ix86_sched_data, TARGET_SCHED_VARIABLE_ISSUE,
413         TARGET_SCHED_INIT, TARGET_SCHED_REORDER): Remove.
414         (ia32_use_dfa_pipeline_interface): Add TARGET_PENTIUMPRO.
415         (ia32_multipass_dfa_lookahead): Add TARGET_PENTIUMPRO.
416         * athlon.md (athlon_ssecmp_load): Fix comment
417
418 2004-03-04  Stuart Hastings  <stuart@apple.com>
419
420         * gcc/doc/invoke.texi: Document -mlongcall for Darwin/PPC.
421
422 2004-03-04  Stuart Hastings  <stuart@apple.com>
423
424         * gcc/config/i386/darwin.h: Darwin/x86 doesn't support CPUs before
425         686, tell Darwin assembler to allow prefetch insns, non-empty def
426         of SUBTARGET_OPTION_TRANSLATE_TABLE.
427
428 2004-03-04  DJ Delorie  <dj@redhat.com>
429
430         PR optimization/14282
431         * sched-deps.c (sched_analyze_insn): Allow a stack adjustment
432         between a call and the assignment of its return value.
433
434 2004-03-04  Kazu Hirata  <kazu@cs.umass.edu>
435
436         * config/h8300/h8300.c: Put a comment for every function.
437
438 2004-03-04  Kazu Hirata  <kazu@cs.umass.edu>
439
440         * config/h8300/h8300.md: Add comments about peephole2's.
441
442 2004-03-04  Steven Bosscher  <stevenb@suse.de>
443
444         * i386.h (TARGET_CPU_DEFAULT_nocona): Fix value.
445
446 2004-03-04  Jan Hubicka  <jh@suse.cz>
447
448         * cfgcleanup.c (thread_jump): Update call of cselib_init.
449         * cselib.c (cselib_record_memory): New static variable.
450         (cselib_lookup_mem, cselib_record_set, cselib_record_sets):
451         Give up on memories when asked for.
452         (cselib_init): Accept new argument.
453         * cselib.h (cselib_init): Update prototype.
454         * gcse.c (local_cprop_pass): Update call of cselib_init.
455         * loop.c (load_mems): Update call of cselib_init.
456         * postreload.c (reload_cse_regs_1): Update call of cselib_init.
457         * sched-deps.c (sched_analyze): Update call of cselib_init.
458
459 2004-03-04  David Edelsohn  <edelsohn@gnu.org>
460             GP <gp@qnx.com>
461
462         * config/rs6000/rs6000.c (output_function_profiler): Append @plt
463         when compiling PIC.
464
465 2004-03-04  Josef Zlomek  <zlomekj@suse.cz>
466
467         PR/14362
468         * var-tracking.c (track_expr_p): Do not track variables which
469         should be ignored for debugging purposes.
470
471 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
472
473         * real.c (encode_ibm_extended): Don't bother rounding low double.
474         * c-cppbuiltin.c (builtin_define_float_constants): Tweak MAX
475         when fmt->pnan < fmt->p.
476
477 2004-03-04  Eric Christopher  <echristo@redhat.com>
478
479         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Fix to check
480         only range of valid arg registers and fixed_regs.
481
482 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
483
484         PR target/14406
485         * config/rs6000/rs6000.md (abstf2, abstf2+1): Delete define_insn.
486         (abstf2, abstf2_internal): New define_expand.
487
488 2004-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
489
490         PR optimization/14235
491         * expr.c (convert_move): Copy the source to a new pseudo
492         when converting from a sub-word source to a larger-than-word
493         register which conflicts with the source.
494
495 2004-03-03  Zack Weinberg  <zack@codesourcery.com>
496
497         PR 13728
498         * c-decl.c (diagnose_mismatched_decls): Issue an error for two
499         parameters with the same name, unless one is a forward decl.
500         Do not issue a redundant-redeclaration warning for forward
501         decls of parameters.
502
503 2004-03-04  David Edelsohn  <edelsohn@gnu.org>
504
505         * doc/install.texi (*-ibm-aix*): Document use of Bash to speed up
506         configuration.
507
508 2004-03-03  Ian Lance Taylor  <ian@wasabisystems.com>
509
510         * ggc-zone.c (ggc_pch_write_object): Don't align file pointer.
511
512 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
513
514         * target-def.h (TARGET_OPTF): Delete.
515         * c-opts.c (TARGET_OPTF): Define.
516
517 2004-03-04  Jan Hubicka  <jh@suse.cz>
518
519         * cselib.c (cselib_finish): Fix another miss-application of my previous
520         patch.
521
522 2004-03-03  Mike Stump  <mrs@apple.com>
523
524         Add framework support for darwin.
525
526         * c-incpath.c: Include target.h and machmode.h.
527         (add_path): Use a consistent style for cpp_dir.  Initialize
528         p->construct to 0.
529         (add_cpp_dir_path): New.
530         (register_include_chains): Add use of extra_includes callback.
531         (hook_void_int): Add.
532         (target_c_incpath): Add.
533         * c-incpath.h (add_cpp_dir_path): New.
534         (target_c_incpath_s): Add.
535         (target_c_incpath): Add.
536         (C_INCPATH_INIT): Add.
537         * c-opts.c (c_common_missing_argument,
538         c_common_handle_option): Add -F argument processing.
539         * c.opt: Add -F argument processing.
540         * gcc.c (trad_capable_cpp): Add -F argument processing.
541         * cppfiles.c (find_file_in_dir): Update to use construct
542         callback.
543         (search_path_exhausted, cpp_get_path, cpp_get_buffer,
544         cpp_get_prev): New.
545         (_cpp_find_file): Use search_path_exhausted.
546         (make_cpp_dir): Initialize construct to 0.
547         * cpplib.h (missing_header_cb
548         cpp_get_path, cpp_get_buffer, cpp_get_file, cpp_get_prev): New.
549         (cpp_callbacks): Add missing_header
550         (cpp_dir): Add construct.
551         * target-def.h: (TARGET_OPTF): New.
552         * hooks.c (hook_void_int, hook_void_charptr): Add.
553         * hooks.h (hook_void_int, hook_void_charptr): Add.
554         * Makefile.in (c-incpath.o) : Add $(TARGET_H) and
555         $(MACHMODE_H) dependencies.
556         * doc/invoke.texi (Darwin Options): Document -F.
557         * doc/tm.texi (TARGET_EXTRA_INCLUDES): Add.
558         (TARGET_OPTF): Add.
559         * fix-header.c (target_c_incpath): Add.
560
561         * config/darwin-c.c: Add c-incpath.h include.
562         (using_frameworks, find_subframework_file,
563         find_subframework_header, add_system_framework_path,
564         frameworks_in_use, num_frameworks, max_frameworks,
565         add_framework, find_framework, struct framework_header,
566         framework_header_dirs, framework_construct_pathname,
567         find_subframework_file, add_system_framework_path,
568         add_framework_path, framework_defaults,
569         darwin_register_frameworks, find_subframework_header): Add.
570         * config/darwin.h (TARGET_EXTRA_INCLUDES, TARGET_OPTF): New.
571         (TARGET_OPTION_TRANSLATE_TABLE): Add -framework support.
572         (CPP_SPEC): Add __APPLE_CC__ support.
573         * t-darwin (darwin-c.o): Add c-incpath.h dependency.
574
575 2004-03-04  Jan Hubicka  <jh@suse.cz>
576
577         * cselib.c (cselib_finish): Fix miss-application of my previous
578         patch.
579
580 2004-03-03  Kazu Hirata  <kazu@cs.umass.edu>
581
582         * hooks.c (hook_tree_tree_identity): New.
583         * hooks.h: Add a prototype for hook_tree_tree_identity.
584         * stmt.c (expand_asm_operands): Use targetm.md_asm_clobbers
585         instead of MD_ASM_CLOBBERS.
586         * system.h (MD_ASM_CLOBBERS): Poison.
587         * target-def.h (TARGET_MD_ASM_CLOBBERS): New.
588         (TARGET_INITIALIZER): Add TARGET_MD_ASM_CLOBBERS.
589         * target.h (gcc_target): Add md_asm_clobbers.
590         * config/i386/i386.c (TARGET_MD_ASM_CLOBBERS): New.
591         (ix86_md_asm_clobbers): New.
592         * config/i386/i386.h (MD_ASM_CLOBBERS): Remove.
593         * doc/tm.texi (MD_ASM_CLOBBERS): Change to
594         TARGET_MD_ASM_CLOBBERS.
595
596 2004-03-03  Stuart Hastings  <stuart@apple.com>
597
598         * gcc/config.gcc: Arrange for Darwin/x86 to build libgcc_eh.a.
599
600 2004-03-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
601
602         * config/sparc/sparc.c (noov_compare64_op): Fix typo.
603
604         * config/sparc/sparc.h (ASM_FLOAT): Delete.
605         (ASM_DOUBLE): Likewise.
606         (ASM_LONGDOUBLE): Likewise.
607         * config/sparc/pbd.h (ASM_INT_OP): Delete.
608
609 2003-03-03  Richard Henderson  <rth@redhat.com>
610
611         PR opt/13862
612         * cselib.c (cselib_record_sets): Don't record multiple sets in
613         asm insns.
614
615 2004-03-03  Mostafa Hagog  <mustafa@il.ibm.com>
616
617         * common.opt: Add description of the new -fgcse-after-reload flag.
618
619         * flags.h (flag_gcse_after_reload): Declaration of global variable.
620
621         * gcse.c (reg_used_on_edge ,reg_set_between_after_reload_p,
622         reg_used_between_after_reload_p, rtx get_avail_load_store_reg,
623         is_jump_table_basic_block, bb_has_well_behaved_predecessors,
624         get_bb_avail_insn, hash_scan_set_after_reload,
625         compute_hash_table_after_reload, eliminate_partially_redundant_loads,
626         gcse_after_reload, get_bb_avail_insn): New functions to implement
627         gcse-after-reload.
628         (gcse_after_reload_main): New function, the main entry point to
629         gcse-after-reload.
630
631         * rtl.h (gcse_after_reload_main): Declaration of the new function.
632
633         * opts.c (common_handle_option): Handle the -fgcse-after-reload flag.
634
635         * toplev.c (flag_gcse_after_reload): Initialization.
636
637         * passes.c (rest_of_handl_gcse2): Call gcse_after_reload_main.
638
639         * params.def (PARAM_GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
640         PARAM_GCSE_AFTER_RELOAD_CRITICAL_FRACTION): New parameters for tuning
641         the gcse after reload optimization.
642
643         * params.h (GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
644         GCSE_AFTER_RELOAD_CRITICAL_FRACTION): Two macros to access the tuning
645         parameters.
646
647         * doc/invoke.texi: Documentation for the new flag gcse-after-reload.
648
649 2004-03-03  Nicolas Pitre <nico@cam.org>
650
651         * config/arm/ieee754-df.S (muldf3, divdf3): Fix denormalization of
652         small negative values.
653
654 2004-03-03  Jan Hubicka  <jh@suse.cz>
655
656         * cselib.c (hash_table):  Remove GTY marker.
657         (reg_values): Turn into array.
658         (used_regs): Likewise.
659         (n_used_regs): New static variable.
660         (reg_values_old): Kill.
661         (clear_table): Update uses of arrays.
662         (cselib_lookup): Likewise.
663         (cselib_record_set): Likewise.
664         (cselib_init): Likewise.
665         (cselib_finish): Likewise.
666         (cselib_udpate_varray_sizes): Kill.
667         * cselib.h (cselib_update_varray_sizes): Kill.
668
669 2004-03-03  Paul Brook  <paul@codesourcery.com>
670
671         * flow.c (ior_reg_cond, and_reg_cond): Remove stray ")".
672
673 2004-03-03  Jan Hubicka  <jh@suse.cz>
674
675         * ggc-common.c (ggc_alloc_cleared_stat, ggc_realloc_stat):
676         Rename from ...; make statistics transparent.
677         (ggc_alloc_cleared, ggc_realloc_stat): ... these.
678         (loc_descriptor): New structure.
679         (hash_descriptor, eq_descriptor, loc_descriptor, cmp_statistics,
680         add_statistics):
681         New static function.
682         (ggc_record_overhead, dump_statistics): New global function.
683         * ggc-none.c (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
684         ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Rename
685         from ...; accept locations
686         (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
687         ggc_realloc, ggc_alloc_typed):  ... this one.
688         from ...; accept locations
689         * ggc-page.c (ggc_alloc_typed_stat, ggc_alloc_zone_stat,
690         ggc_alloc_stat): Rename from ... ; pass locations
691         * ggc-page.c (ggc_alloc_typed, ggc_alloc_zone, ggc_alloc):
692         ... this one.
693         (ggc_alloc_stat): Record overehead.
694         * ggc.h (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
695         ggc_realloc, ggc_alloc_typed):  Turn to macros
696         (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
697         ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Declare.
698         (dump_ggc_loc_satistics, ggc_record_overehead): Declare.
699         * langhooks.h (lhd_make_node): Declare.
700         (LANG_HOOKS_MAKE_TYPE): Default to new function,
701         * langhooks.c (lhd_make_node): New.
702         * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Rename from ... ; pass
703         locations.
704         (rtx_alloc, swallow_copy_rtx): ... this one.
705         * rtl.h (rtx_alloc, swallow_copy_rtx): Turn to macros.
706         * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Declare.
707         * toplpev.c (finalize): Dump stats.
708         * tree.c (make_node_stat, copy_node_stat, make_tree_vec_stat,
709         build_tree_list_stat, tree_cons_stat, build?_stat,  build_decl_stat):
710         Rename from ... ; pass locators.
711         (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
712         build?,  build_decl): Declare.
713         * tree.h (make_node_stat, copy_node_stat, make_tree_vec_stat,
714         build_tree_list_stat, tree_cons_stat, build?_stat,  build_decl_stat):
715         Declare.
716         (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
717         build?,  build_decl): New macros.
718         * Makefile.in (RTL_H, TREE_H): Add statistics.h dependency.
719         * statistics.h: New file.
720
721 2004-03-03  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
722             Richard Sandiford  <rsandifo@redhat.com>
723
724         * config/mips/mips.h (MASK_FIX_SB1): Bump.
725         (MASK_FIX_R4400, TARGET_FIX_R4400): New macros.
726         (TARGET_SWITCHES): Add -mfix-r4400 and -mno-fix-r4400.
727         * config/mips/mips.c (mips_output_division): Fill the branch delay
728         slot with a nop if TARGET_FIX_R4000.  Extend R4000 workarounds to
729         TARGET_FIX_R4400.
730         (mips_output_division): Adjust accordingly.
731         (override_options): Make -march=r4400 imply -mfix-r4400 by default.
732         * doc/invoke.texi: Document -mfix-r4400 and new errata workarounds.
733
734 2004-03-03  Paolo Bonzini  <bonzini@gnu.org>
735
736         * alias.c (rtx_equal_for_memref_p): Use predicates
737         to test rtx classes and new rtx class codes, possibly
738         splitting conditionals that tested against '<' and 'o'.
739         * caller-save.c (save_call_clobbered_regs): Likewise.
740         * combine.c (contains_muldiv, find_split_point, subst,
741         combine_simplify_rtx, simplify_if_then_else,
742         simplify_set, simplify_logical, expand_compound_operation,
743         make_compound_operation, if_then_else_cond, known_cond,
744         apply_distributive_law, cached_nonzero_bits,
745         cached_num_sign_bit_copies, simplify_shift_const,
746         gen_binary, simplify_comparison, update_table_tick,
747         record_value_for_reg, get_lsat_value_validate): Likewise.
748         * cse.c (mention_regs, find_best_addr, find_comparison_args,
749         fold_rtx, cse_insn, invalidate_memory, cse_basic_block):
750         Likewise.
751         * emit-rtl.c (copy_insn_1): Likewise.
752         * expr.c (force_operand): Likewise.
753         * final.c (final_scan_insn, get_mem_expr_from_op): Likewise.
754         * flow.c (notice_stack_pointer_modification_1,
755         invalidate_mems_from_autoinc, ior_reg_cond, not_reg_cond,
756         and_reg_cond, elim_reg_cond): Likewise.
757         * function.c (update_epilogue_consts): Likewise.
758         * genattrtab.c (attr_rtx_1): Likewise.
759         * genopinit.c (gen_insn): Likewise.
760         * integrate.c (subst_constants): Likewise.
761         * jump.c (reversed_comparison_code_parts,
762         reversed_comparison_code, delete_related_insns,
763         rtx_renumbered_equal_p): Likewise.
764         * local-alloc.c (block_alloc): Likewise.
765         * loop.c (rtx_equal_for_prefetch_p, maybe_eliminate_biv,
766         canonicalize_condition): Likewise.
767         * loop-iv.c (simplify_using_conditions, iv_number_of_iterations):
768         Likewise.
769         * optabs.c (add_equal_node, expand_binop): Likewise.
770         * predict.c (estimate_probability): Likewise.
771         * ra-debug.c (ra_print_rtx_2op, ra_print_rtx): Likewise.
772         * recog.c (validate_replace_rtx_1, comparison_operator,
773         offsettable_address_p, constrain_operands): Likewise.
774         * reg-stack.c (swap_rtx_condition_1, subst_stack_regs_pat):
775         Likewise.
776         * regclass.c (scan_one_insn): Likewise.
777         * regmove.c (stable_and_no_regs_but_for_p): Likewise.
778         * regrename.c (kill_autoinc_value): Likewise.
779         * reload.c (find_reusable_reload, find_reloads,
780         reg_overlap_mentioned_for_reload_p): Likewise.
781         * reload1.c (gen_reload, delete_address_reloads_1): Likewise.
782         * rtl.c (copy_rtx): Likewise.
783         * rtl.h (CONSTANT_P, INSN_P): Likewise.
784         * rtlanal.c (commutative_operand_precedence): Likewise.
785         * sched-deps.c (conditions_mutex_p): Likewise.
786         * sched-rgn.c (is_cfg_nonregular): Likewise.
787         * simplify-rtx.c (simplify_gen_binary,
788         simplify_gen_relational, simplify_replace_rtx,
789         simplify_unary_operation, simplify_binary_operation,
790         simplify_ternary_operation, simplify_rtx): Likewise.
791         * unroll.c (reg_dead_after_loop): Likewise.
792         * config/alpha/alpha.c (alpha_swapped_comparison_operator,
793         print_operand): Likewise.
794         * config/arc/arc.c (proper_comparison_operator): Likewise.
795         * config/arm/arm.c (arm_arm_address_cost, arm_select_cc_mode):
796         Likewise.
797         * config/avr/avr.c (_reg_unused_after): Likewise.
798         * config/frv/frv.c (frv_ifcvt_modify_tests,
799         frv_ifcvt_modify_insn, frv_pack_insn): Likewise.
800         * config/i386/i386.c (ix86_comparison_operator,
801         ix86_carry_flag_operator, fcmov_comparison_operator,
802         arith_or_logical_operator, print_operand,
803         ix86_expand_binary_operator, ix86_binary_operator_ok):
804         Likewise.
805         * config/i386/i386.md: Likewise.
806         * config/ia64/ia64.c (not_postinc_memory_operand,
807         ia64_print_operand, update_set_flags, errata_emit_nops):
808         Likewise.
809         * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS,
810         CONSTRAINT_OK_FOR_S): Likewise.
811         * config/ip2k/ip2k.c (mdr_resequence_xy_yx,
812         mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
813         ip2k_xexp_not_uses_reg_for_mem, ip2k_xexp_not_uses_reg_p,
814         ip2k_composite_xexp_not_uses_reg_p, ip2k_unary_operator):
815         Likewise.
816         * config/iq2000/iq2000.c (cmp_op, symbolic_expression_p,
817         eqne_comparison_operator, signed_comparison_operator):
818         Likewise.
819         * config/mips/mips.c (cmp_op, symbolic_expression_p):
820         Likewise.
821         * config/mmix/mmix (mmix_foldable_comparison_operator,
822         mmix_comparison_operator): Likewise.
823         * config/pa/pa.c (hppa_legitimize_address): Likewise.
824         * config/rs6000/rs6000.c (stmw_operation,
825         branch_comparison_operator, trap_comparison_operator,
826         ccr_bit): Likewise.
827         * config/rs6000/rs6000.h (SELECT_CC_MODE): Likewise.
828         * config/s390/s390.c (s390_alc_comparison,
829         s390_slb_comparison):L Likewise.
830         * config/sh/sh.c (gen_block_redirect, reg_unused_after):
831         Likewise.
832         * config/sparc/sparc.c (eq_or_neq, normal_comp_operator,
833         noov_compare_op, noov_compare64_op, v9_regcmp_op,
834         emit_hard_tfmode_operation, reg_unused_after)
835         * doc/md.texi, doc/rtl.texi: Likewise.
836
837         * ra-debug.c: Add 2004 to list of copyright years.
838         * unroll.c: Likewise.
839
840         * combine.c (simplify_logical): Remove dummy test,
841         (apply_distributive_law): Fix typo in comment.
842         GET_CODE (x) == AND so x is a commutative binary op.
843         * jump.c (delete_related_insns): simplify loop
844         condition, move testing of RTX codes inside the loop.
845         (rtx_renumbered_equal_p): do not use RTX_CODE.
846         * rtl.c (rtx_class): Declare as enum rtx_class.
847         * rtl.def (EQ, NE, UNEQ, LTGT, UNORDERED, ORDERED):
848         Move to RTX_COMM_COMPARE class.
849         (HIGH, SYMBOL_REF, LABEL_REF, CONST, CONST_INT, CONST_DOUBLE):
850         Move to RTX_CONST_OBJ class.
851         * rtl.h (enum rtx_class): New declaration,
852         (RTX_OBJ_MASK, RTX_OBJ_RESULT, RTX_COMPARE_MASK,
853         RTX_COMPARE_RESULT, RTX_ARITHMETIC_MASK, RTX_ARITHMETIC_RESULT,
854         RTX_BINARY_MASK, RTX_BINARY_RESULT, RTX_COMMUTATIVE_MASK,
855         RTX_COMMUTATIVE_RESULT, RTX_NON_COMMUTATIVE_RESULT,
856         RTX_EXPR_FIRST, RTX_EXPR_LAST, UNARY_P, BINARY_P,
857         ARITHMETIC_P, COMMUTATIVE_ARITHMETIC_P, COMPARISON_P,
858         SWAPPABLE_OPERANDS_P, NON_COMMUTATIVE_P, COMMUTATIVE_P,
859         OBJECT_P): New macros.
860         * config/sparc/sparc.c (noov_compare_op): Remove register
861         from parameter.
862
863 2004-03-03  Kazu Hirata  <kazu@cs.umass.edu>
864
865         * target.h: Remove texi jargons in comments.
866
867 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
868
869         * config/h8300/lib1funcs.asm (___fixunssfsi): Change the
870         threshold to 0x4f.
871
872         Revert:
873         2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
874         * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
875         as well.
876         * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
877         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
878
879 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
880
881         * doc/md.texi (cbranchmode4): New.
882
883 2004-03-02  Eric Christopher  <echristo@redhat.com>
884
885         * config/mips/mips16.S: Change fixsfsi and fixdfsi to
886         fix_trunc.
887         * config/mips/mips.c (mips_init_libfuncs): Change accordingly.
888         * config/mips/t-elf (LIB1ASMFUNCS): Ditto.
889         * config/mips/t-isa3264 (LIB1ASMFUNCS): Ditto.
890         * config/mips/t-r3900 (LIB1ASMFUNCS): Ditto.
891
892 2004-03-02  Richard Henderson  <rth@redhat.com>
893
894         PR middle-end/11767
895         * coverage.c (coverage_counter_ref): Set MEM_NOTRAP_P.
896         * optabs.c (prepare_cmp_insn): Force trapping memories to registers
897         before the compare, if flag_non_call_exceptions.
898
899 2004-03-02  Richard Henderson  <rth@redhat.com>
900
901         PR middle-end/14327
902         * stmt.c (expand_computed_goto): Do do_pending_stack_adjust before
903         emitting the label, not after.
904
905 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
906
907         * config/m68hc11/m68hc11.c (m68hc11_addr_mode): New variable.
908         (m68hc11_mov_addr_mode): Likewise.
909         (m68hc11_override_options): Initialize them based on target.
910         (register_indirect_p): Allow a MEM for indirect addressing modes and
911         use flags to control what is allowed.
912         (m68hc11_small_indexed_indirect_p): Use m68hc11_mov_addr_mode for
913         supported addressing modes.
914         (m68hc11_register_indirect_p): Use m68hc11_addr_mode.
915         (go_if_legitimate_address_internal): Likewise.
916         (m68hc11_indirect_p): Likewise and check the mode.
917         (print_operand): Allow a (MEM (MEM)) and generate indirect addressing.
918
919 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
920
921         * builtins.c (BUILTIN_SETJMP_FRAME_VALUE): Remove.
922         (expand_builtin_setjmp_setup): Use
923         targetm.builtin_setjmp_frame_value instead of
924         BUILTIN_SETJMP_FRAME_VALUE.
925         * system.h (BUILTIN_SETJMP_FRAME_VALUE): Poison.
926         * target-def.h (TARGET_BUILTIN_SETJMP_FRAME_VALUE): New.
927         (TARGET_INITIALIZER): Add TARGET_BUILTIN_SETJMP_FRAME_VALUE.
928         * target.h (gcc_target): Add builtin_setjmp_frame_value.
929         * targhooks.c (default_builtin_setjmp_frame_value): New.
930         * targhooks.h: Add a prototype for
931         default_builtin_setjmp_frame_value.
932         * doc/tm.texi (BUILTIN_SETJMP_FRAME_VALUE): Change to
933         TARGET_BUILTIN_SETJMP_FRAME_VALUE.
934
935 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
936
937         * config/m68hc11/m68hc11.md (move peephole2): New peepholes to optimize
938         sequences of moves.
939         (add peepholes): New peepholes to optimize sequences adding small
940         constants.
941         (bset peepholes): New peepholes to transform an OR in a bset form
942         (bclr peepholes): Likewise for bclr form.
943         (cmp peepholes): New peepholes to avoid register copies when comparing.
944
945 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
946
947         * config/m68hc11/m68hc11.md ("*pushdi_internal"): New insn and split
948         to separate push from moves.
949         ("*pushdf_internal"): Likewise.
950         ("*pushsf_internal"): Likewise.
951         ("*pushsi_internal"): Likewise.
952         ("movdi_internal"): Use define_insn_and_split; non push operand.
953         ("movdf_internal"): Likewise.
954         ("movsf_internal"): Likewise.
955         ("movsi_internal"): Likewise.
956         ("*movhi_68hc12", "*addhi3_68hc12"): Fix and tune constraints
957         ("*addhi3", "*subhi3", "*andhi3_mem", "*iorhi3_mem"): Likewise.
958         ("*ashlsi3_const1", "*lshrsi3_const1"): Likewise.
959
960 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
961
962         * config/m68hc11/m68hc11.md ("tstqi_z_used"): Use define_insn_and_split.
963         ("cmphi_z_used", "cmpqi_z_used"): Likewise.
964         ("movstrictsi", "movstricthi", "movstrictqi"): Likewise.
965         ("anddi3", "andsi3", "iordi3", "iorsi3"): Likewise.
966         ("xordi3", "xorsi3", "*logicalsi3_zexthi"): Likewise.
967         ("*logicalsi3_zextqi", "*logicalhi3_zexthi_ashift8"): Likewise.
968         ("logicalhi3_zexthi", "*logicalsi3_silshr16"): Likewise.
969         ("*logicalsi3_silshl16", "*logicalsi3_silshl16_zext"): Likewise.
970         ("*ashldi3_const32", "*ashldi3_const1", "addsi_silshr16"): Likewise.
971         ("addsi_andshr16", "*ashlsi3_const16_zexthi"): Likewise.
972         ("*lshrdi3_const32", "*lshrdi_const1"): Likewise.
973
974 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
975
976         * config/m68hc11/m68hc11.md (SOFT_TMP_REGNUM): Define.
977         (SOFT_XY_REGNUM): Define.
978         (cmp split): Use the above instead of hard coded numbers.
979         (8-bit op split): No need to check the mode; allow Q_REG.
980         (ashift split): Adjust the first operand if it uses the SP and we
981         are pushing the shifted value.
982         (plus shift split): Fix when a source is in register D+X.
983         ("doloop_end"): Pass dummy arguments to gen_rtx_NE.
984
985 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
986
987         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix when
988         comparing with Z register.
989
990 2004-03-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
991
992         * cfgloop.h (struct loop_desc): Removed.
993         (struct loop): Fields simple, desc and has_desc removed.
994         (simple_loop_p, count_loop_iterations): Declaration removed.
995         * cfgloopanal.c (struct unmark_altered_insn_data): Removed.
996         (unmark_altered, blocks_invariant_registers, unmark_altered_insn
997         blocks_single_set_registers, invariant_rtx_wrto_regs_p_helper,
998         invariant_rtx_wrto_regs_p, test_for_iteration, constant_iterations,
999         simple_loop_exit_p, variable_initial_value, variable_initial_values,
1000         simple_condition_p, simple_increment, count_strange_loop_iterations,
1001         inverse, fits_in_mode_p, simple_loop_p, count_loop_iterations):
1002         Removed.
1003         * loop-iv.c (check_simple_exit, find_simple_exit): Update comments.
1004
1005 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
1006
1007         * genattrtab.c: Don't handle MATCH_INSN.
1008         * genrecog.c: Likewise.
1009         * gensupport.c: Likewise.
1010         * rtl.def (match_insn): Remove.
1011         * doc/md.texi (match_insn, match_insn2): Remove.
1012
1013 2004-03-02  Mark Mitchell  <mark@codesourcery.com>
1014
1015         * doc/c-tree.texi (DECL_ASSEMBLER_NAME): Mention that using this
1016         macro results in memory allocation.
1017
1018 2004-03-02  David O'Brien  <obrien@FreeBSD.org>
1019
1020         * config/freebsd-spec.h (FBSD_DYNAMIC_LINKER): Add.
1021         * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Define
1022         %(fbsd_dynamic_linker),
1023         (LINK_SPEC): Use %(fbsd_dynamic_linker), and sync style with
1024         config/i386/freebsd.h
1025         * config/arm/freebsd.h: Ditto.
1026         * config/i386/freebsd.h: Ditto.
1027         * config/i386/freebsd64.h: Ditto.
1028         * config/ia64/freebsd.h: Ditto.
1029         * config/rs6000/sysv4.h: Ditto.
1030         * config/sparc/freebsd.h: Ditto.
1031
1032 2004-03-02  Loren James Rittle  <ljrittle@acm.org>
1033
1034         * gcc/doc/install.texi (*-*-freebsd*): Update target information.
1035
1036 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
1037
1038         * rtl.def (define_combine): Remove.
1039
1040 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
1041
1042         * config/h8300/h8300.md: Tweak formatting.
1043
1044 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
1045
1046         * config/h8300/h8300.md (*cmphi_h8300): Rename to
1047         *cmphi_h8300_znvc.
1048         (*cmphi_h8300hs): Rename to *cmphi_h8300hs_znvc.
1049
1050 2004-03-01  Mark Mitchell  <mark@codesourcery.com>
1051
1052         PR bootstrap/14356
1053         * gcc.c (process_command): Remove const-qualification from argv.
1054         (main): Likewise.
1055
1056 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
1057
1058         * config/h8300/h8300.md (pushqi1_h8300hs): Rename to
1059         pushqi1_h8300hs_advanced.  Adjust its caller.
1060         (pushhi1_h8300hs): Rename to pushhi1_h8300hs_advanced.
1061         Adjust its caller.
1062
1063 2004-03-02  Nicolas Roche  <roche@act-europe.fr>
1064
1065         * Makefile.in (install-libgcc, install-multilib): Pass
1066         mkinstalldirs var to libgcc.mk.
1067
1068 2004-03-01  Kazu Hirata  <kazu@cs.umass.edu>
1069
1070         * system.h (DBX_OUTPUT_STANDARD_TYPES): Poison.
1071         * doc/tm.texi (DBX_OUTPUT_STANDARD_TYPES): Remove.
1072
1073 2004-03-01  Kazu Hirata  <kazu@cs.umass.edu>
1074
1075         * config/h8300/h8300.c (gtle_operator): Accept GT and LE.
1076         * config/h8300/h8300.md: Split several peephole2's, each into
1077         two.
1078
1079 2004-03-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1080
1081         * dominance.c (recount_dominator): Handle postdominators.
1082
1083 2004-03-01  Richard Sandiford  <rsandifo@redhat.com>
1084
1085         * config/mips/mips-protos.h (enum mips_symbol_type): Move from mips.h.
1086         (NUM_SYMBOL_TYPES): Likewise.
1087         (SYMBOL_64_HIGH, SYMBOL_64_MID, SYMBOL_64_LOW): New symbol types.
1088         (mips_unspec_address): Declare.
1089         (mips_gotoff_page, mips_gotoff_global): Delete.
1090         * config/mips/mips.h (PREDICATE_CODES): Add general_symbolic_operand.
1091         * config/mips/mips.c (enum mips_symbol_type, NUM_SYMBOL_TYPES): Delete.
1092         (mips_symbolic_constant_p, mips_symbolic_address_p)
1093         (mips_symbol_insns): Handle new symbol types.
1094         (general_symbolic_operand): New predicate.
1095         (mips_unspec_address): Make extern.
1096         (mips_gotoff_page, mips_gotoff_global): Delete.
1097         (override_options): Allow -mabi=64 -mno-abicalls -mexplicit-relocs.
1098         Handle new symbol types.
1099         * config/mips/mips.md (*lea_high64, *lea64): New patterns.
1100         (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_disp[sd]i): Call
1101         mips_unspec_address directly.
1102         * doc/invoke.texi: Remove the -mabi=64 -mno-abicalls exception from
1103         the documentation of -mexplicit-relocs.
1104
1105 2004-03-01  Jeff Law  <law@redhat.com>
1106
1107         * fold-const.c (fold): An equality comparison of a non-weak object
1108         against zero has a known result.  Similarly an equality comparison
1109         of the address of two non-weak, unaliased symbols has a known result.
1110
1111         * ggc-page.c (struct page_entry): New field PREV.
1112         (ggc_alloc): Update PREV field appropriately.
1113         (sweep_pages): Likewise.
1114         (ggc_free): Likewise.  Use PREV field rather than loop to
1115         improve ggc_free performance.
1116
1117 2004-03-01  Richard Sandiford  <rsandifo@redhat.com>
1118
1119         * config/mips/mips.c (mips_output_division): Use the division
1120         instruction to fill the delay slot of a zero check.
1121         (mips_idiv_insns): Adjust accordingly.
1122
1123 2004-03-01  Nathanael Nerode  <neroden@gcc.gnu.org>
1124
1125         * config.gcc: Create a default tmake_file for linux, and use
1126         it in all but two linux clauses.  Comment those two.
1127
1128 2004-03-01  Paolo Bonzini  <bonzini@gnu.org>
1129
1130         * combine.c (try_combine):  Do not refer to is_replaced.
1131         (gen_lowpart_for_combine):  Perverse subregs now have a
1132         more politically correct name.
1133         * cse.c (cse_insn): Likewise.
1134         * jump.c: Fix bogus reference to delete_insn.
1135
1136 2004-02-29  Mark Mitchell  <mark@codesourcery.com>
1137
1138         PR debug/14328
1139         * dwarf2out.c (gen_enumeration_type_die): Output all enumeration
1140         constants as signed values.
1141
1142         PR middle-end/13448
1143         * c-tree.h (readonly_warning): Rename to ...
1144         (readonly_error): ... this.
1145         * c-typeck.c (build_unary_op): Adjust accordingly.
1146         (readonly_warning): Rename to ...
1147         (readonly_error): ... this and issue errors, not warnings.
1148         (build_modify_expr): Call readonly_error, not readonly_warning.
1149         (c_expand_asm_operands): Likewise.
1150         * tree-inline.c (optimize_inline_calls): Do not inline functions
1151         after errors have occurred.
1152
1153 2004-02-29  Nathanael Nerode  <neroden@gcc.gnu.org>
1154
1155         * configure.ac: Rearrange some threading code for clarity;
1156         add section comment.
1157         * configure: Regenerate.
1158
1159 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
1160
1161         * passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment
1162         typos.
1163         * doc/cppopts.texi: Fix a typo.
1164
1165 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
1166
1167         * config/i386/i386.md: Fix formatting.
1168
1169 2004-02-29  Nathanael Nerode  <neroden@gcc.gnu.org>
1170
1171         * configure.ac: Add some comments delineating sections of code.
1172
1173         * doc/install.texi: Note that libada uses autoconf 2.57 also.
1174
1175         * doc/install.texi: Fix idiot typo in previous commit.
1176
1177         * doc/install.texi: Update for conversion of intl to autoconf 2.57.
1178
1179 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
1180
1181         * config/h8300/h8300.md: Add comments about peephole2's.
1182
1183 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
1184
1185         * config/h8300/h8300.md: Tweak operand numbers of some
1186         peephole2's.
1187
1188 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
1189
1190         * config/h8300/h8300.md: Tweak comments about peephole2's.
1191
1192 2004-02-29  Waldek Hebisch  <hebisch@math.uni.wroc.pl>
1193
1194         PR middle-end/14203
1195         * function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
1196         instead of testing whether DECL_RTL is not NULL.
1197
1198 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
1199
1200         * config/sh/sh.c: Fix formatting.
1201
1202 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
1203
1204         * config/sh/sh.c: Convert to ISO-C.
1205
1206 2004-02-28  Andrew Pinski  <pinskia@physics.uc.edu>
1207
1208         * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
1209         my previous patch.
1210
1211         * config/darwin.h (machopic_finish): Output stub even if the
1212         symbol is already defined.
1213
1214 2004-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1215
1216         * pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
1217
1218 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
1219
1220         * genattr.c (main): Don't define
1221         TRADITIONAL_PIPELINE_INTERFACE or DFA_PIPELINE_INTERFACE.
1222         * system.h (TRADITIONAL_PIPELINE_INTERFACE): Poison.
1223         (DFA_PIPELINE_INTERFACE): Likewise.
1224         * doc/tm.texi (TRADITIONAL_PIPELINE_INTERFACE): Remove.
1225         (DFA_PIPELINE_INTERFACE): Likewise.
1226
1227 2004-02-28  Richard Sandiford  <rsandifo@redhat.com>
1228
1229         * config/mips/mips.md (tstsi, tstdi): Delete.
1230
1231 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1232
1233         * config/mips/mips.c (override_options): Remove an obsolete
1234         duplicate definition of the "e" constraint.
1235         * config/mips/mips.h: Update a comment accordingly.
1236
1237 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1238
1239         * config/mips/mips.md: Complete the unfinished R4000
1240         multiply/shift errata workaround.  Improve documentation.
1241         (hazard): Use TARGET_FIX_R4000 to decide whether an "imul" instruction
1242         has a hilo hazard.
1243         (mulsi3, mulsi3_internal, mulsi3_r4000): Use TARGET_FIX_R4000.
1244         (muldi3, muldi3_internal): Likewise.
1245         (muldi3_internal2): Remove, replacing with...
1246         (muldi3_mult3, muldi3_r4000): ...these new patterns.
1247         (mulsidi3): Take the errata into account.
1248         (mulsidi3_32bit): Remove, replacing with...
1249         (mulsidi3_32bit_internal, mulsidi3_32bit_r4000): ...these new patterns.
1250         (mulsidi3_64bit, mulsidi3_64bit_parts): Disable if TARGET_FIX_R4000.
1251         (umulsidi3): Take the errata into account.
1252         (umulsidi3_32bit): Remove, replacing with..
1253         (umulsidi3_32bit_internal, umulsidi3_32bit_r4000): ...these patterns.
1254         (umulsi3_highpart, umulsi3_highpart_internal): Disable if
1255         TARGET_FIX_R4000.
1256         (smulsi3_highpart, smulsi3_highpart_internal): Likewise.
1257         (smuldi3_highpart, umuldi3_highpart): Likewise.
1258         * doc/invoke.texi: Document the errata workaround.
1259
1260 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1261
1262         * config/mips/mips-protos.h (mips_idiv_insns): Declare.
1263         * config/mips/mips.h (MASK_FIX_SB1): Bump.
1264         (MASK_FIX_R4000, TARGET_FIX_R4000): New macros.
1265         (TARGET_SWITCHES): Add -mfix-r4000 and -mno-fix-r4000.
1266         * config/mips/mips.c (mips_idiv_insns): New function.
1267         (override_options): Make -march=r4000 imply -mfix-r4000 by default.
1268         (mips_output_division): Add a workaround for the R4000 divide/shift
1269         errata.
1270         * config/mips/mips.md (length): Use mips_idiv_insns() to calculate
1271         the length of an "idiv" instruction.
1272         * doc/invoke.texi: Document the new switches.
1273
1274 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
1275
1276         * doc/tm.texi (IS_COSTLY_DEPENDENCE): Change to
1277         TARGET_SCHED_IS_COSTLY_DEPENDENCE.
1278
1279 2004-02-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1280
1281         PR optimization/14229
1282         * cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.
1283
1284 2004-02-28  Eric Botcazou  <ebotcazou@act-europe.fr>
1285
1286         * fold-const.c (fold): Strip NOPs that change the signedness
1287         for RSHIFT too.  Expand comment.
1288
1289 2004-02-27  Ian Lance Taylor  <ian@wasabisystems.com>
1290
1291         PR optimization/7871
1292         * flow.c (mark_set_1): Don't add LOG_LINKS for global registers
1293         from or to call insns.
1294
1295 2004-02-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
1296
1297         PR optimization/7871
1298         * flow.c (propagate_one_insn): Interpret calls as setting global
1299         registers, not merely clobbering them.
1300
1301 2004-02-27  Dale Johannesen  <dalej@apple.com>
1302
1303         * config/darwin.c (machopic_output_possible_stub_label):  Remove.
1304         config/darwin-protos.h:  Ditto.
1305         config/darwin.h:  Remove call to it.
1306         * combine.c (distribute_notes): Do not place a REG_DEAD note
1307         when value is both set and used.
1308
1309 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
1310
1311         * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
1312         as well.
1313         * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
1314         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
1315
1316 2004-02-27  Andrew Pinski  <apinski@apple.com>
1317
1318         * c-typeck.c (tagged_types_tu_compatible_p) <ENUMERAL_TYPE>:
1319         Speedup common case of the type values being in the same order.
1320
1321 2004-02-27  Steve Ellcey  <sje@cup.hp.com>
1322
1323         * config/ia64/ia64.h (no-inline-float-divide): New option.
1324         * config/ia64/ia64.h (no-inline-int-divide): New option.
1325         * config/ia64/ia64.h (no-inline-sqrt): New option.
1326         (TARGET_DEFAULT): Add MASK_INLINE_FLOAT_DIV_THR to define.
1327         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
1328         * config/ia64/ia64.c (ia64_override_options): Modify error
1329         checking for inlined division/sqrt.
1330
1331 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
1332
1333         * bb-reorder.c, cfgbuild.c, diagnostic.c, explow.c, profile.c,
1334         ra-build.c, read-rtl.c, tracer.c, unwind-dw2-fde-glibc.c,
1335         value-prof.c, config/darwin-protos.h, config/frv/frv-abi.h,
1336         config/i386/pmmintrin.h, config/pa/pa-hpux.h: Update
1337         copyright.
1338
1339 2004-02-27  Paul Brook  <paul@codesourcery.com>
1340
1341         * function.c (assign_parms): Don't count pretend args for alignment.
1342
1343 2004-02-27  Richard Henderson  <rth@redhat.com>
1344
1345         * passes.c: New file.
1346         * Makefile.in (OBJS-common): Add it.
1347         * diagnostic.c (rtl_dump_and_exit): Move decl ...
1348         * flags.h (rtl_dump_and_exit): ... here.
1349         * output.h (size_directive_output, last_assemble_variable_decl):
1350         Move from toplev.c.
1351         * rtl.h (reg_alloc): Move from toplev.c.
1352         * toplev.c (HAVE_conditional_execution, DUMPFILE_FORMAT,
1353         struct dump_file_info, enum dump_file_index, dump_file_tbl,
1354         open_dump_file, close_dump_file, rest_of_decl_compilation,
1355         rest_of_type_compilation, rest_of_handle_final,
1356         rest_of_handle_delay_slots, rest_of_handle_stack_regs,
1357         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
1358         rest_of_handle_new_regalloc, rest_of_handle_old_regalloc,
1359         rest_of_handle_regrename, rest_of_handle_reorder_blocks,
1360         rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_regmove,
1361         rest_of_handle_tracer, rest_of_handle_if_conversion,
1362         rest_of_handle_if_after_combine, rest_of_handle_web,
1363         rest_of_handle_branch_prob,
1364         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
1365         rest_of_handle_addressof, rest_of_handle_sibling_calls,
1366         rest_of_handle_jump_bypass, rest_of_handle_inlining,
1367         rest_of_handle_null_pointer, rest_of_handle_combine,
1368         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
1369         rest_of_handle_gcse, rest_of_handle_loop_optimize,
1370         rest_of_handle_loop2, rest_of_compilation): Move to passes.c.
1371         (decode_d_option): Use enable_rtl_dump_file.
1372         (compile_file, finalize, do_compile): Move profile+combine+graph
1373         cleanup to finish_optimization_passes.
1374         * toplev.h (init_optimization_passes, finish_optimization_passes,
1375         enable_rtl_dump_file): Declare.
1376
1377 2004-02-27  Eric Botcazou  <ebotcazou@act-europe.fr>
1378             Roger Sayle  <roger@eyesopen.com>
1379
1380         * fold-const.c (fold): Revert 2004-02-25 change.  Use the original
1381         operands to build a tree with swapped operands.
1382         * expr.c (expand_expr_real) <MAX_EXPR>: Consistently use the
1383         'unsignedp' predicate to specify the signedness.
1384
1385 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
1386
1387         * c-decl.c, c-ppoutput.c, combine.c, cppfiles.c, dwarf2out.c,
1388         expr.c, fold-const.c, gcc.c, haifa-sched.c, loop-iv.c,
1389         params.def, read-rtl.c, rtl.c, rtlanal.c, toplev.c: Fix
1390         comment typos and formatting.  Follow spelling conventions.
1391
1392 2004-02-26  Aldy Hernandez  <aldyh@redhat.com>
1393
1394         * config/rs6000/rs6000.md: Add fixuns_truncsfsi2 and
1395         fix_truncsfsi2.
1396
1397         * config/rs6000/spe.md: Delete spe_efsctuiz.
1398         Add spe_fixuns_truncsfsi2.
1399         Add spe_fix_truncsfsi2.
1400
1401 2004-02-26  Eric Christopher  <echristo@redhat.com>
1402
1403         * c-lex.c (c_lex_string_translate): New variable.
1404         (lex_string): Use to determine string translation.
1405         * c-pragma.h: Prototype.
1406         * c-parse.in (start_string_translation): New. Set above.
1407         (stop_string_translation): Ditto.
1408         (attribute, attribute_list, asm_def, asm_stmt,
1409         asm_operand): Use above functions.
1410         * cp/parser.c (cp_parser_declaration): Translate strings
1411         unless token is RID_EXTERN. Set c_lex_string_translate
1412         for recursive use.
1413         (cp_parser_asm_definition): Only translate argument strings
1414         to asms.
1415         (cp_parser_asm_operand_list): Ditto.
1416         (cp_parser_attribute_list): Do not translate attribute strings.
1417
1418 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
1419
1420         * stmt.c (expand_start_case_dummy): Remove.
1421         * tree.h: Remove the corresponding prototype.
1422
1423 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
1424
1425         * builtins.c (apply_args_register_offset): Remove.
1426         * tree.h: Remove the corresponding prototype.
1427
1428 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
1429
1430         * stor-layout.c (is_pending_size): Remove.
1431         * tree.h: Remove the corresponding prototype.
1432
1433 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
1434
1435         * recog.c (validate_replace_src): Remove.
1436         * recog.h: Remove the corresponding prototype.
1437
1438 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
1439
1440         * calls.c: Don't reference FINAL_REG_PARM_STACK_SPACE or
1441         MAYBE_REG_PARM_STACK_SPACE.
1442         * function.c: Likewise.
1443         * system.h (FINAL_REG_PARM_STACK_SPACE): Poison.
1444         (MAYBE_REG_PARM_STACK_SPACE): Likewise.
1445         * doc/tm.texi (FINAL_REG_PARM_STACK_SPACE): Remove.
1446         (MAYBE_REG_PARM_STACK_SPACE): Likewise.
1447
1448 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
1449
1450         * c-decl.c (c_expand_deferred_function): Remove.
1451         * c-tree.h: Remove the corresponding prototype.
1452
1453 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
1454
1455         * postreload.c (reload_cse_move2add): Generate just a PLUS
1456         instead of an entire SET.
1457
1458 2004-02-26  Jan Hubicka  <jh@suse.cz>
1459
1460         * config.gcc: Add support for nocoma/prescott/pentium-m/pentium3m
1461         /pentium4m.
1462         * i386.c (override_options): Add support for new CPUs.
1463         * i386.h (TARGET_CPU_DEFAULT_NAMES): New names.
1464         (TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_pentium4e): New
1465         constants.
1466         * invoke.texi: Extend documentation of -mtune/-march for new CPUs.
1467
1468 2004-02-26  Bob Wilson  <bob.wilson@acm.org>
1469
1470         * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define __xtensa__.
1471
1472 2004-02-26  Eric Botcazou  <ebotcazou@act-europe.fr>
1473
1474         * config/sparc/sparc-protos.h (sparc_emit_floatunsdi): Add 'mode'.
1475         (sparc_emit_fixunsdi): New prototype.
1476         * config/sparc/sparc.c (sparc_emit_floatunsdi): Use 'mode' argument.
1477         (sparc_emit_fixunsdi): New function.
1478         * config/sparc/sparc.md (floatunsdisf2): Use 'general_operand' for
1479         operand 1.  Pass SFmode to sparc_emit_floatunsdi.
1480         (floatunsdidf2): Use 'general_operand' for operand 1.  Pass DFmode
1481         to sparc_emit_floatunsdi.
1482         (fixuns_truncsfdi2): New expander.
1483         (fixuns_truncdfdi2): Likewise.
1484
1485 2004-02-26  Alan Modra  <amodra@bigpond.net.au>
1486
1487         * gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
1488         unless HAVE_cc0.
1489
1490 2004-02-25  Richard Henderson  <rth@redhat.com>
1491
1492         * explow.c (force_reg): Call mark_reg_pointer as appropriate.
1493         * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't
1494         use (op0-op1) == 0 if op0 is a pointer.
1495         * config/alpha/alpha.md (cmpdi): Use some_operand.
1496         (three comparison combine splits): Remove.
1497
1498 2004-02-25  Richard Henderson  <rth@redhat.com>
1499
1500         PR c/12794
1501         * c-common.c (handle_alias_attribute): Reject the attribute if
1502         current_function_decl is set.
1503
1504 2004-02-25  Kelley Cook  <kcook@gcc.gnu.org>
1505
1506         * config.gcc: Add comment describing extra_gcc_objs.
1507         i[34567]86-*-cygwin*): Replace host_extra_gcc_objs with extra_gcc_objs.
1508         * configure.ac (extra_gcc_objs): New substitution variable.
1509         (host_extra_gcc_objs): Don't substitute.
1510         * configure: Regenerate.
1511         * Makefile.in: Use extra_gcc_objs.
1512
1513 2004-02-25  Kelley Cook  <kcook@gcc.gnu.org>
1514
1515         * doc/contrib.texi: Add an entry for myself.
1516
1517 2004-02-25  Jan Hubicka  <jh@suse.cz>
1518
1519         * basic-block.h (make_eh_edge, break_superblocks): Declare.
1520         * cfgbuild.c (make_eh_edge):  Make global.
1521         * cfglayout.c (break_superblocks): Likewise; fix memory leak.
1522         * except.c (build_post_landing_pads, connect_post_landing_pads,
1523         dw2_build_landing_pads, sjlj_emit_function_enter,
1524         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
1525         sjlj_build_landing_pads): Update CFG.
1526         (emit_to_new_bb_before): New function.
1527         (finish_eh_generation): Do not rebuild the CFG.
1528
1529 2004-02-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1530
1531         * config.gcc (hppa*-*-*, parisc*-*-*): Add MASK_BIG_SWITCH to all
1532         target_cpu_default defines.
1533         * pa-hpux.h (TARGET_DEFAULT): Add MASK_BIG_SWITCH to define.
1534         * pa.h (TARGET_DEFAULT): Likewise.
1535
1536 2004-02-25  Eric Botcazou  <ebotcazou@act-europe.fr>
1537
1538         * fold-const.c (fold): Treat MAX_EXPR and MIN_EXPR like
1539         comparisons with regard to signedness.
1540
1541 2004-02-25  Richard Earnshaw  <rearnsha@arm.com>
1542
1543         * arm.c (thumb_legitimize_address): New function.
1544         * arm-protos.h: Prototype it.
1545         * arm.h (THUMB_LEGITIMIZE_ADDRESS): Define.
1546         (LEGITIMIZE_ADDRESS): Use it.
1547
1548 2004-02-25  J"orn Rennecke <joern.rennecke@superh.com>
1549
1550         * reload1.c (reload): Only spill eliminable register with multiple
1551         adjacent elimination alternatives if all alternatives fail.
1552
1553 2004-02-25  Richard Earnshaw  <rearnsha@arm.com>
1554
1555         * arm.c (arm_legitimate_index_p): For QImode the range of an offset
1556         is -4095...+4095 inclusive.
1557
1558 2004-02-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
1559
1560         * doc/install.texi (sparc-sun-solaris2* specific notes): Document
1561         the bootstrap failure with Sun CC 5.4 and 5.5.
1562
1563 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
1564
1565         * cse.c (cse_change_cc_mode_insns): Stop at any instruction
1566         which modifies NEWREG.
1567         (cse_condition_code_reg): Update the mode of CC_REG in
1568         CC_SRC_INSN on our own.
1569
1570 2004-02-24  Michael Matz  <matz@suse.de>
1571
1572         * config/i386/i386.c (ix86_comp_type_attributes): Check for
1573         regparm attributes.
1574
1575 2004-02-24  Richard Henderson  <rth@redhat.com>
1576
1577         * toplev.c (dump_file_tbl): Rename from dump_file.
1578         * bb-reorder.c, bt-load.c, cfgcleanup.c, cfglayout.c, cfgloopanal.c,
1579         cfgloopmanip.c, cfgrtl.c, config/arm/arm.c, config/frv/frv.c,
1580         config/i386/i386.c, config/ia64/ia64.c, config/mips/mips.c,
1581         config/sh/sh.c, cse.c, flow.c, ifcvt.c, loop-iv.c, loop-unroll.c,
1582         loop-unswitch.c, output.h, predict.c, profile.c, ra-build.c,
1583         ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, regrename.c, reload1.c,
1584         toplev.c, tracer.c, value-prof.c, var-tracking.c, web.c:
1585         s/rtl_dump_file/dump_file/g.
1586
1587 2004-02-24  Aldy Hernandez  <aldyh@redhat.com>
1588
1589         * config/rs6000/spe.md (spe_fix_truncsfsi2): Delete.
1590         (spe_fixuns_truncsfsi2): Delete.
1591
1592         * config/rs6000/rs6000.md (fix_truncsfsi2): Delete.
1593         (fixuns_truncsfsi2): Delete.
1594
1595 2004-02-24  Josef Zlomek  <zlomekj@suse.cz>
1596
1597         PR/14240
1598         * rtlanal.c (replace_label): Fix replacing labels in constant pool.
1599
1600 2004-02-24  Geoffrey Keating  <geoffk@apple.com>
1601
1602         * config/darwin.h (TARGET_HAS_F_SETLKW): Define.
1603
1604 2004-02-24  Jason Merrill  <jason@redhat.com>
1605
1606         * tree.c (check_qualified_type): New fn.
1607         (get_qualified_type): Use it.  If type already has the desired
1608         quals, just return it.
1609         * tree.h: Declare it.
1610
1611 2003-02-24  Sanjiv Kumar Gupta  <sanjivg@noida.hcltech.com>
1612
1613         * target-def.h (TARGET_SCHED_INIT_GLOBAL,
1614         TARGET_SCHED_FINISH_GLOBAL): New macros.
1615
1616         * target.h (md_init_global, md_finish_global): Function
1617         declarations corresponding to new target macros.
1618
1619         * haifa-sched.c (sched_init, sched_finish): Allow target to
1620         call the new schedular hooks.
1621
1622         * flow.c (recompute_reg_usage): Add PROP_DEATH_NOTES flag in
1623         call to update_life_info.
1624
1625         * config/sh/sh.h (OVERRIDE_OPTIONS): Re-enable
1626         flag_schedule_insns for SH4.
1627
1628         * config/sh/sh.c (sh_md_init_global, sh_md_finish_global,
1629         find_set_regmode_weight, find_insn_regmode_weight,
1630         find_regmode_weight), sh_md_init, sh_dfa_new_cycle,
1631         sh_variable_issue, high_pressure, ready_reorder,
1632         rank_for_reorder, swap_reorder, sh_reorder, sh_reorder2): New
1633         functions used to throttle the insn movement in first
1634         scheduling pass for SH.
1635
1636         * gcc/doc/tm.texi: Document TARGET_SCHED_INIT_GLOBAL and
1637         TARGET_SCHED_FINISH_GLOBAL.
1638
1639 2004-02-24  Alexandre Oliva  <aoliva@redhat.com>
1640
1641         Implement FR-V FDPIC ABI support for frv-uclinux and frv-linux.
1642         2004-02-05  Alexandre Oliva  <aoliva@redhat.com>
1643         * config/frv/frv.c (frv_emit_movsi): Use GOT relocations for
1644         symbols in sections named by the user.
1645         2004-01-30  Alexandre Oliva  <aoliva@redhat.com>
1646         * config/frv/linux.h (TARGET_OS_CPP_BUILTINS): New.
1647         2004-01-27  Alexandre Oliva  <aoliva@redhat.com>
1648         * config.gcc (frv-*-*linux*): Handle like *-*-linux*.
1649         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove, obviated by
1650         the above.
1651         2004-01-20  Alexandre Oliva  <aoliva@redhat.com>
1652         * config/frv/frv.md (symGOT2reg_hilo, symGOTOFF2reg_hilo): Add
1653         one more pseudo to further improve code generation.
1654         2004-01-19  Alexandre Oliva  <aoliva@redhat.com>
1655         * config/frv/frv.md (movdi_ldd): Introduce explicit indirection
1656         inside UNSPEC.
1657         2004-01-16  Alexandre Oliva  <aoliva@redhat.com>
1658         * config/frv/frv.c (frv_legitimate_address_p): Added
1659         allow_double_reg_p argument.  Adjust all callers.  Use it to
1660         decide whether to enable double-register indirect addressing.
1661         (frv_funcdesc_alias_set): Remove.
1662         (frv_expand_fdpic_call): Force non-SYMBOL_REF operand into
1663         register.  Emit movdi_ldd.
1664         (ldd_address_operand): New.
1665         * config/frv/frv-protos.h (frv_legitimate_address_p): Adjust.
1666         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Likewise.
1667         (PREDICATE_CODES): Add ldd_address_operand.
1668         * config/frv/frv.md (movdi_ldd): New.
1669         (symGOT2reg_hilo, symGOTOFF2reg_hilo): Use separate pseudo for
1670         intermediate computations if possible.
1671         (symGOTOFF2reg_i): Fix harmless typo.
1672         2003-12-18  Alexandre Oliva  <aoliva@redhat.com>
1673         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Cast
1674         relocated p_vaddr to vaddr type.
1675         * config/frv/frv-protos.h (frv_expand_fdpic_call): Return void.
1676         * config/frv/frv.c (frv_get_funcdesc_alias_set): New.
1677         (frv_expand_fdpic_call): Propagate incoming MEM's expr to funcdesc
1678         MEM, or use a funcdesc alias set.  Use regular move instead of
1679         ldd.
1680         (dbl_memory_one_insn_operand): Recognize function descriptors by
1681         type or by alias set, and don't split them.
1682         * config/frv/frv.md (call, call_value): Never use call_internal
1683         for fdpic.
1684         (call_internal, call_value_internal): Never match for FDPIC.
1685         (call_fdpicdi, call_fdpicsi, call_value_fdpicdi,
1686         call_value_fdpicsi): Require FDPIC.
1687         (ldd): Removed.
1688         2003-12-17  Alexandre Oliva  <aoliva@redhat.com>
1689         * config/frv/frv.h (CRT_GET_RFIB_DATA): Define for __FRV_FDPIC__.
1690         * unwind-dw2-fde-glibc.c: Don't include elf-fdpic.h any more.
1691         (_Unwind_IteratePhdrCallback): Adjust type of load_base for FRV
1692         FDPIC.  Compute data base address.
1693         * config/frv/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Enable -mfdpic
1694         before the other self-specs are processed.
1695         * config/frv/t-linux (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS):
1696         Build with -fPIC.
1697         2003-12-15  Alexandre Oliva  <aoliva@redhat.com>
1698         * unwind-dw2-fde-glibc.c: Don't include bits/elf-fdpic.h if
1699         inhibit_libc is defined.
1700         2003-12-12  Alexandre Oliva  <aoliva@redhat.com>
1701         * unwind-dw2-fde-glibc.c: Include bits/elf-fdpic.h for
1702         __FRV_FDPIC__.
1703         (__RELOC_POINTER): Define.
1704         (_Unwind_IteratePhdrCallback): Use it.
1705         * config/frv/frv.h (Twrite): Define.
1706         (TRANSFER_FROM_TRAMPOLINE): Use it.
1707         * config/frv/linux.h (INVOKE__main): Undefine.
1708         (Twrite): Override.
1709         2003-12-05  Richard Sandiford  <rsandifo@redhat.com>
1710         * doc/invoke.texi (-mlong-calls, -mlinked-fp): Document FRV options.
1711         (-mlibrary-pic): Emphasize that this option generates EABI code.
1712         (-mcpu): Add fr550.
1713         (-mpack): Remove.
1714         2003-11-30  Alexandre Oliva  <aoliva@redhat.com>
1715         * config/frv/frv.c (int_2word_operand): Reject LABELs, SYMBOL_REFs
1716         and CONSTs in FDPIC mode.
1717         * gcc/config.gcc (with_cpu): Default to fr400 on frv-*-*linux*.
1718         2003-11-29  Richard Sandiford  <rsandifo@redhat.com>
1719         * config/frv/frv.c (move_source_operand): Don't accept symbolic
1720         constants.
1721         * config/frv/frv.md (*movhi_internal, *movsi_internal): Use an 'n'
1722         rather than 'i' constraint for the 2-instruction alternative.
1723         (*movsi_2word): New, incorporating existing int_2word_operand splitter.
1724         2003-11-29  Richard Sandiford  <rsandifo@redhat.com>
1725         * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Q): Renamed from
1726         EXTRA_CONSTRAINT_FOR_Y.
1727         (EXTRA_CONSTRAINT): Remove handling of 'Y'.
1728         * config/frv/frv.md (*movsi_internal): Remove 'Q' constraint.
1729         (addsi3): Change 'Y' constraint to 'Q'.
1730         2003-11-27  Richard Sandiford  <rsandifo@redhat.com>
1731         * reload.c (CONST_POOL_OK_P): New macro.
1732         (find_reloads): Use it to decide whether a constant can be forced
1733         into memory.
1734         * config/frv/frv.h (LEGITIMATE_PIC_OPERAND_P): Return true if the
1735         constant satisfies got12_operand.
1736         (frv_cannot_force_const_mem): Always return true for TARGET_FDPIC.
1737         (frv_legitimate_address_p): Check for valid unspec offsets using
1738         got12_operand rather than frv_legitimate_fdpic_operand_p.
1739         (frv_legitimate_fdpic_operand_p): Delete.
1740         (frv_emit_movsi): Abort if we try to use the FDPIC register during
1741         or after reload.
1742         (frv_legitimate_constant_p): Return LEGITIMATE_PIC_OPERAND_P if
1743         TARGET_FDPIC.
1744         * config/frv/frv.md (*movdf_double): Add alternatives for CONST_DOUBLE.
1745         2003-11-19  Richard Sandiford  <rsandifo@redhat.com>
1746         * config/frv/frv-protos.h (fdpic_operand, fdpic_got12_operand)
1747         (frv_fdpic_fptr_operand): Don't declare here.
1748         * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Y): Call got12_operand
1749         rather than fdpic_got12_operand.
1750         (PREDICATE_CODES): Remove symbolic_operand entry.  Add entries for
1751         got12_operand and const_unspec_operand.
1752         * config/frv/frv.c (got12_operand): Renamed from fdpic_got12_operand.
1753         (gpr_or_int12_operand, dbl_memory_one_insn_operand): Update calls.
1754         (symbolic_operand): Remove.
1755         (const_unspec_operand): New predicate.
1756         * config/frv/frv.md (*movsi_got): Use got12_operand.
1757         (*movsi_high_got, *movsi_lo_sum_got): Use const_unspec_operand.
1758         2003-11-18  Richard Sandiford  <rsandifo@redhat.com>
1759         * config/frv/frv-protos.h (frv_output_addr_const_extra): Remove.
1760         * config/frv/frv.h (OUTPUT_ADDR_CONST_EXTRA): Remove definition.
1761         * config/frv/frv.c (frv_unspec): New structure.
1762         (frv_small_data_reloc_p, frv_const_unspec_p): New functions.
1763         (frv_print_operand_memory_reference): Use frv_const_unspec_p to
1764         validate CONST indices.  Use frv_output_const_unspec to print them.
1765         (frv_print_operand): Update call to unspec_got_name.  Use
1766         frv_output_const_unspec to print constant unspecs.
1767         (frv_legitimate_fdpic_operand_p): Return true if frv_const_unspec_p.
1768         Reject UNSPECs otherwise.
1769         (unspec_got_name): Take the relocation number as argument, not an
1770         rtx containing it.
1771         (frv_output_addr_const_extra): Remove, replacing with...
1772         (frv_output_const_unspec): ...this new function.
1773         (frv_find_base_term): Use frv_const_unspec_p & frv_small_data_reloc_p.
1774         (gpr_or_int12_operand): Use fdpic_got12_operand.
1775         (dbl_memory_one_insn_operand): Likewise.
1776         (fdpic_got12_operand): Use frv_const_unspec_p.
1777         (frv_emit_movsi): Use frv_const_unspec_p to check for CONSTs that
1778         are already legitimate.  Use frv_small_data_reloc_p when deciding
1779         whether to use HIGH/LO_SUM for R_FRV_GOTOFF12 and R_FRV_GPREL12.
1780         2003-11-18  Alexandre Oliva  <aoliva@redhat.com>
1781         * config/frv/t-linux (SHLIB_MAPFILES): Override so as to export...
1782         * config/frv/libgcc-frv.ver: ... frv-specific symbols.  New file.
1783         * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
1784         label, for real this time.
1785         * config/frv/frv.c (frv_local_funcdesc_p): Update to new
1786         representation of visibility.
1787         (fdpic_got12_operand, symbolic_operand): Mark unused arguments as
1788         such.
1789         2003-11-17  Richard Sandiford  <rsandifo@redhat.com>
1790         * config/frv/frv.h (MASK_LINKED_FP, TARGET_LINKED_FP): New macros.
1791         (TARGET_SWITCHES): Add -mlinked-fp and -mno-linked-fp.
1792         * config/frv/frv.c (frv_override_options): Set MASK_LINKED_FP unless
1793         it was explicitly disabled.
1794         (frv_stack_info): There is no need to save the link register in every
1795         frame unless TARGET_LINKED_FP is true.
1796         (frv_frame_pointer_required): If !TARGET_LINKED_FP, only require a
1797         frame pointer if the stack pointer might change value.
1798         (frv_return_addr_rtx): Check and process "count" argument.
1799         2003-11-14  Richard Sandiford  <rsandifo@redhat.com>
1800         * config/frv/frv-protos.h (frv_legitimize_address): Remove.
1801         (frv_find_base_term): Declare.
1802         * config/frv/frv.h (LEGITIMIZE_ADDRESS): Do nothing.
1803         (FIND_BASE_TERM): Define.
1804         (PREDICATE_CODES): Remove pic_register_operand, pic_symbolic_operand,
1805         small_data_register_operand, small_data_symbolic_operand.  Add
1806         symbolic_operand.
1807         * config/frv/frv.c (const_small_data_p, plus_small_data_p): Delete.
1808         (frv_print_operand_memory_reference, output_move_single): Remove
1809         special handling for unlegitimized sdata addresses.
1810         (frv_legitimate_address_p): Don't allow sums of SDA_BASE_REG
1811         and symbolic addresses.
1812         (frv_legitimize_address, frv_legitimize_fdpic_address): Delete.
1813         (frv_find_base_term): New function.
1814         (int_2word_operand): Check specifically for symbolic address constants.
1815         (pic_register_operand, pic_symbolic_operand): Delete.
1816         (small_data_register_operand, small_data_symbolic_operand): Delete.
1817         (dbl_memory_one_insn_operand): Don't call plus_small_data_p.
1818         Allow UNSPEC_GOT constants if !TARGET_FDPIC.
1819         (move_source_operand): Only accept CONSTs if they're a two-insn
1820         symbolic constant.
1821         (fdpic_got12_operand): Don't require TARGET_FDPIC.
1822         (frv_emit_movsi): Legitimize sdata and -mlibrary-pic addresses
1823         using gen_symGOTOFF2reg*.
1824         (frv_ifcvt_rewrite_mem): Remove (plus gr16 ...) special cases.
1825         (frv_rtx_costs): Give all MEM addresses a cost of 0.  Give MEMs
1826         themselves a cost of 3 insns.
1827         * config/mips/mips.md (*movsi_got): Allow for !TARGET_FDPIC too.
1828         Change predicate to symbolic_operand.
1829         (*movsi_high_got, *movsi_lo_sum_got): Likewise.
1830         (*movsi_lda_sdata): Delete.
1831         (*movsi_pic, movsi_high_pic, movsi_lo_sum_pic): Delete.
1832         2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
1833         * config.gcc: Add t-slibgcc-elf-ver and support --with-cpu for
1834         frv-*-*linux*.
1835         * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
1836         label.
1837         * config/frv/frv.h (DRIVER_SELF_SPECS): Add blank before
1838         -multilib-library-pic.
1839         (LINK_SPEC): Add -z text for -mfdpic.
1840         * config/frv/frvbegin.c (__ROFIXUP_LIST__): Don't define on FDPIC.
1841         * config/frv/frvend.c (__ROFIXUP_END__): Likewise.
1842         * config/frv/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, LINK_SPEC):
1843         Override.
1844         (OPTION_DEFAULT_SPECS, HAS_INIT_SECTION, INIT_SECTION_ASM_OP,
1845         FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION): Define.
1846         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Use
1847         crtstuff-generated files.
1848         2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
1849         * config.gcc: Add frv-*-*linux*.
1850         * config/frv/linux.h, config/frv/t-linux: New.
1851         2003-10-06  Alexandre Oliva  <aoliva@redhat.com>
1852         * config/frv/frv.h (LINK_SPEC): Pass -melf32frvfd to the linker
1853         when -mfdpic even if a linker script is explicitly listed.
1854         2003-10-02  Alexandre Oliva  <aoliva@redhat.com>
1855         * config/frv/frv.c (frv_override_options): Clear asm_out
1856         unaligned_op for SImode on FDPIC.
1857         (frv_emit_movsi): Use compute_reloc_for_constant to compute the
1858         argument passed to decl_readonly_section.
1859         (frv_assemble_integer): Revert 2003-09-30's change, but make the
1860         whole block run with FDPIC even with -fno-PIC.
1861         2003-10-02  Alexandre Oliva  <aoliva@redhat.com>
1862         * config/frv/frv.c (frv_cannot_force_const_mem): Don't force
1863         symbol or label plus offset to memory.
1864         (frv_emit_movsi): Emit GPREL only if -mgprel-ro.  Emit 32-bit
1865         GOTOFF and GPREL for LABEL_REF.
1866         * config/frv/frv.h (DRIVER_SELF_SPECS): Add -mgprel-ro with
1867         -mfdpic unless -mno-gprel-ro, -fpic or -fpie.
1868         (MASK_GPREL_RO, TARGET_GPREL_RO): New.
1869         (TARGET_SWITCHES): Added gprel-ro and no-gprel-ro.
1870         * doc/invoke.texi: Document them.
1871         2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
1872         * config/frv/frv-protos.h (frv_gen_GPsym2reg): Declare.
1873         (frv_splittable_got_operand): Removed.
1874         * config/frv/frv.c (frv_cannot_force_const_mem): Reject HIGH and
1875         LO_SUM.  Add comments.
1876         (frv_override_options): Moved enabling of FDPIC to
1877         DRIVER_SELF_SPECS.  Don't enable MASK_DWORD.
1878         (frv_local_funcdesc_p): Remove unnecessary heck for flag_pie.
1879         (frv_legitimize_fdpic_address): Don't duplicate logic in
1880         frv_emit_movsi.
1881         (frv_gen_GPsym2reg): New.
1882         (unspec_got_name): Added gprel.
1883         (frv_expand_fdpic_call): Add support for inlining PLTs.
1884         (fdpic_fptr_operand): Renamed from frv_fdpic_fptr_operand.
1885         (gpr_or_int12_operand): Added GPREL12.
1886         (pic_symbolic_operand): Match even if !flag_pic for FDPIC.
1887         (small_data_symbolic_operand): Fail if FDPIC.
1888         (fdpic_splittable_got_operand): Removed.
1889         (fdpic_got12_operand): Added GPREL12.
1890         (frv_emit_movsi): Reorganize to avoid duplication.  Emit GPREL
1891         when appropriate.  Fix sdata GOTOFF.
1892         (frv_legitimate_constant_p): Require legitimate PIC operand for
1893         FDPIC with pic, but only a legitimate fdpic operand for non-pic.
1894         (frv_assemble_integer): Move FDPIC funcdesc handling out of
1895         flag_pic case.
1896         (frv_asm_out_constructor, frv_asm_out_destructor): Abort if
1897         frv_assemble_integer fails.
1898         * config/frv/frv.h (DRIVER_SELF_SPECS): New.
1899         (SUBTARGET_DRIVER_SELF_SPECS): New.
1900         (ASM_SPEC): Don't pass -mno-fdpic.
1901         (LINK_SPEC): Pass -melf32frvfd for FDPIC.
1902         (MASK_INLINE_PLT, TARGET_INLINE_PLT): New.
1903         (TARGET_SWITCHES): Add -minline-plt, -mno-inline-plt and
1904         -multilib-library-pic.
1905         (PREDICATE_CODES): Added fdpic_operand, fdpic_fptr_operand,
1906         condexec_si_media_operator, condexec_sf_add_operator and
1907         condexec_sf_conv_operator.  Removed condexec_sf_binary_operator
1908         and condexec_sf_unary_operator.
1909         * config/frv/frv.md (R_FRV_GPREL12, R_FRV_GPRELHI, R_FRV_GPRELLO):
1910         New.
1911         (movsi_got, movsi_high_got, movsi_lo_sum_got): Move before
1912         movsi_internal.  Give them internal names.  movsi_got has type
1913         int.
1914         (fdpic got splitters): Remove.
1915         (symGPREL2reg, symGPREL2reg_hilo): New.
1916         * config/frv/t-frv (MULTILIB_MATCHES): Don't map -fpic and -fPIC
1917         to -mlibrary-pic.  Map -multilib-library-pic to it.
1918         * doc/invoke.texi: -mfdpic, -minline-plt, -multilib-library-pic:
1919         Document.
1920         2003-09-28  Alexandre Oliva  <aoliva@redhat.com>
1921         * config/frv/frv.c (frv_function_symbol_referenced_p): Declare.
1922         (TARGET_CANNOT_FORCE_CONST_MEM): Define to...
1923         (frv_cannot_force_const_mem): New function.
1924         (const_small_data_p, plus_small_data_p): Update comments on sdata
1925         on FDPIC.
1926         (frv_override_options): Set flag_pie for FDPIC too.
1927         (frv_conditional_register_usage): Mark gr16 and gr17 as non-fixed,
1928         call-saved registers on FDPIC.
1929         (frv_stack_info): Don't preserve the PIC register on FDPIC, and
1930         don't force LR to be preserved.
1931         (frv_expand_prologue): Likewise.
1932         (frv_asm_output_mi_thunk): Use 12-bit funcdesc gotoff for -fpic.
1933         (frv_frame_pointer_required): Don't force it just because the
1934         FDPIC register is used.
1935         (frv_legitimate_address_p) <CONST>: Accept a legitimate FDPIC
1936         operand only if !condexec_p.
1937         (frv_legitimize_address): Return the FDPIC-legitimized address.
1938         Don't match small data here on FDPIC.
1939         (frv_legitimate_fdpic_operand_p): Don't accept unadorned function
1940         symbols.  Use TRUE/FALSE instead of 1/0.
1941         (frv_local_funcdesc_p): New.
1942         (frv_legitimize_fdpic_address): Rewrite to use GOTOFF and 12-bit
1943         immediates when possible.
1944         (pic_symbolic_operand): Accept SYMBOL_REFs and CONSTs in FDPIC.
1945         (dbl_memory_one_insn_operand): Accept addresses that add a REG and
1946         an UNSPEC_GOT.
1947         (frv_emit_movsi): Handle FDPIC before small data.  Use GOTOFF and
1948         12-bit immediates when possible.
1949         (frv_legitimate_constant_p): In FDPIC, reject SImode operands that
1950         are not legitimate pic operands.
1951         (frv_in_small_data_p): Re-enable for FDPIC.
1952         * config/frv/frv.h (SDA_BASE_REG): Remove comment about FDPIC.
1953         (FRV_GLOBAL_P): Removed.
1954         * config/frv/frv.md: Add modes to CONSTs.
1955         (movsi_got): New.
1956         (movsi_lo_sum_got): Use separate matches instead of match_dup.
1957         (movsi_high_pic, movsi_lo_sum_pic): Match on non-FDPIC only.
1958         (fdpic splittable operations): Match on flag_pic != 1.
1959         2003-09-22  Alexandre Oliva  <aoliva@redhat.com>
1960         * config/frv/frv.c (frv_asm_out_constructor,
1961         frv_asm_out_destructor): Pass to frv_assemble_integer the size in
1962         bytes, not bits.
1963         2003-09-19  Alexandre Oliva  <aoliva@redhat.com>
1964         * config/frv/frv.c (frv_assemble_integer): Reject complex
1965         expressions referencing function SYMBOL_REFs.
1966         * config/frv/frv.c (frv_function_symbol_referenced_p): New.
1967         (move_source_operand): Reject CONSTs that reference function
1968         SYMBOL_REFs on FDPIC.
1969         (frv_emit_movsi): If we get such a CONST, break it up.
1970         * config/frv/frv.h (CPP_SPEC): Define __FRV_FDPIC__ for -mfdpic.
1971         (TRANSFER_FROM_TRAMPOLINE): Use different definitions for FDPIC.
1972         * config/frv/frv.c (frv_print_operand) <I>: Recognize PLUS without
1973         MEM.
1974         (frv_assemble_integer): Don't use funcdesc for LABEL_REFs.
1975         (frv_trampoline_size): Increase for FDPIC.
1976         * config/frv/frv.h (TRAMPOLINE_ALIGNMENT): Bump to 64 for FDPIC.
1977         (TRANSFER_FROM_TRAMPOLINE): Handle FDPIC trampolines.
1978         * config/frv/frv.c (frv_legitimize_fdpic_address, frv_emit_movsi):
1979         Disable use of GOTOFF for now.
1980         (const_small_data_p, plus_small_data_p, frv_in_small_data_p):
1981         Disable use of small data in FDPIC for now.
1982         (frv_asm_output_mi_thunk): Implement for FDPIC.
1983         * config/frv/frv.h (SDA_BASE_REG): Set to -1 with FDPIC.
1984         * config/frv/frv.c (frv_asm_out_constructor): Use
1985         frv_assemble_integer for FDPIC pointers.
1986         (frv_asm_out_destructor): Likewise.
1987         * config/frv/frv.md (ldd): Fix order of operands.  Use
1988         address_operand for input.
1989         2003-09-18  DJ Delorie  <dj@redhat.com>
1990         * config/frv/frv.c (frv_legitimate_fdpic_operand_p): Remove UNSPEC_PIC.
1991         (unspec_got_name): Correct typo.
1992         (frv_emit_movsi): Pre-expand splittable GOTs.
1993         (frv_expand_fdpic_call): Rename gen_lddi to gen_ldd.
1994         * config/frv/frv.md (lddi): Fix syntax error, rename to ldd.
1995         (symGOT2reg_hilo, symGOTOFF2reg_hilo): New.
1996         * config/frv/t-frv: Add -mfdpic multilibs.
1997         * config/frv/frv.h (ASM_SPEC): Pass -mfdpic/-mno-fdpic.
1998         (TARGET_SWITCHES): Add -mno-fdpic, fix documentation.
1999         * config/frv/frv.c (frv_override_options): -mfdpic assumes
2000         flag_pic, default to 32-bit pics, require DWORD ops.
2001         (frv_override_options): Add W and Z constraints.
2002         (frv_expand_prologue): No pic prologue for -mfdpic.
2003         (frv_asm_output_mi_thunk): Support -mfdpic (soon).
2004         (frv_print_operand_memory_reference): Handle GOT constants.
2005         (frv_legitimate_address_p): Allow GOT constants.
2006         (frv_legitimize_address): Handle GOT addresses too.
2007         (frv_legitimate_fdpic_operand_p): New.
2008         (frv_legitimize_fdpic_address): New.
2009         (unspec_got_name): New.
2010         (frv_output_addr_const_extra): New.
2011         (frv_expand_fdpic_call): New.
2012         (frv_fdpic_fptr_operand): New.
2013         (gpr_or_int12_operand): Handle GOT operands.
2014         (int_2word_operand): Handle GOT operands.
2015         (fdpic_operand): New.
2016         (fdpic_splittable_got_operand): New.
2017         (fdpic_got12_operand): New.
2018         (frv_emit_movsi): Handle GOT operands.
2019         (frv_assemble_integer): -mfdpic doesn't use rofixups.
2020         (frv_print_operand): Support 'g' code for GOT operands.
2021         * config/frv/frv-protos.h: Add prototypes as needed.
2022         * config/frv/frv.md (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
2023         R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
2024         R_FRV_FUNCDESC_GOTLO, R_FRV_FUNCDESC_VALUE,
2025         R_FRV_FUNCDESC_GOTOFF12, R_FRV_FUNCDESC_GOTOFFHI,
2026         R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12, R_FRV_GOTOFFHI,
2027         R_FRV_GOTOFFLO): New.
2028         (movsi_high_got, movsi_lo_sum_got): New.
2029         (*movsi_pic): Don't use this splitter for -mfdpic.
2030         (addsi3): Allow GOT references also.
2031         (call, call_value): Handle -mfdpic separately.
2032         (call_fdpicdi, call_fdpicsi, lddi, call_value_fdpicdi,
2033         call_value_fdpicsi): New.
2034         (symGOT2reg, symGOT2reg_i, got splitters, symGOTOFF2reg,
2035         symGOTOFF2reg_i): New.
2036         * config/frv/frv.h (MASK_FDPIC): New.
2037         (TARGET_FDPIC): New.
2038         (TARGET_SWITCHES): Add -mfdpic.
2039         (FDPIC_FPTR_REGNO): New.
2040         (FDPIC_REGNO): New.
2041         (OUR_FDPIC_REG): New.
2042         (enum reg_class): Add FDPIC_REGS, FDPIC_FPTR_REGS, and
2043         FDPIC_CALL_REGS.
2044         (REG_CLASS_NAMES): Likewise.
2045         (REG_CLASS_CONTENTS): Likewise.
2046         (EXTRA_CONSTRAINT_FOR_Y): New, for 12-bit GOTs.
2047         (EXTRA_CONSTRAINT): Add it here.
2048         (FRV_GLOBAL_P): New.
2049         (OUTPUT_ADDR_CONST_EXTRA): New.
2050
2051 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
2052
2053         * config/sparc/sparc.h: Remove commented-out definitions of
2054         TARGET_EDOM and GEN_ERRNO_RTX.
2055
2056 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
2057
2058         * df.c, df.h, ra-build.c, ra-rewrite.c, ra.c, web.c: Replace
2059         df_analyse with df_analyze.
2060
2061 2004-02-24  Alan Modra  <amodra@bigpond.net.au>
2062
2063         * gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
2064         beginning of block.
2065
2066 2004-02-23  James E Wilson  <wilson@specifixinc.com>
2067
2068         * calls.c (precompute_arguments): Update comment.
2069
2070 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
2071
2072         * et-forest.c: Replace et_occurences with et_occurrences.
2073
2074 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
2075
2076         * cfgloop.h, loop-iv.c, loop-unswitch.c: Replace iv_analyse
2077         with iv_analyze.
2078
2079 2004-02-23  Kelley Cook  <kcook@gcc.gnu.org>
2080
2081         * config/i386/i386.c: Rename pni to sse3.
2082         * config/i386/i386.h: Likewise.
2083         * config/i386/i386.md: Likewise.
2084         * config/i386/pmmintrin.h: Likewise.
2085         * doc/extend.texi: Likewise.
2086         * doc/invoke.texi: Likewise.
2087
2088 2004-02-23  Zack Weinberg  <zack@codesourcery.com>
2089             Kazu Hirata  <kazu@cs.umass.edu>
2090
2091         Remove -fwritable-strings.
2092         * c-common.c (fix_string_type): Don't check
2093         flag_writable_strings.
2094         (fix_string_type): Likewise.
2095         * c-opts.c (set_std_c89): Don't initialize
2096         flag_writable_strings.
2097         (set_std_c99): Likewise.
2098         * common.opt (fwritable-strings): Remove.
2099         * flags.h: Remove the external declaration of
2100         flag_writable_strings.
2101         * opts.c (common_handle_option) <OPT_fwritable_strings>:
2102         Remove.
2103         * toplev.c (flag_writable_strings): Remove.
2104         (f_options): Remove an entry for writable-strings.
2105         * varasm.c (const_hash_1) <STRING_CST>: Don't check
2106         flag_writable_strings.
2107         (compare_constant) <STRING_CST>: Likewise.
2108         (build_constant_desc): Likewise.
2109         * config/darwin.c (machopic_select_section): Likewise.
2110         * config/arm/arm.c (AOF_ASSEMBLER): Likewise.
2111         * config/arm/pe.c (arm_pe_encode_section_info): Likewise.
2112         * config/iq2000/iq2000.c (iq2000_select_section): Likewise.
2113         * config/mips/mips.c (mips_select_section): Likewise.
2114         (mips_encode_section_info): Likewise.
2115         * config/pa/pa.c (pa_select_section): Likewise.
2116         * config/pa/pa.h (TEXT_SPACE_P): Likewise.
2117         * config/v850/v850.c (v850_select_section): Likewise.
2118         * doc/invoke.texi (-fwritable-strings): Remove.
2119         (-fno-const-strings): Don't mention -fwritable-strings.
2120         * doc/trouble.texi: Don't mention -fwritable-strings.
2121
2122 2003-02-23  Nathanael Nerode  <neroden@gcc.gnu.org>
2123
2124         * doc/install.texi: Update for switch of boehm-gc to autoconf 2.57.
2125
2126 2004-02-23  Dale Johannesen  <dalej@apple.com>
2127
2128         * config/rs6000.md (movsf_hardfloat): Add POWER form of nop.
2129         (movdf_hardfloat64):  Ditto.
2130         (movdf_softfloat64):  Ditto.
2131
2132 2004-02-23  Fariborz Jahanian <fjahanian@apple.com>
2133         * config/rs6000/rs6000.c (function_arg): call to
2134         rs6000_mixed_function_arg for DFmode moved to allow
2135         normal DFmode incoming register assignment.
2136
2137 2004-02-23  Dale Johannesen  <dalej@apple.com>
2138
2139         * config/rs6000.md (movsf_hardfloat): Accept CTR-to-CTR copy.
2140         (movdf_hardfloat64):  Ditto.
2141
2142 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
2143
2144         * convert.c, gcov-io.c, libgcov.c, sched-int.h, sibcall.c,
2145         config/rs6000/linux.h, config/rs6000/rs6000-c.c: Update
2146         copyright.
2147
2148 2004-02-23  Andrew Pinski  <pinskia@physics.uc.edu>
2149
2150         PR c/14156
2151         * c-typeck.c (c_expand_return): Change check for VAR_DECL
2152         to use DECL_P instead.
2153
2154         * config/rs6000/linux.h (OS_MISSING_POWERPC64): Define.
2155         * config/rs6000/linux64.h (OS_MISSING_POWERPC64): Define.
2156
2157 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
2158
2159         * Makefile.in (opts.o): Depend on target.h.
2160         * opts.c (decode_options): Use targetm.default_short_enums
2161         instead of DEFAULT_SHORT_ENUMS.
2162         * system.h (DEFAULT_SHORT_ENUMS): Poison.
2163         * target-def.h (TARGET_DEFAULT_SHORT_ENUMS): New.
2164         (TARGET_INITIALIZER): Add TARGET_DEFAULT_SHORT_ENUMS.
2165         * target.h (gcc_target): Add default_short_enums.
2166         * config/cris/cris.h: Remove a comment about
2167         DEFAULT_SHORT_ENUMS.
2168         * config/ip2k/ip2k.h: Likewise.
2169         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Change to
2170         TARGET_DEFAULT_SHORT_ENUMS.  Update the description.
2171
2172 2004-02-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
2173             Falk Hueffner  <falk@debian.org>
2174
2175         PR c/14188
2176         * builtins.c (expand_builtin_va_arg): Emit an informative message
2177         if a trap is generated.
2178         * c-typeck.c (build_function_call): Likewise.
2179
2180 2004-02-22  Jakub Jelinek  <jakub@redhat.com>
2181
2182         * gcov-io.c (gcov_open) [GCOV_LOCKED]: Use open + fdopen instead of
2183         fopen.
2184         * libgcov.c: Include sys/stat.h.
2185         * config/rs6000/linux.h (TARGET_HAS_F_SETLKW): Define.
2186         * config/rs6000/linux64.h (TARGET_HAS_F_SETLKW): Define.
2187         * config/sparc/linux.h (TARGET_HAS_F_SETLKW): Define.
2188         * config/sparc/linux64.h (TARGET_HAS_F_SETLKW): Define.
2189
2190 2004-02-22  Kazu Hirata  <kazu@cs.umass.edu>
2191
2192         * reorg.c: Remove comments about dead ports.
2193
2194 2004-02-22  Christopher Faylor  <cgf@redhat.com>
2195
2196         * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): *Really* specify
2197         extra host object file when targetting cygwin rather than generic
2198         object files.
2199
2200 2004-02-22  Josef Zlomek  <zlomekj@suse.cz>
2201
2202         Merge from tree-ssa:
2203         2003-11-20  Richard Henderson  <rth@redhat.com>
2204
2205                 * tree-inline.c (insert_decl_map): New.
2206                 (remap_decl, remap_type, remap_block, copy_body_r,
2207                 initialize_inlined_parameters, declare_return_variable,
2208                 remap_save_expr): Use it.
2209
2210         * function.c (copy_body_r): Add mapping from id->ret_label to
2211         id->ret_label.  Revert test for ret_label.
2212
2213 2004-02-22  Jakub Jelinek  <jakub@redhat.com>
2214
2215         * genoutput.c (process_template): Strip trailing whitespace in @
2216         templates and issue a warning if there was any.
2217
2218 2004-02-21  Christopher Faylor  <cgf@redhat.com>
2219
2220         * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): Specify extra host
2221         object file when targetting cygwin.
2222         * config/i386/t-cygwin (EXTRA_GCC_OBJS): Remove definition since it is
2223         overridden by top-level Makefile.
2224
2225 2004-02-21  Roger Sayle  <roger@eyesopen.com>
2226
2227         * config/i386/i386.c (standard_80387_constant_p): Also prefer
2228         the x87's load constant instructions when optimizing for size.
2229
2230 2004-02-21  Kazu Hirata  <kazu@cs.umass.edu>
2231
2232         * combine.c (SHIFT_COUNT_TRUNCATED): Remove.
2233         * defaults.h (SHIFT_COUNT_TRUNCATED): Provide the default.
2234         * expmed.c: Assume SHIFT_COUNT_TRUNCATED is always defined.
2235         * fold-const.c: Likewise.
2236         * simplify-rtx.c: Likewise.
2237
2238 2004-02-21  Alan Modra  <amodra@bigpond.net.au>
2239
2240         * combine.c (can_combine_p): Don't ignore SETs marked with
2241         REG_EH_REGION notes.
2242         (try_combine): When attemting to fix unrecognized insns, don't
2243         split a PARALLEL that contains the original i2.
2244
2245 2004-02-21  Ziemowit Laski  <zlaski@apple.com>
2246
2247         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to
2248         SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
2249         * config/i386/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): Define it.
2250         * config/rs6000/altivec.h: #error out if '-maltivec' not specified.
2251         (vector, pixel, bool): #define to __vector, __pixel and __bool.
2252         (__un_args_eq, __bin_args_eq, __tern_args_eq): Move to C-specific
2253         portion of header.
2254         (__altivec_link_error_invalid_argument): Remove prototype; will use
2255         __builtin_altivec_compiletime_error("vec_*") instead.
2256         (vec_*): Fix/complete set of available operation overloads given the
2257         existence of distinct 'vector bool ...' and 'vector pixel' types; tighten
2258         cv-correctness of pointer arguments; in C, always check for correct
2259         argument types before macro expansion.
2260         * config/rs6000/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): New macro
2261         defining Darwin/PowerPC-specific '-f[no-]altivec' and
2262         '-W[no-]altivec-long-deprecated' switches.
2263         * config/rs6000/rs6000-c (rs6000_cpu_cpp_builtins): Pre-define
2264         '__vector', '__pixel' and '__bool' macros using
2265         '__attribute__((altivec(...)))' types.
2266         * config/rs6000/rs6000.c (bool_char_type_node, bool_short_type_node,
2267         bool_int_type_node, pixel_type_node, bool_V16QI_type_node,
2268         bool_V8HI_type_node, bool_V4SI_type_node, pixel_V8HI_type_node):
2269         New type nodes.
2270         (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): New, for
2271         handling '-W[no-]altivec-long-deprecated'.
2272         (rs6000_override_options): Handle '-W[no-]altivec-long-deprecated'.
2273         (rs6000_expand_binop_builtin, rs6000_expand_ternop_builtin,
2274         altivec_expand_dst_builtin): Remove casts from integer literals.
2275         (altivec_expand_builtin): Likewise; handle expansion of new
2276         '__builtin_altivec_compiletime_error' function.
2277         (rs6000_init_builtins): Initialize 'vector bool ...' and 'vector pixel'
2278         types, and make them distinct from other vector types; register
2279         '__builtin_altivec_compiletime_error' function.
2280         (print_operand): For 'P', print a full target register name instead of
2281         merely its number.
2282         (rs6000_attribute_table): Add "altivec" attribute.
2283         (rs6000_handle_altivec_attribute): New function.
2284         * config/rs6000/rs6000.h (TARGET_OPTIONS): Describe
2285         '-m[no-]-warn-altivec-long' (which '-W[no-]altivec-long-deprecated'
2286         maps to).
2287         (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): Forward
2288         declare.
2289         (ALTIVEC_BUILTIN_COMPILETIME_ERROR): New built-in enumeration.
2290
2291 2004-02-20  James E Wilson  <wilson@specifixinc.com>
2292
2293         * config/ia64/ia64.md (shift_mix4left+1): Delete reload_completed
2294         check.
2295         (shift_mix4left+2): Delete redundant pattern.
2296
2297 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
2298
2299         * alias.c (OUTGOING_REGNO): Don't define the default.
2300         * builtins.c (OUTGOING_REGNO): Likewise.
2301         (INCOMING_REGNO): Likewise.
2302         (apply_args_register_offset): Always use OUTGOING_REGNO.
2303         * combine.c (OUTGOING_REGNO): Likewise.
2304         * sibcall.c (OUTGOING_REGNO): Likewise.
2305         * defaults.h (INCOMING_REGNO): Provide the default.
2306         (OUTGOING_REGNO): Likewise.
2307
2308 2004-02-21  Jan Hubicka  <jh@suse.cz>
2309
2310         * params.def (max-peeled-insns, max-completely-peeled-insns,
2311         max-once-peeled-insns): Set to 400.
2312
2313 2004-02-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2314
2315         PR c++/12007
2316         * dbxout.c (dbxout_parms): Check that DECL_RTL and DECL_INCOMING_RTL
2317         are set for parameters before outputing debugging information.
2318
2319 2004-02-20  Falk Hueffner  <falk@debian.org>
2320
2321         PR target/14201
2322         * config/alpha/alpha.md (*fix_truncsfsi_ieee): Fix typoed operand
2323         numbers.
2324
2325 2004-02-20  Per Bothner  <per@bothner.com>
2326
2327         * input.h:  Don't #include line-map.h.  It may cause link problems
2328         with undefined linemap_line_start when line-map.h is included but
2329         line-map.o is not linked, as currently happens with gengtype on
2330         compilers that don't support inline.
2331         * toplev.c:  So we do have to explicitly #include line-map.h here.
2332
2333 2004-02-20  Richard Henderson  <rth@redhat.com>
2334
2335         * doc/invoke.texi: Add -Wvariadic-macros.
2336
2337 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
2338
2339         * haifa-sched.c (sched_emit_insn): Remove.
2340         * sched-int.h: Remove the corresponding prototype.
2341
2342 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
2343
2344         Revert:
2345         2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
2346         * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
2347         * system.h (DEFAULT_SHORT_ENUMS): Poison.
2348         * config/cris/cris.h: Remove a comment about
2349         DEFAULT_SHORT_ENUMS.
2350         * config/ip2k/ip2k.h: Likewise.
2351         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
2352
2353 2004-02-20  Mohan Embar  <gnustuff@thisiscool.com>
2354             Tom Tromey  <tromey@redhat.com>
2355
2356         * doc/install.texi: Moved --disable-libgcj and
2357         --with-system-zlib documentation to new section for
2358         Java-specific options.
2359         Added explicit Cross-Compiler-Specific Options subheading.
2360         Added section for Java-specific options.
2361
2362 2004-02-20  Matt Kraai  <kraai@alumni.cmu.edu>
2363
2364         * doc/install.texi (Building the Ada compiler): Remove
2365         example.
2366
2367 2004-02-20  James E Wilson  <wilson@specifixinc.com>
2368
2369         * toplev.c (dump_file_index, dump_file): Put ce3 before rnreg.
2370
2371 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
2372
2373         * gcc.c (process_command): Allow translation of the copyright
2374         symbol but not the rest of the copyright message.
2375         * gcov.c (print_version): Likewise.  Allow translation of the
2376         message about warranty.
2377
2378 2004-02-20  Hans-Peter Nilsson  <hp@axis.com>
2379
2380         * config/cris/cris.md ("*andsi_movu"): Correct parentheses in
2381         predicate.
2382         ("*andsi_clear"): Tweak constraints to not match postincrement.
2383         Adjust the predicate to exclude a volatile memory reference.
2384         ("*andhi_clear"): Ditto.  Rename from "*andhi_clear_signed".
2385         ("*andhi_clear_unsigned"): Remove, non-matching pattern.
2386
2387 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
2388
2389         * move-if-change: Remove.
2390         * Makefile.in (s-mlib, c-parse.y, s-check, s-gencheck)
2391         (s-specs, s-options, s-config, s-conditions, s-flags, s-codes)
2392         (s-constants, s-emit, s-recog, s-opinit, s-extract, s-peep)
2393         (s-attr, s-attrtab, s-output, s-genrtl, s-modes, s-preds)
2394         (s-gtyp-gen, s-iov): Use the top level move-if-change.
2395         * objc/Make-lang.in (objc/objc-parse.y): Likewise.
2396
2397 2004-02-19  James E Wilson  <wilson@specifixinc.com>
2398
2399         * config/i386/i386.md (doloop_end_internal): Use nonimmediate_operand
2400         for operand2.  Add condition that requires register_operand operand2
2401         before reload.
2402
2403 2004-02-19  Richard Sandiford  <rsandifo@redhat.com>
2404             Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2405
2406         * config/mips/mips.c (mips_address_insns): Treat BLKmode specially.
2407         * config/mips/mips.md: Expand comment above unaligned loads and stores.
2408
2409 2004-02-19  Richard Henderson  <rth@redhat.com>
2410
2411         * Makefile.in (STRICT2_WARN): Add -Wno-variadic-macros.
2412         * tree.c (build0, build1, build2, build3, build4): Split out from...
2413         (build): ... here.  Call them.
2414         * tree.h (build, _buildN1, _buildN2, _buildC1, _buildC2): New.
2415
2416         * convert.c (convert_to_integer): Remove extra build argument.
2417         * tree-inline.c (expand_call_inline): Likewise.
2418
2419 2004-02-19  Richard Henderson  <rth@redhat.com>
2420
2421         * c-opts.c (warn_variadic_macros): New.
2422         (c_common_handle_option): Set it.
2423         (sanitize_cpp_opts): Copy it to cpp_opts.
2424         * c.opt (Wvariadic-macros): New.
2425         * cpplib.h (struct cpp_options): Add warn_variadic_macros.
2426         * cppinit.c (cpp_create_reader): Initialize it.
2427         * cppmacro.c (parse_params): Check it.
2428
2429 2004-02-19  David Daney <ddaney@avtrex.com>
2430
2431         PR preprocessor/14198
2432         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Add
2433         builtin_assert ("machine=mips")
2434
2435 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
2436
2437         * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
2438         * system.h (DEFAULT_SHORT_ENUMS): Poison.
2439         * config/cris/cris.h: Remove a comment about
2440         DEFAULT_SHORT_ENUMS.
2441         * config/ip2k/ip2k.h: Likewise.
2442         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
2443
2444 2004-02-19  Zack Weinberg  <zack@codesourcery.com>
2445
2446         * config/ia64/ia64.c (ia64_function_arg): In big-endian mode,
2447         when passing single SFmode quantities in general registers,
2448         put them in the high half.
2449
2450 2004-02-19  Aldy Hernandez  <aldyh@redhat.com>
2451
2452         * doc/md.texi (Standard Names): Document additional dependency on
2453         fix pattern.
2454
2455         * optabs.c (ftruncify): Remove.
2456         (expand_fix): Manually inline ftruncify above.
2457         (can_fix_p): Add FIXME note.
2458
2459 2004-02-19  Aldy Hernandez  <aldyh@redhat.com>
2460
2461         * config/rs6000/spe.md (spe_fixunssfsi2): Rename to
2462         spe_fixuns_truncsfsi2.
2463
2464         * config/rs6000/rs6000.md (fixunssfsi2): Rename to
2465         fixuns_truncsfsi2.
2466
2467 2004-02-19  Steve Ellcey  <sje@cup.hp.com>
2468
2469         * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
2470         * testsuite/gcc.dg/20040219-1.c: New test.
2471
2472 2004-02-19  Ulrich Weigand  <uweigand@de.ibm.com>
2473
2474         * config/s390/s390.md ("*subdf3_cc", "*subdf3_cconly", "*subsf3_cc",
2475         "*subsf3_cconly"): Subtraction is not commutative.
2476
2477 2004-02-19  Zack Weinberg  <zack@codesourcery.com>
2478
2479         * sdbout.c (preinit_symbols, sdbout_initialized): New statics.
2480         (sdbout_symbol): If called before sdbout_init, queue DECL for
2481         later and return.
2482         (sdbout_init): Set sdbout_initialized true, process decls
2483         queued earlier by sdbout_symbol.
2484         (sdbout_finish): Use size_t for index variable.
2485
2486 2004-02-19  Jeff Law  <law@redhat.com>
2487
2488         * fold-const.c (invert_truthvalue): Do not call invert_tree_comparison
2489         for unordered comparison codes.
2490
2491 2004-02-19  Ian Lance Taylor  <ian@wasabisystems.com>
2492
2493         * reload1.c (reload): Correct comment.
2494         (scan_paradoxical_subregs): Remove #if 0 and old comment.
2495         * doc/extend.texi (Local Reg Vars): Remove obsolete comment that
2496         register variables are not used by reload.
2497
2498 2004-02-19  Hans-Peter Nilsson  <hp@axis.com>
2499
2500         PR target/14209
2501         * config/cris/cris.md ("*andsi_movu", "*andhi_movu"): Tweak
2502         constraints to not match postincrement.  Adjust the predicate to
2503         exclude a volatile memory reference.
2504
2505 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
2506
2507         * config/mcore/mcore.h (ASM_OUTPUT_EXTERNAL): Remove.
2508
2509 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
2510
2511         * hooks.c (hook_void_tree_int): Remove.
2512         (hook_void_constcharptr): Likewise.
2513         (hook_int_void_0): Likewise.
2514         * hooks.h: Remove the prototypes for the above three
2515         functions.
2516         * targhooks.c (hook_bool_machine_mode_true): Remove.
2517         * targhooks.h: Remove the prototype for
2518         hook_bool_machine_mode_true.
2519
2520 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
2521
2522         * emit-rtl.c (subreg_realpart_p): Remove.
2523         (reorder_insns_with_line_notes): Likewise.
2524         (end_full_sequence): Likewise.
2525         * rtl.h: Remove the prototype for the above functions.
2526
2527 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
2528
2529         * config/arc/arc.h, config/arm/arm.h, config/frv/frv.h,
2530         config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
2531         config/iq2000/iq2000.h, config/m32r/m32r.h,
2532         config/pdp11/pdp11.h, config/sparc/sparc.h,
2533         config/xtensa/xtensa.h: Remove commented-out or useless
2534         definitions of CASE_VECTOR_PC_RELATIVE.
2535
2536 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
2537
2538         * loop.c (all_sets_invariant_p): Remove.
2539
2540 2004-02-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
2541
2542         PR target/12916
2543         * config/sparc/sparc.h (NPARM_REGS): Delete.
2544         (BASE_RETURN_VALUE_REG): Likewise.
2545         (BASE_OUTGOING_VALUE_REG): Likewise.
2546         (BASE_PASSING_ARG_REG): Likewise.
2547         (BASE_INCOMING_ARG_REG): Likewise.
2548         * config/sparc/sparc.c (sparc_strict_argument_naming): Test
2549         TARGET_ARCH64, not TARGET_V9.
2550         (function_arg_slotno): Dispatch based on the mode class.
2551         Handle vector modes like floating-point modes.
2552         (function_arg_record_value_1): Handle vector types like
2553         floating-point types.
2554         (function_arg_record_value_2): Likewise.
2555         Calculate regno after mode transformation.
2556         (function_arg): Handle vector modes like floating-point modes.
2557         (function_arg_partial_nregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX.
2558         If ARCH64, do not recheck alignment.
2559         (function_arg_pass_by_reference): Reorder the conditions.
2560         (sparc_return_in_memory): Move after function_arg_padding.
2561         Implement calling conventions for vector modes.
2562         (sparc_struct_value_rtx): Move after sparc_return_in_memory.
2563         (function_value): Move scope of 'regbase'.
2564         Implement calling conventions for vector modes.
2565         (sparc_builtin_saveregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX
2566         and BASE_INCOMING_ARG_REG by SPARC_INCOMING_INT_ARG_FIRST.
2567         (sparc_va_arg): Use function_arg_pass_by_reference to test whether
2568         the argument is passed by reference.
2569         (sparc_type_code): Handle vector types.
2570
2571 2004-02-19  Alan Modra  <amodra@bigpond.net.au>
2572
2573         * function.c (assign_parms): When building decl_rtl for
2574         SPLIT_COMPLEX_ARGS, ensure inner modes of concat match outer.
2575
2576 2004-02-19  Olivier Hainque  <hainque@act-europe.fr>
2577
2578         * expr.c (is_aligning_offset): Check if we are aligning the
2579         expressions's address over BIGGEST_ALIGNMENT in bytes, not
2580         in bits.
2581
2582 2003-02-18  Matt Austern  <austern@apple.com>
2583
2584         * gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined, and
2585         LIBGCC_SPEC isn't, set LIBGCC_SPEC to REAL_LIBGCC_SPEC.
2586         (init_gcc_spec): Don't define or call if REAL_LIBGCC_SPEC is
2587         defined.  Instead use REAL_LIBGCC_SPEC, unmodifed, as the libgcc
2588         spec string.
2589         * doc/tm.texi (REAL_LIBGCC_SPEC): Document.
2590
2591 2004-02-18  Zack Weinberg  <zack@codesourcery.com>
2592
2593         * dwarf2out.c (loclabel_num): Move outside #ifdef
2594         DWARF2_DEBUGGING_INFO and mark with GTY(()).
2595         * config/ia64/ia64.c (struct extern_func_list,extern_func_head):
2596         Mark with GTY(()).
2597         (ia64_hpux_add_extern_decl): Save the decl, not the name string.
2598         Allocate memory with ggc_alloc.  No need to copy anything.
2599         (ia64_hpux_file_end): Update to match.
2600
2601 2004-02-18  Jakub Jelinek  <jakub@redhat.com>
2602
2603         * config/i386/i386.c (override_options): Don't imply 3DNow! for -m64
2604         by default.
2605
2606 2004-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
2607
2608         * config/s390/s390.md ("divmodtidi3"): Use canonical RTL.
2609         ("divmodtisi3"): Likewise.
2610         ("udivmoddi4", "udivmodtidi3"): Likewise.
2611         ("divmodsi4", "divmoddisi3"): Likewise.
2612         ("udivmodsi4", "udivmoddisi3"): Likewise.
2613         ("udivsi3", "umodsi3"): Likewise.
2614
2615 2004-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
2616
2617         * config/s390/s390.c (s390_mainpool_start): Delete the main pool
2618         placeholder insn when chunkifying the pool.
2619
2620 2004-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2621
2622         * pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
2623         generating PIC code.
2624
2625 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
2626
2627         * config/h8300/h8300-protos.h: Add a prototype for
2628         h8300_expand_branch.
2629         * config/h8300/h8300.c (h8300_expand_branch): New.
2630         * config/h8300/h8300.md (ble, bleu, bge, bgeu, blt, bltu, bgt,
2631         bgtu, beq, bne): Call h8300_expand_branch().
2632
2633 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
2634
2635         * config/h8300/h8300-protos.h: Add prototypes for
2636         h8300_hard_regno_nregs and h8300_hard_regno_mode_ok.
2637         * config/h8300/h8300.c (h8300_hard_regno_nregs): New.
2638         (h8300_hard_regno_mode_ok): Likewise.
2639         * config/h8300/h8300.h (HARD_REGNO_NREGS): Call
2640         h8300_hard_regno_nregs().
2641         (HARD_REGNO_MODE_OK): Call h8300_hard_regno_mode_ok().
2642
2643 2004-02-18  Per Bothner  <per@bothner.com>
2644
2645         * cpphash.h (struct cpp_buffer):  Restore return_at_eof field.  This
2646         partly reverts my 2003-10-01 change, because we're back to logically
2647         including <command line> inside the main line.
2648         * cpplex.c (_cpp_get_fresh_line):  Check return_at_eof field.
2649         * cppmacro.c (cpp_scan_nooutput):  Set return_at_eof of current buffer.
2650         Fixes PR preprocessor/14103.
2651
2652         * cppfiles.c (_cpp_stack_include):  When appropriate decrement
2653         line_table's highest_location, fixing LAST_SOURCE_LINE_LOCATION.
2654         (cpp_push_include):  Don't need to increment pfile's line field.
2655         * line-map.h (LAST_SOURCE_LINE_LOCATION):  Only decrement by 1.
2656
2657         * c-ppoutput.c (print struct):  New first_time field.
2658         (init_pp_output):  Set print.first_time.
2659         (pp_file_change):  Use print.first_time, rather than MAIN_FILE_P,
2660         which is set also for (say) <command line>.  Clear print.first_time.
2661
2662         * cppfiles.c (struct _cpp_file):  Comment and type for pch field
2663         does not match the code, so fix both.
2664         (should_stack_file):  Inline include_pch_p function.
2665         (include_pch_p):  Remove pointless function.
2666
2667         * cpphash.h (struct cpp_buffer):  Remove unused search_cached field.
2668
2669 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
2670
2671         * config/h8300/h8300.md (four define_peephole2's): Use
2672         h8300_regs_ok_for_stm().
2673
2674 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
2675
2676         * config/h8300/h8300-protos.h: Update the prototype for
2677         expand_a_rotate().
2678         * config/h8300/h8300.c (expand_a_rotate): Remove the first
2679         argument.
2680         * config/h8300/h8300.md: Update all callers.
2681
2682 2004-02-18  Jan Hubicka  <jh@suse.cz>
2683
2684         * simplify-rtx.c (simplify_unary_operation): Deal with logicals on
2685         floats.
2686         (simplify_binary_operation): Deal with logicals on floats.
2687
2688         * i386.md (SSE fabs splitters): Emit new patterns.
2689         (SSE cmov splitters): Likewise.
2690         (sse_andv4sf3, sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3
2691         (sse_andv2df3, sse_nandv2df3, sse_iorv2df3, sse_xorv2df3): Do not use
2692         subregs.
2693         (sse_andsf3, sse_nandsf3, sse_xorsf3): Kill.
2694         (sse_anddf3, sse_nanddf3, sse_xordf3): Kill.
2695
2696 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
2697
2698         * config/h8300/h8300.c (expand_a_rotate): Don't generate insns
2699         by hand.
2700         (output_a_rotate): Tweak a comment.
2701         * config/h8300/h8300.md (*rotlqi3_1): Change to rotlqi3_1.
2702         (*rotlhi3_1): Change to rotlhi3_1.
2703         (*rotlsi3_1): Change to rotlsi3_1.
2704
2705 2004-02-18  Richard Earnshaw  <rearnsha@arm.com>
2706
2707         PR target/13866
2708         * arm.c (load_multiple_operation): Don't insist that the source reg
2709         of a post-increment component is the same as the destination.
2710         (store_multiple_operation): Likewise.
2711
2712 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
2713
2714         * config/h8300/h8300.md: Move movsf patterns into one section
2715         of the file.
2716
2717 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
2718
2719         * cfgloop.h, cfgloopanal.c, cpplex.c, except.h, loop-init.c,
2720         loop-unroll.c, scan-decls.c, scan.h, stor-layout.c,
2721         xcoffout.c, xcoffout.h, config/arm/mmintrin.h,
2722         config/mips/linux64.h, config/pa/pa-64.h,
2723         config/rs6000/aix51.h, config/rs6000/aix52.h,
2724         config/rs6000/spe.md, config/sparc/linux.h,
2725         config/sparc/linux64.h: Update copyright.
2726
2727 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
2728
2729         * config/h8300/h8300.md: Move push patterns into one
2730         section of the file.
2731
2732 2004-02-18  Mark Mitchell <mark@codesourcery.com>
2733
2734         PR c++/11326
2735         * config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
2736         fntype.
2737
2738 2004-02-18  Paul Brook  <paul@codesourcery.com>
2739
2740         * rtlanal.c (rtx_varies_p): Return 0 for NULL_RTX
2741
2742 2004-02-18  Paul Brook  <paul@codesourcery.com>
2743
2744         PR debug/12934
2745         * dwarf2out.c (loc_descriptor_from_tree): Handle
2746         EXPR_WITH_FILE_LOCATION.
2747
2748 2004-02-18  Jakub Jelinek  <jakub@redhat.com>
2749
2750         * config/i386/i386.md (zero_extendqidi2, zero_extendqidi2,
2751         testdi_1_rex64, anddi_2, xordi_1_rex64, xordi_2_rex64): Remove
2752         trailing whitespace from instructions.
2753
2754 2004-02-17  Geoffrey Keating  <geoffk@apple.com>
2755
2756         * configure.ac: When generating auto-build.h, pass
2757         --enable-languages to the sub-configure.
2758         Put quotes around ${program_transform_name} when generating
2759         name of as, ld, nm, objdump.
2760         * configure: Regenerate.
2761
2762 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
2763
2764         * Makefile.in (s-check, s-config, s-conditions, s-flags)
2765         (s-codes, s-constants, s-emit, s-recog, s-opinit, s-extract)
2766         (s-peep, s-attr, s-attrtab, s-output, s-genrtl, s-modes)
2767         (s-preds, s-iov): Do not depend on move-if-change.
2768
2769 2004-02-17  James E Wilson  <wilson@specifixinc.com>
2770
2771         * caller-save.c (insert_restore): Pass mem through copy_rtx.
2772         (insert_save): Likewise.
2773
2774 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
2775
2776         * config/h8300/h8300.c (h8300_emit_stack_adjustment): Fix a
2777         warning.
2778
2779 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
2780
2781         * config/h8300/h8300.md (*one_complsi2_h8300): Change to
2782         *one_cmplsi2_h8300.
2783         (*one_complsi2_h8300hs): Change to *one_cmplsi2_h8300hs.
2784
2785 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
2786
2787         * config/h8300/h8300-protos.h: Update the prototype of
2788         fix_bit_operand().
2789         * config/h8300/h8300.c (fix_bit_operand): Remove the second
2790         argument "what".
2791         * config/h8300/h8300.md: Update all callers.
2792
2793 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
2794
2795         * config/h8300/h8300.c (fix_bit_operand): Change the name of
2796         the last argument to "code" from "type".
2797
2798 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
2799
2800         * config/h8300/h8300.c: Remove an extern declaration of
2801         rtx_equal_function_value_matters.
2802
2803 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
2804
2805         * config/h8300/h8300.c (fix_bit_operand): Don't generate insns
2806         by hand.
2807         * config/h8300/h8300.md (*andqi3_1): Change to andqi3_1.
2808         (*iorqi3_1): Change to iorqi3_1.
2809         (*xorqi3_1): Change to xorqi3_1.
2810
2811 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
2812
2813         * c-common.c, cfghooks.c, rtlanal.c, varasm.c: Fix comment
2814         typos.
2815
2816 2004-02-17  Jan Hubicka  <jh@suse.cz>
2817
2818         * i386.c (x86_prologue_using_move, x86_epilogue_using_move): Disable for P4.
2819
2820 2004-02-18  Alan Modra  <amodra@bigpond.net.au>
2821
2822         PR optimization/14119
2823         * combine.c (try_combine): When attemting to fix unrecognized insns,
2824         don't delete SETs marked with REG_EH_REGION notes.
2825
2826 2004-02-17  Ulrich Weigand  <uweigand@de.ibm.com>
2827
2828         * combine.c (simplify_if_then_else): Do not replace
2829         (if_then_else (ne reg 0) (0) (const_int)) by (reg) if the
2830         modes differ.
2831
2832 2004-02017  Steven Bosscher  <stevenb@suse.de>
2833
2834         * (c-decl.c, c-semantics.c, calls.c, cgraph.c, cgraphunit.c,
2835         function.c, integrate.c, print-tree.c, toplev.c, tree-optimize.c,
2836         tree.h): Replace DECL_SAVED_INSNS with DECL_STRUCT_FUNCTION.
2837         * ada/utils.c: Likewise.
2838         * cp/decl.c: Likewise.
2839         * f/com.c: Likewise.
2840         * java/class.c: Likewise.
2841
2842 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
2843
2844         * config/h8300/h8300.md: Fix comment typos.
2845
2846 2004-02-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2847
2848         * config/mips/t-iris6gld: Renamed to ...
2849         * config/mips/t-irix-gld: ... this.
2850         * config.gcc (mips-sgi-irix6*): Reflect this
2851         (mips-sgi-irix5*): Use it with GNU ld.
2852
2853         * config/mips/irix6-crti.asm, config/mips/irix6-crtn.asm: Renamed
2854         to ...
2855         * config/mips/irix-crti.asm, config/mips/irix-crtn.asm: ... this.
2856         * config/mips/t-irix-gld: Reflect this.
2857         * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
2858
2859         * config/mips/iris5gld.h: New file.
2860         * config.gcc (mips-sgi-irix5*): Use it with GNU ld.
2861         Only use collect2 without gas.
2862
2863         * config/mips/iris6.h (IRIX6_STARTFILE_SPEC, IRIX6_ENDFILE_SPEC):
2864         Renamed to IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
2865         (STARTFILE_SPEC, ENDFILE_SPEC, SUBTARGET_EXTRA_SPECS): Reflect this.
2866         * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
2867
2868         * config/mips/iris6.h (SUBTARGET_EXTRA_SPECS): Moved ...
2869         * config/mips/iris5.h: ... here.
2870
2871         * config/mips/iris5.h (STARTFILE_SPEC, ENDFILE_SPEC): Renamed to
2872         IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
2873         (STARTFILE_SPEC, ENDFILE_SPEC): Define.
2874
2875         * config/mips/iris5gas.h (STARTFILE_SPEC, ENDFILE_SPEC): Simplify
2876         using irix_startfile_spec, irix_endfile_spec.
2877
2878 2004-02-16  Gunther Nikl  <gni@gecko.de>
2879
2880         * config/m68k/m68k.c: Remove obsolete support for HPUX_ASM.
2881
2882 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
2883
2884         * config/h8300/h8300.c (h8300_expand_prologue): Don't generate
2885         insns by hand.
2886
2887 2004-02-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2888
2889         * cfghooks.c (split_edge): Speed up updating of dominators.
2890
2891 2004-02-17  Mark Mitchell  <mark@codesourcery.com>
2892
2893         PR c++/11326
2894         * c-common.c (flag_abi_version): Remove.
2895         * c-common.h (flag_abi_version): Likewise.
2896         * c-opts.c (c_common_handle_option): Remove OPT_fabi_version case.
2897         * c.opt (fabi-version): Remove.
2898         * calls.c (expand_call): Always pass a function type to
2899         struct_value_rtx.  Use convert_memory_address.
2900         * common.opt (fabi-version): Add it.
2901         * flags.h (flag_abi_version): Likewise.
2902         (abi_version_at_least): New macro.
2903         * opts.c (common_handle_option): Add OPT_fabi_version.
2904         * toplev.c (flag_abi_version): Define it.
2905         * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
2906         New function.
2907         (ia64_output_mi_thunk): Use it.
2908         (ia64_struct_value_rtx): Likewise.
2909
2910 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
2911
2912         * config/h8300/h8300.c (h8300_emit_stack_adjustment):
2913         Don't generate insns by hand.
2914
2915 2004-02-17  Andrew Pinski  <pinskia@physics.uc.edu>
2916
2917         PR c++/14178
2918         * doc/invoke.texi (fabi-version): The default is 2 now.
2919
2920 2004-02-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2921
2922         * loop-iv.c: New file.
2923         * Makefile.in (loop-iv.o): New.
2924         * basic_block.h (FOR_BB_INSNS, FOR_BB_INSNS_REVERSE): New macros.
2925         * cfgloop.c (fill_sons_in_loop, get_loop_body_in_dom_order,
2926         num_loop_branches): New functions.
2927         * cfgloop.h (get_loop_body_in_dom_order, num_loop_branches,
2928         iv_analysis_loop_init, iv_get_reaching_def, iv_analyse, get_iv_value,
2929         find_simple_exit, iv_number_of_iterations, iv_analysis_done,
2930         get_simple_loop_desc, free_simple_loop_desc): Declare.
2931         (simple_loop_desc): New inline function.
2932         (struct rtx_iv, struct niter_desc): New.
2933         * cfgloopmanip.c (loopify): Specify semantics more precisely.
2934         * expr.c (force_operand): Handle subregs of expressions created by
2935         loop unroller.
2936         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Move
2937         parts of the initialization to toplev.c
2938         * loop-unroll.c (loop_exit_at_end_p): New.
2939         (unroll_and_peel_loops): Call iv_analysis_done.
2940         (decide_peel_once_rolling, decide_peel_completely,
2941         decide_unroll_stupid, decide_unroll_constant_iterations,
2942         decide_unroll_runtime_iterations, decide_peel_simple,
2943         peel_loop_simple, unroll_loop_stupid, unroll_loop_constant_iterations,
2944         unroll_loop_runtime_iterations): Use new simple loop analysis.
2945         * loop-unswitch.c (compare_and_jump_seq): New.
2946         (may_unswitch_on_p): Renamed to ...
2947         (may_unswitch_on): Use new iv analysis.
2948         (reversed_condition): Export.
2949         (unswitch_single_loop, unswitch_loop): Use new iv analysis.
2950         * predict.c (estimate_probability): Use new simple loop analysis.
2951         * rtl.h (get_mode_bounds, reversed_condition,compare_and_jump_seq,
2952         canon_condition, simplify_using_condition): Declare.
2953         * stor-layout.c (get_mode_bounds): New.
2954         * toplev.c (rest_of_handle_loop2): Some parts of
2955         initialization/finalization moved here from loop-init.c.
2956
2957 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
2958
2959         * config/h8300/h8300.h (FIXED_REGISTERS): Add the soft frame
2960         pointer.
2961         (CALL_USED_REGISTERS): Likewise.
2962         (REG_ALLOC_ORDER): Likewise.
2963         (REG_CLASS) <GENERAL_REGS>: Likewise.
2964
2965 2004-02-16  Geoffrey Keating  <geoffk@apple.com>
2966
2967         * doc/md.texi (Insn Canonicalizations): Document left-chaining
2968         in associative operators.
2969         * rtlanal.c (commutative_operand_precedence): Create some new
2970         variables.  Prefer a commutative operand on the left, then
2971         binary expressions, then NEG and NOT.
2972
2973 2004-02-16  Matthias Klose  <doko@debian.org>
2974
2975         * config/t-slibgcc-elf-ver: Define SHLIB_NAME and SHLIB_SONAME
2976         in terms of SHLIB_SOVERSION.
2977         * config/m68k/t-slibgcc-elf-ver: New file.
2978         * config/pa/t-slibgcc-elf-ver: New file.
2979         * config.gcc (m68k-linux, parisc-linux): Use them when not
2980         sjlj exceptions are not configured.
2981
2982 2004-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
2983
2984         * config/sparc/sparc.c (get_pc_symbol_name): Mark with GTY(()).
2985
2986 2004-02-16  Zack Weinberg  <zack@codesourcery.com>
2987
2988         * sdbout.c (sdb_debug_hooks): Correct the type_decl entry.
2989
2990 2004-02-16  Joseph S. Myers  <jsm@polyomino.org.uk>
2991
2992         * doc/sourcebuild.texi: Mention backends.html.
2993
2994 2004-02-16  Kazu Hirata  <kazu@cs.umass.edu>
2995
2996         * c-decl.c, c-ppoutput.c, cpphash.h, cpplib.h, dbxout.c,
2997         line-map.c, line-map.h, var-tracking.c: Fix comment
2998         formatting.
2999
3000 2004-02-16  Richard Henderson  <rth@redhat.com>
3001
3002         * cse.c (cse_insn): Don't lose REG_NON_LOCAL_GOTO note.
3003
3004         * fold-const.c (operand_equal_p): Fix VECTOR_CST comparison.
3005
3006 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
3007
3008         * config/h8300/h8300.md: Remove unnecessary parallels from
3009         all define_insn and define_split patterns.
3010
3011 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
3012
3013         * config/h8300/h8300.md: Remove explicit (set_attr "cc"
3014         "clobber").
3015
3016 2004-02-15  Bernardo Innocenti  <bernie@develer.com>
3017
3018         * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Restore support for
3019         '%#'.
3020
3021 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
3022
3023         * config/ia64/ia64.c, config/mips/mips.c,
3024         config/mmix/mmix-modes.def: Fix comment typos.
3025
3026 2004-02-15  Roger Sayle  <roger@eyesopen.com>
3027
3028         * c-common.h (GET_DIRECTIVE_LINE): Remove unused macro.
3029         (get_directive_line): Remove unused function prototype.
3030
3031 2004-02-14  Josef Zlomek  <zlomekj@suse.cz>
3032
3033         * tree-inline.c (copy_body_r): Do not replace ret_label.
3034
3035 2004-02-14  Jan Hubicka  <jh@suse.cz>
3036
3037         * i386.c (x86_four_jump_limit): New variable.
3038         (k8_avoid_jump_misspredicts): Rename to ...
3039         (ix86_avoid_jump_misspredicts): .. this one.
3040         (ix86_pad_returns): Break out from ...
3041         (ix86_reorg): ... this one; do ix86_avoid_jump_misspredicts when asked
3042         to.
3043         * i386.h (TARGET_FOUR_JUMP_LIMIT): New macro.
3044
3045 2004-02-14  Josef Zlomek  <zlomekj@suse.cz>
3046
3047         * emit-rtl.c (set_decl_incoming_rtl): Check whether the 0th element of
3048         PARALLEL is NULL.
3049
3050 2004-02-14  Per Bothner  <per@bothner.com>
3051
3052         * fix-header.c (line_table):  Move local variable in main to global.
3053         * scan.h (line_table):  Use it.
3054         * scan-decls.c (scan_decls):  Need to call linemap_lookup on token's
3055         line (recently renamed to src_loc) before calling recognized_function.
3056
3057 2004-02-14  Matt Kraai  <kraai@alumni.cmu.edu>
3058
3059         * Makefile.in: Fix comment typos.
3060
3061 2004-02-14  Olivier Hainque  <hainque@act-europe.fr>
3062
3063         * loop.c (check_dbra_loop): Use gen_int_mode instead of GEN_INT
3064         for start_value when it is directly moved into reg, and factorize
3065         the retrieval of GET_MODE (reg).
3066
3067 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
3068
3069         * config/mips/mips-protos.h (mips_load_got_page): Delete.
3070         (mips_load_got_global): Delete.
3071         (mips_gotoff_page): Declare.
3072         * config/mips/mips.md (UNSPEC_LOAD_GOT): New constant.
3073         (*xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i): Build an
3074         UNSPEC_LOAD_GOT pattern rather than a MEM.
3075         (*load_got[sd]i): New patterns.
3076         * config/mips/mips.c (mips_got_alias_set, mips_load_got): Delete.
3077         (mips_load_got_page, mips_load_got_global): Delete.
3078         (mips_gotoff_page): New function.
3079         (override_options): Don't initialize mips_got_alias_set.
3080
3081 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
3082
3083         * config/mips/mips.h (MASK_DEBUG_[ABEFI], TARGET_DEBUG_[ABEFI]_MODE)
3084         (TARGET_MIPS4100, TARGET_MIPS4300, TARGET_MIPS4KC, TARGET_MIPS5KC)
3085         (TARGET_SB1, TUNE_SB1, TUNE_SR71K, BIGGEST_MAX_ARGS_IN_REGISTERS)
3086         (GO_PRINTF, GO_PRINTF2, GO_DEBUG_RTX, DFMODE_NAN, SFMODE_NAN): Delete.
3087         (TARGET_SWITCHES): Remove MASK_DEBUG_[ABEFI].
3088         * config/mips/mips.c: Fix some overly-long lines.
3089         (SINGLE_WORD_MODE_P, PIC_OFFSET_TABLE_MASK): Delete.
3090         (init_cumulative_args): Remove TARGET_DEBUG_E_MODE handling.
3091
3092 2004-02-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3093
3094         * configure.ac: Search for as, ld below libexec/gcc.
3095         * configure: Regenerate.
3096
3097 2004-02-14  Ben Elliston  <bje@wasabisystems.com>
3098
3099         * config/arm/mmintrin.h (_mm_setwcx): Reverse arguments in call to
3100         __builtin_arm_setwcx ().
3101         * config/arm/arm.c (arm_expand_builtin): Generate operands
3102         correctly and reverse their order in call to gen_iwmmxt_tmcr ().
3103
3104 2004-02-14  Ben Elliston  <bje@wasabisystems.com>
3105
3106         * config/arm/arm.c (bdesc_2arg): Correct builtin names "wmulsh"
3107         and "wmuluh" to "wmulsm" and "wmulum", respectively.
3108         * config/arm/arm.h (enum arm_builtins): Rename enumerators to
3109         ARM_BUILTIN_WMULSM and ARM_BUILTIN_WMULUM.
3110         * config/arm/mmintrin.h (_mm_mulhi_pi16): Update intrinsic call.
3111         (_mm_mulhi_pu16): Likewise.
3112
3113 2004-02-13  Zack Weinberg  <zack@codesourcery.com>
3114
3115         * xcoffout.c (xcoff_assign_fundamental_type_number): Check
3116         DECL_NAME != 0 before dereferencing.
3117
3118 2004-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
3119
3120         * config/s390/s390-protos.h (s390_output_symbolic_const): Remove.
3121         (s390_output_addr_const_extra): Declare.
3122         (s390_output_pool_entry): Remove FILE * argument.
3123         * config/s390/s390.c (s390_output_symbolic_const): Remove.
3124         (s390_output_addr_const_extra): New function.
3125         (print_operand_address): Call output_addr_const instead of
3126         s390_output_symbolic_const.
3127         (print_operand): Likewise.
3128         (s390_output_pool_entry): Use assemble_integer for symbolic constants.
3129         Remove FILE * argument.
3130         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Define.
3131         * config/s390/s390.md ("*pool_entry"): Adapt s390_output_pool_entry
3132         call.
3133
3134 2004-02-13  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3135
3136         * cfgloopanal.c (mark_irreducible_loops): Rewriten.
3137         (struct edge, struct vertex, struct graph): New.
3138         (dump_graph, new_graph, add_edge, dfs, check_irred, for_each_edge,
3139         free_graph): New functions.
3140
3141 2004-02-12  Chris Demetriou  <cgd@broadcom.com>
3142
3143         * config/mips/mips.md (casesi_internal, casesi_internal_di):
3144         Use ".set macro" to avoid warnings about multi-instruction
3145         macros, since they're intentional.
3146
3147 2004-02-12  Geoffrey Keating  <geoffk@apple.com>
3148
3149         * config/darwin.h: Add include guards.  Remove old, now incorrect,
3150         comment about STANDARD_EXEC_PREFIX.
3151
3152         * Makefile.in (install-man): Use $(CPP_INSTALL_NAME) and
3153         $(GCOV_INSTALL_NAME) to install manpages.  Remove generic rule
3154         for installing .1 manpages.  Add rules for installing cpp
3155         and gcov manpages under their installed names.
3156
3157 2004-02-12  Alexandre Oliva  <aoliva@redhat.com>
3158
3159         * configure.ac (gcc_cv_ld): Don't set to LD if target is not
3160         host, but try LD_FOR_TARGET first.
3161         * configure: Rebuilt.
3162
3163 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
3164
3165         * dbxout.c: Move declaration of dbxout_type_decl outside
3166         #ifdef DBX_DEBUGGING_INFO.
3167         * c-parse.in: Don't give the asmdef production a type.
3168
3169 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
3170
3171         * debug.h (struct gcc_debug_hooks): Add type_decl field.
3172         (debug_nothing_tree_int): Prototype.
3173         (dwarf_debug_hooks): Delete, unused.
3174         * debug.c (do_nothing_debug_hooks): Update.
3175         (debug_nothing_tree_int): New function.
3176         * langhooks.h (struct lang_hooks_for_decls):
3177         Remove builtin_type_decls field.
3178         * langhooks-def.h (LANG_HOOKS_BUILTIN_TYPE_DECLS): Delete.
3179         (LANG_HOOKS_DECLS): Update.
3180         * toplev.c (rest_of_decl_compilation, rest_of_type_compilation):
3181         Use debug_hooks->type_decl.
3182         * dbxout.c (preinit_symbols): New static.
3183         (dbx_debug_hooks, xcoff_debug_hooks): Update.
3184         (dbxout_init): Don't call DBX_OUTPUT_STANDARD_TYPES or
3185         lang_hooks.decls.builtin_type_decls.  Do scan preinit_symbols
3186         for symbols to output.
3187         (dbxout_type_decl): New function.
3188         (dbxout_symbol): If called before dbxout_init has run, queue
3189         the symbol for later.  Apply DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER
3190         to TYPE_DECLs before emitting them.
3191         * xcoffout.c (assign_type_number): Delete.
3192         (xcoff_type_numbers): New static table.
3193         (xcoff_assign_fundamental_type_number): New function.
3194         * xcoffout.h: Define DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER, not
3195         DBX_OUTPUT_STANDARD_TYPES.  Remove unnecessary #ifdefs.
3196         * sdbout.c: Include varray.h.
3197         (deferred_global_decls): New static.
3198         (sdb_debug_hooks): Update.
3199         (sdbout_global_decl): If we can't emit something right now,
3200         remember it in deferred_global_decls.
3201         (sdbout_finish): Just scan deferred_global_decls; don't call getdecls.
3202         (sdbout_init): Initialize deferred_global_decls.
3203         * Makefile.in: Update dependencies of sdbout.o.
3204         * dwarf2out.c (dwarf2out_type_decl): New function.
3205         (dwarf2_debug_hooks): Update.
3206         * vmsdbgout.c (vmsdbg_debug_hooks): Update.
3207         * c-decl.c (getdecls): Just return 0.
3208         (check_for_loop_decls): Don't use getdecls.
3209         (record_builtin_type): Call debug_hooks->type_decl on the TYPE_DECL.
3210         * c-objc-common.c (c_objc_common_finish_file): Don't use getdecls.
3211
3212 2004-02-12  Ulrich Weigand  <uweigand@de.ibm.com>
3213
3214         * config/s390/s390.c (s390_sched_reorder2): Remove.
3215         (TARGET_SCHED_REORDER2): Do not redefine.
3216
3217 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
3218
3219         * c-parse.in (maybe_type_qual): Delete.
3220         (maybe_volatile, simple_asm_expr, asmdef, asm_stmt)
3221         (asm_argument): New grammar rules.
3222         (extdef_1): Use asmdef.
3223         (maybeasm): Move down with other asm rules; use simple_asm_expr.
3224         (xexpr): Move up with other expression rules.
3225         (stmt): Use asm_stmt.
3226
3227         * c-typeck.c (build_asm_expr): New function - body mostly
3228         pulled from build_asm_stmt.
3229         (build_asm_stmt): Just handle tacking on the volatile qualifier.
3230         * c-tree.h (build_asm_expr, build_asm_stmt): Update prototypes.
3231
3232 2004-02-12  Richard Sandiford  <rsandifo@redhat.com>
3233
3234         PR bootstrap/13617
3235         * config/mips/mips-protos.h (mips_output_aligned_decl_common): Declare.
3236         (mips_declare_object): Make variadic.
3237         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use
3238         mips_output_aligned_decl_common.
3239         * config/mips/mips.c (mips_output_aligned_decl_common): New function.
3240         (mips_declare_object): Make variadic.
3241
3242 2004-02-12  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3243
3244         * function.c (update_epilogue_consts): Teach about binary operations.
3245
3246         * emit-rtl.c (set_mem_attributes_minus_bitpos): Don't kill
3247         previous MEM_VOLATILE in REF.
3248         * function.c (fixup_var_refs): Save volatile_ok and set to 1.
3249         * expr.c (emit_block_move_via_movstr): Save and restore volatile_ok.
3250
3251 2004-02-12  Gunther Nikl  <gni@gecko.de>
3252
3253         * config.gcc: Restore support for m68k-openbsd.
3254
3255 2004-02-12  Jan Hubicka  <jh@suse.cz>
3256
3257         * tree-optimize.c (tree_rest_of_compilation): Do not release
3258         DECL_ARGUMENTS.
3259
3260 2004-02-11  Matt Kraai  <kraai@alumni.cmu.edu>
3261
3262         * doc/install.texi: Fix the spelling of "explicitly".
3263
3264 2004-02-11  Eric Christopher  <echristo@redhat.com>
3265
3266         * cppcharset.c (_cpp_interpret_string_notranslate): Rename and
3267         duplicate argument structure of cpp_interpret_string.
3268         * cpphash.h: Move prototype...
3269         * cpplib.h: Here.
3270         * cpplib.c: Fix calls to match new function signature.
3271
3272 2004-02-11  Joseph S. Myers  <jsm@polyomino.org.uk>
3273
3274         PR c/456
3275         * cppexp.c (num_binary_op): Don't allow comma operators in #if
3276         constant expressions at all outside C99 mode if pedantic.
3277
3278 2004-02-11  Uros Bizjak  <uros@kss-loka.si>
3279
3280         * optabs.h (enum optab_index): Add new OTI_log10 and OTI_log2.
3281         (log10_optab, log2_optab): Define corresponding macros.
3282         * optabs.c (init_optabs): Initialize log10_optab and log2_optab.
3283         * genopinit.c (optabs): Implement log10_optab and log2_optab
3284         using log10?f2 and log2?f2 patterns.
3285         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG10{,F,L}
3286         using log10_optab, and BUILT_IN_LOG2{,F,L} using log2_optab.
3287         (expand_builtin): Expand BUILT_IN_LOG10{,F,L} and BUILT_IN_LOG2{,F,L}
3288         using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
3289
3290         * config/i386/i386.md (log10sf2, log10df2, log10xf2, log2sf2,
3291         log2df2, log2xf2): New patterns to implement log10, log10f, log10l,
3292         log2, log2f and log2l built-ins as inline x87 intrinsics.
3293
3294 2004-02-11  Richard Henderson  <rth@redhat.com>
3295
3296         PR target/1532
3297         * flow.c (insn_dead_p): A clobber of a dead hard register is a
3298         dead insn after reload.
3299
3300 2004-02-11  Ulrich Weigand  <uweigand@de.ibm.com>
3301
3302         * tree.h (frame_base_decl): Add GTY marker.
3303         * var-tracking.c (frame_base_decl): Likewise.
3304
3305 2004-02-11  Daniel Berlin  <dberlin@dberlin.org>
3306
3307         * dwarf2out.c (output_loc_list): Remove no longer necessary, and now
3308         incorrect, hunk.
3309         (add_location_or_const_value_attribute): Use text_section_label,
3310         not TEXT_SECTION_NAME.
3311
3312 2004-02-11  Per Bothner  <per@bothner.com>
3313
3314         Represent column numbers using line-map's source_location.
3315         The "next available source_location" is now managed internally by
3316         line-maps.c rather than by clients.
3317         * line-map.h (struct line_map):  New field column_bits.
3318         <from_line>:  Rename field to start_location.
3319         (struct line_maps):  New fields highest_location and max_column_hint.
3320         (linemap_check_files_exited):  New declaration.
3321         (linemap_line_start):  New declaration.
3322         (linemap_add):  Remove from_line parameter; use highest_location field.
3323         (SOURCE_LINE, LAST_SOURCE_LINE):  Modify to use column_bits.
3324         (SOURCE_COLUMN, LAST_SOURCE_LINE_LOCATION):  New macros.
3325         (CURRENT_LINE_MAP):  Remove macro.
3326         (linemap_position_for_column):  New inline function.
3327         * line-map.c (linemap_init):  Clear new fields.
3328         (linemap_check_files_exited):  New function, extracted from ...
3329         (linemap_free):  Use linemap_check_files_exited.
3330         (linemap_add):  Remove from_line parameter.  Various updates.
3331         (linemap_line_start):  New function.
3332         (linemap_lookeup):  Update for new field names.
3333         * cpphash.h (struct cpp_reader) <map>:  Field removed.  Because
3334         linemap_position_for_column may unpredictably change the current map,
3335         it is cleaner and simpler for us to not cache it in cpp_reader.
3336         (struct cpp_buffer):  New sysp field.
3337         Changed warned_cplusplus_comments and from_stage3 to bitfields.
3338         * cppinit.c (cpp_read_min_file):  pfile->map no longer exists.
3339         * cpplib.c (do_line, do_linemarker, _cpp_do_file_change):  Get
3340         current map using linemap_lookup.
3341         (do_linemarker):  Also set buffer's sysp field.
3342         (destringize_and_run):  No longer need to decrement current line.
3343         * cppfiles.c (_cpp_stack_file):  Set sysp from and in buffer.
3344         (search_path_head, open_file_failed):  Use buffer's sysp.
3345         (cpp_make_system_header):  Get current map using linemap_lookup.
3346         Also set buffer's sysp flag.
3347         * cppmacro.c (_cpp_builtin_macro_text):  Likewise use linemap_lookup.
3348         * cpphash.h (CPP_INCREMENT_LINE):  New macro.
3349         (struct cpp_buffer):  Moved fields saved_cur, saved_rlimit to ...
3350         (struct cpp_reader):  ... and adding saved_line_base field.
3351         * cpptrad.c (_cpp_overlay_buffer, _cpp_remove_overlay):
3352         Update accordingly.  Don't adjust line.
3353         (_cpp_scan_out_logical_line):  Use CPP_INCREMENT_LINE.
3354         * cpphash.c (CPP_IN_SYSTEM_HEADER):  Replaced macro by ...
3355         (cpp_in_system_header):  ... new inline function, using buffer's sysp.
3356         * cpperror.c (_cpp_begin_message):  Update to use cpp_in_system_header.
3357         * cpplex.c (_cpp_lex_direct):  Likewise.
3358         * cppmacro.c (_cpp_builtin_macro_text):  Likewise.
3359         * cppmacro.c (_cpp_create_definition):  Use buffer's sysp field.
3360         * cpplib.h (struct cpp_token):  Rename line field to src_loc.
3361         Remove col field as it is now subsumed by src_loc.
3362         * cpperror.c:  Update various field, parameter, and macro names.
3363         (print_location):  If col==0, try SOURCE_COLUMN of line.
3364         (cpp_error):  Use cur_token's src_loc field, rather than line+col.
3365         * cpplib.c (do_diagnostic):  Token's src_loc fields replaces line+col.
3366         * cpplex.c (_cpp_process_line_notes, _cpp_lex_direct,
3367         _cpp_skip_block_comment):  Use CPP_INCREMENT_LINE.
3368         (_cpp_temp_token):  Replace cpp_token's line+col fields by src_loc.
3369         (_cpp_get_fresh_line):  Don't need to adjust line for missing newline.
3370         (_cpp_lex_direct):  Use linemap_position_for_column.
3371         * c-ppoutput.c (maybe_print_line, print_line):  Don't take map
3372         parameter.  Instead get it from the line_table global.  Adjust callers.
3373         (print):  Remove map field.  Replace line field to src_line.
3374         (init_pp_output, account_for_newlines, maybe_print_line):  Adjust.
3375         (cb_line_change):  Use SOURCE_COLUMN.  Minor optimizations.
3376         (pp_file_change):  Use MAIN_FILE_P since we cannot checked print.map.
3377         Use LAST_SOURCE_LINE_LOCATION to "catch up" after #include.
3378         * cpptrad.c (copy_comment):  Rename variable.
3379         * c-lex.c (map):  Remove static variable, for same reason we removed
3380         cpp_reader's map field.
3381         (cb_line_change, cb_def_pragma, cb_define, cb_undef):  Hence we need
3382         to call linemap_lookup.
3383         (cb_line_change):  Token's line field replaced by src_loc.
3384         (fe_file_change):  Use MAINFILE_P and LAST_SOURCE_LINE macros.
3385         Don't save new_map.
3386
3387         * cpphash.h, cpperror.c, cpplib.h:  Some renames of fileline to
3388         source_location.
3389
3390 2004-02-11  Hartmut Penner  <hpenner@de.ibm.com>
3391
3392         * config/rs6000/altivec.md (*movv4si_internal): At least one
3393         operand must be register_operand.
3394         (*movv8hi_internal1): Likewise.
3395         (*movv16qi_internal1): Likewise.
3396         (*movv4sf_internal1): Likewise.
3397
3398 2004-02-10  Aldy Hernandez  <aldyh@redhat.com>
3399
3400         * config/rs6000/spe.md ("*movv2si_internal"): Check for register
3401         operand.
3402         (movv4hi_internal): Same.
3403         (movv2sf_internal): Same.
3404         (movv1di_internal): Same.
3405
3406 2004-02-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
3407
3408         * config/mips/mips.h (TARGET_OLDABI): Define. Use TARGET_NEWABI and
3409         TARGET_OLDABI consistently.
3410         * config/mips/mips.c (function_arg,mips_setup_incoming_varargs,
3411         mips_va_arg,override_options,compute_frame_size,
3412         mips_initial_elimination_offset,mips16_fp_args,build_mips16_call_stub
3413         ,mips_return_in_memory,mips_strict_argument_naming): Use TARGET_NEWABI
3414         and TARGET_OLDABI consistently.
3415         * config/mips/mips.md (exception_receiver): Likewise.
3416         * config/mips/linux64.h: Likewise.
3417
3418 2004-02-11  Hartmut Penner  <hpenner@de.ibm.com>
3419
3420         * gcc/config/rs6000/rs6000.c (rs6000_override_options)
3421         Set AltiVec ABI and vrsave as default for ppc64 linux.
3422         (init_cumulative_args): Post error, if try to return
3423         value in AltiVec register without enable AltiVec.
3424         (function_arg_advance): Ditto for passing arguments.
3425
3426 2004-02-11  Richard Sandiford  <rsandifo@redhat.com>
3427
3428         * emit-rtl.c (mark_label_nuses): Check that a LABEL_REF refers to
3429         a label before updating its usage count.
3430
3431 2004-02-10  Matt Kraai  <kraai@alumni.cmu.edu>
3432
3433         * doc/install.texi: Remove extra cd.
3434
3435 2004-02-10  Ziemowit Laski  <zlaski@apple.com>
3436
3437         * c-common.c (vector_size_helper): Remove; call
3438         reconstruct_complex_type() instead.
3439         * tree.c (reconstruct_complex_type): New function
3440         (formerly vector_size_helper() in c-common.c).
3441         (make_vector): Make externally visible.
3442         * tree.h (reconstruct_complex_type, make_vector): Add prototypes.
3443
3444 2004-02-10  Kazu Hirata  <kazu@cs.umass.edu>
3445
3446         * config/h8300/h8300-protos.h: Add a prototype for
3447         h8300_regs_ok_for_stm.
3448         * config/h8300/h8300.c (h8300_regs_ok_for_stm): New.
3449         * config/h8300/h8300.md (stm_h8300s_2_advanced,
3450         stm_h8300s_2_normal, stm_h8300s_2, stm_h8300s_3_advanced,
3451         stm_h8300s_3_normal, stm_h8300s_3, stm_h8300s_4_advanced,
3452         stm_h8300s_4_normal, stm_h8300s_4, ldm_h8300s_2_advanced,
3453         ldm_h8300s_2_normal, ldm_h8300s_2, ldm_h8300s_3_advanced,
3454         ldm_h8300s_3_normal, ldm_h8300s_3, ldm_h8300s_4_advanced,
3455         ldm_h8300s_4_normal, ldm_h8300s_4): Use
3456         h8300_regs_ok_for_stm().
3457
3458 2004-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
3459
3460         PR c/14088
3461         * real.c (real_from_string): Look for 'X' as well as 'x' in
3462         hexfloat strings.
3463
3464 2004-02-10  Kazu Hirata  <kazu@cs.umass.edu>
3465
3466         * config/h8300/h8300.md: Remove an incorrect comment about
3467         peephole2.  Add comments.
3468
3469 2004-02-10  Josef Zlomek  <zlomekj@suse.cz>
3470
3471         PR/14058
3472         * emit-rtl.c (set_decl_incoming_rtl): New.
3473         * tree.h (set_decl_incoming_rtl): New.
3474         * function.c (assign_parms): Use set_decl_incoming_rtl for setting
3475         DECL_INCOMING_RTL.
3476         * ada/misc.c (adjust_decl_rtl): Likewise.
3477
3478 2004-02-10  Per Bothner  <per@bothner.com>
3479
3480         * c-opts.c (c_common_post_options):   Don't emit working directory
3481         in cpp output if -P was specified.
3482
3483 2004-02-10  Paolo Bonzini  <bonzini@gnu.org>
3484
3485         PR c/14092
3486         * fold-const.c (fold) <NEGATE_EXPR>: Convert result of
3487         negate_expr back to the original type.
3488
3489 2004-02-10  Alan Modra  <amodra@bigpond.net.au>
3490
3491         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't
3492         bump retaddr here.
3493
3494 2004-02-10  Paolo Bonzini  <bonzini@gnu.org>
3495
3496         * rtl.h (schedule_insns, schedule_ebbs, fix_sched_param,
3497         gen_lowpart_SUBREG): Move under the file in which they
3498         are actually declared.
3499
3500 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>
3501
3502         * doc/sourcebuild.texi: Add libada documentation.
3503
3504         * doc/install.texi: Update documentation on Ada build, now
3505         that the GNAT lib and tools are built automatically.
3506
3507 2004-02-10  Richard Sandiford  <rsandifo@redhat.com>
3508
3509         * config/mips/mips.h (TARGET_GPWORD): Return false for TARGET_NEWABI
3510         && TARGET_IRIX.
3511
3512 2004-02-09  Ziemowit Laski  <zlaski@apple.com>
3513
3514         * objc/objc-act.c (get_super_receiver): Move '#ifdef OBJCPLUS'
3515         boundaries outside build_component_ref() call (a macro in ObjC++).
3516
3517 2004-02-09  Bob Wilson  <bob.wilson@acm.org>
3518
3519         * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Update.
3520         (init_cumulative_args): Likewise.
3521         (a7_overlap_mentioned_p): Delete prototype.
3522         * config/xtensa/xtensa.c (struct machine_function): Replace
3523         incoming_a7_copied field with need_a7_copy and vararg_a7 flags.
3524         Add set_frame_ptr_insn field.
3525         (xtensa_emit_move_sequence): Update call to xtensa_copy_incoming_a7.
3526         (xtensa_copy_incoming_a7): Rewrite to check need_a7_copy flag and check
3527         if the operand is an argument in a7.  If so, copy a7 to a new pseudo
3528         at the function entry and replace the operand with the pseudo.
3529         (init_cumulative_args): Remove unused arguments.  Add new "incoming"
3530         argument and record this flag in CUMULATIVE_ARGS.
3531         (function_arg): Remove result_mode and special-case code to handle
3532         arguments in a7.  Instead, set need_a7_copy flag when there is an
3533         incoming argument in a7.
3534         (xtensa_expand_prologue): Remove code to search for set_frame_ptr insn
3535         and use the value recorded in cfun->machine->set_frame_ptr_insn.
3536         (xtensa_builtin_saveregs): Check for negative gp_left value.  Set
3537         need_a7_copy and vararg_a7 flags.  Use move_block_from_reg instead of
3538         special-case code.
3539         (a7_overlap_mentioned_p): Delete.
3540         * config/xtensa/xtensa.h (CUMULATIVE_ARGS): Add "incoming" flag.
3541         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Remove useless
3542         arguments to init_cumulative_args and pass "incoming" flag instead.
3543         (BLOCK_REG_PADDING): Delete.
3544         * config/xtensa/xtensa.md (movdi, movsf, movdf): Remove unnecessary
3545         checks for reload_in_progress and reload_completed.  Update calls to
3546         xtensa_copy_incoming_a7.
3547         (ashlsi3): Rename existing insn to ashlsi3_internal.  Add expander
3548         to call xtensa_copy_incoming_a7.
3549
3550 2004-02-09  DJ Delorie  <dj@redhat.com>
3551
3552         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): No
3553         longer modify standard_exec_prefix, standard_bindir_prefix, or
3554         standard_startfile_prefix.
3555
3556 2004-02-09  James E Wilson  <wilson@specifixinc.com>
3557
3558         PR c++/11295
3559         * c-common.c (c_expand_expr, case STMT_EXPR): Change expand_expr call
3560         to expand_expr_real call, and pass in alt_rtl as last argument.
3561
3562         PR libstdc++/5625
3563         * builtin-types.def (BT_WORD, BT_FN_WORD_PTR): New.
3564         * builtins.c (expand_builtin): Handle BUILT_IN_EXTEND_POINTER.
3565         * builtins.def (BUILT_IN_EXTEND_POINTER): New.
3566         * except.c (expand_builtin_extend_pointer): New.
3567         * except.h (expand_builtin_extend_pointer): Declare.
3568
3569 2004-02-09  David Edelsohn  <edelsohn@gnu.org>
3570
3571         * config/rs6000/rs6000.c (rs6000_emit_move): Remove splitting slow
3572         unaligned loads and stores.
3573
3574 2004-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3575
3576         * config/mips/iris5.h (BSS_SECTION_ASM_OP): Define.
3577         * config/mips/iris6.h (BSS_SECTION_ASM_OP): Undef.
3578
3579         * config/mips/iris6.h (TARGET_ASM_NAMED_SECTION): Moved ...
3580         * config/mips/iris5.h: ... here.
3581         * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Remove.
3582
3583         * config/mips/iris6.h (EXTRA_SECTION_FUNCTIONS): Move ...
3584         * config/mips/iris5.h: ... here.
3585
3586 2004-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3587
3588         * configure.ac: Remove default executable files before AC_PROG_CC.
3589         * configure: Regenerate.
3590
3591 2004-02-09  Kazu Hirata  <kazu@cs.umass.edu>
3592
3593         PR target/13721
3594         * config/h8300/h8300.c (byte_reg): Call abort() if asked to
3595         print a operand other than a register.
3596
3597 2004-02-09  Roger Sayle  <roger@eyesopen.com>
3598
3599         * fold-const.c (fold) <NOP_EXPR>: Use the original type conversion
3600         tree code rather than call fold_convert, which doesn't specify a
3601         default floating point to integer conversion.
3602
3603 2004-02-08  Bernardo Innocenti  <bernie@develer.com>
3604
3605         * config/m68k/m68k.c, config/m68k/m68k.md (SGS, SGS_CMP_ORDER): Remove
3606         code to support SGS assembler.  Reformat adjacent code where possible.
3607         * config/m68k/m68k.c (switch_table_difference_label_flag): Remove
3608         definition.
3609         * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Remove support
3610         for '%#'.
3611         * config/m68k/linux.h, config/m68k/m68k.c,
3612         * config/m68k/math-68881.h: Replace `%#' with `#' in inline asm
3613         macros and asm_printf() format strings.
3614         * config/m68k/m68kelf.h (ASM_OUTPUT_CASE_END): Remove macro definition.
3615         * config/m68k/linux.h: Update copyright.
3616         * config/m68k/linux.h, config/m68k/m68k.c: Remove traling whitespace.
3617
3618 2004-02-08  Andreas Schwab  <schwab@suse.de>
3619             Bernardo Innocenti  <bernie@develer.com>
3620
3621         * config/m68k/m68k.h (REGISTER_NAMES): Prefix each name with
3622         REGISTER_PREFIX.
3623         * (M68K_FP_REG_NAME): New macro to specify an alternate name for the
3624         frame pointer register, overridable by OS targets.
3625         * (M68K_REGNAME): Macro to obtain register name for asm output,
3626         eventually replacing %a6 with M68K_FP_REG_NAME.
3627         * config/m68k/coff.h (REGISTER_NAMES): Don't redefine.
3628         * config/m68k/linux.h (REGISTER_NAMES): Likewise.
3629         * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
3630         * config/m68k/netbsd-elf.h (REGISTER_NAMES): Likewise.
3631         * config/m68k/m68k.c: Use M68K_REGNAME(x) in place of reg_names[x].
3632
3633 2004-02-08  Kazu Hirata  <kazu@cs.umass.edu>
3634
3635         * target-def.h (TARGET_STRUCT_VALUE_RTX): Define as
3636         hook_rtx_tree_int_null.
3637         * targhooks.c (default_struct_value_rtx): Remove.
3638         * targhooks.h: Remove the prototype for
3639         default_struct_value_rtx.
3640         * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
3641         config/fr30/fr30.c, config/h8300/h8300.c, config/i386/i386.c,
3642         config/ip2k/ip2k.c, config/iq2000/iq2000.c,
3643         config/m32r/m32r.c, config/mcore/mcore.c, config/mips/mips.c,
3644         config/mn10300/mn10300.c, config/pdp11/pdp11.c,
3645         config/rs6000/rs6000.c, config/s390/s390.c,
3646         config/stormy16/stormy16.c, config/v850/v850.c,
3647         config/xtensa/xtensa.c (TARGET_STRUCT_VALUE_RTX): Remove.
3648         * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document the default.
3649
3650 2004-02-08  Joseph S. Myers  <jsm@polyomino.org.uk>
3651
3652         * README.Portability: Change "ISO C89" to "ISO C90".
3653         * c-parse.in (primary, initelt): Likewise.
3654
3655 2004-02-08  Richard Sandiford  <rsandifo@redhat.com>
3656
3657         * real.c (encode_ibm_extended): Normalize the input value before
3658         converting it to a double.  Handle the case where a normal value
3659         rounds to infinity.
3660
3661 2004-02-08  Kazu Hirata  <kazu@cs.umass.edu>
3662
3663         * c-objc-common.c (c_cannot_inline_tree_fn): Fix a typo in a
3664         warning.
3665         * cse.c (preferrable): Change to preferable. Update all of its
3666         callers.
3667         * genautomata.c (ainsn): Change
3668         first_ainsn_with_given_equialence_num to
3669         first_ainsn_with_given_equivalence_num.  Update all of its
3670         references.
3671
3672 2004-02-08  Jan Hubicka  <jh@suse.cz>
3673
3674         * schedule-ebb.c (schedule_ebbs): Do not allocate reg life data.
3675
3676 2004-02-07  David Edelsohn  <edelsohn@gnu.org>
3677
3678         * function.c (assign_parms): Fix formatting.
3679
3680 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
3681
3682         * default.h (PROMOTE_PROTOTYPES): Remove.
3683         * system.h (PROMOTE_FUNCTION_RETURN, PROMOTE_PROTOTYPES,
3684         STRUCT_VALUE_REGNUM, SETUP_INCOMING_VARARGS,
3685         EXPAND_BUILTIN_SAVEREGS): Poison.
3686         * target-def.h (TARGET_PROMOTE_FUNCTION_RETURN): Define as
3687         hook_bool_tree_false.
3688         (TARGET_PROMOTE_PROTOTYPES): Likewise.
3689         * target.h: Replace SETUP_INCOMING_VARARGS with
3690         targetm.calls.setup_incoming_varargs().
3691         * targhooks.c (default_promote_function_return): Remove.
3692         (default_promote_prototypes): Likewise.
3693         (default_struct_value_rtx): Always abort().
3694         (default_expand_builtin_saveregs): Always print an error
3695         message.
3696         (default_setup_incoming_varargs): Do nothing.
3697         (default_pretend_outgoing_varargs_named): Don't depend on
3698         SETUP_INCOMING_VARARGS.
3699         * targhooks.h: Remove the prototype for
3700         default_promote_function_return and
3701         default_promote_prototypes.
3702
3703 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
3704
3705         * system.h (SHARED_SECTION_ASM_OP): Poison.
3706         * varasm.c (data_section): Don't use SHARED_SECTION_ASM_OP.
3707         * doc/tm.texi (SHARED_SECTION_ASM_OP): Remove.
3708
3709 2004-02-07  Zack Weinberg  <zack@codesourcery.com>
3710
3711         Bug 13856
3712         * c-decl.c (diagnose_mismatched_decls): Only give special
3713         treatment when olddecl is DECL_BUILT_IN, if C_DECL_INVISIBLE
3714         is also true.
3715         (merge_decls): Don't clear DECL_BUILT_IN_CLASS and
3716         DECL_FUNCTION_CODE when defining a built-in function.
3717         Don't update DECL_ESTIMATED_INSNS.
3718         * dwarf2out.c (dwarf2out_decl): Don't ignore built-in
3719         FUNCTION_DECLs.
3720         * tree.h: Delete DECL_ESTIMATED_INSNS.
3721         * tree-inline.c (struct inline_data): Delete inlined_insns field.
3722         (expand_call_inline, optimize_inline_calls): Don't update
3723         DECL_ESTIMATED_INSNS nor inlined_insns.
3724         * cgraphunit.c (cgraph_analyze_function): Don't update
3725         DECL_ESTIMATED_INSNS.
3726
3727 2004-02-07  Zack Weinberg  <zack@codesourcery.com>
3728
3729         * c-common.c (shadow_warning): Delete.
3730         * c-common.h (free_parser_stacks, shadow_warning, sw_kind): Delete.
3731         * c-decl.c (warn_if_shadowing): Issue shadow warnings directly.
3732         * c-opts.c (c_common_parse_file): Don't call free_parser_stacks.
3733         * c-parse.in (free_parser_stacks): Delete.
3734
3735 2004-02-07  Nathanael Nerode  <neroden@gcc.gnu.org>
3736
3737         * Makefile.in, config/t-slibgcc-darwin, config/t-slibgcc-elf-ver,
3738         config/t-slibgcc-sld, config/mips/t-iris5-6, config/sh/t-linux:
3739         Use the top level mkinstalldirs, not the one in the gcc subdir.
3740         * mkinstalldirs: Remove (from the gcc subdir).
3741
3742 2004-02-07  Roger Sayle  <roger@eyesopen.com>
3743
3744         PR middle-end/13696
3745         * fold-const.c (fold_convert): New function to provide type
3746         conversion to the middle-end without using convert.
3747         (negate_expr, associate_trees, size_diffop, omit_one_operand,
3748         operand_equal_for_comparison_p, pedantic_omit_one_operand,
3749         invert_truthvalue, optimize_bit_field_compare, range_binop,
3750         decode_field_reference, make_range, build_range_check, unextend,
3751         fold_truthop, extract_muldiv_1, fold_mathfn_compare,
3752         fold_binary_op_with_conditional_arg, fold_inf_compare,
3753         fold_single_bit_test, fold, multiple_of_p): Replace all calls to
3754         convert with calls to fold_convert.
3755
3756 2004-02-07  Jan Hubicka  <jh@suse.cz>
3757
3758         * genrecog.c (find_operand): add extra argument stop.
3759         (validate_pattern): Verify that mach_dup is duplicating operand
3760         defined lexically earlier.
3761
3762 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
3763
3764         * config.gcc: Don't mention MAX_LONG_TYPE_SIZE.
3765         * system.h (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
3766         MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Poison.
3767         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
3768         config/ia64/ia64.h, config/ip2k/ip2k.h,
3769         config/iq2000/iq2000.h, config/mips/iris5.h,
3770         config/mips/mips.h, config/pa/pa-64.h, config/pa/pa.h,
3771         config/rs6000/aix51.h, config/rs6000/aix52.h,
3772         config/rs6000/darwin.h, config/rs6000/rs6000.h,
3773         config/s390/s390.h, config/sh/sh.h, config/sparc/freebsd.h,
3774         config/sparc/linux.h, config/sparc/linux64.h,
3775         config/sparc/netbsd-elf.h, config/sparc/sparc.h,
3776         config/xtensa/xtensa.h: Remove the definitions of
3777         MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE, and/or
3778         MAX_WCHAR_TYPE_SIZE.
3779         * doc/tm.texi (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
3780         MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Remove.
3781
3782 2004-02-07  Stephane Carrez  <stcarrez@nerim.fr>
3783
3784         PR bootstrap/13990
3785         * config/m68hc11/m68hc11.md ("doloop_end"): Pass dummy arguments to
3786         gen_rtx_NE.
3787
3788 2004-02-07  Josef Zlomek  <zlomekj@suse.cz>
3789
3790         * var-tracking.c (vt_add_function_parameters): Surround checkings by
3791         #ifdef ENABLE_CHECKING and #endif.
3792
3793 2004-02-07  Roger Sayle  <roger@eyesopen.com>
3794
3795         * fold-const.c (negate_expr_p, negate_expr): Optimize -(A+B) into
3796         either (-A)-B or (-B)-A, if A or B is easily negated respectively.
3797         (fold) <MINUS_EXPR>: Optimize (A*C) - (B*C) -> (A-B)*C for both
3798         integer types and floating point with unsafe_math_optimizations.
3799         Add similar optimization for (A*C1) - (A*C2) -> A*(C1-C2).
3800         Optimize A - B as A + (-B), if B is easily negated.
3801
3802 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
3803
3804         * c-ppoutput.c, cfganal.c, diagnostic.h, print-rtl.c,
3805         config/darwin.c, config/darwin.h, config/ia64/ia64-c.c,
3806         config/m32r/linux.h, config/rs6000/ppc64-fp.c,
3807         config/sparc/openbsd.h, doc/makefile.texi, doc/passes.texi:
3808         Update copyright.
3809
3810 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
3811
3812         * c-ppoutput.c, var-tracking.c: Fix comment typos.
3813
3814 2004-02-06  James E Wilson  <wilson@specifixinc.com>
3815
3816         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
3817         glibc 2.3 or better.
3818
3819 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
3820
3821         * doc/tm.texi (TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL): Change
3822         to FLOAT_LIB_COMPARE_RETURNS_BOOL.
3823
3824 2004-02-07  Alan Modra  <amodra@bigpond.net.au>
3825
3826         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
3827         (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
3828         (SHLIB_MKMAP_OPTS): Delete.
3829         (TARGET_LIBGCC2_CFLAGS): Add -specs.
3830         (bispecs): Add rule.
3831         * config/rs6000/libgcc-ppc64.ver: New file.
3832         * config/rs6000/ppc64-fp.c (__fixtfdi, __floatditf): New functions.
3833         (__floatdidf, __floatdisf): Optimize multiply.
3834         (__fixunstfdi): New function.
3835         * config/rs6000/rs6000.c (rs6000_complex_function_value): Allow for
3836         real and imag parts larger than one register.
3837         (function_arg): Correct type of reg used when fp arg split partially
3838         to stack.
3839         * config/rs6000/darwin-ldouble.c: Protect with #if !_SOFT_FLOAT
3840         and __MACH__ or __powerpc64__.
3841
3842 2004-02-06  Roger Sayle  <roger@eyesopen.com>
3843             Ulrich Weigand  <uweigand@de.ibm.com>
3844
3845         * builtins.c (expand_builtin_signbit): Use extract_bit_field instead
3846         of gen_highpart or gen_lowpart when the floating point format is
3847         wider than the result mode.
3848
3849 2004-02-06  Andrew Pinski  <pinskia@physics.uc.edu>
3850
3851         * dwarf2out.c (loclabel_num): Move into #ifdef
3852         DWARF2_DEBUGGING_INFO.
3853
3854 2004-02-06  Ziemowit Laski  <zlaski@apple.com>
3855
3856         * objc/objc-act.c (build_super_template) the 'class' field of
3857         'struct _objc_super' shall be named 'super_class' #ifdef OBJCPLUS.
3858         (get_super_receiver): Likewise.
3859
3860 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
3861
3862         * reload1.c (check_eliminable_occurrences): Optimize the reset
3863         of can_eliminate.
3864         (eliminate_regs_in_insn): Likewise.
3865
3866 2004-02-06  Daniel Berlin <dberlin@dberlin.org>
3867             Josef Zlomek  <zlomekj@suse.cz>
3868
3869         * dwarf2out.c (struct gcc_debug_hooks): Call dwarf2out_begin_function
3870         at the beginning of function, call dwarf2out_var_location for
3871         NOTE_INSN_VAR_LOCATION note.
3872         (struct var_loc_node, struct var_loc_list_def, loclabel_num,
3873         decl_loc_table): New.
3874         (lookup_decl_loc): New function.
3875         (add_var_loc_to_decl): New function.
3876         (based_loc_descr): Added parameter can_use_fbreg, DW_OP_fbreg is used
3877         only if can_use_fbreg.
3878         (mem_loc_descriptor): Added parameter can_use_fbreg, pass it to other
3879         functions.
3880         (loc_descriptor): Likewise. Process VAR_LOCATION.
3881         (concat_loc_descriptor): Call loc_descriptor with can_use_fbreg == true.
3882         (loc_descriptor_from_tree): Call mem_loc_descriptor with
3883         can_use_fbreg == true.
3884         (add_location_or_const_value_attribute): Added parameter enum
3885         dwarf_attribute attr, generate attribute ATTR.  Create the location list.
3886         (add_bound_info): Call loc_descriptor with can_use_fbreg == true.
3887         (gen_formal_parameter_die): Call add_location_or_const_value_attribute
3888         with attr == DW_AT_location.
3889         (gen_subprogram_die): Generate the location list for DW_AT_frame_base
3890         if frame_base_decl is defined and has a location list.
3891         (gen_variable_die): Call add_location_or_const_value_attribute with
3892         attr == DW_AT_location.
3893         (dwarf2out_var_location): New function.
3894         (dwarf2out_begin_function): New function.
3895         (dwarf2out_init): Create decl_loc_table.
3896
3897 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
3898
3899         * loop.c (force_movables): Transitively increase the priorities of
3900         all insns forces by an insn, not just the first one.
3901
3902 2004-02-06  Josef Zlomek  <zlomekj@suse.cz>
3903             Daniel Berlin <dberlin@dberlin.org>
3904
3905         Josef Zlomek  <zlomekj@suse.cz>
3906         * Makefile.in (var-tracking.o): New.
3907         * common.opt (fvar-tracking): New.
3908         * flags.h (flag_var_tracking): New.
3909         * gengtype.c (adjust_field_rtx_def): NOTE_INSN_VAR_LOCATION was added.
3910         * opts.c (common_handle_option): Add OPT_fvar_tracking.
3911         * print-rtl.c (print_rtx): NOTE_INSN_VAR_LOCATION was added.
3912         * rtl.c (note_insn_name): Likewise.
3913         * rtl.def (VAR_LOCATION): New.
3914         * rtl.h (NOTE_VAR_LOCATION): New.
3915         (NOTE_VAR_LOCATION_DECL): New.
3916         (NOTE_VAR_LOCATION_LOC): New.
3917         (enum insn_note): NOTE_INSN_VAR_LOCATION was added.
3918         (variable_tracking_main): New exported function.
3919         * timevar.def (TV_VAR_TRACKING): New.
3920         * toplev.c (enum dump_file_index): Added DFI_vartrack.
3921         (dump_file): "vartrack" was added (-dV).
3922         (flag_var_tracking): New.
3923         (f_options): "var-tracking" was added.
3924         (rest_of_handle_variable_tracking): New function.
3925         (rest_of_compilation): Run variable tracking.
3926         (process_options): If user has not specified flag_var_tracking set it
3927         according to optimize, debug_info_level and debug_hooks.
3928         * tree.h (frame_base_decl): New.
3929         * var-tracking.c: New file.
3930         * config/ia64/ia64.c (ia64_flag_var_tracking): New variable.
3931         (ia64_override_options): Set flags to run variable tracking in machine
3932         dependent reorg instead of toplev.c.
3933         (ia64_reorg): Run variable tracking if wanted.
3934         * doc/invoke.texi: Mention variable tracking in -dV,
3935         add and -fvar-tracking.
3936         * doc/passes.texi: Added variable tracking pass.
3937
3938         Daniel Berlin <dberlin@dberlin.org>
3939         * debug.h (struct gcc_debug_hooks): Added var_location debug hook.
3940         * dbxout.c (dbx_debug_hooks): Likewise.
3941         (xcoff_debug): Likewise.
3942         * debug.c (do_nothing_debug_hooks): Likewise.
3943         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
3944         * dwarfout.c (dwarf_debug_hooks): Likewise.
3945         * sdbout.c (sdb_debug_hooks): Likewise.
3946         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3947         * final.c (final_scan_insn): Call var_location debug hook for each
3948         NOTE_INSN_VAR_LOCATION.
3949
3950 2004-02-06  Jan Hubicka  <jh@suse.cz>
3951
3952         * flow.c (update_life_info): Allocate reg_deaths when called from
3953         scheudler.
3954         (attempt_auto_inc):  Update life ranges accordingly.
3955
3956 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
3957
3958         PR debug/11816
3959         * dwarf2out.c (gen_decl_die): Handle anonymous struct members.
3960
3961 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
3962
3963         * cfganal.c (flow_call_edges_add): Never split a libcall block.
3964
3965 2004-02-06  Daniel Berlin  <dberlin@dberlin.org>
3966
3967         * dwarf2out.c (output_loc_list): Don't use deltas if we have
3968         a separate line info table in use.
3969         Use the correct size for terminators.
3970         (output_die): Use offset, not delta.
3971
3972 2004-02-06  H.J. Lu  <hongjiu.lu@intel.com>
3973
3974         * doc/invoke.texi: Remove the pni option from -mfpmath=.
3975
3976 2004-02-06  Jan Hubicka  <jh@suse.cz>
3977
3978         * recog.c (split_all_insns): Do not update reg info.
3979         * regrename.c (regrename_optimize): Likewise.
3980         * toplev.c (rest_of_handle_reorder_blocks): Likewise.
3981         * flow.c (struct propagate_block_info): Add insn_num field.
3982         (reg_deaths): New array.
3983         (life_analysis): Free reg_deaths info.
3984         (allocate_reg_life_data): Allocate reg_deaths array.
3985         (propagate_one_insn): Use new array.
3986         (init_propagate_block): Initialize it.
3987         (free_propagate_block_info): Finish compuation of
3988         REG_LIVE_LENGTH
3989         (attempt_auto_inc): Sanity check that REG_INFO is not
3990         computed at same time.
3991         (mark_used_regs): Update new array.
3992
3993         * reg-stack.c (subst_stack_regs): Unshare clobbers before
3994         substitution.
3995
3996 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
3997
3998         * config/s390/s390.md (*extendsiqi2_short_displ): Change to
3999         *extendqisi2_short_displ.
4000
4001 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
4002
4003         * doc/tm.texi (INIT_CUMULATIVE_ARGS): Update doco.
4004         * calls.c (expand_call): Pass n_named_args to INIT_CUMULATIVE_ARGS.
4005         (emit_library_call_value_1): Likewise pass nargs.
4006         * expr.c (block_move_libcall_safe_for_call_parm): Pass 3 here.
4007         * function.c (assign_parms): Pass -1 to INIT_CUMULATIVE_ARGS.
4008         * config/rs6000/rs6000.c (init_cumulative_args): Use n_named_args
4009         parameter instead of scanning TYPE_ARGS_TYPES to count args.
4010         * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
4011         prototype.
4012         * config/rs6000/rs6000.h (INIT_CUMULATIVE_ARGS): Pass extra arg.
4013         (INIT_CUMULATIVE_INCOMING_ARGS): Set extra arg to 1000.
4014         (INIT_CUMULATIVE_LIBCALL_ARGS): Set extra arg to 0.
4015         * config/sh/sh.c (sh_output_mi_thunk): Pass 1 as n_named_args to
4016         INIT_CUMULATIVE_ARGS.
4017         * config/alpha/alpha.h (INIT_CUMULATIVE_ARGS): Update.
4018         * config/alpha/unicosmk.h, config/alpha/vms.h, config/arc/arc.h,
4019         config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h,
4020         config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.h,
4021         config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
4022         config/ia64/ia64.h, config/ip2k/ip2k.h, config/iq2000/iq2000.h,
4023         config/iq2000/iq2000.c, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
4024         config/m68k/m68k.h, config/mcore/mcore.h, config/mips/mips.h,
4025         config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h,
4026         config/pa/pa.h, config/pdp11/pdp11.h, config/s390/s390.h,
4027         config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
4028         config/v850/v850.h, config/vax/vax.h, config/xtensa/xtensa.h: Likewise.
4029
4030 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
4031
4032         * genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
4033         possible.
4034
4035 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
4036
4037         * reload1.c (eliminate_regs_in_insn): If a set has a REG_EQUAL
4038         note containing (plus (reg) (const_int)), where reg is an
4039         eliminable reg, then perform the register elimination without
4040         depending on eliminate_regs().
4041
4042 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
4043
4044         * config/arc/arc.c (arc_return_in_memory): Check the return
4045         value of int_size_in_bytes against -1.  Don't check
4046         TREE_ADDRESSABLE.
4047         * config/avr/avr.c (avr_return_in_memory): Check the return
4048         value of int_size_in_bytes against -1.
4049         * config/ip2k/ip2k.c (ip2k_return_in_memory): Likewise.
4050         * config/m68hc11/m68hc11.c (m68hc11_return_in_memory):
4051         Likewise.
4052         * config/mcore/mcore.c (mcore_return_in_memory): Likewise.
4053         * config/stormy16/stormy16.c (xstormy16_return_in_memory):
4054         Likewise.
4055
4056 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
4057
4058         * config/frv/frv-protos.h: Remove the prototype for
4059         frv_setup_incoming_varargs.
4060         * config/frv/frv.c (TARGET_SETUP_INCOMING_VARARGS): New.
4061         (frv_setup_incoming_varargs): Make it static.
4062         * config/frv/frv.h (SETUP_INCOMING_VARARGS): Remove.
4063
4064 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
4065
4066         * config/fr30/fr30-protos.h: Remove the prototype for
4067         fr30_setup_incoming_varargs.
4068         Update the prototypes for fr30_num_arg_regs and
4069         fr30_function_arg_partial_nregs.
4070         * config/fr30/fr30.c (TARGET_STRUCT_VALUE_RTX): New.
4071         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
4072         (fr30_setup_incoming_varargs): Make it static.
4073         Add argument second_time.  Don't do anything when second_time
4074         is nonzero.
4075         (fr30_num_arg_regs): Change the type of the first argument to
4076         enum machine_mode.
4077         (fr30_function_arg_partial_nregs): Change the type of the
4078         second argument to enum machine_mode.
4079         * config/fr30/fr30.h (STRUCT_VALUE): Remove.
4080         (SETUP_INCOMING_VARARGS): Remove.
4081
4082 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
4083
4084         * config/arc/arc-protos.h: Remove the prototype for
4085         arc_setup_incoming_varargs.
4086         * config/arc/arc.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
4087         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
4088         (arc_setup_incoming_varargs): Make it static.
4089         (arc_external_libcall): Likewise.
4090         * config/arc/arc.h (SETUP_INCOMING_VARARGS): Remove.
4091         Remove the commented-out definition of
4092         ASM_OUTPUT_EXTERNAL_LIBCALL.
4093
4094 2004-02-05  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
4095
4096         * config/sh/t-linux (SHLIB_INSTALL): Prepend $$(DESTDIR)
4097         to $$(slibdir) in the installation commands.
4098
4099 2004-02-05  David Edelsohn  <edelsohn@gnu.org>
4100
4101         * reload.c (refers_to_regno_for_reload_p): Index hard_regno_nregs
4102         with inner_regno, not regno.
4103         * rtlanal.c (refers_to_regno_p): Same.
4104
4105 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
4106
4107         * config.gcc: Remove i370 support.
4108
4109 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
4110
4111         * doc/install.texi:  Update automake and autoconf version
4112         requirements.  Note where to find gcj automake version.
4113
4114 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
4115
4116         * Makefile.in (generate-manpages): Move dependencies to ...
4117         (man): here.
4118         * doc/makefile.texi: Document new targets.
4119         * doc/sourcebuild.texi (Make-lang.in): Document new langhooks.
4120
4121 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
4122
4123         PR/13485
4124         Makefile.in (srcextra):  Add a level of indirection to ...
4125         (gcc.srcextra): ... here.
4126         (po-generated): Delete.
4127         (po/$(PACKAGE).pot: Use srcextra instead of po-generated.  Depend on
4128         options.c.
4129         (start.encap): Remove superfluous lang.srcextra dependency.
4130         objc/Make-lang.in (po-generated):  Delete.
4131
4132 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
4133
4134         * config/ia64/ia64.c (REG_GP): Remove.
4135
4136 2004-02-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4137
4138         * config/mips/iris5gas.h (PREFERRED_DEBUGGING_TYPE): Define.
4139
4140 2004-02-05  Devang Patel  <dpatel@apple.com>
4141
4142         * dwarf2out.c (force_type_die): Look up input type itself
4143         instead of root_type() of type.
4144
4145 2004-02-05  Andreas Krebbel  <krebbel1@de.ibm.com>
4146
4147         * config/s390/s390.md ("*tmqidi_ext"): New insn.
4148         ("*extendqidi2_short_displ", "*extendsiqi2_short_displ"): Old
4149         pre-reload splitters are transformed to post-reload
4150         define_insn_and_split patterns.
4151         ("*tmqisi_ext"): Renamed old "*tmqi_ext".
4152
4153 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
4154
4155         * config/cris/cris.h: Replace PROMOTE_PROTOTYPES with
4156         TARGET_PROMOTE_PROTOTYPES.
4157
4158 2004-02-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4159
4160         PR middle-end/13750
4161         Revert:
4162         2004-01-15  Geoffrey Keating  <geoffk@apple.com>
4163         PR pch/13361
4164         * c-typeck.c (constructor_asmspec): Delete.
4165         (struct initializer_stack): Delete field 'asmspec'.
4166         (start_init): Delete saving of asmspec.
4167         (finish_init): Don't update constructor_asmspec.
4168         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
4169         * stmt.c (expand_asm): Duplicate strings from tree.
4170         (expand_asm_operands): Likewise.
4171         * tree.c (tree_size): Update computation of size of STRING_CST.
4172         (make_node): Don't make STRING_CST nodes.
4173         (build_string): Allocate string with tree node.
4174         * tree.def (STRING_CST): Update comment.
4175         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
4176         (tree_string): Place contents of string in tree node.
4177         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
4178         from tree.
4179
4180 2004-02-05  Joseph S. Myers  <jsm@polyomino.org.uk>
4181
4182         * diagnostic.h (DEFINE_DIAGNOSTIC_KIND): Change parameter M to
4183         msgid.
4184
4185 2004-02-05  Dorit Naishlos  <dorit@il.ibm.com>
4186
4187         * config/rs6000/altivec.md (*movv4si_internal): At least one
4188         operand must be altivec_register_operand.
4189         (*movv8hi_internal1): Likewise.
4190         (*movv16qi_internal1): Likewise.
4191         (*movv4sf_internal1): Likewise.
4192
4193 2004-02-05  David Edelsohn  <edelsohn@gnu.org>
4194
4195         * configure.ac (gcc_cv_as_powerpc_mfcrf): Correct test for mfcr.
4196         * configure: Regenerate.
4197
4198 2004-02-05  Jonathan Wakely  <redi@gcc.gnu.org>
4199
4200         * doc/install.texi: Update description of --gxx-include-dir to
4201         give correct default value.
4202
4203 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
4204
4205         * config/h8300/h8300.h (REG_OK_FOR_BASE_NONSTRICT_P): Replace
4206         8 with MAC_REG.
4207
4208 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
4209
4210         * config/pa/pa.c (emit_hpdiv_const): Replace gen_rtx with
4211         gen_rtx_PARALLEL.
4212
4213 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
4214
4215         * emit-rtl.c: Update the comment about the file.
4216
4217 2004-02-05  Joseph S. Myers  <jsm@polyomino.org.uk>
4218
4219         * sourcebuild.texi (Test Idioms): Update testcase naming
4220         conventions.
4221
4222 2004-02-04  Per Bothner  <per@bothner.com>
4223
4224         Partially revert/redo 2003-10-01 change; fix -fworking-directory.
4225         * c-ppoutput.c (pp_dir_change):  New function.
4226         * c-common.h (pp_dir_change):  New declaration.
4227         * cpplib.h (struct cpp_options):  Remove working_directory field.
4228         * cppinit.c (cpp_find_main_file, cpp_push_main_file):  Merge back to
4229         (cpp_read_main_file):  as before 10-01.  Call _cpp_stack_file.
4230         Don't handle -fworking_directory here, but in c_common_post_options.
4231         (read_original_directory): Don't back up when done.
4232         Don't clear no-longer used working_directory flag.
4233         * cpplib.h:  Update declarations to match.
4234         * c-lex.c (cb_dir_change):  Move to c-opts.c.
4235         (init_c_lex):  Don't set dir_change callback here, since we want
4236         to set it even if flag_preprocess_only.
4237         * c-opts.c (cb_dir_change):  Function moved from c-lex.c.
4238         (c_common_post_options):  Set dir_change callback.
4239         Call pp_dir_change if approporiate.
4240         (finish_options):  Don't call cpp_find_main_file here.  Hence remove
4241         unneeded parameter and result. Do LC_RENAME for <built-in>.
4242         (c_common_post_options):  Call cpp_read_main_file here instead.
4243         (c_common_init):  Update accordingly.
4244         (push_command_line_include):  Don't cpp_push_main_file.
4245         Do LC_RENAME rather than LC_LEASE to get back to main file.
4246         Compared to pre-10-01 version, inline cpp_rename_to_main_file.
4247         (c_common_parse_file):  Call cpp_read_main_file for subsequent main
4248         files, but call finish_options for all files.
4249         * c-opts.c (sanitize_cpp_opts):  Don't set cpp_opts->working_directory.
4250         * fix-header.c (read_scan_file):  Call cpp_read_main_file instead of
4251         cpp_find_main_file + cpp_push_main_file.
4252         * c-lex.c (fe_file_change):  Don't set main_input_filename here.
4253         * opts.c (handle_options):  Only set main_input_filename first time.
4254
4255 2004-02-05  Ian Lance Taylor  <ian@wasabisystems.com>
4256
4257         * config/arm/arm.h (REG_CLASS_NAMES): Add missing comma.
4258
4259 2004-02-04  Geoffrey Keating  <geoffk@apple.com>
4260
4261         * reload.c (find_equiv_reg): When checking for register overlap,
4262         don't index hard_regno_nregs with a pseudo-reg.
4263
4264 2004-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
4265
4266         * config/s390/s390.c (s390_trampoline_template): Remove gen_rtx().
4267
4268 2004-02-04  David Edelsohn  <edelsohn@gnu.org>
4269
4270         * reload.c (refers_to_regno_for_reload_p): Test regno, not inner_regno,
4271         against FIRST_PSEUDO_REGISTER.
4272
4273 2004-02-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4274
4275         * Makefile.in: Move target, host overrides after per-language
4276         fragments.
4277
4278         * config/mips/t-iris5-as (FORCE_DEBUG_ADAFLAGS): Clear.
4279         (GNATLIBCFLAGS): Remove -g.
4280
4281 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
4282
4283         * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
4284         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
4285         config/ia64/ia64.c, config/ia64/unwind-ia64.c,
4286         config/m32r/m32r.c, config/ns32k/ns32k.c, config/pa/pa.c,
4287         config/pdp11/pdp11.c, config/rs6000/rs6000.c,
4288         config/sparc/sparc.c, config/vax/vax.c: Revert the
4289         replacements of "FALLTHRU" with "Fall through" done in the
4290         previous patch.
4291
4292 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
4293
4294         * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
4295         config/arm/arm.c, config/arm/arm.md,
4296         config/cris/cris-protos.h, config/fr30/fr30.c,
4297         config/fr30/fr30.h, config/h8300/h8300.c, config/i386/i386.h,
4298         config/i860/i860.c, config/i860/i860.h, config/ia64/ia64-c.c,
4299         config/ia64/ia64.c, config/ia64/ia64.h, config/ip2k/ip2k.h,
4300         config/ip2k/ip2k.md, config/ip2k/libgcc.S,
4301         config/m32r/linux.h, config/m32r/m32r.c, config/m32r/m32r.h,
4302         config/m68k/m68k.c, config/m68k/netbsd-elf.h,
4303         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.md,
4304         config/ns32k/netbsd.h, config/ns32k/ns32k.c,
4305         config/ns32k/ns32k.h, config/pdp11/pdp11.h,
4306         config/rs6000/darwin-ldouble.c, config/s390/s390.h,
4307         config/s390/s390.md, config/sparc/netbsd-elf.h,
4308         config/sparc/openbsd.h, config/sparc/sparc.c,
4309         config/xtensa/lib2funcs.S: Fix comment formatting.
4310
4311 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
4312
4313         * config/alpha/alpha.c, config/arc/arc.c,
4314         config/arm/arm-cores.def, config/arm/arm.c, config/arm/arm.h,
4315         config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
4316         config/arm/arm926ejs.md, config/arm/vfp.md, config/avr/avr.c,
4317         config/c4x/c4x.c, config/cris/cris.c, config/frv/frv.md,
4318         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
4319         config/ia64/ia64.c, config/ia64/unwind-ia64.c,
4320         config/iq2000/iq2000.c, config/m32r/m32r.c,
4321         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
4322         config/ns32k/ns32k.c, config/pa/pa.c, config/pdp11/pdp11.c,
4323         config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
4324         config/rs6000/rs6000.h, config/sparc/sparc.c,
4325         config/vax/vax.c: Fix comment typos.  Follow spelling
4326         conventions.
4327
4328 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
4329
4330         * alloc-pool.h, c-convert.c, c-lang.c, c-tree.h,
4331         caller-save.c, df.h, genconfig.c, global.c, lcm.c,
4332         ra-rewrite.c, ra.c, regclass.c, regs.h, resource.c,
4333         sched-rgn.c, config/arm/aof.h, config/arm/cirrus.md,
4334         config/arm/fpa.md, config/arm/iwmmxt.md,
4335         config/arm/netbsd-elf.h, config/arm/netbsd.h,
4336         config/m68hc11/m68hc11.md, config/mips/iris5.h,
4337         config/mn10300/mn10300.md, config/rs6000/altivec.md,
4338         config/sparc/netbsd-elf.h: Update copyright.
4339
4340 2004-02-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
4341
4342         * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
4343         for all modes whose size is greater than 8 bytes if ARCH32.
4344         (sparc_va_arg): Handle all modes whose size is greater than 8 bytes
4345         by reference if ARCH32.
4346
4347 2004-02-04  Aldy Hernandez  <aldyh@redhat.com>
4348
4349         * cgraphunit.c (cgraph_postorder): Fix typo in comment.
4350
4351 2004-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
4352
4353         * config/s390/s390.md ("*la_64" + peepholes, "reload_indi"): Move
4354         to before adddi3 insn patterns.
4355         ("*la_31" + peepholes, "*la_31_and", "*la_31_and_cc", "force_la_31",
4356         "reload_insi"): Move to before addsi3 insn patterns.
4357
4358 2004-02-04  Mark Mitchell  <mark@codesourcery.com>
4359
4360         * calls.c (initialize_argument_information): Add CALL_FROM_THUNK_P
4361         parameter.  Use it instead of current_function_is_thunk.
4362         * function.h (struct function): Update documentation for is_thunk.
4363         * tree.h (CALL_FROM_THUNK_P): New macro.
4364         * config/alpha/alpha.c (alpha_sa_mask): Do not check
4365         no_new_pseudos when testing current_function_is_thunk.
4366         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likeiwse.
4367
4368 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
4369
4370         * doc/tm.texi: Replace SETUP_INCOMING_VARARGS with
4371         TARGET_SETUP_INCOMING_VARARGS.
4372
4373 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
4374
4375         * emit-rtl.c (gen_rtx): Remove.
4376         * genattrtab.c: Don't mention gen_rtx in a comment.
4377         * rtl.h: Remove the prototype for gen_rtx.
4378         * doc/md.texi: Replace gen_rtx with gen_rtx_REG.
4379
4380 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
4381
4382         * config/arc/arc.h, config/fr30/fr30.h
4383         (SETUP_INCOMING_VARARGS): Remove the target-independent
4384         comments.
4385         * doc/tm.texi: Don't mention deprecated target macros.
4386
4387 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
4388
4389         * config/fr30/fr30.h (FUNCTION_VALUE): Remove the
4390         target-independent comment.
4391
4392 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
4393
4394         * doc/interface.texi, doc/tm.texi, doc/trouble.texi: Don't
4395         mention deprecated target macros.
4396
4397 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
4398
4399         * config.gcc: Remove obsolete ports and configurations.
4400         * config/linux-aout.h, config/netware.h,
4401         config/t-linux-gnulibc1, config/d30v/abi,
4402         config/d30v/d30v-protos.h, config/d30v/d30v.c,
4403         config/d30v/d30v.h, config/d30v/d30v.md,
4404         config/d30v/libgcc1.asm, config/d30v/t-d30v,
4405         config/dsp16xx/dsp16xx-modes.def,
4406         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
4407         config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md,
4408         config/i370/README, config/i370/i370-c.c,
4409         config/i370/i370-protos.h, config/i370/i370.c,
4410         config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
4411         config/i370/mvs.h, config/i370/oe.h, config/i370/t-i370,
4412         config/i386/freebsd-aout.h, config/i386/linux-aout.h,
4413         config/i386/moss.h, config/i386/netware.h,
4414         config/i386/svr3.ifile, config/i386/svr3dbx.h,
4415         config/i386/svr3gas.h, config/i386/svr3z.ifile,
4416         config/i386/t-udk, config/i386/udk.h, config/i386/vsta.h,
4417         config/i960/i960-c.c, config/i960/i960-coff.h,
4418         config/i960/i960-modes.def, config/i960/i960-protos.h,
4419         config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
4420         config/i960/rtems.h, config/i960/t-960bare,
4421         config/m68k/hp310.h, config/m68k/hp320.h,
4422         config/m68k/hp320base.h, config/m68k/m68kv4.h,
4423         config/m68k/netbsd.h, config/m68k/sgs.h, config/m68k/t-hp320:
4424         Remove.
4425         * doc/extend.texi, doc/install.texi, doc/invoke.texi,
4426         doc/md.texi: Remove mentions of obsolete ports.
4427
4428 2004-02-04  Jan Hubicka  <jh@suse.cz>
4429
4430         * alias.c (find_base_term, get_addr):  Do not dereference NULL
4431         pointer when all VALUE's locations has been invalidated.
4432         (rtx_equal_for_memref_p): Simplify checking of VALUEs.
4433
4434 2004-02-03  Wolfgang Bangerth  <bangerth@dealii.org>
4435
4436         * doc/invoke.texi (x86 options): Fix spelling/wording.
4437
4438 2004-02-03  Richard Sandiford  <rsandifo@redhat.com>
4439
4440         * config/mips/iris5.h (ASM_OUTPUT_ASCII): Use mips_output_ascii to
4441         put the original string in a comment.
4442         * config/mips/mips-protos.h (mips_output_ascii): Add prefix argument.
4443         * config/mips/mips.c (mips_output_ascii): Likewise.
4444         * config/mips/mips.h (ASM_OUTPUT_ASCII): Adjust accordingly.
4445
4446 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
4447
4448         * system.h (GIV_SORT_CRITERION): Poison.
4449         * config/avr/avr.h (GIV_SORT_CRITERION): Remove.
4450         * config/ip2k/ip2k.h (GIV_SORT_CRITERION): Likewise.
4451
4452 2004-02-03  Roger Sayle  <roger@eyesopen.com>
4453
4454         PR target/9348
4455         * expr.c (expand_expr_real) <MULT_EXPR>:  When performing widening
4456         multiplies with a multiplication of the wrong signedness, its the
4457         signedness of the multiplication that we've performed that needs to
4458         be passed to expand_mult_highpart_adjust.  Avoid emitting a nop-move
4459         if expand_mult_highpart_adjust places the result in target.
4460
4461 2004-02-03  Richard Henderson  <rth@redhat.com>
4462
4463         * varasm.c (const_desc_rtx_sym_eq): Compare symbol strings.
4464
4465 2004-02-03  J"orn Rennecke <joern.rennecke@superh.com>
4466
4467         * config.gcc (sh[234]l): Use little endian fragments.
4468
4469 2004-02-03  Paul Koning  <pkoning@equallogic.com>
4470
4471         * config/pdp11/pdp11-modes.def: Add RESET_FLOAT_FORMAT calls.
4472         * config/pdp11/pdp11-protos.h (legitimate_const_double_p): Add.
4473         * config/pdp11/pdp11.c (encode_pdp11_f, decode_pdp11_f,
4474         encode_pdp11_d, decode_pdp11_d): New functions to handle PDP11
4475         floating point format.
4476         (pdp11_f_format, pdp11_d_format): New real_format descriptors for
4477         the above functions.
4478         (output_move_quad): Output float values in correct target format.
4479         (legitimate_const_double_p): New function.
4480         * config/pdp11/pdp11.h: Fix typos.
4481         (FLOAT_WORDS_BIG_ENDIAN): Add definition.
4482         (TARGET_FLOAT_FORMAT): Ditto.
4483         (pdp11_f_format, pdp11_d_format): Add external declarations.
4484         (MAX_REGS_PER_ADDRESS): Corrected.
4485         (LEGITIMATE_CONSTANT_P): Use legitimate_const_double_p().
4486         (PRINT_OPERAND): Output float literals in target format.
4487
4488 2004-02-03  Mark Mitchell  <mark@codesourcery.com>
4489
4490         PR c++/13975
4491         * tree.h (enum tree_index): Add TI_PUBLIC, TI_PROTECTED, and
4492         TI_PRIVATE.
4493         (access_public_node): Redefine.
4494         (access_protected_node): Likewise.
4495         (access_private_node): Likewise.
4496         * tree.c (build_common_tree_nodes): Create access_public_node,
4497         access_protected_node, and access_private_node.
4498
4499 2004-02-03  Steve Ellcey  <sje@cup.hp.com>
4500
4501         * config/ia64/ia64.h (MASK_INLINE_INT_DIV_LAT): Change value.
4502         (MASK_INLINE_INT_DIV_THR): Ditto.
4503         (MASK_INLINE_SQRT_LAT): Ditto.
4504         (MASK_INLINE_SQRT_THR): Ditto.
4505         (MASK_DWARF2_ASM): Ditto.
4506         (MASK_EARLY_STOP_BITS): Ditto.
4507
4508 2004-02-02  Paul Brook  <paul@codesourcery.com>
4509
4510         Merge from csl-arm-branch.
4511
4512         2004-01-30  Paul Brook  <paul@codesourcery.com>
4513
4514         * aof.h (REGISTER_NAMES): Add vfp reg names
4515         (ADDITIONAL_REGISTER_NAMES): Ditto.
4516         * aout.h (REGISTER_NAMES): Ditto.
4517         (ADDITIONAL_REGISTER_NAMES): Ditto.
4518         * arm-protos.h: Update/Add Prototypes.
4519         * arm.c (init_fp_table): Rename from init_fpa_table. Update users.
4520         Only allow 0.0 for VFP.
4521         (fp_consts_inited): Rename from fpa_consts_inited.  Update users.
4522         (values_fp): Rename from values_fpa.  Update Users.
4523         (arm_const_double_rtx): Rename from const_double_rtx_ok_for_fpa.
4524         Update users.  Only check valid constants for this hardware.
4525         (arm_float_rhs_operand): Rename from fpa_rhs_operand.  Update Users.
4526         Only allow consts for FPA.
4527         (arm_float_add_operand): Rename from fpa_add_operand.  Update users.
4528         Only allow consts for FPA.
4529         (use_return_insn): Check for saved VFP regs.
4530         (arm_legitimate_address_p): Handle VFP DFmode addressing.
4531         (arm_legitimize_address): Ditto.
4532         (arm_general_register_operand): New function.
4533         (vfp_mem_operand): New function.
4534         (vfp_compare_operand): New function.
4535         (vfp_secondary_reload_class): New function.
4536         (arm_float_compare_operand): New function.
4537         (vfp_print_multi): New function.
4538         (vfp_output_fstmx): New function.
4539         (vfp_emit_fstm): New function.
4540         (arm_output_epilogue): Output VPF reg restore code.
4541         (arm_expand_prologue): Output VFP reg save code.
4542         (arm_print_operand): Add 'P'.
4543         (arm_hard_regno_mode_ok): Return modes for VFP regs.
4544         (arm_regno_class): Return classes for VFP regs.
4545         (arm_compute_initial_elimination_offset): Include space for VFP regs.
4546         (arm_get_frame_size): Ditto.
4547         * arm.h (FIXED_REGISTERS): Add VFP regs.
4548         (CALL_USED_REGISTERS): Ditto.
4549         (CONDITIONAL_REGISTER_USAGE): Enable VFP regs.
4550         (FIRST_VFP_REGNUM): Define.
4551         (LAST_VFP_REGNUM): Define.
4552         (IS_VFP_REGNUM): Define.
4553         (FIRST_PSEUDO_REGISTER): Include VFP regs.
4554         (HARD_REGNO_NREGS): Handle VFP regs.
4555         (REG_ALLOC_ORDER): Add VFP regs.
4556         (enum reg_class): Add VFP_REGS.
4557         (REG_CLASS_NAMES): Ditto.
4558         (REG_CLASS_CONTENTS): Ditto.
4559         (CANNOT_CHANGE_MODE_CLASS) Handle VFP Regs.
4560         (REG_CLASS_FROM_LETTER): Add 'w'.
4561         (EXTRA_CONSTRAINT_ARM): Add 'U'.
4562         (EXTRA_MEMORY_CONSTRAINT): Define.
4563         (SECONDARY_OUTPUT_RELOAD_CLASS): Handle VFP regs.
4564         (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
4565         (REGISTER_MOVE_COST): Ditto.
4566         (PREDICATE_CODES): Add arm_general_register_operand,
4567         arm_float_compare_operand and vfp_compare_operand.
4568         * arm.md (various): Rename as above.
4569         (divsf3): Enable when TARGET_VFP.
4570         (divdf3): Ditto.
4571         (movdfcc): Ditto.
4572         (sqrtsf2): Ditto.
4573         (sqrtdf2): Ditto.
4574         (arm_movdi): Disable when TARGET_VFP.
4575         (arm_movsi_insn): Ditto.
4576         (movsi): Only split with general regs.
4577         (cmpsf): Use arm_float_compare_operand.
4578         (push_fp_multi): Restrict to TARGET_FPA.
4579         (vfp.md): Include.
4580         * vfp.md: New file.
4581         * fpa.md (various): Rename as above.
4582         * doc/md.texi: Document ARM w and U constraints.
4583
4584         2004-01-15  Paul Brook  <paul@codesourcery.com>
4585
4586         * config.gcc: Add with_fpu.  Allow with-float=softfp.
4587         * config/arm/arm.c (arm_override_options): Rename *-s to *s.
4588         Break out of loop when we find a float-abi.  Fix typo.
4589         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "fpu".
4590         Set -mfloat-abi=.
4591         * doc/install.texi: Document --with-fpu.
4592
4593         2003-01-14  Paul Brook  <paul@codesourcery.com>
4594
4595         * config.gcc (with_arch): Add armv6.
4596         * config/arm/arm.h: Rename TARGET_CPU_*_s to TARGET_CPU_*s.
4597         * config/arm/arm.c (arm_overrride_options): Ditto.
4598
4599         2004-01-08  Richard Earnshaw  <rearnsha@arm.com>
4600
4601         * arm.c (FL_ARCH3M): Renamed from FL_FAST_MULT.
4602         (FL_ARCH6): Renamed from FL_ARCH6J.
4603         (arm_arch3m): Renamed from arm_fast_multiply.
4604         (arm_arch6): Renamed from arm_arch6j.
4605         * arm.h: Update all uses of above.
4606         * arm-cores.def: Likewise.
4607         * arm.md: Likewise.
4608
4609         * arm.h (CPP_CPU_ARCH_SPEC): Emit __ARM_ARCH_6J__ define for armV6j,
4610         not arm6j.  Add entry for arch armv6.
4611
4612         2004-01-07  Richard Earnshaw  <rearnsha@arm.com>
4613
4614         * arm.c (arm_emit_extendsi): Delete.
4615         * arm-protos.h (arm_emit_extendsi): Delete.
4616         * arm.md (zero_extendhisi2): Also handle zero-extension of
4617         non-subregs.
4618         (zero_extendqisi2, extendhisi2, extendqisi2): Likewise.
4619         (thumb_zero_extendhisi2): Only match if not v6.
4620         (arm_zero_extendhisi2, thumb_zero_extendqisi2, arm_zero_extendqisi2)
4621         (thumb_extendhisi2, arm_extendhisi2, arm_extendqisi)
4622         (thumb_extendqisi2): Likewise.
4623         (thumb_zero_extendhisi2_v6, arm_zero_extendhisi2_v6): New patterns.
4624         (thumb_zero_extendqisi2_v6, arm_zero_extendqisi2_v6): New patterns.
4625         (thumb_extendhisi2_insn_v6, arm_extendhisi2_v6): New patterns.
4626         (thumb_extendqisi2_v6, arm_extendqisi_v6): New patterns.
4627         (arm_zero_extendhisi2_reg, arm_zero_extendqisi2_reg): Delete.
4628         (arm_extendhisi2_reg, arm_extendqisi2_reg): Delete.
4629         (arm_zero_extendhisi2addsi): Remove subreg.  Add attributes.
4630         (arm_zero_extendqisi2addsi, arm_extendhisi2addsi): Likewise.
4631         (arm_extendqisi2addsi): Likewise.
4632
4633         2003-12-31  Mark Mitchell  <mark@codesourcery.com>
4634
4635         Revert this change:
4636         * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
4637         + REG addressing modes.
4638
4639         * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
4640         + REG addressing modes.
4641
4642         2003-12-30  Mark Mitchell  <mark@codesourcery.com>
4643
4644         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept
4645         CONSTANT_P_RTX.
4646
4647         2003-30-12  Paul Brook  <paul@codesourcery.com>
4648
4649         * longlong.h: protect arm inlines with !defined (__thumb__)
4650
4651         2003-30-12  Paul Brook  <paul@codesourcery.com>
4652
4653         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Always define __arm__.
4654
4655         2003-12-30  Nathan Sidwell  <nathan@codesourcery.com>
4656
4657         * builtins.c (expand_builtin_apply_args_1): Fix typo in previous
4658         change.
4659
4660         2003-12-29  Nathan Sidwell  <nathan@codesourcery.com>
4661
4662         * builtins.c (expand_builtin_apply_args_1): Add pretend args size
4663         to the virtual incoming args pointer for downward stacks.
4664
4665         2003-12-29  Paul Brook  <paul@codesourcery.com>
4666
4667         * config/arm/arm-cores.def: Add cost function.
4668         * config/arm/arm.c (arm_*_rtx_costs): New functions.
4669         (arm_rtx_costs): Remove
4670         (struct processors): Add rtx_costs field.
4671         (all_cores, all_architectures): Ditto.
4672         (arm_override_options): Set targetm.rtx_costs.
4673         (thumb_rtx_costs): New function.
4674         (arm_rtx_costs_1): Remove cases handled elsewhere.
4675         * config/arm/arm.h (processor_type): Add COSTS parameter.
4676
4677         2003-12-29  Nathan Sidwell  <nathan@codesourcery.com>
4678
4679         * config/arm/arm.md (generic_sched): arm926 has its own scheduler.
4680         (arm926ejs.md): Include it.
4681         * config/arm/arm926ejs.md: New pipeline description.
4682
4683         2003-12-24  Paul Brook  <paul@codesourcery.com>
4684
4685         * config/arm/arm.c (arm_arch6j): New variable.
4686         (arm_override_options): Set it.
4687         (arm_emit_extendsi): New function.
4688         * config/arm/arm-protos.h (arm_emit_extendsi): Add prototype.
4689         * config/arm/arm.h (arm_arch6j): Declare.
4690         * config/arm/arm.md: Add sign/zero extend insns.
4691
4692         2003-12-23  Paul Brook  <paul@codesourcery.com>
4693
4694         * config/arm/arm.c (all_architectures): Add armv6.
4695         * doc/invoke.texi: Document it.
4696
4697         2003-12-19  Paul Brook  <paul@codesourcery.com>
4698
4699         * config/arm/arm.md: Add load1 and load_byte "type" attrs.  Modify
4700         insn patterns to match.
4701         * config/arm/arm-generic.md: Ditto.
4702         * config/arm/cirrus.md: Ditto.
4703         * config/arm/fpa.md: Ditto.
4704         * config/amm/iwmmxt.md: Ditto.
4705         * config/arm/arm1026ejs.md: Ditto.
4706         * config/arm/arm1135jfs.md: Ditto.  Add insn_reservation and bypasses
4707         for 11_loadb.
4708
4709         2003-12-18  Nathan Sidwell  <nathan@codesourcery.com>
4710
4711         * config/arm/arm-protos.h (arm_no_early_alu_shift_value_dep): Declare.
4712         * config/arm/arm.c (arm_adjust_cost): Check shift cost for
4713         TYPE_ALU_SHIFT and TYPE_ALU_SHIFT_REG.
4714         (arm_no_early_store_addr_dep, arm_no_early_alu_shift_dep,
4715         arm_no_early_mul_dep): Correctly deal with conditional execution,
4716         parallels and single shift operations.
4717         (arm_no_early_alu_shift_value_dep): Define.
4718         * arm.md (attr type): Replace 'normal' with 'alu',
4719         'alu_shift' and 'alu_shift_reg'.
4720         (attr core_cycles): Adjust.
4721         (*addsi3_carryin_shift, andsi_not_shiftsi_si, *arm_shiftsi3,
4722         *shiftsi3_compare0, *notsi_shiftsi, *notsi_shiftsi_compare0,
4723         *not_shiftsi_compare0_scratch, *cmpsi_shiftsi, *cmpsi_shiftsi_swp,
4724         *cmpsi_neg_shiftsi, *arith_shiftsi, *arith_shiftsi_compare0,
4725         *arith_shiftsi_compare0_scratch, *sub_shiftsi,
4726         *sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch,
4727         *if_shift_move, *if_move_shift, *if_shift_shift): Set type
4728         attribute appropriately.
4729         * config/arm/arm1026ejs.md (alu_op): Adjust.
4730         (alu_shift_op, alu_shift_reg_op): New.
4731         * config/arm/arm1136.md: Add better bypasses for early
4732         registers. Remove load[234] and store[234] bypasses.
4733         (11_alu_op): Adjust.
4734         (11_alu_shift_op, 11_alu_shift_reg_op): New.
4735
4736         2003-12-15  Nathan Sidwell  <nathan@codesourcery.com>
4737
4738         * config/arm/arm-protos.h (arm_no_early_store_addr_dep,
4739         arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Declare.
4740         * config/arm/arm.c (arm_no_early_store_addr_dep,
4741         arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Define.
4742         * config/arm/arm1026ejs.md: Add load-store bypass.
4743         * config/arm/arm1136jfs.md (11_alu_op): Take 2 cycles.
4744         Add bypasses between instructions.
4745
4746         2003-12-10  Paul Brook  <paul@codesourcery.com>
4747
4748         * config/arm/arm.c (arm_fpu_model): New variable.
4749         (arm_fload_abi): New variable.
4750         (target_fpe_name): Rename from target_fp_name.
4751         (target_fpu_name): New variable.
4752         (arm_is_cirrus): Remove.
4753         (fpu_desc): New struct.
4754         (all_fpus): Define.
4755         (pf_model_for_fpu): Define.
4756         (all_loat_abis): Define.
4757         (arm_override_options): Set fp arch flags based on -mfpu=
4758         and -float-abi=.
4759         (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
4760         (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
4761         (*): Use new TARGET_* flags.
4762         * config/arm/arm.h (TARGET_ANY_HARD_FLOAT): Remove.
4763         (TARGET_HARD_FLOAT): No longer implies TARGET_FPA.
4764         (TARGET_SOFT_FLOAT): Ditto.
4765         (TARGET_SOFT_FLOAT_ABI): New.
4766         (TARGET_MAVERICK): Rename from TARGET_CIRRUS.  No longer implies
4767         TARGET_HARD_FLOAT.
4768         (TARGET_VFP): No longer implies TARGET_HARD_FLOAT.
4769         (TARGET_OPTIONS): Add -mfpu=.
4770         (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
4771         (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
4772         (arm_pf_model): Define.
4773         (arm_float_abi_type): Define.
4774         (fputype): Add FPUTYPE_VFP.  Change SOFT_FPA->NONE
4775         * config/arm/arm.md: Use new TARGET_* flags.
4776         * config/arm/cirrus.md: Ditto.
4777         * config/arm/fpa.md: Ditto.
4778         * config/arm/elf.h (ASM_SPEC): Pass -mfloat-abi= and -mfpu=.
4779         * config/arm/semi.h (ASM_SPEC): Ditto.
4780         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Specify vfp.
4781         (FPUTYPE_DEFAULT): Set to VFP.
4782         * doc/invoke.texi: Document -mfpu= and -mfloat-abi=.
4783
4784         2003-11-22  Phil Edwards  <phil@codesourcery.com>
4785
4786         PR target/12476
4787         * config/arm/arm.c (arm_output_mi_thunk):  In Thumb mode, use
4788         'bx' instead of 'b' to avoid branch range restrictions.  Output
4789         the thunk immediately before the thunked-to function.
4790         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME):  Do not emit
4791         .thumb_func if a thunk is being generated.  Emit .code 16 along
4792         with .thumb_func if a thunk is not being generated.
4793
4794         2003-11-15  Nicolas Pitre <nico@cam.org>
4795
4796         * config/arm/arm.md (ashldi3, arm_ashldi3_1bit, ashrdi3,
4797         arm_ashrdi3_1bit, lshrdi3, arm_lshrdi3_1bit): New patterns.
4798         * config/arm/iwmmxt.md (ashrdi3_iwmmxt): Renamed from ashrdi3.
4799         (lshrdi3_iwmmxt): Renamed from lshrdi3.
4800         * config/arm/arm.c (IWMMXT_BUILTIN2): Renamed argument accordingly.
4801
4802         2003-11-12  Steve Woodford  <scw@wasabisystems.com>
4803             Ian Lance Taylor  <ian@wasabisystems.com>
4804
4805         * config/arm/lib1funcs.asm (ARM_DIV_BODY, ARM_MOD_BODY): Add new
4806         code for __ARM_ARCH__ >= 5 && ! defined (__OPTIMIZE_SIZE__).
4807
4808         2003-11-05  Phil Edwards  <phil@codesourcery.com>
4809
4810         * config/arm/arm.md (insn):  Add new V6 instruction names.
4811         (generic_sched):  New attr.
4812         * config/arm/arm-generic.md:  Use generic_sched here.
4813         * config/arm/arm1026ejs.md:  Do not model fetch/issue/decode
4814         stages of pipeline.  Adjust latency counts accordingly.
4815         * config/arm/arm1136jfs.md:  New file.
4816
4817         2003-10-28  Mark Mitchell  <mark@codesourcery.com>
4818
4819         * config/arm/arm.h (processor_type): New enumeration type.
4820         (CPP_ARCH_DEFAULT_SPEC): Set appropriately for ARM 926EJ-S,
4821         ARM1026EJ-S, ARM1136J-S, and ARM1136JF-S processor cores.
4822         (CPP_CPU_ARCH_SPEC): Likewise.
4823         * config/arm/arm.c (arm_tune): New variable.
4824         (all_cores): Use cores.def.
4825         (all_architectures): Add representative processor.
4826         (arm_override_options): Restructure way in which tuning
4827         information is deduced.
4828         * arm.md: Update "insn" and "type" attributes throughout.
4829         (insn): New attribute.
4830         (type): Compute "mult" from "insn" attribute.  Add load2,
4831         load3, load4 alternatives.
4832         (arm automaton): Move to arm-generic.md.
4833         * config/arm/arm-cores.def: New file.
4834         * config/arm/arm-generic.md: Likewise.
4835         * config/arm/arm1026ejs.md: Likewise.
4836
4837 2004-02-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
4838
4839         * doc/invoke.texi (SPARC options): Remove -mflat and
4840         all -mxxx (xxx:chip) options.
4841         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Delete.
4842         * config/sparc/litecoff.h (DBX_REGISTER_NUMBER): Likewise.
4843         * config/sparc/netbsd-elf.h (DBX_REGISTER_NUMBER): Likewise.
4844         * config/sparc/sol2.h (DBX_REGISTER_NUMBER): Likewise.
4845         * config/sparc/sparc-protos.h: Delete sparc_flat_* prototypes.
4846         * config/sparc/sparc.c: Likewise.
4847         (sparc_output_function_prologue): Remove TARGET_FLAT handling.
4848         (sparc_nonflat_function_prologue): Rename into sparc_function_prologue.
4849         (sparc_output_function_epilogue): Remove TARGET_FLAT handling.
4850         (sparc_nonflat_function_epilogue): Rename into sparc_function_epilogue.
4851         (struct sparc_frame_info, current_frame_info, zero_frame_info): Delete.
4852         (sparc_flat_must_save_register_p): Likewise.
4853         (sparc_flat_compute_frame_size): Likewise.
4854         (sparc_flat_save_restore): Likewise.
4855         (sparc_flat_function_prologue): Likewise.
4856         (sparc_flat_function_epilogue): Likewise.
4857         (sparc_flat_epilogue_delay_slots): Likewise.
4858         (sparc_flat_eligible_for_epilogue_delay): Likewise.
4859         (sparc_function_ok_for_sibcall): Remove TARGET_FLAT handling.
4860         * config/sparc/sparc.h (MASK_FLAT, TARGET_FLAT): Delete.
4861         (TARGET_SWITCHES): Remove -mflat and all -mxxx (xxx:chip) options.
4862         (SPARC_INCOMING_INT_ARG_FIRST): Remove TARGET_FLAT handling.
4863         (CONDITIONAL_REGISTER_USAGE): Likewise.
4864         (FRAME_POINTER_REQUIRED): Likewise.
4865         (INITIAL_ELIMINATION_OFFSET): Likewise.
4866         (BASE_RETURN_VALUE_REG): Likewise.
4867         (BASE_OUTGOING_VALUE_REG): Likewise.
4868         (BASE_PASSING_ARG_REG): Likewise.
4869         (BASE_INCOMING_ARG_REG): Likewise.
4870         (INCOMING_REGNO): Likewise.
4871         (OUTGOING_REGNO): Likewise.
4872         (LOCAL_REGNO): Likewise.
4873         (DELAY_SLOTS_FOR_EPILOGUE): Likewise.
4874         (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
4875         (EPILOGUE_USES): Likewise.
4876         * config/sparc/sparc.md ("isa" attribute): Change "v6" into "v7".
4877         ("flat" attribute): Delete.
4878         (do_builtin_setjmp_setup): Remove TARGET_FLAT and "flat" attribute
4879         handling.
4880         (call followed by jump define_peephole's): Delete.
4881         (exception_receiver): Likewise.
4882         (builtin_setjmp_receiver): Likewise.
4883         * config/sparc/t-sparclite (MULTILIB_OPTIONS): Remove -mflat.
4884
4885 2004-02-03  Paolo Bonzini  <bonzini@gnu.org>
4886
4887         PR c/11658
4888         PR c/13994
4889         * Makefile.in (c-parse.o, c-convert.o, c-typeck.o): Depend
4890         on langhooks.h.
4891         * objc/Make-lang.in (objc-parse.o): Depend on langhooks.h.
4892         * c-parse.in, c-convert.c, c-typeck.c, objc/objc-act.c:
4893         Include langhooks.h.  Replace c_common_truthvalue_conversion
4894         with the truthvalue_conversion language hook throughout.
4895         (expr_no_commas): Call default_conversion before save_expr
4896         for the first term of the production 'x ? : y'.
4897         * c-common.c (c_common_truthvalue_conversion): Remove
4898         obsolete block.  Invoke recursively the hook instead
4899         of this function.
4900         * c-convert.c (convert): handle ERROR_MARK_NODE.
4901         * c-typeck.c (build_binary_op): handle ERROR_MARK_NODE
4902         returned by the truthvalue_conversion language hook.
4903         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
4904         c_objc_common_truthvalue_conversion.
4905         * c-objc-common.c (c_objc_common_truthvalue_conversion):
4906         New function.
4907         * c-tree.h (c_objc_common_truthvalue_conversion): Declare it.
4908         * objc/objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
4909         c_objc_common_truthvalue_conversion.
4910
4911 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
4912
4913         * config/c4x/c4x.h (FUNCTION_VALUE): Use gen_rtx_REG instead
4914         of gen_rtx.
4915         (LIBCALL_VALUE): Likewise.
4916         * config/ip2k/ip2k.c (mdr_try_propagate_clr_sequence): Use
4917         gen_rtx_CC0 instead of gen_rtx.
4918         * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use
4919         gen_rtx_fmt_e and gen_rtx_fmt_ee instead of gen_rtx.
4920         (m68hc11_expand_compare): Use gen_rtx_fmt_ee instead of
4921         gen_rtx.
4922         (m68hc11_emit_logical): Likewise.
4923
4924 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
4925
4926         * config/alpha/alpha.c, config/arm/arm.c, config/c4x/c4x.c,
4927         config/fr30/fr30.md, config/frv/frv.c, config/frv/frv.md,
4928         config/h8300/h8300.c, config/ia64/ia64.c, config/ip2k/ip2k.md,
4929         config/m32r/m32r.md, config/m68hc11/m68hc11.c,
4930         config/mips/mips.md, config/mmix/mmix.c,
4931         config/mn10300/mn10300.c, config/mn10300/mn10300.md,
4932         config/ns32k/ns32k.c, config/pa/pa.md, config/pdp11/pdp11.c,
4933         config/rs6000/altivec.md, config/s390/s390.c,
4934         config/s390/s390.h, config/s390/s390.md, config/sh/sh.c,
4935         config/sh/sh.h, config/sh/sh.md, config/stormy16/stormy16.c:
4936         Use const0_rtx instead of GEN_INT (0).  Do the same for other
4937         constants that are readily available.
4938
4939 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
4940
4941         * doloop.c, optabs.c, regmove.c, sched-deps.c,
4942         config/i386/i386.c, config/i386/i386.md: Use const0_rtx
4943         instead of GEN_INT (0).  Do the same for other constants that
4944         are readily available.
4945
4946 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
4947
4948         * combine.c (simplify_set): Use gen_rtx_fmt_e instead of
4949         gen_rtx.
4950         * emit-rtl.c (init_emit_once): Use gen_rtx_PC and gen_rtx_CC0
4951         instead of gen_rtx.
4952         * reload1.c (init_elim_table): Use gen_rtx_fmt_e instead of
4953         gen_rtx.
4954         * config/ns32k/ns32k.md (udivmodhi4): Use gen_rtx_IOR and
4955         gen_rtx_ASHIFT instead of gen_rtx.
4956         (udivmodqi4): Likewise.
4957
4958 2004-02-02  Richard Henderson  <rth@redhat.com>
4959
4960         PR target/13789
4961         * expr.c (store_expr): Use force_operand before emit_move_insn.
4962
4963 2004-02-02  Jeff Law  <law@redhat.com>
4964             Roger Sayle  <roger@eyesopen.com>
4965
4966         * tree.c (commutative_tree_code, associative_tree_code): New
4967         functions.
4968         (iterative_hash_expr): Use commutative_tree_code.
4969         * tree.h (commutative_tree_code, associative_tree_code): Declare.
4970         * fold-const.c (operand_equal_p): Use commutative_tree_code
4971         rather than inlining the commutativity check.
4972         (fold): Likewise.
4973
4974 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
4975
4976         * system.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Poison.
4977         * config/frv/frv-protos.h: Remove the prototype for
4978         frv_function_arg_keep_as_reference.
4979         * config/frv/frv.c (frv_function_arg_keep_as_reference):
4980         Remove.
4981         * config/frv/frv.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Likewise.
4982         * config/stormy16/stormy16.h: Remove the commented-out
4983         definition of FUNCTION_ARG_KEEP_AS_REFERENCE.
4984
4985 2004-02-03  Alan Modra  <amodra@bigpond.net.au>
4986
4987         PR target/13914
4988         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Use ap
4989         for retaddr_column.
4990
4991 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
4992
4993         * genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of
4994         gen_rtx.
4995
4996 2004-02-02  Eric Christopher  <echristo@redhat.com>
4997             Zack Weinberg  <zack@codesourcery.com>
4998
4999         * c-opts.c (c_common_handle_option): Add -finput-charset.
5000         * c.opt: Ditto.
5001         * cppcharset.c (one_iso88591_to_utf8): Remove.
5002         (convert_iso88591_utf8): Ditto.
5003         (conversion_tab): Remove 8859-1 converter.
5004         (_cpp_input_to_utf8): Remove.
5005         (_cpp_init_iconv_buffer): Ditto.
5006         (_cpp_close_iconv_buffer): Ditto.
5007         (_cpp_convert_input): New function.
5008         (_cpp_default_encoding): Ditto.
5009         * cpphash.h: Add/remove prototypes for above.
5010         * cppfiles.c (read_file_guts): Use _cpp_convert_input.
5011         * cppinit.c (cpp_create_reader): Use _cpp_default_encoding
5012         for narrow execution and input character sets.
5013         * cpplib.c (cpp_push_buffer): Delete uses of removed functions.
5014         * doc/cppopts.texi: Document -finput-charset.
5015
5016 2004-02-02  David Edelsohn  <edelsohn@gnu.org>
5017
5018         * rtlanal.c (refers_to_regno_p): Test regno, not inner_regno,
5019         against FIRST_PSEUDO_REGISTER.
5020
5021 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
5022
5023         * doc/invoke.texi (SPARC options): Further improve.
5024
5025 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
5026
5027         * config/arm/arm.md, config/c4x/c4x.md, config/cris/cris.md,
5028         config/h8300/h8300.c, config/ip2k/ip2k.md,
5029         config/iq2000/iq2000.c, config/mips/mips.c,
5030         config/rs6000/rs6000.c, config/rs6000/rs6000.md,
5031         config/sh/sh.c, config/sh/sh.md, config/stormy16/stormy16.c,
5032         config/v850/v850.md: Fix indentation.
5033
5034 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
5035
5036         * config/sparc/sparc.c (function_arg_slotno): Align TImode
5037         arguments on a 16-byte boundary in the parameter array if ARCH64.
5038         Split handling of TFmode.
5039
5040 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
5041
5042         * rtlanal.c (reg_overlap_mentioned_p) [!ENABLE_CHECKING]:
5043         Don't test CONSTANT_P (x).
5044         (reg_overlap_mentioned_p): Merge check for STRICT_LOWPART,
5045         ZERO_EXTRACT, SIGN_EXTRACT with the switch statement.
5046         Fix misindentation.
5047
5048 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
5049
5050         * doc/invoke.texi (SPARC options): Document that -mflat is deprecated.
5051
5052 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
5053
5054         * config/arc/arc.md, config/arm/arm.c, config/arm/arm.md,
5055         config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.md,
5056         config/frv/frv.c, config/h8300/h8300.c, config/ip2k/ip2k.md,
5057         config/iq2000/iq2000.c, config/m32r/m32r.c,
5058         config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.md,
5059         config/mn10300/mn10300.c, config/rs6000/rs6000.c,
5060         config/rs6000/rs6000.md, config/sh/sh.c, config/sh/sh.md,
5061         config/stormy16/stormy16.c, config/v850/v850.md,
5062         config/xtensa/xtensa.c: Replace gen_rtx with gen_rtx_fmt_e*.
5063
5064 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
5065
5066         * config/mcore/mcore.c (block_move_sequence): Replace
5067         gen_rtx_CONST_INT with GEN_INT.
5068
5069 2004-02-02  Jan Hubicka  <jh@suse.cz>
5070
5071         * alias.c (record_set): Use hard_regno_nregs.
5072         * bt-load.c (find_btr_reference, note_btr_set): Likewise.
5073         * builtins.c (apply_args_size): Likewise.
5074         * caller-save.c (setup_save_areas, save_call_clobbered_regs,
5075         mark_set_regs, add_stored_regs, mark_referenced_regs,
5076         insert_restore, insert_save, insert_one_insn): Likewise.
5077         * cfgcleanup.c: Include regs.h
5078         (mark_effect, mentions_nonequal_regs): Likewise.
5079         * cfgrtl.c (mark_killed_regs): Likewise
5080         * combine.c (update_table_tick, record_value_for_reg,
5081         record_dead_and_set_regs, get_last_value_validate, use_crosses_set_p,
5082         reg_dead_at_p_1, reg_dead_at_p, mark_used_regs_combine, move_deaths,
5083         reg_bitfield_target_p, distribute_notes): Likewise.
5084         * cse.c (mention_regs, insert, invalidate, invalidate_for_call,
5085         exp_equiv_p, cse_insn): Likewise.
5086         * cselib.c (cselib_lookup): Likewise.
5087         (cselib_invalidate_regno, cselib_record_set): Likewise.
5088         * df.c (df_ref_record): Likewise.
5089         * dwarf2out.c (reg_loc_descriptor, multiple_reg_loc_descriptor):
5090         Likewise.
5091         * flow.c (mark_reg, insn_dead_p, mark_set_1, mark_used_reg,
5092         count_or_remove_death_notes_bb): Likewise.
5093         * function.c (aggregate_value_p, keep_stack_depressed): Likewise.
5094         * gloval.c (global_alloc, find_reg, mark_reg_store, mark_reg_conflicts,
5095         mark_reg_death, set_preference, reg_becomes_live, reg_dies): Likewise.
5096         * integrate.c (mark_stores): Likewise.
5097         * jump.c (delete_prior_computation): Likewise.
5098         * lcm.c (reg_dies, reg_becomes_live): Likewise.
5099         * local-alloc.c (combine_regs, find_free_reg, post_mark_life): Likewise.
5100         * loop.c (LOOP_REGNO_NREGS): Likewise.
5101         * postreload.c (reload_combine, reload_combine_note_store,
5102         reload_combine_note_use, reload_cse_move2add, move2add_note_store): Likewise.
5103         * ra-colorize.c (combine, color_usable_p, get_free_reg,
5104         calculate_dont_begin, calculate_dont_begin, colorize_one_web,
5105         try_recolor_web, insert_coalesced_conflicts, check_colors,
5106         break_precolored_alias): Likewise.
5107         * ra-debug.c: Include regs.h
5108         (ra_print_rtx_object): Likewise.
5109         * ra-rewrite (choose_spill_colors): Likewise.
5110         (spill_same_color_p, update_spill_colors, spill_is_free): Likewise.
5111         * ra.c (init_ra): Likewise.
5112         * recog.c (reg_fits_class_p, peep2_reg_dead_p,
5113         peep2_find_free_register): Likewise.
5114         * reg-stack.c (subst_stack_regs_pat, convert_regs_exit): Likewise.
5115         * regclass.c (hard_regno_nregs): New array.
5116         (init_reg_modes_once): Initialize it.
5117         (choose_hard_reg_mode): Use it.
5118         (record_reg_classes): Likewise.
5119         * regmove.c (mark_flags_life_zones): Likewise.
5120         * regrename.c (note_sets, clear_dead_regs, regrename_optimize,
5121         scan_rtx_reg, dump_def_use_chain, kill_value, set_value_regno,
5122         copy_value, maybe_mode_change, find_oldest_value_reg,
5123         copyprop_hardreg_forward_1):
5124         * regs.h (hard_regno_nregs): Declare.
5125         * realod.c (reload_inner_reg_of_subreg): Use it.
5126         (push_reload, combine_reloads, find_dummy_reload,
5127         hard_reg_set_here_p, operands_match_p, decompose, find_reloads,
5128         refers_to_regno_for_reload_p, find_equiv_reg, regno_clobbered_p,
5129         reload_adjust_reg_for_mode): Likewise.
5130         * reload1.c (compute_use_by_pseudos, count_pseudo,
5131         count_spilled_pseudo, find_reg, find_reload_regs, mark_home_live,
5132         spill_hard_reg, forget_old_reloads_1, mark_reload_reg_in_use,
5133         clear_reload_reg_in_use, reload_reg_free_for_value_p, free_for_value_p
5134         allocate_reload_reg, choose_reload_regs, emit_reload_insns,
5135         delete_output_reload): Likewise.
5136         * resource.c (update_live_status, mark_referenced_resources,
5137         mark_set_resources, mark_target_live_regs): Likewise.
5138         * rtlanal.c:  Include regs.h
5139         (refers_to_regno_p, reg_overlap_mentioned_p, dead_or_set_p,
5140         dead_or_set_regno_p, find_regno_note, find_reg_fusage,
5141         subreg_regno_offset, subreg_offset_representable_p,
5142         hoist_test_store): Likewise.
5143         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
5144         * sched-rgn.c (check_live_1, update_live_1): Likewise.
5145         * stmt.c: Include regs.h
5146         (decl_conflicts_with_clobbers_p): Likewise.
5147         * varasm.c (make_decl_rtl): Likewise.
5148         * Makefile.in (cfgcleanup.o, rtlanal.o, ra-debug.o): Add regs.h dependnecy.
5149
5150 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
5151
5152         * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
5153         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
5154         config/arm/netbsd.h, config/arm/pe.c, config/avr/avr.c,
5155         config/avr/avr.h, config/avr/avr.md, config/c4x/c4x.h,
5156         config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
5157         config/frv/frv.h, config/ip2k/ip2k.c, config/iq2000/iq2000.c,
5158         config/iq2000/iq2000.h, config/m32r/m32r.c,
5159         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
5160         config/m68hc11/m68hc11.md, config/m68k/m68k.md,
5161         config/mcore/mcore.c, config/mcore/mcore.h,
5162         config/mcore/mcore.md, config/mips/mips.c,
5163         config/ns32k/ns32k.h, config/ns32k/ns32k.md,
5164         config/rs6000/rs6000.c, config/s390/s390.c,
5165         config/s390/s390.md, config/sparc/sparc.c, config/v850/v850.c,
5166         config/xtensa/xtensa.h, config/xtensa/xtensa.md: Replace
5167         "gen_rtx (FOO, " with "gen_rtx_FOO (".
5168
5169 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
5170
5171         * config/h8300/h8300.md (two peephole2's): New.
5172
5173 2004-02-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
5174
5175         * config/sparc/sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
5176         (CPP_CPU_SPEC): Handle -mcpu=ultrasparc3.
5177         (ASM_CPU_SPEC): Likewise
5178         * config/sparc/sol2.h: Handle TARGET_CPU_ultrasparc3.
5179         (ASM_CPU_SPEC): Remove -mcpu=v8plus.  Handle -mcpu=ultrasparc3.
5180
5181 2004-02-01  Roger Sayle  <roger@eyesopen.com>
5182
5183         * builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations
5184         isn't set, don't call expand_builtin_mathfn_2 to use the pow optab.
5185         (expand_builtin): Always call expand_builtin_pow.
5186
5187 2004-02-01  Roger Sayle  <roger@eyesopen.com>
5188
5189         * builtins.def (BUILT_IN_SIGNBIT, BUILT_IN_SIGNBITF,
5190         BUILT_IN_SIGNBITL): New GCC builtins.
5191         * builtins.c (expand_builtin_signbit): New function to RTL expand
5192         calls to signbit, signbitf and signbitl as inline intrinsics.
5193         (expand_builtin): Call expand_builtin_signbit for BUILT_IN_SIGNBIT*.
5194         (fold_builtin_signbit): New function to perform constant folding
5195         of signbit, signbitf and signbitl.
5196         (fold_builtin): Call fold_builtin_signbit for BUILT_IN_SIGNBIT*.
5197
5198         * doc/extend.texi: Document new signbit{,f,l} builtins.
5199
5200 2004-02-01  Richard Sandiford  <rsandifo@redhat.com>
5201
5202         * config/mips/mips.md (adddi3_internal_2): Remove superfluous %s.
5203
5204 2004-02-01  Chris Demetriou  <cgd@broadcom.com>
5205
5206         * config/mips/mips.h (PREDICATE_CODES): Remove entries for
5207         "mips_const_double_ok" and "simple_memory_operand", which were
5208         removed from the MIPS port with the mips-3_4-rewrite branch merge.
5209         * config/mips/mips.c (mips16_lay_out_constants): Update comment
5210         for removal of simple_memory_operand.
5211
5212 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
5213
5214         * config/c4x/c4x.md: Use GEN_INT instead of
5215         gen_rtx (CONST_INT, ...).
5216
5217 2004-01-31  Richard Henderson  <rth@redhat.com>
5218
5219         * varasm.c (output_constant_pool): Don't zap the pool.
5220
5221 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
5222
5223         * genrecog.c (decision_type): Add DT_const_int.
5224         (write_cond) [DT_const_int]: Print a comparison against small
5225         constant.
5226         (write_node): Simplify comparisons against small constants
5227         before printing tests.
5228
5229 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
5230
5231         * config/m32r/m32r.c (m32r_load_pic_register): Use GEN_INT
5232         instead of gen_rtx_CONST_INT.
5233
5234 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
5235
5236         * config/xtensa/xtensa.h (DYNAMIC_CHAIN_ADDRESS): Use GEN_INT
5237         instead of gen_rtx_CONST_INT.
5238
5239 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
5240
5241         * target-def.h (TARGET_STRICT_ARGUMENT_NAMING): Define as
5242         hook_bool_CUMULATIVE_ARGS_false.
5243         * targhooks.c (default_strict_argument_naming): Rename to
5244         hook_bool_CUMULATIVE_ARGS_false.
5245         * targhooks.h: Update the prototype for
5246         default_strict_argument_naming.
5247
5248 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
5249
5250         * config/sh/sh.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
5251         * config/sh/sh.h: Likewise.
5252         * config/sh/sh.md: Likewise.
5253
5254 2004-01-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
5255
5256         * doc/invoke.texi (SPARC options): Restructure and update.
5257
5258 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
5259
5260         * system.h (PROMOTE_FUNCTION_ARGS, STRUCT_VALUE_INCOMING, and
5261         STRICT_ARGUMENT_NAMING): Poison.
5262         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS): Define as
5263         hook_bool_tree_false.
5264         * targhooks.c (default_promote_function_args): Remove.
5265         (default_struct_value_rtx): Don't use STRUCT_VALUE_INCOMING.
5266         Don't check incoming.
5267         (default_strict_argument_naming): Don't use
5268         STRICT_ARGUMENT_NAMING.
5269         * targhooks.h: Remove the prototype for
5270         default_promote_function_args.
5271
5272 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
5273
5274         * config/i386/i386-protos.h: Remove the prototype for
5275         ix86_setup_incoming_varargs.
5276         * config/i386/i386.c (TARGET_SETUP_INCOMING_VARARGS): New.
5277         (ix86_setup_incoming_varargs): Make it static.
5278         * config/i386/i386.h (SETUP_INCOMING_VARARGS): Remove.
5279
5280 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
5281
5282         * alloc-pool.c: Fix comment typos.
5283         * builtin-types.def: Likewise.
5284         * builtins.def: Likewise.
5285         * c-pretty-print.c: Likewise.
5286         * df.h: Likewise.
5287         * reload1.c: Likewise.
5288
5289 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
5290
5291         * doc/invoke.texi: Follow spelling conventions.
5292         * doc/tm.texi: Likewise.
5293
5294 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
5295
5296         * doc/install.texi: Fix typos.
5297         * doc/invoke.texi: Likewise.
5298
5299 2004-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
5300
5301         * config/s390/s390.c (s390_decompose_address): Do not treat virtual
5302         registers as pointers.
5303         * config/s390/s390.md ("*la_31" second peephole2): Fix incorrect mode.
5304
5305 2004-01-31  Paolo Bonzini  <bonzini@gnu.org>
5306
5307         * combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine
5308         and restore it to gen_lowpart_general on exit.
5309         (gen_lowpart_for_combine): Adjust all callers to go through
5310         gen_lowpart.
5311         * cse.c (cse_main): Set gen_lowpart to gen_lowpart_if_possible
5312         and restore it to gen_lowpart_general on exit.
5313         (gen_lowpart_if_possible): Adjust all callers to go through
5314         gen_lowpart.
5315         * emit-rtl.c (gen_lowpart_general): New name of gen_lowpart.
5316         (gen_lowpart): Declare as pointer to function, initialized to
5317         gen_lowpart_general.
5318         * rtl.h (gen_lowpart): Declare as pointer to function.
5319
5320 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
5321
5322         * bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
5323         * calls.c: Likewise.
5324         * emit-rtl.c: Likewise.
5325         * function.c: Likewise.
5326         * reload1.c: Likewise.
5327         * config/i386/cygming.h: Likewise.
5328         * config/i386/i386.c: Likewise.
5329         * config/i386/winnt.c: Likewise.
5330
5331 2004-01-30  Dara Hazeghi  <dhazeghi@yahoo.com>
5332
5333         PR bootstrap/9249
5334         * doc/install.texi: document --enable-__cxa_atexit option.
5335         * configure.ac: Disable __cxa_atexit if not supported.
5336         * configure: Regenerate.
5337
5338 2003-01-30  Daniel Berlin  <dberlin@dberlin.org>
5339
5340         * ggc-zone.c (ggc_free): New function.
5341
5342 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
5343
5344         alloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c,
5345         cfghooks.h, cfglayout.c, cfgloopmanip.c, debug.c, debug.h,
5346         flow.c, genextract.c, ggc-common.c, ggc-page.c, ggc.h,
5347         ifcvt.c, jump.c, loop-unswitch.c, timevar.c, timevar.def,
5348         tree-optimize.c, vmsdbgout.c, config/fp-bit.c,
5349         config/alpha/alpha.c, config/alpha/alpha.h,
5350         config/alpha/alpha.md, config/alpha/unicosmk.h,
5351         config/alpha/vms.h, config/arm/linux-elf.h, config/avr/avr.c,
5352         config/c4x/c4x-protos.h, config/c4x/c4x.md,
5353         config/d30v/d30v.h, config/frv/frv.md, config/frv/frvbegin.c,
5354         config/frv/frvend.c, config/i386/cygming.h,
5355         config/i386/djgpp.h, config/i386/emmintrin.h,
5356         config/i386/gthr-win32.c, config/i386/i386-interix.h,
5357         config/i386/i386-protos.h, config/i386/openbsd.h,
5358         config/i386/winnt.c, config/i386/xm-mingw32.h,
5359         config/i386/xmmintrin.h, config/ia64/ia64.md,
5360         config/iq2000/iq2000.md, config/m32r/m32r.md,
5361         config/m68k/m68k.md, config/mcore/mcore-elf.h,
5362         config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
5363         config/mips/iris5gas.h, config/mips/iris6.h,
5364         config/mips/iris6gas.h, config/mips/linux.h,
5365         config/mips/mips.md, config/mips/netbsd.h,
5366         config/mips/openbsd.h, config/mips/windiss.h,
5367         config/pa/fptr.c, config/rs6000/aix.h,
5368         config/rs6000/altivec.h, config/rs6000/darwin.h,
5369         config/rs6000/xcoff.h, config/s390/s390-protos.h,
5370         config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
5371         config/sh/netbsd-elf.h, config/sh/sh.h, config/sh/vxworks.h,
5372         config/sparc/sol2.h: Update copyright.
5373
5374 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
5375
5376         * Makefile.in (abs_docdir, abs_srcdir): Define.
5377         (doc/%.dvi, doc/gccinstall.dvi): Use $(abs_docdir).
5378
5379 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
5380
5381         * genconfig.c (main): Have CC0_P check its operand even on a
5382         target without cc0.
5383
5384 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
5385
5386         * config/alpha/alpha.c: Remove mentions of deprecates macros
5387         in comments, remove some target-independent comments about target
5388         macros, and/or add minimal function comments for target hook
5389         implementations.
5390         * config/avr/avr.c: Likewise.
5391         * config/ia64/ia64.h: Likewise.
5392         * config/ip2k/ip2k.c: Likewise.
5393         * config/iq2000/iq2000.c: Likewise.
5394         * config/m32r/m32r.h: Likewise.
5395         * config/m68hc11/m68hc11.c: Likewise.
5396         * config/mcore/mcore.c: Likewise.
5397         * config/mmix/mmix.c: Likewise.
5398         * config/mn10300/mn10300.c: Likewise.
5399         * config/pa/pa.c: Likewise.
5400         * config/pdp11/pdp11.c: Likewise.
5401         * config/rs6000/rs6000.h: Likewise.
5402         * config/sh/sh.c: Likewise.
5403         * config/sh/sh.h: Likewise.
5404         * config/sparc/sparc.c: Likewise.
5405         * config/sparc/sparc.h: Likewise.
5406         * config/stormy16/stormy16.c: Likewise.
5407         * config/xtensa/xtensa.c: Likewise.
5408
5409 2004-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
5410
5411         PR optimization/12147
5412         * reload1.c (reload_reg_free_p): RELOAD_OTHER conflicts with
5413         RELOAD_FOR_OPADDR_ADDR.
5414         (reload_reg_reaches_end_p): RELOAD_FOR_OTHER_ADDRESS register
5415         might be reused as RELOAD_FOR_OPADDR_ADDR register.
5416
5417 2004-01-30  Jan Hubicka  <jh@suse.cz>
5418
5419         * reload.c (get_secondary_mem): Fix updating of
5420         secondary_memlocs_elim_used.
5421
5422 2004-01-30  Richard Henderson  <rth@redhat.com>
5423
5424         * varasm.c (struct rtx_const, struct pool_constant): Remove.
5425         (MAX_RTX_HASH_TABLE): Remove.
5426         (const_rtx_hash_table, const_rtx_sym_hash_table): Remove.
5427         (first_pool, last_pool, pool_offset): Remove.
5428         (struct rtx_constant_pool): Split out from ...
5429         (struct varasm_status): ... here.  Reference one via pointer.
5430         (struct constant_descriptor_rtx): Merge struct pool_constant.
5431         (SYMHASH): Remove.
5432         (decode_rtx_const): Remove.
5433         (const_hash_rtx, compare_constant_rtx): Remove.
5434         (record_constant_rtx): Remove.
5435         (const_desc_rtx_hash, const_desc_rtx_eq): New.
5436         (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): New.
5437         (const_rtx_hash_1, const_rtx_hash): New.
5438         (init_varasm_status): Allocate a rtx_constant_pool, and its hashes.
5439         (simplify_subtraction): Use simplify_rtx.
5440         (force_const_mem): Rewrite to use new data structures.
5441         (find_pool_constant): Likewise.
5442         (get_pool_constant, get_pool_constant_mark,
5443         get_pool_constant_for_function, get_pool_mode,
5444         get_pool_mode_for_function, get_pool_offset, get_pool_size): Likewise.
5445         (output_constant_pool_2): Split out from output_constant_pool.
5446         (output_constant_pool_1): Likewise.  Use new pool datastructures.
5447         (output_constant_pool): Zap entire pool datastructure.
5448         (mark_constant): Use new pool datastructures.
5449         (mark_constants): Use for_each_rtx.
5450         (mark_constant_pool): Use new pool datastructures.
5451
5452 2004-01-30  Fariborz Jahanian <fjahanian@apple.com>
5453
5454         * config/rs6000/rs6000.c (rs6000_emit_move): Remove #if 0.
5455         Copy operands[1] to pseudo for simplify_gen_subreg.
5456
5457 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
5458
5459         * gcse.c (bypass_block): Fix a typo in the previous check-in
5460         to the file.
5461
5462 2004-01-30  Andrew Pinski <pinskia@physics.uc.edu>
5463
5464         * toplev.c: Include alloc-pool.h.
5465         * Makefile.in (toplev.c): Update dependencies.
5466
5467 2004-01-30  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5468
5469         * combine.c (simplify_shift_const, case XOR): Be careful when
5470         commuting XOR with ASHIFTRT.
5471
5472 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
5473             Eric Botcazou  <ebotcazou@libertysurf.fr>
5474
5475         * config/sparc/sparc-protos.h: Remove the prototype for
5476         sparc_builtin_saveregs.
5477         * config/sparc/sparc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
5478         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
5479         (TARGET_PROMOTE_PROTOTYPES): Likewise.
5480         (TARGET_STRUCT_VALUE_RTX): Likewise.
5481         (TARGET_RETURN_IN_MEMORY): Likewise.
5482         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
5483         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
5484         (sparc_builtin_saveregs): Make it static.
5485         (sparc_promote_prototypes): New.
5486         (sparc_struct_value_rtx): Likewise.
5487         (sparc_return_in_memory): Likewise.
5488         * config/sparc/sparc.h: (PROMOTE_FUNCTION_ARGS): Remove.
5489         (PROMOTE_FUNCTION_RETURN): Likewise.
5490         (RETURN_IN_MEMORY): Likewise.
5491         (STRUCT_VALUE): Likewise.
5492         (STRUCT_VALUE_INCOMING): Likewise.
5493         (EXPAND_BUILTIN_SAVEREGS): Likewise.
5494         (STRICT_ARGUMENT_NAMING): Likewise.
5495         (PROMOTE_PROTOTYPES): Likewise.
5496
5497         * config/sparc/sparc.h (PROMOTE_MODE): Use word_mode.
5498
5499 2004-01-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
5500
5501         PR c/12818
5502         * varasm.c (const_hash_1) <STRING_CST>: Use the
5503         address to compute the hash value if flag_writable_strings.
5504         (compare_constant) <STRING_CST>: Compare the addresses
5505         if flag_writable_strings.
5506         (build_constant_desc): Do not copy the expression for a
5507         STRING_CST if flag_writable_strings.
5508
5509 2004-01-30  Jan Hubicka  <jh@suse.cz>
5510
5511         * alloc-pool.c: Include hashtab.h
5512         (alloc_pool_descriptor): New structure
5513         (alloc_pool_hash): New global variable.
5514         (hash_descriptor, eq_descriptor, alloc_pool_descriptor): New.
5515         (create_alloc_pool): Update statistics.
5516         (free_alloc_pool): Likewise.
5517         (pool_alloc): Likewise.
5518         (output_info): New structure
5519         (print_statistics, dump_alloc_pool_statistics): New function.
5520         * alloc-pool.h (alloc_pool_def): Turn name to be constant.
5521         (dump_alloc_pool_statistics): Declare.
5522         * toplev.c (finalize):  Dump statistics.
5523
5524         * reload.c (secondary_memlocs_elim_used): New static variable.
5525         (get_secondary_mem): Update it.
5526         (find_reloads): Use it.
5527
5528 2004-01-30  Steven Bosscher <s.bosscher@student.tudelft.nl>
5529
5530         * toplev.c: Fix broken checkin of 2003-12-30, again.
5531
5532 2004-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
5533
5534         * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
5535         s390*-*-* targets by specifying a 'nop' insn.
5536         * configure: Regenerate.
5537
5538 2004-01-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
5539
5540         PR target/11475
5541         * config/sparc/sparc.md (movhi_lo_sum): Tighten predicates.
5542
5543 2004-01-29  Jakub Jelinek  <jakub@redhat.com>
5544
5545         * emit-rtl.c (change_address): Use XEXP (memref, 0) instead
5546         of addr when creating MEM copy.
5547
5548 2004-01-29  Devang Patel  <dpatel@apple.com>
5549
5550         * dwarf2out.c (gen_field_die): Do not equate decl number to die.
5551
5552 2004-01-28  Ian Lance Taylor  <ian@wasabisystems.com>
5553
5554         PR inline-asm/6162
5555         * reload.c (find_reloads): Only support one pair of commutative
5556         operands.
5557
5558 2004-01-29  Roger Sayle  <roger@eyesopen.com>
5559
5560         PR java/13824
5561         * tree.c (unsafe_for_reeval): Handle EXIT_BLOCK_EXPR nodes specially
5562         as their EXIT_BLOCK_LABELED_BLOCK operands can lead to unbounded
5563         recursion.
5564
5565 2004-01-29  Kazu Hirata  <kazu@cs.umass.edu>
5566
5567         * config/frv/frv.c: Don't mention deprecated macros in
5568         comments.  Remove some target-independent comments about
5569         target macros.
5570         * config/frv/frv.h: Likewise.
5571
5572 2004-01-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5573
5574         * cfghooks.c (split_block): Set probability and count of the
5575         new edge.
5576
5577 2005-01-29  Josef Zlomek  <zlomekj@suse.cz>
5578
5579         * dwarf2out.c (struct die_struct): Added field decl_id.
5580         (decl_die_table): Changed to hash table.
5581         (decl_die_table_allocated): Deleted.
5582         (decl_die_table_in_use): Deleted.
5583         (DECL_DIE_TABLE_INCREMENT): Deleted.
5584         (decl_die_table_hash): New function.
5585         (decl_die_table_eq): New function.
5586         (lookup_decl_die): Lookup in a hash table.
5587         (equate_decl_number_to_die): Insert into a hash table.
5588         (dwarf2out_init): Init hash table decl_die_table.
5589
5590 2004-01-29  Jakub Jelinek  <jakub@redhat.com>
5591
5592         PR optimization/13424
5593         * expr.c (store_constructor): Revert 2003-12-03 change.
5594
5595         * emit-rtl.c (change_address): Check also if MEM_ATTRS is set as
5596         expected before returning early.  Avoid sharing RTL if they
5597         need to be changed.
5598
5599         * config/i386/i386.c (ix86_expand_movstr): Rework rep_mov and strmov
5600         handling so that memory attributes are preserved.  Don't call
5601         ix86_set_move_mem_attrs.
5602         (ix86_set_move_mem_attrs_1, ix86_set_move_mem_attrs): Removed.
5603         (ix86_expand_clrstr): Rename src argument to
5604         dst.  Rework rep_stos and strset handling so that memory attributes
5605         are preserved.
5606         (ix86_expand_strlen): Pass src argument to
5607         ix86_expand_strlensi_unroll_1.  Rework strlenqi_1 handling so that
5608         memory attributes are preserved.
5609         (ix86_expand_strlensi_unroll_1): Add src argument.  Use
5610         change_address instead of gen_rtx_MEM.
5611         * config/i386/i386.md (strmov, strmov_singleop, rep_mov): New
5612         expanders.
5613         (strmovdi_rex64, strmovsi, strmovsi_rex64, strmovhi, strmovhi_rex64,
5614         strmovqi, strmovqi_rex64): Remove.
5615         (rep_mov*, strmov*): Prefix insn names with *.
5616         (strset, strset_singleop, rep_stos): New expanders.
5617         (strsetdi_rex64, strsetsi, strsetsi_rex64, strsethi, strsethi_rex64,
5618         strsetqi, strsetqi_rex64): Remove.
5619         (rep_stos*, strset*): Prefix insn names with *.
5620         (rep_stosqi_rex64): Likewise.  Fix mode of dirflag reg from DImode
5621         to SImode.
5622         (cmpstrsi): Rework cmpstrqi_1 handling so that memory attributes
5623         are preserved.
5624         (cmpstrqi_nz_1, cmpstrqi_nz_rex_1, cmpstrqi_1, cmpstrqi_rex_1):
5625         Prefix insn names with *.
5626         (cmpstrqi_nz_1, cmpstrqi_1): New expanders.
5627         (strlenqi_1, strlenqi_rex_1): Prefix insn names with *.
5628         (strlenqi_1): New expander.
5629         * config/i386/i386.h (ix86_set_move_mem_attrs): Remove prototype.
5630
5631 2004-01-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5632
5633         * Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency.
5634         * basic-block.h (tidy_fallthru_edge, tidy_fallthru_edges, dump_bb,
5635         verify_flow_info): Declaration removed.
5636         * cfg.c (verify_flow_info, dump_bb): Moved to cfghooks.c.
5637         (debug_bb, debug_bb_n): Add argument to dump_bb call.
5638         * cfgcleanup.c (try_simplify_condjump, try_crossjump_to_edge,
5639         try_optimize_cfg, delete_unreachable_blocks): Use delete_basic_block
5640         instead of delete_block.
5641         * cfghooks.c: Include timevar.h and toplev.h.
5642         (cfg_hooks): Define here.
5643         (verify_flow_info, dump_bb): Moved from cfg.c.
5644         (redirect_edge_and_branch, redirect_edge_and_branch_force,
5645         split_block, split_block_after_labels, move_block_after,
5646         delete_basic_block, split_edge, create_basic_block,
5647         create_empty_bb, can_merge_blocks_p, merge_blocks,
5648         make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
5649         New functions.
5650         * cfghooks.h (struct cfg_hooks): Added fields name,
5651         make_forwarder_block, tidy_fallthru_edge and
5652         move_block_after. Changed type of verify_flow_info, dump_bb,
5653         split_block fields. Renamed cfgh_split_edge and delete_block
5654         fields.
5655         (redirect_edge_and_branch, redirect_edge_and_branch_force,
5656         split_block, delete_block, split_edge, create_basic_block,
5657         can_merge_blocks_p, merge_blocks): Macros removed.
5658         (cfg_hooks): Do not export.
5659         (verify_flow_info, dump_bb, redirect_edge_and_branch,
5660         redirect_edge_and_branch_force, split_block, split_block_after_labels,
5661         move_block_after, delete_basic_block, split_edge, create_basic_block,
5662         create_empty_bb, can_merge_blocks_p, merge_blocks,
5663         make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
5664         Declare.
5665         (cfg_layout_rtl_cfg_hooks): Declare.
5666         * cfgloop.c (update_latch_info, mfb_keep_just, mfb_keep_nonlatch):
5667         New functions.
5668         (canonicalize_loop_headers): Use new semantics of make_forwarder_block.
5669         (redirect_edge_with_latch_update): Removed.
5670         (make_forwarder_block): Moved to cfghooks.c, semantics changed.
5671         * cfgloopmanip.c (remove_bbs): Do not update dominators here.
5672         * cfgrtl.c (cfg_layout_split_block, rtl_split_block, rtl_dump_bb,
5673         rtl_delete_block, rtl_split_block, rtl_merge_blocks,
5674         tidy_fallthru_edge, rtl_split_edge, cfg_layout_delete_block,
5675         cfg_layout_merge_blocks, cfg_layout_split_edge): Partly moved to
5676         cfghooks.c.
5677         (rtl_create_basic_block): Coding style fix.
5678         (rtl_tidy_fallthru_edge, rtl_move_block_after,
5679         rtl_make_forwarder_block): New functions.
5680         (update_cfg_after_block_merging): Removed.
5681         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Fill in new entries.
5682         * flow.c (verify_wide_reg, verify_local_live_at_start): Add argument
5683         to dump_bb.
5684         * ifcvt.c (merge_if_block, find_cond_trap, find_if_case_1,
5685         find_if_case_2): Don't update dominators.
5686         * timevar.def (TV_CFG_VERIFY): New.
5687         * loop-unswitch.c (unswitch_loop): Don't call add_to_dominance_info.
5688         * cfglayout.c (copy_bbs): Don't call add_to_dominance_info.
5689         * cfgloopmanip.c (split_loop_bb): Don't update dominators.
5690         (remove_bbs): Don't call remove_bbs.
5691         (create_preheader): Use make_forwarder_block.
5692         (mfb_keep_just, mfb_update_loops): New static functions.
5693
5694 2004-01-29  Kazu Hirata  <kazu@cs.umass.edu>
5695
5696         * config/avr/avr.h: Remove target-independent comments about
5697         target macros.
5698
5699 2004-01-28  Daniel Berlin  <dberlin@dberlin.org>
5700
5701         * timevar.c (timevar_print): Mention when checking is enabled.
5702
5703 2004-01-28  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
5704
5705         * c-lex.c (c_lex): Rename to...
5706         (c_lex_with_flags): Add new parameter to get CPP flags.
5707         (c_lex): Thunk to c_lex_with_flags while keeping the old interface.
5708         * c-pragma.h (c_lex_with_flags): Declare.
5709
5710 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
5711
5712         * config/mcore/mcore.c (mcore_external_libcall): Add a
5713         comment.
5714         (mcore_return_in_memory): Likewise.
5715
5716 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
5717
5718         * config/mcore/mcore-protos.h: Remove the prototype for
5719         mcore_setup_incoming_varargs.
5720         * config/mcore/mcore.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
5721         (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
5722         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
5723         (TARGET_PROMOTE_PROTOTYPES): Likewise.
5724         (TARGET_STRUCT_VALUE_RTX): Likewise.
5725         (TARGET_RETURN_IN_MEMORY): Likewise.
5726         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
5727         (mcore_setup_incoming_varargs): Make it static.  Receive the
5728         first argument by reference.  Add argument second_time.
5729         (mcore_external_libcall): New.
5730         (mcore_return_in_memory): Likewise.
5731         * config/mcore/mcore.h (PROMOTE_FUNCTION_ARGS): New.
5732         (PROMOTE_FUNCTION_RETURN): Likewise.
5733         (STRUCT_VALUE): Likewise.
5734         (RETURN_IN_MEMORY): Likewise.
5735         (SETUP_INCOMING_VARARGS): Likewise.
5736         (PROMOTE_PROTOTYPES): Likewise.
5737         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
5738
5739 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
5740
5741         * config/m32r/m32r-protos.h: Remove the prototype for
5742         m32r_setup_incoming_varargs.
5743         * config/m32r/m32r.c (TARGET_PROMOTE_PROTOTYPES): New.
5744         (TARGET_STRUCT_VALUE_RTX): Likewise.
5745         (TARGET_RETURN_IN_MEMORY): Likewise.
5746         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
5747         (m32r_return_in_memory): New.
5748         (m32r_setup_incoming_varargs): Make it static.
5749         * config/m32r/m32r.h: Remove #undef of
5750         ASM_OUTPUT_EXTERNAL_LIBCALL.  Remove the commented-out
5751         definitions of PROMOTE_FUNCTION_ARGS and
5752         PROMOTE_FUNCTION_RETURN.
5753         (PROMOTE_PROTOTYPES): Remove.
5754         (RETURN_IN_MEMORY): Likewise.
5755         (STRUCT_VALUE): Likewise.
5756
5757 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
5758
5759         * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES): New.
5760         (TARGET_STRUCT_VALUE_RTX): Likewise.
5761         (m68k_struct_value_rtx): Likewise.
5762         * config/m68k/m68k.h (STRUCT_VALUE_REGNUM): Rename to
5763         STRUCT_VALUE_REGNUM.
5764         (PROMOTE_PROTOTYPES): Remove.
5765         * config/m68k/m68kelf.h (STRUCT_VALUE_REGNUM): Rename to
5766         STRUCT_VALUE_REGNUM.
5767         * config/m68k/m68kv4.h (STRUCT_VALUE_REGNUM): Likewise.
5768         * config/m68k/netbsd-elf.h (STRUCT_VALUE_REGNUM): Likewise.
5769
5770 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
5771
5772         * config/stormy16/stormy16.c
5773         (TARGET_BUILD_BUILTIN_VA_LIST_TYPE): Rename to
5774         TARGET_BUILD_BUILTIN_VA_LIST.
5775
5776 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
5777
5778         * config/v850/v850.c (TARGET_PROMOTE_PROTOTYPES): New.
5779         (TARGET_STRUCT_VALUE_RTX): Likewise.
5780         (TARGET_RETURN_IN_MEMORY): Likewise.
5781         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
5782         (v850_return_in_memory): Likewise.
5783         (v850_setup_incoming_varargs): Likewise.
5784         * config/v850/v850.h (PROMOTE_PROTOTYPES): Remove.
5785         (SETUP_INCOMING_VARARGS): Likewise.
5786         (RETURN_IN_MEMORY): Likewise.
5787         (STRUCT_VALUE): Likewise.
5788
5789 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
5790
5791         * config/fr30/fr30.c (TARGET_PROMOTE_PROTOTYPES): New.
5792         (fr30_setup_incoming_varargs): Don't use
5793         STRICT_ARGUMENT_NAMING.
5794         * config/fr30/fr30.h (PROMOTE_PROTOTYPES): Remove.
5795         (STRICT_ARGUMENT_NAMING): Likewise.
5796
5797 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
5798
5799         * config/frv/frv-protos.h: Remove the prototype for
5800         frv_expand_builtin_saveregs.
5801         * config/frv/frv.c (TARGET_STRUCT_VALUE_RTX): Likewise.
5802         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
5803         (frv_stack_info): Use FRV_STRUCT_VALUE_REGNUM instead of
5804         STRUCT_VALUE_REGNUM.
5805         (frv_expand_builtin_saveregs): Make it static.
5806         (frv_struct_value_rtx): New.
5807         * config/frv/frv.h (EXPAND_BUILTIN_SAVEREGS): Remove.
5808
5809 2004-01-29  Jan Hubicka  <jh@suse.cz>
5810
5811         PR c++/12850
5812         * cgraph.c (cgraph_remove_node): Clear out saved/insns/arguments and
5813         initial pointers.
5814         * cgraphunit.c (cgraph_finalize_function): Clear out DECL_SAVED_INSNS
5815         for functions that will be only inlined.
5816         (cgraph_mark_function_to_output): Likewise.
5817         (cgraph_expand_function): Sanity check that DECL_DEFER_OUTPUT is clear;
5818         do not clear function body.
5819         * tree-optimize.c (clear_decl_rtl): Use decl_function_context.
5820         (tree_rest_of_compilation): Reorganize the logic releasing function
5821         body to use callgraph datastructure.
5822
5823 2004-01-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5824
5825         * pa.md: Change predicate of a peephole2 pattern from reg_or_0_operand
5826         to register_operand.
5827
5828 2004-01-28  Zack Weinberg  <zack@codesourcery.com>
5829
5830         * config/ia64/ia64.md (fetchadd_acq_si, fetchadd_acq_di)
5831         (cmpxchg_acq_si, cmpxchg_acq_di): Exchange match_dup and
5832         match_operand expressions so that all match_dups appear
5833         lexically after their corresponding match_operands.
5834
5835 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
5836
5837         * config/h8300/h8300.c (WORD_REG_USED): Use
5838         HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
5839         (compute_saved_regs): Likewise.
5840         (h8300_expand_prologue): Likewise.  Allocate locals after
5841         saving registers.
5842         (h8300_expand_epilogue): Use HARD_FRAME_POINTER_REGNUM instead
5843         of FRAME_POINTER_REGNUM.  Deallocate locals before saving
5844         registers.
5845         (h8300_initial_elimination_offset): Adjust for the new frame
5846         layout, which swaps flips the order of locals and saved
5847         registers.
5848         * config/h8300/h8300.h (FIRST_PSEUDO_REGISTER): Change to 12.
5849         (HARD_FRAME_POINTER_REGNUM): New.
5850         (ELIMINABLE_REGS): Add an elimination rule from
5851         FRAME_POINTER_REGNUM to HARD_FRAME_POINTER_REGNUM.
5852         (REGISTER_NAMES): Add fp.
5853         * config/h8300/h8300.md (FP_REG): Change to 11.
5854         (HFP_REG): New.
5855
5856 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
5857
5858         * genrecog.c (write_node): Remove a useless local variable.
5859
5860 2004-01-28  Ian Lance Taylor  <ian@wasabisystems.com>
5861
5862         * Makefile.in (options.c options.h): Use stamp file s-options to
5863         avoid unnecessary rebuilds.
5864         (options.o): New target listing dependencies.
5865         (gtyp-gen.h): Use stamp file s-gtyp-gen.
5866         (STAGESTUFF): Add s-gtyp-gen.
5867
5868 2004-01-28  Richard Henderson  <rth@redhat.com>
5869
5870         * ggc.h (ggc_free): Declare.
5871         * ggc-common.c (ggc_realloc): Use it.
5872         * ggc-page.c: Remove lots of inline markers.
5873         (globals): Add free_object_list.
5874         (ggc_alloc): Tidy.
5875         (ggc_free, validate_free_objects): New.
5876         (poison_pages): Provide default.
5877         (ggc_collect): Call validate_free_objects; emit markers to
5878         the debug file.
5879
5880 2004-01-28  Zack Weinberg  <zack@codesourcery.com>
5881             Jim Wilson  <wilson@specifixinc.com>
5882
5883         * config/ia64/ia64.c (ia64_split_tmode, ia64_split_tmode_move):
5884         Rewrite to use POST_INC/POST_DEC/POST_MODIFY instead of a
5885         scratch pointer.
5886         (ia64_secondary_reload_class): Delete case GR_REGS.
5887         * config/ia64/ia64.md (movti, *movti_internal, movtf, *movtf_internal):
5888         Do not allocate a scratch register.
5889         (reload_inti, reload_outti, reload_intf, reload_outtf): Delete.
5890
5891 2004-01-28  Jan Hubicka  <jh@suse.cz>
5892
5893         * gcse.c (bypass_block): Prevent edges to be unified when we are
5894         about to emit compenstation code.
5895
5896 2004-01-28  Nick Clifton  <nickc@redhat.com>
5897
5898         * config/arm/arm.c (arm_expand_builtin): Force second argument of
5899         the setcwx insn into a register.
5900
5901 2004-01-28  Richard Sandiford  <rsandifo@redhat.com>
5902
5903         * config/fp-bit.c (pack_d): When using paired doubles to implement
5904         a long double, round the high part separately.
5905         (unpack_d): Fix the case in which the high part is a power of two
5906         and the low part is a nonzero value of the opposite sign.
5907
5908 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
5909
5910         * config/c4x/c4x.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
5911         (TARGET_STRUCT_VALUE_RTX): Likewise.
5912         (c4x_external_libcall): Likewise.
5913         (c4x_struct_value_rtx): Likewise.
5914         * config/c4x/c4x.h: Remove.
5915         (STRUCT_VALUE_REGNUM): Likewise.
5916         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
5917
5918 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
5919
5920         * config/i386/i386.c (TARGET_PROMOTE_PROTOTYPES): New.
5921         (TARGET_STRUCT_VALUE_RTX): Likewise.
5922         * config/i386/i386.h (STRUCT_VALUE_INCOMING): Remove.
5923         (STRUCT_VALUE): Likewise.
5924         (PROMOTE_PROTOTYPES): Likewise.
5925
5926 2004-01-27  Roger Sayle  <roger@eyesopen.com>
5927
5928         * config/pa/pa.c (emit_move_sequence): Check that operand1 is a
5929         CONST_INT before using INTVAL.
5930
5931 2004-01-27  Ulrich Weigand  <uweigand@de.ibm.com>
5932
5933         * config/s390/s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.
5934         * config/s390/s390.c (s390_return_addr_rtx): Fail for all but current
5935         frame if !TARGET_BACKCHAIN.
5936         * config/s390/s390.md ("allocate_stack"): Use pattern only if
5937         TARGET_BACKCHAIN.
5938         * doc/invoke.texi (-mbackchain/-mno-backchain): Document new default.
5939
5940 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
5941
5942         * ia64.c (ia64_function_arg): When placing HFAs in integer
5943         registers, do not special case the mode used for complex
5944         types.  Do not advance int_regs until the current register
5945         is full.
5946
5947 2004-01-27  Richard Sandiford  <rsandifo@redhat.com>
5948
5949         PR target/7297
5950         * except.c (init_eh): Use a 5-word __jbuf for __builtin_setjmp().
5951
5952 2004-01-27  David Edelsohn  <edelsohn@gnu.org>
5953
5954         * config/rs6000/rs6000.c (rs6000_emit_move): #if 0 splitting
5955         slow, unaligned loads and stores while debugging.  Fix formatting.
5956
5957 2004-01-27  David Edelsohn  <edelsohn@gnu.org>
5958
5959         * config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead
5960         of computing wmode.
5961         (restore_stack_nonlocal): Same.
5962
5963 2004-01-27  Devang Patel <dpatel@apple.com>
5964
5965         * Makefile.in (dwarf2out.o): Depend on input.h
5966         * dbxout.c (dbx_debug_hooks): Add new empty hook for
5967         imported_module_or_decl.
5968         (xcoff_debug_hooks): Same.
5969         * sdbout.c (sdb_debug_hooks): Same.
5970         * vmsdbgout.c (vmsdbg_debug_hooks): Same.
5971         * debug.c (do_nothing_debug_hooks): Same.
5972         (debug_nothing_tree_tree): New function.
5973         * debug.h (gcc_debug_hooks): New hook, imported_module_or_decl.
5974         * dwarf2out.c: Include input.h.
5975         (dwarf2_debug_hooks): Add new hook for imported_module_or_decl.
5976         (remove_child_TAG): New function.
5977         (dwarf_tag_name): Handle DW_TAG_imported_module.
5978         (gen_subprogram_die): Equate decl number to declaration die. Do not
5979         remove all children dies while reusing declaration die for definition.
5980         Instead, selectively remove only formal parameters.
5981         (gen_variable_die): Equate variable decl to declaration die.
5982         (gen_field_die): Equate field decl to line number.
5983         (force_namespace_die): Replace it with ...
5984         (force_decl_die): ... this.
5985         (force_type_die): New function.
5986         (setup_namespace_context): Replace use of force_namespace_die() with
5987         force_decl_die().
5988         (gen_namespace_die): Same.
5989         (dwarf2out_imported_module_or_decl): New function.
5990
5991 2004-01-27  Bob Wilson  <bob.wilson@acm.org>
5992
5993         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Remove SUBREG
5994         on CQImode and CHImode incoming arguments in register a7.
5995         (function_arg): Wrap BLKmode argument in register a7 in a PARALLEL.
5996         * config/xtensa/xtensa.h (BLOCK_REG_PADDING): Define.
5997         * config/xtensa/xtensa.md (movdi, movdf): Only call force_reg or
5998         xtensa_copy_incoming_a7 before reload.
5999
6000 2004-01-27  J"orn Rennecke <joern.rennecke@superh.com>
6001
6002         * coverage.c (get_coverage_counts): Give a different message
6003         if flag_guess_branch_prob is set.
6004         * predict.c (counts_to_freqs): Return an int.
6005         (estimate_bb_frequencies): If counts_to_freqs returns zero,
6006         calculate estimates.
6007
6008 2004-01-27  Kazu Hirata  <kazu@cs.umass.edu>
6009
6010         * config/iq2000/iq2000-protos.h: Remove the prototype for
6011         iq2000_setup_incoming_varargs.
6012         * config/iq2000/iq2000.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
6013         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
6014         (TARGET_PROMOTE_PROTOTYPES): Likewise.
6015         (TARGET_STRUCT_VALUE_RTX): Likewise.
6016         (TARGET_RETURN_IN_MEMORY): Likewise.
6017         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
6018         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
6019         (iq2000_return_in_memory): Likewise.
6020         (iq2000_setup_incoming_varargs): Make it static.  Receive the
6021         first argument by reference.
6022         * config/iq2000/iq2000.h (PROMOTE_FUNCTION_ARGS): Remove.
6023         (PROMOTE_FUNCTION_RETURN): Likewise.
6024         (PROMOTE_PROTOTYPES): Likewise.
6025         (RETURN_IN_MEMORY): Likewise.
6026         (STRUCT_VALUE): Likewise.
6027         (SETUP_INCOMING_VARARGS): Likewise.
6028         (STRICT_ARGUMENT_NAMING): Likewise.
6029
6030 2004-01-24  James A. Morrison  <ja2morri@uwaterloo.ca>
6031
6032         * fixinc/fixinc.c (test_test): Initialize res.
6033         (start_flexer): Initialize pz_cmd_save.
6034
6035 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
6036
6037         * doc/rtl.texi (Arithmetic): Rewrite entries for PLUS,
6038         SS_PLUS, US_PLUS, LO_SUM, MINUS, SS_MINUS, US_MINUS.
6039
6040 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
6041
6042         PR 7198
6043         * config/ia64/ia64.md (*nmaddsf4, *nmadddf4, *nmadddf4_alts)
6044         (*nmadddf4_trunc, *nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf)
6045         (*nmaddxf4_alts, *nmaddxf4_truncdf_alts):
6046         Rewrite pattern as (minus (op 3) (mult (op 1) (op 2))).
6047         Possibly rename pattern for consistency.
6048         Remove ??? comments suggesting that this be done.
6049         (*nmaddsf4_alts, *nmadddf4_truncsf_alts, *nmaddxf4_truncsf_alts):
6050         New patterns.
6051         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr)
6052         (divsf3_internal_lat, divsf3_internal_thr, sqrtsf2_internal_thr)
6053         (divdf3_internal_lat, divdf3_internal_thr, sqrtdf2_internal_thr)
6054         (divxf3_internal_lat, divxf3_internal_thr, sqrtxf2_internal_thr):
6055         Update to match.
6056
6057 2004-01-27  Ian Lance Taylor  <ian@wasabisystems.com>
6058
6059         * config/arm/arm.c (output_return_instruction): Only restore IP
6060         into SP if frame_pointer_needed.
6061
6062 2004-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
6063
6064         * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
6065         for SCmode and DCmode if ARCH32.
6066         (sparc_va_arg): Handle SCmode and DCmode by reference if ARCH32.
6067         * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for TCmode
6068         if ARCH32.
6069         (BASE_RETURN_VALUE_REG): Return 32 for all FP modes except TFmode
6070         if ARCH32.
6071         (BASE_OUTGOING_VALUE_REG): Likewise.
6072
6073 2004-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
6074
6075         PR target/10904
6076         PR target/13058
6077         * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): New.
6078         Forbid mode changes from SImode for lower FP regs if ARCH64.
6079
6080 2004-01-27  J"orn Rennecke <joern.rennecke@superh.com>
6081
6082         * Makefile.in (bt-load.o): Depend on except.h.
6083         * bt-load.c (except.h): #include.
6084         (compute_defs_uses_and_gen): If insn at end of BB can throw
6085         within this function, consider registers used by it unavailable for
6086         btr migration.
6087         (move_btr_def): If insn at end of BB can throw, insert before rather
6088         than after.
6089
6090         * flags.h (flag_btr_bb_exclusive): Declare.
6091         * toplev.c (flag_btr_bb_exclusive): New variable.
6092         (f_options): Add btr-bb-exclusive.
6093         * bt-load.c (augment_live_range): Restore old behaviour if
6094         flag_btr_bb_exclusive is set.
6095         * common.opt: Add entry for -fbtr-bb-exclusive.
6096         * opts.c (common_handle_options): Same.
6097         * doc/invoke.texi: Document -fbtr-bb-exclusive.
6098
6099         * bt-load.c (btrs_live_at_end): New variable.
6100         (compute_defs_uses_and_gen): Compute its pointed-to array.
6101         (clear_btr_from_live_range, add_btr_to_live_range): Update it.
6102         (augment_live_range): When augmenting with a new dominator,
6103         use only its btrs_live_at_end set, but also add in the full set
6104         of the old dominator.
6105         (btr_def_live_range): Use btrs_live_at_end.
6106         (move_btr_def): Set other_btr_uses_before_def, and move new set
6107         to the end of the basic block, if appropriate.
6108         (migrate_btr_defs): Allocate and free btrs_live_at_end.
6109
6110         * bt-load.c (basic_block_freq): Remove outdated comment.
6111
6112 2004-01-27  Alan Modra  <amodra@bigpond.net.au>
6113
6114         * config/rs6000/rs6000.h: Correct target_flags free bits comment.
6115         (PREDICATE_CODES): Remove duplicate.
6116         * config/rs6000/linux64.h (CPP_SYSV_SPEC): Don't define.
6117         (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow 32 bit TARGET_PROFILE_KERNEL.
6118         (MASK_PROFILE_KERNEL): Adjust define.
6119
6120 2004-01-27  Jakub Jelinek  <jakub@redhat.com>
6121
6122         * config/i386/i386.c (ix86_constant_alignment): Decrease alignment
6123         of long string literals from 32 bytes to sizeof (void *) when !-Os
6124         and to 1 with -Os.
6125
6126 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
6127
6128         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Accept
6129         constant addresses in the normal mode.
6130
6131 2004-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6132
6133         * system.h (CHAR_BITFIELD): Delete.
6134         (BOOL_BITFIELD): New.
6135         * c-decl.c (c_scope): Use BOOL_BITFIELD.
6136         * gengtype-lex.l: Recognize BOOL_BITFIELD instead of CHAR_BITFIELD.
6137
6138 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
6139
6140         * config/arc/arc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
6141         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
6142         (TARGET_PROMOTE_PROTOTYPES): Likewise.
6143         (TARGET_STRUCT_VALUE_RTX): Likewise.
6144         (TARGET_RETURN_IN_MEMORY): Likewise.
6145         (arc_return_in_memory): Likewise.
6146         * config/arc/arc.h (PROMOTE_FUNCTION_ARGS): Remove.
6147         (PROMOTE_FUNCTION_RETURN): Likewise.
6148         (RETURN_IN_MEMORY): Likewise.
6149         (STRUCT_VALUE): Likewise.
6150
6151 2004-01-26  Richard Henderson  <rth@redhat.com>
6152
6153         * c-parse.in (extension): Use itype.
6154         (SAVE_EXT_FLAGS): Don't allocate a tree.
6155         (RESTORE_EXT_FLAGS): Don't read a tree.
6156
6157 2004-01-26  Jan Hubicka  <jh@suse.cz>
6158
6159         * cselib.c (discard_useless_values):  Clear out value pointer pointing
6160         to datastructure to be recycled.
6161
6162 2004-01-25  Jan Hubicka  <jh@suse.cz>
6163
6164         * genextract.c (main): Do not output the memset when not checking.
6165
6166 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
6167
6168         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Use a
6169         switch statement instead of a chain of if statements.
6170
6171 2004-01-26  Jeff Law  <law@redhat.com>
6172
6173         * doc/contrib.texi: Minor cleanup for Paolo Carlini's entry.  Add
6174         acute accents for Petur Runolfsson's entry.
6175
6176 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
6177
6178         * config/pdp11/pdp11.c (TARGET_STRUCT_VALUE_RTX): New.
6179         (TARGET_RETURN_IN_MEMORY): Likewise.
6180         * config/pdp11/pdp11.h (STRUCT_VALUE): Remove.
6181         (RETURN_IN_MEMORY): Likewise.
6182
6183 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
6184
6185          * config/rs6000/rs6000.c (rs6000_emit_move): split slow
6186          unaligned load/store into smaller loads and stores.
6187
6188 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
6189
6190         * function.c (assign_parms): Do not assign
6191         long long argument to memory in prologue if
6192         is it loaded into register.
6193
6194 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
6195
6196          PR middle-end/13779
6197          * expr.c (emit_group_load): split constant
6198          correctly into register components of PARALLEL insn.
6199
6200 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
6201
6202         * gcc/config/rs6000/rs6000.md (save_stack_nonlocal):
6203         Use adjust_address_nv directly with appropriate mode.
6204         (restore_stack_nonlocal): Ditto.
6205
6206 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
6207
6208         * config/xtensa/xtensa-protos.h: Remove the prototype for
6209         xtensa_builtin_saveregs.
6210         * config/xtensa/xtensa.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
6211         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
6212         (TARGET_PROMOTE_PROTOTYPES): Likewise.
6213         (TARGET_STRUCT_VALUE_RTX): Likewise.
6214         (TARGET_RETURN_IN_MEMORY): Likewise.
6215         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
6216         (xtensa_builtin_saveregs): Make it static.
6217         (xtensa_return_in_memory): New.
6218         * config/xtensa/xtensa.h (PROMOTE_FUNCTION_ARGS: Remove.
6219         (PROMOTE_FUNCTION_RETURN): Likewise.
6220         (PROMOTE_PROTOTYPES): Likewise.
6221         (STRUCT_VALUE): Likewise.
6222         (RETURN_IN_MEMORY): Likewise.
6223         (EXPAND_BUILTIN_SAVEREGS): Likewise.
6224
6225 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
6226
6227         * config/arm/arm.c (TARGET_SETUP_INCOMING_VARARGS): New.
6228         (arm_setup_incoming_varargs): Likewise.
6229         * config/arm/arm.h (SETUP_INCOMING_VARARGS): Remove.
6230
6231 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
6232
6233         * config/cris/cris.c (TARGET_SETUP_INCOMING_VARARGS): New.
6234         (cris_setup_incoming_varargs): Likewise.
6235         * config/cris/cris.h (SETUP_INCOMING_VARARGS): Remove.
6236
6237 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
6238
6239         * config/ns32k/ns32k.c (TARGET_STRUCT_VALUE_RTX): New.
6240         (ns32k_struct_value_rtx): Likewise.
6241         * config/ns32k/ns32k.h (STRUCT_VALUE_REGNUM): Rename to
6242         NS32K_STRUCT_VALUE_REGNUM.
6243
6244 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
6245
6246         * config/arm/arm.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
6247         (TARGET_PROMOTE_PROTOTYPES): Likewise.
6248         (TARGET_STRUCT_VALUE_RTX): Likewise.
6249         (arm_struct_value_rtx): Likewise.
6250         * config/arm/arm.h (PROMOTE_FUNCTION_ARGS): Remove.
6251         (STRUCT_VALUE): Likewise.
6252         (STRUCT_VALUE_REGNUM): Likewise.
6253         (PROMOTE_PROTOTYPES): Likewise.
6254
6255 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
6256
6257         * config/ia64/ia64-protos.h: Remove the prototype for
6258         ia64_setup_incoming_varargs and ia64_return_in_memory.
6259         * config/ia64/ia64.c (TARGET_STRUCT_VALUE_RTX): New.
6260         (TARGET_RETURN_IN_MEMORY): Likewise.
6261         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
6262         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
6263         (ia64_setup_incoming_varargs): Adjust the arguments to meet
6264         the requirement of TARGET_SETUP_INCOMING_VARARGS.
6265         (ia64_return_in_memory): Make it static.  Change the return
6266         type to bool from int.  Add an argument.
6267         (ia64_struct_value_rtx): New.
6268         * config/ia64/ia64.h: Remove commented-out definitions of
6269         PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN, and
6270         PROMOTE_PROTOTYPES.
6271         (RETURN_IN_MEMORY): Remove.
6272         (STRUCT_VALUE_REGNUM): Likewise.
6273         (STRICT_ARGUMENT_NAMING): Likewise.
6274
6275 2004-01-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
6276
6277         PR target/13666
6278         * config/sparc/sparc.c (function_arg_union_value): New function.
6279         (function_arg): Use it to deal with unions.
6280         (function_value): Likewise.  Define 'regbase' only for ARCH64.
6281         Replace a conditional statement by a simpler one.
6282
6283 2004-01-26  Richard Sandiford  <rsandifo@redhat.com>
6284
6285         * config/mips/mips.c (mips16_optimize_gp): Delete.
6286         (mips_reorg): Don't call it.
6287
6288 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
6289
6290         * config/c4x/c4x.md (addqi3_noclobber): Move up pecking order.
6291         (floatunsqihf2): Remove operand 6.
6292         (fixhfqi_set, fix_trunchfqi2, fixuns_trunchfqi2): Group with other
6293         fix patterns.
6294         (ldi_conditional, ldf_conditional): Validate operands.
6295
6296 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
6297
6298         * config/c4x/c4x.h (BCT_CHECK_LOOP_ITERATIONS): Remove.
6299         (HAVE_GAS_HIDDEN): Undefine as interim measure.
6300
6301 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
6302
6303         * config/c4x/c4x.c (c4x_legitimate_address_p):  Invalidate direct
6304         memory references if TARGET_EXPOSE_LDP nonzero.
6305
6306 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
6307
6308         * config/c4x/c4x.c (legitimize_operands): Truncate invalid shift counts.
6309
6310 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
6311
6312         * config/c4x/c4x.c (c4x_valid_operands): More aggressively reject
6313         invalid operand combinations.
6314
6315 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
6316
6317         * config/c4x/c4x.c (c4x_check_legit_addr): Rename to
6318         c4x_legitimate_address_p.  Fix post_modify check.
6319
6320         * config/c4x/c4x-protos.h (c4x_check_legit_addr): Adjust.
6321         * config/c4x/c4x.h (c4x_check_legit_addr): Adjust.
6322
6323 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
6324
6325         * config/pa/pa-protos.h: Remove the prototype for
6326         hppa_builtin_saveregs.  Add a prototype for
6327         pa_return_in_memory.
6328         * config/pa/pa.c (TARGET_PROMOTE_FUNCTION_RETURN): New.
6329         (TARGET_PROMOTE_PROTOTYPES): Likewise.
6330         (TARGET_STRUCT_VALUE_RTX): Likewise.
6331         (TARGET_RETURN_IN_MEMORY): Likewise.
6332         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
6333         (pa_struct_value_rtx): Likewise.
6334         (pa_return_in_memory): Likewise.
6335         * config/pa/pa.h (STRUCT_VALUE_REGNUM): Rename to
6336         PA_STRUCT_VALUE_REGNUM.
6337         (INIT_CUMULATIVE_ARGS): Use pa_return_in_memory.
6338         (EXPAND_BUILTIN_SAVEREGS): Remove.
6339         (PROMOTE_PROTOTYPES): Likewise.
6340         (PROMOTE_FUNCTION_RETURN): Likewise.
6341
6342 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
6343
6344         * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): New.
6345         (TARGET_STRUCT_VALUE_RTX): Likewise.
6346         (vax_struct_value_rtx): Likewise.
6347         * config/vax/vax.h (STRUCT_VALUE_REGNUM): Rename to
6348         VAX_STRUCT_VALUE_REGNUM.
6349         (PROMOTE_PROTOTYPES): Remove.
6350
6351 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
6352
6353         * config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS):  Handle symref.
6354
6355 2003-04-25  Chris Demetriou  <cgd@broadcom.com>
6356
6357         * config/mips/mips.h (ISA_HAS_HILO_INTERLOCKS): MIPS32, MIPS32r2,
6358         and MIPS64 have HI/LO interlocks.  Update comment.
6359
6360 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
6361
6362         * config/stormy16/stormy16-protos.h: Remove the prototype for
6363         xstormy16_setup_incoming_varargs.
6364         * config/stormy16/stormy16.c
6365         (xstormy16_setup_incoming_varargs): Remove.
6366         (xstormy16_return_in_memory): New.
6367         (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
6368         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
6369         (TARGET_PROMOTE_PROTOTYPES): Likewise.
6370         (TARGET_STRUCT_VALUE_RTX): Likewise.
6371         (TARGET_RETURN_IN_MEMORY): Likewise.
6372         * config/stormy16/stormy16.h (PROMOTE_FUNCTION_ARGS): Remove.
6373         (PROMOTE_FUNCTION_RETURN): Likewise
6374         (PROMOTE_PROTOTYPES): Likewise
6375         (RETURN_IN_MEMORY): Likewise
6376         (STRUCT_VALUE): Likewise
6377         (SETUP_INCOMING_VARARGS): Likewise
6378
6379 2004-01-25  Richard Sandiford  <rsandifo@redhat.com>
6380
6381         * config/mips/mips.c (mips_offset_within_object_p): New function.
6382         (mips_symbolic_constant_p): Use it in the SYMBOL_SMALL_DATA and
6383         SYMBOL_CONSTANT_POOL cases.  Also use it for SYMBOL_GENERAL if the
6384         ABI has 64-bit pointers and the object file only allows 32-bit symbols.
6385
6386 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
6387
6388         * config/sh/sh.h (PROMOTE_FUNCTION_ARGS): Remove.
6389         (PROMOTE_FUNCTION_RETURN): Likewise.
6390
6391 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
6392
6393         * config/mn10300/mn10300-protos.h: Remove the prototype for
6394         mn10300_builtin_saveregs.
6395         * config/mn10300/mn10300.c (TARGET_PROMOTE_PROTOTYPES): New.
6396         (TARGET_STRUCT_VALUE_RTX): Likewise.
6397         (TARGET_RETURN_IN_MEMORY): Likewise.
6398         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
6399         (mn10300_return_in_memory): Likewise.
6400         (mn10300_builtin_saveregs): Make it static.
6401         * config/mn10300/mn10300.h (PROMOTE_PROTOTYPES): Remove.
6402         (RETURN_IN_MEMORY): Likewise.
6403         (STRUCT_VALUE): Likewise.
6404         (EXPAND_BUILTIN_SAVEREGS): Likewise.
6405
6406 2004-01-25  Eric Botcazou  <ebotcazou@act-europe.fr>
6407
6408         PR bootstrap/13853
6409         * cfgcleanup.c (try_optimize_cfg): Explicitly test against 0.
6410
6411 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
6412
6413         * config/h8300/lib1funcs.asm (divnorm, modnorm): Optimize by
6414         using ccr.
6415
6416 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
6417
6418         * config/i860/i860-protos.h: Remove the prototype for
6419         i860_saveregs.
6420         * config/i860/i860.c (i860_saveregs): Make it static.
6421         (i860_struct_value_rtx): New.
6422         (TARGET_STRUCT_VALUE_RTX): Likewise.
6423         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
6424         * config/i860/i860.h (STRUCT_VALUE_REGNUM): Rename to
6425         I860_STRUCT_VALUE_REGNUM.
6426         (EXPAND_BUILTIN_SAVEREGS): Remove.
6427
6428 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
6429
6430         * config/m68hc11/m68hc11.c (TARGET_STRUCT_VALUE_RTX): New.
6431         (TARGET_RETURN_IN_MEMORY): Likewise.
6432         (m68hc11_struct_value_rtx): Likewise.
6433         (m68hc11_return_in_memory): Likewise.
6434         * config/m68hc11/m68hc11.h: Remove a commented-out definition
6435         of PROMOTE_PROTOTYPES.
6436         (RETURN_IN_MEMORY): Remove.
6437         (STRUCT_VALUE_REGNUM): Likewise.
6438
6439 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
6440
6441         * config/mmix/mmix-protos.h: Remove the prototype for
6442         mmix_setup_incoming_varargs.
6443         * config/mmix/mmix.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
6444         (TARGET_STRUCT_VALUE_RTX): Likewise.
6445         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
6446         (mmix_setup_incoming_varargs): Make it static.
6447         (mmix_struct_value_rtx): New.
6448         * config/mmix/mmix.h (PROMOTE_FUNCTION_ARGS): Remove.
6449         Remove a commented-out definition of PROMOTE_FUNCTION_RETURN.
6450         (STRUCT_VALUE_REGNUM): Remove.
6451         (SETUP_INCOMING_VARARGS): Likewise.
6452
6453 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
6454
6455         * config/mips/mips-protos.h: Remove the prototypes for
6456         mips_setup_incoming_varargs and mips_return_in_memory.
6457         * config/mips/mips.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
6458         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
6459         (TARGET_PROMOTE_PROTOTYPES): Likewise.
6460         (TARGET_STRUCT_VALUE_RTX): Likewise.
6461         (TARGET_RETURN_IN_MEMORY): Likewise.
6462         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
6463         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
6464         (mips_setup_incoming_varargs): Match the prototype for
6465         TARGET_SETUP_INCOMING_VARARGS.
6466         (mips_return_in_memory): Make it static.  Add argument fntype.
6467         (mips_strict_argument_naming): New.
6468         * config/mips/mips.h (PROMOTE_PROTOTYPES): Remove.
6469         (PROMOTE_FUNCTION_ARGS): Likewise.
6470         (PROMOTE_FUNCTION_RETURN): Likewise.
6471         (STRUCT_VALUE): Likewise.
6472         (RETURN_IN_MEMORY): Likewise.
6473         (SETUP_INCOMING_VARARGS): Likewise.
6474         (STRICT_ARGUMENT_NAMING): Likewise.
6475
6476 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
6477
6478         * config/ip2k/ip2k.c (TARGET_STRUCT_VALUE_RTX): New.
6479         (TARGET_RETURN_IN_MEMORY): Likewise.
6480         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
6481         (ip2k_return_in_memory): Likewise.
6482         (ip2k_setup_incoming_varargs): Likewise.
6483         * config/ip2k/ip2k.h (RETURN_IN_MEMORY): Remove.
6484         (STRUCT_VALUE): Likewise.
6485         (STRUCT_VALUE_INCOMING): Likewise.
6486         (SETUP_INCOMING_VARARGS): Likewise.
6487
6488 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
6489
6490         * config/avr/avr.c (TARGET_STRUCT_VALUE_RTX): New.
6491         (TARGET_RETURN_IN_MEMORY): Likewise.
6492         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
6493         (avr_return_in_memory): Remove.
6494         * config/avr/avr.h (RETURN_IN_MEMORY): Remove.
6495         (STRUCT_VALUE): Likewise.
6496         (STRUCT_VALUE_INCOMING): Likewise.
6497         (STRICT_ARGUMENT_NAMING): Likewise.
6498
6499 2004-01-25  Jan Hubicka  <jh@suse.cz>
6500
6501         * combine.c (recog_for_combine): Avoid allocating unnecesary RTX.
6502
6503 2004-01-25  Richard Sandiford  <rsandifo@redhat.com>
6504
6505         * config/mips/mips-protos.h (mips_reg_mode_ok_for_base_p): Delete.
6506         (mips_regno_mode_ok_for_base_p): Declare.
6507         * config/mips/mips.h (ARG_POINTER_REGNUM): Renumber to 77.
6508         (FRAME_POINTER_REGNUM): Renumber to 78.
6509         (FIRST_PSEUDO_REGISTER): Update comment accordingly.
6510         (BASE_REG_P, GP_REG_OR_PSEUDO_STRICT_P): Delete.
6511         (GP_REG_OR_PSEUDO_NONSTRICT_P): Delete.
6512         (REGNO_MODE_OK_FOR_BASE_P): Use mips_regno_mode_ok_for_base_p.
6513         (REG_MODE_OK_FOR_BASE_P): Likewise.
6514         * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Change
6515         entry for 77 to "$arg" and entry for 78 to "$frame".
6516         (mips_regno_to_class): Map 77 and 78 to ALL_REGS.
6517         (mips_reg_mode_ok_for_base_p): Remove.
6518         (mips_regno_mode_ok_for_base_p): New function, derived from old
6519         BASE_REG_P macro.  Don't enforce the mips16 stack pointer
6520         restrictions unless we're being strict.
6521         (mips_valid_base_register_p): Use mips_regno_mode_ok_for_base_p.
6522
6523 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
6524
6525         * c-common.h: Fix comment typos.
6526         * c-decl.c: Likewise.
6527         * cgraphunit.c: Likewise.
6528         * combine.c: Likewise.
6529         * et-forest.c: Likewise.
6530         * flow.c: Likewise.
6531         * function.c: Likewise.
6532         * ifcvt.c: Likewise.
6533         * integrate.c: Likewise.
6534         * jump.c: Likewise.
6535         * postreload.c: Likewise.
6536         * varray.c: Likewise.
6537
6538 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
6539
6540         * doc/frontends.texi: Update copyright.
6541         * doc/gcov.texi: Likewise.
6542         * doc/gty.texi: Likewise.
6543         * doc/sourcebuild.texi: Likewise.
6544         * doc/standards.texi: Likewise.
6545
6546 2004-01-24  Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
6547
6548         PR target/12978
6549         * c4x.md: (movstrqi*) Use match_scratch instead of match_dup.
6550         Remove movstrqi_small because it conflicts with movstrqi_large.
6551
6552 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
6553
6554         * config/cris/cris.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
6555         (TARGET_STRUCT_VALUE_RTX): Likewise.
6556         (cris_struct_value_rtx): Likewise.
6557         * config/cris/cris.h (PROMOTE_FUNCTION_ARGS): Remove.
6558         (CRIS_STACKADJ_REG): Use CRIS_STRUCT_VALUE_REGNUM instead of
6559         STRUCT_VALUE_REGNUM.
6560         (STRUCT_VALUE_REGNUM): Rename to CRIS_STRUCT_VALUE_REGNUM.
6561
6562 2004-01-24  Ian Lance Taylor  <ian@wasabisystems.com>
6563
6564         PR bootstrap/13848
6565         * cse.c (cse_cc_succs): Change the mode of the source expression
6566         as soon as decide we need a new mode.  Don't permit changing modes
6567         if we found a match in a successor block.
6568         (cse_condition_code_reg): Save original mode of source expression
6569         so that we know whether we have to change the mode in other
6570         insns.
6571
6572 2004-01-24  Jan Hubicka  <jh@suse.cz>
6573
6574         * emit-rtl.c (change_address, adjust_address_1, offset_address,
6575         widen_memory_access):  Return early when there is nothing to change.
6576
6577 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
6578
6579         * simplify-rtx.c (simplify_relational_operation): Don't
6580         simplify address == constant into address + -constant == 0.
6581
6582 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
6583
6584         * gcc.c (process_command): Don't internationalize the
6585         Copyright message.
6586         * mips-tfile.c (main): Likewise.
6587
6588 2004-01-24  Andreas Tobler  <a.tobler@schweiz.ch>
6589
6590         * cse.c: (cse_cc_succs) Fix comparison warning.
6591
6592 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
6593
6594         * config/h8300/h8300.md: Remove extraneous USE in expanders.
6595
6596 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
6597
6598         * config/h8300/h8300-protos.h: Provide prototypes for
6599         h8300_legitimate_constant_p and h8300_legitimate_address_p.
6600         * config/h8300/h8300.c (h8300_legitimate_constant_p): New.
6601         (h8300_rtx_ok_for_base_p): Likewise.
6602         (h8300_legitimate_address_p): Likewise.
6603         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Use
6604         h8300_legitimate_constant_p.
6605         (RTX_OK_FOR_BASE_P): Remove.
6606         (GO_IF_LEGITIMATE_ADDRESS): Use h8300_legitimate_address_p.
6607
6608 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
6609
6610         * config/h8300/h8300.h (REG_OK_FOR_INDEX_NONSTRICT_P): New.
6611         (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
6612         (REG_OK_FOR_INDEX_STRICT_P): Likewise.
6613         (REG_OK_FOR_BASE_STRICT_P): Likewise.
6614         (REG_OK_FOR_INDEX_STRICT_P): Use REGNO_OK_FOR_INDEX_P.
6615         (REG_OK_FOR_BASE_STRICT_P): Use REGNO_OK_FOR_BASE_P.
6616         (REG_OK_FOR_INDEX_P): Use REG_OK_FOR_INDEX_STRICT_P.
6617         (REG_OK_FOR_BASE_P): Use REG_OK_FOR_BASE_STRICT_P.
6618
6619 2004-01-24  Jan Hubicka  <jh@suse.cz>
6620
6621         * cselib.c (remove_useless_values):  Do not access discarded values.
6622
6623 2004-01-24  Joseph S. Myers  <jsm@polyomino.org.uk>
6624
6625         * c-typeck.c (build_conditional_expr): Do not allow non-lvalue
6626         arrays.
6627
6628 2004-01-23  Kazu Hirata  <kazu@cs.umass.edu>
6629
6630         * recog.c: Fix a typo in copyright.
6631
6632 2004-01-23  Andrew Pinski  <apinski@apple.com>
6633
6634         * config/rs6000/rs6000.md (call): Fix misappiled patch.
6635         (call_value): Likewise.
6636
6637 2004-01-23  Richard Henderson  <rth@redhat.com>
6638
6639         PR opt/12941
6640         * combine.c (SHIFT_COUNT_TRUNCATED): Provide default value.
6641         (simplify_comparison): Don't simplify (eq (zero_extract c 1 r) 0)
6642         if SHIFT_COUNT_TRUNCATED is set.
6643
6644 2004-01-23  Bob Wilson  <bob.wilson@acm.org>
6645
6646         * config/xtensa/xtensa.c (xtensa_va_arg): Handle complex values as
6647         separate real and imaginary parts.
6648         * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Define.
6649
6650 2004-01-23  Hartmut Penner <hpenner@de.ibm.com>
6651
6652         PR target/13674
6653         * config/rs6000/rs6000.md (movdf_hardfloat64): Do not disparage
6654         loading into GPR.
6655
6656 2004-01-23  Jan Hubicka  <jh@suse.cz>
6657
6658         * emit-rtl.c (change_address_1):  Do not re-generate the RTX if nothing
6659         change.
6660
6661         * alloc-pool.c (align_four): Kill.
6662         (create_alloc_pool): Align size to eight.
6663         (free_alloc_pool, free_pool): Invalidate deallocated data.
6664
6665 2004-01-23  Ian Lance Taylor  <ian@wasabisystems.com>
6666
6667         PR gcc/1532
6668         * cse.c (cse_change_cc_mode): New static function.
6669         (cse_change_cc_mode_insns, cse_cc_succs): Likewise.
6670         (cse_condition_code_reg): New function.
6671         * rtl.h (cse_condition_code_reg): Declare.
6672         * toplev.c (rest_of_handle_cse2): Call cse_condition_code_reg.
6673         * target.h (struct gcc_target): Add fixed_condition_code_regs and
6674         cc_modes_compatible.
6675         * target-def.h (TARGET_FIXED_CONDITION_CODE_REGS): Define.
6676         (TARGET_CC_MODES_COMPATIBLE): Define.
6677         (TARGET_INITIALIZER): Add new initializers.
6678         * targhooks.c (default_cc_modes_compatible): New function.
6679         * targhooks.c (default_cc_modes_compatible): Declare.
6680         * hooks.c (hook_bool_intp_intp_false): New function.
6681         * hooks.h (hook_bool_intp_intp_false): Declare.
6682         * config/i386/i386.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
6683         (TARGET_CC_MODES_COMPATIBLE): Define.
6684         (ix86_fixed_condition_code_regs): New static function.
6685         (ix86_cc_modes_compatible): Likewise.
6686         * doc/tm.texi (Condition Code): Document new hooks.
6687
6688 2004-01-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6689
6690         * fixinc/inclhack.def (bad_lval): Renamed to ...
6691         (alpha_bad_lval): ... this.
6692         Removed file list.
6693         Restrict to alpha*-dec-osf*.
6694         * fixinc/fixincl.x: Regenerate.
6695         * fixinc/tests/base/dirent.h: Remove, moving test ...
6696         * fixinc/tests/base/testing.h: ... here, reflecting new name.
6697
6698 2004-01-23  Zack Weinberg  <zack@codesourcery.com>
6699
6700         PR c/13814
6701         * c-decl.c (diagnose_mismatched_decls): Also discard a
6702         built-in if we encounter an old-style definition with the
6703         same name.
6704
6705 2004-01-23  Jakub Jelinek  <jakub@redhat.com>
6706
6707         * config.gcc (powerpc*-*): Clear $with_cpu or $with_tune if it was
6708         set to default{32,64}.
6709
6710 2004-01-21  Jakub Jelinek  <jakub@redhat.com>
6711
6712         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR)
6713         [!__powerpc64__]: Corrected to handle kernels with changed ucontext.
6714
6715 2004-01-23  Eric Botcazou  <ebotcazou@act-europe.fr>
6716             Olivier Hainque  <hainque@act-europe.fr>
6717
6718         * fold-const.c (fold_binary_op_with_conditional_arg): Only
6719         build a COMPOUND_EXPR if 'arg' is really a SAVE_EXPR.
6720
6721 2004-01-23  Daniel Jacobowitz  <drow@mvista.com>
6722
6723         * config/arm/arm.c (arm_legitimate_address_p): Don't check the mode
6724         size for minipool references.
6725
6726 2004-01-23  Roger Sayle  <roger@eyesopen.com>
6727
6728         * real.c (real_floor, real_ceil): Tweak to allow input and output
6729         arguments to overlap.
6730         (real_round): New function to implement round(3m) semantics.
6731         * real.h (real_round): Prototype here.
6732         * builtins.c (fold_builtin_round): New function to constant fold
6733         round, roundf and roundl.
6734         (fold_builtin): Call fold_builtin_round for BUILT_IN_ROUND{,F,L}.
6735
6736 2004-01-23  Alexandre Oliva  <aoliva@redhat.com>
6737
6738         PR optimization/13819
6739         * config/sh/sh.c (sh_reorg): Compensate for sharing of CLOBBERs
6740         introduced by 2004-01-20's Jan Hubicka's copy_insn change.
6741         (sh_handle_sp_switch_attribute): Remove warning.
6742
6743 2003-11-30  Jan Hubicka  <jh@suse.cz>
6744
6745         * i386.c (ix86_emit_restore_regs_using_mov):  Deal with large offsets.
6746
6747 2004-01-23  J"orn Rennecke <joern.rennecke@superh.com>
6748
6749         * doc/tm.texi: Insert some weasel words when LOAD_EXTEND_OP
6750         may or may not return non-NIL.
6751         * postreload.c (reload_cse_simplify_operands): In LOAD_EXTEND_OP code,
6752         check CANNOT_CHANGE_MODE_CLASS
6753
6754 2004-01-23  Jan Hubicka  <jh@suse.cz>
6755
6756         * basic-block.h (PROP_POSTRELOAD): New macro.
6757         (CLEANUP_LOG_LINKS): New.
6758         * cfgcleanup.c (cleanup_cfg): Only PROP_LOG_LINKS when asked to.
6759         * toplev.c (rest_of_handle_life):  Preserve LOG_LINKS trought cleanup_cfg.
6760
6761         * cselib.c (value_pool): New.
6762         (new_cselib_val): Use pool.
6763         (cselib_init): Initialize value_pool
6764         (cselib_finish): Free pool.
6765
6766 2004-01-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
6767
6768         * config/sparc/sparc.c (scan_record_type): New function.
6769         (function_arg_slotno): Use it to determine which kinds of
6770         registers the record can be passed in.
6771
6772 2004-01-22  James A. Mmorrison  <ja2morri@uwaterloo.ca>
6773
6774         * config/pa/fptr.c: Fix old-style definition.
6775
6776 2004-01-22  Paolo Bonzini  <bonzini@gnu.org>
6777
6778         PR optimization/13724
6779         * cse.c (fold_rtx) <SUBREG>:  Fold a SUBREG to zero if it
6780         represents the zero bits produced by a ZERO_EXTEND operation.
6781
6782 2004-01-22  Roger Sayle  <roger@eyesopen.com>
6783
6784         PR optimization/13821
6785         * simplify-rtx.c (simplify_subreg): Use subreg_lowpart_offset to
6786         correctly calculate the lowpart offset of the contracted subreg.
6787
6788 2004-01-22  Ian Lance Taylor  <ian@wasabisystems.com>
6789
6790         * doc/invoke.texi (Optimize Options): Note that --param arguments
6791         are subject to change without notice.
6792
6793 2004-01-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6794
6795         * config.gcc (mips-sgi-irix6*o32): Removed.
6796         * config/mips/iris6-o32-as.h: Likewise.
6797         * config/mips/iris6-o32-gas.h: Likewise.
6798         * config/mips/iris6-o32.h: Likewise.
6799
6800 2004-01-22  Jan Hubicka  <jh@suse.cz>
6801
6802         * cfgcleanup.c (first_pass): New static variable.
6803         (try_forward_edges):  Add work limiting check for threading.
6804         (try_crossjump_bb):  Add work limiting check for crossjumping.
6805         (try_optimize_cfg):  Maintain first pass variable.
6806
6807 2004-01-22  Bob Wilson  <bob.wilson@acm.org>
6808
6809         * config/xtensa/xtensa.c (function_arg): Generalize logic so that it
6810         handles complex and vector modes.
6811
6812 2004-01-22  Kazu Hirata  <kazu@cs.umass.edu>
6813
6814         * config/h8300/h8300.h (REG_OK_FOR_INDEX_P_STRICT): Remove.
6815         (REG_OK_FOR_BASE_P_STRICT): Likewise.
6816         (STRICT): Likewise.
6817
6818 2004-01-22  Daniel Jacobowitz  <drow@mvista.com>
6819
6820         * c-semantics.c (genrtl_while_stmt, genrtl_do_stmt_1)
6821         (genrtl_for_stmt): Remove emit_nop calls.
6822
6823 2004-01-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6824
6825         PR target/13713
6826         PR target/13324
6827         * pa.md (movstrsi_prereload, movstrsi_postreload, movstrdi_prereload,
6828         movstrdi_postreload, clrstrsi_prereload, clrstrsi_postreload,
6829         clrstrdi_prereload, clrstrdi_postreload): Fix constraints.
6830
6831 2004-01-22  Daniel Jacobowitz  <drow@mvista.com>
6832
6833         * config/arm/arm.c: Include "debug.h".
6834         (thumb_pushpop): Take two new arguments.  Add some commentary.
6835         Output frame information when pushing.
6836         (thumb_exit, thumb_unexpanded_epilogue): Update calls to
6837         thumb_pushpop.
6838         (thumb_output_function_prologue): Likewise.  Accumulate a CFA
6839         offset, and pass it to thumb_pushpop.  Output CFI information.
6840         (thumb_expand_prologue): Add some frame-related markers and notes.
6841
6842 2004-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
6843
6844         * config/s390/s390.c (s390_frame_info): Allow large frame sizes
6845         for TARGET_64BIT.
6846         (s390_arg_frame_offset): Change return type to HOST_WIDE_INT.
6847         * config/s390/s390-protos.h (s390_arg_frame_offset): Likewise.
6848
6849 2004-01-22  Roger Sayle  <roger@eyesopen.com>
6850             Paolo Bonzini  <bonzini@gnu.org>
6851
6852         * rtlanal.c (subreg_lsb_1): New function split out from subreg_lsb.
6853         (subreg_lsb): Change to call new subreg_lsb_1 helper function.
6854         * rtl.h (subreg_lsb_1): Prototype here.
6855         * simplify-rtx.c (simplify_subreg): Optimize subregs of zero and
6856         sign extensions.
6857
6858 2004-01-22  Kazu Hirata  <kazu@cs.umass.edu>
6859
6860         * doc/tm.texi (CASE_VECTOR_PC_RELATIVE): Mention that the
6861         macro need not be defined if jump-tables should contain
6862         relative addresses only when -fPIC or -fPIC is in effect.
6863
6864 2004-01-22  Jan Hubicka  <jh@suse.cz>
6865
6866         * alias.c (reg_base_value): Turn into varray.
6867         (reg_base_value_size): Kill.
6868         (old_reg_base_value): New deletable varray.
6869         (alias_invariant_size): New variable.
6870         (REG_BASE_VALUE): Update to use varray.
6871         (find_base_value): Likewise.
6872         (record_set): Likewise.
6873         (record_base_value): Likewise.
6874         (memrefs_conflict_p): Likewise.
6875         (record_set): Likewise
6876         (record_base_value): Likewise.
6877         (memrefs_conflict_p): Use alias_invariant_size.
6878         (init_alias_analysis): Use varray; set alias_invariant_size;
6879         rescale other arrays to be sized by maxreg.
6880         (end_alias_analysis): Save reg_base_value; clear alias_invariant_size.
6881
6882 2004-01-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
6883
6884         * config/sparc/sparc.c (function_arg_slotno): Use
6885         FLOAT_TYPE_P to detect FP fields in structures.
6886         (function_arg_record_value_1): Likewise.
6887         (function_arg_record_value_2): Likewise.
6888
6889 2004-01-22  Jan Hubicka  <jh@suse.cz>
6890
6891         * function.c (allocate_struct_function): Do not initialize expr, emit
6892         and varasm.
6893         (prepare_function_start): Do it here.
6894         * c-parse.in (maybe_type_qual): Do not produce line number notes.
6895
6896 2004-01-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
6897
6898         PR target/13559
6899         * config/sparc/sparc.c (function_arg_record_value_3): Revert
6900         to 'word_mode' once the first slot has been filled.
6901
6902 2004-01-22  Olivier Hainque  <hainque@act-europe.fr>
6903
6904         * config/sparc/sparc.c (function_arg_record_value_1): Fix
6905         computation of the number of integer registers required.
6906
6907 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
6908
6909         * config/i386/i386.md: Simplify certain comparisons of
6910         const_int.
6911
6912 2004-01-21  Andrew Pinski  <apinski@apple.com>
6913
6914         PR target/13785
6915         * config/rs6000/rs6000.md (call_value): Force operand
6916         1 not operand 0 into a register.
6917
6918 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
6919
6920         * cpperror.c, cpptrad.c, longlong.h, params.def, rtl.def,
6921         unwind-dw2-fde.h: Update copyright.
6922
6923 2004-01-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6924
6925         * pa-protos.h: Update copyright.
6926         * pa.h: Likewise.
6927         * pa.md: Likewise.
6928
6929 2004-01-21  Caroline Tice  <ctice@apple.com>
6930
6931         PR target/12308
6932         * config/i386/i386.md (fix_truncxfdi2): Add clause to clobber
6933         flags register.
6934         (fix_truncdfdi2): Likewise.
6935         (fix_truncsfdi2): Likewise.
6936         (*fix_truncdi_1): Likewise.
6937         (fix_truncxfsi2): Likewise.
6938         (fix_truncdfsi2): Likewise.
6939         (fix_truncsfsi2): Likewise.
6940         (*fix_truncsi_1): Likewise.
6941         (fix_truncxfhi2): Likewise.
6942         (fix_truncdfhi2): Likewise.
6943         (fix_truncsfhi2): Likewise.
6944         (*fix_trunchi_1): Likewise.
6945
6946 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
6947
6948         * alias.c, basic-block.h, c-common.c, c-common.h,
6949         c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c,
6950         calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c,
6951         combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c,
6952         cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h,
6953         defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c,
6954         expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c,
6955         genautomata.c, genconditions.c, genemit.c, genflags.c,
6956         gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c,
6957         ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c,
6958         langhooks-def.h, langhooks.c, langhooks.h, line-map.c,
6959         line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c,
6960         ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c,
6961         rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h,
6962         target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h,
6963         unwind.h, varray.c, varray.h: Update copyright.
6964
6965 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
6966
6967         * config/h8300/coff.h: Update copyright.
6968         * config/h8300/elf.h: Likewise.
6969         * config/h8300/h8300-protos.h: Likewise.
6970         * config/h8300/h8300.c: Likewise.
6971         * config/h8300/h8300.h: Likewise.
6972         * config/h8300/h8300.md: Likewise.
6973
6974 2004-01-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6975
6976         * fixinc/inclhack.def (hpux10_stdio_declarations, ultrix_const3,
6977         ultrix_locale, ultrix_stdlib, ultrix_strings, ultrix_sys_time,
6978         ultrix_unistd): New hacks.
6979         * fixinc/tests/base/stdio.h (HPUX10_STDIO_DECLARATIONS_CHECK,
6980         ULTRIX_CONST2_CHECK): Add checks.
6981         * fixinc/tests/base/stdlib.h (ULTRIX_STDLIB_CHECK): Likewise.
6982         * fixinc/tests/base/strings.h (ULTRIX_STRINGS2_CHECK): Likewise.
6983         * fixinc/tests/base/unistd.h (ULTRIX_UNISTD_CHECK): Likewise.
6984         * fixinc/tests/base/sys/time.h (ULTRIX_SYS_TIME_CHECK): Likewise.
6985         * fixinc/tests/base/locale.h: New file.
6986         * fixinc/fixincl.x: Rebuilt.
6987
6988 2004-01-21  Andreas Jaeger  <aj@suse.de>
6989             Michael Matz  <matz@suse.de>
6990
6991         * doc/extend.texi (Extended Asm): Clarify memory clobber.
6992
6993 2004-01-21  Jakub Jelinek  <jakub@redhat.com>
6994
6995         * crtstuff.c (frame_dummy, __do_global_ctors_1): Call
6996         _Jv_RegisterClasses through a function pointer.
6997
6998 2004-01-21  Falk Hueffner  <falk@debian.org>
6999
7000         PR target/12898
7001         * config/alpha/alpha.c (alpha_emit_set_const_1): If
7002         no_new_pseudos, use gen_rtx_SET directly for SImode constants
7003         which need multiple instructions to emit.
7004
7005 2004-01-21  Inaoka Kazuhiro  <inaoka.kazuhiro@renesas.com>
7006
7007         * config/m32r/m32r.h (CPP_SPEC): Define.
7008
7009 2004-01-21  Zack Weinberg  <zack@codesourcery.com>
7010
7011         * c-decl.c (merge_decls): Kill different_binding_level and
7012         different_tu arguments; simplify throughout.
7013         (duplicate_decls): Likewise.
7014         (pushdecl, merge_translation_unit_decls): Update calls to
7015         duplicate_decls.
7016
7017 2004-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7018
7019         * Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and
7020         $(SYSTEM_H).
7021         (print-rtl1.o): Depend on $(SYSTEM_H).
7022
7023 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
7024
7025         PR bootstrap/12730
7026         * configure.ac: Delete definition and subsitution of docdir.
7027         Add info, man, srcman and srcinfo to target hooks. Create doc/
7028         directory.
7029         * configure: Regenerate.
7030         * Makefile.in: Don't substitute docdir and delete all references
7031         throughout.
7032         (MAKEINFOFLAGS): Define.
7033         (stmp-docobjdir): Delete.
7034         (INFOFILES, MANFILES): Define.
7035         (info): Call lang.info, srcinfo and lang.srcinfo.
7036         (generated-manpages): Call lang.man, srcman and lang.srcman.
7037         (srcinfo, srcman): New rules to copy back files to source directory.
7038         (doc/%.info, doc/%.dvi, doc/%.1, doc/%.7): New implict rule.
7039         (install-man): Revamp rule.
7040         (clean): Update dvi directory.
7041         (distclean): Delete TAGS from front end directorys.
7042         (maintainer-clean): Delete all document files in source directory.
7043
7044         objc/Make-lang.in (objc.man, objc.info): Dummy entries.
7045         (objc.srcman, objc.srcinfo): Likewise.
7046
7047 2004-01-20  Bruce Korb  <bkorb@gnu.org>
7048
7049         * fixinc/inclhack.def(math_exception): bypass only for glibc.
7050         (matherr_decl): rename & relocate as exception_structure.
7051         This fix must precede the math_exception fix.
7052
7053 2004-01-20  Roger Sayle  <roger@eyesopen.com>
7054
7055         * fold-const.c (fold_convert): Rename to fold_convert_const.
7056         (fold_convert_const): Change arguments to take a tree_code,
7057         a type and the operand/expression to be converted.  Return
7058         NULL_TREE if no simplification is possible.  Add support for
7059         FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
7060         (fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
7061         Adjust call to fold_convert to match new fold_convert_const.
7062         Avoid modifying the tree passed to fold in-place.
7063
7064 2004-01-21  Alan Modra  <amodra@bigpond.net.au>
7065
7066         * config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
7067         * dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
7068         * doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.
7069
7070 2004-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7071
7072         * pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
7073         * pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
7074         Likewise.  Handle frames larger than 0x7fffffff on 64-bit ports.
7075         (emit_move_sequence): Check scratch_reg first in various if statements.
7076         Extend source simplification to handle all 64-bit CONST_INTs.
7077         (pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
7078         frame size.
7079         (hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
7080         frame offset calculations.
7081         * pa.h (NEW_HP_ASSEMBLER): Add comment.
7082         (MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
7083         LEGITIMATE_64BIT_CONST_INT_P): Define.
7084         (LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P.  Treat
7085         any CONST_INT as legitimate during and after reload.
7086         (VAL_32_BITS_P, INT_32_BITS): Define.
7087         (LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.
7088
7089 2004-01-20  Jan Hubicka  <jh@suse.cz>
7090
7091         * emit-rtl.c (verify_rtx_sharing, copy_insn_1,
7092         emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
7093         containing hard regs are shared.
7094         (gen_hard_reg_clobber): New function.
7095         (hard_reg_clobbers): New array.
7096         * genemit.c (gen_exp): Use gen_hard_reg_clobber.
7097         (copy_rtx): Do not copy clobbers containing hard regs.
7098         * rtl.h (gen_hard_reg_clobber): Declare.
7099
7100 2004-01-20  Jan Hubicka  <jh@suse.cz>
7101
7102         * varray.c:  Include hashtab.h
7103         (varray_descriptor): New structure.
7104         (hash_descriptor, eq_descriptor, varray_descriptor,
7105         print_statistics): New static functions
7106         (varray_init, varray_grow): Update statistics
7107         (dump_varray_statistics): New function.
7108         * varray.h (dump_varray_statistics): Declare.
7109         * toplev.c (finalize): Call it.
7110         * Makefile.in (varray.o): Add dependency.
7111
7112 2004-01-20  Jan Hubicka  <jh@suse.cz>
7113
7114         * cselib.c: Include alloc-pool.h
7115         (empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
7116         (elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
7117         (new_elt_list, new_elt_loc_list, unchain_one_elt_list,
7118         unchain_one_elt_loc_list_pool, unchain_one_value,
7119         new_cselib_val): Simplify using allocpool.
7120         (cselib_init): Initialize allocpools.
7121         (cselib_finish): Finish allocpools.
7122         * Makefile.in (cselib.o): Depend on alloc-pool.h
7123
7124 2004-01-20  Richard Sandiford  <rsandifo@redhat.com>
7125
7126         * config/mips/mips.c (mips_load_call_address): Make the call insn
7127         use $gp if it could be calling a lazy binding stub.
7128
7129 2004-01-20  Kazu Hirata  <kazu@cs.umass.edu>
7130
7131         * config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
7132         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
7133         (TARGET_STRUCT_VALUE_RTX): Likewise.
7134         * config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
7135         (PROMOTE_FUNCTION_RETURN): Remove.
7136         (STRUCT_VALUE): Remove.
7137
7138 2004-01-20  Denis Chertykov  <denisc@overta.ru>
7139
7140         PR bootstrap/13735
7141         * config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
7142         register as pointer after reload.
7143
7144 2004-01-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7145
7146         PR optimization/12440
7147         * loop.c: Include ggc.h.
7148         (loop_optimize): Run garbage collector between optimization of loops.
7149         * Makefile.in (loop.o): Add GGC_H dependency.
7150
7151 2004-01-20  Hartmut Penner  <hpenner@de.ibm.com>
7152
7153         * gcc/config/rs6000/rs6000.c (function_arg) Handle
7154         vector register special in function without prototype.
7155         (function_arg_advance): Vector parameters get always
7156         GPRs allocated for the linux64 target.
7157
7158 2004-01-20  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
7159
7160         * config/m32r/m32r.h (TARGET_M32R2). Test for TARGET_M32R2_MASK
7161         not TARGET_M32RX_MASK.
7162
7163 2004-01-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
7164
7165         PR target/13557
7166         * config/sparc/sparc.c (function_arg): Reorder the cases.
7167
7168 2004-01-19  Per Bothner  <per@bothner.com>
7169
7170         Move cpp_reader's line_maps field to a shared global.
7171         * cpphash.h (cpp_reader):  Rename line_maps field to line_table
7172         and change the type to a pointer rather than a struct.
7173         * cppinit.c (cpp_push_main_field):  Adjust accordingly.
7174         * cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
7175         Likewise.
7176         * cppfiles.c (validate_pch):  Likewise.
7177         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
7178         Likewise.
7179         * cpperror.c (print_location):  Likewise.
7180         * cpplib.h (cpp_create_reader):  New line_maps pointer parameter.
7181         * cppinit.c (cpp_create_reader):  Handle new parameter.
7182         (cpp_destroy):  Don't free line_maps - that's no longer our job.
7183         * input.h (line_table):  New variable.
7184         * toplev.c (line_table):  Declare variable.
7185         (general_init):  Initialize line_table.
7186         * c-opts.c (c_common_init_options):  Pass line_table to
7187         cpp_create_reader.
7188         * fix-header.c (read_scan_file):  New local variable line_table.
7189         Initialize, and pass it to cpp_create_reader.
7190         * Makefile.in (LIBS, LIBDEPS):  Add libcpp.a.
7191         (C_AND_OBJC_OBJS, fix-header):  Remove redundant libcpp.a.
7192
7193 2004-01-19  Per Bothner  <per@bothner.com>
7194
7195         Implement a cache for linemap_lookup.
7196         * line-map.h (struct_line_maps):  Add cache field.
7197         * line-map.c (linemap_init):  Zero cache field.
7198         (linemap_add):  Set cache field to offset of newly allocated map.
7199         (linemap_lookup):  Use and set cache field.
7200
7201 2004-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
7202
7203         PR optimization/13567
7204         * cse.c (cse_basic_block): Call cse_insn with a non-null
7205         libcall_insn for the last SET insn of a no-confilict block.
7206
7207 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
7208
7209         * Makefile.in (target_noncanonical, program_transform_name): Use
7210         immediate define instead of deferred.
7211         (GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
7212         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
7213         GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
7214         deferred backquote.
7215
7216 2004-01-20  Joseph S. Myers  <jsm@polyomino.org.uk>
7217
7218         * c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
7219         true unconditionally.
7220         * c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
7221         Remove.
7222         (build_unary_op, build_modify_expr): Don't handle extended
7223         lvalues.
7224         (build_component_ref, build_conditional_expr): Call non_lvalue
7225         instead of pedantic_non_lvalue.
7226         (build_c_cast): Don't condition use of non_lvalue on pedantic.
7227         * fold-const.c (fold): Don't check pedantic directly for
7228         COMPOUND_EXPR.  Ensure that results for COMPOUND_EXPR are
7229         passed to pedantic_non_lvalue.
7230         * doc/extend.texi: Remove documentation of extended lvalues.
7231
7232 2004-01-19  Roger Sayle  <roger@eyesopen.com>
7233
7234         PR optimization/5263
7235         * simplify-rtx.c (associative_constant_p): Delete.
7236         (simplify_associative_operation): Rewrite to linearize terms, and
7237         attempt to simplify new term against both left and right subterms.
7238         (simplify_binary_operation): Call swap_commutative_operands_p on
7239         op0 and op1, not trueop0 and trueop1.  Move the initialization of
7240         trueop0 and trueop1 down to where first needed.
7241         (simplify_relational_operation): Likewise.
7242         * rtlanal.c (commutative_operand_precedence): Also order constant
7243         operands using avoid_constant_pool_reference.
7244
7245 2004-01-19  Richard Henderson  <rth@redhat.com>
7246
7247         * config/alpha/alpha.c (aligned_memory_operand): Check MEM_ALIGN,
7248         don't check memory mode.
7249         (unaligned_memory_operand): Likewise.
7250         (reload_inqi, reload_inhi, reload_outqi, reload_outhi): Don't
7251         abort for op0 not MEM.
7252
7253         * config/alpha/alpha.c (alpha_expand_mov_nobwx): If the destination
7254         is not a reg, copy to a scratch first.
7255         (aligned_loadqi, aligned_loadhi, unaligned_loadqi, unaligned_loadhi,
7256         unaligned_loadqi_le, unaligned_loadqi_be, unaligned_loadhi_le,
7257         unaligned_loadhi_be): Expect op0 in DImode; don't SUBREG.
7258         (reload_inqi, reload_inhi): Fix mode of op0.
7259         (reload_inqi_help, reload_inhi_help, reload_outqi_help,
7260         reload_outhi_help): Likewise.  Use define_insn_and_split.
7261
7262         * config/alpha/alpha.md (call peepholes): Check for REG_NORETURN
7263         as well as $29 dead.
7264
7265 2004-01-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
7266
7267         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): New.  Emit
7268         "tls_object" for thread-local objects.
7269         * config/sparc/sparc.c (sparc_elf_asm_named_section): Emit
7270         "#tls" for thread-local sections.
7271         * configure.ac (thread-local checks): Specify --fatal-warnings in
7272         every binutils-specific checks.  For sparc*-*-*, test whether the
7273         OS is Solaris and the tools are native and act accordingly.
7274         * configure: Rebuild.
7275
7276 2004-01-19  Jeff Law  <law@redhat.com>
7277
7278         * contrib.texi: Update Paolo Carlini's entry.  New entries for
7279         Jerry Quinn and Petur Runolfsson.
7280
7281 2004-01-19  Roger Sayle  <roger@eyesopen.com>
7282
7283         * config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
7284         size, don't use the larger zero-extending loads.
7285
7286 2004-01-19  Richard Henderson  <rth@redhat.com>
7287
7288         * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
7289         * alpha.md (UNSPEC_NT_LDA): Remove.
7290         (UNSPEC_CVTLQ, cvtlq): New.
7291         (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
7292         (extendsidi2_fix): Remove.
7293         (extendsidi2 splitter): Use cvtlq.
7294         (extendsidi2 fp peepholes): Remove.
7295         (cvtql): Use SFmode instead of SImode.
7296         (fix_trunc?fsi): Update to match.
7297         (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
7298         (movsi): Rename from movsi_nofix, remove f alternatives.
7299         (movsi_nt_vms): Similarly.
7300         (movsi_fix, movsi_nt_vms_fix): Remove.
7301         (nt_lda): Remove.
7302         * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.
7303
7304 2004-01-19  Jan Hubicka  <jh@suse.cz>
7305
7306         * cgraph.c (cgraph_remove_node): Fix removal from linked list.
7307         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
7308         list.
7309         (cgraph_remove_unreachable_nodes): New function
7310         (cgraph_decide_inlining_of_small_function): Fix pasto.
7311         (cgraph_decide_inlining_incrementally): Fix pasto.
7312         (cgrpah_decide_inlining): Likewise; remove unreachable nodes.
7313
7314 2004-01-19  Steven Bosscher  <stevenb@suse.de>
7315
7316         * gengtype.c (header_file): Make it static.
7317         (write_types_process_field, write_enum_defn): Minor whitespace fixes.
7318         * gengtype.h (header_file): No longer extern.
7319
7320 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
7321
7322         * defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
7323         * expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
7324         * stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.
7325
7326 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
7327
7328         * stmt.c (HAVE_casesi): Define it not already defined.
7329         (HAVE_tablejump): Likewise.
7330         (expand_end_case_type): Resort to the binary tree method if
7331         neither casesi or tablejump is available.
7332
7333 2004-01-18  Daniel Jacobowitz  <drow@mvista.com>
7334
7335         * final.c (final_scan_insn): Make non-static again.
7336         * output.h (final_scan_insn): Re-add prototype.
7337         * config/arc/arc.c (arc_output_function_epilogue): Add NULL
7338         to final_scan_insn call.
7339         * config/cris/cris.c (cris_target_asm_function_epilogue): Likewise.
7340         * config/mips/mips.c (mips_output_conditional_branch): Likewise.
7341         * config/pa/pa.c (output_lbranch, output_call): Likewise.
7342         * config/sh/sh.c (print_slot): Likewise.
7343         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Likewise.
7344         (output_sibcall, sparc_flat_function_epilogue): Likewise.
7345
7346 2004-01-18  Jan Hubicka  <jh@suse.cz>
7347
7348         * basic-block.h (try_redirect_by_replacing_jump): Declare.
7349         * cfgcleanup.c (try_optimize_cfg): Use it.
7350         * cfgrtl.c (try_redirect_by_replacing_jump): Export.
7351         (rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
7352         Kill hack.
7353         (cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.
7354
7355         Revert:
7356         2004-01-16  Geoffrey Keating  <geoffk@apple.com>
7357
7358                 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
7359                 even after reload, just don't remove the actual jump tables.
7360
7361 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
7362
7363         * config/rs6000/rs6000.h (STRICT_ARGUMENT_NAMING): Remove.
7364
7365 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
7366
7367         * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of
7368         the size of a pointer in bytes.
7369
7370 2004-01-18  Roger Sayle  <roger@eyesopen.com>
7371
7372         * builtins.c (expand_builtin_expect_jump): Fix thinko of reusing
7373         live "next" variable, which could lead to an infinite loop.
7374
7375 2004-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
7376
7377         * config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
7378         block.
7379
7380         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
7381         Check for NULL in the chain and remove repeated code.
7382
7383 2004-01-18  Jan Hubicka  <jh@suse.cz>
7384
7385         * coverage.c (checksum_string): Rename to ...
7386         (coverage_checksum_string): ... this one, Use crc32_string; recognize
7387         names containing random number and zero the number out in order to get
7388         match.
7389
7390 2004-01-18  Richard Sandiford  <rsandifo@redhat.com>
7391
7392         * config/mips/mips.c (mips_got_alias_set): Mark for PCH.
7393
7394 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
7395
7396         * doc/c-tree.texi, doc/cpp.texi, doc/extend.texi,
7397         doc/frontends.texi, doc/gcov.texi, doc/gty.texi, doc/install.texi,
7398         doc/invoke.texi, doc/libgcc.texi, doc/md.texi, doc/rtl.texi,
7399         doc/sourcebuild.texi, doc/standards.texi, doc/tm.texi,
7400         doc/trouble.texi: Remove trailing whitespace.
7401
7402 2004-01-18  Richard Sandiford  <rsandifo@redhat.com>
7403
7404         PR target/7618
7405         * config/mips/mips.c: Include cfglayout.h.
7406         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
7407         (mips_unspec_offset_high): Add temporary register argument.
7408         (mips_load_call_address): New function, split out from...
7409         (mips_expand_call): ...here.
7410         (mips_output_cplocal): New function.
7411         (mips_output_function_prologue, mips_output_function_epilogue): Use it.
7412         (mips_emit_loadgp): New function, split out from...
7413         (mips_expand_prologue): ...here.
7414         (mips_output_mi_thunk): New function.
7415
7416 2004-01-17  Bernardo Innocenti  <bernie@develer.com>
7417
7418         * longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
7419         mcpu32): Remove redundant checks for implied target predefines.
7420
7421 2004-1-17  Andrew Pinski  <pinskia@physics.uc.edu>
7422
7423         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
7424         Return type is unsigned int not int.
7425         * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
7426         Likewise.
7427
7428 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
7429
7430         * doc/contrib.texi, doc/cppenv.texi, doc/extend.texi,
7431         doc/install.texi, doc/invoke.texi, doc/tm.texi: Consistently use
7432         "GNU/Linux" and "Microsoft Windows" terminology.
7433
7434 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
7435
7436         * doc/c-tree.texi, doc/compat.texi, doc/cpp.texi,
7437         doc/cppopts.texi, doc/extend.texi, doc/install.texi,
7438         doc/interface.texi, doc/invoke.texi, doc/libgcc.texi, doc/md.texi,
7439         doc/objc.texi, doc/rtl.texi, doc/tm.texi, doc/trouble.texi: Use
7440         @smallexample instead of @example.
7441
7442 2004-01-17  Ziemowit Laski  <zlaski@apple.com>
7443
7444         * objc/objc-act.c (build_objc_method_call): Use target
7445         hooks instead of macros to determine if ..._stret
7446         dispatchers should be used (NeXT runtime only).
7447
7448 2004-01-17  Roger Sayle  <roger@eyesopen.com>
7449
7450         * builtins.c (expand_builtin_expect_jump): Fix mistake in my
7451         last patch.  Use XEXP (x, 0) to get a LABEL_REF's CODE_LABEL.
7452
7453 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
7454
7455         * rtl.h (emit_insn_before_sameloc, emit_jump_insn_before_sameloc)
7456         (emit_call_insn_before_sameloc, emit_insn_after_sameloc)
7457         (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): New
7458         macros.
7459         * reload1.c (emit_reload_insns): Use them.
7460         * emit-rtl.c (emit_insn_before_sameloc, emit_insn_after_sameloc)
7461         (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): Check
7462         for NULL PATTERN.
7463
7464 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
7465
7466         * final.c (SEEN_BB, SEEN_NOTE, SEEN_EMITTED): Define.
7467         (final_scan_insn): Update to take an additional SEEN argument.  Emit
7468         a line note after the prologue.  Make static.
7469         (line_note_exists): Remove.
7470         (final): Don't initialize line_note_exists.  Update call to
7471         final_scan_insn.
7472         * output.h (final_scan_insn): Remove prologue.
7473         * function.c (set_insn_locators): Update comment.
7474         (thread_prologue_and_epilogue_insns): Add a comment.
7475
7476 2004-01-17  Andrew Pinski  <pinskia@physics.uc.edu>
7477
7478         PR target/10781
7479         * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
7480         Prototype.
7481         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
7482         New function.
7483         * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
7484         * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
7485         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
7486
7487 2004-01-17  Jan Hubicka  <jh@suse.cz>
7488
7489         * toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
7490         commit.
7491
7492         * toplev.c (HAVE_conditional_execution): Provide default.
7493         (rest_of_handle_reorder_blocks): For conditional_execution target
7494         update liveness once after all transformations
7495         (rest_of_compilation): Do crossjumping before ce3.
7496
7497 2004-01-17  Geoffrey Keating  <geoffk@apple.com>
7498
7499         * alias.c (new_alias_set): Mark last_alias_set for PCH.
7500         (get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
7501         for PCH.
7502         (get_frame_alias_set): Likewise, except rename it to 'frame_set'.
7503         * config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
7504         (get_TOC_alias_set): Mark 'set' for PCH.
7505
7506 2004-01-16  Geoffrey Keating  <geoffk@apple.com>
7507
7508         * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
7509         even after reload, just don't remove the actual jump tables.
7510
7511 2004-01-17  J. Brobecker  <brobecker@gnat.com>
7512
7513         * dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
7514         Remove checks for is_ada() and TREE_UNSIGNED.
7515         (subrange_type_die): Emit a byte_size attribute if the subrange
7516         type size is different from the base type size.
7517         (modified_type_die): Replace call to is_ada_subrange_type() by
7518         call to is_subrange_type().
7519
7520 2004-01-16  Andrew Pinski  <pinskia@physics.uc.edu>
7521
7522         * config/sh/sh.c: Include ggc.h.
7523
7524 2004-01-16  Geoffrey Keating  <geoffk@apple.com>
7525
7526         * Makefile.in (MD5_H): New.
7527         (fold-const.o): Depend on md5.h.
7528         (dwarf2out.o): Likewise.
7529         (cppfiles.o): Likewise.
7530         * cppfiles.c: Include md5.h.
7531         (should_stack_file): Check against list read from PCH file.
7532         (struct pchf_data): New.
7533         (pchf): New variable.
7534         (struct pchf_adder_info): New.
7535         (pchf_adder): New.
7536         (pchf_save_compare): New.
7537         (_cpp_save_file_entries): New.
7538         (_cpp_read_file_entries): New.
7539         (struct pchf_compare_data): New.
7540         (pchf_compare): New.
7541         (check_file_against_entries): New.
7542         * cpphash.h (_cpp_save_file_entries): Prototype.
7543         (_cpp_read_file_entries): Prototype.
7544         * cpppch.c (cpp_write_pch_state): Write the list of headers.
7545         (cpp_read_state): Read the list of headers.
7546
7547 2004-01-17  Jan Hubicka  <jh@suse.cz>
7548
7549         * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
7550         builtin_expect specially.
7551         * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
7552         (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
7553         * invoke.texi (max-inline-insns-single): Set to 100.
7554         (large-function-insns): Set to 3000.
7555
7556 2004-01-16  Eric Christopher  <echristo@redhat.com>
7557             Chandrakala Chavva <cchavva@redhat.com>
7558
7559         * cppcharset.c (one_iso88591_to_utf8): New function.
7560         (convert_iso88591_utf8): Ditto. Use.
7561         (conversion_tab): Use.
7562         (_cpp_input_to_utf8): New function.
7563         (_cpp_init_iconv_buffer): Ditto.
7564         (_cpp_close_iconv_buffer): Ditto.
7565         * cpphash.h: Prototype new functions.
7566         (cpp_buffer): Add input_cset_desc.
7567         * cppinit.c: Add input_charset default.
7568         * cpplib.c (cpp_push_buffer): Support init and
7569         close of iconv.
7570         * cpplib.h (cpp_options): Add input_charset.
7571
7572 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
7573
7574         * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
7575         * config/alpha/unicosmk.h: Remove a commented-out definition
7576         of ASM_OUTPUT_SECTION_NAME.
7577         * config/stormy16/stormy16.h: Likewise.
7578
7579 2004-01-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7580
7581         * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
7582         (alpha___extern_prefix_sys_stat): ... this.
7583         Apply to <sys/mount.h>, too.
7584         Tweak to match more variations.
7585         * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
7586
7587         * fixinc/inclhack.def (alpha___extern_prefix,
7588         alpha___extern_prefix_standards): New hacks to obey
7589         __PRAGMA_EXTERN_PREFIX.
7590         * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
7591         test.
7592         * fixinc/tests/base/standards.h: Likewise.
7593
7594         * fixincl/inclhack.def (alpha_pthread): Tweak to match more
7595         variations.
7596         New testcase.
7597         * fixinc/tests/base/pthread.h: Handle it.
7598
7599         * fixincl/inclhack.def (bad_lval): Sort file list.
7600         Add many missing files up to Tru64 UNIX V5.1B.
7601         * gcc/fixinc/tests/base/libgen.h: Renamed to ...
7602         * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
7603         order.
7604
7605         * fixinc/fixincl.x: Regenerate.
7606
7607 2004-01-16  Mark Mitchell  <mark@codesourcery.com>
7608
7609         * version.c (version_string): Change to 3.5.0.
7610         * doc/include/gcc-common.texi (version-GCC): Likewise.
7611
7612 2004-01-16  Jan Hubicka  <jh@suse.cz>
7613
7614         * i386.md (load_tp_di): Fix pasto.
7615
7616         PR opt/13608
7617         * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
7618
7619         * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
7620         pp_c_character_constant, pp_c_floating_constant,
7621         pp_c_additive_expression, pp_c_shift_expression,
7622         pp_c_equality_expression, pp_c_and_expression,
7623         pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
7624         pp_c_logical_and_expression): Remove inline modifier.
7625         * dwarf2out.c (get_AT): Likewise.
7626         * et-forest.c (et_splay): Likewise.
7627         * ra.h (ra_alloc, ra_calloc): Likewise
7628
7629 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
7630
7631         * config/frv/frv-protos.h: Fix comment formatting.
7632         * config/frv/frv.c: Likewise.
7633         * config/frv/frv.h: Likewise.
7634         * config/frv/frv.md: Likewise.
7635         * config/frv/frvbegin.c: Likewise.
7636         * config/frv/frvend.c: Likewise.
7637
7638 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
7639
7640         * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
7641         * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
7642         LINKER_DOES_NOT_WORK_WITH_DWARF2.
7643         (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
7644
7645 2004-01-16  J"orn Rennecke <joern.rennecke@superh.com>
7646
7647         PR 11864
7648         * postreload.c (reload_cse_simplify_operands): Don't remove
7649         implicit extension from LOAD_EXTEND_OP.
7650
7651 2004-01-16  Jan Hubicka  <jh@suse.cz>
7652
7653         PR opt/11350
7654         * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
7655         after reload.
7656         * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
7657         rtl_try_redirect_by_replacing_branch): Likewise.
7658
7659 2004-01-15  Geoffrey Keating  <geoffk@apple.com>
7660
7661         PR pch/13689
7662         * alias.c (struct alias_set_entry): Mark for GC.
7663         (alias_sets): Make static, mark for GC.
7664         (record_alias_subset): Use GC to allocate alias structures.
7665         * varray.c (element): Make generic varrays GCed.
7666
7667         PR pch/13361
7668         * c-typeck.c (constructor_asmspec): Delete.
7669         (struct initializer_stack): Delete field 'asmspec'.
7670         (start_init): Delete saving of asmspec.
7671         (finish_init): Don't update constructor_asmspec.
7672         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
7673         * stmt.c (expand_asm): Duplicate strings from tree.
7674         (expand_asm_operands): Likewise.
7675         * tree.c (tree_size): Update computation of size of STRING_CST.
7676         (make_node): Don't make STRING_CST nodes.
7677         (build_string): Allocate string with tree node.
7678         * tree.def (STRING_CST): Update comment.
7679         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
7680         (tree_string): Place contents of string in tree node.
7681         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
7682         from tree.
7683
7684         * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
7685         altivec operands.
7686
7687 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
7688
7689         * c-common.h: Fix comment formatting.
7690         * c-cppbuiltin.c: Likewise.
7691         * c-pragma.c: Likewise.
7692         * calls.c: Likewise.
7693         * collect2.c: Likewise.
7694         * cppcharset.c: Likewise.
7695         * cpptrad.c: Likewise.
7696         * dbxout.c: Likewise.
7697         * defaults.h: Likewise.
7698         * dwarf2out.c: Likewise.
7699         * fold-const.c: Likewise.
7700         * genautomata.c: Likewise.
7701         * genconditions.c: Likewise.
7702         * genflags.c: Likewise.
7703         * gengtype.c: Likewise.
7704         * integrate.c: Likewise.
7705         * loop.c: Likewise.
7706         * predict.c: Likewise.
7707         * sdbout.c: Likewise.
7708
7709 2004-01-15  Zack Weinberg  <zack@codesourcery.com>
7710
7711         * config/ia64/ia64.md (*movti_internal): C output template
7712         extracted to ia64.c.
7713         (*movti_internal_reg): Delete.
7714         (reload_inti, reload_outti): Use the correct mode on operand 2
7715         in the first place, don't fix it up in the output template.
7716         (movtf, reload_ointf, reload_outtf): New expanders.
7717         (*movtf_internal): New define_insn_and_split.
7718         * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
7719         make static; do not hand TFmode CONST_DOUBLEs to split_double.
7720         (ia64_split_tmode_move): New function, body mostly pulled
7721         from ia64.md:*movti_internal.
7722         (ia64_function_arg_words): New function, extracted common
7723         logic from ia64_function_arg et seq.
7724         (ia64_function_arg_offset): Likewise.  Handle correctly the
7725         case of a scalar quantity 16 bytes wide with only 8-byte alignment.
7726         (ia64_function_arg, ia64_function_arg_partial_nregs)
7727         (ia64_function_arg_advance): Use ia64_function_arg_words and
7728         ia64_function_arg_offset.
7729         (ia64_function_value): TCmode does not go in float regs.
7730         (ia64_secondary_reload_class): Also handle TFmode.
7731         * config/ia64/ia64-protos.h: Remove prototype for
7732         ia64_split_timode; add prototype for ia64_split_tmode_move.
7733
7734 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
7735
7736         * Makefile.in (MAINT): Make it an immediate assignment.
7737
7738 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
7739
7740         * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
7741
7742 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
7743
7744         * config/h8300/coff.h: Replace Hitachi with Renesas.
7745         * config/h8300/elf.h: Likewise.
7746         * config/h8300/h8300-protos.h: Likewise.
7747         * config/h8300/h8300.c: Likewise.
7748         * config/h8300/h8300.h: Likewise.
7749         * config/h8300/h8300.md: Likewise.
7750         * config/h8300/lib1funcs.asm: Likewise.
7751
7752 2004-01-15  Andrew Pinski  <apinski@apple.com>
7753
7754         * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
7755         around it.
7756
7757 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
7758
7759         * config/h8300/h8300.c (h8300_return_in_memory): New.
7760         (TARGET_STRUCT_VALUE_RTX): Likewise.
7761         (TARGET_RETURN_IN_MEMORY): Likewise.
7762         * config/h8300/h8300.h (STRUCT_VALUE): Remove.
7763         (RETURN_IN_MEMORY): Likewise.
7764
7765 2004-01-15  Richard Earnshaw  <rearnsha@arm.com>
7766
7767         PR optimization/13375
7768         * gcse.c (handle_avail_expr): Just return if the source is not a
7769         single set.
7770
7771 2004-01-15  Richard Earnshaw  <rearnsha@arm.com>
7772             Daniel Jacobowitz  <drow@mvista.com>
7773
7774         * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
7775         (EQUIV): Define.
7776         (ARM_FUNC_ALIAS): New macro.
7777         * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
7778         * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
7779
7780 2004-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7781
7782         PR optimization/12372
7783         * calls.c (expand_call): Add call_fusage data for stack arguments in
7784         constant calls.
7785
7786 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
7787
7788         * config/rs6000/rs6000.c (uses_TOC): Correct comment.  Make static.
7789         (rs6000_elf_declare_function_name): Formatting.
7790         * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
7791
7792 2004-01-15  Jan Hubicka  <jh@suse.cz>
7793
7794         PR bootstrap/13692
7795         * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
7796         previous patch.
7797
7798 2004-01-15  Richard Henderson  <rth@redhat.com>
7799
7800         * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
7801         integer regs of the same call-savedness.
7802
7803 2004-01-15  Andreas Schwab  <schwab@suse.de>
7804
7805         PR bootstrap/13562
7806         * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
7807         status for NOTB/NOTW/NEGW methods.
7808
7809 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
7810
7811         * doc/invoke.texi: Update dump file names.  Fix a typo.
7812
7813 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
7814
7815         * builtins.c (expand_builtin_va_end): Don't use
7816         EXPAND_BUILTIN_VA_END.
7817         * system.h (EXPAND_BUILTIN_VA_END): Poison.
7818         * config/d30v/d30v.h: Remove a commented-out definition of
7819         EXPAND_BUILTIN_VA_END.
7820         * config/stormy16/stormy16.h: Likewise.
7821
7822 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
7823
7824         * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
7825         * targhooks.c (default_struct_value_rtx): Don't use
7826         STRUCT_VALUE_INCOMING_REGNUM.
7827
7828 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
7829
7830         PR bootstrap/12744
7831         * configure.in: Revamp enable-generated-files-in-srcdir rule to define
7832         GENINSRC and not parsedir.  Define srcextra as a langhook.
7833         * configure: Regenerate.
7834         * Makefile.in: Suppress default .l.c rule.  Don't substitute
7835         parsedir and delete all references throughout.  Conditionally define
7836         rule for srcextra dependent on GENINSRC.
7837         (stmp-docobjdir): Delete.
7838         (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
7839         (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
7840         and gengtype-yacc.h back to source directory.
7841         (maintainer-clean): Delete all parse files in source directory.
7842         (distclean): Delete generated files.
7843
7844         * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
7845         (objc-parse.c, objc-parse.y): Don't use parsedir.
7846         (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
7847         directory if requested.
7848         (po-generated): Don't use parsedir.
7849         (objc.maintainer-clean): Delete above files from source directory.
7850
7851 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
7852
7853         * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
7854
7855 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
7856
7857         * doc/tm.texi: Replace RETURN_IN_MEMORY with
7858         TARGET_RETURN_IN_MEMORY.
7859
7860 2004-01-15  Jan Hubicka  <jh@suse.cz>
7861
7862         * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
7863         * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
7864         functions accepting SSE arguments
7865         (function_arg): Warn only when asked to warn.
7866         * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
7867
7868 2004-01-14  Joseph S. Myers  <jsm@polyomino.org.uk>
7869
7870         * c-parse.in (stmts_and_decls): Make label at end of compound
7871         statement a hard error.
7872
7873 2004-01-14  Jan Hubicka  <jh@suse.cz>
7874
7875         * cgraph.c (create_edge): Use local.redefined_extern_inline.
7876         * cgraph.h (cgraph_local_info): Sort fields by size; add
7877         redefined_extern_inline
7878         (cgraph_global_info): Sort fields by size.
7879         (cgraph_node): Likewise.
7880         * cgraphunit.c (cgraph_finalize_function): Se
7881         local.redefined_extern_inline on redefinition.
7882         (cgraph_analyze_function): Use it; fix formating.
7883
7884 2004-01-14  Jan Hubicka  <jh@suse.cz>
7885
7886         PR c++/10776
7887         * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
7888         outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
7889         bitmaps
7890         (cache_size): New variable
7891         (add_dependence): Update use; canonize early memory locations
7892         (sched_analyze_1): Likewise.
7893         (sched_analyze_2): Likewise.
7894         (init_dependency_caches): Initialize bitmaps.
7895         (free_dependency_caches): Free bitmaps
7896
7897 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
7898
7899         * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
7900         targetm.calls.strict_argument_naming().
7901         * target.h: Likewise.
7902
7903 2004-01-14  Richard Henderson  <rth@redhat.com>
7904
7905         PR debug/13231
7906         * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
7907         instructions.
7908
7909 2004-01-14  Richard Henderson  <rth@redhat.com>
7910
7911         PR c++/12491
7912         * except.c (struct eh_region): Add u.fixup.resolved.
7913         (resolve_one_fixup_region): Split out from ...
7914         (resolve_fixup_regions): ... here.
7915
7916 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
7917
7918         * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
7919
7920 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
7921
7922         * config/alpha/alpha.h (STRUCT_VALUE): Remove.
7923         * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
7924         (STRUCT_VALUE): Remove.
7925
7926 2004-01-14  Steven Bosscher  <stevenb@suse.de>
7927
7928         * system.h: Poison PROMOTED_MODE
7929         * integrate.c (expand_inline_function): Don't mention the
7930         PROMOTED_MODE.
7931         * loop.c (update_giv_derive): Same.
7932         * tree.h (DECL_RTL): Same.
7933
7934 2004-01-14  J"orn Rennecke <joern.rennecke@superh.com>
7935
7936         PR target/9365
7937         * sh.c (gen_block_redirect): Add special handling of RETURN.
7938         (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
7939         far branch target (i.e. it's a return).
7940
7941 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
7942
7943         * regrename.c (find_oldest_value_reg): Fix a warning.
7944
7945 2004-01-14  Richard Earnshaw  <rearnsha@arm.com>
7946
7947         PR bootstrap/12527
7948         * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
7949         Move linux-gas.h and linux-elf.h before aout.h.
7950         * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
7951         * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
7952
7953 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
7954
7955         * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
7956         (CONST_INT, VOIDmode, ...).
7957
7958 2004-01-14  Richard Earnshaw  <rearnsha@arm.com>
7959
7960         * regrename.c (find_oldest_value_reg): If the replacement uses
7961         multiple hard registers, check that all of them are in CLASS.
7962
7963 2004-01-14  Jan Hubicka  <jh@suse.cz>
7964
7965         * alias.c (get_alias_set):  Initialize alias set to 0 when subset is
7966         impossible.
7967
7968 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
7969
7970         * Makefile.in: Define MAINT from --enable-maintainer-mode.
7971
7972 2004-01-14  Hartmut Penner  <hpenner@de.ibm.com>
7973
7974         * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
7975         Calculate always vrsave_mask if TARGET_ALTIVEC.
7976         (rs6000_emit_prologue): Emit code for vrsave
7977         only if TARGET_ALTIVEC_VRSAVE.
7978         (rs6000_emit_epilogue): Likewise.
7979
7980 2004-01-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
7981
7982         * config/sparc/sparc.md (tie_add32): Fix pasto.
7983         (tie_add64): Likewise.
7984
7985 2004-01-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7986
7987         * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
7988
7989 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
7990
7991         * config/iq2000/iq2000-protos.h: Fix comment formatting.
7992         * config/iq2000/iq2000.c: Likewise.
7993         * config/iq2000/iq2000.md: Likewise.
7994
7995 2004-01-14  J. Brobecker  <brobecker@gnat.com>
7996
7997         * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
7998         (subrange_type_die): Add handle for nameless subrange types.
7999
8000 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
8001
8002         * config/h8300/h8300-protos.h: Replace do_movsi with
8003         h8300_expand_movsi.
8004         * config/h8300/h8300.c (do_movsi): Change to
8005         h8300_expand_movsi.
8006         * config/h8300/h8300.md (movsi): Replace do_movsi with
8007         h8300_expand_movsi.
8008         (movsf): Likewise.
8009
8010 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
8011
8012         * config/h8300/h8300.c (dosize): Change to
8013         h8300_emit_stack_adjustment.  Update callers.
8014
8015 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
8016
8017         * config/h8300/h8300.md (movstrictqi): Add an alternative with
8018         the source being post_inc.  Tighten the predicate for the
8019         destination to register_operand.
8020         (movstricthi): Likewise.
8021
8022 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
8023
8024         * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
8025         * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
8026         * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
8027
8028 2004-01-14  Jan Hubicka  <jh@suse.cz>
8029
8030         Partial fix PR c++/12850
8031         * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
8032         at zero nest level.
8033
8034 2004-01-13  Bernardo Innocenti  <bernie@develer.com>
8035
8036         * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
8037         pseudo-register.
8038
8039 2004-01-13  Devang Patel <dpatel@apple.com
8040
8041         PR debug/7078
8042         * dbxout.c (dbxout_symbol_name): Emit mangled names for
8043         NAMESPACE_DECL memebers.
8044
8045 2004-01-13  Andrew Pinski  <pinskia@physics.uc.edu>
8046
8047         PR c++/12709
8048         * c-common.c (finish_fname_decls): Use the chain only if the
8049         tree is an expr_stmt.
8050
8051 2004-01-13  Vladimir Makarov  <vmakarov@redhat.com>
8052
8053         * rtl.def: Add comment about new option in automata_option.
8054
8055         * genautomata.c (PROGRESS_OPTION): New macro.
8056         (progress_flag): New global variable.
8057         (gen_automata_option): Process `progress'.
8058         (transform_insn_regexps, check_unit_distributions_to_automata,
8059         make_automaton, NDFA_to_DFA, build_automaton, create_automata,
8060         expand_automata, write_automata): Print about the progress only if
8061         progress_flag.  Remove fflush.
8062         (initiate_automaton_gen): Process command line flag `-progress'.
8063
8064         * doc/md.texi: Describe the new option.
8065
8066 2004-01-13  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8067
8068         * cfg.c (dump_bb): Dump entry edges.
8069
8070 2004-01-13  Richard Earnshaw  <rearnsha@arm.com>
8071
8072         * arm.c (thumb_legitimate_address_p): Only allow constant pool
8073         references from SImode.
8074         * arm.md (thumb_movhi_insn): Don't allow minipool references.
8075
8076 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
8077
8078         * system.h (TEXT_SECTION): Poison.
8079         * varasm.c (text_section): Don't use TEXT_SECTION.
8080         * config/sh/sh.c (sh_file_start): Fix a comment typo.
8081         * doc/tm.texi (TEXT_SECTION): Remove.
8082
8083 2004-01-13  Ben Elliston  <bje@wasabisystems.com>
8084
8085         * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
8086
8087 2004-01-12  James E Wilson  <wilson@specifixinc.com>
8088
8089         * unwind-libunwind.c: Delete.
8090
8091 2004-01-12  Zack Weinberg  <zack@codesourcery.com>
8092
8093         PR 13656
8094         * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
8095         oldtype is set, set *newtypep or *oldtypep too.  Do not set
8096         them at the very end.
8097         (validate_proto_after_old_defn): Restructure for comprehensibility;
8098         make error messages clearer.
8099
8100 2004-01-12  Zack Weinberg  <zack@codesourcery.com>
8101
8102         * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
8103         (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
8104         * varray.c: No need to prototype error.
8105         (varray_check_failed): Wrap long string onto two lines.
8106         (varray_underflow): New function.
8107
8108 2004-01-13  Steven Bosscher  <stevenb@suse.de>
8109
8110         PR c++/13376
8111         * function.h (struct function): Kill `name' field.
8112         (current_function_name): Make it an extern function.
8113         * function.c (current_function_name): New function.
8114         * graph.c: Update all uses of current_function_name.
8115         * gcse.c: Likewise.
8116         * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
8117         config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
8118         * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
8119         instead of a strcmp with "main".
8120
8121 2004-01-13  Jan Hubicka  <jh@suse.cz>
8122
8123         * c-decl.c (diagnose_mismatched_decls):  Fix warning calls.
8124
8125         * cgraphunit.c (cgraph_optimize_function):  Always do
8126         optimize_inline_calls when there is always_inline callee.
8127         (cgraph_decide_inlining): Fix formating.
8128         * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
8129         functions.
8130         (expand_call_inline): Likewise.
8131         * toplev.h (sorry): Fix prototype.
8132
8133 2004-01-12  Roger Sayle  <roger@eyesopen.com>
8134
8135         * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
8136         conditional jumps that drop through to unconditional jumps or the
8137         end of the sequence.
8138
8139 2004-01-13  Jan Hubicka  <jh@suse.cz>
8140
8141         * alias.c (new_alias_set): Construct the alias_set varray.
8142         (init_alias_once): Don't do it here.
8143
8144 2004-01-12  Marc Espie <espie@openbsd.org>
8145
8146         * system.h: handle YYBYACC like YYBISON.
8147
8148 2004-01-12  Jonathan Merriman <jonm@dualitymedia.com>
8149
8150         PR target/10847
8151         * config.gcc: No longer includes conflicting header sparc/sol2.h when
8152         building on sparc64-*-openbsd*.
8153
8154 2004-01-12  Andrew Pinski  <pinskia@physics.uc.edu>
8155
8156         PR debug/13539
8157         * dbxout.c (dbxout_type): Protected inheritance is not
8158         private but protected.
8159
8160 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
8161
8162         * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
8163
8164 2004-01-12  Kazu Hirata  <kazu@cs.umass.edu>
8165
8166         PR optimization/12508.
8167         * combine.c (try_combine): Remove a dead set in a parallel
8168         even if its destination is a subreg.
8169
8170         Revert:
8171         2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
8172         * combine.c (simplify_set): Don't move a subreg in SET_SRC to
8173         SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
8174
8175 2004-01-12  Geoffrey Keating  <geoffk@apple.com>
8176
8177         * real.c: Update copyright date.
8178         * emit-rtl.c: Likewise.
8179         * rtl.h: Likewise.
8180         * dwarf2out.c: Likewise.
8181         * config/rs6000/darwin-ldouble.c: Likewise.
8182         * config/rs6000/rs6000.md: Likewise.
8183
8184 2004-01-12  David Edelsohn  <edelsohn@gnu.org>
8185
8186         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
8187         TFmode to SImode libfuncs.
8188
8189 2004-01-12  Roger Sayle  <roger@eyesopen.com>
8190
8191         PR middle-end/11397
8192         * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
8193
8194 2004-01-12  Jan Hubicka  <jh@suse.cz>
8195
8196         PR opt/12826
8197         * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
8198         stored.
8199
8200         PR opt/12863
8201         * cfgcleanup.c (label_is_jump_target_p): Move to...
8202         * rtlanal.c (label_is_jump_target_p): ... here.
8203         * cfgrtl.c (cfg_layout_redirect_edge_and_branch):  Fix redirecting of fallthru
8204         edges unified with branch edges.
8205
8206 2004-01-12  Richard Earnshaw  <rearnsha@arm.com>
8207
8208         * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
8209         high word of an integral CONST_DOUBLE.
8210
8211 2004-01-12  Paul Brook  <paul@codesourcery.com>
8212
8213         * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
8214
8215 2004-01-12  J"orn Rennecke <joern.rennecke@superh.com>
8216
8217         PR target/13585
8218         * sh-protos.h (check_use_sfunc_addr): Declare.
8219         * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
8220         * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
8221
8222 2004-01-12  Jan Hubicka  <jh@suse.cz>
8223
8224         * alias.c:  Invlude varray.h
8225         (alias_sets): Turn into varray.
8226         (get_alias_set_entry): Use VARRAY; mark inline.
8227         (mems_in_disjoint_alias_sets_p): Mark inline.
8228         (record_alias_subset): Use varray.
8229         (init_alias_once): Initialize varray.
8230         (new_alias_set): Grow array.
8231         * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
8232
8233 2004-01-12  Jan Hubicka  <jh@suse.cz>
8234
8235         Partial fix for PR opt/10776 II
8236         * cselib.c: Include params.h
8237         (cselib_invalidate_mem):  Limit amount of nonconflicting memory
8238         locations.
8239         * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
8240         * Makefile.in (cselib.o): Depend on params.h
8241
8242 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
8243
8244         * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
8245         simplify_unary_operation if the operand has a known mode.
8246
8247 2004-01-12  Hartmut Penner  <hpenner@de.ibm.com>
8248
8249         PR target/13534
8250         * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
8251         predicate to handle 'ld' conform addresses.
8252         * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
8253         contraint.
8254         (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
8255         are memory contraints.
8256         * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
8257         New prototype.
8258         * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
8259         Change 'o' to 'Y' constraint.
8260         (*movdf_softfloat64): Ditto.
8261
8262 2004-01-12  Bernardo Innocenti  <bernie@develer.com>
8263
8264         * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
8265         brace-enclosed syntax in all C output statements.
8266
8267 2004-01-12  David Edelsohn  <edelsohn@gnu.org>
8268
8269         PR target/13401
8270         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
8271         Objective-C language type value is 14.
8272
8273 2004-01-12  Markus F.X.J. Oberhumer  <markus@oberhumer.com>
8274
8275         PR c/12148
8276         * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
8277         `int' in a number of places to make sure we always have a SImode
8278         and not a HImode.  Add a 'L' suffix to a number of constants.
8279
8280 2004-01-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8281
8282         * pa.c: Don't include obstack.h.
8283
8284         * pa.md: Correct constraint in pattern for loading PIC label address.
8285
8286 2004-01-11  Kaz Kojima  <kkojima@gcc.gnu.org>
8287
8288         * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
8289          before defining.
8290
8291 2004-01-11  Steven Bosscher  <stevenb@suse.de>
8292
8293         PR fortran/9972
8294         * toplev.c (rest_of_handle_inline): Also consider functions
8295         for deferral if the language is GNU F77.
8296
8297 2004-01-11  Zack Weinberg  <zack@codesourcery.com>
8298
8299         * c-decl.c (diagnose_arglist_conflict): Add missing space to
8300         diagnostic messages.
8301
8302 2004-01-11  Jakub Jelinek  <jakub@redhat.com>
8303
8304         PR middle-end/13392
8305         * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
8306         to drop through label.  Don't fall back to SCC even when conditional
8307         jump has not been found.
8308
8309 2004-01-11  Jan Hubicka  <jh@suse.cz>
8310
8311         * invoke.texi: Fix syntax error in previous patch.
8312
8313         Partial fix for PR opt/10776
8314         * Makefile.in (reload.o): Include param.h
8315         * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
8316         * reload.c: Include params.h.
8317         (find_equiv_reg): Work limiting check.
8318         * invoke.texi: Document.
8319
8320 2004-01-11  Richard Sandiford  <rsandifo@redhat.com>
8321
8322         * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
8323         out-of-bounds accesses to string constants.  Simplify mips16
8324         case accordingly.
8325
8326 2004-01-11  Richard Sandiford  <rsandifo@redhat.com>
8327
8328         PR optimization/13469
8329         * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
8330         reload_cse_regs (-fnon-call-exceptions only).
8331
8332 2004-01-11  Kazu Hirata  <kazu@cs.umass.edu>
8333
8334         * config/mcore/lib1.asm: Fix comment formatting.
8335         * config/mcore/mcore-elf.h: Likewise.
8336         * config/mcore/mcore.c: Likewise.
8337         * config/mcore/mcore.h: Likewise.
8338         * config/mcore/mcore.md: Likewise.
8339
8340 2004-01-10  Zack Weinberg  <zack@codesourcery.com>
8341
8342         * c-decl.c (duplicate_decls): Break apart into...
8343         (diagnose_arglist_conflict, validate_proto_after_old_defn)
8344         (locate_old_defn, diagnose_mismatched_decls, merge_decls):
8345         ... these new functions.  Restructure for comprehensibility.
8346         Remove various archaic special cases.  Always report the
8347         location of the previous declaration when a diagnostic is issued.
8348         (redeclaration_error_message): Fold into diagnose_mismatched_decls.
8349         (match_builtin_function_types): Delete unnecessary forward declaration.
8350
8351 2004-01-10  Zack Weinberg  <zack@codesourcery.com>
8352
8353         * genautomata.c (make_automaton, NDFA_to_DFA):
8354         Print progress bars with '.' characters instead of '*'.
8355         (build_automaton): Change notes to match.
8356
8357 2004-01-10  Kazu Hirata  <kazu@cs.umass.edu>
8358
8359         * config/m32r/m32r.md: Use define_constants for unspec and
8360         unspec_volatile.
8361
8362 2004-01-10  Jan Hubicka  <jh@suse.cz>
8363
8364         PR opt/11635
8365         * expr.c (expand_expr_real):  More curefully expand union casts.
8366
8367 2004-01-10  Kazu Hirata  <kazu@cs.umass.edu>
8368
8369         * config/m32r/m32r.md (flush_icache): Use 1 for
8370         unspec_volatile.
8371
8372 2004-01-10  David Edelsohn  <edelsohn@gnu.org>
8373             James E Wilson  <wilson@specifixinc.com>
8374
8375         PR debug/12860
8376         * dbxout.c (dbxout_symbol): Remove initialization of
8377         current_sym_code, current_sym_value, and current_sym_addr.
8378         (dbxout_symbol_location): Same.
8379         (dbxout_prepare_symbol): Zero current_sym_code,
8380         current_sym_value, and current_sym_addr.
8381
8382 2004-01-10  Richard Sandiford  <rsandifo@redhat.com>
8383
8384         * tree.c (get_unwidened): Reorder conditions so that the null pointer
8385         check is done first.
8386
8387 2004-01-09  Eric Christopher  <echristo@redhat.com>
8388
8389         * toplev.c (rest_of_handle_cfg): Add reg_scan pass
8390         if we're running mark_constant_function.
8391
8392 2004-01-09  Jeff Bailey  <jbailey@nisa.net>
8393
8394         PR target/12561
8395         * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
8396
8397 2004-01-09  Andrew Pinski <pinskia@physics.uc.edu>
8398
8399         PR debug/11231
8400         * dbxout.c (dbxout_type_fields): Return if any item is
8401         error_mark_node or the type is error_mark_node.
8402
8403 2004-01-09  Geoffrey Keating  <geoffk@apple.com>
8404
8405         * config/rs6000/darwin-ldouble.c: Add big comment explaining
8406         exactly what is expected as a 'long double'.
8407         (_xlqadd): When a value to be returned is representable as a
8408         'double', just return it directly, do not construct it using a union.
8409         Also, correct final fixup.
8410         (_xlqmul): Likewise.
8411         (_xlqdiv): Likewise.
8412         * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
8413
8414         * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
8415
8416 2004-01-09  Richard Henderson  <rth@redhat.com>
8417
8418         * recog.c (constrain_operands): Validate mem operands.
8419
8420 2004-01-09   James E Wilson  <wilson@specifixinc.com>
8421
8422         * gcc.c (init_spec): Remove -lunwind from shared case.
8423         * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
8424
8425 2004-01-09  Steve Ellcey  <sje@cup.hp.com>
8426
8427         * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
8428         * configure: Regenerate
8429
8430 2004-01-09  Joseph S. Myers  <jsm@polyomino.org.uk>
8431
8432         PR c/11234
8433         * c-typeck.c (build_c_cast): If pedantic, warn for conversions
8434         between function and object pointers.
8435         (digest_init): When comparing a pointer to function type to the
8436         target type, only apply TREE_TYPE once to the pointer to function
8437         type.
8438         * except.c (for_each_eh_label_1): Treat data as a pointer to a
8439         function pointer rather than casting it to a function pointer.
8440         (for_each_eh_label): Update caller.
8441         * recog.h (struct insn_data): Use a struct or union for output.
8442         * genoutput.c (output_insn_data): Update.
8443         * final.c (get_insn_template): Update.
8444
8445 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
8446
8447         * expr.h (expand_expr): Make it a macro, not a function.
8448         (expand_expr_real): New function.
8449         * expr.c (store_expr): Adjust logic for deciding whether or not to
8450         copy the value returned by expand_expr.
8451         (expand_expr): Rename to ...
8452         (expand_expr_real): ... this.  Add alt_rtl parameter.  Adjust
8453         calls to language hooks.
8454         * c-common.h (c_expand_expr): Adjust prototype.
8455         * c-common.c (c_expand_expr): Add alt_rtl parameter.
8456         * langhooks-def.h (lhd_expand_expr): Change prototype.
8457         * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
8458         * langhooks.h (lang_hooks): Change type of expand_expr.
8459         * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
8460         (last_expr_alt_rtl): Likewise.
8461         (expand_expr_stmt_value): Set last_expr_alt_rtl.
8462         (clear_last_expr): Clear it.
8463         (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
8464         (expand_end_bindings): Save and restor last_expr_alt_rtl.
8465         * tree.def (RTL_EXPR): Give it an additional operand.
8466         * tree.h (RTL_EXPR_ALT_RTL): New macro.
8467
8468 2004-01-09  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
8469
8470         * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
8471         * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
8472
8473 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
8474
8475         PR target/13380.
8476         * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
8477         or (ne:SI (reg:CC 17) (const_int 0)).
8478         Be specific about modes wherever possible.
8479
8480 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
8481
8482         * config/m32r/m32r.c (m32r_expand_block_move): Call
8483         gen_movestrsi_internal with two more arguments.
8484         (m32r_output_block_move): Adjust operand numbers.
8485         Properly update the source and destination pointers.
8486         * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
8487         'r+'.  Change the set detinations to match_operand.
8488
8489 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
8490
8491         * final.c (FIRST_INSN_ADDRESS): Remove.
8492         (shorten_branches): Don't use FIRST_INSN_ADDRESS.
8493         * system.h (FIRST_INSN_ADDRESS): Poison.
8494         * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
8495         * config/m32r/m32r-protos.h: Remove the prototype for
8496         m32r_first_insn_address.
8497         * config/m32r/m32r.c (m32r_first_insn_address): Remove.
8498         * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
8499         * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
8500
8501 2004-01-09  J. Brobecker  <brobecker@gnat.com>
8502
8503         * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
8504         we just created.
8505         (is_ada_subrange_type): DIEs for enumeration subtypes should be
8506         emitted as subrange types too.
8507         (subrange_type_die): Add handling of enumeration subtypes.
8508
8509 2004-01-08  Richard Henderson  <rth@redhat.com>
8510
8511         PR opt/12441
8512         Revert: Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
8513         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
8514         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
8515         (ix86_address_cost): Be prepared for SUBREGed registers.
8516         (legitimate_address_p): Accept SUBREGed registers.
8517
8518 2004-01-08  Kelley Cook  <kcook@gcc.gnu.org>
8519
8520         * Makefile.in: Rename configure.in to configure.ac
8521         * doc/sourcebuild.texi: Likewise.
8522         * configure: Regenerate.
8523         * config.in: Regenerate.
8524
8525 2004-01-08  Stuart Hastings  <stuart@apple.com>
8526
8527         * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
8528
8529 2004-01-08  Jan Hubicka  <jh@suse.cz>
8530
8531         * cgraphunit.c (cgraph_decide_inlining):  Fix typo.
8532
8533 2004-01-08  Geoffrey Keating  <geoffk@apple.com>
8534
8535         * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
8536         (UNSPEC_FIX_TRUNC_TF): New constant.
8537         (movtf_internal): Make splitter active only when insn is active.
8538         (extenddftf2): Rewrite to properly load zero into low part.
8539         (extenddftf2_internal): New.
8540         (extendsftf2): Rewrite.
8541         (truncdftf2): Correct length.
8542         (floatditf2): Delete.
8543         (fix_trunc_helper): New.
8544         (fix_trunctfdi2): Use fix_trunc_helper.
8545         (fix_trunctfsi2): Likewise.fix_trunc
8546         (fix_trunctfsi2_internal): New.
8547
8548         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
8549         addresses are legitimate on Darwin even when flag_pic.
8550         (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
8551         non-offsettable addresses for loads of TFmode constants.
8552
8553 2004-01-08  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
8554
8555         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
8556         variables in the appropriate bss section.
8557
8558 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
8559
8560         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
8561         target_flags has MASK_POWERPC64 when -m64.
8562         * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
8563         to 620, 630, power3, power4 and rs64a entries.
8564         * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
8565
8566 2004-01-08  Richard Sandiford  <rsandifo@redhat.com>
8567
8568         * simplify-rtx.c (simplify_immed_subreg): Fix construction of
8569         floating-point constants.
8570
8571 2004-01-08  J. Brobecker  <brobecker@gnat.com>
8572
8573         * dwarf2out.c (subrange_type_die): Add context_die parameter.
8574         Create the subrange_type DIE using the given context DIE.
8575         (modified_type_die): Update call to subrange_type_die.
8576
8577 2004-01-08  Zack Weinberg  <zack@codesourcery.com>
8578
8579         * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
8580         Add multiple-include guard.
8581
8582 2004-01-08  Hartmut Penner  <hpenner@de.ibm.com>
8583
8584         * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
8585         all vector constant loadable by vsplt*.
8586         (output_vec_const_move): Likewise.
8587
8588 2004-01-07  Joseph S. Myers  <jsm@polyomino.org.uk>
8589
8590         PR c/6024
8591         * c-typeck.c (comptypes): Only treat enumerated types in the same
8592         translation unit as compatible with each other when they are the
8593         same type.
8594         * doc/extend.texi: Update.
8595
8596 2004-01-07  Joseph S. Myers  <jsm@polyomino.org.uk>
8597
8598         PR c/12165
8599         * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
8600         array type from the array element type.
8601
8602 2004-01-07  Alan Modra  <amodra@bigpond.net.au>
8603
8604         * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
8605         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
8606         * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
8607         (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
8608         * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
8609
8610 2004-01-06  Eric Christopher  <echristo@redhat.com>
8611
8612         * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
8613         (DWARF2_DEBUGGING_INFO): Define.
8614         (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
8615         * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
8616         * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
8617         for irix as.
8618         (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
8619         * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
8620         * config/mips/iris5gas.h: Ditto.
8621         (DBX_DEBUGGING_INFO): Remove.
8622         (DWARF2_DEBUGGING_INFO): Ditto.
8623         (MIPS_DEBUGGING_INFO): Ditto.
8624         (PREFERRED_DEBUGGING_TYPE): Ditto.
8625         * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
8626         (PREFERRED_DEBUGGING_TYPE): Ditto.
8627         (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
8628         * config/mips/elf64.h: Ditto.
8629
8630 2004-01-06  Jan Hubicka  <jh@suse.cz>
8631
8632         * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
8633         (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
8634
8635 2004-01-06  Geoffrey Keating  <geoffk@apple.com>
8636
8637         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
8638         (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
8639         * config/rs6000/darwin-ldouble.c: New.
8640
8641         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
8642         for constants.
8643         (constant_subword): Delete.
8644         * rtl.h (constant_subword): Delete prototype.
8645         (immed_double_const): Is not in varasm.c.
8646         * simplify-rtx.c (simplify_immed_subreg): New.
8647         (simplify_subreg): Use simplify_immed_subreg.
8648
8649         * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
8650         than trying to generate RTL directly.
8651         (fix_trunctfsi2): Use expand_fix rather than trying to generate
8652         RTL directly.
8653
8654         * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
8655
8656 2004-01-06  David Edelsohn  <edelsohn@gnu.org>
8657
8658         * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
8659         function into a separate macro.
8660         (read_only_data_section): Add void argument.
8661         (private_data_section): Same.
8662         (read_only_private_data_section): Same.
8663         (toc_section): Same.
8664
8665 2004-01-06  Jan Hubicka  <jh@suse.cz>
8666
8667         * invoke.texi:  Remove typo in last change.
8668
8669         PR target/10301
8670         * config.gcc: Accept opteron and athlon-64 as variants
8671         of k8.
8672         * i386.c (override_options): Likewise.
8673         * invoke.texi (i386 -mtune): Expand documentation.
8674
8675 2004-01-06  Kazu Hirata  <kazu@cs.umass.edu>
8676
8677         * alias.c: Fix comment typos.
8678         * builtins.c: Likewise.
8679         * cfg.c: Likewise.
8680         * df.c: Likewise.
8681         * dominance.c: Likewise.
8682         * dwarf2out.c: Likewise.
8683         * emit-rtl.c: Likewise.
8684         * expr.c: Likewise.
8685         * final.c: Likewise.
8686         * fold-const.c: Likewise.
8687         * gcse.c: Likewise.
8688         * genattrtab.c: Likewise.
8689         * genrecog.c: Likewise.
8690         * gensupport.c: Likewise.
8691         * ggc-zone.c: Likewise.
8692         * integrate.c: Likewise.
8693         * local-alloc.c: Likewise.
8694         * loop.c: Likewise.
8695         * recog.c: Likewise.
8696         * regmove.c: Likewise.
8697         * reg-stack.c: Likewise.
8698         * reorg.c: Likewise.
8699         * rtlanal.c: Likewise.
8700         * rtl.h: Likewise.
8701         * sched-ebb.c: Likewise.
8702         * simplify-rtx.c: Likewise.
8703         * toplev.c: Likewise.
8704         * varasm.c: Likewise.
8705
8706 2004-01-06  Kazu Hirata  <kazu@cs.umass.edu>
8707
8708         * doc/install.texi: Fix typos.
8709         * doc/invoke.texi: Likewise.
8710         * doc/md.texi: Likewise.
8711
8712 2004-01-06  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
8713
8714         * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
8715
8716 2004-01-06  Jan Hubicka  <jh@suse.cz>
8717
8718         * i386.c (init_cumulative_args):  Add handling of MMX_REGPARM.
8719         (function_arg_advance):  Do not pass aggregates in SSE; deal handling
8720         of MMX_REGPARM.
8721         (function_arg): Add new warnings about ABI changes;  fix SSE_REGPARM;
8722         add MMX_REGPARM.
8723         * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
8724         (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
8725         (MMX_REGPARM_MAX): Similarly for -mmmx.
8726
8727 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
8728
8729         * config/sh/linux.h: Fix comment formatting.
8730         * config/sh/netbsd-elf.h: Likewise.
8731         * config/sh/sh.c: Likewise.
8732         * config/sh/sh.h: Likewise.
8733         * config/sh/vxworks.h: Likewise.
8734
8735 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
8736
8737         * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
8738         * toplev.c (output_file_directive): Don't use
8739         ASM_OUTPUT_MAIN_SOURCE_FILENAME.
8740
8741 2004-01-05  Steven Bosscher <s.bosscher@student.tudelft.nl>
8742
8743         * toplev.c: Fix broken checkin of 2003-12-30.
8744
8745 2004-01-05  Daniel Berlin  <dberlin@dberlin.org>
8746
8747         * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
8748         (USING_MMAP): We don't support non-mmap.
8749         (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
8750         large objects.
8751         (struct page_entry): Remove bytes_free.
8752         (struct page_table_chain): Remove.
8753         (struct globals): Remove page_table member.
8754         (loookup_page_table_entry): Function deleted.
8755         (set_page_table_entry): Ditto.
8756         (ggc_allocated_p): No longer need page table lookups.
8757         (ggc_marked_p): Ditto.
8758         (alloc_small_page): Don't care about bytes_free anymore.
8759         (alloc_large_page): Round up size.
8760         (ggc_alloc_zone_1): Mark large objects as such, and calculate
8761         their size the new way.
8762         Remove page table lookups and setting.
8763         (ggc_get_size): Calculate large object size the new way.
8764         (sweep_pages): Redo to account for fact that we no longer have
8765         bytes_free.
8766         (ggc_collect): No longer need to reincrement bytes_free.
8767         (ggc_pch_alloc_object): Handle new large objects properly.
8768         (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
8769
8770 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
8771
8772         * doc/invoke.texi: Remove a page break.
8773
8774 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
8775
8776         * config/avr/avr.c (avr_output_function_prologue): Remove an
8777         extra pair of curly braces.
8778
8779 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
8780
8781         * config/mn10300/mn10300.c: Fix comment formatting.
8782         * config/mn10300/mn10300.h: Likewise.
8783
8784 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8785
8786         * tree.h: Update documentation on nothrow_flag.
8787         * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
8788         types.
8789
8790 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
8791
8792         * doc/invoke.texi: Remove traces of dead ports.
8793
8794 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
8795
8796         * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
8797         option.
8798
8799 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
8800
8801         PR target/12945
8802         * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
8803         counter labels.
8804         * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
8805         (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
8806         string constants if TARGET_MIPS16.  Use SYMBOL_REF_DECL to check
8807         the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
8808         (mips_symbol_insns): Don't trust the local/global classification.
8809         (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
8810         (override_options): Make -mabicalls -fno-unit-at-a-time imply
8811         -mno-explicit-relocs.
8812         (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
8813         between local and global symbols.
8814
8815 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
8816
8817         * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
8818         (mips_preferred_reload_class): Declare.
8819         * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
8820         (EXTRA_CONSTRAINT): Update accordingly.
8821         (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
8822         * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
8823         (mips_preferred_reload_class): New function.  Prefer LEA_REGS if
8824         mips_dangerous_for_la25_p.
8825         (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
8826         if mips_dangerous_for_la25_p.
8827
8828 2004-01-05  Bernardo Innocenti  <bernie@develer.com>
8829
8830         * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
8831         warning.
8832
8833 2004-01-04  Nathanael Nerode  <neroden@gcc.gnu.org>
8834
8835         * configure.ac: Use AC_PROG_CPP_WERROR.
8836         * configure: Regenerate.
8837
8838 2004-01-04  Zack Weinberg  <zack@codesourcery.com>
8839
8840         * .cvsignore: Add autom4te.cache.
8841
8842 2004-01-04  Richard Sandiford  <rsandifo@redhat.com>
8843
8844         * doc/invoke.texi: Revamp documentation of MIPS options.  Remove
8845         -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
8846         -m4650, -mfix7000 and -(m)no-crt0.  Put endianness options first,
8847         then architecture options, then ABI options.  General rewording.
8848
8849 2004-01-04  Joseph S. Myers  <jsm@polyomino.org.uk>
8850
8851         PR c/3414
8852         * doc/extend.texi: Clarify definition of malloc attribute.
8853
8854 2004-01-04  Jan Hubicka  <jh@suse.cz>
8855
8856         * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
8857         * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
8858         * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
8859         (cgraph_inline_p): Add extra argument reason.
8860         * cgraphunit.c: Minor formating fixes.
8861         cgraph_first_inlined_callee): New functions.
8862         (record_call_1): Record builtins too.
8863         (cgraph_analyze_function): Update inline_failed messages.
8864         (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
8865         cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
8866         (cgraph_check_inline_limits): Likewise; Add argument reason.
8867         (cgraph_set_inline_failed): New static function.
8868         (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
8869         reasons.
8870         (cgraph_inline_p): Add new argument reason.
8871         * tree-inline.c (expand_call_inline):  Update warning.
8872
8873 2004-01-03  Nathanael Nerode  <neroden@gcc.gnu.org>
8874
8875         * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
8876         with modern equivalents.
8877         * configure: Regenerate.
8878
8879         * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
8880         * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
8881         * configure: Regenerate.
8882
8883         * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
8884
8885         * configure.in: Rename to configure.ac.
8886         * configure.ac: Renamed from configure.in; make minimum necessary
8887         changes for autoconf 2.5x.
8888         * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
8889         * configure: Regenerate with autoconf 2.57.
8890
8891 2004-01-03  Kazu Hirata  <kazu@cs.umass.edu>
8892
8893         * config/mips/linux.h: Fix comment formatting.
8894         * config/mips/mips.c: Likewise.
8895         * config/mips/mips.h: Likewise.
8896         * config/mips/mips.md: Likewise.
8897         * config/mips/netbsd.h: Likewise.
8898         * config/mips/windiss.h: Likewise.
8899
8900 2004-01-02  Richard Henderson  <rth@redhat.com>
8901
8902         * config/i386/i386.md (fp constant pool splitter): Reorg suppression
8903         for sse and 387; add suppression for mmx.
8904
8905 2004-01-02  Andrew Pinski  <pinskia@physics.uc.edu>
8906
8907         * loop.c (loop_optimize): Free all loops_info's mems.
8908
8909         * c-typeck.c (finish_init): Free spelling_base before
8910         setting it again.
8911
8912         * cfgloop.c (flow_loops_find): Always free the sbitmap
8913         headers.
8914
8915         * predict.c (estimate_probability): Free bbs after being
8916         done with it.
8917
8918 2004-01-02  Kazu Hirata  <kazu@cs.umass.edu>
8919
8920         * config/mn10300/mn10300.h (PREDICATE_CODES): Add
8921         const_8bit_operand and call_address_operand.
8922
8923 2004-01-02  Jan Hubicka  <jh@suse.cz>
8924
8925         * cgraphunit.c (cgraph_optimize_function):  Call optimize_inline_calls
8926         when there is nothing to inline but warnings are requested.
8927         (cgraph_decide_inlining):  Fix memory leak.
8928
8929 2004-01-02  Jan Hubicka  <jh@suse.cz>
8930
8931         * expr.c (store_constructor):  Fix pasto in previous patch.
8932
8933 2004-01-02  Kazu Hirata  <kazu@cs.umass.edu>
8934
8935         * config/i386/cygming.h: Fix comment formatting.
8936         * config/i386/djgpp.h: Likewise.
8937         * config/i386/gthr-win32.c: Likewise.
8938         * config/i386/i386-interix.h: Likewise.
8939         * config/i386/i386.c: Likewise.
8940         * config/i386/i386.h: Likewise.
8941         * config/i386/openbsd.h: Likewise.
8942         * config/i386/winnt.c: Likewise.
8943         * config/i386/xm-mingw32.h: Likewise.
8944
8945 2004-01-02  Joseph S. Myers  <jsm@polyomino.org.uk>
8946
8947         * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
8948         copyright and last modification dates.
8949
8950 2004-01-02  Andreas Jaeger  <aj@suse.de>, Gerald Pfeifer  <gp@suse.de>
8951
8952         * doc/install.texi (Specific): Mention x86_64.
8953
8954 2004-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
8955
8956         * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
8957         Call force_operand on plus_constant result.
8958
8959 2004-01-01  Jan Hubicka  <jh@suse.cz>
8960
8961         * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
8962         * expr.c (store_constructor): Use vec_init pattern.
8963         * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
8964         * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
8965         (vec_set_optab, vec_extract_optab, vec_init_optab): New.
8966         * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
8967         New patterns.
8968         (sse2_unpc?pd): Fix pattern.
8969         (sse2_movlpd): Kill.
8970         (sse2_movsd): Deal with movlpd too.
8971         * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
8972         (ix86_expand_vector_init): New.
8973         * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
8974         * md.texi (vec_set, vec_extract): Document
8975
8976 2003-12-31  Jan Hubicka  <jh@suse.cz>
8977
8978         PR opt/13473
8979         * recog.c (validate_replace_rtx_1):  Take care for RTL sharing inside
8980         ASM input operands
8981
8982         PR opt/12617
8983         * toplev.c (dump_file_index): Reorder ce3 and bbro.
8984         (dump_file): Likewise.
8985         (rest_of_compilation): Likewise.
8986
8987         PR debug/13367
8988         * cgraph.c (cgraph_function_possibly_inlined):  Even with
8989         flag_really_no_inline we inline always_inline functions.
8990         * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
8991         for non-always_inline functions when there is flag_really_no_inline.
8992         (cgraph_decide_inlining): Limit work done when not inlining.
8993         (cgraph_decide_inlining_incrementally): Likewise.
8994         (cgraph_optimize_function): Check whether something got inlined.
8995         * c-objc-common.c (c_disregard_inline_limits): Do not always inline
8996         extern inline functions when not inlining.
8997
8998         * opts.c (decode_options):  Disable crossjumping at -O1
8999         * invoke.texi (-O1): Document change.
9000
9001 See ChangeLog.10 for earlier changes.