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