1 2003-07-17 Zack Weinberg <zack@codesourcery.com>
3 * c-decl.c (pushdecl_function_level): Make static, return nothing.
4 (kept_level_p): Fold into poplevel.
5 (undeclared_variable): Moved here from c-typeck.c. Export.
6 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
7 (undeclared_variable): Prototype here. Don't prototype
8 kept_level_p nor pushdecl_function_level.
9 * c-parse.in: Change first argument to poplevel from
10 "kept_level_p()" to "KEEP_MAYBE".
11 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
13 2003-07-17 Roger Sayle <roger@eyesopen.com>
15 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
16 commutative operands instead of modifying the RTL in-place.
18 2003-07-17 Mark Mitchell <mark@codesourcery.com>
21 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
22 unless we know which function is being called.
24 2003-07-17 Roger Sayle <roger@eyesopen.com>
26 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
27 whether to reorder the operands of a commutative binary operator.
29 2003-07-17 Roger Sayle <roger@eyesopen.com>
31 * fold-const.c (const_binop): Avoid performing the FP operation at
32 compile-time, if either operand is NaN and we honor signaling NaNs,
33 or if we're dividing by zero and either flag_trapping_math is set
34 or the desired mode doesn't support infinities.
35 (fold_initializer): New function to fold an expression ignoring any
36 potential run-time exceptions or traps.
37 * tree.h (fold_initializer): Prototype here.
38 * c-typeck.c (build_binary_op): Move to the end of the file so
39 that intializer_stack is in scope. If constructing an initializer,
40 i.e. when initializer_stack is not NULL, use fold_initializer to
42 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
43 performing FP operations at compile-time, if they would raise an
44 exception at run-time.
46 2003-07-17 Geoffrey Keating <geoffk@apple.com>
49 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
50 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
51 (GTFILES): Add langhooks.c.
52 (gt-langhooks.h): New.
53 * c-common.h (c_static_assembler_name): Prototype.
54 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
55 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
56 * c-opts.c: Include langhooks-def.h.
57 (c_static_assembler_name): New.
58 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
60 (lhd_set_decl_assembler_name): Give static objects with context
62 * varasm.c (var_labelno): Delete.
63 (make_decl_rtl): Don't change the assembler name once it's set.
65 * c-opts.c (this_input_filename): New.
66 (finish_options): Take new parameter, name of file being compiled.
67 Update callers. Set this_input_filename.
68 (push_command_line_include): Use this_input_filename not
71 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
73 * Makefile.in: Depend .pot generation on options.c.
74 * po/exgettext: Add an extra_files variable containing additional
77 2003-07-17 Zack Weinberg <zack@codesourcery.com>
79 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
80 c_write_global_declarations.
82 * c-decl.c: Fix typos in several comments. Remove all
83 #if 0 blocks; reindent as needed. Remove unused argument
84 to declare_parm_level; all callers changed.
85 * c-parse.in: Update calls to declare_parm_level. Avoid
86 issuing a double warning in some circumstances.
87 * c-typeck.c: Update calls to declare_parm_level.
88 * c-tree.h: Update prototype of declare_parm_level.
90 * c-pragma.c (apply_pragma_weak): Don't complain about a
91 redundant #pragma weak.
93 * objc/objc-act.c (forward_declare_categories,
94 build_selector_reference_decl, build_class_reference_decl,
95 build_objc_string_decl, synth_forward_declarations,
96 build_protocol_reference): Set TREE_PUBLIC on synthetic
97 forward decl to 0, consistent with eventual definition.
98 Correct comments to match.
100 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
101 in regexp that don't form a range expression.
102 * fixinc/fixincl.def: Regenerate.
104 2003-07-17 Richard Henderson <rth@redhat.com>
107 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
108 even with !TARGET_CONST_GP.
109 (ia64_function_ok_for_sibcall): Reject non-local functions.
111 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
113 * c-common.c (c_estimate_num_insns_1): Don't handle
115 * expr.c (safe_from_p): Likewise.
116 * gengtype.c (adjust_field_tree_exp): Likewise.
117 * stmt.c (warn_if_unused_value): Likewise
118 * tree.c (first_rtl_op): Likewise.
119 * tree.def: Don't define METHOD_CALL_EXPR.
120 * java/lang.c (java_estimate_num_insns_1): Don't handle
123 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
126 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
127 and its restrictions for the SPARC64 port.
128 Move the entry of "-mimpure-text" before that of "-mv8".
130 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
131 Phil Edwards <phil@jaj.com>
133 * doc/install.texi (*-*-solaris2*): Document the step-by-step
134 procedure to bootstrap and install.
135 Document the preference for the legacy Sun tools in /usr/bin
136 over the POSIX tools in /usr/xpg4/bin for the build process.
138 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
140 * c.opt: Document Uncodumented; use it. Document ObjC options.
141 * opts.c (print_filtered_help): Skip undocumented switches.
142 * opts.h (CL_UNDOCUMENTED): New.
143 * opts.sh: Handle Undocumented.
144 * toplev.c (documented_lang_options): Prevent its becoming empty.
146 * lang-options.h: Remove.
148 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
150 * loop.c (check_ext_dependent_givs): Pass const struct loop *
151 instead of struct loop_info * as argument. Accept BIVs with
152 increment +/- 1 provided there is a friendly exit test against
153 a loop-invariant value.
154 (strength_reduce): Adapt call to check_ext_dependent_givs.
156 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
157 Con Bradley <con.bradley@superh.com>
159 * sh-protos.h (sh_get_pr_initial_val): Declare.
160 * sh.c (regno_reg_class): Make its elements type enum reg_class.
161 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
162 and live_regs_mask arguments. Changed all callers.
163 (save_schedule_s): New structure.
164 (save_schedule): New typedef.
165 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
166 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
167 In interrupts handlers, also save registers that are usually
168 partially saved, and make sure there is at least one general purpose
169 register saved if a target register needs saving.
170 Add casts in comparisons to avoid warnings.
171 (sh_media_register_for_return): return -1 for interrupt handlers.
172 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
173 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
174 registers used are available.
175 Set RTX_FRAME_RELATED_P where appropriate.
176 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
177 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
178 (initial_elimination_offset): Likewise.
179 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
180 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
181 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
182 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
183 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
184 and for target registers.
185 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
186 (regno_reg_class): Make its elements type enum reg_class.
187 (CONSTRAINT_LEN): Don't use isdigit.
188 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
189 (FUNCTION_ARG): Add parentheses to avoid warnings.
190 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
191 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
192 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
193 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
194 * sh.md (xordi3+1): Remove unused variable regno.
195 (return_media): Check that tr0 is available before using it.
197 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
199 * c.opt: Document more options.
201 2003-07-16 Roger Sayle <roger@eyesopen.com>
203 * combine.c (subst): Also handle (subreg (const_double ...)) case
204 if created by a substitution, by using the original inner mode.
206 2003-07-16 Roger Sayle <roger@eyesopen.com>
208 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
209 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
210 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
212 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
214 * doc/install.texi (--without-headers): New.
217 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
218 (machopic_output_function_base_name): New; print the true pic label.
219 (machopic_classify_ident): Pic Base is always a defined data.
220 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
221 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
223 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
224 if they are not floating point registers.
227 * ggc.h: Add header guards.
228 * c-decl.c (finish_struct): Sort fields if
229 number greater than 15 and there are no
230 anonymous structs/unions.
231 * c-common.h: Include ggc.h.
232 (sorted_fields_type): New struct.
233 (field_decl_cmp): New prototype.
234 (resort_sorted_fields): New prototype.
235 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
236 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
237 as s, removing other fields.
238 * c-typeck.c (lookup_field): Use s in lang_type.
239 These were mostly moved from cp/class.c:
240 * c-common.c (field_decl_cmp): New static function.
241 (field_decl_cmp): New function.
242 (resort_sorted_fields): New function.
244 2003-07-16 Geoffrey Keating <geoffk@apple.com>
246 * config/darwin.c (machopic_select_section): Use decl_readonly_section
247 to do most of the work.
249 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
251 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
252 * config/mmix/mmix.c: Convert functions to ISO C90.
253 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
255 (mmix_get_hard_reg_initial_val): Tweak section head comment.
257 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
259 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
261 2003-07-16 Jakub Jelinek <jakub@redhat.com>
263 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
264 (uw_update_context_1): Use it.
265 * config/rs6000/rs6000.c (insn_after_throw): Remove.
266 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
267 in parent frame if _Unwind_* called directly instead of through
269 (rs6000_emit_eh_toc_restore): Remove.
270 (rs6000_emit_prologue): Update stack pointer before doing any saving
271 if current_function_calls_eh_return. Generate unwind info for $r2.
272 (rs6000_emit_epilogue): Restore stack pointer after doing all
273 restoring if current_function_calls_eh_return. Restore $r2.
274 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
275 * config/rs6000/rs6000.md (eh_return): Remove call to
276 rs6000_emit_eh_toc_restore.
277 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
278 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
280 2003-07-15 Jakub Jelinek <jakub@redhat.com>
282 * expr.c (emit_block_move): Don't move anything if size is const 0.
283 (clear_storage): Test against const0_rtx instead of comparing INTVAL
286 2003-07-15 David S. Miller <davem@redhat.com>
288 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
289 emit nop if the last real insn is CALL_INSN.
291 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
293 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
295 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
297 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
299 * config/i386/winnt.c (associated_type): Artificial methods are not
300 affected by the import/export status of their class unless they are
302 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
304 * config/i386/winnt.c: Fix GCC copyright comment.
306 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
309 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
310 not recursing on hard error.
311 (diagnostic_for_decl): Likewise.
312 * diagnostic.def: Rearrange.
314 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
316 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
317 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
319 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
320 Richard Henderson <rth@redhat.com>
322 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
323 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
324 (_Unwind_SetGR): Likewise.
325 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
326 (Unwind_SpTmp): New typedef.
327 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
328 (uw_update_context): Use _Unwind_GetPtr.
329 (init_dwarf_reg_size_table): Move above uw_init_context_1.
330 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
331 Use _Unwind_SetSpColumn.
332 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
335 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
337 * c.opt: Document more options.
338 * toplev.c (documented_lang_options): Remove all local help strings.
340 2003-07-15 Mark Mitchell <mark@codesourcery.com>
343 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
346 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
349 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
350 swap comparison operands if doing so would generate an
353 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
355 PR optimization/11320
356 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
357 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
358 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
359 current_sched_info->compute_jump_reg_dependencies. Record which
360 registers are used and which registers are set by the jump.
361 Clear deps->reg_conditional_sets after a barrier.
362 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
363 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
364 (init_deps): Initialize reg_conditional_sets.
365 (free_deps): Clear reg_conditional_sets.
366 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
367 Mark registers live on entry of the fallthrough block and conditionally
368 set as set by the jump. Mark registers live on entry of non-fallthrough
369 blocks as used by the jump.
370 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
371 Mark new parameters as unused.
373 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
375 * doc/invoke.texi: Resync MIPS -march documentation.
377 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
379 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
380 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
381 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
382 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
383 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
384 (mips_issue_rate): Handle PROCESSOR_R9000.
385 (mips_use_dfa_pipeline_interface): Likewise.
386 * config/mips/9000.md: New file.
387 * config/mips/mips.md: Include it.
388 (define_attr cpu): Add r9000.
389 (mulsi3_mult3): Use "mul" for rm9000 code.
391 2003-07-15 Stan Cox <scox@redhat.com>
393 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
394 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
395 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
396 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
397 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
398 (mips_issue_rate): Handle PROCESSOR_R7000.
399 (mips_use_dfa_pipeline_interface): Likewise.
400 * config/mips/7000.md: New file.
401 * config/mips/mips.md: Include it.
402 (define_attr cpu): Add r7000.
403 (mulsi3_mult3): Use "mul" for rm7000 code.
405 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
407 * config/mips/mips.md (define_attr type): Add condmove. Use it for
408 the conditional move patterns.
409 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
410 Check for condmove type.
411 (ir_vr54_arith): Add move type.
412 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
413 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
415 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
417 * c-opts.c (print_help): Remove.
418 (c_common_handle_option): Don't handle --help.
419 * c.opt: Document some options.
421 * opts.c (print_filtered_help): New.
422 (print_help): Use it.
424 2003-07-14 Geoffrey Keating <geoffk@apple.com>
426 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
427 * tree.c: (build_common_tree_nodes_2): Likewise.
428 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
429 (V4DF_type_node): New.
431 * c-opts.c (push_command_line_include): Don't free deferred_opts,
433 (finish_options): Reset init_cursor.
435 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
437 * expr.c (expand_assignment): Remove an unused argument
439 * expr.h: Update the prototype.
440 * function.c: Update the callers.
443 2003-07-14 Mark Mitchell <mark@codesourcery.com>
446 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
449 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
451 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
452 with __cplusplus, not "we must use the C++ compiler's type"
453 * fixinc/inclhack.def (void_null): Note that Interix needs this.
454 * fixinc/fixincl.x: Regenerate.
456 2003-07-14 Geoffrey Keating <geoffk@apple.com>
458 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
459 and unseen_objects from the global data before calling
460 __deregister_frame_info_bases.
461 (examine_objects): Insert objects into the seen_objects list,
463 (_Unwind_Find_FDE): Always unlock the global object lists, even if
464 we couldn't allocate a data structure to put in it.
466 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
467 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
468 (SET_TYPE_PROTOCOL_LIST): New.
469 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
470 (get_object_reference): Likewise.
472 Mon Jul 14 23:14:28 CEST 2003 Jan Hubicka <jh@suse.cz>
474 * cfglayout.c (locator_file): Break out from ....
475 (insn_file): ... here.
476 (locator_line): Break out from ....
477 (insn_line): ... here.
478 * rtl.h (locator_file, locator_line): Declare.
479 (final_start_function): Set proper line/file info.
481 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
483 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
484 handled by pp_c_cast_expression.
486 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
488 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
489 allocate 32768 bytes of stack. Use addition rather than subtraction
490 when a single insn is enough.
491 * config/mips/mips.md: Remove insns and splitters for subtracting
493 (subsi3): Only accept register operands.
494 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
495 (subdi3_internal_3, subsi3_internal_2): Likewise.
496 (casesi): Use expand_binop to subtract the lower bound.
498 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
500 * config/mips/mips.c (mips_in_small_data_p): Don't handle
501 TARGET_MIPS16 specially.
503 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
505 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
506 mips_output_aligned_bss.
507 * config/mips/linux.h: Likewise.
508 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
509 * config/mips/mips.c (mips_output_aligned_bss): New function.
511 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
512 * config/mips/elf64.h: Likewise.
514 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
515 mips_declare_object_name.
516 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
517 * config/mips/elf64.h: As for elf.h.
518 * config/mips/iris6.h: Likewise.
519 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
520 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
521 do...while (0) block.
522 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
523 (mips_finish_declare_object): Declare.
524 * config/mips/mips.c (mips_declare_object_name): New function.
525 (mips_finish_declare_object): New function.
527 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
528 * config/mips/linux.h: Likewise.
530 * config/mips/mips.c (inside_function): Delete.
531 (file_in_function_warning, ignore_line_number): Delete.
532 (mips_output_filename): Don't warn about changing filenames within
534 (mips_output_lineno): Update accordingly.
535 (mips_output_function_prologue): Don't reset the deleted variables.
536 * config/mips/mips.h (inside_function): Delete.
537 (file_in_function_warning, ignore_line_number): Delete.
539 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
540 * config/mips/elf64.h: Likewise.
541 * config/mips/openbsd.h: Likewise.
542 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
543 * config/mips/linux.h: Likewise.
544 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
545 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
547 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
548 to the list of include files when using gas.
549 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
550 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
551 * config/mips/elf64.h: Likewise.
552 * config/mips/iris5.h: Likewise.
553 * config/mips/linux.h: Likewise.
554 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
555 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
556 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
557 * config/mips/sdb.h: ...this new file.
559 2003-07-14 Douglas Rupp <rupp@gnat.com>
561 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
562 argument to getcwd; use fixed buffer instead.
564 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
566 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
567 * fixinc/fixinc.wrap: Delete.
569 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
571 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
574 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
576 * ggc-page.c (struct globals): Add new fields to keep track of the
577 total allocated memory and overhead.
578 (ggc_print_statistics): Print them.
579 (ggc_alloc): Keep track of the total allocated memory and the
582 * tree.c (dump_tree_statistics): Increase spacing.
583 (enum tree_node_kind): Move to ...
584 * tree.h (enum tree_node_kind): ... here.
585 (tree_node_counts, tree_node_sizes): Declare.
587 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
589 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
591 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
593 PR optimization/11440
594 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
597 2003-07-14 Alan Modra <amodra@bigpond.net.au>
599 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
600 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
601 (emit_group_load, emit_group_store): Adjust declarations.
602 Remove most occurrences of #ifdef TREE_CODE.
603 * expr.c (emit_group_load): Add "type" param, and use
604 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
605 aligned accesses if !SLOW_UNALIGNED_ACCESS.
606 (emit_group_store): Likewise.
607 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
608 emit_group_load and emit_group_store calls.
609 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
610 BLOCK_REG_PADDING to determine whether we need endian_correction.
611 (load_register_parameters): Localize vars. Handle shifting of
612 small values to the correct end of regs. Adjust emit_group_load
614 (expand_call, emit_library_call_value_1): Adjust emit_group_load
615 and emit_group_store calls.
616 * function.c (assign_parms): Set mem alignment for stack slots.
617 Adjust emit_group_store call. Store values at the "wrong" end
618 of regs to the stack. Use BLOCK_REG_PADDING.
619 (locate_and_pad_parm): Save where_pad.
620 (expand_function_end): Adjust emit_group_load call.
621 * stmt.c (expand_value_return): Adjust emit_group_load call.
622 * Makefile.in (calls.o): Depend on $(OPTABS_H).
623 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
624 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
625 (MUST_PASS_IN_STACK): Define.
626 (BLOCK_REG_PADDING): Define.
627 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
628 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
629 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
630 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
631 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
633 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
635 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
637 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
639 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
640 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
642 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
645 * toplev.c: Don't cut off option names.
647 2003-07-13 Andreas Jaeger <aj@suse.de>
649 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
650 to integer of different size.
652 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
654 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
657 2003-07-13 Andreas Jaeger <aj@suse.de>
659 * config.gcc: Add pmmintrin.h for x86_64-*-*.
661 2003-07-13 Zack Weinberg <zack@codesourcery.com>
663 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
664 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
665 list. Move these all together down by cpplib.
667 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
668 definition of CPPCHAR_SIGNED_T.
670 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
671 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
672 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
674 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
675 * cppinit.c (cpp_create_reader): Likewise.
677 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
678 * cpptrad.c: Likewise. All callers changed.
679 * cpplib.c: All callers changed.
680 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
681 * hashtable.h: Define GTY(x) to nothing here too.
683 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
685 * stor-layout.c (compute_record_mode): Remove very obsolete test
686 that forces BLKmode for records with fields crossing word boundary.
688 2003-07-13 Zack Weinberg <zack@codesourcery.com>
690 * Makefile.in: Remove orphan reference to acconfig.h.
692 2003-07-13 Andreas Jaeger <aj@suse.de>
694 * cgraphunit.c: Convert prototypes to ISO C90.
696 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
698 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
700 * fixinc/fixincl.x: Rebuild.
702 2003-07-12 Zack Weinberg <zack@codesourcery.com>
704 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
705 i?86-*-*. Use correct name of cache variable.
706 * configure: Regenerate.
708 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
710 * config/alpha/alpha.c: Fix comment typos.
711 * config/alpha/alpha.md: Likewise.
712 * config/arm/arm.c: Likewise.
713 * config/arm/arm.md: Likewise.
714 * config/arm/lib1funcs.asm: Likewise.
715 * config/avr/avr.md: Likewise.
716 * config/arm/README-interworking: Fix typos.
718 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
720 * c-format.c: Fix comment formatting.
721 * c-typeck.c: Likewise.
722 * coverage.c: Likewise.
723 * cppcharset.c: Likewise.
724 * cpplib.c: Likewise.
725 * dbxout.c: Likewise.
726 * gcov-io.h: Likewise.
727 * toplev.c: Likewise.
729 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
731 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
734 2003-07-12 Zack Weinberg <zack@codesourcery.com>
736 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
737 uses three-argument AC_DEFINE so no acconfig.h entries are
739 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
740 which contains the GAS version number as a scaled integer.
741 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
742 ability to check for ELF assembler.
743 (gcc_GAS_CHECK_FEATURE): New macro.
744 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
745 assembler feature checks using gcc_GAS_CHECK_FEATURE.
746 Use three-argument AC_DEFINE everywhere.
747 * acconfig.h: Deleted.
748 * config.in, configure: Regenerate.
750 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
752 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
754 * fixinc/fixincl.x: Regenerate.
756 * fixinc/inclhack.def (gnu_types): Improve comment.
758 2003-07-12 Andreas Jaeger <aj@suse.de>
760 * fp-test.c (main): Use ISO C90 prototype.
762 * version.c: Remove unneded include of ansidecl.h.
764 * cgraph.h: Convert prototypes to ISO C90.
765 * cgraph.c: Likewise.
766 * fix-header.c: Likewise.
768 * protoize.c: Likewise.
770 Sat Jul 12 06:09:38 CEST 2003 Jan Hubicka <jh@suse.cz>
772 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
775 Sat Jul 12 03:06:01 CEST 2003 Jan Hubicka <jh@suse.cz>
776 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
778 * cgraph.c (cgraph_max_uid): New global variable.
779 (cgraph_node): Set uid field.
780 (create_edge): Keep inline flags consistent.
781 (dump_cgraph): Dump more info.
782 * cgraph.h (struct cgraph_local_info): Remove inline_many and
783 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
784 (struct cgraph_global_info): Add insns, calls, cloned_times,
786 (struct cgraph_node): Add uid.
787 (struct cgraph_edge): Add inline_call.
788 (cgraph_max_uid, cgraph_inline_p): Declare.
789 * cgraph.c: Include params.h and fibheap.h
790 (cgraph_mark_functions_to_inline_once): Kill.
791 (INSNS_PER_CALL): New constant.
792 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
794 (cgraph_finalize_function): Do not analyze inlining.
795 (cgraph_finalize_compilation_unit): Set inlining attributes.
796 (cgraph_mark_functions_to_output): More consistency checks.
797 (cgraph_optimize_function): Set current_function_decl to NULL.
798 (cgraph_expand_function): Use new inline flags.
799 (cgraph_postorder): Expand from cgraph_expand_functions.
800 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
801 (cgraph_inlined_into, cgraph_inlined_callees,
802 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
803 cgraph_mark_inline, cgraph_check_inline_limits,
804 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
805 cgraph_decide_inlining, cgraph_inline_p): New functions.
806 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
807 PARAM_INLINE_UNIT_GROWTH): New parameters.
808 * tree-inline.c (struct inline_data): New field current_decl.
809 (expand_call_inline): Avoid forward declarations; use
810 inlinable_function_p.
811 (optimize_inline_calls): Set id.current_decl.
813 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
815 * configure.in: Remove wrongly added definition of
817 * configure: Regenerate.
819 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
821 * rtl.def (NOTE): Do not use padding.
823 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
825 * doc/install.tex: Update required binutils for i?86-*-linux*
827 2003-07-11 Richard Henderson <rth@redhat.com>
829 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
831 2003-07-11 Mark Mitchell <mark@codesourcery.com>
833 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
834 TRANSLATION_UNIT_DECL as top_level.
836 2003-07-11 Jakub Jelinek <jakub@redhat.com>
838 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
839 then fall back to cmpstrM.
840 * builtins.c (expand_builtin_memcmp): Likewise.
841 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
842 (s390_expand_cmpmem): ... this.
843 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
844 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
845 from cmpstr* patterns. Rename call to s390_expand_cmpstr
846 to s390_expand_cmpmem.
847 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
848 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
850 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
852 * doc/md.texi (cmpstrM): Describe as String compare insn, not
856 2003-07-11 Loren James Rittle <ljrittle@acm.org>
858 * config/i386/freebsd.h (SET_ASM_OP): Remove.
859 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
860 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
861 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
863 2003-07-11 Richard Henderson <rth@redhat.com>
865 * function.c (assign_parms): Don't recombine complex args if
866 fnargs is unchanged from orig_fnargs.
867 (split_complex_args): Return args without complex before copying.
868 Re-layout the modified parameters.
870 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
872 * regclass.c (choose_hard_reg_mode): Add third argument.
874 * rtl.h (choose_hard_reg_mode): Update declaration.
875 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
876 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
878 2003-07-11 Geoffrey Keating <geoffk@apple.com>
880 * c-decl.c (finish_decl): Handle 'used' here...
881 * cgraphunit.c (cgraph_finalize_function): ... and here ...
882 * c-common.c: (handle_used_attribute): ... not here.
884 * configure.in (onstep): Support --enable-intermodule.
885 * Makefile.in (OBJS-common): New.
888 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
890 (libbackend.a): Support @onestep@.
892 * configure: Regenerate.
894 * c-common.h (c_reset_state): New prototype.
895 (c_parse_file): New prototype.
896 (finish_file): Move prototype from c-tree.h.
897 * c-decl.c: Include <hashtab.h>.
898 (builtin_decls): New.
899 (current_file_decl): New.
900 (duplicate_decls): Add extra parameter. Change all callers. Don't
901 output duplicate common symbols.
902 (link_hash_hash): New.
904 (poplevel): Handle popping of the top level.
905 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
906 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
907 (pushdecl_top_level): Likewise.
908 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
909 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
910 (finish_decl): Handle TRANSLATION_UNIT_DECL.
911 (merge_translation_unit_decls): New.
912 (c_write_global_declarations): New.
913 (c_reset_state): New.
914 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
915 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
916 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
917 TRANSLATION_UNIT_DECL.
918 (c_objc_common_finish_file): Call merge_translation_unit_decls.
919 * c-opts.c (in_fnames): Rename from in_fname.
920 (c_common_decode_option): Handle multiple input filenames.
921 (c_common_post_options): Likewise.
922 (c_common_parse_file): Likewise; also, call c_parse_file rather than
924 * c-parse.in: Move cleanup code to c_parse_file.
925 (free_parser_stacks): Move contents to c_parse_file.
927 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
929 (C_DECL_FILE_SCOPE): New.
930 (finish_file): Move prototype to c-common.h.
931 (merge_translation_unit_decls): New prototype.
932 (comptypes): Add extra parameter to prototype.
933 (c_write_global_declarations): New prototype.
934 * c-typeck.c (tagged_types_tu_compatible_p): New.
935 (function_types_compatible_p): Add extra parameter, change all callers.
936 (type_lists_compatible_p): Likewise.
937 (comptypes): Likewise.
938 (struct tagged_tu_seen): New.
939 (tagged_tu_seen_base): New.
940 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
941 (c_mark_addressable): Remove #if 0 code.
942 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
943 comment explaining why it shouldn't have to.
944 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
946 * cppinit.c (cpp_read_next_file): New.
947 (cpp_read_main_file): Use it.
948 * cpplib.c (undefine_macros): New.
949 (cpp_undef_all): New.
950 * cpplib.h (cpp_read_next_file): Prototype.
951 (cpp_undef_all): Prototype.
952 * langhooks-def.h (write_global_declarations): Remove prototype.
953 * toplev.h (write_global_declarations): Add prototype.
954 * tree.c (decl_type_context): Use switch statement, handle
955 TRANSLATION_UNIT_DECL.
956 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
957 (TRANSLATION_UNIT_DECL): New kind of tree.
958 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
959 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
960 * doc/invoke.texi: Make attempt to document new functionality.
962 2003-05-19 Per Bothner <bothner@apple.com>
964 * gcc.c (combine_inputs): New.
965 (process_command): Set combine_inputs.
966 (do_spec_1): Handle combine_inputs.
969 2003-07-10 James E Wilson <wilson@tuliptree.org>
972 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
973 loop_insn_emit_before.
974 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
976 2003-07-10 Zack Weinberg <zack@codesourcery.com>
978 * cppcharset.c: Fix comment.
979 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
980 (EILSEQ): #define to EINVAL if not already defined.
981 (convert_using_iconv): #if out when !HAVE_ICONV.
982 (init_iconv_desc): Handle !HAVE_ICONV here...
983 (cpp_init_iconv): ...not here.
985 2003-07-11 Neil Booth <neil@daikokuya.co.uk>
987 * common.opt: More --help messages.
988 * opts.c (print_help): Use puts().
989 * toplev.c (f_options): Remove help text.
990 (display_help): Don't dump f_options.
992 2003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
994 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
995 Move i?86-*-interix* to the don't-fix list.
996 * fixinc/fixinc.interix: Delete with extreme prejudice.
998 2003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
1001 * doc/install.texi: Document requirements for ia64-*-hpux* target.
1003 2003-07-10 Roger Sayle <roger@eyesopen.com>
1005 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
1007 2003-07-10 Zack Weinberg <zack@codesourcery.com>
1009 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
1010 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
1011 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
1012 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
1013 convert_no_conversion, convert_using_iconv): New functions.
1014 (APPLY_CONVERSION): New macro.
1015 (struct conversion, conversion_tab): New data structure.
1016 (init_iconv_desc): Check conversion_tab for a custom conversion
1017 primitive before trying to use iconv.
1018 (convert_cset): Deleted.
1019 (cpp_init_iconv): Use UTF- terminology, not UCS-.
1020 (_cpp_destroy_iconv): Update to match.
1021 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
1022 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
1023 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
1024 (_cpp_interpret_string_notranslate): New function, moved here
1027 * cpphash.h (convert_f, struct cset_converter): New types.
1028 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
1029 are now struct cset_converter, not bare iconv_t.
1031 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
1032 all callers changed.
1034 2003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
1036 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
1037 to opts.sh command line.
1038 * opts.sh: Write to temporary files with a move-if-change at the end.
1040 2003-07-10 Denis Chertykov <denisc@overta.ru>
1041 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1043 * combine.c (gen_binary): Handle the CLOBBER rtx and
1044 don't build a binary operation with it.
1046 2003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1048 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
1049 store_killed_after, store_killed_before): Keep track of the correct
1050 dependency function to use.
1052 2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
1053 * toplev.c (do_compile): Don't try to open dump files before
1054 lang_dependent_init initializes dump_base_name.
1056 2003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1058 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
1060 * config/frv/frv.c (frv_expand_builtin): Likewise.
1061 * config/sh/sh.c (sh_media_init_builtins): Likewise.
1063 2003-07-09 Mark Mitchell <mark@codesourcery.com>
1066 * doc/invoke.texi (C++ Dialect Options): Change documentation of
1069 2003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
1071 * tm.texi (RETURN_ADDR_OFFSET): Document.
1073 2003-07-10 Nathan Sidwell <nathan@codesourcery.com>
1075 * gcov-io.h: Update documentation.
1076 (GCOV_UNSIGNED2STRING): New.
1077 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
1078 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
1079 GCOV_TAG_SUMMARY_LENGTH): Adjust.
1080 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
1081 GCOV_TAG_COUNTER_NUM): New.
1082 (GCOV_BLOCK_SIZE): Number of words.
1083 (gcov_var): Adjust buffer type.
1084 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
1085 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
1086 count, not byte count.
1087 (gcov_open): Adjust overread init.
1088 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
1089 gcov_write_string, gcov_write_tag, gcov_write_length,
1090 gcov_write_tag_length): Adjust.
1091 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
1092 (gcov_sync, gcov_seek): Adjust.
1093 * gcov-dump.c (print_usage): Show gcc version only.
1094 (dump_file): Use GCOV_UNSIGNED2STRING.
1095 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
1096 * gcov.c (print_version): Show gcc version only.
1097 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
1098 GCOV_TAG_*_NUM macros.
1099 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
1100 GCOV_TAG_COUNTER_LENGTH.
1101 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
1102 Use GCOV_TAG_COUNTER_NUM.
1103 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
1104 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
1106 2003-07-10 Andreas Schwab <schwab@suse.de>
1108 * gcov-dump.c (dump_file): Fix missing address operator.
1110 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
1113 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
1115 (fold_single_bit_test): If sign_bit_p() fails, assume that the
1116 bit being tested is not a sign bit.
1118 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
1120 * config/h8300/h8300.md (a peephole2): New.
1122 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
1124 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
1125 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
1126 from ld-linux.so.2 to ld.so.1.
1127 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
1128 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
1129 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
1130 nor -Wl,-rpath-link.
1131 (LIB_SPEC): Add -rpath-link if !static.
1132 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
1133 * config/mn10300/mn10300.c (mn10300_protect_label): New
1135 * config/mn10300/linux.h (PRINT_OPERAND,
1136 PRINT_OPERAND_ADDRESS): Set it during their execution.
1137 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
1138 mn10300_protect_label is set.
1139 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
1141 (LIB_SPEC, STARTFILE_SPEC): Define.
1142 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
1143 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
1144 FLOAT_BIT_ORDER_MISMATCH.
1145 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
1146 * config.gcc (am33_2.0-*-linux*): Added.
1147 * config/mn10300/linux.h: New.
1148 * config/mn10300/t-linux: New.
1150 2003-07-10 Andreas Jaeger <aj@suse.de>
1152 * fold-const.c: Properly wrap prototypes.
1154 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
1156 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
1157 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
1159 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
1160 * config/mn10300/mn10300.h: GTY-declare it.
1161 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
1162 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
1163 prototype. Use incoming RTL argument.
1164 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1165 * config/mn10300/mn10300.md (int_label): Move C statements...
1166 (GOTaddr2picreg): ... here.
1167 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
1168 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
1169 * config/mn10300/mn10300.c (mn10300_encode_section_info):
1170 ... here. New function.
1171 (TARGET_ENCODE_SECTION_INFO): Define to it.
1172 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
1173 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
1175 (mn10300_loadPC): Define as insn splittable after reload.
1176 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
1177 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
1178 be defined in .rodata even in PIC, now that the assembler
1180 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
1181 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
1182 symbol take an underscore prefix.
1183 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
1184 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
1185 legitimize_pic_address): Declare.
1186 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
1187 the PIC register as fixed.
1188 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
1189 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
1191 (LEGITIMATE_PIC_OPERAND_P): Define.
1192 (PIC_OFFSET_TABLE_REGNUM): Define.
1193 (GOT_SYMBOL_NAME): Define.
1194 (SYMBOLIC_CONST_P): Define.
1195 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
1197 (MN10300_GLOBAL_P): Test it.
1198 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
1199 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
1200 * config/mn10300/mn10300.c (print_operand): Handle unspec.
1201 (expand_prologue): Set PIC register.
1202 (call_address_operand): Don't match SYMBOL_REFs in PIC.
1203 (legitimize_address): Call legitimize_pic_address.
1204 (legitimize_pic_address): New fn.
1205 (legitimate_pic_operand_p): New fn.
1206 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
1207 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
1208 UNSPEC_PLT): New constants.
1209 (pop_pic_reg): New insn.
1210 (movsi): Adjust non-PIC addresses.
1211 (builtin_setjmp_receiver): Restore the PIC register.
1213 (call): Adjust non-PIC addresses.
1214 (int_label, GOTaddr2picreg): New expands.
1215 (am33_loadPC): New insn.
1216 (mn10300_loadPC): New expand.
1217 (call_next_insn): New insn.
1218 (add_GOT_to_pic_reg): New expand.
1219 (symGOT2reg, symGOT2reg_i): New expands.
1220 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
1221 (sym2PIC, sym2PLT): New expands.
1223 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
1225 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
1226 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
1227 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
1228 to flag_unsafe_math_optimizations.
1229 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
1230 * config/mn10300/mn10300.c (expand_prologue): Mark
1231 FP-register-saving insns as frame-related.
1232 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
1233 * config/mn10300/mn10300.c
1234 (mn10300_get_live_callee_saved_regs): Don't search past
1235 LAST_EXTENDED_REGNUM.
1236 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
1237 * config/mn10300/mn10300.md: Remove excessive line breaks from
1238 `@' output patterns that were accounted as additional
1240 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
1241 Re-introduce changes accidentally removed in Richard Sandiford's
1243 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
1244 Re-instate am33-2 lost in merge from net GCC.
1245 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
1246 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
1247 floating-point registers.
1248 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
1249 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
1250 pessimizations that had gone in on 2000-05-08.
1251 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
1252 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
1253 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
1254 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
1256 * (movhi): Likewise.
1257 * (movsi): Likewise.
1258 * (movsf): Likewise.
1259 * (movdi): Likewise.
1260 * (movdf): Likewise.
1261 Wed May 24 13:16:09 2000 Alexandre Oliva <aoliva@cygnus.com>
1262 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
1263 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
1264 (expand_prologue, expand_epilogue): Save and restore FP regs.
1265 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
1266 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
1267 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
1268 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
1269 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
1271 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
1272 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
1273 Discourage the two-argument, longer opcodes.
1274 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
1276 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
1277 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
1278 * config/mn10300/mn10300.md (cmpsf): New pattern.
1279 (branch): Test mdep.fpCC and output fbCC.
1280 * config/mn10300/mn10300.c (print_operand): Output conditions.
1281 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
1282 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
1283 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
1284 mulsf3, divsf3): Use the `F' constraint for FP values.
1285 * config/mn10300/mn10300.c (const_1f_operand): New function.
1286 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
1287 * config/mn10300/mn10300.md (sqrtsf2): New expand.
1288 (rsqrtsf2): New insn.
1289 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
1290 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
1292 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
1293 * config/mn10300/mn10300.md (abssf2, negdf2): On
1294 TARGET_AM33_2, expand to...
1295 (abssf2_am33_2, negdf2_am33_2): New insns.
1296 (addsf3, subsf3, mulsf3, divsf3): Likewise.
1297 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
1298 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
1299 movdi, movdf): Added FP regs.
1300 * invoke.texi (-mam33-2, -mno-am33-2): Document.
1301 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
1302 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
1304 (REGNO_AM33_2_FP_P): Renamed to...
1305 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
1306 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
1307 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
1308 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
1309 regs from GENERAL_REGS.
1310 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
1311 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
1312 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
1313 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
1314 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
1315 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
1317 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
1318 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
1319 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
1320 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
1321 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
1322 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
1323 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
1324 AM33/2.0 floating-point registers.
1325 (CONDITIONAL_REGISTER_USAGE): Adjust.
1326 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
1327 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
1328 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
1329 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
1330 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
1331 (MULTILIB_DIRNAMES): Likewise.
1332 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
1333 `__AM33_2__' when `-mam33-2' is given.
1334 (TARGET_AM33_2): Define.
1335 (TARGET_SWITCHES): Adjust.
1336 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
1339 2003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
1341 * doc/install.texi: Add missing @.
1343 2003-07-09 Bob Wilson <bob.wilson@acm.org>
1345 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
1347 2003-07-09 Aldy Hernandez <aldyh@redhat.com>
1350 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
1352 2003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
1355 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
1356 "x-crtfini.o" with "crtinit.o", "crtfini.o".
1358 * fixinc/inclhack.def (limits_ifndefs): Add select test.
1359 * fixinc/fixincl.x: Rebuild.
1361 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
1362 * fixinc/fixincl.x: Rebuild.
1364 2003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
1366 * doc/install.texi (Configuration): Document the valgrind option
1367 to --enable-checking.
1369 Wed Jul 9 16:16:30 CEST 2003 Jan Hubicka <jh@suse.cz>
1371 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
1373 2003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1375 * c-lex.c (cb_ident): Cast cstr.text to const char *.
1377 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
1379 * gcov-io.h: Update documentation.
1380 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
1382 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
1383 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
1384 (struct gcov_var): Change buffer's type. Add endian flag.
1385 (gcov_open): Remove mode in libgcov.
1386 (gcov_magic): Prototype.
1387 * gcov-io.c (from_file): New.
1388 (gcov_open): Clear endian flag.
1390 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
1392 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
1393 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
1394 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
1395 * gcov-iov.c (main): Correct cast.
1396 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
1398 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
1399 (coverage_init): Use GCOV_NOTE_SUFFIX.
1400 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
1401 Rename to gcov_version, and return flag.
1402 (gcov_exit): Use gcov_version.
1403 (__gcov_init): Use gcov_version.
1404 * Makefile.in (coverageexts): Update.
1405 * gcov.c (print_version): Remove endianness conversion.
1406 (create_file_names): Use GCOV_NOTE_SUFFIX.
1407 (read_graph_file): Use gcov_magic.
1408 (read_count_file): Likewise.
1409 * gcov-dump.c (dump_file): Remove endianness conversion, use
1412 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
1414 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
1416 * configure: Regenerated.
1417 * Makefile.in (ALL_CFLAGS): Correct its comment.
1419 2003-07-08 Mark Mitchell <mark@codesourcery.com>
1421 * fold-const.c (make_range): Do not access operand 1 for a
1422 zero-operand operator.
1424 2003-07-09 Neil Booth <neil@daikokuya.co.uk>
1426 * toplev.c (warn_dummy, W_options): Die.
1427 (display_help): Don't print W_options.
1428 * common.opt: Add W_options help from toplev.c.
1430 2003-07-09 Andreas Jaeger <aj@suse.de>
1432 * opts.c (wrap_help): Only pass int arguments as arguments to
1433 printf's '*' modifier. Change argument of function.
1435 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
1437 * doc/invoke.texi: Fix misspelling of "@item".
1439 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
1441 * config/i386/i386.md: Remove an old comment about
1444 Wed Jul 9 03:00:10 CEST 2003 Jan Hubicka <jh@suse.cz>
1446 * cgraph.c (cgraph_node_name): New function.
1447 (dump_cgraph): Use it.
1448 * cgraph.h (cgraph_dump_file): Declare.
1449 (cgraph_node_name): Declare.
1450 * cgraphunit.c: Include timevar.h
1451 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
1452 (cgraph_optimize_function): Use TV_INTEGRATION.
1453 (cgraph_mark_local_functions): reorganize dumps.
1454 (cgraph_mark_functions_to_inline_once): Likewise.
1455 (cgraph_optimize): Likewise; use timevar.
1456 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
1457 * toplev.c (dump_file_index): Add DFI_cgraph.
1458 (dump_file_info): Likewise.
1459 (cgraph_dump_file): New global variable.
1460 (do_compile): Open and close cgraph dump.
1461 * invoke.texi (-d): Document new flag; renumber.
1463 2003-07-08 Roger Sayle <roger@eyesopen.com>
1466 * calls.c (emit_call_1): Don't bother popping the arguments off of
1467 the stack after a noreturn function call; The adjustment is dead.
1468 (expand_call): Likewise.
1470 2003-07-08 Geoffrey Keating <geoffk@apple.com>
1472 * expr.c (MOVE_MAX_PIECES): Move from here...
1473 * defaults.h (MOVE_MAX_PIECES): ... to here.
1475 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
1477 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
1479 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1481 * genattr.c (internal_dfa_insn_code): Don't prototype.
1482 * genattrtab.c (attr_desc): Add `static_p' field.
1483 (expand_units): Make blockage range and ready cost functions
1485 (write_attr_get): Don't add extern prototypes in C file. Mark
1486 static functions as appropriate.
1487 (find_attr, make_internal_attr): Initialize static_p.
1488 * genattrtab.h (ATTR_STATIC): New macro.
1489 * genautomata.c (output_internal_reset_func): Mark output function
1491 (make_internal_dfa_insn_code_attr): Mark output function as static.
1493 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1495 * genattrtab.h: Add new macros for attr `special' flags.
1496 * genattrtab.c (attr_desc): Reorder/resize fields better.
1497 Use attr `special' macros in all calls to make_internal_attr.
1498 * genautomata.c: Likewise.
1500 Wed Jul 9 02:25:39 CEST 2003 Jan Hubicka <jh@suse.cz>
1502 * c-common.c (c_estimate_num_insns_1): New static function.
1503 (c_estimate_num_insns): New global function.
1504 * c-common.h (DECL_NUM_STMTS): Rename to...
1505 (DECL_ESTIMATED_INSNS): ... this.
1506 (c_estimate_num_insns): Declare.
1507 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
1508 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
1509 * c-semantics.c (add_stmt): Do not account statements.
1510 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
1512 * langhooks.h (lang_hooks_for_tree_inlining): Add
1514 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
1516 (max-inline-insns): set to 300.
1517 (min-inline-insns): set to 10.
1518 * tree-inline.c (struct inline_data): Rename inlined_stmts to
1520 (INSNS_PER_STMT): Kill.
1521 (inlinable_function_p): Compute and store body size.
1522 (expand_call_inline): Likewise.
1523 (optimize_inline_calls): Likewise.
1525 2003-07-08 James E Wilson <wilson@tuliptree.org>
1528 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
1529 loop over new variable t2 instead of t.
1531 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
1534 * config/i386/winnt.c: Replace use of error(), warning() with
1535 error_with_decl(), warning_with_decl(), throughout.
1537 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
1539 * opts.c (wrap_help): Use unsigned int, not size_t.
1541 2003-07-08 Stephane Carrez <stcarrez@nerim.fr>
1543 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
1544 as .file/.loc directives are incompatible with linker relaxation.
1546 2003-07-08 Zack Weinberg <zack@codesourcery.com>
1548 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
1549 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
1550 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
1551 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
1552 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
1553 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
1554 Escape { and } characters which are not part of range expressions.
1555 * fixinc/fixincl.x: Regenerate.
1556 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
1558 2003-07-08 Steven Bosscher <steven@gcc.gnu.org>
1561 * tree-inline.c (find_alloca_call): Use
1562 walk_tree_without_duplicates, instead of walk_tree.
1563 (find_builtin_longjmp_call): Likewise.
1564 * c-objc-common.c (c_cannot_inline_fn): Likewise.
1565 * c-semantics.c (find_reachable_label): Likewise.
1567 2003-07-08 Jakub Jelinek <jakub@redhat.com>
1570 * config/i386/i386.c (ix86_check_movabs): New function.
1571 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
1572 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
1573 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
1575 2003-07-08 Chris Demetriou <cgd@broadcom.com>
1577 * Makefile.in (install-po): Cope with empty CATALOGS.
1579 2003-07-08 Richard Sandiford <rsandifo@redhat.com>
1581 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
1582 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
1583 (SECTION_FUNCTION_TEMPLATE): Delete.
1584 * config/mips/elf.h: As for elf64.h.
1585 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
1586 * config/mips/linux.h: As for elf.h
1587 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
1588 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
1589 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
1590 of in_sdata from current_section_name and current_section_flags.
1591 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
1592 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
1593 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
1594 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
1595 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
1596 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
1597 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
1598 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
1599 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
1600 (override_options): Remove setting of MASK_GPOPT.
1601 (mips_output_external): Use mips_in_small_data_p to check whether a
1602 symbol needs an .extern directive. Don't emit such directives for
1603 TARGET_EXPLICIT_RELOCS.
1604 (mips_declare_object): Update accordingly.
1605 (mips_select_rtx_section): Call named_section rather than
1607 (mips_select_section): Use default_elf_section_section for everything
1608 except .text string constants.
1609 (mips_in_small_data_p): New function.
1610 (mips_encode_section_info): Remove small data handling.
1611 (mips_unique_section): Delete.
1612 (iris6_section_type_flags): New function.
1613 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
1615 2003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1618 * pa.md: Disparage all mtsar constraints.
1619 (extzv, extv, insv): Don't fail on length of {32|64}.
1621 2003-07-08 Zack Weinberg <zack@codesourcery.com>
1623 * system.h: Poison MAP_CHARACTER.
1624 * config/i370/i370-protos.h (mvs_map_char): Delete.
1625 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
1626 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
1627 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
1629 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
1631 * toplev.c (randomize): Correct call to time().
1633 2003-07-08 Jakub Jelinek <jakub@redhat.com>
1635 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
1636 REG_EQUIV notes as well.
1638 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
1640 * doc/md.texi: Fix the description of addmodecc.
1642 2003-07-07 Zack Weinberg <zack@codesourcery.com>
1644 * Makefile.in (top_builddir): Set to "..", not ".".
1645 (INTLLIBS, INTLDEPS): Delete.
1646 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
1647 (LIBDEPS): Add $(LIBICONV_DEP).
1648 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
1649 (INCLUDES): Replace -I../intl with @INCINTL@.
1650 ($(top_builddir)/intl/libintl.a): Delete rule.
1651 (stage2-start, stage3-start, stage4-start, stageprofile-start,
1652 stagefeedback-start): Use $$ for variable to be evaluated by
1654 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
1655 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
1656 * aclocal.m4: sinclude ../config/progtest.m4. Add
1657 contents of lcmessage.m4 from gettext distro.
1658 * configure.in: Check for wchar.h and setlocale. Set
1659 LIBICONV_DEP to the empty string and substitute it.
1660 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
1661 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
1662 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
1663 in $LIBINTL, to avoid linking it twice.
1664 * configure, config.in: Regenerate.
1666 2003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
1668 * fixinc/mkfixinc.sh: Remove winnt support.
1669 * fixinc/fixinc.winnt: Delete with extreme prejudice.
1671 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
1673 * Makefile.in: Update.
1674 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
1675 * c.opt: Update documentation.
1676 * common.opt: Add some help text.
1677 * opts.c: Include intl.h.
1678 (wrap_help, print_help): New.
1679 (find_opt, handle_option, common_handle_option): opt_text now
1680 contains the '-'. Use print_help to output help.
1681 * opts.h (struct cl_option): New member "help".
1682 * opts.sh: Update to handle help text output and to prepend
1684 * toplev.c (display_help): Remove some help text.
1686 2003-07-07 David Edelsohn <edelsohn@gnu.org>
1687 Fariborz Jahanian <fjahanian@apple.com>
1689 * configure.in: Test for PowerPC mfcr field support in assembler.
1690 * config.in, configure: Regenderated.
1692 * config/rs6000/power4.md: Add mfcrf reservation.
1693 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
1694 * config/rs6000/rs6000.c (mfcr_operation): Define.
1695 (print_operand): Add 'Q' case for mfcrf.
1696 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
1697 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
1698 (movcc_internal1): Emit optional field operand for mfcr and set
1699 "type" attribute appropriately.
1700 (mfcr SCC): Likewise.
1701 (movesi_from_cr_one): New.
1703 2003-07-07 Roger Sayle <roger@eyesopen.com>
1705 * config/i386/i386.md: Correct check-in of incorrect version.
1707 2003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1709 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
1710 adjacent stdio calls.
1711 * c-decl.c (c_print_identifier): Likewise.
1712 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
1713 * print-rtl.c (print_rtx): Likewise.
1714 * print-tree.c (print_node_brief, print_node): Likewise.
1715 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
1717 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
1718 * config.in, configure: Regenerated.
1720 2003-07-07 Roger Sayle <roger@eyesopen.com>
1723 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
1724 Changed to define_expand patterns that copy operand[1] to prevent
1725 it from being clobbered before emitting an atan2?f3_1 insn.
1726 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
1727 patterns that actually specify the behaviour of x87's FPATAN.
1729 2003-07-07 Jakub Jelinek <jakub@redhat.com>
1731 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
1732 clearing of SYMBOL_FLAG_LOCAL bit.
1733 If vcall_offset fits into signed 16-bit immediate, use
1734 one instruction for both addition and load.
1736 2003-07-07 Neil Booth <neil@daikokuya.co.uk>
1738 * opts.c (common_handle_option): Correct handling of the
1739 -falign- switches that do and don't take an argument.
1741 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
1743 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
1745 (pushhi1_h8300hs): Likewise.
1747 2003-07-07 Andreas Jaeger <aj@suse.de>
1749 * genextract.c: Convert remaining prototypes to ISO C90.
1751 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
1752 * fold-const.c (fold_single_bit_test): Likewise.
1753 * diagnostic.c (default_diagnostic_finalizer): Likewise.
1754 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
1756 * gengtype.c (write_array): Generate ISO C90 prototypes.
1758 * genflags.c (gen_proto): Generate ISO C90 prototypes.
1760 2003-07-07 Roger Sayle <roger@eyesopen.com>
1762 PR optimization/11059
1763 * expr.c (can_store_by_pieces): Return true if length is zero.
1764 (store_by_pieces): If length is zero and endp is two, abort,
1765 othwerise, if length is zero and endp is not two, return "to".
1766 (clear_by_pieces): Do nothing if length is zero.
1767 (clear_storage): Do nothing if length is zero.
1768 (store_constructor): Simplify code when size is zero, or the
1769 target has already been cleared. This avoids emitting a
1770 blockage instruction when initializing empty structures.
1772 2003-07-07 Andreas Jaeger <aj@suse.de>
1774 * mips-tfile.c: Convert prototypes to ISO C90.
1775 * mips-tdump.c: Convert prototypes to ISO C90.
1777 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
1779 * rtl.h (emit_line_note): Take a location_t.
1780 (emit_line_note_force): Remove.
1781 (set_file_and_line_for_statement): Take a location_t.
1782 * tree.g (emit_line_note): Take a location_t.
1783 * emit-rtl.c (emit_line_note): Take a location_t.
1784 (emit_line_note_force): Remove.
1785 * function.c (init_function_start): Adjust emit_line_note call.
1786 (expand_function_end): Use force_next_line_note, not
1787 emit_line_note_force.
1788 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
1789 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
1790 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
1791 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
1792 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
1793 genrtl_continue_stmt, genrtl_switch_stmt,
1794 genrtl_asm_stmt): Likewise.
1795 * expr.c (expand_expr): Likewise.
1796 * integrate.c (expand_inline_function): Likewise.
1797 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
1798 (expand_decl_init): Adjust emit_line_note call.
1800 2003-07-07 Dale Johannesen <dalej@apple.com>
1802 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
1804 2003-07-07 Andreas Jaeger <aj@suse.de>
1806 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
1807 * config/i386/i386.c: Likewise.
1809 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
1811 * config/h8300/h8300.md: Use gen_int_mode instead of
1812 GEN_INT (trunc_int_for_mode (...)).
1814 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
1816 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
1817 2 bytes and then subtract 2 from the stack pointer.
1818 (pushhi1_h8300hs): Likewise.
1820 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
1822 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
1824 * configure: Regenerated.
1825 * Makefile.in: Remove extraneous comment.
1826 * toplev.c (randomize): Protect against potential multiple calls.
1827 * doc/invoke.texi (-frandom-seed): Document use for in coverage
1830 2003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1831 Eric Botcazou <ebotcazou@libertysurf.fr>
1833 PR optimization/11198
1834 * alias.c (objects_must_conflict_p): Return 1 if the types have
1835 the same alias set, not if the alias sets only conflict.
1837 2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
1839 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
1840 (convert_cset): Change inbuf to type ICONV_CONST char.
1841 * Makefile.in (LIBS): Add LIBICONV.
1843 * doc/invoke.texi (-falign-functions): Document that
1844 when n is zero then a machine-dependent default is used.
1845 (-falign-labels): Document that when n is zero then a
1846 machine-dependent default is used and that -falign-labels =1
1847 is equivalent to -fno-align-labels.
1848 (-falign-loops): Likewise.
1849 (-falign-jumps): Likewise.
1851 2003-07-06 Art Haas <ahaas@airmail.net>
1853 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
1856 2003-07-06 James E Wilson <wilson@tuliptree.org>
1858 PR optimization/9812
1859 * rtl.h (mem_for_const_double): Delete prototype.
1860 * varasm.c (mem_for_const_double): Delete function.
1861 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
1862 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
1863 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
1864 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
1865 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
1866 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
1867 comment about confused support for XFmode constants.
1869 Mon Jul 7 02:03:56 CEST 2003 Jan Hubicka <jh@suse.cz>
1871 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
1873 2003-07-06 Kazu Hirata <kazu@cs.umass.edu>
1875 * config/h8300/h8300.c: Fix comment typos.
1876 * config/h8300/h8300.md: Likewise.
1877 * config/i386/athlon.md: Likewise.
1878 * config/i386/i386.c: Likewise.
1879 * config/i386/pentium.md: Likewise.
1880 * config/ia64/ia64.c: Likewise.
1881 * config/ia64/itanium1.md: Likewise.
1882 * config/ia64/itanium2.md: Likewise.
1883 * config/m32r/m32r.md: Likewise.
1884 * config/m68hc11/m68hc11.c: Likewise.
1885 * config/mcore/mcore.c: Likewise.
1886 * config/mips/sr71k.md: Likewise.
1887 * config/mips/t-iris5-as: Likewise.
1888 * config/mmix/mmix.h: Likewise.
1889 * config/ns32k/ns32k.h: Likewise.
1890 * config/ns32k/NOTES: Fix a typo.
1892 2003-07-06 Andreas Jaeger <aj@suse.de>
1894 * stmt.c: Convert remaining prototypes to ISO C90.
1895 * cfglayout.c: Likewise.
1896 * dbxout.c: Likewise.
1898 * genemit.c: Likewise.
1900 * basic-block.h: Convert prototypes to ISO C90.
1901 * c-parse.in: Likewise.
1902 * c-pragma.h: Likewise.
1903 * c-typeck.c: Likewise.
1904 * cfghooks.h: Likewise.
1905 * cfgloopanal.c: Likewise.
1906 * dbxout.h: Likewise.
1907 * debug.h: Likewise.
1908 * dwarf2asm.h: Likewise.
1910 * gengtype-lex.l: Likewise.
1911 * sched-int.h: Likewise.
1912 * timevar.c: Likewise.
1914 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
1916 * c-common.h (c_comon_handle_filename,
1917 c_common_missing_arguement): New.
1918 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
1919 LANG_HOOKS_MISSING_ARGUMENT): New.
1920 * c-opts.c (missing_arg): Rename c_common_missing_argument,
1921 update to be an appropriate langhook.
1922 (c_common_handle_option): Don't handle filenames.
1923 (c_common_handle_filename): New.
1924 * hooks.c (hook_void_constcharptr,
1925 hook_bool_constcharptr_size_t_false): New.
1926 * hooks.h (hook_void_constcharptr,
1927 hook_bool_constcharptr_size_t_false): New.
1928 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
1929 LANG_HOOKS_MISSING_ARGUMENT): New.
1930 (LANG_HOOKS_INITIALIZER): Update.
1931 * langhooks.h (struct lang_hooks): Add handle_filename and
1933 * opts.c (handle_option): Don't handle filenames here, but ...
1934 (handle_options): ... here.
1935 (common_handle_option): Don't handle missing arguments here.
1936 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
1937 LANG_HOOKS_MISSING_ARGUMENT): New.
1939 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
1941 * Makfile.in: Remove traces of mbchar.
1942 * c-parse.in (MULTIBYTE_CHARS): Remove.
1943 * config.in (MULTIBYTE_CHARS): Remove.
1944 * configure: Remove --enable-mbchar.
1945 * configure.in: Remove --enable-mbchar.
1946 * mbchar.c, mbchar.h: Remove.
1947 * system.h: Poison MULTIBYTE_CHARS.
1948 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
1949 * config/linux.h (MULTIBYTE_CHARS): Remove.
1950 * config/svr4.h (MULTIBYTE_CHARS): Remove.
1951 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
1953 2003-07-06 Andreas Jaeger <aj@suse.de>
1955 * varray.c (varray_check_failed): Fix typo.
1957 * unroll.c: Convert prototypes to ISO C90.
1958 * varasm.c: Likewise.
1959 * varray.c: Likewise.
1960 * varray.h: Likewise.
1961 * vmsdbgout.c: Likewise.
1962 * xcoffout.c: Likewise.
1963 * xcoffout.h: Likewise.
1965 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
1967 * gcov-io.h: Add a local time stamp.
1968 (struct gcov_info): Add stamp field.
1969 (gcov_truncate): New.
1970 * coverage.c (read_counts_file): Skip the stamp.
1971 (coverage_begin_output): Write the stamp.
1972 (build_gcov_info): Declare and init the stamp.
1973 (coverage_finish): Only unlink data file, if stamp is zero.
1974 * gcov-dump.c (dump_file): Dump the stamp.
1975 * gcov.c (bbg_stamp): New.
1976 (release_structures): Clear bbg_stamp.
1977 (read_graph_file): Read stamp.
1978 (read_count_file): Check stamp.
1979 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
1981 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
1983 * tree.h (default_flag_random_seed): Remove.
1984 * toplev.h (local_tick): Declare.
1985 * tree.c (flag_random_seed, default_flag_random_seed): Move to
1987 (append_random_chars): Don't call default_flag_random_seed.
1988 * toplev.c (flag_random_seed): Define here. Set local_tick.
1989 (local_tick): Define.
1990 (randomize): New, moved from tree.c.
1991 (print_switch_values): Adjust.
1992 (toplev_main): Call randomize.
1994 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
1996 * tree.h (crc32_string): Declare.
1997 * tree.c (append_random_chars): Remove.
1998 (crc32_string): New.
1999 (get_file_function_name_long): Use crc32_string here.
2001 2003-07-06 Andreas Jaeger <aj@suse.de>
2003 * gcc.c: Convert prototypes to ISO C90.
2005 * gcov-dump.c: Likewise.
2006 * gcov-iov.c: Likewise.
2008 * genattrtab.h: Likewise.
2010 * global.c: Likewise.
2011 * graph.c: Likewise.
2012 * graph.h: Likewise.
2013 * hosthooks.h: Likewise.
2014 * hooks.h: Likewise.
2015 * hooks.c: Likewise.
2016 * hashtable.h: Likewise.
2017 * hashtable.c: Likewise.
2018 * haifa-sched.c: Likewise.
2019 * integrate.h: Likewise.
2020 * integrate.c: Likewise.
2021 * input.h: Likewise.
2022 * ifcvt.c: Likewise.
2024 * langhooks-def.h: Likewise. Add extern to prototypes.
2025 * langhooks.c: Likewise.
2026 * langhooks.h: Likewise.
2028 * local-alloc.c: Likewise.
2029 * loop-init.c: Likewise.
2030 * loop-unroll.c: Likewise.
2031 * loop-unswitch.c: Likewise.
2033 * loop.h: Likewise. Add extern to prototypes.
2034 * machmode.h: Likewise.
2036 * mbchar.c: Likewise.
2037 * mbchar.h: Likewise.
2038 * mkdeps.c: Likewise.
2039 * mkdeps.h: Likewise.
2040 * optabs.c: Likewise.
2041 * optabs.h: Likewise.
2042 * output.h: Likewise.
2043 * gccspec.c: Likwise.
2044 * postreload.c: Likewise.
2045 * prefix.c: Likewise.
2046 * prefix.h: Likewise.
2047 * print-rtl.c: Likewise.
2048 * print-tree.c: Likewise.
2049 * profile.c: Likewise.
2050 * read-rtl.c: Likewise.
2053 * recog.c: Likewise.
2054 * recog.h: Likewise.
2055 * reg-stack.c: Likewise.
2056 * regclass.c: Likewise.
2057 * regmove.c: Likewise.
2058 * regrename.c: Likewise.
2060 * reload.c: Likewise.
2061 * reload.h: Likewise.
2062 * reload1.c: Likewise.
2063 * reorg.c: Likewise.
2064 * resource.c: Likewise.
2065 * resource.h: Likewise.
2066 * rtl-error.c: Likewise.
2069 * rtlanal.c: Likewise.
2070 * sbitmap.c: Likewise.
2071 * sbitmap.h: Likewise.
2072 * scan-decls.c: Likewise.
2074 * sched-deps.c: Likewise.
2075 * sched-ebb.c: Likewise.
2076 * sched-int.h: Likewise.
2077 * sched-rgn.c: Likewise.
2078 * sched-vis.c: Likewise.
2079 * sibcall.c: Likewise.
2080 * simplify-rtx.c: Likewise.
2081 * sreal.c: Likewise.
2082 * sreal.h: Likewise.
2083 * ssa-ccp.c: Likewise.
2084 * ssa-dce.c: Likewise.
2087 * stack.h: Likewise.
2089 * stor-layout.c: Likewise.
2090 * stringpool.c: Likewise.
2091 * target.h: Likewise.
2092 * timevar.c: Likewise.
2093 * timevar.h: Likewise.
2094 * tlink.c: Likewise.
2095 * tracer.c: Likewise.
2096 * tree-inline.c: Likewise.
2097 * tree-inline.h: Likewise.
2101 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
2103 * combine.c (nonzero_bits1): Fix a warning.
2105 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
2107 * config/h8300/h8300.c (compute_mov_length): Correct the
2108 length of loading CONST0_RTX (SFmode).
2110 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
2112 * toplev.c (output_clean_symbol_name): Remove.
2113 * toplev.h (output_clean_symbol_name): Remove.
2114 * config/alpha/alpha.c (unicosmk_output_module_name): Use
2115 lbasename & clean_symbol_name.
2117 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
2119 * ggc.h: Follow spelling conventions.
2120 * config/i386/i386.c: Likewise.
2121 * config/i386/winnt.c: Likewise.
2122 * config/rs6000/rs6000.c: Likewise.
2124 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
2126 * bt-load.c: Fix comment typos.
2127 * c-incpath.c: Likewise.
2129 * cfgcleanup.c: Likewise.
2130 * cfgloop.h: Likewise.
2131 * cfgloopmanip.c: Likewise.
2132 * cfgrtl.c: Likewise.
2133 * diagnostic.h: Likewise.
2134 * dwarfout.c: Likewise.
2135 * emit-rtl.c: Likewise.
2136 * et-forest.c: Likewise.
2137 * et-forest.h: Likewise.
2140 * genattr.c: Likewise.
2142 * langhooks.h: Likewise.
2143 * local-alloc.c: Likewise.
2144 * loop-unroll.c: Likewise.
2145 * loop-unswitch.c: Likewise.
2146 * ra-build.c: Likewise.
2147 * regclass.c: Likewise.
2148 * regmove.c: Likewise.
2149 * rtl.def: Likewise.
2150 * rtlanal.c: Likewise.
2151 * sched-ebb.c: Likewise.
2152 * sched-rgn.c: Likewise.
2153 * simplify-rtx.c: Likewise.
2155 * tracer.c: Likewise.
2158 2003-07-05 Zack Weinberg <zack@codesourcery.com>
2160 * cppcharset.c: Use the correct return type for the fallback iconv
2163 Sat Jul 5 16:18:53 CEST 2003 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2165 Blame to Jan Hubicka <jh@suse.cz>
2166 * cfglayout.c (record_effective_endpoints): Split insns before
2167 first basic block correctly.
2169 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2171 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
2172 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
2173 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
2175 2003-07-05 Andreas Jaeger <aj@suse.de>
2177 * genattrtab.c (write_attr_get): Revert part of last patch to
2178 always write out a prototype.
2180 * genemit.c (gen_split): Readd lost unused attributes in last
2183 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2185 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
2186 different from header.
2188 2003-07-05 Andreas Schwab <schwab@suse.de>
2190 * config/m68k/m68k.c: Remove code protected by CRDS.
2191 * config/m68k/m68k.md: Likewise.
2193 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
2196 * c-opts.c (permit_fortran_options): New.
2197 (c_common_init_options): Accept fortran front end options if
2198 it looks like we might be preprocessing Fortran.
2199 (c_common_handle_option): Don't reject switch if permit_fotran_options.
2201 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2203 * genattr.c (internal_dfa_insn_code): Output prototype.
2204 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
2205 * genautomata.c: Likewise.
2206 * genconditions.c: Likewise.
2207 * genemit.c: Likewise.
2208 * genextract.c: Likewise.
2209 * gengenrtl.c: Likewise.
2210 * gengtype.c: Likewise.
2211 * genopinit.c: Likewise.
2212 * genoutput.c: Likewise.
2213 * genpeep.c: Likewise.
2214 * genrecog.c: Likewise.
2216 2003-07-04 Zack Weinberg <zack@codesourcery.com>
2218 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
2219 (struct cpp_options): Add narrow_charset, wide_charset,
2220 bytes_big_endian fields. Remove EBCDIC field.
2221 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
2223 * cpphash.h: Include <iconv.h> if we have it, otherwise
2224 provide a dummy definition of iconv_t.
2225 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
2226 (_cpp_valid_ucn): Update prototype.
2227 (_cpp_destroy_iconv): New prototype.
2229 * doc/cpp.texi: Document character set handling.
2230 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
2231 * doc/extend.texi: Delete entire section on multiline strings.
2232 Rewrite section on __FUNCTION__ etc now that these are
2235 * cppucnid.tab, cppucnid.pl: New files.
2236 * cppucnid.h: New generated file.
2237 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
2238 (iconv_open, iconv, iconv_close): Provide dummy definitions
2240 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
2241 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
2242 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
2243 cpp_interpret_string, narrow_str_to_charconst,
2244 wide_str_to_charconst): New.
2245 (ucn_valid_in_identifier): Use a binary search through the
2246 ucnranges table defined in cppucnid.h, not a long chain of if
2248 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
2249 character names are only valid in C++ and C99" to a warning.
2250 Issue the "meaning of \[uU] is different in traditional C"
2251 warning here. Take care not to let iconv see an invalid UCS
2252 value if we get a malformed UCN. Issue an error if we don't
2254 (cpp_interpret_charconst): Moved here from cpplex.c. Use
2255 cpp_interpret_string to do the heavy lifting.
2257 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
2258 narrow_charset, wide_charset fields of options structure.
2259 (cpp_destroy): Call _cpp_destroy_iconv.
2260 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
2261 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
2262 (cpp_interpret_charconst): Moved to cppcharset.c.
2263 * cpplib.c (dequote_string): Delete.
2264 (interpret_string_notranslate): New.
2265 (do_line, do_linemarker): Use interpret_string_notranslate.
2267 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
2269 * c-common.c (fname_string, combine_strings): Delete.
2270 * c-common.h (fname_string, combine_strings): Delete prototypes.
2271 * c-lex.c (ignore_escape_flag): Delete.
2272 (cb_ident): Use cpp_interpret_string, not lex_string.
2273 (get_nonpadding_token): New function.
2274 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
2275 Adjust calls to lex_string. Don't write *value twice.
2276 (lex_string): Now handles string constant concatenation.
2277 Most of the work handed off to cpp_interpret_string.
2278 Call fix_string_type here.
2279 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
2280 FUNC_NAME, throughout.
2281 (OBJC_STRING): New token type.
2282 (primary:STRING): No need to call fix_string_type here.
2283 (primary:objc_string): Make that OBJC_STRING.
2284 (objc_string nonterminal): Delete.
2285 (yylexname): Delete code to handle fake string constants.
2286 (yylexstring): Delete entirely.
2287 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
2288 to handle CPP_ATSIGN.
2290 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
2291 * c-opts.c (missing_arg, c_common_handle_option): Handle
2292 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
2293 (c_common_init): Set cpp_opts->bytes_big_endian, not
2294 cpp_opts->EBCDIC. Call cpp_init_iconv.
2295 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
2296 (TARGET_EBCDIC): Delete default definition.
2298 * objc/objc-act.c (build_objc_string_object): No need to
2299 handle string constant concatenation.
2301 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
2303 * doc/install.texi: Fix typos.
2304 * doc/invoke.texi: Likewise.
2305 * doc/tm.texi: Likewise.
2307 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
2309 * config/pa/fptr.c: Fix comment typos.
2310 * config/pa/pa-64.h: Likewise.
2311 * config/pa/pa.c: Likewise.
2312 * config/pa/pa.h: Likewise.
2313 * config/rs6000/603.md: Likewise.
2314 * config/rs6000/7xx.md: Likewise.
2315 * config/rs6000/darwin.h: Likewise.
2316 * config/rs6000/freebsd.h: Likewise.
2317 * config/rs6000/rs6000.c: Likewise.
2318 * config/rs6000/rs6000.md: Likewise.
2319 * config/rs6000/spe.h: Likewise.
2321 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
2323 * config/s390/2064.md: Change GNU CC to GCC.
2324 * config/s390/2084.md: Likewise.
2325 * config/s390/fixdfdi.h: Likewise.
2326 * config/s390/linux.h: Likewise.
2327 * config/s390/s390-modes.def: Likewise.
2328 * config/s390/s390-protos.h: Likewise.
2329 * config/s390/s390.c: Likewise.
2330 * config/s390/s390.h: Likewise.
2331 * config/s390/s390.md: Likewise.
2332 * config/s390/s390x.h: Likewise.
2334 2003-07-04 Jeff Law <law@redhat.com>
2337 * expr.c (do_store_flag): Pass in the correct result type
2338 when calling fold_single_bit_test.
2339 * fold-const.c (fold_single_bit_test): Use result_type for the
2340 result when folding a sign bit test.
2342 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
2344 * opts.c (common_handle_options): Negate sense of -falign- switches.
2346 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
2348 * Makefile.in: Replace PWD with PWD_COMMAND.
2350 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2352 * cfgloopanal.c (count_strange_loop_iterations): New static function.
2353 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
2354 Handle strange loops.
2356 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
2358 * install.texi: Even the g77 manpage is derived from
2359 the full g77 manual.
2361 2003-07-04 Zack Weinberg <zack@codesourcery.com>
2363 * ABOUT-NLS: Delete.
2364 * intl: Delete entire directory.
2365 * aclocal.m4: Include ../config/gettext.m4. Delete
2366 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
2367 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
2368 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
2369 Remove intl/Makefile from all_outputs.
2370 * configure, config.in: Regenerate.
2371 * Makefile.in: Expunge all references to intl subdirectory.
2372 Add -I../intl to INCLUDES.
2373 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
2375 2003-07-04 Roger Sayle <roger@eyesopen.com>
2377 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
2378 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
2380 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
2382 PR c++/5287, PR c++/7910, PR c++/11021
2383 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
2384 dllimport attribute if function is defined at declaration, but
2385 report error instead. Likewise for dllimport'd variable
2386 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
2387 declared within functions, Report error if dllimport or dllexport
2388 symbol is not global.
2389 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
2390 if defined after declaration or if inlined. Don't allow definition
2391 of static data members of C++ classes. Don't dllimport virtual
2393 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
2394 (i386_pe_mark_dllimport): Remove unnecessary checks.
2395 (i386_pe_encode_section_info): Warn if the dllimport attribute
2396 and symbol prefix have been instantiated and then overridden.
2398 * doc/extend.texi: Document dllimport and dllexport attributes.
2400 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
2402 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
2404 * config/kaos.h (CPP_PREDEFINES): Delete.
2405 (TARGET_OS_CPP_BUILTINS): New.
2407 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2409 * c-aux-info.c: Include toplev.h after c-tree.h.
2410 * c-common.c: Likewise.
2411 (GCC_DIAG_STYLE): Undef.
2412 * c-semantics.c (GCC_DIAG_STYLE): Define.
2413 * c-tree.h (GCC_DIAG_STYLE): Likewise.
2414 * diagnostic.h (inform): Move prototype to toplev.h.
2415 * jump.c: Include diagnostic.h before toplev.h.
2416 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
2417 (warning, error, fatal_error, pedwarn, sorry, inform,
2418 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
2420 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2422 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
2423 at all if edge is not specified.
2424 (can_copy_bbs_p, copy_bbs): New.
2425 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
2426 * cfgloop.c (get_loop_body): Comment more precisely.
2427 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
2428 (scale_bbs_frequencies): Fix comment typo.
2429 (can_duplicate_loop_p): Use can_copy_bbs_p.
2430 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
2432 2003-07-03 Devang Patel <dpatel@apple.com>
2434 * c-opts.c (c_common_parse_file): Remove extra
2435 debug_hooks->start_source_file call.
2437 2003-07-03 Roger Sayle <roger@eyesopen.com>
2439 * real.c (real_trunc, real_floor, real_ceil): New functions
2440 to implement trunc, floor and ceil respectively.
2441 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
2442 * builtins.c (integer_valued_real_p): New function to test if
2443 a floating point expression has an integer valued result.
2444 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
2445 foo(x) where foo is an integer rounding function. Similarly,
2446 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
2447 (double)(int)x when both foo and bar are integer rounding
2448 functions and we don't need to honor errno.
2449 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
2450 New functions to fold trunc, floor and ceil.
2451 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
2452 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
2453 to fold BUILT_IN_CEIL*.
2454 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
2455 the remaining integer rounding functions.
2457 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
2459 * config/sparc/sparc.c (function_arg_partial_nregs): Use
2460 SPARC_INT_ARG_MAX to determine where to split unnamed
2461 complex FP arguments.
2463 Thu Jul 3 20:36:47 CEST 2003 Jan Hubicka <jh@suse.cz>
2465 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
2466 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
2467 (merge_blocks_move_predecessor_nojumps,
2468 merge_blocks_move_successor_nojumps): Use merge_blocks.
2469 (try_optimize_cfg): Use merge_blocks_move.
2470 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
2471 (merge_blocks_nomove): Rename to rtl_merge_blocks.
2472 (cfg_layout_create_basic_block): New.
2473 (rtl_can_merge_blocks): New.
2474 (cfg_layout_split_block): Do not alloc aux by hand.
2475 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
2477 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
2478 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
2479 * cfgloopmanip.c (loop_split_edge_with): Likewise.
2480 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
2482 * basic-block.h (basic_block_def): Add field 'rbi'.
2483 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
2484 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
2485 * cfg.c (entry_exit_blocks): Add new field.
2486 * cfglayout.c: Include alloc-pool.h;
2487 (cfg_layout_pool): New.
2488 (record_effective_endpoints, fixup_reorder_chain,
2489 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
2491 (cfg_layout_initialize_rbi): New function.
2492 (cfg_layout_initialize): Use it.
2493 (cfg_layout_finalize): Clear rbi fields.
2494 * cfglayout.h (RBI): Kill.
2495 (cfg_layout_initialize_rbi): Declare.
2496 * cfgloopmanip.c (copy_bbs): Use rbi.
2497 (record_exit_edges): Likewise.
2498 (duplicate_loop_to_header_edge): Likewise.
2499 * cfgrtl.c (cfg_layout_create_basic_block): Use
2500 cfg_layout_initialize_rbi.
2501 (cfg_layout_split_block): Use rbi.
2502 (cfg_layout_delete_block): Likewise.
2503 * loop-init.c (loop_optimizer_finalize): Likewise.
2504 * loop-unswitch.c (unswitch_loop): Likewise.
2505 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
2507 * cfgrtl.c: Update comments.
2508 (try_redirect_by_replacing_jump): New argument.
2509 (redirect_branch_edge): Break out from ...
2510 (rtl_redirect_edge_and_branch): ... this one.
2511 (update_cfg_after_block_merging): Break out from ...
2512 (rtl_merge_blocks): ... this one.
2513 (cfg_layout_split_edge): New.
2514 (cfg_layout_merge_blocks): New.
2515 (cfg_layout_can_merge_blocks_p): New.
2516 (cfg_layout_redirect_edge_and_branch): Reorganize.
2517 (cfg_layout_rtl_cfg_hooks): Fill in.
2518 (cfg_layout_delete_block): Kill barriers.
2519 * cfganal.c (can_fallthru): Deal with exit blocks
2520 * cfglayout.c (cfg_layout_function_header): New function
2521 (record_effective_endpoints): Record function header.
2522 (fixup_reorder_chain): Fixup dead jumptables; place header
2524 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
2525 * bb-reorder.c (cfg_layout_initialize): Update call.
2526 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
2527 edges in cfglayout mode.
2528 * cfglayout.c (cleanup_unconditional_jumps): Kill.
2529 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
2530 * cfglayout.h (cfg_layout_initialize): Update prototype.
2531 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
2532 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
2533 * flow.c (propagate_block): Do not crash when basic block ends
2534 by first insn in the chain.
2535 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
2537 * tracer.c (tracer): Update call of cfg_layout_initialize.
2539 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2541 * Makefile.in: Use dependency variables in lieu of explicit
2544 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
2546 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
2547 * tree.h: ...to here.
2549 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
2551 * config/s390/2064.md: Fix comment typos.
2552 * config/s390/2084.md: Likewise.
2553 * config/s390/s390.c: Likewise.
2554 * config/s390/s390.md: Likewise.
2555 * config/sh/sh.c: Likewise.
2556 * config/sh/sh.h: Likewise.
2557 * config/sh/sh.md: Likewise.
2558 * config/sparc/sparc.c: Likewise.
2559 * config/sparc/sparc.h: Likewise.
2560 * config/sparc/sparc.md: Likewise.
2561 * config/stormy16/stormy16.c: Likewise.
2562 * config/stormy16/stormy16.h: Likewise.
2563 * config/stormy16/stormy-abi: Fix a typo.
2565 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
2567 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
2569 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2571 * config/mips/mips.h (save_argv): Delete.
2573 2003-07-03 Roger Sayle <roger@eyesopen.com>
2576 * fold-const.c (extract_muldiv_1): There's nothing that can be done
2577 if the expression is a SAVE_EXPR.
2579 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
2581 * config/m32r/m32r.c: Fix comment typos.
2582 * config/m68hc11/m68hc11.c: Likewise.
2583 * config/m68hc11/m68hc11.h: Likewise.
2584 * config/m68k/m68k.c: Likewise.
2585 * config/mcore/mcore.c: Likewise.
2586 * config/mcore/mcore.h: Likewise.
2587 * config/mcore/mcore.md: Likewise.
2588 * config/mips/mips.c: Likewise.
2589 * config/mips/mips.h: Likewise.
2590 * config/mips/mips.md: Likewise.
2591 * config/mips/netbsd.h: Likewise.
2592 * config/mn10300/mn10300.c: Likewise.
2594 2003-07-03 Andreas Schwab <schwab@suse.de>
2596 * dbxout.c (pending_bincls): Move decl down inside
2597 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
2599 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
2601 * rtl.h (NOTE_DATA): Refer to whole union.
2602 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
2604 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
2606 PR optimization/11381
2607 * simplify-rtx.c (simplify_relational_operation): Check that
2608 two equal operands have no side-effects before simplifying
2611 2003-07-02 Jeff Law <law@redhat.com>
2613 * expr.c (do_store_flag): Remove special case folding for
2614 single bit tests. Instead call back into the commonized folder
2616 * fold-const.c (fold_single_bit_test): New function, mostly
2617 extracted from do_store_flag, with an additional case extracted
2619 (fold): Call fold_single_bit_test appropriately.
2620 * tree.h (fold_single_bit_test): Prototype.
2622 2003-07-02 Zack Weinberg <zack@codesourcery.com>
2624 * system.h: Include filenames.h.
2625 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
2626 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
2627 define based on HAVE_DOS_BASED_FILE_SYSTEM.
2628 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
2629 * config/i386/xm-mingw32.h: Don't define
2630 HAVE_DOS_BASED_FILE_SYSTEM,
2631 DIR_SEPARATOR, or DIR_SEPARATOR_2.
2632 * doc/hostconfig.texi: Update to match.
2634 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
2635 config/i386/cygwin.h:
2636 Use IS_ABSOLUTE_PATH throughout.
2637 * gcc.c (DIR_UP): Delete, unused.
2638 * protoize.c (IS_SAME_PATH): Define in terms of
2640 (is_abspath): Delete.
2642 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
2644 * config/i386/emmintrin.h: Fix comment typos.
2645 * config/i386/i386.c: Likewise.
2646 * config/i386/i386.h: Likewise.
2647 * config/i386/sco5.h: Likewise.
2648 * config/ia64/ia64.c: Likewise.
2649 * config/ia64/itanium2.md: Likewise.
2651 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
2653 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
2655 (emit_bincl_stab): Same.
2656 (emit_pending_bincls): Same.
2658 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
2660 * config/h8300/h8300.c (compute_mov_length): Fix the length of
2661 loading CONST0_RTX (SFmode).
2662 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
2663 'G' to CONST0_RTX (SFmode).
2664 * config/h8300/h8300.md (movsf_h8300): Change the first
2666 (movsf_h8300h): Likewise.
2668 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
2670 * c-common.h (c_common_init_options): New prototype.
2671 * c-opts.c (deferred_size): Remove.
2672 (defer_opt): Array is now pre-allocated.
2673 (c_common_init_options): Pre-allocate deferred_opts. Make
2674 lang_flags unsigned.
2675 (push_command_line_options): Free deferred_opts.
2676 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
2677 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
2678 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
2679 * langhooks.h (struct lang_hooks): New prototype for init_options.
2680 * main.c (main): Cast argv.
2681 * opts.c (handle_option, handle_options): Update prototypes.
2682 (decode_options): save_argc, save_argv are not global. Constify.
2683 * opts.h (decode_options): New prototype.
2684 * toplev.c (general_init): New protoype.
2685 (save_argv): Make static.
2686 (save_argc): Remove.
2687 (print_switch_values, general_init): Constify.
2688 (toplev_main): Save argv.
2689 * toplev.h (toplev_main): Update prototype.
2690 (save_argc, save_argv): Remove.
2692 2003-07-02 David Edelsohn <edelsohn@gnu.org>
2694 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
2695 (emit_bincl_stab): Same.
2696 (emit_pending_bincls): Same.
2698 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
2701 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
2703 2003-07-02 Andreas Schwab <schwab@suse.de>
2705 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
2707 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
2709 PR optimization/11210
2710 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
2711 about the behaviour with regard to bitfields.
2712 * fold-const (decode_field_reference): Record outermost type in
2713 case the expression is a NOP. Strip all NOPs. Set the signedness
2714 to that of the outermost type (if any) when the bitsize is equal
2715 to the size of the type.
2717 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
2719 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
2720 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
2721 (adddi3_internal_3, addsi3_internal_2): Likewise.
2723 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
2725 * config/mips/mips.c (machine_function): Add new fields:
2726 ignore_hazard_length_p and all_noreorder_p.
2727 (mips_flag_delayed_branch): New variable.
2728 (override_options): Treat '/' as an operand punctuation character.
2729 Set up mips_flag_delayed_branch.
2730 (print_operand): Handle '/'.
2731 (mips_output_function_prologue): Put the whole function in
2732 .set noreorder and .set nomacro if all_noreorder_p is true.
2733 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
2734 (mips16_optimize_gp): Remove "first insn" parameter.
2735 (mips16_lay_out_constants): New function, split out from mips_reorg.
2736 (mips_avoid_hazard, mips_avoid_hazards): New functions.
2737 (mips_reorg): For mips16 code, call mips16_lay_out_constant
2738 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
2739 do delayed-branch scheduling followed by hazard detection.
2740 (mips_adjust_insn_length): Only account for hazards if
2741 !ignore_hazard_length_p.
2742 (mips_output_load_label): Add a nop to the o32 sequence if
2743 the target suffers from load delays.
2744 (mips_output_conditional_branch): Add %/ to the end of branches.
2745 (mips_output_division): Fill the branch delay slot with %#.
2746 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
2747 instructions. End all other %* branches with %/.
2748 (ffssi2, ffsdi2): Fix lengths.
2749 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
2750 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
2751 (fix_truncsfsi2_macro): Likewise.
2752 (mov_lwl): Set hazard to "none".
2753 (ashldi3_internal): Fill the branch delay slot with %#.
2754 (ashrdi3_internal, lshrdi3_internal): Likewise.
2755 (exception_receiver): Explicitly set $28.
2756 (hazard_nop): New pattern.
2758 Wed Jul 2 08:12:36 CEST 2003 Jan Hubicka <jh@suse.cz>
2760 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
2761 before calling tree_inlinable_function_p.
2763 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2765 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
2766 <internal/stdio_core.h> too.
2767 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
2768 <internal/wchar_core.h> too.
2769 Substitute va_list uses in inline definition.
2770 * fixinc/fixincl.x: Regenerate.
2772 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2774 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
2775 Undef before redefinition.
2776 (LABEL_AFTER_LOC): Likewise.
2777 (DEFAULT_SIGNED_CHAR): Likewise.
2778 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
2781 * config/mips/iris3.h: Remove, unused.
2782 * config/mips/iris4.h: Likewise.
2784 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
2786 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
2787 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
2790 * config/mips/iris5.h: Move explicit includes ...
2791 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
2793 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
2794 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
2797 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
2798 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
2801 * config/mips/iris6.h: Fix IRIX spelling.
2802 (MULTILIB_DEFAULTS): Undef before redefinition.
2804 * config/mips/iris6.h: Move explicit includes ...
2805 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
2807 Wed Jul 2 02:16:48 CEST 2003 Jan Hubicka <jh@suse.cz>
2809 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
2810 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
2811 Use next_needed field instead of aux to maintain the queue.
2812 * cgraph.h (cgraph_node): Add next_needed.
2813 (cgraph_varpool_node): Add next_needed; remove aux.
2814 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
2816 Wed Jul 2 02:12:51 CEST 2003 Jan Hubicka <jh@suse.cz>
2818 * cgraphunit.c (cgraph_finalize_function): Set finalized.
2819 (cgraph_finalize_function): Do not examine inlinablility.
2820 (cgraph_finalize_compilation_unit): Do it here.
2821 * cgraph.h (cgraph_local_info): Add finalized field.
2823 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2825 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
2826 (gt_pch_restore): Likewise.
2828 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
2830 * config/alpha/alpha.c: Fix comment typos.
2831 * config/alpha/elf.h: Likewise.
2832 * config/arm/arm.c: Likewise.
2833 * config/arm/arm.h: Likewise.
2834 * config/arm/arm.md: Likewise.
2835 * config/arm/t-arm-coff: Likewise.
2836 * config/arm/t-strongarm-pe: Likewise.
2837 * config/arm/xscale-elf.h: Likewise.
2838 * config/avr/avr.h: Likewise.
2840 2003-07-01 Jeff Law <law@redhat.com>
2842 * stmt.c (any_pending_cleanups): Remove another redundant test.
2844 2003-07-01 David Edelsohn <edelsohn@gnu.org>
2845 J"orn Rennecke <joern.rennecke@superh.com>
2847 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
2850 2003-07-01 Devang Patel <dpatel@apple.com>
2852 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
2854 (struct dbx_file): New members - bincl_status, pending_bincl_name and
2856 (pending_bincls): New.
2857 (dbxout_init): Initialize new dbx_file members.
2858 (dbxout_start_source_file): Same.
2859 (emit_bincl_stab): New function.
2860 (emit_pending_bincls): Same.
2861 (emit_pending_bincls_if_required): Same.
2862 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
2864 (dbxout_begin_block): Emit pending BINCL stabs.
2865 (dbxout_end_block): Same.
2866 (dbxout_function_decl): Same.
2867 (dbxout_continue): Same.
2868 (dbxout_type): Same.
2869 (dbxout_class_name_qualifiers): Same.
2870 (dbxout_symbol): Same.
2871 (dbxout_symbol_location): Same.
2872 (dbxout_parms): Same.
2874 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2876 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
2877 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
2879 2003-07-01 Andreas Jaeger <aj@suse.de>
2881 * fold-const.c: Convert prototypes to ISO C90.
2882 * function.c: Likewise.
2883 * function.h: Likewise.
2885 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
2887 * doc/contrib.texi: Fix typos.
2888 * doc/invoke.texi: Likewise.
2889 * doc/passes.texi: Likewise.
2890 * doc/sourcebuild.texi: Likewise.
2891 * doc/tm.texi: Likewise.
2893 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
2895 * basic-block.h: Fix comment typos.
2896 * bb-reorder.c: Likewise.
2897 * c-format.c: Likewise.
2898 * cfgcleanup.c: Likewise.
2899 * cfghooks.h: Likewise.
2900 * cfgloop.c: Likewise.
2901 * cfgloopmanip.c: Likewise.
2902 * cfgrtl.c: Likewise.
2903 * cgraph.h: Likewise.
2904 * cgraphunit.c: Likewise.
2905 * combine.c: Likewise.
2906 * convert.c: Likewise.
2907 * dbxout.c: Likewise.
2910 * diagnostic.c: Likewise.
2911 * dwarf2out.c: Likewise.
2912 * et-forest.h: Likewise.
2914 * fold-const.c: Likewise.
2915 * function.h: Likewise.
2916 * gcov-io.h: Likewise.
2919 * genautomata.c: Likewise.
2920 * ggc-common.c: Likewise.
2921 * ggc-page.c: Likewise.
2922 * loop-unroll.c: Likewise.
2923 * loop-unswitch.c: Likewise.
2925 * mips-tfile.c: Likewise.
2926 * optabs.c: Likewise.
2927 * ra-build.c: Likewise.
2928 * ra-colorize.c: Likewise.
2929 * ra-rewrite.c: Likewise.
2931 * regmove.c: Likewise.
2932 * reload.c: Likewise.
2933 * rtlanal.c: Likewise.
2934 * sched-ebb.c: Likewise.
2935 * sched-int.h: Likewise.
2936 * sched-vis.c: Likewise.
2937 * sreal.c: Likewise.
2938 * ssa-ccp.c: Likewise.
2940 * toplev.c: Likewise.
2941 * tree-inline.c: Likewise.
2942 * value-prof.c: Likewise.
2943 * value-prof.h: Likewise.
2945 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
2947 * rtl.h (emit_line_note_after): Remove.
2948 (emit_note_copy_after, emit_note_copy): New.
2949 * emit-rtl.c (reorder_insns_with_line_notes): Replace
2950 emit_line_note_after with emit_note_copy_after.
2951 (emit_insn_after_with_line_notes): Likewise.
2952 (emit_line_note_after): Kill.
2953 (emit_note_copy_after): New.
2954 (emit_note_copy): New.
2955 * function.c (emit_return_into_block): Use emit_note_copy_after.
2956 (thread_prologue_and_epilogue_insns): Likewise.
2957 * integrate.c (expand_inline_function): Use emit_note_copy.
2958 (copy_insn_list): Likewise.
2959 * unroll.c (copy_loop_body): Likewise.
2960 * cfglayout.c (duplicate_insn_chain): Likewise.
2962 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
2964 * c-tree.h (define_label): Replace filename and lineno arguments
2966 * c-decl.c (poplevel): Adjust define_label call.
2967 (pop_label_level): Likewise.
2968 (define_label): Replace filename and lineno arguments with a
2970 (store_parm_decls): Use DECL_SOURCE_LOCATION.
2971 * c-parse.in (label): Adjust define_label call.
2973 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
2975 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
2976 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
2977 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
2978 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
2979 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
2981 2003-07-01 Andreas Jaeger <aj@suse.de>
2983 * final.c: Convert prototypes to ISO C90.
2985 * flags.h: Likewise.
2986 * gcov-io.c: Likewise.
2987 * gcov-io.h: Likewise.
2989 See ChangeLog.9 for earlier changes.