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