OSDN Git Service

4da2c7dfb5b616c8aa0bbe548c2df247c9e74845
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2003-10-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2
3         * function.c (assign_parms): Add ATTRIBUTE_UNUSED to variable
4         reg_parm_stack_space.
5         * toplev.c (default_get_pch_validity): Fix warning.
6
7         * vax.c: Include toplev.h.
8         (vax_init_libfuncs): Fix typo (umod).
9         * vax.h (ASM_COMMENT_START): Define.
10         (PRINT_OPERAND): Fix warning when HOST_WIDE_INT is a long long.
11
12 2003-10-31  Roger Sayle  <roger@eyesopen.com>
13
14         PR middle-end/11968
15         * expr.c (expand_expr <MULT_EXPR>): Remove inappropriate and
16         confusing comment; distributivity isn't handled in expand_expr.
17         * fold-const.c (extract_muldiv_1 <PLUS_EXPR>):  Allow overflow
18         in distributivity, if wrap-around semantics are specified with
19         -fwrapv.
20
21 2003-11-01  Alan Modra  <amodra@bigpond.net.au>
22
23         PR 12315
24         * final.c (profile_function): Allow for NULL svrtx.
25
26 2003-10-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27
28         * pa.c (pa_select_section): Use new style declaration.
29         * som.h (readonly_data): Likewise.
30
31 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
32
33         * config/rs6000/rs6000.c: Update to C90 prototypes.
34
35 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
36
37         PR target/7513
38         * arm.h (CONDITIONAL_REGISTER_USAGE): Disable use of LR in Thumb
39         code.
40
41 2003-10-31  Andreas Jaeger  <aj@suse.de>, 
42             Zack Weinberg  <zack@codesourcery.com>            
43
44
45         * crtstuff.c (__register_frame_info, __register_frame_info_bases)
46         (__deregister_frame_info, __deregister_frame_info_bases):
47         Constify void * argument.
48         * unwind-dw2-fde.h (struct fde_vector): 
49         Constify 'orig_data' and 'array' fields.
50         (__register_frame_info, __register_frame_info_bases)
51         (__deregister_frame_info, __deregister_frame_info_bases):
52         Constify void * argument.
53         (get_cie, next_fde, _Unwind_Find_FDE): Constify arguments,
54         return values, and casts of type fde *, struct dwarf_fde *,
55         and struct dwarf_cie *.
56         * unwind-dw2-fde.c (__register_frame_info, __register_frame_info_bases)
57         (__deregister_frame_info, __deregister_frame_info_bases):
58         Constify void * argument.
59         (get_cie_encoding, ): Constify struct dwarf_cie * argument.
60         (get_fde_encoding, fde_unencoded_compare, fde_single_encoding_compare)
61         (fde_mixed_encoding_compare, fde_compare_t, start_fde_sort, fde_insert)
62         fde_split, SWAP, frame_downheap, frame_heapsort)
63         (classify_object_over_fdes, add_fdes, linear_search_fdes,
64         binary_search_unencoded_fdes, binary_search_single_encoding_fdes,
65         binary_search_mixed_encoding_fdes, search_object, _Unwind_Find_FDE):
66         Constify arguments, local variables, return values, and casts
67         of type fde *, fde **, struct dwarf_fde *, and struct dwarf_cie *.
68         Use const pointer types in sizeof expressions, for clarity.
69         * unwind-dw2-fde-glibc.c 
70         (_Unwind_find_registered_FDE, _Unwind_find_FDE): Constify return value.
71         (struct unw_eh_callback_data): Constify 'ret' field.
72
73 2003-10-31  Fariborz Jahanian  <fjahanian@apple.com>
74             David Edelsohn  <edelsohn@gnu.org>
75
76         * config/rs6000/rs6000.c (rs6000_mixed_function_arg): New.
77         (function_arg): Call it.
78         (rs6000_function_value): Widen integral return value to mode based
79         on TARGET_32BIT, not word_mode.
80         * config/rs6000/rs6000.h (PROMOTE_MODE): Likewise.
81         (UNITS_PER_ARG): New.
82         (RS6000_ARG_SIZE): Use it.
83
84 2003-10-31  Gerald Pfeifer  <gerald@pfeifer.com>
85
86         * .cvsignore: No longer ignore gengtype-lex.c, gengtype-yacc.c,
87         and gengtype-yacc.h.
88
89 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
90
91         PR optimization/8896
92         * postreload.c (reload_combine): Check that REGY doesn't die in an
93         insn of the form (set (regx) (plus (regx) (regy))), ie REGX != REGY.
94
95 2003-10-31  Josef Zlomek  <zlomekj@suse.cz>
96
97         PR/10239
98         * cfgrtl.c (delete_insn): Decrease LABEL_NUSES for all REG_LABEL notes.
99
100 2003-10-31  Josef Zlomek  <zlomekj@suse.cz>
101
102         PR/11640
103         * cfgrtl.c (try_redirect_by_replacing_jump): Move jump
104         immediatelly before BARRIER.
105
106 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
107
108         * Makefile.in (STRICT2_WARN): Add -Wold-style-definition.
109
110 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
111
112         PR target/11271
113         * reload.c (find_reloads_address): Handle any register in
114         (PLUS (PLUS (REG) (REG)) (CONST_INT).
115
116 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
117
118         * ggc-page.c (ggc_pch_read): Wrap call to poison_pages in 
119         ENABLE_GC_CHECKING not in GGC_POISON.
120
121 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
122
123         PR bootstrap/9863
124         * configure.in: Bail out if awk is missing.
125         * configure: Regenerate.
126
127         PR ada/12761
128         * Makefile.in: Move default definitions of X_ADA_CFLAGS,
129         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from ada/Make-lang.in to here.
130
131 2003-10-30  Richard Henderson  <rth@redhat.com>
132
133         * c-objc-common.c (c_tree_printer): Handle types correctly.
134         Factor code a bit.
135
136 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
137
138         * value-prof.c, web.c: Update to C90.
139
140 2003-10-30  Eric Christopher  <echristo@redhat.com>
141
142         * function.c (purge_addressof_1): Add case for REG_RETVAL
143         notes when modes are unequal.
144
145 2003-10-31  Jan Hubicka  <jh@suse.cz>
146
147         * i386-modes.def: Add XFmode format adjustment.
148
149 2003-10-30  Jan Hubicka  <jh@suse.cz>
150
151         * real.c (encode_ieee_extended): Back out previous patch.
152
153 2003-10-30  Jan Hubicka  <jh@suse.cz>
154
155         * real.c (encode_ieee_extended): Initialize whole array.
156         * reg-stack.c (move_for_stack_reg0: Use always XFmode.
157         * i386-modes.def: Change definitions of TFmode and XFmode.
158         * i386.c (classify_argument): Rename TFmodes to XFmodes; add new TFmode
159         code.
160         (construct_container): Allow constructing of TFmode integer containers.
161         (ix86_return_in_memory):  XFmode is not returned in memory.
162         (init_ext_80387_constants): Always use XFmode.
163         (print_operand): Likewise.
164         (ix86_prepare_fp_compare_regs): Likewise.
165         (split_to_parts): Deal with TFmode.
166         (split_long_move): Simplify.
167         (ix86_init_mmx_sse_builtins): Add __float80, __float128.
168         (ix86_memory_move_cost): Do not confuse TFmode.
169         * i386.h (LONG_DOUBLE_TYPE_SIZE): Set to 96.
170         (IS_STACK_MODE): TFmode is not stack mode.
171         (HARD_REGNO_NREGS, CLASS_MAX_NREGS): Deal nicely with XFmode.
172         (VALID_SSE_REG_MODE): Allow TFmode.
173         (VALID_FP_MODE_P): Disallow TFmode.
174         (VALID_INT_MODE_P): Allow TFmode in 64bit mode.
175         * i386.md (TFmode patterns): Kill.
176         (movtf, motf_rex64): New patterns.
177
178 2003-10-30  Richard Sandiford  <rsandifo@redhat.com>
179
180         * config/mips/mips.md (adddi3): Fix typo in mips16 stack pointer code.
181
182 2003-10-30  Richard Sandiford  <rsandifo@redhat.com>
183
184         * config/mips/mips.md (mov_lwl): Use memory_operand where appropriate.
185         (mov_lwr, mov_swl, mov_swr): Likewise.
186         (mov_ldl, mov_ldr, mov_sdl, mov_sdr): Likewise.
187
188 2003-10-30  Richard Sandiford  <rsandifo@redhat.com>
189
190         * config/mips/mips.c (mips_global_pointer): Don't try to use $25.
191
192 2003-10-30  Richard Henderson  <rth@redhat.com>
193
194         * config/mips/mips.c (mips_build_builtin_va_list): Use runtime
195         test for irix6 rather than preprocessor test.
196
197 2003-10-30  Richard Henderson  <rth@redhat.com>
198
199         * cppcharset.c (one_utf8_to_utf16): Initialize 's' to silence warning.
200
201 2003-10-30  Ulrich Weigand  <uweigand@de.ibm.com>
202
203         * config/s390/s390.c (struct machine_function): Use save_return_addr_p
204         as a general flag that the return address register needs to be saved,
205         not necessarily because of __builtin_return_addr (0).
206         (s390_split_branches): Remove TEMP_REG and TEMP_USED arguments,
207         remove special handling of zSeries machines.
208         (s390_optimize_prolog): Remove TEMP_USED argument, treat the return
209         register as a regular register on zSeries machines.
210         (s390_reorg): Adjust calls to s390_split_branches and
211         s390_optimize_prolog.
212         (s390_frame_info): On zSeries machines, do not assume the return
213         register is always used.  Update regs_ever_live with current data
214         for the special registers.
215         (s390_emit_epilogue): Use save_return_addr_p to determine whether
216         the return register was saved.
217         * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Do not mark
218         RETURN_REGNUM fixed on zSeries machines.
219         (REG_ALLOC_ORDER): Use RETURN_REGNUM last.
220         * config/s390/s390.md ("*doloop_si"): Handle branch overflow
221         via ahi-jgne pair on zSeries machines.
222         ("*doloop_di"): Likewise.
223         ("*doloop_di_long"): Remove.
224
225 2003-10-30  Richard Earnshaw  <rearnsha@arm.com>
226
227         * arm.c (arm_override_options): Revert change of arm_constant_limit
228         when optimizing for size.
229
230 2003-10-29  Richard Henderson  <rth@redhat.com>
231
232         * fold-const.c (fold_single_bit_test): Convert the input to the
233         operational intermediate type.
234
235 2003-10-29  Richard Henderson  <rth@redhat.com>
236
237         * builtins.c (std_build_builtin_va_list): New.
238         * expr.h (std_build_builtin_va_list): Declare.
239         * defaults.h (BUILD_VA_LIST_TYPE): New.
240         * system.h (BUILD_VA_LIST_TYPE): Poison.
241         * target-def.h (TARGET_BUILD_BUILTIN_VA_LIST): New.
242         * target.h (struct gcc_target): Add build_builtin_va_list.
243         * tree.c (build_common_tree_nodes_2): Use it.
244
245         * config/alpha/alpha-protos.h, config/alpha/alpha.c,
246         config/alpha/alpha.h, config/alpha/unicosmk.h,
247         config/d30v/d30v-protos.h, config/d30v/d30v.c, config/d30v/d30v.h,
248         config/i386/i386-protos.h, config/i386/i386.c, config/i386/i386.h,
249         config/i860/i860-protos.h, config/i860/i860.c, config/i860/i860.h,
250         config/i960/i960-protos.h, config/i960/i960.c, config/i960/i960.h,
251         config/mips/iris6.h, config/mips/mips-protos.h, config/mips/mips.c,
252         config/mips/mips.h, config/rs6000/rs6000-protos.h,
253         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
254         config/s390/s390-protos.h, config/s390/s390.c, config/s390/s390.h,
255         config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
256         config/xtensa/xtensa-protos.h, config/xtensa/xtensa.c,
257         config/xtensa/xtensa.h: Rename foo_build_va_list to
258         foo_build_builtin_va_list; make it static.  Define
259         TARGET_BUILD_BUILTIN_VA_LIST.  Remove BUILD_VA_LIST_TYPE.
260         Update protos.
261
262         * config/i386/i386.c (ix86_expand_carry_flag_compare): Make static.
263         * config/iq2000/iq2000.h (BUILD_VA_LIST_TYPE): Remove.
264
265 2003-10-29  James E Wilson  <wilson@specifixinc.com>
266
267         * recog.c (asm_operand_ok): Add missing break after case 'X'.
268         Change if statements to else if statements in default case.
269         (extract_constrain_insn_cached): Fix misspelling of constrain_operands
270         in comment.
271         (constrain_operands_cached): Likewise.
272         (constrain_operands): Change if statements to else if statements in
273         default case.
274         * reload.c (find_reloads): Likewise.
275
276 2003-10-29  Richard Henderson  <rth@redhat.com>
277
278         * config/m68k/m68k.c (notice_update_cc): Clear cc status for
279         shifts and rotates.
280
281 2003-10-30  Alan Modra  <amodra@bigpond.net.au>
282
283         * config/rs6000/rs6000.md: Remove duplicate pattern.
284
285 2003-10-29  Hans-Peter Nilsson  <hp@axis.com>
286
287         * real.c (do_divide): Initialize result with a 0.
288
289         * configure.in <enable-checking for valgrind>: Look for
290         <valgrind/memcheck.h> first.  AC_DEFINE HAVE_VALGRIND_MEMCHECK_H
291         if it exists.
292         * configure, config.in: Regenerate.
293         * ggc-common.c [ENABLE_VALGRIND_CHECKING &&
294         HAVE_VALGRIND_MEMCHECK_H]: Include <valgrind/memcheck.h>.  Use
295         #elif for other alternatives.
296         * ggc-page.c: Ditto.
297         * ggc-zone.c: Don't assume <valgrind/memcheck.h>; instead copy
298         include structure from ggc-common.c.
299
300 2003-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
301
302         * pa-linux.h (ASM_OUTPUT_ADDR_VEC_ELT): Use label in big switch ELTs.
303         (ASM_OUTPUT_ADDR_DIFF_ELT): Use label difference in big switch ELTs.
304         * pa.c (pa_adjust_insn_length): Check for btable branches using
305         attribute TYPE_BTABLE_BRANCH.
306         (pa_reorg): Simplify.
307         * pa.h (CASE_VECTOR_MODE): Change big switch mode to SImode.
308         (ASM_OUTPUT_ADDR_VEC_ELT): As above.
309         (ASM_OUTPUT_ADDR_DIFF_ELT): As above.
310         * pa.md (btable_branch): New instruction type.
311         (in_branch_delay, in_nullified_branch_delay, in_call_delay): Disallow
312         btable branches.
313         (define_delay): Add btable branches to insn types that may have an
314         insn in the delay position.
315         (Z2, Z3): Add btable branch to list.
316         Simplify unamed pattern set copy pic_label_operand to register.  Add
317         PA 2.0 variant.
318         (short_jump): New jump for use in branch tables.
319         (casesi, casesi0): Revise for new branch table formats.
320         (casesi32, casesi32p, casesi64p): New casesi patterns.
321         (indirect_jump): Move.
322
323 2003-10-29  David Edelsohn  <edelsohn@gnu.org>
324
325         * config/rs6000/rs6000.h (UNITS_PER_WORD): Revert to
326         !TARGET_POWERPC64.
327         (UNITS_PER_GPR_WORD): Delete.
328         (HARD_REGNO_NREGS): Revert to UNITS_PER_WORD.
329         (HARD_REGNO_MODE_OK): Same.
330         (CLASS_MAX_NREGS): Same.
331
332 2003-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
333
334         * pa.h (ASM_COMMENT_START): Define.
335
336 2003-10-29  Zack Weinberg  <zack@codesourcery.com>
337
338         * genmodes.c (complete_mode): Record MODE_CC, MODE_INT,
339         MODE_FLOAT, and MODE_PARTIAL_INT modes as having one
340         component, not zero.
341
342 2003-10-29  Andreas Schwab  <schwab@suse.de>
343
344         * config/ia64/t-ia64 (LIB2ADDEH): Add $(srcdir)/gthr-gnat.c.
345
346 2003-10-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
347
348         * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
349         Never return 1 for complex integral modes whose size is lesser or
350         equal to a word.
351         (function_arg_pass_by_reference) [TARGET_ARCH64]: Mention CTImode
352         in the comment.
353         (function_arg_advance) [TARGET_ARCH64]: Don't special-case complex
354         modes.
355         (sparc_va_arg) [TARGET_ARCH64]: Handle any types whose size is
356         greater than 16 bytes by reference.
357
358 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
359
360         * config/ia64/ia64.c (ia64_assemble_integer): Test POINTER_SIZE,
361         not TARGET_ILP32.
362         (ia64_initialize_trampoline): Use globalize_label target call.
363
364 2003-10-29  Andreas Schwab  <schwab@suse.de>
365
366         * doc/install.texi (Building): Add a sentence about building Ada
367         for a canadian cross.
368
369 2003-10-28  Zack Weinberg  <zack@codesourcery.com>
370
371         * config/ia64/ia64.c (cmptf_libfunc): New static.
372         (ia64_expand_compare): Add logic to open-code calls to
373         _U_Qfcmp for TFmode comparisons.
374         (ia64_hpux_init_libfuncs): Initialize cmptf_libfunc.
375         Set libfuncs for TFmode eq/ne/gt/ge/lt/gt to 0; these should
376         never be generated anymore.
377         * config/ia64/ia64.md (cmptf): New expander.
378
379 2003-10-28  Zack Weinberg  <zack@codesourcery.com>
380
381         * ia64.md (UNSPEC_SETF_EXP,UNSPEC_FR_SQRT_RECIP_APPROX): New constants.
382         (*sqrt_approx): New instruction pattern for approximate square roots.
383         (*setf_exp_xf): New instruction pattern for exponentiation.
384         (*maddxf4_alts_truncsf): New instruction pattern for truncation.
385         (sqrtsf2_internal_thr): New define_and_split implementing
386         throughput-optimized inline calculation of SFmode square root.
387         (sqrtdf2_internal_thr): Likewise for DFmode.
388         (sqrtxf2_internal_thr): Likewise for XFmode.
389         (sqrtsf2, sqrtdf2, sqrtxf2): New expanders to choose between
390         latency- and throughput-optimized square root algorithms.
391         * ia64.h (MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR,
392         TARGET_INLINE_SQRT_LAT, TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT):
393         New macros.
394         (TARGET_SWITCHES): Add -minline-sqrt-min-latency and
395         -minline-sqrt-max-throughput.
396         * ia64.c (ia64_override_options): If both -minline-sqrt-min-latency
397         and -minline-sqrt-max-throughput are given, notify the user
398         that both options cannot be used simultaneously.
399         If -minline-sqrt-min-latency is given, notify the user that
400         this mode is not yet implemented.
401         (rtx_needs_barrier): Reformat initial comment to obey
402         72-character width limit.  Support UNSPEC_SETF_EXP and
403         UNSPEC_FR_SQRT_RECIP_APPROX.
404
405 2003-10-29  Alan Modra  <amodra@bigpond.net.au>
406
407         * config/rs6000/rs6000.md (movdf_softfloat64): Allow dummy ctr,ctr
408         moves.
409
410 2003-10-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
411
412         PR target/11598
413         PR libgcj/10610
414         * config/rs6000/sysv4.h (PREFERRED_STACK_BOUNDARY): New macro.
415
416 2003-10-28  Richard Earnshaw  <rearnsha@arm.com>
417
418         * arm.c (arm_output_epilogue): When using a frame pointer, don't emit
419         an extra stack adjustment insn if the stack pointer is already
420         pointing at the right place.
421         (use_return_insn): Allow a return insn to be used when we have a
422         frame pointer if the stack pointer is in the right place.
423         (output_return_instruction): Handle it.
424
425 2003-10-28  Andreas Jaeger  <aj@suse.de>
426
427         * ggc-zone.c (check_cookies): Add missing variable.
428         Add void to prototypes.
429
430 2003-10-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
431
432         * config/mips/irix6-libc-compat.c (inet_makeaddr): Prototype.
433         * crtstuff.c (__do_global_ctors_1): Move prototype.
434         * unwind-dw2.c (NO_SIZE_OF_ENCODED_VALUE): Define when
435         appropriate.
436         * unwind-sjlj.c (_Unwind_GetCFA, _Unwind_FindEnclosingFunction):
437         Mark parameter with __attribute__((unused)).
438
439 2003-10-27  Zack Weinberg  <zack@codesourcery.com>
440
441         * c-decl.c (pushdecl): Clarify comment.
442
443 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
444
445         * doc/install.texi: Update instructions for Ada cross builds
446
447         PR ada/5909:
448         * doc/sourcebuild.texi: Document Ada test suite.
449
450 2003-10-27  Stephane Carrez  <stcarrez@nerim.fr>
451
452         * config/m68hc11/m68hc11.c: Convert to ISO C90.
453         * config/m68hc11/m68hc11-protos.h: Likewise.
454
455 2003-10-27  Jan Hubicka  <jh@suse.cz>
456             Eric Botcazou  <ebotcazou@libertysurf.fr>
457
458         * toplev.c (enum dump_file_index, dump_file): Fix ordering of
459         webizer pass dump.
460
461 2003-10-27  Jakub Jelinek  <jakub@redhat.com>
462             Jan Hubicka  <jh@suse.cz>
463
464         * reload1.c (struct elim_table): Change offset, initial_offset and
465         previous_offset fields to HOST_WIDE_INT.
466         (offsets_at): Change from int to HOST_WIDE_INT.
467         (reload): Adjust offsets_at initialization.
468         (eliminate_regs_in_insn): Change type of offset to HOST_WIDE_INT.
469         (verify_initial_elim_offsets): Change type of t to HOST_WIDE_INT.
470         * config/i386/i386.c (ix86_compute_frame_layout): Change offset type
471         to HOST_WIDE_INT.  Don't save regs using mov for huge frame sizes
472         if TARGET_64BIT.
473         (pro_epilogue_adjust_stack): New function.
474         (ix86_expand_prologue, ix86_expand_epilogue): Use it.
475         * config/i386/i386.md (pro_epilogue_adjust_stack): Remove.
476         (pro_epilogue_adjust_stack_1): Remove * in front of name.
477         (pro_epilogue_adjust_stack_rex64): Handle -2147483648 properly.
478         (pro_epilogue_adjust_stack_rex64_2): New insn.
479
480         * config/i386/i386.c (ix86_expand_epilogue): Fix comment typo.
481
482         * config/i386/i386.c (ix86_expand_call): Replace 40 with
483         FIRST_REX_INT_REG + 3 /* R11 */.
484
485 2003-10-26  Richard Henderson  <rth@redhat.com>
486
487         * config/alpha/alpha.md (attr cannot_copy): New.
488         (call_osf_2_er, call_value_osf_2_er, ldgp_er_1, ldgp_er_2,
489         prologue_ldgp_er_2, prologue_ldgp_1): Set it.
490         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Test it.
491
492 2003-10-26  Daniel Berlin  <dberlin@dberlin.org>
493
494         * ggc-zone.c:  New file, zone allocating collector.
495         * configure: Accept zone option for --with-gc
496         * configure.in: Ditto.
497         * ggc.h (ggc_pch_count_object): Pass bool indicating
498         stringiness. Update all callers.
499         (ggc_pch_alloc_object): Ditto.
500         (ggc_pch_write_object): Ditto.
501         (ggc_alloc_rtx): Use typed allocation, since all RTX's are of a single
502         type.
503         (ggc_alloc_rtvec): Ditto.
504         (ggc_alloc_tree): Use zone allocation, since some things using this macro
505         aren't a single typecode.
506         * ggc-none.c (ggc_alloc_typed): New function.
507         (ggc_alloc_zone): Ditto.
508         * ggc-page.c: Ditto on both functions.
509
510 2003-10-26  Gunther Nikl  <gni@gecko.de>
511
512         * config/m68k/m68k.c (m68k_compute_frame_layout): Ensure FPU related
513         frame information is always valid.
514         (m68k_output_function_prologue): Remove superfluous TARGET_68881
515         test; fix formatting.
516
517 2003-10-26  Gunther Nikl  <gni@gecko.de>
518
519         * config/m68k/m68k.c (m68k_compute_frame_layout): Swap reg_mask and
520         reg_rev_mask computation.
521         (m68k_output_function_prologue): Fix usage of current_frame (one typo
522         and one missing); use reg_rev_mask not reg_mask.
523         (m68k_output_function_epilogue): Fix usage of current_frame;
524         use fpu_rev_mask not fpu_mask.
525
526 2003-10-26  Bernardo Innocenti  <bernie@develer.com>
527
528         * config/m68k/m68k.c (m68k_output_function_prologue): Eliminate
529         num_saved_regs, use current_frame.reg_no instead.
530
531 2003-10-26  Bernardo Innocenti  <bernie@develer.com>
532             Paul Dale  <pauli@snapgear.com>
533
534         * doc/extend.texi (interrupt_handler): Add m68k to the
535         list of processors implementing it.
536         * doc/invoke.texi (-msep-data): Document new m68k option.
537         (-mno-sep-data): Likewise.
538         (-mid-shared-library): Likewise.
539         (-mno-id-shared-library): Likewise.
540         (-mshared-library-id): Likewise.
541
542 2003-10-26  Andreas Jaeger  <aj@suse.de>
543
544         * unwind-dw2.c (_Unwind_GetGR): Avoid warning about unsigned
545         comparison.
546         (_Unwind_SetGR): Likewise.
547
548 2003-10-26  Ottavio Campana <ottavio@campana.vi.it>
549
550         PR target/12690
551         * config/i386/mmintrin.h (_mm_set1_pi8): Fix comment.
552
553 2003-10-26  Gunther Nikl  <gni@gecko.de>
554
555         * config/m68k/m68k.c (m68k_output_function_prologue): Move front
556         comment from here to...
557         (m68k_save_reg): ...here. Fix comment formatting.
558         (m68k_output_function_prologue): Fix comment formatting.
559         (m68k_output_function_epilogue): Likewise.
560         (const_method): Likewise.
561
562 2003-10-26  Kazu Hirata  <kazu@cs.umass.edu>
563
564         * toplev.c (default_get_pch_validity): Guard the use of
565         target_options with #ifdef TARGET_OPTIONS.
566         (default_pch_valid_p): Likewise.
567
568 2003-10-26  Andreas Jaeger  <aj@suse.de>
569             Zack Weinberg  <zack@codesourcery.com>
570             Andreas Tobler <toa@pop.agri.ch>
571
572         * dwarf2out.c (output_cfi): Use HOST_WIDE_INT_PRINT.
573         (output_die): Likewise.
574         (print_die): Likewise.
575
576 2003-10-26  Andreas Jaeger  <aj@suse.de>
577
578         * tree.h (dwarf2out_def_cfa, dwarf2out_args_size,
579         dwarf2out_reg_save, new_loc_descr): Update prototypes for recent
580         dwarf2out.c change.
581
582         * toplev.c (default_pch_valid_p): Fix warning.
583
584 2003-10-25  Roger Sayle  <roger@eyesopen.com>
585
586         * simplify-rtx.c (simplify_replace_rtx): Avoid allocating duplicate
587         RTL nodes.  If an operator's operands are unchanged, return the
588         original argument unchanged.
589
590 2003-10-26  Graham Stott  <graham.stott@btinternet.com>
591
592         Fix bootstrap failure.
593         * expmed.c (store_bit_field): Don't compare bitsize against
594         modes with zero bit-size.
595
596         (extract_bit_field): Likewise
597
598 2003-10-25  Jan Hubicka  <jh@suse.cz>
599
600         * dwarf2out.c (dw_cfi_oprnd_struct): Offset is HOST_WIDE_INT.
601         (cfa_loc): Likewise.
602         (reg_save, stack_adjust_offset, queue_reg_save): Replace long by
603         HOST_WIDE_INT.
604         (args_size, old_args_size): change type to HOST_WIDE_INT.
605         (dwarf2out_def_cfa, dwarf2out_args_size,
606         dwarf2out_reg_save, new_loc_descr): offset is HOST_WIDE_INT.
607         (dw_val_struct): integers, unsigneds and offsets are HOST_WIDE_INT.
608         (add_AT_int, add_AT_unsigned, att_AT_offset, AT_int, AT_unsigned,
609         AT_offset): Use HOST_WIDE_INT.
610         (based_loc_descr): offset is HOST_WIDE_INT.
611         (add_data_member): Likewise.
612         (add_const_value_attribute): Simplify.
613
614 2003-10-25  Richard Henderson  <rth@redhat.com>
615
616         * config/i386/i386.c (ix86_eax_live_at_start_p): New.
617         (ix86_expand_prologue): Save and restore eax around stack probe
618         if it's live.
619
620 2003-10-25  Jan Hubicka  <jh@suse.cz>
621
622         * cppcharset.c (one_utf8_to_utf32): Initialize 's' to silence warning.
623
624 2003-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
625
626         PR target/12712
627         * reg-stack.c (convert_regs_1): Create an arbitrary input stack
628         if the block has no predecessors.
629         (convert_regs_2): Document the problem with successors whose
630         only predecessor is the block to be processed.
631         (convert_regs): Don't create the arbitrary input stack here.
632
633 2003-10-24  Zack Weinberg  <zack@codesourcery.com>
634
635         * genmodes.c (struct mode_data): Add contained and next_cont
636         fields.
637         (complete_mode): Maintain linked list of modes that have a
638         given component.
639         (emit_mode_unit_size): Delete.
640         (emit_mode_nunits): New.
641         (emit_insn_modes_c): Update to match.
642         (emit_mode_adjustments): Propagate size and alignment
643         adjustments from component modes to their containers.
644         * machmode.h (mode_unit_size): Delete.
645         (mode_nunits): New.
646         (GET_MODE_NUNITS): Just return the value in the table.
647         (GET_MODE_UNIT_SIZE): Compute using GET_MODE_INNER and
648         GET_MODE_SIZE.
649         * expmed.c (store_bit_field, extract_bit_field): Can use a
650         plain move instruction if bitsize >= GET_MODE_BITSIZE of
651         destination/source mode, respectively.
652         * varasm.c (assemble_real): Write out the full size of the
653         constant, not just its bitsize.
654         (output_constant): Honor TYPE_MODE of TREE_REAL_CSTs.
655
656         * config/ia64/ia64-modes.def: Define XFmode as well as TFmode.
657         Use ADJUST_BYTESIZE and ADJUST_ALIGNMENT to set size and
658         alignment of XF and TF modes in compliance with ia64 ABIs.
659         Can now hardwire the format of both modes.
660         * config/ia64/ia64.c: Change TFmode to XFmode wherever appropriate.
661         (general_tfmode_operand, destination_tfmode_operand)
662         (tfreg_or_fp01_operand, spill_tfmode_operand): Rename to
663         general_xfmode_operand, destination_xfmode_operand,
664         xfreg_or_fp01_operand, spill_xfmode_operand respectively.
665         (ia64_init_builtins): Make TYPE_PRECISION of fpreg_type
666         and float80_type be 96 so they get XFmode.  Use !TARGET_HPUX,
667         not INTEL_EXTENDED_IEEE_FORMAT, to decide how to define
668         __float128.
669         * config/ia64/ia64.h: Default TARGET_HPUX to 0.
670         Change TFmode to XFmode wherever appropriate.  Remove all
671         references to INTEL_EXTENDED_IEEE_FORMAT.
672         (LONG_DOUBLE_TYPE_SIZE): Varies with TARGET_HPUX.
673         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define (always 96).
674         (PREDICATE_CODES): Update to match function renames.
675         * config/ia64/ia64.md: Change TF to XF throughout; rename all
676         patterns to match.  Remove all references to
677         INTEL_EXTENDED_IEEE_FORMAT.  Update predicate calls to match
678         function renames.
679         * config/ia64/ia64-protos.c: Update all prototypes to match
680         renamed functions.
681         * config/ia64/hpux.h: Redefine TARGET_HPUX to 1.
682         Remove all references to INTEL_EXTENDED_IEEE_FORMAT.
683         * config/ia64/lib1funcs.asm: Add __divxf3 as new name for
684         __divtf3; keep old name for backward compatibility.
685         (L__compat): New section providing forwarding stubs for
686         __fixtfti, __fixunstfti, __floattitf.
687         * config/ia64/t-ia64: Add __compat to LIB1ASMFUNCS.
688
689 2003-10-24  Geoffrey Keating  <geoffk@apple.com>
690
691         PR 10757
692         * c-pch.c: Include target.h.  Improve comments.
693         (struct c_pch_validity): Add target_data_length.
694         (pch_init): Add target's validity data.
695         (c_common_valid_pch): Check target's validity data.
696         * target-def.h (TARGET_GET_PCH_VALIDITY): New.
697         (TARGET_PCH_VALID_P): New.
698         (TARGET_INITIALIZER): Add new fields.
699         * target.h: Include tm.h.
700         (struct gcc_target): Add get_pch_validity, pch_valid_p.
701         * toplev.h (default_get_pch_validity): New prototype.
702         (default_pch_valid_p): New prototype.
703         * toplev.c (default_get_pch_validity): New routine.
704         (default_pch_valid_p): New routine.
705         * Makefile.in (TARGET_H): Add TM_H.  Replace all users of
706         target.h with $(TARGET_H).
707         (c-pch.o): Add TARGET_H.
708         * doc/tm.texi (PCH Target): New node.
709         (TARGET_GET_PCH_VALIDITY): Document.
710         (TARGET_PCH_VALID_P): Document.
711
712 2003-10-24  Kelley Cook  <kcook@gcc.gnu.org>
713
714         * Makefile.in: Define a vpath for %.texi.  Remove explicit $(docdir)
715         and $(docdir)/include from any *.texi dependencies.
716         ($(docobjdir)/%.dvi): Depend on stmp-docobjdir.
717         ($(docobjdir)/%.1): Depend on .pod instead of .texi.
718         ($(docobjdir)/%.7): Likewise.
719         (%.pod): New implicit rule.
720         (cpp.pod): New dependency only rule.
721         (gcc.pod): New intermediate rule with dependencies and commands.
722         (gfdl.pod): Likewise.
723         (fsf-funding.pod): Likewise.
724
725 2003-10-24  Nathanael Nerode  <neroden@gcc.gnu.org>
726
727         * fixinc/mkfixinc.sh: Remove special cases for svr4 and ptx, and
728         related code.
729         * fixinc/fixinc.ptx: Remove.
730         * fixinc/fixinc.svr4: Remove.
731
732 2003-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
733
734         * config/s390/s390.c (load_multiple_operation): Allow both SImode
735         and DImode if word_mode is DImode.
736         (store_multiple_operation): Likewise.
737         * config/s390/s390.md ("load_multiple", "store_multiple"): Likewise.
738         ("*load_multiple_di"): Allow only if word_mode == DImode.
739         ("movqi"): Use LLGC whenever TARGET_ZARCH.
740         ("fix_truncdfsi2"): Fix incorrect temporary size.
741         ("fix_truncsfsi2"): Likewise.
742         ("*bras_r", "*brasl_r", "*basr_r"): Remove predicate and constraint
743         string for function return value operand.
744         ("*bras_tls", "*brasl_tls", "*basr_tls"): Likewise.
745
746 2003-10-24  Joseph S. Myers  <jsm@polyomino.org.uk>
747
748         * c-parse.in (array_declarator): Use expr_no_commas.
749         Fixes PR c/11943.
750
751 2003-10-24  Richard Sandiford  <rsandifo@redhat.com>
752
753         * config/mips/linux.h: Wrap MD_FALLBACK_FRAME_STATE_FOR and
754         associated includes in #ifndef inhibit_libc.
755
756 2003-10-24  Roger Sayle  <roger@eyesopen.com>
757
758         * doc/libgcc.texi: Document some more of the libgcc API.
759
760 2003-10-24  Richard Earnshaw  <rearnsha@arm.com>
761
762         * arm.c (arm_rtx_costs_1, case TARGET_THUMB): Adjust costs for
763         comparing a constant with small negative numbers and add costing
764         for constants in conjunction with AND.
765         (note_invalid_constants): Tidy previous change.
766         (thumb_cmp_operand): Tidy.
767         (thumb_cmpneg_operand): New function.
768         * arm.h (CONDITIONAL_REGISTER_USAGE): Don't use HI regs if optimizing
769         for size.
770         (FIRST_LO_REGNUM, FIRST_HI_REGNUM, LAST_HI_REGNUM): Define.
771         (PREDICATE_CODES): Add thumb_cmpneg_operand.
772         * arm.md (cbranchsi4): Convert to define_expand.  Handle comparison
773         with a negative constant.
774         (cbranchsi4_insn): Matcher for cbranchsi4.
775         (cbranchsi4_scratch): Similar, but a scratch is available for
776         handling negative constants.
777         (movsi_cbranchsi4): New pattern.
778         (tstsi3_cbranch): Renamed from andsi3_cbranch_scratch, remove scratch
779         and use the TST instruction.
780         (andsi3_cbranch, orrsi3_cbranch, xorsi3_cbranch, cbranchne_decr1)
781         (addsi3_cbranch, subsi3_cbranch): Ensure that register preferencing
782         cannot see high regs or memory alternatives.
783         (bicsi3_cbranch_scratch, bicsi3_cbranch): New patterns.
784
785 2003-10-24  Richard Earnshaw  <rearnsha@arm.com>
786
787         * arm.c (note_invalid_constants): Try to extract the constant
788         pool value using avoid_constant_pool_reference; only use
789         get_pool_constant if that returns the original reference.
790
791 2003-10-24  Jan Hubicka  <jh@suse.cz>
792
793         PR c++/12624
794         * varasm.c (notice_global_symbol): Disqualify global registers.
795
796 2003-10-23  Roger Sayle  <roger@eyesopen.com>
797
798         PR middle-end/11414
799         * loop.c (load_mems): Use redirect_jump to forward jumps from
800         the original loop end label to the new "loop sink" block's label.
801
802 2003-10-23  Roger Sayle  <roger@eyesopen.com>
803
804         PR middle-end/12705
805         * optabs.c (expand_binop): When expanding complex operations
806         inline, always calculate result into a new temporary register.
807         Minor code clean-ups.
808
809 2003-10-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
810
811         * objc/lang-specs.h: Handle -print-objc-runtime-info.
812         * doc/invoke.texi (Objective-C Dialect Options): Document it.
813
814 2003-10-24  Danny Smith  <dannysmith@users.sourceforge.net>
815
816         * config/i386/cygwin.asm. Add copyright notice. Add comment
817         on why this code is needed.
818
819 2003-10-23  Kazu Hirata  <kazu@cs.umass.edu>
820
821         * config/h8300/clzhi2.c: Fix warnings.
822         * config/h8300/ctzhi2.c: Likewise.
823         * config/h8300/fixunssfsi.c: Likewise.
824         * config/h8300/parityhi2.c: Likewise.
825         * config/h8300/popcounthi2.c: Likewise.
826
827 2003-10-23  James E Wilson  <wilson@specifixinc.com>
828
829         * gcc.c (option_map): Delete --target and --use-version.
830
831 2003-10-23  Fariborz Jahanian  <fjahanian@apple.com>
832             David Edelsohn  <edelsohn@gnu.org>
833
834         * config/rs6000/rs6000.h (UNITS_PER_WORD): Use TARGET_32BIT, not
835         TARGET_POWREPC64.
836         (UNITS_PER_GPR_WORD): Define.
837         (HARD_REGNO_NREGS): Use UNITS_PER_GPR_WORD.
838         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
839         (HARD_REGNO_MODE_OK): Use UNITS_PER_GPR_WORD.
840         (CLASS_MAX_NREGS): Use UNITS_PER_GPR_WORD.
841         * config/rs6000/rs6000.c (function_arg): Generate PARALLEL for
842         DFmode and DImode in 32-bit ABI / 64-bit computation mode.
843         (rs6000_emit_prologue): Select reg_mode and reg_size using
844         TARGET_32BIT, not TARGET_POWERPC64.
845         (rs6000_function_value): Generate PARALLEL for DImode in 32-bit
846         ABI / 64-bit computation mode
847
848 2003-10-22  Andrew Haley  <aph@redhat.com>
849
850         * toplev.c (output_file_directive): Allow for null input_name.
851
852 2003-10-22  Waldek Hebisch <hebisch@math.uni.wroc.pl>
853
854         * config/i386/i386.c (classify_argument): Handle SET_TYPE.
855
856 2003-10-22  Chris Demetriou  <cgd@broadcom.com>
857
858         * configure.in: In --enable-generated-files-in-srcdir option
859         handling, fix default case handling.
860         * configure: Regenerate.
861
862 2003-10-22  Phil Edwards  <phil@codesourcery.com>
863
864         * config.gcc:  Update *-*-vxworks* generic hook and comments.
865         (arm-wrs-vxworks, i[4567]86-wrs-vxworks, mips-wrs-vxworks,
866         mips-wrs-windiss, sh-wrs-vxworks):  New stanzas.
867         * genmultilib:  Allow the MULTILIB_OSDIRNAMES to be mapped directly.
868         * config/svr4.h (SWITCH_TAKES_ARG):  Undefine it before redefining it.
869         * config/windiss.h:  New file.
870         * config/arm/t-vxworks:  New file.
871         * config/arm/vxworks.h:  New file.
872         * config/i386/t-vxworks:  New file.
873         * config/i386/vxworks.h:  New file.
874         * config/mips/t-vxworks:  New file.
875         * config/mips/vxworks.h:  New file.
876         * config/mips/windiss.h:  New file.
877         * config/sh/t-vxworks:  New file.
878         * config/sh/vxworks.h:  New file.
879
880 2003-10-22  Kazu Hirata  <kazu@cs.umass.edu>
881
882         * config/h8300/h8300.c (h8300_output_function_epilogue): Remove.
883         (h8300_saveall_function_p): New.
884         (h8300_insert_attributes): Insert the saveall attribute if
885         #pragma saveall is specified.
886         (h8300_attribute_table): Add saveall.
887         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
888         * doc/extend.texi: Mention the saveall attribute.
889
890 2003-10-22  Joseph S. Myers  <jsm@polyomino.org.uk>
891
892         * c-typeck.c (pedantic_lvalue_warning): Unconditionally warn of
893         deprecation of casts as lvalues.
894         * fixinc/inclhack.def (obstack_lvalue_cast): New fix.
895         * fixinc/fixincl.x: Regenerate.
896         * fixinc/tests/base/obstack.h: New test.
897
898 2003-10-22  Andreas Schwab  <schwab@suse.de>
899
900         PR target/12676
901         * config/m68k/m68k.c (output_addsi3): Fix range check to work on
902         LP64 platforms.
903
904 2003-10-22  Jan Hubicka  <jh@suse.cz>
905
906         * dwarf2out.c (dwarf2out_abstract_function): Use DW_AT to check
907         presence of DW_AT_inline.
908         (gen_subprogram_die): Likewise; do not abort instead of emitting
909         DW_AT_not_inline.
910
911 2003-10-22  Jan Hubicka  <jh@suse.cz>
912
913         * cgraph.c (cgraph_function_possibly_inlined_p): Be conservative when
914         global info is not ready.
915
916 2003-10-22  Kazu Hirata  <kazu@cs.umass.edu>
917
918         * doc/extend.texi: Mention H8S wherever H8/300H is mentioned.
919
920 2003-10-22  Ulrich Weigand  <uweigand@de.ibm.com>
921
922         * config/s390/s390.md ("movstr_short_64", "movstr_short_31"): Merge ...
923         ("*movstr_short"): ... into this insn pattern.
924         ("movstr_short"): New expander.
925         ("*movstr_long_64"): Rename from "movstr_long_64", simplify.
926         ("*movstr_long_31"): Rename from "movstr_long_31", simplify.
927         ("movstr_long"): New expander.
928         ("clrstr_short_64", "clrstr_short_31"): Merge ...
929         ("*clrstr_short"): ... into this insn pattern.
930         ("clrstr_short"): New expander.
931         ("*clrstr_long_64"): Rename from "clrstr_long_64", simplify.
932         ("*clrstr_long_31"): Rename from "clrstr_long_31", simplify.
933         ("clrstr_long"): New expander.
934         ("cmpmem_short_64", "cmpmem_short_31"): Merge ...
935         ("*cmpmem_short"): ... into this insn pattern.
936         ("cmpmem_short"): New expander.
937         ("*cmpmem_long_64"): Rename from "cmpmem_long_64".
938         ("*cmpmem_long_31"): Rename from "cmpmem_long_31".
939         ("cmpmem_long"): New expander.
940         * config/s390/s390.c (s390_expand_movstr): Use new expanders.
941         (s390_expand_clrstr): Likewise.
942         (s390_expand_cmpmem): Likewise.
943
944 2003-10-22  Mark Mitchell  <mark@codesourcery.com>
945
946         * c-pch.c (struct c_pch_validity): Add pch_init field.
947         (pch_init): Set it.
948         (c_common_valid_pch): Check it.
949
950 2003-10-22  David Taylor <dtaylor@emc.com>
951
952         PR debug/12500
953         * dbxout.c (dbxout_typedefs): Use COMPLETE_OR_VOID_TYPE_P.
954
955 2003-10-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
956
957         * config/alpha/alpha.c (function_value [ENABLE_CHECKING]): Don't call
958         alpha_return_in_memory if no VALTYPE specified.
959
960 2003-10-22  Jan Hubicka  <jh@suse.cz>
961
962         PR debug/12389
963         * Makefile.in (dwarf2out.o): Depend on cgraph.h.
964         * cgraph.c (cgraph_function_possibly_inlined_p): New function.
965         * cgraph.h (cgraph_function_possibly_inlined_p): Declare.
966         (cgraph_global_info): Add flag inlined
967         * dwarf2out.c (gen_subprogram_die, gen_decl_die): Use
968         cgraph_function_possibly_inded_p
969         * cgraphunit.c (mark_inline): Set inlined flag.
970         * toplev.c (rest_of_decl_compilation): Call outlining_inline_function
971         only for possibly inlined functions.
972         * c-decl.c (duplicate_decls): Never output abstract DIE representing old
973         body of function.
974
975 2003-10-22  Andrew Haley  <aph@redhat.com>
976
977         * varasm.c (output_constructor): Make constructor annotation
978         conditional on ASM_COMMENT_START.
979
980 2003-10-21  Jason Merrill  <jason@redhat.com>
981
982         * tree.c (get_unwidened): Check TREE_UNSIGNED on the field's type.
983         (get_narrower): Likewise.
984
985         * stor-layout.c (layout_decl): Do packed field alignment for
986         bit-fields, too.
987
988 2003-10-21  Eric Christopher  <echristo@redhat.com>
989
990         * expr.c (convert_move): Use FLOAT_EXTEND for extensions.
991
992 2003-10-21  Geoffrey Keating  <geoffk@apple.com>
993
994         * c-pch.c: Add comments in various places.
995         (struct c_pch_validity): Add the lengths of various strings.
996         (host_machine): New static.
997         (target_machine): New static.
998         (get_ident): Bump version number.
999         (pch_init): Write out version, host, target validity data.
1000         (c_common_valid_pch): Check version, host, target.
1001         * Makefile.in (c-pch.o): Add version.h; define HOST_MACHINE and
1002         TARGET_MACHINE.
1003
1004 2003-10-21  Jason Merrill  <jason@redhat.com>
1005
1006         * tree.h (IS_EXPR_CODE_CLASS): Use strchr.
1007         (EXPR_P): New macro.
1008
1009 2003-10-21  Zack Weinberg  <zack@codesourcery.com>
1010
1011         * config/ia64/ia64.md (cmpxchg_acq_si): Mark operand 3 as DImode.
1012         * config/ia64/ia64.c (ia64_expand_fetch_and_op,
1013         ia64_expand_op_and_fetch): Make sure the REG for ar.ccv is
1014         DImode.   Use convert_move to load ar.ccv.
1015         (ia64_expand_compare_and_swap): Likewise.
1016         If expand_expr doesn't put 'old' and 'new' in the proper
1017         modes, run them through convert_to_mode.
1018
1019 2003-10-21  Eric Christopher  <echristo@redhat.com>
1020
1021         * config/frv/frv.c (frv_adjust_field_align): Check DECL_ARTIFICIAL
1022         for too large bitfields.
1023
1024 2003-10-21  Mark Mitchell  <mark@codesourcery.com>
1025
1026         * Makefile.in ($(docobjdir)/%.info): Honor BUILD_INFO.
1027
1028 2003-10-21  Andrew Haley  <aph@redhat.com>
1029
1030         * varasm.c (output_constructor): Annotate constructor.
1031
1032 2003-10-21  Mark Mitchell  <mark@codesourcery.com>
1033
1034         * Makefile.in ($(DESTDIR)$(infodir)/%.info): Conditionalize chmod
1035         on existence of destination file.
1036
1037 2003-10-21  Jan Hubicka  <jh@suse.cz>
1038
1039         * haifa-sched.c (choose_ready): Initialize index.
1040
1041 2003-10-21  Jason Merrill  <jason@redhat.com>
1042
1043         * tree.c (build1): Fix off-by-one error.
1044
1045 2003-10-21  Robert Millan  <robertmh@gnu.org>
1046
1047         * config/i386/kfreebsdgnu.h: New. i386-*-kfreebsd-gnu definitions.
1048         * config/kfreebsdgnu.h: New. *-*-kfreebsd-gnu definitions.
1049         * config/t-kfreebsd-gnu: New. *-*-kfreebsd-gnu tmake_file.
1050         * config.gcc: Add *-*-kfreebsd*-gnu and i[34567]86-*-kfreebsd*-gnu.
1051
1052 2003-10-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
1053
1054         * web.c: Fix various comments.
1055
1056 2003-10-20  Nicolas Pitre <nico@cam.org>
1057
1058         * config/arm/arm.c (arm_override_options): Set arm_constant_limit
1059         to 2 instead of 1 when optimize_size is true.  Gather code based on
1060         optimize_size together.  Add comment about XScale load latency.
1061
1062 2003-10-21  Gunther Nikl  <gni@gecko.de>
1063
1064         * config/m68k/m68k.c (m68k_output_function_prologue): Remove
1065         obsolete comments.
1066
1067 2003-10-20  Kelley Cook  <kcook@gcc.gnu.org>
1068
1069         * Makefile.in: Get parsedir and docobjdir from configure.
1070         * configure.in: Recogonize --enable-generated-files-in-srcdir.
1071         Pass along parsedir and docobjdir.
1072         * configure: Regenerate.
1073         * doc/install.texi: Document --enable-generated-files-in-srcdir.
1074
1075 2003-10-20  Kelley Cook  <kcook@gcc.gnu.org>
1076
1077         * Makefile.in: Define $(docdir) before the Make-lang.in fragments are
1078         included.
1079
1080 2003-10-20  Joseph S. Myers  <jsm@polyomino.org.uk>
1081
1082         * c-common.c (expand_tree_builtin): Ensure creal and cimag
1083         functions do not return lvalues.
1084
1085 2003-10-20  Jason Merrill  <jason@redhat.com>
1086
1087         PR c/12553
1088         * tree.c (build1) <ADDR_EXPR>: Set TREE_SIDE_EFFECTS
1089         appropriately.
1090
1091         PR c/11446
1092         * stor-layout.c (layout_decl): Fix alignment handling.
1093
1094 2003-10-20  Joseph S. Myers  <jsm@polyomino.org.uk>
1095
1096         * doc/extend.texi: Deprecate casts as lvalues.
1097
1098 2003-10-20  Jan Hubicka  <jh@suse.cz>
1099
1100         * toplev.c (rest_of_compilation): Fix webizer pass ordering.
1101
1102         * cgraphunit.c (decide_is_function_needed):  Fix test dealing
1103         with functions implicitly made inline.
1104
1105         * cgraphunit.c (cgraph_decide_inlining_incrementally):  New function.
1106         (cgraph_finalize_function): Use it.
1107         (cgraph_mark_inline): Allow incrmental decisions
1108         * invoke.texi (max-inline-slope, min-inline-insns): Kill.
1109         * params.def (PARAM_MAX_INLINE_SLOPE, PARAM_MIN_INLINE_INSNS): Kill.
1110         * tree-inline.c (limits_allow_inlining): Kill.
1111         (expand_call_inline): Always use unit-at-a-time path.
1112
1113 2003-10-20  Zack Weinberg  <zack@codesourcery.com>
1114
1115         * fixinc/inclhack.def (hpux11_snprintf): New edit.
1116         * fixinc/fixincl.x: Regenerate.
1117         * fixinc/tests/base/stdio.h: Add test for hpux11_snprintf.
1118
1119 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
1120
1121         * Makefile.in (install-info): Simplify.
1122         ($(DESTDIR)$(infodir)/%.info): New rule.
1123         * configure.in (target_list): Remove install-info.
1124         * doc/.cvsignore (gcc.info*): Remove.
1125         (gccint.info*): Likewise.
1126         (gccinstall.info*): Likewise.
1127         (cpp.info*): Likewise.
1128         (cppinternals.info*): Likewise.
1129         (*.info*): Add it.
1130         * doc/sourcebuild.texi: Update description of install-info.
1131         * objc/Make-lang.in (objc.install-info): Remove.
1132
1133 2003-10-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1134
1135         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Define _ABIO32.
1136         Use it in _MIPS_SIM definition.
1137         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Likewise.
1138
1139 2003-10-20  Zack Weinberg  <zack@codesourcery.com>
1140
1141         * config/i386/i386.c (print_reg): Abort if REGNO (x) is a
1142         virtual register, but only if file == asm_out_file.
1143         * config/i386/i386.h (HI_REGISTER_NAMES): Use "argp", not "",
1144         for ARG_POINTER_REGNUM.
1145
1146 2003-10-20  Zack Weinberg  <zack@codesourcery.com>
1147
1148         * c-common.c (registered_builtin_types): New static.
1149         (c_common_type_for_mode): Consult registered_builtin_types.
1150         (c_register_builtin_type): Add type to registered_builtin_types.
1151         * optabs.c (init_floating_libfuncs): Initialize libfuncs for
1152         all MODE_FLOAT modes, not just the ones corresponding to
1153         float_type_node, double_type_node, and long_double_type_node.
1154
1155 2003-10-20  Richard Henderson  <rth@redhat.com>
1156
1157         * config/alpha/alpha.h (PREDICATE_CODES): Add normal_memory_operand.
1158         * config/alpha/alpha-protos.h: Remove PREDICATE_CODES prototypes.
1159
1160 2003-10-20  Dorit Naishlos  <dorit@il.ibm.com>
1161
1162         * config/rs6000/rs6000.h: (rs6000_sched_insert_nops):
1163         support new flag -minsert-sched-nops.
1164         (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Define.
1165         * config/rs6000/rs6000.c: (rs6000_sched_insert_nops):
1166         support new flag -minsert-sched-nops.
1167         (is_cracked_insn, is_microcoded_insn): New functions.
1168         (rs6000_sched_finish): New function.
1169         (rs6000_issue_rate): Return 5 for power4.
1170         (get_next_active_insn, insn_terminates_group_p): New
1171         functions.
1172         (is_costly_group, force_new_group): New functions.
1173         (redefine_groups, pad_groups): New functions.
1174         (rs6000_variable_issue): Use new functions.
1175         * doc/invoke.texi (-minsert-sched-nops): Document new
1176         option.
1177
1178 2003-10-20  David S. Miller  <davem@redhat.com>
1179
1180         * config/sparc/sparc.md (type attribute): Add new insn types
1181         fpa, fpm_pack, fgm_mul, fgm_pdist, and fgm_cmp for VIS.
1182         (patterns emitting VIS insns): Use them.
1183         * config/sparc/ultra1_2.md: Add VIS scheduling rules.
1184         * config/sparc/ultra3.md: Likewise.
1185
1186 2003-10-20  Falk Hueffner  <falk@debian.org>
1187
1188         PR target/12654
1189         * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't do
1190         comparison against constant by adjusting the argument except for
1191         EQ and NE.
1192
1193 2003-10-19  Mark Mitchell  <mark@codesourcery.com>
1194
1195         * config.gcc: Add support for arm926ejs, arm1026ejs, arm1136js,
1196         arm1136jfs, and armv6j.
1197         * config/arm/arm.c (FL_ARCH6J): New macro.
1198         (FL_VFPV2): Likewise.
1199         (all_cores): Add entries for arm926ejs, arm1026ejs, arm1136js,
1200         and arm1136jfs.
1201         (all_architectures): Add entry for armv6j.
1202         (arm_override_options): Add entries for arm926ejs, arm1026ejs,
1203         arm1136js, and arm1136jfs.
1204         * config/arm/arm.h (TARGET_CPU_arm926ej_s): New macro.
1205         (TARGET_CPU_arm1026ej_s): Likewise.
1206         (TARGET_CPU_arm1136j_s): Likewise.
1207         (TARGET_CPU_arm1136jf_s): Likewise.
1208         * doc/invoke.texi: Document new ARM cores and architecture
1209         variants.
1210
1211 2003-10-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1212
1213         * Makefile.in (toplev.o): Add value-prof.h dependency.
1214         (value-prof.o): Add REGS_H dependency.
1215         * common.opt (fprofile-values, fvpt): New.
1216         * flags.h (flag_value_profile_transformations): Declare.
1217         * opts.c (common_handle_option): Handle -fprofile_values and
1218         -fvpt.
1219         * profile.c (branch_prob): Don't remove death notes here.
1220         * timevar.def (TV_VPT): New.
1221         * value-prof.c: Include regs.h.
1222         (insn_divmod_values_to_profile, gen_divmod_fixed_value, gen_mod_pow2,
1223         gen_mod_subtract, divmod_fixed_value_transform,mod_pow2_value_transform,
1224         mod_subtract_transform, value_profile_transformations): New.
1225         (insn_values_to_profile): Call insn_divmod_values_to_profile.
1226         (find_values_to_profile): Add dumps.
1227         * value-prof.h (value_profile_transformations): Declare.
1228         * toplev.c: Include value-prof.h.
1229         (rest_of_handle_value_profile_transformations): New.
1230         (enum dump_file_index): Add DFI_vpt.
1231         (dump_file): Add vpt dump.
1232         (flag_value_profile_transformations): New.
1233         (lang_independent_options): Add flag_profile_values and
1234         flag_value_profile_transformations.
1235         (rest_of_compilation): Call
1236         rest_of_handle_value_profile_transformations.
1237         (process_options): Let -fvpt imply -fprofile-values.
1238         * doc/invoke.texi (-fvpt): Document.
1239
1240 2003-10-19  Jan Hubicka  <jh@suse.cz>
1241
1242         * i386.c (print_reg): Do not abort on certain registers.
1243
1244         PR optimization/12612
1245         * reg-stack.c (subst_stack_regs_pat):  Use st(1) for clobbers.
1246         * i386.md (fpatan, fyl2x, fscale patterns and expanders): Use
1247         match_scratch; avoid bogus paralles.
1248
1249         PR target/12674
1250         * i386.c (ix86_function_regparm): Disable implicit register passing
1251         conventions when profiling.
1252
1253 2003-10-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
1254             Richard Henderson  <rth@redhat.com>
1255
1256         PR optimization/8178
1257         * config/i386/i386.md (*movsi_zero): Delete.
1258         (*ffs_no_cmove): Use ix86_expand_clear to zero the third operand.
1259
1260 2003-10-19  Richard Henderson  <rth@redhat.com>
1261
1262         * config/alpha/alpha.c (fix_operator): New.
1263         (divmod_operator): Tidy.
1264         (alpha_emit_xfloating_cvt): Handle UNSIGNED_FIX.
1265         * config/alpha/alpha.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
1266         (PREDICATE_CODES): Update.
1267         * config/alpha/alpha.md (fix_truncdfsi_ieee): Use match_operator.
1268         (fix_truncdfsi_internal, fix_truncdfdi_ieee): Likewise.
1269         (fix_truncsfsi_ieee, fix_truncsfsi_internal): Likewise.
1270         (fix_truncsfdi_ieee): Likewise.
1271         (fix_truncdfdi2, fix_truncsfdi2): Turn into define_expand.
1272         (fixuns_truncdfdi2, fixuns_truncsfdi2, fixuns_trunctfdi2): New.
1273         * config/alpha/alpha-protos.h: Update.
1274
1275 2003-10-19  Richard Sandiford  <rsandifo@redhat.com>
1276
1277         * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Simplify.
1278         * config/mips/mips.c (mips_load_got): Assume Pmode == ptr_mode.
1279         * config/mips/mips.md (extendsidi2, *extendsidi2): Merge. Don't accept
1280         constant operands.
1281
1282 2003-10-18  Kazu Hirata  <kazu@cs.umass.edu>
1283
1284         * doc/extend.texi: Fix typos.
1285         * doc/invoke.texi: Likewise.
1286
1287 2003-10-18  Nicolas Pitre <nico@cam.org>
1288
1289         * config/arm/arm.c (arm_override_options): Use arm_tune_xscale for
1290         XScale optimizations not arm_arch_xscale.
1291         * config/arm/arm.h (CONSTANT_ALIGNMENT_FACTOR, MOVE_RATIO): Likewise.
1292
1293 2003-10-18  Ulrich Weigand  <uweigand@de.ibm.com>
1294
1295         * config/s390/s390-protos.h (shift_count_operand): Add prototype.
1296         * config/s390/s390.c (shift_count_operand): New function.
1297         (s390_extra_constraint): Use it to implement 'Y' constraint.
1298         (print_shift_count_operand): New function.
1299         (print_operand): Use it to implement '%Y'.
1300         * config/s390/s390.h (EXTRA_ADDRESS_CONSTRAINT): Add 'Y' constraint.
1301         (PREDICATE_CODES): Add shift_count_operand.
1302         * config/s390/s390.md ("rotldi3"): Merge alternatives,
1303         using "shift_count_operand" predicate and "Y" constraint,
1304         and "%Y" to output the combined shift count.
1305         ("rotlsi3"): Likewise.
1306         ("ashldi3", "*ashldi3_31", "*ashldi3_64"): Likewise.
1307         ("ashrdi3", "*ashrdi3_31", "*ashrdi3_64", "*ashrdi3_cc_31",
1308         "*ashrdi3_cc_64", "*ashrdi3_cconly_31", "*ashrdi3_cconly_64"): Likewise.
1309         ("ashlsi3", "ashrsi3", "*ashrsi3_cc", "*ashrsi3_cconly"): Likewise.
1310         ("lshrdi3", "*lshrdi3_31", "*lshrdi3_64"): Likewise.
1311         ("lshrsi3"): Likewise.
1312
1313 2003-10-18  Gunther Nikl  <gni@gecko.de>
1314
1315         * config/m68k/m68k.c (m68k_output_function_epilogue): Add missing
1316         argument to asm_fprintf statement.
1317
1318 2003-10-18  Fariborz Jahanian  <fjahanian@apple.com>
1319
1320         * rs6000.md: Separate TARGET_POWERPC64 patterns for TARGET_64BIT or TARGET_32BIT.
1321         (ashrdisi3_noppc64) Generate more efficient code for 32-bit right-shift of
1322         a "long long" argument.
1323
1324 2003-10-18  Alexandre Oliva  <aoliva@redhat.com>
1325
1326         * final.c (final_scan_insn): Run FINAL_PRESCAN_INSNS on asm insns
1327         as well.
1328
1329 2003-10-18  Richard Sandiford  <rsandifo@redhat.com>
1330
1331         * rtl.h (rtl_size): Declare.
1332         (rtunion): Remove rtwint.
1333         (rtx_def): Replace 'fld' with a union of an rtunion or a HOST_WIDE_INT.
1334         (RTX_HDR_SIZE, RTX_SIZE): New macros.
1335         (RTL_CHECK1): Adjust for new rtx_def layout.
1336         (RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2): Likewise.
1337         (XWINT, XCWINT): Likewise.  Access the rtx structure directly.
1338         (X0WINT): Remove.
1339         (X0ANY): New macro.
1340         * rtl.def: Adjust comments for new rtx_def layout.
1341         * ggc.h (ggc_alloc_rtx): Take the rtx code as argument, not the
1342         number of slots.
1343         * rtl.c (rtx_size): New array.
1344         (rtx_alloc): Adjust call to ggc_alloc_rtx.  Use RTX_HDR_SIZE.
1345         (copy_rtx): Use RTX_HDR_SIZE.  Adjust for new rtx_def layout.
1346         (shallow_copy_rtx): Adjust call to ggc_alloc_rtx.  Use RTX_SIZE.
1347         * integrate.c (copy_rtx_and_substitute): Use X0ANY to copy '0' fields.
1348         * emit-rtl.c (copy_most_rtx): Likewise.
1349         (copy_rtx_if_shared): Use RTX_SIZE.
1350         (copy_insn_1): Use RTX_HDR_SIZE.  Adjust for new rtx_def layout.
1351         * gengenrtl.c (gendef): Adjust ggc_alloc_rtx call.  Use RTX_HDR_SIZE.
1352         * gengtype.c (write_rtx_next): Use RTX_HDR_SIZE.
1353         (adjust_field_rtx_def): Expect "rtx_def" to be a union rather than
1354         an array.  Adjust output for new rtx_def layout.
1355         * ggc-page.c (RTL_SIZE): Use RTX_HDR_SIZE.
1356         * reload1.c (eliminate_regs): Use RTX_SIZE.
1357         * rtlanal.c (loc_mentioned_in_p): Adjust for new rtx_def layout.
1358         * gdbinit.in (pi): Likewise.
1359
1360 2003-10-18  Jan Hubicka  <jh@suse.cz>
1361
1362         * integrate.c (copy_decl_for_inlining): Revert previous patch.
1363
1364 2003-10-18  Jan Hubicka  <jh@suse.cz>
1365
1366         * integrate.c (copy_decl_for_inlining): Fix copying of copies.
1367
1368 2003-10-18  Roger Sayle  <roger@eyesopen.com>
1369
1370         * libgcc.texi: Group multi-word types, such as "long double" and
1371         "unsigned int", using braces in @deftypefn and @deftypefnx nodes.
1372         Document __unord?f2 as returning a non-zero value, not just one.
1373
1374 2003-10-18  Hans-Peter Nilsson  <hp@bitrange.com>
1375
1376         * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Define.
1377         ($(T)crti.o, $(T)crtn.o): Pass CRTSTUFF_T_CFLAGS here too.
1378
1379 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
1380
1381         * config/i386/k6.md (k6_alux): Use the 'mode' attribute instead of
1382         match_operand.
1383
1384 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
1385
1386         * config/sparc/sparc.c (function_arg_record_value_1): New fourth
1387         parameter packed_p.  Search for a DECL_PACKED field only if
1388         packed_p is false.  Pass packed_p recursively.
1389         (function_arg_record_value_2): Likewise.
1390         (function_arg_record_value): Update calls to
1391         function_arg_record_value_1 and function_arg_record_value_2.
1392
1393 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
1394
1395         * cse.c (cse_insn) [src_folded]: Check that the tentative replacement
1396         was successfully forced to memory before using the result.
1397
1398 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
1399
1400         PR optimization/8178
1401         * config/i386/i386.md (*movsi_zero): New insn to set
1402         a register to zero on TARGET_USE_MOV0 targets.
1403
1404 2003-10-18  Kelley Cook  <kcook@gcc.gnu.org>
1405
1406         * Makefile.in (Makefile): Depend on the all Make-lang.in fragments.
1407         (POSTSTAGE1_FLAGS_TO_PASS): Pass down MAKEINFO and MAKEINFOFLAGS.
1408
1409 2003-10-17  David Edelsohn  <edelsohn@gnu.org>
1410
1411         * doc/invoke.texi (gcse-las): Fix typo.
1412
1413 2003-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
1414
1415         * doc/install.texi: Remove first part of the sentence for
1416         zsh not working.  Change gcc to GCC.
1417
1418         PR bootstrap/12546
1419         * doc/install.texi: Document that zsh does not work when
1420         configuring gcc.
1421
1422 2003-10-17  Nathanael Nerode  <neroden@gcc.gnu.org>
1423
1424         * config/ptx4.h: Switch to DWARF 2; update comments.
1425
1426 2003-10-17  Segher Boessenkool  <boessen@de.ibm.com>
1427             Hartmut Penner  <hpenner@de.ibm.com>
1428
1429         PR 10404, partial 11591, partial 11601
1430         * config/rs6000/altivec.md ("altivec_dst", "altivec_dstt",
1431         "altivec_dstst", "altivec_dststt", "altivec_lvsl", "altivec_lvsr",
1432         "altivec_lvebx", "altivec_lvehx", "altivec_lvewx", "altivec_lvxl",
1433         "altivec_lvx", "altivec_stvx", "altivec_stvxl", "altivec_stvebx",
1434         "altivec_stvehx", "altivec_stvewx"): Use a memory_operand.
1435         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): New function.
1436         (altivec_expand_stv_builtin): Adjust for the memory_operand.
1437         (altivec_expand_builtin): Call altivec_expand_lv_builtin.
1438         (altivec_init_builtins): Use `long int' for memory offsets.
1439
1440 2003-10-17  Jan Hubicka  <jh@suse.cz>
1441
1442         * opts.c  (common_handle_option): Handle OPT_fweb
1443         * invoke.texi (-fweb): Add missing parts of documentation.
1444
1445 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1446
1447         * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Undef
1448         before redefinition.
1449
1450 2003-10-17  Mostafa Hagog  <mustafa@il.ibm.com>
1451
1452         * common.opt: Add description of the new -fgcse-las flag.
1453         * flags.h (flag_gcse_las): Declaration of global flag_gcse_las.
1454         * gcse.c (hash_scan_set): Handle the case of store expression and
1455         insert the memory expression to the hash table, this way we make it
1456         possible to discover redundant loads after stores and remove them.
1457         (pre_insert_copy_insn): moved the call to update_ld_motion_stores,
1458         to pre_insert_copies, it is not the correct place to call it after
1459         adding stores to be in the available expression hash table.
1460         (pre_insert_copies): Added the call to update_ld_motion_stores when
1461         one or more copies were inserted.
1462         * opts.c (common_handle_option): Handle the -fgcse-las flag.
1463         * toplev.c (flag_gcse_las): Initialization of flag_gcse_las.
1464
1465         * doc/invoke.tex: Document new -fgcse-las flag.
1466
1467 2003-10-18  Alan Modra  <amodra@bigpond.net.au>
1468
1469         * config/rs6000/crtsavres.asm: Correct alignment of powerpc64 code
1470         for posterity, then remove it.
1471
1472 2003-10-17  Richard Earnshaw <rearnsha@arm.com>
1473             Nathan Sidwell  <nathan@codesourcery.com>
1474
1475         * config/arm/arm.c (use_return_insn): Not a single instruction, if
1476         there's a frame pointer.
1477         (arm_output_epilogue): Protect stack pointer from being corrupted
1478         on interrupt.
1479
1480 2003-10-17  Ulrich Weigand  <uweigand@de.ibm.com>
1481
1482         * ifcvt.c (noce_try_addcc): Handle ifs with 'else' case.
1483
1484 2003-10-17  Ulrich Weigand  <uweigand@de.ibm.com>
1485
1486         * combine.c (simplify_set): Do not clear out undobuf.other_insn
1487         already set elsewhere.
1488
1489 2003-10-17  Kelley Cook  <kcook@gcc.gnu.org>
1490
1491         * config/i386/i386.c (ix86_expand_prologue):  Use
1492         gen_allocate_stack_worker.
1493
1494 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1495
1496         * config.gcc (mips-sgi-irix6*o32): Only enable use_collect2
1497         without gas.
1498         (mips-sgi-irix6*): Likewise.
1499
1500         * config/mips/iris6gas.h: New file.
1501         * gcc/config.gcc (mips-sgi-irix6*): Use it.
1502
1503         * config/mips/mips.h (TARGET_IRIX): Provide default.
1504         (TARGET_IRIX5): Likewise.
1505         (TARGET_SGI_O32_AS): Likewise.
1506         * config/mips/iris5.h (TARGET_IRIX): Redefine as 1.
1507         (TARGET_IRIX5): Likewise.
1508         * config/mips/iris6.h (TARGET_IRIX6): Remove.
1509         (TARGET_IRIX5): Redefine as 0.
1510
1511         * config/mips/mips.c (mips_output_external): Test for IRIX 6 O32
1512         linker workaround with TARGET_IRIX and mips_abi instead of
1513         ASM_OUTPUT_UNDEF_FUNCTION.
1514         (mips_file_end): Inline old ASM_OUTPUT_UNDEF_FUNCTION definition,
1515         testing TARGET_IRIX and mips_abi explicitly.
1516         * config/mips/iris5.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove.
1517         * config/mips/iris6.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove undef.
1518
1519         * config/mips/mips.c (irix_output_external_libcall): Renamed from
1520         mips_output_external_libcall.
1521         Use new TARGET_IRIX in guard.
1522         * config/mips/mips-protos.h (irix_output_external_libcall): Match
1523         this.
1524         * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Likewise.
1525
1526         * config/mips/iris5gas.h (HAVE_GAS_SHF_MERGE): Update comment.
1527         Define as 0.
1528
1529         * config/mips/iris6.h (FUNCTION_NAME_ALREADY_DECLARED): Define
1530         depending on mips_abi.
1531         * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Define as 1.
1532         * config/mips/mips.c (mips_output_function_prologue): Test
1533         FUNCTION_NAME_ALREADY_DECLARED at runtime.
1534         (mips_output_function_epilogue): Likewise.
1535         (build_mips16_function_stub): Likewise.
1536         (build_mips16_call_stub): Likewise.
1537         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Provide
1538         default.
1539
1540         * config/mips/iris6.h (DWARF2_UNWIND_INFO): Don't define for native
1541         IRIX 6 O32 assembler.
1542         (SUBTARGET_CC1_SPEC): Enforce mips2 ISA with O32 ABI.
1543         (TARGET_OS_CPP_BUILTINS): Define _ABIO32, use it to define
1544         _MIPS_SIM for O32 ABI.
1545         (DWARF2_FRAME_INFO): Don't define for native IRIX 6 O32 assembler.
1546         (ASM_DECLARE_FUNCTION_NAME): Integrate mips.h version.
1547         (ASM_DECLARE_FUNCTION_SIZE): Move undef before redefinition.
1548         Integrate O32 version.
1549         (SUBTARGET_ASM_SPEC): Handle -mabi=32.
1550         (SUBTARGET_ASM_DEBUGGING_SPEC): Add mdebug_asm_spec for gas with
1551         O32 ABI.
1552         (BSS_SECTION_ASM_OP_32): Define.
1553         (BSS_SECTION_ASM_OP_64): Likewise.
1554         (BSS_SECTION_ASM_OP): Define differently for O32 and N32/N64 ABIs
1555         using them.
1556         (TARGET_ASM_NAMED_SECTION): Reflect renaming.
1557         Move up to allow override for O32 ABI without GNU as.
1558         (EH_FRAME_SECTION_NAME): Define explicitly.
1559         (MUST_USE_SJLJ_EXCEPTIONS): Define.
1560         [_MIPS_SIM == _ABIO32 && !GAS] (CTORS_SECTION_ASM_OP,
1561         DTORS_SECTION_ASM_OP): Dummy definitions.
1562         (TARGET_ASM_NAMED_SECTION): Undef statically.
1563         (EH_FRAME_SECTION_NAME): Likewise.
1564         (ASM_OUTPUT_FILENAME): Integrate mips.h version.
1565         (LINK_SPEC): Only use default options -call_shared -no_unresolved
1566         without -r.
1567         Don't pass -init, -fini with -mabi=32.
1568         (COLLECT_PARSE_FLAG): Define.
1569
1570         * config/mips/mips.c (iris6_asm_named_section_1): Changed guard to
1571         TARGET_IRIX.
1572         Renamed to use irix_ prefix.
1573         (iris6_asm_named_section): Likewise.
1574         (iris_section_align_entry_eq): Likewise.
1575         (iris_section_align_entry_hash): Likewise.
1576         (iris6_file_start): Likewise.
1577         (iris6_section_align_1): Likewise.
1578         (iris6_file_end): Likewise.
1579         (iris6_section_type_flags): Likewise.
1580         (iris_section_align_htab): Likewise.
1581         (iris_orig_asm_out_file): Likewise.
1582         [TARGET_IRIX] (TARGET_ASM_FILE_START): Reflect rename.
1583         (TARGET_ASM_FILE_END): Likewise.
1584         (TARGET_SECTION_TYPE_FLAGS): Likewise.
1585
1586         * config/mips/mips.c [TARGET_IRIX5 && !TARGET_IRIX6]
1587         (TARGET_ASM_UNALIGNED_HI_OP): Use runtime initialization in
1588         override_options instead.
1589         (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
1590         (TARGET_ASM_UNALIGNED_DI_OP): Likewise.
1591         * config/mips/mips.c (override_options) [USE_COLLECT2]: Restore
1592         flag_gnu_linker to defaults without USE_COLLECT2 for non-IRIX O32
1593         assemblers.
1594         Likewise for constructor/destructor handling.
1595         (override_options): Handle IRIX O32 assembler quirks.
1596         [TARGET_IRIX] (irix_asm_named_section): Handle O32 ABI with and
1597         without gas.
1598         (mips_file_start): Use new TARGET_IRIX.
1599         (mips_declare_object_name): No special processing for IRIX O32
1600         assembler.
1601         (mips_finish_declare_object): Likewise.
1602         (irix_asm_output_align): Renamed from iris6_asm_output_align.
1603         Don't record alignment for O32 ABI.
1604         (irix_file_start): Renamed from iris6_file_start.
1605         Return early for O32 ABI.
1606         (irix_file_end): Renamed from iris6_file_end.
1607         Don't emit .section directives for O32 ABI.
1608         * config/mips/iris6.h (ASM_OUTPUT_ALIGN): Reflect renaming.
1609         * config/mips/mips-protos.h (irix_asm_output_align): Likewise.
1610
1611         * config/mips/t-iris6 (MULTILIB_OPTIONS): Add mabi=32.
1612         (MULTILIB_OSDIRNAMES): Likewise.
1613
1614 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1615
1616         * collect2.c (COLLECT_PARSE_FLAG): Provide default.
1617         (main): Use it.
1618         * doc/tm.texi (COLLECT_PARSE_FLAG): Document it.
1619
1620 2003-10-17  Richard Earnshaw  <rearnsha@arm.com>
1621
1622         * arm-modes.def (CC_Nmode): New condition code mode.
1623         * arm.c (thumb_condition_code): Delete.
1624         (arm_select_cc_mode): Handle single-bit test for Thumb.
1625         (arm_print_operand, cases 'd' and 'D'): Don't special case the
1626         condition code logic for Thumb.
1627         (get_arm_condition_code): Handle CC_Nmode.
1628         (thumb_cbrch_target_operand): New function.
1629         * arm.h (PREDICATE_CODES): Add thumb_cbrch_target_operand.
1630         * arm-protos.h (thumb_cbrch_target_operand): Add prototype.
1631         * arm.md: Add Thumb split patterns for zero_extract and
1632         sign_extract.
1633         (tbit_cbranch, andsi3_cbranch_scratch, andsi3_cbranch)
1634         (orrsi3_cbranch_scratch, orrsi3_cbranch, xorsi3_cbranch_scratch)
1635         (xorsi3_cbranch, addsi3_cbranch, addsi3_cbranch_scratch)
1636         (subsi3_cbranch, subsi3_cbranch_scratch): New Thumb patterns.
1637         (cbranchne_decr1): Re-work to use CC_Nmode.
1638
1639         * arm.c (thumb_expand_epilogue): Add clobbers of registers restored
1640         by the return instruction.  Add a use of the link register if it
1641         wasn't stored.
1642
1643 2003-10-17  Richard Earnshaw  <rearnsha@arm.com>
1644
1645         * flow.c (init_propagate_block_info): Don't abort if a conditional
1646         jump is not a comparison of a register.  Instead, just don't record
1647         conditional life information.
1648
1649 2003-10-16  Jan Hubicka  <jh@suse.cz>
1650
1651         PR optimization/12630
1652         * pa.md (movstrsi, movstrsi_internal): Use match_scratch in clobbers
1653         for operands 7 and 8.
1654
1655 2003-10-16  Kelley Cook  <kcook@gcc.gnu.org>
1656
1657         * objc/Make-lang.in (objc-parse.o): Honor $(parsedir) for objc-parse.c.
1658
1659 2003-10-16  Danny Smith  <dannysmith@users.sourceforge.net>
1660
1661         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
1662
1663         * config/i386/winnt.c (gen_stdcall_suffix): Make static
1664         (gen_fastcall_suffix): Likewise.
1665         (i386_pe_dllexport_p): Likewise.
1666         (i386_pe_dllimport_p): Likewise.
1667         (i386_pe_mark_dllexport): Likewise.
1668         (i386_pe_mark_dllimport): Likewise.
1669         (i386_pe_asm_named_section): Fix formatting.
1670
1671 2003-10-16  Zack Weinberg  <zack@codesourcery.com>
1672
1673         * configure.in: Add snprintf to gcc_AC_CHECK_DECLS list.
1674         * system.h: Declare snprintf if necessary.
1675         * configure, config.in: Regenerate.
1676
1677 2003-10-15  David Edelsohn  <edelsohn@gnu.org>
1678
1679         * config/rs6000/rs6000.c (rs6000_va_arg): Only align vector
1680         arguments if TARGET_ALTIVEC_ABI.
1681
1682 2003-10-15  Roger Sayle  <roger@eyesopen.com>
1683
1684         * builtins.c (fold_builtin_memcpy, fold_builtin_mempcpy,
1685         fold_builtin_memmove, fold_builtin_strcpy, fold_builtin_strncpy,
1686         fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
1687         New functions.
1688         (expand_builtin_memcpy): Use integer_zerop instead of testing
1689         host_integerp and tree_low_cst directly.  Move misapplied hunk
1690         for optimization wher SRC and DEST point to the same location.
1691         (expand_builtin_mempcpy): From here.
1692         (expand_builtin_memmove): Use integer_zerop instead of testing
1693         host_integerp and tree_low_cst_directly.
1694         (expand_builtin_memset): Likewise.
1695         (expand_builtin_memcmp): Likewise (and for integer_onep).
1696         (expand_builtin_strncmp): Likewise.
1697         (fold_builtin): Call the appropriate fold_builtin_foo functions
1698         to optimize memcpy, mempcpy, memmove, strcpy, strncpy, memcmp,
1699         strcmp and strncmp.
1700
1701 2003-10-15  Geoffrey Keating  <geoffk@apple.com>
1702
1703         * config/darwin-protos.h (machopic_non_lazy_ptr_name): Delete
1704         prototype.  Clean up some whitespace.
1705         * config/darwin.c: Use gen_rtx_FOO (...) rather than
1706         gen_rtx (FOO, ...).
1707         (machopic_non_lazy_ptr_name): Make static.
1708         (name_needs_quotes): Allow '.' and '$' unquoted.
1709         (machopic_legitimize_pic_address): Improve codegen in dynamic-no-pic
1710         case.
1711
1712 2003-10-15  Gábor Lóki  <alga@rgai.hu>
1713
1714         * fold-const.c (tree_swap_operands_p): Disable some features
1715         when optimizing for size.
1716
1717 2003-10-15  David Daney  <ddaney@avtrex.com>
1718
1719         * config/mips/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New
1720         * config/mips/mips.h (DWARF_FRAME_REGNUM): Fixed to allow unwind
1721         from leaf functions.
1722         (DWARF_FRAME_RETURN_COLUMN): Ditto.
1723         (SIGNAL_UNWIND_RETURN_COLUMN): New, used
1724         by MD_FALLBACK_FRAME_STATE_FOR.
1725         * testsuite/gcc.dg/cleanup-9.c: Added mips*-*-linux* target.
1726
1727 2003-10-15  Zack Weinberg  <zack@codesourcery.com>
1728
1729         * genmodes.c: Include hashtab.h.
1730         (modes_by_name, hash_mode, eq_mode, struct mode_adjust)
1731         (adj_bytesize, adj_alignment, adj_format, new_adjust)
1732         (_ADD_ADJUST, ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FORMAT)
1733         (print_maybe_const_decl, emit_mode_adjustments): New.
1734         (known_modes): Rename to modes.
1735         (find_mode): Kill class argument; look up in hash table.
1736         (new_mode): Insert into hash table also.
1737         (new_adjust): New.
1738         (reset_float_format, make_partial_integer_mode)
1739         (make_vector_mode): Tweak error reporting.
1740         (reset_float_format): Correct type of fourth argument.
1741         (emit_insn_modes_h): Add #defines to help make mode_size,
1742         mode_base_align, and real_format_for_mode conditionally const.
1743         (emit_mode_size, emit_mode_base_align): Use print_maybe_const_decl.
1744         (emit_real_format_for_mode): Likewise, but temporarily disabled.
1745         (emit_insn_modes_c): Call emit_mode_adjustments.
1746         (main): Initialize modes_by_name.
1747         * Makefile.in: Update dependencies.
1748         * machmode.def: Document EXPR arguments and new ADJUST_* statements.
1749         * machmode.h: Use CONST_MODE_SIZE and CONST_MODE_BASE_ALIGN in
1750         declarations of mode_size and mode_base_align.  Declare
1751         init_adjust_machine_modes.
1752         * toplev.c (backend_init): Call init_adjust_machine_modes.
1753
1754 2003-10-15  Olivier Hainque  <hainque@act-europe.fr>
1755
1756         * genmodes.c (calc_wider_mode): Allocate enough room for all the
1757         entries we'll possibly assign in the sort buffer.
1758
1759 2003-10-15  Ulrich Weigand  <uweigand@de.ibm.com>
1760
1761         * config.gcc (s390x-ibm-tpf*): New target.
1762         * doc/install.texi: Document it.
1763         * config/s390/t-tpf: New file.
1764         * config/s390/tpf.h: New file.
1765
1766 2003-10-15  Hans-Peter Nilsson  <hp@axis.com>
1767
1768         PR target/12598
1769         * config/cris/cris.md (define_split "*mov_sidesi_biap_mem"+1)
1770         (define_splits "*mov_sidesi_mem"+1, "casesi"+9, +10, +11, +12):
1771         Use cris_mem_op and replace_equiv_address, not gen_rtx_MEM.
1772         ("call", "call_value", define_split "*mov_sidesi_mem"+19, +20)
1773         (define_split "*mov_sidesi_mem"+21, +22, +23, +24, +25, +26, +27)
1774         (define_split "*mov_sidesi_mem"+28, +29, +30): Use
1775         replace_equiv_address, not gen_rtx_MEM.
1776         * config/cris/cris.c (cris_mem_op): New match_operator function.
1777         (cris_notice_update_cc): Use replace_equiv_address, not
1778         gen_rtx_MEM.
1779         * config/cris/cris.h (PREDICATE_CODES): Add cris_mem_op.
1780
1781 2003-10-15  Bernardo Innocenti <bernie@develer.com>
1782
1783         * config/m68k/m68k.h (MASK_SEP_DATA, TARGET_SEP_DATA,
1784         MASK_ID_SHARED_LIBRARY, TARGET_ID_SHARED_LIBRARY): Move
1785         definitions after the other flags.
1786
1787 2003-10-14  Ziemowit Laski  <zlaski@apple.com>
1788
1789         * c-parse.in (methoddef, methodproto): Call objc_add_method()
1790         instead of add_method().
1791         * objc/objc-act.c (objc_check_decl): Do not check for
1792         constant_string_type.
1793         (add_method): Rename to objc_add_method().
1794         (really_start_method): Call objc_add_method() instead of
1795         add_method().
1796         * objc/objc-act.h (add_method): Rename to objc_add_method().
1797
1798 2003-10-14  Ulrich Weigand  <uweigand@de.ibm.com>
1799
1800         * config/s390/s390-protos.h (s390_alc_comparison): Add prototype.
1801         (s390_slb_comparison): Likewise.
1802         * config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
1803         New functions.
1804         * config/s390/s390.h (PREDICATE_CODES): Add s390_alc_comparison
1805         and s390_slb_comparison.
1806         * config/s390/s390.md ("*adddi3_31", "*subdi3_31"): Do not use on
1807         zSeries machines.
1808         ("*adddi3_31z", "*subdi3_31z"): New insns.
1809         ("*adddi3_alc_cc", "*adddi3_alc", "*subdi3_slb_cc", "*subdi3_slb",
1810         "*addsi3_alc_cc", "*addsi3_alc", "*subsi3_slb_cc", "*subsi3_slb"):
1811         New insns.
1812
1813 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
1814
1815         * configure.in: Clean up some feedback echoes.
1816         * configure: Regenerate.
1817
1818         * aclocal.m4: Properly quote names of macros being defined.
1819
1820         * config.gcc (am33_2.0-*-linux*): Use t-slibgcc-elf-ver.
1821
1822 2003-10-14  Steve Ellcey  <sje@cup.hp.com>
1823
1824         * config/ia64/ia64.c (ia64_expand_call): Force function address
1825         to DImode.
1826         * config/ia64/ia64.md (call_gp): Put DImode on operand 0.
1827
1828 2003-10-14  Ulrich Weigand  <uweigand@de.ibm.com>
1829
1830         * config/s390/s390.md ("muldf3", "*muldf3", "*muldf3_ibm",
1831         "mulsf3", "*mulsf3", "*mulsf3_ibm"): Do not clobber CC.
1832         ("divdf3", "*divdf3", "*divdf3_ibm", "divsf3", "*divsf3",
1833         "*divsf3_ibm"): Likewise.
1834
1835 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
1836
1837         * config.gcc, config/m68hc11/t-m68hc11-gas: Replace uses of
1838         target_alias with target_noncanonical.
1839
1840 2003-10-14  Geoffrey Keating  <geoffk@apple.com>
1841
1842         * expr.c (block_move_libcall_safe_for_call_parm): Clean up,
1843         and add case for machines where outgoing register parameters
1844         get stack space.
1845
1846         * config/darwin.c (machopic_indirect_data_reference): Use a scratch
1847         register when generating indirect address.
1848
1849 2003-10-14  Richard Earnshaw  <rearnsha@arm.com>
1850
1851         * arm.c (arm_addimm_operand): MODE arguemnt is unused.
1852         * arm.md (cbranchne_decr1): Fix bootstrap warning.
1853
1854 2003-10-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1855
1856         * fixinc/inclhack.def (alpha_pthread_gcc): New fix.
1857         * fixinc/fixincl.x: Regenerate.
1858         * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_GCC_CHECK]: New
1859         testcase.
1860         Fixes PR bootstrap/9330.
1861
1862 2003-10-13  Eric Christopher  <echristo@redhat.com>
1863
1864         * config/frv/frv.c (frv_adjust_field_align): Redo check for
1865         too wide bitfields.
1866         (frv_hard_regno_mode_ok): Add SPR_P and AP_FIRST.
1867         * config/frv/frv.h (FUNCTION_PROFILER): Remove abort call.
1868         (SBSS_SECTION_ASM_OP): Remove.
1869         (EXTRA_SECTIONS): Remove in_sbss.
1870         (EXTRA_SECTION_FUNCTIONS): Remove SBSS_SECTION_FUNCTION.
1871         (SBSS_SECTION_FUNCTION, sbss_section): Remove.
1872         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change sbss_section to
1873         named_section.
1874
1875 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
1876
1877         * Makefile.in, configure.in, config.host, mkheaders.in: Replace
1878         uses of ${target_alias} for directory names (and other places which
1879         won't like the empty string) with ${target_noncanonical}.  Introduce
1880         call early in configure.in to _GCC_TOPLEV_NONCANONICAL_TARGET so it's
1881         available.
1882         * configure: Regenerate.
1883
1884 2003-10-13  Ian Lance Taylor  <ian@wasabisystems.com>
1885
1886         * config/arm/iwmmxt.md (cond_iwmmxt_movsi_insn): New pattern.
1887         * config/arm/arm.md: For splits which rely on conditional moves,
1888         remove ! TARGET_IWMMXT condition.
1889
1890 2003-10-13  David S. Miller  <davem@redhat.com>
1891
1892         * ifcvt.c (num_removed_blocks): Rename to num_true_changes.
1893         (find_cond_trap): Always increment if we emit a conditional
1894         trap insn.
1895
1896 2003-10-13  Zack Weinberg  <zack@codesourcery.com>
1897
1898         * Makefile.in (BUILD_RTL): Replace $(BUILD_PREFIX)insn-modes.o
1899         with min-insn-modes.o.
1900         (STAGESTUFF): Add min-insn-modes.c.
1901         (genobjs): Add genmodes.o.
1902         (print-rtl.o, print-rtl1.o): Depend on $(TM_P_H).
1903         (insn-modes.o): Depend on $(TM_H) not $(GTM_H); also real.h.
1904         (min-insn-modes.c, min-insn-modes.o): New rules.
1905         (s-modes): Also generate min-insn-modes.c.
1906         ($(BUILD_PREFIX_1)insn-modes.o): Kill.
1907         * genmodes.c (struct mode_data): Add format field.
1908         (blank_mode, validate_mode, complete_mode): Update to match.
1909         (make_scalar_mode): Separate into make_int_mode and make_float_mode.
1910         (_SCALAR_MODE): Kill.
1911         (FLOAT_MODE, FRACTIONAL_FLOAT_MODE): Add format argument.
1912         (emit_insn_modes_c_header): Adjust.
1913         (emit_min_insn_modes_c_header, emit_real_format_for_mode)
1914         (emit_min_insn_modes_c): New functions.
1915         (emit_insn_modes_c): Call emit_real_format_for_mode.
1916         (main): Add -m option to generate min-insn-modes.c.
1917         * machmode.h: Update documentation.  Add format argument to
1918         all uses of FLOAT_MODE.
1919         * real.c: Don't define real_format_for_mode here.
1920
1921         * dwarfout.c: Move default definition of PRINT_REG...
1922         * defaults.h: ...here.
1923         * print-rtl.c: Include tm_p.h.
1924         (DEBUG_PRINT_REG, DEBUG_REGISTER_NAMES, debug_reg_names, reg_names):
1925         Kill.
1926         (print_rtx): Use PRINT_REG, not DEBUG_PRINT_REG.  But surround
1927         this entire block with #ifndef GENERATOR_FILE.
1928         * regclass.c: Unconditionally define reg_names.
1929         * config/mips/mips.h, config/rs6000/rs6000.h, config/sh/sh.h
1930         Don't define DEBUG_REGISTER_NAMES.
1931         * config/rs6000/darwin.h: Don't use DEBUG_REGISTER_NAMES in
1932         redefinition of REGISTER_NAMES.
1933         * config/i386/i386.h: Don't define DEBUG_PRINT_REG.
1934
1935         * combine.c: Change all preprocessor conditionals on
1936         EXTRA_CC_MODES to use SELECT_CC_MODE instead; rearrange a bit
1937         for clarity.
1938         * genopinit.c: Remove mention of EXTRA_CC_MODES in comment.
1939         * configure.in: Don't define EXTRA_CC_MODES.
1940         * configure, config.in: Regenerate.
1941         * doc/tm.texi: Remove documentation of EXTRA_CC_MODES.
1942
1943         * config/arc/arc.c, config/m32r/m32r.c, config/sparc/sparc.c:
1944         May assume that GET_MODE_CLASS is accurate for extra CC modes
1945         at all times.
1946
1947         * config/i860/i860.h (INIT_CUMULATIVE_ARGS): Pass correct
1948         number of arguments to aggregate_value_p.
1949
1950         * genmodes.c (RESET_FLOAT_FORMAT, reset_float_format): New.
1951         * machmode.def: Explain ARCH-modes.def.  Document
1952         RESET_FLOAT_FORMAT.  Improve commentary on various mode
1953         clusters.  Do not define OI, PQI, PHI, PSI, PDI, QF, HF, TQF,
1954         XF, or TF modes here.  Remove backward-compatibility
1955         definition of CC.
1956
1957         * config/alpha/alpha-modes.def: New file; define TF mode.
1958         * config/arc/arm-modes.def: Define XF mode.
1959         * config/c4x/c4x-modes.def: Define QF and HF modes.  Unset
1960         float format for SF and DF modes.
1961         * config/dsp16xx/dsp16xx-modes.def: New file; define HF mode.
1962         * config/i386/i386-modes.def: Define XF and TF modes.
1963         * config/i960/i960-modes.def: Define TF mode.
1964         * config/ia64/ia64-modes.def: Define TF and OI modes.
1965         * config/m68k/m68k-modes.def: New file; define XF mode.
1966         * config/mips/mips-modes.def: New file; define TF mode, reset
1967         formats for SF and DF modes.
1968         * config/pa/pa-modes.def: Define TF mode.
1969         * config/rs6000/rs6000.c: Define TF and PSI modes.
1970         * config/s390/s390-modes.def: Define OI mode.
1971         * config/sh/sh-modes.def: New file; define PSI mode.
1972         * config/sparc/sparc-modes.def: Define TF mode.
1973         * config/vax/vax-modes.def: New file; reset formats for SF and
1974         DF modes.
1975
1976         * config/c4x/c4x.c (c4x_override_options): No need to mess
1977         with real_format_for_mode or set REAL_MODE_FORMATs.
1978         (c4x_immed_int_constant): Don't apply GET_MODE_CLASS to rtx
1979         variable.
1980         * config/i386/i386.c (override_options): No need to set
1981         REAL_MODE_FORMATs here.
1982         * config/i960/i960.c (i960_initialize): Likewise.
1983         * config/m68k/m68k.c (m68k_override_options): Likewise.
1984         * config/ia64/ia64.c (ia64_override_options): Set REAL_MODE_FORMAT
1985         for TFmode only if not the default.
1986         * config/mips/mips.c (override_options): Likewise.
1987         * config/vax/vax.c (override_optionms): Set REAL_MODE_FORMAT for
1988         DFmode only if not the default.
1989
1990         * config/i370/i370.h (RET_REG): Don't consider TFmode.
1991         * config/m68hc11/m68hc11.c (print_operand): Don't consider XFmode.
1992         * config/dsp16xx/dsp16xx.c (hard_regno_mode_ok): #if 0 out use
1993         of modes that don't appear anywhere in the machine description.
1994
1995         * config/arc/arc-modes.def, config/arm/arm-modes.def
1996         * config/c4x/c4x-modes.def, config/frv/frv-modes.def
1997         * config/i386/i386-modes.def, config/i960/i960-modes.def
1998         * config/ia64/ia64-modes.def, config/mmix/mmix-modes.def
1999         * config/pa/pa-modes.def, config/pdp11/pdp11-modes.def
2000         * config/rs6000/rs6000-modes.def, config/s390/s390-modes.def
2001         * config/sparc/sparc-modes.def: Convert to new style for
2002         declaring extra CC modes.
2003
2004 2003-10-13  Zack Weinberg  <zack@codesourcery.com>
2005
2006         * cpplex.c (_cpp_clean_line): In the common case of a line
2007         with no trigraphs and no \-newline, avoid writing to memory.
2008         (_cpp_skip_block_comment): Use a local 'cur' pointer instead
2009         of the buffer member.  Make c an uchar to avoid unnecessary
2010         sign extensions.
2011
2012 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
2013
2014         * configure.in: Remove unnecessary test.
2015         * configure: Regenerate.
2016
2017         * configure.in: Fix grammatical error.  Move UWIN host error to...
2018         * config.host: Here.
2019         * configure: Regenerate.
2020
2021 2003-10-13  Andreas Krebbel  <krebbel1@de.ibm.com>
2022
2023         * config/s390/s390.md ("*fmadddf4", "*fmsubdf4", "*fmaddsf4",
2024         "*fmsubsf4"): Insns are now dependent on TARGET_FUSED_MADD instead
2025         of flag_unsafe_math_optimizations.
2026         * config/s390/s390.h ("MASK_NO_FUSED_MADD", "TARGET_NO_FUSED_MADD",
2027         "TARGET_FUSED_MADD", "TARGET_SWITCHES"): Introduced new target flags
2028         fused-madd and no-fused-madd.
2029         * doc/invoke.texi: Documented the new options fused-madd and
2030         no-fused-madd for S/390.
2031
2032 2003-10-14  Alan Modra  <amodra@bigpond.net.au>
2033
2034         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Choose
2035         MASK_ALIGN_NATURAL if rs6000_alignment_string not given.  Don't
2036         assign DEFAULT_ABI.
2037         (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Update comment.
2038         * config/rs6000/rs6000.c: Formatting.
2039         (rs6000_parse_alignment_option): Only set rs6000_alignment_flags
2040         when rs6000_alignment_string given.
2041
2042 2003-10-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
2043
2044         PR target/12538
2045         * config/sparc/sparc.c (MUST_SAVE_REGISTER): Delete.
2046         (sparc_flat_must_save_register_p): New function to decide whether
2047         a register must be saved/restored in the function prologue/epilogue.
2048         (sparc_flat_compute_frame_size): Use it instead of MUST_SAVE_REGISTER.
2049
2050 2003-10-12  Steven Bosscher  <steven@gcc.gnu.org>
2051
2052         * config/avr/avr.c, config/avr/avr-protos.h: Convert to
2053         ISO C90 function declarations and definitions.
2054         * config/sh/sh.c, config/sh/sh-protos.h: Likewise.
2055
2056 2003-10-12  Nathanael Nerode  <neroden@gcc.gnu.org>
2057
2058         * config.gcc (*-*-freebsd*): Use tm_defines instead of tiny
2059         config files which do the same thing.
2060         * config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
2061         config/freebsd6.h: Remove now unnecessary files.
2062
2063 2003-10-12  Steven Bosscher  <steven@gcc.gnu.org>
2064
2065         * c-common.c (c_common_truthvalue_conversion): Warn if the
2066         address of a non-weak function is used as a truth value.
2067
2068 2003-10-12  Kazu Hirata  <kazu@cs.umass.edu>
2069
2070         * config/h8300/h8300.c (WORD_REG_USED): Use SP_REG instead of
2071         a literal.
2072         * config/h8300/h8300.h (REGNO_OK_FOR_BASE_P): Use MAC_REG
2073         instead of a literal.
2074
2075 2003-10-12  Hans-Peter Nilsson  <hp@bitrange.com>
2076
2077         * doc/extend.texi (Function Attributes): Mention the exceptional
2078         path for noreturn-marked functions.
2079
2080 2003-10-12  Jan Hubicka  <jh@suse.cz>
2081
2082         * cgraphunit.c (cgraph_decide_inlining): Fix uninitialized variable
2083         warning.
2084
2085 2003-10-12  Danny Smith  <dannysmith@users.sourceforge.net>
2086
2087         * config/i386/i386.c (x86_this_parameter): Fix typo.
2088
2089 2003-10-11  Jan Hubicka  <jh@suse.cz>
2090
2091         * Makefile.in (web.o): New.
2092         * web.c: New file.
2093         * rtl.h (web_main): Declare.
2094         * timervar.def (TV_WEB): New.
2095         * toplev.c (dump_file_index, dump_file_info): Add DFI_web.
2096         (rest_of_hanle_web): New.
2097         (flag_web): New static variable.
2098         (lang_independent_options): Add "web".
2099         (rest_of_compilation): Call rest_of_handle_web.
2100         * invoke.texi (-fweb): Document.
2101         * common.opt (fweb): New.
2102         * flags.h (flag_web): New.
2103         * opts.c (decode_options): Set flag_web at -O3.
2104
2105         * passes.texi (web construction):  Document.
2106         * invoke.texi (-O3): Document that -fweb is enabled.
2107
2108         * regrename.c (regrename_optimize): Deal better with situation when
2109         replacement failed.
2110
2111         * sched-ebb.c: Include params.h and profile.h
2112         (schedule_ebbs):  Use tracer parameters to discover superblocks
2113         * Makefile.in (sched-ebb.o):  Add dependencies.
2114
2115 2003-10-11  Roger Sayle  <roger@eyesopen.com>
2116
2117         * fold-const.c (negate_mathfn_p): New function to determine whether
2118         a built-in mathematical function is sign preserving, f(-x) == -f(x).
2119         Add support for BUILT_IN_ASIN, BUILT_IN_ASINF and BUILT_IN_ASINL.
2120         (tree_swap_operands_p): Change API to take an additional argument
2121         indicating that the swapped operands evaluate in reverse order.
2122         Canonicalize VAR_DECLs and PARM_DECLs last if we can, i.e. neither
2123         operand side-effects or we don't care about flag_evaluation_order.
2124         (reorder_operands_p): New function to check whether its safe to
2125         evaluate the given operands in reverse order.
2126         (negate_expr_p):  We can always negate integer constants unless
2127         we honor -ftrapv and the signed type would overflow.  Only allow
2128         -(A-B) into B-A if reorder_operands_p says that its OK.  Allow
2129         negation of COMPLEX_CST if both real and imaginary parts can be
2130         negated.  Allow negation through floating point extensions and
2131         sign-preserving built-in functions.
2132         (negate_expr):  Move the code to negate integers from "fold" to
2133         here.  Always negate integer constants unless we honor -ftrapv
2134         and the signed type would overflow.  Always negate real constants
2135         unless we honor -ftrapping-math.  Only convert -(A-B) into B-A
2136         if allowed by reorder_operands_p.  Add support for COMPLEX_CST.
2137         Optimize negation through floating point extensions and
2138         sign-preserving built-in functions (as defined by negate_mathfn_p).
2139         (fold): Adjust calls to tree_swap_operands_p.
2140         (fold <NEGATE_EXPR>): Move the remaining negation optimizations
2141         to negate_expr_p/negate_expr.
2142         (fold <MINUS_EXPR>): Use reorder_operands_p to check whether we're
2143         allowed to convert (-A) - B into (-B) - A.
2144
2145 2003-10-11  Roger Sayle  <roger@eyesopen.com>
2146
2147         * builtins.c (expand_builtin_strcmp): Defend against the possibility
2148         that gen_cmpstrsi may fail: Stabilize the argument list against
2149         re-evaluation and expand the library call directly using this saved
2150         argument list if a cmpstrsi sequence can't be generated.
2151         (expand_builtin_strncmp): Likewise.
2152
2153         * config/i386/i386.md (cmpstrsi, movstrsi): Disable with -Os.
2154
2155 2003-10-11  Roger Sayle  <roger@eyesopen.com>
2156
2157         PR optimization/12260
2158         * simplify-rtx.c (simplify_unary_operation): Simplify all unary
2159         operations through CONST nodes.  Optimize (neg (plus X C)) as
2160         (minus -C X) for constant values C.
2161         (simplify_binary_operation): Optimize (minus (neg X) C) as
2162         (minus -C X) for constant values C.
2163         (simplify_plus_minus): Avoid creating (neg (const (plus X C)),
2164         instead create (minus -C X).
2165
2166 2003-10-11  Roger Sayle  <roger@eyesopen.com>
2167
2168         * expr.c (expand_expr <PLUS_EXPR>): Let expand_operands call
2169         safe_from_p for us, once it chooses an evaluation order.
2170         (expand_expr <MULT_EXPR>): Likewise.
2171         (expand_expr <MIN_EXPR> <MAX_EXPR>): Likewise.  If expand_operands
2172         places the second operand in "target", swap the operands.
2173         (do_store_flag): Let expand_operands call safe_from_p for us.
2174
2175 2003-10-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
2176
2177         PR optimization/12544
2178         * function.c (put_var_into_stack): Don't generate ADDRESSOFs
2179         for DECL_NONLOCAL decls.
2180
2181 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
2182
2183         * expr.c: Follow spelling conventions.
2184         * final.c: Likewise.
2185         * optabs.c: Likewise.
2186         * sched-deps.c: Likewise.
2187         * sdbout.c: Likewise.
2188
2189 Sat Oct 11 12:24:23 CEST 2003  Jan Hubicka  <jh@suse.cz>
2190
2191         * varasm.c (notice_global_symbol):  Fix handling of variables; avoid
2192         re-computing of variable.
2193
2194 2003-10-11  Richard Henderson  <rth@redhat.com>
2195
2196         * config/alpha/alpha.c (alpha_return_in_memory): Rename from
2197         return_in_memory, make static, change signature to match target hook.
2198         (alpha_setup_incoming_varargs): Make static, change signature to
2199         match target hook, add code for vms and unicos.
2200         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
2201         TARGET_PROMOTE_PROTOTYPES, TARGET_STRUCT_VALUE_RTX,
2202         TARGET_RETURN_IN_MEMORY, TARGET_SETUP_INCOMING_VARARGS,
2203         TARGET_STRICT_ARGUMENT_NAMING,
2204         TARGET_PRETEND_OUTGOING_VARARGS_NAMED): New.
2205         * config/alpha/alpha-protos.h: Update.
2206         * config/alpha/alpha.h (PROMOTE_FUNCTION_ARGS,
2207         PROMOTE_FUNCTION_RETURN, RETURN_IN_MEMORY,
2208         SETUP_INCOMING_VARARGS): Remove.
2209         * config/alpha/unicosmk.h (SETUP_INCOMING_VARARGS): Remove.
2210         * config/alpha/vms.h (SETUP_INCOMING_VARARGS): Remove.
2211
2212 2003-10-11  Ian Lance Taylor  <ian@wasabisystems.com>
2213
2214         * config/arm/arm.c (arm_regno_class): Handle IWMMXT_GR_REGS.
2215
2216 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
2217
2218         * config/m68k/lb1sf68.asm: Follow spelling conventions.
2219         * config/m68k/m68k.c: Likewise.
2220         * config/m68k/m68k.h: Likewise.
2221         * config/m68k/m68k.md: Likewise.
2222
2223 2003-10-11  Roger Sayle  <roger@eyesopen.com>
2224
2225         * builtins.c (expand_builtin_memcpy): Optimize case when the two
2226         pointer arguments are the equal, non-volatile and side-effect free.
2227         (expand_builtin_mempcpy): Likewise.
2228         (expand_builtin_memmove): Likewise.
2229         (expand_builtin_strcpy): Likewise.
2230         (expand_builtin_memcmp): Likewise.
2231         (expand_builtin_strcmp): Likewise.
2232         (expand_builtin_strncmp): Likewise.
2233
2234 2003-10-11  Roger Sayle  <roger@eyesopen.com>
2235
2236         * combine.c (apply_distributive_law): Enable "distributive" floating
2237         point optimizations with -funsafe-math-optimizations.
2238
2239 2003-10-11  Andrew Pinski <pinskia@physics.uc.edu>
2240
2241         * genmodes.c (emit_mode_mask) Change MASK to MODE_MASK.
2242
2243 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
2244
2245         * config/m68k/m68k-protos.h: Remove the prototype for
2246         finalize_pic.
2247
2248 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
2249
2250         * config/m68k/m68k.c: Fix comment typos.
2251
2252 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
2253
2254         * config/m68k/m68k-protos.h (use_return_insn): Change return type from
2255         int to bool.
2256         * config/m68k/m68k.c (struct m68k_frame): Add funcdef_no member.
2257         (current_frame): New global var.
2258         (m68k_compute_frame_layout): Cache computations in current_frame.
2259         (m68k_initial_elimination_offset): Use values from current_frame
2260         instead of recomputing them.
2261         (use_return_insn): Likewise.
2262         (m68k_output_function_prologue): Likewise.
2263         (m68k_output_function_epilogue): Likewise.
2264         * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Fold __PIC__ handling
2265         inside the block for __pic__.
2266
2267 2003-10-11  Peter Barada <peter@baradas.org>
2268             Bernardo Innocenti  <bernie@develer.com>
2269
2270         * config/m68k/m68k.c (m68k_frame): Move before protos referencing it.
2271         (m68k_save_reg): Add boolean parameter `interrupt_handler'.
2272         (m68k_interrupt_function_p): New function.
2273         (m68k_handle_fndecl_attribute): Ditto.
2274         (m68k_compute_frame_layout): Ditto.
2275         (m68k_attribute_table): Define back-end specific attributes.
2276         (m68k_output_function_epilogue): Emit RTE instruction for interrupt
2277         functions.
2278
2279 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
2280
2281         * config/m68k/t-uclinux: New target Makefile fragment.
2282         * config/m68k/uclinux.h: New target macro file.
2283         * config.gcc (m68k-*-uclinux): New target definition.
2284
2285 2003-10-10  Roger Sayle  <roger@eyesopen.com>
2286
2287         * builtins.c (builtin_mathfn_code): Generalize to check whether
2288         the call is to any built-in function by comparing the call's
2289         argument list against the builtin decl's function type.
2290
2291 2003-10-10  Roger Sayle  <roger@eyesopen.com>
2292
2293         * cse.c (constant_pool_entries_regcost): New global variable to
2294         hold the register cost component of constant_pool_entries_cost.
2295         (fold_rtx): Calculate constant_pool_entries_regcost at the same
2296         time as constant_pool_entries_cost.
2297         (cse_insn): Set both src_folded_cost and src_folded_regcost from
2298         constant_pool_entries_cost and constant_pool_entries_regcost.
2299         (cse_main): Initialize constant_pool_entries_regcost to zero.
2300
2301         * optabs.c (expand_unop): Attach a REG_EQUAL note describing
2302         the semantics of the sequence of bit operations used to negate
2303         a floating-point value.
2304         (expand_abs_nojump): Likewise attach a REG_EQUAL note describing
2305         the semantics of the bit operations used to abs a floating point
2306         value.
2307
2308 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
2309             Paul Dale  <pauli@snapgear.com>
2310
2311         * config/m68k/lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__
2312         support.
2313         * config/m68k/m68k-none.h (ASM_SPEC): Pass --pcrel to assembler on
2314         -fpic, -fPIC, -msep-data and -mid-shared-library.
2315         * config/m68k/m68k.c (m68k_library_id_string): New global variable.
2316         (override_options): Add -msep-data and -mshared-library-id support.
2317         (m68k_output_function_prologue): Generate code to load A5 for
2318         TARGET_ID_SHARED_LIBRARY and TARGET_SEP_DATA.
2319         (m68k_output_mi_thunk): Emit indirect jump on TARGET_ID_SHARED_LIBRARY.
2320         (m68k_output_pic_call): New function.
2321         * gcc/config/m68k/m68k.h (TARGET_SEP_DATA): New target flag.
2322         (TARGET_ID_SHARED_LIBRARY): Ditto.
2323         (TARGET_SWITCHES): Add switches for -mid-shared-library and -msep-data.
2324         * gcc/config/m68k/m68k.md (call): Call m68k_output_pic_call().
2325         (call_value): Likewise.
2326
2327 2003-10-10  Zack Weinberg  <zack@codesourcery.com>
2328
2329         * gengenrtl.c (find_formats, genheader): Make i an unsigned
2330         int, remove cast of NUM_RTX_CODE.
2331         * machmode.h: Make the HAVE_MACHINE_MODES #ifdef encompass the
2332         entire file.  Remove the #ifs on GET_MODE_MASK etc and
2333         GET_MODE_WIDER_MODE etc.
2334
2335 2003-10-10  Eric Christopher  <echristo@redhat.com>
2336
2337         * lcm.c (optimize_mode_switching): Change NORMAL_MODE
2338         to MODE_ENTRY and MODE_EXIT. Add MODE_AFTER for insns
2339         that set mode.
2340         * config/sh/sh.h (MODE_ENTRY): New macro.
2341         (MODE_EXIT): Ditto.
2342         (MODE_AFTER): Ditto.
2343         * config/sh/sh.md: Change for MODE_AFTER. Add
2344         fp_set attribute.
2345         * doc/tm.texi: Document MODE_AFTER, MODE_ENTRY, and MODE_EXIT.
2346
2347 2003-10-10  Zack Weinberg  <zack@codesourcery.com>
2348
2349         * genmodes.c, mode-classes.def: New files.
2350         * machmode.def: Rewritten to genmodes.c interface.
2351         * Makefile.in (extra_modes_file): New substitution variable.
2352         (MACHMODE_H): No longer includes machmode.def or
2353         @extra_modes_file@; instead, mode-classes.def and insn-modes.h.
2354         (BUILD_RTL): Add $(BUILD_PREFIX)insn-modes.o.
2355         (OBJS-common): Add insn-modes.o.
2356         (STAGESTUFF): Add insn-modes.c, insn-modes.h, s-modes, and
2357         genmodes$(build_exeext).
2358         (insn-modes.o, insn-modes.c, insn-modes.h, s-modes, genmodes.o,
2359         genmodes$(build_exeext), $(BUILD_PREFIX_1)insn-modes.o): New targets.
2360         (s-genrtl): Don't depend on $(RTL_BASE_H).
2361         (gengenrtl.o): Don't depend on coretypes.h, $(GTM_H), real.h,
2362         or $(RTL_BASE_H); just rtl.def.
2363         * gengenrtl.c: Don't include coretypes.h, tm.h, rtl.h, or
2364         real.h.  Give fake definition of CONST_DOUBLE_FORMAT and
2365         substitute definition of NUM_RTX_CODE.  Add casts to avoid
2366         warnings.
2367         * machmode.h: Include insn-modes.h, not machmode.def.  Include
2368         mode-classes.def to define enum mode_class.  Tweak definitions
2369         of GET_MODE_CLASS, GET_MODE_SIZE, GET_MODE_BITSIZE, GET_MODE_MASK,
2370         GET_MODE_INNER, GET_MODE_WIDER_MODE, GET_CLASS_NARROWEST_MODE.
2371         (inner_mode_array): Renamed mode_inner.
2372         (mode_base_align): New.
2373         * rtl.c (mode_name, mode_class, mode_bitsize, mode_size,
2374         mode_unit_size, mode_wider_mode, mode_mask_array,
2375         inner_mode_array, class_narrowest_mode): Delete definitions.
2376         * stor-layout.c (get_mode_alignment): Use mode_base_align.
2377         * real.h: Use MIN_MODE_FLOAT and MAX_MODE_FLOAT, not QFmode
2378         and TFmode, in real_format_for_mode and REAL_MODE_FORMAT.
2379
2380         * config/ip2k/ip2k.h, config/iq2000/iq2000.h:
2381         No need to define BITS_PER_UNIT.
2382
2383 2003-10-10  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2384
2385         * config/ia64/ia64.c (ia64_vms_init_libfuncs): New function.
2386         (ia64_output_function_prologue): Only write .prologue if --with-gnu-as.
2387         (ia64_initialize_trampoline): If not using GAS, declare trampoline
2388         as global.
2389         * config/ia64/ia64.h (ASM_APP_ON, ASM_APP_OFF): Add vers for not GAS.
2390         (ASM_OUTPUT_DEBUG_LABEL): Likewise.
2391
2392         * stor-layout.c (compute_record_mode): Don't force BLKmode if
2393         field is zero-length BLKmode.
2394         * expr.c (expand_expr, case COMPONENT_REF): Handle case of BLKmode
2395         zero-size references.
2396
2397         * combine.c (distribute_links): Properly test for REG being set.
2398
2399         * config/alpha/alpha.c (alpha_expand_block_mode): Don't use
2400         gen_lowpart and company except for REG.
2401
2402 2003-10-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2403
2404         * pa64-hpux.h (LINK_SPEC): Use `-z' option with HP ld.
2405
2406 2003-10-10  Nathanael Nerode  <neroden@gcc.gnu.org>
2407
2408         * config.gcc (mips*-*-netbsd*): Remove content-free line.
2409
2410 2003-10-10  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
2411
2412         * gcov-io.h: Check BITS_PER_UNIT when defining gcov_unsigned_t,
2413         gcov_position_t and gcov_type.
2414
2415 2003-10-09  Kaz Kojima  <kkojima@gcc.gnu.org>
2416
2417         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
2418         * configure: Regenerate.
2419
2420 2003-10-09  Kazu Hirata  <kazu@cs.umass.edu>
2421
2422         * config/h8300/h8300.md (define_asm_attributes): Specify
2423         the length of an asm insn more precisely.
2424
2425 2003-10-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2426
2427         * config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define.
2428
2429 2003-10-09  Bob Wilson  <bob.wilson@acm.org>
2430
2431         * config/xtensa/xtensa.c (xtensa_dbx_register_number): Change first
2432         FP register number to 48 and MAC16 accumulator to 0x210.
2433
2434 2003-10-09  Nathanael Nerode  <neroden@gcc.gnu.org>
2435
2436         * config.gcc: Remove redundant thread_file setting clauses for
2437         various *-*-linux* targets.
2438
2439 2003-10-09  Kazu Hirata  <kazu@cs.umass.edu>
2440
2441         * config/h8300/h8300.md (define_asm_attributes): New.
2442
2443 2003-10-09  Roger Sayle  <roger@eyesopen.com>
2444
2445         * optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note
2446         to the comparison, as emit_libcall_block calls copy_rtx on equiv.
2447
2448 2003-10-09  Dorit Naishlos  <dorit@il.ibm.com>
2449
2450         * haifa-sched.c (ok_for_early_schedule): New function.
2451         (early_queue_to_ready): New function.
2452         (schedule_block): Allow early removal of insns from Q.
2453         (schedule_insn): Update INSN_TICK in case of premature
2454         issue.
2455         * common.opt (sched_stalled_insns): New flag.
2456         (sched_stalled_insns_dep): New flag.
2457         * flags.h: Same above flags.
2458         * opts.c: Same as above.
2459         * toplev.c: Same as above.
2460         * target.h (targetm.sched.is_costly_dependence): New
2461         hook.
2462         * target-def.h: Same as above.
2463         * config/rs6000/rs6000.h: (rs6000_sched_costly_dep):
2464         Support new flag -msched-costly-dep.
2465         (DEFAULT_SCHED_COSTLY_DEP): Define.
2466         * config/rs6000/rs6000.c:
2467         (rs6000_is_costly_dependence): New function.
2468         (is_load_insn, is_store_insn): New functions.
2469         (is_load_insn1, is_store_insn1, is_mem_ref): New
2470         functions.
2471         * doc/invoke.texi (-fsched-stalled-insns-dep)
2472         (-fsched-stalled-insns, -msched-costly-dep): Document
2473         options.
2474         * doc/tm.texi (is_costly_dependence): Define new
2475         scheduler target hook.
2476
2477 2003-10-09  Jason Merrill  <jason@redhat.com>
2478
2479         PR c++/6392
2480         * c-common.c (c_build_qualified_type): Look through arrays first.
2481         (c_apply_type_quals_to_decl): Look through arrays.
2482
2483         * c-common.c (c_apply_type_quals_to_decl): Unset TREE_READONLY for
2484         types with constructors.
2485
2486         * coverage.c (build_ctr_info_value): Use build_decl to make a
2487         VAR_DECL.
2488         (create_coverage): Likewise.
2489
2490         * stmt.c (resolve_asm_operand_names): Call check_unique_operand_names
2491         here.
2492         (expand_asm_operands): Not here.
2493         (parse_input_constraint): No longer static.
2494         * tree.h: Declare it.
2495
2496 2003-10-08  Kaz Kojima  <kkojima@gcc.gnu.org>
2497
2498         * config/sh/t-linux (SHLIB_LINK): Override to use a linker script
2499         libgcc_s.so.
2500         (SHLIB_INSTALL): Likewise.
2501
2502 2003-10-08  Nathanael Nerode  <neroden@gcc.gnu.org>
2503
2504         * doc/install.texi: Remove reference to removed 'pthreads' thread
2505         option.
2506
2507 2003-10-08  Aldy Hernandez  <aldyh@redhat.com>
2508
2509         * config/rs6000/rs6000.md ("abssi2_isel"): Add early clobber to
2510         operand 2.
2511
2512 2003-10-08  Nathanael Nerode  <neroden@gcc.gnu.org>
2513
2514         * config.gcc: Don't accept --enable-threads=pthreads.  Clean
2515         up related case statements.
2516         * configure.in: Don't accept --enable-threads=pthreads,
2517         decosf1, mach, or os2 (none of which work anyway).  Alphabetize
2518         supported thread files in case clause.
2519         * configure: Regenerate.
2520
2521 2003-10-08  Geoffrey Keating  <geoffk@apple.com>
2522
2523         * function.c (pad_to_arg_alignment): Move 'boundary_in_bytes'
2524         definition to above SPARC_STACK_BOUNDARY_HACK.
2525
2526 2003-10-08  Jason Merrill  <jason@redhat.com>
2527
2528         * c-pretty-print.c (pp_c_postfix_expression)
2529         <COMPOUND_LITERAL_EXPR>: Fix thinko.
2530
2531 2003-10-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2532
2533         * mklibgcc.in: Don't hide undefined or typeless symbols.
2534
2535 2003-10-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2536
2537         PR optimization/12142
2538         * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
2539         uses of the register in the SET_SRC.  Remove unnecessary argument.
2540         * pa.c (legitimize_pic_address): Before reload, use a scratch register
2541         for the intermediate result in loading the address of a SYMBOL_REF.
2542         Set the MEM_NOTRAP_P flag for the MEM.  Add a REG_EQUAL to the insn
2543         which loads the SYMBOL_REF address.
2544
2545 2003-10-08  Timo Kokkonen  <tjko@iki.fi>
2546             Eric Botcazou  <ebotcazou@libertysurf.fr>
2547
2548         PR bootstrap/12490
2549         * scan-decls.c (MAX_EXTERN_C_BRACES): New preprocessor constant
2550         to define the size of the extern_C_braces array.  Set it to 200.
2551         (scan_decls): Abort when extern_C_braces_length is out-of-bounds.
2552
2553 2003-10-08  Carlo Wood  <carlo@alinoe.com>
2554
2555         * Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand
2556         a space after the -o option.  flex 2.5.31 understands both, with
2557         and without the space. Removed that space.
2558
2559 2003-10-08  Richard Sandiford  <rsandifo@redhat.com>
2560
2561         * config/mips/mips.c (mips_frame_info): Add cprestore_size field.
2562         (compute_frame_size): Initialize it.  Remove the .cprestore slot
2563         from args_size.
2564         (mips_output_function_prologue): Simplify accordingly.
2565         (mips_debugger_offset): Change the mips16 frame pointer offset from
2566         current_function_outgoing_args to cfun->machine->frame.args_size.
2567         (mips_initial_elimination_offset): Likewise.
2568         (mips_expand_prologue): Likewise.
2569         (mips_expand_epilogue): Likewise.
2570
2571 2003-10-08  Richard Sandiford  <rsandifo@redhat.com>
2572
2573         * config/mips/mips.h (EXTRA_CONSTRAINT): Add 'W' constraint.
2574         (EXTRA_MEMORY_CONSTRAINT): Define.
2575         (CAN_ELIMINATE): Remove lwu workaround.
2576         * config/mips/mips.md (*zero_extendsidi2_mem): Enable for mips16 too.
2577         Use a 'W' constraint for the source operand.
2578
2579 2003-10-08  Kazu Hirata  <kazu@cs.umass.edu>
2580
2581         * genopinit.c (main): Output code to declare undefined
2582         variables.
2583
2584 2003-10-07  Kelley Cook  <kcook@gcc.gnu.org>
2585
2586         * gengtype-lex.l: Remove -Wtraditional cruft.
2587         * Makefile.in (gengtype-lex.c): Likewise.
2588
2589 2003-10-07  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2590
2591         * cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.
2592
2593 2003-10-07  Jason Merrill  <jason@redhat.com>
2594
2595         PR c++/12519
2596         * c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if
2597         it isn't a decl.
2598
2599 2003-10-07  Alexandre Oliva  <aoliva@redhat.com>
2600
2601         * gcc.c (cpp_options): Only pass -fworking-directory for -g* if
2602         not overridden.
2603         Fixes PR bootstrap/12173.
2604
2605 2003-10-07  Zack Weinberg  <zack@codesourcery.com>
2606
2607         * errors.c: Don't include coretypes.h or tm.h.
2608         (trim_filename): Use IS_DIR_SEPARATOR.
2609         * Makefile.in: Update dependencies of errors.o and
2610         $(BUILD_PREFIX_1)errors.o.
2611
2612 2003-10-07  Geoffrey Keating  <geoffk@apple.com>
2613
2614         * function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into
2615         account when aligning arguments.
2616         * calls.c (STACK_POINTER_OFFSET): Move default from here ...
2617         * defaults.h (STACK_POINTER_OFFSET): ... to here.
2618         * config/sparc/sparc.h (STACK_BOUNDARY): Add comment about how
2619         it's wrong when TARGET_ARCH64 && TARGET_STACK_BIAS.
2620         (SPARC_STACK_BOUNDARY_HACK): Define.
2621         * config/rs6000/rs6000.c (function_arg): On non-SVR4 systems,
2622         arrange for vector parameters to varargs functions to be passed
2623         in both memory and GPRs when appropriate.
2624         (rs6000_va_arg): Vector arguments passed in memory are 16-byte
2625         aligned.
2626
2627         * hooks.c (hook_bool_tree_true): New.
2628         (hook_rtx_tree_int_null): New.
2629         (hook_rtx_rtx_null): Use NULL, not 0.
2630         * hooks.h: Add 'extern' to everything.
2631         (hook_bool_tree_true): New.
2632         (hook_rtx_tree_int_null): New.
2633         * targhooks.c (hook_bool_CUMULATIVE_ARGS_true): New.
2634         * targhooks.h (hook_bool_CUMULATIVE_ARGS_true): New.
2635         * config/rs6000/rs6000-protos.h (setup_incoming_varargs): Remove
2636         prototype.
2637         * config/rs6000/rs6000.c (rs6000_return_in_memory): New.
2638         (setup_incoming_varargs): Prototype.
2639         (TARGET_PROMOTE_FUNCTION_ARGS): Define.
2640         (TARGET_PROMOTE_FUNCTION_RETURN): Define.
2641         (TARGET_STRUCT_VALUE_RTX): Define.
2642         (TARGET_RETURN_IN_MEMORY): Define.
2643         (TARGET_SETUP_INCOMING_VARARGS): Define.
2644         (TARGET_STRICT_ARGUMENT_NAMING): Define.
2645         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Define.
2646         (init_cumulative_args): Use rs6000_return_in_memory.
2647         (setup_incoming_varargs): Make 'static'.
2648         * config/rs6000/rs6000.h (PROMOTE_FUNCTION_ARGS): Delete.
2649         (PROMOTE_FUNCTION_RETURN): Delete.
2650         (STRUCT_VALUE): Delete.
2651         (RETURN_IN_MEMORY): Delete.
2652         (SETUP_INCOMING_VARARGS): Delete.
2653
2654 2003-10-07  Gerald Pfeifer  <gerald@pfeifer.com>
2655
2656         * doc/invoke.texi (Warning Options): Simplify and clarify the
2657         descriptions of -Wnonnull and -Winit-self.
2658
2659 2003-10-07  Richard Earnshaw  <rearnsha@arm.com>
2660
2661         * optabs.c (init_intraclass_conv_libfuncs): Fix order of array
2662         indicees for floating-point conversersion libcalls.
2663
2664 2003-10-07  Nathanael Nerode  <neroden@gcc.gnu.org>
2665
2666         * Makefile.in: Add more comments separating large conceptually
2667         separate sections.
2668
2669         * configure.in: Clean up thread file logic.
2670         * configure: Regenerate.
2671
2672 2003-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
2673
2674         * config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
2675         (switch_to_section): Handle in_readonly_data.
2676         * config/i386/winnt.c (i386_pe_asm_named_section): Handle
2677         readonly data.
2678
2679 2003-10-07  Richard Earnshaw  <rearnsha@arm.com>
2680
2681         * arm.md (cmpsi2_addneg): New ARM pattern. Add peephole2 to generate
2682         it.
2683         (cbranchne_decr1): New Thumb pattern.
2684         * arm.c (arm_addimm_operand): New insn predicate.
2685         * arm-protos.h: Add a prototype for it.
2686         * arm.h (PREDICATE_CODES): Add it.
2687
2688 2003-10-07  Dorit Naishlos <dorit@il.ibm.com>
2689
2690         * sched-int.h (sched_info): New field
2691         sched_max_insns_priority.
2692         * sched-rgn.c (init_ready_list): Add invocations to
2693         targetm.sched.adjust_priority.
2694         (sched_max_insns_priority): Init new field.
2695         * sched-ebb.c (sched_max_insns_priority): Init new field.
2696         * haifa-sched.c (set_priorities): Set
2697         sched_info->sched_max_insns_priority.
2698         * config/rs6000/rs6000.h:
2699         (rs6000_sched_restricted_insns_priority_str): Support new
2700         flag -mprioritize-restricted-insns.
2701         (DEFAULT_RESTRICTED_INSNS_PRIORITY): Define.
2702         * config/rs6000/rs6000.c (is_dispatch_slot_restricted): New
2703         function.
2704         (rs6000_adjust_priority): Change priority of restricted
2705         insns, using above new function and new flag.
2706         * doc/invoke.texi (-mprioritize-restricted-insns): Document
2707         new option.
2708
2709 2003-10-07  Zack Weinberg  <zack@codesourcery.com>
2710
2711         * expr.c (cmpstr_optab, cmpmem_optab): New.
2712         * genopinit.c: Initialize them.
2713         * optabs.h: Declare them.
2714         * optabs.c (init_optabs): Clear them.
2715         (prepare_cmp_insn):  Use cmpstr_optab and cmpmem_optab to find
2716         block memory compare insns, not conditional chains.  Restructure
2717         the fallback generation of a call to memcmp/bcmp for better
2718         readability.
2719
2720 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
2721
2722         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.
2723         (mips_save_restore_fn): New typedef.
2724         (mips_add_large_offset_to_sp, mips_emit_frame_related_store): Remove.
2725         (mips_set_frame_expr, mips_frame_set): Move above prologue code.
2726         (save_restore_insns): Remove, replacing with...
2727         (mips_save_restore_reg, mips_for_each_saved_reg): ...these new fns.
2728         (mips_save_reg, mips_restore_reg): New function.
2729         (mips_expand_prologue, mips_expand_epilogue): Rework.
2730         * config/mips/mips.h (MIPS_TEMP1_REGNUM, MIPS_TEMP2_REGNUM): Remove.
2731         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): New macros.
2732         (MIPS_PROLOGUE_TEMP, MIPS_EPILOGUE_TEMP): New macros.
2733
2734 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
2735
2736         * config/mips/mips.c (mips_expand_prologue): Remove unused
2737         traversal of function arguments.
2738
2739 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
2740
2741         * doc/invoke.texi: Remove documentation of -mentry.
2742         * config/mips/mips.c (mips_entry_string, mips_entry): Remove.
2743         (override_options, mips_save_reg_p): Remove handling.
2744         (compute_frame_size, mips_output_function_prologue): Likewise.
2745         (mips_expand_prologue, mips_expand_epilogue): Likewise.
2746         * config/mips/mips.h (mips_entry_string): Remove declaration.
2747         (TARGET_OPTIONS): Remove -mentry.
2748         * config/mips/mips16.S: Remove mention of -mentry.
2749
2750 2003-10-06  Zack Weinberg  <zack@codesourcery.com>
2751
2752         * libfuncs.h (LTI_extendsfdf2, LTI_extendsfxf2, LTI_extendsftf2)
2753         (LTI_extenddfxf2, LTI_extenddftf2, LTI_truncdfsf2, LTI_truncxfsf2)
2754         (LTI_trunctfsf2, LTI_truncxfdf2, LTI_trunctfdf2, LTI_floatsisf)
2755         (LTI_floatdisf, LTI_floattisf, LTI_floatsidf, LTI_floatdidf)
2756         (LTI_floattidf, LTI_floatsixf, LTI_floatdixf, LTI_floattixf)
2757         (LTI_floatsitf, LTI_floatditf, LTI_floattitf, LTI_fixsfsi, LTI_fixsfdi)
2758         (LTI_fixsfti, LTI_fixdfsi, LTI_fixdfdi, LTI_fixdfti, LTI_fixxfsi)
2759         (LTI_fixxfdi, LTI_fixxfti, LTI_fixtfsi, LTI_fixtfdi, LTI_fixtfti)
2760         (LTI_fixunssfsi, LTI_fixunssfdi, LTI_fixunssfti, LTI_fixunsdfsi)
2761         (LTI_fixunsdfdi, LTI_fixunsdfti, LTI_fixunsxfsi, LTI_fixunsxfdi)
2762         (LTI_fixunsxfti, LTI_fixunstfsi, LTI_fixunstfdi, LTI_fixunstfti)
2763         (extendsfdf2_libfunc, extendsfxf2_libfunc, extendsftf2_libfunc)
2764         (extenddfxf2_libfunc, extenddftf2_libfunc, truncdfsf2_libfunc)
2765         (truncxfsf2_libfunc, trunctfsf2_libfunc, truncxfdf2_libfunc)
2766         (trunctfdf2_libfunc, floatsisf_libfunc, floatdisf_libfunc)
2767         (floattisf_libfunc, floatsidf_libfunc, floatdidf_libfunc)
2768         (floattidf_libfunc, floatsixf_libfunc, floatdixf_libfunc)
2769         (floattixf_libfunc, floatsitf_libfunc, floatditf_libfunc)
2770         (floattitf_libfunc, fixsfsi_libfunc, fixsfdi_libfunc, fixsfti_libfunc)
2771         (fixdfsi_libfunc, fixdfdi_libfunc, fixdfti_libfunc, fixxfsi_libfunc)
2772         (fixxfdi_libfunc, fixxfti_libfunc, fixtfsi_libfunc, fixtfdi_libfunc)
2773         (fixtfti_libfunc, fixunssfsi_libfunc, fixunssfdi_libfunc)
2774         (fixunssfti_libfunc, fixunsdfsi_libfunc, fixunsdfdi_libfunc)
2775         (fixunsdfti_libfunc, fixunsxfsi_libfunc, fixunsxfdi_libfunc)
2776         (fixunsxfti_libfunc, fixunstfsi_libfunc, fixunstfdi_libfunc)
2777         (fixunstfti_libfunc): Delete.
2778         * optabs.h (struct optab_handlers): Break out of struct optab.
2779         (struct convert_optab, convert_optab, enum convert_optab_index,
2780         convert_optab_table, sext_optab, zext_optab, trunc_optab,
2781         sfix_optab, ufix_optab, sfixtrunc_optab, ufixtrunc_optab,
2782         sfloat_optab, ufloat_optab): New.
2783         (set_conv_libfunc): Prototype.
2784         (GEN_FCN): Use C90 indirect call syntax, remove unnecessary cast.
2785         (trunc_optab): Renamed btrunc_optab.
2786         * builtins.c (expand_builtin_mathfn): Update to match.
2787         * optabs.c (extendtab, fixtab, fixtrunctab, floattab): Delete.
2788         (convert_optab_table, new_convert_optab, init_convert_optab)
2789         (init_interclass_conv_libfuncs, init_intraclass_conv_libfuncs)
2790         (set_conv_libfunc): New.
2791         (can_extend_p, gen_extend_insn, can_fix_p, can_float_p)
2792         (expand_float, expand_fix): Use new conversion optabs,
2793         not old insn code tables or long chains of ifs.
2794         (init_optabs): No need to clear old insn code tables.
2795         Initialize the new optabs, not the old libfunc array entries.
2796         Don't handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
2797         * genopinit.c: Initialize conversion optabs, not the
2798         former insn code tables.  Remove unnecessary casts.
2799         Handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
2800         * expr.c (convert_move): Remove redundant check that
2801         to_real==from_real.  Use the conversion optabs instead
2802         of long chains of tests of modes.  Move partial-integer-mode
2803         interconversion above all integer conversion.  Do not recurse
2804         on a value forced into a register in the original mode.
2805
2806         * config/gofast.h, config/frv/frv.c, config/ia64/ia64.c
2807         * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
2808         * config/sparc/sparc.c: Use set_conv_libfunc to adjust entries
2809         in new conversion optabs; do not reference the old libfunc
2810         array entries.  No need to include libfuncs.h.
2811
2812 2003-10-06  Roger Sayle  <roger@eyesopen.com>
2813
2814         * config/i386/i386.c (ix86_expand_setcc): Annotate the floating
2815         point comparison sequence with a REG_EQUAL note that describes
2816         the comparison's semantics.
2817
2818 2003-10-06  Roger Sayle  <roger@eyesopen.com>
2819
2820         * expr.c (expand_expr <COND_EXPR>): Handle the void type semantics
2821         of COND_EXPR when expanding the "A op 0 ? FOO : A" optimizations.
2822
2823 2003-10-06  Roger Sayle  <roger@eyesopen.com>
2824             Zack Weinberg  <zack@codesourcery.com>
2825
2826         * optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL
2827         instruction by using LCT_CONST and then calling emit_libcall_block
2828         ourselves.
2829
2830 2003-10-06  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
2831
2832         PR optimization/11974
2833         * optabs.c (expand_unop): Promote libcall outmode according to
2834         hard_libcall_value.
2835
2836 2003-10-06  Zack Weinberg  <zack@codesourcery.com>
2837
2838         * real.h (REAL_MODE_FORMAT): New macro.
2839         * c-cppbuiltin.c, optabs.c, real.c, config/alpha/alpha.c
2840         * config/c4x/c4x.c, config/i370/i370.c, config/i386/freebsd.h
2841         * config/i386/i386.c, config/i960/i960.c, config/ia64/ia64.c
2842         * config/m68k/m68k.c, config/mips/mips.c, config/rs6000/rs6000.c
2843         * config/vax/vax.c: Use REAL_MODE_FORMAT instead of referring
2844         directly to real_format_for_mode array, wherever possible.
2845
2846 2003-10-06  Devang Patel  <dpatel@apple.com>
2847
2848         * dwarf2out.c (is_main_source): Remove variable.
2849         (dwarf2out_start_source_file): Do not check is_main_source.
2850         Do not reset is_main_source.
2851         (dwarf2out_init): Do not initialize is_main_source.
2852
2853 2003-10-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2854
2855         * fixinc/inclhack.def (stdio_va_list): Removed _ap fix.
2856         (irix_stdio_va_list): Don't require leading printf, IRIX 6.5.21
2857         introduced some multi-line prototypes.
2858         * fixinc/fixincl.x: Regenerate.
2859
2860 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
2861
2862         * config/mips/mips.h (PREDICATE_CODES): Add stack_operand.
2863         * config/mips/mips.c (stack_operand): New predicate.
2864         * config/mips/mips.md: Use it for the destination of mips16 insns
2865         that store $31.
2866
2867 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
2868
2869         * config/mips/mips.md (*lowsi): Renamed from lowsi.
2870         (*lowdi): Likewise lowdi.
2871         (*lowsi_mips16, *lowdi_mips16): New patterns.
2872         * config/mips/mips.c (mips_const_insns, mips_output_move): Remove
2873         mips16 CONSTANT_RELOC handling.
2874         (mips_delegitimize_address): Adjust for new sdata representation.
2875
2876 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
2877
2878         * config/mips/mips.c (mips_arg_info): If MUST_PASS_IN_STACK,
2879         skip any remaining register arguments.
2880
2881 2003-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
2882
2883         * reload.c (find_reloads_subreg_address): Use correct offset for
2884         paradoxical MEM subregs on big-endian targets.
2885
2886 2003-10-06  Andrew Haley  <aph@redhat.com>
2887
2888         * tree.c (get_callee_fndecl): Call
2889         lang_hooks.lang_get_callee_fndecl.
2890         * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): New.
2891         (lhd_get_callee_fndecl): New.
2892
2893 2003-10-06  Andrew Pinski  <apinski@apple.com>
2894
2895         * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
2896         error in calculating the length of the string.
2897         (machopic_stub_name): Likewise.
2898
2899 2003-10-06  Roger Sayle  <roger@eyesopen.com>
2900
2901         * optabs.c (prepare_float_lib_cmp):  Attach a REG_EQUAL note
2902         describing the return value of the comparison libcall to the
2903         REG_RETVAL instruction of the emitted sequence.
2904
2905 2003-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
2906
2907         PR optimization/12215
2908         * cse.c (cse_set_around_loop): Emit the move at the beginning
2909         of the next basic block for trapping sets.
2910
2911 2003-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
2912
2913         PR optimization/11637
2914         * combine.c (adjust_for_new_dest): New function to adjust the
2915         notes and LOG_LINKS when the dest of an insn has changed.
2916         (try_combine): Use it when deleting the first insn of a two-insn
2917         parallel or splitting a two-load parallel.
2918
2919 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
2920
2921         * config/mips/mips.c (mips_classify_constant): Only allow UNSPECs
2922         if TARGET_EXPLICIT_RELOCS.
2923
2924 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
2925
2926         PR bootstrap/12512
2927         * Makefile.in (info): Use double-colon rules.
2928         (dvi): Likewise.
2929         (generated-manpages): Likewise.
2930         * configure.in: Do not create lang.info, lang.dvi, or
2931         lang.generated-manpages hooks.
2932         * configure: Regenerated.
2933         * objc/Make-lang.in (objc.info): Remove.
2934         (objc.dvi): Remove.
2935         (objc.generated-manpages): Remove.
2936         * doc/sourcebuild.texi: Update description of info, dvi, and
2937         generated-manpages hooks.
2938
2939 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
2940
2941         * config/mips/mips.md: Merge mips16 lw/srl pattern with its splitter.
2942
2943 2003-10-05  Andrew Pinski  <apinski@apple.com>
2944
2945         * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
2946         errors in memcpy destinations.
2947         (machopic_stub_name): Likewise.
2948
2949 2003-10-05  Andrew Pinski <apinski@apple.com>
2950
2951         * config/darwin.c (machopic_non_lazy_ptr_name):
2952         Change strcat to memcpy and add length together.
2953         (machopic_stub_name): Likewise.
2954
2955 2003-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
2956
2957         * config/sh/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new
2958         signal trampoline codes.
2959
2960 2003-10-05  Chris Demetriou  <cgd@broadcom.com>
2961
2962         * config/mips/mips.md (*divsf3): Move description of
2963         SB-1 F2 erratum from here to...
2964         (divsf3): Here.  Disable if TARGET_FIX_SB1 is set and
2965         flag_unsafe_math_optimizations is not.
2966
2967 2003-10-05  Aldy Hernandez  <aldyh@redhat.com>
2968
2969         * config/rs6000/linuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE,
2970         TARGET_E500, TARGET_ISEL, and TARGET_FPRS.
2971
2972 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
2973
2974         * c-pretty-print.c: Fix comment typos.
2975         * c-pretty-print.h: Likewise.
2976         * calls.c: Likewise.
2977         * cfgloopmanip.c: Likewise.
2978         * cgraphunit.c: Likewise.
2979         * cppfiles.c: Likewise.
2980         * final.c: Likewise.
2981         * function.c: Likewise.
2982         * gcov-io.h: Likewise.
2983         * gcse.c: Likewise.
2984         * genoutput.c: Likewise.
2985         * loop.c: Likewise.
2986         * postreload.c: Likewise.
2987         * reg-stack.c: Likewise.
2988         * regmove.c: Likewise.
2989         * sched-int.h: Likewise.
2990         * sched-rgn.c: Likewise.
2991         * simplify-rtx.c: Likewise.
2992         * tree-inline.c: Likewise.
2993         * config/m68hc11/m68hc11.h: Likewise.
2994         * config/mmix/mmix.c: Likewise.
2995         * config/mn10300/mn10300.md: Likewise.
2996         * config/sh/sh.h: Likewise.
2997
2998 2003-10-05  Richard Henderson  <rth@redhat.com>
2999
3000         * tree-inline.c (remap_type): New.
3001         (remap_decl): Use it.  Remap DECL_SIZE*.
3002         (copy_body_r): Use it.
3003         (walk_tree): Walk TREE_TYPE too.
3004         (copy_tree_r): Don't walk subtrees of types.
3005         * tree.c (variably_modified_type_p): Restructure.  Consider integer
3006         types with non-const bounds variably modified.
3007
3008 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
3009
3010         * doc/invoke.texi: Fix typos.
3011
3012 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
3013
3014         * fold-const.c: Follow spelling conventions.
3015         * function.c: Likewise.
3016         * config/c4x/c4x.h: Likewise.
3017         * config/c4x/c4x.md: Likewise.
3018         * config/frv/frv.md: Likewise.
3019         * config/rs6000/aix.h: Likewise.
3020         * config/rs6000/linux64.h: Likewise.
3021         * config/xtensa/xtensa.c: Likewise.
3022
3023 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
3024
3025         * c-pretty-print.c: Fix comment formatting.
3026         * cfglayout.c: Likewise.
3027         * cfgloopanal.c: Likewise.
3028         * cppcharset.c: Likewise.
3029         * dbxout.c: Likewise.
3030         * ggc-page.c: Likewise.
3031         * ggc.h: Likewise.
3032         * target.h: Likewise.
3033
3034 2003-10-04  Kelley Cook  <kelleycook@wideopenwest.com>
3035
3036         * gengtype-lex.l: Recognize typedef of functions without PARAMS macro.
3037
3038 2003-10-04  Nathanael Nerode  <neroden@gcc.gnu.org>
3039
3040         * config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c:
3041         Convert to ISO C90 function declarations and definitions.
3042
3043 2003-10-04  Zack Weinberg  <zack@codesourcery.com>
3044
3045         * libfuncs.h
3046         (LTI_eqhf2, LTI_nehf2, LTI_gthf2, LTI_gehf2, LTI_lthf2)
3047         (LTI_lehf2, LTI_unordhf2, LTI_eqsf2, LTI_nesf2, LTI_gtsf2)
3048         (LTI_gesf2, LTI_ltsf2, LTI_lesf2, LTI_unordsf2, LTI_eqdf2)
3049         (LTI_nedf2, LTI_gtdf2, LTI_gedf2, LTI_ltdf2, LTI_ledf2)
3050         (LTI_unorddf2, LTI_eqxf2, LTI_nexf2, LTI_gtxf2, LTI_gexf2)
3051         (LTI_ltxf2, LTI_lexf2, LTI_unordxf2, LTI_eqtf2, LTI_netf2)
3052         (LTI_gttf2, LTI_getf2, LTI_lttf2, LTI_letf2, LTI_unordtf2)
3053         (eqhf2_libfunc, nehf2_libfunc, gthf2_libfunc, gehf2_libfunc)
3054         (lthf2_libfunc, lehf2_libfunc, unordhf2_libfunc, eqsf2_libfunc)
3055         (nesf2_libfunc, gtsf2_libfunc, gesf2_libfunc, ltsf2_libfunc)
3056         (lesf2_libfunc, unordsf2_libfunc eqdf2_libfunc, nedf2_libfunc)
3057         (gtdf2_libfunc, gedf2_libfunc, ltdf2_libfunc, ledf2_libfunc)
3058         (unorddf2_libfunc eqxf2_libfunc, nexf2_libfunc, gtxf2_libfunc)
3059         (gexf2_libfunc, ltxf2_libfunc, lexf2_libfunc, unordxf2_libfunc
3060         (eqtf2_libfunc, netf2_libfunc, gttf2_libfunc, getf2_libfunc)
3061         (lttf2_libfunc, letf2_libfunc, unordtf2_libfunc):
3062         Delete.
3063         * optabs.h (OTI_eq, OTI_ne, OTI_gt, OTI_ge, OTI_lt, OTI_le)
3064         (OTI_unord, eq_optab, ne_optab, gt_optab, ge_optab, lt_optab)
3065         (le_optab, unord_optab): New.
3066
3067         * optabs.c (prepare_float_lib_cmp): Rewrite.  Get the libfuncs
3068         from the code_to_optab table, not a giant switch; use
3069         swap_condition; do widening only if a comparison function that
3070         we can call exists in a wider mode, not if a cmp_optab insn or
3071         libfunc exists in a wider mode; call protect_from_queue
3072         exactly once on each operand.
3073         (init_optabs): Initialize the new optabs, not the deleted libfuncs.
3074
3075         * config/gofast.h, config/ia64/ia64.c, config/mips/mips.c
3076         * config/pa/pa.c, config/rs6000/rs6000.c, config/sparc/sparc.c:
3077         Set floating point comparison libfuncs using set_optab_libfunc
3078         on the appropriate optab.
3079
3080         * config/ia64/ia64.c (ia64_hpux_init_libfuncs): Fix typo.
3081         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Correct ABI
3082         selector conditionals.
3083
3084 2003-10-04  Stephane Carrez  <stcarrez@nerim.fr>
3085
3086         * config/m68hc11/t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is
3087         identical to m68hc12 as far as libraries are concerned.
3088
3089 2003-10-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
3090
3091         PR c/12446
3092         * c-typeck.c (convert_for_assignment): Issue an error for
3093         array to pointer assignment after default conversion.
3094         (digest_init): Likewise.
3095
3096 2003-10-04  Fariborz Jahanian  <fjahanian@apple.com>
3097
3098         * c-decl.c (duplicate_decls): retain DECL_COMMON of old declaration
3099
3100 2003-10-03  Gerald Pfeifer  <gerald@pfeifer.com>
3101
3102         * doc/extend.texi (Function Attributes): Fix title of GNU C
3103         Preprocessor manual.
3104         (C++ Extensions): Fix reference to "Predefined Macros" in the
3105         GNU C Preprocessor manual.
3106
3107 2003-10-04  Richard Earnshaw  <reanrsha@arm.com>
3108
3109         * doc/extend.texi: Document how GCC estimates and relies on the size
3110         of an asm.
3111
3112 2003-10-04  Richard Sandiford  <rsandifo@redhat.com>
3113
3114         * config/mips/mips.c (mips_pad_arg_upward): Pad floating-point
3115         arguments downward for big-endian o64.
3116
3117 2003-10-03  Robert Bowdidge <bowdidge@apple.com>
3118
3119         * ggc-page.c (ggc_pch_write_object): Replace fseek() with fwrite() in
3120         PCH generation, avoiding too-frequent flushes when writing to NFS
3121         file system.
3122
3123 2003-10-03  Ziemowit Laski  <zlaski@apple.com>
3124
3125         * objc/objc-act.c (lookup_category): Mark as 'inline'.
3126
3127 2003-10-03  Alexander Malmberg  <alexander@malmberg.org>
3128             Ziemowit Laski  <zlaski@apple.com>
3129
3130         * objc/objc-act.c (add_method_to_hash_list, lookup_category):
3131         New functions.
3132         (lookup_method_in_hash_lists): New parameter indicating whether
3133         we are messaging 'Class' or 'id'.
3134         (check_duplicates): Likewise; do not assume all methods will
3135         be either class or instance methods.
3136         (generate_category, finish_class): Use lookup_category().
3137         (add_method): Use add_method_to_hash_list(); insert instance
3138         methods of root classes into the global class method hash table.
3139         (add_category): Use lookup_category(); avoid constructing
3140         duplicate categories.
3141         (really_start_method): Add method to corresponding @interface,
3142         if not already there (and if the @interface exists).
3143         (finish_message_expr, finish_objc): Adjust calls to
3144         check_duplicates().
3145
3146 2003-10-03  Roger Sayle  <roger@eyesopen.com>
3147
3148         PR optimization/9325, PR java/6391
3149         * fold-const.c (fold_convert): For floating point to integer
3150         conversions, return the maximum/minimum representable integer
3151         value if the real constant overflows the destination type.
3152         * tree.c (real_value_from_int_cst): Allow the type to be NULL,
3153         meaning don't truncate the result to a floating point mode.
3154         Simplify the logic by calling real_from_integer directly.
3155         * simplify-rtx.c (simplify_unary_operation):  Implement the
3156         same semantics for folding floating point to integer conversions
3157         in RTL.
3158
3159 2003-10-03  Chris Demetriou  <cgd@broadcom.com>
3160
3161         * config/mips/mips.c (mips_emit_prefetch): Restructure
3162         to avoid use of arrays, handle indexed prefetch.
3163         * config/mips/mips.h (ISA_HAS_FP4, ISA_HAS_PREFETCH): Update comments.
3164         (ISA_HAS_PREFETCHX): New deffine.
3165         * config/mips/mips.md ("type" attr): Add new "prefetchx" value,
3166         update comments.
3167         (prefetch_indexed_di, prefetch_indexed_si): New insns.
3168
3169 2003-10-03  Jeff Sturm  <jsturm@one-point.com>
3170             Roger Sayle  <roger@eyesopen.com>
3171
3172         PR optimization/12289
3173         * calls.c (emit_call_1): Pretend to have popped the arguments
3174         to noreturn and longjmp functions instead of ignoring them.
3175         (expand_call): Don't adjust stack_pointer_dela while
3176         inhibit_defer_pop is set.
3177
3178 2003-10-03  Andreas Schwab  <schwab@suse.de>
3179
3180         PR bootstrap/12276
3181         * configure.in: Check for libunwind on the host only if building
3182         a native compiler.
3183         * configure: Regenerated.
3184
3185 2003-10-03  Paolo Carlini  <pcarlini@unitus.it>
3186
3187         * unwind-pe.h (read_encoded_value_with_base): Constify u and
3188         its inizialization cast.
3189
3190 2003-10-03  Richard Sandiford  <rsandifo@redhat.com>
3191
3192         PR target/12485
3193         * config/mips/mips.c (mips_load_got): GOT accesses can't trap.
3194
3195 2003-10-02  Mark Mitchell  <mark@codesourcery.com>
3196
3197         PR optimization/12180
3198         * tree-inline.c (inline_forbidden_p_1): Do not permit inlining of
3199         functions containing calls to __builtin_next_arg.
3200
3201 2003-10-02  Chris Demetriou  <cgd@broadcom.com>
3202
3203         * config/mips/mips.c (mips_emit_prefetch): Use operand 3
3204         in instructions being output.
3205         * config/mips/mips.md (prefetch_si_address): Change third
3206         operand's constraint letter to 'I'.
3207         (prefetch_di_address): Likewise.
3208         (prefetch_si, prefetch_di): Set third operand to const0_rtx.
3209
3210 2003-10-02  Zack Weinberg  <zack@codesourcery.com>
3211
3212         * system.h: Poison macros obsoleted by earlier patch.
3213         * config/cris/cris.c: C90-ify a function definition.
3214
3215 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
3216
3217         PR/12292
3218         * combine.c (make_field_assignment): Check whether rtx's code
3219         is CONST_INT before using INTVAL.
3220
3221 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
3222
3223         * cgraph.c (cgraph_node): Use INSERT instead of 1 in
3224         htab_find_slot_with_hash.
3225         (cgraph_node_for_identifier): Use NO_INSERT.
3226         (cgraph_remove_node): Use NO_INSERT.
3227         (cgraph_varpool_node): Use INSERT.
3228         (cgraph_varpool_node_for_identifier): Use NO_INSERT.
3229
3230 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
3231
3232         Waldek Hebisch <hebisch@math.uni.wroc.pl>
3233         PR/12072
3234         * varasm.c (compare_constant): Fix thinko.
3235
3236 2003-10-02  Richard Sandiford  <rsandifo@redhat.com>
3237
3238         * config/frv/frv.c (frv_issue_rate): New function.
3239         (frv_pack_insns): Use it.
3240         (TARGET_SCHED_ISSUE_RATE): Define.
3241
3242 2003-10-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
3243
3244         * config/mcore/mcore.c: Convert to ISO C90 function declarations
3245         and definitions.
3246         * config/mcore/mcore.h: Likewise.
3247         * config/mcore/mcore-protos.h: Likewise.
3248
3249 2003-10-02  Richard Sandiford  <rsandifo@redhat.com>
3250
3251         * config/frv/frv.c (frv_use_dfa_pipeline_interface): New function.
3252         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
3253
3254 2003-10-01  Per Bothner  <pbothner@apple.com>
3255
3256         * c-lex.c (src_line):   Remove unneeded static variable.
3257         (cb_line_change):  Set input_line directly, instead of src_line.
3258         (get_non_padding_token):  We no longer need to compensate for the
3259         "horrible things" the C++ front-end does with the current line number,
3260
3261         * cpplib.c (_cpp_pop_buffer):  Do generate a _cpp_do_file_change
3262         callback even when popping the main file.
3263         * c-lex.c (fe_file_change):  Handle a NULL new_map.
3264         * fix-header.c (cb_file_change):  Likewise.
3265         * c-ppoutput.c (pp_file_change):  Likewise.
3266
3267         * cppinit.c (cpp_read_main_file):  Split into two functions:
3268         Distribute _cpp_stack_file call over the two functions.
3269         (cpp_find_main_file):  New function.
3270         Don't call _cpp_do_file_change even if working_directory flag set.
3271         (cpp_push_main_file):  New function.
3272         * cppfiles.c (_cpp_find_failed):  New helper function.
3273         (find_file):  Made non-static and renamed to _cpp_find_file.
3274         (_cpp_stack_file):  No longer needed.  But note the following.
3275         (stack_file):  Made non-static and renamed to _cpp_stack_file.
3276         * fix-header.c (cpp_read_main_file):  Replace cpp_read_main_file
3277         call with calls to cpp_find_main_file and cpp_push_main_file.
3278         (search_path_head):  If there is no current buffer, use main_file.
3279         * cpphash.h:  Update function declarations.
3280         * cpplib.h:  Update function declarations.
3281
3282         * c-opts.c (c_common_post_options):  Don't call cpp_find_main_file yet.
3283         (c_common_parse_file):  No longer need to call cpp_read_main_file
3284         when file_index > 0 (as in multi-file or server compiation).
3285         (finish_options):  Change to <built-in> is an LC_ENTER, not LC_RENAME
3286         as this now happens before cpp_push_main_file.
3287         (push_command_line_include):  When done with options, pass LC_LEAVE
3288         instead of LC_RENAME to cpp_change_file and finally cpp_push_main_file.
3289         (fe_file_change):  Handle NULL new_map, and simplify.
3290         * cpplex.c (_cpp_get_fresh_line):  Revert my no-longer-needed
3291         08-28 change, since we're never called with a NULL buffer.
3292         (_cpp_lex_direct):  Likewise.
3293         * cpptrad.c (_cpp_read_logical_line_trad):  Likewise.
3294         Return false if buffer is NULL at end.
3295
3296         * cpplex.c (_cpp_get_fresh_line):  Return value now just depends on
3297         whether pfile->buffer is NULL after pop, ignoring return_at_eof.
3298         * cpphash.h (struct cpp_buffer):  Remove unused return_at_eof field.
3299         * cpplib.c (cpp_push_buffer):  Since we no longer set return_at_eof,
3300         remove the unused return_at_eof parameter.
3301         * cppfiles.c, cpplib.c, cppmacro.c, cpppch.c, fix-header.c:
3302         Update callers of cpp_push_buffer.
3303
3304 2003-10-01  Zack Weinberg  <zack@codesourcery.com>
3305
3306         * target.h (init_libfuncs): New hook.
3307         * target-def.h: Default TARGET_INIT_BUILTINS and
3308         TARGET_INIT_LIBFUNCS to hook_void_void.  Add
3309         TARGET_INIT_LIBFUNCS to TARGET_INITIALIZER.
3310         * builtins.c (default_init_builtins): Delete.
3311         * expr.h (default_init_builtins): Delete prototype.
3312         * doc/tm.texi: Document TARGET_INIT_LIBFUNCS and US_SOFTWARE_GOFAST.
3313         Tweak documentation of TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL.
3314         Remove documentation of INIT_TARGET_OPTABS, MULSI3_LIBCALL,
3315         DIVSI3_LIBCALL, UDIVSI3_LIBCALL, MODSI3_LIBCALL, UMODSI3_LIBCALL,
3316         MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL,
3317         and UMODDI3_LIBCALL,
3318
3319         * Makefile.in (optabs.o): Depends on target.h.
3320         * defaults.h: Provide default for FLOAT_LIB_COMPARE_RETURNS_BOOL.
3321         * optabs.c: Include target.h.
3322         (prepare_float_lib_cmp): No need for #ifdef around use of
3323         FLOAT_LIB_COMPARE_RETURNS_BOOL.
3324         (set_optab_libfunc): New function.
3325         (init_optabs): Delete use of all *_LIBCALL defines.
3326         Call targetm.init_libfuncs not INIT_TARGET_OPTABS.
3327         * optabs.h: Prototype set_optab_libfunc.
3328
3329         * config.gcc: Remove all references to pa/long_double.h,
3330         ia64/hpux_longdouble.h, and gofast.h.
3331         (mips-*-*): When --enable-gofast, just add US_SOFTWARE_GOFAST
3332         to tm_defines; don't set INIT_SUBTARGET_OPTABS or change tm_file.
3333
3334         * config/alpha/alpha.c, config/c4x/c4x.c, config/cris/cris.c
3335         * config/frv/frv.c, config/h8300/h8300.c, config/i860/i860.c
3336         * config/ia64/ia64.c, config/ip2k/ip2k.c, config/m68hc11/m68hc11.c
3337         * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
3338         * config/sparc/sparc.c, config/vax/vax.c:
3339         Provide a definition for TARGET_INIT_LIBFUNCS.  Where
3340         necessary, include optabs.h, libfuncs.h, and/or config/gofast.h.
3341
3342         * config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.h
3343         * config/avr/avr.h, config/cris/cris.h, config/frv/frv.h
3344         * config/h8300/h8300.h, config/i860/i860.h, config/ip2k/ip2k.h
3345         * config/iq2000/iq2000.h, config/m68hc11/m68hc11.h, config/mips/mips.h
3346         * config/rs6000/aix.h, config/rs6000/sysv4.h, config/sparc/elf.h
3347         * config/sparc/lite.h, config/sparc/netbsd-elf.h, config/sparc/sol2.h
3348         * config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h
3349         * config/vax/elf.h: Don't define or use INIT_TARGET_OPTABS,
3350         INIT_SUBTARGET_OPTABS, or any *_LIBCALL macros.
3351
3352         * config/ia64/hpux.h: Redefine INTEL_EXTENDED_IEEE_FORMAT to 0.
3353         Set TARGET_INIT_LIBFUNCS and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
3354         * config/pa/pa-hpux.h: Define LONG_DOUBLE_TYPE_SIZE,
3355         HPUX_LONG_DOUBLE_LIBRARY, and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
3356         * config/ia64/hpux_longdouble.h, config/pa/long_double.h: Delete.
3357
3358         * config/rs6000/xcoff.h: Don't define RS6000_ITRUNC nor RS6000_UITRUNC.
3359         * config/sparc/sparc.h: Default SUN_CONVERSION_LIBFUNCS and
3360         SUN_INTEGER_MULTIPLY_64 to 0.
3361         * config/sparc/sol2.h: Redefine SUN_CONVERSION_LIBFUNCS and
3362         SUN_INTEGER_MULTIPLY_64 to 1.
3363         * config/sparc/elf.h: Redefine SUN_CONVERSION_LIBFUNCS and
3364         SUN_INTEGER_MULTIPLY_64 to 0.
3365         * config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/sp86x-elf.h:
3366         Define US_SOFTWARE_GOFAST.
3367         * config/vax/vax.h: Default TARGET_ELF to 0.
3368         * config/vax/elf.h: Redefine TARGET_ELF to 1.
3369
3370         * config/gofast.h: Don't define any macros here.  Provide one
3371         static function, gofast_maybe_init_libfuncs, which does what
3372         INIT_GOFAST_LIBFUNCS used to do but only if US_SOFTWARE_GOFAST
3373         is already defined.  Do not clear negation libfuncs.  Do
3374         not mess with HFmode, XFmode, or TFmode libfuncs.
3375
3376         * config/avr/avr.c (avr_init_once): #if 0 out; mark FIXME.
3377
3378 2003-10-01  Kelley Cook  <kelleycook@wideopenwest.com>
3379
3380         PR C/12466
3381         * c-parse.in (parmlist_2): Mark declaration with an ellipsis as ISO C.
3382
3383 2003-10-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3384
3385         * config/mips/xm-iris5.h: Remove, unnecessary.
3386         * config.build (mips-sgi-irix5*): Remove.
3387         (mips-sgi-irix6*o32): Likewise.
3388         * config.gcc (mips-sgi-irix6*o32): Remove xm_file.
3389         (mips-sgi-irix5cross64): Likewise.
3390         (mips-sgi-irix5*): Likewise.
3391         * config.host (mips-sgi-irix5*): Remove.
3392         (mips-sgi-irix6*o32): Likewise.
3393
3394 2003-10-01  Zack Weinberg  <zack@codesourcery.com>
3395
3396         * dbxout.c (dbxout_fptype_value): Delete.
3397         (dbxout_type): Emit R3 for all COMPLEX_TYPEs.
3398
3399 2003-10-01  Alexandre Oliva  <aoliva@redhat.com>
3400
3401         * output.h (compute_reloc_for_constant): Declare.
3402         * varasm.c (compute_reloc_for_constant): Extract from...
3403         (output_addressed_constants): ... here.  Adjust all callers.
3404
3405 2003-10-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3406
3407         * aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.
3408         * configure: Rebuilt.
3409
3410 2003-10-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3411
3412         * fold-const.c (make_range): When handling unsigned, don't reverse
3413         range if high bound is zero.
3414
3415 2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
3416
3417         * config/frv/frv.h (PREDICATE_CODES): Added
3418         condexec_si_media_operator, condexec_sf_add_operator and
3419         condexec_sf_conv_operator.  Removed condexec_sf_binary_operator
3420         and condexec_sf_unary_operator.
3421
3422 2003-10-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3423
3424         * aclocal.m4: Add ultrix* to /dev/zero blacklist.
3425         * configure: Rebuilt.
3426
3427 2003-10-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3428
3429         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change.
3430         Allow override.
3431         * doc/tm.texi (MUST_USE_SJLJ_EXCEPTIONS): Document.
3432
3433 2003-09-23  David S. Miller  <davem@redhat.com>
3434
3435         * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine
3436         before redefining.
3437         * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3438
3439 2003-10-01  Steven Bosscher  <steven@gcc.gnu.org>
3440
3441         * config/cris/cris-protos.h, config/cris/cris.c: Convert to ISO
3442         C90 function declarations and definitions.
3443
3444 2003-10-01  Nathanael Nerode  <neroden@gcc.gnu.org>
3445
3446         * config.gcc (cris-*-linux*): Revert mistaken commit.
3447
3448 2003-10-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
3449
3450         PR optimization/11753
3451         * config/sparc/sparc.md (length attribute) [fcc branch]: Add 1 to
3452         the length in the non-V9 case.
3453
3454 2003-09-30  Richard Henderson  <rth@redhat.com>
3455
3456         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor
3457         DWARF_ALT_FRAME_RETURN_COLUMN.
3458         * unwind-dw2.c (dwarf_reg_size_table): Expand by one.
3459         (_Unwind_GetGR, _Unwind_SetGR): Validate lookup column.
3460         (uw_frame_state_for): Return end-of-stack for null return address.
3461         * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Add.
3462
3463         * config/alpha/alpha.c (alpha_sa_mask): Add r31 for eh_return.
3464         (alpha_expand_prologue): Store a zero for it.
3465         (alpha_expand_epilogue): Don't reload it.
3466         * config/alpha/alpha.h (DWARF_ALT_FRAME_RETURN_COLUMN): New.
3467         * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Use column 64
3468         for the sigframe return address.
3469
3470 2003-09-30  Kelley Cook  <kelleycoook@wideopenwest.com>
3471
3472         * sdbout.c: Convert to ISO C90 prototypes.
3473         * objc/objc-act.c: Likewise.
3474
3475 2003-09-30  Kelley Cook  <kelleycoook@wideopenwest.com>
3476
3477         * config/i386/cygwin1.c: Convert to ISO C90 prototypes.
3478         * config/i386/winnt.c: Likewise.
3479         * config/i386/cygming.h: Likewise.
3480
3481 2003-09-30  Kazu Hirata  <kazu@cs.umass.edu>
3482
3483         * fold-const.c (fold): Fold (A & ~B) - (A & B) into
3484         (A ^ B) - B for any B.
3485
3486 2003-09-30  Nathanael Nerode  <neroden@gcc.gnu.org>
3487
3488         * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
3489         powerpcle-*-kaos*, strongarm-*-kaos*): Disable fixproto.
3490
3491 2003-09-30  Richard Earnshaw  <rearnsha@arm.com>
3492
3493         * arm/ieee754-sf.S: Tidy formatting.
3494
3495 2003-09-30  Nicolas Pitre  <nico@cam.org>
3496
3497         * arm/lib1funcs.asm (ARM_DIV_MOD_BODY): Split into ARM_DIV_BODY
3498         and ARM_MOD_BODY.
3499         (ARM_MOD_BODY): Rewritten. added clz insns for __ARM_ARCH__ >= 5.
3500         (ARM_DIV_BODY): Added clz insns for __ARM_ARCH__ >= 5,
3501         added better divisor alignment in the other case.
3502         (ARM_DIV2_ORDER): Added, finds the order of a single bit divisor.
3503         (__divsi3, __udivsi3, __modsi3, __umodsi3): rewritten using the
3504         macros above, add fast exits for divisor >= dividend, etc.
3505
3506 2003-09-30  Nicolas Pitre  <nico@cam.org>
3507
3508         * arm/ieee754-df.S: Split compilation of fixunsdfsi from
3509         L_fixdfsi target.
3510         * arm/t-arm-elf (LIB1ASMFUNCS): Add _fixunsdfsi.
3511
3512 2003-09-30  Nathanael Nerode  <neroden@gcc.gnu.org>
3513
3514         * config.gcc: Default use_fixproto to 'no'.
3515
3516 2003-09-30  Richard Sandiford  <rsandifo@redhat.com>
3517
3518         PR optimization/12345
3519         * config/mips/mips-protos.h (mips_restore_gp): Remove.
3520         (mips_gp_save_slot): Declare.
3521         * config/mips/mips.c (mips_restore_gp): Remove in favor of...
3522         (mips_gp_save_slot): ...this new function.
3523         * config/mips/mips.md (exception_receiver): Use mips_gp_save_slot
3524         and mips_output_move to generate the output template.
3525         (call_internal): Force splitting if TARGET_SPLIT_CALLS.  Don't emit
3526         a gp load after a noreturn call.  Load the gp using a move rather
3527         than an exception_receiver pattern.
3528         (call_value_internal, call_value_multiple_internal): Likewise.
3529         (call_split, call_value_split, call_value_multiple_split): Clobber $28.
3530
3531 2003-09-30  Carlo Wood  <carlo@alinoe.com>
3532
3533         PR debug/12319
3534         * cfglayout.c (insn_scope):  Use prologue_locator and
3535         epilogue_locator; return the outer function scope for
3536         pro- and epilogue insns.
3537
3538 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
3539
3540         * objc/objc-act.c (encode_type): Encode INTEGER_TYPEs and
3541         REAL_TYPEs based on the bitsize of the type's mode, not the
3542         mode directly.
3543
3544 2003-09-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3545
3546         * dwarf2out.c (default_eh_frame_section): Split into ...
3547         (named_section_eh_frame_section, collect2_eh_frame_section): ... new
3548         functions.
3549         * output.h (named_section_eh_frame_section): Declare.
3550         (collect2_eh_frame_section): Likewise.
3551
3552 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
3553
3554         * real.c (real_sqrt): Use get_canonical_qnan directly.
3555
3556         * dwarf2out.c (add_const_value_attribute): Use real_to_target.
3557
3558         * varasm.c (assemble_real): Use real_to_target directly,
3559         calculate the number of significant elements of the result
3560         array and write them out in a loop, instead of using a giant
3561         switch statement to pick the correct REAL_VALUE_TO_TARGET_*
3562         macro.
3563
3564 2003-09-29  Jan Hubicka  <jh@suse.cz>
3565
3566         PR c++/12175
3567         * varasm.c (notice_global_symbol): Discard external symbols.
3568
3569         PR optimization/12286
3570         * gcov-io.c (gcov_read_words): Fix memmove call.
3571         * profile.c (compute_branch_probabilities): Add extra sanity checks.
3572
3573 2003-09-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3574
3575         * config.gcc (sparc-*-solaris2*): Handle Solaris 10 and up like
3576         Solaris 7-9.
3577
3578         * fixinc/inclhack.def (solaris_widec): Replace solaris2.[0-5]* by
3579         wildcards which explicitly match micro versions.
3580         * fixinc/fixincl.x: Regenerate.
3581
3582 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
3583
3584         * fold-const.c (fold): Fold (A & ~B) - (A & B) into
3585         (A ^ B) - B, where B is any power of 2 minus 1.
3586
3587 2003-09-29  Jan Hubicka  <jh@suse.cz>
3588
3589         * libgcov.c (gcov_exit): Fix two pastos.
3590
3591 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
3592
3593         * config/h8300/h8300.md (*tst_extzv_1_n): Combine with the
3594         define_split immediately below to form define_insn_and_split.
3595
3596 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
3597
3598         * config/h8300/h8300.md (*tstsi_variable_bit): New.
3599         (*tstsi_variable_bit_qi): Likewise.
3600
3601 2003-09-28  Phil Edwards  <phil@codesourcery.com>
3602
3603         * doc/cppopts.texi:  Use 'dashMP' instead of '-MP' as a cross-
3604         reference name.
3605
3606 2003-09-28  Richard Henderson  <rth@redhat.com>
3607
3608         * c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
3609         file and line separately.
3610
3611 2003-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
3612
3613         * config/s390/s390.md ("*adddi3_carry1_cc", "*adddi3_carry1_cconly",
3614         "*adddi3_carry2_cc", "*adddi3_carry2_cconly", "*subdi3_borrow_cc",
3615         "*subdi3_borrow_cconly"): New insns.
3616         ("*addsi3_sub", "*subsi3_sub"): Remove.
3617         ("*subdi3_cc", *subdi3_cconly"): Use only if TARGET_64BIT.
3618         ("*subsi3_cc"): Fix op_type attribute.
3619
3620 2003-09-28  Richard Henderson  <rth@redhat.com>
3621
3622         * stmt.c (expand_asm_operands): Take a location_t, instead of
3623         individual file and line.
3624         * c-typeck.c (c_expand_asm_operands): Likewise.
3625         * tree.h (expand_asm_operands): Update decl.
3626         * c-common.h (c_expand_asm_operands): Likewise.
3627         * c-semantics (genrtl_asm_stmt): Update call.
3628
3629 2003-09-28  Philip Blundell  <philb@gnu.org>
3630
3631         * config/arm/arm.c (legitimize_pic_address): Check
3632         SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
3633         (arm_assemble_integer): Likewise.
3634
3635 2003-09-28  Steven Bosscher  <steven@gcc.gnu.org>
3636
3637         * config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
3638         config/c4x/c4x-c.c, config/c4x/c4x-protos.h, config/c4x/c4x.c,
3639         config/c4x/c4x.h:
3640         Convert to ISO C90 function declarations and definitions.
3641
3642 2003-09-28  Steven Bosscher  <steven@gcc.gnu.org>
3643
3644         *  config/stormy16/stormy16.c, config/stormy16/stormy16-protos.h:
3645         Convert to ISO C90 function declarations and definitions.
3646
3647 2003-09-28  Richard Sandiford  <rsandifo@redhat.com>
3648
3649         * config/mips/mips.c (mips_constant_info): Add reloc field.
3650         (mips_classify_constant): Initialize it.  Always set SYMBOL to the
3651         underlying symbol, not to an unspec.
3652         (mips_delegitimize_address, print_operand): Clean up accordingly.
3653
3654 2003-09-28  Richard Sandiford  <rsandifo@redhat.com>
3655
3656         * config/mips/mips-protos.h (mips16_gp_pseudo_reg): Remove.
3657         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Remove orphaned comment.
3658         * config/mips/mips.c (mips_reloc_offset_ok_p): New function.
3659         (mips_classify_constant): Use it.
3660         (mips_splittable_symbol_p): Add an offset argument.
3661         (mips_classify_address): Adjust call accordingly.
3662         (mips_legitimize_symbol): Handle sdata references with LO_SUM rather
3663         than a relocation unspec.  Update call to mips_splittable_symbol_p.
3664         Generalize the code that copes with symbols + invalid offsets.
3665         (print_operand): Allow '%R' to be applied to small data addresses.
3666         (mips_reloc_string): Remove RELOC_GPREL16.
3667         (mips_sdata_pointer): Renamed from mips16_gp_pseudo_reg.  Return $gp
3668         for TARGET_EXPLICIT_RELOCS.  Return null if we can't use gp-relative
3669         relocation operators.
3670         * config/mips/mips.md (RELOC_GPREL16): Remove.  Shuffle other reloc
3671         constants accordingly.
3672
3673 2003-09-27  Roger Sayle  <roger@eyesopen.com>
3674
3675         * toplev.c (flag_evaluation_order): New global variable.
3676         * flags.h (flag_evaluation_order): Prototype here.
3677         * expr.c (expand_operands): If we need to preserve observable
3678         evaluation order, protect exp1 from clobbering exp0's result.
3679
3680 2003-09-28  Andreas Jaeger  <aj@suse.de>
3681
3682         * c-decl.c (finish_function): Convert definition to ISO C90.
3683         * ifcvt.c (mark_loop_exit_edges): Likewise.
3684         * ra-rewrite.c (emit_colors): Likewise.
3685
3686 2003-09-27  Nathanael Nerode  <neroden@gcc.gnu.org>
3687
3688         * config.gcc (alpha*-dec-osf[45]*): Disable fixproto.
3689         * config.gcc (arm*-*-uclinux*): Disable fixproto.
3690         * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
3691         powerpc-*-eabialtivec*): Disable fixproto.
3692
3693 2003-09-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
3694
3695         PR optimization/12340
3696         * loop.h (struct induction): Document the new semantics
3697         of the 'same' field for bivs.
3698         * unroll.c (biv_total_increment): Don't count the same
3699         biv increment several times.
3700         (loop_iterations) [GENERAL_INDUCT]: Likewise.
3701
3702 2003-09-27  Graham Stott  <graham.stott@btinternet.com>
3703
3704         * unroll.c (loop_interations)[GT]: Add missing break.
3705
3706 2003-09-27  Kelley Cook  <kcook@gcc.gnu.org>
3707
3708         * config/chorus.h, config/darwin-c.c, config/darwin-protos.h,
3709         config/darwin.c, config/darwin.h, config/dbx.h, config/dbxcoff.h,
3710         config/dbxelf.h, config/elfos.h, config/fp-bit.h,
3711         config/freebsd-nthr.h, config/freebsd-spec.h, config/freebsd.h,
3712         config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
3713         config/freebsd6.h, config/netbsd-aout.h, config/netbsd-elf.h,
3714         config/netbsd.h, config/netware.h, config/openbsd-oldgas.h,
3715         config/openbsd.h, config/ptx4.h, config/alpha/alpha-protos.h,
3716         config/alpha/alpha.c, config/alpha/alpha.h, config/alpha/alpha.md,
3717         config/alpha/elf.h, config/alpha/ev4.md, config/alpha/ev5.md,
3718         config/alpha/ev6.md, config/alpha/freebsd.h, config/alpha/linux-elf.h,
3719         config/alpha/linux.h, config/alpha/netbsd.h, config/alpha/openbsd.h,
3720         config/alpha/osf.h, config/alpha/osf5.h, config/alpha/unicosmk.h,
3721         config/alpha/vms-cc.c, config/alpha/vms-crt0-64.c,
3722         config/alpha/vms-crt0.c, config/alpha/vms-dwarf2.asm,
3723         config/alpha/vms-dwarf2eh.asm, config/alpha/vms-ld.c,
3724         config/alpha/vms-psxcrt0-64.c, config/alpha/vms-psxcrt0.c,
3725         config/alpha/vms.h, config/alpha/vms64.h, config/alpha/vms_tramp.asm,
3726         config/alpha/xm-vms.h, config/arc/arc-modes.def,
3727         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
3728         config/arc/arc.md, config/arc/initfini.c, config/arc/lib1funcs.asm,
3729         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
3730         config/avr/avr.md, config/d30v/d30v-protos.h, config/d30v/d30v.h,
3731         config/d30v/d30v.md, config/fr30/fr30-protos.h, config/fr30/fr30.c,
3732         config/fr30/fr30.h, config/fr30/fr30.md, config/fr30/lib1funcs.asm,
3733         config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
3734         config/frv/frv-abi.h, config/frv/frv-asm.h, config/frv/frv-modes.def,
3735         config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
3736         config/frv/frv.md, config/frv/frvbegin.c, config/frv/frvend.c,
3737         config/frv/lib1funcs.asm, config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
3738         config/h8300/parityhi2.c, config/h8300/popcounthi2.c,
3739         config/i370/i370-c.c, config/i370/i370-protos.h, config/i370/i370.c,
3740         config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
3741         config/i370/mvs.h, config/i370/oe.h, config/i386/darwin.h,
3742         config/i960/i960-c.c, config/i960/i960-coff.h,
3743         config/i960/i960-modes.def, config/i960/i960-protos.h,
3744         config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
3745         config/i960/rtems.h, config/ia64/elf.h, config/ia64/ia64.h,
3746         config/m32r/initfini.c, config/m32r/m32r-protos.h, config/m32r/m32r.c,
3747         config/m32r/m32r.h, config/m32r/m32r.md, config/m68hc11/larith.asm,
3748         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
3749         config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
3750         config/m68hc11/m68hc12.h, config/m68k/coff.h, config/m68k/crti.s,
3751         config/m68k/crtn.s, config/m68k/hp320.h, config/m68k/hp320base.h,
3752         config/m68k/lb1sf68.asm, config/m68k/linux.h, config/m68k/m68020-elf.h,
3753         config/m68k/m68k-aout.h, config/m68k/m68k-none.h,
3754         config/m68k/m68k-protos.h, config/m68k/m68k.c, config/m68k/m68k.h,
3755         config/m68k/m68k.md, config/m68k/m68kelf.h, config/m68k/m68kv4.h,
3756         config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
3757         config/m68k/rtemself.h, config/m68k/sgs.h, config/mcore/lib1.asm,
3758         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h,
3759         config/mcore/mcore-protos.h, config/mcore/mcore.c,
3760         config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
3761         config/mips/elforion.h, config/mips/iris5.h, config/mips/iris6.h,
3762         config/mips/iris6gld.h, config/mips/irix6-libc-compat.c,
3763         config/mips/linux.h, config/mips/mips-protos.h, config/mips/mips.c,
3764         config/mips/mips.h, config/mips/mips.md, config/mips/netbsd.h,
3765         config/mips/openbsd.h, config/mips/r3900.h, config/mips/rtems.h,
3766         config/mips/vr.h, config/mn10300/linux.h,
3767         config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
3768         config/mn10300/mn10300.h, config/mn10300/mn10300.md,
3769         config/ns32k/__unorddf2.c, config/ns32k/__unordsf2.c,
3770         config/ns32k/netbsd.h, config/ns32k/ns32k-protos.h,
3771         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/ns32k/ns32k.md,
3772         config/pdp11/2bsd.h, config/pdp11/pdp11-modes.def,
3773         config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
3774         config/pdp11/pdp11.h, config/pdp11/pdp11.md, config/rs6000/biarch64.h,
3775         config/rs6000/default64.h, config/sh/coff.h, config/sh/crt1.asm,
3776         config/sh/crti.asm, config/sh/crtn.asm, config/sh/elf.h,
3777         config/sh/embed-elf.h, config/sh/linux.h, config/sh/little.h,
3778         config/sh/netbsd-elf.h, config/sh/rtems.h, config/sh/rtemself.h,
3779         config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
3780         config/sh/sh.md, config/sh/sh64.h, config/sh/shmedia.h,
3781         config/sh/sshmedia.h, config/sh/ushmedia.h, config/sparc/pbd.h,
3782         config/sparc/sparc.h, doc/install-old.texi, fixinc/fixinc.ptx,
3783         fixinc/fixinc.svr4: GNU CC -> GCC.
3784
3785 2003-09-26  Loren James Rittle  <ljrittle@acm.org>
3786
3787         * objc/objc-act.c (tm_p.h): Tweak order.
3788         * objc/Make-lang.in (objc/objc-act.o): Add $(TM_P_H).
3789
3790 2003-09-26  Nathanael Nerode  <neroden@gcc.gnu.org>
3791
3792         * config.gcc (hppa*64*-*-linux* | parisc*64*-*-linux*):
3793         Include t-slibgcc-elf-ver and t-linux in tmake_file.
3794         * config.gcc (hppa*64*-*-linux* | parisc*64-*-linux*):
3795         Disable fixproto.
3796         * config.gcc (i960-*-coff*, m68k-*-aout*, sparclite-*-coff*):
3797         Disable fixproto.
3798         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*,
3799         sparcv9-*-solaris2*, sparc-*-solaris2*): Disable fixproto.
3800
3801         * config/i386/unix.h: Remove (unused) DEFAULT_ASSEMBLER_DIALECT.
3802
3803 2003-09-26  Loren James Rittle  <ljrittle@acm.org>
3804
3805         * config/i386/i386.h (ix86_return_in_memory): Revert my last patch.
3806         * objc/objc-act.c (tm_p.h): Include.
3807
3808 2003-09-26  Per Bothner  <pbothner@apple.com>
3809
3810         * dbxout.c (dbxout_typedefs):  Output typedefs in forward order.
3811         No longer any need to reverse by recursion.
3812
3813 2003-09-26  Roger Sayle  <roger@eyesopen.com>
3814             Richard Henderson  <rth@redhat.com>
3815
3816         PR optimization/11741
3817         * gcse.c (pre_insert_copy_insn): Tweak the logic for finding the
3818         appropriate set to match that in hash_scan_insn.  Fall back to
3819         the original copy method, if we can't validate changing insn.
3820         (pre_delete): Only delete instructions that have a single_set,
3821         instead of aborting when we encounter an PARALLEL insn with more
3822         then one SET.
3823
3824 2003-09-26  Andreas Krebbel  <krebbel1@de.ibm.com>
3825
3826         * config/s390/s390.md ("builtin_setjmp_setup"): Insn deleted.
3827         ("builtin_longjmp"): Insn deleted.
3828         ("save_stack_nonlocal"): Save literal pool base pointer behind
3829         backchain and stack pointer.
3830         ("restore_stack_nonlocal"): Restore literal pool base pointer.
3831         * config/s390/s390.h (STACK_SAVEAREA_MODE): Double size of
3832         the stack save area for the nonlocal goto case.
3833
3834 2003-09-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3835
3836         PR bootstrap/12358
3837         * pa.c (output_bvb): Fix typo.
3838
3839 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
3840
3841         * expmed.c (store_bit_field): Don't search for an integer mode
3842         unless we need the result.
3843
3844 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
3845
3846         * expr.c (emit_move_insn_1): If there is no move pattern for the
3847         original mode, try using a pattern for the corresponding integer mode.
3848
3849 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
3850
3851         PR middle-end/9200
3852         * combine.c (if_then_else_cond): Tighten mode check.
3853
3854 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
3855
3856         * cppcharset.c, cpphash.h: Rename 'struct strbuf' to
3857         'struct _cpp_strbuf'.
3858
3859         * config/i386/netbsd-elf.h, config/i386/netbsd64.h,
3860         config/i386/netware.h, config/i386/nto.h, config/i386/openbsd.h,
3861         config/i386/pentium.md, config/i386/pmmintrin.h, config/i386/ppro.md,
3862         config/i386/ptx4-i.h, config/i386/rtemself.h, config/i386/sco5.h,
3863         config/i386/sol2.h, config/i386/svr3gas.h, config/i386/sysv3.h,
3864         config/i386/sysv4-cpp.h, config/i386/sysv4.h, config/i386/sysv5.h,
3865         config/i386/unix.h, config/i386/uwin.h, config/i386/vsta.h,
3866         config/i386/xm-cygwin.h, config/i386/xm-djgpp.h,
3867         config/i386/xm-mingw32.h, config/i386/xmmintrin.h: Replace
3868         "GNU CC", "GNU compiler", and "GNU C-compiler" with "GCC".
3869         * config/i386/i386-aout.h, config/i386/i386-coff.h,
3870         config/i386/i386-interix.h, config/i386/i386-interix3.h,
3871         config/i386/i386-modes.def, config/i386/i386-protos.h,
3872         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
3873         config/i386/i386elf.h, config/i386/k6.md, config/i386/kaos-i386.h,
3874         config/i386/linux-aout.h, config/i386/linux.h, config/i386/linux64.h,
3875         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
3876         config/i386/mmintrin.h, config/i386/moss.h: GNU CC -> GCC.
3877         "GNU compiler" -> GCC.
3878         * config/i386/att.h, config/i386/beos-elf.h, config/i386/biarch64.h,
3879         config/i386/bsd.h, config/i386/crtdll.h, config/i386/cygming.h,
3880         config/i386/cygwin.h, config/i386/cygwin1.c, config/i386/cygwin2.c,
3881         config/i386/darwin.h, config/i386/djgpp.h, config/i386/emmintrin.h,
3882         config/i386/freebsd-aout.h, config/i386/freebsd.h,
3883         config/i386/freebsd64.h, config/i386/gas.h: GNU CC -> GCC.
3884
3885 2003-09-25  Kelley Cook  <kelleycook@wideopenwest.com>
3886
3887         * cgraph.c (dump_cgraph):  Don't output newline before dump.  Add in
3888         "local" to the callgraph dump.  Output "after inlining" earlier.
3889         * cgraphunit.c: Fix dumpfile whitespace and commonize headers of the
3890         callgraph dumps.  Correct misspellings.
3891         (cgraph_decide_inlining):  Output number of insns before inlining.
3892         Output the calling function into which a function is inlined.
3893         (cgraph_decide_small_functions): Format dump file like always_inline.
3894
3895 2003-09-25  Loren James Rittle  <ljrittle@acm.org>
3896
3897         * config/i386/i386.h (ix86_return_in_memory): Add prototype.
3898
3899 2003-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
3900
3901         * config/s390/s390.c (s390_emit_prologue): Simplify accesses to
3902         FPR slots in the save area.
3903         (s390_emit_epilogue): Likewise.
3904
3905 2003-09-25  Richard Sandiford  <rsandifo@redhat.com>
3906
3907         * cgraph.h (cgraph_remove_edge): Declare.
3908         * cgraph.c (cgraph_remove_edge): Make extern.
3909         * cgraphunit.c (cgraph_finalize_function): Call cgraph_remove_edge
3910         instead of cgraph_remove_call.
3911
3912 2003-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
3913
3914         * objc/objc-act.c (gen_declaration_1): Fix printf format.
3915
3916 2003-09-25  Richard Earnshaw  <rearnsha@arm.com>
3917
3918         * arm.c (all_cores): arm710t, arm720t and arm740t are all based on the
3919         arm7tdmi core.
3920
3921 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
3922
3923         * config/darwin-protos.h (objc_image_info_section):
3924         New prototype.
3925
3926 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
3927
3928         * Makefile.in (stub-objc.o): Depend on $(GGC_H).
3929
3930 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
3931
3932         * config.gcc: Get rid of more gratuitious 'x'es.  Actually allow
3933         tsc701 as a --with-cpu, --with-tune setting for sparc.
3934
3935 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
3936
3937         * c-parse.in (objc_try_stmt): Do not specify a %type.
3938
3939 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
3940
3941         * config.gcc: New 'widely ported system' clause for rtems.
3942         Set thread file there, not in individual clauses.
3943
3944 2003-09-25  Richard Sandiford  <rsandifo@redhat.com>
3945
3946         PR target/6222
3947         * config/mips/mips.c (mips_va_arg): Handle arguments that must be
3948         passed on the stack.
3949
3950 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
3951
3952         * config.gcc (widely ported systems section): Mostly alphabetize
3953         by system.  Comment the case where we can't.
3954         * config.gcc (widely ported systems section): Reindent and clean up.
3955
3956         * config.gcc: Remove some unnecessary uses of 'x' in case statements.
3957         Actually allow ep9312 as an arm --with-arch setting.
3958
3959         * config.gcc (*-hpux11): Disable fixproto.
3960
3961 2003-09-24  Phil Edwards  <phil@codesourcery.com>
3962
3963         PR pch/12112
3964         * gcc/cppfiles.c (pch_open_file): Return based on combined
3965         result of all files.
3966         (validate_pch): Return validate flag for current file.
3967
3968 2003-09-24  Roger Sayle  <roger@eyesopen.com>
3969
3970         PR bootstrap/12358
3971         * fold-const.c (tree_swap_operands_p): Only reorder operands when
3972         one of the operands is constant.
3973
3974 2003-09-24  Ziemowit Laski  <zlaski@apple.com>
3975
3976         MERGE OF objc-improvements-branch into MAINLINE:
3977         * Makefile.in (C_OBJS): Add in stub-objc.o.
3978         (c-parse.y): Change sed demarcations to begin with '@@'.
3979         (stub-objc.o): New rule.
3980         * c-common.c (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
3981         flag_replace_objc_classes): New flags.
3982         * c-common.h (RID_AT_THROW, RID_AT_TRY, RID_AT_CATCH, RID_AT_FINALLY,
3983         RID_AT_SYNCHRONIZED): New keywords.
3984         (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
3985         flag_replace_objc_classes): New flags.
3986         (lookup_interface, is_class_name, objc_is_object_ptr, objc_check_decl,
3987         objc_comptypes, objc_message_selector, lookup_objc_ivar,
3988         get_current_scope, objc_mark_locals_volatile): New prototypes,
3989         some moved from c-tree.h.
3990         * c-decl.c (get_current_scope, objc_mark_locals_volatile): New functions.
3991         (finish_decl): Adjust where objc_check_decl() gets called.
3992         * c-lang.c (lookup_interface, is_class_name, objc_is_id,  objc_check_decl,
3993         objc_comptypes, objc_message_selector, lookup_objc_ivar): Remove stubs.
3994         * c-opts.c (c_common_handle_option): Add handling for  flag_nil_receivers,
3995         flag_objc_exceptions, flag_replace_objc_classes and flag_zero_link.
3996         * c-parse.in: Replace 'ifc' and 'end ifc' sed markers with '@@ifc' and
3997         '@@end_ifc', respectively.
3998         (AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY, AT_SYNCHRONIZED): New %tokens.
3999         (objc_try_stmt, superclass, class_ivars, objc_try_catch-stmt,
4000         objc_finally_block): New rules.
4001         (component_decl_list2): Clean up semantic action for @defs construct.
4002         (component_decl, c99_block_start): Remove call to add_objc_decls().
4003         (poplevel): Add call to objc_clear_super_receiver().
4004         (stmt): Add rules for @throw, @try..@catch..@finally and @synchronized
4005         constructs.
4006         (classdef, methodprotolist): Clean up/simplify.
4007         (methodprotolist2): Eliminate.
4008         (methodproto): Call add_method() instead of add_class_method() and
4009         add_instance_method().
4010         (receiver): Add TYPENAME production.
4011         (reswords): Add "throw", "try", "catch", "finally" and "synchronized".
4012         (rid_to_yy): Add AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY and
4013         AT_SYNCHRONIZED.
4014         * c-tree.h (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
4015         objc_comptypes, objc_message_selector)
4016         * c-typeck.c (comptypes): In ObjC mode, call objc_comptypes() for
4017         struct and pointer types.
4018         (build_c_cast): Do not discard ObjC protocol qualifiers.
4019         (convert_for_assignment): Cache result of comp_target_types() instead
4020         of calling it more than once.
4021         * c.opt (fnext-runtime): Update description string.
4022         (fnil-receivers, fobjc-exceptions, freplace-objc-classes, fzero-link):
4023         New ObjC/ObjC++-specific flags.
4024         * function.h (GCC_FUNCTION_H): Header guard.
4025         * gengtype-lex.l: Teach lexer about new @@... sed demarcations.
4026         * stub-objc.c: New file, to be used to satisfy references to ObjC
4027         functions by the C and C++ front-ends.
4028         * config/darwin.c (_OBJC_IMAGE_INFO): New global metadata.
4029         * config/darwin.h (FUNCTION): Add in_objc_image_info.
4030         (SECTION_FUNCTION): Add objc_image_info_section.
4031         * doc/invoke.texi: Link to GCC web site for Objective-C information.
4032         (-fconstant-string-class): Update documentation.
4033         (-fno-nil-receivers, -fobjc-exceptions, -freplace-objc-classes,
4034         -fzero-link): New documentation.
4035         * objc/Make-lang.in (objc-parse.y): Change sed demarcations to begin
4036         with '@@'.
4037         * objc/lang-specs.h (@objective-c-header): Fix -E spec.
4038         * objc/objc/objc-act.c: Replace TYPE_NAME with OBJC_TYPE_NAME
4039         throughout; provide casts for return values from memory allocation
4040         functions (xmalloc, alloca, ggc_alloc, etc.).
4041         (OBJC_VOID_AT_END): New macro.
4042         (rtl.h): Do not #include any more.
4043         (STRING_OBJECT_GLOBAL_NAME): Replaced with STRING_OBJECT_GLOBAL_FORMAT.
4044         (TAG_MSGSEND_STRET, TAG_MSGSENDSUPER_STRET, TAG_MSGSEND_NONNIL,
4045         TAG_MSGSEND_NONNIL_STRET, TAG_EXCEPTIONEXTRACT, TAG_EXCEPTIONTRYENTER,
4046         TAG_EXCEPTIONTRYEXIT, TAG_EXCEPTIONMATCH, TAG_EXCEPTIONTHROW,
4047         TAG_SYNCENTER, TAG_SYNCEXIT): New NeXT runtime entry points.
4048         (struct val_stack, catch_count_stack, exc_binding_stack,  val_stack_push,
4049         val_stack_pop): New.
4050         (objc_check_decl): Fix precondition for error message, along with
4051         the message itself.
4052         (lookup_and_install_protocols): Remove nonexistent protocols from
4053         protocol list instead of returning error_mark_node.
4054         (create_builtin_decl): Use DECL_ARTIFICIAL only for VAR_DECLs.
4055         (setup_string_decl): Generalize to use STRING_OBJECT_GLOBAL_FORMAT.
4056         (synth_module_prologue): General clean-up; construct NeXT-specific
4057         runtime API prototypes if needed.
4058         (build_string_class_template): Remove.
4059         (check_string_class_template, string_layout_checked): New.
4060         (build_objc_string_object): Generalize to work with
4061         -fconstant-string-class.
4062         (build_objc_symtab_template): Fix layout for the NeXT runtime.
4063         (build_metadata_decl): New.
4064         (forward_declare_categories): Call build_metadata_decl() instead of
4065         create_builtin_decl() et al.
4066         (build_module_descriptor): Use OBJC_VOID_AT_END instead of
4067         void_list_node_1.
4068         (build_selector_reference_decl, build_class_reference_decl,
4069         build_objc_string_decl): Do not set TREE_READONLY.
4070         (get_proto_encoding): Do not call hack_method_prototype().
4071         (get_class_reference): Add failure mode for invalid class names;
4072         support -fzero-link; defer if in an ObjC++ template declaration.
4073         (objc_declare_alias, objc_declare_class): Fix up duplicate name
4074         lookup; check for global scope if in ObjC++.
4075         (is_class_name): Generalize to work with various tree nodes (TYPE_DECL,
4076         RECORD_TYPE, IDENTIFIER_NODE, etc.)
4077         (objc_is_id): Removed.
4078         (objc_is_object_ptr): New function.
4079         (get_class_ivars_from_name): New function, used for @defs construct.
4080         (get_class_ivars): Add option to return raw ivars; create a
4081         ClASS_OWN_IVARS list for each class as needed.
4082         (objc_enter_block, objc_exit_block, objc_declare_variable,
4083         objc_build_throw_stmt, val_stack_push, val_stack_pop,
4084         objc_build_try_enter_fragment, objc_build_extract_expr,
4085         objc_build_try_exit_fragment, objc_build_extract_fragment,
4086         objc_build_try_prologue, objc_build_try_epilogue,
4087         objc_build_catch_stmt, objc_build_catch_epilogue,
4088         objc_build_finally_prologue, objc_build_finally_epilogue,
4089         objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
4090         objc_build_synchronized_epilogue, build_objc_exception_stuff):
4091         New functions.
4092         (_JBLEN): _setjmp jmpbuf size (needs to be made a target hook in
4093         the future).
4094         (build_private_template): Fix up calls to get_class_ivars().
4095         (offset_is_register, forwarding_offset): Remove.
4096         (objc_method_parm_type, objc_encoded_type_size): New functions.
4097         (encode_method_prototype): Simplify to no longer depend on
4098         back-end information.
4099         (build_tmp_function_decl_xxx, build_tmp_function_decl,
4100         hack_method_prototype): Removed.
4101         (generate_protocol_references): Remove calls to
4102         build_tmp_function_decl().
4103         (generate_protocols): Adjust calls to encode_method_prototype().
4104         (build_class_template): Generate sel_id' and 'gc_object_type' fields
4105         for the NeXT runtime.
4106         (synth_forward_declarations): Call build_metadata_decl().
4107         (check_ivars): Check that the number of ivars matches also.
4108         (build_super_template): Modify super_type directly; disable debugging
4109         output while generating decl.
4110         (build_ivar_list_initializer): Skip list elements that are not
4111         FIELD_DECLs.
4112         (ivar_list_length): New function.
4113         (generate_ivar_lists): Call ivar_list_length() instead of list_length()
4114         and encode_method_prototype() instead of encode_method_def().
4115         (build_shared_structure_initializer): Generate 'sel_id' field for
4116         the NeXT runtime.
4117         (generate_category): Do not set TREE_USED.
4118         (build_keyword_selector): Ditto; transform into a function argument
4119         chain.
4120         (get_arg_type_list): If there are no user-specified arguments, use
4121         '...'; use OBJC_VOID_AT_END.
4122         (check_duplicates): Add a parameter indicating whether methods or
4123         selectors are being checked.
4124         (receiver_is_class_object): Add parameters indicating whether
4125         receiver is 'self' or 'super'; robustify.
4126         (build_message_expr): Defer call to finish_message_expr() if
4127         inside an ObjC++ template.
4128         (lookup_method_in_hash_lists): New function.
4129         (finish_message_expr): Complete rewrite/fix.
4130         (build_objc_method_call): Ditto; factor out commonalities between
4131         the GNU and NeXT runtimes; acccommodate ..._stret and ...NonNil
4132         messenger variants on the NeXT.
4133         (lookup_instance_method_static, lookup_class_method_static):
4134         Fold into a single lookup_method_static() function with an
4135         additional parameter.
4136         (add_class_method, add_instance_method): Fold into a single
4137         add_method() function with an additional parameter.
4138         (add_category): Make duplicate categories a hard error in ObjC++.
4139         (add_instance_variable): Properly handle unnamed ivars, arrays of
4140         zero or no size and bitfields.  In ObjC++, check for nontrivial
4141         C++ class instances.
4142         (is_public): Allow C functions to access non-@public ivars, with
4143         a warning.
4144         (start_class): Move common initializations to
4145         synth_module_prologue(); check for global scope if in ObjC++.
4146         (continue_class): Fix calls to finish_struct().
4147         (objc_declare_protocols, start_protocol): Check for global scope
4148         if in ObjC++.
4149         (encode_pointer): Encode 'BOOL *' specially on the NeXT.
4150         (encode_aggregate_within): Rewrite to properly distinguish
4151         struct tags from typedefs in both ObjC and ObjC++.
4152         (encode_bitfield, encode_complete_bitfield): Remove.
4153         (encode_next_bitfield, encode_gnu_bitfield): New functions.
4154         (encode_field_decl): Call encode_next_bitfield() or
4155         encode_gnu_bitfield() as needed.
4156         (synth_self_and_ucmd_args): New function.
4157         (start_method_def): Use it.
4158         (objc_types_are_equivalent): New function.
4159         (comp_proto_with_proto): Use it instead of comptypes(), since
4160         we need symmetry.
4161         (really_start_method): Use lookup_method_static() instead of
4162         lookup_class_method_static() and lookup_instance_method_static();
4163         Emit 'extern "C"' if in ObjC++ mode.
4164         (add_objc_decls): Removed.
4165         (UOBJC_SUPER_scope): New variable.
4166         (get_super_receiver): Move construction of 'super' from
4167         add_objc_decls(); remove dependency on struct objc_class.
4168         (encode_method_def): Removed; encode_method_prototype() is
4169         used instead.
4170         (objc_clear_super_receiver): New function.
4171         (objc_expand_function_end): Do not do anything for ordinary
4172         C functions.
4173         (finish_method_def): Mark ObjC methods as un-inlinable.
4174         (gen_declaration_1): Emit widths of bitfields.
4175         (finish_objc): Call generate_objc_image_info() if needed;
4176         use check_duplicates() when checking for selector duplicates.
4177         (generate_objc_image_info): New function.
4178         * objc/objc-act.h (add_instance_method, add_class_method,
4179         get_class_ivars): Remove prototypes.
4180         (objc_build_throw_stmt, objc_build_try_catch_finally_stmt,
4181         objc_build_synchronized_prologue, objc_build_synchronized_epilogue,
4182         objc_build_catch_stmt, objc_build_catch_epilogue,
4183         objc_build_finally_prologue, objc_build_finally_epilogue,
4184         add_method, get_class_ivars_from_name): New prototypes.
4185         (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): New.
4186         (TYPE_PROTOCOL_LIST): Robustify to distinguish from
4187         TRANSLATION_UNIT_DECLs.
4188         (OBJC_TYPE_NAME): New.
4189         (objc_tree_code): Ensure that either <c-tree.h> or <cp/cp-tree.h>
4190         got included.
4191         (IS_SUPER): Robustify.
4192         (umsg_stret_decl, umsg_super_stret_decl, umsg_nonnil_decl,
4193         umsg_nonnil_stret_decl, objc_storage_class, objc_exception_extract_decl,
4194         objc_exception_try_enter_decl, objc_exception_try_exit_decl,
4195         objc_exception_match_decl, objc_exception_throw_decl,
4196         objc_sync_enter_decl, objc_sync_exit_decl, objc_exception_data_template,
4197         objc_setjmp_decl, objc_stack_exception_data, objc_caught_exception,
4198         objc_rethrow_exception, objc_eval_once, objc_exception_block_stack,
4199         objc_catch_type): New ObjC/ObjC++ roots.
4200         * objc/objc-tree.def (MESSAGE_SEND_EXPR, CLASS_REFERENCE_EXPR): New
4201         ObjC/ObjC++ tree node codes.
4202
4203 2003-09-24  Alexandre Oliva  <aoliva@redhat.com>
4204
4205         * cpplib.c (do_pragma): Reintroduce cb_line_change call in the
4206         code path that calls a handler.
4207
4208 2003-09-24  Nathanael Nerode  <neroden@gcc.gnu.org>
4209
4210         * config.gcc (c4x-*, tic4x-*, d30v-*, mmix-knuth-mmixware):
4211         Disable fixproto.
4212
4213         * config.gcc: Clean up and reindent $with_cpu=yes|no clause and
4214         the section giving $with_cpu defaults by target.
4215
4216         * config.gcc (arm-*-coff*, armel-*-coff*, arm*-*-ecos-elf,
4217         arm*-*-elf, ep9312-*-elf, arm*-wince-pe*, arm*-*-pe*, arm*-*-pe*,
4218         rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*,
4219         rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*,
4220         rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*,
4221         i[34567]86-pc-msdosdjgpp*): Disable fixproto.
4222
4223 2003-09-24  David Edelsohn  <edelsohn@gnu.org>
4224
4225         * config/rs6000/rs6000.md (movti_power): Collapse case 1 and 2
4226         together.  Protect load string instruction with TARGET_STRING.
4227         (movti_string): Collapse case 1 and 2 together.
4228
4229 2003-09-24  Nathan Sidwell  <nathan@codesourcery.com>
4230
4231         * c-common.c (c_common_type_for_mode): Check for VOIDmode.
4232
4233 2003-09-24  Richard Earnshaw  <rearnsha@arm.com>
4234
4235         * arm.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Wrap in
4236         do...while(0)
4237
4238 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
4239
4240         * config.gcc: Move use_fixproto=no from generic vxworks clause to
4241         specific one.
4242
4243         * config.gcc (powerpc-*-gnu-gnualtivec*): Disable fixproto
4244         (accidentally missed in last pass).
4245
4246 2003-09-23  Andrew Pinski  <apinski@apple.com>
4247
4248         PR bootstrap/12383
4249         * configure: Regenerate.
4250
4251 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
4252
4253         * config.gcc (x86_64-*-freebsd*): Disable fixproto (accidentally
4254         missed in last pass).
4255
4256 2003-09-23  Alexandre Oliva  <aoliva@redhat.com>
4257
4258         * config/mn10300/mn10300.md (andsi3): Fix cut&pasto in 0xfffffffe
4259         constant.
4260
4261 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
4262
4263         * config.gcc: Move vax-*-vms* unsupported notice up with the rest.
4264
4265         * config.gcc (alpha64*-dec-*vms*, alpha*-dec-*vms*,
4266         powerpc-*-eabisim*, powerpc-*-eabi*, powerpcle-*-eabisim*,
4267         powerpcle-*-eabi*): Disable fixproto.
4268
4269         * config.gcc: Move use_fixproto=no from generic FreeBSD clause to
4270         specific FreeBSD clauses.
4271         * config.gcc: Move use_fixproto=no from generic NetBSD clause to
4272         specific NetBSD clauses.
4273         * config.gcc: Move use_fixproto=no from generic OpenBSD clause
4274         to specific OpenBSD clauses.
4275
4276 2003-09-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4277
4278         * pa.c (hppa_expand_prologue): Do pic register save in frame marker
4279         without adding a frame note.
4280         * pa.md (allocate_stack): Save pic register in new frame marker when
4281         generating pic code.
4282
4283 2003-09-23  Kelley Cook  <kelleycook@wideopenwest.com>
4284
4285         * cgraphunit.c (cgraph_expand_all_functions): Renamed from
4286         cgraph_expand_functions.
4287
4288 2003-09-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4289
4290         * Makefile.in (gnucompare*): Merge into ...
4291         (slowcompare*): ... here.
4292         (fastcompare*): New targets.
4293         * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): Add checks for
4294         other "fast" cmp programs.
4295         * configure: Regenerate.
4296
4297 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4298
4299         * targhooks.c: Include output.h.
4300         * Makefile.in (targhooks.o): Add output.h to dependency list.
4301
4302 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4303
4304         * config.host: Removed superfluous newline.
4305
4306 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
4307
4308         * config.gcc: Use ${target}, not $machine.
4309         * configure.in: Don't set $machine.
4310         * configure: Regenerate.
4311
4312 2003-09-23  Geoffrey Keating  <geoffk@apple.com>
4313
4314         * config/t-darwin (crt2.o): Add stmp-int-hdrs to dependencies.
4315
4316         * config/rs6000/rs6000.c (function_arg_pass_by_reference): Don't
4317         pass zero-size arrays by reference.
4318         (rs6000_va_arg): Likewise.
4319
4320 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
4321
4322         * config.gcc: Set use_fixproto=no in each specific *-gnu*
4323         configuration, rather than the generic one.
4324
4325 2003-09-23  Richard Henderson  <rth@redhat.com>
4326
4327         * tree-inline.c (remap_save_expr): Map new save_expr to identity
4328         rather than to error_mark_node.
4329
4330 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4331
4332         * configure.in (HAVE_GAS_SHF_MERGE): Always define to test result.
4333         Update description.
4334         * configure: Regenerate.
4335         * config.in: Likewise.
4336         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test for
4337         HAVE_GAS_SHF_MERGE value.
4338         * varasm.c (mergeable_string_section): Likewise.
4339         (mergeable_constant_section): Likewise.
4340
4341 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4342
4343         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
4344         value.
4345
4346 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4347
4348         * target.h (struct gcc_target): New member external_libcall.
4349         * target-def.h (TARGET_ASM_EXTERNAL_LIBCALL): Provide default.
4350         (TARGET_ASM_OUT): Use it.
4351         * doc/tm.texi (TARGET_ASM_EXTERNAL_LIBCALL): Document.
4352         * targhooks.c: Convert to ISO C 90.
4353         (default_external_libcall): New function.
4354         * targhooks.h (default_external_libcall): Declare.
4355         * varasm.c (assemble_external_libcall): Use
4356         targetm.asm_out.external_libcall instead of
4357         ASM_OUTPUT_EXTERNAL_LIBCALL.
4358         * config/mips/mips-protos.h [TARGET_IRIX5 || TARGET_IRIX 6]
4359         (mips_output_external_libcall): Declare.
4360         * config/mips/mips.c (mips_output_external_libcall): Change
4361         definition guard.
4362         Change to match TARGET_ASM_EXTERNAL_LIBCALL.
4363         Only operate for O32 ABI.
4364         * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Define
4365         instead of ASM_OUTPUT_EXTERNAL_LIBCALL.
4366         * config/mips/iris6.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Don't undef,
4367         superceded by TARGET_ASM_EXTERNAL_LIBCALL.
4368
4369 2003-09-22  Nathnael Nerode  <neroden@gcc.gnu.org>
4370
4371         * config.gcc: Do per-target disabling of fixproto here in clauses,
4372         not in t- fragments.
4373         * configure.in: Adjust to set STMP_FIXPROTO correctly.
4374         * configure: Regenerate.
4375         * config/arm/t-semi, config/cris/t-cris, config/i386/t-beos,
4376         config/i386/t-cygming, config/i386/t-nto, config/ia64/t-hpux,
4377         t-freebsd, t-linux, t-netbsd, t-openbsd, t-rtems, t-vxworks,
4378         xtensa/t-xtensa: Remove setting of STMP_FIXPROTO.
4379         * config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd,
4380         t-interix, t-linux-aout:  Delete files consisting only of
4381         setting of STMP_FIXPROTO.
4382
4383         * config.host: Allow unknown hosts (not targets).  Allow
4384         ns32k-*-netbsdelf* as a host (not a target).  Remove redundant
4385         empty clauses.  Remove useless obsolete-configuration clause.
4386         Prune unsupported configuration list.  Collapse identical
4387         clauses for closely related systems.  Rewrite comment for
4388         unsupported hosts list.  Reorganize a little.
4389
4390 2003-09-22  Richard Henderson  <rth@redhat.com>
4391
4392         * c-common.c (c_common_signed_or_unsigned_type): Examine mode,
4393         not precision.
4394
4395 2003-09-22  David Edelsohn  <edelsohn@gnu.org>
4396             Hartmut Penner  <hpenner@de.ibm.com>
4397             Segher Boessenkool  <boessen@de.ibm.com>
4398
4399         * config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ...
4400         (gpr_or_gpr_p): Test INT_REGNO_P and convert to boolean.
4401         (rs6000_split_altivec_in_gprs): Rename to ...
4402         (rs6000_split_multireg_move): Add support for update addressing.
4403         * config/rs6000/rs6000-protos.h: Same.
4404         * config/rs6000/altivec.md: Same.
4405         * config/rs6000/rs6000.md (movdi_internal32): Use new splitter for
4406         multiple GPRs.
4407         (movti): Remove TARGET_STRING || TARGET_POWERPC64 final condition.
4408         (movti_power): Use new splitter for multiple GPRs.
4409         (movti_string): Same.
4410         (movti_ppc64): Same.
4411
4412 2003-09-22  Bob Wilson  <bob.wilson@acm.org>
4413
4414         * config/xtensa/xtensa-protos.h: Convert to ISO C90.
4415         * config/xtensa/xtensa.c: Convert to ISO C90.  Minor formatting fixes.
4416
4417 2003-09-22  Alexandre Oliva  <aoliva@redhat.com>
4418
4419         * config/mn10300/mn10300.md: Revert 2003-09-17's patch.
4420         (andsi3): Set attr cc to set_zn when using shifts or adds.
4421
4422 2003-09-22  Bernardo Innocenti <bernie@develer.com>
4423
4424         * doc/contrib.texi: Add Peter Barada, Paul Dale and myself.
4425
4426 2003-09-22  Bernardo Innocenti  <bernie@develer.com>
4427
4428         * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, RETURN_POPS_ARGS):
4429         Resurrect -mrtd option.
4430
4431 2003-09-21  Andrew Pinski  <pinskia@physics.uc.edu>
4432
4433         PR target/12281
4434         * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Call
4435         mark_referenced instead of setting TREE_SYMBOL_REFERENCED.
4436
4437 2003-09-22  Olivier Hainque  <hainque@act-europe.fr>
4438
4439         PR target/9786
4440         * reg-stack.c (convert_regs_1): Purge possible dead eh edges
4441         after potential deletion of trapping insn. Avoids later ICE
4442         from call to fixup_abnormal_edges.
4443         (convert_regs_2): Stack the current block successors before
4444         processing this block, that is, before the potential deletion of
4445         dead edges by convert_regs_1, because these edges have been used
4446         to initialize the predecessors count.
4447
4448 2003-09-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
4449
4450         * real.c: Fix several nits in the head comment.
4451
4452 2003-09-21  Richard Henderson  <rth@redhat.com>
4453
4454         * tree.h c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
4455         diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
4456         print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
4457         tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
4458         config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Revert.
4459
4460 2003-09-21  Richard Henderson  <rth@redhat.com>
4461
4462         * tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
4463         (TREE_FILENAME, TREE_LINENO): Likewise.
4464         (set_tree_locus, copy_tree_locus, set_tree_file_line): New.
4465         (TREE_LOCUS_SET_P): New.
4466         * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
4467         diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
4468         print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
4469         tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
4470         config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.
4471
4472 2003-09-21  Nathanael Nerode  <neroden@gcc.gnu.org>
4473
4474         * config/vax/vax-protos.h: Convert to ISO C90.
4475         * config/vax/vax.c: Convert to ISO C90.
4476
4477 2003-09-21  Graham Stott  <grahams@btinternet.com>
4478
4479        PR target/12353
4480        * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint.
4481
4482 2003-09-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
4483
4484         PR target/12301
4485         * reorg.c (stop_search_p): Return 1 for insns that can
4486         throw internally.
4487
4488 2003-09-20  Richard Henderson  <rth@redhat.com>
4489
4490         * c-format.c (gcc_diag_char_table): Add %J.
4491         (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
4492         (check_format_types): Fix wanted_type name lookup.
4493         (init_dynamic_diag_info): Setup %J.
4494         * diagnostic.c (text_specifies_location): Implement %J.
4495         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
4496         dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
4497         tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
4498         config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
4499         config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
4500
4501         * tree-inline.c: Include intl.h
4502         (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
4503         * Makefile.in (tree-inline.o): Update.
4504
4505 2003-09-20  Roger Sayle  <roger@eyesopen.com>
4506
4507         * config/i386/i386.c (ix86_expand_carry_flag_compare): Fix
4508         transformation of a>=0 into (unsigned)a<0x80000000.
4509
4510 2003-09-20  Andrew Pinski <apinski@apple.com>
4511
4512         * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.
4513
4514 2003-09-20  Nathanael Nerode  <neroden@gcc.gnu.org>
4515
4516         * Makefile.in: Don't set (unused) DLLTOOL.
4517
4518         * config/arm/t-linux, config/arm/t-netbsd, config/arm-t-semi:
4519         Remove obsolete references to ENQUIRE.
4520
4521 2003-09-19  Nathanael Nerode  <neroden@gcc.gnu.org>
4522
4523         * configure.in: Remove --with-elf, which doesn't work.
4524         * configure: Regenerate.
4525         * config.gcc: Remove references to $elf, which does nothing.
4526
4527         * config/i386/xm-vsta.h: Remove xm-file believed useless.
4528         * config.build (i386-vsta): Remove reference to it.
4529         * config.host (i386-vsta): Remove reference to it.
4530
4531 2003-09-19  Phil Edwards  <phil@codesourcery.com>
4532
4533         * doc/install.texi:  Document the multiple testsuite options.
4534
4535 2003-09-19  Gerald Pfeifer  <gerald@pfeifer.com>
4536
4537         * doc/install.texi (Specific): Add the specific versions of GCC
4538         where support for FreeBSD 1, HP-UX version 9 and older, and AIX
4539         version 3 and older was discontinued.
4540
4541 2003-09-19      Joel Sherrill <joel@oarcorp.com>
4542
4543         * config/m68k/t-m68kbare, config/m68k/t-rtems: Change 68681 to
4544         68881.
4545
4546 2003-09-19  Bernardo Innocenti  <bernie@develer.com>
4547
4548         * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Add predefines
4549         for -m68030, -m68020-60 and -m68020-40.
4550         * config/m68k/m68k.h (TARGET_68030): New target flag.
4551         * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, MASK_REGPARM,
4552         TARGET_REGPARM): Remove.
4553         * config/m68k/m68k.h: Regroup and renumber target flags.
4554         * config/m68k/m68k.h (TARGET_SWITCHES): Fix some tabulations.
4555         * config/m68k/m68k.h (RETURN_POPS_ARGS): Always evaluate to 0.
4556         * config/m68k/m68k.h (FUNCTION_ARG): Likewise.
4557         * config/m68k/m68k.h (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
4558         * config/m68k/m68k-none.h: Use MASK_xxx values in M68K_CPU_xxx macros.
4559
4560 2003-09-19  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
4561
4562         * config/m68k/t-rtems (m68k-*-rtems*): New.
4563         * config.gcc: Use config/m68k/t-rtems.
4564
4565 2003-09-19  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
4566
4567         * config/mips/t-rtems: New.
4568         * config.gcc (mips*-*-rtems*): Use config/mips/t-rtems.
4569
4570 2003-09-19  Kelley Cook  <kelleycook@wideopenwest.com>
4571
4572         * cgraph.c: Fix typo in debugging output.
4573
4574 2003-09-19  T. Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
4575             Eric Botcazou <ebotcazou@libertysurf.fr>
4576
4577         PR target/12166
4578         * config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1.
4579
4580 2003-09-18  Mike Stump  <mrs@apple.com>
4581
4582         * c-ppoutput.c (print):  Use fileline typedef for field 'line'.
4583         (print_line, maybe_print_line, cb_define, cb_undef, cb_include,
4584         cb_ident, cb_def_pragma):  Use fileline typedef.
4585         * cpphash.h (struct cpp_reader):  Likewise for field out.first_line.
4586
4587 2003-09-18  Danny Smith  <dannysmith@users.sourceforge.net>
4588
4589         * config/i386/winnt.c (gen_stdcall_suffix): Quit summation of
4590         total parm size if a parm has incomplete type.
4591         (gen_fastcall_suffix): Likewise.
4592
4593 2003-09-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4594
4595         * except.c (output_function_exception_table): Adjust last change
4596         to handle TYPE of INTEGER_CST.
4597
4598 2003-09-18  Mark Mitchell  <mark@codesourcery.com>
4599
4600         PR target/11184
4601         * builtins.c (expand_builtin_apply): Use convert_memory_address
4602         before returning the value.
4603
4604         * alias.c (find_base_value): Simplify use of
4605         convert_memory_address.
4606         (find_base_term): Likewise.
4607         * builtins.c (expand_builtin_stejmp_setup): Likewise.
4608         (expand_builtin_longjmp): Likewise.
4609         (expand_builtin_prefetch): Likewise.
4610         (get_memory_rtx): Likewise.
4611         (expand_builtin_return): Likewise.
4612         (expand_builtin_memcpy): Likewise.
4613         (expand_builtin_strncpy): Likewise.
4614         (expand_builtin_memset): Likewise.
4615         (expand_builtin_va_arg): Likewise.
4616         (expand_builtin_va_copy): Likewise.
4617         (expand_builtin_alloca): Likewise.
4618         * calls.c (expand_call): Likewise.
4619         * except.c (expand_builtin_extract_return_addr): Likewise.
4620         (expand_builtin_eh_return): Likewise.
4621         * explow.c (convert_memory_address): Define even when
4622         POINTER_EXTEND_UNSIGNED is not defined.  Do nothing if the address
4623         is already in the right mode.
4624         * explow.c (memory_address): Simplify use of convert_memory_address.
4625         (probe_stack_range): Likewise.
4626         * expmed.c (make_tree): Likewise.
4627         * expr.c (emit_block_move_in_libcall): Likewise.
4628         (expand_assignment): Likewise.
4629         (expand_expr): Likewise.
4630         * function.c (assign_parms): Likewise.
4631         (expand_function_end): Likewise.
4632         * integrate.c (copy_rtx_and_substitute): Likewise.
4633         * stmt.c (expand_computed_goto): Likewise.
4634
4635 2003-09-18  Roger Sayle  <roger@eyesopen.com>
4636
4637         * simplify-rtx.c (simplify_unary_operation): Only transform
4638         (not (eq X Y)) into (ne X Y) when mode is BImode or STORE_FLAG_VALUE
4639         is -1.  RTL "not" is a bit-wise not, "~", not a logical not "!".
4640
4641 2003-09-18  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4642
4643         PR target/11674
4644         * config/i386/i386.c (x86_emit_floatuns): Also handle SImode operand.
4645
4646 2003-09-18  Roger Sayle  <roger@eyesopen.com>
4647
4648         * tree.def (FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR,
4649         PARITY_EXPR): Delete unused tree codes.
4650         * c-common.c (c_common_truthvalue_conversion): Delete references
4651         to FFS_EXPR and POPCOUNT_EXPR.
4652         * c-pretty-print.c (pp_c_postfix_expression): Remove FFS_EXPR.
4653         (pp_c_expression): Likewise.
4654         * expr.c (expand_expr): Delete RTL expansion of FFS_EXPR, CLZ_EXPR,
4655         CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.
4656         * fold-const.c (tree_expr_nonnegative_p): Remove FFS_EXPR, CLZ_EXPR,
4657         CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.  Add support for calls to
4658         BUILT_IN_FFS, BUILT_IN_PARITY and BUILT_IN_POPCOUNT and their long
4659         and long long variants.
4660
4661 2003-09-18  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4662
4663         * c-pretty-print.h (pp_type_specifier_seq): Fix thinko.
4664         * c-pretty-print.c: Fix formatting.
4665         (pp_c_integer_constant): Append type annotation to literals.  Tidy.
4666         (pp_c_type_specifier): Tidy.
4667         (pp_c_compound_literal): New function.
4668         (pp_c_initializer): Simplify..
4669         (pp_c_initializer_list): Likewise.
4670         (pp_c_brace_enclosed_initializer_list): New function.
4671         (pp_c_postfix_expression): Simplify.
4672
4673 2003-09-17  Alexandre Oliva  <aoliva@redhat.com>
4674
4675         * config/mn10300/mn10300.md (andsi3, iorsi3, xorsi3,
4676         one_complsi2, bit-clear, bit-set, iorqi3): Make them set_zn.
4677
4678 2003-09-17  Richard Henderson  <rth@redhat.com>
4679
4680         * tree-optimize.c (tree_rest_of_compilation): Save and restore
4681         input_location.
4682
4683 2003-09-17  Daniel Jacobowitz  <drow@mvista.com>
4684
4685         * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Give -lpthread before -lc.
4686
4687 2003-09-17  Richard Henderson  <rth@redhat.com>
4688
4689         * cfg.c (dump_flow_info): Skip register dump if reg_n_info null.
4690
4691 2003-09-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4692
4693         * configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag.
4694         * configure: Regenerate.
4695
4696 2003-09-17  Mark Mitchell  <mark@codesourcery.com>
4697
4698         PR debug/12066
4699         * dbxout.c (dbxout_init): Use a langhook to find builtin types.
4700         * langhooks-def.h (lhd_return_null_tree_v): New function.
4701         (LANG_HOOKS_BUILTIN_TYPE_DECLS): New macro.
4702         (LANG_HOOKS_DECLS): Add it to the intializer.
4703         * langhooks.c (lhd_return_null_tree_v): New function.
4704         * langhooks.h (lang_hooks_for_decls): Add builtin_type_decls.
4705
4706 2003-09-17  Daniel Jacobowitz  <drow@mvista.com>
4707
4708         * configure.in: Quote gcc_config_arguments for configargs.h.
4709         * configure: Regenerated.
4710         * gccbug.in: Don't shell-expand gcc_config_arguments.
4711
4712 2003-09-17  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4713
4714         PR c++/11357
4715         * c-pretty-print.c (pp_c_floating_constant): Append
4716         type-annotation to floating constants.
4717
4718 2003-09-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4719
4720         * config/mips/iris5.h (TARGET_OS_CPP_BUILTINS): Define _LONGLONG.
4721         Define _ABIO32.
4722         Use it for _MIPS_SIM.
4723         * config/mips/iris6-o32.h (TARGET_OS_CPP_BUILTINS): Removed.
4724
4725         * config/mips/iris6-o32-as.h (SUBTARGET_ASM_OPTIMIZING_SPEC):
4726         Moved ...
4727         * config/mips/iris5.h (SUBTARGET_ASM_OPTIMIZING_SPEC): ... here,
4728         updating comment.
4729         Fixes PR target/10190.
4730
4731 2003-09-17  Daniel Jacobowitz  <drow@mvista.com>
4732
4733         * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Make -pthread apply
4734         to shared libraries.
4735
4736 2003-09-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
4737
4738         PR optimization/11646
4739         * cfgrtl.c (purge_dead_edges) [JUMP_INSN]: Rematerialize the
4740         EDGE_ABNORMAL flag for EH edges.
4741         * toplev.c (rest_of_handle_cse): Delete unreachable blocks
4742         if dead edges were purged.
4743
4744 2003-09-16  Bernardo Innocenti  <bernie@develer.com>
4745
4746         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines.
4747         * config/m68k/m68k-none.h (CPP_CPU_DEFAULT_SPEC): Kill all definitions.
4748         * config/m68k/m68k-none.h (CPP_FPU_SPEC): Remove.
4749         * config/m68k/m68k-none.h (CPP_SPEC): Likewise.
4750
4751 2003-09-16  Ian Lance Taylor  <ian@wasabisystems.com>
4752
4753         * cfgcleanup.c (label_is_jump_target_p): Correct use of table
4754         returned by tablejump_p.
4755
4756 2003-09-16  Joel Brobecker  <brobecker@gnat.com>
4757
4758         * dwarf2asm.c (dw2_asm_output_nstring): Add comment.
4759
4760 2003-09-16  Roger Sayle  <roger@eyesopen.com>
4761
4762         PR bootstrap/12269
4763         * simplify-rtx.c (simplify_gen_relational): Allow the cmp_mode
4764         argument to be VOIDmode, taking the mode of the comparison from
4765         the operands.  Only call simplify_relational_operation if we
4766         know the mode of the comparison.  Honor FLOAT_STORE_FLAG_VALUE
4767         if comparison has a floating point result.  Ensure that the
4768         result is always of the specified mode.
4769         (simplify_replace_rtx): Simplify call to simplify_gen_relational.
4770         (simplify_unary_operation): Ensure the correct mode and cmp_mode
4771         are always passed to simplify_gen_relational.  Simplify NOT of
4772         comparison operator in any mode, not just BImode.
4773         (simplify_ternary_operation): Correct tests on the return value
4774         of simplify_relational_operation to use const_true_rtx, not
4775         const1_rtx.  Abort if it ever returns a non-constant result.
4776
4777         * cfgloopanal.c (count_strange_loop_iterations): Use the function
4778         simplify_relational_operation, not simplify_gen_relational, if
4779         we're only interested in constant comparisons and will ignore
4780         non-constant results.
4781
4782 2003-09-16  Roger Sayle  <roger@eyesopen.com>
4783
4784         * fold-const.c (tree_swap_operands_p): New function to determine
4785         the prefered ordering of operands.
4786         (fold): Numerous clean-ups.  Use tree_swap_operands_p when swapping
4787         operands to commutative, comparison or ternary operators.  Replace
4788         uses of TREE_SET_CODE with recursive call to fold.  Remove duplicate
4789         transformation of A ? B : C into !A ? C : B.
4790
4791 2003-09-16  Jakub Jelinek  <jakub@redhat.com>
4792
4793         * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4794         * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4795         * config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4796         * config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4797         * config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4798         * config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4799         * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4800         * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4801
4802 2003-09-16  Jason Merrill  <jason@redhat.com>
4803             Jakub Jelinek  <jakub@redhat.com>
4804
4805         * c-common.c (handle_warn_unused_result_attribute): New function.
4806         (c_common_attribute_table): Add warn_unused_result.
4807         (c_expand_expr): Issue warning when result of inlined function
4808         with warn_unused_result attribute is ignored.
4809         * calls.c (expand_call): Issue warning when result of function
4810         with warn_unused_result attribute is ignored.
4811         * c-common.h (STMT_EXPR_WARN_UNUSED_RESULT): Define.
4812         * expr.c (expr_wfl_stack): Define.
4813         (expand_expr) <case EXPR_WITH_FILE_LOCATION>: If ignore,
4814         pass const0_rtx as target.  Chain locations into expr_wfl_stack.
4815         * tree-inline.c (expand_call_inline): Set STMT_EXPR_WARN_UNUSED_RESULT
4816         bit if inlined function has warn_unused_result attribute.
4817         * input.h (expr_wfl_stack): Declare.
4818         * doc/extend.texi: Document warn_unused_result attribute.
4819
4820 2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
4821
4822         * cpplib.c (do_pragma): Remove unnecessary cb_line_change.
4823
4824 2003-09-15  Bob Wilson  <bob.wilson@acm.org>
4825
4826         * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Add
4827         ATTRIBUTE_UNUSED.
4828         (call_insn_operand): For PIC, don't allow a direct call to a
4829         function in a different section than the current one.
4830
4831 2003-09-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4832
4833         * doc/invoke.texi (Warning Options): Add missing hyphen before
4834         "Wimport".  Change "-Wno-endif-labels" to "-Wendif-labels".
4835         Move "-Wold-style-definition" to the C-only section.
4836         Fix the ordering of the warning options.
4837
4838 2003-09-15  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4839             Jeff Law  <law@redhat.com>
4840
4841         * gcse.c (remove_reachable_equiv_notes): New.
4842         replace_store_insn): Call it.  Update antic list.
4843         (store_killed_in_insn): Take REG_EQUAL notes into account.
4844         (build_store_vectors, delete_store): Add parameter to
4845         replace_store_insn call.
4846
4847 2003-09-15  Bob Wilson  <bob.wilson@acm.org>
4848
4849         * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use
4850         SYMBOL_REF_LOCAL_P.
4851
4852 2003-09-15  Kazu Hirata  <kazu@cs.umass.edu>
4853
4854         * expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
4855         (FUNCTION_ARG_PADDING): Use DEFAULT_FUNCTION_ARG_PADDING.
4856         * config/ia64/ia64.c (ia64_hpux_function_arg_padding):
4857         Likewise.
4858         * config/m68hc11/m68hc11.c (m68hc11_function_arg_padding):
4859         Likewise.
4860         * config/rs6000/rs6000.c (function_arg_padding): Likewise.
4861         * config/sparc/sparc.c (function_arg_padding): Likewise.
4862
4863 2003-09-15  Vladimir Makarov  <vmakarov@redhat.com>
4864
4865         * haifa-sched.c (schedule_block): Use ready_remove_first instead
4866         of choose_ready for non-dfa insn scheduling.
4867
4868 2003-09-15  Andreas Jaeger  <aj@suse.de>
4869             Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4870
4871         * doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
4872         * c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
4873         * c-parse.in: Warn about old-style parameter definition.
4874         * c-common.c: Define warn_old_style_defintion.
4875         * c-common.h: Declare it.
4876         * c.opt: Add Wold-style-defintion.
4877
4878 2003-09-15  Andreas Jaeger  <aj@suse.de>
4879
4880         * config/rs6000/altivec.h: Convert () prototypes to ISO C90.
4881         * config/rs6000/rs6000.c: Likewise.
4882
4883 2003-09-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4884
4885         PR optimization/10914
4886         * expr.h (get_condition, canonicalize_condition): Declaration changed.
4887         * cfgloopanal.c (simple_loop_exit_p): Add parameter to a get_condition
4888         and canonicalize_condition calls.
4889         * gcse.c (fis_get_condition, delete_null_pointer_checks_1,
4890         delete_null_pointer_checks): Ditto.
4891         * ifcvt.c (noce_get_alt_condition, noce_get_condition): Ditto.
4892         * predict.c (estimate_probability, expected_value_to_br_prob): Ditto.
4893         * loop.c (check_dbra_loop, get_condition_for_loop): Ditto.
4894         (canonicalize_condition, get_condition): Allow to return comparisons
4895         of cc mode registers.
4896         * loop-unswitch.c (may_unswitch_on_p, unswitch_single_loop): Allow
4897         cc mode registers comparison in condition.
4898
4899 2003-09-12  Mark Mitchell  <mark@codesourcery.com>
4900
4901         * coverage.c (create_coverage): Do not call pushlevel/poplevel.
4902         * langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
4903         function.
4904         * langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.
4905
4906 2003-09-14  Kazu Hirata  <kazu@cs.umass.edu>
4907
4908         * combine.c (simplify_comparison): Convert
4909         (ne (and (lshiftrt (xor X CST) Y) 1) 0) into
4910         (eq (and (lshiftrt X Y) 1) 0).
4911
4912 2003-09-14  Kazu Hirata  <kazu@cs.umass.edu>
4913
4914         * alias.c: Follow spelling conventions.
4915         * cpphash.h: Likewise.
4916         * fold-const.c: Likewise.
4917
4918 2003-09-14  Alexandre Oliva  <aoliva@redhat.com>
4919
4920         * c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
4921         * c-lex.c (cb_line_change): Skip line changing whenever
4922         c-ppoutput.c would.
4923
4924 2003-09-14  Steven Bosscher  <steven@gcc.gnu.org>
4925
4926         * ra.c: Convert to ISO C90 prototypes.
4927         * ra-build.c: Likewise.
4928         * ra-colorize.c: Likewise.
4929         * ra-debug.c: Likewise.
4930         * ra-rewrite.c: Likewise.
4931
4932 2003-09-14  Richard Sandiford  <rsandifo@redhat.com>
4933
4934         * Makefile.in (%.dvi): Remove excess $(docdir).
4935
4936 2003-09-14  Richard Sandiford  <rsandifo@redhat.com>
4937
4938         * function.c (STACK_BYTES): Move definition to head of file.
4939         (assign_parms): Don't pass current_function_pretend_args_size
4940         directly to SETUP_INCOMING_VARARGS.  For partial register arguments,
4941         round current_function_pretend_args_size up to STACK_BYTES.  Skip any
4942         excess before laying out the argument.
4943
4944 2003-09-14  Andreas Jaeger  <aj@suse.de>
4945
4946         * objc/objc-act.c: Convert to ISO C90 prototypes.
4947         * objc/objc-act.h: Likewise.
4948
4949 2003-09-14  Olaf Hering  <olh@suse.de>
4950
4951         * config/rs6000/rs6000.c: Fix typo: Remove extra ')'.
4952
4953 2003-09-13  Andrew Pinski <pinskia@physics.uc.edu>
4954
4955         PR target/12021
4956         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Remove the asserts
4957         as they already are done in config/m68k/m68k.h.
4958         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Likewise
4959
4960         * config/rs6000/rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
4961         (machopic_output_stub): Only generate pic base symbols when using pic
4962         and generate them in the form L00000000$spb.
4963
4964 2003-09-13  Richard Henderson  <rth@redhat.com>
4965
4966         * cgraphunit.c (cgraph_assemble_pending_functions): Export.
4967         (cgraph_finalize_function): Revert TREE_ASM_WRITTEN check.
4968         * cgraph.h: Update.
4969
4970 2003-09-12  Dale Johannesen  <dalej@apple.com>
4971
4972         * config/rs6000/rs6000.c: Fix typos in previous.
4973
4974 2003-09-12  Ziemowit Laski  <zlaski@apple.com>
4975
4976         * pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
4977         when allocating pp->buffer.
4978
4979 2003-09-12  Geoffrey Keating  <geoffk@apple.com>
4980
4981         * config/darwin.c (machopic_select_rtx_section): Use
4982         const_data_section for things that might require relocation.
4983
4984 2003-09-12  H.J. Lu  <hongjiu.lu@intel.com>
4985
4986         PR bootstrap/12264
4987         * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
4988
4989 2003-09-12  Bob Wilson  <bob.wilson@acm.org>
4990
4991         * config/xtensa/elf.h (ASM_SPEC): Remove no-density option.  Reformat.
4992         * config/xtensa/linux.h (ASM_SPEC): Likewise.
4993         * config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian,
4994         -mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16,
4995         -m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext,
4996         -m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div,
4997         -m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and
4998         -m[no-]hard-float-rsqrt options.  Delete corresponding MASK_* macros
4999         and redefine corresponding TARGET_* macros with constants from the
5000         xtensa-config.h header.
5001         * doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
5002         for the options listed above.
5003
5004 2003-09-12  Dale Johannesen  <dalej@apple.com>
5005
5006         * config/rs6000/rs6000-protos.h:  Use C90 prototypes.
5007         * config/rs6000/rs6000-c.c:  Ditto.
5008         * config/rs6000/rs6000.c:  Ditto.
5009         * config/rs6000/ sysv4.h:  Ditto.
5010
5011 2003-09-12  Chris Lattner <sabre@nondot.org>
5012
5013         * loop.c: Move comments describing BIV's and GIV's to top of file
5014
5015 2003-09-12  Roger Sayle  <roger@eyesopen.com>
5016
5017         PR optimization/8967
5018         * alias.c (write_dependence_p): Modify to take an additional constp
5019         argument that controls whether the UNCHANGING_RTX_P flags are used.
5020         (anti_dependence, output_dependence): Adjust write_dependence_p
5021         callers to pass this additional argument, to return the same result.
5022         (unchanging_anti_dependence): New variant of anti_dependence that
5023         ignores the UNCHANGING_RTX_P property on memory references.
5024         * rtl.h (unchaning_anti_dependence): Prototype here.
5025         * flow.c (init_propagate_block): Place fake constant mem writes on
5026         the mem_set_list so that dead writes to const variables are deleted.
5027         (insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
5028         (mark_used_regs): Likewise.
5029
5030 2003-09-12  Richard Sandiford  <rsandifo@redhat.com>
5031
5032         * config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
5033         (mcore_secondary_reload_class): Declare.
5034         (mcore_output_inline_const_forced): Remove.
5035         * config/mcore/mcore.md (movsi): Remove the code that forced
5036         non-inlineable constants into a register if the target was r15
5037         or the stack pointer.  Remove constant restrictions from the main
5038         define_insn.  Remove r <- I, r <- M and r <- N alternatives in favor
5039         of an r <- P alternative.  Remove fallback define_insn for reload.
5040         (movhi, movqi): Use gen_lowpart rather than gen_SUBREG.  Remove reload
5041         define_insn.  Use mcore_output_move in the remaining define_insn.
5042         Adjust condition and constraints in the way as for movsi.
5043         (movdi): Always split unacceptable constants into two.  Use
5044         simplify_gen_subreg instead of operand_subword{,_force}.
5045         * config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
5046         (mcore_output_move): Support HImode and QImode moves as well.
5047         (mcore_m15_operand_p): New function.
5048         (mcore_reload_class): Use it to detect cases where LRW_REGS are better.
5049         (mcore_secondary_reload_class): New function.
5050         * config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
5051         terms of mcore_secondary_reload_class.
5052
5053 2003-09-11  Mike Stump  <mrs@apple.com>
5054
5055         * c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
5056
5057 2003-09-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5058
5059         * builtins.c (fold_builtin_logarithm): if N can't be truncated to
5060         MODE exactly, then only convert logN(N) -> 1.0 if
5061         flag_unsafe_math_optimizations is set.
5062
5063         * builtins.c (builtin_dconsts_init, dconstpi, dconste,
5064         init_builtin_dconsts): Delete.
5065         * emit-rtl.c (dconstpi, dconste): Define.
5066         (init_emit_once): Initialize dconstpi & dconste.
5067         * real.h (dconstpi, dconste): Declare.
5068
5069 2003-09-11  Alexandre Oliva  <aoliva@redhat.com>
5070
5071         PR fortran/11522
5072         * dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function
5073         for ultimate origin even if block is abstract.
5074
5075 2003-09-11  Roger Sayle  <roger@eyesopen.com>
5076
5077         * combine.c (combine_simplify_rtx): Move several NOT and NEG
5078         optimizations from here...
5079         * simplify-rtx.c (simplify_unary_operation): to here.  Recursively
5080         simplify expressions using simplify_gen_*ary instead of gen_rtx_*.
5081
5082 2003-09-11  Richard Henderson  <rth@redhat.com>
5083
5084         * cgraphunit.c (cgraph_finalize_function): Add nested arg.
5085         Tweek tests for function already generated.
5086         (cgraph_expand_function): Don't double announce in !unit-at-a-time.
5087         * cgraph.h (cgraph_finalize_function): Update for extra arg.
5088         * c-decl.c (finish_function): Likewise.
5089
5090 2003-09-10  Joe Buck  <jbuck@welsh-buck.org>
5091
5092         * c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
5093
5094 2003-09-10  Jerry Quinn  <jlquinn@optonline.net>
5095
5096         * real.c: Update URL to VAX floating point docs.
5097         (decode_vax_d): Extract 8 exponent bits instead of 7.
5098
5099 2003-09-10  Ian Lance Taylor  <ian@wasabisystems.com>
5100
5101         * combine.c (force_to_mode): Set fuller_mask based only on mask,
5102         not op_mode.
5103
5104 2003-09-11  Jan Hubicka  <jh@suse.cz>
5105
5106         * c-objc-common.c (c_cannot_inline_tree_fn): Warn
5107         on why function is not inlinable; do not check
5108         the body.
5109         (inline_forbidden_p): Move to...
5110         * tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
5111         deal with alloca, longjmp.
5112         (inline_forbidden_p): New static function.
5113         (find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
5114         find_builtin_longjmp_call): Kill.
5115
5116 2003-09-10  Richard Henderson  <rth@redhat.com>
5117
5118         * cgraph.h (struct cgraph_node): Rename lowered to analyzed.
5119         * cgraphunit.c: Update to match.
5120         (record_call_1): Rearrange.  Call lang hook for language nodes.
5121         (cgraph_analyze_function): Don't call lower_function.
5122         * langhooks.h (struct lang_hooks_for_callgraph): Replace
5123         lower_function with analyze_expr.
5124         * langhooks-def.h: Update to match.
5125         * langhooks.c (lhd_callgraph_analyze_expr): New.
5126
5127 2003-09-10  Martin Husemann  <martin@duskware.de>
5128
5129         PR target/11965
5130         * config/sparc/sparc.c (sparc_v8plus_shift): Protect against
5131         constants greater than 63.
5132         * config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
5133         against constants greater than 31.
5134         (*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
5135         constants greater than 63.
5136
5137 2003-09-09  Richard Henderson  <rth@redhat.com>
5138
5139         * cgraphunit.c (cgraph_finalize_function): Remove unused argument.
5140         * cgraph.h (cgraph_finalize_function): Update.
5141         * c-decl.c (finish_function): Update.
5142
5143 2003-09-09  Devang Patel  <dpatel@apple.com>
5144
5145         * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
5146         * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
5147
5148 2003-09-09  Eric Christopher  <echristo@redhat.com>
5149
5150         * configure.in: Change usage of 'head' to 'sed 1q'.
5151         * configure: Regenerate.
5152
5153 2003-09-09  Richard Henderson  <rth@redhat.com>
5154
5155         * except.c: Include cgraph.h.
5156         (output_function_exception_table): Invoke
5157         cgraph_varpool_mark_needed_node.
5158         * Makefile.in (except.o): Update.
5159
5160 2003-09-07  Kelley Cook  <kelleycook@wideopenwest.com>
5161
5162         * Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS
5163         and use it throughout.
5164
5165 2003-09-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5166
5167         * builtins.c (real_dconstp, fold_builtin_logarithm,
5168         fold_builtin_exponent): New, split out from fold_builtin.  Also
5169         generalize to add log2, log10, exp2 and exp10/pow10 equivalents.
5170         * emit-rtl.c (dconst3, dconst10, dconstthird): New.
5171         (init_emit_once): Initialize new dconsts, use ARRAY_SIZE in lieu
5172         of hardcoded array size.
5173         * fold-const.c (fold): Add cases for exp2, exp10 and pow10.
5174         (tree_expr_nonnegative_p): Likewise.
5175         * real.h (dconst3, dconst10, dconstthird): New.
5176
5177 2003-09-09  Jan Hubicka  <jh@suse.cz>
5178
5179         * cgraphunit.c (cgraph_finalize_function): Fix handling of extern
5180         inline functions.
5181         (cgraph_finalize_compilation_unit): Fix crash when dealing with lost
5182         DECL_SAVED_TREE.
5183
5184 2003-09-09  Roger Sayle  <roger@eyesopen.com>
5185
5186         * builtins.c (fold_builtin_cabs): Protect the complex argument
5187         against multiple evaluation when optimizing cabs* into sqrt*.
5188
5189 2003-09-09  Jan Hubicka  <jh@suse.cz>
5190
5191         * varasm.c (notice_global_symbol):  Properly deal with weak symbols.
5192
5193 2003-09-08  Kelley Cook <kelleycook@wideopenwest.com>
5194
5195         * Makefile.in: Revert yesterday's change.
5196
5197 2003-09-08  Bernardo Innocenti  <bernie@develer.com>
5198             Peter Barada <peter@baradas.org>
5199
5200         * config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr'
5201         * config/m68k/hp320.h (REGISTER_NAMES): Likewise.
5202         * config/m68k/linux.h (REGISTER_NAMES): Likewise.
5203         * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
5204         * gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise.
5205         * config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype.
5206         * config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end.
5207         (m68k_compute_frame_layout): New function.
5208         (m68k_initial_elimination_offset): New function.
5209         (m68k_output_function_prologue): ColdFire-specific movem handling.
5210         (m68k_output_function_epilogue): Likewise.
5211         * config/m68k/m68k.h (FIRST_PSEOUDO_REGISTER): Make room for argptr reg.
5212         (ARG_POINTER_REGNUM): Add new definition.
5213         (INITIAL_FRAME_POINTER_OFFSET): Remove macro.
5214         (ELIMINABLE_REGS): Define new macro, like in ix86 back-end.
5215         (CAN_ELIMINATE): Likewise.
5216         (INITIAL_ELIMINATION_OFFSET): Likewise.
5217
5218 2003-09-08  Bernardo Innocenti  <bernie@develer.com>
5219
5220         * config/m68k/m68k.c (m68k_output_function_prologue): Simplify
5221         by removing redundant variable cfa_store_offset.
5222
5223 2003-09-08  Mark Mitchell  <mark@codesourcery.com>
5224
5225         * langhooks-def.h (lhd_register_builtin_type): New function.
5226         (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro.
5227         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
5228         * langhooks.h (lang_hooks_for_types): Add register_builtin_type.
5229         * langhooks.c (lhd_register_builtin_type): New function.
5230         * c-common.h (c_register_builtin_type): Declare.
5231         * c-common.c (c_register_builtin_type): New function.
5232         * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to
5233         c_register_builtin_type.
5234         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg,
5235         __float80, and __float128 macros.
5236         * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg,
5237         __float80, and __float128 types.
5238
5239 2003-09-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5240
5241         * builtin-types.def
5242         (BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE,
5243         BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE_COMPLEX_DOUBLE,
5244         BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT_COMPLEX_FLOAT): New.
5245         * builtins.def (BUILT_IN_CACOS, BUILT_IN_CACOSF, BUILT_IN_CACOSH,
5246         BUILT_IN_CACOSHF, BUILT_IN_CACOSHL, BUILT_IN_CACOSL,
5247         BUILT_IN_CARG, BUILT_IN_CARGF, BUILT_IN_CARGL, BUILT_IN_CASIN,
5248         BUILT_IN_CASINF, BUILT_IN_CASINH, BUILT_IN_CASINHF,
5249         BUILT_IN_CASINHL, BUILT_IN_CASINL, BUILT_IN_CATAN,
5250         BUILT_IN_CATANF, BUILT_IN_CATANH, BUILT_IN_CATANHF,
5251         BUILT_IN_CATANHL, BUILT_IN_CATANL, BUILT_IN_CCOS, BUILT_IN_CCOSF,
5252         BUILT_IN_CCOSH, BUILT_IN_CCOSHF, BUILT_IN_CCOSHL, BUILT_IN_CCOSL,
5253         BUILT_IN_CEXP, BUILT_IN_CEXPF, BUILT_IN_CEXPL, BUILT_IN_CPOW,
5254         BUILT_IN_CPOWF, BUILT_IN_CPOWL, BUILT_IN_CPROJ, BUILT_IN_CPROJF,
5255         BUILT_IN_CPROJL, BUILT_IN_CSIN, BUILT_IN_CSINF, BUILT_IN_CSINH,
5256         BUILT_IN_CSINHF, BUILT_IN_CSINHL, BUILT_IN_CSINL, BUILT_IN_CSQRT,
5257         BUILT_IN_CSQRTF, BUILT_IN_CSQRTL, BUILT_IN_CTAN, BUILT_IN_CTANF,
5258         BUILT_IN_CTANH, BUILT_IN_CTANHF, BUILT_IN_CTANHL, BUILT_IN_CTANL):
5259         New.
5260         * doc/extend.texi: Document new builtins.
5261
5262 2003-09-09  Jan Hubicka  <jh@suse.cz>
5263
5264         * cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated
5265         finalization.
5266         * cgraphunit.c (decide_is_fnction_needed): Avoid special case of nested
5267         functions, check for COMDAT.
5268         (cgraph_assemble_pending_functions): Break out from...
5269         (cgraph_finalize_function): ... here; allow redefinig of extern inline
5270         functions.
5271         (record_call_1): Record function references only in non-unit-at-a-time
5272         mode.
5273         (cgraph_analyze_function): Reset current_function_decl.
5274         (cgraph_finalize_compilation_unit):  Assemble pending functions.
5275
5276 2003-09-08  Mark Mitchell  <mark@codesourcery.com>
5277
5278         * mklibgcc.in (libcc.a): Depend on stmp-dirs.
5279         (libgov.a): Likewise.
5280         (libgcc_eh.a): Likewise.
5281
5282 2003-09-08  Roger Sayle  <roger@eyesopen.com>
5283
5284         * fold-const.c (operand_equal_p): Clarify documentation.
5285
5286 2003-09-08  Richard Henderson  <rth@redhat.com>
5287
5288         * c-decl.c (c_expand_body_1): Push and pop function context here.
5289         * tree-optimize.c (tree_rest_of_compilation): ... not here.  Take
5290         nested argument instead of computing nesting ourselves.
5291
5292 2003-09-08  Jakub Jelinek  <jakub@redhat.com>
5293
5294         * toplev.c (rest_of_handle_stack_regs): Call split_all_insns before
5295         regstack if optimizing but not scheduling after reload.
5296
5297 2003-09-08  Jakub Jelinek  <jakub@redhat.com>
5298
5299         * config/sparc/sparc.c (struct machine_function): New type.
5300         (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
5301         (sparc_override_options): Initialize init_machine_status.
5302         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand,
5303         tie_symbolic_operand, tle_symbolic_operand): New functions.
5304         (symbolic_operand): Disallow tls_symbolic_operand.
5305         (symbolic_memory_operand): Likewise.
5306         (tls_call_delay, sparc_cannot_force_const_mem, legitimate_constant_p,
5307         constant_address_p, legitimate_pic_operand_p, legitimate_address_p):
5308         New functions.
5309         (sparc_tls_symbol): New variable.
5310         (sparc_tls_get_addr, sparc_tls_got, legitimize_tls_address,
5311         legitimize_address): New functions.
5312         (print_operand): Handle %&.
5313         (sparc_init_machine_status, get_some_local_dynamic_name,
5314         get_some_local_dynamic_name_1): New functions.
5315         (sparc_output_dwarf_dtprel): New function.
5316         * config/sparc/sparc.h (CONSTANT_ADDRESS_P): Moved into
5317         constant_address_p.
5318         (LEGITIMATE_PIC_OPERAND_P): Moved into legitimate_pic_operand_p.
5319         (LEGITIMATE_CONSTANT_P): Moved into legitimate_constant_p.
5320         (GO_IF_LEGITIMATE_ADDRESS): Moved into legitimate_address_p.
5321         (LEGITIMIZE_ADDRESS): Moved into legitimize_address.
5322         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
5323         (TARGET_TLS, TARGET_SUN_TLS, TARGET_GNU_TLS): Define.
5324         (ASM_OUTPUT_DWARF_DTPREL): Define.
5325         (PREDICATE_CODES): Add tgd_symbolic_operand, tld_symbolic_operand,
5326         tie_symbolic_operand, tle_symbolic_operand.
5327         * config/sparc/sparc.md (UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_TLSLDO,
5328         UNSPEC_TLSIE, UNSPEC_TLSLE, UNSPEC_TLSLD_BASE): New constants.
5329         (tls_call_delay): New attribute.
5330         (in_call_delay): Use it.
5331         (movqi, movhi, movsi, movdi): Call legitimize_tls_address if needed.
5332         (tgd_hi22, tgd_lo10, tgd_add32, tgd_add64, tgd_call32, tgd_call64,
5333         tldm_hi22, tldm_lo10, tldm_add32, tldm_add64, tldm_call32, tldm_call64,
5334         tldo_hix22, tldo_lox10, tldo_add32, tldo_add64, tie_hi22, tie_lo10,
5335         tie_ld32, tie_ld64, tie_add32, tie_add64, tle_hix22_sp32,
5336         tle_lox10_sp32, tle_hix22_sp64, tle_lox10_sp64): New insns.
5337         (tldo_ldub_sp32, tldo_ldub1_sp32, tldo_ldub2_sp32, tldo_ldsb1_sp32,
5338         tldo_ldsb2_sp32, tldo_ldub_sp64, tldo_ldub1_sp64, tldo_ldub2_sp64,
5339         tldo_ldub3_sp64, tldo_ldsb1_sp64, tldo_ldsb2_sp64, tldo_ldsb3_sp64,
5340         tldo_lduh_sp32, tldo_lduh1_sp32, tldo_ldsh1_sp32, tldo_lduh_sp64,
5341         tldo_lduh1_sp64, tldo_lduh2_sp64, tldo_ldsh1_sp64, tldo_ldsh2_sp64,
5342         tldo_lduw_sp32, tldo_lduw_sp64, tldo_lduw1_sp64, tldo_ldsw1_sp64,
5343         tldo_ldx_sp64, tldo_stb_sp32, tldo_stb_sp64, tldo_sth_sp32,
5344         tldo_sth_sp64, tldo_stw_sp32, tldo_stw_sp64, tldo_stx_sp64): New
5345         insns.
5346         * config/sparc/sparc-protos.h (legitimate_constant_p,
5347         constant_address_p, legitimate_pic_operand_p, legitimate_address_p,
5348         legitimize_tls_address, legitimize_address, tls_symbolic_operand,
5349         tls_call_delay, sparc_output_dwarf_dtprel): New prototypes.
5350         * config/sparc/linux.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
5351         * config/sparc/linux64.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Likewise.
5352         * configure.in (sparc*-*-*): Add TLS check.
5353         * configure: Rebuilt.
5354
5355 2003-09-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
5356
5357         PR target/11689
5358         * config/i386/i386.c (memory_address_length): Fix computation when
5359         the base is esp or ebp.
5360
5361 2003-09-07  Mark Mitchell  <mark@codesourcery.com>
5362
5363         PR c++/11852
5364         * varasm.c (initializer_constant_valid_p): Correct logic for
5365         CONSTRUCTORs.
5366
5367 2003-09-07  Roger Sayle  <roger@eyesopen.com>
5368
5369         * expr.c (expand_operands): New function to expand an operand pair.
5370         (expand_expr): Call expand_operands whenever we need to expand both
5371         operands of a binary operator.
5372         (do_store_flag): Likewise for operands of comparison operations.
5373
5374 2003-09-07  Roger Sayle  <roger@eyesopen.com>
5375
5376         * combine.c (combine_simplify_rtx): Don't convert -(A*B) into
5377         (-A)*B if we care about sign-dependent rounding.
5378
5379 2003-09-07  Gabriel Dos Reis  <gcc@integrable-solutions.net>
5380
5381         * c-pretty-print.h (pp_c_left_brace): Declare.
5382         (pp_c_right_brace): Likewise.
5383         * c-pretty-print.c (pp_c_left_brace): Now a function
5384         (pp_c_right_brace): Likewise.
5385
5386 2003-09-07  Jan Hubicka  <jh@suse.cz>
5387
5388         * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
5389
5390 2003-09-07  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5391
5392         * diagnostic.c (warn_deprecated_use): Move to toplev.c
5393
5394 2003-09-07  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5395
5396         * langhooks.c (lhd_print_error_function): Move from diagnostic.c.
5397         * Makefile.in (langhooks.o): Depend on diagnostic.h
5398
5399 2003-09-06  James E Wilson  <wilson@tuliptree.org>
5400
5401         * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
5402         simplify.
5403
5404 2003-09-07  Kelley Cook  <kelleycook@wideopenwest.com>
5405
5406         * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
5407         and use it throughout.
5408
5409 2003-09-07  Jan Hubicka  <jh@suse.cz>
5410
5411         * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
5412
5413         * toplev.c  (rest_of_decl_compilation):  Do not finalize external
5414         virables.
5415
5416         * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
5417         functions.
5418         (cgraph_varpool_finalize_decl): Notice global symbol when needed.
5419
5420 2003-09-06  Jan Hubicka  <jh@suse.cz>
5421
5422         PR target/12070
5423         * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
5424
5425         PR opt/12082
5426         * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
5427
5428 2003-09-06  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5429
5430         * diagnostic.c (announce_function): Move to toplev.c.
5431
5432 2003-09-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5433
5434         * gcse.c (expr_equiv_p): Don't consider anything to be equal to
5435         volatile mem.
5436
5437 2003-09-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5438
5439         * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
5440         when gc checking is enabled.
5441
5442 2003-09-06  Steven Bosscher  <steven@gcc.gnu.org>
5443
5444         PR c/9862
5445         * c-decl.c (c_expand_body_1): Move return warning from here...
5446         (finish_function): ...to here.
5447
5448 2003-09-05  Geoffrey Keating  <geoffk@apple.com>
5449
5450         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
5451         a subset of the input class.
5452
5453 2003-09-05  Kazu Hirata  <kazu@cs.umass.edu>
5454
5455         * config/i860/i860.c: Follow spelling conventions.
5456         * config/i860/i860.h: Likewise.
5457         * config/sh/sh.h: Likewise.
5458
5459 2003-09-05  Nitin Yewale  <NitinY@KPITCummins.com>
5460
5461         * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
5462         * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
5463         * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
5464
5465 2003-09-05  Roger Sayle  <roger@eyesopen.com>
5466             Richard Henderson  <rth@redhat.com>
5467
5468         PR optimization/1823
5469         * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
5470         multiplication to implement division by constant integer.
5471
5472 2003-09-05  Jan Hubicka  <jh@suse.cz>
5473
5474         * opts.c (decode_options): Enable unit-at-a-time at -O2.
5475         * params.def (max-inline-insns-single): Set to 500
5476         (max-inline-insns-auto): Set to 150
5477         * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
5478
5479 2003-09-04  Richard Henderson  <rth@redhat.com>
5480
5481         * cgraph.c (cgraph_mark_reachable_node): Split out from ...
5482         (cgraph_mark_needed_node): Remove needed argument.
5483         * cgraph.h: Update to match.
5484         * cgraphunit.c (decide_is_function_needed): Split out from ...
5485         (cgraph_finalize_function): Reorg.  Avoid deferred_inline_function
5486         if we generated the function.
5487         (record_call_1): Update for cgraph_mark_reachable_node.
5488         * varasm.c (mark_referenced): Likewise.
5489         * objc/objc-act.c (mark_referenced_methods): Likewise.
5490
5491 2003-09-04  DJ Delorie  <dj@redhat.com>
5492
5493         * targhooks.c: Add comment explaining the migration process.
5494
5495 2003-09-04  Eric Christopher  <echristo@redhat.com>
5496
5497         * config/frv/t-frv: Fix path for frv-abi.h.
5498         * config/frv/frv-asm.h: Fix string concatenation.
5499
5500 2003-09-04  DJ Delorie  <dj@redhat.com>
5501
5502         * builtins.c (apply_args_size): Guard against a NULL cfun.
5503         (expand_builtin_apply_args_1): Likewise.
5504         (expand_builtin_apply): Likewise.
5505         Fixes PR bootstrap/12172.
5506
5507 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5508
5509         * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
5510         assembler supports Sun syntax for cmov.
5511         * configure: Regenerate.
5512         * config.in: Likewise.
5513         * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
5514         HAVE_AS_IX86_CMOV_SUN_SYNTAX.
5515         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
5516         Fixes PR target/12101.
5517
5518 2003-09-04  Matt Austern  <austern@apple.com>
5519
5520         * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
5521         with verbosity 0, instead of DECL_NAME, for human-readable string.
5522
5523 2003-09-04  Eric Christopher  <echristo@redhat.com>
5524
5525         * targhooks.c (default_return_in_memory): Allow
5526         unconverted ports.
5527
5528 2003-09-04  Eric Christopher  <echristo@redhat.com>
5529
5530         * targhooks.c (default_return_in_memory): Fix typo
5531         in last checkin.
5532
5533 2003-09-04  Eric Christopher  <echristo@redhat.com>
5534
5535         * targhooks.c (default_return_in_memory): Fix default
5536         definition.
5537
5538 2003-09-04  Bernardo Innocenti  <bernie@develer.com>
5539
5540         * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
5541         deleted function.
5542         * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
5543         enable coff-only code in m68k.c.
5544
5545 2003-09-04  Nick Clifton  <nickc@redhat.com>
5546
5547         * config.gcc: Add v850e1 target.  Allow --with-cpu to accept
5548         v850e1.
5549         * config/v850/v850.h: Accept v850e1 as a default CPU.
5550         Accept -mv850e1 as a command line option.
5551         * doc/invoke.texi: Document new -mv850e1 command line switch.
5552         * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
5553         -mv850e.
5554
5555 2003-09-04  Nick Clifton  <nickc@redhat.com>
5556
5557         * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
5558         * config/v850/t-v850: Only produce one extra multilib - for
5559         the v850e.
5560         * config/v850/t-v850e: New file: Only produce one extra
5561         multilib - for the v850.
5562
5563 2003-09-04  Jakub Jelinek  <jakub@redhat.com>
5564
5565         * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
5566         * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
5567         * unwind.h (_Unwind_GetBSP): New prototype.
5568         * libgcc-std.ver: Add empty GCC_3.3.2 version.
5569         * mkmap-symver.awk: For symbol versions with no exported symbols,
5570         don't put anything into version script, just change all symbol
5571         versions which inherit from it to inherit from its ancestor.
5572
5573 2003-09-04  Eric Christopher  <echristo@redhat.com>
5574
5575         * config/mips/mips.c (mips_expand_prologue): Convert to
5576         calls.struct_value_rtx hook.
5577         (reg_or_const_float_1_operand): New.
5578         * config/mips/mips.h: Update Comments.
5579         (mips_arg): Add reg_or_const_float_1_operand.
5580         * config/mips/mips.md (divdf3); Convert to expander.
5581         (divsf3): Ditto.
5582         (*divdf3): New pattern.
5583         (*divsf3): Ditto.
5584
5585 2003-09-04  Jan Hubicka  <jh@suse.cz>
5586
5587         * toplev.c (wrapup_global_declarations): Fix final pass in
5588         unit-at-atime mode.
5589
5590 2003-09-04  Mark Mitchell  <mark@codesourcery.com>
5591
5592         * doc/extend.texi: Document removal of cast-as-lvalue extension in
5593         C++.
5594
5595 2003-09-04  Nicolas Roche  <roche@act-europe.fr>
5596
5597         * gcc.c (process_command): Fix typo.
5598
5599 2003-09-03  David O'Brien  <obrien@FreeBSD.org>
5600
5601         optimization/11980
5602         * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
5603         (PTRDIFF_TYPE): Likewise.
5604         (WCHAR_TYPE_SIZE): Likewise.
5605
5606 2003-09-03  DJ Delorie  <dj@redhat.com>
5607
5608         * targhooks.c: New file.
5609         * targhooks.h: New file.
5610         * Makefile.in: Add targhooks.o support.
5611         (function.o): Depend on$(TARGET_H).
5612         (stmt.o): Likewise.
5613         (combine.o): Depend on $(TREE_H) and $(TARGET_H).
5614         * builtins.c (apply_args_size, expand_builtin_apply_args_1,
5615         expand_builtin_apply): Convert to calls.struct_value_rtx hook.
5616         (expand_builtin_saveregs): Convert to
5617         calls.expand_builtin_saveregs hook.
5618         * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
5619         here, instead of ...
5620         (get_parm_info) ... here.
5621         (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
5622         hook.
5623         (finish_function): Handle calls.promote_prototypes hook here too.
5624         * c-typeck.c (convert_arguments): Convert to
5625         calls.promote_prototypes hook.
5626         (c_convert_parm_for_inlining): Likewise.
5627         * calls.c (initialize_argument_information): Convert to
5628         calls.promote_function_args hook.
5629         (expand_call): Convert to calls.struct_value_rtx,
5630         calls.strict_argument_naming,
5631         calls.pretend_outgoing_varargs_named, and
5632         calls.promote_function_return hooks.  Pass fndecl to
5633         aggregate_value_p.  Initialize CUMULATIVE_ARGS before calling
5634         hooks, so they can use that.
5635         (emit_library_call_value_1): Likewise.
5636         * combine.c (setup_incoming_promotions): Convert to
5637         calls.promote_function_args hook.
5638         * emit-rtl.c: Convert to calls.struct_value_rtx hook.
5639         * expr.c (expand_assignment): Pass call to aggregate_value_p.
5640         (expand_expr): Likewise.
5641         * expr.h: Remove support for SETUP_INCOMING_VARARGS,
5642         STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
5643         RETURN_IN_MEMORY macro defaults.
5644         * final.c (profile_function): Convert to calls.struct_value_rtx
5645         hook.
5646         * function.c (aggregate_value_p): Accept function type tree as
5647         second parameter; try to deduce fntype from it.  Convert to
5648         calls.return_in_memory hook.
5649         (assign_parms): Convert to calls.setup_incoming_varargs,
5650         calls.strict_argument_naming, calls.promote_function_args,
5651         calls.pretend_outgoing_varargs_named hooks.  Pass fndecl to
5652         aggregate_value_p.
5653         (expand_function_start): Likewise.  Convert to
5654         calls.struct_value_rtx hook.
5655         (expand_function_end): Convert to calls.promote_function_return hook.
5656         (allocate_struct_function): Pass fndecl to aggregate_value_p.
5657         * hard-reg-set.h: Update comments to new hook names.
5658         * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
5659         * reg-stack.c (stack_result): Likewise.
5660         * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
5661         * stmt.c (expand_value_return): Convert to
5662         calls.promote_function_return hook.
5663         * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
5664         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
5665         TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
5666         TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
5667         TARGET_STRICT_ARGUMENT_NAMING,
5668         TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
5669         * target.h: Likewise.
5670         * tree.h (aggregate_value_p): Also takes a tree to deduce function
5671         attributes from (for target hooks).
5672         * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
5673         PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
5674         STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
5675         EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
5676         STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
5677         to hooks.
5678
5679         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
5680         to aggregate_value_p.
5681         * config/arm/arm.c (arm_init_cumulative_args,
5682         arm_output_mi_thunk): Likewise.
5683         * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
5684         Likewise.
5685         * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
5686         mips_can_use_return_insn): Likewise.
5687         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
5688         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
5689         * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
5690         aggregate_value_p.
5691         * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
5692         function to aggregate_value_p.
5693         * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
5694         aggregate_value_p.
5695
5696         * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
5697         (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
5698         sh_function_arg_advance, sh_pass_in_reg_p): New.  * config/sh/sh.c
5699         (sh_handle_renesas_attribute, sh_promote_prototypes,
5700         sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
5701         sh_setup_incoming_varargs, sh_strict_argument_naming,
5702         sh_pretend_outgoing_varargs_named): New decls.
5703         (targetm): Add new hooks.
5704         (calc_live_regs): Save MACL and MACH if the function has the
5705         renesas attribute.
5706         (sh_expand_prologue): Support renesas attribute.
5707         (sh_builtin_saveregs): Make static.
5708         (sh_build_va_list): Support renesas attribute.
5709         (sh_va_start): Likewise.
5710         (sh_va_arg): Likewise.
5711         (sh_promote_prototypes): New.
5712         (sh_function_arg): New, moved from sh.h.  Support renesas
5713         attribute.
5714         (sh_function_arg_advance): Likewise.
5715         (sh_return_in_memory): Likewise.
5716         (sh_strict_argument_naming): Likewise.
5717         (sh_pretend_outgoing_varargs_named): Likewise.
5718         (sh_struct_value_rtx): New.
5719         (sh_attribute): Add renesas attribute.
5720         (sh_handle_renesas_attribute): New.
5721         (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
5722         (sh_ms_bitfield_layout_p): Support renesas attribute also.
5723         (sh_output_mi_thunk): Pass function to aggregate_value_p.  *
5724         config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
5725         -mhitachi.
5726         (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
5727         target hooks.
5728         (sh_args): Add renesas_abi flag.
5729         (INIT_CUMULATIVE_ARGS): Set it.  Pass fndecl to aggregate_value_p.
5730         (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
5731         (PASS_IN_REG_P): Support renesas attribute.  Pass DF and TF on the
5732         stack for the renesas abi.
5733         (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
5734         SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
5735         PROMOTE_PROTOTYPES): Moved to sh.c.  * config/sh/sh.md (call): Set
5736         call cookie to indicate renesas calls.
5737
5738 2003-09-03  Mostafa Hagog  <mustafa@il.ibm.com>
5739
5740         * gcse.c (replace_one_set): New function.
5741         (pre_insert_copy_insn): Change the order of copying
5742         to make copy propagation discover additional PRE opportunities.
5743
5744 2003-09-03  Roger Sayle  <roger@eyesopen.com>
5745
5746         PR optimization/11700.
5747         * simplify-rtx.c (simplify_subreg): Check that the subreg offset
5748         of a hard register is representable before trying to simplify it
5749         using subreg_hard_regno.
5750
5751 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5752
5753         * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
5754         * configure: Regenerate.
5755
5756 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5757
5758         * intl.h (N_): Remove parentheses.
5759
5760 2003-09-03  Bernardo Innocenti  <bernie@develer.com>
5761
5762         * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
5763         * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
5764         definition and code blocks compiled when not defined.
5765         * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
5766         * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
5767         * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
5768         * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
5769
5770 2003-09-03  Jeff Sturm  <jsturm@one-point.com>
5771
5772         * cgraphunit.c (visited_nodes): New static variable.
5773         (record_call_1): Use walk_tree with visited_nodes.
5774         (cgraph_create_edges): Use walk_tree with visited_nodes.
5775         Setup/teardown visited_nodes hashtable.
5776
5777 2003-09-03  Roger Sayle  <roger@eyesopen.com>
5778
5779         * toplev.c (flag_rounding_math): New global variable.
5780         (f_options): Add to the list of language independent options.
5781         * flags.h (flag_rounding_math): Prototype here.
5782         (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
5783         * common.opt (frounding-math): New common command line option.
5784         * opts.c (common_handle_option): Handle OPT_frounding_math.
5785         (set_fast_math_flags): -ffast-math clears flag_rounding_math.
5786
5787         * doc/invoke.texi: Document this new command line option.
5788
5789 2003-09-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5790
5791         * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
5792
5793 2003-09-03  Jan Hubicka  <jh@suse.cz>
5794
5795         * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
5796         * c-decl.c (finish_function):  Kill arguments, always use cgraph path.
5797         * c-objc-common.c: Kill include of gt-c-objc-common.h
5798         (expand_deferred_fns, deffer_fn): Kill function.
5799         (deferred_fns): Kill variable.
5800         (finish_cdtor): Update finish_function call.
5801         (c_objc_common_finish_file): Always call cgraph code.
5802         * c-parse.c: Regenerate.
5803         * c-parse.y: Regenerate.
5804         * c-tree.h (finish_function): Update prototype.
5805         * objc-acct.c (build_module_descriptor, finish_method_def):
5806         Update call of finish_function.
5807         * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
5808         forward prototype.
5809         (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
5810         function and assemble it if needed.
5811         (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
5812         mode.
5813         (cgraph_optimize): Likewise.
5814         (cgraph_expand_function): In non-unit-at-a-time mode keep function body
5815         even when it has no inline callees.
5816         * c-parse.in: Update calls to finish_function.
5817
5818 2003-09-03  Nick Clifton  <nickc@redhat.com>
5819
5820         * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
5821         Use #error to generate the message if TARGET_DEFAULT is not
5822         recognised.
5823
5824 2003-09-03  Richard Sandiford  <rsandifo@redhat.com>
5825
5826         * config/mips/mips.h (MASK_UNUSED1): Remove.
5827         (MASK_XGOT, TARGET_XGOT): Define.
5828         (TARGET_SWITCHES): Add an entry for -mxgot.
5829         (ASM_SPEC): Map -mxgot to -xgot.
5830         * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
5831         whether we're using a big-GOT sequences.
5832         (mips_legitimize_const_move, mips_expand_call): Likewise.
5833         (override_options): Revert 2003-01-09 change.
5834         * doc/invoke.texi: Document -mxgot.
5835
5836 2003-09-02  Jason Merrill  <jason@redhat.com>
5837
5838         * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
5839         * config/sparc/sol2.h: Not here.
5840
5841 2003-09-02  Roger Sayle  <roger@eyesopen.com>
5842
5843         * expr.c (expand_expr): The code following both_summands performs
5844         the same task as simplify_gen_binary.  Replace all gotos to
5845         both_summands with a call to simplify_gen_binary and delete the
5846         now unused label.
5847
5848 2003-09-02  Jason Merrill  <jason@redhat.com>
5849
5850         PR c++/7327
5851         * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
5852
5853 2003-09-02  Jeff Sturm  <jsturm@one-point.com>
5854
5855         * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
5856         (cgraph_optimize_function): Set current_function_decl to the
5857         fndecl we're integrating from.
5858
5859 2003-09-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5860
5861         * builtins.def: Break out _Complex math functions into their
5862         own category.
5863
5864 2003-09-02  Andreas Jaeger  <aj@suse.de>
5865
5866         * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
5867
5868 2003-09-02  Josef Zlomek  <zlomekj@suse.cz>
5869
5870         * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
5871         finding the note again.
5872
5873 2003-09-02  Nathanael Nerode  <neroden@gcc.gnu.org>
5874
5875         * config.gcc: Remove host-specific rewrites of target_alias.
5876
5877 2003-09-01  Mark Mitchell  <mark@codesourcery.com>
5878
5879         * Makefile.in (genprogs): Fix typo.
5880
5881         * Makefile.in (gencheck.o): Remove build commands.
5882         (dummy-conditions.o): Likewise.
5883         (read-rtl.o): Likewise.
5884         (gensupport.o): Likewise.
5885         (genconfig$(build_exeext)): Remove rule.
5886         (genconfig.o): Remove build commands.
5887         (genflags$(build_exeext)): Remove rule.
5888         (genflags.o): Remove build commands.
5889         (gencodes$(build_exeext)): Remove rule.
5890         (gencodes.o): Remove build commands.
5891         (genconstants.o): Remove build commands.
5892         (genemit$(build_exeext)): Remove rule.
5893         (genemit.o): Remove build commands.
5894         (genrecog$(build_exeext)): Remove rule.
5895         (genrecog.o): Remove build commands.
5896         (genextract$(build_exeext)): Remove rule.
5897         (genextract.o): Remove build commands.
5898         (genpeep$(build_exeext)): Remove rule.
5899         (genpeep.o): Remove build commands.
5900         (genattr$(build_exeext)): Remove rule.
5901         (genattr.o): Remove build commands.
5902         (genprognames): New variable.
5903         (genprogs): Likewise.
5904         (genobjs): Likewise.
5905         (genprogs): New rule.
5906         (genobjs): Likewise.
5907         (genattrtab.o): Remove build commands.
5908         (genautomata.o): Likewise.
5909         (genoutput$(build_exeext)): Remove rule.
5910         (genoutput.o): Remove build commands.
5911         (gengenrtl.o): Likewise.
5912         (genpreds.o): Likewise.
5913         (gengtype.o): Likewise.
5914         (genconditions.o): Likewise.
5915         (gen-protos.o): Likewise.
5916         (scan.o): Likewise.
5917         (fix-header.o): Likewise.
5918         (scan-decls.o): Likewise.
5919         (check-g++): Combine with other check targets.
5920         (check-gcc): Likewise.
5921         (check-g77): Likewise.
5922         (check-objc): Likewise.
5923
5924 2003-09-01  Nathanael Nerode  <neroden@gcc.gnu.org>
5925
5926         * config.gcc: Remove host-specific stuff which is unused here
5927         since the introduction of config.host.
5928
5929         * doc/fragments.texi: Mention config.host.
5930         * doc/sourcebuild.texi: Mention config.host.  Give brief descriptions
5931         of config.build, config.host, and config.gcc.
5932
5933 2003-09-01  Zack Weinberg  <zack@codesourcery.com>
5934
5935         * c-decl.c (pushdecl): Don't put variables on
5936         C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
5937         incomplete.
5938
5939 2003-09-01  Nathanael Nerode  <neroden@gcc.gnu.org>
5940
5941         * config.host: New file.
5942         * config.gcc: Remove some host-specific stuff and some
5943         logic needed only for repeated invocation.
5944         * configure.in: Use config.host.
5945         * configure: Regenerate.
5946
5947 2003-09-01  Josef Zlomek  <zlomekj@suse.cz>
5948
5949         * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
5950         * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
5951         * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
5952         (fold): Kill BIT_ANDTC_EXPR and label bit_and.
5953         * tree.def (BIT_ANDTC_EXPR): Kill.
5954
5955 2003-08-31  Nathanael Nerode  <neroden@gcc.gnu.org>
5956
5957         * configure.in: Remove uses of "for x in .. ${foo}" idiom.
5958         * configure: Regenerate.
5959
5960         * config.gcc:  Remove references to install_headers_dir, now unused
5961         since introduction of config.build.
5962         * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
5963
5964         * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
5965         config.build.
5966
5967         * config.build: New file.
5968         * config.gcc: Remove some build-specific stuff.
5969         * configure.in: Use config.build.
5970         * configure: Regnerate.
5971
5972 2003-08-31  Steven Bosscher  <steven@gcc.gnu.org>
5973             Roger Sayle  <roger@eyesopen.com>
5974
5975         PR middle-end/11823
5976         * stmt.c (expand_end_case_type): Only use jump tables for dense
5977         switch statements when optimizing for size.
5978
5979 2003-08-31  Olivier Hainque  <hainque@act-europe.fr>
5980
5981         * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
5982         the != 0 case, which ensures pending stack adjustments are flushed.
5983
5984 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
5985
5986         * configure.frag: Delete file.
5987         * configure.in: Rename the substitution variables
5988         dep_host_xmake_file and dep_tmake_file to xmake_file and
5989         tmake_file respectively.  Do not expand $srcdir in the
5990         value of these; leave that for Make.  Introduce a new
5991         substitution varaible, all_lang_makefrags, which lists
5992         subdirectory Make-lang.in files; exclude these from
5993         all_lang_makefiles, which is now only for subdirectory
5994         outputs.  Do not invoke configure.frag.  Do not set nor
5995         AC_SUBST_FILE target_overrides, host_overrides, or
5996         language_fragments. Create build subdirectories in
5997         config.status extra commands.
5998         * configure: Regenerate.
5999         * Makefile.in: Update substitutions to match changes to
6000         configure.  Use include directives instead of @-insertions
6001         to read in host, target, and language fragments.
6002         (Makefile rule): Do not invoke configure.frag.  Do not copy
6003         config.status to config.run before executing it.  Set
6004         CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
6005         regenerated.
6006         (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
6007
6008 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
6009
6010         * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
6011         * c-typeck.c (same_translation_unit_p): New function.
6012         (comptypes): Use it instead of flags parameter to identify
6013         structure types from different translation units.
6014         * c-decl.c (duplicate_decls): Always call comptypes with
6015         COMPTYPE_STRICT flags argument.
6016         (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
6017         to file_scope_decl.
6018
6019 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
6020
6021         * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
6022         * c-decl.c (struct c_scope): Remove "incomplete" field.
6023         (pushdecl): Attach variables with incomplete types to
6024         the TYPE_MAIN_VARIANT of the incomplete type in question.
6025         (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
6026         to complete, not at current_scope->incomplete.  All such
6027         variables do need completion.
6028
6029 2003-08-30  Richard Earnshaw  <rearnsha@arm.com>
6030         Nicolas Pitre <nico@cam.org>
6031
6032         * arm/lib1funcs.asm (RETCOND): Delete.
6033         (RETLDM): New assembler macro.  Use it for returning with ldm/ldr.
6034         (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
6035         (__ARM_ARCH__): Move here from ieee754-?f.S.
6036         (RET, RETc): Clean up definitions.
6037         (DIV_FUNC_END): Renamed from FUNC_END.  All uses changed.
6038         (FUNC_END): New macro that marks the end of any function.
6039         (ARM_FUNC_START): New macro that allows an assembler routine to be
6040         implemented in ARM code even if a Thumb-only build.
6041         Unconditionally include ieee754-?f.S.
6042         * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
6043         Mark ends of functions.
6044         Split into separate conditionally-compiled units.
6045         Use RETLDM to return from routines.
6046         * arm/ieee754-sf.S: Similarly.
6047         * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
6048         Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
6049         _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
6050         _fixsfsi and _fixunssfsi.
6051
6052         * arm/ieee754-df.S (__muldf3): Fix bug when result of a
6053         multiplication underflows to zero.
6054         (__adddf3): Fix bug when using VFP ordering on little-endian
6055         processors.
6056         (__fixdfsi): Use rrx to extract the carry into a register instead of
6057         MRS instruction.  Optimize later use of result.
6058         * arm/ieee754-sf.S (__fixsfsi): Likewise.
6059         (__fixunssfsi): Use a better sequence for handling negative-or-zero.
6060
6061 2003-08-29  Richard Henderson  <rth@redhat.com>
6062
6063         * tree-optimize.c: New file.
6064         * Makefile.in (OBJS-archive): Add tree-optimize.o.
6065         (tree-optimize.o): New.
6066         * c-decl.c (store_parm_decls): Use allocate_struct_function.
6067         (finish_function): Don't free_after_parsing or free_after_compilation.
6068         (set_save_expr_context): Move to tree-optimize.c.
6069         (c_expand_body_1): Use tree_rest_of_compilation.
6070         * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
6071         * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
6072         * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
6073         iterate until closure.
6074         * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
6075         LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
6076         (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
6077         * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
6078         * toplev.h (tree_rest_of_compilation): Declare it.
6079
6080 2003-08-29  Richard Henderson  <rth@redhat.com>
6081
6082         * function.h (struct function): Add rtl_inline_init, saved_for_inline.
6083         * integrate.c (save_for_inline): Set saved_for_inline.
6084         * c-semantics.c (genrtl_scope_stmt): Check it.
6085         * toplev.c (wrapup_global_declarations): Check it.
6086         (rest_of_handle_inlining): Set and check rtl_inline_init.
6087         (rest_of_compilation): Remove out of date comment.
6088
6089 2003-08-29  Richard Henderson  <rth@redhat.com>
6090
6091         * function.c (allocate_struct_function): New, split out of ...
6092         (prepare_function_start, init_function_start): ... here.
6093         * expr.c (init_expr): Use ggc_alloc_cleared.
6094         * stmt.c (init_stmt_for_function): Likewise.
6095         * tree.h (allocate_struct_function): Declare.
6096
6097 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
6098
6099         * config.gcc: Don't use negated character class in shell case
6100         clause.
6101
6102 2003-08-29  Richard Henderson  <rth@redhat.com>
6103
6104         * function.h (struct function): Move function_frequency and
6105         max_jumptable_ents before start of bit field members.
6106
6107 2003-08-29  Richard Henderson  <rth@redhat.com>
6108
6109         * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
6110         (fold_builtin_constant_p) ... not here.
6111
6112 2003-08-29  Richard Henderson  <rth@redhat.com>
6113
6114         * c-tree.h (C_DECL_FILE_SCOPE): Move ...
6115         * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
6116         * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
6117
6118 2003-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6119
6120         * builtins.def: Fix typos.
6121         (ATTR_MATHFN_FPROUNDING_STORE): New macro.
6122         (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
6123         BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
6124         BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
6125         BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
6126
6127         * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
6128         Use ATTR_MATHFN_FPROUNDING_ERRNO.
6129
6130 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
6131
6132         * config.gcc (i386-*-vsta): Fix obvious bogosity.
6133
6134         * fixinc/inclhack.def:  Remove special cases for unsupported
6135         PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
6136         * fixinc/fixincl.x: Regenerate.
6137
6138 2003-08-29  Mark Mitchell  <mark@codesourcery.com>
6139
6140         * Makefile.in (cpp.info): Just state dependencies.
6141         (gcc.info): Likewise.
6142         (gccint.info): Likewise.
6143         (gccinstall.info): Likewise.
6144         (cppinternals.info): Likewise.
6145         (cpp.dvi): Likewise.
6146         (gcc.dvi): Likewise.
6147         (gccint.dvi): Likewise.
6148         (gccinstall.dvi): Likewise.
6149         (cppinternals.dvi): Likewise.
6150         (gcov.1): Likewise.
6151         (cpp.1): Likewise.
6152         (gcc.1): Likewise.
6153         (gfdl.7): Likewise.
6154         (gpl.7): Likewise.
6155         (fsf-funding.7): Likewise.
6156         ($(objdir)/%.info): New pattern rule.
6157         (%.dvi): Likewise.
6158
6159 2003-08-29  Kelley Cook  <kelleycook@wideopenwest.com>
6160
6161         * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
6162         (restage2): Likewise.
6163         (restage3): Likewise.
6164         (restage4): Likewise.
6165         (restageprofile): Likewise.
6166         (restagefeedback): Likewise.
6167         (bubblestrap): Likewise.
6168
6169 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
6170
6171         * config.gcc: Narrow unsupported target match to avoid clobbering
6172         i?86-sequent-sysv4*.
6173
6174 2003-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6175
6176         * builtins.c (mathfn_built_in): Handle new math builtins.
6177
6178 2003-08-28  Per Bothner  <per@bothner.com>
6179
6180         Fix (hopefully temporary) for breakage caused by my 08-21 patch.
6181         * cpplex.c (_cpp_get_fresh_line):  Check for null buffer.
6182         (_cpp_lex_buffer):  Likewise.
6183         * cpptrad.c (_cpp_read_logical_line_trad):  Likewise.
6184
6185 2003-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
6186
6187         * config/s390/s390.md ("*mulsi3_sign"): New insn.
6188         ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
6189         ("mulsidi3"): ... this new insn.
6190         ("umulsidi3"): New insn.
6191         ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
6192         mixed-mode matching constraints.
6193         ("udivmodsi4", "udivmoddisi3"): New insns.
6194         ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
6195
6196 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6197
6198         * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
6199         BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
6200         BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
6201         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
6202         BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
6203         BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
6204         BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
6205         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
6206         BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
6207         BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
6208         BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
6209         * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
6210         BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
6211         BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
6212         BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
6213         * tree.c: Assign new type_nodes.
6214         * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
6215         TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
6216         (float_ptr_type_node, double_ptr_type_node,
6217         long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
6218
6219         * doc/extend.texi: Document new builtins.
6220
6221 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6222
6223         * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
6224         BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
6225
6226         * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
6227         BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
6228         BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
6229         BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
6230         BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
6231         BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
6232         BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
6233         BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
6234         BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
6235         BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
6236
6237         * doc/extend.texi: Document new builtins.
6238
6239 2003-08-28  Nathanael Nerode  <neroden@gcc.gnu.org>
6240
6241         * fixinc/mkfixinc.sh: Remove special case code for unsupported
6242         variants of i?86, powerpcle, and thumb.
6243         * fixinc/mkfixinc.sh: Remove special case code for unsupported
6244         arm and hppa variants.
6245
6246 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6247
6248         * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
6249         BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
6250         BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
6251         BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
6252         BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
6253         BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
6254         BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
6255         BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
6256         BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
6257         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
6258
6259         * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
6260         BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
6261         BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
6262         BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
6263         BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
6264         BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
6265         BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
6266         BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
6267         BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
6268         BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
6269         BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
6270         BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
6271         BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
6272         BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
6273         BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
6274         BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
6275         BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
6276         BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
6277         BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
6278         BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
6279         BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
6280         BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
6281         BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
6282         BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
6283         BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
6284         BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
6285         BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
6286         BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
6287         BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
6288         BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
6289         BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
6290
6291         * doc/extend.texi: Document new builtins.
6292
6293 2003-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
6294
6295         * config/s390/s390.c (legitmate_constant_p): Use LARL on
6296         zSeries machines even in 31-bit addressing mode.
6297         (legitimate_reload_constant_p): Likewise.
6298         (legitimize_pic_address): Likewise.
6299         (legitimize_tls_address): Likewise.
6300         (s390_split_branches): Likewise.
6301         (s390_dump_pool): Likewise.
6302         (s390_mainpool_finish): Likewise.
6303         (s390_chunkify_start): Likewise.
6304         (s390_select_rtx_section): Likewise.
6305         * config/s390/s390.md ("doloop_si"): Likewise.
6306         ("pool_start_31", "pool_end_31"): Likewise.
6307         ("pool_start_64", "pool_end_64"): Likewise.
6308         ("main_base_31_small", "main_base_31_large"): Likewise.
6309         ("main_base_64"): Likewise.
6310         ("reload_base_31", "reload_base_64"): Likewise.
6311         ("*movsi_larl"): New insn.
6312         ("cjump", "icjump"): Use long branches on zSeries machines.
6313         ("jump"): Likewise.
6314         ("call"): Use BRASL on zSeries machines.
6315         ("call_value", "call_value_tls"): Likewise.
6316         ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
6317         and replace by ...
6318         ("*bras", "*brasl", "*basr") ... these new insns.
6319         ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
6320         "bas_31_r"): Remove and replace by ...
6321         ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
6322         ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
6323         "bas_64_tls", "bas_31_tls"): Remove and replace by ...
6324         ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
6325         ("*return_si", "*return_di"): Remove and replace by ...
6326         ("*return"): ... this new insn.
6327         ("rotlsi3"): Allow on zSeries machines.
6328
6329         * config/s390/s390.c (legitimize_reload_constant_p): Use
6330         LL/LH type instructions in z/Architecture mode.
6331         * config/s390/s390.md ("*movsi_lli"): Likewise.
6332         ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
6333         ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
6334         ("*extendqisi2"): Use LB in z/Architecture mode.
6335         ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
6336         z/Architecture mode.
6337         ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
6338         Likewise.
6339
6340         * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
6341         and 31-bit mode.
6342         ("ptr_extend"): Allow only in 64-bit mode.
6343
6344 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
6345
6346         * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
6347         (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
6348         definitions.
6349         (main): Only use standard_startfile_prefix if native.
6350         * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
6351
6352 2003-08-27  Per Bothner  <pbothner@apple.com>
6353
6354         * cpperror.c (print_location):  Don't check for !pfile->buffer.  That
6355         test fails following my 08-21 change, and it seems unnecessary anyway.
6356         (cpp_error):  Likewise.
6357
6358 2003-08-27  Jason Merrill  <jason@redhat.com>
6359
6360         * real.c (do_multiply): Initialize with memset.
6361
6362 2003-08-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6363
6364         * gcov.c (typedef struct arc_info): New field cs_count.
6365         (accumulate_line_counts): Find cycles correctly.
6366
6367 2003-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
6368
6369         * config/s390/s390.c (struct machine_function): Remove member
6370         literal_pool_label.
6371         (s390_optimize_prolog): Replace TEMP_REG argument with
6372         TEMP_USED and BASE_USED.  Do not check get_pool_size ().
6373         (general_s_operand): Accept all immediates before reload if
6374         ALLOW_IMMEDIATE.  If not ALLOW_IMMEDIATE, reject literal pool
6375         references.
6376         (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
6377         (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
6378         (s390_alloc_pool): New function.
6379         (s390_new_pool): Call it.
6380         (s390_dump_pool): Add REMOTE_LABEL argument.
6381         (s390_chunkify_start): Add BASE_REG argument.  Do not check
6382         get_pool_size ().
6383         (s390_chunkify_finish): Add BASE_REG argument.  Adapt
6384         s390_dump_pool call.
6385         (s390_pool_count, s390_nr_constants): Remove.
6386         (s390_output_constant_pool): Remove.
6387         (s390_mainpool_start): New function.
6388         (s390_mainpool_finish): New function.
6389         (s390_mainpool_cancel): New function.
6390         (s390_reorg): Implement main literal pool handling.
6391         (s390_emit_prologue): Emit main_pool placeholder instead of
6392         literal_pool_31 / literal_pool_64 insns.
6393         * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
6394         (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
6395         * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
6396         ("main_base_31_small", "main_base_31_large"): New insns.
6397         ("main_base_64",  "main_pool"): New insns.
6398         ("literal_pool_31", "literal_pool_64"): Remove.
6399
6400 2003-08-27  Nathanael Nerode  <neroden@gcc.gnu.org>
6401
6402         * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
6403         fixinc.ptx.
6404         * fixinc/inclhack.def (undefine_null):  Don't generate \r characters.
6405         Prettify a little.
6406         * fixinc/fixincl.x: Regenerate.
6407
6408 2003-08-27  Richard Earnshaw  <rearnsha@arm.com>
6409
6410         * lib1funcs.asm (L_ieee754_sp): New.  Include ieee754-sf.S.
6411         (L_ieee754_dp): New.  Include ieee754-df.S.
6412         * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
6413         and compilation in apcs-26 mode.
6414         * arm/ieee754-df.S: Likewise.
6415         * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
6416         (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
6417
6418 2003-08-27  Nicolas Pitre  <nico@cam.org>
6419
6420         * arm/ieee754-sf.S: New.
6421         * arm/ieee754-df.S: New.
6422
6423 2003-08-27  Jakub Jelinek  <jakub@redhat.com>
6424
6425         * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
6426         and restore it if returning NULL.
6427
6428 2003-08-27  Richard Sandiford  <rsandifo@redhat.com>
6429
6430         * calls.c (initialize_argument_information): If an argument has no
6431         stack space associated with it, and BLOCK_REG_PADDING is defined,
6432         use it to decide at which end the argument should be padded.
6433         * function.c (assign_parms): Allocate BLKmode stack slots.
6434         * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
6435         (mips_pad_reg_upward): Declare.
6436         * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
6437         (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
6438         (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
6439         (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
6440         * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
6441         (mips_expand_call): Remove code for generating structure shifts.
6442         (mips_arg_info): Don't set struct_p.  Don't set fpr_p for non-float
6443         types unless using the EABI.
6444         (function_arg_advance): Don't generate shift instructions.
6445         (function_arg): Don't return them.  Don't short-circuit the
6446         check for double structure chunks for DFmode arguments.
6447         (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
6448         (mips_expand_prologue): Remove code to emit structure shifts.
6449         * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
6450         structure passing (inet_ntoa, inet_lnaof, inet_netof).  Update
6451         comments to say that only structure returns are a problem.
6452
6453 2003-08-26  Nathanael Nerode  <neroden@gcc.gnu.org>
6454
6455         * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
6456         Fix to match produced versions.
6457         * fixinc/inclhack.def (longlong_t): New disabled test, ported
6458         from fixinc.svr4.
6459         * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
6460         from fixinc.ptx.
6461         * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
6462         ported from fixinc.ptx.
6463
6464 2003-08-26  Per Bothner  <pbothner@apple.com>
6465
6466         * cpplib.h (struct cpp_token):  Change type of field line to fileline.
6467         (cpp_error_with_line):  Use fileline for appropriate parameter.
6468         * cpphash.h (struct cpp_macro):  Change type of field line to fileline.
6469         (struct cpp_reader):  Likewise for fields line and directive_line.
6470         (_cpp_begin_message):  Use fileline for appropriate parameter.
6471         * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
6472         cpp_error):  Use fileline for appropriate parameters and variables.
6473         (print_location):  New local lin, since it is not a fileline.
6474
6475 2003-08-26  Roger Sayle  <roger@eyesopen.com>
6476
6477         PR middle-end/12002
6478         * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
6479         (FLOAT_TYPE_P): Define in terms of these two new macros.
6480         * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
6481         for complex floating point types.
6482
6483 2003-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
6484
6485         * config/s390/s390.c (emit_prologue): Don't check literal pool size.
6486         * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
6487         s390_output_pool_entry.
6488
6489 2003-08-26  Nathanael Nerode  <neroden@gcc.gnu.org>
6490
6491         * fixinc/inclhack.def (svr4_preproc_lint_on,
6492         svr4_preproc_lint_off, svr4_preproc_machine): New disabled
6493         fixes, ported from fixinc.svr4.
6494
6495 2003-08-26  Mark Mitchell  <mark@codesourcery.com>
6496
6497         * doc/install.texi (Prerequisites): Mention GNU make requirement.
6498
6499         * Makefile.in (AR_FOR_TARGET): Export it.
6500         (AR_CREATE_FOR_TARGET): Likewise.
6501         (AR_FLAGS_FOR_TARGET): Likewise.
6502         (AR_EXTRACT_FOR_TARGET): Likewise.
6503         (AWK): Likewise.
6504         (BUILD_PREFIX): Likewise.
6505         (BUILD_PREFIX_1): Likewise.
6506         (DESTDIR): Likewise.
6507         (GCC_FOR_TARGET): Likewise.
6508         (INCLUDES): Likewise.
6509         (INSTALL_DATA): Likewise.
6510         (LIB1ASMSRC): Likewise.
6511         (LIBGCC2_CFLAGS): Likewise.
6512         (MACHMODE_H): Likewise.
6513         (NM_FOR_TARGET): Likewise.
6514         (RANLIB_FOR_TARGET): Likewise.
6515         (libsubdir): Likewise.
6516         (slibdir): Likewise.
6517         (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
6518         exporting.
6519         (libgcc.a): Don't pass them here.
6520         (stmp-multilib): Or here.
6521         (install-libgcc): Or here.
6522         (install-multilib): Or here.
6523         (POSTSTAGE1_FLAGS_TO_PASS): Or here.
6524         (stage1_build): Or here.
6525
6526 2003-08-26  Andreas Krebbel <krebbel1@de.ibm.com>
6527
6528         * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
6529         "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
6530
6531 2003-08-26  Andreas Krebbel <krebbel1@de.ibm.com>
6532
6533         * config/s390/s390.md ("*fmadddf", "*fmsubdf",
6534         "*fmaddsf", "*fmsubsf"): New insns.
6535
6536 2003-08-26  Roger Sayle  <roger@eyesopen.com>
6537
6538         * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
6539         (C1*C2)/X when unsafe math optimizations are allowed.
6540         (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
6541         math optimizations.  Minor code clean-ups.  Recursively call
6542         fold when constructing sub-expressions.
6543
6544 2003-08-26  Roger Sayle  <roger@eyesopen.com>
6545
6546         * builtins.c (fold_builtin_bitop): New function to perform constant
6547         folding of ffs, clz, ctz, popcount and parity builtin functions
6548         and their long and long long variants (such as ffsl and ffsll).
6549         (fold_builtin): fold_builtin_bitop when appropriate.
6550         * simplify-rtx.c (simplify_unary_operation): Honor both
6551         CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
6552         evaluating clz and ctz at compile-time, for operands wider
6553         than HOST_WIDE_INT.
6554
6555 2003-08-26  Nathan Sidwell  <nathan@codesourcery.com>
6556
6557         * builtins.c (build_function_call_expr): Don't set
6558         TREE_SIDE_EFFECTS here.
6559         * expr.c (emit_block_move_via_libcall): Likewise.
6560         (clear_storage_via_libcall): Likewise.
6561         * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
6562         CALL_EXPRs.
6563
6564         * gcse.c (is_too_expensive): New function.
6565         (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
6566
6567 2003-08-25  Zack Weinberg  <zack@codesourcery.com>
6568
6569         * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
6570         commented-out logic to use DCE threads (if present), add
6571         support for POSIX threads.
6572         * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
6573         #defines for -pthread.  Add -lpthread to LIB_SPEC when
6574         -pthread.  In both cases take -mt as a synonym for -pthread
6575         for acc compatibility.
6576         Define GTHREAD_USE_WEAK to 0.
6577         * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
6578         Remove old logic for DCE threads from LIB_SPEC.
6579         * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
6580
6581 2003-08-25  Roger Sayle  <roger@eyesopen.com>
6582
6583         * builtins.c (expand_builtin_mathfn):  Rearrange so that we only
6584         return 0 for invalid argument types.  Instead drop through to a
6585         call of expand_call at the bottom of function.  If op is SQRT,
6586         try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
6587
6588 2003-08-25  Richard Henderson  <rth@redhat.com>
6589
6590         * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
6591         result when op0 is SImode.
6592
6593 2003-08-25  Nathanael Nerode  <neroden@twcny.rr.com>
6594
6595         * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
6596         from fixinc.svr4.
6597         * fixinc/fixincl.x: Regenerate.
6598         * fixinc/tests/base/sys/signal.h: Regenerate.
6599
6600 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
6601
6602         * combine.c (simplify_comparison): Re-enable widening of comparisons
6603         with non-paradoxical subregs of non-REG expressions.
6604
6605 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
6606
6607         * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
6608
6609 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
6610
6611         * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
6612
6613 2003-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6614
6615         * pretty-print.h (pp_maybe_newline_and_indent): New macro.
6616         * c-pretty-print.h (c_pretty_printer): Now typedef to the
6617         structure.  Be consistent with pretty-print.h abd cxx-pretty-print.h
6618         (struct c_pretty_print_info): Document.  Add new fields.
6619         (pp_type_specifier_seq): Rename from pp_c_type_specifier.
6620         (pp_direct_abstract_declarator): New macro.
6621         (pp_ptr_operator): Likewise.
6622         (pp_simple_type_specifier): Likewise.
6623         (pp_expression): Likewise.
6624         (pp_parameter_list): Rename from pp_parameter_declaration.
6625         * c-pretty-print.c (pp_c_whitespace): Now a function.
6626         (pp_c_left_paren): Likewise.
6627         (pp_c_right_paren): Likewise.
6628         (pp_c_dot): Likewise.
6629         (pp_c_ampersand): Likewise.
6630         (pp_c_arrow): Likewise.
6631         (pp_c_semicolon): Likewise.
6632         (pp_c_type_cast): New function.
6633         (pp_c_space_for_pointer_operator): Likewise.
6634         (pp_c_call_argument_list): Likewise.
6635         (pp_c_cv_qualifier): Adjust prototype.
6636         (pp_c_type_qualifier_list): Likewise.
6637         (pp_c_pointer): Likewise.  Handle REFERENCE_TYPE here.
6638         (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
6639         Adjust to follow standard grammar.
6640         (pp_c_specifier_qualifier_list): Adjusr prototype.  Handle
6641         REFERENCE_TYPE.  Tidy.
6642         (pp_c_parameter_type_list): Adjust prototype.  Tidy.
6643         (pp_c_parameter_declaration): Remove.
6644         (pp_c_abstract_declarator): Adjust prototype.
6645         (pp_c_direct_abstract_declarator): Likewise.
6646         (pp_c_type_id): Likewise.
6647         (pp_c_storage_class_specifier): Likewise.
6648         (pp_c_function_specifier): Likewise.
6649         (pp_c_declaration_specifiers): Likewise.
6650         (pp_c_direct_declarator): Likewise.
6651         (pp_c_declarator): Likewise.
6652         (pp_c_declarator): Likewise.
6653         (pp_c_declaration): Likewise.
6654         (pp_c_attributes): Likewise.  Tidy.
6655         (pp_c_function_definition): Adjust prototype.
6656         (pp_c_char): Likewise.
6657         (pp_c_string_literal): Likewise.
6658         (pp_c_integer_constant): Likewise.
6659         (pp_c_character_constant): Likewise.
6660         (pp_c_bool_constant): Likewise.
6661         (pp_c_enumeration_constant): Likewise.
6662         (pp_c_floating_constant): Likewise.
6663         (pp_c_constant): Likewise.
6664         (pp_c_identifier): Likewise.
6665         (pp_c_primary_expression): Likewise.  Remove TARGET_EXPR case.  Tidy.
6666         (pp_c_initializer): Adjust prototype.
6667         (pp_c_init_declarator): Likewise.
6668         (pp_c_initializer_list): Likewise.
6669         (pp_c_id_expression): Likewise.
6670         (pp_c_postfix_expression): Likewise.
6671         (pp_c_expression_list): Likewise.
6672         (pp_c_unary_expression): Likewise.
6673         (pp_c_cast_expression): Likewise.
6674         (pp_c_multiplicative_expression): Likewise.
6675         (pp_c_additive_expression): Likewise.
6676         (pp_c_shift_expression): Likewise.
6677         (pp_c_relational_expression): Likewise.
6678         (pp_c_equality_expression): Likewise.
6679         (pp_c_and_expression): Likewise.
6680         (pp_c_exclusive_or_expression): Likewise.
6681         (pp_c_inclusive_or_expression): Likewise.
6682         (pp_c_logical_and_expression): Likewise.
6683         (pp_c_logical_or_expression): Likewise.
6684         (pp_c_conditional_expression): Likewise.
6685         (pp_c_assignment_expression): Likewise.
6686         (pp_c_expression): Likewise.  Tidy.
6687         (pp_c_statement): Likewise.  Document.
6688         (pp_c_pretty_printer_init): Adjust prototype. Tidy.
6689
6690         * c-lang.c (c_initialize_diagnostics): Update.
6691         * c-common.h (strip_pointer_operator): Declare.
6692         * c-common.c (strip_pointer_operator): Define.
6693
6694 2003-08-25  Mark Mitchell  <mark@codesourcery.com>
6695
6696         PR c++/8795
6697         * tree.h (build_method_type_directly): Declare.
6698         * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
6699         (vector_size_helper): Likewise.
6700         * tree.c (build_method_type_directly): New function.
6701         (build_method_type): Use it.
6702
6703 2003-08-24  Richard Henderson  <rth@redhat.com>
6704
6705         * config/i386.i386.c (ix86_return_in_memory): Reformat.  Return true
6706         for 16-byte vector modes if sse not enabled; warn for abi change.
6707         (ix86_value_regno): Only return xmm0 for 16-byte vector types.
6708
6709 2003-08-24  Kazu Hirata  <kazu@cs.umass.edu>
6710
6711         * rtlanal.c (may_trap_p): Simplify an integer comparison.
6712
6713 2003-08-24  Nathanael Nerode  <neroden@gcc.gnu.org>
6714
6715         * fixinc/inclhack.def (AAB_svr4_replace_byteorder):  Enhance
6716         comment.  Enable for DYNIX/ptx systems (when they switch to
6717         regular fixincludes).
6718         * fixinc/fixincl.x: Regenerate.
6719
6720 2003-08-23  Jason Eckhardt  <jle@rice.edu>
6721
6722         * config/i860/t-i860: New.
6723         * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
6724
6725 2003-08-23  Jakub Jelinek  <jakub@redhat.com>
6726
6727         * c-decl.c (pushdecl): Only put decls which finish_struct will do
6728         something about onto incomplete chain.
6729         (finish_struct): If not removing type from incomplete
6730         list, update prev.
6731
6732 2003-08-20  Jan Hubicka  <jh@suse.cz>
6733
6734         PR target/11369
6735         * i386.c (ix86_expand_carry_flag_compare): Validate operand.
6736
6737         PR target/11031
6738         * i386.c (const_0_to_3_operand, const_0_to_7_operand,
6739         const_0_to_15_operand, const_0_to_255_operand): New predicates.
6740         * i386.h (PREDICATE_CODES): Add these.
6741         * i386.c (pinsrw and pextrw patterns): Use them.
6742
6743         PR target/10984
6744         * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
6745
6746         PR target/8869
6747         * expr.c (convert_modes): Deal properly with integer to vector
6748         constant conversion.
6749
6750         PR target/8871
6751         * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
6752
6753 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
6754
6755         * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
6756         * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
6757         ("*movhi"): ... this.
6758         ("movqi", "*movqi"): Likewise.
6759         ("movqi_64"): Remove.
6760         ("*zero_extendhisi2_31"): Change predicate to s_operand.
6761
6762 2003-08-23  Dale Johannesen  <dalej@apple.com>
6763         * calls.c (emit_library_call_value_1): Fix obvious errors in
6764         arguments to emit_group_store.
6765
6766 2003-08-23  Jason Eckhardt  <jle@rice.edu>
6767
6768         * calls.c (emit_library_call_value_1): Remove code related
6769         to LIBGCC_NEEDS_DOUBLE.
6770         * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
6771         * doc/tm.texi: Likewise.
6772         * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
6773
6774 2003-08-23  Richard Sandiford  <rsandifo@redhat.com>
6775
6776         * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
6777
6778 2003-08-23  Richard Sandiford  <rsandifo@redhat.com>
6779
6780         * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
6781         as well.  Put memory references in the varargs alias set.
6782         (mips_expand_prologue): Remove varargs handling from here.
6783
6784 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
6785
6786         * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
6787         s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
6788         s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
6789         for function pointer calls.
6790         * config/s390/s390.md ("*negdi2_31"): Likewise.
6791
6792 2003-08-23  Roger Sayle  <roger@eyesopen.com>
6793
6794         * combine.c (apply_distributive_law): Correct comment.
6795
6796 2003-08-23  Jason Eckhardt  <jle@rice.edu>
6797
6798         * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
6799
6800 2003-08-22  Jason Eckhardt  <jle@rice.edu>
6801
6802         * config/i860/i860.c (i860_build_va_list): Create the va_decl
6803         declaration.  Document the va_list structure.
6804         (i860_va_start): Initialize the va_list structure.
6805         (i860_va_arg): Rewrite completely.
6806         * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
6807         * config/i860/varargs.asm: Do not allocate or initialize
6808         a va_list.  Return the address of the register save area.
6809
6810 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
6811
6812         * config/iq2000/iq2000.c: Fix comment typos.
6813         * config/iq2000/iq2000.md: Likewise.
6814
6815 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
6816
6817         * config/iq2000/iq2000.c: Follow spelling conventions.
6818         * config/iq2000/iq2000.h: Likewise.
6819         * config/mn10300/mn10300.c: Likewise.
6820
6821 2003-08-22  Jason Eckhardt  <jle@rice.edu>
6822
6823         * config/i860/i860.c (output_move_double): Don't set latehalf
6824         to zero for CONST_INT (since it could be, e.g., -1).
6825
6826         * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
6827         (MODSI3_LIBCALL): ...with this one.
6828         (UREMSI3_LIBCALL): Replace this macro...
6829         (UMODSI3_LIBCALL): ...with this one.
6830
6831 2003-08-22  Jason Eckhardt  <jle@rice.edu>
6832
6833         * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
6834         (output_delayed_branch): Remove prototype.
6835         (single_insn_src_p): Remove prototype.
6836         * config/i860/i860.c (single_insn_src_p): Remove function.
6837         (output_delayed_branch): Remove function.
6838         (output_delay_insn): Remove function.
6839         (va_start): Remove unconditional test and dead code, re-format.
6840         Fix coding style and spelling problems in various comments.
6841         * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
6842         (blockage pattern): ...and use it here.
6843         (all define_peephole patterns related to delayed branches): Remove.
6844         Fix coding style and spelling problems in various comments.
6845
6846 2003-08-22  Jason Eckhardt  <jle@rice.edu>
6847
6848         * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
6849         Remove all uses of the PARAMS macro.  Remove superflous prototypes.
6850         Convert all function definitions from traditional to ISO C90 syntax.
6851         * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
6852         with 'GCC'.  Remove all uses of the PARAMS macro.
6853         * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
6854         * config/i860/i860.md: Likewise.
6855         * config/i860/sysv4.h: Likewise.
6856         * config/i860/varargs.asm: Likewise.
6857
6858 2003-08-22  Jason Eckhardt  <jle@rice.edu>
6859
6860         * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
6861         argument.
6862         (tdesc_section): Add prototype.
6863         Update copyright dates.
6864         * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
6865         (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
6866         (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
6867         (targetm): Likewise.
6868         (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
6869         for '%d' where necessary.
6870         (i860_va_start): Remove 'stdarg_p' argument.  Make conditional checks
6871         on 'stdarg_p' unconditional.  Divide current_function_args_info.ints
6872         by UNITS_PER_WORD when referencing (likewise for .floats).
6873         (I860_SVR4_VARARGS): Rename...
6874         (I860_SVR4_VA_LIST): ...to this.
6875         Call build() with 't' rather than 'field'.
6876         (i860_rtx_costs): New function.
6877         (TARGET_RTX_COSTS): Define.
6878         (i860_internal_label): New function.
6879         (TARGET_ASM_INTERNAL_LABEL): Define.
6880         (i860_file_start): New function.
6881         Update copyright dates.
6882         * config/i860/i860.h (CPP_PREDEFINES): Remove.
6883         (TARGET_CPU_CPP_BUILTINS): Define.
6884         (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
6885         (CONST_COSTS): Remove (and move code to i860_rtx_costs).
6886         (ASM_FILE_START): Remove.
6887         (ASM_FILE_START_1): Remove.
6888         (ASM_GLOBALIZE_LABEL): Remove.
6889         (ASM_OUTPUT_INTERNAL_LABEL): Remove.
6890         (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
6891         with targetm.asm_out.internal_label.
6892         Update copyright dates.
6893         * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
6894         (CPP_PREDEFINES): Remove.
6895         (TARGET_OS_CPP_BUILTINS): Define.
6896         (GLOBAL_ASM_OP): Define.
6897         (ASM_FILE_START): Remove.
6898         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
6899         (TARGET_ASM_FILE_START): Define.
6900         Update copyright dates.
6901
6902 2003-08-22  Jason Eckhardt  <jle@rice.edu>
6903
6904         * gcc/config.gcc (i860-*-sysv4*): Add target.
6905         * config/i860/i860-protos.h: New.
6906         * config/i860/i860.c: New.
6907         * config/i860/i860.h: New.
6908         * config/i860/i860.md: New.
6909         * config/i860/sysv4.h: New.
6910         * config/i860/varargs.asm: New.
6911         * config/i860/x-sysv4: New.
6912
6913 2003-08-22  Jason Eckhardt  <jle@rice.edu>
6914
6915         * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
6916         Remove all uses of PARAMS macro.
6917         Convert all function definitions to ISO C90 syntax.
6918         * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
6919         * config/pa/fptr.c: Likewise.
6920         * config/pa/lib2funcs.asm: Likewise.
6921         * config/pa/long_double.h: Likewise.
6922         * config/pa/milli64.S: Likewise.
6923         * config/pa/pa-64.h: Likewise.
6924         * config/pa/pa-hpux.h: Likewise.
6925         * config/pa/pa-hpux10.h: Likewise.
6926         * config/pa/pa-hpux11.h: Likewise.
6927         * config/pa/pa-linux.h: Likewise.
6928         * config/pa/pa-modes.def: Likewise.
6929         * config/pa/pa-osf.h: Likewise.
6930         * config/pa/pa-pro-end.h: Likewise.
6931         * config/pa/pa.md: Likewise.
6932         * config/pa/pa32-linux.h: Likewise.
6933         * config/pa/pa64-linux.h: Likewise.
6934         * config/pa/pa64-hpux.h: Likewise.
6935         * config/pa/pa64-regs.h: Likewise.
6936         * config/pa/quadlib.c: Likewise.
6937         * config/pa/rtems.h: Likewise.
6938         * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
6939         all uses of the PARAMS macro.
6940         * config/pa/pa.h: Likewise.
6941         * config/pa/som.h: Likewise.
6942
6943         * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
6944         Remove all uses of PARAMS macro.
6945         Convert all function definitions to ISO C90 syntax.
6946         * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
6947         Remove all uses of PARAMS macro.
6948         * config/iq2000.h: Remove all uses of PARAMS macro.
6949         * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
6950
6951 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
6952
6953         * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
6954         * config/s390/s390.c (gen_consttable): Remove.
6955         (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
6956         (s390_output_pool_entry): New function.
6957         * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
6958         UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
6959         UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
6960         (UNSPECV_POOL_ENTRY): ... this new constant.
6961         ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
6962         "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
6963         ("*pool_entry"): ... and replace by this new insn.
6964         ("literal_pool_31"): Do not emit anchor label if pool empty.
6965
6966         * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
6967         (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
6968         (s390_fixup_clobbered_return_reg): Remove.
6969         (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
6970         (s390_return_addr_rtx): Always retrieve return address from save area
6971         slot.  Use save_return_addr_p to force slot to be filled.
6972         (s390_emit_prologue): Remove has_hard_reg_initial_val test.
6973
6974 2003-08-22  Chris Demetriou  <cgd@broadcom.com>
6975
6976         * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
6977         (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
6978         * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
6979         around SB-1 errata if TARGET_FIX_SB1 is set.
6980         (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
6981         * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
6982
6983 2003-08-22  Roger Sayle  <roger@eyesopen.com>
6984
6985         * hashtable.c (ht_expand): Avoid calculating rehash for the common
6986         case that the first probe hits an empty hash table slot.
6987
6988 2003-08-22  Mark Mitchell  <mark@codesourcery.com>
6989
6990         * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
6991
6992 2003-08-22  Mark Mitchell  <mark@codesourcery.com>
6993
6994         * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
6995         (ptr_extend_plus_imm): ... this.
6996         * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
6997         optimization in C++.
6998         (ia64_output_mi_thunk): Support ILP32 mode.
6999
7000 2003-08-22  Bernardo Innocenti  <bernie@develer.com>
7001
7002         * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
7003         function.
7004         * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
7005
7006 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
7007
7008         * config/i386/i386.c (const_int_1_operand): Simplify an
7009         integer comparison.
7010
7011 2003-08-22  Alan Modra  <amodra@bigpond.net.au>
7012
7013         * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
7014         * config/rs6000/ppc64-fp.c: Likewise.
7015
7016 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
7017
7018         * cfgcleanup.c: Fix comment typos.
7019         * emit-rtl.c: Likewise.
7020         * optabs.c: Likewise.
7021         * ra-build.c: Likewise.
7022         * rtlanal.c: Likewise.
7023         * tree.h: Likewise.
7024
7025 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
7026
7027         * c-decl.c: Fix comment formatting.
7028         * cfgrtl.c: Likewise.
7029         * combine.c: Likewise.
7030         * convert.c: Likewise.
7031         * dominance.c: Likewise.
7032         * dwarf2out.c: Likewise.
7033         * dwarfout.c: Likewise.
7034         * expmed.c: Likewise.
7035         * fold-const.c: Likewise.
7036         * gcov.c: Likewise.
7037         * genattrtab.c: Likewise.
7038         * ggc-common.c: Likewise.
7039         * mips-tfile.c: Likewise.
7040         * regmove.c: Likewise.
7041
7042 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
7043
7044         * builtin-attrs.def: Fix comment formatting.
7045         * c-pretty-print.c: Likewise.
7046         * diagnostic.h: Likewise.
7047         * langhooks.h: Likewise.
7048         * recog.c: Likewise.
7049         * simplify-rtx.c: Likewise.
7050         * tree.def: Likewise.
7051
7052 2003-08-22  Bernardo Innocenti  <bernie@develer.com>
7053
7054         * config/m68k/m68k-protos.h: Convert to ISO C90.
7055         * config/m68k/m68k.c: Likewise.
7056
7057 2003-08-21  Bernardo Innocenti  <bernie@develer.com>
7058             Paul Dale  <pauli@snapgear.com>
7059             Peter Barada <peter@baradas.org>
7060
7061         * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
7062         ColdFire cores.
7063
7064 2003-08-21  Zack Weinberg  <zack@codesourcery.com>
7065
7066         * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
7067         * config.gcc (*-*-openbsd): Don't set tm_file.
7068         (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
7069         arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
7070         h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
7071         i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
7072         i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
7073         m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
7074         m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
7075         m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
7076         mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
7077         sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
7078         xscale-*-coff): Use explicit and complete lists of target headers
7079         to include.  Move definitions to tm_defines where appropriate.
7080         (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
7081         not-yet-contributed configuration.
7082
7083         * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
7084         * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
7085         * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
7086         * config/i386/nto.h, config/iq2000/iq2000.h,
7087         * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
7088         * config/m68k/linux.h, config/m68k/m68k-aout.h
7089         * config/m68k/m68k-none.h, config/m68k/m68kv4.h
7090         * config/m68k/netbsd.h, config/m68k/openbsd.h
7091         * config/m68k/sgs.h, config/mcore/mcore-pe.h,
7092         * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
7093         * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
7094         Remove includes of other target config headers, and
7095         definitions of macros moved to tm_defines lists.  Add #undefs
7096         where now necessary to prevent redefinition warnings.
7097
7098         * config/h8300/coff.h: New file split out of...
7099         * config/h8300/elf.h: ...here.
7100         * config/m68k/hp320base.h: New file split out of...
7101         * config/m68k/hp320.h: ...here.
7102         * config/rs6000/lynxbase.h: New file split out of...
7103         * config/rs6000/lynx.h: ...here.
7104
7105         * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
7106         * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
7107
7108         * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
7109         * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
7110         * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
7111         Remove unnecessary #ifndef.
7112         * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
7113         [under IN_LIBGCC2] with config/.
7114
7115 2003-08-21  Per Bothner  <pbothner@apple.com>
7116
7117         * cppfiles.c (stack_file):  Correctly pass return_at_eof parameter
7118         to cpp_push_buffer.
7119         * cpplex.c (_cpp_get_fresh_line):  Don't buffer->prev - handled
7120         by return_at_eof check.  Always call _cpp_pop_buffer at end.
7121
7122 2003-08-21  Kazu Hirata  <kazu@cs.umass.edu>
7123
7124         PR target/11805
7125         * config/h8300/h8300.md (two anonymous patterns): Remove.
7126
7127 2003-08-21  Richard Sandiford  <rsandifo@redhat.com>
7128
7129         * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
7130         * config/mips/mips.c (function_arg_pass_by_reference): Never return
7131         true for n32 & n64.
7132
7133 2003-08-21  Josef Zlomek  <zlomekj@suse.cz>
7134
7135         * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
7136         and similarly in (A | C) == D where C & ~D != 0.
7137
7138 2003-08-20  Geoffrey Keating  <geoffk@apple.com>
7139
7140         PR 8180
7141         * configure.in: When testing with_libs and with_headers, treat
7142         'no' as unset.  Based on a patch by Dan Kegel <dank@kegel.com>.
7143         * configure: Regenerate.
7144
7145 2003-08-20  Peter Barada <peter@baradas.org>
7146
7147         * longlong.h (umul_ppmm): Add ColdFire support.
7148
7149 2003-08-20  Peter Barada <peter@baradas.org>
7150             Bernardo Innocenti  <bernie@develer.com>
7151
7152         * config/m68k/m68k-none.h: Introduce new ColdFire archs.
7153         * config/m68k/m68k.h: Likewise.
7154         * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
7155         * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
7156         * config/m68k/linux.h: Likewise.
7157         * config/m68k/m68k.c: Likewise.
7158         * config/m68k/m68k.md: Likewise.
7159         * config/m68k/m68kelf.h: Likewise.
7160         * config/m68k/netbsd-elf.h: Likewise.
7161         * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
7162
7163 2003-08-20  Bernardo Innocenti  <bernie@develer.com>
7164
7165         * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
7166         * config/m68k/m68k.md: Likewise.
7167
7168 2003-08-20  Mark Mitchell  <mark@codesourcery.com>
7169
7170         PR java/11996
7171         Revert this change:
7172         2003-08-19  Mark Mitchell  <mark@codesourcery.com>
7173         * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
7174         types with precisions other than those given by native machine
7175         modes.
7176
7177 2003-08-20  Gunther Nikl  <gni@gecko.de>
7178
7179         * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
7180         selected by FSGLMUL_USE_S and FSGLDIV_USE_S
7181         * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
7182         * config/m68k/m68k.md (anonymous define_insn): Likewise
7183         * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
7184         * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
7185         code selected by NO_ASM_FMOVECR
7186
7187 2003-08-20  Gunther Nikl  <gni@gecko.de>
7188
7189         * config/m68k/m68k.c (output_move_const_into_data_reg,
7190         output_move_himode): unify MOTOROLA/MIT handling of moveq
7191         * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
7192         Likewise
7193
7194 2003-08-20  Gunther Nikl  <gni@gecko.de>
7195
7196         * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
7197         label name
7198         * config/m68k/m68k.c (m68k_output_function_epilogue): replace
7199         HOST_WIDE_INT_PRINT_DEC with %wd
7200
7201 2003-08-20  Loren James Rittle  <ljrittle@acm.org>
7202
7203         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
7204         redefine warning.
7205
7206 2003-08-20  Roger Sayle  <roger@eyesopen.com>
7207
7208         PR middle-end/11984
7209         * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
7210         operands before calling tree_int_cst_lt when performing associative
7211         transformations.
7212
7213 2003-08-20  Jason Merrill  <jason@redhat.com>
7214
7215         * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
7216         (EXPR_CHECK): Don't check for 'r' or 's' if we're
7217         checking IS_EXPR_CODE_CLASS.
7218         * calls.c (calls_function_1): Likewise.
7219         * fold-const.c (fold): Likewise.
7220         * tree.c (iterative_hash_expr): Likewise.
7221         * tree-inline.c (walk_tree, copy_tree_r): Likewise.
7222
7223 2003-08-20  Gunther Nikl  <gni@gecko.de>
7224
7225         * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
7226         depending on MOTOROLA_BSR
7227         * config/m68k/m68k.md (anonymous define_insn): Likewise
7228
7229 2003-08-20  Jason Merrill  <jason@redhat.com>
7230
7231         * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
7232         (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
7233         fold_trunc_transparent_mathfn, fold_builtin): Likewise.
7234         * dojump.c (do_jump): Likewise.
7235         * fold-const.c (operand_equal_p, fold): Likewise.
7236         (tree_expr_nonnegative_p): Likewise.
7237
7238         * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
7239         TYPE_USER_ALIGN for FIELD_DECLs.
7240
7241         * attribs.c (decl_attributes): Rebuild the function pointer type after
7242         changing the target type.
7243         * tree.c (get_qualified_type): Also check that the attributes match.
7244
7245 2003-08-19  Matt Kraai  <kraai@alumni.cmu.edu>
7246
7247         * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
7248         * objc/config-lang.in (stagestuff): ... to here.
7249
7250 2003-08-19  Mark Mitchell  <mark@codesourcery.com>
7251
7252         PR c++/11946
7253         * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
7254         NOP_EXPR) when necessary.
7255         * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
7256         types with precisions other than those given by native machine
7257         modes.
7258
7259 2003-08-19  Geoffrey Keating  <geoffk@apple.com>
7260
7261         * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
7262         because some macro is defined.
7263
7264         * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
7265         options.
7266         * config/i386/darwin.h (ASM_SPEC): New.
7267         (SUBTARGET_EXTRA_SPECS): New.
7268         * config/rs6000/darwin.h (ASM_SPEC): New.
7269         (SUBTARGET_EXTRA_SPECS): New.
7270         * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
7271         a cross-compiler between two different processors on Darwin.
7272         * configure: Regenerate.
7273
7274 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
7275
7276         * builtins.c: Fix comment typos.
7277         * c-common.c: Likewise.
7278         * c-decl.c: Likewise.
7279         * c-pretty-print.c: Likewise.
7280         * cfgbuild.c: Likewise.
7281         * cfglayout.c: Likewise.
7282         * cfgloopanal.c: Likewise.
7283         * cgraphunit.c: Likewise.
7284         * cppfiles.c: Likewise.
7285         * dwarfout.c: Likewise.
7286         * expr.c: Likewise.
7287         * fold-const.c: Likewise.
7288         * gcse.c: Likewise.
7289         * ggc-page.c: Likewise.
7290         * haifa-sched.c: Likewise.
7291         * pretty-print.c: Likewise.
7292         * tree.c: Likewise.
7293         * tree.h: Likewise.
7294         * value-prof.c: Likewise.
7295
7296 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
7297
7298         * c-decl.c: Follow spelling conventions.
7299         * cppfiles.c: Likewise.
7300
7301 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
7302
7303         * c-common.c: Fix comment formatting.
7304         * c-common.h: Likewise.
7305         * c-decl.c: Likewise.
7306         * cppinit.c: Likewise.
7307         * cpplib.h: Likewise.
7308         * emit-rtl.c: Likewise.
7309         * input.h: Likewise.
7310         * line-map.h: Likewise.
7311         * opts.c: Likewise.
7312         * opts.h: Likewise.
7313         * simplify-rtx.c: Likewise.
7314
7315 2003-08-19  Daniel Jacobowitz  <drow@mvista.com>
7316
7317         * unwind-c.c: Add libgcc-style exception.
7318         * unwind-dw2.c: Likewise.
7319         * unwind-pe.h: Likewise.
7320         * unwind-sjlj.c: Likewise.
7321         * unwind.inc: Likewise.
7322
7323 2003-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
7324
7325         PR c/5582 PR c++/10538
7326         * langhooks-def.h (lhd_decl_uninit): Declare.
7327         (LANG_HOOKS_DECL_UNINIT): New macro.
7328         (LANG_HOOKS_INITIALIZER): Adjust.
7329         * langhooks.h (struct lang_hooks): Add new field
7330         decl_uninit.
7331         * langhooks.c (lhd_decl_uninit): Define.
7332         * c-common.c (c_decl_uninit_1): New function.
7333         (c_decl_uninit): New function.
7334         (warn_init_self): Define.
7335         * c-common.h (c_decl_uninit): Declare.
7336         (warn_init_self): Declare.
7337         * c.opt: Introduce -Winit-self.
7338         * c-opts.c (c_common_handle_options): Set warn_init_self.
7339         * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
7340         * objc/objc-lang.c  (LANG_HOOKS_DECL_UNINIT): Define.
7341         * function.c (uninitialized_vars_warning): Call the language hook.
7342         * doc/invoke.texi: Document -Winit-self.
7343
7344 2003-08-19  Chris Demetriou  <cgd@broadcom.com>
7345
7346         * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
7347         to use better predicates and constraints.  Define new
7348         instruction to handle "trap_if" with DI-mode arguments.
7349         (conditional_trap): FAIL if trap code is not 0.
7350
7351 2003-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
7352
7353         * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
7354         strstr with $pb to a strcompare with "<pic base>"
7355         (ix86_output_addr_diff_elt): Output the real pic base.
7356
7357 2003-08-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7358
7359         * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
7360         (LANG_HOOKS_INITIALIZER): Correct.
7361         * c-lang.c: Likewise.
7362
7363 2003-08-19  Jan Hubicka  <jh@suse.cz>
7364
7365         * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
7366         (cgraph_varpool_mark_needed_node): Likewise.
7367         * cgraph.h (notice_global_symbol): Declare
7368         * varasm.c (notice_global_symbol): Break out from ...
7369         (assemble_start_function): ... here; update for variables.
7370         (assemble_variable): Use notice_global_symbol.
7371
7372 2003-08-19  Richard Sandiford  <rsandifo@redhat.com>
7373
7374         * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
7375         expect SFmode and DFmode arguments to be passed in FPRs,
7376         regardless of the underlying type.
7377
7378 2003-08-19  Richard Sandiford  <rsandifo@redhat.com>
7379
7380         PR target/11924
7381         * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
7382         (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
7383
7384 2003-08-18  Matt Kraai  <kraai@alumni.cmu.edu>
7385
7386         PR c/11207
7387         * c-typeck.c (set_init_index): Check for negative index.
7388
7389 2003-08-18  Bob Wilson  <bob.wilson@acm.org>
7390
7391         * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
7392         call0 ABI.
7393         * config/xtensa/crtn.asm (_init, _fini): Likewise.
7394         * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
7395         __umodsi3, __modsi3): Likewise.
7396         * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
7397         $(INCLUDES).
7398
7399 2003-08-18  Aldy Hernandez  <aldyh@redhat.com>
7400
7401         * config/rs6000/spe.md ("*nabssf2_gpr"): New.
7402
7403 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
7404
7405         * config/mips/mips.md: Quote C code in braces.  Remove use of
7406         fake const0_rtx operands.  Remove double backslashes.  Use \;.
7407         Remove workarounds for bogus warnings.
7408
7409 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
7410
7411         * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
7412         (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
7413         rather than TARGET_MIPS4300.
7414         (mulsf3_internal, mulsf3_r4300): Likewise.
7415
7416 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
7417
7418         * config/mips/mips.md: Renumber unspecs.  Clean up comments.
7419
7420 2003-08-17  Roger Sayle  <roger@eyesopen.com>
7421
7422         * simplify-rtx.c (associative_constant_p): New function to test
7423         whether an RTX expression is an immediate constant.
7424         (simplify_associative_operation): New function to perform some
7425         reassociation optimizations of associative binary expressions.
7426         (simplify_binary_operation): Use simplify_associative_operation
7427         to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
7428         Floating point expressions are only reassociated when unsafe
7429         math optimizations are permitted.
7430
7431 2003-08-17  Andreas Jaeger  <aj@suse.de>
7432
7433         * config/alpha/alpha.md: Remove usage of PARAMS.
7434
7435         * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
7436         * config/i386/i386-interix.h: Likewise.
7437         * config/i386/winnt.c: Likewise.
7438         * config/i386/cygming.h: Likewise.
7439         * config/i386/cygwin2.c: Likewise.
7440         * config/darwin.c: Likewise.
7441         * config/darwin-c.c: Likewise.
7442         * config/darwin-protos.h: Likewise.
7443         * config/darwin.h: Likewise.
7444         * config/s390/s390-protos.h: Likewise.
7445         * config/s390/s390.c: Likewise.
7446         * config/ia64/ia64.c: Likewse
7447         * config/ia64/ia64-protos.h: Likewise.
7448         * config/ia64/ia64-c.c: Likewise.
7449
7450 2003-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7451
7452         * config/sparc/sparc.c: Convert to ISO C.
7453
7454         * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
7455         * config/sparc/sparc.c: Likewise.
7456
7457 2003-08-16  Nathan Sidwell  <nathan@codesourcery.com>
7458
7459         PR c++/11512
7460         * stmt.c (expand_expr_stmt_value): Don't warn about any void
7461         typed expression.
7462
7463 2003-08-16  Jan Hubicka  <jh@suse.cz>
7464
7465         * i386.c (ix86_fntype_regparm): Rename from ...
7466         (ix86_function_regparm): ... this one; add fastcall and local
7467         functions.
7468         (ix86_function_ok_for_sibcall): Update.
7469         (ix86_return_pops_args): Likewise.
7470         (init_cumulative_args): Likewise.
7471         (x86_can_output_mi_thunk): Likewise.
7472         (function_arg): Fix formating.
7473         (x86_this_parameter): Fix fastcall.
7474         (x86_output_mi_thunk): Likewise.
7475
7476         * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
7477         body as reachable; mark nested functions as needed too.
7478         (dump_cgraph): Do not output global.calls.
7479         * cgraph.h (cgraph_global_info): Kill.
7480         * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
7481         (record_call_1): Speedup.
7482         (cgraph_analyze_function): Break out from ...; compute inlining
7483         parameters.
7484         (cgraph_finalize_compilation_unit): ... here.
7485         (cgraph_mark_inline): Kill computation of calls.
7486         (cgraph_decide_inlining): Do not compute most of initial values.
7487
7488 2003-08-14  Roger Sayle  <roger@eyesopen.com>
7489
7490         * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
7491         to negate if either operand is easy to negate, if we don't care
7492         about sign-dependent rounding.
7493         (negate_expr): Make the logic to negate a REAL_CST explicit.
7494         Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
7495         that's easy to negate, if we don't honor sign-dependent rounding.
7496         (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
7497         negate, and the symmetric A * -B as -A * B if A is easy to negate.
7498         (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
7499         -C/D if B and C are cheap to negate.  Add an explicit rule to
7500         optimize X/-1.0 as -X when we don't care about signaling NaNs.
7501
7502 2003-08-14  Zack Weinberg  <zack@codesourcery.com>
7503
7504         * Makefile.in (tm_file): Rename tm_include_list.
7505         (tm_p_file): Rename tm_p_include_list.
7506         (build_xm_file): Rename build_xm_include_list.
7507         (host_xm_file): Rename host_xm_include_list.
7508         (xm_file): Rename xm_include_list.
7509         (xm_file_list): Add to be substituted.
7510         (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
7511         Update to match.
7512         (bt-load.o): Add missing dependency on $(TM_H).
7513         * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
7514         For each of tm_file, tm_p_file, xm_file, host_xm_file, and
7515         build_xm_file, generate both *_file_list and *_include_list
7516         values from it.  (xm_file_list was formerly not being generated.)
7517         In *_include_list, prefix the names of all headers found in
7518         $(srcdir)/config with config/.  In each loop, consider only
7519         the special case files that can actually appear in that list.
7520         AC_SUBST all *_file_list and all *_include_list variables; do
7521         not AC_SUBST the plain *_file variables.
7522         * configure: Regenerate.
7523
7524 2003-08-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7525
7526         * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
7527
7528 2003-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7529
7530         * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
7531         direct calls.
7532         (attr_length_call): Include it here.  Improve length estimate for
7533         local calls.
7534         (output_call): Use targetm.binds_local_p.
7535
7536 2003-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7537
7538         * builtins.c (CASE_MATHFN): New helper macro.
7539         (mathfn_built_in): Simplify and sort.
7540
7541         * protoize.c (substr): Delete, callers changed to `strstr'.
7542
7543 2003-08-13  Zack Weinberg  <zack@codesourcery.com>
7544
7545         * config.gcc (iq2000*-*-elf*): Don't set xm_file.
7546         * config/iq2000/xm-iq2000.h: Delete file.
7547
7548 2003-08-13  Geoffrey Keating  <geoffk@apple.com>
7549
7550         * gengtype.c (walk_type): Process a subobject before processing
7551         the pointer that points to the subobject.
7552
7553 2003-08-13  Per Bothner  <pbothner@apple.com>
7554
7555         * regclass.c (init_reg_modes):  Make non-static.
7556         Rename to init_reg_modes_once per new naming convention.
7557         (init_regs):  Don't call init_reg_modes here.
7558         * emit-rtl.c (init_emit_once):  Call init_reg_modes_once here instead.
7559         * rtl.h (init_reg_modes_once):  New declaration.
7560         * toplev.c (backend_init):  Call init_regs after init_emit_once.
7561
7562 2003-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
7563
7564         * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
7565         special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
7566
7567 2003-08-13  J"orn Rennecke <joern.rennecke@superh.com>
7568
7569         * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
7570         * sh.md (load_ra): Change insn predicate to TARGET_SH1.
7571
7572 2003-08-13  Dale Johannesen  <dalej@apple.com>
7573
7574         * config/rs6000/rs6000.md (ctrsi, ctrdi):  Reenable
7575         handling of decrement-and-branch farther than 32 bits.
7576
7577 2003-08-12  Kelley Cook  <kelleycook@wideopenwest.com>
7578
7579         * configure.in (make_compare_target): Move test to ...
7580         * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
7581         * configure: Regenerate.
7582
7583 2003-08-12  Richard Sandiford  <rsandifo@redhat.com>
7584
7585         * config/mips/iris6.h: Convert to C90 prototypes.
7586         * config/mips/irix6-libc-compat.c: Likewise.
7587         * config/mips/mips-protos.h: Likewise.
7588         * config/mips/mips.c: Likewise.
7589
7590 2003-08-12  Nathanael Nerode  <neroden@gcc.gnu.org>
7591
7592         fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel.  Enable
7593         for selected machines.  Comment heavily.
7594         fixinc/fixincl.x: Rebuild.
7595         fixinc/tests/base/fs/rfs/rf_cache.h: New file.
7596
7597 2003-08-12  Richard Sandiford  <rsandifo@redhat.com>
7598
7599         * config/mips/mips.h: Tweak various comments.
7600         * config/mips/mips.c: Likewise.
7601
7602 2003-08-11  James E Wilson  <wilson@tuliptree.org>
7603
7604         PR optimization/11319
7605         PR target/10021
7606         * alias.c (find_base_value, case REG): Return 0 not src if no base
7607         found.
7608
7609 2003-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7610
7611         * gcse.c (gmalloc): Fix last change.
7612
7613 2003-08-11  Roger Sayle  <roger@eyesopen.com>
7614
7615         * simplify-rtx.c (simplify_binary_operation): Replace calls to
7616         gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
7617         and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
7618         gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
7619
7620 2003-08-11  Roger Sayle  <roger@eyesopen.com>
7621
7622         * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
7623         * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
7624         typecode for an ABS_EXPR.
7625
7626         * doc/c-tree.texi: Document ABS_EXPR.
7627
7628 2003-08-11  Roger Sayle  <roger@eyesopen.com>
7629
7630         * fold-const.c (fold): Optimize any associative floating point
7631         operator with -funsafe-math-optimizations, not just MULT_EXPR.
7632
7633 2003-08-11  Kaz Kojima  <kkojima@gcc.gnu.org>
7634
7635         * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
7636         information in SHmedia case too.
7637         (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
7638         Likewise.
7639         (__set_fpscr): Use an access via GOT for PIC case.
7640
7641 2003-08-11  Kelley Cook  <kelleycook@wideopenwest.com>
7642
7643         * configure.in (intermodule): Make switch test more portable.
7644         * configure: Regenerate.
7645
7646 2003-08-11  Kelley Cook  <kelleycook@wideopenwest.com>
7647
7648         * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
7649         (restrap): Likewise.
7650
7651 2003-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7652
7653         * gcse.c (gmalloc): Argument is a size_t.  Add ATTRIBUTE_MALLOC.
7654         (grealloc): Size argument is a size_t.
7655         (gcalloc): New function.  Use throughout in lieu of
7656         gmalloc/memset.
7657
7658         * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
7659         xmalloc/memset.
7660         * config/ia64/ia64.c (ia64_reorg): Likewise.
7661         * conflict.c (conflict_graph_new): Likewise.
7662         * fixinc/fixincl.c (run_compiles): Likewise.
7663         * genattrtab.c (optimize_attrs): Likewise.
7664         * genrecog.c (new_decision): Likewise.
7665         * haifa-sched.c (schedule_block): Likewise.
7666         * hashtable.c (ht_create): Likewise.
7667
7668 2003-08-11  Bob Wilson  <bob.wilson@acm.org>
7669
7670         * config/xtensa/lib2funcs.S: Fix whitespace.
7671         * config/xtensa/xtensa.md (all insns and expanders): Use brace block
7672         syntax where appropriate.  Remove unnecessary backslash escapes.
7673         Reformat comments and fix some code formatting.
7674         (extendqisi2): Rearrange conditional.
7675         (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
7676         *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
7677         of fatal_insn.
7678
7679 2003-08-11  Richard Sandiford  <rsandifo@redhat.com>
7680
7681         * config/mips/mips.c: Various formatting fixes.
7682         (override_options): Resync -mtune handling with gas.
7683         (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
7684         * config/mips/mips.h: More formatting fixes.
7685         (mips_abi): Move declaration.
7686         * config/mips/mips.md (exception_receiver): Add mode to
7687         unspec_volatile.
7688
7689 2003-08-11  Aldy Hernandez  <aldyh@redhat.com>
7690
7691         * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
7692         evsplatfi here.
7693         (bdesc_1arg): Remove evsplati and evsplatfi.
7694
7695 2003-08-11  J"orn Rennecke <joern.rennecke@superh.com>
7696
7697         * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
7698         into account.
7699
7700 2003-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7701
7702         * builtins.c (expand_builtin_strcat): Optimize constant strings.
7703
7704 2003-08-10  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7705
7706         * pretty-print.c (pp_base_indent): Rename from pp_indent.
7707         * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
7708         (struct c_pretty_print_info): Add more fields.
7709         (pp_c_left_paren): Move to c-pretty-print.c.
7710         (pp_c_right_paren): Likewise.
7711         (pp_c_left_brace): Likewise.
7712         (pp_c_right_brace): Likewise.
7713         (pp_c_left_bracket): Likewise.
7714         (pp_c_right_bracket): Likewise.
7715         (pp_c_declarator): Declare.
7716         (pp_c_direct_declarator): Likewise.
7717         (pp_c_specifier_qualifier_list): Likewise.
7718         (pp_c_type_id): Likewise.
7719         * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
7720         (pp_c_type_qualifier_list): New.
7721         (pp_c_pointer): Likewise.
7722         (pp_c_parameter_type_list): Likewise.
7723         (pp_c_function_definition): Likewise.
7724         (pp_c_id_expression): Likewise.
7725         (pp_c_simple_type_specifier): Tidy.
7726         (pp_c_unary_expression): Likewise.
7727         (pp_c_expression): Likewise.
7728         (pp_c_pretty_printer_init): Likewise.
7729         (pp_c_specifier_qualifier_list): Rework..
7730         (pp_c_abstract_declarator): Likewise.
7731         (pp_c_postfix_expression): Likewise.
7732         (pp_c_primary_expression): Likewise.
7733         (pp_c_cast_expression): Likewise.
7734         (pp_c_direct_abstract_declarator): Likewise.
7735         (pp_c_storage_class_specifier): Likewise.
7736         (pp_c_function_specifier): Likewise.
7737         (pp_c_declaration_specifiers): Likewise.
7738         (pp_c_direct_declarator): Likewise.
7739         (pp_c_declarator): Likewise.
7740         (pp_c_declaration): Likewise.
7741         (pp_c_statement): Likewise.
7742         (pp_c_integer_constant): Rename from pp_c_integer_literal.
7743         (pp_c_character_constant): Rename from pp_c_character_literal.
7744         (pp_c_bool_constant): Rename from pp_c_bool_literal.
7745         (pp_c_enumeration_constant): Rename from pp_c_enumerator.
7746         (pp_c_floating_constant): Rename from pp_c_real_literal.
7747         (pp_c_constant): Rename from pp_c_literal.
7748         * c-lang.c: Include diagnostic.h and c-pretty-print.h
7749         (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
7750         (c_initialize_diagnostics): New.
7751         * Makefile.in (c-lang.o): Update dependency.
7752
7753 2003-08-10  Nathan Sidwell  <nathan@codesourcery.com>
7754
7755         * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
7756
7757 2003-08-10  Richard Sandiford  <rsandifo@redhat.com>
7758
7759         * config/mips/mips.c (mips_no_mips16_string): Remove.
7760         (override_options): Don't handle -mips16 as part of -mipsN.
7761         * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
7762         (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
7763         (TARGET_OPTIONS): Remove -mno-mips16.
7764
7765 2003-08-10  Richard Sandiford  <rsandifo@redhat.com>
7766
7767         * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
7768         (coprocessor2_operand): Likewise.
7769         * config/mips/mips.c (STAB_CODE_TYPE): Remove.
7770         (lookup_name): Remove declaration.
7771         (abort_with_insn): Remove.  Replace all uses with fatal_insn.
7772         (mips16, mips_abicalls): Remove.
7773         (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
7774         (arith32_operand, large_int, true_reg_or_0_operand): Remove.
7775         (coprocessor_operand, coprocessor2_operand): Remove.
7776         (override_options): Don't set mips16 or mips_abicalls.
7777         (print_operand): Don't expect SIGN_EXTEND operands.
7778         (mips_secondary_reload_class): Likewise.
7779         (mips_output_conditional_branch): Remove disabled long-branch code.
7780         * config/mips/mips.h (call_used_regs): Remove declaration.
7781         (may_call_alloca): Likewise.
7782         (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
7783         (mips_abicalls, mips16): Remove declarations.
7784         (ASM_FINAL_SPEC, LIB_SPEC): Remove.
7785         (CC1_SPEC): Remove outdated comment.
7786         (MIPS_VERSION, MACHINE_TYPE): Remove.
7787         (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7788         (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
7789         (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
7790         (PUSH_ROUNDING): Likewise.
7791         (ASSEMBLER_SCRATCH_REGNUM): Remove.
7792         * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
7793         and mips16 with TARGET_MIPS16.
7794
7795 2003-08-09  Per Bothner  <pbothner@apple.com>
7796
7797         * cppinit.c (cpp_read_main_file):  Split out source-independent
7798         initialization to separate function ...
7799         (cpp_post_options):  New function.
7800         * cppfiles.c (cpp_stack_file):  Rename public name to ...
7801         (_cpp_stack_file):  New internal function name.
7802         * cpplib.h:  Update accordingly.
7803         * cppinit.c:  (cpp_create_reader):  Initialize cpp_readers line here.
7804         (cpp_read_main_file):  Don't initialize line here.
7805         * c-opts.c (c_common_post_options):  Call cpp_post_options.
7806         (c_common_parse_file):  Call cpp_read_main_file, not cpp_stack_file.
7807         * fix-header.c (read_scan_file):  Call cpp_post_options.
7808
7809 2003-08-09  Per Bothner  <per@bothner.com>
7810
7811         * c-decl.c (SCOPE_LIST_APPEND):  Remove bogus line continuation.
7812
7813 2003-08-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7814
7815         * pa.c (pa_asm_output_mi_thunk): Fix typo.
7816
7817 2003-08-09  Neil Booth  <neil@daikokuya.co.uk>
7818
7819         PR preprocessor/11839
7820         * cppfiles.c (open_file): Handle ENOTDIR.
7821
7822 2003-08-09  Richard Sandiford  <rsandifo@redhat.com>
7823
7824         PR target/11699
7825         * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
7826
7827 2003-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7828
7829         * pa.md (extzv, extv, insv): Fix operand limit checks.  Fail if
7830         source/destination is not a register operand.
7831
7832 2003-08-08  Richard Henderson  <rth@redhat.com>
7833
7834         PR target/11535
7835         * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
7836         RETURN_ADDRESS_POINTER_REGNUM.
7837         (ia64_expand_prologue): Don't frob it.
7838         (ia64_output_function_epilogue): Likewise.
7839         (ia64_return_addr_rtx): New.
7840         (ia64_split_return_addr_rtx): New.
7841         * config/ia64/ia64-protos.h: Update.
7842         * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
7843         (RETURN_ADDRESS_POINTER_REGNUM): Remove.
7844         (GENERAL_REGNO_P): Don't check it.
7845         (AR_*_REGNUM): Renumber.
7846         (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
7847         (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
7848         (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
7849         (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
7850         (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
7851         * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
7852         (movdi_ret_addr): New.
7853
7854 2003-08-08  Geoffrey Keating  <geoffk@apple.com>
7855
7856         * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
7857
7858 2003-08-08  Roger Sayle  <roger@eyesopen.com>
7859
7860         * tree.h (get_identifier) Define a macro form of get_identifier
7861         that calls get_identifier_with_length when the string is constant.
7862         (get_identifier_with_length): Change type of second argument to
7863         size_t in prototype.
7864         * stringpool.c (get_identifier): Undefine the macro before giving
7865         the function definition.
7866         (get_identifier_with_length): Change  type of second argument to
7867         size_t in function definition.
7868         * hashtable.c (calc_hash): Change type of second argument to size_t.
7869         (ht_lookup): Change type of third argument to size_t.  Reorganize
7870         to speed-up the cases where the hash table slot is empty, or the
7871         first probe matches (i.e. there isn't a collision).
7872         * hashtable.h (ht_lookup): Adjust function prototype.
7873
7874 2003-08-08  Bernardo Innocenti  <bernie@develer.com>
7875
7876         PR target/9697
7877         PR target/11777
7878         * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
7879
7880 2003-08-08  Neil Booth  <neil@daikokuya.co.uk>
7881
7882         * common.opt: Add debug switches.
7883         * flags.h (use_gnu_debug_info_extensions): Boolify.
7884         * opts.c (write_symbols, debug_info_level,
7885         use_gnu_debug_info_extensions): Move from toplev.c.
7886         (set_debug_level): New.
7887         (common_handle_options): Handle debug switches.
7888         (print_help): Display target options directly.
7889         * toplev.c (debug_hooks): Don't initialize.
7890         (write_symbols, debug_info_level,
7891         use_gnu_debug_info_extensions): Move to opts.c.
7892         (debug_args, display_help, decode_g_option): Remove.
7893         (process_options): Set no debug if level zero here,
7894         and no-debug-hooks.  Error here if impossible debug format selected.
7895         * toplev.h (display_help, decode_g_option): Remove.
7896
7897 2003-08-08  Richard Sandiford  <rsandifo@redhat.com>
7898
7899         * tree.c (get_file_function_name_long): Fix size of alloca() area.
7900
7901 2003-08-08  Kelley Cook  <kelleycook@wideopenwest.com>
7902
7903         * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
7904         and gcc_cv_prog_cmp_skip.
7905         * configure: Regenerate.
7906
7907 2003-08-08  Stan Cox  <scox@redhat.com>
7908
7909         * config/iq2000: New port.
7910         * config.gcc (iq2000-*-elf): Added.
7911         * doc/install.texi (Specific):  Add iq2000 description.
7912
7913 2003-08-08  Andreas Schwab  <schwab@suse.de>
7914
7915         * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
7916         and insert missing empty argument.
7917         * configure: Regenerate.
7918
7919 2003-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7920
7921         * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
7922         (attr_length_millicode_call): Likewise.
7923         (attr_length_call): Likewise.  Revise some maximum insn lengths.
7924         (attr_length_indirect_call): Likewise.
7925         (output_call): Fix thinko that added extra nop.
7926         * pa.h (IN_NAMED_SECTION_P): Define.
7927
7928         PR c++/11712
7929         * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
7930         __STDC_EXT__ when using C++ dialect.
7931
7932 2003-08-07  J"orn Rennecke <joern.rennecke@superh.com>
7933
7934         * sh.c (calc_live_regs): If the return address pointer is live,
7935         force pr live.
7936         (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
7937         for saves / restores.
7938         (sh_expand_epilogue): If sh_media_register_for_return returns a
7939         register number, flag the instructions that restores PR_MEDIA_REG
7940         as possibly dead.
7941         Remove dead update of offset.
7942         (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
7943         we can use the result of get_hard_reg_initial_val.
7944         * sh.md (UNSPEC_RA): New constant.
7945         (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
7946         (load_ra).  Handle UNSPEC_RA.
7947         (sibcall_media): Use PR_MEDIA_REG.
7948
7949         * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
7950         * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
7951         needs saving on SHmedia.
7952
7953 2003-08-07  Ulrich Weigand  <uweigand@de.ibm.com>
7954
7955         * config/s390/s390.md: Replace all occurrences of \\t with \t.
7956
7957 2003-08-07  Richard Sandiford  <rsandifo@redhat.com>
7958
7959         * local-alloc.c (combine_regs): Fix comment typo.
7960
7961 2003-08-06  Zack Weinberg  <zack@codesourcery.com>
7962
7963         * c-decl.c (builtin_decls): Replace with first_builtin_decl
7964         and last_builtin_decl.
7965         (c_init_decl_processing): Initialize both.
7966         (c_reset_state): Iterate from first_builtin_decl to
7967         last_builtin_decl inclusive to reintroduce builtins.
7968
7969 2003-08-06  David Mosberger  <davidm@hpl.hp.com>
7970
7971         * doc/extend.texi (Function Attributes): Document the IA-64 version
7972         of the "model" attribute.
7973
7974         * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
7975         (SYMBOL_REF_SMALL_ADDR_P): Ditto.
7976         (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
7977
7978         * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
7979         (ia64_encode_section_info): Likewise.
7980         (ia64_attribute_table): Add "model" attribute.
7981         (TARGET_ENCODE_SECTION_INFO): Define.
7982         (small_addr_symbolic_operand): New function.
7983         (got_symbolic_operand): Return 0 for a symbolref to an object
7984         in the small address area.
7985         (enum ia64_addr_area): New type.
7986         (small_ident1): New variable.
7987         (small_ident2): Likewise.
7988         (init_idents): New function.
7989         (ia64_get_addr_area): Likewise.
7990         (ia64_encode_addr_area): Likewise.
7991         (ia64_encode_section_info): Likewise.
7992         (ia64_expand_load_address): For symbolic references to objects in
7993         the small-address-area, load the address via gen_rtx_SET() (which,
7994         eventually, will expand into "addl").
7995
7996 2003-08-06  Per Bothner  <pbothner@apple.com>
7997
7998         * line-map.h (fileline):  New typedef.
7999         (struct line_map, linemap_add, linemap_lookup):  Use it.
8000         * input.h (struct location_s):  Comment notes that long-term we want
8001         to replace it by fileline.
8002
8003 2003-08-06  J"orn Rennecke <joern.rennecke@superh.com>
8004
8005         Fix SHcompact exception handling:
8006         * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
8007         by the prologue, return a MEM with return_address_pointer_rtx
8008         as address.
8009         * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
8010         (RETURN_ADDR_OFFSET): Don't define.
8011         (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
8012         registers that are visible in compact mode.  Show that SHmedia
8013         registers still exist in compact mode, even if there are not
8014         readily accessible.
8015         (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
8016         if GLOBAL.  Use DW_EH_PE_textrel (nominally) for CODE,
8017         and DW_EH_PE_pcrel for pic data.
8018         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
8019         set SYMBOL_FLAG_FUNCTION in symbol, and actually use
8020         DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
8021         (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
8022         * sh.md (movsi_media-1): New splitter.
8023
8024 2003-08-06  Graeme Peterson <gp@qnx.com>
8025
8026         * config/i386/nto.h: New.
8027         * config/i386/t-nto: New.
8028         * config.gcc (i[34567]86-*-nto-qnx*): New.
8029
8030 2003-08-06  Phil Edwards  <pme@gcc.gnu.org>
8031
8032         * doc/install.texi (*-*-solaris2*):  Refine configure instructions.
8033
8034 2003-08-06  Alan Modra  <amodra@bigpond.net.au>
8035
8036         * calls.c (load_register_parameters): Arrange for call_fusage to
8037         report the whole register as used when shifting to the msb.
8038
8039 2003-08-05  Roger Sayle  <roger@eyesopen.com>
8040
8041         * builtins.c (expand_builtin): When not optimizing, call the library
8042         function for all builtins that have library functions (except alloca).
8043
8044 2003-08-05  Alexandre Oliva  <aoliva@redhat.com>
8045
8046         * c.opt: Introduce -fworking-directory.
8047         * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
8048         * c-common.h (flag_working_directory): Declare.
8049         * c-common.c (flag_working_directory): Define.
8050         * c-opts.c (c_common_handle_options): Set it.
8051         (sanitize_cpp_opts): Set...
8052         * cpplib.h (struct cpp_options): ... working_directory option.
8053         (struct cpp_callbacks): Add dir_change.
8054         * cppinit.c (read_original_filename): Call...
8055         (read_original_directory): New.  Look for # 1 "directory//"
8056         and process it.
8057         (cpp_read_main_file): Call dir_change callback if working_directory
8058         option is set.
8059         * gcc.c (cpp_unique_options): Pass -g*.
8060         * c-lex.c (cb_dir_change): New.
8061         (init_c_lex): Set dir_change callback.
8062         * toplev.c (src_pwd): New static variable.
8063         (set_src_pwd, get_src_pwd): New functions.
8064         * toplev.h (get_src_pwd, set_src_pwd): Declare.
8065         * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
8066         * dwarf2out.c (gen_compile_unit_die): Likewise.
8067         * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
8068
8069 2003-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8070
8071         * pretty-print.h (pp_set_line_maximum_length): Make macro.
8072         (pp_set_prefix): Likewise.
8073         (pp_destroy_prefix): Likewise.
8074         (pp_remaining_character_count_for_line): Likewise.
8075         (pp_clear_output_area): Likewise.
8076         (pp_formatted_text): Likewise.
8077         (pp_last_position_in_text): Likewise.
8078         (pp_emit_prefix): Likewise.
8079         (pp_append_text): Likewise.
8080         (pp_flush): Likewise.
8081         (pp_format_text): Likewise.
8082         (pp_format_verbatim): Likewise.
8083         (pp_tree_identifier): Tidy.
8084         * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
8085         (pp_base_format_verbatim): Rename from pp_format_verbatim.
8086         (pp_base_flush): Rename from pp_flush.
8087         (pp_base_set_line_maximum_length): Rename from
8088         pp_set_line_maximum_length.
8089         (pp_base_clear_output_area): Rename from pp_clear_output_area.
8090         (pp_base_set_prefix): Rename from pp_set_prefix.
8091         (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
8092         (pp_base_emit_prefix): Rename from pp_emit_prefix.
8093         (pp_base_append_text): Rename from pp_append_text.
8094         (pp_base_formatted_text): Rename from pp_formatted_text.
8095         (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
8096         (pp_base_remaining_character_count_for_line): Rename from
8097         pp_remaining_character_count_for_line.
8098         * diagnostic.h (diagnostic_format_decoder): Tidy.
8099         (diagnostic_flush_buffer): Likewise.
8100         * c-pretty-print.h: (pp_c_string_literal): Declare.
8101         (pp_c_real_literal): Likewise.
8102         (pp_c_integer_literal): Likewise.
8103         * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
8104         pp_identifier.
8105         (pp_c_character_literal): Tidy.
8106         (pp_c_string_literal): Make public.
8107         (pp_c_bool_literal): Likewise.
8108         (pp_c_integer_literal): Likewise.
8109         (pp_c_real_literal): Likewise.
8110
8111         * Makefile.in (C_PRETTY_PRINT_H): New variable.
8112         (c-pretty-print.o): Update dependence.
8113
8114 2003-08-05  Chris Demetriou  <cgd@broadcom.com>
8115
8116         * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
8117         ".set nomacro" state.
8118         (fix_truncsfsi2_macro): Likewise.
8119
8120 2003-08-05  Steven Bosscher  <steven@gcc.gnu.org>
8121
8122         * tree.h (DID_INLINE_FUNC): Remove macro.
8123         (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
8124         add tree check for FUNCTION_DECL.
8125         (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
8126         (struct tree_decl): Rename inlined_function_flag to
8127         declared_inline_flag.
8128         * c-common.h (c_lang_decl): Remove.
8129         (DECL_ESTIMATED_INSNS): Remove.
8130         * c-tree.h (struct lang_decl): Don't include c_lang_decl.
8131         (DECL_DECLARED_INLINE_P): Remove.
8132         * c-decl.c (grokdeclarator): Update comment.  With -finline-functions,
8133         do not reset DECL_DECLARED_INLINE_P.  Don't use DID_INLINE_FUNC.
8134         (finish_function): Make uninlinable a bool.  Fixup call to
8135         tree_inlinable_function_p() and fix some code style issues.
8136         * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
8137         * cgraph.c (dump_cgraph): Likewise.
8138         * cgraphunit.c (cgraph_decide_inlining): Likewise
8139         (cgraph_finalize_compilation_unit): Likewise.
8140         Also update call to tree_inlinable_function_p().
8141         (cgraph_default_inline_p): Don't use DID_INLINE_FUNC.  Instead
8142         look at DECL_DECLARED_INLINE and reverse logic.
8143         * print-tree.c (print_node): Likewise.
8144         * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
8145         * tree-inline.h (tree_inlinable_function_p): Make a bool.  Update
8146         prototype.
8147         * tree-inline.c (inlinable_function_p): Split up in this function to
8148         check for basic inlining inhibiting conditions, and new
8149         limits_allow_inlining() function.  Warn if inlining is impossible
8150         because the inline candidate calls alloca or uses sjlj exceptions.
8151         (limits_allow_inlining): this new function to check if the inlining
8152         limits are satisfied.  Throttle from currfn_max_inline_insns, not from
8153         MAX_INLINE_INSNS_SINGLE.  The latter only makes sense if
8154         MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
8155         Update prototypes.
8156         (tree_inlinable_function_p): Make a bool.  Update call to
8157         inlinable_function_p
8158         (expand_call_inline): Use limits_allow_inlining() when not in
8159         unit-at-a-time mode to decide on inlining.  Don't use DID_INLINE_FUNC,
8160         instead see if the function was declared `inline'.
8161
8162 2003-08-05  Josef Zlomek  <zlomekj@suse.cz>
8163
8164         * gcse.c (try_replace_reg): Fix updating of note.
8165
8166 2003-08-04  Roger Sayle  <roger@eyesopen.com>
8167
8168         PR middle-end/11771
8169         * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
8170         logic in negate_expr, i.e. we don't invert (A-B) for floating
8171         point types unless flag_unsafe_math_optimizations.
8172
8173 2003-08-04  Roger Sayle  <roger@eyesopen.com>
8174
8175         * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
8176         Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
8177         for floating point expressions with -ffast-math.
8178         (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
8179         * expmed.c (expand_mult): Wrap long line.  Expand x*2.0 as x+x.
8180
8181 2003-08-04  Roger Sayle  <roger@eyesopen.com>
8182
8183         * c-common.c (flag_noniso_default_format_attributes): Delete.
8184         (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
8185         (c_attrs_initialized): Delete.
8186         (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
8187         always call c_init_attributes.
8188         (c_init_attributes): Don't define/undefine DEF_FN_ATTR.  Don't
8189         set c_attrs_initialized when done.
8190         (c_common_insert_default_attributes): Delete.
8191         * c-common.h (flag_noniso_default_format_attributes): Delete.
8192         (c_coomon_insert_default_attributes): Delete prototype.
8193         * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
8194         flag_noniso_default_format_attributes.
8195
8196         * c-decl.c (c_insert_default_attributes): Delete.
8197         * c-tree.h (c_insert_default_attributes): Delete prototype.
8198
8199         * attribs.c (decl_attributes): Don't call insert_default_attributes
8200         langhook.  Update function description comment.
8201         * langhooks.h (lang_hooks): Remove insert_default_attributes field.
8202         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
8203         * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
8204         * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
8205
8206         * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
8207         define.
8208
8209 2003-08-04  Richard Sandiford  <rsandif@redhat.com>
8210
8211         * config/mips/mips.c (override_options): Disable -G on targets that
8212         have no .section support.
8213         (mips_select_section): Use default_select_section for such targets.
8214
8215 2003-08-04  Nathanael Nerode  <neroden@gcc.gnu.org>
8216
8217         * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
8218         * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
8219         * fixinc/fixincl.x: Rebuild.
8220         * fixinc/tests/base/regexp.h: New test.
8221
8222 2003-08-04  Alexandre Oliva  <aoliva@redhat.com>
8223
8224         * c-ppoutput.c (cb_line_change): Don't skip line changing while
8225         parsing macro arguments in the top-level context.
8226
8227 2003-08-04  Neil Booth  <neil@daikokuya.co.uk>
8228
8229         * config.in: Remove HAVE_LSTAT.
8230         * configure, configure.in: Don't test for lstat.
8231
8232 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8233
8234         * opts.c (decode_options): Do language-specific initialization for
8235         the global diagnostic context.
8236         * langhooks-def.h (lhd_initialize_diagnostics): Declare.
8237         (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
8238         (LANG_HOOKS_INITIALIZER): Adjust.
8239         * langhooks.h (struct lang_hooks): Add new field
8240         initialize_diagnostics.
8241         * langhooks.c (lhd_initialize_diagnostics): Define.
8242
8243 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8244
8245         * pretty-print.h:   Adjust macro definitions.
8246         * pretty-print.c (pp_newline): Rename to pp_base_newline.
8247         (pp_character): Rename to pp_base_character.
8248         (pp_string): Rename to pp_base_string.
8249         * c-pretty-print.c (pp_buffer): Move to pretty-print.h
8250         (pp_newline):  Likewise.  Adjust.
8251         (pp_c_char): Adjust.
8252
8253 2003-08-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8254
8255         * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
8256         BUILT_IN_LLABS): Move to miscellaneous section.
8257
8258 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
8259
8260         PR preprocessor/11534
8261         * cppexp.c (parse_defined): Warn only if -pedantic.
8262
8263 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
8264
8265         * cppfiles.c (stack_file): Use file path.
8266
8267 2003-08-02  Roger Sayle  <roger@eyesopen.com>
8268
8269         * builtin-types.def (BT_SSIZE): New primitive type.
8270         (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
8271         BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
8272         BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
8273         BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
8274         * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
8275         BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
8276         BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
8277         * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
8278         few functions that define default attributes using it.
8279         * c-common.c (c_common_insert_default_attributes): Do nothing.
8280
8281         * doc/extend.texi: Document these "new" builtins.
8282
8283 2003-08-02  Kaz Kojima  <kkojima@gcc.gnu.org>
8284
8285         * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
8286         (LIB_SPEC): Set -lpthread always when -pthread set.  Set -lieee
8287         when -mieee-fp set and -shared not set.
8288         (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
8289
8290 2003-08-02  Neil Booth  <neil@daikokuya.co.uk>
8291
8292         * cppfiles.c (struct _cpp_file): Rename once_only_next to
8293         next_file.  Remove import and pragma_once, add once_only.
8294         (find_file): Add new file structures to the all_files list.
8295         (should_stack_file): Mark #import-ed files once-only, and
8296         don't stack them if the file has already been stacked.
8297         (_cp_mark_file_once_only): Simplify.
8298         * cpphash.h (struct cpp_reader): Rename once_only_files
8299         to all_files.  Rename saw_pragma_once to seen_once_only.
8300         (_cpp_mark_file_once_only): Update prototype.
8301         * cpplib.c (do_pragma_once): Update.
8302
8303 2003-08-02  Neil Booth  <neil@daikokuya.co.uk>
8304
8305         * cppfiles.c (ENOTDIR): Remove.
8306         (open_file_in_dir): Rename find_file_in_dir.  Handle errors
8307         other than ENOENT here.
8308         (once_only_file_p): Rename should_stack_file.
8309         (find_file, open_file_failed, read_file_guts): Report errors
8310         with full path name.
8311         (read_file): Move pch handling to should_stack_file.
8312         (should_stack_file): Handle PCH and once-only issues, and
8313         reading the file.
8314         (stack_file): Don't do file reads.
8315
8316 2003-08-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8317
8318         * libgcov.c (gcov_exit): Cleanup and fix.
8319         * profile.c (compute_value_histograms): Don't try to read profiles
8320         that are not present.
8321
8322 2003-08-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8323
8324         * builtins.def: Categorize.
8325
8326         * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
8327         Mind fp rounding.
8328         (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
8329
8330 2003-08-02  Andreas Tobler  <a.tobler@schweiz.ch>
8331
8332         * config.gcc: Enable posix threads by default on darwin.
8333
8334 2003-08-01  Jakub Jelinek  <jakub@redhat.com>
8335
8336         * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
8337         even if nehedges1 is 0.
8338
8339 2003-08-01  Nathanael Nerode  <neroden@gcc.gnu.org>
8340
8341         * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
8342         fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
8343         fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
8344         and defintions.
8345
8346         * fixinc/inclhack.def (broken_cabs): Make matching more generous.
8347         * fixinc/fixincl.x: Regenerate.
8348         * fixinc/tests/base/math.h: Regenerate to match test_text change.
8349
8350 2003-08-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8351
8352         * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
8353
8354 2003-08-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8355
8356         * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
8357         for accesses to exc_ptr.
8358
8359 2003-08-01  Geoffrey Keating  <geoffk@apple.com>
8360
8361         * doc/sourcebuild.texi (Front End Directory): Don't make references
8362         to libsubdir, it's not part of the interface to frontends.
8363         * doc/install.texi (Configuration): Help users read faster by saying
8364         that GCC's configure options are the standard autoconf ones.
8365         Mention --libdir.  Update the default rules for finding the
8366         assembler.  Don't use libsubdir since we haven't said what it means.
8367         (Specific): In the Solaris 7 notes, update the place to put the
8368         assembler.
8369         * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
8370         * doc/cpp.texi (Search Path): Actually, the search path
8371         depends on libdir, which can relocate with cpp.
8372         * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
8373         now a private interface between the Makefile and the driver.
8374
8375 2003-08-01  Richard Henderson  <rth@redhat.com>
8376
8377         * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
8378
8379         * varasm.c (lookup_constant_def): New function.
8380         * rtl.h (lookup_constant_def): Declare it.
8381         * dwarf2out.c (loc_descriptor_from_tree): Use it.
8382         Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
8383
8384 2003-08-01  Zack Weinberg  <zack@codesourcery.com>
8385
8386         * c-decl.c (gettags, pushdecl_function_level): Delete.
8387         (last_function_parm_vars): Rename last_function_parm_others.
8388         (current_function_parm_vars): Rename current_function_parm_others.
8389         (struct c_scope): Rewrite comment explaining this data structure.
8390         Add names_last, blocks_last, parms_last fields.  Rename
8391         incomplete_list to incomplete.
8392         (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
8393         (poplevel): Ignore second argument.  No need to nreverse
8394         anything.  Restructure such that each list is processed
8395         exactly once.  Use 'const location_t *locus' syntactic sugar
8396         variable where useful.  Issue unused variable warnings
8397         ourselves, do not rely on function.c.
8398         (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
8399         (pushdecl_top_level): Likewise.  Don't call duplicate_decls.
8400         (implicitly_declare): decl cannot be error_mark_node.
8401         (undeclared_variable): Manipulate scope structure directly.
8402         (c_make_fname_decl): Likewise.
8403         (getdecls, c_init_decl_processing): Fix comment.
8404         (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT.  No need
8405         for 'last' variable.
8406         (grokparms): No need to nreverse parms list.
8407         (store_parm_decls_newstyle): Set up the parms_last and
8408         names_last fields of the new scope too.
8409         (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
8410         on parms to begin with; check this under ENABLE_CHECKING.  Set
8411         up parms_last.
8412         (check_for_loop_decls): Refer directly to current_scope->tags.
8413         Use consistent quote style in diagnostics.
8414         (c_write_global_declarations): The names list is not backward.
8415
8416         * c-common.h: Don't prototype gettags.
8417         * c-parse.in: Call poplevel with second argument 0 always.
8418
8419 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8420
8421         * builtins.def: Resort builtins.
8422
8423 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8424
8425         * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
8426         DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
8427         Prepend "__builtin_" onto NAME with string concatenation.  Remove
8428         explicit "__builtin_" from each macro call.
8429
8430         Reformat entire file.
8431
8432 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8433
8434         * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
8435         ATTR_MATHFN_FPROUNDING_ERRNO): New macros.  Use throughout.
8436
8437 2003-08-01  Andreas Krebbel  <krebbel1@de.ibm.com>
8438
8439         * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
8440         CCL1, or CCL2 modes with floating point operations.
8441
8442         * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
8443         "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
8444         "*subdf3_cconly"): New insns.
8445         ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
8446
8447 2003-08-01  Neil Booth  <neil@daikokuya.co.uk>
8448
8449         * Makefile.in: Refine dependencies.
8450         * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
8451         * c.opt: Update help for -Wimport.
8452         * cppfiles.c: Include hashtab.h.  Update comments.
8453         (stack_file): Read the file before updating dependencies.
8454         (once_only_file_p): Be smarter about marking once-only files.
8455         (_cpp_mark_file_once_only): Correct the check for existence on
8456         the list.
8457         (open_file_failed): Use name not path, which is NULL.
8458         * cpphash.h: Don't include hashtab.h.
8459         (struct _cpp_file): Remove.
8460         (struct cpp_reader): Update.
8461         * cppinit.c (cpp_create_reader): Don't initialize warn_import.
8462         * cpplib.h (struct cpp_options): Remove warn_import.
8463         (cpp_simplify_path): Remove.
8464
8465 2003-08-01  Nathan Sidwell  <nathan@codesourcery.com>
8466
8467         PR c++/11295
8468         * doc/extend.texi (Statement Expressions): Document C++ semantics.
8469
8470 2003-07-31  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
8471
8472         * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
8473
8474 2003-07-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8475
8476         * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
8477         throughout.
8478         * builtins.def: Likewise.
8479
8480 2003-07-31  Jason Merrill  <jason@redhat.com>
8481
8482         * Makefile.in (bubblestrap): Don't require a previous full
8483         bootstrap.
8484
8485         * expr.c (mostly_zeros_p): No longer static.
8486         * tree.h: Declare it.
8487         * stmt.c (resolve_asm_operand_names): Don't copy the pattern
8488         unless we need to do substitutions.
8489
8490 2003-07-31  Roger Sayle  <roger@eyesopen.com>
8491
8492         * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
8493         pow(x,c)*x as pow(x,c+1) for constant values c.  Optimize x*x
8494         as pow(x,2.0) when the latter will be expanded back into x*x.
8495         (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
8496         * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
8497         pow can never set errno when used with an integer exponent.
8498         Always use expand_powi when exponent is -1, 0, 1 or 2.
8499         (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
8500         as 1.0/(x*x).  This avoids unbounded recursion as we now prefer
8501         the pow forms of these expressions.
8502
8503 2003-07-31  Geoffrey Keating  <geoffk@apple.com>
8504
8505         * Makefile.in (libexecdir): New.
8506         (libsubdir): Use gcc instead of gcc-lib.
8507         (libexecsubdir): New.
8508         (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
8509         (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
8510         gcc-lib.
8511         (installdirs): Make libexecsubdir.
8512         (install-common): Put executables in libexecsubdir.
8513         (itoolsdir): Use libexecsubdir.
8514         (itoolsdatadir): New.
8515         (install-mkheaders): Separate data files and executables.
8516         (install-collect2): Put executables in libexecsubdir.
8517         (uninstall): Remove libexecsubdir.
8518         * mkheaders.in: Update for new arrangement of files.
8519         (libexecdir): New.
8520         (libexecsubdir): New.
8521         (itoolsdir): Use libexecsubdir.
8522         (itoolsdatadir): New.
8523         * gcc.c (gcc_libexec_prefix): New.
8524         (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
8525         (standard_exec_prefix_1): Use libexec.
8526         (standard_exec_prefix_2): New.
8527         (standard_libexec_prefix): New.
8528         (process_command): Update for new arrangement of files.  Compute
8529         gcc_libexec_prefix.  Update for change from gcc-lib to gcc.
8530
8531 2003-07-31  Nathanael Nerode  <neroden@gcc.gnu.org>
8532
8533         * inclhack.def (stdio_va_list): Avoid bogus replacement which
8534         triggers on Interix.
8535         * fixincl.x: Regenerate.
8536
8537 2003-07-31  Jakub Jelinek  <jakub@redhat.com>
8538
8539         * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
8540         SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
8541
8542 2003-07-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8543
8544         * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
8545
8546 2003-07-31  Per Bothner  <pbothner@apple.com>
8547
8548         * opts.c (in_fnames, num_in_fnames):  Moved here from c-opts.
8549         (add_input_filename):  New function.
8550         (handle_options):  Call add_input_filename directly instead of
8551         with a lang hook.
8552         * opts.h (in_fnames, num_in_fnames):  Moved here.
8553         (add_input_filename):  Declare.
8554         * c-decl.c:  Need to #include opts.h.
8555         * Makefile.in (c-decl.o):  Also depends on opts.h.
8556         * c-opts.c (in_fnames, num_in_fnames):  Moved to opts.c.
8557         (c_common_handle_filename):  Replaced by add_input_filename.
8558         * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
8559         Remove.
8560         * langhooks.h (struct lang_hooks):  Remove handle_filename hook.
8561         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
8562         (LANG_HOOKS_INITIALIZER):  Remove use of LANG_HOOKS_HANDLE_FILENAME.
8563         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
8564
8565 2003-07-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8566
8567         * combine.c (try_combine): Set JUMP_LABEL for newly created
8568         unconditional jump.
8569
8570 2003-07-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8571
8572         * fold-const.c (fold): Fold some comparisons of bit operations.
8573
8574 2003-07-31  Jan Hubicka  <jh@suse.cz>
8575
8576         * cgraph.c (create_edge): Fix typo.
8577         * i386.c (pic_symbolic_operand): Reorder tests.
8578
8579 2003-07-31  Nathan Sidwell  <nathan@codesourcery.com>
8580
8581         * doc/gcov.texi (Invoking Gcov): Describe output name mangling
8582         more fully.
8583         (Gcov Data Files): Update.
8584
8585 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8586
8587         * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
8588         default.
8589
8590         * gthr-posix.c: New file.
8591         * gthr-posix.h: Define _REENTRANT if missing.
8592         Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
8593
8594         * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
8595         by gthr-posix.o.
8596         * config/alpha/t-osf-pthread: New file.
8597
8598         * fixinc/inclhack.def (alpha_pthread): New fix.
8599         * fixinc/fixincl.x: Regenerate.
8600         * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
8601
8602         * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
8603         warning.
8604         Fixes PR bootstrap/9330.
8605
8606 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8607
8608         * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
8609         without GNU ld.
8610         Update comment.
8611         * configure: Regenerate.
8612
8613 2003-07-31  Vladimir Makarov  <vmakarov@redhat.com>
8614
8615         * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
8616         setter.
8617
8618 2003-07-30  Roger Sayle  <roger@eyesopen.com>
8619
8620         * builtins.def: Alphabetize.
8621
8622 2003-07-30  Matt Kraai  <kraai@alumni.cmu.edu>
8623
8624         * doc/c-tree.texi: Normalize spellings of "lowercase" and
8625         "uppercase".
8626         * doc/cpp.texi: Likewise.
8627         * doc/md.texi: Likewise.
8628         * doc/rtl.texi: Likewise.
8629         * doc/tm.texi: Likewise.
8630
8631 2003-07-30  Matt Kraai  <kraai@alumni.cmu.edu>
8632
8633         * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
8634         (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
8635         of cc1obj.
8636
8637 2003-07-30  Chris Demetriou  <cgd@broadcom.com>
8638
8639         * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
8640         macros before defining them.
8641
8642 2003-07-31  Ulrich Weigand  <uweigand@de.ibm.com>
8643
8644         * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
8645         UNSPECV_BLOCKAGE): New constants.
8646         ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
8647         "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
8648         splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
8649         "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
8650
8651         (all insns and expanders): Write output control string as brace block
8652         where appropriate.  Remove \-escapes for doublequote characters.
8653
8654 2003-07-31  Jan Hubicka  <jh@suse.cz>
8655
8656         * gcse.c (insert_store): Fix typo in previous patch.
8657
8658 2003-07-30  Neil Booth  <neil@daikokuya.co.uk>
8659
8660         * cppfiles.c (stack_file, open_file_failed): Use path for deps.
8661
8662 2003-07-30  Andi Kleen  <ak@muc.de>
8663
8664         * loop.c (check_dbra_loop): Allow LTU in the loop condition.
8665
8666 2003-07-30  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8667
8668         * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
8669         * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
8670         GCOV_N_VALUE_COUNTERS): New.
8671         * profile.c (compute_value_histograms): New static function.
8672         (branch_prob): Read back the value histograms.
8673         * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
8674         * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
8675         * value-prof.c: Add comment on reading the profile.
8676         * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
8677         * doc/invoke.texi (-fprofile-values): Document behavior with
8678         -fbranch-probabilities.
8679
8680 2003-07-30  David Edelsohn  <edelsohn@gnu.org>
8681
8682         * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
8683
8684 2003-07-30  Ulrich Weigand  <uweigand@de.ibm.com>
8685
8686         * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
8687         symbolically.
8688
8689 2003-07-30  Jan Hubicka  <jh@suse.cz>
8690
8691         * gcse.c (insert_store): Ignore fake edges.
8692
8693         * c-common.c (flag_vtable_gc): Kill.
8694         * c-common.g (flag_vtable_gc): Kill.
8695         * c-opts (c_common_handle_option): Kill.
8696         * c.opt (fvtable-gc): Kill.
8697         * final.c (final_scan_insn): Do not call assemble_vtable_entry.
8698         * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
8699         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
8700
8701         * invoke.texi (-ftable-gc): Kill documentation.
8702
8703         * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
8704         just because function body is missing.
8705
8706         * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
8707
8708 2003-07-30  Ranjit Mathew  <rmathew@hotmail.com>
8709
8710         * unwind-sjlj.c: Fix typo in file description.
8711
8712 2003-07-30  Alan Modra  <amodra@bigpond.net.au>
8713
8714         * calls.c (load_register_parameters): When shifting reg sized values
8715         to the msb, move the value to a reg first.
8716
8717 2003-07-29  Geoffrey Keating  <geoffk@apple.com>
8718
8719         * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
8720         * line-map.h (linemap_add): Update comments.
8721         * line-map.c (linemap_add): Update comments, interpret zero-length
8722         filename as "<stdin>".
8723
8724 2003-07-29  Nathanael Nerode  <neroden@gcc.gnu.org>
8725
8726         * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
8727
8728 2003-07-29  Zack Weinberg  <zack@codesourcery.com>
8729
8730         * c-decl.c (last_function_parm_vars, current_function_parm_vars):
8731         New static variables.
8732         (struct c_scope): Add parms and warned_forward_parm_decls
8733         fields; remove parm_order.
8734         (storedecls, storetags): Delete.
8735         (poplevel): Also clear bindings on the parms chain.
8736         (pushdecl): Handle forward declarations of parameters, and
8737         chain PARM_DECLs on the parms list, not the names list.
8738         (lookup_name_current_level): Check for PARM_DECLs on the parms
8739         list too.
8740         (push_parm_decl): Don't update parm_order.
8741         (clear_parm_order): Rename mark_forward_parm_decls.  Issue the
8742         warning, only once per parameter list, and set TREE_ASM_WRITTEN
8743         on the decls here.  Then move the forward decls to the names list.
8744         (grokparms): Set last_function_parm_vars.
8745         (get_parm_info): Don't use gettags or getdecls.  No need to
8746         extract non-parms from the parms list, or reorganize the parms
8747         list.  Feed nonparms back in the TREE_TYPE of the list node
8748         returned.  Issue only one error per parameter list for "void"
8749         appearing more than once in said parameter list.  Collapse
8750         parmlist_tags_warning into this function to avoid double scan
8751         of tags list.
8752         (start_function): Set current_function_parm_vars.
8753         (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
8754         directly.  Get non-parms from current_function_parm_vars; no
8755         need to extract them from the parms chain.  Properly bind tags
8756         in the new scope.
8757         (store_parm_decls_oldstyle): No need to extract non-parameters
8758         from the parms chain, nor to store them back afterward.  Move
8759         declaration to top of function, restructure code reordering
8760         DECL_ARGUMENTS.
8761         (store_parm_decls): No need to save and restore warn_shadow.
8762         * c-parse.in: Don't call parmlist_tags_warning nor
8763         clear_parm_order.  Call mark_forward_parm_decls when forward
8764         parm decls are encountered.
8765         * c-tree.h: Prototype mark_forward_parm_decls; not
8766         clear_parm_order or parmlist_tags_warning.
8767
8768 2003-07-29  Geoffrey Keating  <geoffk@apple.com>
8769
8770         * c-common.c (allow_pch): Remove.
8771         * c-common.h (allow_pch): Remove.
8772         (c_common_no_more_pch): Declare.
8773         * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
8774         * c-pch.c: Include hosthooks.h.
8775         (c_common_valid_pch): Don't check allow_pch.
8776         (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
8777         (c_common_no_more_pch): New.
8778         * ggc-common.c: Include hosthooks.h.
8779         (gt_pch_save): Call gt_pch_get_address.
8780         (gt_pch_restore): Call gt_pch_use_address.
8781         * hooks.c (hook_voidp_size_t_null): New.
8782         (hook_bool_voidp_size_t_false): New.
8783         * hooks.h (hook_voidp_size_t_null): New.
8784         (hook_bool_voidp_size_t_false): New.
8785         * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
8786         (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
8787         (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
8788         HOST_HOOKS_GT_PCH_USE_ADDRESS.
8789         * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
8790         gt_pch_use_address.
8791         * doc/hostconfig.texi (Host Common): Document
8792         HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
8793         * Makefile.in (c-pch.o): Depend on hosthooks.h.
8794         (ggc-common.o): Likewise.
8795
8796         * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
8797         (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
8798         (pch_address_space): New.
8799         (darwin_rs6000_gt_pch_get_address): New.
8800         (darwin_rs6000_gt_pch_use_address): New.
8801
8802 2003-07-29  Neil Booth  <neil@daikokuya.co.uk>
8803
8804         PR preprocessor/11569
8805         PR preprocessor/11649
8806         * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
8807         * cppfiles.c: Completely rewritten.
8808         * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
8809         struct cpp_path is now struct cpp_dir.
8810         (remove_duplicates): Don't simplify path names.
8811         * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
8812         cpp_stack_file.
8813         * cpphash.h: Include hashtab.h.
8814         (_cpp_file): Declare.
8815         (struct cpp_buffer): struct include_file is now struct _cpp_file,
8816         and struct cpp_path is now struct cpp_dir.  Rename members.
8817         (struct cpp_reader): Similarly.  New members once_only_files,
8818         file_hash, file_hash_entries, quote_ignores_source_dir,
8819         no_search_path, saw_pragma_once.  Remove all_include_files and
8820         max_include_len.  Make some members bool.
8821         (_cpp_mark_only_only): Renamed from _cpp_never_reread.
8822         (_cpp_stack_file): Renamed from _cpp_read_file.
8823         (_cpp_stack_include): Renamed from _cpp_execute_include.
8824         (_cpp_init_files): Renamed from _cpp_init_includes.
8825         (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
8826         * cppinit.c (cpp_create_reader): Initialize no_search_path.  Update.
8827         (cpp_read_next_file): Rename and move to cppfiles.c.
8828         (cpp_read_main_file): Update.
8829         * cpplib.c (run_directive): Update for renamed members.
8830         (do_include_common, _cpp_pop_buffer): Update.
8831         (do_import): Undeprecate #import.
8832         (do_pragma_once): Undeprecate.  Use _cpp_mark_file_once_only.
8833         * cpplib.h: Remove file_name_map_list.
8834         (cpp_options): Remove map_list.
8835         (cpp_dir): Rename from cpp_path.  New datatype for name_map.
8836         (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
8837
8838 2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
8839
8840         * Makefile.in:  Make stamp-objdir safe for parallel builds.
8841
8842 2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
8843
8844         * Makefile.in (stmp-docobjdir):  New target; ensure $docobjdir exists.
8845         (info):  Depend on stmp-docobjdir.
8846
8847 2003-07-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8848
8849         * configure: Regenerate.
8850
8851 2003-07-29  Jan Hubicka  <jh@suse.cz>
8852
8853         PR C++/11131
8854         * tree-inline.c (expand_call_inline): Always call inlinable_function_p
8855         in !unit-at-a-time mode.
8856
8857 2003-07-28  Geoffrey Keating  <geoffk@apple.com>
8858
8859         * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
8860         main function.
8861
8862 2003-07-28  Mark Mitchell  <mark@codesourcery.com>
8863
8864         PR c++/11667
8865         * c-common.c (shorten_compare): Take into account differences
8866         between C and C++ representation for enumeration types.
8867         * tree.h (set_min_and_max_values_for_integral_type): Declare.
8868         * stor-layout.c (set_min_and_max_values_for_integral_type): New
8869         function, broken out from ...
8870         (fixup_signed_type): ... here and ...
8871         (fixup_unsigned_type): ... here.
8872
8873 2003-07-28  Zack Weinberg  <zack@codesourcery.com>
8874
8875         * c-decl.c: Update commentary, adjust blank lines throughout.
8876         (struct c_scope): Fix indentation.  Reorder members so
8877         outer-context pointers come first, booleans last.
8878         (duplicate_decls, define_label): Use a 'locus' variable for
8879         diagnostic locations in a few more places.
8880         (warn_if_shadowing): Un-split a conditional that fits on one line.
8881         (c_init_decl_processing): No need to clear current_scope and
8882         current_function_scope.
8883         (start_decl): Merge if/else if statements with same action.
8884         (push_parm_decl): Rename old_immediate_size_expand to use
8885         save_foo convention; save/restore around entire function.
8886         (grokdeclarator): Remove unnecessary braces.
8887
8888 2003-07-28  Hans-Peter Nilsson  <hp@bitrange.com>
8889             Michael Culbertson  <Michael.J.Culbertson@wheaton.edu>
8890
8891         * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
8892         when warn_declaration_after_statement.  Call pedwarn_c90, not
8893         pedwarn.  Correct message: it's "ISO C90", not "ISO C89".
8894         * c-common.c (warn_declaration_after_statement): Define.
8895         * c-common.h (warn_declaration_after_statement): Declare.
8896         * c.opt (Wdeclaration-after-statement): New.
8897         * c-errors.c (pedwarn_c90): New function.
8898         * c-opts.c (c_common_handle_option) <case
8899         OPT_Wdeclaration_after_statement>: New.
8900         * c-tree.h (pedwarn_c90): Declare.
8901         * doc/invoke.texi (Option Summary): Document
8902         -Wdeclaration-after-statement.
8903         (Warning Options): Ditto.
8904
8905 2003-07-28  Jan Hubicka  <jh@suse.cz>
8906
8907         * i386.md (memory attribute) Avoid accessing uninitialized memory
8908         for ishift1 type instructions.
8909
8910 2003-07-28  Jakub Jelinek  <jakub@redhat.com>
8911
8912         * configure.in (--enable-checking): Add fold category.
8913         (ENABLE_FOLD_CHECKING): Define if requested.
8914         * configure: Rebuilt.
8915         * config.in: Rebuilt.
8916         * doc/install.texi: Document it.
8917         * fold-const.c: Include md5.h.
8918         [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
8919         [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
8920         print_fold_checksum): New functions.
8921
8922         * fold-const.c (fold): Never modify argument passed to fold, instead
8923         change a copy and return it.
8924         * convert.c (convert_to_integer): Likewise.
8925
8926 2003-07-27  Nathanael Nerode  <neroden@gcc.gnu.org>
8927
8928         * fixinc/fixinc.svr4: Remove dead code.  Remove now-unnecessary
8929         cleanup of junk after #else and #endif directives.  Collapse repeated
8930         clauses into for statment.
8931
8932         * fixinc/fixincl.sh: GNU C -> GCC.  Add usage comment.
8933
8934 2003-07-27  Zack Weinberg  <zack@codesourcery.com>
8935
8936         * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
8937         (keep_next_if_subblocks): Rename next_is_function_body.
8938         (pushlevel): Adjust commentary.  Always set ->keep on the
8939         outermost level of a function.  Don't set ->keep_if_subblocks.
8940         (poplevel): Adjust commentary.  Don't look at ->keep_if_subblocks.
8941         (store_parm_decls): Adjust to match.
8942         (finish_function): Adjust to match.
8943         Call poplevel with all three arguments zero.
8944
8945         * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
8946         New functions split out of store_parm_decls.
8947         Avoid unnecessary work. Use local variables consistently.
8948         (store_parm_decls): Likewise.
8949
8950         (finish_function): No need to set functionbody flag on call to
8951         poplevel.
8952         (struct language_function): Remove scope field.
8953         (c_push_function_context, c_pop_function_context): No need to
8954         save and restore current_scope.
8955
8956 2003-07-27  Nathan Sidwell  <nathan@codesourcery.com>
8957
8958         * doc/extend.texi (Deprecated Features): Implicit typename is
8959         gone. Default args on types is going.
8960
8961 2003-07-26  J"orn Rennecke <joern.rennecke@superh.com>
8962
8963         * Makefile.in (ifcvt.o): Depend on target.h
8964         * ifcvt.c (target.h): Include.
8965         (if_convert): Don't call mark_loop_exit_edges if we can't
8966         modify jumps.
8967
8968 2003-07-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8969
8970         * doc/install.texi (Testing): Adjust required versions of DejaGnu.
8971
8972 2003-07-26  Richard Henderson  <rth@redhat.com>
8973
8974         PR inline-asm/11676
8975         * cse.c (count_reg_usage): Handle asm_operands properly.
8976
8977 2003-07-26  Roger Sayle  <roger@eyesopen.com>
8978
8979         * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
8980         (DEF_EXT_FALLBACK_BUILTIN): Delete.
8981         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
8982         the regular DEF_EXT_LIB_BUILTIN macro.
8983         (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
8984         the regular DEF_LIB_BUILTIN macro.
8985         (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
8986         BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
8987         BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
8988         DEF_EXT_LIB_BUILTIN macro.
8989
8990         * c-decl.c (duplicate_decls): Remove code to handle builtin
8991         functions prototyped without an argument list.
8992
8993 2003-07-26  Danny Smith  <dannysmith@users.sourceforge.net>
8994
8995         * config/i386/winnt.c: Revert 2003-07-08 change.
8996         (i386_pe_section_type_flags): Remove error_with_decl here too.
8997
8998 2003-07-26  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8999
9000         * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
9001         * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
9002         * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
9003         (v850_handle_data_area_attribute): Likewise.
9004
9005 2003-07-26  Geoffrey Keating  <geoffk@apple.com>
9006
9007         * varasm.c (output_constant_def_contents): Use
9008         ASM_DECLARE_CONSTANT_NAME if defined.
9009         * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
9010         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
9011         objects get at least one byte to prevent assembler problems.
9012         (ASM_DECLARE_CONSTANT_NAME): New.
9013
9014         * Makefile.in (libbackend.o): Remove options_.h.
9015         (mostlyclean): Likewise.
9016
9017         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
9018         insert a label at the end of an function under Mach-O.
9019
9020         * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
9021
9022 2003-07-25  Aldy Hernandez  <aldyh@redhat.com>
9023
9024         * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
9025         equality.
9026         (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
9027
9028         * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
9029
9030 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9031
9032         * doc/passes.texi (Passes): Mention pretty-printing and
9033         diagnostic files.
9034
9035 2003-07-25  Nathan Sidwell  <nathan@codesourcery.com>
9036
9037         * doc/extend.texi (Function Attributes): GNU C++ does now allow
9038         unused parameter decls.
9039         (Attribute Syntax): GNU C++ does not allow label attributes to be
9040         after the ':'.
9041
9042 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9043
9044         * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
9045         (objc_declare_class): Likewise.
9046         (error_with_ivar): Likewise.
9047         (start_class): Likewise.
9048         (warn_with_method): Likewise.
9049
9050 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9051
9052         Remove pedwarn_with_decl, warning_with_decl and error_with_decl
9053         from GCC.
9054         * calls.c (try_to_integrate): Don't use xxx_with_decl.
9055         (expand_call): Likewise.
9056         * dwarfout.c (output_reg_number): Likewise.
9057         * expr.c (expand_expr): Likewise.
9058         * function.c (assign_temp): Likewise.
9059         (uninitialized_vars_warning): Likewise.
9060         (setjmp_args_warning): Likewise.
9061         (expand_function_end): Likewise.
9062         * stmt.c (fixup_gotos): Likewise.
9063         (warn_about_unused_variables): Likewise.
9064         (expand_end_bindings): Likewise.
9065         * stor-layout.c (layout_decl): Likewise.
9066         (place_field): Likewise.
9067         * toplev.c (check_global_declarations): Likewise.
9068         (rest_of_handle_inlining): Likewise.
9069         (default_tree_printer): New function.
9070         (general_init): Initialize diagnostic machinery before routing
9071         signals to the ICE machinery.  Set default tree printer.
9072         * toplev.h (pedwarn_with_decl): Remove declaration.
9073         (warning_with_decl): Likewise.
9074         (error_with_decl): Likewise.
9075         (pedwarn): Remove attribute for the time being.
9076         * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
9077         * varasm.c (named_section): Likewise.
9078         (make_decl_rtl): Likewise.
9079         (assemble_variable): Likewise.
9080         (merge_weak): Likewise.
9081         (declare_weak): Likewise.
9082
9083         * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
9084         * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
9085         (format_with_decl): Remove.
9086         (diagnostic_for_decl): Likewise.
9087         (pedwarn_with_decl): Likewise.
9088         (warning_with_decl): Likewise.
9089         (error_with_decl): Likewise.
9090         (diagnostic_initialize): Adjust.
9091         (diagnostic_count_diagnostic): Likewise.
9092         (announce_function): Likewise.
9093         (lhd_print_error_function): Likewise.
9094         (diagnostic_report_current_module): Likewise.
9095         (default_diagnostic_starter): Likewise.
9096         (diagnostic_report_diagnostic): Likewise.
9097         (default_diagnostic_finalizer): Likewise.
9098         (verbatim): Likewise.
9099         (error): Likewise.
9100         (warning): Likewise.
9101         * opts.c (common_handle_option): Likewise.
9102         * pretty-print.c: New file.
9103         * c-pretty-print.h (pp_base): Override.
9104         * c-pretty-print.c: Adjust use of macros throughout.
9105         (pp_buffer): New macro.
9106         (pp_newline): Likewise.
9107         * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
9108         * Makefile.in (DIAGNOSTIC_H): New variable.
9109         (c-errors.o): Use it.
9110         (c-objc-common.o): Likewise.
9111         (c-common.o): Likewise.
9112         (c-opts.o): Likewise.
9113         (c-format.o): Likewise.
9114         (diagnostic.o): Likewise.
9115         (opts.o): Likewise.
9116         (toplev.o): Likewise.
9117         (rtl-error.o): Likewise.
9118         (dwarf2out.o): Likewise.
9119         (jump.o): Likewise.
9120         (pretty-print.o): New rule.
9121
9122 2003-07-24  Roger Sayle  <roger@eyesopen.com>
9123
9124         * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
9125         front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
9126         (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
9127         from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
9128         (DEF_FRONT_END_LIB_BUILTIN): Delete.
9129         (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
9130         (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
9131
9132         * builtins.c (build_string_literal): New function to construct
9133         a char* pointer to a string literal.
9134         (expand_builtin_fputs): Change 2nd argument from "int ignore" to
9135         "rtx target" to be consistent with other expand_builtin_* functions.
9136         Change 3rd argument from "int unlocked" to "bool unlocked".
9137         (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
9138         c-common.c to avoid front-end dependencies.  Optimize printf("")
9139         as a no-op when the result isn't required.  Handle embedded NULs
9140         in format string.
9141         (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
9142         from c-common.c to avoid front-end dependencies.  Likewise, optimize
9143         fprintf(fp,"") as a no-op when the result isn't required, evaluating
9144         fp for side-effects.  Handle embedded NULs in format string.
9145         (expand_builtin_sprintf): Fix typo.
9146         (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
9147         optimizing.  Adjust calls of expand_builtin_fputs to match the API
9148         change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
9149         expand_builtin_printf.  Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
9150         and BUILT_IN_FPRINTF using expand_builtin_fprintf.
9151
9152         * c-common.c (is_valid_printf_arglist): Delete.
9153         (c_expand_builtin): Delete.
9154         (c_expand_builtin_printf): Moved to builtins.c. Delete.
9155         (c_expand_builtin_fprintf): Moved to builtins.c.  Delete.
9156         (c_expand_expr): No longer treat CALL_EXPRs specially.
9157         (CALLED_AS_BUILT_IN): Delete.
9158
9159 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9160
9161         PR optimization/11631
9162         * gcse.c (store_motion): Connect infinite loops to exit.
9163
9164 2003-07-24  Jason Merrill  <jason@redhat.com>
9165
9166         * tree.h (boolean_type_node): Move from C/C++/Java frontends.
9167         (boolean_true_node, boolean_false_node): Likewise.
9168         (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
9169         * tree.c (build_common_tree_nodes): Init boolean_type_node.
9170         (build_common_tree_nodes_2): Init boolean_{true,false}_node.
9171         * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
9172         * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
9173         (truthvalue_true_node): Renamed from boolean_true_node.
9174         (truthvalue_false_node): Renamed from boolean_false_node.
9175         * c-decl.c: Just set truthvalue_* to integer_*.
9176         * c-*.[ch]: s/boolean/truthvalue/.  s/c_bool/boolean/.
9177
9178 2003-07-24  Roger Sayle  <roger@eyesopen.com>
9179
9180         * c-decl.c (match_builtin_function_types): New subroutine of
9181         duplicate_decls to test whether a redeclaration of a builtin
9182         function is suitably close, i.e. the return type and all of
9183         the argument types have the same modes as the builtin expects.
9184         (duplicate_decls): Fuzzy type matching for builtin functions
9185         moved to match_builtin_function_types.
9186
9187 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9188
9189         * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
9190         flag correctly.
9191
9192 2003-07-24  Zack Weinberg  <zack@codesourcery.com>
9193
9194         * c-decl.c: Search-and-replace change 'binding level' to
9195         'scope' in commentary.
9196         (struct binding_level): Now struct c_scope.
9197         (current_binding_level): Now current_scope.
9198         (free_binding_level): Now scope_freelist.
9199         (current_function_level): Now current_function_scope.
9200         (global_binding_level): Now global_scope.
9201         (make_binding_level): Now make_scope.
9202         (pop_binding_level): Now pop_scope.
9203
9204 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9205
9206         * configure.in (libgcc_visibility): Add missing whitespace.
9207
9208 2003-07-24  Richard Henderson  <rth@redhat.com>
9209
9210         * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
9211         __gcc_personality_v0.
9212
9213 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9214
9215         * Makefile.in: Replace pwd by ${PWD_COMMAND}.
9216
9217 2003-07-24  Nathan Sidwell  <nathan@codesourcery.com>
9218
9219         * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
9220         documentation missed from my 2003-07-09 patch.
9221
9222 2003-07-24  Nathanael Nerode  <neroden@gcc.gnu.org>
9223
9224         * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
9225         it's not provided.
9226         * configure: Rebuild.
9227
9228 2003-07-24  Steven Bosscher  <steven@gcc.gnu.org>
9229
9230         PR c/10602
9231         * c-typeck.c (type_lists_compatible_p): Do not compare
9232         arguments if one of them is an error_mark_node
9233
9234 2003-07-24  Alan Modra  <amodra@bigpond.net.au>
9235
9236         * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
9237         if current_function_calls_eh_return.
9238
9239 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
9240
9241         * doc/c-tree.texi (OFFSET_TYPE): Update description.
9242
9243 2003-07-23  Bob Wilson  <bob.wilson@acm.org>
9244
9245         * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
9246         * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
9247         __umodsi3, __modsi3): Increase frame size to 32.
9248
9249 2003-07-23  Geoffrey Keating  <geoffk@apple.com>
9250
9251         * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
9252         prototype.
9253
9254 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
9255
9256         * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
9257
9258         PR optimization/10679
9259         * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
9260
9261 2003-07-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9262
9263         PR target/11607 and PR target/11516
9264         * pa.md (extzv, extv, insv): Revert latter half of last patch.
9265
9266 2003-07-22  Mark Mitchell  <mark@codesourcery.com>
9267
9268         * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
9269         * varasam.c (output_constant): Likewise.
9270
9271 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
9272
9273         * alias.c: Fix comment formatting.
9274         * c-common.c: Likewise.
9275         * c-decl.c: Likewise.
9276         * c-opts.c: Likewise.
9277         * combine.c: Likewise.
9278         * cpplib.c: Likewise.
9279         * diagnostic.c: Likewise.
9280         * dojump.c: Likewise.
9281         * final.c: Likewise.
9282         * fold-const.c: Likewise.
9283         * gcc.c: Likewise.
9284         * gcse.c: Likewise.
9285         * ggc-page.c: Likewise.
9286         * jump.c: Likewise.
9287         * loop.c: Likewise.
9288         * mips-tfile.c: Likewise.
9289         * recog.c: Likewise.
9290         * regclass.c: Likewise.
9291         * regmove.c: Likewise.
9292         * tree.c: Likewise.
9293         * tree.h: Likewise.
9294
9295 2003-07-22  Per Bothner  <pbothner@apple.com>
9296
9297         * line-map.c (add_line_map):  Handle invalid LEAVE request.
9298         Fixes PR preprocessor/11361.
9299
9300 2003-07-22  Per Bothner  <pbothner@apple.com>
9301
9302         * diagnostic.c.(diagnostic_report_current_module):  Update to match
9303         2003-06-05 changes to push_srcloc and pop_srcloc.
9304
9305 2003-07-22  Wolfgang Bangerth  <bangerth@dealii.org>
9306
9307         * doc/trouble.texi: Better document two-stage name lookup.
9308
9309 2003-07-22  Eric Christopher <echristo@redhat.com>
9310
9311         * config/s390.c (s390_valid_pointer_mode): New.
9312         (TARGET_VALID_POINTER_MODE): Use.
9313         (s390_emit_prologue): Add tpf profiling hooks.
9314         (s390_emit_epilogue): Ditto.
9315         * config/s390.h (MASK_TPF): New.
9316         (TARGET_TPF): Use.
9317         (POINTERS_EXTEND_UNSIGNED): Define.
9318         * config/s390.md (ptr_extend): New pattern.
9319
9320 2003-07-22  Zack Weinberg  <zack@codesourcery.com>
9321
9322         * hashtable.c (approx_sqrt): Make static.
9323         * hashtable.h: Don't prototype approx_sqrt.
9324         * line-map.c (init_line_maps): Rename linemap_init.
9325         (free_line_maps): Rename linemap_free.
9326         (add_line_map): Rename linemap_add.
9327         (lookup_line): Rename linemap_lookup.
9328         (print_containing_files): Rename linemap_print_containing_files.
9329         * linemap.h: Update to match.
9330
9331         * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
9332         linemap routines to use new names.
9333
9334 2003-07-16  Nathan Sidwell  <nathan@codesourcery.com>
9335
9336         * c-common.c (handle_packed_attribute): Don't pack a struct via a
9337         typedef. Propagate packedness from a main variant.
9338
9339 2003-07-22  Nathanael Nerode  <neroden@gcc.gnu.org>
9340
9341         * Makefile.in (install-common): Add dependency on installdirs.
9342
9343 2003-07-21  Alexandre Oliva  <aoliva@redhat.com>
9344
9345         * c-common.c (c_common_type_for_mode): Return integer types for
9346         pointer modes.
9347
9348 2003-07-22  Geoffrey Keating  <geoffk@apple.com>
9349
9350         * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
9351         (finish_decl): Call maybe_apply_pragma_weak here.
9352         (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
9353         TREE_PUBLIC and TREE_STATIC are decided.
9354         (start_function): Move call to maybe_apply_pragma_weak.  Check that
9355         DECL_ASSEMBLER_NAME isn't set too early.
9356
9357         * cpplex.c (_cpp_process_line_notes): Mention option name in
9358         trigraphs warning.
9359
9360 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
9361
9362         * combine.c (if_then_else_cond): Simplify the comparison of
9363         rtx against -1, 0, and 1.
9364         * loop.c (check_dbra_loop): Likewise.
9365         * optabs.c (emit_conditional_move): Likewise.
9366         (emit_conditional_add): Likewise.
9367         * config/i386/i386.md (*movsi_or): Likewise.
9368         (*movdi_or_rex6): Likewise.
9369
9370 2003-07-22  Jan Hubicka  <jh@suse.cz>
9371
9372         * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
9373
9374 2003-07-21  Neil Booth  <neil@daikokuya.co.uk>
9375
9376         * cppfiles.c (open_file_pch): Don't put unused entries in the
9377         splay tree.  Remove dead code.
9378
9379 2003-07-21  Geoffrey Keating  <geoffk@apple.com>
9380
9381         * c-common.h (num_in_fnames): Declare.
9382         (c_static_assembler_name): Move from here...
9383         * c-tree.h (c_static_assembler_name): ... to here.
9384         * c-opts.c: Don't include langhooks-def.h.
9385         (c_static_assembler_name): Move to c-decl.c.
9386         (num_in_fnames): Make externally visible.
9387         * c-decl.c: Include langhooks-def.h.
9388         (c_static_assembler_name): Move from c-opts.c.
9389         * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
9390         (c-opts.o): Remove $(LANGHOOKS_DEF_H).
9391
9392         * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
9393         when it's not needed.
9394
9395 2003-07-21  Jakub Jelinek  <jakub@redhat.com>
9396
9397         * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
9398         * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
9399         (rs6000_emit_prologue): Save FPRs inline if set.
9400
9401 2003-07-21  H.J. Lu <hongjiu.lu@intel.com>
9402
9403         * config/ia64/ia64.md (prefetch): Support predicate.
9404
9405 2003-07-21  Josef Zlomek  <zlomekj@suse.cz>
9406
9407         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
9408         * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
9409         table.
9410
9411 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
9412
9413         PR optimization/11536
9414         * unroll.c (loop_iterations): Do not replace a register holding
9415         the final value by its equivalent before the loop if it is not
9416         invariant.
9417
9418 2003-07-21  Dave Fluri  <dave.fluri@onlink.net>
9419
9420         * doc/extend.texi: Fixes to spelling, grammar, and diction.
9421
9422 2003-07-21  Ben Elliston  <bje@wasabisystems.com>
9423
9424         * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
9425         (V850 Options): Spelling fixes.
9426
9427 2003-07-20  Lisa M. Goldstein  <opus@gnu.org>
9428
9429         * doc/invoke.texi: Fixes to style, grammar and diction.
9430
9431 2003-07-20  Roger Sayle  <roger@eyesopen.com>
9432
9433         * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
9434         * system.h (SMALL_STACK): Poison obsolete target macro.
9435         * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
9436
9437 2003-07-20  Phil Edwards  <pme@gcc.gnu.org>
9438
9439         * configure.in:  Cache the results of testing for cmp's capabilities.
9440         * configure:  Regenerate.
9441
9442 2003-07-20  Mark Mitchell  <mark@codesourcery.com>
9443
9444         PR debug/11279
9445         * dwarf2out.c (gen_enumeration_type_die): Remember that
9446         enumerators can be unsigned.
9447
9448 2003-07-19  Zack Weinberg  <zack@codesourcery.com>
9449
9450         * c-decl.c (named_labels, shadowed_labels, label_level_chain)
9451         (push_label_level, pop_label_level): Kill.
9452         (struct binding_level): Rename level_chain to outer.
9453         Add outer_function field.  Change parm_flag, function_body,
9454         keep, keep_if_subblocks to 1-bit bitfields of type bool.
9455         (current_function_level): New variable.
9456         (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
9457         (keep_next_level, declare_parm_level, warn_if_shadowing):
9458         Update to match.
9459         (struct language_function): Kill named_labels, shadowed_labels fields.
9460         (c_init_decl_processing, start_function, c_push__function_context)
9461         (c_pop_function_context): No need to muck with named_labels nor
9462         shadowed_labels.
9463
9464         (make_binding_level): No need to clear the structure here.
9465         (pop_binding_level): Always operate on current_binding_level.
9466         Update current_function_level if necessary.
9467         (pushlevel): Don't clear named_labels.  Update current_function_level
9468         if necessary.  Use "true" and "false" where appropriate.
9469         (poplevel): Diagnose labels defined but not used, or vice
9470         versa, and clear out label-meanings leaving scope, while
9471         walking down the decls list, for all binding levels.
9472         Handle LABEL_DECLs appearing in the shadowed list.
9473         pop_binding_level takes no arguments.
9474         (pushdecl_function_level): Use current_function_level.
9475
9476         (make_label, bind_label): New static functions.
9477         (declare_label): New exported function.
9478         (lookup_label, define_label): Rewritten for new data structure.
9479         (shadow_label): Kill.
9480
9481         * c-tree.h: Prototype declare_label; don't prototype
9482         push_label_level, pop_label_level, nor shadow_label.
9483         * c-parse.in: Remove all calls to push_label_level and
9484         pop_label_level.  Use declare_label for __label__ decls.
9485
9486         * doc/extend.texi: Clarify that __label__ can be used to
9487         declare labels with local scope in any nested block, not
9488         just statement expressions.  Cross-reference nested functions
9489         section from local labels section.
9490
9491 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9492
9493         * sched-rgn.c (find_rgns): Initialize current_edge correctly.
9494
9495 2003-07-19  Phil Edwards  <pme@gcc.gnu.org>
9496
9497         * doc/makefile.texi (restrap, profiledbootstrap):  Document targets.
9498
9499 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9500
9501         * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
9502         fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
9503
9504 2003-07-19  Ulrich Weigand  <uweigand@de.ibm.com>
9505
9506         * config/s390/s390.c (legitimize_pic_address): Access local symbols
9507         relative to the GOT instead of relative to the literal pool base.
9508         (s390_output_symbolic_const): Handle new GOT-relative accesses.
9509         * config/s390/s390.md ("call"): Access local functions and PLT stubs
9510         relative to the GOT instead of relative to the literal pool base.
9511         ("call_value"): Likewise.
9512         ("call_value_tls"): Likewise.
9513
9514         * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
9515         reloading.  Support LTREL_BASE / LTREL_OFFSET construct.
9516         (s390_chunkify_finish): Likewise.
9517         (s390_chunkify_cancel): Likewise.
9518         (s390_reorg): Adapt caller.
9519         (find_base_register_in_addr,
9520         find_base_register_ref, replace_base_register_ref): Delete.
9521         (find_ltrel_base, replace_ltrel_base): New functions.
9522         (find_constant_pool_ref): Handle LTREL_BASE unspecs.
9523         (s390_decompose_address): Handle LTREL_BASE unspecs.  Optimize
9524         base vs. index register usage.
9525         (struct constant_pool): Remove 'anchor'.
9526         (s390_add_anchor): Delete.
9527         (s390_dump_pool): Remove anchor handling.
9528         * config/s390/s390.md ("reload_anchor"): Remove.
9529
9530         * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
9531         (s390_load_got): New function.  Use LTREL_BASE/OFFSET.
9532         (s390_emit_prologue): Use it.
9533         * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
9534         "builtin_setjmp_receiver"): Cleanup.  Use s390_load_got.  Do not
9535         hard-code register 14.
9536         * config/s390/s390-protos.h (s390_load_got): Declare.
9537
9538         * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
9539         Support TImode constants.
9540         * config/s390/s390.md ("consttable_ti"): New.
9541         ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
9542
9543         * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
9544         UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
9545         UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
9546         UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
9547         UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
9548         New symbolic constants.
9549         ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
9550         "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
9551         "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
9552         "pool", "literal_pool_31", "literal_pool_64"): Cleanup.  Use
9553         symbolic UNSPEC values.
9554         * config/s390/s390.c (larl_operand, s390_short_displacement,
9555         bras_sym_operand, s390_cannot_force_const_mem,
9556         s390_delegitimize_address, s390_decompose_address,
9557         legitimize_pic_address, s390_output_symbolic_const,
9558         s390_function_profiler): Use symbolic UNSPEC values.
9559
9560 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9561
9562         * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
9563         c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
9564         c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
9565         collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
9566         cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
9567         cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
9568         dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
9569         fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
9570         gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
9571         genemit.c genextract.c genoutput.c genrecog.c gensupport.c
9572         ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
9573         integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
9574         loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
9575         postreload.c prefix.c print-tree.c protoize.c ra-build.c
9576         ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
9577         regmove.c regrename.c reload.c reload1.c reorg.c resource.c
9578         sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
9579         simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
9580         tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
9581         varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
9582         casts.
9583
9584 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9585
9586         * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
9587         * toplev.h (warning): Remove attribute.
9588
9589 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9590
9591         * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
9592         (pop_label_level): Likewise.
9593         (duplicate_decls): Likewise.
9594         (implicitly_declare): Likewise.
9595         (shadow_label): Likewise.
9596         (start_decl): Likewise.
9597         (finish_decl): Likewise.
9598         (grokdeclarator): Likewise.
9599         (get_parm_info): Likewise.
9600         (detect_field_duplicates): Likewise.
9601         (finish_struct): Likewise.
9602         (start_function): Likewise.
9603         (store_parm_decls): Likewise.
9604         (finish_function): Likewise.
9605         (c_expand_body_1): Likewise.
9606         (check_for_loop_decls): Likewise.
9607         (merge_translation_unit_decls): Likewise.
9608
9609 2003-07-19  Neil Booth  <neil@daikokuya.co.uk>
9610
9611         * common.opt:  Document --param.
9612         * opts.c (columns, undocumented_msg): New.
9613         (print_help): Get number of columns from environment.  Print
9614         --param help.  Tweak newline handling.
9615         (print_param_help): New.
9616         (print_filtered_help): Better handling of duplicates.  Complain
9617         about undocumented switches.
9618         (print_switch): New.
9619         (wrap_help): Improve wrapping, use COLUMNS.
9620         * opts.sh: Ignore comments in records.
9621         * params.def: Fix typos and remove trailing periods.
9622         * toplev.c (display_help): Don't dump --param help.
9623         * doc/sourcebuild.texi: Update.
9624
9625 2003-07-18  Richard Henderson  <rth@redhat.com>
9626
9627         PR target/11556
9628         * optabs.c (prepare_operand): Fail gracefully instead of abort
9629         if the predicate doesn't satisfy.
9630         (gen_cond_trap): Allow prepare_operand to fail.
9631
9632 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9633
9634         * c-common.c: Don't undefine GCC_DIAG_STYLE.
9635         (fname_decl): Don't use xxx_with_decl.
9636         (c_add_case_label): Likewise.
9637         (handle_section_attribute): Likewise.
9638         (handle_alias_attribute): Likewise.
9639         (handle_no_instrument_function_attribute): Likewise.
9640         (handle_no_limit_stack_attribute): Likewise.
9641         * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
9642         * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
9643
9644 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9645
9646         * Makefile.in (ifcvt.o): Add cfgloop.h.
9647         * basic-block.h (EDGE_LOOP_EXIT): New flag.
9648         * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
9649         * ifcvt.c: Include cfgloop.h.
9650         (mark_loop_exit_edges): New static function.
9651         (if_convert): Call it.
9652         (find_if_header): Ignore branches out of loops.
9653
9654 2003-07-18  Kazu Hirata  <kazu@cs.umass.edu>
9655
9656         * combine.c (simplify_comparison): Don't share rtx when converting
9657         (ne (and (not X) 1) 0) to (eq (and X 1) 0).
9658
9659 2003-07-18  David Edelsohn  <edelsohn@gnu.org>
9660
9661         * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
9662         (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
9663         (MUST_PASS_IN_STACK): Define.
9664         (BLOCK_REG_PADDING): Define.
9665
9666 2003-07-18  Richard Henderson  <rth@redhat.com>
9667
9668         * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
9669         to skip the addr_vec.
9670
9671 2003-07-18  Alexandre Oliva  <aoliva@redhat.com>
9672
9673         * combine.c (combinable_i3pat): Don't forbid occurrences of
9674         i2dest or i1dest in inner_dest if inner_dest is a mem.
9675
9676 2003-07-18  Jan Hubicka  <jh@suse.cz>
9677
9678         * cgraph.c (cgraph_remove_node): Clear the hash table slot.
9679
9680 2003-07-17  Jakub Jelinek  <jakub@redhat.com>
9681
9682         PR target/11087
9683         * loop.c (basic_induction_var): Check if convert_modes emitted any
9684         instructions. Remove them and return 0 if so.
9685
9686 2003-07-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
9687
9688         PR optimization/11083
9689         * toplev.c (rest_of_handle_addresof): Rename into
9690         rest_of_handle_addressof.  Delete unreachable blocks
9691         if dead edges were purged after the addressof pass.
9692
9693 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
9694
9695         * Makefile.in, configure, configure.in: Remove handling of
9696         lang-options.h and options_.h.
9697         * toplev.c (struct lang_opt, documented_lang_options): Remove.
9698         (display_help): Don't use documented_lang_options.
9699
9700 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
9701
9702         * c-decl.c (pushdecl_function_level): Make static, return nothing.
9703         (kept_level_p): Fold into poplevel.
9704         (undeclared_variable): Moved here from c-typeck.c.  Export.
9705         * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
9706         (undeclared_variable): Prototype here.  Don't prototype
9707         kept_level_p nor pushdecl_function_level.
9708         * c-parse.in: Change first argument to poplevel from
9709         "kept_level_p()" to "KEEP_MAYBE".
9710         * c-typeck.c (undeclared_variable): Moved to c-decl.c.
9711
9712 2003-07-17  Roger Sayle  <roger@eyesopen.com>
9713
9714         * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
9715         commutative operands instead of modifying the RTL in-place.
9716
9717 2003-07-17  Mark Mitchell  <mark@codesourcery.com>
9718
9719         PR optimization/11557
9720         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
9721         unless we know which function is being called.
9722
9723 2003-07-17  Roger Sayle  <roger@eyesopen.com>
9724
9725         * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
9726         whether to reorder the operands of a commutative binary operator.
9727
9728 2003-07-17  Roger Sayle  <roger@eyesopen.com>
9729
9730         * fold-const.c (const_binop): Avoid performing the FP operation at
9731         compile-time, if either operand is NaN and we honor signaling NaNs,
9732         or if we're dividing by zero and either flag_trapping_math is set
9733         or the desired mode doesn't support infinities.
9734         (fold_initializer): New function to fold an expression ignoring any
9735         potential run-time exceptions or traps.
9736         * tree.h (fold_initializer): Prototype here.
9737         * c-typeck.c (build_binary_op): Move to the end of the file so
9738         that intializer_stack is in scope.  If constructing an initializer,
9739         i.e. when initializer_stack is not NULL, use fold_initializer to
9740         fold expressions.
9741         * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
9742         performing FP operations at compile-time, if they would raise an
9743         exception at run-time.
9744
9745 2003-07-17  Geoffrey Keating  <geoffk@apple.com>
9746
9747         PR 11498
9748         * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
9749         (langhooks.o): Add $(GGC_H), gt-langhooks.h.
9750         (GTFILES): Add langhooks.c.
9751         (gt-langhooks.h): New.
9752         * c-common.h (c_static_assembler_name): Prototype.
9753         * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
9754         * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
9755         * c-opts.c: Include langhooks-def.h.
9756         (c_static_assembler_name): New.
9757         * langhooks.c: Include ggc.h.  Include gt-langhooks.h.
9758         (var_labelno): New.
9759         (lhd_set_decl_assembler_name): Give static objects with context
9760         unique names.
9761         * varasm.c (var_labelno): Delete.
9762         (make_decl_rtl): Don't change the assembler name once it's set.
9763
9764         * c-opts.c (this_input_filename): New.
9765         (finish_options): Take new parameter, name of file being compiled.
9766         Update callers.  Set this_input_filename.
9767         (push_command_line_include): Use this_input_filename not
9768         main_input_filename.
9769
9770 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
9771
9772         * Makefile.in: Depend .pot generation on options.c.
9773         * po/exgettext: Add an extra_files variable containing additional
9774         files to scan.
9775
9776 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
9777
9778         * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
9779         c_write_global_declarations.
9780
9781         * c-decl.c: Fix typos in several comments.  Remove all
9782         #if 0 blocks; reindent as needed.  Remove unused argument
9783         to declare_parm_level; all callers changed.
9784         * c-parse.in: Update calls to declare_parm_level.  Avoid
9785         issuing a double warning in some circumstances.
9786         * c-typeck.c: Update calls to declare_parm_level.
9787         * c-tree.h: Update prototype of declare_parm_level.
9788
9789         * c-pragma.c (apply_pragma_weak): Don't complain about a
9790         redundant #pragma weak.
9791
9792         * objc/objc-act.c (forward_declare_categories,
9793         build_selector_reference_decl, build_class_reference_decl,
9794         build_objc_string_decl, synth_forward_declarations,
9795         build_protocol_reference): Set TREE_PUBLIC on synthetic
9796         forward decl to 0, consistent with eventual definition.
9797         Correct comments to match.
9798
9799         * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
9800         in regexp that don't form a range expression.
9801         * fixinc/fixincl.def: Regenerate.
9802
9803 2003-07-17  Richard Henderson  <rth@redhat.com>
9804
9805         PR target/10907
9806         * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
9807         even with !TARGET_CONST_GP.
9808         (ia64_function_ok_for_sibcall): Reject non-local functions.
9809
9810 2003-07-17  Steven Bosscher  <steven@gcc.gnu.org>
9811
9812         * c-common.c (c_estimate_num_insns_1): Don't handle
9813         METHOD_CALL_EXPR.
9814         * expr.c (safe_from_p): Likewise.
9815         * gengtype.c (adjust_field_tree_exp): Likewise.
9816         * stmt.c (warn_if_unused_value): Likewise
9817         * tree.c (first_rtl_op): Likewise.
9818         * tree.def: Don't define METHOD_CALL_EXPR.
9819         * java/lang.c (java_estimate_num_insns_1): Don't handle
9820         METHOD_CALL_EXPR.
9821
9822 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
9823
9824         PR other/11466
9825         * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
9826         and its restrictions for the SPARC64 port.
9827         Move the entry of "-mimpure-text" before that of "-mv8".
9828
9829 2003-07-17  Eric Botcazou <ebotcazou@libertysurf.fr>
9830             Phil Edwards <phil@jaj.com>
9831
9832         * doc/install.texi (*-*-solaris2*): Document the step-by-step
9833         procedure to bootstrap and install.
9834         Document the preference for the legacy Sun tools in /usr/bin
9835         over the POSIX tools in /usr/xpg4/bin for the build process.
9836
9837 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
9838
9839         * c.opt: Document Uncodumented; use it.  Document ObjC options.
9840         * opts.c (print_filtered_help): Skip undocumented switches.
9841         * opts.h (CL_UNDOCUMENTED): New.
9842         * opts.sh: Handle Undocumented.
9843         * toplev.c (documented_lang_options): Prevent its becoming empty.
9844 objc:
9845         * lang-options.h: Remove.
9846
9847 2003-07-16  Ulrich Weigand  <uweigand@de.ibm.com>
9848
9849         * loop.c (check_ext_dependent_givs): Pass const struct loop *
9850         instead of struct loop_info * as argument.  Accept BIVs with
9851         increment +/- 1 provided there is a friendly exit test against
9852         a loop-invariant value.
9853         (strength_reduce): Adapt call to check_ext_dependent_givs.
9854
9855 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
9856             Con Bradley <con.bradley@superh.com>
9857
9858         * sh-protos.h (sh_get_pr_initial_val): Declare.
9859         * sh.c (regno_reg_class): Make its elements type enum reg_class.
9860         (output_stack_adjust): Remove emit_fn argument.  Add epilogue_p
9861         and live_regs_mask arguments.  Changed all callers.
9862         (save_schedule_s): New structure.
9863         (save_schedule): New typedef.
9864         (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
9865         (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
9866         In interrupts handlers, also save registers that are usually
9867         partially saved, and make sure there is at least one general purpose
9868         register saved if a target register needs saving.
9869         Add casts in comparisons to avoid warnings.
9870         (sh_media_register_for_return): return -1 for interrupt handlers.
9871         (MAX_SAVED_REGS, MAX_TEMPS): New defines.
9872         (sh_expand_prologue): Use sh5_schedule_saves.  Check that any temp
9873         registers used are available.
9874         Set RTX_FRAME_RELATED_P where appropriate.
9875         Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
9876         (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
9877         (initial_elimination_offset): Likewise.
9878         * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
9879         (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
9880         (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
9881         (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
9882         (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
9883         and for target registers.
9884         (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
9885         (regno_reg_class): Make its elements type enum reg_class.
9886         (CONSTRAINT_LEN): Don't use isdigit.
9887         (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
9888         (FUNCTION_ARG): Add parentheses to avoid warnings.
9889         (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
9890         (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
9891         (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
9892         (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
9893         * sh.md (xordi3+1): Remove unused variable regno.
9894         (return_media): Check that tr0 is available before using it.
9895
9896 2003-07-16  Neil Booth  <neil@daikokuya.co.uk>
9897
9898         * c.opt: Document more options.
9899
9900 2003-07-16  Roger Sayle  <roger@eyesopen.com>
9901
9902         * combine.c (subst): Also handle (subreg (const_double ...)) case
9903         if created by a substitution, by using the original inner mode.
9904
9905 2003-07-16  Roger Sayle  <roger@eyesopen.com>
9906
9907         * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
9908         to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
9909         (simplify_rtx): Likewise.  Simplify (lo_sum (high X) X) as X.
9910
9911 2003-07-16  Andrew Pinski  <pinskia@physics.uc.edu>
9912
9913         * doc/install.texi (--without-headers): New.
9914
9915         Partial Fix PR/10129
9916         * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
9917         (machopic_output_function_base_name): New; print the true pic label.
9918         (machopic_classify_ident): Pic Base is always a defined data.
9919         * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
9920         * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
9921
9922         * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
9923         if they are not floating point registers.
9924
9925         PR c/10962
9926         * ggc.h: Add header guards.
9927         * c-decl.c (finish_struct): Sort fields if
9928         number greater than 15 and there are no
9929         anonymous structs/unions.
9930         * c-common.h: Include ggc.h.
9931         (sorted_fields_type): New struct.
9932         (field_decl_cmp): New prototype.
9933         (resort_sorted_fields): New prototype.
9934         (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
9935         * c-tree.h: (lang_type): Use pointer to sorted_fields_type
9936         as s, removing other fields.
9937         * c-typeck.c (lookup_field): Use s in lang_type.
9938         These were mostly moved from cp/class.c:
9939         * c-common.c (field_decl_cmp): New static function.
9940         (field_decl_cmp): New function.
9941         (resort_sorted_fields): New function.
9942
9943 2003-07-16  Geoffrey Keating  <geoffk@apple.com>
9944
9945         * config/darwin.c (machopic_select_section): Use decl_readonly_section
9946         to do most of the work.
9947
9948 2003-07-16  Hans-Peter Nilsson  <hp@bitrange.com>
9949
9950         * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
9951         * config/mmix/mmix.c: Convert functions to ISO C90.
9952         (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
9953         formatting.
9954         (mmix_get_hard_reg_initial_val): Tweak section head comment.
9955
9956 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
9957
9958         * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
9959
9960 2003-07-16  Jakub Jelinek  <jakub@redhat.com>
9961
9962         * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
9963         (uw_update_context_1): Use it.
9964         * config/rs6000/rs6000.c (insn_after_throw): Remove.
9965         (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
9966         in parent frame if _Unwind_* called directly instead of through
9967         .plt.
9968         (rs6000_emit_eh_toc_restore): Remove.
9969         (rs6000_emit_prologue): Update stack pointer before doing any saving
9970         if current_function_calls_eh_return.  Generate unwind info for $r2.
9971         (rs6000_emit_epilogue): Restore stack pointer after doing all
9972         restoring if current_function_calls_eh_return.  Restore $r2.
9973         * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
9974         * config/rs6000/rs6000.md (eh_return): Remove call to
9975         rs6000_emit_eh_toc_restore.
9976         * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
9977         * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
9978
9979 2003-07-15  Jakub Jelinek  <jakub@redhat.com>
9980
9981         * expr.c (emit_block_move): Don't move anything if size is const 0.
9982         (clear_storage): Test against const0_rtx instead of comparing INTVAL
9983         against 0.
9984
9985 2003-07-15  David S. Miller  <davem@redhat.com>
9986
9987         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
9988         emit nop if the last real insn is CALL_INSN.
9989
9990 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
9991
9992         * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
9993         as "nul".
9994         * config/i386/xm-mingw32.h: Change GNU CC to GCC.
9995
9996 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
9997
9998         * config/i386/winnt.c (associated_type): Artificial methods are not
9999         affected by the import/export status of their class unless they are
10000         COMDAT.
10001         (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
10002
10003         * config/i386/winnt.c: Fix GCC copyright comment.
10004
10005 2003-07-16  Gabriel Dos Reis  <gcc@integrable-solutions.net>
10006
10007         PR c++/11531
10008         * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
10009         not recursing on hard error.
10010         (diagnostic_for_decl): Likewise.
10011         * diagnostic.def: Rearrange.
10012
10013 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
10014
10015         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
10016         If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
10017
10018 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
10019             Richard Henderson  <rth@redhat.com>
10020
10021         * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
10022         to decide if to access a _Unwind_Ptr or a _Unwind_Word.
10023         (_Unwind_SetGR): Likewise.
10024         (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
10025         (Unwind_SpTmp): New typedef.
10026         (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
10027         (uw_update_context): Use _Unwind_GetPtr.
10028         (init_dwarf_reg_size_table): Move above uw_init_context_1.
10029         (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
10030         Use _Unwind_SetSpColumn.
10031         (uw_install_context_1): Don't initialize dwarf_reg_size_table.
10032         Use _Unwind_GetPtr.
10033
10034 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
10035
10036         * c.opt: Document more options.
10037         * toplev.c (documented_lang_options): Remove all local help strings.
10038
10039 2003-07-15  Mark Mitchell  <mark@codesourcery.com>
10040
10041         PR debug/11473
10042         * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
10043         base classes.
10044
10045 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
10046
10047         PR target/10795
10048         * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
10049         swap comparison operands if doing so would generate an
10050         unrecognizable insn.
10051
10052 2003-07-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
10053
10054         PR optimization/11320
10055         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
10056         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
10057         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
10058         current_sched_info->compute_jump_reg_dependencies. Record which
10059         registers are used and which registers are set by the jump.
10060         Clear deps->reg_conditional_sets after a barrier.
10061         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
10062         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
10063         (init_deps): Initialize reg_conditional_sets.
10064         (free_deps): Clear reg_conditional_sets.
10065         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
10066         Mark registers live on entry of the fallthrough block and conditionally
10067         set as set by the jump. Mark registers live on entry of non-fallthrough
10068         blocks as used by the jump.
10069         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
10070         Mark new parameters as unused.
10071
10072 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
10073
10074         * doc/invoke.texi: Resync MIPS -march documentation.
10075
10076 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
10077
10078         * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
10079         (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
10080         (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
10081         * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
10082         (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
10083         (mips_issue_rate): Handle PROCESSOR_R9000.
10084         (mips_use_dfa_pipeline_interface): Likewise.
10085         * config/mips/9000.md: New file.
10086         * config/mips/mips.md: Include it.
10087         (define_attr cpu): Add r9000.
10088         (mulsi3_mult3): Use "mul" for rm9000 code.
10089
10090 2003-07-15  Stan Cox  <scox@redhat.com>
10091
10092         * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
10093         (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
10094         (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
10095         * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
10096         (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
10097         (mips_issue_rate): Handle PROCESSOR_R7000.
10098         (mips_use_dfa_pipeline_interface): Likewise.
10099         * config/mips/7000.md: New file.
10100         * config/mips/mips.md: Include it.
10101         (define_attr cpu): Add r7000.
10102         (mulsi3_mult3): Use "mul" for rm7000 code.
10103
10104 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
10105
10106         * config/mips/mips.md (define_attr type): Add condmove.  Use it for
10107         the conditional move patterns.
10108         * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
10109         Check for condmove type.
10110         (ir_vr54_arith): Add move type.
10111         * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
10112         * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
10113
10114 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
10115
10116         * c-opts.c (print_help): Remove.
10117         (c_common_handle_option): Don't handle --help.
10118         * c.opt: Document some options.
10119         (--help): Remove.
10120         * opts.c (print_filtered_help): New.
10121         (print_help): Use it.
10122
10123 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
10124
10125         * c-common.c (c_common_type_for_mode): Handle V4DFmode.
10126         * tree.c: (build_common_tree_nodes_2): Likewise.
10127         * tree.h (enum tree_index): Add TI_V4DF_TYPE.
10128         (V4DF_type_node): New.
10129
10130         * c-opts.c (push_command_line_include): Don't free deferred_opts,
10131         we'll need it.
10132         (finish_options): Reset init_cursor.
10133
10134 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
10135
10136         * expr.c (expand_assignment): Remove an unused argument
10137         SUGGEST_REG.
10138         * expr.h: Update the prototype.
10139         * function.c: Update the callers.
10140         * stmt.c: Likewise.
10141
10142 2003-07-14  Mark Mitchell  <mark@codesourcery.com>
10143
10144         PR debug/11098
10145         * integrate.c (copy_decl_for_inlining): Do not mark copied decls
10146         as DECL_ABSTRACT.
10147
10148 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
10149
10150         * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
10151         with __cplusplus, not "we must use the C++ compiler's type"
10152         * fixinc/inclhack.def (void_null): Note that Interix needs this.
10153         * fixinc/fixincl.x: Regenerate.
10154
10155 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
10156
10157         * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
10158         and unseen_objects from the global data before calling
10159         __deregister_frame_info_bases.
10160         (examine_objects): Insert objects into the seen_objects list,
10161         not unseen_objects.
10162         (_Unwind_Find_FDE): Always unlock the global object lists, even if
10163         we couldn't allocate a data structure to put in it.
10164
10165         * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
10166         (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
10167         (SET_TYPE_PROTOCOL_LIST): New.
10168         * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
10169         (get_object_reference): Likewise.
10170
10171 2003-07-14  Jan Hubicka  <jh@suse.cz>
10172
10173         * cfglayout.c (locator_file): Break out from ....
10174         (insn_file): ... here.
10175         (locator_line): Break out from ....
10176         (insn_line): ... here.
10177         * rtl.h (locator_file, locator_line): Declare.
10178         (final_start_function): Set proper line/file info.
10179
10180 2003-07-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10181
10182         * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
10183         handled by pp_c_cast_expression.
10184
10185 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
10186
10187         * config/mips/mips.c (mips_expand_prologue): Use a single insn to
10188         allocate 32768 bytes of stack.  Use addition rather than subtraction
10189         when a single insn is enough.
10190         * config/mips/mips.md: Remove insns and splitters for subtracting
10191         constants.
10192         (subsi3): Only accept register operands.
10193         (subsi3_internal): Likewise.  Use for TARGET_MIPS16 as well.
10194         (subdi3_internal_3, subsi3_internal_2): Likewise.
10195         (casesi): Use expand_binop to subtract the lower bound.
10196
10197 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
10198
10199         * config/mips/mips.c (mips_in_small_data_p): Don't handle
10200         TARGET_MIPS16 specially.
10201
10202 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
10203
10204         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
10205         mips_output_aligned_bss.
10206         * config/mips/linux.h: Likewise.
10207         * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
10208         * config/mips/mips.c (mips_output_aligned_bss): New function.
10209
10210         * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
10211         * config/mips/elf64.h: Likewise.
10212
10213         * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
10214         mips_declare_object_name.
10215         (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
10216         * config/mips/elf64.h: As for elf.h.
10217         * config/mips/iris6.h: Likewise.
10218         * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
10219         * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
10220         do...while (0) block.
10221         * config/mips/mips-protos.h (mips_declare_object_name): Declare.
10222         (mips_finish_declare_object): Declare.
10223         * config/mips/mips.c (mips_declare_object_name): New function.
10224         (mips_finish_declare_object): New function.
10225
10226         * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
10227         * config/mips/linux.h: Likewise.
10228
10229         * config/mips/mips.c (inside_function): Delete.
10230         (file_in_function_warning, ignore_line_number): Delete.
10231         (mips_output_filename): Don't warn about changing filenames within
10232         a function.
10233         (mips_output_lineno): Update accordingly.
10234         (mips_output_function_prologue): Don't reset the deleted variables.
10235         * config/mips/mips.h (inside_function): Delete.
10236         (file_in_function_warning, ignore_line_number): Delete.
10237
10238         * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
10239         * config/mips/elf64.h: Likewise.
10240         * config/mips/openbsd.h: Likewise.
10241         * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
10242         * config/mips/linux.h: Likewise.
10243         * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
10244         (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
10245
10246         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
10247         to the list of include files when using gas.
10248         (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
10249         * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
10250         * config/mips/elf64.h: Likewise.
10251         * config/mips/iris5.h: Likewise.
10252         * config/mips/linux.h: Likewise.
10253         * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
10254         * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
10255         (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
10256         * config/mips/sdb.h: ...this new file.
10257
10258 2003-07-14  Douglas Rupp  <rupp@gnat.com>
10259
10260         * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
10261         argument to getcwd; use fixed buffer instead.
10262
10263 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
10264
10265         * fixinc/mkfixinc.sh: Treat OpenBSD normally.
10266         * fixinc/fixinc.wrap: Delete.
10267
10268 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
10269
10270         * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
10271         don't have 2.
10272
10273 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
10274
10275         * ggc-page.c (struct globals): Add new fields to keep track of the
10276         total allocated memory and overhead.
10277         (ggc_print_statistics): Print them.
10278         (ggc_alloc): Keep track of the total allocated memory and the
10279         overhead.
10280
10281         * tree.c (dump_tree_statistics): Increase spacing.
10282         (enum tree_node_kind): Move to ...
10283         * tree.h (enum tree_node_kind): ... here.
10284         (tree_node_counts, tree_node_sizes): Declare.
10285
10286 2003-07-14  James A. Morrison  <ja2morri@student.math.uwaterloo.ca>
10287
10288         * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
10289
10290 2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10291
10292         PR optimization/11440
10293         * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
10294         SIGN_EXTRACT SETs.
10295
10296 2003-07-14  Alan Modra  <amodra@bigpond.net.au>
10297
10298         * doc/tm.texi (BLOCK_REG_PADDING): Describe.
10299         * expr.h (struct locate_and_pad_arg_data): Add where_pad.
10300         (emit_group_load, emit_group_store): Adjust declarations.
10301         Remove most occurrences of #ifdef TREE_CODE.
10302         * expr.c (emit_group_load): Add "type" param, and use
10303         BLOCK_REG_PADDING to determine need for a shift.  Optimize non-
10304         aligned accesses if !SLOW_UNALIGNED_ACCESS.
10305         (emit_group_store): Likewise.
10306         (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
10307         emit_group_load and emit_group_store calls.
10308         * calls.c (store_unaligned_arguments_into_pseudos): Tidy.  Use
10309         BLOCK_REG_PADDING to determine whether we need endian_correction.
10310         (load_register_parameters): Localize vars.  Handle shifting of
10311         small values to the correct end of regs.  Adjust emit_group_load
10312         call.
10313         (expand_call, emit_library_call_value_1): Adjust emit_group_load
10314         and emit_group_store calls.
10315         * function.c (assign_parms): Set mem alignment for stack slots.
10316         Adjust emit_group_store call.  Store values at the "wrong" end
10317         of regs to the stack.  Use BLOCK_REG_PADDING.
10318         (locate_and_pad_parm): Save where_pad.
10319         (expand_function_end): Adjust emit_group_load call.
10320         * stmt.c (expand_value_return): Adjust emit_group_load call.
10321         * Makefile.in (calls.o): Depend on $(OPTABS_H).
10322         * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
10323         (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
10324         (MUST_PASS_IN_STACK): Define.
10325         (BLOCK_REG_PADDING): Define.
10326         * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
10327         (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
10328         * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
10329         (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
10330         Act on AGGREGATES_PAD_UPWARD_ALWAYS.
10331
10332 2003-07-13  Aaron W. LaFramboise  <awlaframboise@aol.com>
10333
10334         * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
10335
10336 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10337
10338         * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
10339         both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
10340
10341 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
10342
10343         PR other/11123
10344         * toplev.c: Don't cut off option names.
10345
10346 2003-07-13  Andreas Jaeger  <aj@suse.de>
10347
10348         * c-decl.c (link_hash_hash): Avoid warning about casting pointer
10349         to integer of different size.
10350
10351 2003-07-13  Kazu Hirata  <kazu@cs.umass.edu>
10352
10353         * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
10354         to (eq (and X 1) 0).
10355
10356 2003-07-13  Andreas Jaeger  <aj@suse.de>
10357
10358         * config.gcc: Add pmmintrin.h for x86_64-*-*.
10359
10360 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
10361
10362         * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
10363         (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
10364         list.  Move these all together down by cpplib.
10365
10366         * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
10367         definition of CPPCHAR_SIGNED_T.
10368
10369         * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
10370         * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
10371         * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
10372
10373         * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
10374         * cppinit.c (cpp_create_reader): Likewise.
10375
10376         * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
10377         * cpptrad.c: Likewise.  All callers changed.
10378         * cpplib.c: All callers changed.
10379         * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
10380         * hashtable.h: Define GTY(x) to nothing here too.
10381
10382 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10383
10384         * stor-layout.c (compute_record_mode): Remove very obsolete test
10385         that forces BLKmode for records with fields crossing word boundary.
10386
10387 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
10388
10389         * Makefile.in: Remove orphan reference to acconfig.h.
10390
10391 2003-07-13  Andreas Jaeger  <aj@suse.de>
10392
10393         * cgraphunit.c: Convert prototypes to ISO C90.
10394
10395 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
10396
10397         * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
10398         (for OpenBSD).
10399         * fixinc/fixincl.x: Rebuild.
10400
10401 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
10402
10403         * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
10404         i?86-*-*.  Use correct name of cache variable.
10405         * configure: Regenerate.
10406
10407 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
10408
10409         * config/alpha/alpha.c: Fix comment typos.
10410         * config/alpha/alpha.md: Likewise.
10411         * config/arm/arm.c: Likewise.
10412         * config/arm/arm.md: Likewise.
10413         * config/arm/lib1funcs.asm: Likewise.
10414         * config/avr/avr.md: Likewise.
10415         * config/arm/README-interworking: Fix typos.
10416
10417 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
10418
10419         * c-format.c: Fix comment formatting.
10420         * c-typeck.c: Likewise.
10421         * coverage.c: Likewise.
10422         * cppcharset.c: Likewise.
10423         * cpplib.c: Likewise.
10424         * dbxout.c: Likewise.
10425         * gcov-io.h: Likewise.
10426         * toplev.c: Likewise.
10427
10428 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
10429
10430         * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
10431         fix.
10432
10433 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
10434
10435         * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
10436         uses three-argument AC_DEFINE so no acconfig.h entries are
10437         needed.
10438         (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
10439         which contains the GAS version number as a scaled integer.
10440         (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers.  Add
10441         ability to check for ELF assembler.
10442         (gcc_GAS_CHECK_FEATURE): New macro.
10443         * configure.in: Use gcc_AC_CHECK_TYPE.  Rewrite all
10444         assembler feature checks using gcc_GAS_CHECK_FEATURE.
10445         Use three-argument AC_DEFINE everywhere.
10446         * acconfig.h: Deleted.
10447         * config.in, configure: Regenerate.
10448
10449 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
10450
10451         * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
10452         (on OpenBSD).
10453         * fixinc/fixincl.x: Regenerate.
10454
10455         * fixinc/inclhack.def (gnu_types): Improve comment.
10456
10457 2003-07-12  Andreas Jaeger  <aj@suse.de>
10458
10459         * fp-test.c (main): Use ISO C90 prototype.
10460
10461         * version.c: Remove unneded include of ansidecl.h.
10462
10463         * cgraph.h: Convert prototypes to ISO C90.
10464         * cgraph.c: Likewise.
10465         * fix-header.c: Likewise.
10466         * ra.h: Likewise.
10467         * protoize.c: Likewise.
10468
10469 2003-07-12  Jan Hubicka  <jh@suse.cz>
10470
10471         * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
10472         warning.
10473
10474 2003-07-12  Jan Hubicka  <jh@suse.cz>
10475                                Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10476
10477         * cgraph.c (cgraph_max_uid): New global variable.
10478         (cgraph_node): Set uid field.
10479         (create_edge): Keep inline flags consistent.
10480         (dump_cgraph): Dump more info.
10481         * cgraph.h (struct cgraph_local_info): Remove inline_many and
10482         can_inline_once; add inlinable, disgread_inline_limits, and self_insn
10483         (struct cgraph_global_info): Add insns, calls, cloned_times,
10484         will_be_output.
10485         (struct cgraph_node): Add uid.
10486         (struct cgraph_edge): Add inline_call.
10487         (cgraph_max_uid, cgraph_inline_p): Declare.
10488         * cgraph.c: Include params.h and fibheap.h
10489         (cgraph_mark_functions_to_inline_once): Kill.
10490         (INSNS_PER_CALL): New constant.
10491         (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
10492         static variables.
10493         (cgraph_finalize_function): Do not analyze inlining.
10494         (cgraph_finalize_compilation_unit): Set inlining attributes.
10495         (cgraph_mark_functions_to_output): More consistency checks.
10496         (cgraph_optimize_function): Set current_function_decl to NULL.
10497         (cgraph_expand_function): Use new inline flags.
10498         (cgraph_postorder): Expand from cgraph_expand_functions.
10499         (INLINED_TIMES, SET_INLINED_TIMES): New macros.
10500         (cgraph_inlined_into, cgraph_inlined_callees,
10501         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
10502         cgraph_mark_inline, cgraph_check_inline_limits,
10503         cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
10504         cgraph_decide_inlining, cgraph_inline_p): New functions.
10505         * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
10506         PARAM_INLINE_UNIT_GROWTH): New parameters.
10507         * tree-inline.c (struct inline_data): New field current_decl.
10508         (expand_call_inline): Avoid forward declarations; use
10509         inlinable_function_p.
10510         (optimize_inline_calls): Set id.current_decl.
10511
10512 2003-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
10513
10514         * configure.in: Remove wrongly added definition of
10515         local_prefix.
10516         * configure: Regenerate.
10517
10518 2003-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
10519
10520         * rtl.def (NOTE): Do not use padding.
10521
10522 2003-07-11  Dara Hazeghi  <dhazeghi@yahoo.com>
10523
10524         * doc/install.tex: Update required binutils for i?86-*-linux*
10525
10526 2003-07-11  Richard Henderson  <rth@redhat.com>
10527
10528         * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
10529
10530 2003-07-11  Mark Mitchell  <mark@codesourcery.com>
10531
10532         * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
10533         TRANSLATION_UNIT_DECL as top_level.
10534
10535 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
10536
10537         * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
10538         then fall back to cmpstrM.
10539         * builtins.c (expand_builtin_memcmp): Likewise.
10540         * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
10541         (s390_expand_cmpmem): ... this.
10542         * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
10543         cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
10544         from cmpstr* patterns.  Rename call to s390_expand_cmpstr
10545         to s390_expand_cmpmem.
10546         * config/s390/s390.c (s390_expand_cmpstr): Rename to...
10547         (s390_expand_cmpstr): ... this.  Rename cmpstr* instructions
10548         to cmpmem*.
10549         * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
10550         cmpstr* patterns.
10551         * doc/md.texi (cmpstrM): Describe as String compare insn, not
10552         Block compare insn.
10553         (cmpmemM): Add.
10554
10555 2003-07-11  Loren James Rittle  <ljrittle@acm.org>
10556
10557         * config/i386/freebsd.h (SET_ASM_OP): Remove.
10558         (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
10559         (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
10560          MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
10561
10562 2003-07-11  Richard Henderson  <rth@redhat.com>
10563
10564         * function.c (assign_parms): Don't recombine complex args if
10565         fnargs is unchanged from orig_fnargs.
10566         (split_complex_args): Return args without complex before copying.
10567         Re-layout the modified parameters.
10568
10569 2003-07-11  J"orn Rennecke <joern.rennecke@superh.com>
10570
10571         * regclass.c (choose_hard_reg_mode): Add third argument.
10572         Changed all callers.
10573         * rtl.h (choose_hard_reg_mode): Update declaration.
10574         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
10575         Take HARD_REGNO_CALL_PART_CLOBBERED into account.
10576
10577 2003-07-11  Geoffrey Keating  <geoffk@apple.com>
10578
10579         * c-decl.c (finish_decl): Handle 'used' here...
10580         * cgraphunit.c (cgraph_finalize_function): ... and here ...
10581         * c-common.c: (handle_used_attribute): ... not here.
10582
10583         * configure.in (onstep): Support --enable-intermodule.
10584         * Makefile.in (OBJS-common): New.
10585         (OBJS-md): New.
10586         (OBJS-archive): New.
10587         (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
10588         (OBJS-onestep): New.
10589         (libbackend.a): Support @onestep@.
10590         (libbackend.o): New.
10591         * configure: Regenerate.
10592
10593         * c-common.h (c_reset_state): New prototype.
10594         (c_parse_file): New prototype.
10595         (finish_file): Move prototype from c-tree.h.
10596         * c-decl.c: Include <hashtab.h>.
10597         (builtin_decls): New.
10598         (current_file_decl): New.
10599         (duplicate_decls): Add extra parameter. Change all callers.  Don't
10600         output duplicate common symbols.
10601         (link_hash_hash): New.
10602         (link_hash_eq): New.
10603         (poplevel): Handle popping of the top level.
10604         (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
10605         (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
10606         (pushdecl_top_level): Likewise.
10607         (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
10608         (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
10609         (finish_decl): Handle TRANSLATION_UNIT_DECL.
10610         (merge_translation_unit_decls): New.
10611         (c_write_global_declarations): New.
10612         (c_reset_state): New.
10613         (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
10614         * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
10615         * c-objc-common.c (c_cannot_inline_tree_fn): Handle
10616         TRANSLATION_UNIT_DECL.
10617         (c_objc_common_finish_file): Call merge_translation_unit_decls.
10618         * c-opts.c (in_fnames): Rename from in_fname.
10619         (c_common_decode_option): Handle multiple input filenames.
10620         (c_common_post_options): Likewise.
10621         (c_common_parse_file): Likewise; also, call c_parse_file rather than
10622         yyparse.
10623         * c-parse.in: Move cleanup code to c_parse_file.
10624         (free_parser_stacks): Move contents to c_parse_file.
10625         (c_parse_file): New.
10626         * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
10627         for integer types.
10628         (C_DECL_FILE_SCOPE): New.
10629         (finish_file): Move prototype to c-common.h.
10630         (merge_translation_unit_decls): New prototype.
10631         (comptypes): Add extra parameter to prototype.
10632         (c_write_global_declarations): New prototype.
10633         * c-typeck.c (tagged_types_tu_compatible_p): New.
10634         (function_types_compatible_p): Add extra parameter, change all callers.
10635         (type_lists_compatible_p): Likewise.
10636         (comptypes): Likewise.
10637         (struct tagged_tu_seen): New.
10638         (tagged_tu_seen_base): New.
10639         (build_unary_op): Handle TRANSLATION_UNIT_DECL.
10640         (c_mark_addressable): Remove #if 0 code.
10641         * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
10642         comment explaining why it shouldn't have to.
10643         * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
10644         options.
10645         * cppinit.c (cpp_read_next_file): New.
10646         (cpp_read_main_file): Use it.
10647         * cpplib.c (undefine_macros): New.
10648         (cpp_undef_all): New.
10649         * cpplib.h (cpp_read_next_file): Prototype.
10650         (cpp_undef_all): Prototype.
10651         * langhooks-def.h (write_global_declarations): Remove prototype.
10652         * toplev.h (write_global_declarations): Add prototype.
10653         * tree.c (decl_type_context): Use switch statement, handle
10654         TRANSLATION_UNIT_DECL.
10655         * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
10656         (TRANSLATION_UNIT_DECL): New kind of tree.
10657         * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
10658         * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
10659         * doc/invoke.texi: Make attempt to document new functionality.
10660
10661         2003-05-19  Per Bothner <bothner@apple.com>
10662
10663         * gcc.c (combine_inputs): New.
10664         (process_command): Set combine_inputs.
10665         (do_spec_1): Handle combine_inputs.
10666         (main): Likewise.
10667
10668 2003-07-10  James E Wilson  <wilson@tuliptree.org>
10669
10670         PR optimization/9745
10671         * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
10672         loop_insn_emit_before.
10673         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
10674
10675 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
10676
10677         * cppcharset.c: Fix comment.
10678         (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
10679         (EILSEQ): #define to EINVAL if not already defined.
10680         (convert_using_iconv): #if out when !HAVE_ICONV.
10681         (init_iconv_desc): Handle !HAVE_ICONV here...
10682         (cpp_init_iconv): ...not here.
10683
10684 2003-07-11  Neil Booth  <neil@daikokuya.co.uk>
10685
10686         * common.opt: More --help messages.
10687         * opts.c (print_help): Use puts().
10688         * toplev.c (f_options): Remove help text.
10689         (display_help): Don't dump f_options.
10690
10691 2003-07-11  Nathanael Nerode  <neroden@gcc.gnu.org>
10692
10693         * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
10694         Move i?86-*-interix* to the don't-fix list.
10695         * fixinc/fixinc.interix: Delete with extreme prejudice.
10696
10697 2003-07-10  Dara Hazeghi  <dhazeghi@yahoo.com>
10698
10699         PR bootstrap/10758
10700         * doc/install.texi: Document requirements for ia64-*-hpux* target.
10701
10702 2003-07-10  Roger Sayle  <roger@eyesopen.com>
10703
10704         * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
10705
10706 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
10707
10708         * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
10709         one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
10710         one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
10711         convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
10712         convert_no_conversion, convert_using_iconv): New functions.
10713         (APPLY_CONVERSION): New macro.
10714         (struct conversion, conversion_tab): New data structure.
10715         (init_iconv_desc): Check conversion_tab for a custom conversion
10716         primitive before trying to use iconv.
10717         (convert_cset): Deleted.
10718         (cpp_init_iconv): Use UTF- terminology, not UCS-.
10719         (_cpp_destroy_iconv): Update to match.
10720         (_cpp_valid_ucn): We don't need iconv to implement UCNs.
10721         (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
10722         (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
10723         (_cpp_interpret_string_notranslate): New function, moved here
10724         from cpplib.c.
10725
10726         * cpphash.h (convert_f, struct cset_converter): New types.
10727         (struct cpp_reader): narrow_cset_desc and wide_cset_desc
10728         are now struct cset_converter, not bare iconv_t.
10729         Update prototypes.
10730         * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
10731         all callers changed.
10732
10733 2003-07-10  Kelley Cook  <kelleycook@wideopenwest.com>
10734
10735         * Makefile.in (options.h): Depend on Makefile.  Add move-if-change
10736         to opts.sh command line.
10737         * opts.sh: Write to temporary files with a move-if-change at the end.
10738
10739 2003-07-10  Denis Chertykov  <denisc@overta.ru>
10740             Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10741
10742         * combine.c (gen_binary): Handle the CLOBBER rtx and
10743         don't build a binary operation with it.
10744
10745 2003-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10746
10747         * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
10748         store_killed_after, store_killed_before): Keep track of the correct
10749         dependency function to use.
10750
10751 2003-07-10  Steven Bosscher  <steven@gcc.gnu.org>
10752         * toplev.c (do_compile): Don't try to open dump files before
10753         lang_dependent_init initializes dump_base_name.
10754
10755 2003-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10756
10757         * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
10758         Use ARRAY_SIZE.
10759         * config/frv/frv.c (frv_expand_builtin): Likewise.
10760         * config/sh/sh.c (sh_media_init_builtins): Likewise.
10761
10762 2003-07-09  Mark Mitchell  <mark@codesourcery.com>
10763
10764         PR c++/10032
10765         * doc/invoke.texi (C++ Dialect Options): Change documentation of
10766         -fpermissive.
10767
10768 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
10769
10770         * tm.texi (RETURN_ADDR_OFFSET): Document.
10771
10772 2003-07-10  Nathan Sidwell  <nathan@codesourcery.com>
10773
10774         * gcov-io.h: Update documentation.
10775         (GCOV_UNSIGNED2STRING): New.
10776         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
10777         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
10778         GCOV_TAG_SUMMARY_LENGTH): Adjust.
10779         (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
10780         GCOV_TAG_COUNTER_NUM): New.
10781         (GCOV_BLOCK_SIZE): Number of words.
10782         (gcov_var): Adjust buffer type.
10783         * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
10784         (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
10785         count, not byte count.
10786         (gcov_open): Adjust overread init.
10787         (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
10788         gcov_write_string, gcov_write_tag, gcov_write_length,
10789         gcov_write_tag_length): Adjust.
10790         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
10791         (gcov_sync, gcov_seek): Adjust.
10792         * gcov-dump.c (print_usage): Show gcc version only.
10793         (dump_file): Use GCOV_UNSIGNED2STRING.
10794         (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
10795         * gcov.c (print_version): Show gcc version only.
10796         (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
10797         GCOV_TAG_*_NUM macros.
10798         (read_count_file): Use GCOV_UNSIGNED2STRING. Use
10799         GCOV_TAG_COUNTER_LENGTH.
10800         * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
10801         Use GCOV_TAG_COUNTER_NUM.
10802         * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
10803         (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
10804
10805 2003-07-10  Andreas Schwab  <schwab@suse.de>
10806
10807         * gcov-dump.c (dump_file): Fix missing address operator.
10808
10809 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
10810
10811         PR c/11449
10812         * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
10813         of HOST_WIDE_INT.
10814         (fold_single_bit_test): If sign_bit_p() fails, assume that the
10815         bit being tested is not a sign bit.
10816
10817 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
10818
10819         * config/h8300/h8300.md (a peephole2): New.
10820
10821 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
10822
10823         2001-12-13  Alexandre Oliva  <aoliva@redhat.com>
10824         * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
10825         from ld-linux.so.2 to ld.so.1.
10826         2001-11-18  Alexandre Oliva  <aoliva@redhat.com>
10827         * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
10828         * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
10829         nor -Wl,-rpath-link.
10830         (LIB_SPEC): Add -rpath-link if !static.
10831         2001-08-22  Alexandre Oliva  <aoliva@redhat.com>
10832         * config/mn10300/mn10300.c (mn10300_protect_label): New
10833         variable.
10834         * config/mn10300/linux.h (PRINT_OPERAND,
10835         PRINT_OPERAND_ADDRESS): Set it during their execution.
10836         (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
10837         mn10300_protect_label is set.
10838         * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
10839         -Wl,-rpath-link.
10840         (LIB_SPEC, STARTFILE_SPEC): Define.
10841         2001-05-11  Alexandre Oliva  <aoliva@redhat.com>
10842         * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
10843         FLOAT_BIT_ORDER_MISMATCH.
10844         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
10845         * config.gcc (am33_2.0-*-linux*): Added.
10846         * config/mn10300/linux.h: New.
10847         * config/mn10300/t-linux: New.
10848
10849 2003-07-10  Andreas Jaeger  <aj@suse.de>
10850
10851         * fold-const.c: Properly wrap prototypes.
10852
10853 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
10854
10855         2003-06-16  Alexandre Oliva  <aoliva@redhat.com>
10856         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
10857         Moved from...
10858         * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
10859         * config/mn10300/mn10300.h: GTY-declare it.
10860         2003-06-11  Alexandre Oliva  <aoliva@redhat.com>
10861         * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
10862         prototype.  Use incoming RTL argument.
10863         2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
10864         * config/mn10300/mn10300.md (int_label): Move C statements...
10865         (GOTaddr2picreg): ... here.
10866         2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
10867         * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
10868         * config/mn10300/mn10300.c (mn10300_encode_section_info):
10869         ... here.  New function.
10870         (TARGET_ENCODE_SECTION_INFO): Define to it.
10871         2001-11-04  Alexandre Oliva  <aoliva@redhat.com>
10872         * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
10873         pattern name.
10874         (mn10300_loadPC): Define as insn splittable after reload.
10875         2001-05-13  Alexandre Oliva  <aoliva@redhat.com>
10876         * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
10877         be defined in .rodata even in PIC, now that the assembler
10878         supports that.
10879         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
10880         * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
10881         symbol take an underscore prefix.
10882         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
10883         * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
10884         legitimize_pic_address): Declare.
10885         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
10886         the PIC register as fixed.
10887         (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
10888         (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
10889         PIC.
10890         (LEGITIMATE_PIC_OPERAND_P): Define.
10891         (PIC_OFFSET_TABLE_REGNUM): Define.
10892         (GOT_SYMBOL_NAME): Define.
10893         (SYMBOLIC_CONST_P): Define.
10894         (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
10895         symbols.
10896         (MN10300_GLOBAL_P): Test it.
10897         (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
10898         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
10899         * config/mn10300/mn10300.c (print_operand): Handle unspec.
10900         (expand_prologue): Set PIC register.
10901         (call_address_operand): Don't match SYMBOL_REFs in PIC.
10902         (legitimize_address): Call legitimize_pic_address.
10903         (legitimize_pic_address): New fn.
10904         (legitimate_pic_operand_p): New fn.
10905         * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
10906         (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
10907         UNSPEC_PLT): New constants.
10908         (pop_pic_reg): New insn.
10909         (movsi): Adjust non-PIC addresses.
10910         (builtin_setjmp_receiver): Restore the PIC register.
10911         (casesi): New insn.
10912         (call): Adjust non-PIC addresses.
10913         (int_label, GOTaddr2picreg): New expands.
10914         (am33_loadPC): New insn.
10915         (mn10300_loadPC): New expand.
10916         (call_next_insn): New insn.
10917         (add_GOT_to_pic_reg): New expand.
10918         (symGOT2reg, symGOT2reg_i): New expands.
10919         (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
10920         (sym2PIC, sym2PLT): New expands.
10921
10922 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
10923
10924         * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
10925         2001-05-01  Alexandre Oliva  <aoliva@redhat.com>
10926         * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
10927         to flag_unsafe_math_optimizations.
10928         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
10929         * config/mn10300/mn10300.c (expand_prologue): Mark
10930         FP-register-saving insns as frame-related.
10931         2001-02-13  Alexandre Oliva  <aoliva@redhat.com>
10932         * config/mn10300/mn10300.c
10933         (mn10300_get_live_callee_saved_regs): Don't search past
10934         LAST_EXTENDED_REGNUM.
10935         (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
10936         * config/mn10300/mn10300.md: Remove excessive line breaks from
10937         `@' output patterns that were accounted as additional
10938         alternatives.
10939         * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
10940         Re-introduce changes accidentally removed in Richard Sandiford's
10941         2000-12-05's patch.
10942         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
10943         Re-instate am33-2 lost in merge from net GCC.
10944         2000-08-26  Alexandre Oliva  <aoliva@redhat.com>
10945         * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
10946         floating-point registers.
10947         2000-08-07  Alexandre Oliva  <aoliva@redhat.com>
10948         * config/mn10300/mn10300.md (movdf): Revert some am33-specific
10949         pessimizations that had gone in on 2000-05-08.
10950         2000-06-28  Graham Stott  <grahams@cygnus.co.uk>
10951         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
10952         2000-06-22  Graham Stott  <grahams@cygnus.co.uk>
10953         * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
10954         operand 0.
10955         * (movhi): Likewise.
10956         * (movsi): Likewise.
10957         * (movsf): Likewise.
10958         * (movdi): Likewise.
10959         * (movdf): Likewise.
10960         2000-05-24  Alexandre Oliva  <aoliva@cygnus.com>
10961         * config/mn10300/mn10300.c (fp_regs_to_save): New function.
10962         (can_use_return_insn, initial_offset): Add fp_regs_to_save.
10963         (expand_prologue, expand_epilogue): Save and restore FP regs.
10964         2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
10965         * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
10966         2000-05-13  Alexandre Oliva  <aoliva@cygnus.com>
10967         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
10968         subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
10969         Do not clobber cc0.
10970         2000-05-12  Alexandre Oliva  <aoliva@cygnus.com>
10971         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
10972         Discourage the two-argument, longer opcodes.
10973         (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
10974         ones.
10975         * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
10976         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
10977         * config/mn10300/mn10300.md (cmpsf): New pattern.
10978         (branch): Test mdep.fpCC and output fbCC.
10979         * config/mn10300/mn10300.c (print_operand): Output conditions.
10980         (notice_cc_update): Recognize fcmp and set mdep.fpCC.
10981         2000-05-10  Alexandre Oliva  <aoliva@cygnus.com>
10982         * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
10983         mulsf3, divsf3): Use the `F' constraint for FP values.
10984         * config/mn10300/mn10300.c (const_1f_operand): New function.
10985         * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
10986         * config/mn10300/mn10300.md (sqrtsf2): New expand.
10987         (rsqrtsf2): New insn.
10988         2000-05-09  Alexandre Oliva  <aoliva@cygnus.com>
10989         * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
10990         previous check-in.
10991         2000-05-08  Alexandre Oliva  <aoliva@cygnus.com>
10992         * config/mn10300/mn10300.md (abssf2, negdf2): On
10993         TARGET_AM33_2, expand to...
10994         (abssf2_am33_2, negdf2_am33_2): New insns.
10995         (addsf3, subsf3, mulsf3, divsf3): Likewise.
10996         (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
10997         * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
10998         movdi, movdf): Added FP regs.
10999         * invoke.texi (-mam33-2, -mno-am33-2): Document.
11000         2000-04-29  Alexandre Oliva  <aoliva@cygnus.com>
11001         * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
11002         New macros.
11003         (REGNO_AM33_2_FP_P): Renamed to...
11004         (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
11005         (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
11006         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
11007         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
11008         regs from GENERAL_REGS.
11009         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
11010         * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
11011         * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
11012         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
11013         2000-04-23  Alexandre Oliva  <aoliva@cygnus.com>
11014         * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
11015         as FP_REGS.
11016         2000-04-21  Alexandre Oliva  <aoliva@cygnus.com>
11017         * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
11018         (EXTRA_CONSTRAINT): Added OK_FOR_Q.
11019         * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
11020         * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
11021         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
11022         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
11023         AM33/2.0 floating-point registers.
11024         (CONDITIONAL_REGISTER_USAGE): Adjust.
11025         (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
11026         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
11027         (REG_CLASS_FROM_LETTER): Added `f' and `A'.
11028         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
11029         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
11030         (MULTILIB_DIRNAMES): Likewise.
11031         * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
11032         `__AM33_2__' when `-mam33-2' is given.
11033         (TARGET_AM33_2): Define.
11034         (TARGET_SWITCHES): Adjust.
11035         * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
11036         when appropriate.
11037
11038 2003-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
11039
11040         * doc/install.texi: Add missing @.
11041
11042 2003-07-09  Bob Wilson  <bob.wilson@acm.org>
11043
11044         * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
11045
11046 2003-07-09  Aldy Hernandez  <aldyh@redhat.com>
11047
11048         PR/11144
11049         * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
11050
11051 2003-07-09  Nathanael Nerode  <neroden@gcc.gnu.org>
11052
11053         PR bootstrap/11043
11054         * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
11055         "x-crtfini.o" with "crtinit.o", "crtfini.o".
11056
11057         * fixinc/inclhack.def (limits_ifndefs): Add select test.
11058         * fixinc/fixincl.x: Rebuild.
11059
11060         * fixinc/inclhack.def (math_exception):  Improve bypass and comment.
11061         * fixinc/fixincl.x: Rebuild.
11062
11063 2003-07-09  Hans-Peter Nilsson  <hp@bitrange.com>
11064
11065         * doc/install.texi (Configuration): Document the valgrind option
11066         to --enable-checking.
11067
11068 2003-07-09  Jan Hubicka  <jh@suse.cz>
11069
11070         * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
11071
11072 2003-07-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11073
11074         * c-lex.c (cb_ident): Cast cstr.text to const char *.
11075
11076 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
11077
11078         * gcov-io.h: Update documentation.
11079         (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
11080         GCOV_NOTE_MAGIC.
11081         (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
11082         (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
11083         (struct gcov_var): Change buffer's type. Add endian flag.
11084         (gcov_open): Remove mode in libgcov.
11085         (gcov_magic): Prototype.
11086         * gcov-io.c (from_file): New.
11087         (gcov_open): Clear endian flag.
11088         (gcov_magic): New.
11089         (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
11090         pointers.
11091         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
11092         gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
11093         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
11094         * gcov-iov.c (main): Correct cast.
11095         * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
11096         conversion.
11097         (gcov_begin_output): Use GCOV_NOTE_MAGIC.
11098         (coverage_init): Use GCOV_NOTE_SUFFIX.
11099         * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
11100         Rename to gcov_version, and return flag.
11101         (gcov_exit): Use gcov_version.
11102         (__gcov_init): Use gcov_version.
11103         * Makefile.in (coverageexts): Update.
11104         * gcov.c (print_version): Remove endianness conversion.
11105         (create_file_names): Use GCOV_NOTE_SUFFIX.
11106         (read_graph_file): Use gcov_magic.
11107         (read_count_file): Likewise.
11108         * gcov-dump.c (dump_file): Remove endianness conversion, use
11109         gcov_magic.
11110
11111 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
11112
11113         * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
11114         coverage is on.
11115         * configure: Regenerated.
11116         * Makefile.in (ALL_CFLAGS): Correct its comment.
11117
11118 2003-07-08  Mark Mitchell  <mark@codesourcery.com>
11119
11120         * fold-const.c (make_range): Do not access operand 1 for a
11121         zero-operand operator.
11122
11123 2003-07-09  Neil Booth  <neil@daikokuya.co.uk>
11124
11125         * toplev.c (warn_dummy, W_options): Die.
11126         (display_help): Don't print W_options.
11127         * common.opt: Add W_options help from toplev.c.
11128
11129 2003-07-09  Andreas Jaeger  <aj@suse.de>
11130
11131         * opts.c (wrap_help): Only pass int arguments as arguments to
11132         printf's '*' modifier.  Change argument of function.
11133
11134 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
11135
11136         * doc/invoke.texi: Fix misspelling of "@item".
11137
11138 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
11139
11140         * config/i386/i386.md: Remove an old comment about
11141         NOTICE_UPDATE_CC.
11142
11143 2003-07-09  Jan Hubicka  <jh@suse.cz>
11144
11145         * cgraph.c (cgraph_node_name): New function.
11146         (dump_cgraph): Use it.
11147         * cgraph.h (cgraph_dump_file): Declare.
11148         (cgraph_node_name): Declare.
11149         * cgraphunit.c: Include timevar.h
11150         (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
11151         (cgraph_optimize_function): Use TV_INTEGRATION.
11152         (cgraph_mark_local_functions): reorganize dumps.
11153         (cgraph_mark_functions_to_inline_once): Likewise.
11154         (cgraph_optimize): Likewise; use timevar.
11155         * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
11156         * toplev.c (dump_file_index): Add DFI_cgraph.
11157         (dump_file_info): Likewise.
11158         (cgraph_dump_file): New global variable.
11159         (do_compile): Open and close cgraph dump.
11160         * invoke.texi (-d): Document new flag; renumber.
11161
11162 2003-07-08  Roger Sayle  <roger@eyesopen.com>
11163
11164         PR c/11370
11165         * calls.c (emit_call_1): Don't bother popping the arguments off of
11166         the stack after a noreturn function call;  The adjustment is dead.
11167         (expand_call): Likewise.
11168
11169 2003-07-08  Geoffrey Keating  <geoffk@apple.com>
11170
11171         * expr.c (MOVE_MAX_PIECES): Move from here...
11172         * defaults.h (MOVE_MAX_PIECES): ... to here.
11173
11174 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
11175
11176         * Makefile.in (stage1-start): Handle an empty SUBDIRS.
11177
11178 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11179
11180         * genattr.c (internal_dfa_insn_code): Don't prototype.
11181         * genattrtab.c (attr_desc): Add `static_p' field.
11182         (expand_units): Make blockage range and ready cost functions
11183         static.
11184         (write_attr_get): Don't add extern prototypes in C file.  Mark
11185         static functions as appropriate.
11186         (find_attr, make_internal_attr): Initialize static_p.
11187         * genattrtab.h (ATTR_STATIC): New macro.
11188         * genautomata.c (output_internal_reset_func): Mark output function
11189         as inline.
11190         (make_internal_dfa_insn_code_attr): Mark output function as static.
11191
11192 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11193
11194         * genattrtab.h: Add new macros for attr `special' flags.
11195         * genattrtab.c (attr_desc): Reorder/resize fields better.
11196         Use attr `special' macros in all calls to make_internal_attr.
11197         * genautomata.c: Likewise.
11198
11199 2003-07-09  Jan Hubicka  <jh@suse.cz>
11200
11201         * c-common.c (c_estimate_num_insns_1): New static function.
11202         (c_estimate_num_insns): New global function.
11203         * c-common.h (DECL_NUM_STMTS): Rename to...
11204         (DECL_ESTIMATED_INSNS): ... this.
11205         (c_estimate_num_insns): Declare.
11206         * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
11207         * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
11208         * c-semantics.c (add_stmt): Do not account statements.
11209         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
11210         New.
11211         * langhooks.h (lang_hooks_for_tree_inlining): Add
11212         estimate_num_insns
11213         * params.def (max-inline-insns-auto, max-inline-insns-auto): set
11214         to 100.
11215         (max-inline-insns): set to 300.
11216         (min-inline-insns): set to 10.
11217         * tree-inline.c (struct inline_data): Rename inlined_stmts to
11218         inlined-insns.
11219         (INSNS_PER_STMT): Kill.
11220         (inlinable_function_p): Compute and store body size.
11221         (expand_call_inline): Likewise.
11222         (optimize_inline_calls): Likewise.
11223
11224 2003-07-08  James E Wilson  <wilson@tuliptree.org>
11225
11226         PR target/10021
11227         * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
11228         loop over new variable t2 instead of t.
11229
11230 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
11231
11232         PR bootstrap/11455
11233         * config/i386/winnt.c: Replace use of error(), warning() with
11234         error_with_decl(), warning_with_decl(),  throughout.
11235
11236 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
11237
11238         * opts.c (wrap_help): Use unsigned int, not size_t.
11239
11240 2003-07-08  Stephane Carrez  <stcarrez@nerim.fr>
11241
11242         * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
11243         as .file/.loc directives are incompatible with linker relaxation.
11244
11245 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
11246
11247         * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
11248         * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
11249         * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
11250         * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
11251         * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
11252         * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
11253         Escape { and } characters which are not part of range expressions.
11254         * fixinc/fixincl.x: Regenerate.
11255         * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
11256
11257 2003-07-08  Steven Bosscher  <steven@gcc.gnu.org>
11258
11259         PR c/1687
11260         * tree-inline.c (find_alloca_call): Use
11261         walk_tree_without_duplicates, instead of walk_tree.
11262         (find_builtin_longjmp_call): Likewise.
11263         * c-objc-common.c (c_cannot_inline_fn): Likewise.
11264         * c-semantics.c (find_reachable_label): Likewise.
11265
11266 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
11267
11268         PR c/11420
11269         * config/i386/i386.c (ix86_check_movabs): New function.
11270         * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
11271         * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
11272         (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
11273
11274 2003-07-08  Chris Demetriou  <cgd@broadcom.com>
11275
11276         * Makefile.in (install-po): Cope with empty CATALOGS.
11277
11278 2003-07-08  Richard Sandiford  <rsandifo@redhat.com>
11279
11280         * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
11281         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
11282         (SECTION_FUNCTION_TEMPLATE): Delete.
11283         * config/mips/elf.h: As for elf64.h.
11284         (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
11285         * config/mips/linux.h: As for elf.h
11286         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
11287         * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
11288         (EXTRA_SECTION_FUNCTIONS): Remove sdata_section.  Remove the handling
11289         of in_sdata from current_section_name and current_section_flags.
11290         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
11291         * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
11292         (MASK_GP_OPT, TARGET_GP_OPT): Delete.
11293         (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
11294         (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
11295         (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
11296         * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
11297         (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
11298         (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
11299         (override_options): Remove setting of MASK_GPOPT.
11300         (mips_output_external): Use mips_in_small_data_p to check whether a
11301         symbol needs an .extern directive.  Don't emit such directives for
11302         TARGET_EXPLICIT_RELOCS.
11303         (mips_declare_object): Update accordingly.
11304         (mips_select_rtx_section): Call named_section rather than
11305         SMALL_DATA_SECTION.
11306         (mips_select_section): Use default_elf_section_section for everything
11307         except .text string constants.
11308         (mips_in_small_data_p): New function.
11309         (mips_encode_section_info): Remove small data handling.
11310         (mips_unique_section): Delete.
11311         (iris6_section_type_flags): New function.
11312         * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
11313
11314 2003-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11315
11316         PR Target/11453
11317         * pa.md: Disparage all mtsar constraints.
11318         (extzv, extv, insv): Don't fail on length of {32|64}.
11319
11320 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
11321
11322         * system.h: Poison MAP_CHARACTER.
11323         * config/i370/i370-protos.h (mvs_map_char): Delete.
11324         * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
11325         * config/i370/i370.h (MAP_CHARACTER): Delete definition.
11326         (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
11327
11328 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
11329
11330         * toplev.c (randomize): Correct call to time().
11331
11332 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
11333
11334         * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
11335         REG_EQUIV notes as well.
11336
11337 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
11338
11339         * doc/md.texi: Fix the description of addmodecc.
11340
11341 2003-07-07  Zack Weinberg  <zack@codesourcery.com>
11342
11343         * Makefile.in (top_builddir): Set to "..", not ".".
11344         (INTLLIBS, INTLDEPS): Delete.
11345         (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
11346         (LIBDEPS): Add $(LIBICONV_DEP).
11347         (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
11348         (INCLUDES): Replace -I../intl with @INCINTL@.
11349         ($(top_builddir)/intl/libintl.a): Delete rule.
11350         (stage2-start, stage3-start, stage4-start, stageprofile-start,
11351         stagefeedback-start): Use $$ for variable to be evaluated by
11352         shell, not make.
11353         * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
11354         HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
11355         * aclocal.m4: sinclude ../config/progtest.m4.  Add
11356         contents of lcmessage.m4 from gettext distro.
11357         * configure.in: Check for wchar.h and setlocale.  Set
11358         LIBICONV_DEP to the empty string and substitute it.
11359         Call AM_LC_MESSAGES.  Delete AC_ARG_ENABLE for --enable-nls;
11360         this is handled elsewhere.  Use ZW_GNU_GETTEXT_SISTER_DIR,
11361         not CY_GNU_GETTEXT.  Clear $LIBICONV if its text is included
11362         in $LIBINTL, to avoid linking it twice.
11363         * configure, config.in: Regenerate.
11364
11365 2003-07-08  Nathanael Nerode  <neroden@gcc.gnu.org>
11366
11367         * fixinc/mkfixinc.sh: Remove winnt support.
11368         * fixinc/fixinc.winnt: Delete with extreme prejudice.
11369
11370 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
11371
11372         * Makefile.in: Update.
11373         * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
11374         * c.opt: Update documentation.
11375         * common.opt: Add some help text.
11376         * opts.c: Include intl.h.
11377         (wrap_help, print_help): New.
11378         (find_opt, handle_option, common_handle_option): opt_text now
11379         contains the '-'.  Use print_help to output help.
11380         * opts.h (struct cl_option): New member "help".
11381         * opts.sh: Update to handle help text output and to prepend
11382         options with '-'.
11383         * toplev.c (display_help): Remove some help text.
11384
11385 2003-07-07  David Edelsohn  <edelsohn@gnu.org>
11386             Fariborz Jahanian  <fjahanian@apple.com>
11387
11388         * configure.in: Test for PowerPC mfcr field support in assembler.
11389         * config.in, configure: Regenderated.
11390
11391         * config/rs6000/power4.md: Add mfcrf reservation.
11392         * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
11393         * config/rs6000/rs6000.c (mfcr_operation): Define.
11394         (print_operand): Add 'Q' case for mfcrf.
11395         * config/rs6000/rs6000.h (TARGET_MFCRF): New.
11396         * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
11397         (movcc_internal1): Emit optional field operand for mfcr and set
11398         "type" attribute appropriately.
11399         (mfcr SCC): Likewise.
11400         (movesi_from_cr_one): New.
11401
11402 2003-07-07  Roger Sayle  <roger@eyesopen.com>
11403
11404         * config/i386/i386.md: Correct check-in of incorrect version.
11405
11406 2003-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11407
11408         * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
11409         adjacent stdio calls.
11410         * c-decl.c (c_print_identifier): Likewise.
11411         * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
11412         * print-rtl.c (print_rtx): Likewise.
11413         * print-tree.c (print_node_brief, print_node): Likewise.
11414         * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
11415
11416         * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
11417         * config.in, configure: Regenerated.
11418
11419 2003-07-07  Roger Sayle  <roger@eyesopen.com>
11420
11421         PR target/10979
11422         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
11423         Changed to define_expand patterns that copy operand[1] to prevent
11424         it from being clobbered before emitting an atan2?f3_1 insn.
11425         (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
11426         patterns that actually specify the behaviour of x87's FPATAN.
11427
11428 2003-07-07  Jakub Jelinek  <jakub@redhat.com>
11429
11430         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
11431         clearing of SYMBOL_FLAG_LOCAL bit.
11432         If vcall_offset fits into signed 16-bit immediate, use
11433         one instruction for both addition and load.
11434
11435 2003-07-07  Neil Booth  <neil@daikokuya.co.uk>
11436
11437         * opts.c (common_handle_option): Correct handling of the
11438         -falign- switches that do and don't take an argument.
11439
11440 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
11441
11442         * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
11443         today.
11444         (pushhi1_h8300hs): Likewise.
11445
11446 2003-07-07  Andreas Jaeger  <aj@suse.de>
11447
11448         * genextract.c: Convert remaining prototypes to ISO C90.
11449
11450         * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
11451         * fold-const.c (fold_single_bit_test): Likewise.
11452         * diagnostic.c (default_diagnostic_finalizer): Likewise.
11453         * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
11454
11455         * gengtype.c (write_array): Generate ISO C90 prototypes.
11456
11457         * genflags.c (gen_proto): Generate ISO C90 prototypes.
11458
11459 2003-07-07  Roger Sayle  <roger@eyesopen.com>
11460
11461         PR optimization/11059
11462         * expr.c (can_store_by_pieces): Return true if length is zero.
11463         (store_by_pieces): If length is zero and endp is two, abort,
11464         othwerise, if length is zero and endp is not two, return "to".
11465         (clear_by_pieces): Do nothing if length is zero.
11466         (clear_storage): Do nothing if length is zero.
11467         (store_constructor): Simplify code when size is zero, or the
11468         target has already been cleared.  This avoids emitting a
11469         blockage instruction when initializing empty structures.
11470
11471 2003-07-07  Andreas Jaeger  <aj@suse.de>
11472
11473         * mips-tfile.c: Convert prototypes to ISO C90.
11474         * mips-tdump.c: Convert prototypes to ISO C90.
11475
11476 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
11477
11478         * rtl.h (emit_line_note): Take a location_t.
11479         (emit_line_note_force): Remove.
11480         (set_file_and_line_for_statement): Take a location_t.
11481         * tree.g (emit_line_note): Take a location_t.
11482         * emit-rtl.c (emit_line_note): Take a location_t.
11483         (emit_line_note_force): Remove.
11484         * function.c (init_function_start): Adjust emit_line_note call.
11485         (expand_function_end): Use force_next_line_note, not
11486         emit_line_note_force.
11487         * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
11488         * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
11489         genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
11490         genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
11491         genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
11492         genrtl_continue_stmt, genrtl_switch_stmt,
11493         genrtl_asm_stmt): Likewise.
11494         * expr.c (expand_expr): Likewise.
11495         * integrate.c (expand_inline_function): Likewise.
11496         * stmt.c (set_file_and_line_for_stmt): Take a location_t.
11497         (expand_decl_init): Adjust emit_line_note call.
11498
11499 2003-07-07  Dale Johannesen  <dalej@apple.com>
11500
11501         * config/rs6000/darwin-tramp.asm:  Fix trampolines.  PR 10900.
11502
11503 2003-07-07  Andreas Jaeger  <aj@suse.de>
11504
11505         * config/i386/i386-protos.h: Convert prototypes to ISO C90.
11506         * config/i386/i386.c: Likewise.
11507
11508 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
11509
11510         * config/h8300/h8300.md: Use gen_int_mode instead of
11511         GEN_INT (trunc_int_for_mode (...)).
11512
11513 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
11514
11515         * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
11516         2 bytes and then subtract 2 from the stack pointer.
11517         (pushhi1_h8300hs): Likewise.
11518
11519 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
11520
11521         * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
11522         -frandom-seed.
11523         * configure: Regenerated.
11524         * Makefile.in: Remove extraneous comment.
11525         * toplev.c (randomize): Protect against potential multiple calls.
11526         * doc/invoke.texi (-frandom-seed): Document use for in coverage
11527         files.
11528
11529 2003-07-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11530             Eric Botcazou  <ebotcazou@libertysurf.fr>
11531
11532         PR optimization/11198
11533         * alias.c (objects_must_conflict_p): Return 1 if the types have
11534         the same alias set, not if the alias sets only conflict.
11535
11536 2003-07-07  Andrew Pinski  <pinskia@physics.uc.edu>
11537
11538         * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
11539         (convert_cset): Change inbuf to type ICONV_CONST char.
11540         * Makefile.in (LIBS): Add LIBICONV.
11541
11542         * doc/invoke.texi (-falign-functions): Document that
11543         when n is zero then a machine-dependent default is used.
11544         (-falign-labels): Document that when n is zero then a
11545         machine-dependent default is used and that -falign-labels =1
11546         is equivalent to -fno-align-labels.
11547         (-falign-loops): Likewise.
11548         (-falign-jumps): Likewise.
11549
11550 2003-07-06  Art Haas  <ahaas@airmail.net>
11551
11552         * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
11553         initializer syntax.
11554
11555 2003-07-06  James E Wilson  <wilson@tuliptree.org>
11556
11557         PR optimization/9812
11558         * rtl.h (mem_for_const_double): Delete prototype.
11559         * varasm.c (mem_for_const_double): Delete function.
11560         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
11561         config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
11562         (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
11563         * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
11564         (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
11565         * config/m68k/m68k.md (movxf): Add reload_in_progress guard.  Add
11566         comment about confused support for XFmode constants.
11567
11568 2003-07-07  Jan Hubicka  <jh@suse.cz>
11569
11570         * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
11571
11572 2003-07-06  Kazu Hirata  <kazu@cs.umass.edu>
11573
11574         * config/h8300/h8300.c: Fix comment typos.
11575         * config/h8300/h8300.md: Likewise.
11576         * config/i386/athlon.md: Likewise.
11577         * config/i386/i386.c: Likewise.
11578         * config/i386/pentium.md: Likewise.
11579         * config/ia64/ia64.c: Likewise.
11580         * config/ia64/itanium1.md: Likewise.
11581         * config/ia64/itanium2.md: Likewise.
11582         * config/m32r/m32r.md: Likewise.
11583         * config/m68hc11/m68hc11.c: Likewise.
11584         * config/mcore/mcore.c: Likewise.
11585         * config/mips/sr71k.md: Likewise.
11586         * config/mips/t-iris5-as: Likewise.
11587         * config/mmix/mmix.h: Likewise.
11588         * config/ns32k/ns32k.h: Likewise.
11589         * config/ns32k/NOTES: Fix a typo.
11590
11591 2003-07-06  Andreas Jaeger  <aj@suse.de>
11592
11593         * stmt.c: Convert remaining prototypes to ISO C90.
11594         * cfglayout.c: Likewise.
11595         * dbxout.c: Likewise.
11596         * gcc.c: Likewise.
11597         * genemit.c: Likewise.
11598
11599         * basic-block.h: Convert prototypes to ISO C90.
11600         * c-parse.in: Likewise.
11601         * c-pragma.h: Likewise.
11602         * c-typeck.c: Likewise.
11603         * cfghooks.h: Likewise.
11604         * cfgloopanal.c: Likewise.
11605         * dbxout.h: Likewise.
11606         * debug.h: Likewise.
11607         * dwarf2asm.h: Likewise.
11608         * gcov.c: Likewise.
11609         * gengtype-lex.l: Likewise.
11610         * sched-int.h: Likewise.
11611         * timevar.c: Likewise.
11612
11613 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
11614
11615         * c-common.h (c_comon_handle_filename,
11616         c_common_missing_arguement): New.
11617         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
11618         LANG_HOOKS_MISSING_ARGUMENT): New.
11619         * c-opts.c (missing_arg): Rename c_common_missing_argument,
11620         update to be an appropriate langhook.
11621         (c_common_handle_option): Don't handle filenames.
11622         (c_common_handle_filename): New.
11623         * hooks.c (hook_void_constcharptr,
11624         hook_bool_constcharptr_size_t_false): New.
11625         * hooks.h (hook_void_constcharptr,
11626         hook_bool_constcharptr_size_t_false): New.
11627         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
11628         LANG_HOOKS_MISSING_ARGUMENT): New.
11629         (LANG_HOOKS_INITIALIZER): Update.
11630         * langhooks.h (struct lang_hooks): Add handle_filename and
11631         missing_argument.
11632         * opts.c (handle_option): Don't handle filenames here, but ...
11633         (handle_options): ... here.
11634         (common_handle_option): Don't handle missing arguments here.
11635         * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
11636         LANG_HOOKS_MISSING_ARGUMENT): New.
11637
11638 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
11639
11640         * Makfile.in: Remove traces of mbchar.
11641         * c-parse.in (MULTIBYTE_CHARS): Remove.
11642         * config.in (MULTIBYTE_CHARS): Remove.
11643         * configure: Remove --enable-mbchar.
11644         * configure.in: Remove --enable-mbchar.
11645         * mbchar.c, mbchar.h: Remove.
11646         * system.h: Poison MULTIBYTE_CHARS.
11647         * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
11648         * config/linux.h (MULTIBYTE_CHARS): Remove.
11649         * config/svr4.h (MULTIBYTE_CHARS): Remove.
11650         * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
11651
11652 2003-07-06  Andreas Jaeger  <aj@suse.de>
11653
11654         * varray.c (varray_check_failed): Fix typo.
11655
11656         * unroll.c: Convert prototypes to ISO C90.
11657         * varasm.c: Likewise.
11658         * varray.c: Likewise.
11659         * varray.h: Likewise.
11660         * vmsdbgout.c: Likewise.
11661         * xcoffout.c: Likewise.
11662         * xcoffout.h: Likewise.
11663
11664 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
11665
11666         * gcov-io.h: Add a local time stamp.
11667         (struct gcov_info): Add stamp field.
11668         (gcov_truncate): New.
11669         * coverage.c (read_counts_file): Skip the stamp.
11670         (coverage_begin_output): Write the stamp.
11671         (build_gcov_info): Declare and init the stamp.
11672         (coverage_finish): Only unlink data file, if stamp is zero.
11673         * gcov-dump.c (dump_file): Dump the stamp.
11674         * gcov.c (bbg_stamp): New.
11675         (release_structures): Clear bbg_stamp.
11676         (read_graph_file): Read stamp.
11677         (read_count_file): Check stamp.
11678         * libgcov.c (gcov_exit): Check stamp and truncate if needed.
11679
11680 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
11681
11682         * tree.h (default_flag_random_seed): Remove.
11683         * toplev.h (local_tick): Declare.
11684         * tree.c (flag_random_seed, default_flag_random_seed): Move to
11685         toplev.c.
11686         (append_random_chars): Don't call default_flag_random_seed.
11687         * toplev.c (flag_random_seed): Define here. Set local_tick.
11688         (local_tick): Define.
11689         (randomize): New, moved from tree.c.
11690         (print_switch_values): Adjust.
11691         (toplev_main): Call randomize.
11692
11693 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
11694
11695         * tree.h (crc32_string): Declare.
11696         * tree.c (append_random_chars): Remove.
11697         (crc32_string): New.
11698         (get_file_function_name_long): Use crc32_string here.
11699
11700 2003-07-06  Andreas Jaeger  <aj@suse.de>
11701
11702         * gcc.c: Convert prototypes to ISO C90.
11703         * gcc.h: Likewise.
11704         * gcov-dump.c: Likewise.
11705         * gcov-iov.c: Likewise.
11706         * gcse.c: Likewise.
11707         * genattrtab.h: Likewise.
11708         * ggc.h: Likewise.
11709         * global.c: Likewise.
11710         * graph.c: Likewise.
11711         * graph.h: Likewise.
11712         * hosthooks.h: Likewise.
11713         * hooks.h: Likewise.
11714         * hooks.c: Likewise.
11715         * hashtable.h: Likewise.
11716         * hashtable.c: Likewise.
11717         * haifa-sched.c: Likewise.
11718         * integrate.h: Likewise.
11719         * integrate.c: Likewise.
11720         * input.h: Likewise.
11721         * ifcvt.c: Likewise.
11722         * jump.c: Likewise.
11723         * langhooks-def.h: Likewise.  Add extern to prototypes.
11724         * langhooks.c: Likewise.
11725         * langhooks.h: Likewise.
11726         * lcm.c: Likewise.
11727         * local-alloc.c: Likewise.
11728         * loop-init.c: Likewise.
11729         * loop-unroll.c: Likewise.
11730         * loop-unswitch.c: Likewise.
11731         * loop.c: Likewise.
11732         * loop.h: Likewise. Add extern to prototypes.
11733         * machmode.h: Likewise.
11734         * main.c: Likewise.
11735         * mbchar.c: Likewise.
11736         * mbchar.h: Likewise.
11737         * mkdeps.c: Likewise.
11738         * mkdeps.h: Likewise.
11739         * optabs.c: Likewise.
11740         * optabs.h: Likewise.
11741         * output.h: Likewise.
11742         * gccspec.c: Likwise.
11743         * postreload.c: Likewise.
11744         * prefix.c: Likewise.
11745         * prefix.h: Likewise.
11746         * print-rtl.c: Likewise.
11747         * print-tree.c: Likewise.
11748         * profile.c: Likewise.
11749         * read-rtl.c: Likewise.
11750         * real.c: Likewise.
11751         * real.h: Likewise.
11752         * recog.c: Likewise.
11753         * recog.h: Likewise.
11754         * reg-stack.c: Likewise.
11755         * regclass.c: Likewise.
11756         * regmove.c: Likewise.
11757         * regrename.c: Likewise.
11758         * regs.h: Likewise.
11759         * reload.c: Likewise.
11760         * reload.h: Likewise.
11761         * reload1.c: Likewise.
11762         * reorg.c: Likewise.
11763         * resource.c: Likewise.
11764         * resource.h: Likewise.
11765         * rtl-error.c: Likewise.
11766         * rtl.c: Likewise.
11767         * rtl.h: Likewise.
11768         * rtlanal.c: Likewise.
11769         * sbitmap.c: Likewise.
11770         * sbitmap.h: Likewise.
11771         * scan-decls.c: Likewise.
11772         * scan.c: Likewise.
11773         * sched-deps.c: Likewise.
11774         * sched-ebb.c: Likewise.
11775         * sched-int.h: Likewise.
11776         * sched-rgn.c: Likewise.
11777         * sched-vis.c: Likewise.
11778         * sibcall.c: Likewise.
11779         * simplify-rtx.c: Likewise.
11780         * sreal.c: Likewise.
11781         * sreal.h: Likewise.
11782         * ssa-ccp.c: Likewise.
11783         * ssa-dce.c: Likewise.
11784         * ssa.c: Likewise.
11785         * ssa.h: Likewise.
11786         * stack.h: Likewise.
11787         * stmt.c: Likewise.
11788         * stor-layout.c: Likewise.
11789         * stringpool.c: Likewise.
11790         * target.h: Likewise.
11791         * timevar.c: Likewise.
11792         * timevar.h: Likewise.
11793         * tlink.c: Likewise.
11794         * tracer.c: Likewise.
11795         * tree-inline.c: Likewise.
11796         * tree-inline.h: Likewise.
11797         * tree.c: Likewise.
11798         * tree.h: Likewise.
11799
11800 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
11801
11802         * combine.c (nonzero_bits1): Fix a warning.
11803
11804 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
11805
11806         * config/h8300/h8300.c (compute_mov_length): Correct the
11807         length of loading CONST0_RTX (SFmode).
11808
11809 2003-07-05  Nathan Sidwell  <nathan@codesourcery.com>
11810
11811         * toplev.c (output_clean_symbol_name): Remove.
11812         * toplev.h (output_clean_symbol_name): Remove.
11813         * config/alpha/alpha.c (unicosmk_output_module_name): Use
11814         lbasename & clean_symbol_name.
11815
11816 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
11817
11818         * ggc.h: Follow spelling conventions.
11819         * config/i386/i386.c: Likewise.
11820         * config/i386/winnt.c: Likewise.
11821         * config/rs6000/rs6000.c: Likewise.
11822
11823 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
11824
11825         * bt-load.c: Fix comment typos.
11826         * c-incpath.c: Likewise.
11827         * cfg.c: Likewise.
11828         * cfgcleanup.c: Likewise.
11829         * cfgloop.h: Likewise.
11830         * cfgloopmanip.c: Likewise.
11831         * cfgrtl.c: Likewise.
11832         * diagnostic.h: Likewise.
11833         * dwarfout.c: Likewise.
11834         * emit-rtl.c: Likewise.
11835         * et-forest.c: Likewise.
11836         * et-forest.h: Likewise.
11837         * expr.c: Likewise.
11838         * gcse.c: Likewise.
11839         * genattr.c: Likewise.
11840         * jump.c: Likewise.
11841         * langhooks.h: Likewise.
11842         * local-alloc.c: Likewise.
11843         * loop-unroll.c: Likewise.
11844         * loop-unswitch.c: Likewise.
11845         * ra-build.c: Likewise.
11846         * regclass.c: Likewise.
11847         * regmove.c: Likewise.
11848         * rtl.def: Likewise.
11849         * rtlanal.c: Likewise.
11850         * sched-ebb.c: Likewise.
11851         * sched-rgn.c: Likewise.
11852         * simplify-rtx.c: Likewise.
11853         * ssa.c: Likewise.
11854         * tracer.c: Likewise.
11855         * tree.c: Likewise.
11856
11857 2003-07-05  Zack Weinberg  <zack@codesourcery.com>
11858
11859         * cppcharset.c: Use the correct return type for the fallback iconv
11860         macro.
11861
11862 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11863
11864         Blame to Jan Hubicka  <jh@suse.cz>
11865         * cfglayout.c (record_effective_endpoints): Split insns before
11866         first basic block correctly.
11867
11868 2003-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11869
11870         * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
11871         bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
11872         if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
11873
11874 2003-07-05  Andreas Jaeger  <aj@suse.de>
11875
11876         * genattrtab.c (write_attr_get): Revert part of last patch to
11877         always write out a prototype.
11878
11879         * genemit.c (gen_split): Readd lost unused attributes in last
11880         patch.
11881
11882 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11883
11884         * cfgloopmanip.c (force_single_succ_latches): Force latch to be
11885         different from header.
11886
11887 2003-07-05  Andreas Schwab  <schwab@suse.de>
11888
11889         * config/m68k/m68k.c: Remove code protected by CRDS.
11890         * config/m68k/m68k.md: Likewise.
11891
11892 2003-07-05  Neil Booth  <neil@daikokuya.co.uk>
11893
11894         PR driver/11417
11895         * c-opts.c (permit_fortran_options): New.
11896         (c_common_init_options): Accept fortran front end options if
11897         it looks like we might be preprocessing Fortran.
11898         (c_common_handle_option): Don't reject switch if permit_fotran_options.
11899
11900 2003-07-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11901
11902         * genattr.c (internal_dfa_insn_code): Output prototype.
11903         * genattrtab.c: Don't output unnecessary decls, output in ISO C.
11904         * genautomata.c: Likewise.
11905         * genconditions.c: Likewise.
11906         * genemit.c: Likewise.
11907         * genextract.c: Likewise.
11908         * gengenrtl.c: Likewise.
11909         * gengtype.c: Likewise.
11910         * genopinit.c: Likewise.
11911         * genoutput.c: Likewise.
11912         * genpeep.c: Likewise.
11913         * genrecog.c: Likewise.
11914
11915 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
11916
11917         * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
11918         (struct cpp_options): Add narrow_charset, wide_charset,
11919         bytes_big_endian fields.  Remove EBCDIC field.
11920         (cpp_init_iconv, cpp_interpret_string): New external interfaces.
11921
11922         * cpphash.h: Include <iconv.h> if we have it, otherwise
11923         provide a dummy definition of iconv_t.
11924         (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
11925         (_cpp_valid_ucn): Update prototype.
11926         (_cpp_destroy_iconv): New prototype.
11927
11928         * doc/cpp.texi: Document character set handling.
11929         * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
11930         * doc/extend.texi: Delete entire section on multiline strings.
11931         Rewrite section on __FUNCTION__ etc now that these are
11932         variables in C.
11933
11934         * cppucnid.tab, cppucnid.pl: New files.
11935         * cppucnid.h: New generated file.
11936         * cppcharset.c: Include cppucnid.h.  Lots of commentary added.
11937         (iconv_open, iconv, iconv_close): Provide dummy definitions
11938         if !HAVE_ICONV.
11939         (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
11940         _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
11941         emit_numeric_escape, convert_hex, convert_oct, convert_escape,
11942         cpp_interpret_string, narrow_str_to_charconst,
11943         wide_str_to_charconst): New.
11944         (ucn_valid_in_identifier): Use a binary search through the
11945         ucnranges table defined in cppucnid.h, not a long chain of if
11946         statements.
11947         (_cpp_valid_ucn): Add a limit pointer.  Downgrade "universal
11948         character names are only valid in C++ and C99" to a warning.
11949         Issue the "meaning of \[uU] is different in traditional C"
11950         warning here.  Take care not to let iconv see an invalid UCS
11951         value if we get a malformed UCN.  Issue an error if we don't
11952         have iconv.
11953         (cpp_interpret_charconst): Moved here from cpplex.c.  Use
11954         cpp_interpret_string to do the heavy lifting.
11955
11956         * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
11957         narrow_charset, wide_charset fields of options structure.
11958         (cpp_destroy): Call _cpp_destroy_iconv.
11959         * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
11960         (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
11961         (cpp_interpret_charconst): Moved to cppcharset.c.
11962         * cpplib.c (dequote_string): Delete.
11963         (interpret_string_notranslate): New.
11964         (do_line, do_linemarker): Use interpret_string_notranslate.
11965
11966         * Makefile.in (cppcharset.o): Depend on cppucnid.h.
11967
11968         * c-common.c (fname_string, combine_strings): Delete.
11969         * c-common.h (fname_string, combine_strings): Delete prototypes.
11970         * c-lex.c (ignore_escape_flag): Delete.
11971         (cb_ident): Use cpp_interpret_string, not lex_string.
11972         (get_nonpadding_token): New function.
11973         (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
11974         Adjust calls to lex_string.  Don't write *value twice.
11975         (lex_string): Now handles string constant concatenation.
11976         Most of the work handed off to cpp_interpret_string.
11977         Call fix_string_type here.
11978         * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
11979         FUNC_NAME, throughout.
11980         (OBJC_STRING): New token type.
11981         (primary:STRING): No need to call fix_string_type here.
11982         (primary:objc_string): Make that OBJC_STRING.
11983         (objc_string nonterminal): Delete.
11984         (yylexname): Delete code to handle fake string constants.
11985         (yylexstring): Delete entirely.
11986         (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING.  No need
11987         to handle CPP_ATSIGN.
11988
11989         * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
11990         * c-opts.c (missing_arg, c_common_handle_option): Handle
11991         OPT_fexec_charset_ and OPT_fwide_exec_charset_.
11992         (c_common_init): Set cpp_opts->bytes_big_endian, not
11993         cpp_opts->EBCDIC.  Call cpp_init_iconv.
11994         (print_help): Document -fexec-charset= and -fexec-wide-charset=.
11995         (TARGET_EBCDIC): Delete default definition.
11996
11997         * objc/objc-act.c (build_objc_string_object): No need to
11998         handle string constant concatenation.
11999
12000 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
12001
12002         * doc/install.texi: Fix typos.
12003         * doc/invoke.texi: Likewise.
12004         * doc/tm.texi: Likewise.
12005
12006 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
12007
12008         * config/pa/fptr.c: Fix comment typos.
12009         * config/pa/pa-64.h: Likewise.
12010         * config/pa/pa.c: Likewise.
12011         * config/pa/pa.h: Likewise.
12012         * config/rs6000/603.md: Likewise.
12013         * config/rs6000/7xx.md: Likewise.
12014         * config/rs6000/darwin.h: Likewise.
12015         * config/rs6000/freebsd.h: Likewise.
12016         * config/rs6000/rs6000.c: Likewise.
12017         * config/rs6000/rs6000.md: Likewise.
12018         * config/rs6000/spe.h: Likewise.
12019
12020 2003-07-04  Ulrich Weigand  <uweigand@de.ibm.com>
12021
12022         * config/s390/2064.md: Change GNU CC to GCC.
12023         * config/s390/2084.md: Likewise.
12024         * config/s390/fixdfdi.h: Likewise.
12025         * config/s390/linux.h: Likewise.
12026         * config/s390/s390-modes.def: Likewise.
12027         * config/s390/s390-protos.h: Likewise.
12028         * config/s390/s390.c: Likewise.
12029         * config/s390/s390.h: Likewise.
12030         * config/s390/s390.md: Likewise.
12031         * config/s390/s390x.h: Likewise.
12032
12033 2003-07-04  Jeff Law  <law@redhat.com>
12034
12035         PR c/11428
12036         * expr.c (do_store_flag): Pass in the correct result type
12037         when calling fold_single_bit_test.
12038         * fold-const.c (fold_single_bit_test): Use result_type for the
12039         result when folding a sign bit test.
12040
12041 2003-07-04  Neil Booth  <neil@daikokuya.co.uk>
12042
12043         * opts.c (common_handle_options): Negate sense of -falign- switches.
12044
12045 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
12046
12047         * Makefile.in: Replace PWD with PWD_COMMAND.
12048
12049 2003-07-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12050
12051         * cfgloopanal.c (count_strange_loop_iterations): New static function.
12052         (constant_iterations, count_loop_iterations, simple_loop_exit_p):
12053         Handle strange loops.
12054
12055 2003-07-04  Toon Moene  <toon@moene.indiv.nluug.nl>
12056
12057         * install.texi: Even the g77 manpage is derived from
12058         the full g77 manual.
12059
12060 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
12061
12062         * ABOUT-NLS: Delete.
12063         * intl: Delete entire directory.
12064         * aclocal.m4: Include ../config/gettext.m4.  Delete
12065         AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
12066         AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
12067         * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
12068         Remove intl/Makefile from all_outputs.
12069         * configure, config.in: Regenerate.
12070         * Makefile.in: Expunge all references to intl subdirectory.
12071         Add -I../intl to INCLUDES.
12072         * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
12073
12074 2003-07-04  Roger Sayle  <roger@eyesopen.com>
12075
12076         * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
12077         * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
12078
12079 2003-07-04  Danny Smith  <dannysmith@users.sourceforge.net>
12080
12081         PR c++/5287, PR c++/7910, PR c++/11021
12082         * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
12083         dllimport attribute if function is defined at declaration, but
12084         report error instead. Likewise for dllimport'd variable
12085         definitions.  Set implicit TREE_PUBLIC for dllimport'd variables
12086         declared within functions, Report error if dllimport or dllexport
12087         symbol is not global.
12088         (i386_pe_dllimport_p): Ignore dllimport attribute of functions
12089         if defined after declaration or if inlined. Don't allow definition
12090         of static data members of C++ classes. Don't dllimport virtual
12091         methods.
12092         (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
12093         (i386_pe_mark_dllimport): Remove unnecessary checks.
12094         (i386_pe_encode_section_info): Warn if the dllimport attribute
12095         and symbol prefix have been instantiated and then overridden.
12096
12097         * doc/extend.texi: Document dllimport and dllexport attributes.
12098
12099         * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
12100
12101 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
12102
12103         * config/kaos.h (CPP_PREDEFINES): Delete.
12104         (TARGET_OS_CPP_BUILTINS): New.
12105
12106 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12107
12108         * c-aux-info.c: Include toplev.h after c-tree.h.
12109         * c-common.c: Likewise.
12110         (GCC_DIAG_STYLE): Undef.
12111         * c-semantics.c (GCC_DIAG_STYLE): Define.
12112         * c-tree.h (GCC_DIAG_STYLE): Likewise.
12113         * diagnostic.h (inform): Move prototype to toplev.h.
12114         * jump.c: Include diagnostic.h before toplev.h.
12115         * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
12116         (warning, error, fatal_error, pedwarn, sorry, inform,
12117         error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
12118
12119 2003-07-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12120
12121         * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
12122         at all if edge is not specified.
12123         (can_copy_bbs_p, copy_bbs): New.
12124         * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
12125         * cfgloop.c (get_loop_body): Comment more precisely.
12126         * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
12127         (scale_bbs_frequencies): Fix comment typo.
12128         (can_duplicate_loop_p): Use can_copy_bbs_p.
12129         (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
12130
12131 2003-07-03  Devang Patel <dpatel@apple.com>
12132
12133         * c-opts.c (c_common_parse_file): Remove extra
12134         debug_hooks->start_source_file call.
12135
12136 2003-07-03  Roger Sayle  <roger@eyesopen.com>
12137
12138         * real.c (real_trunc, real_floor, real_ceil): New functions
12139         to implement trunc, floor and ceil respectively.
12140         * real.h (real_trunc, real_floor, real_ceil): Prototype here.
12141         * builtins.c (integer_valued_real_p): New function to test if
12142         a floating point expression has an integer valued result.
12143         (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
12144         foo(x) where foo is an integer rounding function.  Similarly,
12145         optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
12146         (double)(int)x when both foo and bar are integer rounding
12147         functions and we don't need to honor errno.
12148         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
12149         New functions to fold trunc, floor and ceil.
12150         (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
12151         fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
12152         to fold BUILT_IN_CEIL*.
12153         * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
12154         the remaining integer rounding functions.
12155
12156 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
12157
12158         * config/sparc/sparc.c (function_arg_partial_nregs): Use
12159         SPARC_INT_ARG_MAX to determine where to split unnamed
12160         complex FP arguments.
12161
12162 2003-07-03  Jan Hubicka  <jh@suse.cz>
12163
12164         * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
12165         * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
12166         (merge_blocks_move_predecessor_nojumps,
12167          merge_blocks_move_successor_nojumps): Use merge_blocks.
12168         (try_optimize_cfg): Use merge_blocks_move.
12169         * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
12170         (merge_blocks_nomove): Rename to rtl_merge_blocks.
12171         (cfg_layout_create_basic_block): New.
12172         (rtl_can_merge_blocks): New.
12173         (cfg_layout_split_block): Do not alloc aux by hand.
12174         * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
12175         merge_blocks.
12176         (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
12177         * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
12178         * cfgloopmanip.c (loop_split_edge_with): Likewise.
12179         * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
12180
12181         * basic-block.h (basic_block_def): Add field 'rbi'.
12182         * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
12183         find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
12184         * cfg.c (entry_exit_blocks): Add new field.
12185         * cfglayout.c: Include alloc-pool.h;
12186         (cfg_layout_pool): New.
12187         (record_effective_endpoints, fixup_reorder_chain,
12188         fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
12189         of rbi.
12190         (cfg_layout_initialize_rbi): New function.
12191         (cfg_layout_initialize): Use it.
12192         (cfg_layout_finalize): Clear rbi fields.
12193         * cfglayout.h (RBI): Kill.
12194         (cfg_layout_initialize_rbi): Declare.
12195         * cfgloopmanip.c (copy_bbs): Use rbi.
12196         (record_exit_edges): Likewise.
12197         (duplicate_loop_to_header_edge): Likewise.
12198         * cfgrtl.c (cfg_layout_create_basic_block): Use
12199         cfg_layout_initialize_rbi.
12200         (cfg_layout_split_block): Use rbi.
12201         (cfg_layout_delete_block): Likewise.
12202         * loop-init.c (loop_optimizer_finalize): Likewise.
12203         * loop-unswitch.c (unswitch_loop): Likewise.
12204         * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
12205
12206         * cfgrtl.c: Update comments.
12207         (try_redirect_by_replacing_jump): New argument.
12208         (redirect_branch_edge): Break out from ...
12209         (rtl_redirect_edge_and_branch): ... this one.
12210         (update_cfg_after_block_merging): Break out from ...
12211         (rtl_merge_blocks): ... this one.
12212         (cfg_layout_split_edge): New.
12213         (cfg_layout_merge_blocks): New.
12214         (cfg_layout_can_merge_blocks_p): New.
12215         (cfg_layout_redirect_edge_and_branch): Reorganize.
12216         (cfg_layout_rtl_cfg_hooks): Fill in.
12217         (cfg_layout_delete_block): Kill barriers.
12218         * cfganal.c (can_fallthru): Deal with exit blocks
12219         * cfglayout.c (cfg_layout_function_header): New function
12220         (record_effective_endpoints): Record function header.
12221         (fixup_reorder_chain): Fixup dead jumptables; place header
12222
12223         * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
12224         * bb-reorder.c (cfg_layout_initialize): Update call.
12225         * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
12226         edges in cfglayout mode.
12227         * cfglayout.c (cleanup_unconditional_jumps): Kill.
12228         (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
12229         * cfglayout.h (cfg_layout_initialize): Update prototype.
12230         * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
12231         * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
12232         * flow.c (propagate_block): Do not crash when basic block ends
12233         by first insn in the chain.
12234         * loop-init.c (loop_optimizer_init):  First enter cfglayout mode; later
12235         do loop discovery.
12236         * tracer.c (tracer): Update call of cfg_layout_initialize.
12237
12238 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12239
12240         * Makefile.in: Use dependency variables in lieu of explicit
12241         files throughout.
12242
12243 2003-07-03  Steven Bosscher  <steven@gcc.gnu.org>
12244
12245         * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
12246         * tree.h: ...to here.
12247
12248 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
12249
12250         * config/s390/2064.md: Fix comment typos.
12251         * config/s390/2084.md: Likewise.
12252         * config/s390/s390.c: Likewise.
12253         * config/s390/s390.md: Likewise.
12254         * config/sh/sh.c: Likewise.
12255         * config/sh/sh.h: Likewise.
12256         * config/sh/sh.md: Likewise.
12257         * config/sparc/sparc.c: Likewise.
12258         * config/sparc/sparc.h: Likewise.
12259         * config/sparc/sparc.md: Likewise.
12260         * config/stormy16/stormy16.c: Likewise.
12261         * config/stormy16/stormy16.h: Likewise.
12262         * config/stormy16/stormy-abi: Fix a typo.
12263
12264 2003-07-03  Kelley Cook  <kelleycook@wideopenwest.org>
12265
12266         * Makefile.in (ifcvt.o): Depend on OPTABS_H.
12267
12268 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12269
12270         * config/mips/mips.h (save_argv): Delete.
12271
12272 2003-07-03  Roger Sayle  <roger@eyesopen.com>
12273
12274         PR target/10700
12275         * fold-const.c (extract_muldiv_1): There's nothing that can be done
12276         if the expression is a SAVE_EXPR.
12277
12278 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
12279
12280         * config/m32r/m32r.c: Fix comment typos.
12281         * config/m68hc11/m68hc11.c: Likewise.
12282         * config/m68hc11/m68hc11.h: Likewise.
12283         * config/m68k/m68k.c: Likewise.
12284         * config/mcore/mcore.c: Likewise.
12285         * config/mcore/mcore.h: Likewise.
12286         * config/mcore/mcore.md: Likewise.
12287         * config/mips/mips.c: Likewise.
12288         * config/mips/mips.h: Likewise.
12289         * config/mips/mips.md: Likewise.
12290         * config/mips/netbsd.h: Likewise.
12291         * config/mn10300/mn10300.c: Likewise.
12292
12293 2003-07-03  Andreas Schwab  <schwab@suse.de>
12294
12295         * dbxout.c (pending_bincls): Move decl down inside
12296         DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
12297
12298 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
12299
12300         * rtl.h (NOTE_DATA): Refer to whole union.
12301         * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
12302
12303 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
12304
12305         PR optimization/11381
12306         * simplify-rtx.c (simplify_relational_operation): Check that
12307         two equal operands have no side-effects before simplifying
12308         the comparison.
12309
12310 2003-07-02  Jeff Law  <law@redhat.com>
12311
12312         * expr.c (do_store_flag): Remove special case folding for
12313         single bit tests.  Instead call back into the commonized folder
12314         routine.
12315         * fold-const.c (fold_single_bit_test): New function, mostly
12316         extracted from do_store_flag, with an additional case extracted
12317         from fold.
12318         (fold): Call fold_single_bit_test appropriately.
12319         * tree.h (fold_single_bit_test): Prototype.
12320
12321 2003-07-02  Zack Weinberg  <zack@codesourcery.com>
12322
12323         * system.h: Include filenames.h.
12324         (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
12325         (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
12326         define based on HAVE_DOS_BASED_FILE_SYSTEM.
12327         * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
12328         * config/i386/xm-mingw32.h: Don't define
12329         HAVE_DOS_BASED_FILE_SYSTEM,
12330         DIR_SEPARATOR, or DIR_SEPARATOR_2.
12331         * doc/hostconfig.texi: Update to match.
12332
12333         * cppfiles.c, gcc.c, gensupport.c, protoize.c,
12334         config/i386/cygwin.h:
12335         Use IS_ABSOLUTE_PATH throughout.
12336         * gcc.c (DIR_UP): Delete, unused.
12337         * protoize.c (IS_SAME_PATH): Define in terms of
12338         FILENAME_CMP.
12339         (is_abspath): Delete.
12340
12341 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
12342
12343         * config/i386/emmintrin.h: Fix comment typos.
12344         * config/i386/i386.c: Likewise.
12345         * config/i386/i386.h: Likewise.
12346         * config/i386/sco5.h: Likewise.
12347         * config/ia64/ia64.c: Likewise.
12348         * config/ia64/itanium2.md: Likewise.
12349
12350 2003-07-02  H.J. Lu  <hongjiu.lu@intel.com>
12351
12352         * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
12353         DBX_USE_BINCL.
12354         (emit_bincl_stab): Same.
12355         (emit_pending_bincls): Same.
12356
12357 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
12358
12359         * config/h8300/h8300.c (compute_mov_length): Fix the length of
12360         loading CONST0_RTX (SFmode).
12361         * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
12362         'G' to CONST0_RTX (SFmode).
12363         * config/h8300/h8300.md (movsf_h8300): Change the first
12364         constraint to 'G'.
12365         (movsf_h8300h): Likewise.
12366
12367 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
12368
12369         * c-common.h (c_common_init_options): New prototype.
12370         * c-opts.c (deferred_size): Remove.
12371         (defer_opt): Array is now pre-allocated.
12372         (c_common_init_options): Pre-allocate deferred_opts.  Make
12373         lang_flags unsigned.
12374         (push_command_line_options): Free deferred_opts.
12375         * hooks.c (hook_uint_uint_constcharptrptr_0): New.
12376         * hooks.h (hook_uint_uint_constcharptrptr_0): New.
12377         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
12378         * langhooks.h (struct lang_hooks): New prototype for init_options.
12379         * main.c (main): Cast argv.
12380         * opts.c (handle_option, handle_options): Update prototypes.
12381         (decode_options): save_argc, save_argv are not global.  Constify.
12382         * opts.h (decode_options): New prototype.
12383         * toplev.c (general_init): New protoype.
12384         (save_argv): Make static.
12385         (save_argc): Remove.
12386         (print_switch_values, general_init): Constify.
12387         (toplev_main): Save argv.
12388         * toplev.h (toplev_main): Update prototype.
12389         (save_argc, save_argv): Remove.
12390
12391 2003-07-02  David Edelsohn  <edelsohn@gnu.org>
12392
12393         * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
12394         (emit_bincl_stab): Same.
12395         (emit_pending_bincls): Same.
12396
12397 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
12398
12399         PR c++/11072
12400         * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
12401
12402 2003-07-02  Andreas Schwab  <schwab@suse.de>
12403
12404         * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
12405
12406 2003-07-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
12407
12408         PR optimization/11210
12409         * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
12410         about the behaviour with regard to bitfields.
12411         * fold-const (decode_field_reference): Record outermost type in
12412         case the expression is a NOP. Strip all NOPs. Set the signedness
12413         to that of the outermost type (if any) when the bitsize is equal
12414         to the size of the type.
12415
12416 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
12417
12418         * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
12419         (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
12420         (adddi3_internal_3, addsi3_internal_2): Likewise.
12421
12422 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
12423
12424         * config/mips/mips.c (machine_function): Add new fields:
12425         ignore_hazard_length_p and all_noreorder_p.
12426         (mips_flag_delayed_branch): New variable.
12427         (override_options): Treat '/' as an operand punctuation character.
12428         Set up mips_flag_delayed_branch.
12429         (print_operand): Handle '/'.
12430         (mips_output_function_prologue): Put the whole function in
12431         .set noreorder and .set nomacro if all_noreorder_p is true.
12432         (mips_output_function_epilogue): End the noreorder/nomacro sequence.
12433         (mips16_optimize_gp): Remove "first insn" parameter.
12434         (mips16_lay_out_constants): New function, split out from mips_reorg.
12435         (mips_avoid_hazard, mips_avoid_hazards): New functions.
12436         (mips_reorg): For mips16 code, call mips16_lay_out_constant
12437         and (optionally) mips16_optimize.  If TARGET_EXPLICIT_RELOCS,
12438         do delayed-branch scheduling followed by hazard detection.
12439         (mips_adjust_insn_length): Only account for hazards if
12440         !ignore_hazard_length_p.
12441         (mips_output_load_label): Add a nop to the o32 sequence if
12442         the target suffers from load delays.
12443         (mips_output_conditional_branch): Add %/ to the end of branches.
12444         (mips_output_division): Fill the branch delay slot with %#.
12445         * config/mips/mips.md: Remove redundant '%*' from mips16 branch
12446         instructions.  End all other %* branches with %/.
12447         (ffssi2, ffsdi2): Fix lengths.
12448         (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
12449         (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
12450         (fix_truncsfsi2_macro): Likewise.
12451         (mov_lwl): Set hazard to "none".
12452         (ashldi3_internal): Fill the branch delay slot with %#.
12453         (ashrdi3_internal, lshrdi3_internal): Likewise.
12454         (exception_receiver): Explicitly set $28.
12455         (hazard_nop): New pattern.
12456
12457 2003-07-02  Jan Hubicka  <jh@suse.cz>
12458
12459         * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
12460         before calling tree_inlinable_function_p.
12461
12462 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12463
12464         * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
12465         <internal/stdio_core.h> too.
12466         (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
12467         <internal/wchar_core.h> too.
12468         Substitute va_list uses in inline definition.
12469         * fixinc/fixincl.x: Regenerate.
12470
12471 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12472
12473         * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
12474         Undef before redefinition.
12475         (LABEL_AFTER_LOC): Likewise.
12476         (DEFAULT_SIGNED_CHAR): Likewise.
12477         (ASM_OUTPUT_ASCII): Moved here from iris4.h.
12478         Fix IRIX spelling.
12479
12480         * config/mips/iris3.h: Remove, unused.
12481         * config/mips/iris4.h: Likewise.
12482
12483         * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
12484
12485         * config/mips/iris5.h (TARGET_DEFAULT): Move ...
12486         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
12487         target_cpu_default.
12488
12489         * config/mips/iris5.h: Move explicit includes ...
12490         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
12491
12492         * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
12493         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
12494         tm_defines.
12495
12496         * config/mips/iris6.h (TARGET_DEFAULT): Move ...
12497         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
12498         target_cpu_default.
12499
12500         * config/mips/iris6.h: Fix IRIX spelling.
12501         (MULTILIB_DEFAULTS): Undef before redefinition.
12502
12503         * config/mips/iris6.h: Move explicit includes ...
12504         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
12505
12506 2003-07-02  Jan Hubicka  <jh@suse.cz>
12507
12508         * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
12509         cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
12510         Use next_needed field instead of aux to maintain the queue.
12511         * cgraph.h (cgraph_node): Add next_needed.
12512         (cgraph_varpool_node): Add next_needed; remove aux.
12513         * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
12514
12515 2003-07-02  Jan Hubicka  <jh@suse.cz>
12516
12517         * cgraphunit.c (cgraph_finalize_function): Set finalized.
12518         (cgraph_finalize_function): Do not examine inlinablility.
12519         (cgraph_finalize_compilation_unit): Do it here.
12520         * cgraph.h (cgraph_local_info): Add finalized field.
12521
12522 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12523
12524         * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
12525         (gt_pch_restore): Likewise.
12526
12527 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
12528
12529         * config/alpha/alpha.c: Fix comment typos.
12530         * config/alpha/elf.h: Likewise.
12531         * config/arm/arm.c: Likewise.
12532         * config/arm/arm.h: Likewise.
12533         * config/arm/arm.md: Likewise.
12534         * config/arm/t-arm-coff: Likewise.
12535         * config/arm/t-strongarm-pe: Likewise.
12536         * config/arm/xscale-elf.h: Likewise.
12537         * config/avr/avr.h: Likewise.
12538
12539 2003-07-01  Jeff Law  <law@redhat.com>
12540
12541         * stmt.c (any_pending_cleanups): Remove another redundant test.
12542
12543 2003-07-01  David Edelsohn  <edelsohn@gnu.org>
12544             J"orn Rennecke <joern.rennecke@superh.com>
12545
12546         * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
12547         for MEM case.
12548
12549 2003-07-01  Devang Patel  <dpatel@apple.com>
12550
12551         * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
12552         (binclstatus): New.
12553         (struct dbx_file): New members - bincl_status, pending_bincl_name and
12554         prev.
12555         (pending_bincls): New.
12556         (dbxout_init): Initialize new dbx_file members.
12557         (dbxout_start_source_file): Same.
12558         (emit_bincl_stab): New function.
12559         (emit_pending_bincls): Same.
12560         (emit_pending_bincls_if_required): Same.
12561         (dbxout_end_source_file): Emit EINCL stab only if BINCL is  already
12562         processed.
12563         (dbxout_begin_block): Emit pending BINCL stabs.
12564         (dbxout_end_block): Same.
12565         (dbxout_function_decl): Same.
12566         (dbxout_continue): Same.
12567         (dbxout_type): Same.
12568         (dbxout_class_name_qualifiers): Same.
12569         (dbxout_symbol): Same.
12570         (dbxout_symbol_location): Same.
12571         (dbxout_parms): Same.
12572
12573 2003-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12574
12575         * c-semantics.c (genrtl_case_label): Fix format specifier bug.
12576         * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
12577
12578 2003-07-01  Andreas Jaeger  <aj@suse.de>
12579
12580         * fold-const.c: Convert prototypes to ISO C90.
12581         * function.c: Likewise.
12582         * function.h: Likewise.
12583
12584 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
12585
12586         * doc/contrib.texi: Fix typos.
12587         * doc/invoke.texi: Likewise.
12588         * doc/passes.texi: Likewise.
12589         * doc/sourcebuild.texi: Likewise.
12590         * doc/tm.texi: Likewise.
12591
12592 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
12593
12594         * basic-block.h: Fix comment typos.
12595         * bb-reorder.c: Likewise.
12596         * c-format.c: Likewise.
12597         * cfgcleanup.c: Likewise.
12598         * cfghooks.h: Likewise.
12599         * cfgloop.c: Likewise.
12600         * cfgloopmanip.c: Likewise.
12601         * cfgrtl.c: Likewise.
12602         * cgraph.h: Likewise.
12603         * cgraphunit.c: Likewise.
12604         * combine.c: Likewise.
12605         * convert.c: Likewise.
12606         * dbxout.c: Likewise.
12607         * df.c: Likewise.
12608         * df.h: Likewise.
12609         * diagnostic.c: Likewise.
12610         * dwarf2out.c: Likewise.
12611         * et-forest.h: Likewise.
12612         * flow.c: Likewise.
12613         * fold-const.c: Likewise.
12614         * function.h: Likewise.
12615         * gcov-io.h: Likewise.
12616         * gcov.c: Likewise.
12617         * gcse.c: Likewise.
12618         * genautomata.c: Likewise.
12619         * ggc-common.c: Likewise.
12620         * ggc-page.c: Likewise.
12621         * loop-unroll.c: Likewise.
12622         * loop-unswitch.c: Likewise.
12623         * loop.c: Likewise.
12624         * mips-tfile.c: Likewise.
12625         * optabs.c: Likewise.
12626         * ra-build.c: Likewise.
12627         * ra-colorize.c: Likewise.
12628         * ra-rewrite.c: Likewise.
12629         * ra.h: Likewise.
12630         * regmove.c: Likewise.
12631         * reload.c: Likewise.
12632         * rtlanal.c: Likewise.
12633         * sched-ebb.c: Likewise.
12634         * sched-int.h: Likewise.
12635         * sched-vis.c: Likewise.
12636         * sreal.c: Likewise.
12637         * ssa-ccp.c: Likewise.
12638         * ssa.c: Likewise.
12639         * toplev.c: Likewise.
12640         * tree-inline.c: Likewise.
12641         * value-prof.c: Likewise.
12642         * value-prof.h: Likewise.
12643
12644 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
12645
12646         * rtl.h (emit_line_note_after): Remove.
12647         (emit_note_copy_after, emit_note_copy): New.
12648         * emit-rtl.c (reorder_insns_with_line_notes): Replace
12649         emit_line_note_after with emit_note_copy_after.
12650         (emit_insn_after_with_line_notes): Likewise.
12651         (emit_line_note_after): Kill.
12652         (emit_note_copy_after): New.
12653         (emit_note_copy): New.
12654         * function.c (emit_return_into_block): Use emit_note_copy_after.
12655         (thread_prologue_and_epilogue_insns): Likewise.
12656         * integrate.c (expand_inline_function): Use emit_note_copy.
12657         (copy_insn_list): Likewise.
12658         * unroll.c (copy_loop_body): Likewise.
12659         * cfglayout.c (duplicate_insn_chain): Likewise.
12660
12661 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
12662
12663         * c-tree.h (define_label): Replace filename and lineno arguments
12664         with a location_t.
12665         * c-decl.c (poplevel): Adjust define_label call.
12666         (pop_label_level): Likewise.
12667         (define_label): Replace filename and lineno arguments with a
12668         location_t.
12669         (store_parm_decls): Use DECL_SOURCE_LOCATION.
12670         * c-parse.in (label): Adjust define_label call.
12671
12672 2003-07-01  Neil Booth  <neil@daikokuya.co.uk>
12673
12674         * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
12675         config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
12676         config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
12677         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
12678         config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
12679
12680 2003-07-01  Andreas Jaeger  <aj@suse.de>
12681
12682         * final.c: Convert prototypes to ISO C90.
12683         * flow.c: Likewise.
12684         * flags.h: Likewise.
12685         * gcov-io.c: Likewise.
12686         * gcov-io.h: Likewise.
12687
12688 See ChangeLog.9 for earlier changes.