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