* i386.c (classify_argument): Make it 64bit clean.
[official-gcc.git] / gcc / ChangeLog
blobf94dfda77b5cefa7bb1edb055fdb5a1c72c20ad8
1 2003-12-03  Jan Hubicka  <jh@suse.cz>
3         * i386.c (classify_argument): Make it 64bit clean.
5 2003-12-02  Richard Sandiford  <rsandifo@redhat.com>
7         * config/mips/mips.c (mips_output_external): Replace checks for
8         specific builtin-in functions with a check for DECL_BUILTIN_IN.
10 2003-12-02  Richard Henderson  <rth@redhat.com>
12         * rtl.h (PUT_CODE, PUT_MODE): Remove ENUM_BITFIELD cast.
13         * tree.h (TREE_SET_CODE): Likewise.
14         * recog.h (struct insn_operand_data): Move const after ENUM_BITFIELD.
16 2003-12-02  Ben Elliston  <bje@wasabisystems.com>
18         * dbxstclass.h: Rename from this ..
19         * xcoff.h: .. to this.
20         * xcoffout.c: Include xcoff.h.
22 2003-12-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24         * Makefile.in (GCC_CFLAGS): Add -Wold-style-definition.
26 2003-12-01  James Lemke <jim@wasabisystems.com>
28         * config/arm/arm.c (arm_rtx_costs): Improve for xscale multiply.
30 2003-12-01  Roger Sayle  <roger@eyesopen.com>
32         PR optimization/11634
33         * recog.c (split_insn): Factor test of INSN_P and handling of
34         set_noop_p out of here into the two callers.
35         (split_all_insns): Add INSN_P test and set_noop_p handling here.
36         If deleting a no-op set after reload that has a REG_UNUSED note,
37         mark the basic block as changed and recalculate life information.
38         (split_all_insns_noflow): Add INSN_P test and set_noop_p handling
39         here.
41 2003-12-01  Roger Sayle  <roger@eyesopen.com>
43         PR optimization/12322
44         * gcse.c (struct ls_expr): Change type of hash_index from int to
45         unsigned int.
46         (hash_expr): Document hash_table_size parameter and wrap long line.
47         (ldst_entry): Calculate expression's hash_index and record in ptr.
48         (trim_ld_motion_mems): Use hash_index to search a single bucket
49         instead of scanning the entire hash_table.  Remove the "del" local
50         variable and use the equivalent "expr == 0" instead.  Change last
51         to be a pointer to the pointer to the current element, to simplify
52         and speed-up deleting from a linked list.
54 2003-12-01  James E Wilson  <wilson@specifixinc.com>
56         * doc/contrib.texi: Update David Mosberger.
58         * doc/c-tree.texi (CONSTRUCTOR): Clarify element order and handling
59         of missing fields.
61         PR target/8407
62         * config/ia64/ia64.c (ia64_function_arg): For single-reg HFA, call
63         gen_rtx_REG to create new reg with argument mode.
65 2003-12-01  Steven Bosscher  <stevenb@suse.de>
67         * ggc.h (struct alloc_zone): Move forward declaration up.
68         (new_ggc_zone): New function prototype.
69         (destroy_ggc_zone): Ditto.
70         * ggc-simple.c (new_ggc_zone): New function, does nothing.
71         (destroy_ggc_zone): Ditto.
72         * ggc-page.c (new_ggc_zone): New function, does nothing.
73         (destroy_ggc_zone): Ditto.
74         * ggc-zone.c (struct page_entry): Fix comment.
75         (ggc_alloc_typed): Use a switch statement instead of ifs.
76         (new_ggc_zone): New function to set up a new GC zone.
77         (destroy_ggc_zone): New function to remove a GC zone.
78         init_ggc): Use new_ggc_zone to set up the default zones.
79         (ggc_collect): Walk a list of zones, instead of just the
80         default zones.  Report statistics using the zone name.
82 2003-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
84         * unroll.c (find_splittable_givs): Add missing extend_value_for_giv.
86 2003-12-01  Roger Sayle  <roger@eyesopen.com>
88         PR optimization/12628
89         * toplev.c (rest_of_handle_jump_bypass): Call reg_scan.
90         * regclass.c (reg_scan): Include allocate_reg_info time in
91         TV_REG_SCAN.  Minor clean-ups.
92         (reg_scan_update): Minor clean-ups.
94 2003-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
96         * config.gcc (s390x-ibm-tpf*): Add extra_parts.
98 2003-12-01  James E Wilson  <wilson@specifixinc.com>
100         * config/ia64/ia64.h (FUNCTION_ARG_REGNO_P): Use AR_REG_FIRST not
101         GR_ARG_FIRST.
103 2003-12-01  Zack Weinberg  <zack@codesourcery.com>
105         * common.opt: Remove -fgnu-linker.
106         * flags.h: Remove flag_gnu_linker.
107         * opts.c: Don't handle OPT_fgnu_linker.
108         * toplev.c: Don't initialize flag_gnu_linker.
109         Remove gnu-linker entry from f_options.
110         * config/dsp16xx/dsp16xx.h (OPTIMIZATION_OPTIONS):
111         Don't reset flag_gnu_linker.
112         * config/mips/mips.c (override_options): Likewise.
113         * doc/invoke.texi: Remove all mention of -fgnu-linker.
115 2003-12-01  Daniel Berlin  <dberlin@dberlin.org>
117         * ggc-zone.c (ggc_pch_write_object): Calculate object size using
118         ggc_get_size (which accounts for large objects properly).
120 2003-12-01  Jeff Sturm  <jsturm@one-point.com>
122         PR optimization/13024
123         * toplev.c (rest_of_handle_new_regalloc): Remove rebuild_notes
124         parameter.
125         (rest_of_handle_old_regalloc): Likewise.  Add rebuild_notes
126         declaration.  Rebuild jump labels following local_alloc if necessary.
127         (rest_of_compilation): Remove rebuild_label_notes_after_reload
128         declaration.  Don't pass rebuild_notes parameter to
129         rest_of_handle_new_regalloc and rest_of_handle_old_regalloc.
130         Don't rebuild jump labels.
132 2003-12-01  Jeff Law  <law@redhat.com>
134         * flow.c (count_or_remove_death_notes_bb): New.  Extracted from
135         count_or_remove_death_notes.
136         (count_or_remove_death_notes): Use EXECUTE_IF_SET_IN_SBITMAP.
138 2003-12-01  Andreas Krebbel  <krebbel1@de.ibm.com>
140         * builtins.c (expand_builtin_longjmp): Added two memory clobbers.
142 2003-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
144         * reload.c (find_reloads_address): Split addresses of type
145         (plus (plus (reg) (reg)) (const_int)) only if one register
146         is either a valid base register or else one of the stack
147         frame related registers (sp/fp/ap).
149 2003-12-01  Steven Bosscher  <stevenb@suse.de>
151         * function.c (update_epilogue_consts): Don't use PARAMS.
152         * rtl.h (web_main): Ditto.
153         * target.h (is_costly_dependence): Ditto
155 2003-12-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
157         PR middle-end/7847
158         * expr.c (expand_expr) [normal_inner_ref]: When 'offset' is non-zero,
159         do not recheck that 'op0' is a MEM.  Move comment.  When testing for
160         unaligned objects, take also into account the alignment of 'op0' and
161         'mode1' if 'op0' is a MEM.
163 2003-12-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
165         * doc/c-tree.texi (Function Bodies): Update HANDLER documentation.
167 2003-12-01  Kelley Cook  <kcook@gcc.gnu.org>
169         * doc/install.texi: Note that fastjar is built with automake 1.7.x
170         and autoconf 2.57.
172 2003-12-01  Alan Modra  <amodra@bigpond.net.au>
174         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
175         target_flags directly rather than using TARGET_* defines.
177 2003-11-30  Ben Elliston  <bje@wasabisystems.com>
179         * doschk.c: Remove.
181 2003-11-30  Richard Sandiford  <rsandifo@redhat.com>
183         PR target/12727
184         * config/mips/mips.c (mips_save_reg): Fix frame information for sdc1
185         on 32-bit big-endian targets.
187 2003-11-30  Kazu Hirata  <kazu@cs.umass.edu>
189         * genemit.c (register_constraints): Remove.
191 2003-11-30  Andreas Krebbel  <krebbel1@de.ibm.com>
193         * config/s390/s390.md ("tmdi_reg", "tmsi_reg", "*movdi_64", "*movdi_31",
194         "iordi3"): Insns now use multiple letter constraints.
195         ("*movdi_lhi", "*movdi_lli", "*movdi_lay"): Insns deleted. They are now
196         covered by "*movdi_64".
197         ("*movsi_lhi", "*movsi_lli", "*movsi_lay"): Insns deleted. They are now
198         covered by "*movsi_zarch" and "*movsi_esa".
199         ("*movsi_zarch", "*movsi_!zarch"): New insns.
200         ("*llgt_sisi_split", "*llgt_didi_split"): Insns deleted. Now covered
201         by "*andsi3_zarch" and "anddi3".
202         ("*anddi3_ni"): Insn merged with "anddi3".
203         ("*andsi3_ni"): Insn merged with "*andsi3_zarch".
204         ("*andsi3_zarch", "*andsi3_esa"): New insns.
205         ("*iordi3_oi"): Insn merged with "iordi3".
206         ("*iorsi3_oi"): Insn merged with "*iorsi3_zarch".
207         ("*iorsi3_zarch", "*iorsi3_esa"): New insns.
209         * config/s390/s390.c (s390_single_qi, s390_single_hi): Functions
210         merged to s390_single_part.
211         (s390_single_part): New function.
212         NOTE: Semantics have changed a bit. Now the value of the part must
213         be different from the others to get a non-negative return value.
214         (s390_extract_qi, s390_extract_hi): Functions merged to
215         s390_extract_part.
216         (s390_extract_part, s390_extra_constraint_str,
217         s390_const_ok_for_constraint_p): New functions. The L constraint got a
218         new meaning and the N constraint was added as a multiple letter
219         constraint.
220         (s390_extra_constraint): Function deleted.
221         (print_operand): New output modifier 'i' and 'j' added.
222         All uses of CONST_OK_FOR_LETTER_P were replaced by
223         CONST_OK_FOR_CONSTRAINT_P.
225         * config/s390/s390-protos.h: Function prototypes adapted.
226         * doc/md.texi: Documentation for new constraint letters added.
228 2003-11-30  Andreas Schwab  <schwab@suse.de>
230         * Makefile.in ($(DESTDIR)$(infodir)/%.info): Fix missing semicolon.
232 2003-11-29  James E Wilson  <wilson@specifixinc.com>
234         * gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name
235         instead of in shared_name.
237         * final.c (final_start_function): Delete code for NON_SAVING_SETJMP.
238         * reload1.c (reload): Re-add it here.
240 2003-11-30  Alan Modra  <amodra@bigpond.net.au>
242         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Don't
243         set SECTION_WRITE on TARGET_RELOCATABLE.
245 2003-11-29  Kazu Hirata  <kazu@cs.umass.edu>
247         * config/h8300/h8300.h (LIBCALL_VALUE): Use R0_REG.
249 2003-11-28  Gunther Nikl  <gni@gecko.de>
251         * config/m68k/m68k.c (MOTOROLA): Move from here...
252         * config/m68k/m68k.h (MOTOROLA): ... to here.
253         (OUTPUT_JUMP): Use do {...} while (0).
254         * config/m68k/m68k.md: Replace #ifdef MOTOROLA with C statements.
256 2003-11-28  Gunther Nikl  <gni@gecko.de>
258         * config.gcc (m68020-*-elf*, m68k-*-elf*, m68010-*-netbsdelf*,
259         m68k*-*-netbsdelf*, m68k-*-rtems*): Add tm_defines containing
260         MOTOROLA and USE_GAS.
261         * config/m68k/rtemself.h (MOTOROLA): Delete.
262         * config/m68k/netbsd-elf.h (MOTOROLA, USE_GAS): Delete.
263         * config/m68k/m68kelf.h (MOTOROLA, USE_GAS, SGS_CMP_ORDER): Delete.
265 2003-11-29  Kazu Hirata  <kazu@cs.umass.edu>
267         * config/h8300/h8300.h (WORDS_BIG_ENDIAN): Update the comment.
269 2003-11-29  Kelley Cook  <kcook@gcc.gnu.org>
271         * Makefile.in (install-info): Install gccinstall.info too.
273 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
275         * config/s390/s390.md ("cmpint_di"): Fix incorrect instruction lengths.
277 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
279         * config/s390/s390.md ("movhi"): Do not emit extender pattern
280         when loading from a (MEM (ADDRESSOF ...)).
281         ("movqi"): Likewise.
283 2003-11-29  Joseph S. Myers  <jsm@polyomino.org.uk>
285         PR c/10333
286         * c-parse.in (typespec_reserved_nonattr): Reject typeof on
287         bit-fields.
289 2003-11-29  Richard Sandiford  <rsandifo@redhat.com>
291         * stmt.c (expand_asm_operands): Check whether force_const_mem
292         succeeded.
294 2003-11-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
296         * config/gnu.h (HURD_TARGET_OS_CPP_BUILTINS): New.
297         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): New.
299         * config/alpha/gnu.h, config/alpha/linux.h,
300         config/arm/linux-elf.h, config/cris/cris.h, config/cris/linux.h,
301         config/i370/linux.h, config/i386/gnu.h, config/i386/i386.h,
302         config/i386/linux-aout.h, config/i386/linux.h,
303         config/i386/linux64.h, config/ia64/linux.h, config/m68k/linux.h,
304         config/m68k/uclinux.h, config/mips/linux.h,
305         config/mn10300/linux.h, config/pa/pa-linux.h,
306         config/rs6000/sysv4.h, config/s390/linux.h, config/sh/linux.h,
307         config/sparc/linux.h, config/sparc/linux64.h,
308         config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Use
309         HURD_TARGET_OS_CPP_BUILTINS/LINUX_TARGET_OS_CPP_BUILTINS or ensure
310         all necessary assertions are included.
312 2003-11-28  Jan Hubicka  <jh@suse.cz>
314         * emit-rtl.c (set_used_flags): New.
315         (verify_rtx_sharing, verify_rtl_sharing): New.
316         (unshare_all_rtl_1): Rename to....
317         (unshare_all_rtl_in_chain): ... this one; make static.
318         (copy_rtx_if_shared): LABEL_REF chan be shared.
319         * ifcvt.c (unshare_ifcvt_sequence): New.
320         (noce_try_move, noce_try_store_flag, noce_try_store_flag_constants,
321         noce_try_addcc, noce_try_addcc, noce_try_store_flag_mask,
322         noce_try_cmove, noce_try_store_flag_mask, noce_try_minmax,
323         noce_try_abs, noce_process_if_block, find_cond_trap
324         * rtl.h (verify_rtl_sharing, set_used_flags, unshare_all_rtl_in_chain):
325         Declare.
327 2003-11-28  Kazu Hirata  <kazu@cs.umass.edu>
329         * config/h8300/h8300.md: Fix a comment typo.
331 2003-11-28  Kazu Hirata  <kazu@cs.umass.edu>
333         * config/h8300/h8300.md (*movsf_h8300h): Change to
334         *movsf_h8300hs.
335         (addsi_h8300): Change to *addsi_h8300.
336         (addsi_h8300h): Change to *addsi_h8300hs.
337         (subsi3_h8300): Change to *subsi3_h8300.
338         (subsi3_h8300h): Change to *subsi3_h8300hs.
339         (neghi2_h8300h): Change to *neghi2_h8300hs.
340         (negsi2_h8300h): Change to *negsi2_h8300hs.
342 2003-11-28  Kazu Hirata  <kazu@cs.umass.edu>
344         * config/h8300/h8300.md (*subhi3_h8300): Remove '&' from the
345         constraint.
346         (*subhi3_h8300hs): Likewise.
348 2003-11-28  David Edelsohn  <edelsohn@gnu.org>
350         * config/rs6000/rs6000.h (MASK_MFCRF): New.
351         (TARGET_MFCRF): Test target_flags, not processor type.
352         (TARGET_SWITCHES): Add mfcrf and no-mfcrf.
353         Change Don't to Do not.
354         * config/rs6000/rs6000.c (processors_target_table): Add MASK_MFCRF
355         to power4, 970, G5.
357 2003-11-27  J"orn Rennecke <joern.rennecke@superh.com>
359         * cse.c (cse_set_around_loop): When changing a constant load
360         to a register -register copy, add a REG_EQUAL note.
362 2003-11-27  Randolph Chung  <tausq@debian.org>
363             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
365         * pa.c (hppa_profile_hook): Split gen_call_profiler into separate
366         insns.  Use the regular call expander for the call to the profiler.
367         * pa.md (call_profiler): Delete.
368         (load_offset_label_address): New insn to load the address of the
369         current function for the profiler.
370         (lcla1, lcla2): New insns to output a code label and load its address.
372 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
374         * final.c (final_scan_insn): Remove commented-out code.
376 2003-11-27  Nathanael Nerode  <neroden@gcc.gnu.org>
378         * doc/install.texi: Remove ADAC reference and make accurate.
380 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
382         * config/h8300/h8300.h (FUNCTION_VALUE): Use R0_REG.
383         (FUNCTION_VALUE_REGNO_P): Likewise.
384         * config/h8300/h8300.md: Define R0_REG.
386 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
388         * config/h8300/h8300.c: Fix formatting.
389         * config/h8300/h8300.md: Likewise.
391 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
393         * config/h8300/h8300.h (ELIMINABLE_REGS): Update a comment.
395 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
397         * config/h8300/h8300.md: Give names to anonymous insns.
399 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
401         * config/h8300/h8300.md (extendqisi2): Remove constraints.
403 2003-11-27  Gunther Nikl  <gni@gecko.de>
405         * doc/tm.texi (SYSROOT_HEADERS_SUFFIX_SPEC): Fix typo.
407 2003-11-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
409         PR optimization/13041
410         * final.c (frame_pointer_needed): Fix comment.
411         * reload1.c (reload): Decrease alignment of the frame
412         pointer if it was used for register allocation.
414 2003-11-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
416         PR target/12900
417         * reg-stack (move_for_stack_reg): New prototype.  Return
418         whether a control flow insn was deleted.
419         (subst_stack_regs_pat): Likewise, using the information provided
420         by move_for_stack_reg.
421         (subst_stack_regs): Likewise, using the information provided
422         by subst_stack_regs_pat.
423         (convert_regs_1): Record whether a control flow insn was deleted,
424         using the information provided by subst_stack_regs.  Purge dead
425         edges only if a control flow insn was deleted.
427 2003-11-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
429         PR middle-end/8028
430         PR middle-end/9890
431         PR middle-end/11151
432         PR middle-end/12210
433         PR middle-end/12503
434         PR middle-end/12692
435         * builtins.c (expand_builtin_apply): Use virtual_outgoing_args_rtx
436         as the base address to copy the memory arguments to.
438 2003-11-26  Danny Smith  <dannysmith@users.sourceforge.net>
440         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Declare
441         function aliases as functions.
443 2003-11-26  Nathanael Nerode  <neroden@gcc.gnu.org>
445         * aclocal.m4 (gcc_AC_PROG_GNAT): Rewrite to account for removal
446         of ADAC.
447         * configure: Regenerate.
449         * Makefile.in: Remove references to ADAC.
451         * configure.in: Remove check for whether ${ADAC} accepts -Wno-long-long.
452         * configure: Regenerate.
454 2003-11-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
455             Olivier Hainque  <hainque@act-europe.fr>
457         PR target/6466
458         * config/sparc/sparc-protos.h (compute_frame_size): New prototype.
459         (sparc_flat_compute_frame_size): Likewise.
460         (sparc_flat_save_restore): Move prototype...
461         * config/sparc/sparc.c (sparc_flat_save_restore): ...here.
462         (save_regs): New prototype.
463         (build_big_number): Likewise.
464         (apparent_fsize): Change type to HOST_WIDE_INT.
465         (actual_fsize): Likewise.
466         (frame_base_offset): Likewise.
467         (build_big_number): Add support for HOST_BITS_PER_WIDE_INT == 64.
468         Change string descriptor to HOST_WIDE_INT_PRINT_DEC.
469         [TARGET_ARCH64]: Use the sequence of sparc_emit_set_const64_longway
470         to load a 64-bit constant.
471         (sparc_nonflat_function_prologue): Change string descriptor to
472         HOST_WIDE_INT_PRINT_DEC.  Change offset type to HOST_WIDE_INT.
473         (output_restore_regs): Change offset type to HOST_WIDE_INT.
474         (sparc_nonflat_function_epilogue): Change string descriptor to
475         HOST_WIDE_INT_PRINT_DEC.  Use build_big_number.
476         (output_sibcall): Change size type to HOST_WIDE_INT.  Use
477         build_big_number.  Change string descriptor to HOST_WIDE_INT_PRINT_DEC.
478         (sparc_frame_info): Change types for several components.
479         (sparc_flat_compute_frame_size): Update types according to previous
480         change.
481         (sparc_flat_function_prologue): Change string descriptor to
482         HOST_WIDE_INT_PRINT_DEC.  Change offset type to int.  Use
483         build_big_number.
484         (sparc_flat_function_epilogue): Change offset type to int.
485         Rename 'size1' into 'reg_offset1'.  Change string descriptor to
486         HOST_WIDE_INT_PRINT_DEC.  Use build_big_number.  Change big number
487         limit to 4096 instead of 4095.
489         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Change offset type to
490         HOST_WIDE_INT.
492 2003-11-24  Waldek Hebisch <hebisch@math.uni.wroc.pl>
494         * function.c: Make outer_function-chain external.
495         * function.h: Likewise.
497 2003-11-24  Richard Sandiford  <rsandifo@redhat.com>
499         * config.gcc (mips-sgi-irix6*): Add t-iris6gld to tmake_file when
500         using GNU ld.
501         * config/mips/iris6.h (IRIX6_STARTFILE_SPEC): New, taking the
502         whole of the previous STARTFILE_SPEC except crtbegin.o%s.
503         (IRIX6_ENDFILE_SPEC): Likewise ENDFILE_SPEC and crtend.o%s.
504         (STARTFILE_SPEC, ENDFILE_SPEC): Define in terms of the above.
505         (SUBTARGET_EXTRA_SPECS): Define.
506         * config/mips/iris6gld.h (LINK_SPEC): Change -init function
507         to __gcc_init and -fini function to __gcc_fini.
508         (STARTFILE_SPEC): Redefine, including irix6-crti.o before crtbegin.o.
509         (ENDFILE_SPEC): Likewise, including irix6-crtn.o after crtend.o.
510         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Define.
511         * config/mips/t-iris6gld,
512         * config/mips/irix6-crti.asm,
513         * config/mips/irix6-crtn.asm: New files.
515 2003-11-24  Eric Christopher  <echristo@redhat.com>
517         PR C/13014
518         * c-decl.c (c_in_iteration_stmt, c_in_case_stmt): New.
519         (start_function): Use.
520         (c_push_function_context): Ditto.
521         (c-pop_function_context): Ditto.
522         (language_function): Move...
523         * c-tree.h: ... here. Add x_in_iteration_stmt, and
524         x_in_case_stmt.
525         * c-parse.in (do_stmt_start, select_or_iter_stmt, stmt): Use
526         c_in_iteration_stmt, c_in_case_stmt for parser state. Move
527         check for valid break or continue statment here...
528         * c-semantics.c (genrtl_break_stmt, genrtl_continue_stmt): From
529         here. Change original errors to abort.
531 2003-11-24  Jan Hubicka  <jh@suse.cz>
533         * fold-const.c (fold):  Do not return early when optimizing
534         COMPONENT_REF and constant.
536 2003-11-24  Kazu Hirata  <kazu@cs.umass.edu>
538         * config/h8300/h8300.md (tablejump_h8300): Change to
539         *tablejump_h8300.
540         (tablejump_h8300h): Change to *tablejump_h8300hs_advanced.
541         (tablejump_normal_mode): Change to *tablejump_h8300hs_normal.
542         (indirect_jump_h8300): Change to *indirect_jump_h8300.
543         (indirect_jump_h8300h): Change to
544         *indirect_jump_h8300hs_advanced.
545         (indirect_jump_normal_mode): Change to
546         *indirect_jump_h8300hs_normal.
548 2003-11-24  Kazu Hirata  <kazu@cs.umass.edu>
550         * config/h8300/h8300.md: Remove constraints from expanders.
552 2003-11-24  Kazu Hirata  <kazu@cs.umass.edu>
554         * config/h8300/h8300.md: (stm_h8300s_2): Change the name to
555         stm_h8300s_2_advanced.
556         (stm_h8300s_2_normal): New.
557         (stm_h8300s_2): Likewise.
558         (stm_h8300s_3): Change the name to stm_h8300s_3_advanced.
559         (stm_h8300s_3_normal): New.
560         (stm_h8300s_3): Likewise.
561         (stm_h8300s_4): Change the name to stm_h8300s_4_advanced.
562         (stm_h8300s_4_normal): New.
563         (stm_h8300s_4): Likewise.
564         (ldm_h8300s_2): Change the name to ldm_h8300s_2_advanced.
565         (ldm_h8300s_2_normal): New.
566         (ldm_h8300s_2): Likewise.
567         (ldm_h8300s_3): Change the name to ldm_h8300s_3_advanced.
568         (ldm_h8300s_3_normal): New.
569         (ldm_h8300s_3): Likewise.
570         (ldm_h8300s_4): Change the name to ldm_h8300s_4_advanced.
571         (ldm_h8300s_4_normal): New.
572         (ldm_h8300s_4): Likewise.
573         (two peephole2's): Enable only with !TARGET_NORMAL_MODE.
574         (two peephole2's): New.
576 2003-11-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
578         * genattrtab.c (simplify_cond): Update indices correctly.
579         (attr_alt_subset_p, attr_alt_subset_of_compl_p, attr_alt_intersection,
580         attr_alt_union, attr_alt_complement, attr_alt_bit_p, mk_attr_alt): New.
581         (check_attr_test, encode_units_mask, compute_alternative_mask,
582         make_alternative_compare, simplify_and_tree,
583         attr_rtx_cost, simplify_test_exp, gen_attr,
584         write_test_expr, walk_attr_value): Handle EQ_ATTR_ALT.
585         * rtl.def (EQ_ATTR_ALT): New.
587 2003-11-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
589         * genattrtab.c (strcmp_check, DEF_ATTR_STRING): New macros.
590         (length_str, delay_type_str, delay_1_0_str, num_delay_slots_str):
591         New variables.
592         (main): Initialize them.
593         (find_attr): Canonicalize the attribute name string.
594         (attr_rtx_1, copy_boolean, expand_delays, gen_unit): Always canonicalize
595         string arguments.
596         (attr_printf, attr_eq): Use DEF_ATTR_STRING.
597         (check_attr_test, check_attr_value, make_length_attrs,
598         write_length_unit_log, simplify_by_exploding, gen_attr,
599         write_test_expr, write_attr_value, write_eligible_delay,
600         write_complex_function, make_internal_attr,
601         write_const_num_delay_slots): Changed due to change of type of
602         find_attr.
603         (fill_attr, evaluate_eq_attr, simplify_and_tree,
604         attr_rtx_cost, simplify_by_exploding, walk_attr_value): Use
605         strcmp_check.
607 2003-11-23  Kazu Hirata  <kazu@cs.umass.edu>
609         PR target/13122
610         * config/h8300/h8300.c (push): Call push_h8300hs_normal in
611         normal mode.
612         (pop): Call pop_h8300hs_normal in normal mode.
613         * config/h8300/h8300.md: Likewise.
614         (pushqi1_h8300hs_normal): New.
615         (pushqi1): Call pushqi1_h8300hs_normal in normal mode.
616         (pushhi1_h8300hs_normal): New.
617         (pushhi1): Call pushhi1_h8300hs_normal in normal mode.
618         (push_h8300hs_normal): New.
619         (pop_h8300hs_normal): Likewise.
621 2003-11-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
623         * genattrtab.c (count_sub_rtxs): Removed.
625 2003-11-23  Richard Earnshaw  <rearnsha@arm.com>
627         * recog.c (preprocess_constraints): Only zero those elements of
628         recog_op_alt that are needed for this insn.
629         * arm.c (note_invalid_constants): A function can't contain invalid
630         constants if it has no constraints.
632 2003-11-22  Jan Hubicka  <jh@suse.cz>
634         * i386.c (classify_argument): Pass __float128 in memory.
635         (ix86_return_in_memory): Likewise.
636         (ix86_libcall_value): Likewsie.
638 2003-11-22  Kazu Hirata  <kazu@cs.umass.edu>
640         * config/h8300/h8300.c (dosize): Convert to ISO-C.
642 2003-11-22  J"orn Rennecke <joern.rennecke@superh.com>
644         * flow.c (update_life_info): Amend comment about when a register
645         can become dead.
647 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
649         * doc/.cvsignore: Delete.
651 2003-11-21  Daniel Berlin  <dberlin@dberlin.org>
652             David Edelsohn  <edelsohn@gnu.org>
654         * dwarf2out.c (add_location_or_const_value_attribute): Add support
655         for PARALLEL.
657 2003-11-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
659         * config/mips/t-iris6 (CRTSTUFF_T_CFLAGS): Add -Wno-error.
660         (TARGET_LIBGCC2_CFLAGS): Define.
662         * crtstuff.c [HAS_INIT_SECTION] (__do_global_dtors): Declare.
663         (__do_global_ctors): Likewise.
665 2003-11-21  Mark Wielaard  <mark@klomp.org>
667         * doc/invoke.texi (-O2): Doesn't enable -fweb.
669 2003-11-21  Kazu Hirata  <kazu@cs.umass.edu>
671         * doc/invoke.texi: Mention dV and dZ.
673 2003-11-21  Kazu Hirata  <kazu@cs.umass.edu>
675         * doc/invoke.texi: Update dump file names.
676         Remove de, dW, and dX.
678 2003-11-20  James E Wilson  <wilson@specifixinc.com>
680         PR c/13133
681         * reload1.c (reload): Delete special handling for setjmp.
683 2003-11-21  Andreas Tobler  <a.tobler@schweiz.ch>
685         * mklibgcc.in: Evaluate shlib_slibdir_qual during link
686         step too.
687         * config/t-slibgcc-darwin: Adjust install path.
688         * config/rs6000/t-darwin: Revert multilib matches since
689         it is not used on darwin.
691 2003-11-20  Richard Henderson  <rth@redhat.com>
693         * ssa.c, ssa-dce.c, ssa-ccp.c: Remove files.
694         * Makefile.in (OBJS-common, GTFILES): Don't reference them.
695         (gtype-desc.o, toplev.o, flow.o): Remove ssa.h.
696         (ssa.o, ssa-dce.o, ssa-ccp.o): Remove.
697         * flow.c: Don't include ssa.h.
698         (set_phi_alternative_reg): Remove.
699         (calculate_global_regs_live): Don't call it.
700         (mark_used_regs): Don't handle PHI.
701         * gengtype.c (open_base_files): Don't reference ssa.h.
702         * rtl.def (PHI): Remove.
703         * timevar.def (TV_TO_SSA, TV_SSA_CCP, TV_SSA_DCE, TV_FROM_SSA): Kill.
704         * common.opt: Remove -fssa, -fssa-ccp, -fssa-dce.
705         * opts.c (common_handle_option): Likewise.
706         * toplev.c (f_options): Likewise.
707         (DFI_ssa, DFI_ssa_ccp, DFI_ssa_dce, DFI_ussa): Remove.
708         (dump_file): Update to match.
709         (flag_ssa, flag_ssa_ccp, flag_ssa_dce): Remove.
710         (rest_of_handle_ssa): Remove.
711         (rest_of_compilation): Don't call it.
712         * toplev.h (flag_ssa, flag_ssa_dce, flag_ssa_ccp): Remove.
713         * doc/invoke.texi: Remove -fssa, -fssa-ccp, -fssa-dce.
714         * doc/passes.texi (SSA optimizations): Remove.
716 2003-11-20  Bob Wilson  <bob.wilson@acm.org>
718         * configure.in: Add xtensa-*-* targets to test for dwarf2 debug_line.
719         * configure: Regenerate.
721 2003-11-20  Kelley Cook  <kcook@gcc.gnu.org>
723         * Makefile.in (Makefile): Pass along CONFIG_SHELL.
725 2003-11-20 David Mosberger  <davidm@hpl.hp.com>
727         * config/t-libunwind (LIB2ADDEH): Add unwind-c.c.
728         (SHLIB_LC): Define.
729         * unwind-libunwind.c (_Unwind_GetCFA): Implement.
730         (_Unwind_GetBSP) [UNW_TARGET_IA64]: New function.
732 2003-11-20  Fariborz Jahanian  <fjahanian@apple.com>
733             David Edelsohn  <edelsohn@gnu.org>
735         * calls.c (expand_call): Allocate new temp in pass1.
736         (store_one_arg): If PARALLEL, calculate excess using mode size of
737         rtvec elt.
738         * expr.c (emit_push_insn): If PARALLEL, calculate offset using
739         mode size of rtvec elt.
740         * function.c (assign_parms): Use parm in register, if available.
742 2003-11-20  Kazu Hirata  <kazu@cs.umass.edu>
744         * config/h8300/lib1funcs.asm (MOVP): Remove.
745         (ADDP): Likewise.
746         (CMPP): Likewise.
748 2003-11-20  Richard Earnshaw  <rearnsha@arm.com>
750         * arm.c (use_return_insn): New argument, SIBLING.  Support returning
751         with a single instruction if the stack has been decremented by 4
752         and we have a frame pointer.  Update all callers.
753         (output_return_instruction): Likewise.
754         (arm_output_epilogue): Change argument to SIBLING.  Calculate
755         really_return from the new argument.  Update all callers.
756         * arm.h (USE_RETURN_INSN): Pass NULL for the sibling.
757         * arm.md (sibcall_epilogue): Call use_return_insn directly, and
758         pass the sibling call.
759         * arm-protos.h (use_return_insn, arm_output_epilogue): Update
760         prototypes.
762 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
764         * Makefile.in (extraclean): Delete.
765         * configure.in (target_list): Remove extraclean.
766         * configure: Regenerate.
767         * doc/makefile.texi, doc/sourcebuild.texi: Update.
768         * objc/Make-lang.in (objc.extraclean): Delete.
770 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
772         * Makefile.in (lang_checks): Add.
773         (check-c++, check-f77, check-java, check-g++, check-g77,
774         check-objc): Remove hardcoded targets.
775         * doc/sourcebuild.texi: Document testsuite hooks.
776         * objc/Make-lang.in (check-objc, lang_checks): Add.
778 2003-11-19  Scott Snyder  <snyder@fnal.gov>
780         PR target/13131
781         * dwarf2out.c (gen_array_type_die): DW_AT_declaration should be a
782         flag, not a constant.
784 2003-11-19  Kelley Cook  <kcook@gcc.gnu.org>
786         * config/arc/arc-protos.h: Update to C90 prototypes.
787         * config/arc/arc.c: Likewise.
788         * config/arc/initfini.c: Likewise.
790 2003-11-19  Andreas Krebbel  <krebbel1@de.ibm.com>
792         * stmt.c (expand_goto): Memory clobbers added.
794 2003-11-19  Andreas Krebbel  <krebbel1@de.ibm.com>
796         * reload.c (find_reloads): Added missing type casts.
798 2003-11-19  James E Wilson  <wilson@specifixinc.com>
800         * combine.c (sets_function_arg_p): Delete unused function.
802 2003-11-19  Eric Christopher  <echristo@redhat.com>
804         * reload1.c (reload): Revert 2 previous checkins.
806 2003-11-19  Nathanael Nerode  <neroden@gcc.gnu.org>
808         * cpptrad.c (_cpp_scan_out_logical_line): Improve test for
809         whether directive begins at the beginning of a line.
811 2003-11-19  Richard Sandiford  <rsandifo@redhat.com>
813         * config/frv/frv.c (frv_init_libfuncs): Correct ufix_optab entries.
815 2003-11-19  Gerald Pfeifer  <gp@suse.de>
817         * doc/install.texi (Specific): Remove information on old versions
818         of glibc versus old versions of GCC.
820 2003-11-19  Richard SAndiford  <rsandifo@redhat.com>
822         * emit-rtl.c (gen_lowpart): Don't force MEMs into a register unless
823         the register lowpart is a TRULY_NOOP_TRUNCATION.
825 2003-11-19  Richard Henderson  <rth@redhat.com>
827         * config/i386/i386.c (print_reg): Handle QI and HI modes for
828         non Q regs.
830 2003-11-19  Andreas Tobler  <a.tobler@schweiz.ch>
832         * config/config.gcc (powerpc-*-darwin*): Add libgcc build
833         specification file.
834         * config/t-slibgcc-darwin: New file, libgcc build specification.
835         * config/t-darwin: Add libgcc2 flag -fPIC.
836         * config/rs6000/t-darwin: Multilib matches float.
837         * libgcc-darwin.ver: New file, contains libgcc symbols.
839 2003-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
841         * config/ns32k/ns32k.h: Remove obsolete comment.
843 2003-11-18  Roger Sayle  <roger@eyesopen.com>
845         PR middle-end/11821
846         * config/arm/arm.c (arm_rtx_costs_1): Improve estimate of the code
847         size for calls to libgcc's div & mod subroutines when using -Os.
849 2003-11-18  Jan Hubicka  <jh@suse.cz>
851         * cgraph.c (change_decl_assembler_name): Avoid bogus warnings.
853 2003-11-18  Marc Espie  <espie@openbsd.org>
855         * config/rs6000/sysv4.h: OpenBSD hooks.
857 2003-11-18  Richard Henderson  <rth@redhat.com>
859         * expr.c (expand_expr): Don't look through constant arrays if
860         they don't bind locally.
862 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
864         * expr.c (convert_move): Use GET_MODE_PRECISION instead of bitsize
865         when seeing if truncation or extension.
867 2003-11-17  Eric Christopher  <echristo@redhat.com>
869         * reload1.c (reload): Fix previous change.
871 2003-11-17  Scott Snyder  <snyder@fnal.gov>
873         PR debug/11325
874         * dwarf2out.c (struct die_struct): Add die_definition field.
875         (add_AT_specification): New.
876         (gen_subprogram_die, gen_variable_die,
877         gen_struct_or_union_type_die): Use it.
878         (prune_unused_types_mark): If we're marking a forward declaration,
879         also mark the full definition, if it exists.
881 2003-11-16  Nick Clifton  <nickc@redhat.com>
883         * config/stormy16/stormy16.h (BUILD_VA_LIST_TYPE): Delete.
884         * config/stormy16/stormy16-protos.h (xstormy16_build_va_list):
885         Remove prototype.
886         * config/stormy16/stormy16.c (xstormy16_build_va_list): Rename
887         to xstormy16_build_builtin_va_list and make static.
888         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
890 2003-11-16  Kazu Hirata  <kazu@cs.umass.edu>
892         * config/h8300/h8300-protos.h: Add the prototype for
893         same_cmp_following_p.
894         * config/h8300/h8300.c (same_cmp_following_p): New.
895         * config/h8300/h8300.md (peephole2): Use it.
897 2003-11-16  Kazu Hirata  <kazu@cs.umass.edu>
899         * config/h8300/h8300.md: Don't use REGNO when its operand is
900         not guaranteed to be a REG.
902 2003-11-16  Richard Sandiford  <rsandifo@redhat.com>
904         * Makefile.in (expr.o): Depend on $(TARGET_H).
905         * target.h (return_in_msb): New target hook.
906         * target-def.h (TARGET_RETURN_IN_MSB): New macro.
907         (TARGET_CALLS): Include it.
908         * calls.c (shift_returned_value): New function.
909         (expand_call): Use it.
910         * expr.c: Include target.h.
911         (copy_blkmode_from_reg): Check targetm.calls.return_in_msb when
912         deciding what padding is needed.  Change the name of the local
913         padding variable from big_endian_correction to padding_correction.
914         * stmt.c (shift_return_value): New function.
915         (expand_return): Use it.  Adjust memory->register copy in the same
916         way as copy_blkmode_from_reg.  Only change the return register's
917         mode if it was originally BLKmode.
918         * doc/tm.texi (TARGET_RETURN_IN_MSB): Document.
919         * config/mips/mips.c (TARGET_RETURN_IN_MSB): Define.
920         (mips_fpr_return_fields): New, split out from mips_function_value.
921         (mips_return_in_msb, mips_return_fpr_pair): New functions.
922         (mips_function_value): Rework to use the functions above.
923         * config/mips/irix6-libc-compat.c: Delete.
924         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Undefine.
926 2003-11-16  Kazu Hirata  <kazu@cs.umass.edu>
928         * doc/install.texi (--enable-checking): Update valgrind's URL.
930 2003-11-16  Kazu Hirata  <kazu@cs.umass.edu>
932         * config/h8300/h8300.md: Fix warnings by replacing -2147483648
933         with -2147483647 - 1.
935 2003-11-16  Gerald Pfeifer  <gerald@pfeifer.com>
937         Fix links in online manuals.
938         * doc/invoke.texi (H8/300 Options): @xref to ld, not ld.info.
939         (Precompiled Headers): @pxref to cpp, not cpp.info.
941 2003-11-16  Jason Merrill  <jason@redhat.com>
943         * Makefile.in, objc/Make-lang.in (objc.tags): Create TAGS.sub
944         files in each directory and TAGS files that include them for each
945         front end.
947 2003-11-15  Kazu Hirata  <kazu@cs.umass.edu>
949         * config/h8300/lib1funcs.asm (divnorm): Store the sign in bit
950         3 of S2L.
951         (modnorm): Likewise.
952         (exitdiv): Look at bit 3 of S2L only.
954 2003-11-15  Kazu Hirata  <kazu@cs.umass.edu>
956         * config/h8300/h8300.h (DO_GLOBAL_CTORS_BODY): Fix warnings.
957         (DO_GLOBAL_DTORS_BODY): Likewise.
959 2003-11-15  Joseph S. Myers  <jsm@polyomino.org.uk>
961         * doc/install.texi (Prerequisites): Refine documentation of
962         autoconf, automake and perl requirements.  Document required
963         gettext version.
965 <2003-11-14  Jason Merrill  <jason@redhat.com>
967         * function.c (assign_parms): Use TREE_TYPE to determine the real
968         type of the argument object.
970 2003-11-14  Kazu Hirata  <kazu@cs.umass.edu>
972         * config/h8300/lib1funcs.asm (___udivsi3): Peel off the first
973         iteration.
975 2003-11-14  Fariborz Jahanian <fjahanian@apple.com>
977         * config/rs6000/rs6000.c (rs6000_move_block_from_reg):
978           New routine to save vararg registers on stack. Support for
979           -mpowerpc64 in mixed mode.
981 2003-11-14  Bernardo Innocenti  <bernie@develer.com>
983         * config/m68k/m68k.c: Use C statements instead of #ifdef's when testing
984         for MOTOROLA versus MIT syntax.  Improves readability and provides
985         better compile-time error checking for both code paths.
987 2003-11-14  Kelley Cook  <kcook@gcc.gnu.org>
989         * config/frv/frv-protos.h: Update for C90.
990         * config/frv/frv.h: Likewise.
991         * config/frv/frvbegin.c: Likewise.
992         * config/frv/frv.c: Likewise.
993         (frv_adjust_field_align): Delete unused variable.
995 2003-11-14  Geoffrey Keating  <geoffk@apple.com>
997         * config/rs6000/rs6000.md: Add 'DEFAULT_ABI == ABI_DARWIN'
998         to each place where TARGET_LONG_DOUBLE_128 is used with
999         DEFAULT_ABI == ABI_AIX.
1001         * cppfiles.c (_cpp_find_file): Make 'one or more PCH files were found'
1002         message comply with GNU standards.
1004 2003-11-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1006         PR/6552
1007         * function.c (struct epi_info): New field const_equiv.
1008         (update_epilogue_consts): New function.
1009         (keep_stack_depressed): Clear new field and verify scratch register
1010         doesn't have it set.
1011         Call new function via note_stores.
1012         (handle_epilogue_set): Allow setting SP equiv reg in different mode.
1013         Allow PLUS where second operand is register known set to constant.
1014         (emit_equiv_load): Write load using proper mode if source different.
1015         * config/mips/mips.md (return_internal): Put (return) first.
1017 2003-11-14  Kazu Hirata  <kazu@cs.umass.edu>
1019         * config/h8300/lib1funcs.asm (___udivsi3): Add a comment.
1021 2003-11-14  Kazu Hirata  <kazu@cs.umass.edu>
1023         * config/h8300/lib1funcs.asm (modsi3): Don't save unused
1024         registers.
1025         (divsi3): Likewise.
1026         (reti): Don't restore unused registers.
1028 2003-11-14  Nick Clifton  <nickc@redhat.com>
1030         * config/fr30/fr30.c: Include toplev.h
1032 2003-11-14  Richard Earnshaw  <rearnsha@arm.com>
1034         * except.c (sjlj_emit_function_enter): Mark internal label as LOCAL.
1036 2003-11-14  Richard Earnshaw  <rearnsha@arm.com>
1038         * arm.c (arm_emit_vector_const, arm_output_load_gr): Use ISO C
1039         function definition syntax.
1041 2003-11-14  Eric Christopher  <echristo@redhat.com>
1043         * reload1.c (reload): Revert previous patch. Make
1044         check for assignment into reg_equiv_address stricter.
1046 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
1048         * Makefile.in (POSTSTAGE1_FLAGS_TO_PASS): Pass ADAFLAGS.
1050 2003-11-14  Richard Sandiford  <rsandifo@redhat.com>
1052         * config/frv/frv.c (frv_in_small_data_p): Return false for unknown
1053         section names.
1055 2003-11-14  Jason Merrill  <jason@redhat.com>
1057         PR middle-end/12526
1058         * tree.c (build): A CALL_EXPR has side-effects if its arguments do.
1059         * calls.c (call_expr_flags): New fn.
1060         * tree.h: Declare it.
1062 2003-11-13  Kazu Hirata  <kazu@cs.umass.edu>
1064         * config/h8300/lib1funcs.asm (__udivsi3): Remove.
1065         (divmodsi3): Change the name to ___udivsi3.
1066         Update all callers.
1068 2003-11-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1070         * libgcc2.c (__negdi2, __addvsi3, __addvdi3, __subvsi3, __subvdi3,
1071         __mulvsi3, __negvsi2, __negvdi2, __mulvdi3, __lshrdi3, __ashldi3,
1072         __ashrdi3, __ffsDI2, __muldi3, __clzDI2, __ctzDI2, __parityDI2,
1073         __udivmoddi4, __divdi3, __moddi3, __cmpdi2, __ucmpdi2,
1074         __fixunstfDI, __fixunsxfDI, __fixunsdfDI, __fixunssfDI,
1075         __floatdixf, __floatditf, __floatdidf, __floatdisf, __gcc_bcmp):
1076         Const-ify and/or initialize automatic variables at declaration.
1078 2003-11-13  Kazu Hirata  <kazu@cs.umass.edu>
1080         * config/h8300/lib1funcs.asm (divmodsi4): Replace all the uses
1081         of er4 with er3.  Adjust all callers.
1083 2003-11-13  Andrew Pinski <apinski@apple.com>
1085         * config/darwin.c (machopic_output_possible_stub_label):
1086         Allow stub symbol be not defined when outputting possible
1087         stub label.
1089 2003-11-13  Kazu Hirata  <kazu@cs.umass.edu>
1091         * config/h8300/lib1funcs.asm (___udivsi3): Jump to reti
1092         instead of exitdiv.
1093         (___umodsi3): Likewise.
1094         (exitdiv): Do not restore any register.
1095         (reti): Restore registers.
1097 2003-11-13  Steven Bosscher  <stevenb@suse.de>
1099         * tree-inline.c (walk_tree): Handle PLACEHOLDER_EXPR.
1101 2003-11-13  Kazu Hirata  <kazu@cs.umass.edu>
1103         * config/h8300/lib1funcs.asm: Fix comment typos.
1105 2003-11-13  Kazu Hirata  <kazu@cs.umass.edu>
1107         * config/h8300/lib1funcs.asm (udivsi3): Don't save/restore
1108         unused registers.  Don't jump to exitdiv.
1109         (umodsi3): Likewise.
1111 2003-11-13  Mark Mitchell  <mark@codesourcery.com>
1112             Kean Johnston <jkj@sco.com>
1114         PR c/13029
1115         * toplev.c (check_global_declarations): Do not warn about unused
1116         static consts.
1118 2003-11-13  Pavel Pisa  <pisa@cmp.felk.cvut.cz>
1119             Kazu Hirata  <kazu@cs.umass.edu>
1121         * config/h8300/lib1funcs.asm (DenHighNonZero): Optimize using
1122         the approximate quotient method.
1124 2003-11-13  Richard Earnshaw  <rearnsha@arm.com>
1126         * combine.c (distribute_notes): When re-distributing the notes from
1127         an insn we are about to delete, ensure we can't end up with a cyclic
1128         list of notes.
1130 2003-11-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
1132         PR optimization/12926
1133         * expr.c (expand_assignment) [COMPONENT_REF]: Don't put
1134         the UNCHANGING_RTX_P flag on memory references to read-only
1135         components that are not addressable.
1137 2003-11-12  Kazu Hirata  <kazu@cs.umass.edu>
1139         * config/h8300/lib1funcs.asm (divmodsi4): Clear S0P in
1140         DenHighNonZero.
1142 2003-11-13  Jan Hubicka  <jh@suse.cz>
1144         PR opt/12275
1145         * c-decl.c (finish_decl): Use change_decl_assembler_name.
1146         * c-pragma.c (handle_pragma_redefine_extname): Likewise.
1147         * varasm.c (make_decl_rtl): Likewise.
1148         * cgraph.c (change_decl_assembler_name): New function.
1149         * tree.h (set_decl_assembler_name): Kill dead declaration.
1150         (change_decl_assembler_name): Declare.
1152         * decl.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
1153         * decl2.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
1155 2003-11-12  Kazu Hirata  <kazu@cs.umass.edu>
1157         * config/h8300/lib1funcs.asm (___mulsi3): Don't save/restore
1158         an unused register.
1160 2003-11-12  Richard Sandiford  <rsandifo@redhat.com>
1162         PR bootstrap/12752
1163         * config/mips/t-iris6 (MULTILIB_OPTIONS): Put -mabi=n32 first.
1164         (MULTILIB_OSDIRNAMES): Reorder accordingly.
1166 2003-11-12  Janis Johnson  <janis187@us.ibm.com>
1168         * rs6000-protos.h (rs6000_initial_elimination_offset): Add.
1169         (rs6000_stack_info): Remove.  (debug_stack_info): Remove.
1170         (rs6000_emit_eh_reg_restore): Add
1171         * rs6000.c (rs6000_stack_t): Move from rs6000.h, change data type
1172         of vars_size and total_size to HOST_WIDE_INT.
1173         (emit_frame_save): Change parameter size to HOST_WIDE_INT.
1174         (rs6000_stack_info): Make static; change data size to HOST_WIDE_INT.
1175         (debug_stack_info): Make static; change output format of HOST_WIDE_INT
1176         values.
1177         (rs6000_emit_eh_reg_restore): New, with code formerly in rs6000.md.
1178         (rs6000_initial_elimination_offset): New, with code formerly in
1179         INITIAL_ELIMINATION_OFFSET.
1180         * rs6000.h (rs6000_stack_t): Remove.
1181         (INITIAL_ELIMINATION_OFFSET): Replace code with call to function
1182         rs6000_initial_elimination_offset.
1183         * rs6000.md (UNSPECV_EH_RR split): Replace code with call to
1184         rs6000_emit_eh_reg_restore.
1186 2003-11-12  Mike Stump  <mrs@apple.com>
1188         * c-typeck.c (c_convert_parm_for_inlining): Add argnum, which
1189         is the argumnt we are processing so that warnings and errors
1190         will have that information.
1191         * c-tree.h (c_convert_parm_for_inlining): Add argnum.
1192         * lang-hooks-def.h
1193         (lhd_tree_inlining_convert_parm_for_inlining): Likewse.
1194         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): Likewise.
1195         * langhooks.h (convert_parm_for_inlining): Likewise.
1196         * tree-inline.c (initialize_inlined_parameters): Compute and
1197         pass argnum down.
1199 2003-11-12  Alexey Starovoytov  <alexey.starovoytov@sun.com>
1200             Roger Sayle  <roger@eyesopen.com>
1202         PR optimization/12953
1203         * tree-inline.c (inline_forbidden_p_1): Added check for BUILT_IN
1204         before switch by FUNCTION_CODE.
1206 2003-11-12  Richard Earnshaw  <rearnsha@arm.com>
1208         * arm.md (storehi): Avoid use of explicit subreg.
1209         (storehi_bigend, storeinthi, movhi_bigend): Likewise.
1211 2003-11-12  J"orn Rennecke <joern.rennecke@superh.com>
1213         * config/sh/sh.md (prefetch): New pattern.
1215 2003-11-11  Eric Christopher  <echristo@redhat.com>
1217         * reload1.c (reload): Verify that addresses for
1218         reg_equiv_* are valid for the architecture.
1220 2003-11-11  Eric Christopher  <echristo@redhat.com>
1222         * function.c (purge_addressof_1): Add libcall check.
1223         Remove test for cached replacements on fallback case.
1224         Simplify mode comparisons. Add libcall test for
1225         paradoxical subregs.
1227 2003-11-11  Kazu Hirata  <kazu@cs.umass.edu>
1229         * config/h8300/t-h8300: Fix an obsolete comment.
1231 2003-11-11  James E Wilson  <wilson@specifixinc.com>
1233         * expmed.c (store_bit_field, extract_bit_field): Revert last two
1234         changes.
1236 2003-11-11  Kazu Hirata  <kazu@cs.umass.edu>
1238         * config/h8300/lib1funcs.asm: Replace DenHighZero with
1239         DenHighNonZero.
1241 2003-11-11  Jan Hubicka  <jh@suse.cz>
1243         * cgraphunit.c (cgraph_function_possibly_inlined_p): Use
1244         really_no_inline.
1246 2003-11-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1248         * pa.h (TRAMPOLINE_TEMPLATE): Fix flushing of cache lines when
1249         generating 64-bit code.
1251 2003-11-10  David Edelsohn  <edelsohn@gnu.org>
1253         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
1254         accidental commit in previous change.
1256 2003-11-10  Fariborz Jahanian <fjahanian@apple.com>
1258         * config/rs6000/rs6000.h (STACK_SIZE_MODE): Add definition.
1259         * config/rs6000/rs6000.c (reg_or_mem_operand): Add macho-style
1260         address recognition.
1261         (macho_lo_sum_memory_operand): Routine to recognize macho-style
1262         address recognition.
1264 2003-11-10  Richard Henderson  <rth@redhat.com>
1266         * dwarf2out.c (gen_label_die): Cope with DECL_RTL not set.
1268 2003-11-10  Matt Austern  <austern@apple.com>
1270         * config/darwin-protos.h (darwin_assemble_visibility): Declare.
1271         * config/darwin.c (darwin_assemble_visibility): Define.  Warn for
1272         anything other than VISIBILITY_DEFAULT and VISIBILITY_HIDDEN.
1273         * config/darwin.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Use
1274         darwin_assemble_visibility instead of default.
1276 2003-11-10  Waldek Hebisch  <hebisch@math.uni.wroc.pl>
1278         PR target/12865
1279         * config/sparc/sparc.c (sparc_initialize_trampoline): Call
1280         __enable_execute_stack only after writing onto the stack.
1281         (sparc64_initialize_trampoline): Likewise.
1283 2003-11-09  Roger Sayle  <roger@eyesopen.com>
1285         * loop.c (check_dbra_loop): Try swapping the comparison operands
1286         of the loop condition to identify a suitable induction variable.
1287         * unroll.c (loop_iterations): Likewise.
1289 2003-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1291         * config/sparc/sparc.h (TARGET_CPU_CPP_BUILTINS): Fix sparc vs
1292         sparc64 #cpu and #machine assertions.
1294 2003-11-09  Richard Henderson  <rth@redhat.com>
1296         * Makefile.in (rtlanal.o): Depend on BASIC_BLOCK_H.
1298 2003-11-09  Jan Hubicka  <jh@suse.cz>
1300         * tree-optimize.c (tree_rest_of_compilation): Fix warning.
1302         * cgraphunit.c (cgraph_expand_function): Use
1303         cgraph_possibly_inlined_p.
1304         * tree-optimize.c (tree_rest_of_compilation): Do not kill saved tree.
1306         * opts.c (common_handle_option): Do not set max-inline-insns.
1307         * params.def: Update comments.
1308         (PARAM_MAX_INLINE_INSNS): Kill.
1309         * invoke.texi (max-inline-insns): Kill.
1311 2003-11-08  Joseph S. Myers  <jsm@polyomino.org.uk>
1313         PR c/3190
1314         PR c/8714
1315         * c-format.c (set_Wformat): Do not enable -Wformat-y2k by default.
1316         * invoke.texi: Update.
1318 2003-11-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1320         PR optimization/12630
1321         * pa.c (compute_movstrsi_length): Rename to compute_movstr_length.
1322         Handle length computation 64-bit moves.
1323         (compute_clrstr_length, output_block_clear): Implement block clear.
1324         (output_block_move): Handle 64-bit moves.
1325         (pa_adjust_insn_length): Use compute_movstr_length and
1326         compute_clrstr_length.
1327         * pa.md (movstrsi): Revise operand order and comments.  Don't use
1328         match_scratch.
1329         (movstrsi_internal): Delete.
1330         (movstrsi_prereload, movstrsi_postreload): New insns.  Define splitter
1331         and peephole2 patterns to transform prereload to postreload form.
1332         (movstrdi, movstrdi_prereload, movstrdi_postreload, clrstrsi,
1333         clrstrsi_prereload, clrstrsi_postreload, clrstrdi, clrstrdi_prereload,
1334         clrstrdi_postreload): New patterns for 64-bit block move, and block
1335         clear.
1336         * pa-protos.h (output_block_clear): New prototype.
1338 2003-11-08  Andreas Schwab  <schwab@suse.de>
1340         * dbxout.c (current_file): Also wrap inside DBX_DEBUGGING_INFO ||
1341         XCOFF_DEBUGGING_INFO.
1343 2003-11-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1345         * dbxout.c (current_file): Wrap declaration in DBX_USE_BINCL.
1347 2003-11-07  Geoffrey Keating  <geoffk@apple.com>
1349         * config/rs6000/rs6000.c (rs6000_legitimize_address): Remove
1350         redundant parens.
1352         * cppfiles.c (pch_open_file): New parameter 'invalid_pch', set it.
1353         (find_file_in_dir): Likewise.
1354         (_cpp_find_file): Print message if no header file is found
1355         but an invalid PCH file was.
1357 2003-11-08  Joseph S. Myers  <jsm@polyomino.org.uk>
1359         * c-typeck.c (pedantic_lvalue_warning): Deprecate compound
1360         expressions as lvalues.
1361         (internal_build_compound_expr): Remove special handling for
1362         non-pedantic case.
1363         * doc/extend.texi: Document that all extended lvalues are now
1364         deprecated.
1366 2003-11-07  Geoffrey Keating  <geoffk@apple.com>
1368         PR 11654
1369         * dbxout.c (struct dbx_file): Do not save for PCH.
1370         (current_file): Likewise.
1371         (dbxout_init): Don't allocate struct dbx_file using GC.
1372         (dbxout_start_source_file): Likewise.
1374 2003-11-07  Falk Hueffner  <falk@debian.org>
1376         * config/alpha/elf.h, config/alpha/unicosmk.h,
1377         config/alpha/vms.h: Convert to ISO C90.
1379 2003-11-07  Nathanael Nerode  <neroden@gcc.gnu.org>
1381         * config/arm/pe.h: Convert to ISO C90.
1383 2003-11-07  J"orn Rennecke <joern.rennecke@superh.com>
1385         * sh-protos.h (sh_pch_valid_p): Declare.
1386         * sh.c ("intl.h"): Include.
1387         (TARGET_PCH_VALID_P): Override.
1388         (sh_target_switches): New variable.
1389         (target_switches): Define.
1390         (sh_pch_valid_p): New function.
1392         * sh.h (MODE_AFTER): Don't change mode unless TARGET_HITACHI.
1394 2003-11-07  Jan Hubicka  <jh@suse.cz>
1396         * i386.c (x86_64_sign_extended_value):  Return false from tls variables.
1397         (x86_64_zero_extended_value):  likewise.
1399 2003-11-07  Richard Sandiford  <rsandifo@redhat.com>
1401         * config/mips/mips.md (loadgp): Take $25 as a second operand.
1402         * config/mips/mips.c (mips_expand_prologue): Modify accordingly.
1404 2003-11-06  Matt Austern <austern@apple.com>
1406         * c-common.c (handle_visibility_attribute): Set DECL_VISIBILITY
1407         field instead of hanging an attribute object off the decl.
1408         * tree.h (DECL_VISIBLITY): New accessor macro for
1409         symbol_visibility field in struct tree_decl.
1410         (enum symbol_visibility): Move definition to before tree_decl.
1411         (struct tree_decl): Define new two-bit field, symbol_visibility.
1412         (decl_visibility): Remove declaration.
1413         * varasm.c (maybe_assemble_visibility): Use DECL_VISIBILITY
1414         instead of decl_visibility.
1415         (default_binds_local_p_1):  Use DECL_VISIBILITY instead of
1416         decl_visibility.
1417         (decl_visibility): Remove.
1419 2003-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
1421         * config/s390/s390.c (s390_emit_epilogue): Recognize more cases
1422         where register 14 will be saved.
1424 2003-11-06  Geoffrey Keating  <geoffk@apple.com>
1426         * config/rs6000/rs6000.h (USE_FP_FOR_ARG_P): Move to rs6000.c.
1427         (USE_ALTIVEC_FOR_ARG_P): Likewise.
1428         * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Move from rs6000.h.
1429         Take a pointer as the CUM parameter.  Update callers.
1430         (USE_ALTIVEC_FOR_ARG_P): Likewise.  Also correct for Darwin/AIX
1431         32-bit ABIs.
1432         (function_arg_advance): Use USE_ALTIVEC_FOR_ARG_P.  Correct case
1433         of vector parameters as named arguments of stdarg function.
1434         (function_arg): Likewise.
1436         * config/rs6000/darwin.h (ASM_SPEC): Use -force_cpusubtype_ALL when
1437         -maltivec is specified, not the non-existent -faltivec.
1439 2003-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
1441         * config/s390/s390-protos.h (s390_function_value): Declare.
1442         * config/s390/s390.c (TARGET_RETURN_IN_MEMORY): Define.
1443         (s390_return_in_memory): New function.
1444         (s390_function_value): New function.
1445         (s390_function_arg_float): Return false for all arguments larger
1446         than 8 bytes.
1447         (s390_function_arg_pass_by_reference): Likewise.  Return true for
1448         all vector arguments.
1449         (s390_function_arg_integer): New function.
1450         (s390_function_arg_advance): Call it.  Add sanity checks.
1451         (s390_function_arg): Likewise.
1452         * config/s390/s390.h (FUNCTION_VALUE): Call s390_function_value.
1453         (LIBCALL_VALUE): Likewise.
1454         (RET_REG): Remove.
1455         (RETURN_IN_MEMORY): Remove.
1457 2003-11-06  Richard Sandiford  <rsandifo@redhat.com>
1459         * config/mips/mips-protos.h (mips_initial_elimination_offset): Change
1460         return type to HOST_WIDE_INT.
1461         * config/mips/mips.c (mips_frame_info): Give sizes type HOST_WIDE_INT.
1462         Make initialized a bool.  Make register masks unsigned ints.
1463         (compute_frame_size): Make same mask change here.  Use HOST_WIDE_INT
1464         where appropriate.
1465         (mips_initial_elimination_offset): Return a HOST_WIDE_INT.
1466         (mips_output_function_prologue): Print sizes as HOST_WIDE_INTs.
1468 2003-11-06  Richard Sandiford  <rsandifo@redhat.com>
1470         * config/frv/frv.c (frv_initial_elimination_offset): Remove bogus
1471         negation.
1473 2003-11-06  Richard Sandiford  <rsandifo@redhat.com>
1475         * config/frv/frv.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define.
1477 2003-11-06  Momchil Velikov  <velco@fadata.bg>
1479         * config/mips/mips.c (override_options): Set MASK_SOFT_FLOAT
1480         for VR4111 too.
1482 2003-11-06  Jan Hubicka  <jh@suse.cz>
1484         * builtins.c (simplify_builtin_strrchr, simplify_builtin_strpbrk): Add
1485         missing casts.
1487 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
1489         * genmodes.c: Change the word "bitsize" to "precision" throughout.
1490         * machmode.def: Likewise.
1491         * machmode.h (GET_MODE_SIZE): Cast value to unsigned short.
1492         (GET_MODE_BITSIZE): Define as GET_MODE_SIZE * BITS_PER_UNIT.
1493         (GET_MODE_PRECISION): New macro.
1494         (mode_bitsize): Renamed mode_precision.
1495         * stor-layout.c (mode_for_size, smallest_mode_for_size):
1496         Use GET_MODE_PRECISION; clarify comments.
1498 2003-11-05  Joseph S. Myers  <jsm@polyomino.org.uk>
1500         * doc/install-old.texi: Remove old documentation of building
1501         cross-compilers.
1502         * doc/install.texi: Move some of it to here.
1504 2003-11-05  Per Bothner  <pbothner@apple.com>
1506         PR preprocessor/12891
1507         * c-opts.c (finish_options):  Set include_cursor to disable premature
1508         calls to push_command_line_include from cpp_scan_nooutput.
1509         Fixes bug reported by DJ Delorie.
1511 2003-11-05  Geoffrey Keating  <geoffk@apple.com>
1513         * config/rs6000/rs6000.c (setup_incoming_varargs): Remove
1514         code supporting old-style varargs.
1516         * config/rs6000/rs6000.c (rs6000_machopic_legitimize_pic_address): Use
1517         an intermediate register for better optimisation.
1519 2003-11-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1521         PR optimization/10080
1522         * cfgloopanal.c (variable_initial_value, variable_initial_values,
1523         simple_loop_exit_p): Record the fact that initial value is extended
1524         from inner mode.
1525         (count_strange_loop_iterations, count_loop_iterations): Handle
1526         ivs that iterate in a narrower mode. Fix handling of overflows.
1527         Improve handling of NE conditions.
1528         (inverse, fits_in_mode_p): New static functions.
1529         (simple_increment): Detect variables that iterate in a narrower mode.
1530         * cfgloop.h (struct loop_desc): Fields inner_mode and extend added.
1532 2003-11-05  Geoffrey Keating  <geoffk@apple.com>
1534         * config/rs6000/rs6000.c (compute_vrsave_mask): Correct off-by-one
1535         error.
1537         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Darwin
1538         needs VRSAVE.
1540 2003-11-05  Joseph S. Myers  <jsm@polyomino.org.uk>
1542         * c-typeck.c (pedantic_lvalue_warning): Deprecate use of
1543         conditional expressions as lvalues.
1545 2003-11-05  Kazu Hirata  <kazu@cs.umass.edu>
1547         * tsystem.h: Add the prototype of strlen.
1548         * unwind-pe.h (read_encoded_value_with_base): Add an
1549         appropriate cast to handle a case where the pointer size is
1550         smaller than sizeof (int).
1552 2003-11-04  Richard Sandiford  <rsandifo@redhat.com>
1554         * config/mips/mips-protos.h (mips_global_pic_constant_p): Delete.
1555         (mips_delegitimize_address): Delete.
1556         (mips_gotoff_global, mips_load_got_page): Declare.
1557         (mips_load_got_global, mips_rewrite_small_data): Declare.
1559         * config/mips/mips.h (FIND_BASE_TERM): Remove definition.
1560         (DANGEROUS_FOR_LA25_P): Use global_got_operand.
1561         (PREDICATE_CODES): Add global_got_operand, local_got_operand and
1562         small_data_pattern.  Remove CONST from const_arith_operand's entry.
1564         * config/mips/mips.c (UNSPEC_ADDRESS_P, CONST_GP_P): New macros.
1565         (UNSPEC_ADDRESS, UNSPEC_ADDRESS_TYPE): Likewise.
1566         (mips_constant_type): Delete.
1567         (mips_symbol_type): Add SYMBOL_GOTOFF_PAGE, SYMBOL_GOTOFF_GLOBAL,
1568         SYMBOL_GOTOFF_CALL and SYMBOL_GOTOFF_LOADGP.
1569         (NUM_SYMBOL_TYPES): New macro.
1570         (mips_address_type): Remove ADDRESS_INVALID.
1571         (machine_function): Add has_gp_insn_p.
1572         (mips_constant_info): Delete.
1573         (mips_address_info): Add the address type as an extra field.  Replace
1574         the c field with symbol_type.
1575         (mips_split_p, mips_lo_relocs, mips_hi_relocs): New arrays.
1576         (TARGET_DELEGITIMIZE_ADDRESS): Remove definition.
1577         (mips_reloc_offset_ok_p, mips_classify_constant): Delete.
1578         (mips_split_const, mips_symbolic_constant_p): New functions.
1579         (mips_symbolic_address_p): Take the symbol type and mode as arguments.
1580         (mips_classify_address): Return true if the address is valid, storing
1581         its type in INFO.  Use mips_symbolic_constant_p.  Use mips_lo_relocs[]
1582         to test whether a LO_SUM address is allowed.
1583         (mips_symbol_insns): Return 0 for general mips16 symbols.
1584         Reorder SYMBOL_GOT_GLOBAL case to match mips_symbol_type definition.
1585         Handle the new SYMBOL_GOTOFF_*s.
1586         (mips_address_insns): Update call to mips_classify_address.
1587         (mips_const_insns): Be more fussy about HIGH constants.  Remove use
1588         of mips_classify_constant.  Be more accurate about CONSTs.
1589         (mips_global_pic_constant_p): Delete.
1590         (const_arith_operand): Only accept CONST_INTs.
1591         (call_insn_operand): Remove call to mips_classify_constant.
1592         Let mips_symbolic_constant_p check for invalid offsets.
1593         (move_operand): Check for general_operands first.  Only accept symbolic
1594         constants if they satisfy mips_symbolic_constant_p and cannot be split.
1595         (symbolic_constant): Use mips_symbolic_constant_p.
1596         (global_got_operand, local_got_operand): New predicates.
1597         (stack_operand): Update call to mips_classify_address.
1598         (mips_legitimate_address_p): Likewise.
1599         (mips_reloc, mips_lui_reloc): Delete.
1600         (mips_force_temporary): Only use the given temporary if no_new_pseudos.
1601         Use emit_move_insn.
1602         (mips_split_symbol, mips_unspec_address): New functions.
1603         (mips_unspec_offset_high): New function.
1604         (mips_load_got): Replace reloc argument with a symbol_type.
1605         Use mips_unspec_address to create the address and put it in a
1606         LO_SUM with the base register.
1607         (mips_load_got16, mips_load_got32): Delete.
1608         (mips_emit_high, mips_legitimize_symbol): Delete.
1609         (mips_gotoff_global): New function.
1610         (mips_load_got_page, mips_load_got_global): New functions.
1611         (mips_legitimize_symbol): Inline handling of LO_SUM splits.
1612         (mips_legitimize_const_move): Likewise.  Remove HIGH handling.
1613         Inline code to handle constants plus invalid offsets.  Use
1614         mips_split_symbol to legitimize constant pool addresses.
1615         (mips_delegitimize_address): Delete.
1616         (mips_rtx_costs): Give legitimate symbolic constants and CONST_DOUBLEs
1617         a cost of 1 insn.  Give the rest a cost of CONSTANT_POOL_ADDRESS.
1618         (mips_subword): Pass memrefs through mips_rewrite_small_data.
1619         (mips_output_move): Remove use of mips_classify_constant.
1620         (mips_expand_call): Use mips_unspec_offset_high to calculate the
1621         high part of the GOT address for calls to global functions.
1622         (override_options): Initialize mips_split_p[], mips_lo_relocs[]
1623         and mips_hi_relocs[].
1624         (print_operand): Use print_operand_reloc to handle '%h' and '%R'.
1625         Remove use of mips_classify_constant.
1626         (mips_reloc_string): Delete.
1627         (print_operand_reloc): New function.
1628         (print_operand_address): Update call to mips_classify_address.
1629         (mips_rewrite_small_data_p, small_data_pattern_1): New functions.
1630         (small_data_pattern): New predicate.
1631         (mips_rewrite_small_data_1, mips_rewrite_small_data): New functions.
1632         (mips_function_has_gp_insn): New function.
1633         (mips_global_pointer): Use it.
1634         (mips_gp_insn): Delete.
1635         (mips_expand_prologue): When compiling for n32/n64 abicalls, use a
1636         single loadgp pattern to initialize $gp.  Pass it the offset of _gp
1637         from the start of the current function.
1638         (mips16_gp_pseudo_reg): Revert last patch.
1640         * config/mips/mips.md (RELOC_*): Delete.
1641         (UNSPEC_LOADGP, UNSPEC_FIRST_ADDRESS): New constants.
1642         (got): New insn attribute.
1643         (type): Set to "load" if got == load.
1644         (length): Set to 4 if got == load, 8 if got == xgot_high.
1645         (lui[sd]i): Delete.
1646         (*xgot_hi[sd]i, *xgot_lo[sd]i): New patterns.
1647         (*got_disp[sd]i, *got_page[sd]i): Likewise.
1648         (*low[sd]i): Change constraints to "d".  Add a new define_split to
1649         rewrite small data constants into LO_SUMs.
1650         (loadgp): New insns.
1652 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1654         * config/mips/_tilib.c: Use _ABI* in _MIPS_SIM tests.
1656 2003-11-04  DJ Delorie  <dj@redhat.com>
1658         * config/v850/v850.md (mulhisi3): Expand the const_int case
1659         separately to avoid trying to sign extend the const.
1661 2003-11-04  Richard Sandiford  <rsandifo@redhat.com>
1663         * emit-rtl.c (copy_rtx_if_shared): Don't allow MEMs with constant
1664         addresses to be shared.
1665         (force_const_mem): Return a copy of the pool entry.
1667 2003-11-03  Andreas Jaeger  <aj@suse.de>
1669         * Makefile.in (GCC_CFLAGS): Remove @WERROR@ again.
1671 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
1673         * Makefile.in (cpp.dvi): New target split from cpp.info.
1674         (gcc.dvi):  New target split from gcc.info.
1675         (gccint.dvi): New target split from gccint.info.
1676         (cppinternals.dvi): New target split from cppinternals.info
1677         (gccinstall.info): New specific rule.
1678         (gccinstall.dvi): Likewise.
1679         (dvi): Move targets to $(docobjdir).
1680         ($(docobjdir)/%.dvi): New implicit rule.
1682 2003-11-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1684         * doc/gty.texi (tag, desc): Say more about role of desc values in
1685         selecting between tags.
1687 2003-11-03  Alexander Kabaev  <ak03@gte.com>
1689         * real.c (encode_ieee_single): Ensure proper promotion.
1691 2003-11-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1693         * doc/contrib.texi: Add Giovanni Bajo, Dara Hazeghi, Falk Hueffner,
1694         and Andrew Pinski.
1696 2003-11-03  Syd Polk  <spolk@apple.com>
1698         * config/rs6000/rs6000.c (rs6000_override_options): Add G3, G4, and G5
1699         marketing names to the list of supported processors.
1700         * config/rs6000/rs6000.h: Ditto.
1701         * doc/invoke.texi: Ditto.
1702         * config.gcc: Ditto.
1704 2003-11-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1706         * fixinc/inclhack.def (stdio_va_list): Allow tab before va_list.
1707         Merge two substitutions.
1708         * fixinc/fixincl.x: Regenerate.
1709         Fixes PR bootstrap/12666.
1711 2003-11-03  Joseph S. Myers  <jsm@polyomino.org.uk>
1713         * doc/install-old.texi: Remove VMS documentation.
1715 2003-11-03  Jan Hubicka  <jh@suse.cz>
1717         * i386.c (override_options):  Remove hack enabling 128bit long double
1718         commited by accident.
1720 2003-11-02  Per Bothner  <per@bothner.com>
1722         * c-opts.c (needValue):  Do cpp_find_main_file before processing
1723         any imacros flags, so pfile->main_file is set for the latter.
1725 2003-11-03  Andreas Jaeger  <aj@suse.de>
1726             Zack Weinberg  <zack@codesourcery.com>
1728         * Makefile.in (GCC_CFLAGS): Allow blacklisting of warnings.
1729         (SYSCALLS.c.X-warn): Suppress warnings.
1731 2003-11-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1733         PR optimization/12845
1734         * pa.c (output_cbranch): Use cmpb for DImode comparisons with 0.
1736 2003-11-02  Zack Weinberg  <zack@codesourcery.com>
1738         * print-rtl.c (print_rtx): Call PRINT_REG with second argument -1.
1739         * config/i386/i386.c (print_reg): Abort on a virtual register
1740         if code != -1; not if file == asm_out_file.
1741         * config/i386/i386.h (PRINT_REG): Document meaning of CODE == -1.
1742         (DEBUG_PRINT_REG): Delete, unused.
1744 2003-11-02  Andreas Schwab  <schwab@suse.de>
1746         * config/ia64/fde-glibc.c (_GNU_SOURCE): Define to 1 instead of
1747         empty to avoid conflict with the definition from configure.
1749 2003-11-02  Roger Sayle  <roger@eyesopen.com>
1751         PR optimization/10817
1752         * ifcvt.c (noce_emit_move_insn): Improve documentation comment.
1753         (noce_try_move): New function to optimize an if-the-else into an
1754         unconditional move, i.e. "if (a!=b) x=a; else x=b" into "x=a".
1755         (noce_process_if_block): Attempt simplification with noce_try_move.
1757         * simplify-rtx.c (simplify_ternary_operation): Some minor fixes
1758         and improvements to the optimizations of IF_THEN_ELSE expressions.
1759         (simplify_subreg): Silence signed/unsigned comparison warning.
1761 2003-11-02  Richard Sandiford  <rsandifo@redhat.com>
1763         * Makefile.in (targhooks.o, reload.o): Update dependencies.
1764         (GTFILES): Add targhooks.c.
1765         (gt-targhooks.h): New rule; depend on s-gtype.
1766         * target.h (direct_pool_load_p): New hook.
1767         * target-def.h (TARGET_DIRECT_POOL_LOAD_P): New macro.
1768         (TARGET_INITIALIZER): Include it.
1769         * targhooks.h (default_direct_pool_load_p): Declare.
1770         (hook_bool_machine_mode_true): Declare.
1771         * targhooks.c: Include insn-config.h, recog.h, ggc.h and
1772         gt-targhooks.h.
1773         (pool_symbol): New variable.
1774         (default_direct_pool_load_p): New function.
1775         (hook_bool_machine_mode_true): New function.
1776         * reload.c: Include target.h.
1777         (find_reloads): If an alternative will force a constant into memory,
1778         count an extra reload if constant pool symbols are not valid
1779         addresses.  If an alternative uses memory to move values between
1780         registers, count the move as two reloads rather than one.
1781         * config/s390/s390.c (TARGET_DIRECT_POOL_LOAD_P): Define.
1782         * doc/tm.texi (TARGET_DIRECT_POOL_LOAD_P): Document.
1784 2003-11-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
1786         PR optimization/12799
1787         * postreload.c (reload_cse_move2add): Generate the add2
1788         patterns manually.
1790 2003-11-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
1792         * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
1793         Return 0 for all complex modes whose size is lesser or equal to
1794         a word.  Add a ??? comment for the condition used with 16-byte
1795         aligned modes.
1797 2003-11-01  Kelley Cook  <kcook@gcc.gnu.org>
1799         * .cvsignore: Remove c-parse* and tradcif.c.
1800         * objc/.cvsignore: Delete.
1802 2003-11-01  Roger Sayle  <roger@eyesopen.com>
1804         * unwind-sjlj.c (_Unwind_GetCFA): Return (_Unwind_Word)0 instead
1805         of NULL.
1807 2003-11-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1809         * som.h (DO_GLOBAL_DTORS_BODY): Change to C90 declaration.
1811         * libgcc2.c (SYMBOL__MAIN): Provide C90 declaration.
1813         * collect2.c (scan_libraries): Fix typos.
1815         PR preprocessor/12847
1816         * cppfiles.c, cppexp.c, cpperror.c, cpplib.h, cpplib.c, cpplex.c,
1817         cppinit.c, cpptrad.c, cppmacro.c, fix-header.c, cpppch.c, c-pch.c,
1818         c-incpath.c, cppcharset.c (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN,
1819         DL_ERROR, DL_ICE, DL_EXTRACT, DL_WARNING_P): Prefix macro names with
1820         "CPP_".
1822 2003-11-01  Fariborz Jahanian  <fjahanian@apple.com>
1824         * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Correct
1825         no_units calculation.
1827 2003-11-01  Andreas Jaeger  <aj@suse.de>
1829         * unwind-dw2.c (_Unwind_FrameState): Remove commas at end of
1830         enumeration list.
1832 2003-11-01  Andreas Schwab  <schwab@suse.de>
1834         * config/ia64/sysv4.h (SDATA_SECTION_FUNCTION): Update to C90
1835         prototypes.
1836         (SBSS_SECTION_FUNCTION): Likewise.
1838 2003-11-01  Andreas Jaeger  <aj@suse.de>
1840         * Makefile.in (GCC_CFLAGS): Add @WERROR@ for target files.
1842 2003-11-01  Andreas Tobler  <a.tobler@schweiz.ch>
1844         * config/rs6000/sysv4.h (EXTRA_SECTION_FUNCTIONS): Update to C90
1845         prototypes.
1847 2003-11-01  Andreas Jaeger  <aj@suse.de>
1849         * unwind-dw2.c (_Unwind_FindEnclosingFunction): Constify variable.
1850         (uw_frame_state_for): Constify variables.
1851         (extract_cie_info): Constify first argument.
1853         * unwind-dw2-fde-darwin.c: Adjust prototype of
1854         _Unwind_Find_registered_FDE for recent changes.
1855         (examine_objects): Constify return value and local variable result.
1856         (_Unwind_Find_FDE): Constify return value and local variable ret.
1858 2003-10-31  Per Bothner  <pbothner@apple.com>
1860         * c-opts.c (finish_options):  Change to returns boolean - false iff
1861         the call to cpp_find_main_file fails.
1862         (c_common_init):  Skip preprocess_file if finish_options failed.
1863         (c_common_parse_file):  Break if finish_options failed.
1864         Fixes PR preprocessor/12545.
1866 2003-10-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1868         * aclocal.m4: Blacklist ultrix* for mmap file.
1869         * configure: Rebuilt.
1871         * function.c (assign_parms): Add ATTRIBUTE_UNUSED to variable
1872         reg_parm_stack_space.
1873         * toplev.c (default_get_pch_validity): Fix warning.
1875         * vax.c: Include toplev.h.
1876         (vax_init_libfuncs): Fix typo (umod).
1877         * vax.h (ASM_COMMENT_START): Define.
1878         (PRINT_OPERAND): Fix warning when HOST_WIDE_INT is a long long.
1880 2003-10-31  Roger Sayle  <roger@eyesopen.com>
1882         PR middle-end/11968
1883         * expr.c (expand_expr <MULT_EXPR>): Remove inappropriate and
1884         confusing comment; distributivity isn't handled in expand_expr.
1885         * fold-const.c (extract_muldiv_1 <PLUS_EXPR>):  Allow overflow
1886         in distributivity, if wrap-around semantics are specified with
1887         -fwrapv.
1889 2003-11-01  Alan Modra  <amodra@bigpond.net.au>
1891         PR 12315
1892         * final.c (profile_function): Allow for NULL svrtx.
1894 2003-10-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1896         * pa.c (pa_select_section): Use new style declaration.
1897         * som.h (readonly_data): Likewise.
1899 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
1901         * config/rs6000/rs6000.c: Update to C90 prototypes.
1903 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
1905         PR target/7513
1906         * arm.h (CONDITIONAL_REGISTER_USAGE): Disable use of LR in Thumb
1907         code.
1909 2003-10-31  Andreas Jaeger  <aj@suse.de>,
1910             Zack Weinberg  <zack@codesourcery.com>
1913         * crtstuff.c (__register_frame_info, __register_frame_info_bases)
1914         (__deregister_frame_info, __deregister_frame_info_bases):
1915         Constify void * argument.
1916         * unwind-dw2-fde.h (struct fde_vector):
1917         Constify 'orig_data' and 'array' fields.
1918         (__register_frame_info, __register_frame_info_bases)
1919         (__deregister_frame_info, __deregister_frame_info_bases):
1920         Constify void * argument.
1921         (get_cie, next_fde, _Unwind_Find_FDE): Constify arguments,
1922         return values, and casts of type fde *, struct dwarf_fde *,
1923         and struct dwarf_cie *.
1924         * unwind-dw2-fde.c (__register_frame_info, __register_frame_info_bases)
1925         (__deregister_frame_info, __deregister_frame_info_bases):
1926         Constify void * argument.
1927         (get_cie_encoding, ): Constify struct dwarf_cie * argument.
1928         (get_fde_encoding, fde_unencoded_compare, fde_single_encoding_compare)
1929         (fde_mixed_encoding_compare, fde_compare_t, start_fde_sort, fde_insert)
1930         fde_split, SWAP, frame_downheap, frame_heapsort)
1931         (classify_object_over_fdes, add_fdes, linear_search_fdes,
1932         binary_search_unencoded_fdes, binary_search_single_encoding_fdes,
1933         binary_search_mixed_encoding_fdes, search_object, _Unwind_Find_FDE):
1934         Constify arguments, local variables, return values, and casts
1935         of type fde *, fde **, struct dwarf_fde *, and struct dwarf_cie *.
1936         Use const pointer types in sizeof expressions, for clarity.
1937         * unwind-dw2-fde-glibc.c
1938         (_Unwind_find_registered_FDE, _Unwind_find_FDE): Constify return value.
1939         (struct unw_eh_callback_data): Constify 'ret' field.
1941 2003-10-31  Fariborz Jahanian  <fjahanian@apple.com>
1942             David Edelsohn  <edelsohn@gnu.org>
1944         * config/rs6000/rs6000.c (rs6000_mixed_function_arg): New.
1945         (function_arg): Call it.
1946         (rs6000_function_value): Widen integral return value to mode based
1947         on TARGET_32BIT, not word_mode.
1948         * config/rs6000/rs6000.h (PROMOTE_MODE): Likewise.
1949         (UNITS_PER_ARG): New.
1950         (RS6000_ARG_SIZE): Use it.
1952 2003-10-31  Gerald Pfeifer  <gerald@pfeifer.com>
1954         * .cvsignore: No longer ignore gengtype-lex.c, gengtype-yacc.c,
1955         and gengtype-yacc.h.
1957 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
1959         PR optimization/8896
1960         * postreload.c (reload_combine): Check that REGY doesn't die in an
1961         insn of the form (set (regx) (plus (regx) (regy))), ie REGX != REGY.
1963 2003-10-31  Josef Zlomek  <zlomekj@suse.cz>
1965         PR/10239
1966         * cfgrtl.c (delete_insn): Decrease LABEL_NUSES for all REG_LABEL notes.
1968 2003-10-31  Josef Zlomek  <zlomekj@suse.cz>
1970         PR/11640
1971         * cfgrtl.c (try_redirect_by_replacing_jump): Move jump
1972         immediatelly before BARRIER.
1974 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
1976         * Makefile.in (STRICT2_WARN): Add -Wold-style-definition.
1978 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
1980         PR target/11271
1981         * reload.c (find_reloads_address): Handle any register in
1982         (PLUS (PLUS (REG) (REG)) (CONST_INT).
1984 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
1986         * ggc-page.c (ggc_pch_read): Wrap call to poison_pages in
1987         ENABLE_GC_CHECKING not in GGC_POISON.
1989 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
1991         PR bootstrap/9863
1992         * configure.in: Bail out if awk is missing.
1993         * configure: Regenerate.
1995         PR ada/12761
1996         * Makefile.in: Move default definitions of X_ADA_CFLAGS,
1997         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from ada/Make-lang.in to here.
1999 2003-10-30  Richard Henderson  <rth@redhat.com>
2001         * c-objc-common.c (c_tree_printer): Handle types correctly.
2002         Factor code a bit.
2004 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
2006         * value-prof.c, web.c: Update to C90.
2008 2003-10-30  Eric Christopher  <echristo@redhat.com>
2010         * function.c (purge_addressof_1): Add case for REG_RETVAL
2011         notes when modes are unequal.
2013 2003-10-31  Jan Hubicka  <jh@suse.cz>
2015         * i386-modes.def: Add XFmode format adjustment.
2017 2003-10-30  Jan Hubicka  <jh@suse.cz>
2019         * real.c (encode_ieee_extended): Back out previous patch.
2021 2003-10-30  Jan Hubicka  <jh@suse.cz>
2023         * real.c (encode_ieee_extended): Initialize whole array.
2024         * reg-stack.c (move_for_stack_reg0: Use always XFmode.
2025         * i386-modes.def: Change definitions of TFmode and XFmode.
2026         * i386.c (classify_argument): Rename TFmodes to XFmodes; add new TFmode
2027         code.
2028         (construct_container): Allow constructing of TFmode integer containers.
2029         (ix86_return_in_memory):  XFmode is not returned in memory.
2030         (init_ext_80387_constants): Always use XFmode.
2031         (print_operand): Likewise.
2032         (ix86_prepare_fp_compare_regs): Likewise.
2033         (split_to_parts): Deal with TFmode.
2034         (split_long_move): Simplify.
2035         (ix86_init_mmx_sse_builtins): Add __float80, __float128.
2036         (ix86_memory_move_cost): Do not confuse TFmode.
2037         * i386.h (LONG_DOUBLE_TYPE_SIZE): Set to 96.
2038         (IS_STACK_MODE): TFmode is not stack mode.
2039         (HARD_REGNO_NREGS, CLASS_MAX_NREGS): Deal nicely with XFmode.
2040         (VALID_SSE_REG_MODE): Allow TFmode.
2041         (VALID_FP_MODE_P): Disallow TFmode.
2042         (VALID_INT_MODE_P): Allow TFmode in 64bit mode.
2043         * i386.md (TFmode patterns): Kill.
2044         (movtf, motf_rex64): New patterns.
2046 2003-10-30  Richard Sandiford  <rsandifo@redhat.com>
2048         * config/mips/mips.md (adddi3): Fix typo in mips16 stack pointer code.
2050 2003-10-30  Richard Sandiford  <rsandifo@redhat.com>
2052         * config/mips/mips.md (mov_lwl): Use memory_operand where appropriate.
2053         (mov_lwr, mov_swl, mov_swr): Likewise.
2054         (mov_ldl, mov_ldr, mov_sdl, mov_sdr): Likewise.
2056 2003-10-30  Richard Sandiford  <rsandifo@redhat.com>
2058         * config/mips/mips.c (mips_global_pointer): Don't try to use $25.
2060 2003-10-30  Richard Henderson  <rth@redhat.com>
2062         * config/mips/mips.c (mips_build_builtin_va_list): Use runtime
2063         test for irix6 rather than preprocessor test.
2065 2003-10-30  Richard Henderson  <rth@redhat.com>
2067         * cppcharset.c (one_utf8_to_utf16): Initialize 's' to silence warning.
2069 2003-10-30  Ulrich Weigand  <uweigand@de.ibm.com>
2071         * config/s390/s390.c (struct machine_function): Use save_return_addr_p
2072         as a general flag that the return address register needs to be saved,
2073         not necessarily because of __builtin_return_addr (0).
2074         (s390_split_branches): Remove TEMP_REG and TEMP_USED arguments,
2075         remove special handling of zSeries machines.
2076         (s390_optimize_prolog): Remove TEMP_USED argument, treat the return
2077         register as a regular register on zSeries machines.
2078         (s390_reorg): Adjust calls to s390_split_branches and
2079         s390_optimize_prolog.
2080         (s390_frame_info): On zSeries machines, do not assume the return
2081         register is always used.  Update regs_ever_live with current data
2082         for the special registers.
2083         (s390_emit_epilogue): Use save_return_addr_p to determine whether
2084         the return register was saved.
2085         * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Do not mark
2086         RETURN_REGNUM fixed on zSeries machines.
2087         (REG_ALLOC_ORDER): Use RETURN_REGNUM last.
2088         * config/s390/s390.md ("*doloop_si"): Handle branch overflow
2089         via ahi-jgne pair on zSeries machines.
2090         ("*doloop_di"): Likewise.
2091         ("*doloop_di_long"): Remove.
2093 2003-10-30  Richard Earnshaw  <rearnsha@arm.com>
2095         * arm.c (arm_override_options): Revert change of arm_constant_limit
2096         when optimizing for size.
2098 2003-10-29  Richard Henderson  <rth@redhat.com>
2100         * fold-const.c (fold_single_bit_test): Convert the input to the
2101         operational intermediate type.
2103 2003-10-29  Richard Henderson  <rth@redhat.com>
2105         * builtins.c (std_build_builtin_va_list): New.
2106         * expr.h (std_build_builtin_va_list): Declare.
2107         * defaults.h (BUILD_VA_LIST_TYPE): New.
2108         * system.h (BUILD_VA_LIST_TYPE): Poison.
2109         * target-def.h (TARGET_BUILD_BUILTIN_VA_LIST): New.
2110         * target.h (struct gcc_target): Add build_builtin_va_list.
2111         * tree.c (build_common_tree_nodes_2): Use it.
2113         * config/alpha/alpha-protos.h, config/alpha/alpha.c,
2114         config/alpha/alpha.h, config/alpha/unicosmk.h,
2115         config/d30v/d30v-protos.h, config/d30v/d30v.c, config/d30v/d30v.h,
2116         config/i386/i386-protos.h, config/i386/i386.c, config/i386/i386.h,
2117         config/i860/i860-protos.h, config/i860/i860.c, config/i860/i860.h,
2118         config/i960/i960-protos.h, config/i960/i960.c, config/i960/i960.h,
2119         config/mips/iris6.h, config/mips/mips-protos.h, config/mips/mips.c,
2120         config/mips/mips.h, config/rs6000/rs6000-protos.h,
2121         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
2122         config/s390/s390-protos.h, config/s390/s390.c, config/s390/s390.h,
2123         config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
2124         config/xtensa/xtensa-protos.h, config/xtensa/xtensa.c,
2125         config/xtensa/xtensa.h: Rename foo_build_va_list to
2126         foo_build_builtin_va_list; make it static.  Define
2127         TARGET_BUILD_BUILTIN_VA_LIST.  Remove BUILD_VA_LIST_TYPE.
2128         Update protos.
2130         * config/i386/i386.c (ix86_expand_carry_flag_compare): Make static.
2131         * config/iq2000/iq2000.h (BUILD_VA_LIST_TYPE): Remove.
2133 2003-10-29  James E Wilson  <wilson@specifixinc.com>
2135         * recog.c (asm_operand_ok): Add missing break after case 'X'.
2136         Change if statements to else if statements in default case.
2137         (extract_constrain_insn_cached): Fix misspelling of constrain_operands
2138         in comment.
2139         (constrain_operands_cached): Likewise.
2140         (constrain_operands): Change if statements to else if statements in
2141         default case.
2142         * reload.c (find_reloads): Likewise.
2144 2003-10-29  Richard Henderson  <rth@redhat.com>
2146         * config/m68k/m68k.c (notice_update_cc): Clear cc status for
2147         shifts and rotates.
2149 2003-10-30  Alan Modra  <amodra@bigpond.net.au>
2151         * config/rs6000/rs6000.md: Remove duplicate pattern.
2153 2003-10-29  Hans-Peter Nilsson  <hp@axis.com>
2155         * real.c (do_divide): Initialize result with a 0.
2157         * configure.in <enable-checking for valgrind>: Look for
2158         <valgrind/memcheck.h> first.  AC_DEFINE HAVE_VALGRIND_MEMCHECK_H
2159         if it exists.
2160         * configure, config.in: Regenerate.
2161         * ggc-common.c [ENABLE_VALGRIND_CHECKING &&
2162         HAVE_VALGRIND_MEMCHECK_H]: Include <valgrind/memcheck.h>.  Use
2163         #elif for other alternatives.
2164         * ggc-page.c: Ditto.
2165         * ggc-zone.c: Don't assume <valgrind/memcheck.h>; instead copy
2166         include structure from ggc-common.c.
2168 2003-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2170         * pa-linux.h (ASM_OUTPUT_ADDR_VEC_ELT): Use label in big switch ELTs.
2171         (ASM_OUTPUT_ADDR_DIFF_ELT): Use label difference in big switch ELTs.
2172         * pa.c (pa_adjust_insn_length): Check for btable branches using
2173         attribute TYPE_BTABLE_BRANCH.
2174         (pa_reorg): Simplify.
2175         * pa.h (CASE_VECTOR_MODE): Change big switch mode to SImode.
2176         (ASM_OUTPUT_ADDR_VEC_ELT): As above.
2177         (ASM_OUTPUT_ADDR_DIFF_ELT): As above.
2178         * pa.md (btable_branch): New instruction type.
2179         (in_branch_delay, in_nullified_branch_delay, in_call_delay): Disallow
2180         btable branches.
2181         (define_delay): Add btable branches to insn types that may have an
2182         insn in the delay position.
2183         (Z2, Z3): Add btable branch to list.
2184         Simplify unamed pattern set copy pic_label_operand to register.  Add
2185         PA 2.0 variant.
2186         (short_jump): New jump for use in branch tables.
2187         (casesi, casesi0): Revise for new branch table formats.
2188         (casesi32, casesi32p, casesi64p): New casesi patterns.
2189         (indirect_jump): Move.
2191 2003-10-29  David Edelsohn  <edelsohn@gnu.org>
2193         * config/rs6000/rs6000.h (UNITS_PER_WORD): Revert to
2194         !TARGET_POWERPC64.
2195         (UNITS_PER_GPR_WORD): Delete.
2196         (HARD_REGNO_NREGS): Revert to UNITS_PER_WORD.
2197         (HARD_REGNO_MODE_OK): Same.
2198         (CLASS_MAX_NREGS): Same.
2200 2003-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2202         * pa.h (ASM_COMMENT_START): Define.
2204 2003-10-29  Zack Weinberg  <zack@codesourcery.com>
2206         * genmodes.c (complete_mode): Record MODE_CC, MODE_INT,
2207         MODE_FLOAT, and MODE_PARTIAL_INT modes as having one
2208         component, not zero.
2210 2003-10-29  Andreas Schwab  <schwab@suse.de>
2212         * config/ia64/t-ia64 (LIB2ADDEH): Add $(srcdir)/gthr-gnat.c.
2214 2003-10-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
2216         * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
2217         Never return 1 for complex integral modes whose size is lesser or
2218         equal to a word.
2219         (function_arg_pass_by_reference) [TARGET_ARCH64]: Mention CTImode
2220         in the comment.
2221         (function_arg_advance) [TARGET_ARCH64]: Don't special-case complex
2222         modes.
2223         (sparc_va_arg) [TARGET_ARCH64]: Handle any types whose size is
2224         greater than 16 bytes by reference.
2226 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2228         * config/ia64/ia64.c (ia64_assemble_integer): Test POINTER_SIZE,
2229         not TARGET_ILP32.
2230         (ia64_initialize_trampoline): Use globalize_label target call.
2232 2003-10-29  Andreas Schwab  <schwab@suse.de>
2234         * doc/install.texi (Building): Add a sentence about building Ada
2235         for a canadian cross.
2237 2003-10-28  Zack Weinberg  <zack@codesourcery.com>
2239         * config/ia64/ia64.c (cmptf_libfunc): New static.
2240         (ia64_expand_compare): Add logic to open-code calls to
2241         _U_Qfcmp for TFmode comparisons.
2242         (ia64_hpux_init_libfuncs): Initialize cmptf_libfunc.
2243         Set libfuncs for TFmode eq/ne/gt/ge/lt/gt to 0; these should
2244         never be generated anymore.
2245         * config/ia64/ia64.md (cmptf): New expander.
2247 2003-10-28  Zack Weinberg  <zack@codesourcery.com>
2249         * ia64.md (UNSPEC_SETF_EXP,UNSPEC_FR_SQRT_RECIP_APPROX): New constants.
2250         (*sqrt_approx): New instruction pattern for approximate square roots.
2251         (*setf_exp_xf): New instruction pattern for exponentiation.
2252         (*maddxf4_alts_truncsf): New instruction pattern for truncation.
2253         (sqrtsf2_internal_thr): New define_and_split implementing
2254         throughput-optimized inline calculation of SFmode square root.
2255         (sqrtdf2_internal_thr): Likewise for DFmode.
2256         (sqrtxf2_internal_thr): Likewise for XFmode.
2257         (sqrtsf2, sqrtdf2, sqrtxf2): New expanders to choose between
2258         latency- and throughput-optimized square root algorithms.
2259         * ia64.h (MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR,
2260         TARGET_INLINE_SQRT_LAT, TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT):
2261         New macros.
2262         (TARGET_SWITCHES): Add -minline-sqrt-min-latency and
2263         -minline-sqrt-max-throughput.
2264         * ia64.c (ia64_override_options): If both -minline-sqrt-min-latency
2265         and -minline-sqrt-max-throughput are given, notify the user
2266         that both options cannot be used simultaneously.
2267         If -minline-sqrt-min-latency is given, notify the user that
2268         this mode is not yet implemented.
2269         (rtx_needs_barrier): Reformat initial comment to obey
2270         72-character width limit.  Support UNSPEC_SETF_EXP and
2271         UNSPEC_FR_SQRT_RECIP_APPROX.
2273 2003-10-29  Alan Modra  <amodra@bigpond.net.au>
2275         * config/rs6000/rs6000.md (movdf_softfloat64): Allow dummy ctr,ctr
2276         moves.
2278 2003-10-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2280         PR target/11598
2281         PR libgcj/10610
2282         * config/rs6000/sysv4.h (PREFERRED_STACK_BOUNDARY): New macro.
2284 2003-10-28  Richard Earnshaw  <rearnsha@arm.com>
2286         * arm.c (arm_output_epilogue): When using a frame pointer, don't emit
2287         an extra stack adjustment insn if the stack pointer is already
2288         pointing at the right place.
2289         (use_return_insn): Allow a return insn to be used when we have a
2290         frame pointer if the stack pointer is in the right place.
2291         (output_return_instruction): Handle it.
2293 2003-10-28  Andreas Jaeger  <aj@suse.de>
2295         * ggc-zone.c (check_cookies): Add missing variable.
2296         Add void to prototypes.
2298 2003-10-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2300         * config/mips/irix6-libc-compat.c (inet_makeaddr): Prototype.
2301         * crtstuff.c (__do_global_ctors_1): Move prototype.
2302         * unwind-dw2.c (NO_SIZE_OF_ENCODED_VALUE): Define when
2303         appropriate.
2304         * unwind-sjlj.c (_Unwind_GetCFA, _Unwind_FindEnclosingFunction):
2305         Mark parameter with __attribute__((unused)).
2307 2003-10-27  Zack Weinberg  <zack@codesourcery.com>
2309         * c-decl.c (pushdecl): Clarify comment.
2311 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
2313         * doc/install.texi: Update instructions for Ada cross builds
2315         PR ada/5909:
2316         * doc/sourcebuild.texi: Document Ada test suite.
2318 2003-10-27  Stephane Carrez  <stcarrez@nerim.fr>
2320         * config/m68hc11/m68hc11.c: Convert to ISO C90.
2321         * config/m68hc11/m68hc11-protos.h: Likewise.
2323 2003-10-27  Jan Hubicka  <jh@suse.cz>
2324             Eric Botcazou  <ebotcazou@libertysurf.fr>
2326         * toplev.c (enum dump_file_index, dump_file): Fix ordering of
2327         webizer pass dump.
2329 2003-10-27  Jakub Jelinek  <jakub@redhat.com>
2330             Jan Hubicka  <jh@suse.cz>
2332         * reload1.c (struct elim_table): Change offset, initial_offset and
2333         previous_offset fields to HOST_WIDE_INT.
2334         (offsets_at): Change from int to HOST_WIDE_INT.
2335         (reload): Adjust offsets_at initialization.
2336         (eliminate_regs_in_insn): Change type of offset to HOST_WIDE_INT.
2337         (verify_initial_elim_offsets): Change type of t to HOST_WIDE_INT.
2338         * config/i386/i386.c (ix86_compute_frame_layout): Change offset type
2339         to HOST_WIDE_INT.  Don't save regs using mov for huge frame sizes
2340         if TARGET_64BIT.
2341         (pro_epilogue_adjust_stack): New function.
2342         (ix86_expand_prologue, ix86_expand_epilogue): Use it.
2343         * config/i386/i386.md (pro_epilogue_adjust_stack): Remove.
2344         (pro_epilogue_adjust_stack_1): Remove * in front of name.
2345         (pro_epilogue_adjust_stack_rex64): Handle -2147483648 properly.
2346         (pro_epilogue_adjust_stack_rex64_2): New insn.
2348         * config/i386/i386.c (ix86_expand_epilogue): Fix comment typo.
2350         * config/i386/i386.c (ix86_expand_call): Replace 40 with
2351         FIRST_REX_INT_REG + 3 /* R11 */.
2353 2003-10-26  Richard Henderson  <rth@redhat.com>
2355         * config/alpha/alpha.md (attr cannot_copy): New.
2356         (call_osf_2_er, call_value_osf_2_er, ldgp_er_1, ldgp_er_2,
2357         prologue_ldgp_er_2, prologue_ldgp_1): Set it.
2358         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Test it.
2360 2003-10-26  Daniel Berlin  <dberlin@dberlin.org>
2362         * ggc-zone.c:  New file, zone allocating collector.
2363         * configure: Accept zone option for --with-gc
2364         * configure.in: Ditto.
2365         * ggc.h (ggc_pch_count_object): Pass bool indicating
2366         stringiness. Update all callers.
2367         (ggc_pch_alloc_object): Ditto.
2368         (ggc_pch_write_object): Ditto.
2369         (ggc_alloc_rtx): Use typed allocation, since all RTX's are of a single
2370         type.
2371         (ggc_alloc_rtvec): Ditto.
2372         (ggc_alloc_tree): Use zone allocation, since some things using this macro
2373         aren't a single typecode.
2374         * ggc-none.c (ggc_alloc_typed): New function.
2375         (ggc_alloc_zone): Ditto.
2376         * ggc-page.c: Ditto on both functions.
2378 2003-10-26  Gunther Nikl  <gni@gecko.de>
2380         * config/m68k/m68k.c (m68k_compute_frame_layout): Ensure FPU related
2381         frame information is always valid.
2382         (m68k_output_function_prologue): Remove superfluous TARGET_68881
2383         test; fix formatting.
2385 2003-10-26  Gunther Nikl  <gni@gecko.de>
2387         * config/m68k/m68k.c (m68k_compute_frame_layout): Swap reg_mask and
2388         reg_rev_mask computation.
2389         (m68k_output_function_prologue): Fix usage of current_frame (one typo
2390         and one missing); use reg_rev_mask not reg_mask.
2391         (m68k_output_function_epilogue): Fix usage of current_frame;
2392         use fpu_rev_mask not fpu_mask.
2394 2003-10-26  Bernardo Innocenti  <bernie@develer.com>
2396         * config/m68k/m68k.c (m68k_output_function_prologue): Eliminate
2397         num_saved_regs, use current_frame.reg_no instead.
2399 2003-10-26  Bernardo Innocenti  <bernie@develer.com>
2400             Paul Dale  <pauli@snapgear.com>
2402         * doc/extend.texi (interrupt_handler): Add m68k to the
2403         list of processors implementing it.
2404         * doc/invoke.texi (-msep-data): Document new m68k option.
2405         (-mno-sep-data): Likewise.
2406         (-mid-shared-library): Likewise.
2407         (-mno-id-shared-library): Likewise.
2408         (-mshared-library-id): Likewise.
2410 2003-10-26  Andreas Jaeger  <aj@suse.de>
2412         * unwind-dw2.c (_Unwind_GetGR): Avoid warning about unsigned
2413         comparison.
2414         (_Unwind_SetGR): Likewise.
2416 2003-10-26  Ottavio Campana <ottavio@campana.vi.it>
2418         PR target/12690
2419         * config/i386/mmintrin.h (_mm_set1_pi8): Fix comment.
2421 2003-10-26  Gunther Nikl  <gni@gecko.de>
2423         * config/m68k/m68k.c (m68k_output_function_prologue): Move front
2424         comment from here to...
2425         (m68k_save_reg): ...here. Fix comment formatting.
2426         (m68k_output_function_prologue): Fix comment formatting.
2427         (m68k_output_function_epilogue): Likewise.
2428         (const_method): Likewise.
2430 2003-10-26  Kazu Hirata  <kazu@cs.umass.edu>
2432         * toplev.c (default_get_pch_validity): Guard the use of
2433         target_options with #ifdef TARGET_OPTIONS.
2434         (default_pch_valid_p): Likewise.
2436 2003-10-26  Andreas Jaeger  <aj@suse.de>
2437             Zack Weinberg  <zack@codesourcery.com>
2438             Andreas Tobler <toa@pop.agri.ch>
2440         * dwarf2out.c (output_cfi): Use HOST_WIDE_INT_PRINT.
2441         (output_die): Likewise.
2442         (print_die): Likewise.
2444 2003-10-26  Andreas Jaeger  <aj@suse.de>
2446         * tree.h (dwarf2out_def_cfa, dwarf2out_args_size,
2447         dwarf2out_reg_save, new_loc_descr): Update prototypes for recent
2448         dwarf2out.c change.
2450         * toplev.c (default_pch_valid_p): Fix warning.
2452 2003-10-25  Roger Sayle  <roger@eyesopen.com>
2454         * simplify-rtx.c (simplify_replace_rtx): Avoid allocating duplicate
2455         RTL nodes.  If an operator's operands are unchanged, return the
2456         original argument unchanged.
2458 2003-10-26  Graham Stott  <graham.stott@btinternet.com>
2460         Fix bootstrap failure.
2461         * expmed.c (store_bit_field): Don't compare bitsize against
2462         modes with zero bit-size.
2464         (extract_bit_field): Likewise
2466 2003-10-25  Jan Hubicka  <jh@suse.cz>
2468         * dwarf2out.c (dw_cfi_oprnd_struct): Offset is HOST_WIDE_INT.
2469         (cfa_loc): Likewise.
2470         (reg_save, stack_adjust_offset, queue_reg_save): Replace long by
2471         HOST_WIDE_INT.
2472         (args_size, old_args_size): change type to HOST_WIDE_INT.
2473         (dwarf2out_def_cfa, dwarf2out_args_size,
2474         dwarf2out_reg_save, new_loc_descr): offset is HOST_WIDE_INT.
2475         (dw_val_struct): integers, unsigneds and offsets are HOST_WIDE_INT.
2476         (add_AT_int, add_AT_unsigned, att_AT_offset, AT_int, AT_unsigned,
2477         AT_offset): Use HOST_WIDE_INT.
2478         (based_loc_descr): offset is HOST_WIDE_INT.
2479         (add_data_member): Likewise.
2480         (add_const_value_attribute): Simplify.
2482 2003-10-25  Richard Henderson  <rth@redhat.com>
2484         * config/i386/i386.c (ix86_eax_live_at_start_p): New.
2485         (ix86_expand_prologue): Save and restore eax around stack probe
2486         if it's live.
2488 2003-10-25  Jan Hubicka  <jh@suse.cz>
2490         * cppcharset.c (one_utf8_to_utf32): Initialize 's' to silence warning.
2492 2003-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
2494         PR target/12712
2495         * reg-stack.c (convert_regs_1): Create an arbitrary input stack
2496         if the block has no predecessors.
2497         (convert_regs_2): Document the problem with successors whose
2498         only predecessor is the block to be processed.
2499         (convert_regs): Don't create the arbitrary input stack here.
2501 2003-10-24  Zack Weinberg  <zack@codesourcery.com>
2503         * genmodes.c (struct mode_data): Add contained and next_cont
2504         fields.
2505         (complete_mode): Maintain linked list of modes that have a
2506         given component.
2507         (emit_mode_unit_size): Delete.
2508         (emit_mode_nunits): New.
2509         (emit_insn_modes_c): Update to match.
2510         (emit_mode_adjustments): Propagate size and alignment
2511         adjustments from component modes to their containers.
2512         * machmode.h (mode_unit_size): Delete.
2513         (mode_nunits): New.
2514         (GET_MODE_NUNITS): Just return the value in the table.
2515         (GET_MODE_UNIT_SIZE): Compute using GET_MODE_INNER and
2516         GET_MODE_SIZE.
2517         * expmed.c (store_bit_field, extract_bit_field): Can use a
2518         plain move instruction if bitsize >= GET_MODE_BITSIZE of
2519         destination/source mode, respectively.
2520         * varasm.c (assemble_real): Write out the full size of the
2521         constant, not just its bitsize.
2522         (output_constant): Honor TYPE_MODE of TREE_REAL_CSTs.
2524         * config/ia64/ia64-modes.def: Define XFmode as well as TFmode.
2525         Use ADJUST_BYTESIZE and ADJUST_ALIGNMENT to set size and
2526         alignment of XF and TF modes in compliance with ia64 ABIs.
2527         Can now hardwire the format of both modes.
2528         * config/ia64/ia64.c: Change TFmode to XFmode wherever appropriate.
2529         (general_tfmode_operand, destination_tfmode_operand)
2530         (tfreg_or_fp01_operand, spill_tfmode_operand): Rename to
2531         general_xfmode_operand, destination_xfmode_operand,
2532         xfreg_or_fp01_operand, spill_xfmode_operand respectively.
2533         (ia64_init_builtins): Make TYPE_PRECISION of fpreg_type
2534         and float80_type be 96 so they get XFmode.  Use !TARGET_HPUX,
2535         not INTEL_EXTENDED_IEEE_FORMAT, to decide how to define
2536         __float128.
2537         * config/ia64/ia64.h: Default TARGET_HPUX to 0.
2538         Change TFmode to XFmode wherever appropriate.  Remove all
2539         references to INTEL_EXTENDED_IEEE_FORMAT.
2540         (LONG_DOUBLE_TYPE_SIZE): Varies with TARGET_HPUX.
2541         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define (always 96).
2542         (PREDICATE_CODES): Update to match function renames.
2543         * config/ia64/ia64.md: Change TF to XF throughout; rename all
2544         patterns to match.  Remove all references to
2545         INTEL_EXTENDED_IEEE_FORMAT.  Update predicate calls to match
2546         function renames.
2547         * config/ia64/ia64-protos.c: Update all prototypes to match
2548         renamed functions.
2549         * config/ia64/hpux.h: Redefine TARGET_HPUX to 1.
2550         Remove all references to INTEL_EXTENDED_IEEE_FORMAT.
2551         * config/ia64/lib1funcs.asm: Add __divxf3 as new name for
2552         __divtf3; keep old name for backward compatibility.
2553         (L__compat): New section providing forwarding stubs for
2554         __fixtfti, __fixunstfti, __floattitf.
2555         * config/ia64/t-ia64: Add __compat to LIB1ASMFUNCS.
2557 2003-10-24  Geoffrey Keating  <geoffk@apple.com>
2559         PR 10757
2560         * c-pch.c: Include target.h.  Improve comments.
2561         (struct c_pch_validity): Add target_data_length.
2562         (pch_init): Add target's validity data.
2563         (c_common_valid_pch): Check target's validity data.
2564         * target-def.h (TARGET_GET_PCH_VALIDITY): New.
2565         (TARGET_PCH_VALID_P): New.
2566         (TARGET_INITIALIZER): Add new fields.
2567         * target.h: Include tm.h.
2568         (struct gcc_target): Add get_pch_validity, pch_valid_p.
2569         * toplev.h (default_get_pch_validity): New prototype.
2570         (default_pch_valid_p): New prototype.
2571         * toplev.c (default_get_pch_validity): New routine.
2572         (default_pch_valid_p): New routine.
2573         * Makefile.in (TARGET_H): Add TM_H.  Replace all users of
2574         target.h with $(TARGET_H).
2575         (c-pch.o): Add TARGET_H.
2576         * doc/tm.texi (PCH Target): New node.
2577         (TARGET_GET_PCH_VALIDITY): Document.
2578         (TARGET_PCH_VALID_P): Document.
2580 2003-10-24  Kelley Cook  <kcook@gcc.gnu.org>
2582         * Makefile.in: Define a vpath for %.texi.  Remove explicit $(docdir)
2583         and $(docdir)/include from any *.texi dependencies.
2584         ($(docobjdir)/%.dvi): Depend on stmp-docobjdir.
2585         ($(docobjdir)/%.1): Depend on .pod instead of .texi.
2586         ($(docobjdir)/%.7): Likewise.
2587         (%.pod): New implicit rule.
2588         (cpp.pod): New dependency only rule.
2589         (gcc.pod): New intermediate rule with dependencies and commands.
2590         (gfdl.pod): Likewise.
2591         (fsf-funding.pod): Likewise.
2593 2003-10-24  Nathanael Nerode  <neroden@gcc.gnu.org>
2595         * fixinc/mkfixinc.sh: Remove special cases for svr4 and ptx, and
2596         related code.
2597         * fixinc/fixinc.ptx: Remove.
2598         * fixinc/fixinc.svr4: Remove.
2600 2003-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
2602         * config/s390/s390.c (load_multiple_operation): Allow both SImode
2603         and DImode if word_mode is DImode.
2604         (store_multiple_operation): Likewise.
2605         * config/s390/s390.md ("load_multiple", "store_multiple"): Likewise.
2606         ("*load_multiple_di"): Allow only if word_mode == DImode.
2607         ("movqi"): Use LLGC whenever TARGET_ZARCH.
2608         ("fix_truncdfsi2"): Fix incorrect temporary size.
2609         ("fix_truncsfsi2"): Likewise.
2610         ("*bras_r", "*brasl_r", "*basr_r"): Remove predicate and constraint
2611         string for function return value operand.
2612         ("*bras_tls", "*brasl_tls", "*basr_tls"): Likewise.
2614 2003-10-24  Joseph S. Myers  <jsm@polyomino.org.uk>
2616         * c-parse.in (array_declarator): Use expr_no_commas.
2617         Fixes PR c/11943.
2619 2003-10-24  Richard Sandiford  <rsandifo@redhat.com>
2621         * config/mips/linux.h: Wrap MD_FALLBACK_FRAME_STATE_FOR and
2622         associated includes in #ifndef inhibit_libc.
2624 2003-10-24  Roger Sayle  <roger@eyesopen.com>
2626         * doc/libgcc.texi: Document some more of the libgcc API.
2628 2003-10-24  Richard Earnshaw  <rearnsha@arm.com>
2630         * arm.c (arm_rtx_costs_1, case TARGET_THUMB): Adjust costs for
2631         comparing a constant with small negative numbers and add costing
2632         for constants in conjunction with AND.
2633         (note_invalid_constants): Tidy previous change.
2634         (thumb_cmp_operand): Tidy.
2635         (thumb_cmpneg_operand): New function.
2636         * arm.h (CONDITIONAL_REGISTER_USAGE): Don't use HI regs if optimizing
2637         for size.
2638         (FIRST_LO_REGNUM, FIRST_HI_REGNUM, LAST_HI_REGNUM): Define.
2639         (PREDICATE_CODES): Add thumb_cmpneg_operand.
2640         * arm.md (cbranchsi4): Convert to define_expand.  Handle comparison
2641         with a negative constant.
2642         (cbranchsi4_insn): Matcher for cbranchsi4.
2643         (cbranchsi4_scratch): Similar, but a scratch is available for
2644         handling negative constants.
2645         (movsi_cbranchsi4): New pattern.
2646         (tstsi3_cbranch): Renamed from andsi3_cbranch_scratch, remove scratch
2647         and use the TST instruction.
2648         (andsi3_cbranch, orrsi3_cbranch, xorsi3_cbranch, cbranchne_decr1)
2649         (addsi3_cbranch, subsi3_cbranch): Ensure that register preferencing
2650         cannot see high regs or memory alternatives.
2651         (bicsi3_cbranch_scratch, bicsi3_cbranch): New patterns.
2653 2003-10-24  Richard Earnshaw  <rearnsha@arm.com>
2655         * arm.c (note_invalid_constants): Try to extract the constant
2656         pool value using avoid_constant_pool_reference; only use
2657         get_pool_constant if that returns the original reference.
2659 2003-10-24  Jan Hubicka  <jh@suse.cz>
2661         PR c++/12624
2662         * varasm.c (notice_global_symbol): Disqualify global registers.
2664 2003-10-23  Roger Sayle  <roger@eyesopen.com>
2666         PR middle-end/11414
2667         * loop.c (load_mems): Use redirect_jump to forward jumps from
2668         the original loop end label to the new "loop sink" block's label.
2670 2003-10-23  Roger Sayle  <roger@eyesopen.com>
2672         PR middle-end/12705
2673         * optabs.c (expand_binop): When expanding complex operations
2674         inline, always calculate result into a new temporary register.
2675         Minor code clean-ups.
2677 2003-10-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2679         * objc/lang-specs.h: Handle -print-objc-runtime-info.
2680         * doc/invoke.texi (Objective-C Dialect Options): Document it.
2682 2003-10-24  Danny Smith  <dannysmith@users.sourceforge.net>
2684         * config/i386/cygwin.asm: Add copyright notice. Add comment
2685         on why this code is needed.
2687 2003-10-23  Kazu Hirata  <kazu@cs.umass.edu>
2689         * config/h8300/clzhi2.c: Fix warnings.
2690         * config/h8300/ctzhi2.c: Likewise.
2691         * config/h8300/fixunssfsi.c: Likewise.
2692         * config/h8300/parityhi2.c: Likewise.
2693         * config/h8300/popcounthi2.c: Likewise.
2695 2003-10-23  James E Wilson  <wilson@specifixinc.com>
2697         * gcc.c (option_map): Delete --target and --use-version.
2699 2003-10-23  Fariborz Jahanian  <fjahanian@apple.com>
2700             David Edelsohn  <edelsohn@gnu.org>
2702         * config/rs6000/rs6000.h (UNITS_PER_WORD): Use TARGET_32BIT, not
2703         TARGET_POWREPC64.
2704         (UNITS_PER_GPR_WORD): Define.
2705         (HARD_REGNO_NREGS): Use UNITS_PER_GPR_WORD.
2706         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
2707         (HARD_REGNO_MODE_OK): Use UNITS_PER_GPR_WORD.
2708         (CLASS_MAX_NREGS): Use UNITS_PER_GPR_WORD.
2709         * config/rs6000/rs6000.c (function_arg): Generate PARALLEL for
2710         DFmode and DImode in 32-bit ABI / 64-bit computation mode.
2711         (rs6000_emit_prologue): Select reg_mode and reg_size using
2712         TARGET_32BIT, not TARGET_POWERPC64.
2713         (rs6000_function_value): Generate PARALLEL for DImode in 32-bit
2714         ABI / 64-bit computation mode
2716 2003-10-22  Andrew Haley  <aph@redhat.com>
2718         * toplev.c (output_file_directive): Allow for null input_name.
2720 2003-10-22  Waldek Hebisch <hebisch@math.uni.wroc.pl>
2722         * config/i386/i386.c (classify_argument): Handle SET_TYPE.
2724 2003-10-22  Chris Demetriou  <cgd@broadcom.com>
2726         * configure.in: In --enable-generated-files-in-srcdir option
2727         handling, fix default case handling.
2728         * configure: Regenerate.
2730 2003-10-22  Phil Edwards  <phil@codesourcery.com>
2732         * config.gcc:  Update *-*-vxworks* generic hook and comments.
2733         (arm-wrs-vxworks, i[4567]86-wrs-vxworks, mips-wrs-vxworks,
2734         mips-wrs-windiss, sh-wrs-vxworks):  New stanzas.
2735         * genmultilib:  Allow the MULTILIB_OSDIRNAMES to be mapped directly.
2736         * config/svr4.h (SWITCH_TAKES_ARG):  Undefine it before redefining it.
2737         * config/windiss.h:  New file.
2738         * config/arm/t-vxworks:  New file.
2739         * config/arm/vxworks.h:  New file.
2740         * config/i386/t-vxworks:  New file.
2741         * config/i386/vxworks.h:  New file.
2742         * config/mips/t-vxworks:  New file.
2743         * config/mips/vxworks.h:  New file.
2744         * config/mips/windiss.h:  New file.
2745         * config/sh/t-vxworks:  New file.
2746         * config/sh/vxworks.h:  New file.
2748 2003-10-22  Kazu Hirata  <kazu@cs.umass.edu>
2750         * config/h8300/h8300.c (h8300_output_function_epilogue): Remove.
2751         (h8300_saveall_function_p): New.
2752         (h8300_insert_attributes): Insert the saveall attribute if
2753         #pragma saveall is specified.
2754         (h8300_attribute_table): Add saveall.
2755         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
2756         * doc/extend.texi: Mention the saveall attribute.
2758 2003-10-22  Joseph S. Myers  <jsm@polyomino.org.uk>
2760         * c-typeck.c (pedantic_lvalue_warning): Unconditionally warn of
2761         deprecation of casts as lvalues.
2762         * fixinc/inclhack.def (obstack_lvalue_cast): New fix.
2763         * fixinc/fixincl.x: Regenerate.
2764         * fixinc/tests/base/obstack.h: New test.
2766 2003-10-22  Andreas Schwab  <schwab@suse.de>
2768         PR target/12676
2769         * config/m68k/m68k.c (output_addsi3): Fix range check to work on
2770         LP64 platforms.
2772 2003-10-22  Jan Hubicka  <jh@suse.cz>
2774         * dwarf2out.c (dwarf2out_abstract_function): Use DW_AT to check
2775         presence of DW_AT_inline.
2776         (gen_subprogram_die): Likewise; do not abort instead of emitting
2777         DW_AT_not_inline.
2779 2003-10-22  Jan Hubicka  <jh@suse.cz>
2781         * cgraph.c (cgraph_function_possibly_inlined_p): Be conservative when
2782         global info is not ready.
2784 2003-10-22  Kazu Hirata  <kazu@cs.umass.edu>
2786         * doc/extend.texi: Mention H8S wherever H8/300H is mentioned.
2788 2003-10-22  Ulrich Weigand  <uweigand@de.ibm.com>
2790         * config/s390/s390.md ("movstr_short_64", "movstr_short_31"): Merge ...
2791         ("*movstr_short"): ... into this insn pattern.
2792         ("movstr_short"): New expander.
2793         ("*movstr_long_64"): Rename from "movstr_long_64", simplify.
2794         ("*movstr_long_31"): Rename from "movstr_long_31", simplify.
2795         ("movstr_long"): New expander.
2796         ("clrstr_short_64", "clrstr_short_31"): Merge ...
2797         ("*clrstr_short"): ... into this insn pattern.
2798         ("clrstr_short"): New expander.
2799         ("*clrstr_long_64"): Rename from "clrstr_long_64", simplify.
2800         ("*clrstr_long_31"): Rename from "clrstr_long_31", simplify.
2801         ("clrstr_long"): New expander.
2802         ("cmpmem_short_64", "cmpmem_short_31"): Merge ...
2803         ("*cmpmem_short"): ... into this insn pattern.
2804         ("cmpmem_short"): New expander.
2805         ("*cmpmem_long_64"): Rename from "cmpmem_long_64".
2806         ("*cmpmem_long_31"): Rename from "cmpmem_long_31".
2807         ("cmpmem_long"): New expander.
2808         * config/s390/s390.c (s390_expand_movstr): Use new expanders.
2809         (s390_expand_clrstr): Likewise.
2810         (s390_expand_cmpmem): Likewise.
2812 2003-10-22  Mark Mitchell  <mark@codesourcery.com>
2814         * c-pch.c (struct c_pch_validity): Add pch_init field.
2815         (pch_init): Set it.
2816         (c_common_valid_pch): Check it.
2818 2003-10-22  David Taylor <dtaylor@emc.com>
2820         PR debug/12500
2821         * dbxout.c (dbxout_typedefs): Use COMPLETE_OR_VOID_TYPE_P.
2823 2003-10-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2825         * config/alpha/alpha.c (function_value [ENABLE_CHECKING]): Don't call
2826         alpha_return_in_memory if no VALTYPE specified.
2828 2003-10-22  Jan Hubicka  <jh@suse.cz>
2830         PR debug/12389
2831         * Makefile.in (dwarf2out.o): Depend on cgraph.h.
2832         * cgraph.c (cgraph_function_possibly_inlined_p): New function.
2833         * cgraph.h (cgraph_function_possibly_inlined_p): Declare.
2834         (cgraph_global_info): Add flag inlined
2835         * dwarf2out.c (gen_subprogram_die, gen_decl_die): Use
2836         cgraph_function_possibly_inded_p
2837         * cgraphunit.c (mark_inline): Set inlined flag.
2838         * toplev.c (rest_of_decl_compilation): Call outlining_inline_function
2839         only for possibly inlined functions.
2840         * c-decl.c (duplicate_decls): Never output abstract DIE representing old
2841         body of function.
2843 2003-10-22  Andrew Haley  <aph@redhat.com>
2845         * varasm.c (output_constructor): Make constructor annotation
2846         conditional on ASM_COMMENT_START.
2848 2003-10-21  Jason Merrill  <jason@redhat.com>
2850         * tree.c (get_unwidened): Check TREE_UNSIGNED on the field's type.
2851         (get_narrower): Likewise.
2853         * stor-layout.c (layout_decl): Do packed field alignment for
2854         bit-fields, too.
2856 2003-10-21  Eric Christopher  <echristo@redhat.com>
2858         * expr.c (convert_move): Use FLOAT_EXTEND for extensions.
2860 2003-10-21  Geoffrey Keating  <geoffk@apple.com>
2862         * c-pch.c: Add comments in various places.
2863         (struct c_pch_validity): Add the lengths of various strings.
2864         (host_machine): New static.
2865         (target_machine): New static.
2866         (get_ident): Bump version number.
2867         (pch_init): Write out version, host, target validity data.
2868         (c_common_valid_pch): Check version, host, target.
2869         * Makefile.in (c-pch.o): Add version.h; define HOST_MACHINE and
2870         TARGET_MACHINE.
2872 2003-10-21  Jason Merrill  <jason@redhat.com>
2874         * tree.h (IS_EXPR_CODE_CLASS): Use strchr.
2875         (EXPR_P): New macro.
2877 2003-10-21  Zack Weinberg  <zack@codesourcery.com>
2879         * config/ia64/ia64.md (cmpxchg_acq_si): Mark operand 3 as DImode.
2880         * config/ia64/ia64.c (ia64_expand_fetch_and_op,
2881         ia64_expand_op_and_fetch): Make sure the REG for ar.ccv is
2882         DImode.   Use convert_move to load ar.ccv.
2883         (ia64_expand_compare_and_swap): Likewise.
2884         If expand_expr doesn't put 'old' and 'new' in the proper
2885         modes, run them through convert_to_mode.
2887 2003-10-21  Eric Christopher  <echristo@redhat.com>
2889         * config/frv/frv.c (frv_adjust_field_align): Check DECL_ARTIFICIAL
2890         for too large bitfields.
2892 2003-10-21  Mark Mitchell  <mark@codesourcery.com>
2894         * Makefile.in ($(docobjdir)/%.info): Honor BUILD_INFO.
2896 2003-10-21  Andrew Haley  <aph@redhat.com>
2898         * varasm.c (output_constructor): Annotate constructor.
2900 2003-10-21  Mark Mitchell  <mark@codesourcery.com>
2902         * Makefile.in ($(DESTDIR)$(infodir)/%.info): Conditionalize chmod
2903         on existence of destination file.
2905 2003-10-21  Jan Hubicka  <jh@suse.cz>
2907         * haifa-sched.c (choose_ready): Initialize index.
2909 2003-10-21  Jason Merrill  <jason@redhat.com>
2911         * tree.c (build1): Fix off-by-one error.
2913 2003-10-21  Robert Millan  <robertmh@gnu.org>
2915         * config/i386/kfreebsdgnu.h: New. i386-*-kfreebsd-gnu definitions.
2916         * config/kfreebsdgnu.h: New. *-*-kfreebsd-gnu definitions.
2917         * config/t-kfreebsd-gnu: New. *-*-kfreebsd-gnu tmake_file.
2918         * config.gcc: Add *-*-kfreebsd*-gnu and i[34567]86-*-kfreebsd*-gnu.
2920 2003-10-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
2922         * web.c: Fix various comments.
2924 2003-10-20  Nicolas Pitre <nico@cam.org>
2926         * config/arm/arm.c (arm_override_options): Set arm_constant_limit
2927         to 2 instead of 1 when optimize_size is true.  Gather code based on
2928         optimize_size together.  Add comment about XScale load latency.
2930 2003-10-21  Gunther Nikl  <gni@gecko.de>
2932         * config/m68k/m68k.c (m68k_output_function_prologue): Remove
2933         obsolete comments.
2935 2003-10-20  Kelley Cook  <kcook@gcc.gnu.org>
2937         * Makefile.in: Get parsedir and docobjdir from configure.
2938         * configure.in: Recogonize --enable-generated-files-in-srcdir.
2939         Pass along parsedir and docobjdir.
2940         * configure: Regenerate.
2941         * doc/install.texi: Document --enable-generated-files-in-srcdir.
2943 2003-10-20  Kelley Cook  <kcook@gcc.gnu.org>
2945         * Makefile.in: Define $(docdir) before the Make-lang.in fragments are
2946         included.
2948 2003-10-20  Joseph S. Myers  <jsm@polyomino.org.uk>
2950         * c-common.c (expand_tree_builtin): Ensure creal and cimag
2951         functions do not return lvalues.
2953 2003-10-20  Jason Merrill  <jason@redhat.com>
2955         PR c/12553
2956         * tree.c (build1) <ADDR_EXPR>: Set TREE_SIDE_EFFECTS
2957         appropriately.
2959         PR c/11446
2960         * stor-layout.c (layout_decl): Fix alignment handling.
2962 2003-10-20  Joseph S. Myers  <jsm@polyomino.org.uk>
2964         * doc/extend.texi: Deprecate casts as lvalues.
2966 2003-10-20  Jan Hubicka  <jh@suse.cz>
2968         * toplev.c (rest_of_compilation): Fix webizer pass ordering.
2970         * cgraphunit.c (decide_is_function_needed):  Fix test dealing
2971         with functions implicitly made inline.
2973         * cgraphunit.c (cgraph_decide_inlining_incrementally):  New function.
2974         (cgraph_finalize_function): Use it.
2975         (cgraph_mark_inline): Allow incrmental decisions
2976         * invoke.texi (max-inline-slope, min-inline-insns): Kill.
2977         * params.def (PARAM_MAX_INLINE_SLOPE, PARAM_MIN_INLINE_INSNS): Kill.
2978         * tree-inline.c (limits_allow_inlining): Kill.
2979         (expand_call_inline): Always use unit-at-a-time path.
2981 2003-10-20  Zack Weinberg  <zack@codesourcery.com>
2983         * fixinc/inclhack.def (hpux11_snprintf): New edit.
2984         * fixinc/fixincl.x: Regenerate.
2985         * fixinc/tests/base/stdio.h: Add test for hpux11_snprintf.
2987 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
2989         * Makefile.in (install-info): Simplify.
2990         ($(DESTDIR)$(infodir)/%.info): New rule.
2991         * configure.in (target_list): Remove install-info.
2992         * doc/.cvsignore (gcc.info*): Remove.
2993         (gccint.info*): Likewise.
2994         (gccinstall.info*): Likewise.
2995         (cpp.info*): Likewise.
2996         (cppinternals.info*): Likewise.
2997         (*.info*): Add it.
2998         * doc/sourcebuild.texi: Update description of install-info.
2999         * objc/Make-lang.in (objc.install-info): Remove.
3001 2003-10-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3003         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Define _ABIO32.
3004         Use it in _MIPS_SIM definition.
3005         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Likewise.
3007 2003-10-20  Zack Weinberg  <zack@codesourcery.com>
3009         * config/i386/i386.c (print_reg): Abort if REGNO (x) is a
3010         virtual register, but only if file == asm_out_file.
3011         * config/i386/i386.h (HI_REGISTER_NAMES): Use "argp", not "",
3012         for ARG_POINTER_REGNUM.
3014 2003-10-20  Zack Weinberg  <zack@codesourcery.com>
3016         * c-common.c (registered_builtin_types): New static.
3017         (c_common_type_for_mode): Consult registered_builtin_types.
3018         (c_register_builtin_type): Add type to registered_builtin_types.
3019         * optabs.c (init_floating_libfuncs): Initialize libfuncs for
3020         all MODE_FLOAT modes, not just the ones corresponding to
3021         float_type_node, double_type_node, and long_double_type_node.
3023 2003-10-20  Richard Henderson  <rth@redhat.com>
3025         * config/alpha/alpha.h (PREDICATE_CODES): Add normal_memory_operand.
3026         * config/alpha/alpha-protos.h: Remove PREDICATE_CODES prototypes.
3028 2003-10-20  Dorit Naishlos  <dorit@il.ibm.com>
3030         * config/rs6000/rs6000.h: (rs6000_sched_insert_nops):
3031         support new flag -minsert-sched-nops.
3032         (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Define.
3033         * config/rs6000/rs6000.c: (rs6000_sched_insert_nops):
3034         support new flag -minsert-sched-nops.
3035         (is_cracked_insn, is_microcoded_insn): New functions.
3036         (rs6000_sched_finish): New function.
3037         (rs6000_issue_rate): Return 5 for power4.
3038         (get_next_active_insn, insn_terminates_group_p): New
3039         functions.
3040         (is_costly_group, force_new_group): New functions.
3041         (redefine_groups, pad_groups): New functions.
3042         (rs6000_variable_issue): Use new functions.
3043         * doc/invoke.texi (-minsert-sched-nops): Document new
3044         option.
3046 2003-10-20  David S. Miller  <davem@redhat.com>
3048         * config/sparc/sparc.md (type attribute): Add new insn types
3049         fpa, fpm_pack, fgm_mul, fgm_pdist, and fgm_cmp for VIS.
3050         (patterns emitting VIS insns): Use them.
3051         * config/sparc/ultra1_2.md: Add VIS scheduling rules.
3052         * config/sparc/ultra3.md: Likewise.
3054 2003-10-20  Falk Hueffner  <falk@debian.org>
3056         PR target/12654
3057         * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't do
3058         comparison against constant by adjusting the argument except for
3059         EQ and NE.
3061 2003-10-19  Mark Mitchell  <mark@codesourcery.com>
3063         * config.gcc: Add support for arm926ejs, arm1026ejs, arm1136js,
3064         arm1136jfs, and armv6j.
3065         * config/arm/arm.c (FL_ARCH6J): New macro.
3066         (FL_VFPV2): Likewise.
3067         (all_cores): Add entries for arm926ejs, arm1026ejs, arm1136js,
3068         and arm1136jfs.
3069         (all_architectures): Add entry for armv6j.
3070         (arm_override_options): Add entries for arm926ejs, arm1026ejs,
3071         arm1136js, and arm1136jfs.
3072         * config/arm/arm.h (TARGET_CPU_arm926ej_s): New macro.
3073         (TARGET_CPU_arm1026ej_s): Likewise.
3074         (TARGET_CPU_arm1136j_s): Likewise.
3075         (TARGET_CPU_arm1136jf_s): Likewise.
3076         * doc/invoke.texi: Document new ARM cores and architecture
3077         variants.
3079 2003-10-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3081         * Makefile.in (toplev.o): Add value-prof.h dependency.
3082         (value-prof.o): Add REGS_H dependency.
3083         * common.opt (fprofile-values, fvpt): New.
3084         * flags.h (flag_value_profile_transformations): Declare.
3085         * opts.c (common_handle_option): Handle -fprofile_values and
3086         -fvpt.
3087         * profile.c (branch_prob): Don't remove death notes here.
3088         * timevar.def (TV_VPT): New.
3089         * value-prof.c: Include regs.h.
3090         (insn_divmod_values_to_profile, gen_divmod_fixed_value, gen_mod_pow2,
3091         gen_mod_subtract, divmod_fixed_value_transform,mod_pow2_value_transform,
3092         mod_subtract_transform, value_profile_transformations): New.
3093         (insn_values_to_profile): Call insn_divmod_values_to_profile.
3094         (find_values_to_profile): Add dumps.
3095         * value-prof.h (value_profile_transformations): Declare.
3096         * toplev.c: Include value-prof.h.
3097         (rest_of_handle_value_profile_transformations): New.
3098         (enum dump_file_index): Add DFI_vpt.
3099         (dump_file): Add vpt dump.
3100         (flag_value_profile_transformations): New.
3101         (lang_independent_options): Add flag_profile_values and
3102         flag_value_profile_transformations.
3103         (rest_of_compilation): Call
3104         rest_of_handle_value_profile_transformations.
3105         (process_options): Let -fvpt imply -fprofile-values.
3106         * doc/invoke.texi (-fvpt): Document.
3108 2003-10-19  Jan Hubicka  <jh@suse.cz>
3110         * i386.c (print_reg): Do not abort on certain registers.
3112         PR optimization/12612
3113         * reg-stack.c (subst_stack_regs_pat):  Use st(1) for clobbers.
3114         * i386.md (fpatan, fyl2x, fscale patterns and expanders): Use
3115         match_scratch; avoid bogus paralles.
3117         PR target/12674
3118         * i386.c (ix86_function_regparm): Disable implicit register passing
3119         conventions when profiling.
3121 2003-10-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
3122             Richard Henderson  <rth@redhat.com>
3124         PR optimization/8178
3125         * config/i386/i386.md (*movsi_zero): Delete.
3126         (*ffs_no_cmove): Use ix86_expand_clear to zero the third operand.
3128 2003-10-19  Richard Henderson  <rth@redhat.com>
3130         * config/alpha/alpha.c (fix_operator): New.
3131         (divmod_operator): Tidy.
3132         (alpha_emit_xfloating_cvt): Handle UNSIGNED_FIX.
3133         * config/alpha/alpha.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
3134         (PREDICATE_CODES): Update.
3135         * config/alpha/alpha.md (fix_truncdfsi_ieee): Use match_operator.
3136         (fix_truncdfsi_internal, fix_truncdfdi_ieee): Likewise.
3137         (fix_truncsfsi_ieee, fix_truncsfsi_internal): Likewise.
3138         (fix_truncsfdi_ieee): Likewise.
3139         (fix_truncdfdi2, fix_truncsfdi2): Turn into define_expand.
3140         (fixuns_truncdfdi2, fixuns_truncsfdi2, fixuns_trunctfdi2): New.
3141         * config/alpha/alpha-protos.h: Update.
3143 2003-10-19  Richard Sandiford  <rsandifo@redhat.com>
3145         * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Simplify.
3146         * config/mips/mips.c (mips_load_got): Assume Pmode == ptr_mode.
3147         * config/mips/mips.md (extendsidi2, *extendsidi2): Merge. Don't accept
3148         constant operands.
3150 2003-10-18  Kazu Hirata  <kazu@cs.umass.edu>
3152         * doc/extend.texi: Fix typos.
3153         * doc/invoke.texi: Likewise.
3155 2003-10-18  Nicolas Pitre <nico@cam.org>
3157         * config/arm/arm.c (arm_override_options): Use arm_tune_xscale for
3158         XScale optimizations not arm_arch_xscale.
3159         * config/arm/arm.h (CONSTANT_ALIGNMENT_FACTOR, MOVE_RATIO): Likewise.
3161 2003-10-18  Ulrich Weigand  <uweigand@de.ibm.com>
3163         * config/s390/s390-protos.h (shift_count_operand): Add prototype.
3164         * config/s390/s390.c (shift_count_operand): New function.
3165         (s390_extra_constraint): Use it to implement 'Y' constraint.
3166         (print_shift_count_operand): New function.
3167         (print_operand): Use it to implement '%Y'.
3168         * config/s390/s390.h (EXTRA_ADDRESS_CONSTRAINT): Add 'Y' constraint.
3169         (PREDICATE_CODES): Add shift_count_operand.
3170         * config/s390/s390.md ("rotldi3"): Merge alternatives,
3171         using "shift_count_operand" predicate and "Y" constraint,
3172         and "%Y" to output the combined shift count.
3173         ("rotlsi3"): Likewise.
3174         ("ashldi3", "*ashldi3_31", "*ashldi3_64"): Likewise.
3175         ("ashrdi3", "*ashrdi3_31", "*ashrdi3_64", "*ashrdi3_cc_31",
3176         "*ashrdi3_cc_64", "*ashrdi3_cconly_31", "*ashrdi3_cconly_64"): Likewise.
3177         ("ashlsi3", "ashrsi3", "*ashrsi3_cc", "*ashrsi3_cconly"): Likewise.
3178         ("lshrdi3", "*lshrdi3_31", "*lshrdi3_64"): Likewise.
3179         ("lshrsi3"): Likewise.
3181 2003-10-18  Gunther Nikl  <gni@gecko.de>
3183         * config/m68k/m68k.c (m68k_output_function_epilogue): Add missing
3184         argument to asm_fprintf statement.
3186 2003-10-18  Fariborz Jahanian  <fjahanian@apple.com>
3188         * rs6000.md: Separate TARGET_POWERPC64 patterns for TARGET_64BIT or TARGET_32BIT.
3189         (ashrdisi3_noppc64) Generate more efficient code for 32-bit right-shift of
3190         a "long long" argument.
3192 2003-10-18  Alexandre Oliva  <aoliva@redhat.com>
3194         * final.c (final_scan_insn): Run FINAL_PRESCAN_INSNS on asm insns
3195         as well.
3197 2003-10-18  Richard Sandiford  <rsandifo@redhat.com>
3199         * rtl.h (rtl_size): Declare.
3200         (rtunion): Remove rtwint.
3201         (rtx_def): Replace 'fld' with a union of an rtunion or a HOST_WIDE_INT.
3202         (RTX_HDR_SIZE, RTX_SIZE): New macros.
3203         (RTL_CHECK1): Adjust for new rtx_def layout.
3204         (RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2): Likewise.
3205         (XWINT, XCWINT): Likewise.  Access the rtx structure directly.
3206         (X0WINT): Remove.
3207         (X0ANY): New macro.
3208         * rtl.def: Adjust comments for new rtx_def layout.
3209         * ggc.h (ggc_alloc_rtx): Take the rtx code as argument, not the
3210         number of slots.
3211         * rtl.c (rtx_size): New array.
3212         (rtx_alloc): Adjust call to ggc_alloc_rtx.  Use RTX_HDR_SIZE.
3213         (copy_rtx): Use RTX_HDR_SIZE.  Adjust for new rtx_def layout.
3214         (shallow_copy_rtx): Adjust call to ggc_alloc_rtx.  Use RTX_SIZE.
3215         * integrate.c (copy_rtx_and_substitute): Use X0ANY to copy '0' fields.
3216         * emit-rtl.c (copy_most_rtx): Likewise.
3217         (copy_rtx_if_shared): Use RTX_SIZE.
3218         (copy_insn_1): Use RTX_HDR_SIZE.  Adjust for new rtx_def layout.
3219         * gengenrtl.c (gendef): Adjust ggc_alloc_rtx call.  Use RTX_HDR_SIZE.
3220         * gengtype.c (write_rtx_next): Use RTX_HDR_SIZE.
3221         (adjust_field_rtx_def): Expect "rtx_def" to be a union rather than
3222         an array.  Adjust output for new rtx_def layout.
3223         * ggc-page.c (RTL_SIZE): Use RTX_HDR_SIZE.
3224         * reload1.c (eliminate_regs): Use RTX_SIZE.
3225         * rtlanal.c (loc_mentioned_in_p): Adjust for new rtx_def layout.
3226         * gdbinit.in (pi): Likewise.
3228 2003-10-18  Jan Hubicka  <jh@suse.cz>
3230         * integrate.c (copy_decl_for_inlining): Revert previous patch.
3232 2003-10-18  Jan Hubicka  <jh@suse.cz>
3234         * integrate.c (copy_decl_for_inlining): Fix copying of copies.
3236 2003-10-18  Roger Sayle  <roger@eyesopen.com>
3238         * libgcc.texi: Group multi-word types, such as "long double" and
3239         "unsigned int", using braces in @deftypefn and @deftypefnx nodes.
3240         Document __unord?f2 as returning a non-zero value, not just one.
3242 2003-10-18  Hans-Peter Nilsson  <hp@bitrange.com>
3244         * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Define.
3245         ($(T)crti.o, $(T)crtn.o): Pass CRTSTUFF_T_CFLAGS here too.
3247 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
3249         * config/i386/k6.md (k6_alux): Use the 'mode' attribute instead of
3250         match_operand.
3252 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
3254         * config/sparc/sparc.c (function_arg_record_value_1): New fourth
3255         parameter packed_p.  Search for a DECL_PACKED field only if
3256         packed_p is false.  Pass packed_p recursively.
3257         (function_arg_record_value_2): Likewise.
3258         (function_arg_record_value): Update calls to
3259         function_arg_record_value_1 and function_arg_record_value_2.
3261 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
3263         * cse.c (cse_insn) [src_folded]: Check that the tentative replacement
3264         was successfully forced to memory before using the result.
3266 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
3268         PR optimization/8178
3269         * config/i386/i386.md (*movsi_zero): New insn to set
3270         a register to zero on TARGET_USE_MOV0 targets.
3272 2003-10-18  Kelley Cook  <kcook@gcc.gnu.org>
3274         * Makefile.in (Makefile): Depend on the all Make-lang.in fragments.
3275         (POSTSTAGE1_FLAGS_TO_PASS): Pass down MAKEINFO and MAKEINFOFLAGS.
3277 2003-10-17  David Edelsohn  <edelsohn@gnu.org>
3279         * doc/invoke.texi (gcse-las): Fix typo.
3281 2003-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
3283         * doc/install.texi: Remove first part of the sentence for
3284         zsh not working.  Change gcc to GCC.
3286         PR bootstrap/12546
3287         * doc/install.texi: Document that zsh does not work when
3288         configuring gcc.
3290 2003-10-17  Nathanael Nerode  <neroden@gcc.gnu.org>
3292         * config/ptx4.h: Switch to DWARF 2; update comments.
3294 2003-10-17  Segher Boessenkool  <boessen@de.ibm.com>
3295             Hartmut Penner  <hpenner@de.ibm.com>
3297         PR 10404, partial 11591, partial 11601
3298         * config/rs6000/altivec.md ("altivec_dst", "altivec_dstt",
3299         "altivec_dstst", "altivec_dststt", "altivec_lvsl", "altivec_lvsr",
3300         "altivec_lvebx", "altivec_lvehx", "altivec_lvewx", "altivec_lvxl",
3301         "altivec_lvx", "altivec_stvx", "altivec_stvxl", "altivec_stvebx",
3302         "altivec_stvehx", "altivec_stvewx"): Use a memory_operand.
3303         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): New function.
3304         (altivec_expand_stv_builtin): Adjust for the memory_operand.
3305         (altivec_expand_builtin): Call altivec_expand_lv_builtin.
3306         (altivec_init_builtins): Use `long int' for memory offsets.
3308 2003-10-17  Jan Hubicka  <jh@suse.cz>
3310         * opts.c  (common_handle_option): Handle OPT_fweb
3311         * invoke.texi (-fweb): Add missing parts of documentation.
3313 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3315         * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Undef
3316         before redefinition.
3318 2003-10-17  Mostafa Hagog  <mustafa@il.ibm.com>
3320         * common.opt: Add description of the new -fgcse-las flag.
3321         * flags.h (flag_gcse_las): Declaration of global flag_gcse_las.
3322         * gcse.c (hash_scan_set): Handle the case of store expression and
3323         insert the memory expression to the hash table, this way we make it
3324         possible to discover redundant loads after stores and remove them.
3325         (pre_insert_copy_insn): moved the call to update_ld_motion_stores,
3326         to pre_insert_copies, it is not the correct place to call it after
3327         adding stores to be in the available expression hash table.
3328         (pre_insert_copies): Added the call to update_ld_motion_stores when
3329         one or more copies were inserted.
3330         * opts.c (common_handle_option): Handle the -fgcse-las flag.
3331         * toplev.c (flag_gcse_las): Initialization of flag_gcse_las.
3333         * doc/invoke.tex: Document new -fgcse-las flag.
3335 2003-10-18  Alan Modra  <amodra@bigpond.net.au>
3337         * config/rs6000/crtsavres.asm: Correct alignment of powerpc64 code
3338         for posterity, then remove it.
3340 2003-10-17  Richard Earnshaw <rearnsha@arm.com>
3341             Nathan Sidwell  <nathan@codesourcery.com>
3343         * config/arm/arm.c (use_return_insn): Not a single instruction, if
3344         there's a frame pointer.
3345         (arm_output_epilogue): Protect stack pointer from being corrupted
3346         on interrupt.
3348 2003-10-17  Ulrich Weigand  <uweigand@de.ibm.com>
3350         * ifcvt.c (noce_try_addcc): Handle ifs with 'else' case.
3352 2003-10-17  Ulrich Weigand  <uweigand@de.ibm.com>
3354         * combine.c (simplify_set): Do not clear out undobuf.other_insn
3355         already set elsewhere.
3357 2003-10-17  Kelley Cook  <kcook@gcc.gnu.org>
3359         * config/i386/i386.c (ix86_expand_prologue):  Use
3360         gen_allocate_stack_worker.
3362 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3364         * config.gcc (mips-sgi-irix6*o32): Only enable use_collect2
3365         without gas.
3366         (mips-sgi-irix6*): Likewise.
3368         * config/mips/iris6gas.h: New file.
3369         * gcc/config.gcc (mips-sgi-irix6*): Use it.
3371         * config/mips/mips.h (TARGET_IRIX): Provide default.
3372         (TARGET_IRIX5): Likewise.
3373         (TARGET_SGI_O32_AS): Likewise.
3374         * config/mips/iris5.h (TARGET_IRIX): Redefine as 1.
3375         (TARGET_IRIX5): Likewise.
3376         * config/mips/iris6.h (TARGET_IRIX6): Remove.
3377         (TARGET_IRIX5): Redefine as 0.
3379         * config/mips/mips.c (mips_output_external): Test for IRIX 6 O32
3380         linker workaround with TARGET_IRIX and mips_abi instead of
3381         ASM_OUTPUT_UNDEF_FUNCTION.
3382         (mips_file_end): Inline old ASM_OUTPUT_UNDEF_FUNCTION definition,
3383         testing TARGET_IRIX and mips_abi explicitly.
3384         * config/mips/iris5.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove.
3385         * config/mips/iris6.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove undef.
3387         * config/mips/mips.c (irix_output_external_libcall): Renamed from
3388         mips_output_external_libcall.
3389         Use new TARGET_IRIX in guard.
3390         * config/mips/mips-protos.h (irix_output_external_libcall): Match
3391         this.
3392         * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Likewise.
3394         * config/mips/iris5gas.h (HAVE_GAS_SHF_MERGE): Update comment.
3395         Define as 0.
3397         * config/mips/iris6.h (FUNCTION_NAME_ALREADY_DECLARED): Define
3398         depending on mips_abi.
3399         * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Define as 1.
3400         * config/mips/mips.c (mips_output_function_prologue): Test
3401         FUNCTION_NAME_ALREADY_DECLARED at runtime.
3402         (mips_output_function_epilogue): Likewise.
3403         (build_mips16_function_stub): Likewise.
3404         (build_mips16_call_stub): Likewise.
3405         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Provide
3406         default.
3408         * config/mips/iris6.h (DWARF2_UNWIND_INFO): Don't define for native
3409         IRIX 6 O32 assembler.
3410         (SUBTARGET_CC1_SPEC): Enforce mips2 ISA with O32 ABI.
3411         (TARGET_OS_CPP_BUILTINS): Define _ABIO32, use it to define
3412         _MIPS_SIM for O32 ABI.
3413         (DWARF2_FRAME_INFO): Don't define for native IRIX 6 O32 assembler.
3414         (ASM_DECLARE_FUNCTION_NAME): Integrate mips.h version.
3415         (ASM_DECLARE_FUNCTION_SIZE): Move undef before redefinition.
3416         Integrate O32 version.
3417         (SUBTARGET_ASM_SPEC): Handle -mabi=32.
3418         (SUBTARGET_ASM_DEBUGGING_SPEC): Add mdebug_asm_spec for gas with
3419         O32 ABI.
3420         (BSS_SECTION_ASM_OP_32): Define.
3421         (BSS_SECTION_ASM_OP_64): Likewise.
3422         (BSS_SECTION_ASM_OP): Define differently for O32 and N32/N64 ABIs
3423         using them.
3424         (TARGET_ASM_NAMED_SECTION): Reflect renaming.
3425         Move up to allow override for O32 ABI without GNU as.
3426         (EH_FRAME_SECTION_NAME): Define explicitly.
3427         (MUST_USE_SJLJ_EXCEPTIONS): Define.
3428         [_MIPS_SIM == _ABIO32 && !GAS] (CTORS_SECTION_ASM_OP,
3429         DTORS_SECTION_ASM_OP): Dummy definitions.
3430         (TARGET_ASM_NAMED_SECTION): Undef statically.
3431         (EH_FRAME_SECTION_NAME): Likewise.
3432         (ASM_OUTPUT_FILENAME): Integrate mips.h version.
3433         (LINK_SPEC): Only use default options -call_shared -no_unresolved
3434         without -r.
3435         Don't pass -init, -fini with -mabi=32.
3436         (COLLECT_PARSE_FLAG): Define.
3438         * config/mips/mips.c (iris6_asm_named_section_1): Changed guard to
3439         TARGET_IRIX.
3440         Renamed to use irix_ prefix.
3441         (iris6_asm_named_section): Likewise.
3442         (iris_section_align_entry_eq): Likewise.
3443         (iris_section_align_entry_hash): Likewise.
3444         (iris6_file_start): Likewise.
3445         (iris6_section_align_1): Likewise.
3446         (iris6_file_end): Likewise.
3447         (iris6_section_type_flags): Likewise.
3448         (iris_section_align_htab): Likewise.
3449         (iris_orig_asm_out_file): Likewise.
3450         [TARGET_IRIX] (TARGET_ASM_FILE_START): Reflect rename.
3451         (TARGET_ASM_FILE_END): Likewise.
3452         (TARGET_SECTION_TYPE_FLAGS): Likewise.
3454         * config/mips/mips.c [TARGET_IRIX5 && !TARGET_IRIX6]
3455         (TARGET_ASM_UNALIGNED_HI_OP): Use runtime initialization in
3456         override_options instead.
3457         (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
3458         (TARGET_ASM_UNALIGNED_DI_OP): Likewise.
3459         * config/mips/mips.c (override_options) [USE_COLLECT2]: Restore
3460         flag_gnu_linker to defaults without USE_COLLECT2 for non-IRIX O32
3461         assemblers.
3462         Likewise for constructor/destructor handling.
3463         (override_options): Handle IRIX O32 assembler quirks.
3464         [TARGET_IRIX] (irix_asm_named_section): Handle O32 ABI with and
3465         without gas.
3466         (mips_file_start): Use new TARGET_IRIX.
3467         (mips_declare_object_name): No special processing for IRIX O32
3468         assembler.
3469         (mips_finish_declare_object): Likewise.
3470         (irix_asm_output_align): Renamed from iris6_asm_output_align.
3471         Don't record alignment for O32 ABI.
3472         (irix_file_start): Renamed from iris6_file_start.
3473         Return early for O32 ABI.
3474         (irix_file_end): Renamed from iris6_file_end.
3475         Don't emit .section directives for O32 ABI.
3476         * config/mips/iris6.h (ASM_OUTPUT_ALIGN): Reflect renaming.
3477         * config/mips/mips-protos.h (irix_asm_output_align): Likewise.
3479         * config/mips/t-iris6 (MULTILIB_OPTIONS): Add mabi=32.
3480         (MULTILIB_OSDIRNAMES): Likewise.
3482 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3484         * collect2.c (COLLECT_PARSE_FLAG): Provide default.
3485         (main): Use it.
3486         * doc/tm.texi (COLLECT_PARSE_FLAG): Document it.
3488 2003-10-17  Richard Earnshaw  <rearnsha@arm.com>
3490         * arm-modes.def (CC_Nmode): New condition code mode.
3491         * arm.c (thumb_condition_code): Delete.
3492         (arm_select_cc_mode): Handle single-bit test for Thumb.
3493         (arm_print_operand, cases 'd' and 'D'): Don't special case the
3494         condition code logic for Thumb.
3495         (get_arm_condition_code): Handle CC_Nmode.
3496         (thumb_cbrch_target_operand): New function.
3497         * arm.h (PREDICATE_CODES): Add thumb_cbrch_target_operand.
3498         * arm-protos.h (thumb_cbrch_target_operand): Add prototype.
3499         * arm.md: Add Thumb split patterns for zero_extract and
3500         sign_extract.
3501         (tbit_cbranch, andsi3_cbranch_scratch, andsi3_cbranch)
3502         (orrsi3_cbranch_scratch, orrsi3_cbranch, xorsi3_cbranch_scratch)
3503         (xorsi3_cbranch, addsi3_cbranch, addsi3_cbranch_scratch)
3504         (subsi3_cbranch, subsi3_cbranch_scratch): New Thumb patterns.
3505         (cbranchne_decr1): Re-work to use CC_Nmode.
3507         * arm.c (thumb_expand_epilogue): Add clobbers of registers restored
3508         by the return instruction.  Add a use of the link register if it
3509         wasn't stored.
3511 2003-10-17  Richard Earnshaw  <rearnsha@arm.com>
3513         * flow.c (init_propagate_block_info): Don't abort if a conditional
3514         jump is not a comparison of a register.  Instead, just don't record
3515         conditional life information.
3517 2003-10-16  Jan Hubicka  <jh@suse.cz>
3519         PR optimization/12630
3520         * pa.md (movstrsi, movstrsi_internal): Use match_scratch in clobbers
3521         for operands 7 and 8.
3523 2003-10-16  Kelley Cook  <kcook@gcc.gnu.org>
3525         * objc/Make-lang.in (objc-parse.o): Honor $(parsedir) for objc-parse.c.
3527 2003-10-16  Danny Smith  <dannysmith@users.sourceforge.net>
3529         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
3531         * config/i386/winnt.c (gen_stdcall_suffix): Make static
3532         (gen_fastcall_suffix): Likewise.
3533         (i386_pe_dllexport_p): Likewise.
3534         (i386_pe_dllimport_p): Likewise.
3535         (i386_pe_mark_dllexport): Likewise.
3536         (i386_pe_mark_dllimport): Likewise.
3537         (i386_pe_asm_named_section): Fix formatting.
3539 2003-10-16  Zack Weinberg  <zack@codesourcery.com>
3541         * configure.in: Add snprintf to gcc_AC_CHECK_DECLS list.
3542         * system.h: Declare snprintf if necessary.
3543         * configure, config.in: Regenerate.
3545 2003-10-15  David Edelsohn  <edelsohn@gnu.org>
3547         * config/rs6000/rs6000.c (rs6000_va_arg): Only align vector
3548         arguments if TARGET_ALTIVEC_ABI.
3550 2003-10-15  Roger Sayle  <roger@eyesopen.com>
3552         * builtins.c (fold_builtin_memcpy, fold_builtin_mempcpy,
3553         fold_builtin_memmove, fold_builtin_strcpy, fold_builtin_strncpy,
3554         fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
3555         New functions.
3556         (expand_builtin_memcpy): Use integer_zerop instead of testing
3557         host_integerp and tree_low_cst directly.  Move misapplied hunk
3558         for optimization wher SRC and DEST point to the same location.
3559         (expand_builtin_mempcpy): From here.
3560         (expand_builtin_memmove): Use integer_zerop instead of testing
3561         host_integerp and tree_low_cst_directly.
3562         (expand_builtin_memset): Likewise.
3563         (expand_builtin_memcmp): Likewise (and for integer_onep).
3564         (expand_builtin_strncmp): Likewise.
3565         (fold_builtin): Call the appropriate fold_builtin_foo functions
3566         to optimize memcpy, mempcpy, memmove, strcpy, strncpy, memcmp,
3567         strcmp and strncmp.
3569 2003-10-15  Geoffrey Keating  <geoffk@apple.com>
3571         * config/darwin-protos.h (machopic_non_lazy_ptr_name): Delete
3572         prototype.  Clean up some whitespace.
3573         * config/darwin.c: Use gen_rtx_FOO (...) rather than
3574         gen_rtx (FOO, ...).
3575         (machopic_non_lazy_ptr_name): Make static.
3576         (name_needs_quotes): Allow '.' and '$' unquoted.
3577         (machopic_legitimize_pic_address): Improve codegen in dynamic-no-pic
3578         case.
3580 2003-10-15  Gábor Lóki  <alga@rgai.hu>
3582         * fold-const.c (tree_swap_operands_p): Disable some features
3583         when optimizing for size.
3585 2003-10-15  David Daney  <ddaney@avtrex.com>
3587         * config/mips/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New
3588         * config/mips/mips.h (DWARF_FRAME_REGNUM): Fixed to allow unwind
3589         from leaf functions.
3590         (DWARF_FRAME_RETURN_COLUMN): Ditto.
3591         (SIGNAL_UNWIND_RETURN_COLUMN): New, used
3592         by MD_FALLBACK_FRAME_STATE_FOR.
3593         * testsuite/gcc.dg/cleanup-9.c: Added mips*-*-linux* target.
3595 2003-10-15  Zack Weinberg  <zack@codesourcery.com>
3597         * genmodes.c: Include hashtab.h.
3598         (modes_by_name, hash_mode, eq_mode, struct mode_adjust)
3599         (adj_bytesize, adj_alignment, adj_format, new_adjust)
3600         (_ADD_ADJUST, ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FORMAT)
3601         (print_maybe_const_decl, emit_mode_adjustments): New.
3602         (known_modes): Rename to modes.
3603         (find_mode): Kill class argument; look up in hash table.
3604         (new_mode): Insert into hash table also.
3605         (new_adjust): New.
3606         (reset_float_format, make_partial_integer_mode)
3607         (make_vector_mode): Tweak error reporting.
3608         (reset_float_format): Correct type of fourth argument.
3609         (emit_insn_modes_h): Add #defines to help make mode_size,
3610         mode_base_align, and real_format_for_mode conditionally const.
3611         (emit_mode_size, emit_mode_base_align): Use print_maybe_const_decl.
3612         (emit_real_format_for_mode): Likewise, but temporarily disabled.
3613         (emit_insn_modes_c): Call emit_mode_adjustments.
3614         (main): Initialize modes_by_name.
3615         * Makefile.in: Update dependencies.
3616         * machmode.def: Document EXPR arguments and new ADJUST_* statements.
3617         * machmode.h: Use CONST_MODE_SIZE and CONST_MODE_BASE_ALIGN in
3618         declarations of mode_size and mode_base_align.  Declare
3619         init_adjust_machine_modes.
3620         * toplev.c (backend_init): Call init_adjust_machine_modes.
3622 2003-10-15  Olivier Hainque  <hainque@act-europe.fr>
3624         * genmodes.c (calc_wider_mode): Allocate enough room for all the
3625         entries we'll possibly assign in the sort buffer.
3627 2003-10-15  Ulrich Weigand  <uweigand@de.ibm.com>
3629         * config.gcc (s390x-ibm-tpf*): New target.
3630         * doc/install.texi: Document it.
3631         * config/s390/t-tpf: New file.
3632         * config/s390/tpf.h: New file.
3634 2003-10-15  Hans-Peter Nilsson  <hp@axis.com>
3636         PR target/12598
3637         * config/cris/cris.md (define_split "*mov_sidesi_biap_mem"+1)
3638         (define_splits "*mov_sidesi_mem"+1, "casesi"+9, +10, +11, +12):
3639         Use cris_mem_op and replace_equiv_address, not gen_rtx_MEM.
3640         ("call", "call_value", define_split "*mov_sidesi_mem"+19, +20)
3641         (define_split "*mov_sidesi_mem"+21, +22, +23, +24, +25, +26, +27)
3642         (define_split "*mov_sidesi_mem"+28, +29, +30): Use
3643         replace_equiv_address, not gen_rtx_MEM.
3644         * config/cris/cris.c (cris_mem_op): New match_operator function.
3645         (cris_notice_update_cc): Use replace_equiv_address, not
3646         gen_rtx_MEM.
3647         * config/cris/cris.h (PREDICATE_CODES): Add cris_mem_op.
3649 2003-10-15  Bernardo Innocenti <bernie@develer.com>
3651         * config/m68k/m68k.h (MASK_SEP_DATA, TARGET_SEP_DATA,
3652         MASK_ID_SHARED_LIBRARY, TARGET_ID_SHARED_LIBRARY): Move
3653         definitions after the other flags.
3655 2003-10-14  Ziemowit Laski  <zlaski@apple.com>
3657         * c-parse.in (methoddef, methodproto): Call objc_add_method()
3658         instead of add_method().
3659         * objc/objc-act.c (objc_check_decl): Do not check for
3660         constant_string_type.
3661         (add_method): Rename to objc_add_method().
3662         (really_start_method): Call objc_add_method() instead of
3663         add_method().
3664         * objc/objc-act.h (add_method): Rename to objc_add_method().
3666 2003-10-14  Ulrich Weigand  <uweigand@de.ibm.com>
3668         * config/s390/s390-protos.h (s390_alc_comparison): Add prototype.
3669         (s390_slb_comparison): Likewise.
3670         * config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
3671         New functions.
3672         * config/s390/s390.h (PREDICATE_CODES): Add s390_alc_comparison
3673         and s390_slb_comparison.
3674         * config/s390/s390.md ("*adddi3_31", "*subdi3_31"): Do not use on
3675         zSeries machines.
3676         ("*adddi3_31z", "*subdi3_31z"): New insns.
3677         ("*adddi3_alc_cc", "*adddi3_alc", "*subdi3_slb_cc", "*subdi3_slb",
3678         "*addsi3_alc_cc", "*addsi3_alc", "*subsi3_slb_cc", "*subsi3_slb"):
3679         New insns.
3681 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
3683         * configure.in: Clean up some feedback echoes.
3684         * configure: Regenerate.
3686         * aclocal.m4: Properly quote names of macros being defined.
3688         * config.gcc (am33_2.0-*-linux*): Use t-slibgcc-elf-ver.
3690 2003-10-14  Steve Ellcey  <sje@cup.hp.com>
3692         * config/ia64/ia64.c (ia64_expand_call): Force function address
3693         to DImode.
3694         * config/ia64/ia64.md (call_gp): Put DImode on operand 0.
3696 2003-10-14  Ulrich Weigand  <uweigand@de.ibm.com>
3698         * config/s390/s390.md ("muldf3", "*muldf3", "*muldf3_ibm",
3699         "mulsf3", "*mulsf3", "*mulsf3_ibm"): Do not clobber CC.
3700         ("divdf3", "*divdf3", "*divdf3_ibm", "divsf3", "*divsf3",
3701         "*divsf3_ibm"): Likewise.
3703 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
3705         * config.gcc, config/m68hc11/t-m68hc11-gas: Replace uses of
3706         target_alias with target_noncanonical.
3708 2003-10-14  Geoffrey Keating  <geoffk@apple.com>
3710         * expr.c (block_move_libcall_safe_for_call_parm): Clean up,
3711         and add case for machines where outgoing register parameters
3712         get stack space.
3714         * config/darwin.c (machopic_indirect_data_reference): Use a scratch
3715         register when generating indirect address.
3717 2003-10-14  Richard Earnshaw  <rearnsha@arm.com>
3719         * arm.c (arm_addimm_operand): MODE arguemnt is unused.
3720         * arm.md (cbranchne_decr1): Fix bootstrap warning.
3722 2003-10-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3724         * fixinc/inclhack.def (alpha_pthread_gcc): New fix.
3725         * fixinc/fixincl.x: Regenerate.
3726         * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_GCC_CHECK]: New
3727         testcase.
3728         Fixes PR bootstrap/9330.
3730 2003-10-13  Eric Christopher  <echristo@redhat.com>
3732         * config/frv/frv.c (frv_adjust_field_align): Redo check for
3733         too wide bitfields.
3734         (frv_hard_regno_mode_ok): Add SPR_P and AP_FIRST.
3735         * config/frv/frv.h (FUNCTION_PROFILER): Remove abort call.
3736         (SBSS_SECTION_ASM_OP): Remove.
3737         (EXTRA_SECTIONS): Remove in_sbss.
3738         (EXTRA_SECTION_FUNCTIONS): Remove SBSS_SECTION_FUNCTION.
3739         (SBSS_SECTION_FUNCTION, sbss_section): Remove.
3740         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change sbss_section to
3741         named_section.
3743 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
3745         * Makefile.in, configure.in, config.host, mkheaders.in: Replace
3746         uses of ${target_alias} for directory names (and other places which
3747         won't like the empty string) with ${target_noncanonical}.  Introduce
3748         call early in configure.in to _GCC_TOPLEV_NONCANONICAL_TARGET so it's
3749         available.
3750         * configure: Regenerate.
3752 2003-10-13  Ian Lance Taylor  <ian@wasabisystems.com>
3754         * config/arm/iwmmxt.md (cond_iwmmxt_movsi_insn): New pattern.
3755         * config/arm/arm.md: For splits which rely on conditional moves,
3756         remove ! TARGET_IWMMXT condition.
3758 2003-10-13  David S. Miller  <davem@redhat.com>
3760         * ifcvt.c (num_removed_blocks): Rename to num_true_changes.
3761         (find_cond_trap): Always increment if we emit a conditional
3762         trap insn.
3764 2003-10-13  Zack Weinberg  <zack@codesourcery.com>
3766         * Makefile.in (BUILD_RTL): Replace $(BUILD_PREFIX)insn-modes.o
3767         with min-insn-modes.o.
3768         (STAGESTUFF): Add min-insn-modes.c.
3769         (genobjs): Add genmodes.o.
3770         (print-rtl.o, print-rtl1.o): Depend on $(TM_P_H).
3771         (insn-modes.o): Depend on $(TM_H) not $(GTM_H); also real.h.
3772         (min-insn-modes.c, min-insn-modes.o): New rules.
3773         (s-modes): Also generate min-insn-modes.c.
3774         ($(BUILD_PREFIX_1)insn-modes.o): Kill.
3775         * genmodes.c (struct mode_data): Add format field.
3776         (blank_mode, validate_mode, complete_mode): Update to match.
3777         (make_scalar_mode): Separate into make_int_mode and make_float_mode.
3778         (_SCALAR_MODE): Kill.
3779         (FLOAT_MODE, FRACTIONAL_FLOAT_MODE): Add format argument.
3780         (emit_insn_modes_c_header): Adjust.
3781         (emit_min_insn_modes_c_header, emit_real_format_for_mode)
3782         (emit_min_insn_modes_c): New functions.
3783         (emit_insn_modes_c): Call emit_real_format_for_mode.
3784         (main): Add -m option to generate min-insn-modes.c.
3785         * machmode.h: Update documentation.  Add format argument to
3786         all uses of FLOAT_MODE.
3787         * real.c: Don't define real_format_for_mode here.
3789         * dwarfout.c: Move default definition of PRINT_REG...
3790         * defaults.h: ...here.
3791         * print-rtl.c: Include tm_p.h.
3792         (DEBUG_PRINT_REG, DEBUG_REGISTER_NAMES, debug_reg_names, reg_names):
3793         Kill.
3794         (print_rtx): Use PRINT_REG, not DEBUG_PRINT_REG.  But surround
3795         this entire block with #ifndef GENERATOR_FILE.
3796         * regclass.c: Unconditionally define reg_names.
3797         * config/mips/mips.h, config/rs6000/rs6000.h, config/sh/sh.h
3798         Don't define DEBUG_REGISTER_NAMES.
3799         * config/rs6000/darwin.h: Don't use DEBUG_REGISTER_NAMES in
3800         redefinition of REGISTER_NAMES.
3801         * config/i386/i386.h: Don't define DEBUG_PRINT_REG.
3803         * combine.c: Change all preprocessor conditionals on
3804         EXTRA_CC_MODES to use SELECT_CC_MODE instead; rearrange a bit
3805         for clarity.
3806         * genopinit.c: Remove mention of EXTRA_CC_MODES in comment.
3807         * configure.in: Don't define EXTRA_CC_MODES.
3808         * configure, config.in: Regenerate.
3809         * doc/tm.texi: Remove documentation of EXTRA_CC_MODES.
3811         * config/arc/arc.c, config/m32r/m32r.c, config/sparc/sparc.c:
3812         May assume that GET_MODE_CLASS is accurate for extra CC modes
3813         at all times.
3815         * config/i860/i860.h (INIT_CUMULATIVE_ARGS): Pass correct
3816         number of arguments to aggregate_value_p.
3818         * genmodes.c (RESET_FLOAT_FORMAT, reset_float_format): New.
3819         * machmode.def: Explain ARCH-modes.def.  Document
3820         RESET_FLOAT_FORMAT.  Improve commentary on various mode
3821         clusters.  Do not define OI, PQI, PHI, PSI, PDI, QF, HF, TQF,
3822         XF, or TF modes here.  Remove backward-compatibility
3823         definition of CC.
3825         * config/alpha/alpha-modes.def: New file; define TF mode.
3826         * config/arc/arm-modes.def: Define XF mode.
3827         * config/c4x/c4x-modes.def: Define QF and HF modes.  Unset
3828         float format for SF and DF modes.
3829         * config/dsp16xx/dsp16xx-modes.def: New file; define HF mode.
3830         * config/i386/i386-modes.def: Define XF and TF modes.
3831         * config/i960/i960-modes.def: Define TF mode.
3832         * config/ia64/ia64-modes.def: Define TF and OI modes.
3833         * config/m68k/m68k-modes.def: New file; define XF mode.
3834         * config/mips/mips-modes.def: New file; define TF mode, reset
3835         formats for SF and DF modes.
3836         * config/pa/pa-modes.def: Define TF mode.
3837         * config/rs6000/rs6000.c: Define TF and PSI modes.
3838         * config/s390/s390-modes.def: Define OI mode.
3839         * config/sh/sh-modes.def: New file; define PSI mode.
3840         * config/sparc/sparc-modes.def: Define TF mode.
3841         * config/vax/vax-modes.def: New file; reset formats for SF and
3842         DF modes.
3844         * config/c4x/c4x.c (c4x_override_options): No need to mess
3845         with real_format_for_mode or set REAL_MODE_FORMATs.
3846         (c4x_immed_int_constant): Don't apply GET_MODE_CLASS to rtx
3847         variable.
3848         * config/i386/i386.c (override_options): No need to set
3849         REAL_MODE_FORMATs here.
3850         * config/i960/i960.c (i960_initialize): Likewise.
3851         * config/m68k/m68k.c (m68k_override_options): Likewise.
3852         * config/ia64/ia64.c (ia64_override_options): Set REAL_MODE_FORMAT
3853         for TFmode only if not the default.
3854         * config/mips/mips.c (override_options): Likewise.
3855         * config/vax/vax.c (override_optionms): Set REAL_MODE_FORMAT for
3856         DFmode only if not the default.
3858         * config/i370/i370.h (RET_REG): Don't consider TFmode.
3859         * config/m68hc11/m68hc11.c (print_operand): Don't consider XFmode.
3860         * config/dsp16xx/dsp16xx.c (hard_regno_mode_ok): #if 0 out use
3861         of modes that don't appear anywhere in the machine description.
3863         * config/arc/arc-modes.def, config/arm/arm-modes.def
3864         * config/c4x/c4x-modes.def, config/frv/frv-modes.def
3865         * config/i386/i386-modes.def, config/i960/i960-modes.def
3866         * config/ia64/ia64-modes.def, config/mmix/mmix-modes.def
3867         * config/pa/pa-modes.def, config/pdp11/pdp11-modes.def
3868         * config/rs6000/rs6000-modes.def, config/s390/s390-modes.def
3869         * config/sparc/sparc-modes.def: Convert to new style for
3870         declaring extra CC modes.
3872 2003-10-13  Zack Weinberg  <zack@codesourcery.com>
3874         * cpplex.c (_cpp_clean_line): In the common case of a line
3875         with no trigraphs and no \-newline, avoid writing to memory.
3876         (_cpp_skip_block_comment): Use a local 'cur' pointer instead
3877         of the buffer member.  Make c an uchar to avoid unnecessary
3878         sign extensions.
3880 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
3882         * configure.in: Remove unnecessary test.
3883         * configure: Regenerate.
3885         * configure.in: Fix grammatical error.  Move UWIN host error to...
3886         * config.host: Here.
3887         * configure: Regenerate.
3889 2003-10-13  Andreas Krebbel  <krebbel1@de.ibm.com>
3891         * config/s390/s390.md ("*fmadddf4", "*fmsubdf4", "*fmaddsf4",
3892         "*fmsubsf4"): Insns are now dependent on TARGET_FUSED_MADD instead
3893         of flag_unsafe_math_optimizations.
3894         * config/s390/s390.h ("MASK_NO_FUSED_MADD", "TARGET_NO_FUSED_MADD",
3895         "TARGET_FUSED_MADD", "TARGET_SWITCHES"): Introduced new target flags
3896         fused-madd and no-fused-madd.
3897         * doc/invoke.texi: Documented the new options fused-madd and
3898         no-fused-madd for S/390.
3900 2003-10-14  Alan Modra  <amodra@bigpond.net.au>
3902         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Choose
3903         MASK_ALIGN_NATURAL if rs6000_alignment_string not given.  Don't
3904         assign DEFAULT_ABI.
3905         (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Update comment.
3906         * config/rs6000/rs6000.c: Formatting.
3907         (rs6000_parse_alignment_option): Only set rs6000_alignment_flags
3908         when rs6000_alignment_string given.
3910 2003-10-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
3912         PR target/12538
3913         * config/sparc/sparc.c (MUST_SAVE_REGISTER): Delete.
3914         (sparc_flat_must_save_register_p): New function to decide whether
3915         a register must be saved/restored in the function prologue/epilogue.
3916         (sparc_flat_compute_frame_size): Use it instead of MUST_SAVE_REGISTER.
3918 2003-10-12  Steven Bosscher  <steven@gcc.gnu.org>
3920         * config/avr/avr.c, config/avr/avr-protos.h: Convert to
3921         ISO C90 function declarations and definitions.
3922         * config/sh/sh.c, config/sh/sh-protos.h: Likewise.
3924 2003-10-12  Nathanael Nerode  <neroden@gcc.gnu.org>
3926         * config.gcc (*-*-freebsd*): Use tm_defines instead of tiny
3927         config files which do the same thing.
3928         * config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
3929         config/freebsd6.h: Remove now unnecessary files.
3931 2003-10-12  Steven Bosscher  <steven@gcc.gnu.org>
3933         * c-common.c (c_common_truthvalue_conversion): Warn if the
3934         address of a non-weak function is used as a truth value.
3936 2003-10-12  Kazu Hirata  <kazu@cs.umass.edu>
3938         * config/h8300/h8300.c (WORD_REG_USED): Use SP_REG instead of
3939         a literal.
3940         * config/h8300/h8300.h (REGNO_OK_FOR_BASE_P): Use MAC_REG
3941         instead of a literal.
3943 2003-10-12  Hans-Peter Nilsson  <hp@bitrange.com>
3945         * doc/extend.texi (Function Attributes): Mention the exceptional
3946         path for noreturn-marked functions.
3948 2003-10-12  Jan Hubicka  <jh@suse.cz>
3950         * cgraphunit.c (cgraph_decide_inlining): Fix uninitialized variable
3951         warning.
3953 2003-10-12  Danny Smith  <dannysmith@users.sourceforge.net>
3955         * config/i386/i386.c (x86_this_parameter): Fix typo.
3957 203-10-11  Jan Hubicka  <jh@suse.cz>
3959         * Makefile.in (web.o): New.
3960         * web.c: New file.
3961         * rtl.h (web_main): Declare.
3962         * timervar.def (TV_WEB): New.
3963         * toplev.c (dump_file_index, dump_file_info): Add DFI_web.
3964         (rest_of_hanle_web): New.
3965         (flag_web): New static variable.
3966         (lang_independent_options): Add "web".
3967         (rest_of_compilation): Call rest_of_handle_web.
3968         * invoke.texi (-fweb): Document.
3969         * common.opt (fweb): New.
3970         * flags.h (flag_web): New.
3971         * opts.c (decode_options): Set flag_web at -O3.
3973         * passes.texi (web construction):  Document.
3974         * invoke.texi (-O3): Document that -fweb is enabled.
3976         * regrename.c (regrename_optimize): Deal better with situation when
3977         replacement failed.
3979         * sched-ebb.c: Include params.h and profile.h
3980         (schedule_ebbs):  Use tracer parameters to discover superblocks
3981         * Makefile.in (sched-ebb.o):  Add dependencies.
3983 2003-10-11  Roger Sayle  <roger@eyesopen.com>
3985         * fold-const.c (negate_mathfn_p): New function to determine whether
3986         a built-in mathematical function is sign preserving, f(-x) == -f(x).
3987         Add support for BUILT_IN_ASIN, BUILT_IN_ASINF and BUILT_IN_ASINL.
3988         (tree_swap_operands_p): Change API to take an additional argument
3989         indicating that the swapped operands evaluate in reverse order.
3990         Canonicalize VAR_DECLs and PARM_DECLs last if we can, i.e. neither
3991         operand side-effects or we don't care about flag_evaluation_order.
3992         (reorder_operands_p): New function to check whether its safe to
3993         evaluate the given operands in reverse order.
3994         (negate_expr_p):  We can always negate integer constants unless
3995         we honor -ftrapv and the signed type would overflow.  Only allow
3996         -(A-B) into B-A if reorder_operands_p says that its OK.  Allow
3997         negation of COMPLEX_CST if both real and imaginary parts can be
3998         negated.  Allow negation through floating point extensions and
3999         sign-preserving built-in functions.
4000         (negate_expr):  Move the code to negate integers from "fold" to
4001         here.  Always negate integer constants unless we honor -ftrapv
4002         and the signed type would overflow.  Always negate real constants
4003         unless we honor -ftrapping-math.  Only convert -(A-B) into B-A
4004         if allowed by reorder_operands_p.  Add support for COMPLEX_CST.
4005         Optimize negation through floating point extensions and
4006         sign-preserving built-in functions (as defined by negate_mathfn_p).
4007         (fold): Adjust calls to tree_swap_operands_p.
4008         (fold <NEGATE_EXPR>): Move the remaining negation optimizations
4009         to negate_expr_p/negate_expr.
4010         (fold <MINUS_EXPR>): Use reorder_operands_p to check whether we're
4011         allowed to convert (-A) - B into (-B) - A.
4013 2003-10-11  Roger Sayle  <roger@eyesopen.com>
4015         * builtins.c (expand_builtin_strcmp): Defend against the possibility
4016         that gen_cmpstrsi may fail: Stabilize the argument list against
4017         re-evaluation and expand the library call directly using this saved
4018         argument list if a cmpstrsi sequence can't be generated.
4019         (expand_builtin_strncmp): Likewise.
4021         * config/i386/i386.md (cmpstrsi, movstrsi): Disable with -Os.
4023 2003-10-11  Roger Sayle  <roger@eyesopen.com>
4025         PR optimization/12260
4026         * simplify-rtx.c (simplify_unary_operation): Simplify all unary
4027         operations through CONST nodes.  Optimize (neg (plus X C)) as
4028         (minus -C X) for constant values C.
4029         (simplify_binary_operation): Optimize (minus (neg X) C) as
4030         (minus -C X) for constant values C.
4031         (simplify_plus_minus): Avoid creating (neg (const (plus X C)),
4032         instead create (minus -C X).
4034 2003-10-11  Roger Sayle  <roger@eyesopen.com>
4036         * expr.c (expand_expr <PLUS_EXPR>): Let expand_operands call
4037         safe_from_p for us, once it chooses an evaluation order.
4038         (expand_expr <MULT_EXPR>): Likewise.
4039         (expand_expr <MIN_EXPR> <MAX_EXPR>): Likewise.  If expand_operands
4040         places the second operand in "target", swap the operands.
4041         (do_store_flag): Let expand_operands call safe_from_p for us.
4043 2003-10-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
4045         PR optimization/12544
4046         * function.c (put_var_into_stack): Don't generate ADDRESSOFs
4047         for DECL_NONLOCAL decls.
4049 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
4051         * expr.c: Follow spelling conventions.
4052         * final.c: Likewise.
4053         * optabs.c: Likewise.
4054         * sched-deps.c: Likewise.
4055         * sdbout.c: Likewise.
4057 Sat Oct 11 12:24:23 CEST 2003  Jan Hubicka  <jh@suse.cz>
4059         * varasm.c (notice_global_symbol):  Fix handling of variables; avoid
4060         re-computing of variable.
4062 2003-10-11  Richard Henderson  <rth@redhat.com>
4064         * config/alpha/alpha.c (alpha_return_in_memory): Rename from
4065         return_in_memory, make static, change signature to match target hook.
4066         (alpha_setup_incoming_varargs): Make static, change signature to
4067         match target hook, add code for vms and unicos.
4068         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
4069         TARGET_PROMOTE_PROTOTYPES, TARGET_STRUCT_VALUE_RTX,
4070         TARGET_RETURN_IN_MEMORY, TARGET_SETUP_INCOMING_VARARGS,
4071         TARGET_STRICT_ARGUMENT_NAMING,
4072         TARGET_PRETEND_OUTGOING_VARARGS_NAMED): New.
4073         * config/alpha/alpha-protos.h: Update.
4074         * config/alpha/alpha.h (PROMOTE_FUNCTION_ARGS,
4075         PROMOTE_FUNCTION_RETURN, RETURN_IN_MEMORY,
4076         SETUP_INCOMING_VARARGS): Remove.
4077         * config/alpha/unicosmk.h (SETUP_INCOMING_VARARGS): Remove.
4078         * config/alpha/vms.h (SETUP_INCOMING_VARARGS): Remove.
4080 2003-10-11  Ian Lance Taylor  <ian@wasabisystems.com>
4082         * config/arm/arm.c (arm_regno_class): Handle IWMMXT_GR_REGS.
4084 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
4086         * config/m68k/lb1sf68.asm: Follow spelling conventions.
4087         * config/m68k/m68k.c: Likewise.
4088         * config/m68k/m68k.h: Likewise.
4089         * config/m68k/m68k.md: Likewise.
4091 2003-10-11  Roger Sayle  <roger@eyesopen.com>
4093         * builtins.c (expand_builtin_memcpy): Optimize case when the two
4094         pointer arguments are the equal, non-volatile and side-effect free.
4095         (expand_builtin_mempcpy): Likewise.
4096         (expand_builtin_memmove): Likewise.
4097         (expand_builtin_strcpy): Likewise.
4098         (expand_builtin_memcmp): Likewise.
4099         (expand_builtin_strcmp): Likewise.
4100         (expand_builtin_strncmp): Likewise.
4102 2003-10-11  Roger Sayle  <roger@eyesopen.com>
4104         * combine.c (apply_distributive_law): Enable "distributive" floating
4105         point optimizations with -funsafe-math-optimizations.
4107 2003-10-11  Andrew Pinski <pinskia@physics.uc.edu>
4109         * genmodes.c (emit_mode_mask) Change MASK to MODE_MASK.
4111 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
4113         * config/m68k/m68k-protos.h: Remove the prototype for
4114         finalize_pic.
4116 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
4118         * config/m68k/m68k.c: Fix comment typos.
4120 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
4122         * config/m68k/m68k-protos.h (use_return_insn): Change return type from
4123         int to bool.
4124         * config/m68k/m68k.c (struct m68k_frame): Add funcdef_no member.
4125         (current_frame): New global var.
4126         (m68k_compute_frame_layout): Cache computations in current_frame.
4127         (m68k_initial_elimination_offset): Use values from current_frame
4128         instead of recomputing them.
4129         (use_return_insn): Likewise.
4130         (m68k_output_function_prologue): Likewise.
4131         (m68k_output_function_epilogue): Likewise.
4132         * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Fold __PIC__ handling
4133         inside the block for __pic__.
4135 2003-10-11  Peter Barada <peter@baradas.org>
4136             Bernardo Innocenti  <bernie@develer.com>
4138         * config/m68k/m68k.c (m68k_frame): Move before protos referencing it.
4139         (m68k_save_reg): Add boolean parameter `interrupt_handler'.
4140         (m68k_interrupt_function_p): New function.
4141         (m68k_handle_fndecl_attribute): Ditto.
4142         (m68k_compute_frame_layout): Ditto.
4143         (m68k_attribute_table): Define back-end specific attributes.
4144         (m68k_output_function_epilogue): Emit RTE instruction for interrupt
4145         functions.
4147 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
4149         * config/m68k/t-uclinux: New target Makefile fragment.
4150         * config/m68k/uclinux.h: New target macro file.
4151         * config.gcc (m68k-*-uclinux): New target definition.
4153 2003-10-10  Roger Sayle  <roger@eyesopen.com>
4155         * builtins.c (builtin_mathfn_code): Generalize to check whether
4156         the call is to any built-in function by comparing the call's
4157         argument list against the builtin decl's function type.
4159 2003-10-10  Roger Sayle  <roger@eyesopen.com>
4161         * cse.c (constant_pool_entries_regcost): New global variable to
4162         hold the register cost component of constant_pool_entries_cost.
4163         (fold_rtx): Calculate constant_pool_entries_regcost at the same
4164         time as constant_pool_entries_cost.
4165         (cse_insn): Set both src_folded_cost and src_folded_regcost from
4166         constant_pool_entries_cost and constant_pool_entries_regcost.
4167         (cse_main): Initialize constant_pool_entries_regcost to zero.
4169         * optabs.c (expand_unop): Attach a REG_EQUAL note describing
4170         the semantics of the sequence of bit operations used to negate
4171         a floating-point value.
4172         (expand_abs_nojump): Likewise attach a REG_EQUAL note describing
4173         the semantics of the bit operations used to abs a floating point
4174         value.
4176 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
4177             Paul Dale  <pauli@snapgear.com>
4179         * config/m68k/lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__
4180         support.
4181         * config/m68k/m68k-none.h (ASM_SPEC): Pass --pcrel to assembler on
4182         -fpic, -fPIC, -msep-data and -mid-shared-library.
4183         * config/m68k/m68k.c (m68k_library_id_string): New global variable.
4184         (override_options): Add -msep-data and -mshared-library-id support.
4185         (m68k_output_function_prologue): Generate code to load A5 for
4186         TARGET_ID_SHARED_LIBRARY and TARGET_SEP_DATA.
4187         (m68k_output_mi_thunk): Emit indirect jump on TARGET_ID_SHARED_LIBRARY.
4188         (m68k_output_pic_call): New function.
4189         * gcc/config/m68k/m68k.h (TARGET_SEP_DATA): New target flag.
4190         (TARGET_ID_SHARED_LIBRARY): Ditto.
4191         (TARGET_SWITCHES): Add switches for -mid-shared-library and -msep-data.
4192         * gcc/config/m68k/m68k.md (call): Call m68k_output_pic_call().
4193         (call_value): Likewise.
4195 2003-10-10  Zack Weinberg  <zack@codesourcery.com>
4197         * gengenrtl.c (find_formats, genheader): Make i an unsigned
4198         int, remove cast of NUM_RTX_CODE.
4199         * machmode.h: Make the HAVE_MACHINE_MODES #ifdef encompass the
4200         entire file.  Remove the #ifs on GET_MODE_MASK etc and
4201         GET_MODE_WIDER_MODE etc.
4203 2003-10-10  Eric Christopher  <echristo@redhat.com>
4205         * lcm.c (optimize_mode_switching): Change NORMAL_MODE
4206         to MODE_ENTRY and MODE_EXIT. Add MODE_AFTER for insns
4207         that set mode.
4208         * config/sh/sh.h (MODE_ENTRY): New macro.
4209         (MODE_EXIT): Ditto.
4210         (MODE_AFTER): Ditto.
4211         * config/sh/sh.md: Change for MODE_AFTER. Add
4212         fp_set attribute.
4213         * doc/tm.texi: Document MODE_AFTER, MODE_ENTRY, and MODE_EXIT.
4215 2003-10-10  Zack Weinberg  <zack@codesourcery.com>
4217         * genmodes.c, mode-classes.def: New files.
4218         * machmode.def: Rewritten to genmodes.c interface.
4219         * Makefile.in (extra_modes_file): New substitution variable.
4220         (MACHMODE_H): No longer includes machmode.def or
4221         @extra_modes_file@; instead, mode-classes.def and insn-modes.h.
4222         (BUILD_RTL): Add $(BUILD_PREFIX)insn-modes.o.
4223         (OBJS-common): Add insn-modes.o.
4224         (STAGESTUFF): Add insn-modes.c, insn-modes.h, s-modes, and
4225         genmodes$(build_exeext).
4226         (insn-modes.o, insn-modes.c, insn-modes.h, s-modes, genmodes.o,
4227         genmodes$(build_exeext), $(BUILD_PREFIX_1)insn-modes.o): New targets.
4228         (s-genrtl): Don't depend on $(RTL_BASE_H).
4229         (gengenrtl.o): Don't depend on coretypes.h, $(GTM_H), real.h,
4230         or $(RTL_BASE_H); just rtl.def.
4231         * gengenrtl.c: Don't include coretypes.h, tm.h, rtl.h, or
4232         real.h.  Give fake definition of CONST_DOUBLE_FORMAT and
4233         substitute definition of NUM_RTX_CODE.  Add casts to avoid
4234         warnings.
4235         * machmode.h: Include insn-modes.h, not machmode.def.  Include
4236         mode-classes.def to define enum mode_class.  Tweak definitions
4237         of GET_MODE_CLASS, GET_MODE_SIZE, GET_MODE_BITSIZE, GET_MODE_MASK,
4238         GET_MODE_INNER, GET_MODE_WIDER_MODE, GET_CLASS_NARROWEST_MODE.
4239         (inner_mode_array): Renamed mode_inner.
4240         (mode_base_align): New.
4241         * rtl.c (mode_name, mode_class, mode_bitsize, mode_size,
4242         mode_unit_size, mode_wider_mode, mode_mask_array,
4243         inner_mode_array, class_narrowest_mode): Delete definitions.
4244         * stor-layout.c (get_mode_alignment): Use mode_base_align.
4245         * real.h: Use MIN_MODE_FLOAT and MAX_MODE_FLOAT, not QFmode
4246         and TFmode, in real_format_for_mode and REAL_MODE_FORMAT.
4248         * config/ip2k/ip2k.h, config/iq2000/iq2000.h:
4249         No need to define BITS_PER_UNIT.
4251 2003-10-10  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4253         * config/ia64/ia64.c (ia64_vms_init_libfuncs): New function.
4254         (ia64_output_function_prologue): Only write .prologue if --with-gnu-as.
4255         (ia64_initialize_trampoline): If not using GAS, declare trampoline
4256         as global.
4257         * config/ia64/ia64.h (ASM_APP_ON, ASM_APP_OFF): Add vers for not GAS.
4258         (ASM_OUTPUT_DEBUG_LABEL): Likewise.
4260         * stor-layout.c (compute_record_mode): Don't force BLKmode if
4261         field is zero-length BLKmode.
4262         * expr.c (expand_expr, case COMPONENT_REF): Handle case of BLKmode
4263         zero-size references.
4265         * combine.c (distribute_links): Properly test for REG being set.
4267         * config/alpha/alpha.c (alpha_expand_block_mode): Don't use
4268         gen_lowpart and company except for REG.
4270 2003-10-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4272         * pa64-hpux.h (LINK_SPEC): Use `-z' option with HP ld.
4274 2003-10-10  Nathanael Nerode  <neroden@gcc.gnu.org>
4276         * config.gcc (mips*-*-netbsd*): Remove content-free line.
4278 2003-10-10  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
4280         * gcov-io.h: Check BITS_PER_UNIT when defining gcov_unsigned_t,
4281         gcov_position_t and gcov_type.
4283 2003-10-09  Kaz Kojima  <kkojima@gcc.gnu.org>
4285         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
4286         * configure: Regenerate.
4288 2003-10-09  Kazu Hirata  <kazu@cs.umass.edu>
4290         * config/h8300/h8300.md (define_asm_attributes): Specify
4291         the length of an asm insn more precisely.
4293 2003-10-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4295         * config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define.
4297 2003-10-09  Bob Wilson  <bob.wilson@acm.org>
4299         * config/xtensa/xtensa.c (xtensa_dbx_register_number): Change first
4300         FP register number to 48 and MAC16 accumulator to 0x210.
4302 2003-10-09  Nathanael Nerode  <neroden@gcc.gnu.org>
4304         * config.gcc: Remove redundant thread_file setting clauses for
4305         various *-*-linux* targets.
4307 2003-10-09  Kazu Hirata  <kazu@cs.umass.edu>
4309         * config/h8300/h8300.md (define_asm_attributes): New.
4311 2003-10-09  Roger Sayle  <roger@eyesopen.com>
4313         * optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note
4314         to the comparison, as emit_libcall_block calls copy_rtx on equiv.
4316 2003-10-09  Dorit Naishlos  <dorit@il.ibm.com>
4318         * haifa-sched.c (ok_for_early_schedule): New function.
4319         (early_queue_to_ready): New function.
4320         (schedule_block): Allow early removal of insns from Q.
4321         (schedule_insn): Update INSN_TICK in case of premature
4322         issue.
4323         * common.opt (sched_stalled_insns): New flag.
4324         (sched_stalled_insns_dep): New flag.
4325         * flags.h: Same above flags.
4326         * opts.c: Same as above.
4327         * toplev.c: Same as above.
4328         * target.h (targetm.sched.is_costly_dependence): New
4329         hook.
4330         * target-def.h: Same as above.
4331         * config/rs6000/rs6000.h: (rs6000_sched_costly_dep):
4332         Support new flag -msched-costly-dep.
4333         (DEFAULT_SCHED_COSTLY_DEP): Define.
4334         * config/rs6000/rs6000.c:
4335         (rs6000_is_costly_dependence): New function.
4336         (is_load_insn, is_store_insn): New functions.
4337         (is_load_insn1, is_store_insn1, is_mem_ref): New
4338         functions.
4339         * doc/invoke.texi (-fsched-stalled-insns-dep)
4340         (-fsched-stalled-insns, -msched-costly-dep): Document
4341         options.
4342         * doc/tm.texi (is_costly_dependence): Define new
4343         scheduler target hook.
4345 2003-10-09  Jason Merrill  <jason@redhat.com>
4347         PR c++/6392
4348         * c-common.c (c_build_qualified_type): Look through arrays first.
4349         (c_apply_type_quals_to_decl): Look through arrays.
4351         * c-common.c (c_apply_type_quals_to_decl): Unset TREE_READONLY for
4352         types with constructors.
4354         * coverage.c (build_ctr_info_value): Use build_decl to make a
4355         VAR_DECL.
4356         (create_coverage): Likewise.
4358         * stmt.c (resolve_asm_operand_names): Call check_unique_operand_names
4359         here.
4360         (expand_asm_operands): Not here.
4361         (parse_input_constraint): No longer static.
4362         * tree.h: Declare it.
4364 2003-10-08  Kaz Kojima  <kkojima@gcc.gnu.org>
4366         * config/sh/t-linux (SHLIB_LINK): Override to use a linker script
4367         libgcc_s.so.
4368         (SHLIB_INSTALL): Likewise.
4370 2003-10-08  Nathanael Nerode  <neroden@gcc.gnu.org>
4372         * doc/install.texi: Remove reference to removed 'pthreads' thread
4373         option.
4375 2003-10-08  Aldy Hernandez  <aldyh@redhat.com>
4377         * config/rs6000/rs6000.md ("abssi2_isel"): Add early clobber to
4378         operand 2.
4380 2003-10-08  Nathanael Nerode  <neroden@gcc.gnu.org>
4382         * config.gcc: Don't accept --enable-threads=pthreads.  Clean
4383         up related case statements.
4384         * configure.in: Don't accept --enable-threads=pthreads,
4385         decosf1, mach, or os2 (none of which work anyway).  Alphabetize
4386         supported thread files in case clause.
4387         * configure: Regenerate.
4389 2003-10-08  Geoffrey Keating  <geoffk@apple.com>
4391         * function.c (pad_to_arg_alignment): Move 'boundary_in_bytes'
4392         definition to above SPARC_STACK_BOUNDARY_HACK.
4394 2003-10-08  Jason Merrill  <jason@redhat.com>
4396         * c-pretty-print.c (pp_c_postfix_expression)
4397         <COMPOUND_LITERAL_EXPR>: Fix thinko.
4399 2003-10-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4401         * mklibgcc.in: Don't hide undefined or typeless symbols.
4403 2003-10-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4405         PR optimization/12142
4406         * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
4407         uses of the register in the SET_SRC.  Remove unnecessary argument.
4408         * pa.c (legitimize_pic_address): Before reload, use a scratch register
4409         for the intermediate result in loading the address of a SYMBOL_REF.
4410         Set the MEM_NOTRAP_P flag for the MEM.  Add a REG_EQUAL to the insn
4411         which loads the SYMBOL_REF address.
4413 2003-10-08  Timo Kokkonen  <tjko@iki.fi>
4414             Eric Botcazou  <ebotcazou@libertysurf.fr>
4416         PR bootstrap/12490
4417         * scan-decls.c (MAX_EXTERN_C_BRACES): New preprocessor constant
4418         to define the size of the extern_C_braces array.  Set it to 200.
4419         (scan_decls): Abort when extern_C_braces_length is out-of-bounds.
4421 2003-10-08  Carlo Wood  <carlo@alinoe.com>
4423         * Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand
4424         a space after the -o option.  flex 2.5.31 understands both, with
4425         and without the space. Removed that space.
4427 2003-10-08  Richard Sandiford  <rsandifo@redhat.com>
4429         * config/mips/mips.c (mips_frame_info): Add cprestore_size field.
4430         (compute_frame_size): Initialize it.  Remove the .cprestore slot
4431         from args_size.
4432         (mips_output_function_prologue): Simplify accordingly.
4433         (mips_debugger_offset): Change the mips16 frame pointer offset from
4434         current_function_outgoing_args to cfun->machine->frame.args_size.
4435         (mips_initial_elimination_offset): Likewise.
4436         (mips_expand_prologue): Likewise.
4437         (mips_expand_epilogue): Likewise.
4439 2003-10-08  Richard Sandiford  <rsandifo@redhat.com>
4441         * config/mips/mips.h (EXTRA_CONSTRAINT): Add 'W' constraint.
4442         (EXTRA_MEMORY_CONSTRAINT): Define.
4443         (CAN_ELIMINATE): Remove lwu workaround.
4444         * config/mips/mips.md (*zero_extendsidi2_mem): Enable for mips16 too.
4445         Use a 'W' constraint for the source operand.
4447 2003-10-08  Kazu Hirata  <kazu@cs.umass.edu>
4449         * genopinit.c (main): Output code to declare undefined
4450         variables.
4452 2003-10-07  Kelley Cook  <kcook@gcc.gnu.org>
4454         * gengtype-lex.l: Remove -Wtraditional cruft.
4455         * Makefile.in (gengtype-lex.c): Likewise.
4457 2003-10-07  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4459         * cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.
4461 2003-10-07  Jason Merrill  <jason@redhat.com>
4463         PR c++/12519
4464         * c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if
4465         it isn't a decl.
4467 2003-10-07  Alexandre Oliva  <aoliva@redhat.com>
4469         * gcc.c (cpp_options): Only pass -fworking-directory for -g* if
4470         not overridden.
4471         Fixes PR bootstrap/12173.
4473 2003-10-07  Zack Weinberg  <zack@codesourcery.com>
4475         * errors.c: Don't include coretypes.h or tm.h.
4476         (trim_filename): Use IS_DIR_SEPARATOR.
4477         * Makefile.in: Update dependencies of errors.o and
4478         $(BUILD_PREFIX_1)errors.o.
4480 2003-10-07  Geoffrey Keating  <geoffk@apple.com>
4482         * function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into
4483         account when aligning arguments.
4484         * calls.c (STACK_POINTER_OFFSET): Move default from here ...
4485         * defaults.h (STACK_POINTER_OFFSET): ... to here.
4486         * config/sparc/sparc.h (STACK_BOUNDARY): Add comment about how
4487         it's wrong when TARGET_ARCH64 && TARGET_STACK_BIAS.
4488         (SPARC_STACK_BOUNDARY_HACK): Define.
4489         * config/rs6000/rs6000.c (function_arg): On non-SVR4 systems,
4490         arrange for vector parameters to varargs functions to be passed
4491         in both memory and GPRs when appropriate.
4492         (rs6000_va_arg): Vector arguments passed in memory are 16-byte
4493         aligned.
4495         * hooks.c (hook_bool_tree_true): New.
4496         (hook_rtx_tree_int_null): New.
4497         (hook_rtx_rtx_null): Use NULL, not 0.
4498         * hooks.h: Add 'extern' to everything.
4499         (hook_bool_tree_true): New.
4500         (hook_rtx_tree_int_null): New.
4501         * targhooks.c (hook_bool_CUMULATIVE_ARGS_true): New.
4502         * targhooks.h (hook_bool_CUMULATIVE_ARGS_true): New.
4503         * config/rs6000/rs6000-protos.h (setup_incoming_varargs): Remove
4504         prototype.
4505         * config/rs6000/rs6000.c (rs6000_return_in_memory): New.
4506         (setup_incoming_varargs): Prototype.
4507         (TARGET_PROMOTE_FUNCTION_ARGS): Define.
4508         (TARGET_PROMOTE_FUNCTION_RETURN): Define.
4509         (TARGET_STRUCT_VALUE_RTX): Define.
4510         (TARGET_RETURN_IN_MEMORY): Define.
4511         (TARGET_SETUP_INCOMING_VARARGS): Define.
4512         (TARGET_STRICT_ARGUMENT_NAMING): Define.
4513         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Define.
4514         (init_cumulative_args): Use rs6000_return_in_memory.
4515         (setup_incoming_varargs): Make 'static'.
4516         * config/rs6000/rs6000.h (PROMOTE_FUNCTION_ARGS): Delete.
4517         (PROMOTE_FUNCTION_RETURN): Delete.
4518         (STRUCT_VALUE): Delete.
4519         (RETURN_IN_MEMORY): Delete.
4520         (SETUP_INCOMING_VARARGS): Delete.
4522 2003-10-07  Gerald Pfeifer  <gerald@pfeifer.com>
4524         * doc/invoke.texi (Warning Options): Simplify and clarify the
4525         descriptions of -Wnonnull and -Winit-self.
4527 2003-10-07  Richard Earnshaw  <rearnsha@arm.com>
4529         * optabs.c (init_intraclass_conv_libfuncs): Fix order of array
4530         indicees for floating-point conversersion libcalls.
4532 2003-10-07  Nathanael Nerode  <neroden@gcc.gnu.org>
4534         * Makefile.in: Add more comments separating large conceptually
4535         separate sections.
4537         * configure.in: Clean up thread file logic.
4538         * configure: Regenerate.
4540 2003-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
4542         * config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
4543         (switch_to_section): Handle in_readonly_data.
4544         * config/i386/winnt.c (i386_pe_asm_named_section): Handle
4545         readonly data.
4547 2003-10-07  Richard Earnshaw  <rearnsha@arm.com>
4549         * arm.md (cmpsi2_addneg): New ARM pattern. Add peephole2 to generate
4550         it.
4551         (cbranchne_decr1): New Thumb pattern.
4552         * arm.c (arm_addimm_operand): New insn predicate.
4553         * arm-protos.h: Add a prototype for it.
4554         * arm.h (PREDICATE_CODES): Add it.
4556 2003-10-07  Dorit Naishlos <dorit@il.ibm.com>
4558         * sched-int.h (sched_info): New field
4559         sched_max_insns_priority.
4560         * sched-rgn.c (init_ready_list): Add invocations to
4561         targetm.sched.adjust_priority.
4562         (sched_max_insns_priority): Init new field.
4563         * sched-ebb.c (sched_max_insns_priority): Init new field.
4564         * haifa-sched.c (set_priorities): Set
4565         sched_info->sched_max_insns_priority.
4566         * config/rs6000/rs6000.h:
4567         (rs6000_sched_restricted_insns_priority_str): Support new
4568         flag -mprioritize-restricted-insns.
4569         (DEFAULT_RESTRICTED_INSNS_PRIORITY): Define.
4570         * config/rs6000/rs6000.c (is_dispatch_slot_restricted): New
4571         function.
4572         (rs6000_adjust_priority): Change priority of restricted
4573         insns, using above new function and new flag.
4574         * doc/invoke.texi (-mprioritize-restricted-insns): Document
4575         new option.
4577 2003-10-07  Zack Weinberg  <zack@codesourcery.com>
4579         * expr.c (cmpstr_optab, cmpmem_optab): New.
4580         * genopinit.c: Initialize them.
4581         * optabs.h: Declare them.
4582         * optabs.c (init_optabs): Clear them.
4583         (prepare_cmp_insn):  Use cmpstr_optab and cmpmem_optab to find
4584         block memory compare insns, not conditional chains.  Restructure
4585         the fallback generation of a call to memcmp/bcmp for better
4586         readability.
4588 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
4590         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.
4591         (mips_save_restore_fn): New typedef.
4592         (mips_add_large_offset_to_sp, mips_emit_frame_related_store): Remove.
4593         (mips_set_frame_expr, mips_frame_set): Move above prologue code.
4594         (save_restore_insns): Remove, replacing with...
4595         (mips_save_restore_reg, mips_for_each_saved_reg): ...these new fns.
4596         (mips_save_reg, mips_restore_reg): New function.
4597         (mips_expand_prologue, mips_expand_epilogue): Rework.
4598         * config/mips/mips.h (MIPS_TEMP1_REGNUM, MIPS_TEMP2_REGNUM): Remove.
4599         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): New macros.
4600         (MIPS_PROLOGUE_TEMP, MIPS_EPILOGUE_TEMP): New macros.
4602 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
4604         * config/mips/mips.c (mips_expand_prologue): Remove unused
4605         traversal of function arguments.
4607 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
4609         * doc/invoke.texi: Remove documentation of -mentry.
4610         * config/mips/mips.c (mips_entry_string, mips_entry): Remove.
4611         (override_options, mips_save_reg_p): Remove handling.
4612         (compute_frame_size, mips_output_function_prologue): Likewise.
4613         (mips_expand_prologue, mips_expand_epilogue): Likewise.
4614         * config/mips/mips.h (mips_entry_string): Remove declaration.
4615         (TARGET_OPTIONS): Remove -mentry.
4616         * config/mips/mips16.S: Remove mention of -mentry.
4618 2003-10-06  Zack Weinberg  <zack@codesourcery.com>
4620         * libfuncs.h (LTI_extendsfdf2, LTI_extendsfxf2, LTI_extendsftf2)
4621         (LTI_extenddfxf2, LTI_extenddftf2, LTI_truncdfsf2, LTI_truncxfsf2)
4622         (LTI_trunctfsf2, LTI_truncxfdf2, LTI_trunctfdf2, LTI_floatsisf)
4623         (LTI_floatdisf, LTI_floattisf, LTI_floatsidf, LTI_floatdidf)
4624         (LTI_floattidf, LTI_floatsixf, LTI_floatdixf, LTI_floattixf)
4625         (LTI_floatsitf, LTI_floatditf, LTI_floattitf, LTI_fixsfsi, LTI_fixsfdi)
4626         (LTI_fixsfti, LTI_fixdfsi, LTI_fixdfdi, LTI_fixdfti, LTI_fixxfsi)
4627         (LTI_fixxfdi, LTI_fixxfti, LTI_fixtfsi, LTI_fixtfdi, LTI_fixtfti)
4628         (LTI_fixunssfsi, LTI_fixunssfdi, LTI_fixunssfti, LTI_fixunsdfsi)
4629         (LTI_fixunsdfdi, LTI_fixunsdfti, LTI_fixunsxfsi, LTI_fixunsxfdi)
4630         (LTI_fixunsxfti, LTI_fixunstfsi, LTI_fixunstfdi, LTI_fixunstfti)
4631         (extendsfdf2_libfunc, extendsfxf2_libfunc, extendsftf2_libfunc)
4632         (extenddfxf2_libfunc, extenddftf2_libfunc, truncdfsf2_libfunc)
4633         (truncxfsf2_libfunc, trunctfsf2_libfunc, truncxfdf2_libfunc)
4634         (trunctfdf2_libfunc, floatsisf_libfunc, floatdisf_libfunc)
4635         (floattisf_libfunc, floatsidf_libfunc, floatdidf_libfunc)
4636         (floattidf_libfunc, floatsixf_libfunc, floatdixf_libfunc)
4637         (floattixf_libfunc, floatsitf_libfunc, floatditf_libfunc)
4638         (floattitf_libfunc, fixsfsi_libfunc, fixsfdi_libfunc, fixsfti_libfunc)
4639         (fixdfsi_libfunc, fixdfdi_libfunc, fixdfti_libfunc, fixxfsi_libfunc)
4640         (fixxfdi_libfunc, fixxfti_libfunc, fixtfsi_libfunc, fixtfdi_libfunc)
4641         (fixtfti_libfunc, fixunssfsi_libfunc, fixunssfdi_libfunc)
4642         (fixunssfti_libfunc, fixunsdfsi_libfunc, fixunsdfdi_libfunc)
4643         (fixunsdfti_libfunc, fixunsxfsi_libfunc, fixunsxfdi_libfunc)
4644         (fixunsxfti_libfunc, fixunstfsi_libfunc, fixunstfdi_libfunc)
4645         (fixunstfti_libfunc): Delete.
4646         * optabs.h (struct optab_handlers): Break out of struct optab.
4647         (struct convert_optab, convert_optab, enum convert_optab_index,
4648         convert_optab_table, sext_optab, zext_optab, trunc_optab,
4649         sfix_optab, ufix_optab, sfixtrunc_optab, ufixtrunc_optab,
4650         sfloat_optab, ufloat_optab): New.
4651         (set_conv_libfunc): Prototype.
4652         (GEN_FCN): Use C90 indirect call syntax, remove unnecessary cast.
4653         (trunc_optab): Renamed btrunc_optab.
4654         * builtins.c (expand_builtin_mathfn): Update to match.
4655         * optabs.c (extendtab, fixtab, fixtrunctab, floattab): Delete.
4656         (convert_optab_table, new_convert_optab, init_convert_optab)
4657         (init_interclass_conv_libfuncs, init_intraclass_conv_libfuncs)
4658         (set_conv_libfunc): New.
4659         (can_extend_p, gen_extend_insn, can_fix_p, can_float_p)
4660         (expand_float, expand_fix): Use new conversion optabs,
4661         not old insn code tables or long chains of ifs.
4662         (init_optabs): No need to clear old insn code tables.
4663         Initialize the new optabs, not the old libfunc array entries.
4664         Don't handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
4665         * genopinit.c: Initialize conversion optabs, not the
4666         former insn code tables.  Remove unnecessary casts.
4667         Handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
4668         * expr.c (convert_move): Remove redundant check that
4669         to_real==from_real.  Use the conversion optabs instead
4670         of long chains of tests of modes.  Move partial-integer-mode
4671         interconversion above all integer conversion.  Do not recurse
4672         on a value forced into a register in the original mode.
4674         * config/gofast.h, config/frv/frv.c, config/ia64/ia64.c
4675         * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
4676         * config/sparc/sparc.c: Use set_conv_libfunc to adjust entries
4677         in new conversion optabs; do not reference the old libfunc
4678         array entries.  No need to include libfuncs.h.
4680 2003-10-06  Roger Sayle  <roger@eyesopen.com>
4682         * config/i386/i386.c (ix86_expand_setcc): Annotate the floating
4683         point comparison sequence with a REG_EQUAL note that describes
4684         the comparison's semantics.
4686 2003-10-06  Roger Sayle  <roger@eyesopen.com>
4688         * expr.c (expand_expr <COND_EXPR>): Handle the void type semantics
4689         of COND_EXPR when expanding the "A op 0 ? FOO : A" optimizations.
4691 2003-10-06  Roger Sayle  <roger@eyesopen.com>
4692             Zack Weinberg  <zack@codesourcery.com>
4694         * optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL
4695         instruction by using LCT_CONST and then calling emit_libcall_block
4696         ourselves.
4698 2003-10-06  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
4700         PR optimization/11974
4701         * optabs.c (expand_unop): Promote libcall outmode according to
4702         hard_libcall_value.
4704 2003-10-06  Zack Weinberg  <zack@codesourcery.com>
4706         * real.h (REAL_MODE_FORMAT): New macro.
4707         * c-cppbuiltin.c, optabs.c, real.c, config/alpha/alpha.c
4708         * config/c4x/c4x.c, config/i370/i370.c, config/i386/freebsd.h
4709         * config/i386/i386.c, config/i960/i960.c, config/ia64/ia64.c
4710         * config/m68k/m68k.c, config/mips/mips.c, config/rs6000/rs6000.c
4711         * config/vax/vax.c: Use REAL_MODE_FORMAT instead of referring
4712         directly to real_format_for_mode array, wherever possible.
4714 2003-10-06  Devang Patel  <dpatel@apple.com>
4716         * dwarf2out.c (is_main_source): Remove variable.
4717         (dwarf2out_start_source_file): Do not check is_main_source.
4718         Do not reset is_main_source.
4719         (dwarf2out_init): Do not initialize is_main_source.
4721 2003-10-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4723         * fixinc/inclhack.def (stdio_va_list): Removed _ap fix.
4724         (irix_stdio_va_list): Don't require leading printf, IRIX 6.5.21
4725         introduced some multi-line prototypes.
4726         * fixinc/fixincl.x: Regenerate.
4728 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
4730         * config/mips/mips.h (PREDICATE_CODES): Add stack_operand.
4731         * config/mips/mips.c (stack_operand): New predicate.
4732         * config/mips/mips.md: Use it for the destination of mips16 insns
4733         that store $31.
4735 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
4737         * config/mips/mips.md (*lowsi): Renamed from lowsi.
4738         (*lowdi): Likewise lowdi.
4739         (*lowsi_mips16, *lowdi_mips16): New patterns.
4740         * config/mips/mips.c (mips_const_insns, mips_output_move): Remove
4741         mips16 CONSTANT_RELOC handling.
4742         (mips_delegitimize_address): Adjust for new sdata representation.
4744 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
4746         * config/mips/mips.c (mips_arg_info): If MUST_PASS_IN_STACK,
4747         skip any remaining register arguments.
4749 2003-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
4751         * reload.c (find_reloads_subreg_address): Use correct offset for
4752         paradoxical MEM subregs on big-endian targets.
4754 2003-10-06  Andrew Haley  <aph@redhat.com>
4756         * tree.c (get_callee_fndecl): Call
4757         lang_hooks.lang_get_callee_fndecl.
4758         * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): New.
4759         (lhd_get_callee_fndecl): New.
4761 2003-10-06  Andrew Pinski  <apinski@apple.com>
4763         * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
4764         error in calculating the length of the string.
4765         (machopic_stub_name): Likewise.
4767 2003-10-06  Roger Sayle  <roger@eyesopen.com>
4769         * optabs.c (prepare_float_lib_cmp):  Attach a REG_EQUAL note
4770         describing the return value of the comparison libcall to the
4771         REG_RETVAL instruction of the emitted sequence.
4773 2003-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
4775         PR optimization/12215
4776         * cse.c (cse_set_around_loop): Emit the move at the beginning
4777         of the next basic block for trapping sets.
4779 2003-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
4781         PR optimization/11637
4782         * combine.c (adjust_for_new_dest): New function to adjust the
4783         notes and LOG_LINKS when the dest of an insn has changed.
4784         (try_combine): Use it when deleting the first insn of a two-insn
4785         parallel or splitting a two-load parallel.
4787 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
4789         * config/mips/mips.c (mips_classify_constant): Only allow UNSPECs
4790         if TARGET_EXPLICIT_RELOCS.
4792 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
4794         PR bootstrap/12512
4795         * Makefile.in (info): Use double-colon rules.
4796         (dvi): Likewise.
4797         (generated-manpages): Likewise.
4798         * configure.in: Do not create lang.info, lang.dvi, or
4799         lang.generated-manpages hooks.
4800         * configure: Regenerated.
4801         * objc/Make-lang.in (objc.info): Remove.
4802         (objc.dvi): Remove.
4803         (objc.generated-manpages): Remove.
4804         * doc/sourcebuild.texi: Update description of info, dvi, and
4805         generated-manpages hooks.
4807 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
4809         * config/mips/mips.md: Merge mips16 lw/srl pattern with its splitter.
4811 2003-10-05  Andrew Pinski  <apinski@apple.com>
4813         * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
4814         errors in memcpy destinations.
4815         (machopic_stub_name): Likewise.
4817 2003-10-05  Andrew Pinski <apinski@apple.com>
4819         * config/darwin.c (machopic_non_lazy_ptr_name):
4820         Change strcat to memcpy and add length together.
4821         (machopic_stub_name): Likewise.
4823 2003-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
4825         * config/sh/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new
4826         signal trampoline codes.
4828 2003-10-05  Chris Demetriou  <cgd@broadcom.com>
4830         * config/mips/mips.md (*divsf3): Move description of
4831         SB-1 F2 erratum from here to...
4832         (divsf3): Here.  Disable if TARGET_FIX_SB1 is set and
4833         flag_unsafe_math_optimizations is not.
4835 2003-10-05  Aldy Hernandez  <aldyh@redhat.com>
4837         * config/rs6000/linuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE,
4838         TARGET_E500, TARGET_ISEL, and TARGET_FPRS.
4840 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
4842         * c-pretty-print.c: Fix comment typos.
4843         * c-pretty-print.h: Likewise.
4844         * calls.c: Likewise.
4845         * cfgloopmanip.c: Likewise.
4846         * cgraphunit.c: Likewise.
4847         * cppfiles.c: Likewise.
4848         * final.c: Likewise.
4849         * function.c: Likewise.
4850         * gcov-io.h: Likewise.
4851         * gcse.c: Likewise.
4852         * genoutput.c: Likewise.
4853         * loop.c: Likewise.
4854         * postreload.c: Likewise.
4855         * reg-stack.c: Likewise.
4856         * regmove.c: Likewise.
4857         * sched-int.h: Likewise.
4858         * sched-rgn.c: Likewise.
4859         * simplify-rtx.c: Likewise.
4860         * tree-inline.c: Likewise.
4861         * config/m68hc11/m68hc11.h: Likewise.
4862         * config/mmix/mmix.c: Likewise.
4863         * config/mn10300/mn10300.md: Likewise.
4864         * config/sh/sh.h: Likewise.
4866 2003-10-05  Richard Henderson  <rth@redhat.com>
4868         * tree-inline.c (remap_type): New.
4869         (remap_decl): Use it.  Remap DECL_SIZE*.
4870         (copy_body_r): Use it.
4871         (walk_tree): Walk TREE_TYPE too.
4872         (copy_tree_r): Don't walk subtrees of types.
4873         * tree.c (variably_modified_type_p): Restructure.  Consider integer
4874         types with non-const bounds variably modified.
4876 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
4878         * doc/invoke.texi: Fix typos.
4880 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
4882         * fold-const.c: Follow spelling conventions.
4883         * function.c: Likewise.
4884         * config/c4x/c4x.h: Likewise.
4885         * config/c4x/c4x.md: Likewise.
4886         * config/frv/frv.md: Likewise.
4887         * config/rs6000/aix.h: Likewise.
4888         * config/rs6000/linux64.h: Likewise.
4889         * config/xtensa/xtensa.c: Likewise.
4891 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
4893         * c-pretty-print.c: Fix comment formatting.
4894         * cfglayout.c: Likewise.
4895         * cfgloopanal.c: Likewise.
4896         * cppcharset.c: Likewise.
4897         * dbxout.c: Likewise.
4898         * ggc-page.c: Likewise.
4899         * ggc.h: Likewise.
4900         * target.h: Likewise.
4902 2003-10-04  Kelley Cook  <kelleycook@wideopenwest.com>
4904         * gengtype-lex.l: Recognize typedef of functions without PARAMS macro.
4906 2003-10-04  Nathanael Nerode  <neroden@gcc.gnu.org>
4908         * config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c:
4909         Convert to ISO C90 function declarations and definitions.
4911 2003-10-04  Zack Weinberg  <zack@codesourcery.com>
4913         * libfuncs.h
4914         (LTI_eqhf2, LTI_nehf2, LTI_gthf2, LTI_gehf2, LTI_lthf2)
4915         (LTI_lehf2, LTI_unordhf2, LTI_eqsf2, LTI_nesf2, LTI_gtsf2)
4916         (LTI_gesf2, LTI_ltsf2, LTI_lesf2, LTI_unordsf2, LTI_eqdf2)
4917         (LTI_nedf2, LTI_gtdf2, LTI_gedf2, LTI_ltdf2, LTI_ledf2)
4918         (LTI_unorddf2, LTI_eqxf2, LTI_nexf2, LTI_gtxf2, LTI_gexf2)
4919         (LTI_ltxf2, LTI_lexf2, LTI_unordxf2, LTI_eqtf2, LTI_netf2)
4920         (LTI_gttf2, LTI_getf2, LTI_lttf2, LTI_letf2, LTI_unordtf2)
4921         (eqhf2_libfunc, nehf2_libfunc, gthf2_libfunc, gehf2_libfunc)
4922         (lthf2_libfunc, lehf2_libfunc, unordhf2_libfunc, eqsf2_libfunc)
4923         (nesf2_libfunc, gtsf2_libfunc, gesf2_libfunc, ltsf2_libfunc)
4924         (lesf2_libfunc, unordsf2_libfunc eqdf2_libfunc, nedf2_libfunc)
4925         (gtdf2_libfunc, gedf2_libfunc, ltdf2_libfunc, ledf2_libfunc)
4926         (unorddf2_libfunc eqxf2_libfunc, nexf2_libfunc, gtxf2_libfunc)
4927         (gexf2_libfunc, ltxf2_libfunc, lexf2_libfunc, unordxf2_libfunc
4928         (eqtf2_libfunc, netf2_libfunc, gttf2_libfunc, getf2_libfunc)
4929         (lttf2_libfunc, letf2_libfunc, unordtf2_libfunc):
4930         Delete.
4931         * optabs.h (OTI_eq, OTI_ne, OTI_gt, OTI_ge, OTI_lt, OTI_le)
4932         (OTI_unord, eq_optab, ne_optab, gt_optab, ge_optab, lt_optab)
4933         (le_optab, unord_optab): New.
4935         * optabs.c (prepare_float_lib_cmp): Rewrite.  Get the libfuncs
4936         from the code_to_optab table, not a giant switch; use
4937         swap_condition; do widening only if a comparison function that
4938         we can call exists in a wider mode, not if a cmp_optab insn or
4939         libfunc exists in a wider mode; call protect_from_queue
4940         exactly once on each operand.
4941         (init_optabs): Initialize the new optabs, not the deleted libfuncs.
4943         * config/gofast.h, config/ia64/ia64.c, config/mips/mips.c
4944         * config/pa/pa.c, config/rs6000/rs6000.c, config/sparc/sparc.c:
4945         Set floating point comparison libfuncs using set_optab_libfunc
4946         on the appropriate optab.
4948         * config/ia64/ia64.c (ia64_hpux_init_libfuncs): Fix typo.
4949         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Correct ABI
4950         selector conditionals.
4952 2003-10-04  Stephane Carrez  <stcarrez@nerim.fr>
4954         * config/m68hc11/t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is
4955         identical to m68hc12 as far as libraries are concerned.
4957 2003-10-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
4959         PR c/12446
4960         * c-typeck.c (convert_for_assignment): Issue an error for
4961         array to pointer assignment after default conversion.
4962         (digest_init): Likewise.
4964 2003-10-04  Fariborz Jahanian  <fjahanian@apple.com>
4966         * c-decl.c (duplicate_decls): retain DECL_COMMON of old declaration
4968 2003-10-03  Gerald Pfeifer  <gerald@pfeifer.com>
4970         * doc/extend.texi (Function Attributes): Fix title of GNU C
4971         Preprocessor manual.
4972         (C++ Extensions): Fix reference to "Predefined Macros" in the
4973         GNU C Preprocessor manual.
4975 2003-10-04  Richard Earnshaw  <reanrsha@arm.com>
4977         * doc/extend.texi: Document how GCC estimates and relies on the size
4978         of an asm.
4980 2003-10-04  Richard Sandiford  <rsandifo@redhat.com>
4982         * config/mips/mips.c (mips_pad_arg_upward): Pad floating-point
4983         arguments downward for big-endian o64.
4985 2003-10-03  Robert Bowdidge <bowdidge@apple.com>
4987         * ggc-page.c (ggc_pch_write_object): Replace fseek() with fwrite() in
4988         PCH generation, avoiding too-frequent flushes when writing to NFS
4989         file system.
4991 2003-10-03  Ziemowit Laski  <zlaski@apple.com>
4993         * objc/objc-act.c (lookup_category): Mark as 'inline'.
4995 2003-10-03  Alexander Malmberg  <alexander@malmberg.org>
4996             Ziemowit Laski  <zlaski@apple.com>
4998         * objc/objc-act.c (add_method_to_hash_list, lookup_category):
4999         New functions.
5000         (lookup_method_in_hash_lists): New parameter indicating whether
5001         we are messaging 'Class' or 'id'.
5002         (check_duplicates): Likewise; do not assume all methods will
5003         be either class or instance methods.
5004         (generate_category, finish_class): Use lookup_category().
5005         (add_method): Use add_method_to_hash_list(); insert instance
5006         methods of root classes into the global class method hash table.
5007         (add_category): Use lookup_category(); avoid constructing
5008         duplicate categories.
5009         (really_start_method): Add method to corresponding @interface,
5010         if not already there (and if the @interface exists).
5011         (finish_message_expr, finish_objc): Adjust calls to
5012         check_duplicates().
5014 2003-10-03  Roger Sayle  <roger@eyesopen.com>
5016         PR optimization/9325, PR java/6391
5017         * fold-const.c (fold_convert): For floating point to integer
5018         conversions, return the maximum/minimum representable integer
5019         value if the real constant overflows the destination type.
5020         * tree.c (real_value_from_int_cst): Allow the type to be NULL,
5021         meaning don't truncate the result to a floating point mode.
5022         Simplify the logic by calling real_from_integer directly.
5023         * simplify-rtx.c (simplify_unary_operation):  Implement the
5024         same semantics for folding floating point to integer conversions
5025         in RTL.
5027 2003-10-03  Chris Demetriou  <cgd@broadcom.com>
5029         * config/mips/mips.c (mips_emit_prefetch): Restructure
5030         to avoid use of arrays, handle indexed prefetch.
5031         * config/mips/mips.h (ISA_HAS_FP4, ISA_HAS_PREFETCH): Update comments.
5032         (ISA_HAS_PREFETCHX): New deffine.
5033         * config/mips/mips.md ("type" attr): Add new "prefetchx" value,
5034         update comments.
5035         (prefetch_indexed_di, prefetch_indexed_si): New insns.
5037 2003-10-03  Jeff Sturm  <jsturm@one-point.com>
5038             Roger Sayle  <roger@eyesopen.com>
5040         PR optimization/12289
5041         * calls.c (emit_call_1): Pretend to have popped the arguments
5042         to noreturn and longjmp functions instead of ignoring them.
5043         (expand_call): Don't adjust stack_pointer_dela while
5044         inhibit_defer_pop is set.
5046 2003-10-03  Andreas Schwab  <schwab@suse.de>
5048         PR bootstrap/12276
5049         * configure.in: Check for libunwind on the host only if building
5050         a native compiler.
5051         * configure: Regenerated.
5053 2003-10-03  Paolo Carlini  <pcarlini@unitus.it>
5055         * unwind-pe.h (read_encoded_value_with_base): Constify u and
5056         its inizialization cast.
5058 2003-10-03  Richard Sandiford  <rsandifo@redhat.com>
5060         PR target/12485
5061         * config/mips/mips.c (mips_load_got): GOT accesses can't trap.
5063 2003-10-02  Mark Mitchell  <mark@codesourcery.com>
5065         PR optimization/12180
5066         * tree-inline.c (inline_forbidden_p_1): Do not permit inlining of
5067         functions containing calls to __builtin_next_arg.
5069 2003-10-02  Chris Demetriou  <cgd@broadcom.com>
5071         * config/mips/mips.c (mips_emit_prefetch): Use operand 3
5072         in instructions being output.
5073         * config/mips/mips.md (prefetch_si_address): Change third
5074         operand's constraint letter to 'I'.
5075         (prefetch_di_address): Likewise.
5076         (prefetch_si, prefetch_di): Set third operand to const0_rtx.
5078 2003-10-02  Zack Weinberg  <zack@codesourcery.com>
5080         * system.h: Poison macros obsoleted by earlier patch.
5081         * config/cris/cris.c: C90-ify a function definition.
5083 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
5085         PR/12292
5086         * combine.c (make_field_assignment): Check whether rtx's code
5087         is CONST_INT before using INTVAL.
5089 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
5091         * cgraph.c (cgraph_node): Use INSERT instead of 1 in
5092         htab_find_slot_with_hash.
5093         (cgraph_node_for_identifier): Use NO_INSERT.
5094         (cgraph_remove_node): Use NO_INSERT.
5095         (cgraph_varpool_node): Use INSERT.
5096         (cgraph_varpool_node_for_identifier): Use NO_INSERT.
5098 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
5100         Waldek Hebisch <hebisch@math.uni.wroc.pl>
5101         PR/12072
5102         * varasm.c (compare_constant): Fix thinko.
5104 2003-10-02  Richard Sandiford  <rsandifo@redhat.com>
5106         * config/frv/frv.c (frv_issue_rate): New function.
5107         (frv_pack_insns): Use it.
5108         (TARGET_SCHED_ISSUE_RATE): Define.
5110 2003-10-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
5112         * config/mcore/mcore.c: Convert to ISO C90 function declarations
5113         and definitions.
5114         * config/mcore/mcore.h: Likewise.
5115         * config/mcore/mcore-protos.h: Likewise.
5117 2003-10-02  Richard Sandiford  <rsandifo@redhat.com>
5119         * config/frv/frv.c (frv_use_dfa_pipeline_interface): New function.
5120         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
5122 2003-10-01  Per Bothner  <pbothner@apple.com>
5124         * c-lex.c (src_line):   Remove unneeded static variable.
5125         (cb_line_change):  Set input_line directly, instead of src_line.
5126         (get_non_padding_token):  We no longer need to compensate for the
5127         "horrible things" the C++ front-end does with the current line number,
5129         * cpplib.c (_cpp_pop_buffer):  Do generate a _cpp_do_file_change
5130         callback even when popping the main file.
5131         * c-lex.c (fe_file_change):  Handle a NULL new_map.
5132         * fix-header.c (cb_file_change):  Likewise.
5133         * c-ppoutput.c (pp_file_change):  Likewise.
5135         * cppinit.c (cpp_read_main_file):  Split into two functions:
5136         Distribute _cpp_stack_file call over the two functions.
5137         (cpp_find_main_file):  New function.
5138         Don't call _cpp_do_file_change even if working_directory flag set.
5139         (cpp_push_main_file):  New function.
5140         * cppfiles.c (_cpp_find_failed):  New helper function.
5141         (find_file):  Made non-static and renamed to _cpp_find_file.
5142         (_cpp_stack_file):  No longer needed.  But note the following.
5143         (stack_file):  Made non-static and renamed to _cpp_stack_file.
5144         * fix-header.c (cpp_read_main_file):  Replace cpp_read_main_file
5145         call with calls to cpp_find_main_file and cpp_push_main_file.
5146         (search_path_head):  If there is no current buffer, use main_file.
5147         * cpphash.h:  Update function declarations.
5148         * cpplib.h:  Update function declarations.
5150         * c-opts.c (c_common_post_options):  Don't call cpp_find_main_file yet.
5151         (c_common_parse_file):  No longer need to call cpp_read_main_file
5152         when file_index > 0 (as in multi-file or server compiation).
5153         (finish_options):  Change to <built-in> is an LC_ENTER, not LC_RENAME
5154         as this now happens before cpp_push_main_file.
5155         (push_command_line_include):  When done with options, pass LC_LEAVE
5156         instead of LC_RENAME to cpp_change_file and finally cpp_push_main_file.
5157         (fe_file_change):  Handle NULL new_map, and simplify.
5158         * cpplex.c (_cpp_get_fresh_line):  Revert my no-longer-needed
5159         08-28 change, since we're never called with a NULL buffer.
5160         (_cpp_lex_direct):  Likewise.
5161         * cpptrad.c (_cpp_read_logical_line_trad):  Likewise.
5162         Return false if buffer is NULL at end.
5164         * cpplex.c (_cpp_get_fresh_line):  Return value now just depends on
5165         whether pfile->buffer is NULL after pop, ignoring return_at_eof.
5166         * cpphash.h (struct cpp_buffer):  Remove unused return_at_eof field.
5167         * cpplib.c (cpp_push_buffer):  Since we no longer set return_at_eof,
5168         remove the unused return_at_eof parameter.
5169         * cppfiles.c, cpplib.c, cppmacro.c, cpppch.c, fix-header.c:
5170         Update callers of cpp_push_buffer.
5172 2003-10-01  Zack Weinberg  <zack@codesourcery.com>
5174         * target.h (init_libfuncs): New hook.
5175         * target-def.h: Default TARGET_INIT_BUILTINS and
5176         TARGET_INIT_LIBFUNCS to hook_void_void.  Add
5177         TARGET_INIT_LIBFUNCS to TARGET_INITIALIZER.
5178         * builtins.c (default_init_builtins): Delete.
5179         * expr.h (default_init_builtins): Delete prototype.
5180         * doc/tm.texi: Document TARGET_INIT_LIBFUNCS and US_SOFTWARE_GOFAST.
5181         Tweak documentation of TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL.
5182         Remove documentation of INIT_TARGET_OPTABS, MULSI3_LIBCALL,
5183         DIVSI3_LIBCALL, UDIVSI3_LIBCALL, MODSI3_LIBCALL, UMODSI3_LIBCALL,
5184         MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL,
5185         and UMODDI3_LIBCALL,
5187         * Makefile.in (optabs.o): Depends on target.h.
5188         * defaults.h: Provide default for FLOAT_LIB_COMPARE_RETURNS_BOOL.
5189         * optabs.c: Include target.h.
5190         (prepare_float_lib_cmp): No need for #ifdef around use of
5191         FLOAT_LIB_COMPARE_RETURNS_BOOL.
5192         (set_optab_libfunc): New function.
5193         (init_optabs): Delete use of all *_LIBCALL defines.
5194         Call targetm.init_libfuncs not INIT_TARGET_OPTABS.
5195         * optabs.h: Prototype set_optab_libfunc.
5197         * config.gcc: Remove all references to pa/long_double.h,
5198         ia64/hpux_longdouble.h, and gofast.h.
5199         (mips-*-*): When --enable-gofast, just add US_SOFTWARE_GOFAST
5200         to tm_defines; don't set INIT_SUBTARGET_OPTABS or change tm_file.
5202         * config/alpha/alpha.c, config/c4x/c4x.c, config/cris/cris.c
5203         * config/frv/frv.c, config/h8300/h8300.c, config/i860/i860.c
5204         * config/ia64/ia64.c, config/ip2k/ip2k.c, config/m68hc11/m68hc11.c
5205         * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
5206         * config/sparc/sparc.c, config/vax/vax.c:
5207         Provide a definition for TARGET_INIT_LIBFUNCS.  Where
5208         necessary, include optabs.h, libfuncs.h, and/or config/gofast.h.
5210         * config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.h
5211         * config/avr/avr.h, config/cris/cris.h, config/frv/frv.h
5212         * config/h8300/h8300.h, config/i860/i860.h, config/ip2k/ip2k.h
5213         * config/iq2000/iq2000.h, config/m68hc11/m68hc11.h, config/mips/mips.h
5214         * config/rs6000/aix.h, config/rs6000/sysv4.h, config/sparc/elf.h
5215         * config/sparc/lite.h, config/sparc/netbsd-elf.h, config/sparc/sol2.h
5216         * config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h
5217         * config/vax/elf.h: Don't define or use INIT_TARGET_OPTABS,
5218         INIT_SUBTARGET_OPTABS, or any *_LIBCALL macros.
5220         * config/ia64/hpux.h: Redefine INTEL_EXTENDED_IEEE_FORMAT to 0.
5221         Set TARGET_INIT_LIBFUNCS and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
5222         * config/pa/pa-hpux.h: Define LONG_DOUBLE_TYPE_SIZE,
5223         HPUX_LONG_DOUBLE_LIBRARY, and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
5224         * config/ia64/hpux_longdouble.h, config/pa/long_double.h: Delete.
5226         * config/rs6000/xcoff.h: Don't define RS6000_ITRUNC nor RS6000_UITRUNC.
5227         * config/sparc/sparc.h: Default SUN_CONVERSION_LIBFUNCS and
5228         SUN_INTEGER_MULTIPLY_64 to 0.
5229         * config/sparc/sol2.h: Redefine SUN_CONVERSION_LIBFUNCS and
5230         SUN_INTEGER_MULTIPLY_64 to 1.
5231         * config/sparc/elf.h: Redefine SUN_CONVERSION_LIBFUNCS and
5232         SUN_INTEGER_MULTIPLY_64 to 0.
5233         * config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/sp86x-elf.h:
5234         Define US_SOFTWARE_GOFAST.
5235         * config/vax/vax.h: Default TARGET_ELF to 0.
5236         * config/vax/elf.h: Redefine TARGET_ELF to 1.
5238         * config/gofast.h: Don't define any macros here.  Provide one
5239         static function, gofast_maybe_init_libfuncs, which does what
5240         INIT_GOFAST_LIBFUNCS used to do but only if US_SOFTWARE_GOFAST
5241         is already defined.  Do not clear negation libfuncs.  Do
5242         not mess with HFmode, XFmode, or TFmode libfuncs.
5244         * config/avr/avr.c (avr_init_once): #if 0 out; mark FIXME.
5246 2003-10-01  Kelley Cook  <kelleycook@wideopenwest.com>
5248         PR C/12466
5249         * c-parse.in (parmlist_2): Mark declaration with an ellipsis as ISO C.
5251 2003-10-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5253         * config/mips/xm-iris5.h: Remove, unnecessary.
5254         * config.build (mips-sgi-irix5*): Remove.
5255         (mips-sgi-irix6*o32): Likewise.
5256         * config.gcc (mips-sgi-irix6*o32): Remove xm_file.
5257         (mips-sgi-irix5cross64): Likewise.
5258         (mips-sgi-irix5*): Likewise.
5259         * config.host (mips-sgi-irix5*): Remove.
5260         (mips-sgi-irix6*o32): Likewise.
5262 2003-10-01  Zack Weinberg  <zack@codesourcery.com>
5264         * dbxout.c (dbxout_fptype_value): Delete.
5265         (dbxout_type): Emit R3 for all COMPLEX_TYPEs.
5267 2003-10-01  Alexandre Oliva  <aoliva@redhat.com>
5269         * output.h (compute_reloc_for_constant): Declare.
5270         * varasm.c (compute_reloc_for_constant): Extract from...
5271         (output_addressed_constants): ... here.  Adjust all callers.
5273 2003-10-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5275         * aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.
5276         * configure: Rebuilt.
5278 2003-10-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5280         * fold-const.c (make_range): When handling unsigned, don't reverse
5281         range if high bound is zero.
5283 2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
5285         * config/frv/frv.h (PREDICATE_CODES): Added
5286         condexec_si_media_operator, condexec_sf_add_operator and
5287         condexec_sf_conv_operator.  Removed condexec_sf_binary_operator
5288         and condexec_sf_unary_operator.
5290 2003-10-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5292         * aclocal.m4: Add ultrix* to /dev/zero blacklist.
5293         * configure: Rebuilt.
5295 2003-10-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5297         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change.
5298         Allow override.
5299         * doc/tm.texi (MUST_USE_SJLJ_EXCEPTIONS): Document.
5301 2003-09-23  David S. Miller  <davem@redhat.com>
5303         * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine
5304         before redefining.
5305         * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
5307 2003-10-01  Steven Bosscher  <steven@gcc.gnu.org>
5309         * config/cris/cris-protos.h, config/cris/cris.c: Convert to ISO
5310         C90 function declarations and definitions.
5312 2003-10-01  Nathanael Nerode  <neroden@gcc.gnu.org>
5314         * config.gcc (cris-*-linux*): Revert mistaken commit.
5316 2003-10-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
5318         PR optimization/11753
5319         * config/sparc/sparc.md (length attribute) [fcc branch]: Add 1 to
5320         the length in the non-V9 case.
5322 2003-09-30  Richard Henderson  <rth@redhat.com>
5324         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor
5325         DWARF_ALT_FRAME_RETURN_COLUMN.
5326         * unwind-dw2.c (dwarf_reg_size_table): Expand by one.
5327         (_Unwind_GetGR, _Unwind_SetGR): Validate lookup column.
5328         (uw_frame_state_for): Return end-of-stack for null return address.
5329         * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Add.
5331         * config/alpha/alpha.c (alpha_sa_mask): Add r31 for eh_return.
5332         (alpha_expand_prologue): Store a zero for it.
5333         (alpha_expand_epilogue): Don't reload it.
5334         * config/alpha/alpha.h (DWARF_ALT_FRAME_RETURN_COLUMN): New.
5335         * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Use column 64
5336         for the sigframe return address.
5338 2003-09-30  Kelley Cook  <kelleycoook@wideopenwest.com>
5340         * sdbout.c: Convert to ISO C90 prototypes.
5341         * objc/objc-act.c: Likewise.
5343 2003-09-30  Kelley Cook  <kelleycoook@wideopenwest.com>
5345         * config/i386/cygwin1.c: Convert to ISO C90 prototypes.
5346         * config/i386/winnt.c: Likewise.
5347         * config/i386/cygming.h: Likewise.
5349 2003-09-30  Kazu Hirata  <kazu@cs.umass.edu>
5351         * fold-const.c (fold): Fold (A & ~B) - (A & B) into
5352         (A ^ B) - B for any B.
5354 2003-09-30  Nathanael Nerode  <neroden@gcc.gnu.org>
5356         * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
5357         powerpcle-*-kaos*, strongarm-*-kaos*): Disable fixproto.
5359 2003-09-30  Richard Earnshaw  <rearnsha@arm.com>
5361         * arm/ieee754-sf.S: Tidy formatting.
5363 2003-09-30  Nicolas Pitre  <nico@cam.org>
5365         * arm/lib1funcs.asm (ARM_DIV_MOD_BODY): Split into ARM_DIV_BODY
5366         and ARM_MOD_BODY.
5367         (ARM_MOD_BODY): Rewritten. added clz insns for __ARM_ARCH__ >= 5.
5368         (ARM_DIV_BODY): Added clz insns for __ARM_ARCH__ >= 5,
5369         added better divisor alignment in the other case.
5370         (ARM_DIV2_ORDER): Added, finds the order of a single bit divisor.
5371         (__divsi3, __udivsi3, __modsi3, __umodsi3): rewritten using the
5372         macros above, add fast exits for divisor >= dividend, etc.
5374 2003-09-30  Nicolas Pitre  <nico@cam.org>
5376         * arm/ieee754-df.S: Split compilation of fixunsdfsi from
5377         L_fixdfsi target.
5378         * arm/t-arm-elf (LIB1ASMFUNCS): Add _fixunsdfsi.
5380 2003-09-30  Nathanael Nerode  <neroden@gcc.gnu.org>
5382         * config.gcc: Default use_fixproto to 'no'.
5384 2003-09-30  Richard Sandiford  <rsandifo@redhat.com>
5386         PR optimization/12345
5387         * config/mips/mips-protos.h (mips_restore_gp): Remove.
5388         (mips_gp_save_slot): Declare.
5389         * config/mips/mips.c (mips_restore_gp): Remove in favor of...
5390         (mips_gp_save_slot): ...this new function.
5391         * config/mips/mips.md (exception_receiver): Use mips_gp_save_slot
5392         and mips_output_move to generate the output template.
5393         (call_internal): Force splitting if TARGET_SPLIT_CALLS.  Don't emit
5394         a gp load after a noreturn call.  Load the gp using a move rather
5395         than an exception_receiver pattern.
5396         (call_value_internal, call_value_multiple_internal): Likewise.
5397         (call_split, call_value_split, call_value_multiple_split): Clobber $28.
5399 2003-09-30  Carlo Wood  <carlo@alinoe.com>
5401         PR debug/12319
5402         * cfglayout.c (insn_scope):  Use prologue_locator and
5403         epilogue_locator; return the outer function scope for
5404         pro- and epilogue insns.
5406 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
5408         * objc/objc-act.c (encode_type): Encode INTEGER_TYPEs and
5409         REAL_TYPEs based on the bitsize of the type's mode, not the
5410         mode directly.
5412 2003-09-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5414         * dwarf2out.c (default_eh_frame_section): Split into ...
5415         (named_section_eh_frame_section, collect2_eh_frame_section): ... new
5416         functions.
5417         * output.h (named_section_eh_frame_section): Declare.
5418         (collect2_eh_frame_section): Likewise.
5420 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
5422         * real.c (real_sqrt): Use get_canonical_qnan directly.
5424         * dwarf2out.c (add_const_value_attribute): Use real_to_target.
5426         * varasm.c (assemble_real): Use real_to_target directly,
5427         calculate the number of significant elements of the result
5428         array and write them out in a loop, instead of using a giant
5429         switch statement to pick the correct REAL_VALUE_TO_TARGET_*
5430         macro.
5432 2003-09-29  Jan Hubicka  <jh@suse.cz>
5434         PR c++/12175
5435         * varasm.c (notice_global_symbol): Discard external symbols.
5437         PR optimization/12286
5438         * gcov-io.c (gcov_read_words): Fix memmove call.
5439         * profile.c (compute_branch_probabilities): Add extra sanity checks.
5441 2003-09-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5443         * config.gcc (sparc-*-solaris2*): Handle Solaris 10 and up like
5444         Solaris 7-9.
5446         * fixinc/inclhack.def (solaris_widec): Replace solaris2.[0-5]* by
5447         wildcards which explicitly match micro versions.
5448         * fixinc/fixincl.x: Regenerate.
5450 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
5452         * fold-const.c (fold): Fold (A & ~B) - (A & B) into
5453         (A ^ B) - B, where B is any power of 2 minus 1.
5455 2003-09-29  Jan Hubicka  <jh@suse.cz>
5457         * libgcov.c (gcov_exit): Fix two pastos.
5459 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
5461         * config/h8300/h8300.md (*tst_extzv_1_n): Combine with the
5462         define_split immediately below to form define_insn_and_split.
5464 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
5466         * config/h8300/h8300.md (*tstsi_variable_bit): New.
5467         (*tstsi_variable_bit_qi): Likewise.
5469 2003-09-28  Phil Edwards  <phil@codesourcery.com>
5471         * doc/cppopts.texi:  Use 'dashMP' instead of '-MP' as a cross-
5472         reference name.
5474 2003-09-28  Richard Henderson  <rth@redhat.com>
5476         * c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
5477         file and line separately.
5479 2003-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
5481         * config/s390/s390.md ("*adddi3_carry1_cc", "*adddi3_carry1_cconly",
5482         "*adddi3_carry2_cc", "*adddi3_carry2_cconly", "*subdi3_borrow_cc",
5483         "*subdi3_borrow_cconly"): New insns.
5484         ("*addsi3_sub", "*subsi3_sub"): Remove.
5485         ("*subdi3_cc", *subdi3_cconly"): Use only if TARGET_64BIT.
5486         ("*subsi3_cc"): Fix op_type attribute.
5488 2003-09-28  Richard Henderson  <rth@redhat.com>
5490         * stmt.c (expand_asm_operands): Take a location_t, instead of
5491         individual file and line.
5492         * c-typeck.c (c_expand_asm_operands): Likewise.
5493         * tree.h (expand_asm_operands): Update decl.
5494         * c-common.h (c_expand_asm_operands): Likewise.
5495         * c-semantics (genrtl_asm_stmt): Update call.
5497 2003-09-28  Philip Blundell  <philb@gnu.org>
5499         * config/arm/arm.c (legitimize_pic_address): Check
5500         SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
5501         (arm_assemble_integer): Likewise.
5503 2003-09-28  Steven Bosscher  <steven@gcc.gnu.org>
5505         * config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
5506         config/c4x/c4x-c.c, config/c4x/c4x-protos.h, config/c4x/c4x.c,
5507         config/c4x/c4x.h:
5508         Convert to ISO C90 function declarations and definitions.
5510 2003-09-28  Steven Bosscher  <steven@gcc.gnu.org>
5512         *  config/stormy16/stormy16.c, config/stormy16/stormy16-protos.h:
5513         Convert to ISO C90 function declarations and definitions.
5515 2003-09-28  Richard Sandiford  <rsandifo@redhat.com>
5517         * config/mips/mips.c (mips_constant_info): Add reloc field.
5518         (mips_classify_constant): Initialize it.  Always set SYMBOL to the
5519         underlying symbol, not to an unspec.
5520         (mips_delegitimize_address, print_operand): Clean up accordingly.
5522 2003-09-28  Richard Sandiford  <rsandifo@redhat.com>
5524         * config/mips/mips-protos.h (mips16_gp_pseudo_reg): Remove.
5525         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Remove orphaned comment.
5526         * config/mips/mips.c (mips_reloc_offset_ok_p): New function.
5527         (mips_classify_constant): Use it.
5528         (mips_splittable_symbol_p): Add an offset argument.
5529         (mips_classify_address): Adjust call accordingly.
5530         (mips_legitimize_symbol): Handle sdata references with LO_SUM rather
5531         than a relocation unspec.  Update call to mips_splittable_symbol_p.
5532         Generalize the code that copes with symbols + invalid offsets.
5533         (print_operand): Allow '%R' to be applied to small data addresses.
5534         (mips_reloc_string): Remove RELOC_GPREL16.
5535         (mips_sdata_pointer): Renamed from mips16_gp_pseudo_reg.  Return $gp
5536         for TARGET_EXPLICIT_RELOCS.  Return null if we can't use gp-relative
5537         relocation operators.
5538         * config/mips/mips.md (RELOC_GPREL16): Remove.  Shuffle other reloc
5539         constants accordingly.
5541 2003-09-27  Roger Sayle  <roger@eyesopen.com>
5543         * toplev.c (flag_evaluation_order): New global variable.
5544         * flags.h (flag_evaluation_order): Prototype here.
5545         * expr.c (expand_operands): If we need to preserve observable
5546         evaluation order, protect exp1 from clobbering exp0's result.
5548 2003-09-28  Andreas Jaeger  <aj@suse.de>
5550         * c-decl.c (finish_function): Convert definition to ISO C90.
5551         * ifcvt.c (mark_loop_exit_edges): Likewise.
5552         * ra-rewrite.c (emit_colors): Likewise.
5554 2003-09-27  Nathanael Nerode  <neroden@gcc.gnu.org>
5556         * config.gcc (alpha*-dec-osf[45]*): Disable fixproto.
5557         * config.gcc (arm*-*-uclinux*): Disable fixproto.
5558         * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
5559         powerpc-*-eabialtivec*): Disable fixproto.
5561 2003-09-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
5563         PR optimization/12340
5564         * loop.h (struct induction): Document the new semantics
5565         of the 'same' field for bivs.
5566         * unroll.c (biv_total_increment): Don't count the same
5567         biv increment several times.
5568         (loop_iterations) [GENERAL_INDUCT]: Likewise.
5570 2003-09-27  Graham Stott  <graham.stott@btinternet.com>
5572         * unroll.c (loop_interations)[GT]: Add missing break.
5574 2003-09-27  Kelley Cook  <kcook@gcc.gnu.org>
5576         * config/chorus.h, config/darwin-c.c, config/darwin-protos.h,
5577         config/darwin.c, config/darwin.h, config/dbx.h, config/dbxcoff.h,
5578         config/dbxelf.h, config/elfos.h, config/fp-bit.h,
5579         config/freebsd-nthr.h, config/freebsd-spec.h, config/freebsd.h,
5580         config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
5581         config/freebsd6.h, config/netbsd-aout.h, config/netbsd-elf.h,
5582         config/netbsd.h, config/netware.h, config/openbsd-oldgas.h,
5583         config/openbsd.h, config/ptx4.h, config/alpha/alpha-protos.h,
5584         config/alpha/alpha.c, config/alpha/alpha.h, config/alpha/alpha.md,
5585         config/alpha/elf.h, config/alpha/ev4.md, config/alpha/ev5.md,
5586         config/alpha/ev6.md, config/alpha/freebsd.h, config/alpha/linux-elf.h,
5587         config/alpha/linux.h, config/alpha/netbsd.h, config/alpha/openbsd.h,
5588         config/alpha/osf.h, config/alpha/osf5.h, config/alpha/unicosmk.h,
5589         config/alpha/vms-cc.c, config/alpha/vms-crt0-64.c,
5590         config/alpha/vms-crt0.c, config/alpha/vms-dwarf2.asm,
5591         config/alpha/vms-dwarf2eh.asm, config/alpha/vms-ld.c,
5592         config/alpha/vms-psxcrt0-64.c, config/alpha/vms-psxcrt0.c,
5593         config/alpha/vms.h, config/alpha/vms64.h, config/alpha/vms_tramp.asm,
5594         config/alpha/xm-vms.h, config/arc/arc-modes.def,
5595         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
5596         config/arc/arc.md, config/arc/initfini.c, config/arc/lib1funcs.asm,
5597         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
5598         config/avr/avr.md, config/d30v/d30v-protos.h, config/d30v/d30v.h,
5599         config/d30v/d30v.md, config/fr30/fr30-protos.h, config/fr30/fr30.c,
5600         config/fr30/fr30.h, config/fr30/fr30.md, config/fr30/lib1funcs.asm,
5601         config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
5602         config/frv/frv-abi.h, config/frv/frv-asm.h, config/frv/frv-modes.def,
5603         config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
5604         config/frv/frv.md, config/frv/frvbegin.c, config/frv/frvend.c,
5605         config/frv/lib1funcs.asm, config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
5606         config/h8300/parityhi2.c, config/h8300/popcounthi2.c,
5607         config/i370/i370-c.c, config/i370/i370-protos.h, config/i370/i370.c,
5608         config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
5609         config/i370/mvs.h, config/i370/oe.h, config/i386/darwin.h,
5610         config/i960/i960-c.c, config/i960/i960-coff.h,
5611         config/i960/i960-modes.def, config/i960/i960-protos.h,
5612         config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
5613         config/i960/rtems.h, config/ia64/elf.h, config/ia64/ia64.h,
5614         config/m32r/initfini.c, config/m32r/m32r-protos.h, config/m32r/m32r.c,
5615         config/m32r/m32r.h, config/m32r/m32r.md, config/m68hc11/larith.asm,
5616         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
5617         config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
5618         config/m68hc11/m68hc12.h, config/m68k/coff.h, config/m68k/crti.s,
5619         config/m68k/crtn.s, config/m68k/hp320.h, config/m68k/hp320base.h,
5620         config/m68k/lb1sf68.asm, config/m68k/linux.h, config/m68k/m68020-elf.h,
5621         config/m68k/m68k-aout.h, config/m68k/m68k-none.h,
5622         config/m68k/m68k-protos.h, config/m68k/m68k.c, config/m68k/m68k.h,
5623         config/m68k/m68k.md, config/m68k/m68kelf.h, config/m68k/m68kv4.h,
5624         config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
5625         config/m68k/rtemself.h, config/m68k/sgs.h, config/mcore/lib1.asm,
5626         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h,
5627         config/mcore/mcore-protos.h, config/mcore/mcore.c,
5628         config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
5629         config/mips/elforion.h, config/mips/iris5.h, config/mips/iris6.h,
5630         config/mips/iris6gld.h, config/mips/irix6-libc-compat.c,
5631         config/mips/linux.h, config/mips/mips-protos.h, config/mips/mips.c,
5632         config/mips/mips.h, config/mips/mips.md, config/mips/netbsd.h,
5633         config/mips/openbsd.h, config/mips/r3900.h, config/mips/rtems.h,
5634         config/mips/vr.h, config/mn10300/linux.h,
5635         config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
5636         config/mn10300/mn10300.h, config/mn10300/mn10300.md,
5637         config/ns32k/__unorddf2.c, config/ns32k/__unordsf2.c,
5638         config/ns32k/netbsd.h, config/ns32k/ns32k-protos.h,
5639         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/ns32k/ns32k.md,
5640         config/pdp11/2bsd.h, config/pdp11/pdp11-modes.def,
5641         config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
5642         config/pdp11/pdp11.h, config/pdp11/pdp11.md, config/rs6000/biarch64.h,
5643         config/rs6000/default64.h, config/sh/coff.h, config/sh/crt1.asm,
5644         config/sh/crti.asm, config/sh/crtn.asm, config/sh/elf.h,
5645         config/sh/embed-elf.h, config/sh/linux.h, config/sh/little.h,
5646         config/sh/netbsd-elf.h, config/sh/rtems.h, config/sh/rtemself.h,
5647         config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
5648         config/sh/sh.md, config/sh/sh64.h, config/sh/shmedia.h,
5649         config/sh/sshmedia.h, config/sh/ushmedia.h, config/sparc/pbd.h,
5650         config/sparc/sparc.h, doc/install-old.texi, fixinc/fixinc.ptx,
5651         fixinc/fixinc.svr4: GNU CC -> GCC.
5653 2003-09-26  Loren James Rittle  <ljrittle@acm.org>
5655         * objc/objc-act.c (tm_p.h): Tweak order.
5656         * objc/Make-lang.in (objc/objc-act.o): Add $(TM_P_H).
5658 2003-09-26  Nathanael Nerode  <neroden@gcc.gnu.org>
5660         * config.gcc (hppa*64*-*-linux* | parisc*64*-*-linux*):
5661         Include t-slibgcc-elf-ver and t-linux in tmake_file.
5662         * config.gcc (hppa*64*-*-linux* | parisc*64-*-linux*):
5663         Disable fixproto.
5664         * config.gcc (i960-*-coff*, m68k-*-aout*, sparclite-*-coff*):
5665         Disable fixproto.
5666         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*,
5667         sparcv9-*-solaris2*, sparc-*-solaris2*): Disable fixproto.
5669         * config/i386/unix.h: Remove (unused) DEFAULT_ASSEMBLER_DIALECT.
5671 2003-09-26  Loren James Rittle  <ljrittle@acm.org>
5673         * config/i386/i386.h (ix86_return_in_memory): Revert my last patch.
5674         * objc/objc-act.c (tm_p.h): Include.
5676 2003-09-26  Per Bothner  <pbothner@apple.com>
5678         * dbxout.c (dbxout_typedefs):  Output typedefs in forward order.
5679         No longer any need to reverse by recursion.
5681 2003-09-26  Roger Sayle  <roger@eyesopen.com>
5682             Richard Henderson  <rth@redhat.com>
5684         PR optimization/11741
5685         * gcse.c (pre_insert_copy_insn): Tweak the logic for finding the
5686         appropriate set to match that in hash_scan_insn.  Fall back to
5687         the original copy method, if we can't validate changing insn.
5688         (pre_delete): Only delete instructions that have a single_set,
5689         instead of aborting when we encounter an PARALLEL insn with more
5690         then one SET.
5692 2003-09-26  Andreas Krebbel  <krebbel1@de.ibm.com>
5694         * config/s390/s390.md ("builtin_setjmp_setup"): Insn deleted.
5695         ("builtin_longjmp"): Insn deleted.
5696         ("save_stack_nonlocal"): Save literal pool base pointer behind
5697         backchain and stack pointer.
5698         ("restore_stack_nonlocal"): Restore literal pool base pointer.
5699         * config/s390/s390.h (STACK_SAVEAREA_MODE): Double size of
5700         the stack save area for the nonlocal goto case.
5702 2003-09-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5704         PR bootstrap/12358
5705         * pa.c (output_bvb): Fix typo.
5707 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
5709         * expmed.c (store_bit_field): Don't search for an integer mode
5710         unless we need the result.
5712 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
5714         * expr.c (emit_move_insn_1): If there is no move pattern for the
5715         original mode, try using a pattern for the corresponding integer mode.
5717 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
5719         PR middle-end/9200
5720         * combine.c (if_then_else_cond): Tighten mode check.
5722 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
5724         * cppcharset.c, cpphash.h: Rename 'struct strbuf' to
5725         'struct _cpp_strbuf'.
5727         * config/i386/netbsd-elf.h, config/i386/netbsd64.h,
5728         config/i386/netware.h, config/i386/nto.h, config/i386/openbsd.h,
5729         config/i386/pentium.md, config/i386/pmmintrin.h, config/i386/ppro.md,
5730         config/i386/ptx4-i.h, config/i386/rtemself.h, config/i386/sco5.h,
5731         config/i386/sol2.h, config/i386/svr3gas.h, config/i386/sysv3.h,
5732         config/i386/sysv4-cpp.h, config/i386/sysv4.h, config/i386/sysv5.h,
5733         config/i386/unix.h, config/i386/uwin.h, config/i386/vsta.h,
5734         config/i386/xm-cygwin.h, config/i386/xm-djgpp.h,
5735         config/i386/xm-mingw32.h, config/i386/xmmintrin.h: Replace
5736         "GNU CC", "GNU compiler", and "GNU C-compiler" with "GCC".
5737         * config/i386/i386-aout.h, config/i386/i386-coff.h,
5738         config/i386/i386-interix.h, config/i386/i386-interix3.h,
5739         config/i386/i386-modes.def, config/i386/i386-protos.h,
5740         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
5741         config/i386/i386elf.h, config/i386/k6.md, config/i386/kaos-i386.h,
5742         config/i386/linux-aout.h, config/i386/linux.h, config/i386/linux64.h,
5743         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
5744         config/i386/mmintrin.h, config/i386/moss.h: GNU CC -> GCC.
5745         "GNU compiler" -> GCC.
5746         * config/i386/att.h, config/i386/beos-elf.h, config/i386/biarch64.h,
5747         config/i386/bsd.h, config/i386/crtdll.h, config/i386/cygming.h,
5748         config/i386/cygwin.h, config/i386/cygwin1.c, config/i386/cygwin2.c,
5749         config/i386/darwin.h, config/i386/djgpp.h, config/i386/emmintrin.h,
5750         config/i386/freebsd-aout.h, config/i386/freebsd.h,
5751         config/i386/freebsd64.h, config/i386/gas.h: GNU CC -> GCC.
5753 2003-09-25  Kelley Cook  <kelleycook@wideopenwest.com>
5755         * cgraph.c (dump_cgraph):  Don't output newline before dump.  Add in
5756         "local" to the callgraph dump.  Output "after inlining" earlier.
5757         * cgraphunit.c: Fix dumpfile whitespace and commonize headers of the
5758         callgraph dumps.  Correct misspellings.
5759         (cgraph_decide_inlining):  Output number of insns before inlining.
5760         Output the calling function into which a function is inlined.
5761         (cgraph_decide_small_functions): Format dump file like always_inline.
5763 2003-09-25  Loren James Rittle  <ljrittle@acm.org>
5765         * config/i386/i386.h (ix86_return_in_memory): Add prototype.
5767 2003-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
5769         * config/s390/s390.c (s390_emit_prologue): Simplify accesses to
5770         FPR slots in the save area.
5771         (s390_emit_epilogue): Likewise.
5773 2003-09-25  Richard Sandiford  <rsandifo@redhat.com>
5775         * cgraph.h (cgraph_remove_edge): Declare.
5776         * cgraph.c (cgraph_remove_edge): Make extern.
5777         * cgraphunit.c (cgraph_finalize_function): Call cgraph_remove_edge
5778         instead of cgraph_remove_call.
5780 2003-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
5782         * objc/objc-act.c (gen_declaration_1): Fix printf format.
5784 2003-09-25  Richard Earnshaw  <rearnsha@arm.com>
5786         * arm.c (all_cores): arm710t, arm720t and arm740t are all based on the
5787         arm7tdmi core.
5789 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
5791         * config/darwin-protos.h (objc_image_info_section):
5792         New prototype.
5794 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
5796         * Makefile.in (stub-objc.o): Depend on $(GGC_H).
5798 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
5800         * config.gcc: Get rid of more gratuitious 'x'es.  Actually allow
5801         tsc701 as a --with-cpu, --with-tune setting for sparc.
5803 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
5805         * c-parse.in (objc_try_stmt): Do not specify a %type.
5807 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
5809         * config.gcc: New 'widely ported system' clause for rtems.
5810         Set thread file there, not in individual clauses.
5812 2003-09-25  Richard Sandiford  <rsandifo@redhat.com>
5814         PR target/6222
5815         * config/mips/mips.c (mips_va_arg): Handle arguments that must be
5816         passed on the stack.
5818 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
5820         * config.gcc (widely ported systems section): Mostly alphabetize
5821         by system.  Comment the case where we can't.
5822         * config.gcc (widely ported systems section): Reindent and clean up.
5824         * config.gcc: Remove some unnecessary uses of 'x' in case statements.
5825         Actually allow ep9312 as an arm --with-arch setting.
5827         * config.gcc (*-hpux11): Disable fixproto.
5829 2003-09-24  Phil Edwards  <phil@codesourcery.com>
5831         PR pch/12112
5832         * gcc/cppfiles.c (pch_open_file): Return based on combined
5833         result of all files.
5834         (validate_pch): Return validate flag for current file.
5836 2003-09-24  Roger Sayle  <roger@eyesopen.com>
5838         PR bootstrap/12358
5839         * fold-const.c (tree_swap_operands_p): Only reorder operands when
5840         one of the operands is constant.
5842 2003-09-24  Ziemowit Laski  <zlaski@apple.com>
5844         MERGE OF objc-improvements-branch into MAINLINE:
5845         * Makefile.in (C_OBJS): Add in stub-objc.o.
5846         (c-parse.y): Change sed demarcations to begin with '@@'.
5847         (stub-objc.o): New rule.
5848         * c-common.c (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
5849         flag_replace_objc_classes): New flags.
5850         * c-common.h (RID_AT_THROW, RID_AT_TRY, RID_AT_CATCH, RID_AT_FINALLY,
5851         RID_AT_SYNCHRONIZED): New keywords.
5852         (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
5853         flag_replace_objc_classes): New flags.
5854         (lookup_interface, is_class_name, objc_is_object_ptr, objc_check_decl,
5855         objc_comptypes, objc_message_selector, lookup_objc_ivar,
5856         get_current_scope, objc_mark_locals_volatile): New prototypes,
5857         some moved from c-tree.h.
5858         * c-decl.c (get_current_scope, objc_mark_locals_volatile): New functions.
5859         (finish_decl): Adjust where objc_check_decl() gets called.
5860         * c-lang.c (lookup_interface, is_class_name, objc_is_id,  objc_check_decl,
5861         objc_comptypes, objc_message_selector, lookup_objc_ivar): Remove stubs.
5862         * c-opts.c (c_common_handle_option): Add handling for  flag_nil_receivers,
5863         flag_objc_exceptions, flag_replace_objc_classes and flag_zero_link.
5864         * c-parse.in: Replace 'ifc' and 'end ifc' sed markers with '@@ifc' and
5865         '@@end_ifc', respectively.
5866         (AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY, AT_SYNCHRONIZED): New %tokens.
5867         (objc_try_stmt, superclass, class_ivars, objc_try_catch-stmt,
5868         objc_finally_block): New rules.
5869         (component_decl_list2): Clean up semantic action for @defs construct.
5870         (component_decl, c99_block_start): Remove call to add_objc_decls().
5871         (poplevel): Add call to objc_clear_super_receiver().
5872         (stmt): Add rules for @throw, @try..@catch..@finally and @synchronized
5873         constructs.
5874         (classdef, methodprotolist): Clean up/simplify.
5875         (methodprotolist2): Eliminate.
5876         (methodproto): Call add_method() instead of add_class_method() and
5877         add_instance_method().
5878         (receiver): Add TYPENAME production.
5879         (reswords): Add "throw", "try", "catch", "finally" and "synchronized".
5880         (rid_to_yy): Add AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY and
5881         AT_SYNCHRONIZED.
5882         * c-tree.h (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
5883         objc_comptypes, objc_message_selector)
5884         * c-typeck.c (comptypes): In ObjC mode, call objc_comptypes() for
5885         struct and pointer types.
5886         (build_c_cast): Do not discard ObjC protocol qualifiers.
5887         (convert_for_assignment): Cache result of comp_target_types() instead
5888         of calling it more than once.
5889         * c.opt (fnext-runtime): Update description string.
5890         (fnil-receivers, fobjc-exceptions, freplace-objc-classes, fzero-link):
5891         New ObjC/ObjC++-specific flags.
5892         * function.h (GCC_FUNCTION_H): Header guard.
5893         * gengtype-lex.l: Teach lexer about new @@... sed demarcations.
5894         * stub-objc.c: New file, to be used to satisfy references to ObjC
5895         functions by the C and C++ front-ends.
5896         * config/darwin.c (_OBJC_IMAGE_INFO): New global metadata.
5897         * config/darwin.h (FUNCTION): Add in_objc_image_info.
5898         (SECTION_FUNCTION): Add objc_image_info_section.
5899         * doc/invoke.texi: Link to GCC web site for Objective-C information.
5900         (-fconstant-string-class): Update documentation.
5901         (-fno-nil-receivers, -fobjc-exceptions, -freplace-objc-classes,
5902         -fzero-link): New documentation.
5903         * objc/Make-lang.in (objc-parse.y): Change sed demarcations to begin
5904         with '@@'.
5905         * objc/lang-specs.h (@objective-c-header): Fix -E spec.
5906         * objc/objc/objc-act.c: Replace TYPE_NAME with OBJC_TYPE_NAME
5907         throughout; provide casts for return values from memory allocation
5908         functions (xmalloc, alloca, ggc_alloc, etc.).
5909         (OBJC_VOID_AT_END): New macro.
5910         (rtl.h): Do not #include any more.
5911         (STRING_OBJECT_GLOBAL_NAME): Replaced with STRING_OBJECT_GLOBAL_FORMAT.
5912         (TAG_MSGSEND_STRET, TAG_MSGSENDSUPER_STRET, TAG_MSGSEND_NONNIL,
5913         TAG_MSGSEND_NONNIL_STRET, TAG_EXCEPTIONEXTRACT, TAG_EXCEPTIONTRYENTER,
5914         TAG_EXCEPTIONTRYEXIT, TAG_EXCEPTIONMATCH, TAG_EXCEPTIONTHROW,
5915         TAG_SYNCENTER, TAG_SYNCEXIT): New NeXT runtime entry points.
5916         (struct val_stack, catch_count_stack, exc_binding_stack,  val_stack_push,
5917         val_stack_pop): New.
5918         (objc_check_decl): Fix precondition for error message, along with
5919         the message itself.
5920         (lookup_and_install_protocols): Remove nonexistent protocols from
5921         protocol list instead of returning error_mark_node.
5922         (create_builtin_decl): Use DECL_ARTIFICIAL only for VAR_DECLs.
5923         (setup_string_decl): Generalize to use STRING_OBJECT_GLOBAL_FORMAT.
5924         (synth_module_prologue): General clean-up; construct NeXT-specific
5925         runtime API prototypes if needed.
5926         (build_string_class_template): Remove.
5927         (check_string_class_template, string_layout_checked): New.
5928         (build_objc_string_object): Generalize to work with
5929         -fconstant-string-class.
5930         (build_objc_symtab_template): Fix layout for the NeXT runtime.
5931         (build_metadata_decl): New.
5932         (forward_declare_categories): Call build_metadata_decl() instead of
5933         create_builtin_decl() et al.
5934         (build_module_descriptor): Use OBJC_VOID_AT_END instead of
5935         void_list_node_1.
5936         (build_selector_reference_decl, build_class_reference_decl,
5937         build_objc_string_decl): Do not set TREE_READONLY.
5938         (get_proto_encoding): Do not call hack_method_prototype().
5939         (get_class_reference): Add failure mode for invalid class names;
5940         support -fzero-link; defer if in an ObjC++ template declaration.
5941         (objc_declare_alias, objc_declare_class): Fix up duplicate name
5942         lookup; check for global scope if in ObjC++.
5943         (is_class_name): Generalize to work with various tree nodes (TYPE_DECL,
5944         RECORD_TYPE, IDENTIFIER_NODE, etc.)
5945         (objc_is_id): Removed.
5946         (objc_is_object_ptr): New function.
5947         (get_class_ivars_from_name): New function, used for @defs construct.
5948         (get_class_ivars): Add option to return raw ivars; create a
5949         ClASS_OWN_IVARS list for each class as needed.
5950         (objc_enter_block, objc_exit_block, objc_declare_variable,
5951         objc_build_throw_stmt, val_stack_push, val_stack_pop,
5952         objc_build_try_enter_fragment, objc_build_extract_expr,
5953         objc_build_try_exit_fragment, objc_build_extract_fragment,
5954         objc_build_try_prologue, objc_build_try_epilogue,
5955         objc_build_catch_stmt, objc_build_catch_epilogue,
5956         objc_build_finally_prologue, objc_build_finally_epilogue,
5957         objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
5958         objc_build_synchronized_epilogue, build_objc_exception_stuff):
5959         New functions.
5960         (_JBLEN): _setjmp jmpbuf size (needs to be made a target hook in
5961         the future).
5962         (build_private_template): Fix up calls to get_class_ivars().
5963         (offset_is_register, forwarding_offset): Remove.
5964         (objc_method_parm_type, objc_encoded_type_size): New functions.
5965         (encode_method_prototype): Simplify to no longer depend on
5966         back-end information.
5967         (build_tmp_function_decl_xxx, build_tmp_function_decl,
5968         hack_method_prototype): Removed.
5969         (generate_protocol_references): Remove calls to
5970         build_tmp_function_decl().
5971         (generate_protocols): Adjust calls to encode_method_prototype().
5972         (build_class_template): Generate sel_id' and 'gc_object_type' fields
5973         for the NeXT runtime.
5974         (synth_forward_declarations): Call build_metadata_decl().
5975         (check_ivars): Check that the number of ivars matches also.
5976         (build_super_template): Modify super_type directly; disable debugging
5977         output while generating decl.
5978         (build_ivar_list_initializer): Skip list elements that are not
5979         FIELD_DECLs.
5980         (ivar_list_length): New function.
5981         (generate_ivar_lists): Call ivar_list_length() instead of list_length()
5982         and encode_method_prototype() instead of encode_method_def().
5983         (build_shared_structure_initializer): Generate 'sel_id' field for
5984         the NeXT runtime.
5985         (generate_category): Do not set TREE_USED.
5986         (build_keyword_selector): Ditto; transform into a function argument
5987         chain.
5988         (get_arg_type_list): If there are no user-specified arguments, use
5989         '...'; use OBJC_VOID_AT_END.
5990         (check_duplicates): Add a parameter indicating whether methods or
5991         selectors are being checked.
5992         (receiver_is_class_object): Add parameters indicating whether
5993         receiver is 'self' or 'super'; robustify.
5994         (build_message_expr): Defer call to finish_message_expr() if
5995         inside an ObjC++ template.
5996         (lookup_method_in_hash_lists): New function.
5997         (finish_message_expr): Complete rewrite/fix.
5998         (build_objc_method_call): Ditto; factor out commonalities between
5999         the GNU and NeXT runtimes; acccommodate ..._stret and ...NonNil
6000         messenger variants on the NeXT.
6001         (lookup_instance_method_static, lookup_class_method_static):
6002         Fold into a single lookup_method_static() function with an
6003         additional parameter.
6004         (add_class_method, add_instance_method): Fold into a single
6005         add_method() function with an additional parameter.
6006         (add_category): Make duplicate categories a hard error in ObjC++.
6007         (add_instance_variable): Properly handle unnamed ivars, arrays of
6008         zero or no size and bitfields.  In ObjC++, check for nontrivial
6009         C++ class instances.
6010         (is_public): Allow C functions to access non-@public ivars, with
6011         a warning.
6012         (start_class): Move common initializations to
6013         synth_module_prologue(); check for global scope if in ObjC++.
6014         (continue_class): Fix calls to finish_struct().
6015         (objc_declare_protocols, start_protocol): Check for global scope
6016         if in ObjC++.
6017         (encode_pointer): Encode 'BOOL *' specially on the NeXT.
6018         (encode_aggregate_within): Rewrite to properly distinguish
6019         struct tags from typedefs in both ObjC and ObjC++.
6020         (encode_bitfield, encode_complete_bitfield): Remove.
6021         (encode_next_bitfield, encode_gnu_bitfield): New functions.
6022         (encode_field_decl): Call encode_next_bitfield() or
6023         encode_gnu_bitfield() as needed.
6024         (synth_self_and_ucmd_args): New function.
6025         (start_method_def): Use it.
6026         (objc_types_are_equivalent): New function.
6027         (comp_proto_with_proto): Use it instead of comptypes(), since
6028         we need symmetry.
6029         (really_start_method): Use lookup_method_static() instead of
6030         lookup_class_method_static() and lookup_instance_method_static();
6031         Emit 'extern "C"' if in ObjC++ mode.
6032         (add_objc_decls): Removed.
6033         (UOBJC_SUPER_scope): New variable.
6034         (get_super_receiver): Move construction of 'super' from
6035         add_objc_decls(); remove dependency on struct objc_class.
6036         (encode_method_def): Removed; encode_method_prototype() is
6037         used instead.
6038         (objc_clear_super_receiver): New function.
6039         (objc_expand_function_end): Do not do anything for ordinary
6040         C functions.
6041         (finish_method_def): Mark ObjC methods as un-inlinable.
6042         (gen_declaration_1): Emit widths of bitfields.
6043         (finish_objc): Call generate_objc_image_info() if needed;
6044         use check_duplicates() when checking for selector duplicates.
6045         (generate_objc_image_info): New function.
6046         * objc/objc-act.h (add_instance_method, add_class_method,
6047         get_class_ivars): Remove prototypes.
6048         (objc_build_throw_stmt, objc_build_try_catch_finally_stmt,
6049         objc_build_synchronized_prologue, objc_build_synchronized_epilogue,
6050         objc_build_catch_stmt, objc_build_catch_epilogue,
6051         objc_build_finally_prologue, objc_build_finally_epilogue,
6052         add_method, get_class_ivars_from_name): New prototypes.
6053         (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): New.
6054         (TYPE_PROTOCOL_LIST): Robustify to distinguish from
6055         TRANSLATION_UNIT_DECLs.
6056         (OBJC_TYPE_NAME): New.
6057         (objc_tree_code): Ensure that either <c-tree.h> or <cp/cp-tree.h>
6058         got included.
6059         (IS_SUPER): Robustify.
6060         (umsg_stret_decl, umsg_super_stret_decl, umsg_nonnil_decl,
6061         umsg_nonnil_stret_decl, objc_storage_class, objc_exception_extract_decl,
6062         objc_exception_try_enter_decl, objc_exception_try_exit_decl,
6063         objc_exception_match_decl, objc_exception_throw_decl,
6064         objc_sync_enter_decl, objc_sync_exit_decl, objc_exception_data_template,
6065         objc_setjmp_decl, objc_stack_exception_data, objc_caught_exception,
6066         objc_rethrow_exception, objc_eval_once, objc_exception_block_stack,
6067         objc_catch_type): New ObjC/ObjC++ roots.
6068         * objc/objc-tree.def (MESSAGE_SEND_EXPR, CLASS_REFERENCE_EXPR): New
6069         ObjC/ObjC++ tree node codes.
6071 2003-09-24  Alexandre Oliva  <aoliva@redhat.com>
6073         * cpplib.c (do_pragma): Reintroduce cb_line_change call in the
6074         code path that calls a handler.
6076 2003-09-24  Nathanael Nerode  <neroden@gcc.gnu.org>
6078         * config.gcc (c4x-*, tic4x-*, d30v-*, mmix-knuth-mmixware):
6079         Disable fixproto.
6081         * config.gcc: Clean up and reindent $with_cpu=yes|no clause and
6082         the section giving $with_cpu defaults by target.
6084         * config.gcc (arm-*-coff*, armel-*-coff*, arm*-*-ecos-elf,
6085         arm*-*-elf, ep9312-*-elf, arm*-wince-pe*, arm*-*-pe*, arm*-*-pe*,
6086         rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*,
6087         rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*,
6088         rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*,
6089         i[34567]86-pc-msdosdjgpp*): Disable fixproto.
6091 2003-09-24  David Edelsohn  <edelsohn@gnu.org>
6093         * config/rs6000/rs6000.md (movti_power): Collapse case 1 and 2
6094         together.  Protect load string instruction with TARGET_STRING.
6095         (movti_string): Collapse case 1 and 2 together.
6097 2003-09-24  Nathan Sidwell  <nathan@codesourcery.com>
6099         * c-common.c (c_common_type_for_mode): Check for VOIDmode.
6101 2003-09-24  Richard Earnshaw  <rearnsha@arm.com>
6103         * arm.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Wrap in
6104         do...while(0)
6106 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
6108         * config.gcc: Move use_fixproto=no from generic vxworks clause to
6109         specific one.
6111         * config.gcc (powerpc-*-gnu-gnualtivec*): Disable fixproto
6112         (accidentally missed in last pass).
6114 2003-09-23  Andrew Pinski  <apinski@apple.com>
6116         PR bootstrap/12383
6117         * configure: Regenerate.
6119 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
6121         * config.gcc (x86_64-*-freebsd*): Disable fixproto (accidentally
6122         missed in last pass).
6124 2003-09-23  Alexandre Oliva  <aoliva@redhat.com>
6126         * config/mn10300/mn10300.md (andsi3): Fix cut&pasto in 0xfffffffe
6127         constant.
6129 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
6131         * config.gcc: Move vax-*-vms* unsupported notice up with the rest.
6133         * config.gcc (alpha64*-dec-*vms*, alpha*-dec-*vms*,
6134         powerpc-*-eabisim*, powerpc-*-eabi*, powerpcle-*-eabisim*,
6135         powerpcle-*-eabi*): Disable fixproto.
6137         * config.gcc: Move use_fixproto=no from generic FreeBSD clause to
6138         specific FreeBSD clauses.
6139         * config.gcc: Move use_fixproto=no from generic NetBSD clause to
6140         specific NetBSD clauses.
6141         * config.gcc: Move use_fixproto=no from generic OpenBSD clause
6142         to specific OpenBSD clauses.
6144 2003-09-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6146         * pa.c (hppa_expand_prologue): Do pic register save in frame marker
6147         without adding a frame note.
6148         * pa.md (allocate_stack): Save pic register in new frame marker when
6149         generating pic code.
6151 2003-09-23  Kelley Cook  <kelleycook@wideopenwest.com>
6153         * cgraphunit.c (cgraph_expand_all_functions): Renamed from
6154         cgraph_expand_functions.
6156 2003-09-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6158         * Makefile.in (gnucompare*): Merge into ...
6159         (slowcompare*): ... here.
6160         (fastcompare*): New targets.
6161         * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): Add checks for
6162         other "fast" cmp programs.
6163         * configure: Regenerate.
6165 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6167         * targhooks.c: Include output.h.
6168         * Makefile.in (targhooks.o): Add output.h to dependency list.
6170 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6172         * config.host: Removed superfluous newline.
6174 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
6176         * config.gcc: Use ${target}, not $machine.
6177         * configure.in: Don't set $machine.
6178         * configure: Regenerate.
6180 2003-09-23  Geoffrey Keating  <geoffk@apple.com>
6182         * config/t-darwin (crt2.o): Add stmp-int-hdrs to dependencies.
6184         * config/rs6000/rs6000.c (function_arg_pass_by_reference): Don't
6185         pass zero-size arrays by reference.
6186         (rs6000_va_arg): Likewise.
6188 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
6190         * config.gcc: Set use_fixproto=no in each specific *-gnu*
6191         configuration, rather than the generic one.
6193 2003-09-23  Richard Henderson  <rth@redhat.com>
6195         * tree-inline.c (remap_save_expr): Map new save_expr to identity
6196         rather than to error_mark_node.
6198 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6200         * configure.in (HAVE_GAS_SHF_MERGE): Always define to test result.
6201         Update description.
6202         * configure: Regenerate.
6203         * config.in: Likewise.
6204         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test for
6205         HAVE_GAS_SHF_MERGE value.
6206         * varasm.c (mergeable_string_section): Likewise.
6207         (mergeable_constant_section): Likewise.
6209 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6211         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
6212         value.
6214 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6216         * target.h (struct gcc_target): New member external_libcall.
6217         * target-def.h (TARGET_ASM_EXTERNAL_LIBCALL): Provide default.
6218         (TARGET_ASM_OUT): Use it.
6219         * doc/tm.texi (TARGET_ASM_EXTERNAL_LIBCALL): Document.
6220         * targhooks.c: Convert to ISO C 90.
6221         (default_external_libcall): New function.
6222         * targhooks.h (default_external_libcall): Declare.
6223         * varasm.c (assemble_external_libcall): Use
6224         targetm.asm_out.external_libcall instead of
6225         ASM_OUTPUT_EXTERNAL_LIBCALL.
6226         * config/mips/mips-protos.h [TARGET_IRIX5 || TARGET_IRIX 6]
6227         (mips_output_external_libcall): Declare.
6228         * config/mips/mips.c (mips_output_external_libcall): Change
6229         definition guard.
6230         Change to match TARGET_ASM_EXTERNAL_LIBCALL.
6231         Only operate for O32 ABI.
6232         * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Define
6233         instead of ASM_OUTPUT_EXTERNAL_LIBCALL.
6234         * config/mips/iris6.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Don't undef,
6235         superceded by TARGET_ASM_EXTERNAL_LIBCALL.
6237 2003-09-22  Nathnael Nerode  <neroden@gcc.gnu.org>
6239         * config.gcc: Do per-target disabling of fixproto here in clauses,
6240         not in t- fragments.
6241         * configure.in: Adjust to set STMP_FIXPROTO correctly.
6242         * configure: Regenerate.
6243         * config/arm/t-semi, config/cris/t-cris, config/i386/t-beos,
6244         config/i386/t-cygming, config/i386/t-nto, config/ia64/t-hpux,
6245         t-freebsd, t-linux, t-netbsd, t-openbsd, t-rtems, t-vxworks,
6246         xtensa/t-xtensa: Remove setting of STMP_FIXPROTO.
6247         * config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd,
6248         t-interix, t-linux-aout:  Delete files consisting only of
6249         setting of STMP_FIXPROTO.
6251         * config.host: Allow unknown hosts (not targets).  Allow
6252         ns32k-*-netbsdelf* as a host (not a target).  Remove redundant
6253         empty clauses.  Remove useless obsolete-configuration clause.
6254         Prune unsupported configuration list.  Collapse identical
6255         clauses for closely related systems.  Rewrite comment for
6256         unsupported hosts list.  Reorganize a little.
6258 2003-09-22  Richard Henderson  <rth@redhat.com>
6260         * c-common.c (c_common_signed_or_unsigned_type): Examine mode,
6261         not precision.
6263 2003-09-22  David Edelsohn  <edelsohn@gnu.org>
6264             Hartmut Penner  <hpenner@de.ibm.com>
6265             Segher Boessenkool  <boessen@de.ibm.com>
6267         * config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ...
6268         (gpr_or_gpr_p): Test INT_REGNO_P and convert to boolean.
6269         (rs6000_split_altivec_in_gprs): Rename to ...
6270         (rs6000_split_multireg_move): Add support for update addressing.
6271         * config/rs6000/rs6000-protos.h: Same.
6272         * config/rs6000/altivec.md: Same.
6273         * config/rs6000/rs6000.md (movdi_internal32): Use new splitter for
6274         multiple GPRs.
6275         (movti): Remove TARGET_STRING || TARGET_POWERPC64 final condition.
6276         (movti_power): Use new splitter for multiple GPRs.
6277         (movti_string): Same.
6278         (movti_ppc64): Same.
6280 2003-09-22  Bob Wilson  <bob.wilson@acm.org>
6282         * config/xtensa/xtensa-protos.h: Convert to ISO C90.
6283         * config/xtensa/xtensa.c: Convert to ISO C90.  Minor formatting fixes.
6285 2003-09-22  Alexandre Oliva  <aoliva@redhat.com>
6287         * config/mn10300/mn10300.md: Revert 2003-09-17's patch.
6288         (andsi3): Set attr cc to set_zn when using shifts or adds.
6290 2003-09-22  Bernardo Innocenti <bernie@develer.com>
6292         * doc/contrib.texi: Add Peter Barada, Paul Dale and myself.
6294 2003-09-22  Bernardo Innocenti  <bernie@develer.com>
6296         * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, RETURN_POPS_ARGS):
6297         Resurrect -mrtd option.
6299 2003-09-21  Andrew Pinski  <pinskia@physics.uc.edu>
6301         PR target/12281
6302         * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Call
6303         mark_referenced instead of setting TREE_SYMBOL_REFERENCED.
6305 2003-09-22  Olivier Hainque  <hainque@act-europe.fr>
6307         PR target/9786
6308         * reg-stack.c (convert_regs_1): Purge possible dead eh edges
6309         after potential deletion of trapping insn. Avoids later ICE
6310         from call to fixup_abnormal_edges.
6311         (convert_regs_2): Stack the current block successors before
6312         processing this block, that is, before the potential deletion of
6313         dead edges by convert_regs_1, because these edges have been used
6314         to initialize the predecessors count.
6316 2003-09-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
6318         * real.c: Fix several nits in the head comment.
6320 2003-09-21  Richard Henderson  <rth@redhat.com>
6322         * tree.h c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
6323         diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
6324         print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
6325         tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
6326         config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Revert.
6328 2003-09-21  Richard Henderson  <rth@redhat.com>
6330         * tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
6331         (TREE_FILENAME, TREE_LINENO): Likewise.
6332         (set_tree_locus, copy_tree_locus, set_tree_file_line): New.
6333         (TREE_LOCUS_SET_P): New.
6334         * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
6335         diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
6336         print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
6337         tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
6338         config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.
6340 2003-09-21  Nathanael Nerode  <neroden@gcc.gnu.org>
6342         * config/vax/vax-protos.h: Convert to ISO C90.
6343         * config/vax/vax.c: Convert to ISO C90.
6345 2003-09-21  Graham Stott  <grahams@btinternet.com>
6347        PR target/12353
6348        * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint.
6350 2003-09-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
6352         PR target/12301
6353         * reorg.c (stop_search_p): Return 1 for insns that can
6354         throw internally.
6356 2003-09-20  Richard Henderson  <rth@redhat.com>
6358         * c-format.c (gcc_diag_char_table): Add %J.
6359         (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
6360         (check_format_types): Fix wanted_type name lookup.
6361         (init_dynamic_diag_info): Setup %J.
6362         * diagnostic.c (text_specifies_location): Implement %J.
6363         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
6364         dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
6365         tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
6366         config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
6367         config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
6369         * tree-inline.c: Include intl.h
6370         (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
6371         * Makefile.in (tree-inline.o): Update.
6373 2003-09-20  Roger Sayle  <roger@eyesopen.com>
6375         * config/i386/i386.c (ix86_expand_carry_flag_compare): Fix
6376         transformation of a>=0 into (unsigned)a<0x80000000.
6378 2003-09-20  Andrew Pinski <apinski@apple.com>
6380         * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.
6382 2003-09-20  Nathanael Nerode  <neroden@gcc.gnu.org>
6384         * Makefile.in: Don't set (unused) DLLTOOL.
6386         * config/arm/t-linux, config/arm/t-netbsd, config/arm-t-semi:
6387         Remove obsolete references to ENQUIRE.
6389 2003-09-19  Nathanael Nerode  <neroden@gcc.gnu.org>
6391         * configure.in: Remove --with-elf, which doesn't work.
6392         * configure: Regenerate.
6393         * config.gcc: Remove references to $elf, which does nothing.
6395         * config/i386/xm-vsta.h: Remove xm-file believed useless.
6396         * config.build (i386-vsta): Remove reference to it.
6397         * config.host (i386-vsta): Remove reference to it.
6399 2003-09-19  Phil Edwards  <phil@codesourcery.com>
6401         * doc/install.texi:  Document the multiple testsuite options.
6403 2003-09-19  Gerald Pfeifer  <gerald@pfeifer.com>
6405         * doc/install.texi (Specific): Add the specific versions of GCC
6406         where support for FreeBSD 1, HP-UX version 9 and older, and AIX
6407         version 3 and older was discontinued.
6409 2003-09-19      Joel Sherrill <joel@oarcorp.com>
6411         * config/m68k/t-m68kbare, config/m68k/t-rtems: Change 68681 to
6412         68881.
6414 2003-09-19  Bernardo Innocenti  <bernie@develer.com>
6416         * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Add predefines
6417         for -m68030, -m68020-60 and -m68020-40.
6418         * config/m68k/m68k.h (TARGET_68030): New target flag.
6419         * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, MASK_REGPARM,
6420         TARGET_REGPARM): Remove.
6421         * config/m68k/m68k.h: Regroup and renumber target flags.
6422         * config/m68k/m68k.h (TARGET_SWITCHES): Fix some tabulations.
6423         * config/m68k/m68k.h (RETURN_POPS_ARGS): Always evaluate to 0.
6424         * config/m68k/m68k.h (FUNCTION_ARG): Likewise.
6425         * config/m68k/m68k.h (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
6426         * config/m68k/m68k-none.h: Use MASK_xxx values in M68K_CPU_xxx macros.
6428 2003-09-19  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
6430         * config/m68k/t-rtems (m68k-*-rtems*): New.
6431         * config.gcc: Use config/m68k/t-rtems.
6433 2003-09-19  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
6435         * config/mips/t-rtems: New.
6436         * config.gcc (mips*-*-rtems*): Use config/mips/t-rtems.
6438 2003-09-19  Kelley Cook  <kelleycook@wideopenwest.com>
6440         * cgraph.c: Fix typo in debugging output.
6442 2003-09-19  T. Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
6443             Eric Botcazou <ebotcazou@libertysurf.fr>
6445         PR target/12166
6446         * config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1.
6448 2003-09-18  Mike Stump  <mrs@apple.com>
6450         * c-ppoutput.c (print):  Use fileline typedef for field 'line'.
6451         (print_line, maybe_print_line, cb_define, cb_undef, cb_include,
6452         cb_ident, cb_def_pragma):  Use fileline typedef.
6453         * cpphash.h (struct cpp_reader):  Likewise for field out.first_line.
6455 2003-09-18  Danny Smith  <dannysmith@users.sourceforge.net>
6457         * config/i386/winnt.c (gen_stdcall_suffix): Quit summation of
6458         total parm size if a parm has incomplete type.
6459         (gen_fastcall_suffix): Likewise.
6461 2003-09-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6463         * except.c (output_function_exception_table): Adjust last change
6464         to handle TYPE of INTEGER_CST.
6466 2003-09-18  Mark Mitchell  <mark@codesourcery.com>
6468         PR target/11184
6469         * builtins.c (expand_builtin_apply): Use convert_memory_address
6470         before returning the value.
6472         * alias.c (find_base_value): Simplify use of
6473         convert_memory_address.
6474         (find_base_term): Likewise.
6475         * builtins.c (expand_builtin_stejmp_setup): Likewise.
6476         (expand_builtin_longjmp): Likewise.
6477         (expand_builtin_prefetch): Likewise.
6478         (get_memory_rtx): Likewise.
6479         (expand_builtin_return): Likewise.
6480         (expand_builtin_memcpy): Likewise.
6481         (expand_builtin_strncpy): Likewise.
6482         (expand_builtin_memset): Likewise.
6483         (expand_builtin_va_arg): Likewise.
6484         (expand_builtin_va_copy): Likewise.
6485         (expand_builtin_alloca): Likewise.
6486         * calls.c (expand_call): Likewise.
6487         * except.c (expand_builtin_extract_return_addr): Likewise.
6488         (expand_builtin_eh_return): Likewise.
6489         * explow.c (convert_memory_address): Define even when
6490         POINTER_EXTEND_UNSIGNED is not defined.  Do nothing if the address
6491         is already in the right mode.
6492         * explow.c (memory_address): Simplify use of convert_memory_address.
6493         (probe_stack_range): Likewise.
6494         * expmed.c (make_tree): Likewise.
6495         * expr.c (emit_block_move_in_libcall): Likewise.
6496         (expand_assignment): Likewise.
6497         (expand_expr): Likewise.
6498         * function.c (assign_parms): Likewise.
6499         (expand_function_end): Likewise.
6500         * integrate.c (copy_rtx_and_substitute): Likewise.
6501         * stmt.c (expand_computed_goto): Likewise.
6503 2003-09-18  Roger Sayle  <roger@eyesopen.com>
6505         * simplify-rtx.c (simplify_unary_operation): Only transform
6506         (not (eq X Y)) into (ne X Y) when mode is BImode or STORE_FLAG_VALUE
6507         is -1.  RTL "not" is a bit-wise not, "~", not a logical not "!".
6509 2003-09-18  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6511         PR target/11674
6512         * config/i386/i386.c (x86_emit_floatuns): Also handle SImode operand.
6514 2003-09-18  Roger Sayle  <roger@eyesopen.com>
6516         * tree.def (FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR,
6517         PARITY_EXPR): Delete unused tree codes.
6518         * c-common.c (c_common_truthvalue_conversion): Delete references
6519         to FFS_EXPR and POPCOUNT_EXPR.
6520         * c-pretty-print.c (pp_c_postfix_expression): Remove FFS_EXPR.
6521         (pp_c_expression): Likewise.
6522         * expr.c (expand_expr): Delete RTL expansion of FFS_EXPR, CLZ_EXPR,
6523         CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.
6524         * fold-const.c (tree_expr_nonnegative_p): Remove FFS_EXPR, CLZ_EXPR,
6525         CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.  Add support for calls to
6526         BUILT_IN_FFS, BUILT_IN_PARITY and BUILT_IN_POPCOUNT and their long
6527         and long long variants.
6529 2003-09-18  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6531         * c-pretty-print.h (pp_type_specifier_seq): Fix thinko.
6532         * c-pretty-print.c: Fix formatting.
6533         (pp_c_integer_constant): Append type annotation to literals.  Tidy.
6534         (pp_c_type_specifier): Tidy.
6535         (pp_c_compound_literal): New function.
6536         (pp_c_initializer): Simplify..
6537         (pp_c_initializer_list): Likewise.
6538         (pp_c_brace_enclosed_initializer_list): New function.
6539         (pp_c_postfix_expression): Simplify.
6541 2003-09-17  Alexandre Oliva  <aoliva@redhat.com>
6543         * config/mn10300/mn10300.md (andsi3, iorsi3, xorsi3,
6544         one_complsi2, bit-clear, bit-set, iorqi3): Make them set_zn.
6546 2003-09-17  Richard Henderson  <rth@redhat.com>
6548         * tree-optimize.c (tree_rest_of_compilation): Save and restore
6549         input_location.
6551 2003-09-17  Daniel Jacobowitz  <drow@mvista.com>
6553         * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Give -lpthread before -lc.
6555 2003-09-17  Richard Henderson  <rth@redhat.com>
6557         * cfg.c (dump_flow_info): Skip register dump if reg_n_info null.
6559 2003-09-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6561         * configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag.
6562         * configure: Regenerate.
6564 2003-09-17  Mark Mitchell  <mark@codesourcery.com>
6566         PR debug/12066
6567         * dbxout.c (dbxout_init): Use a langhook to find builtin types.
6568         * langhooks-def.h (lhd_return_null_tree_v): New function.
6569         (LANG_HOOKS_BUILTIN_TYPE_DECLS): New macro.
6570         (LANG_HOOKS_DECLS): Add it to the intializer.
6571         * langhooks.c (lhd_return_null_tree_v): New function.
6572         * langhooks.h (lang_hooks_for_decls): Add builtin_type_decls.
6574 2003-09-17  Daniel Jacobowitz  <drow@mvista.com>
6576         * configure.in: Quote gcc_config_arguments for configargs.h.
6577         * configure: Regenerated.
6578         * gccbug.in: Don't shell-expand gcc_config_arguments.
6580 2003-09-17  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6582         PR c++/11357
6583         * c-pretty-print.c (pp_c_floating_constant): Append
6584         type-annotation to floating constants.
6586 2003-09-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6588         * config/mips/iris5.h (TARGET_OS_CPP_BUILTINS): Define _LONGLONG.
6589         Define _ABIO32.
6590         Use it for _MIPS_SIM.
6591         * config/mips/iris6-o32.h (TARGET_OS_CPP_BUILTINS): Removed.
6593         * config/mips/iris6-o32-as.h (SUBTARGET_ASM_OPTIMIZING_SPEC):
6594         Moved ...
6595         * config/mips/iris5.h (SUBTARGET_ASM_OPTIMIZING_SPEC): ... here,
6596         updating comment.
6597         Fixes PR target/10190.
6599 2003-09-17  Daniel Jacobowitz  <drow@mvista.com>
6601         * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Make -pthread apply
6602         to shared libraries.
6604 2003-09-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
6606         PR optimization/11646
6607         * cfgrtl.c (purge_dead_edges) [JUMP_INSN]: Rematerialize the
6608         EDGE_ABNORMAL flag for EH edges.
6609         * toplev.c (rest_of_handle_cse): Delete unreachable blocks
6610         if dead edges were purged.
6612 2003-09-16  Bernardo Innocenti  <bernie@develer.com>
6614         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines.
6615         * config/m68k/m68k-none.h (CPP_CPU_DEFAULT_SPEC): Kill all definitions.
6616         * config/m68k/m68k-none.h (CPP_FPU_SPEC): Remove.
6617         * config/m68k/m68k-none.h (CPP_SPEC): Likewise.
6619 2003-09-16  Ian Lance Taylor  <ian@wasabisystems.com>
6621         * cfgcleanup.c (label_is_jump_target_p): Correct use of table
6622         returned by tablejump_p.
6624 2003-09-16  Joel Brobecker  <brobecker@gnat.com>
6626         * dwarf2asm.c (dw2_asm_output_nstring): Add comment.
6628 2003-09-16  Roger Sayle  <roger@eyesopen.com>
6630         PR bootstrap/12269
6631         * simplify-rtx.c (simplify_gen_relational): Allow the cmp_mode
6632         argument to be VOIDmode, taking the mode of the comparison from
6633         the operands.  Only call simplify_relational_operation if we
6634         know the mode of the comparison.  Honor FLOAT_STORE_FLAG_VALUE
6635         if comparison has a floating point result.  Ensure that the
6636         result is always of the specified mode.
6637         (simplify_replace_rtx): Simplify call to simplify_gen_relational.
6638         (simplify_unary_operation): Ensure the correct mode and cmp_mode
6639         are always passed to simplify_gen_relational.  Simplify NOT of
6640         comparison operator in any mode, not just BImode.
6641         (simplify_ternary_operation): Correct tests on the return value
6642         of simplify_relational_operation to use const_true_rtx, not
6643         const1_rtx.  Abort if it ever returns a non-constant result.
6645         * cfgloopanal.c (count_strange_loop_iterations): Use the function
6646         simplify_relational_operation, not simplify_gen_relational, if
6647         we're only interested in constant comparisons and will ignore
6648         non-constant results.
6650 2003-09-16  Roger Sayle  <roger@eyesopen.com>
6652         * fold-const.c (tree_swap_operands_p): New function to determine
6653         the prefered ordering of operands.
6654         (fold): Numerous clean-ups.  Use tree_swap_operands_p when swapping
6655         operands to commutative, comparison or ternary operators.  Replace
6656         uses of TREE_SET_CODE with recursive call to fold.  Remove duplicate
6657         transformation of A ? B : C into !A ? C : B.
6659 2003-09-16  Jakub Jelinek  <jakub@redhat.com>
6661         * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6662         * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6663         * config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6664         * config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6665         * config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6666         * config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6667         * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6668         * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6670 2003-09-16  Jason Merrill  <jason@redhat.com>
6671             Jakub Jelinek  <jakub@redhat.com>
6673         * c-common.c (handle_warn_unused_result_attribute): New function.
6674         (c_common_attribute_table): Add warn_unused_result.
6675         (c_expand_expr): Issue warning when result of inlined function
6676         with warn_unused_result attribute is ignored.
6677         * calls.c (expand_call): Issue warning when result of function
6678         with warn_unused_result attribute is ignored.
6679         * c-common.h (STMT_EXPR_WARN_UNUSED_RESULT): Define.
6680         * expr.c (expr_wfl_stack): Define.
6681         (expand_expr) <case EXPR_WITH_FILE_LOCATION>: If ignore,
6682         pass const0_rtx as target.  Chain locations into expr_wfl_stack.
6683         * tree-inline.c (expand_call_inline): Set STMT_EXPR_WARN_UNUSED_RESULT
6684         bit if inlined function has warn_unused_result attribute.
6685         * input.h (expr_wfl_stack): Declare.
6686         * doc/extend.texi: Document warn_unused_result attribute.
6688 2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
6690         * cpplib.c (do_pragma): Remove unnecessary cb_line_change.
6692 2003-09-15  Bob Wilson  <bob.wilson@acm.org>
6694         * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Add
6695         ATTRIBUTE_UNUSED.
6696         (call_insn_operand): For PIC, don't allow a direct call to a
6697         function in a different section than the current one.
6699 2003-09-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6701         * doc/invoke.texi (Warning Options): Add missing hyphen before
6702         "Wimport".  Change "-Wno-endif-labels" to "-Wendif-labels".
6703         Move "-Wold-style-definition" to the C-only section.
6704         Fix the ordering of the warning options.
6706 2003-09-15  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6707             Jeff Law  <law@redhat.com>
6709         * gcse.c (remove_reachable_equiv_notes): New.
6710         replace_store_insn): Call it.  Update antic list.
6711         (store_killed_in_insn): Take REG_EQUAL notes into account.
6712         (build_store_vectors, delete_store): Add parameter to
6713         replace_store_insn call.
6715 2003-09-15  Bob Wilson  <bob.wilson@acm.org>
6717         * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use
6718         SYMBOL_REF_LOCAL_P.
6720 2003-09-15  Kazu Hirata  <kazu@cs.umass.edu>
6722         * expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
6723         (FUNCTION_ARG_PADDING): Use DEFAULT_FUNCTION_ARG_PADDING.
6724         * config/ia64/ia64.c (ia64_hpux_function_arg_padding):
6725         Likewise.
6726         * config/m68hc11/m68hc11.c (m68hc11_function_arg_padding):
6727         Likewise.
6728         * config/rs6000/rs6000.c (function_arg_padding): Likewise.
6729         * config/sparc/sparc.c (function_arg_padding): Likewise.
6731 2003-09-15  Vladimir Makarov  <vmakarov@redhat.com>
6733         * haifa-sched.c (schedule_block): Use ready_remove_first instead
6734         of choose_ready for non-dfa insn scheduling.
6736 2003-09-15  Andreas Jaeger  <aj@suse.de>
6737             Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6739         * doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
6740         * c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
6741         * c-parse.in: Warn about old-style parameter definition.
6742         * c-common.c: Define warn_old_style_defintion.
6743         * c-common.h: Declare it.
6744         * c.opt: Add Wold-style-defintion.
6746 2003-09-15  Andreas Jaeger  <aj@suse.de>
6748         * config/rs6000/altivec.h: Convert () prototypes to ISO C90.
6749         * config/rs6000/rs6000.c: Likewise.
6751 2003-09-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6753         PR optimization/10914
6754         * expr.h (get_condition, canonicalize_condition): Declaration changed.
6755         * cfgloopanal.c (simple_loop_exit_p): Add parameter to a get_condition
6756         and canonicalize_condition calls.
6757         * gcse.c (fis_get_condition, delete_null_pointer_checks_1,
6758         delete_null_pointer_checks): Ditto.
6759         * ifcvt.c (noce_get_alt_condition, noce_get_condition): Ditto.
6760         * predict.c (estimate_probability, expected_value_to_br_prob): Ditto.
6761         * loop.c (check_dbra_loop, get_condition_for_loop): Ditto.
6762         (canonicalize_condition, get_condition): Allow to return comparisons
6763         of cc mode registers.
6764         * loop-unswitch.c (may_unswitch_on_p, unswitch_single_loop): Allow
6765         cc mode registers comparison in condition.
6767 2003-09-12  Mark Mitchell  <mark@codesourcery.com>
6769         * coverage.c (create_coverage): Do not call pushlevel/poplevel.
6770         * langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
6771         function.
6772         * langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.
6774 2003-09-14  Kazu Hirata  <kazu@cs.umass.edu>
6776         * combine.c (simplify_comparison): Convert
6777         (ne (and (lshiftrt (xor X CST) Y) 1) 0) into
6778         (eq (and (lshiftrt X Y) 1) 0).
6780 2003-09-14  Kazu Hirata  <kazu@cs.umass.edu>
6782         * alias.c: Follow spelling conventions.
6783         * cpphash.h: Likewise.
6784         * fold-const.c: Likewise.
6786 2003-09-14  Alexandre Oliva  <aoliva@redhat.com>
6788         * c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
6789         * c-lex.c (cb_line_change): Skip line changing whenever
6790         c-ppoutput.c would.
6792 2003-09-14  Steven Bosscher  <steven@gcc.gnu.org>
6794         * ra.c: Convert to ISO C90 prototypes.
6795         * ra-build.c: Likewise.
6796         * ra-colorize.c: Likewise.
6797         * ra-debug.c: Likewise.
6798         * ra-rewrite.c: Likewise.
6800 2003-09-14  Richard Sandiford  <rsandifo@redhat.com>
6802         * Makefile.in (%.dvi): Remove excess $(docdir).
6804 2003-09-14  Richard Sandiford  <rsandifo@redhat.com>
6806         * function.c (STACK_BYTES): Move definition to head of file.
6807         (assign_parms): Don't pass current_function_pretend_args_size
6808         directly to SETUP_INCOMING_VARARGS.  For partial register arguments,
6809         round current_function_pretend_args_size up to STACK_BYTES.  Skip any
6810         excess before laying out the argument.
6812 2003-09-14  Andreas Jaeger  <aj@suse.de>
6814         * objc/objc-act.c: Convert to ISO C90 prototypes.
6815         * objc/objc-act.h: Likewise.
6817 2003-09-14  Olaf Hering  <olh@suse.de>
6819         * config/rs6000/rs6000.c: Fix typo: Remove extra ')'.
6821 2003-09-13  Andrew Pinski <pinskia@physics.uc.edu>
6823         PR target/12021
6824         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Remove the asserts
6825         as they already are done in config/m68k/m68k.h.
6826         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Likewise
6828         * config/rs6000/rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
6829         (machopic_output_stub): Only generate pic base symbols when using pic
6830         and generate them in the form L00000000$spb.
6832 2003-09-13  Richard Henderson  <rth@redhat.com>
6834         * cgraphunit.c (cgraph_assemble_pending_functions): Export.
6835         (cgraph_finalize_function): Revert TREE_ASM_WRITTEN check.
6836         * cgraph.h: Update.
6838 2003-09-12  Dale Johannesen  <dalej@apple.com>
6840         * config/rs6000/rs6000.c: Fix typos in previous.
6842 2003-09-12  Ziemowit Laski  <zlaski@apple.com>
6844         * pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
6845         when allocating pp->buffer.
6847 2003-09-12  Geoffrey Keating  <geoffk@apple.com>
6849         * config/darwin.c (machopic_select_rtx_section): Use
6850         const_data_section for things that might require relocation.
6852 2003-09-12  H.J. Lu  <hongjiu.lu@intel.com>
6854         PR bootstrap/12264
6855         * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
6857 2003-09-12  Bob Wilson  <bob.wilson@acm.org>
6859         * config/xtensa/elf.h (ASM_SPEC): Remove no-density option.  Reformat.
6860         * config/xtensa/linux.h (ASM_SPEC): Likewise.
6861         * config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian,
6862         -mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16,
6863         -m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext,
6864         -m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div,
6865         -m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and
6866         -m[no-]hard-float-rsqrt options.  Delete corresponding MASK_* macros
6867         and redefine corresponding TARGET_* macros with constants from the
6868         xtensa-config.h header.
6869         * doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
6870         for the options listed above.
6872 2003-09-12  Dale Johannesen  <dalej@apple.com>
6874         * config/rs6000/rs6000-protos.h:  Use C90 prototypes.
6875         * config/rs6000/rs6000-c.c:  Ditto.
6876         * config/rs6000/rs6000.c:  Ditto.
6877         * config/rs6000/ sysv4.h:  Ditto.
6879 2003-09-12  Chris Lattner <sabre@nondot.org>
6881         * loop.c: Move comments describing BIV's and GIV's to top of file
6883 2003-09-12  Roger Sayle  <roger@eyesopen.com>
6885         PR optimization/8967
6886         * alias.c (write_dependence_p): Modify to take an additional constp
6887         argument that controls whether the UNCHANGING_RTX_P flags are used.
6888         (anti_dependence, output_dependence): Adjust write_dependence_p
6889         callers to pass this additional argument, to return the same result.
6890         (unchanging_anti_dependence): New variant of anti_dependence that
6891         ignores the UNCHANGING_RTX_P property on memory references.
6892         * rtl.h (unchaning_anti_dependence): Prototype here.
6893         * flow.c (init_propagate_block): Place fake constant mem writes on
6894         the mem_set_list so that dead writes to const variables are deleted.
6895         (insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
6896         (mark_used_regs): Likewise.
6898 2003-09-12  Richard Sandiford  <rsandifo@redhat.com>
6900         * config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
6901         (mcore_secondary_reload_class): Declare.
6902         (mcore_output_inline_const_forced): Remove.
6903         * config/mcore/mcore.md (movsi): Remove the code that forced
6904         non-inlineable constants into a register if the target was r15
6905         or the stack pointer.  Remove constant restrictions from the main
6906         define_insn.  Remove r <- I, r <- M and r <- N alternatives in favor
6907         of an r <- P alternative.  Remove fallback define_insn for reload.
6908         (movhi, movqi): Use gen_lowpart rather than gen_SUBREG.  Remove reload
6909         define_insn.  Use mcore_output_move in the remaining define_insn.
6910         Adjust condition and constraints in the way as for movsi.
6911         (movdi): Always split unacceptable constants into two.  Use
6912         simplify_gen_subreg instead of operand_subword{,_force}.
6913         * config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
6914         (mcore_output_move): Support HImode and QImode moves as well.
6915         (mcore_m15_operand_p): New function.
6916         (mcore_reload_class): Use it to detect cases where LRW_REGS are better.
6917         (mcore_secondary_reload_class): New function.
6918         * config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
6919         terms of mcore_secondary_reload_class.
6921 2003-09-11  Mike Stump  <mrs@apple.com>
6923         * c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
6925 2003-09-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6927         * builtins.c (fold_builtin_logarithm): if N can't be truncated to
6928         MODE exactly, then only convert logN(N) -> 1.0 if
6929         flag_unsafe_math_optimizations is set.
6931         * builtins.c (builtin_dconsts_init, dconstpi, dconste,
6932         init_builtin_dconsts): Delete.
6933         * emit-rtl.c (dconstpi, dconste): Define.
6934         (init_emit_once): Initialize dconstpi & dconste.
6935         * real.h (dconstpi, dconste): Declare.
6937 2003-09-11  Alexandre Oliva  <aoliva@redhat.com>
6939         PR fortran/11522
6940         * dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function
6941         for ultimate origin even if block is abstract.
6943 2003-09-11  Roger Sayle  <roger@eyesopen.com>
6945         * combine.c (combine_simplify_rtx): Move several NOT and NEG
6946         optimizations from here...
6947         * simplify-rtx.c (simplify_unary_operation): to here.  Recursively
6948         simplify expressions using simplify_gen_*ary instead of gen_rtx_*.
6950 2003-09-11  Richard Henderson  <rth@redhat.com>
6952         * cgraphunit.c (cgraph_finalize_function): Add nested arg.
6953         Tweek tests for function already generated.
6954         (cgraph_expand_function): Don't double announce in !unit-at-a-time.
6955         * cgraph.h (cgraph_finalize_function): Update for extra arg.
6956         * c-decl.c (finish_function): Likewise.
6958 2003-09-10  Joe Buck  <jbuck@welsh-buck.org>
6960         * c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
6962 2003-09-10  Jerry Quinn  <jlquinn@optonline.net>
6964         * real.c: Update URL to VAX floating point docs.
6965         (decode_vax_d): Extract 8 exponent bits instead of 7.
6967 2003-09-10  Ian Lance Taylor  <ian@wasabisystems.com>
6969         * combine.c (force_to_mode): Set fuller_mask based only on mask,
6970         not op_mode.
6972 2003-09-11  Jan Hubicka  <jh@suse.cz>
6974         * c-objc-common.c (c_cannot_inline_tree_fn): Warn
6975         on why function is not inlinable; do not check
6976         the body.
6977         (inline_forbidden_p): Move to...
6978         * tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
6979         deal with alloca, longjmp.
6980         (inline_forbidden_p): New static function.
6981         (find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
6982         find_builtin_longjmp_call): Kill.
6984 2003-09-10  Richard Henderson  <rth@redhat.com>
6986         * cgraph.h (struct cgraph_node): Rename lowered to analyzed.
6987         * cgraphunit.c: Update to match.
6988         (record_call_1): Rearrange.  Call lang hook for language nodes.
6989         (cgraph_analyze_function): Don't call lower_function.
6990         * langhooks.h (struct lang_hooks_for_callgraph): Replace
6991         lower_function with analyze_expr.
6992         * langhooks-def.h: Update to match.
6993         * langhooks.c (lhd_callgraph_analyze_expr): New.
6995 2003-09-10  Martin Husemann  <martin@duskware.de>
6997         PR target/11965
6998         * config/sparc/sparc.c (sparc_v8plus_shift): Protect against
6999         constants greater than 63.
7000         * config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
7001         against constants greater than 31.
7002         (*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
7003         constants greater than 63.
7005 2003-09-09  Richard Henderson  <rth@redhat.com>
7007         * cgraphunit.c (cgraph_finalize_function): Remove unused argument.
7008         * cgraph.h (cgraph_finalize_function): Update.
7009         * c-decl.c (finish_function): Update.
7011 2003-09-09  Devang Patel  <dpatel@apple.com>
7013         * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
7014         * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
7016 2003-09-09  Eric Christopher  <echristo@redhat.com>
7018         * configure.in: Change usage of 'head' to 'sed 1q'.
7019         * configure: Regenerate.
7021 2003-09-09  Richard Henderson  <rth@redhat.com>
7023         * except.c: Include cgraph.h.
7024         (output_function_exception_table): Invoke
7025         cgraph_varpool_mark_needed_node.
7026         * Makefile.in (except.o): Update.
7028 2003-09-07  Kelley Cook  <kelleycook@wideopenwest.com>
7030         * Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS
7031         and use it throughout.
7033 2003-09-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7035         * builtins.c (real_dconstp, fold_builtin_logarithm,
7036         fold_builtin_exponent): New, split out from fold_builtin.  Also
7037         generalize to add log2, log10, exp2 and exp10/pow10 equivalents.
7038         * emit-rtl.c (dconst3, dconst10, dconstthird): New.
7039         (init_emit_once): Initialize new dconsts, use ARRAY_SIZE in lieu
7040         of hardcoded array size.
7041         * fold-const.c (fold): Add cases for exp2, exp10 and pow10.
7042         (tree_expr_nonnegative_p): Likewise.
7043         * real.h (dconst3, dconst10, dconstthird): New.
7045 2003-09-09  Jan Hubicka  <jh@suse.cz>
7047         * cgraphunit.c (cgraph_finalize_function): Fix handling of extern
7048         inline functions.
7049         (cgraph_finalize_compilation_unit): Fix crash when dealing with lost
7050         DECL_SAVED_TREE.
7052 2003-09-09  Roger Sayle  <roger@eyesopen.com>
7054         * builtins.c (fold_builtin_cabs): Protect the complex argument
7055         against multiple evaluation when optimizing cabs* into sqrt*.
7057 2003-09-09  Jan Hubicka  <jh@suse.cz>
7059         * varasm.c (notice_global_symbol):  Properly deal with weak symbols.
7061 2003-09-08  Kelley Cook <kelleycook@wideopenwest.com>
7063         * Makefile.in: Revert yesterday's change.
7065 2003-09-08  Bernardo Innocenti  <bernie@develer.com>
7066             Peter Barada <peter@baradas.org>
7068         * config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr'
7069         * config/m68k/hp320.h (REGISTER_NAMES): Likewise.
7070         * config/m68k/linux.h (REGISTER_NAMES): Likewise.
7071         * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
7072         * gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise.
7073         * config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype.
7074         * config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end.
7075         (m68k_compute_frame_layout): New function.
7076         (m68k_initial_elimination_offset): New function.
7077         (m68k_output_function_prologue): ColdFire-specific movem handling.
7078         (m68k_output_function_epilogue): Likewise.
7079         * config/m68k/m68k.h (FIRST_PSEOUDO_REGISTER): Make room for argptr reg.
7080         (ARG_POINTER_REGNUM): Add new definition.
7081         (INITIAL_FRAME_POINTER_OFFSET): Remove macro.
7082         (ELIMINABLE_REGS): Define new macro, like in ix86 back-end.
7083         (CAN_ELIMINATE): Likewise.
7084         (INITIAL_ELIMINATION_OFFSET): Likewise.
7086 2003-09-08  Bernardo Innocenti  <bernie@develer.com>
7088         * config/m68k/m68k.c (m68k_output_function_prologue): Simplify
7089         by removing redundant variable cfa_store_offset.
7091 2003-09-08  Mark Mitchell  <mark@codesourcery.com>
7093         * langhooks-def.h (lhd_register_builtin_type): New function.
7094         (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro.
7095         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
7096         * langhooks.h (lang_hooks_for_types): Add register_builtin_type.
7097         * langhooks.c (lhd_register_builtin_type): New function.
7098         * c-common.h (c_register_builtin_type): Declare.
7099         * c-common.c (c_register_builtin_type): New function.
7100         * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to
7101         c_register_builtin_type.
7102         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg,
7103         __float80, and __float128 macros.
7104         * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg,
7105         __float80, and __float128 types.
7107 2003-09-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7109         * builtin-types.def
7110         (BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE,
7111         BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE_COMPLEX_DOUBLE,
7112         BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT_COMPLEX_FLOAT): New.
7113         * builtins.def (BUILT_IN_CACOS, BUILT_IN_CACOSF, BUILT_IN_CACOSH,
7114         BUILT_IN_CACOSHF, BUILT_IN_CACOSHL, BUILT_IN_CACOSL,
7115         BUILT_IN_CARG, BUILT_IN_CARGF, BUILT_IN_CARGL, BUILT_IN_CASIN,
7116         BUILT_IN_CASINF, BUILT_IN_CASINH, BUILT_IN_CASINHF,
7117         BUILT_IN_CASINHL, BUILT_IN_CASINL, BUILT_IN_CATAN,
7118         BUILT_IN_CATANF, BUILT_IN_CATANH, BUILT_IN_CATANHF,
7119         BUILT_IN_CATANHL, BUILT_IN_CATANL, BUILT_IN_CCOS, BUILT_IN_CCOSF,
7120         BUILT_IN_CCOSH, BUILT_IN_CCOSHF, BUILT_IN_CCOSHL, BUILT_IN_CCOSL,
7121         BUILT_IN_CEXP, BUILT_IN_CEXPF, BUILT_IN_CEXPL, BUILT_IN_CPOW,
7122         BUILT_IN_CPOWF, BUILT_IN_CPOWL, BUILT_IN_CPROJ, BUILT_IN_CPROJF,
7123         BUILT_IN_CPROJL, BUILT_IN_CSIN, BUILT_IN_CSINF, BUILT_IN_CSINH,
7124         BUILT_IN_CSINHF, BUILT_IN_CSINHL, BUILT_IN_CSINL, BUILT_IN_CSQRT,
7125         BUILT_IN_CSQRTF, BUILT_IN_CSQRTL, BUILT_IN_CTAN, BUILT_IN_CTANF,
7126         BUILT_IN_CTANH, BUILT_IN_CTANHF, BUILT_IN_CTANHL, BUILT_IN_CTANL):
7127         New.
7128         * doc/extend.texi: Document new builtins.
7130 2003-09-09  Jan Hubicka  <jh@suse.cz>
7132         * cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated
7133         finalization.
7134         * cgraphunit.c (decide_is_fnction_needed): Avoid special case of nested
7135         functions, check for COMDAT.
7136         (cgraph_assemble_pending_functions): Break out from...
7137         (cgraph_finalize_function): ... here; allow redefinig of extern inline
7138         functions.
7139         (record_call_1): Record function references only in non-unit-at-a-time
7140         mode.
7141         (cgraph_analyze_function): Reset current_function_decl.
7142         (cgraph_finalize_compilation_unit):  Assemble pending functions.
7144 2003-09-08  Mark Mitchell  <mark@codesourcery.com>
7146         * mklibgcc.in (libcc.a): Depend on stmp-dirs.
7147         (libgov.a): Likewise.
7148         (libgcc_eh.a): Likewise.
7150 2003-09-08  Roger Sayle  <roger@eyesopen.com>
7152         * fold-const.c (operand_equal_p): Clarify documentation.
7154 2003-09-08  Richard Henderson  <rth@redhat.com>
7156         * c-decl.c (c_expand_body_1): Push and pop function context here.
7157         * tree-optimize.c (tree_rest_of_compilation): ... not here.  Take
7158         nested argument instead of computing nesting ourselves.
7160 2003-09-08  Jakub Jelinek  <jakub@redhat.com>
7162         * toplev.c (rest_of_handle_stack_regs): Call split_all_insns before
7163         regstack if optimizing but not scheduling after reload.
7165 2003-09-08  Jakub Jelinek  <jakub@redhat.com>
7167         * config/sparc/sparc.c (struct machine_function): New type.
7168         (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
7169         (sparc_override_options): Initialize init_machine_status.
7170         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand,
7171         tie_symbolic_operand, tle_symbolic_operand): New functions.
7172         (symbolic_operand): Disallow tls_symbolic_operand.
7173         (symbolic_memory_operand): Likewise.
7174         (tls_call_delay, sparc_cannot_force_const_mem, legitimate_constant_p,
7175         constant_address_p, legitimate_pic_operand_p, legitimate_address_p):
7176         New functions.
7177         (sparc_tls_symbol): New variable.
7178         (sparc_tls_get_addr, sparc_tls_got, legitimize_tls_address,
7179         legitimize_address): New functions.
7180         (print_operand): Handle %&.
7181         (sparc_init_machine_status, get_some_local_dynamic_name,
7182         get_some_local_dynamic_name_1): New functions.
7183         (sparc_output_dwarf_dtprel): New function.
7184         * config/sparc/sparc.h (CONSTANT_ADDRESS_P): Moved into
7185         constant_address_p.
7186         (LEGITIMATE_PIC_OPERAND_P): Moved into legitimate_pic_operand_p.
7187         (LEGITIMATE_CONSTANT_P): Moved into legitimate_constant_p.
7188         (GO_IF_LEGITIMATE_ADDRESS): Moved into legitimate_address_p.
7189         (LEGITIMIZE_ADDRESS): Moved into legitimize_address.
7190         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
7191         (TARGET_TLS, TARGET_SUN_TLS, TARGET_GNU_TLS): Define.
7192         (ASM_OUTPUT_DWARF_DTPREL): Define.
7193         (PREDICATE_CODES): Add tgd_symbolic_operand, tld_symbolic_operand,
7194         tie_symbolic_operand, tle_symbolic_operand.
7195         * config/sparc/sparc.md (UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_TLSLDO,
7196         UNSPEC_TLSIE, UNSPEC_TLSLE, UNSPEC_TLSLD_BASE): New constants.
7197         (tls_call_delay): New attribute.
7198         (in_call_delay): Use it.
7199         (movqi, movhi, movsi, movdi): Call legitimize_tls_address if needed.
7200         (tgd_hi22, tgd_lo10, tgd_add32, tgd_add64, tgd_call32, tgd_call64,
7201         tldm_hi22, tldm_lo10, tldm_add32, tldm_add64, tldm_call32, tldm_call64,
7202         tldo_hix22, tldo_lox10, tldo_add32, tldo_add64, tie_hi22, tie_lo10,
7203         tie_ld32, tie_ld64, tie_add32, tie_add64, tle_hix22_sp32,
7204         tle_lox10_sp32, tle_hix22_sp64, tle_lox10_sp64): New insns.
7205         (tldo_ldub_sp32, tldo_ldub1_sp32, tldo_ldub2_sp32, tldo_ldsb1_sp32,
7206         tldo_ldsb2_sp32, tldo_ldub_sp64, tldo_ldub1_sp64, tldo_ldub2_sp64,
7207         tldo_ldub3_sp64, tldo_ldsb1_sp64, tldo_ldsb2_sp64, tldo_ldsb3_sp64,
7208         tldo_lduh_sp32, tldo_lduh1_sp32, tldo_ldsh1_sp32, tldo_lduh_sp64,
7209         tldo_lduh1_sp64, tldo_lduh2_sp64, tldo_ldsh1_sp64, tldo_ldsh2_sp64,
7210         tldo_lduw_sp32, tldo_lduw_sp64, tldo_lduw1_sp64, tldo_ldsw1_sp64,
7211         tldo_ldx_sp64, tldo_stb_sp32, tldo_stb_sp64, tldo_sth_sp32,
7212         tldo_sth_sp64, tldo_stw_sp32, tldo_stw_sp64, tldo_stx_sp64): New
7213         insns.
7214         * config/sparc/sparc-protos.h (legitimate_constant_p,
7215         constant_address_p, legitimate_pic_operand_p, legitimate_address_p,
7216         legitimize_tls_address, legitimize_address, tls_symbolic_operand,
7217         tls_call_delay, sparc_output_dwarf_dtprel): New prototypes.
7218         * config/sparc/linux.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
7219         * config/sparc/linux64.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Likewise.
7220         * configure.in (sparc*-*-*): Add TLS check.
7221         * configure: Rebuilt.
7223 2003-09-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
7225         PR target/11689
7226         * config/i386/i386.c (memory_address_length): Fix computation when
7227         the base is esp or ebp.
7229 2003-09-07  Mark Mitchell  <mark@codesourcery.com>
7231         PR c++/11852
7232         * varasm.c (initializer_constant_valid_p): Correct logic for
7233         CONSTRUCTORs.
7235 2003-09-07  Roger Sayle  <roger@eyesopen.com>
7237         * expr.c (expand_operands): New function to expand an operand pair.
7238         (expand_expr): Call expand_operands whenever we need to expand both
7239         operands of a binary operator.
7240         (do_store_flag): Likewise for operands of comparison operations.
7242 2003-09-07  Roger Sayle  <roger@eyesopen.com>
7244         * combine.c (combine_simplify_rtx): Don't convert -(A*B) into
7245         (-A)*B if we care about sign-dependent rounding.
7247 2003-09-07  Gabriel Dos Reis  <gcc@integrable-solutions.net>
7249         * c-pretty-print.h (pp_c_left_brace): Declare.
7250         (pp_c_right_brace): Likewise.
7251         * c-pretty-print.c (pp_c_left_brace): Now a function
7252         (pp_c_right_brace): Likewise.
7254 2003-09-07  Jan Hubicka  <jh@suse.cz>
7256         * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
7258 2003-09-07  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7260         * diagnostic.c (warn_deprecated_use): Move to toplev.c
7262 2003-09-07  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7264         * langhooks.c (lhd_print_error_function): Move from diagnostic.c.
7265         * Makefile.in (langhooks.o): Depend on diagnostic.h
7267 2003-09-06  James E Wilson  <wilson@tuliptree.org>
7269         * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
7270         simplify.
7272 2003-09-07  Kelley Cook  <kelleycook@wideopenwest.com>
7274         * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
7275         and use it throughout.
7277 2003-09-07  Jan Hubicka  <jh@suse.cz>
7279         * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
7281         * toplev.c  (rest_of_decl_compilation):  Do not finalize external
7282         virables.
7284         * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
7285         functions.
7286         (cgraph_varpool_finalize_decl): Notice global symbol when needed.
7288 2003-09-06  Jan Hubicka  <jh@suse.cz>
7290         PR target/12070
7291         * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
7293         PR opt/12082
7294         * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
7296 2003-09-06  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7298         * diagnostic.c (announce_function): Move to toplev.c.
7300 2003-09-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7302         * gcse.c (expr_equiv_p): Don't consider anything to be equal to
7303         volatile mem.
7305 2003-09-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7307         * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
7308         when gc checking is enabled.
7310 2003-09-06  Steven Bosscher  <steven@gcc.gnu.org>
7312         PR c/9862
7313         * c-decl.c (c_expand_body_1): Move return warning from here...
7314         (finish_function): ...to here.
7316 2003-09-05  Geoffrey Keating  <geoffk@apple.com>
7318         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
7319         a subset of the input class.
7321 2003-09-05  Kazu Hirata  <kazu@cs.umass.edu>
7323         * config/i860/i860.c: Follow spelling conventions.
7324         * config/i860/i860.h: Likewise.
7325         * config/sh/sh.h: Likewise.
7327 2003-09-05  Nitin Yewale  <NitinY@KPITCummins.com>
7329         * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
7330         * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
7331         * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
7333 2003-09-05  Roger Sayle  <roger@eyesopen.com>
7334             Richard Henderson  <rth@redhat.com>
7336         PR optimization/1823
7337         * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
7338         multiplication to implement division by constant integer.
7340 2003-09-05  Jan Hubicka  <jh@suse.cz>
7342         * opts.c (decode_options): Enable unit-at-a-time at -O2.
7343         * params.def (max-inline-insns-single): Set to 500
7344         (max-inline-insns-auto): Set to 150
7345         * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
7347 2003-09-04  Richard Henderson  <rth@redhat.com>
7349         * cgraph.c (cgraph_mark_reachable_node): Split out from ...
7350         (cgraph_mark_needed_node): Remove needed argument.
7351         * cgraph.h: Update to match.
7352         * cgraphunit.c (decide_is_function_needed): Split out from ...
7353         (cgraph_finalize_function): Reorg.  Avoid deferred_inline_function
7354         if we generated the function.
7355         (record_call_1): Update for cgraph_mark_reachable_node.
7356         * varasm.c (mark_referenced): Likewise.
7357         * objc/objc-act.c (mark_referenced_methods): Likewise.
7359 2003-09-04  DJ Delorie  <dj@redhat.com>
7361         * targhooks.c: Add comment explaining the migration process.
7363 2003-09-04  Eric Christopher  <echristo@redhat.com>
7365         * config/frv/t-frv: Fix path for frv-abi.h.
7366         * config/frv/frv-asm.h: Fix string concatenation.
7368 2003-09-04  DJ Delorie  <dj@redhat.com>
7370         * builtins.c (apply_args_size): Guard against a NULL cfun.
7371         (expand_builtin_apply_args_1): Likewise.
7372         (expand_builtin_apply): Likewise.
7373         Fixes PR bootstrap/12172.
7375 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7377         * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
7378         assembler supports Sun syntax for cmov.
7379         * configure: Regenerate.
7380         * config.in: Likewise.
7381         * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
7382         HAVE_AS_IX86_CMOV_SUN_SYNTAX.
7383         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
7384         Fixes PR target/12101.
7386 2003-09-04  Matt Austern  <austern@apple.com>
7388         * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
7389         with verbosity 0, instead of DECL_NAME, for human-readable string.
7391 2003-09-04  Eric Christopher  <echristo@redhat.com>
7393         * targhooks.c (default_return_in_memory): Allow
7394         unconverted ports.
7396 2003-09-04  Eric Christopher  <echristo@redhat.com>
7398         * targhooks.c (default_return_in_memory): Fix typo
7399         in last checkin.
7401 2003-09-04  Eric Christopher  <echristo@redhat.com>
7403         * targhooks.c (default_return_in_memory): Fix default
7404         definition.
7406 2003-09-04  Bernardo Innocenti  <bernie@develer.com>
7408         * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
7409         deleted function.
7410         * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
7411         enable coff-only code in m68k.c.
7413 2003-09-04  Nick Clifton  <nickc@redhat.com>
7415         * config.gcc: Add v850e1 target.  Allow --with-cpu to accept
7416         v850e1.
7417         * config/v850/v850.h: Accept v850e1 as a default CPU.
7418         Accept -mv850e1 as a command line option.
7419         * doc/invoke.texi: Document new -mv850e1 command line switch.
7420         * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
7421         -mv850e.
7423 2003-09-04  Nick Clifton  <nickc@redhat.com>
7425         * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
7426         * config/v850/t-v850: Only produce one extra multilib - for
7427         the v850e.
7428         * config/v850/t-v850e: New file: Only produce one extra
7429         multilib - for the v850.
7431 2003-09-04  Jakub Jelinek  <jakub@redhat.com>
7433         * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
7434         * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
7435         * unwind.h (_Unwind_GetBSP): New prototype.
7436         * libgcc-std.ver: Add empty GCC_3.3.2 version.
7437         * mkmap-symver.awk: For symbol versions with no exported symbols,
7438         don't put anything into version script, just change all symbol
7439         versions which inherit from it to inherit from its ancestor.
7441 2003-09-04  Eric Christopher  <echristo@redhat.com>
7443         * config/mips/mips.c (mips_expand_prologue): Convert to
7444         calls.struct_value_rtx hook.
7445         (reg_or_const_float_1_operand): New.
7446         * config/mips/mips.h: Update Comments.
7447         (mips_arg): Add reg_or_const_float_1_operand.
7448         * config/mips/mips.md (divdf3); Convert to expander.
7449         (divsf3): Ditto.
7450         (*divdf3): New pattern.
7451         (*divsf3): Ditto.
7453 2003-09-04  Jan Hubicka  <jh@suse.cz>
7455         * toplev.c (wrapup_global_declarations): Fix final pass in
7456         unit-at-atime mode.
7458 2003-09-04  Mark Mitchell  <mark@codesourcery.com>
7460         * doc/extend.texi: Document removal of cast-as-lvalue extension in
7461         C++.
7463 2003-09-04  Nicolas Roche  <roche@act-europe.fr>
7465         * gcc.c (process_command): Fix typo.
7467 2003-09-03  David O'Brien  <obrien@FreeBSD.org>
7469         optimization/11980
7470         * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
7471         (PTRDIFF_TYPE): Likewise.
7472         (WCHAR_TYPE_SIZE): Likewise.
7474 2003-09-03  DJ Delorie  <dj@redhat.com>
7476         * targhooks.c: New file.
7477         * targhooks.h: New file.
7478         * Makefile.in: Add targhooks.o support.
7479         (function.o): Depend on$(TARGET_H).
7480         (stmt.o): Likewise.
7481         (combine.o): Depend on $(TREE_H) and $(TARGET_H).
7482         * builtins.c (apply_args_size, expand_builtin_apply_args_1,
7483         expand_builtin_apply): Convert to calls.struct_value_rtx hook.
7484         (expand_builtin_saveregs): Convert to
7485         calls.expand_builtin_saveregs hook.
7486         * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
7487         here, instead of ...
7488         (get_parm_info) ... here.
7489         (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
7490         hook.
7491         (finish_function): Handle calls.promote_prototypes hook here too.
7492         * c-typeck.c (convert_arguments): Convert to
7493         calls.promote_prototypes hook.
7494         (c_convert_parm_for_inlining): Likewise.
7495         * calls.c (initialize_argument_information): Convert to
7496         calls.promote_function_args hook.
7497         (expand_call): Convert to calls.struct_value_rtx,
7498         calls.strict_argument_naming,
7499         calls.pretend_outgoing_varargs_named, and
7500         calls.promote_function_return hooks.  Pass fndecl to
7501         aggregate_value_p.  Initialize CUMULATIVE_ARGS before calling
7502         hooks, so they can use that.
7503         (emit_library_call_value_1): Likewise.
7504         * combine.c (setup_incoming_promotions): Convert to
7505         calls.promote_function_args hook.
7506         * emit-rtl.c: Convert to calls.struct_value_rtx hook.
7507         * expr.c (expand_assignment): Pass call to aggregate_value_p.
7508         (expand_expr): Likewise.
7509         * expr.h: Remove support for SETUP_INCOMING_VARARGS,
7510         STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
7511         RETURN_IN_MEMORY macro defaults.
7512         * final.c (profile_function): Convert to calls.struct_value_rtx
7513         hook.
7514         * function.c (aggregate_value_p): Accept function type tree as
7515         second parameter; try to deduce fntype from it.  Convert to
7516         calls.return_in_memory hook.
7517         (assign_parms): Convert to calls.setup_incoming_varargs,
7518         calls.strict_argument_naming, calls.promote_function_args,
7519         calls.pretend_outgoing_varargs_named hooks.  Pass fndecl to
7520         aggregate_value_p.
7521         (expand_function_start): Likewise.  Convert to
7522         calls.struct_value_rtx hook.
7523         (expand_function_end): Convert to calls.promote_function_return hook.
7524         (allocate_struct_function): Pass fndecl to aggregate_value_p.
7525         * hard-reg-set.h: Update comments to new hook names.
7526         * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
7527         * reg-stack.c (stack_result): Likewise.
7528         * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
7529         * stmt.c (expand_value_return): Convert to
7530         calls.promote_function_return hook.
7531         * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
7532         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
7533         TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
7534         TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
7535         TARGET_STRICT_ARGUMENT_NAMING,
7536         TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
7537         * target.h: Likewise.
7538         * tree.h (aggregate_value_p): Also takes a tree to deduce function
7539         attributes from (for target hooks).
7540         * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
7541         PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
7542         STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
7543         EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
7544         STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
7545         to hooks.
7547         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
7548         to aggregate_value_p.
7549         * config/arm/arm.c (arm_init_cumulative_args,
7550         arm_output_mi_thunk): Likewise.
7551         * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
7552         Likewise.
7553         * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
7554         mips_can_use_return_insn): Likewise.
7555         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
7556         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
7557         * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
7558         aggregate_value_p.
7559         * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
7560         function to aggregate_value_p.
7561         * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
7562         aggregate_value_p.
7564         * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
7565         (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
7566         sh_function_arg_advance, sh_pass_in_reg_p): New.  * config/sh/sh.c
7567         (sh_handle_renesas_attribute, sh_promote_prototypes,
7568         sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
7569         sh_setup_incoming_varargs, sh_strict_argument_naming,
7570         sh_pretend_outgoing_varargs_named): New decls.
7571         (targetm): Add new hooks.
7572         (calc_live_regs): Save MACL and MACH if the function has the
7573         renesas attribute.
7574         (sh_expand_prologue): Support renesas attribute.
7575         (sh_builtin_saveregs): Make static.
7576         (sh_build_va_list): Support renesas attribute.
7577         (sh_va_start): Likewise.
7578         (sh_va_arg): Likewise.
7579         (sh_promote_prototypes): New.
7580         (sh_function_arg): New, moved from sh.h.  Support renesas
7581         attribute.
7582         (sh_function_arg_advance): Likewise.
7583         (sh_return_in_memory): Likewise.
7584         (sh_strict_argument_naming): Likewise.
7585         (sh_pretend_outgoing_varargs_named): Likewise.
7586         (sh_struct_value_rtx): New.
7587         (sh_attribute): Add renesas attribute.
7588         (sh_handle_renesas_attribute): New.
7589         (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
7590         (sh_ms_bitfield_layout_p): Support renesas attribute also.
7591         (sh_output_mi_thunk): Pass function to aggregate_value_p.  *
7592         config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
7593         -mhitachi.
7594         (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
7595         target hooks.
7596         (sh_args): Add renesas_abi flag.
7597         (INIT_CUMULATIVE_ARGS): Set it.  Pass fndecl to aggregate_value_p.
7598         (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
7599         (PASS_IN_REG_P): Support renesas attribute.  Pass DF and TF on the
7600         stack for the renesas abi.
7601         (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
7602         SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
7603         PROMOTE_PROTOTYPES): Moved to sh.c.  * config/sh/sh.md (call): Set
7604         call cookie to indicate renesas calls.
7606 2003-09-03  Mostafa Hagog  <mustafa@il.ibm.com>
7608         * gcse.c (replace_one_set): New function.
7609         (pre_insert_copy_insn): Change the order of copying
7610         to make copy propagation discover additional PRE opportunities.
7612 2003-09-03  Roger Sayle  <roger@eyesopen.com>
7614         PR optimization/11700.
7615         * simplify-rtx.c (simplify_subreg): Check that the subreg offset
7616         of a hard register is representable before trying to simplify it
7617         using subreg_hard_regno.
7619 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7621         * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
7622         * configure: Regenerate.
7624 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7626         * intl.h (N_): Remove parentheses.
7628 2003-09-03  Bernardo Innocenti  <bernie@develer.com>
7630         * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
7631         * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
7632         definition and code blocks compiled when not defined.
7633         * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
7634         * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
7635         * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
7636         * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
7638 2003-09-03  Jeff Sturm  <jsturm@one-point.com>
7640         * cgraphunit.c (visited_nodes): New static variable.
7641         (record_call_1): Use walk_tree with visited_nodes.
7642         (cgraph_create_edges): Use walk_tree with visited_nodes.
7643         Setup/teardown visited_nodes hashtable.
7645 2003-09-03  Roger Sayle  <roger@eyesopen.com>
7647         * toplev.c (flag_rounding_math): New global variable.
7648         (f_options): Add to the list of language independent options.
7649         * flags.h (flag_rounding_math): Prototype here.
7650         (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
7651         * common.opt (frounding-math): New common command line option.
7652         * opts.c (common_handle_option): Handle OPT_frounding_math.
7653         (set_fast_math_flags): -ffast-math clears flag_rounding_math.
7655         * doc/invoke.texi: Document this new command line option.
7657 2003-09-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7659         * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
7661 2003-09-03  Jan Hubicka  <jh@suse.cz>
7663         * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
7664         * c-decl.c (finish_function):  Kill arguments, always use cgraph path.
7665         * c-objc-common.c: Kill include of gt-c-objc-common.h
7666         (expand_deferred_fns, deffer_fn): Kill function.
7667         (deferred_fns): Kill variable.
7668         (finish_cdtor): Update finish_function call.
7669         (c_objc_common_finish_file): Always call cgraph code.
7670         * c-parse.c: Regenerate.
7671         * c-parse.y: Regenerate.
7672         * c-tree.h (finish_function): Update prototype.
7673         * objc-acct.c (build_module_descriptor, finish_method_def):
7674         Update call of finish_function.
7675         * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
7676         forward prototype.
7677         (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
7678         function and assemble it if needed.
7679         (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
7680         mode.
7681         (cgraph_optimize): Likewise.
7682         (cgraph_expand_function): In non-unit-at-a-time mode keep function body
7683         even when it has no inline callees.
7684         * c-parse.in: Update calls to finish_function.
7686 2003-09-03  Nick Clifton  <nickc@redhat.com>
7688         * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
7689         Use #error to generate the message if TARGET_DEFAULT is not
7690         recognised.
7692 2003-09-03  Richard Sandiford  <rsandifo@redhat.com>
7694         * config/mips/mips.h (MASK_UNUSED1): Remove.
7695         (MASK_XGOT, TARGET_XGOT): Define.
7696         (TARGET_SWITCHES): Add an entry for -mxgot.
7697         (ASM_SPEC): Map -mxgot to -xgot.
7698         * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
7699         whether we're using a big-GOT sequences.
7700         (mips_legitimize_const_move, mips_expand_call): Likewise.
7701         (override_options): Revert 2003-01-09 change.
7702         * doc/invoke.texi: Document -mxgot.
7704 2003-09-02  Jason Merrill  <jason@redhat.com>
7706         * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
7707         * config/sparc/sol2.h: Not here.
7709 2003-09-02  Roger Sayle  <roger@eyesopen.com>
7711         * expr.c (expand_expr): The code following both_summands performs
7712         the same task as simplify_gen_binary.  Replace all gotos to
7713         both_summands with a call to simplify_gen_binary and delete the
7714         now unused label.
7716 2003-09-02  Jason Merrill  <jason@redhat.com>
7718         PR c++/7327
7719         * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
7721 2003-09-02  Jeff Sturm  <jsturm@one-point.com>
7723         * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
7724         (cgraph_optimize_function): Set current_function_decl to the
7725         fndecl we're integrating from.
7727 2003-09-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7729         * builtins.def: Break out _Complex math functions into their
7730         own category.
7732 2003-09-02  Andreas Jaeger  <aj@suse.de>
7734         * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
7736 2003-09-02  Josef Zlomek  <zlomekj@suse.cz>
7738         * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
7739         finding the note again.
7741 2003-09-02  Nathanael Nerode  <neroden@gcc.gnu.org>
7743         * config.gcc: Remove host-specific rewrites of target_alias.
7745 2003-09-01  Mark Mitchell  <mark@codesourcery.com>
7747         * Makefile.in (genprogs): Fix typo.
7749         * Makefile.in (gencheck.o): Remove build commands.
7750         (dummy-conditions.o): Likewise.
7751         (read-rtl.o): Likewise.
7752         (gensupport.o): Likewise.
7753         (genconfig$(build_exeext)): Remove rule.
7754         (genconfig.o): Remove build commands.
7755         (genflags$(build_exeext)): Remove rule.
7756         (genflags.o): Remove build commands.
7757         (gencodes$(build_exeext)): Remove rule.
7758         (gencodes.o): Remove build commands.
7759         (genconstants.o): Remove build commands.
7760         (genemit$(build_exeext)): Remove rule.
7761         (genemit.o): Remove build commands.
7762         (genrecog$(build_exeext)): Remove rule.
7763         (genrecog.o): Remove build commands.
7764         (genextract$(build_exeext)): Remove rule.
7765         (genextract.o): Remove build commands.
7766         (genpeep$(build_exeext)): Remove rule.
7767         (genpeep.o): Remove build commands.
7768         (genattr$(build_exeext)): Remove rule.
7769         (genattr.o): Remove build commands.
7770         (genprognames): New variable.
7771         (genprogs): Likewise.
7772         (genobjs): Likewise.
7773         (genprogs): New rule.
7774         (genobjs): Likewise.
7775         (genattrtab.o): Remove build commands.
7776         (genautomata.o): Likewise.
7777         (genoutput$(build_exeext)): Remove rule.
7778         (genoutput.o): Remove build commands.
7779         (gengenrtl.o): Likewise.
7780         (genpreds.o): Likewise.
7781         (gengtype.o): Likewise.
7782         (genconditions.o): Likewise.
7783         (gen-protos.o): Likewise.
7784         (scan.o): Likewise.
7785         (fix-header.o): Likewise.
7786         (scan-decls.o): Likewise.
7787         (check-g++): Combine with other check targets.
7788         (check-gcc): Likewise.
7789         (check-g77): Likewise.
7790         (check-objc): Likewise.
7792 2003-09-01  Nathanael Nerode  <neroden@gcc.gnu.org>
7794         * config.gcc: Remove host-specific stuff which is unused here
7795         since the introduction of config.host.
7797         * doc/fragments.texi: Mention config.host.
7798         * doc/sourcebuild.texi: Mention config.host.  Give brief descriptions
7799         of config.build, config.host, and config.gcc.
7801 2003-09-01  Zack Weinberg  <zack@codesourcery.com>
7803         * c-decl.c (pushdecl): Don't put variables on
7804         C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
7805         incomplete.
7807 2003-09-01  Nathanael Nerode  <neroden@gcc.gnu.org>
7809         * config.host: New file.
7810         * config.gcc: Remove some host-specific stuff and some
7811         logic needed only for repeated invocation.
7812         * configure.in: Use config.host.
7813         * configure: Regenerate.
7815 2003-09-01  Josef Zlomek  <zlomekj@suse.cz>
7817         * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
7818         * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
7819         * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
7820         (fold): Kill BIT_ANDTC_EXPR and label bit_and.
7821         * tree.def (BIT_ANDTC_EXPR): Kill.
7823 2003-08-31  Nathanael Nerode  <neroden@gcc.gnu.org>
7825         * configure.in: Remove uses of "for x in .. ${foo}" idiom.
7826         * configure: Regenerate.
7828         * config.gcc:  Remove references to install_headers_dir, now unused
7829         since introduction of config.build.
7830         * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
7832         * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
7833         config.build.
7835         * config.build: New file.
7836         * config.gcc: Remove some build-specific stuff.
7837         * configure.in: Use config.build.
7838         * configure: Regnerate.
7840 2003-08-31  Steven Bosscher  <steven@gcc.gnu.org>
7841             Roger Sayle  <roger@eyesopen.com>
7843         PR middle-end/11823
7844         * stmt.c (expand_end_case_type): Only use jump tables for dense
7845         switch statements when optimizing for size.
7847 2003-08-31  Olivier Hainque  <hainque@act-europe.fr>
7849         * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
7850         the != 0 case, which ensures pending stack adjustments are flushed.
7852 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
7854         * configure.frag: Delete file.
7855         * configure.in: Rename the substitution variables
7856         dep_host_xmake_file and dep_tmake_file to xmake_file and
7857         tmake_file respectively.  Do not expand $srcdir in the
7858         value of these; leave that for Make.  Introduce a new
7859         substitution varaible, all_lang_makefrags, which lists
7860         subdirectory Make-lang.in files; exclude these from
7861         all_lang_makefiles, which is now only for subdirectory
7862         outputs.  Do not invoke configure.frag.  Do not set nor
7863         AC_SUBST_FILE target_overrides, host_overrides, or
7864         language_fragments. Create build subdirectories in
7865         config.status extra commands.
7866         * configure: Regenerate.
7867         * Makefile.in: Update substitutions to match changes to
7868         configure.  Use include directives instead of @-insertions
7869         to read in host, target, and language fragments.
7870         (Makefile rule): Do not invoke configure.frag.  Do not copy
7871         config.status to config.run before executing it.  Set
7872         CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
7873         regenerated.
7874         (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
7876 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
7878         * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
7879         * c-typeck.c (same_translation_unit_p): New function.
7880         (comptypes): Use it instead of flags parameter to identify
7881         structure types from different translation units.
7882         * c-decl.c (duplicate_decls): Always call comptypes with
7883         COMPTYPE_STRICT flags argument.
7884         (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
7885         to file_scope_decl.
7887 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
7889         * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
7890         * c-decl.c (struct c_scope): Remove "incomplete" field.
7891         (pushdecl): Attach variables with incomplete types to
7892         the TYPE_MAIN_VARIANT of the incomplete type in question.
7893         (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
7894         to complete, not at current_scope->incomplete.  All such
7895         variables do need completion.
7897 2003-08-30  Richard Earnshaw  <rearnsha@arm.com>
7898         Nicolas Pitre <nico@cam.org>
7900         * arm/lib1funcs.asm (RETCOND): Delete.
7901         (RETLDM): New assembler macro.  Use it for returning with ldm/ldr.
7902         (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
7903         (__ARM_ARCH__): Move here from ieee754-?f.S.
7904         (RET, RETc): Clean up definitions.
7905         (DIV_FUNC_END): Renamed from FUNC_END.  All uses changed.
7906         (FUNC_END): New macro that marks the end of any function.
7907         (ARM_FUNC_START): New macro that allows an assembler routine to be
7908         implemented in ARM code even if a Thumb-only build.
7909         Unconditionally include ieee754-?f.S.
7910         * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
7911         Mark ends of functions.
7912         Split into separate conditionally-compiled units.
7913         Use RETLDM to return from routines.
7914         * arm/ieee754-sf.S: Similarly.
7915         * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
7916         Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
7917         _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
7918         _fixsfsi and _fixunssfsi.
7920         * arm/ieee754-df.S (__muldf3): Fix bug when result of a
7921         multiplication underflows to zero.
7922         (__adddf3): Fix bug when using VFP ordering on little-endian
7923         processors.
7924         (__fixdfsi): Use rrx to extract the carry into a register instead of
7925         MRS instruction.  Optimize later use of result.
7926         * arm/ieee754-sf.S (__fixsfsi): Likewise.
7927         (__fixunssfsi): Use a better sequence for handling negative-or-zero.
7929 2003-08-29  Richard Henderson  <rth@redhat.com>
7931         * tree-optimize.c: New file.
7932         * Makefile.in (OBJS-archive): Add tree-optimize.o.
7933         (tree-optimize.o): New.
7934         * c-decl.c (store_parm_decls): Use allocate_struct_function.
7935         (finish_function): Don't free_after_parsing or free_after_compilation.
7936         (set_save_expr_context): Move to tree-optimize.c.
7937         (c_expand_body_1): Use tree_rest_of_compilation.
7938         * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
7939         * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
7940         * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
7941         iterate until closure.
7942         * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
7943         LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
7944         (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
7945         * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
7946         * toplev.h (tree_rest_of_compilation): Declare it.
7948 2003-08-29  Richard Henderson  <rth@redhat.com>
7950         * function.h (struct function): Add rtl_inline_init, saved_for_inline.
7951         * integrate.c (save_for_inline): Set saved_for_inline.
7952         * c-semantics.c (genrtl_scope_stmt): Check it.
7953         * toplev.c (wrapup_global_declarations): Check it.
7954         (rest_of_handle_inlining): Set and check rtl_inline_init.
7955         (rest_of_compilation): Remove out of date comment.
7957 2003-08-29  Richard Henderson  <rth@redhat.com>
7959         * function.c (allocate_struct_function): New, split out of ...
7960         (prepare_function_start, init_function_start): ... here.
7961         * expr.c (init_expr): Use ggc_alloc_cleared.
7962         * stmt.c (init_stmt_for_function): Likewise.
7963         * tree.h (allocate_struct_function): Declare.
7965 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
7967         * config.gcc: Don't use negated character class in shell case
7968         clause.
7970 2003-08-29  Richard Henderson  <rth@redhat.com>
7972         * function.h (struct function): Move function_frequency and
7973         max_jumptable_ents before start of bit field members.
7975 2003-08-29  Richard Henderson  <rth@redhat.com>
7977         * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
7978         (fold_builtin_constant_p) ... not here.
7980 2003-08-29  Richard Henderson  <rth@redhat.com>
7982         * c-tree.h (C_DECL_FILE_SCOPE): Move ...
7983         * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
7984         * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
7986 2003-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7988         * builtins.def: Fix typos.
7989         (ATTR_MATHFN_FPROUNDING_STORE): New macro.
7990         (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
7991         BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
7992         BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
7993         BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
7995         * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
7996         Use ATTR_MATHFN_FPROUNDING_ERRNO.
7998 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
8000         * config.gcc (i386-*-vsta): Fix obvious bogosity.
8002         * fixinc/inclhack.def:  Remove special cases for unsupported
8003         PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
8004         * fixinc/fixincl.x: Regenerate.
8006 2003-08-29  Mark Mitchell  <mark@codesourcery.com>
8008         * Makefile.in (cpp.info): Just state dependencies.
8009         (gcc.info): Likewise.
8010         (gccint.info): Likewise.
8011         (gccinstall.info): Likewise.
8012         (cppinternals.info): Likewise.
8013         (cpp.dvi): Likewise.
8014         (gcc.dvi): Likewise.
8015         (gccint.dvi): Likewise.
8016         (gccinstall.dvi): Likewise.
8017         (cppinternals.dvi): Likewise.
8018         (gcov.1): Likewise.
8019         (cpp.1): Likewise.
8020         (gcc.1): Likewise.
8021         (gfdl.7): Likewise.
8022         (gpl.7): Likewise.
8023         (fsf-funding.7): Likewise.
8024         ($(objdir)/%.info): New pattern rule.
8025         (%.dvi): Likewise.
8027 2003-08-29  Kelley Cook  <kelleycook@wideopenwest.com>
8029         * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
8030         (restage2): Likewise.
8031         (restage3): Likewise.
8032         (restage4): Likewise.
8033         (restageprofile): Likewise.
8034         (restagefeedback): Likewise.
8035         (bubblestrap): Likewise.
8037 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
8039         * config.gcc: Narrow unsupported target match to avoid clobbering
8040         i?86-sequent-sysv4*.
8042 2003-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8044         * builtins.c (mathfn_built_in): Handle new math builtins.
8046 2003-08-28  Per Bothner  <per@bothner.com>
8048         Fix (hopefully temporary) for breakage caused by my 08-21 patch.
8049         * cpplex.c (_cpp_get_fresh_line):  Check for null buffer.
8050         (_cpp_lex_buffer):  Likewise.
8051         * cpptrad.c (_cpp_read_logical_line_trad):  Likewise.
8053 2003-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
8055         * config/s390/s390.md ("*mulsi3_sign"): New insn.
8056         ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
8057         ("mulsidi3"): ... this new insn.
8058         ("umulsidi3"): New insn.
8059         ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
8060         mixed-mode matching constraints.
8061         ("udivmodsi4", "udivmoddisi3"): New insns.
8062         ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
8064 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8066         * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
8067         BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
8068         BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
8069         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
8070         BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
8071         BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
8072         BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
8073         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
8074         BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
8075         BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
8076         BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
8077         * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
8078         BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
8079         BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
8080         BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
8081         * tree.c: Assign new type_nodes.
8082         * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
8083         TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
8084         (float_ptr_type_node, double_ptr_type_node,
8085         long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
8087         * doc/extend.texi: Document new builtins.
8089 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8091         * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
8092         BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
8094         * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
8095         BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
8096         BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
8097         BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
8098         BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
8099         BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
8100         BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
8101         BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
8102         BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
8103         BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
8105         * doc/extend.texi: Document new builtins.
8107 2003-08-28  Nathanael Nerode  <neroden@gcc.gnu.org>
8109         * fixinc/mkfixinc.sh: Remove special case code for unsupported
8110         variants of i?86, powerpcle, and thumb.
8111         * fixinc/mkfixinc.sh: Remove special case code for unsupported
8112         arm and hppa variants.
8114 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8116         * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
8117         BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
8118         BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
8119         BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
8120         BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
8121         BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
8122         BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
8123         BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
8124         BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
8125         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
8127         * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
8128         BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
8129         BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
8130         BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
8131         BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
8132         BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
8133         BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
8134         BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
8135         BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
8136         BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
8137         BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
8138         BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
8139         BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
8140         BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
8141         BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
8142         BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
8143         BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
8144         BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
8145         BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
8146         BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
8147         BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
8148         BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
8149         BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
8150         BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
8151         BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
8152         BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
8153         BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
8154         BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
8155         BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
8156         BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
8157         BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
8159         * doc/extend.texi: Document new builtins.
8161 2003-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
8163         * config/s390/s390.c (legitmate_constant_p): Use LARL on
8164         zSeries machines even in 31-bit addressing mode.
8165         (legitimate_reload_constant_p): Likewise.
8166         (legitimize_pic_address): Likewise.
8167         (legitimize_tls_address): Likewise.
8168         (s390_split_branches): Likewise.
8169         (s390_dump_pool): Likewise.
8170         (s390_mainpool_finish): Likewise.
8171         (s390_chunkify_start): Likewise.
8172         (s390_select_rtx_section): Likewise.
8173         * config/s390/s390.md ("doloop_si"): Likewise.
8174         ("pool_start_31", "pool_end_31"): Likewise.
8175         ("pool_start_64", "pool_end_64"): Likewise.
8176         ("main_base_31_small", "main_base_31_large"): Likewise.
8177         ("main_base_64"): Likewise.
8178         ("reload_base_31", "reload_base_64"): Likewise.
8179         ("*movsi_larl"): New insn.
8180         ("cjump", "icjump"): Use long branches on zSeries machines.
8181         ("jump"): Likewise.
8182         ("call"): Use BRASL on zSeries machines.
8183         ("call_value", "call_value_tls"): Likewise.
8184         ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
8185         and replace by ...
8186         ("*bras", "*brasl", "*basr") ... these new insns.
8187         ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
8188         "bas_31_r"): Remove and replace by ...
8189         ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
8190         ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
8191         "bas_64_tls", "bas_31_tls"): Remove and replace by ...
8192         ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
8193         ("*return_si", "*return_di"): Remove and replace by ...
8194         ("*return"): ... this new insn.
8195         ("rotlsi3"): Allow on zSeries machines.
8197         * config/s390/s390.c (legitimize_reload_constant_p): Use
8198         LL/LH type instructions in z/Architecture mode.
8199         * config/s390/s390.md ("*movsi_lli"): Likewise.
8200         ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
8201         ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
8202         ("*extendqisi2"): Use LB in z/Architecture mode.
8203         ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
8204         z/Architecture mode.
8205         ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
8206         Likewise.
8208         * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
8209         and 31-bit mode.
8210         ("ptr_extend"): Allow only in 64-bit mode.
8212 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
8214         * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
8215         (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
8216         definitions.
8217         (main): Only use standard_startfile_prefix if native.
8218         * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
8220 2003-08-27  Per Bothner  <pbothner@apple.com>
8222         * cpperror.c (print_location):  Don't check for !pfile->buffer.  That
8223         test fails following my 08-21 change, and it seems unnecessary anyway.
8224         (cpp_error):  Likewise.
8226 2003-08-27  Jason Merrill  <jason@redhat.com>
8228         * real.c (do_multiply): Initialize with memset.
8230 2003-08-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8232         * gcov.c (typedef struct arc_info): New field cs_count.
8233         (accumulate_line_counts): Find cycles correctly.
8235 2003-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
8237         * config/s390/s390.c (struct machine_function): Remove member
8238         literal_pool_label.
8239         (s390_optimize_prolog): Replace TEMP_REG argument with
8240         TEMP_USED and BASE_USED.  Do not check get_pool_size ().
8241         (general_s_operand): Accept all immediates before reload if
8242         ALLOW_IMMEDIATE.  If not ALLOW_IMMEDIATE, reject literal pool
8243         references.
8244         (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
8245         (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
8246         (s390_alloc_pool): New function.
8247         (s390_new_pool): Call it.
8248         (s390_dump_pool): Add REMOTE_LABEL argument.
8249         (s390_chunkify_start): Add BASE_REG argument.  Do not check
8250         get_pool_size ().
8251         (s390_chunkify_finish): Add BASE_REG argument.  Adapt
8252         s390_dump_pool call.
8253         (s390_pool_count, s390_nr_constants): Remove.
8254         (s390_output_constant_pool): Remove.
8255         (s390_mainpool_start): New function.
8256         (s390_mainpool_finish): New function.
8257         (s390_mainpool_cancel): New function.
8258         (s390_reorg): Implement main literal pool handling.
8259         (s390_emit_prologue): Emit main_pool placeholder instead of
8260         literal_pool_31 / literal_pool_64 insns.
8261         * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
8262         (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
8263         * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
8264         ("main_base_31_small", "main_base_31_large"): New insns.
8265         ("main_base_64",  "main_pool"): New insns.
8266         ("literal_pool_31", "literal_pool_64"): Remove.
8268 2003-08-27  Nathanael Nerode  <neroden@gcc.gnu.org>
8270         * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
8271         fixinc.ptx.
8272         * fixinc/inclhack.def (undefine_null):  Don't generate \r characters.
8273         Prettify a little.
8274         * fixinc/fixincl.x: Regenerate.
8276 2003-08-27  Richard Earnshaw  <rearnsha@arm.com>
8278         * lib1funcs.asm (L_ieee754_sp): New.  Include ieee754-sf.S.
8279         (L_ieee754_dp): New.  Include ieee754-df.S.
8280         * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
8281         and compilation in apcs-26 mode.
8282         * arm/ieee754-df.S: Likewise.
8283         * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
8284         (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
8286 2003-08-27  Nicolas Pitre  <nico@cam.org>
8288         * arm/ieee754-sf.S: New.
8289         * arm/ieee754-df.S: New.
8291 2003-08-27  Jakub Jelinek  <jakub@redhat.com>
8293         * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
8294         and restore it if returning NULL.
8296 2003-08-27  Richard Sandiford  <rsandifo@redhat.com>
8298         * calls.c (initialize_argument_information): If an argument has no
8299         stack space associated with it, and BLOCK_REG_PADDING is defined,
8300         use it to decide at which end the argument should be padded.
8301         * function.c (assign_parms): Allocate BLKmode stack slots.
8302         * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
8303         (mips_pad_reg_upward): Declare.
8304         * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
8305         (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
8306         (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
8307         (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
8308         * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
8309         (mips_expand_call): Remove code for generating structure shifts.
8310         (mips_arg_info): Don't set struct_p.  Don't set fpr_p for non-float
8311         types unless using the EABI.
8312         (function_arg_advance): Don't generate shift instructions.
8313         (function_arg): Don't return them.  Don't short-circuit the
8314         check for double structure chunks for DFmode arguments.
8315         (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
8316         (mips_expand_prologue): Remove code to emit structure shifts.
8317         * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
8318         structure passing (inet_ntoa, inet_lnaof, inet_netof).  Update
8319         comments to say that only structure returns are a problem.
8321 2003-08-26  Nathanael Nerode  <neroden@gcc.gnu.org>
8323         * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
8324         Fix to match produced versions.
8325         * fixinc/inclhack.def (longlong_t): New disabled test, ported
8326         from fixinc.svr4.
8327         * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
8328         from fixinc.ptx.
8329         * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
8330         ported from fixinc.ptx.
8332 2003-08-26  Per Bothner  <pbothner@apple.com>
8334         * cpplib.h (struct cpp_token):  Change type of field line to fileline.
8335         (cpp_error_with_line):  Use fileline for appropriate parameter.
8336         * cpphash.h (struct cpp_macro):  Change type of field line to fileline.
8337         (struct cpp_reader):  Likewise for fields line and directive_line.
8338         (_cpp_begin_message):  Use fileline for appropriate parameter.
8339         * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
8340         cpp_error):  Use fileline for appropriate parameters and variables.
8341         (print_location):  New local lin, since it is not a fileline.
8343 2003-08-26  Roger Sayle  <roger@eyesopen.com>
8345         PR middle-end/12002
8346         * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
8347         (FLOAT_TYPE_P): Define in terms of these two new macros.
8348         * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
8349         for complex floating point types.
8351 2003-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
8353         * config/s390/s390.c (emit_prologue): Don't check literal pool size.
8354         * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
8355         s390_output_pool_entry.
8357 2003-08-26  Nathanael Nerode  <neroden@gcc.gnu.org>
8359         * fixinc/inclhack.def (svr4_preproc_lint_on,
8360         svr4_preproc_lint_off, svr4_preproc_machine): New disabled
8361         fixes, ported from fixinc.svr4.
8363 2003-08-26  Mark Mitchell  <mark@codesourcery.com>
8365         * doc/install.texi (Prerequisites): Mention GNU make requirement.
8367         * Makefile.in (AR_FOR_TARGET): Export it.
8368         (AR_CREATE_FOR_TARGET): Likewise.
8369         (AR_FLAGS_FOR_TARGET): Likewise.
8370         (AR_EXTRACT_FOR_TARGET): Likewise.
8371         (AWK): Likewise.
8372         (BUILD_PREFIX): Likewise.
8373         (BUILD_PREFIX_1): Likewise.
8374         (DESTDIR): Likewise.
8375         (GCC_FOR_TARGET): Likewise.
8376         (INCLUDES): Likewise.
8377         (INSTALL_DATA): Likewise.
8378         (LIB1ASMSRC): Likewise.
8379         (LIBGCC2_CFLAGS): Likewise.
8380         (MACHMODE_H): Likewise.
8381         (NM_FOR_TARGET): Likewise.
8382         (RANLIB_FOR_TARGET): Likewise.
8383         (libsubdir): Likewise.
8384         (slibdir): Likewise.
8385         (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
8386         exporting.
8387         (libgcc.a): Don't pass them here.
8388         (stmp-multilib): Or here.
8389         (install-libgcc): Or here.
8390         (install-multilib): Or here.
8391         (POSTSTAGE1_FLAGS_TO_PASS): Or here.
8392         (stage1_build): Or here.
8394 2003-08-26  Andreas Krebbel <krebbel1@de.ibm.com>
8396         * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
8397         "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
8399 2003-08-26  Andreas Krebbel <krebbel1@de.ibm.com>
8401         * config/s390/s390.md ("*fmadddf", "*fmsubdf",
8402         "*fmaddsf", "*fmsubsf"): New insns.
8404 2003-08-26  Roger Sayle  <roger@eyesopen.com>
8406         * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
8407         (C1*C2)/X when unsafe math optimizations are allowed.
8408         (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
8409         math optimizations.  Minor code clean-ups.  Recursively call
8410         fold when constructing sub-expressions.
8412 2003-08-26  Roger Sayle  <roger@eyesopen.com>
8414         * builtins.c (fold_builtin_bitop): New function to perform constant
8415         folding of ffs, clz, ctz, popcount and parity builtin functions
8416         and their long and long long variants (such as ffsl and ffsll).
8417         (fold_builtin): fold_builtin_bitop when appropriate.
8418         * simplify-rtx.c (simplify_unary_operation): Honor both
8419         CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
8420         evaluating clz and ctz at compile-time, for operands wider
8421         than HOST_WIDE_INT.
8423 2003-08-26  Nathan Sidwell  <nathan@codesourcery.com>
8425         * builtins.c (build_function_call_expr): Don't set
8426         TREE_SIDE_EFFECTS here.
8427         * expr.c (emit_block_move_via_libcall): Likewise.
8428         (clear_storage_via_libcall): Likewise.
8429         * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
8430         CALL_EXPRs.
8432         * gcse.c (is_too_expensive): New function.
8433         (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
8435 2003-08-25  Zack Weinberg  <zack@codesourcery.com>
8437         * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
8438         commented-out logic to use DCE threads (if present), add
8439         support for POSIX threads.
8440         * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
8441         #defines for -pthread.  Add -lpthread to LIB_SPEC when
8442         -pthread.  In both cases take -mt as a synonym for -pthread
8443         for acc compatibility.
8444         Define GTHREAD_USE_WEAK to 0.
8445         * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
8446         Remove old logic for DCE threads from LIB_SPEC.
8447         * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
8449 2003-08-25  Roger Sayle  <roger@eyesopen.com>
8451         * builtins.c (expand_builtin_mathfn):  Rearrange so that we only
8452         return 0 for invalid argument types.  Instead drop through to a
8453         call of expand_call at the bottom of function.  If op is SQRT,
8454         try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
8456 2003-08-25  Richard Henderson  <rth@redhat.com>
8458         * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
8459         result when op0 is SImode.
8461 2003-08-25  Nathanael Nerode  <neroden@twcny.rr.com>
8463         * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
8464         from fixinc.svr4.
8465         * fixinc/fixincl.x: Regenerate.
8466         * fixinc/tests/base/sys/signal.h: Regenerate.
8468 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
8470         * combine.c (simplify_comparison): Re-enable widening of comparisons
8471         with non-paradoxical subregs of non-REG expressions.
8473 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
8475         * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
8477 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
8479         * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
8481 2003-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8483         * pretty-print.h (pp_maybe_newline_and_indent): New macro.
8484         * c-pretty-print.h (c_pretty_printer): Now typedef to the
8485         structure.  Be consistent with pretty-print.h abd cxx-pretty-print.h
8486         (struct c_pretty_print_info): Document.  Add new fields.
8487         (pp_type_specifier_seq): Rename from pp_c_type_specifier.
8488         (pp_direct_abstract_declarator): New macro.
8489         (pp_ptr_operator): Likewise.
8490         (pp_simple_type_specifier): Likewise.
8491         (pp_expression): Likewise.
8492         (pp_parameter_list): Rename from pp_parameter_declaration.
8493         * c-pretty-print.c (pp_c_whitespace): Now a function.
8494         (pp_c_left_paren): Likewise.
8495         (pp_c_right_paren): Likewise.
8496         (pp_c_dot): Likewise.
8497         (pp_c_ampersand): Likewise.
8498         (pp_c_arrow): Likewise.
8499         (pp_c_semicolon): Likewise.
8500         (pp_c_type_cast): New function.
8501         (pp_c_space_for_pointer_operator): Likewise.
8502         (pp_c_call_argument_list): Likewise.
8503         (pp_c_cv_qualifier): Adjust prototype.
8504         (pp_c_type_qualifier_list): Likewise.
8505         (pp_c_pointer): Likewise.  Handle REFERENCE_TYPE here.
8506         (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
8507         Adjust to follow standard grammar.
8508         (pp_c_specifier_qualifier_list): Adjusr prototype.  Handle
8509         REFERENCE_TYPE.  Tidy.
8510         (pp_c_parameter_type_list): Adjust prototype.  Tidy.
8511         (pp_c_parameter_declaration): Remove.
8512         (pp_c_abstract_declarator): Adjust prototype.
8513         (pp_c_direct_abstract_declarator): Likewise.
8514         (pp_c_type_id): Likewise.
8515         (pp_c_storage_class_specifier): Likewise.
8516         (pp_c_function_specifier): Likewise.
8517         (pp_c_declaration_specifiers): Likewise.
8518         (pp_c_direct_declarator): Likewise.
8519         (pp_c_declarator): Likewise.
8520         (pp_c_declarator): Likewise.
8521         (pp_c_declaration): Likewise.
8522         (pp_c_attributes): Likewise.  Tidy.
8523         (pp_c_function_definition): Adjust prototype.
8524         (pp_c_char): Likewise.
8525         (pp_c_string_literal): Likewise.
8526         (pp_c_integer_constant): Likewise.
8527         (pp_c_character_constant): Likewise.
8528         (pp_c_bool_constant): Likewise.
8529         (pp_c_enumeration_constant): Likewise.
8530         (pp_c_floating_constant): Likewise.
8531         (pp_c_constant): Likewise.
8532         (pp_c_identifier): Likewise.
8533         (pp_c_primary_expression): Likewise.  Remove TARGET_EXPR case.  Tidy.
8534         (pp_c_initializer): Adjust prototype.
8535         (pp_c_init_declarator): Likewise.
8536         (pp_c_initializer_list): Likewise.
8537         (pp_c_id_expression): Likewise.
8538         (pp_c_postfix_expression): Likewise.
8539         (pp_c_expression_list): Likewise.
8540         (pp_c_unary_expression): Likewise.
8541         (pp_c_cast_expression): Likewise.
8542         (pp_c_multiplicative_expression): Likewise.
8543         (pp_c_additive_expression): Likewise.
8544         (pp_c_shift_expression): Likewise.
8545         (pp_c_relational_expression): Likewise.
8546         (pp_c_equality_expression): Likewise.
8547         (pp_c_and_expression): Likewise.
8548         (pp_c_exclusive_or_expression): Likewise.
8549         (pp_c_inclusive_or_expression): Likewise.
8550         (pp_c_logical_and_expression): Likewise.
8551         (pp_c_logical_or_expression): Likewise.
8552         (pp_c_conditional_expression): Likewise.
8553         (pp_c_assignment_expression): Likewise.
8554         (pp_c_expression): Likewise.  Tidy.
8555         (pp_c_statement): Likewise.  Document.
8556         (pp_c_pretty_printer_init): Adjust prototype. Tidy.
8558         * c-lang.c (c_initialize_diagnostics): Update.
8559         * c-common.h (strip_pointer_operator): Declare.
8560         * c-common.c (strip_pointer_operator): Define.
8562 2003-08-25  Mark Mitchell  <mark@codesourcery.com>
8564         PR c++/8795
8565         * tree.h (build_method_type_directly): Declare.
8566         * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
8567         (vector_size_helper): Likewise.
8568         * tree.c (build_method_type_directly): New function.
8569         (build_method_type): Use it.
8571 2003-08-24  Richard Henderson  <rth@redhat.com>
8573         * config/i386.i386.c (ix86_return_in_memory): Reformat.  Return true
8574         for 16-byte vector modes if sse not enabled; warn for abi change.
8575         (ix86_value_regno): Only return xmm0 for 16-byte vector types.
8577 2003-08-24  Kazu Hirata  <kazu@cs.umass.edu>
8579         * rtlanal.c (may_trap_p): Simplify an integer comparison.
8581 2003-08-24  Nathanael Nerode  <neroden@gcc.gnu.org>
8583         * fixinc/inclhack.def (AAB_svr4_replace_byteorder):  Enhance
8584         comment.  Enable for DYNIX/ptx systems (when they switch to
8585         regular fixincludes).
8586         * fixinc/fixincl.x: Regenerate.
8588 2003-08-23  Jason Eckhardt  <jle@rice.edu>
8590         * config/i860/t-i860: New.
8591         * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
8593 2003-08-23  Jakub Jelinek  <jakub@redhat.com>
8595         * c-decl.c (pushdecl): Only put decls which finish_struct will do
8596         something about onto incomplete chain.
8597         (finish_struct): If not removing type from incomplete
8598         list, update prev.
8600 2003-08-20  Jan Hubicka  <jh@suse.cz>
8602         PR target/11369
8603         * i386.c (ix86_expand_carry_flag_compare): Validate operand.
8605         PR target/11031
8606         * i386.c (const_0_to_3_operand, const_0_to_7_operand,
8607         const_0_to_15_operand, const_0_to_255_operand): New predicates.
8608         * i386.h (PREDICATE_CODES): Add these.
8609         * i386.c (pinsrw and pextrw patterns): Use them.
8611         PR target/10984
8612         * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
8614         PR target/8869
8615         * expr.c (convert_modes): Deal properly with integer to vector
8616         constant conversion.
8618         PR target/8871
8619         * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
8621 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
8623         * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
8624         * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
8625         ("*movhi"): ... this.
8626         ("movqi", "*movqi"): Likewise.
8627         ("movqi_64"): Remove.
8628         ("*zero_extendhisi2_31"): Change predicate to s_operand.
8630 2003-08-23  Dale Johannesen  <dalej@apple.com>
8631         * calls.c (emit_library_call_value_1): Fix obvious errors in
8632         arguments to emit_group_store.
8634 2003-08-23  Jason Eckhardt  <jle@rice.edu>
8636         * calls.c (emit_library_call_value_1): Remove code related
8637         to LIBGCC_NEEDS_DOUBLE.
8638         * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
8639         * doc/tm.texi: Likewise.
8640         * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
8642 2003-08-23  Richard Sandiford  <rsandifo@redhat.com>
8644         * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
8646 2003-08-23  Richard Sandiford  <rsandifo@redhat.com>
8648         * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
8649         as well.  Put memory references in the varargs alias set.
8650         (mips_expand_prologue): Remove varargs handling from here.
8652 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
8654         * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
8655         s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
8656         s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
8657         for function pointer calls.
8658         * config/s390/s390.md ("*negdi2_31"): Likewise.
8660 2003-08-23  Roger Sayle  <roger@eyesopen.com>
8662         * combine.c (apply_distributive_law): Correct comment.
8664 2003-08-23  Jason Eckhardt  <jle@rice.edu>
8666         * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
8668 2003-08-22  Jason Eckhardt  <jle@rice.edu>
8670         * config/i860/i860.c (i860_build_va_list): Create the va_decl
8671         declaration.  Document the va_list structure.
8672         (i860_va_start): Initialize the va_list structure.
8673         (i860_va_arg): Rewrite completely.
8674         * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
8675         * config/i860/varargs.asm: Do not allocate or initialize
8676         a va_list.  Return the address of the register save area.
8678 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
8680         * config/iq2000/iq2000.c: Fix comment typos.
8681         * config/iq2000/iq2000.md: Likewise.
8683 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
8685         * config/iq2000/iq2000.c: Follow spelling conventions.
8686         * config/iq2000/iq2000.h: Likewise.
8687         * config/mn10300/mn10300.c: Likewise.
8689 2003-08-22  Jason Eckhardt  <jle@rice.edu>
8691         * config/i860/i860.c (output_move_double): Don't set latehalf
8692         to zero for CONST_INT (since it could be, e.g., -1).
8694         * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
8695         (MODSI3_LIBCALL): ...with this one.
8696         (UREMSI3_LIBCALL): Replace this macro...
8697         (UMODSI3_LIBCALL): ...with this one.
8699 2003-08-22  Jason Eckhardt  <jle@rice.edu>
8701         * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
8702         (output_delayed_branch): Remove prototype.
8703         (single_insn_src_p): Remove prototype.
8704         * config/i860/i860.c (single_insn_src_p): Remove function.
8705         (output_delayed_branch): Remove function.
8706         (output_delay_insn): Remove function.
8707         (va_start): Remove unconditional test and dead code, re-format.
8708         Fix coding style and spelling problems in various comments.
8709         * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
8710         (blockage pattern): ...and use it here.
8711         (all define_peephole patterns related to delayed branches): Remove.
8712         Fix coding style and spelling problems in various comments.
8714 2003-08-22  Jason Eckhardt  <jle@rice.edu>
8716         * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
8717         Remove all uses of the PARAMS macro.  Remove superflous prototypes.
8718         Convert all function definitions from traditional to ISO C90 syntax.
8719         * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
8720         with 'GCC'.  Remove all uses of the PARAMS macro.
8721         * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
8722         * config/i860/i860.md: Likewise.
8723         * config/i860/sysv4.h: Likewise.
8724         * config/i860/varargs.asm: Likewise.
8726 2003-08-22  Jason Eckhardt  <jle@rice.edu>
8728         * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
8729         argument.
8730         (tdesc_section): Add prototype.
8731         Update copyright dates.
8732         * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
8733         (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
8734         (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
8735         (targetm): Likewise.
8736         (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
8737         for '%d' where necessary.
8738         (i860_va_start): Remove 'stdarg_p' argument.  Make conditional checks
8739         on 'stdarg_p' unconditional.  Divide current_function_args_info.ints
8740         by UNITS_PER_WORD when referencing (likewise for .floats).
8741         (I860_SVR4_VARARGS): Rename...
8742         (I860_SVR4_VA_LIST): ...to this.
8743         Call build() with 't' rather than 'field'.
8744         (i860_rtx_costs): New function.
8745         (TARGET_RTX_COSTS): Define.
8746         (i860_internal_label): New function.
8747         (TARGET_ASM_INTERNAL_LABEL): Define.
8748         (i860_file_start): New function.
8749         Update copyright dates.
8750         * config/i860/i860.h (CPP_PREDEFINES): Remove.
8751         (TARGET_CPU_CPP_BUILTINS): Define.
8752         (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
8753         (CONST_COSTS): Remove (and move code to i860_rtx_costs).
8754         (ASM_FILE_START): Remove.
8755         (ASM_FILE_START_1): Remove.
8756         (ASM_GLOBALIZE_LABEL): Remove.
8757         (ASM_OUTPUT_INTERNAL_LABEL): Remove.
8758         (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
8759         with targetm.asm_out.internal_label.
8760         Update copyright dates.
8761         * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
8762         (CPP_PREDEFINES): Remove.
8763         (TARGET_OS_CPP_BUILTINS): Define.
8764         (GLOBAL_ASM_OP): Define.
8765         (ASM_FILE_START): Remove.
8766         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
8767         (TARGET_ASM_FILE_START): Define.
8768         Update copyright dates.
8770 2003-08-22  Jason Eckhardt  <jle@rice.edu>
8772         * gcc/config.gcc (i860-*-sysv4*): Add target.
8773         * config/i860/i860-protos.h: New.
8774         * config/i860/i860.c: New.
8775         * config/i860/i860.h: New.
8776         * config/i860/i860.md: New.
8777         * config/i860/sysv4.h: New.
8778         * config/i860/varargs.asm: New.
8779         * config/i860/x-sysv4: New.
8781 2003-08-22  Jason Eckhardt  <jle@rice.edu>
8783         * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
8784         Remove all uses of PARAMS macro.
8785         Convert all function definitions to ISO C90 syntax.
8786         * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
8787         * config/pa/fptr.c: Likewise.
8788         * config/pa/lib2funcs.asm: Likewise.
8789         * config/pa/long_double.h: Likewise.
8790         * config/pa/milli64.S: Likewise.
8791         * config/pa/pa-64.h: Likewise.
8792         * config/pa/pa-hpux.h: Likewise.
8793         * config/pa/pa-hpux10.h: Likewise.
8794         * config/pa/pa-hpux11.h: Likewise.
8795         * config/pa/pa-linux.h: Likewise.
8796         * config/pa/pa-modes.def: Likewise.
8797         * config/pa/pa-osf.h: Likewise.
8798         * config/pa/pa-pro-end.h: Likewise.
8799         * config/pa/pa.md: Likewise.
8800         * config/pa/pa32-linux.h: Likewise.
8801         * config/pa/pa64-linux.h: Likewise.
8802         * config/pa/pa64-hpux.h: Likewise.
8803         * config/pa/pa64-regs.h: Likewise.
8804         * config/pa/quadlib.c: Likewise.
8805         * config/pa/rtems.h: Likewise.
8806         * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
8807         all uses of the PARAMS macro.
8808         * config/pa/pa.h: Likewise.
8809         * config/pa/som.h: Likewise.
8811         * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
8812         Remove all uses of PARAMS macro.
8813         Convert all function definitions to ISO C90 syntax.
8814         * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
8815         Remove all uses of PARAMS macro.
8816         * config/iq2000.h: Remove all uses of PARAMS macro.
8817         * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
8819 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
8821         * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
8822         * config/s390/s390.c (gen_consttable): Remove.
8823         (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
8824         (s390_output_pool_entry): New function.
8825         * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
8826         UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
8827         UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
8828         (UNSPECV_POOL_ENTRY): ... this new constant.
8829         ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
8830         "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
8831         ("*pool_entry"): ... and replace by this new insn.
8832         ("literal_pool_31"): Do not emit anchor label if pool empty.
8834         * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
8835         (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
8836         (s390_fixup_clobbered_return_reg): Remove.
8837         (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
8838         (s390_return_addr_rtx): Always retrieve return address from save area
8839         slot.  Use save_return_addr_p to force slot to be filled.
8840         (s390_emit_prologue): Remove has_hard_reg_initial_val test.
8842 2003-08-22  Chris Demetriou  <cgd@broadcom.com>
8844         * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
8845         (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
8846         * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
8847         around SB-1 errata if TARGET_FIX_SB1 is set.
8848         (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
8849         * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
8851 2003-08-22  Roger Sayle  <roger@eyesopen.com>
8853         * hashtable.c (ht_expand): Avoid calculating rehash for the common
8854         case that the first probe hits an empty hash table slot.
8856 2003-08-22  Mark Mitchell  <mark@codesourcery.com>
8858         * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
8860 2003-08-22  Mark Mitchell  <mark@codesourcery.com>
8862         * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
8863         (ptr_extend_plus_imm): ... this.
8864         * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
8865         optimization in C++.
8866         (ia64_output_mi_thunk): Support ILP32 mode.
8868 2003-08-22  Bernardo Innocenti  <bernie@develer.com>
8870         * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
8871         function.
8872         * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
8874 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
8876         * config/i386/i386.c (const_int_1_operand): Simplify an
8877         integer comparison.
8879 2003-08-22  Alan Modra  <amodra@bigpond.net.au>
8881         * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
8882         * config/rs6000/ppc64-fp.c: Likewise.
8884 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
8886         * cfgcleanup.c: Fix comment typos.
8887         * emit-rtl.c: Likewise.
8888         * optabs.c: Likewise.
8889         * ra-build.c: Likewise.
8890         * rtlanal.c: Likewise.
8891         * tree.h: Likewise.
8893 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
8895         * c-decl.c: Fix comment formatting.
8896         * cfgrtl.c: Likewise.
8897         * combine.c: Likewise.
8898         * convert.c: Likewise.
8899         * dominance.c: Likewise.
8900         * dwarf2out.c: Likewise.
8901         * dwarfout.c: Likewise.
8902         * expmed.c: Likewise.
8903         * fold-const.c: Likewise.
8904         * gcov.c: Likewise.
8905         * genattrtab.c: Likewise.
8906         * ggc-common.c: Likewise.
8907         * mips-tfile.c: Likewise.
8908         * regmove.c: Likewise.
8910 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
8912         * builtin-attrs.def: Fix comment formatting.
8913         * c-pretty-print.c: Likewise.
8914         * diagnostic.h: Likewise.
8915         * langhooks.h: Likewise.
8916         * recog.c: Likewise.
8917         * simplify-rtx.c: Likewise.
8918         * tree.def: Likewise.
8920 2003-08-22  Bernardo Innocenti  <bernie@develer.com>
8922         * config/m68k/m68k-protos.h: Convert to ISO C90.
8923         * config/m68k/m68k.c: Likewise.
8925 2003-08-21  Bernardo Innocenti  <bernie@develer.com>
8926             Paul Dale  <pauli@snapgear.com>
8927             Peter Barada <peter@baradas.org>
8929         * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
8930         ColdFire cores.
8932 2003-08-21  Zack Weinberg  <zack@codesourcery.com>
8934         * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
8935         * config.gcc (*-*-openbsd): Don't set tm_file.
8936         (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
8937         arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
8938         h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
8939         i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
8940         i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
8941         m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
8942         m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
8943         m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
8944         mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
8945         sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
8946         xscale-*-coff): Use explicit and complete lists of target headers
8947         to include.  Move definitions to tm_defines where appropriate.
8948         (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
8949         not-yet-contributed configuration.
8951         * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
8952         * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
8953         * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
8954         * config/i386/nto.h, config/iq2000/iq2000.h,
8955         * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
8956         * config/m68k/linux.h, config/m68k/m68k-aout.h
8957         * config/m68k/m68k-none.h, config/m68k/m68kv4.h
8958         * config/m68k/netbsd.h, config/m68k/openbsd.h
8959         * config/m68k/sgs.h, config/mcore/mcore-pe.h,
8960         * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
8961         * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
8962         Remove includes of other target config headers, and
8963         definitions of macros moved to tm_defines lists.  Add #undefs
8964         where now necessary to prevent redefinition warnings.
8966         * config/h8300/coff.h: New file split out of...
8967         * config/h8300/elf.h: ...here.
8968         * config/m68k/hp320base.h: New file split out of...
8969         * config/m68k/hp320.h: ...here.
8970         * config/rs6000/lynxbase.h: New file split out of...
8971         * config/rs6000/lynx.h: ...here.
8973         * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
8974         * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
8976         * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
8977         * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
8978         * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
8979         Remove unnecessary #ifndef.
8980         * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
8981         [under IN_LIBGCC2] with config/.
8983 2003-08-21  Per Bothner  <pbothner@apple.com>
8985         * cppfiles.c (stack_file):  Correctly pass return_at_eof parameter
8986         to cpp_push_buffer.
8987         * cpplex.c (_cpp_get_fresh_line):  Don't buffer->prev - handled
8988         by return_at_eof check.  Always call _cpp_pop_buffer at end.
8990 2003-08-21  Kazu Hirata  <kazu@cs.umass.edu>
8992         PR target/11805
8993         * config/h8300/h8300.md (two anonymous patterns): Remove.
8995 2003-08-21  Richard Sandiford  <rsandifo@redhat.com>
8997         * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
8998         * config/mips/mips.c (function_arg_pass_by_reference): Never return
8999         true for n32 & n64.
9001 2003-08-21  Josef Zlomek  <zlomekj@suse.cz>
9003         * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
9004         and similarly in (A | C) == D where C & ~D != 0.
9006 2003-08-20  Geoffrey Keating  <geoffk@apple.com>
9008         PR 8180
9009         * configure.in: When testing with_libs and with_headers, treat
9010         'no' as unset.  Based on a patch by Dan Kegel <dank@kegel.com>.
9011         * configure: Regenerate.
9013 2003-08-20  Peter Barada <peter@baradas.org>
9015         * longlong.h (umul_ppmm): Add ColdFire support.
9017 2003-08-20  Peter Barada <peter@baradas.org>
9018             Bernardo Innocenti  <bernie@develer.com>
9020         * config/m68k/m68k-none.h: Introduce new ColdFire archs.
9021         * config/m68k/m68k.h: Likewise.
9022         * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
9023         * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
9024         * config/m68k/linux.h: Likewise.
9025         * config/m68k/m68k.c: Likewise.
9026         * config/m68k/m68k.md: Likewise.
9027         * config/m68k/m68kelf.h: Likewise.
9028         * config/m68k/netbsd-elf.h: Likewise.
9029         * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
9031 2003-08-20  Bernardo Innocenti  <bernie@develer.com>
9033         * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
9034         * config/m68k/m68k.md: Likewise.
9036 2003-08-20  Mark Mitchell  <mark@codesourcery.com>
9038         PR java/11996
9039         Revert this change:
9040         2003-08-19  Mark Mitchell  <mark@codesourcery.com>
9041         * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
9042         types with precisions other than those given by native machine
9043         modes.
9045 2003-08-20  Gunther Nikl  <gni@gecko.de>
9047         * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
9048         selected by FSGLMUL_USE_S and FSGLDIV_USE_S
9049         * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
9050         * config/m68k/m68k.md (anonymous define_insn): Likewise
9051         * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
9052         * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
9053         code selected by NO_ASM_FMOVECR
9055 2003-08-20  Gunther Nikl  <gni@gecko.de>
9057         * config/m68k/m68k.c (output_move_const_into_data_reg,
9058         output_move_himode): unify MOTOROLA/MIT handling of moveq
9059         * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
9060         Likewise
9062 2003-08-20  Gunther Nikl  <gni@gecko.de>
9064         * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
9065         label name
9066         * config/m68k/m68k.c (m68k_output_function_epilogue): replace
9067         HOST_WIDE_INT_PRINT_DEC with %wd
9069 2003-08-20  Loren James Rittle  <ljrittle@acm.org>
9071         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
9072         redefine warning.
9074 2003-08-20  Roger Sayle  <roger@eyesopen.com>
9076         PR middle-end/11984
9077         * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
9078         operands before calling tree_int_cst_lt when performing associative
9079         transformations.
9081 2003-08-20  Jason Merrill  <jason@redhat.com>
9083         * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
9084         (EXPR_CHECK): Don't check for 'r' or 's' if we're
9085         checking IS_EXPR_CODE_CLASS.
9086         * calls.c (calls_function_1): Likewise.
9087         * fold-const.c (fold): Likewise.
9088         * tree.c (iterative_hash_expr): Likewise.
9089         * tree-inline.c (walk_tree, copy_tree_r): Likewise.
9091 2003-08-20  Gunther Nikl  <gni@gecko.de>
9093         * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
9094         depending on MOTOROLA_BSR
9095         * config/m68k/m68k.md (anonymous define_insn): Likewise
9097 2003-08-20  Jason Merrill  <jason@redhat.com>
9099         * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
9100         (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
9101         fold_trunc_transparent_mathfn, fold_builtin): Likewise.
9102         * dojump.c (do_jump): Likewise.
9103         * fold-const.c (operand_equal_p, fold): Likewise.
9104         (tree_expr_nonnegative_p): Likewise.
9106         * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
9107         TYPE_USER_ALIGN for FIELD_DECLs.
9109         * attribs.c (decl_attributes): Rebuild the function pointer type after
9110         changing the target type.
9111         * tree.c (get_qualified_type): Also check that the attributes match.
9113 2003-08-19  Matt Kraai  <kraai@alumni.cmu.edu>
9115         * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
9116         * objc/config-lang.in (stagestuff): ... to here.
9118 2003-08-19  Mark Mitchell  <mark@codesourcery.com>
9120         PR c++/11946
9121         * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
9122         NOP_EXPR) when necessary.
9123         * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
9124         types with precisions other than those given by native machine
9125         modes.
9127 2003-08-19  Geoffrey Keating  <geoffk@apple.com>
9129         * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
9130         because some macro is defined.
9132         * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
9133         options.
9134         * config/i386/darwin.h (ASM_SPEC): New.
9135         (SUBTARGET_EXTRA_SPECS): New.
9136         * config/rs6000/darwin.h (ASM_SPEC): New.
9137         (SUBTARGET_EXTRA_SPECS): New.
9138         * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
9139         a cross-compiler between two different processors on Darwin.
9140         * configure: Regenerate.
9142 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
9144         * builtins.c: Fix comment typos.
9145         * c-common.c: Likewise.
9146         * c-decl.c: Likewise.
9147         * c-pretty-print.c: Likewise.
9148         * cfgbuild.c: Likewise.
9149         * cfglayout.c: Likewise.
9150         * cfgloopanal.c: Likewise.
9151         * cgraphunit.c: Likewise.
9152         * cppfiles.c: Likewise.
9153         * dwarfout.c: Likewise.
9154         * expr.c: Likewise.
9155         * fold-const.c: Likewise.
9156         * gcse.c: Likewise.
9157         * ggc-page.c: Likewise.
9158         * haifa-sched.c: Likewise.
9159         * pretty-print.c: Likewise.
9160         * tree.c: Likewise.
9161         * tree.h: Likewise.
9162         * value-prof.c: Likewise.
9164 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
9166         * c-decl.c: Follow spelling conventions.
9167         * cppfiles.c: Likewise.
9169 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
9171         * c-common.c: Fix comment formatting.
9172         * c-common.h: Likewise.
9173         * c-decl.c: Likewise.
9174         * cppinit.c: Likewise.
9175         * cpplib.h: Likewise.
9176         * emit-rtl.c: Likewise.
9177         * input.h: Likewise.
9178         * line-map.h: Likewise.
9179         * opts.c: Likewise.
9180         * opts.h: Likewise.
9181         * simplify-rtx.c: Likewise.
9183 2003-08-19  Daniel Jacobowitz  <drow@mvista.com>
9185         * unwind-c.c: Add libgcc-style exception.
9186         * unwind-dw2.c: Likewise.
9187         * unwind-pe.h: Likewise.
9188         * unwind-sjlj.c: Likewise.
9189         * unwind.inc: Likewise.
9191 2003-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
9193         PR c/5582 PR c++/10538
9194         * langhooks-def.h (lhd_decl_uninit): Declare.
9195         (LANG_HOOKS_DECL_UNINIT): New macro.
9196         (LANG_HOOKS_INITIALIZER): Adjust.
9197         * langhooks.h (struct lang_hooks): Add new field
9198         decl_uninit.
9199         * langhooks.c (lhd_decl_uninit): Define.
9200         * c-common.c (c_decl_uninit_1): New function.
9201         (c_decl_uninit): New function.
9202         (warn_init_self): Define.
9203         * c-common.h (c_decl_uninit): Declare.
9204         (warn_init_self): Declare.
9205         * c.opt: Introduce -Winit-self.
9206         * c-opts.c (c_common_handle_options): Set warn_init_self.
9207         * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
9208         * objc/objc-lang.c  (LANG_HOOKS_DECL_UNINIT): Define.
9209         * function.c (uninitialized_vars_warning): Call the language hook.
9210         * doc/invoke.texi: Document -Winit-self.
9212 2003-08-19  Chris Demetriou  <cgd@broadcom.com>
9214         * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
9215         to use better predicates and constraints.  Define new
9216         instruction to handle "trap_if" with DI-mode arguments.
9217         (conditional_trap): FAIL if trap code is not 0.
9219 2003-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
9221         * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
9222         strstr with $pb to a strcompare with "<pic base>"
9223         (ix86_output_addr_diff_elt): Output the real pic base.
9225 2003-08-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9227         * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
9228         (LANG_HOOKS_INITIALIZER): Correct.
9229         * c-lang.c: Likewise.
9231 2003-08-19  Jan Hubicka  <jh@suse.cz>
9233         * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
9234         (cgraph_varpool_mark_needed_node): Likewise.
9235         * cgraph.h (notice_global_symbol): Declare
9236         * varasm.c (notice_global_symbol): Break out from ...
9237         (assemble_start_function): ... here; update for variables.
9238         (assemble_variable): Use notice_global_symbol.
9240 2003-08-19  Richard Sandiford  <rsandifo@redhat.com>
9242         * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
9243         expect SFmode and DFmode arguments to be passed in FPRs,
9244         regardless of the underlying type.
9246 2003-08-19  Richard Sandiford  <rsandifo@redhat.com>
9248         PR target/11924
9249         * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
9250         (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
9252 2003-08-18  Matt Kraai  <kraai@alumni.cmu.edu>
9254         PR c/11207
9255         * c-typeck.c (set_init_index): Check for negative index.
9257 2003-08-18  Bob Wilson  <bob.wilson@acm.org>
9259         * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
9260         call0 ABI.
9261         * config/xtensa/crtn.asm (_init, _fini): Likewise.
9262         * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
9263         __umodsi3, __modsi3): Likewise.
9264         * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
9265         $(INCLUDES).
9267 2003-08-18  Aldy Hernandez  <aldyh@redhat.com>
9269         * config/rs6000/spe.md ("*nabssf2_gpr"): New.
9271 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
9273         * config/mips/mips.md: Quote C code in braces.  Remove use of
9274         fake const0_rtx operands.  Remove double backslashes.  Use \;.
9275         Remove workarounds for bogus warnings.
9277 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
9279         * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
9280         (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
9281         rather than TARGET_MIPS4300.
9282         (mulsf3_internal, mulsf3_r4300): Likewise.
9284 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
9286         * config/mips/mips.md: Renumber unspecs.  Clean up comments.
9288 2003-08-17  Roger Sayle  <roger@eyesopen.com>
9290         * simplify-rtx.c (associative_constant_p): New function to test
9291         whether an RTX expression is an immediate constant.
9292         (simplify_associative_operation): New function to perform some
9293         reassociation optimizations of associative binary expressions.
9294         (simplify_binary_operation): Use simplify_associative_operation
9295         to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
9296         Floating point expressions are only reassociated when unsafe
9297         math optimizations are permitted.
9299 2003-08-17  Andreas Jaeger  <aj@suse.de>
9301         * config/alpha/alpha.md: Remove usage of PARAMS.
9303         * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
9304         * config/i386/i386-interix.h: Likewise.
9305         * config/i386/winnt.c: Likewise.
9306         * config/i386/cygming.h: Likewise.
9307         * config/i386/cygwin2.c: Likewise.
9308         * config/darwin.c: Likewise.
9309         * config/darwin-c.c: Likewise.
9310         * config/darwin-protos.h: Likewise.
9311         * config/darwin.h: Likewise.
9312         * config/s390/s390-protos.h: Likewise.
9313         * config/s390/s390.c: Likewise.
9314         * config/ia64/ia64.c: Likewse
9315         * config/ia64/ia64-protos.h: Likewise.
9316         * config/ia64/ia64-c.c: Likewise.
9318 2003-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9320         * config/sparc/sparc.c: Convert to ISO C.
9322         * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
9323         * config/sparc/sparc.c: Likewise.
9325 2003-08-16  Nathan Sidwell  <nathan@codesourcery.com>
9327         PR c++/11512
9328         * stmt.c (expand_expr_stmt_value): Don't warn about any void
9329         typed expression.
9331 2003-08-16  Jan Hubicka  <jh@suse.cz>
9333         * i386.c (ix86_fntype_regparm): Rename from ...
9334         (ix86_function_regparm): ... this one; add fastcall and local
9335         functions.
9336         (ix86_function_ok_for_sibcall): Update.
9337         (ix86_return_pops_args): Likewise.
9338         (init_cumulative_args): Likewise.
9339         (x86_can_output_mi_thunk): Likewise.
9340         (function_arg): Fix formating.
9341         (x86_this_parameter): Fix fastcall.
9342         (x86_output_mi_thunk): Likewise.
9344         * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
9345         body as reachable; mark nested functions as needed too.
9346         (dump_cgraph): Do not output global.calls.
9347         * cgraph.h (cgraph_global_info): Kill.
9348         * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
9349         (record_call_1): Speedup.
9350         (cgraph_analyze_function): Break out from ...; compute inlining
9351         parameters.
9352         (cgraph_finalize_compilation_unit): ... here.
9353         (cgraph_mark_inline): Kill computation of calls.
9354         (cgraph_decide_inlining): Do not compute most of initial values.
9356 2003-08-14  Roger Sayle  <roger@eyesopen.com>
9358         * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
9359         to negate if either operand is easy to negate, if we don't care
9360         about sign-dependent rounding.
9361         (negate_expr): Make the logic to negate a REAL_CST explicit.
9362         Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
9363         that's easy to negate, if we don't honor sign-dependent rounding.
9364         (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
9365         negate, and the symmetric A * -B as -A * B if A is easy to negate.
9366         (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
9367         -C/D if B and C are cheap to negate.  Add an explicit rule to
9368         optimize X/-1.0 as -X when we don't care about signaling NaNs.
9370 2003-08-14  Zack Weinberg  <zack@codesourcery.com>
9372         * Makefile.in (tm_file): Rename tm_include_list.
9373         (tm_p_file): Rename tm_p_include_list.
9374         (build_xm_file): Rename build_xm_include_list.
9375         (host_xm_file): Rename host_xm_include_list.
9376         (xm_file): Rename xm_include_list.
9377         (xm_file_list): Add to be substituted.
9378         (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
9379         Update to match.
9380         (bt-load.o): Add missing dependency on $(TM_H).
9381         * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
9382         For each of tm_file, tm_p_file, xm_file, host_xm_file, and
9383         build_xm_file, generate both *_file_list and *_include_list
9384         values from it.  (xm_file_list was formerly not being generated.)
9385         In *_include_list, prefix the names of all headers found in
9386         $(srcdir)/config with config/.  In each loop, consider only
9387         the special case files that can actually appear in that list.
9388         AC_SUBST all *_file_list and all *_include_list variables; do
9389         not AC_SUBST the plain *_file variables.
9390         * configure: Regenerate.
9392 2003-08-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9394         * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
9396 2003-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9398         * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
9399         direct calls.
9400         (attr_length_call): Include it here.  Improve length estimate for
9401         local calls.
9402         (output_call): Use targetm.binds_local_p.
9404 2003-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9406         * builtins.c (CASE_MATHFN): New helper macro.
9407         (mathfn_built_in): Simplify and sort.
9409         * protoize.c (substr): Delete, callers changed to `strstr'.
9411 2003-08-13  Zack Weinberg  <zack@codesourcery.com>
9413         * config.gcc (iq2000*-*-elf*): Don't set xm_file.
9414         * config/iq2000/xm-iq2000.h: Delete file.
9416 2003-08-13  Geoffrey Keating  <geoffk@apple.com>
9418         * gengtype.c (walk_type): Process a subobject before processing
9419         the pointer that points to the subobject.
9421 2003-08-13  Per Bothner  <pbothner@apple.com>
9423         * regclass.c (init_reg_modes):  Make non-static.
9424         Rename to init_reg_modes_once per new naming convention.
9425         (init_regs):  Don't call init_reg_modes here.
9426         * emit-rtl.c (init_emit_once):  Call init_reg_modes_once here instead.
9427         * rtl.h (init_reg_modes_once):  New declaration.
9428         * toplev.c (backend_init):  Call init_regs after init_emit_once.
9430 2003-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
9432         * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
9433         special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
9435 2003-08-13  J"orn Rennecke <joern.rennecke@superh.com>
9437         * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
9438         * sh.md (load_ra): Change insn predicate to TARGET_SH1.
9440 2003-08-13  Dale Johannesen  <dalej@apple.com>
9442         * config/rs6000/rs6000.md (ctrsi, ctrdi):  Reenable
9443         handling of decrement-and-branch farther than 32 bits.
9445 2003-08-12  Kelley Cook  <kelleycook@wideopenwest.com>
9447         * configure.in (make_compare_target): Move test to ...
9448         * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
9449         * configure: Regenerate.
9451 2003-08-12  Richard Sandiford  <rsandifo@redhat.com>
9453         * config/mips/iris6.h: Convert to C90 prototypes.
9454         * config/mips/irix6-libc-compat.c: Likewise.
9455         * config/mips/mips-protos.h: Likewise.
9456         * config/mips/mips.c: Likewise.
9458 2003-08-12  Nathanael Nerode  <neroden@gcc.gnu.org>
9460         fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel.  Enable
9461         for selected machines.  Comment heavily.
9462         fixinc/fixincl.x: Rebuild.
9463         fixinc/tests/base/fs/rfs/rf_cache.h: New file.
9465 2003-08-12  Richard Sandiford  <rsandifo@redhat.com>
9467         * config/mips/mips.h: Tweak various comments.
9468         * config/mips/mips.c: Likewise.
9470 2003-08-11  James E Wilson  <wilson@tuliptree.org>
9472         PR optimization/11319
9473         PR target/10021
9474         * alias.c (find_base_value, case REG): Return 0 not src if no base
9475         found.
9477 2003-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9479         * gcse.c (gmalloc): Fix last change.
9481 2003-08-11  Roger Sayle  <roger@eyesopen.com>
9483         * simplify-rtx.c (simplify_binary_operation): Replace calls to
9484         gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
9485         and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
9486         gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
9488 2003-08-11  Roger Sayle  <roger@eyesopen.com>
9490         * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
9491         * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
9492         typecode for an ABS_EXPR.
9494         * doc/c-tree.texi: Document ABS_EXPR.
9496 2003-08-11  Roger Sayle  <roger@eyesopen.com>
9498         * fold-const.c (fold): Optimize any associative floating point
9499         operator with -funsafe-math-optimizations, not just MULT_EXPR.
9501 2003-08-11  Kaz Kojima  <kkojima@gcc.gnu.org>
9503         * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
9504         information in SHmedia case too.
9505         (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
9506         Likewise.
9507         (__set_fpscr): Use an access via GOT for PIC case.
9509 2003-08-11  Kelley Cook  <kelleycook@wideopenwest.com>
9511         * configure.in (intermodule): Make switch test more portable.
9512         * configure: Regenerate.
9514 2003-08-11  Kelley Cook  <kelleycook@wideopenwest.com>
9516         * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
9517         (restrap): Likewise.
9519 2003-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9521         * gcse.c (gmalloc): Argument is a size_t.  Add ATTRIBUTE_MALLOC.
9522         (grealloc): Size argument is a size_t.
9523         (gcalloc): New function.  Use throughout in lieu of
9524         gmalloc/memset.
9526         * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
9527         xmalloc/memset.
9528         * config/ia64/ia64.c (ia64_reorg): Likewise.
9529         * conflict.c (conflict_graph_new): Likewise.
9530         * fixinc/fixincl.c (run_compiles): Likewise.
9531         * genattrtab.c (optimize_attrs): Likewise.
9532         * genrecog.c (new_decision): Likewise.
9533         * haifa-sched.c (schedule_block): Likewise.
9534         * hashtable.c (ht_create): Likewise.
9536 2003-08-11  Bob Wilson  <bob.wilson@acm.org>
9538         * config/xtensa/lib2funcs.S: Fix whitespace.
9539         * config/xtensa/xtensa.md (all insns and expanders): Use brace block
9540         syntax where appropriate.  Remove unnecessary backslash escapes.
9541         Reformat comments and fix some code formatting.
9542         (extendqisi2): Rearrange conditional.
9543         (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
9544         *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
9545         of fatal_insn.
9547 2003-08-11  Richard Sandiford  <rsandifo@redhat.com>
9549         * config/mips/mips.c: Various formatting fixes.
9550         (override_options): Resync -mtune handling with gas.
9551         (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
9552         * config/mips/mips.h: More formatting fixes.
9553         (mips_abi): Move declaration.
9554         * config/mips/mips.md (exception_receiver): Add mode to
9555         unspec_volatile.
9557 2003-08-11  Aldy Hernandez  <aldyh@redhat.com>
9559         * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
9560         evsplatfi here.
9561         (bdesc_1arg): Remove evsplati and evsplatfi.
9563 2003-08-11  J"orn Rennecke <joern.rennecke@superh.com>
9565         * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
9566         into account.
9568 2003-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9570         * builtins.c (expand_builtin_strcat): Optimize constant strings.
9572 2003-08-10  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9574         * pretty-print.c (pp_base_indent): Rename from pp_indent.
9575         * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
9576         (struct c_pretty_print_info): Add more fields.
9577         (pp_c_left_paren): Move to c-pretty-print.c.
9578         (pp_c_right_paren): Likewise.
9579         (pp_c_left_brace): Likewise.
9580         (pp_c_right_brace): Likewise.
9581         (pp_c_left_bracket): Likewise.
9582         (pp_c_right_bracket): Likewise.
9583         (pp_c_declarator): Declare.
9584         (pp_c_direct_declarator): Likewise.
9585         (pp_c_specifier_qualifier_list): Likewise.
9586         (pp_c_type_id): Likewise.
9587         * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
9588         (pp_c_type_qualifier_list): New.
9589         (pp_c_pointer): Likewise.
9590         (pp_c_parameter_type_list): Likewise.
9591         (pp_c_function_definition): Likewise.
9592         (pp_c_id_expression): Likewise.
9593         (pp_c_simple_type_specifier): Tidy.
9594         (pp_c_unary_expression): Likewise.
9595         (pp_c_expression): Likewise.
9596         (pp_c_pretty_printer_init): Likewise.
9597         (pp_c_specifier_qualifier_list): Rework..
9598         (pp_c_abstract_declarator): Likewise.
9599         (pp_c_postfix_expression): Likewise.
9600         (pp_c_primary_expression): Likewise.
9601         (pp_c_cast_expression): Likewise.
9602         (pp_c_direct_abstract_declarator): Likewise.
9603         (pp_c_storage_class_specifier): Likewise.
9604         (pp_c_function_specifier): Likewise.
9605         (pp_c_declaration_specifiers): Likewise.
9606         (pp_c_direct_declarator): Likewise.
9607         (pp_c_declarator): Likewise.
9608         (pp_c_declaration): Likewise.
9609         (pp_c_statement): Likewise.
9610         (pp_c_integer_constant): Rename from pp_c_integer_literal.
9611         (pp_c_character_constant): Rename from pp_c_character_literal.
9612         (pp_c_bool_constant): Rename from pp_c_bool_literal.
9613         (pp_c_enumeration_constant): Rename from pp_c_enumerator.
9614         (pp_c_floating_constant): Rename from pp_c_real_literal.
9615         (pp_c_constant): Rename from pp_c_literal.
9616         * c-lang.c: Include diagnostic.h and c-pretty-print.h
9617         (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
9618         (c_initialize_diagnostics): New.
9619         * Makefile.in (c-lang.o): Update dependency.
9621 2003-08-10  Nathan Sidwell  <nathan@codesourcery.com>
9623         * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
9625 2003-08-10  Richard Sandiford  <rsandifo@redhat.com>
9627         * config/mips/mips.c (mips_no_mips16_string): Remove.
9628         (override_options): Don't handle -mips16 as part of -mipsN.
9629         * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
9630         (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
9631         (TARGET_OPTIONS): Remove -mno-mips16.
9633 2003-08-10  Richard Sandiford  <rsandifo@redhat.com>
9635         * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
9636         (coprocessor2_operand): Likewise.
9637         * config/mips/mips.c (STAB_CODE_TYPE): Remove.
9638         (lookup_name): Remove declaration.
9639         (abort_with_insn): Remove.  Replace all uses with fatal_insn.
9640         (mips16, mips_abicalls): Remove.
9641         (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
9642         (arith32_operand, large_int, true_reg_or_0_operand): Remove.
9643         (coprocessor_operand, coprocessor2_operand): Remove.
9644         (override_options): Don't set mips16 or mips_abicalls.
9645         (print_operand): Don't expect SIGN_EXTEND operands.
9646         (mips_secondary_reload_class): Likewise.
9647         (mips_output_conditional_branch): Remove disabled long-branch code.
9648         * config/mips/mips.h (call_used_regs): Remove declaration.
9649         (may_call_alloca): Likewise.
9650         (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
9651         (mips_abicalls, mips16): Remove declarations.
9652         (ASM_FINAL_SPEC, LIB_SPEC): Remove.
9653         (CC1_SPEC): Remove outdated comment.
9654         (MIPS_VERSION, MACHINE_TYPE): Remove.
9655         (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9656         (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
9657         (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
9658         (PUSH_ROUNDING): Likewise.
9659         (ASSEMBLER_SCRATCH_REGNUM): Remove.
9660         * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
9661         and mips16 with TARGET_MIPS16.
9663 2003-08-09  Per Bothner  <pbothner@apple.com>
9665         * cppinit.c (cpp_read_main_file):  Split out source-independent
9666         initialization to separate function ...
9667         (cpp_post_options):  New function.
9668         * cppfiles.c (cpp_stack_file):  Rename public name to ...
9669         (_cpp_stack_file):  New internal function name.
9670         * cpplib.h:  Update accordingly.
9671         * cppinit.c:  (cpp_create_reader):  Initialize cpp_readers line here.
9672         (cpp_read_main_file):  Don't initialize line here.
9673         * c-opts.c (c_common_post_options):  Call cpp_post_options.
9674         (c_common_parse_file):  Call cpp_read_main_file, not cpp_stack_file.
9675         * fix-header.c (read_scan_file):  Call cpp_post_options.
9677 2003-08-09  Per Bothner  <per@bothner.com>
9679         * c-decl.c (SCOPE_LIST_APPEND):  Remove bogus line continuation.
9681 2003-08-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9683         * pa.c (pa_asm_output_mi_thunk): Fix typo.
9685 2003-08-09  Neil Booth  <neil@daikokuya.co.uk>
9687         PR preprocessor/11839
9688         * cppfiles.c (open_file): Handle ENOTDIR.
9690 2003-08-09  Richard Sandiford  <rsandifo@redhat.com>
9692         PR target/11699
9693         * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
9695 2003-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9697         * pa.md (extzv, extv, insv): Fix operand limit checks.  Fail if
9698         source/destination is not a register operand.
9700 2003-08-08  Richard Henderson  <rth@redhat.com>
9702         PR target/11535
9703         * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
9704         RETURN_ADDRESS_POINTER_REGNUM.
9705         (ia64_expand_prologue): Don't frob it.
9706         (ia64_output_function_epilogue): Likewise.
9707         (ia64_return_addr_rtx): New.
9708         (ia64_split_return_addr_rtx): New.
9709         * config/ia64/ia64-protos.h: Update.
9710         * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
9711         (RETURN_ADDRESS_POINTER_REGNUM): Remove.
9712         (GENERAL_REGNO_P): Don't check it.
9713         (AR_*_REGNUM): Renumber.
9714         (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
9715         (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
9716         (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
9717         (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
9718         (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
9719         * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
9720         (movdi_ret_addr): New.
9722 2003-08-08  Geoffrey Keating  <geoffk@apple.com>
9724         * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
9726 2003-08-08  Roger Sayle  <roger@eyesopen.com>
9728         * tree.h (get_identifier) Define a macro form of get_identifier
9729         that calls get_identifier_with_length when the string is constant.
9730         (get_identifier_with_length): Change type of second argument to
9731         size_t in prototype.
9732         * stringpool.c (get_identifier): Undefine the macro before giving
9733         the function definition.
9734         (get_identifier_with_length): Change  type of second argument to
9735         size_t in function definition.
9736         * hashtable.c (calc_hash): Change type of second argument to size_t.
9737         (ht_lookup): Change type of third argument to size_t.  Reorganize
9738         to speed-up the cases where the hash table slot is empty, or the
9739         first probe matches (i.e. there isn't a collision).
9740         * hashtable.h (ht_lookup): Adjust function prototype.
9742 2003-08-08  Bernardo Innocenti  <bernie@develer.com>
9744         PR target/9697
9745         PR target/11777
9746         * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
9748 2003-08-08  Neil Booth  <neil@daikokuya.co.uk>
9750         * common.opt: Add debug switches.
9751         * flags.h (use_gnu_debug_info_extensions): Boolify.
9752         * opts.c (write_symbols, debug_info_level,
9753         use_gnu_debug_info_extensions): Move from toplev.c.
9754         (set_debug_level): New.
9755         (common_handle_options): Handle debug switches.
9756         (print_help): Display target options directly.
9757         * toplev.c (debug_hooks): Don't initialize.
9758         (write_symbols, debug_info_level,
9759         use_gnu_debug_info_extensions): Move to opts.c.
9760         (debug_args, display_help, decode_g_option): Remove.
9761         (process_options): Set no debug if level zero here,
9762         and no-debug-hooks.  Error here if impossible debug format selected.
9763         * toplev.h (display_help, decode_g_option): Remove.
9765 2003-08-08  Richard Sandiford  <rsandifo@redhat.com>
9767         * tree.c (get_file_function_name_long): Fix size of alloca() area.
9769 2003-08-08  Kelley Cook  <kelleycook@wideopenwest.com>
9771         * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
9772         and gcc_cv_prog_cmp_skip.
9773         * configure: Regenerate.
9775 2003-08-08  Stan Cox  <scox@redhat.com>
9777         * config/iq2000: New port.
9778         * config.gcc (iq2000-*-elf): Added.
9779         * doc/install.texi (Specific):  Add iq2000 description.
9781 2003-08-08  Andreas Schwab  <schwab@suse.de>
9783         * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
9784         and insert missing empty argument.
9785         * configure: Regenerate.
9787 2003-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9789         * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
9790         (attr_length_millicode_call): Likewise.
9791         (attr_length_call): Likewise.  Revise some maximum insn lengths.
9792         (attr_length_indirect_call): Likewise.
9793         (output_call): Fix thinko that added extra nop.
9794         * pa.h (IN_NAMED_SECTION_P): Define.
9796         PR c++/11712
9797         * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
9798         __STDC_EXT__ when using C++ dialect.
9800 2003-08-07  J"orn Rennecke <joern.rennecke@superh.com>
9802         * sh.c (calc_live_regs): If the return address pointer is live,
9803         force pr live.
9804         (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
9805         for saves / restores.
9806         (sh_expand_epilogue): If sh_media_register_for_return returns a
9807         register number, flag the instructions that restores PR_MEDIA_REG
9808         as possibly dead.
9809         Remove dead update of offset.
9810         (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
9811         we can use the result of get_hard_reg_initial_val.
9812         * sh.md (UNSPEC_RA): New constant.
9813         (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
9814         (load_ra).  Handle UNSPEC_RA.
9815         (sibcall_media): Use PR_MEDIA_REG.
9817         * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
9818         * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
9819         needs saving on SHmedia.
9821 2003-08-07  Ulrich Weigand  <uweigand@de.ibm.com>
9823         * config/s390/s390.md: Replace all occurrences of \\t with \t.
9825 2003-08-07  Richard Sandiford  <rsandifo@redhat.com>
9827         * local-alloc.c (combine_regs): Fix comment typo.
9829 2003-08-06  Zack Weinberg  <zack@codesourcery.com>
9831         * c-decl.c (builtin_decls): Replace with first_builtin_decl
9832         and last_builtin_decl.
9833         (c_init_decl_processing): Initialize both.
9834         (c_reset_state): Iterate from first_builtin_decl to
9835         last_builtin_decl inclusive to reintroduce builtins.
9837 2003-08-06  David Mosberger  <davidm@hpl.hp.com>
9839         * doc/extend.texi (Function Attributes): Document the IA-64 version
9840         of the "model" attribute.
9842         * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
9843         (SYMBOL_REF_SMALL_ADDR_P): Ditto.
9844         (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
9846         * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
9847         (ia64_encode_section_info): Likewise.
9848         (ia64_attribute_table): Add "model" attribute.
9849         (TARGET_ENCODE_SECTION_INFO): Define.
9850         (small_addr_symbolic_operand): New function.
9851         (got_symbolic_operand): Return 0 for a symbolref to an object
9852         in the small address area.
9853         (enum ia64_addr_area): New type.
9854         (small_ident1): New variable.
9855         (small_ident2): Likewise.
9856         (init_idents): New function.
9857         (ia64_get_addr_area): Likewise.
9858         (ia64_encode_addr_area): Likewise.
9859         (ia64_encode_section_info): Likewise.
9860         (ia64_expand_load_address): For symbolic references to objects in
9861         the small-address-area, load the address via gen_rtx_SET() (which,
9862         eventually, will expand into "addl").
9864 2003-08-06  Per Bothner  <pbothner@apple.com>
9866         * line-map.h (fileline):  New typedef.
9867         (struct line_map, linemap_add, linemap_lookup):  Use it.
9868         * input.h (struct location_s):  Comment notes that long-term we want
9869         to replace it by fileline.
9871 2003-08-06  J"orn Rennecke <joern.rennecke@superh.com>
9873         Fix SHcompact exception handling:
9874         * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
9875         by the prologue, return a MEM with return_address_pointer_rtx
9876         as address.
9877         * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
9878         (RETURN_ADDR_OFFSET): Don't define.
9879         (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
9880         registers that are visible in compact mode.  Show that SHmedia
9881         registers still exist in compact mode, even if there are not
9882         readily accessible.
9883         (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
9884         if GLOBAL.  Use DW_EH_PE_textrel (nominally) for CODE,
9885         and DW_EH_PE_pcrel for pic data.
9886         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
9887         set SYMBOL_FLAG_FUNCTION in symbol, and actually use
9888         DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
9889         (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
9890         * sh.md (movsi_media-1): New splitter.
9892 2003-08-06  Graeme Peterson <gp@qnx.com>
9894         * config/i386/nto.h: New.
9895         * config/i386/t-nto: New.
9896         * config.gcc (i[34567]86-*-nto-qnx*): New.
9898 2003-08-06  Phil Edwards  <pme@gcc.gnu.org>
9900         * doc/install.texi (*-*-solaris2*):  Refine configure instructions.
9902 2003-08-06  Alan Modra  <amodra@bigpond.net.au>
9904         * calls.c (load_register_parameters): Arrange for call_fusage to
9905         report the whole register as used when shifting to the msb.
9907 2003-08-05  Roger Sayle  <roger@eyesopen.com>
9909         * builtins.c (expand_builtin): When not optimizing, call the library
9910         function for all builtins that have library functions (except alloca).
9912 2003-08-05  Alexandre Oliva  <aoliva@redhat.com>
9914         * c.opt: Introduce -fworking-directory.
9915         * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
9916         * c-common.h (flag_working_directory): Declare.
9917         * c-common.c (flag_working_directory): Define.
9918         * c-opts.c (c_common_handle_options): Set it.
9919         (sanitize_cpp_opts): Set...
9920         * cpplib.h (struct cpp_options): ... working_directory option.
9921         (struct cpp_callbacks): Add dir_change.
9922         * cppinit.c (read_original_filename): Call...
9923         (read_original_directory): New.  Look for # 1 "directory//"
9924         and process it.
9925         (cpp_read_main_file): Call dir_change callback if working_directory
9926         option is set.
9927         * gcc.c (cpp_unique_options): Pass -g*.
9928         * c-lex.c (cb_dir_change): New.
9929         (init_c_lex): Set dir_change callback.
9930         * toplev.c (src_pwd): New static variable.
9931         (set_src_pwd, get_src_pwd): New functions.
9932         * toplev.h (get_src_pwd, set_src_pwd): Declare.
9933         * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
9934         * dwarf2out.c (gen_compile_unit_die): Likewise.
9935         * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
9937 2003-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9939         * pretty-print.h (pp_set_line_maximum_length): Make macro.
9940         (pp_set_prefix): Likewise.
9941         (pp_destroy_prefix): Likewise.
9942         (pp_remaining_character_count_for_line): Likewise.
9943         (pp_clear_output_area): Likewise.
9944         (pp_formatted_text): Likewise.
9945         (pp_last_position_in_text): Likewise.
9946         (pp_emit_prefix): Likewise.
9947         (pp_append_text): Likewise.
9948         (pp_flush): Likewise.
9949         (pp_format_text): Likewise.
9950         (pp_format_verbatim): Likewise.
9951         (pp_tree_identifier): Tidy.
9952         * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
9953         (pp_base_format_verbatim): Rename from pp_format_verbatim.
9954         (pp_base_flush): Rename from pp_flush.
9955         (pp_base_set_line_maximum_length): Rename from
9956         pp_set_line_maximum_length.
9957         (pp_base_clear_output_area): Rename from pp_clear_output_area.
9958         (pp_base_set_prefix): Rename from pp_set_prefix.
9959         (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
9960         (pp_base_emit_prefix): Rename from pp_emit_prefix.
9961         (pp_base_append_text): Rename from pp_append_text.
9962         (pp_base_formatted_text): Rename from pp_formatted_text.
9963         (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
9964         (pp_base_remaining_character_count_for_line): Rename from
9965         pp_remaining_character_count_for_line.
9966         * diagnostic.h (diagnostic_format_decoder): Tidy.
9967         (diagnostic_flush_buffer): Likewise.
9968         * c-pretty-print.h: (pp_c_string_literal): Declare.
9969         (pp_c_real_literal): Likewise.
9970         (pp_c_integer_literal): Likewise.
9971         * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
9972         pp_identifier.
9973         (pp_c_character_literal): Tidy.
9974         (pp_c_string_literal): Make public.
9975         (pp_c_bool_literal): Likewise.
9976         (pp_c_integer_literal): Likewise.
9977         (pp_c_real_literal): Likewise.
9979         * Makefile.in (C_PRETTY_PRINT_H): New variable.
9980         (c-pretty-print.o): Update dependence.
9982 2003-08-05  Chris Demetriou  <cgd@broadcom.com>
9984         * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
9985         ".set nomacro" state.
9986         (fix_truncsfsi2_macro): Likewise.
9988 2003-08-05  Steven Bosscher  <steven@gcc.gnu.org>
9990         * tree.h (DID_INLINE_FUNC): Remove macro.
9991         (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
9992         add tree check for FUNCTION_DECL.
9993         (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
9994         (struct tree_decl): Rename inlined_function_flag to
9995         declared_inline_flag.
9996         * c-common.h (c_lang_decl): Remove.
9997         (DECL_ESTIMATED_INSNS): Remove.
9998         * c-tree.h (struct lang_decl): Don't include c_lang_decl.
9999         (DECL_DECLARED_INLINE_P): Remove.
10000         * c-decl.c (grokdeclarator): Update comment.  With -finline-functions,
10001         do not reset DECL_DECLARED_INLINE_P.  Don't use DID_INLINE_FUNC.
10002         (finish_function): Make uninlinable a bool.  Fixup call to
10003         tree_inlinable_function_p() and fix some code style issues.
10004         * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
10005         * cgraph.c (dump_cgraph): Likewise.
10006         * cgraphunit.c (cgraph_decide_inlining): Likewise
10007         (cgraph_finalize_compilation_unit): Likewise.
10008         Also update call to tree_inlinable_function_p().
10009         (cgraph_default_inline_p): Don't use DID_INLINE_FUNC.  Instead
10010         look at DECL_DECLARED_INLINE and reverse logic.
10011         * print-tree.c (print_node): Likewise.
10012         * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
10013         * tree-inline.h (tree_inlinable_function_p): Make a bool.  Update
10014         prototype.
10015         * tree-inline.c (inlinable_function_p): Split up in this function to
10016         check for basic inlining inhibiting conditions, and new
10017         limits_allow_inlining() function.  Warn if inlining is impossible
10018         because the inline candidate calls alloca or uses sjlj exceptions.
10019         (limits_allow_inlining): this new function to check if the inlining
10020         limits are satisfied.  Throttle from currfn_max_inline_insns, not from
10021         MAX_INLINE_INSNS_SINGLE.  The latter only makes sense if
10022         MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
10023         Update prototypes.
10024         (tree_inlinable_function_p): Make a bool.  Update call to
10025         inlinable_function_p
10026         (expand_call_inline): Use limits_allow_inlining() when not in
10027         unit-at-a-time mode to decide on inlining.  Don't use DID_INLINE_FUNC,
10028         instead see if the function was declared `inline'.
10030 2003-08-05  Josef Zlomek  <zlomekj@suse.cz>
10032         * gcse.c (try_replace_reg): Fix updating of note.
10034 2003-08-04  Roger Sayle  <roger@eyesopen.com>
10036         PR middle-end/11771
10037         * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
10038         logic in negate_expr, i.e. we don't invert (A-B) for floating
10039         point types unless flag_unsafe_math_optimizations.
10041 2003-08-04  Roger Sayle  <roger@eyesopen.com>
10043         * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
10044         Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
10045         for floating point expressions with -ffast-math.
10046         (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
10047         * expmed.c (expand_mult): Wrap long line.  Expand x*2.0 as x+x.
10049 2003-08-04  Roger Sayle  <roger@eyesopen.com>
10051         * c-common.c (flag_noniso_default_format_attributes): Delete.
10052         (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
10053         (c_attrs_initialized): Delete.
10054         (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
10055         always call c_init_attributes.
10056         (c_init_attributes): Don't define/undefine DEF_FN_ATTR.  Don't
10057         set c_attrs_initialized when done.
10058         (c_common_insert_default_attributes): Delete.
10059         * c-common.h (flag_noniso_default_format_attributes): Delete.
10060         (c_coomon_insert_default_attributes): Delete prototype.
10061         * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
10062         flag_noniso_default_format_attributes.
10064         * c-decl.c (c_insert_default_attributes): Delete.
10065         * c-tree.h (c_insert_default_attributes): Delete prototype.
10067         * attribs.c (decl_attributes): Don't call insert_default_attributes
10068         langhook.  Update function description comment.
10069         * langhooks.h (lang_hooks): Remove insert_default_attributes field.
10070         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
10071         * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
10072         * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
10074         * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
10075         define.
10077 2003-08-04  Richard Sandiford  <rsandif@redhat.com>
10079         * config/mips/mips.c (override_options): Disable -G on targets that
10080         have no .section support.
10081         (mips_select_section): Use default_select_section for such targets.
10083 2003-08-04  Nathanael Nerode  <neroden@gcc.gnu.org>
10085         * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
10086         * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
10087         * fixinc/fixincl.x: Rebuild.
10088         * fixinc/tests/base/regexp.h: New test.
10090 2003-08-04  Alexandre Oliva  <aoliva@redhat.com>
10092         * c-ppoutput.c (cb_line_change): Don't skip line changing while
10093         parsing macro arguments in the top-level context.
10095 2003-08-04  Neil Booth  <neil@daikokuya.co.uk>
10097         * config.in: Remove HAVE_LSTAT.
10098         * configure, configure.in: Don't test for lstat.
10100 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10102         * opts.c (decode_options): Do language-specific initialization for
10103         the global diagnostic context.
10104         * langhooks-def.h (lhd_initialize_diagnostics): Declare.
10105         (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
10106         (LANG_HOOKS_INITIALIZER): Adjust.
10107         * langhooks.h (struct lang_hooks): Add new field
10108         initialize_diagnostics.
10109         * langhooks.c (lhd_initialize_diagnostics): Define.
10111 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10113         * pretty-print.h:   Adjust macro definitions.
10114         * pretty-print.c (pp_newline): Rename to pp_base_newline.
10115         (pp_character): Rename to pp_base_character.
10116         (pp_string): Rename to pp_base_string.
10117         * c-pretty-print.c (pp_buffer): Move to pretty-print.h
10118         (pp_newline):  Likewise.  Adjust.
10119         (pp_c_char): Adjust.
10121 2003-08-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10123         * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
10124         BUILT_IN_LLABS): Move to miscellaneous section.
10126 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
10128         PR preprocessor/11534
10129         * cppexp.c (parse_defined): Warn only if -pedantic.
10131 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
10133         * cppfiles.c (stack_file): Use file path.
10135 2003-08-02  Roger Sayle  <roger@eyesopen.com>
10137         * builtin-types.def (BT_SSIZE): New primitive type.
10138         (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
10139         BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
10140         BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
10141         BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
10142         * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
10143         BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
10144         BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
10145         * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
10146         few functions that define default attributes using it.
10147         * c-common.c (c_common_insert_default_attributes): Do nothing.
10149         * doc/extend.texi: Document these "new" builtins.
10151 2003-08-02  Kaz Kojima  <kkojima@gcc.gnu.org>
10153         * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
10154         (LIB_SPEC): Set -lpthread always when -pthread set.  Set -lieee
10155         when -mieee-fp set and -shared not set.
10156         (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
10158 2003-08-02  Neil Booth  <neil@daikokuya.co.uk>
10160         * cppfiles.c (struct _cpp_file): Rename once_only_next to
10161         next_file.  Remove import and pragma_once, add once_only.
10162         (find_file): Add new file structures to the all_files list.
10163         (should_stack_file): Mark #import-ed files once-only, and
10164         don't stack them if the file has already been stacked.
10165         (_cp_mark_file_once_only): Simplify.
10166         * cpphash.h (struct cpp_reader): Rename once_only_files
10167         to all_files.  Rename saw_pragma_once to seen_once_only.
10168         (_cpp_mark_file_once_only): Update prototype.
10169         * cpplib.c (do_pragma_once): Update.
10171 2003-08-02  Neil Booth  <neil@daikokuya.co.uk>
10173         * cppfiles.c (ENOTDIR): Remove.
10174         (open_file_in_dir): Rename find_file_in_dir.  Handle errors
10175         other than ENOENT here.
10176         (once_only_file_p): Rename should_stack_file.
10177         (find_file, open_file_failed, read_file_guts): Report errors
10178         with full path name.
10179         (read_file): Move pch handling to should_stack_file.
10180         (should_stack_file): Handle PCH and once-only issues, and
10181         reading the file.
10182         (stack_file): Don't do file reads.
10184 2003-08-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10186         * libgcov.c (gcov_exit): Cleanup and fix.
10187         * profile.c (compute_value_histograms): Don't try to read profiles
10188         that are not present.
10190 2003-08-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10192         * builtins.def: Categorize.
10194         * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
10195         Mind fp rounding.
10196         (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
10198 2003-08-02  Andreas Tobler  <a.tobler@schweiz.ch>
10200         * config.gcc: Enable posix threads by default on darwin.
10202 2003-08-01  Jakub Jelinek  <jakub@redhat.com>
10204         * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
10205         even if nehedges1 is 0.
10207 2003-08-01  Nathanael Nerode  <neroden@gcc.gnu.org>
10209         * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
10210         fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
10211         fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
10212         and defintions.
10214         * fixinc/inclhack.def (broken_cabs): Make matching more generous.
10215         * fixinc/fixincl.x: Regenerate.
10216         * fixinc/tests/base/math.h: Regenerate to match test_text change.
10218 2003-08-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10220         * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
10222 2003-08-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10224         * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
10225         for accesses to exc_ptr.
10227 2003-08-01  Geoffrey Keating  <geoffk@apple.com>
10229         * doc/sourcebuild.texi (Front End Directory): Don't make references
10230         to libsubdir, it's not part of the interface to frontends.
10231         * doc/install.texi (Configuration): Help users read faster by saying
10232         that GCC's configure options are the standard autoconf ones.
10233         Mention --libdir.  Update the default rules for finding the
10234         assembler.  Don't use libsubdir since we haven't said what it means.
10235         (Specific): In the Solaris 7 notes, update the place to put the
10236         assembler.
10237         * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
10238         * doc/cpp.texi (Search Path): Actually, the search path
10239         depends on libdir, which can relocate with cpp.
10240         * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
10241         now a private interface between the Makefile and the driver.
10243 2003-08-01  Richard Henderson  <rth@redhat.com>
10245         * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
10247         * varasm.c (lookup_constant_def): New function.
10248         * rtl.h (lookup_constant_def): Declare it.
10249         * dwarf2out.c (loc_descriptor_from_tree): Use it.
10250         Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
10252 2003-08-01  Zack Weinberg  <zack@codesourcery.com>
10254         * c-decl.c (gettags, pushdecl_function_level): Delete.
10255         (last_function_parm_vars): Rename last_function_parm_others.
10256         (current_function_parm_vars): Rename current_function_parm_others.
10257         (struct c_scope): Rewrite comment explaining this data structure.
10258         Add names_last, blocks_last, parms_last fields.  Rename
10259         incomplete_list to incomplete.
10260         (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
10261         (poplevel): Ignore second argument.  No need to nreverse
10262         anything.  Restructure such that each list is processed
10263         exactly once.  Use 'const location_t *locus' syntactic sugar
10264         variable where useful.  Issue unused variable warnings
10265         ourselves, do not rely on function.c.
10266         (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
10267         (pushdecl_top_level): Likewise.  Don't call duplicate_decls.
10268         (implicitly_declare): decl cannot be error_mark_node.
10269         (undeclared_variable): Manipulate scope structure directly.
10270         (c_make_fname_decl): Likewise.
10271         (getdecls, c_init_decl_processing): Fix comment.
10272         (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT.  No need
10273         for 'last' variable.
10274         (grokparms): No need to nreverse parms list.
10275         (store_parm_decls_newstyle): Set up the parms_last and
10276         names_last fields of the new scope too.
10277         (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
10278         on parms to begin with; check this under ENABLE_CHECKING.  Set
10279         up parms_last.
10280         (check_for_loop_decls): Refer directly to current_scope->tags.
10281         Use consistent quote style in diagnostics.
10282         (c_write_global_declarations): The names list is not backward.
10284         * c-common.h: Don't prototype gettags.
10285         * c-parse.in: Call poplevel with second argument 0 always.
10287 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10289         * builtins.def: Resort builtins.
10291 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10293         * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
10294         DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
10295         Prepend "__builtin_" onto NAME with string concatenation.  Remove
10296         explicit "__builtin_" from each macro call.
10298         Reformat entire file.
10300 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10302         * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
10303         ATTR_MATHFN_FPROUNDING_ERRNO): New macros.  Use throughout.
10305 2003-08-01  Andreas Krebbel  <krebbel1@de.ibm.com>
10307         * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
10308         CCL1, or CCL2 modes with floating point operations.
10310         * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
10311         "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
10312         "*subdf3_cconly"): New insns.
10313         ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
10315 2003-08-01  Neil Booth  <neil@daikokuya.co.uk>
10317         * Makefile.in: Refine dependencies.
10318         * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
10319         * c.opt: Update help for -Wimport.
10320         * cppfiles.c: Include hashtab.h.  Update comments.
10321         (stack_file): Read the file before updating dependencies.
10322         (once_only_file_p): Be smarter about marking once-only files.
10323         (_cpp_mark_file_once_only): Correct the check for existence on
10324         the list.
10325         (open_file_failed): Use name not path, which is NULL.
10326         * cpphash.h: Don't include hashtab.h.
10327         (struct _cpp_file): Remove.
10328         (struct cpp_reader): Update.
10329         * cppinit.c (cpp_create_reader): Don't initialize warn_import.
10330         * cpplib.h (struct cpp_options): Remove warn_import.
10331         (cpp_simplify_path): Remove.
10333 2003-08-01  Nathan Sidwell  <nathan@codesourcery.com>
10335         PR c++/11295
10336         * doc/extend.texi (Statement Expressions): Document C++ semantics.
10338 2003-07-31  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
10340         * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
10342 2003-07-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10344         * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
10345         throughout.
10346         * builtins.def: Likewise.
10348 2003-07-31  Jason Merrill  <jason@redhat.com>
10350         * Makefile.in (bubblestrap): Don't require a previous full
10351         bootstrap.
10353         * expr.c (mostly_zeros_p): No longer static.
10354         * tree.h: Declare it.
10355         * stmt.c (resolve_asm_operand_names): Don't copy the pattern
10356         unless we need to do substitutions.
10358 2003-07-31  Roger Sayle  <roger@eyesopen.com>
10360         * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
10361         pow(x,c)*x as pow(x,c+1) for constant values c.  Optimize x*x
10362         as pow(x,2.0) when the latter will be expanded back into x*x.
10363         (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
10364         * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
10365         pow can never set errno when used with an integer exponent.
10366         Always use expand_powi when exponent is -1, 0, 1 or 2.
10367         (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
10368         as 1.0/(x*x).  This avoids unbounded recursion as we now prefer
10369         the pow forms of these expressions.
10371 2003-07-31  Geoffrey Keating  <geoffk@apple.com>
10373         * Makefile.in (libexecdir): New.
10374         (libsubdir): Use gcc instead of gcc-lib.
10375         (libexecsubdir): New.
10376         (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
10377         (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
10378         gcc-lib.
10379         (installdirs): Make libexecsubdir.
10380         (install-common): Put executables in libexecsubdir.
10381         (itoolsdir): Use libexecsubdir.
10382         (itoolsdatadir): New.
10383         (install-mkheaders): Separate data files and executables.
10384         (install-collect2): Put executables in libexecsubdir.
10385         (uninstall): Remove libexecsubdir.
10386         * mkheaders.in: Update for new arrangement of files.
10387         (libexecdir): New.
10388         (libexecsubdir): New.
10389         (itoolsdir): Use libexecsubdir.
10390         (itoolsdatadir): New.
10391         * gcc.c (gcc_libexec_prefix): New.
10392         (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
10393         (standard_exec_prefix_1): Use libexec.
10394         (standard_exec_prefix_2): New.
10395         (standard_libexec_prefix): New.
10396         (process_command): Update for new arrangement of files.  Compute
10397         gcc_libexec_prefix.  Update for change from gcc-lib to gcc.
10399 2003-07-31  Nathanael Nerode  <neroden@gcc.gnu.org>
10401         * inclhack.def (stdio_va_list): Avoid bogus replacement which
10402         triggers on Interix.
10403         * fixincl.x: Regenerate.
10405 2003-07-31  Jakub Jelinek  <jakub@redhat.com>
10407         * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
10408         SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
10410 2003-07-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10412         * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
10414 2003-07-31  Per Bothner  <pbothner@apple.com>
10416         * opts.c (in_fnames, num_in_fnames):  Moved here from c-opts.
10417         (add_input_filename):  New function.
10418         (handle_options):  Call add_input_filename directly instead of
10419         with a lang hook.
10420         * opts.h (in_fnames, num_in_fnames):  Moved here.
10421         (add_input_filename):  Declare.
10422         * c-decl.c:  Need to #include opts.h.
10423         * Makefile.in (c-decl.o):  Also depends on opts.h.
10424         * c-opts.c (in_fnames, num_in_fnames):  Moved to opts.c.
10425         (c_common_handle_filename):  Replaced by add_input_filename.
10426         * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
10427         Remove.
10428         * langhooks.h (struct lang_hooks):  Remove handle_filename hook.
10429         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
10430         (LANG_HOOKS_INITIALIZER):  Remove use of LANG_HOOKS_HANDLE_FILENAME.
10431         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
10433 2003-07-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10435         * combine.c (try_combine): Set JUMP_LABEL for newly created
10436         unconditional jump.
10438 2003-07-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10440         * fold-const.c (fold): Fold some comparisons of bit operations.
10442 2003-07-31  Jan Hubicka  <jh@suse.cz>
10444         * cgraph.c (create_edge): Fix typo.
10445         * i386.c (pic_symbolic_operand): Reorder tests.
10447 2003-07-31  Nathan Sidwell  <nathan@codesourcery.com>
10449         * doc/gcov.texi (Invoking Gcov): Describe output name mangling
10450         more fully.
10451         (Gcov Data Files): Update.
10453 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10455         * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
10456         default.
10458         * gthr-posix.c: New file.
10459         * gthr-posix.h: Define _REENTRANT if missing.
10460         Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
10462         * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
10463         by gthr-posix.o.
10464         * config/alpha/t-osf-pthread: New file.
10466         * fixinc/inclhack.def (alpha_pthread): New fix.
10467         * fixinc/fixincl.x: Regenerate.
10468         * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
10470         * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
10471         warning.
10472         Fixes PR bootstrap/9330.
10474 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10476         * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
10477         without GNU ld.
10478         Update comment.
10479         * configure: Regenerate.
10481 2003-07-31  Vladimir Makarov  <vmakarov@redhat.com>
10483         * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
10484         setter.
10486 2003-07-30  Roger Sayle  <roger@eyesopen.com>
10488         * builtins.def: Alphabetize.
10490 2003-07-30  Matt Kraai  <kraai@alumni.cmu.edu>
10492         * doc/c-tree.texi: Normalize spellings of "lowercase" and
10493         "uppercase".
10494         * doc/cpp.texi: Likewise.
10495         * doc/md.texi: Likewise.
10496         * doc/rtl.texi: Likewise.
10497         * doc/tm.texi: Likewise.
10499 2003-07-30  Matt Kraai  <kraai@alumni.cmu.edu>
10501         * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
10502         (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
10503         of cc1obj.
10505 2003-07-30  Chris Demetriou  <cgd@broadcom.com>
10507         * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
10508         macros before defining them.
10510 2003-07-31  Ulrich Weigand  <uweigand@de.ibm.com>
10512         * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
10513         UNSPECV_BLOCKAGE): New constants.
10514         ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
10515         "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
10516         splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
10517         "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
10519         (all insns and expanders): Write output control string as brace block
10520         where appropriate.  Remove \-escapes for doublequote characters.
10522 2003-07-31  Jan Hubicka  <jh@suse.cz>
10524         * gcse.c (insert_store): Fix typo in previous patch.
10526 2003-07-30  Neil Booth  <neil@daikokuya.co.uk>
10528         * cppfiles.c (stack_file, open_file_failed): Use path for deps.
10530 2003-07-30  Andi Kleen  <ak@muc.de>
10532         * loop.c (check_dbra_loop): Allow LTU in the loop condition.
10534 2003-07-30  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10536         * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
10537         * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
10538         GCOV_N_VALUE_COUNTERS): New.
10539         * profile.c (compute_value_histograms): New static function.
10540         (branch_prob): Read back the value histograms.
10541         * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
10542         * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
10543         * value-prof.c: Add comment on reading the profile.
10544         * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
10545         * doc/invoke.texi (-fprofile-values): Document behavior with
10546         -fbranch-probabilities.
10548 2003-07-30  David Edelsohn  <edelsohn@gnu.org>
10550         * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
10552 2003-07-30  Ulrich Weigand  <uweigand@de.ibm.com>
10554         * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
10555         symbolically.
10557 2003-07-30  Jan Hubicka  <jh@suse.cz>
10559         * gcse.c (insert_store): Ignore fake edges.
10561         * c-common.c (flag_vtable_gc): Kill.
10562         * c-common.g (flag_vtable_gc): Kill.
10563         * c-opts (c_common_handle_option): Kill.
10564         * c.opt (fvtable-gc): Kill.
10565         * final.c (final_scan_insn): Do not call assemble_vtable_entry.
10566         * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
10567         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
10569         * invoke.texi (-ftable-gc): Kill documentation.
10571         * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
10572         just because function body is missing.
10574         * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
10576 2003-07-30  Ranjit Mathew  <rmathew@hotmail.com>
10578         * unwind-sjlj.c: Fix typo in file description.
10580 2003-07-30  Alan Modra  <amodra@bigpond.net.au>
10582         * calls.c (load_register_parameters): When shifting reg sized values
10583         to the msb, move the value to a reg first.
10585 2003-07-29  Geoffrey Keating  <geoffk@apple.com>
10587         * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
10588         * line-map.h (linemap_add): Update comments.
10589         * line-map.c (linemap_add): Update comments, interpret zero-length
10590         filename as "<stdin>".
10592 2003-07-29  Nathanael Nerode  <neroden@gcc.gnu.org>
10594         * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
10596 2003-07-29  Zack Weinberg  <zack@codesourcery.com>
10598         * c-decl.c (last_function_parm_vars, current_function_parm_vars):
10599         New static variables.
10600         (struct c_scope): Add parms and warned_forward_parm_decls
10601         fields; remove parm_order.
10602         (storedecls, storetags): Delete.
10603         (poplevel): Also clear bindings on the parms chain.
10604         (pushdecl): Handle forward declarations of parameters, and
10605         chain PARM_DECLs on the parms list, not the names list.
10606         (lookup_name_current_level): Check for PARM_DECLs on the parms
10607         list too.
10608         (push_parm_decl): Don't update parm_order.
10609         (clear_parm_order): Rename mark_forward_parm_decls.  Issue the
10610         warning, only once per parameter list, and set TREE_ASM_WRITTEN
10611         on the decls here.  Then move the forward decls to the names list.
10612         (grokparms): Set last_function_parm_vars.
10613         (get_parm_info): Don't use gettags or getdecls.  No need to
10614         extract non-parms from the parms list, or reorganize the parms
10615         list.  Feed nonparms back in the TREE_TYPE of the list node
10616         returned.  Issue only one error per parameter list for "void"
10617         appearing more than once in said parameter list.  Collapse
10618         parmlist_tags_warning into this function to avoid double scan
10619         of tags list.
10620         (start_function): Set current_function_parm_vars.
10621         (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
10622         directly.  Get non-parms from current_function_parm_vars; no
10623         need to extract them from the parms chain.  Properly bind tags
10624         in the new scope.
10625         (store_parm_decls_oldstyle): No need to extract non-parameters
10626         from the parms chain, nor to store them back afterward.  Move
10627         declaration to top of function, restructure code reordering
10628         DECL_ARGUMENTS.
10629         (store_parm_decls): No need to save and restore warn_shadow.
10630         * c-parse.in: Don't call parmlist_tags_warning nor
10631         clear_parm_order.  Call mark_forward_parm_decls when forward
10632         parm decls are encountered.
10633         * c-tree.h: Prototype mark_forward_parm_decls; not
10634         clear_parm_order or parmlist_tags_warning.
10636 2003-07-29  Geoffrey Keating  <geoffk@apple.com>
10638         * c-common.c (allow_pch): Remove.
10639         * c-common.h (allow_pch): Remove.
10640         (c_common_no_more_pch): Declare.
10641         * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
10642         * c-pch.c: Include hosthooks.h.
10643         (c_common_valid_pch): Don't check allow_pch.
10644         (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
10645         (c_common_no_more_pch): New.
10646         * ggc-common.c: Include hosthooks.h.
10647         (gt_pch_save): Call gt_pch_get_address.
10648         (gt_pch_restore): Call gt_pch_use_address.
10649         * hooks.c (hook_voidp_size_t_null): New.
10650         (hook_bool_voidp_size_t_false): New.
10651         * hooks.h (hook_voidp_size_t_null): New.
10652         (hook_bool_voidp_size_t_false): New.
10653         * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
10654         (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
10655         (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
10656         HOST_HOOKS_GT_PCH_USE_ADDRESS.
10657         * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
10658         gt_pch_use_address.
10659         * doc/hostconfig.texi (Host Common): Document
10660         HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
10661         * Makefile.in (c-pch.o): Depend on hosthooks.h.
10662         (ggc-common.o): Likewise.
10664         * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
10665         (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
10666         (pch_address_space): New.
10667         (darwin_rs6000_gt_pch_get_address): New.
10668         (darwin_rs6000_gt_pch_use_address): New.
10670 2003-07-29  Neil Booth  <neil@daikokuya.co.uk>
10672         PR preprocessor/11569
10673         PR preprocessor/11649
10674         * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
10675         * cppfiles.c: Completely rewritten.
10676         * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
10677         struct cpp_path is now struct cpp_dir.
10678         (remove_duplicates): Don't simplify path names.
10679         * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
10680         cpp_stack_file.
10681         * cpphash.h: Include hashtab.h.
10682         (_cpp_file): Declare.
10683         (struct cpp_buffer): struct include_file is now struct _cpp_file,
10684         and struct cpp_path is now struct cpp_dir.  Rename members.
10685         (struct cpp_reader): Similarly.  New members once_only_files,
10686         file_hash, file_hash_entries, quote_ignores_source_dir,
10687         no_search_path, saw_pragma_once.  Remove all_include_files and
10688         max_include_len.  Make some members bool.
10689         (_cpp_mark_only_only): Renamed from _cpp_never_reread.
10690         (_cpp_stack_file): Renamed from _cpp_read_file.
10691         (_cpp_stack_include): Renamed from _cpp_execute_include.
10692         (_cpp_init_files): Renamed from _cpp_init_includes.
10693         (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
10694         * cppinit.c (cpp_create_reader): Initialize no_search_path.  Update.
10695         (cpp_read_next_file): Rename and move to cppfiles.c.
10696         (cpp_read_main_file): Update.
10697         * cpplib.c (run_directive): Update for renamed members.
10698         (do_include_common, _cpp_pop_buffer): Update.
10699         (do_import): Undeprecate #import.
10700         (do_pragma_once): Undeprecate.  Use _cpp_mark_file_once_only.
10701         * cpplib.h: Remove file_name_map_list.
10702         (cpp_options): Remove map_list.
10703         (cpp_dir): Rename from cpp_path.  New datatype for name_map.
10704         (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
10706 2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
10708         * Makefile.in:  Make stamp-objdir safe for parallel builds.
10710 2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
10712         * Makefile.in (stmp-docobjdir):  New target; ensure $docobjdir exists.
10713         (info):  Depend on stmp-docobjdir.
10715 2003-07-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10717         * configure: Regenerate.
10719 2003-07-29  Jan Hubicka  <jh@suse.cz>
10721         PR C++/11131
10722         * tree-inline.c (expand_call_inline): Always call inlinable_function_p
10723         in !unit-at-a-time mode.
10725 2003-07-28  Geoffrey Keating  <geoffk@apple.com>
10727         * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
10728         main function.
10730 2003-07-28  Mark Mitchell  <mark@codesourcery.com>
10732         PR c++/11667
10733         * c-common.c (shorten_compare): Take into account differences
10734         between C and C++ representation for enumeration types.
10735         * tree.h (set_min_and_max_values_for_integral_type): Declare.
10736         * stor-layout.c (set_min_and_max_values_for_integral_type): New
10737         function, broken out from ...
10738         (fixup_signed_type): ... here and ...
10739         (fixup_unsigned_type): ... here.
10741 2003-07-28  Zack Weinberg  <zack@codesourcery.com>
10743         * c-decl.c: Update commentary, adjust blank lines throughout.
10744         (struct c_scope): Fix indentation.  Reorder members so
10745         outer-context pointers come first, booleans last.
10746         (duplicate_decls, define_label): Use a 'locus' variable for
10747         diagnostic locations in a few more places.
10748         (warn_if_shadowing): Un-split a conditional that fits on one line.
10749         (c_init_decl_processing): No need to clear current_scope and
10750         current_function_scope.
10751         (start_decl): Merge if/else if statements with same action.
10752         (push_parm_decl): Rename old_immediate_size_expand to use
10753         save_foo convention; save/restore around entire function.
10754         (grokdeclarator): Remove unnecessary braces.
10756 2003-07-28  Hans-Peter Nilsson  <hp@bitrange.com>
10757             Michael Culbertson  <Michael.J.Culbertson@wheaton.edu>
10759         * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
10760         when warn_declaration_after_statement.  Call pedwarn_c90, not
10761         pedwarn.  Correct message: it's "ISO C90", not "ISO C89".
10762         * c-common.c (warn_declaration_after_statement): Define.
10763         * c-common.h (warn_declaration_after_statement): Declare.
10764         * c.opt (Wdeclaration-after-statement): New.
10765         * c-errors.c (pedwarn_c90): New function.
10766         * c-opts.c (c_common_handle_option) <case
10767         OPT_Wdeclaration_after_statement>: New.
10768         * c-tree.h (pedwarn_c90): Declare.
10769         * doc/invoke.texi (Option Summary): Document
10770         -Wdeclaration-after-statement.
10771         (Warning Options): Ditto.
10773 2003-07-28  Jan Hubicka  <jh@suse.cz>
10775         * i386.md (memory attribute) Avoid accessing uninitialized memory
10776         for ishift1 type instructions.
10778 2003-07-28  Jakub Jelinek  <jakub@redhat.com>
10780         * configure.in (--enable-checking): Add fold category.
10781         (ENABLE_FOLD_CHECKING): Define if requested.
10782         * configure: Rebuilt.
10783         * config.in: Rebuilt.
10784         * doc/install.texi: Document it.
10785         * fold-const.c: Include md5.h.
10786         [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
10787         [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
10788         print_fold_checksum): New functions.
10790         * fold-const.c (fold): Never modify argument passed to fold, instead
10791         change a copy and return it.
10792         * convert.c (convert_to_integer): Likewise.
10794 2003-07-27  Nathanael Nerode  <neroden@gcc.gnu.org>
10796         * fixinc/fixinc.svr4: Remove dead code.  Remove now-unnecessary
10797         cleanup of junk after #else and #endif directives.  Collapse repeated
10798         clauses into for statment.
10800         * fixinc/fixincl.sh: GNU C -> GCC.  Add usage comment.
10802 2003-07-27  Zack Weinberg  <zack@codesourcery.com>
10804         * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
10805         (keep_next_if_subblocks): Rename next_is_function_body.
10806         (pushlevel): Adjust commentary.  Always set ->keep on the
10807         outermost level of a function.  Don't set ->keep_if_subblocks.
10808         (poplevel): Adjust commentary.  Don't look at ->keep_if_subblocks.
10809         (store_parm_decls): Adjust to match.
10810         (finish_function): Adjust to match.
10811         Call poplevel with all three arguments zero.
10813         * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
10814         New functions split out of store_parm_decls.
10815         Avoid unnecessary work. Use local variables consistently.
10816         (store_parm_decls): Likewise.
10818         (finish_function): No need to set functionbody flag on call to
10819         poplevel.
10820         (struct language_function): Remove scope field.
10821         (c_push_function_context, c_pop_function_context): No need to
10822         save and restore current_scope.
10824 2003-07-27  Nathan Sidwell  <nathan@codesourcery.com>
10826         * doc/extend.texi (Deprecated Features): Implicit typename is
10827         gone. Default args on types is going.
10829 2003-07-26  J"orn Rennecke <joern.rennecke@superh.com>
10831         * Makefile.in (ifcvt.o): Depend on target.h
10832         * ifcvt.c (target.h): Include.
10833         (if_convert): Don't call mark_loop_exit_edges if we can't
10834         modify jumps.
10836 2003-07-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10838         * doc/install.texi (Testing): Adjust required versions of DejaGnu.
10840 2003-07-26  Richard Henderson  <rth@redhat.com>
10842         PR inline-asm/11676
10843         * cse.c (count_reg_usage): Handle asm_operands properly.
10845 2003-07-26  Roger Sayle  <roger@eyesopen.com>
10847         * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
10848         (DEF_EXT_FALLBACK_BUILTIN): Delete.
10849         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
10850         the regular DEF_EXT_LIB_BUILTIN macro.
10851         (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
10852         the regular DEF_LIB_BUILTIN macro.
10853         (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
10854         BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
10855         BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
10856         DEF_EXT_LIB_BUILTIN macro.
10858         * c-decl.c (duplicate_decls): Remove code to handle builtin
10859         functions prototyped without an argument list.
10861 2003-07-26  Danny Smith  <dannysmith@users.sourceforge.net>
10863         * config/i386/winnt.c: Revert 2003-07-08 change.
10864         (i386_pe_section_type_flags): Remove error_with_decl here too.
10866 2003-07-26  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10868         * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
10869         * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
10870         * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
10871         (v850_handle_data_area_attribute): Likewise.
10873 2003-07-26  Geoffrey Keating  <geoffk@apple.com>
10875         * varasm.c (output_constant_def_contents): Use
10876         ASM_DECLARE_CONSTANT_NAME if defined.
10877         * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
10878         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
10879         objects get at least one byte to prevent assembler problems.
10880         (ASM_DECLARE_CONSTANT_NAME): New.
10882         * Makefile.in (libbackend.o): Remove options_.h.
10883         (mostlyclean): Likewise.
10885         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
10886         insert a label at the end of an function under Mach-O.
10888         * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
10890 2003-07-25  Aldy Hernandez  <aldyh@redhat.com>
10892         * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
10893         equality.
10894         (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
10896         * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
10898 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10900         * doc/passes.texi (Passes): Mention pretty-printing and
10901         diagnostic files.
10903 2003-07-25  Nathan Sidwell  <nathan@codesourcery.com>
10905         * doc/extend.texi (Function Attributes): GNU C++ does now allow
10906         unused parameter decls.
10907         (Attribute Syntax): GNU C++ does not allow label attributes to be
10908         after the ':'.
10910 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10912         * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
10913         (objc_declare_class): Likewise.
10914         (error_with_ivar): Likewise.
10915         (start_class): Likewise.
10916         (warn_with_method): Likewise.
10918 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10920         Remove pedwarn_with_decl, warning_with_decl and error_with_decl
10921         from GCC.
10922         * calls.c (try_to_integrate): Don't use xxx_with_decl.
10923         (expand_call): Likewise.
10924         * dwarfout.c (output_reg_number): Likewise.
10925         * expr.c (expand_expr): Likewise.
10926         * function.c (assign_temp): Likewise.
10927         (uninitialized_vars_warning): Likewise.
10928         (setjmp_args_warning): Likewise.
10929         (expand_function_end): Likewise.
10930         * stmt.c (fixup_gotos): Likewise.
10931         (warn_about_unused_variables): Likewise.
10932         (expand_end_bindings): Likewise.
10933         * stor-layout.c (layout_decl): Likewise.
10934         (place_field): Likewise.
10935         * toplev.c (check_global_declarations): Likewise.
10936         (rest_of_handle_inlining): Likewise.
10937         (default_tree_printer): New function.
10938         (general_init): Initialize diagnostic machinery before routing
10939         signals to the ICE machinery.  Set default tree printer.
10940         * toplev.h (pedwarn_with_decl): Remove declaration.
10941         (warning_with_decl): Likewise.
10942         (error_with_decl): Likewise.
10943         (pedwarn): Remove attribute for the time being.
10944         * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
10945         * varasm.c (named_section): Likewise.
10946         (make_decl_rtl): Likewise.
10947         (assemble_variable): Likewise.
10948         (merge_weak): Likewise.
10949         (declare_weak): Likewise.
10951         * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
10952         * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
10953         (format_with_decl): Remove.
10954         (diagnostic_for_decl): Likewise.
10955         (pedwarn_with_decl): Likewise.
10956         (warning_with_decl): Likewise.
10957         (error_with_decl): Likewise.
10958         (diagnostic_initialize): Adjust.
10959         (diagnostic_count_diagnostic): Likewise.
10960         (announce_function): Likewise.
10961         (lhd_print_error_function): Likewise.
10962         (diagnostic_report_current_module): Likewise.
10963         (default_diagnostic_starter): Likewise.
10964         (diagnostic_report_diagnostic): Likewise.
10965         (default_diagnostic_finalizer): Likewise.
10966         (verbatim): Likewise.
10967         (error): Likewise.
10968         (warning): Likewise.
10969         * opts.c (common_handle_option): Likewise.
10970         * pretty-print.c: New file.
10971         * c-pretty-print.h (pp_base): Override.
10972         * c-pretty-print.c: Adjust use of macros throughout.
10973         (pp_buffer): New macro.
10974         (pp_newline): Likewise.
10975         * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
10976         * Makefile.in (DIAGNOSTIC_H): New variable.
10977         (c-errors.o): Use it.
10978         (c-objc-common.o): Likewise.
10979         (c-common.o): Likewise.
10980         (c-opts.o): Likewise.
10981         (c-format.o): Likewise.
10982         (diagnostic.o): Likewise.
10983         (opts.o): Likewise.
10984         (toplev.o): Likewise.
10985         (rtl-error.o): Likewise.
10986         (dwarf2out.o): Likewise.
10987         (jump.o): Likewise.
10988         (pretty-print.o): New rule.
10990 2003-07-24  Roger Sayle  <roger@eyesopen.com>
10992         * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
10993         front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
10994         (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
10995         from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
10996         (DEF_FRONT_END_LIB_BUILTIN): Delete.
10997         (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
10998         (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
11000         * builtins.c (build_string_literal): New function to construct
11001         a char* pointer to a string literal.
11002         (expand_builtin_fputs): Change 2nd argument from "int ignore" to
11003         "rtx target" to be consistent with other expand_builtin_* functions.
11004         Change 3rd argument from "int unlocked" to "bool unlocked".
11005         (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
11006         c-common.c to avoid front-end dependencies.  Optimize printf("")
11007         as a no-op when the result isn't required.  Handle embedded NULs
11008         in format string.
11009         (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
11010         from c-common.c to avoid front-end dependencies.  Likewise, optimize
11011         fprintf(fp,"") as a no-op when the result isn't required, evaluating
11012         fp for side-effects.  Handle embedded NULs in format string.
11013         (expand_builtin_sprintf): Fix typo.
11014         (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
11015         optimizing.  Adjust calls of expand_builtin_fputs to match the API
11016         change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
11017         expand_builtin_printf.  Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
11018         and BUILT_IN_FPRINTF using expand_builtin_fprintf.
11020         * c-common.c (is_valid_printf_arglist): Delete.
11021         (c_expand_builtin): Delete.
11022         (c_expand_builtin_printf): Moved to builtins.c. Delete.
11023         (c_expand_builtin_fprintf): Moved to builtins.c.  Delete.
11024         (c_expand_expr): No longer treat CALL_EXPRs specially.
11025         (CALLED_AS_BUILT_IN): Delete.
11027 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11029         PR optimization/11631
11030         * gcse.c (store_motion): Connect infinite loops to exit.
11032 2003-07-24  Jason Merrill  <jason@redhat.com>
11034         * tree.h (boolean_type_node): Move from C/C++/Java frontends.
11035         (boolean_true_node, boolean_false_node): Likewise.
11036         (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
11037         * tree.c (build_common_tree_nodes): Init boolean_type_node.
11038         (build_common_tree_nodes_2): Init boolean_{true,false}_node.
11039         * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
11040         * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
11041         (truthvalue_true_node): Renamed from boolean_true_node.
11042         (truthvalue_false_node): Renamed from boolean_false_node.
11043         * c-decl.c: Just set truthvalue_* to integer_*.
11044         * c-*.[ch]: s/boolean/truthvalue/.  s/c_bool/boolean/.
11046 2003-07-24  Roger Sayle  <roger@eyesopen.com>
11048         * c-decl.c (match_builtin_function_types): New subroutine of
11049         duplicate_decls to test whether a redeclaration of a builtin
11050         function is suitably close, i.e. the return type and all of
11051         the argument types have the same modes as the builtin expects.
11052         (duplicate_decls): Fuzzy type matching for builtin functions
11053         moved to match_builtin_function_types.
11055 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11057         * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
11058         flag correctly.
11060 2003-07-24  Zack Weinberg  <zack@codesourcery.com>
11062         * c-decl.c: Search-and-replace change 'binding level' to
11063         'scope' in commentary.
11064         (struct binding_level): Now struct c_scope.
11065         (current_binding_level): Now current_scope.
11066         (free_binding_level): Now scope_freelist.
11067         (current_function_level): Now current_function_scope.
11068         (global_binding_level): Now global_scope.
11069         (make_binding_level): Now make_scope.
11070         (pop_binding_level): Now pop_scope.
11072 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11074         * configure.in (libgcc_visibility): Add missing whitespace.
11076 2003-07-24  Richard Henderson  <rth@redhat.com>
11078         * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
11079         __gcc_personality_v0.
11081 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11083         * Makefile.in: Replace pwd by ${PWD_COMMAND}.
11085 2003-07-24  Nathan Sidwell  <nathan@codesourcery.com>
11087         * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
11088         documentation missed from my 2003-07-09 patch.
11090 2003-07-24  Nathanael Nerode  <neroden@gcc.gnu.org>
11092         * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
11093         it's not provided.
11094         * configure: Rebuild.
11096 2003-07-24  Steven Bosscher  <steven@gcc.gnu.org>
11098         PR c/10602
11099         * c-typeck.c (type_lists_compatible_p): Do not compare
11100         arguments if one of them is an error_mark_node
11102 2003-07-24  Alan Modra  <amodra@bigpond.net.au>
11104         * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
11105         if current_function_calls_eh_return.
11107 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
11109         * doc/c-tree.texi (OFFSET_TYPE): Update description.
11111 2003-07-23  Bob Wilson  <bob.wilson@acm.org>
11113         * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
11114         * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
11115         __umodsi3, __modsi3): Increase frame size to 32.
11117 2003-07-23  Geoffrey Keating  <geoffk@apple.com>
11119         * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
11120         prototype.
11122 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
11124         * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
11126         PR optimization/10679
11127         * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
11129 2003-07-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11131         PR target/11607 and PR target/11516
11132         * pa.md (extzv, extv, insv): Revert latter half of last patch.
11134 2003-07-22  Mark Mitchell  <mark@codesourcery.com>
11136         * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
11137         * varasam.c (output_constant): Likewise.
11139 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
11141         * alias.c: Fix comment formatting.
11142         * c-common.c: Likewise.
11143         * c-decl.c: Likewise.
11144         * c-opts.c: Likewise.
11145         * combine.c: Likewise.
11146         * cpplib.c: Likewise.
11147         * diagnostic.c: Likewise.
11148         * dojump.c: Likewise.
11149         * final.c: Likewise.
11150         * fold-const.c: Likewise.
11151         * gcc.c: Likewise.
11152         * gcse.c: Likewise.
11153         * ggc-page.c: Likewise.
11154         * jump.c: Likewise.
11155         * loop.c: Likewise.
11156         * mips-tfile.c: Likewise.
11157         * recog.c: Likewise.
11158         * regclass.c: Likewise.
11159         * regmove.c: Likewise.
11160         * tree.c: Likewise.
11161         * tree.h: Likewise.
11163 2003-07-22  Per Bothner  <pbothner@apple.com>
11165         * line-map.c (add_line_map):  Handle invalid LEAVE request.
11166         Fixes PR preprocessor/11361.
11168 2003-07-22  Per Bothner  <pbothner@apple.com>
11170         * diagnostic.c.(diagnostic_report_current_module):  Update to match
11171         2003-06-05 changes to push_srcloc and pop_srcloc.
11173 2003-07-22  Wolfgang Bangerth  <bangerth@dealii.org>
11175         * doc/trouble.texi: Better document two-stage name lookup.
11177 2003-07-22  Eric Christopher <echristo@redhat.com>
11179         * config/s390.c (s390_valid_pointer_mode): New.
11180         (TARGET_VALID_POINTER_MODE): Use.
11181         (s390_emit_prologue): Add tpf profiling hooks.
11182         (s390_emit_epilogue): Ditto.
11183         * config/s390.h (MASK_TPF): New.
11184         (TARGET_TPF): Use.
11185         (POINTERS_EXTEND_UNSIGNED): Define.
11186         * config/s390.md (ptr_extend): New pattern.
11188 2003-07-22  Zack Weinberg  <zack@codesourcery.com>
11190         * hashtable.c (approx_sqrt): Make static.
11191         * hashtable.h: Don't prototype approx_sqrt.
11192         * line-map.c (init_line_maps): Rename linemap_init.
11193         (free_line_maps): Rename linemap_free.
11194         (add_line_map): Rename linemap_add.
11195         (lookup_line): Rename linemap_lookup.
11196         (print_containing_files): Rename linemap_print_containing_files.
11197         * linemap.h: Update to match.
11199         * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
11200         linemap routines to use new names.
11202 2003-07-16  Nathan Sidwell  <nathan@codesourcery.com>
11204         * c-common.c (handle_packed_attribute): Don't pack a struct via a
11205         typedef. Propagate packedness from a main variant.
11207 2003-07-22  Nathanael Nerode  <neroden@gcc.gnu.org>
11209         * Makefile.in (install-common): Add dependency on installdirs.
11211 2003-07-21  Alexandre Oliva  <aoliva@redhat.com>
11213         * c-common.c (c_common_type_for_mode): Return integer types for
11214         pointer modes.
11216 2003-07-22  Geoffrey Keating  <geoffk@apple.com>
11218         * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
11219         (finish_decl): Call maybe_apply_pragma_weak here.
11220         (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
11221         TREE_PUBLIC and TREE_STATIC are decided.
11222         (start_function): Move call to maybe_apply_pragma_weak.  Check that
11223         DECL_ASSEMBLER_NAME isn't set too early.
11225         * cpplex.c (_cpp_process_line_notes): Mention option name in
11226         trigraphs warning.
11228 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
11230         * combine.c (if_then_else_cond): Simplify the comparison of
11231         rtx against -1, 0, and 1.
11232         * loop.c (check_dbra_loop): Likewise.
11233         * optabs.c (emit_conditional_move): Likewise.
11234         (emit_conditional_add): Likewise.
11235         * config/i386/i386.md (*movsi_or): Likewise.
11236         (*movdi_or_rex6): Likewise.
11238 2003-07-22  Jan Hubicka  <jh@suse.cz>
11240         * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
11242 2003-07-21  Neil Booth  <neil@daikokuya.co.uk>
11244         * cppfiles.c (open_file_pch): Don't put unused entries in the
11245         splay tree.  Remove dead code.
11247 2003-07-21  Geoffrey Keating  <geoffk@apple.com>
11249         * c-common.h (num_in_fnames): Declare.
11250         (c_static_assembler_name): Move from here...
11251         * c-tree.h (c_static_assembler_name): ... to here.
11252         * c-opts.c: Don't include langhooks-def.h.
11253         (c_static_assembler_name): Move to c-decl.c.
11254         (num_in_fnames): Make externally visible.
11255         * c-decl.c: Include langhooks-def.h.
11256         (c_static_assembler_name): Move from c-opts.c.
11257         * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
11258         (c-opts.o): Remove $(LANGHOOKS_DEF_H).
11260         * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
11261         when it's not needed.
11263 2003-07-21  Jakub Jelinek  <jakub@redhat.com>
11265         * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
11266         * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
11267         (rs6000_emit_prologue): Save FPRs inline if set.
11269 2003-07-21  H.J. Lu <hongjiu.lu@intel.com>
11271         * config/ia64/ia64.md (prefetch): Support predicate.
11273 2003-07-21  Josef Zlomek  <zlomekj@suse.cz>
11275         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
11276         * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
11277         table.
11279 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
11281         PR optimization/11536
11282         * unroll.c (loop_iterations): Do not replace a register holding
11283         the final value by its equivalent before the loop if it is not
11284         invariant.
11286 2003-07-21  Dave Fluri  <dave.fluri@onlink.net>
11288         * doc/extend.texi: Fixes to spelling, grammar, and diction.
11290 2003-07-21  Ben Elliston  <bje@wasabisystems.com>
11292         * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
11293         (V850 Options): Spelling fixes.
11295 2003-07-20  Lisa M. Goldstein  <opus@gnu.org>
11297         * doc/invoke.texi: Fixes to style, grammar and diction.
11299 2003-07-20  Roger Sayle  <roger@eyesopen.com>
11301         * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
11302         * system.h (SMALL_STACK): Poison obsolete target macro.
11303         * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
11305 2003-07-20  Phil Edwards  <pme@gcc.gnu.org>
11307         * configure.in:  Cache the results of testing for cmp's capabilities.
11308         * configure:  Regenerate.
11310 2003-07-20  Mark Mitchell  <mark@codesourcery.com>
11312         PR debug/11279
11313         * dwarf2out.c (gen_enumeration_type_die): Remember that
11314         enumerators can be unsigned.
11316 2003-07-19  Zack Weinberg  <zack@codesourcery.com>
11318         * c-decl.c (named_labels, shadowed_labels, label_level_chain)
11319         (push_label_level, pop_label_level): Kill.
11320         (struct binding_level): Rename level_chain to outer.
11321         Add outer_function field.  Change parm_flag, function_body,
11322         keep, keep_if_subblocks to 1-bit bitfields of type bool.
11323         (current_function_level): New variable.
11324         (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
11325         (keep_next_level, declare_parm_level, warn_if_shadowing):
11326         Update to match.
11327         (struct language_function): Kill named_labels, shadowed_labels fields.
11328         (c_init_decl_processing, start_function, c_push__function_context)
11329         (c_pop_function_context): No need to muck with named_labels nor
11330         shadowed_labels.
11332         (make_binding_level): No need to clear the structure here.
11333         (pop_binding_level): Always operate on current_binding_level.
11334         Update current_function_level if necessary.
11335         (pushlevel): Don't clear named_labels.  Update current_function_level
11336         if necessary.  Use "true" and "false" where appropriate.
11337         (poplevel): Diagnose labels defined but not used, or vice
11338         versa, and clear out label-meanings leaving scope, while
11339         walking down the decls list, for all binding levels.
11340         Handle LABEL_DECLs appearing in the shadowed list.
11341         pop_binding_level takes no arguments.
11342         (pushdecl_function_level): Use current_function_level.
11344         (make_label, bind_label): New static functions.
11345         (declare_label): New exported function.
11346         (lookup_label, define_label): Rewritten for new data structure.
11347         (shadow_label): Kill.
11349         * c-tree.h: Prototype declare_label; don't prototype
11350         push_label_level, pop_label_level, nor shadow_label.
11351         * c-parse.in: Remove all calls to push_label_level and
11352         pop_label_level.  Use declare_label for __label__ decls.
11354         * doc/extend.texi: Clarify that __label__ can be used to
11355         declare labels with local scope in any nested block, not
11356         just statement expressions.  Cross-reference nested functions
11357         section from local labels section.
11359 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11361         * sched-rgn.c (find_rgns): Initialize current_edge correctly.
11363 2003-07-19  Phil Edwards  <pme@gcc.gnu.org>
11365         * doc/makefile.texi (restrap, profiledbootstrap):  Document targets.
11367 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11369         * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
11370         fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
11372 2003-07-19  Ulrich Weigand  <uweigand@de.ibm.com>
11374         * config/s390/s390.c (legitimize_pic_address): Access local symbols
11375         relative to the GOT instead of relative to the literal pool base.
11376         (s390_output_symbolic_const): Handle new GOT-relative accesses.
11377         * config/s390/s390.md ("call"): Access local functions and PLT stubs
11378         relative to the GOT instead of relative to the literal pool base.
11379         ("call_value"): Likewise.
11380         ("call_value_tls"): Likewise.
11382         * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
11383         reloading.  Support LTREL_BASE / LTREL_OFFSET construct.
11384         (s390_chunkify_finish): Likewise.
11385         (s390_chunkify_cancel): Likewise.
11386         (s390_reorg): Adapt caller.
11387         (find_base_register_in_addr,
11388         find_base_register_ref, replace_base_register_ref): Delete.
11389         (find_ltrel_base, replace_ltrel_base): New functions.
11390         (find_constant_pool_ref): Handle LTREL_BASE unspecs.
11391         (s390_decompose_address): Handle LTREL_BASE unspecs.  Optimize
11392         base vs. index register usage.
11393         (struct constant_pool): Remove 'anchor'.
11394         (s390_add_anchor): Delete.
11395         (s390_dump_pool): Remove anchor handling.
11396         * config/s390/s390.md ("reload_anchor"): Remove.
11398         * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
11399         (s390_load_got): New function.  Use LTREL_BASE/OFFSET.
11400         (s390_emit_prologue): Use it.
11401         * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
11402         "builtin_setjmp_receiver"): Cleanup.  Use s390_load_got.  Do not
11403         hard-code register 14.
11404         * config/s390/s390-protos.h (s390_load_got): Declare.
11406         * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
11407         Support TImode constants.
11408         * config/s390/s390.md ("consttable_ti"): New.
11409         ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
11411         * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
11412         UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
11413         UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
11414         UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
11415         UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
11416         New symbolic constants.
11417         ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
11418         "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
11419         "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
11420         "pool", "literal_pool_31", "literal_pool_64"): Cleanup.  Use
11421         symbolic UNSPEC values.
11422         * config/s390/s390.c (larl_operand, s390_short_displacement,
11423         bras_sym_operand, s390_cannot_force_const_mem,
11424         s390_delegitimize_address, s390_decompose_address,
11425         legitimize_pic_address, s390_output_symbolic_const,
11426         s390_function_profiler): Use symbolic UNSPEC values.
11428 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11430         * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
11431         c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
11432         c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
11433         collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
11434         cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
11435         cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
11436         dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
11437         fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
11438         gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
11439         genemit.c genextract.c genoutput.c genrecog.c gensupport.c
11440         ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
11441         integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
11442         loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
11443         postreload.c prefix.c print-tree.c protoize.c ra-build.c
11444         ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
11445         regmove.c regrename.c reload.c reload1.c reorg.c resource.c
11446         sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
11447         simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
11448         tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
11449         varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
11450         casts.
11452 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11454         * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
11455         * toplev.h (warning): Remove attribute.
11457 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11459         * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
11460         (pop_label_level): Likewise.
11461         (duplicate_decls): Likewise.
11462         (implicitly_declare): Likewise.
11463         (shadow_label): Likewise.
11464         (start_decl): Likewise.
11465         (finish_decl): Likewise.
11466         (grokdeclarator): Likewise.
11467         (get_parm_info): Likewise.
11468         (detect_field_duplicates): Likewise.
11469         (finish_struct): Likewise.
11470         (start_function): Likewise.
11471         (store_parm_decls): Likewise.
11472         (finish_function): Likewise.
11473         (c_expand_body_1): Likewise.
11474         (check_for_loop_decls): Likewise.
11475         (merge_translation_unit_decls): Likewise.
11477 2003-07-19  Neil Booth  <neil@daikokuya.co.uk>
11479         * common.opt:  Document --param.
11480         * opts.c (columns, undocumented_msg): New.
11481         (print_help): Get number of columns from environment.  Print
11482         --param help.  Tweak newline handling.
11483         (print_param_help): New.
11484         (print_filtered_help): Better handling of duplicates.  Complain
11485         about undocumented switches.
11486         (print_switch): New.
11487         (wrap_help): Improve wrapping, use COLUMNS.
11488         * opts.sh: Ignore comments in records.
11489         * params.def: Fix typos and remove trailing periods.
11490         * toplev.c (display_help): Don't dump --param help.
11491         * doc/sourcebuild.texi: Update.
11493 2003-07-18  Richard Henderson  <rth@redhat.com>
11495         PR target/11556
11496         * optabs.c (prepare_operand): Fail gracefully instead of abort
11497         if the predicate doesn't satisfy.
11498         (gen_cond_trap): Allow prepare_operand to fail.
11500 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11502         * c-common.c: Don't undefine GCC_DIAG_STYLE.
11503         (fname_decl): Don't use xxx_with_decl.
11504         (c_add_case_label): Likewise.
11505         (handle_section_attribute): Likewise.
11506         (handle_alias_attribute): Likewise.
11507         (handle_no_instrument_function_attribute): Likewise.
11508         (handle_no_limit_stack_attribute): Likewise.
11509         * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
11510         * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
11512 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11514         * Makefile.in (ifcvt.o): Add cfgloop.h.
11515         * basic-block.h (EDGE_LOOP_EXIT): New flag.
11516         * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
11517         * ifcvt.c: Include cfgloop.h.
11518         (mark_loop_exit_edges): New static function.
11519         (if_convert): Call it.
11520         (find_if_header): Ignore branches out of loops.
11522 2003-07-18  Kazu Hirata  <kazu@cs.umass.edu>
11524         * combine.c (simplify_comparison): Don't share rtx when converting
11525         (ne (and (not X) 1) 0) to (eq (and X 1) 0).
11527 2003-07-18  David Edelsohn  <edelsohn@gnu.org>
11529         * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
11530         (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
11531         (MUST_PASS_IN_STACK): Define.
11532         (BLOCK_REG_PADDING): Define.
11534 2003-07-18  Richard Henderson  <rth@redhat.com>
11536         * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
11537         to skip the addr_vec.
11539 2003-07-18  Alexandre Oliva  <aoliva@redhat.com>
11541         * combine.c (combinable_i3pat): Don't forbid occurrences of
11542         i2dest or i1dest in inner_dest if inner_dest is a mem.
11544 2003-07-18  Jan Hubicka  <jh@suse.cz>
11546         * cgraph.c (cgraph_remove_node): Clear the hash table slot.
11548 2003-07-17  Jakub Jelinek  <jakub@redhat.com>
11550         PR target/11087
11551         * loop.c (basic_induction_var): Check if convert_modes emitted any
11552         instructions. Remove them and return 0 if so.
11554 2003-07-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
11556         PR optimization/11083
11557         * toplev.c (rest_of_handle_addresof): Rename into
11558         rest_of_handle_addressof.  Delete unreachable blocks
11559         if dead edges were purged after the addressof pass.
11561 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
11563         * Makefile.in, configure, configure.in: Remove handling of
11564         lang-options.h and options_.h.
11565         * toplev.c (struct lang_opt, documented_lang_options): Remove.
11566         (display_help): Don't use documented_lang_options.
11568 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
11570         * c-decl.c (pushdecl_function_level): Make static, return nothing.
11571         (kept_level_p): Fold into poplevel.
11572         (undeclared_variable): Moved here from c-typeck.c.  Export.
11573         * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
11574         (undeclared_variable): Prototype here.  Don't prototype
11575         kept_level_p nor pushdecl_function_level.
11576         * c-parse.in: Change first argument to poplevel from
11577         "kept_level_p()" to "KEEP_MAYBE".
11578         * c-typeck.c (undeclared_variable): Moved to c-decl.c.
11580 2003-07-17  Roger Sayle  <roger@eyesopen.com>
11582         * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
11583         commutative operands instead of modifying the RTL in-place.
11585 2003-07-17  Mark Mitchell  <mark@codesourcery.com>
11587         PR optimization/11557
11588         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
11589         unless we know which function is being called.
11591 2003-07-17  Roger Sayle  <roger@eyesopen.com>
11593         * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
11594         whether to reorder the operands of a commutative binary operator.
11596 2003-07-17  Roger Sayle  <roger@eyesopen.com>
11598         * fold-const.c (const_binop): Avoid performing the FP operation at
11599         compile-time, if either operand is NaN and we honor signaling NaNs,
11600         or if we're dividing by zero and either flag_trapping_math is set
11601         or the desired mode doesn't support infinities.
11602         (fold_initializer): New function to fold an expression ignoring any
11603         potential run-time exceptions or traps.
11604         * tree.h (fold_initializer): Prototype here.
11605         * c-typeck.c (build_binary_op): Move to the end of the file so
11606         that intializer_stack is in scope.  If constructing an initializer,
11607         i.e. when initializer_stack is not NULL, use fold_initializer to
11608         fold expressions.
11609         * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
11610         performing FP operations at compile-time, if they would raise an
11611         exception at run-time.
11613 2003-07-17  Geoffrey Keating  <geoffk@apple.com>
11615         PR 11498
11616         * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
11617         (langhooks.o): Add $(GGC_H), gt-langhooks.h.
11618         (GTFILES): Add langhooks.c.
11619         (gt-langhooks.h): New.
11620         * c-common.h (c_static_assembler_name): Prototype.
11621         * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
11622         * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
11623         * c-opts.c: Include langhooks-def.h.
11624         (c_static_assembler_name): New.
11625         * langhooks.c: Include ggc.h.  Include gt-langhooks.h.
11626         (var_labelno): New.
11627         (lhd_set_decl_assembler_name): Give static objects with context
11628         unique names.
11629         * varasm.c (var_labelno): Delete.
11630         (make_decl_rtl): Don't change the assembler name once it's set.
11632         * c-opts.c (this_input_filename): New.
11633         (finish_options): Take new parameter, name of file being compiled.
11634         Update callers.  Set this_input_filename.
11635         (push_command_line_include): Use this_input_filename not
11636         main_input_filename.
11638 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
11640         * Makefile.in: Depend .pot generation on options.c.
11641         * po/exgettext: Add an extra_files variable containing additional
11642         files to scan.
11644 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
11646         * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
11647         c_write_global_declarations.
11649         * c-decl.c: Fix typos in several comments.  Remove all
11650         #if 0 blocks; reindent as needed.  Remove unused argument
11651         to declare_parm_level; all callers changed.
11652         * c-parse.in: Update calls to declare_parm_level.  Avoid
11653         issuing a double warning in some circumstances.
11654         * c-typeck.c: Update calls to declare_parm_level.
11655         * c-tree.h: Update prototype of declare_parm_level.
11657         * c-pragma.c (apply_pragma_weak): Don't complain about a
11658         redundant #pragma weak.
11660         * objc/objc-act.c (forward_declare_categories,
11661         build_selector_reference_decl, build_class_reference_decl,
11662         build_objc_string_decl, synth_forward_declarations,
11663         build_protocol_reference): Set TREE_PUBLIC on synthetic
11664         forward decl to 0, consistent with eventual definition.
11665         Correct comments to match.
11667         * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
11668         in regexp that don't form a range expression.
11669         * fixinc/fixincl.def: Regenerate.
11671 2003-07-17  Richard Henderson  <rth@redhat.com>
11673         PR target/10907
11674         * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
11675         even with !TARGET_CONST_GP.
11676         (ia64_function_ok_for_sibcall): Reject non-local functions.
11678 2003-07-17  Steven Bosscher  <steven@gcc.gnu.org>
11680         * c-common.c (c_estimate_num_insns_1): Don't handle
11681         METHOD_CALL_EXPR.
11682         * expr.c (safe_from_p): Likewise.
11683         * gengtype.c (adjust_field_tree_exp): Likewise.
11684         * stmt.c (warn_if_unused_value): Likewise
11685         * tree.c (first_rtl_op): Likewise.
11686         * tree.def: Don't define METHOD_CALL_EXPR.
11687         * java/lang.c (java_estimate_num_insns_1): Don't handle
11688         METHOD_CALL_EXPR.
11690 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
11692         PR other/11466
11693         * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
11694         and its restrictions for the SPARC64 port.
11695         Move the entry of "-mimpure-text" before that of "-mv8".
11697 2003-07-17  Eric Botcazou <ebotcazou@libertysurf.fr>
11698             Phil Edwards <phil@jaj.com>
11700         * doc/install.texi (*-*-solaris2*): Document the step-by-step
11701         procedure to bootstrap and install.
11702         Document the preference for the legacy Sun tools in /usr/bin
11703         over the POSIX tools in /usr/xpg4/bin for the build process.
11705 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
11707         * c.opt: Document Uncodumented; use it.  Document ObjC options.
11708         * opts.c (print_filtered_help): Skip undocumented switches.
11709         * opts.h (CL_UNDOCUMENTED): New.
11710         * opts.sh: Handle Undocumented.
11711         * toplev.c (documented_lang_options): Prevent its becoming empty.
11712 objc:
11713         * lang-options.h: Remove.
11715 2003-07-16  Ulrich Weigand  <uweigand@de.ibm.com>
11717         * loop.c (check_ext_dependent_givs): Pass const struct loop *
11718         instead of struct loop_info * as argument.  Accept BIVs with
11719         increment +/- 1 provided there is a friendly exit test against
11720         a loop-invariant value.
11721         (strength_reduce): Adapt call to check_ext_dependent_givs.
11723 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
11724             Con Bradley <con.bradley@superh.com>
11726         * sh-protos.h (sh_get_pr_initial_val): Declare.
11727         * sh.c (regno_reg_class): Make its elements type enum reg_class.
11728         (output_stack_adjust): Remove emit_fn argument.  Add epilogue_p
11729         and live_regs_mask arguments.  Changed all callers.
11730         (save_schedule_s): New structure.
11731         (save_schedule): New typedef.
11732         (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
11733         (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
11734         In interrupts handlers, also save registers that are usually
11735         partially saved, and make sure there is at least one general purpose
11736         register saved if a target register needs saving.
11737         Add casts in comparisons to avoid warnings.
11738         (sh_media_register_for_return): return -1 for interrupt handlers.
11739         (MAX_SAVED_REGS, MAX_TEMPS): New defines.
11740         (sh_expand_prologue): Use sh5_schedule_saves.  Check that any temp
11741         registers used are available.
11742         Set RTX_FRAME_RELATED_P where appropriate.
11743         Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
11744         (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
11745         (initial_elimination_offset): Likewise.
11746         * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
11747         (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
11748         (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
11749         (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
11750         (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
11751         and for target registers.
11752         (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
11753         (regno_reg_class): Make its elements type enum reg_class.
11754         (CONSTRAINT_LEN): Don't use isdigit.
11755         (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
11756         (FUNCTION_ARG): Add parentheses to avoid warnings.
11757         (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
11758         (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
11759         (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
11760         (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
11761         * sh.md (xordi3+1): Remove unused variable regno.
11762         (return_media): Check that tr0 is available before using it.
11764 2003-07-16  Neil Booth  <neil@daikokuya.co.uk>
11766         * c.opt: Document more options.
11768 2003-07-16  Roger Sayle  <roger@eyesopen.com>
11770         * combine.c (subst): Also handle (subreg (const_double ...)) case
11771         if created by a substitution, by using the original inner mode.
11773 2003-07-16  Roger Sayle  <roger@eyesopen.com>
11775         * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
11776         to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
11777         (simplify_rtx): Likewise.  Simplify (lo_sum (high X) X) as X.
11779 2003-07-16  Andrew Pinski  <pinskia@physics.uc.edu>
11781         * doc/install.texi (--without-headers): New.
11783         Partial Fix PR/10129
11784         * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
11785         (machopic_output_function_base_name): New; print the true pic label.
11786         (machopic_classify_ident): Pic Base is always a defined data.
11787         * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
11788         * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
11790         * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
11791         if they are not floating point registers.
11793         PR c/10962
11794         * ggc.h: Add header guards.
11795         * c-decl.c (finish_struct): Sort fields if
11796         number greater than 15 and there are no
11797         anonymous structs/unions.
11798         * c-common.h: Include ggc.h.
11799         (sorted_fields_type): New struct.
11800         (field_decl_cmp): New prototype.
11801         (resort_sorted_fields): New prototype.
11802         (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
11803         * c-tree.h: (lang_type): Use pointer to sorted_fields_type
11804         as s, removing other fields.
11805         * c-typeck.c (lookup_field): Use s in lang_type.
11806         These were mostly moved from cp/class.c:
11807         * c-common.c (field_decl_cmp): New static function.
11808         (field_decl_cmp): New function.
11809         (resort_sorted_fields): New function.
11811 2003-07-16  Geoffrey Keating  <geoffk@apple.com>
11813         * config/darwin.c (machopic_select_section): Use decl_readonly_section
11814         to do most of the work.
11816 2003-07-16  Hans-Peter Nilsson  <hp@bitrange.com>
11818         * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
11819         * config/mmix/mmix.c: Convert functions to ISO C90.
11820         (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
11821         formatting.
11822         (mmix_get_hard_reg_initial_val): Tweak section head comment.
11824 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
11826         * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
11828 2003-07-16  Jakub Jelinek  <jakub@redhat.com>
11830         * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
11831         (uw_update_context_1): Use it.
11832         * config/rs6000/rs6000.c (insn_after_throw): Remove.
11833         (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
11834         in parent frame if _Unwind_* called directly instead of through
11835         .plt.
11836         (rs6000_emit_eh_toc_restore): Remove.
11837         (rs6000_emit_prologue): Update stack pointer before doing any saving
11838         if current_function_calls_eh_return.  Generate unwind info for $r2.
11839         (rs6000_emit_epilogue): Restore stack pointer after doing all
11840         restoring if current_function_calls_eh_return.  Restore $r2.
11841         * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
11842         * config/rs6000/rs6000.md (eh_return): Remove call to
11843         rs6000_emit_eh_toc_restore.
11844         * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
11845         * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
11847 2003-07-15  Jakub Jelinek  <jakub@redhat.com>
11849         * expr.c (emit_block_move): Don't move anything if size is const 0.
11850         (clear_storage): Test against const0_rtx instead of comparing INTVAL
11851         against 0.
11853 2003-07-15  David S. Miller  <davem@redhat.com>
11855         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
11856         emit nop if the last real insn is CALL_INSN.
11858 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
11860         * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
11861         as "nul".
11862         * config/i386/xm-mingw32.h: Change GNU CC to GCC.
11864 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
11866         * config/i386/winnt.c (associated_type): Artificial methods are not
11867         affected by the import/export status of their class unless they are
11868         COMDAT.
11869         (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
11871         * config/i386/winnt.c: Fix GCC copyright comment.
11873 2003-07-16  Gabriel Dos Reis  <gcc@integrable-solutions.net>
11875         PR c++/11531
11876         * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
11877         not recursing on hard error.
11878         (diagnostic_for_decl): Likewise.
11879         * diagnostic.def: Rearrange.
11881 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
11883         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
11884         If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
11886 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
11887             Richard Henderson  <rth@redhat.com>
11889         * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
11890         to decide if to access a _Unwind_Ptr or a _Unwind_Word.
11891         (_Unwind_SetGR): Likewise.
11892         (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
11893         (Unwind_SpTmp): New typedef.
11894         (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
11895         (uw_update_context): Use _Unwind_GetPtr.
11896         (init_dwarf_reg_size_table): Move above uw_init_context_1.
11897         (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
11898         Use _Unwind_SetSpColumn.
11899         (uw_install_context_1): Don't initialize dwarf_reg_size_table.
11900         Use _Unwind_GetPtr.
11902 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
11904         * c.opt: Document more options.
11905         * toplev.c (documented_lang_options): Remove all local help strings.
11907 2003-07-15  Mark Mitchell  <mark@codesourcery.com>
11909         PR debug/11473
11910         * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
11911         base classes.
11913 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
11915         PR target/10795
11916         * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
11917         swap comparison operands if doing so would generate an
11918         unrecognizable insn.
11920 2003-07-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
11922         PR optimization/11320
11923         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
11924         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
11925         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
11926         current_sched_info->compute_jump_reg_dependencies. Record which
11927         registers are used and which registers are set by the jump.
11928         Clear deps->reg_conditional_sets after a barrier.
11929         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
11930         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
11931         (init_deps): Initialize reg_conditional_sets.
11932         (free_deps): Clear reg_conditional_sets.
11933         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
11934         Mark registers live on entry of the fallthrough block and conditionally
11935         set as set by the jump. Mark registers live on entry of non-fallthrough
11936         blocks as used by the jump.
11937         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
11938         Mark new parameters as unused.
11940 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
11942         * doc/invoke.texi: Resync MIPS -march documentation.
11944 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
11946         * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
11947         (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
11948         (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
11949         * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
11950         (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
11951         (mips_issue_rate): Handle PROCESSOR_R9000.
11952         (mips_use_dfa_pipeline_interface): Likewise.
11953         * config/mips/9000.md: New file.
11954         * config/mips/mips.md: Include it.
11955         (define_attr cpu): Add r9000.
11956         (mulsi3_mult3): Use "mul" for rm9000 code.
11958 2003-07-15  Stan Cox  <scox@redhat.com>
11960         * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
11961         (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
11962         (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
11963         * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
11964         (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
11965         (mips_issue_rate): Handle PROCESSOR_R7000.
11966         (mips_use_dfa_pipeline_interface): Likewise.
11967         * config/mips/7000.md: New file.
11968         * config/mips/mips.md: Include it.
11969         (define_attr cpu): Add r7000.
11970         (mulsi3_mult3): Use "mul" for rm7000 code.
11972 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
11974         * config/mips/mips.md (define_attr type): Add condmove.  Use it for
11975         the conditional move patterns.
11976         * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
11977         Check for condmove type.
11978         (ir_vr54_arith): Add move type.
11979         * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
11980         * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
11982 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
11984         * c-opts.c (print_help): Remove.
11985         (c_common_handle_option): Don't handle --help.
11986         * c.opt: Document some options.
11987         (--help): Remove.
11988         * opts.c (print_filtered_help): New.
11989         (print_help): Use it.
11991 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
11993         * c-common.c (c_common_type_for_mode): Handle V4DFmode.
11994         * tree.c: (build_common_tree_nodes_2): Likewise.
11995         * tree.h (enum tree_index): Add TI_V4DF_TYPE.
11996         (V4DF_type_node): New.
11998         * c-opts.c (push_command_line_include): Don't free deferred_opts,
11999         we'll need it.
12000         (finish_options): Reset init_cursor.
12002 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
12004         * expr.c (expand_assignment): Remove an unused argument
12005         SUGGEST_REG.
12006         * expr.h: Update the prototype.
12007         * function.c: Update the callers.
12008         * stmt.c: Likewise.
12010 2003-07-14  Mark Mitchell  <mark@codesourcery.com>
12012         PR debug/11098
12013         * integrate.c (copy_decl_for_inlining): Do not mark copied decls
12014         as DECL_ABSTRACT.
12016 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
12018         * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
12019         with __cplusplus, not "we must use the C++ compiler's type"
12020         * fixinc/inclhack.def (void_null): Note that Interix needs this.
12021         * fixinc/fixincl.x: Regenerate.
12023 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
12025         * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
12026         and unseen_objects from the global data before calling
12027         __deregister_frame_info_bases.
12028         (examine_objects): Insert objects into the seen_objects list,
12029         not unseen_objects.
12030         (_Unwind_Find_FDE): Always unlock the global object lists, even if
12031         we couldn't allocate a data structure to put in it.
12033         * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
12034         (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
12035         (SET_TYPE_PROTOCOL_LIST): New.
12036         * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
12037         (get_object_reference): Likewise.
12039 2003-07-14  Jan Hubicka  <jh@suse.cz>
12041         * cfglayout.c (locator_file): Break out from ....
12042         (insn_file): ... here.
12043         (locator_line): Break out from ....
12044         (insn_line): ... here.
12045         * rtl.h (locator_file, locator_line): Declare.
12046         (final_start_function): Set proper line/file info.
12048 2003-07-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12050         * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
12051         handled by pp_c_cast_expression.
12053 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
12055         * config/mips/mips.c (mips_expand_prologue): Use a single insn to
12056         allocate 32768 bytes of stack.  Use addition rather than subtraction
12057         when a single insn is enough.
12058         * config/mips/mips.md: Remove insns and splitters for subtracting
12059         constants.
12060         (subsi3): Only accept register operands.
12061         (subsi3_internal): Likewise.  Use for TARGET_MIPS16 as well.
12062         (subdi3_internal_3, subsi3_internal_2): Likewise.
12063         (casesi): Use expand_binop to subtract the lower bound.
12065 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
12067         * config/mips/mips.c (mips_in_small_data_p): Don't handle
12068         TARGET_MIPS16 specially.
12070 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
12072         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
12073         mips_output_aligned_bss.
12074         * config/mips/linux.h: Likewise.
12075         * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
12076         * config/mips/mips.c (mips_output_aligned_bss): New function.
12078         * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
12079         * config/mips/elf64.h: Likewise.
12081         * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
12082         mips_declare_object_name.
12083         (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
12084         * config/mips/elf64.h: As for elf.h.
12085         * config/mips/iris6.h: Likewise.
12086         * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
12087         * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
12088         do...while (0) block.
12089         * config/mips/mips-protos.h (mips_declare_object_name): Declare.
12090         (mips_finish_declare_object): Declare.
12091         * config/mips/mips.c (mips_declare_object_name): New function.
12092         (mips_finish_declare_object): New function.
12094         * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
12095         * config/mips/linux.h: Likewise.
12097         * config/mips/mips.c (inside_function): Delete.
12098         (file_in_function_warning, ignore_line_number): Delete.
12099         (mips_output_filename): Don't warn about changing filenames within
12100         a function.
12101         (mips_output_lineno): Update accordingly.
12102         (mips_output_function_prologue): Don't reset the deleted variables.
12103         * config/mips/mips.h (inside_function): Delete.
12104         (file_in_function_warning, ignore_line_number): Delete.
12106         * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
12107         * config/mips/elf64.h: Likewise.
12108         * config/mips/openbsd.h: Likewise.
12109         * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
12110         * config/mips/linux.h: Likewise.
12111         * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
12112         (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
12114         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
12115         to the list of include files when using gas.
12116         (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
12117         * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
12118         * config/mips/elf64.h: Likewise.
12119         * config/mips/iris5.h: Likewise.
12120         * config/mips/linux.h: Likewise.
12121         * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
12122         * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
12123         (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
12124         * config/mips/sdb.h: ...this new file.
12126 2003-07-14  Douglas Rupp  <rupp@gnat.com>
12128         * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
12129         argument to getcwd; use fixed buffer instead.
12131 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
12133         * fixinc/mkfixinc.sh: Treat OpenBSD normally.
12134         * fixinc/fixinc.wrap: Delete.
12136 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
12138         * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
12139         don't have 2.
12141 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
12143         * ggc-page.c (struct globals): Add new fields to keep track of the
12144         total allocated memory and overhead.
12145         (ggc_print_statistics): Print them.
12146         (ggc_alloc): Keep track of the total allocated memory and the
12147         overhead.
12149         * tree.c (dump_tree_statistics): Increase spacing.
12150         (enum tree_node_kind): Move to ...
12151         * tree.h (enum tree_node_kind): ... here.
12152         (tree_node_counts, tree_node_sizes): Declare.
12154 2003-07-14  James A. Morrison  <ja2morri@student.math.uwaterloo.ca>
12156         * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
12158 2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12160         PR optimization/11440
12161         * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
12162         SIGN_EXTRACT SETs.
12164 2003-07-14  Alan Modra  <amodra@bigpond.net.au>
12166         * doc/tm.texi (BLOCK_REG_PADDING): Describe.
12167         * expr.h (struct locate_and_pad_arg_data): Add where_pad.
12168         (emit_group_load, emit_group_store): Adjust declarations.
12169         Remove most occurrences of #ifdef TREE_CODE.
12170         * expr.c (emit_group_load): Add "type" param, and use
12171         BLOCK_REG_PADDING to determine need for a shift.  Optimize non-
12172         aligned accesses if !SLOW_UNALIGNED_ACCESS.
12173         (emit_group_store): Likewise.
12174         (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
12175         emit_group_load and emit_group_store calls.
12176         * calls.c (store_unaligned_arguments_into_pseudos): Tidy.  Use
12177         BLOCK_REG_PADDING to determine whether we need endian_correction.
12178         (load_register_parameters): Localize vars.  Handle shifting of
12179         small values to the correct end of regs.  Adjust emit_group_load
12180         call.
12181         (expand_call, emit_library_call_value_1): Adjust emit_group_load
12182         and emit_group_store calls.
12183         * function.c (assign_parms): Set mem alignment for stack slots.
12184         Adjust emit_group_store call.  Store values at the "wrong" end
12185         of regs to the stack.  Use BLOCK_REG_PADDING.
12186         (locate_and_pad_parm): Save where_pad.
12187         (expand_function_end): Adjust emit_group_load call.
12188         * stmt.c (expand_value_return): Adjust emit_group_load call.
12189         * Makefile.in (calls.o): Depend on $(OPTABS_H).
12190         * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
12191         (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
12192         (MUST_PASS_IN_STACK): Define.
12193         (BLOCK_REG_PADDING): Define.
12194         * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
12195         (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
12196         * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
12197         (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
12198         Act on AGGREGATES_PAD_UPWARD_ALWAYS.
12200 2003-07-13  Aaron W. LaFramboise  <awlaframboise@aol.com>
12202         * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
12204 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12206         * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
12207         both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
12209 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
12211         PR other/11123
12212         * toplev.c: Don't cut off option names.
12214 2003-07-13  Andreas Jaeger  <aj@suse.de>
12216         * c-decl.c (link_hash_hash): Avoid warning about casting pointer
12217         to integer of different size.
12219 2003-07-13  Kazu Hirata  <kazu@cs.umass.edu>
12221         * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
12222         to (eq (and X 1) 0).
12224 2003-07-13  Andreas Jaeger  <aj@suse.de>
12226         * config.gcc: Add pmmintrin.h for x86_64-*-*.
12228 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
12230         * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
12231         (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
12232         list.  Move these all together down by cpplib.
12234         * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
12235         definition of CPPCHAR_SIGNED_T.
12237         * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
12238         * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
12239         * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
12241         * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
12242         * cppinit.c (cpp_create_reader): Likewise.
12244         * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
12245         * cpptrad.c: Likewise.  All callers changed.
12246         * cpplib.c: All callers changed.
12247         * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
12248         * hashtable.h: Define GTY(x) to nothing here too.
12250 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12252         * stor-layout.c (compute_record_mode): Remove very obsolete test
12253         that forces BLKmode for records with fields crossing word boundary.
12255 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
12257         * Makefile.in: Remove orphan reference to acconfig.h.
12259 2003-07-13  Andreas Jaeger  <aj@suse.de>
12261         * cgraphunit.c: Convert prototypes to ISO C90.
12263 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
12265         * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
12266         (for OpenBSD).
12267         * fixinc/fixincl.x: Rebuild.
12269 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
12271         * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
12272         i?86-*-*.  Use correct name of cache variable.
12273         * configure: Regenerate.
12275 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
12277         * config/alpha/alpha.c: Fix comment typos.
12278         * config/alpha/alpha.md: Likewise.
12279         * config/arm/arm.c: Likewise.
12280         * config/arm/arm.md: Likewise.
12281         * config/arm/lib1funcs.asm: Likewise.
12282         * config/avr/avr.md: Likewise.
12283         * config/arm/README-interworking: Fix typos.
12285 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
12287         * c-format.c: Fix comment formatting.
12288         * c-typeck.c: Likewise.
12289         * coverage.c: Likewise.
12290         * cppcharset.c: Likewise.
12291         * cpplib.c: Likewise.
12292         * dbxout.c: Likewise.
12293         * gcov-io.h: Likewise.
12294         * toplev.c: Likewise.
12296 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
12298         * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
12299         fix.
12301 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
12303         * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
12304         uses three-argument AC_DEFINE so no acconfig.h entries are
12305         needed.
12306         (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
12307         which contains the GAS version number as a scaled integer.
12308         (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers.  Add
12309         ability to check for ELF assembler.
12310         (gcc_GAS_CHECK_FEATURE): New macro.
12311         * configure.in: Use gcc_AC_CHECK_TYPE.  Rewrite all
12312         assembler feature checks using gcc_GAS_CHECK_FEATURE.
12313         Use three-argument AC_DEFINE everywhere.
12314         * acconfig.h: Deleted.
12315         * config.in, configure: Regenerate.
12317 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
12319         * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
12320         (on OpenBSD).
12321         * fixinc/fixincl.x: Regenerate.
12323         * fixinc/inclhack.def (gnu_types): Improve comment.
12325 2003-07-12  Andreas Jaeger  <aj@suse.de>
12327         * fp-test.c (main): Use ISO C90 prototype.
12329         * version.c: Remove unneded include of ansidecl.h.
12331         * cgraph.h: Convert prototypes to ISO C90.
12332         * cgraph.c: Likewise.
12333         * fix-header.c: Likewise.
12334         * ra.h: Likewise.
12335         * protoize.c: Likewise.
12337 2003-07-12  Jan Hubicka  <jh@suse.cz>
12339         * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
12340         warning.
12342 2003-07-12  Jan Hubicka  <jh@suse.cz>
12343                                Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12345         * cgraph.c (cgraph_max_uid): New global variable.
12346         (cgraph_node): Set uid field.
12347         (create_edge): Keep inline flags consistent.
12348         (dump_cgraph): Dump more info.
12349         * cgraph.h (struct cgraph_local_info): Remove inline_many and
12350         can_inline_once; add inlinable, disgread_inline_limits, and self_insn
12351         (struct cgraph_global_info): Add insns, calls, cloned_times,
12352         will_be_output.
12353         (struct cgraph_node): Add uid.
12354         (struct cgraph_edge): Add inline_call.
12355         (cgraph_max_uid, cgraph_inline_p): Declare.
12356         * cgraph.c: Include params.h and fibheap.h
12357         (cgraph_mark_functions_to_inline_once): Kill.
12358         (INSNS_PER_CALL): New constant.
12359         (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
12360         static variables.
12361         (cgraph_finalize_function): Do not analyze inlining.
12362         (cgraph_finalize_compilation_unit): Set inlining attributes.
12363         (cgraph_mark_functions_to_output): More consistency checks.
12364         (cgraph_optimize_function): Set current_function_decl to NULL.
12365         (cgraph_expand_function): Use new inline flags.
12366         (cgraph_postorder): Expand from cgraph_expand_functions.
12367         (INLINED_TIMES, SET_INLINED_TIMES): New macros.
12368         (cgraph_inlined_into, cgraph_inlined_callees,
12369         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
12370         cgraph_mark_inline, cgraph_check_inline_limits,
12371         cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
12372         cgraph_decide_inlining, cgraph_inline_p): New functions.
12373         * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
12374         PARAM_INLINE_UNIT_GROWTH): New parameters.
12375         * tree-inline.c (struct inline_data): New field current_decl.
12376         (expand_call_inline): Avoid forward declarations; use
12377         inlinable_function_p.
12378         (optimize_inline_calls): Set id.current_decl.
12380 2003-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
12382         * configure.in: Remove wrongly added definition of
12383         local_prefix.
12384         * configure: Regenerate.
12386 2003-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
12388         * rtl.def (NOTE): Do not use padding.
12390 2003-07-11  Dara Hazeghi  <dhazeghi@yahoo.com>
12392         * doc/install.tex: Update required binutils for i?86-*-linux*
12394 2003-07-11  Richard Henderson  <rth@redhat.com>
12396         * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
12398 2003-07-11  Mark Mitchell  <mark@codesourcery.com>
12400         * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
12401         TRANSLATION_UNIT_DECL as top_level.
12403 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
12405         * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
12406         then fall back to cmpstrM.
12407         * builtins.c (expand_builtin_memcmp): Likewise.
12408         * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
12409         (s390_expand_cmpmem): ... this.
12410         * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
12411         cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
12412         from cmpstr* patterns.  Rename call to s390_expand_cmpstr
12413         to s390_expand_cmpmem.
12414         * config/s390/s390.c (s390_expand_cmpstr): Rename to...
12415         (s390_expand_cmpstr): ... this.  Rename cmpstr* instructions
12416         to cmpmem*.
12417         * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
12418         cmpstr* patterns.
12419         * doc/md.texi (cmpstrM): Describe as String compare insn, not
12420         Block compare insn.
12421         (cmpmemM): Add.
12423 2003-07-11  Loren James Rittle  <ljrittle@acm.org>
12425         * config/i386/freebsd.h (SET_ASM_OP): Remove.
12426         (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
12427         (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
12428          MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
12430 2003-07-11  Richard Henderson  <rth@redhat.com>
12432         * function.c (assign_parms): Don't recombine complex args if
12433         fnargs is unchanged from orig_fnargs.
12434         (split_complex_args): Return args without complex before copying.
12435         Re-layout the modified parameters.
12437 2003-07-11  J"orn Rennecke <joern.rennecke@superh.com>
12439         * regclass.c (choose_hard_reg_mode): Add third argument.
12440         Changed all callers.
12441         * rtl.h (choose_hard_reg_mode): Update declaration.
12442         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
12443         Take HARD_REGNO_CALL_PART_CLOBBERED into account.
12445 2003-07-11  Geoffrey Keating  <geoffk@apple.com>
12447         * c-decl.c (finish_decl): Handle 'used' here...
12448         * cgraphunit.c (cgraph_finalize_function): ... and here ...
12449         * c-common.c: (handle_used_attribute): ... not here.
12451         * configure.in (onstep): Support --enable-intermodule.
12452         * Makefile.in (OBJS-common): New.
12453         (OBJS-md): New.
12454         (OBJS-archive): New.
12455         (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
12456         (OBJS-onestep): New.
12457         (libbackend.a): Support @onestep@.
12458         (libbackend.o): New.
12459         * configure: Regenerate.
12461         * c-common.h (c_reset_state): New prototype.
12462         (c_parse_file): New prototype.
12463         (finish_file): Move prototype from c-tree.h.
12464         * c-decl.c: Include <hashtab.h>.
12465         (builtin_decls): New.
12466         (current_file_decl): New.
12467         (duplicate_decls): Add extra parameter. Change all callers.  Don't
12468         output duplicate common symbols.
12469         (link_hash_hash): New.
12470         (link_hash_eq): New.
12471         (poplevel): Handle popping of the top level.
12472         (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
12473         (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
12474         (pushdecl_top_level): Likewise.
12475         (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
12476         (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
12477         (finish_decl): Handle TRANSLATION_UNIT_DECL.
12478         (merge_translation_unit_decls): New.
12479         (c_write_global_declarations): New.
12480         (c_reset_state): New.
12481         (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
12482         * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
12483         * c-objc-common.c (c_cannot_inline_tree_fn): Handle
12484         TRANSLATION_UNIT_DECL.
12485         (c_objc_common_finish_file): Call merge_translation_unit_decls.
12486         * c-opts.c (in_fnames): Rename from in_fname.
12487         (c_common_decode_option): Handle multiple input filenames.
12488         (c_common_post_options): Likewise.
12489         (c_common_parse_file): Likewise; also, call c_parse_file rather than
12490         yyparse.
12491         * c-parse.in: Move cleanup code to c_parse_file.
12492         (free_parser_stacks): Move contents to c_parse_file.
12493         (c_parse_file): New.
12494         * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
12495         for integer types.
12496         (C_DECL_FILE_SCOPE): New.
12497         (finish_file): Move prototype to c-common.h.
12498         (merge_translation_unit_decls): New prototype.
12499         (comptypes): Add extra parameter to prototype.
12500         (c_write_global_declarations): New prototype.
12501         * c-typeck.c (tagged_types_tu_compatible_p): New.
12502         (function_types_compatible_p): Add extra parameter, change all callers.
12503         (type_lists_compatible_p): Likewise.
12504         (comptypes): Likewise.
12505         (struct tagged_tu_seen): New.
12506         (tagged_tu_seen_base): New.
12507         (build_unary_op): Handle TRANSLATION_UNIT_DECL.
12508         (c_mark_addressable): Remove #if 0 code.
12509         * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
12510         comment explaining why it shouldn't have to.
12511         * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
12512         options.
12513         * cppinit.c (cpp_read_next_file): New.
12514         (cpp_read_main_file): Use it.
12515         * cpplib.c (undefine_macros): New.
12516         (cpp_undef_all): New.
12517         * cpplib.h (cpp_read_next_file): Prototype.
12518         (cpp_undef_all): Prototype.
12519         * langhooks-def.h (write_global_declarations): Remove prototype.
12520         * toplev.h (write_global_declarations): Add prototype.
12521         * tree.c (decl_type_context): Use switch statement, handle
12522         TRANSLATION_UNIT_DECL.
12523         * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
12524         (TRANSLATION_UNIT_DECL): New kind of tree.
12525         * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
12526         * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
12527         * doc/invoke.texi: Make attempt to document new functionality.
12529         2003-05-19  Per Bothner <bothner@apple.com>
12531         * gcc.c (combine_inputs): New.
12532         (process_command): Set combine_inputs.
12533         (do_spec_1): Handle combine_inputs.
12534         (main): Likewise.
12536 2003-07-10  James E Wilson  <wilson@tuliptree.org>
12538         PR optimization/9745
12539         * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
12540         loop_insn_emit_before.
12541         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
12543 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
12545         * cppcharset.c: Fix comment.
12546         (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
12547         (EILSEQ): #define to EINVAL if not already defined.
12548         (convert_using_iconv): #if out when !HAVE_ICONV.
12549         (init_iconv_desc): Handle !HAVE_ICONV here...
12550         (cpp_init_iconv): ...not here.
12552 2003-07-11  Neil Booth  <neil@daikokuya.co.uk>
12554         * common.opt: More --help messages.
12555         * opts.c (print_help): Use puts().
12556         * toplev.c (f_options): Remove help text.
12557         (display_help): Don't dump f_options.
12559 2003-07-11  Nathanael Nerode  <neroden@gcc.gnu.org>
12561         * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
12562         Move i?86-*-interix* to the don't-fix list.
12563         * fixinc/fixinc.interix: Delete with extreme prejudice.
12565 2003-07-10  Dara Hazeghi  <dhazeghi@yahoo.com>
12567         PR bootstrap/10758
12568         * doc/install.texi: Document requirements for ia64-*-hpux* target.
12570 2003-07-10  Roger Sayle  <roger@eyesopen.com>
12572         * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
12574 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
12576         * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
12577         one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
12578         one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
12579         convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
12580         convert_no_conversion, convert_using_iconv): New functions.
12581         (APPLY_CONVERSION): New macro.
12582         (struct conversion, conversion_tab): New data structure.
12583         (init_iconv_desc): Check conversion_tab for a custom conversion
12584         primitive before trying to use iconv.
12585         (convert_cset): Deleted.
12586         (cpp_init_iconv): Use UTF- terminology, not UCS-.
12587         (_cpp_destroy_iconv): Update to match.
12588         (_cpp_valid_ucn): We don't need iconv to implement UCNs.
12589         (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
12590         (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
12591         (_cpp_interpret_string_notranslate): New function, moved here
12592         from cpplib.c.
12594         * cpphash.h (convert_f, struct cset_converter): New types.
12595         (struct cpp_reader): narrow_cset_desc and wide_cset_desc
12596         are now struct cset_converter, not bare iconv_t.
12597         Update prototypes.
12598         * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
12599         all callers changed.
12601 2003-07-10  Kelley Cook  <kelleycook@wideopenwest.com>
12603         * Makefile.in (options.h): Depend on Makefile.  Add move-if-change
12604         to opts.sh command line.
12605         * opts.sh: Write to temporary files with a move-if-change at the end.
12607 2003-07-10  Denis Chertykov  <denisc@overta.ru>
12608             Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12610         * combine.c (gen_binary): Handle the CLOBBER rtx and
12611         don't build a binary operation with it.
12613 2003-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12615         * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
12616         store_killed_after, store_killed_before): Keep track of the correct
12617         dependency function to use.
12619 2003-07-10  Steven Bosscher  <steven@gcc.gnu.org>
12620         * toplev.c (do_compile): Don't try to open dump files before
12621         lang_dependent_init initializes dump_base_name.
12623 2003-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12625         * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
12626         Use ARRAY_SIZE.
12627         * config/frv/frv.c (frv_expand_builtin): Likewise.
12628         * config/sh/sh.c (sh_media_init_builtins): Likewise.
12630 2003-07-09  Mark Mitchell  <mark@codesourcery.com>
12632         PR c++/10032
12633         * doc/invoke.texi (C++ Dialect Options): Change documentation of
12634         -fpermissive.
12636 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
12638         * tm.texi (RETURN_ADDR_OFFSET): Document.
12640 2003-07-10  Nathan Sidwell  <nathan@codesourcery.com>
12642         * gcov-io.h: Update documentation.
12643         (GCOV_UNSIGNED2STRING): New.
12644         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
12645         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
12646         GCOV_TAG_SUMMARY_LENGTH): Adjust.
12647         (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
12648         GCOV_TAG_COUNTER_NUM): New.
12649         (GCOV_BLOCK_SIZE): Number of words.
12650         (gcov_var): Adjust buffer type.
12651         * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
12652         (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
12653         count, not byte count.
12654         (gcov_open): Adjust overread init.
12655         (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
12656         gcov_write_string, gcov_write_tag, gcov_write_length,
12657         gcov_write_tag_length): Adjust.
12658         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
12659         (gcov_sync, gcov_seek): Adjust.
12660         * gcov-dump.c (print_usage): Show gcc version only.
12661         (dump_file): Use GCOV_UNSIGNED2STRING.
12662         (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
12663         * gcov.c (print_version): Show gcc version only.
12664         (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
12665         GCOV_TAG_*_NUM macros.
12666         (read_count_file): Use GCOV_UNSIGNED2STRING. Use
12667         GCOV_TAG_COUNTER_LENGTH.
12668         * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
12669         Use GCOV_TAG_COUNTER_NUM.
12670         * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
12671         (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
12673 2003-07-10  Andreas Schwab  <schwab@suse.de>
12675         * gcov-dump.c (dump_file): Fix missing address operator.
12677 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
12679         PR c/11449
12680         * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
12681         of HOST_WIDE_INT.
12682         (fold_single_bit_test): If sign_bit_p() fails, assume that the
12683         bit being tested is not a sign bit.
12685 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
12687         * config/h8300/h8300.md (a peephole2): New.
12689 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
12691         2001-12-13  Alexandre Oliva  <aoliva@redhat.com>
12692         * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
12693         from ld-linux.so.2 to ld.so.1.
12694         2001-11-18  Alexandre Oliva  <aoliva@redhat.com>
12695         * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
12696         * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
12697         nor -Wl,-rpath-link.
12698         (LIB_SPEC): Add -rpath-link if !static.
12699         2001-08-22  Alexandre Oliva  <aoliva@redhat.com>
12700         * config/mn10300/mn10300.c (mn10300_protect_label): New
12701         variable.
12702         * config/mn10300/linux.h (PRINT_OPERAND,
12703         PRINT_OPERAND_ADDRESS): Set it during their execution.
12704         (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
12705         mn10300_protect_label is set.
12706         * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
12707         -Wl,-rpath-link.
12708         (LIB_SPEC, STARTFILE_SPEC): Define.
12709         2001-05-11  Alexandre Oliva  <aoliva@redhat.com>
12710         * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
12711         FLOAT_BIT_ORDER_MISMATCH.
12712         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
12713         * config.gcc (am33_2.0-*-linux*): Added.
12714         * config/mn10300/linux.h: New.
12715         * config/mn10300/t-linux: New.
12717 2003-07-10  Andreas Jaeger  <aj@suse.de>
12719         * fold-const.c: Properly wrap prototypes.
12721 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
12723         2003-06-16  Alexandre Oliva  <aoliva@redhat.com>
12724         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
12725         Moved from...
12726         * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
12727         * config/mn10300/mn10300.h: GTY-declare it.
12728         2003-06-11  Alexandre Oliva  <aoliva@redhat.com>
12729         * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
12730         prototype.  Use incoming RTL argument.
12731         2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
12732         * config/mn10300/mn10300.md (int_label): Move C statements...
12733         (GOTaddr2picreg): ... here.
12734         2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
12735         * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
12736         * config/mn10300/mn10300.c (mn10300_encode_section_info):
12737         ... here.  New function.
12738         (TARGET_ENCODE_SECTION_INFO): Define to it.
12739         2001-11-04  Alexandre Oliva  <aoliva@redhat.com>
12740         * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
12741         pattern name.
12742         (mn10300_loadPC): Define as insn splittable after reload.
12743         2001-05-13  Alexandre Oliva  <aoliva@redhat.com>
12744         * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
12745         be defined in .rodata even in PIC, now that the assembler
12746         supports that.
12747         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
12748         * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
12749         symbol take an underscore prefix.
12750         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
12751         * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
12752         legitimize_pic_address): Declare.
12753         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
12754         the PIC register as fixed.
12755         (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
12756         (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
12757         PIC.
12758         (LEGITIMATE_PIC_OPERAND_P): Define.
12759         (PIC_OFFSET_TABLE_REGNUM): Define.
12760         (GOT_SYMBOL_NAME): Define.
12761         (SYMBOLIC_CONST_P): Define.
12762         (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
12763         symbols.
12764         (MN10300_GLOBAL_P): Test it.
12765         (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
12766         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
12767         * config/mn10300/mn10300.c (print_operand): Handle unspec.
12768         (expand_prologue): Set PIC register.
12769         (call_address_operand): Don't match SYMBOL_REFs in PIC.
12770         (legitimize_address): Call legitimize_pic_address.
12771         (legitimize_pic_address): New fn.
12772         (legitimate_pic_operand_p): New fn.
12773         * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
12774         (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
12775         UNSPEC_PLT): New constants.
12776         (pop_pic_reg): New insn.
12777         (movsi): Adjust non-PIC addresses.
12778         (builtin_setjmp_receiver): Restore the PIC register.
12779         (casesi): New insn.
12780         (call): Adjust non-PIC addresses.
12781         (int_label, GOTaddr2picreg): New expands.
12782         (am33_loadPC): New insn.
12783         (mn10300_loadPC): New expand.
12784         (call_next_insn): New insn.
12785         (add_GOT_to_pic_reg): New expand.
12786         (symGOT2reg, symGOT2reg_i): New expands.
12787         (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
12788         (sym2PIC, sym2PLT): New expands.
12790 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
12792         * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
12793         2001-05-01  Alexandre Oliva  <aoliva@redhat.com>
12794         * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
12795         to flag_unsafe_math_optimizations.
12796         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
12797         * config/mn10300/mn10300.c (expand_prologue): Mark
12798         FP-register-saving insns as frame-related.
12799         2001-02-13  Alexandre Oliva  <aoliva@redhat.com>
12800         * config/mn10300/mn10300.c
12801         (mn10300_get_live_callee_saved_regs): Don't search past
12802         LAST_EXTENDED_REGNUM.
12803         (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
12804         * config/mn10300/mn10300.md: Remove excessive line breaks from
12805         `@' output patterns that were accounted as additional
12806         alternatives.
12807         * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
12808         Re-introduce changes accidentally removed in Richard Sandiford's
12809         2000-12-05's patch.
12810         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
12811         Re-instate am33-2 lost in merge from net GCC.
12812         2000-08-26  Alexandre Oliva  <aoliva@redhat.com>
12813         * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
12814         floating-point registers.
12815         2000-08-07  Alexandre Oliva  <aoliva@redhat.com>
12816         * config/mn10300/mn10300.md (movdf): Revert some am33-specific
12817         pessimizations that had gone in on 2000-05-08.
12818         2000-06-28  Graham Stott  <grahams@cygnus.co.uk>
12819         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
12820         2000-06-22  Graham Stott  <grahams@cygnus.co.uk>
12821         * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
12822         operand 0.
12823         * (movhi): Likewise.
12824         * (movsi): Likewise.
12825         * (movsf): Likewise.
12826         * (movdi): Likewise.
12827         * (movdf): Likewise.
12828         2000-05-24  Alexandre Oliva  <aoliva@cygnus.com>
12829         * config/mn10300/mn10300.c (fp_regs_to_save): New function.
12830         (can_use_return_insn, initial_offset): Add fp_regs_to_save.
12831         (expand_prologue, expand_epilogue): Save and restore FP regs.
12832         2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
12833         * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
12834         2000-05-13  Alexandre Oliva  <aoliva@cygnus.com>
12835         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
12836         subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
12837         Do not clobber cc0.
12838         2000-05-12  Alexandre Oliva  <aoliva@cygnus.com>
12839         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
12840         Discourage the two-argument, longer opcodes.
12841         (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
12842         ones.
12843         * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
12844         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
12845         * config/mn10300/mn10300.md (cmpsf): New pattern.
12846         (branch): Test mdep.fpCC and output fbCC.
12847         * config/mn10300/mn10300.c (print_operand): Output conditions.
12848         (notice_cc_update): Recognize fcmp and set mdep.fpCC.
12849         2000-05-10  Alexandre Oliva  <aoliva@cygnus.com>
12850         * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
12851         mulsf3, divsf3): Use the `F' constraint for FP values.
12852         * config/mn10300/mn10300.c (const_1f_operand): New function.
12853         * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
12854         * config/mn10300/mn10300.md (sqrtsf2): New expand.
12855         (rsqrtsf2): New insn.
12856         2000-05-09  Alexandre Oliva  <aoliva@cygnus.com>
12857         * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
12858         previous check-in.
12859         2000-05-08  Alexandre Oliva  <aoliva@cygnus.com>
12860         * config/mn10300/mn10300.md (abssf2, negdf2): On
12861         TARGET_AM33_2, expand to...
12862         (abssf2_am33_2, negdf2_am33_2): New insns.
12863         (addsf3, subsf3, mulsf3, divsf3): Likewise.
12864         (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
12865         * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
12866         movdi, movdf): Added FP regs.
12867         * invoke.texi (-mam33-2, -mno-am33-2): Document.
12868         2000-04-29  Alexandre Oliva  <aoliva@cygnus.com>
12869         * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
12870         New macros.
12871         (REGNO_AM33_2_FP_P): Renamed to...
12872         (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
12873         (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
12874         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
12875         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
12876         regs from GENERAL_REGS.
12877         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
12878         * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
12879         * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
12880         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
12881         2000-04-23  Alexandre Oliva  <aoliva@cygnus.com>
12882         * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
12883         as FP_REGS.
12884         2000-04-21  Alexandre Oliva  <aoliva@cygnus.com>
12885         * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
12886         (EXTRA_CONSTRAINT): Added OK_FOR_Q.
12887         * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
12888         * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
12889         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
12890         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
12891         AM33/2.0 floating-point registers.
12892         (CONDITIONAL_REGISTER_USAGE): Adjust.
12893         (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
12894         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
12895         (REG_CLASS_FROM_LETTER): Added `f' and `A'.
12896         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
12897         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
12898         (MULTILIB_DIRNAMES): Likewise.
12899         * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
12900         `__AM33_2__' when `-mam33-2' is given.
12901         (TARGET_AM33_2): Define.
12902         (TARGET_SWITCHES): Adjust.
12903         * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
12904         when appropriate.
12906 2003-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
12908         * doc/install.texi: Add missing @.
12910 2003-07-09  Bob Wilson  <bob.wilson@acm.org>
12912         * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
12914 2003-07-09  Aldy Hernandez  <aldyh@redhat.com>
12916         PR/11144
12917         * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
12919 2003-07-09  Nathanael Nerode  <neroden@gcc.gnu.org>
12921         PR bootstrap/11043
12922         * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
12923         "x-crtfini.o" with "crtinit.o", "crtfini.o".
12925         * fixinc/inclhack.def (limits_ifndefs): Add select test.
12926         * fixinc/fixincl.x: Rebuild.
12928         * fixinc/inclhack.def (math_exception):  Improve bypass and comment.
12929         * fixinc/fixincl.x: Rebuild.
12931 2003-07-09  Hans-Peter Nilsson  <hp@bitrange.com>
12933         * doc/install.texi (Configuration): Document the valgrind option
12934         to --enable-checking.
12936 2003-07-09  Jan Hubicka  <jh@suse.cz>
12938         * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
12940 2003-07-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12942         * c-lex.c (cb_ident): Cast cstr.text to const char *.
12944 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
12946         * gcov-io.h: Update documentation.
12947         (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
12948         GCOV_NOTE_MAGIC.
12949         (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
12950         (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
12951         (struct gcov_var): Change buffer's type. Add endian flag.
12952         (gcov_open): Remove mode in libgcov.
12953         (gcov_magic): Prototype.
12954         * gcov-io.c (from_file): New.
12955         (gcov_open): Clear endian flag.
12956         (gcov_magic): New.
12957         (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
12958         pointers.
12959         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
12960         gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
12961         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
12962         * gcov-iov.c (main): Correct cast.
12963         * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
12964         conversion.
12965         (gcov_begin_output): Use GCOV_NOTE_MAGIC.
12966         (coverage_init): Use GCOV_NOTE_SUFFIX.
12967         * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
12968         Rename to gcov_version, and return flag.
12969         (gcov_exit): Use gcov_version.
12970         (__gcov_init): Use gcov_version.
12971         * Makefile.in (coverageexts): Update.
12972         * gcov.c (print_version): Remove endianness conversion.
12973         (create_file_names): Use GCOV_NOTE_SUFFIX.
12974         (read_graph_file): Use gcov_magic.
12975         (read_count_file): Likewise.
12976         * gcov-dump.c (dump_file): Remove endianness conversion, use
12977         gcov_magic.
12979 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
12981         * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
12982         coverage is on.
12983         * configure: Regenerated.
12984         * Makefile.in (ALL_CFLAGS): Correct its comment.
12986 2003-07-08  Mark Mitchell  <mark@codesourcery.com>
12988         * fold-const.c (make_range): Do not access operand 1 for a
12989         zero-operand operator.
12991 2003-07-09  Neil Booth  <neil@daikokuya.co.uk>
12993         * toplev.c (warn_dummy, W_options): Die.
12994         (display_help): Don't print W_options.
12995         * common.opt: Add W_options help from toplev.c.
12997 2003-07-09  Andreas Jaeger  <aj@suse.de>
12999         * opts.c (wrap_help): Only pass int arguments as arguments to
13000         printf's '*' modifier.  Change argument of function.
13002 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
13004         * doc/invoke.texi: Fix misspelling of "@item".
13006 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
13008         * config/i386/i386.md: Remove an old comment about
13009         NOTICE_UPDATE_CC.
13011 2003-07-09  Jan Hubicka  <jh@suse.cz>
13013         * cgraph.c (cgraph_node_name): New function.
13014         (dump_cgraph): Use it.
13015         * cgraph.h (cgraph_dump_file): Declare.
13016         (cgraph_node_name): Declare.
13017         * cgraphunit.c: Include timevar.h
13018         (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
13019         (cgraph_optimize_function): Use TV_INTEGRATION.
13020         (cgraph_mark_local_functions): reorganize dumps.
13021         (cgraph_mark_functions_to_inline_once): Likewise.
13022         (cgraph_optimize): Likewise; use timevar.
13023         * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
13024         * toplev.c (dump_file_index): Add DFI_cgraph.
13025         (dump_file_info): Likewise.
13026         (cgraph_dump_file): New global variable.
13027         (do_compile): Open and close cgraph dump.
13028         * invoke.texi (-d): Document new flag; renumber.
13030 2003-07-08  Roger Sayle  <roger@eyesopen.com>
13032         PR c/11370
13033         * calls.c (emit_call_1): Don't bother popping the arguments off of
13034         the stack after a noreturn function call;  The adjustment is dead.
13035         (expand_call): Likewise.
13037 2003-07-08  Geoffrey Keating  <geoffk@apple.com>
13039         * expr.c (MOVE_MAX_PIECES): Move from here...
13040         * defaults.h (MOVE_MAX_PIECES): ... to here.
13042 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
13044         * Makefile.in (stage1-start): Handle an empty SUBDIRS.
13046 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13048         * genattr.c (internal_dfa_insn_code): Don't prototype.
13049         * genattrtab.c (attr_desc): Add `static_p' field.
13050         (expand_units): Make blockage range and ready cost functions
13051         static.
13052         (write_attr_get): Don't add extern prototypes in C file.  Mark
13053         static functions as appropriate.
13054         (find_attr, make_internal_attr): Initialize static_p.
13055         * genattrtab.h (ATTR_STATIC): New macro.
13056         * genautomata.c (output_internal_reset_func): Mark output function
13057         as inline.
13058         (make_internal_dfa_insn_code_attr): Mark output function as static.
13060 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13062         * genattrtab.h: Add new macros for attr `special' flags.
13063         * genattrtab.c (attr_desc): Reorder/resize fields better.
13064         Use attr `special' macros in all calls to make_internal_attr.
13065         * genautomata.c: Likewise.
13067 2003-07-09  Jan Hubicka  <jh@suse.cz>
13069         * c-common.c (c_estimate_num_insns_1): New static function.
13070         (c_estimate_num_insns): New global function.
13071         * c-common.h (DECL_NUM_STMTS): Rename to...
13072         (DECL_ESTIMATED_INSNS): ... this.
13073         (c_estimate_num_insns): Declare.
13074         * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
13075         * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
13076         * c-semantics.c (add_stmt): Do not account statements.
13077         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
13078         New.
13079         * langhooks.h (lang_hooks_for_tree_inlining): Add
13080         estimate_num_insns
13081         * params.def (max-inline-insns-auto, max-inline-insns-auto): set
13082         to 100.
13083         (max-inline-insns): set to 300.
13084         (min-inline-insns): set to 10.
13085         * tree-inline.c (struct inline_data): Rename inlined_stmts to
13086         inlined-insns.
13087         (INSNS_PER_STMT): Kill.
13088         (inlinable_function_p): Compute and store body size.
13089         (expand_call_inline): Likewise.
13090         (optimize_inline_calls): Likewise.
13092 2003-07-08  James E Wilson  <wilson@tuliptree.org>
13094         PR target/10021
13095         * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
13096         loop over new variable t2 instead of t.
13098 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
13100         PR bootstrap/11455
13101         * config/i386/winnt.c: Replace use of error(), warning() with
13102         error_with_decl(), warning_with_decl(),  throughout.
13104 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
13106         * opts.c (wrap_help): Use unsigned int, not size_t.
13108 2003-07-08  Stephane Carrez  <stcarrez@nerim.fr>
13110         * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
13111         as .file/.loc directives are incompatible with linker relaxation.
13113 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
13115         * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
13116         * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
13117         * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
13118         * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
13119         * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
13120         * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
13121         Escape { and } characters which are not part of range expressions.
13122         * fixinc/fixincl.x: Regenerate.
13123         * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
13125 2003-07-08  Steven Bosscher  <steven@gcc.gnu.org>
13127         PR c/1687
13128         * tree-inline.c (find_alloca_call): Use
13129         walk_tree_without_duplicates, instead of walk_tree.
13130         (find_builtin_longjmp_call): Likewise.
13131         * c-objc-common.c (c_cannot_inline_fn): Likewise.
13132         * c-semantics.c (find_reachable_label): Likewise.
13134 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
13136         PR c/11420
13137         * config/i386/i386.c (ix86_check_movabs): New function.
13138         * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
13139         * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
13140         (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
13142 2003-07-08  Chris Demetriou  <cgd@broadcom.com>
13144         * Makefile.in (install-po): Cope with empty CATALOGS.
13146 2003-07-08  Richard Sandiford  <rsandifo@redhat.com>
13148         * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
13149         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
13150         (SECTION_FUNCTION_TEMPLATE): Delete.
13151         * config/mips/elf.h: As for elf64.h.
13152         (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
13153         * config/mips/linux.h: As for elf.h
13154         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
13155         * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
13156         (EXTRA_SECTION_FUNCTIONS): Remove sdata_section.  Remove the handling
13157         of in_sdata from current_section_name and current_section_flags.
13158         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
13159         * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
13160         (MASK_GP_OPT, TARGET_GP_OPT): Delete.
13161         (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
13162         (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
13163         (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
13164         * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
13165         (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
13166         (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
13167         (override_options): Remove setting of MASK_GPOPT.
13168         (mips_output_external): Use mips_in_small_data_p to check whether a
13169         symbol needs an .extern directive.  Don't emit such directives for
13170         TARGET_EXPLICIT_RELOCS.
13171         (mips_declare_object): Update accordingly.
13172         (mips_select_rtx_section): Call named_section rather than
13173         SMALL_DATA_SECTION.
13174         (mips_select_section): Use default_elf_section_section for everything
13175         except .text string constants.
13176         (mips_in_small_data_p): New function.
13177         (mips_encode_section_info): Remove small data handling.
13178         (mips_unique_section): Delete.
13179         (iris6_section_type_flags): New function.
13180         * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
13182 2003-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13184         PR Target/11453
13185         * pa.md: Disparage all mtsar constraints.
13186         (extzv, extv, insv): Don't fail on length of {32|64}.
13188 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
13190         * system.h: Poison MAP_CHARACTER.
13191         * config/i370/i370-protos.h (mvs_map_char): Delete.
13192         * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
13193         * config/i370/i370.h (MAP_CHARACTER): Delete definition.
13194         (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
13196 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
13198         * toplev.c (randomize): Correct call to time().
13200 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
13202         * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
13203         REG_EQUIV notes as well.
13205 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
13207         * doc/md.texi: Fix the description of addmodecc.
13209 2003-07-07  Zack Weinberg  <zack@codesourcery.com>
13211         * Makefile.in (top_builddir): Set to "..", not ".".
13212         (INTLLIBS, INTLDEPS): Delete.
13213         (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
13214         (LIBDEPS): Add $(LIBICONV_DEP).
13215         (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
13216         (INCLUDES): Replace -I../intl with @INCINTL@.
13217         ($(top_builddir)/intl/libintl.a): Delete rule.
13218         (stage2-start, stage3-start, stage4-start, stageprofile-start,
13219         stagefeedback-start): Use $$ for variable to be evaluated by
13220         shell, not make.
13221         * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
13222         HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
13223         * aclocal.m4: sinclude ../config/progtest.m4.  Add
13224         contents of lcmessage.m4 from gettext distro.
13225         * configure.in: Check for wchar.h and setlocale.  Set
13226         LIBICONV_DEP to the empty string and substitute it.
13227         Call AM_LC_MESSAGES.  Delete AC_ARG_ENABLE for --enable-nls;
13228         this is handled elsewhere.  Use ZW_GNU_GETTEXT_SISTER_DIR,
13229         not CY_GNU_GETTEXT.  Clear $LIBICONV if its text is included
13230         in $LIBINTL, to avoid linking it twice.
13231         * configure, config.in: Regenerate.
13233 2003-07-08  Nathanael Nerode  <neroden@gcc.gnu.org>
13235         * fixinc/mkfixinc.sh: Remove winnt support.
13236         * fixinc/fixinc.winnt: Delete with extreme prejudice.
13238 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
13240         * Makefile.in: Update.
13241         * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
13242         * c.opt: Update documentation.
13243         * common.opt: Add some help text.
13244         * opts.c: Include intl.h.
13245         (wrap_help, print_help): New.
13246         (find_opt, handle_option, common_handle_option): opt_text now
13247         contains the '-'.  Use print_help to output help.
13248         * opts.h (struct cl_option): New member "help".
13249         * opts.sh: Update to handle help text output and to prepend
13250         options with '-'.
13251         * toplev.c (display_help): Remove some help text.
13253 2003-07-07  David Edelsohn  <edelsohn@gnu.org>
13254             Fariborz Jahanian  <fjahanian@apple.com>
13256         * configure.in: Test for PowerPC mfcr field support in assembler.
13257         * config.in, configure: Regenderated.
13259         * config/rs6000/power4.md: Add mfcrf reservation.
13260         * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
13261         * config/rs6000/rs6000.c (mfcr_operation): Define.
13262         (print_operand): Add 'Q' case for mfcrf.
13263         * config/rs6000/rs6000.h (TARGET_MFCRF): New.
13264         * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
13265         (movcc_internal1): Emit optional field operand for mfcr and set
13266         "type" attribute appropriately.
13267         (mfcr SCC): Likewise.
13268         (movesi_from_cr_one): New.
13270 2003-07-07  Roger Sayle  <roger@eyesopen.com>
13272         * config/i386/i386.md: Correct check-in of incorrect version.
13274 2003-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13276         * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
13277         adjacent stdio calls.
13278         * c-decl.c (c_print_identifier): Likewise.
13279         * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
13280         * print-rtl.c (print_rtx): Likewise.
13281         * print-tree.c (print_node_brief, print_node): Likewise.
13282         * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
13284         * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
13285         * config.in, configure: Regenerated.
13287 2003-07-07  Roger Sayle  <roger@eyesopen.com>
13289         PR target/10979
13290         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
13291         Changed to define_expand patterns that copy operand[1] to prevent
13292         it from being clobbered before emitting an atan2?f3_1 insn.
13293         (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
13294         patterns that actually specify the behaviour of x87's FPATAN.
13296 2003-07-07  Jakub Jelinek  <jakub@redhat.com>
13298         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
13299         clearing of SYMBOL_FLAG_LOCAL bit.
13300         If vcall_offset fits into signed 16-bit immediate, use
13301         one instruction for both addition and load.
13303 2003-07-07  Neil Booth  <neil@daikokuya.co.uk>
13305         * opts.c (common_handle_option): Correct handling of the
13306         -falign- switches that do and don't take an argument.
13308 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
13310         * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
13311         today.
13312         (pushhi1_h8300hs): Likewise.
13314 2003-07-07  Andreas Jaeger  <aj@suse.de>
13316         * genextract.c: Convert remaining prototypes to ISO C90.
13318         * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
13319         * fold-const.c (fold_single_bit_test): Likewise.
13320         * diagnostic.c (default_diagnostic_finalizer): Likewise.
13321         * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
13323         * gengtype.c (write_array): Generate ISO C90 prototypes.
13325         * genflags.c (gen_proto): Generate ISO C90 prototypes.
13327 2003-07-07  Roger Sayle  <roger@eyesopen.com>
13329         PR optimization/11059
13330         * expr.c (can_store_by_pieces): Return true if length is zero.
13331         (store_by_pieces): If length is zero and endp is two, abort,
13332         othwerise, if length is zero and endp is not two, return "to".
13333         (clear_by_pieces): Do nothing if length is zero.
13334         (clear_storage): Do nothing if length is zero.
13335         (store_constructor): Simplify code when size is zero, or the
13336         target has already been cleared.  This avoids emitting a
13337         blockage instruction when initializing empty structures.
13339 2003-07-07  Andreas Jaeger  <aj@suse.de>
13341         * mips-tfile.c: Convert prototypes to ISO C90.
13342         * mips-tdump.c: Convert prototypes to ISO C90.
13344 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
13346         * rtl.h (emit_line_note): Take a location_t.
13347         (emit_line_note_force): Remove.
13348         (set_file_and_line_for_statement): Take a location_t.
13349         * tree.g (emit_line_note): Take a location_t.
13350         * emit-rtl.c (emit_line_note): Take a location_t.
13351         (emit_line_note_force): Remove.
13352         * function.c (init_function_start): Adjust emit_line_note call.
13353         (expand_function_end): Use force_next_line_note, not
13354         emit_line_note_force.
13355         * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
13356         * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
13357         genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
13358         genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
13359         genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
13360         genrtl_continue_stmt, genrtl_switch_stmt,
13361         genrtl_asm_stmt): Likewise.
13362         * expr.c (expand_expr): Likewise.
13363         * integrate.c (expand_inline_function): Likewise.
13364         * stmt.c (set_file_and_line_for_stmt): Take a location_t.
13365         (expand_decl_init): Adjust emit_line_note call.
13367 2003-07-07  Dale Johannesen  <dalej@apple.com>
13369         * config/rs6000/darwin-tramp.asm:  Fix trampolines.  PR 10900.
13371 2003-07-07  Andreas Jaeger  <aj@suse.de>
13373         * config/i386/i386-protos.h: Convert prototypes to ISO C90.
13374         * config/i386/i386.c: Likewise.
13376 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
13378         * config/h8300/h8300.md: Use gen_int_mode instead of
13379         GEN_INT (trunc_int_for_mode (...)).
13381 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
13383         * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
13384         2 bytes and then subtract 2 from the stack pointer.
13385         (pushhi1_h8300hs): Likewise.
13387 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
13389         * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
13390         -frandom-seed.
13391         * configure: Regenerated.
13392         * Makefile.in: Remove extraneous comment.
13393         * toplev.c (randomize): Protect against potential multiple calls.
13394         * doc/invoke.texi (-frandom-seed): Document use for in coverage
13395         files.
13397 2003-07-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13398             Eric Botcazou  <ebotcazou@libertysurf.fr>
13400         PR optimization/11198
13401         * alias.c (objects_must_conflict_p): Return 1 if the types have
13402         the same alias set, not if the alias sets only conflict.
13404 2003-07-07  Andrew Pinski  <pinskia@physics.uc.edu>
13406         * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
13407         (convert_cset): Change inbuf to type ICONV_CONST char.
13408         * Makefile.in (LIBS): Add LIBICONV.
13410         * doc/invoke.texi (-falign-functions): Document that
13411         when n is zero then a machine-dependent default is used.
13412         (-falign-labels): Document that when n is zero then a
13413         machine-dependent default is used and that -falign-labels =1
13414         is equivalent to -fno-align-labels.
13415         (-falign-loops): Likewise.
13416         (-falign-jumps): Likewise.
13418 2003-07-06  Art Haas  <ahaas@airmail.net>
13420         * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
13421         initializer syntax.
13423 2003-07-06  James E Wilson  <wilson@tuliptree.org>
13425         PR optimization/9812
13426         * rtl.h (mem_for_const_double): Delete prototype.
13427         * varasm.c (mem_for_const_double): Delete function.
13428         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
13429         config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
13430         (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
13431         * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
13432         (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
13433         * config/m68k/m68k.md (movxf): Add reload_in_progress guard.  Add
13434         comment about confused support for XFmode constants.
13436 2003-07-07  Jan Hubicka  <jh@suse.cz>
13438         * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
13440 2003-07-06  Kazu Hirata  <kazu@cs.umass.edu>
13442         * config/h8300/h8300.c: Fix comment typos.
13443         * config/h8300/h8300.md: Likewise.
13444         * config/i386/athlon.md: Likewise.
13445         * config/i386/i386.c: Likewise.
13446         * config/i386/pentium.md: Likewise.
13447         * config/ia64/ia64.c: Likewise.
13448         * config/ia64/itanium1.md: Likewise.
13449         * config/ia64/itanium2.md: Likewise.
13450         * config/m32r/m32r.md: Likewise.
13451         * config/m68hc11/m68hc11.c: Likewise.
13452         * config/mcore/mcore.c: Likewise.
13453         * config/mips/sr71k.md: Likewise.
13454         * config/mips/t-iris5-as: Likewise.
13455         * config/mmix/mmix.h: Likewise.
13456         * config/ns32k/ns32k.h: Likewise.
13457         * config/ns32k/NOTES: Fix a typo.
13459 2003-07-06  Andreas Jaeger  <aj@suse.de>
13461         * stmt.c: Convert remaining prototypes to ISO C90.
13462         * cfglayout.c: Likewise.
13463         * dbxout.c: Likewise.
13464         * gcc.c: Likewise.
13465         * genemit.c: Likewise.
13467         * basic-block.h: Convert prototypes to ISO C90.
13468         * c-parse.in: Likewise.
13469         * c-pragma.h: Likewise.
13470         * c-typeck.c: Likewise.
13471         * cfghooks.h: Likewise.
13472         * cfgloopanal.c: Likewise.
13473         * dbxout.h: Likewise.
13474         * debug.h: Likewise.
13475         * dwarf2asm.h: Likewise.
13476         * gcov.c: Likewise.
13477         * gengtype-lex.l: Likewise.
13478         * sched-int.h: Likewise.
13479         * timevar.c: Likewise.
13481 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
13483         * c-common.h (c_comon_handle_filename,
13484         c_common_missing_arguement): New.
13485         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
13486         LANG_HOOKS_MISSING_ARGUMENT): New.
13487         * c-opts.c (missing_arg): Rename c_common_missing_argument,
13488         update to be an appropriate langhook.
13489         (c_common_handle_option): Don't handle filenames.
13490         (c_common_handle_filename): New.
13491         * hooks.c (hook_void_constcharptr,
13492         hook_bool_constcharptr_size_t_false): New.
13493         * hooks.h (hook_void_constcharptr,
13494         hook_bool_constcharptr_size_t_false): New.
13495         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
13496         LANG_HOOKS_MISSING_ARGUMENT): New.
13497         (LANG_HOOKS_INITIALIZER): Update.
13498         * langhooks.h (struct lang_hooks): Add handle_filename and
13499         missing_argument.
13500         * opts.c (handle_option): Don't handle filenames here, but ...
13501         (handle_options): ... here.
13502         (common_handle_option): Don't handle missing arguments here.
13503         * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
13504         LANG_HOOKS_MISSING_ARGUMENT): New.
13506 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
13508         * Makfile.in: Remove traces of mbchar.
13509         * c-parse.in (MULTIBYTE_CHARS): Remove.
13510         * config.in (MULTIBYTE_CHARS): Remove.
13511         * configure: Remove --enable-mbchar.
13512         * configure.in: Remove --enable-mbchar.
13513         * mbchar.c, mbchar.h: Remove.
13514         * system.h: Poison MULTIBYTE_CHARS.
13515         * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
13516         * config/linux.h (MULTIBYTE_CHARS): Remove.
13517         * config/svr4.h (MULTIBYTE_CHARS): Remove.
13518         * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
13520 2003-07-06  Andreas Jaeger  <aj@suse.de>
13522         * varray.c (varray_check_failed): Fix typo.
13524         * unroll.c: Convert prototypes to ISO C90.
13525         * varasm.c: Likewise.
13526         * varray.c: Likewise.
13527         * varray.h: Likewise.
13528         * vmsdbgout.c: Likewise.
13529         * xcoffout.c: Likewise.
13530         * xcoffout.h: Likewise.
13532 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
13534         * gcov-io.h: Add a local time stamp.
13535         (struct gcov_info): Add stamp field.
13536         (gcov_truncate): New.
13537         * coverage.c (read_counts_file): Skip the stamp.
13538         (coverage_begin_output): Write the stamp.
13539         (build_gcov_info): Declare and init the stamp.
13540         (coverage_finish): Only unlink data file, if stamp is zero.
13541         * gcov-dump.c (dump_file): Dump the stamp.
13542         * gcov.c (bbg_stamp): New.
13543         (release_structures): Clear bbg_stamp.
13544         (read_graph_file): Read stamp.
13545         (read_count_file): Check stamp.
13546         * libgcov.c (gcov_exit): Check stamp and truncate if needed.
13548 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
13550         * tree.h (default_flag_random_seed): Remove.
13551         * toplev.h (local_tick): Declare.
13552         * tree.c (flag_random_seed, default_flag_random_seed): Move to
13553         toplev.c.
13554         (append_random_chars): Don't call default_flag_random_seed.
13555         * toplev.c (flag_random_seed): Define here. Set local_tick.
13556         (local_tick): Define.
13557         (randomize): New, moved from tree.c.
13558         (print_switch_values): Adjust.
13559         (toplev_main): Call randomize.
13561 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
13563         * tree.h (crc32_string): Declare.
13564         * tree.c (append_random_chars): Remove.
13565         (crc32_string): New.
13566         (get_file_function_name_long): Use crc32_string here.
13568 2003-07-06  Andreas Jaeger  <aj@suse.de>
13570         * gcc.c: Convert prototypes to ISO C90.
13571         * gcc.h: Likewise.
13572         * gcov-dump.c: Likewise.
13573         * gcov-iov.c: Likewise.
13574         * gcse.c: Likewise.
13575         * genattrtab.h: Likewise.
13576         * ggc.h: Likewise.
13577         * global.c: Likewise.
13578         * graph.c: Likewise.
13579         * graph.h: Likewise.
13580         * hosthooks.h: Likewise.
13581         * hooks.h: Likewise.
13582         * hooks.c: Likewise.
13583         * hashtable.h: Likewise.
13584         * hashtable.c: Likewise.
13585         * haifa-sched.c: Likewise.
13586         * integrate.h: Likewise.
13587         * integrate.c: Likewise.
13588         * input.h: Likewise.
13589         * ifcvt.c: Likewise.
13590         * jump.c: Likewise.
13591         * langhooks-def.h: Likewise.  Add extern to prototypes.
13592         * langhooks.c: Likewise.
13593         * langhooks.h: Likewise.
13594         * lcm.c: Likewise.
13595         * local-alloc.c: Likewise.
13596         * loop-init.c: Likewise.
13597         * loop-unroll.c: Likewise.
13598         * loop-unswitch.c: Likewise.
13599         * loop.c: Likewise.
13600         * loop.h: Likewise. Add extern to prototypes.
13601         * machmode.h: Likewise.
13602         * main.c: Likewise.
13603         * mbchar.c: Likewise.
13604         * mbchar.h: Likewise.
13605         * mkdeps.c: Likewise.
13606         * mkdeps.h: Likewise.
13607         * optabs.c: Likewise.
13608         * optabs.h: Likewise.
13609         * output.h: Likewise.
13610         * gccspec.c: Likwise.
13611         * postreload.c: Likewise.
13612         * prefix.c: Likewise.
13613         * prefix.h: Likewise.
13614         * print-rtl.c: Likewise.
13615         * print-tree.c: Likewise.
13616         * profile.c: Likewise.
13617         * read-rtl.c: Likewise.
13618         * real.c: Likewise.
13619         * real.h: Likewise.
13620         * recog.c: Likewise.
13621         * recog.h: Likewise.
13622         * reg-stack.c: Likewise.
13623         * regclass.c: Likewise.
13624         * regmove.c: Likewise.
13625         * regrename.c: Likewise.
13626         * regs.h: Likewise.
13627         * reload.c: Likewise.
13628         * reload.h: Likewise.
13629         * reload1.c: Likewise.
13630         * reorg.c: Likewise.
13631         * resource.c: Likewise.
13632         * resource.h: Likewise.
13633         * rtl-error.c: Likewise.
13634         * rtl.c: Likewise.
13635         * rtl.h: Likewise.
13636         * rtlanal.c: Likewise.
13637         * sbitmap.c: Likewise.
13638         * sbitmap.h: Likewise.
13639         * scan-decls.c: Likewise.
13640         * scan.c: Likewise.
13641         * sched-deps.c: Likewise.
13642         * sched-ebb.c: Likewise.
13643         * sched-int.h: Likewise.
13644         * sched-rgn.c: Likewise.
13645         * sched-vis.c: Likewise.
13646         * sibcall.c: Likewise.
13647         * simplify-rtx.c: Likewise.
13648         * sreal.c: Likewise.
13649         * sreal.h: Likewise.
13650         * ssa-ccp.c: Likewise.
13651         * ssa-dce.c: Likewise.
13652         * ssa.c: Likewise.
13653         * ssa.h: Likewise.
13654         * stack.h: Likewise.
13655         * stmt.c: Likewise.
13656         * stor-layout.c: Likewise.
13657         * stringpool.c: Likewise.
13658         * target.h: Likewise.
13659         * timevar.c: Likewise.
13660         * timevar.h: Likewise.
13661         * tlink.c: Likewise.
13662         * tracer.c: Likewise.
13663         * tree-inline.c: Likewise.
13664         * tree-inline.h: Likewise.
13665         * tree.c: Likewise.
13666         * tree.h: Likewise.
13668 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
13670         * combine.c (nonzero_bits1): Fix a warning.
13672 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
13674         * config/h8300/h8300.c (compute_mov_length): Correct the
13675         length of loading CONST0_RTX (SFmode).
13677 2003-07-05  Nathan Sidwell  <nathan@codesourcery.com>
13679         * toplev.c (output_clean_symbol_name): Remove.
13680         * toplev.h (output_clean_symbol_name): Remove.
13681         * config/alpha/alpha.c (unicosmk_output_module_name): Use
13682         lbasename & clean_symbol_name.
13684 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
13686         * ggc.h: Follow spelling conventions.
13687         * config/i386/i386.c: Likewise.
13688         * config/i386/winnt.c: Likewise.
13689         * config/rs6000/rs6000.c: Likewise.
13691 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
13693         * bt-load.c: Fix comment typos.
13694         * c-incpath.c: Likewise.
13695         * cfg.c: Likewise.
13696         * cfgcleanup.c: Likewise.
13697         * cfgloop.h: Likewise.
13698         * cfgloopmanip.c: Likewise.
13699         * cfgrtl.c: Likewise.
13700         * diagnostic.h: Likewise.
13701         * dwarfout.c: Likewise.
13702         * emit-rtl.c: Likewise.
13703         * et-forest.c: Likewise.
13704         * et-forest.h: Likewise.
13705         * expr.c: Likewise.
13706         * gcse.c: Likewise.
13707         * genattr.c: Likewise.
13708         * jump.c: Likewise.
13709         * langhooks.h: Likewise.
13710         * local-alloc.c: Likewise.
13711         * loop-unroll.c: Likewise.
13712         * loop-unswitch.c: Likewise.
13713         * ra-build.c: Likewise.
13714         * regclass.c: Likewise.
13715         * regmove.c: Likewise.
13716         * rtl.def: Likewise.
13717         * rtlanal.c: Likewise.
13718         * sched-ebb.c: Likewise.
13719         * sched-rgn.c: Likewise.
13720         * simplify-rtx.c: Likewise.
13721         * ssa.c: Likewise.
13722         * tracer.c: Likewise.
13723         * tree.c: Likewise.
13725 2003-07-05  Zack Weinberg  <zack@codesourcery.com>
13727         * cppcharset.c: Use the correct return type for the fallback iconv
13728         macro.
13730 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13732         Blame to Jan Hubicka  <jh@suse.cz>
13733         * cfglayout.c (record_effective_endpoints): Split insns before
13734         first basic block correctly.
13736 2003-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13738         * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
13739         bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
13740         if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
13742 2003-07-05  Andreas Jaeger  <aj@suse.de>
13744         * genattrtab.c (write_attr_get): Revert part of last patch to
13745         always write out a prototype.
13747         * genemit.c (gen_split): Readd lost unused attributes in last
13748         patch.
13750 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13752         * cfgloopmanip.c (force_single_succ_latches): Force latch to be
13753         different from header.
13755 2003-07-05  Andreas Schwab  <schwab@suse.de>
13757         * config/m68k/m68k.c: Remove code protected by CRDS.
13758         * config/m68k/m68k.md: Likewise.
13760 2003-07-05  Neil Booth  <neil@daikokuya.co.uk>
13762         PR driver/11417
13763         * c-opts.c (permit_fortran_options): New.
13764         (c_common_init_options): Accept fortran front end options if
13765         it looks like we might be preprocessing Fortran.
13766         (c_common_handle_option): Don't reject switch if permit_fotran_options.
13768 2003-07-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13770         * genattr.c (internal_dfa_insn_code): Output prototype.
13771         * genattrtab.c: Don't output unnecessary decls, output in ISO C.
13772         * genautomata.c: Likewise.
13773         * genconditions.c: Likewise.
13774         * genemit.c: Likewise.
13775         * genextract.c: Likewise.
13776         * gengenrtl.c: Likewise.
13777         * gengtype.c: Likewise.
13778         * genopinit.c: Likewise.
13779         * genoutput.c: Likewise.
13780         * genpeep.c: Likewise.
13781         * genrecog.c: Likewise.
13783 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
13785         * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
13786         (struct cpp_options): Add narrow_charset, wide_charset,
13787         bytes_big_endian fields.  Remove EBCDIC field.
13788         (cpp_init_iconv, cpp_interpret_string): New external interfaces.
13790         * cpphash.h: Include <iconv.h> if we have it, otherwise
13791         provide a dummy definition of iconv_t.
13792         (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
13793         (_cpp_valid_ucn): Update prototype.
13794         (_cpp_destroy_iconv): New prototype.
13796         * doc/cpp.texi: Document character set handling.
13797         * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
13798         * doc/extend.texi: Delete entire section on multiline strings.
13799         Rewrite section on __FUNCTION__ etc now that these are
13800         variables in C.
13802         * cppucnid.tab, cppucnid.pl: New files.
13803         * cppucnid.h: New generated file.
13804         * cppcharset.c: Include cppucnid.h.  Lots of commentary added.
13805         (iconv_open, iconv, iconv_close): Provide dummy definitions
13806         if !HAVE_ICONV.
13807         (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
13808         _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
13809         emit_numeric_escape, convert_hex, convert_oct, convert_escape,
13810         cpp_interpret_string, narrow_str_to_charconst,
13811         wide_str_to_charconst): New.
13812         (ucn_valid_in_identifier): Use a binary search through the
13813         ucnranges table defined in cppucnid.h, not a long chain of if
13814         statements.
13815         (_cpp_valid_ucn): Add a limit pointer.  Downgrade "universal
13816         character names are only valid in C++ and C99" to a warning.
13817         Issue the "meaning of \[uU] is different in traditional C"
13818         warning here.  Take care not to let iconv see an invalid UCS
13819         value if we get a malformed UCN.  Issue an error if we don't
13820         have iconv.
13821         (cpp_interpret_charconst): Moved here from cpplex.c.  Use
13822         cpp_interpret_string to do the heavy lifting.
13824         * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
13825         narrow_charset, wide_charset fields of options structure.
13826         (cpp_destroy): Call _cpp_destroy_iconv.
13827         * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
13828         (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
13829         (cpp_interpret_charconst): Moved to cppcharset.c.
13830         * cpplib.c (dequote_string): Delete.
13831         (interpret_string_notranslate): New.
13832         (do_line, do_linemarker): Use interpret_string_notranslate.
13834         * Makefile.in (cppcharset.o): Depend on cppucnid.h.
13836         * c-common.c (fname_string, combine_strings): Delete.
13837         * c-common.h (fname_string, combine_strings): Delete prototypes.
13838         * c-lex.c (ignore_escape_flag): Delete.
13839         (cb_ident): Use cpp_interpret_string, not lex_string.
13840         (get_nonpadding_token): New function.
13841         (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
13842         Adjust calls to lex_string.  Don't write *value twice.
13843         (lex_string): Now handles string constant concatenation.
13844         Most of the work handed off to cpp_interpret_string.
13845         Call fix_string_type here.
13846         * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
13847         FUNC_NAME, throughout.
13848         (OBJC_STRING): New token type.
13849         (primary:STRING): No need to call fix_string_type here.
13850         (primary:objc_string): Make that OBJC_STRING.
13851         (objc_string nonterminal): Delete.
13852         (yylexname): Delete code to handle fake string constants.
13853         (yylexstring): Delete entirely.
13854         (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING.  No need
13855         to handle CPP_ATSIGN.
13857         * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
13858         * c-opts.c (missing_arg, c_common_handle_option): Handle
13859         OPT_fexec_charset_ and OPT_fwide_exec_charset_.
13860         (c_common_init): Set cpp_opts->bytes_big_endian, not
13861         cpp_opts->EBCDIC.  Call cpp_init_iconv.
13862         (print_help): Document -fexec-charset= and -fexec-wide-charset=.
13863         (TARGET_EBCDIC): Delete default definition.
13865         * objc/objc-act.c (build_objc_string_object): No need to
13866         handle string constant concatenation.
13868 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
13870         * doc/install.texi: Fix typos.
13871         * doc/invoke.texi: Likewise.
13872         * doc/tm.texi: Likewise.
13874 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
13876         * config/pa/fptr.c: Fix comment typos.
13877         * config/pa/pa-64.h: Likewise.
13878         * config/pa/pa.c: Likewise.
13879         * config/pa/pa.h: Likewise.
13880         * config/rs6000/603.md: Likewise.
13881         * config/rs6000/7xx.md: Likewise.
13882         * config/rs6000/darwin.h: Likewise.
13883         * config/rs6000/freebsd.h: Likewise.
13884         * config/rs6000/rs6000.c: Likewise.
13885         * config/rs6000/rs6000.md: Likewise.
13886         * config/rs6000/spe.h: Likewise.
13888 2003-07-04  Ulrich Weigand  <uweigand@de.ibm.com>
13890         * config/s390/2064.md: Change GNU CC to GCC.
13891         * config/s390/2084.md: Likewise.
13892         * config/s390/fixdfdi.h: Likewise.
13893         * config/s390/linux.h: Likewise.
13894         * config/s390/s390-modes.def: Likewise.
13895         * config/s390/s390-protos.h: Likewise.
13896         * config/s390/s390.c: Likewise.
13897         * config/s390/s390.h: Likewise.
13898         * config/s390/s390.md: Likewise.
13899         * config/s390/s390x.h: Likewise.
13901 2003-07-04  Jeff Law  <law@redhat.com>
13903         PR c/11428
13904         * expr.c (do_store_flag): Pass in the correct result type
13905         when calling fold_single_bit_test.
13906         * fold-const.c (fold_single_bit_test): Use result_type for the
13907         result when folding a sign bit test.
13909 2003-07-04  Neil Booth  <neil@daikokuya.co.uk>
13911         * opts.c (common_handle_options): Negate sense of -falign- switches.
13913 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
13915         * Makefile.in: Replace PWD with PWD_COMMAND.
13917 2003-07-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13919         * cfgloopanal.c (count_strange_loop_iterations): New static function.
13920         (constant_iterations, count_loop_iterations, simple_loop_exit_p):
13921         Handle strange loops.
13923 2003-07-04  Toon Moene  <toon@moene.indiv.nluug.nl>
13925         * install.texi: Even the g77 manpage is derived from
13926         the full g77 manual.
13928 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
13930         * ABOUT-NLS: Delete.
13931         * intl: Delete entire directory.
13932         * aclocal.m4: Include ../config/gettext.m4.  Delete
13933         AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
13934         AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
13935         * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
13936         Remove intl/Makefile from all_outputs.
13937         * configure, config.in: Regenerate.
13938         * Makefile.in: Expunge all references to intl subdirectory.
13939         Add -I../intl to INCLUDES.
13940         * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
13942 2003-07-04  Roger Sayle  <roger@eyesopen.com>
13944         * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
13945         * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
13947 2003-07-04  Danny Smith  <dannysmith@users.sourceforge.net>
13949         PR c++/5287, PR c++/7910, PR c++/11021
13950         * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
13951         dllimport attribute if function is defined at declaration, but
13952         report error instead. Likewise for dllimport'd variable
13953         definitions.  Set implicit TREE_PUBLIC for dllimport'd variables
13954         declared within functions, Report error if dllimport or dllexport
13955         symbol is not global.
13956         (i386_pe_dllimport_p): Ignore dllimport attribute of functions
13957         if defined after declaration or if inlined. Don't allow definition
13958         of static data members of C++ classes. Don't dllimport virtual
13959         methods.
13960         (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
13961         (i386_pe_mark_dllimport): Remove unnecessary checks.
13962         (i386_pe_encode_section_info): Warn if the dllimport attribute
13963         and symbol prefix have been instantiated and then overridden.
13965         * doc/extend.texi: Document dllimport and dllexport attributes.
13967         * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
13969 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
13971         * config/kaos.h (CPP_PREDEFINES): Delete.
13972         (TARGET_OS_CPP_BUILTINS): New.
13974 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13976         * c-aux-info.c: Include toplev.h after c-tree.h.
13977         * c-common.c: Likewise.
13978         (GCC_DIAG_STYLE): Undef.
13979         * c-semantics.c (GCC_DIAG_STYLE): Define.
13980         * c-tree.h (GCC_DIAG_STYLE): Likewise.
13981         * diagnostic.h (inform): Move prototype to toplev.h.
13982         * jump.c: Include diagnostic.h before toplev.h.
13983         * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
13984         (warning, error, fatal_error, pedwarn, sorry, inform,
13985         error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
13987 2003-07-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13989         * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
13990         at all if edge is not specified.
13991         (can_copy_bbs_p, copy_bbs): New.
13992         * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
13993         * cfgloop.c (get_loop_body): Comment more precisely.
13994         * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
13995         (scale_bbs_frequencies): Fix comment typo.
13996         (can_duplicate_loop_p): Use can_copy_bbs_p.
13997         (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
13999 2003-07-03  Devang Patel <dpatel@apple.com>
14001         * c-opts.c (c_common_parse_file): Remove extra
14002         debug_hooks->start_source_file call.
14004 2003-07-03  Roger Sayle  <roger@eyesopen.com>
14006         * real.c (real_trunc, real_floor, real_ceil): New functions
14007         to implement trunc, floor and ceil respectively.
14008         * real.h (real_trunc, real_floor, real_ceil): Prototype here.
14009         * builtins.c (integer_valued_real_p): New function to test if
14010         a floating point expression has an integer valued result.
14011         (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
14012         foo(x) where foo is an integer rounding function.  Similarly,
14013         optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
14014         (double)(int)x when both foo and bar are integer rounding
14015         functions and we don't need to honor errno.
14016         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
14017         New functions to fold trunc, floor and ceil.
14018         (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
14019         fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
14020         to fold BUILT_IN_CEIL*.
14021         * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
14022         the remaining integer rounding functions.
14024 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
14026         * config/sparc/sparc.c (function_arg_partial_nregs): Use
14027         SPARC_INT_ARG_MAX to determine where to split unnamed
14028         complex FP arguments.
14030 2003-07-03  Jan Hubicka  <jh@suse.cz>
14032         * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
14033         * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
14034         (merge_blocks_move_predecessor_nojumps,
14035          merge_blocks_move_successor_nojumps): Use merge_blocks.
14036         (try_optimize_cfg): Use merge_blocks_move.
14037         * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
14038         (merge_blocks_nomove): Rename to rtl_merge_blocks.
14039         (cfg_layout_create_basic_block): New.
14040         (rtl_can_merge_blocks): New.
14041         (cfg_layout_split_block): Do not alloc aux by hand.
14042         * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
14043         merge_blocks.
14044         (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
14045         * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
14046         * cfgloopmanip.c (loop_split_edge_with): Likewise.
14047         * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
14049         * basic-block.h (basic_block_def): Add field 'rbi'.
14050         * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
14051         find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
14052         * cfg.c (entry_exit_blocks): Add new field.
14053         * cfglayout.c: Include alloc-pool.h;
14054         (cfg_layout_pool): New.
14055         (record_effective_endpoints, fixup_reorder_chain,
14056         fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
14057         of rbi.
14058         (cfg_layout_initialize_rbi): New function.
14059         (cfg_layout_initialize): Use it.
14060         (cfg_layout_finalize): Clear rbi fields.
14061         * cfglayout.h (RBI): Kill.
14062         (cfg_layout_initialize_rbi): Declare.
14063         * cfgloopmanip.c (copy_bbs): Use rbi.
14064         (record_exit_edges): Likewise.
14065         (duplicate_loop_to_header_edge): Likewise.
14066         * cfgrtl.c (cfg_layout_create_basic_block): Use
14067         cfg_layout_initialize_rbi.
14068         (cfg_layout_split_block): Use rbi.
14069         (cfg_layout_delete_block): Likewise.
14070         * loop-init.c (loop_optimizer_finalize): Likewise.
14071         * loop-unswitch.c (unswitch_loop): Likewise.
14072         * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
14074         * cfgrtl.c: Update comments.
14075         (try_redirect_by_replacing_jump): New argument.
14076         (redirect_branch_edge): Break out from ...
14077         (rtl_redirect_edge_and_branch): ... this one.
14078         (update_cfg_after_block_merging): Break out from ...
14079         (rtl_merge_blocks): ... this one.
14080         (cfg_layout_split_edge): New.
14081         (cfg_layout_merge_blocks): New.
14082         (cfg_layout_can_merge_blocks_p): New.
14083         (cfg_layout_redirect_edge_and_branch): Reorganize.
14084         (cfg_layout_rtl_cfg_hooks): Fill in.
14085         (cfg_layout_delete_block): Kill barriers.
14086         * cfganal.c (can_fallthru): Deal with exit blocks
14087         * cfglayout.c (cfg_layout_function_header): New function
14088         (record_effective_endpoints): Record function header.
14089         (fixup_reorder_chain): Fixup dead jumptables; place header
14091         * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
14092         * bb-reorder.c (cfg_layout_initialize): Update call.
14093         * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
14094         edges in cfglayout mode.
14095         * cfglayout.c (cleanup_unconditional_jumps): Kill.
14096         (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
14097         * cfglayout.h (cfg_layout_initialize): Update prototype.
14098         * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
14099         * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
14100         * flow.c (propagate_block): Do not crash when basic block ends
14101         by first insn in the chain.
14102         * loop-init.c (loop_optimizer_init):  First enter cfglayout mode; later
14103         do loop discovery.
14104         * tracer.c (tracer): Update call of cfg_layout_initialize.
14106 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14108         * Makefile.in: Use dependency variables in lieu of explicit
14109         files throughout.
14111 2003-07-03  Steven Bosscher  <steven@gcc.gnu.org>
14113         * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
14114         * tree.h: ...to here.
14116 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
14118         * config/s390/2064.md: Fix comment typos.
14119         * config/s390/2084.md: Likewise.
14120         * config/s390/s390.c: Likewise.
14121         * config/s390/s390.md: Likewise.
14122         * config/sh/sh.c: Likewise.
14123         * config/sh/sh.h: Likewise.
14124         * config/sh/sh.md: Likewise.
14125         * config/sparc/sparc.c: Likewise.
14126         * config/sparc/sparc.h: Likewise.
14127         * config/sparc/sparc.md: Likewise.
14128         * config/stormy16/stormy16.c: Likewise.
14129         * config/stormy16/stormy16.h: Likewise.
14130         * config/stormy16/stormy-abi: Fix a typo.
14132 2003-07-03  Kelley Cook  <kelleycook@wideopenwest.org>
14134         * Makefile.in (ifcvt.o): Depend on OPTABS_H.
14136 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14138         * config/mips/mips.h (save_argv): Delete.
14140 2003-07-03  Roger Sayle  <roger@eyesopen.com>
14142         PR target/10700
14143         * fold-const.c (extract_muldiv_1): There's nothing that can be done
14144         if the expression is a SAVE_EXPR.
14146 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
14148         * config/m32r/m32r.c: Fix comment typos.
14149         * config/m68hc11/m68hc11.c: Likewise.
14150         * config/m68hc11/m68hc11.h: Likewise.
14151         * config/m68k/m68k.c: Likewise.
14152         * config/mcore/mcore.c: Likewise.
14153         * config/mcore/mcore.h: Likewise.
14154         * config/mcore/mcore.md: Likewise.
14155         * config/mips/mips.c: Likewise.
14156         * config/mips/mips.h: Likewise.
14157         * config/mips/mips.md: Likewise.
14158         * config/mips/netbsd.h: Likewise.
14159         * config/mn10300/mn10300.c: Likewise.
14161 2003-07-03  Andreas Schwab  <schwab@suse.de>
14163         * dbxout.c (pending_bincls): Move decl down inside
14164         DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
14166 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
14168         * rtl.h (NOTE_DATA): Refer to whole union.
14169         * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
14171 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
14173         PR optimization/11381
14174         * simplify-rtx.c (simplify_relational_operation): Check that
14175         two equal operands have no side-effects before simplifying
14176         the comparison.
14178 2003-07-02  Jeff Law  <law@redhat.com>
14180         * expr.c (do_store_flag): Remove special case folding for
14181         single bit tests.  Instead call back into the commonized folder
14182         routine.
14183         * fold-const.c (fold_single_bit_test): New function, mostly
14184         extracted from do_store_flag, with an additional case extracted
14185         from fold.
14186         (fold): Call fold_single_bit_test appropriately.
14187         * tree.h (fold_single_bit_test): Prototype.
14189 2003-07-02  Zack Weinberg  <zack@codesourcery.com>
14191         * system.h: Include filenames.h.
14192         (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
14193         (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
14194         define based on HAVE_DOS_BASED_FILE_SYSTEM.
14195         * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
14196         * config/i386/xm-mingw32.h: Don't define
14197         HAVE_DOS_BASED_FILE_SYSTEM,
14198         DIR_SEPARATOR, or DIR_SEPARATOR_2.
14199         * doc/hostconfig.texi: Update to match.
14201         * cppfiles.c, gcc.c, gensupport.c, protoize.c,
14202         config/i386/cygwin.h:
14203         Use IS_ABSOLUTE_PATH throughout.
14204         * gcc.c (DIR_UP): Delete, unused.
14205         * protoize.c (IS_SAME_PATH): Define in terms of
14206         FILENAME_CMP.
14207         (is_abspath): Delete.
14209 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
14211         * config/i386/emmintrin.h: Fix comment typos.
14212         * config/i386/i386.c: Likewise.
14213         * config/i386/i386.h: Likewise.
14214         * config/i386/sco5.h: Likewise.
14215         * config/ia64/ia64.c: Likewise.
14216         * config/ia64/itanium2.md: Likewise.
14218 2003-07-02  H.J. Lu  <hongjiu.lu@intel.com>
14220         * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
14221         DBX_USE_BINCL.
14222         (emit_bincl_stab): Same.
14223         (emit_pending_bincls): Same.
14225 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
14227         * config/h8300/h8300.c (compute_mov_length): Fix the length of
14228         loading CONST0_RTX (SFmode).
14229         * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
14230         'G' to CONST0_RTX (SFmode).
14231         * config/h8300/h8300.md (movsf_h8300): Change the first
14232         constraint to 'G'.
14233         (movsf_h8300h): Likewise.
14235 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
14237         * c-common.h (c_common_init_options): New prototype.
14238         * c-opts.c (deferred_size): Remove.
14239         (defer_opt): Array is now pre-allocated.
14240         (c_common_init_options): Pre-allocate deferred_opts.  Make
14241         lang_flags unsigned.
14242         (push_command_line_options): Free deferred_opts.
14243         * hooks.c (hook_uint_uint_constcharptrptr_0): New.
14244         * hooks.h (hook_uint_uint_constcharptrptr_0): New.
14245         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
14246         * langhooks.h (struct lang_hooks): New prototype for init_options.
14247         * main.c (main): Cast argv.
14248         * opts.c (handle_option, handle_options): Update prototypes.
14249         (decode_options): save_argc, save_argv are not global.  Constify.
14250         * opts.h (decode_options): New prototype.
14251         * toplev.c (general_init): New protoype.
14252         (save_argv): Make static.
14253         (save_argc): Remove.
14254         (print_switch_values, general_init): Constify.
14255         (toplev_main): Save argv.
14256         * toplev.h (toplev_main): Update prototype.
14257         (save_argc, save_argv): Remove.
14259 2003-07-02  David Edelsohn  <edelsohn@gnu.org>
14261         * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
14262         (emit_bincl_stab): Same.
14263         (emit_pending_bincls): Same.
14265 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
14267         PR c++/11072
14268         * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
14270 2003-07-02  Andreas Schwab  <schwab@suse.de>
14272         * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
14274 2003-07-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
14276         PR optimization/11210
14277         * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
14278         about the behaviour with regard to bitfields.
14279         * fold-const (decode_field_reference): Record outermost type in
14280         case the expression is a NOP. Strip all NOPs. Set the signedness
14281         to that of the outermost type (if any) when the bitsize is equal
14282         to the size of the type.
14284 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
14286         * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
14287         (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
14288         (adddi3_internal_3, addsi3_internal_2): Likewise.
14290 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
14292         * config/mips/mips.c (machine_function): Add new fields:
14293         ignore_hazard_length_p and all_noreorder_p.
14294         (mips_flag_delayed_branch): New variable.
14295         (override_options): Treat '/' as an operand punctuation character.
14296         Set up mips_flag_delayed_branch.
14297         (print_operand): Handle '/'.
14298         (mips_output_function_prologue): Put the whole function in
14299         .set noreorder and .set nomacro if all_noreorder_p is true.
14300         (mips_output_function_epilogue): End the noreorder/nomacro sequence.
14301         (mips16_optimize_gp): Remove "first insn" parameter.
14302         (mips16_lay_out_constants): New function, split out from mips_reorg.
14303         (mips_avoid_hazard, mips_avoid_hazards): New functions.
14304         (mips_reorg): For mips16 code, call mips16_lay_out_constant
14305         and (optionally) mips16_optimize.  If TARGET_EXPLICIT_RELOCS,
14306         do delayed-branch scheduling followed by hazard detection.
14307         (mips_adjust_insn_length): Only account for hazards if
14308         !ignore_hazard_length_p.
14309         (mips_output_load_label): Add a nop to the o32 sequence if
14310         the target suffers from load delays.
14311         (mips_output_conditional_branch): Add %/ to the end of branches.
14312         (mips_output_division): Fill the branch delay slot with %#.
14313         * config/mips/mips.md: Remove redundant '%*' from mips16 branch
14314         instructions.  End all other %* branches with %/.
14315         (ffssi2, ffsdi2): Fix lengths.
14316         (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
14317         (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
14318         (fix_truncsfsi2_macro): Likewise.
14319         (mov_lwl): Set hazard to "none".
14320         (ashldi3_internal): Fill the branch delay slot with %#.
14321         (ashrdi3_internal, lshrdi3_internal): Likewise.
14322         (exception_receiver): Explicitly set $28.
14323         (hazard_nop): New pattern.
14325 2003-07-02  Jan Hubicka  <jh@suse.cz>
14327         * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
14328         before calling tree_inlinable_function_p.
14330 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14332         * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
14333         <internal/stdio_core.h> too.
14334         (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
14335         <internal/wchar_core.h> too.
14336         Substitute va_list uses in inline definition.
14337         * fixinc/fixincl.x: Regenerate.
14339 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14341         * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
14342         Undef before redefinition.
14343         (LABEL_AFTER_LOC): Likewise.
14344         (DEFAULT_SIGNED_CHAR): Likewise.
14345         (ASM_OUTPUT_ASCII): Moved here from iris4.h.
14346         Fix IRIX spelling.
14348         * config/mips/iris3.h: Remove, unused.
14349         * config/mips/iris4.h: Likewise.
14351         * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
14353         * config/mips/iris5.h (TARGET_DEFAULT): Move ...
14354         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
14355         target_cpu_default.
14357         * config/mips/iris5.h: Move explicit includes ...
14358         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
14360         * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
14361         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
14362         tm_defines.
14364         * config/mips/iris6.h (TARGET_DEFAULT): Move ...
14365         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
14366         target_cpu_default.
14368         * config/mips/iris6.h: Fix IRIX spelling.
14369         (MULTILIB_DEFAULTS): Undef before redefinition.
14371         * config/mips/iris6.h: Move explicit includes ...
14372         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
14374 2003-07-02  Jan Hubicka  <jh@suse.cz>
14376         * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
14377         cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
14378         Use next_needed field instead of aux to maintain the queue.
14379         * cgraph.h (cgraph_node): Add next_needed.
14380         (cgraph_varpool_node): Add next_needed; remove aux.
14381         * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
14383 2003-07-02  Jan Hubicka  <jh@suse.cz>
14385         * cgraphunit.c (cgraph_finalize_function): Set finalized.
14386         (cgraph_finalize_function): Do not examine inlinablility.
14387         (cgraph_finalize_compilation_unit): Do it here.
14388         * cgraph.h (cgraph_local_info): Add finalized field.
14390 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14392         * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
14393         (gt_pch_restore): Likewise.
14395 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
14397         * config/alpha/alpha.c: Fix comment typos.
14398         * config/alpha/elf.h: Likewise.
14399         * config/arm/arm.c: Likewise.
14400         * config/arm/arm.h: Likewise.
14401         * config/arm/arm.md: Likewise.
14402         * config/arm/t-arm-coff: Likewise.
14403         * config/arm/t-strongarm-pe: Likewise.
14404         * config/arm/xscale-elf.h: Likewise.
14405         * config/avr/avr.h: Likewise.
14407 2003-07-01  Jeff Law  <law@redhat.com>
14409         * stmt.c (any_pending_cleanups): Remove another redundant test.
14411 2003-07-01  David Edelsohn  <edelsohn@gnu.org>
14412             J"orn Rennecke <joern.rennecke@superh.com>
14414         * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
14415         for MEM case.
14417 2003-07-01  Devang Patel  <dpatel@apple.com>
14419         * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
14420         (binclstatus): New.
14421         (struct dbx_file): New members - bincl_status, pending_bincl_name and
14422         prev.
14423         (pending_bincls): New.
14424         (dbxout_init): Initialize new dbx_file members.
14425         (dbxout_start_source_file): Same.
14426         (emit_bincl_stab): New function.
14427         (emit_pending_bincls): Same.
14428         (emit_pending_bincls_if_required): Same.
14429         (dbxout_end_source_file): Emit EINCL stab only if BINCL is  already
14430         processed.
14431         (dbxout_begin_block): Emit pending BINCL stabs.
14432         (dbxout_end_block): Same.
14433         (dbxout_function_decl): Same.
14434         (dbxout_continue): Same.
14435         (dbxout_type): Same.
14436         (dbxout_class_name_qualifiers): Same.
14437         (dbxout_symbol): Same.
14438         (dbxout_symbol_location): Same.
14439         (dbxout_parms): Same.
14441 2003-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14443         * c-semantics.c (genrtl_case_label): Fix format specifier bug.
14444         * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
14446 2003-07-01  Andreas Jaeger  <aj@suse.de>
14448         * fold-const.c: Convert prototypes to ISO C90.
14449         * function.c: Likewise.
14450         * function.h: Likewise.
14452 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
14454         * doc/contrib.texi: Fix typos.
14455         * doc/invoke.texi: Likewise.
14456         * doc/passes.texi: Likewise.
14457         * doc/sourcebuild.texi: Likewise.
14458         * doc/tm.texi: Likewise.
14460 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
14462         * basic-block.h: Fix comment typos.
14463         * bb-reorder.c: Likewise.
14464         * c-format.c: Likewise.
14465         * cfgcleanup.c: Likewise.
14466         * cfghooks.h: Likewise.
14467         * cfgloop.c: Likewise.
14468         * cfgloopmanip.c: Likewise.
14469         * cfgrtl.c: Likewise.
14470         * cgraph.h: Likewise.
14471         * cgraphunit.c: Likewise.
14472         * combine.c: Likewise.
14473         * convert.c: Likewise.
14474         * dbxout.c: Likewise.
14475         * df.c: Likewise.
14476         * df.h: Likewise.
14477         * diagnostic.c: Likewise.
14478         * dwarf2out.c: Likewise.
14479         * et-forest.h: Likewise.
14480         * flow.c: Likewise.
14481         * fold-const.c: Likewise.
14482         * function.h: Likewise.
14483         * gcov-io.h: Likewise.
14484         * gcov.c: Likewise.
14485         * gcse.c: Likewise.
14486         * genautomata.c: Likewise.
14487         * ggc-common.c: Likewise.
14488         * ggc-page.c: Likewise.
14489         * loop-unroll.c: Likewise.
14490         * loop-unswitch.c: Likewise.
14491         * loop.c: Likewise.
14492         * mips-tfile.c: Likewise.
14493         * optabs.c: Likewise.
14494         * ra-build.c: Likewise.
14495         * ra-colorize.c: Likewise.
14496         * ra-rewrite.c: Likewise.
14497         * ra.h: Likewise.
14498         * regmove.c: Likewise.
14499         * reload.c: Likewise.
14500         * rtlanal.c: Likewise.
14501         * sched-ebb.c: Likewise.
14502         * sched-int.h: Likewise.
14503         * sched-vis.c: Likewise.
14504         * sreal.c: Likewise.
14505         * ssa-ccp.c: Likewise.
14506         * ssa.c: Likewise.
14507         * toplev.c: Likewise.
14508         * tree-inline.c: Likewise.
14509         * value-prof.c: Likewise.
14510         * value-prof.h: Likewise.
14512 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
14514         * rtl.h (emit_line_note_after): Remove.
14515         (emit_note_copy_after, emit_note_copy): New.
14516         * emit-rtl.c (reorder_insns_with_line_notes): Replace
14517         emit_line_note_after with emit_note_copy_after.
14518         (emit_insn_after_with_line_notes): Likewise.
14519         (emit_line_note_after): Kill.
14520         (emit_note_copy_after): New.
14521         (emit_note_copy): New.
14522         * function.c (emit_return_into_block): Use emit_note_copy_after.
14523         (thread_prologue_and_epilogue_insns): Likewise.
14524         * integrate.c (expand_inline_function): Use emit_note_copy.
14525         (copy_insn_list): Likewise.
14526         * unroll.c (copy_loop_body): Likewise.
14527         * cfglayout.c (duplicate_insn_chain): Likewise.
14529 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
14531         * c-tree.h (define_label): Replace filename and lineno arguments
14532         with a location_t.
14533         * c-decl.c (poplevel): Adjust define_label call.
14534         (pop_label_level): Likewise.
14535         (define_label): Replace filename and lineno arguments with a
14536         location_t.
14537         (store_parm_decls): Use DECL_SOURCE_LOCATION.
14538         * c-parse.in (label): Adjust define_label call.
14540 2003-07-01  Neil Booth  <neil@daikokuya.co.uk>
14542         * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
14543         config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
14544         config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
14545         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
14546         config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
14548 2003-07-01  Andreas Jaeger  <aj@suse.de>
14550         * final.c: Convert prototypes to ISO C90.
14551         * flow.c: Likewise.
14552         * flags.h: Likewise.
14553         * gcov-io.c: Likewise.
14554         * gcov-io.h: Likewise.
14556 See ChangeLog.9 for earlier changes.