1 2003-08-20 Gunther Nikl <gni@gecko.de>
3 * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
4 depending on MOTOROLA_BSR
5 * config/m68k/m68k.md (anonymous define_insn): Likewise
7 2003-08-20 Jason Merrill <jason@redhat.com>
9 * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
10 (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
11 fold_trunc_transparent_mathfn, fold_builtin): Likewise.
12 * dojump.c (do_jump): Likewise.
13 * fold-const.c (operand_equal_p, fold): Likewise.
14 (tree_expr_nonnegative_p): Likewise.
16 * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
17 TYPE_USER_ALIGN for FIELD_DECLs.
19 * attribs.c (decl_attributes): Rebuild the function pointer type after
20 changing the target type.
21 * tree.c (get_qualified_type): Also check that the attributes match.
23 2003-08-19 Matt Kraai <kraai@alumni.cmu.edu>
25 * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
26 * objc/config-lang.in (stagestuff): ... to here.
28 2003-08-19 Mark Mitchell <mark@codesourcery.com>
31 * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
32 NOP_EXPR) when necessary.
33 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
34 types with precisions other than those given by native machine
37 2003-08-19 Geoffrey Keating <geoffk@apple.com>
39 * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
40 because some macro is defined.
42 * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
44 * config/i386/darwin.h (ASM_SPEC): New.
45 (SUBTARGET_EXTRA_SPECS): New.
46 * config/rs6000/darwin.h (ASM_SPEC): New.
47 (SUBTARGET_EXTRA_SPECS): New.
48 * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
49 a cross-compiler between two different processors on Darwin.
50 * configure: Regenerate.
52 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
54 * builtins.c: Fix comment typos.
55 * c-common.c: Likewise.
57 * c-pretty-print.c: Likewise.
58 * cfgbuild.c: Likewise.
59 * cfglayout.c: Likewise.
60 * cfgloopanal.c: Likewise.
61 * cgraphunit.c: Likewise.
62 * cppfiles.c: Likewise.
63 * dwarfout.c: Likewise.
65 * fold-const.c: Likewise.
67 * ggc-page.c: Likewise.
68 * haifa-sched.c: Likewise.
69 * pretty-print.c: Likewise.
72 * value-prof.c: Likewise.
74 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
76 * c-decl.c: Follow spelling conventions.
77 * cppfiles.c: Likewise.
79 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
81 * c-common.c: Fix comment formatting.
82 * c-common.h: Likewise.
84 * cppinit.c: Likewise.
86 * emit-rtl.c: Likewise.
88 * line-map.h: Likewise.
91 * simplify-rtx.c: Likewise.
93 2003-08-19 Daniel Jacobowitz <drow@mvista.com>
95 * unwind-c.c: Add libgcc-style exception.
96 * unwind-dw2.c: Likewise.
97 * unwind-pe.h: Likewise.
98 * unwind-sjlj.c: Likewise.
99 * unwind.inc: Likewise.
101 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
103 PR c/5582 PR c++/10538
104 * langhooks-def.h (lhd_decl_uninit): Declare.
105 (LANG_HOOKS_DECL_UNINIT): New macro.
106 (LANG_HOOKS_INITIALIZER): Adjust.
107 * langhooks.h (struct lang_hooks): Add new field
109 * langhooks.c (lhd_decl_uninit): Define.
110 * c-common.c (c_decl_uninit_1): New function.
111 (c_decl_uninit): New function.
112 (warn_init_self): Define.
113 * c-common.h (c_decl_uninit): Declare.
114 (warn_init_self): Declare.
115 * c.opt: Introduce -Winit-self.
116 * c-opts.c (c_common_handle_options): Set warn_init_self.
117 * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
118 * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
119 * function.c (uninitialized_vars_warning): Call the language hook.
120 * doc/invoke.texi: Document -Winit-self.
122 2003-08-19 Chris Demetriou <cgd@broadcom.com>
124 * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
125 to use better predicates and constraints. Define new
126 instruction to handle "trap_if" with DI-mode arguments.
127 (conditional_trap): FAIL if trap code is not 0.
129 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
131 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
132 strstr with $pb to a strcompare with "<pic base>"
133 (ix86_output_addr_diff_elt): Output the real pic base.
135 2003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
137 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
138 (LANG_HOOKS_INITIALIZER): Correct.
139 * c-lang.c: Likewise.
141 2003-08-19 Jan Hubicka <jh@suse.cz>
143 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
144 (cgraph_varpool_mark_needed_node): Likewise.
145 * cgraph.h (notice_global_symbol): Declare
146 * varasm.c (notice_global_symbol): Break out from ...
147 (assemble_start_function): ... here; update for variables.
148 (assemble_variable): Use notice_global_symbol.
150 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
152 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
153 expect SFmode and DFmode arguments to be passed in FPRs,
154 regardless of the underlying type.
156 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
159 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
160 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
162 2003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
165 * c-typeck.c (set_init_index): Check for negative index.
167 2003-08-18 Bob Wilson <bob.wilson@acm.org>
169 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
171 * config/xtensa/crtn.asm (_init, _fini): Likewise.
172 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
173 __umodsi3, __modsi3): Likewise.
174 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
177 2003-08-18 Aldy Hernandez <aldyh@redhat.com>
179 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
181 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
183 * config/mips/mips.md: Quote C code in braces. Remove use of
184 fake const0_rtx operands. Remove double backslashes. Use \;.
185 Remove workarounds for bogus warnings.
187 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
189 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
190 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
191 rather than TARGET_MIPS4300.
192 (mulsf3_internal, mulsf3_r4300): Likewise.
194 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
196 * config/mips/mips.md: Renumber unspecs. Clean up comments.
198 2003-08-17 Roger Sayle <roger@eyesopen.com>
200 * simplify-rtx.c (associative_constant_p): New function to test
201 whether an RTX expression is an immediate constant.
202 (simplify_associative_operation): New function to perform some
203 reassociation optimizations of associative binary expressions.
204 (simplify_binary_operation): Use simplify_associative_operation
205 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
206 Floating point expressions are only reassociated when unsafe
207 math optimizations are permitted.
209 2003-08-17 Andreas Jaeger <aj@suse.de>
211 * config/alpha/alpha.md: Remove usage of PARAMS.
213 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
214 * config/i386/i386-interix.h: Likewise.
215 * config/i386/winnt.c: Likewise.
216 * config/i386/cygming.h: Likewise.
217 * config/i386/cygwin2.c: Likewise.
218 * config/darwin.c: Likewise.
219 * config/darwin-c.c: Likewise.
220 * config/darwin-protos.h: Likewise.
221 * config/darwin.h: Likewise.
222 * config/s390/s390-protos.h: Likewise.
223 * config/s390/s390.c: Likewise.
224 * config/ia64/ia64.c: Likewse
225 * config/ia64/ia64-protos.h: Likewise.
226 * config/ia64/ia64-c.c: Likewise.
228 2003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
230 * config/sparc/sparc.c: Convert to ISO C.
232 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
233 * config/sparc/sparc.c: Likewise.
235 2003-08-16 Nathan Sidwell <nathan@codesourcery.com>
238 * stmt.c (expand_expr_stmt_value): Don't warn about any void
241 2003-08-16 Jan Hubicka <jh@suse.cz>
243 * i386.c (ix86_fntype_regparm): Rename from ...
244 (ix86_function_regparm): ... this one; add fastcall and local
246 (ix86_function_ok_for_sibcall): Update.
247 (ix86_return_pops_args): Likewise.
248 (init_cumulative_args): Likewise.
249 (x86_can_output_mi_thunk): Likewise.
250 (function_arg): Fix formating.
251 (x86_this_parameter): Fix fastcall.
252 (x86_output_mi_thunk): Likewise.
254 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
255 body as reachable; mark nested functions as needed too.
256 (dump_cgraph): Do not output global.calls.
257 * cgraph.h (cgraph_global_info): Kill.
258 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
259 (record_call_1): Speedup.
260 (cgraph_analyze_function): Break out from ...; compute inlining
262 (cgraph_finalize_compilation_unit): ... here.
263 (cgraph_mark_inline): Kill computation of calls.
264 (cgraph_decide_inlining): Do not compute most of initial values.
266 2003-08-14 Roger Sayle <roger@eyesopen.com>
268 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
269 to negate if either operand is easy to negate, if we don't care
270 about sign-dependent rounding.
271 (negate_expr): Make the logic to negate a REAL_CST explicit.
272 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
273 that's easy to negate, if we don't honor sign-dependent rounding.
274 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
275 negate, and the symmetric A * -B as -A * B if A is easy to negate.
276 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
277 -C/D if B and C are cheap to negate. Add an explicit rule to
278 optimize X/-1.0 as -X when we don't care about signaling NaNs.
280 2003-08-14 Zack Weinberg <zack@codesourcery.com>
282 * Makefile.in (tm_file): Rename tm_include_list.
283 (tm_p_file): Rename tm_p_include_list.
284 (build_xm_file): Rename build_xm_include_list.
285 (host_xm_file): Rename host_xm_include_list.
286 (xm_file): Rename xm_include_list.
287 (xm_file_list): Add to be substituted.
288 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
290 (bt-load.o): Add missing dependency on $(TM_H).
291 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
292 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
293 build_xm_file, generate both *_file_list and *_include_list
294 values from it. (xm_file_list was formerly not being generated.)
295 In *_include_list, prefix the names of all headers found in
296 $(srcdir)/config with config/. In each loop, consider only
297 the special case files that can actually appear in that list.
298 AC_SUBST all *_file_list and all *_include_list variables; do
299 not AC_SUBST the plain *_file variables.
300 * configure: Regenerate.
302 2003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
304 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
306 2003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
308 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
310 (attr_length_call): Include it here. Improve length estimate for
312 (output_call): Use targetm.binds_local_p.
314 2003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
316 * builtins.c (CASE_MATHFN): New helper macro.
317 (mathfn_built_in): Simplify and sort.
319 * protoize.c (substr): Delete, callers changed to `strstr'.
321 2003-08-13 Zack Weinberg <zack@codesourcery.com>
323 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
324 * config/iq2000/xm-iq2000.h: Delete file.
326 2003-08-13 Geoffrey Keating <geoffk@apple.com>
328 * gengtype.c (walk_type): Process a subobject before processing
329 the pointer that points to the subobject.
331 2003-08-13 Per Bothner <pbothner@apple.com>
333 * regclass.c (init_reg_modes): Make non-static.
334 Rename to init_reg_modes_once per new naming convention.
335 (init_regs): Don't call init_reg_modes here.
336 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
337 * rtl.h (init_reg_modes_once): New declaration.
338 * toplev.c (backend_init): Call init_regs after init_emit_once.
340 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
342 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
343 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
345 2003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
347 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
348 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
350 2003-08-13 Dale Johannesen <dalej@apple.com>
352 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
353 handling of decrement-and-branch farther than 32 bits.
355 2003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
357 * configure.in (make_compare_target): Move test to ...
358 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
359 * configure: Regenerate.
361 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
363 * config/mips/iris6.h: Convert to C90 prototypes.
364 * config/mips/irix6-libc-compat.c: Likewise.
365 * config/mips/mips-protos.h: Likewise.
366 * config/mips/mips.c: Likewise.
368 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
370 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
371 for selected machines. Comment heavily.
372 fixinc/fixincl.x: Rebuild.
373 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
375 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
377 * config/mips/mips.h: Tweak various comments.
378 * config/mips/mips.c: Likewise.
380 2003-08-11 James E Wilson <wilson@tuliptree.org>
382 PR optimization/11319
384 * alias.c (find_base_value, case REG): Return 0 not src if no base
387 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
389 * gcse.c (gmalloc): Fix last change.
391 2003-08-11 Roger Sayle <roger@eyesopen.com>
393 * simplify-rtx.c (simplify_binary_operation): Replace calls to
394 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
395 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
396 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
398 2003-08-11 Roger Sayle <roger@eyesopen.com>
400 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
401 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
402 typecode for an ABS_EXPR.
404 * doc/c-tree.texi: Document ABS_EXPR.
406 2003-08-11 Roger Sayle <roger@eyesopen.com>
408 * fold-const.c (fold): Optimize any associative floating point
409 operator with -funsafe-math-optimizations, not just MULT_EXPR.
411 2003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
413 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
414 information in SHmedia case too.
415 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
417 (__set_fpscr): Use an access via GOT for PIC case.
419 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
421 * configure.in (intermodule): Make switch test more portable.
422 * configure: Regenerate.
424 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
426 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
429 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
431 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
432 (grealloc): Size argument is a size_t.
433 (gcalloc): New function. Use throughout in lieu of
436 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
438 * config/ia64/ia64.c (ia64_reorg): Likewise.
439 * conflict.c (conflict_graph_new): Likewise.
440 * fixinc/fixincl.c (run_compiles): Likewise.
441 * genattrtab.c (optimize_attrs): Likewise.
442 * genrecog.c (new_decision): Likewise.
443 * haifa-sched.c (schedule_block): Likewise.
444 * hashtable.c (ht_create): Likewise.
446 2003-08-11 Bob Wilson <bob.wilson@acm.org>
448 * config/xtensa/lib2funcs.S: Fix whitespace.
449 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
450 syntax where appropriate. Remove unnecessary backslash escapes.
451 Reformat comments and fix some code formatting.
452 (extendqisi2): Rearrange conditional.
453 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
454 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
457 2003-08-11 Richard Sandiford <rsandifo@redhat.com>
459 * config/mips/mips.c: Various formatting fixes.
460 (override_options): Resync -mtune handling with gas.
461 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
462 * config/mips/mips.h: More formatting fixes.
463 (mips_abi): Move declaration.
464 * config/mips/mips.md (exception_receiver): Add mode to
467 2003-08-11 Aldy Hernandez <aldyh@redhat.com>
469 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
471 (bdesc_1arg): Remove evsplati and evsplatfi.
473 2003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
475 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
478 2003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
480 * builtins.c (expand_builtin_strcat): Optimize constant strings.
482 2003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
484 * pretty-print.c (pp_base_indent): Rename from pp_indent.
485 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
486 (struct c_pretty_print_info): Add more fields.
487 (pp_c_left_paren): Move to c-pretty-print.c.
488 (pp_c_right_paren): Likewise.
489 (pp_c_left_brace): Likewise.
490 (pp_c_right_brace): Likewise.
491 (pp_c_left_bracket): Likewise.
492 (pp_c_right_bracket): Likewise.
493 (pp_c_declarator): Declare.
494 (pp_c_direct_declarator): Likewise.
495 (pp_c_specifier_qualifier_list): Likewise.
496 (pp_c_type_id): Likewise.
497 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
498 (pp_c_type_qualifier_list): New.
499 (pp_c_pointer): Likewise.
500 (pp_c_parameter_type_list): Likewise.
501 (pp_c_function_definition): Likewise.
502 (pp_c_id_expression): Likewise.
503 (pp_c_simple_type_specifier): Tidy.
504 (pp_c_unary_expression): Likewise.
505 (pp_c_expression): Likewise.
506 (pp_c_pretty_printer_init): Likewise.
507 (pp_c_specifier_qualifier_list): Rework..
508 (pp_c_abstract_declarator): Likewise.
509 (pp_c_postfix_expression): Likewise.
510 (pp_c_primary_expression): Likewise.
511 (pp_c_cast_expression): Likewise.
512 (pp_c_direct_abstract_declarator): Likewise.
513 (pp_c_storage_class_specifier): Likewise.
514 (pp_c_function_specifier): Likewise.
515 (pp_c_declaration_specifiers): Likewise.
516 (pp_c_direct_declarator): Likewise.
517 (pp_c_declarator): Likewise.
518 (pp_c_declaration): Likewise.
519 (pp_c_statement): Likewise.
520 (pp_c_integer_constant): Rename from pp_c_integer_literal.
521 (pp_c_character_constant): Rename from pp_c_character_literal.
522 (pp_c_bool_constant): Rename from pp_c_bool_literal.
523 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
524 (pp_c_floating_constant): Rename from pp_c_real_literal.
525 (pp_c_constant): Rename from pp_c_literal.
526 * c-lang.c: Include diagnostic.h and c-pretty-print.h
527 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
528 (c_initialize_diagnostics): New.
529 * Makefile.in (c-lang.o): Update dependency.
531 2003-08-10 Nathan Sidwell <nathan@codesourcery.com>
533 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
535 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
537 * config/mips/mips.c (mips_no_mips16_string): Remove.
538 (override_options): Don't handle -mips16 as part of -mipsN.
539 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
540 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
541 (TARGET_OPTIONS): Remove -mno-mips16.
543 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
545 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
546 (coprocessor2_operand): Likewise.
547 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
548 (lookup_name): Remove declaration.
549 (abort_with_insn): Remove. Replace all uses with fatal_insn.
550 (mips16, mips_abicalls): Remove.
551 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
552 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
553 (coprocessor_operand, coprocessor2_operand): Remove.
554 (override_options): Don't set mips16 or mips_abicalls.
555 (print_operand): Don't expect SIGN_EXTEND operands.
556 (mips_secondary_reload_class): Likewise.
557 (mips_output_conditional_branch): Remove disabled long-branch code.
558 * config/mips/mips.h (call_used_regs): Remove declaration.
559 (may_call_alloca): Likewise.
560 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
561 (mips_abicalls, mips16): Remove declarations.
562 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
563 (CC1_SPEC): Remove outdated comment.
564 (MIPS_VERSION, MACHINE_TYPE): Remove.
565 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
566 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
567 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
568 (PUSH_ROUNDING): Likewise.
569 (ASSEMBLER_SCRATCH_REGNUM): Remove.
570 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
571 and mips16 with TARGET_MIPS16.
573 2003-08-09 Per Bothner <pbothner@apple.com>
575 * cppinit.c (cpp_read_main_file): Split out source-independent
576 initialization to separate function ...
577 (cpp_post_options): New function.
578 * cppfiles.c (cpp_stack_file): Rename public name to ...
579 (_cpp_stack_file): New internal function name.
580 * cpplib.h: Update accordingly.
581 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
582 (cpp_read_main_file): Don't initialize line here.
583 * c-opts.c (c_common_post_options): Call cpp_post_options.
584 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
585 * fix-header.c (read_scan_file): Call cpp_post_options.
587 2003-08-09 Per Bothner <per@bothner.com>
589 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
591 2003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
593 * pa.c (pa_asm_output_mi_thunk): Fix typo.
595 2003-08-09 Neil Booth <neil@daikokuya.co.uk>
597 PR preprocessor/11839
598 * cppfiles.c (open_file): Handle ENOTDIR.
600 2003-08-09 Richard Sandiford <rsandifo@redhat.com>
603 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
605 2003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
607 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
608 source/destination is not a register operand.
610 2003-08-08 Richard Henderson <rth@redhat.com>
613 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
614 RETURN_ADDRESS_POINTER_REGNUM.
615 (ia64_expand_prologue): Don't frob it.
616 (ia64_output_function_epilogue): Likewise.
617 (ia64_return_addr_rtx): New.
618 (ia64_split_return_addr_rtx): New.
619 * config/ia64/ia64-protos.h: Update.
620 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
621 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
622 (GENERAL_REGNO_P): Don't check it.
623 (AR_*_REGNUM): Renumber.
624 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
625 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
626 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
627 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
628 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
629 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
630 (movdi_ret_addr): New.
632 2003-08-08 Geoffrey Keating <geoffk@apple.com>
634 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
636 2003-08-08 Roger Sayle <roger@eyesopen.com>
638 * tree.h (get_identifier) Define a macro form of get_identifier
639 that calls get_identifier_with_length when the string is constant.
640 (get_identifier_with_length): Change type of second argument to
642 * stringpool.c (get_identifier): Undefine the macro before giving
643 the function definition.
644 (get_identifier_with_length): Change type of second argument to
645 size_t in function definition.
646 * hashtable.c (calc_hash): Change type of second argument to size_t.
647 (ht_lookup): Change type of third argument to size_t. Reorganize
648 to speed-up the cases where the hash table slot is empty, or the
649 first probe matches (i.e. there isn't a collision).
650 * hashtable.h (ht_lookup): Adjust function prototype.
652 2003-08-08 Bernardo Innocenti <bernie@develer.com>
656 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
658 2003-08-08 Neil Booth <neil@daikokuya.co.uk>
660 * common.opt: Add debug switches.
661 * flags.h (use_gnu_debug_info_extensions): Boolify.
662 * opts.c (write_symbols, debug_info_level,
663 use_gnu_debug_info_extensions): Move from toplev.c.
664 (set_debug_level): New.
665 (common_handle_options): Handle debug switches.
666 (print_help): Display target options directly.
667 * toplev.c (debug_hooks): Don't initialize.
668 (write_symbols, debug_info_level,
669 use_gnu_debug_info_extensions): Move to opts.c.
670 (debug_args, display_help, decode_g_option): Remove.
671 (process_options): Set no debug if level zero here,
672 and no-debug-hooks. Error here if impossible debug format selected.
673 * toplev.h (display_help, decode_g_option): Remove.
675 2003-08-08 Richard Sandiford <rsandifo@redhat.com>
677 * tree.c (get_file_function_name_long): Fix size of alloca() area.
679 2003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
681 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
682 and gcc_cv_prog_cmp_skip.
683 * configure: Regenerate.
685 2003-08-08 Stan Cox <scox@redhat.com>
687 * config/iq2000: New port.
688 * config.gcc (iq2000-*-elf): Added.
689 * doc/install.texi (Specific): Add iq2000 description.
691 2003-08-08 Andreas Schwab <schwab@suse.de>
693 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
694 and insert missing empty argument.
695 * configure: Regenerate.
697 2003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
699 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
700 (attr_length_millicode_call): Likewise.
701 (attr_length_call): Likewise. Revise some maximum insn lengths.
702 (attr_length_indirect_call): Likewise.
703 (output_call): Fix thinko that added extra nop.
704 * pa.h (IN_NAMED_SECTION_P): Define.
707 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
708 __STDC_EXT__ when using C++ dialect.
710 2003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
712 * sh.c (calc_live_regs): If the return address pointer is live,
714 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
715 for saves / restores.
716 (sh_expand_epilogue): If sh_media_register_for_return returns a
717 register number, flag the instructions that restores PR_MEDIA_REG
719 Remove dead update of offset.
720 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
721 we can use the result of get_hard_reg_initial_val.
722 * sh.md (UNSPEC_RA): New constant.
723 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
724 (load_ra). Handle UNSPEC_RA.
725 (sibcall_media): Use PR_MEDIA_REG.
727 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
728 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
729 needs saving on SHmedia.
731 2003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
733 * config/s390/s390.md: Replace all occurrences of \\t with \t.
735 2003-08-07 Richard Sandiford <rsandifo@redhat.com>
737 * local-alloc.c (combine_regs): Fix comment typo.
739 2003-08-06 Zack Weinberg <zack@codesourcery.com>
741 * c-decl.c (builtin_decls): Replace with first_builtin_decl
742 and last_builtin_decl.
743 (c_init_decl_processing): Initialize both.
744 (c_reset_state): Iterate from first_builtin_decl to
745 last_builtin_decl inclusive to reintroduce builtins.
747 2003-08-06 David Mosberger <davidm@hpl.hp.com>
749 * doc/extend.texi (Function Attributes): Document the IA-64 version
750 of the "model" attribute.
752 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
753 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
754 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
756 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
757 (ia64_encode_section_info): Likewise.
758 (ia64_attribute_table): Add "model" attribute.
759 (TARGET_ENCODE_SECTION_INFO): Define.
760 (small_addr_symbolic_operand): New function.
761 (got_symbolic_operand): Return 0 for a symbolref to an object
762 in the small address area.
763 (enum ia64_addr_area): New type.
764 (small_ident1): New variable.
765 (small_ident2): Likewise.
766 (init_idents): New function.
767 (ia64_get_addr_area): Likewise.
768 (ia64_encode_addr_area): Likewise.
769 (ia64_encode_section_info): Likewise.
770 (ia64_expand_load_address): For symbolic references to objects in
771 the small-address-area, load the address via gen_rtx_SET() (which,
772 eventually, will expand into "addl").
774 2003-08-06 Per Bothner <pbothner@apple.com>
776 * line-map.h (fileline): New typedef.
777 (struct line_map, linemap_add, linemap_lookup): Use it.
778 * input.h (struct location_s): Comment notes that long-term we want
779 to replace it by fileline.
781 2003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
783 Fix SHcompact exception handling:
784 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
785 by the prologue, return a MEM with return_address_pointer_rtx
787 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
788 (RETURN_ADDR_OFFSET): Don't define.
789 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
790 registers that are visible in compact mode. Show that SHmedia
791 registers still exist in compact mode, even if there are not
793 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
794 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
795 and DW_EH_PE_pcrel for pic data.
796 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
797 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
798 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
799 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
800 * sh.md (movsi_media-1): New splitter.
802 2003-08-06 Graeme Peterson <gp@qnx.com>
804 * config/i386/nto.h: New.
805 * config/i386/t-nto: New.
806 * config.gcc (i[34567]86-*-nto-qnx*): New.
808 2003-08-06 Phil Edwards <pme@gcc.gnu.org>
810 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
812 2003-08-06 Alan Modra <amodra@bigpond.net.au>
814 * calls.c (load_register_parameters): Arrange for call_fusage to
815 report the whole register as used when shifting to the msb.
817 2003-08-05 Roger Sayle <roger@eyesopen.com>
819 * builtins.c (expand_builtin): When not optimizing, call the library
820 function for all builtins that have library functions (except alloca).
822 2003-08-05 Alexandre Oliva <aoliva@redhat.com>
824 * c.opt: Introduce -fworking-directory.
825 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
826 * c-common.h (flag_working_directory): Declare.
827 * c-common.c (flag_working_directory): Define.
828 * c-opts.c (c_common_handle_options): Set it.
829 (sanitize_cpp_opts): Set...
830 * cpplib.h (struct cpp_options): ... working_directory option.
831 (struct cpp_callbacks): Add dir_change.
832 * cppinit.c (read_original_filename): Call...
833 (read_original_directory): New. Look for # 1 "directory//"
835 (cpp_read_main_file): Call dir_change callback if working_directory
837 * gcc.c (cpp_unique_options): Pass -g*.
838 * c-lex.c (cb_dir_change): New.
839 (init_c_lex): Set dir_change callback.
840 * toplev.c (src_pwd): New static variable.
841 (set_src_pwd, get_src_pwd): New functions.
842 * toplev.h (get_src_pwd, set_src_pwd): Declare.
843 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
844 * dwarf2out.c (gen_compile_unit_die): Likewise.
845 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
847 2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
849 * pretty-print.h (pp_set_line_maximum_length): Make macro.
850 (pp_set_prefix): Likewise.
851 (pp_destroy_prefix): Likewise.
852 (pp_remaining_character_count_for_line): Likewise.
853 (pp_clear_output_area): Likewise.
854 (pp_formatted_text): Likewise.
855 (pp_last_position_in_text): Likewise.
856 (pp_emit_prefix): Likewise.
857 (pp_append_text): Likewise.
858 (pp_flush): Likewise.
859 (pp_format_text): Likewise.
860 (pp_format_verbatim): Likewise.
861 (pp_tree_identifier): Tidy.
862 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
863 (pp_base_format_verbatim): Rename from pp_format_verbatim.
864 (pp_base_flush): Rename from pp_flush.
865 (pp_base_set_line_maximum_length): Rename from
866 pp_set_line_maximum_length.
867 (pp_base_clear_output_area): Rename from pp_clear_output_area.
868 (pp_base_set_prefix): Rename from pp_set_prefix.
869 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
870 (pp_base_emit_prefix): Rename from pp_emit_prefix.
871 (pp_base_append_text): Rename from pp_append_text.
872 (pp_base_formatted_text): Rename from pp_formatted_text.
873 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
874 (pp_base_remaining_character_count_for_line): Rename from
875 pp_remaining_character_count_for_line.
876 * diagnostic.h (diagnostic_format_decoder): Tidy.
877 (diagnostic_flush_buffer): Likewise.
878 * c-pretty-print.h: (pp_c_string_literal): Declare.
879 (pp_c_real_literal): Likewise.
880 (pp_c_integer_literal): Likewise.
881 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
883 (pp_c_character_literal): Tidy.
884 (pp_c_string_literal): Make public.
885 (pp_c_bool_literal): Likewise.
886 (pp_c_integer_literal): Likewise.
887 (pp_c_real_literal): Likewise.
889 * Makefile.in (C_PRETTY_PRINT_H): New variable.
890 (c-pretty-print.o): Update dependence.
892 2003-08-05 Chris Demetriou <cgd@broadcom.com>
894 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
895 ".set nomacro" state.
896 (fix_truncsfsi2_macro): Likewise.
898 2003-08-05 Steven Bosscher <steven@gcc.gnu.org>
900 * tree.h (DID_INLINE_FUNC): Remove macro.
901 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
902 add tree check for FUNCTION_DECL.
903 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
904 (struct tree_decl): Rename inlined_function_flag to
905 declared_inline_flag.
906 * c-common.h (c_lang_decl): Remove.
907 (DECL_ESTIMATED_INSNS): Remove.
908 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
909 (DECL_DECLARED_INLINE_P): Remove.
910 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
911 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
912 (finish_function): Make uninlinable a bool. Fixup call to
913 tree_inlinable_function_p() and fix some code style issues.
914 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
915 * cgraph.c (dump_cgraph): Likewise.
916 * cgraphunit.c (cgraph_decide_inlining): Likewise
917 (cgraph_finalize_compilation_unit): Likewise.
918 Also update call to tree_inlinable_function_p().
919 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
920 look at DECL_DECLARED_INLINE and reverse logic.
921 * print-tree.c (print_node): Likewise.
922 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
923 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
925 * tree-inline.c (inlinable_function_p): Split up in this function to
926 check for basic inlining inhibiting conditions, and new
927 limits_allow_inlining() function. Warn if inlining is impossible
928 because the inline candidate calls alloca or uses sjlj exceptions.
929 (limits_allow_inlining): this new function to check if the inlining
930 limits are satisfied. Throttle from currfn_max_inline_insns, not from
931 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
932 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
934 (tree_inlinable_function_p): Make a bool. Update call to
936 (expand_call_inline): Use limits_allow_inlining() when not in
937 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
938 instead see if the function was declared `inline'.
940 2003-08-05 Josef Zlomek <zlomekj@suse.cz>
942 * gcse.c (try_replace_reg): Fix updating of note.
944 2003-08-04 Roger Sayle <roger@eyesopen.com>
947 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
948 logic in negate_expr, i.e. we don't invert (A-B) for floating
949 point types unless flag_unsafe_math_optimizations.
951 2003-08-04 Roger Sayle <roger@eyesopen.com>
953 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
954 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
955 for floating point expressions with -ffast-math.
956 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
957 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
959 2003-08-04 Roger Sayle <roger@eyesopen.com>
961 * c-common.c (flag_noniso_default_format_attributes): Delete.
962 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
963 (c_attrs_initialized): Delete.
964 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
965 always call c_init_attributes.
966 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
967 set c_attrs_initialized when done.
968 (c_common_insert_default_attributes): Delete.
969 * c-common.h (flag_noniso_default_format_attributes): Delete.
970 (c_coomon_insert_default_attributes): Delete prototype.
971 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
972 flag_noniso_default_format_attributes.
974 * c-decl.c (c_insert_default_attributes): Delete.
975 * c-tree.h (c_insert_default_attributes): Delete prototype.
977 * attribs.c (decl_attributes): Don't call insert_default_attributes
978 langhook. Update function description comment.
979 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
980 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
981 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
982 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
984 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
987 2003-08-04 Richard Sandiford <rsandif@redhat.com>
989 * config/mips/mips.c (override_options): Disable -G on targets that
990 have no .section support.
991 (mips_select_section): Use default_select_section for such targets.
993 2003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
995 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
996 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
997 * fixinc/fixincl.x: Rebuild.
998 * fixinc/tests/base/regexp.h: New test.
1000 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
1002 * c-ppoutput.c (cb_line_change): Don't skip line changing while
1003 parsing macro arguments in the top-level context.
1005 2003-08-04 Neil Booth <neil@daikokuya.co.uk>
1007 * config.in: Remove HAVE_LSTAT.
1008 * configure, configure.in: Don't test for lstat.
1010 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1012 * opts.c (decode_options): Do language-specific initialization for
1013 the global diagnostic context.
1014 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
1015 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
1016 (LANG_HOOKS_INITIALIZER): Adjust.
1017 * langhooks.h (struct lang_hooks): Add new field
1018 initialize_diagnostics.
1019 * langhooks.c (lhd_initialize_diagnostics): Define.
1021 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1023 * pretty-print.h: Adjust macro definitions.
1024 * pretty-print.c (pp_newline): Rename to pp_base_newline.
1025 (pp_character): Rename to pp_base_character.
1026 (pp_string): Rename to pp_base_string.
1027 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
1028 (pp_newline): Likewise. Adjust.
1029 (pp_c_char): Adjust.
1031 2003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1033 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
1034 BUILT_IN_LLABS): Move to miscellaneous section.
1036 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
1038 PR preprocessor/11534
1039 * cppexp.c (parse_defined): Warn only if -pedantic.
1041 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
1043 * cppfiles.c (stack_file): Use file path.
1045 2003-08-02 Roger Sayle <roger@eyesopen.com>
1047 * builtin-types.def (BT_SSIZE): New primitive type.
1048 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
1049 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
1050 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
1051 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
1052 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
1053 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
1054 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
1055 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
1056 few functions that define default attributes using it.
1057 * c-common.c (c_common_insert_default_attributes): Do nothing.
1059 * doc/extend.texi: Document these "new" builtins.
1061 2003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
1063 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
1064 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
1065 when -mieee-fp set and -shared not set.
1066 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
1068 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
1070 * cppfiles.c (struct _cpp_file): Rename once_only_next to
1071 next_file. Remove import and pragma_once, add once_only.
1072 (find_file): Add new file structures to the all_files list.
1073 (should_stack_file): Mark #import-ed files once-only, and
1074 don't stack them if the file has already been stacked.
1075 (_cp_mark_file_once_only): Simplify.
1076 * cpphash.h (struct cpp_reader): Rename once_only_files
1077 to all_files. Rename saw_pragma_once to seen_once_only.
1078 (_cpp_mark_file_once_only): Update prototype.
1079 * cpplib.c (do_pragma_once): Update.
1081 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
1083 * cppfiles.c (ENOTDIR): Remove.
1084 (open_file_in_dir): Rename find_file_in_dir. Handle errors
1085 other than ENOENT here.
1086 (once_only_file_p): Rename should_stack_file.
1087 (find_file, open_file_failed, read_file_guts): Report errors
1088 with full path name.
1089 (read_file): Move pch handling to should_stack_file.
1090 (should_stack_file): Handle PCH and once-only issues, and
1092 (stack_file): Don't do file reads.
1094 2003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1096 * libgcov.c (gcov_exit): Cleanup and fix.
1097 * profile.c (compute_value_histograms): Don't try to read profiles
1098 that are not present.
1100 2003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1102 * builtins.def: Categorize.
1104 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
1106 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
1108 2003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
1110 * config.gcc: Enable posix threads by default on darwin.
1112 2003-08-01 Jakub Jelinek <jakub@redhat.com>
1114 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
1115 even if nehedges1 is 0.
1117 2003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
1119 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
1120 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
1121 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
1124 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
1125 * fixinc/fixincl.x: Regenerate.
1126 * fixinc/tests/base/math.h: Regenerate to match test_text change.
1128 2003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1130 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
1132 2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1134 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
1135 for accesses to exc_ptr.
1137 2003-08-01 Geoffrey Keating <geoffk@apple.com>
1139 * doc/sourcebuild.texi (Front End Directory): Don't make references
1140 to libsubdir, it's not part of the interface to frontends.
1141 * doc/install.texi (Configuration): Help users read faster by saying
1142 that GCC's configure options are the standard autoconf ones.
1143 Mention --libdir. Update the default rules for finding the
1144 assembler. Don't use libsubdir since we haven't said what it means.
1145 (Specific): In the Solaris 7 notes, update the place to put the
1147 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
1148 * doc/cpp.texi (Search Path): Actually, the search path
1149 depends on libdir, which can relocate with cpp.
1150 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
1151 now a private interface between the Makefile and the driver.
1153 2003-08-01 Richard Henderson <rth@redhat.com>
1155 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
1157 * varasm.c (lookup_constant_def): New function.
1158 * rtl.h (lookup_constant_def): Declare it.
1159 * dwarf2out.c (loc_descriptor_from_tree): Use it.
1160 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
1162 2003-08-01 Zack Weinberg <zack@codesourcery.com>
1164 * c-decl.c (gettags, pushdecl_function_level): Delete.
1165 (last_function_parm_vars): Rename last_function_parm_others.
1166 (current_function_parm_vars): Rename current_function_parm_others.
1167 (struct c_scope): Rewrite comment explaining this data structure.
1168 Add names_last, blocks_last, parms_last fields. Rename
1169 incomplete_list to incomplete.
1170 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
1171 (poplevel): Ignore second argument. No need to nreverse
1172 anything. Restructure such that each list is processed
1173 exactly once. Use 'const location_t *locus' syntactic sugar
1174 variable where useful. Issue unused variable warnings
1175 ourselves, do not rely on function.c.
1176 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
1177 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
1178 (implicitly_declare): decl cannot be error_mark_node.
1179 (undeclared_variable): Manipulate scope structure directly.
1180 (c_make_fname_decl): Likewise.
1181 (getdecls, c_init_decl_processing): Fix comment.
1182 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
1183 for 'last' variable.
1184 (grokparms): No need to nreverse parms list.
1185 (store_parm_decls_newstyle): Set up the parms_last and
1186 names_last fields of the new scope too.
1187 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
1188 on parms to begin with; check this under ENABLE_CHECKING. Set
1190 (check_for_loop_decls): Refer directly to current_scope->tags.
1191 Use consistent quote style in diagnostics.
1192 (c_write_global_declarations): The names list is not backward.
1194 * c-common.h: Don't prototype gettags.
1195 * c-parse.in: Call poplevel with second argument 0 always.
1197 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1199 * builtins.def: Resort builtins.
1201 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1203 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
1204 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
1205 Prepend "__builtin_" onto NAME with string concatenation. Remove
1206 explicit "__builtin_" from each macro call.
1208 Reformat entire file.
1210 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1212 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
1213 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
1215 2003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
1217 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
1218 CCL1, or CCL2 modes with floating point operations.
1220 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
1221 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
1222 "*subdf3_cconly"): New insns.
1223 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
1225 2003-08-01 Neil Booth <neil@daikokuya.co.uk>
1227 * Makefile.in: Refine dependencies.
1228 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
1229 * c.opt: Update help for -Wimport.
1230 * cppfiles.c: Include hashtab.h. Update comments.
1231 (stack_file): Read the file before updating dependencies.
1232 (once_only_file_p): Be smarter about marking once-only files.
1233 (_cpp_mark_file_once_only): Correct the check for existence on
1235 (open_file_failed): Use name not path, which is NULL.
1236 * cpphash.h: Don't include hashtab.h.
1237 (struct _cpp_file): Remove.
1238 (struct cpp_reader): Update.
1239 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
1240 * cpplib.h (struct cpp_options): Remove warn_import.
1241 (cpp_simplify_path): Remove.
1243 2003-08-01 Nathan Sidwell <nathan@codesourcery.com>
1246 * doc/extend.texi (Statement Expressions): Document C++ semantics.
1248 2003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1250 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
1252 2003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1254 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
1256 * builtins.def: Likewise.
1258 2003-07-31 Jason Merrill <jason@redhat.com>
1260 * Makefile.in (bubblestrap): Don't require a previous full
1263 * expr.c (mostly_zeros_p): No longer static.
1264 * tree.h: Declare it.
1265 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
1266 unless we need to do substitutions.
1268 2003-07-31 Roger Sayle <roger@eyesopen.com>
1270 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
1271 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
1272 as pow(x,2.0) when the latter will be expanded back into x*x.
1273 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
1274 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
1275 pow can never set errno when used with an integer exponent.
1276 Always use expand_powi when exponent is -1, 0, 1 or 2.
1277 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
1278 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
1279 the pow forms of these expressions.
1281 2003-07-31 Geoffrey Keating <geoffk@apple.com>
1283 * Makefile.in (libexecdir): New.
1284 (libsubdir): Use gcc instead of gcc-lib.
1285 (libexecsubdir): New.
1286 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
1287 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
1289 (installdirs): Make libexecsubdir.
1290 (install-common): Put executables in libexecsubdir.
1291 (itoolsdir): Use libexecsubdir.
1292 (itoolsdatadir): New.
1293 (install-mkheaders): Separate data files and executables.
1294 (install-collect2): Put executables in libexecsubdir.
1295 (uninstall): Remove libexecsubdir.
1296 * mkheaders.in: Update for new arrangement of files.
1298 (libexecsubdir): New.
1299 (itoolsdir): Use libexecsubdir.
1300 (itoolsdatadir): New.
1301 * gcc.c (gcc_libexec_prefix): New.
1302 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
1303 (standard_exec_prefix_1): Use libexec.
1304 (standard_exec_prefix_2): New.
1305 (standard_libexec_prefix): New.
1306 (process_command): Update for new arrangement of files. Compute
1307 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
1309 2003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
1311 * inclhack.def (stdio_va_list): Avoid bogus replacement which
1312 triggers on Interix.
1313 * fixincl.x: Regenerate.
1315 2003-07-31 Jakub Jelinek <jakub@redhat.com>
1317 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
1318 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
1320 2003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1322 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
1324 2003-07-31 Per Bothner <pbothner@apple.com>
1326 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
1327 (add_input_filename): New function.
1328 (handle_options): Call add_input_filename directly instead of
1330 * opts.h (in_fnames, num_in_fnames): Moved here.
1331 (add_input_filename): Declare.
1332 * c-decl.c: Need to #include opts.h.
1333 * Makefile.in (c-decl.o): Also depends on opts.h.
1334 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
1335 (c_common_handle_filename): Replaced by add_input_filename.
1336 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
1338 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
1339 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
1340 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
1341 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
1343 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1345 * combine.c (try_combine): Set JUMP_LABEL for newly created
1348 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1350 * fold-const.c (fold): Fold some comparisons of bit operations.
1352 Thu Jul 31 19:49:53 CEST 2003 Jan Hubicka <jh@suse.cz>
1354 * cgraph.c (create_edge): Fix typo.
1355 * i386.c (pic_symbolic_operand): Reorder tests.
1357 2003-07-31 Nathan Sidwell <nathan@codesourcery.com>
1359 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
1361 (Gcov Data Files): Update.
1363 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1365 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
1368 * gthr-posix.c: New file.
1369 * gthr-posix.h: Define _REENTRANT if missing.
1370 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
1372 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
1374 * config/alpha/t-osf-pthread: New file.
1376 * fixinc/inclhack.def (alpha_pthread): New fix.
1377 * fixinc/fixincl.x: Regenerate.
1378 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
1380 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
1382 Fixes PR bootstrap/9330.
1384 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1386 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
1389 * configure: Regenerate.
1391 2003-07-31 Vladimir Makarov <vmakarov@redhat.com>
1393 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
1396 2003-07-30 Roger Sayle <roger@eyesopen.com>
1398 * builtins.def: Alphabetize.
1400 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
1402 * doc/c-tree.texi: Normalize spellings of "lowercase" and
1404 * doc/cpp.texi: Likewise.
1405 * doc/md.texi: Likewise.
1406 * doc/rtl.texi: Likewise.
1407 * doc/tm.texi: Likewise.
1409 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
1411 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
1412 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
1415 2003-07-30 Chris Demetriou <cgd@broadcom.com>
1417 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
1418 macros before defining them.
1420 2003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
1422 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
1423 UNSPECV_BLOCKAGE): New constants.
1424 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
1425 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
1426 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
1427 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
1429 (all insns and expanders): Write output control string as brace block
1430 where appropriate. Remove \-escapes for doublequote characters.
1432 Thu Jul 31 01:04:19 CEST 2003 Jan Hubicka <jh@suse.cz>
1434 * gcse.c (insert_store): Fix typo in previous patch.
1436 2003-07-30 Neil Booth <neil@daikokuya.co.uk>
1438 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
1440 2003-07-30 Andi Kleen <ak@muc.de>
1442 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
1444 2003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1446 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
1447 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
1448 GCOV_N_VALUE_COUNTERS): New.
1449 * profile.c (compute_value_histograms): New static function.
1450 (branch_prob): Read back the value histograms.
1451 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
1452 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
1453 * value-prof.c: Add comment on reading the profile.
1454 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
1455 * doc/invoke.texi (-fprofile-values): Document behavior with
1456 -fbranch-probabilities.
1458 2003-07-30 David Edelsohn <edelsohn@gnu.org>
1460 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
1462 2003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
1464 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
1467 Wed Jul 30 19:12:10 CEST 2003 Jan Hubicka <jh@suse.cz>
1469 * gcse.c (insert_store): Ignore fake edges.
1471 * c-common.c (flag_vtable_gc): Kill.
1472 * c-common.g (flag_vtable_gc): Kill.
1473 * c-opts (c_common_handle_option): Kill.
1474 * c.opt (fvtable-gc): Kill.
1475 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
1476 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
1477 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
1479 * invoke.texi (-ftable-gc): Kill documentation.
1481 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
1482 just because function body is missing.
1484 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
1486 2003-07-30 Ranjit Mathew <rmathew@hotmail.com>
1488 * unwind-sjlj.c: Fix typo in file description.
1490 2003-07-30 Alan Modra <amodra@bigpond.net.au>
1492 * calls.c (load_register_parameters): When shifting reg sized values
1493 to the msb, move the value to a reg first.
1495 2003-07-29 Geoffrey Keating <geoffk@apple.com>
1497 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
1498 * line-map.h (linemap_add): Update comments.
1499 * line-map.c (linemap_add): Update comments, interpret zero-length
1500 filename as "<stdin>".
1502 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
1504 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
1506 2003-07-29 Zack Weinberg <zack@codesourcery.com>
1508 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
1509 New static variables.
1510 (struct c_scope): Add parms and warned_forward_parm_decls
1511 fields; remove parm_order.
1512 (storedecls, storetags): Delete.
1513 (poplevel): Also clear bindings on the parms chain.
1514 (pushdecl): Handle forward declarations of parameters, and
1515 chain PARM_DECLs on the parms list, not the names list.
1516 (lookup_name_current_level): Check for PARM_DECLs on the parms
1518 (push_parm_decl): Don't update parm_order.
1519 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
1520 warning, only once per parameter list, and set TREE_ASM_WRITTEN
1521 on the decls here. Then move the forward decls to the names list.
1522 (grokparms): Set last_function_parm_vars.
1523 (get_parm_info): Don't use gettags or getdecls. No need to
1524 extract non-parms from the parms list, or reorganize the parms
1525 list. Feed nonparms back in the TREE_TYPE of the list node
1526 returned. Issue only one error per parameter list for "void"
1527 appearing more than once in said parameter list. Collapse
1528 parmlist_tags_warning into this function to avoid double scan
1530 (start_function): Set current_function_parm_vars.
1531 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
1532 directly. Get non-parms from current_function_parm_vars; no
1533 need to extract them from the parms chain. Properly bind tags
1535 (store_parm_decls_oldstyle): No need to extract non-parameters
1536 from the parms chain, nor to store them back afterward. Move
1537 declaration to top of function, restructure code reordering
1539 (store_parm_decls): No need to save and restore warn_shadow.
1540 * c-parse.in: Don't call parmlist_tags_warning nor
1541 clear_parm_order. Call mark_forward_parm_decls when forward
1542 parm decls are encountered.
1543 * c-tree.h: Prototype mark_forward_parm_decls; not
1544 clear_parm_order or parmlist_tags_warning.
1546 2003-07-29 Geoffrey Keating <geoffk@apple.com>
1548 * c-common.c (allow_pch): Remove.
1549 * c-common.h (allow_pch): Remove.
1550 (c_common_no_more_pch): Declare.
1551 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
1552 * c-pch.c: Include hosthooks.h.
1553 (c_common_valid_pch): Don't check allow_pch.
1554 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
1555 (c_common_no_more_pch): New.
1556 * ggc-common.c: Include hosthooks.h.
1557 (gt_pch_save): Call gt_pch_get_address.
1558 (gt_pch_restore): Call gt_pch_use_address.
1559 * hooks.c (hook_voidp_size_t_null): New.
1560 (hook_bool_voidp_size_t_false): New.
1561 * hooks.h (hook_voidp_size_t_null): New.
1562 (hook_bool_voidp_size_t_false): New.
1563 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
1564 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
1565 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
1566 HOST_HOOKS_GT_PCH_USE_ADDRESS.
1567 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
1569 * doc/hostconfig.texi (Host Common): Document
1570 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
1571 * Makefile.in (c-pch.o): Depend on hosthooks.h.
1572 (ggc-common.o): Likewise.
1574 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
1575 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
1576 (pch_address_space): New.
1577 (darwin_rs6000_gt_pch_get_address): New.
1578 (darwin_rs6000_gt_pch_use_address): New.
1580 2003-07-29 Neil Booth <neil@daikokuya.co.uk>
1582 PR preprocessor/11569
1583 PR preprocessor/11649
1584 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
1585 * cppfiles.c: Completely rewritten.
1586 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
1587 struct cpp_path is now struct cpp_dir.
1588 (remove_duplicates): Don't simplify path names.
1589 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
1591 * cpphash.h: Include hashtab.h.
1592 (_cpp_file): Declare.
1593 (struct cpp_buffer): struct include_file is now struct _cpp_file,
1594 and struct cpp_path is now struct cpp_dir. Rename members.
1595 (struct cpp_reader): Similarly. New members once_only_files,
1596 file_hash, file_hash_entries, quote_ignores_source_dir,
1597 no_search_path, saw_pragma_once. Remove all_include_files and
1598 max_include_len. Make some members bool.
1599 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
1600 (_cpp_stack_file): Renamed from _cpp_read_file.
1601 (_cpp_stack_include): Renamed from _cpp_execute_include.
1602 (_cpp_init_files): Renamed from _cpp_init_includes.
1603 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
1604 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
1605 (cpp_read_next_file): Rename and move to cppfiles.c.
1606 (cpp_read_main_file): Update.
1607 * cpplib.c (run_directive): Update for renamed members.
1608 (do_include_common, _cpp_pop_buffer): Update.
1609 (do_import): Undeprecate #import.
1610 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
1611 * cpplib.h: Remove file_name_map_list.
1612 (cpp_options): Remove map_list.
1613 (cpp_dir): Rename from cpp_path. New datatype for name_map.
1614 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
1616 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
1618 * Makefile.in: Make stamp-objdir safe for parallel builds.
1620 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
1622 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
1623 (info): Depend on stmp-docobjdir.
1625 2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1627 * configure: Regenerate.
1629 Tue Jul 29 19:24:49 CEST 2003 Jan Hubicka <jh@suse.cz>
1632 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
1633 in !unit-at-a-time mode.
1635 2003-07-28 Geoffrey Keating <geoffk@apple.com>
1637 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
1640 2003-07-28 Mark Mitchell <mark@codesourcery.com>
1643 * c-common.c (shorten_compare): Take into account differences
1644 between C and C++ representation for enumeration types.
1645 * tree.h (set_min_and_max_values_for_integral_type): Declare.
1646 * stor-layout.c (set_min_and_max_values_for_integral_type): New
1647 function, broken out from ...
1648 (fixup_signed_type): ... here and ...
1649 (fixup_unsigned_type): ... here.
1651 2003-07-28 Zack Weinberg <zack@codesourcery.com>
1653 * c-decl.c: Update commentary, adjust blank lines throughout.
1654 (struct c_scope): Fix indentation. Reorder members so
1655 outer-context pointers come first, booleans last.
1656 (duplicate_decls, define_label): Use a 'locus' variable for
1657 diagnostic locations in a few more places.
1658 (warn_if_shadowing): Un-split a conditional that fits on one line.
1659 (c_init_decl_processing): No need to clear current_scope and
1660 current_function_scope.
1661 (start_decl): Merge if/else if statements with same action.
1662 (push_parm_decl): Rename old_immediate_size_expand to use
1663 save_foo convention; save/restore around entire function.
1664 (grokdeclarator): Remove unnecessary braces.
1666 2003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
1667 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
1669 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
1670 when warn_declaration_after_statement. Call pedwarn_c90, not
1671 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
1672 * c-common.c (warn_declaration_after_statement): Define.
1673 * c-common.h (warn_declaration_after_statement): Declare.
1674 * c.opt (Wdeclaration-after-statement): New.
1675 * c-errors.c (pedwarn_c90): New function.
1676 * c-opts.c (c_common_handle_option) <case
1677 OPT_Wdeclaration_after_statement>: New.
1678 * c-tree.h (pedwarn_c90): Declare.
1679 * doc/invoke.texi (Option Summary): Document
1680 -Wdeclaration-after-statement.
1681 (Warning Options): Ditto.
1683 Mon Jul 28 20:13:06 CEST 2003 Jan Hubicka <jh@suse.cz>
1685 * i386.md (memory attribute) Avoid accessing uninitialized memory
1686 for ishift1 type instructions.
1688 2003-07-28 Jakub Jelinek <jakub@redhat.com>
1690 * configure.in (--enable-checking): Add fold category.
1691 (ENABLE_FOLD_CHECKING): Define if requested.
1692 * configure: Rebuilt.
1693 * config.in: Rebuilt.
1694 * doc/install.texi: Document it.
1695 * fold-const.c: Include md5.h.
1696 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
1697 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
1698 print_fold_checksum): New functions.
1700 * fold-const.c (fold): Never modify argument passed to fold, instead
1701 change a copy and return it.
1702 * convert.c (convert_to_integer): Likewise.
1704 2003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
1706 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
1707 cleanup of junk after #else and #endif directives. Collapse repeated
1708 clauses into for statment.
1710 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
1712 2003-07-27 Zack Weinberg <zack@codesourcery.com>
1714 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
1715 (keep_next_if_subblocks): Rename next_is_function_body.
1716 (pushlevel): Adjust commentary. Always set ->keep on the
1717 outermost level of a function. Don't set ->keep_if_subblocks.
1718 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
1719 (store_parm_decls): Adjust to match.
1720 (finish_function): Adjust to match.
1721 Call poplevel with all three arguments zero.
1723 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
1724 New functions split out of store_parm_decls.
1725 Avoid unnecessary work. Use local variables consistently.
1726 (store_parm_decls): Likewise.
1728 (finish_function): No need to set functionbody flag on call to
1730 (struct language_function): Remove scope field.
1731 (c_push_function_context, c_pop_function_context): No need to
1732 save and restore current_scope.
1734 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
1736 * doc/extend.texi (Deprecated Features): Implicit typename is
1737 gone. Default args on types is going.
1739 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
1741 * Makefile.in (ifcvt.o): Depend on target.h
1742 * ifcvt.c (target.h): Include.
1743 (if_convert): Don't call mark_loop_exit_edges if we can't
1746 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1748 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
1750 2003-07-26 Richard Henderson <rth@redhat.com>
1753 * cse.c (count_reg_usage): Handle asm_operands properly.
1755 2003-07-26 Roger Sayle <roger@eyesopen.com>
1757 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
1758 (DEF_EXT_FALLBACK_BUILTIN): Delete.
1759 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
1760 the regular DEF_EXT_LIB_BUILTIN macro.
1761 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
1762 the regular DEF_LIB_BUILTIN macro.
1763 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
1764 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
1765 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
1766 DEF_EXT_LIB_BUILTIN macro.
1768 * c-decl.c (duplicate_decls): Remove code to handle builtin
1769 functions prototyped without an argument list.
1771 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
1773 * config/i386/winnt.c: Revert 2003-07-08 change.
1774 (i386_pe_section_type_flags): Remove error_with_decl here too.
1776 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
1778 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
1779 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
1780 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
1781 (v850_handle_data_area_attribute): Likewise.
1783 2003-07-26 Geoffrey Keating <geoffk@apple.com>
1785 * varasm.c (output_constant_def_contents): Use
1786 ASM_DECLARE_CONSTANT_NAME if defined.
1787 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
1788 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
1789 objects get at least one byte to prevent assembler problems.
1790 (ASM_DECLARE_CONSTANT_NAME): New.
1792 * Makefile.in (libbackend.o): Remove options_.h.
1793 (mostlyclean): Likewise.
1795 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
1796 insert a label at the end of an function under Mach-O.
1798 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
1800 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
1802 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
1804 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
1806 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
1808 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1810 * doc/passes.texi (Passes): Mention pretty-printing and
1813 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
1815 * doc/extend.texi (Function Attributes): GNU C++ does now allow
1816 unused parameter decls.
1817 (Attribute Syntax): GNU C++ does not allow label attributes to be
1820 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1822 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
1823 (objc_declare_class): Likewise.
1824 (error_with_ivar): Likewise.
1825 (start_class): Likewise.
1826 (warn_with_method): Likewise.
1828 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1830 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
1832 * calls.c (try_to_integrate): Don't use xxx_with_decl.
1833 (expand_call): Likewise.
1834 * dwarfout.c (output_reg_number): Likewise.
1835 * expr.c (expand_expr): Likewise.
1836 * function.c (assign_temp): Likewise.
1837 (uninitialized_vars_warning): Likewise.
1838 (setjmp_args_warning): Likewise.
1839 (expand_function_end): Likewise.
1840 * stmt.c (fixup_gotos): Likewise.
1841 (warn_about_unused_variables): Likewise.
1842 (expand_end_bindings): Likewise.
1843 * stor-layout.c (layout_decl): Likewise.
1844 (place_field): Likewise.
1845 * toplev.c (check_global_declarations): Likewise.
1846 (rest_of_handle_inlining): Likewise.
1847 (default_tree_printer): New function.
1848 (general_init): Initialize diagnostic machinery before routing
1849 signals to the ICE machinery. Set default tree printer.
1850 * toplev.h (pedwarn_with_decl): Remove declaration.
1851 (warning_with_decl): Likewise.
1852 (error_with_decl): Likewise.
1853 (pedwarn): Remove attribute for the time being.
1854 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
1855 * varasm.c (named_section): Likewise.
1856 (make_decl_rtl): Likewise.
1857 (assemble_variable): Likewise.
1858 (merge_weak): Likewise.
1859 (declare_weak): Likewise.
1861 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
1862 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
1863 (format_with_decl): Remove.
1864 (diagnostic_for_decl): Likewise.
1865 (pedwarn_with_decl): Likewise.
1866 (warning_with_decl): Likewise.
1867 (error_with_decl): Likewise.
1868 (diagnostic_initialize): Adjust.
1869 (diagnostic_count_diagnostic): Likewise.
1870 (announce_function): Likewise.
1871 (lhd_print_error_function): Likewise.
1872 (diagnostic_report_current_module): Likewise.
1873 (default_diagnostic_starter): Likewise.
1874 (diagnostic_report_diagnostic): Likewise.
1875 (default_diagnostic_finalizer): Likewise.
1876 (verbatim): Likewise.
1878 (warning): Likewise.
1879 * opts.c (common_handle_option): Likewise.
1880 * pretty-print.c: New file.
1881 * c-pretty-print.h (pp_base): Override.
1882 * c-pretty-print.c: Adjust use of macros throughout.
1883 (pp_buffer): New macro.
1884 (pp_newline): Likewise.
1885 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
1886 * Makefile.in (DIAGNOSTIC_H): New variable.
1887 (c-errors.o): Use it.
1888 (c-objc-common.o): Likewise.
1889 (c-common.o): Likewise.
1890 (c-opts.o): Likewise.
1891 (c-format.o): Likewise.
1892 (diagnostic.o): Likewise.
1894 (toplev.o): Likewise.
1895 (rtl-error.o): Likewise.
1896 (dwarf2out.o): Likewise.
1898 (pretty-print.o): New rule.
1900 2003-07-24 Roger Sayle <roger@eyesopen.com>
1902 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
1903 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
1904 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
1905 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
1906 (DEF_FRONT_END_LIB_BUILTIN): Delete.
1907 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
1908 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
1910 * builtins.c (build_string_literal): New function to construct
1911 a char* pointer to a string literal.
1912 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
1913 "rtx target" to be consistent with other expand_builtin_* functions.
1914 Change 3rd argument from "int unlocked" to "bool unlocked".
1915 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
1916 c-common.c to avoid front-end dependencies. Optimize printf("")
1917 as a no-op when the result isn't required. Handle embedded NULs
1919 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
1920 from c-common.c to avoid front-end dependencies. Likewise, optimize
1921 fprintf(fp,"") as a no-op when the result isn't required, evaluating
1922 fp for side-effects. Handle embedded NULs in format string.
1923 (expand_builtin_sprintf): Fix typo.
1924 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
1925 optimizing. Adjust calls of expand_builtin_fputs to match the API
1926 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
1927 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
1928 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
1930 * c-common.c (is_valid_printf_arglist): Delete.
1931 (c_expand_builtin): Delete.
1932 (c_expand_builtin_printf): Moved to builtins.c. Delete.
1933 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
1934 (c_expand_expr): No longer treat CALL_EXPRs specially.
1935 (CALLED_AS_BUILT_IN): Delete.
1937 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1939 PR optimization/11631
1940 * gcse.c (store_motion): Connect infinite loops to exit.
1942 2003-07-24 Jason Merrill <jason@redhat.com>
1944 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
1945 (boolean_true_node, boolean_false_node): Likewise.
1946 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
1947 * tree.c (build_common_tree_nodes): Init boolean_type_node.
1948 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
1949 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
1950 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
1951 (truthvalue_true_node): Renamed from boolean_true_node.
1952 (truthvalue_false_node): Renamed from boolean_false_node.
1953 * c-decl.c: Just set truthvalue_* to integer_*.
1954 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
1956 2003-07-24 Roger Sayle <roger@eyesopen.com>
1958 * c-decl.c (match_builtin_function_types): New subroutine of
1959 duplicate_decls to test whether a redeclaration of a builtin
1960 function is suitably close, i.e. the return type and all of
1961 the argument types have the same modes as the builtin expects.
1962 (duplicate_decls): Fuzzy type matching for builtin functions
1963 moved to match_builtin_function_types.
1965 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1967 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
1970 2003-07-24 Zack Weinberg <zack@codesourcery.com>
1972 * c-decl.c: Search-and-replace change 'binding level' to
1973 'scope' in commentary.
1974 (struct binding_level): Now struct c_scope.
1975 (current_binding_level): Now current_scope.
1976 (free_binding_level): Now scope_freelist.
1977 (current_function_level): Now current_function_scope.
1978 (global_binding_level): Now global_scope.
1979 (make_binding_level): Now make_scope.
1980 (pop_binding_level): Now pop_scope.
1982 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1984 * configure.in (libgcc_visibility): Add missing whitespace.
1986 2003-07-24 Richard Henderson <rth@redhat.com>
1988 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
1989 __gcc_personality_v0.
1991 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1993 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
1995 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
1997 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
1998 documentation missed from my 2003-07-09 patch.
2000 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
2002 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
2004 * configure: Rebuild.
2006 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
2009 * c-typeck.c (type_lists_compatible_p): Do not compare
2010 arguments if one of them is an error_mark_node
2012 2003-07-24 Alan Modra <amodra@bigpond.net.au>
2014 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
2015 if current_function_calls_eh_return.
2017 2003-07-23 Mark Mitchell <mark@codesourcery.com>
2019 * doc/c-tree.texi (OFFSET_TYPE): Update description.
2021 2003-07-23 Bob Wilson <bob.wilson@acm.org>
2023 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
2024 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
2025 __umodsi3, __modsi3): Increase frame size to 32.
2027 2003-07-23 Geoffrey Keating <geoffk@apple.com>
2029 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
2032 2003-07-23 Mark Mitchell <mark@codesourcery.com>
2034 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
2036 PR optimization/10679
2037 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
2039 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2041 PR target/11607 and PR target/11516
2042 * pa.md (extzv, extv, insv): Revert latter half of last patch.
2044 2003-07-22 Mark Mitchell <mark@codesourcery.com>
2046 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
2047 * varasam.c (output_constant): Likewise.
2049 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
2051 * alias.c: Fix comment formatting.
2052 * c-common.c: Likewise.
2053 * c-decl.c: Likewise.
2054 * c-opts.c: Likewise.
2055 * combine.c: Likewise.
2056 * cpplib.c: Likewise.
2057 * diagnostic.c: Likewise.
2058 * dojump.c: Likewise.
2059 * final.c: Likewise.
2060 * fold-const.c: Likewise.
2063 * ggc-page.c: Likewise.
2066 * mips-tfile.c: Likewise.
2067 * recog.c: Likewise.
2068 * regclass.c: Likewise.
2069 * regmove.c: Likewise.
2073 2003-07-22 Per Bothner <pbothner@apple.com>
2075 * line-map.c (add_line_map): Handle invalid LEAVE request.
2076 Fixes PR preprocessor/11361.
2078 2003-07-22 Per Bothner <pbothner@apple.com>
2080 * diagnostic.c.(diagnostic_report_current_module): Update to match
2081 2003-06-05 changes to push_srcloc and pop_srcloc.
2083 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
2085 * doc/trouble.texi: Better document two-stage name lookup.
2087 2003-07-22 Eric Christopher <echristo@redhat.com>
2089 * config/s390.c (s390_valid_pointer_mode): New.
2090 (TARGET_VALID_POINTER_MODE): Use.
2091 (s390_emit_prologue): Add tpf profiling hooks.
2092 (s390_emit_epilogue): Ditto.
2093 * config/s390.h (MASK_TPF): New.
2095 (POINTERS_EXTEND_UNSIGNED): Define.
2096 * config/s390.md (ptr_extend): New pattern.
2098 2003-07-22 Zack Weinberg <zack@codesourcery.com>
2100 * hashtable.c (approx_sqrt): Make static.
2101 * hashtable.h: Don't prototype approx_sqrt.
2102 * line-map.c (init_line_maps): Rename linemap_init.
2103 (free_line_maps): Rename linemap_free.
2104 (add_line_map): Rename linemap_add.
2105 (lookup_line): Rename linemap_lookup.
2106 (print_containing_files): Rename linemap_print_containing_files.
2107 * linemap.h: Update to match.
2109 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
2110 linemap routines to use new names.
2112 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
2114 * c-common.c (handle_packed_attribute): Don't pack a struct via a
2115 typedef. Propagate packedness from a main variant.
2117 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
2119 * Makefile.in (install-common): Add dependency on installdirs.
2121 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
2123 * c-common.c (c_common_type_for_mode): Return integer types for
2126 2003-07-22 Geoffrey Keating <geoffk@apple.com>
2128 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
2129 (finish_decl): Call maybe_apply_pragma_weak here.
2130 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
2131 TREE_PUBLIC and TREE_STATIC are decided.
2132 (start_function): Move call to maybe_apply_pragma_weak. Check that
2133 DECL_ASSEMBLER_NAME isn't set too early.
2135 * cpplex.c (_cpp_process_line_notes): Mention option name in
2138 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
2140 * combine.c (if_then_else_cond): Simplify the comparison of
2141 rtx against -1, 0, and 1.
2142 * loop.c (check_dbra_loop): Likewise.
2143 * optabs.c (emit_conditional_move): Likewise.
2144 (emit_conditional_add): Likewise.
2145 * config/i386/i386.md (*movsi_or): Likewise.
2146 (*movdi_or_rex6): Likewise.
2148 Tue Jul 22 00:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
2150 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
2152 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
2154 * cppfiles.c (open_file_pch): Don't put unused entries in the
2155 splay tree. Remove dead code.
2157 2003-07-21 Geoffrey Keating <geoffk@apple.com>
2159 * c-common.h (num_in_fnames): Declare.
2160 (c_static_assembler_name): Move from here...
2161 * c-tree.h (c_static_assembler_name): ... to here.
2162 * c-opts.c: Don't include langhooks-def.h.
2163 (c_static_assembler_name): Move to c-decl.c.
2164 (num_in_fnames): Make externally visible.
2165 * c-decl.c: Include langhooks-def.h.
2166 (c_static_assembler_name): Move from c-opts.c.
2167 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
2168 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
2170 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
2171 when it's not needed.
2173 2003-07-21 Jakub Jelinek <jakub@redhat.com>
2175 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
2176 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
2177 (rs6000_emit_prologue): Save FPRs inline if set.
2179 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
2181 * config/ia64/ia64.md (prefetch): Support predicate.
2183 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
2185 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
2186 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
2189 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2191 PR optimization/11536
2192 * unroll.c (loop_iterations): Do not replace a register holding
2193 the final value by its equivalent before the loop if it is not
2196 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
2198 * doc/extend.texi: Fixes to spelling, grammar, and diction.
2200 2003-07-21 Ben Elliston <bje@wasabisystems.com>
2202 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
2203 (V850 Options): Spelling fixes.
2205 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
2207 * doc/invoke.texi: Fixes to style, grammar and diction.
2209 2003-07-20 Roger Sayle <roger@eyesopen.com>
2211 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
2212 * system.h (SMALL_STACK): Poison obsolete target macro.
2213 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
2215 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
2217 * configure.in: Cache the results of testing for cmp's capabilities.
2218 * configure: Regenerate.
2220 2003-07-20 Mark Mitchell <mark@codesourcery.com>
2223 * dwarf2out.c (gen_enumeration_type_die): Remember that
2224 enumerators can be unsigned.
2226 2003-07-19 Zack Weinberg <zack@codesourcery.com>
2228 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
2229 (push_label_level, pop_label_level): Kill.
2230 (struct binding_level): Rename level_chain to outer.
2231 Add outer_function field. Change parm_flag, function_body,
2232 keep, keep_if_subblocks to 1-bit bitfields of type bool.
2233 (current_function_level): New variable.
2234 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
2235 (keep_next_level, declare_parm_level, warn_if_shadowing):
2237 (struct language_function): Kill named_labels, shadowed_labels fields.
2238 (c_init_decl_processing, start_function, c_push__function_context)
2239 (c_pop_function_context): No need to muck with named_labels nor
2242 (make_binding_level): No need to clear the structure here.
2243 (pop_binding_level): Always operate on current_binding_level.
2244 Update current_function_level if necessary.
2245 (pushlevel): Don't clear named_labels. Update current_function_level
2246 if necessary. Use "true" and "false" where appropriate.
2247 (poplevel): Diagnose labels defined but not used, or vice
2248 versa, and clear out label-meanings leaving scope, while
2249 walking down the decls list, for all binding levels.
2250 Handle LABEL_DECLs appearing in the shadowed list.
2251 pop_binding_level takes no arguments.
2252 (pushdecl_function_level): Use current_function_level.
2254 (make_label, bind_label): New static functions.
2255 (declare_label): New exported function.
2256 (lookup_label, define_label): Rewritten for new data structure.
2257 (shadow_label): Kill.
2259 * c-tree.h: Prototype declare_label; don't prototype
2260 push_label_level, pop_label_level, nor shadow_label.
2261 * c-parse.in: Remove all calls to push_label_level and
2262 pop_label_level. Use declare_label for __label__ decls.
2264 * doc/extend.texi: Clarify that __label__ can be used to
2265 declare labels with local scope in any nested block, not
2266 just statement expressions. Cross-reference nested functions
2267 section from local labels section.
2269 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2271 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
2273 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
2275 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
2277 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2279 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
2280 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
2282 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
2284 * config/s390/s390.c (legitimize_pic_address): Access local symbols
2285 relative to the GOT instead of relative to the literal pool base.
2286 (s390_output_symbolic_const): Handle new GOT-relative accesses.
2287 * config/s390/s390.md ("call"): Access local functions and PLT stubs
2288 relative to the GOT instead of relative to the literal pool base.
2289 ("call_value"): Likewise.
2290 ("call_value_tls"): Likewise.
2292 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
2293 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
2294 (s390_chunkify_finish): Likewise.
2295 (s390_chunkify_cancel): Likewise.
2296 (s390_reorg): Adapt caller.
2297 (find_base_register_in_addr,
2298 find_base_register_ref, replace_base_register_ref): Delete.
2299 (find_ltrel_base, replace_ltrel_base): New functions.
2300 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
2301 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
2302 base vs. index register usage.
2303 (struct constant_pool): Remove 'anchor'.
2304 (s390_add_anchor): Delete.
2305 (s390_dump_pool): Remove anchor handling.
2306 * config/s390/s390.md ("reload_anchor"): Remove.
2308 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
2309 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
2310 (s390_emit_prologue): Use it.
2311 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
2312 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
2313 hard-code register 14.
2314 * config/s390/s390-protos.h (s390_load_got): Declare.
2316 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
2317 Support TImode constants.
2318 * config/s390/s390.md ("consttable_ti"): New.
2319 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
2321 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
2322 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
2323 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
2324 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
2325 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
2326 New symbolic constants.
2327 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
2328 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
2329 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
2330 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
2331 symbolic UNSPEC values.
2332 * config/s390/s390.c (larl_operand, s390_short_displacement,
2333 bras_sym_operand, s390_cannot_force_const_mem,
2334 s390_delegitimize_address, s390_decompose_address,
2335 legitimize_pic_address, s390_output_symbolic_const,
2336 s390_function_profiler): Use symbolic UNSPEC values.
2338 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2340 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
2341 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
2342 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
2343 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
2344 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
2345 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
2346 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
2347 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
2348 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
2349 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
2350 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
2351 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
2352 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
2353 postreload.c prefix.c print-tree.c protoize.c ra-build.c
2354 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
2355 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
2356 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
2357 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
2358 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
2359 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
2362 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2364 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
2365 * toplev.h (warning): Remove attribute.
2367 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2369 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
2370 (pop_label_level): Likewise.
2371 (duplicate_decls): Likewise.
2372 (implicitly_declare): Likewise.
2373 (shadow_label): Likewise.
2374 (start_decl): Likewise.
2375 (finish_decl): Likewise.
2376 (grokdeclarator): Likewise.
2377 (get_parm_info): Likewise.
2378 (detect_field_duplicates): Likewise.
2379 (finish_struct): Likewise.
2380 (start_function): Likewise.
2381 (store_parm_decls): Likewise.
2382 (finish_function): Likewise.
2383 (c_expand_body_1): Likewise.
2384 (check_for_loop_decls): Likewise.
2385 (merge_translation_unit_decls): Likewise.
2387 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
2389 * common.opt: Document --param.
2390 * opts.c (columns, undocumented_msg): New.
2391 (print_help): Get number of columns from environment. Print
2392 --param help. Tweak newline handling.
2393 (print_param_help): New.
2394 (print_filtered_help): Better handling of duplicates. Complain
2395 about undocumented switches.
2396 (print_switch): New.
2397 (wrap_help): Improve wrapping, use COLUMNS.
2398 * opts.sh: Ignore comments in records.
2399 * params.def: Fix typos and remove trailing periods.
2400 * toplev.c (display_help): Don't dump --param help.
2401 * doc/sourcebuild.texi: Update.
2403 2003-07-18 Richard Henderson <rth@redhat.com>
2406 * optabs.c (prepare_operand): Fail gracefully instead of abort
2407 if the predicate doesn't satisfy.
2408 (gen_cond_trap): Allow prepare_operand to fail.
2410 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2412 * c-common.c: Don't undefine GCC_DIAG_STYLE.
2413 (fname_decl): Don't use xxx_with_decl.
2414 (c_add_case_label): Likewise.
2415 (handle_section_attribute): Likewise.
2416 (handle_alias_attribute): Likewise.
2417 (handle_no_instrument_function_attribute): Likewise.
2418 (handle_no_limit_stack_attribute): Likewise.
2419 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
2420 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
2422 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2424 * Makefile.in (ifcvt.o): Add cfgloop.h.
2425 * basic-block.h (EDGE_LOOP_EXIT): New flag.
2426 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
2427 * ifcvt.c: Include cfgloop.h.
2428 (mark_loop_exit_edges): New static function.
2429 (if_convert): Call it.
2430 (find_if_header): Ignore branches out of loops.
2432 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
2434 * combine.c (simplify_comparison): Don't share rtx when converting
2435 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
2437 2003-07-18 David Edelsohn <edelsohn@gnu.org>
2439 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
2440 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
2441 (MUST_PASS_IN_STACK): Define.
2442 (BLOCK_REG_PADDING): Define.
2444 2003-07-18 Richard Henderson <rth@redhat.com>
2446 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
2447 to skip the addr_vec.
2449 Fri Jul 18 15:22:28 2003 Alexandre Oliva <aoliva@redhat.com>
2451 * combine.c (combinable_i3pat): Don't forbid occurrences of
2452 i2dest or i1dest in inner_dest if inner_dest is a mem.
2454 Fri Jul 18 17:05:57 CEST 2003 Jan Hubicka <jh@suse.cz>
2456 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
2458 2003-07-17 Jakub Jelinek <jakub@redhat.com>
2461 * loop.c (basic_induction_var): Check if convert_modes emitted any
2462 instructions. Remove them and return 0 if so.
2464 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
2466 PR optimization/11083
2467 * toplev.c (rest_of_handle_addresof): Rename into
2468 rest_of_handle_addressof. Delete unreachable blocks
2469 if dead edges were purged after the addressof pass.
2471 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
2473 * Makefile.in, configure, configure.in: Remove handling of
2474 lang-options.h and options_.h.
2475 * toplev.c (struct lang_opt, documented_lang_options): Remove.
2476 (display_help): Don't use documented_lang_options.
2478 2003-07-17 Zack Weinberg <zack@codesourcery.com>
2480 * c-decl.c (pushdecl_function_level): Make static, return nothing.
2481 (kept_level_p): Fold into poplevel.
2482 (undeclared_variable): Moved here from c-typeck.c. Export.
2483 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
2484 (undeclared_variable): Prototype here. Don't prototype
2485 kept_level_p nor pushdecl_function_level.
2486 * c-parse.in: Change first argument to poplevel from
2487 "kept_level_p()" to "KEEP_MAYBE".
2488 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
2490 2003-07-17 Roger Sayle <roger@eyesopen.com>
2492 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
2493 commutative operands instead of modifying the RTL in-place.
2495 2003-07-17 Mark Mitchell <mark@codesourcery.com>
2497 PR optimization/11557
2498 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
2499 unless we know which function is being called.
2501 2003-07-17 Roger Sayle <roger@eyesopen.com>
2503 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
2504 whether to reorder the operands of a commutative binary operator.
2506 2003-07-17 Roger Sayle <roger@eyesopen.com>
2508 * fold-const.c (const_binop): Avoid performing the FP operation at
2509 compile-time, if either operand is NaN and we honor signaling NaNs,
2510 or if we're dividing by zero and either flag_trapping_math is set
2511 or the desired mode doesn't support infinities.
2512 (fold_initializer): New function to fold an expression ignoring any
2513 potential run-time exceptions or traps.
2514 * tree.h (fold_initializer): Prototype here.
2515 * c-typeck.c (build_binary_op): Move to the end of the file so
2516 that intializer_stack is in scope. If constructing an initializer,
2517 i.e. when initializer_stack is not NULL, use fold_initializer to
2519 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
2520 performing FP operations at compile-time, if they would raise an
2521 exception at run-time.
2523 2003-07-17 Geoffrey Keating <geoffk@apple.com>
2526 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
2527 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
2528 (GTFILES): Add langhooks.c.
2529 (gt-langhooks.h): New.
2530 * c-common.h (c_static_assembler_name): Prototype.
2531 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
2532 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
2533 * c-opts.c: Include langhooks-def.h.
2534 (c_static_assembler_name): New.
2535 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
2537 (lhd_set_decl_assembler_name): Give static objects with context
2539 * varasm.c (var_labelno): Delete.
2540 (make_decl_rtl): Don't change the assembler name once it's set.
2542 * c-opts.c (this_input_filename): New.
2543 (finish_options): Take new parameter, name of file being compiled.
2544 Update callers. Set this_input_filename.
2545 (push_command_line_include): Use this_input_filename not
2546 main_input_filename.
2548 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
2550 * Makefile.in: Depend .pot generation on options.c.
2551 * po/exgettext: Add an extra_files variable containing additional
2554 2003-07-17 Zack Weinberg <zack@codesourcery.com>
2556 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
2557 c_write_global_declarations.
2559 * c-decl.c: Fix typos in several comments. Remove all
2560 #if 0 blocks; reindent as needed. Remove unused argument
2561 to declare_parm_level; all callers changed.
2562 * c-parse.in: Update calls to declare_parm_level. Avoid
2563 issuing a double warning in some circumstances.
2564 * c-typeck.c: Update calls to declare_parm_level.
2565 * c-tree.h: Update prototype of declare_parm_level.
2567 * c-pragma.c (apply_pragma_weak): Don't complain about a
2568 redundant #pragma weak.
2570 * objc/objc-act.c (forward_declare_categories,
2571 build_selector_reference_decl, build_class_reference_decl,
2572 build_objc_string_decl, synth_forward_declarations,
2573 build_protocol_reference): Set TREE_PUBLIC on synthetic
2574 forward decl to 0, consistent with eventual definition.
2575 Correct comments to match.
2577 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
2578 in regexp that don't form a range expression.
2579 * fixinc/fixincl.def: Regenerate.
2581 2003-07-17 Richard Henderson <rth@redhat.com>
2584 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
2585 even with !TARGET_CONST_GP.
2586 (ia64_function_ok_for_sibcall): Reject non-local functions.
2588 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
2590 * c-common.c (c_estimate_num_insns_1): Don't handle
2592 * expr.c (safe_from_p): Likewise.
2593 * gengtype.c (adjust_field_tree_exp): Likewise.
2594 * stmt.c (warn_if_unused_value): Likewise
2595 * tree.c (first_rtl_op): Likewise.
2596 * tree.def: Don't define METHOD_CALL_EXPR.
2597 * java/lang.c (java_estimate_num_insns_1): Don't handle
2600 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2603 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
2604 and its restrictions for the SPARC64 port.
2605 Move the entry of "-mimpure-text" before that of "-mv8".
2607 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2608 Phil Edwards <phil@jaj.com>
2610 * doc/install.texi (*-*-solaris2*): Document the step-by-step
2611 procedure to bootstrap and install.
2612 Document the preference for the legacy Sun tools in /usr/bin
2613 over the POSIX tools in /usr/xpg4/bin for the build process.
2615 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
2617 * c.opt: Document Uncodumented; use it. Document ObjC options.
2618 * opts.c (print_filtered_help): Skip undocumented switches.
2619 * opts.h (CL_UNDOCUMENTED): New.
2620 * opts.sh: Handle Undocumented.
2621 * toplev.c (documented_lang_options): Prevent its becoming empty.
2623 * lang-options.h: Remove.
2625 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
2627 * loop.c (check_ext_dependent_givs): Pass const struct loop *
2628 instead of struct loop_info * as argument. Accept BIVs with
2629 increment +/- 1 provided there is a friendly exit test against
2630 a loop-invariant value.
2631 (strength_reduce): Adapt call to check_ext_dependent_givs.
2633 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
2634 Con Bradley <con.bradley@superh.com>
2636 * sh-protos.h (sh_get_pr_initial_val): Declare.
2637 * sh.c (regno_reg_class): Make its elements type enum reg_class.
2638 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
2639 and live_regs_mask arguments. Changed all callers.
2640 (save_schedule_s): New structure.
2641 (save_schedule): New typedef.
2642 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
2643 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
2644 In interrupts handlers, also save registers that are usually
2645 partially saved, and make sure there is at least one general purpose
2646 register saved if a target register needs saving.
2647 Add casts in comparisons to avoid warnings.
2648 (sh_media_register_for_return): return -1 for interrupt handlers.
2649 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
2650 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
2651 registers used are available.
2652 Set RTX_FRAME_RELATED_P where appropriate.
2653 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
2654 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
2655 (initial_elimination_offset): Likewise.
2656 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
2657 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
2658 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
2659 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
2660 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
2661 and for target registers.
2662 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
2663 (regno_reg_class): Make its elements type enum reg_class.
2664 (CONSTRAINT_LEN): Don't use isdigit.
2665 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
2666 (FUNCTION_ARG): Add parentheses to avoid warnings.
2667 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
2668 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
2669 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
2670 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
2671 * sh.md (xordi3+1): Remove unused variable regno.
2672 (return_media): Check that tr0 is available before using it.
2674 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
2676 * c.opt: Document more options.
2678 2003-07-16 Roger Sayle <roger@eyesopen.com>
2680 * combine.c (subst): Also handle (subreg (const_double ...)) case
2681 if created by a substitution, by using the original inner mode.
2683 2003-07-16 Roger Sayle <roger@eyesopen.com>
2685 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
2686 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
2687 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
2689 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
2691 * doc/install.texi (--without-headers): New.
2693 Partial Fix PR/10129
2694 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
2695 (machopic_output_function_base_name): New; print the true pic label.
2696 (machopic_classify_ident): Pic Base is always a defined data.
2697 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
2698 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
2700 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
2701 if they are not floating point registers.
2704 * ggc.h: Add header guards.
2705 * c-decl.c (finish_struct): Sort fields if
2706 number greater than 15 and there are no
2707 anonymous structs/unions.
2708 * c-common.h: Include ggc.h.
2709 (sorted_fields_type): New struct.
2710 (field_decl_cmp): New prototype.
2711 (resort_sorted_fields): New prototype.
2712 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
2713 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
2714 as s, removing other fields.
2715 * c-typeck.c (lookup_field): Use s in lang_type.
2716 These were mostly moved from cp/class.c:
2717 * c-common.c (field_decl_cmp): New static function.
2718 (field_decl_cmp): New function.
2719 (resort_sorted_fields): New function.
2721 2003-07-16 Geoffrey Keating <geoffk@apple.com>
2723 * config/darwin.c (machopic_select_section): Use decl_readonly_section
2724 to do most of the work.
2726 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
2728 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
2729 * config/mmix/mmix.c: Convert functions to ISO C90.
2730 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
2732 (mmix_get_hard_reg_initial_val): Tweak section head comment.
2734 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
2736 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
2738 2003-07-16 Jakub Jelinek <jakub@redhat.com>
2740 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
2741 (uw_update_context_1): Use it.
2742 * config/rs6000/rs6000.c (insn_after_throw): Remove.
2743 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
2744 in parent frame if _Unwind_* called directly instead of through
2746 (rs6000_emit_eh_toc_restore): Remove.
2747 (rs6000_emit_prologue): Update stack pointer before doing any saving
2748 if current_function_calls_eh_return. Generate unwind info for $r2.
2749 (rs6000_emit_epilogue): Restore stack pointer after doing all
2750 restoring if current_function_calls_eh_return. Restore $r2.
2751 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
2752 * config/rs6000/rs6000.md (eh_return): Remove call to
2753 rs6000_emit_eh_toc_restore.
2754 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
2755 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
2757 2003-07-15 Jakub Jelinek <jakub@redhat.com>
2759 * expr.c (emit_block_move): Don't move anything if size is const 0.
2760 (clear_storage): Test against const0_rtx instead of comparing INTVAL
2763 2003-07-15 David S. Miller <davem@redhat.com>
2765 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
2766 emit nop if the last real insn is CALL_INSN.
2768 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
2770 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
2772 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
2774 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
2776 * config/i386/winnt.c (associated_type): Artificial methods are not
2777 affected by the import/export status of their class unless they are
2779 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
2781 * config/i386/winnt.c: Fix GCC copyright comment.
2783 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
2786 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
2787 not recursing on hard error.
2788 (diagnostic_for_decl): Likewise.
2789 * diagnostic.def: Rearrange.
2791 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
2793 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
2794 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
2796 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
2797 Richard Henderson <rth@redhat.com>
2799 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
2800 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
2801 (_Unwind_SetGR): Likewise.
2802 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
2803 (Unwind_SpTmp): New typedef.
2804 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
2805 (uw_update_context): Use _Unwind_GetPtr.
2806 (init_dwarf_reg_size_table): Move above uw_init_context_1.
2807 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
2808 Use _Unwind_SetSpColumn.
2809 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
2812 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
2814 * c.opt: Document more options.
2815 * toplev.c (documented_lang_options): Remove all local help strings.
2817 2003-07-15 Mark Mitchell <mark@codesourcery.com>
2820 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
2823 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
2826 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
2827 swap comparison operands if doing so would generate an
2828 unrecognizable insn.
2830 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
2832 PR optimization/11320
2833 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
2834 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
2835 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
2836 current_sched_info->compute_jump_reg_dependencies. Record which
2837 registers are used and which registers are set by the jump.
2838 Clear deps->reg_conditional_sets after a barrier.
2839 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
2840 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
2841 (init_deps): Initialize reg_conditional_sets.
2842 (free_deps): Clear reg_conditional_sets.
2843 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
2844 Mark registers live on entry of the fallthrough block and conditionally
2845 set as set by the jump. Mark registers live on entry of non-fallthrough
2846 blocks as used by the jump.
2847 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
2848 Mark new parameters as unused.
2850 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
2852 * doc/invoke.texi: Resync MIPS -march documentation.
2854 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
2856 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
2857 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
2858 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
2859 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
2860 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
2861 (mips_issue_rate): Handle PROCESSOR_R9000.
2862 (mips_use_dfa_pipeline_interface): Likewise.
2863 * config/mips/9000.md: New file.
2864 * config/mips/mips.md: Include it.
2865 (define_attr cpu): Add r9000.
2866 (mulsi3_mult3): Use "mul" for rm9000 code.
2868 2003-07-15 Stan Cox <scox@redhat.com>
2870 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
2871 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
2872 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
2873 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
2874 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
2875 (mips_issue_rate): Handle PROCESSOR_R7000.
2876 (mips_use_dfa_pipeline_interface): Likewise.
2877 * config/mips/7000.md: New file.
2878 * config/mips/mips.md: Include it.
2879 (define_attr cpu): Add r7000.
2880 (mulsi3_mult3): Use "mul" for rm7000 code.
2882 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
2884 * config/mips/mips.md (define_attr type): Add condmove. Use it for
2885 the conditional move patterns.
2886 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
2887 Check for condmove type.
2888 (ir_vr54_arith): Add move type.
2889 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
2890 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
2892 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
2894 * c-opts.c (print_help): Remove.
2895 (c_common_handle_option): Don't handle --help.
2896 * c.opt: Document some options.
2898 * opts.c (print_filtered_help): New.
2899 (print_help): Use it.
2901 2003-07-14 Geoffrey Keating <geoffk@apple.com>
2903 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
2904 * tree.c: (build_common_tree_nodes_2): Likewise.
2905 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
2906 (V4DF_type_node): New.
2908 * c-opts.c (push_command_line_include): Don't free deferred_opts,
2910 (finish_options): Reset init_cursor.
2912 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
2914 * expr.c (expand_assignment): Remove an unused argument
2916 * expr.h: Update the prototype.
2917 * function.c: Update the callers.
2920 2003-07-14 Mark Mitchell <mark@codesourcery.com>
2923 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
2926 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
2928 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
2929 with __cplusplus, not "we must use the C++ compiler's type"
2930 * fixinc/inclhack.def (void_null): Note that Interix needs this.
2931 * fixinc/fixincl.x: Regenerate.
2933 2003-07-14 Geoffrey Keating <geoffk@apple.com>
2935 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
2936 and unseen_objects from the global data before calling
2937 __deregister_frame_info_bases.
2938 (examine_objects): Insert objects into the seen_objects list,
2940 (_Unwind_Find_FDE): Always unlock the global object lists, even if
2941 we couldn't allocate a data structure to put in it.
2943 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
2944 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
2945 (SET_TYPE_PROTOCOL_LIST): New.
2946 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
2947 (get_object_reference): Likewise.
2949 Mon Jul 14 23:14:28 CEST 2003 Jan Hubicka <jh@suse.cz>
2951 * cfglayout.c (locator_file): Break out from ....
2952 (insn_file): ... here.
2953 (locator_line): Break out from ....
2954 (insn_line): ... here.
2955 * rtl.h (locator_file, locator_line): Declare.
2956 (final_start_function): Set proper line/file info.
2958 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
2960 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
2961 handled by pp_c_cast_expression.
2963 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
2965 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
2966 allocate 32768 bytes of stack. Use addition rather than subtraction
2967 when a single insn is enough.
2968 * config/mips/mips.md: Remove insns and splitters for subtracting
2970 (subsi3): Only accept register operands.
2971 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
2972 (subdi3_internal_3, subsi3_internal_2): Likewise.
2973 (casesi): Use expand_binop to subtract the lower bound.
2975 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
2977 * config/mips/mips.c (mips_in_small_data_p): Don't handle
2978 TARGET_MIPS16 specially.
2980 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
2982 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
2983 mips_output_aligned_bss.
2984 * config/mips/linux.h: Likewise.
2985 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
2986 * config/mips/mips.c (mips_output_aligned_bss): New function.
2988 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
2989 * config/mips/elf64.h: Likewise.
2991 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
2992 mips_declare_object_name.
2993 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
2994 * config/mips/elf64.h: As for elf.h.
2995 * config/mips/iris6.h: Likewise.
2996 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
2997 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
2998 do...while (0) block.
2999 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
3000 (mips_finish_declare_object): Declare.
3001 * config/mips/mips.c (mips_declare_object_name): New function.
3002 (mips_finish_declare_object): New function.
3004 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
3005 * config/mips/linux.h: Likewise.
3007 * config/mips/mips.c (inside_function): Delete.
3008 (file_in_function_warning, ignore_line_number): Delete.
3009 (mips_output_filename): Don't warn about changing filenames within
3011 (mips_output_lineno): Update accordingly.
3012 (mips_output_function_prologue): Don't reset the deleted variables.
3013 * config/mips/mips.h (inside_function): Delete.
3014 (file_in_function_warning, ignore_line_number): Delete.
3016 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
3017 * config/mips/elf64.h: Likewise.
3018 * config/mips/openbsd.h: Likewise.
3019 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
3020 * config/mips/linux.h: Likewise.
3021 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
3022 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
3024 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
3025 to the list of include files when using gas.
3026 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
3027 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
3028 * config/mips/elf64.h: Likewise.
3029 * config/mips/iris5.h: Likewise.
3030 * config/mips/linux.h: Likewise.
3031 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
3032 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
3033 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
3034 * config/mips/sdb.h: ...this new file.
3036 2003-07-14 Douglas Rupp <rupp@gnat.com>
3038 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
3039 argument to getcwd; use fixed buffer instead.
3041 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
3043 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
3044 * fixinc/fixinc.wrap: Delete.
3046 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
3048 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
3051 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
3053 * ggc-page.c (struct globals): Add new fields to keep track of the
3054 total allocated memory and overhead.
3055 (ggc_print_statistics): Print them.
3056 (ggc_alloc): Keep track of the total allocated memory and the
3059 * tree.c (dump_tree_statistics): Increase spacing.
3060 (enum tree_node_kind): Move to ...
3061 * tree.h (enum tree_node_kind): ... here.
3062 (tree_node_counts, tree_node_sizes): Declare.
3064 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
3066 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
3068 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3070 PR optimization/11440
3071 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
3074 2003-07-14 Alan Modra <amodra@bigpond.net.au>
3076 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
3077 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
3078 (emit_group_load, emit_group_store): Adjust declarations.
3079 Remove most occurrences of #ifdef TREE_CODE.
3080 * expr.c (emit_group_load): Add "type" param, and use
3081 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
3082 aligned accesses if !SLOW_UNALIGNED_ACCESS.
3083 (emit_group_store): Likewise.
3084 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
3085 emit_group_load and emit_group_store calls.
3086 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
3087 BLOCK_REG_PADDING to determine whether we need endian_correction.
3088 (load_register_parameters): Localize vars. Handle shifting of
3089 small values to the correct end of regs. Adjust emit_group_load
3091 (expand_call, emit_library_call_value_1): Adjust emit_group_load
3092 and emit_group_store calls.
3093 * function.c (assign_parms): Set mem alignment for stack slots.
3094 Adjust emit_group_store call. Store values at the "wrong" end
3095 of regs to the stack. Use BLOCK_REG_PADDING.
3096 (locate_and_pad_parm): Save where_pad.
3097 (expand_function_end): Adjust emit_group_load call.
3098 * stmt.c (expand_value_return): Adjust emit_group_load call.
3099 * Makefile.in (calls.o): Depend on $(OPTABS_H).
3100 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
3101 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
3102 (MUST_PASS_IN_STACK): Define.
3103 (BLOCK_REG_PADDING): Define.
3104 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
3105 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
3106 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
3107 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
3108 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
3110 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
3112 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
3114 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3116 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
3117 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
3119 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
3122 * toplev.c: Don't cut off option names.
3124 2003-07-13 Andreas Jaeger <aj@suse.de>
3126 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
3127 to integer of different size.
3129 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
3131 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
3132 to (eq (and X 1) 0).
3134 2003-07-13 Andreas Jaeger <aj@suse.de>
3136 * config.gcc: Add pmmintrin.h for x86_64-*-*.
3138 2003-07-13 Zack Weinberg <zack@codesourcery.com>
3140 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
3141 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
3142 list. Move these all together down by cpplib.
3144 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
3145 definition of CPPCHAR_SIGNED_T.
3147 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
3148 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
3149 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
3151 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
3152 * cppinit.c (cpp_create_reader): Likewise.
3154 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
3155 * cpptrad.c: Likewise. All callers changed.
3156 * cpplib.c: All callers changed.
3157 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
3158 * hashtable.h: Define GTY(x) to nothing here too.
3160 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3162 * stor-layout.c (compute_record_mode): Remove very obsolete test
3163 that forces BLKmode for records with fields crossing word boundary.
3165 2003-07-13 Zack Weinberg <zack@codesourcery.com>
3167 * Makefile.in: Remove orphan reference to acconfig.h.
3169 2003-07-13 Andreas Jaeger <aj@suse.de>
3171 * cgraphunit.c: Convert prototypes to ISO C90.
3173 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
3175 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
3177 * fixinc/fixincl.x: Rebuild.
3179 2003-07-12 Zack Weinberg <zack@codesourcery.com>
3181 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
3182 i?86-*-*. Use correct name of cache variable.
3183 * configure: Regenerate.
3185 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
3187 * config/alpha/alpha.c: Fix comment typos.
3188 * config/alpha/alpha.md: Likewise.
3189 * config/arm/arm.c: Likewise.
3190 * config/arm/arm.md: Likewise.
3191 * config/arm/lib1funcs.asm: Likewise.
3192 * config/avr/avr.md: Likewise.
3193 * config/arm/README-interworking: Fix typos.
3195 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
3197 * c-format.c: Fix comment formatting.
3198 * c-typeck.c: Likewise.
3199 * coverage.c: Likewise.
3200 * cppcharset.c: Likewise.
3201 * cpplib.c: Likewise.
3202 * dbxout.c: Likewise.
3203 * gcov-io.h: Likewise.
3204 * toplev.c: Likewise.
3206 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
3208 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
3211 2003-07-12 Zack Weinberg <zack@codesourcery.com>
3213 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
3214 uses three-argument AC_DEFINE so no acconfig.h entries are
3216 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
3217 which contains the GAS version number as a scaled integer.
3218 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
3219 ability to check for ELF assembler.
3220 (gcc_GAS_CHECK_FEATURE): New macro.
3221 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
3222 assembler feature checks using gcc_GAS_CHECK_FEATURE.
3223 Use three-argument AC_DEFINE everywhere.
3224 * acconfig.h: Deleted.
3225 * config.in, configure: Regenerate.
3227 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
3229 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
3231 * fixinc/fixincl.x: Regenerate.
3233 * fixinc/inclhack.def (gnu_types): Improve comment.
3235 2003-07-12 Andreas Jaeger <aj@suse.de>
3237 * fp-test.c (main): Use ISO C90 prototype.
3239 * version.c: Remove unneded include of ansidecl.h.
3241 * cgraph.h: Convert prototypes to ISO C90.
3242 * cgraph.c: Likewise.
3243 * fix-header.c: Likewise.
3245 * protoize.c: Likewise.
3247 Sat Jul 12 06:09:38 CEST 2003 Jan Hubicka <jh@suse.cz>
3249 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
3252 Sat Jul 12 03:06:01 CEST 2003 Jan Hubicka <jh@suse.cz>
3253 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3255 * cgraph.c (cgraph_max_uid): New global variable.
3256 (cgraph_node): Set uid field.
3257 (create_edge): Keep inline flags consistent.
3258 (dump_cgraph): Dump more info.
3259 * cgraph.h (struct cgraph_local_info): Remove inline_many and
3260 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
3261 (struct cgraph_global_info): Add insns, calls, cloned_times,
3263 (struct cgraph_node): Add uid.
3264 (struct cgraph_edge): Add inline_call.
3265 (cgraph_max_uid, cgraph_inline_p): Declare.
3266 * cgraph.c: Include params.h and fibheap.h
3267 (cgraph_mark_functions_to_inline_once): Kill.
3268 (INSNS_PER_CALL): New constant.
3269 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
3271 (cgraph_finalize_function): Do not analyze inlining.
3272 (cgraph_finalize_compilation_unit): Set inlining attributes.
3273 (cgraph_mark_functions_to_output): More consistency checks.
3274 (cgraph_optimize_function): Set current_function_decl to NULL.
3275 (cgraph_expand_function): Use new inline flags.
3276 (cgraph_postorder): Expand from cgraph_expand_functions.
3277 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
3278 (cgraph_inlined_into, cgraph_inlined_callees,
3279 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
3280 cgraph_mark_inline, cgraph_check_inline_limits,
3281 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
3282 cgraph_decide_inlining, cgraph_inline_p): New functions.
3283 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
3284 PARAM_INLINE_UNIT_GROWTH): New parameters.
3285 * tree-inline.c (struct inline_data): New field current_decl.
3286 (expand_call_inline): Avoid forward declarations; use
3287 inlinable_function_p.
3288 (optimize_inline_calls): Set id.current_decl.
3290 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
3292 * configure.in: Remove wrongly added definition of
3294 * configure: Regenerate.
3296 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
3298 * rtl.def (NOTE): Do not use padding.
3300 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
3302 * doc/install.tex: Update required binutils for i?86-*-linux*
3304 2003-07-11 Richard Henderson <rth@redhat.com>
3306 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
3308 2003-07-11 Mark Mitchell <mark@codesourcery.com>
3310 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
3311 TRANSLATION_UNIT_DECL as top_level.
3313 2003-07-11 Jakub Jelinek <jakub@redhat.com>
3315 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
3316 then fall back to cmpstrM.
3317 * builtins.c (expand_builtin_memcmp): Likewise.
3318 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
3319 (s390_expand_cmpmem): ... this.
3320 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
3321 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
3322 from cmpstr* patterns. Rename call to s390_expand_cmpstr
3323 to s390_expand_cmpmem.
3324 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
3325 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
3327 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
3329 * doc/md.texi (cmpstrM): Describe as String compare insn, not
3333 2003-07-11 Loren James Rittle <ljrittle@acm.org>
3335 * config/i386/freebsd.h (SET_ASM_OP): Remove.
3336 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
3337 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
3338 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
3340 2003-07-11 Richard Henderson <rth@redhat.com>
3342 * function.c (assign_parms): Don't recombine complex args if
3343 fnargs is unchanged from orig_fnargs.
3344 (split_complex_args): Return args without complex before copying.
3345 Re-layout the modified parameters.
3347 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
3349 * regclass.c (choose_hard_reg_mode): Add third argument.
3350 Changed all callers.
3351 * rtl.h (choose_hard_reg_mode): Update declaration.
3352 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
3353 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
3355 2003-07-11 Geoffrey Keating <geoffk@apple.com>
3357 * c-decl.c (finish_decl): Handle 'used' here...
3358 * cgraphunit.c (cgraph_finalize_function): ... and here ...
3359 * c-common.c: (handle_used_attribute): ... not here.
3361 * configure.in (onstep): Support --enable-intermodule.
3362 * Makefile.in (OBJS-common): New.
3364 (OBJS-archive): New.
3365 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
3366 (OBJS-onestep): New.
3367 (libbackend.a): Support @onestep@.
3368 (libbackend.o): New.
3369 * configure: Regenerate.
3371 * c-common.h (c_reset_state): New prototype.
3372 (c_parse_file): New prototype.
3373 (finish_file): Move prototype from c-tree.h.
3374 * c-decl.c: Include <hashtab.h>.
3375 (builtin_decls): New.
3376 (current_file_decl): New.
3377 (duplicate_decls): Add extra parameter. Change all callers. Don't
3378 output duplicate common symbols.
3379 (link_hash_hash): New.
3380 (link_hash_eq): New.
3381 (poplevel): Handle popping of the top level.
3382 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
3383 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
3384 (pushdecl_top_level): Likewise.
3385 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
3386 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
3387 (finish_decl): Handle TRANSLATION_UNIT_DECL.
3388 (merge_translation_unit_decls): New.
3389 (c_write_global_declarations): New.
3390 (c_reset_state): New.
3391 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
3392 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
3393 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
3394 TRANSLATION_UNIT_DECL.
3395 (c_objc_common_finish_file): Call merge_translation_unit_decls.
3396 * c-opts.c (in_fnames): Rename from in_fname.
3397 (c_common_decode_option): Handle multiple input filenames.
3398 (c_common_post_options): Likewise.
3399 (c_common_parse_file): Likewise; also, call c_parse_file rather than
3401 * c-parse.in: Move cleanup code to c_parse_file.
3402 (free_parser_stacks): Move contents to c_parse_file.
3403 (c_parse_file): New.
3404 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
3406 (C_DECL_FILE_SCOPE): New.
3407 (finish_file): Move prototype to c-common.h.
3408 (merge_translation_unit_decls): New prototype.
3409 (comptypes): Add extra parameter to prototype.
3410 (c_write_global_declarations): New prototype.
3411 * c-typeck.c (tagged_types_tu_compatible_p): New.
3412 (function_types_compatible_p): Add extra parameter, change all callers.
3413 (type_lists_compatible_p): Likewise.
3414 (comptypes): Likewise.
3415 (struct tagged_tu_seen): New.
3416 (tagged_tu_seen_base): New.
3417 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
3418 (c_mark_addressable): Remove #if 0 code.
3419 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
3420 comment explaining why it shouldn't have to.
3421 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
3423 * cppinit.c (cpp_read_next_file): New.
3424 (cpp_read_main_file): Use it.
3425 * cpplib.c (undefine_macros): New.
3426 (cpp_undef_all): New.
3427 * cpplib.h (cpp_read_next_file): Prototype.
3428 (cpp_undef_all): Prototype.
3429 * langhooks-def.h (write_global_declarations): Remove prototype.
3430 * toplev.h (write_global_declarations): Add prototype.