OSDN Git Service

* protoize.c (substr): Delete, callers changed to `strstr'.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2003-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2
3         * protoize.c (substr): Delete, callers changed to `strstr'.
4
5 2003-08-13  Zack Weinberg  <zack@codesourcery.com>
6
7         * config.gcc (iq2000*-*-elf*): Don't set xm_file.
8         * config/iq2000/xm-iq2000.h: Delete file.
9
10 2003-08-13  Geoffrey Keating  <geoffk@apple.com>
11
12         * gengtype.c (walk_type): Process a subobject before processing
13         the pointer that points to the subobject.
14
15 2003-08-13  Per Bothner  <pbothner@apple.com>
16
17         * regclass.c (init_reg_modes):  Make non-static.
18         Rename to init_reg_modes_once per new naming convention.
19         (init_regs):  Don't call init_reg_modes here.
20         * emit-rtl.c (init_emit_once):  Call init_reg_modes_once here instead.
21         * rtl.h (init_reg_modes_once):  New declaration.
22         * toplev.c (backend_init):  Call init_regs after init_emit_once.
23
24 2003-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
25
26         * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
27         special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
28
29 2003-08-13  J"orn Rennecke <joern.rennecke@superh.com>
30
31         * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
32         * sh.md (load_ra): Change insn predicate to TARGET_SH1.
33
34 2003-08-13  Dale Johannesen  <dalej@apple.com>
35
36         * config/rs6000/rs6000.md (ctrsi, ctrdi):  Reenable
37         handling of decrement-and-branch farther than 32 bits.
38
39 2003-08-12  Kelley Cook  <kelleycook@wideopenwest.com>
40
41         * configure.in (make_compare_target): Move test to ...
42         * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
43         * configure: Regenerate.
44
45 2003-08-12  Richard Sandiford  <rsandifo@redhat.com>
46
47         * config/mips/iris6.h: Convert to C90 prototypes.
48         * config/mips/irix6-libc-compat.c: Likewise.
49         * config/mips/mips-protos.h: Likewise.
50         * config/mips/mips.c: Likewise.
51
52 2003-08-12  Nathanael Nerode  <neroden@gcc.gnu.org>
53
54         fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel.  Enable
55         for selected machines.  Comment heavily.
56         fixinc/fixincl.x: Rebuild.
57         fixinc/tests/base/fs/rfs/rf_cache.h: New file.
58
59 2003-08-12  Richard Sandiford  <rsandifo@redhat.com>
60
61         * config/mips/mips.h: Tweak various comments.
62         * config/mips/mips.c: Likewise.
63
64 2003-08-11  James E Wilson  <wilson@tuliptree.org>
65
66         PR optimization/11319
67         PR target/10021
68         * alias.c (find_base_value, case REG): Return 0 not src if no base
69         found.
70
71 2003-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
72
73         * gcse.c (gmalloc): Fix last change.
74
75 2003-08-11  Roger Sayle  <roger@eyesopen.com>
76
77         * simplify-rtx.c (simplify_binary_operation): Replace calls to
78         gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
79         and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
80         gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
81
82 2003-08-11  Roger Sayle  <roger@eyesopen.com>
83
84         * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
85         * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
86         typecode for an ABS_EXPR.
87
88         * doc/c-tree.texi: Document ABS_EXPR.
89
90 2003-08-11  Roger Sayle  <roger@eyesopen.com>
91
92         * fold-const.c (fold): Optimize any associative floating point
93         operator with -funsafe-math-optimizations, not just MULT_EXPR.
94
95 2003-08-11  Kaz Kojima  <kkojima@gcc.gnu.org>
96
97         * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
98         information in SHmedia case too.
99         (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
100         Likewise.
101         (__set_fpscr): Use an access via GOT for PIC case.
102
103 2003-08-11  Kelley Cook  <kelleycook@wideopenwest.com>
104
105         * configure.in (intermodule): Make switch test more portable.
106         * configure: Regenerate.
107
108 2003-08-11  Kelley Cook  <kelleycook@wideopenwest.com>
109
110         * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
111         (restrap): Likewise.
112
113 2003-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
114
115         * gcse.c (gmalloc): Argument is a size_t.  Add ATTRIBUTE_MALLOC.
116         (grealloc): Size argument is a size_t.
117         (gcalloc): New function.  Use throughout in lieu of
118         gmalloc/memset.
119
120         * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
121         xmalloc/memset.
122         * config/ia64/ia64.c (ia64_reorg): Likewise.
123         * conflict.c (conflict_graph_new): Likewise.
124         * fixinc/fixincl.c (run_compiles): Likewise.
125         * genattrtab.c (optimize_attrs): Likewise.
126         * genrecog.c (new_decision): Likewise.
127         * haifa-sched.c (schedule_block): Likewise.
128         * hashtable.c (ht_create): Likewise.
129
130 2003-08-11  Bob Wilson  <bob.wilson@acm.org>
131
132         * config/xtensa/lib2funcs.S: Fix whitespace.
133         * config/xtensa/xtensa.md (all insns and expanders): Use brace block
134         syntax where appropriate.  Remove unnecessary backslash escapes.
135         Reformat comments and fix some code formatting.
136         (extendqisi2): Rearrange conditional.
137         (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
138         *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
139         of fatal_insn.
140
141 2003-08-11  Richard Sandiford  <rsandifo@redhat.com>
142
143         * config/mips/mips.c: Various formatting fixes.
144         (override_options): Resync -mtune handling with gas.
145         (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
146         * config/mips/mips.h: More formatting fixes.
147         (mips_abi): Move declaration.
148         * config/mips/mips.md (exception_receiver): Add mode to
149         unspec_volatile.
150
151 2003-08-11  Aldy Hernandez  <aldyh@redhat.com>
152
153         * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
154         evsplatfi here.
155         (bdesc_1arg): Remove evsplati and evsplatfi.
156
157 2003-08-11  J"orn Rennecke <joern.rennecke@superh.com>
158
159         * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
160         into account.
161
162 2003-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
163
164         * builtins.c (expand_builtin_strcat): Optimize constant strings.
165
166 2003-08-10  Gabriel Dos Reis  <gdr@integrable-solutions.net>
167
168         * pretty-print.c (pp_base_indent): Rename from pp_indent.
169         * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
170         (struct c_pretty_print_info): Add more fields.
171         (pp_c_left_paren): Move to c-pretty-print.c.
172         (pp_c_right_paren): Likewise.
173         (pp_c_left_brace): Likewise.
174         (pp_c_right_brace): Likewise.
175         (pp_c_left_bracket): Likewise.
176         (pp_c_right_bracket): Likewise.
177         (pp_c_declarator): Declare.
178         (pp_c_direct_declarator): Likewise.
179         (pp_c_specifier_qualifier_list): Likewise.
180         (pp_c_type_id): Likewise.
181         * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
182         (pp_c_type_qualifier_list): New.
183         (pp_c_pointer): Likewise.
184         (pp_c_parameter_type_list): Likewise.
185         (pp_c_function_definition): Likewise.
186         (pp_c_id_expression): Likewise.
187         (pp_c_simple_type_specifier): Tidy.
188         (pp_c_unary_expression): Likewise.
189         (pp_c_expression): Likewise.
190         (pp_c_pretty_printer_init): Likewise.
191         (pp_c_specifier_qualifier_list): Rework..
192         (pp_c_abstract_declarator): Likewise.
193         (pp_c_postfix_expression): Likewise.
194         (pp_c_primary_expression): Likewise.
195         (pp_c_cast_expression): Likewise.
196         (pp_c_direct_abstract_declarator): Likewise.
197         (pp_c_storage_class_specifier): Likewise.
198         (pp_c_function_specifier): Likewise.
199         (pp_c_declaration_specifiers): Likewise.
200         (pp_c_direct_declarator): Likewise.
201         (pp_c_declarator): Likewise.
202         (pp_c_declaration): Likewise.
203         (pp_c_statement): Likewise.
204         (pp_c_integer_constant): Rename from pp_c_integer_literal.
205         (pp_c_character_constant): Rename from pp_c_character_literal.
206         (pp_c_bool_constant): Rename from pp_c_bool_literal.
207         (pp_c_enumeration_constant): Rename from pp_c_enumerator.
208         (pp_c_floating_constant): Rename from pp_c_real_literal.
209         (pp_c_constant): Rename from pp_c_literal.
210         * c-lang.c: Include diagnostic.h and c-pretty-print.h
211         (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
212         (c_initialize_diagnostics): New.
213         * Makefile.in (c-lang.o): Update dependency.
214
215 2003-08-10  Nathan Sidwell  <nathan@codesourcery.com>
216
217         * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
218
219 2003-08-10  Richard Sandiford  <rsandifo@redhat.com>
220
221         * config/mips/mips.c (mips_no_mips16_string): Remove.
222         (override_options): Don't handle -mips16 as part of -mipsN.
223         * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
224         (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
225         (TARGET_OPTIONS): Remove -mno-mips16.
226
227 2003-08-10  Richard Sandiford  <rsandifo@redhat.com>
228
229         * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
230         (coprocessor2_operand): Likewise.
231         * config/mips/mips.c (STAB_CODE_TYPE): Remove.
232         (lookup_name): Remove declaration.
233         (abort_with_insn): Remove.  Replace all uses with fatal_insn.
234         (mips16, mips_abicalls): Remove.
235         (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
236         (arith32_operand, large_int, true_reg_or_0_operand): Remove.
237         (coprocessor_operand, coprocessor2_operand): Remove.
238         (override_options): Don't set mips16 or mips_abicalls.
239         (print_operand): Don't expect SIGN_EXTEND operands.
240         (mips_secondary_reload_class): Likewise.
241         (mips_output_conditional_branch): Remove disabled long-branch code.
242         * config/mips/mips.h (call_used_regs): Remove declaration.
243         (may_call_alloca): Likewise.
244         (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
245         (mips_abicalls, mips16): Remove declarations.
246         (ASM_FINAL_SPEC, LIB_SPEC): Remove.
247         (CC1_SPEC): Remove outdated comment.
248         (MIPS_VERSION, MACHINE_TYPE): Remove.
249         (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
250         (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
251         (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
252         (PUSH_ROUNDING): Likewise.
253         (ASSEMBLER_SCRATCH_REGNUM): Remove.
254         * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
255         and mips16 with TARGET_MIPS16.
256
257 2003-08-09  Per Bothner  <pbothner@apple.com>
258
259         * cppinit.c (cpp_read_main_file):  Split out source-independent
260         initialization to separate function ...
261         (cpp_post_options):  New function.
262         * cppfiles.c (cpp_stack_file):  Rename public name to ...
263         (_cpp_stack_file):  New internal function name.
264         * cpplib.h:  Update accordingly.
265         * cppinit.c:  (cpp_create_reader):  Initialize cpp_readers line here.
266         (cpp_read_main_file):  Don't initialize line here.
267         * c-opts.c (c_common_post_options):  Call cpp_post_options.
268         (c_common_parse_file):  Call cpp_read_main_file, not cpp_stack_file.
269         * fix-header.c (read_scan_file):  Call cpp_post_options.
270
271 2003-08-09  Per Bothner  <per@bothner.com>
272
273         * c-decl.c (SCOPE_LIST_APPEND):  Remove bogus line continuation.
274
275 2003-08-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
276
277         * pa.c (pa_asm_output_mi_thunk): Fix typo.
278
279 2003-08-09  Neil Booth  <neil@daikokuya.co.uk>
280
281         PR preprocessor/11839
282         * cppfiles.c (open_file): Handle ENOTDIR.
283
284 2003-08-09  Richard Sandiford  <rsandifo@redhat.com>
285
286         PR target/11699
287         * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
288
289 2003-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
290
291         * pa.md (extzv, extv, insv): Fix operand limit checks.  Fail if
292         source/destination is not a register operand.
293
294 2003-08-08  Richard Henderson  <rth@redhat.com>
295
296         PR target/11535
297         * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
298         RETURN_ADDRESS_POINTER_REGNUM.
299         (ia64_expand_prologue): Don't frob it.
300         (ia64_output_function_epilogue): Likewise.
301         (ia64_return_addr_rtx): New.
302         (ia64_split_return_addr_rtx): New.
303         * config/ia64/ia64-protos.h: Update.
304         * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
305         (RETURN_ADDRESS_POINTER_REGNUM): Remove.
306         (GENERAL_REGNO_P): Don't check it.
307         (AR_*_REGNUM): Renumber.
308         (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
309         (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
310         (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
311         (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
312         (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
313         * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
314         (movdi_ret_addr): New.
315
316 2003-08-08  Geoffrey Keating  <geoffk@apple.com>
317
318         * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
319
320 2003-08-08  Roger Sayle  <roger@eyesopen.com>
321
322         * tree.h (get_identifier) Define a macro form of get_identifier
323         that calls get_identifier_with_length when the string is constant.
324         (get_identifier_with_length): Change type of second argument to
325         size_t in prototype.
326         * stringpool.c (get_identifier): Undefine the macro before giving
327         the function definition.
328         (get_identifier_with_length): Change  type of second argument to
329         size_t in function definition.
330         * hashtable.c (calc_hash): Change type of second argument to size_t.
331         (ht_lookup): Change type of third argument to size_t.  Reorganize
332         to speed-up the cases where the hash table slot is empty, or the
333         first probe matches (i.e. there isn't a collision).
334         * hashtable.h (ht_lookup): Adjust function prototype.
335
336 2003-08-08  Bernardo Innocenti  <bernie@develer.com>
337
338         PR target/9697
339         PR target/11777
340         * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
341
342 2003-08-08  Neil Booth  <neil@daikokuya.co.uk>
343
344         * common.opt: Add debug switches.
345         * flags.h (use_gnu_debug_info_extensions): Boolify.
346         * opts.c (write_symbols, debug_info_level,
347         use_gnu_debug_info_extensions): Move from toplev.c.
348         (set_debug_level): New.
349         (common_handle_options): Handle debug switches.
350         (print_help): Display target options directly.
351         * toplev.c (debug_hooks): Don't initialize.
352         (write_symbols, debug_info_level,
353         use_gnu_debug_info_extensions): Move to opts.c.
354         (debug_args, display_help, decode_g_option): Remove.
355         (process_options): Set no debug if level zero here,
356         and no-debug-hooks.  Error here if impossible debug format selected.
357         * toplev.h (display_help, decode_g_option): Remove.
358
359 2003-08-08  Richard Sandiford  <rsandifo@redhat.com>
360
361         * tree.c (get_file_function_name_long): Fix size of alloca() area.
362
363 2003-08-08  Kelley Cook  <kelleycook@wideopenwest.com>
364
365         * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
366         and gcc_cv_prog_cmp_skip.
367         * configure: Regenerate.
368
369 2003-08-08  Stan Cox  <scox@redhat.com>
370
371         * config/iq2000: New port.
372         * config.gcc (iq2000-*-elf): Added.
373         * doc/install.texi (Specific):  Add iq2000 description.
374
375 2003-08-08  Andreas Schwab  <schwab@suse.de>
376
377         * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
378         and insert missing empty argument.
379         * configure: Regenerate.
380
381 2003-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
382
383         * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
384         (attr_length_millicode_call): Likewise.
385         (attr_length_call): Likewise.  Revise some maximum insn lengths.
386         (attr_length_indirect_call): Likewise.
387         (output_call): Fix thinko that added extra nop.
388         * pa.h (IN_NAMED_SECTION_P): Define.
389
390         PR c++/11712
391         * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
392         __STDC_EXT__ when using C++ dialect.
393
394 2003-08-07  J"orn Rennecke <joern.rennecke@superh.com>
395
396         * sh.c (calc_live_regs): If the return address pointer is live,
397         force pr live.
398         (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
399         for saves / restores.
400         (sh_expand_epilogue): If sh_media_register_for_return returns a
401         register number, flag the instructions that restores PR_MEDIA_REG
402         as possibly dead.
403         Remove dead update of offset.
404         (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
405         we can use the result of get_hard_reg_initial_val.
406         * sh.md (UNSPEC_RA): New constant.
407         (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
408         (load_ra).  Handle UNSPEC_RA.
409         (sibcall_media): Use PR_MEDIA_REG.
410
411         * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
412         * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
413         needs saving on SHmedia.
414
415 2003-08-07  Ulrich Weigand  <uweigand@de.ibm.com>
416
417         * config/s390/s390.md: Replace all occurrences of \\t with \t.
418
419 2003-08-07  Richard Sandiford  <rsandifo@redhat.com>
420
421         * local-alloc.c (combine_regs): Fix comment typo.
422
423 2003-08-06  Zack Weinberg  <zack@codesourcery.com>
424
425         * c-decl.c (builtin_decls): Replace with first_builtin_decl
426         and last_builtin_decl.
427         (c_init_decl_processing): Initialize both.
428         (c_reset_state): Iterate from first_builtin_decl to
429         last_builtin_decl inclusive to reintroduce builtins.
430
431 2003-08-06  David Mosberger  <davidm@hpl.hp.com>
432
433         * doc/extend.texi (Function Attributes): Document the IA-64 version
434         of the "model" attribute.
435
436         * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
437         (SYMBOL_REF_SMALL_ADDR_P): Ditto.
438         (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
439
440         * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
441         (ia64_encode_section_info): Likewise.
442         (ia64_attribute_table): Add "model" attribute.
443         (TARGET_ENCODE_SECTION_INFO): Define.
444         (small_addr_symbolic_operand): New function.
445         (got_symbolic_operand): Return 0 for a symbolref to an object
446         in the small address area.
447         (enum ia64_addr_area): New type.
448         (small_ident1): New variable.
449         (small_ident2): Likewise.
450         (init_idents): New function.
451         (ia64_get_addr_area): Likewise.
452         (ia64_encode_addr_area): Likewise.
453         (ia64_encode_section_info): Likewise.
454         (ia64_expand_load_address): For symbolic references to objects in
455         the small-address-area, load the address via gen_rtx_SET() (which,
456         eventually, will expand into "addl").
457
458 2003-08-06  Per Bothner  <pbothner@apple.com>
459
460         * line-map.h (fileline):  New typedef.
461         (struct line_map, linemap_add, linemap_lookup):  Use it.
462         * input.h (struct location_s):  Comment notes that long-term we want
463         to replace it by fileline.
464
465 2003-08-06  J"orn Rennecke <joern.rennecke@superh.com>
466
467         Fix SHcompact exception handling:
468         * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
469         by the prologue, return a MEM with return_address_pointer_rtx
470         as address.
471         * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
472         (RETURN_ADDR_OFFSET): Don't define.
473         (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
474         registers that are visible in compact mode.  Show that SHmedia
475         registers still exist in compact mode, even if there are not
476         readily accessible.
477         (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
478         if GLOBAL.  Use DW_EH_PE_textrel (nominally) for CODE,
479         and DW_EH_PE_pcrel for pic data.
480         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
481         set SYMBOL_FLAG_FUNCTION in symbol, and actually use
482         DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
483         (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
484         * sh.md (movsi_media-1): New splitter.
485
486 2003-08-06  Graeme Peterson <gp@qnx.com>
487
488         * config/i386/nto.h: New.
489         * config/i386/t-nto: New.
490         * config.gcc (i[34567]86-*-nto-qnx*): New.
491
492 2003-08-06  Phil Edwards  <pme@gcc.gnu.org>
493
494         * doc/install.texi (*-*-solaris2*):  Refine configure instructions.
495
496 2003-08-06  Alan Modra  <amodra@bigpond.net.au>
497
498         * calls.c (load_register_parameters): Arrange for call_fusage to
499         report the whole register as used when shifting to the msb.
500
501 2003-08-05  Roger Sayle  <roger@eyesopen.com>
502
503         * builtins.c (expand_builtin): When not optimizing, call the library
504         function for all builtins that have library functions (except alloca).
505
506 2003-08-05  Alexandre Oliva  <aoliva@redhat.com>
507
508         * c.opt: Introduce -fworking-directory.
509         * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
510         * c-common.h (flag_working_directory): Declare.
511         * c-common.c (flag_working_directory): Define.
512         * c-opts.c (c_common_handle_options): Set it.
513         (sanitize_cpp_opts): Set...
514         * cpplib.h (struct cpp_options): ... working_directory option.
515         (struct cpp_callbacks): Add dir_change.
516         * cppinit.c (read_original_filename): Call...
517         (read_original_directory): New.  Look for # 1 "directory//"
518         and process it.
519         (cpp_read_main_file): Call dir_change callback if working_directory
520         option is set.
521         * gcc.c (cpp_unique_options): Pass -g*.
522         * c-lex.c (cb_dir_change): New.
523         (init_c_lex): Set dir_change callback.
524         * toplev.c (src_pwd): New static variable.
525         (set_src_pwd, get_src_pwd): New functions.
526         * toplev.h (get_src_pwd, set_src_pwd): Declare.
527         * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
528         * dwarf2out.c (gen_compile_unit_die): Likewise.
529         * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
530
531 2003-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
532
533         * pretty-print.h (pp_set_line_maximum_length): Make macro.
534         (pp_set_prefix): Likewise.
535         (pp_destroy_prefix): Likewise.
536         (pp_remaining_character_count_for_line): Likewise.
537         (pp_clear_output_area): Likewise.
538         (pp_formatted_text): Likewise.
539         (pp_last_position_in_text): Likewise.
540         (pp_emit_prefix): Likewise.
541         (pp_append_text): Likewise.
542         (pp_flush): Likewise.
543         (pp_format_text): Likewise.
544         (pp_format_verbatim): Likewise.
545         (pp_tree_identifier): Tidy.
546         * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
547         (pp_base_format_verbatim): Rename from pp_format_verbatim.
548         (pp_base_flush): Rename from pp_flush.
549         (pp_base_set_line_maximum_length): Rename from
550         pp_set_line_maximum_length.
551         (pp_base_clear_output_area): Rename from pp_clear_output_area.
552         (pp_base_set_prefix): Rename from pp_set_prefix.
553         (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
554         (pp_base_emit_prefix): Rename from pp_emit_prefix.
555         (pp_base_append_text): Rename from pp_append_text.
556         (pp_base_formatted_text): Rename from pp_formatted_text.
557         (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
558         (pp_base_remaining_character_count_for_line): Rename from
559         pp_remaining_character_count_for_line.
560         * diagnostic.h (diagnostic_format_decoder): Tidy.
561         (diagnostic_flush_buffer): Likewise.
562         * c-pretty-print.h: (pp_c_string_literal): Declare.
563         (pp_c_real_literal): Likewise.
564         (pp_c_integer_literal): Likewise.
565         * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
566         pp_identifier.
567         (pp_c_character_literal): Tidy.
568         (pp_c_string_literal): Make public.
569         (pp_c_bool_literal): Likewise.
570         (pp_c_integer_literal): Likewise.
571         (pp_c_real_literal): Likewise.
572
573         * Makefile.in (C_PRETTY_PRINT_H): New variable.
574         (c-pretty-print.o): Update dependence.
575
576 2003-08-05  Chris Demetriou  <cgd@broadcom.com>
577
578         * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
579         ".set nomacro" state.
580         (fix_truncsfsi2_macro): Likewise.
581
582 2003-08-05  Steven Bosscher  <steven@gcc.gnu.org>
583
584         * tree.h (DID_INLINE_FUNC): Remove macro.
585         (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
586         add tree check for FUNCTION_DECL.
587         (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
588         (struct tree_decl): Rename inlined_function_flag to
589         declared_inline_flag.
590         * c-common.h (c_lang_decl): Remove.
591         (DECL_ESTIMATED_INSNS): Remove.
592         * c-tree.h (struct lang_decl): Don't include c_lang_decl.
593         (DECL_DECLARED_INLINE_P): Remove.
594         * c-decl.c (grokdeclarator): Update comment.  With -finline-functions,
595         do not reset DECL_DECLARED_INLINE_P.  Don't use DID_INLINE_FUNC.
596         (finish_function): Make uninlinable a bool.  Fixup call to
597         tree_inlinable_function_p() and fix some code style issues.
598         * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
599         * cgraph.c (dump_cgraph): Likewise.
600         * cgraphunit.c (cgraph_decide_inlining): Likewise
601         (cgraph_finalize_compilation_unit): Likewise.
602         Also update call to tree_inlinable_function_p().
603         (cgraph_default_inline_p): Don't use DID_INLINE_FUNC.  Instead
604         look at DECL_DECLARED_INLINE and reverse logic.
605         * print-tree.c (print_node): Likewise.
606         * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
607         * tree-inline.h (tree_inlinable_function_p): Make a bool.  Update
608         prototype.
609         * tree-inline.c (inlinable_function_p): Split up in this function to
610         check for basic inlining inhibiting conditions, and new
611         limits_allow_inlining() function.  Warn if inlining is impossible
612         because the inline candidate calls alloca or uses sjlj exceptions.
613         (limits_allow_inlining): this new function to check if the inlining
614         limits are satisfied.  Throttle from currfn_max_inline_insns, not from
615         MAX_INLINE_INSNS_SINGLE.  The latter only makes sense if
616         MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
617         Update prototypes.
618         (tree_inlinable_function_p): Make a bool.  Update call to
619         inlinable_function_p
620         (expand_call_inline): Use limits_allow_inlining() when not in
621         unit-at-a-time mode to decide on inlining.  Don't use DID_INLINE_FUNC,
622         instead see if the function was declared `inline'.
623
624 2003-08-05  Josef Zlomek  <zlomekj@suse.cz>
625
626         * gcse.c (try_replace_reg): Fix updating of note.
627
628 2003-08-04  Roger Sayle  <roger@eyesopen.com>
629
630         PR middle-end/11771
631         * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
632         logic in negate_expr, i.e. we don't invert (A-B) for floating
633         point types unless flag_unsafe_math_optimizations.
634
635 2003-08-04  Roger Sayle  <roger@eyesopen.com>
636
637         * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
638         Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
639         for floating point expressions with -ffast-math.
640         (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
641         * expmed.c (expand_mult): Wrap long line.  Expand x*2.0 as x+x.
642
643 2003-08-04  Roger Sayle  <roger@eyesopen.com>
644
645         * c-common.c (flag_noniso_default_format_attributes): Delete.
646         (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
647         (c_attrs_initialized): Delete.
648         (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
649         always call c_init_attributes.
650         (c_init_attributes): Don't define/undefine DEF_FN_ATTR.  Don't
651         set c_attrs_initialized when done.
652         (c_common_insert_default_attributes): Delete.
653         * c-common.h (flag_noniso_default_format_attributes): Delete.
654         (c_coomon_insert_default_attributes): Delete prototype.
655         * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
656         flag_noniso_default_format_attributes.
657
658         * c-decl.c (c_insert_default_attributes): Delete.
659         * c-tree.h (c_insert_default_attributes): Delete prototype.
660
661         * attribs.c (decl_attributes): Don't call insert_default_attributes
662         langhook.  Update function description comment.
663         * langhooks.h (lang_hooks): Remove insert_default_attributes field.
664         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
665         * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
666         * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
667
668         * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
669         define.
670
671 2003-08-04  Richard Sandiford  <rsandif@redhat.com>
672
673         * config/mips/mips.c (override_options): Disable -G on targets that
674         have no .section support.
675         (mips_select_section): Use default_select_section for such targets.
676
677 2003-08-04  Nathanael Nerode  <neroden@gcc.gnu.org>
678
679         * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
680         * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
681         * fixinc/fixincl.x: Rebuild.
682         * fixinc/tests/base/regexp.h: New test.
683
684 2003-08-04  Alexandre Oliva  <aoliva@redhat.com>
685
686         * c-ppoutput.c (cb_line_change): Don't skip line changing while
687         parsing macro arguments in the top-level context.
688
689 2003-08-04  Neil Booth  <neil@daikokuya.co.uk>
690
691         * config.in: Remove HAVE_LSTAT.
692         * configure, configure.in: Don't test for lstat.
693
694 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
695
696         * opts.c (decode_options): Do language-specific initialization for
697         the global diagnostic context.
698         * langhooks-def.h (lhd_initialize_diagnostics): Declare.
699         (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
700         (LANG_HOOKS_INITIALIZER): Adjust.
701         * langhooks.h (struct lang_hooks): Add new field
702         initialize_diagnostics.
703         * langhooks.c (lhd_initialize_diagnostics): Define.
704
705 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
706
707         * pretty-print.h:   Adjust macro definitions.
708         * pretty-print.c (pp_newline): Rename to pp_base_newline.
709         (pp_character): Rename to pp_base_character.
710         (pp_string): Rename to pp_base_string.
711         * c-pretty-print.c (pp_buffer): Move to pretty-print.h
712         (pp_newline):  Likewise.  Adjust.
713         (pp_c_char): Adjust.
714
715 2003-08-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
716
717         * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
718         BUILT_IN_LLABS): Move to miscellaneous section.
719
720 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
721
722         PR preprocessor/11534
723         * cppexp.c (parse_defined): Warn only if -pedantic.
724
725 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
726
727         * cppfiles.c (stack_file): Use file path.
728
729 2003-08-02  Roger Sayle  <roger@eyesopen.com>
730
731         * builtin-types.def (BT_SSIZE): New primitive type.
732         (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
733         BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
734         BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
735         BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
736         * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
737         BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
738         BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
739         * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
740         few functions that define default attributes using it.
741         * c-common.c (c_common_insert_default_attributes): Do nothing.
742
743         * doc/extend.texi: Document these "new" builtins.
744
745 2003-08-02  Kaz Kojima  <kkojima@gcc.gnu.org>
746
747         * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
748         (LIB_SPEC): Set -lpthread always when -pthread set.  Set -lieee
749         when -mieee-fp set and -shared not set.
750         (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
751
752 2003-08-02  Neil Booth  <neil@daikokuya.co.uk>
753
754         * cppfiles.c (struct _cpp_file): Rename once_only_next to
755         next_file.  Remove import and pragma_once, add once_only.
756         (find_file): Add new file structures to the all_files list.
757         (should_stack_file): Mark #import-ed files once-only, and
758         don't stack them if the file has already been stacked.
759         (_cp_mark_file_once_only): Simplify.
760         * cpphash.h (struct cpp_reader): Rename once_only_files
761         to all_files.  Rename saw_pragma_once to seen_once_only.
762         (_cpp_mark_file_once_only): Update prototype.
763         * cpplib.c (do_pragma_once): Update.
764
765 2003-08-02  Neil Booth  <neil@daikokuya.co.uk>
766
767         * cppfiles.c (ENOTDIR): Remove.
768         (open_file_in_dir): Rename find_file_in_dir.  Handle errors
769         other than ENOENT here.
770         (once_only_file_p): Rename should_stack_file.
771         (find_file, open_file_failed, read_file_guts): Report errors
772         with full path name.
773         (read_file): Move pch handling to should_stack_file.
774         (should_stack_file): Handle PCH and once-only issues, and
775         reading the file.
776         (stack_file): Don't do file reads.
777
778 2003-08-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
779
780         * libgcov.c (gcov_exit): Cleanup and fix.
781         * profile.c (compute_value_histograms): Don't try to read profiles
782         that are not present.
783
784 2003-08-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
785
786         * builtins.def: Categorize.
787
788         * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
789         Mind fp rounding.
790         (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
791
792 2003-08-02  Andreas Tobler  <a.tobler@schweiz.ch>
793
794         * config.gcc: Enable posix threads by default on darwin.
795
796 2003-08-01  Jakub Jelinek  <jakub@redhat.com>
797
798         * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
799         even if nehedges1 is 0.
800
801 2003-08-01  Nathanael Nerode  <neroden@gcc.gnu.org>
802
803         * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
804         fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
805         fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
806         and defintions.
807
808         * fixinc/inclhack.def (broken_cabs): Make matching more generous.
809         * fixinc/fixincl.x: Regenerate.
810         * fixinc/tests/base/math.h: Regenerate to match test_text change.
811
812 2003-08-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
813
814         * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
815
816 2003-08-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
817
818         * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
819         for accesses to exc_ptr.
820
821 2003-08-01  Geoffrey Keating  <geoffk@apple.com>
822
823         * doc/sourcebuild.texi (Front End Directory): Don't make references
824         to libsubdir, it's not part of the interface to frontends.
825         * doc/install.texi (Configuration): Help users read faster by saying
826         that GCC's configure options are the standard autoconf ones.
827         Mention --libdir.  Update the default rules for finding the
828         assembler.  Don't use libsubdir since we haven't said what it means.
829         (Specific): In the Solaris 7 notes, update the place to put the
830         assembler.
831         * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
832         * doc/cpp.texi (Search Path): Actually, the search path
833         depends on libdir, which can relocate with cpp.
834         * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
835         now a private interface between the Makefile and the driver.
836
837 2003-08-01  Richard Henderson  <rth@redhat.com>
838
839         * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
840
841         * varasm.c (lookup_constant_def): New function.
842         * rtl.h (lookup_constant_def): Declare it.
843         * dwarf2out.c (loc_descriptor_from_tree): Use it.
844         Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
845
846 2003-08-01  Zack Weinberg  <zack@codesourcery.com>
847
848         * c-decl.c (gettags, pushdecl_function_level): Delete.
849         (last_function_parm_vars): Rename last_function_parm_others.
850         (current_function_parm_vars): Rename current_function_parm_others.
851         (struct c_scope): Rewrite comment explaining this data structure.
852         Add names_last, blocks_last, parms_last fields.  Rename
853         incomplete_list to incomplete.
854         (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
855         (poplevel): Ignore second argument.  No need to nreverse
856         anything.  Restructure such that each list is processed
857         exactly once.  Use 'const location_t *locus' syntactic sugar
858         variable where useful.  Issue unused variable warnings
859         ourselves, do not rely on function.c.
860         (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
861         (pushdecl_top_level): Likewise.  Don't call duplicate_decls.
862         (implicitly_declare): decl cannot be error_mark_node.
863         (undeclared_variable): Manipulate scope structure directly.
864         (c_make_fname_decl): Likewise.
865         (getdecls, c_init_decl_processing): Fix comment.
866         (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT.  No need
867         for 'last' variable.
868         (grokparms): No need to nreverse parms list.
869         (store_parm_decls_newstyle): Set up the parms_last and
870         names_last fields of the new scope too.
871         (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
872         on parms to begin with; check this under ENABLE_CHECKING.  Set
873         up parms_last.
874         (check_for_loop_decls): Refer directly to current_scope->tags.
875         Use consistent quote style in diagnostics.
876         (c_write_global_declarations): The names list is not backward.
877
878         * c-common.h: Don't prototype gettags.
879         * c-parse.in: Call poplevel with second argument 0 always.
880
881 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
882
883         * builtins.def: Resort builtins.
884
885 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
886
887         * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
888         DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
889         Prepend "__builtin_" onto NAME with string concatenation.  Remove
890         explicit "__builtin_" from each macro call.
891
892         Reformat entire file.
893
894 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
895
896         * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
897         ATTR_MATHFN_FPROUNDING_ERRNO): New macros.  Use throughout.
898
899 2003-08-01  Andreas Krebbel  <krebbel1@de.ibm.com>
900
901         * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
902         CCL1, or CCL2 modes with floating point operations.
903
904         * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
905         "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
906         "*subdf3_cconly"): New insns.
907         ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
908
909 2003-08-01  Neil Booth  <neil@daikokuya.co.uk>
910
911         * Makefile.in: Refine dependencies.
912         * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
913         * c.opt: Update help for -Wimport.
914         * cppfiles.c: Include hashtab.h.  Update comments.
915         (stack_file): Read the file before updating dependencies.
916         (once_only_file_p): Be smarter about marking once-only files.
917         (_cpp_mark_file_once_only): Correct the check for existence on
918         the list.
919         (open_file_failed): Use name not path, which is NULL.
920         * cpphash.h: Don't include hashtab.h.
921         (struct _cpp_file): Remove.
922         (struct cpp_reader): Update.
923         * cppinit.c (cpp_create_reader): Don't initialize warn_import.
924         * cpplib.h (struct cpp_options): Remove warn_import.
925         (cpp_simplify_path): Remove.
926
927 2003-08-01  Nathan Sidwell  <nathan@codesourcery.com>
928
929         PR c++/11295
930         * doc/extend.texi (Statement Expressions): Document C++ semantics.
931
932 2003-07-31  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
933
934         * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
935
936 2003-07-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
937
938         * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
939         throughout.
940         * builtins.def: Likewise.
941
942 2003-07-31  Jason Merrill  <jason@redhat.com>
943
944         * Makefile.in (bubblestrap): Don't require a previous full
945         bootstrap.
946
947         * expr.c (mostly_zeros_p): No longer static.
948         * tree.h: Declare it.
949         * stmt.c (resolve_asm_operand_names): Don't copy the pattern
950         unless we need to do substitutions.
951
952 2003-07-31  Roger Sayle  <roger@eyesopen.com>
953
954         * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
955         pow(x,c)*x as pow(x,c+1) for constant values c.  Optimize x*x
956         as pow(x,2.0) when the latter will be expanded back into x*x.
957         (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
958         * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
959         pow can never set errno when used with an integer exponent.
960         Always use expand_powi when exponent is -1, 0, 1 or 2.
961         (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
962         as 1.0/(x*x).  This avoids unbounded recursion as we now prefer
963         the pow forms of these expressions.
964
965 2003-07-31  Geoffrey Keating  <geoffk@apple.com>
966
967         * Makefile.in (libexecdir): New.
968         (libsubdir): Use gcc instead of gcc-lib.
969         (libexecsubdir): New.
970         (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
971         (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
972         gcc-lib.
973         (installdirs): Make libexecsubdir.
974         (install-common): Put executables in libexecsubdir.
975         (itoolsdir): Use libexecsubdir.
976         (itoolsdatadir): New.
977         (install-mkheaders): Separate data files and executables.
978         (install-collect2): Put executables in libexecsubdir.
979         (uninstall): Remove libexecsubdir.
980         * mkheaders.in: Update for new arrangement of files.
981         (libexecdir): New.
982         (libexecsubdir): New.
983         (itoolsdir): Use libexecsubdir.
984         (itoolsdatadir): New.
985         * gcc.c (gcc_libexec_prefix): New.
986         (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
987         (standard_exec_prefix_1): Use libexec.
988         (standard_exec_prefix_2): New.
989         (standard_libexec_prefix): New.
990         (process_command): Update for new arrangement of files.  Compute
991         gcc_libexec_prefix.  Update for change from gcc-lib to gcc.
992
993 2003-07-31  Nathanael Nerode  <neroden@gcc.gnu.org>
994
995         * inclhack.def (stdio_va_list): Avoid bogus replacement which
996         triggers on Interix.
997         * fixincl.x: Regenerate.
998
999 2003-07-31  Jakub Jelinek  <jakub@redhat.com>
1000
1001         * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
1002         SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
1003
1004 2003-07-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1005
1006         * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
1007
1008 2003-07-31  Per Bothner  <pbothner@apple.com>
1009
1010         * opts.c (in_fnames, num_in_fnames):  Moved here from c-opts.
1011         (add_input_filename):  New function.
1012         (handle_options):  Call add_input_filename directly instead of
1013         with a lang hook.
1014         * opts.h (in_fnames, num_in_fnames):  Moved here.
1015         (add_input_filename):  Declare.
1016         * c-decl.c:  Need to #include opts.h.
1017         * Makefile.in (c-decl.o):  Also depends on opts.h.
1018         * c-opts.c (in_fnames, num_in_fnames):  Moved to opts.c.
1019         (c_common_handle_filename):  Replaced by add_input_filename.
1020         * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
1021         Remove.
1022         * langhooks.h (struct lang_hooks):  Remove handle_filename hook.
1023         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
1024         (LANG_HOOKS_INITIALIZER):  Remove use of LANG_HOOKS_HANDLE_FILENAME.
1025         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
1026
1027 2003-07-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1028
1029         * combine.c (try_combine): Set JUMP_LABEL for newly created
1030         unconditional jump.
1031
1032 2003-07-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1033
1034         * fold-const.c (fold): Fold some comparisons of bit operations.
1035
1036 Thu Jul 31 19:49:53 CEST 2003  Jan Hubicka  <jh@suse.cz>
1037
1038         * cgraph.c (create_edge): Fix typo.
1039         * i386.c (pic_symbolic_operand): Reorder tests.
1040
1041 2003-07-31  Nathan Sidwell  <nathan@codesourcery.com>
1042
1043         * doc/gcov.texi (Invoking Gcov): Describe output name mangling
1044         more fully.
1045         (Gcov Data Files): Update.
1046
1047 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1048
1049         * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
1050         default.
1051
1052         * gthr-posix.c: New file.
1053         * gthr-posix.h: Define _REENTRANT if missing.
1054         Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
1055
1056         * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
1057         by gthr-posix.o.
1058         * config/alpha/t-osf-pthread: New file.
1059
1060         * fixinc/inclhack.def (alpha_pthread): New fix.
1061         * fixinc/fixincl.x: Regenerate.
1062         * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
1063
1064         * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
1065         warning.
1066         Fixes PR bootstrap/9330.
1067
1068 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1069
1070         * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
1071         without GNU ld.
1072         Update comment.
1073         * configure: Regenerate.
1074
1075 2003-07-31  Vladimir Makarov  <vmakarov@redhat.com>
1076
1077         * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
1078         setter.
1079
1080 2003-07-30  Roger Sayle  <roger@eyesopen.com>
1081
1082         * builtins.def: Alphabetize.
1083
1084 2003-07-30  Matt Kraai  <kraai@alumni.cmu.edu>
1085
1086         * doc/c-tree.texi: Normalize spellings of "lowercase" and
1087         "uppercase".
1088         * doc/cpp.texi: Likewise.
1089         * doc/md.texi: Likewise.
1090         * doc/rtl.texi: Likewise.
1091         * doc/tm.texi: Likewise.
1092
1093 2003-07-30  Matt Kraai  <kraai@alumni.cmu.edu>
1094
1095         * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
1096         (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
1097         of cc1obj.
1098
1099 2003-07-30  Chris Demetriou  <cgd@broadcom.com>
1100
1101         * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
1102         macros before defining them.
1103
1104 2003-07-31  Ulrich Weigand  <uweigand@de.ibm.com>
1105
1106         * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
1107         UNSPECV_BLOCKAGE): New constants.
1108         ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
1109         "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
1110         splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
1111         "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
1112
1113         (all insns and expanders): Write output control string as brace block
1114         where appropriate.  Remove \-escapes for doublequote characters.
1115
1116 Thu Jul 31 01:04:19 CEST 2003  Jan Hubicka  <jh@suse.cz>
1117
1118         * gcse.c (insert_store): Fix typo in previous patch.
1119
1120 2003-07-30  Neil Booth  <neil@daikokuya.co.uk>
1121
1122         * cppfiles.c (stack_file, open_file_failed): Use path for deps.
1123
1124 2003-07-30  Andi Kleen  <ak@muc.de>
1125
1126         * loop.c (check_dbra_loop): Allow LTU in the loop condition.
1127
1128 2003-07-30  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1129
1130         * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
1131         * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
1132         GCOV_N_VALUE_COUNTERS): New.
1133         * profile.c (compute_value_histograms): New static function.
1134         (branch_prob): Read back the value histograms.
1135         * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
1136         * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
1137         * value-prof.c: Add comment on reading the profile.
1138         * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
1139         * doc/invoke.texi (-fprofile-values): Document behavior with
1140         -fbranch-probabilities.
1141
1142 2003-07-30  David Edelsohn  <edelsohn@gnu.org>
1143
1144         * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
1145
1146 2003-07-30  Ulrich Weigand  <uweigand@de.ibm.com>
1147
1148         * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
1149         symbolically.
1150
1151 Wed Jul 30 19:12:10 CEST 2003  Jan Hubicka  <jh@suse.cz>
1152
1153         * gcse.c (insert_store): Ignore fake edges.
1154
1155         * c-common.c (flag_vtable_gc): Kill.
1156         * c-common.g (flag_vtable_gc): Kill.
1157         * c-opts (c_common_handle_option): Kill.
1158         * c.opt (fvtable-gc): Kill.
1159         * final.c (final_scan_insn): Do not call assemble_vtable_entry.
1160         * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
1161         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
1162
1163         * invoke.texi (-ftable-gc): Kill documentation.
1164
1165         * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
1166         just because function body is missing.
1167
1168         * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
1169
1170 2003-07-30  Ranjit Mathew  <rmathew@hotmail.com>
1171
1172         * unwind-sjlj.c: Fix typo in file description.
1173
1174 2003-07-30  Alan Modra  <amodra@bigpond.net.au>
1175
1176         * calls.c (load_register_parameters): When shifting reg sized values
1177         to the msb, move the value to a reg first.
1178
1179 2003-07-29  Geoffrey Keating  <geoffk@apple.com>
1180
1181         * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
1182         * line-map.h (linemap_add): Update comments.
1183         * line-map.c (linemap_add): Update comments, interpret zero-length
1184         filename as "<stdin>".
1185
1186 2003-07-29  Nathanael Nerode  <neroden@gcc.gnu.org>
1187
1188         * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
1189
1190 2003-07-29  Zack Weinberg  <zack@codesourcery.com>
1191
1192         * c-decl.c (last_function_parm_vars, current_function_parm_vars):
1193         New static variables.
1194         (struct c_scope): Add parms and warned_forward_parm_decls
1195         fields; remove parm_order.
1196         (storedecls, storetags): Delete.
1197         (poplevel): Also clear bindings on the parms chain.
1198         (pushdecl): Handle forward declarations of parameters, and
1199         chain PARM_DECLs on the parms list, not the names list.
1200         (lookup_name_current_level): Check for PARM_DECLs on the parms
1201         list too.
1202         (push_parm_decl): Don't update parm_order.
1203         (clear_parm_order): Rename mark_forward_parm_decls.  Issue the
1204         warning, only once per parameter list, and set TREE_ASM_WRITTEN
1205         on the decls here.  Then move the forward decls to the names list.
1206         (grokparms): Set last_function_parm_vars.
1207         (get_parm_info): Don't use gettags or getdecls.  No need to
1208         extract non-parms from the parms list, or reorganize the parms
1209         list.  Feed nonparms back in the TREE_TYPE of the list node
1210         returned.  Issue only one error per parameter list for "void"
1211         appearing more than once in said parameter list.  Collapse
1212         parmlist_tags_warning into this function to avoid double scan
1213         of tags list.
1214         (start_function): Set current_function_parm_vars.
1215         (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
1216         directly.  Get non-parms from current_function_parm_vars; no
1217         need to extract them from the parms chain.  Properly bind tags
1218         in the new scope.
1219         (store_parm_decls_oldstyle): No need to extract non-parameters
1220         from the parms chain, nor to store them back afterward.  Move
1221         declaration to top of function, restructure code reordering
1222         DECL_ARGUMENTS.
1223         (store_parm_decls): No need to save and restore warn_shadow.
1224         * c-parse.in: Don't call parmlist_tags_warning nor
1225         clear_parm_order.  Call mark_forward_parm_decls when forward
1226         parm decls are encountered.
1227         * c-tree.h: Prototype mark_forward_parm_decls; not
1228         clear_parm_order or parmlist_tags_warning.
1229
1230 2003-07-29  Geoffrey Keating  <geoffk@apple.com>
1231
1232         * c-common.c (allow_pch): Remove.
1233         * c-common.h (allow_pch): Remove.
1234         (c_common_no_more_pch): Declare.
1235         * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
1236         * c-pch.c: Include hosthooks.h.
1237         (c_common_valid_pch): Don't check allow_pch.
1238         (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
1239         (c_common_no_more_pch): New.
1240         * ggc-common.c: Include hosthooks.h.
1241         (gt_pch_save): Call gt_pch_get_address.
1242         (gt_pch_restore): Call gt_pch_use_address.
1243         * hooks.c (hook_voidp_size_t_null): New.
1244         (hook_bool_voidp_size_t_false): New.
1245         * hooks.h (hook_voidp_size_t_null): New.
1246         (hook_bool_voidp_size_t_false): New.
1247         * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
1248         (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
1249         (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
1250         HOST_HOOKS_GT_PCH_USE_ADDRESS.
1251         * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
1252         gt_pch_use_address.
1253         * doc/hostconfig.texi (Host Common): Document
1254         HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
1255         * Makefile.in (c-pch.o): Depend on hosthooks.h.
1256         (ggc-common.o): Likewise.
1257
1258         * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
1259         (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
1260         (pch_address_space): New.
1261         (darwin_rs6000_gt_pch_get_address): New.
1262         (darwin_rs6000_gt_pch_use_address): New.
1263
1264 2003-07-29  Neil Booth  <neil@daikokuya.co.uk>
1265
1266         PR preprocessor/11569
1267         PR preprocessor/11649
1268         * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
1269         * cppfiles.c: Completely rewritten.
1270         * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
1271         struct cpp_path is now struct cpp_dir.
1272         (remove_duplicates): Don't simplify path names.
1273         * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
1274         cpp_stack_file.
1275         * cpphash.h: Include hashtab.h.
1276         (_cpp_file): Declare.
1277         (struct cpp_buffer): struct include_file is now struct _cpp_file,
1278         and struct cpp_path is now struct cpp_dir.  Rename members.
1279         (struct cpp_reader): Similarly.  New members once_only_files,
1280         file_hash, file_hash_entries, quote_ignores_source_dir,
1281         no_search_path, saw_pragma_once.  Remove all_include_files and
1282         max_include_len.  Make some members bool.
1283         (_cpp_mark_only_only): Renamed from _cpp_never_reread.
1284         (_cpp_stack_file): Renamed from _cpp_read_file.
1285         (_cpp_stack_include): Renamed from _cpp_execute_include.
1286         (_cpp_init_files): Renamed from _cpp_init_includes.
1287         (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
1288         * cppinit.c (cpp_create_reader): Initialize no_search_path.  Update.
1289         (cpp_read_next_file): Rename and move to cppfiles.c.
1290         (cpp_read_main_file): Update.
1291         * cpplib.c (run_directive): Update for renamed members.
1292         (do_include_common, _cpp_pop_buffer): Update.
1293         (do_import): Undeprecate #import.
1294         (do_pragma_once): Undeprecate.  Use _cpp_mark_file_once_only.
1295         * cpplib.h: Remove file_name_map_list.
1296         (cpp_options): Remove map_list.
1297         (cpp_dir): Rename from cpp_path.  New datatype for name_map.
1298         (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
1299
1300 2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
1301
1302         * Makefile.in:  Make stamp-objdir safe for parallel builds.
1303
1304 2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
1305
1306         * Makefile.in (stmp-docobjdir):  New target; ensure $docobjdir exists.
1307         (info):  Depend on stmp-docobjdir.
1308
1309 2003-07-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1310
1311         * configure: Regenerate.
1312
1313 Tue Jul 29 19:24:49 CEST 2003  Jan Hubicka  <jh@suse.cz>
1314
1315         PR C++/11131
1316         * tree-inline.c (expand_call_inline): Always call inlinable_function_p
1317         in !unit-at-a-time mode.
1318
1319 2003-07-28  Geoffrey Keating  <geoffk@apple.com>
1320
1321         * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
1322         main function.
1323
1324 2003-07-28  Mark Mitchell  <mark@codesourcery.com>
1325
1326         PR c++/11667
1327         * c-common.c (shorten_compare): Take into account differences
1328         between C and C++ representation for enumeration types.
1329         * tree.h (set_min_and_max_values_for_integral_type): Declare.
1330         * stor-layout.c (set_min_and_max_values_for_integral_type): New
1331         function, broken out from ...
1332         (fixup_signed_type): ... here and ...
1333         (fixup_unsigned_type): ... here.
1334
1335 2003-07-28  Zack Weinberg  <zack@codesourcery.com>
1336
1337         * c-decl.c: Update commentary, adjust blank lines throughout.
1338         (struct c_scope): Fix indentation.  Reorder members so
1339         outer-context pointers come first, booleans last.
1340         (duplicate_decls, define_label): Use a 'locus' variable for
1341         diagnostic locations in a few more places.
1342         (warn_if_shadowing): Un-split a conditional that fits on one line.
1343         (c_init_decl_processing): No need to clear current_scope and
1344         current_function_scope.
1345         (start_decl): Merge if/else if statements with same action.
1346         (push_parm_decl): Rename old_immediate_size_expand to use
1347         save_foo convention; save/restore around entire function.
1348         (grokdeclarator): Remove unnecessary braces.
1349
1350 2003-07-28  Hans-Peter Nilsson  <hp@bitrange.com>
1351             Michael Culbertson  <Michael.J.Culbertson@wheaton.edu>
1352
1353         * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
1354         when warn_declaration_after_statement.  Call pedwarn_c90, not
1355         pedwarn.  Correct message: it's "ISO C90", not "ISO C89".
1356         * c-common.c (warn_declaration_after_statement): Define.
1357         * c-common.h (warn_declaration_after_statement): Declare.
1358         * c.opt (Wdeclaration-after-statement): New.
1359         * c-errors.c (pedwarn_c90): New function.
1360         * c-opts.c (c_common_handle_option) <case
1361         OPT_Wdeclaration_after_statement>: New.
1362         * c-tree.h (pedwarn_c90): Declare.
1363         * doc/invoke.texi (Option Summary): Document
1364         -Wdeclaration-after-statement.
1365         (Warning Options): Ditto.
1366
1367 Mon Jul 28 20:13:06 CEST 2003  Jan Hubicka  <jh@suse.cz>
1368
1369         * i386.md (memory attribute) Avoid accessing uninitialized memory
1370         for ishift1 type instructions.
1371
1372 2003-07-28  Jakub Jelinek  <jakub@redhat.com>
1373
1374         * configure.in (--enable-checking): Add fold category.
1375         (ENABLE_FOLD_CHECKING): Define if requested.
1376         * configure: Rebuilt.
1377         * config.in: Rebuilt.
1378         * doc/install.texi: Document it.
1379         * fold-const.c: Include md5.h.
1380         [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
1381         [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
1382         print_fold_checksum): New functions.
1383
1384         * fold-const.c (fold): Never modify argument passed to fold, instead
1385         change a copy and return it.
1386         * convert.c (convert_to_integer): Likewise.
1387
1388 2003-07-27  Nathanael Nerode  <neroden@gcc.gnu.org>
1389
1390         * fixinc/fixinc.svr4: Remove dead code.  Remove now-unnecessary
1391         cleanup of junk after #else and #endif directives.  Collapse repeated
1392         clauses into for statment.
1393
1394         * fixinc/fixincl.sh: GNU C -> GCC.  Add usage comment.
1395
1396 2003-07-27  Zack Weinberg  <zack@codesourcery.com>
1397
1398         * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
1399         (keep_next_if_subblocks): Rename next_is_function_body.
1400         (pushlevel): Adjust commentary.  Always set ->keep on the
1401         outermost level of a function.  Don't set ->keep_if_subblocks.
1402         (poplevel): Adjust commentary.  Don't look at ->keep_if_subblocks.
1403         (store_parm_decls): Adjust to match.
1404         (finish_function): Adjust to match.
1405         Call poplevel with all three arguments zero.
1406
1407         * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
1408         New functions split out of store_parm_decls.
1409         Avoid unnecessary work. Use local variables consistently.
1410         (store_parm_decls): Likewise.
1411
1412         (finish_function): No need to set functionbody flag on call to
1413         poplevel.
1414         (struct language_function): Remove scope field.
1415         (c_push_function_context, c_pop_function_context): No need to
1416         save and restore current_scope.
1417
1418 2003-07-27  Nathan Sidwell  <nathan@codesourcery.com>
1419
1420         * doc/extend.texi (Deprecated Features): Implicit typename is
1421         gone. Default args on types is going.
1422
1423 2003-07-26  J"orn Rennecke <joern.rennecke@superh.com>
1424
1425         * Makefile.in (ifcvt.o): Depend on target.h
1426         * ifcvt.c (target.h): Include.
1427         (if_convert): Don't call mark_loop_exit_edges if we can't
1428         modify jumps.
1429
1430 2003-07-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1431
1432         * doc/install.texi (Testing): Adjust required versions of DejaGnu.
1433
1434 2003-07-26  Richard Henderson  <rth@redhat.com>
1435
1436         PR inline-asm/11676
1437         * cse.c (count_reg_usage): Handle asm_operands properly.
1438
1439 2003-07-26  Roger Sayle  <roger@eyesopen.com>
1440
1441         * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
1442         (DEF_EXT_FALLBACK_BUILTIN): Delete.
1443         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
1444         the regular DEF_EXT_LIB_BUILTIN macro.
1445         (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
1446         the regular DEF_LIB_BUILTIN macro.
1447         (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
1448         BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
1449         BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
1450         DEF_EXT_LIB_BUILTIN macro.
1451
1452         * c-decl.c (duplicate_decls): Remove code to handle builtin
1453         functions prototyped without an argument list.
1454
1455 2003-07-26  Danny Smith  <dannysmith@users.sourceforge.net>
1456
1457         * config/i386/winnt.c: Revert 2003-07-08 change.
1458         (i386_pe_section_type_flags): Remove error_with_decl here too.
1459
1460 2003-07-26  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1461
1462         * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
1463         * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
1464         * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
1465         (v850_handle_data_area_attribute): Likewise.
1466
1467 2003-07-26  Geoffrey Keating  <geoffk@apple.com>
1468
1469         * varasm.c (output_constant_def_contents): Use
1470         ASM_DECLARE_CONSTANT_NAME if defined.
1471         * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
1472         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
1473         objects get at least one byte to prevent assembler problems.
1474         (ASM_DECLARE_CONSTANT_NAME): New.
1475
1476         * Makefile.in (libbackend.o): Remove options_.h.
1477         (mostlyclean): Likewise.
1478
1479         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
1480         insert a label at the end of an function under Mach-O.
1481
1482         * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
1483
1484 2003-07-25  Aldy Hernandez  <aldyh@redhat.com>
1485
1486         * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
1487         equality.
1488         (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
1489
1490         * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
1491
1492 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1493
1494         * doc/passes.texi (Passes): Mention pretty-printing and
1495         diagnostic files.
1496
1497 2003-07-25  Nathan Sidwell  <nathan@codesourcery.com>
1498
1499         * doc/extend.texi (Function Attributes): GNU C++ does now allow
1500         unused parameter decls.
1501         (Attribute Syntax): GNU C++ does not allow label attributes to be
1502         after the ':'.
1503
1504 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1505
1506         * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
1507         (objc_declare_class): Likewise.
1508         (error_with_ivar): Likewise.
1509         (start_class): Likewise.
1510         (warn_with_method): Likewise.
1511
1512 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1513
1514         Remove pedwarn_with_decl, warning_with_decl and error_with_decl
1515         from GCC.
1516         * calls.c (try_to_integrate): Don't use xxx_with_decl.
1517         (expand_call): Likewise.
1518         * dwarfout.c (output_reg_number): Likewise.
1519         * expr.c (expand_expr): Likewise.
1520         * function.c (assign_temp): Likewise.
1521         (uninitialized_vars_warning): Likewise.
1522         (setjmp_args_warning): Likewise.
1523         (expand_function_end): Likewise.
1524         * stmt.c (fixup_gotos): Likewise.
1525         (warn_about_unused_variables): Likewise.
1526         (expand_end_bindings): Likewise.
1527         * stor-layout.c (layout_decl): Likewise.
1528         (place_field): Likewise.
1529         * toplev.c (check_global_declarations): Likewise.
1530         (rest_of_handle_inlining): Likewise.
1531         (default_tree_printer): New function.
1532         (general_init): Initialize diagnostic machinery before routing
1533         signals to the ICE machinery.  Set default tree printer.
1534         * toplev.h (pedwarn_with_decl): Remove declaration.
1535         (warning_with_decl): Likewise.
1536         (error_with_decl): Likewise.
1537         (pedwarn): Remove attribute for the time being.
1538         * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
1539         * varasm.c (named_section): Likewise.
1540         (make_decl_rtl): Likewise.
1541         (assemble_variable): Likewise.
1542         (merge_weak): Likewise.
1543         (declare_weak): Likewise.
1544
1545         * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
1546         * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
1547         (format_with_decl): Remove.
1548         (diagnostic_for_decl): Likewise.
1549         (pedwarn_with_decl): Likewise.
1550         (warning_with_decl): Likewise.
1551         (error_with_decl): Likewise.
1552         (diagnostic_initialize): Adjust.
1553         (diagnostic_count_diagnostic): Likewise.
1554         (announce_function): Likewise.
1555         (lhd_print_error_function): Likewise.
1556         (diagnostic_report_current_module): Likewise.
1557         (default_diagnostic_starter): Likewise.
1558         (diagnostic_report_diagnostic): Likewise.
1559         (default_diagnostic_finalizer): Likewise.
1560         (verbatim): Likewise.
1561         (error): Likewise.
1562         (warning): Likewise.
1563         * opts.c (common_handle_option): Likewise.
1564         * pretty-print.c: New file.
1565         * c-pretty-print.h (pp_base): Override.
1566         * c-pretty-print.c: Adjust use of macros throughout.
1567         (pp_buffer): New macro.
1568         (pp_newline): Likewise.
1569         * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
1570         * Makefile.in (DIAGNOSTIC_H): New variable.
1571         (c-errors.o): Use it.
1572         (c-objc-common.o): Likewise.
1573         (c-common.o): Likewise.
1574         (c-opts.o): Likewise.
1575         (c-format.o): Likewise.
1576         (diagnostic.o): Likewise.
1577         (opts.o): Likewise.
1578         (toplev.o): Likewise.
1579         (rtl-error.o): Likewise.
1580         (dwarf2out.o): Likewise.
1581         (jump.o): Likewise.
1582         (pretty-print.o): New rule.
1583
1584 2003-07-24  Roger Sayle  <roger@eyesopen.com>
1585
1586         * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
1587         front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
1588         (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
1589         from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
1590         (DEF_FRONT_END_LIB_BUILTIN): Delete.
1591         (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
1592         (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
1593
1594         * builtins.c (build_string_literal): New function to construct
1595         a char* pointer to a string literal.
1596         (expand_builtin_fputs): Change 2nd argument from "int ignore" to
1597         "rtx target" to be consistent with other expand_builtin_* functions.
1598         Change 3rd argument from "int unlocked" to "bool unlocked".
1599         (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
1600         c-common.c to avoid front-end dependencies.  Optimize printf("")
1601         as a no-op when the result isn't required.  Handle embedded NULs
1602         in format string.
1603         (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
1604         from c-common.c to avoid front-end dependencies.  Likewise, optimize
1605         fprintf(fp,"") as a no-op when the result isn't required, evaluating
1606         fp for side-effects.  Handle embedded NULs in format string.
1607         (expand_builtin_sprintf): Fix typo.
1608         (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
1609         optimizing.  Adjust calls of expand_builtin_fputs to match the API
1610         change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
1611         expand_builtin_printf.  Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
1612         and BUILT_IN_FPRINTF using expand_builtin_fprintf.
1613
1614         * c-common.c (is_valid_printf_arglist): Delete.
1615         (c_expand_builtin): Delete.
1616         (c_expand_builtin_printf): Moved to builtins.c. Delete.
1617         (c_expand_builtin_fprintf): Moved to builtins.c.  Delete.
1618         (c_expand_expr): No longer treat CALL_EXPRs specially.
1619         (CALLED_AS_BUILT_IN): Delete.
1620
1621 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1622
1623         PR optimization/11631
1624         * gcse.c (store_motion): Connect infinite loops to exit.
1625
1626 2003-07-24  Jason Merrill  <jason@redhat.com>
1627
1628         * tree.h (boolean_type_node): Move from C/C++/Java frontends.
1629         (boolean_true_node, boolean_false_node): Likewise.
1630         (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
1631         * tree.c (build_common_tree_nodes): Init boolean_type_node.
1632         (build_common_tree_nodes_2): Init boolean_{true,false}_node.
1633         * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
1634         * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
1635         (truthvalue_true_node): Renamed from boolean_true_node.
1636         (truthvalue_false_node): Renamed from boolean_false_node.
1637         * c-decl.c: Just set truthvalue_* to integer_*.
1638         * c-*.[ch]: s/boolean/truthvalue/.  s/c_bool/boolean/.
1639
1640 2003-07-24  Roger Sayle  <roger@eyesopen.com>
1641
1642         * c-decl.c (match_builtin_function_types): New subroutine of
1643         duplicate_decls to test whether a redeclaration of a builtin
1644         function is suitably close, i.e. the return type and all of
1645         the argument types have the same modes as the builtin expects.
1646         (duplicate_decls): Fuzzy type matching for builtin functions
1647         moved to match_builtin_function_types.
1648
1649 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1650
1651         * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
1652         flag correctly.
1653
1654 2003-07-24  Zack Weinberg  <zack@codesourcery.com>
1655
1656         * c-decl.c: Search-and-replace change 'binding level' to
1657         'scope' in commentary.
1658         (struct binding_level): Now struct c_scope.
1659         (current_binding_level): Now current_scope.
1660         (free_binding_level): Now scope_freelist.
1661         (current_function_level): Now current_function_scope.
1662         (global_binding_level): Now global_scope.
1663         (make_binding_level): Now make_scope.
1664         (pop_binding_level): Now pop_scope.
1665
1666 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1667
1668         * configure.in (libgcc_visibility): Add missing whitespace.
1669
1670 2003-07-24  Richard Henderson  <rth@redhat.com>
1671
1672         * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
1673         __gcc_personality_v0.
1674
1675 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1676
1677         * Makefile.in: Replace pwd by ${PWD_COMMAND}.
1678
1679 2003-07-24  Nathan Sidwell  <nathan@codesourcery.com>
1680
1681         * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
1682         documentation missed from my 2003-07-09 patch.
1683
1684 2003-07-24  Nathanael Nerode  <neroden@gcc.gnu.org>
1685
1686         * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
1687         it's not provided.
1688         * configure: Rebuild.
1689
1690 2003-07-24  Steven Bosscher  <steven@gcc.gnu.org>
1691
1692         PR c/10602
1693         * c-typeck.c (type_lists_compatible_p): Do not compare
1694         arguments if one of them is an error_mark_node
1695
1696 2003-07-24  Alan Modra  <amodra@bigpond.net.au>
1697
1698         * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
1699         if current_function_calls_eh_return.
1700
1701 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
1702
1703         * doc/c-tree.texi (OFFSET_TYPE): Update description.
1704
1705 2003-07-23  Bob Wilson  <bob.wilson@acm.org>
1706
1707         * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
1708         * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
1709         __umodsi3, __modsi3): Increase frame size to 32.
1710
1711 2003-07-23  Geoffrey Keating  <geoffk@apple.com>
1712
1713         * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
1714         prototype.
1715
1716 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
1717
1718         * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
1719
1720         PR optimization/10679
1721         * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
1722
1723 2003-07-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1724
1725         PR target/11607 and PR target/11516
1726         * pa.md (extzv, extv, insv): Revert latter half of last patch.
1727
1728 2003-07-22  Mark Mitchell  <mark@codesourcery.com>
1729
1730         * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
1731         * varasam.c (output_constant): Likewise.
1732
1733 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
1734
1735         * alias.c: Fix comment formatting.
1736         * c-common.c: Likewise.
1737         * c-decl.c: Likewise.
1738         * c-opts.c: Likewise.
1739         * combine.c: Likewise.
1740         * cpplib.c: Likewise.
1741         * diagnostic.c: Likewise.
1742         * dojump.c: Likewise.
1743         * final.c: Likewise.
1744         * fold-const.c: Likewise.
1745         * gcc.c: Likewise.
1746         * gcse.c: Likewise.
1747         * ggc-page.c: Likewise.
1748         * jump.c: Likewise.
1749         * loop.c: Likewise.
1750         * mips-tfile.c: Likewise.
1751         * recog.c: Likewise.
1752         * regclass.c: Likewise.
1753         * regmove.c: Likewise.
1754         * tree.c: Likewise.
1755         * tree.h: Likewise.
1756
1757 2003-07-22  Per Bothner  <pbothner@apple.com>
1758
1759         * line-map.c (add_line_map):  Handle invalid LEAVE request.
1760         Fixes PR preprocessor/11361.
1761
1762 2003-07-22  Per Bothner  <pbothner@apple.com>
1763
1764         * diagnostic.c.(diagnostic_report_current_module):  Update to match
1765         2003-06-05 changes to push_srcloc and pop_srcloc.
1766
1767 2003-07-22  Wolfgang Bangerth  <bangerth@dealii.org>
1768
1769         * doc/trouble.texi: Better document two-stage name lookup.
1770
1771 2003-07-22  Eric Christopher <echristo@redhat.com>
1772
1773         * config/s390.c (s390_valid_pointer_mode): New.
1774         (TARGET_VALID_POINTER_MODE): Use.
1775         (s390_emit_prologue): Add tpf profiling hooks.
1776         (s390_emit_epilogue): Ditto.
1777         * config/s390.h (MASK_TPF): New.
1778         (TARGET_TPF): Use.
1779         (POINTERS_EXTEND_UNSIGNED): Define.
1780         * config/s390.md (ptr_extend): New pattern.
1781
1782 2003-07-22  Zack Weinberg  <zack@codesourcery.com>
1783
1784         * hashtable.c (approx_sqrt): Make static.
1785         * hashtable.h: Don't prototype approx_sqrt.
1786         * line-map.c (init_line_maps): Rename linemap_init.
1787         (free_line_maps): Rename linemap_free.
1788         (add_line_map): Rename linemap_add.
1789         (lookup_line): Rename linemap_lookup.
1790         (print_containing_files): Rename linemap_print_containing_files.
1791         * linemap.h: Update to match.
1792
1793         * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
1794         linemap routines to use new names.
1795
1796 2003-07-16  Nathan Sidwell  <nathan@codesourcery.com>
1797
1798         * c-common.c (handle_packed_attribute): Don't pack a struct via a
1799         typedef. Propagate packedness from a main variant.
1800
1801 2003-07-22  Nathanael Nerode  <neroden@gcc.gnu.org>
1802
1803         * Makefile.in (install-common): Add dependency on installdirs.
1804
1805 2003-07-21  Alexandre Oliva  <aoliva@redhat.com>
1806
1807         * c-common.c (c_common_type_for_mode): Return integer types for
1808         pointer modes.
1809
1810 2003-07-22  Geoffrey Keating  <geoffk@apple.com>
1811
1812         * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
1813         (finish_decl): Call maybe_apply_pragma_weak here.
1814         (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
1815         TREE_PUBLIC and TREE_STATIC are decided.
1816         (start_function): Move call to maybe_apply_pragma_weak.  Check that
1817         DECL_ASSEMBLER_NAME isn't set too early.
1818
1819         * cpplex.c (_cpp_process_line_notes): Mention option name in
1820         trigraphs warning.
1821
1822 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
1823
1824         * combine.c (if_then_else_cond): Simplify the comparison of
1825         rtx against -1, 0, and 1.
1826         * loop.c (check_dbra_loop): Likewise.
1827         * optabs.c (emit_conditional_move): Likewise.
1828         (emit_conditional_add): Likewise.
1829         * config/i386/i386.md (*movsi_or): Likewise.
1830         (*movdi_or_rex6): Likewise.
1831
1832 Tue Jul 22 00:42:12 CEST 2003  Jan Hubicka  <jh@suse.cz>
1833
1834         * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
1835
1836 2003-07-21  Neil Booth  <neil@daikokuya.co.uk>
1837
1838         * cppfiles.c (open_file_pch): Don't put unused entries in the
1839         splay tree.  Remove dead code.
1840
1841 2003-07-21  Geoffrey Keating  <geoffk@apple.com>
1842
1843         * c-common.h (num_in_fnames): Declare.
1844         (c_static_assembler_name): Move from here...
1845         * c-tree.h (c_static_assembler_name): ... to here.
1846         * c-opts.c: Don't include langhooks-def.h.
1847         (c_static_assembler_name): Move to c-decl.c.
1848         (num_in_fnames): Make externally visible.
1849         * c-decl.c: Include langhooks-def.h.
1850         (c_static_assembler_name): Move from c-opts.c.
1851         * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
1852         (c-opts.o): Remove $(LANGHOOKS_DEF_H).
1853
1854         * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
1855         when it's not needed.
1856
1857 2003-07-21  Jakub Jelinek  <jakub@redhat.com>
1858
1859         * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
1860         * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
1861         (rs6000_emit_prologue): Save FPRs inline if set.
1862
1863 2003-07-21  H.J. Lu <hongjiu.lu@intel.com>
1864
1865         * config/ia64/ia64.md (prefetch): Support predicate.
1866
1867 2003-07-21  Josef Zlomek  <zlomekj@suse.cz>
1868
1869         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
1870         * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
1871         table.
1872
1873 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
1874
1875         PR optimization/11536
1876         * unroll.c (loop_iterations): Do not replace a register holding
1877         the final value by its equivalent before the loop if it is not
1878         invariant.
1879
1880 2003-07-21  Dave Fluri  <dave.fluri@onlink.net>
1881
1882         * doc/extend.texi: Fixes to spelling, grammar, and diction.
1883
1884 2003-07-21  Ben Elliston  <bje@wasabisystems.com>
1885
1886         * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
1887         (V850 Options): Spelling fixes.
1888
1889 2003-07-20  Lisa M. Goldstein  <opus@gnu.org>
1890
1891         * doc/invoke.texi: Fixes to style, grammar and diction.
1892
1893 2003-07-20  Roger Sayle  <roger@eyesopen.com>
1894
1895         * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
1896         * system.h (SMALL_STACK): Poison obsolete target macro.
1897         * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
1898
1899 2003-07-20  Phil Edwards  <pme@gcc.gnu.org>
1900
1901         * configure.in:  Cache the results of testing for cmp's capabilities.
1902         * configure:  Regenerate.
1903
1904 2003-07-20  Mark Mitchell  <mark@codesourcery.com>
1905
1906         PR debug/11279
1907         * dwarf2out.c (gen_enumeration_type_die): Remember that
1908         enumerators can be unsigned.
1909
1910 2003-07-19  Zack Weinberg  <zack@codesourcery.com>
1911
1912         * c-decl.c (named_labels, shadowed_labels, label_level_chain)
1913         (push_label_level, pop_label_level): Kill.
1914         (struct binding_level): Rename level_chain to outer.
1915         Add outer_function field.  Change parm_flag, function_body,
1916         keep, keep_if_subblocks to 1-bit bitfields of type bool.
1917         (current_function_level): New variable.
1918         (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
1919         (keep_next_level, declare_parm_level, warn_if_shadowing):
1920         Update to match.
1921         (struct language_function): Kill named_labels, shadowed_labels fields.
1922         (c_init_decl_processing, start_function, c_push__function_context)
1923         (c_pop_function_context): No need to muck with named_labels nor
1924         shadowed_labels.
1925
1926         (make_binding_level): No need to clear the structure here.
1927         (pop_binding_level): Always operate on current_binding_level.
1928         Update current_function_level if necessary.
1929         (pushlevel): Don't clear named_labels.  Update current_function_level
1930         if necessary.  Use "true" and "false" where appropriate.
1931         (poplevel): Diagnose labels defined but not used, or vice
1932         versa, and clear out label-meanings leaving scope, while
1933         walking down the decls list, for all binding levels.
1934         Handle LABEL_DECLs appearing in the shadowed list.
1935         pop_binding_level takes no arguments.
1936         (pushdecl_function_level): Use current_function_level.
1937
1938         (make_label, bind_label): New static functions.
1939         (declare_label): New exported function.
1940         (lookup_label, define_label): Rewritten for new data structure.
1941         (shadow_label): Kill.
1942
1943         * c-tree.h: Prototype declare_label; don't prototype
1944         push_label_level, pop_label_level, nor shadow_label.
1945         * c-parse.in: Remove all calls to push_label_level and
1946         pop_label_level.  Use declare_label for __label__ decls.
1947
1948         * doc/extend.texi: Clarify that __label__ can be used to
1949         declare labels with local scope in any nested block, not
1950         just statement expressions.  Cross-reference nested functions
1951         section from local labels section.
1952
1953 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1954
1955         * sched-rgn.c (find_rgns): Initialize current_edge correctly.
1956
1957 2003-07-19  Phil Edwards  <pme@gcc.gnu.org>
1958
1959         * doc/makefile.texi (restrap, profiledbootstrap):  Document targets.
1960
1961 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1962
1963         * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
1964         fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
1965
1966 2003-07-19  Ulrich Weigand  <uweigand@de.ibm.com>
1967
1968         * config/s390/s390.c (legitimize_pic_address): Access local symbols
1969         relative to the GOT instead of relative to the literal pool base.
1970         (s390_output_symbolic_const): Handle new GOT-relative accesses.
1971         * config/s390/s390.md ("call"): Access local functions and PLT stubs
1972         relative to the GOT instead of relative to the literal pool base.
1973         ("call_value"): Likewise.
1974         ("call_value_tls"): Likewise.
1975
1976         * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
1977         reloading.  Support LTREL_BASE / LTREL_OFFSET construct.
1978         (s390_chunkify_finish): Likewise.
1979         (s390_chunkify_cancel): Likewise.
1980         (s390_reorg): Adapt caller.
1981         (find_base_register_in_addr,
1982         find_base_register_ref, replace_base_register_ref): Delete.
1983         (find_ltrel_base, replace_ltrel_base): New functions.
1984         (find_constant_pool_ref): Handle LTREL_BASE unspecs.
1985         (s390_decompose_address): Handle LTREL_BASE unspecs.  Optimize
1986         base vs. index register usage.
1987         (struct constant_pool): Remove 'anchor'.
1988         (s390_add_anchor): Delete.
1989         (s390_dump_pool): Remove anchor handling.
1990         * config/s390/s390.md ("reload_anchor"): Remove.
1991
1992         * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
1993         (s390_load_got): New function.  Use LTREL_BASE/OFFSET.
1994         (s390_emit_prologue): Use it.
1995         * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
1996         "builtin_setjmp_receiver"): Cleanup.  Use s390_load_got.  Do not
1997         hard-code register 14.
1998         * config/s390/s390-protos.h (s390_load_got): Declare.
1999
2000         * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
2001         Support TImode constants.
2002         * config/s390/s390.md ("consttable_ti"): New.
2003         ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
2004
2005         * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
2006         UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
2007         UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
2008         UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
2009         UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
2010         New symbolic constants.
2011         ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
2012         "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
2013         "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
2014         "pool", "literal_pool_31", "literal_pool_64"): Cleanup.  Use
2015         symbolic UNSPEC values.
2016         * config/s390/s390.c (larl_operand, s390_short_displacement,
2017         bras_sym_operand, s390_cannot_force_const_mem,
2018         s390_delegitimize_address, s390_decompose_address,
2019         legitimize_pic_address, s390_output_symbolic_const,
2020         s390_function_profiler): Use symbolic UNSPEC values.
2021
2022 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2023
2024         * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
2025         c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
2026         c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
2027         collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
2028         cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
2029         cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
2030         dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
2031         fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
2032         gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
2033         genemit.c genextract.c genoutput.c genrecog.c gensupport.c
2034         ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
2035         integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
2036         loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
2037         postreload.c prefix.c print-tree.c protoize.c ra-build.c
2038         ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
2039         regmove.c regrename.c reload.c reload1.c reorg.c resource.c
2040         sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
2041         simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
2042         tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
2043         varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
2044         casts.
2045
2046 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2047
2048         * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
2049         * toplev.h (warning): Remove attribute.
2050
2051 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2052
2053         * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
2054         (pop_label_level): Likewise.
2055         (duplicate_decls): Likewise.
2056         (implicitly_declare): Likewise.
2057         (shadow_label): Likewise.
2058         (start_decl): Likewise.
2059         (finish_decl): Likewise.
2060         (grokdeclarator): Likewise.
2061         (get_parm_info): Likewise.
2062         (detect_field_duplicates): Likewise.
2063         (finish_struct): Likewise.
2064         (start_function): Likewise.
2065         (store_parm_decls): Likewise.
2066         (finish_function): Likewise.
2067         (c_expand_body_1): Likewise.
2068         (check_for_loop_decls): Likewise.
2069         (merge_translation_unit_decls): Likewise.
2070
2071 2003-07-19  Neil Booth  <neil@daikokuya.co.uk>
2072
2073         * common.opt:  Document --param.
2074         * opts.c (columns, undocumented_msg): New.
2075         (print_help): Get number of columns from environment.  Print
2076         --param help.  Tweak newline handling.
2077         (print_param_help): New.
2078         (print_filtered_help): Better handling of duplicates.  Complain
2079         about undocumented switches.
2080         (print_switch): New.
2081         (wrap_help): Improve wrapping, use COLUMNS.
2082         * opts.sh: Ignore comments in records.
2083         * params.def: Fix typos and remove trailing periods.
2084         * toplev.c (display_help): Don't dump --param help.
2085         * doc/sourcebuild.texi: Update.
2086
2087 2003-07-18  Richard Henderson  <rth@redhat.com>
2088
2089         PR target/11556
2090         * optabs.c (prepare_operand): Fail gracefully instead of abort
2091         if the predicate doesn't satisfy.
2092         (gen_cond_trap): Allow prepare_operand to fail.
2093
2094 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2095
2096         * c-common.c: Don't undefine GCC_DIAG_STYLE.
2097         (fname_decl): Don't use xxx_with_decl.
2098         (c_add_case_label): Likewise.
2099         (handle_section_attribute): Likewise.
2100         (handle_alias_attribute): Likewise.
2101         (handle_no_instrument_function_attribute): Likewise.
2102         (handle_no_limit_stack_attribute): Likewise.
2103         * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
2104         * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
2105
2106 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2107
2108         * Makefile.in (ifcvt.o): Add cfgloop.h.
2109         * basic-block.h (EDGE_LOOP_EXIT): New flag.
2110         * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
2111         * ifcvt.c: Include cfgloop.h.
2112         (mark_loop_exit_edges): New static function.
2113         (if_convert): Call it.
2114         (find_if_header): Ignore branches out of loops.
2115
2116 2003-07-18  Kazu Hirata  <kazu@cs.umass.edu>
2117
2118         * combine.c (simplify_comparison): Don't share rtx when converting
2119         (ne (and (not X) 1) 0) to (eq (and X 1) 0).
2120
2121 2003-07-18  David Edelsohn  <edelsohn@gnu.org>
2122
2123         * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
2124         (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
2125         (MUST_PASS_IN_STACK): Define.
2126         (BLOCK_REG_PADDING): Define.
2127
2128 2003-07-18  Richard Henderson  <rth@redhat.com>
2129
2130         * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
2131         to skip the addr_vec.
2132
2133 Fri Jul 18 15:22:28 2003  Alexandre Oliva  <aoliva@redhat.com>
2134
2135         * combine.c (combinable_i3pat): Don't forbid occurrences of
2136         i2dest or i1dest in inner_dest if inner_dest is a mem.
2137
2138 Fri Jul 18 17:05:57 CEST 2003  Jan Hubicka  <jh@suse.cz>
2139
2140         * cgraph.c (cgraph_remove_node): Clear the hash table slot.
2141
2142 2003-07-17  Jakub Jelinek  <jakub@redhat.com>
2143
2144         PR target/11087
2145         * loop.c (basic_induction_var): Check if convert_modes emitted any
2146         instructions. Remove them and return 0 if so.
2147
2148 2003-07-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
2149
2150         PR optimization/11083
2151         * toplev.c (rest_of_handle_addresof): Rename into
2152         rest_of_handle_addressof.  Delete unreachable blocks
2153         if dead edges were purged after the addressof pass.
2154
2155 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
2156
2157         * Makefile.in, configure, configure.in: Remove handling of
2158         lang-options.h and options_.h.
2159         * toplev.c (struct lang_opt, documented_lang_options): Remove.
2160         (display_help): Don't use documented_lang_options.
2161
2162 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
2163
2164         * c-decl.c (pushdecl_function_level): Make static, return nothing.
2165         (kept_level_p): Fold into poplevel.
2166         (undeclared_variable): Moved here from c-typeck.c.  Export.
2167         * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
2168         (undeclared_variable): Prototype here.  Don't prototype
2169         kept_level_p nor pushdecl_function_level.
2170         * c-parse.in: Change first argument to poplevel from
2171         "kept_level_p()" to "KEEP_MAYBE".
2172         * c-typeck.c (undeclared_variable): Moved to c-decl.c.
2173
2174 2003-07-17  Roger Sayle  <roger@eyesopen.com>
2175
2176         * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
2177         commutative operands instead of modifying the RTL in-place.
2178
2179 2003-07-17  Mark Mitchell  <mark@codesourcery.com>
2180
2181         PR optimization/11557
2182         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
2183         unless we know which function is being called.
2184
2185 2003-07-17  Roger Sayle  <roger@eyesopen.com>
2186
2187         * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
2188         whether to reorder the operands of a commutative binary operator.
2189
2190 2003-07-17  Roger Sayle  <roger@eyesopen.com>
2191
2192         * fold-const.c (const_binop): Avoid performing the FP operation at
2193         compile-time, if either operand is NaN and we honor signaling NaNs,
2194         or if we're dividing by zero and either flag_trapping_math is set
2195         or the desired mode doesn't support infinities.
2196         (fold_initializer): New function to fold an expression ignoring any
2197         potential run-time exceptions or traps.
2198         * tree.h (fold_initializer): Prototype here.
2199         * c-typeck.c (build_binary_op): Move to the end of the file so
2200         that intializer_stack is in scope.  If constructing an initializer,
2201         i.e. when initializer_stack is not NULL, use fold_initializer to
2202         fold expressions.
2203         * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
2204         performing FP operations at compile-time, if they would raise an
2205         exception at run-time.
2206
2207 2003-07-17  Geoffrey Keating  <geoffk@apple.com>
2208
2209         PR 11498
2210         * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
2211         (langhooks.o): Add $(GGC_H), gt-langhooks.h.
2212         (GTFILES): Add langhooks.c.
2213         (gt-langhooks.h): New.
2214         * c-common.h (c_static_assembler_name): Prototype.
2215         * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
2216         * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
2217         * c-opts.c: Include langhooks-def.h.
2218         (c_static_assembler_name): New.
2219         * langhooks.c: Include ggc.h.  Include gt-langhooks.h.
2220         (var_labelno): New.
2221         (lhd_set_decl_assembler_name): Give static objects with context
2222         unique names.
2223         * varasm.c (var_labelno): Delete.
2224         (make_decl_rtl): Don't change the assembler name once it's set.
2225
2226         * c-opts.c (this_input_filename): New.
2227         (finish_options): Take new parameter, name of file being compiled.
2228         Update callers.  Set this_input_filename.
2229         (push_command_line_include): Use this_input_filename not
2230         main_input_filename.
2231
2232 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
2233
2234         * Makefile.in: Depend .pot generation on options.c.
2235         * po/exgettext: Add an extra_files variable containing additional
2236         files to scan.
2237
2238 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
2239
2240         * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
2241         c_write_global_declarations.
2242
2243         * c-decl.c: Fix typos in several comments.  Remove all
2244         #if 0 blocks; reindent as needed.  Remove unused argument
2245         to declare_parm_level; all callers changed.
2246         * c-parse.in: Update calls to declare_parm_level.  Avoid
2247         issuing a double warning in some circumstances.
2248         * c-typeck.c: Update calls to declare_parm_level.
2249         * c-tree.h: Update prototype of declare_parm_level.
2250
2251         * c-pragma.c (apply_pragma_weak): Don't complain about a
2252         redundant #pragma weak.
2253
2254         * objc/objc-act.c (forward_declare_categories,
2255         build_selector_reference_decl, build_class_reference_decl,
2256         build_objc_string_decl, synth_forward_declarations,
2257         build_protocol_reference): Set TREE_PUBLIC on synthetic
2258         forward decl to 0, consistent with eventual definition.
2259         Correct comments to match.
2260
2261         * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
2262         in regexp that don't form a range expression.
2263         * fixinc/fixincl.def: Regenerate.
2264
2265 2003-07-17  Richard Henderson  <rth@redhat.com>
2266
2267         PR target/10907
2268         * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
2269         even with !TARGET_CONST_GP.
2270         (ia64_function_ok_for_sibcall): Reject non-local functions.
2271
2272 2003-07-17  Steven Bosscher  <steven@gcc.gnu.org>
2273
2274         * c-common.c (c_estimate_num_insns_1): Don't handle
2275         METHOD_CALL_EXPR.
2276         * expr.c (safe_from_p): Likewise.
2277         * gengtype.c (adjust_field_tree_exp): Likewise.
2278         * stmt.c (warn_if_unused_value): Likewise
2279         * tree.c (first_rtl_op): Likewise.
2280         * tree.def: Don't define METHOD_CALL_EXPR.
2281         * java/lang.c (java_estimate_num_insns_1): Don't handle
2282         METHOD_CALL_EXPR.
2283
2284 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
2285
2286         PR other/11466
2287         * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
2288         and its restrictions for the SPARC64 port.
2289         Move the entry of "-mimpure-text" before that of "-mv8".
2290
2291 2003-07-17  Eric Botcazou <ebotcazou@libertysurf.fr>
2292             Phil Edwards <phil@jaj.com>
2293
2294         * doc/install.texi (*-*-solaris2*): Document the step-by-step
2295         procedure to bootstrap and install.
2296         Document the preference for the legacy Sun tools in /usr/bin
2297         over the POSIX tools in /usr/xpg4/bin for the build process.
2298
2299 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
2300
2301         * c.opt: Document Uncodumented; use it.  Document ObjC options.
2302         * opts.c (print_filtered_help): Skip undocumented switches.
2303         * opts.h (CL_UNDOCUMENTED): New.
2304         * opts.sh: Handle Undocumented.
2305         * toplev.c (documented_lang_options): Prevent its becoming empty.
2306 objc:
2307         * lang-options.h: Remove.
2308
2309 2003-07-16  Ulrich Weigand  <uweigand@de.ibm.com>
2310
2311         * loop.c (check_ext_dependent_givs): Pass const struct loop *
2312         instead of struct loop_info * as argument.  Accept BIVs with
2313         increment +/- 1 provided there is a friendly exit test against
2314         a loop-invariant value.
2315         (strength_reduce): Adapt call to check_ext_dependent_givs.
2316
2317 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
2318             Con Bradley <con.bradley@superh.com>
2319
2320         * sh-protos.h (sh_get_pr_initial_val): Declare.
2321         * sh.c (regno_reg_class): Make its elements type enum reg_class.
2322         (output_stack_adjust): Remove emit_fn argument.  Add epilogue_p
2323         and live_regs_mask arguments.  Changed all callers.
2324         (save_schedule_s): New structure.
2325         (save_schedule): New typedef.
2326         (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
2327         (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
2328         In interrupts handlers, also save registers that are usually
2329         partially saved, and make sure there is at least one general purpose
2330         register saved if a target register needs saving.
2331         Add casts in comparisons to avoid warnings.
2332         (sh_media_register_for_return): return -1 for interrupt handlers.
2333         (MAX_SAVED_REGS, MAX_TEMPS): New defines.
2334         (sh_expand_prologue): Use sh5_schedule_saves.  Check that any temp
2335         registers used are available.
2336         Set RTX_FRAME_RELATED_P where appropriate.
2337         Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
2338         (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
2339         (initial_elimination_offset): Likewise.
2340         * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
2341         (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
2342         (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
2343         (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
2344         (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
2345         and for target registers.
2346         (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
2347         (regno_reg_class): Make its elements type enum reg_class.
2348         (CONSTRAINT_LEN): Don't use isdigit.
2349         (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
2350         (FUNCTION_ARG): Add parentheses to avoid warnings.
2351         (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
2352         (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
2353         (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
2354         (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
2355         * sh.md (xordi3+1): Remove unused variable regno.
2356         (return_media): Check that tr0 is available before using it.
2357
2358 2003-07-16  Neil Booth  <neil@daikokuya.co.uk>
2359
2360         * c.opt: Document more options.
2361
2362 2003-07-16  Roger Sayle  <roger@eyesopen.com>
2363
2364         * combine.c (subst): Also handle (subreg (const_double ...)) case
2365         if created by a substitution, by using the original inner mode.
2366
2367 2003-07-16  Roger Sayle  <roger@eyesopen.com>
2368
2369         * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
2370         to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
2371         (simplify_rtx): Likewise.  Simplify (lo_sum (high X) X) as X.
2372
2373 2003-07-16  Andrew Pinski  <pinskia@physics.uc.edu>
2374
2375         * doc/install.texi (--without-headers): New.
2376
2377         Partial Fix PR/10129
2378         * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
2379         (machopic_output_function_base_name): New; print the true pic label.
2380         (machopic_classify_ident): Pic Base is always a defined data.
2381         * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
2382         * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
2383
2384         * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
2385         if they are not floating point registers.
2386
2387         PR c/10962
2388         * ggc.h: Add header guards.
2389         * c-decl.c (finish_struct): Sort fields if
2390         number greater than 15 and there are no
2391         anonymous structs/unions.
2392         * c-common.h: Include ggc.h.
2393         (sorted_fields_type): New struct.
2394         (field_decl_cmp): New prototype.
2395         (resort_sorted_fields): New prototype.
2396         (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
2397         * c-tree.h: (lang_type): Use pointer to sorted_fields_type
2398         as s, removing other fields.
2399         * c-typeck.c (lookup_field): Use s in lang_type.
2400         These were mostly moved from cp/class.c:
2401         * c-common.c (field_decl_cmp): New static function.
2402         (field_decl_cmp): New function.
2403         (resort_sorted_fields): New function.
2404
2405 2003-07-16  Geoffrey Keating  <geoffk@apple.com>
2406
2407         * config/darwin.c (machopic_select_section): Use decl_readonly_section
2408         to do most of the work.
2409
2410 2003-07-16  Hans-Peter Nilsson  <hp@bitrange.com>
2411
2412         * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
2413         * config/mmix/mmix.c: Convert functions to ISO C90.
2414         (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
2415         formatting.
2416         (mmix_get_hard_reg_initial_val): Tweak section head comment.
2417
2418 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
2419
2420         * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
2421
2422 2003-07-16  Jakub Jelinek  <jakub@redhat.com>
2423
2424         * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
2425         (uw_update_context_1): Use it.
2426         * config/rs6000/rs6000.c (insn_after_throw): Remove.
2427         (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
2428         in parent frame if _Unwind_* called directly instead of through
2429         .plt.
2430         (rs6000_emit_eh_toc_restore): Remove.
2431         (rs6000_emit_prologue): Update stack pointer before doing any saving
2432         if current_function_calls_eh_return.  Generate unwind info for $r2.
2433         (rs6000_emit_epilogue): Restore stack pointer after doing all
2434         restoring if current_function_calls_eh_return.  Restore $r2.
2435         * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
2436         * config/rs6000/rs6000.md (eh_return): Remove call to
2437         rs6000_emit_eh_toc_restore.
2438         * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
2439         * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
2440
2441 2003-07-15  Jakub Jelinek  <jakub@redhat.com>
2442
2443         * expr.c (emit_block_move): Don't move anything if size is const 0.
2444         (clear_storage): Test against const0_rtx instead of comparing INTVAL
2445         against 0.
2446
2447 2003-07-15  David S. Miller  <davem@redhat.com>
2448
2449         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
2450         emit nop if the last real insn is CALL_INSN.
2451
2452 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
2453
2454         * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
2455         as "nul".
2456         * config/i386/xm-mingw32.h: Change GNU CC to GCC.
2457
2458 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
2459
2460         * config/i386/winnt.c (associated_type): Artificial methods are not
2461         affected by the import/export status of their class unless they are
2462         COMDAT.
2463         (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
2464
2465         * config/i386/winnt.c: Fix GCC copyright comment.
2466
2467 2003-07-16  Gabriel Dos Reis  <gcc@integrable-solutions.net>
2468
2469         PR c++/11531
2470         * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
2471         not recursing on hard error.
2472         (diagnostic_for_decl): Likewise.
2473         * diagnostic.def: Rearrange.
2474
2475 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
2476
2477         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
2478         If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
2479
2480 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
2481             Richard Henderson  <rth@redhat.com>
2482
2483         * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
2484         to decide if to access a _Unwind_Ptr or a _Unwind_Word.
2485         (_Unwind_SetGR): Likewise.
2486         (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
2487         (Unwind_SpTmp): New typedef.
2488         (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
2489         (uw_update_context): Use _Unwind_GetPtr.
2490         (init_dwarf_reg_size_table): Move above uw_init_context_1.
2491         (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
2492         Use _Unwind_SetSpColumn.
2493         (uw_install_context_1): Don't initialize dwarf_reg_size_table.
2494         Use _Unwind_GetPtr.
2495
2496 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
2497
2498         * c.opt: Document more options.
2499         * toplev.c (documented_lang_options): Remove all local help strings.
2500
2501 2003-07-15  Mark Mitchell  <mark@codesourcery.com>
2502
2503         PR debug/11473
2504         * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
2505         base classes.
2506
2507 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
2508
2509         PR target/10795
2510         * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
2511         swap comparison operands if doing so would generate an
2512         unrecognizable insn.
2513
2514 2003-07-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
2515
2516         PR optimization/11320
2517         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
2518         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
2519         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
2520         current_sched_info->compute_jump_reg_dependencies. Record which
2521         registers are used and which registers are set by the jump.
2522         Clear deps->reg_conditional_sets after a barrier.
2523         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
2524         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
2525         (init_deps): Initialize reg_conditional_sets.
2526         (free_deps): Clear reg_conditional_sets.
2527         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
2528         Mark registers live on entry of the fallthrough block and conditionally
2529         set as set by the jump. Mark registers live on entry of non-fallthrough
2530         blocks as used by the jump.
2531         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
2532         Mark new parameters as unused.
2533
2534 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
2535
2536         * doc/invoke.texi: Resync MIPS -march documentation.
2537
2538 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
2539
2540         * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
2541         (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
2542         (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
2543         * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
2544         (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
2545         (mips_issue_rate): Handle PROCESSOR_R9000.
2546         (mips_use_dfa_pipeline_interface): Likewise.
2547         * config/mips/9000.md: New file.
2548         * config/mips/mips.md: Include it.
2549         (define_attr cpu): Add r9000.
2550         (mulsi3_mult3): Use "mul" for rm9000 code.
2551
2552 2003-07-15  Stan Cox  <scox@redhat.com>
2553
2554         * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
2555         (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
2556         (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
2557         * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
2558         (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
2559         (mips_issue_rate): Handle PROCESSOR_R7000.
2560         (mips_use_dfa_pipeline_interface): Likewise.
2561         * config/mips/7000.md: New file.
2562         * config/mips/mips.md: Include it.
2563         (define_attr cpu): Add r7000.
2564         (mulsi3_mult3): Use "mul" for rm7000 code.
2565
2566 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
2567
2568         * config/mips/mips.md (define_attr type): Add condmove.  Use it for
2569         the conditional move patterns.
2570         * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
2571         Check for condmove type.
2572         (ir_vr54_arith): Add move type.
2573         * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
2574         * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
2575
2576 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
2577
2578         * c-opts.c (print_help): Remove.
2579         (c_common_handle_option): Don't handle --help.
2580         * c.opt: Document some options.
2581         (--help): Remove.
2582         * opts.c (print_filtered_help): New.
2583         (print_help): Use it.
2584
2585 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
2586
2587         * c-common.c (c_common_type_for_mode): Handle V4DFmode.
2588         * tree.c: (build_common_tree_nodes_2): Likewise.
2589         * tree.h (enum tree_index): Add TI_V4DF_TYPE.
2590         (V4DF_type_node): New.
2591
2592         * c-opts.c (push_command_line_include): Don't free deferred_opts,
2593         we'll need it.
2594         (finish_options): Reset init_cursor.
2595
2596 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
2597
2598         * expr.c (expand_assignment): Remove an unused argument
2599         SUGGEST_REG.
2600         * expr.h: Update the prototype.
2601         * function.c: Update the callers.
2602         * stmt.c: Likewise.
2603
2604 2003-07-14  Mark Mitchell  <mark@codesourcery.com>
2605
2606         PR debug/11098
2607         * integrate.c (copy_decl_for_inlining): Do not mark copied decls
2608         as DECL_ABSTRACT.
2609
2610 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
2611
2612         * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
2613         with __cplusplus, not "we must use the C++ compiler's type"
2614         * fixinc/inclhack.def (void_null): Note that Interix needs this.
2615         * fixinc/fixincl.x: Regenerate.
2616
2617 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
2618
2619         * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
2620         and unseen_objects from the global data before calling
2621         __deregister_frame_info_bases.
2622         (examine_objects): Insert objects into the seen_objects list,
2623         not unseen_objects.
2624         (_Unwind_Find_FDE): Always unlock the global object lists, even if
2625         we couldn't allocate a data structure to put in it.
2626
2627         * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
2628         (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
2629         (SET_TYPE_PROTOCOL_LIST): New.
2630         * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
2631         (get_object_reference): Likewise.
2632
2633 Mon Jul 14 23:14:28 CEST 2003  Jan Hubicka  <jh@suse.cz>
2634
2635         * cfglayout.c (locator_file): Break out from ....
2636         (insn_file): ... here.
2637         (locator_line): Break out from ....
2638         (insn_line): ... here.
2639         * rtl.h (locator_file, locator_line): Declare.
2640         (final_start_function): Set proper line/file info.
2641
2642 2003-07-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2643
2644         * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
2645         handled by pp_c_cast_expression.
2646
2647 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
2648
2649         * config/mips/mips.c (mips_expand_prologue): Use a single insn to
2650         allocate 32768 bytes of stack.  Use addition rather than subtraction
2651         when a single insn is enough.
2652         * config/mips/mips.md: Remove insns and splitters for subtracting
2653         constants.
2654         (subsi3): Only accept register operands.
2655         (subsi3_internal): Likewise.  Use for TARGET_MIPS16 as well.
2656         (subdi3_internal_3, subsi3_internal_2): Likewise.
2657         (casesi): Use expand_binop to subtract the lower bound.
2658
2659 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
2660
2661         * config/mips/mips.c (mips_in_small_data_p): Don't handle
2662         TARGET_MIPS16 specially.
2663
2664 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
2665
2666         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
2667         mips_output_aligned_bss.
2668         * config/mips/linux.h: Likewise.
2669         * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
2670         * config/mips/mips.c (mips_output_aligned_bss): New function.
2671
2672         * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
2673         * config/mips/elf64.h: Likewise.
2674
2675         * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
2676         mips_declare_object_name.
2677         (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
2678         * config/mips/elf64.h: As for elf.h.
2679         * config/mips/iris6.h: Likewise.
2680         * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
2681         * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
2682         do...while (0) block.
2683         * config/mips/mips-protos.h (mips_declare_object_name): Declare.
2684         (mips_finish_declare_object): Declare.
2685         * config/mips/mips.c (mips_declare_object_name): New function.
2686         (mips_finish_declare_object): New function.
2687
2688         * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
2689         * config/mips/linux.h: Likewise.
2690
2691         * config/mips/mips.c (inside_function): Delete.
2692         (file_in_function_warning, ignore_line_number): Delete.
2693         (mips_output_filename): Don't warn about changing filenames within
2694         a function.
2695         (mips_output_lineno): Update accordingly.
2696         (mips_output_function_prologue): Don't reset the deleted variables.
2697         * config/mips/mips.h (inside_function): Delete.
2698         (file_in_function_warning, ignore_line_number): Delete.
2699
2700         * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
2701         * config/mips/elf64.h: Likewise.
2702         * config/mips/openbsd.h: Likewise.
2703         * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
2704         * config/mips/linux.h: Likewise.
2705         * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
2706         (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
2707
2708         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
2709         to the list of include files when using gas.
2710         (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
2711         * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
2712         * config/mips/elf64.h: Likewise.
2713         * config/mips/iris5.h: Likewise.
2714         * config/mips/linux.h: Likewise.
2715         * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
2716         * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
2717         (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
2718         * config/mips/sdb.h: ...this new file.
2719
2720 2003-07-14  Douglas Rupp  <rupp@gnat.com>
2721
2722         * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
2723         argument to getcwd; use fixed buffer instead.
2724
2725 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
2726
2727         * fixinc/mkfixinc.sh: Treat OpenBSD normally.
2728         * fixinc/fixinc.wrap: Delete.
2729
2730 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
2731
2732         * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
2733         don't have 2.
2734
2735 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
2736
2737         * ggc-page.c (struct globals): Add new fields to keep track of the
2738         total allocated memory and overhead.
2739         (ggc_print_statistics): Print them.
2740         (ggc_alloc): Keep track of the total allocated memory and the
2741         overhead.
2742
2743         * tree.c (dump_tree_statistics): Increase spacing.
2744         (enum tree_node_kind): Move to ...
2745         * tree.h (enum tree_node_kind): ... here.
2746         (tree_node_counts, tree_node_sizes): Declare.
2747
2748 2003-07-14  James A. Morrison  <ja2morri@student.math.uwaterloo.ca>
2749
2750         * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
2751
2752 2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2753
2754         PR optimization/11440
2755         * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
2756         SIGN_EXTRACT SETs.
2757
2758 2003-07-14  Alan Modra  <amodra@bigpond.net.au>
2759
2760         * doc/tm.texi (BLOCK_REG_PADDING): Describe.
2761         * expr.h (struct locate_and_pad_arg_data): Add where_pad.
2762         (emit_group_load, emit_group_store): Adjust declarations.
2763         Remove most occurrences of #ifdef TREE_CODE.
2764         * expr.c (emit_group_load): Add "type" param, and use
2765         BLOCK_REG_PADDING to determine need for a shift.  Optimize non-
2766         aligned accesses if !SLOW_UNALIGNED_ACCESS.
2767         (emit_group_store): Likewise.
2768         (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
2769         emit_group_load and emit_group_store calls.
2770         * calls.c (store_unaligned_arguments_into_pseudos): Tidy.  Use
2771         BLOCK_REG_PADDING to determine whether we need endian_correction.
2772         (load_register_parameters): Localize vars.  Handle shifting of
2773         small values to the correct end of regs.  Adjust emit_group_load
2774         call.
2775         (expand_call, emit_library_call_value_1): Adjust emit_group_load
2776         and emit_group_store calls.
2777         * function.c (assign_parms): Set mem alignment for stack slots.
2778         Adjust emit_group_store call.  Store values at the "wrong" end
2779         of regs to the stack.  Use BLOCK_REG_PADDING.
2780         (locate_and_pad_parm): Save where_pad.
2781         (expand_function_end): Adjust emit_group_load call.
2782         * stmt.c (expand_value_return): Adjust emit_group_load call.
2783         * Makefile.in (calls.o): Depend on $(OPTABS_H).
2784         * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
2785         (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
2786         (MUST_PASS_IN_STACK): Define.
2787         (BLOCK_REG_PADDING): Define.
2788         * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
2789         (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
2790         * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
2791         (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
2792         Act on AGGREGATES_PAD_UPWARD_ALWAYS.
2793
2794 2003-07-13  Aaron W. LaFramboise  <awlaframboise@aol.com>
2795
2796         * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
2797
2798 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2799
2800         * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
2801         both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
2802
2803 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
2804
2805         PR other/11123
2806         * toplev.c: Don't cut off option names.
2807
2808 2003-07-13  Andreas Jaeger  <aj@suse.de>
2809
2810         * c-decl.c (link_hash_hash): Avoid warning about casting pointer
2811         to integer of different size.
2812
2813 2003-07-13  Kazu Hirata  <kazu@cs.umass.edu>
2814
2815         * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
2816         to (eq (and X 1) 0).
2817
2818 2003-07-13  Andreas Jaeger  <aj@suse.de>
2819
2820         * config.gcc: Add pmmintrin.h for x86_64-*-*.
2821
2822 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
2823
2824         * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
2825         (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
2826         list.  Move these all together down by cpplib.
2827
2828         * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
2829         definition of CPPCHAR_SIGNED_T.
2830
2831         * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
2832         * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
2833         * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
2834
2835         * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
2836         * cppinit.c (cpp_create_reader): Likewise.
2837
2838         * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
2839         * cpptrad.c: Likewise.  All callers changed.
2840         * cpplib.c: All callers changed.
2841         * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
2842         * hashtable.h: Define GTY(x) to nothing here too.
2843
2844 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2845
2846         * stor-layout.c (compute_record_mode): Remove very obsolete test
2847         that forces BLKmode for records with fields crossing word boundary.
2848
2849 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
2850
2851         * Makefile.in: Remove orphan reference to acconfig.h.
2852
2853 2003-07-13  Andreas Jaeger  <aj@suse.de>
2854
2855         * cgraphunit.c: Convert prototypes to ISO C90.
2856
2857 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
2858
2859         * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
2860         (for OpenBSD).
2861         * fixinc/fixincl.x: Rebuild.
2862
2863 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
2864
2865         * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
2866         i?86-*-*.  Use correct name of cache variable.
2867         * configure: Regenerate.
2868
2869 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
2870
2871         * config/alpha/alpha.c: Fix comment typos.
2872         * config/alpha/alpha.md: Likewise.
2873         * config/arm/arm.c: Likewise.
2874         * config/arm/arm.md: Likewise.
2875         * config/arm/lib1funcs.asm: Likewise.
2876         * config/avr/avr.md: Likewise.
2877         * config/arm/README-interworking: Fix typos.
2878
2879 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
2880
2881         * c-format.c: Fix comment formatting.
2882         * c-typeck.c: Likewise.
2883         * coverage.c: Likewise.
2884         * cppcharset.c: Likewise.
2885         * cpplib.c: Likewise.
2886         * dbxout.c: Likewise.
2887         * gcov-io.h: Likewise.
2888         * toplev.c: Likewise.
2889
2890 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
2891
2892         * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
2893         fix.
2894
2895 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
2896
2897         * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
2898         uses three-argument AC_DEFINE so no acconfig.h entries are
2899         needed.
2900         (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
2901         which contains the GAS version number as a scaled integer.
2902         (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers.  Add
2903         ability to check for ELF assembler.
2904         (gcc_GAS_CHECK_FEATURE): New macro.
2905         * configure.in: Use gcc_AC_CHECK_TYPE.  Rewrite all
2906         assembler feature checks using gcc_GAS_CHECK_FEATURE.
2907         Use three-argument AC_DEFINE everywhere.
2908         * acconfig.h: Deleted.
2909         * config.in, configure: Regenerate.
2910
2911 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
2912
2913         * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
2914         (on OpenBSD).
2915         * fixinc/fixincl.x: Regenerate.
2916
2917         * fixinc/inclhack.def (gnu_types): Improve comment.
2918
2919 2003-07-12  Andreas Jaeger  <aj@suse.de>
2920
2921         * fp-test.c (main): Use ISO C90 prototype.
2922
2923         * version.c: Remove unneded include of ansidecl.h.
2924
2925         * cgraph.h: Convert prototypes to ISO C90.
2926         * cgraph.c: Likewise.
2927         * fix-header.c: Likewise.
2928         * ra.h: Likewise.
2929         * protoize.c: Likewise.
2930
2931 Sat Jul 12 06:09:38 CEST 2003  Jan Hubicka  <jh@suse.cz>
2932
2933         * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
2934         warning.
2935
2936 Sat Jul 12 03:06:01 CEST 2003  Jan Hubicka  <jh@suse.cz>
2937                                Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2938
2939         * cgraph.c (cgraph_max_uid): New global variable.
2940         (cgraph_node): Set uid field.
2941         (create_edge): Keep inline flags consistent.
2942         (dump_cgraph): Dump more info.
2943         * cgraph.h (struct cgraph_local_info): Remove inline_many and
2944         can_inline_once; add inlinable, disgread_inline_limits, and self_insn
2945         (struct cgraph_global_info): Add insns, calls, cloned_times,
2946         will_be_output.
2947         (struct cgraph_node): Add uid.
2948         (struct cgraph_edge): Add inline_call.
2949         (cgraph_max_uid, cgraph_inline_p): Declare.
2950         * cgraph.c: Include params.h and fibheap.h
2951         (cgraph_mark_functions_to_inline_once): Kill.
2952         (INSNS_PER_CALL): New constant.
2953         (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
2954         static variables.
2955         (cgraph_finalize_function): Do not analyze inlining.
2956         (cgraph_finalize_compilation_unit): Set inlining attributes.
2957         (cgraph_mark_functions_to_output): More consistency checks.
2958         (cgraph_optimize_function): Set current_function_decl to NULL.
2959         (cgraph_expand_function): Use new inline flags.
2960         (cgraph_postorder): Expand from cgraph_expand_functions.
2961         (INLINED_TIMES, SET_INLINED_TIMES): New macros.
2962         (cgraph_inlined_into, cgraph_inlined_callees,
2963         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
2964         cgraph_mark_inline, cgraph_check_inline_limits,
2965         cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
2966         cgraph_decide_inlining, cgraph_inline_p): New functions.
2967         * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
2968         PARAM_INLINE_UNIT_GROWTH): New parameters.
2969         * tree-inline.c (struct inline_data): New field current_decl.
2970         (expand_call_inline): Avoid forward declarations; use
2971         inlinable_function_p.
2972         (optimize_inline_calls): Set id.current_decl.
2973
2974 2003-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
2975
2976         * configure.in: Remove wrongly added definition of
2977         local_prefix.
2978         * configure: Regenerate.
2979
2980 2003-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
2981
2982         * rtl.def (NOTE): Do not use padding.
2983
2984 2003-07-11  Dara Hazeghi  <dhazeghi@yahoo.com>
2985
2986         * doc/install.tex: Update required binutils for i?86-*-linux*
2987
2988 2003-07-11  Richard Henderson  <rth@redhat.com>
2989
2990         * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
2991
2992 2003-07-11  Mark Mitchell  <mark@codesourcery.com>
2993
2994         * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
2995         TRANSLATION_UNIT_DECL as top_level.
2996
2997 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
2998
2999         * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
3000         then fall back to cmpstrM.
3001         * builtins.c (expand_builtin_memcmp): Likewise.
3002         * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
3003         (s390_expand_cmpmem): ... this.
3004         * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
3005         cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
3006         from cmpstr* patterns.  Rename call to s390_expand_cmpstr
3007         to s390_expand_cmpmem.
3008         * config/s390/s390.c (s390_expand_cmpstr): Rename to...
3009         (s390_expand_cmpstr): ... this.  Rename cmpstr* instructions
3010         to cmpmem*.
3011         * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
3012         cmpstr* patterns.
3013         * doc/md.texi (cmpstrM): Describe as String compare insn, not
3014         Block compare insn.
3015         (cmpmemM): Add.
3016
3017 2003-07-11  Loren James Rittle  <ljrittle@acm.org>
3018
3019         * config/i386/freebsd.h (SET_ASM_OP): Remove.
3020         (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
3021         (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
3022          MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
3023
3024 2003-07-11  Richard Henderson  <rth@redhat.com>
3025
3026         * function.c (assign_parms): Don't recombine complex args if
3027         fnargs is unchanged from orig_fnargs.
3028         (split_complex_args): Return args without complex before copying.
3029         Re-layout the modified parameters.
3030
3031 2003-07-11  J"orn Rennecke <joern.rennecke@superh.com>
3032
3033         * regclass.c (choose_hard_reg_mode): Add third argument.
3034         Changed all callers.
3035         * rtl.h (choose_hard_reg_mode): Update declaration.
3036         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
3037         Take HARD_REGNO_CALL_PART_CLOBBERED into account.
3038
3039 2003-07-11  Geoffrey Keating  <geoffk@apple.com>
3040
3041         * c-decl.c (finish_decl): Handle 'used' here...
3042         * cgraphunit.c (cgraph_finalize_function): ... and here ...
3043         * c-common.c: (handle_used_attribute): ... not here.
3044
3045         * configure.in (onstep): Support --enable-intermodule.
3046         * Makefile.in (OBJS-common): New.
3047         (OBJS-md): New.
3048         (OBJS-archive): New.
3049         (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
3050         (OBJS-onestep): New.
3051         (libbackend.a): Support @onestep@.
3052         (libbackend.o): New.
3053         * configure: Regenerate.
3054
3055         * c-common.h (c_reset_state): New prototype.
3056         (c_parse_file): New prototype.
3057         (finish_file): Move prototype from c-tree.h.
3058         * c-decl.c: Include <hashtab.h>.
3059         (builtin_decls): New.
3060         (current_file_decl): New.
3061         (duplicate_decls): Add extra parameter. Change all callers.  Don't
3062         output duplicate common symbols.
3063         (link_hash_hash): New.
3064         (link_hash_eq): New.
3065         (poplevel): Handle popping of the top level.
3066         (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
3067         (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
3068         (pushdecl_top_level): Likewise.
3069         (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
3070         (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
3071         (finish_decl): Handle TRANSLATION_UNIT_DECL.
3072         (merge_translation_unit_decls): New.
3073         (c_write_global_declarations): New.
3074         (c_reset_state): New.
3075         (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
3076         * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
3077         * c-objc-common.c (c_cannot_inline_tree_fn): Handle
3078         TRANSLATION_UNIT_DECL.
3079         (c_objc_common_finish_file): Call merge_translation_unit_decls.
3080         * c-opts.c (in_fnames): Rename from in_fname.
3081         (c_common_decode_option): Handle multiple input filenames.
3082         (c_common_post_options): Likewise.
3083         (c_common_parse_file): Likewise; also, call c_parse_file rather than
3084         yyparse.
3085         * c-parse.in: Move cleanup code to c_parse_file.
3086         (free_parser_stacks): Move contents to c_parse_file.
3087         (c_parse_file): New.
3088         * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
3089         for integer types.
3090         (C_DECL_FILE_SCOPE): New.
3091         (finish_file): Move prototype to c-common.h.
3092         (merge_translation_unit_decls): New prototype.
3093         (comptypes): Add extra parameter to prototype.
3094         (c_write_global_declarations): New prototype.
3095         * c-typeck.c (tagged_types_tu_compatible_p): New.
3096         (function_types_compatible_p): Add extra parameter, change all callers.
3097         (type_lists_compatible_p): Likewise.
3098         (comptypes): Likewise.
3099         (struct tagged_tu_seen): New.
3100         (tagged_tu_seen_base): New.
3101         (build_unary_op): Handle TRANSLATION_UNIT_DECL.
3102         (c_mark_addressable): Remove #if 0 code.
3103         * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
3104         comment explaining why it shouldn't have to.
3105         * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
3106         options.
3107         * cppinit.c (cpp_read_next_file): New.
3108         (cpp_read_main_file): Use it.
3109         * cpplib.c (undefine_macros): New.
3110         (cpp_undef_all): New.
3111         * cpplib.h (cpp_read_next_file): Prototype.
3112         (cpp_undef_all): Prototype.
3113         * langhooks-def.h (write_global_declarations): Remove prototype.
3114         * toplev.h (write_global_declarations): Add prototype.
3115         * tree.c (decl_type_context): Use switch statement, handle
3116         TRANSLATION_UNIT_DECL.
3117         * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
3118         (TRANSLATION_UNIT_DECL): New kind of tree.
3119         * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
3120         * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
3121         * doc/invoke.texi: Make attempt to document new functionality.
3122
3123         2003-05-19  Per Bothner <bothner@apple.com>
3124
3125         * gcc.c (combine_inputs): New.
3126         (process_command): Set combine_inputs.
3127         (do_spec_1): Handle combine_inputs.
3128         (main): Likewise.
3129
3130 2003-07-10  James E Wilson  <wilson@tuliptree.org>
3131
3132         PR optimization/9745
3133         * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
3134         loop_insn_emit_before.
3135         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
3136
3137 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
3138
3139         * cppcharset.c: Fix comment.
3140         (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
3141         (EILSEQ): #define to EINVAL if not already defined.
3142         (convert_using_iconv): #if out when !HAVE_ICONV.
3143         (init_iconv_desc): Handle !HAVE_ICONV here...
3144         (cpp_init_iconv): ...not here.
3145
3146 2003-07-11  Neil Booth  <neil@daikokuya.co.uk>
3147
3148         * common.opt: More --help messages.
3149         * opts.c (print_help): Use puts().
3150         * toplev.c (f_options): Remove help text.
3151         (display_help): Don't dump f_options.
3152
3153 2003-07-11  Nathanael Nerode  <neroden@gcc.gnu.org>
3154
3155         * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
3156         Move i?86-*-interix* to the don't-fix list.
3157         * fixinc/fixinc.interix: Delete with extreme prejudice.
3158
3159 2003-07-10  Dara Hazeghi  <dhazeghi@yahoo.com>
3160
3161         PR bootstrap/10758
3162         * doc/install.texi: Document requirements for ia64-*-hpux* target.
3163
3164 2003-07-10  Roger Sayle  <roger@eyesopen.com>
3165
3166         * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
3167
3168 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
3169
3170         * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
3171         one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
3172         one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
3173         convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
3174         convert_no_conversion, convert_using_iconv): New functions.
3175         (APPLY_CONVERSION): New macro.
3176         (struct conversion, conversion_tab): New data structure.
3177         (init_iconv_desc): Check conversion_tab for a custom conversion
3178         primitive before trying to use iconv.
3179         (convert_cset): Deleted.
3180         (cpp_init_iconv): Use UTF- terminology, not UCS-.
3181         (_cpp_destroy_iconv): Update to match.
3182         (_cpp_valid_ucn): We don't need iconv to implement UCNs.
3183         (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
3184         (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
3185         (_cpp_interpret_string_notranslate): New function, moved here
3186         from cpplib.c.
3187
3188         * cpphash.h (convert_f, struct cset_converter): New types.
3189         (struct cpp_reader): narrow_cset_desc and wide_cset_desc
3190         are now struct cset_converter, not bare iconv_t.
3191         Update prototypes.
3192         * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
3193         all callers changed.
3194
3195 2003-07-10  Kelley Cook  <kelleycook@wideopenwest.com>
3196
3197         * Makefile.in (options.h): Depend on Makefile.  Add move-if-change
3198         to opts.sh command line.
3199         * opts.sh: Write to temporary files with a move-if-change at the end.
3200
3201 2003-07-10  Denis Chertykov  <denisc@overta.ru>
3202             Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3203
3204         * combine.c (gen_binary): Handle the CLOBBER rtx and
3205         don't build a binary operation with it.
3206
3207 2003-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3208
3209         * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
3210         store_killed_after, store_killed_before): Keep track of the correct
3211         dependency function to use.
3212
3213 2003-07-10  Steven Bosscher  <steven@gcc.gnu.org>
3214         * toplev.c (do_compile): Don't try to open dump files before
3215         lang_dependent_init initializes dump_base_name.
3216
3217 2003-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3218
3219         * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
3220         Use ARRAY_SIZE.
3221         * config/frv/frv.c (frv_expand_builtin): Likewise.
3222         * config/sh/sh.c (sh_media_init_builtins): Likewise.
3223
3224 2003-07-09  Mark Mitchell  <mark@codesourcery.com>
3225
3226         PR c++/10032
3227         * doc/invoke.texi (C++ Dialect Options): Change documentation of
3228         -fpermissive.
3229
3230 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
3231
3232         * tm.texi (RETURN_ADDR_OFFSET): Document.
3233
3234 2003-07-10  Nathan Sidwell  <nathan@codesourcery.com>
3235
3236         * gcov-io.h: Update documentation.
3237         (GCOV_UNSIGNED2STRING): New.
3238         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
3239         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
3240         GCOV_TAG_SUMMARY_LENGTH): Adjust.
3241         (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
3242         GCOV_TAG_COUNTER_NUM): New.
3243         (GCOV_BLOCK_SIZE): Number of words.
3244         (gcov_var): Adjust buffer type.
3245         * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
3246         (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
3247         count, not byte count.
3248         (gcov_open): Adjust overread init.
3249         (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
3250         gcov_write_string, gcov_write_tag, gcov_write_length,
3251         gcov_write_tag_length): Adjust.
3252         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
3253         (gcov_sync, gcov_seek): Adjust.
3254         * gcov-dump.c (print_usage): Show gcc version only.
3255         (dump_file): Use GCOV_UNSIGNED2STRING.
3256         (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
3257         * gcov.c (print_version): Show gcc version only.
3258         (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
3259         GCOV_TAG_*_NUM macros.
3260         (read_count_file): Use GCOV_UNSIGNED2STRING. Use
3261         GCOV_TAG_COUNTER_LENGTH.
3262         * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
3263         Use GCOV_TAG_COUNTER_NUM.
3264         * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
3265         (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
3266
3267 2003-07-10  Andreas Schwab  <schwab@suse.de>
3268
3269         * gcov-dump.c (dump_file): Fix missing address operator.
3270
3271 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
3272
3273         PR c/11449
3274         * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
3275         of HOST_WIDE_INT.
3276         (fold_single_bit_test): If sign_bit_p() fails, assume that the
3277         bit being tested is not a sign bit.
3278
3279 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
3280
3281         * config/h8300/h8300.md (a peephole2): New.
3282
3283 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
3284
3285         2001-12-13  Alexandre Oliva  <aoliva@redhat.com>
3286         * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
3287         from ld-linux.so.2 to ld.so.1.
3288         2001-11-18  Alexandre Oliva  <aoliva@redhat.com>
3289         * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
3290         * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
3291         nor -Wl,-rpath-link.
3292         (LIB_SPEC): Add -rpath-link if !static.
3293         2001-08-22  Alexandre Oliva  <aoliva@redhat.com>
3294         * config/mn10300/mn10300.c (mn10300_protect_label): New
3295         variable.
3296         * config/mn10300/linux.h (PRINT_OPERAND,
3297         PRINT_OPERAND_ADDRESS): Set it during their execution.
3298         (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
3299         mn10300_protect_label is set.
3300         * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
3301         -Wl,-rpath-link.
3302         (LIB_SPEC, STARTFILE_SPEC): Define.
3303         2001-05-11  Alexandre Oliva  <aoliva@redhat.com>
3304         * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
3305         FLOAT_BIT_ORDER_MISMATCH.
3306         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
3307         * config.gcc (am33_2.0-*-linux*): Added.
3308         * config/mn10300/linux.h: New.
3309         * config/mn10300/t-linux: New.
3310
3311 2003-07-10  Andreas Jaeger  <aj@suse.de>
3312
3313         * fold-const.c: Properly wrap prototypes.
3314
3315 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
3316
3317         2003-06-16  Alexandre Oliva  <aoliva@redhat.com>
3318         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
3319         Moved from...
3320         * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
3321         * config/mn10300/mn10300.h: GTY-declare it.
3322         2003-06-11  Alexandre Oliva  <aoliva@redhat.com>
3323         * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
3324         prototype.  Use incoming RTL argument.
3325         2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
3326         * config/mn10300/mn10300.md (int_label): Move C statements...
3327         (GOTaddr2picreg): ... here.
3328         2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
3329         * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
3330         * config/mn10300/mn10300.c (mn10300_encode_section_info):
3331         ... here.  New function.
3332         (TARGET_ENCODE_SECTION_INFO): Define to it.
3333         2001-11-04  Alexandre Oliva  <aoliva@redhat.com>
3334         * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
3335         pattern name.
3336         (mn10300_loadPC): Define as insn splittable after reload.
3337         2001-05-13  Alexandre Oliva  <aoliva@redhat.com>
3338         * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
3339         be defined in .rodata even in PIC, now that the assembler
3340         supports that.
3341         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
3342         * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
3343         symbol take an underscore prefix.
3344         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
3345         * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
3346         legitimize_pic_address): Declare.
3347         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
3348         the PIC register as fixed.
3349         (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
3350         (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
3351         PIC.
3352         (LEGITIMATE_PIC_OPERAND_P): Define.
3353         (PIC_OFFSET_TABLE_REGNUM): Define.
3354         (GOT_SYMBOL_NAME): Define.
3355         (SYMBOLIC_CONST_P): Define.
3356         (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
3357         symbols.
3358         (MN10300_GLOBAL_P): Test it.
3359         (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
3360         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
3361         * config/mn10300/mn10300.c (print_operand): Handle unspec.
3362         (expand_prologue): Set PIC register.
3363         (call_address_operand): Don't match SYMBOL_REFs in PIC.
3364         (legitimize_address): Call legitimize_pic_address.
3365         (legitimize_pic_address): New fn.
3366         (legitimate_pic_operand_p): New fn.
3367         * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
3368         (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
3369         UNSPEC_PLT): New constants.
3370         (pop_pic_reg): New insn.
3371         (movsi): Adjust non-PIC addresses.
3372         (builtin_setjmp_receiver): Restore the PIC register.
3373         (casesi): New insn.
3374         (call): Adjust non-PIC addresses.
3375         (int_label, GOTaddr2picreg): New expands.
3376         (am33_loadPC): New insn.
3377         (mn10300_loadPC): New expand.
3378         (call_next_insn): New insn.
3379         (add_GOT_to_pic_reg): New expand.
3380         (symGOT2reg, symGOT2reg_i): New expands.
3381         (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
3382         (sym2PIC, sym2PLT): New expands.
3383
3384 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
3385
3386         * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
3387         2001-05-01  Alexandre Oliva  <aoliva@redhat.com>
3388         * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
3389         to flag_unsafe_math_optimizations.
3390         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
3391         * config/mn10300/mn10300.c (expand_prologue): Mark
3392         FP-register-saving insns as frame-related.
3393         2001-02-13  Alexandre Oliva  <aoliva@redhat.com>
3394         * config/mn10300/mn10300.c
3395         (mn10300_get_live_callee_saved_regs): Don't search past
3396         LAST_EXTENDED_REGNUM.
3397         (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
3398         * config/mn10300/mn10300.md: Remove excessive line breaks from
3399         `@' output patterns that were accounted as additional
3400         alternatives.
3401         * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
3402         Re-introduce changes accidentally removed in Richard Sandiford's
3403         2000-12-05's patch.
3404         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
3405         Re-instate am33-2 lost in merge from net GCC.
3406         2000-08-26  Alexandre Oliva  <aoliva@redhat.com>
3407         * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
3408         floating-point registers.
3409         2000-08-07  Alexandre Oliva  <aoliva@redhat.com>
3410         * config/mn10300/mn10300.md (movdf): Revert some am33-specific
3411         pessimizations that had gone in on 2000-05-08.
3412         2000-06-28  Graham Stott  <grahams@cygnus.co.uk>
3413         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
3414         2000-06-22  Graham Stott  <grahams@cygnus.co.uk>
3415         * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
3416         operand 0.
3417         * (movhi): Likewise.
3418         * (movsi): Likewise.
3419         * (movsf): Likewise.
3420         * (movdi): Likewise.
3421         * (movdf): Likewise.
3422         Wed May 24 13:16:09 2000  Alexandre Oliva  <aoliva@cygnus.com>
3423         * config/mn10300/mn10300.c (fp_regs_to_save): New function.
3424         (can_use_return_insn, initial_offset): Add fp_regs_to_save.
3425         (expand_prologue, expand_epilogue): Save and restore FP regs.
3426         2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
3427         * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
3428         2000-05-13  Alexandre Oliva  <aoliva@cygnus.com>
3429         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
3430         subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
3431         Do not clobber cc0.
3432         2000-05-12  Alexandre Oliva  <aoliva@cygnus.com>
3433         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
3434         Discourage the two-argument, longer opcodes.
3435         (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
3436         ones.
3437         * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
3438         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
3439         * config/mn10300/mn10300.md (cmpsf): New pattern.
3440         (branch): Test mdep.fpCC and output fbCC.
3441         * config/mn10300/mn10300.c (print_operand): Output conditions.
3442         (notice_cc_update): Recognize fcmp and set mdep.fpCC.
3443         2000-05-10  Alexandre Oliva  <aoliva@cygnus.com>
3444         * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
3445         mulsf3, divsf3): Use the `F' constraint for FP values.
3446         * config/mn10300/mn10300.c (const_1f_operand): New function.
3447         * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
3448         * config/mn10300/mn10300.md (sqrtsf2): New expand.
3449         (rsqrtsf2): New insn.
3450         2000-05-09  Alexandre Oliva  <aoliva@cygnus.com>
3451         * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
3452         previous check-in.
3453         2000-05-08  Alexandre Oliva  <aoliva@cygnus.com>
3454         * config/mn10300/mn10300.md (abssf2, negdf2): On
3455         TARGET_AM33_2, expand to...
3456         (abssf2_am33_2, negdf2_am33_2): New insns.
3457         (addsf3, subsf3, mulsf3, divsf3): Likewise.
3458         (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
3459         * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
3460         movdi, movdf): Added FP regs.
3461         * invoke.texi (-mam33-2, -mno-am33-2): Document.
3462         2000-04-29  Alexandre Oliva  <aoliva@cygnus.com>
3463         * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
3464         New macros.
3465         (REGNO_AM33_2_FP_P): Renamed to...
3466         (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
3467         (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
3468         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
3469         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
3470         regs from GENERAL_REGS.
3471         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
3472         * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
3473         * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
3474         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
3475         2000-04-23  Alexandre Oliva  <aoliva@cygnus.com>
3476         * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
3477         as FP_REGS.
3478         2000-04-21  Alexandre Oliva  <aoliva@cygnus.com>
3479         * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
3480         (EXTRA_CONSTRAINT): Added OK_FOR_Q.
3481         * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
3482         * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
3483         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
3484         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
3485         AM33/2.0 floating-point registers.
3486         (CONDITIONAL_REGISTER_USAGE): Adjust.
3487         (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
3488         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
3489         (REG_CLASS_FROM_LETTER): Added `f' and `A'.
3490         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
3491         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
3492         (MULTILIB_DIRNAMES): Likewise.
3493         * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
3494         `__AM33_2__' when `-mam33-2' is given.
3495         (TARGET_AM33_2): Define.
3496         (TARGET_SWITCHES): Adjust.
3497         * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
3498         when appropriate.
3499
3500 2003-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
3501
3502         * doc/install.texi: Add missing @.
3503
3504 2003-07-09  Bob Wilson  <bob.wilson@acm.org>
3505
3506         * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
3507
3508 2003-07-09  Aldy Hernandez  <aldyh@redhat.com>
3509
3510         PR/11144
3511         * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
3512
3513 2003-07-09  Nathanael Nerode  <neroden@gcc.gnu.org>
3514
3515         PR bootstrap/11043
3516         * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
3517         "x-crtfini.o" with "crtinit.o", "crtfini.o".
3518
3519         * fixinc/inclhack.def (limits_ifndefs): Add select test.
3520         * fixinc/fixincl.x: Rebuild.
3521
3522         * fixinc/inclhack.def (math_exception):  Improve bypass and comment.
3523         * fixinc/fixincl.x: Rebuild.
3524
3525 2003-07-09  Hans-Peter Nilsson  <hp@bitrange.com>
3526
3527         * doc/install.texi (Configuration): Document the valgrind option
3528         to --enable-checking.
3529
3530 Wed Jul  9 16:16:30 CEST 2003  Jan Hubicka  <jh@suse.cz>
3531
3532         * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
3533
3534 2003-07-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3535
3536         * c-lex.c (cb_ident): Cast cstr.text to const char *.
3537
3538 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
3539
3540         * gcov-io.h: Update documentation.
3541         (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
3542         GCOV_NOTE_MAGIC.
3543         (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
3544         (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
3545         (struct gcov_var): Change buffer's type. Add endian flag.
3546         (gcov_open): Remove mode in libgcov.
3547         (gcov_magic): Prototype.
3548         * gcov-io.c (from_file): New.
3549         (gcov_open): Clear endian flag.
3550         (gcov_magic): New.
3551         (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
3552         pointers.
3553         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
3554         gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
3555         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
3556         * gcov-iov.c (main): Correct cast.
3557         * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
3558         conversion.
3559         (gcov_begin_output): Use GCOV_NOTE_MAGIC.
3560         (coverage_init): Use GCOV_NOTE_SUFFIX.
3561         * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
3562         Rename to gcov_version, and return flag.
3563         (gcov_exit): Use gcov_version.
3564         (__gcov_init): Use gcov_version.
3565         * Makefile.in (coverageexts): Update.
3566         * gcov.c (print_version): Remove endianness conversion.
3567         (create_file_names): Use GCOV_NOTE_SUFFIX.
3568         (read_graph_file): Use gcov_magic.
3569         (read_count_file): Likewise.
3570         * gcov-dump.c (dump_file): Remove endianness conversion, use
3571         gcov_magic.
3572
3573 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
3574
3575         * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
3576         coverage is on.
3577         * configure: Regenerated.
3578         * Makefile.in (ALL_CFLAGS): Correct its comment.
3579
3580 2003-07-08  Mark Mitchell  <mark@codesourcery.com>
3581
3582         * fold-const.c (make_range): Do not access operand 1 for a
3583         zero-operand operator.
3584
3585 2003-07-09  Neil Booth  <neil@daikokuya.co.uk>
3586
3587         * toplev.c (warn_dummy, W_options): Die.
3588         (display_help): Don't print W_options.
3589         * common.opt: Add W_options help from toplev.c.
3590
3591 2003-07-09  Andreas Jaeger  <aj@suse.de>
3592
3593         * opts.c (wrap_help): Only pass int arguments as arguments to
3594         printf's '*' modifier.  Change argument of function.
3595
3596 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
3597
3598         * doc/invoke.texi: Fix misspelling of "@item".
3599
3600 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
3601
3602         * config/i386/i386.md: Remove an old comment about
3603         NOTICE_UPDATE_CC.
3604
3605 Wed Jul  9 03:00:10 CEST 2003  Jan Hubicka  <jh@suse.cz>
3606
3607         * cgraph.c (cgraph_node_name): New function.
3608         (dump_cgraph): Use it.
3609         * cgraph.h (cgraph_dump_file): Declare.
3610         (cgraph_node_name): Declare.
3611         * cgraphunit.c: Include timevar.h
3612         (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
3613         (cgraph_optimize_function): Use TV_INTEGRATION.
3614         (cgraph_mark_local_functions): reorganize dumps.
3615         (cgraph_mark_functions_to_inline_once): Likewise.
3616         (cgraph_optimize): Likewise; use timevar.
3617         * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
3618         * toplev.c (dump_file_index): Add DFI_cgraph.
3619         (dump_file_info): Likewise.
3620         (cgraph_dump_file): New global variable.
3621         (do_compile): Open and close cgraph dump.
3622         * invoke.texi (-d): Document new flag; renumber.
3623
3624 2003-07-08  Roger Sayle  <roger@eyesopen.com>
3625
3626         PR c/11370
3627         * calls.c (emit_call_1): Don't bother popping the arguments off of
3628         the stack after a noreturn function call;  The adjustment is dead.
3629         (expand_call): Likewise.
3630
3631 2003-07-08  Geoffrey Keating  <geoffk@apple.com>
3632
3633         * expr.c (MOVE_MAX_PIECES): Move from here...
3634         * defaults.h (MOVE_MAX_PIECES): ... to here.
3635
3636 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
3637
3638         * Makefile.in (stage1-start): Handle an empty SUBDIRS.
3639
3640 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3641
3642         * genattr.c (internal_dfa_insn_code): Don't prototype.
3643         * genattrtab.c (attr_desc): Add `static_p' field.
3644         (expand_units): Make blockage range and ready cost functions
3645         static.
3646         (write_attr_get): Don't add extern prototypes in C file.  Mark
3647         static functions as appropriate.
3648         (find_attr, make_internal_attr): Initialize static_p.
3649         * genattrtab.h (ATTR_STATIC): New macro.
3650         * genautomata.c (output_internal_reset_func): Mark output function
3651         as inline.
3652         (make_internal_dfa_insn_code_attr): Mark output function as static.
3653
3654 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3655
3656         * genattrtab.h: Add new macros for attr `special' flags.
3657         * genattrtab.c (attr_desc): Reorder/resize fields better.
3658         Use attr `special' macros in all calls to make_internal_attr.
3659         * genautomata.c: Likewise.
3660
3661 Wed Jul  9 02:25:39 CEST 2003  Jan Hubicka  <jh@suse.cz>
3662
3663         * c-common.c (c_estimate_num_insns_1): New static function.
3664         (c_estimate_num_insns): New global function.
3665         * c-common.h (DECL_NUM_STMTS): Rename to...
3666         (DECL_ESTIMATED_INSNS): ... this.
3667         (c_estimate_num_insns): Declare.
3668         * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
3669         * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
3670         * c-semantics.c (add_stmt): Do not account statements.
3671         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
3672         New.
3673         * langhooks.h (lang_hooks_for_tree_inlining): Add
3674         estimate_num_insns
3675         * params.def (max-inline-insns-auto, max-inline-insns-auto): set
3676         to 100.
3677         (max-inline-insns): set to 300.
3678         (min-inline-insns): set to 10.
3679         * tree-inline.c (struct inline_data): Rename inlined_stmts to
3680         inlined-insns.
3681         (INSNS_PER_STMT): Kill.
3682         (inlinable_function_p): Compute and store body size.
3683         (expand_call_inline): Likewise.
3684         (optimize_inline_calls): Likewise.
3685
3686 2003-07-08  James E Wilson  <wilson@tuliptree.org>
3687
3688         PR target/10021
3689         * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
3690         loop over new variable t2 instead of t.
3691
3692 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
3693
3694         PR bootstrap/11455
3695         * config/i386/winnt.c: Replace use of error(), warning() with
3696         error_with_decl(), warning_with_decl(),  throughout.
3697
3698 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
3699
3700         * opts.c (wrap_help): Use unsigned int, not size_t.
3701
3702 2003-07-08  Stephane Carrez  <stcarrez@nerim.fr>
3703
3704         * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
3705         as .file/.loc directives are incompatible with linker relaxation.
3706
3707 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
3708
3709         * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
3710         * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
3711         * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
3712         * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
3713         * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
3714         * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
3715         Escape { and } characters which are not part of range expressions.
3716         * fixinc/fixincl.x: Regenerate.
3717         * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
3718
3719 2003-07-08  Steven Bosscher  <steven@gcc.gnu.org>
3720
3721         PR c/1687
3722         * tree-inline.c (find_alloca_call): Use
3723         walk_tree_without_duplicates, instead of walk_tree.
3724         (find_builtin_longjmp_call): Likewise.
3725         * c-objc-common.c (c_cannot_inline_fn): Likewise.
3726         * c-semantics.c (find_reachable_label): Likewise.
3727
3728 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
3729
3730         PR c/11420
3731         * config/i386/i386.c (ix86_check_movabs): New function.
3732         * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
3733         * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
3734         (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
3735
3736 2003-07-08  Chris Demetriou  <cgd@broadcom.com>
3737
3738         * Makefile.in (install-po): Cope with empty CATALOGS.
3739
3740 2003-07-08  Richard Sandiford  <rsandifo@redhat.com>
3741
3742         * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
3743         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
3744         (SECTION_FUNCTION_TEMPLATE): Delete.
3745         * config/mips/elf.h: As for elf64.h.
3746         (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
3747         * config/mips/linux.h: As for elf.h
3748         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
3749         * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
3750         (EXTRA_SECTION_FUNCTIONS): Remove sdata_section.  Remove the handling
3751         of in_sdata from current_section_name and current_section_flags.
3752         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
3753         * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
3754         (MASK_GP_OPT, TARGET_GP_OPT): Delete.
3755         (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
3756         (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
3757         (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
3758         * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
3759         (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
3760         (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
3761         (override_options): Remove setting of MASK_GPOPT.
3762         (mips_output_external): Use mips_in_small_data_p to check whether a
3763         symbol needs an .extern directive.  Don't emit such directives for
3764         TARGET_EXPLICIT_RELOCS.
3765         (mips_declare_object): Update accordingly.
3766         (mips_select_rtx_section): Call named_section rather than
3767         SMALL_DATA_SECTION.
3768         (mips_select_section): Use default_elf_section_section for everything
3769         except .text string constants.
3770         (mips_in_small_data_p): New function.
3771         (mips_encode_section_info): Remove small data handling.
3772         (mips_unique_section): Delete.
3773         (iris6_section_type_flags): New function.
3774         * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
3775
3776 2003-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3777
3778         PR Target/11453
3779         * pa.md: Disparage all mtsar constraints.
3780         (extzv, extv, insv): Don't fail on length of {32|64}.
3781
3782 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
3783
3784         * system.h: Poison MAP_CHARACTER.
3785         * config/i370/i370-protos.h (mvs_map_char): Delete.
3786         * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
3787         * config/i370/i370.h (MAP_CHARACTER): Delete definition.
3788         (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
3789
3790 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
3791
3792         * toplev.c (randomize): Correct call to time().
3793
3794 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
3795
3796         * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
3797         REG_EQUIV notes as well.
3798
3799 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
3800
3801         * doc/md.texi: Fix the description of addmodecc.
3802
3803 2003-07-07  Zack Weinberg  <zack@codesourcery.com>
3804
3805         * Makefile.in (top_builddir): Set to "..", not ".".
3806         (INTLLIBS, INTLDEPS): Delete.
3807         (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
3808         (LIBDEPS): Add $(LIBICONV_DEP).
3809         (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
3810         (INCLUDES): Replace -I../intl with @INCINTL@.
3811         ($(top_builddir)/intl/libintl.a): Delete rule.
3812         (stage2-start, stage3-start, stage4-start, stageprofile-start,
3813         stagefeedback-start): Use $$ for variable to be evaluated by
3814         shell, not make.
3815         * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
3816         HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
3817         * aclocal.m4: sinclude ../config/progtest.m4.  Add
3818         contents of lcmessage.m4 from gettext distro.
3819         * configure.in: Check for wchar.h and setlocale.  Set
3820         LIBICONV_DEP to the empty string and substitute it.
3821         Call AM_LC_MESSAGES.  Delete AC_ARG_ENABLE for --enable-nls;
3822         this is handled elsewhere.  Use ZW_GNU_GETTEXT_SISTER_DIR,
3823         not CY_GNU_GETTEXT.  Clear $LIBICONV if its text is included
3824         in $LIBINTL, to avoid linking it twice.
3825         * configure, config.in: Regenerate.
3826
3827 2003-07-08  Nathanael Nerode  <neroden@gcc.gnu.org>
3828
3829         * fixinc/mkfixinc.sh: Remove winnt support.
3830         * fixinc/fixinc.winnt: Delete with extreme prejudice.
3831
3832 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
3833
3834         * Makefile.in: Update.
3835         * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
3836         * c.opt: Update documentation.
3837         * common.opt: Add some help text.
3838         * opts.c: Include intl.h.
3839         (wrap_help, print_help): New.
3840         (find_opt, handle_option, common_handle_option): opt_text now
3841         contains the '-'.  Use print_help to output help.
3842         * opts.h (struct cl_option): New member "help".
3843         * opts.sh: Update to handle help text output and to prepend
3844         options with '-'.
3845         * toplev.c (display_help): Remove some help text.
3846
3847 2003-07-07  David Edelsohn  <edelsohn@gnu.org>
3848             Fariborz Jahanian  <fjahanian@apple.com>
3849
3850         * configure.in: Test for PowerPC mfcr field support in assembler.
3851         * config.in, configure: Regenderated.
3852
3853         * config/rs6000/power4.md: Add mfcrf reservation.
3854         * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
3855         * config/rs6000/rs6000.c (mfcr_operation): Define.
3856         (print_operand): Add 'Q' case for mfcrf.
3857         * config/rs6000/rs6000.h (TARGET_MFCRF): New.
3858         * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
3859         (movcc_internal1): Emit optional field operand for mfcr and set
3860         "type" attribute appropriately.
3861         (mfcr SCC): Likewise.
3862         (movesi_from_cr_one): New.
3863
3864 2003-07-07  Roger Sayle  <roger@eyesopen.com>
3865
3866         * config/i386/i386.md: Correct check-in of incorrect version.
3867
3868 2003-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3869
3870         * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
3871         adjacent stdio calls.
3872         * c-decl.c (c_print_identifier): Likewise.
3873         * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
3874         * print-rtl.c (print_rtx): Likewise.
3875         * print-tree.c (print_node_brief, print_node): Likewise.
3876         * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
3877
3878         * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
3879         * config.in, configure: Regenerated.
3880
3881 2003-07-07  Roger Sayle  <roger@eyesopen.com>
3882
3883         PR target/10979
3884         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
3885         Changed to define_expand patterns that copy operand[1] to prevent
3886         it from being clobbered before emitting an atan2?f3_1 insn.
3887         (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
3888         patterns that actually specify the behaviour of x87's FPATAN.
3889
3890 2003-07-07  Jakub Jelinek  <jakub@redhat.com>
3891
3892         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
3893         clearing of SYMBOL_FLAG_LOCAL bit.
3894         If vcall_offset fits into signed 16-bit immediate, use
3895         one instruction for both addition and load.
3896
3897 2003-07-07  Neil Booth  <neil@daikokuya.co.uk>
3898
3899         * opts.c (common_handle_option): Correct handling of the
3900         -falign- switches that do and don't take an argument.
3901
3902 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
3903
3904         * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
3905         today.
3906         (pushhi1_h8300hs): Likewise.
3907
3908 2003-07-07  Andreas Jaeger  <aj@suse.de>
3909
3910         * genextract.c: Convert remaining prototypes to ISO C90.
3911
3912         * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
3913         * fold-const.c (fold_single_bit_test): Likewise.
3914         * diagnostic.c (default_diagnostic_finalizer): Likewise.
3915         * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
3916
3917         * gengtype.c (write_array): Generate ISO C90 prototypes.
3918
3919         * genflags.c (gen_proto): Generate ISO C90 prototypes.
3920
3921 2003-07-07  Roger Sayle  <roger@eyesopen.com>
3922
3923         PR optimization/11059
3924         * expr.c (can_store_by_pieces): Return true if length is zero.
3925         (store_by_pieces): If length is zero and endp is two, abort,
3926         othwerise, if length is zero and endp is not two, return "to".
3927         (clear_by_pieces): Do nothing if length is zero.
3928         (clear_storage): Do nothing if length is zero.
3929         (store_constructor): Simplify code when size is zero, or the
3930         target has already been cleared.  This avoids emitting a
3931         blockage instruction when initializing empty structures.
3932
3933 2003-07-07  Andreas Jaeger  <aj@suse.de>
3934
3935         * mips-tfile.c: Convert prototypes to ISO C90.
3936         * mips-tdump.c: Convert prototypes to ISO C90.
3937
3938 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
3939
3940         * rtl.h (emit_line_note): Take a location_t.
3941         (emit_line_note_force): Remove.
3942         (set_file_and_line_for_statement): Take a location_t.
3943         * tree.g (emit_line_note): Take a location_t.
3944         * emit-rtl.c (emit_line_note): Take a location_t.
3945         (emit_line_note_force): Remove.
3946         * function.c (init_function_start): Adjust emit_line_note call.
3947         (expand_function_end): Use force_next_line_note, not
3948         emit_line_note_force.
3949         * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
3950         * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
3951         genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
3952         genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
3953         genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
3954         genrtl_continue_stmt, genrtl_switch_stmt,
3955         genrtl_asm_stmt): Likewise.
3956         * expr.c (expand_expr): Likewise.
3957         * integrate.c (expand_inline_function): Likewise.
3958         * stmt.c (set_file_and_line_for_stmt): Take a location_t.
3959         (expand_decl_init): Adjust emit_line_note call.
3960
3961 2003-07-07  Dale Johannesen  <dalej@apple.com>
3962
3963         * config/rs6000/darwin-tramp.asm:  Fix trampolines.  PR 10900.
3964
3965 2003-07-07  Andreas Jaeger  <aj@suse.de>
3966
3967         * config/i386/i386-protos.h: Convert prototypes to ISO C90.
3968         * config/i386/i386.c: Likewise.
3969
3970 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
3971
3972         * config/h8300/h8300.md: Use gen_int_mode instead of
3973         GEN_INT (trunc_int_for_mode (...)).
3974
3975 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
3976
3977         * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
3978         2 bytes and then subtract 2 from the stack pointer.
3979         (pushhi1_h8300hs): Likewise.
3980
3981 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
3982
3983         * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
3984         -frandom-seed.
3985         * configure: Regenerated.
3986         * Makefile.in: Remove extraneous comment.
3987         * toplev.c (randomize): Protect against potential multiple calls.
3988         * doc/invoke.texi (-frandom-seed): Document use for in coverage
3989         files.
3990
3991 2003-07-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3992             Eric Botcazou  <ebotcazou@libertysurf.fr>
3993
3994         PR optimization/11198
3995         * alias.c (objects_must_conflict_p): Return 1 if the types have
3996         the same alias set, not if the alias sets only conflict.
3997
3998 2003-07-07  Andrew Pinski  <pinskia@physics.uc.edu>
3999
4000         * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
4001         (convert_cset): Change inbuf to type ICONV_CONST char.
4002         * Makefile.in (LIBS): Add LIBICONV.
4003
4004         * doc/invoke.texi (-falign-functions): Document that
4005         when n is zero then a machine-dependent default is used.
4006         (-falign-labels): Document that when n is zero then a
4007         machine-dependent default is used and that -falign-labels =1
4008         is equivalent to -fno-align-labels.
4009         (-falign-loops): Likewise.
4010         (-falign-jumps): Likewise.
4011
4012 2003-07-06  Art Haas  <ahaas@airmail.net>
4013
4014         * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
4015         initializer syntax.
4016
4017 2003-07-06  James E Wilson  <wilson@tuliptree.org>
4018
4019         PR optimization/9812
4020         * rtl.h (mem_for_const_double): Delete prototype.
4021         * varasm.c (mem_for_const_double): Delete function.
4022         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
4023         config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
4024         (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
4025         * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
4026         (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
4027         * config/m68k/m68k.md (movxf): Add reload_in_progress guard.  Add
4028         comment about confused support for XFmode constants.
4029
4030 Mon Jul  7 02:03:56 CEST 2003  Jan Hubicka  <jh@suse.cz>
4031
4032         * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
4033
4034 2003-07-06  Kazu Hirata  <kazu@cs.umass.edu>
4035
4036         * config/h8300/h8300.c: Fix comment typos.
4037         * config/h8300/h8300.md: Likewise.
4038         * config/i386/athlon.md: Likewise.
4039         * config/i386/i386.c: Likewise.
4040         * config/i386/pentium.md: Likewise.
4041         * config/ia64/ia64.c: Likewise.
4042         * config/ia64/itanium1.md: Likewise.
4043         * config/ia64/itanium2.md: Likewise.
4044         * config/m32r/m32r.md: Likewise.
4045         * config/m68hc11/m68hc11.c: Likewise.
4046         * config/mcore/mcore.c: Likewise.
4047         * config/mips/sr71k.md: Likewise.
4048         * config/mips/t-iris5-as: Likewise.
4049         * config/mmix/mmix.h: Likewise.
4050         * config/ns32k/ns32k.h: Likewise.
4051         * config/ns32k/NOTES: Fix a typo.
4052
4053 2003-07-06  Andreas Jaeger  <aj@suse.de>
4054
4055         * stmt.c: Convert remaining prototypes to ISO C90.
4056         * cfglayout.c: Likewise.
4057         * dbxout.c: Likewise.
4058         * gcc.c: Likewise.
4059         * genemit.c: Likewise.
4060
4061         * basic-block.h: Convert prototypes to ISO C90.
4062         * c-parse.in: Likewise.
4063         * c-pragma.h: Likewise.
4064         * c-typeck.c: Likewise.
4065         * cfghooks.h: Likewise.
4066         * cfgloopanal.c: Likewise.
4067         * dbxout.h: Likewise.
4068         * debug.h: Likewise.
4069         * dwarf2asm.h: Likewise.
4070         * gcov.c: Likewise.
4071         * gengtype-lex.l: Likewise.
4072         * sched-int.h: Likewise.
4073         * timevar.c: Likewise.
4074
4075 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
4076
4077         * c-common.h (c_comon_handle_filename,
4078         c_common_missing_arguement): New.
4079         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
4080         LANG_HOOKS_MISSING_ARGUMENT): New.
4081         * c-opts.c (missing_arg): Rename c_common_missing_argument,
4082         update to be an appropriate langhook.
4083         (c_common_handle_option): Don't handle filenames.
4084         (c_common_handle_filename): New.
4085         * hooks.c (hook_void_constcharptr,
4086         hook_bool_constcharptr_size_t_false): New.
4087         * hooks.h (hook_void_constcharptr,
4088         hook_bool_constcharptr_size_t_false): New.
4089         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
4090         LANG_HOOKS_MISSING_ARGUMENT): New.
4091         (LANG_HOOKS_INITIALIZER): Update.
4092         * langhooks.h (struct lang_hooks): Add handle_filename and
4093         missing_argument.
4094         * opts.c (handle_option): Don't handle filenames here, but ...
4095         (handle_options): ... here.
4096         (common_handle_option): Don't handle missing arguments here.
4097         * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
4098         LANG_HOOKS_MISSING_ARGUMENT): New.
4099
4100 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
4101
4102         * Makfile.in: Remove traces of mbchar.
4103         * c-parse.in (MULTIBYTE_CHARS): Remove.
4104         * config.in (MULTIBYTE_CHARS): Remove.
4105         * configure: Remove --enable-mbchar.
4106         * configure.in: Remove --enable-mbchar.
4107         * mbchar.c, mbchar.h: Remove.
4108         * system.h: Poison MULTIBYTE_CHARS.
4109         * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
4110         * config/linux.h (MULTIBYTE_CHARS): Remove.
4111         * config/svr4.h (MULTIBYTE_CHARS): Remove.
4112         * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
4113
4114 2003-07-06  Andreas Jaeger  <aj@suse.de>
4115
4116         * varray.c (varray_check_failed): Fix typo.
4117
4118         * unroll.c: Convert prototypes to ISO C90.
4119         * varasm.c: Likewise.
4120         * varray.c: Likewise.
4121         * varray.h: Likewise.
4122         * vmsdbgout.c: Likewise.
4123         * xcoffout.c: Likewise.
4124         * xcoffout.h: Likewise.
4125
4126 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
4127
4128         * gcov-io.h: Add a local time stamp.
4129         (struct gcov_info): Add stamp field.
4130         (gcov_truncate): New.
4131         * coverage.c (read_counts_file): Skip the stamp.
4132         (coverage_begin_output): Write the stamp.
4133         (build_gcov_info): Declare and init the stamp.
4134         (coverage_finish): Only unlink data file, if stamp is zero.
4135         * gcov-dump.c (dump_file): Dump the stamp.
4136         * gcov.c (bbg_stamp): New.
4137         (release_structures): Clear bbg_stamp.
4138         (read_graph_file): Read stamp.
4139         (read_count_file): Check stamp.
4140         * libgcov.c (gcov_exit): Check stamp and truncate if needed.
4141
4142 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
4143
4144         * tree.h (default_flag_random_seed): Remove.
4145         * toplev.h (local_tick): Declare.
4146         * tree.c (flag_random_seed, default_flag_random_seed): Move to
4147         toplev.c.
4148         (append_random_chars): Don't call default_flag_random_seed.
4149         * toplev.c (flag_random_seed): Define here. Set local_tick.
4150         (local_tick): Define.
4151         (randomize): New, moved from tree.c.
4152         (print_switch_values): Adjust.
4153         (toplev_main): Call randomize.
4154
4155 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
4156
4157         * tree.h (crc32_string): Declare.
4158         * tree.c (append_random_chars): Remove.
4159         (crc32_string): New.
4160         (get_file_function_name_long): Use crc32_string here.
4161
4162 2003-07-06  Andreas Jaeger  <aj@suse.de>
4163
4164         * gcc.c: Convert prototypes to ISO C90.
4165         * gcc.h: Likewise.
4166         * gcov-dump.c: Likewise.
4167         * gcov-iov.c: Likewise.
4168         * gcse.c: Likewise.
4169         * genattrtab.h: Likewise.
4170         * ggc.h: Likewise.
4171         * global.c: Likewise.
4172         * graph.c: Likewise.
4173         * graph.h: Likewise.
4174         * hosthooks.h: Likewise.
4175         * hooks.h: Likewise.
4176         * hooks.c: Likewise.
4177         * hashtable.h: Likewise.
4178         * hashtable.c: Likewise.
4179         * haifa-sched.c: Likewise.
4180         * integrate.h: Likewise.
4181         * integrate.c: Likewise.
4182         * input.h: Likewise.
4183         * ifcvt.c: Likewise.
4184         * jump.c: Likewise.
4185         * langhooks-def.h: Likewise.  Add extern to prototypes.
4186         * langhooks.c: Likewise.
4187         * langhooks.h: Likewise.
4188         * lcm.c: Likewise.
4189         * local-alloc.c: Likewise.
4190         * loop-init.c: Likewise.
4191         * loop-unroll.c: Likewise.
4192         * loop-unswitch.c: Likewise.
4193         * loop.c: Likewise.
4194         * loop.h: Likewise. Add extern to prototypes.
4195         * machmode.h: Likewise.
4196         * main.c: Likewise.
4197         * mbchar.c: Likewise.
4198         * mbchar.h: Likewise.
4199         * mkdeps.c: Likewise.
4200         * mkdeps.h: Likewise.
4201         * optabs.c: Likewise.
4202         * optabs.h: Likewise.
4203         * output.h: Likewise.
4204         * gccspec.c: Likwise.
4205         * postreload.c: Likewise.
4206         * prefix.c: Likewise.
4207         * prefix.h: Likewise.
4208         * print-rtl.c: Likewise.
4209         * print-tree.c: Likewise.
4210         * profile.c: Likewise.
4211         * read-rtl.c: Likewise.
4212         * real.c: Likewise.
4213         * real.h: Likewise.
4214         * recog.c: Likewise.
4215         * recog.h: Likewise.
4216         * reg-stack.c: Likewise.
4217         * regclass.c: Likewise.
4218         * regmove.c: Likewise.
4219         * regrename.c: Likewise.
4220         * regs.h: Likewise.
4221         * reload.c: Likewise.
4222         * reload.h: Likewise.
4223         * reload1.c: Likewise.
4224         * reorg.c: Likewise.
4225         * resource.c: Likewise.
4226         * resource.h: Likewise.
4227         * rtl-error.c: Likewise.
4228         * rtl.c: Likewise.
4229         * rtl.h: Likewise.
4230         * rtlanal.c: Likewise.
4231         * sbitmap.c: Likewise.
4232         * sbitmap.h: Likewise.
4233         * scan-decls.c: Likewise.
4234         * scan.c: Likewise.
4235         * sched-deps.c: Likewise.
4236         * sched-ebb.c: Likewise.
4237         * sched-int.h: Likewise.
4238         * sched-rgn.c: Likewise.
4239         * sched-vis.c: Likewise.
4240         * sibcall.c: Likewise.
4241         * simplify-rtx.c: Likewise.
4242         * sreal.c: Likewise.
4243         * sreal.h: Likewise.
4244         * ssa-ccp.c: Likewise.
4245         * ssa-dce.c: Likewise.
4246         * ssa.c: Likewise.
4247         * ssa.h: Likewise.
4248         * stack.h: Likewise.
4249         * stmt.c: Likewise.
4250         * stor-layout.c: Likewise.
4251         * stringpool.c: Likewise.
4252         * target.h: Likewise.
4253         * timevar.c: Likewise.
4254         * timevar.h: Likewise.
4255         * tlink.c: Likewise.
4256         * tracer.c: Likewise.
4257         * tree-inline.c: Likewise.
4258         * tree-inline.h: Likewise.
4259         * tree.c: Likewise.
4260         * tree.h: Likewise.
4261
4262 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
4263
4264         * combine.c (nonzero_bits1): Fix a warning.
4265
4266 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
4267
4268         * config/h8300/h8300.c (compute_mov_length): Correct the
4269         length of loading CONST0_RTX (SFmode).
4270
4271 2003-07-05  Nathan Sidwell  <nathan@codesourcery.com>
4272
4273         * toplev.c (output_clean_symbol_name): Remove.
4274         * toplev.h (output_clean_symbol_name): Remove.
4275         * config/alpha/alpha.c (unicosmk_output_module_name): Use
4276         lbasename & clean_symbol_name.
4277
4278 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
4279
4280         * ggc.h: Follow spelling conventions.
4281         * config/i386/i386.c: Likewise.
4282         * config/i386/winnt.c: Likewise.
4283         * config/rs6000/rs6000.c: Likewise.
4284
4285 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
4286
4287         * bt-load.c: Fix comment typos.
4288         * c-incpath.c: Likewise.
4289         * cfg.c: Likewise.
4290         * cfgcleanup.c: Likewise.
4291         * cfgloop.h: Likewise.
4292         * cfgloopmanip.c: Likewise.
4293         * cfgrtl.c: Likewise.
4294         * diagnostic.h: Likewise.
4295         * dwarfout.c: Likewise.
4296         * emit-rtl.c: Likewise.
4297         * et-forest.c: Likewise.
4298         * et-forest.h: Likewise.
4299         * expr.c: Likewise.
4300         * gcse.c: Likewise.
4301         * genattr.c: Likewise.
4302         * jump.c: Likewise.
4303         * langhooks.h: Likewise.
4304         * local-alloc.c: Likewise.
4305         * loop-unroll.c: Likewise.
4306         * loop-unswitch.c: Likewise.
4307         * ra-build.c: Likewise.
4308         * regclass.c: Likewise.
4309         * regmove.c: Likewise.
4310         * rtl.def: Likewise.
4311         * rtlanal.c: Likewise.
4312         * sched-ebb.c: Likewise.
4313         * sched-rgn.c: Likewise.
4314         * simplify-rtx.c: Likewise.
4315         * ssa.c: Likewise.
4316         * tracer.c: Likewise.
4317         * tree.c: Likewise.
4318
4319 2003-07-05  Zack Weinberg  <zack@codesourcery.com>
4320
4321         * cppcharset.c: Use the correct return type for the fallback iconv
4322         macro.
4323
4324 Sat Jul  5 16:18:53 CEST 2003  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4325
4326         Blame to Jan Hubicka  <jh@suse.cz>
4327         * cfglayout.c (record_effective_endpoints): Split insns before
4328         first basic block correctly.
4329
4330 2003-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4331
4332         * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
4333         bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
4334         if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
4335
4336 2003-07-05  Andreas Jaeger  <aj@suse.de>
4337
4338         * genattrtab.c (write_attr_get): Revert part of last patch to
4339         always write out a prototype.
4340
4341         * genemit.c (gen_split): Readd lost unused attributes in last
4342         patch.
4343
4344 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4345
4346         * cfgloopmanip.c (force_single_succ_latches): Force latch to be
4347         different from header.
4348
4349 2003-07-05  Andreas Schwab  <schwab@suse.de>
4350
4351         * config/m68k/m68k.c: Remove code protected by CRDS.
4352         * config/m68k/m68k.md: Likewise.
4353
4354 2003-07-05  Neil Booth  <neil@daikokuya.co.uk>
4355
4356         PR driver/11417
4357         * c-opts.c (permit_fortran_options): New.
4358         (c_common_init_options): Accept fortran front end options if
4359         it looks like we might be preprocessing Fortran.
4360         (c_common_handle_option): Don't reject switch if permit_fotran_options.
4361
4362 2003-07-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4363
4364         * genattr.c (internal_dfa_insn_code): Output prototype.
4365         * genattrtab.c: Don't output unnecessary decls, output in ISO C.
4366         * genautomata.c: Likewise.
4367         * genconditions.c: Likewise.
4368         * genemit.c: Likewise.
4369         * genextract.c: Likewise.
4370         * gengenrtl.c: Likewise.
4371         * gengtype.c: Likewise.
4372         * genopinit.c: Likewise.
4373         * genoutput.c: Likewise.
4374         * genpeep.c: Likewise.
4375         * genrecog.c: Likewise.
4376
4377 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
4378
4379         * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
4380         (struct cpp_options): Add narrow_charset, wide_charset,
4381         bytes_big_endian fields.  Remove EBCDIC field.
4382         (cpp_init_iconv, cpp_interpret_string): New external interfaces.
4383
4384         * cpphash.h: Include <iconv.h> if we have it, otherwise
4385         provide a dummy definition of iconv_t.
4386         (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
4387         (_cpp_valid_ucn): Update prototype.
4388         (_cpp_destroy_iconv): New prototype.
4389
4390         * doc/cpp.texi: Document character set handling.
4391         * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
4392         * doc/extend.texi: Delete entire section on multiline strings.
4393         Rewrite section on __FUNCTION__ etc now that these are
4394         variables in C.
4395
4396         * cppucnid.tab, cppucnid.pl: New files.
4397         * cppucnid.h: New generated file.
4398         * cppcharset.c: Include cppucnid.h.  Lots of commentary added.
4399         (iconv_open, iconv, iconv_close): Provide dummy definitions
4400         if !HAVE_ICONV.
4401         (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
4402         _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
4403         emit_numeric_escape, convert_hex, convert_oct, convert_escape,
4404         cpp_interpret_string, narrow_str_to_charconst,
4405         wide_str_to_charconst): New.
4406         (ucn_valid_in_identifier): Use a binary search through the
4407         ucnranges table defined in cppucnid.h, not a long chain of if
4408         statements.
4409         (_cpp_valid_ucn): Add a limit pointer.  Downgrade "universal
4410         character names are only valid in C++ and C99" to a warning.
4411         Issue the "meaning of \[uU] is different in traditional C"
4412         warning here.  Take care not to let iconv see an invalid UCS
4413         value if we get a malformed UCN.  Issue an error if we don't
4414         have iconv.
4415         (cpp_interpret_charconst): Moved here from cpplex.c.  Use
4416         cpp_interpret_string to do the heavy lifting.
4417
4418         * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
4419         narrow_charset, wide_charset fields of options structure.
4420         (cpp_destroy): Call _cpp_destroy_iconv.
4421         * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
4422         (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
4423         (cpp_interpret_charconst): Moved to cppcharset.c.
4424         * cpplib.c (dequote_string): Delete.
4425         (interpret_string_notranslate): New.
4426         (do_line, do_linemarker): Use interpret_string_notranslate.
4427
4428         * Makefile.in (cppcharset.o): Depend on cppucnid.h.
4429
4430         * c-common.c (fname_string, combine_strings): Delete.
4431         * c-common.h (fname_string, combine_strings): Delete prototypes.
4432         * c-lex.c (ignore_escape_flag): Delete.
4433         (cb_ident): Use cpp_interpret_string, not lex_string.
4434         (get_nonpadding_token): New function.
4435         (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
4436         Adjust calls to lex_string.  Don't write *value twice.
4437         (lex_string): Now handles string constant concatenation.
4438         Most of the work handed off to cpp_interpret_string.
4439         Call fix_string_type here.
4440         * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
4441         FUNC_NAME, throughout.
4442         (OBJC_STRING): New token type.
4443         (primary:STRING): No need to call fix_string_type here.
4444         (primary:objc_string): Make that OBJC_STRING.
4445         (objc_string nonterminal): Delete.
4446         (yylexname): Delete code to handle fake string constants.
4447         (yylexstring): Delete entirely.
4448         (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING.  No need
4449         to handle CPP_ATSIGN.
4450
4451         * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
4452         * c-opts.c (missing_arg, c_common_handle_option): Handle
4453         OPT_fexec_charset_ and OPT_fwide_exec_charset_.
4454         (c_common_init): Set cpp_opts->bytes_big_endian, not
4455         cpp_opts->EBCDIC.  Call cpp_init_iconv.
4456         (print_help): Document -fexec-charset= and -fexec-wide-charset=.
4457         (TARGET_EBCDIC): Delete default definition.
4458
4459         * objc/objc-act.c (build_objc_string_object): No need to
4460         handle string constant concatenation.
4461
4462 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
4463
4464         * doc/install.texi: Fix typos.
4465         * doc/invoke.texi: Likewise.
4466         * doc/tm.texi: Likewise.
4467
4468 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
4469
4470         * config/pa/fptr.c: Fix comment typos.
4471         * config/pa/pa-64.h: Likewise.
4472         * config/pa/pa.c: Likewise.
4473         * config/pa/pa.h: Likewise.
4474         * config/rs6000/603.md: Likewise.
4475         * config/rs6000/7xx.md: Likewise.
4476         * config/rs6000/darwin.h: Likewise.
4477         * config/rs6000/freebsd.h: Likewise.
4478         * config/rs6000/rs6000.c: Likewise.
4479         * config/rs6000/rs6000.md: Likewise.
4480         * config/rs6000/spe.h: Likewise.
4481
4482 2003-07-04  Ulrich Weigand  <uweigand@de.ibm.com>
4483
4484         * config/s390/2064.md: Change GNU CC to GCC.
4485         * config/s390/2084.md: Likewise.
4486         * config/s390/fixdfdi.h: Likewise.
4487         * config/s390/linux.h: Likewise.
4488         * config/s390/s390-modes.def: Likewise.
4489         * config/s390/s390-protos.h: Likewise.
4490         * config/s390/s390.c: Likewise.
4491         * config/s390/s390.h: Likewise.
4492         * config/s390/s390.md: Likewise.
4493         * config/s390/s390x.h: Likewise.
4494
4495 2003-07-04  Jeff Law  <law@redhat.com>
4496
4497         PR c/11428
4498         * expr.c (do_store_flag): Pass in the correct result type
4499         when calling fold_single_bit_test.
4500         * fold-const.c (fold_single_bit_test): Use result_type for the
4501         result when folding a sign bit test.
4502
4503 2003-07-04  Neil Booth  <neil@daikokuya.co.uk>
4504
4505         * opts.c (common_handle_options): Negate sense of -falign- switches.
4506
4507 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
4508
4509         * Makefile.in: Replace PWD with PWD_COMMAND.
4510
4511 2003-07-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4512
4513         * cfgloopanal.c (count_strange_loop_iterations): New static function.
4514         (constant_iterations, count_loop_iterations, simple_loop_exit_p):
4515         Handle strange loops.
4516
4517 2003-07-04  Toon Moene  <toon@moene.indiv.nluug.nl>
4518
4519         * install.texi: Even the g77 manpage is derived from
4520         the full g77 manual.
4521
4522 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
4523
4524         * ABOUT-NLS: Delete.
4525         * intl: Delete entire directory.
4526         * aclocal.m4: Include ../config/gettext.m4.  Delete
4527         AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
4528         AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
4529         * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
4530         Remove intl/Makefile from all_outputs.
4531         * configure, config.in: Regenerate.
4532         * Makefile.in: Expunge all references to intl subdirectory.
4533         Add -I../intl to INCLUDES.
4534         * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
4535
4536 2003-07-04  Roger Sayle  <roger@eyesopen.com>
4537
4538         * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
4539         * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
4540
4541 2003-07-04  Danny Smith  <dannysmith@users.sourceforge.net>
4542
4543         PR c++/5287, PR c++/7910, PR c++/11021
4544         * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
4545         dllimport attribute if function is defined at declaration, but
4546         report error instead. Likewise for dllimport'd variable
4547         definitions.  Set implicit TREE_PUBLIC for dllimport'd variables
4548         declared within functions, Report error if dllimport or dllexport
4549         symbol is not global.
4550         (i386_pe_dllimport_p): Ignore dllimport attribute of functions
4551         if defined after declaration or if inlined. Don't allow definition
4552         of static data members of C++ classes. Don't dllimport virtual
4553         methods.
4554         (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
4555         (i386_pe_mark_dllimport): Remove unnecessary checks.
4556         (i386_pe_encode_section_info): Warn if the dllimport attribute
4557         and symbol prefix have been instantiated and then overridden.
4558
4559         * doc/extend.texi: Document dllimport and dllexport attributes.
4560
4561         * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
4562
4563 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
4564
4565         * config/kaos.h (CPP_PREDEFINES): Delete.
4566         (TARGET_OS_CPP_BUILTINS): New.
4567
4568 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4569
4570         * c-aux-info.c: Include toplev.h after c-tree.h.
4571         * c-common.c: Likewise.
4572         (GCC_DIAG_STYLE): Undef.
4573         * c-semantics.c (GCC_DIAG_STYLE): Define.
4574         * c-tree.h (GCC_DIAG_STYLE): Likewise.
4575         * diagnostic.h (inform): Move prototype to toplev.h.
4576         * jump.c: Include diagnostic.h before toplev.h.
4577         * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
4578         (warning, error, fatal_error, pedwarn, sorry, inform,
4579         error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
4580
4581 2003-07-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4582
4583         * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
4584         at all if edge is not specified.
4585         (can_copy_bbs_p, copy_bbs): New.
4586         * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
4587         * cfgloop.c (get_loop_body): Comment more precisely.
4588         * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
4589         (scale_bbs_frequencies): Fix comment typo.
4590         (can_duplicate_loop_p): Use can_copy_bbs_p.
4591         (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
4592
4593 2003-07-03  Devang Patel <dpatel@apple.com>
4594
4595         * c-opts.c (c_common_parse_file): Remove extra
4596         debug_hooks->start_source_file call.
4597
4598 2003-07-03  Roger Sayle  <roger@eyesopen.com>
4599
4600         * real.c (real_trunc, real_floor, real_ceil): New functions
4601         to implement trunc, floor and ceil respectively.
4602         * real.h (real_trunc, real_floor, real_ceil): Prototype here.
4603         * builtins.c (integer_valued_real_p): New function to test if
4604         a floating point expression has an integer valued result.
4605         (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
4606         foo(x) where foo is an integer rounding function.  Similarly,
4607         optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
4608         (double)(int)x when both foo and bar are integer rounding
4609         functions and we don't need to honor errno.
4610         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
4611         New functions to fold trunc, floor and ceil.
4612         (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
4613         fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
4614         to fold BUILT_IN_CEIL*.
4615         * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
4616         the remaining integer rounding functions.
4617
4618 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
4619
4620         * config/sparc/sparc.c (function_arg_partial_nregs): Use
4621         SPARC_INT_ARG_MAX to determine where to split unnamed
4622         complex FP arguments.
4623
4624 Thu Jul  3 20:36:47 CEST 2003  Jan Hubicka  <jh@suse.cz>
4625
4626         * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
4627         * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
4628         (merge_blocks_move_predecessor_nojumps,
4629          merge_blocks_move_successor_nojumps): Use merge_blocks.
4630         (try_optimize_cfg): Use merge_blocks_move.
4631         * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
4632         (merge_blocks_nomove): Rename to rtl_merge_blocks.
4633         (cfg_layout_create_basic_block): New.
4634         (rtl_can_merge_blocks): New.
4635         (cfg_layout_split_block): Do not alloc aux by hand.
4636         * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
4637         merge_blocks.
4638         (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
4639         * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
4640         * cfgloopmanip.c (loop_split_edge_with): Likewise.
4641         * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
4642
4643         * basic-block.h (basic_block_def): Add field 'rbi'.
4644         * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
4645         find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
4646         * cfg.c (entry_exit_blocks): Add new field.
4647         * cfglayout.c: Include alloc-pool.h;
4648         (cfg_layout_pool): New.
4649         (record_effective_endpoints, fixup_reorder_chain,
4650         fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
4651         of rbi.
4652         (cfg_layout_initialize_rbi): New function.
4653         (cfg_layout_initialize): Use it.
4654         (cfg_layout_finalize): Clear rbi fields.
4655         * cfglayout.h (RBI): Kill.
4656         (cfg_layout_initialize_rbi): Declare.
4657         * cfgloopmanip.c (copy_bbs): Use rbi.
4658         (record_exit_edges): Likewise.
4659         (duplicate_loop_to_header_edge): Likewise.
4660         * cfgrtl.c (cfg_layout_create_basic_block): Use
4661         cfg_layout_initialize_rbi.
4662         (cfg_layout_split_block): Use rbi.
4663         (cfg_layout_delete_block): Likewise.
4664         * loop-init.c (loop_optimizer_finalize): Likewise.
4665         * loop-unswitch.c (unswitch_loop): Likewise.
4666         * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
4667
4668         * cfgrtl.c: Update comments.
4669         (try_redirect_by_replacing_jump): New argument.
4670         (redirect_branch_edge): Break out from ...
4671         (rtl_redirect_edge_and_branch): ... this one.
4672         (update_cfg_after_block_merging): Break out from ...
4673         (rtl_merge_blocks): ... this one.
4674         (cfg_layout_split_edge): New.
4675         (cfg_layout_merge_blocks): New.
4676         (cfg_layout_can_merge_blocks_p): New.
4677         (cfg_layout_redirect_edge_and_branch): Reorganize.
4678         (cfg_layout_rtl_cfg_hooks): Fill in.
4679         (cfg_layout_delete_block): Kill barriers.
4680         * cfganal.c (can_fallthru): Deal with exit blocks
4681         * cfglayout.c (cfg_layout_function_header): New function
4682         (record_effective_endpoints): Record function header.
4683         (fixup_reorder_chain): Fixup dead jumptables; place header
4684
4685         * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
4686         * bb-reorder.c (cfg_layout_initialize): Update call.
4687         * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
4688         edges in cfglayout mode.
4689         * cfglayout.c (cleanup_unconditional_jumps): Kill.
4690         (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
4691         * cfglayout.h (cfg_layout_initialize): Update prototype.
4692         * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
4693         * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
4694         * flow.c (propagate_block): Do not crash when basic block ends
4695         by first insn in the chain.
4696         * loop-init.c (loop_optimizer_init):  First enter cfglayout mode; later
4697         do loop discovery.
4698         * tracer.c (tracer): Update call of cfg_layout_initialize.
4699
4700 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4701
4702         * Makefile.in: Use dependency variables in lieu of explicit
4703         files throughout.
4704
4705 2003-07-03  Steven Bosscher  <steven@gcc.gnu.org>
4706
4707         * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
4708         * tree.h: ...to here.
4709
4710 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
4711
4712         * config/s390/2064.md: Fix comment typos.
4713         * config/s390/2084.md: Likewise.
4714         * config/s390/s390.c: Likewise.
4715         * config/s390/s390.md: Likewise.
4716         * config/sh/sh.c: Likewise.
4717         * config/sh/sh.h: Likewise.
4718         * config/sh/sh.md: Likewise.
4719         * config/sparc/sparc.c: Likewise.
4720         * config/sparc/sparc.h: Likewise.
4721         * config/sparc/sparc.md: Likewise.
4722         * config/stormy16/stormy16.c: Likewise.
4723         * config/stormy16/stormy16.h: Likewise.
4724         * config/stormy16/stormy-abi: Fix a typo.
4725
4726 2003-07-03  Kelley Cook  <kelleycook@wideopenwest.org>
4727
4728         * Makefile.in (ifcvt.o): Depend on OPTABS_H.
4729
4730 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4731
4732         * config/mips/mips.h (save_argv): Delete.
4733
4734 2003-07-03  Roger Sayle  <roger@eyesopen.com>
4735
4736         PR target/10700
4737         * fold-const.c (extract_muldiv_1): There's nothing that can be done
4738         if the expression is a SAVE_EXPR.
4739
4740 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
4741
4742         * config/m32r/m32r.c: Fix comment typos.
4743         * config/m68hc11/m68hc11.c: Likewise.
4744         * config/m68hc11/m68hc11.h: Likewise.
4745         * config/m68k/m68k.c: Likewise.
4746         * config/mcore/mcore.c: Likewise.
4747         * config/mcore/mcore.h: Likewise.
4748         * config/mcore/mcore.md: Likewise.
4749         * config/mips/mips.c: Likewise.
4750         * config/mips/mips.h: Likewise.
4751         * config/mips/mips.md: Likewise.
4752         * config/mips/netbsd.h: Likewise.
4753         * config/mn10300/mn10300.c: Likewise.
4754
4755 2003-07-03  Andreas Schwab  <schwab@suse.de>
4756
4757         * dbxout.c (pending_bincls): Move decl down inside
4758         DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
4759
4760 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
4761
4762         * rtl.h (NOTE_DATA): Refer to whole union.
4763         * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
4764
4765 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
4766
4767         PR optimization/11381
4768         * simplify-rtx.c (simplify_relational_operation): Check that
4769         two equal operands have no side-effects before simplifying
4770         the comparison.
4771
4772 2003-07-02  Jeff Law  <law@redhat.com>
4773
4774         * expr.c (do_store_flag): Remove special case folding for
4775         single bit tests.  Instead call back into the commonized folder
4776         routine.
4777         * fold-const.c (fold_single_bit_test): New function, mostly
4778         extracted from do_store_flag, with an additional case extracted
4779         from fold.
4780         (fold): Call fold_single_bit_test appropriately.
4781         * tree.h (fold_single_bit_test): Prototype.
4782
4783 2003-07-02  Zack Weinberg  <zack@codesourcery.com>
4784
4785         * system.h: Include filenames.h.
4786         (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
4787         (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
4788         define based on HAVE_DOS_BASED_FILE_SYSTEM.
4789         * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
4790         * config/i386/xm-mingw32.h: Don't define
4791         HAVE_DOS_BASED_FILE_SYSTEM,
4792         DIR_SEPARATOR, or DIR_SEPARATOR_2.
4793         * doc/hostconfig.texi: Update to match.
4794
4795         * cppfiles.c, gcc.c, gensupport.c, protoize.c,
4796         config/i386/cygwin.h:
4797         Use IS_ABSOLUTE_PATH throughout.
4798         * gcc.c (DIR_UP): Delete, unused.
4799         * protoize.c (IS_SAME_PATH): Define in terms of
4800         FILENAME_CMP.
4801         (is_abspath): Delete.
4802
4803 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
4804
4805         * config/i386/emmintrin.h: Fix comment typos.
4806         * config/i386/i386.c: Likewise.
4807         * config/i386/i386.h: Likewise.
4808         * config/i386/sco5.h: Likewise.
4809         * config/ia64/ia64.c: Likewise.
4810         * config/ia64/itanium2.md: Likewise.
4811
4812 2003-07-02  H.J. Lu  <hongjiu.lu@intel.com>
4813
4814         * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
4815         DBX_USE_BINCL.
4816         (emit_bincl_stab): Same.
4817         (emit_pending_bincls): Same.
4818
4819 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
4820
4821         * config/h8300/h8300.c (compute_mov_length): Fix the length of
4822         loading CONST0_RTX (SFmode).
4823         * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
4824         'G' to CONST0_RTX (SFmode).
4825         * config/h8300/h8300.md (movsf_h8300): Change the first
4826         constraint to 'G'.
4827         (movsf_h8300h): Likewise.
4828
4829 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
4830
4831         * c-common.h (c_common_init_options): New prototype.
4832         * c-opts.c (deferred_size): Remove.
4833         (defer_opt): Array is now pre-allocated.
4834         (c_common_init_options): Pre-allocate deferred_opts.  Make
4835         lang_flags unsigned.
4836         (push_command_line_options): Free deferred_opts.
4837         * hooks.c (hook_uint_uint_constcharptrptr_0): New.
4838         * hooks.h (hook_uint_uint_constcharptrptr_0): New.
4839         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
4840         * langhooks.h (struct lang_hooks): New prototype for init_options.
4841         * main.c (main): Cast argv.
4842         * opts.c (handle_option, handle_options): Update prototypes.
4843         (decode_options): save_argc, save_argv are not global.  Constify.
4844         * opts.h (decode_options): New prototype.
4845         * toplev.c (general_init): New protoype.
4846         (save_argv): Make static.
4847         (save_argc): Remove.
4848         (print_switch_values, general_init): Constify.
4849         (toplev_main): Save argv.
4850         * toplev.h (toplev_main): Update prototype.
4851         (save_argc, save_argv): Remove.
4852
4853 2003-07-02  David Edelsohn  <edelsohn@gnu.org>
4854
4855         * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
4856         (emit_bincl_stab): Same.
4857         (emit_pending_bincls): Same.
4858
4859 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
4860
4861         PR c++/11072
4862         * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
4863
4864 2003-07-02  Andreas Schwab  <schwab@suse.de>
4865
4866         * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
4867
4868 2003-07-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
4869
4870         PR optimization/11210
4871         * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
4872         about the behaviour with regard to bitfields.
4873         * fold-const (decode_field_reference): Record outermost type in
4874         case the expression is a NOP. Strip all NOPs. Set the signedness
4875         to that of the outermost type (if any) when the bitsize is equal
4876         to the size of the type.
4877
4878 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
4879
4880         * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
4881         (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
4882         (adddi3_internal_3, addsi3_internal_2): Likewise.
4883
4884 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
4885
4886         * config/mips/mips.c (machine_function): Add new fields:
4887         ignore_hazard_length_p and all_noreorder_p.
4888         (mips_flag_delayed_branch): New variable.
4889         (override_options): Treat '/' as an operand punctuation character.
4890         Set up mips_flag_delayed_branch.
4891         (print_operand): Handle '/'.
4892         (mips_output_function_prologue): Put the whole function in
4893         .set noreorder and .set nomacro if all_noreorder_p is true.
4894         (mips_output_function_epilogue): End the noreorder/nomacro sequence.
4895         (mips16_optimize_gp): Remove "first insn" parameter.
4896         (mips16_lay_out_constants): New function, split out from mips_reorg.
4897         (mips_avoid_hazard, mips_avoid_hazards): New functions.
4898         (mips_reorg): For mips16 code, call mips16_lay_out_constant
4899         and (optionally) mips16_optimize.  If TARGET_EXPLICIT_RELOCS,
4900         do delayed-branch scheduling followed by hazard detection.
4901         (mips_adjust_insn_length): Only account for hazards if
4902         !ignore_hazard_length_p.
4903         (mips_output_load_label): Add a nop to the o32 sequence if
4904         the target suffers from load delays.
4905         (mips_output_conditional_branch): Add %/ to the end of branches.
4906         (mips_output_division): Fill the branch delay slot with %#.
4907         * config/mips/mips.md: Remove redundant '%*' from mips16 branch
4908         instructions.  End all other %* branches with %/.
4909         (ffssi2, ffsdi2): Fix lengths.
4910         (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
4911         (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
4912         (fix_truncsfsi2_macro): Likewise.
4913         (mov_lwl): Set hazard to "none".
4914         (ashldi3_internal): Fill the branch delay slot with %#.
4915         (ashrdi3_internal, lshrdi3_internal): Likewise.
4916         (exception_receiver): Explicitly set $28.
4917         (hazard_nop): New pattern.
4918
4919 Wed Jul  2 08:12:36 CEST 2003  Jan Hubicka  <jh@suse.cz>
4920
4921         * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
4922         before calling tree_inlinable_function_p.
4923
4924 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4925
4926         * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
4927         <internal/stdio_core.h> too.
4928         (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
4929         <internal/wchar_core.h> too.
4930         Substitute va_list uses in inline definition.
4931         * fixinc/fixincl.x: Regenerate.
4932
4933 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4934
4935         * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
4936         Undef before redefinition.
4937         (LABEL_AFTER_LOC): Likewise.
4938         (DEFAULT_SIGNED_CHAR): Likewise.
4939         (ASM_OUTPUT_ASCII): Moved here from iris4.h.
4940         Fix IRIX spelling.
4941
4942         * config/mips/iris3.h: Remove, unused.
4943         * config/mips/iris4.h: Likewise.
4944
4945         * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
4946
4947         * config/mips/iris5.h (TARGET_DEFAULT): Move ...
4948         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
4949         target_cpu_default.
4950
4951         * config/mips/iris5.h: Move explicit includes ...
4952         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
4953
4954         * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
4955         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
4956         tm_defines.
4957
4958         * config/mips/iris6.h (TARGET_DEFAULT): Move ...
4959         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
4960         target_cpu_default.
4961
4962         * config/mips/iris6.h: Fix IRIX spelling.
4963         (MULTILIB_DEFAULTS): Undef before redefinition.
4964
4965         * config/mips/iris6.h: Move explicit includes ...
4966         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
4967
4968 Wed Jul  2 02:16:48 CEST 2003  Jan Hubicka  <jh@suse.cz>
4969
4970         * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
4971         cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
4972         Use next_needed field instead of aux to maintain the queue.
4973         * cgraph.h (cgraph_node): Add next_needed.
4974         (cgraph_varpool_node): Add next_needed; remove aux.
4975         * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
4976
4977 Wed Jul  2 02:12:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
4978
4979         * cgraphunit.c (cgraph_finalize_function): Set finalized.
4980         (cgraph_finalize_function): Do not examine inlinablility.
4981         (cgraph_finalize_compilation_unit): Do it here.
4982         * cgraph.h (cgraph_local_info): Add finalized field.
4983
4984 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4985
4986         * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
4987         (gt_pch_restore): Likewise.
4988
4989 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
4990
4991         * config/alpha/alpha.c: Fix comment typos.
4992         * config/alpha/elf.h: Likewise.
4993         * config/arm/arm.c: Likewise.
4994         * config/arm/arm.h: Likewise.
4995         * config/arm/arm.md: Likewise.
4996         * config/arm/t-arm-coff: Likewise.
4997         * config/arm/t-strongarm-pe: Likewise.
4998         * config/arm/xscale-elf.h: Likewise.
4999         * config/avr/avr.h: Likewise.
5000
5001 2003-07-01  Jeff Law  <law@redhat.com>
5002
5003         * stmt.c (any_pending_cleanups): Remove another redundant test.
5004
5005 2003-07-01  David Edelsohn  <edelsohn@gnu.org>
5006             J"orn Rennecke <joern.rennecke@superh.com>
5007
5008         * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
5009         for MEM case.
5010
5011 2003-07-01  Devang Patel  <dpatel@apple.com>
5012
5013         * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
5014         (binclstatus): New.
5015         (struct dbx_file): New members - bincl_status, pending_bincl_name and
5016         prev.
5017         (pending_bincls): New.
5018         (dbxout_init): Initialize new dbx_file members.
5019         (dbxout_start_source_file): Same.
5020         (emit_bincl_stab): New function.
5021         (emit_pending_bincls): Same.
5022         (emit_pending_bincls_if_required): Same.
5023         (dbxout_end_source_file): Emit EINCL stab only if BINCL is  already
5024         processed.
5025         (dbxout_begin_block): Emit pending BINCL stabs.
5026         (dbxout_end_block): Same.
5027         (dbxout_function_decl): Same.
5028         (dbxout_continue): Same.
5029         (dbxout_type): Same.
5030         (dbxout_class_name_qualifiers): Same.
5031         (dbxout_symbol): Same.
5032         (dbxout_symbol_location): Same.
5033         (dbxout_parms): Same.
5034
5035 2003-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5036
5037         * c-semantics.c (genrtl_case_label): Fix format specifier bug.
5038         * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
5039
5040 2003-07-01  Andreas Jaeger  <aj@suse.de>
5041
5042         * fold-const.c: Convert prototypes to ISO C90.
5043         * function.c: Likewise.
5044         * function.h: Likewise.
5045
5046 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
5047
5048         * doc/contrib.texi: Fix typos.
5049         * doc/invoke.texi: Likewise.
5050         * doc/passes.texi: Likewise.
5051         * doc/sourcebuild.texi: Likewise.
5052         * doc/tm.texi: Likewise.
5053
5054 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
5055
5056         * basic-block.h: Fix comment typos.
5057         * bb-reorder.c: Likewise.
5058         * c-format.c: Likewise.
5059         * cfgcleanup.c: Likewise.
5060         * cfghooks.h: Likewise.
5061         * cfgloop.c: Likewise.
5062         * cfgloopmanip.c: Likewise.
5063         * cfgrtl.c: Likewise.
5064         * cgraph.h: Likewise.
5065         * cgraphunit.c: Likewise.
5066         * combine.c: Likewise.
5067         * convert.c: Likewise.
5068         * dbxout.c: Likewise.
5069         * df.c: Likewise.
5070         * df.h: Likewise.
5071         * diagnostic.c: Likewise.
5072         * dwarf2out.c: Likewise.
5073         * et-forest.h: Likewise.
5074         * flow.c: Likewise.
5075         * fold-const.c: Likewise.
5076         * function.h: Likewise.
5077         * gcov-io.h: Likewise.
5078         * gcov.c: Likewise.
5079         * gcse.c: Likewise.
5080         * genautomata.c: Likewise.
5081         * ggc-common.c: Likewise.
5082         * ggc-page.c: Likewise.
5083         * loop-unroll.c: Likewise.
5084         * loop-unswitch.c: Likewise.
5085         * loop.c: Likewise.
5086         * mips-tfile.c: Likewise.
5087         * optabs.c: Likewise.
5088         * ra-build.c: Likewise.
5089         * ra-colorize.c: Likewise.
5090         * ra-rewrite.c: Likewise.
5091         * ra.h: Likewise.
5092         * regmove.c: Likewise.
5093         * reload.c: Likewise.
5094         * rtlanal.c: Likewise.
5095         * sched-ebb.c: Likewise.
5096         * sched-int.h: Likewise.
5097         * sched-vis.c: Likewise.
5098         * sreal.c: Likewise.
5099         * ssa-ccp.c: Likewise.
5100         * ssa.c: Likewise.
5101         * toplev.c: Likewise.
5102         * tree-inline.c: Likewise.
5103         * value-prof.c: Likewise.
5104         * value-prof.h: Likewise.
5105
5106 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
5107
5108         * rtl.h (emit_line_note_after): Remove.
5109         (emit_note_copy_after, emit_note_copy): New.
5110         * emit-rtl.c (reorder_insns_with_line_notes): Replace
5111         emit_line_note_after with emit_note_copy_after.
5112         (emit_insn_after_with_line_notes): Likewise.
5113         (emit_line_note_after): Kill.
5114         (emit_note_copy_after): New.
5115         (emit_note_copy): New.
5116         * function.c (emit_return_into_block): Use emit_note_copy_after.
5117         (thread_prologue_and_epilogue_insns): Likewise.
5118         * integrate.c (expand_inline_function): Use emit_note_copy.
5119         (copy_insn_list): Likewise.
5120         * unroll.c (copy_loop_body): Likewise.
5121         * cfglayout.c (duplicate_insn_chain): Likewise.
5122
5123 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
5124
5125         * c-tree.h (define_label): Replace filename and lineno arguments
5126         with a location_t.
5127         * c-decl.c (poplevel): Adjust define_label call.
5128         (pop_label_level): Likewise.
5129         (define_label): Replace filename and lineno arguments with a
5130         location_t.
5131         (store_parm_decls): Use DECL_SOURCE_LOCATION.
5132         * c-parse.in (label): Adjust define_label call.
5133
5134 2003-07-01  Neil Booth  <neil@daikokuya.co.uk>
5135
5136         * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
5137         config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
5138         config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
5139         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
5140         config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
5141
5142 2003-07-01  Andreas Jaeger  <aj@suse.de>
5143
5144         * final.c: Convert prototypes to ISO C90.
5145         * flow.c: Likewise.
5146         * flags.h: Likewise.
5147         * gcov-io.c: Likewise.
5148         * gcov-io.h: Likewise.
5149
5150 See ChangeLog.9 for earlier changes.