OSDN Git Service

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