OSDN Git Service

libunwind cleanup
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2003-12-03  Mark Mitchell  <mark@codesourcery.com>
2
3         * config/ia64/hpux.h (TARGET_HAVE_TLS): Define it to false.
4         * config/ia64/ia64.h (TARGET_HAVE_TLS): Define it to true if
5         HAVE_AS_TLS is true.
6         * config/ia64/ia64.c (TARGET_HAVE_TLS): Do not define it.
7
8 2003-12-03  James E Wilson  <wilson@specifixinc.com>
9
10         * gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name.
11
12         * gcc-page.c (extra_order_size_tab): Correct comment.
13
14 2003-12-03  Kazu Hirata  <kazu@cs.umass.edu>
15
16         * config/h8300/h8300.c (push): Call gen_push_h8300hs_advanced
17         instead of gen_push_h8300hs.
18         (pop): Call gen_pop_h8300hs_advanced instead of
19         gen_pop_h8300hs.
20         * config/h8300/h8300.h (TRAMPOLINE_SIZE): Use Pmode.
21         * config/h8300/h8300.md (*tablejump_h8300hs_advanced):
22         Tighten the predicate.
23         (*tablejump_h8300hs_normal): Tighten the predicate.
24         (push_h8300hs): Change to
25         push_h8300hs_advanced.
26         (pop_h8300hs): Change to pop_h8300hs_advanced.
27
28 2003-12-03  Eric Christopher  <echristo@redhat.com>
29
30         * rtl.c: Fix typo.
31         * config/mips/mips.h: Ditto. Fix formatting.
32
33 2003-12-04  Ben Elliston  <bje@wasabisystems.com>
34
35         * future.options: Remove. Move to gnu.org web pages.
36
37 2003-12-03  Eric Christopher  <echristo@redhat.com>
38
39         * c-parse.in (c_in_iteration_stmt, c_in_case_stmt): Move
40         from here...
41         * c-tree.h: to here.
42
43 2003-12-03  Jan Hubicka  <jh@suse.cz>
44
45         PR optimization/12324
46         * toplev.c  (rest_of_decl_compilation): Do not deffer when compiling
47         in unit-at-a-time mode.
48
49 2003-12-03  Jakub Jelinek  <jakub@redhat.com>
50
51         * expr.c (store_constructor): Only set RTX_UNCHANGING_P for
52         read-only field if cleared is 0.
53
54 2003-12-03  Nathanael Nerode  <neroden@gcc.gnu.org>
55
56         * config.gcc: Mark obsolete targets for GCC 3.4.
57
58 2003-12-03  Zack Weinberg  <zack@codesourcery.com>
59
60         * aclocal.m4 (AM_ICONV): Add explicit check for iconv.h.
61         * config.in, configure.in: Regenerate.
62         * cpphash.h: Check both HAVE_ICONV and HAVE_ICONV_H before
63         including iconv.h.
64
65 2003-12-03  Alan Modra  <amodra@bigpond.net.au>
66
67         PR target/11229
68         * cse.c (cse_insn): Set classp using src_const_elt if
69         src_eqv_elt is NULL.
70
71 2003-12-03  Richard Earnshaw  <rearnsha@arm.com>
72
73         * gcse.c (reg_clear_last_set): New function.
74         (reg_set_info): If data is non-null, treat it as an sbitmap of
75         registers, set the bit for the register being set.
76         (compute_store_table): Allocate last_set_in with xcalloc.  Do not
77         memset this array on each iteration.  Pass reg_set_in_block[bb->index]
78         to note_stores while computing last_set_in instead of scanning
79         last_set_in after the first pass through the insns.
80         Clear last_set_in using reg_clear_last_set instead of explicitly
81         rescanning after each insn.  If checking is enabled, assert that
82         last_set_in is completely zeroed after each bb has been processed.
83
84 2003-12-02  Geoffrey Keating  <geoffk@geoffk.org>
85
86         * df.c (df_uses_record) <MEM>: The argument of a MEM is read-only,
87         never read-write.
88         <REG>: Delete incorrect comment.
89         <SET>: Remove 'use_flags' variable.
90
91 2003-12-03  David Edelsohn  <edelsohn@gnu.org>
92
93         * function.c (assign_parms): Make sure parm PARALLEL combined
94         in reg is composed of more than one object and the mode really
95         produces a reg.
96
97 2003-12-03  Jan Hubicka  <jh@suse.cz>
98
99         * i386.c (classify_argument): Make it 64bit clean.
100
101 2003-12-02  Richard Sandiford  <rsandifo@redhat.com>
102
103         * config/mips/mips.c (mips_output_external): Replace checks for
104         specific builtin-in functions with a check for DECL_BUILTIN_IN.
105
106 2003-12-02  Richard Henderson  <rth@redhat.com>
107
108         * rtl.h (PUT_CODE, PUT_MODE): Remove ENUM_BITFIELD cast.
109         * tree.h (TREE_SET_CODE): Likewise.
110         * recog.h (struct insn_operand_data): Move const after ENUM_BITFIELD.
111
112 2003-12-02  Ben Elliston  <bje@wasabisystems.com>
113
114         * dbxstclass.h: Rename from this ..
115         * xcoff.h: .. to this.
116         * xcoffout.c: Include xcoff.h.
117
118 2003-12-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
119
120         * Makefile.in (GCC_CFLAGS): Add -Wold-style-definition.
121
122 2003-12-01  James Lemke <jim@wasabisystems.com>
123
124         * config/arm/arm.c (arm_rtx_costs): Improve for xscale multiply.
125
126 2003-12-01  Roger Sayle  <roger@eyesopen.com>
127
128         PR optimization/11634
129         * recog.c (split_insn): Factor test of INSN_P and handling of
130         set_noop_p out of here into the two callers.
131         (split_all_insns): Add INSN_P test and set_noop_p handling here.
132         If deleting a no-op set after reload that has a REG_UNUSED note,
133         mark the basic block as changed and recalculate life information.
134         (split_all_insns_noflow): Add INSN_P test and set_noop_p handling
135         here.
136
137 2003-12-01  Roger Sayle  <roger@eyesopen.com>
138
139         PR optimization/12322
140         * gcse.c (struct ls_expr): Change type of hash_index from int to
141         unsigned int.
142         (hash_expr): Document hash_table_size parameter and wrap long line.
143         (ldst_entry): Calculate expression's hash_index and record in ptr.
144         (trim_ld_motion_mems): Use hash_index to search a single bucket
145         instead of scanning the entire hash_table.  Remove the "del" local
146         variable and use the equivalent "expr == 0" instead.  Change last
147         to be a pointer to the pointer to the current element, to simplify
148         and speed-up deleting from a linked list.
149
150 2003-12-01  James E Wilson  <wilson@specifixinc.com>
151
152         * doc/contrib.texi: Update David Mosberger.
153
154         * doc/c-tree.texi (CONSTRUCTOR): Clarify element order and handling
155         of missing fields.
156
157         PR target/8407
158         * config/ia64/ia64.c (ia64_function_arg): For single-reg HFA, call
159         gen_rtx_REG to create new reg with argument mode.
160
161 2003-12-01  Steven Bosscher  <stevenb@suse.de>
162
163         * ggc.h (struct alloc_zone): Move forward declaration up.
164         (new_ggc_zone): New function prototype.
165         (destroy_ggc_zone): Ditto.
166         * ggc-simple.c (new_ggc_zone): New function, does nothing.
167         (destroy_ggc_zone): Ditto.
168         * ggc-page.c (new_ggc_zone): New function, does nothing.
169         (destroy_ggc_zone): Ditto.
170         * ggc-zone.c (struct page_entry): Fix comment.
171         (ggc_alloc_typed): Use a switch statement instead of ifs.
172         (new_ggc_zone): New function to set up a new GC zone.
173         (destroy_ggc_zone): New function to remove a GC zone.
174         init_ggc): Use new_ggc_zone to set up the default zones.
175         (ggc_collect): Walk a list of zones, instead of just the
176         default zones.  Report statistics using the zone name.
177
178 2003-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
179
180         * unroll.c (find_splittable_givs): Add missing extend_value_for_giv.
181
182 2003-12-01  Roger Sayle  <roger@eyesopen.com>
183
184         PR optimization/12628
185         * toplev.c (rest_of_handle_jump_bypass): Call reg_scan.
186         * regclass.c (reg_scan): Include allocate_reg_info time in
187         TV_REG_SCAN.  Minor clean-ups.
188         (reg_scan_update): Minor clean-ups.
189
190 2003-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
191
192         * config.gcc (s390x-ibm-tpf*): Add extra_parts.
193
194 2003-12-01  James E Wilson  <wilson@specifixinc.com>
195
196         * config/ia64/ia64.h (FUNCTION_ARG_REGNO_P): Use AR_REG_FIRST not
197         GR_ARG_FIRST.
198
199 2003-12-01  Zack Weinberg  <zack@codesourcery.com>
200
201         * common.opt: Remove -fgnu-linker.
202         * flags.h: Remove flag_gnu_linker.
203         * opts.c: Don't handle OPT_fgnu_linker.
204         * toplev.c: Don't initialize flag_gnu_linker.
205         Remove gnu-linker entry from f_options.
206         * config/dsp16xx/dsp16xx.h (OPTIMIZATION_OPTIONS):
207         Don't reset flag_gnu_linker.
208         * config/mips/mips.c (override_options): Likewise.
209         * doc/invoke.texi: Remove all mention of -fgnu-linker.
210
211 2003-12-01  Daniel Berlin  <dberlin@dberlin.org>
212
213         * ggc-zone.c (ggc_pch_write_object): Calculate object size using
214         ggc_get_size (which accounts for large objects properly).
215
216 2003-12-01  Jeff Sturm  <jsturm@one-point.com>
217
218         PR optimization/13024
219         * toplev.c (rest_of_handle_new_regalloc): Remove rebuild_notes
220         parameter.
221         (rest_of_handle_old_regalloc): Likewise.  Add rebuild_notes
222         declaration.  Rebuild jump labels following local_alloc if necessary.
223         (rest_of_compilation): Remove rebuild_label_notes_after_reload
224         declaration.  Don't pass rebuild_notes parameter to
225         rest_of_handle_new_regalloc and rest_of_handle_old_regalloc.
226         Don't rebuild jump labels.
227
228 2003-12-01  Jeff Law  <law@redhat.com>
229
230         * flow.c (count_or_remove_death_notes_bb): New.  Extracted from
231         count_or_remove_death_notes.
232         (count_or_remove_death_notes): Use EXECUTE_IF_SET_IN_SBITMAP.
233
234 2003-12-01  Andreas Krebbel  <krebbel1@de.ibm.com>
235
236         * builtins.c (expand_builtin_longjmp): Added two memory clobbers.
237
238 2003-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
239
240         * reload.c (find_reloads_address): Split addresses of type
241         (plus (plus (reg) (reg)) (const_int)) only if one register
242         is either a valid base register or else one of the stack
243         frame related registers (sp/fp/ap).
244
245 2003-12-01  Steven Bosscher  <stevenb@suse.de>
246
247         * function.c (update_epilogue_consts): Don't use PARAMS.
248         * rtl.h (web_main): Ditto.
249         * target.h (is_costly_dependence): Ditto
250
251 2003-12-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
252
253         PR middle-end/7847
254         * expr.c (expand_expr) [normal_inner_ref]: When 'offset' is non-zero,
255         do not recheck that 'op0' is a MEM.  Move comment.  When testing for
256         unaligned objects, take also into account the alignment of 'op0' and
257         'mode1' if 'op0' is a MEM.
258
259 2003-12-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
260
261         * doc/c-tree.texi (Function Bodies): Update HANDLER documentation.
262
263 2003-12-01  Kelley Cook  <kcook@gcc.gnu.org>
264
265         * doc/install.texi: Note that fastjar is built with automake 1.7.x
266         and autoconf 2.57.
267
268 2003-12-01  Alan Modra  <amodra@bigpond.net.au>
269
270         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
271         target_flags directly rather than using TARGET_* defines.
272
273 2003-11-30  Ben Elliston  <bje@wasabisystems.com>
274
275         * doschk.c: Remove.
276
277 2003-11-30  Richard Sandiford  <rsandifo@redhat.com>
278
279         PR target/12727
280         * config/mips/mips.c (mips_save_reg): Fix frame information for sdc1
281         on 32-bit big-endian targets.
282
283 2003-11-30  Kazu Hirata  <kazu@cs.umass.edu>
284
285         * genemit.c (register_constraints): Remove.
286
287 2003-11-30  Andreas Krebbel  <krebbel1@de.ibm.com>
288
289         * config/s390/s390.md ("tmdi_reg", "tmsi_reg", "*movdi_64", "*movdi_31",
290         "iordi3"): Insns now use multiple letter constraints.
291         ("*movdi_lhi", "*movdi_lli", "*movdi_lay"): Insns deleted. They are now
292         covered by "*movdi_64".
293         ("*movsi_lhi", "*movsi_lli", "*movsi_lay"): Insns deleted. They are now
294         covered by "*movsi_zarch" and "*movsi_esa".
295         ("*movsi_zarch", "*movsi_!zarch"): New insns.
296         ("*llgt_sisi_split", "*llgt_didi_split"): Insns deleted. Now covered
297         by "*andsi3_zarch" and "anddi3".
298         ("*anddi3_ni"): Insn merged with "anddi3".
299         ("*andsi3_ni"): Insn merged with "*andsi3_zarch".
300         ("*andsi3_zarch", "*andsi3_esa"): New insns.
301         ("*iordi3_oi"): Insn merged with "iordi3".
302         ("*iorsi3_oi"): Insn merged with "*iorsi3_zarch".
303         ("*iorsi3_zarch", "*iorsi3_esa"): New insns.
304
305         * config/s390/s390.c (s390_single_qi, s390_single_hi): Functions
306         merged to s390_single_part.
307         (s390_single_part): New function.
308         NOTE: Semantics have changed a bit. Now the value of the part must
309         be different from the others to get a non-negative return value.
310         (s390_extract_qi, s390_extract_hi): Functions merged to
311         s390_extract_part.
312         (s390_extract_part, s390_extra_constraint_str,
313         s390_const_ok_for_constraint_p): New functions. The L constraint got a
314         new meaning and the N constraint was added as a multiple letter
315         constraint.
316         (s390_extra_constraint): Function deleted.
317         (print_operand): New output modifier 'i' and 'j' added.
318         All uses of CONST_OK_FOR_LETTER_P were replaced by
319         CONST_OK_FOR_CONSTRAINT_P.
320
321         * config/s390/s390-protos.h: Function prototypes adapted.
322         * doc/md.texi: Documentation for new constraint letters added.
323
324 2003-11-30  Andreas Schwab  <schwab@suse.de>
325
326         * Makefile.in ($(DESTDIR)$(infodir)/%.info): Fix missing semicolon.
327
328 2003-11-29  James E Wilson  <wilson@specifixinc.com>
329
330         * gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name
331         instead of in shared_name.
332
333         * final.c (final_start_function): Delete code for NON_SAVING_SETJMP.
334         * reload1.c (reload): Re-add it here.
335
336 2003-11-30  Alan Modra  <amodra@bigpond.net.au>
337
338         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Don't
339         set SECTION_WRITE on TARGET_RELOCATABLE.
340
341 2003-11-29  Kazu Hirata  <kazu@cs.umass.edu>
342
343         * config/h8300/h8300.h (LIBCALL_VALUE): Use R0_REG.
344
345 2003-11-28  Gunther Nikl  <gni@gecko.de>
346
347         * config/m68k/m68k.c (MOTOROLA): Move from here...
348         * config/m68k/m68k.h (MOTOROLA): ... to here.
349         (OUTPUT_JUMP): Use do {...} while (0).
350         * config/m68k/m68k.md: Replace #ifdef MOTOROLA with C statements.
351
352 2003-11-28  Gunther Nikl  <gni@gecko.de>
353
354         * config.gcc (m68020-*-elf*, m68k-*-elf*, m68010-*-netbsdelf*,
355         m68k*-*-netbsdelf*, m68k-*-rtems*): Add tm_defines containing
356         MOTOROLA and USE_GAS.
357         * config/m68k/rtemself.h (MOTOROLA): Delete.
358         * config/m68k/netbsd-elf.h (MOTOROLA, USE_GAS): Delete.
359         * config/m68k/m68kelf.h (MOTOROLA, USE_GAS, SGS_CMP_ORDER): Delete.
360
361 2003-11-29  Kazu Hirata  <kazu@cs.umass.edu>
362
363         * config/h8300/h8300.h (WORDS_BIG_ENDIAN): Update the comment.
364
365 2003-11-29  Kelley Cook  <kcook@gcc.gnu.org>
366
367         * Makefile.in (install-info): Install gccinstall.info too.
368
369 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
370
371         * config/s390/s390.md ("cmpint_di"): Fix incorrect instruction lengths.
372
373 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
374
375         * config/s390/s390.md ("movhi"): Do not emit extender pattern
376         when loading from a (MEM (ADDRESSOF ...)).
377         ("movqi"): Likewise.
378
379 2003-11-29  Joseph S. Myers  <jsm@polyomino.org.uk>
380
381         PR c/10333
382         * c-parse.in (typespec_reserved_nonattr): Reject typeof on
383         bit-fields.
384
385 2003-11-29  Richard Sandiford  <rsandifo@redhat.com>
386
387         * stmt.c (expand_asm_operands): Check whether force_const_mem
388         succeeded.
389
390 2003-11-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
391
392         * config/gnu.h (HURD_TARGET_OS_CPP_BUILTINS): New.
393         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): New.
394
395         * config/alpha/gnu.h, config/alpha/linux.h,
396         config/arm/linux-elf.h, config/cris/cris.h, config/cris/linux.h,
397         config/i370/linux.h, config/i386/gnu.h, config/i386/i386.h,
398         config/i386/linux-aout.h, config/i386/linux.h,
399         config/i386/linux64.h, config/ia64/linux.h, config/m68k/linux.h,
400         config/m68k/uclinux.h, config/mips/linux.h,
401         config/mn10300/linux.h, config/pa/pa-linux.h,
402         config/rs6000/sysv4.h, config/s390/linux.h, config/sh/linux.h,
403         config/sparc/linux.h, config/sparc/linux64.h,
404         config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Use
405         HURD_TARGET_OS_CPP_BUILTINS/LINUX_TARGET_OS_CPP_BUILTINS or ensure
406         all necessary assertions are included.
407
408 2003-11-28  Jan Hubicka  <jh@suse.cz>
409
410         * emit-rtl.c (set_used_flags): New.
411         (verify_rtx_sharing, verify_rtl_sharing): New.
412         (unshare_all_rtl_1): Rename to....
413         (unshare_all_rtl_in_chain): ... this one; make static.
414         (copy_rtx_if_shared): LABEL_REF chan be shared.
415         * ifcvt.c (unshare_ifcvt_sequence): New.
416         (noce_try_move, noce_try_store_flag, noce_try_store_flag_constants,
417         noce_try_addcc, noce_try_addcc, noce_try_store_flag_mask,
418         noce_try_cmove, noce_try_store_flag_mask, noce_try_minmax,
419         noce_try_abs, noce_process_if_block, find_cond_trap
420         * rtl.h (verify_rtl_sharing, set_used_flags, unshare_all_rtl_in_chain):
421         Declare.
422
423 2003-11-28  Kazu Hirata  <kazu@cs.umass.edu>
424
425         * config/h8300/h8300.md: Fix a comment typo.
426
427 2003-11-28  Kazu Hirata  <kazu@cs.umass.edu>
428
429         * config/h8300/h8300.md (*movsf_h8300h): Change to
430         *movsf_h8300hs.
431         (addsi_h8300): Change to *addsi_h8300.
432         (addsi_h8300h): Change to *addsi_h8300hs.
433         (subsi3_h8300): Change to *subsi3_h8300.
434         (subsi3_h8300h): Change to *subsi3_h8300hs.
435         (neghi2_h8300h): Change to *neghi2_h8300hs.
436         (negsi2_h8300h): Change to *negsi2_h8300hs.
437
438 2003-11-28  Kazu Hirata  <kazu@cs.umass.edu>
439
440         * config/h8300/h8300.md (*subhi3_h8300): Remove '&' from the
441         constraint.
442         (*subhi3_h8300hs): Likewise.
443
444 2003-11-28  David Edelsohn  <edelsohn@gnu.org>
445
446         * config/rs6000/rs6000.h (MASK_MFCRF): New.
447         (TARGET_MFCRF): Test target_flags, not processor type.
448         (TARGET_SWITCHES): Add mfcrf and no-mfcrf.
449         Change Don't to Do not.
450         * config/rs6000/rs6000.c (processors_target_table): Add MASK_MFCRF
451         to power4, 970, G5.
452
453 2003-11-27  J"orn Rennecke <joern.rennecke@superh.com>
454
455         * cse.c (cse_set_around_loop): When changing a constant load
456         to a register -register copy, add a REG_EQUAL note.
457
458 2003-11-27  Randolph Chung  <tausq@debian.org>
459             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
460
461         * pa.c (hppa_profile_hook): Split gen_call_profiler into separate
462         insns.  Use the regular call expander for the call to the profiler.
463         * pa.md (call_profiler): Delete.
464         (load_offset_label_address): New insn to load the address of the
465         current function for the profiler.
466         (lcla1, lcla2): New insns to output a code label and load its address.
467
468 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
469
470         * final.c (final_scan_insn): Remove commented-out code.
471
472 2003-11-27  Nathanael Nerode  <neroden@gcc.gnu.org>
473
474         * doc/install.texi: Remove ADAC reference and make accurate.
475
476 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
477
478         * config/h8300/h8300.h (FUNCTION_VALUE): Use R0_REG.
479         (FUNCTION_VALUE_REGNO_P): Likewise.
480         * config/h8300/h8300.md: Define R0_REG.
481
482 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
483
484         * config/h8300/h8300.c: Fix formatting.
485         * config/h8300/h8300.md: Likewise.
486
487 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
488
489         * config/h8300/h8300.h (ELIMINABLE_REGS): Update a comment.
490
491 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
492
493         * config/h8300/h8300.md: Give names to anonymous insns.
494
495 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
496
497         * config/h8300/h8300.md (extendqisi2): Remove constraints.
498
499 2003-11-27  Gunther Nikl  <gni@gecko.de>
500
501         * doc/tm.texi (SYSROOT_HEADERS_SUFFIX_SPEC): Fix typo.
502
503 2003-11-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
504
505         PR optimization/13041
506         * final.c (frame_pointer_needed): Fix comment.
507         * reload1.c (reload): Decrease alignment of the frame
508         pointer if it was used for register allocation.
509
510 2003-11-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
511
512         PR target/12900
513         * reg-stack (move_for_stack_reg): New prototype.  Return
514         whether a control flow insn was deleted.
515         (subst_stack_regs_pat): Likewise, using the information provided
516         by move_for_stack_reg.
517         (subst_stack_regs): Likewise, using the information provided
518         by subst_stack_regs_pat.
519         (convert_regs_1): Record whether a control flow insn was deleted,
520         using the information provided by subst_stack_regs.  Purge dead
521         edges only if a control flow insn was deleted.
522
523 2003-11-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
524
525         PR middle-end/8028
526         PR middle-end/9890
527         PR middle-end/11151
528         PR middle-end/12210
529         PR middle-end/12503
530         PR middle-end/12692
531         * builtins.c (expand_builtin_apply): Use virtual_outgoing_args_rtx
532         as the base address to copy the memory arguments to.
533
534 2003-11-26  Danny Smith  <dannysmith@users.sourceforge.net>
535
536         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Declare
537         function aliases as functions.
538
539 2003-11-26  Nathanael Nerode  <neroden@gcc.gnu.org>
540
541         * aclocal.m4 (gcc_AC_PROG_GNAT): Rewrite to account for removal
542         of ADAC.
543         * configure: Regenerate.
544
545         * Makefile.in: Remove references to ADAC.
546
547         * configure.in: Remove check for whether ${ADAC} accepts -Wno-long-long.
548         * configure: Regenerate.
549
550 2003-11-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
551             Olivier Hainque  <hainque@act-europe.fr>
552
553         PR target/6466
554         * config/sparc/sparc-protos.h (compute_frame_size): New prototype.
555         (sparc_flat_compute_frame_size): Likewise.
556         (sparc_flat_save_restore): Move prototype...
557         * config/sparc/sparc.c (sparc_flat_save_restore): ...here.
558         (save_regs): New prototype.
559         (build_big_number): Likewise.
560         (apparent_fsize): Change type to HOST_WIDE_INT.
561         (actual_fsize): Likewise.
562         (frame_base_offset): Likewise.
563         (build_big_number): Add support for HOST_BITS_PER_WIDE_INT == 64.
564         Change string descriptor to HOST_WIDE_INT_PRINT_DEC.
565         [TARGET_ARCH64]: Use the sequence of sparc_emit_set_const64_longway
566         to load a 64-bit constant.
567         (sparc_nonflat_function_prologue): Change string descriptor to
568         HOST_WIDE_INT_PRINT_DEC.  Change offset type to HOST_WIDE_INT.
569         (output_restore_regs): Change offset type to HOST_WIDE_INT.
570         (sparc_nonflat_function_epilogue): Change string descriptor to
571         HOST_WIDE_INT_PRINT_DEC.  Use build_big_number.
572         (output_sibcall): Change size type to HOST_WIDE_INT.  Use
573         build_big_number.  Change string descriptor to HOST_WIDE_INT_PRINT_DEC.
574         (sparc_frame_info): Change types for several components.
575         (sparc_flat_compute_frame_size): Update types according to previous
576         change.
577         (sparc_flat_function_prologue): Change string descriptor to
578         HOST_WIDE_INT_PRINT_DEC.  Change offset type to int.  Use
579         build_big_number.
580         (sparc_flat_function_epilogue): Change offset type to int.
581         Rename 'size1' into 'reg_offset1'.  Change string descriptor to
582         HOST_WIDE_INT_PRINT_DEC.  Use build_big_number.  Change big number
583         limit to 4096 instead of 4095.
584
585         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Change offset type to
586         HOST_WIDE_INT.
587
588 2003-11-24  Waldek Hebisch <hebisch@math.uni.wroc.pl>
589
590         * function.c: Make outer_function-chain external.
591         * function.h: Likewise.
592
593 2003-11-24  Richard Sandiford  <rsandifo@redhat.com>
594
595         * config.gcc (mips-sgi-irix6*): Add t-iris6gld to tmake_file when
596         using GNU ld.
597         * config/mips/iris6.h (IRIX6_STARTFILE_SPEC): New, taking the
598         whole of the previous STARTFILE_SPEC except crtbegin.o%s.
599         (IRIX6_ENDFILE_SPEC): Likewise ENDFILE_SPEC and crtend.o%s.
600         (STARTFILE_SPEC, ENDFILE_SPEC): Define in terms of the above.
601         (SUBTARGET_EXTRA_SPECS): Define.
602         * config/mips/iris6gld.h (LINK_SPEC): Change -init function
603         to __gcc_init and -fini function to __gcc_fini.
604         (STARTFILE_SPEC): Redefine, including irix6-crti.o before crtbegin.o.
605         (ENDFILE_SPEC): Likewise, including irix6-crtn.o after crtend.o.
606         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Define.
607         * config/mips/t-iris6gld,
608         * config/mips/irix6-crti.asm,
609         * config/mips/irix6-crtn.asm: New files.
610
611 2003-11-24  Eric Christopher  <echristo@redhat.com>
612
613         PR C/13014
614         * c-decl.c (c_in_iteration_stmt, c_in_case_stmt): New.
615         (start_function): Use.
616         (c_push_function_context): Ditto.
617         (c-pop_function_context): Ditto.
618         (language_function): Move...
619         * c-tree.h: ... here. Add x_in_iteration_stmt, and
620         x_in_case_stmt.
621         * c-parse.in (do_stmt_start, select_or_iter_stmt, stmt): Use
622         c_in_iteration_stmt, c_in_case_stmt for parser state. Move
623         check for valid break or continue statment here...
624         * c-semantics.c (genrtl_break_stmt, genrtl_continue_stmt): From
625         here. Change original errors to abort.
626
627 2003-11-24  Jan Hubicka  <jh@suse.cz>
628
629         * fold-const.c (fold):  Do not return early when optimizing
630         COMPONENT_REF and constant.
631
632 2003-11-24  Kazu Hirata  <kazu@cs.umass.edu>
633
634         * config/h8300/h8300.md (tablejump_h8300): Change to
635         *tablejump_h8300.
636         (tablejump_h8300h): Change to *tablejump_h8300hs_advanced.
637         (tablejump_normal_mode): Change to *tablejump_h8300hs_normal.
638         (indirect_jump_h8300): Change to *indirect_jump_h8300.
639         (indirect_jump_h8300h): Change to
640         *indirect_jump_h8300hs_advanced.
641         (indirect_jump_normal_mode): Change to
642         *indirect_jump_h8300hs_normal.
643
644 2003-11-24  Kazu Hirata  <kazu@cs.umass.edu>
645
646         * config/h8300/h8300.md: Remove constraints from expanders.
647
648 2003-11-24  Kazu Hirata  <kazu@cs.umass.edu>
649
650         * config/h8300/h8300.md: (stm_h8300s_2): Change the name to
651         stm_h8300s_2_advanced.
652         (stm_h8300s_2_normal): New.
653         (stm_h8300s_2): Likewise.
654         (stm_h8300s_3): Change the name to stm_h8300s_3_advanced.
655         (stm_h8300s_3_normal): New.
656         (stm_h8300s_3): Likewise.
657         (stm_h8300s_4): Change the name to stm_h8300s_4_advanced.
658         (stm_h8300s_4_normal): New.
659         (stm_h8300s_4): Likewise.
660         (ldm_h8300s_2): Change the name to ldm_h8300s_2_advanced.
661         (ldm_h8300s_2_normal): New.
662         (ldm_h8300s_2): Likewise.
663         (ldm_h8300s_3): Change the name to ldm_h8300s_3_advanced.
664         (ldm_h8300s_3_normal): New.
665         (ldm_h8300s_3): Likewise.
666         (ldm_h8300s_4): Change the name to ldm_h8300s_4_advanced.
667         (ldm_h8300s_4_normal): New.
668         (ldm_h8300s_4): Likewise.
669         (two peephole2's): Enable only with !TARGET_NORMAL_MODE.
670         (two peephole2's): New.
671
672 2003-11-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
673
674         * genattrtab.c (simplify_cond): Update indices correctly.
675         (attr_alt_subset_p, attr_alt_subset_of_compl_p, attr_alt_intersection,
676         attr_alt_union, attr_alt_complement, attr_alt_bit_p, mk_attr_alt): New.
677         (check_attr_test, encode_units_mask, compute_alternative_mask,
678         make_alternative_compare, simplify_and_tree,
679         attr_rtx_cost, simplify_test_exp, gen_attr,
680         write_test_expr, walk_attr_value): Handle EQ_ATTR_ALT.
681         * rtl.def (EQ_ATTR_ALT): New.
682
683 2003-11-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
684
685         * genattrtab.c (strcmp_check, DEF_ATTR_STRING): New macros.
686         (length_str, delay_type_str, delay_1_0_str, num_delay_slots_str):
687         New variables.
688         (main): Initialize them.
689         (find_attr): Canonicalize the attribute name string.
690         (attr_rtx_1, copy_boolean, expand_delays, gen_unit): Always canonicalize
691         string arguments.
692         (attr_printf, attr_eq): Use DEF_ATTR_STRING.
693         (check_attr_test, check_attr_value, make_length_attrs,
694         write_length_unit_log, simplify_by_exploding, gen_attr,
695         write_test_expr, write_attr_value, write_eligible_delay,
696         write_complex_function, make_internal_attr,
697         write_const_num_delay_slots): Changed due to change of type of
698         find_attr.
699         (fill_attr, evaluate_eq_attr, simplify_and_tree,
700         attr_rtx_cost, simplify_by_exploding, walk_attr_value): Use
701         strcmp_check.
702
703 2003-11-23  Kazu Hirata  <kazu@cs.umass.edu>
704
705         PR target/13122
706         * config/h8300/h8300.c (push): Call push_h8300hs_normal in
707         normal mode.
708         (pop): Call pop_h8300hs_normal in normal mode.
709         * config/h8300/h8300.md: Likewise.
710         (pushqi1_h8300hs_normal): New.
711         (pushqi1): Call pushqi1_h8300hs_normal in normal mode.
712         (pushhi1_h8300hs_normal): New.
713         (pushhi1): Call pushhi1_h8300hs_normal in normal mode.
714         (push_h8300hs_normal): New.
715         (pop_h8300hs_normal): Likewise.
716
717 2003-11-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
718
719         * genattrtab.c (count_sub_rtxs): Removed.
720
721 2003-11-23  Richard Earnshaw  <rearnsha@arm.com>
722
723         * recog.c (preprocess_constraints): Only zero those elements of
724         recog_op_alt that are needed for this insn.
725         * arm.c (note_invalid_constants): A function can't contain invalid
726         constants if it has no constraints.
727
728 2003-11-22  Jan Hubicka  <jh@suse.cz>
729
730         * i386.c (classify_argument): Pass __float128 in memory.
731         (ix86_return_in_memory): Likewise.
732         (ix86_libcall_value): Likewsie.
733
734 2003-11-22  Kazu Hirata  <kazu@cs.umass.edu>
735
736         * config/h8300/h8300.c (dosize): Convert to ISO-C.
737
738 2003-11-22  J"orn Rennecke <joern.rennecke@superh.com>
739
740         * flow.c (update_life_info): Amend comment about when a register
741         can become dead.
742
743 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
744
745         * doc/.cvsignore: Delete.
746
747 2003-11-21  Daniel Berlin  <dberlin@dberlin.org>
748             David Edelsohn  <edelsohn@gnu.org>
749
750         * dwarf2out.c (add_location_or_const_value_attribute): Add support
751         for PARALLEL.
752
753 2003-11-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
754
755         * config/mips/t-iris6 (CRTSTUFF_T_CFLAGS): Add -Wno-error.
756         (TARGET_LIBGCC2_CFLAGS): Define.
757
758         * crtstuff.c [HAS_INIT_SECTION] (__do_global_dtors): Declare.
759         (__do_global_ctors): Likewise.
760
761 2003-11-21  Mark Wielaard  <mark@klomp.org>
762
763         * doc/invoke.texi (-O2): Doesn't enable -fweb.
764
765 2003-11-21  Kazu Hirata  <kazu@cs.umass.edu>
766
767         * doc/invoke.texi: Mention dV and dZ.
768
769 2003-11-21  Kazu Hirata  <kazu@cs.umass.edu>
770
771         * doc/invoke.texi: Update dump file names.
772         Remove de, dW, and dX.
773
774 2003-11-20  James E Wilson  <wilson@specifixinc.com>
775
776         PR c/13133
777         * reload1.c (reload): Delete special handling for setjmp.
778
779 2003-11-21  Andreas Tobler  <a.tobler@schweiz.ch>
780
781         * mklibgcc.in: Evaluate shlib_slibdir_qual during link
782         step too.
783         * config/t-slibgcc-darwin: Adjust install path.
784         * config/rs6000/t-darwin: Revert multilib matches since
785         it is not used on darwin.
786
787 2003-11-20  Richard Henderson  <rth@redhat.com>
788
789         * ssa.c, ssa-dce.c, ssa-ccp.c: Remove files.
790         * Makefile.in (OBJS-common, GTFILES): Don't reference them.
791         (gtype-desc.o, toplev.o, flow.o): Remove ssa.h.
792         (ssa.o, ssa-dce.o, ssa-ccp.o): Remove.
793         * flow.c: Don't include ssa.h.
794         (set_phi_alternative_reg): Remove.
795         (calculate_global_regs_live): Don't call it.
796         (mark_used_regs): Don't handle PHI.
797         * gengtype.c (open_base_files): Don't reference ssa.h.
798         * rtl.def (PHI): Remove.
799         * timevar.def (TV_TO_SSA, TV_SSA_CCP, TV_SSA_DCE, TV_FROM_SSA): Kill.
800         * common.opt: Remove -fssa, -fssa-ccp, -fssa-dce.
801         * opts.c (common_handle_option): Likewise.
802         * toplev.c (f_options): Likewise.
803         (DFI_ssa, DFI_ssa_ccp, DFI_ssa_dce, DFI_ussa): Remove.
804         (dump_file): Update to match.
805         (flag_ssa, flag_ssa_ccp, flag_ssa_dce): Remove.
806         (rest_of_handle_ssa): Remove.
807         (rest_of_compilation): Don't call it.
808         * toplev.h (flag_ssa, flag_ssa_dce, flag_ssa_ccp): Remove.
809         * doc/invoke.texi: Remove -fssa, -fssa-ccp, -fssa-dce.
810         * doc/passes.texi (SSA optimizations): Remove.
811
812 2003-11-20  Bob Wilson  <bob.wilson@acm.org>
813
814         * configure.in: Add xtensa-*-* targets to test for dwarf2 debug_line.
815         * configure: Regenerate.
816
817 2003-11-20  Kelley Cook  <kcook@gcc.gnu.org>
818
819         * Makefile.in (Makefile): Pass along CONFIG_SHELL.
820
821 2003-11-20 David Mosberger  <davidm@hpl.hp.com>
822
823         * config/t-libunwind (LIB2ADDEH): Add unwind-c.c.
824         (SHLIB_LC): Define.
825         * unwind-libunwind.c (_Unwind_GetCFA): Implement.
826         (_Unwind_GetBSP) [UNW_TARGET_IA64]: New function.
827
828 2003-11-20  Fariborz Jahanian  <fjahanian@apple.com>
829             David Edelsohn  <edelsohn@gnu.org>
830
831         * calls.c (expand_call): Allocate new temp in pass1.
832         (store_one_arg): If PARALLEL, calculate excess using mode size of
833         rtvec elt.
834         * expr.c (emit_push_insn): If PARALLEL, calculate offset using
835         mode size of rtvec elt.
836         * function.c (assign_parms): Use parm in register, if available.
837
838 2003-11-20  Kazu Hirata  <kazu@cs.umass.edu>
839
840         * config/h8300/lib1funcs.asm (MOVP): Remove.
841         (ADDP): Likewise.
842         (CMPP): Likewise.
843
844 2003-11-20  Richard Earnshaw  <rearnsha@arm.com>
845
846         * arm.c (use_return_insn): New argument, SIBLING.  Support returning
847         with a single instruction if the stack has been decremented by 4
848         and we have a frame pointer.  Update all callers.
849         (output_return_instruction): Likewise.
850         (arm_output_epilogue): Change argument to SIBLING.  Calculate
851         really_return from the new argument.  Update all callers.
852         * arm.h (USE_RETURN_INSN): Pass NULL for the sibling.
853         * arm.md (sibcall_epilogue): Call use_return_insn directly, and
854         pass the sibling call.
855         * arm-protos.h (use_return_insn, arm_output_epilogue): Update
856         prototypes.
857
858 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
859
860         * Makefile.in (extraclean): Delete.
861         * configure.in (target_list): Remove extraclean.
862         * configure: Regenerate.
863         * doc/makefile.texi, doc/sourcebuild.texi: Update.
864         * objc/Make-lang.in (objc.extraclean): Delete.
865
866 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
867
868         * Makefile.in (lang_checks): Add.
869         (check-c++, check-f77, check-java, check-g++, check-g77,
870         check-objc): Remove hardcoded targets.
871         * doc/sourcebuild.texi: Document testsuite hooks.
872         * objc/Make-lang.in (check-objc, lang_checks): Add.
873
874 2003-11-19  Scott Snyder  <snyder@fnal.gov>
875
876         PR target/13131
877         * dwarf2out.c (gen_array_type_die): DW_AT_declaration should be a
878         flag, not a constant.
879
880 2003-11-19  Kelley Cook  <kcook@gcc.gnu.org>
881
882         * config/arc/arc-protos.h: Update to C90 prototypes.
883         * config/arc/arc.c: Likewise.
884         * config/arc/initfini.c: Likewise.
885
886 2003-11-19  Andreas Krebbel  <krebbel1@de.ibm.com>
887
888         * stmt.c (expand_goto): Memory clobbers added.
889
890 2003-11-19  Andreas Krebbel  <krebbel1@de.ibm.com>
891
892         * reload.c (find_reloads): Added missing type casts.
893
894 2003-11-19  James E Wilson  <wilson@specifixinc.com>
895
896         * combine.c (sets_function_arg_p): Delete unused function.
897
898 2003-11-19  Eric Christopher  <echristo@redhat.com>
899
900         * reload1.c (reload): Revert 2 previous checkins.
901
902 2003-11-19  Nathanael Nerode  <neroden@gcc.gnu.org>
903
904         * cpptrad.c (_cpp_scan_out_logical_line): Improve test for
905         whether directive begins at the beginning of a line.
906
907 2003-11-19  Richard Sandiford  <rsandifo@redhat.com>
908
909         * config/frv/frv.c (frv_init_libfuncs): Correct ufix_optab entries.
910
911 2003-11-19  Gerald Pfeifer  <gp@suse.de>
912
913         * doc/install.texi (Specific): Remove information on old versions
914         of glibc versus old versions of GCC.
915
916 2003-11-19  Richard SAndiford  <rsandifo@redhat.com>
917
918         * emit-rtl.c (gen_lowpart): Don't force MEMs into a register unless
919         the register lowpart is a TRULY_NOOP_TRUNCATION.
920
921 2003-11-19  Richard Henderson  <rth@redhat.com>
922
923         * config/i386/i386.c (print_reg): Handle QI and HI modes for
924         non Q regs.
925
926 2003-11-19  Andreas Tobler  <a.tobler@schweiz.ch>
927
928         * config/config.gcc (powerpc-*-darwin*): Add libgcc build
929         specification file.
930         * config/t-slibgcc-darwin: New file, libgcc build specification.
931         * config/t-darwin: Add libgcc2 flag -fPIC.
932         * config/rs6000/t-darwin: Multilib matches float.
933         * libgcc-darwin.ver: New file, contains libgcc symbols.
934
935 2003-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
936
937         * config/ns32k/ns32k.h: Remove obsolete comment.
938
939 2003-11-18  Roger Sayle  <roger@eyesopen.com>
940
941         PR middle-end/11821
942         * config/arm/arm.c (arm_rtx_costs_1): Improve estimate of the code
943         size for calls to libgcc's div & mod subroutines when using -Os.
944
945 2003-11-18  Jan Hubicka  <jh@suse.cz>
946
947         * cgraph.c (change_decl_assembler_name): Avoid bogus warnings.
948
949 2003-11-18  Marc Espie  <espie@openbsd.org>
950
951         * config/rs6000/sysv4.h: OpenBSD hooks.
952
953 2003-11-18  Richard Henderson  <rth@redhat.com>
954
955         * expr.c (expand_expr): Don't look through constant arrays if
956         they don't bind locally.
957
958 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
959
960         * expr.c (convert_move): Use GET_MODE_PRECISION instead of bitsize
961         when seeing if truncation or extension.
962
963 2003-11-17  Eric Christopher  <echristo@redhat.com>
964
965         * reload1.c (reload): Fix previous change.
966
967 2003-11-17  Scott Snyder  <snyder@fnal.gov>
968
969         PR debug/11325
970         * dwarf2out.c (struct die_struct): Add die_definition field.
971         (add_AT_specification): New.
972         (gen_subprogram_die, gen_variable_die,
973         gen_struct_or_union_type_die): Use it.
974         (prune_unused_types_mark): If we're marking a forward declaration,
975         also mark the full definition, if it exists.
976
977 2003-11-16  Nick Clifton  <nickc@redhat.com>
978
979         * config/stormy16/stormy16.h (BUILD_VA_LIST_TYPE): Delete.
980         * config/stormy16/stormy16-protos.h (xstormy16_build_va_list):
981         Remove prototype.
982         * config/stormy16/stormy16.c (xstormy16_build_va_list): Rename
983         to xstormy16_build_builtin_va_list and make static.
984         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
985
986 2003-11-16  Kazu Hirata  <kazu@cs.umass.edu>
987
988         * config/h8300/h8300-protos.h: Add the prototype for
989         same_cmp_following_p.
990         * config/h8300/h8300.c (same_cmp_following_p): New.
991         * config/h8300/h8300.md (peephole2): Use it.
992
993 2003-11-16  Kazu Hirata  <kazu@cs.umass.edu>
994
995         * config/h8300/h8300.md: Don't use REGNO when its operand is
996         not guaranteed to be a REG.
997
998 2003-11-16  Richard Sandiford  <rsandifo@redhat.com>
999
1000         * Makefile.in (expr.o): Depend on $(TARGET_H).
1001         * target.h (return_in_msb): New target hook.
1002         * target-def.h (TARGET_RETURN_IN_MSB): New macro.
1003         (TARGET_CALLS): Include it.
1004         * calls.c (shift_returned_value): New function.
1005         (expand_call): Use it.
1006         * expr.c: Include target.h.
1007         (copy_blkmode_from_reg): Check targetm.calls.return_in_msb when
1008         deciding what padding is needed.  Change the name of the local
1009         padding variable from big_endian_correction to padding_correction.
1010         * stmt.c (shift_return_value): New function.
1011         (expand_return): Use it.  Adjust memory->register copy in the same
1012         way as copy_blkmode_from_reg.  Only change the return register's
1013         mode if it was originally BLKmode.
1014         * doc/tm.texi (TARGET_RETURN_IN_MSB): Document.
1015         * config/mips/mips.c (TARGET_RETURN_IN_MSB): Define.
1016         (mips_fpr_return_fields): New, split out from mips_function_value.
1017         (mips_return_in_msb, mips_return_fpr_pair): New functions.
1018         (mips_function_value): Rework to use the functions above.
1019         * config/mips/irix6-libc-compat.c: Delete.
1020         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Undefine.
1021
1022 2003-11-16  Kazu Hirata  <kazu@cs.umass.edu>
1023
1024         * doc/install.texi (--enable-checking): Update valgrind's URL.
1025
1026 2003-11-16  Kazu Hirata  <kazu@cs.umass.edu>
1027
1028         * config/h8300/h8300.md: Fix warnings by replacing -2147483648
1029         with -2147483647 - 1.
1030
1031 2003-11-16  Gerald Pfeifer  <gerald@pfeifer.com>
1032
1033         Fix links in online manuals.
1034         * doc/invoke.texi (H8/300 Options): @xref to ld, not ld.info.
1035         (Precompiled Headers): @pxref to cpp, not cpp.info.
1036
1037 2003-11-16  Jason Merrill  <jason@redhat.com>
1038
1039         * Makefile.in, objc/Make-lang.in (objc.tags): Create TAGS.sub
1040         files in each directory and TAGS files that include them for each
1041         front end.
1042
1043 2003-11-15  Kazu Hirata  <kazu@cs.umass.edu>
1044
1045         * config/h8300/lib1funcs.asm (divnorm): Store the sign in bit
1046         3 of S2L.
1047         (modnorm): Likewise.
1048         (exitdiv): Look at bit 3 of S2L only.
1049
1050 2003-11-15  Kazu Hirata  <kazu@cs.umass.edu>
1051
1052         * config/h8300/h8300.h (DO_GLOBAL_CTORS_BODY): Fix warnings.
1053         (DO_GLOBAL_DTORS_BODY): Likewise.
1054
1055 2003-11-15  Joseph S. Myers  <jsm@polyomino.org.uk>
1056
1057         * doc/install.texi (Prerequisites): Refine documentation of
1058         autoconf, automake and perl requirements.  Document required
1059         gettext version.
1060
1061 <2003-11-14  Jason Merrill  <jason@redhat.com>
1062
1063         * function.c (assign_parms): Use TREE_TYPE to determine the real
1064         type of the argument object.
1065
1066 2003-11-14  Kazu Hirata  <kazu@cs.umass.edu>
1067
1068         * config/h8300/lib1funcs.asm (___udivsi3): Peel off the first
1069         iteration.
1070
1071 2003-11-14  Fariborz Jahanian <fjahanian@apple.com>
1072
1073         * config/rs6000/rs6000.c (rs6000_move_block_from_reg):
1074           New routine to save vararg registers on stack. Support for
1075           -mpowerpc64 in mixed mode.
1076
1077 2003-11-14  Bernardo Innocenti  <bernie@develer.com>
1078
1079         * config/m68k/m68k.c: Use C statements instead of #ifdef's when testing
1080         for MOTOROLA versus MIT syntax.  Improves readability and provides
1081         better compile-time error checking for both code paths.
1082
1083 2003-11-14  Kelley Cook  <kcook@gcc.gnu.org>
1084
1085         * config/frv/frv-protos.h: Update for C90.
1086         * config/frv/frv.h: Likewise.
1087         * config/frv/frvbegin.c: Likewise.
1088         * config/frv/frv.c: Likewise.
1089         (frv_adjust_field_align): Delete unused variable.
1090
1091 2003-11-14  Geoffrey Keating  <geoffk@apple.com>
1092
1093         * config/rs6000/rs6000.md: Add 'DEFAULT_ABI == ABI_DARWIN'
1094         to each place where TARGET_LONG_DOUBLE_128 is used with
1095         DEFAULT_ABI == ABI_AIX.
1096
1097         * cppfiles.c (_cpp_find_file): Make 'one or more PCH files were found'
1098         message comply with GNU standards.
1099
1100 2003-11-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1101
1102         PR/6552
1103         * function.c (struct epi_info): New field const_equiv.
1104         (update_epilogue_consts): New function.
1105         (keep_stack_depressed): Clear new field and verify scratch register
1106         doesn't have it set.
1107         Call new function via note_stores.
1108         (handle_epilogue_set): Allow setting SP equiv reg in different mode.
1109         Allow PLUS where second operand is register known set to constant.
1110         (emit_equiv_load): Write load using proper mode if source different.
1111         * config/mips/mips.md (return_internal): Put (return) first.
1112
1113 2003-11-14  Kazu Hirata  <kazu@cs.umass.edu>
1114
1115         * config/h8300/lib1funcs.asm (___udivsi3): Add a comment.
1116
1117 2003-11-14  Kazu Hirata  <kazu@cs.umass.edu>
1118
1119         * config/h8300/lib1funcs.asm (modsi3): Don't save unused
1120         registers.
1121         (divsi3): Likewise.
1122         (reti): Don't restore unused registers.
1123
1124 2003-11-14  Nick Clifton  <nickc@redhat.com>
1125
1126         * config/fr30/fr30.c: Include toplev.h
1127
1128 2003-11-14  Richard Earnshaw  <rearnsha@arm.com>
1129
1130         * except.c (sjlj_emit_function_enter): Mark internal label as LOCAL.
1131
1132 2003-11-14  Richard Earnshaw  <rearnsha@arm.com>
1133
1134         * arm.c (arm_emit_vector_const, arm_output_load_gr): Use ISO C
1135         function definition syntax.
1136
1137 2003-11-14  Eric Christopher  <echristo@redhat.com>
1138
1139         * reload1.c (reload): Revert previous patch. Make
1140         check for assignment into reg_equiv_address stricter.
1141
1142 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
1143
1144         * Makefile.in (POSTSTAGE1_FLAGS_TO_PASS): Pass ADAFLAGS.
1145
1146 2003-11-14  Richard Sandiford  <rsandifo@redhat.com>
1147
1148         * config/frv/frv.c (frv_in_small_data_p): Return false for unknown
1149         section names.
1150
1151 2003-11-14  Jason Merrill  <jason@redhat.com>
1152
1153         PR middle-end/12526
1154         * tree.c (build): A CALL_EXPR has side-effects if its arguments do.
1155         * calls.c (call_expr_flags): New fn.
1156         * tree.h: Declare it.
1157
1158 2003-11-13  Kazu Hirata  <kazu@cs.umass.edu>
1159
1160         * config/h8300/lib1funcs.asm (__udivsi3): Remove.
1161         (divmodsi3): Change the name to ___udivsi3.
1162         Update all callers.
1163
1164 2003-11-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1165
1166         * libgcc2.c (__negdi2, __addvsi3, __addvdi3, __subvsi3, __subvdi3,
1167         __mulvsi3, __negvsi2, __negvdi2, __mulvdi3, __lshrdi3, __ashldi3,
1168         __ashrdi3, __ffsDI2, __muldi3, __clzDI2, __ctzDI2, __parityDI2,
1169         __udivmoddi4, __divdi3, __moddi3, __cmpdi2, __ucmpdi2,
1170         __fixunstfDI, __fixunsxfDI, __fixunsdfDI, __fixunssfDI,
1171         __floatdixf, __floatditf, __floatdidf, __floatdisf, __gcc_bcmp):
1172         Const-ify and/or initialize automatic variables at declaration.
1173
1174 2003-11-13  Kazu Hirata  <kazu@cs.umass.edu>
1175
1176         * config/h8300/lib1funcs.asm (divmodsi4): Replace all the uses
1177         of er4 with er3.  Adjust all callers.
1178
1179 2003-11-13  Andrew Pinski <apinski@apple.com>
1180
1181         * config/darwin.c (machopic_output_possible_stub_label):
1182         Allow stub symbol be not defined when outputting possible
1183         stub label.
1184
1185 2003-11-13  Kazu Hirata  <kazu@cs.umass.edu>
1186
1187         * config/h8300/lib1funcs.asm (___udivsi3): Jump to reti
1188         instead of exitdiv.
1189         (___umodsi3): Likewise.
1190         (exitdiv): Do not restore any register.
1191         (reti): Restore registers.
1192
1193 2003-11-13  Steven Bosscher  <stevenb@suse.de>
1194
1195         * tree-inline.c (walk_tree): Handle PLACEHOLDER_EXPR.
1196
1197 2003-11-13  Kazu Hirata  <kazu@cs.umass.edu>
1198
1199         * config/h8300/lib1funcs.asm: Fix comment typos.
1200
1201 2003-11-13  Kazu Hirata  <kazu@cs.umass.edu>
1202
1203         * config/h8300/lib1funcs.asm (udivsi3): Don't save/restore
1204         unused registers.  Don't jump to exitdiv.
1205         (umodsi3): Likewise.
1206
1207 2003-11-13  Mark Mitchell  <mark@codesourcery.com>
1208             Kean Johnston <jkj@sco.com>
1209
1210         PR c/13029
1211         * toplev.c (check_global_declarations): Do not warn about unused
1212         static consts.
1213
1214 2003-11-13  Pavel Pisa  <pisa@cmp.felk.cvut.cz>
1215             Kazu Hirata  <kazu@cs.umass.edu>
1216
1217         * config/h8300/lib1funcs.asm (DenHighNonZero): Optimize using
1218         the approximate quotient method.
1219
1220 2003-11-13  Richard Earnshaw  <rearnsha@arm.com>
1221
1222         * combine.c (distribute_notes): When re-distributing the notes from
1223         an insn we are about to delete, ensure we can't end up with a cyclic
1224         list of notes.
1225
1226 2003-11-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
1227
1228         PR optimization/12926
1229         * expr.c (expand_assignment) [COMPONENT_REF]: Don't put
1230         the UNCHANGING_RTX_P flag on memory references to read-only
1231         components that are not addressable.
1232
1233 2003-11-12  Kazu Hirata  <kazu@cs.umass.edu>
1234
1235         * config/h8300/lib1funcs.asm (divmodsi4): Clear S0P in
1236         DenHighNonZero.
1237
1238 2003-11-13  Jan Hubicka  <jh@suse.cz>
1239
1240         PR opt/12275
1241         * c-decl.c (finish_decl): Use change_decl_assembler_name.
1242         * c-pragma.c (handle_pragma_redefine_extname): Likewise.
1243         * varasm.c (make_decl_rtl): Likewise.
1244         * cgraph.c (change_decl_assembler_name): New function.
1245         * tree.h (set_decl_assembler_name): Kill dead declaration.
1246         (change_decl_assembler_name): Declare.
1247
1248         * decl.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
1249         * decl2.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
1250
1251 2003-11-12  Kazu Hirata  <kazu@cs.umass.edu>
1252
1253         * config/h8300/lib1funcs.asm (___mulsi3): Don't save/restore
1254         an unused register.
1255
1256 2003-11-12  Richard Sandiford  <rsandifo@redhat.com>
1257
1258         PR bootstrap/12752
1259         * config/mips/t-iris6 (MULTILIB_OPTIONS): Put -mabi=n32 first.
1260         (MULTILIB_OSDIRNAMES): Reorder accordingly.
1261
1262 2003-11-12  Janis Johnson  <janis187@us.ibm.com>
1263
1264         * rs6000-protos.h (rs6000_initial_elimination_offset): Add.
1265         (rs6000_stack_info): Remove.  (debug_stack_info): Remove.
1266         (rs6000_emit_eh_reg_restore): Add
1267         * rs6000.c (rs6000_stack_t): Move from rs6000.h, change data type
1268         of vars_size and total_size to HOST_WIDE_INT.
1269         (emit_frame_save): Change parameter size to HOST_WIDE_INT.
1270         (rs6000_stack_info): Make static; change data size to HOST_WIDE_INT.
1271         (debug_stack_info): Make static; change output format of HOST_WIDE_INT
1272         values.
1273         (rs6000_emit_eh_reg_restore): New, with code formerly in rs6000.md.
1274         (rs6000_initial_elimination_offset): New, with code formerly in
1275         INITIAL_ELIMINATION_OFFSET.
1276         * rs6000.h (rs6000_stack_t): Remove.
1277         (INITIAL_ELIMINATION_OFFSET): Replace code with call to function
1278         rs6000_initial_elimination_offset.
1279         * rs6000.md (UNSPECV_EH_RR split): Replace code with call to
1280         rs6000_emit_eh_reg_restore.
1281
1282 2003-11-12  Mike Stump  <mrs@apple.com>
1283
1284         * c-typeck.c (c_convert_parm_for_inlining): Add argnum, which
1285         is the argumnt we are processing so that warnings and errors
1286         will have that information.
1287         * c-tree.h (c_convert_parm_for_inlining): Add argnum.
1288         * lang-hooks-def.h
1289         (lhd_tree_inlining_convert_parm_for_inlining): Likewse.
1290         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): Likewise.
1291         * langhooks.h (convert_parm_for_inlining): Likewise.
1292         * tree-inline.c (initialize_inlined_parameters): Compute and
1293         pass argnum down.
1294
1295 2003-11-12  Alexey Starovoytov  <alexey.starovoytov@sun.com>
1296             Roger Sayle  <roger@eyesopen.com>
1297
1298         PR optimization/12953
1299         * tree-inline.c (inline_forbidden_p_1): Added check for BUILT_IN
1300         before switch by FUNCTION_CODE.
1301
1302 2003-11-12  Richard Earnshaw  <rearnsha@arm.com>
1303
1304         * arm.md (storehi): Avoid use of explicit subreg.
1305         (storehi_bigend, storeinthi, movhi_bigend): Likewise.
1306
1307 2003-11-12  J"orn Rennecke <joern.rennecke@superh.com>
1308
1309         * config/sh/sh.md (prefetch): New pattern.
1310
1311 2003-11-11  Eric Christopher  <echristo@redhat.com>
1312
1313         * reload1.c (reload): Verify that addresses for
1314         reg_equiv_* are valid for the architecture.
1315
1316 2003-11-11  Eric Christopher  <echristo@redhat.com>
1317
1318         * function.c (purge_addressof_1): Add libcall check.
1319         Remove test for cached replacements on fallback case.
1320         Simplify mode comparisons. Add libcall test for
1321         paradoxical subregs.
1322
1323 2003-11-11  Kazu Hirata  <kazu@cs.umass.edu>
1324
1325         * config/h8300/t-h8300: Fix an obsolete comment.
1326
1327 2003-11-11  James E Wilson  <wilson@specifixinc.com>
1328
1329         * expmed.c (store_bit_field, extract_bit_field): Revert last two
1330         changes.
1331
1332 2003-11-11  Kazu Hirata  <kazu@cs.umass.edu>
1333
1334         * config/h8300/lib1funcs.asm: Replace DenHighZero with
1335         DenHighNonZero.
1336
1337 2003-11-11  Jan Hubicka  <jh@suse.cz>
1338
1339         * cgraphunit.c (cgraph_function_possibly_inlined_p): Use
1340         really_no_inline.
1341
1342 2003-11-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1343
1344         * pa.h (TRAMPOLINE_TEMPLATE): Fix flushing of cache lines when
1345         generating 64-bit code.
1346
1347 2003-11-10  David Edelsohn  <edelsohn@gnu.org>
1348
1349         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
1350         accidental commit in previous change.
1351
1352 2003-11-10  Fariborz Jahanian <fjahanian@apple.com>
1353
1354         * config/rs6000/rs6000.h (STACK_SIZE_MODE): Add definition.
1355         * config/rs6000/rs6000.c (reg_or_mem_operand): Add macho-style
1356         address recognition.
1357         (macho_lo_sum_memory_operand): Routine to recognize macho-style
1358         address recognition.
1359
1360 2003-11-10  Richard Henderson  <rth@redhat.com>
1361
1362         * dwarf2out.c (gen_label_die): Cope with DECL_RTL not set.
1363
1364 2003-11-10  Matt Austern  <austern@apple.com>
1365
1366         * config/darwin-protos.h (darwin_assemble_visibility): Declare.
1367         * config/darwin.c (darwin_assemble_visibility): Define.  Warn for
1368         anything other than VISIBILITY_DEFAULT and VISIBILITY_HIDDEN.
1369         * config/darwin.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Use
1370         darwin_assemble_visibility instead of default.
1371
1372 2003-11-10  Waldek Hebisch  <hebisch@math.uni.wroc.pl>
1373
1374         PR target/12865
1375         * config/sparc/sparc.c (sparc_initialize_trampoline): Call
1376         __enable_execute_stack only after writing onto the stack.
1377         (sparc64_initialize_trampoline): Likewise.
1378
1379 2003-11-09  Roger Sayle  <roger@eyesopen.com>
1380
1381         * loop.c (check_dbra_loop): Try swapping the comparison operands
1382         of the loop condition to identify a suitable induction variable.
1383         * unroll.c (loop_iterations): Likewise.
1384
1385 2003-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1386
1387         * config/sparc/sparc.h (TARGET_CPU_CPP_BUILTINS): Fix sparc vs
1388         sparc64 #cpu and #machine assertions.
1389
1390 2003-11-09  Richard Henderson  <rth@redhat.com>
1391
1392         * Makefile.in (rtlanal.o): Depend on BASIC_BLOCK_H.
1393
1394 2003-11-09  Jan Hubicka  <jh@suse.cz>
1395
1396         * tree-optimize.c (tree_rest_of_compilation): Fix warning.
1397
1398         * cgraphunit.c (cgraph_expand_function): Use
1399         cgraph_possibly_inlined_p.
1400         * tree-optimize.c (tree_rest_of_compilation): Do not kill saved tree.
1401
1402         * opts.c (common_handle_option): Do not set max-inline-insns.
1403         * params.def: Update comments.
1404         (PARAM_MAX_INLINE_INSNS): Kill.
1405         * invoke.texi (max-inline-insns): Kill.
1406
1407 2003-11-08  Joseph S. Myers  <jsm@polyomino.org.uk>
1408
1409         PR c/3190
1410         PR c/8714
1411         * c-format.c (set_Wformat): Do not enable -Wformat-y2k by default.
1412         * invoke.texi: Update.
1413
1414 2003-11-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1415
1416         PR optimization/12630
1417         * pa.c (compute_movstrsi_length): Rename to compute_movstr_length.
1418         Handle length computation 64-bit moves.
1419         (compute_clrstr_length, output_block_clear): Implement block clear.
1420         (output_block_move): Handle 64-bit moves.
1421         (pa_adjust_insn_length): Use compute_movstr_length and
1422         compute_clrstr_length.
1423         * pa.md (movstrsi): Revise operand order and comments.  Don't use
1424         match_scratch.
1425         (movstrsi_internal): Delete.
1426         (movstrsi_prereload, movstrsi_postreload): New insns.  Define splitter
1427         and peephole2 patterns to transform prereload to postreload form.
1428         (movstrdi, movstrdi_prereload, movstrdi_postreload, clrstrsi,
1429         clrstrsi_prereload, clrstrsi_postreload, clrstrdi, clrstrdi_prereload,
1430         clrstrdi_postreload): New patterns for 64-bit block move, and block
1431         clear.
1432         * pa-protos.h (output_block_clear): New prototype.
1433
1434 2003-11-08  Andreas Schwab  <schwab@suse.de>
1435
1436         * dbxout.c (current_file): Also wrap inside DBX_DEBUGGING_INFO ||
1437         XCOFF_DEBUGGING_INFO.
1438
1439 2003-11-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1440
1441         * dbxout.c (current_file): Wrap declaration in DBX_USE_BINCL.
1442
1443 2003-11-07  Geoffrey Keating  <geoffk@apple.com>
1444
1445         * config/rs6000/rs6000.c (rs6000_legitimize_address): Remove
1446         redundant parens.
1447
1448         * cppfiles.c (pch_open_file): New parameter 'invalid_pch', set it.
1449         (find_file_in_dir): Likewise.
1450         (_cpp_find_file): Print message if no header file is found
1451         but an invalid PCH file was.
1452
1453 2003-11-08  Joseph S. Myers  <jsm@polyomino.org.uk>
1454
1455         * c-typeck.c (pedantic_lvalue_warning): Deprecate compound
1456         expressions as lvalues.
1457         (internal_build_compound_expr): Remove special handling for
1458         non-pedantic case.
1459         * doc/extend.texi: Document that all extended lvalues are now
1460         deprecated.
1461
1462 2003-11-07  Geoffrey Keating  <geoffk@apple.com>
1463
1464         PR 11654
1465         * dbxout.c (struct dbx_file): Do not save for PCH.
1466         (current_file): Likewise.
1467         (dbxout_init): Don't allocate struct dbx_file using GC.
1468         (dbxout_start_source_file): Likewise.
1469
1470 2003-11-07  Falk Hueffner  <falk@debian.org>
1471
1472         * config/alpha/elf.h, config/alpha/unicosmk.h,
1473         config/alpha/vms.h: Convert to ISO C90.
1474
1475 2003-11-07  Nathanael Nerode  <neroden@gcc.gnu.org>
1476
1477         * config/arm/pe.h: Convert to ISO C90.
1478
1479 2003-11-07  J"orn Rennecke <joern.rennecke@superh.com>
1480
1481         * sh-protos.h (sh_pch_valid_p): Declare.
1482         * sh.c ("intl.h"): Include.
1483         (TARGET_PCH_VALID_P): Override.
1484         (sh_target_switches): New variable.
1485         (target_switches): Define.
1486         (sh_pch_valid_p): New function.
1487
1488         * sh.h (MODE_AFTER): Don't change mode unless TARGET_HITACHI.
1489
1490 2003-11-07  Jan Hubicka  <jh@suse.cz>
1491
1492         * i386.c (x86_64_sign_extended_value):  Return false from tls variables.
1493         (x86_64_zero_extended_value):  likewise.
1494
1495 2003-11-07  Richard Sandiford  <rsandifo@redhat.com>
1496
1497         * config/mips/mips.md (loadgp): Take $25 as a second operand.
1498         * config/mips/mips.c (mips_expand_prologue): Modify accordingly.
1499
1500 2003-11-06  Matt Austern <austern@apple.com>
1501
1502         * c-common.c (handle_visibility_attribute): Set DECL_VISIBILITY
1503         field instead of hanging an attribute object off the decl.
1504         * tree.h (DECL_VISIBLITY): New accessor macro for
1505         symbol_visibility field in struct tree_decl.
1506         (enum symbol_visibility): Move definition to before tree_decl.
1507         (struct tree_decl): Define new two-bit field, symbol_visibility.
1508         (decl_visibility): Remove declaration.
1509         * varasm.c (maybe_assemble_visibility): Use DECL_VISIBILITY
1510         instead of decl_visibility.
1511         (default_binds_local_p_1):  Use DECL_VISIBILITY instead of
1512         decl_visibility.
1513         (decl_visibility): Remove.
1514
1515 2003-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
1516
1517         * config/s390/s390.c (s390_emit_epilogue): Recognize more cases
1518         where register 14 will be saved.
1519
1520 2003-11-06  Geoffrey Keating  <geoffk@apple.com>
1521
1522         * config/rs6000/rs6000.h (USE_FP_FOR_ARG_P): Move to rs6000.c.
1523         (USE_ALTIVEC_FOR_ARG_P): Likewise.
1524         * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Move from rs6000.h.
1525         Take a pointer as the CUM parameter.  Update callers.
1526         (USE_ALTIVEC_FOR_ARG_P): Likewise.  Also correct for Darwin/AIX
1527         32-bit ABIs.
1528         (function_arg_advance): Use USE_ALTIVEC_FOR_ARG_P.  Correct case
1529         of vector parameters as named arguments of stdarg function.
1530         (function_arg): Likewise.
1531
1532         * config/rs6000/darwin.h (ASM_SPEC): Use -force_cpusubtype_ALL when
1533         -maltivec is specified, not the non-existent -faltivec.
1534
1535 2003-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
1536
1537         * config/s390/s390-protos.h (s390_function_value): Declare.
1538         * config/s390/s390.c (TARGET_RETURN_IN_MEMORY): Define.
1539         (s390_return_in_memory): New function.
1540         (s390_function_value): New function.
1541         (s390_function_arg_float): Return false for all arguments larger
1542         than 8 bytes.
1543         (s390_function_arg_pass_by_reference): Likewise.  Return true for
1544         all vector arguments.
1545         (s390_function_arg_integer): New function.
1546         (s390_function_arg_advance): Call it.  Add sanity checks.
1547         (s390_function_arg): Likewise.
1548         * config/s390/s390.h (FUNCTION_VALUE): Call s390_function_value.
1549         (LIBCALL_VALUE): Likewise.
1550         (RET_REG): Remove.
1551         (RETURN_IN_MEMORY): Remove.
1552
1553 2003-11-06  Richard Sandiford  <rsandifo@redhat.com>
1554
1555         * config/mips/mips-protos.h (mips_initial_elimination_offset): Change
1556         return type to HOST_WIDE_INT.
1557         * config/mips/mips.c (mips_frame_info): Give sizes type HOST_WIDE_INT.
1558         Make initialized a bool.  Make register masks unsigned ints.
1559         (compute_frame_size): Make same mask change here.  Use HOST_WIDE_INT
1560         where appropriate.
1561         (mips_initial_elimination_offset): Return a HOST_WIDE_INT.
1562         (mips_output_function_prologue): Print sizes as HOST_WIDE_INTs.
1563
1564 2003-11-06  Richard Sandiford  <rsandifo@redhat.com>
1565
1566         * config/frv/frv.c (frv_initial_elimination_offset): Remove bogus
1567         negation.
1568
1569 2003-11-06  Richard Sandiford  <rsandifo@redhat.com>
1570
1571         * config/frv/frv.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define.
1572
1573 2003-11-06  Momchil Velikov  <velco@fadata.bg>
1574
1575         * config/mips/mips.c (override_options): Set MASK_SOFT_FLOAT
1576         for VR4111 too.
1577
1578 2003-11-06  Jan Hubicka  <jh@suse.cz>
1579
1580         * builtins.c (simplify_builtin_strrchr, simplify_builtin_strpbrk): Add
1581         missing casts.
1582
1583 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
1584
1585         * genmodes.c: Change the word "bitsize" to "precision" throughout.
1586         * machmode.def: Likewise.
1587         * machmode.h (GET_MODE_SIZE): Cast value to unsigned short.
1588         (GET_MODE_BITSIZE): Define as GET_MODE_SIZE * BITS_PER_UNIT.
1589         (GET_MODE_PRECISION): New macro.
1590         (mode_bitsize): Renamed mode_precision.
1591         * stor-layout.c (mode_for_size, smallest_mode_for_size):
1592         Use GET_MODE_PRECISION; clarify comments.
1593
1594 2003-11-05  Joseph S. Myers  <jsm@polyomino.org.uk>
1595
1596         * doc/install-old.texi: Remove old documentation of building
1597         cross-compilers.
1598         * doc/install.texi: Move some of it to here.
1599
1600 2003-11-05  Per Bothner  <pbothner@apple.com>
1601
1602         PR preprocessor/12891
1603         * c-opts.c (finish_options):  Set include_cursor to disable premature
1604         calls to push_command_line_include from cpp_scan_nooutput.
1605         Fixes bug reported by DJ Delorie.
1606
1607 2003-11-05  Geoffrey Keating  <geoffk@apple.com>
1608
1609         * config/rs6000/rs6000.c (setup_incoming_varargs): Remove
1610         code supporting old-style varargs.
1611
1612         * config/rs6000/rs6000.c (rs6000_machopic_legitimize_pic_address): Use
1613         an intermediate register for better optimisation.
1614
1615 2003-11-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1616
1617         PR optimization/10080
1618         * cfgloopanal.c (variable_initial_value, variable_initial_values,
1619         simple_loop_exit_p): Record the fact that initial value is extended
1620         from inner mode.
1621         (count_strange_loop_iterations, count_loop_iterations): Handle
1622         ivs that iterate in a narrower mode. Fix handling of overflows.
1623         Improve handling of NE conditions.
1624         (inverse, fits_in_mode_p): New static functions.
1625         (simple_increment): Detect variables that iterate in a narrower mode.
1626         * cfgloop.h (struct loop_desc): Fields inner_mode and extend added.
1627
1628 2003-11-05  Geoffrey Keating  <geoffk@apple.com>
1629
1630         * config/rs6000/rs6000.c (compute_vrsave_mask): Correct off-by-one
1631         error.
1632
1633         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Darwin
1634         needs VRSAVE.
1635
1636 2003-11-05  Joseph S. Myers  <jsm@polyomino.org.uk>
1637
1638         * c-typeck.c (pedantic_lvalue_warning): Deprecate use of
1639         conditional expressions as lvalues.
1640
1641 2003-11-05  Kazu Hirata  <kazu@cs.umass.edu>
1642
1643         * tsystem.h: Add the prototype of strlen.
1644         * unwind-pe.h (read_encoded_value_with_base): Add an
1645         appropriate cast to handle a case where the pointer size is
1646         smaller than sizeof (int).
1647
1648 2003-11-04  Richard Sandiford  <rsandifo@redhat.com>
1649
1650         * config/mips/mips-protos.h (mips_global_pic_constant_p): Delete.
1651         (mips_delegitimize_address): Delete.
1652         (mips_gotoff_global, mips_load_got_page): Declare.
1653         (mips_load_got_global, mips_rewrite_small_data): Declare.
1654
1655         * config/mips/mips.h (FIND_BASE_TERM): Remove definition.
1656         (DANGEROUS_FOR_LA25_P): Use global_got_operand.
1657         (PREDICATE_CODES): Add global_got_operand, local_got_operand and
1658         small_data_pattern.  Remove CONST from const_arith_operand's entry.
1659
1660         * config/mips/mips.c (UNSPEC_ADDRESS_P, CONST_GP_P): New macros.
1661         (UNSPEC_ADDRESS, UNSPEC_ADDRESS_TYPE): Likewise.
1662         (mips_constant_type): Delete.
1663         (mips_symbol_type): Add SYMBOL_GOTOFF_PAGE, SYMBOL_GOTOFF_GLOBAL,
1664         SYMBOL_GOTOFF_CALL and SYMBOL_GOTOFF_LOADGP.
1665         (NUM_SYMBOL_TYPES): New macro.
1666         (mips_address_type): Remove ADDRESS_INVALID.
1667         (machine_function): Add has_gp_insn_p.
1668         (mips_constant_info): Delete.
1669         (mips_address_info): Add the address type as an extra field.  Replace
1670         the c field with symbol_type.
1671         (mips_split_p, mips_lo_relocs, mips_hi_relocs): New arrays.
1672         (TARGET_DELEGITIMIZE_ADDRESS): Remove definition.
1673         (mips_reloc_offset_ok_p, mips_classify_constant): Delete.
1674         (mips_split_const, mips_symbolic_constant_p): New functions.
1675         (mips_symbolic_address_p): Take the symbol type and mode as arguments.
1676         (mips_classify_address): Return true if the address is valid, storing
1677         its type in INFO.  Use mips_symbolic_constant_p.  Use mips_lo_relocs[]
1678         to test whether a LO_SUM address is allowed.
1679         (mips_symbol_insns): Return 0 for general mips16 symbols.
1680         Reorder SYMBOL_GOT_GLOBAL case to match mips_symbol_type definition.
1681         Handle the new SYMBOL_GOTOFF_*s.
1682         (mips_address_insns): Update call to mips_classify_address.
1683         (mips_const_insns): Be more fussy about HIGH constants.  Remove use
1684         of mips_classify_constant.  Be more accurate about CONSTs.
1685         (mips_global_pic_constant_p): Delete.
1686         (const_arith_operand): Only accept CONST_INTs.
1687         (call_insn_operand): Remove call to mips_classify_constant.
1688         Let mips_symbolic_constant_p check for invalid offsets.
1689         (move_operand): Check for general_operands first.  Only accept symbolic
1690         constants if they satisfy mips_symbolic_constant_p and cannot be split.
1691         (symbolic_constant): Use mips_symbolic_constant_p.
1692         (global_got_operand, local_got_operand): New predicates.
1693         (stack_operand): Update call to mips_classify_address.
1694         (mips_legitimate_address_p): Likewise.
1695         (mips_reloc, mips_lui_reloc): Delete.
1696         (mips_force_temporary): Only use the given temporary if no_new_pseudos.
1697         Use emit_move_insn.
1698         (mips_split_symbol, mips_unspec_address): New functions.
1699         (mips_unspec_offset_high): New function.
1700         (mips_load_got): Replace reloc argument with a symbol_type.
1701         Use mips_unspec_address to create the address and put it in a
1702         LO_SUM with the base register.
1703         (mips_load_got16, mips_load_got32): Delete.
1704         (mips_emit_high, mips_legitimize_symbol): Delete.
1705         (mips_gotoff_global): New function.
1706         (mips_load_got_page, mips_load_got_global): New functions.
1707         (mips_legitimize_symbol): Inline handling of LO_SUM splits.
1708         (mips_legitimize_const_move): Likewise.  Remove HIGH handling.
1709         Inline code to handle constants plus invalid offsets.  Use
1710         mips_split_symbol to legitimize constant pool addresses.
1711         (mips_delegitimize_address): Delete.
1712         (mips_rtx_costs): Give legitimate symbolic constants and CONST_DOUBLEs
1713         a cost of 1 insn.  Give the rest a cost of CONSTANT_POOL_ADDRESS.
1714         (mips_subword): Pass memrefs through mips_rewrite_small_data.
1715         (mips_output_move): Remove use of mips_classify_constant.
1716         (mips_expand_call): Use mips_unspec_offset_high to calculate the
1717         high part of the GOT address for calls to global functions.
1718         (override_options): Initialize mips_split_p[], mips_lo_relocs[]
1719         and mips_hi_relocs[].
1720         (print_operand): Use print_operand_reloc to handle '%h' and '%R'.
1721         Remove use of mips_classify_constant.
1722         (mips_reloc_string): Delete.
1723         (print_operand_reloc): New function.
1724         (print_operand_address): Update call to mips_classify_address.
1725         (mips_rewrite_small_data_p, small_data_pattern_1): New functions.
1726         (small_data_pattern): New predicate.
1727         (mips_rewrite_small_data_1, mips_rewrite_small_data): New functions.
1728         (mips_function_has_gp_insn): New function.
1729         (mips_global_pointer): Use it.
1730         (mips_gp_insn): Delete.
1731         (mips_expand_prologue): When compiling for n32/n64 abicalls, use a
1732         single loadgp pattern to initialize $gp.  Pass it the offset of _gp
1733         from the start of the current function.
1734         (mips16_gp_pseudo_reg): Revert last patch.
1735
1736         * config/mips/mips.md (RELOC_*): Delete.
1737         (UNSPEC_LOADGP, UNSPEC_FIRST_ADDRESS): New constants.
1738         (got): New insn attribute.
1739         (type): Set to "load" if got == load.
1740         (length): Set to 4 if got == load, 8 if got == xgot_high.
1741         (lui[sd]i): Delete.
1742         (*xgot_hi[sd]i, *xgot_lo[sd]i): New patterns.
1743         (*got_disp[sd]i, *got_page[sd]i): Likewise.
1744         (*low[sd]i): Change constraints to "d".  Add a new define_split to
1745         rewrite small data constants into LO_SUMs.
1746         (loadgp): New insns.
1747
1748 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1749
1750         * config/mips/_tilib.c: Use _ABI* in _MIPS_SIM tests.
1751
1752 2003-11-04  DJ Delorie  <dj@redhat.com>
1753
1754         * config/v850/v850.md (mulhisi3): Expand the const_int case
1755         separately to avoid trying to sign extend the const.
1756
1757 2003-11-04  Richard Sandiford  <rsandifo@redhat.com>
1758
1759         * emit-rtl.c (copy_rtx_if_shared): Don't allow MEMs with constant
1760         addresses to be shared.
1761         (force_const_mem): Return a copy of the pool entry.
1762
1763 2003-11-03  Andreas Jaeger  <aj@suse.de>
1764
1765         * Makefile.in (GCC_CFLAGS): Remove @WERROR@ again.
1766
1767 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
1768
1769         * Makefile.in (cpp.dvi): New target split from cpp.info.
1770         (gcc.dvi):  New target split from gcc.info.
1771         (gccint.dvi): New target split from gccint.info.
1772         (cppinternals.dvi): New target split from cppinternals.info
1773         (gccinstall.info): New specific rule.
1774         (gccinstall.dvi): Likewise.
1775         (dvi): Move targets to $(docobjdir).
1776         ($(docobjdir)/%.dvi): New implicit rule.
1777
1778 2003-11-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1779
1780         * doc/gty.texi (tag, desc): Say more about role of desc values in
1781         selecting between tags.
1782
1783 2003-11-03  Alexander Kabaev  <ak03@gte.com>
1784
1785         * real.c (encode_ieee_single): Ensure proper promotion.
1786
1787 2003-11-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1788
1789         * doc/contrib.texi: Add Giovanni Bajo, Dara Hazeghi, Falk Hueffner,
1790         and Andrew Pinski.
1791
1792 2003-11-03  Syd Polk  <spolk@apple.com>
1793
1794         * config/rs6000/rs6000.c (rs6000_override_options): Add G3, G4, and G5
1795         marketing names to the list of supported processors.
1796         * config/rs6000/rs6000.h: Ditto.
1797         * doc/invoke.texi: Ditto.
1798         * config.gcc: Ditto.
1799
1800 2003-11-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1801
1802         * fixinc/inclhack.def (stdio_va_list): Allow tab before va_list.
1803         Merge two substitutions.
1804         * fixinc/fixincl.x: Regenerate.
1805         Fixes PR bootstrap/12666.
1806
1807 2003-11-03  Joseph S. Myers  <jsm@polyomino.org.uk>
1808
1809         * doc/install-old.texi: Remove VMS documentation.
1810
1811 2003-11-03  Jan Hubicka  <jh@suse.cz>
1812
1813         * i386.c (override_options):  Remove hack enabling 128bit long double
1814         commited by accident.
1815
1816 2003-11-02  Per Bothner  <per@bothner.com>
1817
1818         * c-opts.c (needValue):  Do cpp_find_main_file before processing
1819         any imacros flags, so pfile->main_file is set for the latter.
1820
1821 2003-11-03  Andreas Jaeger  <aj@suse.de>
1822             Zack Weinberg  <zack@codesourcery.com>
1823
1824         * Makefile.in (GCC_CFLAGS): Allow blacklisting of warnings.
1825         (SYSCALLS.c.X-warn): Suppress warnings.
1826
1827 2003-11-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1828
1829         PR optimization/12845
1830         * pa.c (output_cbranch): Use cmpb for DImode comparisons with 0.
1831
1832 2003-11-02  Zack Weinberg  <zack@codesourcery.com>
1833
1834         * print-rtl.c (print_rtx): Call PRINT_REG with second argument -1.
1835         * config/i386/i386.c (print_reg): Abort on a virtual register
1836         if code != -1; not if file == asm_out_file.
1837         * config/i386/i386.h (PRINT_REG): Document meaning of CODE == -1.
1838         (DEBUG_PRINT_REG): Delete, unused.
1839
1840 2003-11-02  Andreas Schwab  <schwab@suse.de>
1841
1842         * config/ia64/fde-glibc.c (_GNU_SOURCE): Define to 1 instead of
1843         empty to avoid conflict with the definition from configure.
1844
1845 2003-11-02  Roger Sayle  <roger@eyesopen.com>
1846
1847         PR optimization/10817
1848         * ifcvt.c (noce_emit_move_insn): Improve documentation comment.
1849         (noce_try_move): New function to optimize an if-the-else into an
1850         unconditional move, i.e. "if (a!=b) x=a; else x=b" into "x=a".
1851         (noce_process_if_block): Attempt simplification with noce_try_move.
1852
1853         * simplify-rtx.c (simplify_ternary_operation): Some minor fixes
1854         and improvements to the optimizations of IF_THEN_ELSE expressions.
1855         (simplify_subreg): Silence signed/unsigned comparison warning.
1856
1857 2003-11-02  Richard Sandiford  <rsandifo@redhat.com>
1858
1859         * Makefile.in (targhooks.o, reload.o): Update dependencies.
1860         (GTFILES): Add targhooks.c.
1861         (gt-targhooks.h): New rule; depend on s-gtype.
1862         * target.h (direct_pool_load_p): New hook.
1863         * target-def.h (TARGET_DIRECT_POOL_LOAD_P): New macro.
1864         (TARGET_INITIALIZER): Include it.
1865         * targhooks.h (default_direct_pool_load_p): Declare.
1866         (hook_bool_machine_mode_true): Declare.
1867         * targhooks.c: Include insn-config.h, recog.h, ggc.h and
1868         gt-targhooks.h.
1869         (pool_symbol): New variable.
1870         (default_direct_pool_load_p): New function.
1871         (hook_bool_machine_mode_true): New function.
1872         * reload.c: Include target.h.
1873         (find_reloads): If an alternative will force a constant into memory,
1874         count an extra reload if constant pool symbols are not valid
1875         addresses.  If an alternative uses memory to move values between
1876         registers, count the move as two reloads rather than one.
1877         * config/s390/s390.c (TARGET_DIRECT_POOL_LOAD_P): Define.
1878         * doc/tm.texi (TARGET_DIRECT_POOL_LOAD_P): Document.
1879
1880 2003-11-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
1881
1882         PR optimization/12799
1883         * postreload.c (reload_cse_move2add): Generate the add2
1884         patterns manually.
1885
1886 2003-11-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
1887
1888         * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
1889         Return 0 for all complex modes whose size is lesser or equal to
1890         a word.  Add a ??? comment for the condition used with 16-byte
1891         aligned modes.
1892
1893 2003-11-01  Kelley Cook  <kcook@gcc.gnu.org>
1894
1895         * .cvsignore: Remove c-parse* and tradcif.c.
1896         * objc/.cvsignore: Delete.
1897
1898 2003-11-01  Roger Sayle  <roger@eyesopen.com>
1899
1900         * unwind-sjlj.c (_Unwind_GetCFA): Return (_Unwind_Word)0 instead
1901         of NULL.
1902
1903 2003-11-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1904
1905         * som.h (DO_GLOBAL_DTORS_BODY): Change to C90 declaration.
1906
1907         * libgcc2.c (SYMBOL__MAIN): Provide C90 declaration.
1908
1909         * collect2.c (scan_libraries): Fix typos.
1910
1911         PR preprocessor/12847
1912         * cppfiles.c, cppexp.c, cpperror.c, cpplib.h, cpplib.c, cpplex.c,
1913         cppinit.c, cpptrad.c, cppmacro.c, fix-header.c, cpppch.c, c-pch.c,
1914         c-incpath.c, cppcharset.c (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN,
1915         DL_ERROR, DL_ICE, DL_EXTRACT, DL_WARNING_P): Prefix macro names with
1916         "CPP_".
1917
1918 2003-11-01  Fariborz Jahanian  <fjahanian@apple.com>
1919
1920         * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Correct
1921         no_units calculation.
1922
1923 2003-11-01  Andreas Jaeger  <aj@suse.de>
1924
1925         * unwind-dw2.c (_Unwind_FrameState): Remove commas at end of
1926         enumeration list.
1927
1928 2003-11-01  Andreas Schwab  <schwab@suse.de>
1929
1930         * config/ia64/sysv4.h (SDATA_SECTION_FUNCTION): Update to C90
1931         prototypes.
1932         (SBSS_SECTION_FUNCTION): Likewise.
1933
1934 2003-11-01  Andreas Jaeger  <aj@suse.de>
1935
1936         * Makefile.in (GCC_CFLAGS): Add @WERROR@ for target files.
1937
1938 2003-11-01  Andreas Tobler  <a.tobler@schweiz.ch>
1939
1940         * config/rs6000/sysv4.h (EXTRA_SECTION_FUNCTIONS): Update to C90
1941         prototypes.
1942
1943 2003-11-01  Andreas Jaeger  <aj@suse.de>
1944
1945         * unwind-dw2.c (_Unwind_FindEnclosingFunction): Constify variable.
1946         (uw_frame_state_for): Constify variables.
1947         (extract_cie_info): Constify first argument.
1948
1949         * unwind-dw2-fde-darwin.c: Adjust prototype of
1950         _Unwind_Find_registered_FDE for recent changes.
1951         (examine_objects): Constify return value and local variable result.
1952         (_Unwind_Find_FDE): Constify return value and local variable ret.
1953
1954 2003-10-31  Per Bothner  <pbothner@apple.com>
1955
1956         * c-opts.c (finish_options):  Change to returns boolean - false iff
1957         the call to cpp_find_main_file fails.
1958         (c_common_init):  Skip preprocess_file if finish_options failed.
1959         (c_common_parse_file):  Break if finish_options failed.
1960         Fixes PR preprocessor/12545.
1961
1962 2003-10-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1963
1964         * aclocal.m4: Blacklist ultrix* for mmap file.
1965         * configure: Rebuilt.
1966
1967         * function.c (assign_parms): Add ATTRIBUTE_UNUSED to variable
1968         reg_parm_stack_space.
1969         * toplev.c (default_get_pch_validity): Fix warning.
1970
1971         * vax.c: Include toplev.h.
1972         (vax_init_libfuncs): Fix typo (umod).
1973         * vax.h (ASM_COMMENT_START): Define.
1974         (PRINT_OPERAND): Fix warning when HOST_WIDE_INT is a long long.
1975
1976 2003-10-31  Roger Sayle  <roger@eyesopen.com>
1977
1978         PR middle-end/11968
1979         * expr.c (expand_expr <MULT_EXPR>): Remove inappropriate and
1980         confusing comment; distributivity isn't handled in expand_expr.
1981         * fold-const.c (extract_muldiv_1 <PLUS_EXPR>):  Allow overflow
1982         in distributivity, if wrap-around semantics are specified with
1983         -fwrapv.
1984
1985 2003-11-01  Alan Modra  <amodra@bigpond.net.au>
1986
1987         PR 12315
1988         * final.c (profile_function): Allow for NULL svrtx.
1989
1990 2003-10-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1991
1992         * pa.c (pa_select_section): Use new style declaration.
1993         * som.h (readonly_data): Likewise.
1994
1995 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
1996
1997         * config/rs6000/rs6000.c: Update to C90 prototypes.
1998
1999 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
2000
2001         PR target/7513
2002         * arm.h (CONDITIONAL_REGISTER_USAGE): Disable use of LR in Thumb
2003         code.
2004
2005 2003-10-31  Andreas Jaeger  <aj@suse.de>,
2006             Zack Weinberg  <zack@codesourcery.com>
2007
2008
2009         * crtstuff.c (__register_frame_info, __register_frame_info_bases)
2010         (__deregister_frame_info, __deregister_frame_info_bases):
2011         Constify void * argument.
2012         * unwind-dw2-fde.h (struct fde_vector):
2013         Constify 'orig_data' and 'array' fields.
2014         (__register_frame_info, __register_frame_info_bases)
2015         (__deregister_frame_info, __deregister_frame_info_bases):
2016         Constify void * argument.
2017         (get_cie, next_fde, _Unwind_Find_FDE): Constify arguments,
2018         return values, and casts of type fde *, struct dwarf_fde *,
2019         and struct dwarf_cie *.
2020         * unwind-dw2-fde.c (__register_frame_info, __register_frame_info_bases)
2021         (__deregister_frame_info, __deregister_frame_info_bases):
2022         Constify void * argument.
2023         (get_cie_encoding, ): Constify struct dwarf_cie * argument.
2024         (get_fde_encoding, fde_unencoded_compare, fde_single_encoding_compare)
2025         (fde_mixed_encoding_compare, fde_compare_t, start_fde_sort, fde_insert)
2026         fde_split, SWAP, frame_downheap, frame_heapsort)
2027         (classify_object_over_fdes, add_fdes, linear_search_fdes,
2028         binary_search_unencoded_fdes, binary_search_single_encoding_fdes,
2029         binary_search_mixed_encoding_fdes, search_object, _Unwind_Find_FDE):
2030         Constify arguments, local variables, return values, and casts
2031         of type fde *, fde **, struct dwarf_fde *, and struct dwarf_cie *.
2032         Use const pointer types in sizeof expressions, for clarity.
2033         * unwind-dw2-fde-glibc.c
2034         (_Unwind_find_registered_FDE, _Unwind_find_FDE): Constify return value.
2035         (struct unw_eh_callback_data): Constify 'ret' field.
2036
2037 2003-10-31  Fariborz Jahanian  <fjahanian@apple.com>
2038             David Edelsohn  <edelsohn@gnu.org>
2039
2040         * config/rs6000/rs6000.c (rs6000_mixed_function_arg): New.
2041         (function_arg): Call it.
2042         (rs6000_function_value): Widen integral return value to mode based
2043         on TARGET_32BIT, not word_mode.
2044         * config/rs6000/rs6000.h (PROMOTE_MODE): Likewise.
2045         (UNITS_PER_ARG): New.
2046         (RS6000_ARG_SIZE): Use it.
2047
2048 2003-10-31  Gerald Pfeifer  <gerald@pfeifer.com>
2049
2050         * .cvsignore: No longer ignore gengtype-lex.c, gengtype-yacc.c,
2051         and gengtype-yacc.h.
2052
2053 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
2054
2055         PR optimization/8896
2056         * postreload.c (reload_combine): Check that REGY doesn't die in an
2057         insn of the form (set (regx) (plus (regx) (regy))), ie REGX != REGY.
2058
2059 2003-10-31  Josef Zlomek  <zlomekj@suse.cz>
2060
2061         PR/10239
2062         * cfgrtl.c (delete_insn): Decrease LABEL_NUSES for all REG_LABEL notes.
2063
2064 2003-10-31  Josef Zlomek  <zlomekj@suse.cz>
2065
2066         PR/11640
2067         * cfgrtl.c (try_redirect_by_replacing_jump): Move jump
2068         immediatelly before BARRIER.
2069
2070 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
2071
2072         * Makefile.in (STRICT2_WARN): Add -Wold-style-definition.
2073
2074 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
2075
2076         PR target/11271
2077         * reload.c (find_reloads_address): Handle any register in
2078         (PLUS (PLUS (REG) (REG)) (CONST_INT).
2079
2080 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
2081
2082         * ggc-page.c (ggc_pch_read): Wrap call to poison_pages in
2083         ENABLE_GC_CHECKING not in GGC_POISON.
2084
2085 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
2086
2087         PR bootstrap/9863
2088         * configure.in: Bail out if awk is missing.
2089         * configure: Regenerate.
2090
2091         PR ada/12761
2092         * Makefile.in: Move default definitions of X_ADA_CFLAGS,
2093         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from ada/Make-lang.in to here.
2094
2095 2003-10-30  Richard Henderson  <rth@redhat.com>
2096
2097         * c-objc-common.c (c_tree_printer): Handle types correctly.
2098         Factor code a bit.
2099
2100 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
2101
2102         * value-prof.c, web.c: Update to C90.
2103
2104 2003-10-30  Eric Christopher  <echristo@redhat.com>
2105
2106         * function.c (purge_addressof_1): Add case for REG_RETVAL
2107         notes when modes are unequal.
2108
2109 2003-10-31  Jan Hubicka  <jh@suse.cz>
2110
2111         * i386-modes.def: Add XFmode format adjustment.
2112
2113 2003-10-30  Jan Hubicka  <jh@suse.cz>
2114
2115         * real.c (encode_ieee_extended): Back out previous patch.
2116
2117 2003-10-30  Jan Hubicka  <jh@suse.cz>
2118
2119         * real.c (encode_ieee_extended): Initialize whole array.
2120         * reg-stack.c (move_for_stack_reg0: Use always XFmode.
2121         * i386-modes.def: Change definitions of TFmode and XFmode.
2122         * i386.c (classify_argument): Rename TFmodes to XFmodes; add new TFmode
2123         code.
2124         (construct_container): Allow constructing of TFmode integer containers.
2125         (ix86_return_in_memory):  XFmode is not returned in memory.
2126         (init_ext_80387_constants): Always use XFmode.
2127         (print_operand): Likewise.
2128         (ix86_prepare_fp_compare_regs): Likewise.
2129         (split_to_parts): Deal with TFmode.
2130         (split_long_move): Simplify.
2131         (ix86_init_mmx_sse_builtins): Add __float80, __float128.
2132         (ix86_memory_move_cost): Do not confuse TFmode.
2133         * i386.h (LONG_DOUBLE_TYPE_SIZE): Set to 96.
2134         (IS_STACK_MODE): TFmode is not stack mode.
2135         (HARD_REGNO_NREGS, CLASS_MAX_NREGS): Deal nicely with XFmode.
2136         (VALID_SSE_REG_MODE): Allow TFmode.
2137         (VALID_FP_MODE_P): Disallow TFmode.
2138         (VALID_INT_MODE_P): Allow TFmode in 64bit mode.
2139         * i386.md (TFmode patterns): Kill.
2140         (movtf, motf_rex64): New patterns.
2141
2142 2003-10-30  Richard Sandiford  <rsandifo@redhat.com>
2143
2144         * config/mips/mips.md (adddi3): Fix typo in mips16 stack pointer code.
2145
2146 2003-10-30  Richard Sandiford  <rsandifo@redhat.com>
2147
2148         * config/mips/mips.md (mov_lwl): Use memory_operand where appropriate.
2149         (mov_lwr, mov_swl, mov_swr): Likewise.
2150         (mov_ldl, mov_ldr, mov_sdl, mov_sdr): Likewise.
2151
2152 2003-10-30  Richard Sandiford  <rsandifo@redhat.com>
2153
2154         * config/mips/mips.c (mips_global_pointer): Don't try to use $25.
2155
2156 2003-10-30  Richard Henderson  <rth@redhat.com>
2157
2158         * config/mips/mips.c (mips_build_builtin_va_list): Use runtime
2159         test for irix6 rather than preprocessor test.
2160
2161 2003-10-30  Richard Henderson  <rth@redhat.com>
2162
2163         * cppcharset.c (one_utf8_to_utf16): Initialize 's' to silence warning.
2164
2165 2003-10-30  Ulrich Weigand  <uweigand@de.ibm.com>
2166
2167         * config/s390/s390.c (struct machine_function): Use save_return_addr_p
2168         as a general flag that the return address register needs to be saved,
2169         not necessarily because of __builtin_return_addr (0).
2170         (s390_split_branches): Remove TEMP_REG and TEMP_USED arguments,
2171         remove special handling of zSeries machines.
2172         (s390_optimize_prolog): Remove TEMP_USED argument, treat the return
2173         register as a regular register on zSeries machines.
2174         (s390_reorg): Adjust calls to s390_split_branches and
2175         s390_optimize_prolog.
2176         (s390_frame_info): On zSeries machines, do not assume the return
2177         register is always used.  Update regs_ever_live with current data
2178         for the special registers.
2179         (s390_emit_epilogue): Use save_return_addr_p to determine whether
2180         the return register was saved.
2181         * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Do not mark
2182         RETURN_REGNUM fixed on zSeries machines.
2183         (REG_ALLOC_ORDER): Use RETURN_REGNUM last.
2184         * config/s390/s390.md ("*doloop_si"): Handle branch overflow
2185         via ahi-jgne pair on zSeries machines.
2186         ("*doloop_di"): Likewise.
2187         ("*doloop_di_long"): Remove.
2188
2189 2003-10-30  Richard Earnshaw  <rearnsha@arm.com>
2190
2191         * arm.c (arm_override_options): Revert change of arm_constant_limit
2192         when optimizing for size.
2193
2194 2003-10-29  Richard Henderson  <rth@redhat.com>
2195
2196         * fold-const.c (fold_single_bit_test): Convert the input to the
2197         operational intermediate type.
2198
2199 2003-10-29  Richard Henderson  <rth@redhat.com>
2200
2201         * builtins.c (std_build_builtin_va_list): New.
2202         * expr.h (std_build_builtin_va_list): Declare.
2203         * defaults.h (BUILD_VA_LIST_TYPE): New.
2204         * system.h (BUILD_VA_LIST_TYPE): Poison.
2205         * target-def.h (TARGET_BUILD_BUILTIN_VA_LIST): New.
2206         * target.h (struct gcc_target): Add build_builtin_va_list.
2207         * tree.c (build_common_tree_nodes_2): Use it.
2208
2209         * config/alpha/alpha-protos.h, config/alpha/alpha.c,
2210         config/alpha/alpha.h, config/alpha/unicosmk.h,
2211         config/d30v/d30v-protos.h, config/d30v/d30v.c, config/d30v/d30v.h,
2212         config/i386/i386-protos.h, config/i386/i386.c, config/i386/i386.h,
2213         config/i860/i860-protos.h, config/i860/i860.c, config/i860/i860.h,
2214         config/i960/i960-protos.h, config/i960/i960.c, config/i960/i960.h,
2215         config/mips/iris6.h, config/mips/mips-protos.h, config/mips/mips.c,
2216         config/mips/mips.h, config/rs6000/rs6000-protos.h,
2217         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
2218         config/s390/s390-protos.h, config/s390/s390.c, config/s390/s390.h,
2219         config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
2220         config/xtensa/xtensa-protos.h, config/xtensa/xtensa.c,
2221         config/xtensa/xtensa.h: Rename foo_build_va_list to
2222         foo_build_builtin_va_list; make it static.  Define
2223         TARGET_BUILD_BUILTIN_VA_LIST.  Remove BUILD_VA_LIST_TYPE.
2224         Update protos.
2225
2226         * config/i386/i386.c (ix86_expand_carry_flag_compare): Make static.
2227         * config/iq2000/iq2000.h (BUILD_VA_LIST_TYPE): Remove.
2228
2229 2003-10-29  James E Wilson  <wilson@specifixinc.com>
2230
2231         * recog.c (asm_operand_ok): Add missing break after case 'X'.
2232         Change if statements to else if statements in default case.
2233         (extract_constrain_insn_cached): Fix misspelling of constrain_operands
2234         in comment.
2235         (constrain_operands_cached): Likewise.
2236         (constrain_operands): Change if statements to else if statements in
2237         default case.
2238         * reload.c (find_reloads): Likewise.
2239
2240 2003-10-29  Richard Henderson  <rth@redhat.com>
2241
2242         * config/m68k/m68k.c (notice_update_cc): Clear cc status for
2243         shifts and rotates.
2244
2245 2003-10-30  Alan Modra  <amodra@bigpond.net.au>
2246
2247         * config/rs6000/rs6000.md: Remove duplicate pattern.
2248
2249 2003-10-29  Hans-Peter Nilsson  <hp@axis.com>
2250
2251         * real.c (do_divide): Initialize result with a 0.
2252
2253         * configure.in <enable-checking for valgrind>: Look for
2254         <valgrind/memcheck.h> first.  AC_DEFINE HAVE_VALGRIND_MEMCHECK_H
2255         if it exists.
2256         * configure, config.in: Regenerate.
2257         * ggc-common.c [ENABLE_VALGRIND_CHECKING &&
2258         HAVE_VALGRIND_MEMCHECK_H]: Include <valgrind/memcheck.h>.  Use
2259         #elif for other alternatives.
2260         * ggc-page.c: Ditto.
2261         * ggc-zone.c: Don't assume <valgrind/memcheck.h>; instead copy
2262         include structure from ggc-common.c.
2263
2264 2003-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2265
2266         * pa-linux.h (ASM_OUTPUT_ADDR_VEC_ELT): Use label in big switch ELTs.
2267         (ASM_OUTPUT_ADDR_DIFF_ELT): Use label difference in big switch ELTs.
2268         * pa.c (pa_adjust_insn_length): Check for btable branches using
2269         attribute TYPE_BTABLE_BRANCH.
2270         (pa_reorg): Simplify.
2271         * pa.h (CASE_VECTOR_MODE): Change big switch mode to SImode.
2272         (ASM_OUTPUT_ADDR_VEC_ELT): As above.
2273         (ASM_OUTPUT_ADDR_DIFF_ELT): As above.
2274         * pa.md (btable_branch): New instruction type.
2275         (in_branch_delay, in_nullified_branch_delay, in_call_delay): Disallow
2276         btable branches.
2277         (define_delay): Add btable branches to insn types that may have an
2278         insn in the delay position.
2279         (Z2, Z3): Add btable branch to list.
2280         Simplify unamed pattern set copy pic_label_operand to register.  Add
2281         PA 2.0 variant.
2282         (short_jump): New jump for use in branch tables.
2283         (casesi, casesi0): Revise for new branch table formats.
2284         (casesi32, casesi32p, casesi64p): New casesi patterns.
2285         (indirect_jump): Move.
2286
2287 2003-10-29  David Edelsohn  <edelsohn@gnu.org>
2288
2289         * config/rs6000/rs6000.h (UNITS_PER_WORD): Revert to
2290         !TARGET_POWERPC64.
2291         (UNITS_PER_GPR_WORD): Delete.
2292         (HARD_REGNO_NREGS): Revert to UNITS_PER_WORD.
2293         (HARD_REGNO_MODE_OK): Same.
2294         (CLASS_MAX_NREGS): Same.
2295
2296 2003-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2297
2298         * pa.h (ASM_COMMENT_START): Define.
2299
2300 2003-10-29  Zack Weinberg  <zack@codesourcery.com>
2301
2302         * genmodes.c (complete_mode): Record MODE_CC, MODE_INT,
2303         MODE_FLOAT, and MODE_PARTIAL_INT modes as having one
2304         component, not zero.
2305
2306 2003-10-29  Andreas Schwab  <schwab@suse.de>
2307
2308         * config/ia64/t-ia64 (LIB2ADDEH): Add $(srcdir)/gthr-gnat.c.
2309
2310 2003-10-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
2311
2312         * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
2313         Never return 1 for complex integral modes whose size is lesser or
2314         equal to a word.
2315         (function_arg_pass_by_reference) [TARGET_ARCH64]: Mention CTImode
2316         in the comment.
2317         (function_arg_advance) [TARGET_ARCH64]: Don't special-case complex
2318         modes.
2319         (sparc_va_arg) [TARGET_ARCH64]: Handle any types whose size is
2320         greater than 16 bytes by reference.
2321
2322 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2323
2324         * config/ia64/ia64.c (ia64_assemble_integer): Test POINTER_SIZE,
2325         not TARGET_ILP32.
2326         (ia64_initialize_trampoline): Use globalize_label target call.
2327
2328 2003-10-29  Andreas Schwab  <schwab@suse.de>
2329
2330         * doc/install.texi (Building): Add a sentence about building Ada
2331         for a canadian cross.
2332
2333 2003-10-28  Zack Weinberg  <zack@codesourcery.com>
2334
2335         * config/ia64/ia64.c (cmptf_libfunc): New static.
2336         (ia64_expand_compare): Add logic to open-code calls to
2337         _U_Qfcmp for TFmode comparisons.
2338         (ia64_hpux_init_libfuncs): Initialize cmptf_libfunc.
2339         Set libfuncs for TFmode eq/ne/gt/ge/lt/gt to 0; these should
2340         never be generated anymore.
2341         * config/ia64/ia64.md (cmptf): New expander.
2342
2343 2003-10-28  Zack Weinberg  <zack@codesourcery.com>
2344
2345         * ia64.md (UNSPEC_SETF_EXP,UNSPEC_FR_SQRT_RECIP_APPROX): New constants.
2346         (*sqrt_approx): New instruction pattern for approximate square roots.
2347         (*setf_exp_xf): New instruction pattern for exponentiation.
2348         (*maddxf4_alts_truncsf): New instruction pattern for truncation.
2349         (sqrtsf2_internal_thr): New define_and_split implementing
2350         throughput-optimized inline calculation of SFmode square root.
2351         (sqrtdf2_internal_thr): Likewise for DFmode.
2352         (sqrtxf2_internal_thr): Likewise for XFmode.
2353         (sqrtsf2, sqrtdf2, sqrtxf2): New expanders to choose between
2354         latency- and throughput-optimized square root algorithms.
2355         * ia64.h (MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR,
2356         TARGET_INLINE_SQRT_LAT, TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT):
2357         New macros.
2358         (TARGET_SWITCHES): Add -minline-sqrt-min-latency and
2359         -minline-sqrt-max-throughput.
2360         * ia64.c (ia64_override_options): If both -minline-sqrt-min-latency
2361         and -minline-sqrt-max-throughput are given, notify the user
2362         that both options cannot be used simultaneously.
2363         If -minline-sqrt-min-latency is given, notify the user that
2364         this mode is not yet implemented.
2365         (rtx_needs_barrier): Reformat initial comment to obey
2366         72-character width limit.  Support UNSPEC_SETF_EXP and
2367         UNSPEC_FR_SQRT_RECIP_APPROX.
2368
2369 2003-10-29  Alan Modra  <amodra@bigpond.net.au>
2370
2371         * config/rs6000/rs6000.md (movdf_softfloat64): Allow dummy ctr,ctr
2372         moves.
2373
2374 2003-10-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2375
2376         PR target/11598
2377         PR libgcj/10610
2378         * config/rs6000/sysv4.h (PREFERRED_STACK_BOUNDARY): New macro.
2379
2380 2003-10-28  Richard Earnshaw  <rearnsha@arm.com>
2381
2382         * arm.c (arm_output_epilogue): When using a frame pointer, don't emit
2383         an extra stack adjustment insn if the stack pointer is already
2384         pointing at the right place.
2385         (use_return_insn): Allow a return insn to be used when we have a
2386         frame pointer if the stack pointer is in the right place.
2387         (output_return_instruction): Handle it.
2388
2389 2003-10-28  Andreas Jaeger  <aj@suse.de>
2390
2391         * ggc-zone.c (check_cookies): Add missing variable.
2392         Add void to prototypes.
2393
2394 2003-10-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2395
2396         * config/mips/irix6-libc-compat.c (inet_makeaddr): Prototype.
2397         * crtstuff.c (__do_global_ctors_1): Move prototype.
2398         * unwind-dw2.c (NO_SIZE_OF_ENCODED_VALUE): Define when
2399         appropriate.
2400         * unwind-sjlj.c (_Unwind_GetCFA, _Unwind_FindEnclosingFunction):
2401         Mark parameter with __attribute__((unused)).
2402
2403 2003-10-27  Zack Weinberg  <zack@codesourcery.com>
2404
2405         * c-decl.c (pushdecl): Clarify comment.
2406
2407 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
2408
2409         * doc/install.texi: Update instructions for Ada cross builds
2410
2411         PR ada/5909:
2412         * doc/sourcebuild.texi: Document Ada test suite.
2413
2414 2003-10-27  Stephane Carrez  <stcarrez@nerim.fr>
2415
2416         * config/m68hc11/m68hc11.c: Convert to ISO C90.
2417         * config/m68hc11/m68hc11-protos.h: Likewise.
2418
2419 2003-10-27  Jan Hubicka  <jh@suse.cz>
2420             Eric Botcazou  <ebotcazou@libertysurf.fr>
2421
2422         * toplev.c (enum dump_file_index, dump_file): Fix ordering of
2423         webizer pass dump.
2424
2425 2003-10-27  Jakub Jelinek  <jakub@redhat.com>
2426             Jan Hubicka  <jh@suse.cz>
2427
2428         * reload1.c (struct elim_table): Change offset, initial_offset and
2429         previous_offset fields to HOST_WIDE_INT.
2430         (offsets_at): Change from int to HOST_WIDE_INT.
2431         (reload): Adjust offsets_at initialization.
2432         (eliminate_regs_in_insn): Change type of offset to HOST_WIDE_INT.
2433         (verify_initial_elim_offsets): Change type of t to HOST_WIDE_INT.
2434         * config/i386/i386.c (ix86_compute_frame_layout): Change offset type
2435         to HOST_WIDE_INT.  Don't save regs using mov for huge frame sizes
2436         if TARGET_64BIT.
2437         (pro_epilogue_adjust_stack): New function.
2438         (ix86_expand_prologue, ix86_expand_epilogue): Use it.
2439         * config/i386/i386.md (pro_epilogue_adjust_stack): Remove.
2440         (pro_epilogue_adjust_stack_1): Remove * in front of name.
2441         (pro_epilogue_adjust_stack_rex64): Handle -2147483648 properly.
2442         (pro_epilogue_adjust_stack_rex64_2): New insn.
2443
2444         * config/i386/i386.c (ix86_expand_epilogue): Fix comment typo.
2445
2446         * config/i386/i386.c (ix86_expand_call): Replace 40 with
2447         FIRST_REX_INT_REG + 3 /* R11 */.
2448
2449 2003-10-26  Richard Henderson  <rth@redhat.com>
2450
2451         * config/alpha/alpha.md (attr cannot_copy): New.
2452         (call_osf_2_er, call_value_osf_2_er, ldgp_er_1, ldgp_er_2,
2453         prologue_ldgp_er_2, prologue_ldgp_1): Set it.
2454         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Test it.
2455
2456 2003-10-26  Daniel Berlin  <dberlin@dberlin.org>
2457
2458         * ggc-zone.c:  New file, zone allocating collector.
2459         * configure: Accept zone option for --with-gc
2460         * configure.in: Ditto.
2461         * ggc.h (ggc_pch_count_object): Pass bool indicating
2462         stringiness. Update all callers.
2463         (ggc_pch_alloc_object): Ditto.
2464         (ggc_pch_write_object): Ditto.
2465         (ggc_alloc_rtx): Use typed allocation, since all RTX's are of a single
2466         type.
2467         (ggc_alloc_rtvec): Ditto.
2468         (ggc_alloc_tree): Use zone allocation, since some things using this macro
2469         aren't a single typecode.
2470         * ggc-none.c (ggc_alloc_typed): New function.
2471         (ggc_alloc_zone): Ditto.
2472         * ggc-page.c: Ditto on both functions.
2473
2474 2003-10-26  Gunther Nikl  <gni@gecko.de>
2475
2476         * config/m68k/m68k.c (m68k_compute_frame_layout): Ensure FPU related
2477         frame information is always valid.
2478         (m68k_output_function_prologue): Remove superfluous TARGET_68881
2479         test; fix formatting.
2480
2481 2003-10-26  Gunther Nikl  <gni@gecko.de>
2482
2483         * config/m68k/m68k.c (m68k_compute_frame_layout): Swap reg_mask and
2484         reg_rev_mask computation.
2485         (m68k_output_function_prologue): Fix usage of current_frame (one typo
2486         and one missing); use reg_rev_mask not reg_mask.
2487         (m68k_output_function_epilogue): Fix usage of current_frame;
2488         use fpu_rev_mask not fpu_mask.
2489
2490 2003-10-26  Bernardo Innocenti  <bernie@develer.com>
2491
2492         * config/m68k/m68k.c (m68k_output_function_prologue): Eliminate
2493         num_saved_regs, use current_frame.reg_no instead.
2494
2495 2003-10-26  Bernardo Innocenti  <bernie@develer.com>
2496             Paul Dale  <pauli@snapgear.com>
2497
2498         * doc/extend.texi (interrupt_handler): Add m68k to the
2499         list of processors implementing it.
2500         * doc/invoke.texi (-msep-data): Document new m68k option.
2501         (-mno-sep-data): Likewise.
2502         (-mid-shared-library): Likewise.
2503         (-mno-id-shared-library): Likewise.
2504         (-mshared-library-id): Likewise.
2505
2506 2003-10-26  Andreas Jaeger  <aj@suse.de>
2507
2508         * unwind-dw2.c (_Unwind_GetGR): Avoid warning about unsigned
2509         comparison.
2510         (_Unwind_SetGR): Likewise.
2511
2512 2003-10-26  Ottavio Campana <ottavio@campana.vi.it>
2513
2514         PR target/12690
2515         * config/i386/mmintrin.h (_mm_set1_pi8): Fix comment.
2516
2517 2003-10-26  Gunther Nikl  <gni@gecko.de>
2518
2519         * config/m68k/m68k.c (m68k_output_function_prologue): Move front
2520         comment from here to...
2521         (m68k_save_reg): ...here. Fix comment formatting.
2522         (m68k_output_function_prologue): Fix comment formatting.
2523         (m68k_output_function_epilogue): Likewise.
2524         (const_method): Likewise.
2525
2526 2003-10-26  Kazu Hirata  <kazu@cs.umass.edu>
2527
2528         * toplev.c (default_get_pch_validity): Guard the use of
2529         target_options with #ifdef TARGET_OPTIONS.
2530         (default_pch_valid_p): Likewise.
2531
2532 2003-10-26  Andreas Jaeger  <aj@suse.de>
2533             Zack Weinberg  <zack@codesourcery.com>
2534             Andreas Tobler <toa@pop.agri.ch>
2535
2536         * dwarf2out.c (output_cfi): Use HOST_WIDE_INT_PRINT.
2537         (output_die): Likewise.
2538         (print_die): Likewise.
2539
2540 2003-10-26  Andreas Jaeger  <aj@suse.de>
2541
2542         * tree.h (dwarf2out_def_cfa, dwarf2out_args_size,
2543         dwarf2out_reg_save, new_loc_descr): Update prototypes for recent
2544         dwarf2out.c change.
2545
2546         * toplev.c (default_pch_valid_p): Fix warning.
2547
2548 2003-10-25  Roger Sayle  <roger@eyesopen.com>
2549
2550         * simplify-rtx.c (simplify_replace_rtx): Avoid allocating duplicate
2551         RTL nodes.  If an operator's operands are unchanged, return the
2552         original argument unchanged.
2553
2554 2003-10-26  Graham Stott  <graham.stott@btinternet.com>
2555
2556         Fix bootstrap failure.
2557         * expmed.c (store_bit_field): Don't compare bitsize against
2558         modes with zero bit-size.
2559
2560         (extract_bit_field): Likewise
2561
2562 2003-10-25  Jan Hubicka  <jh@suse.cz>
2563
2564         * dwarf2out.c (dw_cfi_oprnd_struct): Offset is HOST_WIDE_INT.
2565         (cfa_loc): Likewise.
2566         (reg_save, stack_adjust_offset, queue_reg_save): Replace long by
2567         HOST_WIDE_INT.
2568         (args_size, old_args_size): change type to HOST_WIDE_INT.
2569         (dwarf2out_def_cfa, dwarf2out_args_size,
2570         dwarf2out_reg_save, new_loc_descr): offset is HOST_WIDE_INT.
2571         (dw_val_struct): integers, unsigneds and offsets are HOST_WIDE_INT.
2572         (add_AT_int, add_AT_unsigned, att_AT_offset, AT_int, AT_unsigned,
2573         AT_offset): Use HOST_WIDE_INT.
2574         (based_loc_descr): offset is HOST_WIDE_INT.
2575         (add_data_member): Likewise.
2576         (add_const_value_attribute): Simplify.
2577
2578 2003-10-25  Richard Henderson  <rth@redhat.com>
2579
2580         * config/i386/i386.c (ix86_eax_live_at_start_p): New.
2581         (ix86_expand_prologue): Save and restore eax around stack probe
2582         if it's live.
2583
2584 2003-10-25  Jan Hubicka  <jh@suse.cz>
2585
2586         * cppcharset.c (one_utf8_to_utf32): Initialize 's' to silence warning.
2587
2588 2003-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
2589
2590         PR target/12712
2591         * reg-stack.c (convert_regs_1): Create an arbitrary input stack
2592         if the block has no predecessors.
2593         (convert_regs_2): Document the problem with successors whose
2594         only predecessor is the block to be processed.
2595         (convert_regs): Don't create the arbitrary input stack here.
2596
2597 2003-10-24  Zack Weinberg  <zack@codesourcery.com>
2598
2599         * genmodes.c (struct mode_data): Add contained and next_cont
2600         fields.
2601         (complete_mode): Maintain linked list of modes that have a
2602         given component.
2603         (emit_mode_unit_size): Delete.
2604         (emit_mode_nunits): New.
2605         (emit_insn_modes_c): Update to match.
2606         (emit_mode_adjustments): Propagate size and alignment
2607         adjustments from component modes to their containers.
2608         * machmode.h (mode_unit_size): Delete.
2609         (mode_nunits): New.
2610         (GET_MODE_NUNITS): Just return the value in the table.
2611         (GET_MODE_UNIT_SIZE): Compute using GET_MODE_INNER and
2612         GET_MODE_SIZE.
2613         * expmed.c (store_bit_field, extract_bit_field): Can use a
2614         plain move instruction if bitsize >= GET_MODE_BITSIZE of
2615         destination/source mode, respectively.
2616         * varasm.c (assemble_real): Write out the full size of the
2617         constant, not just its bitsize.
2618         (output_constant): Honor TYPE_MODE of TREE_REAL_CSTs.
2619
2620         * config/ia64/ia64-modes.def: Define XFmode as well as TFmode.
2621         Use ADJUST_BYTESIZE and ADJUST_ALIGNMENT to set size and
2622         alignment of XF and TF modes in compliance with ia64 ABIs.
2623         Can now hardwire the format of both modes.
2624         * config/ia64/ia64.c: Change TFmode to XFmode wherever appropriate.
2625         (general_tfmode_operand, destination_tfmode_operand)
2626         (tfreg_or_fp01_operand, spill_tfmode_operand): Rename to
2627         general_xfmode_operand, destination_xfmode_operand,
2628         xfreg_or_fp01_operand, spill_xfmode_operand respectively.
2629         (ia64_init_builtins): Make TYPE_PRECISION of fpreg_type
2630         and float80_type be 96 so they get XFmode.  Use !TARGET_HPUX,
2631         not INTEL_EXTENDED_IEEE_FORMAT, to decide how to define
2632         __float128.
2633         * config/ia64/ia64.h: Default TARGET_HPUX to 0.
2634         Change TFmode to XFmode wherever appropriate.  Remove all
2635         references to INTEL_EXTENDED_IEEE_FORMAT.
2636         (LONG_DOUBLE_TYPE_SIZE): Varies with TARGET_HPUX.
2637         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define (always 96).
2638         (PREDICATE_CODES): Update to match function renames.
2639         * config/ia64/ia64.md: Change TF to XF throughout; rename all
2640         patterns to match.  Remove all references to
2641         INTEL_EXTENDED_IEEE_FORMAT.  Update predicate calls to match
2642         function renames.
2643         * config/ia64/ia64-protos.c: Update all prototypes to match
2644         renamed functions.
2645         * config/ia64/hpux.h: Redefine TARGET_HPUX to 1.
2646         Remove all references to INTEL_EXTENDED_IEEE_FORMAT.
2647         * config/ia64/lib1funcs.asm: Add __divxf3 as new name for
2648         __divtf3; keep old name for backward compatibility.
2649         (L__compat): New section providing forwarding stubs for
2650         __fixtfti, __fixunstfti, __floattitf.
2651         * config/ia64/t-ia64: Add __compat to LIB1ASMFUNCS.
2652
2653 2003-10-24  Geoffrey Keating  <geoffk@apple.com>
2654
2655         PR 10757
2656         * c-pch.c: Include target.h.  Improve comments.
2657         (struct c_pch_validity): Add target_data_length.
2658         (pch_init): Add target's validity data.
2659         (c_common_valid_pch): Check target's validity data.
2660         * target-def.h (TARGET_GET_PCH_VALIDITY): New.
2661         (TARGET_PCH_VALID_P): New.
2662         (TARGET_INITIALIZER): Add new fields.
2663         * target.h: Include tm.h.
2664         (struct gcc_target): Add get_pch_validity, pch_valid_p.
2665         * toplev.h (default_get_pch_validity): New prototype.
2666         (default_pch_valid_p): New prototype.
2667         * toplev.c (default_get_pch_validity): New routine.
2668         (default_pch_valid_p): New routine.
2669         * Makefile.in (TARGET_H): Add TM_H.  Replace all users of
2670         target.h with $(TARGET_H).
2671         (c-pch.o): Add TARGET_H.
2672         * doc/tm.texi (PCH Target): New node.
2673         (TARGET_GET_PCH_VALIDITY): Document.
2674         (TARGET_PCH_VALID_P): Document.
2675
2676 2003-10-24  Kelley Cook  <kcook@gcc.gnu.org>
2677
2678         * Makefile.in: Define a vpath for %.texi.  Remove explicit $(docdir)
2679         and $(docdir)/include from any *.texi dependencies.
2680         ($(docobjdir)/%.dvi): Depend on stmp-docobjdir.
2681         ($(docobjdir)/%.1): Depend on .pod instead of .texi.
2682         ($(docobjdir)/%.7): Likewise.
2683         (%.pod): New implicit rule.
2684         (cpp.pod): New dependency only rule.
2685         (gcc.pod): New intermediate rule with dependencies and commands.
2686         (gfdl.pod): Likewise.
2687         (fsf-funding.pod): Likewise.
2688
2689 2003-10-24  Nathanael Nerode  <neroden@gcc.gnu.org>
2690
2691         * fixinc/mkfixinc.sh: Remove special cases for svr4 and ptx, and
2692         related code.
2693         * fixinc/fixinc.ptx: Remove.
2694         * fixinc/fixinc.svr4: Remove.
2695
2696 2003-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
2697
2698         * config/s390/s390.c (load_multiple_operation): Allow both SImode
2699         and DImode if word_mode is DImode.
2700         (store_multiple_operation): Likewise.
2701         * config/s390/s390.md ("load_multiple", "store_multiple"): Likewise.
2702         ("*load_multiple_di"): Allow only if word_mode == DImode.
2703         ("movqi"): Use LLGC whenever TARGET_ZARCH.
2704         ("fix_truncdfsi2"): Fix incorrect temporary size.
2705         ("fix_truncsfsi2"): Likewise.
2706         ("*bras_r", "*brasl_r", "*basr_r"): Remove predicate and constraint
2707         string for function return value operand.
2708         ("*bras_tls", "*brasl_tls", "*basr_tls"): Likewise.
2709
2710 2003-10-24  Joseph S. Myers  <jsm@polyomino.org.uk>
2711
2712         * c-parse.in (array_declarator): Use expr_no_commas.
2713         Fixes PR c/11943.
2714
2715 2003-10-24  Richard Sandiford  <rsandifo@redhat.com>
2716
2717         * config/mips/linux.h: Wrap MD_FALLBACK_FRAME_STATE_FOR and
2718         associated includes in #ifndef inhibit_libc.
2719
2720 2003-10-24  Roger Sayle  <roger@eyesopen.com>
2721
2722         * doc/libgcc.texi: Document some more of the libgcc API.
2723
2724 2003-10-24  Richard Earnshaw  <rearnsha@arm.com>
2725
2726         * arm.c (arm_rtx_costs_1, case TARGET_THUMB): Adjust costs for
2727         comparing a constant with small negative numbers and add costing
2728         for constants in conjunction with AND.
2729         (note_invalid_constants): Tidy previous change.
2730         (thumb_cmp_operand): Tidy.
2731         (thumb_cmpneg_operand): New function.
2732         * arm.h (CONDITIONAL_REGISTER_USAGE): Don't use HI regs if optimizing
2733         for size.
2734         (FIRST_LO_REGNUM, FIRST_HI_REGNUM, LAST_HI_REGNUM): Define.
2735         (PREDICATE_CODES): Add thumb_cmpneg_operand.
2736         * arm.md (cbranchsi4): Convert to define_expand.  Handle comparison
2737         with a negative constant.
2738         (cbranchsi4_insn): Matcher for cbranchsi4.
2739         (cbranchsi4_scratch): Similar, but a scratch is available for
2740         handling negative constants.
2741         (movsi_cbranchsi4): New pattern.
2742         (tstsi3_cbranch): Renamed from andsi3_cbranch_scratch, remove scratch
2743         and use the TST instruction.
2744         (andsi3_cbranch, orrsi3_cbranch, xorsi3_cbranch, cbranchne_decr1)
2745         (addsi3_cbranch, subsi3_cbranch): Ensure that register preferencing
2746         cannot see high regs or memory alternatives.
2747         (bicsi3_cbranch_scratch, bicsi3_cbranch): New patterns.
2748
2749 2003-10-24  Richard Earnshaw  <rearnsha@arm.com>
2750
2751         * arm.c (note_invalid_constants): Try to extract the constant
2752         pool value using avoid_constant_pool_reference; only use
2753         get_pool_constant if that returns the original reference.
2754
2755 2003-10-24  Jan Hubicka  <jh@suse.cz>
2756
2757         PR c++/12624
2758         * varasm.c (notice_global_symbol): Disqualify global registers.
2759
2760 2003-10-23  Roger Sayle  <roger@eyesopen.com>
2761
2762         PR middle-end/11414
2763         * loop.c (load_mems): Use redirect_jump to forward jumps from
2764         the original loop end label to the new "loop sink" block's label.
2765
2766 2003-10-23  Roger Sayle  <roger@eyesopen.com>
2767
2768         PR middle-end/12705
2769         * optabs.c (expand_binop): When expanding complex operations
2770         inline, always calculate result into a new temporary register.
2771         Minor code clean-ups.
2772
2773 2003-10-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2774
2775         * objc/lang-specs.h: Handle -print-objc-runtime-info.
2776         * doc/invoke.texi (Objective-C Dialect Options): Document it.
2777
2778 2003-10-24  Danny Smith  <dannysmith@users.sourceforge.net>
2779
2780         * config/i386/cygwin.asm: Add copyright notice. Add comment
2781         on why this code is needed.
2782
2783 2003-10-23  Kazu Hirata  <kazu@cs.umass.edu>
2784
2785         * config/h8300/clzhi2.c: Fix warnings.
2786         * config/h8300/ctzhi2.c: Likewise.
2787         * config/h8300/fixunssfsi.c: Likewise.
2788         * config/h8300/parityhi2.c: Likewise.
2789         * config/h8300/popcounthi2.c: Likewise.
2790
2791 2003-10-23  James E Wilson  <wilson@specifixinc.com>
2792
2793         * gcc.c (option_map): Delete --target and --use-version.
2794
2795 2003-10-23  Fariborz Jahanian  <fjahanian@apple.com>
2796             David Edelsohn  <edelsohn@gnu.org>
2797
2798         * config/rs6000/rs6000.h (UNITS_PER_WORD): Use TARGET_32BIT, not
2799         TARGET_POWREPC64.
2800         (UNITS_PER_GPR_WORD): Define.
2801         (HARD_REGNO_NREGS): Use UNITS_PER_GPR_WORD.
2802         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
2803         (HARD_REGNO_MODE_OK): Use UNITS_PER_GPR_WORD.
2804         (CLASS_MAX_NREGS): Use UNITS_PER_GPR_WORD.
2805         * config/rs6000/rs6000.c (function_arg): Generate PARALLEL for
2806         DFmode and DImode in 32-bit ABI / 64-bit computation mode.
2807         (rs6000_emit_prologue): Select reg_mode and reg_size using
2808         TARGET_32BIT, not TARGET_POWERPC64.
2809         (rs6000_function_value): Generate PARALLEL for DImode in 32-bit
2810         ABI / 64-bit computation mode
2811
2812 2003-10-22  Andrew Haley  <aph@redhat.com>
2813
2814         * toplev.c (output_file_directive): Allow for null input_name.
2815
2816 2003-10-22  Waldek Hebisch <hebisch@math.uni.wroc.pl>
2817
2818         * config/i386/i386.c (classify_argument): Handle SET_TYPE.
2819
2820 2003-10-22  Chris Demetriou  <cgd@broadcom.com>
2821
2822         * configure.in: In --enable-generated-files-in-srcdir option
2823         handling, fix default case handling.
2824         * configure: Regenerate.
2825
2826 2003-10-22  Phil Edwards  <phil@codesourcery.com>
2827
2828         * config.gcc:  Update *-*-vxworks* generic hook and comments.
2829         (arm-wrs-vxworks, i[4567]86-wrs-vxworks, mips-wrs-vxworks,
2830         mips-wrs-windiss, sh-wrs-vxworks):  New stanzas.
2831         * genmultilib:  Allow the MULTILIB_OSDIRNAMES to be mapped directly.
2832         * config/svr4.h (SWITCH_TAKES_ARG):  Undefine it before redefining it.
2833         * config/windiss.h:  New file.
2834         * config/arm/t-vxworks:  New file.
2835         * config/arm/vxworks.h:  New file.
2836         * config/i386/t-vxworks:  New file.
2837         * config/i386/vxworks.h:  New file.
2838         * config/mips/t-vxworks:  New file.
2839         * config/mips/vxworks.h:  New file.
2840         * config/mips/windiss.h:  New file.
2841         * config/sh/t-vxworks:  New file.
2842         * config/sh/vxworks.h:  New file.
2843
2844 2003-10-22  Kazu Hirata  <kazu@cs.umass.edu>
2845
2846         * config/h8300/h8300.c (h8300_output_function_epilogue): Remove.
2847         (h8300_saveall_function_p): New.
2848         (h8300_insert_attributes): Insert the saveall attribute if
2849         #pragma saveall is specified.
2850         (h8300_attribute_table): Add saveall.
2851         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
2852         * doc/extend.texi: Mention the saveall attribute.
2853
2854 2003-10-22  Joseph S. Myers  <jsm@polyomino.org.uk>
2855
2856         * c-typeck.c (pedantic_lvalue_warning): Unconditionally warn of
2857         deprecation of casts as lvalues.
2858         * fixinc/inclhack.def (obstack_lvalue_cast): New fix.
2859         * fixinc/fixincl.x: Regenerate.
2860         * fixinc/tests/base/obstack.h: New test.
2861
2862 2003-10-22  Andreas Schwab  <schwab@suse.de>
2863
2864         PR target/12676
2865         * config/m68k/m68k.c (output_addsi3): Fix range check to work on
2866         LP64 platforms.
2867
2868 2003-10-22  Jan Hubicka  <jh@suse.cz>
2869
2870         * dwarf2out.c (dwarf2out_abstract_function): Use DW_AT to check
2871         presence of DW_AT_inline.
2872         (gen_subprogram_die): Likewise; do not abort instead of emitting
2873         DW_AT_not_inline.
2874
2875 2003-10-22  Jan Hubicka  <jh@suse.cz>
2876
2877         * cgraph.c (cgraph_function_possibly_inlined_p): Be conservative when
2878         global info is not ready.
2879
2880 2003-10-22  Kazu Hirata  <kazu@cs.umass.edu>
2881
2882         * doc/extend.texi: Mention H8S wherever H8/300H is mentioned.
2883
2884 2003-10-22  Ulrich Weigand  <uweigand@de.ibm.com>
2885
2886         * config/s390/s390.md ("movstr_short_64", "movstr_short_31"): Merge ...
2887         ("*movstr_short"): ... into this insn pattern.
2888         ("movstr_short"): New expander.
2889         ("*movstr_long_64"): Rename from "movstr_long_64", simplify.
2890         ("*movstr_long_31"): Rename from "movstr_long_31", simplify.
2891         ("movstr_long"): New expander.
2892         ("clrstr_short_64", "clrstr_short_31"): Merge ...
2893         ("*clrstr_short"): ... into this insn pattern.
2894         ("clrstr_short"): New expander.
2895         ("*clrstr_long_64"): Rename from "clrstr_long_64", simplify.
2896         ("*clrstr_long_31"): Rename from "clrstr_long_31", simplify.
2897         ("clrstr_long"): New expander.
2898         ("cmpmem_short_64", "cmpmem_short_31"): Merge ...
2899         ("*cmpmem_short"): ... into this insn pattern.
2900         ("cmpmem_short"): New expander.
2901         ("*cmpmem_long_64"): Rename from "cmpmem_long_64".
2902         ("*cmpmem_long_31"): Rename from "cmpmem_long_31".
2903         ("cmpmem_long"): New expander.
2904         * config/s390/s390.c (s390_expand_movstr): Use new expanders.
2905         (s390_expand_clrstr): Likewise.
2906         (s390_expand_cmpmem): Likewise.
2907
2908 2003-10-22  Mark Mitchell  <mark@codesourcery.com>
2909
2910         * c-pch.c (struct c_pch_validity): Add pch_init field.
2911         (pch_init): Set it.
2912         (c_common_valid_pch): Check it.
2913
2914 2003-10-22  David Taylor <dtaylor@emc.com>
2915
2916         PR debug/12500
2917         * dbxout.c (dbxout_typedefs): Use COMPLETE_OR_VOID_TYPE_P.
2918
2919 2003-10-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2920
2921         * config/alpha/alpha.c (function_value [ENABLE_CHECKING]): Don't call
2922         alpha_return_in_memory if no VALTYPE specified.
2923
2924 2003-10-22  Jan Hubicka  <jh@suse.cz>
2925
2926         PR debug/12389
2927         * Makefile.in (dwarf2out.o): Depend on cgraph.h.
2928         * cgraph.c (cgraph_function_possibly_inlined_p): New function.
2929         * cgraph.h (cgraph_function_possibly_inlined_p): Declare.
2930         (cgraph_global_info): Add flag inlined
2931         * dwarf2out.c (gen_subprogram_die, gen_decl_die): Use
2932         cgraph_function_possibly_inded_p
2933         * cgraphunit.c (mark_inline): Set inlined flag.
2934         * toplev.c (rest_of_decl_compilation): Call outlining_inline_function
2935         only for possibly inlined functions.
2936         * c-decl.c (duplicate_decls): Never output abstract DIE representing old
2937         body of function.
2938
2939 2003-10-22  Andrew Haley  <aph@redhat.com>
2940
2941         * varasm.c (output_constructor): Make constructor annotation
2942         conditional on ASM_COMMENT_START.
2943
2944 2003-10-21  Jason Merrill  <jason@redhat.com>
2945
2946         * tree.c (get_unwidened): Check TREE_UNSIGNED on the field's type.
2947         (get_narrower): Likewise.
2948
2949         * stor-layout.c (layout_decl): Do packed field alignment for
2950         bit-fields, too.
2951
2952 2003-10-21  Eric Christopher  <echristo@redhat.com>
2953
2954         * expr.c (convert_move): Use FLOAT_EXTEND for extensions.
2955
2956 2003-10-21  Geoffrey Keating  <geoffk@apple.com>
2957
2958         * c-pch.c: Add comments in various places.
2959         (struct c_pch_validity): Add the lengths of various strings.
2960         (host_machine): New static.
2961         (target_machine): New static.
2962         (get_ident): Bump version number.
2963         (pch_init): Write out version, host, target validity data.
2964         (c_common_valid_pch): Check version, host, target.
2965         * Makefile.in (c-pch.o): Add version.h; define HOST_MACHINE and
2966         TARGET_MACHINE.
2967
2968 2003-10-21  Jason Merrill  <jason@redhat.com>
2969
2970         * tree.h (IS_EXPR_CODE_CLASS): Use strchr.
2971         (EXPR_P): New macro.
2972
2973 2003-10-21  Zack Weinberg  <zack@codesourcery.com>
2974
2975         * config/ia64/ia64.md (cmpxchg_acq_si): Mark operand 3 as DImode.
2976         * config/ia64/ia64.c (ia64_expand_fetch_and_op,
2977         ia64_expand_op_and_fetch): Make sure the REG for ar.ccv is
2978         DImode.   Use convert_move to load ar.ccv.
2979         (ia64_expand_compare_and_swap): Likewise.
2980         If expand_expr doesn't put 'old' and 'new' in the proper
2981         modes, run them through convert_to_mode.
2982
2983 2003-10-21  Eric Christopher  <echristo@redhat.com>
2984
2985         * config/frv/frv.c (frv_adjust_field_align): Check DECL_ARTIFICIAL
2986         for too large bitfields.
2987
2988 2003-10-21  Mark Mitchell  <mark@codesourcery.com>
2989
2990         * Makefile.in ($(docobjdir)/%.info): Honor BUILD_INFO.
2991
2992 2003-10-21  Andrew Haley  <aph@redhat.com>
2993
2994         * varasm.c (output_constructor): Annotate constructor.
2995
2996 2003-10-21  Mark Mitchell  <mark@codesourcery.com>
2997
2998         * Makefile.in ($(DESTDIR)$(infodir)/%.info): Conditionalize chmod
2999         on existence of destination file.
3000
3001 2003-10-21  Jan Hubicka  <jh@suse.cz>
3002
3003         * haifa-sched.c (choose_ready): Initialize index.
3004
3005 2003-10-21  Jason Merrill  <jason@redhat.com>
3006
3007         * tree.c (build1): Fix off-by-one error.
3008
3009 2003-10-21  Robert Millan  <robertmh@gnu.org>
3010
3011         * config/i386/kfreebsdgnu.h: New. i386-*-kfreebsd-gnu definitions.
3012         * config/kfreebsdgnu.h: New. *-*-kfreebsd-gnu definitions.
3013         * config/t-kfreebsd-gnu: New. *-*-kfreebsd-gnu tmake_file.
3014         * config.gcc: Add *-*-kfreebsd*-gnu and i[34567]86-*-kfreebsd*-gnu.
3015
3016 2003-10-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
3017
3018         * web.c: Fix various comments.
3019
3020 2003-10-20  Nicolas Pitre <nico@cam.org>
3021
3022         * config/arm/arm.c (arm_override_options): Set arm_constant_limit
3023         to 2 instead of 1 when optimize_size is true.  Gather code based on
3024         optimize_size together.  Add comment about XScale load latency.
3025
3026 2003-10-21  Gunther Nikl  <gni@gecko.de>
3027
3028         * config/m68k/m68k.c (m68k_output_function_prologue): Remove
3029         obsolete comments.
3030
3031 2003-10-20  Kelley Cook  <kcook@gcc.gnu.org>
3032
3033         * Makefile.in: Get parsedir and docobjdir from configure.
3034         * configure.in: Recogonize --enable-generated-files-in-srcdir.
3035         Pass along parsedir and docobjdir.
3036         * configure: Regenerate.
3037         * doc/install.texi: Document --enable-generated-files-in-srcdir.
3038
3039 2003-10-20  Kelley Cook  <kcook@gcc.gnu.org>
3040
3041         * Makefile.in: Define $(docdir) before the Make-lang.in fragments are
3042         included.
3043
3044 2003-10-20  Joseph S. Myers  <jsm@polyomino.org.uk>
3045
3046         * c-common.c (expand_tree_builtin): Ensure creal and cimag
3047         functions do not return lvalues.
3048
3049 2003-10-20  Jason Merrill  <jason@redhat.com>
3050
3051         PR c/12553
3052         * tree.c (build1) <ADDR_EXPR>: Set TREE_SIDE_EFFECTS
3053         appropriately.
3054
3055         PR c/11446
3056         * stor-layout.c (layout_decl): Fix alignment handling.
3057
3058 2003-10-20  Joseph S. Myers  <jsm@polyomino.org.uk>
3059
3060         * doc/extend.texi: Deprecate casts as lvalues.
3061
3062 2003-10-20  Jan Hubicka  <jh@suse.cz>
3063
3064         * toplev.c (rest_of_compilation): Fix webizer pass ordering.
3065
3066         * cgraphunit.c (decide_is_function_needed):  Fix test dealing
3067         with functions implicitly made inline.
3068
3069         * cgraphunit.c (cgraph_decide_inlining_incrementally):  New function.
3070         (cgraph_finalize_function): Use it.
3071         (cgraph_mark_inline): Allow incrmental decisions
3072         * invoke.texi (max-inline-slope, min-inline-insns): Kill.
3073         * params.def (PARAM_MAX_INLINE_SLOPE, PARAM_MIN_INLINE_INSNS): Kill.
3074         * tree-inline.c (limits_allow_inlining): Kill.
3075         (expand_call_inline): Always use unit-at-a-time path.
3076
3077 2003-10-20  Zack Weinberg  <zack@codesourcery.com>
3078
3079         * fixinc/inclhack.def (hpux11_snprintf): New edit.
3080         * fixinc/fixincl.x: Regenerate.
3081         * fixinc/tests/base/stdio.h: Add test for hpux11_snprintf.
3082
3083 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
3084
3085         * Makefile.in (install-info): Simplify.
3086         ($(DESTDIR)$(infodir)/%.info): New rule.
3087         * configure.in (target_list): Remove install-info.
3088         * doc/.cvsignore (gcc.info*): Remove.
3089         (gccint.info*): Likewise.
3090         (gccinstall.info*): Likewise.
3091         (cpp.info*): Likewise.
3092         (cppinternals.info*): Likewise.
3093         (*.info*): Add it.
3094         * doc/sourcebuild.texi: Update description of install-info.
3095         * objc/Make-lang.in (objc.install-info): Remove.
3096
3097 2003-10-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3098
3099         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Define _ABIO32.
3100         Use it in _MIPS_SIM definition.
3101         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Likewise.
3102
3103 2003-10-20  Zack Weinberg  <zack@codesourcery.com>
3104
3105         * config/i386/i386.c (print_reg): Abort if REGNO (x) is a
3106         virtual register, but only if file == asm_out_file.
3107         * config/i386/i386.h (HI_REGISTER_NAMES): Use "argp", not "",
3108         for ARG_POINTER_REGNUM.
3109
3110 2003-10-20  Zack Weinberg  <zack@codesourcery.com>
3111
3112         * c-common.c (registered_builtin_types): New static.
3113         (c_common_type_for_mode): Consult registered_builtin_types.
3114         (c_register_builtin_type): Add type to registered_builtin_types.
3115         * optabs.c (init_floating_libfuncs): Initialize libfuncs for
3116         all MODE_FLOAT modes, not just the ones corresponding to
3117         float_type_node, double_type_node, and long_double_type_node.
3118
3119 2003-10-20  Richard Henderson  <rth@redhat.com>
3120
3121         * config/alpha/alpha.h (PREDICATE_CODES): Add normal_memory_operand.
3122         * config/alpha/alpha-protos.h: Remove PREDICATE_CODES prototypes.
3123
3124 2003-10-20  Dorit Naishlos  <dorit@il.ibm.com>
3125
3126         * config/rs6000/rs6000.h: (rs6000_sched_insert_nops):
3127         support new flag -minsert-sched-nops.
3128         (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Define.
3129         * config/rs6000/rs6000.c: (rs6000_sched_insert_nops):
3130         support new flag -minsert-sched-nops.
3131         (is_cracked_insn, is_microcoded_insn): New functions.
3132         (rs6000_sched_finish): New function.
3133         (rs6000_issue_rate): Return 5 for power4.
3134         (get_next_active_insn, insn_terminates_group_p): New
3135         functions.
3136         (is_costly_group, force_new_group): New functions.
3137         (redefine_groups, pad_groups): New functions.
3138         (rs6000_variable_issue): Use new functions.
3139         * doc/invoke.texi (-minsert-sched-nops): Document new
3140         option.
3141
3142 2003-10-20  David S. Miller  <davem@redhat.com>
3143
3144         * config/sparc/sparc.md (type attribute): Add new insn types
3145         fpa, fpm_pack, fgm_mul, fgm_pdist, and fgm_cmp for VIS.
3146         (patterns emitting VIS insns): Use them.
3147         * config/sparc/ultra1_2.md: Add VIS scheduling rules.
3148         * config/sparc/ultra3.md: Likewise.
3149
3150 2003-10-20  Falk Hueffner  <falk@debian.org>
3151
3152         PR target/12654
3153         * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't do
3154         comparison against constant by adjusting the argument except for
3155         EQ and NE.
3156
3157 2003-10-19  Mark Mitchell  <mark@codesourcery.com>
3158
3159         * config.gcc: Add support for arm926ejs, arm1026ejs, arm1136js,
3160         arm1136jfs, and armv6j.
3161         * config/arm/arm.c (FL_ARCH6J): New macro.
3162         (FL_VFPV2): Likewise.
3163         (all_cores): Add entries for arm926ejs, arm1026ejs, arm1136js,
3164         and arm1136jfs.
3165         (all_architectures): Add entry for armv6j.
3166         (arm_override_options): Add entries for arm926ejs, arm1026ejs,
3167         arm1136js, and arm1136jfs.
3168         * config/arm/arm.h (TARGET_CPU_arm926ej_s): New macro.
3169         (TARGET_CPU_arm1026ej_s): Likewise.
3170         (TARGET_CPU_arm1136j_s): Likewise.
3171         (TARGET_CPU_arm1136jf_s): Likewise.
3172         * doc/invoke.texi: Document new ARM cores and architecture
3173         variants.
3174
3175 2003-10-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3176
3177         * Makefile.in (toplev.o): Add value-prof.h dependency.
3178         (value-prof.o): Add REGS_H dependency.
3179         * common.opt (fprofile-values, fvpt): New.
3180         * flags.h (flag_value_profile_transformations): Declare.
3181         * opts.c (common_handle_option): Handle -fprofile_values and
3182         -fvpt.
3183         * profile.c (branch_prob): Don't remove death notes here.
3184         * timevar.def (TV_VPT): New.
3185         * value-prof.c: Include regs.h.
3186         (insn_divmod_values_to_profile, gen_divmod_fixed_value, gen_mod_pow2,
3187         gen_mod_subtract, divmod_fixed_value_transform,mod_pow2_value_transform,
3188         mod_subtract_transform, value_profile_transformations): New.
3189         (insn_values_to_profile): Call insn_divmod_values_to_profile.
3190         (find_values_to_profile): Add dumps.
3191         * value-prof.h (value_profile_transformations): Declare.
3192         * toplev.c: Include value-prof.h.
3193         (rest_of_handle_value_profile_transformations): New.
3194         (enum dump_file_index): Add DFI_vpt.
3195         (dump_file): Add vpt dump.
3196         (flag_value_profile_transformations): New.
3197         (lang_independent_options): Add flag_profile_values and
3198         flag_value_profile_transformations.
3199         (rest_of_compilation): Call
3200         rest_of_handle_value_profile_transformations.
3201         (process_options): Let -fvpt imply -fprofile-values.
3202         * doc/invoke.texi (-fvpt): Document.
3203
3204 2003-10-19  Jan Hubicka  <jh@suse.cz>
3205
3206         * i386.c (print_reg): Do not abort on certain registers.
3207
3208         PR optimization/12612
3209         * reg-stack.c (subst_stack_regs_pat):  Use st(1) for clobbers.
3210         * i386.md (fpatan, fyl2x, fscale patterns and expanders): Use
3211         match_scratch; avoid bogus paralles.
3212
3213         PR target/12674
3214         * i386.c (ix86_function_regparm): Disable implicit register passing
3215         conventions when profiling.
3216
3217 2003-10-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
3218             Richard Henderson  <rth@redhat.com>
3219
3220         PR optimization/8178
3221         * config/i386/i386.md (*movsi_zero): Delete.
3222         (*ffs_no_cmove): Use ix86_expand_clear to zero the third operand.
3223
3224 2003-10-19  Richard Henderson  <rth@redhat.com>
3225
3226         * config/alpha/alpha.c (fix_operator): New.
3227         (divmod_operator): Tidy.
3228         (alpha_emit_xfloating_cvt): Handle UNSIGNED_FIX.
3229         * config/alpha/alpha.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
3230         (PREDICATE_CODES): Update.
3231         * config/alpha/alpha.md (fix_truncdfsi_ieee): Use match_operator.
3232         (fix_truncdfsi_internal, fix_truncdfdi_ieee): Likewise.
3233         (fix_truncsfsi_ieee, fix_truncsfsi_internal): Likewise.
3234         (fix_truncsfdi_ieee): Likewise.
3235         (fix_truncdfdi2, fix_truncsfdi2): Turn into define_expand.
3236         (fixuns_truncdfdi2, fixuns_truncsfdi2, fixuns_trunctfdi2): New.
3237         * config/alpha/alpha-protos.h: Update.
3238
3239 2003-10-19  Richard Sandiford  <rsandifo@redhat.com>
3240
3241         * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Simplify.
3242         * config/mips/mips.c (mips_load_got): Assume Pmode == ptr_mode.
3243         * config/mips/mips.md (extendsidi2, *extendsidi2): Merge. Don't accept
3244         constant operands.
3245
3246 2003-10-18  Kazu Hirata  <kazu@cs.umass.edu>
3247
3248         * doc/extend.texi: Fix typos.
3249         * doc/invoke.texi: Likewise.
3250
3251 2003-10-18  Nicolas Pitre <nico@cam.org>
3252
3253         * config/arm/arm.c (arm_override_options): Use arm_tune_xscale for
3254         XScale optimizations not arm_arch_xscale.
3255         * config/arm/arm.h (CONSTANT_ALIGNMENT_FACTOR, MOVE_RATIO): Likewise.
3256
3257 2003-10-18  Ulrich Weigand  <uweigand@de.ibm.com>
3258
3259         * config/s390/s390-protos.h (shift_count_operand): Add prototype.
3260         * config/s390/s390.c (shift_count_operand): New function.
3261         (s390_extra_constraint): Use it to implement 'Y' constraint.
3262         (print_shift_count_operand): New function.
3263         (print_operand): Use it to implement '%Y'.
3264         * config/s390/s390.h (EXTRA_ADDRESS_CONSTRAINT): Add 'Y' constraint.
3265         (PREDICATE_CODES): Add shift_count_operand.
3266         * config/s390/s390.md ("rotldi3"): Merge alternatives,
3267         using "shift_count_operand" predicate and "Y" constraint,
3268         and "%Y" to output the combined shift count.
3269         ("rotlsi3"): Likewise.
3270         ("ashldi3", "*ashldi3_31", "*ashldi3_64"): Likewise.
3271         ("ashrdi3", "*ashrdi3_31", "*ashrdi3_64", "*ashrdi3_cc_31",
3272         "*ashrdi3_cc_64", "*ashrdi3_cconly_31", "*ashrdi3_cconly_64"): Likewise.
3273         ("ashlsi3", "ashrsi3", "*ashrsi3_cc", "*ashrsi3_cconly"): Likewise.
3274         ("lshrdi3", "*lshrdi3_31", "*lshrdi3_64"): Likewise.
3275         ("lshrsi3"): Likewise.
3276
3277 2003-10-18  Gunther Nikl  <gni@gecko.de>
3278
3279         * config/m68k/m68k.c (m68k_output_function_epilogue): Add missing
3280         argument to asm_fprintf statement.
3281
3282 2003-10-18  Fariborz Jahanian  <fjahanian@apple.com>
3283
3284         * rs6000.md: Separate TARGET_POWERPC64 patterns for TARGET_64BIT or TARGET_32BIT.
3285         (ashrdisi3_noppc64) Generate more efficient code for 32-bit right-shift of
3286         a "long long" argument.
3287
3288 2003-10-18  Alexandre Oliva  <aoliva@redhat.com>
3289
3290         * final.c (final_scan_insn): Run FINAL_PRESCAN_INSNS on asm insns
3291         as well.
3292
3293 2003-10-18  Richard Sandiford  <rsandifo@redhat.com>
3294
3295         * rtl.h (rtl_size): Declare.
3296         (rtunion): Remove rtwint.
3297         (rtx_def): Replace 'fld' with a union of an rtunion or a HOST_WIDE_INT.
3298         (RTX_HDR_SIZE, RTX_SIZE): New macros.
3299         (RTL_CHECK1): Adjust for new rtx_def layout.
3300         (RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2): Likewise.
3301         (XWINT, XCWINT): Likewise.  Access the rtx structure directly.
3302         (X0WINT): Remove.
3303         (X0ANY): New macro.
3304         * rtl.def: Adjust comments for new rtx_def layout.
3305         * ggc.h (ggc_alloc_rtx): Take the rtx code as argument, not the
3306         number of slots.
3307         * rtl.c (rtx_size): New array.
3308         (rtx_alloc): Adjust call to ggc_alloc_rtx.  Use RTX_HDR_SIZE.
3309         (copy_rtx): Use RTX_HDR_SIZE.  Adjust for new rtx_def layout.
3310         (shallow_copy_rtx): Adjust call to ggc_alloc_rtx.  Use RTX_SIZE.
3311         * integrate.c (copy_rtx_and_substitute): Use X0ANY to copy '0' fields.
3312         * emit-rtl.c (copy_most_rtx): Likewise.
3313         (copy_rtx_if_shared): Use RTX_SIZE.
3314         (copy_insn_1): Use RTX_HDR_SIZE.  Adjust for new rtx_def layout.
3315         * gengenrtl.c (gendef): Adjust ggc_alloc_rtx call.  Use RTX_HDR_SIZE.
3316         * gengtype.c (write_rtx_next): Use RTX_HDR_SIZE.
3317         (adjust_field_rtx_def): Expect "rtx_def" to be a union rather than
3318         an array.  Adjust output for new rtx_def layout.
3319         * ggc-page.c (RTL_SIZE): Use RTX_HDR_SIZE.
3320         * reload1.c (eliminate_regs): Use RTX_SIZE.
3321         * rtlanal.c (loc_mentioned_in_p): Adjust for new rtx_def layout.
3322         * gdbinit.in (pi): Likewise.
3323
3324 2003-10-18  Jan Hubicka  <jh@suse.cz>
3325
3326         * integrate.c (copy_decl_for_inlining): Revert previous patch.
3327
3328 2003-10-18  Jan Hubicka  <jh@suse.cz>
3329
3330         * integrate.c (copy_decl_for_inlining): Fix copying of copies.
3331
3332 2003-10-18  Roger Sayle  <roger@eyesopen.com>
3333
3334         * libgcc.texi: Group multi-word types, such as "long double" and
3335         "unsigned int", using braces in @deftypefn and @deftypefnx nodes.
3336         Document __unord?f2 as returning a non-zero value, not just one.
3337
3338 2003-10-18  Hans-Peter Nilsson  <hp@bitrange.com>
3339
3340         * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Define.
3341         ($(T)crti.o, $(T)crtn.o): Pass CRTSTUFF_T_CFLAGS here too.
3342
3343 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
3344
3345         * config/i386/k6.md (k6_alux): Use the 'mode' attribute instead of
3346         match_operand.
3347
3348 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
3349
3350         * config/sparc/sparc.c (function_arg_record_value_1): New fourth
3351         parameter packed_p.  Search for a DECL_PACKED field only if
3352         packed_p is false.  Pass packed_p recursively.
3353         (function_arg_record_value_2): Likewise.
3354         (function_arg_record_value): Update calls to
3355         function_arg_record_value_1 and function_arg_record_value_2.
3356
3357 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
3358
3359         * cse.c (cse_insn) [src_folded]: Check that the tentative replacement
3360         was successfully forced to memory before using the result.
3361
3362 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
3363
3364         PR optimization/8178
3365         * config/i386/i386.md (*movsi_zero): New insn to set
3366         a register to zero on TARGET_USE_MOV0 targets.
3367
3368 2003-10-18  Kelley Cook  <kcook@gcc.gnu.org>
3369
3370         * Makefile.in (Makefile): Depend on the all Make-lang.in fragments.
3371         (POSTSTAGE1_FLAGS_TO_PASS): Pass down MAKEINFO and MAKEINFOFLAGS.
3372
3373 2003-10-17  David Edelsohn  <edelsohn@gnu.org>
3374
3375         * doc/invoke.texi (gcse-las): Fix typo.
3376
3377 2003-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
3378
3379         * doc/install.texi: Remove first part of the sentence for
3380         zsh not working.  Change gcc to GCC.
3381
3382         PR bootstrap/12546
3383         * doc/install.texi: Document that zsh does not work when
3384         configuring gcc.
3385
3386 2003-10-17  Nathanael Nerode  <neroden@gcc.gnu.org>
3387
3388         * config/ptx4.h: Switch to DWARF 2; update comments.
3389
3390 2003-10-17  Segher Boessenkool  <boessen@de.ibm.com>
3391             Hartmut Penner  <hpenner@de.ibm.com>
3392
3393         PR 10404, partial 11591, partial 11601
3394         * config/rs6000/altivec.md ("altivec_dst", "altivec_dstt",
3395         "altivec_dstst", "altivec_dststt", "altivec_lvsl", "altivec_lvsr",
3396         "altivec_lvebx", "altivec_lvehx", "altivec_lvewx", "altivec_lvxl",
3397         "altivec_lvx", "altivec_stvx", "altivec_stvxl", "altivec_stvebx",
3398         "altivec_stvehx", "altivec_stvewx"): Use a memory_operand.
3399         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): New function.
3400         (altivec_expand_stv_builtin): Adjust for the memory_operand.
3401         (altivec_expand_builtin): Call altivec_expand_lv_builtin.
3402         (altivec_init_builtins): Use `long int' for memory offsets.
3403
3404 2003-10-17  Jan Hubicka  <jh@suse.cz>
3405
3406         * opts.c  (common_handle_option): Handle OPT_fweb
3407         * invoke.texi (-fweb): Add missing parts of documentation.
3408
3409 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3410
3411         * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Undef
3412         before redefinition.
3413
3414 2003-10-17  Mostafa Hagog  <mustafa@il.ibm.com>
3415
3416         * common.opt: Add description of the new -fgcse-las flag.
3417         * flags.h (flag_gcse_las): Declaration of global flag_gcse_las.
3418         * gcse.c (hash_scan_set): Handle the case of store expression and
3419         insert the memory expression to the hash table, this way we make it
3420         possible to discover redundant loads after stores and remove them.
3421         (pre_insert_copy_insn): moved the call to update_ld_motion_stores,
3422         to pre_insert_copies, it is not the correct place to call it after
3423         adding stores to be in the available expression hash table.
3424         (pre_insert_copies): Added the call to update_ld_motion_stores when
3425         one or more copies were inserted.
3426         * opts.c (common_handle_option): Handle the -fgcse-las flag.
3427         * toplev.c (flag_gcse_las): Initialization of flag_gcse_las.
3428
3429         * doc/invoke.tex: Document new -fgcse-las flag.
3430
3431 2003-10-18  Alan Modra  <amodra@bigpond.net.au>
3432
3433         * config/rs6000/crtsavres.asm: Correct alignment of powerpc64 code
3434         for posterity, then remove it.
3435
3436 2003-10-17  Richard Earnshaw <rearnsha@arm.com>
3437             Nathan Sidwell  <nathan@codesourcery.com>
3438
3439         * config/arm/arm.c (use_return_insn): Not a single instruction, if
3440         there's a frame pointer.
3441         (arm_output_epilogue): Protect stack pointer from being corrupted
3442         on interrupt.
3443
3444 2003-10-17  Ulrich Weigand  <uweigand@de.ibm.com>
3445
3446         * ifcvt.c (noce_try_addcc): Handle ifs with 'else' case.
3447
3448 2003-10-17  Ulrich Weigand  <uweigand@de.ibm.com>
3449
3450         * combine.c (simplify_set): Do not clear out undobuf.other_insn
3451         already set elsewhere.
3452
3453 2003-10-17  Kelley Cook  <kcook@gcc.gnu.org>
3454
3455         * config/i386/i386.c (ix86_expand_prologue):  Use
3456         gen_allocate_stack_worker.
3457
3458 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3459
3460         * config.gcc (mips-sgi-irix6*o32): Only enable use_collect2
3461         without gas.
3462         (mips-sgi-irix6*): Likewise.
3463
3464         * config/mips/iris6gas.h: New file.
3465         * gcc/config.gcc (mips-sgi-irix6*): Use it.
3466
3467         * config/mips/mips.h (TARGET_IRIX): Provide default.
3468         (TARGET_IRIX5): Likewise.
3469         (TARGET_SGI_O32_AS): Likewise.
3470         * config/mips/iris5.h (TARGET_IRIX): Redefine as 1.
3471         (TARGET_IRIX5): Likewise.
3472         * config/mips/iris6.h (TARGET_IRIX6): Remove.
3473         (TARGET_IRIX5): Redefine as 0.
3474
3475         * config/mips/mips.c (mips_output_external): Test for IRIX 6 O32
3476         linker workaround with TARGET_IRIX and mips_abi instead of
3477         ASM_OUTPUT_UNDEF_FUNCTION.
3478         (mips_file_end): Inline old ASM_OUTPUT_UNDEF_FUNCTION definition,
3479         testing TARGET_IRIX and mips_abi explicitly.
3480         * config/mips/iris5.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove.
3481         * config/mips/iris6.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove undef.
3482
3483         * config/mips/mips.c (irix_output_external_libcall): Renamed from
3484         mips_output_external_libcall.
3485         Use new TARGET_IRIX in guard.
3486         * config/mips/mips-protos.h (irix_output_external_libcall): Match
3487         this.
3488         * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Likewise.
3489
3490         * config/mips/iris5gas.h (HAVE_GAS_SHF_MERGE): Update comment.
3491         Define as 0.
3492
3493         * config/mips/iris6.h (FUNCTION_NAME_ALREADY_DECLARED): Define
3494         depending on mips_abi.
3495         * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Define as 1.
3496         * config/mips/mips.c (mips_output_function_prologue): Test
3497         FUNCTION_NAME_ALREADY_DECLARED at runtime.
3498         (mips_output_function_epilogue): Likewise.
3499         (build_mips16_function_stub): Likewise.
3500         (build_mips16_call_stub): Likewise.
3501         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Provide
3502         default.
3503
3504         * config/mips/iris6.h (DWARF2_UNWIND_INFO): Don't define for native
3505         IRIX 6 O32 assembler.
3506         (SUBTARGET_CC1_SPEC): Enforce mips2 ISA with O32 ABI.
3507         (TARGET_OS_CPP_BUILTINS): Define _ABIO32, use it to define
3508         _MIPS_SIM for O32 ABI.
3509         (DWARF2_FRAME_INFO): Don't define for native IRIX 6 O32 assembler.
3510         (ASM_DECLARE_FUNCTION_NAME): Integrate mips.h version.
3511         (ASM_DECLARE_FUNCTION_SIZE): Move undef before redefinition.
3512         Integrate O32 version.
3513         (SUBTARGET_ASM_SPEC): Handle -mabi=32.
3514         (SUBTARGET_ASM_DEBUGGING_SPEC): Add mdebug_asm_spec for gas with
3515         O32 ABI.
3516         (BSS_SECTION_ASM_OP_32): Define.
3517         (BSS_SECTION_ASM_OP_64): Likewise.
3518         (BSS_SECTION_ASM_OP): Define differently for O32 and N32/N64 ABIs
3519         using them.
3520         (TARGET_ASM_NAMED_SECTION): Reflect renaming.
3521         Move up to allow override for O32 ABI without GNU as.
3522         (EH_FRAME_SECTION_NAME): Define explicitly.
3523         (MUST_USE_SJLJ_EXCEPTIONS): Define.
3524         [_MIPS_SIM == _ABIO32 && !GAS] (CTORS_SECTION_ASM_OP,
3525         DTORS_SECTION_ASM_OP): Dummy definitions.
3526         (TARGET_ASM_NAMED_SECTION): Undef statically.
3527         (EH_FRAME_SECTION_NAME): Likewise.
3528         (ASM_OUTPUT_FILENAME): Integrate mips.h version.
3529         (LINK_SPEC): Only use default options -call_shared -no_unresolved
3530         without -r.
3531         Don't pass -init, -fini with -mabi=32.
3532         (COLLECT_PARSE_FLAG): Define.
3533
3534         * config/mips/mips.c (iris6_asm_named_section_1): Changed guard to
3535         TARGET_IRIX.
3536         Renamed to use irix_ prefix.
3537         (iris6_asm_named_section): Likewise.
3538         (iris_section_align_entry_eq): Likewise.
3539         (iris_section_align_entry_hash): Likewise.
3540         (iris6_file_start): Likewise.
3541         (iris6_section_align_1): Likewise.
3542         (iris6_file_end): Likewise.
3543         (iris6_section_type_flags): Likewise.
3544         (iris_section_align_htab): Likewise.
3545         (iris_orig_asm_out_file): Likewise.
3546         [TARGET_IRIX] (TARGET_ASM_FILE_START): Reflect rename.
3547         (TARGET_ASM_FILE_END): Likewise.
3548         (TARGET_SECTION_TYPE_FLAGS): Likewise.
3549
3550         * config/mips/mips.c [TARGET_IRIX5 && !TARGET_IRIX6]
3551         (TARGET_ASM_UNALIGNED_HI_OP): Use runtime initialization in
3552         override_options instead.
3553         (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
3554         (TARGET_ASM_UNALIGNED_DI_OP): Likewise.
3555         * config/mips/mips.c (override_options) [USE_COLLECT2]: Restore
3556         flag_gnu_linker to defaults without USE_COLLECT2 for non-IRIX O32
3557         assemblers.
3558         Likewise for constructor/destructor handling.
3559         (override_options): Handle IRIX O32 assembler quirks.
3560         [TARGET_IRIX] (irix_asm_named_section): Handle O32 ABI with and
3561         without gas.
3562         (mips_file_start): Use new TARGET_IRIX.
3563         (mips_declare_object_name): No special processing for IRIX O32
3564         assembler.
3565         (mips_finish_declare_object): Likewise.
3566         (irix_asm_output_align): Renamed from iris6_asm_output_align.
3567         Don't record alignment for O32 ABI.
3568         (irix_file_start): Renamed from iris6_file_start.
3569         Return early for O32 ABI.
3570         (irix_file_end): Renamed from iris6_file_end.
3571         Don't emit .section directives for O32 ABI.
3572         * config/mips/iris6.h (ASM_OUTPUT_ALIGN): Reflect renaming.
3573         * config/mips/mips-protos.h (irix_asm_output_align): Likewise.
3574
3575         * config/mips/t-iris6 (MULTILIB_OPTIONS): Add mabi=32.
3576         (MULTILIB_OSDIRNAMES): Likewise.
3577
3578 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3579
3580         * collect2.c (COLLECT_PARSE_FLAG): Provide default.
3581         (main): Use it.
3582         * doc/tm.texi (COLLECT_PARSE_FLAG): Document it.
3583
3584 2003-10-17  Richard Earnshaw  <rearnsha@arm.com>
3585
3586         * arm-modes.def (CC_Nmode): New condition code mode.
3587         * arm.c (thumb_condition_code): Delete.
3588         (arm_select_cc_mode): Handle single-bit test for Thumb.
3589         (arm_print_operand, cases 'd' and 'D'): Don't special case the
3590         condition code logic for Thumb.
3591         (get_arm_condition_code): Handle CC_Nmode.
3592         (thumb_cbrch_target_operand): New function.
3593         * arm.h (PREDICATE_CODES): Add thumb_cbrch_target_operand.
3594         * arm-protos.h (thumb_cbrch_target_operand): Add prototype.
3595         * arm.md: Add Thumb split patterns for zero_extract and
3596         sign_extract.
3597         (tbit_cbranch, andsi3_cbranch_scratch, andsi3_cbranch)
3598         (orrsi3_cbranch_scratch, orrsi3_cbranch, xorsi3_cbranch_scratch)
3599         (xorsi3_cbranch, addsi3_cbranch, addsi3_cbranch_scratch)
3600         (subsi3_cbranch, subsi3_cbranch_scratch): New Thumb patterns.
3601         (cbranchne_decr1): Re-work to use CC_Nmode.
3602
3603         * arm.c (thumb_expand_epilogue): Add clobbers of registers restored
3604         by the return instruction.  Add a use of the link register if it
3605         wasn't stored.
3606
3607 2003-10-17  Richard Earnshaw  <rearnsha@arm.com>
3608
3609         * flow.c (init_propagate_block_info): Don't abort if a conditional
3610         jump is not a comparison of a register.  Instead, just don't record
3611         conditional life information.
3612
3613 2003-10-16  Jan Hubicka  <jh@suse.cz>
3614
3615         PR optimization/12630
3616         * pa.md (movstrsi, movstrsi_internal): Use match_scratch in clobbers
3617         for operands 7 and 8.
3618
3619 2003-10-16  Kelley Cook  <kcook@gcc.gnu.org>
3620
3621         * objc/Make-lang.in (objc-parse.o): Honor $(parsedir) for objc-parse.c.
3622
3623 2003-10-16  Danny Smith  <dannysmith@users.sourceforge.net>
3624
3625         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
3626
3627         * config/i386/winnt.c (gen_stdcall_suffix): Make static
3628         (gen_fastcall_suffix): Likewise.
3629         (i386_pe_dllexport_p): Likewise.
3630         (i386_pe_dllimport_p): Likewise.
3631         (i386_pe_mark_dllexport): Likewise.
3632         (i386_pe_mark_dllimport): Likewise.
3633         (i386_pe_asm_named_section): Fix formatting.
3634
3635 2003-10-16  Zack Weinberg  <zack@codesourcery.com>
3636
3637         * configure.in: Add snprintf to gcc_AC_CHECK_DECLS list.
3638         * system.h: Declare snprintf if necessary.
3639         * configure, config.in: Regenerate.
3640
3641 2003-10-15  David Edelsohn  <edelsohn@gnu.org>
3642
3643         * config/rs6000/rs6000.c (rs6000_va_arg): Only align vector
3644         arguments if TARGET_ALTIVEC_ABI.
3645
3646 2003-10-15  Roger Sayle  <roger@eyesopen.com>
3647
3648         * builtins.c (fold_builtin_memcpy, fold_builtin_mempcpy,
3649         fold_builtin_memmove, fold_builtin_strcpy, fold_builtin_strncpy,
3650         fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
3651         New functions.
3652         (expand_builtin_memcpy): Use integer_zerop instead of testing
3653         host_integerp and tree_low_cst directly.  Move misapplied hunk
3654         for optimization wher SRC and DEST point to the same location.
3655         (expand_builtin_mempcpy): From here.
3656         (expand_builtin_memmove): Use integer_zerop instead of testing
3657         host_integerp and tree_low_cst_directly.
3658         (expand_builtin_memset): Likewise.
3659         (expand_builtin_memcmp): Likewise (and for integer_onep).
3660         (expand_builtin_strncmp): Likewise.
3661         (fold_builtin): Call the appropriate fold_builtin_foo functions
3662         to optimize memcpy, mempcpy, memmove, strcpy, strncpy, memcmp,
3663         strcmp and strncmp.
3664
3665 2003-10-15  Geoffrey Keating  <geoffk@apple.com>
3666
3667         * config/darwin-protos.h (machopic_non_lazy_ptr_name): Delete
3668         prototype.  Clean up some whitespace.
3669         * config/darwin.c: Use gen_rtx_FOO (...) rather than
3670         gen_rtx (FOO, ...).
3671         (machopic_non_lazy_ptr_name): Make static.
3672         (name_needs_quotes): Allow '.' and '$' unquoted.
3673         (machopic_legitimize_pic_address): Improve codegen in dynamic-no-pic
3674         case.
3675
3676 2003-10-15  Gábor Lóki  <alga@rgai.hu>
3677
3678         * fold-const.c (tree_swap_operands_p): Disable some features
3679         when optimizing for size.
3680
3681 2003-10-15  David Daney  <ddaney@avtrex.com>
3682
3683         * config/mips/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New
3684         * config/mips/mips.h (DWARF_FRAME_REGNUM): Fixed to allow unwind
3685         from leaf functions.
3686         (DWARF_FRAME_RETURN_COLUMN): Ditto.
3687         (SIGNAL_UNWIND_RETURN_COLUMN): New, used
3688         by MD_FALLBACK_FRAME_STATE_FOR.
3689         * testsuite/gcc.dg/cleanup-9.c: Added mips*-*-linux* target.
3690
3691 2003-10-15  Zack Weinberg  <zack@codesourcery.com>
3692
3693         * genmodes.c: Include hashtab.h.
3694         (modes_by_name, hash_mode, eq_mode, struct mode_adjust)
3695         (adj_bytesize, adj_alignment, adj_format, new_adjust)
3696         (_ADD_ADJUST, ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FORMAT)
3697         (print_maybe_const_decl, emit_mode_adjustments): New.
3698         (known_modes): Rename to modes.
3699         (find_mode): Kill class argument; look up in hash table.
3700         (new_mode): Insert into hash table also.
3701         (new_adjust): New.
3702         (reset_float_format, make_partial_integer_mode)
3703         (make_vector_mode): Tweak error reporting.
3704         (reset_float_format): Correct type of fourth argument.
3705         (emit_insn_modes_h): Add #defines to help make mode_size,
3706         mode_base_align, and real_format_for_mode conditionally const.
3707         (emit_mode_size, emit_mode_base_align): Use print_maybe_const_decl.
3708         (emit_real_format_for_mode): Likewise, but temporarily disabled.
3709         (emit_insn_modes_c): Call emit_mode_adjustments.
3710         (main): Initialize modes_by_name.
3711         * Makefile.in: Update dependencies.
3712         * machmode.def: Document EXPR arguments and new ADJUST_* statements.
3713         * machmode.h: Use CONST_MODE_SIZE and CONST_MODE_BASE_ALIGN in
3714         declarations of mode_size and mode_base_align.  Declare
3715         init_adjust_machine_modes.
3716         * toplev.c (backend_init): Call init_adjust_machine_modes.
3717
3718 2003-10-15  Olivier Hainque  <hainque@act-europe.fr>
3719
3720         * genmodes.c (calc_wider_mode): Allocate enough room for all the
3721         entries we'll possibly assign in the sort buffer.
3722
3723 2003-10-15  Ulrich Weigand  <uweigand@de.ibm.com>
3724
3725         * config.gcc (s390x-ibm-tpf*): New target.
3726         * doc/install.texi: Document it.
3727         * config/s390/t-tpf: New file.
3728         * config/s390/tpf.h: New file.
3729
3730 2003-10-15  Hans-Peter Nilsson  <hp@axis.com>
3731
3732         PR target/12598
3733         * config/cris/cris.md (define_split "*mov_sidesi_biap_mem"+1)
3734         (define_splits "*mov_sidesi_mem"+1, "casesi"+9, +10, +11, +12):
3735         Use cris_mem_op and replace_equiv_address, not gen_rtx_MEM.
3736         ("call", "call_value", define_split "*mov_sidesi_mem"+19, +20)
3737         (define_split "*mov_sidesi_mem"+21, +22, +23, +24, +25, +26, +27)
3738         (define_split "*mov_sidesi_mem"+28, +29, +30): Use
3739         replace_equiv_address, not gen_rtx_MEM.
3740         * config/cris/cris.c (cris_mem_op): New match_operator function.
3741         (cris_notice_update_cc): Use replace_equiv_address, not
3742         gen_rtx_MEM.
3743         * config/cris/cris.h (PREDICATE_CODES): Add cris_mem_op.
3744
3745 2003-10-15  Bernardo Innocenti <bernie@develer.com>
3746
3747         * config/m68k/m68k.h (MASK_SEP_DATA, TARGET_SEP_DATA,
3748         MASK_ID_SHARED_LIBRARY, TARGET_ID_SHARED_LIBRARY): Move
3749         definitions after the other flags.
3750
3751 2003-10-14  Ziemowit Laski  <zlaski@apple.com>
3752
3753         * c-parse.in (methoddef, methodproto): Call objc_add_method()
3754         instead of add_method().
3755         * objc/objc-act.c (objc_check_decl): Do not check for
3756         constant_string_type.
3757         (add_method): Rename to objc_add_method().
3758         (really_start_method): Call objc_add_method() instead of
3759         add_method().
3760         * objc/objc-act.h (add_method): Rename to objc_add_method().
3761
3762 2003-10-14  Ulrich Weigand  <uweigand@de.ibm.com>
3763
3764         * config/s390/s390-protos.h (s390_alc_comparison): Add prototype.
3765         (s390_slb_comparison): Likewise.
3766         * config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
3767         New functions.
3768         * config/s390/s390.h (PREDICATE_CODES): Add s390_alc_comparison
3769         and s390_slb_comparison.
3770         * config/s390/s390.md ("*adddi3_31", "*subdi3_31"): Do not use on
3771         zSeries machines.
3772         ("*adddi3_31z", "*subdi3_31z"): New insns.
3773         ("*adddi3_alc_cc", "*adddi3_alc", "*subdi3_slb_cc", "*subdi3_slb",
3774         "*addsi3_alc_cc", "*addsi3_alc", "*subsi3_slb_cc", "*subsi3_slb"):
3775         New insns.
3776
3777 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
3778
3779         * configure.in: Clean up some feedback echoes.
3780         * configure: Regenerate.
3781
3782         * aclocal.m4: Properly quote names of macros being defined.
3783
3784         * config.gcc (am33_2.0-*-linux*): Use t-slibgcc-elf-ver.
3785
3786 2003-10-14  Steve Ellcey  <sje@cup.hp.com>
3787
3788         * config/ia64/ia64.c (ia64_expand_call): Force function address
3789         to DImode.
3790         * config/ia64/ia64.md (call_gp): Put DImode on operand 0.
3791
3792 2003-10-14  Ulrich Weigand  <uweigand@de.ibm.com>
3793
3794         * config/s390/s390.md ("muldf3", "*muldf3", "*muldf3_ibm",
3795         "mulsf3", "*mulsf3", "*mulsf3_ibm"): Do not clobber CC.
3796         ("divdf3", "*divdf3", "*divdf3_ibm", "divsf3", "*divsf3",
3797         "*divsf3_ibm"): Likewise.
3798
3799 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
3800
3801         * config.gcc, config/m68hc11/t-m68hc11-gas: Replace uses of
3802         target_alias with target_noncanonical.
3803
3804 2003-10-14  Geoffrey Keating  <geoffk@apple.com>
3805
3806         * expr.c (block_move_libcall_safe_for_call_parm): Clean up,
3807         and add case for machines where outgoing register parameters
3808         get stack space.
3809
3810         * config/darwin.c (machopic_indirect_data_reference): Use a scratch
3811         register when generating indirect address.
3812
3813 2003-10-14  Richard Earnshaw  <rearnsha@arm.com>
3814
3815         * arm.c (arm_addimm_operand): MODE arguemnt is unused.
3816         * arm.md (cbranchne_decr1): Fix bootstrap warning.
3817
3818 2003-10-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3819
3820         * fixinc/inclhack.def (alpha_pthread_gcc): New fix.
3821         * fixinc/fixincl.x: Regenerate.
3822         * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_GCC_CHECK]: New
3823         testcase.
3824         Fixes PR bootstrap/9330.
3825
3826 2003-10-13  Eric Christopher  <echristo@redhat.com>
3827
3828         * config/frv/frv.c (frv_adjust_field_align): Redo check for
3829         too wide bitfields.
3830         (frv_hard_regno_mode_ok): Add SPR_P and AP_FIRST.
3831         * config/frv/frv.h (FUNCTION_PROFILER): Remove abort call.
3832         (SBSS_SECTION_ASM_OP): Remove.
3833         (EXTRA_SECTIONS): Remove in_sbss.
3834         (EXTRA_SECTION_FUNCTIONS): Remove SBSS_SECTION_FUNCTION.
3835         (SBSS_SECTION_FUNCTION, sbss_section): Remove.
3836         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change sbss_section to
3837         named_section.
3838
3839 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
3840
3841         * Makefile.in, configure.in, config.host, mkheaders.in: Replace
3842         uses of ${target_alias} for directory names (and other places which
3843         won't like the empty string) with ${target_noncanonical}.  Introduce
3844         call early in configure.in to _GCC_TOPLEV_NONCANONICAL_TARGET so it's
3845         available.
3846         * configure: Regenerate.
3847
3848 2003-10-13  Ian Lance Taylor  <ian@wasabisystems.com>
3849
3850         * config/arm/iwmmxt.md (cond_iwmmxt_movsi_insn): New pattern.
3851         * config/arm/arm.md: For splits which rely on conditional moves,
3852         remove ! TARGET_IWMMXT condition.
3853
3854 2003-10-13  David S. Miller  <davem@redhat.com>
3855
3856         * ifcvt.c (num_removed_blocks): Rename to num_true_changes.
3857         (find_cond_trap): Always increment if we emit a conditional
3858         trap insn.
3859
3860 2003-10-13  Zack Weinberg  <zack@codesourcery.com>
3861
3862         * Makefile.in (BUILD_RTL): Replace $(BUILD_PREFIX)insn-modes.o
3863         with min-insn-modes.o.
3864         (STAGESTUFF): Add min-insn-modes.c.
3865         (genobjs): Add genmodes.o.
3866         (print-rtl.o, print-rtl1.o): Depend on $(TM_P_H).
3867         (insn-modes.o): Depend on $(TM_H) not $(GTM_H); also real.h.
3868         (min-insn-modes.c, min-insn-modes.o): New rules.
3869         (s-modes): Also generate min-insn-modes.c.
3870         ($(BUILD_PREFIX_1)insn-modes.o): Kill.
3871         * genmodes.c (struct mode_data): Add format field.
3872         (blank_mode, validate_mode, complete_mode): Update to match.
3873         (make_scalar_mode): Separate into make_int_mode and make_float_mode.
3874         (_SCALAR_MODE): Kill.
3875         (FLOAT_MODE, FRACTIONAL_FLOAT_MODE): Add format argument.
3876         (emit_insn_modes_c_header): Adjust.
3877         (emit_min_insn_modes_c_header, emit_real_format_for_mode)
3878         (emit_min_insn_modes_c): New functions.
3879         (emit_insn_modes_c): Call emit_real_format_for_mode.
3880         (main): Add -m option to generate min-insn-modes.c.
3881         * machmode.h: Update documentation.  Add format argument to
3882         all uses of FLOAT_MODE.
3883         * real.c: Don't define real_format_for_mode here.
3884
3885         * dwarfout.c: Move default definition of PRINT_REG...
3886         * defaults.h: ...here.
3887         * print-rtl.c: Include tm_p.h.
3888         (DEBUG_PRINT_REG, DEBUG_REGISTER_NAMES, debug_reg_names, reg_names):
3889         Kill.
3890         (print_rtx): Use PRINT_REG, not DEBUG_PRINT_REG.  But surround
3891         this entire block with #ifndef GENERATOR_FILE.
3892         * regclass.c: Unconditionally define reg_names.
3893         * config/mips/mips.h, config/rs6000/rs6000.h, config/sh/sh.h
3894         Don't define DEBUG_REGISTER_NAMES.
3895         * config/rs6000/darwin.h: Don't use DEBUG_REGISTER_NAMES in
3896         redefinition of REGISTER_NAMES.
3897         * config/i386/i386.h: Don't define DEBUG_PRINT_REG.
3898
3899         * combine.c: Change all preprocessor conditionals on
3900         EXTRA_CC_MODES to use SELECT_CC_MODE instead; rearrange a bit
3901         for clarity.
3902         * genopinit.c: Remove mention of EXTRA_CC_MODES in comment.
3903         * configure.in: Don't define EXTRA_CC_MODES.
3904         * configure, config.in: Regenerate.
3905         * doc/tm.texi: Remove documentation of EXTRA_CC_MODES.
3906
3907         * config/arc/arc.c, config/m32r/m32r.c, config/sparc/sparc.c:
3908         May assume that GET_MODE_CLASS is accurate for extra CC modes
3909         at all times.
3910
3911         * config/i860/i860.h (INIT_CUMULATIVE_ARGS): Pass correct
3912         number of arguments to aggregate_value_p.
3913
3914         * genmodes.c (RESET_FLOAT_FORMAT, reset_float_format): New.
3915         * machmode.def: Explain ARCH-modes.def.  Document
3916         RESET_FLOAT_FORMAT.  Improve commentary on various mode
3917         clusters.  Do not define OI, PQI, PHI, PSI, PDI, QF, HF, TQF,
3918         XF, or TF modes here.  Remove backward-compatibility
3919         definition of CC.
3920
3921         * config/alpha/alpha-modes.def: New file; define TF mode.
3922         * config/arc/arm-modes.def: Define XF mode.
3923         * config/c4x/c4x-modes.def: Define QF and HF modes.  Unset
3924         float format for SF and DF modes.
3925         * config/dsp16xx/dsp16xx-modes.def: New file; define HF mode.
3926         * config/i386/i386-modes.def: Define XF and TF modes.
3927         * config/i960/i960-modes.def: Define TF mode.
3928         * config/ia64/ia64-modes.def: Define TF and OI modes.
3929         * config/m68k/m68k-modes.def: New file; define XF mode.
3930         * config/mips/mips-modes.def: New file; define TF mode, reset
3931         formats for SF and DF modes.
3932         * config/pa/pa-modes.def: Define TF mode.
3933         * config/rs6000/rs6000.c: Define TF and PSI modes.
3934         * config/s390/s390-modes.def: Define OI mode.
3935         * config/sh/sh-modes.def: New file; define PSI mode.
3936         * config/sparc/sparc-modes.def: Define TF mode.
3937         * config/vax/vax-modes.def: New file; reset formats for SF and
3938         DF modes.
3939
3940         * config/c4x/c4x.c (c4x_override_options): No need to mess
3941         with real_format_for_mode or set REAL_MODE_FORMATs.
3942         (c4x_immed_int_constant): Don't apply GET_MODE_CLASS to rtx
3943         variable.
3944         * config/i386/i386.c (override_options): No need to set
3945         REAL_MODE_FORMATs here.
3946         * config/i960/i960.c (i960_initialize): Likewise.
3947         * config/m68k/m68k.c (m68k_override_options): Likewise.
3948         * config/ia64/ia64.c (ia64_override_options): Set REAL_MODE_FORMAT
3949         for TFmode only if not the default.
3950         * config/mips/mips.c (override_options): Likewise.
3951         * config/vax/vax.c (override_optionms): Set REAL_MODE_FORMAT for
3952         DFmode only if not the default.
3953
3954         * config/i370/i370.h (RET_REG): Don't consider TFmode.
3955         * config/m68hc11/m68hc11.c (print_operand): Don't consider XFmode.
3956         * config/dsp16xx/dsp16xx.c (hard_regno_mode_ok): #if 0 out use
3957         of modes that don't appear anywhere in the machine description.
3958
3959         * config/arc/arc-modes.def, config/arm/arm-modes.def
3960         * config/c4x/c4x-modes.def, config/frv/frv-modes.def
3961         * config/i386/i386-modes.def, config/i960/i960-modes.def
3962         * config/ia64/ia64-modes.def, config/mmix/mmix-modes.def
3963         * config/pa/pa-modes.def, config/pdp11/pdp11-modes.def
3964         * config/rs6000/rs6000-modes.def, config/s390/s390-modes.def
3965         * config/sparc/sparc-modes.def: Convert to new style for
3966         declaring extra CC modes.
3967
3968 2003-10-13  Zack Weinberg  <zack@codesourcery.com>
3969
3970         * cpplex.c (_cpp_clean_line): In the common case of a line
3971         with no trigraphs and no \-newline, avoid writing to memory.
3972         (_cpp_skip_block_comment): Use a local 'cur' pointer instead
3973         of the buffer member.  Make c an uchar to avoid unnecessary
3974         sign extensions.
3975
3976 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
3977
3978         * configure.in: Remove unnecessary test.
3979         * configure: Regenerate.
3980
3981         * configure.in: Fix grammatical error.  Move UWIN host error to...
3982         * config.host: Here.
3983         * configure: Regenerate.
3984
3985 2003-10-13  Andreas Krebbel  <krebbel1@de.ibm.com>
3986
3987         * config/s390/s390.md ("*fmadddf4", "*fmsubdf4", "*fmaddsf4",
3988         "*fmsubsf4"): Insns are now dependent on TARGET_FUSED_MADD instead
3989         of flag_unsafe_math_optimizations.
3990         * config/s390/s390.h ("MASK_NO_FUSED_MADD", "TARGET_NO_FUSED_MADD",
3991         "TARGET_FUSED_MADD", "TARGET_SWITCHES"): Introduced new target flags
3992         fused-madd and no-fused-madd.
3993         * doc/invoke.texi: Documented the new options fused-madd and
3994         no-fused-madd for S/390.
3995
3996 2003-10-14  Alan Modra  <amodra@bigpond.net.au>
3997
3998         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Choose
3999         MASK_ALIGN_NATURAL if rs6000_alignment_string not given.  Don't
4000         assign DEFAULT_ABI.
4001         (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Update comment.
4002         * config/rs6000/rs6000.c: Formatting.
4003         (rs6000_parse_alignment_option): Only set rs6000_alignment_flags
4004         when rs6000_alignment_string given.
4005
4006 2003-10-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
4007
4008         PR target/12538
4009         * config/sparc/sparc.c (MUST_SAVE_REGISTER): Delete.
4010         (sparc_flat_must_save_register_p): New function to decide whether
4011         a register must be saved/restored in the function prologue/epilogue.
4012         (sparc_flat_compute_frame_size): Use it instead of MUST_SAVE_REGISTER.
4013
4014 2003-10-12  Steven Bosscher  <steven@gcc.gnu.org>
4015
4016         * config/avr/avr.c, config/avr/avr-protos.h: Convert to
4017         ISO C90 function declarations and definitions.
4018         * config/sh/sh.c, config/sh/sh-protos.h: Likewise.
4019
4020 2003-10-12  Nathanael Nerode  <neroden@gcc.gnu.org>
4021
4022         * config.gcc (*-*-freebsd*): Use tm_defines instead of tiny
4023         config files which do the same thing.
4024         * config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
4025         config/freebsd6.h: Remove now unnecessary files.
4026
4027 2003-10-12  Steven Bosscher  <steven@gcc.gnu.org>
4028
4029         * c-common.c (c_common_truthvalue_conversion): Warn if the
4030         address of a non-weak function is used as a truth value.
4031
4032 2003-10-12  Kazu Hirata  <kazu@cs.umass.edu>
4033
4034         * config/h8300/h8300.c (WORD_REG_USED): Use SP_REG instead of
4035         a literal.
4036         * config/h8300/h8300.h (REGNO_OK_FOR_BASE_P): Use MAC_REG
4037         instead of a literal.
4038
4039 2003-10-12  Hans-Peter Nilsson  <hp@bitrange.com>
4040
4041         * doc/extend.texi (Function Attributes): Mention the exceptional
4042         path for noreturn-marked functions.
4043
4044 2003-10-12  Jan Hubicka  <jh@suse.cz>
4045
4046         * cgraphunit.c (cgraph_decide_inlining): Fix uninitialized variable
4047         warning.
4048
4049 2003-10-12  Danny Smith  <dannysmith@users.sourceforge.net>
4050
4051         * config/i386/i386.c (x86_this_parameter): Fix typo.
4052
4053 203-10-11  Jan Hubicka  <jh@suse.cz>
4054
4055         * Makefile.in (web.o): New.
4056         * web.c: New file.
4057         * rtl.h (web_main): Declare.
4058         * timervar.def (TV_WEB): New.
4059         * toplev.c (dump_file_index, dump_file_info): Add DFI_web.
4060         (rest_of_hanle_web): New.
4061         (flag_web): New static variable.
4062         (lang_independent_options): Add "web".
4063         (rest_of_compilation): Call rest_of_handle_web.
4064         * invoke.texi (-fweb): Document.
4065         * common.opt (fweb): New.
4066         * flags.h (flag_web): New.
4067         * opts.c (decode_options): Set flag_web at -O3.
4068
4069         * passes.texi (web construction):  Document.
4070         * invoke.texi (-O3): Document that -fweb is enabled.
4071
4072         * regrename.c (regrename_optimize): Deal better with situation when
4073         replacement failed.
4074
4075         * sched-ebb.c: Include params.h and profile.h
4076         (schedule_ebbs):  Use tracer parameters to discover superblocks
4077         * Makefile.in (sched-ebb.o):  Add dependencies.
4078
4079 2003-10-11  Roger Sayle  <roger@eyesopen.com>
4080
4081         * fold-const.c (negate_mathfn_p): New function to determine whether
4082         a built-in mathematical function is sign preserving, f(-x) == -f(x).
4083         Add support for BUILT_IN_ASIN, BUILT_IN_ASINF and BUILT_IN_ASINL.
4084         (tree_swap_operands_p): Change API to take an additional argument
4085         indicating that the swapped operands evaluate in reverse order.
4086         Canonicalize VAR_DECLs and PARM_DECLs last if we can, i.e. neither
4087         operand side-effects or we don't care about flag_evaluation_order.
4088         (reorder_operands_p): New function to check whether its safe to
4089         evaluate the given operands in reverse order.
4090         (negate_expr_p):  We can always negate integer constants unless
4091         we honor -ftrapv and the signed type would overflow.  Only allow
4092         -(A-B) into B-A if reorder_operands_p says that its OK.  Allow
4093         negation of COMPLEX_CST if both real and imaginary parts can be
4094         negated.  Allow negation through floating point extensions and
4095         sign-preserving built-in functions.
4096         (negate_expr):  Move the code to negate integers from "fold" to
4097         here.  Always negate integer constants unless we honor -ftrapv
4098         and the signed type would overflow.  Always negate real constants
4099         unless we honor -ftrapping-math.  Only convert -(A-B) into B-A
4100         if allowed by reorder_operands_p.  Add support for COMPLEX_CST.
4101         Optimize negation through floating point extensions and
4102         sign-preserving built-in functions (as defined by negate_mathfn_p).
4103         (fold): Adjust calls to tree_swap_operands_p.
4104         (fold <NEGATE_EXPR>): Move the remaining negation optimizations
4105         to negate_expr_p/negate_expr.
4106         (fold <MINUS_EXPR>): Use reorder_operands_p to check whether we're
4107         allowed to convert (-A) - B into (-B) - A.
4108
4109 2003-10-11  Roger Sayle  <roger@eyesopen.com>
4110
4111         * builtins.c (expand_builtin_strcmp): Defend against the possibility
4112         that gen_cmpstrsi may fail: Stabilize the argument list against
4113         re-evaluation and expand the library call directly using this saved
4114         argument list if a cmpstrsi sequence can't be generated.
4115         (expand_builtin_strncmp): Likewise.
4116
4117         * config/i386/i386.md (cmpstrsi, movstrsi): Disable with -Os.
4118
4119 2003-10-11  Roger Sayle  <roger@eyesopen.com>
4120
4121         PR optimization/12260
4122         * simplify-rtx.c (simplify_unary_operation): Simplify all unary
4123         operations through CONST nodes.  Optimize (neg (plus X C)) as
4124         (minus -C X) for constant values C.
4125         (simplify_binary_operation): Optimize (minus (neg X) C) as
4126         (minus -C X) for constant values C.
4127         (simplify_plus_minus): Avoid creating (neg (const (plus X C)),
4128         instead create (minus -C X).
4129
4130 2003-10-11  Roger Sayle  <roger@eyesopen.com>
4131
4132         * expr.c (expand_expr <PLUS_EXPR>): Let expand_operands call
4133         safe_from_p for us, once it chooses an evaluation order.
4134         (expand_expr <MULT_EXPR>): Likewise.
4135         (expand_expr <MIN_EXPR> <MAX_EXPR>): Likewise.  If expand_operands
4136         places the second operand in "target", swap the operands.
4137         (do_store_flag): Let expand_operands call safe_from_p for us.
4138
4139 2003-10-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
4140
4141         PR optimization/12544
4142         * function.c (put_var_into_stack): Don't generate ADDRESSOFs
4143         for DECL_NONLOCAL decls.
4144
4145 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
4146
4147         * expr.c: Follow spelling conventions.
4148         * final.c: Likewise.
4149         * optabs.c: Likewise.
4150         * sched-deps.c: Likewise.
4151         * sdbout.c: Likewise.
4152
4153 Sat Oct 11 12:24:23 CEST 2003  Jan Hubicka  <jh@suse.cz>
4154
4155         * varasm.c (notice_global_symbol):  Fix handling of variables; avoid
4156         re-computing of variable.
4157
4158 2003-10-11  Richard Henderson  <rth@redhat.com>
4159
4160         * config/alpha/alpha.c (alpha_return_in_memory): Rename from
4161         return_in_memory, make static, change signature to match target hook.
4162         (alpha_setup_incoming_varargs): Make static, change signature to
4163         match target hook, add code for vms and unicos.
4164         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
4165         TARGET_PROMOTE_PROTOTYPES, TARGET_STRUCT_VALUE_RTX,
4166         TARGET_RETURN_IN_MEMORY, TARGET_SETUP_INCOMING_VARARGS,
4167         TARGET_STRICT_ARGUMENT_NAMING,
4168         TARGET_PRETEND_OUTGOING_VARARGS_NAMED): New.
4169         * config/alpha/alpha-protos.h: Update.
4170         * config/alpha/alpha.h (PROMOTE_FUNCTION_ARGS,
4171         PROMOTE_FUNCTION_RETURN, RETURN_IN_MEMORY,
4172         SETUP_INCOMING_VARARGS): Remove.
4173         * config/alpha/unicosmk.h (SETUP_INCOMING_VARARGS): Remove.
4174         * config/alpha/vms.h (SETUP_INCOMING_VARARGS): Remove.
4175
4176 2003-10-11  Ian Lance Taylor  <ian@wasabisystems.com>
4177
4178         * config/arm/arm.c (arm_regno_class): Handle IWMMXT_GR_REGS.
4179
4180 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
4181
4182         * config/m68k/lb1sf68.asm: Follow spelling conventions.
4183         * config/m68k/m68k.c: Likewise.
4184         * config/m68k/m68k.h: Likewise.
4185         * config/m68k/m68k.md: Likewise.
4186
4187 2003-10-11  Roger Sayle  <roger@eyesopen.com>
4188
4189         * builtins.c (expand_builtin_memcpy): Optimize case when the two
4190         pointer arguments are the equal, non-volatile and side-effect free.
4191         (expand_builtin_mempcpy): Likewise.
4192         (expand_builtin_memmove): Likewise.
4193         (expand_builtin_strcpy): Likewise.
4194         (expand_builtin_memcmp): Likewise.
4195         (expand_builtin_strcmp): Likewise.
4196         (expand_builtin_strncmp): Likewise.
4197
4198 2003-10-11  Roger Sayle  <roger@eyesopen.com>
4199
4200         * combine.c (apply_distributive_law): Enable "distributive" floating
4201         point optimizations with -funsafe-math-optimizations.
4202
4203 2003-10-11  Andrew Pinski <pinskia@physics.uc.edu>
4204
4205         * genmodes.c (emit_mode_mask) Change MASK to MODE_MASK.
4206
4207 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
4208
4209         * config/m68k/m68k-protos.h: Remove the prototype for
4210         finalize_pic.
4211
4212 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
4213
4214         * config/m68k/m68k.c: Fix comment typos.
4215
4216 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
4217
4218         * config/m68k/m68k-protos.h (use_return_insn): Change return type from
4219         int to bool.
4220         * config/m68k/m68k.c (struct m68k_frame): Add funcdef_no member.
4221         (current_frame): New global var.
4222         (m68k_compute_frame_layout): Cache computations in current_frame.
4223         (m68k_initial_elimination_offset): Use values from current_frame
4224         instead of recomputing them.
4225         (use_return_insn): Likewise.
4226         (m68k_output_function_prologue): Likewise.
4227         (m68k_output_function_epilogue): Likewise.
4228         * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Fold __PIC__ handling
4229         inside the block for __pic__.
4230
4231 2003-10-11  Peter Barada <peter@baradas.org>
4232             Bernardo Innocenti  <bernie@develer.com>
4233
4234         * config/m68k/m68k.c (m68k_frame): Move before protos referencing it.
4235         (m68k_save_reg): Add boolean parameter `interrupt_handler'.
4236         (m68k_interrupt_function_p): New function.
4237         (m68k_handle_fndecl_attribute): Ditto.
4238         (m68k_compute_frame_layout): Ditto.
4239         (m68k_attribute_table): Define back-end specific attributes.
4240         (m68k_output_function_epilogue): Emit RTE instruction for interrupt
4241         functions.
4242
4243 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
4244
4245         * config/m68k/t-uclinux: New target Makefile fragment.
4246         * config/m68k/uclinux.h: New target macro file.
4247         * config.gcc (m68k-*-uclinux): New target definition.
4248
4249 2003-10-10  Roger Sayle  <roger@eyesopen.com>
4250
4251         * builtins.c (builtin_mathfn_code): Generalize to check whether
4252         the call is to any built-in function by comparing the call's
4253         argument list against the builtin decl's function type.
4254
4255 2003-10-10  Roger Sayle  <roger@eyesopen.com>
4256
4257         * cse.c (constant_pool_entries_regcost): New global variable to
4258         hold the register cost component of constant_pool_entries_cost.
4259         (fold_rtx): Calculate constant_pool_entries_regcost at the same
4260         time as constant_pool_entries_cost.
4261         (cse_insn): Set both src_folded_cost and src_folded_regcost from
4262         constant_pool_entries_cost and constant_pool_entries_regcost.
4263         (cse_main): Initialize constant_pool_entries_regcost to zero.
4264
4265         * optabs.c (expand_unop): Attach a REG_EQUAL note describing
4266         the semantics of the sequence of bit operations used to negate
4267         a floating-point value.
4268         (expand_abs_nojump): Likewise attach a REG_EQUAL note describing
4269         the semantics of the bit operations used to abs a floating point
4270         value.
4271
4272 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
4273             Paul Dale  <pauli@snapgear.com>
4274
4275         * config/m68k/lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__
4276         support.
4277         * config/m68k/m68k-none.h (ASM_SPEC): Pass --pcrel to assembler on
4278         -fpic, -fPIC, -msep-data and -mid-shared-library.
4279         * config/m68k/m68k.c (m68k_library_id_string): New global variable.
4280         (override_options): Add -msep-data and -mshared-library-id support.
4281         (m68k_output_function_prologue): Generate code to load A5 for
4282         TARGET_ID_SHARED_LIBRARY and TARGET_SEP_DATA.
4283         (m68k_output_mi_thunk): Emit indirect jump on TARGET_ID_SHARED_LIBRARY.
4284         (m68k_output_pic_call): New function.
4285         * gcc/config/m68k/m68k.h (TARGET_SEP_DATA): New target flag.
4286         (TARGET_ID_SHARED_LIBRARY): Ditto.
4287         (TARGET_SWITCHES): Add switches for -mid-shared-library and -msep-data.
4288         * gcc/config/m68k/m68k.md (call): Call m68k_output_pic_call().
4289         (call_value): Likewise.
4290
4291 2003-10-10  Zack Weinberg  <zack@codesourcery.com>
4292
4293         * gengenrtl.c (find_formats, genheader): Make i an unsigned
4294         int, remove cast of NUM_RTX_CODE.
4295         * machmode.h: Make the HAVE_MACHINE_MODES #ifdef encompass the
4296         entire file.  Remove the #ifs on GET_MODE_MASK etc and
4297         GET_MODE_WIDER_MODE etc.
4298
4299 2003-10-10  Eric Christopher  <echristo@redhat.com>
4300
4301         * lcm.c (optimize_mode_switching): Change NORMAL_MODE
4302         to MODE_ENTRY and MODE_EXIT. Add MODE_AFTER for insns
4303         that set mode.
4304         * config/sh/sh.h (MODE_ENTRY): New macro.
4305         (MODE_EXIT): Ditto.
4306         (MODE_AFTER): Ditto.
4307         * config/sh/sh.md: Change for MODE_AFTER. Add
4308         fp_set attribute.
4309         * doc/tm.texi: Document MODE_AFTER, MODE_ENTRY, and MODE_EXIT.
4310
4311 2003-10-10  Zack Weinberg  <zack@codesourcery.com>
4312
4313         * genmodes.c, mode-classes.def: New files.
4314         * machmode.def: Rewritten to genmodes.c interface.
4315         * Makefile.in (extra_modes_file): New substitution variable.
4316         (MACHMODE_H): No longer includes machmode.def or
4317         @extra_modes_file@; instead, mode-classes.def and insn-modes.h.
4318         (BUILD_RTL): Add $(BUILD_PREFIX)insn-modes.o.
4319         (OBJS-common): Add insn-modes.o.
4320         (STAGESTUFF): Add insn-modes.c, insn-modes.h, s-modes, and
4321         genmodes$(build_exeext).
4322         (insn-modes.o, insn-modes.c, insn-modes.h, s-modes, genmodes.o,
4323         genmodes$(build_exeext), $(BUILD_PREFIX_1)insn-modes.o): New targets.
4324         (s-genrtl): Don't depend on $(RTL_BASE_H).
4325         (gengenrtl.o): Don't depend on coretypes.h, $(GTM_H), real.h,
4326         or $(RTL_BASE_H); just rtl.def.
4327         * gengenrtl.c: Don't include coretypes.h, tm.h, rtl.h, or
4328         real.h.  Give fake definition of CONST_DOUBLE_FORMAT and
4329         substitute definition of NUM_RTX_CODE.  Add casts to avoid
4330         warnings.
4331         * machmode.h: Include insn-modes.h, not machmode.def.  Include
4332         mode-classes.def to define enum mode_class.  Tweak definitions
4333         of GET_MODE_CLASS, GET_MODE_SIZE, GET_MODE_BITSIZE, GET_MODE_MASK,
4334         GET_MODE_INNER, GET_MODE_WIDER_MODE, GET_CLASS_NARROWEST_MODE.
4335         (inner_mode_array): Renamed mode_inner.
4336         (mode_base_align): New.
4337         * rtl.c (mode_name, mode_class, mode_bitsize, mode_size,
4338         mode_unit_size, mode_wider_mode, mode_mask_array,
4339         inner_mode_array, class_narrowest_mode): Delete definitions.
4340         * stor-layout.c (get_mode_alignment): Use mode_base_align.
4341         * real.h: Use MIN_MODE_FLOAT and MAX_MODE_FLOAT, not QFmode
4342         and TFmode, in real_format_for_mode and REAL_MODE_FORMAT.
4343
4344         * config/ip2k/ip2k.h, config/iq2000/iq2000.h:
4345         No need to define BITS_PER_UNIT.
4346
4347 2003-10-10  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4348
4349         * config/ia64/ia64.c (ia64_vms_init_libfuncs): New function.
4350         (ia64_output_function_prologue): Only write .prologue if --with-gnu-as.
4351         (ia64_initialize_trampoline): If not using GAS, declare trampoline
4352         as global.
4353         * config/ia64/ia64.h (ASM_APP_ON, ASM_APP_OFF): Add vers for not GAS.
4354         (ASM_OUTPUT_DEBUG_LABEL): Likewise.
4355
4356         * stor-layout.c (compute_record_mode): Don't force BLKmode if
4357         field is zero-length BLKmode.
4358         * expr.c (expand_expr, case COMPONENT_REF): Handle case of BLKmode
4359         zero-size references.
4360
4361         * combine.c (distribute_links): Properly test for REG being set.
4362
4363         * config/alpha/alpha.c (alpha_expand_block_mode): Don't use
4364         gen_lowpart and company except for REG.
4365
4366 2003-10-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4367
4368         * pa64-hpux.h (LINK_SPEC): Use `-z' option with HP ld.
4369
4370 2003-10-10  Nathanael Nerode  <neroden@gcc.gnu.org>
4371
4372         * config.gcc (mips*-*-netbsd*): Remove content-free line.
4373
4374 2003-10-10  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
4375
4376         * gcov-io.h: Check BITS_PER_UNIT when defining gcov_unsigned_t,
4377         gcov_position_t and gcov_type.
4378
4379 2003-10-09  Kaz Kojima  <kkojima@gcc.gnu.org>
4380
4381         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
4382         * configure: Regenerate.
4383
4384 2003-10-09  Kazu Hirata  <kazu@cs.umass.edu>
4385
4386         * config/h8300/h8300.md (define_asm_attributes): Specify
4387         the length of an asm insn more precisely.
4388
4389 2003-10-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4390
4391         * config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define.
4392
4393 2003-10-09  Bob Wilson  <bob.wilson@acm.org>
4394
4395         * config/xtensa/xtensa.c (xtensa_dbx_register_number): Change first
4396         FP register number to 48 and MAC16 accumulator to 0x210.
4397
4398 2003-10-09  Nathanael Nerode  <neroden@gcc.gnu.org>
4399
4400         * config.gcc: Remove redundant thread_file setting clauses for
4401         various *-*-linux* targets.
4402
4403 2003-10-09  Kazu Hirata  <kazu@cs.umass.edu>
4404
4405         * config/h8300/h8300.md (define_asm_attributes): New.
4406
4407 2003-10-09  Roger Sayle  <roger@eyesopen.com>
4408
4409         * optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note
4410         to the comparison, as emit_libcall_block calls copy_rtx on equiv.
4411
4412 2003-10-09  Dorit Naishlos  <dorit@il.ibm.com>
4413
4414         * haifa-sched.c (ok_for_early_schedule): New function.
4415         (early_queue_to_ready): New function.
4416         (schedule_block): Allow early removal of insns from Q.
4417         (schedule_insn): Update INSN_TICK in case of premature
4418         issue.
4419         * common.opt (sched_stalled_insns): New flag.
4420         (sched_stalled_insns_dep): New flag.
4421         * flags.h: Same above flags.
4422         * opts.c: Same as above.
4423         * toplev.c: Same as above.
4424         * target.h (targetm.sched.is_costly_dependence): New
4425         hook.
4426         * target-def.h: Same as above.
4427         * config/rs6000/rs6000.h: (rs6000_sched_costly_dep):
4428         Support new flag -msched-costly-dep.
4429         (DEFAULT_SCHED_COSTLY_DEP): Define.
4430         * config/rs6000/rs6000.c:
4431         (rs6000_is_costly_dependence): New function.
4432         (is_load_insn, is_store_insn): New functions.
4433         (is_load_insn1, is_store_insn1, is_mem_ref): New
4434         functions.
4435         * doc/invoke.texi (-fsched-stalled-insns-dep)
4436         (-fsched-stalled-insns, -msched-costly-dep): Document
4437         options.
4438         * doc/tm.texi (is_costly_dependence): Define new
4439         scheduler target hook.
4440
4441 2003-10-09  Jason Merrill  <jason@redhat.com>
4442
4443         PR c++/6392
4444         * c-common.c (c_build_qualified_type): Look through arrays first.
4445         (c_apply_type_quals_to_decl): Look through arrays.
4446
4447         * c-common.c (c_apply_type_quals_to_decl): Unset TREE_READONLY for
4448         types with constructors.
4449
4450         * coverage.c (build_ctr_info_value): Use build_decl to make a
4451         VAR_DECL.
4452         (create_coverage): Likewise.
4453
4454         * stmt.c (resolve_asm_operand_names): Call check_unique_operand_names
4455         here.
4456         (expand_asm_operands): Not here.
4457         (parse_input_constraint): No longer static.
4458         * tree.h: Declare it.
4459
4460 2003-10-08  Kaz Kojima  <kkojima@gcc.gnu.org>
4461
4462         * config/sh/t-linux (SHLIB_LINK): Override to use a linker script
4463         libgcc_s.so.
4464         (SHLIB_INSTALL): Likewise.
4465
4466 2003-10-08  Nathanael Nerode  <neroden@gcc.gnu.org>
4467
4468         * doc/install.texi: Remove reference to removed 'pthreads' thread
4469         option.
4470
4471 2003-10-08  Aldy Hernandez  <aldyh@redhat.com>
4472
4473         * config/rs6000/rs6000.md ("abssi2_isel"): Add early clobber to
4474         operand 2.
4475
4476 2003-10-08  Nathanael Nerode  <neroden@gcc.gnu.org>
4477
4478         * config.gcc: Don't accept --enable-threads=pthreads.  Clean
4479         up related case statements.
4480         * configure.in: Don't accept --enable-threads=pthreads,
4481         decosf1, mach, or os2 (none of which work anyway).  Alphabetize
4482         supported thread files in case clause.
4483         * configure: Regenerate.
4484
4485 2003-10-08  Geoffrey Keating  <geoffk@apple.com>
4486
4487         * function.c (pad_to_arg_alignment): Move 'boundary_in_bytes'
4488         definition to above SPARC_STACK_BOUNDARY_HACK.
4489
4490 2003-10-08  Jason Merrill  <jason@redhat.com>
4491
4492         * c-pretty-print.c (pp_c_postfix_expression)
4493         <COMPOUND_LITERAL_EXPR>: Fix thinko.
4494
4495 2003-10-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4496
4497         * mklibgcc.in: Don't hide undefined or typeless symbols.
4498
4499 2003-10-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4500
4501         PR optimization/12142
4502         * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
4503         uses of the register in the SET_SRC.  Remove unnecessary argument.
4504         * pa.c (legitimize_pic_address): Before reload, use a scratch register
4505         for the intermediate result in loading the address of a SYMBOL_REF.
4506         Set the MEM_NOTRAP_P flag for the MEM.  Add a REG_EQUAL to the insn
4507         which loads the SYMBOL_REF address.
4508
4509 2003-10-08  Timo Kokkonen  <tjko@iki.fi>
4510             Eric Botcazou  <ebotcazou@libertysurf.fr>
4511
4512         PR bootstrap/12490
4513         * scan-decls.c (MAX_EXTERN_C_BRACES): New preprocessor constant
4514         to define the size of the extern_C_braces array.  Set it to 200.
4515         (scan_decls): Abort when extern_C_braces_length is out-of-bounds.
4516
4517 2003-10-08  Carlo Wood  <carlo@alinoe.com>
4518
4519         * Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand
4520         a space after the -o option.  flex 2.5.31 understands both, with
4521         and without the space. Removed that space.
4522
4523 2003-10-08  Richard Sandiford  <rsandifo@redhat.com>
4524
4525         * config/mips/mips.c (mips_frame_info): Add cprestore_size field.
4526         (compute_frame_size): Initialize it.  Remove the .cprestore slot
4527         from args_size.
4528         (mips_output_function_prologue): Simplify accordingly.
4529         (mips_debugger_offset): Change the mips16 frame pointer offset from
4530         current_function_outgoing_args to cfun->machine->frame.args_size.
4531         (mips_initial_elimination_offset): Likewise.
4532         (mips_expand_prologue): Likewise.
4533         (mips_expand_epilogue): Likewise.
4534
4535 2003-10-08  Richard Sandiford  <rsandifo@redhat.com>
4536
4537         * config/mips/mips.h (EXTRA_CONSTRAINT): Add 'W' constraint.
4538         (EXTRA_MEMORY_CONSTRAINT): Define.
4539         (CAN_ELIMINATE): Remove lwu workaround.
4540         * config/mips/mips.md (*zero_extendsidi2_mem): Enable for mips16 too.
4541         Use a 'W' constraint for the source operand.
4542
4543 2003-10-08  Kazu Hirata  <kazu@cs.umass.edu>
4544
4545         * genopinit.c (main): Output code to declare undefined
4546         variables.
4547
4548 2003-10-07  Kelley Cook  <kcook@gcc.gnu.org>
4549
4550         * gengtype-lex.l: Remove -Wtraditional cruft.
4551         * Makefile.in (gengtype-lex.c): Likewise.
4552
4553 2003-10-07  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4554
4555         * cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.
4556
4557 2003-10-07  Jason Merrill  <jason@redhat.com>
4558
4559         PR c++/12519
4560         * c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if
4561         it isn't a decl.
4562
4563 2003-10-07  Alexandre Oliva  <aoliva@redhat.com>
4564
4565         * gcc.c (cpp_options): Only pass -fworking-directory for -g* if
4566         not overridden.
4567         Fixes PR bootstrap/12173.
4568
4569 2003-10-07  Zack Weinberg  <zack@codesourcery.com>
4570
4571         * errors.c: Don't include coretypes.h or tm.h.
4572         (trim_filename): Use IS_DIR_SEPARATOR.
4573         * Makefile.in: Update dependencies of errors.o and
4574         $(BUILD_PREFIX_1)errors.o.
4575
4576 2003-10-07  Geoffrey Keating  <geoffk@apple.com>
4577
4578         * function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into
4579         account when aligning arguments.
4580         * calls.c (STACK_POINTER_OFFSET): Move default from here ...
4581         * defaults.h (STACK_POINTER_OFFSET): ... to here.
4582         * config/sparc/sparc.h (STACK_BOUNDARY): Add comment about how
4583         it's wrong when TARGET_ARCH64 && TARGET_STACK_BIAS.
4584         (SPARC_STACK_BOUNDARY_HACK): Define.
4585         * config/rs6000/rs6000.c (function_arg): On non-SVR4 systems,
4586         arrange for vector parameters to varargs functions to be passed
4587         in both memory and GPRs when appropriate.
4588         (rs6000_va_arg): Vector arguments passed in memory are 16-byte
4589         aligned.
4590
4591         * hooks.c (hook_bool_tree_true): New.
4592         (hook_rtx_tree_int_null): New.
4593         (hook_rtx_rtx_null): Use NULL, not 0.
4594         * hooks.h: Add 'extern' to everything.
4595         (hook_bool_tree_true): New.
4596         (hook_rtx_tree_int_null): New.
4597         * targhooks.c (hook_bool_CUMULATIVE_ARGS_true): New.
4598         * targhooks.h (hook_bool_CUMULATIVE_ARGS_true): New.
4599         * config/rs6000/rs6000-protos.h (setup_incoming_varargs): Remove
4600         prototype.
4601         * config/rs6000/rs6000.c (rs6000_return_in_memory): New.
4602         (setup_incoming_varargs): Prototype.
4603         (TARGET_PROMOTE_FUNCTION_ARGS): Define.
4604         (TARGET_PROMOTE_FUNCTION_RETURN): Define.
4605         (TARGET_STRUCT_VALUE_RTX): Define.
4606         (TARGET_RETURN_IN_MEMORY): Define.
4607         (TARGET_SETUP_INCOMING_VARARGS): Define.
4608         (TARGET_STRICT_ARGUMENT_NAMING): Define.
4609         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Define.
4610         (init_cumulative_args): Use rs6000_return_in_memory.
4611         (setup_incoming_varargs): Make 'static'.
4612         * config/rs6000/rs6000.h (PROMOTE_FUNCTION_ARGS): Delete.
4613         (PROMOTE_FUNCTION_RETURN): Delete.
4614         (STRUCT_VALUE): Delete.
4615         (RETURN_IN_MEMORY): Delete.
4616         (SETUP_INCOMING_VARARGS): Delete.
4617
4618 2003-10-07  Gerald Pfeifer  <gerald@pfeifer.com>
4619
4620         * doc/invoke.texi (Warning Options): Simplify and clarify the
4621         descriptions of -Wnonnull and -Winit-self.
4622
4623 2003-10-07  Richard Earnshaw  <rearnsha@arm.com>
4624
4625         * optabs.c (init_intraclass_conv_libfuncs): Fix order of array
4626         indicees for floating-point conversersion libcalls.
4627
4628 2003-10-07  Nathanael Nerode  <neroden@gcc.gnu.org>
4629
4630         * Makefile.in: Add more comments separating large conceptually
4631         separate sections.
4632
4633         * configure.in: Clean up thread file logic.
4634         * configure: Regenerate.
4635
4636 2003-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
4637
4638         * config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
4639         (switch_to_section): Handle in_readonly_data.
4640         * config/i386/winnt.c (i386_pe_asm_named_section): Handle
4641         readonly data.
4642
4643 2003-10-07  Richard Earnshaw  <rearnsha@arm.com>
4644
4645         * arm.md (cmpsi2_addneg): New ARM pattern. Add peephole2 to generate
4646         it.
4647         (cbranchne_decr1): New Thumb pattern.
4648         * arm.c (arm_addimm_operand): New insn predicate.
4649         * arm-protos.h: Add a prototype for it.
4650         * arm.h (PREDICATE_CODES): Add it.
4651
4652 2003-10-07  Dorit Naishlos <dorit@il.ibm.com>
4653
4654         * sched-int.h (sched_info): New field
4655         sched_max_insns_priority.
4656         * sched-rgn.c (init_ready_list): Add invocations to
4657         targetm.sched.adjust_priority.
4658         (sched_max_insns_priority): Init new field.
4659         * sched-ebb.c (sched_max_insns_priority): Init new field.
4660         * haifa-sched.c (set_priorities): Set
4661         sched_info->sched_max_insns_priority.
4662         * config/rs6000/rs6000.h:
4663         (rs6000_sched_restricted_insns_priority_str): Support new
4664         flag -mprioritize-restricted-insns.
4665         (DEFAULT_RESTRICTED_INSNS_PRIORITY): Define.
4666         * config/rs6000/rs6000.c (is_dispatch_slot_restricted): New
4667         function.
4668         (rs6000_adjust_priority): Change priority of restricted
4669         insns, using above new function and new flag.
4670         * doc/invoke.texi (-mprioritize-restricted-insns): Document
4671         new option.
4672
4673 2003-10-07  Zack Weinberg  <zack@codesourcery.com>
4674
4675         * expr.c (cmpstr_optab, cmpmem_optab): New.
4676         * genopinit.c: Initialize them.
4677         * optabs.h: Declare them.
4678         * optabs.c (init_optabs): Clear them.
4679         (prepare_cmp_insn):  Use cmpstr_optab and cmpmem_optab to find
4680         block memory compare insns, not conditional chains.  Restructure
4681         the fallback generation of a call to memcmp/bcmp for better
4682         readability.
4683
4684 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
4685
4686         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.
4687         (mips_save_restore_fn): New typedef.
4688         (mips_add_large_offset_to_sp, mips_emit_frame_related_store): Remove.
4689         (mips_set_frame_expr, mips_frame_set): Move above prologue code.
4690         (save_restore_insns): Remove, replacing with...
4691         (mips_save_restore_reg, mips_for_each_saved_reg): ...these new fns.
4692         (mips_save_reg, mips_restore_reg): New function.
4693         (mips_expand_prologue, mips_expand_epilogue): Rework.
4694         * config/mips/mips.h (MIPS_TEMP1_REGNUM, MIPS_TEMP2_REGNUM): Remove.
4695         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): New macros.
4696         (MIPS_PROLOGUE_TEMP, MIPS_EPILOGUE_TEMP): New macros.
4697
4698 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
4699
4700         * config/mips/mips.c (mips_expand_prologue): Remove unused
4701         traversal of function arguments.
4702
4703 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
4704
4705         * doc/invoke.texi: Remove documentation of -mentry.
4706         * config/mips/mips.c (mips_entry_string, mips_entry): Remove.
4707         (override_options, mips_save_reg_p): Remove handling.
4708         (compute_frame_size, mips_output_function_prologue): Likewise.
4709         (mips_expand_prologue, mips_expand_epilogue): Likewise.
4710         * config/mips/mips.h (mips_entry_string): Remove declaration.
4711         (TARGET_OPTIONS): Remove -mentry.
4712         * config/mips/mips16.S: Remove mention of -mentry.
4713
4714 2003-10-06  Zack Weinberg  <zack@codesourcery.com>
4715
4716         * libfuncs.h (LTI_extendsfdf2, LTI_extendsfxf2, LTI_extendsftf2)
4717         (LTI_extenddfxf2, LTI_extenddftf2, LTI_truncdfsf2, LTI_truncxfsf2)
4718         (LTI_trunctfsf2, LTI_truncxfdf2, LTI_trunctfdf2, LTI_floatsisf)
4719         (LTI_floatdisf, LTI_floattisf, LTI_floatsidf, LTI_floatdidf)
4720         (LTI_floattidf, LTI_floatsixf, LTI_floatdixf, LTI_floattixf)
4721         (LTI_floatsitf, LTI_floatditf, LTI_floattitf, LTI_fixsfsi, LTI_fixsfdi)
4722         (LTI_fixsfti, LTI_fixdfsi, LTI_fixdfdi, LTI_fixdfti, LTI_fixxfsi)
4723         (LTI_fixxfdi, LTI_fixxfti, LTI_fixtfsi, LTI_fixtfdi, LTI_fixtfti)
4724         (LTI_fixunssfsi, LTI_fixunssfdi, LTI_fixunssfti, LTI_fixunsdfsi)
4725         (LTI_fixunsdfdi, LTI_fixunsdfti, LTI_fixunsxfsi, LTI_fixunsxfdi)
4726         (LTI_fixunsxfti, LTI_fixunstfsi, LTI_fixunstfdi, LTI_fixunstfti)
4727         (extendsfdf2_libfunc, extendsfxf2_libfunc, extendsftf2_libfunc)
4728         (extenddfxf2_libfunc, extenddftf2_libfunc, truncdfsf2_libfunc)
4729         (truncxfsf2_libfunc, trunctfsf2_libfunc, truncxfdf2_libfunc)
4730         (trunctfdf2_libfunc, floatsisf_libfunc, floatdisf_libfunc)
4731         (floattisf_libfunc, floatsidf_libfunc, floatdidf_libfunc)
4732         (floattidf_libfunc, floatsixf_libfunc, floatdixf_libfunc)
4733         (floattixf_libfunc, floatsitf_libfunc, floatditf_libfunc)
4734         (floattitf_libfunc, fixsfsi_libfunc, fixsfdi_libfunc, fixsfti_libfunc)
4735         (fixdfsi_libfunc, fixdfdi_libfunc, fixdfti_libfunc, fixxfsi_libfunc)
4736         (fixxfdi_libfunc, fixxfti_libfunc, fixtfsi_libfunc, fixtfdi_libfunc)
4737         (fixtfti_libfunc, fixunssfsi_libfunc, fixunssfdi_libfunc)
4738         (fixunssfti_libfunc, fixunsdfsi_libfunc, fixunsdfdi_libfunc)
4739         (fixunsdfti_libfunc, fixunsxfsi_libfunc, fixunsxfdi_libfunc)
4740         (fixunsxfti_libfunc, fixunstfsi_libfunc, fixunstfdi_libfunc)
4741         (fixunstfti_libfunc): Delete.
4742         * optabs.h (struct optab_handlers): Break out of struct optab.
4743         (struct convert_optab, convert_optab, enum convert_optab_index,
4744         convert_optab_table, sext_optab, zext_optab, trunc_optab,
4745         sfix_optab, ufix_optab, sfixtrunc_optab, ufixtrunc_optab,
4746         sfloat_optab, ufloat_optab): New.
4747         (set_conv_libfunc): Prototype.
4748         (GEN_FCN): Use C90 indirect call syntax, remove unnecessary cast.
4749         (trunc_optab): Renamed btrunc_optab.
4750         * builtins.c (expand_builtin_mathfn): Update to match.
4751         * optabs.c (extendtab, fixtab, fixtrunctab, floattab): Delete.
4752         (convert_optab_table, new_convert_optab, init_convert_optab)
4753         (init_interclass_conv_libfuncs, init_intraclass_conv_libfuncs)
4754         (set_conv_libfunc): New.
4755         (can_extend_p, gen_extend_insn, can_fix_p, can_float_p)
4756         (expand_float, expand_fix): Use new conversion optabs,
4757         not old insn code tables or long chains of ifs.
4758         (init_optabs): No need to clear old insn code tables.
4759         Initialize the new optabs, not the old libfunc array entries.
4760         Don't handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
4761         * genopinit.c: Initialize conversion optabs, not the
4762         former insn code tables.  Remove unnecessary casts.
4763         Handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
4764         * expr.c (convert_move): Remove redundant check that
4765         to_real==from_real.  Use the conversion optabs instead
4766         of long chains of tests of modes.  Move partial-integer-mode
4767         interconversion above all integer conversion.  Do not recurse
4768         on a value forced into a register in the original mode.
4769
4770         * config/gofast.h, config/frv/frv.c, config/ia64/ia64.c
4771         * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
4772         * config/sparc/sparc.c: Use set_conv_libfunc to adjust entries
4773         in new conversion optabs; do not reference the old libfunc
4774         array entries.  No need to include libfuncs.h.
4775
4776 2003-10-06  Roger Sayle  <roger@eyesopen.com>
4777
4778         * config/i386/i386.c (ix86_expand_setcc): Annotate the floating
4779         point comparison sequence with a REG_EQUAL note that describes
4780         the comparison's semantics.
4781
4782 2003-10-06  Roger Sayle  <roger@eyesopen.com>
4783
4784         * expr.c (expand_expr <COND_EXPR>): Handle the void type semantics
4785         of COND_EXPR when expanding the "A op 0 ? FOO : A" optimizations.
4786
4787 2003-10-06  Roger Sayle  <roger@eyesopen.com>
4788             Zack Weinberg  <zack@codesourcery.com>
4789
4790         * optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL
4791         instruction by using LCT_CONST and then calling emit_libcall_block
4792         ourselves.
4793
4794 2003-10-06  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
4795
4796         PR optimization/11974
4797         * optabs.c (expand_unop): Promote libcall outmode according to
4798         hard_libcall_value.
4799
4800 2003-10-06  Zack Weinberg  <zack@codesourcery.com>
4801
4802         * real.h (REAL_MODE_FORMAT): New macro.
4803         * c-cppbuiltin.c, optabs.c, real.c, config/alpha/alpha.c
4804         * config/c4x/c4x.c, config/i370/i370.c, config/i386/freebsd.h
4805         * config/i386/i386.c, config/i960/i960.c, config/ia64/ia64.c
4806         * config/m68k/m68k.c, config/mips/mips.c, config/rs6000/rs6000.c
4807         * config/vax/vax.c: Use REAL_MODE_FORMAT instead of referring
4808         directly to real_format_for_mode array, wherever possible.
4809
4810 2003-10-06  Devang Patel  <dpatel@apple.com>
4811
4812         * dwarf2out.c (is_main_source): Remove variable.
4813         (dwarf2out_start_source_file): Do not check is_main_source.
4814         Do not reset is_main_source.
4815         (dwarf2out_init): Do not initialize is_main_source.
4816
4817 2003-10-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4818
4819         * fixinc/inclhack.def (stdio_va_list): Removed _ap fix.
4820         (irix_stdio_va_list): Don't require leading printf, IRIX 6.5.21
4821         introduced some multi-line prototypes.
4822         * fixinc/fixincl.x: Regenerate.
4823
4824 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
4825
4826         * config/mips/mips.h (PREDICATE_CODES): Add stack_operand.
4827         * config/mips/mips.c (stack_operand): New predicate.
4828         * config/mips/mips.md: Use it for the destination of mips16 insns
4829         that store $31.
4830
4831 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
4832
4833         * config/mips/mips.md (*lowsi): Renamed from lowsi.
4834         (*lowdi): Likewise lowdi.
4835         (*lowsi_mips16, *lowdi_mips16): New patterns.
4836         * config/mips/mips.c (mips_const_insns, mips_output_move): Remove
4837         mips16 CONSTANT_RELOC handling.
4838         (mips_delegitimize_address): Adjust for new sdata representation.
4839
4840 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
4841
4842         * config/mips/mips.c (mips_arg_info): If MUST_PASS_IN_STACK,
4843         skip any remaining register arguments.
4844
4845 2003-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
4846
4847         * reload.c (find_reloads_subreg_address): Use correct offset for
4848         paradoxical MEM subregs on big-endian targets.
4849
4850 2003-10-06  Andrew Haley  <aph@redhat.com>
4851
4852         * tree.c (get_callee_fndecl): Call
4853         lang_hooks.lang_get_callee_fndecl.
4854         * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): New.
4855         (lhd_get_callee_fndecl): New.
4856
4857 2003-10-06  Andrew Pinski  <apinski@apple.com>
4858
4859         * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
4860         error in calculating the length of the string.
4861         (machopic_stub_name): Likewise.
4862
4863 2003-10-06  Roger Sayle  <roger@eyesopen.com>
4864
4865         * optabs.c (prepare_float_lib_cmp):  Attach a REG_EQUAL note
4866         describing the return value of the comparison libcall to the
4867         REG_RETVAL instruction of the emitted sequence.
4868
4869 2003-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
4870
4871         PR optimization/12215
4872         * cse.c (cse_set_around_loop): Emit the move at the beginning
4873         of the next basic block for trapping sets.
4874
4875 2003-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
4876
4877         PR optimization/11637
4878         * combine.c (adjust_for_new_dest): New function to adjust the
4879         notes and LOG_LINKS when the dest of an insn has changed.
4880         (try_combine): Use it when deleting the first insn of a two-insn
4881         parallel or splitting a two-load parallel.
4882
4883 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
4884
4885         * config/mips/mips.c (mips_classify_constant): Only allow UNSPECs
4886         if TARGET_EXPLICIT_RELOCS.
4887
4888 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
4889
4890         PR bootstrap/12512
4891         * Makefile.in (info): Use double-colon rules.
4892         (dvi): Likewise.
4893         (generated-manpages): Likewise.
4894         * configure.in: Do not create lang.info, lang.dvi, or
4895         lang.generated-manpages hooks.
4896         * configure: Regenerated.
4897         * objc/Make-lang.in (objc.info): Remove.
4898         (objc.dvi): Remove.
4899         (objc.generated-manpages): Remove.
4900         * doc/sourcebuild.texi: Update description of info, dvi, and
4901         generated-manpages hooks.
4902
4903 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
4904
4905         * config/mips/mips.md: Merge mips16 lw/srl pattern with its splitter.
4906
4907 2003-10-05  Andrew Pinski  <apinski@apple.com>
4908
4909         * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
4910         errors in memcpy destinations.
4911         (machopic_stub_name): Likewise.
4912
4913 2003-10-05  Andrew Pinski <apinski@apple.com>
4914
4915         * config/darwin.c (machopic_non_lazy_ptr_name):
4916         Change strcat to memcpy and add length together.
4917         (machopic_stub_name): Likewise.
4918
4919 2003-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
4920
4921         * config/sh/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new
4922         signal trampoline codes.
4923
4924 2003-10-05  Chris Demetriou  <cgd@broadcom.com>
4925
4926         * config/mips/mips.md (*divsf3): Move description of
4927         SB-1 F2 erratum from here to...
4928         (divsf3): Here.  Disable if TARGET_FIX_SB1 is set and
4929         flag_unsafe_math_optimizations is not.
4930
4931 2003-10-05  Aldy Hernandez  <aldyh@redhat.com>
4932
4933         * config/rs6000/linuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE,
4934         TARGET_E500, TARGET_ISEL, and TARGET_FPRS.
4935
4936 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
4937
4938         * c-pretty-print.c: Fix comment typos.
4939         * c-pretty-print.h: Likewise.
4940         * calls.c: Likewise.
4941         * cfgloopmanip.c: Likewise.
4942         * cgraphunit.c: Likewise.
4943         * cppfiles.c: Likewise.
4944         * final.c: Likewise.
4945         * function.c: Likewise.
4946         * gcov-io.h: Likewise.
4947         * gcse.c: Likewise.
4948         * genoutput.c: Likewise.
4949         * loop.c: Likewise.
4950         * postreload.c: Likewise.
4951         * reg-stack.c: Likewise.
4952         * regmove.c: Likewise.
4953         * sched-int.h: Likewise.
4954         * sched-rgn.c: Likewise.
4955         * simplify-rtx.c: Likewise.
4956         * tree-inline.c: Likewise.
4957         * config/m68hc11/m68hc11.h: Likewise.
4958         * config/mmix/mmix.c: Likewise.
4959         * config/mn10300/mn10300.md: Likewise.
4960         * config/sh/sh.h: Likewise.
4961
4962 2003-10-05  Richard Henderson  <rth@redhat.com>
4963
4964         * tree-inline.c (remap_type): New.
4965         (remap_decl): Use it.  Remap DECL_SIZE*.
4966         (copy_body_r): Use it.
4967         (walk_tree): Walk TREE_TYPE too.
4968         (copy_tree_r): Don't walk subtrees of types.
4969         * tree.c (variably_modified_type_p): Restructure.  Consider integer
4970         types with non-const bounds variably modified.
4971
4972 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
4973
4974         * doc/invoke.texi: Fix typos.
4975
4976 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
4977
4978         * fold-const.c: Follow spelling conventions.
4979         * function.c: Likewise.
4980         * config/c4x/c4x.h: Likewise.
4981         * config/c4x/c4x.md: Likewise.
4982         * config/frv/frv.md: Likewise.
4983         * config/rs6000/aix.h: Likewise.
4984         * config/rs6000/linux64.h: Likewise.
4985         * config/xtensa/xtensa.c: Likewise.
4986
4987 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
4988
4989         * c-pretty-print.c: Fix comment formatting.
4990         * cfglayout.c: Likewise.
4991         * cfgloopanal.c: Likewise.
4992         * cppcharset.c: Likewise.
4993         * dbxout.c: Likewise.
4994         * ggc-page.c: Likewise.
4995         * ggc.h: Likewise.
4996         * target.h: Likewise.
4997
4998 2003-10-04  Kelley Cook  <kelleycook@wideopenwest.com>
4999
5000         * gengtype-lex.l: Recognize typedef of functions without PARAMS macro.
5001
5002 2003-10-04  Nathanael Nerode  <neroden@gcc.gnu.org>
5003
5004         * config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c:
5005         Convert to ISO C90 function declarations and definitions.
5006
5007 2003-10-04  Zack Weinberg  <zack@codesourcery.com>
5008
5009         * libfuncs.h
5010         (LTI_eqhf2, LTI_nehf2, LTI_gthf2, LTI_gehf2, LTI_lthf2)
5011         (LTI_lehf2, LTI_unordhf2, LTI_eqsf2, LTI_nesf2, LTI_gtsf2)
5012         (LTI_gesf2, LTI_ltsf2, LTI_lesf2, LTI_unordsf2, LTI_eqdf2)
5013         (LTI_nedf2, LTI_gtdf2, LTI_gedf2, LTI_ltdf2, LTI_ledf2)
5014         (LTI_unorddf2, LTI_eqxf2, LTI_nexf2, LTI_gtxf2, LTI_gexf2)
5015         (LTI_ltxf2, LTI_lexf2, LTI_unordxf2, LTI_eqtf2, LTI_netf2)
5016         (LTI_gttf2, LTI_getf2, LTI_lttf2, LTI_letf2, LTI_unordtf2)
5017         (eqhf2_libfunc, nehf2_libfunc, gthf2_libfunc, gehf2_libfunc)
5018         (lthf2_libfunc, lehf2_libfunc, unordhf2_libfunc, eqsf2_libfunc)
5019         (nesf2_libfunc, gtsf2_libfunc, gesf2_libfunc, ltsf2_libfunc)
5020         (lesf2_libfunc, unordsf2_libfunc eqdf2_libfunc, nedf2_libfunc)
5021         (gtdf2_libfunc, gedf2_libfunc, ltdf2_libfunc, ledf2_libfunc)
5022         (unorddf2_libfunc eqxf2_libfunc, nexf2_libfunc, gtxf2_libfunc)
5023         (gexf2_libfunc, ltxf2_libfunc, lexf2_libfunc, unordxf2_libfunc
5024         (eqtf2_libfunc, netf2_libfunc, gttf2_libfunc, getf2_libfunc)
5025         (lttf2_libfunc, letf2_libfunc, unordtf2_libfunc):
5026         Delete.
5027         * optabs.h (OTI_eq, OTI_ne, OTI_gt, OTI_ge, OTI_lt, OTI_le)
5028         (OTI_unord, eq_optab, ne_optab, gt_optab, ge_optab, lt_optab)
5029         (le_optab, unord_optab): New.
5030
5031         * optabs.c (prepare_float_lib_cmp): Rewrite.  Get the libfuncs
5032         from the code_to_optab table, not a giant switch; use
5033         swap_condition; do widening only if a comparison function that
5034         we can call exists in a wider mode, not if a cmp_optab insn or
5035         libfunc exists in a wider mode; call protect_from_queue
5036         exactly once on each operand.
5037         (init_optabs): Initialize the new optabs, not the deleted libfuncs.
5038
5039         * config/gofast.h, config/ia64/ia64.c, config/mips/mips.c
5040         * config/pa/pa.c, config/rs6000/rs6000.c, config/sparc/sparc.c:
5041         Set floating point comparison libfuncs using set_optab_libfunc
5042         on the appropriate optab.
5043
5044         * config/ia64/ia64.c (ia64_hpux_init_libfuncs): Fix typo.
5045         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Correct ABI
5046         selector conditionals.
5047
5048 2003-10-04  Stephane Carrez  <stcarrez@nerim.fr>
5049
5050         * config/m68hc11/t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is
5051         identical to m68hc12 as far as libraries are concerned.
5052
5053 2003-10-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
5054
5055         PR c/12446
5056         * c-typeck.c (convert_for_assignment): Issue an error for
5057         array to pointer assignment after default conversion.
5058         (digest_init): Likewise.
5059
5060 2003-10-04  Fariborz Jahanian  <fjahanian@apple.com>
5061
5062         * c-decl.c (duplicate_decls): retain DECL_COMMON of old declaration
5063
5064 2003-10-03  Gerald Pfeifer  <gerald@pfeifer.com>
5065
5066         * doc/extend.texi (Function Attributes): Fix title of GNU C
5067         Preprocessor manual.
5068         (C++ Extensions): Fix reference to "Predefined Macros" in the
5069         GNU C Preprocessor manual.
5070
5071 2003-10-04  Richard Earnshaw  <reanrsha@arm.com>
5072
5073         * doc/extend.texi: Document how GCC estimates and relies on the size
5074         of an asm.
5075
5076 2003-10-04  Richard Sandiford  <rsandifo@redhat.com>
5077
5078         * config/mips/mips.c (mips_pad_arg_upward): Pad floating-point
5079         arguments downward for big-endian o64.
5080
5081 2003-10-03  Robert Bowdidge <bowdidge@apple.com>
5082
5083         * ggc-page.c (ggc_pch_write_object): Replace fseek() with fwrite() in
5084         PCH generation, avoiding too-frequent flushes when writing to NFS
5085         file system.
5086
5087 2003-10-03  Ziemowit Laski  <zlaski@apple.com>
5088
5089         * objc/objc-act.c (lookup_category): Mark as 'inline'.
5090
5091 2003-10-03  Alexander Malmberg  <alexander@malmberg.org>
5092             Ziemowit Laski  <zlaski@apple.com>
5093
5094         * objc/objc-act.c (add_method_to_hash_list, lookup_category):
5095         New functions.
5096         (lookup_method_in_hash_lists): New parameter indicating whether
5097         we are messaging 'Class' or 'id'.
5098         (check_duplicates): Likewise; do not assume all methods will
5099         be either class or instance methods.
5100         (generate_category, finish_class): Use lookup_category().
5101         (add_method): Use add_method_to_hash_list(); insert instance
5102         methods of root classes into the global class method hash table.
5103         (add_category): Use lookup_category(); avoid constructing
5104         duplicate categories.
5105         (really_start_method): Add method to corresponding @interface,
5106         if not already there (and if the @interface exists).
5107         (finish_message_expr, finish_objc): Adjust calls to
5108         check_duplicates().
5109
5110 2003-10-03  Roger Sayle  <roger@eyesopen.com>
5111
5112         PR optimization/9325, PR java/6391
5113         * fold-const.c (fold_convert): For floating point to integer
5114         conversions, return the maximum/minimum representable integer
5115         value if the real constant overflows the destination type.
5116         * tree.c (real_value_from_int_cst): Allow the type to be NULL,
5117         meaning don't truncate the result to a floating point mode.
5118         Simplify the logic by calling real_from_integer directly.
5119         * simplify-rtx.c (simplify_unary_operation):  Implement the
5120         same semantics for folding floating point to integer conversions
5121         in RTL.
5122
5123 2003-10-03  Chris Demetriou  <cgd@broadcom.com>
5124
5125         * config/mips/mips.c (mips_emit_prefetch): Restructure
5126         to avoid use of arrays, handle indexed prefetch.
5127         * config/mips/mips.h (ISA_HAS_FP4, ISA_HAS_PREFETCH): Update comments.
5128         (ISA_HAS_PREFETCHX): New deffine.
5129         * config/mips/mips.md ("type" attr): Add new "prefetchx" value,
5130         update comments.
5131         (prefetch_indexed_di, prefetch_indexed_si): New insns.
5132
5133 2003-10-03  Jeff Sturm  <jsturm@one-point.com>
5134             Roger Sayle  <roger@eyesopen.com>
5135
5136         PR optimization/12289
5137         * calls.c (emit_call_1): Pretend to have popped the arguments
5138         to noreturn and longjmp functions instead of ignoring them.
5139         (expand_call): Don't adjust stack_pointer_dela while
5140         inhibit_defer_pop is set.
5141
5142 2003-10-03  Andreas Schwab  <schwab@suse.de>
5143
5144         PR bootstrap/12276
5145         * configure.in: Check for libunwind on the host only if building
5146         a native compiler.
5147         * configure: Regenerated.
5148
5149 2003-10-03  Paolo Carlini  <pcarlini@unitus.it>
5150
5151         * unwind-pe.h (read_encoded_value_with_base): Constify u and
5152         its inizialization cast.
5153
5154 2003-10-03  Richard Sandiford  <rsandifo@redhat.com>
5155
5156         PR target/12485
5157         * config/mips/mips.c (mips_load_got): GOT accesses can't trap.
5158
5159 2003-10-02  Mark Mitchell  <mark@codesourcery.com>
5160
5161         PR optimization/12180
5162         * tree-inline.c (inline_forbidden_p_1): Do not permit inlining of
5163         functions containing calls to __builtin_next_arg.
5164
5165 2003-10-02  Chris Demetriou  <cgd@broadcom.com>
5166
5167         * config/mips/mips.c (mips_emit_prefetch): Use operand 3
5168         in instructions being output.
5169         * config/mips/mips.md (prefetch_si_address): Change third
5170         operand's constraint letter to 'I'.
5171         (prefetch_di_address): Likewise.
5172         (prefetch_si, prefetch_di): Set third operand to const0_rtx.
5173
5174 2003-10-02  Zack Weinberg  <zack@codesourcery.com>
5175
5176         * system.h: Poison macros obsoleted by earlier patch.
5177         * config/cris/cris.c: C90-ify a function definition.
5178
5179 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
5180
5181         PR/12292
5182         * combine.c (make_field_assignment): Check whether rtx's code
5183         is CONST_INT before using INTVAL.
5184
5185 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
5186
5187         * cgraph.c (cgraph_node): Use INSERT instead of 1 in
5188         htab_find_slot_with_hash.
5189         (cgraph_node_for_identifier): Use NO_INSERT.
5190         (cgraph_remove_node): Use NO_INSERT.
5191         (cgraph_varpool_node): Use INSERT.
5192         (cgraph_varpool_node_for_identifier): Use NO_INSERT.
5193
5194 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
5195
5196         Waldek Hebisch <hebisch@math.uni.wroc.pl>
5197         PR/12072
5198         * varasm.c (compare_constant): Fix thinko.
5199
5200 2003-10-02  Richard Sandiford  <rsandifo@redhat.com>
5201
5202         * config/frv/frv.c (frv_issue_rate): New function.
5203         (frv_pack_insns): Use it.
5204         (TARGET_SCHED_ISSUE_RATE): Define.
5205
5206 2003-10-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
5207
5208         * config/mcore/mcore.c: Convert to ISO C90 function declarations
5209         and definitions.
5210         * config/mcore/mcore.h: Likewise.
5211         * config/mcore/mcore-protos.h: Likewise.
5212
5213 2003-10-02  Richard Sandiford  <rsandifo@redhat.com>
5214
5215         * config/frv/frv.c (frv_use_dfa_pipeline_interface): New function.
5216         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
5217
5218 2003-10-01  Per Bothner  <pbothner@apple.com>
5219
5220         * c-lex.c (src_line):   Remove unneeded static variable.
5221         (cb_line_change):  Set input_line directly, instead of src_line.
5222         (get_non_padding_token):  We no longer need to compensate for the
5223         "horrible things" the C++ front-end does with the current line number,
5224
5225         * cpplib.c (_cpp_pop_buffer):  Do generate a _cpp_do_file_change
5226         callback even when popping the main file.
5227         * c-lex.c (fe_file_change):  Handle a NULL new_map.
5228         * fix-header.c (cb_file_change):  Likewise.
5229         * c-ppoutput.c (pp_file_change):  Likewise.
5230
5231         * cppinit.c (cpp_read_main_file):  Split into two functions:
5232         Distribute _cpp_stack_file call over the two functions.
5233         (cpp_find_main_file):  New function.
5234         Don't call _cpp_do_file_change even if working_directory flag set.
5235         (cpp_push_main_file):  New function.
5236         * cppfiles.c (_cpp_find_failed):  New helper function.
5237         (find_file):  Made non-static and renamed to _cpp_find_file.
5238         (_cpp_stack_file):  No longer needed.  But note the following.
5239         (stack_file):  Made non-static and renamed to _cpp_stack_file.
5240         * fix-header.c (cpp_read_main_file):  Replace cpp_read_main_file
5241         call with calls to cpp_find_main_file and cpp_push_main_file.
5242         (search_path_head):  If there is no current buffer, use main_file.
5243         * cpphash.h:  Update function declarations.
5244         * cpplib.h:  Update function declarations.
5245
5246         * c-opts.c (c_common_post_options):  Don't call cpp_find_main_file yet.
5247         (c_common_parse_file):  No longer need to call cpp_read_main_file
5248         when file_index > 0 (as in multi-file or server compiation).
5249         (finish_options):  Change to <built-in> is an LC_ENTER, not LC_RENAME
5250         as this now happens before cpp_push_main_file.
5251         (push_command_line_include):  When done with options, pass LC_LEAVE
5252         instead of LC_RENAME to cpp_change_file and finally cpp_push_main_file.
5253         (fe_file_change):  Handle NULL new_map, and simplify.
5254         * cpplex.c (_cpp_get_fresh_line):  Revert my no-longer-needed
5255         08-28 change, since we're never called with a NULL buffer.
5256         (_cpp_lex_direct):  Likewise.
5257         * cpptrad.c (_cpp_read_logical_line_trad):  Likewise.
5258         Return false if buffer is NULL at end.
5259
5260         * cpplex.c (_cpp_get_fresh_line):  Return value now just depends on
5261         whether pfile->buffer is NULL after pop, ignoring return_at_eof.
5262         * cpphash.h (struct cpp_buffer):  Remove unused return_at_eof field.
5263         * cpplib.c (cpp_push_buffer):  Since we no longer set return_at_eof,
5264         remove the unused return_at_eof parameter.
5265         * cppfiles.c, cpplib.c, cppmacro.c, cpppch.c, fix-header.c:
5266         Update callers of cpp_push_buffer.
5267
5268 2003-10-01  Zack Weinberg  <zack@codesourcery.com>
5269
5270         * target.h (init_libfuncs): New hook.
5271         * target-def.h: Default TARGET_INIT_BUILTINS and
5272         TARGET_INIT_LIBFUNCS to hook_void_void.  Add
5273         TARGET_INIT_LIBFUNCS to TARGET_INITIALIZER.
5274         * builtins.c (default_init_builtins): Delete.
5275         * expr.h (default_init_builtins): Delete prototype.
5276         * doc/tm.texi: Document TARGET_INIT_LIBFUNCS and US_SOFTWARE_GOFAST.
5277         Tweak documentation of TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL.
5278         Remove documentation of INIT_TARGET_OPTABS, MULSI3_LIBCALL,
5279         DIVSI3_LIBCALL, UDIVSI3_LIBCALL, MODSI3_LIBCALL, UMODSI3_LIBCALL,
5280         MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL,
5281         and UMODDI3_LIBCALL,
5282
5283         * Makefile.in (optabs.o): Depends on target.h.
5284         * defaults.h: Provide default for FLOAT_LIB_COMPARE_RETURNS_BOOL.
5285         * optabs.c: Include target.h.
5286         (prepare_float_lib_cmp): No need for #ifdef around use of
5287         FLOAT_LIB_COMPARE_RETURNS_BOOL.
5288         (set_optab_libfunc): New function.
5289         (init_optabs): Delete use of all *_LIBCALL defines.
5290         Call targetm.init_libfuncs not INIT_TARGET_OPTABS.
5291         * optabs.h: Prototype set_optab_libfunc.
5292
5293         * config.gcc: Remove all references to pa/long_double.h,
5294         ia64/hpux_longdouble.h, and gofast.h.
5295         (mips-*-*): When --enable-gofast, just add US_SOFTWARE_GOFAST
5296         to tm_defines; don't set INIT_SUBTARGET_OPTABS or change tm_file.
5297
5298         * config/alpha/alpha.c, config/c4x/c4x.c, config/cris/cris.c
5299         * config/frv/frv.c, config/h8300/h8300.c, config/i860/i860.c
5300         * config/ia64/ia64.c, config/ip2k/ip2k.c, config/m68hc11/m68hc11.c
5301         * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
5302         * config/sparc/sparc.c, config/vax/vax.c:
5303         Provide a definition for TARGET_INIT_LIBFUNCS.  Where
5304         necessary, include optabs.h, libfuncs.h, and/or config/gofast.h.
5305
5306         * config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.h
5307         * config/avr/avr.h, config/cris/cris.h, config/frv/frv.h
5308         * config/h8300/h8300.h, config/i860/i860.h, config/ip2k/ip2k.h
5309         * config/iq2000/iq2000.h, config/m68hc11/m68hc11.h, config/mips/mips.h
5310         * config/rs6000/aix.h, config/rs6000/sysv4.h, config/sparc/elf.h
5311         * config/sparc/lite.h, config/sparc/netbsd-elf.h, config/sparc/sol2.h
5312         * config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h
5313         * config/vax/elf.h: Don't define or use INIT_TARGET_OPTABS,
5314         INIT_SUBTARGET_OPTABS, or any *_LIBCALL macros.
5315
5316         * config/ia64/hpux.h: Redefine INTEL_EXTENDED_IEEE_FORMAT to 0.
5317         Set TARGET_INIT_LIBFUNCS and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
5318         * config/pa/pa-hpux.h: Define LONG_DOUBLE_TYPE_SIZE,
5319         HPUX_LONG_DOUBLE_LIBRARY, and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
5320         * config/ia64/hpux_longdouble.h, config/pa/long_double.h: Delete.
5321
5322         * config/rs6000/xcoff.h: Don't define RS6000_ITRUNC nor RS6000_UITRUNC.
5323         * config/sparc/sparc.h: Default SUN_CONVERSION_LIBFUNCS and
5324         SUN_INTEGER_MULTIPLY_64 to 0.
5325         * config/sparc/sol2.h: Redefine SUN_CONVERSION_LIBFUNCS and
5326         SUN_INTEGER_MULTIPLY_64 to 1.
5327         * config/sparc/elf.h: Redefine SUN_CONVERSION_LIBFUNCS and
5328         SUN_INTEGER_MULTIPLY_64 to 0.
5329         * config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/sp86x-elf.h:
5330         Define US_SOFTWARE_GOFAST.
5331         * config/vax/vax.h: Default TARGET_ELF to 0.
5332         * config/vax/elf.h: Redefine TARGET_ELF to 1.
5333
5334         * config/gofast.h: Don't define any macros here.  Provide one
5335         static function, gofast_maybe_init_libfuncs, which does what
5336         INIT_GOFAST_LIBFUNCS used to do but only if US_SOFTWARE_GOFAST
5337         is already defined.  Do not clear negation libfuncs.  Do
5338         not mess with HFmode, XFmode, or TFmode libfuncs.
5339
5340         * config/avr/avr.c (avr_init_once): #if 0 out; mark FIXME.
5341
5342 2003-10-01  Kelley Cook  <kelleycook@wideopenwest.com>
5343
5344         PR C/12466
5345         * c-parse.in (parmlist_2): Mark declaration with an ellipsis as ISO C.
5346
5347 2003-10-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5348
5349         * config/mips/xm-iris5.h: Remove, unnecessary.
5350         * config.build (mips-sgi-irix5*): Remove.
5351         (mips-sgi-irix6*o32): Likewise.
5352         * config.gcc (mips-sgi-irix6*o32): Remove xm_file.
5353         (mips-sgi-irix5cross64): Likewise.
5354         (mips-sgi-irix5*): Likewise.
5355         * config.host (mips-sgi-irix5*): Remove.
5356         (mips-sgi-irix6*o32): Likewise.
5357
5358 2003-10-01  Zack Weinberg  <zack@codesourcery.com>
5359
5360         * dbxout.c (dbxout_fptype_value): Delete.
5361         (dbxout_type): Emit R3 for all COMPLEX_TYPEs.
5362
5363 2003-10-01  Alexandre Oliva  <aoliva@redhat.com>
5364
5365         * output.h (compute_reloc_for_constant): Declare.
5366         * varasm.c (compute_reloc_for_constant): Extract from...
5367         (output_addressed_constants): ... here.  Adjust all callers.
5368
5369 2003-10-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5370
5371         * aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.
5372         * configure: Rebuilt.
5373
5374 2003-10-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5375
5376         * fold-const.c (make_range): When handling unsigned, don't reverse
5377         range if high bound is zero.
5378
5379 2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
5380
5381         * config/frv/frv.h (PREDICATE_CODES): Added
5382         condexec_si_media_operator, condexec_sf_add_operator and
5383         condexec_sf_conv_operator.  Removed condexec_sf_binary_operator
5384         and condexec_sf_unary_operator.
5385
5386 2003-10-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5387
5388         * aclocal.m4: Add ultrix* to /dev/zero blacklist.
5389         * configure: Rebuilt.
5390
5391 2003-10-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5392
5393         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change.
5394         Allow override.
5395         * doc/tm.texi (MUST_USE_SJLJ_EXCEPTIONS): Document.
5396
5397 2003-09-23  David S. Miller  <davem@redhat.com>
5398
5399         * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine
5400         before redefining.
5401         * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
5402
5403 2003-10-01  Steven Bosscher  <steven@gcc.gnu.org>
5404
5405         * config/cris/cris-protos.h, config/cris/cris.c: Convert to ISO
5406         C90 function declarations and definitions.
5407
5408 2003-10-01  Nathanael Nerode  <neroden@gcc.gnu.org>
5409
5410         * config.gcc (cris-*-linux*): Revert mistaken commit.
5411
5412 2003-10-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
5413
5414         PR optimization/11753
5415         * config/sparc/sparc.md (length attribute) [fcc branch]: Add 1 to
5416         the length in the non-V9 case.
5417
5418 2003-09-30  Richard Henderson  <rth@redhat.com>
5419
5420         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor
5421         DWARF_ALT_FRAME_RETURN_COLUMN.
5422         * unwind-dw2.c (dwarf_reg_size_table): Expand by one.
5423         (_Unwind_GetGR, _Unwind_SetGR): Validate lookup column.
5424         (uw_frame_state_for): Return end-of-stack for null return address.
5425         * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Add.
5426
5427         * config/alpha/alpha.c (alpha_sa_mask): Add r31 for eh_return.
5428         (alpha_expand_prologue): Store a zero for it.
5429         (alpha_expand_epilogue): Don't reload it.
5430         * config/alpha/alpha.h (DWARF_ALT_FRAME_RETURN_COLUMN): New.
5431         * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Use column 64
5432         for the sigframe return address.
5433
5434 2003-09-30  Kelley Cook  <kelleycoook@wideopenwest.com>
5435
5436         * sdbout.c: Convert to ISO C90 prototypes.
5437         * objc/objc-act.c: Likewise.
5438
5439 2003-09-30  Kelley Cook  <kelleycoook@wideopenwest.com>
5440
5441         * config/i386/cygwin1.c: Convert to ISO C90 prototypes.
5442         * config/i386/winnt.c: Likewise.
5443         * config/i386/cygming.h: Likewise.
5444
5445 2003-09-30  Kazu Hirata  <kazu@cs.umass.edu>
5446
5447         * fold-const.c (fold): Fold (A & ~B) - (A & B) into
5448         (A ^ B) - B for any B.
5449
5450 2003-09-30  Nathanael Nerode  <neroden@gcc.gnu.org>
5451
5452         * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
5453         powerpcle-*-kaos*, strongarm-*-kaos*): Disable fixproto.
5454
5455 2003-09-30  Richard Earnshaw  <rearnsha@arm.com>
5456
5457         * arm/ieee754-sf.S: Tidy formatting.
5458
5459 2003-09-30  Nicolas Pitre  <nico@cam.org>
5460
5461         * arm/lib1funcs.asm (ARM_DIV_MOD_BODY): Split into ARM_DIV_BODY
5462         and ARM_MOD_BODY.
5463         (ARM_MOD_BODY): Rewritten. added clz insns for __ARM_ARCH__ >= 5.
5464         (ARM_DIV_BODY): Added clz insns for __ARM_ARCH__ >= 5,
5465         added better divisor alignment in the other case.
5466         (ARM_DIV2_ORDER): Added, finds the order of a single bit divisor.
5467         (__divsi3, __udivsi3, __modsi3, __umodsi3): rewritten using the
5468         macros above, add fast exits for divisor >= dividend, etc.
5469
5470 2003-09-30  Nicolas Pitre  <nico@cam.org>
5471
5472         * arm/ieee754-df.S: Split compilation of fixunsdfsi from
5473         L_fixdfsi target.
5474         * arm/t-arm-elf (LIB1ASMFUNCS): Add _fixunsdfsi.
5475
5476 2003-09-30  Nathanael Nerode  <neroden@gcc.gnu.org>
5477
5478         * config.gcc: Default use_fixproto to 'no'.
5479
5480 2003-09-30  Richard Sandiford  <rsandifo@redhat.com>
5481
5482         PR optimization/12345
5483         * config/mips/mips-protos.h (mips_restore_gp): Remove.
5484         (mips_gp_save_slot): Declare.
5485         * config/mips/mips.c (mips_restore_gp): Remove in favor of...
5486         (mips_gp_save_slot): ...this new function.
5487         * config/mips/mips.md (exception_receiver): Use mips_gp_save_slot
5488         and mips_output_move to generate the output template.
5489         (call_internal): Force splitting if TARGET_SPLIT_CALLS.  Don't emit
5490         a gp load after a noreturn call.  Load the gp using a move rather
5491         than an exception_receiver pattern.
5492         (call_value_internal, call_value_multiple_internal): Likewise.
5493         (call_split, call_value_split, call_value_multiple_split): Clobber $28.
5494
5495 2003-09-30  Carlo Wood  <carlo@alinoe.com>
5496
5497         PR debug/12319
5498         * cfglayout.c (insn_scope):  Use prologue_locator and
5499         epilogue_locator; return the outer function scope for
5500         pro- and epilogue insns.
5501
5502 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
5503
5504         * objc/objc-act.c (encode_type): Encode INTEGER_TYPEs and
5505         REAL_TYPEs based on the bitsize of the type's mode, not the
5506         mode directly.
5507
5508 2003-09-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5509
5510         * dwarf2out.c (default_eh_frame_section): Split into ...
5511         (named_section_eh_frame_section, collect2_eh_frame_section): ... new
5512         functions.
5513         * output.h (named_section_eh_frame_section): Declare.
5514         (collect2_eh_frame_section): Likewise.
5515
5516 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
5517
5518         * real.c (real_sqrt): Use get_canonical_qnan directly.
5519
5520         * dwarf2out.c (add_const_value_attribute): Use real_to_target.
5521
5522         * varasm.c (assemble_real): Use real_to_target directly,
5523         calculate the number of significant elements of the result
5524         array and write them out in a loop, instead of using a giant
5525         switch statement to pick the correct REAL_VALUE_TO_TARGET_*
5526         macro.
5527
5528 2003-09-29  Jan Hubicka  <jh@suse.cz>
5529
5530         PR c++/12175
5531         * varasm.c (notice_global_symbol): Discard external symbols.
5532
5533         PR optimization/12286
5534         * gcov-io.c (gcov_read_words): Fix memmove call.
5535         * profile.c (compute_branch_probabilities): Add extra sanity checks.
5536
5537 2003-09-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5538
5539         * config.gcc (sparc-*-solaris2*): Handle Solaris 10 and up like
5540         Solaris 7-9.
5541
5542         * fixinc/inclhack.def (solaris_widec): Replace solaris2.[0-5]* by
5543         wildcards which explicitly match micro versions.
5544         * fixinc/fixincl.x: Regenerate.
5545
5546 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
5547
5548         * fold-const.c (fold): Fold (A & ~B) - (A & B) into
5549         (A ^ B) - B, where B is any power of 2 minus 1.
5550
5551 2003-09-29  Jan Hubicka  <jh@suse.cz>
5552
5553         * libgcov.c (gcov_exit): Fix two pastos.
5554
5555 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
5556
5557         * config/h8300/h8300.md (*tst_extzv_1_n): Combine with the
5558         define_split immediately below to form define_insn_and_split.
5559
5560 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
5561
5562         * config/h8300/h8300.md (*tstsi_variable_bit): New.
5563         (*tstsi_variable_bit_qi): Likewise.
5564
5565 2003-09-28  Phil Edwards  <phil@codesourcery.com>
5566
5567         * doc/cppopts.texi:  Use 'dashMP' instead of '-MP' as a cross-
5568         reference name.
5569
5570 2003-09-28  Richard Henderson  <rth@redhat.com>
5571
5572         * c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
5573         file and line separately.
5574
5575 2003-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
5576
5577         * config/s390/s390.md ("*adddi3_carry1_cc", "*adddi3_carry1_cconly",
5578         "*adddi3_carry2_cc", "*adddi3_carry2_cconly", "*subdi3_borrow_cc",
5579         "*subdi3_borrow_cconly"): New insns.
5580         ("*addsi3_sub", "*subsi3_sub"): Remove.
5581         ("*subdi3_cc", *subdi3_cconly"): Use only if TARGET_64BIT.
5582         ("*subsi3_cc"): Fix op_type attribute.
5583
5584 2003-09-28  Richard Henderson  <rth@redhat.com>
5585
5586         * stmt.c (expand_asm_operands): Take a location_t, instead of
5587         individual file and line.
5588         * c-typeck.c (c_expand_asm_operands): Likewise.
5589         * tree.h (expand_asm_operands): Update decl.
5590         * c-common.h (c_expand_asm_operands): Likewise.
5591         * c-semantics (genrtl_asm_stmt): Update call.
5592
5593 2003-09-28  Philip Blundell  <philb@gnu.org>
5594
5595         * config/arm/arm.c (legitimize_pic_address): Check
5596         SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
5597         (arm_assemble_integer): Likewise.
5598
5599 2003-09-28  Steven Bosscher  <steven@gcc.gnu.org>
5600
5601         * config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
5602         config/c4x/c4x-c.c, config/c4x/c4x-protos.h, config/c4x/c4x.c,
5603         config/c4x/c4x.h:
5604         Convert to ISO C90 function declarations and definitions.
5605
5606 2003-09-28  Steven Bosscher  <steven@gcc.gnu.org>
5607
5608         *  config/stormy16/stormy16.c, config/stormy16/stormy16-protos.h:
5609         Convert to ISO C90 function declarations and definitions.
5610
5611 2003-09-28  Richard Sandiford  <rsandifo@redhat.com>
5612
5613         * config/mips/mips.c (mips_constant_info): Add reloc field.
5614         (mips_classify_constant): Initialize it.  Always set SYMBOL to the
5615         underlying symbol, not to an unspec.
5616         (mips_delegitimize_address, print_operand): Clean up accordingly.
5617
5618 2003-09-28  Richard Sandiford  <rsandifo@redhat.com>
5619
5620         * config/mips/mips-protos.h (mips16_gp_pseudo_reg): Remove.
5621         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Remove orphaned comment.
5622         * config/mips/mips.c (mips_reloc_offset_ok_p): New function.
5623         (mips_classify_constant): Use it.
5624         (mips_splittable_symbol_p): Add an offset argument.
5625         (mips_classify_address): Adjust call accordingly.
5626         (mips_legitimize_symbol): Handle sdata references with LO_SUM rather
5627         than a relocation unspec.  Update call to mips_splittable_symbol_p.
5628         Generalize the code that copes with symbols + invalid offsets.
5629         (print_operand): Allow '%R' to be applied to small data addresses.
5630         (mips_reloc_string): Remove RELOC_GPREL16.
5631         (mips_sdata_pointer): Renamed from mips16_gp_pseudo_reg.  Return $gp
5632         for TARGET_EXPLICIT_RELOCS.  Return null if we can't use gp-relative
5633         relocation operators.
5634         * config/mips/mips.md (RELOC_GPREL16): Remove.  Shuffle other reloc
5635         constants accordingly.
5636
5637 2003-09-27  Roger Sayle  <roger@eyesopen.com>
5638
5639         * toplev.c (flag_evaluation_order): New global variable.
5640         * flags.h (flag_evaluation_order): Prototype here.
5641         * expr.c (expand_operands): If we need to preserve observable
5642         evaluation order, protect exp1 from clobbering exp0's result.
5643
5644 2003-09-28  Andreas Jaeger  <aj@suse.de>
5645
5646         * c-decl.c (finish_function): Convert definition to ISO C90.
5647         * ifcvt.c (mark_loop_exit_edges): Likewise.
5648         * ra-rewrite.c (emit_colors): Likewise.
5649
5650 2003-09-27  Nathanael Nerode  <neroden@gcc.gnu.org>
5651
5652         * config.gcc (alpha*-dec-osf[45]*): Disable fixproto.
5653         * config.gcc (arm*-*-uclinux*): Disable fixproto.
5654         * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
5655         powerpc-*-eabialtivec*): Disable fixproto.
5656
5657 2003-09-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
5658
5659         PR optimization/12340
5660         * loop.h (struct induction): Document the new semantics
5661         of the 'same' field for bivs.
5662         * unroll.c (biv_total_increment): Don't count the same
5663         biv increment several times.
5664         (loop_iterations) [GENERAL_INDUCT]: Likewise.
5665
5666 2003-09-27  Graham Stott  <graham.stott@btinternet.com>
5667
5668         * unroll.c (loop_interations)[GT]: Add missing break.
5669
5670 2003-09-27  Kelley Cook  <kcook@gcc.gnu.org>
5671
5672         * config/chorus.h, config/darwin-c.c, config/darwin-protos.h,
5673         config/darwin.c, config/darwin.h, config/dbx.h, config/dbxcoff.h,
5674         config/dbxelf.h, config/elfos.h, config/fp-bit.h,
5675         config/freebsd-nthr.h, config/freebsd-spec.h, config/freebsd.h,
5676         config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
5677         config/freebsd6.h, config/netbsd-aout.h, config/netbsd-elf.h,
5678         config/netbsd.h, config/netware.h, config/openbsd-oldgas.h,
5679         config/openbsd.h, config/ptx4.h, config/alpha/alpha-protos.h,
5680         config/alpha/alpha.c, config/alpha/alpha.h, config/alpha/alpha.md,
5681         config/alpha/elf.h, config/alpha/ev4.md, config/alpha/ev5.md,
5682         config/alpha/ev6.md, config/alpha/freebsd.h, config/alpha/linux-elf.h,
5683         config/alpha/linux.h, config/alpha/netbsd.h, config/alpha/openbsd.h,
5684         config/alpha/osf.h, config/alpha/osf5.h, config/alpha/unicosmk.h,
5685         config/alpha/vms-cc.c, config/alpha/vms-crt0-64.c,
5686         config/alpha/vms-crt0.c, config/alpha/vms-dwarf2.asm,
5687         config/alpha/vms-dwarf2eh.asm, config/alpha/vms-ld.c,
5688         config/alpha/vms-psxcrt0-64.c, config/alpha/vms-psxcrt0.c,
5689         config/alpha/vms.h, config/alpha/vms64.h, config/alpha/vms_tramp.asm,
5690         config/alpha/xm-vms.h, config/arc/arc-modes.def,
5691         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
5692         config/arc/arc.md, config/arc/initfini.c, config/arc/lib1funcs.asm,
5693         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
5694         config/avr/avr.md, config/d30v/d30v-protos.h, config/d30v/d30v.h,
5695         config/d30v/d30v.md, config/fr30/fr30-protos.h, config/fr30/fr30.c,
5696         config/fr30/fr30.h, config/fr30/fr30.md, config/fr30/lib1funcs.asm,
5697         config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
5698         config/frv/frv-abi.h, config/frv/frv-asm.h, config/frv/frv-modes.def,
5699         config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
5700         config/frv/frv.md, config/frv/frvbegin.c, config/frv/frvend.c,
5701         config/frv/lib1funcs.asm, config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
5702         config/h8300/parityhi2.c, config/h8300/popcounthi2.c,
5703         config/i370/i370-c.c, config/i370/i370-protos.h, config/i370/i370.c,
5704         config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
5705         config/i370/mvs.h, config/i370/oe.h, config/i386/darwin.h,
5706         config/i960/i960-c.c, config/i960/i960-coff.h,
5707         config/i960/i960-modes.def, config/i960/i960-protos.h,
5708         config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
5709         config/i960/rtems.h, config/ia64/elf.h, config/ia64/ia64.h,
5710         config/m32r/initfini.c, config/m32r/m32r-protos.h, config/m32r/m32r.c,
5711         config/m32r/m32r.h, config/m32r/m32r.md, config/m68hc11/larith.asm,
5712         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
5713         config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
5714         config/m68hc11/m68hc12.h, config/m68k/coff.h, config/m68k/crti.s,
5715         config/m68k/crtn.s, config/m68k/hp320.h, config/m68k/hp320base.h,
5716         config/m68k/lb1sf68.asm, config/m68k/linux.h, config/m68k/m68020-elf.h,
5717         config/m68k/m68k-aout.h, config/m68k/m68k-none.h,
5718         config/m68k/m68k-protos.h, config/m68k/m68k.c, config/m68k/m68k.h,
5719         config/m68k/m68k.md, config/m68k/m68kelf.h, config/m68k/m68kv4.h,
5720         config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
5721         config/m68k/rtemself.h, config/m68k/sgs.h, config/mcore/lib1.asm,
5722         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h,
5723         config/mcore/mcore-protos.h, config/mcore/mcore.c,
5724         config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
5725         config/mips/elforion.h, config/mips/iris5.h, config/mips/iris6.h,
5726         config/mips/iris6gld.h, config/mips/irix6-libc-compat.c,
5727         config/mips/linux.h, config/mips/mips-protos.h, config/mips/mips.c,
5728         config/mips/mips.h, config/mips/mips.md, config/mips/netbsd.h,
5729         config/mips/openbsd.h, config/mips/r3900.h, config/mips/rtems.h,
5730         config/mips/vr.h, config/mn10300/linux.h,
5731         config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
5732         config/mn10300/mn10300.h, config/mn10300/mn10300.md,
5733         config/ns32k/__unorddf2.c, config/ns32k/__unordsf2.c,
5734         config/ns32k/netbsd.h, config/ns32k/ns32k-protos.h,
5735         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/ns32k/ns32k.md,
5736         config/pdp11/2bsd.h, config/pdp11/pdp11-modes.def,
5737         config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
5738         config/pdp11/pdp11.h, config/pdp11/pdp11.md, config/rs6000/biarch64.h,
5739         config/rs6000/default64.h, config/sh/coff.h, config/sh/crt1.asm,
5740         config/sh/crti.asm, config/sh/crtn.asm, config/sh/elf.h,
5741         config/sh/embed-elf.h, config/sh/linux.h, config/sh/little.h,
5742         config/sh/netbsd-elf.h, config/sh/rtems.h, config/sh/rtemself.h,
5743         config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
5744         config/sh/sh.md, config/sh/sh64.h, config/sh/shmedia.h,
5745         config/sh/sshmedia.h, config/sh/ushmedia.h, config/sparc/pbd.h,
5746         config/sparc/sparc.h, doc/install-old.texi, fixinc/fixinc.ptx,
5747         fixinc/fixinc.svr4: GNU CC -> GCC.
5748
5749 2003-09-26  Loren James Rittle  <ljrittle@acm.org>
5750
5751         * objc/objc-act.c (tm_p.h): Tweak order.
5752         * objc/Make-lang.in (objc/objc-act.o): Add $(TM_P_H).
5753
5754 2003-09-26  Nathanael Nerode  <neroden@gcc.gnu.org>
5755
5756         * config.gcc (hppa*64*-*-linux* | parisc*64*-*-linux*):
5757         Include t-slibgcc-elf-ver and t-linux in tmake_file.
5758         * config.gcc (hppa*64*-*-linux* | parisc*64-*-linux*):
5759         Disable fixproto.
5760         * config.gcc (i960-*-coff*, m68k-*-aout*, sparclite-*-coff*):
5761         Disable fixproto.
5762         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*,
5763         sparcv9-*-solaris2*, sparc-*-solaris2*): Disable fixproto.
5764
5765         * config/i386/unix.h: Remove (unused) DEFAULT_ASSEMBLER_DIALECT.
5766
5767 2003-09-26  Loren James Rittle  <ljrittle@acm.org>
5768
5769         * config/i386/i386.h (ix86_return_in_memory): Revert my last patch.
5770         * objc/objc-act.c (tm_p.h): Include.
5771
5772 2003-09-26  Per Bothner  <pbothner@apple.com>
5773
5774         * dbxout.c (dbxout_typedefs):  Output typedefs in forward order.
5775         No longer any need to reverse by recursion.
5776
5777 2003-09-26  Roger Sayle  <roger@eyesopen.com>
5778             Richard Henderson  <rth@redhat.com>
5779
5780         PR optimization/11741
5781         * gcse.c (pre_insert_copy_insn): Tweak the logic for finding the
5782         appropriate set to match that in hash_scan_insn.  Fall back to
5783         the original copy method, if we can't validate changing insn.
5784         (pre_delete): Only delete instructions that have a single_set,
5785         instead of aborting when we encounter an PARALLEL insn with more
5786         then one SET.
5787
5788 2003-09-26  Andreas Krebbel  <krebbel1@de.ibm.com>
5789
5790         * config/s390/s390.md ("builtin_setjmp_setup"): Insn deleted.
5791         ("builtin_longjmp"): Insn deleted.
5792         ("save_stack_nonlocal"): Save literal pool base pointer behind
5793         backchain and stack pointer.
5794         ("restore_stack_nonlocal"): Restore literal pool base pointer.
5795         * config/s390/s390.h (STACK_SAVEAREA_MODE): Double size of
5796         the stack save area for the nonlocal goto case.
5797
5798 2003-09-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5799
5800         PR bootstrap/12358
5801         * pa.c (output_bvb): Fix typo.
5802
5803 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
5804
5805         * expmed.c (store_bit_field): Don't search for an integer mode
5806         unless we need the result.
5807
5808 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
5809
5810         * expr.c (emit_move_insn_1): If there is no move pattern for the
5811         original mode, try using a pattern for the corresponding integer mode.
5812
5813 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
5814
5815         PR middle-end/9200
5816         * combine.c (if_then_else_cond): Tighten mode check.
5817
5818 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
5819
5820         * cppcharset.c, cpphash.h: Rename 'struct strbuf' to
5821         'struct _cpp_strbuf'.
5822
5823         * config/i386/netbsd-elf.h, config/i386/netbsd64.h,
5824         config/i386/netware.h, config/i386/nto.h, config/i386/openbsd.h,
5825         config/i386/pentium.md, config/i386/pmmintrin.h, config/i386/ppro.md,
5826         config/i386/ptx4-i.h, config/i386/rtemself.h, config/i386/sco5.h,
5827         config/i386/sol2.h, config/i386/svr3gas.h, config/i386/sysv3.h,
5828         config/i386/sysv4-cpp.h, config/i386/sysv4.h, config/i386/sysv5.h,
5829         config/i386/unix.h, config/i386/uwin.h, config/i386/vsta.h,
5830         config/i386/xm-cygwin.h, config/i386/xm-djgpp.h,
5831         config/i386/xm-mingw32.h, config/i386/xmmintrin.h: Replace
5832         "GNU CC", "GNU compiler", and "GNU C-compiler" with "GCC".
5833         * config/i386/i386-aout.h, config/i386/i386-coff.h,
5834         config/i386/i386-interix.h, config/i386/i386-interix3.h,
5835         config/i386/i386-modes.def, config/i386/i386-protos.h,
5836         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
5837         config/i386/i386elf.h, config/i386/k6.md, config/i386/kaos-i386.h,
5838         config/i386/linux-aout.h, config/i386/linux.h, config/i386/linux64.h,
5839         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
5840         config/i386/mmintrin.h, config/i386/moss.h: GNU CC -> GCC.
5841         "GNU compiler" -> GCC.
5842         * config/i386/att.h, config/i386/beos-elf.h, config/i386/biarch64.h,
5843         config/i386/bsd.h, config/i386/crtdll.h, config/i386/cygming.h,
5844         config/i386/cygwin.h, config/i386/cygwin1.c, config/i386/cygwin2.c,
5845         config/i386/darwin.h, config/i386/djgpp.h, config/i386/emmintrin.h,
5846         config/i386/freebsd-aout.h, config/i386/freebsd.h,
5847         config/i386/freebsd64.h, config/i386/gas.h: GNU CC -> GCC.
5848
5849 2003-09-25  Kelley Cook  <kelleycook@wideopenwest.com>
5850
5851         * cgraph.c (dump_cgraph):  Don't output newline before dump.  Add in
5852         "local" to the callgraph dump.  Output "after inlining" earlier.
5853         * cgraphunit.c: Fix dumpfile whitespace and commonize headers of the
5854         callgraph dumps.  Correct misspellings.
5855         (cgraph_decide_inlining):  Output number of insns before inlining.
5856         Output the calling function into which a function is inlined.
5857         (cgraph_decide_small_functions): Format dump file like always_inline.
5858
5859 2003-09-25  Loren James Rittle  <ljrittle@acm.org>
5860
5861         * config/i386/i386.h (ix86_return_in_memory): Add prototype.
5862
5863 2003-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
5864
5865         * config/s390/s390.c (s390_emit_prologue): Simplify accesses to
5866         FPR slots in the save area.
5867         (s390_emit_epilogue): Likewise.
5868
5869 2003-09-25  Richard Sandiford  <rsandifo@redhat.com>
5870
5871         * cgraph.h (cgraph_remove_edge): Declare.
5872         * cgraph.c (cgraph_remove_edge): Make extern.
5873         * cgraphunit.c (cgraph_finalize_function): Call cgraph_remove_edge
5874         instead of cgraph_remove_call.
5875
5876 2003-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
5877
5878         * objc/objc-act.c (gen_declaration_1): Fix printf format.
5879
5880 2003-09-25  Richard Earnshaw  <rearnsha@arm.com>
5881
5882         * arm.c (all_cores): arm710t, arm720t and arm740t are all based on the
5883         arm7tdmi core.
5884
5885 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
5886
5887         * config/darwin-protos.h (objc_image_info_section):
5888         New prototype.
5889
5890 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
5891
5892         * Makefile.in (stub-objc.o): Depend on $(GGC_H).
5893
5894 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
5895
5896         * config.gcc: Get rid of more gratuitious 'x'es.  Actually allow
5897         tsc701 as a --with-cpu, --with-tune setting for sparc.
5898
5899 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
5900
5901         * c-parse.in (objc_try_stmt): Do not specify a %type.
5902
5903 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
5904
5905         * config.gcc: New 'widely ported system' clause for rtems.
5906         Set thread file there, not in individual clauses.
5907
5908 2003-09-25  Richard Sandiford  <rsandifo@redhat.com>
5909
5910         PR target/6222
5911         * config/mips/mips.c (mips_va_arg): Handle arguments that must be
5912         passed on the stack.
5913
5914 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
5915
5916         * config.gcc (widely ported systems section): Mostly alphabetize
5917         by system.  Comment the case where we can't.
5918         * config.gcc (widely ported systems section): Reindent and clean up.
5919
5920         * config.gcc: Remove some unnecessary uses of 'x' in case statements.
5921         Actually allow ep9312 as an arm --with-arch setting.
5922
5923         * config.gcc (*-hpux11): Disable fixproto.
5924
5925 2003-09-24  Phil Edwards  <phil@codesourcery.com>
5926
5927         PR pch/12112
5928         * gcc/cppfiles.c (pch_open_file): Return based on combined
5929         result of all files.
5930         (validate_pch): Return validate flag for current file.
5931
5932 2003-09-24  Roger Sayle  <roger@eyesopen.com>
5933
5934         PR bootstrap/12358
5935         * fold-const.c (tree_swap_operands_p): Only reorder operands when
5936         one of the operands is constant.
5937
5938 2003-09-24  Ziemowit Laski  <zlaski@apple.com>
5939
5940         MERGE OF objc-improvements-branch into MAINLINE:
5941         * Makefile.in (C_OBJS): Add in stub-objc.o.
5942         (c-parse.y): Change sed demarcations to begin with '@@'.
5943         (stub-objc.o): New rule.
5944         * c-common.c (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
5945         flag_replace_objc_classes): New flags.
5946         * c-common.h (RID_AT_THROW, RID_AT_TRY, RID_AT_CATCH, RID_AT_FINALLY,
5947         RID_AT_SYNCHRONIZED): New keywords.
5948         (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
5949         flag_replace_objc_classes): New flags.
5950         (lookup_interface, is_class_name, objc_is_object_ptr, objc_check_decl,
5951         objc_comptypes, objc_message_selector, lookup_objc_ivar,
5952         get_current_scope, objc_mark_locals_volatile): New prototypes,
5953         some moved from c-tree.h.
5954         * c-decl.c (get_current_scope, objc_mark_locals_volatile): New functions.
5955         (finish_decl): Adjust where objc_check_decl() gets called.
5956         * c-lang.c (lookup_interface, is_class_name, objc_is_id,  objc_check_decl,
5957         objc_comptypes, objc_message_selector, lookup_objc_ivar): Remove stubs.
5958         * c-opts.c (c_common_handle_option): Add handling for  flag_nil_receivers,
5959         flag_objc_exceptions, flag_replace_objc_classes and flag_zero_link.
5960         * c-parse.in: Replace 'ifc' and 'end ifc' sed markers with '@@ifc' and
5961         '@@end_ifc', respectively.
5962         (AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY, AT_SYNCHRONIZED): New %tokens.
5963         (objc_try_stmt, superclass, class_ivars, objc_try_catch-stmt,
5964         objc_finally_block): New rules.
5965         (component_decl_list2): Clean up semantic action for @defs construct.
5966         (component_decl, c99_block_start): Remove call to add_objc_decls().
5967         (poplevel): Add call to objc_clear_super_receiver().
5968         (stmt): Add rules for @throw, @try..@catch..@finally and @synchronized
5969         constructs.
5970         (classdef, methodprotolist): Clean up/simplify.
5971         (methodprotolist2): Eliminate.
5972         (methodproto): Call add_method() instead of add_class_method() and
5973         add_instance_method().
5974         (receiver): Add TYPENAME production.
5975         (reswords): Add "throw", "try", "catch", "finally" and "synchronized".
5976         (rid_to_yy): Add AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY and
5977         AT_SYNCHRONIZED.
5978         * c-tree.h (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
5979         objc_comptypes, objc_message_selector)
5980         * c-typeck.c (comptypes): In ObjC mode, call objc_comptypes() for
5981         struct and pointer types.
5982         (build_c_cast): Do not discard ObjC protocol qualifiers.
5983         (convert_for_assignment): Cache result of comp_target_types() instead
5984         of calling it more than once.
5985         * c.opt (fnext-runtime): Update description string.
5986         (fnil-receivers, fobjc-exceptions, freplace-objc-classes, fzero-link):
5987         New ObjC/ObjC++-specific flags.
5988         * function.h (GCC_FUNCTION_H): Header guard.
5989         * gengtype-lex.l: Teach lexer about new @@... sed demarcations.
5990         * stub-objc.c: New file, to be used to satisfy references to ObjC
5991         functions by the C and C++ front-ends.
5992         * config/darwin.c (_OBJC_IMAGE_INFO): New global metadata.
5993         * config/darwin.h (FUNCTION): Add in_objc_image_info.
5994         (SECTION_FUNCTION): Add objc_image_info_section.
5995         * doc/invoke.texi: Link to GCC web site for Objective-C information.
5996         (-fconstant-string-class): Update documentation.
5997         (-fno-nil-receivers, -fobjc-exceptions, -freplace-objc-classes,
5998         -fzero-link): New documentation.
5999         * objc/Make-lang.in (objc-parse.y): Change sed demarcations to begin
6000         with '@@'.
6001         * objc/lang-specs.h (@objective-c-header): Fix -E spec.
6002         * objc/objc/objc-act.c: Replace TYPE_NAME with OBJC_TYPE_NAME
6003         throughout; provide casts for return values from memory allocation
6004         functions (xmalloc, alloca, ggc_alloc, etc.).
6005         (OBJC_VOID_AT_END): New macro.
6006         (rtl.h): Do not #include any more.
6007         (STRING_OBJECT_GLOBAL_NAME): Replaced with STRING_OBJECT_GLOBAL_FORMAT.
6008         (TAG_MSGSEND_STRET, TAG_MSGSENDSUPER_STRET, TAG_MSGSEND_NONNIL,
6009         TAG_MSGSEND_NONNIL_STRET, TAG_EXCEPTIONEXTRACT, TAG_EXCEPTIONTRYENTER,
6010         TAG_EXCEPTIONTRYEXIT, TAG_EXCEPTIONMATCH, TAG_EXCEPTIONTHROW,
6011         TAG_SYNCENTER, TAG_SYNCEXIT): New NeXT runtime entry points.
6012         (struct val_stack, catch_count_stack, exc_binding_stack,  val_stack_push,
6013         val_stack_pop): New.
6014         (objc_check_decl): Fix precondition for error message, along with
6015         the message itself.
6016         (lookup_and_install_protocols): Remove nonexistent protocols from
6017         protocol list instead of returning error_mark_node.
6018         (create_builtin_decl): Use DECL_ARTIFICIAL only for VAR_DECLs.
6019         (setup_string_decl): Generalize to use STRING_OBJECT_GLOBAL_FORMAT.
6020         (synth_module_prologue): General clean-up; construct NeXT-specific
6021         runtime API prototypes if needed.
6022         (build_string_class_template): Remove.
6023         (check_string_class_template, string_layout_checked): New.
6024         (build_objc_string_object): Generalize to work with
6025         -fconstant-string-class.
6026         (build_objc_symtab_template): Fix layout for the NeXT runtime.
6027         (build_metadata_decl): New.
6028         (forward_declare_categories): Call build_metadata_decl() instead of
6029         create_builtin_decl() et al.
6030         (build_module_descriptor): Use OBJC_VOID_AT_END instead of
6031         void_list_node_1.
6032         (build_selector_reference_decl, build_class_reference_decl,
6033         build_objc_string_decl): Do not set TREE_READONLY.
6034         (get_proto_encoding): Do not call hack_method_prototype().
6035         (get_class_reference): Add failure mode for invalid class names;
6036         support -fzero-link; defer if in an ObjC++ template declaration.
6037         (objc_declare_alias, objc_declare_class): Fix up duplicate name
6038         lookup; check for global scope if in ObjC++.
6039         (is_class_name): Generalize to work with various tree nodes (TYPE_DECL,
6040         RECORD_TYPE, IDENTIFIER_NODE, etc.)
6041         (objc_is_id): Removed.
6042         (objc_is_object_ptr): New function.
6043         (get_class_ivars_from_name): New function, used for @defs construct.
6044         (get_class_ivars): Add option to return raw ivars; create a
6045         ClASS_OWN_IVARS list for each class as needed.
6046         (objc_enter_block, objc_exit_block, objc_declare_variable,
6047         objc_build_throw_stmt, val_stack_push, val_stack_pop,
6048         objc_build_try_enter_fragment, objc_build_extract_expr,
6049         objc_build_try_exit_fragment, objc_build_extract_fragment,
6050         objc_build_try_prologue, objc_build_try_epilogue,
6051         objc_build_catch_stmt, objc_build_catch_epilogue,
6052         objc_build_finally_prologue, objc_build_finally_epilogue,
6053         objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
6054         objc_build_synchronized_epilogue, build_objc_exception_stuff):
6055         New functions.
6056         (_JBLEN): _setjmp jmpbuf size (needs to be made a target hook in
6057         the future).
6058         (build_private_template): Fix up calls to get_class_ivars().
6059         (offset_is_register, forwarding_offset): Remove.
6060         (objc_method_parm_type, objc_encoded_type_size): New functions.
6061         (encode_method_prototype): Simplify to no longer depend on
6062         back-end information.
6063         (build_tmp_function_decl_xxx, build_tmp_function_decl,
6064         hack_method_prototype): Removed.
6065         (generate_protocol_references): Remove calls to
6066         build_tmp_function_decl().
6067         (generate_protocols): Adjust calls to encode_method_prototype().
6068         (build_class_template): Generate sel_id' and 'gc_object_type' fields
6069         for the NeXT runtime.
6070         (synth_forward_declarations): Call build_metadata_decl().
6071         (check_ivars): Check that the number of ivars matches also.
6072         (build_super_template): Modify super_type directly; disable debugging
6073         output while generating decl.
6074         (build_ivar_list_initializer): Skip list elements that are not
6075         FIELD_DECLs.
6076         (ivar_list_length): New function.
6077         (generate_ivar_lists): Call ivar_list_length() instead of list_length()
6078         and encode_method_prototype() instead of encode_method_def().
6079         (build_shared_structure_initializer): Generate 'sel_id' field for
6080         the NeXT runtime.
6081         (generate_category): Do not set TREE_USED.
6082         (build_keyword_selector): Ditto; transform into a function argument
6083         chain.
6084         (get_arg_type_list): If there are no user-specified arguments, use
6085         '...'; use OBJC_VOID_AT_END.
6086         (check_duplicates): Add a parameter indicating whether methods or
6087         selectors are being checked.
6088         (receiver_is_class_object): Add parameters indicating whether
6089         receiver is 'self' or 'super'; robustify.
6090         (build_message_expr): Defer call to finish_message_expr() if
6091         inside an ObjC++ template.
6092         (lookup_method_in_hash_lists): New function.
6093         (finish_message_expr): Complete rewrite/fix.
6094         (build_objc_method_call): Ditto; factor out commonalities between
6095         the GNU and NeXT runtimes; acccommodate ..._stret and ...NonNil
6096         messenger variants on the NeXT.
6097         (lookup_instance_method_static, lookup_class_method_static):
6098         Fold into a single lookup_method_static() function with an
6099         additional parameter.
6100         (add_class_method, add_instance_method): Fold into a single
6101         add_method() function with an additional parameter.
6102         (add_category): Make duplicate categories a hard error in ObjC++.
6103         (add_instance_variable): Properly handle unnamed ivars, arrays of
6104         zero or no size and bitfields.  In ObjC++, check for nontrivial
6105         C++ class instances.
6106         (is_public): Allow C functions to access non-@public ivars, with
6107         a warning.
6108         (start_class): Move common initializations to
6109         synth_module_prologue(); check for global scope if in ObjC++.
6110         (continue_class): Fix calls to finish_struct().
6111         (objc_declare_protocols, start_protocol): Check for global scope
6112         if in ObjC++.
6113         (encode_pointer): Encode 'BOOL *' specially on the NeXT.
6114         (encode_aggregate_within): Rewrite to properly distinguish
6115         struct tags from typedefs in both ObjC and ObjC++.
6116         (encode_bitfield, encode_complete_bitfield): Remove.
6117         (encode_next_bitfield, encode_gnu_bitfield): New functions.
6118         (encode_field_decl): Call encode_next_bitfield() or
6119         encode_gnu_bitfield() as needed.
6120         (synth_self_and_ucmd_args): New function.
6121         (start_method_def): Use it.
6122         (objc_types_are_equivalent): New function.
6123         (comp_proto_with_proto): Use it instead of comptypes(), since
6124         we need symmetry.
6125         (really_start_method): Use lookup_method_static() instead of
6126         lookup_class_method_static() and lookup_instance_method_static();
6127         Emit 'extern "C"' if in ObjC++ mode.
6128         (add_objc_decls): Removed.
6129         (UOBJC_SUPER_scope): New variable.
6130         (get_super_receiver): Move construction of 'super' from
6131         add_objc_decls(); remove dependency on struct objc_class.
6132         (encode_method_def): Removed; encode_method_prototype() is
6133         used instead.
6134         (objc_clear_super_receiver): New function.
6135         (objc_expand_function_end): Do not do anything for ordinary
6136         C functions.
6137         (finish_method_def): Mark ObjC methods as un-inlinable.
6138         (gen_declaration_1): Emit widths of bitfields.
6139         (finish_objc): Call generate_objc_image_info() if needed;
6140         use check_duplicates() when checking for selector duplicates.
6141         (generate_objc_image_info): New function.
6142         * objc/objc-act.h (add_instance_method, add_class_method,
6143         get_class_ivars): Remove prototypes.
6144         (objc_build_throw_stmt, objc_build_try_catch_finally_stmt,
6145         objc_build_synchronized_prologue, objc_build_synchronized_epilogue,
6146         objc_build_catch_stmt, objc_build_catch_epilogue,
6147         objc_build_finally_prologue, objc_build_finally_epilogue,
6148         add_method, get_class_ivars_from_name): New prototypes.
6149         (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): New.
6150         (TYPE_PROTOCOL_LIST): Robustify to distinguish from
6151         TRANSLATION_UNIT_DECLs.
6152         (OBJC_TYPE_NAME): New.
6153         (objc_tree_code): Ensure that either <c-tree.h> or <cp/cp-tree.h>
6154         got included.
6155         (IS_SUPER): Robustify.
6156         (umsg_stret_decl, umsg_super_stret_decl, umsg_nonnil_decl,
6157         umsg_nonnil_stret_decl, objc_storage_class, objc_exception_extract_decl,
6158         objc_exception_try_enter_decl, objc_exception_try_exit_decl,
6159         objc_exception_match_decl, objc_exception_throw_decl,
6160         objc_sync_enter_decl, objc_sync_exit_decl, objc_exception_data_template,
6161         objc_setjmp_decl, objc_stack_exception_data, objc_caught_exception,
6162         objc_rethrow_exception, objc_eval_once, objc_exception_block_stack,
6163         objc_catch_type): New ObjC/ObjC++ roots.
6164         * objc/objc-tree.def (MESSAGE_SEND_EXPR, CLASS_REFERENCE_EXPR): New
6165         ObjC/ObjC++ tree node codes.
6166
6167 2003-09-24  Alexandre Oliva  <aoliva@redhat.com>
6168
6169         * cpplib.c (do_pragma): Reintroduce cb_line_change call in the
6170         code path that calls a handler.
6171
6172 2003-09-24  Nathanael Nerode  <neroden@gcc.gnu.org>
6173
6174         * config.gcc (c4x-*, tic4x-*, d30v-*, mmix-knuth-mmixware):
6175         Disable fixproto.
6176
6177         * config.gcc: Clean up and reindent $with_cpu=yes|no clause and
6178         the section giving $with_cpu defaults by target.
6179
6180         * config.gcc (arm-*-coff*, armel-*-coff*, arm*-*-ecos-elf,
6181         arm*-*-elf, ep9312-*-elf, arm*-wince-pe*, arm*-*-pe*, arm*-*-pe*,
6182         rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*,
6183         rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*,
6184         rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*,
6185         i[34567]86-pc-msdosdjgpp*): Disable fixproto.
6186
6187 2003-09-24  David Edelsohn  <edelsohn@gnu.org>
6188
6189         * config/rs6000/rs6000.md (movti_power): Collapse case 1 and 2
6190         together.  Protect load string instruction with TARGET_STRING.
6191         (movti_string): Collapse case 1 and 2 together.
6192
6193 2003-09-24  Nathan Sidwell  <nathan@codesourcery.com>
6194
6195         * c-common.c (c_common_type_for_mode): Check for VOIDmode.
6196
6197 2003-09-24  Richard Earnshaw  <rearnsha@arm.com>
6198
6199         * arm.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Wrap in
6200         do...while(0)
6201
6202 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
6203
6204         * config.gcc: Move use_fixproto=no from generic vxworks clause to
6205         specific one.
6206
6207         * config.gcc (powerpc-*-gnu-gnualtivec*): Disable fixproto
6208         (accidentally missed in last pass).
6209
6210 2003-09-23  Andrew Pinski  <apinski@apple.com>
6211
6212         PR bootstrap/12383
6213         * configure: Regenerate.
6214
6215 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
6216
6217         * config.gcc (x86_64-*-freebsd*): Disable fixproto (accidentally
6218         missed in last pass).
6219
6220 2003-09-23  Alexandre Oliva  <aoliva@redhat.com>
6221
6222         * config/mn10300/mn10300.md (andsi3): Fix cut&pasto in 0xfffffffe
6223         constant.
6224
6225 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
6226
6227         * config.gcc: Move vax-*-vms* unsupported notice up with the rest.
6228
6229         * config.gcc (alpha64*-dec-*vms*, alpha*-dec-*vms*,
6230         powerpc-*-eabisim*, powerpc-*-eabi*, powerpcle-*-eabisim*,
6231         powerpcle-*-eabi*): Disable fixproto.
6232
6233         * config.gcc: Move use_fixproto=no from generic FreeBSD clause to
6234         specific FreeBSD clauses.
6235         * config.gcc: Move use_fixproto=no from generic NetBSD clause to
6236         specific NetBSD clauses.
6237         * config.gcc: Move use_fixproto=no from generic OpenBSD clause
6238         to specific OpenBSD clauses.
6239
6240 2003-09-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6241
6242         * pa.c (hppa_expand_prologue): Do pic register save in frame marker
6243         without adding a frame note.
6244         * pa.md (allocate_stack): Save pic register in new frame marker when
6245         generating pic code.
6246
6247 2003-09-23  Kelley Cook  <kelleycook@wideopenwest.com>
6248
6249         * cgraphunit.c (cgraph_expand_all_functions): Renamed from
6250         cgraph_expand_functions.
6251
6252 2003-09-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6253
6254         * Makefile.in (gnucompare*): Merge into ...
6255         (slowcompare*): ... here.
6256         (fastcompare*): New targets.
6257         * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): Add checks for
6258         other "fast" cmp programs.
6259         * configure: Regenerate.
6260
6261 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6262
6263         * targhooks.c: Include output.h.
6264         * Makefile.in (targhooks.o): Add output.h to dependency list.
6265
6266 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6267
6268         * config.host: Removed superfluous newline.
6269
6270 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
6271
6272         * config.gcc: Use ${target}, not $machine.
6273         * configure.in: Don't set $machine.
6274         * configure: Regenerate.
6275
6276 2003-09-23  Geoffrey Keating  <geoffk@apple.com>
6277
6278         * config/t-darwin (crt2.o): Add stmp-int-hdrs to dependencies.
6279
6280         * config/rs6000/rs6000.c (function_arg_pass_by_reference): Don't
6281         pass zero-size arrays by reference.
6282         (rs6000_va_arg): Likewise.
6283
6284 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
6285
6286         * config.gcc: Set use_fixproto=no in each specific *-gnu*
6287         configuration, rather than the generic one.
6288
6289 2003-09-23  Richard Henderson  <rth@redhat.com>
6290
6291         * tree-inline.c (remap_save_expr): Map new save_expr to identity
6292         rather than to error_mark_node.
6293
6294 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6295
6296         * configure.in (HAVE_GAS_SHF_MERGE): Always define to test result.
6297         Update description.
6298         * configure: Regenerate.
6299         * config.in: Likewise.
6300         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test for
6301         HAVE_GAS_SHF_MERGE value.
6302         * varasm.c (mergeable_string_section): Likewise.
6303         (mergeable_constant_section): Likewise.
6304
6305 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6306
6307         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
6308         value.
6309
6310 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6311
6312         * target.h (struct gcc_target): New member external_libcall.
6313         * target-def.h (TARGET_ASM_EXTERNAL_LIBCALL): Provide default.
6314         (TARGET_ASM_OUT): Use it.
6315         * doc/tm.texi (TARGET_ASM_EXTERNAL_LIBCALL): Document.
6316         * targhooks.c: Convert to ISO C 90.
6317         (default_external_libcall): New function.
6318         * targhooks.h (default_external_libcall): Declare.
6319         * varasm.c (assemble_external_libcall): Use
6320         targetm.asm_out.external_libcall instead of
6321         ASM_OUTPUT_EXTERNAL_LIBCALL.
6322         * config/mips/mips-protos.h [TARGET_IRIX5 || TARGET_IRIX 6]
6323         (mips_output_external_libcall): Declare.
6324         * config/mips/mips.c (mips_output_external_libcall): Change
6325         definition guard.
6326         Change to match TARGET_ASM_EXTERNAL_LIBCALL.
6327         Only operate for O32 ABI.
6328         * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Define
6329         instead of ASM_OUTPUT_EXTERNAL_LIBCALL.
6330         * config/mips/iris6.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Don't undef,
6331         superceded by TARGET_ASM_EXTERNAL_LIBCALL.
6332
6333 2003-09-22  Nathnael Nerode  <neroden@gcc.gnu.org>
6334
6335         * config.gcc: Do per-target disabling of fixproto here in clauses,
6336         not in t- fragments.
6337         * configure.in: Adjust to set STMP_FIXPROTO correctly.
6338         * configure: Regenerate.
6339         * config/arm/t-semi, config/cris/t-cris, config/i386/t-beos,
6340         config/i386/t-cygming, config/i386/t-nto, config/ia64/t-hpux,
6341         t-freebsd, t-linux, t-netbsd, t-openbsd, t-rtems, t-vxworks,
6342         xtensa/t-xtensa: Remove setting of STMP_FIXPROTO.
6343         * config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd,
6344         t-interix, t-linux-aout:  Delete files consisting only of
6345         setting of STMP_FIXPROTO.
6346
6347         * config.host: Allow unknown hosts (not targets).  Allow
6348         ns32k-*-netbsdelf* as a host (not a target).  Remove redundant
6349         empty clauses.  Remove useless obsolete-configuration clause.
6350         Prune unsupported configuration list.  Collapse identical
6351         clauses for closely related systems.  Rewrite comment for
6352         unsupported hosts list.  Reorganize a little.
6353
6354 2003-09-22  Richard Henderson  <rth@redhat.com>
6355
6356         * c-common.c (c_common_signed_or_unsigned_type): Examine mode,
6357         not precision.
6358
6359 2003-09-22  David Edelsohn  <edelsohn@gnu.org>
6360             Hartmut Penner  <hpenner@de.ibm.com>
6361             Segher Boessenkool  <boessen@de.ibm.com>
6362
6363         * config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ...
6364         (gpr_or_gpr_p): Test INT_REGNO_P and convert to boolean.
6365         (rs6000_split_altivec_in_gprs): Rename to ...
6366         (rs6000_split_multireg_move): Add support for update addressing.
6367         * config/rs6000/rs6000-protos.h: Same.
6368         * config/rs6000/altivec.md: Same.
6369         * config/rs6000/rs6000.md (movdi_internal32): Use new splitter for
6370         multiple GPRs.
6371         (movti): Remove TARGET_STRING || TARGET_POWERPC64 final condition.
6372         (movti_power): Use new splitter for multiple GPRs.
6373         (movti_string): Same.
6374         (movti_ppc64): Same.
6375
6376 2003-09-22  Bob Wilson  <bob.wilson@acm.org>
6377
6378         * config/xtensa/xtensa-protos.h: Convert to ISO C90.
6379         * config/xtensa/xtensa.c: Convert to ISO C90.  Minor formatting fixes.
6380
6381 2003-09-22  Alexandre Oliva  <aoliva@redhat.com>
6382
6383         * config/mn10300/mn10300.md: Revert 2003-09-17's patch.
6384         (andsi3): Set attr cc to set_zn when using shifts or adds.
6385
6386 2003-09-22  Bernardo Innocenti <bernie@develer.com>
6387
6388         * doc/contrib.texi: Add Peter Barada, Paul Dale and myself.
6389
6390 2003-09-22  Bernardo Innocenti  <bernie@develer.com>
6391
6392         * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, RETURN_POPS_ARGS):
6393         Resurrect -mrtd option.
6394
6395 2003-09-21  Andrew Pinski  <pinskia@physics.uc.edu>
6396
6397         PR target/12281
6398         * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Call
6399         mark_referenced instead of setting TREE_SYMBOL_REFERENCED.
6400
6401 2003-09-22  Olivier Hainque  <hainque@act-europe.fr>
6402
6403         PR target/9786
6404         * reg-stack.c (convert_regs_1): Purge possible dead eh edges
6405         after potential deletion of trapping insn. Avoids later ICE
6406         from call to fixup_abnormal_edges.
6407         (convert_regs_2): Stack the current block successors before
6408         processing this block, that is, before the potential deletion of
6409         dead edges by convert_regs_1, because these edges have been used
6410         to initialize the predecessors count.
6411
6412 2003-09-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
6413
6414         * real.c: Fix several nits in the head comment.
6415
6416 2003-09-21  Richard Henderson  <rth@redhat.com>
6417
6418         * tree.h c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
6419         diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
6420         print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
6421         tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
6422         config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Revert.
6423
6424 2003-09-21  Richard Henderson  <rth@redhat.com>
6425
6426         * tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
6427         (TREE_FILENAME, TREE_LINENO): Likewise.
6428         (set_tree_locus, copy_tree_locus, set_tree_file_line): New.
6429         (TREE_LOCUS_SET_P): New.
6430         * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
6431         diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
6432         print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
6433         tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
6434         config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.
6435
6436 2003-09-21  Nathanael Nerode  <neroden@gcc.gnu.org>
6437
6438         * config/vax/vax-protos.h: Convert to ISO C90.
6439         * config/vax/vax.c: Convert to ISO C90.
6440
6441 2003-09-21  Graham Stott  <grahams@btinternet.com>
6442
6443        PR target/12353
6444        * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint.
6445
6446 2003-09-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
6447
6448         PR target/12301
6449         * reorg.c (stop_search_p): Return 1 for insns that can
6450         throw internally.
6451
6452 2003-09-20  Richard Henderson  <rth@redhat.com>
6453
6454         * c-format.c (gcc_diag_char_table): Add %J.
6455         (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
6456         (check_format_types): Fix wanted_type name lookup.
6457         (init_dynamic_diag_info): Setup %J.
6458         * diagnostic.c (text_specifies_location): Implement %J.
6459         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
6460         dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
6461         tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
6462         config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
6463         config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
6464
6465         * tree-inline.c: Include intl.h
6466         (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
6467         * Makefile.in (tree-inline.o): Update.
6468
6469 2003-09-20  Roger Sayle  <roger@eyesopen.com>
6470
6471         * config/i386/i386.c (ix86_expand_carry_flag_compare): Fix
6472         transformation of a>=0 into (unsigned)a<0x80000000.
6473
6474 2003-09-20  Andrew Pinski <apinski@apple.com>
6475
6476         * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.
6477
6478 2003-09-20  Nathanael Nerode  <neroden@gcc.gnu.org>
6479
6480         * Makefile.in: Don't set (unused) DLLTOOL.
6481
6482         * config/arm/t-linux, config/arm/t-netbsd, config/arm-t-semi:
6483         Remove obsolete references to ENQUIRE.
6484
6485 2003-09-19  Nathanael Nerode  <neroden@gcc.gnu.org>
6486
6487         * configure.in: Remove --with-elf, which doesn't work.
6488         * configure: Regenerate.
6489         * config.gcc: Remove references to $elf, which does nothing.
6490
6491         * config/i386/xm-vsta.h: Remove xm-file believed useless.
6492         * config.build (i386-vsta): Remove reference to it.
6493         * config.host (i386-vsta): Remove reference to it.
6494
6495 2003-09-19  Phil Edwards  <phil@codesourcery.com>
6496
6497         * doc/install.texi:  Document the multiple testsuite options.
6498
6499 2003-09-19  Gerald Pfeifer  <gerald@pfeifer.com>
6500
6501         * doc/install.texi (Specific): Add the specific versions of GCC
6502         where support for FreeBSD 1, HP-UX version 9 and older, and AIX
6503         version 3 and older was discontinued.
6504
6505 2003-09-19      Joel Sherrill <joel@oarcorp.com>
6506
6507         * config/m68k/t-m68kbare, config/m68k/t-rtems: Change 68681 to
6508         68881.
6509
6510 2003-09-19  Bernardo Innocenti  <bernie@develer.com>
6511
6512         * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Add predefines
6513         for -m68030, -m68020-60 and -m68020-40.
6514         * config/m68k/m68k.h (TARGET_68030): New target flag.
6515         * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, MASK_REGPARM,
6516         TARGET_REGPARM): Remove.
6517         * config/m68k/m68k.h: Regroup and renumber target flags.
6518         * config/m68k/m68k.h (TARGET_SWITCHES): Fix some tabulations.
6519         * config/m68k/m68k.h (RETURN_POPS_ARGS): Always evaluate to 0.
6520         * config/m68k/m68k.h (FUNCTION_ARG): Likewise.
6521         * config/m68k/m68k.h (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
6522         * config/m68k/m68k-none.h: Use MASK_xxx values in M68K_CPU_xxx macros.
6523
6524 2003-09-19  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
6525
6526         * config/m68k/t-rtems (m68k-*-rtems*): New.
6527         * config.gcc: Use config/m68k/t-rtems.
6528
6529 2003-09-19  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
6530
6531         * config/mips/t-rtems: New.
6532         * config.gcc (mips*-*-rtems*): Use config/mips/t-rtems.
6533
6534 2003-09-19  Kelley Cook  <kelleycook@wideopenwest.com>
6535
6536         * cgraph.c: Fix typo in debugging output.
6537
6538 2003-09-19  T. Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
6539             Eric Botcazou <ebotcazou@libertysurf.fr>
6540
6541         PR target/12166
6542         * config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1.
6543
6544 2003-09-18  Mike Stump  <mrs@apple.com>
6545
6546         * c-ppoutput.c (print):  Use fileline typedef for field 'line'.
6547         (print_line, maybe_print_line, cb_define, cb_undef, cb_include,
6548         cb_ident, cb_def_pragma):  Use fileline typedef.
6549         * cpphash.h (struct cpp_reader):  Likewise for field out.first_line.
6550
6551 2003-09-18  Danny Smith  <dannysmith@users.sourceforge.net>
6552
6553         * config/i386/winnt.c (gen_stdcall_suffix): Quit summation of
6554         total parm size if a parm has incomplete type.
6555         (gen_fastcall_suffix): Likewise.
6556
6557 2003-09-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6558
6559         * except.c (output_function_exception_table): Adjust last change
6560         to handle TYPE of INTEGER_CST.
6561
6562 2003-09-18  Mark Mitchell  <mark@codesourcery.com>
6563
6564         PR target/11184
6565         * builtins.c (expand_builtin_apply): Use convert_memory_address
6566         before returning the value.
6567
6568         * alias.c (find_base_value): Simplify use of
6569         convert_memory_address.
6570         (find_base_term): Likewise.
6571         * builtins.c (expand_builtin_stejmp_setup): Likewise.
6572         (expand_builtin_longjmp): Likewise.
6573         (expand_builtin_prefetch): Likewise.
6574         (get_memory_rtx): Likewise.
6575         (expand_builtin_return): Likewise.
6576         (expand_builtin_memcpy): Likewise.
6577         (expand_builtin_strncpy): Likewise.
6578         (expand_builtin_memset): Likewise.
6579         (expand_builtin_va_arg): Likewise.
6580         (expand_builtin_va_copy): Likewise.
6581         (expand_builtin_alloca): Likewise.
6582         * calls.c (expand_call): Likewise.
6583         * except.c (expand_builtin_extract_return_addr): Likewise.
6584         (expand_builtin_eh_return): Likewise.
6585         * explow.c (convert_memory_address): Define even when
6586         POINTER_EXTEND_UNSIGNED is not defined.  Do nothing if the address
6587         is already in the right mode.
6588         * explow.c (memory_address): Simplify use of convert_memory_address.
6589         (probe_stack_range): Likewise.
6590         * expmed.c (make_tree): Likewise.
6591         * expr.c (emit_block_move_in_libcall): Likewise.
6592         (expand_assignment): Likewise.
6593         (expand_expr): Likewise.
6594         * function.c (assign_parms): Likewise.
6595         (expand_function_end): Likewise.
6596         * integrate.c (copy_rtx_and_substitute): Likewise.
6597         * stmt.c (expand_computed_goto): Likewise.
6598
6599 2003-09-18  Roger Sayle  <roger@eyesopen.com>
6600
6601         * simplify-rtx.c (simplify_unary_operation): Only transform
6602         (not (eq X Y)) into (ne X Y) when mode is BImode or STORE_FLAG_VALUE
6603         is -1.  RTL "not" is a bit-wise not, "~", not a logical not "!".
6604
6605 2003-09-18  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6606
6607         PR target/11674
6608         * config/i386/i386.c (x86_emit_floatuns): Also handle SImode operand.
6609
6610 2003-09-18  Roger Sayle  <roger@eyesopen.com>
6611
6612         * tree.def (FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR,
6613         PARITY_EXPR): Delete unused tree codes.
6614         * c-common.c (c_common_truthvalue_conversion): Delete references
6615         to FFS_EXPR and POPCOUNT_EXPR.
6616         * c-pretty-print.c (pp_c_postfix_expression): Remove FFS_EXPR.
6617         (pp_c_expression): Likewise.
6618         * expr.c (expand_expr): Delete RTL expansion of FFS_EXPR, CLZ_EXPR,
6619         CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.
6620         * fold-const.c (tree_expr_nonnegative_p): Remove FFS_EXPR, CLZ_EXPR,
6621         CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.  Add support for calls to
6622         BUILT_IN_FFS, BUILT_IN_PARITY and BUILT_IN_POPCOUNT and their long
6623         and long long variants.
6624
6625 2003-09-18  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6626
6627         * c-pretty-print.h (pp_type_specifier_seq): Fix thinko.
6628         * c-pretty-print.c: Fix formatting.
6629         (pp_c_integer_constant): Append type annotation to literals.  Tidy.
6630         (pp_c_type_specifier): Tidy.
6631         (pp_c_compound_literal): New function.
6632         (pp_c_initializer): Simplify..
6633         (pp_c_initializer_list): Likewise.
6634         (pp_c_brace_enclosed_initializer_list): New function.
6635         (pp_c_postfix_expression): Simplify.
6636
6637 2003-09-17  Alexandre Oliva  <aoliva@redhat.com>
6638
6639         * config/mn10300/mn10300.md (andsi3, iorsi3, xorsi3,
6640         one_complsi2, bit-clear, bit-set, iorqi3): Make them set_zn.
6641
6642 2003-09-17  Richard Henderson  <rth@redhat.com>
6643
6644         * tree-optimize.c (tree_rest_of_compilation): Save and restore
6645         input_location.
6646
6647 2003-09-17  Daniel Jacobowitz  <drow@mvista.com>
6648
6649         * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Give -lpthread before -lc.
6650
6651 2003-09-17  Richard Henderson  <rth@redhat.com>
6652
6653         * cfg.c (dump_flow_info): Skip register dump if reg_n_info null.
6654
6655 2003-09-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6656
6657         * configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag.
6658         * configure: Regenerate.
6659
6660 2003-09-17  Mark Mitchell  <mark@codesourcery.com>
6661
6662         PR debug/12066
6663         * dbxout.c (dbxout_init): Use a langhook to find builtin types.
6664         * langhooks-def.h (lhd_return_null_tree_v): New function.
6665         (LANG_HOOKS_BUILTIN_TYPE_DECLS): New macro.
6666         (LANG_HOOKS_DECLS): Add it to the intializer.
6667         * langhooks.c (lhd_return_null_tree_v): New function.
6668         * langhooks.h (lang_hooks_for_decls): Add builtin_type_decls.
6669
6670 2003-09-17  Daniel Jacobowitz  <drow@mvista.com>
6671
6672         * configure.in: Quote gcc_config_arguments for configargs.h.
6673         * configure: Regenerated.
6674         * gccbug.in: Don't shell-expand gcc_config_arguments.
6675
6676 2003-09-17  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6677
6678         PR c++/11357
6679         * c-pretty-print.c (pp_c_floating_constant): Append
6680         type-annotation to floating constants.
6681
6682 2003-09-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6683
6684         * config/mips/iris5.h (TARGET_OS_CPP_BUILTINS): Define _LONGLONG.
6685         Define _ABIO32.
6686         Use it for _MIPS_SIM.
6687         * config/mips/iris6-o32.h (TARGET_OS_CPP_BUILTINS): Removed.
6688
6689         * config/mips/iris6-o32-as.h (SUBTARGET_ASM_OPTIMIZING_SPEC):
6690         Moved ...
6691         * config/mips/iris5.h (SUBTARGET_ASM_OPTIMIZING_SPEC): ... here,
6692         updating comment.
6693         Fixes PR target/10190.
6694
6695 2003-09-17  Daniel Jacobowitz  <drow@mvista.com>
6696
6697         * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Make -pthread apply
6698         to shared libraries.
6699
6700 2003-09-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
6701
6702         PR optimization/11646
6703         * cfgrtl.c (purge_dead_edges) [JUMP_INSN]: Rematerialize the
6704         EDGE_ABNORMAL flag for EH edges.
6705         * toplev.c (rest_of_handle_cse): Delete unreachable blocks
6706         if dead edges were purged.
6707
6708 2003-09-16  Bernardo Innocenti  <bernie@develer.com>
6709
6710         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines.
6711         * config/m68k/m68k-none.h (CPP_CPU_DEFAULT_SPEC): Kill all definitions.
6712         * config/m68k/m68k-none.h (CPP_FPU_SPEC): Remove.
6713         * config/m68k/m68k-none.h (CPP_SPEC): Likewise.
6714
6715 2003-09-16  Ian Lance Taylor  <ian@wasabisystems.com>
6716
6717         * cfgcleanup.c (label_is_jump_target_p): Correct use of table
6718         returned by tablejump_p.
6719
6720 2003-09-16  Joel Brobecker  <brobecker@gnat.com>
6721
6722         * dwarf2asm.c (dw2_asm_output_nstring): Add comment.
6723
6724 2003-09-16  Roger Sayle  <roger@eyesopen.com>
6725
6726         PR bootstrap/12269
6727         * simplify-rtx.c (simplify_gen_relational): Allow the cmp_mode
6728         argument to be VOIDmode, taking the mode of the comparison from
6729         the operands.  Only call simplify_relational_operation if we
6730         know the mode of the comparison.  Honor FLOAT_STORE_FLAG_VALUE
6731         if comparison has a floating point result.  Ensure that the
6732         result is always of the specified mode.
6733         (simplify_replace_rtx): Simplify call to simplify_gen_relational.
6734         (simplify_unary_operation): Ensure the correct mode and cmp_mode
6735         are always passed to simplify_gen_relational.  Simplify NOT of
6736         comparison operator in any mode, not just BImode.
6737         (simplify_ternary_operation): Correct tests on the return value
6738         of simplify_relational_operation to use const_true_rtx, not
6739         const1_rtx.  Abort if it ever returns a non-constant result.
6740
6741         * cfgloopanal.c (count_strange_loop_iterations): Use the function
6742         simplify_relational_operation, not simplify_gen_relational, if
6743         we're only interested in constant comparisons and will ignore
6744         non-constant results.
6745
6746 2003-09-16  Roger Sayle  <roger@eyesopen.com>
6747
6748         * fold-const.c (tree_swap_operands_p): New function to determine
6749         the prefered ordering of operands.
6750         (fold): Numerous clean-ups.  Use tree_swap_operands_p when swapping
6751         operands to commutative, comparison or ternary operators.  Replace
6752         uses of TREE_SET_CODE with recursive call to fold.  Remove duplicate
6753         transformation of A ? B : C into !A ? C : B.
6754
6755 2003-09-16  Jakub Jelinek  <jakub@redhat.com>
6756
6757         * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6758         * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6759         * config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6760         * config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6761         * config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6762         * config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6763         * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6764         * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6765
6766 2003-09-16  Jason Merrill  <jason@redhat.com>
6767             Jakub Jelinek  <jakub@redhat.com>
6768
6769         * c-common.c (handle_warn_unused_result_attribute): New function.
6770         (c_common_attribute_table): Add warn_unused_result.
6771         (c_expand_expr): Issue warning when result of inlined function
6772         with warn_unused_result attribute is ignored.
6773         * calls.c (expand_call): Issue warning when result of function
6774         with warn_unused_result attribute is ignored.
6775         * c-common.h (STMT_EXPR_WARN_UNUSED_RESULT): Define.
6776         * expr.c (expr_wfl_stack): Define.
6777         (expand_expr) <case EXPR_WITH_FILE_LOCATION>: If ignore,
6778         pass const0_rtx as target.  Chain locations into expr_wfl_stack.
6779         * tree-inline.c (expand_call_inline): Set STMT_EXPR_WARN_UNUSED_RESULT
6780         bit if inlined function has warn_unused_result attribute.
6781         * input.h (expr_wfl_stack): Declare.
6782         * doc/extend.texi: Document warn_unused_result attribute.
6783
6784 2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
6785
6786         * cpplib.c (do_pragma): Remove unnecessary cb_line_change.
6787
6788 2003-09-15  Bob Wilson  <bob.wilson@acm.org>
6789
6790         * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Add
6791         ATTRIBUTE_UNUSED.
6792         (call_insn_operand): For PIC, don't allow a direct call to a
6793         function in a different section than the current one.
6794
6795 2003-09-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6796
6797         * doc/invoke.texi (Warning Options): Add missing hyphen before
6798         "Wimport".  Change "-Wno-endif-labels" to "-Wendif-labels".
6799         Move "-Wold-style-definition" to the C-only section.
6800         Fix the ordering of the warning options.
6801
6802 2003-09-15  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6803             Jeff Law  <law@redhat.com>
6804
6805         * gcse.c (remove_reachable_equiv_notes): New.
6806         replace_store_insn): Call it.  Update antic list.
6807         (store_killed_in_insn): Take REG_EQUAL notes into account.
6808         (build_store_vectors, delete_store): Add parameter to
6809         replace_store_insn call.
6810
6811 2003-09-15  Bob Wilson  <bob.wilson@acm.org>
6812
6813         * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use
6814         SYMBOL_REF_LOCAL_P.
6815
6816 2003-09-15  Kazu Hirata  <kazu@cs.umass.edu>
6817
6818         * expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
6819         (FUNCTION_ARG_PADDING): Use DEFAULT_FUNCTION_ARG_PADDING.
6820         * config/ia64/ia64.c (ia64_hpux_function_arg_padding):
6821         Likewise.
6822         * config/m68hc11/m68hc11.c (m68hc11_function_arg_padding):
6823         Likewise.
6824         * config/rs6000/rs6000.c (function_arg_padding): Likewise.
6825         * config/sparc/sparc.c (function_arg_padding): Likewise.
6826
6827 2003-09-15  Vladimir Makarov  <vmakarov@redhat.com>
6828
6829         * haifa-sched.c (schedule_block): Use ready_remove_first instead
6830         of choose_ready for non-dfa insn scheduling.
6831
6832 2003-09-15  Andreas Jaeger  <aj@suse.de>
6833             Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6834
6835         * doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
6836         * c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
6837         * c-parse.in: Warn about old-style parameter definition.
6838         * c-common.c: Define warn_old_style_defintion.
6839         * c-common.h: Declare it.
6840         * c.opt: Add Wold-style-defintion.
6841
6842 2003-09-15  Andreas Jaeger  <aj@suse.de>
6843
6844         * config/rs6000/altivec.h: Convert () prototypes to ISO C90.
6845         * config/rs6000/rs6000.c: Likewise.
6846
6847 2003-09-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6848
6849         PR optimization/10914
6850         * expr.h (get_condition, canonicalize_condition): Declaration changed.
6851         * cfgloopanal.c (simple_loop_exit_p): Add parameter to a get_condition
6852         and canonicalize_condition calls.
6853         * gcse.c (fis_get_condition, delete_null_pointer_checks_1,
6854         delete_null_pointer_checks): Ditto.
6855         * ifcvt.c (noce_get_alt_condition, noce_get_condition): Ditto.
6856         * predict.c (estimate_probability, expected_value_to_br_prob): Ditto.
6857         * loop.c (check_dbra_loop, get_condition_for_loop): Ditto.
6858         (canonicalize_condition, get_condition): Allow to return comparisons
6859         of cc mode registers.
6860         * loop-unswitch.c (may_unswitch_on_p, unswitch_single_loop): Allow
6861         cc mode registers comparison in condition.
6862
6863 2003-09-12  Mark Mitchell  <mark@codesourcery.com>
6864
6865         * coverage.c (create_coverage): Do not call pushlevel/poplevel.
6866         * langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
6867         function.
6868         * langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.
6869
6870 2003-09-14  Kazu Hirata  <kazu@cs.umass.edu>
6871
6872         * combine.c (simplify_comparison): Convert
6873         (ne (and (lshiftrt (xor X CST) Y) 1) 0) into
6874         (eq (and (lshiftrt X Y) 1) 0).
6875
6876 2003-09-14  Kazu Hirata  <kazu@cs.umass.edu>
6877
6878         * alias.c: Follow spelling conventions.
6879         * cpphash.h: Likewise.
6880         * fold-const.c: Likewise.
6881
6882 2003-09-14  Alexandre Oliva  <aoliva@redhat.com>
6883
6884         * c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
6885         * c-lex.c (cb_line_change): Skip line changing whenever
6886         c-ppoutput.c would.
6887
6888 2003-09-14  Steven Bosscher  <steven@gcc.gnu.org>
6889
6890         * ra.c: Convert to ISO C90 prototypes.
6891         * ra-build.c: Likewise.
6892         * ra-colorize.c: Likewise.
6893         * ra-debug.c: Likewise.
6894         * ra-rewrite.c: Likewise.
6895
6896 2003-09-14  Richard Sandiford  <rsandifo@redhat.com>
6897
6898         * Makefile.in (%.dvi): Remove excess $(docdir).
6899
6900 2003-09-14  Richard Sandiford  <rsandifo@redhat.com>
6901
6902         * function.c (STACK_BYTES): Move definition to head of file.
6903         (assign_parms): Don't pass current_function_pretend_args_size
6904         directly to SETUP_INCOMING_VARARGS.  For partial register arguments,
6905         round current_function_pretend_args_size up to STACK_BYTES.  Skip any
6906         excess before laying out the argument.
6907
6908 2003-09-14  Andreas Jaeger  <aj@suse.de>
6909
6910         * objc/objc-act.c: Convert to ISO C90 prototypes.
6911         * objc/objc-act.h: Likewise.
6912
6913 2003-09-14  Olaf Hering  <olh@suse.de>
6914
6915         * config/rs6000/rs6000.c: Fix typo: Remove extra ')'.
6916
6917 2003-09-13  Andrew Pinski <pinskia@physics.uc.edu>
6918
6919         PR target/12021
6920         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Remove the asserts
6921         as they already are done in config/m68k/m68k.h.
6922         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Likewise
6923
6924         * config/rs6000/rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
6925         (machopic_output_stub): Only generate pic base symbols when using pic
6926         and generate them in the form L00000000$spb.
6927
6928 2003-09-13  Richard Henderson  <rth@redhat.com>
6929
6930         * cgraphunit.c (cgraph_assemble_pending_functions): Export.
6931         (cgraph_finalize_function): Revert TREE_ASM_WRITTEN check.
6932         * cgraph.h: Update.
6933
6934 2003-09-12  Dale Johannesen  <dalej@apple.com>
6935
6936         * config/rs6000/rs6000.c: Fix typos in previous.
6937
6938 2003-09-12  Ziemowit Laski  <zlaski@apple.com>
6939
6940         * pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
6941         when allocating pp->buffer.
6942
6943 2003-09-12  Geoffrey Keating  <geoffk@apple.com>
6944
6945         * config/darwin.c (machopic_select_rtx_section): Use
6946         const_data_section for things that might require relocation.
6947
6948 2003-09-12  H.J. Lu  <hongjiu.lu@intel.com>
6949
6950         PR bootstrap/12264
6951         * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
6952
6953 2003-09-12  Bob Wilson  <bob.wilson@acm.org>
6954
6955         * config/xtensa/elf.h (ASM_SPEC): Remove no-density option.  Reformat.
6956         * config/xtensa/linux.h (ASM_SPEC): Likewise.
6957         * config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian,
6958         -mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16,
6959         -m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext,
6960         -m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div,
6961         -m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and
6962         -m[no-]hard-float-rsqrt options.  Delete corresponding MASK_* macros
6963         and redefine corresponding TARGET_* macros with constants from the
6964         xtensa-config.h header.
6965         * doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
6966         for the options listed above.
6967
6968 2003-09-12  Dale Johannesen  <dalej@apple.com>
6969
6970         * config/rs6000/rs6000-protos.h:  Use C90 prototypes.
6971         * config/rs6000/rs6000-c.c:  Ditto.
6972         * config/rs6000/rs6000.c:  Ditto.
6973         * config/rs6000/ sysv4.h:  Ditto.
6974
6975 2003-09-12  Chris Lattner <sabre@nondot.org>
6976
6977         * loop.c: Move comments describing BIV's and GIV's to top of file
6978
6979 2003-09-12  Roger Sayle  <roger@eyesopen.com>
6980
6981         PR optimization/8967
6982         * alias.c (write_dependence_p): Modify to take an additional constp
6983         argument that controls whether the UNCHANGING_RTX_P flags are used.
6984         (anti_dependence, output_dependence): Adjust write_dependence_p
6985         callers to pass this additional argument, to return the same result.
6986         (unchanging_anti_dependence): New variant of anti_dependence that
6987         ignores the UNCHANGING_RTX_P property on memory references.
6988         * rtl.h (unchaning_anti_dependence): Prototype here.
6989         * flow.c (init_propagate_block): Place fake constant mem writes on
6990         the mem_set_list so that dead writes to const variables are deleted.
6991         (insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
6992         (mark_used_regs): Likewise.
6993
6994 2003-09-12  Richard Sandiford  <rsandifo@redhat.com>
6995
6996         * config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
6997         (mcore_secondary_reload_class): Declare.
6998         (mcore_output_inline_const_forced): Remove.
6999         * config/mcore/mcore.md (movsi): Remove the code that forced
7000         non-inlineable constants into a register if the target was r15
7001         or the stack pointer.  Remove constant restrictions from the main
7002         define_insn.  Remove r <- I, r <- M and r <- N alternatives in favor
7003         of an r <- P alternative.  Remove fallback define_insn for reload.
7004         (movhi, movqi): Use gen_lowpart rather than gen_SUBREG.  Remove reload
7005         define_insn.  Use mcore_output_move in the remaining define_insn.
7006         Adjust condition and constraints in the way as for movsi.
7007         (movdi): Always split unacceptable constants into two.  Use
7008         simplify_gen_subreg instead of operand_subword{,_force}.
7009         * config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
7010         (mcore_output_move): Support HImode and QImode moves as well.
7011         (mcore_m15_operand_p): New function.
7012         (mcore_reload_class): Use it to detect cases where LRW_REGS are better.
7013         (mcore_secondary_reload_class): New function.
7014         * config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
7015         terms of mcore_secondary_reload_class.
7016
7017 2003-09-11  Mike Stump  <mrs@apple.com>
7018
7019         * c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
7020
7021 2003-09-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7022
7023         * builtins.c (fold_builtin_logarithm): if N can't be truncated to
7024         MODE exactly, then only convert logN(N) -> 1.0 if
7025         flag_unsafe_math_optimizations is set.
7026
7027         * builtins.c (builtin_dconsts_init, dconstpi, dconste,
7028         init_builtin_dconsts): Delete.
7029         * emit-rtl.c (dconstpi, dconste): Define.
7030         (init_emit_once): Initialize dconstpi & dconste.
7031         * real.h (dconstpi, dconste): Declare.
7032
7033 2003-09-11  Alexandre Oliva  <aoliva@redhat.com>
7034
7035         PR fortran/11522
7036         * dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function
7037         for ultimate origin even if block is abstract.
7038
7039 2003-09-11  Roger Sayle  <roger@eyesopen.com>
7040
7041         * combine.c (combine_simplify_rtx): Move several NOT and NEG
7042         optimizations from here...
7043         * simplify-rtx.c (simplify_unary_operation): to here.  Recursively
7044         simplify expressions using simplify_gen_*ary instead of gen_rtx_*.
7045
7046 2003-09-11  Richard Henderson  <rth@redhat.com>
7047
7048         * cgraphunit.c (cgraph_finalize_function): Add nested arg.
7049         Tweek tests for function already generated.
7050         (cgraph_expand_function): Don't double announce in !unit-at-a-time.
7051         * cgraph.h (cgraph_finalize_function): Update for extra arg.
7052         * c-decl.c (finish_function): Likewise.
7053
7054 2003-09-10  Joe Buck  <jbuck@welsh-buck.org>
7055
7056         * c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
7057
7058 2003-09-10  Jerry Quinn  <jlquinn@optonline.net>
7059
7060         * real.c: Update URL to VAX floating point docs.
7061         (decode_vax_d): Extract 8 exponent bits instead of 7.
7062
7063 2003-09-10  Ian Lance Taylor  <ian@wasabisystems.com>
7064
7065         * combine.c (force_to_mode): Set fuller_mask based only on mask,
7066         not op_mode.
7067
7068 2003-09-11  Jan Hubicka  <jh@suse.cz>
7069
7070         * c-objc-common.c (c_cannot_inline_tree_fn): Warn
7071         on why function is not inlinable; do not check
7072         the body.
7073         (inline_forbidden_p): Move to...
7074         * tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
7075         deal with alloca, longjmp.
7076         (inline_forbidden_p): New static function.
7077         (find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
7078         find_builtin_longjmp_call): Kill.
7079
7080 2003-09-10  Richard Henderson  <rth@redhat.com>
7081
7082         * cgraph.h (struct cgraph_node): Rename lowered to analyzed.
7083         * cgraphunit.c: Update to match.
7084         (record_call_1): Rearrange.  Call lang hook for language nodes.
7085         (cgraph_analyze_function): Don't call lower_function.
7086         * langhooks.h (struct lang_hooks_for_callgraph): Replace
7087         lower_function with analyze_expr.
7088         * langhooks-def.h: Update to match.
7089         * langhooks.c (lhd_callgraph_analyze_expr): New.
7090
7091 2003-09-10  Martin Husemann  <martin@duskware.de>
7092
7093         PR target/11965
7094         * config/sparc/sparc.c (sparc_v8plus_shift): Protect against
7095         constants greater than 63.
7096         * config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
7097         against constants greater than 31.
7098         (*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
7099         constants greater than 63.
7100
7101 2003-09-09  Richard Henderson  <rth@redhat.com>
7102
7103         * cgraphunit.c (cgraph_finalize_function): Remove unused argument.
7104         * cgraph.h (cgraph_finalize_function): Update.
7105         * c-decl.c (finish_function): Update.
7106
7107 2003-09-09  Devang Patel  <dpatel@apple.com>
7108
7109         * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
7110         * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
7111
7112 2003-09-09  Eric Christopher  <echristo@redhat.com>
7113
7114         * configure.in: Change usage of 'head' to 'sed 1q'.
7115         * configure: Regenerate.
7116
7117 2003-09-09  Richard Henderson  <rth@redhat.com>
7118
7119         * except.c: Include cgraph.h.
7120         (output_function_exception_table): Invoke
7121         cgraph_varpool_mark_needed_node.
7122         * Makefile.in (except.o): Update.
7123
7124 2003-09-07  Kelley Cook  <kelleycook@wideopenwest.com>
7125
7126         * Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS
7127         and use it throughout.
7128
7129 2003-09-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7130
7131         * builtins.c (real_dconstp, fold_builtin_logarithm,
7132         fold_builtin_exponent): New, split out from fold_builtin.  Also
7133         generalize to add log2, log10, exp2 and exp10/pow10 equivalents.
7134         * emit-rtl.c (dconst3, dconst10, dconstthird): New.
7135         (init_emit_once): Initialize new dconsts, use ARRAY_SIZE in lieu
7136         of hardcoded array size.
7137         * fold-const.c (fold): Add cases for exp2, exp10 and pow10.
7138         (tree_expr_nonnegative_p): Likewise.
7139         * real.h (dconst3, dconst10, dconstthird): New.
7140
7141 2003-09-09  Jan Hubicka  <jh@suse.cz>
7142
7143         * cgraphunit.c (cgraph_finalize_function): Fix handling of extern
7144         inline functions.
7145         (cgraph_finalize_compilation_unit): Fix crash when dealing with lost
7146         DECL_SAVED_TREE.
7147
7148 2003-09-09  Roger Sayle  <roger@eyesopen.com>
7149
7150         * builtins.c (fold_builtin_cabs): Protect the complex argument
7151         against multiple evaluation when optimizing cabs* into sqrt*.
7152
7153 2003-09-09  Jan Hubicka  <jh@suse.cz>
7154
7155         * varasm.c (notice_global_symbol):  Properly deal with weak symbols.
7156
7157 2003-09-08  Kelley Cook <kelleycook@wideopenwest.com>
7158
7159         * Makefile.in: Revert yesterday's change.
7160
7161 2003-09-08  Bernardo Innocenti  <bernie@develer.com>
7162             Peter Barada <peter@baradas.org>
7163
7164         * config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr'
7165         * config/m68k/hp320.h (REGISTER_NAMES): Likewise.
7166         * config/m68k/linux.h (REGISTER_NAMES): Likewise.
7167         * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
7168         * gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise.
7169         * config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype.
7170         * config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end.
7171         (m68k_compute_frame_layout): New function.
7172         (m68k_initial_elimination_offset): New function.
7173         (m68k_output_function_prologue): ColdFire-specific movem handling.
7174         (m68k_output_function_epilogue): Likewise.
7175         * config/m68k/m68k.h (FIRST_PSEOUDO_REGISTER): Make room for argptr reg.
7176         (ARG_POINTER_REGNUM): Add new definition.
7177         (INITIAL_FRAME_POINTER_OFFSET): Remove macro.
7178         (ELIMINABLE_REGS): Define new macro, like in ix86 back-end.
7179         (CAN_ELIMINATE): Likewise.
7180         (INITIAL_ELIMINATION_OFFSET): Likewise.
7181
7182 2003-09-08  Bernardo Innocenti  <bernie@develer.com>
7183
7184         * config/m68k/m68k.c (m68k_output_function_prologue): Simplify
7185         by removing redundant variable cfa_store_offset.
7186
7187 2003-09-08  Mark Mitchell  <mark@codesourcery.com>
7188
7189         * langhooks-def.h (lhd_register_builtin_type): New function.
7190         (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro.
7191         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
7192         * langhooks.h (lang_hooks_for_types): Add register_builtin_type.
7193         * langhooks.c (lhd_register_builtin_type): New function.
7194         * c-common.h (c_register_builtin_type): Declare.
7195         * c-common.c (c_register_builtin_type): New function.
7196         * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to
7197         c_register_builtin_type.
7198         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg,
7199         __float80, and __float128 macros.
7200         * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg,
7201         __float80, and __float128 types.
7202
7203 2003-09-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7204
7205         * builtin-types.def
7206         (BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE,
7207         BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE_COMPLEX_DOUBLE,
7208         BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT_COMPLEX_FLOAT): New.
7209         * builtins.def (BUILT_IN_CACOS, BUILT_IN_CACOSF, BUILT_IN_CACOSH,
7210         BUILT_IN_CACOSHF, BUILT_IN_CACOSHL, BUILT_IN_CACOSL,
7211         BUILT_IN_CARG, BUILT_IN_CARGF, BUILT_IN_CARGL, BUILT_IN_CASIN,
7212         BUILT_IN_CASINF, BUILT_IN_CASINH, BUILT_IN_CASINHF,
7213         BUILT_IN_CASINHL, BUILT_IN_CASINL, BUILT_IN_CATAN,
7214         BUILT_IN_CATANF, BUILT_IN_CATANH, BUILT_IN_CATANHF,
7215         BUILT_IN_CATANHL, BUILT_IN_CATANL, BUILT_IN_CCOS, BUILT_IN_CCOSF,
7216         BUILT_IN_CCOSH, BUILT_IN_CCOSHF, BUILT_IN_CCOSHL, BUILT_IN_CCOSL,
7217         BUILT_IN_CEXP, BUILT_IN_CEXPF, BUILT_IN_CEXPL, BUILT_IN_CPOW,
7218         BUILT_IN_CPOWF, BUILT_IN_CPOWL, BUILT_IN_CPROJ, BUILT_IN_CPROJF,
7219         BUILT_IN_CPROJL, BUILT_IN_CSIN, BUILT_IN_CSINF, BUILT_IN_CSINH,
7220         BUILT_IN_CSINHF, BUILT_IN_CSINHL, BUILT_IN_CSINL, BUILT_IN_CSQRT,
7221         BUILT_IN_CSQRTF, BUILT_IN_CSQRTL, BUILT_IN_CTAN, BUILT_IN_CTANF,
7222         BUILT_IN_CTANH, BUILT_IN_CTANHF, BUILT_IN_CTANHL, BUILT_IN_CTANL):
7223         New.
7224         * doc/extend.texi: Document new builtins.
7225
7226 2003-09-09  Jan Hubicka  <jh@suse.cz>
7227
7228         * cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated
7229         finalization.
7230         * cgraphunit.c (decide_is_fnction_needed): Avoid special case of nested
7231         functions, check for COMDAT.
7232         (cgraph_assemble_pending_functions): Break out from...
7233         (cgraph_finalize_function): ... here; allow redefinig of extern inline
7234         functions.
7235         (record_call_1): Record function references only in non-unit-at-a-time
7236         mode.
7237         (cgraph_analyze_function): Reset current_function_decl.
7238         (cgraph_finalize_compilation_unit):  Assemble pending functions.
7239
7240 2003-09-08  Mark Mitchell  <mark@codesourcery.com>
7241
7242         * mklibgcc.in (libcc.a): Depend on stmp-dirs.
7243         (libgov.a): Likewise.
7244         (libgcc_eh.a): Likewise.
7245
7246 2003-09-08  Roger Sayle  <roger@eyesopen.com>
7247
7248         * fold-const.c (operand_equal_p): Clarify documentation.
7249
7250 2003-09-08  Richard Henderson  <rth@redhat.com>
7251
7252         * c-decl.c (c_expand_body_1): Push and pop function context here.
7253         * tree-optimize.c (tree_rest_of_compilation): ... not here.  Take
7254         nested argument instead of computing nesting ourselves.
7255
7256 2003-09-08  Jakub Jelinek  <jakub@redhat.com>
7257
7258         * toplev.c (rest_of_handle_stack_regs): Call split_all_insns before
7259         regstack if optimizing but not scheduling after reload.
7260
7261 2003-09-08  Jakub Jelinek  <jakub@redhat.com>
7262
7263         * config/sparc/sparc.c (struct machine_function): New type.
7264         (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
7265         (sparc_override_options): Initialize init_machine_status.
7266         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand,
7267         tie_symbolic_operand, tle_symbolic_operand): New functions.
7268         (symbolic_operand): Disallow tls_symbolic_operand.
7269         (symbolic_memory_operand): Likewise.
7270         (tls_call_delay, sparc_cannot_force_const_mem, legitimate_constant_p,
7271         constant_address_p, legitimate_pic_operand_p, legitimate_address_p):
7272         New functions.
7273         (sparc_tls_symbol): New variable.
7274         (sparc_tls_get_addr, sparc_tls_got, legitimize_tls_address,
7275         legitimize_address): New functions.
7276         (print_operand): Handle %&.
7277         (sparc_init_machine_status, get_some_local_dynamic_name,
7278         get_some_local_dynamic_name_1): New functions.
7279         (sparc_output_dwarf_dtprel): New function.
7280         * config/sparc/sparc.h (CONSTANT_ADDRESS_P): Moved into
7281         constant_address_p.
7282         (LEGITIMATE_PIC_OPERAND_P): Moved into legitimate_pic_operand_p.
7283         (LEGITIMATE_CONSTANT_P): Moved into legitimate_constant_p.
7284         (GO_IF_LEGITIMATE_ADDRESS): Moved into legitimate_address_p.
7285         (LEGITIMIZE_ADDRESS): Moved into legitimize_address.
7286         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
7287         (TARGET_TLS, TARGET_SUN_TLS, TARGET_GNU_TLS): Define.
7288         (ASM_OUTPUT_DWARF_DTPREL): Define.
7289         (PREDICATE_CODES): Add tgd_symbolic_operand, tld_symbolic_operand,
7290         tie_symbolic_operand, tle_symbolic_operand.
7291         * config/sparc/sparc.md (UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_TLSLDO,
7292         UNSPEC_TLSIE, UNSPEC_TLSLE, UNSPEC_TLSLD_BASE): New constants.
7293         (tls_call_delay): New attribute.
7294         (in_call_delay): Use it.
7295         (movqi, movhi, movsi, movdi): Call legitimize_tls_address if needed.
7296         (tgd_hi22, tgd_lo10, tgd_add32, tgd_add64, tgd_call32, tgd_call64,
7297         tldm_hi22, tldm_lo10, tldm_add32, tldm_add64, tldm_call32, tldm_call64,
7298         tldo_hix22, tldo_lox10, tldo_add32, tldo_add64, tie_hi22, tie_lo10,
7299         tie_ld32, tie_ld64, tie_add32, tie_add64, tle_hix22_sp32,
7300         tle_lox10_sp32, tle_hix22_sp64, tle_lox10_sp64): New insns.
7301         (tldo_ldub_sp32, tldo_ldub1_sp32, tldo_ldub2_sp32, tldo_ldsb1_sp32,
7302         tldo_ldsb2_sp32, tldo_ldub_sp64, tldo_ldub1_sp64, tldo_ldub2_sp64,
7303         tldo_ldub3_sp64, tldo_ldsb1_sp64, tldo_ldsb2_sp64, tldo_ldsb3_sp64,
7304         tldo_lduh_sp32, tldo_lduh1_sp32, tldo_ldsh1_sp32, tldo_lduh_sp64,
7305         tldo_lduh1_sp64, tldo_lduh2_sp64, tldo_ldsh1_sp64, tldo_ldsh2_sp64,
7306         tldo_lduw_sp32, tldo_lduw_sp64, tldo_lduw1_sp64, tldo_ldsw1_sp64,
7307         tldo_ldx_sp64, tldo_stb_sp32, tldo_stb_sp64, tldo_sth_sp32,
7308         tldo_sth_sp64, tldo_stw_sp32, tldo_stw_sp64, tldo_stx_sp64): New
7309         insns.
7310         * config/sparc/sparc-protos.h (legitimate_constant_p,
7311         constant_address_p, legitimate_pic_operand_p, legitimate_address_p,
7312         legitimize_tls_address, legitimize_address, tls_symbolic_operand,
7313         tls_call_delay, sparc_output_dwarf_dtprel): New prototypes.
7314         * config/sparc/linux.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
7315         * config/sparc/linux64.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Likewise.
7316         * configure.in (sparc*-*-*): Add TLS check.
7317         * configure: Rebuilt.
7318
7319 2003-09-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
7320
7321         PR target/11689
7322         * config/i386/i386.c (memory_address_length): Fix computation when
7323         the base is esp or ebp.
7324
7325 2003-09-07  Mark Mitchell  <mark@codesourcery.com>
7326
7327         PR c++/11852
7328         * varasm.c (initializer_constant_valid_p): Correct logic for
7329         CONSTRUCTORs.
7330
7331 2003-09-07  Roger Sayle  <roger@eyesopen.com>
7332
7333         * expr.c (expand_operands): New function to expand an operand pair.
7334         (expand_expr): Call expand_operands whenever we need to expand both
7335         operands of a binary operator.
7336         (do_store_flag): Likewise for operands of comparison operations.
7337
7338 2003-09-07  Roger Sayle  <roger@eyesopen.com>
7339
7340         * combine.c (combine_simplify_rtx): Don't convert -(A*B) into
7341         (-A)*B if we care about sign-dependent rounding.
7342
7343 2003-09-07  Gabriel Dos Reis  <gcc@integrable-solutions.net>
7344
7345         * c-pretty-print.h (pp_c_left_brace): Declare.
7346         (pp_c_right_brace): Likewise.
7347         * c-pretty-print.c (pp_c_left_brace): Now a function
7348         (pp_c_right_brace): Likewise.
7349
7350 2003-09-07  Jan Hubicka  <jh@suse.cz>
7351
7352         * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
7353
7354 2003-09-07  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7355
7356         * diagnostic.c (warn_deprecated_use): Move to toplev.c
7357
7358 2003-09-07  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7359
7360         * langhooks.c (lhd_print_error_function): Move from diagnostic.c.
7361         * Makefile.in (langhooks.o): Depend on diagnostic.h
7362
7363 2003-09-06  James E Wilson  <wilson@tuliptree.org>
7364
7365         * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
7366         simplify.
7367
7368 2003-09-07  Kelley Cook  <kelleycook@wideopenwest.com>
7369
7370         * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
7371         and use it throughout.
7372
7373 2003-09-07  Jan Hubicka  <jh@suse.cz>
7374
7375         * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
7376
7377         * toplev.c  (rest_of_decl_compilation):  Do not finalize external
7378         virables.
7379
7380         * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
7381         functions.
7382         (cgraph_varpool_finalize_decl): Notice global symbol when needed.
7383
7384 2003-09-06  Jan Hubicka  <jh@suse.cz>
7385
7386         PR target/12070
7387         * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
7388
7389         PR opt/12082
7390         * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
7391
7392 2003-09-06  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7393
7394         * diagnostic.c (announce_function): Move to toplev.c.
7395
7396 2003-09-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7397
7398         * gcse.c (expr_equiv_p): Don't consider anything to be equal to
7399         volatile mem.
7400
7401 2003-09-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7402
7403         * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
7404         when gc checking is enabled.
7405
7406 2003-09-06  Steven Bosscher  <steven@gcc.gnu.org>
7407
7408         PR c/9862
7409         * c-decl.c (c_expand_body_1): Move return warning from here...
7410         (finish_function): ...to here.
7411
7412 2003-09-05  Geoffrey Keating  <geoffk@apple.com>
7413
7414         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
7415         a subset of the input class.
7416
7417 2003-09-05  Kazu Hirata  <kazu@cs.umass.edu>
7418
7419         * config/i860/i860.c: Follow spelling conventions.
7420         * config/i860/i860.h: Likewise.
7421         * config/sh/sh.h: Likewise.
7422
7423 2003-09-05  Nitin Yewale  <NitinY@KPITCummins.com>
7424
7425         * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
7426         * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
7427         * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
7428
7429 2003-09-05  Roger Sayle  <roger@eyesopen.com>
7430             Richard Henderson  <rth@redhat.com>
7431
7432         PR optimization/1823
7433         * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
7434         multiplication to implement division by constant integer.
7435
7436 2003-09-05  Jan Hubicka  <jh@suse.cz>
7437
7438         * opts.c (decode_options): Enable unit-at-a-time at -O2.
7439         * params.def (max-inline-insns-single): Set to 500
7440         (max-inline-insns-auto): Set to 150
7441         * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
7442
7443 2003-09-04  Richard Henderson  <rth@redhat.com>
7444
7445         * cgraph.c (cgraph_mark_reachable_node): Split out from ...
7446         (cgraph_mark_needed_node): Remove needed argument.
7447         * cgraph.h: Update to match.
7448         * cgraphunit.c (decide_is_function_needed): Split out from ...
7449         (cgraph_finalize_function): Reorg.  Avoid deferred_inline_function
7450         if we generated the function.
7451         (record_call_1): Update for cgraph_mark_reachable_node.
7452         * varasm.c (mark_referenced): Likewise.
7453         * objc/objc-act.c (mark_referenced_methods): Likewise.
7454
7455 2003-09-04  DJ Delorie  <dj@redhat.com>
7456
7457         * targhooks.c: Add comment explaining the migration process.
7458
7459 2003-09-04  Eric Christopher  <echristo@redhat.com>
7460
7461         * config/frv/t-frv: Fix path for frv-abi.h.
7462         * config/frv/frv-asm.h: Fix string concatenation.
7463
7464 2003-09-04  DJ Delorie  <dj@redhat.com>
7465
7466         * builtins.c (apply_args_size): Guard against a NULL cfun.
7467         (expand_builtin_apply_args_1): Likewise.
7468         (expand_builtin_apply): Likewise.
7469         Fixes PR bootstrap/12172.
7470
7471 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7472
7473         * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
7474         assembler supports Sun syntax for cmov.
7475         * configure: Regenerate.
7476         * config.in: Likewise.
7477         * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
7478         HAVE_AS_IX86_CMOV_SUN_SYNTAX.
7479         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
7480         Fixes PR target/12101.
7481
7482 2003-09-04  Matt Austern  <austern@apple.com>
7483
7484         * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
7485         with verbosity 0, instead of DECL_NAME, for human-readable string.
7486
7487 2003-09-04  Eric Christopher  <echristo@redhat.com>
7488
7489         * targhooks.c (default_return_in_memory): Allow
7490         unconverted ports.
7491
7492 2003-09-04  Eric Christopher  <echristo@redhat.com>
7493
7494         * targhooks.c (default_return_in_memory): Fix typo
7495         in last checkin.
7496
7497 2003-09-04  Eric Christopher  <echristo@redhat.com>
7498
7499         * targhooks.c (default_return_in_memory): Fix default
7500         definition.
7501
7502 2003-09-04  Bernardo Innocenti  <bernie@develer.com>
7503
7504         * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
7505         deleted function.
7506         * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
7507         enable coff-only code in m68k.c.
7508
7509 2003-09-04  Nick Clifton  <nickc@redhat.com>
7510
7511         * config.gcc: Add v850e1 target.  Allow --with-cpu to accept
7512         v850e1.
7513         * config/v850/v850.h: Accept v850e1 as a default CPU.
7514         Accept -mv850e1 as a command line option.
7515         * doc/invoke.texi: Document new -mv850e1 command line switch.
7516         * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
7517         -mv850e.
7518
7519 2003-09-04  Nick Clifton  <nickc@redhat.com>
7520
7521         * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
7522         * config/v850/t-v850: Only produce one extra multilib - for
7523         the v850e.
7524         * config/v850/t-v850e: New file: Only produce one extra
7525         multilib - for the v850.
7526
7527 2003-09-04  Jakub Jelinek  <jakub@redhat.com>
7528
7529         * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
7530         * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
7531         * unwind.h (_Unwind_GetBSP): New prototype.
7532         * libgcc-std.ver: Add empty GCC_3.3.2 version.
7533         * mkmap-symver.awk: For symbol versions with no exported symbols,
7534         don't put anything into version script, just change all symbol
7535         versions which inherit from it to inherit from its ancestor.
7536
7537 2003-09-04  Eric Christopher  <echristo@redhat.com>
7538
7539         * config/mips/mips.c (mips_expand_prologue): Convert to
7540         calls.struct_value_rtx hook.
7541         (reg_or_const_float_1_operand): New.
7542         * config/mips/mips.h: Update Comments.
7543         (mips_arg): Add reg_or_const_float_1_operand.
7544         * config/mips/mips.md (divdf3); Convert to expander.
7545         (divsf3): Ditto.
7546         (*divdf3): New pattern.
7547         (*divsf3): Ditto.
7548
7549 2003-09-04  Jan Hubicka  <jh@suse.cz>
7550
7551         * toplev.c (wrapup_global_declarations): Fix final pass in
7552         unit-at-atime mode.
7553
7554 2003-09-04  Mark Mitchell  <mark@codesourcery.com>
7555
7556         * doc/extend.texi: Document removal of cast-as-lvalue extension in
7557         C++.
7558
7559 2003-09-04  Nicolas Roche  <roche@act-europe.fr>
7560
7561         * gcc.c (process_command): Fix typo.
7562
7563 2003-09-03  David O'Brien  <obrien@FreeBSD.org>
7564
7565         optimization/11980
7566         * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
7567         (PTRDIFF_TYPE): Likewise.
7568         (WCHAR_TYPE_SIZE): Likewise.
7569
7570 2003-09-03  DJ Delorie  <dj@redhat.com>
7571
7572         * targhooks.c: New file.
7573         * targhooks.h: New file.
7574         * Makefile.in: Add targhooks.o support.
7575         (function.o): Depend on$(TARGET_H).
7576         (stmt.o): Likewise.
7577         (combine.o): Depend on $(TREE_H) and $(TARGET_H).
7578         * builtins.c (apply_args_size, expand_builtin_apply_args_1,
7579         expand_builtin_apply): Convert to calls.struct_value_rtx hook.
7580         (expand_builtin_saveregs): Convert to
7581         calls.expand_builtin_saveregs hook.
7582         * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
7583         here, instead of ...
7584         (get_parm_info) ... here.
7585         (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
7586         hook.
7587         (finish_function): Handle calls.promote_prototypes hook here too.
7588         * c-typeck.c (convert_arguments): Convert to
7589         calls.promote_prototypes hook.
7590         (c_convert_parm_for_inlining): Likewise.
7591         * calls.c (initialize_argument_information): Convert to
7592         calls.promote_function_args hook.
7593         (expand_call): Convert to calls.struct_value_rtx,
7594         calls.strict_argument_naming,
7595         calls.pretend_outgoing_varargs_named, and
7596         calls.promote_function_return hooks.  Pass fndecl to
7597         aggregate_value_p.  Initialize CUMULATIVE_ARGS before calling
7598         hooks, so they can use that.
7599         (emit_library_call_value_1): Likewise.
7600         * combine.c (setup_incoming_promotions): Convert to
7601         calls.promote_function_args hook.
7602         * emit-rtl.c: Convert to calls.struct_value_rtx hook.
7603         * expr.c (expand_assignment): Pass call to aggregate_value_p.
7604         (expand_expr): Likewise.
7605         * expr.h: Remove support for SETUP_INCOMING_VARARGS,
7606         STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
7607         RETURN_IN_MEMORY macro defaults.
7608         * final.c (profile_function): Convert to calls.struct_value_rtx
7609         hook.
7610         * function.c (aggregate_value_p): Accept function type tree as
7611         second parameter; try to deduce fntype from it.  Convert to
7612         calls.return_in_memory hook.
7613         (assign_parms): Convert to calls.setup_incoming_varargs,
7614         calls.strict_argument_naming, calls.promote_function_args,
7615         calls.pretend_outgoing_varargs_named hooks.  Pass fndecl to
7616         aggregate_value_p.
7617         (expand_function_start): Likewise.  Convert to
7618         calls.struct_value_rtx hook.
7619         (expand_function_end): Convert to calls.promote_function_return hook.
7620         (allocate_struct_function): Pass fndecl to aggregate_value_p.
7621         * hard-reg-set.h: Update comments to new hook names.
7622         * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
7623         * reg-stack.c (stack_result): Likewise.
7624         * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
7625         * stmt.c (expand_value_return): Convert to
7626         calls.promote_function_return hook.
7627         * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
7628         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
7629         TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
7630         TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
7631         TARGET_STRICT_ARGUMENT_NAMING,
7632         TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
7633         * target.h: Likewise.
7634         * tree.h (aggregate_value_p): Also takes a tree to deduce function
7635         attributes from (for target hooks).
7636         * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
7637         PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
7638         STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
7639         EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
7640         STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
7641         to hooks.
7642
7643         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
7644         to aggregate_value_p.
7645         * config/arm/arm.c (arm_init_cumulative_args,
7646         arm_output_mi_thunk): Likewise.
7647         * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
7648         Likewise.
7649         * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
7650         mips_can_use_return_insn): Likewise.
7651         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
7652         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
7653         * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
7654         aggregate_value_p.
7655         * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
7656         function to aggregate_value_p.
7657         * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
7658         aggregate_value_p.
7659
7660         * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
7661         (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
7662         sh_function_arg_advance, sh_pass_in_reg_p): New.  * config/sh/sh.c
7663         (sh_handle_renesas_attribute, sh_promote_prototypes,
7664         sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
7665         sh_setup_incoming_varargs, sh_strict_argument_naming,
7666         sh_pretend_outgoing_varargs_named): New decls.
7667         (targetm): Add new hooks.
7668         (calc_live_regs): Save MACL and MACH if the function has the
7669         renesas attribute.
7670         (sh_expand_prologue): Support renesas attribute.
7671         (sh_builtin_saveregs): Make static.
7672         (sh_build_va_list): Support renesas attribute.
7673         (sh_va_start): Likewise.
7674         (sh_va_arg): Likewise.
7675         (sh_promote_prototypes): New.
7676         (sh_function_arg): New, moved from sh.h.  Support renesas
7677         attribute.
7678         (sh_function_arg_advance): Likewise.
7679         (sh_return_in_memory): Likewise.
7680         (sh_strict_argument_naming): Likewise.
7681         (sh_pretend_outgoing_varargs_named): Likewise.
7682         (sh_struct_value_rtx): New.
7683         (sh_attribute): Add renesas attribute.
7684         (sh_handle_renesas_attribute): New.
7685         (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
7686         (sh_ms_bitfield_layout_p): Support renesas attribute also.
7687         (sh_output_mi_thunk): Pass function to aggregate_value_p.  *
7688         config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
7689         -mhitachi.
7690         (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
7691         target hooks.
7692         (sh_args): Add renesas_abi flag.
7693         (INIT_CUMULATIVE_ARGS): Set it.  Pass fndecl to aggregate_value_p.
7694         (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
7695         (PASS_IN_REG_P): Support renesas attribute.  Pass DF and TF on the
7696         stack for the renesas abi.
7697         (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
7698         SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
7699         PROMOTE_PROTOTYPES): Moved to sh.c.  * config/sh/sh.md (call): Set
7700         call cookie to indicate renesas calls.
7701
7702 2003-09-03  Mostafa Hagog  <mustafa@il.ibm.com>
7703
7704         * gcse.c (replace_one_set): New function.
7705         (pre_insert_copy_insn): Change the order of copying
7706         to make copy propagation discover additional PRE opportunities.
7707
7708 2003-09-03  Roger Sayle  <roger@eyesopen.com>
7709
7710         PR optimization/11700.
7711         * simplify-rtx.c (simplify_subreg): Check that the subreg offset
7712         of a hard register is representable before trying to simplify it
7713         using subreg_hard_regno.
7714
7715 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7716
7717         * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
7718         * configure: Regenerate.
7719
7720 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7721
7722         * intl.h (N_): Remove parentheses.
7723
7724 2003-09-03  Bernardo Innocenti  <bernie@develer.com>
7725
7726         * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
7727         * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
7728         definition and code blocks compiled when not defined.
7729         * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
7730         * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
7731         * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
7732         * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
7733
7734 2003-09-03  Jeff Sturm  <jsturm@one-point.com>
7735
7736         * cgraphunit.c (visited_nodes): New static variable.
7737         (record_call_1): Use walk_tree with visited_nodes.
7738         (cgraph_create_edges): Use walk_tree with visited_nodes.
7739         Setup/teardown visited_nodes hashtable.
7740
7741 2003-09-03  Roger Sayle  <roger@eyesopen.com>
7742
7743         * toplev.c (flag_rounding_math): New global variable.
7744         (f_options): Add to the list of language independent options.
7745         * flags.h (flag_rounding_math): Prototype here.
7746         (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
7747         * common.opt (frounding-math): New common command line option.
7748         * opts.c (common_handle_option): Handle OPT_frounding_math.
7749         (set_fast_math_flags): -ffast-math clears flag_rounding_math.
7750
7751         * doc/invoke.texi: Document this new command line option.
7752
7753 2003-09-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7754
7755         * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
7756
7757 2003-09-03  Jan Hubicka  <jh@suse.cz>
7758
7759         * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
7760         * c-decl.c (finish_function):  Kill arguments, always use cgraph path.
7761         * c-objc-common.c: Kill include of gt-c-objc-common.h
7762         (expand_deferred_fns, deffer_fn): Kill function.
7763         (deferred_fns): Kill variable.
7764         (finish_cdtor): Update finish_function call.
7765         (c_objc_common_finish_file): Always call cgraph code.
7766         * c-parse.c: Regenerate.
7767         * c-parse.y: Regenerate.
7768         * c-tree.h (finish_function): Update prototype.
7769         * objc-acct.c (build_module_descriptor, finish_method_def):
7770         Update call of finish_function.
7771         * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
7772         forward prototype.
7773         (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
7774         function and assemble it if needed.
7775         (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
7776         mode.
7777         (cgraph_optimize): Likewise.
7778         (cgraph_expand_function): In non-unit-at-a-time mode keep function body
7779         even when it has no inline callees.
7780         * c-parse.in: Update calls to finish_function.
7781
7782 2003-09-03  Nick Clifton  <nickc@redhat.com>
7783
7784         * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
7785         Use #error to generate the message if TARGET_DEFAULT is not
7786         recognised.
7787
7788 2003-09-03  Richard Sandiford  <rsandifo@redhat.com>
7789
7790         * config/mips/mips.h (MASK_UNUSED1): Remove.
7791         (MASK_XGOT, TARGET_XGOT): Define.
7792         (TARGET_SWITCHES): Add an entry for -mxgot.
7793         (ASM_SPEC): Map -mxgot to -xgot.
7794         * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
7795         whether we're using a big-GOT sequences.
7796         (mips_legitimize_const_move, mips_expand_call): Likewise.
7797         (override_options): Revert 2003-01-09 change.
7798         * doc/invoke.texi: Document -mxgot.
7799
7800 2003-09-02  Jason Merrill  <jason@redhat.com>
7801
7802         * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
7803         * config/sparc/sol2.h: Not here.
7804
7805 2003-09-02  Roger Sayle  <roger@eyesopen.com>
7806
7807         * expr.c (expand_expr): The code following both_summands performs
7808         the same task as simplify_gen_binary.  Replace all gotos to
7809         both_summands with a call to simplify_gen_binary and delete the
7810         now unused label.
7811
7812 2003-09-02  Jason Merrill  <jason@redhat.com>
7813
7814         PR c++/7327
7815         * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
7816
7817 2003-09-02  Jeff Sturm  <jsturm@one-point.com>
7818
7819         * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
7820         (cgraph_optimize_function): Set current_function_decl to the
7821         fndecl we're integrating from.
7822
7823 2003-09-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7824
7825         * builtins.def: Break out _Complex math functions into their
7826         own category.
7827
7828 2003-09-02  Andreas Jaeger  <aj@suse.de>
7829
7830         * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
7831
7832 2003-09-02  Josef Zlomek  <zlomekj@suse.cz>
7833
7834         * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
7835         finding the note again.
7836
7837 2003-09-02  Nathanael Nerode  <neroden@gcc.gnu.org>
7838
7839         * config.gcc: Remove host-specific rewrites of target_alias.
7840
7841 2003-09-01  Mark Mitchell  <mark@codesourcery.com>
7842
7843         * Makefile.in (genprogs): Fix typo.
7844
7845         * Makefile.in (gencheck.o): Remove build commands.
7846         (dummy-conditions.o): Likewise.
7847         (read-rtl.o): Likewise.
7848         (gensupport.o): Likewise.
7849         (genconfig$(build_exeext)): Remove rule.
7850         (genconfig.o): Remove build commands.
7851         (genflags$(build_exeext)): Remove rule.
7852         (genflags.o): Remove build commands.
7853         (gencodes$(build_exeext)): Remove rule.
7854         (gencodes.o): Remove build commands.
7855         (genconstants.o): Remove build commands.
7856         (genemit$(build_exeext)): Remove rule.
7857         (genemit.o): Remove build commands.
7858         (genrecog$(build_exeext)): Remove rule.
7859         (genrecog.o): Remove build commands.
7860         (genextract$(build_exeext)): Remove rule.
7861         (genextract.o): Remove build commands.
7862         (genpeep$(build_exeext)): Remove rule.
7863         (genpeep.o): Remove build commands.
7864         (genattr$(build_exeext)): Remove rule.
7865         (genattr.o): Remove build commands.
7866         (genprognames): New variable.
7867         (genprogs): Likewise.
7868         (genobjs): Likewise.
7869         (genprogs): New rule.
7870         (genobjs): Likewise.
7871         (genattrtab.o): Remove build commands.
7872         (genautomata.o): Likewise.
7873         (genoutput$(build_exeext)): Remove rule.
7874         (genoutput.o): Remove build commands.
7875         (gengenrtl.o): Likewise.
7876         (genpreds.o): Likewise.
7877         (gengtype.o): Likewise.
7878         (genconditions.o): Likewise.
7879         (gen-protos.o): Likewise.
7880         (scan.o): Likewise.
7881         (fix-header.o): Likewise.
7882         (scan-decls.o): Likewise.
7883         (check-g++): Combine with other check targets.
7884         (check-gcc): Likewise.
7885         (check-g77): Likewise.
7886         (check-objc): Likewise.
7887
7888 2003-09-01  Nathanael Nerode  <neroden@gcc.gnu.org>
7889
7890         * config.gcc: Remove host-specific stuff which is unused here
7891         since the introduction of config.host.
7892
7893         * doc/fragments.texi: Mention config.host.
7894         * doc/sourcebuild.texi: Mention config.host.  Give brief descriptions
7895         of config.build, config.host, and config.gcc.
7896
7897 2003-09-01  Zack Weinberg  <zack@codesourcery.com>
7898
7899         * c-decl.c (pushdecl): Don't put variables on
7900         C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
7901         incomplete.
7902
7903 2003-09-01  Nathanael Nerode  <neroden@gcc.gnu.org>
7904
7905         * config.host: New file.
7906         * config.gcc: Remove some host-specific stuff and some
7907         logic needed only for repeated invocation.
7908         * configure.in: Use config.host.
7909         * configure: Regenerate.
7910
7911 2003-09-01  Josef Zlomek  <zlomekj@suse.cz>
7912
7913         * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
7914         * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
7915         * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
7916         (fold): Kill BIT_ANDTC_EXPR and label bit_and.
7917         * tree.def (BIT_ANDTC_EXPR): Kill.
7918
7919 2003-08-31  Nathanael Nerode  <neroden@gcc.gnu.org>
7920
7921         * configure.in: Remove uses of "for x in .. ${foo}" idiom.
7922         * configure: Regenerate.
7923
7924         * config.gcc:  Remove references to install_headers_dir, now unused
7925         since introduction of config.build.
7926         * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
7927
7928         * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
7929         config.build.
7930
7931         * config.build: New file.
7932         * config.gcc: Remove some build-specific stuff.
7933         * configure.in: Use config.build.
7934         * configure: Regnerate.
7935
7936 2003-08-31  Steven Bosscher  <steven@gcc.gnu.org>
7937             Roger Sayle  <roger@eyesopen.com>
7938
7939         PR middle-end/11823
7940         * stmt.c (expand_end_case_type): Only use jump tables for dense
7941         switch statements when optimizing for size.
7942
7943 2003-08-31  Olivier Hainque  <hainque@act-europe.fr>
7944
7945         * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
7946         the != 0 case, which ensures pending stack adjustments are flushed.
7947
7948 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
7949
7950         * configure.frag: Delete file.
7951         * configure.in: Rename the substitution variables
7952         dep_host_xmake_file and dep_tmake_file to xmake_file and
7953         tmake_file respectively.  Do not expand $srcdir in the
7954         value of these; leave that for Make.  Introduce a new
7955         substitution varaible, all_lang_makefrags, which lists
7956         subdirectory Make-lang.in files; exclude these from
7957         all_lang_makefiles, which is now only for subdirectory
7958         outputs.  Do not invoke configure.frag.  Do not set nor
7959         AC_SUBST_FILE target_overrides, host_overrides, or
7960         language_fragments. Create build subdirectories in
7961         config.status extra commands.
7962         * configure: Regenerate.
7963         * Makefile.in: Update substitutions to match changes to
7964         configure.  Use include directives instead of @-insertions
7965         to read in host, target, and language fragments.
7966         (Makefile rule): Do not invoke configure.frag.  Do not copy
7967         config.status to config.run before executing it.  Set
7968         CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
7969         regenerated.
7970         (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
7971
7972 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
7973
7974         * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
7975         * c-typeck.c (same_translation_unit_p): New function.
7976         (comptypes): Use it instead of flags parameter to identify
7977         structure types from different translation units.
7978         * c-decl.c (duplicate_decls): Always call comptypes with
7979         COMPTYPE_STRICT flags argument.
7980         (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
7981         to file_scope_decl.
7982
7983 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
7984
7985         * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
7986         * c-decl.c (struct c_scope): Remove "incomplete" field.
7987         (pushdecl): Attach variables with incomplete types to
7988         the TYPE_MAIN_VARIANT of the incomplete type in question.
7989         (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
7990         to complete, not at current_scope->incomplete.  All such
7991         variables do need completion.
7992
7993 2003-08-30  Richard Earnshaw  <rearnsha@arm.com>
7994         Nicolas Pitre <nico@cam.org>
7995
7996         * arm/lib1funcs.asm (RETCOND): Delete.
7997         (RETLDM): New assembler macro.  Use it for returning with ldm/ldr.
7998         (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
7999         (__ARM_ARCH__): Move here from ieee754-?f.S.
8000         (RET, RETc): Clean up definitions.
8001         (DIV_FUNC_END): Renamed from FUNC_END.  All uses changed.
8002         (FUNC_END): New macro that marks the end of any function.
8003         (ARM_FUNC_START): New macro that allows an assembler routine to be
8004         implemented in ARM code even if a Thumb-only build.
8005         Unconditionally include ieee754-?f.S.
8006         * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
8007         Mark ends of functions.
8008         Split into separate conditionally-compiled units.
8009         Use RETLDM to return from routines.
8010         * arm/ieee754-sf.S: Similarly.
8011         * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
8012         Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
8013         _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
8014         _fixsfsi and _fixunssfsi.
8015
8016         * arm/ieee754-df.S (__muldf3): Fix bug when result of a
8017         multiplication underflows to zero.
8018         (__adddf3): Fix bug when using VFP ordering on little-endian
8019         processors.
8020         (__fixdfsi): Use rrx to extract the carry into a register instead of
8021         MRS instruction.  Optimize later use of result.
8022         * arm/ieee754-sf.S (__fixsfsi): Likewise.
8023         (__fixunssfsi): Use a better sequence for handling negative-or-zero.
8024
8025 2003-08-29  Richard Henderson  <rth@redhat.com>
8026
8027         * tree-optimize.c: New file.
8028         * Makefile.in (OBJS-archive): Add tree-optimize.o.
8029         (tree-optimize.o): New.
8030         * c-decl.c (store_parm_decls): Use allocate_struct_function.
8031         (finish_function): Don't free_after_parsing or free_after_compilation.
8032         (set_save_expr_context): Move to tree-optimize.c.
8033         (c_expand_body_1): Use tree_rest_of_compilation.
8034         * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
8035         * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
8036         * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
8037         iterate until closure.
8038         * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
8039         LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
8040         (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
8041         * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
8042         * toplev.h (tree_rest_of_compilation): Declare it.
8043
8044 2003-08-29  Richard Henderson  <rth@redhat.com>
8045
8046         * function.h (struct function): Add rtl_inline_init, saved_for_inline.
8047         * integrate.c (save_for_inline): Set saved_for_inline.
8048         * c-semantics.c (genrtl_scope_stmt): Check it.
8049         * toplev.c (wrapup_global_declarations): Check it.
8050         (rest_of_handle_inlining): Set and check rtl_inline_init.
8051         (rest_of_compilation): Remove out of date comment.
8052
8053 2003-08-29  Richard Henderson  <rth@redhat.com>
8054
8055         * function.c (allocate_struct_function): New, split out of ...
8056         (prepare_function_start, init_function_start): ... here.
8057         * expr.c (init_expr): Use ggc_alloc_cleared.
8058         * stmt.c (init_stmt_for_function): Likewise.
8059         * tree.h (allocate_struct_function): Declare.
8060
8061 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
8062
8063         * config.gcc: Don't use negated character class in shell case
8064         clause.
8065
8066 2003-08-29  Richard Henderson  <rth@redhat.com>
8067
8068         * function.h (struct function): Move function_frequency and
8069         max_jumptable_ents before start of bit field members.
8070
8071 2003-08-29  Richard Henderson  <rth@redhat.com>
8072
8073         * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
8074         (fold_builtin_constant_p) ... not here.
8075
8076 2003-08-29  Richard Henderson  <rth@redhat.com>
8077
8078         * c-tree.h (C_DECL_FILE_SCOPE): Move ...
8079         * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
8080         * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
8081
8082 2003-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8083
8084         * builtins.def: Fix typos.
8085         (ATTR_MATHFN_FPROUNDING_STORE): New macro.
8086         (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
8087         BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
8088         BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
8089         BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
8090
8091         * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
8092         Use ATTR_MATHFN_FPROUNDING_ERRNO.
8093
8094 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
8095
8096         * config.gcc (i386-*-vsta): Fix obvious bogosity.
8097
8098         * fixinc/inclhack.def:  Remove special cases for unsupported
8099         PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
8100         * fixinc/fixincl.x: Regenerate.
8101
8102 2003-08-29  Mark Mitchell  <mark@codesourcery.com>
8103
8104         * Makefile.in (cpp.info): Just state dependencies.
8105         (gcc.info): Likewise.
8106         (gccint.info): Likewise.
8107         (gccinstall.info): Likewise.
8108         (cppinternals.info): Likewise.
8109         (cpp.dvi): Likewise.
8110         (gcc.dvi): Likewise.
8111         (gccint.dvi): Likewise.
8112         (gccinstall.dvi): Likewise.
8113         (cppinternals.dvi): Likewise.
8114         (gcov.1): Likewise.
8115         (cpp.1): Likewise.
8116         (gcc.1): Likewise.
8117         (gfdl.7): Likewise.
8118         (gpl.7): Likewise.
8119         (fsf-funding.7): Likewise.
8120         ($(objdir)/%.info): New pattern rule.
8121         (%.dvi): Likewise.
8122
8123 2003-08-29  Kelley Cook  <kelleycook@wideopenwest.com>
8124
8125         * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
8126         (restage2): Likewise.
8127         (restage3): Likewise.
8128         (restage4): Likewise.
8129         (restageprofile): Likewise.
8130         (restagefeedback): Likewise.
8131         (bubblestrap): Likewise.
8132
8133 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
8134
8135         * config.gcc: Narrow unsupported target match to avoid clobbering
8136         i?86-sequent-sysv4*.
8137
8138 2003-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8139
8140         * builtins.c (mathfn_built_in): Handle new math builtins.
8141
8142 2003-08-28  Per Bothner  <per@bothner.com>
8143
8144         Fix (hopefully temporary) for breakage caused by my 08-21 patch.
8145         * cpplex.c (_cpp_get_fresh_line):  Check for null buffer.
8146         (_cpp_lex_buffer):  Likewise.
8147         * cpptrad.c (_cpp_read_logical_line_trad):  Likewise.
8148
8149 2003-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
8150
8151         * config/s390/s390.md ("*mulsi3_sign"): New insn.
8152         ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
8153         ("mulsidi3"): ... this new insn.
8154         ("umulsidi3"): New insn.
8155         ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
8156         mixed-mode matching constraints.
8157         ("udivmodsi4", "udivmoddisi3"): New insns.
8158         ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
8159
8160 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8161
8162         * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
8163         BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
8164         BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
8165         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
8166         BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
8167         BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
8168         BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
8169         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
8170         BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
8171         BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
8172         BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
8173         * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
8174         BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
8175         BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
8176         BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
8177         * tree.c: Assign new type_nodes.
8178         * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
8179         TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
8180         (float_ptr_type_node, double_ptr_type_node,
8181         long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
8182
8183         * doc/extend.texi: Document new builtins.
8184
8185 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8186
8187         * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
8188         BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
8189
8190         * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
8191         BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
8192         BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
8193         BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
8194         BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
8195         BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
8196         BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
8197         BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
8198         BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
8199         BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
8200
8201         * doc/extend.texi: Document new builtins.
8202
8203 2003-08-28  Nathanael Nerode  <neroden@gcc.gnu.org>
8204
8205         * fixinc/mkfixinc.sh: Remove special case code for unsupported
8206         variants of i?86, powerpcle, and thumb.
8207         * fixinc/mkfixinc.sh: Remove special case code for unsupported
8208         arm and hppa variants.
8209
8210 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8211
8212         * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
8213         BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
8214         BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
8215         BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
8216         BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
8217         BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
8218         BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
8219         BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
8220         BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
8221         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
8222
8223         * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
8224         BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
8225         BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
8226         BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
8227         BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
8228         BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
8229         BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
8230         BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
8231         BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
8232         BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
8233         BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
8234         BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
8235         BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
8236         BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
8237         BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
8238         BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
8239         BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
8240         BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
8241         BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
8242         BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
8243         BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
8244         BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
8245         BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
8246         BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
8247         BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
8248         BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
8249         BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
8250         BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
8251         BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
8252         BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
8253         BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
8254
8255         * doc/extend.texi: Document new builtins.
8256
8257 2003-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
8258
8259         * config/s390/s390.c (legitmate_constant_p): Use LARL on
8260         zSeries machines even in 31-bit addressing mode.
8261         (legitimate_reload_constant_p): Likewise.
8262         (legitimize_pic_address): Likewise.
8263         (legitimize_tls_address): Likewise.
8264         (s390_split_branches): Likewise.
8265         (s390_dump_pool): Likewise.
8266         (s390_mainpool_finish): Likewise.
8267         (s390_chunkify_start): Likewise.
8268         (s390_select_rtx_section): Likewise.
8269         * config/s390/s390.md ("doloop_si"): Likewise.
8270         ("pool_start_31", "pool_end_31"): Likewise.
8271         ("pool_start_64", "pool_end_64"): Likewise.
8272         ("main_base_31_small", "main_base_31_large"): Likewise.
8273         ("main_base_64"): Likewise.
8274         ("reload_base_31", "reload_base_64"): Likewise.
8275         ("*movsi_larl"): New insn.
8276         ("cjump", "icjump"): Use long branches on zSeries machines.
8277         ("jump"): Likewise.
8278         ("call"): Use BRASL on zSeries machines.
8279         ("call_value", "call_value_tls"): Likewise.
8280         ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
8281         and replace by ...
8282         ("*bras", "*brasl", "*basr") ... these new insns.
8283         ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
8284         "bas_31_r"): Remove and replace by ...
8285         ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
8286         ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
8287         "bas_64_tls", "bas_31_tls"): Remove and replace by ...
8288         ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
8289         ("*return_si", "*return_di"): Remove and replace by ...
8290         ("*return"): ... this new insn.
8291         ("rotlsi3"): Allow on zSeries machines.
8292
8293         * config/s390/s390.c (legitimize_reload_constant_p): Use
8294         LL/LH type instructions in z/Architecture mode.
8295         * config/s390/s390.md ("*movsi_lli"): Likewise.
8296         ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
8297         ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
8298         ("*extendqisi2"): Use LB in z/Architecture mode.
8299         ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
8300         z/Architecture mode.
8301         ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
8302         Likewise.
8303
8304         * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
8305         and 31-bit mode.
8306         ("ptr_extend"): Allow only in 64-bit mode.
8307
8308 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
8309
8310         * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
8311         (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
8312         definitions.
8313         (main): Only use standard_startfile_prefix if native.
8314         * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
8315
8316 2003-08-27  Per Bothner  <pbothner@apple.com>
8317
8318         * cpperror.c (print_location):  Don't check for !pfile->buffer.  That
8319         test fails following my 08-21 change, and it seems unnecessary anyway.
8320         (cpp_error):  Likewise.
8321
8322 2003-08-27  Jason Merrill  <jason@redhat.com>
8323
8324         * real.c (do_multiply): Initialize with memset.
8325
8326 2003-08-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8327
8328         * gcov.c (typedef struct arc_info): New field cs_count.
8329         (accumulate_line_counts): Find cycles correctly.
8330
8331 2003-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
8332
8333         * config/s390/s390.c (struct machine_function): Remove member
8334         literal_pool_label.
8335         (s390_optimize_prolog): Replace TEMP_REG argument with
8336         TEMP_USED and BASE_USED.  Do not check get_pool_size ().
8337         (general_s_operand): Accept all immediates before reload if
8338         ALLOW_IMMEDIATE.  If not ALLOW_IMMEDIATE, reject literal pool
8339         references.
8340         (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
8341         (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
8342         (s390_alloc_pool): New function.
8343         (s390_new_pool): Call it.
8344         (s390_dump_pool): Add REMOTE_LABEL argument.
8345         (s390_chunkify_start): Add BASE_REG argument.  Do not check
8346         get_pool_size ().
8347         (s390_chunkify_finish): Add BASE_REG argument.  Adapt
8348         s390_dump_pool call.
8349         (s390_pool_count, s390_nr_constants): Remove.
8350         (s390_output_constant_pool): Remove.
8351         (s390_mainpool_start): New function.
8352         (s390_mainpool_finish): New function.
8353         (s390_mainpool_cancel): New function.
8354         (s390_reorg): Implement main literal pool handling.
8355         (s390_emit_prologue): Emit main_pool placeholder instead of
8356         literal_pool_31 / literal_pool_64 insns.
8357         * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
8358         (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
8359         * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
8360         ("main_base_31_small", "main_base_31_large"): New insns.
8361         ("main_base_64",  "main_pool"): New insns.
8362         ("literal_pool_31", "literal_pool_64"): Remove.
8363
8364 2003-08-27  Nathanael Nerode  <neroden@gcc.gnu.org>
8365
8366         * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
8367         fixinc.ptx.
8368         * fixinc/inclhack.def (undefine_null):  Don't generate \r characters.
8369         Prettify a little.
8370         * fixinc/fixincl.x: Regenerate.
8371
8372 2003-08-27  Richard Earnshaw  <rearnsha@arm.com>
8373
8374         * lib1funcs.asm (L_ieee754_sp): New.  Include ieee754-sf.S.
8375         (L_ieee754_dp): New.  Include ieee754-df.S.
8376         * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
8377         and compilation in apcs-26 mode.
8378         * arm/ieee754-df.S: Likewise.
8379         * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
8380         (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
8381
8382 2003-08-27  Nicolas Pitre  <nico@cam.org>
8383
8384         * arm/ieee754-sf.S: New.
8385         * arm/ieee754-df.S: New.
8386
8387 2003-08-27  Jakub Jelinek  <jakub@redhat.com>
8388
8389         * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
8390         and restore it if returning NULL.
8391
8392 2003-08-27  Richard Sandiford  <rsandifo@redhat.com>
8393
8394         * calls.c (initialize_argument_information): If an argument has no
8395         stack space associated with it, and BLOCK_REG_PADDING is defined,
8396         use it to decide at which end the argument should be padded.
8397         * function.c (assign_parms): Allocate BLKmode stack slots.
8398         * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
8399         (mips_pad_reg_upward): Declare.
8400         * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
8401         (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
8402         (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
8403         (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
8404         * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
8405         (mips_expand_call): Remove code for generating structure shifts.
8406         (mips_arg_info): Don't set struct_p.  Don't set fpr_p for non-float
8407         types unless using the EABI.
8408         (function_arg_advance): Don't generate shift instructions.
8409         (function_arg): Don't return them.  Don't short-circuit the
8410         check for double structure chunks for DFmode arguments.
8411         (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
8412         (mips_expand_prologue): Remove code to emit structure shifts.
8413         * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
8414         structure passing (inet_ntoa, inet_lnaof, inet_netof).  Update
8415         comments to say that only structure returns are a problem.
8416
8417 2003-08-26  Nathanael Nerode  <neroden@gcc.gnu.org>
8418
8419         * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
8420         Fix to match produced versions.
8421         * fixinc/inclhack.def (longlong_t): New disabled test, ported
8422         from fixinc.svr4.
8423         * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
8424         from fixinc.ptx.
8425         * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
8426         ported from fixinc.ptx.
8427
8428 2003-08-26  Per Bothner  <pbothner@apple.com>
8429
8430         * cpplib.h (struct cpp_token):  Change type of field line to fileline.
8431         (cpp_error_with_line):  Use fileline for appropriate parameter.
8432         * cpphash.h (struct cpp_macro):  Change type of field line to fileline.
8433         (struct cpp_reader):  Likewise for fields line and directive_line.
8434         (_cpp_begin_message):  Use fileline for appropriate parameter.
8435         * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
8436         cpp_error):  Use fileline for appropriate parameters and variables.
8437         (print_location):  New local lin, since it is not a fileline.
8438
8439 2003-08-26  Roger Sayle  <roger@eyesopen.com>
8440
8441         PR middle-end/12002
8442         * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
8443         (FLOAT_TYPE_P): Define in terms of these two new macros.
8444         * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
8445         for complex floating point types.
8446
8447 2003-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
8448
8449         * config/s390/s390.c (emit_prologue): Don't check literal pool size.
8450         * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
8451         s390_output_pool_entry.
8452
8453 2003-08-26  Nathanael Nerode  <neroden@gcc.gnu.org>
8454
8455         * fixinc/inclhack.def (svr4_preproc_lint_on,
8456         svr4_preproc_lint_off, svr4_preproc_machine): New disabled
8457         fixes, ported from fixinc.svr4.
8458
8459 2003-08-26  Mark Mitchell  <mark@codesourcery.com>
8460
8461         * doc/install.texi (Prerequisites): Mention GNU make requirement.
8462
8463         * Makefile.in (AR_FOR_TARGET): Export it.
8464         (AR_CREATE_FOR_TARGET): Likewise.
8465         (AR_FLAGS_FOR_TARGET): Likewise.
8466         (AR_EXTRACT_FOR_TARGET): Likewise.
8467         (AWK): Likewise.
8468         (BUILD_PREFIX): Likewise.
8469         (BUILD_PREFIX_1): Likewise.
8470         (DESTDIR): Likewise.
8471         (GCC_FOR_TARGET): Likewise.
8472         (INCLUDES): Likewise.
8473         (INSTALL_DATA): Likewise.
8474         (LIB1ASMSRC): Likewise.
8475         (LIBGCC2_CFLAGS): Likewise.
8476         (MACHMODE_H): Likewise.
8477         (NM_FOR_TARGET): Likewise.
8478         (RANLIB_FOR_TARGET): Likewise.
8479         (libsubdir): Likewise.
8480         (slibdir): Likewise.
8481         (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
8482         exporting.
8483         (libgcc.a): Don't pass them here.
8484         (stmp-multilib): Or here.
8485         (install-libgcc): Or here.
8486         (install-multilib): Or here.
8487         (POSTSTAGE1_FLAGS_TO_PASS): Or here.
8488         (stage1_build): Or here.
8489
8490 2003-08-26  Andreas Krebbel <krebbel1@de.ibm.com>
8491
8492         * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
8493         "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
8494
8495 2003-08-26  Andreas Krebbel <krebbel1@de.ibm.com>
8496
8497         * config/s390/s390.md ("*fmadddf", "*fmsubdf",
8498         "*fmaddsf", "*fmsubsf"): New insns.
8499
8500 2003-08-26  Roger Sayle  <roger@eyesopen.com>
8501
8502         * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
8503         (C1*C2)/X when unsafe math optimizations are allowed.
8504         (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
8505         math optimizations.  Minor code clean-ups.  Recursively call
8506         fold when constructing sub-expressions.
8507
8508 2003-08-26  Roger Sayle  <roger@eyesopen.com>
8509
8510         * builtins.c (fold_builtin_bitop): New function to perform constant
8511         folding of ffs, clz, ctz, popcount and parity builtin functions
8512         and their long and long long variants (such as ffsl and ffsll).
8513         (fold_builtin): fold_builtin_bitop when appropriate.
8514         * simplify-rtx.c (simplify_unary_operation): Honor both
8515         CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
8516         evaluating clz and ctz at compile-time, for operands wider
8517         than HOST_WIDE_INT.
8518
8519 2003-08-26  Nathan Sidwell  <nathan@codesourcery.com>
8520
8521         * builtins.c (build_function_call_expr): Don't set
8522         TREE_SIDE_EFFECTS here.
8523         * expr.c (emit_block_move_via_libcall): Likewise.
8524         (clear_storage_via_libcall): Likewise.
8525         * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
8526         CALL_EXPRs.
8527
8528         * gcse.c (is_too_expensive): New function.
8529         (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
8530
8531 2003-08-25  Zack Weinberg  <zack@codesourcery.com>
8532
8533         * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
8534         commented-out logic to use DCE threads (if present), add
8535         support for POSIX threads.
8536         * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
8537         #defines for -pthread.  Add -lpthread to LIB_SPEC when
8538         -pthread.  In both cases take -mt as a synonym for -pthread
8539         for acc compatibility.
8540         Define GTHREAD_USE_WEAK to 0.
8541         * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
8542         Remove old logic for DCE threads from LIB_SPEC.
8543         * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
8544
8545 2003-08-25  Roger Sayle  <roger@eyesopen.com>
8546
8547         * builtins.c (expand_builtin_mathfn):  Rearrange so that we only
8548         return 0 for invalid argument types.  Instead drop through to a
8549         call of expand_call at the bottom of function.  If op is SQRT,
8550         try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
8551
8552 2003-08-25  Richard Henderson  <rth@redhat.com>
8553
8554         * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
8555         result when op0 is SImode.
8556
8557 2003-08-25  Nathanael Nerode  <neroden@twcny.rr.com>
8558
8559         * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
8560         from fixinc.svr4.
8561         * fixinc/fixincl.x: Regenerate.
8562         * fixinc/tests/base/sys/signal.h: Regenerate.
8563
8564 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
8565
8566         * combine.c (simplify_comparison): Re-enable widening of comparisons
8567         with non-paradoxical subregs of non-REG expressions.
8568
8569 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
8570
8571         * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
8572
8573 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
8574
8575         * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
8576
8577 2003-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8578
8579         * pretty-print.h (pp_maybe_newline_and_indent): New macro.
8580         * c-pretty-print.h (c_pretty_printer): Now typedef to the
8581         structure.  Be consistent with pretty-print.h abd cxx-pretty-print.h
8582         (struct c_pretty_print_info): Document.  Add new fields.
8583         (pp_type_specifier_seq): Rename from pp_c_type_specifier.
8584         (pp_direct_abstract_declarator): New macro.
8585         (pp_ptr_operator): Likewise.
8586         (pp_simple_type_specifier): Likewise.
8587         (pp_expression): Likewise.
8588         (pp_parameter_list): Rename from pp_parameter_declaration.
8589         * c-pretty-print.c (pp_c_whitespace): Now a function.
8590         (pp_c_left_paren): Likewise.
8591         (pp_c_right_paren): Likewise.
8592         (pp_c_dot): Likewise.
8593         (pp_c_ampersand): Likewise.
8594         (pp_c_arrow): Likewise.
8595         (pp_c_semicolon): Likewise.
8596         (pp_c_type_cast): New function.
8597         (pp_c_space_for_pointer_operator): Likewise.
8598         (pp_c_call_argument_list): Likewise.
8599         (pp_c_cv_qualifier): Adjust prototype.
8600         (pp_c_type_qualifier_list): Likewise.
8601         (pp_c_pointer): Likewise.  Handle REFERENCE_TYPE here.
8602         (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
8603         Adjust to follow standard grammar.
8604         (pp_c_specifier_qualifier_list): Adjusr prototype.  Handle
8605         REFERENCE_TYPE.  Tidy.
8606         (pp_c_parameter_type_list): Adjust prototype.  Tidy.
8607         (pp_c_parameter_declaration): Remove.
8608         (pp_c_abstract_declarator): Adjust prototype.
8609         (pp_c_direct_abstract_declarator): Likewise.
8610         (pp_c_type_id): Likewise.
8611         (pp_c_storage_class_specifier): Likewise.
8612         (pp_c_function_specifier): Likewise.
8613         (pp_c_declaration_specifiers): Likewise.
8614         (pp_c_direct_declarator): Likewise.
8615         (pp_c_declarator): Likewise.
8616         (pp_c_declarator): Likewise.
8617         (pp_c_declaration): Likewise.
8618         (pp_c_attributes): Likewise.  Tidy.
8619         (pp_c_function_definition): Adjust prototype.
8620         (pp_c_char): Likewise.
8621         (pp_c_string_literal): Likewise.
8622         (pp_c_integer_constant): Likewise.
8623         (pp_c_character_constant): Likewise.
8624         (pp_c_bool_constant): Likewise.
8625         (pp_c_enumeration_constant): Likewise.
8626         (pp_c_floating_constant): Likewise.
8627         (pp_c_constant): Likewise.
8628         (pp_c_identifier): Likewise.
8629         (pp_c_primary_expression): Likewise.  Remove TARGET_EXPR case.  Tidy.
8630         (pp_c_initializer): Adjust prototype.
8631         (pp_c_init_declarator): Likewise.
8632         (pp_c_initializer_list): Likewise.
8633         (pp_c_id_expression): Likewise.
8634         (pp_c_postfix_expression): Likewise.
8635         (pp_c_expression_list): Likewise.
8636         (pp_c_unary_expression): Likewise.
8637         (pp_c_cast_expression): Likewise.
8638         (pp_c_multiplicative_expression): Likewise.
8639         (pp_c_additive_expression): Likewise.
8640         (pp_c_shift_expression): Likewise.
8641         (pp_c_relational_expression): Likewise.
8642         (pp_c_equality_expression): Likewise.
8643         (pp_c_and_expression): Likewise.
8644         (pp_c_exclusive_or_expression): Likewise.
8645         (pp_c_inclusive_or_expression): Likewise.
8646         (pp_c_logical_and_expression): Likewise.
8647         (pp_c_logical_or_expression): Likewise.
8648         (pp_c_conditional_expression): Likewise.
8649         (pp_c_assignment_expression): Likewise.
8650         (pp_c_expression): Likewise.  Tidy.
8651         (pp_c_statement): Likewise.  Document.
8652         (pp_c_pretty_printer_init): Adjust prototype. Tidy.
8653
8654         * c-lang.c (c_initialize_diagnostics): Update.
8655         * c-common.h (strip_pointer_operator): Declare.
8656         * c-common.c (strip_pointer_operator): Define.
8657
8658 2003-08-25  Mark Mitchell  <mark@codesourcery.com>
8659
8660         PR c++/8795
8661         * tree.h (build_method_type_directly): Declare.
8662         * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
8663         (vector_size_helper): Likewise.
8664         * tree.c (build_method_type_directly): New function.
8665         (build_method_type): Use it.
8666
8667 2003-08-24  Richard Henderson  <rth@redhat.com>
8668
8669         * config/i386.i386.c (ix86_return_in_memory): Reformat.  Return true
8670         for 16-byte vector modes if sse not enabled; warn for abi change.
8671         (ix86_value_regno): Only return xmm0 for 16-byte vector types.
8672
8673 2003-08-24  Kazu Hirata  <kazu@cs.umass.edu>
8674
8675         * rtlanal.c (may_trap_p): Simplify an integer comparison.
8676
8677 2003-08-24  Nathanael Nerode  <neroden@gcc.gnu.org>
8678
8679         * fixinc/inclhack.def (AAB_svr4_replace_byteorder):  Enhance
8680         comment.  Enable for DYNIX/ptx systems (when they switch to
8681         regular fixincludes).
8682         * fixinc/fixincl.x: Regenerate.
8683
8684 2003-08-23  Jason Eckhardt  <jle@rice.edu>
8685
8686         * config/i860/t-i860: New.
8687         * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
8688
8689 2003-08-23  Jakub Jelinek  <jakub@redhat.com>
8690
8691         * c-decl.c (pushdecl): Only put decls which finish_struct will do
8692         something about onto incomplete chain.
8693         (finish_struct): If not removing type from incomplete
8694         list, update prev.
8695
8696 2003-08-20  Jan Hubicka  <jh@suse.cz>
8697
8698         PR target/11369
8699         * i386.c (ix86_expand_carry_flag_compare): Validate operand.
8700
8701         PR target/11031
8702         * i386.c (const_0_to_3_operand, const_0_to_7_operand,
8703         const_0_to_15_operand, const_0_to_255_operand): New predicates.
8704         * i386.h (PREDICATE_CODES): Add these.
8705         * i386.c (pinsrw and pextrw patterns): Use them.
8706
8707         PR target/10984
8708         * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
8709
8710         PR target/8869
8711         * expr.c (convert_modes): Deal properly with integer to vector
8712         constant conversion.
8713
8714         PR target/8871
8715         * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
8716
8717 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
8718
8719         * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
8720         * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
8721         ("*movhi"): ... this.
8722         ("movqi", "*movqi"): Likewise.
8723         ("movqi_64"): Remove.
8724         ("*zero_extendhisi2_31"): Change predicate to s_operand.
8725
8726 2003-08-23  Dale Johannesen  <dalej@apple.com>
8727         * calls.c (emit_library_call_value_1): Fix obvious errors in
8728         arguments to emit_group_store.
8729
8730 2003-08-23  Jason Eckhardt  <jle@rice.edu>
8731
8732         * calls.c (emit_library_call_value_1): Remove code related
8733         to LIBGCC_NEEDS_DOUBLE.
8734         * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
8735         * doc/tm.texi: Likewise.
8736         * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
8737
8738 2003-08-23  Richard Sandiford  <rsandifo@redhat.com>
8739
8740         * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
8741
8742 2003-08-23  Richard Sandiford  <rsandifo@redhat.com>
8743
8744         * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
8745         as well.  Put memory references in the varargs alias set.
8746         (mips_expand_prologue): Remove varargs handling from here.
8747
8748 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
8749
8750         * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
8751         s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
8752         s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
8753         for function pointer calls.
8754         * config/s390/s390.md ("*negdi2_31"): Likewise.
8755
8756 2003-08-23  Roger Sayle  <roger@eyesopen.com>
8757
8758         * combine.c (apply_distributive_law): Correct comment.
8759
8760 2003-08-23  Jason Eckhardt  <jle@rice.edu>
8761
8762         * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
8763
8764 2003-08-22  Jason Eckhardt  <jle@rice.edu>
8765
8766         * config/i860/i860.c (i860_build_va_list): Create the va_decl
8767         declaration.  Document the va_list structure.
8768         (i860_va_start): Initialize the va_list structure.
8769         (i860_va_arg): Rewrite completely.
8770         * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
8771         * config/i860/varargs.asm: Do not allocate or initialize
8772         a va_list.  Return the address of the register save area.
8773
8774 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
8775
8776         * config/iq2000/iq2000.c: Fix comment typos.
8777         * config/iq2000/iq2000.md: Likewise.
8778
8779 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
8780
8781         * config/iq2000/iq2000.c: Follow spelling conventions.
8782         * config/iq2000/iq2000.h: Likewise.
8783         * config/mn10300/mn10300.c: Likewise.
8784
8785 2003-08-22  Jason Eckhardt  <jle@rice.edu>
8786
8787         * config/i860/i860.c (output_move_double): Don't set latehalf
8788         to zero for CONST_INT (since it could be, e.g., -1).
8789
8790         * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
8791         (MODSI3_LIBCALL): ...with this one.
8792         (UREMSI3_LIBCALL): Replace this macro...
8793         (UMODSI3_LIBCALL): ...with this one.
8794
8795 2003-08-22  Jason Eckhardt  <jle@rice.edu>
8796
8797         * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
8798         (output_delayed_branch): Remove prototype.
8799         (single_insn_src_p): Remove prototype.
8800         * config/i860/i860.c (single_insn_src_p): Remove function.
8801         (output_delayed_branch): Remove function.
8802         (output_delay_insn): Remove function.
8803         (va_start): Remove unconditional test and dead code, re-format.
8804         Fix coding style and spelling problems in various comments.
8805         * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
8806         (blockage pattern): ...and use it here.
8807         (all define_peephole patterns related to delayed branches): Remove.
8808         Fix coding style and spelling problems in various comments.
8809
8810 2003-08-22  Jason Eckhardt  <jle@rice.edu>
8811
8812         * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
8813         Remove all uses of the PARAMS macro.  Remove superflous prototypes.
8814         Convert all function definitions from traditional to ISO C90 syntax.
8815         * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
8816         with 'GCC'.  Remove all uses of the PARAMS macro.
8817         * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
8818         * config/i860/i860.md: Likewise.
8819         * config/i860/sysv4.h: Likewise.
8820         * config/i860/varargs.asm: Likewise.
8821
8822 2003-08-22  Jason Eckhardt  <jle@rice.edu>
8823
8824         * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
8825         argument.
8826         (tdesc_section): Add prototype.
8827         Update copyright dates.
8828         * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
8829         (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
8830         (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
8831         (targetm): Likewise.
8832         (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
8833         for '%d' where necessary.
8834         (i860_va_start): Remove 'stdarg_p' argument.  Make conditional checks
8835         on 'stdarg_p' unconditional.  Divide current_function_args_info.ints
8836         by UNITS_PER_WORD when referencing (likewise for .floats).
8837         (I860_SVR4_VARARGS): Rename...
8838         (I860_SVR4_VA_LIST): ...to this.
8839         Call build() with 't' rather than 'field'.
8840         (i860_rtx_costs): New function.
8841         (TARGET_RTX_COSTS): Define.
8842         (i860_internal_label): New function.
8843         (TARGET_ASM_INTERNAL_LABEL): Define.
8844         (i860_file_start): New function.
8845         Update copyright dates.
8846         * config/i860/i860.h (CPP_PREDEFINES): Remove.
8847         (TARGET_CPU_CPP_BUILTINS): Define.
8848         (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
8849         (CONST_COSTS): Remove (and move code to i860_rtx_costs).
8850         (ASM_FILE_START): Remove.
8851         (ASM_FILE_START_1): Remove.
8852         (ASM_GLOBALIZE_LABEL): Remove.
8853         (ASM_OUTPUT_INTERNAL_LABEL): Remove.
8854         (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
8855         with targetm.asm_out.internal_label.
8856         Update copyright dates.
8857         * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
8858         (CPP_PREDEFINES): Remove.
8859         (TARGET_OS_CPP_BUILTINS): Define.
8860         (GLOBAL_ASM_OP): Define.
8861         (ASM_FILE_START): Remove.
8862         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
8863         (TARGET_ASM_FILE_START): Define.
8864         Update copyright dates.
8865
8866 2003-08-22  Jason Eckhardt  <jle@rice.edu>
8867
8868         * gcc/config.gcc (i860-*-sysv4*): Add target.
8869         * config/i860/i860-protos.h: New.
8870         * config/i860/i860.c: New.
8871         * config/i860/i860.h: New.
8872         * config/i860/i860.md: New.
8873         * config/i860/sysv4.h: New.
8874         * config/i860/varargs.asm: New.
8875         * config/i860/x-sysv4: New.
8876
8877 2003-08-22  Jason Eckhardt  <jle@rice.edu>
8878
8879         * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
8880         Remove all uses of PARAMS macro.
8881         Convert all function definitions to ISO C90 syntax.
8882         * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
8883         * config/pa/fptr.c: Likewise.
8884         * config/pa/lib2funcs.asm: Likewise.
8885         * config/pa/long_double.h: Likewise.
8886         * config/pa/milli64.S: Likewise.
8887         * config/pa/pa-64.h: Likewise.
8888         * config/pa/pa-hpux.h: Likewise.
8889         * config/pa/pa-hpux10.h: Likewise.
8890         * config/pa/pa-hpux11.h: Likewise.
8891         * config/pa/pa-linux.h: Likewise.
8892         * config/pa/pa-modes.def: Likewise.
8893         * config/pa/pa-osf.h: Likewise.
8894         * config/pa/pa-pro-end.h: Likewise.
8895         * config/pa/pa.md: Likewise.
8896         * config/pa/pa32-linux.h: Likewise.
8897         * config/pa/pa64-linux.h: Likewise.
8898         * config/pa/pa64-hpux.h: Likewise.
8899         * config/pa/pa64-regs.h: Likewise.
8900         * config/pa/quadlib.c: Likewise.
8901         * config/pa/rtems.h: Likewise.
8902         * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
8903         all uses of the PARAMS macro.
8904         * config/pa/pa.h: Likewise.
8905         * config/pa/som.h: Likewise.
8906
8907         * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
8908         Remove all uses of PARAMS macro.
8909         Convert all function definitions to ISO C90 syntax.
8910         * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
8911         Remove all uses of PARAMS macro.
8912         * config/iq2000.h: Remove all uses of PARAMS macro.
8913         * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
8914
8915 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
8916
8917         * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
8918         * config/s390/s390.c (gen_consttable): Remove.
8919         (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
8920         (s390_output_pool_entry): New function.
8921         * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
8922         UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
8923         UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
8924         (UNSPECV_POOL_ENTRY): ... this new constant.
8925         ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
8926         "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
8927         ("*pool_entry"): ... and replace by this new insn.
8928         ("literal_pool_31"): Do not emit anchor label if pool empty.
8929
8930         * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
8931         (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
8932         (s390_fixup_clobbered_return_reg): Remove.
8933         (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
8934         (s390_return_addr_rtx): Always retrieve return address from save area
8935         slot.  Use save_return_addr_p to force slot to be filled.
8936         (s390_emit_prologue): Remove has_hard_reg_initial_val test.
8937
8938 2003-08-22  Chris Demetriou  <cgd@broadcom.com>
8939
8940         * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
8941         (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
8942         * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
8943         around SB-1 errata if TARGET_FIX_SB1 is set.
8944         (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
8945         * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
8946
8947 2003-08-22  Roger Sayle  <roger@eyesopen.com>
8948
8949         * hashtable.c (ht_expand): Avoid calculating rehash for the common
8950         case that the first probe hits an empty hash table slot.
8951
8952 2003-08-22  Mark Mitchell  <mark@codesourcery.com>
8953
8954         * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
8955
8956 2003-08-22  Mark Mitchell  <mark@codesourcery.com>
8957
8958         * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
8959         (ptr_extend_plus_imm): ... this.
8960         * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
8961         optimization in C++.
8962         (ia64_output_mi_thunk): Support ILP32 mode.
8963
8964 2003-08-22  Bernardo Innocenti  <bernie@develer.com>
8965
8966         * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
8967         function.
8968         * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
8969
8970 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
8971
8972         * config/i386/i386.c (const_int_1_operand): Simplify an
8973         integer comparison.
8974
8975 2003-08-22  Alan Modra  <amodra@bigpond.net.au>
8976
8977         * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
8978         * config/rs6000/ppc64-fp.c: Likewise.
8979
8980 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
8981
8982         * cfgcleanup.c: Fix comment typos.
8983         * emit-rtl.c: Likewise.
8984         * optabs.c: Likewise.
8985         * ra-build.c: Likewise.
8986         * rtlanal.c: Likewise.
8987         * tree.h: Likewise.
8988
8989 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
8990
8991         * c-decl.c: Fix comment formatting.
8992         * cfgrtl.c: Likewise.
8993         * combine.c: Likewise.
8994         * convert.c: Likewise.
8995         * dominance.c: Likewise.
8996         * dwarf2out.c: Likewise.
8997         * dwarfout.c: Likewise.
8998         * expmed.c: Likewise.
8999         * fold-const.c: Likewise.
9000         * gcov.c: Likewise.
9001         * genattrtab.c: Likewise.
9002         * ggc-common.c: Likewise.
9003         * mips-tfile.c: Likewise.
9004         * regmove.c: Likewise.
9005
9006 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
9007
9008         * builtin-attrs.def: Fix comment formatting.
9009         * c-pretty-print.c: Likewise.
9010         * diagnostic.h: Likewise.
9011         * langhooks.h: Likewise.
9012         * recog.c: Likewise.
9013         * simplify-rtx.c: Likewise.
9014         * tree.def: Likewise.
9015
9016 2003-08-22  Bernardo Innocenti  <bernie@develer.com>
9017
9018         * config/m68k/m68k-protos.h: Convert to ISO C90.
9019         * config/m68k/m68k.c: Likewise.
9020
9021 2003-08-21  Bernardo Innocenti  <bernie@develer.com>
9022             Paul Dale  <pauli@snapgear.com>
9023             Peter Barada <peter@baradas.org>
9024
9025         * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
9026         ColdFire cores.
9027
9028 2003-08-21  Zack Weinberg  <zack@codesourcery.com>
9029
9030         * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
9031         * config.gcc (*-*-openbsd): Don't set tm_file.
9032         (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
9033         arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
9034         h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
9035         i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
9036         i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
9037         m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
9038         m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
9039         m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
9040         mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
9041         sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
9042         xscale-*-coff): Use explicit and complete lists of target headers
9043         to include.  Move definitions to tm_defines where appropriate.
9044         (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
9045         not-yet-contributed configuration.
9046
9047         * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
9048         * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
9049         * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
9050         * config/i386/nto.h, config/iq2000/iq2000.h,
9051         * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
9052         * config/m68k/linux.h, config/m68k/m68k-aout.h
9053         * config/m68k/m68k-none.h, config/m68k/m68kv4.h
9054         * config/m68k/netbsd.h, config/m68k/openbsd.h
9055         * config/m68k/sgs.h, config/mcore/mcore-pe.h,
9056         * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
9057         * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
9058         Remove includes of other target config headers, and
9059         definitions of macros moved to tm_defines lists.  Add #undefs
9060         where now necessary to prevent redefinition warnings.
9061
9062         * config/h8300/coff.h: New file split out of...
9063         * config/h8300/elf.h: ...here.
9064         * config/m68k/hp320base.h: New file split out of...
9065         * config/m68k/hp320.h: ...here.
9066         * config/rs6000/lynxbase.h: New file split out of...
9067         * config/rs6000/lynx.h: ...here.
9068
9069         * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
9070         * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
9071
9072         * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
9073         * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
9074         * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
9075         Remove unnecessary #ifndef.
9076         * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
9077         [under IN_LIBGCC2] with config/.
9078
9079 2003-08-21  Per Bothner  <pbothner@apple.com>
9080
9081         * cppfiles.c (stack_file):  Correctly pass return_at_eof parameter
9082         to cpp_push_buffer.
9083         * cpplex.c (_cpp_get_fresh_line):  Don't buffer->prev - handled
9084         by return_at_eof check.  Always call _cpp_pop_buffer at end.
9085
9086 2003-08-21  Kazu Hirata  <kazu@cs.umass.edu>
9087
9088         PR target/11805
9089         * config/h8300/h8300.md (two anonymous patterns): Remove.
9090
9091 2003-08-21  Richard Sandiford  <rsandifo@redhat.com>
9092
9093         * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
9094         * config/mips/mips.c (function_arg_pass_by_reference): Never return
9095         true for n32 & n64.
9096
9097 2003-08-21  Josef Zlomek  <zlomekj@suse.cz>
9098
9099         * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
9100         and similarly in (A | C) == D where C & ~D != 0.
9101
9102 2003-08-20  Geoffrey Keating  <geoffk@apple.com>
9103
9104         PR 8180
9105         * configure.in: When testing with_libs and with_headers, treat
9106         'no' as unset.  Based on a patch by Dan Kegel <dank@kegel.com>.
9107         * configure: Regenerate.
9108
9109 2003-08-20  Peter Barada <peter@baradas.org>
9110
9111         * longlong.h (umul_ppmm): Add ColdFire support.
9112
9113 2003-08-20  Peter Barada <peter@baradas.org>
9114             Bernardo Innocenti  <bernie@develer.com>
9115
9116         * config/m68k/m68k-none.h: Introduce new ColdFire archs.
9117         * config/m68k/m68k.h: Likewise.
9118         * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
9119         * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
9120         * config/m68k/linux.h: Likewise.
9121         * config/m68k/m68k.c: Likewise.
9122         * config/m68k/m68k.md: Likewise.
9123         * config/m68k/m68kelf.h: Likewise.
9124         * config/m68k/netbsd-elf.h: Likewise.
9125         * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
9126
9127 2003-08-20  Bernardo Innocenti  <bernie@develer.com>
9128
9129         * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
9130         * config/m68k/m68k.md: Likewise.
9131
9132 2003-08-20  Mark Mitchell  <mark@codesourcery.com>
9133
9134         PR java/11996
9135         Revert this change:
9136         2003-08-19  Mark Mitchell  <mark@codesourcery.com>
9137         * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
9138         types with precisions other than those given by native machine
9139         modes.
9140
9141 2003-08-20  Gunther Nikl  <gni@gecko.de>
9142
9143         * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
9144         selected by FSGLMUL_USE_S and FSGLDIV_USE_S
9145         * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
9146         * config/m68k/m68k.md (anonymous define_insn): Likewise
9147         * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
9148         * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
9149         code selected by NO_ASM_FMOVECR
9150
9151 2003-08-20  Gunther Nikl  <gni@gecko.de>
9152
9153         * config/m68k/m68k.c (output_move_const_into_data_reg,
9154         output_move_himode): unify MOTOROLA/MIT handling of moveq
9155         * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
9156         Likewise
9157
9158 2003-08-20  Gunther Nikl  <gni@gecko.de>
9159
9160         * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
9161         label name
9162         * config/m68k/m68k.c (m68k_output_function_epilogue): replace
9163         HOST_WIDE_INT_PRINT_DEC with %wd
9164
9165 2003-08-20  Loren James Rittle  <ljrittle@acm.org>
9166
9167         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
9168         redefine warning.
9169
9170 2003-08-20  Roger Sayle  <roger@eyesopen.com>
9171
9172         PR middle-end/11984
9173         * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
9174         operands before calling tree_int_cst_lt when performing associative
9175         transformations.
9176
9177 2003-08-20  Jason Merrill  <jason@redhat.com>
9178
9179         * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
9180         (EXPR_CHECK): Don't check for 'r' or 's' if we're
9181         checking IS_EXPR_CODE_CLASS.
9182         * calls.c (calls_function_1): Likewise.
9183         * fold-const.c (fold): Likewise.
9184         * tree.c (iterative_hash_expr): Likewise.
9185         * tree-inline.c (walk_tree, copy_tree_r): Likewise.
9186
9187 2003-08-20  Gunther Nikl  <gni@gecko.de>
9188
9189         * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
9190         depending on MOTOROLA_BSR
9191         * config/m68k/m68k.md (anonymous define_insn): Likewise
9192
9193 2003-08-20  Jason Merrill  <jason@redhat.com>
9194
9195         * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
9196         (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
9197         fold_trunc_transparent_mathfn, fold_builtin): Likewise.
9198         * dojump.c (do_jump): Likewise.
9199         * fold-const.c (operand_equal_p, fold): Likewise.
9200         (tree_expr_nonnegative_p): Likewise.
9201
9202         * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
9203         TYPE_USER_ALIGN for FIELD_DECLs.
9204
9205         * attribs.c (decl_attributes): Rebuild the function pointer type after
9206         changing the target type.
9207         * tree.c (get_qualified_type): Also check that the attributes match.
9208
9209 2003-08-19  Matt Kraai  <kraai@alumni.cmu.edu>
9210
9211         * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
9212         * objc/config-lang.in (stagestuff): ... to here.
9213
9214 2003-08-19  Mark Mitchell  <mark@codesourcery.com>
9215
9216         PR c++/11946
9217         * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
9218         NOP_EXPR) when necessary.
9219         * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
9220         types with precisions other than those given by native machine
9221         modes.
9222
9223 2003-08-19  Geoffrey Keating  <geoffk@apple.com>
9224
9225         * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
9226         because some macro is defined.
9227
9228         * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
9229         options.
9230         * config/i386/darwin.h (ASM_SPEC): New.
9231         (SUBTARGET_EXTRA_SPECS): New.
9232         * config/rs6000/darwin.h (ASM_SPEC): New.
9233         (SUBTARGET_EXTRA_SPECS): New.
9234         * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
9235         a cross-compiler between two different processors on Darwin.
9236         * configure: Regenerate.
9237
9238 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
9239
9240         * builtins.c: Fix comment typos.
9241         * c-common.c: Likewise.
9242         * c-decl.c: Likewise.
9243         * c-pretty-print.c: Likewise.
9244         * cfgbuild.c: Likewise.
9245         * cfglayout.c: Likewise.
9246         * cfgloopanal.c: Likewise.
9247         * cgraphunit.c: Likewise.
9248         * cppfiles.c: Likewise.
9249         * dwarfout.c: Likewise.
9250         * expr.c: Likewise.
9251         * fold-const.c: Likewise.
9252         * gcse.c: Likewise.
9253         * ggc-page.c: Likewise.
9254         * haifa-sched.c: Likewise.
9255         * pretty-print.c: Likewise.
9256         * tree.c: Likewise.
9257         * tree.h: Likewise.
9258         * value-prof.c: Likewise.
9259
9260 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
9261
9262         * c-decl.c: Follow spelling conventions.
9263         * cppfiles.c: Likewise.
9264
9265 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
9266
9267         * c-common.c: Fix comment formatting.
9268         * c-common.h: Likewise.
9269         * c-decl.c: Likewise.
9270         * cppinit.c: Likewise.
9271         * cpplib.h: Likewise.
9272         * emit-rtl.c: Likewise.
9273         * input.h: Likewise.
9274         * line-map.h: Likewise.
9275         * opts.c: Likewise.
9276         * opts.h: Likewise.
9277         * simplify-rtx.c: Likewise.
9278
9279 2003-08-19  Daniel Jacobowitz  <drow@mvista.com>
9280
9281         * unwind-c.c: Add libgcc-style exception.
9282         * unwind-dw2.c: Likewise.
9283         * unwind-pe.h: Likewise.
9284         * unwind-sjlj.c: Likewise.
9285         * unwind.inc: Likewise.
9286
9287 2003-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
9288
9289         PR c/5582 PR c++/10538
9290         * langhooks-def.h (lhd_decl_uninit): Declare.
9291         (LANG_HOOKS_DECL_UNINIT): New macro.
9292         (LANG_HOOKS_INITIALIZER): Adjust.
9293         * langhooks.h (struct lang_hooks): Add new field
9294         decl_uninit.
9295         * langhooks.c (lhd_decl_uninit): Define.
9296         * c-common.c (c_decl_uninit_1): New function.
9297         (c_decl_uninit): New function.
9298         (warn_init_self): Define.
9299         * c-common.h (c_decl_uninit): Declare.
9300         (warn_init_self): Declare.
9301         * c.opt: Introduce -Winit-self.
9302         * c-opts.c (c_common_handle_options): Set warn_init_self.
9303         * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
9304         * objc/objc-lang.c  (LANG_HOOKS_DECL_UNINIT): Define.
9305         * function.c (uninitialized_vars_warning): Call the language hook.
9306         * doc/invoke.texi: Document -Winit-self.
9307
9308 2003-08-19  Chris Demetriou  <cgd@broadcom.com>
9309
9310         * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
9311         to use better predicates and constraints.  Define new
9312         instruction to handle "trap_if" with DI-mode arguments.
9313         (conditional_trap): FAIL if trap code is not 0.
9314
9315 2003-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
9316
9317         * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
9318         strstr with $pb to a strcompare with "<pic base>"
9319         (ix86_output_addr_diff_elt): Output the real pic base.
9320
9321 2003-08-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9322
9323         * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
9324         (LANG_HOOKS_INITIALIZER): Correct.
9325         * c-lang.c: Likewise.
9326
9327 2003-08-19  Jan Hubicka  <jh@suse.cz>
9328
9329         * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
9330         (cgraph_varpool_mark_needed_node): Likewise.
9331         * cgraph.h (notice_global_symbol): Declare
9332         * varasm.c (notice_global_symbol): Break out from ...
9333         (assemble_start_function): ... here; update for variables.
9334         (assemble_variable): Use notice_global_symbol.
9335
9336 2003-08-19  Richard Sandiford  <rsandifo@redhat.com>
9337
9338         * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
9339         expect SFmode and DFmode arguments to be passed in FPRs,
9340         regardless of the underlying type.
9341
9342 2003-08-19  Richard Sandiford  <rsandifo@redhat.com>
9343
9344         PR target/11924
9345         * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
9346         (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
9347
9348 2003-08-18  Matt Kraai  <kraai@alumni.cmu.edu>
9349
9350         PR c/11207
9351         * c-typeck.c (set_init_index): Check for negative index.
9352
9353 2003-08-18  Bob Wilson  <bob.wilson@acm.org>
9354
9355         * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
9356         call0 ABI.
9357         * config/xtensa/crtn.asm (_init, _fini): Likewise.
9358         * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
9359         __umodsi3, __modsi3): Likewise.
9360         * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
9361         $(INCLUDES).
9362
9363 2003-08-18  Aldy Hernandez  <aldyh@redhat.com>
9364
9365         * config/rs6000/spe.md ("*nabssf2_gpr"): New.
9366
9367 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
9368
9369         * config/mips/mips.md: Quote C code in braces.  Remove use of
9370         fake const0_rtx operands.  Remove double backslashes.  Use \;.
9371         Remove workarounds for bogus warnings.
9372
9373 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
9374
9375         * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
9376         (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
9377         rather than TARGET_MIPS4300.
9378         (mulsf3_internal, mulsf3_r4300): Likewise.
9379
9380 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
9381
9382         * config/mips/mips.md: Renumber unspecs.  Clean up comments.
9383
9384 2003-08-17  Roger Sayle  <roger@eyesopen.com>
9385
9386         * simplify-rtx.c (associative_constant_p): New function to test
9387         whether an RTX expression is an immediate constant.
9388         (simplify_associative_operation): New function to perform some
9389         reassociation optimizations of associative binary expressions.
9390         (simplify_binary_operation): Use simplify_associative_operation
9391         to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
9392         Floating point expressions are only reassociated when unsafe
9393         math optimizations are permitted.
9394
9395 2003-08-17  Andreas Jaeger  <aj@suse.de>
9396
9397         * config/alpha/alpha.md: Remove usage of PARAMS.
9398
9399         * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
9400         * config/i386/i386-interix.h: Likewise.
9401         * config/i386/winnt.c: Likewise.
9402         * config/i386/cygming.h: Likewise.
9403         * config/i386/cygwin2.c: Likewise.
9404         * config/darwin.c: Likewise.
9405         * config/darwin-c.c: Likewise.
9406         * config/darwin-protos.h: Likewise.
9407         * config/darwin.h: Likewise.
9408         * config/s390/s390-protos.h: Likewise.
9409         * config/s390/s390.c: Likewise.
9410         * config/ia64/ia64.c: Likewse
9411         * config/ia64/ia64-protos.h: Likewise.
9412         * config/ia64/ia64-c.c: Likewise.
9413
9414 2003-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9415
9416         * config/sparc/sparc.c: Convert to ISO C.
9417
9418         * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
9419         * config/sparc/sparc.c: Likewise.
9420
9421 2003-08-16  Nathan Sidwell  <nathan@codesourcery.com>
9422
9423         PR c++/11512
9424         * stmt.c (expand_expr_stmt_value): Don't warn about any void
9425         typed expression.
9426
9427 2003-08-16  Jan Hubicka  <jh@suse.cz>
9428
9429         * i386.c (ix86_fntype_regparm): Rename from ...
9430         (ix86_function_regparm): ... this one; add fastcall and local
9431         functions.
9432         (ix86_function_ok_for_sibcall): Update.
9433         (ix86_return_pops_args): Likewise.
9434         (init_cumulative_args): Likewise.
9435         (x86_can_output_mi_thunk): Likewise.
9436         (function_arg): Fix formating.
9437         (x86_this_parameter): Fix fastcall.
9438         (x86_output_mi_thunk): Likewise.
9439
9440         * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
9441         body as reachable; mark nested functions as needed too.
9442         (dump_cgraph): Do not output global.calls.
9443         * cgraph.h (cgraph_global_info): Kill.
9444         * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
9445         (record_call_1): Speedup.
9446         (cgraph_analyze_function): Break out from ...; compute inlining
9447         parameters.
9448         (cgraph_finalize_compilation_unit): ... here.
9449         (cgraph_mark_inline): Kill computation of calls.
9450         (cgraph_decide_inlining): Do not compute most of initial values.
9451
9452 2003-08-14  Roger Sayle  <roger@eyesopen.com>
9453
9454         * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
9455         to negate if either operand is easy to negate, if we don't care
9456         about sign-dependent rounding.
9457         (negate_expr): Make the logic to negate a REAL_CST explicit.
9458         Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
9459         that's easy to negate, if we don't honor sign-dependent rounding.
9460         (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
9461         negate, and the symmetric A * -B as -A * B if A is easy to negate.
9462         (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
9463         -C/D if B and C are cheap to negate.  Add an explicit rule to
9464         optimize X/-1.0 as -X when we don't care about signaling NaNs.
9465
9466 2003-08-14  Zack Weinberg  <zack@codesourcery.com>
9467
9468         * Makefile.in (tm_file): Rename tm_include_list.
9469         (tm_p_file): Rename tm_p_include_list.
9470         (build_xm_file): Rename build_xm_include_list.
9471         (host_xm_file): Rename host_xm_include_list.
9472         (xm_file): Rename xm_include_list.
9473         (xm_file_list): Add to be substituted.
9474         (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
9475         Update to match.
9476         (bt-load.o): Add missing dependency on $(TM_H).
9477         * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
9478         For each of tm_file, tm_p_file, xm_file, host_xm_file, and
9479         build_xm_file, generate both *_file_list and *_include_list
9480         values from it.  (xm_file_list was formerly not being generated.)
9481         In *_include_list, prefix the names of all headers found in
9482         $(srcdir)/config with config/.  In each loop, consider only
9483         the special case files that can actually appear in that list.
9484         AC_SUBST all *_file_list and all *_include_list variables; do
9485         not AC_SUBST the plain *_file variables.
9486         * configure: Regenerate.
9487
9488 2003-08-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9489
9490         * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
9491
9492 2003-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9493
9494         * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
9495         direct calls.
9496         (attr_length_call): Include it here.  Improve length estimate for
9497         local calls.
9498         (output_call): Use targetm.binds_local_p.
9499
9500 2003-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9501
9502         * builtins.c (CASE_MATHFN): New helper macro.
9503         (mathfn_built_in): Simplify and sort.
9504
9505         * protoize.c (substr): Delete, callers changed to `strstr'.
9506
9507 2003-08-13  Zack Weinberg  <zack@codesourcery.com>
9508
9509         * config.gcc (iq2000*-*-elf*): Don't set xm_file.
9510         * config/iq2000/xm-iq2000.h: Delete file.
9511
9512 2003-08-13  Geoffrey Keating  <geoffk@apple.com>
9513
9514         * gengtype.c (walk_type): Process a subobject before processing
9515         the pointer that points to the subobject.
9516
9517 2003-08-13  Per Bothner  <pbothner@apple.com>
9518
9519         * regclass.c (init_reg_modes):  Make non-static.
9520         Rename to init_reg_modes_once per new naming convention.
9521         (init_regs):  Don't call init_reg_modes here.
9522         * emit-rtl.c (init_emit_once):  Call init_reg_modes_once here instead.
9523         * rtl.h (init_reg_modes_once):  New declaration.
9524         * toplev.c (backend_init):  Call init_regs after init_emit_once.
9525
9526 2003-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
9527
9528         * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
9529         special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
9530
9531 2003-08-13  J"orn Rennecke <joern.rennecke@superh.com>
9532
9533         * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
9534         * sh.md (load_ra): Change insn predicate to TARGET_SH1.
9535
9536 2003-08-13  Dale Johannesen  <dalej@apple.com>
9537
9538         * config/rs6000/rs6000.md (ctrsi, ctrdi):  Reenable
9539         handling of decrement-and-branch farther than 32 bits.
9540
9541 2003-08-12  Kelley Cook  <kelleycook@wideopenwest.com>
9542
9543         * configure.in (make_compare_target): Move test to ...
9544         * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
9545         * configure: Regenerate.
9546
9547 2003-08-12  Richard Sandiford  <rsandifo@redhat.com>
9548
9549         * config/mips/iris6.h: Convert to C90 prototypes.
9550         * config/mips/irix6-libc-compat.c: Likewise.
9551         * config/mips/mips-protos.h: Likewise.
9552         * config/mips/mips.c: Likewise.
9553
9554 2003-08-12  Nathanael Nerode  <neroden@gcc.gnu.org>
9555
9556         fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel.  Enable
9557         for selected machines.  Comment heavily.
9558         fixinc/fixincl.x: Rebuild.
9559         fixinc/tests/base/fs/rfs/rf_cache.h: New file.
9560
9561 2003-08-12  Richard Sandiford  <rsandifo@redhat.com>
9562
9563         * config/mips/mips.h: Tweak various comments.
9564         * config/mips/mips.c: Likewise.
9565
9566 2003-08-11  James E Wilson  <wilson@tuliptree.org>
9567
9568         PR optimization/11319
9569         PR target/10021
9570         * alias.c (find_base_value, case REG): Return 0 not src if no base
9571         found.
9572
9573 2003-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9574
9575         * gcse.c (gmalloc): Fix last change.
9576
9577 2003-08-11  Roger Sayle  <roger@eyesopen.com>
9578
9579         * simplify-rtx.c (simplify_binary_operation): Replace calls to
9580         gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
9581         and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
9582         gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
9583
9584 2003-08-11  Roger Sayle  <roger@eyesopen.com>
9585
9586         * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
9587         * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
9588         typecode for an ABS_EXPR.
9589
9590         * doc/c-tree.texi: Document ABS_EXPR.
9591
9592 2003-08-11  Roger Sayle  <roger@eyesopen.com>
9593
9594         * fold-const.c (fold): Optimize any associative floating point
9595         operator with -funsafe-math-optimizations, not just MULT_EXPR.
9596
9597 2003-08-11  Kaz Kojima  <kkojima@gcc.gnu.org>
9598
9599         * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
9600         information in SHmedia case too.
9601         (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
9602         Likewise.
9603         (__set_fpscr): Use an access via GOT for PIC case.
9604
9605 2003-08-11  Kelley Cook  <kelleycook@wideopenwest.com>
9606
9607         * configure.in (intermodule): Make switch test more portable.
9608         * configure: Regenerate.
9609
9610 2003-08-11  Kelley Cook  <kelleycook@wideopenwest.com>
9611
9612         * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
9613         (restrap): Likewise.
9614
9615 2003-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9616
9617         * gcse.c (gmalloc): Argument is a size_t.  Add ATTRIBUTE_MALLOC.
9618         (grealloc): Size argument is a size_t.
9619         (gcalloc): New function.  Use throughout in lieu of
9620         gmalloc/memset.
9621
9622         * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
9623         xmalloc/memset.
9624         * config/ia64/ia64.c (ia64_reorg): Likewise.
9625         * conflict.c (conflict_graph_new): Likewise.
9626         * fixinc/fixincl.c (run_compiles): Likewise.
9627         * genattrtab.c (optimize_attrs): Likewise.
9628         * genrecog.c (new_decision): Likewise.
9629         * haifa-sched.c (schedule_block): Likewise.
9630         * hashtable.c (ht_create): Likewise.
9631
9632 2003-08-11  Bob Wilson  <bob.wilson@acm.org>
9633
9634         * config/xtensa/lib2funcs.S: Fix whitespace.
9635         * config/xtensa/xtensa.md (all insns and expanders): Use brace block
9636         syntax where appropriate.  Remove unnecessary backslash escapes.
9637         Reformat comments and fix some code formatting.
9638         (extendqisi2): Rearrange conditional.
9639         (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
9640         *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
9641         of fatal_insn.
9642
9643 2003-08-11  Richard Sandiford  <rsandifo@redhat.com>
9644
9645         * config/mips/mips.c: Various formatting fixes.
9646         (override_options): Resync -mtune handling with gas.
9647         (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
9648         * config/mips/mips.h: More formatting fixes.
9649         (mips_abi): Move declaration.
9650         * config/mips/mips.md (exception_receiver): Add mode to
9651         unspec_volatile.
9652
9653 2003-08-11  Aldy Hernandez  <aldyh@redhat.com>
9654
9655         * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
9656         evsplatfi here.
9657         (bdesc_1arg): Remove evsplati and evsplatfi.
9658
9659 2003-08-11  J"orn Rennecke <joern.rennecke@superh.com>
9660
9661         * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
9662         into account.
9663
9664 2003-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9665
9666         * builtins.c (expand_builtin_strcat): Optimize constant strings.
9667
9668 2003-08-10  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9669
9670         * pretty-print.c (pp_base_indent): Rename from pp_indent.
9671         * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
9672         (struct c_pretty_print_info): Add more fields.
9673         (pp_c_left_paren): Move to c-pretty-print.c.
9674         (pp_c_right_paren): Likewise.
9675         (pp_c_left_brace): Likewise.
9676         (pp_c_right_brace): Likewise.
9677         (pp_c_left_bracket): Likewise.
9678         (pp_c_right_bracket): Likewise.
9679         (pp_c_declarator): Declare.
9680         (pp_c_direct_declarator): Likewise.
9681         (pp_c_specifier_qualifier_list): Likewise.
9682         (pp_c_type_id): Likewise.
9683         * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
9684         (pp_c_type_qualifier_list): New.
9685         (pp_c_pointer): Likewise.
9686         (pp_c_parameter_type_list): Likewise.
9687         (pp_c_function_definition): Likewise.
9688         (pp_c_id_expression): Likewise.
9689         (pp_c_simple_type_specifier): Tidy.
9690         (pp_c_unary_expression): Likewise.
9691         (pp_c_expression): Likewise.
9692         (pp_c_pretty_printer_init): Likewise.
9693         (pp_c_specifier_qualifier_list): Rework..
9694         (pp_c_abstract_declarator): Likewise.
9695         (pp_c_postfix_expression): Likewise.
9696         (pp_c_primary_expression): Likewise.
9697         (pp_c_cast_expression): Likewise.
9698         (pp_c_direct_abstract_declarator): Likewise.
9699         (pp_c_storage_class_specifier): Likewise.
9700         (pp_c_function_specifier): Likewise.
9701         (pp_c_declaration_specifiers): Likewise.
9702         (pp_c_direct_declarator): Likewise.
9703         (pp_c_declarator): Likewise.
9704         (pp_c_declaration): Likewise.
9705         (pp_c_statement): Likewise.
9706         (pp_c_integer_constant): Rename from pp_c_integer_literal.
9707         (pp_c_character_constant): Rename from pp_c_character_literal.
9708         (pp_c_bool_constant): Rename from pp_c_bool_literal.
9709         (pp_c_enumeration_constant): Rename from pp_c_enumerator.
9710         (pp_c_floating_constant): Rename from pp_c_real_literal.
9711         (pp_c_constant): Rename from pp_c_literal.
9712         * c-lang.c: Include diagnostic.h and c-pretty-print.h
9713         (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
9714         (c_initialize_diagnostics): New.
9715         * Makefile.in (c-lang.o): Update dependency.
9716
9717 2003-08-10  Nathan Sidwell  <nathan@codesourcery.com>
9718
9719         * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
9720
9721 2003-08-10  Richard Sandiford  <rsandifo@redhat.com>
9722
9723         * config/mips/mips.c (mips_no_mips16_string): Remove.
9724         (override_options): Don't handle -mips16 as part of -mipsN.
9725         * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
9726         (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
9727         (TARGET_OPTIONS): Remove -mno-mips16.
9728
9729 2003-08-10  Richard Sandiford  <rsandifo@redhat.com>
9730
9731         * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
9732         (coprocessor2_operand): Likewise.
9733         * config/mips/mips.c (STAB_CODE_TYPE): Remove.
9734         (lookup_name): Remove declaration.
9735         (abort_with_insn): Remove.  Replace all uses with fatal_insn.
9736         (mips16, mips_abicalls): Remove.
9737         (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
9738         (arith32_operand, large_int, true_reg_or_0_operand): Remove.
9739         (coprocessor_operand, coprocessor2_operand): Remove.
9740         (override_options): Don't set mips16 or mips_abicalls.
9741         (print_operand): Don't expect SIGN_EXTEND operands.
9742         (mips_secondary_reload_class): Likewise.
9743         (mips_output_conditional_branch): Remove disabled long-branch code.
9744         * config/mips/mips.h (call_used_regs): Remove declaration.
9745         (may_call_alloca): Likewise.
9746         (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
9747         (mips_abicalls, mips16): Remove declarations.
9748         (ASM_FINAL_SPEC, LIB_SPEC): Remove.
9749         (CC1_SPEC): Remove outdated comment.
9750         (MIPS_VERSION, MACHINE_TYPE): Remove.
9751         (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9752         (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
9753         (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
9754         (PUSH_ROUNDING): Likewise.
9755         (ASSEMBLER_SCRATCH_REGNUM): Remove.
9756         * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
9757         and mips16 with TARGET_MIPS16.
9758
9759 2003-08-09  Per Bothner  <pbothner@apple.com>
9760
9761         * cppinit.c (cpp_read_main_file):  Split out source-independent
9762         initialization to separate function ...
9763         (cpp_post_options):  New function.
9764         * cppfiles.c (cpp_stack_file):  Rename public name to ...
9765         (_cpp_stack_file):  New internal function name.
9766         * cpplib.h:  Update accordingly.
9767         * cppinit.c:  (cpp_create_reader):  Initialize cpp_readers line here.
9768         (cpp_read_main_file):  Don't initialize line here.
9769         * c-opts.c (c_common_post_options):  Call cpp_post_options.
9770         (c_common_parse_file):  Call cpp_read_main_file, not cpp_stack_file.
9771         * fix-header.c (read_scan_file):  Call cpp_post_options.
9772
9773 2003-08-09  Per Bothner  <per@bothner.com>
9774
9775         * c-decl.c (SCOPE_LIST_APPEND):  Remove bogus line continuation.
9776
9777 2003-08-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9778
9779         * pa.c (pa_asm_output_mi_thunk): Fix typo.
9780
9781 2003-08-09  Neil Booth  <neil@daikokuya.co.uk>
9782
9783         PR preprocessor/11839
9784         * cppfiles.c (open_file): Handle ENOTDIR.
9785
9786 2003-08-09  Richard Sandiford  <rsandifo@redhat.com>
9787
9788         PR target/11699
9789         * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
9790
9791 2003-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9792
9793         * pa.md (extzv, extv, insv): Fix operand limit checks.  Fail if
9794         source/destination is not a register operand.
9795
9796 2003-08-08  Richard Henderson  <rth@redhat.com>
9797
9798         PR target/11535
9799         * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
9800         RETURN_ADDRESS_POINTER_REGNUM.
9801         (ia64_expand_prologue): Don't frob it.
9802         (ia64_output_function_epilogue): Likewise.
9803         (ia64_return_addr_rtx): New.
9804         (ia64_split_return_addr_rtx): New.
9805         * config/ia64/ia64-protos.h: Update.
9806         * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
9807         (RETURN_ADDRESS_POINTER_REGNUM): Remove.
9808         (GENERAL_REGNO_P): Don't check it.
9809         (AR_*_REGNUM): Renumber.
9810         (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
9811         (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
9812         (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
9813         (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
9814         (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
9815         * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
9816         (movdi_ret_addr): New.
9817
9818 2003-08-08  Geoffrey Keating  <geoffk@apple.com>
9819
9820         * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
9821
9822 2003-08-08  Roger Sayle  <roger@eyesopen.com>
9823
9824         * tree.h (get_identifier) Define a macro form of get_identifier
9825         that calls get_identifier_with_length when the string is constant.
9826         (get_identifier_with_length): Change type of second argument to
9827         size_t in prototype.
9828         * stringpool.c (get_identifier): Undefine the macro before giving
9829         the function definition.
9830         (get_identifier_with_length): Change  type of second argument to
9831         size_t in function definition.
9832         * hashtable.c (calc_hash): Change type of second argument to size_t.
9833         (ht_lookup): Change type of third argument to size_t.  Reorganize
9834         to speed-up the cases where the hash table slot is empty, or the
9835         first probe matches (i.e. there isn't a collision).
9836         * hashtable.h (ht_lookup): Adjust function prototype.
9837
9838 2003-08-08  Bernardo Innocenti  <bernie@develer.com>
9839
9840         PR target/9697
9841         PR target/11777
9842         * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
9843
9844 2003-08-08  Neil Booth  <neil@daikokuya.co.uk>
9845
9846         * common.opt: Add debug switches.
9847         * flags.h (use_gnu_debug_info_extensions): Boolify.
9848         * opts.c (write_symbols, debug_info_level,
9849         use_gnu_debug_info_extensions): Move from toplev.c.
9850         (set_debug_level): New.
9851         (common_handle_options): Handle debug switches.
9852         (print_help): Display target options directly.
9853         * toplev.c (debug_hooks): Don't initialize.
9854         (write_symbols, debug_info_level,
9855         use_gnu_debug_info_extensions): Move to opts.c.
9856         (debug_args, display_help, decode_g_option): Remove.
9857         (process_options): Set no debug if level zero here,
9858         and no-debug-hooks.  Error here if impossible debug format selected.
9859         * toplev.h (display_help, decode_g_option): Remove.
9860
9861 2003-08-08  Richard Sandiford  <rsandifo@redhat.com>
9862
9863         * tree.c (get_file_function_name_long): Fix size of alloca() area.
9864
9865 2003-08-08  Kelley Cook  <kelleycook@wideopenwest.com>
9866
9867         * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
9868         and gcc_cv_prog_cmp_skip.
9869         * configure: Regenerate.
9870
9871 2003-08-08  Stan Cox  <scox@redhat.com>
9872
9873         * config/iq2000: New port.
9874         * config.gcc (iq2000-*-elf): Added.
9875         * doc/install.texi (Specific):  Add iq2000 description.
9876
9877 2003-08-08  Andreas Schwab  <schwab@suse.de>
9878
9879         * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
9880         and insert missing empty argument.
9881         * configure: Regenerate.
9882
9883 2003-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9884
9885         * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
9886         (attr_length_millicode_call): Likewise.
9887         (attr_length_call): Likewise.  Revise some maximum insn lengths.
9888         (attr_length_indirect_call): Likewise.
9889         (output_call): Fix thinko that added extra nop.
9890         * pa.h (IN_NAMED_SECTION_P): Define.
9891
9892         PR c++/11712
9893         * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
9894         __STDC_EXT__ when using C++ dialect.
9895
9896 2003-08-07  J"orn Rennecke <joern.rennecke@superh.com>
9897
9898         * sh.c (calc_live_regs): If the return address pointer is live,
9899         force pr live.
9900         (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
9901         for saves / restores.
9902         (sh_expand_epilogue): If sh_media_register_for_return returns a
9903         register number, flag the instructions that restores PR_MEDIA_REG
9904         as possibly dead.
9905         Remove dead update of offset.
9906         (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
9907         we can use the result of get_hard_reg_initial_val.
9908         * sh.md (UNSPEC_RA): New constant.
9909         (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
9910         (load_ra).  Handle UNSPEC_RA.
9911         (sibcall_media): Use PR_MEDIA_REG.
9912
9913         * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
9914         * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
9915         needs saving on SHmedia.
9916
9917 2003-08-07  Ulrich Weigand  <uweigand@de.ibm.com>
9918
9919         * config/s390/s390.md: Replace all occurrences of \\t with \t.
9920
9921 2003-08-07  Richard Sandiford  <rsandifo@redhat.com>
9922
9923         * local-alloc.c (combine_regs): Fix comment typo.
9924
9925 2003-08-06  Zack Weinberg  <zack@codesourcery.com>
9926
9927         * c-decl.c (builtin_decls): Replace with first_builtin_decl
9928         and last_builtin_decl.
9929         (c_init_decl_processing): Initialize both.
9930         (c_reset_state): Iterate from first_builtin_decl to
9931         last_builtin_decl inclusive to reintroduce builtins.
9932
9933 2003-08-06  David Mosberger  <davidm@hpl.hp.com>
9934
9935         * doc/extend.texi (Function Attributes): Document the IA-64 version
9936         of the "model" attribute.
9937
9938         * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
9939         (SYMBOL_REF_SMALL_ADDR_P): Ditto.
9940         (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
9941
9942         * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
9943         (ia64_encode_section_info): Likewise.
9944         (ia64_attribute_table): Add "model" attribute.
9945         (TARGET_ENCODE_SECTION_INFO): Define.
9946         (small_addr_symbolic_operand): New function.
9947         (got_symbolic_operand): Return 0 for a symbolref to an object
9948         in the small address area.
9949         (enum ia64_addr_area): New type.
9950         (small_ident1): New variable.
9951         (small_ident2): Likewise.
9952         (init_idents): New function.
9953         (ia64_get_addr_area): Likewise.
9954         (ia64_encode_addr_area): Likewise.
9955         (ia64_encode_section_info): Likewise.
9956         (ia64_expand_load_address): For symbolic references to objects in
9957         the small-address-area, load the address via gen_rtx_SET() (which,
9958         eventually, will expand into "addl").
9959
9960 2003-08-06  Per Bothner  <pbothner@apple.com>
9961
9962         * line-map.h (fileline):  New typedef.
9963         (struct line_map, linemap_add, linemap_lookup):  Use it.
9964         * input.h (struct location_s):  Comment notes that long-term we want
9965         to replace it by fileline.
9966
9967 2003-08-06  J"orn Rennecke <joern.rennecke@superh.com>
9968
9969         Fix SHcompact exception handling:
9970         * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
9971         by the prologue, return a MEM with return_address_pointer_rtx
9972         as address.
9973         * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
9974         (RETURN_ADDR_OFFSET): Don't define.
9975         (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
9976         registers that are visible in compact mode.  Show that SHmedia
9977         registers still exist in compact mode, even if there are not
9978         readily accessible.
9979         (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
9980         if GLOBAL.  Use DW_EH_PE_textrel (nominally) for CODE,
9981         and DW_EH_PE_pcrel for pic data.
9982         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
9983         set SYMBOL_FLAG_FUNCTION in symbol, and actually use
9984         DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
9985         (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
9986         * sh.md (movsi_media-1): New splitter.
9987
9988 2003-08-06  Graeme Peterson <gp@qnx.com>
9989
9990         * config/i386/nto.h: New.
9991         * config/i386/t-nto: New.
9992         * config.gcc (i[34567]86-*-nto-qnx*): New.
9993
9994 2003-08-06  Phil Edwards  <pme@gcc.gnu.org>
9995
9996         * doc/install.texi (*-*-solaris2*):  Refine configure instructions.
9997
9998 2003-08-06  Alan Modra  <amodra@bigpond.net.au>
9999
10000         * calls.c (load_register_parameters): Arrange for call_fusage to
10001         report the whole register as used when shifting to the msb.
10002
10003 2003-08-05  Roger Sayle  <roger@eyesopen.com>
10004
10005         * builtins.c (expand_builtin): When not optimizing, call the library
10006         function for all builtins that have library functions (except alloca).
10007
10008 2003-08-05  Alexandre Oliva  <aoliva@redhat.com>
10009
10010         * c.opt: Introduce -fworking-directory.
10011         * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
10012         * c-common.h (flag_working_directory): Declare.
10013         * c-common.c (flag_working_directory): Define.
10014         * c-opts.c (c_common_handle_options): Set it.
10015         (sanitize_cpp_opts): Set...
10016         * cpplib.h (struct cpp_options): ... working_directory option.
10017         (struct cpp_callbacks): Add dir_change.
10018         * cppinit.c (read_original_filename): Call...
10019         (read_original_directory): New.  Look for # 1 "directory//"
10020         and process it.
10021         (cpp_read_main_file): Call dir_change callback if working_directory
10022         option is set.
10023         * gcc.c (cpp_unique_options): Pass -g*.
10024         * c-lex.c (cb_dir_change): New.
10025         (init_c_lex): Set dir_change callback.
10026         * toplev.c (src_pwd): New static variable.
10027         (set_src_pwd, get_src_pwd): New functions.
10028         * toplev.h (get_src_pwd, set_src_pwd): Declare.
10029         * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
10030         * dwarf2out.c (gen_compile_unit_die): Likewise.
10031         * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
10032
10033 2003-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10034
10035         * pretty-print.h (pp_set_line_maximum_length): Make macro.
10036         (pp_set_prefix): Likewise.
10037         (pp_destroy_prefix): Likewise.
10038         (pp_remaining_character_count_for_line): Likewise.
10039         (pp_clear_output_area): Likewise.
10040         (pp_formatted_text): Likewise.
10041         (pp_last_position_in_text): Likewise.
10042         (pp_emit_prefix): Likewise.
10043         (pp_append_text): Likewise.
10044         (pp_flush): Likewise.
10045         (pp_format_text): Likewise.
10046         (pp_format_verbatim): Likewise.
10047         (pp_tree_identifier): Tidy.
10048         * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
10049         (pp_base_format_verbatim): Rename from pp_format_verbatim.
10050         (pp_base_flush): Rename from pp_flush.
10051         (pp_base_set_line_maximum_length): Rename from
10052         pp_set_line_maximum_length.
10053         (pp_base_clear_output_area): Rename from pp_clear_output_area.
10054         (pp_base_set_prefix): Rename from pp_set_prefix.
10055         (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
10056         (pp_base_emit_prefix): Rename from pp_emit_prefix.
10057         (pp_base_append_text): Rename from pp_append_text.
10058         (pp_base_formatted_text): Rename from pp_formatted_text.
10059         (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
10060         (pp_base_remaining_character_count_for_line): Rename from
10061         pp_remaining_character_count_for_line.
10062         * diagnostic.h (diagnostic_format_decoder): Tidy.
10063         (diagnostic_flush_buffer): Likewise.
10064         * c-pretty-print.h: (pp_c_string_literal): Declare.
10065         (pp_c_real_literal): Likewise.
10066         (pp_c_integer_literal): Likewise.
10067         * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
10068         pp_identifier.
10069         (pp_c_character_literal): Tidy.
10070         (pp_c_string_literal): Make public.
10071         (pp_c_bool_literal): Likewise.
10072         (pp_c_integer_literal): Likewise.
10073         (pp_c_real_literal): Likewise.
10074
10075         * Makefile.in (C_PRETTY_PRINT_H): New variable.
10076         (c-pretty-print.o): Update dependence.
10077
10078 2003-08-05  Chris Demetriou  <cgd@broadcom.com>
10079
10080         * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
10081         ".set nomacro" state.
10082         (fix_truncsfsi2_macro): Likewise.
10083
10084 2003-08-05  Steven Bosscher  <steven@gcc.gnu.org>
10085
10086         * tree.h (DID_INLINE_FUNC): Remove macro.
10087         (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
10088         add tree check for FUNCTION_DECL.
10089         (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
10090         (struct tree_decl): Rename inlined_function_flag to
10091         declared_inline_flag.
10092         * c-common.h (c_lang_decl): Remove.
10093         (DECL_ESTIMATED_INSNS): Remove.
10094         * c-tree.h (struct lang_decl): Don't include c_lang_decl.
10095         (DECL_DECLARED_INLINE_P): Remove.
10096         * c-decl.c (grokdeclarator): Update comment.  With -finline-functions,
10097         do not reset DECL_DECLARED_INLINE_P.  Don't use DID_INLINE_FUNC.
10098         (finish_function): Make uninlinable a bool.  Fixup call to
10099         tree_inlinable_function_p() and fix some code style issues.
10100         * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
10101         * cgraph.c (dump_cgraph): Likewise.
10102         * cgraphunit.c (cgraph_decide_inlining): Likewise
10103         (cgraph_finalize_compilation_unit): Likewise.
10104         Also update call to tree_inlinable_function_p().
10105         (cgraph_default_inline_p): Don't use DID_INLINE_FUNC.  Instead
10106         look at DECL_DECLARED_INLINE and reverse logic.
10107         * print-tree.c (print_node): Likewise.
10108         * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
10109         * tree-inline.h (tree_inlinable_function_p): Make a bool.  Update
10110         prototype.
10111         * tree-inline.c (inlinable_function_p): Split up in this function to
10112         check for basic inlining inhibiting conditions, and new
10113         limits_allow_inlining() function.  Warn if inlining is impossible
10114         because the inline candidate calls alloca or uses sjlj exceptions.
10115         (limits_allow_inlining): this new function to check if the inlining
10116         limits are satisfied.  Throttle from currfn_max_inline_insns, not from
10117         MAX_INLINE_INSNS_SINGLE.  The latter only makes sense if
10118         MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
10119         Update prototypes.
10120         (tree_inlinable_function_p): Make a bool.  Update call to
10121         inlinable_function_p
10122         (expand_call_inline): Use limits_allow_inlining() when not in
10123         unit-at-a-time mode to decide on inlining.  Don't use DID_INLINE_FUNC,
10124         instead see if the function was declared `inline'.
10125
10126 2003-08-05  Josef Zlomek  <zlomekj@suse.cz>
10127
10128         * gcse.c (try_replace_reg): Fix updating of note.
10129
10130 2003-08-04  Roger Sayle  <roger@eyesopen.com>
10131
10132         PR middle-end/11771
10133         * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
10134         logic in negate_expr, i.e. we don't invert (A-B) for floating
10135         point types unless flag_unsafe_math_optimizations.
10136
10137 2003-08-04  Roger Sayle  <roger@eyesopen.com>
10138
10139         * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
10140         Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
10141         for floating point expressions with -ffast-math.
10142         (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
10143         * expmed.c (expand_mult): Wrap long line.  Expand x*2.0 as x+x.
10144
10145 2003-08-04  Roger Sayle  <roger@eyesopen.com>
10146
10147         * c-common.c (flag_noniso_default_format_attributes): Delete.
10148         (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
10149         (c_attrs_initialized): Delete.
10150         (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
10151         always call c_init_attributes.
10152         (c_init_attributes): Don't define/undefine DEF_FN_ATTR.  Don't
10153         set c_attrs_initialized when done.
10154         (c_common_insert_default_attributes): Delete.
10155         * c-common.h (flag_noniso_default_format_attributes): Delete.
10156         (c_coomon_insert_default_attributes): Delete prototype.
10157         * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
10158         flag_noniso_default_format_attributes.
10159
10160         * c-decl.c (c_insert_default_attributes): Delete.
10161         * c-tree.h (c_insert_default_attributes): Delete prototype.
10162
10163         * attribs.c (decl_attributes): Don't call insert_default_attributes
10164         langhook.  Update function description comment.
10165         * langhooks.h (lang_hooks): Remove insert_default_attributes field.
10166         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
10167         * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
10168         * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
10169
10170         * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
10171         define.
10172
10173 2003-08-04  Richard Sandiford  <rsandif@redhat.com>
10174
10175         * config/mips/mips.c (override_options): Disable -G on targets that
10176         have no .section support.
10177         (mips_select_section): Use default_select_section for such targets.
10178
10179 2003-08-04  Nathanael Nerode  <neroden@gcc.gnu.org>
10180
10181         * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
10182         * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
10183         * fixinc/fixincl.x: Rebuild.
10184         * fixinc/tests/base/regexp.h: New test.
10185
10186 2003-08-04  Alexandre Oliva  <aoliva@redhat.com>
10187
10188         * c-ppoutput.c (cb_line_change): Don't skip line changing while
10189         parsing macro arguments in the top-level context.
10190
10191 2003-08-04  Neil Booth  <neil@daikokuya.co.uk>
10192
10193         * config.in: Remove HAVE_LSTAT.
10194         * configure, configure.in: Don't test for lstat.
10195
10196 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10197
10198         * opts.c (decode_options): Do language-specific initialization for
10199         the global diagnostic context.
10200         * langhooks-def.h (lhd_initialize_diagnostics): Declare.
10201         (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
10202         (LANG_HOOKS_INITIALIZER): Adjust.
10203         * langhooks.h (struct lang_hooks): Add new field
10204         initialize_diagnostics.
10205         * langhooks.c (lhd_initialize_diagnostics): Define.
10206
10207 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10208
10209         * pretty-print.h:   Adjust macro definitions.
10210         * pretty-print.c (pp_newline): Rename to pp_base_newline.
10211         (pp_character): Rename to pp_base_character.
10212         (pp_string): Rename to pp_base_string.
10213         * c-pretty-print.c (pp_buffer): Move to pretty-print.h
10214         (pp_newline):  Likewise.  Adjust.
10215         (pp_c_char): Adjust.
10216
10217 2003-08-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10218
10219         * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
10220         BUILT_IN_LLABS): Move to miscellaneous section.
10221
10222 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
10223
10224         PR preprocessor/11534
10225         * cppexp.c (parse_defined): Warn only if -pedantic.
10226
10227 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
10228
10229         * cppfiles.c (stack_file): Use file path.
10230
10231 2003-08-02  Roger Sayle  <roger@eyesopen.com>
10232
10233         * builtin-types.def (BT_SSIZE): New primitive type.
10234         (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
10235         BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
10236         BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
10237         BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
10238         * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
10239         BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
10240         BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
10241         * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
10242         few functions that define default attributes using it.
10243         * c-common.c (c_common_insert_default_attributes): Do nothing.
10244
10245         * doc/extend.texi: Document these "new" builtins.
10246
10247 2003-08-02  Kaz Kojima  <kkojima@gcc.gnu.org>
10248
10249         * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
10250         (LIB_SPEC): Set -lpthread always when -pthread set.  Set -lieee
10251         when -mieee-fp set and -shared not set.
10252         (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
10253
10254 2003-08-02  Neil Booth  <neil@daikokuya.co.uk>
10255
10256         * cppfiles.c (struct _cpp_file): Rename once_only_next to
10257         next_file.  Remove import and pragma_once, add once_only.
10258         (find_file): Add new file structures to the all_files list.
10259         (should_stack_file): Mark #import-ed files once-only, and
10260         don't stack them if the file has already been stacked.
10261         (_cp_mark_file_once_only): Simplify.
10262         * cpphash.h (struct cpp_reader): Rename once_only_files
10263         to all_files.  Rename saw_pragma_once to seen_once_only.
10264         (_cpp_mark_file_once_only): Update prototype.
10265         * cpplib.c (do_pragma_once): Update.
10266
10267 2003-08-02  Neil Booth  <neil@daikokuya.co.uk>
10268
10269         * cppfiles.c (ENOTDIR): Remove.
10270         (open_file_in_dir): Rename find_file_in_dir.  Handle errors
10271         other than ENOENT here.
10272         (once_only_file_p): Rename should_stack_file.
10273         (find_file, open_file_failed, read_file_guts): Report errors
10274         with full path name.
10275         (read_file): Move pch handling to should_stack_file.
10276         (should_stack_file): Handle PCH and once-only issues, and
10277         reading the file.
10278         (stack_file): Don't do file reads.
10279
10280 2003-08-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10281
10282         * libgcov.c (gcov_exit): Cleanup and fix.
10283         * profile.c (compute_value_histograms): Don't try to read profiles
10284         that are not present.
10285
10286 2003-08-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10287
10288         * builtins.def: Categorize.
10289
10290         * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
10291         Mind fp rounding.
10292         (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
10293
10294 2003-08-02  Andreas Tobler  <a.tobler@schweiz.ch>
10295
10296         * config.gcc: Enable posix threads by default on darwin.
10297
10298 2003-08-01  Jakub Jelinek  <jakub@redhat.com>
10299
10300         * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
10301         even if nehedges1 is 0.
10302
10303 2003-08-01  Nathanael Nerode  <neroden@gcc.gnu.org>
10304
10305         * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
10306         fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
10307         fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
10308         and defintions.
10309
10310         * fixinc/inclhack.def (broken_cabs): Make matching more generous.
10311         * fixinc/fixincl.x: Regenerate.
10312         * fixinc/tests/base/math.h: Regenerate to match test_text change.
10313
10314 2003-08-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10315
10316         * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
10317
10318 2003-08-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10319
10320         * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
10321         for accesses to exc_ptr.
10322
10323 2003-08-01  Geoffrey Keating  <geoffk@apple.com>
10324
10325         * doc/sourcebuild.texi (Front End Directory): Don't make references
10326         to libsubdir, it's not part of the interface to frontends.
10327         * doc/install.texi (Configuration): Help users read faster by saying
10328         that GCC's configure options are the standard autoconf ones.
10329         Mention --libdir.  Update the default rules for finding the
10330         assembler.  Don't use libsubdir since we haven't said what it means.
10331         (Specific): In the Solaris 7 notes, update the place to put the
10332         assembler.
10333         * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
10334         * doc/cpp.texi (Search Path): Actually, the search path
10335         depends on libdir, which can relocate with cpp.
10336         * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
10337         now a private interface between the Makefile and the driver.
10338
10339 2003-08-01  Richard Henderson  <rth@redhat.com>
10340
10341         * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
10342
10343         * varasm.c (lookup_constant_def): New function.
10344         * rtl.h (lookup_constant_def): Declare it.
10345         * dwarf2out.c (loc_descriptor_from_tree): Use it.
10346         Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
10347
10348 2003-08-01  Zack Weinberg  <zack@codesourcery.com>
10349
10350         * c-decl.c (gettags, pushdecl_function_level): Delete.
10351         (last_function_parm_vars): Rename last_function_parm_others.
10352         (current_function_parm_vars): Rename current_function_parm_others.
10353         (struct c_scope): Rewrite comment explaining this data structure.
10354         Add names_last, blocks_last, parms_last fields.  Rename
10355         incomplete_list to incomplete.
10356         (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
10357         (poplevel): Ignore second argument.  No need to nreverse
10358         anything.  Restructure such that each list is processed
10359         exactly once.  Use 'const location_t *locus' syntactic sugar
10360         variable where useful.  Issue unused variable warnings
10361         ourselves, do not rely on function.c.
10362         (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
10363         (pushdecl_top_level): Likewise.  Don't call duplicate_decls.
10364         (implicitly_declare): decl cannot be error_mark_node.
10365         (undeclared_variable): Manipulate scope structure directly.
10366         (c_make_fname_decl): Likewise.
10367         (getdecls, c_init_decl_processing): Fix comment.
10368         (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT.  No need
10369         for 'last' variable.
10370         (grokparms): No need to nreverse parms list.
10371         (store_parm_decls_newstyle): Set up the parms_last and
10372         names_last fields of the new scope too.
10373         (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
10374         on parms to begin with; check this under ENABLE_CHECKING.  Set
10375         up parms_last.
10376         (check_for_loop_decls): Refer directly to current_scope->tags.
10377         Use consistent quote style in diagnostics.
10378         (c_write_global_declarations): The names list is not backward.
10379
10380         * c-common.h: Don't prototype gettags.
10381         * c-parse.in: Call poplevel with second argument 0 always.
10382
10383 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10384
10385         * builtins.def: Resort builtins.
10386
10387 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10388
10389         * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
10390         DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
10391         Prepend "__builtin_" onto NAME with string concatenation.  Remove
10392         explicit "__builtin_" from each macro call.
10393
10394         Reformat entire file.
10395
10396 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10397
10398         * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
10399         ATTR_MATHFN_FPROUNDING_ERRNO): New macros.  Use throughout.
10400
10401 2003-08-01  Andreas Krebbel  <krebbel1@de.ibm.com>
10402
10403         * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
10404         CCL1, or CCL2 modes with floating point operations.
10405
10406         * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
10407         "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
10408         "*subdf3_cconly"): New insns.
10409         ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
10410
10411 2003-08-01  Neil Booth  <neil@daikokuya.co.uk>
10412
10413         * Makefile.in: Refine dependencies.
10414         * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
10415         * c.opt: Update help for -Wimport.
10416         * cppfiles.c: Include hashtab.h.  Update comments.
10417         (stack_file): Read the file before updating dependencies.
10418         (once_only_file_p): Be smarter about marking once-only files.
10419         (_cpp_mark_file_once_only): Correct the check for existence on
10420         the list.
10421         (open_file_failed): Use name not path, which is NULL.
10422         * cpphash.h: Don't include hashtab.h.
10423         (struct _cpp_file): Remove.
10424         (struct cpp_reader): Update.
10425         * cppinit.c (cpp_create_reader): Don't initialize warn_import.
10426         * cpplib.h (struct cpp_options): Remove warn_import.
10427         (cpp_simplify_path): Remove.
10428
10429 2003-08-01  Nathan Sidwell  <nathan@codesourcery.com>
10430
10431         PR c++/11295
10432         * doc/extend.texi (Statement Expressions): Document C++ semantics.
10433
10434 2003-07-31  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
10435
10436         * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
10437
10438 2003-07-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10439
10440         * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
10441         throughout.
10442         * builtins.def: Likewise.
10443
10444 2003-07-31  Jason Merrill  <jason@redhat.com>
10445
10446         * Makefile.in (bubblestrap): Don't require a previous full
10447         bootstrap.
10448
10449         * expr.c (mostly_zeros_p): No longer static.
10450         * tree.h: Declare it.
10451         * stmt.c (resolve_asm_operand_names): Don't copy the pattern
10452         unless we need to do substitutions.
10453
10454 2003-07-31  Roger Sayle  <roger@eyesopen.com>
10455
10456         * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
10457         pow(x,c)*x as pow(x,c+1) for constant values c.  Optimize x*x
10458         as pow(x,2.0) when the latter will be expanded back into x*x.
10459         (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
10460         * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
10461         pow can never set errno when used with an integer exponent.
10462         Always use expand_powi when exponent is -1, 0, 1 or 2.
10463         (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
10464         as 1.0/(x*x).  This avoids unbounded recursion as we now prefer
10465         the pow forms of these expressions.
10466
10467 2003-07-31  Geoffrey Keating  <geoffk@apple.com>
10468
10469         * Makefile.in (libexecdir): New.
10470         (libsubdir): Use gcc instead of gcc-lib.
10471         (libexecsubdir): New.
10472         (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
10473         (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
10474         gcc-lib.
10475         (installdirs): Make libexecsubdir.
10476         (install-common): Put executables in libexecsubdir.
10477         (itoolsdir): Use libexecsubdir.
10478         (itoolsdatadir): New.
10479         (install-mkheaders): Separate data files and executables.
10480         (install-collect2): Put executables in libexecsubdir.
10481         (uninstall): Remove libexecsubdir.
10482         * mkheaders.in: Update for new arrangement of files.
10483         (libexecdir): New.
10484         (libexecsubdir): New.
10485         (itoolsdir): Use libexecsubdir.
10486         (itoolsdatadir): New.
10487         * gcc.c (gcc_libexec_prefix): New.
10488         (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
10489         (standard_exec_prefix_1): Use libexec.
10490         (standard_exec_prefix_2): New.
10491         (standard_libexec_prefix): New.
10492         (process_command): Update for new arrangement of files.  Compute
10493         gcc_libexec_prefix.  Update for change from gcc-lib to gcc.
10494
10495 2003-07-31  Nathanael Nerode  <neroden@gcc.gnu.org>
10496
10497         * inclhack.def (stdio_va_list): Avoid bogus replacement which
10498         triggers on Interix.
10499         * fixincl.x: Regenerate.
10500
10501 2003-07-31  Jakub Jelinek  <jakub@redhat.com>
10502
10503         * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
10504         SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
10505
10506 2003-07-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10507
10508         * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
10509
10510 2003-07-31  Per Bothner  <pbothner@apple.com>
10511
10512         * opts.c (in_fnames, num_in_fnames):  Moved here from c-opts.
10513         (add_input_filename):  New function.
10514         (handle_options):  Call add_input_filename directly instead of
10515         with a lang hook.
10516         * opts.h (in_fnames, num_in_fnames):  Moved here.
10517         (add_input_filename):  Declare.
10518         * c-decl.c:  Need to #include opts.h.
10519         * Makefile.in (c-decl.o):  Also depends on opts.h.
10520         * c-opts.c (in_fnames, num_in_fnames):  Moved to opts.c.
10521         (c_common_handle_filename):  Replaced by add_input_filename.
10522         * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
10523         Remove.
10524         * langhooks.h (struct lang_hooks):  Remove handle_filename hook.
10525         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
10526         (LANG_HOOKS_INITIALIZER):  Remove use of LANG_HOOKS_HANDLE_FILENAME.
10527         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
10528
10529 2003-07-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10530
10531         * combine.c (try_combine): Set JUMP_LABEL for newly created
10532         unconditional jump.
10533
10534 2003-07-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10535
10536         * fold-const.c (fold): Fold some comparisons of bit operations.
10537
10538 2003-07-31  Jan Hubicka  <jh@suse.cz>
10539
10540         * cgraph.c (create_edge): Fix typo.
10541         * i386.c (pic_symbolic_operand): Reorder tests.
10542
10543 2003-07-31  Nathan Sidwell  <nathan@codesourcery.com>
10544
10545         * doc/gcov.texi (Invoking Gcov): Describe output name mangling
10546         more fully.
10547         (Gcov Data Files): Update.
10548
10549 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10550
10551         * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
10552         default.
10553
10554         * gthr-posix.c: New file.
10555         * gthr-posix.h: Define _REENTRANT if missing.
10556         Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
10557
10558         * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
10559         by gthr-posix.o.
10560         * config/alpha/t-osf-pthread: New file.
10561
10562         * fixinc/inclhack.def (alpha_pthread): New fix.
10563         * fixinc/fixincl.x: Regenerate.
10564         * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
10565
10566         * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
10567         warning.
10568         Fixes PR bootstrap/9330.
10569
10570 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10571
10572         * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
10573         without GNU ld.
10574         Update comment.
10575         * configure: Regenerate.
10576
10577 2003-07-31  Vladimir Makarov  <vmakarov@redhat.com>
10578
10579         * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
10580         setter.
10581
10582 2003-07-30  Roger Sayle  <roger@eyesopen.com>
10583
10584         * builtins.def: Alphabetize.
10585
10586 2003-07-30  Matt Kraai  <kraai@alumni.cmu.edu>
10587
10588         * doc/c-tree.texi: Normalize spellings of "lowercase" and
10589         "uppercase".
10590         * doc/cpp.texi: Likewise.
10591         * doc/md.texi: Likewise.
10592         * doc/rtl.texi: Likewise.
10593         * doc/tm.texi: Likewise.
10594
10595 2003-07-30  Matt Kraai  <kraai@alumni.cmu.edu>
10596
10597         * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
10598         (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
10599         of cc1obj.
10600
10601 2003-07-30  Chris Demetriou  <cgd@broadcom.com>
10602
10603         * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
10604         macros before defining them.
10605
10606 2003-07-31  Ulrich Weigand  <uweigand@de.ibm.com>
10607
10608         * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
10609         UNSPECV_BLOCKAGE): New constants.
10610         ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
10611         "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
10612         splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
10613         "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
10614
10615         (all insns and expanders): Write output control string as brace block
10616         where appropriate.  Remove \-escapes for doublequote characters.
10617
10618 2003-07-31  Jan Hubicka  <jh@suse.cz>
10619
10620         * gcse.c (insert_store): Fix typo in previous patch.
10621
10622 2003-07-30  Neil Booth  <neil@daikokuya.co.uk>
10623
10624         * cppfiles.c (stack_file, open_file_failed): Use path for deps.
10625
10626 2003-07-30  Andi Kleen  <ak@muc.de>
10627
10628         * loop.c (check_dbra_loop): Allow LTU in the loop condition.
10629
10630 2003-07-30  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10631
10632         * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
10633         * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
10634         GCOV_N_VALUE_COUNTERS): New.
10635         * profile.c (compute_value_histograms): New static function.
10636         (branch_prob): Read back the value histograms.
10637         * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
10638         * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
10639         * value-prof.c: Add comment on reading the profile.
10640         * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
10641         * doc/invoke.texi (-fprofile-values): Document behavior with
10642         -fbranch-probabilities.
10643
10644 2003-07-30  David Edelsohn  <edelsohn@gnu.org>
10645
10646         * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
10647
10648 2003-07-30  Ulrich Weigand  <uweigand@de.ibm.com>
10649
10650         * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
10651         symbolically.
10652
10653 2003-07-30  Jan Hubicka  <jh@suse.cz>
10654
10655         * gcse.c (insert_store): Ignore fake edges.
10656
10657         * c-common.c (flag_vtable_gc): Kill.
10658         * c-common.g (flag_vtable_gc): Kill.
10659         * c-opts (c_common_handle_option): Kill.
10660         * c.opt (fvtable-gc): Kill.
10661         * final.c (final_scan_insn): Do not call assemble_vtable_entry.
10662         * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
10663         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
10664
10665         * invoke.texi (-ftable-gc): Kill documentation.
10666
10667         * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
10668         just because function body is missing.
10669
10670         * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
10671
10672 2003-07-30  Ranjit Mathew  <rmathew@hotmail.com>
10673
10674         * unwind-sjlj.c: Fix typo in file description.
10675
10676 2003-07-30  Alan Modra  <amodra@bigpond.net.au>
10677
10678         * calls.c (load_register_parameters): When shifting reg sized values
10679         to the msb, move the value to a reg first.
10680
10681 2003-07-29  Geoffrey Keating  <geoffk@apple.com>
10682
10683         * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
10684         * line-map.h (linemap_add): Update comments.
10685         * line-map.c (linemap_add): Update comments, interpret zero-length
10686         filename as "<stdin>".
10687
10688 2003-07-29  Nathanael Nerode  <neroden@gcc.gnu.org>
10689
10690         * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
10691
10692 2003-07-29  Zack Weinberg  <zack@codesourcery.com>
10693
10694         * c-decl.c (last_function_parm_vars, current_function_parm_vars):
10695         New static variables.
10696         (struct c_scope): Add parms and warned_forward_parm_decls
10697         fields; remove parm_order.
10698         (storedecls, storetags): Delete.
10699         (poplevel): Also clear bindings on the parms chain.
10700         (pushdecl): Handle forward declarations of parameters, and
10701         chain PARM_DECLs on the parms list, not the names list.
10702         (lookup_name_current_level): Check for PARM_DECLs on the parms
10703         list too.
10704         (push_parm_decl): Don't update parm_order.
10705         (clear_parm_order): Rename mark_forward_parm_decls.  Issue the
10706         warning, only once per parameter list, and set TREE_ASM_WRITTEN
10707         on the decls here.  Then move the forward decls to the names list.
10708         (grokparms): Set last_function_parm_vars.
10709         (get_parm_info): Don't use gettags or getdecls.  No need to
10710         extract non-parms from the parms list, or reorganize the parms
10711         list.  Feed nonparms back in the TREE_TYPE of the list node
10712         returned.  Issue only one error per parameter list for "void"
10713         appearing more than once in said parameter list.  Collapse
10714         parmlist_tags_warning into this function to avoid double scan
10715         of tags list.
10716         (start_function): Set current_function_parm_vars.
10717         (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
10718         directly.  Get non-parms from current_function_parm_vars; no
10719         need to extract them from the parms chain.  Properly bind tags
10720         in the new scope.
10721         (store_parm_decls_oldstyle): No need to extract non-parameters
10722         from the parms chain, nor to store them back afterward.  Move
10723         declaration to top of function, restructure code reordering
10724         DECL_ARGUMENTS.
10725         (store_parm_decls): No need to save and restore warn_shadow.
10726         * c-parse.in: Don't call parmlist_tags_warning nor
10727         clear_parm_order.  Call mark_forward_parm_decls when forward
10728         parm decls are encountered.
10729         * c-tree.h: Prototype mark_forward_parm_decls; not
10730         clear_parm_order or parmlist_tags_warning.
10731
10732 2003-07-29  Geoffrey Keating  <geoffk@apple.com>
10733
10734         * c-common.c (allow_pch): Remove.
10735         * c-common.h (allow_pch): Remove.
10736         (c_common_no_more_pch): Declare.
10737         * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
10738         * c-pch.c: Include hosthooks.h.
10739         (c_common_valid_pch): Don't check allow_pch.
10740         (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
10741         (c_common_no_more_pch): New.
10742         * ggc-common.c: Include hosthooks.h.
10743         (gt_pch_save): Call gt_pch_get_address.
10744         (gt_pch_restore): Call gt_pch_use_address.
10745         * hooks.c (hook_voidp_size_t_null): New.
10746         (hook_bool_voidp_size_t_false): New.
10747         * hooks.h (hook_voidp_size_t_null): New.
10748         (hook_bool_voidp_size_t_false): New.
10749         * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
10750         (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
10751         (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
10752         HOST_HOOKS_GT_PCH_USE_ADDRESS.
10753         * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
10754         gt_pch_use_address.
10755         * doc/hostconfig.texi (Host Common): Document
10756         HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
10757         * Makefile.in (c-pch.o): Depend on hosthooks.h.
10758         (ggc-common.o): Likewise.
10759
10760         * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
10761         (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
10762         (pch_address_space): New.
10763         (darwin_rs6000_gt_pch_get_address): New.
10764         (darwin_rs6000_gt_pch_use_address): New.
10765
10766 2003-07-29  Neil Booth  <neil@daikokuya.co.uk>
10767
10768         PR preprocessor/11569
10769         PR preprocessor/11649
10770         * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
10771         * cppfiles.c: Completely rewritten.
10772         * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
10773         struct cpp_path is now struct cpp_dir.
10774         (remove_duplicates): Don't simplify path names.
10775         * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
10776         cpp_stack_file.
10777         * cpphash.h: Include hashtab.h.
10778         (_cpp_file): Declare.
10779         (struct cpp_buffer): struct include_file is now struct _cpp_file,
10780         and struct cpp_path is now struct cpp_dir.  Rename members.
10781         (struct cpp_reader): Similarly.  New members once_only_files,
10782         file_hash, file_hash_entries, quote_ignores_source_dir,
10783         no_search_path, saw_pragma_once.  Remove all_include_files and
10784         max_include_len.  Make some members bool.
10785         (_cpp_mark_only_only): Renamed from _cpp_never_reread.
10786         (_cpp_stack_file): Renamed from _cpp_read_file.
10787         (_cpp_stack_include): Renamed from _cpp_execute_include.
10788         (_cpp_init_files): Renamed from _cpp_init_includes.
10789         (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
10790         * cppinit.c (cpp_create_reader): Initialize no_search_path.  Update.
10791         (cpp_read_next_file): Rename and move to cppfiles.c.
10792         (cpp_read_main_file): Update.
10793         * cpplib.c (run_directive): Update for renamed members.
10794         (do_include_common, _cpp_pop_buffer): Update.
10795         (do_import): Undeprecate #import.
10796         (do_pragma_once): Undeprecate.  Use _cpp_mark_file_once_only.
10797         * cpplib.h: Remove file_name_map_list.
10798         (cpp_options): Remove map_list.
10799         (cpp_dir): Rename from cpp_path.  New datatype for name_map.
10800         (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
10801
10802 2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
10803
10804         * Makefile.in:  Make stamp-objdir safe for parallel builds.
10805
10806 2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
10807
10808         * Makefile.in (stmp-docobjdir):  New target; ensure $docobjdir exists.
10809         (info):  Depend on stmp-docobjdir.
10810
10811 2003-07-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10812
10813         * configure: Regenerate.
10814
10815 2003-07-29  Jan Hubicka  <jh@suse.cz>
10816
10817         PR C++/11131
10818         * tree-inline.c (expand_call_inline): Always call inlinable_function_p
10819         in !unit-at-a-time mode.
10820
10821 2003-07-28  Geoffrey Keating  <geoffk@apple.com>
10822
10823         * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
10824         main function.
10825
10826 2003-07-28  Mark Mitchell  <mark@codesourcery.com>
10827
10828         PR c++/11667
10829         * c-common.c (shorten_compare): Take into account differences
10830         between C and C++ representation for enumeration types.
10831         * tree.h (set_min_and_max_values_for_integral_type): Declare.
10832         * stor-layout.c (set_min_and_max_values_for_integral_type): New
10833         function, broken out from ...
10834         (fixup_signed_type): ... here and ...
10835         (fixup_unsigned_type): ... here.
10836
10837 2003-07-28  Zack Weinberg  <zack@codesourcery.com>
10838
10839         * c-decl.c: Update commentary, adjust blank lines throughout.
10840         (struct c_scope): Fix indentation.  Reorder members so
10841         outer-context pointers come first, booleans last.
10842         (duplicate_decls, define_label): Use a 'locus' variable for
10843         diagnostic locations in a few more places.
10844         (warn_if_shadowing): Un-split a conditional that fits on one line.
10845         (c_init_decl_processing): No need to clear current_scope and
10846         current_function_scope.
10847         (start_decl): Merge if/else if statements with same action.
10848         (push_parm_decl): Rename old_immediate_size_expand to use
10849         save_foo convention; save/restore around entire function.
10850         (grokdeclarator): Remove unnecessary braces.
10851
10852 2003-07-28  Hans-Peter Nilsson  <hp@bitrange.com>
10853             Michael Culbertson  <Michael.J.Culbertson@wheaton.edu>
10854
10855         * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
10856         when warn_declaration_after_statement.  Call pedwarn_c90, not
10857         pedwarn.  Correct message: it's "ISO C90", not "ISO C89".
10858         * c-common.c (warn_declaration_after_statement): Define.
10859         * c-common.h (warn_declaration_after_statement): Declare.
10860         * c.opt (Wdeclaration-after-statement): New.
10861         * c-errors.c (pedwarn_c90): New function.
10862         * c-opts.c (c_common_handle_option) <case
10863         OPT_Wdeclaration_after_statement>: New.
10864         * c-tree.h (pedwarn_c90): Declare.
10865         * doc/invoke.texi (Option Summary): Document
10866         -Wdeclaration-after-statement.
10867         (Warning Options): Ditto.
10868
10869 2003-07-28  Jan Hubicka  <jh@suse.cz>
10870
10871         * i386.md (memory attribute) Avoid accessing uninitialized memory
10872         for ishift1 type instructions.
10873
10874 2003-07-28  Jakub Jelinek  <jakub@redhat.com>
10875
10876         * configure.in (--enable-checking): Add fold category.
10877         (ENABLE_FOLD_CHECKING): Define if requested.
10878         * configure: Rebuilt.
10879         * config.in: Rebuilt.
10880         * doc/install.texi: Document it.
10881         * fold-const.c: Include md5.h.
10882         [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
10883         [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
10884         print_fold_checksum): New functions.
10885
10886         * fold-const.c (fold): Never modify argument passed to fold, instead
10887         change a copy and return it.
10888         * convert.c (convert_to_integer): Likewise.
10889
10890 2003-07-27  Nathanael Nerode  <neroden@gcc.gnu.org>
10891
10892         * fixinc/fixinc.svr4: Remove dead code.  Remove now-unnecessary
10893         cleanup of junk after #else and #endif directives.  Collapse repeated
10894         clauses into for statment.
10895
10896         * fixinc/fixincl.sh: GNU C -> GCC.  Add usage comment.
10897
10898 2003-07-27  Zack Weinberg  <zack@codesourcery.com>
10899
10900         * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
10901         (keep_next_if_subblocks): Rename next_is_function_body.
10902         (pushlevel): Adjust commentary.  Always set ->keep on the
10903         outermost level of a function.  Don't set ->keep_if_subblocks.
10904         (poplevel): Adjust commentary.  Don't look at ->keep_if_subblocks.
10905         (store_parm_decls): Adjust to match.
10906         (finish_function): Adjust to match.
10907         Call poplevel with all three arguments zero.
10908
10909         * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
10910         New functions split out of store_parm_decls.
10911         Avoid unnecessary work. Use local variables consistently.
10912         (store_parm_decls): Likewise.
10913
10914         (finish_function): No need to set functionbody flag on call to
10915         poplevel.
10916         (struct language_function): Remove scope field.
10917         (c_push_function_context, c_pop_function_context): No need to
10918         save and restore current_scope.
10919
10920 2003-07-27  Nathan Sidwell  <nathan@codesourcery.com>
10921
10922         * doc/extend.texi (Deprecated Features): Implicit typename is
10923         gone. Default args on types is going.
10924
10925 2003-07-26  J"orn Rennecke <joern.rennecke@superh.com>
10926
10927         * Makefile.in (ifcvt.o): Depend on target.h
10928         * ifcvt.c (target.h): Include.
10929         (if_convert): Don't call mark_loop_exit_edges if we can't
10930         modify jumps.
10931
10932 2003-07-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10933
10934         * doc/install.texi (Testing): Adjust required versions of DejaGnu.
10935
10936 2003-07-26  Richard Henderson  <rth@redhat.com>
10937
10938         PR inline-asm/11676
10939         * cse.c (count_reg_usage): Handle asm_operands properly.
10940
10941 2003-07-26  Roger Sayle  <roger@eyesopen.com>
10942
10943         * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
10944         (DEF_EXT_FALLBACK_BUILTIN): Delete.
10945         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
10946         the regular DEF_EXT_LIB_BUILTIN macro.
10947         (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
10948         the regular DEF_LIB_BUILTIN macro.
10949         (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
10950         BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
10951         BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
10952         DEF_EXT_LIB_BUILTIN macro.
10953
10954         * c-decl.c (duplicate_decls): Remove code to handle builtin
10955         functions prototyped without an argument list.
10956
10957 2003-07-26  Danny Smith  <dannysmith@users.sourceforge.net>
10958
10959         * config/i386/winnt.c: Revert 2003-07-08 change.
10960         (i386_pe_section_type_flags): Remove error_with_decl here too.
10961
10962 2003-07-26  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10963
10964         * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
10965         * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
10966         * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
10967         (v850_handle_data_area_attribute): Likewise.
10968
10969 2003-07-26  Geoffrey Keating  <geoffk@apple.com>
10970
10971         * varasm.c (output_constant_def_contents): Use
10972         ASM_DECLARE_CONSTANT_NAME if defined.
10973         * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
10974         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
10975         objects get at least one byte to prevent assembler problems.
10976         (ASM_DECLARE_CONSTANT_NAME): New.
10977
10978         * Makefile.in (libbackend.o): Remove options_.h.
10979         (mostlyclean): Likewise.
10980
10981         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
10982         insert a label at the end of an function under Mach-O.
10983
10984         * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
10985
10986 2003-07-25  Aldy Hernandez  <aldyh@redhat.com>
10987
10988         * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
10989         equality.
10990         (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
10991
10992         * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
10993
10994 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10995
10996         * doc/passes.texi (Passes): Mention pretty-printing and
10997         diagnostic files.
10998
10999 2003-07-25  Nathan Sidwell  <nathan@codesourcery.com>
11000
11001         * doc/extend.texi (Function Attributes): GNU C++ does now allow
11002         unused parameter decls.
11003         (Attribute Syntax): GNU C++ does not allow label attributes to be
11004         after the ':'.
11005
11006 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11007
11008         * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
11009         (objc_declare_class): Likewise.
11010         (error_with_ivar): Likewise.
11011         (start_class): Likewise.
11012         (warn_with_method): Likewise.
11013
11014 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11015
11016         Remove pedwarn_with_decl, warning_with_decl and error_with_decl
11017         from GCC.
11018         * calls.c (try_to_integrate): Don't use xxx_with_decl.
11019         (expand_call): Likewise.
11020         * dwarfout.c (output_reg_number): Likewise.
11021         * expr.c (expand_expr): Likewise.
11022         * function.c (assign_temp): Likewise.
11023         (uninitialized_vars_warning): Likewise.
11024         (setjmp_args_warning): Likewise.
11025         (expand_function_end): Likewise.
11026         * stmt.c (fixup_gotos): Likewise.
11027         (warn_about_unused_variables): Likewise.
11028         (expand_end_bindings): Likewise.
11029         * stor-layout.c (layout_decl): Likewise.
11030         (place_field): Likewise.
11031         * toplev.c (check_global_declarations): Likewise.
11032         (rest_of_handle_inlining): Likewise.
11033         (default_tree_printer): New function.
11034         (general_init): Initialize diagnostic machinery before routing
11035         signals to the ICE machinery.  Set default tree printer.
11036         * toplev.h (pedwarn_with_decl): Remove declaration.
11037         (warning_with_decl): Likewise.
11038         (error_with_decl): Likewise.
11039         (pedwarn): Remove attribute for the time being.
11040         * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
11041         * varasm.c (named_section): Likewise.
11042         (make_decl_rtl): Likewise.
11043         (assemble_variable): Likewise.
11044         (merge_weak): Likewise.
11045         (declare_weak): Likewise.
11046
11047         * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
11048         * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
11049         (format_with_decl): Remove.
11050         (diagnostic_for_decl): Likewise.
11051         (pedwarn_with_decl): Likewise.
11052         (warning_with_decl): Likewise.
11053         (error_with_decl): Likewise.
11054         (diagnostic_initialize): Adjust.
11055         (diagnostic_count_diagnostic): Likewise.
11056         (announce_function): Likewise.
11057         (lhd_print_error_function): Likewise.
11058         (diagnostic_report_current_module): Likewise.
11059         (default_diagnostic_starter): Likewise.
11060         (diagnostic_report_diagnostic): Likewise.
11061         (default_diagnostic_finalizer): Likewise.
11062         (verbatim): Likewise.
11063         (error): Likewise.
11064         (warning): Likewise.
11065         * opts.c (common_handle_option): Likewise.
11066         * pretty-print.c: New file.
11067         * c-pretty-print.h (pp_base): Override.
11068         * c-pretty-print.c: Adjust use of macros throughout.
11069         (pp_buffer): New macro.
11070         (pp_newline): Likewise.
11071         * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
11072         * Makefile.in (DIAGNOSTIC_H): New variable.
11073         (c-errors.o): Use it.
11074         (c-objc-common.o): Likewise.
11075         (c-common.o): Likewise.
11076         (c-opts.o): Likewise.
11077         (c-format.o): Likewise.
11078         (diagnostic.o): Likewise.
11079         (opts.o): Likewise.
11080         (toplev.o): Likewise.
11081         (rtl-error.o): Likewise.
11082         (dwarf2out.o): Likewise.
11083         (jump.o): Likewise.
11084         (pretty-print.o): New rule.
11085
11086 2003-07-24  Roger Sayle  <roger@eyesopen.com>
11087
11088         * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
11089         front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
11090         (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
11091         from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
11092         (DEF_FRONT_END_LIB_BUILTIN): Delete.
11093         (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
11094         (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
11095
11096         * builtins.c (build_string_literal): New function to construct
11097         a char* pointer to a string literal.
11098         (expand_builtin_fputs): Change 2nd argument from "int ignore" to
11099         "rtx target" to be consistent with other expand_builtin_* functions.
11100         Change 3rd argument from "int unlocked" to "bool unlocked".
11101         (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
11102         c-common.c to avoid front-end dependencies.  Optimize printf("")
11103         as a no-op when the result isn't required.  Handle embedded NULs
11104         in format string.
11105         (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
11106         from c-common.c to avoid front-end dependencies.  Likewise, optimize
11107         fprintf(fp,"") as a no-op when the result isn't required, evaluating
11108         fp for side-effects.  Handle embedded NULs in format string.
11109         (expand_builtin_sprintf): Fix typo.
11110         (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
11111         optimizing.  Adjust calls of expand_builtin_fputs to match the API
11112         change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
11113         expand_builtin_printf.  Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
11114         and BUILT_IN_FPRINTF using expand_builtin_fprintf.
11115
11116         * c-common.c (is_valid_printf_arglist): Delete.
11117         (c_expand_builtin): Delete.
11118         (c_expand_builtin_printf): Moved to builtins.c. Delete.
11119         (c_expand_builtin_fprintf): Moved to builtins.c.  Delete.
11120         (c_expand_expr): No longer treat CALL_EXPRs specially.
11121         (CALLED_AS_BUILT_IN): Delete.
11122
11123 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11124
11125         PR optimization/11631
11126         * gcse.c (store_motion): Connect infinite loops to exit.
11127
11128 2003-07-24  Jason Merrill  <jason@redhat.com>
11129
11130         * tree.h (boolean_type_node): Move from C/C++/Java frontends.
11131         (boolean_true_node, boolean_false_node): Likewise.
11132         (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
11133         * tree.c (build_common_tree_nodes): Init boolean_type_node.
11134         (build_common_tree_nodes_2): Init boolean_{true,false}_node.
11135         * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
11136         * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
11137         (truthvalue_true_node): Renamed from boolean_true_node.
11138         (truthvalue_false_node): Renamed from boolean_false_node.
11139         * c-decl.c: Just set truthvalue_* to integer_*.
11140         * c-*.[ch]: s/boolean/truthvalue/.  s/c_bool/boolean/.
11141
11142 2003-07-24  Roger Sayle  <roger@eyesopen.com>
11143
11144         * c-decl.c (match_builtin_function_types): New subroutine of
11145         duplicate_decls to test whether a redeclaration of a builtin
11146         function is suitably close, i.e. the return type and all of
11147         the argument types have the same modes as the builtin expects.
11148         (duplicate_decls): Fuzzy type matching for builtin functions
11149         moved to match_builtin_function_types.
11150
11151 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11152
11153         * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
11154         flag correctly.
11155
11156 2003-07-24  Zack Weinberg  <zack@codesourcery.com>
11157
11158         * c-decl.c: Search-and-replace change 'binding level' to
11159         'scope' in commentary.
11160         (struct binding_level): Now struct c_scope.
11161         (current_binding_level): Now current_scope.
11162         (free_binding_level): Now scope_freelist.
11163         (current_function_level): Now current_function_scope.
11164         (global_binding_level): Now global_scope.
11165         (make_binding_level): Now make_scope.
11166         (pop_binding_level): Now pop_scope.
11167
11168 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11169
11170         * configure.in (libgcc_visibility): Add missing whitespace.
11171
11172 2003-07-24  Richard Henderson  <rth@redhat.com>
11173
11174         * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
11175         __gcc_personality_v0.
11176
11177 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11178
11179         * Makefile.in: Replace pwd by ${PWD_COMMAND}.
11180
11181 2003-07-24  Nathan Sidwell  <nathan@codesourcery.com>
11182
11183         * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
11184         documentation missed from my 2003-07-09 patch.
11185
11186 2003-07-24  Nathanael Nerode  <neroden@gcc.gnu.org>
11187
11188         * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
11189         it's not provided.
11190         * configure: Rebuild.
11191
11192 2003-07-24  Steven Bosscher  <steven@gcc.gnu.org>
11193
11194         PR c/10602
11195         * c-typeck.c (type_lists_compatible_p): Do not compare
11196         arguments if one of them is an error_mark_node
11197
11198 2003-07-24  Alan Modra  <amodra@bigpond.net.au>
11199
11200         * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
11201         if current_function_calls_eh_return.
11202
11203 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
11204
11205         * doc/c-tree.texi (OFFSET_TYPE): Update description.
11206
11207 2003-07-23  Bob Wilson  <bob.wilson@acm.org>
11208
11209         * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
11210         * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
11211         __umodsi3, __modsi3): Increase frame size to 32.
11212
11213 2003-07-23  Geoffrey Keating  <geoffk@apple.com>
11214
11215         * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
11216         prototype.
11217
11218 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
11219
11220         * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
11221
11222         PR optimization/10679
11223         * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
11224
11225 2003-07-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11226
11227         PR target/11607 and PR target/11516
11228         * pa.md (extzv, extv, insv): Revert latter half of last patch.
11229
11230 2003-07-22  Mark Mitchell  <mark@codesourcery.com>
11231
11232         * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
11233         * varasam.c (output_constant): Likewise.
11234
11235 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
11236
11237         * alias.c: Fix comment formatting.
11238         * c-common.c: Likewise.
11239         * c-decl.c: Likewise.
11240         * c-opts.c: Likewise.
11241         * combine.c: Likewise.
11242         * cpplib.c: Likewise.
11243         * diagnostic.c: Likewise.
11244         * dojump.c: Likewise.
11245         * final.c: Likewise.
11246         * fold-const.c: Likewise.
11247         * gcc.c: Likewise.
11248         * gcse.c: Likewise.
11249         * ggc-page.c: Likewise.
11250         * jump.c: Likewise.
11251         * loop.c: Likewise.
11252         * mips-tfile.c: Likewise.
11253         * recog.c: Likewise.
11254         * regclass.c: Likewise.
11255         * regmove.c: Likewise.
11256         * tree.c: Likewise.
11257         * tree.h: Likewise.
11258
11259 2003-07-22  Per Bothner  <pbothner@apple.com>
11260
11261         * line-map.c (add_line_map):  Handle invalid LEAVE request.
11262         Fixes PR preprocessor/11361.
11263
11264 2003-07-22  Per Bothner  <pbothner@apple.com>
11265
11266         * diagnostic.c.(diagnostic_report_current_module):  Update to match
11267         2003-06-05 changes to push_srcloc and pop_srcloc.
11268
11269 2003-07-22  Wolfgang Bangerth  <bangerth@dealii.org>
11270
11271         * doc/trouble.texi: Better document two-stage name lookup.
11272
11273 2003-07-22  Eric Christopher <echristo@redhat.com>
11274
11275         * config/s390.c (s390_valid_pointer_mode): New.
11276         (TARGET_VALID_POINTER_MODE): Use.
11277         (s390_emit_prologue): Add tpf profiling hooks.
11278         (s390_emit_epilogue): Ditto.
11279         * config/s390.h (MASK_TPF): New.
11280         (TARGET_TPF): Use.
11281         (POINTERS_EXTEND_UNSIGNED): Define.
11282         * config/s390.md (ptr_extend): New pattern.
11283
11284 2003-07-22  Zack Weinberg  <zack@codesourcery.com>
11285
11286         * hashtable.c (approx_sqrt): Make static.
11287         * hashtable.h: Don't prototype approx_sqrt.
11288         * line-map.c (init_line_maps): Rename linemap_init.
11289         (free_line_maps): Rename linemap_free.
11290         (add_line_map): Rename linemap_add.
11291         (lookup_line): Rename linemap_lookup.
11292         (print_containing_files): Rename linemap_print_containing_files.
11293         * linemap.h: Update to match.
11294
11295         * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
11296         linemap routines to use new names.
11297
11298 2003-07-16  Nathan Sidwell  <nathan@codesourcery.com>
11299
11300         * c-common.c (handle_packed_attribute): Don't pack a struct via a
11301         typedef. Propagate packedness from a main variant.
11302
11303 2003-07-22  Nathanael Nerode  <neroden@gcc.gnu.org>
11304
11305         * Makefile.in (install-common): Add dependency on installdirs.
11306
11307 2003-07-21  Alexandre Oliva  <aoliva@redhat.com>
11308
11309         * c-common.c (c_common_type_for_mode): Return integer types for
11310         pointer modes.
11311
11312 2003-07-22  Geoffrey Keating  <geoffk@apple.com>
11313
11314         * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
11315         (finish_decl): Call maybe_apply_pragma_weak here.
11316         (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
11317         TREE_PUBLIC and TREE_STATIC are decided.
11318         (start_function): Move call to maybe_apply_pragma_weak.  Check that
11319         DECL_ASSEMBLER_NAME isn't set too early.
11320
11321         * cpplex.c (_cpp_process_line_notes): Mention option name in
11322         trigraphs warning.
11323
11324 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
11325
11326         * combine.c (if_then_else_cond): Simplify the comparison of
11327         rtx against -1, 0, and 1.
11328         * loop.c (check_dbra_loop): Likewise.
11329         * optabs.c (emit_conditional_move): Likewise.
11330         (emit_conditional_add): Likewise.
11331         * config/i386/i386.md (*movsi_or): Likewise.
11332         (*movdi_or_rex6): Likewise.
11333
11334 2003-07-22  Jan Hubicka  <jh@suse.cz>
11335
11336         * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
11337
11338 2003-07-21  Neil Booth  <neil@daikokuya.co.uk>
11339
11340         * cppfiles.c (open_file_pch): Don't put unused entries in the
11341         splay tree.  Remove dead code.
11342
11343 2003-07-21  Geoffrey Keating  <geoffk@apple.com>
11344
11345         * c-common.h (num_in_fnames): Declare.
11346         (c_static_assembler_name): Move from here...
11347         * c-tree.h (c_static_assembler_name): ... to here.
11348         * c-opts.c: Don't include langhooks-def.h.
11349         (c_static_assembler_name): Move to c-decl.c.
11350         (num_in_fnames): Make externally visible.
11351         * c-decl.c: Include langhooks-def.h.
11352         (c_static_assembler_name): Move from c-opts.c.
11353         * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
11354         (c-opts.o): Remove $(LANGHOOKS_DEF_H).
11355
11356         * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
11357         when it's not needed.
11358
11359 2003-07-21  Jakub Jelinek  <jakub@redhat.com>
11360
11361         * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
11362         * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
11363         (rs6000_emit_prologue): Save FPRs inline if set.
11364
11365 2003-07-21  H.J. Lu <hongjiu.lu@intel.com>
11366
11367         * config/ia64/ia64.md (prefetch): Support predicate.
11368
11369 2003-07-21  Josef Zlomek  <zlomekj@suse.cz>
11370
11371         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
11372         * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
11373         table.
11374
11375 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
11376
11377         PR optimization/11536
11378         * unroll.c (loop_iterations): Do not replace a register holding
11379         the final value by its equivalent before the loop if it is not
11380         invariant.
11381
11382 2003-07-21  Dave Fluri  <dave.fluri@onlink.net>
11383
11384         * doc/extend.texi: Fixes to spelling, grammar, and diction.
11385
11386 2003-07-21  Ben Elliston  <bje@wasabisystems.com>
11387
11388         * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
11389         (V850 Options): Spelling fixes.
11390
11391 2003-07-20  Lisa M. Goldstein  <opus@gnu.org>
11392
11393         * doc/invoke.texi: Fixes to style, grammar and diction.
11394
11395 2003-07-20  Roger Sayle  <roger@eyesopen.com>
11396
11397         * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
11398         * system.h (SMALL_STACK): Poison obsolete target macro.
11399         * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
11400
11401 2003-07-20  Phil Edwards  <pme@gcc.gnu.org>
11402
11403         * configure.in:  Cache the results of testing for cmp's capabilities.
11404         * configure:  Regenerate.
11405
11406 2003-07-20  Mark Mitchell  <mark@codesourcery.com>
11407
11408         PR debug/11279
11409         * dwarf2out.c (gen_enumeration_type_die): Remember that
11410         enumerators can be unsigned.
11411
11412 2003-07-19  Zack Weinberg  <zack@codesourcery.com>
11413
11414         * c-decl.c (named_labels, shadowed_labels, label_level_chain)
11415         (push_label_level, pop_label_level): Kill.
11416         (struct binding_level): Rename level_chain to outer.
11417         Add outer_function field.  Change parm_flag, function_body,
11418         keep, keep_if_subblocks to 1-bit bitfields of type bool.
11419         (current_function_level): New variable.
11420         (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
11421         (keep_next_level, declare_parm_level, warn_if_shadowing):
11422         Update to match.
11423         (struct language_function): Kill named_labels, shadowed_labels fields.
11424         (c_init_decl_processing, start_function, c_push__function_context)
11425         (c_pop_function_context): No need to muck with named_labels nor
11426         shadowed_labels.
11427
11428         (make_binding_level): No need to clear the structure here.
11429         (pop_binding_level): Always operate on current_binding_level.
11430         Update current_function_level if necessary.
11431         (pushlevel): Don't clear named_labels.  Update current_function_level
11432         if necessary.  Use "true" and "false" where appropriate.
11433         (poplevel): Diagnose labels defined but not used, or vice
11434         versa, and clear out label-meanings leaving scope, while
11435         walking down the decls list, for all binding levels.
11436         Handle LABEL_DECLs appearing in the shadowed list.
11437         pop_binding_level takes no arguments.
11438         (pushdecl_function_level): Use current_function_level.
11439
11440         (make_label, bind_label): New static functions.
11441         (declare_label): New exported function.
11442         (lookup_label, define_label): Rewritten for new data structure.
11443         (shadow_label): Kill.
11444
11445         * c-tree.h: Prototype declare_label; don't prototype
11446         push_label_level, pop_label_level, nor shadow_label.
11447         * c-parse.in: Remove all calls to push_label_level and
11448         pop_label_level.  Use declare_label for __label__ decls.
11449
11450         * doc/extend.texi: Clarify that __label__ can be used to
11451         declare labels with local scope in any nested block, not
11452         just statement expressions.  Cross-reference nested functions
11453         section from local labels section.
11454
11455 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11456
11457         * sched-rgn.c (find_rgns): Initialize current_edge correctly.
11458
11459 2003-07-19  Phil Edwards  <pme@gcc.gnu.org>
11460
11461         * doc/makefile.texi (restrap, profiledbootstrap):  Document targets.
11462
11463 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11464
11465         * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
11466         fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
11467
11468 2003-07-19  Ulrich Weigand  <uweigand@de.ibm.com>
11469
11470         * config/s390/s390.c (legitimize_pic_address): Access local symbols
11471         relative to the GOT instead of relative to the literal pool base.
11472         (s390_output_symbolic_const): Handle new GOT-relative accesses.
11473         * config/s390/s390.md ("call"): Access local functions and PLT stubs
11474         relative to the GOT instead of relative to the literal pool base.
11475         ("call_value"): Likewise.
11476         ("call_value_tls"): Likewise.
11477
11478         * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
11479         reloading.  Support LTREL_BASE / LTREL_OFFSET construct.
11480         (s390_chunkify_finish): Likewise.
11481         (s390_chunkify_cancel): Likewise.
11482         (s390_reorg): Adapt caller.
11483         (find_base_register_in_addr,
11484         find_base_register_ref, replace_base_register_ref): Delete.
11485         (find_ltrel_base, replace_ltrel_base): New functions.
11486         (find_constant_pool_ref): Handle LTREL_BASE unspecs.
11487         (s390_decompose_address): Handle LTREL_BASE unspecs.  Optimize
11488         base vs. index register usage.
11489         (struct constant_pool): Remove 'anchor'.
11490         (s390_add_anchor): Delete.
11491         (s390_dump_pool): Remove anchor handling.
11492         * config/s390/s390.md ("reload_anchor"): Remove.
11493
11494         * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
11495         (s390_load_got): New function.  Use LTREL_BASE/OFFSET.
11496         (s390_emit_prologue): Use it.
11497         * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
11498         "builtin_setjmp_receiver"): Cleanup.  Use s390_load_got.  Do not
11499         hard-code register 14.
11500         * config/s390/s390-protos.h (s390_load_got): Declare.
11501
11502         * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
11503         Support TImode constants.
11504         * config/s390/s390.md ("consttable_ti"): New.
11505         ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
11506
11507         * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
11508         UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
11509         UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
11510         UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
11511         UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
11512         New symbolic constants.
11513         ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
11514         "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
11515         "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
11516         "pool", "literal_pool_31", "literal_pool_64"): Cleanup.  Use
11517         symbolic UNSPEC values.
11518         * config/s390/s390.c (larl_operand, s390_short_displacement,
11519         bras_sym_operand, s390_cannot_force_const_mem,
11520         s390_delegitimize_address, s390_decompose_address,
11521         legitimize_pic_address, s390_output_symbolic_const,
11522         s390_function_profiler): Use symbolic UNSPEC values.
11523
11524 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11525
11526         * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
11527         c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
11528         c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
11529         collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
11530         cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
11531         cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
11532         dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
11533         fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
11534         gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
11535         genemit.c genextract.c genoutput.c genrecog.c gensupport.c
11536         ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
11537         integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
11538         loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
11539         postreload.c prefix.c print-tree.c protoize.c ra-build.c
11540         ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
11541         regmove.c regrename.c reload.c reload1.c reorg.c resource.c
11542         sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
11543         simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
11544         tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
11545         varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
11546         casts.
11547
11548 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11549
11550         * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
11551         * toplev.h (warning): Remove attribute.
11552
11553 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11554
11555         * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
11556         (pop_label_level): Likewise.
11557         (duplicate_decls): Likewise.
11558         (implicitly_declare): Likewise.
11559         (shadow_label): Likewise.
11560         (start_decl): Likewise.
11561         (finish_decl): Likewise.
11562         (grokdeclarator): Likewise.
11563         (get_parm_info): Likewise.
11564         (detect_field_duplicates): Likewise.
11565         (finish_struct): Likewise.
11566         (start_function): Likewise.
11567         (store_parm_decls): Likewise.
11568         (finish_function): Likewise.
11569         (c_expand_body_1): Likewise.
11570         (check_for_loop_decls): Likewise.
11571         (merge_translation_unit_decls): Likewise.
11572
11573 2003-07-19  Neil Booth  <neil@daikokuya.co.uk>
11574
11575         * common.opt:  Document --param.
11576         * opts.c (columns, undocumented_msg): New.
11577         (print_help): Get number of columns from environment.  Print
11578         --param help.  Tweak newline handling.
11579         (print_param_help): New.
11580         (print_filtered_help): Better handling of duplicates.  Complain
11581         about undocumented switches.
11582         (print_switch): New.
11583         (wrap_help): Improve wrapping, use COLUMNS.
11584         * opts.sh: Ignore comments in records.
11585         * params.def: Fix typos and remove trailing periods.
11586         * toplev.c (display_help): Don't dump --param help.
11587         * doc/sourcebuild.texi: Update.
11588
11589 2003-07-18  Richard Henderson  <rth@redhat.com>
11590
11591         PR target/11556
11592         * optabs.c (prepare_operand): Fail gracefully instead of abort
11593         if the predicate doesn't satisfy.
11594         (gen_cond_trap): Allow prepare_operand to fail.
11595
11596 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11597
11598         * c-common.c: Don't undefine GCC_DIAG_STYLE.
11599         (fname_decl): Don't use xxx_with_decl.
11600         (c_add_case_label): Likewise.
11601         (handle_section_attribute): Likewise.
11602         (handle_alias_attribute): Likewise.
11603         (handle_no_instrument_function_attribute): Likewise.
11604         (handle_no_limit_stack_attribute): Likewise.
11605         * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
11606         * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
11607
11608 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11609
11610         * Makefile.in (ifcvt.o): Add cfgloop.h.
11611         * basic-block.h (EDGE_LOOP_EXIT): New flag.
11612         * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
11613         * ifcvt.c: Include cfgloop.h.
11614         (mark_loop_exit_edges): New static function.
11615         (if_convert): Call it.
11616         (find_if_header): Ignore branches out of loops.
11617
11618 2003-07-18  Kazu Hirata  <kazu@cs.umass.edu>
11619
11620         * combine.c (simplify_comparison): Don't share rtx when converting
11621         (ne (and (not X) 1) 0) to (eq (and X 1) 0).
11622
11623 2003-07-18  David Edelsohn  <edelsohn@gnu.org>
11624
11625         * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
11626         (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
11627         (MUST_PASS_IN_STACK): Define.
11628         (BLOCK_REG_PADDING): Define.
11629
11630 2003-07-18  Richard Henderson  <rth@redhat.com>
11631
11632         * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
11633         to skip the addr_vec.
11634
11635 2003-07-18  Alexandre Oliva  <aoliva@redhat.com>
11636
11637         * combine.c (combinable_i3pat): Don't forbid occurrences of
11638         i2dest or i1dest in inner_dest if inner_dest is a mem.
11639
11640 2003-07-18  Jan Hubicka  <jh@suse.cz>
11641
11642         * cgraph.c (cgraph_remove_node): Clear the hash table slot.
11643
11644 2003-07-17  Jakub Jelinek  <jakub@redhat.com>
11645
11646         PR target/11087
11647         * loop.c (basic_induction_var): Check if convert_modes emitted any
11648         instructions. Remove them and return 0 if so.
11649
11650 2003-07-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
11651
11652         PR optimization/11083
11653         * toplev.c (rest_of_handle_addresof): Rename into
11654         rest_of_handle_addressof.  Delete unreachable blocks
11655         if dead edges were purged after the addressof pass.
11656
11657 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
11658
11659         * Makefile.in, configure, configure.in: Remove handling of
11660         lang-options.h and options_.h.
11661         * toplev.c (struct lang_opt, documented_lang_options): Remove.
11662         (display_help): Don't use documented_lang_options.
11663
11664 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
11665
11666         * c-decl.c (pushdecl_function_level): Make static, return nothing.
11667         (kept_level_p): Fold into poplevel.
11668         (undeclared_variable): Moved here from c-typeck.c.  Export.
11669         * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
11670         (undeclared_variable): Prototype here.  Don't prototype
11671         kept_level_p nor pushdecl_function_level.
11672         * c-parse.in: Change first argument to poplevel from
11673         "kept_level_p()" to "KEEP_MAYBE".
11674         * c-typeck.c (undeclared_variable): Moved to c-decl.c.
11675
11676 2003-07-17  Roger Sayle  <roger@eyesopen.com>
11677
11678         * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
11679         commutative operands instead of modifying the RTL in-place.
11680
11681 2003-07-17  Mark Mitchell  <mark@codesourcery.com>
11682
11683         PR optimization/11557
11684         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
11685         unless we know which function is being called.
11686
11687 2003-07-17  Roger Sayle  <roger@eyesopen.com>
11688
11689         * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
11690         whether to reorder the operands of a commutative binary operator.
11691
11692 2003-07-17  Roger Sayle  <roger@eyesopen.com>
11693
11694         * fold-const.c (const_binop): Avoid performing the FP operation at
11695         compile-time, if either operand is NaN and we honor signaling NaNs,
11696         or if we're dividing by zero and either flag_trapping_math is set
11697         or the desired mode doesn't support infinities.
11698         (fold_initializer): New function to fold an expression ignoring any
11699         potential run-time exceptions or traps.
11700         * tree.h (fold_initializer): Prototype here.
11701         * c-typeck.c (build_binary_op): Move to the end of the file so
11702         that intializer_stack is in scope.  If constructing an initializer,
11703         i.e. when initializer_stack is not NULL, use fold_initializer to
11704         fold expressions.
11705         * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
11706         performing FP operations at compile-time, if they would raise an
11707         exception at run-time.
11708
11709 2003-07-17  Geoffrey Keating  <geoffk@apple.com>
11710
11711         PR 11498
11712         * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
11713         (langhooks.o): Add $(GGC_H), gt-langhooks.h.
11714         (GTFILES): Add langhooks.c.
11715         (gt-langhooks.h): New.
11716         * c-common.h (c_static_assembler_name): Prototype.
11717         * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
11718         * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
11719         * c-opts.c: Include langhooks-def.h.
11720         (c_static_assembler_name): New.
11721         * langhooks.c: Include ggc.h.  Include gt-langhooks.h.
11722         (var_labelno): New.
11723         (lhd_set_decl_assembler_name): Give static objects with context
11724         unique names.
11725         * varasm.c (var_labelno): Delete.
11726         (make_decl_rtl): Don't change the assembler name once it's set.
11727
11728         * c-opts.c (this_input_filename): New.
11729         (finish_options): Take new parameter, name of file being compiled.
11730         Update callers.  Set this_input_filename.
11731         (push_command_line_include): Use this_input_filename not
11732         main_input_filename.
11733
11734 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
11735
11736         * Makefile.in: Depend .pot generation on options.c.
11737         * po/exgettext: Add an extra_files variable containing additional
11738         files to scan.
11739
11740 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
11741
11742         * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
11743         c_write_global_declarations.
11744
11745         * c-decl.c: Fix typos in several comments.  Remove all
11746         #if 0 blocks; reindent as needed.  Remove unused argument
11747         to declare_parm_level; all callers changed.
11748         * c-parse.in: Update calls to declare_parm_level.  Avoid
11749         issuing a double warning in some circumstances.
11750         * c-typeck.c: Update calls to declare_parm_level.
11751         * c-tree.h: Update prototype of declare_parm_level.
11752
11753         * c-pragma.c (apply_pragma_weak): Don't complain about a
11754         redundant #pragma weak.
11755
11756         * objc/objc-act.c (forward_declare_categories,
11757         build_selector_reference_decl, build_class_reference_decl,
11758         build_objc_string_decl, synth_forward_declarations,
11759         build_protocol_reference): Set TREE_PUBLIC on synthetic
11760         forward decl to 0, consistent with eventual definition.
11761         Correct comments to match.
11762
11763         * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
11764         in regexp that don't form a range expression.
11765         * fixinc/fixincl.def: Regenerate.
11766
11767 2003-07-17  Richard Henderson  <rth@redhat.com>
11768
11769         PR target/10907
11770         * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
11771         even with !TARGET_CONST_GP.
11772         (ia64_function_ok_for_sibcall): Reject non-local functions.
11773
11774 2003-07-17  Steven Bosscher  <steven@gcc.gnu.org>
11775
11776         * c-common.c (c_estimate_num_insns_1): Don't handle
11777         METHOD_CALL_EXPR.
11778         * expr.c (safe_from_p): Likewise.
11779         * gengtype.c (adjust_field_tree_exp): Likewise.
11780         * stmt.c (warn_if_unused_value): Likewise
11781         * tree.c (first_rtl_op): Likewise.
11782         * tree.def: Don't define METHOD_CALL_EXPR.
11783         * java/lang.c (java_estimate_num_insns_1): Don't handle
11784         METHOD_CALL_EXPR.
11785
11786 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
11787
11788         PR other/11466
11789         * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
11790         and its restrictions for the SPARC64 port.
11791         Move the entry of "-mimpure-text" before that of "-mv8".
11792
11793 2003-07-17  Eric Botcazou <ebotcazou@libertysurf.fr>
11794             Phil Edwards <phil@jaj.com>
11795
11796         * doc/install.texi (*-*-solaris2*): Document the step-by-step
11797         procedure to bootstrap and install.
11798         Document the preference for the legacy Sun tools in /usr/bin
11799         over the POSIX tools in /usr/xpg4/bin for the build process.
11800
11801 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
11802
11803         * c.opt: Document Uncodumented; use it.  Document ObjC options.
11804         * opts.c (print_filtered_help): Skip undocumented switches.
11805         * opts.h (CL_UNDOCUMENTED): New.
11806         * opts.sh: Handle Undocumented.
11807         * toplev.c (documented_lang_options): Prevent its becoming empty.
11808 objc:
11809         * lang-options.h: Remove.
11810
11811 2003-07-16  Ulrich Weigand  <uweigand@de.ibm.com>
11812
11813         * loop.c (check_ext_dependent_givs): Pass const struct loop *
11814         instead of struct loop_info * as argument.  Accept BIVs with
11815         increment +/- 1 provided there is a friendly exit test against
11816         a loop-invariant value.
11817         (strength_reduce): Adapt call to check_ext_dependent_givs.
11818
11819 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
11820             Con Bradley <con.bradley@superh.com>
11821
11822         * sh-protos.h (sh_get_pr_initial_val): Declare.
11823         * sh.c (regno_reg_class): Make its elements type enum reg_class.
11824         (output_stack_adjust): Remove emit_fn argument.  Add epilogue_p
11825         and live_regs_mask arguments.  Changed all callers.
11826         (save_schedule_s): New structure.
11827         (save_schedule): New typedef.
11828         (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
11829         (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
11830         In interrupts handlers, also save registers that are usually
11831         partially saved, and make sure there is at least one general purpose
11832         register saved if a target register needs saving.
11833         Add casts in comparisons to avoid warnings.
11834         (sh_media_register_for_return): return -1 for interrupt handlers.
11835         (MAX_SAVED_REGS, MAX_TEMPS): New defines.
11836         (sh_expand_prologue): Use sh5_schedule_saves.  Check that any temp
11837         registers used are available.
11838         Set RTX_FRAME_RELATED_P where appropriate.
11839         Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
11840         (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
11841         (initial_elimination_offset): Likewise.
11842         * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
11843         (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
11844         (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
11845         (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
11846         (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
11847         and for target registers.
11848         (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
11849         (regno_reg_class): Make its elements type enum reg_class.
11850         (CONSTRAINT_LEN): Don't use isdigit.
11851         (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
11852         (FUNCTION_ARG): Add parentheses to avoid warnings.
11853         (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
11854         (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
11855         (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
11856         (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
11857         * sh.md (xordi3+1): Remove unused variable regno.
11858         (return_media): Check that tr0 is available before using it.
11859
11860 2003-07-16  Neil Booth  <neil@daikokuya.co.uk>
11861
11862         * c.opt: Document more options.
11863
11864 2003-07-16  Roger Sayle  <roger@eyesopen.com>
11865
11866         * combine.c (subst): Also handle (subreg (const_double ...)) case
11867         if created by a substitution, by using the original inner mode.
11868
11869 2003-07-16  Roger Sayle  <roger@eyesopen.com>
11870
11871         * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
11872         to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
11873         (simplify_rtx): Likewise.  Simplify (lo_sum (high X) X) as X.
11874
11875 2003-07-16  Andrew Pinski  <pinskia@physics.uc.edu>
11876
11877         * doc/install.texi (--without-headers): New.
11878
11879         Partial Fix PR/10129
11880         * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
11881         (machopic_output_function_base_name): New; print the true pic label.
11882         (machopic_classify_ident): Pic Base is always a defined data.
11883         * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
11884         * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
11885
11886         * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
11887         if they are not floating point registers.
11888
11889         PR c/10962
11890         * ggc.h: Add header guards.
11891         * c-decl.c (finish_struct): Sort fields if
11892         number greater than 15 and there are no
11893         anonymous structs/unions.
11894         * c-common.h: Include ggc.h.
11895         (sorted_fields_type): New struct.
11896         (field_decl_cmp): New prototype.
11897         (resort_sorted_fields): New prototype.
11898         (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
11899         * c-tree.h: (lang_type): Use pointer to sorted_fields_type
11900         as s, removing other fields.
11901         * c-typeck.c (lookup_field): Use s in lang_type.
11902         These were mostly moved from cp/class.c:
11903         * c-common.c (field_decl_cmp): New static function.
11904         (field_decl_cmp): New function.
11905         (resort_sorted_fields): New function.
11906
11907 2003-07-16  Geoffrey Keating  <geoffk@apple.com>
11908
11909         * config/darwin.c (machopic_select_section): Use decl_readonly_section
11910         to do most of the work.
11911
11912 2003-07-16  Hans-Peter Nilsson  <hp@bitrange.com>
11913
11914         * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
11915         * config/mmix/mmix.c: Convert functions to ISO C90.
11916         (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
11917         formatting.
11918         (mmix_get_hard_reg_initial_val): Tweak section head comment.
11919
11920 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
11921
11922         * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
11923
11924 2003-07-16  Jakub Jelinek  <jakub@redhat.com>
11925
11926         * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
11927         (uw_update_context_1): Use it.
11928         * config/rs6000/rs6000.c (insn_after_throw): Remove.
11929         (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
11930         in parent frame if _Unwind_* called directly instead of through
11931         .plt.
11932         (rs6000_emit_eh_toc_restore): Remove.
11933         (rs6000_emit_prologue): Update stack pointer before doing any saving
11934         if current_function_calls_eh_return.  Generate unwind info for $r2.
11935         (rs6000_emit_epilogue): Restore stack pointer after doing all
11936         restoring if current_function_calls_eh_return.  Restore $r2.
11937         * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
11938         * config/rs6000/rs6000.md (eh_return): Remove call to
11939         rs6000_emit_eh_toc_restore.
11940         * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
11941         * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
11942
11943 2003-07-15  Jakub Jelinek  <jakub@redhat.com>
11944
11945         * expr.c (emit_block_move): Don't move anything if size is const 0.
11946         (clear_storage): Test against const0_rtx instead of comparing INTVAL
11947         against 0.
11948
11949 2003-07-15  David S. Miller  <davem@redhat.com>
11950
11951         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
11952         emit nop if the last real insn is CALL_INSN.
11953
11954 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
11955
11956         * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
11957         as "nul".
11958         * config/i386/xm-mingw32.h: Change GNU CC to GCC.
11959
11960 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
11961
11962         * config/i386/winnt.c (associated_type): Artificial methods are not
11963         affected by the import/export status of their class unless they are
11964         COMDAT.
11965         (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
11966
11967         * config/i386/winnt.c: Fix GCC copyright comment.
11968
11969 2003-07-16  Gabriel Dos Reis  <gcc@integrable-solutions.net>
11970
11971         PR c++/11531
11972         * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
11973         not recursing on hard error.
11974         (diagnostic_for_decl): Likewise.
11975         * diagnostic.def: Rearrange.
11976
11977 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
11978
11979         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
11980         If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
11981
11982 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
11983             Richard Henderson  <rth@redhat.com>
11984
11985         * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
11986         to decide if to access a _Unwind_Ptr or a _Unwind_Word.
11987         (_Unwind_SetGR): Likewise.
11988         (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
11989         (Unwind_SpTmp): New typedef.
11990         (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
11991         (uw_update_context): Use _Unwind_GetPtr.
11992         (init_dwarf_reg_size_table): Move above uw_init_context_1.
11993         (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
11994         Use _Unwind_SetSpColumn.
11995         (uw_install_context_1): Don't initialize dwarf_reg_size_table.
11996         Use _Unwind_GetPtr.
11997
11998 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
11999
12000         * c.opt: Document more options.
12001         * toplev.c (documented_lang_options): Remove all local help strings.
12002
12003 2003-07-15  Mark Mitchell  <mark@codesourcery.com>
12004
12005         PR debug/11473
12006         * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
12007         base classes.
12008
12009 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
12010
12011         PR target/10795
12012         * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
12013         swap comparison operands if doing so would generate an
12014         unrecognizable insn.
12015
12016 2003-07-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
12017
12018         PR optimization/11320
12019         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
12020         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
12021         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
12022         current_sched_info->compute_jump_reg_dependencies. Record which
12023         registers are used and which registers are set by the jump.
12024         Clear deps->reg_conditional_sets after a barrier.
12025         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
12026         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
12027         (init_deps): Initialize reg_conditional_sets.
12028         (free_deps): Clear reg_conditional_sets.
12029         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
12030         Mark registers live on entry of the fallthrough block and conditionally
12031         set as set by the jump. Mark registers live on entry of non-fallthrough
12032         blocks as used by the jump.
12033         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
12034         Mark new parameters as unused.
12035
12036 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
12037
12038         * doc/invoke.texi: Resync MIPS -march documentation.
12039
12040 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
12041
12042         * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
12043         (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
12044         (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
12045         * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
12046         (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
12047         (mips_issue_rate): Handle PROCESSOR_R9000.
12048         (mips_use_dfa_pipeline_interface): Likewise.
12049         * config/mips/9000.md: New file.
12050         * config/mips/mips.md: Include it.
12051         (define_attr cpu): Add r9000.
12052         (mulsi3_mult3): Use "mul" for rm9000 code.
12053
12054 2003-07-15  Stan Cox  <scox@redhat.com>
12055
12056         * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
12057         (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
12058         (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
12059         * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
12060         (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
12061         (mips_issue_rate): Handle PROCESSOR_R7000.
12062         (mips_use_dfa_pipeline_interface): Likewise.
12063         * config/mips/7000.md: New file.
12064         * config/mips/mips.md: Include it.
12065         (define_attr cpu): Add r7000.
12066         (mulsi3_mult3): Use "mul" for rm7000 code.
12067
12068 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
12069
12070         * config/mips/mips.md (define_attr type): Add condmove.  Use it for
12071         the conditional move patterns.
12072         * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
12073         Check for condmove type.
12074         (ir_vr54_arith): Add move type.
12075         * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
12076         * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
12077
12078 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
12079
12080         * c-opts.c (print_help): Remove.
12081         (c_common_handle_option): Don't handle --help.
12082         * c.opt: Document some options.
12083         (--help): Remove.
12084         * opts.c (print_filtered_help): New.
12085         (print_help): Use it.
12086
12087 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
12088
12089         * c-common.c (c_common_type_for_mode): Handle V4DFmode.
12090         * tree.c: (build_common_tree_nodes_2): Likewise.
12091         * tree.h (enum tree_index): Add TI_V4DF_TYPE.
12092         (V4DF_type_node): New.
12093
12094         * c-opts.c (push_command_line_include): Don't free deferred_opts,
12095         we'll need it.
12096         (finish_options): Reset init_cursor.
12097
12098 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
12099
12100         * expr.c (expand_assignment): Remove an unused argument
12101         SUGGEST_REG.
12102         * expr.h: Update the prototype.
12103         * function.c: Update the callers.
12104         * stmt.c: Likewise.
12105
12106 2003-07-14  Mark Mitchell  <mark@codesourcery.com>
12107
12108         PR debug/11098
12109         * integrate.c (copy_decl_for_inlining): Do not mark copied decls
12110         as DECL_ABSTRACT.
12111
12112 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
12113
12114         * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
12115         with __cplusplus, not "we must use the C++ compiler's type"
12116         * fixinc/inclhack.def (void_null): Note that Interix needs this.
12117         * fixinc/fixincl.x: Regenerate.
12118
12119 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
12120
12121         * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
12122         and unseen_objects from the global data before calling
12123         __deregister_frame_info_bases.
12124         (examine_objects): Insert objects into the seen_objects list,
12125         not unseen_objects.
12126         (_Unwind_Find_FDE): Always unlock the global object lists, even if
12127         we couldn't allocate a data structure to put in it.
12128
12129         * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
12130         (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
12131         (SET_TYPE_PROTOCOL_LIST): New.
12132         * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
12133         (get_object_reference): Likewise.
12134
12135 2003-07-14  Jan Hubicka  <jh@suse.cz>
12136
12137         * cfglayout.c (locator_file): Break out from ....
12138         (insn_file): ... here.
12139         (locator_line): Break out from ....
12140         (insn_line): ... here.
12141         * rtl.h (locator_file, locator_line): Declare.
12142         (final_start_function): Set proper line/file info.
12143
12144 2003-07-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12145
12146         * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
12147         handled by pp_c_cast_expression.
12148
12149 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
12150
12151         * config/mips/mips.c (mips_expand_prologue): Use a single insn to
12152         allocate 32768 bytes of stack.  Use addition rather than subtraction
12153         when a single insn is enough.
12154         * config/mips/mips.md: Remove insns and splitters for subtracting
12155         constants.
12156         (subsi3): Only accept register operands.
12157         (subsi3_internal): Likewise.  Use for TARGET_MIPS16 as well.
12158         (subdi3_internal_3, subsi3_internal_2): Likewise.
12159         (casesi): Use expand_binop to subtract the lower bound.
12160
12161 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
12162
12163         * config/mips/mips.c (mips_in_small_data_p): Don't handle
12164         TARGET_MIPS16 specially.
12165
12166 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
12167
12168         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
12169         mips_output_aligned_bss.
12170         * config/mips/linux.h: Likewise.
12171         * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
12172         * config/mips/mips.c (mips_output_aligned_bss): New function.
12173
12174         * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
12175         * config/mips/elf64.h: Likewise.
12176
12177         * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
12178         mips_declare_object_name.
12179         (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
12180         * config/mips/elf64.h: As for elf.h.
12181         * config/mips/iris6.h: Likewise.
12182         * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
12183         * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
12184         do...while (0) block.
12185         * config/mips/mips-protos.h (mips_declare_object_name): Declare.
12186         (mips_finish_declare_object): Declare.
12187         * config/mips/mips.c (mips_declare_object_name): New function.
12188         (mips_finish_declare_object): New function.
12189
12190         * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
12191         * config/mips/linux.h: Likewise.
12192
12193         * config/mips/mips.c (inside_function): Delete.
12194         (file_in_function_warning, ignore_line_number): Delete.
12195         (mips_output_filename): Don't warn about changing filenames within
12196         a function.
12197         (mips_output_lineno): Update accordingly.
12198         (mips_output_function_prologue): Don't reset the deleted variables.
12199         * config/mips/mips.h (inside_function): Delete.
12200         (file_in_function_warning, ignore_line_number): Delete.
12201
12202         * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
12203         * config/mips/elf64.h: Likewise.
12204         * config/mips/openbsd.h: Likewise.
12205         * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
12206         * config/mips/linux.h: Likewise.
12207         * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
12208         (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
12209
12210         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
12211         to the list of include files when using gas.
12212         (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
12213         * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
12214         * config/mips/elf64.h: Likewise.
12215         * config/mips/iris5.h: Likewise.
12216         * config/mips/linux.h: Likewise.
12217         * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
12218         * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
12219         (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
12220         * config/mips/sdb.h: ...this new file.
12221
12222 2003-07-14  Douglas Rupp  <rupp@gnat.com>
12223
12224         * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
12225         argument to getcwd; use fixed buffer instead.
12226
12227 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
12228
12229         * fixinc/mkfixinc.sh: Treat OpenBSD normally.
12230         * fixinc/fixinc.wrap: Delete.
12231
12232 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
12233
12234         * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
12235         don't have 2.
12236
12237 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
12238
12239         * ggc-page.c (struct globals): Add new fields to keep track of the
12240         total allocated memory and overhead.
12241         (ggc_print_statistics): Print them.
12242         (ggc_alloc): Keep track of the total allocated memory and the
12243         overhead.
12244
12245         * tree.c (dump_tree_statistics): Increase spacing.
12246         (enum tree_node_kind): Move to ...
12247         * tree.h (enum tree_node_kind): ... here.
12248         (tree_node_counts, tree_node_sizes): Declare.
12249
12250 2003-07-14  James A. Morrison  <ja2morri@student.math.uwaterloo.ca>
12251
12252         * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
12253
12254 2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12255
12256         PR optimization/11440
12257         * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
12258         SIGN_EXTRACT SETs.
12259
12260 2003-07-14  Alan Modra  <amodra@bigpond.net.au>
12261
12262         * doc/tm.texi (BLOCK_REG_PADDING): Describe.
12263         * expr.h (struct locate_and_pad_arg_data): Add where_pad.
12264         (emit_group_load, emit_group_store): Adjust declarations.
12265         Remove most occurrences of #ifdef TREE_CODE.
12266         * expr.c (emit_group_load): Add "type" param, and use
12267         BLOCK_REG_PADDING to determine need for a shift.  Optimize non-
12268         aligned accesses if !SLOW_UNALIGNED_ACCESS.
12269         (emit_group_store): Likewise.
12270         (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
12271         emit_group_load and emit_group_store calls.
12272         * calls.c (store_unaligned_arguments_into_pseudos): Tidy.  Use
12273         BLOCK_REG_PADDING to determine whether we need endian_correction.
12274         (load_register_parameters): Localize vars.  Handle shifting of
12275         small values to the correct end of regs.  Adjust emit_group_load
12276         call.
12277         (expand_call, emit_library_call_value_1): Adjust emit_group_load
12278         and emit_group_store calls.
12279         * function.c (assign_parms): Set mem alignment for stack slots.
12280         Adjust emit_group_store call.  Store values at the "wrong" end
12281         of regs to the stack.  Use BLOCK_REG_PADDING.
12282         (locate_and_pad_parm): Save where_pad.
12283         (expand_function_end): Adjust emit_group_load call.
12284         * stmt.c (expand_value_return): Adjust emit_group_load call.
12285         * Makefile.in (calls.o): Depend on $(OPTABS_H).
12286         * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
12287         (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
12288         (MUST_PASS_IN_STACK): Define.
12289         (BLOCK_REG_PADDING): Define.
12290         * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
12291         (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
12292         * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
12293         (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
12294         Act on AGGREGATES_PAD_UPWARD_ALWAYS.
12295
12296 2003-07-13  Aaron W. LaFramboise  <awlaframboise@aol.com>
12297
12298         * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
12299
12300 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12301
12302         * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
12303         both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
12304
12305 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
12306
12307         PR other/11123
12308         * toplev.c: Don't cut off option names.
12309
12310 2003-07-13  Andreas Jaeger  <aj@suse.de>
12311
12312         * c-decl.c (link_hash_hash): Avoid warning about casting pointer
12313         to integer of different size.
12314
12315 2003-07-13  Kazu Hirata  <kazu@cs.umass.edu>
12316
12317         * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
12318         to (eq (and X 1) 0).
12319
12320 2003-07-13  Andreas Jaeger  <aj@suse.de>
12321
12322         * config.gcc: Add pmmintrin.h for x86_64-*-*.
12323
12324 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
12325
12326         * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
12327         (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
12328         list.  Move these all together down by cpplib.
12329
12330         * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
12331         definition of CPPCHAR_SIGNED_T.
12332
12333         * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
12334         * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
12335         * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
12336
12337         * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
12338         * cppinit.c (cpp_create_reader): Likewise.
12339
12340         * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
12341         * cpptrad.c: Likewise.  All callers changed.
12342         * cpplib.c: All callers changed.
12343         * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
12344         * hashtable.h: Define GTY(x) to nothing here too.
12345
12346 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12347
12348         * stor-layout.c (compute_record_mode): Remove very obsolete test
12349         that forces BLKmode for records with fields crossing word boundary.
12350
12351 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
12352
12353         * Makefile.in: Remove orphan reference to acconfig.h.
12354
12355 2003-07-13  Andreas Jaeger  <aj@suse.de>
12356
12357         * cgraphunit.c: Convert prototypes to ISO C90.
12358
12359 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
12360
12361         * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
12362         (for OpenBSD).
12363         * fixinc/fixincl.x: Rebuild.
12364
12365 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
12366
12367         * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
12368         i?86-*-*.  Use correct name of cache variable.
12369         * configure: Regenerate.
12370
12371 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
12372
12373         * config/alpha/alpha.c: Fix comment typos.
12374         * config/alpha/alpha.md: Likewise.
12375         * config/arm/arm.c: Likewise.
12376         * config/arm/arm.md: Likewise.
12377         * config/arm/lib1funcs.asm: Likewise.
12378         * config/avr/avr.md: Likewise.
12379         * config/arm/README-interworking: Fix typos.
12380
12381 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
12382
12383         * c-format.c: Fix comment formatting.
12384         * c-typeck.c: Likewise.
12385         * coverage.c: Likewise.
12386         * cppcharset.c: Likewise.
12387         * cpplib.c: Likewise.
12388         * dbxout.c: Likewise.
12389         * gcov-io.h: Likewise.
12390         * toplev.c: Likewise.
12391
12392 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
12393
12394         * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
12395         fix.
12396
12397 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
12398
12399         * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
12400         uses three-argument AC_DEFINE so no acconfig.h entries are
12401         needed.
12402         (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
12403         which contains the GAS version number as a scaled integer.
12404         (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers.  Add
12405         ability to check for ELF assembler.
12406         (gcc_GAS_CHECK_FEATURE): New macro.
12407         * configure.in: Use gcc_AC_CHECK_TYPE.  Rewrite all
12408         assembler feature checks using gcc_GAS_CHECK_FEATURE.
12409         Use three-argument AC_DEFINE everywhere.
12410         * acconfig.h: Deleted.
12411         * config.in, configure: Regenerate.
12412
12413 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
12414
12415         * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
12416         (on OpenBSD).
12417         * fixinc/fixincl.x: Regenerate.
12418
12419         * fixinc/inclhack.def (gnu_types): Improve comment.
12420
12421 2003-07-12  Andreas Jaeger  <aj@suse.de>
12422
12423         * fp-test.c (main): Use ISO C90 prototype.
12424
12425         * version.c: Remove unneded include of ansidecl.h.
12426
12427         * cgraph.h: Convert prototypes to ISO C90.
12428         * cgraph.c: Likewise.
12429         * fix-header.c: Likewise.
12430         * ra.h: Likewise.
12431         * protoize.c: Likewise.
12432
12433 2003-07-12  Jan Hubicka  <jh@suse.cz>
12434
12435         * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
12436         warning.
12437
12438 2003-07-12  Jan Hubicka  <jh@suse.cz>
12439                                Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12440
12441         * cgraph.c (cgraph_max_uid): New global variable.
12442         (cgraph_node): Set uid field.
12443         (create_edge): Keep inline flags consistent.
12444         (dump_cgraph): Dump more info.
12445         * cgraph.h (struct cgraph_local_info): Remove inline_many and
12446         can_inline_once; add inlinable, disgread_inline_limits, and self_insn
12447         (struct cgraph_global_info): Add insns, calls, cloned_times,
12448         will_be_output.
12449         (struct cgraph_node): Add uid.
12450         (struct cgraph_edge): Add inline_call.
12451         (cgraph_max_uid, cgraph_inline_p): Declare.
12452         * cgraph.c: Include params.h and fibheap.h
12453         (cgraph_mark_functions_to_inline_once): Kill.
12454         (INSNS_PER_CALL): New constant.
12455         (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
12456         static variables.
12457         (cgraph_finalize_function): Do not analyze inlining.
12458         (cgraph_finalize_compilation_unit): Set inlining attributes.
12459         (cgraph_mark_functions_to_output): More consistency checks.
12460         (cgraph_optimize_function): Set current_function_decl to NULL.
12461         (cgraph_expand_function): Use new inline flags.
12462         (cgraph_postorder): Expand from cgraph_expand_functions.
12463         (INLINED_TIMES, SET_INLINED_TIMES): New macros.
12464         (cgraph_inlined_into, cgraph_inlined_callees,
12465         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
12466         cgraph_mark_inline, cgraph_check_inline_limits,
12467         cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
12468         cgraph_decide_inlining, cgraph_inline_p): New functions.
12469         * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
12470         PARAM_INLINE_UNIT_GROWTH): New parameters.
12471         * tree-inline.c (struct inline_data): New field current_decl.
12472         (expand_call_inline): Avoid forward declarations; use
12473         inlinable_function_p.
12474         (optimize_inline_calls): Set id.current_decl.
12475
12476 2003-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
12477
12478         * configure.in: Remove wrongly added definition of
12479         local_prefix.
12480         * configure: Regenerate.
12481
12482 2003-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
12483
12484         * rtl.def (NOTE): Do not use padding.
12485
12486 2003-07-11  Dara Hazeghi  <dhazeghi@yahoo.com>
12487
12488         * doc/install.tex: Update required binutils for i?86-*-linux*
12489
12490 2003-07-11  Richard Henderson  <rth@redhat.com>
12491
12492         * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
12493
12494 2003-07-11  Mark Mitchell  <mark@codesourcery.com>
12495
12496         * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
12497         TRANSLATION_UNIT_DECL as top_level.
12498
12499 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
12500
12501         * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
12502         then fall back to cmpstrM.
12503         * builtins.c (expand_builtin_memcmp): Likewise.
12504         * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
12505         (s390_expand_cmpmem): ... this.
12506         * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
12507         cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
12508         from cmpstr* patterns.  Rename call to s390_expand_cmpstr
12509         to s390_expand_cmpmem.
12510         * config/s390/s390.c (s390_expand_cmpstr): Rename to...
12511         (s390_expand_cmpstr): ... this.  Rename cmpstr* instructions
12512         to cmpmem*.
12513         * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
12514         cmpstr* patterns.
12515         * doc/md.texi (cmpstrM): Describe as String compare insn, not
12516         Block compare insn.
12517         (cmpmemM): Add.
12518
12519 2003-07-11  Loren James Rittle  <ljrittle@acm.org>
12520
12521         * config/i386/freebsd.h (SET_ASM_OP): Remove.
12522         (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
12523         (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
12524          MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
12525
12526 2003-07-11  Richard Henderson  <rth@redhat.com>
12527
12528         * function.c (assign_parms): Don't recombine complex args if
12529         fnargs is unchanged from orig_fnargs.
12530         (split_complex_args): Return args without complex before copying.
12531         Re-layout the modified parameters.
12532
12533 2003-07-11  J"orn Rennecke <joern.rennecke@superh.com>
12534
12535         * regclass.c (choose_hard_reg_mode): Add third argument.
12536         Changed all callers.
12537         * rtl.h (choose_hard_reg_mode): Update declaration.
12538         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
12539         Take HARD_REGNO_CALL_PART_CLOBBERED into account.
12540
12541 2003-07-11  Geoffrey Keating  <geoffk@apple.com>
12542
12543         * c-decl.c (finish_decl): Handle 'used' here...
12544         * cgraphunit.c (cgraph_finalize_function): ... and here ...
12545         * c-common.c: (handle_used_attribute): ... not here.
12546
12547         * configure.in (onstep): Support --enable-intermodule.
12548         * Makefile.in (OBJS-common): New.
12549         (OBJS-md): New.
12550         (OBJS-archive): New.
12551         (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
12552         (OBJS-onestep): New.
12553         (libbackend.a): Support @onestep@.
12554         (libbackend.o): New.
12555         * configure: Regenerate.
12556
12557         * c-common.h (c_reset_state): New prototype.
12558         (c_parse_file): New prototype.
12559         (finish_file): Move prototype from c-tree.h.
12560         * c-decl.c: Include <hashtab.h>.
12561         (builtin_decls): New.
12562         (current_file_decl): New.
12563         (duplicate_decls): Add extra parameter. Change all callers.  Don't
12564         output duplicate common symbols.
12565         (link_hash_hash): New.
12566         (link_hash_eq): New.
12567         (poplevel): Handle popping of the top level.
12568         (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
12569         (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
12570         (pushdecl_top_level): Likewise.
12571         (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
12572         (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
12573         (finish_decl): Handle TRANSLATION_UNIT_DECL.
12574         (merge_translation_unit_decls): New.
12575         (c_write_global_declarations): New.
12576         (c_reset_state): New.
12577         (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
12578         * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
12579         * c-objc-common.c (c_cannot_inline_tree_fn): Handle
12580         TRANSLATION_UNIT_DECL.
12581         (c_objc_common_finish_file): Call merge_translation_unit_decls.
12582         * c-opts.c (in_fnames): Rename from in_fname.
12583         (c_common_decode_option): Handle multiple input filenames.
12584         (c_common_post_options): Likewise.
12585         (c_common_parse_file): Likewise; also, call c_parse_file rather than
12586         yyparse.
12587         * c-parse.in: Move cleanup code to c_parse_file.
12588         (free_parser_stacks): Move contents to c_parse_file.
12589         (c_parse_file): New.
12590         * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
12591         for integer types.
12592         (C_DECL_FILE_SCOPE): New.
12593         (finish_file): Move prototype to c-common.h.
12594         (merge_translation_unit_decls): New prototype.
12595         (comptypes): Add extra parameter to prototype.
12596         (c_write_global_declarations): New prototype.
12597         * c-typeck.c (tagged_types_tu_compatible_p): New.
12598         (function_types_compatible_p): Add extra parameter, change all callers.
12599         (type_lists_compatible_p): Likewise.
12600         (comptypes): Likewise.
12601         (struct tagged_tu_seen): New.
12602         (tagged_tu_seen_base): New.
12603         (build_unary_op): Handle TRANSLATION_UNIT_DECL.
12604         (c_mark_addressable): Remove #if 0 code.
12605         * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
12606         comment explaining why it shouldn't have to.
12607         * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
12608         options.
12609         * cppinit.c (cpp_read_next_file): New.
12610         (cpp_read_main_file): Use it.
12611         * cpplib.c (undefine_macros): New.
12612         (cpp_undef_all): New.
12613         * cpplib.h (cpp_read_next_file): Prototype.
12614         (cpp_undef_all): Prototype.
12615         * langhooks-def.h (write_global_declarations): Remove prototype.
12616         * toplev.h (write_global_declarations): Add prototype.
12617         * tree.c (decl_type_context): Use switch statement, handle
12618         TRANSLATION_UNIT_DECL.
12619         * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
12620         (TRANSLATION_UNIT_DECL): New kind of tree.
12621         * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
12622         * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
12623         * doc/invoke.texi: Make attempt to document new functionality.
12624
12625         2003-05-19  Per Bothner <bothner@apple.com>
12626
12627         * gcc.c (combine_inputs): New.
12628         (process_command): Set combine_inputs.
12629         (do_spec_1): Handle combine_inputs.
12630         (main): Likewise.
12631
12632 2003-07-10  James E Wilson  <wilson@tuliptree.org>
12633
12634         PR optimization/9745
12635         * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
12636         loop_insn_emit_before.
12637         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
12638
12639 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
12640
12641         * cppcharset.c: Fix comment.
12642         (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
12643         (EILSEQ): #define to EINVAL if not already defined.
12644         (convert_using_iconv): #if out when !HAVE_ICONV.
12645         (init_iconv_desc): Handle !HAVE_ICONV here...
12646         (cpp_init_iconv): ...not here.
12647
12648 2003-07-11  Neil Booth  <neil@daikokuya.co.uk>
12649
12650         * common.opt: More --help messages.
12651         * opts.c (print_help): Use puts().
12652         * toplev.c (f_options): Remove help text.
12653         (display_help): Don't dump f_options.
12654
12655 2003-07-11  Nathanael Nerode  <neroden@gcc.gnu.org>
12656
12657         * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
12658         Move i?86-*-interix* to the don't-fix list.
12659         * fixinc/fixinc.interix: Delete with extreme prejudice.
12660
12661 2003-07-10  Dara Hazeghi  <dhazeghi@yahoo.com>
12662
12663         PR bootstrap/10758
12664         * doc/install.texi: Document requirements for ia64-*-hpux* target.
12665
12666 2003-07-10  Roger Sayle  <roger@eyesopen.com>
12667
12668         * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
12669
12670 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
12671
12672         * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
12673         one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
12674         one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
12675         convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
12676         convert_no_conversion, convert_using_iconv): New functions.
12677         (APPLY_CONVERSION): New macro.
12678         (struct conversion, conversion_tab): New data structure.
12679         (init_iconv_desc): Check conversion_tab for a custom conversion
12680         primitive before trying to use iconv.
12681         (convert_cset): Deleted.
12682         (cpp_init_iconv): Use UTF- terminology, not UCS-.
12683         (_cpp_destroy_iconv): Update to match.
12684         (_cpp_valid_ucn): We don't need iconv to implement UCNs.
12685         (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
12686         (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
12687         (_cpp_interpret_string_notranslate): New function, moved here
12688         from cpplib.c.
12689
12690         * cpphash.h (convert_f, struct cset_converter): New types.
12691         (struct cpp_reader): narrow_cset_desc and wide_cset_desc
12692         are now struct cset_converter, not bare iconv_t.
12693         Update prototypes.
12694         * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
12695         all callers changed.
12696
12697 2003-07-10  Kelley Cook  <kelleycook@wideopenwest.com>
12698
12699         * Makefile.in (options.h): Depend on Makefile.  Add move-if-change
12700         to opts.sh command line.
12701         * opts.sh: Write to temporary files with a move-if-change at the end.
12702
12703 2003-07-10  Denis Chertykov  <denisc@overta.ru>
12704             Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12705
12706         * combine.c (gen_binary): Handle the CLOBBER rtx and
12707         don't build a binary operation with it.
12708
12709 2003-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12710
12711         * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
12712         store_killed_after, store_killed_before): Keep track of the correct
12713         dependency function to use.
12714
12715 2003-07-10  Steven Bosscher  <steven@gcc.gnu.org>
12716         * toplev.c (do_compile): Don't try to open dump files before
12717         lang_dependent_init initializes dump_base_name.
12718
12719 2003-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12720
12721         * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
12722         Use ARRAY_SIZE.
12723         * config/frv/frv.c (frv_expand_builtin): Likewise.
12724         * config/sh/sh.c (sh_media_init_builtins): Likewise.
12725
12726 2003-07-09  Mark Mitchell  <mark@codesourcery.com>
12727
12728         PR c++/10032
12729         * doc/invoke.texi (C++ Dialect Options): Change documentation of
12730         -fpermissive.
12731
12732 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
12733
12734         * tm.texi (RETURN_ADDR_OFFSET): Document.
12735
12736 2003-07-10  Nathan Sidwell  <nathan@codesourcery.com>
12737
12738         * gcov-io.h: Update documentation.
12739         (GCOV_UNSIGNED2STRING): New.
12740         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
12741         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
12742         GCOV_TAG_SUMMARY_LENGTH): Adjust.
12743         (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
12744         GCOV_TAG_COUNTER_NUM): New.
12745         (GCOV_BLOCK_SIZE): Number of words.
12746         (gcov_var): Adjust buffer type.
12747         * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
12748         (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
12749         count, not byte count.
12750         (gcov_open): Adjust overread init.
12751         (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
12752         gcov_write_string, gcov_write_tag, gcov_write_length,
12753         gcov_write_tag_length): Adjust.
12754         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
12755         (gcov_sync, gcov_seek): Adjust.
12756         * gcov-dump.c (print_usage): Show gcc version only.
12757         (dump_file): Use GCOV_UNSIGNED2STRING.
12758         (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
12759         * gcov.c (print_version): Show gcc version only.
12760         (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
12761         GCOV_TAG_*_NUM macros.
12762         (read_count_file): Use GCOV_UNSIGNED2STRING. Use
12763         GCOV_TAG_COUNTER_LENGTH.
12764         * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
12765         Use GCOV_TAG_COUNTER_NUM.
12766         * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
12767         (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
12768
12769 2003-07-10  Andreas Schwab  <schwab@suse.de>
12770
12771         * gcov-dump.c (dump_file): Fix missing address operator.
12772
12773 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
12774
12775         PR c/11449
12776         * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
12777         of HOST_WIDE_INT.
12778         (fold_single_bit_test): If sign_bit_p() fails, assume that the
12779         bit being tested is not a sign bit.
12780
12781 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
12782
12783         * config/h8300/h8300.md (a peephole2): New.
12784
12785 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
12786
12787         2001-12-13  Alexandre Oliva  <aoliva@redhat.com>
12788         * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
12789         from ld-linux.so.2 to ld.so.1.
12790         2001-11-18  Alexandre Oliva  <aoliva@redhat.com>
12791         * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
12792         * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
12793         nor -Wl,-rpath-link.
12794         (LIB_SPEC): Add -rpath-link if !static.
12795         2001-08-22  Alexandre Oliva  <aoliva@redhat.com>
12796         * config/mn10300/mn10300.c (mn10300_protect_label): New
12797         variable.
12798         * config/mn10300/linux.h (PRINT_OPERAND,
12799         PRINT_OPERAND_ADDRESS): Set it during their execution.
12800         (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
12801         mn10300_protect_label is set.
12802         * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
12803         -Wl,-rpath-link.
12804         (LIB_SPEC, STARTFILE_SPEC): Define.
12805         2001-05-11  Alexandre Oliva  <aoliva@redhat.com>
12806         * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
12807         FLOAT_BIT_ORDER_MISMATCH.
12808         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
12809         * config.gcc (am33_2.0-*-linux*): Added.
12810         * config/mn10300/linux.h: New.
12811         * config/mn10300/t-linux: New.
12812
12813 2003-07-10  Andreas Jaeger  <aj@suse.de>
12814
12815         * fold-const.c: Properly wrap prototypes.
12816
12817 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
12818
12819         2003-06-16  Alexandre Oliva  <aoliva@redhat.com>
12820         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
12821         Moved from...
12822         * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
12823         * config/mn10300/mn10300.h: GTY-declare it.
12824         2003-06-11  Alexandre Oliva  <aoliva@redhat.com>
12825         * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
12826         prototype.  Use incoming RTL argument.
12827         2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
12828         * config/mn10300/mn10300.md (int_label): Move C statements...
12829         (GOTaddr2picreg): ... here.
12830         2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
12831         * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
12832         * config/mn10300/mn10300.c (mn10300_encode_section_info):
12833         ... here.  New function.
12834         (TARGET_ENCODE_SECTION_INFO): Define to it.
12835         2001-11-04  Alexandre Oliva  <aoliva@redhat.com>
12836         * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
12837         pattern name.
12838         (mn10300_loadPC): Define as insn splittable after reload.
12839         2001-05-13  Alexandre Oliva  <aoliva@redhat.com>
12840         * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
12841         be defined in .rodata even in PIC, now that the assembler
12842         supports that.
12843         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
12844         * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
12845         symbol take an underscore prefix.
12846         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
12847         * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
12848         legitimize_pic_address): Declare.
12849         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
12850         the PIC register as fixed.
12851         (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
12852         (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
12853         PIC.
12854         (LEGITIMATE_PIC_OPERAND_P): Define.
12855         (PIC_OFFSET_TABLE_REGNUM): Define.
12856         (GOT_SYMBOL_NAME): Define.
12857         (SYMBOLIC_CONST_P): Define.
12858         (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
12859         symbols.
12860         (MN10300_GLOBAL_P): Test it.
12861         (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
12862         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
12863         * config/mn10300/mn10300.c (print_operand): Handle unspec.
12864         (expand_prologue): Set PIC register.
12865         (call_address_operand): Don't match SYMBOL_REFs in PIC.
12866         (legitimize_address): Call legitimize_pic_address.
12867         (legitimize_pic_address): New fn.
12868         (legitimate_pic_operand_p): New fn.
12869         * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
12870         (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
12871         UNSPEC_PLT): New constants.
12872         (pop_pic_reg): New insn.
12873         (movsi): Adjust non-PIC addresses.
12874         (builtin_setjmp_receiver): Restore the PIC register.
12875         (casesi): New insn.
12876         (call): Adjust non-PIC addresses.
12877         (int_label, GOTaddr2picreg): New expands.
12878         (am33_loadPC): New insn.
12879         (mn10300_loadPC): New expand.
12880         (call_next_insn): New insn.
12881         (add_GOT_to_pic_reg): New expand.
12882         (symGOT2reg, symGOT2reg_i): New expands.
12883         (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
12884         (sym2PIC, sym2PLT): New expands.
12885
12886 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
12887
12888         * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
12889         2001-05-01  Alexandre Oliva  <aoliva@redhat.com>
12890         * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
12891         to flag_unsafe_math_optimizations.
12892         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
12893         * config/mn10300/mn10300.c (expand_prologue): Mark
12894         FP-register-saving insns as frame-related.
12895         2001-02-13  Alexandre Oliva  <aoliva@redhat.com>
12896         * config/mn10300/mn10300.c
12897         (mn10300_get_live_callee_saved_regs): Don't search past
12898         LAST_EXTENDED_REGNUM.
12899         (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
12900         * config/mn10300/mn10300.md: Remove excessive line breaks from
12901         `@' output patterns that were accounted as additional
12902         alternatives.
12903         * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
12904         Re-introduce changes accidentally removed in Richard Sandiford's
12905         2000-12-05's patch.
12906         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
12907         Re-instate am33-2 lost in merge from net GCC.
12908         2000-08-26  Alexandre Oliva  <aoliva@redhat.com>
12909         * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
12910         floating-point registers.
12911         2000-08-07  Alexandre Oliva  <aoliva@redhat.com>
12912         * config/mn10300/mn10300.md (movdf): Revert some am33-specific
12913         pessimizations that had gone in on 2000-05-08.
12914         2000-06-28  Graham Stott  <grahams@cygnus.co.uk>
12915         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
12916         2000-06-22  Graham Stott  <grahams@cygnus.co.uk>
12917         * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
12918         operand 0.
12919         * (movhi): Likewise.
12920         * (movsi): Likewise.
12921         * (movsf): Likewise.
12922         * (movdi): Likewise.
12923         * (movdf): Likewise.
12924         2000-05-24  Alexandre Oliva  <aoliva@cygnus.com>
12925         * config/mn10300/mn10300.c (fp_regs_to_save): New function.
12926         (can_use_return_insn, initial_offset): Add fp_regs_to_save.
12927         (expand_prologue, expand_epilogue): Save and restore FP regs.
12928         2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
12929         * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
12930         2000-05-13  Alexandre Oliva  <aoliva@cygnus.com>
12931         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
12932         subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
12933         Do not clobber cc0.
12934         2000-05-12  Alexandre Oliva  <aoliva@cygnus.com>
12935         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
12936         Discourage the two-argument, longer opcodes.
12937         (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
12938         ones.
12939         * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
12940         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
12941         * config/mn10300/mn10300.md (cmpsf): New pattern.
12942         (branch): Test mdep.fpCC and output fbCC.
12943         * config/mn10300/mn10300.c (print_operand): Output conditions.
12944         (notice_cc_update): Recognize fcmp and set mdep.fpCC.
12945         2000-05-10  Alexandre Oliva  <aoliva@cygnus.com>
12946         * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
12947         mulsf3, divsf3): Use the `F' constraint for FP values.
12948         * config/mn10300/mn10300.c (const_1f_operand): New function.
12949         * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
12950         * config/mn10300/mn10300.md (sqrtsf2): New expand.
12951         (rsqrtsf2): New insn.
12952         2000-05-09  Alexandre Oliva  <aoliva@cygnus.com>
12953         * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
12954         previous check-in.
12955         2000-05-08  Alexandre Oliva  <aoliva@cygnus.com>
12956         * config/mn10300/mn10300.md (abssf2, negdf2): On
12957         TARGET_AM33_2, expand to...
12958         (abssf2_am33_2, negdf2_am33_2): New insns.
12959         (addsf3, subsf3, mulsf3, divsf3): Likewise.
12960         (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
12961         * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
12962         movdi, movdf): Added FP regs.
12963         * invoke.texi (-mam33-2, -mno-am33-2): Document.
12964         2000-04-29  Alexandre Oliva  <aoliva@cygnus.com>
12965         * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
12966         New macros.
12967         (REGNO_AM33_2_FP_P): Renamed to...
12968         (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
12969         (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
12970         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
12971         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
12972         regs from GENERAL_REGS.
12973         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
12974         * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
12975         * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
12976         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
12977         2000-04-23  Alexandre Oliva  <aoliva@cygnus.com>
12978         * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
12979         as FP_REGS.
12980         2000-04-21  Alexandre Oliva  <aoliva@cygnus.com>
12981         * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
12982         (EXTRA_CONSTRAINT): Added OK_FOR_Q.
12983         * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
12984         * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
12985         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
12986         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
12987         AM33/2.0 floating-point registers.
12988         (CONDITIONAL_REGISTER_USAGE): Adjust.
12989         (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
12990         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
12991         (REG_CLASS_FROM_LETTER): Added `f' and `A'.
12992         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
12993         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
12994         (MULTILIB_DIRNAMES): Likewise.
12995         * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
12996         `__AM33_2__' when `-mam33-2' is given.
12997         (TARGET_AM33_2): Define.
12998         (TARGET_SWITCHES): Adjust.
12999         * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
13000         when appropriate.
13001
13002 2003-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
13003
13004         * doc/install.texi: Add missing @.
13005
13006 2003-07-09  Bob Wilson  <bob.wilson@acm.org>
13007
13008         * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
13009
13010 2003-07-09  Aldy Hernandez  <aldyh@redhat.com>
13011
13012         PR/11144
13013         * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
13014
13015 2003-07-09  Nathanael Nerode  <neroden@gcc.gnu.org>
13016
13017         PR bootstrap/11043
13018         * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
13019         "x-crtfini.o" with "crtinit.o", "crtfini.o".
13020
13021         * fixinc/inclhack.def (limits_ifndefs): Add select test.
13022         * fixinc/fixincl.x: Rebuild.
13023
13024         * fixinc/inclhack.def (math_exception):  Improve bypass and comment.
13025         * fixinc/fixincl.x: Rebuild.
13026
13027 2003-07-09  Hans-Peter Nilsson  <hp@bitrange.com>
13028
13029         * doc/install.texi (Configuration): Document the valgrind option
13030         to --enable-checking.
13031
13032 2003-07-09  Jan Hubicka  <jh@suse.cz>
13033
13034         * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
13035
13036 2003-07-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13037
13038         * c-lex.c (cb_ident): Cast cstr.text to const char *.
13039
13040 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
13041
13042         * gcov-io.h: Update documentation.
13043         (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
13044         GCOV_NOTE_MAGIC.
13045         (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
13046         (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
13047         (struct gcov_var): Change buffer's type. Add endian flag.
13048         (gcov_open): Remove mode in libgcov.
13049         (gcov_magic): Prototype.
13050         * gcov-io.c (from_file): New.
13051         (gcov_open): Clear endian flag.
13052         (gcov_magic): New.
13053         (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
13054         pointers.
13055         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
13056         gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
13057         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
13058         * gcov-iov.c (main): Correct cast.
13059         * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
13060         conversion.
13061         (gcov_begin_output): Use GCOV_NOTE_MAGIC.
13062         (coverage_init): Use GCOV_NOTE_SUFFIX.
13063         * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
13064         Rename to gcov_version, and return flag.
13065         (gcov_exit): Use gcov_version.
13066         (__gcov_init): Use gcov_version.
13067         * Makefile.in (coverageexts): Update.
13068         * gcov.c (print_version): Remove endianness conversion.
13069         (create_file_names): Use GCOV_NOTE_SUFFIX.
13070         (read_graph_file): Use gcov_magic.
13071         (read_count_file): Likewise.
13072         * gcov-dump.c (dump_file): Remove endianness conversion, use
13073         gcov_magic.
13074
13075 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
13076
13077         * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
13078         coverage is on.
13079         * configure: Regenerated.
13080         * Makefile.in (ALL_CFLAGS): Correct its comment.
13081
13082 2003-07-08  Mark Mitchell  <mark@codesourcery.com>
13083
13084         * fold-const.c (make_range): Do not access operand 1 for a
13085         zero-operand operator.
13086
13087 2003-07-09  Neil Booth  <neil@daikokuya.co.uk>
13088
13089         * toplev.c (warn_dummy, W_options): Die.
13090         (display_help): Don't print W_options.
13091         * common.opt: Add W_options help from toplev.c.
13092
13093 2003-07-09  Andreas Jaeger  <aj@suse.de>
13094
13095         * opts.c (wrap_help): Only pass int arguments as arguments to
13096         printf's '*' modifier.  Change argument of function.
13097
13098 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
13099
13100         * doc/invoke.texi: Fix misspelling of "@item".
13101
13102 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
13103
13104         * config/i386/i386.md: Remove an old comment about
13105         NOTICE_UPDATE_CC.
13106
13107 2003-07-09  Jan Hubicka  <jh@suse.cz>
13108
13109         * cgraph.c (cgraph_node_name): New function.
13110         (dump_cgraph): Use it.
13111         * cgraph.h (cgraph_dump_file): Declare.
13112         (cgraph_node_name): Declare.
13113         * cgraphunit.c: Include timevar.h
13114         (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
13115         (cgraph_optimize_function): Use TV_INTEGRATION.
13116         (cgraph_mark_local_functions): reorganize dumps.
13117         (cgraph_mark_functions_to_inline_once): Likewise.
13118         (cgraph_optimize): Likewise; use timevar.
13119         * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
13120         * toplev.c (dump_file_index): Add DFI_cgraph.
13121         (dump_file_info): Likewise.
13122         (cgraph_dump_file): New global variable.
13123         (do_compile): Open and close cgraph dump.
13124         * invoke.texi (-d): Document new flag; renumber.
13125
13126 2003-07-08  Roger Sayle  <roger@eyesopen.com>
13127
13128         PR c/11370
13129         * calls.c (emit_call_1): Don't bother popping the arguments off of
13130         the stack after a noreturn function call;  The adjustment is dead.
13131         (expand_call): Likewise.
13132
13133 2003-07-08  Geoffrey Keating  <geoffk@apple.com>
13134
13135         * expr.c (MOVE_MAX_PIECES): Move from here...
13136         * defaults.h (MOVE_MAX_PIECES): ... to here.
13137
13138 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
13139
13140         * Makefile.in (stage1-start): Handle an empty SUBDIRS.
13141
13142 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13143
13144         * genattr.c (internal_dfa_insn_code): Don't prototype.
13145         * genattrtab.c (attr_desc): Add `static_p' field.
13146         (expand_units): Make blockage range and ready cost functions
13147         static.
13148         (write_attr_get): Don't add extern prototypes in C file.  Mark
13149         static functions as appropriate.
13150         (find_attr, make_internal_attr): Initialize static_p.
13151         * genattrtab.h (ATTR_STATIC): New macro.
13152         * genautomata.c (output_internal_reset_func): Mark output function
13153         as inline.
13154         (make_internal_dfa_insn_code_attr): Mark output function as static.
13155
13156 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13157
13158         * genattrtab.h: Add new macros for attr `special' flags.
13159         * genattrtab.c (attr_desc): Reorder/resize fields better.
13160         Use attr `special' macros in all calls to make_internal_attr.
13161         * genautomata.c: Likewise.
13162
13163 2003-07-09  Jan Hubicka  <jh@suse.cz>
13164
13165         * c-common.c (c_estimate_num_insns_1): New static function.
13166         (c_estimate_num_insns): New global function.
13167         * c-common.h (DECL_NUM_STMTS): Rename to...
13168         (DECL_ESTIMATED_INSNS): ... this.
13169         (c_estimate_num_insns): Declare.
13170         * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
13171         * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
13172         * c-semantics.c (add_stmt): Do not account statements.
13173         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
13174         New.
13175         * langhooks.h (lang_hooks_for_tree_inlining): Add
13176         estimate_num_insns
13177         * params.def (max-inline-insns-auto, max-inline-insns-auto): set
13178         to 100.
13179         (max-inline-insns): set to 300.
13180         (min-inline-insns): set to 10.
13181         * tree-inline.c (struct inline_data): Rename inlined_stmts to
13182         inlined-insns.
13183         (INSNS_PER_STMT): Kill.
13184         (inlinable_function_p): Compute and store body size.
13185         (expand_call_inline): Likewise.
13186         (optimize_inline_calls): Likewise.
13187
13188 2003-07-08  James E Wilson  <wilson@tuliptree.org>
13189
13190         PR target/10021
13191         * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
13192         loop over new variable t2 instead of t.
13193
13194 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
13195
13196         PR bootstrap/11455
13197         * config/i386/winnt.c: Replace use of error(), warning() with
13198         error_with_decl(), warning_with_decl(),  throughout.
13199
13200 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
13201
13202         * opts.c (wrap_help): Use unsigned int, not size_t.
13203
13204 2003-07-08  Stephane Carrez  <stcarrez@nerim.fr>
13205
13206         * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
13207         as .file/.loc directives are incompatible with linker relaxation.
13208
13209 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
13210
13211         * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
13212         * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
13213         * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
13214         * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
13215         * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
13216         * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
13217         Escape { and } characters which are not part of range expressions.
13218         * fixinc/fixincl.x: Regenerate.
13219         * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
13220
13221 2003-07-08  Steven Bosscher  <steven@gcc.gnu.org>
13222
13223         PR c/1687
13224         * tree-inline.c (find_alloca_call): Use
13225         walk_tree_without_duplicates, instead of walk_tree.
13226         (find_builtin_longjmp_call): Likewise.
13227         * c-objc-common.c (c_cannot_inline_fn): Likewise.
13228         * c-semantics.c (find_reachable_label): Likewise.
13229
13230 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
13231
13232         PR c/11420
13233         * config/i386/i386.c (ix86_check_movabs): New function.
13234         * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
13235         * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
13236         (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
13237
13238 2003-07-08  Chris Demetriou  <cgd@broadcom.com>
13239
13240         * Makefile.in (install-po): Cope with empty CATALOGS.
13241
13242 2003-07-08  Richard Sandiford  <rsandifo@redhat.com>
13243
13244         * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
13245         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
13246         (SECTION_FUNCTION_TEMPLATE): Delete.
13247         * config/mips/elf.h: As for elf64.h.
13248         (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
13249         * config/mips/linux.h: As for elf.h
13250         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
13251         * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
13252         (EXTRA_SECTION_FUNCTIONS): Remove sdata_section.  Remove the handling
13253         of in_sdata from current_section_name and current_section_flags.
13254         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
13255         * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
13256         (MASK_GP_OPT, TARGET_GP_OPT): Delete.
13257         (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
13258         (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
13259         (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
13260         * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
13261         (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
13262         (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
13263         (override_options): Remove setting of MASK_GPOPT.
13264         (mips_output_external): Use mips_in_small_data_p to check whether a
13265         symbol needs an .extern directive.  Don't emit such directives for
13266         TARGET_EXPLICIT_RELOCS.
13267         (mips_declare_object): Update accordingly.
13268         (mips_select_rtx_section): Call named_section rather than
13269         SMALL_DATA_SECTION.
13270         (mips_select_section): Use default_elf_section_section for everything
13271         except .text string constants.
13272         (mips_in_small_data_p): New function.
13273         (mips_encode_section_info): Remove small data handling.
13274         (mips_unique_section): Delete.
13275         (iris6_section_type_flags): New function.
13276         * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
13277
13278 2003-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13279
13280         PR Target/11453
13281         * pa.md: Disparage all mtsar constraints.
13282         (extzv, extv, insv): Don't fail on length of {32|64}.
13283
13284 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
13285
13286         * system.h: Poison MAP_CHARACTER.
13287         * config/i370/i370-protos.h (mvs_map_char): Delete.
13288         * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
13289         * config/i370/i370.h (MAP_CHARACTER): Delete definition.
13290         (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
13291
13292 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
13293
13294         * toplev.c (randomize): Correct call to time().
13295
13296 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
13297
13298         * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
13299         REG_EQUIV notes as well.
13300
13301 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
13302
13303         * doc/md.texi: Fix the description of addmodecc.
13304
13305 2003-07-07  Zack Weinberg  <zack@codesourcery.com>
13306
13307         * Makefile.in (top_builddir): Set to "..", not ".".
13308         (INTLLIBS, INTLDEPS): Delete.
13309         (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
13310         (LIBDEPS): Add $(LIBICONV_DEP).
13311         (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
13312         (INCLUDES): Replace -I../intl with @INCINTL@.
13313         ($(top_builddir)/intl/libintl.a): Delete rule.
13314         (stage2-start, stage3-start, stage4-start, stageprofile-start,
13315         stagefeedback-start): Use $$ for variable to be evaluated by
13316         shell, not make.
13317         * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
13318         HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
13319         * aclocal.m4: sinclude ../config/progtest.m4.  Add
13320         contents of lcmessage.m4 from gettext distro.
13321         * configure.in: Check for wchar.h and setlocale.  Set
13322         LIBICONV_DEP to the empty string and substitute it.
13323         Call AM_LC_MESSAGES.  Delete AC_ARG_ENABLE for --enable-nls;
13324         this is handled elsewhere.  Use ZW_GNU_GETTEXT_SISTER_DIR,
13325         not CY_GNU_GETTEXT.  Clear $LIBICONV if its text is included
13326         in $LIBINTL, to avoid linking it twice.
13327         * configure, config.in: Regenerate.
13328
13329 2003-07-08  Nathanael Nerode  <neroden@gcc.gnu.org>
13330
13331         * fixinc/mkfixinc.sh: Remove winnt support.
13332         * fixinc/fixinc.winnt: Delete with extreme prejudice.
13333
13334 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
13335
13336         * Makefile.in: Update.
13337         * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
13338         * c.opt: Update documentation.
13339         * common.opt: Add some help text.
13340         * opts.c: Include intl.h.
13341         (wrap_help, print_help): New.
13342         (find_opt, handle_option, common_handle_option): opt_text now
13343         contains the '-'.  Use print_help to output help.
13344         * opts.h (struct cl_option): New member "help".
13345         * opts.sh: Update to handle help text output and to prepend
13346         options with '-'.
13347         * toplev.c (display_help): Remove some help text.
13348
13349 2003-07-07  David Edelsohn  <edelsohn@gnu.org>
13350             Fariborz Jahanian  <fjahanian@apple.com>
13351
13352         * configure.in: Test for PowerPC mfcr field support in assembler.
13353         * config.in, configure: Regenderated.
13354
13355         * config/rs6000/power4.md: Add mfcrf reservation.
13356         * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
13357         * config/rs6000/rs6000.c (mfcr_operation): Define.
13358         (print_operand): Add 'Q' case for mfcrf.
13359         * config/rs6000/rs6000.h (TARGET_MFCRF): New.
13360         * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
13361         (movcc_internal1): Emit optional field operand for mfcr and set
13362         "type" attribute appropriately.
13363         (mfcr SCC): Likewise.
13364         (movesi_from_cr_one): New.
13365
13366 2003-07-07  Roger Sayle  <roger@eyesopen.com>
13367
13368         * config/i386/i386.md: Correct check-in of incorrect version.
13369
13370 2003-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13371
13372         * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
13373         adjacent stdio calls.
13374         * c-decl.c (c_print_identifier): Likewise.
13375         * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
13376         * print-rtl.c (print_rtx): Likewise.
13377         * print-tree.c (print_node_brief, print_node): Likewise.
13378         * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
13379
13380         * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
13381         * config.in, configure: Regenerated.
13382
13383 2003-07-07  Roger Sayle  <roger@eyesopen.com>
13384
13385         PR target/10979
13386         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
13387         Changed to define_expand patterns that copy operand[1] to prevent
13388         it from being clobbered before emitting an atan2?f3_1 insn.
13389         (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
13390         patterns that actually specify the behaviour of x87's FPATAN.
13391
13392 2003-07-07  Jakub Jelinek  <jakub@redhat.com>
13393
13394         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
13395         clearing of SYMBOL_FLAG_LOCAL bit.
13396         If vcall_offset fits into signed 16-bit immediate, use
13397         one instruction for both addition and load.
13398
13399 2003-07-07  Neil Booth  <neil@daikokuya.co.uk>
13400
13401         * opts.c (common_handle_option): Correct handling of the
13402         -falign- switches that do and don't take an argument.
13403
13404 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
13405
13406         * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
13407         today.
13408         (pushhi1_h8300hs): Likewise.
13409
13410 2003-07-07  Andreas Jaeger  <aj@suse.de>
13411
13412         * genextract.c: Convert remaining prototypes to ISO C90.
13413
13414         * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
13415         * fold-const.c (fold_single_bit_test): Likewise.
13416         * diagnostic.c (default_diagnostic_finalizer): Likewise.
13417         * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
13418
13419         * gengtype.c (write_array): Generate ISO C90 prototypes.
13420
13421         * genflags.c (gen_proto): Generate ISO C90 prototypes.
13422
13423 2003-07-07  Roger Sayle  <roger@eyesopen.com>
13424
13425         PR optimization/11059
13426         * expr.c (can_store_by_pieces): Return true if length is zero.
13427         (store_by_pieces): If length is zero and endp is two, abort,
13428         othwerise, if length is zero and endp is not two, return "to".
13429         (clear_by_pieces): Do nothing if length is zero.
13430         (clear_storage): Do nothing if length is zero.
13431         (store_constructor): Simplify code when size is zero, or the
13432         target has already been cleared.  This avoids emitting a
13433         blockage instruction when initializing empty structures.
13434
13435 2003-07-07  Andreas Jaeger  <aj@suse.de>
13436
13437         * mips-tfile.c: Convert prototypes to ISO C90.
13438         * mips-tdump.c: Convert prototypes to ISO C90.
13439
13440 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
13441
13442         * rtl.h (emit_line_note): Take a location_t.
13443         (emit_line_note_force): Remove.
13444         (set_file_and_line_for_statement): Take a location_t.
13445         * tree.g (emit_line_note): Take a location_t.
13446         * emit-rtl.c (emit_line_note): Take a location_t.
13447         (emit_line_note_force): Remove.
13448         * function.c (init_function_start): Adjust emit_line_note call.
13449         (expand_function_end): Use force_next_line_note, not
13450         emit_line_note_force.
13451         * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
13452         * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
13453         genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
13454         genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
13455         genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
13456         genrtl_continue_stmt, genrtl_switch_stmt,
13457         genrtl_asm_stmt): Likewise.
13458         * expr.c (expand_expr): Likewise.
13459         * integrate.c (expand_inline_function): Likewise.
13460         * stmt.c (set_file_and_line_for_stmt): Take a location_t.
13461         (expand_decl_init): Adjust emit_line_note call.
13462
13463 2003-07-07  Dale Johannesen  <dalej@apple.com>
13464
13465         * config/rs6000/darwin-tramp.asm:  Fix trampolines.  PR 10900.
13466
13467 2003-07-07  Andreas Jaeger  <aj@suse.de>
13468
13469         * config/i386/i386-protos.h: Convert prototypes to ISO C90.
13470         * config/i386/i386.c: Likewise.
13471
13472 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
13473
13474         * config/h8300/h8300.md: Use gen_int_mode instead of
13475         GEN_INT (trunc_int_for_mode (...)).
13476
13477 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
13478
13479         * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
13480         2 bytes and then subtract 2 from the stack pointer.
13481         (pushhi1_h8300hs): Likewise.
13482
13483 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
13484
13485         * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
13486         -frandom-seed.
13487         * configure: Regenerated.
13488         * Makefile.in: Remove extraneous comment.
13489         * toplev.c (randomize): Protect against potential multiple calls.
13490         * doc/invoke.texi (-frandom-seed): Document use for in coverage
13491         files.
13492
13493 2003-07-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13494             Eric Botcazou  <ebotcazou@libertysurf.fr>
13495
13496         PR optimization/11198
13497         * alias.c (objects_must_conflict_p): Return 1 if the types have
13498         the same alias set, not if the alias sets only conflict.
13499
13500 2003-07-07  Andrew Pinski  <pinskia@physics.uc.edu>
13501
13502         * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
13503         (convert_cset): Change inbuf to type ICONV_CONST char.
13504         * Makefile.in (LIBS): Add LIBICONV.
13505
13506         * doc/invoke.texi (-falign-functions): Document that
13507         when n is zero then a machine-dependent default is used.
13508         (-falign-labels): Document that when n is zero then a
13509         machine-dependent default is used and that -falign-labels =1
13510         is equivalent to -fno-align-labels.
13511         (-falign-loops): Likewise.
13512         (-falign-jumps): Likewise.
13513
13514 2003-07-06  Art Haas  <ahaas@airmail.net>
13515
13516         * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
13517         initializer syntax.
13518
13519 2003-07-06  James E Wilson  <wilson@tuliptree.org>
13520
13521         PR optimization/9812
13522         * rtl.h (mem_for_const_double): Delete prototype.
13523         * varasm.c (mem_for_const_double): Delete function.
13524         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
13525         config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
13526         (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
13527         * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
13528         (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
13529         * config/m68k/m68k.md (movxf): Add reload_in_progress guard.  Add
13530         comment about confused support for XFmode constants.
13531
13532 2003-07-07  Jan Hubicka  <jh@suse.cz>
13533
13534         * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
13535
13536 2003-07-06  Kazu Hirata  <kazu@cs.umass.edu>
13537
13538         * config/h8300/h8300.c: Fix comment typos.
13539         * config/h8300/h8300.md: Likewise.
13540         * config/i386/athlon.md: Likewise.
13541         * config/i386/i386.c: Likewise.
13542         * config/i386/pentium.md: Likewise.
13543         * config/ia64/ia64.c: Likewise.
13544         * config/ia64/itanium1.md: Likewise.
13545         * config/ia64/itanium2.md: Likewise.
13546         * config/m32r/m32r.md: Likewise.
13547         * config/m68hc11/m68hc11.c: Likewise.
13548         * config/mcore/mcore.c: Likewise.
13549         * config/mips/sr71k.md: Likewise.
13550         * config/mips/t-iris5-as: Likewise.
13551         * config/mmix/mmix.h: Likewise.
13552         * config/ns32k/ns32k.h: Likewise.
13553         * config/ns32k/NOTES: Fix a typo.
13554
13555 2003-07-06  Andreas Jaeger  <aj@suse.de>
13556
13557         * stmt.c: Convert remaining prototypes to ISO C90.
13558         * cfglayout.c: Likewise.
13559         * dbxout.c: Likewise.
13560         * gcc.c: Likewise.
13561         * genemit.c: Likewise.
13562
13563         * basic-block.h: Convert prototypes to ISO C90.
13564         * c-parse.in: Likewise.
13565         * c-pragma.h: Likewise.
13566         * c-typeck.c: Likewise.
13567         * cfghooks.h: Likewise.
13568         * cfgloopanal.c: Likewise.
13569         * dbxout.h: Likewise.
13570         * debug.h: Likewise.
13571         * dwarf2asm.h: Likewise.
13572         * gcov.c: Likewise.
13573         * gengtype-lex.l: Likewise.
13574         * sched-int.h: Likewise.
13575         * timevar.c: Likewise.
13576
13577 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
13578
13579         * c-common.h (c_comon_handle_filename,
13580         c_common_missing_arguement): New.
13581         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
13582         LANG_HOOKS_MISSING_ARGUMENT): New.
13583         * c-opts.c (missing_arg): Rename c_common_missing_argument,
13584         update to be an appropriate langhook.
13585         (c_common_handle_option): Don't handle filenames.
13586         (c_common_handle_filename): New.
13587         * hooks.c (hook_void_constcharptr,
13588         hook_bool_constcharptr_size_t_false): New.
13589         * hooks.h (hook_void_constcharptr,
13590         hook_bool_constcharptr_size_t_false): New.
13591         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
13592         LANG_HOOKS_MISSING_ARGUMENT): New.
13593         (LANG_HOOKS_INITIALIZER): Update.
13594         * langhooks.h (struct lang_hooks): Add handle_filename and
13595         missing_argument.
13596         * opts.c (handle_option): Don't handle filenames here, but ...
13597         (handle_options): ... here.
13598         (common_handle_option): Don't handle missing arguments here.
13599         * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
13600         LANG_HOOKS_MISSING_ARGUMENT): New.
13601
13602 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
13603
13604         * Makfile.in: Remove traces of mbchar.
13605         * c-parse.in (MULTIBYTE_CHARS): Remove.
13606         * config.in (MULTIBYTE_CHARS): Remove.
13607         * configure: Remove --enable-mbchar.
13608         * configure.in: Remove --enable-mbchar.
13609         * mbchar.c, mbchar.h: Remove.
13610         * system.h: Poison MULTIBYTE_CHARS.
13611         * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
13612         * config/linux.h (MULTIBYTE_CHARS): Remove.
13613         * config/svr4.h (MULTIBYTE_CHARS): Remove.
13614         * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
13615
13616 2003-07-06  Andreas Jaeger  <aj@suse.de>
13617
13618         * varray.c (varray_check_failed): Fix typo.
13619
13620         * unroll.c: Convert prototypes to ISO C90.
13621         * varasm.c: Likewise.
13622         * varray.c: Likewise.
13623         * varray.h: Likewise.
13624         * vmsdbgout.c: Likewise.
13625         * xcoffout.c: Likewise.
13626         * xcoffout.h: Likewise.
13627
13628 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
13629
13630         * gcov-io.h: Add a local time stamp.
13631         (struct gcov_info): Add stamp field.
13632         (gcov_truncate): New.
13633         * coverage.c (read_counts_file): Skip the stamp.
13634         (coverage_begin_output): Write the stamp.
13635         (build_gcov_info): Declare and init the stamp.
13636         (coverage_finish): Only unlink data file, if stamp is zero.
13637         * gcov-dump.c (dump_file): Dump the stamp.
13638         * gcov.c (bbg_stamp): New.
13639         (release_structures): Clear bbg_stamp.
13640         (read_graph_file): Read stamp.
13641         (read_count_file): Check stamp.
13642         * libgcov.c (gcov_exit): Check stamp and truncate if needed.
13643
13644 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
13645
13646         * tree.h (default_flag_random_seed): Remove.
13647         * toplev.h (local_tick): Declare.
13648         * tree.c (flag_random_seed, default_flag_random_seed): Move to
13649         toplev.c.
13650         (append_random_chars): Don't call default_flag_random_seed.
13651         * toplev.c (flag_random_seed): Define here. Set local_tick.
13652         (local_tick): Define.
13653         (randomize): New, moved from tree.c.
13654         (print_switch_values): Adjust.
13655         (toplev_main): Call randomize.
13656
13657 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
13658
13659         * tree.h (crc32_string): Declare.
13660         * tree.c (append_random_chars): Remove.
13661         (crc32_string): New.
13662         (get_file_function_name_long): Use crc32_string here.
13663
13664 2003-07-06  Andreas Jaeger  <aj@suse.de>
13665
13666         * gcc.c: Convert prototypes to ISO C90.
13667         * gcc.h: Likewise.
13668         * gcov-dump.c: Likewise.
13669         * gcov-iov.c: Likewise.
13670         * gcse.c: Likewise.
13671         * genattrtab.h: Likewise.
13672         * ggc.h: Likewise.
13673         * global.c: Likewise.
13674         * graph.c: Likewise.
13675         * graph.h: Likewise.
13676         * hosthooks.h: Likewise.
13677         * hooks.h: Likewise.
13678         * hooks.c: Likewise.
13679         * hashtable.h: Likewise.
13680         * hashtable.c: Likewise.
13681         * haifa-sched.c: Likewise.
13682         * integrate.h: Likewise.
13683         * integrate.c: Likewise.
13684         * input.h: Likewise.
13685         * ifcvt.c: Likewise.
13686         * jump.c: Likewise.
13687         * langhooks-def.h: Likewise.  Add extern to prototypes.
13688         * langhooks.c: Likewise.
13689         * langhooks.h: Likewise.
13690         * lcm.c: Likewise.
13691         * local-alloc.c: Likewise.
13692         * loop-init.c: Likewise.
13693         * loop-unroll.c: Likewise.
13694         * loop-unswitch.c: Likewise.
13695         * loop.c: Likewise.
13696         * loop.h: Likewise. Add extern to prototypes.
13697         * machmode.h: Likewise.
13698         * main.c: Likewise.
13699         * mbchar.c: Likewise.
13700         * mbchar.h: Likewise.
13701         * mkdeps.c: Likewise.
13702         * mkdeps.h: Likewise.
13703         * optabs.c: Likewise.
13704         * optabs.h: Likewise.
13705         * output.h: Likewise.
13706         * gccspec.c: Likwise.
13707         * postreload.c: Likewise.
13708         * prefix.c: Likewise.
13709         * prefix.h: Likewise.
13710         * print-rtl.c: Likewise.
13711         * print-tree.c: Likewise.
13712         * profile.c: Likewise.
13713         * read-rtl.c: Likewise.
13714         * real.c: Likewise.
13715         * real.h: Likewise.
13716         * recog.c: Likewise.
13717         * recog.h: Likewise.
13718         * reg-stack.c: Likewise.
13719         * regclass.c: Likewise.
13720         * regmove.c: Likewise.
13721         * regrename.c: Likewise.
13722         * regs.h: Likewise.
13723         * reload.c: Likewise.
13724         * reload.h: Likewise.
13725         * reload1.c: Likewise.
13726         * reorg.c: Likewise.
13727         * resource.c: Likewise.
13728         * resource.h: Likewise.
13729         * rtl-error.c: Likewise.
13730         * rtl.c: Likewise.
13731         * rtl.h: Likewise.
13732         * rtlanal.c: Likewise.
13733         * sbitmap.c: Likewise.
13734         * sbitmap.h: Likewise.
13735         * scan-decls.c: Likewise.
13736         * scan.c: Likewise.
13737         * sched-deps.c: Likewise.
13738         * sched-ebb.c: Likewise.
13739         * sched-int.h: Likewise.
13740         * sched-rgn.c: Likewise.
13741         * sched-vis.c: Likewise.
13742         * sibcall.c: Likewise.
13743         * simplify-rtx.c: Likewise.
13744         * sreal.c: Likewise.
13745         * sreal.h: Likewise.
13746         * ssa-ccp.c: Likewise.
13747         * ssa-dce.c: Likewise.
13748         * ssa.c: Likewise.
13749         * ssa.h: Likewise.
13750         * stack.h: Likewise.
13751         * stmt.c: Likewise.
13752         * stor-layout.c: Likewise.
13753         * stringpool.c: Likewise.
13754         * target.h: Likewise.
13755         * timevar.c: Likewise.
13756         * timevar.h: Likewise.
13757         * tlink.c: Likewise.
13758         * tracer.c: Likewise.
13759         * tree-inline.c: Likewise.
13760         * tree-inline.h: Likewise.
13761         * tree.c: Likewise.
13762         * tree.h: Likewise.
13763
13764 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
13765
13766         * combine.c (nonzero_bits1): Fix a warning.
13767
13768 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
13769
13770         * config/h8300/h8300.c (compute_mov_length): Correct the
13771         length of loading CONST0_RTX (SFmode).
13772
13773 2003-07-05  Nathan Sidwell  <nathan@codesourcery.com>
13774
13775         * toplev.c (output_clean_symbol_name): Remove.
13776         * toplev.h (output_clean_symbol_name): Remove.
13777         * config/alpha/alpha.c (unicosmk_output_module_name): Use
13778         lbasename & clean_symbol_name.
13779
13780 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
13781
13782         * ggc.h: Follow spelling conventions.
13783         * config/i386/i386.c: Likewise.
13784         * config/i386/winnt.c: Likewise.
13785         * config/rs6000/rs6000.c: Likewise.
13786
13787 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
13788
13789         * bt-load.c: Fix comment typos.
13790         * c-incpath.c: Likewise.
13791         * cfg.c: Likewise.
13792         * cfgcleanup.c: Likewise.
13793         * cfgloop.h: Likewise.
13794         * cfgloopmanip.c: Likewise.
13795         * cfgrtl.c: Likewise.
13796         * diagnostic.h: Likewise.
13797         * dwarfout.c: Likewise.
13798         * emit-rtl.c: Likewise.
13799         * et-forest.c: Likewise.
13800         * et-forest.h: Likewise.
13801         * expr.c: Likewise.
13802         * gcse.c: Likewise.
13803         * genattr.c: Likewise.
13804         * jump.c: Likewise.
13805         * langhooks.h: Likewise.
13806         * local-alloc.c: Likewise.
13807         * loop-unroll.c: Likewise.
13808         * loop-unswitch.c: Likewise.
13809         * ra-build.c: Likewise.
13810         * regclass.c: Likewise.
13811         * regmove.c: Likewise.
13812         * rtl.def: Likewise.
13813         * rtlanal.c: Likewise.
13814         * sched-ebb.c: Likewise.
13815         * sched-rgn.c: Likewise.
13816         * simplify-rtx.c: Likewise.
13817         * ssa.c: Likewise.
13818         * tracer.c: Likewise.
13819         * tree.c: Likewise.
13820
13821 2003-07-05  Zack Weinberg  <zack@codesourcery.com>
13822
13823         * cppcharset.c: Use the correct return type for the fallback iconv
13824         macro.
13825
13826 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13827
13828         Blame to Jan Hubicka  <jh@suse.cz>
13829         * cfglayout.c (record_effective_endpoints): Split insns before
13830         first basic block correctly.
13831
13832 2003-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13833
13834         * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
13835         bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
13836         if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
13837
13838 2003-07-05  Andreas Jaeger  <aj@suse.de>
13839
13840         * genattrtab.c (write_attr_get): Revert part of last patch to
13841         always write out a prototype.
13842
13843         * genemit.c (gen_split): Readd lost unused attributes in last
13844         patch.
13845
13846 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13847
13848         * cfgloopmanip.c (force_single_succ_latches): Force latch to be
13849         different from header.
13850
13851 2003-07-05  Andreas Schwab  <schwab@suse.de>
13852
13853         * config/m68k/m68k.c: Remove code protected by CRDS.
13854         * config/m68k/m68k.md: Likewise.
13855
13856 2003-07-05  Neil Booth  <neil@daikokuya.co.uk>
13857
13858         PR driver/11417
13859         * c-opts.c (permit_fortran_options): New.
13860         (c_common_init_options): Accept fortran front end options if
13861         it looks like we might be preprocessing Fortran.
13862         (c_common_handle_option): Don't reject switch if permit_fotran_options.
13863
13864 2003-07-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13865
13866         * genattr.c (internal_dfa_insn_code): Output prototype.
13867         * genattrtab.c: Don't output unnecessary decls, output in ISO C.
13868         * genautomata.c: Likewise.
13869         * genconditions.c: Likewise.
13870         * genemit.c: Likewise.
13871         * genextract.c: Likewise.
13872         * gengenrtl.c: Likewise.
13873         * gengtype.c: Likewise.
13874         * genopinit.c: Likewise.
13875         * genoutput.c: Likewise.
13876         * genpeep.c: Likewise.
13877         * genrecog.c: Likewise.
13878
13879 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
13880
13881         * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
13882         (struct cpp_options): Add narrow_charset, wide_charset,
13883         bytes_big_endian fields.  Remove EBCDIC field.
13884         (cpp_init_iconv, cpp_interpret_string): New external interfaces.
13885
13886         * cpphash.h: Include <iconv.h> if we have it, otherwise
13887         provide a dummy definition of iconv_t.
13888         (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
13889         (_cpp_valid_ucn): Update prototype.
13890         (_cpp_destroy_iconv): New prototype.
13891
13892         * doc/cpp.texi: Document character set handling.
13893         * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
13894         * doc/extend.texi: Delete entire section on multiline strings.
13895         Rewrite section on __FUNCTION__ etc now that these are
13896         variables in C.
13897
13898         * cppucnid.tab, cppucnid.pl: New files.
13899         * cppucnid.h: New generated file.
13900         * cppcharset.c: Include cppucnid.h.  Lots of commentary added.
13901         (iconv_open, iconv, iconv_close): Provide dummy definitions
13902         if !HAVE_ICONV.
13903         (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
13904         _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
13905         emit_numeric_escape, convert_hex, convert_oct, convert_escape,
13906         cpp_interpret_string, narrow_str_to_charconst,
13907         wide_str_to_charconst): New.
13908         (ucn_valid_in_identifier): Use a binary search through the
13909         ucnranges table defined in cppucnid.h, not a long chain of if
13910         statements.
13911         (_cpp_valid_ucn): Add a limit pointer.  Downgrade "universal
13912         character names are only valid in C++ and C99" to a warning.
13913         Issue the "meaning of \[uU] is different in traditional C"
13914         warning here.  Take care not to let iconv see an invalid UCS
13915         value if we get a malformed UCN.  Issue an error if we don't
13916         have iconv.
13917         (cpp_interpret_charconst): Moved here from cpplex.c.  Use
13918         cpp_interpret_string to do the heavy lifting.
13919
13920         * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
13921         narrow_charset, wide_charset fields of options structure.
13922         (cpp_destroy): Call _cpp_destroy_iconv.
13923         * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
13924         (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
13925         (cpp_interpret_charconst): Moved to cppcharset.c.
13926         * cpplib.c (dequote_string): Delete.
13927         (interpret_string_notranslate): New.
13928         (do_line, do_linemarker): Use interpret_string_notranslate.
13929
13930         * Makefile.in (cppcharset.o): Depend on cppucnid.h.
13931
13932         * c-common.c (fname_string, combine_strings): Delete.
13933         * c-common.h (fname_string, combine_strings): Delete prototypes.
13934         * c-lex.c (ignore_escape_flag): Delete.
13935         (cb_ident): Use cpp_interpret_string, not lex_string.
13936         (get_nonpadding_token): New function.
13937         (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
13938         Adjust calls to lex_string.  Don't write *value twice.
13939         (lex_string): Now handles string constant concatenation.
13940         Most of the work handed off to cpp_interpret_string.
13941         Call fix_string_type here.
13942         * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
13943         FUNC_NAME, throughout.
13944         (OBJC_STRING): New token type.
13945         (primary:STRING): No need to call fix_string_type here.
13946         (primary:objc_string): Make that OBJC_STRING.
13947         (objc_string nonterminal): Delete.
13948         (yylexname): Delete code to handle fake string constants.
13949         (yylexstring): Delete entirely.
13950         (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING.  No need
13951         to handle CPP_ATSIGN.
13952
13953         * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
13954         * c-opts.c (missing_arg, c_common_handle_option): Handle
13955         OPT_fexec_charset_ and OPT_fwide_exec_charset_.
13956         (c_common_init): Set cpp_opts->bytes_big_endian, not
13957         cpp_opts->EBCDIC.  Call cpp_init_iconv.
13958         (print_help): Document -fexec-charset= and -fexec-wide-charset=.
13959         (TARGET_EBCDIC): Delete default definition.
13960
13961         * objc/objc-act.c (build_objc_string_object): No need to
13962         handle string constant concatenation.
13963
13964 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
13965
13966         * doc/install.texi: Fix typos.
13967         * doc/invoke.texi: Likewise.
13968         * doc/tm.texi: Likewise.
13969
13970 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
13971
13972         * config/pa/fptr.c: Fix comment typos.
13973         * config/pa/pa-64.h: Likewise.
13974         * config/pa/pa.c: Likewise.
13975         * config/pa/pa.h: Likewise.
13976         * config/rs6000/603.md: Likewise.
13977         * config/rs6000/7xx.md: Likewise.
13978         * config/rs6000/darwin.h: Likewise.
13979         * config/rs6000/freebsd.h: Likewise.
13980         * config/rs6000/rs6000.c: Likewise.
13981         * config/rs6000/rs6000.md: Likewise.
13982         * config/rs6000/spe.h: Likewise.
13983
13984 2003-07-04  Ulrich Weigand  <uweigand@de.ibm.com>
13985
13986         * config/s390/2064.md: Change GNU CC to GCC.
13987         * config/s390/2084.md: Likewise.
13988         * config/s390/fixdfdi.h: Likewise.
13989         * config/s390/linux.h: Likewise.
13990         * config/s390/s390-modes.def: Likewise.
13991         * config/s390/s390-protos.h: Likewise.
13992         * config/s390/s390.c: Likewise.
13993         * config/s390/s390.h: Likewise.
13994         * config/s390/s390.md: Likewise.
13995         * config/s390/s390x.h: Likewise.
13996
13997 2003-07-04  Jeff Law  <law@redhat.com>
13998
13999         PR c/11428
14000         * expr.c (do_store_flag): Pass in the correct result type
14001         when calling fold_single_bit_test.
14002         * fold-const.c (fold_single_bit_test): Use result_type for the
14003         result when folding a sign bit test.
14004
14005 2003-07-04  Neil Booth  <neil@daikokuya.co.uk>
14006
14007         * opts.c (common_handle_options): Negate sense of -falign- switches.
14008
14009 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
14010
14011         * Makefile.in: Replace PWD with PWD_COMMAND.
14012
14013 2003-07-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14014
14015         * cfgloopanal.c (count_strange_loop_iterations): New static function.
14016         (constant_iterations, count_loop_iterations, simple_loop_exit_p):
14017         Handle strange loops.
14018
14019 2003-07-04  Toon Moene  <toon@moene.indiv.nluug.nl>
14020
14021         * install.texi: Even the g77 manpage is derived from
14022         the full g77 manual.
14023
14024 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
14025
14026         * ABOUT-NLS: Delete.
14027         * intl: Delete entire directory.
14028         * aclocal.m4: Include ../config/gettext.m4.  Delete
14029         AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
14030         AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
14031         * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
14032         Remove intl/Makefile from all_outputs.
14033         * configure, config.in: Regenerate.
14034         * Makefile.in: Expunge all references to intl subdirectory.
14035         Add -I../intl to INCLUDES.
14036         * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
14037
14038 2003-07-04  Roger Sayle  <roger@eyesopen.com>
14039
14040         * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
14041         * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
14042
14043 2003-07-04  Danny Smith  <dannysmith@users.sourceforge.net>
14044
14045         PR c++/5287, PR c++/7910, PR c++/11021
14046         * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
14047         dllimport attribute if function is defined at declaration, but
14048         report error instead. Likewise for dllimport'd variable
14049         definitions.  Set implicit TREE_PUBLIC for dllimport'd variables
14050         declared within functions, Report error if dllimport or dllexport
14051         symbol is not global.
14052         (i386_pe_dllimport_p): Ignore dllimport attribute of functions
14053         if defined after declaration or if inlined. Don't allow definition
14054         of static data members of C++ classes. Don't dllimport virtual
14055         methods.
14056         (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
14057         (i386_pe_mark_dllimport): Remove unnecessary checks.
14058         (i386_pe_encode_section_info): Warn if the dllimport attribute
14059         and symbol prefix have been instantiated and then overridden.
14060
14061         * doc/extend.texi: Document dllimport and dllexport attributes.
14062
14063         * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
14064
14065 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
14066
14067         * config/kaos.h (CPP_PREDEFINES): Delete.
14068         (TARGET_OS_CPP_BUILTINS): New.
14069
14070 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14071
14072         * c-aux-info.c: Include toplev.h after c-tree.h.
14073         * c-common.c: Likewise.
14074         (GCC_DIAG_STYLE): Undef.
14075         * c-semantics.c (GCC_DIAG_STYLE): Define.
14076         * c-tree.h (GCC_DIAG_STYLE): Likewise.
14077         * diagnostic.h (inform): Move prototype to toplev.h.
14078         * jump.c: Include diagnostic.h before toplev.h.
14079         * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
14080         (warning, error, fatal_error, pedwarn, sorry, inform,
14081         error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
14082
14083 2003-07-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14084
14085         * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
14086         at all if edge is not specified.
14087         (can_copy_bbs_p, copy_bbs): New.
14088         * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
14089         * cfgloop.c (get_loop_body): Comment more precisely.
14090         * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
14091         (scale_bbs_frequencies): Fix comment typo.
14092         (can_duplicate_loop_p): Use can_copy_bbs_p.
14093         (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
14094
14095 2003-07-03  Devang Patel <dpatel@apple.com>
14096
14097         * c-opts.c (c_common_parse_file): Remove extra
14098         debug_hooks->start_source_file call.
14099
14100 2003-07-03  Roger Sayle  <roger@eyesopen.com>
14101
14102         * real.c (real_trunc, real_floor, real_ceil): New functions
14103         to implement trunc, floor and ceil respectively.
14104         * real.h (real_trunc, real_floor, real_ceil): Prototype here.
14105         * builtins.c (integer_valued_real_p): New function to test if
14106         a floating point expression has an integer valued result.
14107         (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
14108         foo(x) where foo is an integer rounding function.  Similarly,
14109         optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
14110         (double)(int)x when both foo and bar are integer rounding
14111         functions and we don't need to honor errno.
14112         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
14113         New functions to fold trunc, floor and ceil.
14114         (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
14115         fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
14116         to fold BUILT_IN_CEIL*.
14117         * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
14118         the remaining integer rounding functions.
14119
14120 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
14121
14122         * config/sparc/sparc.c (function_arg_partial_nregs): Use
14123         SPARC_INT_ARG_MAX to determine where to split unnamed
14124         complex FP arguments.
14125
14126 2003-07-03  Jan Hubicka  <jh@suse.cz>
14127
14128         * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
14129         * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
14130         (merge_blocks_move_predecessor_nojumps,
14131          merge_blocks_move_successor_nojumps): Use merge_blocks.
14132         (try_optimize_cfg): Use merge_blocks_move.
14133         * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
14134         (merge_blocks_nomove): Rename to rtl_merge_blocks.
14135         (cfg_layout_create_basic_block): New.
14136         (rtl_can_merge_blocks): New.
14137         (cfg_layout_split_block): Do not alloc aux by hand.
14138         * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
14139         merge_blocks.
14140         (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
14141         * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
14142         * cfgloopmanip.c (loop_split_edge_with): Likewise.
14143         * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
14144
14145         * basic-block.h (basic_block_def): Add field 'rbi'.
14146         * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
14147         find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
14148         * cfg.c (entry_exit_blocks): Add new field.
14149         * cfglayout.c: Include alloc-pool.h;
14150         (cfg_layout_pool): New.
14151         (record_effective_endpoints, fixup_reorder_chain,
14152         fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
14153         of rbi.
14154         (cfg_layout_initialize_rbi): New function.
14155         (cfg_layout_initialize): Use it.
14156         (cfg_layout_finalize): Clear rbi fields.
14157         * cfglayout.h (RBI): Kill.
14158         (cfg_layout_initialize_rbi): Declare.
14159         * cfgloopmanip.c (copy_bbs): Use rbi.
14160         (record_exit_edges): Likewise.
14161         (duplicate_loop_to_header_edge): Likewise.
14162         * cfgrtl.c (cfg_layout_create_basic_block): Use
14163         cfg_layout_initialize_rbi.
14164         (cfg_layout_split_block): Use rbi.
14165         (cfg_layout_delete_block): Likewise.
14166         * loop-init.c (loop_optimizer_finalize): Likewise.
14167         * loop-unswitch.c (unswitch_loop): Likewise.
14168         * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
14169
14170         * cfgrtl.c: Update comments.
14171         (try_redirect_by_replacing_jump): New argument.
14172         (redirect_branch_edge): Break out from ...
14173         (rtl_redirect_edge_and_branch): ... this one.
14174         (update_cfg_after_block_merging): Break out from ...
14175         (rtl_merge_blocks): ... this one.
14176         (cfg_layout_split_edge): New.
14177         (cfg_layout_merge_blocks): New.
14178         (cfg_layout_can_merge_blocks_p): New.
14179         (cfg_layout_redirect_edge_and_branch): Reorganize.
14180         (cfg_layout_rtl_cfg_hooks): Fill in.
14181         (cfg_layout_delete_block): Kill barriers.
14182         * cfganal.c (can_fallthru): Deal with exit blocks
14183         * cfglayout.c (cfg_layout_function_header): New function
14184         (record_effective_endpoints): Record function header.
14185         (fixup_reorder_chain): Fixup dead jumptables; place header
14186
14187         * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
14188         * bb-reorder.c (cfg_layout_initialize): Update call.
14189         * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
14190         edges in cfglayout mode.
14191         * cfglayout.c (cleanup_unconditional_jumps): Kill.
14192         (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
14193         * cfglayout.h (cfg_layout_initialize): Update prototype.
14194         * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
14195         * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
14196         * flow.c (propagate_block): Do not crash when basic block ends
14197         by first insn in the chain.
14198         * loop-init.c (loop_optimizer_init):  First enter cfglayout mode; later
14199         do loop discovery.
14200         * tracer.c (tracer): Update call of cfg_layout_initialize.
14201
14202 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14203
14204         * Makefile.in: Use dependency variables in lieu of explicit
14205         files throughout.
14206
14207 2003-07-03  Steven Bosscher  <steven@gcc.gnu.org>
14208
14209         * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
14210         * tree.h: ...to here.
14211
14212 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
14213
14214         * config/s390/2064.md: Fix comment typos.
14215         * config/s390/2084.md: Likewise.
14216         * config/s390/s390.c: Likewise.
14217         * config/s390/s390.md: Likewise.
14218         * config/sh/sh.c: Likewise.
14219         * config/sh/sh.h: Likewise.
14220         * config/sh/sh.md: Likewise.
14221         * config/sparc/sparc.c: Likewise.
14222         * config/sparc/sparc.h: Likewise.
14223         * config/sparc/sparc.md: Likewise.
14224         * config/stormy16/stormy16.c: Likewise.
14225         * config/stormy16/stormy16.h: Likewise.
14226         * config/stormy16/stormy-abi: Fix a typo.
14227
14228 2003-07-03  Kelley Cook  <kelleycook@wideopenwest.org>
14229
14230         * Makefile.in (ifcvt.o): Depend on OPTABS_H.
14231
14232 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14233
14234         * config/mips/mips.h (save_argv): Delete.
14235
14236 2003-07-03  Roger Sayle  <roger@eyesopen.com>
14237
14238         PR target/10700
14239         * fold-const.c (extract_muldiv_1): There's nothing that can be done
14240         if the expression is a SAVE_EXPR.
14241
14242 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
14243
14244         * config/m32r/m32r.c: Fix comment typos.
14245         * config/m68hc11/m68hc11.c: Likewise.
14246         * config/m68hc11/m68hc11.h: Likewise.
14247         * config/m68k/m68k.c: Likewise.
14248         * config/mcore/mcore.c: Likewise.
14249         * config/mcore/mcore.h: Likewise.
14250         * config/mcore/mcore.md: Likewise.
14251         * config/mips/mips.c: Likewise.
14252         * config/mips/mips.h: Likewise.
14253         * config/mips/mips.md: Likewise.
14254         * config/mips/netbsd.h: Likewise.
14255         * config/mn10300/mn10300.c: Likewise.
14256
14257 2003-07-03  Andreas Schwab  <schwab@suse.de>
14258
14259         * dbxout.c (pending_bincls): Move decl down inside
14260         DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
14261
14262 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
14263
14264         * rtl.h (NOTE_DATA): Refer to whole union.
14265         * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
14266
14267 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
14268
14269         PR optimization/11381
14270         * simplify-rtx.c (simplify_relational_operation): Check that
14271         two equal operands have no side-effects before simplifying
14272         the comparison.
14273
14274 2003-07-02  Jeff Law  <law@redhat.com>
14275
14276         * expr.c (do_store_flag): Remove special case folding for
14277         single bit tests.  Instead call back into the commonized folder
14278         routine.
14279         * fold-const.c (fold_single_bit_test): New function, mostly
14280         extracted from do_store_flag, with an additional case extracted
14281         from fold.
14282         (fold): Call fold_single_bit_test appropriately.
14283         * tree.h (fold_single_bit_test): Prototype.
14284
14285 2003-07-02  Zack Weinberg  <zack@codesourcery.com>
14286
14287         * system.h: Include filenames.h.
14288         (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
14289         (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
14290         define based on HAVE_DOS_BASED_FILE_SYSTEM.
14291         * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
14292         * config/i386/xm-mingw32.h: Don't define
14293         HAVE_DOS_BASED_FILE_SYSTEM,
14294         DIR_SEPARATOR, or DIR_SEPARATOR_2.
14295         * doc/hostconfig.texi: Update to match.
14296
14297         * cppfiles.c, gcc.c, gensupport.c, protoize.c,
14298         config/i386/cygwin.h:
14299         Use IS_ABSOLUTE_PATH throughout.
14300         * gcc.c (DIR_UP): Delete, unused.
14301         * protoize.c (IS_SAME_PATH): Define in terms of
14302         FILENAME_CMP.
14303         (is_abspath): Delete.
14304
14305 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
14306
14307         * config/i386/emmintrin.h: Fix comment typos.
14308         * config/i386/i386.c: Likewise.
14309         * config/i386/i386.h: Likewise.
14310         * config/i386/sco5.h: Likewise.
14311         * config/ia64/ia64.c: Likewise.
14312         * config/ia64/itanium2.md: Likewise.
14313
14314 2003-07-02  H.J. Lu  <hongjiu.lu@intel.com>
14315
14316         * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
14317         DBX_USE_BINCL.
14318         (emit_bincl_stab): Same.
14319         (emit_pending_bincls): Same.
14320
14321 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
14322
14323         * config/h8300/h8300.c (compute_mov_length): Fix the length of
14324         loading CONST0_RTX (SFmode).
14325         * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
14326         'G' to CONST0_RTX (SFmode).
14327         * config/h8300/h8300.md (movsf_h8300): Change the first
14328         constraint to 'G'.
14329         (movsf_h8300h): Likewise.
14330
14331 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
14332
14333         * c-common.h (c_common_init_options): New prototype.
14334         * c-opts.c (deferred_size): Remove.
14335         (defer_opt): Array is now pre-allocated.
14336         (c_common_init_options): Pre-allocate deferred_opts.  Make
14337         lang_flags unsigned.
14338         (push_command_line_options): Free deferred_opts.
14339         * hooks.c (hook_uint_uint_constcharptrptr_0): New.
14340         * hooks.h (hook_uint_uint_constcharptrptr_0): New.
14341         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
14342         * langhooks.h (struct lang_hooks): New prototype for init_options.
14343         * main.c (main): Cast argv.
14344         * opts.c (handle_option, handle_options): Update prototypes.
14345         (decode_options): save_argc, save_argv are not global.  Constify.
14346         * opts.h (decode_options): New prototype.
14347         * toplev.c (general_init): New protoype.
14348         (save_argv): Make static.
14349         (save_argc): Remove.
14350         (print_switch_values, general_init): Constify.
14351         (toplev_main): Save argv.
14352         * toplev.h (toplev_main): Update prototype.
14353         (save_argc, save_argv): Remove.
14354
14355 2003-07-02  David Edelsohn  <edelsohn@gnu.org>
14356
14357         * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
14358         (emit_bincl_stab): Same.
14359         (emit_pending_bincls): Same.
14360
14361 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
14362
14363         PR c++/11072
14364         * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
14365
14366 2003-07-02  Andreas Schwab  <schwab@suse.de>
14367
14368         * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
14369
14370 2003-07-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
14371
14372         PR optimization/11210
14373         * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
14374         about the behaviour with regard to bitfields.
14375         * fold-const (decode_field_reference): Record outermost type in
14376         case the expression is a NOP. Strip all NOPs. Set the signedness
14377         to that of the outermost type (if any) when the bitsize is equal
14378         to the size of the type.
14379
14380 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
14381
14382         * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
14383         (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
14384         (adddi3_internal_3, addsi3_internal_2): Likewise.
14385
14386 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
14387
14388         * config/mips/mips.c (machine_function): Add new fields:
14389         ignore_hazard_length_p and all_noreorder_p.
14390         (mips_flag_delayed_branch): New variable.
14391         (override_options): Treat '/' as an operand punctuation character.
14392         Set up mips_flag_delayed_branch.
14393         (print_operand): Handle '/'.
14394         (mips_output_function_prologue): Put the whole function in
14395         .set noreorder and .set nomacro if all_noreorder_p is true.
14396         (mips_output_function_epilogue): End the noreorder/nomacro sequence.
14397         (mips16_optimize_gp): Remove "first insn" parameter.
14398         (mips16_lay_out_constants): New function, split out from mips_reorg.
14399         (mips_avoid_hazard, mips_avoid_hazards): New functions.
14400         (mips_reorg): For mips16 code, call mips16_lay_out_constant
14401         and (optionally) mips16_optimize.  If TARGET_EXPLICIT_RELOCS,
14402         do delayed-branch scheduling followed by hazard detection.
14403         (mips_adjust_insn_length): Only account for hazards if
14404         !ignore_hazard_length_p.
14405         (mips_output_load_label): Add a nop to the o32 sequence if
14406         the target suffers from load delays.
14407         (mips_output_conditional_branch): Add %/ to the end of branches.
14408         (mips_output_division): Fill the branch delay slot with %#.
14409         * config/mips/mips.md: Remove redundant '%*' from mips16 branch
14410         instructions.  End all other %* branches with %/.
14411         (ffssi2, ffsdi2): Fix lengths.
14412         (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
14413         (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
14414         (fix_truncsfsi2_macro): Likewise.
14415         (mov_lwl): Set hazard to "none".
14416         (ashldi3_internal): Fill the branch delay slot with %#.
14417         (ashrdi3_internal, lshrdi3_internal): Likewise.
14418         (exception_receiver): Explicitly set $28.
14419         (hazard_nop): New pattern.
14420
14421 2003-07-02  Jan Hubicka  <jh@suse.cz>
14422
14423         * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
14424         before calling tree_inlinable_function_p.
14425
14426 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14427
14428         * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
14429         <internal/stdio_core.h> too.
14430         (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
14431         <internal/wchar_core.h> too.
14432         Substitute va_list uses in inline definition.
14433         * fixinc/fixincl.x: Regenerate.
14434
14435 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14436
14437         * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
14438         Undef before redefinition.
14439         (LABEL_AFTER_LOC): Likewise.
14440         (DEFAULT_SIGNED_CHAR): Likewise.
14441         (ASM_OUTPUT_ASCII): Moved here from iris4.h.
14442         Fix IRIX spelling.
14443
14444         * config/mips/iris3.h: Remove, unused.
14445         * config/mips/iris4.h: Likewise.
14446
14447         * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
14448
14449         * config/mips/iris5.h (TARGET_DEFAULT): Move ...
14450         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
14451         target_cpu_default.
14452
14453         * config/mips/iris5.h: Move explicit includes ...
14454         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
14455
14456         * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
14457         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
14458         tm_defines.
14459
14460         * config/mips/iris6.h (TARGET_DEFAULT): Move ...
14461         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
14462         target_cpu_default.
14463
14464         * config/mips/iris6.h: Fix IRIX spelling.
14465         (MULTILIB_DEFAULTS): Undef before redefinition.
14466
14467         * config/mips/iris6.h: Move explicit includes ...
14468         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
14469
14470 2003-07-02  Jan Hubicka  <jh@suse.cz>
14471
14472         * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
14473         cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
14474         Use next_needed field instead of aux to maintain the queue.
14475         * cgraph.h (cgraph_node): Add next_needed.
14476         (cgraph_varpool_node): Add next_needed; remove aux.
14477         * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
14478
14479 2003-07-02  Jan Hubicka  <jh@suse.cz>
14480
14481         * cgraphunit.c (cgraph_finalize_function): Set finalized.
14482         (cgraph_finalize_function): Do not examine inlinablility.
14483         (cgraph_finalize_compilation_unit): Do it here.
14484         * cgraph.h (cgraph_local_info): Add finalized field.
14485
14486 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14487
14488         * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
14489         (gt_pch_restore): Likewise.
14490
14491 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
14492
14493         * config/alpha/alpha.c: Fix comment typos.
14494         * config/alpha/elf.h: Likewise.
14495         * config/arm/arm.c: Likewise.
14496         * config/arm/arm.h: Likewise.
14497         * config/arm/arm.md: Likewise.
14498         * config/arm/t-arm-coff: Likewise.
14499         * config/arm/t-strongarm-pe: Likewise.
14500         * config/arm/xscale-elf.h: Likewise.
14501         * config/avr/avr.h: Likewise.
14502
14503 2003-07-01  Jeff Law  <law@redhat.com>
14504
14505         * stmt.c (any_pending_cleanups): Remove another redundant test.
14506
14507 2003-07-01  David Edelsohn  <edelsohn@gnu.org>
14508             J"orn Rennecke <joern.rennecke@superh.com>
14509
14510         * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
14511         for MEM case.
14512
14513 2003-07-01  Devang Patel  <dpatel@apple.com>
14514
14515         * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
14516         (binclstatus): New.
14517         (struct dbx_file): New members - bincl_status, pending_bincl_name and
14518         prev.
14519         (pending_bincls): New.
14520         (dbxout_init): Initialize new dbx_file members.
14521         (dbxout_start_source_file): Same.
14522         (emit_bincl_stab): New function.
14523         (emit_pending_bincls): Same.
14524         (emit_pending_bincls_if_required): Same.
14525         (dbxout_end_source_file): Emit EINCL stab only if BINCL is  already
14526         processed.
14527         (dbxout_begin_block): Emit pending BINCL stabs.
14528         (dbxout_end_block): Same.
14529         (dbxout_function_decl): Same.
14530         (dbxout_continue): Same.
14531         (dbxout_type): Same.
14532         (dbxout_class_name_qualifiers): Same.
14533         (dbxout_symbol): Same.
14534         (dbxout_symbol_location): Same.
14535         (dbxout_parms): Same.
14536
14537 2003-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14538
14539         * c-semantics.c (genrtl_case_label): Fix format specifier bug.
14540         * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
14541
14542 2003-07-01  Andreas Jaeger  <aj@suse.de>
14543
14544         * fold-const.c: Convert prototypes to ISO C90.
14545         * function.c: Likewise.
14546         * function.h: Likewise.
14547
14548 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
14549
14550         * doc/contrib.texi: Fix typos.
14551         * doc/invoke.texi: Likewise.
14552         * doc/passes.texi: Likewise.
14553         * doc/sourcebuild.texi: Likewise.
14554         * doc/tm.texi: Likewise.
14555
14556 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
14557
14558         * basic-block.h: Fix comment typos.
14559         * bb-reorder.c: Likewise.
14560         * c-format.c: Likewise.
14561         * cfgcleanup.c: Likewise.
14562         * cfghooks.h: Likewise.
14563         * cfgloop.c: Likewise.
14564         * cfgloopmanip.c: Likewise.
14565         * cfgrtl.c: Likewise.
14566         * cgraph.h: Likewise.
14567         * cgraphunit.c: Likewise.
14568         * combine.c: Likewise.
14569         * convert.c: Likewise.
14570         * dbxout.c: Likewise.
14571         * df.c: Likewise.
14572         * df.h: Likewise.
14573         * diagnostic.c: Likewise.
14574         * dwarf2out.c: Likewise.
14575         * et-forest.h: Likewise.
14576         * flow.c: Likewise.
14577         * fold-const.c: Likewise.
14578         * function.h: Likewise.
14579         * gcov-io.h: Likewise.
14580         * gcov.c: Likewise.
14581         * gcse.c: Likewise.
14582         * genautomata.c: Likewise.
14583         * ggc-common.c: Likewise.
14584         * ggc-page.c: Likewise.
14585         * loop-unroll.c: Likewise.
14586         * loop-unswitch.c: Likewise.
14587         * loop.c: Likewise.
14588         * mips-tfile.c: Likewise.
14589         * optabs.c: Likewise.
14590         * ra-build.c: Likewise.
14591         * ra-colorize.c: Likewise.
14592         * ra-rewrite.c: Likewise.
14593         * ra.h: Likewise.
14594         * regmove.c: Likewise.
14595         * reload.c: Likewise.
14596         * rtlanal.c: Likewise.
14597         * sched-ebb.c: Likewise.
14598         * sched-int.h: Likewise.
14599         * sched-vis.c: Likewise.
14600         * sreal.c: Likewise.
14601         * ssa-ccp.c: Likewise.
14602         * ssa.c: Likewise.
14603         * toplev.c: Likewise.
14604         * tree-inline.c: Likewise.
14605         * value-prof.c: Likewise.
14606         * value-prof.h: Likewise.
14607
14608 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
14609
14610         * rtl.h (emit_line_note_after): Remove.
14611         (emit_note_copy_after, emit_note_copy): New.
14612         * emit-rtl.c (reorder_insns_with_line_notes): Replace
14613         emit_line_note_after with emit_note_copy_after.
14614         (emit_insn_after_with_line_notes): Likewise.
14615         (emit_line_note_after): Kill.
14616         (emit_note_copy_after): New.
14617         (emit_note_copy): New.
14618         * function.c (emit_return_into_block): Use emit_note_copy_after.
14619         (thread_prologue_and_epilogue_insns): Likewise.
14620         * integrate.c (expand_inline_function): Use emit_note_copy.
14621         (copy_insn_list): Likewise.
14622         * unroll.c (copy_loop_body): Likewise.
14623         * cfglayout.c (duplicate_insn_chain): Likewise.
14624
14625 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
14626
14627         * c-tree.h (define_label): Replace filename and lineno arguments
14628         with a location_t.
14629         * c-decl.c (poplevel): Adjust define_label call.
14630         (pop_label_level): Likewise.
14631         (define_label): Replace filename and lineno arguments with a
14632         location_t.
14633         (store_parm_decls): Use DECL_SOURCE_LOCATION.
14634         * c-parse.in (label): Adjust define_label call.
14635
14636 2003-07-01  Neil Booth  <neil@daikokuya.co.uk>
14637
14638         * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
14639         config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
14640         config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
14641         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
14642         config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
14643
14644 2003-07-01  Andreas Jaeger  <aj@suse.de>
14645
14646         * final.c: Convert prototypes to ISO C90.
14647         * flow.c: Likewise.
14648         * flags.h: Likewise.
14649         * gcov-io.c: Likewise.
14650         * gcov-io.h: Likewise.
14651
14652 See ChangeLog.9 for earlier changes.