OSDN Git Service

* config/mips/t-iris6 (CRTSTUFF_T_CFLAGS): Add -Wno-error.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2003-11-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2
3         * config/mips/t-iris6 (CRTSTUFF_T_CFLAGS): Add -Wno-error.
4         (TARGET_LIBGCC2_CFLAGS): Define.
5
6         * crtstuff.c [HAS_INIT_SECTION] (__do_global_dtors): Declare.
7         (__do_global_ctors): Likewise.
8
9 2003-11-21  Mark Wielaard  <mark@klomp.org>
10
11         * doc/invoke.texi (-O2): Doesn't enable -fweb.
12
13 2003-11-21  Kazu Hirata  <kazu@cs.umass.edu>
14
15         * doc/invoke.texi: Mention dV and dZ.
16
17 2003-11-21  Kazu Hirata  <kazu@cs.umass.edu>
18
19         * doc/invoke.texi: Update dump file names.
20         Remove de, dW, and dX.
21
22 2003-11-20  James E Wilson  <wilson@specifixinc.com>
23
24         PR c/13133
25         * reload1.c (reload): Delete special handling for setjmp.
26
27 2003-11-21  Andreas Tobler  <a.tobler@schweiz.ch>
28
29         * mklibgcc.in: Evaluate shlib_slibdir_qual during link
30         step too.
31         * config/t-slibgcc-darwin: Adjust install path.
32         * config/rs6000/t-darwin: Revert multilib matches since
33         it is not used on darwin.
34
35 2003-11-20  Richard Henderson  <rth@redhat.com>
36
37         * ssa.c, ssa-dce.c, ssa-ccp.c: Remove files.
38         * Makefile.in (OBJS-common, GTFILES): Don't reference them.
39         (gtype-desc.o, toplev.o, flow.o): Remove ssa.h.
40         (ssa.o, ssa-dce.o, ssa-ccp.o): Remove.
41         * flow.c: Don't include ssa.h.
42         (set_phi_alternative_reg): Remove.
43         (calculate_global_regs_live): Don't call it.
44         (mark_used_regs): Don't handle PHI.
45         * gengtype.c (open_base_files): Don't reference ssa.h.
46         * rtl.def (PHI): Remove.
47         * timevar.def (TV_TO_SSA, TV_SSA_CCP, TV_SSA_DCE, TV_FROM_SSA): Kill.
48         * common.opt: Remove -fssa, -fssa-ccp, -fssa-dce.
49         * opts.c (common_handle_option): Likewise.
50         * toplev.c (f_options): Likewise.
51         (DFI_ssa, DFI_ssa_ccp, DFI_ssa_dce, DFI_ussa): Remove.
52         (dump_file): Update to match.
53         (flag_ssa, flag_ssa_ccp, flag_ssa_dce): Remove.
54         (rest_of_handle_ssa): Remove.
55         (rest_of_compilation): Don't call it.
56         * toplev.h (flag_ssa, flag_ssa_dce, flag_ssa_ccp): Remove.
57         * doc/invoke.texi: Remove -fssa, -fssa-ccp, -fssa-dce.
58         * doc/passes.texi (SSA optimizations): Remove.
59
60 2003-11-20  Bob Wilson  <bob.wilson@acm.org>
61
62         * configure.in: Add xtensa-*-* targets to test for dwarf2 debug_line.
63         * configure: Regenerate.
64
65 2003-11-20  Kelley Cook  <kcook@gcc.gnu.org>
66
67         * Makefile.in (Makefile): Pass along CONFIG_SHELL.
68
69 2003-11-20 David Mosberger  <davidm@hpl.hp.com>
70
71         * config/t-libunwind (LIB2ADDEH): Add unwind-c.c.
72         (SHLIB_LC): Define.
73         * unwind-libunwind.c (_Unwind_GetCFA): Implement.
74         (_Unwind_GetBSP) [UNW_TARGET_IA64]: New function.
75
76 2003-11-20  Fariborz Jahanian  <fjahanian@apple.com>
77             David Edelsohn  <edelsohn@gnu.org>
78
79         * calls.c (expand_call): Allocate new temp in pass1.
80         (store_one_arg): If PARALLEL, calculate excess using mode size of
81         rtvec elt. 
82         * expr.c (emit_push_insn): If PARALLEL, calculate offset using
83         mode size of rtvec elt.
84         * function.c (assign_parms): Use parm in register, if available.
85
86 2003-11-20  Kazu Hirata  <kazu@cs.umass.edu>
87
88         * config/h8300/lib1funcs.asm (MOVP): Remove.
89         (ADDP): Likewise.
90         (CMPP): Likewise.
91
92 2003-11-20  Richard Earnshaw  <rearnsha@arm.com>
93
94         * arm.c (use_return_insn): New argument, SIBLING.  Support returning
95         with a single instruction if the stack has been decremented by 4
96         and we have a frame pointer.  Update all callers.
97         (output_return_instruction): Likewise.
98         (arm_output_epilogue): Change argument to SIBLING.  Calculate
99         really_return from the new argument.  Update all callers.
100         * arm.h (USE_RETURN_INSN): Pass NULL for the sibling.
101         * arm.md (sibcall_epilogue): Call use_return_insn directly, and
102         pass the sibling call.
103         * arm-protos.h (use_return_insn, arm_output_epilogue): Update
104         prototypes.
105
106 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
107
108         * Makefile.in (extraclean): Delete.
109         * configure.in (target_list): Remove extraclean.
110         * configure: Regenerate.
111         * doc/makefile.texi, doc/sourcebuild.texi: Update.
112         * objc/Make-lang.in (objc.extraclean): Delete.
113
114 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
115
116         * Makefile.in (lang_checks): Add.
117         (check-c++, check-f77, check-java, check-g++, check-g77,
118         check-objc): Remove hardcoded targets.
119         * doc/sourcebuild.texi: Document testsuite hooks.
120         * objc/Make-lang.in (check-objc, lang_checks): Add.
121
122 2003-11-19  Scott Snyder  <snyder@fnal.gov>
123
124         PR target/13131
125         * dwarf2out.c (gen_array_type_die): DW_AT_declaration should be a
126         flag, not a constant.
127
128 2003-11-19  Kelley Cook  <kcook@gcc.gnu.org>
129
130         * config/arc/arc-protos.h: Update to C90 prototypes.
131         * config/arc/arc.c: Likewise.
132         * config/arc/initfini.c: Likewise.
133
134 2003-11-19  Andreas Krebbel  <krebbel1@de.ibm.com>
135
136         * stmt.c (expand_goto): Memory clobbers added.
137
138 2003-11-19  Andreas Krebbel  <krebbel1@de.ibm.com>
139
140         * reload.c (find_reloads): Added missing type casts.
141
142 2003-11-19  James E Wilson  <wilson@specifixinc.com>
143
144         * combine.c (sets_function_arg_p): Delete unused function.
145
146 2003-11-19  Eric Christopher  <echristo@redhat.com>
147
148         * reload1.c (reload): Revert 2 previous checkins.
149
150 2003-11-19  Nathanael Nerode  <neroden@gcc.gnu.org>
151
152         * cpptrad.c (_cpp_scan_out_logical_line): Improve test for
153         whether directive begins at the beginning of a line.
154
155 2003-11-19  Richard Sandiford  <rsandifo@redhat.com>
156
157         * config/frv/frv.c (frv_init_libfuncs): Correct ufix_optab entries.
158
159 2003-11-19  Gerald Pfeifer  <gp@suse.de>
160
161         * doc/install.texi (Specific): Remove information on old versions
162         of glibc versus old versions of GCC.
163
164 2003-11-19  Richard SAndiford  <rsandifo@redhat.com>
165
166         * emit-rtl.c (gen_lowpart): Don't force MEMs into a register unless
167         the register lowpart is a TRULY_NOOP_TRUNCATION.
168
169 2003-11-19  Richard Henderson  <rth@redhat.com>
170
171         * config/i386/i386.c (print_reg): Handle QI and HI modes for
172         non Q regs.
173
174 2003-11-19  Andreas Tobler  <a.tobler@schweiz.ch>
175
176         * config/config.gcc (powerpc-*-darwin*): Add libgcc build
177         specification file.
178         * config/t-slibgcc-darwin: New file, libgcc build specification.
179         * config/t-darwin: Add libgcc2 flag -fPIC.
180         * config/rs6000/t-darwin: Multilib matches float.
181         * libgcc-darwin.ver: New file, contains libgcc symbols.
182
183 2003-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
184
185         * config/ns32k/ns32k.h: Remove obsolete comment.
186
187 2003-11-18  Roger Sayle  <roger@eyesopen.com>
188
189         PR middle-end/11821
190         * config/arm/arm.c (arm_rtx_costs_1): Improve estimate of the code
191         size for calls to libgcc's div & mod subroutines when using -Os.
192
193 2003-11-18  Jan Hubicka  <jh@suse.cz>
194
195         * cgraph.c (change_decl_assembler_name): Avoid bogus warnings.
196
197 2003-11-18  Marc Espie  <espie@openbsd.org>
198
199         * config/rs6000/sysv4.h: OpenBSD hooks.
200
201 2003-11-18  Richard Henderson  <rth@redhat.com>
202
203         * expr.c (expand_expr): Don't look through constant arrays if
204         they don't bind locally.
205
206 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
207
208         * expr.c (convert_move): Use GET_MODE_PRECISION instead of bitsize
209         when seeing if truncation or extension.
210
211 2003-11-17  Eric Christopher  <echristo@redhat.com>
212
213         * reload1.c (reload): Fix previous change.
214
215 2003-11-17  Scott Snyder  <snyder@fnal.gov>
216
217         PR debug/11325
218         * dwarf2out.c (struct die_struct): Add die_definition field.
219         (add_AT_specification): New.
220         (gen_subprogram_die, gen_variable_die,
221         gen_struct_or_union_type_die): Use it.
222         (prune_unused_types_mark): If we're marking a forward declaration,
223         also mark the full definition, if it exists.
224
225 2003-11-16  Nick Clifton  <nickc@redhat.com>
226
227         * config/stormy16/stormy16.h (BUILD_VA_LIST_TYPE): Delete.
228         * config/stormy16/stormy16-protos.h (xstormy16_build_va_list):
229         Remove prototype.
230         * config/stormy16/stormy16.c (xstormy16_build_va_list): Rename
231         to xstormy16_build_builtin_va_list and make static.
232         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
233
234 2003-11-16  Kazu Hirata  <kazu@cs.umass.edu>
235
236         * config/h8300/h8300-protos.h: Add the prototype for
237         same_cmp_following_p.
238         * config/h8300/h8300.c (same_cmp_following_p): New.
239         * config/h8300/h8300.md (peephole2): Use it.
240
241 2003-11-16  Kazu Hirata  <kazu@cs.umass.edu>
242
243         * config/h8300/h8300.md: Don't use REGNO when its operand is
244         not guaranteed to be a REG.
245
246 2003-11-16  Richard Sandiford  <rsandifo@redhat.com>
247
248         * Makefile.in (expr.o): Depend on $(TARGET_H).
249         * target.h (return_in_msb): New target hook.
250         * target-def.h (TARGET_RETURN_IN_MSB): New macro.
251         (TARGET_CALLS): Include it.
252         * calls.c (shift_returned_value): New function.
253         (expand_call): Use it.
254         * expr.c: Include target.h.
255         (copy_blkmode_from_reg): Check targetm.calls.return_in_msb when
256         deciding what padding is needed.  Change the name of the local
257         padding variable from big_endian_correction to padding_correction.
258         * stmt.c (shift_return_value): New function.
259         (expand_return): Use it.  Adjust memory->register copy in the same
260         way as copy_blkmode_from_reg.  Only change the return register's
261         mode if it was originally BLKmode.
262         * doc/tm.texi (TARGET_RETURN_IN_MSB): Document.
263         * config/mips/mips.c (TARGET_RETURN_IN_MSB): Define.
264         (mips_fpr_return_fields): New, split out from mips_function_value.
265         (mips_return_in_msb, mips_return_fpr_pair): New functions.
266         (mips_function_value): Rework to use the functions above.
267         * config/mips/irix6-libc-compat.c: Delete.
268         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Undefine.
269
270 2003-11-16  Kazu Hirata  <kazu@cs.umass.edu>
271
272         * doc/install.texi (--enable-checking): Update valgrind's URL.
273
274 2003-11-16  Kazu Hirata  <kazu@cs.umass.edu>
275
276         * config/h8300/h8300.md: Fix warnings by replacing -2147483648
277         with -2147483647 - 1.
278
279 2003-11-16  Gerald Pfeifer  <gerald@pfeifer.com>
280
281         Fix links in online manuals.
282         * doc/invoke.texi (H8/300 Options): @xref to ld, not ld.info.
283         (Precompiled Headers): @pxref to cpp, not cpp.info.
284
285 2003-11-16  Jason Merrill  <jason@redhat.com>
286
287         * Makefile.in, objc/Make-lang.in (objc.tags): Create TAGS.sub
288         files in each directory and TAGS files that include them for each
289         front end.
290
291 2003-11-15  Kazu Hirata  <kazu@cs.umass.edu>
292
293         * config/h8300/lib1funcs.asm (divnorm): Store the sign in bit
294         3 of S2L.
295         (modnorm): Likewise.
296         (exitdiv): Look at bit 3 of S2L only.
297
298 2003-11-15  Kazu Hirata  <kazu@cs.umass.edu>
299
300         * config/h8300/h8300.h (DO_GLOBAL_CTORS_BODY): Fix warnings.
301         (DO_GLOBAL_DTORS_BODY): Likewise.
302
303 2003-11-15  Joseph S. Myers  <jsm@polyomino.org.uk>
304
305         * doc/install.texi (Prerequisites): Refine documentation of
306         autoconf, automake and perl requirements.  Document required
307         gettext version.
308
309 <2003-11-14  Jason Merrill  <jason@redhat.com>
310
311         * function.c (assign_parms): Use TREE_TYPE to determine the real
312         type of the argument object.
313
314 2003-11-14  Kazu Hirata  <kazu@cs.umass.edu>
315
316         * config/h8300/lib1funcs.asm (___udivsi3): Peel off the first
317         iteration.
318
319 2003-11-14  Fariborz Jahanian <fjahanian@apple.com>
320
321         * config/rs6000/rs6000.c (rs6000_move_block_from_reg):
322           New routine to save vararg registers on stack. Support for
323           -mpowerpc64 in mixed mode.
324
325 2003-11-14  Bernardo Innocenti  <bernie@develer.com>
326
327         * config/m68k/m68k.c: Use C statements instead of #ifdef's when testing
328         for MOTOROLA versus MIT syntax.  Improves readability and provides
329         better compile-time error checking for both code paths.
330
331 2003-11-14  Kelley Cook  <kcook@gcc.gnu.org>
332
333         * config/frv/frv-protos.h: Update for C90.
334         * config/frv/frv.h: Likewise.
335         * config/frv/frvbegin.c: Likewise.
336         * config/frv/frv.c: Likewise.
337         (frv_adjust_field_align): Delete unused variable.
338
339 2003-11-14  Geoffrey Keating  <geoffk@apple.com>
340
341         * config/rs6000/rs6000.md: Add 'DEFAULT_ABI == ABI_DARWIN'
342         to each place where TARGET_LONG_DOUBLE_128 is used with
343         DEFAULT_ABI == ABI_AIX.
344
345         * cppfiles.c (_cpp_find_file): Make 'one or more PCH files were found'
346         message comply with GNU standards.
347
348 2003-11-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
349
350         PR/6552
351         * function.c (struct epi_info): New field const_equiv.
352         (update_epilogue_consts): New function.
353         (keep_stack_depressed): Clear new field and verify scratch register
354         doesn't have it set.
355         Call new function via note_stores.
356         (handle_epilogue_set): Allow setting SP equiv reg in different mode.
357         Allow PLUS where second operand is register known set to constant.
358         (emit_equiv_load): Write load using proper mode if source different.
359         * config/mips/mips.md (return_internal): Put (return) first.
360
361 2003-11-14  Kazu Hirata  <kazu@cs.umass.edu>
362
363         * config/h8300/lib1funcs.asm (___udivsi3): Add a comment.
364
365 2003-11-14  Kazu Hirata  <kazu@cs.umass.edu>
366
367         * config/h8300/lib1funcs.asm (modsi3): Don't save unused
368         registers.
369         (divsi3): Likewise.
370         (reti): Don't restore unused registers.
371
372 2003-11-14  Nick Clifton  <nickc@redhat.com>
373
374         * config/fr30/fr30.c: Include toplev.h
375
376 2003-11-14  Richard Earnshaw  <rearnsha@arm.com>
377
378         * except.c (sjlj_emit_function_enter): Mark internal label as LOCAL.
379
380 2003-11-14  Richard Earnshaw  <rearnsha@arm.com>
381
382         * arm.c (arm_emit_vector_const, arm_output_load_gr): Use ISO C
383         function definition syntax.
384
385 2003-11-14  Eric Christopher  <echristo@redhat.com>
386
387         * reload1.c (reload): Revert previous patch. Make
388         check for assignment into reg_equiv_address stricter.
389
390 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
391
392         * Makefile.in (POSTSTAGE1_FLAGS_TO_PASS): Pass ADAFLAGS.
393
394 2003-11-14  Richard Sandiford  <rsandifo@redhat.com>
395
396         * config/frv/frv.c (frv_in_small_data_p): Return false for unknown
397         section names.
398
399 2003-11-14  Jason Merrill  <jason@redhat.com>
400
401         PR middle-end/12526
402         * tree.c (build): A CALL_EXPR has side-effects if its arguments do.
403         * calls.c (call_expr_flags): New fn.
404         * tree.h: Declare it.
405
406 2003-11-13  Kazu Hirata  <kazu@cs.umass.edu>
407
408         * config/h8300/lib1funcs.asm (__udivsi3): Remove.
409         (divmodsi3): Change the name to ___udivsi3.
410         Update all callers.
411
412 2003-11-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
413
414         * libgcc2.c (__negdi2, __addvsi3, __addvdi3, __subvsi3, __subvdi3,
415         __mulvsi3, __negvsi2, __negvdi2, __mulvdi3, __lshrdi3, __ashldi3,
416         __ashrdi3, __ffsDI2, __muldi3, __clzDI2, __ctzDI2, __parityDI2,
417         __udivmoddi4, __divdi3, __moddi3, __cmpdi2, __ucmpdi2,
418         __fixunstfDI, __fixunsxfDI, __fixunsdfDI, __fixunssfDI,
419         __floatdixf, __floatditf, __floatdidf, __floatdisf, __gcc_bcmp):
420         Const-ify and/or initialize automatic variables at declaration.
421
422 2003-11-13  Kazu Hirata  <kazu@cs.umass.edu>
423
424         * config/h8300/lib1funcs.asm (divmodsi4): Replace all the uses
425         of er4 with er3.  Adjust all callers.
426
427 2003-11-13  Andrew Pinski <apinski@apple.com>
428
429         * config/darwin.c (machopic_output_possible_stub_label):
430         Allow stub symbol be not defined when outputting possible
431         stub label.
432
433 2003-11-13  Kazu Hirata  <kazu@cs.umass.edu>
434
435         * config/h8300/lib1funcs.asm (___udivsi3): Jump to reti
436         instead of exitdiv.
437         (___umodsi3): Likewise.
438         (exitdiv): Do not restore any register.
439         (reti): Restore registers.
440
441 2003-11-13  Steven Bosscher  <stevenb@suse.de>
442
443         * tree-inline.c (walk_tree): Handle PLACEHOLDER_EXPR.
444
445 2003-11-13  Kazu Hirata  <kazu@cs.umass.edu>
446
447         * config/h8300/lib1funcs.asm: Fix comment typos.
448
449 2003-11-13  Kazu Hirata  <kazu@cs.umass.edu>
450
451         * config/h8300/lib1funcs.asm (udivsi3): Don't save/restore
452         unused registers.  Don't jump to exitdiv.
453         (umodsi3): Likewise.
454
455 2003-11-13  Mark Mitchell  <mark@codesourcery.com>
456             Kean Johnston <jkj@sco.com>
457
458         PR c/13029
459         * toplev.c (check_global_declarations): Do not warn about unused
460         static consts.
461
462 2003-11-13  Pavel Pisa  <pisa@cmp.felk.cvut.cz>
463             Kazu Hirata  <kazu@cs.umass.edu>
464
465         * config/h8300/lib1funcs.asm (DenHighNonZero): Optimize using
466         the approximate quotient method.
467
468 2003-11-13  Richard Earnshaw  <rearnsha@arm.com>
469
470         * combine.c (distribute_notes): When re-distributing the notes from
471         an insn we are about to delete, ensure we can't end up with a cyclic
472         list of notes.
473
474 2003-11-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
475
476         PR optimization/12926
477         * expr.c (expand_assignment) [COMPONENT_REF]: Don't put
478         the UNCHANGING_RTX_P flag on memory references to read-only
479         components that are not addressable.
480
481 2003-11-12  Kazu Hirata  <kazu@cs.umass.edu>
482
483         * config/h8300/lib1funcs.asm (divmodsi4): Clear S0P in
484         DenHighNonZero.
485
486 2003-11-13  Jan Hubicka  <jh@suse.cz>
487
488         PR opt/12275
489         * c-decl.c (finish_decl): Use change_decl_assembler_name.
490         * c-pragma.c (handle_pragma_redefine_extname): Likewise.
491         * varasm.c (make_decl_rtl): Likewise.
492         * cgraph.c (change_decl_assembler_name): New function.
493         * tree.h (set_decl_assembler_name): Kill dead declaration.
494         (change_decl_assembler_name): Declare.
495
496         * decl.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
497         * decl2.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
498
499 2003-11-12  Kazu Hirata  <kazu@cs.umass.edu>
500
501         * config/h8300/lib1funcs.asm (___mulsi3): Don't save/restore
502         an unused register.
503
504 2003-11-12  Richard Sandiford  <rsandifo@redhat.com>
505
506         PR bootstrap/12752
507         * config/mips/t-iris6 (MULTILIB_OPTIONS): Put -mabi=n32 first.
508         (MULTILIB_OSDIRNAMES): Reorder accordingly.
509
510 2003-11-12  Janis Johnson  <janis187@us.ibm.com>
511
512         * rs6000-protos.h (rs6000_initial_elimination_offset): Add.
513         (rs6000_stack_info): Remove.  (debug_stack_info): Remove.
514         (rs6000_emit_eh_reg_restore): Add
515         * rs6000.c (rs6000_stack_t): Move from rs6000.h, change data type
516         of vars_size and total_size to HOST_WIDE_INT.
517         (emit_frame_save): Change parameter size to HOST_WIDE_INT.
518         (rs6000_stack_info): Make static; change data size to HOST_WIDE_INT.
519         (debug_stack_info): Make static; change output format of HOST_WIDE_INT
520         values.
521         (rs6000_emit_eh_reg_restore): New, with code formerly in rs6000.md.
522         (rs6000_initial_elimination_offset): New, with code formerly in
523         INITIAL_ELIMINATION_OFFSET.
524         * rs6000.h (rs6000_stack_t): Remove.
525         (INITIAL_ELIMINATION_OFFSET): Replace code with call to function
526         rs6000_initial_elimination_offset.
527         * rs6000.md (UNSPECV_EH_RR split): Replace code with call to
528         rs6000_emit_eh_reg_restore.
529
530 2003-11-12  Mike Stump  <mrs@apple.com>
531
532         * c-typeck.c (c_convert_parm_for_inlining): Add argnum, which
533         is the argumnt we are processing so that warnings and errors
534         will have that information.
535         * c-tree.h (c_convert_parm_for_inlining): Add argnum.
536         * lang-hooks-def.h
537         (lhd_tree_inlining_convert_parm_for_inlining): Likewse.
538         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): Likewise.
539         * langhooks.h (convert_parm_for_inlining): Likewise.
540         * tree-inline.c (initialize_inlined_parameters): Compute and
541         pass argnum down.
542
543 2003-11-12  Alexey Starovoytov  <alexey.starovoytov@sun.com>
544             Roger Sayle  <roger@eyesopen.com>
545
546         PR optimization/12953
547         * tree-inline.c (inline_forbidden_p_1): Added check for BUILT_IN
548         before switch by FUNCTION_CODE.
549
550 2003-11-12  Richard Earnshaw  <rearnsha@arm.com>
551
552         * arm.md (storehi): Avoid use of explicit subreg.
553         (storehi_bigend, storeinthi, movhi_bigend): Likewise.
554
555 2003-11-12  J"orn Rennecke <joern.rennecke@superh.com>
556
557         * config/sh/sh.md (prefetch): New pattern.
558
559 2003-11-11  Eric Christopher  <echristo@redhat.com>
560
561         * reload1.c (reload): Verify that addresses for
562         reg_equiv_* are valid for the architecture.
563
564 2003-11-11  Eric Christopher  <echristo@redhat.com>
565
566         * function.c (purge_addressof_1): Add libcall check.
567         Remove test for cached replacements on fallback case.
568         Simplify mode comparisons. Add libcall test for
569         paradoxical subregs.
570
571 2003-11-11  Kazu Hirata  <kazu@cs.umass.edu>
572
573         * config/h8300/t-h8300: Fix an obsolete comment.
574
575 2003-11-11  James E Wilson  <wilson@specifixinc.com>
576
577         * expmed.c (store_bit_field, extract_bit_field): Revert last two
578         changes.
579
580 2003-11-11  Kazu Hirata  <kazu@cs.umass.edu>
581
582         * config/h8300/lib1funcs.asm: Replace DenHighZero with
583         DenHighNonZero.
584
585 2003-11-11  Jan Hubicka  <jh@suse.cz>
586
587         * cgraphunit.c (cgraph_function_possibly_inlined_p): Use
588         really_no_inline.
589
590 2003-11-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
591
592         * pa.h (TRAMPOLINE_TEMPLATE): Fix flushing of cache lines when
593         generating 64-bit code.
594
595 2003-11-10  David Edelsohn  <edelsohn@gnu.org>
596
597         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
598         accidental commit in previous change.
599
600 2003-11-10  Fariborz Jahanian <fjahanian@apple.com>
601
602         * config/rs6000/rs6000.h (STACK_SIZE_MODE): Add definition.
603         * config/rs6000/rs6000.c (reg_or_mem_operand): Add macho-style
604         address recognition.
605         (macho_lo_sum_memory_operand): Routine to recognize macho-style
606         address recognition.
607
608 2003-11-10  Richard Henderson  <rth@redhat.com>
609
610         * dwarf2out.c (gen_label_die): Cope with DECL_RTL not set.
611
612 2003-11-10  Matt Austern  <austern@apple.com>
613
614         * config/darwin-protos.h (darwin_assemble_visibility): Declare.
615         * config/darwin.c (darwin_assemble_visibility): Define.  Warn for
616         anything other than VISIBILITY_DEFAULT and VISIBILITY_HIDDEN.
617         * config/darwin.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Use
618         darwin_assemble_visibility instead of default.
619
620 2003-11-10  Waldek Hebisch  <hebisch@math.uni.wroc.pl>
621
622         PR target/12865
623         * config/sparc/sparc.c (sparc_initialize_trampoline): Call
624         __enable_execute_stack only after writing onto the stack.
625         (sparc64_initialize_trampoline): Likewise.
626
627 2003-11-09  Roger Sayle  <roger@eyesopen.com>
628
629         * loop.c (check_dbra_loop): Try swapping the comparison operands
630         of the loop condition to identify a suitable induction variable.
631         * unroll.c (loop_iterations): Likewise.
632
633 2003-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
634
635         * config/sparc/sparc.h (TARGET_CPU_CPP_BUILTINS): Fix sparc vs
636         sparc64 #cpu and #machine assertions.
637
638 2003-11-09  Richard Henderson  <rth@redhat.com>
639
640         * Makefile.in (rtlanal.o): Depend on BASIC_BLOCK_H.
641
642 2003-11-09  Jan Hubicka  <jh@suse.cz>
643
644         * tree-optimize.c (tree_rest_of_compilation): Fix warning.
645
646         * cgraphunit.c (cgraph_expand_function): Use
647         cgraph_possibly_inlined_p.
648         * tree-optimize.c (tree_rest_of_compilation): Do not kill saved tree.
649
650         * opts.c (common_handle_option): Do not set max-inline-insns.
651         * params.def: Update comments.
652         (PARAM_MAX_INLINE_INSNS): Kill.
653         * invoke.texi (max-inline-insns): Kill.
654
655 2003-11-08  Joseph S. Myers  <jsm@polyomino.org.uk>
656
657         PR c/3190
658         PR c/8714
659         * c-format.c (set_Wformat): Do not enable -Wformat-y2k by default.
660         * invoke.texi: Update.
661
662 2003-11-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
663
664         PR optimization/12630
665         * pa.c (compute_movstrsi_length): Rename to compute_movstr_length.
666         Handle length computation 64-bit moves.
667         (compute_clrstr_length, output_block_clear): Implement block clear.
668         (output_block_move): Handle 64-bit moves.
669         (pa_adjust_insn_length): Use compute_movstr_length and
670         compute_clrstr_length.
671         * pa.md (movstrsi): Revise operand order and comments.  Don't use
672         match_scratch.
673         (movstrsi_internal): Delete.
674         (movstrsi_prereload, movstrsi_postreload): New insns.  Define splitter
675         and peephole2 patterns to transform prereload to postreload form.
676         (movstrdi, movstrdi_prereload, movstrdi_postreload, clrstrsi,
677         clrstrsi_prereload, clrstrsi_postreload, clrstrdi, clrstrdi_prereload,
678         clrstrdi_postreload): New patterns for 64-bit block move, and block
679         clear.
680         * pa-protos.h (output_block_clear): New prototype.
681
682 2003-11-08  Andreas Schwab  <schwab@suse.de>
683
684         * dbxout.c (current_file): Also wrap inside DBX_DEBUGGING_INFO ||
685         XCOFF_DEBUGGING_INFO.
686
687 2003-11-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
688
689         * dbxout.c (current_file): Wrap declaration in DBX_USE_BINCL.
690
691 2003-11-07  Geoffrey Keating  <geoffk@apple.com>
692
693         * config/rs6000/rs6000.c (rs6000_legitimize_address): Remove
694         redundant parens.
695
696         * cppfiles.c (pch_open_file): New parameter 'invalid_pch', set it.
697         (find_file_in_dir): Likewise.
698         (_cpp_find_file): Print message if no header file is found
699         but an invalid PCH file was.
700
701 2003-11-08  Joseph S. Myers  <jsm@polyomino.org.uk>
702
703         * c-typeck.c (pedantic_lvalue_warning): Deprecate compound
704         expressions as lvalues.
705         (internal_build_compound_expr): Remove special handling for
706         non-pedantic case.
707         * doc/extend.texi: Document that all extended lvalues are now
708         deprecated.
709
710 2003-11-07  Geoffrey Keating  <geoffk@apple.com>
711
712         PR 11654
713         * dbxout.c (struct dbx_file): Do not save for PCH.
714         (current_file): Likewise.
715         (dbxout_init): Don't allocate struct dbx_file using GC.
716         (dbxout_start_source_file): Likewise.
717
718 2003-11-07  Falk Hueffner  <falk@debian.org>
719
720         * config/alpha/elf.h, config/alpha/unicosmk.h,
721         config/alpha/vms.h: Convert to ISO C90.
722
723 2003-11-07  Nathanael Nerode  <neroden@gcc.gnu.org>
724
725         * config/arm/pe.h: Convert to ISO C90.
726
727 2003-11-07  J"orn Rennecke <joern.rennecke@superh.com>
728
729         * sh-protos.h (sh_pch_valid_p): Declare.
730         * sh.c ("intl.h"): Include.
731         (TARGET_PCH_VALID_P): Override.
732         (sh_target_switches): New variable.
733         (target_switches): Define.
734         (sh_pch_valid_p): New function.
735
736         * sh.h (MODE_AFTER): Don't change mode unless TARGET_HITACHI.
737
738 2003-11-07  Jan Hubicka  <jh@suse.cz>
739
740         * i386.c (x86_64_sign_extended_value):  Return false from tls variables.
741         (x86_64_zero_extended_value):  likewise.
742
743 2003-11-07  Richard Sandiford  <rsandifo@redhat.com>
744
745         * config/mips/mips.md (loadgp): Take $25 as a second operand.
746         * config/mips/mips.c (mips_expand_prologue): Modify accordingly.
747
748 2003-11-06  Matt Austern <austern@apple.com>
749
750         * c-common.c (handle_visibility_attribute): Set DECL_VISIBILITY
751         field instead of hanging an attribute object off the decl.
752         * tree.h (DECL_VISIBLITY): New accessor macro for
753         symbol_visibility field in struct tree_decl.
754         (enum symbol_visibility): Move definition to before tree_decl.
755         (struct tree_decl): Define new two-bit field, symbol_visibility.
756         (decl_visibility): Remove declaration.
757         * varasm.c (maybe_assemble_visibility): Use DECL_VISIBILITY
758         instead of decl_visibility.
759         (default_binds_local_p_1):  Use DECL_VISIBILITY instead of
760         decl_visibility.
761         (decl_visibility): Remove.
762
763 2003-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
764
765         * config/s390/s390.c (s390_emit_epilogue): Recognize more cases
766         where register 14 will be saved.
767
768 2003-11-06  Geoffrey Keating  <geoffk@apple.com>
769
770         * config/rs6000/rs6000.h (USE_FP_FOR_ARG_P): Move to rs6000.c.
771         (USE_ALTIVEC_FOR_ARG_P): Likewise.
772         * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Move from rs6000.h.
773         Take a pointer as the CUM parameter.  Update callers.
774         (USE_ALTIVEC_FOR_ARG_P): Likewise.  Also correct for Darwin/AIX
775         32-bit ABIs.
776         (function_arg_advance): Use USE_ALTIVEC_FOR_ARG_P.  Correct case
777         of vector parameters as named arguments of stdarg function.
778         (function_arg): Likewise.
779
780         * config/rs6000/darwin.h (ASM_SPEC): Use -force_cpusubtype_ALL when
781         -maltivec is specified, not the non-existent -faltivec.
782
783 2003-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
784
785         * config/s390/s390-protos.h (s390_function_value): Declare.
786         * config/s390/s390.c (TARGET_RETURN_IN_MEMORY): Define.
787         (s390_return_in_memory): New function.
788         (s390_function_value): New function.
789         (s390_function_arg_float): Return false for all arguments larger
790         than 8 bytes.
791         (s390_function_arg_pass_by_reference): Likewise.  Return true for
792         all vector arguments.
793         (s390_function_arg_integer): New function.
794         (s390_function_arg_advance): Call it.  Add sanity checks.
795         (s390_function_arg): Likewise.
796         * config/s390/s390.h (FUNCTION_VALUE): Call s390_function_value.
797         (LIBCALL_VALUE): Likewise.
798         (RET_REG): Remove.
799         (RETURN_IN_MEMORY): Remove.
800
801 2003-11-06  Richard Sandiford  <rsandifo@redhat.com>
802
803         * config/mips/mips-protos.h (mips_initial_elimination_offset): Change
804         return type to HOST_WIDE_INT.
805         * config/mips/mips.c (mips_frame_info): Give sizes type HOST_WIDE_INT.
806         Make initialized a bool.  Make register masks unsigned ints.
807         (compute_frame_size): Make same mask change here.  Use HOST_WIDE_INT
808         where appropriate.
809         (mips_initial_elimination_offset): Return a HOST_WIDE_INT.
810         (mips_output_function_prologue): Print sizes as HOST_WIDE_INTs.
811
812 2003-11-06  Richard Sandiford  <rsandifo@redhat.com>
813
814         * config/frv/frv.c (frv_initial_elimination_offset): Remove bogus
815         negation.
816
817 2003-11-06  Richard Sandiford  <rsandifo@redhat.com>
818
819         * config/frv/frv.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define.
820
821 2003-11-06  Momchil Velikov  <velco@fadata.bg>
822
823         * config/mips/mips.c (override_options): Set MASK_SOFT_FLOAT
824         for VR4111 too.
825
826 2003-11-06  Jan Hubicka  <jh@suse.cz>
827
828         * builtins.c (simplify_builtin_strrchr, simplify_builtin_strpbrk): Add
829         missing casts.
830
831 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
832
833         * genmodes.c: Change the word "bitsize" to "precision" throughout.
834         * machmode.def: Likewise.
835         * machmode.h (GET_MODE_SIZE): Cast value to unsigned short.
836         (GET_MODE_BITSIZE): Define as GET_MODE_SIZE * BITS_PER_UNIT.
837         (GET_MODE_PRECISION): New macro.
838         (mode_bitsize): Renamed mode_precision.
839         * stor-layout.c (mode_for_size, smallest_mode_for_size):
840         Use GET_MODE_PRECISION; clarify comments.
841
842 2003-11-05  Joseph S. Myers  <jsm@polyomino.org.uk>
843
844         * doc/install-old.texi: Remove old documentation of building
845         cross-compilers.
846         * doc/install.texi: Move some of it to here.
847
848 2003-11-05  Per Bothner  <pbothner@apple.com>
849
850         PR preprocessor/12891
851         * c-opts.c (finish_options):  Set include_cursor to disable premature
852         calls to push_command_line_include from cpp_scan_nooutput.
853         Fixes bug reported by DJ Delorie.
854
855 2003-11-05  Geoffrey Keating  <geoffk@apple.com>
856
857         * config/rs6000/rs6000.c (setup_incoming_varargs): Remove
858         code supporting old-style varargs.
859
860         * config/rs6000/rs6000.c (rs6000_machopic_legitimize_pic_address): Use
861         an intermediate register for better optimisation.
862
863 2003-11-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
864
865         PR optimization/10080
866         * cfgloopanal.c (variable_initial_value, variable_initial_values,
867         simple_loop_exit_p): Record the fact that initial value is extended
868         from inner mode.
869         (count_strange_loop_iterations, count_loop_iterations): Handle
870         ivs that iterate in a narrower mode. Fix handling of overflows.
871         Improve handling of NE conditions.
872         (inverse, fits_in_mode_p): New static functions.
873         (simple_increment): Detect variables that iterate in a narrower mode.
874         * cfgloop.h (struct loop_desc): Fields inner_mode and extend added.
875
876 2003-11-05  Geoffrey Keating  <geoffk@apple.com>
877
878         * config/rs6000/rs6000.c (compute_vrsave_mask): Correct off-by-one
879         error.
880
881         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Darwin
882         needs VRSAVE.
883
884 2003-11-05  Joseph S. Myers  <jsm@polyomino.org.uk>
885
886         * c-typeck.c (pedantic_lvalue_warning): Deprecate use of
887         conditional expressions as lvalues.
888
889 2003-11-05  Kazu Hirata  <kazu@cs.umass.edu>
890
891         * tsystem.h: Add the prototype of strlen.
892         * unwind-pe.h (read_encoded_value_with_base): Add an
893         appropriate cast to handle a case where the pointer size is
894         smaller than sizeof (int).
895
896 2003-11-04  Richard Sandiford  <rsandifo@redhat.com>
897
898         * config/mips/mips-protos.h (mips_global_pic_constant_p): Delete.
899         (mips_delegitimize_address): Delete.
900         (mips_gotoff_global, mips_load_got_page): Declare.
901         (mips_load_got_global, mips_rewrite_small_data): Declare.
902
903         * config/mips/mips.h (FIND_BASE_TERM): Remove definition.
904         (DANGEROUS_FOR_LA25_P): Use global_got_operand.
905         (PREDICATE_CODES): Add global_got_operand, local_got_operand and
906         small_data_pattern.  Remove CONST from const_arith_operand's entry.
907
908         * config/mips/mips.c (UNSPEC_ADDRESS_P, CONST_GP_P): New macros.
909         (UNSPEC_ADDRESS, UNSPEC_ADDRESS_TYPE): Likewise.
910         (mips_constant_type): Delete.
911         (mips_symbol_type): Add SYMBOL_GOTOFF_PAGE, SYMBOL_GOTOFF_GLOBAL,
912         SYMBOL_GOTOFF_CALL and SYMBOL_GOTOFF_LOADGP.
913         (NUM_SYMBOL_TYPES): New macro.
914         (mips_address_type): Remove ADDRESS_INVALID.
915         (machine_function): Add has_gp_insn_p.
916         (mips_constant_info): Delete.
917         (mips_address_info): Add the address type as an extra field.  Replace
918         the c field with symbol_type.
919         (mips_split_p, mips_lo_relocs, mips_hi_relocs): New arrays.
920         (TARGET_DELEGITIMIZE_ADDRESS): Remove definition.
921         (mips_reloc_offset_ok_p, mips_classify_constant): Delete.
922         (mips_split_const, mips_symbolic_constant_p): New functions.
923         (mips_symbolic_address_p): Take the symbol type and mode as arguments.
924         (mips_classify_address): Return true if the address is valid, storing
925         its type in INFO.  Use mips_symbolic_constant_p.  Use mips_lo_relocs[]
926         to test whether a LO_SUM address is allowed.
927         (mips_symbol_insns): Return 0 for general mips16 symbols.
928         Reorder SYMBOL_GOT_GLOBAL case to match mips_symbol_type definition.
929         Handle the new SYMBOL_GOTOFF_*s.
930         (mips_address_insns): Update call to mips_classify_address.
931         (mips_const_insns): Be more fussy about HIGH constants.  Remove use
932         of mips_classify_constant.  Be more accurate about CONSTs.
933         (mips_global_pic_constant_p): Delete.
934         (const_arith_operand): Only accept CONST_INTs.
935         (call_insn_operand): Remove call to mips_classify_constant.
936         Let mips_symbolic_constant_p check for invalid offsets.
937         (move_operand): Check for general_operands first.  Only accept symbolic
938         constants if they satisfy mips_symbolic_constant_p and cannot be split.
939         (symbolic_constant): Use mips_symbolic_constant_p.
940         (global_got_operand, local_got_operand): New predicates.
941         (stack_operand): Update call to mips_classify_address.
942         (mips_legitimate_address_p): Likewise.
943         (mips_reloc, mips_lui_reloc): Delete.
944         (mips_force_temporary): Only use the given temporary if no_new_pseudos.
945         Use emit_move_insn.
946         (mips_split_symbol, mips_unspec_address): New functions.
947         (mips_unspec_offset_high): New function.
948         (mips_load_got): Replace reloc argument with a symbol_type.
949         Use mips_unspec_address to create the address and put it in a
950         LO_SUM with the base register.
951         (mips_load_got16, mips_load_got32): Delete.
952         (mips_emit_high, mips_legitimize_symbol): Delete.
953         (mips_gotoff_global): New function.
954         (mips_load_got_page, mips_load_got_global): New functions.
955         (mips_legitimize_symbol): Inline handling of LO_SUM splits.
956         (mips_legitimize_const_move): Likewise.  Remove HIGH handling.
957         Inline code to handle constants plus invalid offsets.  Use
958         mips_split_symbol to legitimize constant pool addresses.
959         (mips_delegitimize_address): Delete.
960         (mips_rtx_costs): Give legitimate symbolic constants and CONST_DOUBLEs
961         a cost of 1 insn.  Give the rest a cost of CONSTANT_POOL_ADDRESS.
962         (mips_subword): Pass memrefs through mips_rewrite_small_data.
963         (mips_output_move): Remove use of mips_classify_constant.
964         (mips_expand_call): Use mips_unspec_offset_high to calculate the
965         high part of the GOT address for calls to global functions.
966         (override_options): Initialize mips_split_p[], mips_lo_relocs[]
967         and mips_hi_relocs[].
968         (print_operand): Use print_operand_reloc to handle '%h' and '%R'.
969         Remove use of mips_classify_constant.
970         (mips_reloc_string): Delete.
971         (print_operand_reloc): New function.
972         (print_operand_address): Update call to mips_classify_address.
973         (mips_rewrite_small_data_p, small_data_pattern_1): New functions.
974         (small_data_pattern): New predicate.
975         (mips_rewrite_small_data_1, mips_rewrite_small_data): New functions.
976         (mips_function_has_gp_insn): New function.
977         (mips_global_pointer): Use it.
978         (mips_gp_insn): Delete.
979         (mips_expand_prologue): When compiling for n32/n64 abicalls, use a
980         single loadgp pattern to initialize $gp.  Pass it the offset of _gp
981         from the start of the current function.
982         (mips16_gp_pseudo_reg): Revert last patch.
983
984         * config/mips/mips.md (RELOC_*): Delete.
985         (UNSPEC_LOADGP, UNSPEC_FIRST_ADDRESS): New constants.
986         (got): New insn attribute.
987         (type): Set to "load" if got == load.
988         (length): Set to 4 if got == load, 8 if got == xgot_high.
989         (lui[sd]i): Delete.
990         (*xgot_hi[sd]i, *xgot_lo[sd]i): New patterns.
991         (*got_disp[sd]i, *got_page[sd]i): Likewise.
992         (*low[sd]i): Change constraints to "d".  Add a new define_split to
993         rewrite small data constants into LO_SUMs.
994         (loadgp): New insns.
995
996 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
997
998         * config/mips/_tilib.c: Use _ABI* in _MIPS_SIM tests.
999
1000 2003-11-04  DJ Delorie  <dj@redhat.com>
1001
1002         * config/v850/v850.md (mulhisi3): Expand the const_int case
1003         separately to avoid trying to sign extend the const.
1004
1005 2003-11-04  Richard Sandiford  <rsandifo@redhat.com>
1006
1007         * emit-rtl.c (copy_rtx_if_shared): Don't allow MEMs with constant
1008         addresses to be shared.
1009         (force_const_mem): Return a copy of the pool entry.
1010
1011 2003-11-03  Andreas Jaeger  <aj@suse.de>
1012
1013         * Makefile.in (GCC_CFLAGS): Remove @WERROR@ again.
1014
1015 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
1016
1017         * Makefile.in (cpp.dvi): New target split from cpp.info.
1018         (gcc.dvi):  New target split from gcc.info.
1019         (gccint.dvi): New target split from gccint.info.
1020         (cppinternals.dvi): New target split from cppinternals.info
1021         (gccinstall.info): New specific rule.
1022         (gccinstall.dvi): Likewise.
1023         (dvi): Move targets to $(docobjdir).
1024         ($(docobjdir)/%.dvi): New implicit rule.
1025
1026 2003-11-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1027
1028         * doc/gty.texi (tag, desc): Say more about role of desc values in
1029         selecting between tags.
1030
1031 2003-11-03  Alexander Kabaev  <ak03@gte.com>
1032
1033         * real.c (encode_ieee_single): Ensure proper promotion.
1034
1035 2003-11-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1036
1037         * doc/contrib.texi: Add Giovanni Bajo, Dara Hazeghi, Falk Hueffner,
1038         and Andrew Pinski.
1039
1040 2003-11-03  Syd Polk  <spolk@apple.com>
1041
1042         * config/rs6000/rs6000.c (rs6000_override_options): Add G3, G4, and G5
1043         marketing names to the list of supported processors.
1044         * config/rs6000/rs6000.h: Ditto.
1045         * doc/invoke.texi: Ditto.
1046         * config.gcc: Ditto.
1047
1048 2003-11-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1049
1050         * fixinc/inclhack.def (stdio_va_list): Allow tab before va_list.
1051         Merge two substitutions.
1052         * fixinc/fixincl.x: Regenerate.
1053         Fixes PR bootstrap/12666.
1054
1055 2003-11-03  Joseph S. Myers  <jsm@polyomino.org.uk>
1056
1057         * doc/install-old.texi: Remove VMS documentation.
1058
1059 2003-11-03  Jan Hubicka  <jh@suse.cz>
1060
1061         * i386.c (override_options):  Remove hack enabling 128bit long double
1062         commited by accident.
1063
1064 2003-11-02  Per Bothner  <per@bothner.com>
1065
1066         * c-opts.c (needValue):  Do cpp_find_main_file before processing
1067         any imacros flags, so pfile->main_file is set for the latter.
1068
1069 2003-11-03  Andreas Jaeger  <aj@suse.de>
1070             Zack Weinberg  <zack@codesourcery.com>
1071
1072         * Makefile.in (GCC_CFLAGS): Allow blacklisting of warnings.
1073         (SYSCALLS.c.X-warn): Suppress warnings.
1074
1075 2003-11-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1076
1077         PR optimization/12845
1078         * pa.c (output_cbranch): Use cmpb for DImode comparisons with 0.
1079
1080 2003-11-02  Zack Weinberg  <zack@codesourcery.com>
1081
1082         * print-rtl.c (print_rtx): Call PRINT_REG with second argument -1.
1083         * config/i386/i386.c (print_reg): Abort on a virtual register
1084         if code != -1; not if file == asm_out_file.
1085         * config/i386/i386.h (PRINT_REG): Document meaning of CODE == -1.
1086         (DEBUG_PRINT_REG): Delete, unused.
1087
1088 2003-11-02  Andreas Schwab  <schwab@suse.de>
1089
1090         * config/ia64/fde-glibc.c (_GNU_SOURCE): Define to 1 instead of
1091         empty to avoid conflict with the definition from configure.
1092
1093 2003-11-02  Roger Sayle  <roger@eyesopen.com>
1094
1095         PR optimization/10817
1096         * ifcvt.c (noce_emit_move_insn): Improve documentation comment.
1097         (noce_try_move): New function to optimize an if-the-else into an
1098         unconditional move, i.e. "if (a!=b) x=a; else x=b" into "x=a".
1099         (noce_process_if_block): Attempt simplification with noce_try_move.
1100
1101         * simplify-rtx.c (simplify_ternary_operation): Some minor fixes
1102         and improvements to the optimizations of IF_THEN_ELSE expressions.
1103         (simplify_subreg): Silence signed/unsigned comparison warning.
1104
1105 2003-11-02  Richard Sandiford  <rsandifo@redhat.com>
1106
1107         * Makefile.in (targhooks.o, reload.o): Update dependencies.
1108         (GTFILES): Add targhooks.c.
1109         (gt-targhooks.h): New rule; depend on s-gtype.
1110         * target.h (direct_pool_load_p): New hook.
1111         * target-def.h (TARGET_DIRECT_POOL_LOAD_P): New macro.
1112         (TARGET_INITIALIZER): Include it.
1113         * targhooks.h (default_direct_pool_load_p): Declare.
1114         (hook_bool_machine_mode_true): Declare.
1115         * targhooks.c: Include insn-config.h, recog.h, ggc.h and
1116         gt-targhooks.h.
1117         (pool_symbol): New variable.
1118         (default_direct_pool_load_p): New function.
1119         (hook_bool_machine_mode_true): New function.
1120         * reload.c: Include target.h.
1121         (find_reloads): If an alternative will force a constant into memory,
1122         count an extra reload if constant pool symbols are not valid
1123         addresses.  If an alternative uses memory to move values between
1124         registers, count the move as two reloads rather than one.
1125         * config/s390/s390.c (TARGET_DIRECT_POOL_LOAD_P): Define.
1126         * doc/tm.texi (TARGET_DIRECT_POOL_LOAD_P): Document.
1127
1128 2003-11-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
1129
1130         PR optimization/12799
1131         * postreload.c (reload_cse_move2add): Generate the add2
1132         patterns manually.
1133
1134 2003-11-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
1135
1136         * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
1137         Return 0 for all complex modes whose size is lesser or equal to
1138         a word.  Add a ??? comment for the condition used with 16-byte
1139         aligned modes.
1140
1141 2003-11-01  Kelley Cook  <kcook@gcc.gnu.org>
1142
1143         * .cvsignore: Remove c-parse* and tradcif.c.
1144         * objc/.cvsignore: Delete.
1145
1146 2003-11-01  Roger Sayle  <roger@eyesopen.com>
1147
1148         * unwind-sjlj.c (_Unwind_GetCFA): Return (_Unwind_Word)0 instead
1149         of NULL.
1150
1151 2003-11-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1152
1153         * som.h (DO_GLOBAL_DTORS_BODY): Change to C90 declaration.
1154
1155         * libgcc2.c (SYMBOL__MAIN): Provide C90 declaration.
1156
1157         * collect2.c (scan_libraries): Fix typos.
1158
1159         PR preprocessor/12847
1160         * cppfiles.c, cppexp.c, cpperror.c, cpplib.h, cpplib.c, cpplex.c,
1161         cppinit.c, cpptrad.c, cppmacro.c, fix-header.c, cpppch.c, c-pch.c,
1162         c-incpath.c, cppcharset.c (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN,
1163         DL_ERROR, DL_ICE, DL_EXTRACT, DL_WARNING_P): Prefix macro names with
1164         "CPP_".
1165
1166 2003-11-01  Fariborz Jahanian  <fjahanian@apple.com>
1167
1168         * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Correct
1169         no_units calculation.
1170
1171 2003-11-01  Andreas Jaeger  <aj@suse.de>
1172
1173         * unwind-dw2.c (_Unwind_FrameState): Remove commas at end of
1174         enumeration list.
1175
1176 2003-11-01  Andreas Schwab  <schwab@suse.de>
1177
1178         * config/ia64/sysv4.h (SDATA_SECTION_FUNCTION): Update to C90
1179         prototypes.
1180         (SBSS_SECTION_FUNCTION): Likewise.
1181
1182 2003-11-01  Andreas Jaeger  <aj@suse.de>
1183
1184         * Makefile.in (GCC_CFLAGS): Add @WERROR@ for target files.
1185
1186 2003-11-01  Andreas Tobler  <a.tobler@schweiz.ch>
1187
1188         * config/rs6000/sysv4.h (EXTRA_SECTION_FUNCTIONS): Update to C90
1189         prototypes.
1190
1191 2003-11-01  Andreas Jaeger  <aj@suse.de>
1192
1193         * unwind-dw2.c (_Unwind_FindEnclosingFunction): Constify variable.
1194         (uw_frame_state_for): Constify variables.
1195         (extract_cie_info): Constify first argument.
1196
1197         * unwind-dw2-fde-darwin.c: Adjust prototype of
1198         _Unwind_Find_registered_FDE for recent changes.
1199         (examine_objects): Constify return value and local variable result.
1200         (_Unwind_Find_FDE): Constify return value and local variable ret.
1201
1202 2003-10-31  Per Bothner  <pbothner@apple.com>
1203
1204         * c-opts.c (finish_options):  Change to returns boolean - false iff
1205         the call to cpp_find_main_file fails.
1206         (c_common_init):  Skip preprocess_file if finish_options failed.
1207         (c_common_parse_file):  Break if finish_options failed.
1208         Fixes PR preprocessor/12545.
1209
1210 2003-10-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1211
1212         * aclocal.m4: Blacklist ultrix* for mmap file.
1213         * configure: Rebuilt.
1214
1215         * function.c (assign_parms): Add ATTRIBUTE_UNUSED to variable
1216         reg_parm_stack_space.
1217         * toplev.c (default_get_pch_validity): Fix warning.
1218
1219         * vax.c: Include toplev.h.
1220         (vax_init_libfuncs): Fix typo (umod).
1221         * vax.h (ASM_COMMENT_START): Define.
1222         (PRINT_OPERAND): Fix warning when HOST_WIDE_INT is a long long.
1223
1224 2003-10-31  Roger Sayle  <roger@eyesopen.com>
1225
1226         PR middle-end/11968
1227         * expr.c (expand_expr <MULT_EXPR>): Remove inappropriate and
1228         confusing comment; distributivity isn't handled in expand_expr.
1229         * fold-const.c (extract_muldiv_1 <PLUS_EXPR>):  Allow overflow
1230         in distributivity, if wrap-around semantics are specified with
1231         -fwrapv.
1232
1233 2003-11-01  Alan Modra  <amodra@bigpond.net.au>
1234
1235         PR 12315
1236         * final.c (profile_function): Allow for NULL svrtx.
1237
1238 2003-10-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1239
1240         * pa.c (pa_select_section): Use new style declaration.
1241         * som.h (readonly_data): Likewise.
1242
1243 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
1244
1245         * config/rs6000/rs6000.c: Update to C90 prototypes.
1246
1247 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
1248
1249         PR target/7513
1250         * arm.h (CONDITIONAL_REGISTER_USAGE): Disable use of LR in Thumb
1251         code.
1252
1253 2003-10-31  Andreas Jaeger  <aj@suse.de>,
1254             Zack Weinberg  <zack@codesourcery.com>
1255
1256
1257         * crtstuff.c (__register_frame_info, __register_frame_info_bases)
1258         (__deregister_frame_info, __deregister_frame_info_bases):
1259         Constify void * argument.
1260         * unwind-dw2-fde.h (struct fde_vector):
1261         Constify 'orig_data' and 'array' fields.
1262         (__register_frame_info, __register_frame_info_bases)
1263         (__deregister_frame_info, __deregister_frame_info_bases):
1264         Constify void * argument.
1265         (get_cie, next_fde, _Unwind_Find_FDE): Constify arguments,
1266         return values, and casts of type fde *, struct dwarf_fde *,
1267         and struct dwarf_cie *.
1268         * unwind-dw2-fde.c (__register_frame_info, __register_frame_info_bases)
1269         (__deregister_frame_info, __deregister_frame_info_bases):
1270         Constify void * argument.
1271         (get_cie_encoding, ): Constify struct dwarf_cie * argument.
1272         (get_fde_encoding, fde_unencoded_compare, fde_single_encoding_compare)
1273         (fde_mixed_encoding_compare, fde_compare_t, start_fde_sort, fde_insert)
1274         fde_split, SWAP, frame_downheap, frame_heapsort)
1275         (classify_object_over_fdes, add_fdes, linear_search_fdes,
1276         binary_search_unencoded_fdes, binary_search_single_encoding_fdes,
1277         binary_search_mixed_encoding_fdes, search_object, _Unwind_Find_FDE):
1278         Constify arguments, local variables, return values, and casts
1279         of type fde *, fde **, struct dwarf_fde *, and struct dwarf_cie *.
1280         Use const pointer types in sizeof expressions, for clarity.
1281         * unwind-dw2-fde-glibc.c
1282         (_Unwind_find_registered_FDE, _Unwind_find_FDE): Constify return value.
1283         (struct unw_eh_callback_data): Constify 'ret' field.
1284
1285 2003-10-31  Fariborz Jahanian  <fjahanian@apple.com>
1286             David Edelsohn  <edelsohn@gnu.org>
1287
1288         * config/rs6000/rs6000.c (rs6000_mixed_function_arg): New.
1289         (function_arg): Call it.
1290         (rs6000_function_value): Widen integral return value to mode based
1291         on TARGET_32BIT, not word_mode.
1292         * config/rs6000/rs6000.h (PROMOTE_MODE): Likewise.
1293         (UNITS_PER_ARG): New.
1294         (RS6000_ARG_SIZE): Use it.
1295
1296 2003-10-31  Gerald Pfeifer  <gerald@pfeifer.com>
1297
1298         * .cvsignore: No longer ignore gengtype-lex.c, gengtype-yacc.c,
1299         and gengtype-yacc.h.
1300
1301 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
1302
1303         PR optimization/8896
1304         * postreload.c (reload_combine): Check that REGY doesn't die in an
1305         insn of the form (set (regx) (plus (regx) (regy))), ie REGX != REGY.
1306
1307 2003-10-31  Josef Zlomek  <zlomekj@suse.cz>
1308
1309         PR/10239
1310         * cfgrtl.c (delete_insn): Decrease LABEL_NUSES for all REG_LABEL notes.
1311
1312 2003-10-31  Josef Zlomek  <zlomekj@suse.cz>
1313
1314         PR/11640
1315         * cfgrtl.c (try_redirect_by_replacing_jump): Move jump
1316         immediatelly before BARRIER.
1317
1318 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
1319
1320         * Makefile.in (STRICT2_WARN): Add -Wold-style-definition.
1321
1322 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
1323
1324         PR target/11271
1325         * reload.c (find_reloads_address): Handle any register in
1326         (PLUS (PLUS (REG) (REG)) (CONST_INT).
1327
1328 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
1329
1330         * ggc-page.c (ggc_pch_read): Wrap call to poison_pages in
1331         ENABLE_GC_CHECKING not in GGC_POISON.
1332
1333 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
1334
1335         PR bootstrap/9863
1336         * configure.in: Bail out if awk is missing.
1337         * configure: Regenerate.
1338
1339         PR ada/12761
1340         * Makefile.in: Move default definitions of X_ADA_CFLAGS,
1341         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from ada/Make-lang.in to here.
1342
1343 2003-10-30  Richard Henderson  <rth@redhat.com>
1344
1345         * c-objc-common.c (c_tree_printer): Handle types correctly.
1346         Factor code a bit.
1347
1348 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
1349
1350         * value-prof.c, web.c: Update to C90.
1351
1352 2003-10-30  Eric Christopher  <echristo@redhat.com>
1353
1354         * function.c (purge_addressof_1): Add case for REG_RETVAL
1355         notes when modes are unequal.
1356
1357 2003-10-31  Jan Hubicka  <jh@suse.cz>
1358
1359         * i386-modes.def: Add XFmode format adjustment.
1360
1361 2003-10-30  Jan Hubicka  <jh@suse.cz>
1362
1363         * real.c (encode_ieee_extended): Back out previous patch.
1364
1365 2003-10-30  Jan Hubicka  <jh@suse.cz>
1366
1367         * real.c (encode_ieee_extended): Initialize whole array.
1368         * reg-stack.c (move_for_stack_reg0: Use always XFmode.
1369         * i386-modes.def: Change definitions of TFmode and XFmode.
1370         * i386.c (classify_argument): Rename TFmodes to XFmodes; add new TFmode
1371         code.
1372         (construct_container): Allow constructing of TFmode integer containers.
1373         (ix86_return_in_memory):  XFmode is not returned in memory.
1374         (init_ext_80387_constants): Always use XFmode.
1375         (print_operand): Likewise.
1376         (ix86_prepare_fp_compare_regs): Likewise.
1377         (split_to_parts): Deal with TFmode.
1378         (split_long_move): Simplify.
1379         (ix86_init_mmx_sse_builtins): Add __float80, __float128.
1380         (ix86_memory_move_cost): Do not confuse TFmode.
1381         * i386.h (LONG_DOUBLE_TYPE_SIZE): Set to 96.
1382         (IS_STACK_MODE): TFmode is not stack mode.
1383         (HARD_REGNO_NREGS, CLASS_MAX_NREGS): Deal nicely with XFmode.
1384         (VALID_SSE_REG_MODE): Allow TFmode.
1385         (VALID_FP_MODE_P): Disallow TFmode.
1386         (VALID_INT_MODE_P): Allow TFmode in 64bit mode.
1387         * i386.md (TFmode patterns): Kill.
1388         (movtf, motf_rex64): New patterns.
1389
1390 2003-10-30  Richard Sandiford  <rsandifo@redhat.com>
1391
1392         * config/mips/mips.md (adddi3): Fix typo in mips16 stack pointer code.
1393
1394 2003-10-30  Richard Sandiford  <rsandifo@redhat.com>
1395
1396         * config/mips/mips.md (mov_lwl): Use memory_operand where appropriate.
1397         (mov_lwr, mov_swl, mov_swr): Likewise.
1398         (mov_ldl, mov_ldr, mov_sdl, mov_sdr): Likewise.
1399
1400 2003-10-30  Richard Sandiford  <rsandifo@redhat.com>
1401
1402         * config/mips/mips.c (mips_global_pointer): Don't try to use $25.
1403
1404 2003-10-30  Richard Henderson  <rth@redhat.com>
1405
1406         * config/mips/mips.c (mips_build_builtin_va_list): Use runtime
1407         test for irix6 rather than preprocessor test.
1408
1409 2003-10-30  Richard Henderson  <rth@redhat.com>
1410
1411         * cppcharset.c (one_utf8_to_utf16): Initialize 's' to silence warning.
1412
1413 2003-10-30  Ulrich Weigand  <uweigand@de.ibm.com>
1414
1415         * config/s390/s390.c (struct machine_function): Use save_return_addr_p
1416         as a general flag that the return address register needs to be saved,
1417         not necessarily because of __builtin_return_addr (0).
1418         (s390_split_branches): Remove TEMP_REG and TEMP_USED arguments,
1419         remove special handling of zSeries machines.
1420         (s390_optimize_prolog): Remove TEMP_USED argument, treat the return
1421         register as a regular register on zSeries machines.
1422         (s390_reorg): Adjust calls to s390_split_branches and
1423         s390_optimize_prolog.
1424         (s390_frame_info): On zSeries machines, do not assume the return
1425         register is always used.  Update regs_ever_live with current data
1426         for the special registers.
1427         (s390_emit_epilogue): Use save_return_addr_p to determine whether
1428         the return register was saved.
1429         * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Do not mark
1430         RETURN_REGNUM fixed on zSeries machines.
1431         (REG_ALLOC_ORDER): Use RETURN_REGNUM last.
1432         * config/s390/s390.md ("*doloop_si"): Handle branch overflow
1433         via ahi-jgne pair on zSeries machines.
1434         ("*doloop_di"): Likewise.
1435         ("*doloop_di_long"): Remove.
1436
1437 2003-10-30  Richard Earnshaw  <rearnsha@arm.com>
1438
1439         * arm.c (arm_override_options): Revert change of arm_constant_limit
1440         when optimizing for size.
1441
1442 2003-10-29  Richard Henderson  <rth@redhat.com>
1443
1444         * fold-const.c (fold_single_bit_test): Convert the input to the
1445         operational intermediate type.
1446
1447 2003-10-29  Richard Henderson  <rth@redhat.com>
1448
1449         * builtins.c (std_build_builtin_va_list): New.
1450         * expr.h (std_build_builtin_va_list): Declare.
1451         * defaults.h (BUILD_VA_LIST_TYPE): New.
1452         * system.h (BUILD_VA_LIST_TYPE): Poison.
1453         * target-def.h (TARGET_BUILD_BUILTIN_VA_LIST): New.
1454         * target.h (struct gcc_target): Add build_builtin_va_list.
1455         * tree.c (build_common_tree_nodes_2): Use it.
1456
1457         * config/alpha/alpha-protos.h, config/alpha/alpha.c,
1458         config/alpha/alpha.h, config/alpha/unicosmk.h,
1459         config/d30v/d30v-protos.h, config/d30v/d30v.c, config/d30v/d30v.h,
1460         config/i386/i386-protos.h, config/i386/i386.c, config/i386/i386.h,
1461         config/i860/i860-protos.h, config/i860/i860.c, config/i860/i860.h,
1462         config/i960/i960-protos.h, config/i960/i960.c, config/i960/i960.h,
1463         config/mips/iris6.h, config/mips/mips-protos.h, config/mips/mips.c,
1464         config/mips/mips.h, config/rs6000/rs6000-protos.h,
1465         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
1466         config/s390/s390-protos.h, config/s390/s390.c, config/s390/s390.h,
1467         config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
1468         config/xtensa/xtensa-protos.h, config/xtensa/xtensa.c,
1469         config/xtensa/xtensa.h: Rename foo_build_va_list to
1470         foo_build_builtin_va_list; make it static.  Define
1471         TARGET_BUILD_BUILTIN_VA_LIST.  Remove BUILD_VA_LIST_TYPE.
1472         Update protos.
1473
1474         * config/i386/i386.c (ix86_expand_carry_flag_compare): Make static.
1475         * config/iq2000/iq2000.h (BUILD_VA_LIST_TYPE): Remove.
1476
1477 2003-10-29  James E Wilson  <wilson@specifixinc.com>
1478
1479         * recog.c (asm_operand_ok): Add missing break after case 'X'.
1480         Change if statements to else if statements in default case.
1481         (extract_constrain_insn_cached): Fix misspelling of constrain_operands
1482         in comment.
1483         (constrain_operands_cached): Likewise.
1484         (constrain_operands): Change if statements to else if statements in
1485         default case.
1486         * reload.c (find_reloads): Likewise.
1487
1488 2003-10-29  Richard Henderson  <rth@redhat.com>
1489
1490         * config/m68k/m68k.c (notice_update_cc): Clear cc status for
1491         shifts and rotates.
1492
1493 2003-10-30  Alan Modra  <amodra@bigpond.net.au>
1494
1495         * config/rs6000/rs6000.md: Remove duplicate pattern.
1496
1497 2003-10-29  Hans-Peter Nilsson  <hp@axis.com>
1498
1499         * real.c (do_divide): Initialize result with a 0.
1500
1501         * configure.in <enable-checking for valgrind>: Look for
1502         <valgrind/memcheck.h> first.  AC_DEFINE HAVE_VALGRIND_MEMCHECK_H
1503         if it exists.
1504         * configure, config.in: Regenerate.
1505         * ggc-common.c [ENABLE_VALGRIND_CHECKING &&
1506         HAVE_VALGRIND_MEMCHECK_H]: Include <valgrind/memcheck.h>.  Use
1507         #elif for other alternatives.
1508         * ggc-page.c: Ditto.
1509         * ggc-zone.c: Don't assume <valgrind/memcheck.h>; instead copy
1510         include structure from ggc-common.c.
1511
1512 2003-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1513
1514         * pa-linux.h (ASM_OUTPUT_ADDR_VEC_ELT): Use label in big switch ELTs.
1515         (ASM_OUTPUT_ADDR_DIFF_ELT): Use label difference in big switch ELTs.
1516         * pa.c (pa_adjust_insn_length): Check for btable branches using
1517         attribute TYPE_BTABLE_BRANCH.
1518         (pa_reorg): Simplify.
1519         * pa.h (CASE_VECTOR_MODE): Change big switch mode to SImode.
1520         (ASM_OUTPUT_ADDR_VEC_ELT): As above.
1521         (ASM_OUTPUT_ADDR_DIFF_ELT): As above.
1522         * pa.md (btable_branch): New instruction type.
1523         (in_branch_delay, in_nullified_branch_delay, in_call_delay): Disallow
1524         btable branches.
1525         (define_delay): Add btable branches to insn types that may have an
1526         insn in the delay position.
1527         (Z2, Z3): Add btable branch to list.
1528         Simplify unamed pattern set copy pic_label_operand to register.  Add
1529         PA 2.0 variant.
1530         (short_jump): New jump for use in branch tables.
1531         (casesi, casesi0): Revise for new branch table formats.
1532         (casesi32, casesi32p, casesi64p): New casesi patterns.
1533         (indirect_jump): Move.
1534
1535 2003-10-29  David Edelsohn  <edelsohn@gnu.org>
1536
1537         * config/rs6000/rs6000.h (UNITS_PER_WORD): Revert to
1538         !TARGET_POWERPC64.
1539         (UNITS_PER_GPR_WORD): Delete.
1540         (HARD_REGNO_NREGS): Revert to UNITS_PER_WORD.
1541         (HARD_REGNO_MODE_OK): Same.
1542         (CLASS_MAX_NREGS): Same.
1543
1544 2003-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1545
1546         * pa.h (ASM_COMMENT_START): Define.
1547
1548 2003-10-29  Zack Weinberg  <zack@codesourcery.com>
1549
1550         * genmodes.c (complete_mode): Record MODE_CC, MODE_INT,
1551         MODE_FLOAT, and MODE_PARTIAL_INT modes as having one
1552         component, not zero.
1553
1554 2003-10-29  Andreas Schwab  <schwab@suse.de>
1555
1556         * config/ia64/t-ia64 (LIB2ADDEH): Add $(srcdir)/gthr-gnat.c.
1557
1558 2003-10-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
1559
1560         * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
1561         Never return 1 for complex integral modes whose size is lesser or
1562         equal to a word.
1563         (function_arg_pass_by_reference) [TARGET_ARCH64]: Mention CTImode
1564         in the comment.
1565         (function_arg_advance) [TARGET_ARCH64]: Don't special-case complex
1566         modes.
1567         (sparc_va_arg) [TARGET_ARCH64]: Handle any types whose size is
1568         greater than 16 bytes by reference.
1569
1570 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1571
1572         * config/ia64/ia64.c (ia64_assemble_integer): Test POINTER_SIZE,
1573         not TARGET_ILP32.
1574         (ia64_initialize_trampoline): Use globalize_label target call.
1575
1576 2003-10-29  Andreas Schwab  <schwab@suse.de>
1577
1578         * doc/install.texi (Building): Add a sentence about building Ada
1579         for a canadian cross.
1580
1581 2003-10-28  Zack Weinberg  <zack@codesourcery.com>
1582
1583         * config/ia64/ia64.c (cmptf_libfunc): New static.
1584         (ia64_expand_compare): Add logic to open-code calls to
1585         _U_Qfcmp for TFmode comparisons.
1586         (ia64_hpux_init_libfuncs): Initialize cmptf_libfunc.
1587         Set libfuncs for TFmode eq/ne/gt/ge/lt/gt to 0; these should
1588         never be generated anymore.
1589         * config/ia64/ia64.md (cmptf): New expander.
1590
1591 2003-10-28  Zack Weinberg  <zack@codesourcery.com>
1592
1593         * ia64.md (UNSPEC_SETF_EXP,UNSPEC_FR_SQRT_RECIP_APPROX): New constants.
1594         (*sqrt_approx): New instruction pattern for approximate square roots.
1595         (*setf_exp_xf): New instruction pattern for exponentiation.
1596         (*maddxf4_alts_truncsf): New instruction pattern for truncation.
1597         (sqrtsf2_internal_thr): New define_and_split implementing
1598         throughput-optimized inline calculation of SFmode square root.
1599         (sqrtdf2_internal_thr): Likewise for DFmode.
1600         (sqrtxf2_internal_thr): Likewise for XFmode.
1601         (sqrtsf2, sqrtdf2, sqrtxf2): New expanders to choose between
1602         latency- and throughput-optimized square root algorithms.
1603         * ia64.h (MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR,
1604         TARGET_INLINE_SQRT_LAT, TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT):
1605         New macros.
1606         (TARGET_SWITCHES): Add -minline-sqrt-min-latency and
1607         -minline-sqrt-max-throughput.
1608         * ia64.c (ia64_override_options): If both -minline-sqrt-min-latency
1609         and -minline-sqrt-max-throughput are given, notify the user
1610         that both options cannot be used simultaneously.
1611         If -minline-sqrt-min-latency is given, notify the user that
1612         this mode is not yet implemented.
1613         (rtx_needs_barrier): Reformat initial comment to obey
1614         72-character width limit.  Support UNSPEC_SETF_EXP and
1615         UNSPEC_FR_SQRT_RECIP_APPROX.
1616
1617 2003-10-29  Alan Modra  <amodra@bigpond.net.au>
1618
1619         * config/rs6000/rs6000.md (movdf_softfloat64): Allow dummy ctr,ctr
1620         moves.
1621
1622 2003-10-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1623
1624         PR target/11598
1625         PR libgcj/10610
1626         * config/rs6000/sysv4.h (PREFERRED_STACK_BOUNDARY): New macro.
1627
1628 2003-10-28  Richard Earnshaw  <rearnsha@arm.com>
1629
1630         * arm.c (arm_output_epilogue): When using a frame pointer, don't emit
1631         an extra stack adjustment insn if the stack pointer is already
1632         pointing at the right place.
1633         (use_return_insn): Allow a return insn to be used when we have a
1634         frame pointer if the stack pointer is in the right place.
1635         (output_return_instruction): Handle it.
1636
1637 2003-10-28  Andreas Jaeger  <aj@suse.de>
1638
1639         * ggc-zone.c (check_cookies): Add missing variable.
1640         Add void to prototypes.
1641
1642 2003-10-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1643
1644         * config/mips/irix6-libc-compat.c (inet_makeaddr): Prototype.
1645         * crtstuff.c (__do_global_ctors_1): Move prototype.
1646         * unwind-dw2.c (NO_SIZE_OF_ENCODED_VALUE): Define when
1647         appropriate.
1648         * unwind-sjlj.c (_Unwind_GetCFA, _Unwind_FindEnclosingFunction):
1649         Mark parameter with __attribute__((unused)).
1650
1651 2003-10-27  Zack Weinberg  <zack@codesourcery.com>
1652
1653         * c-decl.c (pushdecl): Clarify comment.
1654
1655 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
1656
1657         * doc/install.texi: Update instructions for Ada cross builds
1658
1659         PR ada/5909:
1660         * doc/sourcebuild.texi: Document Ada test suite.
1661
1662 2003-10-27  Stephane Carrez  <stcarrez@nerim.fr>
1663
1664         * config/m68hc11/m68hc11.c: Convert to ISO C90.
1665         * config/m68hc11/m68hc11-protos.h: Likewise.
1666
1667 2003-10-27  Jan Hubicka  <jh@suse.cz>
1668             Eric Botcazou  <ebotcazou@libertysurf.fr>
1669
1670         * toplev.c (enum dump_file_index, dump_file): Fix ordering of
1671         webizer pass dump.
1672
1673 2003-10-27  Jakub Jelinek  <jakub@redhat.com>
1674             Jan Hubicka  <jh@suse.cz>
1675
1676         * reload1.c (struct elim_table): Change offset, initial_offset and
1677         previous_offset fields to HOST_WIDE_INT.
1678         (offsets_at): Change from int to HOST_WIDE_INT.
1679         (reload): Adjust offsets_at initialization.
1680         (eliminate_regs_in_insn): Change type of offset to HOST_WIDE_INT.
1681         (verify_initial_elim_offsets): Change type of t to HOST_WIDE_INT.
1682         * config/i386/i386.c (ix86_compute_frame_layout): Change offset type
1683         to HOST_WIDE_INT.  Don't save regs using mov for huge frame sizes
1684         if TARGET_64BIT.
1685         (pro_epilogue_adjust_stack): New function.
1686         (ix86_expand_prologue, ix86_expand_epilogue): Use it.
1687         * config/i386/i386.md (pro_epilogue_adjust_stack): Remove.
1688         (pro_epilogue_adjust_stack_1): Remove * in front of name.
1689         (pro_epilogue_adjust_stack_rex64): Handle -2147483648 properly.
1690         (pro_epilogue_adjust_stack_rex64_2): New insn.
1691
1692         * config/i386/i386.c (ix86_expand_epilogue): Fix comment typo.
1693
1694         * config/i386/i386.c (ix86_expand_call): Replace 40 with
1695         FIRST_REX_INT_REG + 3 /* R11 */.
1696
1697 2003-10-26  Richard Henderson  <rth@redhat.com>
1698
1699         * config/alpha/alpha.md (attr cannot_copy): New.
1700         (call_osf_2_er, call_value_osf_2_er, ldgp_er_1, ldgp_er_2,
1701         prologue_ldgp_er_2, prologue_ldgp_1): Set it.
1702         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Test it.
1703
1704 2003-10-26  Daniel Berlin  <dberlin@dberlin.org>
1705
1706         * ggc-zone.c:  New file, zone allocating collector.
1707         * configure: Accept zone option for --with-gc
1708         * configure.in: Ditto.
1709         * ggc.h (ggc_pch_count_object): Pass bool indicating
1710         stringiness. Update all callers.
1711         (ggc_pch_alloc_object): Ditto.
1712         (ggc_pch_write_object): Ditto.
1713         (ggc_alloc_rtx): Use typed allocation, since all RTX's are of a single
1714         type.
1715         (ggc_alloc_rtvec): Ditto.
1716         (ggc_alloc_tree): Use zone allocation, since some things using this macro
1717         aren't a single typecode.
1718         * ggc-none.c (ggc_alloc_typed): New function.
1719         (ggc_alloc_zone): Ditto.
1720         * ggc-page.c: Ditto on both functions.
1721
1722 2003-10-26  Gunther Nikl  <gni@gecko.de>
1723
1724         * config/m68k/m68k.c (m68k_compute_frame_layout): Ensure FPU related
1725         frame information is always valid.
1726         (m68k_output_function_prologue): Remove superfluous TARGET_68881
1727         test; fix formatting.
1728
1729 2003-10-26  Gunther Nikl  <gni@gecko.de>
1730
1731         * config/m68k/m68k.c (m68k_compute_frame_layout): Swap reg_mask and
1732         reg_rev_mask computation.
1733         (m68k_output_function_prologue): Fix usage of current_frame (one typo
1734         and one missing); use reg_rev_mask not reg_mask.
1735         (m68k_output_function_epilogue): Fix usage of current_frame;
1736         use fpu_rev_mask not fpu_mask.
1737
1738 2003-10-26  Bernardo Innocenti  <bernie@develer.com>
1739
1740         * config/m68k/m68k.c (m68k_output_function_prologue): Eliminate
1741         num_saved_regs, use current_frame.reg_no instead.
1742
1743 2003-10-26  Bernardo Innocenti  <bernie@develer.com>
1744             Paul Dale  <pauli@snapgear.com>
1745
1746         * doc/extend.texi (interrupt_handler): Add m68k to the
1747         list of processors implementing it.
1748         * doc/invoke.texi (-msep-data): Document new m68k option.
1749         (-mno-sep-data): Likewise.
1750         (-mid-shared-library): Likewise.
1751         (-mno-id-shared-library): Likewise.
1752         (-mshared-library-id): Likewise.
1753
1754 2003-10-26  Andreas Jaeger  <aj@suse.de>
1755
1756         * unwind-dw2.c (_Unwind_GetGR): Avoid warning about unsigned
1757         comparison.
1758         (_Unwind_SetGR): Likewise.
1759
1760 2003-10-26  Ottavio Campana <ottavio@campana.vi.it>
1761
1762         PR target/12690
1763         * config/i386/mmintrin.h (_mm_set1_pi8): Fix comment.
1764
1765 2003-10-26  Gunther Nikl  <gni@gecko.de>
1766
1767         * config/m68k/m68k.c (m68k_output_function_prologue): Move front
1768         comment from here to...
1769         (m68k_save_reg): ...here. Fix comment formatting.
1770         (m68k_output_function_prologue): Fix comment formatting.
1771         (m68k_output_function_epilogue): Likewise.
1772         (const_method): Likewise.
1773
1774 2003-10-26  Kazu Hirata  <kazu@cs.umass.edu>
1775
1776         * toplev.c (default_get_pch_validity): Guard the use of
1777         target_options with #ifdef TARGET_OPTIONS.
1778         (default_pch_valid_p): Likewise.
1779
1780 2003-10-26  Andreas Jaeger  <aj@suse.de>
1781             Zack Weinberg  <zack@codesourcery.com>
1782             Andreas Tobler <toa@pop.agri.ch>
1783
1784         * dwarf2out.c (output_cfi): Use HOST_WIDE_INT_PRINT.
1785         (output_die): Likewise.
1786         (print_die): Likewise.
1787
1788 2003-10-26  Andreas Jaeger  <aj@suse.de>
1789
1790         * tree.h (dwarf2out_def_cfa, dwarf2out_args_size,
1791         dwarf2out_reg_save, new_loc_descr): Update prototypes for recent
1792         dwarf2out.c change.
1793
1794         * toplev.c (default_pch_valid_p): Fix warning.
1795
1796 2003-10-25  Roger Sayle  <roger@eyesopen.com>
1797
1798         * simplify-rtx.c (simplify_replace_rtx): Avoid allocating duplicate
1799         RTL nodes.  If an operator's operands are unchanged, return the
1800         original argument unchanged.
1801
1802 2003-10-26  Graham Stott  <graham.stott@btinternet.com>
1803
1804         Fix bootstrap failure.
1805         * expmed.c (store_bit_field): Don't compare bitsize against
1806         modes with zero bit-size.
1807
1808         (extract_bit_field): Likewise
1809
1810 2003-10-25  Jan Hubicka  <jh@suse.cz>
1811
1812         * dwarf2out.c (dw_cfi_oprnd_struct): Offset is HOST_WIDE_INT.
1813         (cfa_loc): Likewise.
1814         (reg_save, stack_adjust_offset, queue_reg_save): Replace long by
1815         HOST_WIDE_INT.
1816         (args_size, old_args_size): change type to HOST_WIDE_INT.
1817         (dwarf2out_def_cfa, dwarf2out_args_size,
1818         dwarf2out_reg_save, new_loc_descr): offset is HOST_WIDE_INT.
1819         (dw_val_struct): integers, unsigneds and offsets are HOST_WIDE_INT.
1820         (add_AT_int, add_AT_unsigned, att_AT_offset, AT_int, AT_unsigned,
1821         AT_offset): Use HOST_WIDE_INT.
1822         (based_loc_descr): offset is HOST_WIDE_INT.
1823         (add_data_member): Likewise.
1824         (add_const_value_attribute): Simplify.
1825
1826 2003-10-25  Richard Henderson  <rth@redhat.com>
1827
1828         * config/i386/i386.c (ix86_eax_live_at_start_p): New.
1829         (ix86_expand_prologue): Save and restore eax around stack probe
1830         if it's live.
1831
1832 2003-10-25  Jan Hubicka  <jh@suse.cz>
1833
1834         * cppcharset.c (one_utf8_to_utf32): Initialize 's' to silence warning.
1835
1836 2003-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
1837
1838         PR target/12712
1839         * reg-stack.c (convert_regs_1): Create an arbitrary input stack
1840         if the block has no predecessors.
1841         (convert_regs_2): Document the problem with successors whose
1842         only predecessor is the block to be processed.
1843         (convert_regs): Don't create the arbitrary input stack here.
1844
1845 2003-10-24  Zack Weinberg  <zack@codesourcery.com>
1846
1847         * genmodes.c (struct mode_data): Add contained and next_cont
1848         fields.
1849         (complete_mode): Maintain linked list of modes that have a
1850         given component.
1851         (emit_mode_unit_size): Delete.
1852         (emit_mode_nunits): New.
1853         (emit_insn_modes_c): Update to match.
1854         (emit_mode_adjustments): Propagate size and alignment
1855         adjustments from component modes to their containers.
1856         * machmode.h (mode_unit_size): Delete.
1857         (mode_nunits): New.
1858         (GET_MODE_NUNITS): Just return the value in the table.
1859         (GET_MODE_UNIT_SIZE): Compute using GET_MODE_INNER and
1860         GET_MODE_SIZE.
1861         * expmed.c (store_bit_field, extract_bit_field): Can use a
1862         plain move instruction if bitsize >= GET_MODE_BITSIZE of
1863         destination/source mode, respectively.
1864         * varasm.c (assemble_real): Write out the full size of the
1865         constant, not just its bitsize.
1866         (output_constant): Honor TYPE_MODE of TREE_REAL_CSTs.
1867
1868         * config/ia64/ia64-modes.def: Define XFmode as well as TFmode.
1869         Use ADJUST_BYTESIZE and ADJUST_ALIGNMENT to set size and
1870         alignment of XF and TF modes in compliance with ia64 ABIs.
1871         Can now hardwire the format of both modes.
1872         * config/ia64/ia64.c: Change TFmode to XFmode wherever appropriate.
1873         (general_tfmode_operand, destination_tfmode_operand)
1874         (tfreg_or_fp01_operand, spill_tfmode_operand): Rename to
1875         general_xfmode_operand, destination_xfmode_operand,
1876         xfreg_or_fp01_operand, spill_xfmode_operand respectively.
1877         (ia64_init_builtins): Make TYPE_PRECISION of fpreg_type
1878         and float80_type be 96 so they get XFmode.  Use !TARGET_HPUX,
1879         not INTEL_EXTENDED_IEEE_FORMAT, to decide how to define
1880         __float128.
1881         * config/ia64/ia64.h: Default TARGET_HPUX to 0.
1882         Change TFmode to XFmode wherever appropriate.  Remove all
1883         references to INTEL_EXTENDED_IEEE_FORMAT.
1884         (LONG_DOUBLE_TYPE_SIZE): Varies with TARGET_HPUX.
1885         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define (always 96).
1886         (PREDICATE_CODES): Update to match function renames.
1887         * config/ia64/ia64.md: Change TF to XF throughout; rename all
1888         patterns to match.  Remove all references to
1889         INTEL_EXTENDED_IEEE_FORMAT.  Update predicate calls to match
1890         function renames.
1891         * config/ia64/ia64-protos.c: Update all prototypes to match
1892         renamed functions.
1893         * config/ia64/hpux.h: Redefine TARGET_HPUX to 1.
1894         Remove all references to INTEL_EXTENDED_IEEE_FORMAT.
1895         * config/ia64/lib1funcs.asm: Add __divxf3 as new name for
1896         __divtf3; keep old name for backward compatibility.
1897         (L__compat): New section providing forwarding stubs for
1898         __fixtfti, __fixunstfti, __floattitf.
1899         * config/ia64/t-ia64: Add __compat to LIB1ASMFUNCS.
1900
1901 2003-10-24  Geoffrey Keating  <geoffk@apple.com>
1902
1903         PR 10757
1904         * c-pch.c: Include target.h.  Improve comments.
1905         (struct c_pch_validity): Add target_data_length.
1906         (pch_init): Add target's validity data.
1907         (c_common_valid_pch): Check target's validity data.
1908         * target-def.h (TARGET_GET_PCH_VALIDITY): New.
1909         (TARGET_PCH_VALID_P): New.
1910         (TARGET_INITIALIZER): Add new fields.
1911         * target.h: Include tm.h.
1912         (struct gcc_target): Add get_pch_validity, pch_valid_p.
1913         * toplev.h (default_get_pch_validity): New prototype.
1914         (default_pch_valid_p): New prototype.
1915         * toplev.c (default_get_pch_validity): New routine.
1916         (default_pch_valid_p): New routine.
1917         * Makefile.in (TARGET_H): Add TM_H.  Replace all users of
1918         target.h with $(TARGET_H).
1919         (c-pch.o): Add TARGET_H.
1920         * doc/tm.texi (PCH Target): New node.
1921         (TARGET_GET_PCH_VALIDITY): Document.
1922         (TARGET_PCH_VALID_P): Document.
1923
1924 2003-10-24  Kelley Cook  <kcook@gcc.gnu.org>
1925
1926         * Makefile.in: Define a vpath for %.texi.  Remove explicit $(docdir)
1927         and $(docdir)/include from any *.texi dependencies.
1928         ($(docobjdir)/%.dvi): Depend on stmp-docobjdir.
1929         ($(docobjdir)/%.1): Depend on .pod instead of .texi.
1930         ($(docobjdir)/%.7): Likewise.
1931         (%.pod): New implicit rule.
1932         (cpp.pod): New dependency only rule.
1933         (gcc.pod): New intermediate rule with dependencies and commands.
1934         (gfdl.pod): Likewise.
1935         (fsf-funding.pod): Likewise.
1936
1937 2003-10-24  Nathanael Nerode  <neroden@gcc.gnu.org>
1938
1939         * fixinc/mkfixinc.sh: Remove special cases for svr4 and ptx, and
1940         related code.
1941         * fixinc/fixinc.ptx: Remove.
1942         * fixinc/fixinc.svr4: Remove.
1943
1944 2003-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
1945
1946         * config/s390/s390.c (load_multiple_operation): Allow both SImode
1947         and DImode if word_mode is DImode.
1948         (store_multiple_operation): Likewise.
1949         * config/s390/s390.md ("load_multiple", "store_multiple"): Likewise.
1950         ("*load_multiple_di"): Allow only if word_mode == DImode.
1951         ("movqi"): Use LLGC whenever TARGET_ZARCH.
1952         ("fix_truncdfsi2"): Fix incorrect temporary size.
1953         ("fix_truncsfsi2"): Likewise.
1954         ("*bras_r", "*brasl_r", "*basr_r"): Remove predicate and constraint
1955         string for function return value operand.
1956         ("*bras_tls", "*brasl_tls", "*basr_tls"): Likewise.
1957
1958 2003-10-24  Joseph S. Myers  <jsm@polyomino.org.uk>
1959
1960         * c-parse.in (array_declarator): Use expr_no_commas.
1961         Fixes PR c/11943.
1962
1963 2003-10-24  Richard Sandiford  <rsandifo@redhat.com>
1964
1965         * config/mips/linux.h: Wrap MD_FALLBACK_FRAME_STATE_FOR and
1966         associated includes in #ifndef inhibit_libc.
1967
1968 2003-10-24  Roger Sayle  <roger@eyesopen.com>
1969
1970         * doc/libgcc.texi: Document some more of the libgcc API.
1971
1972 2003-10-24  Richard Earnshaw  <rearnsha@arm.com>
1973
1974         * arm.c (arm_rtx_costs_1, case TARGET_THUMB): Adjust costs for
1975         comparing a constant with small negative numbers and add costing
1976         for constants in conjunction with AND.
1977         (note_invalid_constants): Tidy previous change.
1978         (thumb_cmp_operand): Tidy.
1979         (thumb_cmpneg_operand): New function.
1980         * arm.h (CONDITIONAL_REGISTER_USAGE): Don't use HI regs if optimizing
1981         for size.
1982         (FIRST_LO_REGNUM, FIRST_HI_REGNUM, LAST_HI_REGNUM): Define.
1983         (PREDICATE_CODES): Add thumb_cmpneg_operand.
1984         * arm.md (cbranchsi4): Convert to define_expand.  Handle comparison
1985         with a negative constant.
1986         (cbranchsi4_insn): Matcher for cbranchsi4.
1987         (cbranchsi4_scratch): Similar, but a scratch is available for
1988         handling negative constants.
1989         (movsi_cbranchsi4): New pattern.
1990         (tstsi3_cbranch): Renamed from andsi3_cbranch_scratch, remove scratch
1991         and use the TST instruction.
1992         (andsi3_cbranch, orrsi3_cbranch, xorsi3_cbranch, cbranchne_decr1)
1993         (addsi3_cbranch, subsi3_cbranch): Ensure that register preferencing
1994         cannot see high regs or memory alternatives.
1995         (bicsi3_cbranch_scratch, bicsi3_cbranch): New patterns.
1996
1997 2003-10-24  Richard Earnshaw  <rearnsha@arm.com>
1998
1999         * arm.c (note_invalid_constants): Try to extract the constant
2000         pool value using avoid_constant_pool_reference; only use
2001         get_pool_constant if that returns the original reference.
2002
2003 2003-10-24  Jan Hubicka  <jh@suse.cz>
2004
2005         PR c++/12624
2006         * varasm.c (notice_global_symbol): Disqualify global registers.
2007
2008 2003-10-23  Roger Sayle  <roger@eyesopen.com>
2009
2010         PR middle-end/11414
2011         * loop.c (load_mems): Use redirect_jump to forward jumps from
2012         the original loop end label to the new "loop sink" block's label.
2013
2014 2003-10-23  Roger Sayle  <roger@eyesopen.com>
2015
2016         PR middle-end/12705
2017         * optabs.c (expand_binop): When expanding complex operations
2018         inline, always calculate result into a new temporary register.
2019         Minor code clean-ups.
2020
2021 2003-10-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2022
2023         * objc/lang-specs.h: Handle -print-objc-runtime-info.
2024         * doc/invoke.texi (Objective-C Dialect Options): Document it.
2025
2026 2003-10-24  Danny Smith  <dannysmith@users.sourceforge.net>
2027
2028         * config/i386/cygwin.asm. Add copyright notice. Add comment
2029         on why this code is needed.
2030
2031 2003-10-23  Kazu Hirata  <kazu@cs.umass.edu>
2032
2033         * config/h8300/clzhi2.c: Fix warnings.
2034         * config/h8300/ctzhi2.c: Likewise.
2035         * config/h8300/fixunssfsi.c: Likewise.
2036         * config/h8300/parityhi2.c: Likewise.
2037         * config/h8300/popcounthi2.c: Likewise.
2038
2039 2003-10-23  James E Wilson  <wilson@specifixinc.com>
2040
2041         * gcc.c (option_map): Delete --target and --use-version.
2042
2043 2003-10-23  Fariborz Jahanian  <fjahanian@apple.com>
2044             David Edelsohn  <edelsohn@gnu.org>
2045
2046         * config/rs6000/rs6000.h (UNITS_PER_WORD): Use TARGET_32BIT, not
2047         TARGET_POWREPC64.
2048         (UNITS_PER_GPR_WORD): Define.
2049         (HARD_REGNO_NREGS): Use UNITS_PER_GPR_WORD.
2050         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
2051         (HARD_REGNO_MODE_OK): Use UNITS_PER_GPR_WORD.
2052         (CLASS_MAX_NREGS): Use UNITS_PER_GPR_WORD.
2053         * config/rs6000/rs6000.c (function_arg): Generate PARALLEL for
2054         DFmode and DImode in 32-bit ABI / 64-bit computation mode.
2055         (rs6000_emit_prologue): Select reg_mode and reg_size using
2056         TARGET_32BIT, not TARGET_POWERPC64.
2057         (rs6000_function_value): Generate PARALLEL for DImode in 32-bit
2058         ABI / 64-bit computation mode
2059
2060 2003-10-22  Andrew Haley  <aph@redhat.com>
2061
2062         * toplev.c (output_file_directive): Allow for null input_name.
2063
2064 2003-10-22  Waldek Hebisch <hebisch@math.uni.wroc.pl>
2065
2066         * config/i386/i386.c (classify_argument): Handle SET_TYPE.
2067
2068 2003-10-22  Chris Demetriou  <cgd@broadcom.com>
2069
2070         * configure.in: In --enable-generated-files-in-srcdir option
2071         handling, fix default case handling.
2072         * configure: Regenerate.
2073
2074 2003-10-22  Phil Edwards  <phil@codesourcery.com>
2075
2076         * config.gcc:  Update *-*-vxworks* generic hook and comments.
2077         (arm-wrs-vxworks, i[4567]86-wrs-vxworks, mips-wrs-vxworks,
2078         mips-wrs-windiss, sh-wrs-vxworks):  New stanzas.
2079         * genmultilib:  Allow the MULTILIB_OSDIRNAMES to be mapped directly.
2080         * config/svr4.h (SWITCH_TAKES_ARG):  Undefine it before redefining it.
2081         * config/windiss.h:  New file.
2082         * config/arm/t-vxworks:  New file.
2083         * config/arm/vxworks.h:  New file.
2084         * config/i386/t-vxworks:  New file.
2085         * config/i386/vxworks.h:  New file.
2086         * config/mips/t-vxworks:  New file.
2087         * config/mips/vxworks.h:  New file.
2088         * config/mips/windiss.h:  New file.
2089         * config/sh/t-vxworks:  New file.
2090         * config/sh/vxworks.h:  New file.
2091
2092 2003-10-22  Kazu Hirata  <kazu@cs.umass.edu>
2093
2094         * config/h8300/h8300.c (h8300_output_function_epilogue): Remove.
2095         (h8300_saveall_function_p): New.
2096         (h8300_insert_attributes): Insert the saveall attribute if
2097         #pragma saveall is specified.
2098         (h8300_attribute_table): Add saveall.
2099         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
2100         * doc/extend.texi: Mention the saveall attribute.
2101
2102 2003-10-22  Joseph S. Myers  <jsm@polyomino.org.uk>
2103
2104         * c-typeck.c (pedantic_lvalue_warning): Unconditionally warn of
2105         deprecation of casts as lvalues.
2106         * fixinc/inclhack.def (obstack_lvalue_cast): New fix.
2107         * fixinc/fixincl.x: Regenerate.
2108         * fixinc/tests/base/obstack.h: New test.
2109
2110 2003-10-22  Andreas Schwab  <schwab@suse.de>
2111
2112         PR target/12676
2113         * config/m68k/m68k.c (output_addsi3): Fix range check to work on
2114         LP64 platforms.
2115
2116 2003-10-22  Jan Hubicka  <jh@suse.cz>
2117
2118         * dwarf2out.c (dwarf2out_abstract_function): Use DW_AT to check
2119         presence of DW_AT_inline.
2120         (gen_subprogram_die): Likewise; do not abort instead of emitting
2121         DW_AT_not_inline.
2122
2123 2003-10-22  Jan Hubicka  <jh@suse.cz>
2124
2125         * cgraph.c (cgraph_function_possibly_inlined_p): Be conservative when
2126         global info is not ready.
2127
2128 2003-10-22  Kazu Hirata  <kazu@cs.umass.edu>
2129
2130         * doc/extend.texi: Mention H8S wherever H8/300H is mentioned.
2131
2132 2003-10-22  Ulrich Weigand  <uweigand@de.ibm.com>
2133
2134         * config/s390/s390.md ("movstr_short_64", "movstr_short_31"): Merge ...
2135         ("*movstr_short"): ... into this insn pattern.
2136         ("movstr_short"): New expander.
2137         ("*movstr_long_64"): Rename from "movstr_long_64", simplify.
2138         ("*movstr_long_31"): Rename from "movstr_long_31", simplify.
2139         ("movstr_long"): New expander.
2140         ("clrstr_short_64", "clrstr_short_31"): Merge ...
2141         ("*clrstr_short"): ... into this insn pattern.
2142         ("clrstr_short"): New expander.
2143         ("*clrstr_long_64"): Rename from "clrstr_long_64", simplify.
2144         ("*clrstr_long_31"): Rename from "clrstr_long_31", simplify.
2145         ("clrstr_long"): New expander.
2146         ("cmpmem_short_64", "cmpmem_short_31"): Merge ...
2147         ("*cmpmem_short"): ... into this insn pattern.
2148         ("cmpmem_short"): New expander.
2149         ("*cmpmem_long_64"): Rename from "cmpmem_long_64".
2150         ("*cmpmem_long_31"): Rename from "cmpmem_long_31".
2151         ("cmpmem_long"): New expander.
2152         * config/s390/s390.c (s390_expand_movstr): Use new expanders.
2153         (s390_expand_clrstr): Likewise.
2154         (s390_expand_cmpmem): Likewise.
2155
2156 2003-10-22  Mark Mitchell  <mark@codesourcery.com>
2157
2158         * c-pch.c (struct c_pch_validity): Add pch_init field.
2159         (pch_init): Set it.
2160         (c_common_valid_pch): Check it.
2161
2162 2003-10-22  David Taylor <dtaylor@emc.com>
2163
2164         PR debug/12500
2165         * dbxout.c (dbxout_typedefs): Use COMPLETE_OR_VOID_TYPE_P.
2166
2167 2003-10-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2168
2169         * config/alpha/alpha.c (function_value [ENABLE_CHECKING]): Don't call
2170         alpha_return_in_memory if no VALTYPE specified.
2171
2172 2003-10-22  Jan Hubicka  <jh@suse.cz>
2173
2174         PR debug/12389
2175         * Makefile.in (dwarf2out.o): Depend on cgraph.h.
2176         * cgraph.c (cgraph_function_possibly_inlined_p): New function.
2177         * cgraph.h (cgraph_function_possibly_inlined_p): Declare.
2178         (cgraph_global_info): Add flag inlined
2179         * dwarf2out.c (gen_subprogram_die, gen_decl_die): Use
2180         cgraph_function_possibly_inded_p
2181         * cgraphunit.c (mark_inline): Set inlined flag.
2182         * toplev.c (rest_of_decl_compilation): Call outlining_inline_function
2183         only for possibly inlined functions.
2184         * c-decl.c (duplicate_decls): Never output abstract DIE representing old
2185         body of function.
2186
2187 2003-10-22  Andrew Haley  <aph@redhat.com>
2188
2189         * varasm.c (output_constructor): Make constructor annotation
2190         conditional on ASM_COMMENT_START.
2191
2192 2003-10-21  Jason Merrill  <jason@redhat.com>
2193
2194         * tree.c (get_unwidened): Check TREE_UNSIGNED on the field's type.
2195         (get_narrower): Likewise.
2196
2197         * stor-layout.c (layout_decl): Do packed field alignment for
2198         bit-fields, too.
2199
2200 2003-10-21  Eric Christopher  <echristo@redhat.com>
2201
2202         * expr.c (convert_move): Use FLOAT_EXTEND for extensions.
2203
2204 2003-10-21  Geoffrey Keating  <geoffk@apple.com>
2205
2206         * c-pch.c: Add comments in various places.
2207         (struct c_pch_validity): Add the lengths of various strings.
2208         (host_machine): New static.
2209         (target_machine): New static.
2210         (get_ident): Bump version number.
2211         (pch_init): Write out version, host, target validity data.
2212         (c_common_valid_pch): Check version, host, target.
2213         * Makefile.in (c-pch.o): Add version.h; define HOST_MACHINE and
2214         TARGET_MACHINE.
2215
2216 2003-10-21  Jason Merrill  <jason@redhat.com>
2217
2218         * tree.h (IS_EXPR_CODE_CLASS): Use strchr.
2219         (EXPR_P): New macro.
2220
2221 2003-10-21  Zack Weinberg  <zack@codesourcery.com>
2222
2223         * config/ia64/ia64.md (cmpxchg_acq_si): Mark operand 3 as DImode.
2224         * config/ia64/ia64.c (ia64_expand_fetch_and_op,
2225         ia64_expand_op_and_fetch): Make sure the REG for ar.ccv is
2226         DImode.   Use convert_move to load ar.ccv.
2227         (ia64_expand_compare_and_swap): Likewise.
2228         If expand_expr doesn't put 'old' and 'new' in the proper
2229         modes, run them through convert_to_mode.
2230
2231 2003-10-21  Eric Christopher  <echristo@redhat.com>
2232
2233         * config/frv/frv.c (frv_adjust_field_align): Check DECL_ARTIFICIAL
2234         for too large bitfields.
2235
2236 2003-10-21  Mark Mitchell  <mark@codesourcery.com>
2237
2238         * Makefile.in ($(docobjdir)/%.info): Honor BUILD_INFO.
2239
2240 2003-10-21  Andrew Haley  <aph@redhat.com>
2241
2242         * varasm.c (output_constructor): Annotate constructor.
2243
2244 2003-10-21  Mark Mitchell  <mark@codesourcery.com>
2245
2246         * Makefile.in ($(DESTDIR)$(infodir)/%.info): Conditionalize chmod
2247         on existence of destination file.
2248
2249 2003-10-21  Jan Hubicka  <jh@suse.cz>
2250
2251         * haifa-sched.c (choose_ready): Initialize index.
2252
2253 2003-10-21  Jason Merrill  <jason@redhat.com>
2254
2255         * tree.c (build1): Fix off-by-one error.
2256
2257 2003-10-21  Robert Millan  <robertmh@gnu.org>
2258
2259         * config/i386/kfreebsdgnu.h: New. i386-*-kfreebsd-gnu definitions.
2260         * config/kfreebsdgnu.h: New. *-*-kfreebsd-gnu definitions.
2261         * config/t-kfreebsd-gnu: New. *-*-kfreebsd-gnu tmake_file.
2262         * config.gcc: Add *-*-kfreebsd*-gnu and i[34567]86-*-kfreebsd*-gnu.
2263
2264 2003-10-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
2265
2266         * web.c: Fix various comments.
2267
2268 2003-10-20  Nicolas Pitre <nico@cam.org>
2269
2270         * config/arm/arm.c (arm_override_options): Set arm_constant_limit
2271         to 2 instead of 1 when optimize_size is true.  Gather code based on
2272         optimize_size together.  Add comment about XScale load latency.
2273
2274 2003-10-21  Gunther Nikl  <gni@gecko.de>
2275
2276         * config/m68k/m68k.c (m68k_output_function_prologue): Remove
2277         obsolete comments.
2278
2279 2003-10-20  Kelley Cook  <kcook@gcc.gnu.org>
2280
2281         * Makefile.in: Get parsedir and docobjdir from configure.
2282         * configure.in: Recogonize --enable-generated-files-in-srcdir.
2283         Pass along parsedir and docobjdir.
2284         * configure: Regenerate.
2285         * doc/install.texi: Document --enable-generated-files-in-srcdir.
2286
2287 2003-10-20  Kelley Cook  <kcook@gcc.gnu.org>
2288
2289         * Makefile.in: Define $(docdir) before the Make-lang.in fragments are
2290         included.
2291
2292 2003-10-20  Joseph S. Myers  <jsm@polyomino.org.uk>
2293
2294         * c-common.c (expand_tree_builtin): Ensure creal and cimag
2295         functions do not return lvalues.
2296
2297 2003-10-20  Jason Merrill  <jason@redhat.com>
2298
2299         PR c/12553
2300         * tree.c (build1) <ADDR_EXPR>: Set TREE_SIDE_EFFECTS
2301         appropriately.
2302
2303         PR c/11446
2304         * stor-layout.c (layout_decl): Fix alignment handling.
2305
2306 2003-10-20  Joseph S. Myers  <jsm@polyomino.org.uk>
2307
2308         * doc/extend.texi: Deprecate casts as lvalues.
2309
2310 2003-10-20  Jan Hubicka  <jh@suse.cz>
2311
2312         * toplev.c (rest_of_compilation): Fix webizer pass ordering.
2313
2314         * cgraphunit.c (decide_is_function_needed):  Fix test dealing
2315         with functions implicitly made inline.
2316
2317         * cgraphunit.c (cgraph_decide_inlining_incrementally):  New function.
2318         (cgraph_finalize_function): Use it.
2319         (cgraph_mark_inline): Allow incrmental decisions
2320         * invoke.texi (max-inline-slope, min-inline-insns): Kill.
2321         * params.def (PARAM_MAX_INLINE_SLOPE, PARAM_MIN_INLINE_INSNS): Kill.
2322         * tree-inline.c (limits_allow_inlining): Kill.
2323         (expand_call_inline): Always use unit-at-a-time path.
2324
2325 2003-10-20  Zack Weinberg  <zack@codesourcery.com>
2326
2327         * fixinc/inclhack.def (hpux11_snprintf): New edit.
2328         * fixinc/fixincl.x: Regenerate.
2329         * fixinc/tests/base/stdio.h: Add test for hpux11_snprintf.
2330
2331 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
2332
2333         * Makefile.in (install-info): Simplify.
2334         ($(DESTDIR)$(infodir)/%.info): New rule.
2335         * configure.in (target_list): Remove install-info.
2336         * doc/.cvsignore (gcc.info*): Remove.
2337         (gccint.info*): Likewise.
2338         (gccinstall.info*): Likewise.
2339         (cpp.info*): Likewise.
2340         (cppinternals.info*): Likewise.
2341         (*.info*): Add it.
2342         * doc/sourcebuild.texi: Update description of install-info.
2343         * objc/Make-lang.in (objc.install-info): Remove.
2344
2345 2003-10-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2346
2347         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Define _ABIO32.
2348         Use it in _MIPS_SIM definition.
2349         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Likewise.
2350
2351 2003-10-20  Zack Weinberg  <zack@codesourcery.com>
2352
2353         * config/i386/i386.c (print_reg): Abort if REGNO (x) is a
2354         virtual register, but only if file == asm_out_file.
2355         * config/i386/i386.h (HI_REGISTER_NAMES): Use "argp", not "",
2356         for ARG_POINTER_REGNUM.
2357
2358 2003-10-20  Zack Weinberg  <zack@codesourcery.com>
2359
2360         * c-common.c (registered_builtin_types): New static.
2361         (c_common_type_for_mode): Consult registered_builtin_types.
2362         (c_register_builtin_type): Add type to registered_builtin_types.
2363         * optabs.c (init_floating_libfuncs): Initialize libfuncs for
2364         all MODE_FLOAT modes, not just the ones corresponding to
2365         float_type_node, double_type_node, and long_double_type_node.
2366
2367 2003-10-20  Richard Henderson  <rth@redhat.com>
2368
2369         * config/alpha/alpha.h (PREDICATE_CODES): Add normal_memory_operand.
2370         * config/alpha/alpha-protos.h: Remove PREDICATE_CODES prototypes.
2371
2372 2003-10-20  Dorit Naishlos  <dorit@il.ibm.com>
2373
2374         * config/rs6000/rs6000.h: (rs6000_sched_insert_nops):
2375         support new flag -minsert-sched-nops.
2376         (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Define.
2377         * config/rs6000/rs6000.c: (rs6000_sched_insert_nops):
2378         support new flag -minsert-sched-nops.
2379         (is_cracked_insn, is_microcoded_insn): New functions.
2380         (rs6000_sched_finish): New function.
2381         (rs6000_issue_rate): Return 5 for power4.
2382         (get_next_active_insn, insn_terminates_group_p): New
2383         functions.
2384         (is_costly_group, force_new_group): New functions.
2385         (redefine_groups, pad_groups): New functions.
2386         (rs6000_variable_issue): Use new functions.
2387         * doc/invoke.texi (-minsert-sched-nops): Document new
2388         option.
2389
2390 2003-10-20  David S. Miller  <davem@redhat.com>
2391
2392         * config/sparc/sparc.md (type attribute): Add new insn types
2393         fpa, fpm_pack, fgm_mul, fgm_pdist, and fgm_cmp for VIS.
2394         (patterns emitting VIS insns): Use them.
2395         * config/sparc/ultra1_2.md: Add VIS scheduling rules.
2396         * config/sparc/ultra3.md: Likewise.
2397
2398 2003-10-20  Falk Hueffner  <falk@debian.org>
2399
2400         PR target/12654
2401         * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't do
2402         comparison against constant by adjusting the argument except for
2403         EQ and NE.
2404
2405 2003-10-19  Mark Mitchell  <mark@codesourcery.com>
2406
2407         * config.gcc: Add support for arm926ejs, arm1026ejs, arm1136js,
2408         arm1136jfs, and armv6j.
2409         * config/arm/arm.c (FL_ARCH6J): New macro.
2410         (FL_VFPV2): Likewise.
2411         (all_cores): Add entries for arm926ejs, arm1026ejs, arm1136js,
2412         and arm1136jfs.
2413         (all_architectures): Add entry for armv6j.
2414         (arm_override_options): Add entries for arm926ejs, arm1026ejs,
2415         arm1136js, and arm1136jfs.
2416         * config/arm/arm.h (TARGET_CPU_arm926ej_s): New macro.
2417         (TARGET_CPU_arm1026ej_s): Likewise.
2418         (TARGET_CPU_arm1136j_s): Likewise.
2419         (TARGET_CPU_arm1136jf_s): Likewise.
2420         * doc/invoke.texi: Document new ARM cores and architecture
2421         variants.
2422
2423 2003-10-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2424
2425         * Makefile.in (toplev.o): Add value-prof.h dependency.
2426         (value-prof.o): Add REGS_H dependency.
2427         * common.opt (fprofile-values, fvpt): New.
2428         * flags.h (flag_value_profile_transformations): Declare.
2429         * opts.c (common_handle_option): Handle -fprofile_values and
2430         -fvpt.
2431         * profile.c (branch_prob): Don't remove death notes here.
2432         * timevar.def (TV_VPT): New.
2433         * value-prof.c: Include regs.h.
2434         (insn_divmod_values_to_profile, gen_divmod_fixed_value, gen_mod_pow2,
2435         gen_mod_subtract, divmod_fixed_value_transform,mod_pow2_value_transform,
2436         mod_subtract_transform, value_profile_transformations): New.
2437         (insn_values_to_profile): Call insn_divmod_values_to_profile.
2438         (find_values_to_profile): Add dumps.
2439         * value-prof.h (value_profile_transformations): Declare.
2440         * toplev.c: Include value-prof.h.
2441         (rest_of_handle_value_profile_transformations): New.
2442         (enum dump_file_index): Add DFI_vpt.
2443         (dump_file): Add vpt dump.
2444         (flag_value_profile_transformations): New.
2445         (lang_independent_options): Add flag_profile_values and
2446         flag_value_profile_transformations.
2447         (rest_of_compilation): Call
2448         rest_of_handle_value_profile_transformations.
2449         (process_options): Let -fvpt imply -fprofile-values.
2450         * doc/invoke.texi (-fvpt): Document.
2451
2452 2003-10-19  Jan Hubicka  <jh@suse.cz>
2453
2454         * i386.c (print_reg): Do not abort on certain registers.
2455
2456         PR optimization/12612
2457         * reg-stack.c (subst_stack_regs_pat):  Use st(1) for clobbers.
2458         * i386.md (fpatan, fyl2x, fscale patterns and expanders): Use
2459         match_scratch; avoid bogus paralles.
2460
2461         PR target/12674
2462         * i386.c (ix86_function_regparm): Disable implicit register passing
2463         conventions when profiling.
2464
2465 2003-10-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
2466             Richard Henderson  <rth@redhat.com>
2467
2468         PR optimization/8178
2469         * config/i386/i386.md (*movsi_zero): Delete.
2470         (*ffs_no_cmove): Use ix86_expand_clear to zero the third operand.
2471
2472 2003-10-19  Richard Henderson  <rth@redhat.com>
2473
2474         * config/alpha/alpha.c (fix_operator): New.
2475         (divmod_operator): Tidy.
2476         (alpha_emit_xfloating_cvt): Handle UNSIGNED_FIX.
2477         * config/alpha/alpha.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
2478         (PREDICATE_CODES): Update.
2479         * config/alpha/alpha.md (fix_truncdfsi_ieee): Use match_operator.
2480         (fix_truncdfsi_internal, fix_truncdfdi_ieee): Likewise.
2481         (fix_truncsfsi_ieee, fix_truncsfsi_internal): Likewise.
2482         (fix_truncsfdi_ieee): Likewise.
2483         (fix_truncdfdi2, fix_truncsfdi2): Turn into define_expand.
2484         (fixuns_truncdfdi2, fixuns_truncsfdi2, fixuns_trunctfdi2): New.
2485         * config/alpha/alpha-protos.h: Update.
2486
2487 2003-10-19  Richard Sandiford  <rsandifo@redhat.com>
2488
2489         * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Simplify.
2490         * config/mips/mips.c (mips_load_got): Assume Pmode == ptr_mode.
2491         * config/mips/mips.md (extendsidi2, *extendsidi2): Merge. Don't accept
2492         constant operands.
2493
2494 2003-10-18  Kazu Hirata  <kazu@cs.umass.edu>
2495
2496         * doc/extend.texi: Fix typos.
2497         * doc/invoke.texi: Likewise.
2498
2499 2003-10-18  Nicolas Pitre <nico@cam.org>
2500
2501         * config/arm/arm.c (arm_override_options): Use arm_tune_xscale for
2502         XScale optimizations not arm_arch_xscale.
2503         * config/arm/arm.h (CONSTANT_ALIGNMENT_FACTOR, MOVE_RATIO): Likewise.
2504
2505 2003-10-18  Ulrich Weigand  <uweigand@de.ibm.com>
2506
2507         * config/s390/s390-protos.h (shift_count_operand): Add prototype.
2508         * config/s390/s390.c (shift_count_operand): New function.
2509         (s390_extra_constraint): Use it to implement 'Y' constraint.
2510         (print_shift_count_operand): New function.
2511         (print_operand): Use it to implement '%Y'.
2512         * config/s390/s390.h (EXTRA_ADDRESS_CONSTRAINT): Add 'Y' constraint.
2513         (PREDICATE_CODES): Add shift_count_operand.
2514         * config/s390/s390.md ("rotldi3"): Merge alternatives,
2515         using "shift_count_operand" predicate and "Y" constraint,
2516         and "%Y" to output the combined shift count.
2517         ("rotlsi3"): Likewise.
2518         ("ashldi3", "*ashldi3_31", "*ashldi3_64"): Likewise.
2519         ("ashrdi3", "*ashrdi3_31", "*ashrdi3_64", "*ashrdi3_cc_31",
2520         "*ashrdi3_cc_64", "*ashrdi3_cconly_31", "*ashrdi3_cconly_64"): Likewise.
2521         ("ashlsi3", "ashrsi3", "*ashrsi3_cc", "*ashrsi3_cconly"): Likewise.
2522         ("lshrdi3", "*lshrdi3_31", "*lshrdi3_64"): Likewise.
2523         ("lshrsi3"): Likewise.
2524
2525 2003-10-18  Gunther Nikl  <gni@gecko.de>
2526
2527         * config/m68k/m68k.c (m68k_output_function_epilogue): Add missing
2528         argument to asm_fprintf statement.
2529
2530 2003-10-18  Fariborz Jahanian  <fjahanian@apple.com>
2531
2532         * rs6000.md: Separate TARGET_POWERPC64 patterns for TARGET_64BIT or TARGET_32BIT.
2533         (ashrdisi3_noppc64) Generate more efficient code for 32-bit right-shift of
2534         a "long long" argument.
2535
2536 2003-10-18  Alexandre Oliva  <aoliva@redhat.com>
2537
2538         * final.c (final_scan_insn): Run FINAL_PRESCAN_INSNS on asm insns
2539         as well.
2540
2541 2003-10-18  Richard Sandiford  <rsandifo@redhat.com>
2542
2543         * rtl.h (rtl_size): Declare.
2544         (rtunion): Remove rtwint.
2545         (rtx_def): Replace 'fld' with a union of an rtunion or a HOST_WIDE_INT.
2546         (RTX_HDR_SIZE, RTX_SIZE): New macros.
2547         (RTL_CHECK1): Adjust for new rtx_def layout.
2548         (RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2): Likewise.
2549         (XWINT, XCWINT): Likewise.  Access the rtx structure directly.
2550         (X0WINT): Remove.
2551         (X0ANY): New macro.
2552         * rtl.def: Adjust comments for new rtx_def layout.
2553         * ggc.h (ggc_alloc_rtx): Take the rtx code as argument, not the
2554         number of slots.
2555         * rtl.c (rtx_size): New array.
2556         (rtx_alloc): Adjust call to ggc_alloc_rtx.  Use RTX_HDR_SIZE.
2557         (copy_rtx): Use RTX_HDR_SIZE.  Adjust for new rtx_def layout.
2558         (shallow_copy_rtx): Adjust call to ggc_alloc_rtx.  Use RTX_SIZE.
2559         * integrate.c (copy_rtx_and_substitute): Use X0ANY to copy '0' fields.
2560         * emit-rtl.c (copy_most_rtx): Likewise.
2561         (copy_rtx_if_shared): Use RTX_SIZE.
2562         (copy_insn_1): Use RTX_HDR_SIZE.  Adjust for new rtx_def layout.
2563         * gengenrtl.c (gendef): Adjust ggc_alloc_rtx call.  Use RTX_HDR_SIZE.
2564         * gengtype.c (write_rtx_next): Use RTX_HDR_SIZE.
2565         (adjust_field_rtx_def): Expect "rtx_def" to be a union rather than
2566         an array.  Adjust output for new rtx_def layout.
2567         * ggc-page.c (RTL_SIZE): Use RTX_HDR_SIZE.
2568         * reload1.c (eliminate_regs): Use RTX_SIZE.
2569         * rtlanal.c (loc_mentioned_in_p): Adjust for new rtx_def layout.
2570         * gdbinit.in (pi): Likewise.
2571
2572 2003-10-18  Jan Hubicka  <jh@suse.cz>
2573
2574         * integrate.c (copy_decl_for_inlining): Revert previous patch.
2575
2576 2003-10-18  Jan Hubicka  <jh@suse.cz>
2577
2578         * integrate.c (copy_decl_for_inlining): Fix copying of copies.
2579
2580 2003-10-18  Roger Sayle  <roger@eyesopen.com>
2581
2582         * libgcc.texi: Group multi-word types, such as "long double" and
2583         "unsigned int", using braces in @deftypefn and @deftypefnx nodes.
2584         Document __unord?f2 as returning a non-zero value, not just one.
2585
2586 2003-10-18  Hans-Peter Nilsson  <hp@bitrange.com>
2587
2588         * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Define.
2589         ($(T)crti.o, $(T)crtn.o): Pass CRTSTUFF_T_CFLAGS here too.
2590
2591 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
2592
2593         * config/i386/k6.md (k6_alux): Use the 'mode' attribute instead of
2594         match_operand.
2595
2596 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
2597
2598         * config/sparc/sparc.c (function_arg_record_value_1): New fourth
2599         parameter packed_p.  Search for a DECL_PACKED field only if
2600         packed_p is false.  Pass packed_p recursively.
2601         (function_arg_record_value_2): Likewise.
2602         (function_arg_record_value): Update calls to
2603         function_arg_record_value_1 and function_arg_record_value_2.
2604
2605 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
2606
2607         * cse.c (cse_insn) [src_folded]: Check that the tentative replacement
2608         was successfully forced to memory before using the result.
2609
2610 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
2611
2612         PR optimization/8178
2613         * config/i386/i386.md (*movsi_zero): New insn to set
2614         a register to zero on TARGET_USE_MOV0 targets.
2615
2616 2003-10-18  Kelley Cook  <kcook@gcc.gnu.org>
2617
2618         * Makefile.in (Makefile): Depend on the all Make-lang.in fragments.
2619         (POSTSTAGE1_FLAGS_TO_PASS): Pass down MAKEINFO and MAKEINFOFLAGS.
2620
2621 2003-10-17  David Edelsohn  <edelsohn@gnu.org>
2622
2623         * doc/invoke.texi (gcse-las): Fix typo.
2624
2625 2003-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
2626
2627         * doc/install.texi: Remove first part of the sentence for
2628         zsh not working.  Change gcc to GCC.
2629
2630         PR bootstrap/12546
2631         * doc/install.texi: Document that zsh does not work when
2632         configuring gcc.
2633
2634 2003-10-17  Nathanael Nerode  <neroden@gcc.gnu.org>
2635
2636         * config/ptx4.h: Switch to DWARF 2; update comments.
2637
2638 2003-10-17  Segher Boessenkool  <boessen@de.ibm.com>
2639             Hartmut Penner  <hpenner@de.ibm.com>
2640
2641         PR 10404, partial 11591, partial 11601
2642         * config/rs6000/altivec.md ("altivec_dst", "altivec_dstt",
2643         "altivec_dstst", "altivec_dststt", "altivec_lvsl", "altivec_lvsr",
2644         "altivec_lvebx", "altivec_lvehx", "altivec_lvewx", "altivec_lvxl",
2645         "altivec_lvx", "altivec_stvx", "altivec_stvxl", "altivec_stvebx",
2646         "altivec_stvehx", "altivec_stvewx"): Use a memory_operand.
2647         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): New function.
2648         (altivec_expand_stv_builtin): Adjust for the memory_operand.
2649         (altivec_expand_builtin): Call altivec_expand_lv_builtin.
2650         (altivec_init_builtins): Use `long int' for memory offsets.
2651
2652 2003-10-17  Jan Hubicka  <jh@suse.cz>
2653
2654         * opts.c  (common_handle_option): Handle OPT_fweb
2655         * invoke.texi (-fweb): Add missing parts of documentation.
2656
2657 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2658
2659         * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Undef
2660         before redefinition.
2661
2662 2003-10-17  Mostafa Hagog  <mustafa@il.ibm.com>
2663
2664         * common.opt: Add description of the new -fgcse-las flag.
2665         * flags.h (flag_gcse_las): Declaration of global flag_gcse_las.
2666         * gcse.c (hash_scan_set): Handle the case of store expression and
2667         insert the memory expression to the hash table, this way we make it
2668         possible to discover redundant loads after stores and remove them.
2669         (pre_insert_copy_insn): moved the call to update_ld_motion_stores,
2670         to pre_insert_copies, it is not the correct place to call it after
2671         adding stores to be in the available expression hash table.
2672         (pre_insert_copies): Added the call to update_ld_motion_stores when
2673         one or more copies were inserted.
2674         * opts.c (common_handle_option): Handle the -fgcse-las flag.
2675         * toplev.c (flag_gcse_las): Initialization of flag_gcse_las.
2676
2677         * doc/invoke.tex: Document new -fgcse-las flag.
2678
2679 2003-10-18  Alan Modra  <amodra@bigpond.net.au>
2680
2681         * config/rs6000/crtsavres.asm: Correct alignment of powerpc64 code
2682         for posterity, then remove it.
2683
2684 2003-10-17  Richard Earnshaw <rearnsha@arm.com>
2685             Nathan Sidwell  <nathan@codesourcery.com>
2686
2687         * config/arm/arm.c (use_return_insn): Not a single instruction, if
2688         there's a frame pointer.
2689         (arm_output_epilogue): Protect stack pointer from being corrupted
2690         on interrupt.
2691
2692 2003-10-17  Ulrich Weigand  <uweigand@de.ibm.com>
2693
2694         * ifcvt.c (noce_try_addcc): Handle ifs with 'else' case.
2695
2696 2003-10-17  Ulrich Weigand  <uweigand@de.ibm.com>
2697
2698         * combine.c (simplify_set): Do not clear out undobuf.other_insn
2699         already set elsewhere.
2700
2701 2003-10-17  Kelley Cook  <kcook@gcc.gnu.org>
2702
2703         * config/i386/i386.c (ix86_expand_prologue):  Use
2704         gen_allocate_stack_worker.
2705
2706 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2707
2708         * config.gcc (mips-sgi-irix6*o32): Only enable use_collect2
2709         without gas.
2710         (mips-sgi-irix6*): Likewise.
2711
2712         * config/mips/iris6gas.h: New file.
2713         * gcc/config.gcc (mips-sgi-irix6*): Use it.
2714
2715         * config/mips/mips.h (TARGET_IRIX): Provide default.
2716         (TARGET_IRIX5): Likewise.
2717         (TARGET_SGI_O32_AS): Likewise.
2718         * config/mips/iris5.h (TARGET_IRIX): Redefine as 1.
2719         (TARGET_IRIX5): Likewise.
2720         * config/mips/iris6.h (TARGET_IRIX6): Remove.
2721         (TARGET_IRIX5): Redefine as 0.
2722
2723         * config/mips/mips.c (mips_output_external): Test for IRIX 6 O32
2724         linker workaround with TARGET_IRIX and mips_abi instead of
2725         ASM_OUTPUT_UNDEF_FUNCTION.
2726         (mips_file_end): Inline old ASM_OUTPUT_UNDEF_FUNCTION definition,
2727         testing TARGET_IRIX and mips_abi explicitly.
2728         * config/mips/iris5.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove.
2729         * config/mips/iris6.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove undef.
2730
2731         * config/mips/mips.c (irix_output_external_libcall): Renamed from
2732         mips_output_external_libcall.
2733         Use new TARGET_IRIX in guard.
2734         * config/mips/mips-protos.h (irix_output_external_libcall): Match
2735         this.
2736         * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Likewise.
2737
2738         * config/mips/iris5gas.h (HAVE_GAS_SHF_MERGE): Update comment.
2739         Define as 0.
2740
2741         * config/mips/iris6.h (FUNCTION_NAME_ALREADY_DECLARED): Define
2742         depending on mips_abi.
2743         * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Define as 1.
2744         * config/mips/mips.c (mips_output_function_prologue): Test
2745         FUNCTION_NAME_ALREADY_DECLARED at runtime.
2746         (mips_output_function_epilogue): Likewise.
2747         (build_mips16_function_stub): Likewise.
2748         (build_mips16_call_stub): Likewise.
2749         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Provide
2750         default.
2751
2752         * config/mips/iris6.h (DWARF2_UNWIND_INFO): Don't define for native
2753         IRIX 6 O32 assembler.
2754         (SUBTARGET_CC1_SPEC): Enforce mips2 ISA with O32 ABI.
2755         (TARGET_OS_CPP_BUILTINS): Define _ABIO32, use it to define
2756         _MIPS_SIM for O32 ABI.
2757         (DWARF2_FRAME_INFO): Don't define for native IRIX 6 O32 assembler.
2758         (ASM_DECLARE_FUNCTION_NAME): Integrate mips.h version.
2759         (ASM_DECLARE_FUNCTION_SIZE): Move undef before redefinition.
2760         Integrate O32 version.
2761         (SUBTARGET_ASM_SPEC): Handle -mabi=32.
2762         (SUBTARGET_ASM_DEBUGGING_SPEC): Add mdebug_asm_spec for gas with
2763         O32 ABI.
2764         (BSS_SECTION_ASM_OP_32): Define.
2765         (BSS_SECTION_ASM_OP_64): Likewise.
2766         (BSS_SECTION_ASM_OP): Define differently for O32 and N32/N64 ABIs
2767         using them.
2768         (TARGET_ASM_NAMED_SECTION): Reflect renaming.
2769         Move up to allow override for O32 ABI without GNU as.
2770         (EH_FRAME_SECTION_NAME): Define explicitly.
2771         (MUST_USE_SJLJ_EXCEPTIONS): Define.
2772         [_MIPS_SIM == _ABIO32 && !GAS] (CTORS_SECTION_ASM_OP,
2773         DTORS_SECTION_ASM_OP): Dummy definitions.
2774         (TARGET_ASM_NAMED_SECTION): Undef statically.
2775         (EH_FRAME_SECTION_NAME): Likewise.
2776         (ASM_OUTPUT_FILENAME): Integrate mips.h version.
2777         (LINK_SPEC): Only use default options -call_shared -no_unresolved
2778         without -r.
2779         Don't pass -init, -fini with -mabi=32.
2780         (COLLECT_PARSE_FLAG): Define.
2781
2782         * config/mips/mips.c (iris6_asm_named_section_1): Changed guard to
2783         TARGET_IRIX.
2784         Renamed to use irix_ prefix.
2785         (iris6_asm_named_section): Likewise.
2786         (iris_section_align_entry_eq): Likewise.
2787         (iris_section_align_entry_hash): Likewise.
2788         (iris6_file_start): Likewise.
2789         (iris6_section_align_1): Likewise.
2790         (iris6_file_end): Likewise.
2791         (iris6_section_type_flags): Likewise.
2792         (iris_section_align_htab): Likewise.
2793         (iris_orig_asm_out_file): Likewise.
2794         [TARGET_IRIX] (TARGET_ASM_FILE_START): Reflect rename.
2795         (TARGET_ASM_FILE_END): Likewise.
2796         (TARGET_SECTION_TYPE_FLAGS): Likewise.
2797
2798         * config/mips/mips.c [TARGET_IRIX5 && !TARGET_IRIX6]
2799         (TARGET_ASM_UNALIGNED_HI_OP): Use runtime initialization in
2800         override_options instead.
2801         (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
2802         (TARGET_ASM_UNALIGNED_DI_OP): Likewise.
2803         * config/mips/mips.c (override_options) [USE_COLLECT2]: Restore
2804         flag_gnu_linker to defaults without USE_COLLECT2 for non-IRIX O32
2805         assemblers.
2806         Likewise for constructor/destructor handling.
2807         (override_options): Handle IRIX O32 assembler quirks.
2808         [TARGET_IRIX] (irix_asm_named_section): Handle O32 ABI with and
2809         without gas.
2810         (mips_file_start): Use new TARGET_IRIX.
2811         (mips_declare_object_name): No special processing for IRIX O32
2812         assembler.
2813         (mips_finish_declare_object): Likewise.
2814         (irix_asm_output_align): Renamed from iris6_asm_output_align.
2815         Don't record alignment for O32 ABI.
2816         (irix_file_start): Renamed from iris6_file_start.
2817         Return early for O32 ABI.
2818         (irix_file_end): Renamed from iris6_file_end.
2819         Don't emit .section directives for O32 ABI.
2820         * config/mips/iris6.h (ASM_OUTPUT_ALIGN): Reflect renaming.
2821         * config/mips/mips-protos.h (irix_asm_output_align): Likewise.
2822
2823         * config/mips/t-iris6 (MULTILIB_OPTIONS): Add mabi=32.
2824         (MULTILIB_OSDIRNAMES): Likewise.
2825
2826 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2827
2828         * collect2.c (COLLECT_PARSE_FLAG): Provide default.
2829         (main): Use it.
2830         * doc/tm.texi (COLLECT_PARSE_FLAG): Document it.
2831
2832 2003-10-17  Richard Earnshaw  <rearnsha@arm.com>
2833
2834         * arm-modes.def (CC_Nmode): New condition code mode.
2835         * arm.c (thumb_condition_code): Delete.
2836         (arm_select_cc_mode): Handle single-bit test for Thumb.
2837         (arm_print_operand, cases 'd' and 'D'): Don't special case the
2838         condition code logic for Thumb.
2839         (get_arm_condition_code): Handle CC_Nmode.
2840         (thumb_cbrch_target_operand): New function.
2841         * arm.h (PREDICATE_CODES): Add thumb_cbrch_target_operand.
2842         * arm-protos.h (thumb_cbrch_target_operand): Add prototype.
2843         * arm.md: Add Thumb split patterns for zero_extract and
2844         sign_extract.
2845         (tbit_cbranch, andsi3_cbranch_scratch, andsi3_cbranch)
2846         (orrsi3_cbranch_scratch, orrsi3_cbranch, xorsi3_cbranch_scratch)
2847         (xorsi3_cbranch, addsi3_cbranch, addsi3_cbranch_scratch)
2848         (subsi3_cbranch, subsi3_cbranch_scratch): New Thumb patterns.
2849         (cbranchne_decr1): Re-work to use CC_Nmode.
2850
2851         * arm.c (thumb_expand_epilogue): Add clobbers of registers restored
2852         by the return instruction.  Add a use of the link register if it
2853         wasn't stored.
2854
2855 2003-10-17  Richard Earnshaw  <rearnsha@arm.com>
2856
2857         * flow.c (init_propagate_block_info): Don't abort if a conditional
2858         jump is not a comparison of a register.  Instead, just don't record
2859         conditional life information.
2860
2861 2003-10-16  Jan Hubicka  <jh@suse.cz>
2862
2863         PR optimization/12630
2864         * pa.md (movstrsi, movstrsi_internal): Use match_scratch in clobbers
2865         for operands 7 and 8.
2866
2867 2003-10-16  Kelley Cook  <kcook@gcc.gnu.org>
2868
2869         * objc/Make-lang.in (objc-parse.o): Honor $(parsedir) for objc-parse.c.
2870
2871 2003-10-16  Danny Smith  <dannysmith@users.sourceforge.net>
2872
2873         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
2874
2875         * config/i386/winnt.c (gen_stdcall_suffix): Make static
2876         (gen_fastcall_suffix): Likewise.
2877         (i386_pe_dllexport_p): Likewise.
2878         (i386_pe_dllimport_p): Likewise.
2879         (i386_pe_mark_dllexport): Likewise.
2880         (i386_pe_mark_dllimport): Likewise.
2881         (i386_pe_asm_named_section): Fix formatting.
2882
2883 2003-10-16  Zack Weinberg  <zack@codesourcery.com>
2884
2885         * configure.in: Add snprintf to gcc_AC_CHECK_DECLS list.
2886         * system.h: Declare snprintf if necessary.
2887         * configure, config.in: Regenerate.
2888
2889 2003-10-15  David Edelsohn  <edelsohn@gnu.org>
2890
2891         * config/rs6000/rs6000.c (rs6000_va_arg): Only align vector
2892         arguments if TARGET_ALTIVEC_ABI.
2893
2894 2003-10-15  Roger Sayle  <roger@eyesopen.com>
2895
2896         * builtins.c (fold_builtin_memcpy, fold_builtin_mempcpy,
2897         fold_builtin_memmove, fold_builtin_strcpy, fold_builtin_strncpy,
2898         fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
2899         New functions.
2900         (expand_builtin_memcpy): Use integer_zerop instead of testing
2901         host_integerp and tree_low_cst directly.  Move misapplied hunk
2902         for optimization wher SRC and DEST point to the same location.
2903         (expand_builtin_mempcpy): From here.
2904         (expand_builtin_memmove): Use integer_zerop instead of testing
2905         host_integerp and tree_low_cst_directly.
2906         (expand_builtin_memset): Likewise.
2907         (expand_builtin_memcmp): Likewise (and for integer_onep).
2908         (expand_builtin_strncmp): Likewise.
2909         (fold_builtin): Call the appropriate fold_builtin_foo functions
2910         to optimize memcpy, mempcpy, memmove, strcpy, strncpy, memcmp,
2911         strcmp and strncmp.
2912
2913 2003-10-15  Geoffrey Keating  <geoffk@apple.com>
2914
2915         * config/darwin-protos.h (machopic_non_lazy_ptr_name): Delete
2916         prototype.  Clean up some whitespace.
2917         * config/darwin.c: Use gen_rtx_FOO (...) rather than
2918         gen_rtx (FOO, ...).
2919         (machopic_non_lazy_ptr_name): Make static.
2920         (name_needs_quotes): Allow '.' and '$' unquoted.
2921         (machopic_legitimize_pic_address): Improve codegen in dynamic-no-pic
2922         case.
2923
2924 2003-10-15  Gábor Lóki  <alga@rgai.hu>
2925
2926         * fold-const.c (tree_swap_operands_p): Disable some features
2927         when optimizing for size.
2928
2929 2003-10-15  David Daney  <ddaney@avtrex.com>
2930
2931         * config/mips/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New
2932         * config/mips/mips.h (DWARF_FRAME_REGNUM): Fixed to allow unwind
2933         from leaf functions.
2934         (DWARF_FRAME_RETURN_COLUMN): Ditto.
2935         (SIGNAL_UNWIND_RETURN_COLUMN): New, used
2936         by MD_FALLBACK_FRAME_STATE_FOR.
2937         * testsuite/gcc.dg/cleanup-9.c: Added mips*-*-linux* target.
2938
2939 2003-10-15  Zack Weinberg  <zack@codesourcery.com>
2940
2941         * genmodes.c: Include hashtab.h.
2942         (modes_by_name, hash_mode, eq_mode, struct mode_adjust)
2943         (adj_bytesize, adj_alignment, adj_format, new_adjust)
2944         (_ADD_ADJUST, ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FORMAT)
2945         (print_maybe_const_decl, emit_mode_adjustments): New.
2946         (known_modes): Rename to modes.
2947         (find_mode): Kill class argument; look up in hash table.
2948         (new_mode): Insert into hash table also.
2949         (new_adjust): New.
2950         (reset_float_format, make_partial_integer_mode)
2951         (make_vector_mode): Tweak error reporting.
2952         (reset_float_format): Correct type of fourth argument.
2953         (emit_insn_modes_h): Add #defines to help make mode_size,
2954         mode_base_align, and real_format_for_mode conditionally const.
2955         (emit_mode_size, emit_mode_base_align): Use print_maybe_const_decl.
2956         (emit_real_format_for_mode): Likewise, but temporarily disabled.
2957         (emit_insn_modes_c): Call emit_mode_adjustments.
2958         (main): Initialize modes_by_name.
2959         * Makefile.in: Update dependencies.
2960         * machmode.def: Document EXPR arguments and new ADJUST_* statements.
2961         * machmode.h: Use CONST_MODE_SIZE and CONST_MODE_BASE_ALIGN in
2962         declarations of mode_size and mode_base_align.  Declare
2963         init_adjust_machine_modes.
2964         * toplev.c (backend_init): Call init_adjust_machine_modes.
2965
2966 2003-10-15  Olivier Hainque  <hainque@act-europe.fr>
2967
2968         * genmodes.c (calc_wider_mode): Allocate enough room for all the
2969         entries we'll possibly assign in the sort buffer.
2970
2971 2003-10-15  Ulrich Weigand  <uweigand@de.ibm.com>
2972
2973         * config.gcc (s390x-ibm-tpf*): New target.
2974         * doc/install.texi: Document it.
2975         * config/s390/t-tpf: New file.
2976         * config/s390/tpf.h: New file.
2977
2978 2003-10-15  Hans-Peter Nilsson  <hp@axis.com>
2979
2980         PR target/12598
2981         * config/cris/cris.md (define_split "*mov_sidesi_biap_mem"+1)
2982         (define_splits "*mov_sidesi_mem"+1, "casesi"+9, +10, +11, +12):
2983         Use cris_mem_op and replace_equiv_address, not gen_rtx_MEM.
2984         ("call", "call_value", define_split "*mov_sidesi_mem"+19, +20)
2985         (define_split "*mov_sidesi_mem"+21, +22, +23, +24, +25, +26, +27)
2986         (define_split "*mov_sidesi_mem"+28, +29, +30): Use
2987         replace_equiv_address, not gen_rtx_MEM.
2988         * config/cris/cris.c (cris_mem_op): New match_operator function.
2989         (cris_notice_update_cc): Use replace_equiv_address, not
2990         gen_rtx_MEM.
2991         * config/cris/cris.h (PREDICATE_CODES): Add cris_mem_op.
2992
2993 2003-10-15  Bernardo Innocenti <bernie@develer.com>
2994
2995         * config/m68k/m68k.h (MASK_SEP_DATA, TARGET_SEP_DATA,
2996         MASK_ID_SHARED_LIBRARY, TARGET_ID_SHARED_LIBRARY): Move
2997         definitions after the other flags.
2998
2999 2003-10-14  Ziemowit Laski  <zlaski@apple.com>
3000
3001         * c-parse.in (methoddef, methodproto): Call objc_add_method()
3002         instead of add_method().
3003         * objc/objc-act.c (objc_check_decl): Do not check for
3004         constant_string_type.
3005         (add_method): Rename to objc_add_method().
3006         (really_start_method): Call objc_add_method() instead of
3007         add_method().
3008         * objc/objc-act.h (add_method): Rename to objc_add_method().
3009
3010 2003-10-14  Ulrich Weigand  <uweigand@de.ibm.com>
3011
3012         * config/s390/s390-protos.h (s390_alc_comparison): Add prototype.
3013         (s390_slb_comparison): Likewise.
3014         * config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
3015         New functions.
3016         * config/s390/s390.h (PREDICATE_CODES): Add s390_alc_comparison
3017         and s390_slb_comparison.
3018         * config/s390/s390.md ("*adddi3_31", "*subdi3_31"): Do not use on
3019         zSeries machines.
3020         ("*adddi3_31z", "*subdi3_31z"): New insns.
3021         ("*adddi3_alc_cc", "*adddi3_alc", "*subdi3_slb_cc", "*subdi3_slb",
3022         "*addsi3_alc_cc", "*addsi3_alc", "*subsi3_slb_cc", "*subsi3_slb"):
3023         New insns.
3024
3025 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
3026
3027         * configure.in: Clean up some feedback echoes.
3028         * configure: Regenerate.
3029
3030         * aclocal.m4: Properly quote names of macros being defined.
3031
3032         * config.gcc (am33_2.0-*-linux*): Use t-slibgcc-elf-ver.
3033
3034 2003-10-14  Steve Ellcey  <sje@cup.hp.com>
3035
3036         * config/ia64/ia64.c (ia64_expand_call): Force function address
3037         to DImode.
3038         * config/ia64/ia64.md (call_gp): Put DImode on operand 0.
3039
3040 2003-10-14  Ulrich Weigand  <uweigand@de.ibm.com>
3041
3042         * config/s390/s390.md ("muldf3", "*muldf3", "*muldf3_ibm",
3043         "mulsf3", "*mulsf3", "*mulsf3_ibm"): Do not clobber CC.
3044         ("divdf3", "*divdf3", "*divdf3_ibm", "divsf3", "*divsf3",
3045         "*divsf3_ibm"): Likewise.
3046
3047 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
3048
3049         * config.gcc, config/m68hc11/t-m68hc11-gas: Replace uses of
3050         target_alias with target_noncanonical.
3051
3052 2003-10-14  Geoffrey Keating  <geoffk@apple.com>
3053
3054         * expr.c (block_move_libcall_safe_for_call_parm): Clean up,
3055         and add case for machines where outgoing register parameters
3056         get stack space.
3057
3058         * config/darwin.c (machopic_indirect_data_reference): Use a scratch
3059         register when generating indirect address.
3060
3061 2003-10-14  Richard Earnshaw  <rearnsha@arm.com>
3062
3063         * arm.c (arm_addimm_operand): MODE arguemnt is unused.
3064         * arm.md (cbranchne_decr1): Fix bootstrap warning.
3065
3066 2003-10-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3067
3068         * fixinc/inclhack.def (alpha_pthread_gcc): New fix.
3069         * fixinc/fixincl.x: Regenerate.
3070         * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_GCC_CHECK]: New
3071         testcase.
3072         Fixes PR bootstrap/9330.
3073
3074 2003-10-13  Eric Christopher  <echristo@redhat.com>
3075
3076         * config/frv/frv.c (frv_adjust_field_align): Redo check for
3077         too wide bitfields.
3078         (frv_hard_regno_mode_ok): Add SPR_P and AP_FIRST.
3079         * config/frv/frv.h (FUNCTION_PROFILER): Remove abort call.
3080         (SBSS_SECTION_ASM_OP): Remove.
3081         (EXTRA_SECTIONS): Remove in_sbss.
3082         (EXTRA_SECTION_FUNCTIONS): Remove SBSS_SECTION_FUNCTION.
3083         (SBSS_SECTION_FUNCTION, sbss_section): Remove.
3084         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change sbss_section to
3085         named_section.
3086
3087 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
3088
3089         * Makefile.in, configure.in, config.host, mkheaders.in: Replace
3090         uses of ${target_alias} for directory names (and other places which
3091         won't like the empty string) with ${target_noncanonical}.  Introduce
3092         call early in configure.in to _GCC_TOPLEV_NONCANONICAL_TARGET so it's
3093         available.
3094         * configure: Regenerate.
3095
3096 2003-10-13  Ian Lance Taylor  <ian@wasabisystems.com>
3097
3098         * config/arm/iwmmxt.md (cond_iwmmxt_movsi_insn): New pattern.
3099         * config/arm/arm.md: For splits which rely on conditional moves,
3100         remove ! TARGET_IWMMXT condition.
3101
3102 2003-10-13  David S. Miller  <davem@redhat.com>
3103
3104         * ifcvt.c (num_removed_blocks): Rename to num_true_changes.
3105         (find_cond_trap): Always increment if we emit a conditional
3106         trap insn.
3107
3108 2003-10-13  Zack Weinberg  <zack@codesourcery.com>
3109
3110         * Makefile.in (BUILD_RTL): Replace $(BUILD_PREFIX)insn-modes.o
3111         with min-insn-modes.o.
3112         (STAGESTUFF): Add min-insn-modes.c.
3113         (genobjs): Add genmodes.o.
3114         (print-rtl.o, print-rtl1.o): Depend on $(TM_P_H).
3115         (insn-modes.o): Depend on $(TM_H) not $(GTM_H); also real.h.
3116         (min-insn-modes.c, min-insn-modes.o): New rules.
3117         (s-modes): Also generate min-insn-modes.c.
3118         ($(BUILD_PREFIX_1)insn-modes.o): Kill.
3119         * genmodes.c (struct mode_data): Add format field.
3120         (blank_mode, validate_mode, complete_mode): Update to match.
3121         (make_scalar_mode): Separate into make_int_mode and make_float_mode.
3122         (_SCALAR_MODE): Kill.
3123         (FLOAT_MODE, FRACTIONAL_FLOAT_MODE): Add format argument.
3124         (emit_insn_modes_c_header): Adjust.
3125         (emit_min_insn_modes_c_header, emit_real_format_for_mode)
3126         (emit_min_insn_modes_c): New functions.
3127         (emit_insn_modes_c): Call emit_real_format_for_mode.
3128         (main): Add -m option to generate min-insn-modes.c.
3129         * machmode.h: Update documentation.  Add format argument to
3130         all uses of FLOAT_MODE.
3131         * real.c: Don't define real_format_for_mode here.
3132
3133         * dwarfout.c: Move default definition of PRINT_REG...
3134         * defaults.h: ...here.
3135         * print-rtl.c: Include tm_p.h.
3136         (DEBUG_PRINT_REG, DEBUG_REGISTER_NAMES, debug_reg_names, reg_names):
3137         Kill.
3138         (print_rtx): Use PRINT_REG, not DEBUG_PRINT_REG.  But surround
3139         this entire block with #ifndef GENERATOR_FILE.
3140         * regclass.c: Unconditionally define reg_names.
3141         * config/mips/mips.h, config/rs6000/rs6000.h, config/sh/sh.h
3142         Don't define DEBUG_REGISTER_NAMES.
3143         * config/rs6000/darwin.h: Don't use DEBUG_REGISTER_NAMES in
3144         redefinition of REGISTER_NAMES.
3145         * config/i386/i386.h: Don't define DEBUG_PRINT_REG.
3146
3147         * combine.c: Change all preprocessor conditionals on
3148         EXTRA_CC_MODES to use SELECT_CC_MODE instead; rearrange a bit
3149         for clarity.
3150         * genopinit.c: Remove mention of EXTRA_CC_MODES in comment.
3151         * configure.in: Don't define EXTRA_CC_MODES.
3152         * configure, config.in: Regenerate.
3153         * doc/tm.texi: Remove documentation of EXTRA_CC_MODES.
3154
3155         * config/arc/arc.c, config/m32r/m32r.c, config/sparc/sparc.c:
3156         May assume that GET_MODE_CLASS is accurate for extra CC modes
3157         at all times.
3158
3159         * config/i860/i860.h (INIT_CUMULATIVE_ARGS): Pass correct
3160         number of arguments to aggregate_value_p.
3161
3162         * genmodes.c (RESET_FLOAT_FORMAT, reset_float_format): New.
3163         * machmode.def: Explain ARCH-modes.def.  Document
3164         RESET_FLOAT_FORMAT.  Improve commentary on various mode
3165         clusters.  Do not define OI, PQI, PHI, PSI, PDI, QF, HF, TQF,
3166         XF, or TF modes here.  Remove backward-compatibility
3167         definition of CC.
3168
3169         * config/alpha/alpha-modes.def: New file; define TF mode.
3170         * config/arc/arm-modes.def: Define XF mode.
3171         * config/c4x/c4x-modes.def: Define QF and HF modes.  Unset
3172         float format for SF and DF modes.
3173         * config/dsp16xx/dsp16xx-modes.def: New file; define HF mode.
3174         * config/i386/i386-modes.def: Define XF and TF modes.
3175         * config/i960/i960-modes.def: Define TF mode.
3176         * config/ia64/ia64-modes.def: Define TF and OI modes.
3177         * config/m68k/m68k-modes.def: New file; define XF mode.
3178         * config/mips/mips-modes.def: New file; define TF mode, reset
3179         formats for SF and DF modes.
3180         * config/pa/pa-modes.def: Define TF mode.
3181         * config/rs6000/rs6000.c: Define TF and PSI modes.
3182         * config/s390/s390-modes.def: Define OI mode.
3183         * config/sh/sh-modes.def: New file; define PSI mode.
3184         * config/sparc/sparc-modes.def: Define TF mode.
3185         * config/vax/vax-modes.def: New file; reset formats for SF and
3186         DF modes.
3187
3188         * config/c4x/c4x.c (c4x_override_options): No need to mess
3189         with real_format_for_mode or set REAL_MODE_FORMATs.
3190         (c4x_immed_int_constant): Don't apply GET_MODE_CLASS to rtx
3191         variable.
3192         * config/i386/i386.c (override_options): No need to set
3193         REAL_MODE_FORMATs here.
3194         * config/i960/i960.c (i960_initialize): Likewise.
3195         * config/m68k/m68k.c (m68k_override_options): Likewise.
3196         * config/ia64/ia64.c (ia64_override_options): Set REAL_MODE_FORMAT
3197         for TFmode only if not the default.
3198         * config/mips/mips.c (override_options): Likewise.
3199         * config/vax/vax.c (override_optionms): Set REAL_MODE_FORMAT for
3200         DFmode only if not the default.
3201
3202         * config/i370/i370.h (RET_REG): Don't consider TFmode.
3203         * config/m68hc11/m68hc11.c (print_operand): Don't consider XFmode.
3204         * config/dsp16xx/dsp16xx.c (hard_regno_mode_ok): #if 0 out use
3205         of modes that don't appear anywhere in the machine description.
3206
3207         * config/arc/arc-modes.def, config/arm/arm-modes.def
3208         * config/c4x/c4x-modes.def, config/frv/frv-modes.def
3209         * config/i386/i386-modes.def, config/i960/i960-modes.def
3210         * config/ia64/ia64-modes.def, config/mmix/mmix-modes.def
3211         * config/pa/pa-modes.def, config/pdp11/pdp11-modes.def
3212         * config/rs6000/rs6000-modes.def, config/s390/s390-modes.def
3213         * config/sparc/sparc-modes.def: Convert to new style for
3214         declaring extra CC modes.
3215
3216 2003-10-13  Zack Weinberg  <zack@codesourcery.com>
3217
3218         * cpplex.c (_cpp_clean_line): In the common case of a line
3219         with no trigraphs and no \-newline, avoid writing to memory.
3220         (_cpp_skip_block_comment): Use a local 'cur' pointer instead
3221         of the buffer member.  Make c an uchar to avoid unnecessary
3222         sign extensions.
3223
3224 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
3225
3226         * configure.in: Remove unnecessary test.
3227         * configure: Regenerate.
3228
3229         * configure.in: Fix grammatical error.  Move UWIN host error to...
3230         * config.host: Here.
3231         * configure: Regenerate.
3232
3233 2003-10-13  Andreas Krebbel  <krebbel1@de.ibm.com>
3234
3235         * config/s390/s390.md ("*fmadddf4", "*fmsubdf4", "*fmaddsf4",
3236         "*fmsubsf4"): Insns are now dependent on TARGET_FUSED_MADD instead
3237         of flag_unsafe_math_optimizations.
3238         * config/s390/s390.h ("MASK_NO_FUSED_MADD", "TARGET_NO_FUSED_MADD",
3239         "TARGET_FUSED_MADD", "TARGET_SWITCHES"): Introduced new target flags
3240         fused-madd and no-fused-madd.
3241         * doc/invoke.texi: Documented the new options fused-madd and
3242         no-fused-madd for S/390.
3243
3244 2003-10-14  Alan Modra  <amodra@bigpond.net.au>
3245
3246         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Choose
3247         MASK_ALIGN_NATURAL if rs6000_alignment_string not given.  Don't
3248         assign DEFAULT_ABI.
3249         (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Update comment.
3250         * config/rs6000/rs6000.c: Formatting.
3251         (rs6000_parse_alignment_option): Only set rs6000_alignment_flags
3252         when rs6000_alignment_string given.
3253
3254 2003-10-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
3255
3256         PR target/12538
3257         * config/sparc/sparc.c (MUST_SAVE_REGISTER): Delete.
3258         (sparc_flat_must_save_register_p): New function to decide whether
3259         a register must be saved/restored in the function prologue/epilogue.
3260         (sparc_flat_compute_frame_size): Use it instead of MUST_SAVE_REGISTER.
3261
3262 2003-10-12  Steven Bosscher  <steven@gcc.gnu.org>
3263
3264         * config/avr/avr.c, config/avr/avr-protos.h: Convert to
3265         ISO C90 function declarations and definitions.
3266         * config/sh/sh.c, config/sh/sh-protos.h: Likewise.
3267
3268 2003-10-12  Nathanael Nerode  <neroden@gcc.gnu.org>
3269
3270         * config.gcc (*-*-freebsd*): Use tm_defines instead of tiny
3271         config files which do the same thing.
3272         * config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
3273         config/freebsd6.h: Remove now unnecessary files.
3274
3275 2003-10-12  Steven Bosscher  <steven@gcc.gnu.org>
3276
3277         * c-common.c (c_common_truthvalue_conversion): Warn if the
3278         address of a non-weak function is used as a truth value.
3279
3280 2003-10-12  Kazu Hirata  <kazu@cs.umass.edu>
3281
3282         * config/h8300/h8300.c (WORD_REG_USED): Use SP_REG instead of
3283         a literal.
3284         * config/h8300/h8300.h (REGNO_OK_FOR_BASE_P): Use MAC_REG
3285         instead of a literal.
3286
3287 2003-10-12  Hans-Peter Nilsson  <hp@bitrange.com>
3288
3289         * doc/extend.texi (Function Attributes): Mention the exceptional
3290         path for noreturn-marked functions.
3291
3292 2003-10-12  Jan Hubicka  <jh@suse.cz>
3293
3294         * cgraphunit.c (cgraph_decide_inlining): Fix uninitialized variable
3295         warning.
3296
3297 2003-10-12  Danny Smith  <dannysmith@users.sourceforge.net>
3298
3299         * config/i386/i386.c (x86_this_parameter): Fix typo.
3300
3301 2003-10-11  Jan Hubicka  <jh@suse.cz>
3302
3303         * Makefile.in (web.o): New.
3304         * web.c: New file.
3305         * rtl.h (web_main): Declare.
3306         * timervar.def (TV_WEB): New.
3307         * toplev.c (dump_file_index, dump_file_info): Add DFI_web.
3308         (rest_of_hanle_web): New.
3309         (flag_web): New static variable.
3310         (lang_independent_options): Add "web".
3311         (rest_of_compilation): Call rest_of_handle_web.
3312         * invoke.texi (-fweb): Document.
3313         * common.opt (fweb): New.
3314         * flags.h (flag_web): New.
3315         * opts.c (decode_options): Set flag_web at -O3.
3316
3317         * passes.texi (web construction):  Document.
3318         * invoke.texi (-O3): Document that -fweb is enabled.
3319
3320         * regrename.c (regrename_optimize): Deal better with situation when
3321         replacement failed.
3322
3323         * sched-ebb.c: Include params.h and profile.h
3324         (schedule_ebbs):  Use tracer parameters to discover superblocks
3325         * Makefile.in (sched-ebb.o):  Add dependencies.
3326
3327 2003-10-11  Roger Sayle  <roger@eyesopen.com>
3328
3329         * fold-const.c (negate_mathfn_p): New function to determine whether
3330         a built-in mathematical function is sign preserving, f(-x) == -f(x).
3331         Add support for BUILT_IN_ASIN, BUILT_IN_ASINF and BUILT_IN_ASINL.
3332         (tree_swap_operands_p): Change API to take an additional argument
3333         indicating that the swapped operands evaluate in reverse order.
3334         Canonicalize VAR_DECLs and PARM_DECLs last if we can, i.e. neither
3335         operand side-effects or we don't care about flag_evaluation_order.
3336         (reorder_operands_p): New function to check whether its safe to
3337         evaluate the given operands in reverse order.
3338         (negate_expr_p):  We can always negate integer constants unless
3339         we honor -ftrapv and the signed type would overflow.  Only allow
3340         -(A-B) into B-A if reorder_operands_p says that its OK.  Allow
3341         negation of COMPLEX_CST if both real and imaginary parts can be
3342         negated.  Allow negation through floating point extensions and
3343         sign-preserving built-in functions.
3344         (negate_expr):  Move the code to negate integers from "fold" to
3345         here.  Always negate integer constants unless we honor -ftrapv
3346         and the signed type would overflow.  Always negate real constants
3347         unless we honor -ftrapping-math.  Only convert -(A-B) into B-A
3348         if allowed by reorder_operands_p.  Add support for COMPLEX_CST.
3349         Optimize negation through floating point extensions and
3350         sign-preserving built-in functions (as defined by negate_mathfn_p).
3351         (fold): Adjust calls to tree_swap_operands_p.
3352         (fold <NEGATE_EXPR>): Move the remaining negation optimizations
3353         to negate_expr_p/negate_expr.
3354         (fold <MINUS_EXPR>): Use reorder_operands_p to check whether we're
3355         allowed to convert (-A) - B into (-B) - A.
3356
3357 2003-10-11  Roger Sayle  <roger@eyesopen.com>
3358
3359         * builtins.c (expand_builtin_strcmp): Defend against the possibility
3360         that gen_cmpstrsi may fail: Stabilize the argument list against
3361         re-evaluation and expand the library call directly using this saved
3362         argument list if a cmpstrsi sequence can't be generated.
3363         (expand_builtin_strncmp): Likewise.
3364
3365         * config/i386/i386.md (cmpstrsi, movstrsi): Disable with -Os.
3366
3367 2003-10-11  Roger Sayle  <roger@eyesopen.com>
3368
3369         PR optimization/12260
3370         * simplify-rtx.c (simplify_unary_operation): Simplify all unary
3371         operations through CONST nodes.  Optimize (neg (plus X C)) as
3372         (minus -C X) for constant values C.
3373         (simplify_binary_operation): Optimize (minus (neg X) C) as
3374         (minus -C X) for constant values C.
3375         (simplify_plus_minus): Avoid creating (neg (const (plus X C)),
3376         instead create (minus -C X).
3377
3378 2003-10-11  Roger Sayle  <roger@eyesopen.com>
3379
3380         * expr.c (expand_expr <PLUS_EXPR>): Let expand_operands call
3381         safe_from_p for us, once it chooses an evaluation order.
3382         (expand_expr <MULT_EXPR>): Likewise.
3383         (expand_expr <MIN_EXPR> <MAX_EXPR>): Likewise.  If expand_operands
3384         places the second operand in "target", swap the operands.
3385         (do_store_flag): Let expand_operands call safe_from_p for us.
3386
3387 2003-10-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
3388
3389         PR optimization/12544
3390         * function.c (put_var_into_stack): Don't generate ADDRESSOFs
3391         for DECL_NONLOCAL decls.
3392
3393 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
3394
3395         * expr.c: Follow spelling conventions.
3396         * final.c: Likewise.
3397         * optabs.c: Likewise.
3398         * sched-deps.c: Likewise.
3399         * sdbout.c: Likewise.
3400
3401 Sat Oct 11 12:24:23 CEST 2003  Jan Hubicka  <jh@suse.cz>
3402
3403         * varasm.c (notice_global_symbol):  Fix handling of variables; avoid
3404         re-computing of variable.
3405
3406 2003-10-11  Richard Henderson  <rth@redhat.com>
3407
3408         * config/alpha/alpha.c (alpha_return_in_memory): Rename from
3409         return_in_memory, make static, change signature to match target hook.
3410         (alpha_setup_incoming_varargs): Make static, change signature to
3411         match target hook, add code for vms and unicos.
3412         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
3413         TARGET_PROMOTE_PROTOTYPES, TARGET_STRUCT_VALUE_RTX,
3414         TARGET_RETURN_IN_MEMORY, TARGET_SETUP_INCOMING_VARARGS,
3415         TARGET_STRICT_ARGUMENT_NAMING,
3416         TARGET_PRETEND_OUTGOING_VARARGS_NAMED): New.
3417         * config/alpha/alpha-protos.h: Update.
3418         * config/alpha/alpha.h (PROMOTE_FUNCTION_ARGS,
3419         PROMOTE_FUNCTION_RETURN, RETURN_IN_MEMORY,
3420         SETUP_INCOMING_VARARGS): Remove.
3421         * config/alpha/unicosmk.h (SETUP_INCOMING_VARARGS): Remove.
3422         * config/alpha/vms.h (SETUP_INCOMING_VARARGS): Remove.
3423
3424 2003-10-11  Ian Lance Taylor  <ian@wasabisystems.com>
3425
3426         * config/arm/arm.c (arm_regno_class): Handle IWMMXT_GR_REGS.
3427
3428 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
3429
3430         * config/m68k/lb1sf68.asm: Follow spelling conventions.
3431         * config/m68k/m68k.c: Likewise.
3432         * config/m68k/m68k.h: Likewise.
3433         * config/m68k/m68k.md: Likewise.
3434
3435 2003-10-11  Roger Sayle  <roger@eyesopen.com>
3436
3437         * builtins.c (expand_builtin_memcpy): Optimize case when the two
3438         pointer arguments are the equal, non-volatile and side-effect free.
3439         (expand_builtin_mempcpy): Likewise.
3440         (expand_builtin_memmove): Likewise.
3441         (expand_builtin_strcpy): Likewise.
3442         (expand_builtin_memcmp): Likewise.
3443         (expand_builtin_strcmp): Likewise.
3444         (expand_builtin_strncmp): Likewise.
3445
3446 2003-10-11  Roger Sayle  <roger@eyesopen.com>
3447
3448         * combine.c (apply_distributive_law): Enable "distributive" floating
3449         point optimizations with -funsafe-math-optimizations.
3450
3451 2003-10-11  Andrew Pinski <pinskia@physics.uc.edu>
3452
3453         * genmodes.c (emit_mode_mask) Change MASK to MODE_MASK.
3454
3455 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
3456
3457         * config/m68k/m68k-protos.h: Remove the prototype for
3458         finalize_pic.
3459
3460 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
3461
3462         * config/m68k/m68k.c: Fix comment typos.
3463
3464 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
3465
3466         * config/m68k/m68k-protos.h (use_return_insn): Change return type from
3467         int to bool.
3468         * config/m68k/m68k.c (struct m68k_frame): Add funcdef_no member.
3469         (current_frame): New global var.
3470         (m68k_compute_frame_layout): Cache computations in current_frame.
3471         (m68k_initial_elimination_offset): Use values from current_frame
3472         instead of recomputing them.
3473         (use_return_insn): Likewise.
3474         (m68k_output_function_prologue): Likewise.
3475         (m68k_output_function_epilogue): Likewise.
3476         * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Fold __PIC__ handling
3477         inside the block for __pic__.
3478
3479 2003-10-11  Peter Barada <peter@baradas.org>
3480             Bernardo Innocenti  <bernie@develer.com>
3481
3482         * config/m68k/m68k.c (m68k_frame): Move before protos referencing it.
3483         (m68k_save_reg): Add boolean parameter `interrupt_handler'.
3484         (m68k_interrupt_function_p): New function.
3485         (m68k_handle_fndecl_attribute): Ditto.
3486         (m68k_compute_frame_layout): Ditto.
3487         (m68k_attribute_table): Define back-end specific attributes.
3488         (m68k_output_function_epilogue): Emit RTE instruction for interrupt
3489         functions.
3490
3491 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
3492
3493         * config/m68k/t-uclinux: New target Makefile fragment.
3494         * config/m68k/uclinux.h: New target macro file.
3495         * config.gcc (m68k-*-uclinux): New target definition.
3496
3497 2003-10-10  Roger Sayle  <roger@eyesopen.com>
3498
3499         * builtins.c (builtin_mathfn_code): Generalize to check whether
3500         the call is to any built-in function by comparing the call's
3501         argument list against the builtin decl's function type.
3502
3503 2003-10-10  Roger Sayle  <roger@eyesopen.com>
3504
3505         * cse.c (constant_pool_entries_regcost): New global variable to
3506         hold the register cost component of constant_pool_entries_cost.
3507         (fold_rtx): Calculate constant_pool_entries_regcost at the same
3508         time as constant_pool_entries_cost.
3509         (cse_insn): Set both src_folded_cost and src_folded_regcost from
3510         constant_pool_entries_cost and constant_pool_entries_regcost.
3511         (cse_main): Initialize constant_pool_entries_regcost to zero.
3512
3513         * optabs.c (expand_unop): Attach a REG_EQUAL note describing
3514         the semantics of the sequence of bit operations used to negate
3515         a floating-point value.
3516         (expand_abs_nojump): Likewise attach a REG_EQUAL note describing
3517         the semantics of the bit operations used to abs a floating point
3518         value.
3519
3520 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
3521             Paul Dale  <pauli@snapgear.com>
3522
3523         * config/m68k/lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__
3524         support.
3525         * config/m68k/m68k-none.h (ASM_SPEC): Pass --pcrel to assembler on
3526         -fpic, -fPIC, -msep-data and -mid-shared-library.
3527         * config/m68k/m68k.c (m68k_library_id_string): New global variable.
3528         (override_options): Add -msep-data and -mshared-library-id support.
3529         (m68k_output_function_prologue): Generate code to load A5 for
3530         TARGET_ID_SHARED_LIBRARY and TARGET_SEP_DATA.
3531         (m68k_output_mi_thunk): Emit indirect jump on TARGET_ID_SHARED_LIBRARY.
3532         (m68k_output_pic_call): New function.
3533         * gcc/config/m68k/m68k.h (TARGET_SEP_DATA): New target flag.
3534         (TARGET_ID_SHARED_LIBRARY): Ditto.
3535         (TARGET_SWITCHES): Add switches for -mid-shared-library and -msep-data.
3536         * gcc/config/m68k/m68k.md (call): Call m68k_output_pic_call().
3537         (call_value): Likewise.
3538
3539 2003-10-10  Zack Weinberg  <zack@codesourcery.com>
3540
3541         * gengenrtl.c (find_formats, genheader): Make i an unsigned
3542         int, remove cast of NUM_RTX_CODE.
3543         * machmode.h: Make the HAVE_MACHINE_MODES #ifdef encompass the
3544         entire file.  Remove the #ifs on GET_MODE_MASK etc and
3545         GET_MODE_WIDER_MODE etc.
3546
3547 2003-10-10  Eric Christopher  <echristo@redhat.com>
3548
3549         * lcm.c (optimize_mode_switching): Change NORMAL_MODE
3550         to MODE_ENTRY and MODE_EXIT. Add MODE_AFTER for insns
3551         that set mode.
3552         * config/sh/sh.h (MODE_ENTRY): New macro.
3553         (MODE_EXIT): Ditto.
3554         (MODE_AFTER): Ditto.
3555         * config/sh/sh.md: Change for MODE_AFTER. Add
3556         fp_set attribute.
3557         * doc/tm.texi: Document MODE_AFTER, MODE_ENTRY, and MODE_EXIT.
3558
3559 2003-10-10  Zack Weinberg  <zack@codesourcery.com>
3560
3561         * genmodes.c, mode-classes.def: New files.
3562         * machmode.def: Rewritten to genmodes.c interface.
3563         * Makefile.in (extra_modes_file): New substitution variable.
3564         (MACHMODE_H): No longer includes machmode.def or
3565         @extra_modes_file@; instead, mode-classes.def and insn-modes.h.
3566         (BUILD_RTL): Add $(BUILD_PREFIX)insn-modes.o.
3567         (OBJS-common): Add insn-modes.o.
3568         (STAGESTUFF): Add insn-modes.c, insn-modes.h, s-modes, and
3569         genmodes$(build_exeext).
3570         (insn-modes.o, insn-modes.c, insn-modes.h, s-modes, genmodes.o,
3571         genmodes$(build_exeext), $(BUILD_PREFIX_1)insn-modes.o): New targets.
3572         (s-genrtl): Don't depend on $(RTL_BASE_H).
3573         (gengenrtl.o): Don't depend on coretypes.h, $(GTM_H), real.h,
3574         or $(RTL_BASE_H); just rtl.def.
3575         * gengenrtl.c: Don't include coretypes.h, tm.h, rtl.h, or
3576         real.h.  Give fake definition of CONST_DOUBLE_FORMAT and
3577         substitute definition of NUM_RTX_CODE.  Add casts to avoid
3578         warnings.
3579         * machmode.h: Include insn-modes.h, not machmode.def.  Include
3580         mode-classes.def to define enum mode_class.  Tweak definitions
3581         of GET_MODE_CLASS, GET_MODE_SIZE, GET_MODE_BITSIZE, GET_MODE_MASK,
3582         GET_MODE_INNER, GET_MODE_WIDER_MODE, GET_CLASS_NARROWEST_MODE.
3583         (inner_mode_array): Renamed mode_inner.
3584         (mode_base_align): New.
3585         * rtl.c (mode_name, mode_class, mode_bitsize, mode_size,
3586         mode_unit_size, mode_wider_mode, mode_mask_array,
3587         inner_mode_array, class_narrowest_mode): Delete definitions.
3588         * stor-layout.c (get_mode_alignment): Use mode_base_align.
3589         * real.h: Use MIN_MODE_FLOAT and MAX_MODE_FLOAT, not QFmode
3590         and TFmode, in real_format_for_mode and REAL_MODE_FORMAT.
3591
3592         * config/ip2k/ip2k.h, config/iq2000/iq2000.h:
3593         No need to define BITS_PER_UNIT.
3594
3595 2003-10-10  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3596
3597         * config/ia64/ia64.c (ia64_vms_init_libfuncs): New function.
3598         (ia64_output_function_prologue): Only write .prologue if --with-gnu-as.
3599         (ia64_initialize_trampoline): If not using GAS, declare trampoline
3600         as global.
3601         * config/ia64/ia64.h (ASM_APP_ON, ASM_APP_OFF): Add vers for not GAS.
3602         (ASM_OUTPUT_DEBUG_LABEL): Likewise.
3603
3604         * stor-layout.c (compute_record_mode): Don't force BLKmode if
3605         field is zero-length BLKmode.
3606         * expr.c (expand_expr, case COMPONENT_REF): Handle case of BLKmode
3607         zero-size references.
3608
3609         * combine.c (distribute_links): Properly test for REG being set.
3610
3611         * config/alpha/alpha.c (alpha_expand_block_mode): Don't use
3612         gen_lowpart and company except for REG.
3613
3614 2003-10-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3615
3616         * pa64-hpux.h (LINK_SPEC): Use `-z' option with HP ld.
3617
3618 2003-10-10  Nathanael Nerode  <neroden@gcc.gnu.org>
3619
3620         * config.gcc (mips*-*-netbsd*): Remove content-free line.
3621
3622 2003-10-10  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
3623
3624         * gcov-io.h: Check BITS_PER_UNIT when defining gcov_unsigned_t,
3625         gcov_position_t and gcov_type.
3626
3627 2003-10-09  Kaz Kojima  <kkojima@gcc.gnu.org>
3628
3629         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
3630         * configure: Regenerate.
3631
3632 2003-10-09  Kazu Hirata  <kazu@cs.umass.edu>
3633
3634         * config/h8300/h8300.md (define_asm_attributes): Specify
3635         the length of an asm insn more precisely.
3636
3637 2003-10-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3638
3639         * config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define.
3640
3641 2003-10-09  Bob Wilson  <bob.wilson@acm.org>
3642
3643         * config/xtensa/xtensa.c (xtensa_dbx_register_number): Change first
3644         FP register number to 48 and MAC16 accumulator to 0x210.
3645
3646 2003-10-09  Nathanael Nerode  <neroden@gcc.gnu.org>
3647
3648         * config.gcc: Remove redundant thread_file setting clauses for
3649         various *-*-linux* targets.
3650
3651 2003-10-09  Kazu Hirata  <kazu@cs.umass.edu>
3652
3653         * config/h8300/h8300.md (define_asm_attributes): New.
3654
3655 2003-10-09  Roger Sayle  <roger@eyesopen.com>
3656
3657         * optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note
3658         to the comparison, as emit_libcall_block calls copy_rtx on equiv.
3659
3660 2003-10-09  Dorit Naishlos  <dorit@il.ibm.com>
3661
3662         * haifa-sched.c (ok_for_early_schedule): New function.
3663         (early_queue_to_ready): New function.
3664         (schedule_block): Allow early removal of insns from Q.
3665         (schedule_insn): Update INSN_TICK in case of premature
3666         issue.
3667         * common.opt (sched_stalled_insns): New flag.
3668         (sched_stalled_insns_dep): New flag.
3669         * flags.h: Same above flags.
3670         * opts.c: Same as above.
3671         * toplev.c: Same as above.
3672         * target.h (targetm.sched.is_costly_dependence): New
3673         hook.
3674         * target-def.h: Same as above.
3675         * config/rs6000/rs6000.h: (rs6000_sched_costly_dep):
3676         Support new flag -msched-costly-dep.
3677         (DEFAULT_SCHED_COSTLY_DEP): Define.
3678         * config/rs6000/rs6000.c:
3679         (rs6000_is_costly_dependence): New function.
3680         (is_load_insn, is_store_insn): New functions.
3681         (is_load_insn1, is_store_insn1, is_mem_ref): New
3682         functions.
3683         * doc/invoke.texi (-fsched-stalled-insns-dep)
3684         (-fsched-stalled-insns, -msched-costly-dep): Document
3685         options.
3686         * doc/tm.texi (is_costly_dependence): Define new
3687         scheduler target hook.
3688
3689 2003-10-09  Jason Merrill  <jason@redhat.com>
3690
3691         PR c++/6392
3692         * c-common.c (c_build_qualified_type): Look through arrays first.
3693         (c_apply_type_quals_to_decl): Look through arrays.
3694
3695         * c-common.c (c_apply_type_quals_to_decl): Unset TREE_READONLY for
3696         types with constructors.
3697
3698         * coverage.c (build_ctr_info_value): Use build_decl to make a
3699         VAR_DECL.
3700         (create_coverage): Likewise.
3701
3702         * stmt.c (resolve_asm_operand_names): Call check_unique_operand_names
3703         here.
3704         (expand_asm_operands): Not here.
3705         (parse_input_constraint): No longer static.
3706         * tree.h: Declare it.
3707
3708 2003-10-08  Kaz Kojima  <kkojima@gcc.gnu.org>
3709
3710         * config/sh/t-linux (SHLIB_LINK): Override to use a linker script
3711         libgcc_s.so.
3712         (SHLIB_INSTALL): Likewise.
3713
3714 2003-10-08  Nathanael Nerode  <neroden@gcc.gnu.org>
3715
3716         * doc/install.texi: Remove reference to removed 'pthreads' thread
3717         option.
3718
3719 2003-10-08  Aldy Hernandez  <aldyh@redhat.com>
3720
3721         * config/rs6000/rs6000.md ("abssi2_isel"): Add early clobber to
3722         operand 2.
3723
3724 2003-10-08  Nathanael Nerode  <neroden@gcc.gnu.org>
3725
3726         * config.gcc: Don't accept --enable-threads=pthreads.  Clean
3727         up related case statements.
3728         * configure.in: Don't accept --enable-threads=pthreads,
3729         decosf1, mach, or os2 (none of which work anyway).  Alphabetize
3730         supported thread files in case clause.
3731         * configure: Regenerate.
3732
3733 2003-10-08  Geoffrey Keating  <geoffk@apple.com>
3734
3735         * function.c (pad_to_arg_alignment): Move 'boundary_in_bytes'
3736         definition to above SPARC_STACK_BOUNDARY_HACK.
3737
3738 2003-10-08  Jason Merrill  <jason@redhat.com>
3739
3740         * c-pretty-print.c (pp_c_postfix_expression)
3741         <COMPOUND_LITERAL_EXPR>: Fix thinko.
3742
3743 2003-10-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3744
3745         * mklibgcc.in: Don't hide undefined or typeless symbols.
3746
3747 2003-10-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3748
3749         PR optimization/12142
3750         * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
3751         uses of the register in the SET_SRC.  Remove unnecessary argument.
3752         * pa.c (legitimize_pic_address): Before reload, use a scratch register
3753         for the intermediate result in loading the address of a SYMBOL_REF.
3754         Set the MEM_NOTRAP_P flag for the MEM.  Add a REG_EQUAL to the insn
3755         which loads the SYMBOL_REF address.
3756
3757 2003-10-08  Timo Kokkonen  <tjko@iki.fi>
3758             Eric Botcazou  <ebotcazou@libertysurf.fr>
3759
3760         PR bootstrap/12490
3761         * scan-decls.c (MAX_EXTERN_C_BRACES): New preprocessor constant
3762         to define the size of the extern_C_braces array.  Set it to 200.
3763         (scan_decls): Abort when extern_C_braces_length is out-of-bounds.
3764
3765 2003-10-08  Carlo Wood  <carlo@alinoe.com>
3766
3767         * Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand
3768         a space after the -o option.  flex 2.5.31 understands both, with
3769         and without the space. Removed that space.
3770
3771 2003-10-08  Richard Sandiford  <rsandifo@redhat.com>
3772
3773         * config/mips/mips.c (mips_frame_info): Add cprestore_size field.
3774         (compute_frame_size): Initialize it.  Remove the .cprestore slot
3775         from args_size.
3776         (mips_output_function_prologue): Simplify accordingly.
3777         (mips_debugger_offset): Change the mips16 frame pointer offset from
3778         current_function_outgoing_args to cfun->machine->frame.args_size.
3779         (mips_initial_elimination_offset): Likewise.
3780         (mips_expand_prologue): Likewise.
3781         (mips_expand_epilogue): Likewise.
3782
3783 2003-10-08  Richard Sandiford  <rsandifo@redhat.com>
3784
3785         * config/mips/mips.h (EXTRA_CONSTRAINT): Add 'W' constraint.
3786         (EXTRA_MEMORY_CONSTRAINT): Define.
3787         (CAN_ELIMINATE): Remove lwu workaround.
3788         * config/mips/mips.md (*zero_extendsidi2_mem): Enable for mips16 too.
3789         Use a 'W' constraint for the source operand.
3790
3791 2003-10-08  Kazu Hirata  <kazu@cs.umass.edu>
3792
3793         * genopinit.c (main): Output code to declare undefined
3794         variables.
3795
3796 2003-10-07  Kelley Cook  <kcook@gcc.gnu.org>
3797
3798         * gengtype-lex.l: Remove -Wtraditional cruft.
3799         * Makefile.in (gengtype-lex.c): Likewise.
3800
3801 2003-10-07  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3802
3803         * cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.
3804
3805 2003-10-07  Jason Merrill  <jason@redhat.com>
3806
3807         PR c++/12519
3808         * c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if
3809         it isn't a decl.
3810
3811 2003-10-07  Alexandre Oliva  <aoliva@redhat.com>
3812
3813         * gcc.c (cpp_options): Only pass -fworking-directory for -g* if
3814         not overridden.
3815         Fixes PR bootstrap/12173.
3816
3817 2003-10-07  Zack Weinberg  <zack@codesourcery.com>
3818
3819         * errors.c: Don't include coretypes.h or tm.h.
3820         (trim_filename): Use IS_DIR_SEPARATOR.
3821         * Makefile.in: Update dependencies of errors.o and
3822         $(BUILD_PREFIX_1)errors.o.
3823
3824 2003-10-07  Geoffrey Keating  <geoffk@apple.com>
3825
3826         * function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into
3827         account when aligning arguments.
3828         * calls.c (STACK_POINTER_OFFSET): Move default from here ...
3829         * defaults.h (STACK_POINTER_OFFSET): ... to here.
3830         * config/sparc/sparc.h (STACK_BOUNDARY): Add comment about how
3831         it's wrong when TARGET_ARCH64 && TARGET_STACK_BIAS.
3832         (SPARC_STACK_BOUNDARY_HACK): Define.
3833         * config/rs6000/rs6000.c (function_arg): On non-SVR4 systems,
3834         arrange for vector parameters to varargs functions to be passed
3835         in both memory and GPRs when appropriate.
3836         (rs6000_va_arg): Vector arguments passed in memory are 16-byte
3837         aligned.
3838
3839         * hooks.c (hook_bool_tree_true): New.
3840         (hook_rtx_tree_int_null): New.
3841         (hook_rtx_rtx_null): Use NULL, not 0.
3842         * hooks.h: Add 'extern' to everything.
3843         (hook_bool_tree_true): New.
3844         (hook_rtx_tree_int_null): New.
3845         * targhooks.c (hook_bool_CUMULATIVE_ARGS_true): New.
3846         * targhooks.h (hook_bool_CUMULATIVE_ARGS_true): New.
3847         * config/rs6000/rs6000-protos.h (setup_incoming_varargs): Remove
3848         prototype.
3849         * config/rs6000/rs6000.c (rs6000_return_in_memory): New.
3850         (setup_incoming_varargs): Prototype.
3851         (TARGET_PROMOTE_FUNCTION_ARGS): Define.
3852         (TARGET_PROMOTE_FUNCTION_RETURN): Define.
3853         (TARGET_STRUCT_VALUE_RTX): Define.
3854         (TARGET_RETURN_IN_MEMORY): Define.
3855         (TARGET_SETUP_INCOMING_VARARGS): Define.
3856         (TARGET_STRICT_ARGUMENT_NAMING): Define.
3857         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Define.
3858         (init_cumulative_args): Use rs6000_return_in_memory.
3859         (setup_incoming_varargs): Make 'static'.
3860         * config/rs6000/rs6000.h (PROMOTE_FUNCTION_ARGS): Delete.
3861         (PROMOTE_FUNCTION_RETURN): Delete.
3862         (STRUCT_VALUE): Delete.
3863         (RETURN_IN_MEMORY): Delete.
3864         (SETUP_INCOMING_VARARGS): Delete.
3865
3866 2003-10-07  Gerald Pfeifer  <gerald@pfeifer.com>
3867
3868         * doc/invoke.texi (Warning Options): Simplify and clarify the
3869         descriptions of -Wnonnull and -Winit-self.
3870
3871 2003-10-07  Richard Earnshaw  <rearnsha@arm.com>
3872
3873         * optabs.c (init_intraclass_conv_libfuncs): Fix order of array
3874         indicees for floating-point conversersion libcalls.
3875
3876 2003-10-07  Nathanael Nerode  <neroden@gcc.gnu.org>
3877
3878         * Makefile.in: Add more comments separating large conceptually
3879         separate sections.
3880
3881         * configure.in: Clean up thread file logic.
3882         * configure: Regenerate.
3883
3884 2003-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
3885
3886         * config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
3887         (switch_to_section): Handle in_readonly_data.
3888         * config/i386/winnt.c (i386_pe_asm_named_section): Handle
3889         readonly data.
3890
3891 2003-10-07  Richard Earnshaw  <rearnsha@arm.com>
3892
3893         * arm.md (cmpsi2_addneg): New ARM pattern. Add peephole2 to generate
3894         it.
3895         (cbranchne_decr1): New Thumb pattern.
3896         * arm.c (arm_addimm_operand): New insn predicate.
3897         * arm-protos.h: Add a prototype for it.
3898         * arm.h (PREDICATE_CODES): Add it.
3899
3900 2003-10-07  Dorit Naishlos <dorit@il.ibm.com>
3901
3902         * sched-int.h (sched_info): New field
3903         sched_max_insns_priority.
3904         * sched-rgn.c (init_ready_list): Add invocations to
3905         targetm.sched.adjust_priority.
3906         (sched_max_insns_priority): Init new field.
3907         * sched-ebb.c (sched_max_insns_priority): Init new field.
3908         * haifa-sched.c (set_priorities): Set
3909         sched_info->sched_max_insns_priority.
3910         * config/rs6000/rs6000.h:
3911         (rs6000_sched_restricted_insns_priority_str): Support new
3912         flag -mprioritize-restricted-insns.
3913         (DEFAULT_RESTRICTED_INSNS_PRIORITY): Define.
3914         * config/rs6000/rs6000.c (is_dispatch_slot_restricted): New
3915         function.
3916         (rs6000_adjust_priority): Change priority of restricted
3917         insns, using above new function and new flag.
3918         * doc/invoke.texi (-mprioritize-restricted-insns): Document
3919         new option.
3920
3921 2003-10-07  Zack Weinberg  <zack@codesourcery.com>
3922
3923         * expr.c (cmpstr_optab, cmpmem_optab): New.
3924         * genopinit.c: Initialize them.
3925         * optabs.h: Declare them.
3926         * optabs.c (init_optabs): Clear them.
3927         (prepare_cmp_insn):  Use cmpstr_optab and cmpmem_optab to find
3928         block memory compare insns, not conditional chains.  Restructure
3929         the fallback generation of a call to memcmp/bcmp for better
3930         readability.
3931
3932 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
3933
3934         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.
3935         (mips_save_restore_fn): New typedef.
3936         (mips_add_large_offset_to_sp, mips_emit_frame_related_store): Remove.
3937         (mips_set_frame_expr, mips_frame_set): Move above prologue code.
3938         (save_restore_insns): Remove, replacing with...
3939         (mips_save_restore_reg, mips_for_each_saved_reg): ...these new fns.
3940         (mips_save_reg, mips_restore_reg): New function.
3941         (mips_expand_prologue, mips_expand_epilogue): Rework.
3942         * config/mips/mips.h (MIPS_TEMP1_REGNUM, MIPS_TEMP2_REGNUM): Remove.
3943         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): New macros.
3944         (MIPS_PROLOGUE_TEMP, MIPS_EPILOGUE_TEMP): New macros.
3945
3946 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
3947
3948         * config/mips/mips.c (mips_expand_prologue): Remove unused
3949         traversal of function arguments.
3950
3951 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
3952
3953         * doc/invoke.texi: Remove documentation of -mentry.
3954         * config/mips/mips.c (mips_entry_string, mips_entry): Remove.
3955         (override_options, mips_save_reg_p): Remove handling.
3956         (compute_frame_size, mips_output_function_prologue): Likewise.
3957         (mips_expand_prologue, mips_expand_epilogue): Likewise.
3958         * config/mips/mips.h (mips_entry_string): Remove declaration.
3959         (TARGET_OPTIONS): Remove -mentry.
3960         * config/mips/mips16.S: Remove mention of -mentry.
3961
3962 2003-10-06  Zack Weinberg  <zack@codesourcery.com>
3963
3964         * libfuncs.h (LTI_extendsfdf2, LTI_extendsfxf2, LTI_extendsftf2)
3965         (LTI_extenddfxf2, LTI_extenddftf2, LTI_truncdfsf2, LTI_truncxfsf2)
3966         (LTI_trunctfsf2, LTI_truncxfdf2, LTI_trunctfdf2, LTI_floatsisf)
3967         (LTI_floatdisf, LTI_floattisf, LTI_floatsidf, LTI_floatdidf)
3968         (LTI_floattidf, LTI_floatsixf, LTI_floatdixf, LTI_floattixf)
3969         (LTI_floatsitf, LTI_floatditf, LTI_floattitf, LTI_fixsfsi, LTI_fixsfdi)
3970         (LTI_fixsfti, LTI_fixdfsi, LTI_fixdfdi, LTI_fixdfti, LTI_fixxfsi)
3971         (LTI_fixxfdi, LTI_fixxfti, LTI_fixtfsi, LTI_fixtfdi, LTI_fixtfti)
3972         (LTI_fixunssfsi, LTI_fixunssfdi, LTI_fixunssfti, LTI_fixunsdfsi)
3973         (LTI_fixunsdfdi, LTI_fixunsdfti, LTI_fixunsxfsi, LTI_fixunsxfdi)
3974         (LTI_fixunsxfti, LTI_fixunstfsi, LTI_fixunstfdi, LTI_fixunstfti)
3975         (extendsfdf2_libfunc, extendsfxf2_libfunc, extendsftf2_libfunc)
3976         (extenddfxf2_libfunc, extenddftf2_libfunc, truncdfsf2_libfunc)
3977         (truncxfsf2_libfunc, trunctfsf2_libfunc, truncxfdf2_libfunc)
3978         (trunctfdf2_libfunc, floatsisf_libfunc, floatdisf_libfunc)
3979         (floattisf_libfunc, floatsidf_libfunc, floatdidf_libfunc)
3980         (floattidf_libfunc, floatsixf_libfunc, floatdixf_libfunc)
3981         (floattixf_libfunc, floatsitf_libfunc, floatditf_libfunc)
3982         (floattitf_libfunc, fixsfsi_libfunc, fixsfdi_libfunc, fixsfti_libfunc)
3983         (fixdfsi_libfunc, fixdfdi_libfunc, fixdfti_libfunc, fixxfsi_libfunc)
3984         (fixxfdi_libfunc, fixxfti_libfunc, fixtfsi_libfunc, fixtfdi_libfunc)
3985         (fixtfti_libfunc, fixunssfsi_libfunc, fixunssfdi_libfunc)
3986         (fixunssfti_libfunc, fixunsdfsi_libfunc, fixunsdfdi_libfunc)
3987         (fixunsdfti_libfunc, fixunsxfsi_libfunc, fixunsxfdi_libfunc)
3988         (fixunsxfti_libfunc, fixunstfsi_libfunc, fixunstfdi_libfunc)
3989         (fixunstfti_libfunc): Delete.
3990         * optabs.h (struct optab_handlers): Break out of struct optab.
3991         (struct convert_optab, convert_optab, enum convert_optab_index,
3992         convert_optab_table, sext_optab, zext_optab, trunc_optab,
3993         sfix_optab, ufix_optab, sfixtrunc_optab, ufixtrunc_optab,
3994         sfloat_optab, ufloat_optab): New.
3995         (set_conv_libfunc): Prototype.
3996         (GEN_FCN): Use C90 indirect call syntax, remove unnecessary cast.
3997         (trunc_optab): Renamed btrunc_optab.
3998         * builtins.c (expand_builtin_mathfn): Update to match.
3999         * optabs.c (extendtab, fixtab, fixtrunctab, floattab): Delete.
4000         (convert_optab_table, new_convert_optab, init_convert_optab)
4001         (init_interclass_conv_libfuncs, init_intraclass_conv_libfuncs)
4002         (set_conv_libfunc): New.
4003         (can_extend_p, gen_extend_insn, can_fix_p, can_float_p)
4004         (expand_float, expand_fix): Use new conversion optabs,
4005         not old insn code tables or long chains of ifs.
4006         (init_optabs): No need to clear old insn code tables.
4007         Initialize the new optabs, not the old libfunc array entries.
4008         Don't handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
4009         * genopinit.c: Initialize conversion optabs, not the
4010         former insn code tables.  Remove unnecessary casts.
4011         Handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
4012         * expr.c (convert_move): Remove redundant check that
4013         to_real==from_real.  Use the conversion optabs instead
4014         of long chains of tests of modes.  Move partial-integer-mode
4015         interconversion above all integer conversion.  Do not recurse
4016         on a value forced into a register in the original mode.
4017
4018         * config/gofast.h, config/frv/frv.c, config/ia64/ia64.c
4019         * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
4020         * config/sparc/sparc.c: Use set_conv_libfunc to adjust entries
4021         in new conversion optabs; do not reference the old libfunc
4022         array entries.  No need to include libfuncs.h.
4023
4024 2003-10-06  Roger Sayle  <roger@eyesopen.com>
4025
4026         * config/i386/i386.c (ix86_expand_setcc): Annotate the floating
4027         point comparison sequence with a REG_EQUAL note that describes
4028         the comparison's semantics.
4029
4030 2003-10-06  Roger Sayle  <roger@eyesopen.com>
4031
4032         * expr.c (expand_expr <COND_EXPR>): Handle the void type semantics
4033         of COND_EXPR when expanding the "A op 0 ? FOO : A" optimizations.
4034
4035 2003-10-06  Roger Sayle  <roger@eyesopen.com>
4036             Zack Weinberg  <zack@codesourcery.com>
4037
4038         * optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL
4039         instruction by using LCT_CONST and then calling emit_libcall_block
4040         ourselves.
4041
4042 2003-10-06  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
4043
4044         PR optimization/11974
4045         * optabs.c (expand_unop): Promote libcall outmode according to
4046         hard_libcall_value.
4047
4048 2003-10-06  Zack Weinberg  <zack@codesourcery.com>
4049
4050         * real.h (REAL_MODE_FORMAT): New macro.
4051         * c-cppbuiltin.c, optabs.c, real.c, config/alpha/alpha.c
4052         * config/c4x/c4x.c, config/i370/i370.c, config/i386/freebsd.h
4053         * config/i386/i386.c, config/i960/i960.c, config/ia64/ia64.c
4054         * config/m68k/m68k.c, config/mips/mips.c, config/rs6000/rs6000.c
4055         * config/vax/vax.c: Use REAL_MODE_FORMAT instead of referring
4056         directly to real_format_for_mode array, wherever possible.
4057
4058 2003-10-06  Devang Patel  <dpatel@apple.com>
4059
4060         * dwarf2out.c (is_main_source): Remove variable.
4061         (dwarf2out_start_source_file): Do not check is_main_source.
4062         Do not reset is_main_source.
4063         (dwarf2out_init): Do not initialize is_main_source.
4064
4065 2003-10-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4066
4067         * fixinc/inclhack.def (stdio_va_list): Removed _ap fix.
4068         (irix_stdio_va_list): Don't require leading printf, IRIX 6.5.21
4069         introduced some multi-line prototypes.
4070         * fixinc/fixincl.x: Regenerate.
4071
4072 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
4073
4074         * config/mips/mips.h (PREDICATE_CODES): Add stack_operand.
4075         * config/mips/mips.c (stack_operand): New predicate.
4076         * config/mips/mips.md: Use it for the destination of mips16 insns
4077         that store $31.
4078
4079 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
4080
4081         * config/mips/mips.md (*lowsi): Renamed from lowsi.
4082         (*lowdi): Likewise lowdi.
4083         (*lowsi_mips16, *lowdi_mips16): New patterns.
4084         * config/mips/mips.c (mips_const_insns, mips_output_move): Remove
4085         mips16 CONSTANT_RELOC handling.
4086         (mips_delegitimize_address): Adjust for new sdata representation.
4087
4088 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
4089
4090         * config/mips/mips.c (mips_arg_info): If MUST_PASS_IN_STACK,
4091         skip any remaining register arguments.
4092
4093 2003-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
4094
4095         * reload.c (find_reloads_subreg_address): Use correct offset for
4096         paradoxical MEM subregs on big-endian targets.
4097
4098 2003-10-06  Andrew Haley  <aph@redhat.com>
4099
4100         * tree.c (get_callee_fndecl): Call
4101         lang_hooks.lang_get_callee_fndecl.
4102         * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): New.
4103         (lhd_get_callee_fndecl): New.
4104
4105 2003-10-06  Andrew Pinski  <apinski@apple.com>
4106
4107         * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
4108         error in calculating the length of the string.
4109         (machopic_stub_name): Likewise.
4110
4111 2003-10-06  Roger Sayle  <roger@eyesopen.com>
4112
4113         * optabs.c (prepare_float_lib_cmp):  Attach a REG_EQUAL note
4114         describing the return value of the comparison libcall to the
4115         REG_RETVAL instruction of the emitted sequence.
4116
4117 2003-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
4118
4119         PR optimization/12215
4120         * cse.c (cse_set_around_loop): Emit the move at the beginning
4121         of the next basic block for trapping sets.
4122
4123 2003-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
4124
4125         PR optimization/11637
4126         * combine.c (adjust_for_new_dest): New function to adjust the
4127         notes and LOG_LINKS when the dest of an insn has changed.
4128         (try_combine): Use it when deleting the first insn of a two-insn
4129         parallel or splitting a two-load parallel.
4130
4131 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
4132
4133         * config/mips/mips.c (mips_classify_constant): Only allow UNSPECs
4134         if TARGET_EXPLICIT_RELOCS.
4135
4136 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
4137
4138         PR bootstrap/12512
4139         * Makefile.in (info): Use double-colon rules.
4140         (dvi): Likewise.
4141         (generated-manpages): Likewise.
4142         * configure.in: Do not create lang.info, lang.dvi, or
4143         lang.generated-manpages hooks.
4144         * configure: Regenerated.
4145         * objc/Make-lang.in (objc.info): Remove.
4146         (objc.dvi): Remove.
4147         (objc.generated-manpages): Remove.
4148         * doc/sourcebuild.texi: Update description of info, dvi, and
4149         generated-manpages hooks.
4150
4151 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
4152
4153         * config/mips/mips.md: Merge mips16 lw/srl pattern with its splitter.
4154
4155 2003-10-05  Andrew Pinski  <apinski@apple.com>
4156
4157         * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
4158         errors in memcpy destinations.
4159         (machopic_stub_name): Likewise.
4160
4161 2003-10-05  Andrew Pinski <apinski@apple.com>
4162
4163         * config/darwin.c (machopic_non_lazy_ptr_name):
4164         Change strcat to memcpy and add length together.
4165         (machopic_stub_name): Likewise.
4166
4167 2003-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
4168
4169         * config/sh/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new
4170         signal trampoline codes.
4171
4172 2003-10-05  Chris Demetriou  <cgd@broadcom.com>
4173
4174         * config/mips/mips.md (*divsf3): Move description of
4175         SB-1 F2 erratum from here to...
4176         (divsf3): Here.  Disable if TARGET_FIX_SB1 is set and
4177         flag_unsafe_math_optimizations is not.
4178
4179 2003-10-05  Aldy Hernandez  <aldyh@redhat.com>
4180
4181         * config/rs6000/linuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE,
4182         TARGET_E500, TARGET_ISEL, and TARGET_FPRS.
4183
4184 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
4185
4186         * c-pretty-print.c: Fix comment typos.
4187         * c-pretty-print.h: Likewise.
4188         * calls.c: Likewise.
4189         * cfgloopmanip.c: Likewise.
4190         * cgraphunit.c: Likewise.
4191         * cppfiles.c: Likewise.
4192         * final.c: Likewise.
4193         * function.c: Likewise.
4194         * gcov-io.h: Likewise.
4195         * gcse.c: Likewise.
4196         * genoutput.c: Likewise.
4197         * loop.c: Likewise.
4198         * postreload.c: Likewise.
4199         * reg-stack.c: Likewise.
4200         * regmove.c: Likewise.
4201         * sched-int.h: Likewise.
4202         * sched-rgn.c: Likewise.
4203         * simplify-rtx.c: Likewise.
4204         * tree-inline.c: Likewise.
4205         * config/m68hc11/m68hc11.h: Likewise.
4206         * config/mmix/mmix.c: Likewise.
4207         * config/mn10300/mn10300.md: Likewise.
4208         * config/sh/sh.h: Likewise.
4209
4210 2003-10-05  Richard Henderson  <rth@redhat.com>
4211
4212         * tree-inline.c (remap_type): New.
4213         (remap_decl): Use it.  Remap DECL_SIZE*.
4214         (copy_body_r): Use it.
4215         (walk_tree): Walk TREE_TYPE too.
4216         (copy_tree_r): Don't walk subtrees of types.
4217         * tree.c (variably_modified_type_p): Restructure.  Consider integer
4218         types with non-const bounds variably modified.
4219
4220 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
4221
4222         * doc/invoke.texi: Fix typos.
4223
4224 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
4225
4226         * fold-const.c: Follow spelling conventions.
4227         * function.c: Likewise.
4228         * config/c4x/c4x.h: Likewise.
4229         * config/c4x/c4x.md: Likewise.
4230         * config/frv/frv.md: Likewise.
4231         * config/rs6000/aix.h: Likewise.
4232         * config/rs6000/linux64.h: Likewise.
4233         * config/xtensa/xtensa.c: Likewise.
4234
4235 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
4236
4237         * c-pretty-print.c: Fix comment formatting.
4238         * cfglayout.c: Likewise.
4239         * cfgloopanal.c: Likewise.
4240         * cppcharset.c: Likewise.
4241         * dbxout.c: Likewise.
4242         * ggc-page.c: Likewise.
4243         * ggc.h: Likewise.
4244         * target.h: Likewise.
4245
4246 2003-10-04  Kelley Cook  <kelleycook@wideopenwest.com>
4247
4248         * gengtype-lex.l: Recognize typedef of functions without PARAMS macro.
4249
4250 2003-10-04  Nathanael Nerode  <neroden@gcc.gnu.org>
4251
4252         * config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c:
4253         Convert to ISO C90 function declarations and definitions.
4254
4255 2003-10-04  Zack Weinberg  <zack@codesourcery.com>
4256
4257         * libfuncs.h
4258         (LTI_eqhf2, LTI_nehf2, LTI_gthf2, LTI_gehf2, LTI_lthf2)
4259         (LTI_lehf2, LTI_unordhf2, LTI_eqsf2, LTI_nesf2, LTI_gtsf2)
4260         (LTI_gesf2, LTI_ltsf2, LTI_lesf2, LTI_unordsf2, LTI_eqdf2)
4261         (LTI_nedf2, LTI_gtdf2, LTI_gedf2, LTI_ltdf2, LTI_ledf2)
4262         (LTI_unorddf2, LTI_eqxf2, LTI_nexf2, LTI_gtxf2, LTI_gexf2)
4263         (LTI_ltxf2, LTI_lexf2, LTI_unordxf2, LTI_eqtf2, LTI_netf2)
4264         (LTI_gttf2, LTI_getf2, LTI_lttf2, LTI_letf2, LTI_unordtf2)
4265         (eqhf2_libfunc, nehf2_libfunc, gthf2_libfunc, gehf2_libfunc)
4266         (lthf2_libfunc, lehf2_libfunc, unordhf2_libfunc, eqsf2_libfunc)
4267         (nesf2_libfunc, gtsf2_libfunc, gesf2_libfunc, ltsf2_libfunc)
4268         (lesf2_libfunc, unordsf2_libfunc eqdf2_libfunc, nedf2_libfunc)
4269         (gtdf2_libfunc, gedf2_libfunc, ltdf2_libfunc, ledf2_libfunc)
4270         (unorddf2_libfunc eqxf2_libfunc, nexf2_libfunc, gtxf2_libfunc)
4271         (gexf2_libfunc, ltxf2_libfunc, lexf2_libfunc, unordxf2_libfunc
4272         (eqtf2_libfunc, netf2_libfunc, gttf2_libfunc, getf2_libfunc)
4273         (lttf2_libfunc, letf2_libfunc, unordtf2_libfunc):
4274         Delete.
4275         * optabs.h (OTI_eq, OTI_ne, OTI_gt, OTI_ge, OTI_lt, OTI_le)
4276         (OTI_unord, eq_optab, ne_optab, gt_optab, ge_optab, lt_optab)
4277         (le_optab, unord_optab): New.
4278
4279         * optabs.c (prepare_float_lib_cmp): Rewrite.  Get the libfuncs
4280         from the code_to_optab table, not a giant switch; use
4281         swap_condition; do widening only if a comparison function that
4282         we can call exists in a wider mode, not if a cmp_optab insn or
4283         libfunc exists in a wider mode; call protect_from_queue
4284         exactly once on each operand.
4285         (init_optabs): Initialize the new optabs, not the deleted libfuncs.
4286
4287         * config/gofast.h, config/ia64/ia64.c, config/mips/mips.c
4288         * config/pa/pa.c, config/rs6000/rs6000.c, config/sparc/sparc.c:
4289         Set floating point comparison libfuncs using set_optab_libfunc
4290         on the appropriate optab.
4291
4292         * config/ia64/ia64.c (ia64_hpux_init_libfuncs): Fix typo.
4293         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Correct ABI
4294         selector conditionals.
4295
4296 2003-10-04  Stephane Carrez  <stcarrez@nerim.fr>
4297
4298         * config/m68hc11/t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is
4299         identical to m68hc12 as far as libraries are concerned.
4300
4301 2003-10-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
4302
4303         PR c/12446
4304         * c-typeck.c (convert_for_assignment): Issue an error for
4305         array to pointer assignment after default conversion.
4306         (digest_init): Likewise.
4307
4308 2003-10-04  Fariborz Jahanian  <fjahanian@apple.com>
4309
4310         * c-decl.c (duplicate_decls): retain DECL_COMMON of old declaration
4311
4312 2003-10-03  Gerald Pfeifer  <gerald@pfeifer.com>
4313
4314         * doc/extend.texi (Function Attributes): Fix title of GNU C
4315         Preprocessor manual.
4316         (C++ Extensions): Fix reference to "Predefined Macros" in the
4317         GNU C Preprocessor manual.
4318
4319 2003-10-04  Richard Earnshaw  <reanrsha@arm.com>
4320
4321         * doc/extend.texi: Document how GCC estimates and relies on the size
4322         of an asm.
4323
4324 2003-10-04  Richard Sandiford  <rsandifo@redhat.com>
4325
4326         * config/mips/mips.c (mips_pad_arg_upward): Pad floating-point
4327         arguments downward for big-endian o64.
4328
4329 2003-10-03  Robert Bowdidge <bowdidge@apple.com>
4330
4331         * ggc-page.c (ggc_pch_write_object): Replace fseek() with fwrite() in
4332         PCH generation, avoiding too-frequent flushes when writing to NFS
4333         file system.
4334
4335 2003-10-03  Ziemowit Laski  <zlaski@apple.com>
4336
4337         * objc/objc-act.c (lookup_category): Mark as 'inline'.
4338
4339 2003-10-03  Alexander Malmberg  <alexander@malmberg.org>
4340             Ziemowit Laski  <zlaski@apple.com>
4341
4342         * objc/objc-act.c (add_method_to_hash_list, lookup_category):
4343         New functions.
4344         (lookup_method_in_hash_lists): New parameter indicating whether
4345         we are messaging 'Class' or 'id'.
4346         (check_duplicates): Likewise; do not assume all methods will
4347         be either class or instance methods.
4348         (generate_category, finish_class): Use lookup_category().
4349         (add_method): Use add_method_to_hash_list(); insert instance
4350         methods of root classes into the global class method hash table.
4351         (add_category): Use lookup_category(); avoid constructing
4352         duplicate categories.
4353         (really_start_method): Add method to corresponding @interface,
4354         if not already there (and if the @interface exists).
4355         (finish_message_expr, finish_objc): Adjust calls to
4356         check_duplicates().
4357
4358 2003-10-03  Roger Sayle  <roger@eyesopen.com>
4359
4360         PR optimization/9325, PR java/6391
4361         * fold-const.c (fold_convert): For floating point to integer
4362         conversions, return the maximum/minimum representable integer
4363         value if the real constant overflows the destination type.
4364         * tree.c (real_value_from_int_cst): Allow the type to be NULL,
4365         meaning don't truncate the result to a floating point mode.
4366         Simplify the logic by calling real_from_integer directly.
4367         * simplify-rtx.c (simplify_unary_operation):  Implement the
4368         same semantics for folding floating point to integer conversions
4369         in RTL.
4370
4371 2003-10-03  Chris Demetriou  <cgd@broadcom.com>
4372
4373         * config/mips/mips.c (mips_emit_prefetch): Restructure
4374         to avoid use of arrays, handle indexed prefetch.
4375         * config/mips/mips.h (ISA_HAS_FP4, ISA_HAS_PREFETCH): Update comments.
4376         (ISA_HAS_PREFETCHX): New deffine.
4377         * config/mips/mips.md ("type" attr): Add new "prefetchx" value,
4378         update comments.
4379         (prefetch_indexed_di, prefetch_indexed_si): New insns.
4380
4381 2003-10-03  Jeff Sturm  <jsturm@one-point.com>
4382             Roger Sayle  <roger@eyesopen.com>
4383
4384         PR optimization/12289
4385         * calls.c (emit_call_1): Pretend to have popped the arguments
4386         to noreturn and longjmp functions instead of ignoring them.
4387         (expand_call): Don't adjust stack_pointer_dela while
4388         inhibit_defer_pop is set.
4389
4390 2003-10-03  Andreas Schwab  <schwab@suse.de>
4391
4392         PR bootstrap/12276
4393         * configure.in: Check for libunwind on the host only if building
4394         a native compiler.
4395         * configure: Regenerated.
4396
4397 2003-10-03  Paolo Carlini  <pcarlini@unitus.it>
4398
4399         * unwind-pe.h (read_encoded_value_with_base): Constify u and
4400         its inizialization cast.
4401
4402 2003-10-03  Richard Sandiford  <rsandifo@redhat.com>
4403
4404         PR target/12485
4405         * config/mips/mips.c (mips_load_got): GOT accesses can't trap.
4406
4407 2003-10-02  Mark Mitchell  <mark@codesourcery.com>
4408
4409         PR optimization/12180
4410         * tree-inline.c (inline_forbidden_p_1): Do not permit inlining of
4411         functions containing calls to __builtin_next_arg.
4412
4413 2003-10-02  Chris Demetriou  <cgd@broadcom.com>
4414
4415         * config/mips/mips.c (mips_emit_prefetch): Use operand 3
4416         in instructions being output.
4417         * config/mips/mips.md (prefetch_si_address): Change third
4418         operand's constraint letter to 'I'.
4419         (prefetch_di_address): Likewise.
4420         (prefetch_si, prefetch_di): Set third operand to const0_rtx.
4421
4422 2003-10-02  Zack Weinberg  <zack@codesourcery.com>
4423
4424         * system.h: Poison macros obsoleted by earlier patch.
4425         * config/cris/cris.c: C90-ify a function definition.
4426
4427 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
4428
4429         PR/12292
4430         * combine.c (make_field_assignment): Check whether rtx's code
4431         is CONST_INT before using INTVAL.
4432
4433 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
4434
4435         * cgraph.c (cgraph_node): Use INSERT instead of 1 in
4436         htab_find_slot_with_hash.
4437         (cgraph_node_for_identifier): Use NO_INSERT.
4438         (cgraph_remove_node): Use NO_INSERT.
4439         (cgraph_varpool_node): Use INSERT.
4440         (cgraph_varpool_node_for_identifier): Use NO_INSERT.
4441
4442 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
4443
4444         Waldek Hebisch <hebisch@math.uni.wroc.pl>
4445         PR/12072
4446         * varasm.c (compare_constant): Fix thinko.
4447
4448 2003-10-02  Richard Sandiford  <rsandifo@redhat.com>
4449
4450         * config/frv/frv.c (frv_issue_rate): New function.
4451         (frv_pack_insns): Use it.
4452         (TARGET_SCHED_ISSUE_RATE): Define.
4453
4454 2003-10-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
4455
4456         * config/mcore/mcore.c: Convert to ISO C90 function declarations
4457         and definitions.
4458         * config/mcore/mcore.h: Likewise.
4459         * config/mcore/mcore-protos.h: Likewise.
4460
4461 2003-10-02  Richard Sandiford  <rsandifo@redhat.com>
4462
4463         * config/frv/frv.c (frv_use_dfa_pipeline_interface): New function.
4464         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
4465
4466 2003-10-01  Per Bothner  <pbothner@apple.com>
4467
4468         * c-lex.c (src_line):   Remove unneeded static variable.
4469         (cb_line_change):  Set input_line directly, instead of src_line.
4470         (get_non_padding_token):  We no longer need to compensate for the
4471         "horrible things" the C++ front-end does with the current line number,
4472
4473         * cpplib.c (_cpp_pop_buffer):  Do generate a _cpp_do_file_change
4474         callback even when popping the main file.
4475         * c-lex.c (fe_file_change):  Handle a NULL new_map.
4476         * fix-header.c (cb_file_change):  Likewise.
4477         * c-ppoutput.c (pp_file_change):  Likewise.
4478
4479         * cppinit.c (cpp_read_main_file):  Split into two functions:
4480         Distribute _cpp_stack_file call over the two functions.
4481         (cpp_find_main_file):  New function.
4482         Don't call _cpp_do_file_change even if working_directory flag set.
4483         (cpp_push_main_file):  New function.
4484         * cppfiles.c (_cpp_find_failed):  New helper function.
4485         (find_file):  Made non-static and renamed to _cpp_find_file.
4486         (_cpp_stack_file):  No longer needed.  But note the following.
4487         (stack_file):  Made non-static and renamed to _cpp_stack_file.
4488         * fix-header.c (cpp_read_main_file):  Replace cpp_read_main_file
4489         call with calls to cpp_find_main_file and cpp_push_main_file.
4490         (search_path_head):  If there is no current buffer, use main_file.
4491         * cpphash.h:  Update function declarations.
4492         * cpplib.h:  Update function declarations.
4493
4494         * c-opts.c (c_common_post_options):  Don't call cpp_find_main_file yet.
4495         (c_common_parse_file):  No longer need to call cpp_read_main_file
4496         when file_index > 0 (as in multi-file or server compiation).
4497         (finish_options):  Change to <built-in> is an LC_ENTER, not LC_RENAME
4498         as this now happens before cpp_push_main_file.
4499         (push_command_line_include):  When done with options, pass LC_LEAVE
4500         instead of LC_RENAME to cpp_change_file and finally cpp_push_main_file.
4501         (fe_file_change):  Handle NULL new_map, and simplify.
4502         * cpplex.c (_cpp_get_fresh_line):  Revert my no-longer-needed
4503         08-28 change, since we're never called with a NULL buffer.
4504         (_cpp_lex_direct):  Likewise.
4505         * cpptrad.c (_cpp_read_logical_line_trad):  Likewise.
4506         Return false if buffer is NULL at end.
4507
4508         * cpplex.c (_cpp_get_fresh_line):  Return value now just depends on
4509         whether pfile->buffer is NULL after pop, ignoring return_at_eof.
4510         * cpphash.h (struct cpp_buffer):  Remove unused return_at_eof field.
4511         * cpplib.c (cpp_push_buffer):  Since we no longer set return_at_eof,
4512         remove the unused return_at_eof parameter.
4513         * cppfiles.c, cpplib.c, cppmacro.c, cpppch.c, fix-header.c:
4514         Update callers of cpp_push_buffer.
4515
4516 2003-10-01  Zack Weinberg  <zack@codesourcery.com>
4517
4518         * target.h (init_libfuncs): New hook.
4519         * target-def.h: Default TARGET_INIT_BUILTINS and
4520         TARGET_INIT_LIBFUNCS to hook_void_void.  Add
4521         TARGET_INIT_LIBFUNCS to TARGET_INITIALIZER.
4522         * builtins.c (default_init_builtins): Delete.
4523         * expr.h (default_init_builtins): Delete prototype.
4524         * doc/tm.texi: Document TARGET_INIT_LIBFUNCS and US_SOFTWARE_GOFAST.
4525         Tweak documentation of TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL.
4526         Remove documentation of INIT_TARGET_OPTABS, MULSI3_LIBCALL,
4527         DIVSI3_LIBCALL, UDIVSI3_LIBCALL, MODSI3_LIBCALL, UMODSI3_LIBCALL,
4528         MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL,
4529         and UMODDI3_LIBCALL,
4530
4531         * Makefile.in (optabs.o): Depends on target.h.
4532         * defaults.h: Provide default for FLOAT_LIB_COMPARE_RETURNS_BOOL.
4533         * optabs.c: Include target.h.
4534         (prepare_float_lib_cmp): No need for #ifdef around use of
4535         FLOAT_LIB_COMPARE_RETURNS_BOOL.
4536         (set_optab_libfunc): New function.
4537         (init_optabs): Delete use of all *_LIBCALL defines.
4538         Call targetm.init_libfuncs not INIT_TARGET_OPTABS.
4539         * optabs.h: Prototype set_optab_libfunc.
4540
4541         * config.gcc: Remove all references to pa/long_double.h,
4542         ia64/hpux_longdouble.h, and gofast.h.
4543         (mips-*-*): When --enable-gofast, just add US_SOFTWARE_GOFAST
4544         to tm_defines; don't set INIT_SUBTARGET_OPTABS or change tm_file.
4545
4546         * config/alpha/alpha.c, config/c4x/c4x.c, config/cris/cris.c
4547         * config/frv/frv.c, config/h8300/h8300.c, config/i860/i860.c
4548         * config/ia64/ia64.c, config/ip2k/ip2k.c, config/m68hc11/m68hc11.c
4549         * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
4550         * config/sparc/sparc.c, config/vax/vax.c:
4551         Provide a definition for TARGET_INIT_LIBFUNCS.  Where
4552         necessary, include optabs.h, libfuncs.h, and/or config/gofast.h.
4553
4554         * config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.h
4555         * config/avr/avr.h, config/cris/cris.h, config/frv/frv.h
4556         * config/h8300/h8300.h, config/i860/i860.h, config/ip2k/ip2k.h
4557         * config/iq2000/iq2000.h, config/m68hc11/m68hc11.h, config/mips/mips.h
4558         * config/rs6000/aix.h, config/rs6000/sysv4.h, config/sparc/elf.h
4559         * config/sparc/lite.h, config/sparc/netbsd-elf.h, config/sparc/sol2.h
4560         * config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h
4561         * config/vax/elf.h: Don't define or use INIT_TARGET_OPTABS,
4562         INIT_SUBTARGET_OPTABS, or any *_LIBCALL macros.
4563
4564         * config/ia64/hpux.h: Redefine INTEL_EXTENDED_IEEE_FORMAT to 0.
4565         Set TARGET_INIT_LIBFUNCS and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
4566         * config/pa/pa-hpux.h: Define LONG_DOUBLE_TYPE_SIZE,
4567         HPUX_LONG_DOUBLE_LIBRARY, and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
4568         * config/ia64/hpux_longdouble.h, config/pa/long_double.h: Delete.
4569
4570         * config/rs6000/xcoff.h: Don't define RS6000_ITRUNC nor RS6000_UITRUNC.
4571         * config/sparc/sparc.h: Default SUN_CONVERSION_LIBFUNCS and
4572         SUN_INTEGER_MULTIPLY_64 to 0.
4573         * config/sparc/sol2.h: Redefine SUN_CONVERSION_LIBFUNCS and
4574         SUN_INTEGER_MULTIPLY_64 to 1.
4575         * config/sparc/elf.h: Redefine SUN_CONVERSION_LIBFUNCS and
4576         SUN_INTEGER_MULTIPLY_64 to 0.
4577         * config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/sp86x-elf.h:
4578         Define US_SOFTWARE_GOFAST.
4579         * config/vax/vax.h: Default TARGET_ELF to 0.
4580         * config/vax/elf.h: Redefine TARGET_ELF to 1.
4581
4582         * config/gofast.h: Don't define any macros here.  Provide one
4583         static function, gofast_maybe_init_libfuncs, which does what
4584         INIT_GOFAST_LIBFUNCS used to do but only if US_SOFTWARE_GOFAST
4585         is already defined.  Do not clear negation libfuncs.  Do
4586         not mess with HFmode, XFmode, or TFmode libfuncs.
4587
4588         * config/avr/avr.c (avr_init_once): #if 0 out; mark FIXME.
4589
4590 2003-10-01  Kelley Cook  <kelleycook@wideopenwest.com>
4591
4592         PR C/12466
4593         * c-parse.in (parmlist_2): Mark declaration with an ellipsis as ISO C.
4594
4595 2003-10-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4596
4597         * config/mips/xm-iris5.h: Remove, unnecessary.
4598         * config.build (mips-sgi-irix5*): Remove.
4599         (mips-sgi-irix6*o32): Likewise.
4600         * config.gcc (mips-sgi-irix6*o32): Remove xm_file.
4601         (mips-sgi-irix5cross64): Likewise.
4602         (mips-sgi-irix5*): Likewise.
4603         * config.host (mips-sgi-irix5*): Remove.
4604         (mips-sgi-irix6*o32): Likewise.
4605
4606 2003-10-01  Zack Weinberg  <zack@codesourcery.com>
4607
4608         * dbxout.c (dbxout_fptype_value): Delete.
4609         (dbxout_type): Emit R3 for all COMPLEX_TYPEs.
4610
4611 2003-10-01  Alexandre Oliva  <aoliva@redhat.com>
4612
4613         * output.h (compute_reloc_for_constant): Declare.
4614         * varasm.c (compute_reloc_for_constant): Extract from...
4615         (output_addressed_constants): ... here.  Adjust all callers.
4616
4617 2003-10-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4618
4619         * aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.
4620         * configure: Rebuilt.
4621
4622 2003-10-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4623
4624         * fold-const.c (make_range): When handling unsigned, don't reverse
4625         range if high bound is zero.
4626
4627 2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
4628
4629         * config/frv/frv.h (PREDICATE_CODES): Added
4630         condexec_si_media_operator, condexec_sf_add_operator and
4631         condexec_sf_conv_operator.  Removed condexec_sf_binary_operator
4632         and condexec_sf_unary_operator.
4633
4634 2003-10-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4635
4636         * aclocal.m4: Add ultrix* to /dev/zero blacklist.
4637         * configure: Rebuilt.
4638
4639 2003-10-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4640
4641         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change.
4642         Allow override.
4643         * doc/tm.texi (MUST_USE_SJLJ_EXCEPTIONS): Document.
4644
4645 2003-09-23  David S. Miller  <davem@redhat.com>
4646
4647         * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine
4648         before redefining.
4649         * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
4650
4651 2003-10-01  Steven Bosscher  <steven@gcc.gnu.org>
4652
4653         * config/cris/cris-protos.h, config/cris/cris.c: Convert to ISO
4654         C90 function declarations and definitions.
4655
4656 2003-10-01  Nathanael Nerode  <neroden@gcc.gnu.org>
4657
4658         * config.gcc (cris-*-linux*): Revert mistaken commit.
4659
4660 2003-10-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
4661
4662         PR optimization/11753
4663         * config/sparc/sparc.md (length attribute) [fcc branch]: Add 1 to
4664         the length in the non-V9 case.
4665
4666 2003-09-30  Richard Henderson  <rth@redhat.com>
4667
4668         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor
4669         DWARF_ALT_FRAME_RETURN_COLUMN.
4670         * unwind-dw2.c (dwarf_reg_size_table): Expand by one.
4671         (_Unwind_GetGR, _Unwind_SetGR): Validate lookup column.
4672         (uw_frame_state_for): Return end-of-stack for null return address.
4673         * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Add.
4674
4675         * config/alpha/alpha.c (alpha_sa_mask): Add r31 for eh_return.
4676         (alpha_expand_prologue): Store a zero for it.
4677         (alpha_expand_epilogue): Don't reload it.
4678         * config/alpha/alpha.h (DWARF_ALT_FRAME_RETURN_COLUMN): New.
4679         * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Use column 64
4680         for the sigframe return address.
4681
4682 2003-09-30  Kelley Cook  <kelleycoook@wideopenwest.com>
4683
4684         * sdbout.c: Convert to ISO C90 prototypes.
4685         * objc/objc-act.c: Likewise.
4686
4687 2003-09-30  Kelley Cook  <kelleycoook@wideopenwest.com>
4688
4689         * config/i386/cygwin1.c: Convert to ISO C90 prototypes.
4690         * config/i386/winnt.c: Likewise.
4691         * config/i386/cygming.h: Likewise.
4692
4693 2003-09-30  Kazu Hirata  <kazu@cs.umass.edu>
4694
4695         * fold-const.c (fold): Fold (A & ~B) - (A & B) into
4696         (A ^ B) - B for any B.
4697
4698 2003-09-30  Nathanael Nerode  <neroden@gcc.gnu.org>
4699
4700         * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
4701         powerpcle-*-kaos*, strongarm-*-kaos*): Disable fixproto.
4702
4703 2003-09-30  Richard Earnshaw  <rearnsha@arm.com>
4704
4705         * arm/ieee754-sf.S: Tidy formatting.
4706
4707 2003-09-30  Nicolas Pitre  <nico@cam.org>
4708
4709         * arm/lib1funcs.asm (ARM_DIV_MOD_BODY): Split into ARM_DIV_BODY
4710         and ARM_MOD_BODY.
4711         (ARM_MOD_BODY): Rewritten. added clz insns for __ARM_ARCH__ >= 5.
4712         (ARM_DIV_BODY): Added clz insns for __ARM_ARCH__ >= 5,
4713         added better divisor alignment in the other case.
4714         (ARM_DIV2_ORDER): Added, finds the order of a single bit divisor.
4715         (__divsi3, __udivsi3, __modsi3, __umodsi3): rewritten using the
4716         macros above, add fast exits for divisor >= dividend, etc.
4717
4718 2003-09-30  Nicolas Pitre  <nico@cam.org>
4719
4720         * arm/ieee754-df.S: Split compilation of fixunsdfsi from
4721         L_fixdfsi target.
4722         * arm/t-arm-elf (LIB1ASMFUNCS): Add _fixunsdfsi.
4723
4724 2003-09-30  Nathanael Nerode  <neroden@gcc.gnu.org>
4725
4726         * config.gcc: Default use_fixproto to 'no'.
4727
4728 2003-09-30  Richard Sandiford  <rsandifo@redhat.com>
4729
4730         PR optimization/12345
4731         * config/mips/mips-protos.h (mips_restore_gp): Remove.
4732         (mips_gp_save_slot): Declare.
4733         * config/mips/mips.c (mips_restore_gp): Remove in favor of...
4734         (mips_gp_save_slot): ...this new function.
4735         * config/mips/mips.md (exception_receiver): Use mips_gp_save_slot
4736         and mips_output_move to generate the output template.
4737         (call_internal): Force splitting if TARGET_SPLIT_CALLS.  Don't emit
4738         a gp load after a noreturn call.  Load the gp using a move rather
4739         than an exception_receiver pattern.
4740         (call_value_internal, call_value_multiple_internal): Likewise.
4741         (call_split, call_value_split, call_value_multiple_split): Clobber $28.
4742
4743 2003-09-30  Carlo Wood  <carlo@alinoe.com>
4744
4745         PR debug/12319
4746         * cfglayout.c (insn_scope):  Use prologue_locator and
4747         epilogue_locator; return the outer function scope for
4748         pro- and epilogue insns.
4749
4750 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
4751
4752         * objc/objc-act.c (encode_type): Encode INTEGER_TYPEs and
4753         REAL_TYPEs based on the bitsize of the type's mode, not the
4754         mode directly.
4755
4756 2003-09-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4757
4758         * dwarf2out.c (default_eh_frame_section): Split into ...
4759         (named_section_eh_frame_section, collect2_eh_frame_section): ... new
4760         functions.
4761         * output.h (named_section_eh_frame_section): Declare.
4762         (collect2_eh_frame_section): Likewise.
4763
4764 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
4765
4766         * real.c (real_sqrt): Use get_canonical_qnan directly.
4767
4768         * dwarf2out.c (add_const_value_attribute): Use real_to_target.
4769
4770         * varasm.c (assemble_real): Use real_to_target directly,
4771         calculate the number of significant elements of the result
4772         array and write them out in a loop, instead of using a giant
4773         switch statement to pick the correct REAL_VALUE_TO_TARGET_*
4774         macro.
4775
4776 2003-09-29  Jan Hubicka  <jh@suse.cz>
4777
4778         PR c++/12175
4779         * varasm.c (notice_global_symbol): Discard external symbols.
4780
4781         PR optimization/12286
4782         * gcov-io.c (gcov_read_words): Fix memmove call.
4783         * profile.c (compute_branch_probabilities): Add extra sanity checks.
4784
4785 2003-09-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4786
4787         * config.gcc (sparc-*-solaris2*): Handle Solaris 10 and up like
4788         Solaris 7-9.
4789
4790         * fixinc/inclhack.def (solaris_widec): Replace solaris2.[0-5]* by
4791         wildcards which explicitly match micro versions.
4792         * fixinc/fixincl.x: Regenerate.
4793
4794 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
4795
4796         * fold-const.c (fold): Fold (A & ~B) - (A & B) into
4797         (A ^ B) - B, where B is any power of 2 minus 1.
4798
4799 2003-09-29  Jan Hubicka  <jh@suse.cz>
4800
4801         * libgcov.c (gcov_exit): Fix two pastos.
4802
4803 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
4804
4805         * config/h8300/h8300.md (*tst_extzv_1_n): Combine with the
4806         define_split immediately below to form define_insn_and_split.
4807
4808 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
4809
4810         * config/h8300/h8300.md (*tstsi_variable_bit): New.
4811         (*tstsi_variable_bit_qi): Likewise.
4812
4813 2003-09-28  Phil Edwards  <phil@codesourcery.com>
4814
4815         * doc/cppopts.texi:  Use 'dashMP' instead of '-MP' as a cross-
4816         reference name.
4817
4818 2003-09-28  Richard Henderson  <rth@redhat.com>
4819
4820         * c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
4821         file and line separately.
4822
4823 2003-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
4824
4825         * config/s390/s390.md ("*adddi3_carry1_cc", "*adddi3_carry1_cconly",
4826         "*adddi3_carry2_cc", "*adddi3_carry2_cconly", "*subdi3_borrow_cc",
4827         "*subdi3_borrow_cconly"): New insns.
4828         ("*addsi3_sub", "*subsi3_sub"): Remove.
4829         ("*subdi3_cc", *subdi3_cconly"): Use only if TARGET_64BIT.
4830         ("*subsi3_cc"): Fix op_type attribute.
4831
4832 2003-09-28  Richard Henderson  <rth@redhat.com>
4833
4834         * stmt.c (expand_asm_operands): Take a location_t, instead of
4835         individual file and line.
4836         * c-typeck.c (c_expand_asm_operands): Likewise.
4837         * tree.h (expand_asm_operands): Update decl.
4838         * c-common.h (c_expand_asm_operands): Likewise.
4839         * c-semantics (genrtl_asm_stmt): Update call.
4840
4841 2003-09-28  Philip Blundell  <philb@gnu.org>
4842
4843         * config/arm/arm.c (legitimize_pic_address): Check
4844         SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
4845         (arm_assemble_integer): Likewise.
4846
4847 2003-09-28  Steven Bosscher  <steven@gcc.gnu.org>
4848
4849         * config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
4850         config/c4x/c4x-c.c, config/c4x/c4x-protos.h, config/c4x/c4x.c,
4851         config/c4x/c4x.h:
4852         Convert to ISO C90 function declarations and definitions.
4853
4854 2003-09-28  Steven Bosscher  <steven@gcc.gnu.org>
4855
4856         *  config/stormy16/stormy16.c, config/stormy16/stormy16-protos.h:
4857         Convert to ISO C90 function declarations and definitions.
4858
4859 2003-09-28  Richard Sandiford  <rsandifo@redhat.com>
4860
4861         * config/mips/mips.c (mips_constant_info): Add reloc field.
4862         (mips_classify_constant): Initialize it.  Always set SYMBOL to the
4863         underlying symbol, not to an unspec.
4864         (mips_delegitimize_address, print_operand): Clean up accordingly.
4865
4866 2003-09-28  Richard Sandiford  <rsandifo@redhat.com>
4867
4868         * config/mips/mips-protos.h (mips16_gp_pseudo_reg): Remove.
4869         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Remove orphaned comment.
4870         * config/mips/mips.c (mips_reloc_offset_ok_p): New function.
4871         (mips_classify_constant): Use it.
4872         (mips_splittable_symbol_p): Add an offset argument.
4873         (mips_classify_address): Adjust call accordingly.
4874         (mips_legitimize_symbol): Handle sdata references with LO_SUM rather
4875         than a relocation unspec.  Update call to mips_splittable_symbol_p.
4876         Generalize the code that copes with symbols + invalid offsets.
4877         (print_operand): Allow '%R' to be applied to small data addresses.
4878         (mips_reloc_string): Remove RELOC_GPREL16.
4879         (mips_sdata_pointer): Renamed from mips16_gp_pseudo_reg.  Return $gp
4880         for TARGET_EXPLICIT_RELOCS.  Return null if we can't use gp-relative
4881         relocation operators.
4882         * config/mips/mips.md (RELOC_GPREL16): Remove.  Shuffle other reloc
4883         constants accordingly.
4884
4885 2003-09-27  Roger Sayle  <roger@eyesopen.com>
4886
4887         * toplev.c (flag_evaluation_order): New global variable.
4888         * flags.h (flag_evaluation_order): Prototype here.
4889         * expr.c (expand_operands): If we need to preserve observable
4890         evaluation order, protect exp1 from clobbering exp0's result.
4891
4892 2003-09-28  Andreas Jaeger  <aj@suse.de>
4893
4894         * c-decl.c (finish_function): Convert definition to ISO C90.
4895         * ifcvt.c (mark_loop_exit_edges): Likewise.
4896         * ra-rewrite.c (emit_colors): Likewise.
4897
4898 2003-09-27  Nathanael Nerode  <neroden@gcc.gnu.org>
4899
4900         * config.gcc (alpha*-dec-osf[45]*): Disable fixproto.
4901         * config.gcc (arm*-*-uclinux*): Disable fixproto.
4902         * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
4903         powerpc-*-eabialtivec*): Disable fixproto.
4904
4905 2003-09-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
4906
4907         PR optimization/12340
4908         * loop.h (struct induction): Document the new semantics
4909         of the 'same' field for bivs.
4910         * unroll.c (biv_total_increment): Don't count the same
4911         biv increment several times.
4912         (loop_iterations) [GENERAL_INDUCT]: Likewise.
4913
4914 2003-09-27  Graham Stott  <graham.stott@btinternet.com>
4915
4916         * unroll.c (loop_interations)[GT]: Add missing break.
4917
4918 2003-09-27  Kelley Cook  <kcook@gcc.gnu.org>
4919
4920         * config/chorus.h, config/darwin-c.c, config/darwin-protos.h,
4921         config/darwin.c, config/darwin.h, config/dbx.h, config/dbxcoff.h,
4922         config/dbxelf.h, config/elfos.h, config/fp-bit.h,
4923         config/freebsd-nthr.h, config/freebsd-spec.h, config/freebsd.h,
4924         config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
4925         config/freebsd6.h, config/netbsd-aout.h, config/netbsd-elf.h,
4926         config/netbsd.h, config/netware.h, config/openbsd-oldgas.h,
4927         config/openbsd.h, config/ptx4.h, config/alpha/alpha-protos.h,
4928         config/alpha/alpha.c, config/alpha/alpha.h, config/alpha/alpha.md,
4929         config/alpha/elf.h, config/alpha/ev4.md, config/alpha/ev5.md,
4930         config/alpha/ev6.md, config/alpha/freebsd.h, config/alpha/linux-elf.h,
4931         config/alpha/linux.h, config/alpha/netbsd.h, config/alpha/openbsd.h,
4932         config/alpha/osf.h, config/alpha/osf5.h, config/alpha/unicosmk.h,
4933         config/alpha/vms-cc.c, config/alpha/vms-crt0-64.c,
4934         config/alpha/vms-crt0.c, config/alpha/vms-dwarf2.asm,
4935         config/alpha/vms-dwarf2eh.asm, config/alpha/vms-ld.c,
4936         config/alpha/vms-psxcrt0-64.c, config/alpha/vms-psxcrt0.c,
4937         config/alpha/vms.h, config/alpha/vms64.h, config/alpha/vms_tramp.asm,
4938         config/alpha/xm-vms.h, config/arc/arc-modes.def,
4939         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
4940         config/arc/arc.md, config/arc/initfini.c, config/arc/lib1funcs.asm,
4941         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
4942         config/avr/avr.md, config/d30v/d30v-protos.h, config/d30v/d30v.h,
4943         config/d30v/d30v.md, config/fr30/fr30-protos.h, config/fr30/fr30.c,
4944         config/fr30/fr30.h, config/fr30/fr30.md, config/fr30/lib1funcs.asm,
4945         config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
4946         config/frv/frv-abi.h, config/frv/frv-asm.h, config/frv/frv-modes.def,
4947         config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
4948         config/frv/frv.md, config/frv/frvbegin.c, config/frv/frvend.c,
4949         config/frv/lib1funcs.asm, config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
4950         config/h8300/parityhi2.c, config/h8300/popcounthi2.c,
4951         config/i370/i370-c.c, config/i370/i370-protos.h, config/i370/i370.c,
4952         config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
4953         config/i370/mvs.h, config/i370/oe.h, config/i386/darwin.h,
4954         config/i960/i960-c.c, config/i960/i960-coff.h,
4955         config/i960/i960-modes.def, config/i960/i960-protos.h,
4956         config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
4957         config/i960/rtems.h, config/ia64/elf.h, config/ia64/ia64.h,
4958         config/m32r/initfini.c, config/m32r/m32r-protos.h, config/m32r/m32r.c,
4959         config/m32r/m32r.h, config/m32r/m32r.md, config/m68hc11/larith.asm,
4960         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
4961         config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
4962         config/m68hc11/m68hc12.h, config/m68k/coff.h, config/m68k/crti.s,
4963         config/m68k/crtn.s, config/m68k/hp320.h, config/m68k/hp320base.h,
4964         config/m68k/lb1sf68.asm, config/m68k/linux.h, config/m68k/m68020-elf.h,
4965         config/m68k/m68k-aout.h, config/m68k/m68k-none.h,
4966         config/m68k/m68k-protos.h, config/m68k/m68k.c, config/m68k/m68k.h,
4967         config/m68k/m68k.md, config/m68k/m68kelf.h, config/m68k/m68kv4.h,
4968         config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
4969         config/m68k/rtemself.h, config/m68k/sgs.h, config/mcore/lib1.asm,
4970         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h,
4971         config/mcore/mcore-protos.h, config/mcore/mcore.c,
4972         config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
4973         config/mips/elforion.h, config/mips/iris5.h, config/mips/iris6.h,
4974         config/mips/iris6gld.h, config/mips/irix6-libc-compat.c,
4975         config/mips/linux.h, config/mips/mips-protos.h, config/mips/mips.c,
4976         config/mips/mips.h, config/mips/mips.md, config/mips/netbsd.h,
4977         config/mips/openbsd.h, config/mips/r3900.h, config/mips/rtems.h,
4978         config/mips/vr.h, config/mn10300/linux.h,
4979         config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
4980         config/mn10300/mn10300.h, config/mn10300/mn10300.md,
4981         config/ns32k/__unorddf2.c, config/ns32k/__unordsf2.c,
4982         config/ns32k/netbsd.h, config/ns32k/ns32k-protos.h,
4983         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/ns32k/ns32k.md,
4984         config/pdp11/2bsd.h, config/pdp11/pdp11-modes.def,
4985         config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
4986         config/pdp11/pdp11.h, config/pdp11/pdp11.md, config/rs6000/biarch64.h,
4987         config/rs6000/default64.h, config/sh/coff.h, config/sh/crt1.asm,
4988         config/sh/crti.asm, config/sh/crtn.asm, config/sh/elf.h,
4989         config/sh/embed-elf.h, config/sh/linux.h, config/sh/little.h,
4990         config/sh/netbsd-elf.h, config/sh/rtems.h, config/sh/rtemself.h,
4991         config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
4992         config/sh/sh.md, config/sh/sh64.h, config/sh/shmedia.h,
4993         config/sh/sshmedia.h, config/sh/ushmedia.h, config/sparc/pbd.h,
4994         config/sparc/sparc.h, doc/install-old.texi, fixinc/fixinc.ptx,
4995         fixinc/fixinc.svr4: GNU CC -> GCC.
4996
4997 2003-09-26  Loren James Rittle  <ljrittle@acm.org>
4998
4999         * objc/objc-act.c (tm_p.h): Tweak order.
5000         * objc/Make-lang.in (objc/objc-act.o): Add $(TM_P_H).
5001
5002 2003-09-26  Nathanael Nerode  <neroden@gcc.gnu.org>
5003
5004         * config.gcc (hppa*64*-*-linux* | parisc*64*-*-linux*):
5005         Include t-slibgcc-elf-ver and t-linux in tmake_file.
5006         * config.gcc (hppa*64*-*-linux* | parisc*64-*-linux*):
5007         Disable fixproto.
5008         * config.gcc (i960-*-coff*, m68k-*-aout*, sparclite-*-coff*):
5009         Disable fixproto.
5010         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*,
5011         sparcv9-*-solaris2*, sparc-*-solaris2*): Disable fixproto.
5012
5013         * config/i386/unix.h: Remove (unused) DEFAULT_ASSEMBLER_DIALECT.
5014
5015 2003-09-26  Loren James Rittle  <ljrittle@acm.org>
5016
5017         * config/i386/i386.h (ix86_return_in_memory): Revert my last patch.
5018         * objc/objc-act.c (tm_p.h): Include.
5019
5020 2003-09-26  Per Bothner  <pbothner@apple.com>
5021
5022         * dbxout.c (dbxout_typedefs):  Output typedefs in forward order.
5023         No longer any need to reverse by recursion.
5024
5025 2003-09-26  Roger Sayle  <roger@eyesopen.com>
5026             Richard Henderson  <rth@redhat.com>
5027
5028         PR optimization/11741
5029         * gcse.c (pre_insert_copy_insn): Tweak the logic for finding the
5030         appropriate set to match that in hash_scan_insn.  Fall back to
5031         the original copy method, if we can't validate changing insn.
5032         (pre_delete): Only delete instructions that have a single_set,
5033         instead of aborting when we encounter an PARALLEL insn with more
5034         then one SET.
5035
5036 2003-09-26  Andreas Krebbel  <krebbel1@de.ibm.com>
5037
5038         * config/s390/s390.md ("builtin_setjmp_setup"): Insn deleted.
5039         ("builtin_longjmp"): Insn deleted.
5040         ("save_stack_nonlocal"): Save literal pool base pointer behind
5041         backchain and stack pointer.
5042         ("restore_stack_nonlocal"): Restore literal pool base pointer.
5043         * config/s390/s390.h (STACK_SAVEAREA_MODE): Double size of
5044         the stack save area for the nonlocal goto case.
5045
5046 2003-09-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5047
5048         PR bootstrap/12358
5049         * pa.c (output_bvb): Fix typo.
5050
5051 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
5052
5053         * expmed.c (store_bit_field): Don't search for an integer mode
5054         unless we need the result.
5055
5056 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
5057
5058         * expr.c (emit_move_insn_1): If there is no move pattern for the
5059         original mode, try using a pattern for the corresponding integer mode.
5060
5061 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
5062
5063         PR middle-end/9200
5064         * combine.c (if_then_else_cond): Tighten mode check.
5065
5066 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
5067
5068         * cppcharset.c, cpphash.h: Rename 'struct strbuf' to
5069         'struct _cpp_strbuf'.
5070
5071         * config/i386/netbsd-elf.h, config/i386/netbsd64.h,
5072         config/i386/netware.h, config/i386/nto.h, config/i386/openbsd.h,
5073         config/i386/pentium.md, config/i386/pmmintrin.h, config/i386/ppro.md,
5074         config/i386/ptx4-i.h, config/i386/rtemself.h, config/i386/sco5.h,
5075         config/i386/sol2.h, config/i386/svr3gas.h, config/i386/sysv3.h,
5076         config/i386/sysv4-cpp.h, config/i386/sysv4.h, config/i386/sysv5.h,
5077         config/i386/unix.h, config/i386/uwin.h, config/i386/vsta.h,
5078         config/i386/xm-cygwin.h, config/i386/xm-djgpp.h,
5079         config/i386/xm-mingw32.h, config/i386/xmmintrin.h: Replace
5080         "GNU CC", "GNU compiler", and "GNU C-compiler" with "GCC".
5081         * config/i386/i386-aout.h, config/i386/i386-coff.h,
5082         config/i386/i386-interix.h, config/i386/i386-interix3.h,
5083         config/i386/i386-modes.def, config/i386/i386-protos.h,
5084         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
5085         config/i386/i386elf.h, config/i386/k6.md, config/i386/kaos-i386.h,
5086         config/i386/linux-aout.h, config/i386/linux.h, config/i386/linux64.h,
5087         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
5088         config/i386/mmintrin.h, config/i386/moss.h: GNU CC -> GCC.
5089         "GNU compiler" -> GCC.
5090         * config/i386/att.h, config/i386/beos-elf.h, config/i386/biarch64.h,
5091         config/i386/bsd.h, config/i386/crtdll.h, config/i386/cygming.h,
5092         config/i386/cygwin.h, config/i386/cygwin1.c, config/i386/cygwin2.c,
5093         config/i386/darwin.h, config/i386/djgpp.h, config/i386/emmintrin.h,
5094         config/i386/freebsd-aout.h, config/i386/freebsd.h,
5095         config/i386/freebsd64.h, config/i386/gas.h: GNU CC -> GCC.
5096
5097 2003-09-25  Kelley Cook  <kelleycook@wideopenwest.com>
5098
5099         * cgraph.c (dump_cgraph):  Don't output newline before dump.  Add in
5100         "local" to the callgraph dump.  Output "after inlining" earlier.
5101         * cgraphunit.c: Fix dumpfile whitespace and commonize headers of the
5102         callgraph dumps.  Correct misspellings.
5103         (cgraph_decide_inlining):  Output number of insns before inlining.
5104         Output the calling function into which a function is inlined.
5105         (cgraph_decide_small_functions): Format dump file like always_inline.
5106
5107 2003-09-25  Loren James Rittle  <ljrittle@acm.org>
5108
5109         * config/i386/i386.h (ix86_return_in_memory): Add prototype.
5110
5111 2003-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
5112
5113         * config/s390/s390.c (s390_emit_prologue): Simplify accesses to
5114         FPR slots in the save area.
5115         (s390_emit_epilogue): Likewise.
5116
5117 2003-09-25  Richard Sandiford  <rsandifo@redhat.com>
5118
5119         * cgraph.h (cgraph_remove_edge): Declare.
5120         * cgraph.c (cgraph_remove_edge): Make extern.
5121         * cgraphunit.c (cgraph_finalize_function): Call cgraph_remove_edge
5122         instead of cgraph_remove_call.
5123
5124 2003-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
5125
5126         * objc/objc-act.c (gen_declaration_1): Fix printf format.
5127
5128 2003-09-25  Richard Earnshaw  <rearnsha@arm.com>
5129
5130         * arm.c (all_cores): arm710t, arm720t and arm740t are all based on the
5131         arm7tdmi core.
5132
5133 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
5134
5135         * config/darwin-protos.h (objc_image_info_section):
5136         New prototype.
5137
5138 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
5139
5140         * Makefile.in (stub-objc.o): Depend on $(GGC_H).
5141
5142 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
5143
5144         * config.gcc: Get rid of more gratuitious 'x'es.  Actually allow
5145         tsc701 as a --with-cpu, --with-tune setting for sparc.
5146
5147 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
5148
5149         * c-parse.in (objc_try_stmt): Do not specify a %type.
5150
5151 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
5152
5153         * config.gcc: New 'widely ported system' clause for rtems.
5154         Set thread file there, not in individual clauses.
5155
5156 2003-09-25  Richard Sandiford  <rsandifo@redhat.com>
5157
5158         PR target/6222
5159         * config/mips/mips.c (mips_va_arg): Handle arguments that must be
5160         passed on the stack.
5161
5162 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
5163
5164         * config.gcc (widely ported systems section): Mostly alphabetize
5165         by system.  Comment the case where we can't.
5166         * config.gcc (widely ported systems section): Reindent and clean up.
5167
5168         * config.gcc: Remove some unnecessary uses of 'x' in case statements.
5169         Actually allow ep9312 as an arm --with-arch setting.
5170
5171         * config.gcc (*-hpux11): Disable fixproto.
5172
5173 2003-09-24  Phil Edwards  <phil@codesourcery.com>
5174
5175         PR pch/12112
5176         * gcc/cppfiles.c (pch_open_file): Return based on combined
5177         result of all files.
5178         (validate_pch): Return validate flag for current file.
5179
5180 2003-09-24  Roger Sayle  <roger@eyesopen.com>
5181
5182         PR bootstrap/12358
5183         * fold-const.c (tree_swap_operands_p): Only reorder operands when
5184         one of the operands is constant.
5185
5186 2003-09-24  Ziemowit Laski  <zlaski@apple.com>
5187
5188         MERGE OF objc-improvements-branch into MAINLINE:
5189         * Makefile.in (C_OBJS): Add in stub-objc.o.
5190         (c-parse.y): Change sed demarcations to begin with '@@'.
5191         (stub-objc.o): New rule.
5192         * c-common.c (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
5193         flag_replace_objc_classes): New flags.
5194         * c-common.h (RID_AT_THROW, RID_AT_TRY, RID_AT_CATCH, RID_AT_FINALLY,
5195         RID_AT_SYNCHRONIZED): New keywords.
5196         (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
5197         flag_replace_objc_classes): New flags.
5198         (lookup_interface, is_class_name, objc_is_object_ptr, objc_check_decl,
5199         objc_comptypes, objc_message_selector, lookup_objc_ivar,
5200         get_current_scope, objc_mark_locals_volatile): New prototypes,
5201         some moved from c-tree.h.
5202         * c-decl.c (get_current_scope, objc_mark_locals_volatile): New functions.
5203         (finish_decl): Adjust where objc_check_decl() gets called.
5204         * c-lang.c (lookup_interface, is_class_name, objc_is_id,  objc_check_decl,
5205         objc_comptypes, objc_message_selector, lookup_objc_ivar): Remove stubs.
5206         * c-opts.c (c_common_handle_option): Add handling for  flag_nil_receivers,
5207         flag_objc_exceptions, flag_replace_objc_classes and flag_zero_link.
5208         * c-parse.in: Replace 'ifc' and 'end ifc' sed markers with '@@ifc' and
5209         '@@end_ifc', respectively.
5210         (AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY, AT_SYNCHRONIZED): New %tokens.
5211         (objc_try_stmt, superclass, class_ivars, objc_try_catch-stmt,
5212         objc_finally_block): New rules.
5213         (component_decl_list2): Clean up semantic action for @defs construct.
5214         (component_decl, c99_block_start): Remove call to add_objc_decls().
5215         (poplevel): Add call to objc_clear_super_receiver().
5216         (stmt): Add rules for @throw, @try..@catch..@finally and @synchronized
5217         constructs.
5218         (classdef, methodprotolist): Clean up/simplify.
5219         (methodprotolist2): Eliminate.
5220         (methodproto): Call add_method() instead of add_class_method() and
5221         add_instance_method().
5222         (receiver): Add TYPENAME production.
5223         (reswords): Add "throw", "try", "catch", "finally" and "synchronized".
5224         (rid_to_yy): Add AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY and
5225         AT_SYNCHRONIZED.
5226         * c-tree.h (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
5227         objc_comptypes, objc_message_selector)
5228         * c-typeck.c (comptypes): In ObjC mode, call objc_comptypes() for
5229         struct and pointer types.
5230         (build_c_cast): Do not discard ObjC protocol qualifiers.
5231         (convert_for_assignment): Cache result of comp_target_types() instead
5232         of calling it more than once.
5233         * c.opt (fnext-runtime): Update description string.
5234         (fnil-receivers, fobjc-exceptions, freplace-objc-classes, fzero-link):
5235         New ObjC/ObjC++-specific flags.
5236         * function.h (GCC_FUNCTION_H): Header guard.
5237         * gengtype-lex.l: Teach lexer about new @@... sed demarcations.
5238         * stub-objc.c: New file, to be used to satisfy references to ObjC
5239         functions by the C and C++ front-ends.
5240         * config/darwin.c (_OBJC_IMAGE_INFO): New global metadata.
5241         * config/darwin.h (FUNCTION): Add in_objc_image_info.
5242         (SECTION_FUNCTION): Add objc_image_info_section.
5243         * doc/invoke.texi: Link to GCC web site for Objective-C information.
5244         (-fconstant-string-class): Update documentation.
5245         (-fno-nil-receivers, -fobjc-exceptions, -freplace-objc-classes,
5246         -fzero-link): New documentation.
5247         * objc/Make-lang.in (objc-parse.y): Change sed demarcations to begin
5248         with '@@'.
5249         * objc/lang-specs.h (@objective-c-header): Fix -E spec.
5250         * objc/objc/objc-act.c: Replace TYPE_NAME with OBJC_TYPE_NAME
5251         throughout; provide casts for return values from memory allocation
5252         functions (xmalloc, alloca, ggc_alloc, etc.).
5253         (OBJC_VOID_AT_END): New macro.
5254         (rtl.h): Do not #include any more.
5255         (STRING_OBJECT_GLOBAL_NAME): Replaced with STRING_OBJECT_GLOBAL_FORMAT.
5256         (TAG_MSGSEND_STRET, TAG_MSGSENDSUPER_STRET, TAG_MSGSEND_NONNIL,
5257         TAG_MSGSEND_NONNIL_STRET, TAG_EXCEPTIONEXTRACT, TAG_EXCEPTIONTRYENTER,
5258         TAG_EXCEPTIONTRYEXIT, TAG_EXCEPTIONMATCH, TAG_EXCEPTIONTHROW,
5259         TAG_SYNCENTER, TAG_SYNCEXIT): New NeXT runtime entry points.
5260         (struct val_stack, catch_count_stack, exc_binding_stack,  val_stack_push,
5261         val_stack_pop): New.
5262         (objc_check_decl): Fix precondition for error message, along with
5263         the message itself.
5264         (lookup_and_install_protocols): Remove nonexistent protocols from
5265         protocol list instead of returning error_mark_node.
5266         (create_builtin_decl): Use DECL_ARTIFICIAL only for VAR_DECLs.
5267         (setup_string_decl): Generalize to use STRING_OBJECT_GLOBAL_FORMAT.
5268         (synth_module_prologue): General clean-up; construct NeXT-specific
5269         runtime API prototypes if needed.
5270         (build_string_class_template): Remove.
5271         (check_string_class_template, string_layout_checked): New.
5272         (build_objc_string_object): Generalize to work with
5273         -fconstant-string-class.
5274         (build_objc_symtab_template): Fix layout for the NeXT runtime.
5275         (build_metadata_decl): New.
5276         (forward_declare_categories): Call build_metadata_decl() instead of
5277         create_builtin_decl() et al.
5278         (build_module_descriptor): Use OBJC_VOID_AT_END instead of
5279         void_list_node_1.
5280         (build_selector_reference_decl, build_class_reference_decl,
5281         build_objc_string_decl): Do not set TREE_READONLY.
5282         (get_proto_encoding): Do not call hack_method_prototype().
5283         (get_class_reference): Add failure mode for invalid class names;
5284         support -fzero-link; defer if in an ObjC++ template declaration.
5285         (objc_declare_alias, objc_declare_class): Fix up duplicate name
5286         lookup; check for global scope if in ObjC++.
5287         (is_class_name): Generalize to work with various tree nodes (TYPE_DECL,
5288         RECORD_TYPE, IDENTIFIER_NODE, etc.)
5289         (objc_is_id): Removed.
5290         (objc_is_object_ptr): New function.
5291         (get_class_ivars_from_name): New function, used for @defs construct.
5292         (get_class_ivars): Add option to return raw ivars; create a
5293         ClASS_OWN_IVARS list for each class as needed.
5294         (objc_enter_block, objc_exit_block, objc_declare_variable,
5295         objc_build_throw_stmt, val_stack_push, val_stack_pop,
5296         objc_build_try_enter_fragment, objc_build_extract_expr,
5297         objc_build_try_exit_fragment, objc_build_extract_fragment,
5298         objc_build_try_prologue, objc_build_try_epilogue,
5299         objc_build_catch_stmt, objc_build_catch_epilogue,
5300         objc_build_finally_prologue, objc_build_finally_epilogue,
5301         objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
5302         objc_build_synchronized_epilogue, build_objc_exception_stuff):
5303         New functions.
5304         (_JBLEN): _setjmp jmpbuf size (needs to be made a target hook in
5305         the future).
5306         (build_private_template): Fix up calls to get_class_ivars().
5307         (offset_is_register, forwarding_offset): Remove.
5308         (objc_method_parm_type, objc_encoded_type_size): New functions.
5309         (encode_method_prototype): Simplify to no longer depend on
5310         back-end information.
5311         (build_tmp_function_decl_xxx, build_tmp_function_decl,
5312         hack_method_prototype): Removed.
5313         (generate_protocol_references): Remove calls to
5314         build_tmp_function_decl().
5315         (generate_protocols): Adjust calls to encode_method_prototype().
5316         (build_class_template): Generate sel_id' and 'gc_object_type' fields
5317         for the NeXT runtime.
5318         (synth_forward_declarations): Call build_metadata_decl().
5319         (check_ivars): Check that the number of ivars matches also.
5320         (build_super_template): Modify super_type directly; disable debugging
5321         output while generating decl.
5322         (build_ivar_list_initializer): Skip list elements that are not
5323         FIELD_DECLs.
5324         (ivar_list_length): New function.
5325         (generate_ivar_lists): Call ivar_list_length() instead of list_length()
5326         and encode_method_prototype() instead of encode_method_def().
5327         (build_shared_structure_initializer): Generate 'sel_id' field for
5328         the NeXT runtime.
5329         (generate_category): Do not set TREE_USED.
5330         (build_keyword_selector): Ditto; transform into a function argument
5331         chain.
5332         (get_arg_type_list): If there are no user-specified arguments, use
5333         '...'; use OBJC_VOID_AT_END.
5334         (check_duplicates): Add a parameter indicating whether methods or
5335         selectors are being checked.
5336         (receiver_is_class_object): Add parameters indicating whether
5337         receiver is 'self' or 'super'; robustify.
5338         (build_message_expr): Defer call to finish_message_expr() if
5339         inside an ObjC++ template.
5340         (lookup_method_in_hash_lists): New function.
5341         (finish_message_expr): Complete rewrite/fix.
5342         (build_objc_method_call): Ditto; factor out commonalities between
5343         the GNU and NeXT runtimes; acccommodate ..._stret and ...NonNil
5344         messenger variants on the NeXT.
5345         (lookup_instance_method_static, lookup_class_method_static):
5346         Fold into a single lookup_method_static() function with an
5347         additional parameter.
5348         (add_class_method, add_instance_method): Fold into a single
5349         add_method() function with an additional parameter.
5350         (add_category): Make duplicate categories a hard error in ObjC++.
5351         (add_instance_variable): Properly handle unnamed ivars, arrays of
5352         zero or no size and bitfields.  In ObjC++, check for nontrivial
5353         C++ class instances.
5354         (is_public): Allow C functions to access non-@public ivars, with
5355         a warning.
5356         (start_class): Move common initializations to
5357         synth_module_prologue(); check for global scope if in ObjC++.
5358         (continue_class): Fix calls to finish_struct().
5359         (objc_declare_protocols, start_protocol): Check for global scope
5360         if in ObjC++.
5361         (encode_pointer): Encode 'BOOL *' specially on the NeXT.
5362         (encode_aggregate_within): Rewrite to properly distinguish
5363         struct tags from typedefs in both ObjC and ObjC++.
5364         (encode_bitfield, encode_complete_bitfield): Remove.
5365         (encode_next_bitfield, encode_gnu_bitfield): New functions.
5366         (encode_field_decl): Call encode_next_bitfield() or
5367         encode_gnu_bitfield() as needed.
5368         (synth_self_and_ucmd_args): New function.
5369         (start_method_def): Use it.
5370         (objc_types_are_equivalent): New function.
5371         (comp_proto_with_proto): Use it instead of comptypes(), since
5372         we need symmetry.
5373         (really_start_method): Use lookup_method_static() instead of
5374         lookup_class_method_static() and lookup_instance_method_static();
5375         Emit 'extern "C"' if in ObjC++ mode.
5376         (add_objc_decls): Removed.
5377         (UOBJC_SUPER_scope): New variable.
5378         (get_super_receiver): Move construction of 'super' from
5379         add_objc_decls(); remove dependency on struct objc_class.
5380         (encode_method_def): Removed; encode_method_prototype() is
5381         used instead.
5382         (objc_clear_super_receiver): New function.
5383         (objc_expand_function_end): Do not do anything for ordinary
5384         C functions.
5385         (finish_method_def): Mark ObjC methods as un-inlinable.
5386         (gen_declaration_1): Emit widths of bitfields.
5387         (finish_objc): Call generate_objc_image_info() if needed;
5388         use check_duplicates() when checking for selector duplicates.
5389         (generate_objc_image_info): New function.
5390         * objc/objc-act.h (add_instance_method, add_class_method,
5391         get_class_ivars): Remove prototypes.
5392         (objc_build_throw_stmt, objc_build_try_catch_finally_stmt,
5393         objc_build_synchronized_prologue, objc_build_synchronized_epilogue,
5394         objc_build_catch_stmt, objc_build_catch_epilogue,
5395         objc_build_finally_prologue, objc_build_finally_epilogue,
5396         add_method, get_class_ivars_from_name): New prototypes.
5397         (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): New.
5398         (TYPE_PROTOCOL_LIST): Robustify to distinguish from
5399         TRANSLATION_UNIT_DECLs.
5400         (OBJC_TYPE_NAME): New.
5401         (objc_tree_code): Ensure that either <c-tree.h> or <cp/cp-tree.h>
5402         got included.
5403         (IS_SUPER): Robustify.
5404         (umsg_stret_decl, umsg_super_stret_decl, umsg_nonnil_decl,
5405         umsg_nonnil_stret_decl, objc_storage_class, objc_exception_extract_decl,
5406         objc_exception_try_enter_decl, objc_exception_try_exit_decl,
5407         objc_exception_match_decl, objc_exception_throw_decl,
5408         objc_sync_enter_decl, objc_sync_exit_decl, objc_exception_data_template,
5409         objc_setjmp_decl, objc_stack_exception_data, objc_caught_exception,
5410         objc_rethrow_exception, objc_eval_once, objc_exception_block_stack,
5411         objc_catch_type): New ObjC/ObjC++ roots.
5412         * objc/objc-tree.def (MESSAGE_SEND_EXPR, CLASS_REFERENCE_EXPR): New
5413         ObjC/ObjC++ tree node codes.
5414
5415 2003-09-24  Alexandre Oliva  <aoliva@redhat.com>
5416
5417         * cpplib.c (do_pragma): Reintroduce cb_line_change call in the
5418         code path that calls a handler.
5419
5420 2003-09-24  Nathanael Nerode  <neroden@gcc.gnu.org>
5421
5422         * config.gcc (c4x-*, tic4x-*, d30v-*, mmix-knuth-mmixware):
5423         Disable fixproto.
5424
5425         * config.gcc: Clean up and reindent $with_cpu=yes|no clause and
5426         the section giving $with_cpu defaults by target.
5427
5428         * config.gcc (arm-*-coff*, armel-*-coff*, arm*-*-ecos-elf,
5429         arm*-*-elf, ep9312-*-elf, arm*-wince-pe*, arm*-*-pe*, arm*-*-pe*,
5430         rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*,
5431         rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*,
5432         rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*,
5433         i[34567]86-pc-msdosdjgpp*): Disable fixproto.
5434
5435 2003-09-24  David Edelsohn  <edelsohn@gnu.org>
5436
5437         * config/rs6000/rs6000.md (movti_power): Collapse case 1 and 2
5438         together.  Protect load string instruction with TARGET_STRING.
5439         (movti_string): Collapse case 1 and 2 together.
5440
5441 2003-09-24  Nathan Sidwell  <nathan@codesourcery.com>
5442
5443         * c-common.c (c_common_type_for_mode): Check for VOIDmode.
5444
5445 2003-09-24  Richard Earnshaw  <rearnsha@arm.com>
5446
5447         * arm.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Wrap in
5448         do...while(0)
5449
5450 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
5451
5452         * config.gcc: Move use_fixproto=no from generic vxworks clause to
5453         specific one.
5454
5455         * config.gcc (powerpc-*-gnu-gnualtivec*): Disable fixproto
5456         (accidentally missed in last pass).
5457
5458 2003-09-23  Andrew Pinski  <apinski@apple.com>
5459
5460         PR bootstrap/12383
5461         * configure: Regenerate.
5462
5463 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
5464
5465         * config.gcc (x86_64-*-freebsd*): Disable fixproto (accidentally
5466         missed in last pass).
5467
5468 2003-09-23  Alexandre Oliva  <aoliva@redhat.com>
5469
5470         * config/mn10300/mn10300.md (andsi3): Fix cut&pasto in 0xfffffffe
5471         constant.
5472
5473 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
5474
5475         * config.gcc: Move vax-*-vms* unsupported notice up with the rest.
5476
5477         * config.gcc (alpha64*-dec-*vms*, alpha*-dec-*vms*,
5478         powerpc-*-eabisim*, powerpc-*-eabi*, powerpcle-*-eabisim*,
5479         powerpcle-*-eabi*): Disable fixproto.
5480
5481         * config.gcc: Move use_fixproto=no from generic FreeBSD clause to
5482         specific FreeBSD clauses.
5483         * config.gcc: Move use_fixproto=no from generic NetBSD clause to
5484         specific NetBSD clauses.
5485         * config.gcc: Move use_fixproto=no from generic OpenBSD clause
5486         to specific OpenBSD clauses.
5487
5488 2003-09-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5489
5490         * pa.c (hppa_expand_prologue): Do pic register save in frame marker
5491         without adding a frame note.
5492         * pa.md (allocate_stack): Save pic register in new frame marker when
5493         generating pic code.
5494
5495 2003-09-23  Kelley Cook  <kelleycook@wideopenwest.com>
5496
5497         * cgraphunit.c (cgraph_expand_all_functions): Renamed from
5498         cgraph_expand_functions.
5499
5500 2003-09-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5501
5502         * Makefile.in (gnucompare*): Merge into ...
5503         (slowcompare*): ... here.
5504         (fastcompare*): New targets.
5505         * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): Add checks for
5506         other "fast" cmp programs.
5507         * configure: Regenerate.
5508
5509 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5510
5511         * targhooks.c: Include output.h.
5512         * Makefile.in (targhooks.o): Add output.h to dependency list.
5513
5514 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5515
5516         * config.host: Removed superfluous newline.
5517
5518 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
5519
5520         * config.gcc: Use ${target}, not $machine.
5521         * configure.in: Don't set $machine.
5522         * configure: Regenerate.
5523
5524 2003-09-23  Geoffrey Keating  <geoffk@apple.com>
5525
5526         * config/t-darwin (crt2.o): Add stmp-int-hdrs to dependencies.
5527
5528         * config/rs6000/rs6000.c (function_arg_pass_by_reference): Don't
5529         pass zero-size arrays by reference.
5530         (rs6000_va_arg): Likewise.
5531
5532 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
5533
5534         * config.gcc: Set use_fixproto=no in each specific *-gnu*
5535         configuration, rather than the generic one.
5536
5537 2003-09-23  Richard Henderson  <rth@redhat.com>
5538
5539         * tree-inline.c (remap_save_expr): Map new save_expr to identity
5540         rather than to error_mark_node.
5541
5542 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5543
5544         * configure.in (HAVE_GAS_SHF_MERGE): Always define to test result.
5545         Update description.
5546         * configure: Regenerate.
5547         * config.in: Likewise.
5548         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test for
5549         HAVE_GAS_SHF_MERGE value.
5550         * varasm.c (mergeable_string_section): Likewise.
5551         (mergeable_constant_section): Likewise.
5552
5553 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5554
5555         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
5556         value.
5557
5558 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5559
5560         * target.h (struct gcc_target): New member external_libcall.
5561         * target-def.h (TARGET_ASM_EXTERNAL_LIBCALL): Provide default.
5562         (TARGET_ASM_OUT): Use it.
5563         * doc/tm.texi (TARGET_ASM_EXTERNAL_LIBCALL): Document.
5564         * targhooks.c: Convert to ISO C 90.
5565         (default_external_libcall): New function.
5566         * targhooks.h (default_external_libcall): Declare.
5567         * varasm.c (assemble_external_libcall): Use
5568         targetm.asm_out.external_libcall instead of
5569         ASM_OUTPUT_EXTERNAL_LIBCALL.
5570         * config/mips/mips-protos.h [TARGET_IRIX5 || TARGET_IRIX 6]
5571         (mips_output_external_libcall): Declare.
5572         * config/mips/mips.c (mips_output_external_libcall): Change
5573         definition guard.
5574         Change to match TARGET_ASM_EXTERNAL_LIBCALL.
5575         Only operate for O32 ABI.
5576         * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Define
5577         instead of ASM_OUTPUT_EXTERNAL_LIBCALL.
5578         * config/mips/iris6.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Don't undef,
5579         superceded by TARGET_ASM_EXTERNAL_LIBCALL.
5580
5581 2003-09-22  Nathnael Nerode  <neroden@gcc.gnu.org>
5582
5583         * config.gcc: Do per-target disabling of fixproto here in clauses,
5584         not in t- fragments.
5585         * configure.in: Adjust to set STMP_FIXPROTO correctly.
5586         * configure: Regenerate.
5587         * config/arm/t-semi, config/cris/t-cris, config/i386/t-beos,
5588         config/i386/t-cygming, config/i386/t-nto, config/ia64/t-hpux,
5589         t-freebsd, t-linux, t-netbsd, t-openbsd, t-rtems, t-vxworks,
5590         xtensa/t-xtensa: Remove setting of STMP_FIXPROTO.
5591         * config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd,
5592         t-interix, t-linux-aout:  Delete files consisting only of
5593         setting of STMP_FIXPROTO.
5594
5595         * config.host: Allow unknown hosts (not targets).  Allow
5596         ns32k-*-netbsdelf* as a host (not a target).  Remove redundant
5597         empty clauses.  Remove useless obsolete-configuration clause.
5598         Prune unsupported configuration list.  Collapse identical
5599         clauses for closely related systems.  Rewrite comment for
5600         unsupported hosts list.  Reorganize a little.
5601
5602 2003-09-22  Richard Henderson  <rth@redhat.com>
5603
5604         * c-common.c (c_common_signed_or_unsigned_type): Examine mode,
5605         not precision.
5606
5607 2003-09-22  David Edelsohn  <edelsohn@gnu.org>
5608             Hartmut Penner  <hpenner@de.ibm.com>
5609             Segher Boessenkool  <boessen@de.ibm.com>
5610
5611         * config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ...
5612         (gpr_or_gpr_p): Test INT_REGNO_P and convert to boolean.
5613         (rs6000_split_altivec_in_gprs): Rename to ...
5614         (rs6000_split_multireg_move): Add support for update addressing.
5615         * config/rs6000/rs6000-protos.h: Same.
5616         * config/rs6000/altivec.md: Same.
5617         * config/rs6000/rs6000.md (movdi_internal32): Use new splitter for
5618         multiple GPRs.
5619         (movti): Remove TARGET_STRING || TARGET_POWERPC64 final condition.
5620         (movti_power): Use new splitter for multiple GPRs.
5621         (movti_string): Same.
5622         (movti_ppc64): Same.
5623
5624 2003-09-22  Bob Wilson  <bob.wilson@acm.org>
5625
5626         * config/xtensa/xtensa-protos.h: Convert to ISO C90.
5627         * config/xtensa/xtensa.c: Convert to ISO C90.  Minor formatting fixes.
5628
5629 2003-09-22  Alexandre Oliva  <aoliva@redhat.com>
5630
5631         * config/mn10300/mn10300.md: Revert 2003-09-17's patch.
5632         (andsi3): Set attr cc to set_zn when using shifts or adds.
5633
5634 2003-09-22  Bernardo Innocenti <bernie@develer.com>
5635
5636         * doc/contrib.texi: Add Peter Barada, Paul Dale and myself.
5637
5638 2003-09-22  Bernardo Innocenti  <bernie@develer.com>
5639
5640         * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, RETURN_POPS_ARGS):
5641         Resurrect -mrtd option.
5642
5643 2003-09-21  Andrew Pinski  <pinskia@physics.uc.edu>
5644
5645         PR target/12281
5646         * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Call
5647         mark_referenced instead of setting TREE_SYMBOL_REFERENCED.
5648
5649 2003-09-22  Olivier Hainque  <hainque@act-europe.fr>
5650
5651         PR target/9786
5652         * reg-stack.c (convert_regs_1): Purge possible dead eh edges
5653         after potential deletion of trapping insn. Avoids later ICE
5654         from call to fixup_abnormal_edges.
5655         (convert_regs_2): Stack the current block successors before
5656         processing this block, that is, before the potential deletion of
5657         dead edges by convert_regs_1, because these edges have been used
5658         to initialize the predecessors count.
5659
5660 2003-09-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
5661
5662         * real.c: Fix several nits in the head comment.
5663
5664 2003-09-21  Richard Henderson  <rth@redhat.com>
5665
5666         * tree.h c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
5667         diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
5668         print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
5669         tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
5670         config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Revert.
5671
5672 2003-09-21  Richard Henderson  <rth@redhat.com>
5673
5674         * tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
5675         (TREE_FILENAME, TREE_LINENO): Likewise.
5676         (set_tree_locus, copy_tree_locus, set_tree_file_line): New.
5677         (TREE_LOCUS_SET_P): New.
5678         * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
5679         diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
5680         print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
5681         tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
5682         config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.
5683
5684 2003-09-21  Nathanael Nerode  <neroden@gcc.gnu.org>
5685
5686         * config/vax/vax-protos.h: Convert to ISO C90.
5687         * config/vax/vax.c: Convert to ISO C90.
5688
5689 2003-09-21  Graham Stott  <grahams@btinternet.com>
5690
5691        PR target/12353
5692        * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint.
5693
5694 2003-09-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
5695
5696         PR target/12301
5697         * reorg.c (stop_search_p): Return 1 for insns that can
5698         throw internally.
5699
5700 2003-09-20  Richard Henderson  <rth@redhat.com>
5701
5702         * c-format.c (gcc_diag_char_table): Add %J.
5703         (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
5704         (check_format_types): Fix wanted_type name lookup.
5705         (init_dynamic_diag_info): Setup %J.
5706         * diagnostic.c (text_specifies_location): Implement %J.
5707         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
5708         dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
5709         tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
5710         config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
5711         config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
5712
5713         * tree-inline.c: Include intl.h
5714         (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
5715         * Makefile.in (tree-inline.o): Update.
5716
5717 2003-09-20  Roger Sayle  <roger@eyesopen.com>
5718
5719         * config/i386/i386.c (ix86_expand_carry_flag_compare): Fix
5720         transformation of a>=0 into (unsigned)a<0x80000000.
5721
5722 2003-09-20  Andrew Pinski <apinski@apple.com>
5723
5724         * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.
5725
5726 2003-09-20  Nathanael Nerode  <neroden@gcc.gnu.org>
5727
5728         * Makefile.in: Don't set (unused) DLLTOOL.
5729
5730         * config/arm/t-linux, config/arm/t-netbsd, config/arm-t-semi:
5731         Remove obsolete references to ENQUIRE.
5732
5733 2003-09-19  Nathanael Nerode  <neroden@gcc.gnu.org>
5734
5735         * configure.in: Remove --with-elf, which doesn't work.
5736         * configure: Regenerate.
5737         * config.gcc: Remove references to $elf, which does nothing.
5738
5739         * config/i386/xm-vsta.h: Remove xm-file believed useless.
5740         * config.build (i386-vsta): Remove reference to it.
5741         * config.host (i386-vsta): Remove reference to it.
5742
5743 2003-09-19  Phil Edwards  <phil@codesourcery.com>
5744
5745         * doc/install.texi:  Document the multiple testsuite options.
5746
5747 2003-09-19  Gerald Pfeifer  <gerald@pfeifer.com>
5748
5749         * doc/install.texi (Specific): Add the specific versions of GCC
5750         where support for FreeBSD 1, HP-UX version 9 and older, and AIX
5751         version 3 and older was discontinued.
5752
5753 2003-09-19      Joel Sherrill <joel@oarcorp.com>
5754
5755         * config/m68k/t-m68kbare, config/m68k/t-rtems: Change 68681 to
5756         68881.
5757
5758 2003-09-19  Bernardo Innocenti  <bernie@develer.com>
5759
5760         * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Add predefines
5761         for -m68030, -m68020-60 and -m68020-40.
5762         * config/m68k/m68k.h (TARGET_68030): New target flag.
5763         * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, MASK_REGPARM,
5764         TARGET_REGPARM): Remove.
5765         * config/m68k/m68k.h: Regroup and renumber target flags.
5766         * config/m68k/m68k.h (TARGET_SWITCHES): Fix some tabulations.
5767         * config/m68k/m68k.h (RETURN_POPS_ARGS): Always evaluate to 0.
5768         * config/m68k/m68k.h (FUNCTION_ARG): Likewise.
5769         * config/m68k/m68k.h (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
5770         * config/m68k/m68k-none.h: Use MASK_xxx values in M68K_CPU_xxx macros.
5771
5772 2003-09-19  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
5773
5774         * config/m68k/t-rtems (m68k-*-rtems*): New.
5775         * config.gcc: Use config/m68k/t-rtems.
5776
5777 2003-09-19  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
5778
5779         * config/mips/t-rtems: New.
5780         * config.gcc (mips*-*-rtems*): Use config/mips/t-rtems.
5781
5782 2003-09-19  Kelley Cook  <kelleycook@wideopenwest.com>
5783
5784         * cgraph.c: Fix typo in debugging output.
5785
5786 2003-09-19  T. Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
5787             Eric Botcazou <ebotcazou@libertysurf.fr>
5788
5789         PR target/12166
5790         * config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1.
5791
5792 2003-09-18  Mike Stump  <mrs@apple.com>
5793
5794         * c-ppoutput.c (print):  Use fileline typedef for field 'line'.
5795         (print_line, maybe_print_line, cb_define, cb_undef, cb_include,
5796         cb_ident, cb_def_pragma):  Use fileline typedef.
5797         * cpphash.h (struct cpp_reader):  Likewise for field out.first_line.
5798
5799 2003-09-18  Danny Smith  <dannysmith@users.sourceforge.net>
5800
5801         * config/i386/winnt.c (gen_stdcall_suffix): Quit summation of
5802         total parm size if a parm has incomplete type.
5803         (gen_fastcall_suffix): Likewise.
5804
5805 2003-09-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5806
5807         * except.c (output_function_exception_table): Adjust last change
5808         to handle TYPE of INTEGER_CST.
5809
5810 2003-09-18  Mark Mitchell  <mark@codesourcery.com>
5811
5812         PR target/11184
5813         * builtins.c (expand_builtin_apply): Use convert_memory_address
5814         before returning the value.
5815
5816         * alias.c (find_base_value): Simplify use of
5817         convert_memory_address.
5818         (find_base_term): Likewise.
5819         * builtins.c (expand_builtin_stejmp_setup): Likewise.
5820         (expand_builtin_longjmp): Likewise.
5821         (expand_builtin_prefetch): Likewise.
5822         (get_memory_rtx): Likewise.
5823         (expand_builtin_return): Likewise.
5824         (expand_builtin_memcpy): Likewise.
5825         (expand_builtin_strncpy): Likewise.
5826         (expand_builtin_memset): Likewise.
5827         (expand_builtin_va_arg): Likewise.
5828         (expand_builtin_va_copy): Likewise.
5829         (expand_builtin_alloca): Likewise.
5830         * calls.c (expand_call): Likewise.
5831         * except.c (expand_builtin_extract_return_addr): Likewise.
5832         (expand_builtin_eh_return): Likewise.
5833         * explow.c (convert_memory_address): Define even when
5834         POINTER_EXTEND_UNSIGNED is not defined.  Do nothing if the address
5835         is already in the right mode.
5836         * explow.c (memory_address): Simplify use of convert_memory_address.
5837         (probe_stack_range): Likewise.
5838         * expmed.c (make_tree): Likewise.
5839         * expr.c (emit_block_move_in_libcall): Likewise.
5840         (expand_assignment): Likewise.
5841         (expand_expr): Likewise.
5842         * function.c (assign_parms): Likewise.
5843         (expand_function_end): Likewise.
5844         * integrate.c (copy_rtx_and_substitute): Likewise.
5845         * stmt.c (expand_computed_goto): Likewise.
5846
5847 2003-09-18  Roger Sayle  <roger@eyesopen.com>
5848
5849         * simplify-rtx.c (simplify_unary_operation): Only transform
5850         (not (eq X Y)) into (ne X Y) when mode is BImode or STORE_FLAG_VALUE
5851         is -1.  RTL "not" is a bit-wise not, "~", not a logical not "!".
5852
5853 2003-09-18  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5854
5855         PR target/11674
5856         * config/i386/i386.c (x86_emit_floatuns): Also handle SImode operand.
5857
5858 2003-09-18  Roger Sayle  <roger@eyesopen.com>
5859
5860         * tree.def (FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR,
5861         PARITY_EXPR): Delete unused tree codes.
5862         * c-common.c (c_common_truthvalue_conversion): Delete references
5863         to FFS_EXPR and POPCOUNT_EXPR.
5864         * c-pretty-print.c (pp_c_postfix_expression): Remove FFS_EXPR.
5865         (pp_c_expression): Likewise.
5866         * expr.c (expand_expr): Delete RTL expansion of FFS_EXPR, CLZ_EXPR,
5867         CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.
5868         * fold-const.c (tree_expr_nonnegative_p): Remove FFS_EXPR, CLZ_EXPR,
5869         CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.  Add support for calls to
5870         BUILT_IN_FFS, BUILT_IN_PARITY and BUILT_IN_POPCOUNT and their long
5871         and long long variants.
5872
5873 2003-09-18  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5874
5875         * c-pretty-print.h (pp_type_specifier_seq): Fix thinko.
5876         * c-pretty-print.c: Fix formatting.
5877         (pp_c_integer_constant): Append type annotation to literals.  Tidy.
5878         (pp_c_type_specifier): Tidy.
5879         (pp_c_compound_literal): New function.
5880         (pp_c_initializer): Simplify..
5881         (pp_c_initializer_list): Likewise.
5882         (pp_c_brace_enclosed_initializer_list): New function.
5883         (pp_c_postfix_expression): Simplify.
5884
5885 2003-09-17  Alexandre Oliva  <aoliva@redhat.com>
5886
5887         * config/mn10300/mn10300.md (andsi3, iorsi3, xorsi3,
5888         one_complsi2, bit-clear, bit-set, iorqi3): Make them set_zn.
5889
5890 2003-09-17  Richard Henderson  <rth@redhat.com>
5891
5892         * tree-optimize.c (tree_rest_of_compilation): Save and restore
5893         input_location.
5894
5895 2003-09-17  Daniel Jacobowitz  <drow@mvista.com>
5896
5897         * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Give -lpthread before -lc.
5898
5899 2003-09-17  Richard Henderson  <rth@redhat.com>
5900
5901         * cfg.c (dump_flow_info): Skip register dump if reg_n_info null.
5902
5903 2003-09-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5904
5905         * configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag.
5906         * configure: Regenerate.
5907
5908 2003-09-17  Mark Mitchell  <mark@codesourcery.com>
5909
5910         PR debug/12066
5911         * dbxout.c (dbxout_init): Use a langhook to find builtin types.
5912         * langhooks-def.h (lhd_return_null_tree_v): New function.
5913         (LANG_HOOKS_BUILTIN_TYPE_DECLS): New macro.
5914         (LANG_HOOKS_DECLS): Add it to the intializer.
5915         * langhooks.c (lhd_return_null_tree_v): New function.
5916         * langhooks.h (lang_hooks_for_decls): Add builtin_type_decls.
5917
5918 2003-09-17  Daniel Jacobowitz  <drow@mvista.com>
5919
5920         * configure.in: Quote gcc_config_arguments for configargs.h.
5921         * configure: Regenerated.
5922         * gccbug.in: Don't shell-expand gcc_config_arguments.
5923
5924 2003-09-17  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5925
5926         PR c++/11357
5927         * c-pretty-print.c (pp_c_floating_constant): Append
5928         type-annotation to floating constants.
5929
5930 2003-09-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5931
5932         * config/mips/iris5.h (TARGET_OS_CPP_BUILTINS): Define _LONGLONG.
5933         Define _ABIO32.
5934         Use it for _MIPS_SIM.
5935         * config/mips/iris6-o32.h (TARGET_OS_CPP_BUILTINS): Removed.
5936
5937         * config/mips/iris6-o32-as.h (SUBTARGET_ASM_OPTIMIZING_SPEC):
5938         Moved ...
5939         * config/mips/iris5.h (SUBTARGET_ASM_OPTIMIZING_SPEC): ... here,
5940         updating comment.
5941         Fixes PR target/10190.
5942
5943 2003-09-17  Daniel Jacobowitz  <drow@mvista.com>
5944
5945         * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Make -pthread apply
5946         to shared libraries.
5947
5948 2003-09-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
5949
5950         PR optimization/11646
5951         * cfgrtl.c (purge_dead_edges) [JUMP_INSN]: Rematerialize the
5952         EDGE_ABNORMAL flag for EH edges.
5953         * toplev.c (rest_of_handle_cse): Delete unreachable blocks
5954         if dead edges were purged.
5955
5956 2003-09-16  Bernardo Innocenti  <bernie@develer.com>
5957
5958         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines.
5959         * config/m68k/m68k-none.h (CPP_CPU_DEFAULT_SPEC): Kill all definitions.
5960         * config/m68k/m68k-none.h (CPP_FPU_SPEC): Remove.
5961         * config/m68k/m68k-none.h (CPP_SPEC): Likewise.
5962
5963 2003-09-16  Ian Lance Taylor  <ian@wasabisystems.com>
5964
5965         * cfgcleanup.c (label_is_jump_target_p): Correct use of table
5966         returned by tablejump_p.
5967
5968 2003-09-16  Joel Brobecker  <brobecker@gnat.com>
5969
5970         * dwarf2asm.c (dw2_asm_output_nstring): Add comment.
5971
5972 2003-09-16  Roger Sayle  <roger@eyesopen.com>
5973
5974         PR bootstrap/12269
5975         * simplify-rtx.c (simplify_gen_relational): Allow the cmp_mode
5976         argument to be VOIDmode, taking the mode of the comparison from
5977         the operands.  Only call simplify_relational_operation if we
5978         know the mode of the comparison.  Honor FLOAT_STORE_FLAG_VALUE
5979         if comparison has a floating point result.  Ensure that the
5980         result is always of the specified mode.
5981         (simplify_replace_rtx): Simplify call to simplify_gen_relational.
5982         (simplify_unary_operation): Ensure the correct mode and cmp_mode
5983         are always passed to simplify_gen_relational.  Simplify NOT of
5984         comparison operator in any mode, not just BImode.
5985         (simplify_ternary_operation): Correct tests on the return value
5986         of simplify_relational_operation to use const_true_rtx, not
5987         const1_rtx.  Abort if it ever returns a non-constant result.
5988
5989         * cfgloopanal.c (count_strange_loop_iterations): Use the function
5990         simplify_relational_operation, not simplify_gen_relational, if
5991         we're only interested in constant comparisons and will ignore
5992         non-constant results.
5993
5994 2003-09-16  Roger Sayle  <roger@eyesopen.com>
5995
5996         * fold-const.c (tree_swap_operands_p): New function to determine
5997         the prefered ordering of operands.
5998         (fold): Numerous clean-ups.  Use tree_swap_operands_p when swapping
5999         operands to commutative, comparison or ternary operators.  Replace
6000         uses of TREE_SET_CODE with recursive call to fold.  Remove duplicate
6001         transformation of A ? B : C into !A ? C : B.
6002
6003 2003-09-16  Jakub Jelinek  <jakub@redhat.com>
6004
6005         * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6006         * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6007         * config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6008         * config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6009         * config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6010         * config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6011         * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6012         * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6013
6014 2003-09-16  Jason Merrill  <jason@redhat.com>
6015             Jakub Jelinek  <jakub@redhat.com>
6016
6017         * c-common.c (handle_warn_unused_result_attribute): New function.
6018         (c_common_attribute_table): Add warn_unused_result.
6019         (c_expand_expr): Issue warning when result of inlined function
6020         with warn_unused_result attribute is ignored.
6021         * calls.c (expand_call): Issue warning when result of function
6022         with warn_unused_result attribute is ignored.
6023         * c-common.h (STMT_EXPR_WARN_UNUSED_RESULT): Define.
6024         * expr.c (expr_wfl_stack): Define.
6025         (expand_expr) <case EXPR_WITH_FILE_LOCATION>: If ignore,
6026         pass const0_rtx as target.  Chain locations into expr_wfl_stack.
6027         * tree-inline.c (expand_call_inline): Set STMT_EXPR_WARN_UNUSED_RESULT
6028         bit if inlined function has warn_unused_result attribute.
6029         * input.h (expr_wfl_stack): Declare.
6030         * doc/extend.texi: Document warn_unused_result attribute.
6031
6032 2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
6033
6034         * cpplib.c (do_pragma): Remove unnecessary cb_line_change.
6035
6036 2003-09-15  Bob Wilson  <bob.wilson@acm.org>
6037
6038         * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Add
6039         ATTRIBUTE_UNUSED.
6040         (call_insn_operand): For PIC, don't allow a direct call to a
6041         function in a different section than the current one.
6042
6043 2003-09-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6044
6045         * doc/invoke.texi (Warning Options): Add missing hyphen before
6046         "Wimport".  Change "-Wno-endif-labels" to "-Wendif-labels".
6047         Move "-Wold-style-definition" to the C-only section.
6048         Fix the ordering of the warning options.
6049
6050 2003-09-15  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6051             Jeff Law  <law@redhat.com>
6052
6053         * gcse.c (remove_reachable_equiv_notes): New.
6054         replace_store_insn): Call it.  Update antic list.
6055         (store_killed_in_insn): Take REG_EQUAL notes into account.
6056         (build_store_vectors, delete_store): Add parameter to
6057         replace_store_insn call.
6058
6059 2003-09-15  Bob Wilson  <bob.wilson@acm.org>
6060
6061         * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use
6062         SYMBOL_REF_LOCAL_P.
6063
6064 2003-09-15  Kazu Hirata  <kazu@cs.umass.edu>
6065
6066         * expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
6067         (FUNCTION_ARG_PADDING): Use DEFAULT_FUNCTION_ARG_PADDING.
6068         * config/ia64/ia64.c (ia64_hpux_function_arg_padding):
6069         Likewise.
6070         * config/m68hc11/m68hc11.c (m68hc11_function_arg_padding):
6071         Likewise.
6072         * config/rs6000/rs6000.c (function_arg_padding): Likewise.
6073         * config/sparc/sparc.c (function_arg_padding): Likewise.
6074
6075 2003-09-15  Vladimir Makarov  <vmakarov@redhat.com>
6076
6077         * haifa-sched.c (schedule_block): Use ready_remove_first instead
6078         of choose_ready for non-dfa insn scheduling.
6079
6080 2003-09-15  Andreas Jaeger  <aj@suse.de>
6081             Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6082
6083         * doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
6084         * c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
6085         * c-parse.in: Warn about old-style parameter definition.
6086         * c-common.c: Define warn_old_style_defintion.
6087         * c-common.h: Declare it.
6088         * c.opt: Add Wold-style-defintion.
6089
6090 2003-09-15  Andreas Jaeger  <aj@suse.de>
6091
6092         * config/rs6000/altivec.h: Convert () prototypes to ISO C90.
6093         * config/rs6000/rs6000.c: Likewise.
6094
6095 2003-09-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6096
6097         PR optimization/10914
6098         * expr.h (get_condition, canonicalize_condition): Declaration changed.
6099         * cfgloopanal.c (simple_loop_exit_p): Add parameter to a get_condition
6100         and canonicalize_condition calls.
6101         * gcse.c (fis_get_condition, delete_null_pointer_checks_1,
6102         delete_null_pointer_checks): Ditto.
6103         * ifcvt.c (noce_get_alt_condition, noce_get_condition): Ditto.
6104         * predict.c (estimate_probability, expected_value_to_br_prob): Ditto.
6105         * loop.c (check_dbra_loop, get_condition_for_loop): Ditto.
6106         (canonicalize_condition, get_condition): Allow to return comparisons
6107         of cc mode registers.
6108         * loop-unswitch.c (may_unswitch_on_p, unswitch_single_loop): Allow
6109         cc mode registers comparison in condition.
6110
6111 2003-09-12  Mark Mitchell  <mark@codesourcery.com>
6112
6113         * coverage.c (create_coverage): Do not call pushlevel/poplevel.
6114         * langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
6115         function.
6116         * langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.
6117
6118 2003-09-14  Kazu Hirata  <kazu@cs.umass.edu>
6119
6120         * combine.c (simplify_comparison): Convert
6121         (ne (and (lshiftrt (xor X CST) Y) 1) 0) into
6122         (eq (and (lshiftrt X Y) 1) 0).
6123
6124 2003-09-14  Kazu Hirata  <kazu@cs.umass.edu>
6125
6126         * alias.c: Follow spelling conventions.
6127         * cpphash.h: Likewise.
6128         * fold-const.c: Likewise.
6129
6130 2003-09-14  Alexandre Oliva  <aoliva@redhat.com>
6131
6132         * c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
6133         * c-lex.c (cb_line_change): Skip line changing whenever
6134         c-ppoutput.c would.
6135
6136 2003-09-14  Steven Bosscher  <steven@gcc.gnu.org>
6137
6138         * ra.c: Convert to ISO C90 prototypes.
6139         * ra-build.c: Likewise.
6140         * ra-colorize.c: Likewise.
6141         * ra-debug.c: Likewise.
6142         * ra-rewrite.c: Likewise.
6143
6144 2003-09-14  Richard Sandiford  <rsandifo@redhat.com>
6145
6146         * Makefile.in (%.dvi): Remove excess $(docdir).
6147
6148 2003-09-14  Richard Sandiford  <rsandifo@redhat.com>
6149
6150         * function.c (STACK_BYTES): Move definition to head of file.
6151         (assign_parms): Don't pass current_function_pretend_args_size
6152         directly to SETUP_INCOMING_VARARGS.  For partial register arguments,
6153         round current_function_pretend_args_size up to STACK_BYTES.  Skip any
6154         excess before laying out the argument.
6155
6156 2003-09-14  Andreas Jaeger  <aj@suse.de>
6157
6158         * objc/objc-act.c: Convert to ISO C90 prototypes.
6159         * objc/objc-act.h: Likewise.
6160
6161 2003-09-14  Olaf Hering  <olh@suse.de>
6162
6163         * config/rs6000/rs6000.c: Fix typo: Remove extra ')'.
6164
6165 2003-09-13  Andrew Pinski <pinskia@physics.uc.edu>
6166
6167         PR target/12021
6168         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Remove the asserts
6169         as they already are done in config/m68k/m68k.h.
6170         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Likewise
6171
6172         * config/rs6000/rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
6173         (machopic_output_stub): Only generate pic base symbols when using pic
6174         and generate them in the form L00000000$spb.
6175
6176 2003-09-13  Richard Henderson  <rth@redhat.com>
6177
6178         * cgraphunit.c (cgraph_assemble_pending_functions): Export.
6179         (cgraph_finalize_function): Revert TREE_ASM_WRITTEN check.
6180         * cgraph.h: Update.
6181
6182 2003-09-12  Dale Johannesen  <dalej@apple.com>
6183
6184         * config/rs6000/rs6000.c: Fix typos in previous.
6185
6186 2003-09-12  Ziemowit Laski  <zlaski@apple.com>
6187
6188         * pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
6189         when allocating pp->buffer.
6190
6191 2003-09-12  Geoffrey Keating  <geoffk@apple.com>
6192
6193         * config/darwin.c (machopic_select_rtx_section): Use
6194         const_data_section for things that might require relocation.
6195
6196 2003-09-12  H.J. Lu  <hongjiu.lu@intel.com>
6197
6198         PR bootstrap/12264
6199         * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
6200
6201 2003-09-12  Bob Wilson  <bob.wilson@acm.org>
6202
6203         * config/xtensa/elf.h (ASM_SPEC): Remove no-density option.  Reformat.
6204         * config/xtensa/linux.h (ASM_SPEC): Likewise.
6205         * config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian,
6206         -mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16,
6207         -m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext,
6208         -m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div,
6209         -m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and
6210         -m[no-]hard-float-rsqrt options.  Delete corresponding MASK_* macros
6211         and redefine corresponding TARGET_* macros with constants from the
6212         xtensa-config.h header.
6213         * doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
6214         for the options listed above.
6215
6216 2003-09-12  Dale Johannesen  <dalej@apple.com>
6217
6218         * config/rs6000/rs6000-protos.h:  Use C90 prototypes.
6219         * config/rs6000/rs6000-c.c:  Ditto.
6220         * config/rs6000/rs6000.c:  Ditto.
6221         * config/rs6000/ sysv4.h:  Ditto.
6222
6223 2003-09-12  Chris Lattner <sabre@nondot.org>
6224
6225         * loop.c: Move comments describing BIV's and GIV's to top of file
6226
6227 2003-09-12  Roger Sayle  <roger@eyesopen.com>
6228
6229         PR optimization/8967
6230         * alias.c (write_dependence_p): Modify to take an additional constp
6231         argument that controls whether the UNCHANGING_RTX_P flags are used.
6232         (anti_dependence, output_dependence): Adjust write_dependence_p
6233         callers to pass this additional argument, to return the same result.
6234         (unchanging_anti_dependence): New variant of anti_dependence that
6235         ignores the UNCHANGING_RTX_P property on memory references.
6236         * rtl.h (unchaning_anti_dependence): Prototype here.
6237         * flow.c (init_propagate_block): Place fake constant mem writes on
6238         the mem_set_list so that dead writes to const variables are deleted.
6239         (insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
6240         (mark_used_regs): Likewise.
6241
6242 2003-09-12  Richard Sandiford  <rsandifo@redhat.com>
6243
6244         * config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
6245         (mcore_secondary_reload_class): Declare.
6246         (mcore_output_inline_const_forced): Remove.
6247         * config/mcore/mcore.md (movsi): Remove the code that forced
6248         non-inlineable constants into a register if the target was r15
6249         or the stack pointer.  Remove constant restrictions from the main
6250         define_insn.  Remove r <- I, r <- M and r <- N alternatives in favor
6251         of an r <- P alternative.  Remove fallback define_insn for reload.
6252         (movhi, movqi): Use gen_lowpart rather than gen_SUBREG.  Remove reload
6253         define_insn.  Use mcore_output_move in the remaining define_insn.
6254         Adjust condition and constraints in the way as for movsi.
6255         (movdi): Always split unacceptable constants into two.  Use
6256         simplify_gen_subreg instead of operand_subword{,_force}.
6257         * config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
6258         (mcore_output_move): Support HImode and QImode moves as well.
6259         (mcore_m15_operand_p): New function.
6260         (mcore_reload_class): Use it to detect cases where LRW_REGS are better.
6261         (mcore_secondary_reload_class): New function.
6262         * config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
6263         terms of mcore_secondary_reload_class.
6264
6265 2003-09-11  Mike Stump  <mrs@apple.com>
6266
6267         * c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
6268
6269 2003-09-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6270
6271         * builtins.c (fold_builtin_logarithm): if N can't be truncated to
6272         MODE exactly, then only convert logN(N) -> 1.0 if
6273         flag_unsafe_math_optimizations is set.
6274
6275         * builtins.c (builtin_dconsts_init, dconstpi, dconste,
6276         init_builtin_dconsts): Delete.
6277         * emit-rtl.c (dconstpi, dconste): Define.
6278         (init_emit_once): Initialize dconstpi & dconste.
6279         * real.h (dconstpi, dconste): Declare.
6280
6281 2003-09-11  Alexandre Oliva  <aoliva@redhat.com>
6282
6283         PR fortran/11522
6284         * dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function
6285         for ultimate origin even if block is abstract.
6286
6287 2003-09-11  Roger Sayle  <roger@eyesopen.com>
6288
6289         * combine.c (combine_simplify_rtx): Move several NOT and NEG
6290         optimizations from here...
6291         * simplify-rtx.c (simplify_unary_operation): to here.  Recursively
6292         simplify expressions using simplify_gen_*ary instead of gen_rtx_*.
6293
6294 2003-09-11  Richard Henderson  <rth@redhat.com>
6295
6296         * cgraphunit.c (cgraph_finalize_function): Add nested arg.
6297         Tweek tests for function already generated.
6298         (cgraph_expand_function): Don't double announce in !unit-at-a-time.
6299         * cgraph.h (cgraph_finalize_function): Update for extra arg.
6300         * c-decl.c (finish_function): Likewise.
6301
6302 2003-09-10  Joe Buck  <jbuck@welsh-buck.org>
6303
6304         * c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
6305
6306 2003-09-10  Jerry Quinn  <jlquinn@optonline.net>
6307
6308         * real.c: Update URL to VAX floating point docs.
6309         (decode_vax_d): Extract 8 exponent bits instead of 7.
6310
6311 2003-09-10  Ian Lance Taylor  <ian@wasabisystems.com>
6312
6313         * combine.c (force_to_mode): Set fuller_mask based only on mask,
6314         not op_mode.
6315
6316 2003-09-11  Jan Hubicka  <jh@suse.cz>
6317
6318         * c-objc-common.c (c_cannot_inline_tree_fn): Warn
6319         on why function is not inlinable; do not check
6320         the body.
6321         (inline_forbidden_p): Move to...
6322         * tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
6323         deal with alloca, longjmp.
6324         (inline_forbidden_p): New static function.
6325         (find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
6326         find_builtin_longjmp_call): Kill.
6327
6328 2003-09-10  Richard Henderson  <rth@redhat.com>
6329
6330         * cgraph.h (struct cgraph_node): Rename lowered to analyzed.
6331         * cgraphunit.c: Update to match.
6332         (record_call_1): Rearrange.  Call lang hook for language nodes.
6333         (cgraph_analyze_function): Don't call lower_function.
6334         * langhooks.h (struct lang_hooks_for_callgraph): Replace
6335         lower_function with analyze_expr.
6336         * langhooks-def.h: Update to match.
6337         * langhooks.c (lhd_callgraph_analyze_expr): New.
6338
6339 2003-09-10  Martin Husemann  <martin@duskware.de>
6340
6341         PR target/11965
6342         * config/sparc/sparc.c (sparc_v8plus_shift): Protect against
6343         constants greater than 63.
6344         * config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
6345         against constants greater than 31.
6346         (*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
6347         constants greater than 63.
6348
6349 2003-09-09  Richard Henderson  <rth@redhat.com>
6350
6351         * cgraphunit.c (cgraph_finalize_function): Remove unused argument.
6352         * cgraph.h (cgraph_finalize_function): Update.
6353         * c-decl.c (finish_function): Update.
6354
6355 2003-09-09  Devang Patel  <dpatel@apple.com>
6356
6357         * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
6358         * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
6359
6360 2003-09-09  Eric Christopher  <echristo@redhat.com>
6361
6362         * configure.in: Change usage of 'head' to 'sed 1q'.
6363         * configure: Regenerate.
6364
6365 2003-09-09  Richard Henderson  <rth@redhat.com>
6366
6367         * except.c: Include cgraph.h.
6368         (output_function_exception_table): Invoke
6369         cgraph_varpool_mark_needed_node.
6370         * Makefile.in (except.o): Update.
6371
6372 2003-09-07  Kelley Cook  <kelleycook@wideopenwest.com>
6373
6374         * Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS
6375         and use it throughout.
6376
6377 2003-09-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6378
6379         * builtins.c (real_dconstp, fold_builtin_logarithm,
6380         fold_builtin_exponent): New, split out from fold_builtin.  Also
6381         generalize to add log2, log10, exp2 and exp10/pow10 equivalents.
6382         * emit-rtl.c (dconst3, dconst10, dconstthird): New.
6383         (init_emit_once): Initialize new dconsts, use ARRAY_SIZE in lieu
6384         of hardcoded array size.
6385         * fold-const.c (fold): Add cases for exp2, exp10 and pow10.
6386         (tree_expr_nonnegative_p): Likewise.
6387         * real.h (dconst3, dconst10, dconstthird): New.
6388
6389 2003-09-09  Jan Hubicka  <jh@suse.cz>
6390
6391         * cgraphunit.c (cgraph_finalize_function): Fix handling of extern
6392         inline functions.
6393         (cgraph_finalize_compilation_unit): Fix crash when dealing with lost
6394         DECL_SAVED_TREE.
6395
6396 2003-09-09  Roger Sayle  <roger@eyesopen.com>
6397
6398         * builtins.c (fold_builtin_cabs): Protect the complex argument
6399         against multiple evaluation when optimizing cabs* into sqrt*.
6400
6401 2003-09-09  Jan Hubicka  <jh@suse.cz>
6402
6403         * varasm.c (notice_global_symbol):  Properly deal with weak symbols.
6404
6405 2003-09-08  Kelley Cook <kelleycook@wideopenwest.com>
6406
6407         * Makefile.in: Revert yesterday's change.
6408
6409 2003-09-08  Bernardo Innocenti  <bernie@develer.com>
6410             Peter Barada <peter@baradas.org>
6411
6412         * config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr'
6413         * config/m68k/hp320.h (REGISTER_NAMES): Likewise.
6414         * config/m68k/linux.h (REGISTER_NAMES): Likewise.
6415         * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
6416         * gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise.
6417         * config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype.
6418         * config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end.
6419         (m68k_compute_frame_layout): New function.
6420         (m68k_initial_elimination_offset): New function.
6421         (m68k_output_function_prologue): ColdFire-specific movem handling.
6422         (m68k_output_function_epilogue): Likewise.
6423         * config/m68k/m68k.h (FIRST_PSEOUDO_REGISTER): Make room for argptr reg.
6424         (ARG_POINTER_REGNUM): Add new definition.
6425         (INITIAL_FRAME_POINTER_OFFSET): Remove macro.
6426         (ELIMINABLE_REGS): Define new macro, like in ix86 back-end.
6427         (CAN_ELIMINATE): Likewise.
6428         (INITIAL_ELIMINATION_OFFSET): Likewise.
6429
6430 2003-09-08  Bernardo Innocenti  <bernie@develer.com>
6431
6432         * config/m68k/m68k.c (m68k_output_function_prologue): Simplify
6433         by removing redundant variable cfa_store_offset.
6434
6435 2003-09-08  Mark Mitchell  <mark@codesourcery.com>
6436
6437         * langhooks-def.h (lhd_register_builtin_type): New function.
6438         (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro.
6439         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6440         * langhooks.h (lang_hooks_for_types): Add register_builtin_type.
6441         * langhooks.c (lhd_register_builtin_type): New function.
6442         * c-common.h (c_register_builtin_type): Declare.
6443         * c-common.c (c_register_builtin_type): New function.
6444         * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to
6445         c_register_builtin_type.
6446         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg,
6447         __float80, and __float128 macros.
6448         * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg,
6449         __float80, and __float128 types.
6450
6451 2003-09-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6452
6453         * builtin-types.def
6454         (BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE,
6455         BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE_COMPLEX_DOUBLE,
6456         BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT_COMPLEX_FLOAT): New.
6457         * builtins.def (BUILT_IN_CACOS, BUILT_IN_CACOSF, BUILT_IN_CACOSH,
6458         BUILT_IN_CACOSHF, BUILT_IN_CACOSHL, BUILT_IN_CACOSL,
6459         BUILT_IN_CARG, BUILT_IN_CARGF, BUILT_IN_CARGL, BUILT_IN_CASIN,
6460         BUILT_IN_CASINF, BUILT_IN_CASINH, BUILT_IN_CASINHF,
6461         BUILT_IN_CASINHL, BUILT_IN_CASINL, BUILT_IN_CATAN,
6462         BUILT_IN_CATANF, BUILT_IN_CATANH, BUILT_IN_CATANHF,
6463         BUILT_IN_CATANHL, BUILT_IN_CATANL, BUILT_IN_CCOS, BUILT_IN_CCOSF,
6464         BUILT_IN_CCOSH, BUILT_IN_CCOSHF, BUILT_IN_CCOSHL, BUILT_IN_CCOSL,
6465         BUILT_IN_CEXP, BUILT_IN_CEXPF, BUILT_IN_CEXPL, BUILT_IN_CPOW,
6466         BUILT_IN_CPOWF, BUILT_IN_CPOWL, BUILT_IN_CPROJ, BUILT_IN_CPROJF,
6467         BUILT_IN_CPROJL, BUILT_IN_CSIN, BUILT_IN_CSINF, BUILT_IN_CSINH,
6468         BUILT_IN_CSINHF, BUILT_IN_CSINHL, BUILT_IN_CSINL, BUILT_IN_CSQRT,
6469         BUILT_IN_CSQRTF, BUILT_IN_CSQRTL, BUILT_IN_CTAN, BUILT_IN_CTANF,
6470         BUILT_IN_CTANH, BUILT_IN_CTANHF, BUILT_IN_CTANHL, BUILT_IN_CTANL):
6471         New.
6472         * doc/extend.texi: Document new builtins.
6473
6474 2003-09-09  Jan Hubicka  <jh@suse.cz>
6475
6476         * cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated
6477         finalization.
6478         * cgraphunit.c (decide_is_fnction_needed): Avoid special case of nested
6479         functions, check for COMDAT.
6480         (cgraph_assemble_pending_functions): Break out from...
6481         (cgraph_finalize_function): ... here; allow redefinig of extern inline
6482         functions.
6483         (record_call_1): Record function references only in non-unit-at-a-time
6484         mode.
6485         (cgraph_analyze_function): Reset current_function_decl.
6486         (cgraph_finalize_compilation_unit):  Assemble pending functions.
6487
6488 2003-09-08  Mark Mitchell  <mark@codesourcery.com>
6489
6490         * mklibgcc.in (libcc.a): Depend on stmp-dirs.
6491         (libgov.a): Likewise.
6492         (libgcc_eh.a): Likewise.
6493
6494 2003-09-08  Roger Sayle  <roger@eyesopen.com>
6495
6496         * fold-const.c (operand_equal_p): Clarify documentation.
6497
6498 2003-09-08  Richard Henderson  <rth@redhat.com>
6499
6500         * c-decl.c (c_expand_body_1): Push and pop function context here.
6501         * tree-optimize.c (tree_rest_of_compilation): ... not here.  Take
6502         nested argument instead of computing nesting ourselves.
6503
6504 2003-09-08  Jakub Jelinek  <jakub@redhat.com>
6505
6506         * toplev.c (rest_of_handle_stack_regs): Call split_all_insns before
6507         regstack if optimizing but not scheduling after reload.
6508
6509 2003-09-08  Jakub Jelinek  <jakub@redhat.com>
6510
6511         * config/sparc/sparc.c (struct machine_function): New type.
6512         (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
6513         (sparc_override_options): Initialize init_machine_status.
6514         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand,
6515         tie_symbolic_operand, tle_symbolic_operand): New functions.
6516         (symbolic_operand): Disallow tls_symbolic_operand.
6517         (symbolic_memory_operand): Likewise.
6518         (tls_call_delay, sparc_cannot_force_const_mem, legitimate_constant_p,
6519         constant_address_p, legitimate_pic_operand_p, legitimate_address_p):
6520         New functions.
6521         (sparc_tls_symbol): New variable.
6522         (sparc_tls_get_addr, sparc_tls_got, legitimize_tls_address,
6523         legitimize_address): New functions.
6524         (print_operand): Handle %&.
6525         (sparc_init_machine_status, get_some_local_dynamic_name,
6526         get_some_local_dynamic_name_1): New functions.
6527         (sparc_output_dwarf_dtprel): New function.
6528         * config/sparc/sparc.h (CONSTANT_ADDRESS_P): Moved into
6529         constant_address_p.
6530         (LEGITIMATE_PIC_OPERAND_P): Moved into legitimate_pic_operand_p.
6531         (LEGITIMATE_CONSTANT_P): Moved into legitimate_constant_p.
6532         (GO_IF_LEGITIMATE_ADDRESS): Moved into legitimate_address_p.
6533         (LEGITIMIZE_ADDRESS): Moved into legitimize_address.
6534         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
6535         (TARGET_TLS, TARGET_SUN_TLS, TARGET_GNU_TLS): Define.
6536         (ASM_OUTPUT_DWARF_DTPREL): Define.
6537         (PREDICATE_CODES): Add tgd_symbolic_operand, tld_symbolic_operand,
6538         tie_symbolic_operand, tle_symbolic_operand.
6539         * config/sparc/sparc.md (UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_TLSLDO,
6540         UNSPEC_TLSIE, UNSPEC_TLSLE, UNSPEC_TLSLD_BASE): New constants.
6541         (tls_call_delay): New attribute.
6542         (in_call_delay): Use it.
6543         (movqi, movhi, movsi, movdi): Call legitimize_tls_address if needed.
6544         (tgd_hi22, tgd_lo10, tgd_add32, tgd_add64, tgd_call32, tgd_call64,
6545         tldm_hi22, tldm_lo10, tldm_add32, tldm_add64, tldm_call32, tldm_call64,
6546         tldo_hix22, tldo_lox10, tldo_add32, tldo_add64, tie_hi22, tie_lo10,
6547         tie_ld32, tie_ld64, tie_add32, tie_add64, tle_hix22_sp32,
6548         tle_lox10_sp32, tle_hix22_sp64, tle_lox10_sp64): New insns.
6549         (tldo_ldub_sp32, tldo_ldub1_sp32, tldo_ldub2_sp32, tldo_ldsb1_sp32,
6550         tldo_ldsb2_sp32, tldo_ldub_sp64, tldo_ldub1_sp64, tldo_ldub2_sp64,
6551         tldo_ldub3_sp64, tldo_ldsb1_sp64, tldo_ldsb2_sp64, tldo_ldsb3_sp64,
6552         tldo_lduh_sp32, tldo_lduh1_sp32, tldo_ldsh1_sp32, tldo_lduh_sp64,
6553         tldo_lduh1_sp64, tldo_lduh2_sp64, tldo_ldsh1_sp64, tldo_ldsh2_sp64,
6554         tldo_lduw_sp32, tldo_lduw_sp64, tldo_lduw1_sp64, tldo_ldsw1_sp64,
6555         tldo_ldx_sp64, tldo_stb_sp32, tldo_stb_sp64, tldo_sth_sp32,
6556         tldo_sth_sp64, tldo_stw_sp32, tldo_stw_sp64, tldo_stx_sp64): New
6557         insns.
6558         * config/sparc/sparc-protos.h (legitimate_constant_p,
6559         constant_address_p, legitimate_pic_operand_p, legitimate_address_p,
6560         legitimize_tls_address, legitimize_address, tls_symbolic_operand,
6561         tls_call_delay, sparc_output_dwarf_dtprel): New prototypes.
6562         * config/sparc/linux.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
6563         * config/sparc/linux64.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Likewise.
6564         * configure.in (sparc*-*-*): Add TLS check.
6565         * configure: Rebuilt.
6566
6567 2003-09-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
6568
6569         PR target/11689
6570         * config/i386/i386.c (memory_address_length): Fix computation when
6571         the base is esp or ebp.
6572
6573 2003-09-07  Mark Mitchell  <mark@codesourcery.com>
6574
6575         PR c++/11852
6576         * varasm.c (initializer_constant_valid_p): Correct logic for
6577         CONSTRUCTORs.
6578
6579 2003-09-07  Roger Sayle  <roger@eyesopen.com>
6580
6581         * expr.c (expand_operands): New function to expand an operand pair.
6582         (expand_expr): Call expand_operands whenever we need to expand both
6583         operands of a binary operator.
6584         (do_store_flag): Likewise for operands of comparison operations.
6585
6586 2003-09-07  Roger Sayle  <roger@eyesopen.com>
6587
6588         * combine.c (combine_simplify_rtx): Don't convert -(A*B) into
6589         (-A)*B if we care about sign-dependent rounding.
6590
6591 2003-09-07  Gabriel Dos Reis  <gcc@integrable-solutions.net>
6592
6593         * c-pretty-print.h (pp_c_left_brace): Declare.
6594         (pp_c_right_brace): Likewise.
6595         * c-pretty-print.c (pp_c_left_brace): Now a function
6596         (pp_c_right_brace): Likewise.
6597
6598 2003-09-07  Jan Hubicka  <jh@suse.cz>
6599
6600         * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
6601
6602 2003-09-07  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6603
6604         * diagnostic.c (warn_deprecated_use): Move to toplev.c
6605
6606 2003-09-07  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6607
6608         * langhooks.c (lhd_print_error_function): Move from diagnostic.c.
6609         * Makefile.in (langhooks.o): Depend on diagnostic.h
6610
6611 2003-09-06  James E Wilson  <wilson@tuliptree.org>
6612
6613         * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
6614         simplify.
6615
6616 2003-09-07  Kelley Cook  <kelleycook@wideopenwest.com>
6617
6618         * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
6619         and use it throughout.
6620
6621 2003-09-07  Jan Hubicka  <jh@suse.cz>
6622
6623         * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
6624
6625         * toplev.c  (rest_of_decl_compilation):  Do not finalize external
6626         virables.
6627
6628         * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
6629         functions.
6630         (cgraph_varpool_finalize_decl): Notice global symbol when needed.
6631
6632 2003-09-06  Jan Hubicka  <jh@suse.cz>
6633
6634         PR target/12070
6635         * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
6636
6637         PR opt/12082
6638         * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
6639
6640 2003-09-06  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6641
6642         * diagnostic.c (announce_function): Move to toplev.c.
6643
6644 2003-09-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6645
6646         * gcse.c (expr_equiv_p): Don't consider anything to be equal to
6647         volatile mem.
6648
6649 2003-09-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6650
6651         * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
6652         when gc checking is enabled.
6653
6654 2003-09-06  Steven Bosscher  <steven@gcc.gnu.org>
6655
6656         PR c/9862
6657         * c-decl.c (c_expand_body_1): Move return warning from here...
6658         (finish_function): ...to here.
6659
6660 2003-09-05  Geoffrey Keating  <geoffk@apple.com>
6661
6662         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
6663         a subset of the input class.
6664
6665 2003-09-05  Kazu Hirata  <kazu@cs.umass.edu>
6666
6667         * config/i860/i860.c: Follow spelling conventions.
6668         * config/i860/i860.h: Likewise.
6669         * config/sh/sh.h: Likewise.
6670
6671 2003-09-05  Nitin Yewale  <NitinY@KPITCummins.com>
6672
6673         * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
6674         * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
6675         * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
6676
6677 2003-09-05  Roger Sayle  <roger@eyesopen.com>
6678             Richard Henderson  <rth@redhat.com>
6679
6680         PR optimization/1823
6681         * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
6682         multiplication to implement division by constant integer.
6683
6684 2003-09-05  Jan Hubicka  <jh@suse.cz>
6685
6686         * opts.c (decode_options): Enable unit-at-a-time at -O2.
6687         * params.def (max-inline-insns-single): Set to 500
6688         (max-inline-insns-auto): Set to 150
6689         * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
6690
6691 2003-09-04  Richard Henderson  <rth@redhat.com>
6692
6693         * cgraph.c (cgraph_mark_reachable_node): Split out from ...
6694         (cgraph_mark_needed_node): Remove needed argument.
6695         * cgraph.h: Update to match.
6696         * cgraphunit.c (decide_is_function_needed): Split out from ...
6697         (cgraph_finalize_function): Reorg.  Avoid deferred_inline_function
6698         if we generated the function.
6699         (record_call_1): Update for cgraph_mark_reachable_node.
6700         * varasm.c (mark_referenced): Likewise.
6701         * objc/objc-act.c (mark_referenced_methods): Likewise.
6702
6703 2003-09-04  DJ Delorie  <dj@redhat.com>
6704
6705         * targhooks.c: Add comment explaining the migration process.
6706
6707 2003-09-04  Eric Christopher  <echristo@redhat.com>
6708
6709         * config/frv/t-frv: Fix path for frv-abi.h.
6710         * config/frv/frv-asm.h: Fix string concatenation.
6711
6712 2003-09-04  DJ Delorie  <dj@redhat.com>
6713
6714         * builtins.c (apply_args_size): Guard against a NULL cfun.
6715         (expand_builtin_apply_args_1): Likewise.
6716         (expand_builtin_apply): Likewise.
6717         Fixes PR bootstrap/12172.
6718
6719 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6720
6721         * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
6722         assembler supports Sun syntax for cmov.
6723         * configure: Regenerate.
6724         * config.in: Likewise.
6725         * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
6726         HAVE_AS_IX86_CMOV_SUN_SYNTAX.
6727         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
6728         Fixes PR target/12101.
6729
6730 2003-09-04  Matt Austern  <austern@apple.com>
6731
6732         * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
6733         with verbosity 0, instead of DECL_NAME, for human-readable string.
6734
6735 2003-09-04  Eric Christopher  <echristo@redhat.com>
6736
6737         * targhooks.c (default_return_in_memory): Allow
6738         unconverted ports.
6739
6740 2003-09-04  Eric Christopher  <echristo@redhat.com>
6741
6742         * targhooks.c (default_return_in_memory): Fix typo
6743         in last checkin.
6744
6745 2003-09-04  Eric Christopher  <echristo@redhat.com>
6746
6747         * targhooks.c (default_return_in_memory): Fix default
6748         definition.
6749
6750 2003-09-04  Bernardo Innocenti  <bernie@develer.com>
6751
6752         * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
6753         deleted function.
6754         * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
6755         enable coff-only code in m68k.c.
6756
6757 2003-09-04  Nick Clifton  <nickc@redhat.com>
6758
6759         * config.gcc: Add v850e1 target.  Allow --with-cpu to accept
6760         v850e1.
6761         * config/v850/v850.h: Accept v850e1 as a default CPU.
6762         Accept -mv850e1 as a command line option.
6763         * doc/invoke.texi: Document new -mv850e1 command line switch.
6764         * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
6765         -mv850e.
6766
6767 2003-09-04  Nick Clifton  <nickc@redhat.com>
6768
6769         * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
6770         * config/v850/t-v850: Only produce one extra multilib - for
6771         the v850e.
6772         * config/v850/t-v850e: New file: Only produce one extra
6773         multilib - for the v850.
6774
6775 2003-09-04  Jakub Jelinek  <jakub@redhat.com>
6776
6777         * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
6778         * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
6779         * unwind.h (_Unwind_GetBSP): New prototype.
6780         * libgcc-std.ver: Add empty GCC_3.3.2 version.
6781         * mkmap-symver.awk: For symbol versions with no exported symbols,
6782         don't put anything into version script, just change all symbol
6783         versions which inherit from it to inherit from its ancestor.
6784
6785 2003-09-04  Eric Christopher  <echristo@redhat.com>
6786
6787         * config/mips/mips.c (mips_expand_prologue): Convert to
6788         calls.struct_value_rtx hook.
6789         (reg_or_const_float_1_operand): New.
6790         * config/mips/mips.h: Update Comments.
6791         (mips_arg): Add reg_or_const_float_1_operand.
6792         * config/mips/mips.md (divdf3); Convert to expander.
6793         (divsf3): Ditto.
6794         (*divdf3): New pattern.
6795         (*divsf3): Ditto.
6796
6797 2003-09-04  Jan Hubicka  <jh@suse.cz>
6798
6799         * toplev.c (wrapup_global_declarations): Fix final pass in
6800         unit-at-atime mode.
6801
6802 2003-09-04  Mark Mitchell  <mark@codesourcery.com>
6803
6804         * doc/extend.texi: Document removal of cast-as-lvalue extension in
6805         C++.
6806
6807 2003-09-04  Nicolas Roche  <roche@act-europe.fr>
6808
6809         * gcc.c (process_command): Fix typo.
6810
6811 2003-09-03  David O'Brien  <obrien@FreeBSD.org>
6812
6813         optimization/11980
6814         * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
6815         (PTRDIFF_TYPE): Likewise.
6816         (WCHAR_TYPE_SIZE): Likewise.
6817
6818 2003-09-03  DJ Delorie  <dj@redhat.com>
6819
6820         * targhooks.c: New file.
6821         * targhooks.h: New file.
6822         * Makefile.in: Add targhooks.o support.
6823         (function.o): Depend on$(TARGET_H).
6824         (stmt.o): Likewise.
6825         (combine.o): Depend on $(TREE_H) and $(TARGET_H).
6826         * builtins.c (apply_args_size, expand_builtin_apply_args_1,
6827         expand_builtin_apply): Convert to calls.struct_value_rtx hook.
6828         (expand_builtin_saveregs): Convert to
6829         calls.expand_builtin_saveregs hook.
6830         * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
6831         here, instead of ...
6832         (get_parm_info) ... here.
6833         (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
6834         hook.
6835         (finish_function): Handle calls.promote_prototypes hook here too.
6836         * c-typeck.c (convert_arguments): Convert to
6837         calls.promote_prototypes hook.
6838         (c_convert_parm_for_inlining): Likewise.
6839         * calls.c (initialize_argument_information): Convert to
6840         calls.promote_function_args hook.
6841         (expand_call): Convert to calls.struct_value_rtx,
6842         calls.strict_argument_naming,
6843         calls.pretend_outgoing_varargs_named, and
6844         calls.promote_function_return hooks.  Pass fndecl to
6845         aggregate_value_p.  Initialize CUMULATIVE_ARGS before calling
6846         hooks, so they can use that.
6847         (emit_library_call_value_1): Likewise.
6848         * combine.c (setup_incoming_promotions): Convert to
6849         calls.promote_function_args hook.
6850         * emit-rtl.c: Convert to calls.struct_value_rtx hook.
6851         * expr.c (expand_assignment): Pass call to aggregate_value_p.
6852         (expand_expr): Likewise.
6853         * expr.h: Remove support for SETUP_INCOMING_VARARGS,
6854         STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
6855         RETURN_IN_MEMORY macro defaults.
6856         * final.c (profile_function): Convert to calls.struct_value_rtx
6857         hook.
6858         * function.c (aggregate_value_p): Accept function type tree as
6859         second parameter; try to deduce fntype from it.  Convert to
6860         calls.return_in_memory hook.
6861         (assign_parms): Convert to calls.setup_incoming_varargs,
6862         calls.strict_argument_naming, calls.promote_function_args,
6863         calls.pretend_outgoing_varargs_named hooks.  Pass fndecl to
6864         aggregate_value_p.
6865         (expand_function_start): Likewise.  Convert to
6866         calls.struct_value_rtx hook.
6867         (expand_function_end): Convert to calls.promote_function_return hook.
6868         (allocate_struct_function): Pass fndecl to aggregate_value_p.
6869         * hard-reg-set.h: Update comments to new hook names.
6870         * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
6871         * reg-stack.c (stack_result): Likewise.
6872         * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
6873         * stmt.c (expand_value_return): Convert to
6874         calls.promote_function_return hook.
6875         * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
6876         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
6877         TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
6878         TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
6879         TARGET_STRICT_ARGUMENT_NAMING,
6880         TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
6881         * target.h: Likewise.
6882         * tree.h (aggregate_value_p): Also takes a tree to deduce function
6883         attributes from (for target hooks).
6884         * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
6885         PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
6886         STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
6887         EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
6888         STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
6889         to hooks.
6890
6891         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
6892         to aggregate_value_p.
6893         * config/arm/arm.c (arm_init_cumulative_args,
6894         arm_output_mi_thunk): Likewise.
6895         * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
6896         Likewise.
6897         * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
6898         mips_can_use_return_insn): Likewise.
6899         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
6900         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
6901         * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
6902         aggregate_value_p.
6903         * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
6904         function to aggregate_value_p.
6905         * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
6906         aggregate_value_p.
6907
6908         * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
6909         (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
6910         sh_function_arg_advance, sh_pass_in_reg_p): New.  * config/sh/sh.c
6911         (sh_handle_renesas_attribute, sh_promote_prototypes,
6912         sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
6913         sh_setup_incoming_varargs, sh_strict_argument_naming,
6914         sh_pretend_outgoing_varargs_named): New decls.
6915         (targetm): Add new hooks.
6916         (calc_live_regs): Save MACL and MACH if the function has the
6917         renesas attribute.
6918         (sh_expand_prologue): Support renesas attribute.
6919         (sh_builtin_saveregs): Make static.
6920         (sh_build_va_list): Support renesas attribute.
6921         (sh_va_start): Likewise.
6922         (sh_va_arg): Likewise.
6923         (sh_promote_prototypes): New.
6924         (sh_function_arg): New, moved from sh.h.  Support renesas
6925         attribute.
6926         (sh_function_arg_advance): Likewise.
6927         (sh_return_in_memory): Likewise.
6928         (sh_strict_argument_naming): Likewise.
6929         (sh_pretend_outgoing_varargs_named): Likewise.
6930         (sh_struct_value_rtx): New.
6931         (sh_attribute): Add renesas attribute.
6932         (sh_handle_renesas_attribute): New.
6933         (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
6934         (sh_ms_bitfield_layout_p): Support renesas attribute also.
6935         (sh_output_mi_thunk): Pass function to aggregate_value_p.  *
6936         config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
6937         -mhitachi.
6938         (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
6939         target hooks.
6940         (sh_args): Add renesas_abi flag.
6941         (INIT_CUMULATIVE_ARGS): Set it.  Pass fndecl to aggregate_value_p.
6942         (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
6943         (PASS_IN_REG_P): Support renesas attribute.  Pass DF and TF on the
6944         stack for the renesas abi.
6945         (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
6946         SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
6947         PROMOTE_PROTOTYPES): Moved to sh.c.  * config/sh/sh.md (call): Set
6948         call cookie to indicate renesas calls.
6949
6950 2003-09-03  Mostafa Hagog  <mustafa@il.ibm.com>
6951
6952         * gcse.c (replace_one_set): New function.
6953         (pre_insert_copy_insn): Change the order of copying
6954         to make copy propagation discover additional PRE opportunities.
6955
6956 2003-09-03  Roger Sayle  <roger@eyesopen.com>
6957
6958         PR optimization/11700.
6959         * simplify-rtx.c (simplify_subreg): Check that the subreg offset
6960         of a hard register is representable before trying to simplify it
6961         using subreg_hard_regno.
6962
6963 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6964
6965         * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
6966         * configure: Regenerate.
6967
6968 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6969
6970         * intl.h (N_): Remove parentheses.
6971
6972 2003-09-03  Bernardo Innocenti  <bernie@develer.com>
6973
6974         * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
6975         * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
6976         definition and code blocks compiled when not defined.
6977         * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
6978         * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
6979         * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
6980         * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
6981
6982 2003-09-03  Jeff Sturm  <jsturm@one-point.com>
6983
6984         * cgraphunit.c (visited_nodes): New static variable.
6985         (record_call_1): Use walk_tree with visited_nodes.
6986         (cgraph_create_edges): Use walk_tree with visited_nodes.
6987         Setup/teardown visited_nodes hashtable.
6988
6989 2003-09-03  Roger Sayle  <roger@eyesopen.com>
6990
6991         * toplev.c (flag_rounding_math): New global variable.
6992         (f_options): Add to the list of language independent options.
6993         * flags.h (flag_rounding_math): Prototype here.
6994         (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
6995         * common.opt (frounding-math): New common command line option.
6996         * opts.c (common_handle_option): Handle OPT_frounding_math.
6997         (set_fast_math_flags): -ffast-math clears flag_rounding_math.
6998
6999         * doc/invoke.texi: Document this new command line option.
7000
7001 2003-09-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7002
7003         * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
7004
7005 2003-09-03  Jan Hubicka  <jh@suse.cz>
7006
7007         * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
7008         * c-decl.c (finish_function):  Kill arguments, always use cgraph path.
7009         * c-objc-common.c: Kill include of gt-c-objc-common.h
7010         (expand_deferred_fns, deffer_fn): Kill function.
7011         (deferred_fns): Kill variable.
7012         (finish_cdtor): Update finish_function call.
7013         (c_objc_common_finish_file): Always call cgraph code.
7014         * c-parse.c: Regenerate.
7015         * c-parse.y: Regenerate.
7016         * c-tree.h (finish_function): Update prototype.
7017         * objc-acct.c (build_module_descriptor, finish_method_def):
7018         Update call of finish_function.
7019         * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
7020         forward prototype.
7021         (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
7022         function and assemble it if needed.
7023         (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
7024         mode.
7025         (cgraph_optimize): Likewise.
7026         (cgraph_expand_function): In non-unit-at-a-time mode keep function body
7027         even when it has no inline callees.
7028         * c-parse.in: Update calls to finish_function.
7029
7030 2003-09-03  Nick Clifton  <nickc@redhat.com>
7031
7032         * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
7033         Use #error to generate the message if TARGET_DEFAULT is not
7034         recognised.
7035
7036 2003-09-03  Richard Sandiford  <rsandifo@redhat.com>
7037
7038         * config/mips/mips.h (MASK_UNUSED1): Remove.
7039         (MASK_XGOT, TARGET_XGOT): Define.
7040         (TARGET_SWITCHES): Add an entry for -mxgot.
7041         (ASM_SPEC): Map -mxgot to -xgot.
7042         * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
7043         whether we're using a big-GOT sequences.
7044         (mips_legitimize_const_move, mips_expand_call): Likewise.
7045         (override_options): Revert 2003-01-09 change.
7046         * doc/invoke.texi: Document -mxgot.
7047
7048 2003-09-02  Jason Merrill  <jason@redhat.com>
7049
7050         * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
7051         * config/sparc/sol2.h: Not here.
7052
7053 2003-09-02  Roger Sayle  <roger@eyesopen.com>
7054
7055         * expr.c (expand_expr): The code following both_summands performs
7056         the same task as simplify_gen_binary.  Replace all gotos to
7057         both_summands with a call to simplify_gen_binary and delete the
7058         now unused label.
7059
7060 2003-09-02  Jason Merrill  <jason@redhat.com>
7061
7062         PR c++/7327
7063         * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
7064
7065 2003-09-02  Jeff Sturm  <jsturm@one-point.com>
7066
7067         * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
7068         (cgraph_optimize_function): Set current_function_decl to the
7069         fndecl we're integrating from.
7070
7071 2003-09-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7072
7073         * builtins.def: Break out _Complex math functions into their
7074         own category.
7075
7076 2003-09-02  Andreas Jaeger  <aj@suse.de>
7077
7078         * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
7079
7080 2003-09-02  Josef Zlomek  <zlomekj@suse.cz>
7081
7082         * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
7083         finding the note again.
7084
7085 2003-09-02  Nathanael Nerode  <neroden@gcc.gnu.org>
7086
7087         * config.gcc: Remove host-specific rewrites of target_alias.
7088
7089 2003-09-01  Mark Mitchell  <mark@codesourcery.com>
7090
7091         * Makefile.in (genprogs): Fix typo.
7092
7093         * Makefile.in (gencheck.o): Remove build commands.
7094         (dummy-conditions.o): Likewise.
7095         (read-rtl.o): Likewise.
7096         (gensupport.o): Likewise.
7097         (genconfig$(build_exeext)): Remove rule.
7098         (genconfig.o): Remove build commands.
7099         (genflags$(build_exeext)): Remove rule.
7100         (genflags.o): Remove build commands.
7101         (gencodes$(build_exeext)): Remove rule.
7102         (gencodes.o): Remove build commands.
7103         (genconstants.o): Remove build commands.
7104         (genemit$(build_exeext)): Remove rule.
7105         (genemit.o): Remove build commands.
7106         (genrecog$(build_exeext)): Remove rule.
7107         (genrecog.o): Remove build commands.
7108         (genextract$(build_exeext)): Remove rule.
7109         (genextract.o): Remove build commands.
7110         (genpeep$(build_exeext)): Remove rule.
7111         (genpeep.o): Remove build commands.
7112         (genattr$(build_exeext)): Remove rule.
7113         (genattr.o): Remove build commands.
7114         (genprognames): New variable.
7115         (genprogs): Likewise.
7116         (genobjs): Likewise.
7117         (genprogs): New rule.
7118         (genobjs): Likewise.
7119         (genattrtab.o): Remove build commands.
7120         (genautomata.o): Likewise.
7121         (genoutput$(build_exeext)): Remove rule.
7122         (genoutput.o): Remove build commands.
7123         (gengenrtl.o): Likewise.
7124         (genpreds.o): Likewise.
7125         (gengtype.o): Likewise.
7126         (genconditions.o): Likewise.
7127         (gen-protos.o): Likewise.
7128         (scan.o): Likewise.
7129         (fix-header.o): Likewise.
7130         (scan-decls.o): Likewise.
7131         (check-g++): Combine with other check targets.
7132         (check-gcc): Likewise.
7133         (check-g77): Likewise.
7134         (check-objc): Likewise.
7135
7136 2003-09-01  Nathanael Nerode  <neroden@gcc.gnu.org>
7137
7138         * config.gcc: Remove host-specific stuff which is unused here
7139         since the introduction of config.host.
7140
7141         * doc/fragments.texi: Mention config.host.
7142         * doc/sourcebuild.texi: Mention config.host.  Give brief descriptions
7143         of config.build, config.host, and config.gcc.
7144
7145 2003-09-01  Zack Weinberg  <zack@codesourcery.com>
7146
7147         * c-decl.c (pushdecl): Don't put variables on
7148         C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
7149         incomplete.
7150
7151 2003-09-01  Nathanael Nerode  <neroden@gcc.gnu.org>
7152
7153         * config.host: New file.
7154         * config.gcc: Remove some host-specific stuff and some
7155         logic needed only for repeated invocation.
7156         * configure.in: Use config.host.
7157         * configure: Regenerate.
7158
7159 2003-09-01  Josef Zlomek  <zlomekj@suse.cz>
7160
7161         * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
7162         * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
7163         * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
7164         (fold): Kill BIT_ANDTC_EXPR and label bit_and.
7165         * tree.def (BIT_ANDTC_EXPR): Kill.
7166
7167 2003-08-31  Nathanael Nerode  <neroden@gcc.gnu.org>
7168
7169         * configure.in: Remove uses of "for x in .. ${foo}" idiom.
7170         * configure: Regenerate.
7171
7172         * config.gcc:  Remove references to install_headers_dir, now unused
7173         since introduction of config.build.
7174         * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
7175
7176         * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
7177         config.build.
7178
7179         * config.build: New file.
7180         * config.gcc: Remove some build-specific stuff.
7181         * configure.in: Use config.build.
7182         * configure: Regnerate.
7183
7184 2003-08-31  Steven Bosscher  <steven@gcc.gnu.org>
7185             Roger Sayle  <roger@eyesopen.com>
7186
7187         PR middle-end/11823
7188         * stmt.c (expand_end_case_type): Only use jump tables for dense
7189         switch statements when optimizing for size.
7190
7191 2003-08-31  Olivier Hainque  <hainque@act-europe.fr>
7192
7193         * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
7194         the != 0 case, which ensures pending stack adjustments are flushed.
7195
7196 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
7197
7198         * configure.frag: Delete file.
7199         * configure.in: Rename the substitution variables
7200         dep_host_xmake_file and dep_tmake_file to xmake_file and
7201         tmake_file respectively.  Do not expand $srcdir in the
7202         value of these; leave that for Make.  Introduce a new
7203         substitution varaible, all_lang_makefrags, which lists
7204         subdirectory Make-lang.in files; exclude these from
7205         all_lang_makefiles, which is now only for subdirectory
7206         outputs.  Do not invoke configure.frag.  Do not set nor
7207         AC_SUBST_FILE target_overrides, host_overrides, or
7208         language_fragments. Create build subdirectories in
7209         config.status extra commands.
7210         * configure: Regenerate.
7211         * Makefile.in: Update substitutions to match changes to
7212         configure.  Use include directives instead of @-insertions
7213         to read in host, target, and language fragments.
7214         (Makefile rule): Do not invoke configure.frag.  Do not copy
7215         config.status to config.run before executing it.  Set
7216         CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
7217         regenerated.
7218         (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
7219
7220 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
7221
7222         * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
7223         * c-typeck.c (same_translation_unit_p): New function.
7224         (comptypes): Use it instead of flags parameter to identify
7225         structure types from different translation units.
7226         * c-decl.c (duplicate_decls): Always call comptypes with
7227         COMPTYPE_STRICT flags argument.
7228         (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
7229         to file_scope_decl.
7230
7231 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
7232
7233         * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
7234         * c-decl.c (struct c_scope): Remove "incomplete" field.
7235         (pushdecl): Attach variables with incomplete types to
7236         the TYPE_MAIN_VARIANT of the incomplete type in question.
7237         (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
7238         to complete, not at current_scope->incomplete.  All such
7239         variables do need completion.
7240
7241 2003-08-30  Richard Earnshaw  <rearnsha@arm.com>
7242         Nicolas Pitre <nico@cam.org>
7243
7244         * arm/lib1funcs.asm (RETCOND): Delete.
7245         (RETLDM): New assembler macro.  Use it for returning with ldm/ldr.
7246         (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
7247         (__ARM_ARCH__): Move here from ieee754-?f.S.
7248         (RET, RETc): Clean up definitions.
7249         (DIV_FUNC_END): Renamed from FUNC_END.  All uses changed.
7250         (FUNC_END): New macro that marks the end of any function.
7251         (ARM_FUNC_START): New macro that allows an assembler routine to be
7252         implemented in ARM code even if a Thumb-only build.
7253         Unconditionally include ieee754-?f.S.
7254         * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
7255         Mark ends of functions.
7256         Split into separate conditionally-compiled units.
7257         Use RETLDM to return from routines.
7258         * arm/ieee754-sf.S: Similarly.
7259         * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
7260         Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
7261         _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
7262         _fixsfsi and _fixunssfsi.
7263
7264         * arm/ieee754-df.S (__muldf3): Fix bug when result of a
7265         multiplication underflows to zero.
7266         (__adddf3): Fix bug when using VFP ordering on little-endian
7267         processors.
7268         (__fixdfsi): Use rrx to extract the carry into a register instead of
7269         MRS instruction.  Optimize later use of result.
7270         * arm/ieee754-sf.S (__fixsfsi): Likewise.
7271         (__fixunssfsi): Use a better sequence for handling negative-or-zero.
7272
7273 2003-08-29  Richard Henderson  <rth@redhat.com>
7274
7275         * tree-optimize.c: New file.
7276         * Makefile.in (OBJS-archive): Add tree-optimize.o.
7277         (tree-optimize.o): New.
7278         * c-decl.c (store_parm_decls): Use allocate_struct_function.
7279         (finish_function): Don't free_after_parsing or free_after_compilation.
7280         (set_save_expr_context): Move to tree-optimize.c.
7281         (c_expand_body_1): Use tree_rest_of_compilation.
7282         * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
7283         * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
7284         * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
7285         iterate until closure.
7286         * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
7287         LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
7288         (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
7289         * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
7290         * toplev.h (tree_rest_of_compilation): Declare it.
7291
7292 2003-08-29  Richard Henderson  <rth@redhat.com>
7293
7294         * function.h (struct function): Add rtl_inline_init, saved_for_inline.
7295         * integrate.c (save_for_inline): Set saved_for_inline.
7296         * c-semantics.c (genrtl_scope_stmt): Check it.
7297         * toplev.c (wrapup_global_declarations): Check it.
7298         (rest_of_handle_inlining): Set and check rtl_inline_init.
7299         (rest_of_compilation): Remove out of date comment.
7300
7301 2003-08-29  Richard Henderson  <rth@redhat.com>
7302
7303         * function.c (allocate_struct_function): New, split out of ...
7304         (prepare_function_start, init_function_start): ... here.
7305         * expr.c (init_expr): Use ggc_alloc_cleared.
7306         * stmt.c (init_stmt_for_function): Likewise.
7307         * tree.h (allocate_struct_function): Declare.
7308
7309 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
7310
7311         * config.gcc: Don't use negated character class in shell case
7312         clause.
7313
7314 2003-08-29  Richard Henderson  <rth@redhat.com>
7315
7316         * function.h (struct function): Move function_frequency and
7317         max_jumptable_ents before start of bit field members.
7318
7319 2003-08-29  Richard Henderson  <rth@redhat.com>
7320
7321         * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
7322         (fold_builtin_constant_p) ... not here.
7323
7324 2003-08-29  Richard Henderson  <rth@redhat.com>
7325
7326         * c-tree.h (C_DECL_FILE_SCOPE): Move ...
7327         * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
7328         * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
7329
7330 2003-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7331
7332         * builtins.def: Fix typos.
7333         (ATTR_MATHFN_FPROUNDING_STORE): New macro.
7334         (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
7335         BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
7336         BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
7337         BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
7338
7339         * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
7340         Use ATTR_MATHFN_FPROUNDING_ERRNO.
7341
7342 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
7343
7344         * config.gcc (i386-*-vsta): Fix obvious bogosity.
7345
7346         * fixinc/inclhack.def:  Remove special cases for unsupported
7347         PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
7348         * fixinc/fixincl.x: Regenerate.
7349
7350 2003-08-29  Mark Mitchell  <mark@codesourcery.com>
7351
7352         * Makefile.in (cpp.info): Just state dependencies.
7353         (gcc.info): Likewise.
7354         (gccint.info): Likewise.
7355         (gccinstall.info): Likewise.
7356         (cppinternals.info): Likewise.
7357         (cpp.dvi): Likewise.
7358         (gcc.dvi): Likewise.
7359         (gccint.dvi): Likewise.
7360         (gccinstall.dvi): Likewise.
7361         (cppinternals.dvi): Likewise.
7362         (gcov.1): Likewise.
7363         (cpp.1): Likewise.
7364         (gcc.1): Likewise.
7365         (gfdl.7): Likewise.
7366         (gpl.7): Likewise.
7367         (fsf-funding.7): Likewise.
7368         ($(objdir)/%.info): New pattern rule.
7369         (%.dvi): Likewise.
7370
7371 2003-08-29  Kelley Cook  <kelleycook@wideopenwest.com>
7372
7373         * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
7374         (restage2): Likewise.
7375         (restage3): Likewise.
7376         (restage4): Likewise.
7377         (restageprofile): Likewise.
7378         (restagefeedback): Likewise.
7379         (bubblestrap): Likewise.
7380
7381 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
7382
7383         * config.gcc: Narrow unsupported target match to avoid clobbering
7384         i?86-sequent-sysv4*.
7385
7386 2003-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7387
7388         * builtins.c (mathfn_built_in): Handle new math builtins.
7389
7390 2003-08-28  Per Bothner  <per@bothner.com>
7391
7392         Fix (hopefully temporary) for breakage caused by my 08-21 patch.
7393         * cpplex.c (_cpp_get_fresh_line):  Check for null buffer.
7394         (_cpp_lex_buffer):  Likewise.
7395         * cpptrad.c (_cpp_read_logical_line_trad):  Likewise.
7396
7397 2003-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
7398
7399         * config/s390/s390.md ("*mulsi3_sign"): New insn.
7400         ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
7401         ("mulsidi3"): ... this new insn.
7402         ("umulsidi3"): New insn.
7403         ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
7404         mixed-mode matching constraints.
7405         ("udivmodsi4", "udivmoddisi3"): New insns.
7406         ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
7407
7408 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7409
7410         * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
7411         BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
7412         BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
7413         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
7414         BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
7415         BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
7416         BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
7417         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
7418         BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
7419         BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
7420         BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
7421         * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
7422         BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
7423         BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
7424         BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
7425         * tree.c: Assign new type_nodes.
7426         * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
7427         TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
7428         (float_ptr_type_node, double_ptr_type_node,
7429         long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
7430
7431         * doc/extend.texi: Document new builtins.
7432
7433 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7434
7435         * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
7436         BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
7437
7438         * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
7439         BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
7440         BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
7441         BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
7442         BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
7443         BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
7444         BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
7445         BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
7446         BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
7447         BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
7448
7449         * doc/extend.texi: Document new builtins.
7450
7451 2003-08-28  Nathanael Nerode  <neroden@gcc.gnu.org>
7452
7453         * fixinc/mkfixinc.sh: Remove special case code for unsupported
7454         variants of i?86, powerpcle, and thumb.
7455         * fixinc/mkfixinc.sh: Remove special case code for unsupported
7456         arm and hppa variants.
7457
7458 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7459
7460         * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
7461         BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
7462         BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
7463         BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
7464         BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
7465         BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
7466         BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
7467         BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
7468         BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
7469         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
7470
7471         * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
7472         BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
7473         BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
7474         BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
7475         BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
7476         BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
7477         BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
7478         BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
7479         BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
7480         BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
7481         BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
7482         BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
7483         BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
7484         BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
7485         BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
7486         BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
7487         BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
7488         BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
7489         BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
7490         BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
7491         BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
7492         BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
7493         BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
7494         BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
7495         BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
7496         BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
7497         BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
7498         BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
7499         BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
7500         BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
7501         BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
7502
7503         * doc/extend.texi: Document new builtins.
7504
7505 2003-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
7506
7507         * config/s390/s390.c (legitmate_constant_p): Use LARL on
7508         zSeries machines even in 31-bit addressing mode.
7509         (legitimate_reload_constant_p): Likewise.
7510         (legitimize_pic_address): Likewise.
7511         (legitimize_tls_address): Likewise.
7512         (s390_split_branches): Likewise.
7513         (s390_dump_pool): Likewise.
7514         (s390_mainpool_finish): Likewise.
7515         (s390_chunkify_start): Likewise.
7516         (s390_select_rtx_section): Likewise.
7517         * config/s390/s390.md ("doloop_si"): Likewise.
7518         ("pool_start_31", "pool_end_31"): Likewise.
7519         ("pool_start_64", "pool_end_64"): Likewise.
7520         ("main_base_31_small", "main_base_31_large"): Likewise.
7521         ("main_base_64"): Likewise.
7522         ("reload_base_31", "reload_base_64"): Likewise.
7523         ("*movsi_larl"): New insn.
7524         ("cjump", "icjump"): Use long branches on zSeries machines.
7525         ("jump"): Likewise.
7526         ("call"): Use BRASL on zSeries machines.
7527         ("call_value", "call_value_tls"): Likewise.
7528         ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
7529         and replace by ...
7530         ("*bras", "*brasl", "*basr") ... these new insns.
7531         ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
7532         "bas_31_r"): Remove and replace by ...
7533         ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
7534         ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
7535         "bas_64_tls", "bas_31_tls"): Remove and replace by ...
7536         ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
7537         ("*return_si", "*return_di"): Remove and replace by ...
7538         ("*return"): ... this new insn.
7539         ("rotlsi3"): Allow on zSeries machines.
7540
7541         * config/s390/s390.c (legitimize_reload_constant_p): Use
7542         LL/LH type instructions in z/Architecture mode.
7543         * config/s390/s390.md ("*movsi_lli"): Likewise.
7544         ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
7545         ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
7546         ("*extendqisi2"): Use LB in z/Architecture mode.
7547         ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
7548         z/Architecture mode.
7549         ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
7550         Likewise.
7551
7552         * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
7553         and 31-bit mode.
7554         ("ptr_extend"): Allow only in 64-bit mode.
7555
7556 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
7557
7558         * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
7559         (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
7560         definitions.
7561         (main): Only use standard_startfile_prefix if native.
7562         * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
7563
7564 2003-08-27  Per Bothner  <pbothner@apple.com>
7565
7566         * cpperror.c (print_location):  Don't check for !pfile->buffer.  That
7567         test fails following my 08-21 change, and it seems unnecessary anyway.
7568         (cpp_error):  Likewise.
7569
7570 2003-08-27  Jason Merrill  <jason@redhat.com>
7571
7572         * real.c (do_multiply): Initialize with memset.
7573
7574 2003-08-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7575
7576         * gcov.c (typedef struct arc_info): New field cs_count.
7577         (accumulate_line_counts): Find cycles correctly.
7578
7579 2003-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
7580
7581         * config/s390/s390.c (struct machine_function): Remove member
7582         literal_pool_label.
7583         (s390_optimize_prolog): Replace TEMP_REG argument with
7584         TEMP_USED and BASE_USED.  Do not check get_pool_size ().
7585         (general_s_operand): Accept all immediates before reload if
7586         ALLOW_IMMEDIATE.  If not ALLOW_IMMEDIATE, reject literal pool
7587         references.
7588         (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
7589         (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
7590         (s390_alloc_pool): New function.
7591         (s390_new_pool): Call it.
7592         (s390_dump_pool): Add REMOTE_LABEL argument.
7593         (s390_chunkify_start): Add BASE_REG argument.  Do not check
7594         get_pool_size ().
7595         (s390_chunkify_finish): Add BASE_REG argument.  Adapt
7596         s390_dump_pool call.
7597         (s390_pool_count, s390_nr_constants): Remove.
7598         (s390_output_constant_pool): Remove.
7599         (s390_mainpool_start): New function.
7600         (s390_mainpool_finish): New function.
7601         (s390_mainpool_cancel): New function.
7602         (s390_reorg): Implement main literal pool handling.
7603         (s390_emit_prologue): Emit main_pool placeholder instead of
7604         literal_pool_31 / literal_pool_64 insns.
7605         * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
7606         (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
7607         * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
7608         ("main_base_31_small", "main_base_31_large"): New insns.
7609         ("main_base_64",  "main_pool"): New insns.
7610         ("literal_pool_31", "literal_pool_64"): Remove.
7611
7612 2003-08-27  Nathanael Nerode  <neroden@gcc.gnu.org>
7613
7614         * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
7615         fixinc.ptx.
7616         * fixinc/inclhack.def (undefine_null):  Don't generate \r characters.
7617         Prettify a little.
7618         * fixinc/fixincl.x: Regenerate.
7619
7620 2003-08-27  Richard Earnshaw  <rearnsha@arm.com>
7621
7622         * lib1funcs.asm (L_ieee754_sp): New.  Include ieee754-sf.S.
7623         (L_ieee754_dp): New.  Include ieee754-df.S.
7624         * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
7625         and compilation in apcs-26 mode.
7626         * arm/ieee754-df.S: Likewise.
7627         * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
7628         (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
7629
7630 2003-08-27  Nicolas Pitre  <nico@cam.org>
7631
7632         * arm/ieee754-sf.S: New.
7633         * arm/ieee754-df.S: New.
7634
7635 2003-08-27  Jakub Jelinek  <jakub@redhat.com>
7636
7637         * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
7638         and restore it if returning NULL.
7639
7640 2003-08-27  Richard Sandiford  <rsandifo@redhat.com>
7641
7642         * calls.c (initialize_argument_information): If an argument has no
7643         stack space associated with it, and BLOCK_REG_PADDING is defined,
7644         use it to decide at which end the argument should be padded.
7645         * function.c (assign_parms): Allocate BLKmode stack slots.
7646         * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
7647         (mips_pad_reg_upward): Declare.
7648         * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
7649         (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
7650         (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
7651         (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
7652         * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
7653         (mips_expand_call): Remove code for generating structure shifts.
7654         (mips_arg_info): Don't set struct_p.  Don't set fpr_p for non-float
7655         types unless using the EABI.
7656         (function_arg_advance): Don't generate shift instructions.
7657         (function_arg): Don't return them.  Don't short-circuit the
7658         check for double structure chunks for DFmode arguments.
7659         (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
7660         (mips_expand_prologue): Remove code to emit structure shifts.
7661         * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
7662         structure passing (inet_ntoa, inet_lnaof, inet_netof).  Update
7663         comments to say that only structure returns are a problem.
7664
7665 2003-08-26  Nathanael Nerode  <neroden@gcc.gnu.org>
7666
7667         * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
7668         Fix to match produced versions.
7669         * fixinc/inclhack.def (longlong_t): New disabled test, ported
7670         from fixinc.svr4.
7671         * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
7672         from fixinc.ptx.
7673         * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
7674         ported from fixinc.ptx.
7675
7676 2003-08-26  Per Bothner  <pbothner@apple.com>
7677
7678         * cpplib.h (struct cpp_token):  Change type of field line to fileline.
7679         (cpp_error_with_line):  Use fileline for appropriate parameter.
7680         * cpphash.h (struct cpp_macro):  Change type of field line to fileline.
7681         (struct cpp_reader):  Likewise for fields line and directive_line.
7682         (_cpp_begin_message):  Use fileline for appropriate parameter.
7683         * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
7684         cpp_error):  Use fileline for appropriate parameters and variables.
7685         (print_location):  New local lin, since it is not a fileline.
7686
7687 2003-08-26  Roger Sayle  <roger@eyesopen.com>
7688
7689         PR middle-end/12002
7690         * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
7691         (FLOAT_TYPE_P): Define in terms of these two new macros.
7692         * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
7693         for complex floating point types.
7694
7695 2003-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
7696
7697         * config/s390/s390.c (emit_prologue): Don't check literal pool size.
7698         * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
7699         s390_output_pool_entry.
7700
7701 2003-08-26  Nathanael Nerode  <neroden@gcc.gnu.org>
7702
7703         * fixinc/inclhack.def (svr4_preproc_lint_on,
7704         svr4_preproc_lint_off, svr4_preproc_machine): New disabled
7705         fixes, ported from fixinc.svr4.
7706
7707 2003-08-26  Mark Mitchell  <mark@codesourcery.com>
7708
7709         * doc/install.texi (Prerequisites): Mention GNU make requirement.
7710
7711         * Makefile.in (AR_FOR_TARGET): Export it.
7712         (AR_CREATE_FOR_TARGET): Likewise.
7713         (AR_FLAGS_FOR_TARGET): Likewise.
7714         (AR_EXTRACT_FOR_TARGET): Likewise.
7715         (AWK): Likewise.
7716         (BUILD_PREFIX): Likewise.
7717         (BUILD_PREFIX_1): Likewise.
7718         (DESTDIR): Likewise.
7719         (GCC_FOR_TARGET): Likewise.
7720         (INCLUDES): Likewise.
7721         (INSTALL_DATA): Likewise.
7722         (LIB1ASMSRC): Likewise.
7723         (LIBGCC2_CFLAGS): Likewise.
7724         (MACHMODE_H): Likewise.
7725         (NM_FOR_TARGET): Likewise.
7726         (RANLIB_FOR_TARGET): Likewise.
7727         (libsubdir): Likewise.
7728         (slibdir): Likewise.
7729         (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
7730         exporting.
7731         (libgcc.a): Don't pass them here.
7732         (stmp-multilib): Or here.
7733         (install-libgcc): Or here.
7734         (install-multilib): Or here.
7735         (POSTSTAGE1_FLAGS_TO_PASS): Or here.
7736         (stage1_build): Or here.
7737
7738 2003-08-26  Andreas Krebbel <krebbel1@de.ibm.com>
7739
7740         * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
7741         "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
7742
7743 2003-08-26  Andreas Krebbel <krebbel1@de.ibm.com>
7744
7745         * config/s390/s390.md ("*fmadddf", "*fmsubdf",
7746         "*fmaddsf", "*fmsubsf"): New insns.
7747
7748 2003-08-26  Roger Sayle  <roger@eyesopen.com>
7749
7750         * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
7751         (C1*C2)/X when unsafe math optimizations are allowed.
7752         (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
7753         math optimizations.  Minor code clean-ups.  Recursively call
7754         fold when constructing sub-expressions.
7755
7756 2003-08-26  Roger Sayle  <roger@eyesopen.com>
7757
7758         * builtins.c (fold_builtin_bitop): New function to perform constant
7759         folding of ffs, clz, ctz, popcount and parity builtin functions
7760         and their long and long long variants (such as ffsl and ffsll).
7761         (fold_builtin): fold_builtin_bitop when appropriate.
7762         * simplify-rtx.c (simplify_unary_operation): Honor both
7763         CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
7764         evaluating clz and ctz at compile-time, for operands wider
7765         than HOST_WIDE_INT.
7766
7767 2003-08-26  Nathan Sidwell  <nathan@codesourcery.com>
7768
7769         * builtins.c (build_function_call_expr): Don't set
7770         TREE_SIDE_EFFECTS here.
7771         * expr.c (emit_block_move_via_libcall): Likewise.
7772         (clear_storage_via_libcall): Likewise.
7773         * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
7774         CALL_EXPRs.
7775
7776         * gcse.c (is_too_expensive): New function.
7777         (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
7778
7779 2003-08-25  Zack Weinberg  <zack@codesourcery.com>
7780
7781         * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
7782         commented-out logic to use DCE threads (if present), add
7783         support for POSIX threads.
7784         * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
7785         #defines for -pthread.  Add -lpthread to LIB_SPEC when
7786         -pthread.  In both cases take -mt as a synonym for -pthread
7787         for acc compatibility.
7788         Define GTHREAD_USE_WEAK to 0.
7789         * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
7790         Remove old logic for DCE threads from LIB_SPEC.
7791         * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
7792
7793 2003-08-25  Roger Sayle  <roger@eyesopen.com>
7794
7795         * builtins.c (expand_builtin_mathfn):  Rearrange so that we only
7796         return 0 for invalid argument types.  Instead drop through to a
7797         call of expand_call at the bottom of function.  If op is SQRT,
7798         try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
7799
7800 2003-08-25  Richard Henderson  <rth@redhat.com>
7801
7802         * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
7803         result when op0 is SImode.
7804
7805 2003-08-25  Nathanael Nerode  <neroden@twcny.rr.com>
7806
7807         * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
7808         from fixinc.svr4.
7809         * fixinc/fixincl.x: Regenerate.
7810         * fixinc/tests/base/sys/signal.h: Regenerate.
7811
7812 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
7813
7814         * combine.c (simplify_comparison): Re-enable widening of comparisons
7815         with non-paradoxical subregs of non-REG expressions.
7816
7817 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
7818
7819         * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
7820
7821 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
7822
7823         * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
7824
7825 2003-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7826
7827         * pretty-print.h (pp_maybe_newline_and_indent): New macro.
7828         * c-pretty-print.h (c_pretty_printer): Now typedef to the
7829         structure.  Be consistent with pretty-print.h abd cxx-pretty-print.h
7830         (struct c_pretty_print_info): Document.  Add new fields.
7831         (pp_type_specifier_seq): Rename from pp_c_type_specifier.
7832         (pp_direct_abstract_declarator): New macro.
7833         (pp_ptr_operator): Likewise.
7834         (pp_simple_type_specifier): Likewise.
7835         (pp_expression): Likewise.
7836         (pp_parameter_list): Rename from pp_parameter_declaration.
7837         * c-pretty-print.c (pp_c_whitespace): Now a function.
7838         (pp_c_left_paren): Likewise.
7839         (pp_c_right_paren): Likewise.
7840         (pp_c_dot): Likewise.
7841         (pp_c_ampersand): Likewise.
7842         (pp_c_arrow): Likewise.
7843         (pp_c_semicolon): Likewise.
7844         (pp_c_type_cast): New function.
7845         (pp_c_space_for_pointer_operator): Likewise.
7846         (pp_c_call_argument_list): Likewise.
7847         (pp_c_cv_qualifier): Adjust prototype.
7848         (pp_c_type_qualifier_list): Likewise.
7849         (pp_c_pointer): Likewise.  Handle REFERENCE_TYPE here.
7850         (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
7851         Adjust to follow standard grammar.
7852         (pp_c_specifier_qualifier_list): Adjusr prototype.  Handle
7853         REFERENCE_TYPE.  Tidy.
7854         (pp_c_parameter_type_list): Adjust prototype.  Tidy.
7855         (pp_c_parameter_declaration): Remove.
7856         (pp_c_abstract_declarator): Adjust prototype.
7857         (pp_c_direct_abstract_declarator): Likewise.
7858         (pp_c_type_id): Likewise.
7859         (pp_c_storage_class_specifier): Likewise.
7860         (pp_c_function_specifier): Likewise.
7861         (pp_c_declaration_specifiers): Likewise.
7862         (pp_c_direct_declarator): Likewise.
7863         (pp_c_declarator): Likewise.
7864         (pp_c_declarator): Likewise.
7865         (pp_c_declaration): Likewise.
7866         (pp_c_attributes): Likewise.  Tidy.
7867         (pp_c_function_definition): Adjust prototype.
7868         (pp_c_char): Likewise.
7869         (pp_c_string_literal): Likewise.
7870         (pp_c_integer_constant): Likewise.
7871         (pp_c_character_constant): Likewise.
7872         (pp_c_bool_constant): Likewise.
7873         (pp_c_enumeration_constant): Likewise.
7874         (pp_c_floating_constant): Likewise.
7875         (pp_c_constant): Likewise.
7876         (pp_c_identifier): Likewise.
7877         (pp_c_primary_expression): Likewise.  Remove TARGET_EXPR case.  Tidy.
7878         (pp_c_initializer): Adjust prototype.
7879         (pp_c_init_declarator): Likewise.
7880         (pp_c_initializer_list): Likewise.
7881         (pp_c_id_expression): Likewise.
7882         (pp_c_postfix_expression): Likewise.
7883         (pp_c_expression_list): Likewise.
7884         (pp_c_unary_expression): Likewise.
7885         (pp_c_cast_expression): Likewise.
7886         (pp_c_multiplicative_expression): Likewise.
7887         (pp_c_additive_expression): Likewise.
7888         (pp_c_shift_expression): Likewise.
7889         (pp_c_relational_expression): Likewise.
7890         (pp_c_equality_expression): Likewise.
7891         (pp_c_and_expression): Likewise.
7892         (pp_c_exclusive_or_expression): Likewise.
7893         (pp_c_inclusive_or_expression): Likewise.
7894         (pp_c_logical_and_expression): Likewise.
7895         (pp_c_logical_or_expression): Likewise.
7896         (pp_c_conditional_expression): Likewise.
7897         (pp_c_assignment_expression): Likewise.
7898         (pp_c_expression): Likewise.  Tidy.
7899         (pp_c_statement): Likewise.  Document.
7900         (pp_c_pretty_printer_init): Adjust prototype. Tidy.
7901
7902         * c-lang.c (c_initialize_diagnostics): Update.
7903         * c-common.h (strip_pointer_operator): Declare.
7904         * c-common.c (strip_pointer_operator): Define.
7905
7906 2003-08-25  Mark Mitchell  <mark@codesourcery.com>
7907
7908         PR c++/8795
7909         * tree.h (build_method_type_directly): Declare.
7910         * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
7911         (vector_size_helper): Likewise.
7912         * tree.c (build_method_type_directly): New function.
7913         (build_method_type): Use it.
7914
7915 2003-08-24  Richard Henderson  <rth@redhat.com>
7916
7917         * config/i386.i386.c (ix86_return_in_memory): Reformat.  Return true
7918         for 16-byte vector modes if sse not enabled; warn for abi change.
7919         (ix86_value_regno): Only return xmm0 for 16-byte vector types.
7920
7921 2003-08-24  Kazu Hirata  <kazu@cs.umass.edu>
7922
7923         * rtlanal.c (may_trap_p): Simplify an integer comparison.
7924
7925 2003-08-24  Nathanael Nerode  <neroden@gcc.gnu.org>
7926
7927         * fixinc/inclhack.def (AAB_svr4_replace_byteorder):  Enhance
7928         comment.  Enable for DYNIX/ptx systems (when they switch to
7929         regular fixincludes).
7930         * fixinc/fixincl.x: Regenerate.
7931
7932 2003-08-23  Jason Eckhardt  <jle@rice.edu>
7933
7934         * config/i860/t-i860: New.
7935         * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
7936
7937 2003-08-23  Jakub Jelinek  <jakub@redhat.com>
7938
7939         * c-decl.c (pushdecl): Only put decls which finish_struct will do
7940         something about onto incomplete chain.
7941         (finish_struct): If not removing type from incomplete
7942         list, update prev.
7943
7944 2003-08-20  Jan Hubicka  <jh@suse.cz>
7945
7946         PR target/11369
7947         * i386.c (ix86_expand_carry_flag_compare): Validate operand.
7948
7949         PR target/11031
7950         * i386.c (const_0_to_3_operand, const_0_to_7_operand,
7951         const_0_to_15_operand, const_0_to_255_operand): New predicates.
7952         * i386.h (PREDICATE_CODES): Add these.
7953         * i386.c (pinsrw and pextrw patterns): Use them.
7954
7955         PR target/10984
7956         * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
7957
7958         PR target/8869
7959         * expr.c (convert_modes): Deal properly with integer to vector
7960         constant conversion.
7961
7962         PR target/8871
7963         * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
7964
7965 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
7966
7967         * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
7968         * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
7969         ("*movhi"): ... this.
7970         ("movqi", "*movqi"): Likewise.
7971         ("movqi_64"): Remove.
7972         ("*zero_extendhisi2_31"): Change predicate to s_operand.
7973
7974 2003-08-23  Dale Johannesen  <dalej@apple.com>
7975         * calls.c (emit_library_call_value_1): Fix obvious errors in
7976         arguments to emit_group_store.
7977
7978 2003-08-23  Jason Eckhardt  <jle@rice.edu>
7979
7980         * calls.c (emit_library_call_value_1): Remove code related
7981         to LIBGCC_NEEDS_DOUBLE.
7982         * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
7983         * doc/tm.texi: Likewise.
7984         * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
7985
7986 2003-08-23  Richard Sandiford  <rsandifo@redhat.com>
7987
7988         * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
7989
7990 2003-08-23  Richard Sandiford  <rsandifo@redhat.com>
7991
7992         * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
7993         as well.  Put memory references in the varargs alias set.
7994         (mips_expand_prologue): Remove varargs handling from here.
7995
7996 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
7997
7998         * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
7999         s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
8000         s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
8001         for function pointer calls.
8002         * config/s390/s390.md ("*negdi2_31"): Likewise.
8003
8004 2003-08-23  Roger Sayle  <roger@eyesopen.com>
8005
8006         * combine.c (apply_distributive_law): Correct comment.
8007
8008 2003-08-23  Jason Eckhardt  <jle@rice.edu>
8009
8010         * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
8011
8012 2003-08-22  Jason Eckhardt  <jle@rice.edu>
8013
8014         * config/i860/i860.c (i860_build_va_list): Create the va_decl
8015         declaration.  Document the va_list structure.
8016         (i860_va_start): Initialize the va_list structure.
8017         (i860_va_arg): Rewrite completely.
8018         * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
8019         * config/i860/varargs.asm: Do not allocate or initialize
8020         a va_list.  Return the address of the register save area.
8021
8022 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
8023
8024         * config/iq2000/iq2000.c: Fix comment typos.
8025         * config/iq2000/iq2000.md: Likewise.
8026
8027 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
8028
8029         * config/iq2000/iq2000.c: Follow spelling conventions.
8030         * config/iq2000/iq2000.h: Likewise.
8031         * config/mn10300/mn10300.c: Likewise.
8032
8033 2003-08-22  Jason Eckhardt  <jle@rice.edu>
8034
8035         * config/i860/i860.c (output_move_double): Don't set latehalf
8036         to zero for CONST_INT (since it could be, e.g., -1).
8037
8038         * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
8039         (MODSI3_LIBCALL): ...with this one.
8040         (UREMSI3_LIBCALL): Replace this macro...
8041         (UMODSI3_LIBCALL): ...with this one.
8042
8043 2003-08-22  Jason Eckhardt  <jle@rice.edu>
8044
8045         * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
8046         (output_delayed_branch): Remove prototype.
8047         (single_insn_src_p): Remove prototype.
8048         * config/i860/i860.c (single_insn_src_p): Remove function.
8049         (output_delayed_branch): Remove function.
8050         (output_delay_insn): Remove function.
8051         (va_start): Remove unconditional test and dead code, re-format.
8052         Fix coding style and spelling problems in various comments.
8053         * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
8054         (blockage pattern): ...and use it here.
8055         (all define_peephole patterns related to delayed branches): Remove.
8056         Fix coding style and spelling problems in various comments.
8057
8058 2003-08-22  Jason Eckhardt  <jle@rice.edu>
8059
8060         * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
8061         Remove all uses of the PARAMS macro.  Remove superflous prototypes.
8062         Convert all function definitions from traditional to ISO C90 syntax.
8063         * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
8064         with 'GCC'.  Remove all uses of the PARAMS macro.
8065         * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
8066         * config/i860/i860.md: Likewise.
8067         * config/i860/sysv4.h: Likewise.
8068         * config/i860/varargs.asm: Likewise.
8069
8070 2003-08-22  Jason Eckhardt  <jle@rice.edu>
8071
8072         * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
8073         argument.
8074         (tdesc_section): Add prototype.
8075         Update copyright dates.
8076         * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
8077         (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
8078         (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
8079         (targetm): Likewise.
8080         (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
8081         for '%d' where necessary.
8082         (i860_va_start): Remove 'stdarg_p' argument.  Make conditional checks
8083         on 'stdarg_p' unconditional.  Divide current_function_args_info.ints
8084         by UNITS_PER_WORD when referencing (likewise for .floats).
8085         (I860_SVR4_VARARGS): Rename...
8086         (I860_SVR4_VA_LIST): ...to this.
8087         Call build() with 't' rather than 'field'.
8088         (i860_rtx_costs): New function.
8089         (TARGET_RTX_COSTS): Define.
8090         (i860_internal_label): New function.
8091         (TARGET_ASM_INTERNAL_LABEL): Define.
8092         (i860_file_start): New function.
8093         Update copyright dates.
8094         * config/i860/i860.h (CPP_PREDEFINES): Remove.
8095         (TARGET_CPU_CPP_BUILTINS): Define.
8096         (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
8097         (CONST_COSTS): Remove (and move code to i860_rtx_costs).
8098         (ASM_FILE_START): Remove.
8099         (ASM_FILE_START_1): Remove.
8100         (ASM_GLOBALIZE_LABEL): Remove.
8101         (ASM_OUTPUT_INTERNAL_LABEL): Remove.
8102         (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
8103         with targetm.asm_out.internal_label.
8104         Update copyright dates.
8105         * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
8106         (CPP_PREDEFINES): Remove.
8107         (TARGET_OS_CPP_BUILTINS): Define.
8108         (GLOBAL_ASM_OP): Define.
8109         (ASM_FILE_START): Remove.
8110         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
8111         (TARGET_ASM_FILE_START): Define.
8112         Update copyright dates.
8113
8114 2003-08-22  Jason Eckhardt  <jle@rice.edu>
8115
8116         * gcc/config.gcc (i860-*-sysv4*): Add target.
8117         * config/i860/i860-protos.h: New.
8118         * config/i860/i860.c: New.
8119         * config/i860/i860.h: New.
8120         * config/i860/i860.md: New.
8121         * config/i860/sysv4.h: New.
8122         * config/i860/varargs.asm: New.
8123         * config/i860/x-sysv4: New.
8124
8125 2003-08-22  Jason Eckhardt  <jle@rice.edu>
8126
8127         * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
8128         Remove all uses of PARAMS macro.
8129         Convert all function definitions to ISO C90 syntax.
8130         * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
8131         * config/pa/fptr.c: Likewise.
8132         * config/pa/lib2funcs.asm: Likewise.
8133         * config/pa/long_double.h: Likewise.
8134         * config/pa/milli64.S: Likewise.
8135         * config/pa/pa-64.h: Likewise.
8136         * config/pa/pa-hpux.h: Likewise.
8137         * config/pa/pa-hpux10.h: Likewise.
8138         * config/pa/pa-hpux11.h: Likewise.
8139         * config/pa/pa-linux.h: Likewise.
8140         * config/pa/pa-modes.def: Likewise.
8141         * config/pa/pa-osf.h: Likewise.
8142         * config/pa/pa-pro-end.h: Likewise.
8143         * config/pa/pa.md: Likewise.
8144         * config/pa/pa32-linux.h: Likewise.
8145         * config/pa/pa64-linux.h: Likewise.
8146         * config/pa/pa64-hpux.h: Likewise.
8147         * config/pa/pa64-regs.h: Likewise.
8148         * config/pa/quadlib.c: Likewise.
8149         * config/pa/rtems.h: Likewise.
8150         * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
8151         all uses of the PARAMS macro.
8152         * config/pa/pa.h: Likewise.
8153         * config/pa/som.h: Likewise.
8154
8155         * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
8156         Remove all uses of PARAMS macro.
8157         Convert all function definitions to ISO C90 syntax.
8158         * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
8159         Remove all uses of PARAMS macro.
8160         * config/iq2000.h: Remove all uses of PARAMS macro.
8161         * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
8162
8163 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
8164
8165         * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
8166         * config/s390/s390.c (gen_consttable): Remove.
8167         (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
8168         (s390_output_pool_entry): New function.
8169         * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
8170         UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
8171         UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
8172         (UNSPECV_POOL_ENTRY): ... this new constant.
8173         ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
8174         "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
8175         ("*pool_entry"): ... and replace by this new insn.
8176         ("literal_pool_31"): Do not emit anchor label if pool empty.
8177
8178         * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
8179         (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
8180         (s390_fixup_clobbered_return_reg): Remove.
8181         (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
8182         (s390_return_addr_rtx): Always retrieve return address from save area
8183         slot.  Use save_return_addr_p to force slot to be filled.
8184         (s390_emit_prologue): Remove has_hard_reg_initial_val test.
8185
8186 2003-08-22  Chris Demetriou  <cgd@broadcom.com>
8187
8188         * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
8189         (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
8190         * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
8191         around SB-1 errata if TARGET_FIX_SB1 is set.
8192         (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
8193         * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
8194
8195 2003-08-22  Roger Sayle  <roger@eyesopen.com>
8196
8197         * hashtable.c (ht_expand): Avoid calculating rehash for the common
8198         case that the first probe hits an empty hash table slot.
8199
8200 2003-08-22  Mark Mitchell  <mark@codesourcery.com>
8201
8202         * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
8203
8204 2003-08-22  Mark Mitchell  <mark@codesourcery.com>
8205
8206         * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
8207         (ptr_extend_plus_imm): ... this.
8208         * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
8209         optimization in C++.
8210         (ia64_output_mi_thunk): Support ILP32 mode.
8211
8212 2003-08-22  Bernardo Innocenti  <bernie@develer.com>
8213
8214         * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
8215         function.
8216         * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
8217
8218 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
8219
8220         * config/i386/i386.c (const_int_1_operand): Simplify an
8221         integer comparison.
8222
8223 2003-08-22  Alan Modra  <amodra@bigpond.net.au>
8224
8225         * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
8226         * config/rs6000/ppc64-fp.c: Likewise.
8227
8228 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
8229
8230         * cfgcleanup.c: Fix comment typos.
8231         * emit-rtl.c: Likewise.
8232         * optabs.c: Likewise.
8233         * ra-build.c: Likewise.
8234         * rtlanal.c: Likewise.
8235         * tree.h: Likewise.
8236
8237 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
8238
8239         * c-decl.c: Fix comment formatting.
8240         * cfgrtl.c: Likewise.
8241         * combine.c: Likewise.
8242         * convert.c: Likewise.
8243         * dominance.c: Likewise.
8244         * dwarf2out.c: Likewise.
8245         * dwarfout.c: Likewise.
8246         * expmed.c: Likewise.
8247         * fold-const.c: Likewise.
8248         * gcov.c: Likewise.
8249         * genattrtab.c: Likewise.
8250         * ggc-common.c: Likewise.
8251         * mips-tfile.c: Likewise.
8252         * regmove.c: Likewise.
8253
8254 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
8255
8256         * builtin-attrs.def: Fix comment formatting.
8257         * c-pretty-print.c: Likewise.
8258         * diagnostic.h: Likewise.
8259         * langhooks.h: Likewise.
8260         * recog.c: Likewise.
8261         * simplify-rtx.c: Likewise.
8262         * tree.def: Likewise.
8263
8264 2003-08-22  Bernardo Innocenti  <bernie@develer.com>
8265
8266         * config/m68k/m68k-protos.h: Convert to ISO C90.
8267         * config/m68k/m68k.c: Likewise.
8268
8269 2003-08-21  Bernardo Innocenti  <bernie@develer.com>
8270             Paul Dale  <pauli@snapgear.com>
8271             Peter Barada <peter@baradas.org>
8272
8273         * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
8274         ColdFire cores.
8275
8276 2003-08-21  Zack Weinberg  <zack@codesourcery.com>
8277
8278         * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
8279         * config.gcc (*-*-openbsd): Don't set tm_file.
8280         (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
8281         arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
8282         h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
8283         i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
8284         i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
8285         m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
8286         m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
8287         m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
8288         mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
8289         sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
8290         xscale-*-coff): Use explicit and complete lists of target headers
8291         to include.  Move definitions to tm_defines where appropriate.
8292         (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
8293         not-yet-contributed configuration.
8294
8295         * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
8296         * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
8297         * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
8298         * config/i386/nto.h, config/iq2000/iq2000.h,
8299         * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
8300         * config/m68k/linux.h, config/m68k/m68k-aout.h
8301         * config/m68k/m68k-none.h, config/m68k/m68kv4.h
8302         * config/m68k/netbsd.h, config/m68k/openbsd.h
8303         * config/m68k/sgs.h, config/mcore/mcore-pe.h,
8304         * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
8305         * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
8306         Remove includes of other target config headers, and
8307         definitions of macros moved to tm_defines lists.  Add #undefs
8308         where now necessary to prevent redefinition warnings.
8309
8310         * config/h8300/coff.h: New file split out of...
8311         * config/h8300/elf.h: ...here.
8312         * config/m68k/hp320base.h: New file split out of...
8313         * config/m68k/hp320.h: ...here.
8314         * config/rs6000/lynxbase.h: New file split out of...
8315         * config/rs6000/lynx.h: ...here.
8316
8317         * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
8318         * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
8319
8320         * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
8321         * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
8322         * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
8323         Remove unnecessary #ifndef.
8324         * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
8325         [under IN_LIBGCC2] with config/.
8326
8327 2003-08-21  Per Bothner  <pbothner@apple.com>
8328
8329         * cppfiles.c (stack_file):  Correctly pass return_at_eof parameter
8330         to cpp_push_buffer.
8331         * cpplex.c (_cpp_get_fresh_line):  Don't buffer->prev - handled
8332         by return_at_eof check.  Always call _cpp_pop_buffer at end.
8333
8334 2003-08-21  Kazu Hirata  <kazu@cs.umass.edu>
8335
8336         PR target/11805
8337         * config/h8300/h8300.md (two anonymous patterns): Remove.
8338
8339 2003-08-21  Richard Sandiford  <rsandifo@redhat.com>
8340
8341         * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
8342         * config/mips/mips.c (function_arg_pass_by_reference): Never return
8343         true for n32 & n64.
8344
8345 2003-08-21  Josef Zlomek  <zlomekj@suse.cz>
8346
8347         * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
8348         and similarly in (A | C) == D where C & ~D != 0.
8349
8350 2003-08-20  Geoffrey Keating  <geoffk@apple.com>
8351
8352         PR 8180
8353         * configure.in: When testing with_libs and with_headers, treat
8354         'no' as unset.  Based on a patch by Dan Kegel <dank@kegel.com>.
8355         * configure: Regenerate.
8356
8357 2003-08-20  Peter Barada <peter@baradas.org>
8358
8359         * longlong.h (umul_ppmm): Add ColdFire support.
8360
8361 2003-08-20  Peter Barada <peter@baradas.org>
8362             Bernardo Innocenti  <bernie@develer.com>
8363
8364         * config/m68k/m68k-none.h: Introduce new ColdFire archs.
8365         * config/m68k/m68k.h: Likewise.
8366         * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
8367         * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
8368         * config/m68k/linux.h: Likewise.
8369         * config/m68k/m68k.c: Likewise.
8370         * config/m68k/m68k.md: Likewise.
8371         * config/m68k/m68kelf.h: Likewise.
8372         * config/m68k/netbsd-elf.h: Likewise.
8373         * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
8374
8375 2003-08-20  Bernardo Innocenti  <bernie@develer.com>
8376
8377         * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
8378         * config/m68k/m68k.md: Likewise.
8379
8380 2003-08-20  Mark Mitchell  <mark@codesourcery.com>
8381
8382         PR java/11996
8383         Revert this change:
8384         2003-08-19  Mark Mitchell  <mark@codesourcery.com>
8385         * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
8386         types with precisions other than those given by native machine
8387         modes.
8388
8389 2003-08-20  Gunther Nikl  <gni@gecko.de>
8390
8391         * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
8392         selected by FSGLMUL_USE_S and FSGLDIV_USE_S
8393         * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
8394         * config/m68k/m68k.md (anonymous define_insn): Likewise
8395         * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
8396         * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
8397         code selected by NO_ASM_FMOVECR
8398
8399 2003-08-20  Gunther Nikl  <gni@gecko.de>
8400
8401         * config/m68k/m68k.c (output_move_const_into_data_reg,
8402         output_move_himode): unify MOTOROLA/MIT handling of moveq
8403         * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
8404         Likewise
8405
8406 2003-08-20  Gunther Nikl  <gni@gecko.de>
8407
8408         * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
8409         label name
8410         * config/m68k/m68k.c (m68k_output_function_epilogue): replace
8411         HOST_WIDE_INT_PRINT_DEC with %wd
8412
8413 2003-08-20  Loren James Rittle  <ljrittle@acm.org>
8414
8415         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
8416         redefine warning.
8417
8418 2003-08-20  Roger Sayle  <roger@eyesopen.com>
8419
8420         PR middle-end/11984
8421         * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
8422         operands before calling tree_int_cst_lt when performing associative
8423         transformations.
8424
8425 2003-08-20  Jason Merrill  <jason@redhat.com>
8426
8427         * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
8428         (EXPR_CHECK): Don't check for 'r' or 's' if we're
8429         checking IS_EXPR_CODE_CLASS.
8430         * calls.c (calls_function_1): Likewise.
8431         * fold-const.c (fold): Likewise.
8432         * tree.c (iterative_hash_expr): Likewise.
8433         * tree-inline.c (walk_tree, copy_tree_r): Likewise.
8434
8435 2003-08-20  Gunther Nikl  <gni@gecko.de>
8436
8437         * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
8438         depending on MOTOROLA_BSR
8439         * config/m68k/m68k.md (anonymous define_insn): Likewise
8440
8441 2003-08-20  Jason Merrill  <jason@redhat.com>
8442
8443         * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
8444         (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
8445         fold_trunc_transparent_mathfn, fold_builtin): Likewise.
8446         * dojump.c (do_jump): Likewise.
8447         * fold-const.c (operand_equal_p, fold): Likewise.
8448         (tree_expr_nonnegative_p): Likewise.
8449
8450         * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
8451         TYPE_USER_ALIGN for FIELD_DECLs.
8452
8453         * attribs.c (decl_attributes): Rebuild the function pointer type after
8454         changing the target type.
8455         * tree.c (get_qualified_type): Also check that the attributes match.
8456
8457 2003-08-19  Matt Kraai  <kraai@alumni.cmu.edu>
8458
8459         * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
8460         * objc/config-lang.in (stagestuff): ... to here.
8461
8462 2003-08-19  Mark Mitchell  <mark@codesourcery.com>
8463
8464         PR c++/11946
8465         * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
8466         NOP_EXPR) when necessary.
8467         * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
8468         types with precisions other than those given by native machine
8469         modes.
8470
8471 2003-08-19  Geoffrey Keating  <geoffk@apple.com>
8472
8473         * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
8474         because some macro is defined.
8475
8476         * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
8477         options.
8478         * config/i386/darwin.h (ASM_SPEC): New.
8479         (SUBTARGET_EXTRA_SPECS): New.
8480         * config/rs6000/darwin.h (ASM_SPEC): New.
8481         (SUBTARGET_EXTRA_SPECS): New.
8482         * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
8483         a cross-compiler between two different processors on Darwin.
8484         * configure: Regenerate.
8485
8486 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
8487
8488         * builtins.c: Fix comment typos.
8489         * c-common.c: Likewise.
8490         * c-decl.c: Likewise.
8491         * c-pretty-print.c: Likewise.
8492         * cfgbuild.c: Likewise.
8493         * cfglayout.c: Likewise.
8494         * cfgloopanal.c: Likewise.
8495         * cgraphunit.c: Likewise.
8496         * cppfiles.c: Likewise.
8497         * dwarfout.c: Likewise.
8498         * expr.c: Likewise.
8499         * fold-const.c: Likewise.
8500         * gcse.c: Likewise.
8501         * ggc-page.c: Likewise.
8502         * haifa-sched.c: Likewise.
8503         * pretty-print.c: Likewise.
8504         * tree.c: Likewise.
8505         * tree.h: Likewise.
8506         * value-prof.c: Likewise.
8507
8508 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
8509
8510         * c-decl.c: Follow spelling conventions.
8511         * cppfiles.c: Likewise.
8512
8513 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
8514
8515         * c-common.c: Fix comment formatting.
8516         * c-common.h: Likewise.
8517         * c-decl.c: Likewise.
8518         * cppinit.c: Likewise.
8519         * cpplib.h: Likewise.
8520         * emit-rtl.c: Likewise.
8521         * input.h: Likewise.
8522         * line-map.h: Likewise.
8523         * opts.c: Likewise.
8524         * opts.h: Likewise.
8525         * simplify-rtx.c: Likewise.
8526
8527 2003-08-19  Daniel Jacobowitz  <drow@mvista.com>
8528
8529         * unwind-c.c: Add libgcc-style exception.
8530         * unwind-dw2.c: Likewise.
8531         * unwind-pe.h: Likewise.
8532         * unwind-sjlj.c: Likewise.
8533         * unwind.inc: Likewise.
8534
8535 2003-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
8536
8537         PR c/5582 PR c++/10538
8538         * langhooks-def.h (lhd_decl_uninit): Declare.
8539         (LANG_HOOKS_DECL_UNINIT): New macro.
8540         (LANG_HOOKS_INITIALIZER): Adjust.
8541         * langhooks.h (struct lang_hooks): Add new field
8542         decl_uninit.
8543         * langhooks.c (lhd_decl_uninit): Define.
8544         * c-common.c (c_decl_uninit_1): New function.
8545         (c_decl_uninit): New function.
8546         (warn_init_self): Define.
8547         * c-common.h (c_decl_uninit): Declare.
8548         (warn_init_self): Declare.
8549         * c.opt: Introduce -Winit-self.
8550         * c-opts.c (c_common_handle_options): Set warn_init_self.
8551         * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
8552         * objc/objc-lang.c  (LANG_HOOKS_DECL_UNINIT): Define.
8553         * function.c (uninitialized_vars_warning): Call the language hook.
8554         * doc/invoke.texi: Document -Winit-self.
8555
8556 2003-08-19  Chris Demetriou  <cgd@broadcom.com>
8557
8558         * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
8559         to use better predicates and constraints.  Define new
8560         instruction to handle "trap_if" with DI-mode arguments.
8561         (conditional_trap): FAIL if trap code is not 0.
8562
8563 2003-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
8564
8565         * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
8566         strstr with $pb to a strcompare with "<pic base>"
8567         (ix86_output_addr_diff_elt): Output the real pic base.
8568
8569 2003-08-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8570
8571         * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
8572         (LANG_HOOKS_INITIALIZER): Correct.
8573         * c-lang.c: Likewise.
8574
8575 2003-08-19  Jan Hubicka  <jh@suse.cz>
8576
8577         * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
8578         (cgraph_varpool_mark_needed_node): Likewise.
8579         * cgraph.h (notice_global_symbol): Declare
8580         * varasm.c (notice_global_symbol): Break out from ...
8581         (assemble_start_function): ... here; update for variables.
8582         (assemble_variable): Use notice_global_symbol.
8583
8584 2003-08-19  Richard Sandiford  <rsandifo@redhat.com>
8585
8586         * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
8587         expect SFmode and DFmode arguments to be passed in FPRs,
8588         regardless of the underlying type.
8589
8590 2003-08-19  Richard Sandiford  <rsandifo@redhat.com>
8591
8592         PR target/11924
8593         * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
8594         (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
8595
8596 2003-08-18  Matt Kraai  <kraai@alumni.cmu.edu>
8597
8598         PR c/11207
8599         * c-typeck.c (set_init_index): Check for negative index.
8600
8601 2003-08-18  Bob Wilson  <bob.wilson@acm.org>
8602
8603         * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
8604         call0 ABI.
8605         * config/xtensa/crtn.asm (_init, _fini): Likewise.
8606         * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
8607         __umodsi3, __modsi3): Likewise.
8608         * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
8609         $(INCLUDES).
8610
8611 2003-08-18  Aldy Hernandez  <aldyh@redhat.com>
8612
8613         * config/rs6000/spe.md ("*nabssf2_gpr"): New.
8614
8615 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
8616
8617         * config/mips/mips.md: Quote C code in braces.  Remove use of
8618         fake const0_rtx operands.  Remove double backslashes.  Use \;.
8619         Remove workarounds for bogus warnings.
8620
8621 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
8622
8623         * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
8624         (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
8625         rather than TARGET_MIPS4300.
8626         (mulsf3_internal, mulsf3_r4300): Likewise.
8627
8628 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
8629
8630         * config/mips/mips.md: Renumber unspecs.  Clean up comments.
8631
8632 2003-08-17  Roger Sayle  <roger@eyesopen.com>
8633
8634         * simplify-rtx.c (associative_constant_p): New function to test
8635         whether an RTX expression is an immediate constant.
8636         (simplify_associative_operation): New function to perform some
8637         reassociation optimizations of associative binary expressions.
8638         (simplify_binary_operation): Use simplify_associative_operation
8639         to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
8640         Floating point expressions are only reassociated when unsafe
8641         math optimizations are permitted.
8642
8643 2003-08-17  Andreas Jaeger  <aj@suse.de>
8644
8645         * config/alpha/alpha.md: Remove usage of PARAMS.
8646
8647         * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
8648         * config/i386/i386-interix.h: Likewise.
8649         * config/i386/winnt.c: Likewise.
8650         * config/i386/cygming.h: Likewise.
8651         * config/i386/cygwin2.c: Likewise.
8652         * config/darwin.c: Likewise.
8653         * config/darwin-c.c: Likewise.
8654         * config/darwin-protos.h: Likewise.
8655         * config/darwin.h: Likewise.
8656         * config/s390/s390-protos.h: Likewise.
8657         * config/s390/s390.c: Likewise.
8658         * config/ia64/ia64.c: Likewse
8659         * config/ia64/ia64-protos.h: Likewise.
8660         * config/ia64/ia64-c.c: Likewise.
8661
8662 2003-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8663
8664         * config/sparc/sparc.c: Convert to ISO C.
8665
8666         * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
8667         * config/sparc/sparc.c: Likewise.
8668
8669 2003-08-16  Nathan Sidwell  <nathan@codesourcery.com>
8670
8671         PR c++/11512
8672         * stmt.c (expand_expr_stmt_value): Don't warn about any void
8673         typed expression.
8674
8675 2003-08-16  Jan Hubicka  <jh@suse.cz>
8676
8677         * i386.c (ix86_fntype_regparm): Rename from ...
8678         (ix86_function_regparm): ... this one; add fastcall and local
8679         functions.
8680         (ix86_function_ok_for_sibcall): Update.
8681         (ix86_return_pops_args): Likewise.
8682         (init_cumulative_args): Likewise.
8683         (x86_can_output_mi_thunk): Likewise.
8684         (function_arg): Fix formating.
8685         (x86_this_parameter): Fix fastcall.
8686         (x86_output_mi_thunk): Likewise.
8687
8688         * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
8689         body as reachable; mark nested functions as needed too.
8690         (dump_cgraph): Do not output global.calls.
8691         * cgraph.h (cgraph_global_info): Kill.
8692         * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
8693         (record_call_1): Speedup.
8694         (cgraph_analyze_function): Break out from ...; compute inlining
8695         parameters.
8696         (cgraph_finalize_compilation_unit): ... here.
8697         (cgraph_mark_inline): Kill computation of calls.
8698         (cgraph_decide_inlining): Do not compute most of initial values.
8699
8700 2003-08-14  Roger Sayle  <roger@eyesopen.com>
8701
8702         * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
8703         to negate if either operand is easy to negate, if we don't care
8704         about sign-dependent rounding.
8705         (negate_expr): Make the logic to negate a REAL_CST explicit.
8706         Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
8707         that's easy to negate, if we don't honor sign-dependent rounding.
8708         (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
8709         negate, and the symmetric A * -B as -A * B if A is easy to negate.
8710         (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
8711         -C/D if B and C are cheap to negate.  Add an explicit rule to
8712         optimize X/-1.0 as -X when we don't care about signaling NaNs.
8713
8714 2003-08-14  Zack Weinberg  <zack@codesourcery.com>
8715
8716         * Makefile.in (tm_file): Rename tm_include_list.
8717         (tm_p_file): Rename tm_p_include_list.
8718         (build_xm_file): Rename build_xm_include_list.
8719         (host_xm_file): Rename host_xm_include_list.
8720         (xm_file): Rename xm_include_list.
8721         (xm_file_list): Add to be substituted.
8722         (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
8723         Update to match.
8724         (bt-load.o): Add missing dependency on $(TM_H).
8725         * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
8726         For each of tm_file, tm_p_file, xm_file, host_xm_file, and
8727         build_xm_file, generate both *_file_list and *_include_list
8728         values from it.  (xm_file_list was formerly not being generated.)
8729         In *_include_list, prefix the names of all headers found in
8730         $(srcdir)/config with config/.  In each loop, consider only
8731         the special case files that can actually appear in that list.
8732         AC_SUBST all *_file_list and all *_include_list variables; do
8733         not AC_SUBST the plain *_file variables.
8734         * configure: Regenerate.
8735
8736 2003-08-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8737
8738         * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
8739
8740 2003-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8741
8742         * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
8743         direct calls.
8744         (attr_length_call): Include it here.  Improve length estimate for
8745         local calls.
8746         (output_call): Use targetm.binds_local_p.
8747
8748 2003-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8749
8750         * builtins.c (CASE_MATHFN): New helper macro.
8751         (mathfn_built_in): Simplify and sort.
8752
8753         * protoize.c (substr): Delete, callers changed to `strstr'.
8754
8755 2003-08-13  Zack Weinberg  <zack@codesourcery.com>
8756
8757         * config.gcc (iq2000*-*-elf*): Don't set xm_file.
8758         * config/iq2000/xm-iq2000.h: Delete file.
8759
8760 2003-08-13  Geoffrey Keating  <geoffk@apple.com>
8761
8762         * gengtype.c (walk_type): Process a subobject before processing
8763         the pointer that points to the subobject.
8764
8765 2003-08-13  Per Bothner  <pbothner@apple.com>
8766
8767         * regclass.c (init_reg_modes):  Make non-static.
8768         Rename to init_reg_modes_once per new naming convention.
8769         (init_regs):  Don't call init_reg_modes here.
8770         * emit-rtl.c (init_emit_once):  Call init_reg_modes_once here instead.
8771         * rtl.h (init_reg_modes_once):  New declaration.
8772         * toplev.c (backend_init):  Call init_regs after init_emit_once.
8773
8774 2003-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
8775
8776         * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
8777         special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
8778
8779 2003-08-13  J"orn Rennecke <joern.rennecke@superh.com>
8780
8781         * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
8782         * sh.md (load_ra): Change insn predicate to TARGET_SH1.
8783
8784 2003-08-13  Dale Johannesen  <dalej@apple.com>
8785
8786         * config/rs6000/rs6000.md (ctrsi, ctrdi):  Reenable
8787         handling of decrement-and-branch farther than 32 bits.
8788
8789 2003-08-12  Kelley Cook  <kelleycook@wideopenwest.com>
8790
8791         * configure.in (make_compare_target): Move test to ...
8792         * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
8793         * configure: Regenerate.
8794
8795 2003-08-12  Richard Sandiford  <rsandifo@redhat.com>
8796
8797         * config/mips/iris6.h: Convert to C90 prototypes.
8798         * config/mips/irix6-libc-compat.c: Likewise.
8799         * config/mips/mips-protos.h: Likewise.
8800         * config/mips/mips.c: Likewise.
8801
8802 2003-08-12  Nathanael Nerode  <neroden@gcc.gnu.org>
8803
8804         fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel.  Enable
8805         for selected machines.  Comment heavily.
8806         fixinc/fixincl.x: Rebuild.
8807         fixinc/tests/base/fs/rfs/rf_cache.h: New file.
8808
8809 2003-08-12  Richard Sandiford  <rsandifo@redhat.com>
8810
8811         * config/mips/mips.h: Tweak various comments.
8812         * config/mips/mips.c: Likewise.
8813
8814 2003-08-11  James E Wilson  <wilson@tuliptree.org>
8815
8816         PR optimization/11319
8817         PR target/10021
8818         * alias.c (find_base_value, case REG): Return 0 not src if no base
8819         found.
8820
8821 2003-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8822
8823         * gcse.c (gmalloc): Fix last change.
8824
8825 2003-08-11  Roger Sayle  <roger@eyesopen.com>
8826
8827         * simplify-rtx.c (simplify_binary_operation): Replace calls to
8828         gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
8829         and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
8830         gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
8831
8832 2003-08-11  Roger Sayle  <roger@eyesopen.com>
8833
8834         * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
8835         * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
8836         typecode for an ABS_EXPR.
8837
8838         * doc/c-tree.texi: Document ABS_EXPR.
8839
8840 2003-08-11  Roger Sayle  <roger@eyesopen.com>
8841
8842         * fold-const.c (fold): Optimize any associative floating point
8843         operator with -funsafe-math-optimizations, not just MULT_EXPR.
8844
8845 2003-08-11  Kaz Kojima  <kkojima@gcc.gnu.org>
8846
8847         * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
8848         information in SHmedia case too.
8849         (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
8850         Likewise.
8851         (__set_fpscr): Use an access via GOT for PIC case.
8852
8853 2003-08-11  Kelley Cook  <kelleycook@wideopenwest.com>
8854
8855         * configure.in (intermodule): Make switch test more portable.
8856         * configure: Regenerate.
8857
8858 2003-08-11  Kelley Cook  <kelleycook@wideopenwest.com>
8859
8860         * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
8861         (restrap): Likewise.
8862
8863 2003-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8864
8865         * gcse.c (gmalloc): Argument is a size_t.  Add ATTRIBUTE_MALLOC.
8866         (grealloc): Size argument is a size_t.
8867         (gcalloc): New function.  Use throughout in lieu of
8868         gmalloc/memset.
8869
8870         * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
8871         xmalloc/memset.
8872         * config/ia64/ia64.c (ia64_reorg): Likewise.
8873         * conflict.c (conflict_graph_new): Likewise.
8874         * fixinc/fixincl.c (run_compiles): Likewise.
8875         * genattrtab.c (optimize_attrs): Likewise.
8876         * genrecog.c (new_decision): Likewise.
8877         * haifa-sched.c (schedule_block): Likewise.
8878         * hashtable.c (ht_create): Likewise.
8879
8880 2003-08-11  Bob Wilson  <bob.wilson@acm.org>
8881
8882         * config/xtensa/lib2funcs.S: Fix whitespace.
8883         * config/xtensa/xtensa.md (all insns and expanders): Use brace block
8884         syntax where appropriate.  Remove unnecessary backslash escapes.
8885         Reformat comments and fix some code formatting.
8886         (extendqisi2): Rearrange conditional.
8887         (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
8888         *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
8889         of fatal_insn.
8890
8891 2003-08-11  Richard Sandiford  <rsandifo@redhat.com>
8892
8893         * config/mips/mips.c: Various formatting fixes.
8894         (override_options): Resync -mtune handling with gas.
8895         (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
8896         * config/mips/mips.h: More formatting fixes.
8897         (mips_abi): Move declaration.
8898         * config/mips/mips.md (exception_receiver): Add mode to
8899         unspec_volatile.
8900
8901 2003-08-11  Aldy Hernandez  <aldyh@redhat.com>
8902
8903         * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
8904         evsplatfi here.
8905         (bdesc_1arg): Remove evsplati and evsplatfi.
8906
8907 2003-08-11  J"orn Rennecke <joern.rennecke@superh.com>
8908
8909         * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
8910         into account.
8911
8912 2003-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8913
8914         * builtins.c (expand_builtin_strcat): Optimize constant strings.
8915
8916 2003-08-10  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8917
8918         * pretty-print.c (pp_base_indent): Rename from pp_indent.
8919         * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
8920         (struct c_pretty_print_info): Add more fields.
8921         (pp_c_left_paren): Move to c-pretty-print.c.
8922         (pp_c_right_paren): Likewise.
8923         (pp_c_left_brace): Likewise.
8924         (pp_c_right_brace): Likewise.
8925         (pp_c_left_bracket): Likewise.
8926         (pp_c_right_bracket): Likewise.
8927         (pp_c_declarator): Declare.
8928         (pp_c_direct_declarator): Likewise.
8929         (pp_c_specifier_qualifier_list): Likewise.
8930         (pp_c_type_id): Likewise.
8931         * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
8932         (pp_c_type_qualifier_list): New.
8933         (pp_c_pointer): Likewise.
8934         (pp_c_parameter_type_list): Likewise.
8935         (pp_c_function_definition): Likewise.
8936         (pp_c_id_expression): Likewise.
8937         (pp_c_simple_type_specifier): Tidy.
8938         (pp_c_unary_expression): Likewise.
8939         (pp_c_expression): Likewise.
8940         (pp_c_pretty_printer_init): Likewise.
8941         (pp_c_specifier_qualifier_list): Rework..
8942         (pp_c_abstract_declarator): Likewise.
8943         (pp_c_postfix_expression): Likewise.
8944         (pp_c_primary_expression): Likewise.
8945         (pp_c_cast_expression): Likewise.
8946         (pp_c_direct_abstract_declarator): Likewise.
8947         (pp_c_storage_class_specifier): Likewise.
8948         (pp_c_function_specifier): Likewise.
8949         (pp_c_declaration_specifiers): Likewise.
8950         (pp_c_direct_declarator): Likewise.
8951         (pp_c_declarator): Likewise.
8952         (pp_c_declaration): Likewise.
8953         (pp_c_statement): Likewise.
8954         (pp_c_integer_constant): Rename from pp_c_integer_literal.
8955         (pp_c_character_constant): Rename from pp_c_character_literal.
8956         (pp_c_bool_constant): Rename from pp_c_bool_literal.
8957         (pp_c_enumeration_constant): Rename from pp_c_enumerator.
8958         (pp_c_floating_constant): Rename from pp_c_real_literal.
8959         (pp_c_constant): Rename from pp_c_literal.
8960         * c-lang.c: Include diagnostic.h and c-pretty-print.h
8961         (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
8962         (c_initialize_diagnostics): New.
8963         * Makefile.in (c-lang.o): Update dependency.
8964
8965 2003-08-10  Nathan Sidwell  <nathan@codesourcery.com>
8966
8967         * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
8968
8969 2003-08-10  Richard Sandiford  <rsandifo@redhat.com>
8970
8971         * config/mips/mips.c (mips_no_mips16_string): Remove.
8972         (override_options): Don't handle -mips16 as part of -mipsN.
8973         * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
8974         (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
8975         (TARGET_OPTIONS): Remove -mno-mips16.
8976
8977 2003-08-10  Richard Sandiford  <rsandifo@redhat.com>
8978
8979         * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
8980         (coprocessor2_operand): Likewise.
8981         * config/mips/mips.c (STAB_CODE_TYPE): Remove.
8982         (lookup_name): Remove declaration.
8983         (abort_with_insn): Remove.  Replace all uses with fatal_insn.
8984         (mips16, mips_abicalls): Remove.
8985         (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
8986         (arith32_operand, large_int, true_reg_or_0_operand): Remove.
8987         (coprocessor_operand, coprocessor2_operand): Remove.
8988         (override_options): Don't set mips16 or mips_abicalls.
8989         (print_operand): Don't expect SIGN_EXTEND operands.
8990         (mips_secondary_reload_class): Likewise.
8991         (mips_output_conditional_branch): Remove disabled long-branch code.
8992         * config/mips/mips.h (call_used_regs): Remove declaration.
8993         (may_call_alloca): Likewise.
8994         (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
8995         (mips_abicalls, mips16): Remove declarations.
8996         (ASM_FINAL_SPEC, LIB_SPEC): Remove.
8997         (CC1_SPEC): Remove outdated comment.
8998         (MIPS_VERSION, MACHINE_TYPE): Remove.
8999         (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9000         (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
9001         (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
9002         (PUSH_ROUNDING): Likewise.
9003         (ASSEMBLER_SCRATCH_REGNUM): Remove.
9004         * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
9005         and mips16 with TARGET_MIPS16.
9006
9007 2003-08-09  Per Bothner  <pbothner@apple.com>
9008
9009         * cppinit.c (cpp_read_main_file):  Split out source-independent
9010         initialization to separate function ...
9011         (cpp_post_options):  New function.
9012         * cppfiles.c (cpp_stack_file):  Rename public name to ...
9013         (_cpp_stack_file):  New internal function name.
9014         * cpplib.h:  Update accordingly.
9015         * cppinit.c:  (cpp_create_reader):  Initialize cpp_readers line here.
9016         (cpp_read_main_file):  Don't initialize line here.
9017         * c-opts.c (c_common_post_options):  Call cpp_post_options.
9018         (c_common_parse_file):  Call cpp_read_main_file, not cpp_stack_file.
9019         * fix-header.c (read_scan_file):  Call cpp_post_options.
9020
9021 2003-08-09  Per Bothner  <per@bothner.com>
9022
9023         * c-decl.c (SCOPE_LIST_APPEND):  Remove bogus line continuation.
9024
9025 2003-08-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9026
9027         * pa.c (pa_asm_output_mi_thunk): Fix typo.
9028
9029 2003-08-09  Neil Booth  <neil@daikokuya.co.uk>
9030
9031         PR preprocessor/11839
9032         * cppfiles.c (open_file): Handle ENOTDIR.
9033
9034 2003-08-09  Richard Sandiford  <rsandifo@redhat.com>
9035
9036         PR target/11699
9037         * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
9038
9039 2003-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9040
9041         * pa.md (extzv, extv, insv): Fix operand limit checks.  Fail if
9042         source/destination is not a register operand.
9043
9044 2003-08-08  Richard Henderson  <rth@redhat.com>
9045
9046         PR target/11535
9047         * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
9048         RETURN_ADDRESS_POINTER_REGNUM.
9049         (ia64_expand_prologue): Don't frob it.
9050         (ia64_output_function_epilogue): Likewise.
9051         (ia64_return_addr_rtx): New.
9052         (ia64_split_return_addr_rtx): New.
9053         * config/ia64/ia64-protos.h: Update.
9054         * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
9055         (RETURN_ADDRESS_POINTER_REGNUM): Remove.
9056         (GENERAL_REGNO_P): Don't check it.
9057         (AR_*_REGNUM): Renumber.
9058         (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
9059         (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
9060         (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
9061         (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
9062         (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
9063         * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
9064         (movdi_ret_addr): New.
9065
9066 2003-08-08  Geoffrey Keating  <geoffk@apple.com>
9067
9068         * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
9069
9070 2003-08-08  Roger Sayle  <roger@eyesopen.com>
9071
9072         * tree.h (get_identifier) Define a macro form of get_identifier
9073         that calls get_identifier_with_length when the string is constant.
9074         (get_identifier_with_length): Change type of second argument to
9075         size_t in prototype.
9076         * stringpool.c (get_identifier): Undefine the macro before giving
9077         the function definition.
9078         (get_identifier_with_length): Change  type of second argument to
9079         size_t in function definition.
9080         * hashtable.c (calc_hash): Change type of second argument to size_t.
9081         (ht_lookup): Change type of third argument to size_t.  Reorganize
9082         to speed-up the cases where the hash table slot is empty, or the
9083         first probe matches (i.e. there isn't a collision).
9084         * hashtable.h (ht_lookup): Adjust function prototype.
9085
9086 2003-08-08  Bernardo Innocenti  <bernie@develer.com>
9087
9088         PR target/9697
9089         PR target/11777
9090         * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
9091
9092 2003-08-08  Neil Booth  <neil@daikokuya.co.uk>
9093
9094         * common.opt: Add debug switches.
9095         * flags.h (use_gnu_debug_info_extensions): Boolify.
9096         * opts.c (write_symbols, debug_info_level,
9097         use_gnu_debug_info_extensions): Move from toplev.c.
9098         (set_debug_level): New.
9099         (common_handle_options): Handle debug switches.
9100         (print_help): Display target options directly.
9101         * toplev.c (debug_hooks): Don't initialize.
9102         (write_symbols, debug_info_level,
9103         use_gnu_debug_info_extensions): Move to opts.c.
9104         (debug_args, display_help, decode_g_option): Remove.
9105         (process_options): Set no debug if level zero here,
9106         and no-debug-hooks.  Error here if impossible debug format selected.
9107         * toplev.h (display_help, decode_g_option): Remove.
9108
9109 2003-08-08  Richard Sandiford  <rsandifo@redhat.com>
9110
9111         * tree.c (get_file_function_name_long): Fix size of alloca() area.
9112
9113 2003-08-08  Kelley Cook  <kelleycook@wideopenwest.com>
9114
9115         * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
9116         and gcc_cv_prog_cmp_skip.
9117         * configure: Regenerate.
9118
9119 2003-08-08  Stan Cox  <scox@redhat.com>
9120
9121         * config/iq2000: New port.
9122         * config.gcc (iq2000-*-elf): Added.
9123         * doc/install.texi (Specific):  Add iq2000 description.
9124
9125 2003-08-08  Andreas Schwab  <schwab@suse.de>
9126
9127         * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
9128         and insert missing empty argument.
9129         * configure: Regenerate.
9130
9131 2003-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9132
9133         * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
9134         (attr_length_millicode_call): Likewise.
9135         (attr_length_call): Likewise.  Revise some maximum insn lengths.
9136         (attr_length_indirect_call): Likewise.
9137         (output_call): Fix thinko that added extra nop.
9138         * pa.h (IN_NAMED_SECTION_P): Define.
9139
9140         PR c++/11712
9141         * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
9142         __STDC_EXT__ when using C++ dialect.
9143
9144 2003-08-07  J"orn Rennecke <joern.rennecke@superh.com>
9145
9146         * sh.c (calc_live_regs): If the return address pointer is live,
9147         force pr live.
9148         (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
9149         for saves / restores.
9150         (sh_expand_epilogue): If sh_media_register_for_return returns a
9151         register number, flag the instructions that restores PR_MEDIA_REG
9152         as possibly dead.
9153         Remove dead update of offset.
9154         (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
9155         we can use the result of get_hard_reg_initial_val.
9156         * sh.md (UNSPEC_RA): New constant.
9157         (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
9158         (load_ra).  Handle UNSPEC_RA.
9159         (sibcall_media): Use PR_MEDIA_REG.
9160
9161         * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
9162         * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
9163         needs saving on SHmedia.
9164
9165 2003-08-07  Ulrich Weigand  <uweigand@de.ibm.com>
9166
9167         * config/s390/s390.md: Replace all occurrences of \\t with \t.
9168
9169 2003-08-07  Richard Sandiford  <rsandifo@redhat.com>
9170
9171         * local-alloc.c (combine_regs): Fix comment typo.
9172
9173 2003-08-06  Zack Weinberg  <zack@codesourcery.com>
9174
9175         * c-decl.c (builtin_decls): Replace with first_builtin_decl
9176         and last_builtin_decl.
9177         (c_init_decl_processing): Initialize both.
9178         (c_reset_state): Iterate from first_builtin_decl to
9179         last_builtin_decl inclusive to reintroduce builtins.
9180
9181 2003-08-06  David Mosberger  <davidm@hpl.hp.com>
9182
9183         * doc/extend.texi (Function Attributes): Document the IA-64 version
9184         of the "model" attribute.
9185
9186         * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
9187         (SYMBOL_REF_SMALL_ADDR_P): Ditto.
9188         (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
9189
9190         * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
9191         (ia64_encode_section_info): Likewise.
9192         (ia64_attribute_table): Add "model" attribute.
9193         (TARGET_ENCODE_SECTION_INFO): Define.
9194         (small_addr_symbolic_operand): New function.
9195         (got_symbolic_operand): Return 0 for a symbolref to an object
9196         in the small address area.
9197         (enum ia64_addr_area): New type.
9198         (small_ident1): New variable.
9199         (small_ident2): Likewise.
9200         (init_idents): New function.
9201         (ia64_get_addr_area): Likewise.
9202         (ia64_encode_addr_area): Likewise.
9203         (ia64_encode_section_info): Likewise.
9204         (ia64_expand_load_address): For symbolic references to objects in
9205         the small-address-area, load the address via gen_rtx_SET() (which,
9206         eventually, will expand into "addl").
9207
9208 2003-08-06  Per Bothner  <pbothner@apple.com>
9209
9210         * line-map.h (fileline):  New typedef.
9211         (struct line_map, linemap_add, linemap_lookup):  Use it.
9212         * input.h (struct location_s):  Comment notes that long-term we want
9213         to replace it by fileline.
9214
9215 2003-08-06  J"orn Rennecke <joern.rennecke@superh.com>
9216
9217         Fix SHcompact exception handling:
9218         * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
9219         by the prologue, return a MEM with return_address_pointer_rtx
9220         as address.
9221         * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
9222         (RETURN_ADDR_OFFSET): Don't define.
9223         (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
9224         registers that are visible in compact mode.  Show that SHmedia
9225         registers still exist in compact mode, even if there are not
9226         readily accessible.
9227         (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
9228         if GLOBAL.  Use DW_EH_PE_textrel (nominally) for CODE,
9229         and DW_EH_PE_pcrel for pic data.
9230         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
9231         set SYMBOL_FLAG_FUNCTION in symbol, and actually use
9232         DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
9233         (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
9234         * sh.md (movsi_media-1): New splitter.
9235
9236 2003-08-06  Graeme Peterson <gp@qnx.com>
9237
9238         * config/i386/nto.h: New.
9239         * config/i386/t-nto: New.
9240         * config.gcc (i[34567]86-*-nto-qnx*): New.
9241
9242 2003-08-06  Phil Edwards  <pme@gcc.gnu.org>
9243
9244         * doc/install.texi (*-*-solaris2*):  Refine configure instructions.
9245
9246 2003-08-06  Alan Modra  <amodra@bigpond.net.au>
9247
9248         * calls.c (load_register_parameters): Arrange for call_fusage to
9249         report the whole register as used when shifting to the msb.
9250
9251 2003-08-05  Roger Sayle  <roger@eyesopen.com>
9252
9253         * builtins.c (expand_builtin): When not optimizing, call the library
9254         function for all builtins that have library functions (except alloca).
9255
9256 2003-08-05  Alexandre Oliva  <aoliva@redhat.com>
9257
9258         * c.opt: Introduce -fworking-directory.
9259         * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
9260         * c-common.h (flag_working_directory): Declare.
9261         * c-common.c (flag_working_directory): Define.
9262         * c-opts.c (c_common_handle_options): Set it.
9263         (sanitize_cpp_opts): Set...
9264         * cpplib.h (struct cpp_options): ... working_directory option.
9265         (struct cpp_callbacks): Add dir_change.
9266         * cppinit.c (read_original_filename): Call...
9267         (read_original_directory): New.  Look for # 1 "directory//"
9268         and process it.
9269         (cpp_read_main_file): Call dir_change callback if working_directory
9270         option is set.
9271         * gcc.c (cpp_unique_options): Pass -g*.
9272         * c-lex.c (cb_dir_change): New.
9273         (init_c_lex): Set dir_change callback.
9274         * toplev.c (src_pwd): New static variable.
9275         (set_src_pwd, get_src_pwd): New functions.
9276         * toplev.h (get_src_pwd, set_src_pwd): Declare.
9277         * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
9278         * dwarf2out.c (gen_compile_unit_die): Likewise.
9279         * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
9280
9281 2003-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9282
9283         * pretty-print.h (pp_set_line_maximum_length): Make macro.
9284         (pp_set_prefix): Likewise.
9285         (pp_destroy_prefix): Likewise.
9286         (pp_remaining_character_count_for_line): Likewise.
9287         (pp_clear_output_area): Likewise.
9288         (pp_formatted_text): Likewise.
9289         (pp_last_position_in_text): Likewise.
9290         (pp_emit_prefix): Likewise.
9291         (pp_append_text): Likewise.
9292         (pp_flush): Likewise.
9293         (pp_format_text): Likewise.
9294         (pp_format_verbatim): Likewise.
9295         (pp_tree_identifier): Tidy.
9296         * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
9297         (pp_base_format_verbatim): Rename from pp_format_verbatim.
9298         (pp_base_flush): Rename from pp_flush.
9299         (pp_base_set_line_maximum_length): Rename from
9300         pp_set_line_maximum_length.
9301         (pp_base_clear_output_area): Rename from pp_clear_output_area.
9302         (pp_base_set_prefix): Rename from pp_set_prefix.
9303         (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
9304         (pp_base_emit_prefix): Rename from pp_emit_prefix.
9305         (pp_base_append_text): Rename from pp_append_text.
9306         (pp_base_formatted_text): Rename from pp_formatted_text.
9307         (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
9308         (pp_base_remaining_character_count_for_line): Rename from
9309         pp_remaining_character_count_for_line.
9310         * diagnostic.h (diagnostic_format_decoder): Tidy.
9311         (diagnostic_flush_buffer): Likewise.
9312         * c-pretty-print.h: (pp_c_string_literal): Declare.
9313         (pp_c_real_literal): Likewise.
9314         (pp_c_integer_literal): Likewise.
9315         * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
9316         pp_identifier.
9317         (pp_c_character_literal): Tidy.
9318         (pp_c_string_literal): Make public.
9319         (pp_c_bool_literal): Likewise.
9320         (pp_c_integer_literal): Likewise.
9321         (pp_c_real_literal): Likewise.
9322
9323         * Makefile.in (C_PRETTY_PRINT_H): New variable.
9324         (c-pretty-print.o): Update dependence.
9325
9326 2003-08-05  Chris Demetriou  <cgd@broadcom.com>
9327
9328         * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
9329         ".set nomacro" state.
9330         (fix_truncsfsi2_macro): Likewise.
9331
9332 2003-08-05  Steven Bosscher  <steven@gcc.gnu.org>
9333
9334         * tree.h (DID_INLINE_FUNC): Remove macro.
9335         (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
9336         add tree check for FUNCTION_DECL.
9337         (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
9338         (struct tree_decl): Rename inlined_function_flag to
9339         declared_inline_flag.
9340         * c-common.h (c_lang_decl): Remove.
9341         (DECL_ESTIMATED_INSNS): Remove.
9342         * c-tree.h (struct lang_decl): Don't include c_lang_decl.
9343         (DECL_DECLARED_INLINE_P): Remove.
9344         * c-decl.c (grokdeclarator): Update comment.  With -finline-functions,
9345         do not reset DECL_DECLARED_INLINE_P.  Don't use DID_INLINE_FUNC.
9346         (finish_function): Make uninlinable a bool.  Fixup call to
9347         tree_inlinable_function_p() and fix some code style issues.
9348         * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
9349         * cgraph.c (dump_cgraph): Likewise.
9350         * cgraphunit.c (cgraph_decide_inlining): Likewise
9351         (cgraph_finalize_compilation_unit): Likewise.
9352         Also update call to tree_inlinable_function_p().
9353         (cgraph_default_inline_p): Don't use DID_INLINE_FUNC.  Instead
9354         look at DECL_DECLARED_INLINE and reverse logic.
9355         * print-tree.c (print_node): Likewise.
9356         * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
9357         * tree-inline.h (tree_inlinable_function_p): Make a bool.  Update
9358         prototype.
9359         * tree-inline.c (inlinable_function_p): Split up in this function to
9360         check for basic inlining inhibiting conditions, and new
9361         limits_allow_inlining() function.  Warn if inlining is impossible
9362         because the inline candidate calls alloca or uses sjlj exceptions.
9363         (limits_allow_inlining): this new function to check if the inlining
9364         limits are satisfied.  Throttle from currfn_max_inline_insns, not from
9365         MAX_INLINE_INSNS_SINGLE.  The latter only makes sense if
9366         MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
9367         Update prototypes.
9368         (tree_inlinable_function_p): Make a bool.  Update call to
9369         inlinable_function_p
9370         (expand_call_inline): Use limits_allow_inlining() when not in
9371         unit-at-a-time mode to decide on inlining.  Don't use DID_INLINE_FUNC,
9372         instead see if the function was declared `inline'.
9373
9374 2003-08-05  Josef Zlomek  <zlomekj@suse.cz>
9375
9376         * gcse.c (try_replace_reg): Fix updating of note.
9377
9378 2003-08-04  Roger Sayle  <roger@eyesopen.com>
9379
9380         PR middle-end/11771
9381         * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
9382         logic in negate_expr, i.e. we don't invert (A-B) for floating
9383         point types unless flag_unsafe_math_optimizations.
9384
9385 2003-08-04  Roger Sayle  <roger@eyesopen.com>
9386
9387         * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
9388         Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
9389         for floating point expressions with -ffast-math.
9390         (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
9391         * expmed.c (expand_mult): Wrap long line.  Expand x*2.0 as x+x.
9392
9393 2003-08-04  Roger Sayle  <roger@eyesopen.com>
9394
9395         * c-common.c (flag_noniso_default_format_attributes): Delete.
9396         (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
9397         (c_attrs_initialized): Delete.
9398         (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
9399         always call c_init_attributes.
9400         (c_init_attributes): Don't define/undefine DEF_FN_ATTR.  Don't
9401         set c_attrs_initialized when done.
9402         (c_common_insert_default_attributes): Delete.
9403         * c-common.h (flag_noniso_default_format_attributes): Delete.
9404         (c_coomon_insert_default_attributes): Delete prototype.
9405         * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
9406         flag_noniso_default_format_attributes.
9407
9408         * c-decl.c (c_insert_default_attributes): Delete.
9409         * c-tree.h (c_insert_default_attributes): Delete prototype.
9410
9411         * attribs.c (decl_attributes): Don't call insert_default_attributes
9412         langhook.  Update function description comment.
9413         * langhooks.h (lang_hooks): Remove insert_default_attributes field.
9414         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
9415         * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
9416         * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
9417
9418         * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
9419         define.
9420
9421 2003-08-04  Richard Sandiford  <rsandif@redhat.com>
9422
9423         * config/mips/mips.c (override_options): Disable -G on targets that
9424         have no .section support.
9425         (mips_select_section): Use default_select_section for such targets.
9426
9427 2003-08-04  Nathanael Nerode  <neroden@gcc.gnu.org>
9428
9429         * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
9430         * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
9431         * fixinc/fixincl.x: Rebuild.
9432         * fixinc/tests/base/regexp.h: New test.
9433
9434 2003-08-04  Alexandre Oliva  <aoliva@redhat.com>
9435
9436         * c-ppoutput.c (cb_line_change): Don't skip line changing while
9437         parsing macro arguments in the top-level context.
9438
9439 2003-08-04  Neil Booth  <neil@daikokuya.co.uk>
9440
9441         * config.in: Remove HAVE_LSTAT.
9442         * configure, configure.in: Don't test for lstat.
9443
9444 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9445
9446         * opts.c (decode_options): Do language-specific initialization for
9447         the global diagnostic context.
9448         * langhooks-def.h (lhd_initialize_diagnostics): Declare.
9449         (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
9450         (LANG_HOOKS_INITIALIZER): Adjust.
9451         * langhooks.h (struct lang_hooks): Add new field
9452         initialize_diagnostics.
9453         * langhooks.c (lhd_initialize_diagnostics): Define.
9454
9455 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9456
9457         * pretty-print.h:   Adjust macro definitions.
9458         * pretty-print.c (pp_newline): Rename to pp_base_newline.
9459         (pp_character): Rename to pp_base_character.
9460         (pp_string): Rename to pp_base_string.
9461         * c-pretty-print.c (pp_buffer): Move to pretty-print.h
9462         (pp_newline):  Likewise.  Adjust.
9463         (pp_c_char): Adjust.
9464
9465 2003-08-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9466
9467         * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
9468         BUILT_IN_LLABS): Move to miscellaneous section.
9469
9470 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
9471
9472         PR preprocessor/11534
9473         * cppexp.c (parse_defined): Warn only if -pedantic.
9474
9475 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
9476
9477         * cppfiles.c (stack_file): Use file path.
9478
9479 2003-08-02  Roger Sayle  <roger@eyesopen.com>
9480
9481         * builtin-types.def (BT_SSIZE): New primitive type.
9482         (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
9483         BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
9484         BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
9485         BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
9486         * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
9487         BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
9488         BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
9489         * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
9490         few functions that define default attributes using it.
9491         * c-common.c (c_common_insert_default_attributes): Do nothing.
9492
9493         * doc/extend.texi: Document these "new" builtins.
9494
9495 2003-08-02  Kaz Kojima  <kkojima@gcc.gnu.org>
9496
9497         * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
9498         (LIB_SPEC): Set -lpthread always when -pthread set.  Set -lieee
9499         when -mieee-fp set and -shared not set.
9500         (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
9501
9502 2003-08-02  Neil Booth  <neil@daikokuya.co.uk>
9503
9504         * cppfiles.c (struct _cpp_file): Rename once_only_next to
9505         next_file.  Remove import and pragma_once, add once_only.
9506         (find_file): Add new file structures to the all_files list.
9507         (should_stack_file): Mark #import-ed files once-only, and
9508         don't stack them if the file has already been stacked.
9509         (_cp_mark_file_once_only): Simplify.
9510         * cpphash.h (struct cpp_reader): Rename once_only_files
9511         to all_files.  Rename saw_pragma_once to seen_once_only.
9512         (_cpp_mark_file_once_only): Update prototype.
9513         * cpplib.c (do_pragma_once): Update.
9514
9515 2003-08-02  Neil Booth  <neil@daikokuya.co.uk>
9516
9517         * cppfiles.c (ENOTDIR): Remove.
9518         (open_file_in_dir): Rename find_file_in_dir.  Handle errors
9519         other than ENOENT here.
9520         (once_only_file_p): Rename should_stack_file.
9521         (find_file, open_file_failed, read_file_guts): Report errors
9522         with full path name.
9523         (read_file): Move pch handling to should_stack_file.
9524         (should_stack_file): Handle PCH and once-only issues, and
9525         reading the file.
9526         (stack_file): Don't do file reads.
9527
9528 2003-08-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9529
9530         * libgcov.c (gcov_exit): Cleanup and fix.
9531         * profile.c (compute_value_histograms): Don't try to read profiles
9532         that are not present.
9533
9534 2003-08-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9535
9536         * builtins.def: Categorize.
9537
9538         * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
9539         Mind fp rounding.
9540         (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
9541
9542 2003-08-02  Andreas Tobler  <a.tobler@schweiz.ch>
9543
9544         * config.gcc: Enable posix threads by default on darwin.
9545
9546 2003-08-01  Jakub Jelinek  <jakub@redhat.com>
9547
9548         * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
9549         even if nehedges1 is 0.
9550
9551 2003-08-01  Nathanael Nerode  <neroden@gcc.gnu.org>
9552
9553         * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
9554         fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
9555         fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
9556         and defintions.
9557
9558         * fixinc/inclhack.def (broken_cabs): Make matching more generous.
9559         * fixinc/fixincl.x: Regenerate.
9560         * fixinc/tests/base/math.h: Regenerate to match test_text change.
9561
9562 2003-08-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9563
9564         * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
9565
9566 2003-08-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9567
9568         * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
9569         for accesses to exc_ptr.
9570
9571 2003-08-01  Geoffrey Keating  <geoffk@apple.com>
9572
9573         * doc/sourcebuild.texi (Front End Directory): Don't make references
9574         to libsubdir, it's not part of the interface to frontends.
9575         * doc/install.texi (Configuration): Help users read faster by saying
9576         that GCC's configure options are the standard autoconf ones.
9577         Mention --libdir.  Update the default rules for finding the
9578         assembler.  Don't use libsubdir since we haven't said what it means.
9579         (Specific): In the Solaris 7 notes, update the place to put the
9580         assembler.
9581         * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
9582         * doc/cpp.texi (Search Path): Actually, the search path
9583         depends on libdir, which can relocate with cpp.
9584         * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
9585         now a private interface between the Makefile and the driver.
9586
9587 2003-08-01  Richard Henderson  <rth@redhat.com>
9588
9589         * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
9590
9591         * varasm.c (lookup_constant_def): New function.
9592         * rtl.h (lookup_constant_def): Declare it.
9593         * dwarf2out.c (loc_descriptor_from_tree): Use it.
9594         Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
9595
9596 2003-08-01  Zack Weinberg  <zack@codesourcery.com>
9597
9598         * c-decl.c (gettags, pushdecl_function_level): Delete.
9599         (last_function_parm_vars): Rename last_function_parm_others.
9600         (current_function_parm_vars): Rename current_function_parm_others.
9601         (struct c_scope): Rewrite comment explaining this data structure.
9602         Add names_last, blocks_last, parms_last fields.  Rename
9603         incomplete_list to incomplete.
9604         (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
9605         (poplevel): Ignore second argument.  No need to nreverse
9606         anything.  Restructure such that each list is processed
9607         exactly once.  Use 'const location_t *locus' syntactic sugar
9608         variable where useful.  Issue unused variable warnings
9609         ourselves, do not rely on function.c.
9610         (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
9611         (pushdecl_top_level): Likewise.  Don't call duplicate_decls.
9612         (implicitly_declare): decl cannot be error_mark_node.
9613         (undeclared_variable): Manipulate scope structure directly.
9614         (c_make_fname_decl): Likewise.
9615         (getdecls, c_init_decl_processing): Fix comment.
9616         (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT.  No need
9617         for 'last' variable.
9618         (grokparms): No need to nreverse parms list.
9619         (store_parm_decls_newstyle): Set up the parms_last and
9620         names_last fields of the new scope too.
9621         (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
9622         on parms to begin with; check this under ENABLE_CHECKING.  Set
9623         up parms_last.
9624         (check_for_loop_decls): Refer directly to current_scope->tags.
9625         Use consistent quote style in diagnostics.
9626         (c_write_global_declarations): The names list is not backward.
9627
9628         * c-common.h: Don't prototype gettags.
9629         * c-parse.in: Call poplevel with second argument 0 always.
9630
9631 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9632
9633         * builtins.def: Resort builtins.
9634
9635 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9636
9637         * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
9638         DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
9639         Prepend "__builtin_" onto NAME with string concatenation.  Remove
9640         explicit "__builtin_" from each macro call.
9641
9642         Reformat entire file.
9643
9644 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9645
9646         * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
9647         ATTR_MATHFN_FPROUNDING_ERRNO): New macros.  Use throughout.
9648
9649 2003-08-01  Andreas Krebbel  <krebbel1@de.ibm.com>
9650
9651         * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
9652         CCL1, or CCL2 modes with floating point operations.
9653
9654         * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
9655         "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
9656         "*subdf3_cconly"): New insns.
9657         ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
9658
9659 2003-08-01  Neil Booth  <neil@daikokuya.co.uk>
9660
9661         * Makefile.in: Refine dependencies.
9662         * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
9663         * c.opt: Update help for -Wimport.
9664         * cppfiles.c: Include hashtab.h.  Update comments.
9665         (stack_file): Read the file before updating dependencies.
9666         (once_only_file_p): Be smarter about marking once-only files.
9667         (_cpp_mark_file_once_only): Correct the check for existence on
9668         the list.
9669         (open_file_failed): Use name not path, which is NULL.
9670         * cpphash.h: Don't include hashtab.h.
9671         (struct _cpp_file): Remove.
9672         (struct cpp_reader): Update.
9673         * cppinit.c (cpp_create_reader): Don't initialize warn_import.
9674         * cpplib.h (struct cpp_options): Remove warn_import.
9675         (cpp_simplify_path): Remove.
9676
9677 2003-08-01  Nathan Sidwell  <nathan@codesourcery.com>
9678
9679         PR c++/11295
9680         * doc/extend.texi (Statement Expressions): Document C++ semantics.
9681
9682 2003-07-31  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
9683
9684         * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
9685
9686 2003-07-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9687
9688         * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
9689         throughout.
9690         * builtins.def: Likewise.
9691
9692 2003-07-31  Jason Merrill  <jason@redhat.com>
9693
9694         * Makefile.in (bubblestrap): Don't require a previous full
9695         bootstrap.
9696
9697         * expr.c (mostly_zeros_p): No longer static.
9698         * tree.h: Declare it.
9699         * stmt.c (resolve_asm_operand_names): Don't copy the pattern
9700         unless we need to do substitutions.
9701
9702 2003-07-31  Roger Sayle  <roger@eyesopen.com>
9703
9704         * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
9705         pow(x,c)*x as pow(x,c+1) for constant values c.  Optimize x*x
9706         as pow(x,2.0) when the latter will be expanded back into x*x.
9707         (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
9708         * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
9709         pow can never set errno when used with an integer exponent.
9710         Always use expand_powi when exponent is -1, 0, 1 or 2.
9711         (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
9712         as 1.0/(x*x).  This avoids unbounded recursion as we now prefer
9713         the pow forms of these expressions.
9714
9715 2003-07-31  Geoffrey Keating  <geoffk@apple.com>
9716
9717         * Makefile.in (libexecdir): New.
9718         (libsubdir): Use gcc instead of gcc-lib.
9719         (libexecsubdir): New.
9720         (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
9721         (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
9722         gcc-lib.
9723         (installdirs): Make libexecsubdir.
9724         (install-common): Put executables in libexecsubdir.
9725         (itoolsdir): Use libexecsubdir.
9726         (itoolsdatadir): New.
9727         (install-mkheaders): Separate data files and executables.
9728         (install-collect2): Put executables in libexecsubdir.
9729         (uninstall): Remove libexecsubdir.
9730         * mkheaders.in: Update for new arrangement of files.
9731         (libexecdir): New.
9732         (libexecsubdir): New.
9733         (itoolsdir): Use libexecsubdir.
9734         (itoolsdatadir): New.
9735         * gcc.c (gcc_libexec_prefix): New.
9736         (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
9737         (standard_exec_prefix_1): Use libexec.
9738         (standard_exec_prefix_2): New.
9739         (standard_libexec_prefix): New.
9740         (process_command): Update for new arrangement of files.  Compute
9741         gcc_libexec_prefix.  Update for change from gcc-lib to gcc.
9742
9743 2003-07-31  Nathanael Nerode  <neroden@gcc.gnu.org>
9744
9745         * inclhack.def (stdio_va_list): Avoid bogus replacement which
9746         triggers on Interix.
9747         * fixincl.x: Regenerate.
9748
9749 2003-07-31  Jakub Jelinek  <jakub@redhat.com>
9750
9751         * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
9752         SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
9753
9754 2003-07-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9755
9756         * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
9757
9758 2003-07-31  Per Bothner  <pbothner@apple.com>
9759
9760         * opts.c (in_fnames, num_in_fnames):  Moved here from c-opts.
9761         (add_input_filename):  New function.
9762         (handle_options):  Call add_input_filename directly instead of
9763         with a lang hook.
9764         * opts.h (in_fnames, num_in_fnames):  Moved here.
9765         (add_input_filename):  Declare.
9766         * c-decl.c:  Need to #include opts.h.
9767         * Makefile.in (c-decl.o):  Also depends on opts.h.
9768         * c-opts.c (in_fnames, num_in_fnames):  Moved to opts.c.
9769         (c_common_handle_filename):  Replaced by add_input_filename.
9770         * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
9771         Remove.
9772         * langhooks.h (struct lang_hooks):  Remove handle_filename hook.
9773         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
9774         (LANG_HOOKS_INITIALIZER):  Remove use of LANG_HOOKS_HANDLE_FILENAME.
9775         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
9776
9777 2003-07-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9778
9779         * combine.c (try_combine): Set JUMP_LABEL for newly created
9780         unconditional jump.
9781
9782 2003-07-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9783
9784         * fold-const.c (fold): Fold some comparisons of bit operations.
9785
9786 2003-07-31  Jan Hubicka  <jh@suse.cz>
9787
9788         * cgraph.c (create_edge): Fix typo.
9789         * i386.c (pic_symbolic_operand): Reorder tests.
9790
9791 2003-07-31  Nathan Sidwell  <nathan@codesourcery.com>
9792
9793         * doc/gcov.texi (Invoking Gcov): Describe output name mangling
9794         more fully.
9795         (Gcov Data Files): Update.
9796
9797 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9798
9799         * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
9800         default.
9801
9802         * gthr-posix.c: New file.
9803         * gthr-posix.h: Define _REENTRANT if missing.
9804         Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
9805
9806         * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
9807         by gthr-posix.o.
9808         * config/alpha/t-osf-pthread: New file.
9809
9810         * fixinc/inclhack.def (alpha_pthread): New fix.
9811         * fixinc/fixincl.x: Regenerate.
9812         * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
9813
9814         * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
9815         warning.
9816         Fixes PR bootstrap/9330.
9817
9818 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9819
9820         * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
9821         without GNU ld.
9822         Update comment.
9823         * configure: Regenerate.
9824
9825 2003-07-31  Vladimir Makarov  <vmakarov@redhat.com>
9826
9827         * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
9828         setter.
9829
9830 2003-07-30  Roger Sayle  <roger@eyesopen.com>
9831
9832         * builtins.def: Alphabetize.
9833
9834 2003-07-30  Matt Kraai  <kraai@alumni.cmu.edu>
9835
9836         * doc/c-tree.texi: Normalize spellings of "lowercase" and
9837         "uppercase".
9838         * doc/cpp.texi: Likewise.
9839         * doc/md.texi: Likewise.
9840         * doc/rtl.texi: Likewise.
9841         * doc/tm.texi: Likewise.
9842
9843 2003-07-30  Matt Kraai  <kraai@alumni.cmu.edu>
9844
9845         * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
9846         (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
9847         of cc1obj.
9848
9849 2003-07-30  Chris Demetriou  <cgd@broadcom.com>
9850
9851         * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
9852         macros before defining them.
9853
9854 2003-07-31  Ulrich Weigand  <uweigand@de.ibm.com>
9855
9856         * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
9857         UNSPECV_BLOCKAGE): New constants.
9858         ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
9859         "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
9860         splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
9861         "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
9862
9863         (all insns and expanders): Write output control string as brace block
9864         where appropriate.  Remove \-escapes for doublequote characters.
9865
9866 2003-07-31  Jan Hubicka  <jh@suse.cz>
9867
9868         * gcse.c (insert_store): Fix typo in previous patch.
9869
9870 2003-07-30  Neil Booth  <neil@daikokuya.co.uk>
9871
9872         * cppfiles.c (stack_file, open_file_failed): Use path for deps.
9873
9874 2003-07-30  Andi Kleen  <ak@muc.de>
9875
9876         * loop.c (check_dbra_loop): Allow LTU in the loop condition.
9877
9878 2003-07-30  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9879
9880         * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
9881         * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
9882         GCOV_N_VALUE_COUNTERS): New.
9883         * profile.c (compute_value_histograms): New static function.
9884         (branch_prob): Read back the value histograms.
9885         * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
9886         * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
9887         * value-prof.c: Add comment on reading the profile.
9888         * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
9889         * doc/invoke.texi (-fprofile-values): Document behavior with
9890         -fbranch-probabilities.
9891
9892 2003-07-30  David Edelsohn  <edelsohn@gnu.org>
9893
9894         * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
9895
9896 2003-07-30  Ulrich Weigand  <uweigand@de.ibm.com>
9897
9898         * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
9899         symbolically.
9900
9901 2003-07-30  Jan Hubicka  <jh@suse.cz>
9902
9903         * gcse.c (insert_store): Ignore fake edges.
9904
9905         * c-common.c (flag_vtable_gc): Kill.
9906         * c-common.g (flag_vtable_gc): Kill.
9907         * c-opts (c_common_handle_option): Kill.
9908         * c.opt (fvtable-gc): Kill.
9909         * final.c (final_scan_insn): Do not call assemble_vtable_entry.
9910         * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
9911         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
9912
9913         * invoke.texi (-ftable-gc): Kill documentation.
9914
9915         * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
9916         just because function body is missing.
9917
9918         * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
9919
9920 2003-07-30  Ranjit Mathew  <rmathew@hotmail.com>
9921
9922         * unwind-sjlj.c: Fix typo in file description.
9923
9924 2003-07-30  Alan Modra  <amodra@bigpond.net.au>
9925
9926         * calls.c (load_register_parameters): When shifting reg sized values
9927         to the msb, move the value to a reg first.
9928
9929 2003-07-29  Geoffrey Keating  <geoffk@apple.com>
9930
9931         * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
9932         * line-map.h (linemap_add): Update comments.
9933         * line-map.c (linemap_add): Update comments, interpret zero-length
9934         filename as "<stdin>".
9935
9936 2003-07-29  Nathanael Nerode  <neroden@gcc.gnu.org>
9937
9938         * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
9939
9940 2003-07-29  Zack Weinberg  <zack@codesourcery.com>
9941
9942         * c-decl.c (last_function_parm_vars, current_function_parm_vars):
9943         New static variables.
9944         (struct c_scope): Add parms and warned_forward_parm_decls
9945         fields; remove parm_order.
9946         (storedecls, storetags): Delete.
9947         (poplevel): Also clear bindings on the parms chain.
9948         (pushdecl): Handle forward declarations of parameters, and
9949         chain PARM_DECLs on the parms list, not the names list.
9950         (lookup_name_current_level): Check for PARM_DECLs on the parms
9951         list too.
9952         (push_parm_decl): Don't update parm_order.
9953         (clear_parm_order): Rename mark_forward_parm_decls.  Issue the
9954         warning, only once per parameter list, and set TREE_ASM_WRITTEN
9955         on the decls here.  Then move the forward decls to the names list.
9956         (grokparms): Set last_function_parm_vars.
9957         (get_parm_info): Don't use gettags or getdecls.  No need to
9958         extract non-parms from the parms list, or reorganize the parms
9959         list.  Feed nonparms back in the TREE_TYPE of the list node
9960         returned.  Issue only one error per parameter list for "void"
9961         appearing more than once in said parameter list.  Collapse
9962         parmlist_tags_warning into this function to avoid double scan
9963         of tags list.
9964         (start_function): Set current_function_parm_vars.
9965         (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
9966         directly.  Get non-parms from current_function_parm_vars; no
9967         need to extract them from the parms chain.  Properly bind tags
9968         in the new scope.
9969         (store_parm_decls_oldstyle): No need to extract non-parameters
9970         from the parms chain, nor to store them back afterward.  Move
9971         declaration to top of function, restructure code reordering
9972         DECL_ARGUMENTS.
9973         (store_parm_decls): No need to save and restore warn_shadow.
9974         * c-parse.in: Don't call parmlist_tags_warning nor
9975         clear_parm_order.  Call mark_forward_parm_decls when forward
9976         parm decls are encountered.
9977         * c-tree.h: Prototype mark_forward_parm_decls; not
9978         clear_parm_order or parmlist_tags_warning.
9979
9980 2003-07-29  Geoffrey Keating  <geoffk@apple.com>
9981
9982         * c-common.c (allow_pch): Remove.
9983         * c-common.h (allow_pch): Remove.
9984         (c_common_no_more_pch): Declare.
9985         * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
9986         * c-pch.c: Include hosthooks.h.
9987         (c_common_valid_pch): Don't check allow_pch.
9988         (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
9989         (c_common_no_more_pch): New.
9990         * ggc-common.c: Include hosthooks.h.
9991         (gt_pch_save): Call gt_pch_get_address.
9992         (gt_pch_restore): Call gt_pch_use_address.
9993         * hooks.c (hook_voidp_size_t_null): New.
9994         (hook_bool_voidp_size_t_false): New.
9995         * hooks.h (hook_voidp_size_t_null): New.
9996         (hook_bool_voidp_size_t_false): New.
9997         * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
9998         (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
9999         (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
10000         HOST_HOOKS_GT_PCH_USE_ADDRESS.
10001         * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
10002         gt_pch_use_address.
10003         * doc/hostconfig.texi (Host Common): Document
10004         HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
10005         * Makefile.in (c-pch.o): Depend on hosthooks.h.
10006         (ggc-common.o): Likewise.
10007
10008         * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
10009         (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
10010         (pch_address_space): New.
10011         (darwin_rs6000_gt_pch_get_address): New.
10012         (darwin_rs6000_gt_pch_use_address): New.
10013
10014 2003-07-29  Neil Booth  <neil@daikokuya.co.uk>
10015
10016         PR preprocessor/11569
10017         PR preprocessor/11649
10018         * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
10019         * cppfiles.c: Completely rewritten.
10020         * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
10021         struct cpp_path is now struct cpp_dir.
10022         (remove_duplicates): Don't simplify path names.
10023         * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
10024         cpp_stack_file.
10025         * cpphash.h: Include hashtab.h.
10026         (_cpp_file): Declare.
10027         (struct cpp_buffer): struct include_file is now struct _cpp_file,
10028         and struct cpp_path is now struct cpp_dir.  Rename members.
10029         (struct cpp_reader): Similarly.  New members once_only_files,
10030         file_hash, file_hash_entries, quote_ignores_source_dir,
10031         no_search_path, saw_pragma_once.  Remove all_include_files and
10032         max_include_len.  Make some members bool.
10033         (_cpp_mark_only_only): Renamed from _cpp_never_reread.
10034         (_cpp_stack_file): Renamed from _cpp_read_file.
10035         (_cpp_stack_include): Renamed from _cpp_execute_include.
10036         (_cpp_init_files): Renamed from _cpp_init_includes.
10037         (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
10038         * cppinit.c (cpp_create_reader): Initialize no_search_path.  Update.
10039         (cpp_read_next_file): Rename and move to cppfiles.c.
10040         (cpp_read_main_file): Update.
10041         * cpplib.c (run_directive): Update for renamed members.
10042         (do_include_common, _cpp_pop_buffer): Update.
10043         (do_import): Undeprecate #import.
10044         (do_pragma_once): Undeprecate.  Use _cpp_mark_file_once_only.
10045         * cpplib.h: Remove file_name_map_list.
10046         (cpp_options): Remove map_list.
10047         (cpp_dir): Rename from cpp_path.  New datatype for name_map.
10048         (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
10049
10050 2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
10051
10052         * Makefile.in:  Make stamp-objdir safe for parallel builds.
10053
10054 2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
10055
10056         * Makefile.in (stmp-docobjdir):  New target; ensure $docobjdir exists.
10057         (info):  Depend on stmp-docobjdir.
10058
10059 2003-07-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10060
10061         * configure: Regenerate.
10062
10063 2003-07-29  Jan Hubicka  <jh@suse.cz>
10064
10065         PR C++/11131
10066         * tree-inline.c (expand_call_inline): Always call inlinable_function_p
10067         in !unit-at-a-time mode.
10068
10069 2003-07-28  Geoffrey Keating  <geoffk@apple.com>
10070
10071         * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
10072         main function.
10073
10074 2003-07-28  Mark Mitchell  <mark@codesourcery.com>
10075
10076         PR c++/11667
10077         * c-common.c (shorten_compare): Take into account differences
10078         between C and C++ representation for enumeration types.
10079         * tree.h (set_min_and_max_values_for_integral_type): Declare.
10080         * stor-layout.c (set_min_and_max_values_for_integral_type): New
10081         function, broken out from ...
10082         (fixup_signed_type): ... here and ...
10083         (fixup_unsigned_type): ... here.
10084
10085 2003-07-28  Zack Weinberg  <zack@codesourcery.com>
10086
10087         * c-decl.c: Update commentary, adjust blank lines throughout.
10088         (struct c_scope): Fix indentation.  Reorder members so
10089         outer-context pointers come first, booleans last.
10090         (duplicate_decls, define_label): Use a 'locus' variable for
10091         diagnostic locations in a few more places.
10092         (warn_if_shadowing): Un-split a conditional that fits on one line.
10093         (c_init_decl_processing): No need to clear current_scope and
10094         current_function_scope.
10095         (start_decl): Merge if/else if statements with same action.
10096         (push_parm_decl): Rename old_immediate_size_expand to use
10097         save_foo convention; save/restore around entire function.
10098         (grokdeclarator): Remove unnecessary braces.
10099
10100 2003-07-28  Hans-Peter Nilsson  <hp@bitrange.com>
10101             Michael Culbertson  <Michael.J.Culbertson@wheaton.edu>
10102
10103         * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
10104         when warn_declaration_after_statement.  Call pedwarn_c90, not
10105         pedwarn.  Correct message: it's "ISO C90", not "ISO C89".
10106         * c-common.c (warn_declaration_after_statement): Define.
10107         * c-common.h (warn_declaration_after_statement): Declare.
10108         * c.opt (Wdeclaration-after-statement): New.
10109         * c-errors.c (pedwarn_c90): New function.
10110         * c-opts.c (c_common_handle_option) <case
10111         OPT_Wdeclaration_after_statement>: New.
10112         * c-tree.h (pedwarn_c90): Declare.
10113         * doc/invoke.texi (Option Summary): Document
10114         -Wdeclaration-after-statement.
10115         (Warning Options): Ditto.
10116
10117 2003-07-28  Jan Hubicka  <jh@suse.cz>
10118
10119         * i386.md (memory attribute) Avoid accessing uninitialized memory
10120         for ishift1 type instructions.
10121
10122 2003-07-28  Jakub Jelinek  <jakub@redhat.com>
10123
10124         * configure.in (--enable-checking): Add fold category.
10125         (ENABLE_FOLD_CHECKING): Define if requested.
10126         * configure: Rebuilt.
10127         * config.in: Rebuilt.
10128         * doc/install.texi: Document it.
10129         * fold-const.c: Include md5.h.
10130         [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
10131         [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
10132         print_fold_checksum): New functions.
10133
10134         * fold-const.c (fold): Never modify argument passed to fold, instead
10135         change a copy and return it.
10136         * convert.c (convert_to_integer): Likewise.
10137
10138 2003-07-27  Nathanael Nerode  <neroden@gcc.gnu.org>
10139
10140         * fixinc/fixinc.svr4: Remove dead code.  Remove now-unnecessary
10141         cleanup of junk after #else and #endif directives.  Collapse repeated
10142         clauses into for statment.
10143
10144         * fixinc/fixincl.sh: GNU C -> GCC.  Add usage comment.
10145
10146 2003-07-27  Zack Weinberg  <zack@codesourcery.com>
10147
10148         * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
10149         (keep_next_if_subblocks): Rename next_is_function_body.
10150         (pushlevel): Adjust commentary.  Always set ->keep on the
10151         outermost level of a function.  Don't set ->keep_if_subblocks.
10152         (poplevel): Adjust commentary.  Don't look at ->keep_if_subblocks.
10153         (store_parm_decls): Adjust to match.
10154         (finish_function): Adjust to match.
10155         Call poplevel with all three arguments zero.
10156
10157         * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
10158         New functions split out of store_parm_decls.
10159         Avoid unnecessary work. Use local variables consistently.
10160         (store_parm_decls): Likewise.
10161
10162         (finish_function): No need to set functionbody flag on call to
10163         poplevel.
10164         (struct language_function): Remove scope field.
10165         (c_push_function_context, c_pop_function_context): No need to
10166         save and restore current_scope.
10167
10168 2003-07-27  Nathan Sidwell  <nathan@codesourcery.com>
10169
10170         * doc/extend.texi (Deprecated Features): Implicit typename is
10171         gone. Default args on types is going.
10172
10173 2003-07-26  J"orn Rennecke <joern.rennecke@superh.com>
10174
10175         * Makefile.in (ifcvt.o): Depend on target.h
10176         * ifcvt.c (target.h): Include.
10177         (if_convert): Don't call mark_loop_exit_edges if we can't
10178         modify jumps.
10179
10180 2003-07-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10181
10182         * doc/install.texi (Testing): Adjust required versions of DejaGnu.
10183
10184 2003-07-26  Richard Henderson  <rth@redhat.com>
10185
10186         PR inline-asm/11676
10187         * cse.c (count_reg_usage): Handle asm_operands properly.
10188
10189 2003-07-26  Roger Sayle  <roger@eyesopen.com>
10190
10191         * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
10192         (DEF_EXT_FALLBACK_BUILTIN): Delete.
10193         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
10194         the regular DEF_EXT_LIB_BUILTIN macro.
10195         (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
10196         the regular DEF_LIB_BUILTIN macro.
10197         (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
10198         BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
10199         BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
10200         DEF_EXT_LIB_BUILTIN macro.
10201
10202         * c-decl.c (duplicate_decls): Remove code to handle builtin
10203         functions prototyped without an argument list.
10204
10205 2003-07-26  Danny Smith  <dannysmith@users.sourceforge.net>
10206
10207         * config/i386/winnt.c: Revert 2003-07-08 change.
10208         (i386_pe_section_type_flags): Remove error_with_decl here too.
10209
10210 2003-07-26  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10211
10212         * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
10213         * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
10214         * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
10215         (v850_handle_data_area_attribute): Likewise.
10216
10217 2003-07-26  Geoffrey Keating  <geoffk@apple.com>
10218
10219         * varasm.c (output_constant_def_contents): Use
10220         ASM_DECLARE_CONSTANT_NAME if defined.
10221         * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
10222         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
10223         objects get at least one byte to prevent assembler problems.
10224         (ASM_DECLARE_CONSTANT_NAME): New.
10225
10226         * Makefile.in (libbackend.o): Remove options_.h.
10227         (mostlyclean): Likewise.
10228
10229         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
10230         insert a label at the end of an function under Mach-O.
10231
10232         * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
10233
10234 2003-07-25  Aldy Hernandez  <aldyh@redhat.com>
10235
10236         * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
10237         equality.
10238         (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
10239
10240         * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
10241
10242 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10243
10244         * doc/passes.texi (Passes): Mention pretty-printing and
10245         diagnostic files.
10246
10247 2003-07-25  Nathan Sidwell  <nathan@codesourcery.com>
10248
10249         * doc/extend.texi (Function Attributes): GNU C++ does now allow
10250         unused parameter decls.
10251         (Attribute Syntax): GNU C++ does not allow label attributes to be
10252         after the ':'.
10253
10254 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10255
10256         * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
10257         (objc_declare_class): Likewise.
10258         (error_with_ivar): Likewise.
10259         (start_class): Likewise.
10260         (warn_with_method): Likewise.
10261
10262 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10263
10264         Remove pedwarn_with_decl, warning_with_decl and error_with_decl
10265         from GCC.
10266         * calls.c (try_to_integrate): Don't use xxx_with_decl.
10267         (expand_call): Likewise.
10268         * dwarfout.c (output_reg_number): Likewise.
10269         * expr.c (expand_expr): Likewise.
10270         * function.c (assign_temp): Likewise.
10271         (uninitialized_vars_warning): Likewise.
10272         (setjmp_args_warning): Likewise.
10273         (expand_function_end): Likewise.
10274         * stmt.c (fixup_gotos): Likewise.
10275         (warn_about_unused_variables): Likewise.
10276         (expand_end_bindings): Likewise.
10277         * stor-layout.c (layout_decl): Likewise.
10278         (place_field): Likewise.
10279         * toplev.c (check_global_declarations): Likewise.
10280         (rest_of_handle_inlining): Likewise.
10281         (default_tree_printer): New function.
10282         (general_init): Initialize diagnostic machinery before routing
10283         signals to the ICE machinery.  Set default tree printer.
10284         * toplev.h (pedwarn_with_decl): Remove declaration.
10285         (warning_with_decl): Likewise.
10286         (error_with_decl): Likewise.
10287         (pedwarn): Remove attribute for the time being.
10288         * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
10289         * varasm.c (named_section): Likewise.
10290         (make_decl_rtl): Likewise.
10291         (assemble_variable): Likewise.
10292         (merge_weak): Likewise.
10293         (declare_weak): Likewise.
10294
10295         * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
10296         * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
10297         (format_with_decl): Remove.
10298         (diagnostic_for_decl): Likewise.
10299         (pedwarn_with_decl): Likewise.
10300         (warning_with_decl): Likewise.
10301         (error_with_decl): Likewise.
10302         (diagnostic_initialize): Adjust.
10303         (diagnostic_count_diagnostic): Likewise.
10304         (announce_function): Likewise.
10305         (lhd_print_error_function): Likewise.
10306         (diagnostic_report_current_module): Likewise.
10307         (default_diagnostic_starter): Likewise.
10308         (diagnostic_report_diagnostic): Likewise.
10309         (default_diagnostic_finalizer): Likewise.
10310         (verbatim): Likewise.
10311         (error): Likewise.
10312         (warning): Likewise.
10313         * opts.c (common_handle_option): Likewise.
10314         * pretty-print.c: New file.
10315         * c-pretty-print.h (pp_base): Override.
10316         * c-pretty-print.c: Adjust use of macros throughout.
10317         (pp_buffer): New macro.
10318         (pp_newline): Likewise.
10319         * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
10320         * Makefile.in (DIAGNOSTIC_H): New variable.
10321         (c-errors.o): Use it.
10322         (c-objc-common.o): Likewise.
10323         (c-common.o): Likewise.
10324         (c-opts.o): Likewise.
10325         (c-format.o): Likewise.
10326         (diagnostic.o): Likewise.
10327         (opts.o): Likewise.
10328         (toplev.o): Likewise.
10329         (rtl-error.o): Likewise.
10330         (dwarf2out.o): Likewise.
10331         (jump.o): Likewise.
10332         (pretty-print.o): New rule.
10333
10334 2003-07-24  Roger Sayle  <roger@eyesopen.com>
10335
10336         * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
10337         front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
10338         (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
10339         from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
10340         (DEF_FRONT_END_LIB_BUILTIN): Delete.
10341         (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
10342         (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
10343
10344         * builtins.c (build_string_literal): New function to construct
10345         a char* pointer to a string literal.
10346         (expand_builtin_fputs): Change 2nd argument from "int ignore" to
10347         "rtx target" to be consistent with other expand_builtin_* functions.
10348         Change 3rd argument from "int unlocked" to "bool unlocked".
10349         (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
10350         c-common.c to avoid front-end dependencies.  Optimize printf("")
10351         as a no-op when the result isn't required.  Handle embedded NULs
10352         in format string.
10353         (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
10354         from c-common.c to avoid front-end dependencies.  Likewise, optimize
10355         fprintf(fp,"") as a no-op when the result isn't required, evaluating
10356         fp for side-effects.  Handle embedded NULs in format string.
10357         (expand_builtin_sprintf): Fix typo.
10358         (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
10359         optimizing.  Adjust calls of expand_builtin_fputs to match the API
10360         change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
10361         expand_builtin_printf.  Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
10362         and BUILT_IN_FPRINTF using expand_builtin_fprintf.
10363
10364         * c-common.c (is_valid_printf_arglist): Delete.
10365         (c_expand_builtin): Delete.
10366         (c_expand_builtin_printf): Moved to builtins.c. Delete.
10367         (c_expand_builtin_fprintf): Moved to builtins.c.  Delete.
10368         (c_expand_expr): No longer treat CALL_EXPRs specially.
10369         (CALLED_AS_BUILT_IN): Delete.
10370
10371 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10372
10373         PR optimization/11631
10374         * gcse.c (store_motion): Connect infinite loops to exit.
10375
10376 2003-07-24  Jason Merrill  <jason@redhat.com>
10377
10378         * tree.h (boolean_type_node): Move from C/C++/Java frontends.
10379         (boolean_true_node, boolean_false_node): Likewise.
10380         (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
10381         * tree.c (build_common_tree_nodes): Init boolean_type_node.
10382         (build_common_tree_nodes_2): Init boolean_{true,false}_node.
10383         * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
10384         * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
10385         (truthvalue_true_node): Renamed from boolean_true_node.
10386         (truthvalue_false_node): Renamed from boolean_false_node.
10387         * c-decl.c: Just set truthvalue_* to integer_*.
10388         * c-*.[ch]: s/boolean/truthvalue/.  s/c_bool/boolean/.
10389
10390 2003-07-24  Roger Sayle  <roger@eyesopen.com>
10391
10392         * c-decl.c (match_builtin_function_types): New subroutine of
10393         duplicate_decls to test whether a redeclaration of a builtin
10394         function is suitably close, i.e. the return type and all of
10395         the argument types have the same modes as the builtin expects.
10396         (duplicate_decls): Fuzzy type matching for builtin functions
10397         moved to match_builtin_function_types.
10398
10399 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10400
10401         * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
10402         flag correctly.
10403
10404 2003-07-24  Zack Weinberg  <zack@codesourcery.com>
10405
10406         * c-decl.c: Search-and-replace change 'binding level' to
10407         'scope' in commentary.
10408         (struct binding_level): Now struct c_scope.
10409         (current_binding_level): Now current_scope.
10410         (free_binding_level): Now scope_freelist.
10411         (current_function_level): Now current_function_scope.
10412         (global_binding_level): Now global_scope.
10413         (make_binding_level): Now make_scope.
10414         (pop_binding_level): Now pop_scope.
10415
10416 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10417
10418         * configure.in (libgcc_visibility): Add missing whitespace.
10419
10420 2003-07-24  Richard Henderson  <rth@redhat.com>
10421
10422         * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
10423         __gcc_personality_v0.
10424
10425 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10426
10427         * Makefile.in: Replace pwd by ${PWD_COMMAND}.
10428
10429 2003-07-24  Nathan Sidwell  <nathan@codesourcery.com>
10430
10431         * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
10432         documentation missed from my 2003-07-09 patch.
10433
10434 2003-07-24  Nathanael Nerode  <neroden@gcc.gnu.org>
10435
10436         * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
10437         it's not provided.
10438         * configure: Rebuild.
10439
10440 2003-07-24  Steven Bosscher  <steven@gcc.gnu.org>
10441
10442         PR c/10602
10443         * c-typeck.c (type_lists_compatible_p): Do not compare
10444         arguments if one of them is an error_mark_node
10445
10446 2003-07-24  Alan Modra  <amodra@bigpond.net.au>
10447
10448         * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
10449         if current_function_calls_eh_return.
10450
10451 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
10452
10453         * doc/c-tree.texi (OFFSET_TYPE): Update description.
10454
10455 2003-07-23  Bob Wilson  <bob.wilson@acm.org>
10456
10457         * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
10458         * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
10459         __umodsi3, __modsi3): Increase frame size to 32.
10460
10461 2003-07-23  Geoffrey Keating  <geoffk@apple.com>
10462
10463         * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
10464         prototype.
10465
10466 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
10467
10468         * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
10469
10470         PR optimization/10679
10471         * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
10472
10473 2003-07-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10474
10475         PR target/11607 and PR target/11516
10476         * pa.md (extzv, extv, insv): Revert latter half of last patch.
10477
10478 2003-07-22  Mark Mitchell  <mark@codesourcery.com>
10479
10480         * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
10481         * varasam.c (output_constant): Likewise.
10482
10483 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
10484
10485         * alias.c: Fix comment formatting.
10486         * c-common.c: Likewise.
10487         * c-decl.c: Likewise.
10488         * c-opts.c: Likewise.
10489         * combine.c: Likewise.
10490         * cpplib.c: Likewise.
10491         * diagnostic.c: Likewise.
10492         * dojump.c: Likewise.
10493         * final.c: Likewise.
10494         * fold-const.c: Likewise.
10495         * gcc.c: Likewise.
10496         * gcse.c: Likewise.
10497         * ggc-page.c: Likewise.
10498         * jump.c: Likewise.
10499         * loop.c: Likewise.
10500         * mips-tfile.c: Likewise.
10501         * recog.c: Likewise.
10502         * regclass.c: Likewise.
10503         * regmove.c: Likewise.
10504         * tree.c: Likewise.
10505         * tree.h: Likewise.
10506
10507 2003-07-22  Per Bothner  <pbothner@apple.com>
10508
10509         * line-map.c (add_line_map):  Handle invalid LEAVE request.
10510         Fixes PR preprocessor/11361.
10511
10512 2003-07-22  Per Bothner  <pbothner@apple.com>
10513
10514         * diagnostic.c.(diagnostic_report_current_module):  Update to match
10515         2003-06-05 changes to push_srcloc and pop_srcloc.
10516
10517 2003-07-22  Wolfgang Bangerth  <bangerth@dealii.org>
10518
10519         * doc/trouble.texi: Better document two-stage name lookup.
10520
10521 2003-07-22  Eric Christopher <echristo@redhat.com>
10522
10523         * config/s390.c (s390_valid_pointer_mode): New.
10524         (TARGET_VALID_POINTER_MODE): Use.
10525         (s390_emit_prologue): Add tpf profiling hooks.
10526         (s390_emit_epilogue): Ditto.
10527         * config/s390.h (MASK_TPF): New.
10528         (TARGET_TPF): Use.
10529         (POINTERS_EXTEND_UNSIGNED): Define.
10530         * config/s390.md (ptr_extend): New pattern.
10531
10532 2003-07-22  Zack Weinberg  <zack@codesourcery.com>
10533
10534         * hashtable.c (approx_sqrt): Make static.
10535         * hashtable.h: Don't prototype approx_sqrt.
10536         * line-map.c (init_line_maps): Rename linemap_init.
10537         (free_line_maps): Rename linemap_free.
10538         (add_line_map): Rename linemap_add.
10539         (lookup_line): Rename linemap_lookup.
10540         (print_containing_files): Rename linemap_print_containing_files.
10541         * linemap.h: Update to match.
10542
10543         * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
10544         linemap routines to use new names.
10545
10546 2003-07-16  Nathan Sidwell  <nathan@codesourcery.com>
10547
10548         * c-common.c (handle_packed_attribute): Don't pack a struct via a
10549         typedef. Propagate packedness from a main variant.
10550
10551 2003-07-22  Nathanael Nerode  <neroden@gcc.gnu.org>
10552
10553         * Makefile.in (install-common): Add dependency on installdirs.
10554
10555 2003-07-21  Alexandre Oliva  <aoliva@redhat.com>
10556
10557         * c-common.c (c_common_type_for_mode): Return integer types for
10558         pointer modes.
10559
10560 2003-07-22  Geoffrey Keating  <geoffk@apple.com>
10561
10562         * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
10563         (finish_decl): Call maybe_apply_pragma_weak here.
10564         (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
10565         TREE_PUBLIC and TREE_STATIC are decided.
10566         (start_function): Move call to maybe_apply_pragma_weak.  Check that
10567         DECL_ASSEMBLER_NAME isn't set too early.
10568
10569         * cpplex.c (_cpp_process_line_notes): Mention option name in
10570         trigraphs warning.
10571
10572 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
10573
10574         * combine.c (if_then_else_cond): Simplify the comparison of
10575         rtx against -1, 0, and 1.
10576         * loop.c (check_dbra_loop): Likewise.
10577         * optabs.c (emit_conditional_move): Likewise.
10578         (emit_conditional_add): Likewise.
10579         * config/i386/i386.md (*movsi_or): Likewise.
10580         (*movdi_or_rex6): Likewise.
10581
10582 2003-07-22  Jan Hubicka  <jh@suse.cz>
10583
10584         * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
10585
10586 2003-07-21  Neil Booth  <neil@daikokuya.co.uk>
10587
10588         * cppfiles.c (open_file_pch): Don't put unused entries in the
10589         splay tree.  Remove dead code.
10590
10591 2003-07-21  Geoffrey Keating  <geoffk@apple.com>
10592
10593         * c-common.h (num_in_fnames): Declare.
10594         (c_static_assembler_name): Move from here...
10595         * c-tree.h (c_static_assembler_name): ... to here.
10596         * c-opts.c: Don't include langhooks-def.h.
10597         (c_static_assembler_name): Move to c-decl.c.
10598         (num_in_fnames): Make externally visible.
10599         * c-decl.c: Include langhooks-def.h.
10600         (c_static_assembler_name): Move from c-opts.c.
10601         * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
10602         (c-opts.o): Remove $(LANGHOOKS_DEF_H).
10603
10604         * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
10605         when it's not needed.
10606
10607 2003-07-21  Jakub Jelinek  <jakub@redhat.com>
10608
10609         * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
10610         * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
10611         (rs6000_emit_prologue): Save FPRs inline if set.
10612
10613 2003-07-21  H.J. Lu <hongjiu.lu@intel.com>
10614
10615         * config/ia64/ia64.md (prefetch): Support predicate.
10616
10617 2003-07-21  Josef Zlomek  <zlomekj@suse.cz>
10618
10619         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
10620         * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
10621         table.
10622
10623 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
10624
10625         PR optimization/11536
10626         * unroll.c (loop_iterations): Do not replace a register holding
10627         the final value by its equivalent before the loop if it is not
10628         invariant.
10629
10630 2003-07-21  Dave Fluri  <dave.fluri@onlink.net>
10631
10632         * doc/extend.texi: Fixes to spelling, grammar, and diction.
10633
10634 2003-07-21  Ben Elliston  <bje@wasabisystems.com>
10635
10636         * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
10637         (V850 Options): Spelling fixes.
10638
10639 2003-07-20  Lisa M. Goldstein  <opus@gnu.org>
10640
10641         * doc/invoke.texi: Fixes to style, grammar and diction.
10642
10643 2003-07-20  Roger Sayle  <roger@eyesopen.com>
10644
10645         * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
10646         * system.h (SMALL_STACK): Poison obsolete target macro.
10647         * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
10648
10649 2003-07-20  Phil Edwards  <pme@gcc.gnu.org>
10650
10651         * configure.in:  Cache the results of testing for cmp's capabilities.
10652         * configure:  Regenerate.
10653
10654 2003-07-20  Mark Mitchell  <mark@codesourcery.com>
10655
10656         PR debug/11279
10657         * dwarf2out.c (gen_enumeration_type_die): Remember that
10658         enumerators can be unsigned.
10659
10660 2003-07-19  Zack Weinberg  <zack@codesourcery.com>
10661
10662         * c-decl.c (named_labels, shadowed_labels, label_level_chain)
10663         (push_label_level, pop_label_level): Kill.
10664         (struct binding_level): Rename level_chain to outer.
10665         Add outer_function field.  Change parm_flag, function_body,
10666         keep, keep_if_subblocks to 1-bit bitfields of type bool.
10667         (current_function_level): New variable.
10668         (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
10669         (keep_next_level, declare_parm_level, warn_if_shadowing):
10670         Update to match.
10671         (struct language_function): Kill named_labels, shadowed_labels fields.
10672         (c_init_decl_processing, start_function, c_push__function_context)
10673         (c_pop_function_context): No need to muck with named_labels nor
10674         shadowed_labels.
10675
10676         (make_binding_level): No need to clear the structure here.
10677         (pop_binding_level): Always operate on current_binding_level.
10678         Update current_function_level if necessary.
10679         (pushlevel): Don't clear named_labels.  Update current_function_level
10680         if necessary.  Use "true" and "false" where appropriate.
10681         (poplevel): Diagnose labels defined but not used, or vice
10682         versa, and clear out label-meanings leaving scope, while
10683         walking down the decls list, for all binding levels.
10684         Handle LABEL_DECLs appearing in the shadowed list.
10685         pop_binding_level takes no arguments.
10686         (pushdecl_function_level): Use current_function_level.
10687
10688         (make_label, bind_label): New static functions.
10689         (declare_label): New exported function.
10690         (lookup_label, define_label): Rewritten for new data structure.
10691         (shadow_label): Kill.
10692
10693         * c-tree.h: Prototype declare_label; don't prototype
10694         push_label_level, pop_label_level, nor shadow_label.
10695         * c-parse.in: Remove all calls to push_label_level and
10696         pop_label_level.  Use declare_label for __label__ decls.
10697
10698         * doc/extend.texi: Clarify that __label__ can be used to
10699         declare labels with local scope in any nested block, not
10700         just statement expressions.  Cross-reference nested functions
10701         section from local labels section.
10702
10703 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10704
10705         * sched-rgn.c (find_rgns): Initialize current_edge correctly.
10706
10707 2003-07-19  Phil Edwards  <pme@gcc.gnu.org>
10708
10709         * doc/makefile.texi (restrap, profiledbootstrap):  Document targets.
10710
10711 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10712
10713         * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
10714         fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
10715
10716 2003-07-19  Ulrich Weigand  <uweigand@de.ibm.com>
10717
10718         * config/s390/s390.c (legitimize_pic_address): Access local symbols
10719         relative to the GOT instead of relative to the literal pool base.
10720         (s390_output_symbolic_const): Handle new GOT-relative accesses.
10721         * config/s390/s390.md ("call"): Access local functions and PLT stubs
10722         relative to the GOT instead of relative to the literal pool base.
10723         ("call_value"): Likewise.
10724         ("call_value_tls"): Likewise.
10725
10726         * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
10727         reloading.  Support LTREL_BASE / LTREL_OFFSET construct.
10728         (s390_chunkify_finish): Likewise.
10729         (s390_chunkify_cancel): Likewise.
10730         (s390_reorg): Adapt caller.
10731         (find_base_register_in_addr,
10732         find_base_register_ref, replace_base_register_ref): Delete.
10733         (find_ltrel_base, replace_ltrel_base): New functions.
10734         (find_constant_pool_ref): Handle LTREL_BASE unspecs.
10735         (s390_decompose_address): Handle LTREL_BASE unspecs.  Optimize
10736         base vs. index register usage.
10737         (struct constant_pool): Remove 'anchor'.
10738         (s390_add_anchor): Delete.
10739         (s390_dump_pool): Remove anchor handling.
10740         * config/s390/s390.md ("reload_anchor"): Remove.
10741
10742         * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
10743         (s390_load_got): New function.  Use LTREL_BASE/OFFSET.
10744         (s390_emit_prologue): Use it.
10745         * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
10746         "builtin_setjmp_receiver"): Cleanup.  Use s390_load_got.  Do not
10747         hard-code register 14.
10748         * config/s390/s390-protos.h (s390_load_got): Declare.
10749
10750         * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
10751         Support TImode constants.
10752         * config/s390/s390.md ("consttable_ti"): New.
10753         ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
10754
10755         * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
10756         UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
10757         UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
10758         UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
10759         UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
10760         New symbolic constants.
10761         ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
10762         "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
10763         "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
10764         "pool", "literal_pool_31", "literal_pool_64"): Cleanup.  Use
10765         symbolic UNSPEC values.
10766         * config/s390/s390.c (larl_operand, s390_short_displacement,
10767         bras_sym_operand, s390_cannot_force_const_mem,
10768         s390_delegitimize_address, s390_decompose_address,
10769         legitimize_pic_address, s390_output_symbolic_const,
10770         s390_function_profiler): Use symbolic UNSPEC values.
10771
10772 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10773
10774         * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
10775         c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
10776         c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
10777         collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
10778         cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
10779         cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
10780         dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
10781         fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
10782         gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
10783         genemit.c genextract.c genoutput.c genrecog.c gensupport.c
10784         ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
10785         integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
10786         loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
10787         postreload.c prefix.c print-tree.c protoize.c ra-build.c
10788         ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
10789         regmove.c regrename.c reload.c reload1.c reorg.c resource.c
10790         sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
10791         simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
10792         tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
10793         varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
10794         casts.
10795
10796 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10797
10798         * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
10799         * toplev.h (warning): Remove attribute.
10800
10801 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10802
10803         * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
10804         (pop_label_level): Likewise.
10805         (duplicate_decls): Likewise.
10806         (implicitly_declare): Likewise.
10807         (shadow_label): Likewise.
10808         (start_decl): Likewise.
10809         (finish_decl): Likewise.
10810         (grokdeclarator): Likewise.
10811         (get_parm_info): Likewise.
10812         (detect_field_duplicates): Likewise.
10813         (finish_struct): Likewise.
10814         (start_function): Likewise.
10815         (store_parm_decls): Likewise.
10816         (finish_function): Likewise.
10817         (c_expand_body_1): Likewise.
10818         (check_for_loop_decls): Likewise.
10819         (merge_translation_unit_decls): Likewise.
10820
10821 2003-07-19  Neil Booth  <neil@daikokuya.co.uk>
10822
10823         * common.opt:  Document --param.
10824         * opts.c (columns, undocumented_msg): New.
10825         (print_help): Get number of columns from environment.  Print
10826         --param help.  Tweak newline handling.
10827         (print_param_help): New.
10828         (print_filtered_help): Better handling of duplicates.  Complain
10829         about undocumented switches.
10830         (print_switch): New.
10831         (wrap_help): Improve wrapping, use COLUMNS.
10832         * opts.sh: Ignore comments in records.
10833         * params.def: Fix typos and remove trailing periods.
10834         * toplev.c (display_help): Don't dump --param help.
10835         * doc/sourcebuild.texi: Update.
10836
10837 2003-07-18  Richard Henderson  <rth@redhat.com>
10838
10839         PR target/11556
10840         * optabs.c (prepare_operand): Fail gracefully instead of abort
10841         if the predicate doesn't satisfy.
10842         (gen_cond_trap): Allow prepare_operand to fail.
10843
10844 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10845
10846         * c-common.c: Don't undefine GCC_DIAG_STYLE.
10847         (fname_decl): Don't use xxx_with_decl.
10848         (c_add_case_label): Likewise.
10849         (handle_section_attribute): Likewise.
10850         (handle_alias_attribute): Likewise.
10851         (handle_no_instrument_function_attribute): Likewise.
10852         (handle_no_limit_stack_attribute): Likewise.
10853         * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
10854         * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
10855
10856 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10857
10858         * Makefile.in (ifcvt.o): Add cfgloop.h.
10859         * basic-block.h (EDGE_LOOP_EXIT): New flag.
10860         * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
10861         * ifcvt.c: Include cfgloop.h.
10862         (mark_loop_exit_edges): New static function.
10863         (if_convert): Call it.
10864         (find_if_header): Ignore branches out of loops.
10865
10866 2003-07-18  Kazu Hirata  <kazu@cs.umass.edu>
10867
10868         * combine.c (simplify_comparison): Don't share rtx when converting
10869         (ne (and (not X) 1) 0) to (eq (and X 1) 0).
10870
10871 2003-07-18  David Edelsohn  <edelsohn@gnu.org>
10872
10873         * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
10874         (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
10875         (MUST_PASS_IN_STACK): Define.
10876         (BLOCK_REG_PADDING): Define.
10877
10878 2003-07-18  Richard Henderson  <rth@redhat.com>
10879
10880         * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
10881         to skip the addr_vec.
10882
10883 2003-07-18  Alexandre Oliva  <aoliva@redhat.com>
10884
10885         * combine.c (combinable_i3pat): Don't forbid occurrences of
10886         i2dest or i1dest in inner_dest if inner_dest is a mem.
10887
10888 2003-07-18  Jan Hubicka  <jh@suse.cz>
10889
10890         * cgraph.c (cgraph_remove_node): Clear the hash table slot.
10891
10892 2003-07-17  Jakub Jelinek  <jakub@redhat.com>
10893
10894         PR target/11087
10895         * loop.c (basic_induction_var): Check if convert_modes emitted any
10896         instructions. Remove them and return 0 if so.
10897
10898 2003-07-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
10899
10900         PR optimization/11083
10901         * toplev.c (rest_of_handle_addresof): Rename into
10902         rest_of_handle_addressof.  Delete unreachable blocks
10903         if dead edges were purged after the addressof pass.
10904
10905 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
10906
10907         * Makefile.in, configure, configure.in: Remove handling of
10908         lang-options.h and options_.h.
10909         * toplev.c (struct lang_opt, documented_lang_options): Remove.
10910         (display_help): Don't use documented_lang_options.
10911
10912 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
10913
10914         * c-decl.c (pushdecl_function_level): Make static, return nothing.
10915         (kept_level_p): Fold into poplevel.
10916         (undeclared_variable): Moved here from c-typeck.c.  Export.
10917         * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
10918         (undeclared_variable): Prototype here.  Don't prototype
10919         kept_level_p nor pushdecl_function_level.
10920         * c-parse.in: Change first argument to poplevel from
10921         "kept_level_p()" to "KEEP_MAYBE".
10922         * c-typeck.c (undeclared_variable): Moved to c-decl.c.
10923
10924 2003-07-17  Roger Sayle  <roger@eyesopen.com>
10925
10926         * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
10927         commutative operands instead of modifying the RTL in-place.
10928
10929 2003-07-17  Mark Mitchell  <mark@codesourcery.com>
10930
10931         PR optimization/11557
10932         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
10933         unless we know which function is being called.
10934
10935 2003-07-17  Roger Sayle  <roger@eyesopen.com>
10936
10937         * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
10938         whether to reorder the operands of a commutative binary operator.
10939
10940 2003-07-17  Roger Sayle  <roger@eyesopen.com>
10941
10942         * fold-const.c (const_binop): Avoid performing the FP operation at
10943         compile-time, if either operand is NaN and we honor signaling NaNs,
10944         or if we're dividing by zero and either flag_trapping_math is set
10945         or the desired mode doesn't support infinities.
10946         (fold_initializer): New function to fold an expression ignoring any
10947         potential run-time exceptions or traps.
10948         * tree.h (fold_initializer): Prototype here.
10949         * c-typeck.c (build_binary_op): Move to the end of the file so
10950         that intializer_stack is in scope.  If constructing an initializer,
10951         i.e. when initializer_stack is not NULL, use fold_initializer to
10952         fold expressions.
10953         * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
10954         performing FP operations at compile-time, if they would raise an
10955         exception at run-time.
10956
10957 2003-07-17  Geoffrey Keating  <geoffk@apple.com>
10958
10959         PR 11498
10960         * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
10961         (langhooks.o): Add $(GGC_H), gt-langhooks.h.
10962         (GTFILES): Add langhooks.c.
10963         (gt-langhooks.h): New.
10964         * c-common.h (c_static_assembler_name): Prototype.
10965         * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
10966         * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
10967         * c-opts.c: Include langhooks-def.h.
10968         (c_static_assembler_name): New.
10969         * langhooks.c: Include ggc.h.  Include gt-langhooks.h.
10970         (var_labelno): New.
10971         (lhd_set_decl_assembler_name): Give static objects with context
10972         unique names.
10973         * varasm.c (var_labelno): Delete.
10974         (make_decl_rtl): Don't change the assembler name once it's set.
10975
10976         * c-opts.c (this_input_filename): New.
10977         (finish_options): Take new parameter, name of file being compiled.
10978         Update callers.  Set this_input_filename.
10979         (push_command_line_include): Use this_input_filename not
10980         main_input_filename.
10981
10982 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
10983
10984         * Makefile.in: Depend .pot generation on options.c.
10985         * po/exgettext: Add an extra_files variable containing additional
10986         files to scan.
10987
10988 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
10989
10990         * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
10991         c_write_global_declarations.
10992
10993         * c-decl.c: Fix typos in several comments.  Remove all
10994         #if 0 blocks; reindent as needed.  Remove unused argument
10995         to declare_parm_level; all callers changed.
10996         * c-parse.in: Update calls to declare_parm_level.  Avoid
10997         issuing a double warning in some circumstances.
10998         * c-typeck.c: Update calls to declare_parm_level.
10999         * c-tree.h: Update prototype of declare_parm_level.
11000
11001         * c-pragma.c (apply_pragma_weak): Don't complain about a
11002         redundant #pragma weak.
11003
11004         * objc/objc-act.c (forward_declare_categories,
11005         build_selector_reference_decl, build_class_reference_decl,
11006         build_objc_string_decl, synth_forward_declarations,
11007         build_protocol_reference): Set TREE_PUBLIC on synthetic
11008         forward decl to 0, consistent with eventual definition.
11009         Correct comments to match.
11010
11011         * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
11012         in regexp that don't form a range expression.
11013         * fixinc/fixincl.def: Regenerate.
11014
11015 2003-07-17  Richard Henderson  <rth@redhat.com>
11016
11017         PR target/10907
11018         * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
11019         even with !TARGET_CONST_GP.
11020         (ia64_function_ok_for_sibcall): Reject non-local functions.
11021
11022 2003-07-17  Steven Bosscher  <steven@gcc.gnu.org>
11023
11024         * c-common.c (c_estimate_num_insns_1): Don't handle
11025         METHOD_CALL_EXPR.
11026         * expr.c (safe_from_p): Likewise.
11027         * gengtype.c (adjust_field_tree_exp): Likewise.
11028         * stmt.c (warn_if_unused_value): Likewise
11029         * tree.c (first_rtl_op): Likewise.
11030         * tree.def: Don't define METHOD_CALL_EXPR.
11031         * java/lang.c (java_estimate_num_insns_1): Don't handle
11032         METHOD_CALL_EXPR.
11033
11034 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
11035
11036         PR other/11466
11037         * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
11038         and its restrictions for the SPARC64 port.
11039         Move the entry of "-mimpure-text" before that of "-mv8".
11040
11041 2003-07-17  Eric Botcazou <ebotcazou@libertysurf.fr>
11042             Phil Edwards <phil@jaj.com>
11043
11044         * doc/install.texi (*-*-solaris2*): Document the step-by-step
11045         procedure to bootstrap and install.
11046         Document the preference for the legacy Sun tools in /usr/bin
11047         over the POSIX tools in /usr/xpg4/bin for the build process.
11048
11049 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
11050
11051         * c.opt: Document Uncodumented; use it.  Document ObjC options.
11052         * opts.c (print_filtered_help): Skip undocumented switches.
11053         * opts.h (CL_UNDOCUMENTED): New.
11054         * opts.sh: Handle Undocumented.
11055         * toplev.c (documented_lang_options): Prevent its becoming empty.
11056 objc:
11057         * lang-options.h: Remove.
11058
11059 2003-07-16  Ulrich Weigand  <uweigand@de.ibm.com>
11060
11061         * loop.c (check_ext_dependent_givs): Pass const struct loop *
11062         instead of struct loop_info * as argument.  Accept BIVs with
11063         increment +/- 1 provided there is a friendly exit test against
11064         a loop-invariant value.
11065         (strength_reduce): Adapt call to check_ext_dependent_givs.
11066
11067 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
11068             Con Bradley <con.bradley@superh.com>
11069
11070         * sh-protos.h (sh_get_pr_initial_val): Declare.
11071         * sh.c (regno_reg_class): Make its elements type enum reg_class.
11072         (output_stack_adjust): Remove emit_fn argument.  Add epilogue_p
11073         and live_regs_mask arguments.  Changed all callers.
11074         (save_schedule_s): New structure.
11075         (save_schedule): New typedef.
11076         (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
11077         (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
11078         In interrupts handlers, also save registers that are usually
11079         partially saved, and make sure there is at least one general purpose
11080         register saved if a target register needs saving.
11081         Add casts in comparisons to avoid warnings.
11082         (sh_media_register_for_return): return -1 for interrupt handlers.
11083         (MAX_SAVED_REGS, MAX_TEMPS): New defines.
11084         (sh_expand_prologue): Use sh5_schedule_saves.  Check that any temp
11085         registers used are available.
11086         Set RTX_FRAME_RELATED_P where appropriate.
11087         Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
11088         (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
11089         (initial_elimination_offset): Likewise.
11090         * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
11091         (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
11092         (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
11093         (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
11094         (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
11095         and for target registers.
11096         (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
11097         (regno_reg_class): Make its elements type enum reg_class.
11098         (CONSTRAINT_LEN): Don't use isdigit.
11099         (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
11100         (FUNCTION_ARG): Add parentheses to avoid warnings.
11101         (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
11102         (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
11103         (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
11104         (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
11105         * sh.md (xordi3+1): Remove unused variable regno.
11106         (return_media): Check that tr0 is available before using it.
11107
11108 2003-07-16  Neil Booth  <neil@daikokuya.co.uk>
11109
11110         * c.opt: Document more options.
11111
11112 2003-07-16  Roger Sayle  <roger@eyesopen.com>
11113
11114         * combine.c (subst): Also handle (subreg (const_double ...)) case
11115         if created by a substitution, by using the original inner mode.
11116
11117 2003-07-16  Roger Sayle  <roger@eyesopen.com>
11118
11119         * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
11120         to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
11121         (simplify_rtx): Likewise.  Simplify (lo_sum (high X) X) as X.
11122
11123 2003-07-16  Andrew Pinski  <pinskia@physics.uc.edu>
11124
11125         * doc/install.texi (--without-headers): New.
11126
11127         Partial Fix PR/10129
11128         * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
11129         (machopic_output_function_base_name): New; print the true pic label.
11130         (machopic_classify_ident): Pic Base is always a defined data.
11131         * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
11132         * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
11133
11134         * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
11135         if they are not floating point registers.
11136
11137         PR c/10962
11138         * ggc.h: Add header guards.
11139         * c-decl.c (finish_struct): Sort fields if
11140         number greater than 15 and there are no
11141         anonymous structs/unions.
11142         * c-common.h: Include ggc.h.
11143         (sorted_fields_type): New struct.
11144         (field_decl_cmp): New prototype.
11145         (resort_sorted_fields): New prototype.
11146         (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
11147         * c-tree.h: (lang_type): Use pointer to sorted_fields_type
11148         as s, removing other fields.
11149         * c-typeck.c (lookup_field): Use s in lang_type.
11150         These were mostly moved from cp/class.c:
11151         * c-common.c (field_decl_cmp): New static function.
11152         (field_decl_cmp): New function.
11153         (resort_sorted_fields): New function.
11154
11155 2003-07-16  Geoffrey Keating  <geoffk@apple.com>
11156
11157         * config/darwin.c (machopic_select_section): Use decl_readonly_section
11158         to do most of the work.
11159
11160 2003-07-16  Hans-Peter Nilsson  <hp@bitrange.com>
11161
11162         * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
11163         * config/mmix/mmix.c: Convert functions to ISO C90.
11164         (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
11165         formatting.
11166         (mmix_get_hard_reg_initial_val): Tweak section head comment.
11167
11168 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
11169
11170         * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
11171
11172 2003-07-16  Jakub Jelinek  <jakub@redhat.com>
11173
11174         * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
11175         (uw_update_context_1): Use it.
11176         * config/rs6000/rs6000.c (insn_after_throw): Remove.
11177         (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
11178         in parent frame if _Unwind_* called directly instead of through
11179         .plt.
11180         (rs6000_emit_eh_toc_restore): Remove.
11181         (rs6000_emit_prologue): Update stack pointer before doing any saving
11182         if current_function_calls_eh_return.  Generate unwind info for $r2.
11183         (rs6000_emit_epilogue): Restore stack pointer after doing all
11184         restoring if current_function_calls_eh_return.  Restore $r2.
11185         * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
11186         * config/rs6000/rs6000.md (eh_return): Remove call to
11187         rs6000_emit_eh_toc_restore.
11188         * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
11189         * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
11190
11191 2003-07-15  Jakub Jelinek  <jakub@redhat.com>
11192
11193         * expr.c (emit_block_move): Don't move anything if size is const 0.
11194         (clear_storage): Test against const0_rtx instead of comparing INTVAL
11195         against 0.
11196
11197 2003-07-15  David S. Miller  <davem@redhat.com>
11198
11199         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
11200         emit nop if the last real insn is CALL_INSN.
11201
11202 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
11203
11204         * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
11205         as "nul".
11206         * config/i386/xm-mingw32.h: Change GNU CC to GCC.
11207
11208 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
11209
11210         * config/i386/winnt.c (associated_type): Artificial methods are not
11211         affected by the import/export status of their class unless they are
11212         COMDAT.
11213         (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
11214
11215         * config/i386/winnt.c: Fix GCC copyright comment.
11216
11217 2003-07-16  Gabriel Dos Reis  <gcc@integrable-solutions.net>
11218
11219         PR c++/11531
11220         * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
11221         not recursing on hard error.
11222         (diagnostic_for_decl): Likewise.
11223         * diagnostic.def: Rearrange.
11224
11225 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
11226
11227         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
11228         If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
11229
11230 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
11231             Richard Henderson  <rth@redhat.com>
11232
11233         * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
11234         to decide if to access a _Unwind_Ptr or a _Unwind_Word.
11235         (_Unwind_SetGR): Likewise.
11236         (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
11237         (Unwind_SpTmp): New typedef.
11238         (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
11239         (uw_update_context): Use _Unwind_GetPtr.
11240         (init_dwarf_reg_size_table): Move above uw_init_context_1.
11241         (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
11242         Use _Unwind_SetSpColumn.
11243         (uw_install_context_1): Don't initialize dwarf_reg_size_table.
11244         Use _Unwind_GetPtr.
11245
11246 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
11247
11248         * c.opt: Document more options.
11249         * toplev.c (documented_lang_options): Remove all local help strings.
11250
11251 2003-07-15  Mark Mitchell  <mark@codesourcery.com>
11252
11253         PR debug/11473
11254         * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
11255         base classes.
11256
11257 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
11258
11259         PR target/10795
11260         * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
11261         swap comparison operands if doing so would generate an
11262         unrecognizable insn.
11263
11264 2003-07-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
11265
11266         PR optimization/11320
11267         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
11268         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
11269         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
11270         current_sched_info->compute_jump_reg_dependencies. Record which
11271         registers are used and which registers are set by the jump.
11272         Clear deps->reg_conditional_sets after a barrier.
11273         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
11274         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
11275         (init_deps): Initialize reg_conditional_sets.
11276         (free_deps): Clear reg_conditional_sets.
11277         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
11278         Mark registers live on entry of the fallthrough block and conditionally
11279         set as set by the jump. Mark registers live on entry of non-fallthrough
11280         blocks as used by the jump.
11281         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
11282         Mark new parameters as unused.
11283
11284 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
11285
11286         * doc/invoke.texi: Resync MIPS -march documentation.
11287
11288 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
11289
11290         * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
11291         (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
11292         (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
11293         * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
11294         (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
11295         (mips_issue_rate): Handle PROCESSOR_R9000.
11296         (mips_use_dfa_pipeline_interface): Likewise.
11297         * config/mips/9000.md: New file.
11298         * config/mips/mips.md: Include it.
11299         (define_attr cpu): Add r9000.
11300         (mulsi3_mult3): Use "mul" for rm9000 code.
11301
11302 2003-07-15  Stan Cox  <scox@redhat.com>
11303
11304         * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
11305         (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
11306         (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
11307         * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
11308         (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
11309         (mips_issue_rate): Handle PROCESSOR_R7000.
11310         (mips_use_dfa_pipeline_interface): Likewise.
11311         * config/mips/7000.md: New file.
11312         * config/mips/mips.md: Include it.
11313         (define_attr cpu): Add r7000.
11314         (mulsi3_mult3): Use "mul" for rm7000 code.
11315
11316 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
11317
11318         * config/mips/mips.md (define_attr type): Add condmove.  Use it for
11319         the conditional move patterns.
11320         * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
11321         Check for condmove type.
11322         (ir_vr54_arith): Add move type.
11323         * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
11324         * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
11325
11326 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
11327
11328         * c-opts.c (print_help): Remove.
11329         (c_common_handle_option): Don't handle --help.
11330         * c.opt: Document some options.
11331         (--help): Remove.
11332         * opts.c (print_filtered_help): New.
11333         (print_help): Use it.
11334
11335 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
11336
11337         * c-common.c (c_common_type_for_mode): Handle V4DFmode.
11338         * tree.c: (build_common_tree_nodes_2): Likewise.
11339         * tree.h (enum tree_index): Add TI_V4DF_TYPE.
11340         (V4DF_type_node): New.
11341
11342         * c-opts.c (push_command_line_include): Don't free deferred_opts,
11343         we'll need it.
11344         (finish_options): Reset init_cursor.
11345
11346 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
11347
11348         * expr.c (expand_assignment): Remove an unused argument
11349         SUGGEST_REG.
11350         * expr.h: Update the prototype.
11351         * function.c: Update the callers.
11352         * stmt.c: Likewise.
11353
11354 2003-07-14  Mark Mitchell  <mark@codesourcery.com>
11355
11356         PR debug/11098
11357         * integrate.c (copy_decl_for_inlining): Do not mark copied decls
11358         as DECL_ABSTRACT.
11359
11360 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
11361
11362         * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
11363         with __cplusplus, not "we must use the C++ compiler's type"
11364         * fixinc/inclhack.def (void_null): Note that Interix needs this.
11365         * fixinc/fixincl.x: Regenerate.
11366
11367 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
11368
11369         * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
11370         and unseen_objects from the global data before calling
11371         __deregister_frame_info_bases.
11372         (examine_objects): Insert objects into the seen_objects list,
11373         not unseen_objects.
11374         (_Unwind_Find_FDE): Always unlock the global object lists, even if
11375         we couldn't allocate a data structure to put in it.
11376
11377         * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
11378         (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
11379         (SET_TYPE_PROTOCOL_LIST): New.
11380         * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
11381         (get_object_reference): Likewise.
11382
11383 2003-07-14  Jan Hubicka  <jh@suse.cz>
11384
11385         * cfglayout.c (locator_file): Break out from ....
11386         (insn_file): ... here.
11387         (locator_line): Break out from ....
11388         (insn_line): ... here.
11389         * rtl.h (locator_file, locator_line): Declare.
11390         (final_start_function): Set proper line/file info.
11391
11392 2003-07-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11393
11394         * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
11395         handled by pp_c_cast_expression.
11396
11397 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
11398
11399         * config/mips/mips.c (mips_expand_prologue): Use a single insn to
11400         allocate 32768 bytes of stack.  Use addition rather than subtraction
11401         when a single insn is enough.
11402         * config/mips/mips.md: Remove insns and splitters for subtracting
11403         constants.
11404         (subsi3): Only accept register operands.
11405         (subsi3_internal): Likewise.  Use for TARGET_MIPS16 as well.
11406         (subdi3_internal_3, subsi3_internal_2): Likewise.
11407         (casesi): Use expand_binop to subtract the lower bound.
11408
11409 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
11410
11411         * config/mips/mips.c (mips_in_small_data_p): Don't handle
11412         TARGET_MIPS16 specially.
11413
11414 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
11415
11416         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
11417         mips_output_aligned_bss.
11418         * config/mips/linux.h: Likewise.
11419         * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
11420         * config/mips/mips.c (mips_output_aligned_bss): New function.
11421
11422         * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
11423         * config/mips/elf64.h: Likewise.
11424
11425         * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
11426         mips_declare_object_name.
11427         (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
11428         * config/mips/elf64.h: As for elf.h.
11429         * config/mips/iris6.h: Likewise.
11430         * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
11431         * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
11432         do...while (0) block.
11433         * config/mips/mips-protos.h (mips_declare_object_name): Declare.
11434         (mips_finish_declare_object): Declare.
11435         * config/mips/mips.c (mips_declare_object_name): New function.
11436         (mips_finish_declare_object): New function.
11437
11438         * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
11439         * config/mips/linux.h: Likewise.
11440
11441         * config/mips/mips.c (inside_function): Delete.
11442         (file_in_function_warning, ignore_line_number): Delete.
11443         (mips_output_filename): Don't warn about changing filenames within
11444         a function.
11445         (mips_output_lineno): Update accordingly.
11446         (mips_output_function_prologue): Don't reset the deleted variables.
11447         * config/mips/mips.h (inside_function): Delete.
11448         (file_in_function_warning, ignore_line_number): Delete.
11449
11450         * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
11451         * config/mips/elf64.h: Likewise.
11452         * config/mips/openbsd.h: Likewise.
11453         * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
11454         * config/mips/linux.h: Likewise.
11455         * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
11456         (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
11457
11458         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
11459         to the list of include files when using gas.
11460         (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
11461         * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
11462         * config/mips/elf64.h: Likewise.
11463         * config/mips/iris5.h: Likewise.
11464         * config/mips/linux.h: Likewise.
11465         * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
11466         * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
11467         (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
11468         * config/mips/sdb.h: ...this new file.
11469
11470 2003-07-14  Douglas Rupp  <rupp@gnat.com>
11471
11472         * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
11473         argument to getcwd; use fixed buffer instead.
11474
11475 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
11476
11477         * fixinc/mkfixinc.sh: Treat OpenBSD normally.
11478         * fixinc/fixinc.wrap: Delete.
11479
11480 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
11481
11482         * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
11483         don't have 2.
11484
11485 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
11486
11487         * ggc-page.c (struct globals): Add new fields to keep track of the
11488         total allocated memory and overhead.
11489         (ggc_print_statistics): Print them.
11490         (ggc_alloc): Keep track of the total allocated memory and the
11491         overhead.
11492
11493         * tree.c (dump_tree_statistics): Increase spacing.
11494         (enum tree_node_kind): Move to ...
11495         * tree.h (enum tree_node_kind): ... here.
11496         (tree_node_counts, tree_node_sizes): Declare.
11497
11498 2003-07-14  James A. Morrison  <ja2morri@student.math.uwaterloo.ca>
11499
11500         * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
11501
11502 2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11503
11504         PR optimization/11440
11505         * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
11506         SIGN_EXTRACT SETs.
11507
11508 2003-07-14  Alan Modra  <amodra@bigpond.net.au>
11509
11510         * doc/tm.texi (BLOCK_REG_PADDING): Describe.
11511         * expr.h (struct locate_and_pad_arg_data): Add where_pad.
11512         (emit_group_load, emit_group_store): Adjust declarations.
11513         Remove most occurrences of #ifdef TREE_CODE.
11514         * expr.c (emit_group_load): Add "type" param, and use
11515         BLOCK_REG_PADDING to determine need for a shift.  Optimize non-
11516         aligned accesses if !SLOW_UNALIGNED_ACCESS.
11517         (emit_group_store): Likewise.
11518         (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
11519         emit_group_load and emit_group_store calls.
11520         * calls.c (store_unaligned_arguments_into_pseudos): Tidy.  Use
11521         BLOCK_REG_PADDING to determine whether we need endian_correction.
11522         (load_register_parameters): Localize vars.  Handle shifting of
11523         small values to the correct end of regs.  Adjust emit_group_load
11524         call.
11525         (expand_call, emit_library_call_value_1): Adjust emit_group_load
11526         and emit_group_store calls.
11527         * function.c (assign_parms): Set mem alignment for stack slots.
11528         Adjust emit_group_store call.  Store values at the "wrong" end
11529         of regs to the stack.  Use BLOCK_REG_PADDING.
11530         (locate_and_pad_parm): Save where_pad.
11531         (expand_function_end): Adjust emit_group_load call.
11532         * stmt.c (expand_value_return): Adjust emit_group_load call.
11533         * Makefile.in (calls.o): Depend on $(OPTABS_H).
11534         * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
11535         (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
11536         (MUST_PASS_IN_STACK): Define.
11537         (BLOCK_REG_PADDING): Define.
11538         * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
11539         (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
11540         * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
11541         (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
11542         Act on AGGREGATES_PAD_UPWARD_ALWAYS.
11543
11544 2003-07-13  Aaron W. LaFramboise  <awlaframboise@aol.com>
11545
11546         * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
11547
11548 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11549
11550         * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
11551         both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
11552
11553 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
11554
11555         PR other/11123
11556         * toplev.c: Don't cut off option names.
11557
11558 2003-07-13  Andreas Jaeger  <aj@suse.de>
11559
11560         * c-decl.c (link_hash_hash): Avoid warning about casting pointer
11561         to integer of different size.
11562
11563 2003-07-13  Kazu Hirata  <kazu@cs.umass.edu>
11564
11565         * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
11566         to (eq (and X 1) 0).
11567
11568 2003-07-13  Andreas Jaeger  <aj@suse.de>
11569
11570         * config.gcc: Add pmmintrin.h for x86_64-*-*.
11571
11572 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
11573
11574         * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
11575         (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
11576         list.  Move these all together down by cpplib.
11577
11578         * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
11579         definition of CPPCHAR_SIGNED_T.
11580
11581         * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
11582         * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
11583         * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
11584
11585         * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
11586         * cppinit.c (cpp_create_reader): Likewise.
11587
11588         * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
11589         * cpptrad.c: Likewise.  All callers changed.
11590         * cpplib.c: All callers changed.
11591         * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
11592         * hashtable.h: Define GTY(x) to nothing here too.
11593
11594 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11595
11596         * stor-layout.c (compute_record_mode): Remove very obsolete test
11597         that forces BLKmode for records with fields crossing word boundary.
11598
11599 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
11600
11601         * Makefile.in: Remove orphan reference to acconfig.h.
11602
11603 2003-07-13  Andreas Jaeger  <aj@suse.de>
11604
11605         * cgraphunit.c: Convert prototypes to ISO C90.
11606
11607 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
11608
11609         * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
11610         (for OpenBSD).
11611         * fixinc/fixincl.x: Rebuild.
11612
11613 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
11614
11615         * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
11616         i?86-*-*.  Use correct name of cache variable.
11617         * configure: Regenerate.
11618
11619 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
11620
11621         * config/alpha/alpha.c: Fix comment typos.
11622         * config/alpha/alpha.md: Likewise.
11623         * config/arm/arm.c: Likewise.
11624         * config/arm/arm.md: Likewise.
11625         * config/arm/lib1funcs.asm: Likewise.
11626         * config/avr/avr.md: Likewise.
11627         * config/arm/README-interworking: Fix typos.
11628
11629 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
11630
11631         * c-format.c: Fix comment formatting.
11632         * c-typeck.c: Likewise.
11633         * coverage.c: Likewise.
11634         * cppcharset.c: Likewise.
11635         * cpplib.c: Likewise.
11636         * dbxout.c: Likewise.
11637         * gcov-io.h: Likewise.
11638         * toplev.c: Likewise.
11639
11640 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
11641
11642         * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
11643         fix.
11644
11645 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
11646
11647         * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
11648         uses three-argument AC_DEFINE so no acconfig.h entries are
11649         needed.
11650         (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
11651         which contains the GAS version number as a scaled integer.
11652         (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers.  Add
11653         ability to check for ELF assembler.
11654         (gcc_GAS_CHECK_FEATURE): New macro.
11655         * configure.in: Use gcc_AC_CHECK_TYPE.  Rewrite all
11656         assembler feature checks using gcc_GAS_CHECK_FEATURE.
11657         Use three-argument AC_DEFINE everywhere.
11658         * acconfig.h: Deleted.
11659         * config.in, configure: Regenerate.
11660
11661 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
11662
11663         * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
11664         (on OpenBSD).
11665         * fixinc/fixincl.x: Regenerate.
11666
11667         * fixinc/inclhack.def (gnu_types): Improve comment.
11668
11669 2003-07-12  Andreas Jaeger  <aj@suse.de>
11670
11671         * fp-test.c (main): Use ISO C90 prototype.
11672
11673         * version.c: Remove unneded include of ansidecl.h.
11674
11675         * cgraph.h: Convert prototypes to ISO C90.
11676         * cgraph.c: Likewise.
11677         * fix-header.c: Likewise.
11678         * ra.h: Likewise.
11679         * protoize.c: Likewise.
11680
11681 2003-07-12  Jan Hubicka  <jh@suse.cz>
11682
11683         * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
11684         warning.
11685
11686 2003-07-12  Jan Hubicka  <jh@suse.cz>
11687                                Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11688
11689         * cgraph.c (cgraph_max_uid): New global variable.
11690         (cgraph_node): Set uid field.
11691         (create_edge): Keep inline flags consistent.
11692         (dump_cgraph): Dump more info.
11693         * cgraph.h (struct cgraph_local_info): Remove inline_many and
11694         can_inline_once; add inlinable, disgread_inline_limits, and self_insn
11695         (struct cgraph_global_info): Add insns, calls, cloned_times,
11696         will_be_output.
11697         (struct cgraph_node): Add uid.
11698         (struct cgraph_edge): Add inline_call.
11699         (cgraph_max_uid, cgraph_inline_p): Declare.
11700         * cgraph.c: Include params.h and fibheap.h
11701         (cgraph_mark_functions_to_inline_once): Kill.
11702         (INSNS_PER_CALL): New constant.
11703         (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
11704         static variables.
11705         (cgraph_finalize_function): Do not analyze inlining.
11706         (cgraph_finalize_compilation_unit): Set inlining attributes.
11707         (cgraph_mark_functions_to_output): More consistency checks.
11708         (cgraph_optimize_function): Set current_function_decl to NULL.
11709         (cgraph_expand_function): Use new inline flags.
11710         (cgraph_postorder): Expand from cgraph_expand_functions.
11711         (INLINED_TIMES, SET_INLINED_TIMES): New macros.
11712         (cgraph_inlined_into, cgraph_inlined_callees,
11713         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
11714         cgraph_mark_inline, cgraph_check_inline_limits,
11715         cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
11716         cgraph_decide_inlining, cgraph_inline_p): New functions.
11717         * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
11718         PARAM_INLINE_UNIT_GROWTH): New parameters.
11719         * tree-inline.c (struct inline_data): New field current_decl.
11720         (expand_call_inline): Avoid forward declarations; use
11721         inlinable_function_p.
11722         (optimize_inline_calls): Set id.current_decl.
11723
11724 2003-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
11725
11726         * configure.in: Remove wrongly added definition of
11727         local_prefix.
11728         * configure: Regenerate.
11729
11730 2003-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
11731
11732         * rtl.def (NOTE): Do not use padding.
11733
11734 2003-07-11  Dara Hazeghi  <dhazeghi@yahoo.com>
11735
11736         * doc/install.tex: Update required binutils for i?86-*-linux*
11737
11738 2003-07-11  Richard Henderson  <rth@redhat.com>
11739
11740         * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
11741
11742 2003-07-11  Mark Mitchell  <mark@codesourcery.com>
11743
11744         * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
11745         TRANSLATION_UNIT_DECL as top_level.
11746
11747 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
11748
11749         * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
11750         then fall back to cmpstrM.
11751         * builtins.c (expand_builtin_memcmp): Likewise.
11752         * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
11753         (s390_expand_cmpmem): ... this.
11754         * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
11755         cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
11756         from cmpstr* patterns.  Rename call to s390_expand_cmpstr
11757         to s390_expand_cmpmem.
11758         * config/s390/s390.c (s390_expand_cmpstr): Rename to...
11759         (s390_expand_cmpstr): ... this.  Rename cmpstr* instructions
11760         to cmpmem*.
11761         * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
11762         cmpstr* patterns.
11763         * doc/md.texi (cmpstrM): Describe as String compare insn, not
11764         Block compare insn.
11765         (cmpmemM): Add.
11766
11767 2003-07-11  Loren James Rittle  <ljrittle@acm.org>
11768
11769         * config/i386/freebsd.h (SET_ASM_OP): Remove.
11770         (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
11771         (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
11772          MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
11773
11774 2003-07-11  Richard Henderson  <rth@redhat.com>
11775
11776         * function.c (assign_parms): Don't recombine complex args if
11777         fnargs is unchanged from orig_fnargs.
11778         (split_complex_args): Return args without complex before copying.
11779         Re-layout the modified parameters.
11780
11781 2003-07-11  J"orn Rennecke <joern.rennecke@superh.com>
11782
11783         * regclass.c (choose_hard_reg_mode): Add third argument.
11784         Changed all callers.
11785         * rtl.h (choose_hard_reg_mode): Update declaration.
11786         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
11787         Take HARD_REGNO_CALL_PART_CLOBBERED into account.
11788
11789 2003-07-11  Geoffrey Keating  <geoffk@apple.com>
11790
11791         * c-decl.c (finish_decl): Handle 'used' here...
11792         * cgraphunit.c (cgraph_finalize_function): ... and here ...
11793         * c-common.c: (handle_used_attribute): ... not here.
11794
11795         * configure.in (onstep): Support --enable-intermodule.
11796         * Makefile.in (OBJS-common): New.
11797         (OBJS-md): New.
11798         (OBJS-archive): New.
11799         (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
11800         (OBJS-onestep): New.
11801         (libbackend.a): Support @onestep@.
11802         (libbackend.o): New.
11803         * configure: Regenerate.
11804
11805         * c-common.h (c_reset_state): New prototype.
11806         (c_parse_file): New prototype.
11807         (finish_file): Move prototype from c-tree.h.
11808         * c-decl.c: Include <hashtab.h>.
11809         (builtin_decls): New.
11810         (current_file_decl): New.
11811         (duplicate_decls): Add extra parameter. Change all callers.  Don't
11812         output duplicate common symbols.
11813         (link_hash_hash): New.
11814         (link_hash_eq): New.
11815         (poplevel): Handle popping of the top level.
11816         (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
11817         (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
11818         (pushdecl_top_level): Likewise.
11819         (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
11820         (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
11821         (finish_decl): Handle TRANSLATION_UNIT_DECL.
11822         (merge_translation_unit_decls): New.
11823         (c_write_global_declarations): New.
11824         (c_reset_state): New.
11825         (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
11826         * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
11827         * c-objc-common.c (c_cannot_inline_tree_fn): Handle
11828         TRANSLATION_UNIT_DECL.
11829         (c_objc_common_finish_file): Call merge_translation_unit_decls.
11830         * c-opts.c (in_fnames): Rename from in_fname.
11831         (c_common_decode_option): Handle multiple input filenames.
11832         (c_common_post_options): Likewise.
11833         (c_common_parse_file): Likewise; also, call c_parse_file rather than
11834         yyparse.
11835         * c-parse.in: Move cleanup code to c_parse_file.
11836         (free_parser_stacks): Move contents to c_parse_file.
11837         (c_parse_file): New.
11838         * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
11839         for integer types.
11840         (C_DECL_FILE_SCOPE): New.
11841         (finish_file): Move prototype to c-common.h.
11842         (merge_translation_unit_decls): New prototype.
11843         (comptypes): Add extra parameter to prototype.
11844         (c_write_global_declarations): New prototype.
11845         * c-typeck.c (tagged_types_tu_compatible_p): New.
11846         (function_types_compatible_p): Add extra parameter, change all callers.
11847         (type_lists_compatible_p): Likewise.
11848         (comptypes): Likewise.
11849         (struct tagged_tu_seen): New.
11850         (tagged_tu_seen_base): New.
11851         (build_unary_op): Handle TRANSLATION_UNIT_DECL.
11852         (c_mark_addressable): Remove #if 0 code.
11853         * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
11854         comment explaining why it shouldn't have to.
11855         * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
11856         options.
11857         * cppinit.c (cpp_read_next_file): New.
11858         (cpp_read_main_file): Use it.
11859         * cpplib.c (undefine_macros): New.
11860         (cpp_undef_all): New.
11861         * cpplib.h (cpp_read_next_file): Prototype.
11862         (cpp_undef_all): Prototype.
11863         * langhooks-def.h (write_global_declarations): Remove prototype.
11864         * toplev.h (write_global_declarations): Add prototype.
11865         * tree.c (decl_type_context): Use switch statement, handle
11866         TRANSLATION_UNIT_DECL.
11867         * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
11868         (TRANSLATION_UNIT_DECL): New kind of tree.
11869         * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
11870         * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
11871         * doc/invoke.texi: Make attempt to document new functionality.
11872
11873         2003-05-19  Per Bothner <bothner@apple.com>
11874
11875         * gcc.c (combine_inputs): New.
11876         (process_command): Set combine_inputs.
11877         (do_spec_1): Handle combine_inputs.
11878         (main): Likewise.
11879
11880 2003-07-10  James E Wilson  <wilson@tuliptree.org>
11881
11882         PR optimization/9745
11883         * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
11884         loop_insn_emit_before.
11885         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
11886
11887 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
11888
11889         * cppcharset.c: Fix comment.
11890         (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
11891         (EILSEQ): #define to EINVAL if not already defined.
11892         (convert_using_iconv): #if out when !HAVE_ICONV.
11893         (init_iconv_desc): Handle !HAVE_ICONV here...
11894         (cpp_init_iconv): ...not here.
11895
11896 2003-07-11  Neil Booth  <neil@daikokuya.co.uk>
11897
11898         * common.opt: More --help messages.
11899         * opts.c (print_help): Use puts().
11900         * toplev.c (f_options): Remove help text.
11901         (display_help): Don't dump f_options.
11902
11903 2003-07-11  Nathanael Nerode  <neroden@gcc.gnu.org>
11904
11905         * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
11906         Move i?86-*-interix* to the don't-fix list.
11907         * fixinc/fixinc.interix: Delete with extreme prejudice.
11908
11909 2003-07-10  Dara Hazeghi  <dhazeghi@yahoo.com>
11910
11911         PR bootstrap/10758
11912         * doc/install.texi: Document requirements for ia64-*-hpux* target.
11913
11914 2003-07-10  Roger Sayle  <roger@eyesopen.com>
11915
11916         * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
11917
11918 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
11919
11920         * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
11921         one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
11922         one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
11923         convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
11924         convert_no_conversion, convert_using_iconv): New functions.
11925         (APPLY_CONVERSION): New macro.
11926         (struct conversion, conversion_tab): New data structure.
11927         (init_iconv_desc): Check conversion_tab for a custom conversion
11928         primitive before trying to use iconv.
11929         (convert_cset): Deleted.
11930         (cpp_init_iconv): Use UTF- terminology, not UCS-.
11931         (_cpp_destroy_iconv): Update to match.
11932         (_cpp_valid_ucn): We don't need iconv to implement UCNs.
11933         (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
11934         (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
11935         (_cpp_interpret_string_notranslate): New function, moved here
11936         from cpplib.c.
11937
11938         * cpphash.h (convert_f, struct cset_converter): New types.
11939         (struct cpp_reader): narrow_cset_desc and wide_cset_desc
11940         are now struct cset_converter, not bare iconv_t.
11941         Update prototypes.
11942         * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
11943         all callers changed.
11944
11945 2003-07-10  Kelley Cook  <kelleycook@wideopenwest.com>
11946
11947         * Makefile.in (options.h): Depend on Makefile.  Add move-if-change
11948         to opts.sh command line.
11949         * opts.sh: Write to temporary files with a move-if-change at the end.
11950
11951 2003-07-10  Denis Chertykov  <denisc@overta.ru>
11952             Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11953
11954         * combine.c (gen_binary): Handle the CLOBBER rtx and
11955         don't build a binary operation with it.
11956
11957 2003-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11958
11959         * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
11960         store_killed_after, store_killed_before): Keep track of the correct
11961         dependency function to use.
11962
11963 2003-07-10  Steven Bosscher  <steven@gcc.gnu.org>
11964         * toplev.c (do_compile): Don't try to open dump files before
11965         lang_dependent_init initializes dump_base_name.
11966
11967 2003-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11968
11969         * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
11970         Use ARRAY_SIZE.
11971         * config/frv/frv.c (frv_expand_builtin): Likewise.
11972         * config/sh/sh.c (sh_media_init_builtins): Likewise.
11973
11974 2003-07-09  Mark Mitchell  <mark@codesourcery.com>
11975
11976         PR c++/10032
11977         * doc/invoke.texi (C++ Dialect Options): Change documentation of
11978         -fpermissive.
11979
11980 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
11981
11982         * tm.texi (RETURN_ADDR_OFFSET): Document.
11983
11984 2003-07-10  Nathan Sidwell  <nathan@codesourcery.com>
11985
11986         * gcov-io.h: Update documentation.
11987         (GCOV_UNSIGNED2STRING): New.
11988         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
11989         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
11990         GCOV_TAG_SUMMARY_LENGTH): Adjust.
11991         (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
11992         GCOV_TAG_COUNTER_NUM): New.
11993         (GCOV_BLOCK_SIZE): Number of words.
11994         (gcov_var): Adjust buffer type.
11995         * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
11996         (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
11997         count, not byte count.
11998         (gcov_open): Adjust overread init.
11999         (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
12000         gcov_write_string, gcov_write_tag, gcov_write_length,
12001         gcov_write_tag_length): Adjust.
12002         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
12003         (gcov_sync, gcov_seek): Adjust.
12004         * gcov-dump.c (print_usage): Show gcc version only.
12005         (dump_file): Use GCOV_UNSIGNED2STRING.
12006         (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
12007         * gcov.c (print_version): Show gcc version only.
12008         (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
12009         GCOV_TAG_*_NUM macros.
12010         (read_count_file): Use GCOV_UNSIGNED2STRING. Use
12011         GCOV_TAG_COUNTER_LENGTH.
12012         * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
12013         Use GCOV_TAG_COUNTER_NUM.
12014         * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
12015         (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
12016
12017 2003-07-10  Andreas Schwab  <schwab@suse.de>
12018
12019         * gcov-dump.c (dump_file): Fix missing address operator.
12020
12021 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
12022
12023         PR c/11449
12024         * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
12025         of HOST_WIDE_INT.
12026         (fold_single_bit_test): If sign_bit_p() fails, assume that the
12027         bit being tested is not a sign bit.
12028
12029 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
12030
12031         * config/h8300/h8300.md (a peephole2): New.
12032
12033 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
12034
12035         2001-12-13  Alexandre Oliva  <aoliva@redhat.com>
12036         * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
12037         from ld-linux.so.2 to ld.so.1.
12038         2001-11-18  Alexandre Oliva  <aoliva@redhat.com>
12039         * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
12040         * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
12041         nor -Wl,-rpath-link.
12042         (LIB_SPEC): Add -rpath-link if !static.
12043         2001-08-22  Alexandre Oliva  <aoliva@redhat.com>
12044         * config/mn10300/mn10300.c (mn10300_protect_label): New
12045         variable.
12046         * config/mn10300/linux.h (PRINT_OPERAND,
12047         PRINT_OPERAND_ADDRESS): Set it during their execution.
12048         (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
12049         mn10300_protect_label is set.
12050         * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
12051         -Wl,-rpath-link.
12052         (LIB_SPEC, STARTFILE_SPEC): Define.
12053         2001-05-11  Alexandre Oliva  <aoliva@redhat.com>
12054         * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
12055         FLOAT_BIT_ORDER_MISMATCH.
12056         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
12057         * config.gcc (am33_2.0-*-linux*): Added.
12058         * config/mn10300/linux.h: New.
12059         * config/mn10300/t-linux: New.
12060
12061 2003-07-10  Andreas Jaeger  <aj@suse.de>
12062
12063         * fold-const.c: Properly wrap prototypes.
12064
12065 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
12066
12067         2003-06-16  Alexandre Oliva  <aoliva@redhat.com>
12068         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
12069         Moved from...
12070         * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
12071         * config/mn10300/mn10300.h: GTY-declare it.
12072         2003-06-11  Alexandre Oliva  <aoliva@redhat.com>
12073         * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
12074         prototype.  Use incoming RTL argument.
12075         2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
12076         * config/mn10300/mn10300.md (int_label): Move C statements...
12077         (GOTaddr2picreg): ... here.
12078         2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
12079         * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
12080         * config/mn10300/mn10300.c (mn10300_encode_section_info):
12081         ... here.  New function.
12082         (TARGET_ENCODE_SECTION_INFO): Define to it.
12083         2001-11-04  Alexandre Oliva  <aoliva@redhat.com>
12084         * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
12085         pattern name.
12086         (mn10300_loadPC): Define as insn splittable after reload.
12087         2001-05-13  Alexandre Oliva  <aoliva@redhat.com>
12088         * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
12089         be defined in .rodata even in PIC, now that the assembler
12090         supports that.
12091         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
12092         * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
12093         symbol take an underscore prefix.
12094         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
12095         * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
12096         legitimize_pic_address): Declare.
12097         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
12098         the PIC register as fixed.
12099         (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
12100         (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
12101         PIC.
12102         (LEGITIMATE_PIC_OPERAND_P): Define.
12103         (PIC_OFFSET_TABLE_REGNUM): Define.
12104         (GOT_SYMBOL_NAME): Define.
12105         (SYMBOLIC_CONST_P): Define.
12106         (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
12107         symbols.
12108         (MN10300_GLOBAL_P): Test it.
12109         (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
12110         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
12111         * config/mn10300/mn10300.c (print_operand): Handle unspec.
12112         (expand_prologue): Set PIC register.
12113         (call_address_operand): Don't match SYMBOL_REFs in PIC.
12114         (legitimize_address): Call legitimize_pic_address.
12115         (legitimize_pic_address): New fn.
12116         (legitimate_pic_operand_p): New fn.
12117         * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
12118         (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
12119         UNSPEC_PLT): New constants.
12120         (pop_pic_reg): New insn.
12121         (movsi): Adjust non-PIC addresses.
12122         (builtin_setjmp_receiver): Restore the PIC register.
12123         (casesi): New insn.
12124         (call): Adjust non-PIC addresses.
12125         (int_label, GOTaddr2picreg): New expands.
12126         (am33_loadPC): New insn.
12127         (mn10300_loadPC): New expand.
12128         (call_next_insn): New insn.
12129         (add_GOT_to_pic_reg): New expand.
12130         (symGOT2reg, symGOT2reg_i): New expands.
12131         (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
12132         (sym2PIC, sym2PLT): New expands.
12133
12134 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
12135
12136         * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
12137         2001-05-01  Alexandre Oliva  <aoliva@redhat.com>
12138         * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
12139         to flag_unsafe_math_optimizations.
12140         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
12141         * config/mn10300/mn10300.c (expand_prologue): Mark
12142         FP-register-saving insns as frame-related.
12143         2001-02-13  Alexandre Oliva  <aoliva@redhat.com>
12144         * config/mn10300/mn10300.c
12145         (mn10300_get_live_callee_saved_regs): Don't search past
12146         LAST_EXTENDED_REGNUM.
12147         (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
12148         * config/mn10300/mn10300.md: Remove excessive line breaks from
12149         `@' output patterns that were accounted as additional
12150         alternatives.
12151         * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
12152         Re-introduce changes accidentally removed in Richard Sandiford's
12153         2000-12-05's patch.
12154         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
12155         Re-instate am33-2 lost in merge from net GCC.
12156         2000-08-26  Alexandre Oliva  <aoliva@redhat.com>
12157         * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
12158         floating-point registers.
12159         2000-08-07  Alexandre Oliva  <aoliva@redhat.com>
12160         * config/mn10300/mn10300.md (movdf): Revert some am33-specific
12161         pessimizations that had gone in on 2000-05-08.
12162         2000-06-28  Graham Stott  <grahams@cygnus.co.uk>
12163         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
12164         2000-06-22  Graham Stott  <grahams@cygnus.co.uk>
12165         * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
12166         operand 0.
12167         * (movhi): Likewise.
12168         * (movsi): Likewise.
12169         * (movsf): Likewise.
12170         * (movdi): Likewise.
12171         * (movdf): Likewise.
12172         2000-05-24  Alexandre Oliva  <aoliva@cygnus.com>
12173         * config/mn10300/mn10300.c (fp_regs_to_save): New function.
12174         (can_use_return_insn, initial_offset): Add fp_regs_to_save.
12175         (expand_prologue, expand_epilogue): Save and restore FP regs.
12176         2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
12177         * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
12178         2000-05-13  Alexandre Oliva  <aoliva@cygnus.com>
12179         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
12180         subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
12181         Do not clobber cc0.
12182         2000-05-12  Alexandre Oliva  <aoliva@cygnus.com>
12183         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
12184         Discourage the two-argument, longer opcodes.
12185         (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
12186         ones.
12187         * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
12188         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
12189         * config/mn10300/mn10300.md (cmpsf): New pattern.
12190         (branch): Test mdep.fpCC and output fbCC.
12191         * config/mn10300/mn10300.c (print_operand): Output conditions.
12192         (notice_cc_update): Recognize fcmp and set mdep.fpCC.
12193         2000-05-10  Alexandre Oliva  <aoliva@cygnus.com>
12194         * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
12195         mulsf3, divsf3): Use the `F' constraint for FP values.
12196         * config/mn10300/mn10300.c (const_1f_operand): New function.
12197         * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
12198         * config/mn10300/mn10300.md (sqrtsf2): New expand.
12199         (rsqrtsf2): New insn.
12200         2000-05-09  Alexandre Oliva  <aoliva@cygnus.com>
12201         * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
12202         previous check-in.
12203         2000-05-08  Alexandre Oliva  <aoliva@cygnus.com>
12204         * config/mn10300/mn10300.md (abssf2, negdf2): On
12205         TARGET_AM33_2, expand to...
12206         (abssf2_am33_2, negdf2_am33_2): New insns.
12207         (addsf3, subsf3, mulsf3, divsf3): Likewise.
12208         (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
12209         * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
12210         movdi, movdf): Added FP regs.
12211         * invoke.texi (-mam33-2, -mno-am33-2): Document.
12212         2000-04-29  Alexandre Oliva  <aoliva@cygnus.com>
12213         * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
12214         New macros.
12215         (REGNO_AM33_2_FP_P): Renamed to...
12216         (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
12217         (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
12218         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
12219         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
12220         regs from GENERAL_REGS.
12221         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
12222         * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
12223         * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
12224         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
12225         2000-04-23  Alexandre Oliva  <aoliva@cygnus.com>
12226         * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
12227         as FP_REGS.
12228         2000-04-21  Alexandre Oliva  <aoliva@cygnus.com>
12229         * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
12230         (EXTRA_CONSTRAINT): Added OK_FOR_Q.
12231         * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
12232         * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
12233         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
12234         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
12235         AM33/2.0 floating-point registers.
12236         (CONDITIONAL_REGISTER_USAGE): Adjust.
12237         (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
12238         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
12239         (REG_CLASS_FROM_LETTER): Added `f' and `A'.
12240         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
12241         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
12242         (MULTILIB_DIRNAMES): Likewise.
12243         * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
12244         `__AM33_2__' when `-mam33-2' is given.
12245         (TARGET_AM33_2): Define.
12246         (TARGET_SWITCHES): Adjust.
12247         * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
12248         when appropriate.
12249
12250 2003-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
12251
12252         * doc/install.texi: Add missing @.
12253
12254 2003-07-09  Bob Wilson  <bob.wilson@acm.org>
12255
12256         * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
12257
12258 2003-07-09  Aldy Hernandez  <aldyh@redhat.com>
12259
12260         PR/11144
12261         * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
12262
12263 2003-07-09  Nathanael Nerode  <neroden@gcc.gnu.org>
12264
12265         PR bootstrap/11043
12266         * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
12267         "x-crtfini.o" with "crtinit.o", "crtfini.o".
12268
12269         * fixinc/inclhack.def (limits_ifndefs): Add select test.
12270         * fixinc/fixincl.x: Rebuild.
12271
12272         * fixinc/inclhack.def (math_exception):  Improve bypass and comment.
12273         * fixinc/fixincl.x: Rebuild.
12274
12275 2003-07-09  Hans-Peter Nilsson  <hp@bitrange.com>
12276
12277         * doc/install.texi (Configuration): Document the valgrind option
12278         to --enable-checking.
12279
12280 2003-07-09  Jan Hubicka  <jh@suse.cz>
12281
12282         * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
12283
12284 2003-07-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12285
12286         * c-lex.c (cb_ident): Cast cstr.text to const char *.
12287
12288 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
12289
12290         * gcov-io.h: Update documentation.
12291         (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
12292         GCOV_NOTE_MAGIC.
12293         (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
12294         (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
12295         (struct gcov_var): Change buffer's type. Add endian flag.
12296         (gcov_open): Remove mode in libgcov.
12297         (gcov_magic): Prototype.
12298         * gcov-io.c (from_file): New.
12299         (gcov_open): Clear endian flag.
12300         (gcov_magic): New.
12301         (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
12302         pointers.
12303         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
12304         gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
12305         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
12306         * gcov-iov.c (main): Correct cast.
12307         * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
12308         conversion.
12309         (gcov_begin_output): Use GCOV_NOTE_MAGIC.
12310         (coverage_init): Use GCOV_NOTE_SUFFIX.
12311         * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
12312         Rename to gcov_version, and return flag.
12313         (gcov_exit): Use gcov_version.
12314         (__gcov_init): Use gcov_version.
12315         * Makefile.in (coverageexts): Update.
12316         * gcov.c (print_version): Remove endianness conversion.
12317         (create_file_names): Use GCOV_NOTE_SUFFIX.
12318         (read_graph_file): Use gcov_magic.
12319         (read_count_file): Likewise.
12320         * gcov-dump.c (dump_file): Remove endianness conversion, use
12321         gcov_magic.
12322
12323 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
12324
12325         * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
12326         coverage is on.
12327         * configure: Regenerated.
12328         * Makefile.in (ALL_CFLAGS): Correct its comment.
12329
12330 2003-07-08  Mark Mitchell  <mark@codesourcery.com>
12331
12332         * fold-const.c (make_range): Do not access operand 1 for a
12333         zero-operand operator.
12334
12335 2003-07-09  Neil Booth  <neil@daikokuya.co.uk>
12336
12337         * toplev.c (warn_dummy, W_options): Die.
12338         (display_help): Don't print W_options.
12339         * common.opt: Add W_options help from toplev.c.
12340
12341 2003-07-09  Andreas Jaeger  <aj@suse.de>
12342
12343         * opts.c (wrap_help): Only pass int arguments as arguments to
12344         printf's '*' modifier.  Change argument of function.
12345
12346 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
12347
12348         * doc/invoke.texi: Fix misspelling of "@item".
12349
12350 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
12351
12352         * config/i386/i386.md: Remove an old comment about
12353         NOTICE_UPDATE_CC.
12354
12355 2003-07-09  Jan Hubicka  <jh@suse.cz>
12356
12357         * cgraph.c (cgraph_node_name): New function.
12358         (dump_cgraph): Use it.
12359         * cgraph.h (cgraph_dump_file): Declare.
12360         (cgraph_node_name): Declare.
12361         * cgraphunit.c: Include timevar.h
12362         (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
12363         (cgraph_optimize_function): Use TV_INTEGRATION.
12364         (cgraph_mark_local_functions): reorganize dumps.
12365         (cgraph_mark_functions_to_inline_once): Likewise.
12366         (cgraph_optimize): Likewise; use timevar.
12367         * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
12368         * toplev.c (dump_file_index): Add DFI_cgraph.
12369         (dump_file_info): Likewise.
12370         (cgraph_dump_file): New global variable.
12371         (do_compile): Open and close cgraph dump.
12372         * invoke.texi (-d): Document new flag; renumber.
12373
12374 2003-07-08  Roger Sayle  <roger@eyesopen.com>
12375
12376         PR c/11370
12377         * calls.c (emit_call_1): Don't bother popping the arguments off of
12378         the stack after a noreturn function call;  The adjustment is dead.
12379         (expand_call): Likewise.
12380
12381 2003-07-08  Geoffrey Keating  <geoffk@apple.com>
12382
12383         * expr.c (MOVE_MAX_PIECES): Move from here...
12384         * defaults.h (MOVE_MAX_PIECES): ... to here.
12385
12386 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
12387
12388         * Makefile.in (stage1-start): Handle an empty SUBDIRS.
12389
12390 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12391
12392         * genattr.c (internal_dfa_insn_code): Don't prototype.
12393         * genattrtab.c (attr_desc): Add `static_p' field.
12394         (expand_units): Make blockage range and ready cost functions
12395         static.
12396         (write_attr_get): Don't add extern prototypes in C file.  Mark
12397         static functions as appropriate.
12398         (find_attr, make_internal_attr): Initialize static_p.
12399         * genattrtab.h (ATTR_STATIC): New macro.
12400         * genautomata.c (output_internal_reset_func): Mark output function
12401         as inline.
12402         (make_internal_dfa_insn_code_attr): Mark output function as static.
12403
12404 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12405
12406         * genattrtab.h: Add new macros for attr `special' flags.
12407         * genattrtab.c (attr_desc): Reorder/resize fields better.
12408         Use attr `special' macros in all calls to make_internal_attr.
12409         * genautomata.c: Likewise.
12410
12411 2003-07-09  Jan Hubicka  <jh@suse.cz>
12412
12413         * c-common.c (c_estimate_num_insns_1): New static function.
12414         (c_estimate_num_insns): New global function.
12415         * c-common.h (DECL_NUM_STMTS): Rename to...
12416         (DECL_ESTIMATED_INSNS): ... this.
12417         (c_estimate_num_insns): Declare.
12418         * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
12419         * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
12420         * c-semantics.c (add_stmt): Do not account statements.
12421         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
12422         New.
12423         * langhooks.h (lang_hooks_for_tree_inlining): Add
12424         estimate_num_insns
12425         * params.def (max-inline-insns-auto, max-inline-insns-auto): set
12426         to 100.
12427         (max-inline-insns): set to 300.
12428         (min-inline-insns): set to 10.
12429         * tree-inline.c (struct inline_data): Rename inlined_stmts to
12430         inlined-insns.
12431         (INSNS_PER_STMT): Kill.
12432         (inlinable_function_p): Compute and store body size.
12433         (expand_call_inline): Likewise.
12434         (optimize_inline_calls): Likewise.
12435
12436 2003-07-08  James E Wilson  <wilson@tuliptree.org>
12437
12438         PR target/10021
12439         * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
12440         loop over new variable t2 instead of t.
12441
12442 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
12443
12444         PR bootstrap/11455
12445         * config/i386/winnt.c: Replace use of error(), warning() with
12446         error_with_decl(), warning_with_decl(),  throughout.
12447
12448 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
12449
12450         * opts.c (wrap_help): Use unsigned int, not size_t.
12451
12452 2003-07-08  Stephane Carrez  <stcarrez@nerim.fr>
12453
12454         * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
12455         as .file/.loc directives are incompatible with linker relaxation.
12456
12457 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
12458
12459         * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
12460         * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
12461         * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
12462         * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
12463         * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
12464         * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
12465         Escape { and } characters which are not part of range expressions.
12466         * fixinc/fixincl.x: Regenerate.
12467         * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
12468
12469 2003-07-08  Steven Bosscher  <steven@gcc.gnu.org>
12470
12471         PR c/1687
12472         * tree-inline.c (find_alloca_call): Use
12473         walk_tree_without_duplicates, instead of walk_tree.
12474         (find_builtin_longjmp_call): Likewise.
12475         * c-objc-common.c (c_cannot_inline_fn): Likewise.
12476         * c-semantics.c (find_reachable_label): Likewise.
12477
12478 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
12479
12480         PR c/11420
12481         * config/i386/i386.c (ix86_check_movabs): New function.
12482         * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
12483         * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
12484         (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
12485
12486 2003-07-08  Chris Demetriou  <cgd@broadcom.com>
12487
12488         * Makefile.in (install-po): Cope with empty CATALOGS.
12489
12490 2003-07-08  Richard Sandiford  <rsandifo@redhat.com>
12491
12492         * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
12493         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
12494         (SECTION_FUNCTION_TEMPLATE): Delete.
12495         * config/mips/elf.h: As for elf64.h.
12496         (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
12497         * config/mips/linux.h: As for elf.h
12498         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
12499         * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
12500         (EXTRA_SECTION_FUNCTIONS): Remove sdata_section.  Remove the handling
12501         of in_sdata from current_section_name and current_section_flags.
12502         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
12503         * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
12504         (MASK_GP_OPT, TARGET_GP_OPT): Delete.
12505         (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
12506         (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
12507         (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
12508         * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
12509         (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
12510         (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
12511         (override_options): Remove setting of MASK_GPOPT.
12512         (mips_output_external): Use mips_in_small_data_p to check whether a
12513         symbol needs an .extern directive.  Don't emit such directives for
12514         TARGET_EXPLICIT_RELOCS.
12515         (mips_declare_object): Update accordingly.
12516         (mips_select_rtx_section): Call named_section rather than
12517         SMALL_DATA_SECTION.
12518         (mips_select_section): Use default_elf_section_section for everything
12519         except .text string constants.
12520         (mips_in_small_data_p): New function.
12521         (mips_encode_section_info): Remove small data handling.
12522         (mips_unique_section): Delete.
12523         (iris6_section_type_flags): New function.
12524         * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
12525
12526 2003-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12527
12528         PR Target/11453
12529         * pa.md: Disparage all mtsar constraints.
12530         (extzv, extv, insv): Don't fail on length of {32|64}.
12531
12532 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
12533
12534         * system.h: Poison MAP_CHARACTER.
12535         * config/i370/i370-protos.h (mvs_map_char): Delete.
12536         * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
12537         * config/i370/i370.h (MAP_CHARACTER): Delete definition.
12538         (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
12539
12540 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
12541
12542         * toplev.c (randomize): Correct call to time().
12543
12544 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
12545
12546         * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
12547         REG_EQUIV notes as well.
12548
12549 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
12550
12551         * doc/md.texi: Fix the description of addmodecc.
12552
12553 2003-07-07  Zack Weinberg  <zack@codesourcery.com>
12554
12555         * Makefile.in (top_builddir): Set to "..", not ".".
12556         (INTLLIBS, INTLDEPS): Delete.
12557         (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
12558         (LIBDEPS): Add $(LIBICONV_DEP).
12559         (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
12560         (INCLUDES): Replace -I../intl with @INCINTL@.
12561         ($(top_builddir)/intl/libintl.a): Delete rule.
12562         (stage2-start, stage3-start, stage4-start, stageprofile-start,
12563         stagefeedback-start): Use $$ for variable to be evaluated by
12564         shell, not make.
12565         * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
12566         HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
12567         * aclocal.m4: sinclude ../config/progtest.m4.  Add
12568         contents of lcmessage.m4 from gettext distro.
12569         * configure.in: Check for wchar.h and setlocale.  Set
12570         LIBICONV_DEP to the empty string and substitute it.
12571         Call AM_LC_MESSAGES.  Delete AC_ARG_ENABLE for --enable-nls;
12572         this is handled elsewhere.  Use ZW_GNU_GETTEXT_SISTER_DIR,
12573         not CY_GNU_GETTEXT.  Clear $LIBICONV if its text is included
12574         in $LIBINTL, to avoid linking it twice.
12575         * configure, config.in: Regenerate.
12576
12577 2003-07-08  Nathanael Nerode  <neroden@gcc.gnu.org>
12578
12579         * fixinc/mkfixinc.sh: Remove winnt support.
12580         * fixinc/fixinc.winnt: Delete with extreme prejudice.
12581
12582 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
12583
12584         * Makefile.in: Update.
12585         * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
12586         * c.opt: Update documentation.
12587         * common.opt: Add some help text.
12588         * opts.c: Include intl.h.
12589         (wrap_help, print_help): New.
12590         (find_opt, handle_option, common_handle_option): opt_text now
12591         contains the '-'.  Use print_help to output help.
12592         * opts.h (struct cl_option): New member "help".
12593         * opts.sh: Update to handle help text output and to prepend
12594         options with '-'.
12595         * toplev.c (display_help): Remove some help text.
12596
12597 2003-07-07  David Edelsohn  <edelsohn@gnu.org>
12598             Fariborz Jahanian  <fjahanian@apple.com>
12599
12600         * configure.in: Test for PowerPC mfcr field support in assembler.
12601         * config.in, configure: Regenderated.
12602
12603         * config/rs6000/power4.md: Add mfcrf reservation.
12604         * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
12605         * config/rs6000/rs6000.c (mfcr_operation): Define.
12606         (print_operand): Add 'Q' case for mfcrf.
12607         * config/rs6000/rs6000.h (TARGET_MFCRF): New.
12608         * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
12609         (movcc_internal1): Emit optional field operand for mfcr and set
12610         "type" attribute appropriately.
12611         (mfcr SCC): Likewise.
12612         (movesi_from_cr_one): New.
12613
12614 2003-07-07  Roger Sayle  <roger@eyesopen.com>
12615
12616         * config/i386/i386.md: Correct check-in of incorrect version.
12617
12618 2003-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12619
12620         * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
12621         adjacent stdio calls.
12622         * c-decl.c (c_print_identifier): Likewise.
12623         * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
12624         * print-rtl.c (print_rtx): Likewise.
12625         * print-tree.c (print_node_brief, print_node): Likewise.
12626         * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
12627
12628         * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
12629         * config.in, configure: Regenerated.
12630
12631 2003-07-07  Roger Sayle  <roger@eyesopen.com>
12632
12633         PR target/10979
12634         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
12635         Changed to define_expand patterns that copy operand[1] to prevent
12636         it from being clobbered before emitting an atan2?f3_1 insn.
12637         (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
12638         patterns that actually specify the behaviour of x87's FPATAN.
12639
12640 2003-07-07  Jakub Jelinek  <jakub@redhat.com>
12641
12642         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
12643         clearing of SYMBOL_FLAG_LOCAL bit.
12644         If vcall_offset fits into signed 16-bit immediate, use
12645         one instruction for both addition and load.
12646
12647 2003-07-07  Neil Booth  <neil@daikokuya.co.uk>
12648
12649         * opts.c (common_handle_option): Correct handling of the
12650         -falign- switches that do and don't take an argument.
12651
12652 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
12653
12654         * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
12655         today.
12656         (pushhi1_h8300hs): Likewise.
12657
12658 2003-07-07  Andreas Jaeger  <aj@suse.de>
12659
12660         * genextract.c: Convert remaining prototypes to ISO C90.
12661
12662         * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
12663         * fold-const.c (fold_single_bit_test): Likewise.
12664         * diagnostic.c (default_diagnostic_finalizer): Likewise.
12665         * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
12666
12667         * gengtype.c (write_array): Generate ISO C90 prototypes.
12668
12669         * genflags.c (gen_proto): Generate ISO C90 prototypes.
12670
12671 2003-07-07  Roger Sayle  <roger@eyesopen.com>
12672
12673         PR optimization/11059
12674         * expr.c (can_store_by_pieces): Return true if length is zero.
12675         (store_by_pieces): If length is zero and endp is two, abort,
12676         othwerise, if length is zero and endp is not two, return "to".
12677         (clear_by_pieces): Do nothing if length is zero.
12678         (clear_storage): Do nothing if length is zero.
12679         (store_constructor): Simplify code when size is zero, or the
12680         target has already been cleared.  This avoids emitting a
12681         blockage instruction when initializing empty structures.
12682
12683 2003-07-07  Andreas Jaeger  <aj@suse.de>
12684
12685         * mips-tfile.c: Convert prototypes to ISO C90.
12686         * mips-tdump.c: Convert prototypes to ISO C90.
12687
12688 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
12689
12690         * rtl.h (emit_line_note): Take a location_t.
12691         (emit_line_note_force): Remove.
12692         (set_file_and_line_for_statement): Take a location_t.
12693         * tree.g (emit_line_note): Take a location_t.
12694         * emit-rtl.c (emit_line_note): Take a location_t.
12695         (emit_line_note_force): Remove.
12696         * function.c (init_function_start): Adjust emit_line_note call.
12697         (expand_function_end): Use force_next_line_note, not
12698         emit_line_note_force.
12699         * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
12700         * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
12701         genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
12702         genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
12703         genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
12704         genrtl_continue_stmt, genrtl_switch_stmt,
12705         genrtl_asm_stmt): Likewise.
12706         * expr.c (expand_expr): Likewise.
12707         * integrate.c (expand_inline_function): Likewise.
12708         * stmt.c (set_file_and_line_for_stmt): Take a location_t.
12709         (expand_decl_init): Adjust emit_line_note call.
12710
12711 2003-07-07  Dale Johannesen  <dalej@apple.com>
12712
12713         * config/rs6000/darwin-tramp.asm:  Fix trampolines.  PR 10900.
12714
12715 2003-07-07  Andreas Jaeger  <aj@suse.de>
12716
12717         * config/i386/i386-protos.h: Convert prototypes to ISO C90.
12718         * config/i386/i386.c: Likewise.
12719
12720 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
12721
12722         * config/h8300/h8300.md: Use gen_int_mode instead of
12723         GEN_INT (trunc_int_for_mode (...)).
12724
12725 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
12726
12727         * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
12728         2 bytes and then subtract 2 from the stack pointer.
12729         (pushhi1_h8300hs): Likewise.
12730
12731 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
12732
12733         * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
12734         -frandom-seed.
12735         * configure: Regenerated.
12736         * Makefile.in: Remove extraneous comment.
12737         * toplev.c (randomize): Protect against potential multiple calls.
12738         * doc/invoke.texi (-frandom-seed): Document use for in coverage
12739         files.
12740
12741 2003-07-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12742             Eric Botcazou  <ebotcazou@libertysurf.fr>
12743
12744         PR optimization/11198
12745         * alias.c (objects_must_conflict_p): Return 1 if the types have
12746         the same alias set, not if the alias sets only conflict.
12747
12748 2003-07-07  Andrew Pinski  <pinskia@physics.uc.edu>
12749
12750         * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
12751         (convert_cset): Change inbuf to type ICONV_CONST char.
12752         * Makefile.in (LIBS): Add LIBICONV.
12753
12754         * doc/invoke.texi (-falign-functions): Document that
12755         when n is zero then a machine-dependent default is used.
12756         (-falign-labels): Document that when n is zero then a
12757         machine-dependent default is used and that -falign-labels =1
12758         is equivalent to -fno-align-labels.
12759         (-falign-loops): Likewise.
12760         (-falign-jumps): Likewise.
12761
12762 2003-07-06  Art Haas  <ahaas@airmail.net>
12763
12764         * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
12765         initializer syntax.
12766
12767 2003-07-06  James E Wilson  <wilson@tuliptree.org>
12768
12769         PR optimization/9812
12770         * rtl.h (mem_for_const_double): Delete prototype.
12771         * varasm.c (mem_for_const_double): Delete function.
12772         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
12773         config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
12774         (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
12775         * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
12776         (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
12777         * config/m68k/m68k.md (movxf): Add reload_in_progress guard.  Add
12778         comment about confused support for XFmode constants.
12779
12780 2003-07-07  Jan Hubicka  <jh@suse.cz>
12781
12782         * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
12783
12784 2003-07-06  Kazu Hirata  <kazu@cs.umass.edu>
12785
12786         * config/h8300/h8300.c: Fix comment typos.
12787         * config/h8300/h8300.md: Likewise.
12788         * config/i386/athlon.md: Likewise.
12789         * config/i386/i386.c: Likewise.
12790         * config/i386/pentium.md: Likewise.
12791         * config/ia64/ia64.c: Likewise.
12792         * config/ia64/itanium1.md: Likewise.
12793         * config/ia64/itanium2.md: Likewise.
12794         * config/m32r/m32r.md: Likewise.
12795         * config/m68hc11/m68hc11.c: Likewise.
12796         * config/mcore/mcore.c: Likewise.
12797         * config/mips/sr71k.md: Likewise.
12798         * config/mips/t-iris5-as: Likewise.
12799         * config/mmix/mmix.h: Likewise.
12800         * config/ns32k/ns32k.h: Likewise.
12801         * config/ns32k/NOTES: Fix a typo.
12802
12803 2003-07-06  Andreas Jaeger  <aj@suse.de>
12804
12805         * stmt.c: Convert remaining prototypes to ISO C90.
12806         * cfglayout.c: Likewise.
12807         * dbxout.c: Likewise.
12808         * gcc.c: Likewise.
12809         * genemit.c: Likewise.
12810
12811         * basic-block.h: Convert prototypes to ISO C90.
12812         * c-parse.in: Likewise.
12813         * c-pragma.h: Likewise.
12814         * c-typeck.c: Likewise.
12815         * cfghooks.h: Likewise.
12816         * cfgloopanal.c: Likewise.
12817         * dbxout.h: Likewise.
12818         * debug.h: Likewise.
12819         * dwarf2asm.h: Likewise.
12820         * gcov.c: Likewise.
12821         * gengtype-lex.l: Likewise.
12822         * sched-int.h: Likewise.
12823         * timevar.c: Likewise.
12824
12825 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
12826
12827         * c-common.h (c_comon_handle_filename,
12828         c_common_missing_arguement): New.
12829         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
12830         LANG_HOOKS_MISSING_ARGUMENT): New.
12831         * c-opts.c (missing_arg): Rename c_common_missing_argument,
12832         update to be an appropriate langhook.
12833         (c_common_handle_option): Don't handle filenames.
12834         (c_common_handle_filename): New.
12835         * hooks.c (hook_void_constcharptr,
12836         hook_bool_constcharptr_size_t_false): New.
12837         * hooks.h (hook_void_constcharptr,
12838         hook_bool_constcharptr_size_t_false): New.
12839         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
12840         LANG_HOOKS_MISSING_ARGUMENT): New.
12841         (LANG_HOOKS_INITIALIZER): Update.
12842         * langhooks.h (struct lang_hooks): Add handle_filename and
12843         missing_argument.
12844         * opts.c (handle_option): Don't handle filenames here, but ...
12845         (handle_options): ... here.
12846         (common_handle_option): Don't handle missing arguments here.
12847         * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
12848         LANG_HOOKS_MISSING_ARGUMENT): New.
12849
12850 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
12851
12852         * Makfile.in: Remove traces of mbchar.
12853         * c-parse.in (MULTIBYTE_CHARS): Remove.
12854         * config.in (MULTIBYTE_CHARS): Remove.
12855         * configure: Remove --enable-mbchar.
12856         * configure.in: Remove --enable-mbchar.
12857         * mbchar.c, mbchar.h: Remove.
12858         * system.h: Poison MULTIBYTE_CHARS.
12859         * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
12860         * config/linux.h (MULTIBYTE_CHARS): Remove.
12861         * config/svr4.h (MULTIBYTE_CHARS): Remove.
12862         * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
12863
12864 2003-07-06  Andreas Jaeger  <aj@suse.de>
12865
12866         * varray.c (varray_check_failed): Fix typo.
12867
12868         * unroll.c: Convert prototypes to ISO C90.
12869         * varasm.c: Likewise.
12870         * varray.c: Likewise.
12871         * varray.h: Likewise.
12872         * vmsdbgout.c: Likewise.
12873         * xcoffout.c: Likewise.
12874         * xcoffout.h: Likewise.
12875
12876 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
12877
12878         * gcov-io.h: Add a local time stamp.
12879         (struct gcov_info): Add stamp field.
12880         (gcov_truncate): New.
12881         * coverage.c (read_counts_file): Skip the stamp.
12882         (coverage_begin_output): Write the stamp.
12883         (build_gcov_info): Declare and init the stamp.
12884         (coverage_finish): Only unlink data file, if stamp is zero.
12885         * gcov-dump.c (dump_file): Dump the stamp.
12886         * gcov.c (bbg_stamp): New.
12887         (release_structures): Clear bbg_stamp.
12888         (read_graph_file): Read stamp.
12889         (read_count_file): Check stamp.
12890         * libgcov.c (gcov_exit): Check stamp and truncate if needed.
12891
12892 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
12893
12894         * tree.h (default_flag_random_seed): Remove.
12895         * toplev.h (local_tick): Declare.
12896         * tree.c (flag_random_seed, default_flag_random_seed): Move to
12897         toplev.c.
12898         (append_random_chars): Don't call default_flag_random_seed.
12899         * toplev.c (flag_random_seed): Define here. Set local_tick.
12900         (local_tick): Define.
12901         (randomize): New, moved from tree.c.
12902         (print_switch_values): Adjust.
12903         (toplev_main): Call randomize.
12904
12905 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
12906
12907         * tree.h (crc32_string): Declare.
12908         * tree.c (append_random_chars): Remove.
12909         (crc32_string): New.
12910         (get_file_function_name_long): Use crc32_string here.
12911
12912 2003-07-06  Andreas Jaeger  <aj@suse.de>
12913
12914         * gcc.c: Convert prototypes to ISO C90.
12915         * gcc.h: Likewise.
12916         * gcov-dump.c: Likewise.
12917         * gcov-iov.c: Likewise.
12918         * gcse.c: Likewise.
12919         * genattrtab.h: Likewise.
12920         * ggc.h: Likewise.
12921         * global.c: Likewise.
12922         * graph.c: Likewise.
12923         * graph.h: Likewise.
12924         * hosthooks.h: Likewise.
12925         * hooks.h: Likewise.
12926         * hooks.c: Likewise.
12927         * hashtable.h: Likewise.
12928         * hashtable.c: Likewise.
12929         * haifa-sched.c: Likewise.
12930         * integrate.h: Likewise.
12931         * integrate.c: Likewise.
12932         * input.h: Likewise.
12933         * ifcvt.c: Likewise.
12934         * jump.c: Likewise.
12935         * langhooks-def.h: Likewise.  Add extern to prototypes.
12936         * langhooks.c: Likewise.
12937         * langhooks.h: Likewise.
12938         * lcm.c: Likewise.
12939         * local-alloc.c: Likewise.
12940         * loop-init.c: Likewise.
12941         * loop-unroll.c: Likewise.
12942         * loop-unswitch.c: Likewise.
12943         * loop.c: Likewise.
12944         * loop.h: Likewise. Add extern to prototypes.
12945         * machmode.h: Likewise.
12946         * main.c: Likewise.
12947         * mbchar.c: Likewise.
12948         * mbchar.h: Likewise.
12949         * mkdeps.c: Likewise.
12950         * mkdeps.h: Likewise.
12951         * optabs.c: Likewise.
12952         * optabs.h: Likewise.
12953         * output.h: Likewise.
12954         * gccspec.c: Likwise.
12955         * postreload.c: Likewise.
12956         * prefix.c: Likewise.
12957         * prefix.h: Likewise.
12958         * print-rtl.c: Likewise.
12959         * print-tree.c: Likewise.
12960         * profile.c: Likewise.
12961         * read-rtl.c: Likewise.
12962         * real.c: Likewise.
12963         * real.h: Likewise.
12964         * recog.c: Likewise.
12965         * recog.h: Likewise.
12966         * reg-stack.c: Likewise.
12967         * regclass.c: Likewise.
12968         * regmove.c: Likewise.
12969         * regrename.c: Likewise.
12970         * regs.h: Likewise.
12971         * reload.c: Likewise.
12972         * reload.h: Likewise.
12973         * reload1.c: Likewise.
12974         * reorg.c: Likewise.
12975         * resource.c: Likewise.
12976         * resource.h: Likewise.
12977         * rtl-error.c: Likewise.
12978         * rtl.c: Likewise.
12979         * rtl.h: Likewise.
12980         * rtlanal.c: Likewise.
12981         * sbitmap.c: Likewise.
12982         * sbitmap.h: Likewise.
12983         * scan-decls.c: Likewise.
12984         * scan.c: Likewise.
12985         * sched-deps.c: Likewise.
12986         * sched-ebb.c: Likewise.
12987         * sched-int.h: Likewise.
12988         * sched-rgn.c: Likewise.
12989         * sched-vis.c: Likewise.
12990         * sibcall.c: Likewise.
12991         * simplify-rtx.c: Likewise.
12992         * sreal.c: Likewise.
12993         * sreal.h: Likewise.
12994         * ssa-ccp.c: Likewise.
12995         * ssa-dce.c: Likewise.
12996         * ssa.c: Likewise.
12997         * ssa.h: Likewise.
12998         * stack.h: Likewise.
12999         * stmt.c: Likewise.
13000         * stor-layout.c: Likewise.
13001         * stringpool.c: Likewise.
13002         * target.h: Likewise.
13003         * timevar.c: Likewise.
13004         * timevar.h: Likewise.
13005         * tlink.c: Likewise.
13006         * tracer.c: Likewise.
13007         * tree-inline.c: Likewise.
13008         * tree-inline.h: Likewise.
13009         * tree.c: Likewise.
13010         * tree.h: Likewise.
13011
13012 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
13013
13014         * combine.c (nonzero_bits1): Fix a warning.
13015
13016 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
13017
13018         * config/h8300/h8300.c (compute_mov_length): Correct the
13019         length of loading CONST0_RTX (SFmode).
13020
13021 2003-07-05  Nathan Sidwell  <nathan@codesourcery.com>
13022
13023         * toplev.c (output_clean_symbol_name): Remove.
13024         * toplev.h (output_clean_symbol_name): Remove.
13025         * config/alpha/alpha.c (unicosmk_output_module_name): Use
13026         lbasename & clean_symbol_name.
13027
13028 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
13029
13030         * ggc.h: Follow spelling conventions.
13031         * config/i386/i386.c: Likewise.
13032         * config/i386/winnt.c: Likewise.
13033         * config/rs6000/rs6000.c: Likewise.
13034
13035 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
13036
13037         * bt-load.c: Fix comment typos.
13038         * c-incpath.c: Likewise.
13039         * cfg.c: Likewise.
13040         * cfgcleanup.c: Likewise.
13041         * cfgloop.h: Likewise.
13042         * cfgloopmanip.c: Likewise.
13043         * cfgrtl.c: Likewise.
13044         * diagnostic.h: Likewise.
13045         * dwarfout.c: Likewise.
13046         * emit-rtl.c: Likewise.
13047         * et-forest.c: Likewise.
13048         * et-forest.h: Likewise.
13049         * expr.c: Likewise.
13050         * gcse.c: Likewise.
13051         * genattr.c: Likewise.
13052         * jump.c: Likewise.
13053         * langhooks.h: Likewise.
13054         * local-alloc.c: Likewise.
13055         * loop-unroll.c: Likewise.
13056         * loop-unswitch.c: Likewise.
13057         * ra-build.c: Likewise.
13058         * regclass.c: Likewise.
13059         * regmove.c: Likewise.
13060         * rtl.def: Likewise.
13061         * rtlanal.c: Likewise.
13062         * sched-ebb.c: Likewise.
13063         * sched-rgn.c: Likewise.
13064         * simplify-rtx.c: Likewise.
13065         * ssa.c: Likewise.
13066         * tracer.c: Likewise.
13067         * tree.c: Likewise.
13068
13069 2003-07-05  Zack Weinberg  <zack@codesourcery.com>
13070
13071         * cppcharset.c: Use the correct return type for the fallback iconv
13072         macro.
13073
13074 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13075
13076         Blame to Jan Hubicka  <jh@suse.cz>
13077         * cfglayout.c (record_effective_endpoints): Split insns before
13078         first basic block correctly.
13079
13080 2003-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13081
13082         * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
13083         bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
13084         if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
13085
13086 2003-07-05  Andreas Jaeger  <aj@suse.de>
13087
13088         * genattrtab.c (write_attr_get): Revert part of last patch to
13089         always write out a prototype.
13090
13091         * genemit.c (gen_split): Readd lost unused attributes in last
13092         patch.
13093
13094 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13095
13096         * cfgloopmanip.c (force_single_succ_latches): Force latch to be
13097         different from header.
13098
13099 2003-07-05  Andreas Schwab  <schwab@suse.de>
13100
13101         * config/m68k/m68k.c: Remove code protected by CRDS.
13102         * config/m68k/m68k.md: Likewise.
13103
13104 2003-07-05  Neil Booth  <neil@daikokuya.co.uk>
13105
13106         PR driver/11417
13107         * c-opts.c (permit_fortran_options): New.
13108         (c_common_init_options): Accept fortran front end options if
13109         it looks like we might be preprocessing Fortran.
13110         (c_common_handle_option): Don't reject switch if permit_fotran_options.
13111
13112 2003-07-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13113
13114         * genattr.c (internal_dfa_insn_code): Output prototype.
13115         * genattrtab.c: Don't output unnecessary decls, output in ISO C.
13116         * genautomata.c: Likewise.
13117         * genconditions.c: Likewise.
13118         * genemit.c: Likewise.
13119         * genextract.c: Likewise.
13120         * gengenrtl.c: Likewise.
13121         * gengtype.c: Likewise.
13122         * genopinit.c: Likewise.
13123         * genoutput.c: Likewise.
13124         * genpeep.c: Likewise.
13125         * genrecog.c: Likewise.
13126
13127 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
13128
13129         * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
13130         (struct cpp_options): Add narrow_charset, wide_charset,
13131         bytes_big_endian fields.  Remove EBCDIC field.
13132         (cpp_init_iconv, cpp_interpret_string): New external interfaces.
13133
13134         * cpphash.h: Include <iconv.h> if we have it, otherwise
13135         provide a dummy definition of iconv_t.
13136         (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
13137         (_cpp_valid_ucn): Update prototype.
13138         (_cpp_destroy_iconv): New prototype.
13139
13140         * doc/cpp.texi: Document character set handling.
13141         * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
13142         * doc/extend.texi: Delete entire section on multiline strings.
13143         Rewrite section on __FUNCTION__ etc now that these are
13144         variables in C.
13145
13146         * cppucnid.tab, cppucnid.pl: New files.
13147         * cppucnid.h: New generated file.
13148         * cppcharset.c: Include cppucnid.h.  Lots of commentary added.
13149         (iconv_open, iconv, iconv_close): Provide dummy definitions
13150         if !HAVE_ICONV.
13151         (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
13152         _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
13153         emit_numeric_escape, convert_hex, convert_oct, convert_escape,
13154         cpp_interpret_string, narrow_str_to_charconst,
13155         wide_str_to_charconst): New.
13156         (ucn_valid_in_identifier): Use a binary search through the
13157         ucnranges table defined in cppucnid.h, not a long chain of if
13158         statements.
13159         (_cpp_valid_ucn): Add a limit pointer.  Downgrade "universal
13160         character names are only valid in C++ and C99" to a warning.
13161         Issue the "meaning of \[uU] is different in traditional C"
13162         warning here.  Take care not to let iconv see an invalid UCS
13163         value if we get a malformed UCN.  Issue an error if we don't
13164         have iconv.
13165         (cpp_interpret_charconst): Moved here from cpplex.c.  Use
13166         cpp_interpret_string to do the heavy lifting.
13167
13168         * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
13169         narrow_charset, wide_charset fields of options structure.
13170         (cpp_destroy): Call _cpp_destroy_iconv.
13171         * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
13172         (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
13173         (cpp_interpret_charconst): Moved to cppcharset.c.
13174         * cpplib.c (dequote_string): Delete.
13175         (interpret_string_notranslate): New.
13176         (do_line, do_linemarker): Use interpret_string_notranslate.
13177
13178         * Makefile.in (cppcharset.o): Depend on cppucnid.h.
13179
13180         * c-common.c (fname_string, combine_strings): Delete.
13181         * c-common.h (fname_string, combine_strings): Delete prototypes.
13182         * c-lex.c (ignore_escape_flag): Delete.
13183         (cb_ident): Use cpp_interpret_string, not lex_string.
13184         (get_nonpadding_token): New function.
13185         (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
13186         Adjust calls to lex_string.  Don't write *value twice.
13187         (lex_string): Now handles string constant concatenation.
13188         Most of the work handed off to cpp_interpret_string.
13189         Call fix_string_type here.
13190         * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
13191         FUNC_NAME, throughout.
13192         (OBJC_STRING): New token type.
13193         (primary:STRING): No need to call fix_string_type here.
13194         (primary:objc_string): Make that OBJC_STRING.
13195         (objc_string nonterminal): Delete.
13196         (yylexname): Delete code to handle fake string constants.
13197         (yylexstring): Delete entirely.
13198         (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING.  No need
13199         to handle CPP_ATSIGN.
13200
13201         * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
13202         * c-opts.c (missing_arg, c_common_handle_option): Handle
13203         OPT_fexec_charset_ and OPT_fwide_exec_charset_.
13204         (c_common_init): Set cpp_opts->bytes_big_endian, not
13205         cpp_opts->EBCDIC.  Call cpp_init_iconv.
13206         (print_help): Document -fexec-charset= and -fexec-wide-charset=.
13207         (TARGET_EBCDIC): Delete default definition.
13208
13209         * objc/objc-act.c (build_objc_string_object): No need to
13210         handle string constant concatenation.
13211
13212 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
13213
13214         * doc/install.texi: Fix typos.
13215         * doc/invoke.texi: Likewise.
13216         * doc/tm.texi: Likewise.
13217
13218 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
13219
13220         * config/pa/fptr.c: Fix comment typos.
13221         * config/pa/pa-64.h: Likewise.
13222         * config/pa/pa.c: Likewise.
13223         * config/pa/pa.h: Likewise.
13224         * config/rs6000/603.md: Likewise.
13225         * config/rs6000/7xx.md: Likewise.
13226         * config/rs6000/darwin.h: Likewise.
13227         * config/rs6000/freebsd.h: Likewise.
13228         * config/rs6000/rs6000.c: Likewise.
13229         * config/rs6000/rs6000.md: Likewise.
13230         * config/rs6000/spe.h: Likewise.
13231
13232 2003-07-04  Ulrich Weigand  <uweigand@de.ibm.com>
13233
13234         * config/s390/2064.md: Change GNU CC to GCC.
13235         * config/s390/2084.md: Likewise.
13236         * config/s390/fixdfdi.h: Likewise.
13237         * config/s390/linux.h: Likewise.
13238         * config/s390/s390-modes.def: Likewise.
13239         * config/s390/s390-protos.h: Likewise.
13240         * config/s390/s390.c: Likewise.
13241         * config/s390/s390.h: Likewise.
13242         * config/s390/s390.md: Likewise.
13243         * config/s390/s390x.h: Likewise.
13244
13245 2003-07-04  Jeff Law  <law@redhat.com>
13246
13247         PR c/11428
13248         * expr.c (do_store_flag): Pass in the correct result type
13249         when calling fold_single_bit_test.
13250         * fold-const.c (fold_single_bit_test): Use result_type for the
13251         result when folding a sign bit test.
13252
13253 2003-07-04  Neil Booth  <neil@daikokuya.co.uk>
13254
13255         * opts.c (common_handle_options): Negate sense of -falign- switches.
13256
13257 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
13258
13259         * Makefile.in: Replace PWD with PWD_COMMAND.
13260
13261 2003-07-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13262
13263         * cfgloopanal.c (count_strange_loop_iterations): New static function.
13264         (constant_iterations, count_loop_iterations, simple_loop_exit_p):
13265         Handle strange loops.
13266
13267 2003-07-04  Toon Moene  <toon@moene.indiv.nluug.nl>
13268
13269         * install.texi: Even the g77 manpage is derived from
13270         the full g77 manual.
13271
13272 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
13273
13274         * ABOUT-NLS: Delete.
13275         * intl: Delete entire directory.
13276         * aclocal.m4: Include ../config/gettext.m4.  Delete
13277         AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
13278         AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
13279         * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
13280         Remove intl/Makefile from all_outputs.
13281         * configure, config.in: Regenerate.
13282         * Makefile.in: Expunge all references to intl subdirectory.
13283         Add -I../intl to INCLUDES.
13284         * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
13285
13286 2003-07-04  Roger Sayle  <roger@eyesopen.com>
13287
13288         * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
13289         * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
13290
13291 2003-07-04  Danny Smith  <dannysmith@users.sourceforge.net>
13292
13293         PR c++/5287, PR c++/7910, PR c++/11021
13294         * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
13295         dllimport attribute if function is defined at declaration, but
13296         report error instead. Likewise for dllimport'd variable
13297         definitions.  Set implicit TREE_PUBLIC for dllimport'd variables
13298         declared within functions, Report error if dllimport or dllexport
13299         symbol is not global.
13300         (i386_pe_dllimport_p): Ignore dllimport attribute of functions
13301         if defined after declaration or if inlined. Don't allow definition
13302         of static data members of C++ classes. Don't dllimport virtual
13303         methods.
13304         (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
13305         (i386_pe_mark_dllimport): Remove unnecessary checks.
13306         (i386_pe_encode_section_info): Warn if the dllimport attribute
13307         and symbol prefix have been instantiated and then overridden.
13308
13309         * doc/extend.texi: Document dllimport and dllexport attributes.
13310
13311         * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
13312
13313 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
13314
13315         * config/kaos.h (CPP_PREDEFINES): Delete.
13316         (TARGET_OS_CPP_BUILTINS): New.
13317
13318 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13319
13320         * c-aux-info.c: Include toplev.h after c-tree.h.
13321         * c-common.c: Likewise.
13322         (GCC_DIAG_STYLE): Undef.
13323         * c-semantics.c (GCC_DIAG_STYLE): Define.
13324         * c-tree.h (GCC_DIAG_STYLE): Likewise.
13325         * diagnostic.h (inform): Move prototype to toplev.h.
13326         * jump.c: Include diagnostic.h before toplev.h.
13327         * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
13328         (warning, error, fatal_error, pedwarn, sorry, inform,
13329         error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
13330
13331 2003-07-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13332
13333         * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
13334         at all if edge is not specified.
13335         (can_copy_bbs_p, copy_bbs): New.
13336         * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
13337         * cfgloop.c (get_loop_body): Comment more precisely.
13338         * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
13339         (scale_bbs_frequencies): Fix comment typo.
13340         (can_duplicate_loop_p): Use can_copy_bbs_p.
13341         (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
13342
13343 2003-07-03  Devang Patel <dpatel@apple.com>
13344
13345         * c-opts.c (c_common_parse_file): Remove extra
13346         debug_hooks->start_source_file call.
13347
13348 2003-07-03  Roger Sayle  <roger@eyesopen.com>
13349
13350         * real.c (real_trunc, real_floor, real_ceil): New functions
13351         to implement trunc, floor and ceil respectively.
13352         * real.h (real_trunc, real_floor, real_ceil): Prototype here.
13353         * builtins.c (integer_valued_real_p): New function to test if
13354         a floating point expression has an integer valued result.
13355         (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
13356         foo(x) where foo is an integer rounding function.  Similarly,
13357         optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
13358         (double)(int)x when both foo and bar are integer rounding
13359         functions and we don't need to honor errno.
13360         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
13361         New functions to fold trunc, floor and ceil.
13362         (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
13363         fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
13364         to fold BUILT_IN_CEIL*.
13365         * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
13366         the remaining integer rounding functions.
13367
13368 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
13369
13370         * config/sparc/sparc.c (function_arg_partial_nregs): Use
13371         SPARC_INT_ARG_MAX to determine where to split unnamed
13372         complex FP arguments.
13373
13374 2003-07-03  Jan Hubicka  <jh@suse.cz>
13375
13376         * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
13377         * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
13378         (merge_blocks_move_predecessor_nojumps,
13379          merge_blocks_move_successor_nojumps): Use merge_blocks.
13380         (try_optimize_cfg): Use merge_blocks_move.
13381         * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
13382         (merge_blocks_nomove): Rename to rtl_merge_blocks.
13383         (cfg_layout_create_basic_block): New.
13384         (rtl_can_merge_blocks): New.
13385         (cfg_layout_split_block): Do not alloc aux by hand.
13386         * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
13387         merge_blocks.
13388         (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
13389         * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
13390         * cfgloopmanip.c (loop_split_edge_with): Likewise.
13391         * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
13392
13393         * basic-block.h (basic_block_def): Add field 'rbi'.
13394         * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
13395         find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
13396         * cfg.c (entry_exit_blocks): Add new field.
13397         * cfglayout.c: Include alloc-pool.h;
13398         (cfg_layout_pool): New.
13399         (record_effective_endpoints, fixup_reorder_chain,
13400         fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
13401         of rbi.
13402         (cfg_layout_initialize_rbi): New function.
13403         (cfg_layout_initialize): Use it.
13404         (cfg_layout_finalize): Clear rbi fields.
13405         * cfglayout.h (RBI): Kill.
13406         (cfg_layout_initialize_rbi): Declare.
13407         * cfgloopmanip.c (copy_bbs): Use rbi.
13408         (record_exit_edges): Likewise.
13409         (duplicate_loop_to_header_edge): Likewise.
13410         * cfgrtl.c (cfg_layout_create_basic_block): Use
13411         cfg_layout_initialize_rbi.
13412         (cfg_layout_split_block): Use rbi.
13413         (cfg_layout_delete_block): Likewise.
13414         * loop-init.c (loop_optimizer_finalize): Likewise.
13415         * loop-unswitch.c (unswitch_loop): Likewise.
13416         * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
13417
13418         * cfgrtl.c: Update comments.
13419         (try_redirect_by_replacing_jump): New argument.
13420         (redirect_branch_edge): Break out from ...
13421         (rtl_redirect_edge_and_branch): ... this one.
13422         (update_cfg_after_block_merging): Break out from ...
13423         (rtl_merge_blocks): ... this one.
13424         (cfg_layout_split_edge): New.
13425         (cfg_layout_merge_blocks): New.
13426         (cfg_layout_can_merge_blocks_p): New.
13427         (cfg_layout_redirect_edge_and_branch): Reorganize.
13428         (cfg_layout_rtl_cfg_hooks): Fill in.
13429         (cfg_layout_delete_block): Kill barriers.
13430         * cfganal.c (can_fallthru): Deal with exit blocks
13431         * cfglayout.c (cfg_layout_function_header): New function
13432         (record_effective_endpoints): Record function header.
13433         (fixup_reorder_chain): Fixup dead jumptables; place header
13434
13435         * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
13436         * bb-reorder.c (cfg_layout_initialize): Update call.
13437         * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
13438         edges in cfglayout mode.
13439         * cfglayout.c (cleanup_unconditional_jumps): Kill.
13440         (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
13441         * cfglayout.h (cfg_layout_initialize): Update prototype.
13442         * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
13443         * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
13444         * flow.c (propagate_block): Do not crash when basic block ends
13445         by first insn in the chain.
13446         * loop-init.c (loop_optimizer_init):  First enter cfglayout mode; later
13447         do loop discovery.
13448         * tracer.c (tracer): Update call of cfg_layout_initialize.
13449
13450 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13451
13452         * Makefile.in: Use dependency variables in lieu of explicit
13453         files throughout.
13454
13455 2003-07-03  Steven Bosscher  <steven@gcc.gnu.org>
13456
13457         * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
13458         * tree.h: ...to here.
13459
13460 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
13461
13462         * config/s390/2064.md: Fix comment typos.
13463         * config/s390/2084.md: Likewise.
13464         * config/s390/s390.c: Likewise.
13465         * config/s390/s390.md: Likewise.
13466         * config/sh/sh.c: Likewise.
13467         * config/sh/sh.h: Likewise.
13468         * config/sh/sh.md: Likewise.
13469         * config/sparc/sparc.c: Likewise.
13470         * config/sparc/sparc.h: Likewise.
13471         * config/sparc/sparc.md: Likewise.
13472         * config/stormy16/stormy16.c: Likewise.
13473         * config/stormy16/stormy16.h: Likewise.
13474         * config/stormy16/stormy-abi: Fix a typo.
13475
13476 2003-07-03  Kelley Cook  <kelleycook@wideopenwest.org>
13477
13478         * Makefile.in (ifcvt.o): Depend on OPTABS_H.
13479
13480 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13481
13482         * config/mips/mips.h (save_argv): Delete.
13483
13484 2003-07-03  Roger Sayle  <roger@eyesopen.com>
13485
13486         PR target/10700
13487         * fold-const.c (extract_muldiv_1): There's nothing that can be done
13488         if the expression is a SAVE_EXPR.
13489
13490 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
13491
13492         * config/m32r/m32r.c: Fix comment typos.
13493         * config/m68hc11/m68hc11.c: Likewise.
13494         * config/m68hc11/m68hc11.h: Likewise.
13495         * config/m68k/m68k.c: Likewise.
13496         * config/mcore/mcore.c: Likewise.
13497         * config/mcore/mcore.h: Likewise.
13498         * config/mcore/mcore.md: Likewise.
13499         * config/mips/mips.c: Likewise.
13500         * config/mips/mips.h: Likewise.
13501         * config/mips/mips.md: Likewise.
13502         * config/mips/netbsd.h: Likewise.
13503         * config/mn10300/mn10300.c: Likewise.
13504
13505 2003-07-03  Andreas Schwab  <schwab@suse.de>
13506
13507         * dbxout.c (pending_bincls): Move decl down inside
13508         DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
13509
13510 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
13511
13512         * rtl.h (NOTE_DATA): Refer to whole union.
13513         * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
13514
13515 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
13516
13517         PR optimization/11381
13518         * simplify-rtx.c (simplify_relational_operation): Check that
13519         two equal operands have no side-effects before simplifying
13520         the comparison.
13521
13522 2003-07-02  Jeff Law  <law@redhat.com>
13523
13524         * expr.c (do_store_flag): Remove special case folding for
13525         single bit tests.  Instead call back into the commonized folder
13526         routine.
13527         * fold-const.c (fold_single_bit_test): New function, mostly
13528         extracted from do_store_flag, with an additional case extracted
13529         from fold.
13530         (fold): Call fold_single_bit_test appropriately.
13531         * tree.h (fold_single_bit_test): Prototype.
13532
13533 2003-07-02  Zack Weinberg  <zack@codesourcery.com>
13534
13535         * system.h: Include filenames.h.
13536         (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
13537         (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
13538         define based on HAVE_DOS_BASED_FILE_SYSTEM.
13539         * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
13540         * config/i386/xm-mingw32.h: Don't define
13541         HAVE_DOS_BASED_FILE_SYSTEM,
13542         DIR_SEPARATOR, or DIR_SEPARATOR_2.
13543         * doc/hostconfig.texi: Update to match.
13544
13545         * cppfiles.c, gcc.c, gensupport.c, protoize.c,
13546         config/i386/cygwin.h:
13547         Use IS_ABSOLUTE_PATH throughout.
13548         * gcc.c (DIR_UP): Delete, unused.
13549         * protoize.c (IS_SAME_PATH): Define in terms of
13550         FILENAME_CMP.
13551         (is_abspath): Delete.
13552
13553 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
13554
13555         * config/i386/emmintrin.h: Fix comment typos.
13556         * config/i386/i386.c: Likewise.
13557         * config/i386/i386.h: Likewise.
13558         * config/i386/sco5.h: Likewise.
13559         * config/ia64/ia64.c: Likewise.
13560         * config/ia64/itanium2.md: Likewise.
13561
13562 2003-07-02  H.J. Lu  <hongjiu.lu@intel.com>
13563
13564         * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
13565         DBX_USE_BINCL.
13566         (emit_bincl_stab): Same.
13567         (emit_pending_bincls): Same.
13568
13569 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
13570
13571         * config/h8300/h8300.c (compute_mov_length): Fix the length of
13572         loading CONST0_RTX (SFmode).
13573         * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
13574         'G' to CONST0_RTX (SFmode).
13575         * config/h8300/h8300.md (movsf_h8300): Change the first
13576         constraint to 'G'.
13577         (movsf_h8300h): Likewise.
13578
13579 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
13580
13581         * c-common.h (c_common_init_options): New prototype.
13582         * c-opts.c (deferred_size): Remove.
13583         (defer_opt): Array is now pre-allocated.
13584         (c_common_init_options): Pre-allocate deferred_opts.  Make
13585         lang_flags unsigned.
13586         (push_command_line_options): Free deferred_opts.
13587         * hooks.c (hook_uint_uint_constcharptrptr_0): New.
13588         * hooks.h (hook_uint_uint_constcharptrptr_0): New.
13589         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
13590         * langhooks.h (struct lang_hooks): New prototype for init_options.
13591         * main.c (main): Cast argv.
13592         * opts.c (handle_option, handle_options): Update prototypes.
13593         (decode_options): save_argc, save_argv are not global.  Constify.
13594         * opts.h (decode_options): New prototype.
13595         * toplev.c (general_init): New protoype.
13596         (save_argv): Make static.
13597         (save_argc): Remove.
13598         (print_switch_values, general_init): Constify.
13599         (toplev_main): Save argv.
13600         * toplev.h (toplev_main): Update prototype.
13601         (save_argc, save_argv): Remove.
13602
13603 2003-07-02  David Edelsohn  <edelsohn@gnu.org>
13604
13605         * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
13606         (emit_bincl_stab): Same.
13607         (emit_pending_bincls): Same.
13608
13609 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
13610
13611         PR c++/11072
13612         * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
13613
13614 2003-07-02  Andreas Schwab  <schwab@suse.de>
13615
13616         * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
13617
13618 2003-07-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
13619
13620         PR optimization/11210
13621         * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
13622         about the behaviour with regard to bitfields.
13623         * fold-const (decode_field_reference): Record outermost type in
13624         case the expression is a NOP. Strip all NOPs. Set the signedness
13625         to that of the outermost type (if any) when the bitsize is equal
13626         to the size of the type.
13627
13628 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
13629
13630         * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
13631         (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
13632         (adddi3_internal_3, addsi3_internal_2): Likewise.
13633
13634 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
13635
13636         * config/mips/mips.c (machine_function): Add new fields:
13637         ignore_hazard_length_p and all_noreorder_p.
13638         (mips_flag_delayed_branch): New variable.
13639         (override_options): Treat '/' as an operand punctuation character.
13640         Set up mips_flag_delayed_branch.
13641         (print_operand): Handle '/'.
13642         (mips_output_function_prologue): Put the whole function in
13643         .set noreorder and .set nomacro if all_noreorder_p is true.
13644         (mips_output_function_epilogue): End the noreorder/nomacro sequence.
13645         (mips16_optimize_gp): Remove "first insn" parameter.
13646         (mips16_lay_out_constants): New function, split out from mips_reorg.
13647         (mips_avoid_hazard, mips_avoid_hazards): New functions.
13648         (mips_reorg): For mips16 code, call mips16_lay_out_constant
13649         and (optionally) mips16_optimize.  If TARGET_EXPLICIT_RELOCS,
13650         do delayed-branch scheduling followed by hazard detection.
13651         (mips_adjust_insn_length): Only account for hazards if
13652         !ignore_hazard_length_p.
13653         (mips_output_load_label): Add a nop to the o32 sequence if
13654         the target suffers from load delays.
13655         (mips_output_conditional_branch): Add %/ to the end of branches.
13656         (mips_output_division): Fill the branch delay slot with %#.
13657         * config/mips/mips.md: Remove redundant '%*' from mips16 branch
13658         instructions.  End all other %* branches with %/.
13659         (ffssi2, ffsdi2): Fix lengths.
13660         (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
13661         (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
13662         (fix_truncsfsi2_macro): Likewise.
13663         (mov_lwl): Set hazard to "none".
13664         (ashldi3_internal): Fill the branch delay slot with %#.
13665         (ashrdi3_internal, lshrdi3_internal): Likewise.
13666         (exception_receiver): Explicitly set $28.
13667         (hazard_nop): New pattern.
13668
13669 2003-07-02  Jan Hubicka  <jh@suse.cz>
13670
13671         * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
13672         before calling tree_inlinable_function_p.
13673
13674 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13675
13676         * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
13677         <internal/stdio_core.h> too.
13678         (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
13679         <internal/wchar_core.h> too.
13680         Substitute va_list uses in inline definition.
13681         * fixinc/fixincl.x: Regenerate.
13682
13683 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13684
13685         * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
13686         Undef before redefinition.
13687         (LABEL_AFTER_LOC): Likewise.
13688         (DEFAULT_SIGNED_CHAR): Likewise.
13689         (ASM_OUTPUT_ASCII): Moved here from iris4.h.
13690         Fix IRIX spelling.
13691
13692         * config/mips/iris3.h: Remove, unused.
13693         * config/mips/iris4.h: Likewise.
13694
13695         * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
13696
13697         * config/mips/iris5.h (TARGET_DEFAULT): Move ...
13698         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
13699         target_cpu_default.
13700
13701         * config/mips/iris5.h: Move explicit includes ...
13702         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
13703
13704         * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
13705         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
13706         tm_defines.
13707
13708         * config/mips/iris6.h (TARGET_DEFAULT): Move ...
13709         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
13710         target_cpu_default.
13711
13712         * config/mips/iris6.h: Fix IRIX spelling.
13713         (MULTILIB_DEFAULTS): Undef before redefinition.
13714
13715         * config/mips/iris6.h: Move explicit includes ...
13716         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
13717
13718 2003-07-02  Jan Hubicka  <jh@suse.cz>
13719
13720         * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
13721         cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
13722         Use next_needed field instead of aux to maintain the queue.
13723         * cgraph.h (cgraph_node): Add next_needed.
13724         (cgraph_varpool_node): Add next_needed; remove aux.
13725         * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
13726
13727 2003-07-02  Jan Hubicka  <jh@suse.cz>
13728
13729         * cgraphunit.c (cgraph_finalize_function): Set finalized.
13730         (cgraph_finalize_function): Do not examine inlinablility.
13731         (cgraph_finalize_compilation_unit): Do it here.
13732         * cgraph.h (cgraph_local_info): Add finalized field.
13733
13734 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13735
13736         * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
13737         (gt_pch_restore): Likewise.
13738
13739 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
13740
13741         * config/alpha/alpha.c: Fix comment typos.
13742         * config/alpha/elf.h: Likewise.
13743         * config/arm/arm.c: Likewise.
13744         * config/arm/arm.h: Likewise.
13745         * config/arm/arm.md: Likewise.
13746         * config/arm/t-arm-coff: Likewise.
13747         * config/arm/t-strongarm-pe: Likewise.
13748         * config/arm/xscale-elf.h: Likewise.
13749         * config/avr/avr.h: Likewise.
13750
13751 2003-07-01  Jeff Law  <law@redhat.com>
13752
13753         * stmt.c (any_pending_cleanups): Remove another redundant test.
13754
13755 2003-07-01  David Edelsohn  <edelsohn@gnu.org>
13756             J"orn Rennecke <joern.rennecke@superh.com>
13757
13758         * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
13759         for MEM case.
13760
13761 2003-07-01  Devang Patel  <dpatel@apple.com>
13762
13763         * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
13764         (binclstatus): New.
13765         (struct dbx_file): New members - bincl_status, pending_bincl_name and
13766         prev.
13767         (pending_bincls): New.
13768         (dbxout_init): Initialize new dbx_file members.
13769         (dbxout_start_source_file): Same.
13770         (emit_bincl_stab): New function.
13771         (emit_pending_bincls): Same.
13772         (emit_pending_bincls_if_required): Same.
13773         (dbxout_end_source_file): Emit EINCL stab only if BINCL is  already
13774         processed.
13775         (dbxout_begin_block): Emit pending BINCL stabs.
13776         (dbxout_end_block): Same.
13777         (dbxout_function_decl): Same.
13778         (dbxout_continue): Same.
13779         (dbxout_type): Same.
13780         (dbxout_class_name_qualifiers): Same.
13781         (dbxout_symbol): Same.
13782         (dbxout_symbol_location): Same.
13783         (dbxout_parms): Same.
13784
13785 2003-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13786
13787         * c-semantics.c (genrtl_case_label): Fix format specifier bug.
13788         * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
13789
13790 2003-07-01  Andreas Jaeger  <aj@suse.de>
13791
13792         * fold-const.c: Convert prototypes to ISO C90.
13793         * function.c: Likewise.
13794         * function.h: Likewise.
13795
13796 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
13797
13798         * doc/contrib.texi: Fix typos.
13799         * doc/invoke.texi: Likewise.
13800         * doc/passes.texi: Likewise.
13801         * doc/sourcebuild.texi: Likewise.
13802         * doc/tm.texi: Likewise.
13803
13804 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
13805
13806         * basic-block.h: Fix comment typos.
13807         * bb-reorder.c: Likewise.
13808         * c-format.c: Likewise.
13809         * cfgcleanup.c: Likewise.
13810         * cfghooks.h: Likewise.
13811         * cfgloop.c: Likewise.
13812         * cfgloopmanip.c: Likewise.
13813         * cfgrtl.c: Likewise.
13814         * cgraph.h: Likewise.
13815         * cgraphunit.c: Likewise.
13816         * combine.c: Likewise.
13817         * convert.c: Likewise.
13818         * dbxout.c: Likewise.
13819         * df.c: Likewise.
13820         * df.h: Likewise.
13821         * diagnostic.c: Likewise.
13822         * dwarf2out.c: Likewise.
13823         * et-forest.h: Likewise.
13824         * flow.c: Likewise.
13825         * fold-const.c: Likewise.
13826         * function.h: Likewise.
13827         * gcov-io.h: Likewise.
13828         * gcov.c: Likewise.
13829         * gcse.c: Likewise.
13830         * genautomata.c: Likewise.
13831         * ggc-common.c: Likewise.
13832         * ggc-page.c: Likewise.
13833         * loop-unroll.c: Likewise.
13834         * loop-unswitch.c: Likewise.
13835         * loop.c: Likewise.
13836         * mips-tfile.c: Likewise.
13837         * optabs.c: Likewise.
13838         * ra-build.c: Likewise.
13839         * ra-colorize.c: Likewise.
13840         * ra-rewrite.c: Likewise.
13841         * ra.h: Likewise.
13842         * regmove.c: Likewise.
13843         * reload.c: Likewise.
13844         * rtlanal.c: Likewise.
13845         * sched-ebb.c: Likewise.
13846         * sched-int.h: Likewise.
13847         * sched-vis.c: Likewise.
13848         * sreal.c: Likewise.
13849         * ssa-ccp.c: Likewise.
13850         * ssa.c: Likewise.
13851         * toplev.c: Likewise.
13852         * tree-inline.c: Likewise.
13853         * value-prof.c: Likewise.
13854         * value-prof.h: Likewise.
13855
13856 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
13857
13858         * rtl.h (emit_line_note_after): Remove.
13859         (emit_note_copy_after, emit_note_copy): New.
13860         * emit-rtl.c (reorder_insns_with_line_notes): Replace
13861         emit_line_note_after with emit_note_copy_after.
13862         (emit_insn_after_with_line_notes): Likewise.
13863         (emit_line_note_after): Kill.
13864         (emit_note_copy_after): New.
13865         (emit_note_copy): New.
13866         * function.c (emit_return_into_block): Use emit_note_copy_after.
13867         (thread_prologue_and_epilogue_insns): Likewise.
13868         * integrate.c (expand_inline_function): Use emit_note_copy.
13869         (copy_insn_list): Likewise.
13870         * unroll.c (copy_loop_body): Likewise.
13871         * cfglayout.c (duplicate_insn_chain): Likewise.
13872
13873 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
13874
13875         * c-tree.h (define_label): Replace filename and lineno arguments
13876         with a location_t.
13877         * c-decl.c (poplevel): Adjust define_label call.
13878         (pop_label_level): Likewise.
13879         (define_label): Replace filename and lineno arguments with a
13880         location_t.
13881         (store_parm_decls): Use DECL_SOURCE_LOCATION.
13882         * c-parse.in (label): Adjust define_label call.
13883
13884 2003-07-01  Neil Booth  <neil@daikokuya.co.uk>
13885
13886         * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
13887         config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
13888         config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
13889         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
13890         config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
13891
13892 2003-07-01  Andreas Jaeger  <aj@suse.de>
13893
13894         * final.c: Convert prototypes to ISO C90.
13895         * flow.c: Likewise.
13896         * flags.h: Likewise.
13897         * gcov-io.c: Likewise.
13898         * gcov-io.h: Likewise.
13899
13900 See ChangeLog.9 for earlier changes.