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