OSDN Git Service

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