1 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
3 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
4 strstr with $pb to a strcompare with "<pic base>"
5 (ix86_output_addr_diff_elt): Output the real pic base.
7 2003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
9 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
10 (LANG_HOOKS_INITIALIZER): Correct.
13 2003-08-19 Jan Hubicka <jh@suse.cz>
15 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
16 (cgraph_varpool_mark_needed_node): Likewise.
17 * cgraph.h (notice_global_symbol): Declare
18 * varasm.c (notice_global_symbol): Break out from ...
19 (assemble_start_function): ... here; update for variables.
20 (assemble_variable): Use notice_global_symbol.
22 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
24 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
25 expect SFmode and DFmode arguments to be passed in FPRs,
26 regardless of the underlying type.
28 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
31 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
32 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
34 2003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
37 * c-typeck.c (set_init_index): Check for negative index.
39 2003-08-18 Bob Wilson <bob.wilson@acm.org>
41 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
43 * config/xtensa/crtn.asm (_init, _fini): Likewise.
44 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
45 __umodsi3, __modsi3): Likewise.
46 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
49 2003-08-18 Aldy Hernandez <aldyh@redhat.com>
51 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
53 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
55 * config/mips/mips.md: Quote C code in braces. Remove use of
56 fake const0_rtx operands. Remove double backslashes. Use \;.
57 Remove workarounds for bogus warnings.
59 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
61 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
62 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
63 rather than TARGET_MIPS4300.
64 (mulsf3_internal, mulsf3_r4300): Likewise.
66 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
68 * config/mips/mips.md: Renumber unspecs. Clean up comments.
70 2003-08-17 Roger Sayle <roger@eyesopen.com>
72 * simplify-rtx.c (associative_constant_p): New function to test
73 whether an RTX expression is an immediate constant.
74 (simplify_associative_operation): New function to perform some
75 reassociation optimizations of associative binary expressions.
76 (simplify_binary_operation): Use simplify_associative_operation
77 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
78 Floating point expressions are only reassociated when unsafe
79 math optimizations are permitted.
81 2003-08-17 Andreas Jaeger <aj@suse.de>
83 * config/alpha/alpha.md: Remove usage of PARAMS.
85 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
86 * config/i386/i386-interix.h: Likewise.
87 * config/i386/winnt.c: Likewise.
88 * config/i386/cygming.h: Likewise.
89 * config/i386/cygwin2.c: Likewise.
90 * config/darwin.c: Likewise.
91 * config/darwin-c.c: Likewise.
92 * config/darwin-protos.h: Likewise.
93 * config/darwin.h: Likewise.
94 * config/s390/s390-protos.h: Likewise.
95 * config/s390/s390.c: Likewise.
96 * config/ia64/ia64.c: Likewse
97 * config/ia64/ia64-protos.h: Likewise.
98 * config/ia64/ia64-c.c: Likewise.
100 2003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
102 * config/sparc/sparc.c: Convert to ISO C.
104 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
105 * config/sparc/sparc.c: Likewise.
107 2003-08-16 Nathan Sidwell <nathan@codesourcery.com>
110 * stmt.c (expand_expr_stmt_value): Don't warn about any void
113 2003-08-16 Jan Hubicka <jh@suse.cz>
115 * i386.c (ix86_fntype_regparm): Rename from ...
116 (ix86_function_regparm): ... this one; add fastcall and local
118 (ix86_function_ok_for_sibcall): Update.
119 (ix86_return_pops_args): Likewise.
120 (init_cumulative_args): Likewise.
121 (x86_can_output_mi_thunk): Likewise.
122 (function_arg): Fix formating.
123 (x86_this_parameter): Fix fastcall.
124 (x86_output_mi_thunk): Likewise.
126 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
127 body as reachable; mark nested functions as needed too.
128 (dump_cgraph): Do not output global.calls.
129 * cgraph.h (cgraph_global_info): Kill.
130 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
131 (record_call_1): Speedup.
132 (cgraph_analyze_function): Break out from ...; compute inlining
134 (cgraph_finalize_compilation_unit): ... here.
135 (cgraph_mark_inline): Kill computation of calls.
136 (cgraph_decide_inlining): Do not compute most of initial values.
138 2003-08-14 Roger Sayle <roger@eyesopen.com>
140 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
141 to negate if either operand is easy to negate, if we don't care
142 about sign-dependent rounding.
143 (negate_expr): Make the logic to negate a REAL_CST explicit.
144 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
145 that's easy to negate, if we don't honor sign-dependent rounding.
146 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
147 negate, and the symmetric A * -B as -A * B if A is easy to negate.
148 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
149 -C/D if B and C are cheap to negate. Add an explicit rule to
150 optimize X/-1.0 as -X when we don't care about signaling NaNs.
152 2003-08-14 Zack Weinberg <zack@codesourcery.com>
154 * Makefile.in (tm_file): Rename tm_include_list.
155 (tm_p_file): Rename tm_p_include_list.
156 (build_xm_file): Rename build_xm_include_list.
157 (host_xm_file): Rename host_xm_include_list.
158 (xm_file): Rename xm_include_list.
159 (xm_file_list): Add to be substituted.
160 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
162 (bt-load.o): Add missing dependency on $(TM_H).
163 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
164 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
165 build_xm_file, generate both *_file_list and *_include_list
166 values from it. (xm_file_list was formerly not being generated.)
167 In *_include_list, prefix the names of all headers found in
168 $(srcdir)/config with config/. In each loop, consider only
169 the special case files that can actually appear in that list.
170 AC_SUBST all *_file_list and all *_include_list variables; do
171 not AC_SUBST the plain *_file variables.
172 * configure: Regenerate.
174 2003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
176 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
178 2003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
180 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
182 (attr_length_call): Include it here. Improve length estimate for
184 (output_call): Use targetm.binds_local_p.
186 2003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
188 * builtins.c (CASE_MATHFN): New helper macro.
189 (mathfn_built_in): Simplify and sort.
191 * protoize.c (substr): Delete, callers changed to `strstr'.
193 2003-08-13 Zack Weinberg <zack@codesourcery.com>
195 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
196 * config/iq2000/xm-iq2000.h: Delete file.
198 2003-08-13 Geoffrey Keating <geoffk@apple.com>
200 * gengtype.c (walk_type): Process a subobject before processing
201 the pointer that points to the subobject.
203 2003-08-13 Per Bothner <pbothner@apple.com>
205 * regclass.c (init_reg_modes): Make non-static.
206 Rename to init_reg_modes_once per new naming convention.
207 (init_regs): Don't call init_reg_modes here.
208 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
209 * rtl.h (init_reg_modes_once): New declaration.
210 * toplev.c (backend_init): Call init_regs after init_emit_once.
212 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
214 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
215 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
217 2003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
219 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
220 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
222 2003-08-13 Dale Johannesen <dalej@apple.com>
224 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
225 handling of decrement-and-branch farther than 32 bits.
227 2003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
229 * configure.in (make_compare_target): Move test to ...
230 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
231 * configure: Regenerate.
233 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
235 * config/mips/iris6.h: Convert to C90 prototypes.
236 * config/mips/irix6-libc-compat.c: Likewise.
237 * config/mips/mips-protos.h: Likewise.
238 * config/mips/mips.c: Likewise.
240 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
242 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
243 for selected machines. Comment heavily.
244 fixinc/fixincl.x: Rebuild.
245 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
247 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
249 * config/mips/mips.h: Tweak various comments.
250 * config/mips/mips.c: Likewise.
252 2003-08-11 James E Wilson <wilson@tuliptree.org>
254 PR optimization/11319
256 * alias.c (find_base_value, case REG): Return 0 not src if no base
259 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
261 * gcse.c (gmalloc): Fix last change.
263 2003-08-11 Roger Sayle <roger@eyesopen.com>
265 * simplify-rtx.c (simplify_binary_operation): Replace calls to
266 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
267 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
268 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
270 2003-08-11 Roger Sayle <roger@eyesopen.com>
272 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
273 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
274 typecode for an ABS_EXPR.
276 * doc/c-tree.texi: Document ABS_EXPR.
278 2003-08-11 Roger Sayle <roger@eyesopen.com>
280 * fold-const.c (fold): Optimize any associative floating point
281 operator with -funsafe-math-optimizations, not just MULT_EXPR.
283 2003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
285 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
286 information in SHmedia case too.
287 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
289 (__set_fpscr): Use an access via GOT for PIC case.
291 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
293 * configure.in (intermodule): Make switch test more portable.
294 * configure: Regenerate.
296 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
298 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
301 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
303 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
304 (grealloc): Size argument is a size_t.
305 (gcalloc): New function. Use throughout in lieu of
308 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
310 * config/ia64/ia64.c (ia64_reorg): Likewise.
311 * conflict.c (conflict_graph_new): Likewise.
312 * fixinc/fixincl.c (run_compiles): Likewise.
313 * genattrtab.c (optimize_attrs): Likewise.
314 * genrecog.c (new_decision): Likewise.
315 * haifa-sched.c (schedule_block): Likewise.
316 * hashtable.c (ht_create): Likewise.
318 2003-08-11 Bob Wilson <bob.wilson@acm.org>
320 * config/xtensa/lib2funcs.S: Fix whitespace.
321 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
322 syntax where appropriate. Remove unnecessary backslash escapes.
323 Reformat comments and fix some code formatting.
324 (extendqisi2): Rearrange conditional.
325 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
326 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
329 2003-08-11 Richard Sandiford <rsandifo@redhat.com>
331 * config/mips/mips.c: Various formatting fixes.
332 (override_options): Resync -mtune handling with gas.
333 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
334 * config/mips/mips.h: More formatting fixes.
335 (mips_abi): Move declaration.
336 * config/mips/mips.md (exception_receiver): Add mode to
339 2003-08-11 Aldy Hernandez <aldyh@redhat.com>
341 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
343 (bdesc_1arg): Remove evsplati and evsplatfi.
345 2003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
347 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
350 2003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
352 * builtins.c (expand_builtin_strcat): Optimize constant strings.
354 2003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
356 * pretty-print.c (pp_base_indent): Rename from pp_indent.
357 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
358 (struct c_pretty_print_info): Add more fields.
359 (pp_c_left_paren): Move to c-pretty-print.c.
360 (pp_c_right_paren): Likewise.
361 (pp_c_left_brace): Likewise.
362 (pp_c_right_brace): Likewise.
363 (pp_c_left_bracket): Likewise.
364 (pp_c_right_bracket): Likewise.
365 (pp_c_declarator): Declare.
366 (pp_c_direct_declarator): Likewise.
367 (pp_c_specifier_qualifier_list): Likewise.
368 (pp_c_type_id): Likewise.
369 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
370 (pp_c_type_qualifier_list): New.
371 (pp_c_pointer): Likewise.
372 (pp_c_parameter_type_list): Likewise.
373 (pp_c_function_definition): Likewise.
374 (pp_c_id_expression): Likewise.
375 (pp_c_simple_type_specifier): Tidy.
376 (pp_c_unary_expression): Likewise.
377 (pp_c_expression): Likewise.
378 (pp_c_pretty_printer_init): Likewise.
379 (pp_c_specifier_qualifier_list): Rework..
380 (pp_c_abstract_declarator): Likewise.
381 (pp_c_postfix_expression): Likewise.
382 (pp_c_primary_expression): Likewise.
383 (pp_c_cast_expression): Likewise.
384 (pp_c_direct_abstract_declarator): Likewise.
385 (pp_c_storage_class_specifier): Likewise.
386 (pp_c_function_specifier): Likewise.
387 (pp_c_declaration_specifiers): Likewise.
388 (pp_c_direct_declarator): Likewise.
389 (pp_c_declarator): Likewise.
390 (pp_c_declaration): Likewise.
391 (pp_c_statement): Likewise.
392 (pp_c_integer_constant): Rename from pp_c_integer_literal.
393 (pp_c_character_constant): Rename from pp_c_character_literal.
394 (pp_c_bool_constant): Rename from pp_c_bool_literal.
395 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
396 (pp_c_floating_constant): Rename from pp_c_real_literal.
397 (pp_c_constant): Rename from pp_c_literal.
398 * c-lang.c: Include diagnostic.h and c-pretty-print.h
399 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
400 (c_initialize_diagnostics): New.
401 * Makefile.in (c-lang.o): Update dependency.
403 2003-08-10 Nathan Sidwell <nathan@codesourcery.com>
405 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
407 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
409 * config/mips/mips.c (mips_no_mips16_string): Remove.
410 (override_options): Don't handle -mips16 as part of -mipsN.
411 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
412 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
413 (TARGET_OPTIONS): Remove -mno-mips16.
415 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
417 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
418 (coprocessor2_operand): Likewise.
419 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
420 (lookup_name): Remove declaration.
421 (abort_with_insn): Remove. Replace all uses with fatal_insn.
422 (mips16, mips_abicalls): Remove.
423 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
424 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
425 (coprocessor_operand, coprocessor2_operand): Remove.
426 (override_options): Don't set mips16 or mips_abicalls.
427 (print_operand): Don't expect SIGN_EXTEND operands.
428 (mips_secondary_reload_class): Likewise.
429 (mips_output_conditional_branch): Remove disabled long-branch code.
430 * config/mips/mips.h (call_used_regs): Remove declaration.
431 (may_call_alloca): Likewise.
432 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
433 (mips_abicalls, mips16): Remove declarations.
434 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
435 (CC1_SPEC): Remove outdated comment.
436 (MIPS_VERSION, MACHINE_TYPE): Remove.
437 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
438 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
439 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
440 (PUSH_ROUNDING): Likewise.
441 (ASSEMBLER_SCRATCH_REGNUM): Remove.
442 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
443 and mips16 with TARGET_MIPS16.
445 2003-08-09 Per Bothner <pbothner@apple.com>
447 * cppinit.c (cpp_read_main_file): Split out source-independent
448 initialization to separate function ...
449 (cpp_post_options): New function.
450 * cppfiles.c (cpp_stack_file): Rename public name to ...
451 (_cpp_stack_file): New internal function name.
452 * cpplib.h: Update accordingly.
453 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
454 (cpp_read_main_file): Don't initialize line here.
455 * c-opts.c (c_common_post_options): Call cpp_post_options.
456 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
457 * fix-header.c (read_scan_file): Call cpp_post_options.
459 2003-08-09 Per Bothner <per@bothner.com>
461 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
463 2003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
465 * pa.c (pa_asm_output_mi_thunk): Fix typo.
467 2003-08-09 Neil Booth <neil@daikokuya.co.uk>
469 PR preprocessor/11839
470 * cppfiles.c (open_file): Handle ENOTDIR.
472 2003-08-09 Richard Sandiford <rsandifo@redhat.com>
475 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
477 2003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
479 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
480 source/destination is not a register operand.
482 2003-08-08 Richard Henderson <rth@redhat.com>
485 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
486 RETURN_ADDRESS_POINTER_REGNUM.
487 (ia64_expand_prologue): Don't frob it.
488 (ia64_output_function_epilogue): Likewise.
489 (ia64_return_addr_rtx): New.
490 (ia64_split_return_addr_rtx): New.
491 * config/ia64/ia64-protos.h: Update.
492 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
493 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
494 (GENERAL_REGNO_P): Don't check it.
495 (AR_*_REGNUM): Renumber.
496 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
497 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
498 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
499 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
500 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
501 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
502 (movdi_ret_addr): New.
504 2003-08-08 Geoffrey Keating <geoffk@apple.com>
506 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
508 2003-08-08 Roger Sayle <roger@eyesopen.com>
510 * tree.h (get_identifier) Define a macro form of get_identifier
511 that calls get_identifier_with_length when the string is constant.
512 (get_identifier_with_length): Change type of second argument to
514 * stringpool.c (get_identifier): Undefine the macro before giving
515 the function definition.
516 (get_identifier_with_length): Change type of second argument to
517 size_t in function definition.
518 * hashtable.c (calc_hash): Change type of second argument to size_t.
519 (ht_lookup): Change type of third argument to size_t. Reorganize
520 to speed-up the cases where the hash table slot is empty, or the
521 first probe matches (i.e. there isn't a collision).
522 * hashtable.h (ht_lookup): Adjust function prototype.
524 2003-08-08 Bernardo Innocenti <bernie@develer.com>
528 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
530 2003-08-08 Neil Booth <neil@daikokuya.co.uk>
532 * common.opt: Add debug switches.
533 * flags.h (use_gnu_debug_info_extensions): Boolify.
534 * opts.c (write_symbols, debug_info_level,
535 use_gnu_debug_info_extensions): Move from toplev.c.
536 (set_debug_level): New.
537 (common_handle_options): Handle debug switches.
538 (print_help): Display target options directly.
539 * toplev.c (debug_hooks): Don't initialize.
540 (write_symbols, debug_info_level,
541 use_gnu_debug_info_extensions): Move to opts.c.
542 (debug_args, display_help, decode_g_option): Remove.
543 (process_options): Set no debug if level zero here,
544 and no-debug-hooks. Error here if impossible debug format selected.
545 * toplev.h (display_help, decode_g_option): Remove.
547 2003-08-08 Richard Sandiford <rsandifo@redhat.com>
549 * tree.c (get_file_function_name_long): Fix size of alloca() area.
551 2003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
553 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
554 and gcc_cv_prog_cmp_skip.
555 * configure: Regenerate.
557 2003-08-08 Stan Cox <scox@redhat.com>
559 * config/iq2000: New port.
560 * config.gcc (iq2000-*-elf): Added.
561 * doc/install.texi (Specific): Add iq2000 description.
563 2003-08-08 Andreas Schwab <schwab@suse.de>
565 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
566 and insert missing empty argument.
567 * configure: Regenerate.
569 2003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
571 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
572 (attr_length_millicode_call): Likewise.
573 (attr_length_call): Likewise. Revise some maximum insn lengths.
574 (attr_length_indirect_call): Likewise.
575 (output_call): Fix thinko that added extra nop.
576 * pa.h (IN_NAMED_SECTION_P): Define.
579 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
580 __STDC_EXT__ when using C++ dialect.
582 2003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
584 * sh.c (calc_live_regs): If the return address pointer is live,
586 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
587 for saves / restores.
588 (sh_expand_epilogue): If sh_media_register_for_return returns a
589 register number, flag the instructions that restores PR_MEDIA_REG
591 Remove dead update of offset.
592 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
593 we can use the result of get_hard_reg_initial_val.
594 * sh.md (UNSPEC_RA): New constant.
595 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
596 (load_ra). Handle UNSPEC_RA.
597 (sibcall_media): Use PR_MEDIA_REG.
599 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
600 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
601 needs saving on SHmedia.
603 2003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
605 * config/s390/s390.md: Replace all occurrences of \\t with \t.
607 2003-08-07 Richard Sandiford <rsandifo@redhat.com>
609 * local-alloc.c (combine_regs): Fix comment typo.
611 2003-08-06 Zack Weinberg <zack@codesourcery.com>
613 * c-decl.c (builtin_decls): Replace with first_builtin_decl
614 and last_builtin_decl.
615 (c_init_decl_processing): Initialize both.
616 (c_reset_state): Iterate from first_builtin_decl to
617 last_builtin_decl inclusive to reintroduce builtins.
619 2003-08-06 David Mosberger <davidm@hpl.hp.com>
621 * doc/extend.texi (Function Attributes): Document the IA-64 version
622 of the "model" attribute.
624 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
625 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
626 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
628 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
629 (ia64_encode_section_info): Likewise.
630 (ia64_attribute_table): Add "model" attribute.
631 (TARGET_ENCODE_SECTION_INFO): Define.
632 (small_addr_symbolic_operand): New function.
633 (got_symbolic_operand): Return 0 for a symbolref to an object
634 in the small address area.
635 (enum ia64_addr_area): New type.
636 (small_ident1): New variable.
637 (small_ident2): Likewise.
638 (init_idents): New function.
639 (ia64_get_addr_area): Likewise.
640 (ia64_encode_addr_area): Likewise.
641 (ia64_encode_section_info): Likewise.
642 (ia64_expand_load_address): For symbolic references to objects in
643 the small-address-area, load the address via gen_rtx_SET() (which,
644 eventually, will expand into "addl").
646 2003-08-06 Per Bothner <pbothner@apple.com>
648 * line-map.h (fileline): New typedef.
649 (struct line_map, linemap_add, linemap_lookup): Use it.
650 * input.h (struct location_s): Comment notes that long-term we want
651 to replace it by fileline.
653 2003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
655 Fix SHcompact exception handling:
656 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
657 by the prologue, return a MEM with return_address_pointer_rtx
659 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
660 (RETURN_ADDR_OFFSET): Don't define.
661 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
662 registers that are visible in compact mode. Show that SHmedia
663 registers still exist in compact mode, even if there are not
665 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
666 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
667 and DW_EH_PE_pcrel for pic data.
668 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
669 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
670 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
671 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
672 * sh.md (movsi_media-1): New splitter.
674 2003-08-06 Graeme Peterson <gp@qnx.com>
676 * config/i386/nto.h: New.
677 * config/i386/t-nto: New.
678 * config.gcc (i[34567]86-*-nto-qnx*): New.
680 2003-08-06 Phil Edwards <pme@gcc.gnu.org>
682 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
684 2003-08-06 Alan Modra <amodra@bigpond.net.au>
686 * calls.c (load_register_parameters): Arrange for call_fusage to
687 report the whole register as used when shifting to the msb.
689 2003-08-05 Roger Sayle <roger@eyesopen.com>
691 * builtins.c (expand_builtin): When not optimizing, call the library
692 function for all builtins that have library functions (except alloca).
694 2003-08-05 Alexandre Oliva <aoliva@redhat.com>
696 * c.opt: Introduce -fworking-directory.
697 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
698 * c-common.h (flag_working_directory): Declare.
699 * c-common.c (flag_working_directory): Define.
700 * c-opts.c (c_common_handle_options): Set it.
701 (sanitize_cpp_opts): Set...
702 * cpplib.h (struct cpp_options): ... working_directory option.
703 (struct cpp_callbacks): Add dir_change.
704 * cppinit.c (read_original_filename): Call...
705 (read_original_directory): New. Look for # 1 "directory//"
707 (cpp_read_main_file): Call dir_change callback if working_directory
709 * gcc.c (cpp_unique_options): Pass -g*.
710 * c-lex.c (cb_dir_change): New.
711 (init_c_lex): Set dir_change callback.
712 * toplev.c (src_pwd): New static variable.
713 (set_src_pwd, get_src_pwd): New functions.
714 * toplev.h (get_src_pwd, set_src_pwd): Declare.
715 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
716 * dwarf2out.c (gen_compile_unit_die): Likewise.
717 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
719 2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
721 * pretty-print.h (pp_set_line_maximum_length): Make macro.
722 (pp_set_prefix): Likewise.
723 (pp_destroy_prefix): Likewise.
724 (pp_remaining_character_count_for_line): Likewise.
725 (pp_clear_output_area): Likewise.
726 (pp_formatted_text): Likewise.
727 (pp_last_position_in_text): Likewise.
728 (pp_emit_prefix): Likewise.
729 (pp_append_text): Likewise.
730 (pp_flush): Likewise.
731 (pp_format_text): Likewise.
732 (pp_format_verbatim): Likewise.
733 (pp_tree_identifier): Tidy.
734 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
735 (pp_base_format_verbatim): Rename from pp_format_verbatim.
736 (pp_base_flush): Rename from pp_flush.
737 (pp_base_set_line_maximum_length): Rename from
738 pp_set_line_maximum_length.
739 (pp_base_clear_output_area): Rename from pp_clear_output_area.
740 (pp_base_set_prefix): Rename from pp_set_prefix.
741 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
742 (pp_base_emit_prefix): Rename from pp_emit_prefix.
743 (pp_base_append_text): Rename from pp_append_text.
744 (pp_base_formatted_text): Rename from pp_formatted_text.
745 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
746 (pp_base_remaining_character_count_for_line): Rename from
747 pp_remaining_character_count_for_line.
748 * diagnostic.h (diagnostic_format_decoder): Tidy.
749 (diagnostic_flush_buffer): Likewise.
750 * c-pretty-print.h: (pp_c_string_literal): Declare.
751 (pp_c_real_literal): Likewise.
752 (pp_c_integer_literal): Likewise.
753 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
755 (pp_c_character_literal): Tidy.
756 (pp_c_string_literal): Make public.
757 (pp_c_bool_literal): Likewise.
758 (pp_c_integer_literal): Likewise.
759 (pp_c_real_literal): Likewise.
761 * Makefile.in (C_PRETTY_PRINT_H): New variable.
762 (c-pretty-print.o): Update dependence.
764 2003-08-05 Chris Demetriou <cgd@broadcom.com>
766 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
767 ".set nomacro" state.
768 (fix_truncsfsi2_macro): Likewise.
770 2003-08-05 Steven Bosscher <steven@gcc.gnu.org>
772 * tree.h (DID_INLINE_FUNC): Remove macro.
773 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
774 add tree check for FUNCTION_DECL.
775 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
776 (struct tree_decl): Rename inlined_function_flag to
777 declared_inline_flag.
778 * c-common.h (c_lang_decl): Remove.
779 (DECL_ESTIMATED_INSNS): Remove.
780 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
781 (DECL_DECLARED_INLINE_P): Remove.
782 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
783 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
784 (finish_function): Make uninlinable a bool. Fixup call to
785 tree_inlinable_function_p() and fix some code style issues.
786 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
787 * cgraph.c (dump_cgraph): Likewise.
788 * cgraphunit.c (cgraph_decide_inlining): Likewise
789 (cgraph_finalize_compilation_unit): Likewise.
790 Also update call to tree_inlinable_function_p().
791 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
792 look at DECL_DECLARED_INLINE and reverse logic.
793 * print-tree.c (print_node): Likewise.
794 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
795 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
797 * tree-inline.c (inlinable_function_p): Split up in this function to
798 check for basic inlining inhibiting conditions, and new
799 limits_allow_inlining() function. Warn if inlining is impossible
800 because the inline candidate calls alloca or uses sjlj exceptions.
801 (limits_allow_inlining): this new function to check if the inlining
802 limits are satisfied. Throttle from currfn_max_inline_insns, not from
803 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
804 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
806 (tree_inlinable_function_p): Make a bool. Update call to
808 (expand_call_inline): Use limits_allow_inlining() when not in
809 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
810 instead see if the function was declared `inline'.
812 2003-08-05 Josef Zlomek <zlomekj@suse.cz>
814 * gcse.c (try_replace_reg): Fix updating of note.
816 2003-08-04 Roger Sayle <roger@eyesopen.com>
819 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
820 logic in negate_expr, i.e. we don't invert (A-B) for floating
821 point types unless flag_unsafe_math_optimizations.
823 2003-08-04 Roger Sayle <roger@eyesopen.com>
825 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
826 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
827 for floating point expressions with -ffast-math.
828 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
829 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
831 2003-08-04 Roger Sayle <roger@eyesopen.com>
833 * c-common.c (flag_noniso_default_format_attributes): Delete.
834 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
835 (c_attrs_initialized): Delete.
836 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
837 always call c_init_attributes.
838 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
839 set c_attrs_initialized when done.
840 (c_common_insert_default_attributes): Delete.
841 * c-common.h (flag_noniso_default_format_attributes): Delete.
842 (c_coomon_insert_default_attributes): Delete prototype.
843 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
844 flag_noniso_default_format_attributes.
846 * c-decl.c (c_insert_default_attributes): Delete.
847 * c-tree.h (c_insert_default_attributes): Delete prototype.
849 * attribs.c (decl_attributes): Don't call insert_default_attributes
850 langhook. Update function description comment.
851 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
852 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
853 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
854 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
856 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
859 2003-08-04 Richard Sandiford <rsandif@redhat.com>
861 * config/mips/mips.c (override_options): Disable -G on targets that
862 have no .section support.
863 (mips_select_section): Use default_select_section for such targets.
865 2003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
867 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
868 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
869 * fixinc/fixincl.x: Rebuild.
870 * fixinc/tests/base/regexp.h: New test.
872 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
874 * c-ppoutput.c (cb_line_change): Don't skip line changing while
875 parsing macro arguments in the top-level context.
877 2003-08-04 Neil Booth <neil@daikokuya.co.uk>
879 * config.in: Remove HAVE_LSTAT.
880 * configure, configure.in: Don't test for lstat.
882 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
884 * opts.c (decode_options): Do language-specific initialization for
885 the global diagnostic context.
886 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
887 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
888 (LANG_HOOKS_INITIALIZER): Adjust.
889 * langhooks.h (struct lang_hooks): Add new field
890 initialize_diagnostics.
891 * langhooks.c (lhd_initialize_diagnostics): Define.
893 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
895 * pretty-print.h: Adjust macro definitions.
896 * pretty-print.c (pp_newline): Rename to pp_base_newline.
897 (pp_character): Rename to pp_base_character.
898 (pp_string): Rename to pp_base_string.
899 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
900 (pp_newline): Likewise. Adjust.
903 2003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
905 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
906 BUILT_IN_LLABS): Move to miscellaneous section.
908 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
910 PR preprocessor/11534
911 * cppexp.c (parse_defined): Warn only if -pedantic.
913 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
915 * cppfiles.c (stack_file): Use file path.
917 2003-08-02 Roger Sayle <roger@eyesopen.com>
919 * builtin-types.def (BT_SSIZE): New primitive type.
920 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
921 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
922 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
923 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
924 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
925 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
926 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
927 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
928 few functions that define default attributes using it.
929 * c-common.c (c_common_insert_default_attributes): Do nothing.
931 * doc/extend.texi: Document these "new" builtins.
933 2003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
935 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
936 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
937 when -mieee-fp set and -shared not set.
938 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
940 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
942 * cppfiles.c (struct _cpp_file): Rename once_only_next to
943 next_file. Remove import and pragma_once, add once_only.
944 (find_file): Add new file structures to the all_files list.
945 (should_stack_file): Mark #import-ed files once-only, and
946 don't stack them if the file has already been stacked.
947 (_cp_mark_file_once_only): Simplify.
948 * cpphash.h (struct cpp_reader): Rename once_only_files
949 to all_files. Rename saw_pragma_once to seen_once_only.
950 (_cpp_mark_file_once_only): Update prototype.
951 * cpplib.c (do_pragma_once): Update.
953 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
955 * cppfiles.c (ENOTDIR): Remove.
956 (open_file_in_dir): Rename find_file_in_dir. Handle errors
957 other than ENOENT here.
958 (once_only_file_p): Rename should_stack_file.
959 (find_file, open_file_failed, read_file_guts): Report errors
961 (read_file): Move pch handling to should_stack_file.
962 (should_stack_file): Handle PCH and once-only issues, and
964 (stack_file): Don't do file reads.
966 2003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
968 * libgcov.c (gcov_exit): Cleanup and fix.
969 * profile.c (compute_value_histograms): Don't try to read profiles
970 that are not present.
972 2003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
974 * builtins.def: Categorize.
976 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
978 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
980 2003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
982 * config.gcc: Enable posix threads by default on darwin.
984 2003-08-01 Jakub Jelinek <jakub@redhat.com>
986 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
987 even if nehedges1 is 0.
989 2003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
991 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
992 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
993 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
996 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
997 * fixinc/fixincl.x: Regenerate.
998 * fixinc/tests/base/math.h: Regenerate to match test_text change.
1000 2003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1002 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
1004 2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1006 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
1007 for accesses to exc_ptr.
1009 2003-08-01 Geoffrey Keating <geoffk@apple.com>
1011 * doc/sourcebuild.texi (Front End Directory): Don't make references
1012 to libsubdir, it's not part of the interface to frontends.
1013 * doc/install.texi (Configuration): Help users read faster by saying
1014 that GCC's configure options are the standard autoconf ones.
1015 Mention --libdir. Update the default rules for finding the
1016 assembler. Don't use libsubdir since we haven't said what it means.
1017 (Specific): In the Solaris 7 notes, update the place to put the
1019 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
1020 * doc/cpp.texi (Search Path): Actually, the search path
1021 depends on libdir, which can relocate with cpp.
1022 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
1023 now a private interface between the Makefile and the driver.
1025 2003-08-01 Richard Henderson <rth@redhat.com>
1027 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
1029 * varasm.c (lookup_constant_def): New function.
1030 * rtl.h (lookup_constant_def): Declare it.
1031 * dwarf2out.c (loc_descriptor_from_tree): Use it.
1032 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
1034 2003-08-01 Zack Weinberg <zack@codesourcery.com>
1036 * c-decl.c (gettags, pushdecl_function_level): Delete.
1037 (last_function_parm_vars): Rename last_function_parm_others.
1038 (current_function_parm_vars): Rename current_function_parm_others.
1039 (struct c_scope): Rewrite comment explaining this data structure.
1040 Add names_last, blocks_last, parms_last fields. Rename
1041 incomplete_list to incomplete.
1042 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
1043 (poplevel): Ignore second argument. No need to nreverse
1044 anything. Restructure such that each list is processed
1045 exactly once. Use 'const location_t *locus' syntactic sugar
1046 variable where useful. Issue unused variable warnings
1047 ourselves, do not rely on function.c.
1048 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
1049 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
1050 (implicitly_declare): decl cannot be error_mark_node.
1051 (undeclared_variable): Manipulate scope structure directly.
1052 (c_make_fname_decl): Likewise.
1053 (getdecls, c_init_decl_processing): Fix comment.
1054 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
1055 for 'last' variable.
1056 (grokparms): No need to nreverse parms list.
1057 (store_parm_decls_newstyle): Set up the parms_last and
1058 names_last fields of the new scope too.
1059 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
1060 on parms to begin with; check this under ENABLE_CHECKING. Set
1062 (check_for_loop_decls): Refer directly to current_scope->tags.
1063 Use consistent quote style in diagnostics.
1064 (c_write_global_declarations): The names list is not backward.
1066 * c-common.h: Don't prototype gettags.
1067 * c-parse.in: Call poplevel with second argument 0 always.
1069 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1071 * builtins.def: Resort builtins.
1073 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1075 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
1076 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
1077 Prepend "__builtin_" onto NAME with string concatenation. Remove
1078 explicit "__builtin_" from each macro call.
1080 Reformat entire file.
1082 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1084 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
1085 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
1087 2003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
1089 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
1090 CCL1, or CCL2 modes with floating point operations.
1092 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
1093 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
1094 "*subdf3_cconly"): New insns.
1095 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
1097 2003-08-01 Neil Booth <neil@daikokuya.co.uk>
1099 * Makefile.in: Refine dependencies.
1100 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
1101 * c.opt: Update help for -Wimport.
1102 * cppfiles.c: Include hashtab.h. Update comments.
1103 (stack_file): Read the file before updating dependencies.
1104 (once_only_file_p): Be smarter about marking once-only files.
1105 (_cpp_mark_file_once_only): Correct the check for existence on
1107 (open_file_failed): Use name not path, which is NULL.
1108 * cpphash.h: Don't include hashtab.h.
1109 (struct _cpp_file): Remove.
1110 (struct cpp_reader): Update.
1111 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
1112 * cpplib.h (struct cpp_options): Remove warn_import.
1113 (cpp_simplify_path): Remove.
1115 2003-08-01 Nathan Sidwell <nathan@codesourcery.com>
1118 * doc/extend.texi (Statement Expressions): Document C++ semantics.
1120 2003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1122 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
1124 2003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1126 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
1128 * builtins.def: Likewise.
1130 2003-07-31 Jason Merrill <jason@redhat.com>
1132 * Makefile.in (bubblestrap): Don't require a previous full
1135 * expr.c (mostly_zeros_p): No longer static.
1136 * tree.h: Declare it.
1137 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
1138 unless we need to do substitutions.
1140 2003-07-31 Roger Sayle <roger@eyesopen.com>
1142 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
1143 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
1144 as pow(x,2.0) when the latter will be expanded back into x*x.
1145 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
1146 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
1147 pow can never set errno when used with an integer exponent.
1148 Always use expand_powi when exponent is -1, 0, 1 or 2.
1149 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
1150 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
1151 the pow forms of these expressions.
1153 2003-07-31 Geoffrey Keating <geoffk@apple.com>
1155 * Makefile.in (libexecdir): New.
1156 (libsubdir): Use gcc instead of gcc-lib.
1157 (libexecsubdir): New.
1158 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
1159 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
1161 (installdirs): Make libexecsubdir.
1162 (install-common): Put executables in libexecsubdir.
1163 (itoolsdir): Use libexecsubdir.
1164 (itoolsdatadir): New.
1165 (install-mkheaders): Separate data files and executables.
1166 (install-collect2): Put executables in libexecsubdir.
1167 (uninstall): Remove libexecsubdir.
1168 * mkheaders.in: Update for new arrangement of files.
1170 (libexecsubdir): New.
1171 (itoolsdir): Use libexecsubdir.
1172 (itoolsdatadir): New.
1173 * gcc.c (gcc_libexec_prefix): New.
1174 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
1175 (standard_exec_prefix_1): Use libexec.
1176 (standard_exec_prefix_2): New.
1177 (standard_libexec_prefix): New.
1178 (process_command): Update for new arrangement of files. Compute
1179 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
1181 2003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
1183 * inclhack.def (stdio_va_list): Avoid bogus replacement which
1184 triggers on Interix.
1185 * fixincl.x: Regenerate.
1187 2003-07-31 Jakub Jelinek <jakub@redhat.com>
1189 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
1190 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
1192 2003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1194 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
1196 2003-07-31 Per Bothner <pbothner@apple.com>
1198 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
1199 (add_input_filename): New function.
1200 (handle_options): Call add_input_filename directly instead of
1202 * opts.h (in_fnames, num_in_fnames): Moved here.
1203 (add_input_filename): Declare.
1204 * c-decl.c: Need to #include opts.h.
1205 * Makefile.in (c-decl.o): Also depends on opts.h.
1206 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
1207 (c_common_handle_filename): Replaced by add_input_filename.
1208 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
1210 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
1211 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
1212 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
1213 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
1215 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1217 * combine.c (try_combine): Set JUMP_LABEL for newly created
1220 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1222 * fold-const.c (fold): Fold some comparisons of bit operations.
1224 Thu Jul 31 19:49:53 CEST 2003 Jan Hubicka <jh@suse.cz>
1226 * cgraph.c (create_edge): Fix typo.
1227 * i386.c (pic_symbolic_operand): Reorder tests.
1229 2003-07-31 Nathan Sidwell <nathan@codesourcery.com>
1231 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
1233 (Gcov Data Files): Update.
1235 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1237 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
1240 * gthr-posix.c: New file.
1241 * gthr-posix.h: Define _REENTRANT if missing.
1242 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
1244 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
1246 * config/alpha/t-osf-pthread: New file.
1248 * fixinc/inclhack.def (alpha_pthread): New fix.
1249 * fixinc/fixincl.x: Regenerate.
1250 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
1252 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
1254 Fixes PR bootstrap/9330.
1256 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1258 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
1261 * configure: Regenerate.
1263 2003-07-31 Vladimir Makarov <vmakarov@redhat.com>
1265 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
1268 2003-07-30 Roger Sayle <roger@eyesopen.com>
1270 * builtins.def: Alphabetize.
1272 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
1274 * doc/c-tree.texi: Normalize spellings of "lowercase" and
1276 * doc/cpp.texi: Likewise.
1277 * doc/md.texi: Likewise.
1278 * doc/rtl.texi: Likewise.
1279 * doc/tm.texi: Likewise.
1281 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
1283 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
1284 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
1287 2003-07-30 Chris Demetriou <cgd@broadcom.com>
1289 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
1290 macros before defining them.
1292 2003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
1294 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
1295 UNSPECV_BLOCKAGE): New constants.
1296 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
1297 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
1298 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
1299 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
1301 (all insns and expanders): Write output control string as brace block
1302 where appropriate. Remove \-escapes for doublequote characters.
1304 Thu Jul 31 01:04:19 CEST 2003 Jan Hubicka <jh@suse.cz>
1306 * gcse.c (insert_store): Fix typo in previous patch.
1308 2003-07-30 Neil Booth <neil@daikokuya.co.uk>
1310 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
1312 2003-07-30 Andi Kleen <ak@muc.de>
1314 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
1316 2003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1318 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
1319 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
1320 GCOV_N_VALUE_COUNTERS): New.
1321 * profile.c (compute_value_histograms): New static function.
1322 (branch_prob): Read back the value histograms.
1323 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
1324 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
1325 * value-prof.c: Add comment on reading the profile.
1326 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
1327 * doc/invoke.texi (-fprofile-values): Document behavior with
1328 -fbranch-probabilities.
1330 2003-07-30 David Edelsohn <edelsohn@gnu.org>
1332 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
1334 2003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
1336 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
1339 Wed Jul 30 19:12:10 CEST 2003 Jan Hubicka <jh@suse.cz>
1341 * gcse.c (insert_store): Ignore fake edges.
1343 * c-common.c (flag_vtable_gc): Kill.
1344 * c-common.g (flag_vtable_gc): Kill.
1345 * c-opts (c_common_handle_option): Kill.
1346 * c.opt (fvtable-gc): Kill.
1347 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
1348 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
1349 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
1351 * invoke.texi (-ftable-gc): Kill documentation.
1353 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
1354 just because function body is missing.
1356 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
1358 2003-07-30 Ranjit Mathew <rmathew@hotmail.com>
1360 * unwind-sjlj.c: Fix typo in file description.
1362 2003-07-30 Alan Modra <amodra@bigpond.net.au>
1364 * calls.c (load_register_parameters): When shifting reg sized values
1365 to the msb, move the value to a reg first.
1367 2003-07-29 Geoffrey Keating <geoffk@apple.com>
1369 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
1370 * line-map.h (linemap_add): Update comments.
1371 * line-map.c (linemap_add): Update comments, interpret zero-length
1372 filename as "<stdin>".
1374 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
1376 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
1378 2003-07-29 Zack Weinberg <zack@codesourcery.com>
1380 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
1381 New static variables.
1382 (struct c_scope): Add parms and warned_forward_parm_decls
1383 fields; remove parm_order.
1384 (storedecls, storetags): Delete.
1385 (poplevel): Also clear bindings on the parms chain.
1386 (pushdecl): Handle forward declarations of parameters, and
1387 chain PARM_DECLs on the parms list, not the names list.
1388 (lookup_name_current_level): Check for PARM_DECLs on the parms
1390 (push_parm_decl): Don't update parm_order.
1391 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
1392 warning, only once per parameter list, and set TREE_ASM_WRITTEN
1393 on the decls here. Then move the forward decls to the names list.
1394 (grokparms): Set last_function_parm_vars.
1395 (get_parm_info): Don't use gettags or getdecls. No need to
1396 extract non-parms from the parms list, or reorganize the parms
1397 list. Feed nonparms back in the TREE_TYPE of the list node
1398 returned. Issue only one error per parameter list for "void"
1399 appearing more than once in said parameter list. Collapse
1400 parmlist_tags_warning into this function to avoid double scan
1402 (start_function): Set current_function_parm_vars.
1403 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
1404 directly. Get non-parms from current_function_parm_vars; no
1405 need to extract them from the parms chain. Properly bind tags
1407 (store_parm_decls_oldstyle): No need to extract non-parameters
1408 from the parms chain, nor to store them back afterward. Move
1409 declaration to top of function, restructure code reordering
1411 (store_parm_decls): No need to save and restore warn_shadow.
1412 * c-parse.in: Don't call parmlist_tags_warning nor
1413 clear_parm_order. Call mark_forward_parm_decls when forward
1414 parm decls are encountered.
1415 * c-tree.h: Prototype mark_forward_parm_decls; not
1416 clear_parm_order or parmlist_tags_warning.
1418 2003-07-29 Geoffrey Keating <geoffk@apple.com>
1420 * c-common.c (allow_pch): Remove.
1421 * c-common.h (allow_pch): Remove.
1422 (c_common_no_more_pch): Declare.
1423 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
1424 * c-pch.c: Include hosthooks.h.
1425 (c_common_valid_pch): Don't check allow_pch.
1426 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
1427 (c_common_no_more_pch): New.
1428 * ggc-common.c: Include hosthooks.h.
1429 (gt_pch_save): Call gt_pch_get_address.
1430 (gt_pch_restore): Call gt_pch_use_address.
1431 * hooks.c (hook_voidp_size_t_null): New.
1432 (hook_bool_voidp_size_t_false): New.
1433 * hooks.h (hook_voidp_size_t_null): New.
1434 (hook_bool_voidp_size_t_false): New.
1435 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
1436 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
1437 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
1438 HOST_HOOKS_GT_PCH_USE_ADDRESS.
1439 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
1441 * doc/hostconfig.texi (Host Common): Document
1442 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
1443 * Makefile.in (c-pch.o): Depend on hosthooks.h.
1444 (ggc-common.o): Likewise.
1446 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
1447 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
1448 (pch_address_space): New.
1449 (darwin_rs6000_gt_pch_get_address): New.
1450 (darwin_rs6000_gt_pch_use_address): New.
1452 2003-07-29 Neil Booth <neil@daikokuya.co.uk>
1454 PR preprocessor/11569
1455 PR preprocessor/11649
1456 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
1457 * cppfiles.c: Completely rewritten.
1458 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
1459 struct cpp_path is now struct cpp_dir.
1460 (remove_duplicates): Don't simplify path names.
1461 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
1463 * cpphash.h: Include hashtab.h.
1464 (_cpp_file): Declare.
1465 (struct cpp_buffer): struct include_file is now struct _cpp_file,
1466 and struct cpp_path is now struct cpp_dir. Rename members.
1467 (struct cpp_reader): Similarly. New members once_only_files,
1468 file_hash, file_hash_entries, quote_ignores_source_dir,
1469 no_search_path, saw_pragma_once. Remove all_include_files and
1470 max_include_len. Make some members bool.
1471 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
1472 (_cpp_stack_file): Renamed from _cpp_read_file.
1473 (_cpp_stack_include): Renamed from _cpp_execute_include.
1474 (_cpp_init_files): Renamed from _cpp_init_includes.
1475 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
1476 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
1477 (cpp_read_next_file): Rename and move to cppfiles.c.
1478 (cpp_read_main_file): Update.
1479 * cpplib.c (run_directive): Update for renamed members.
1480 (do_include_common, _cpp_pop_buffer): Update.
1481 (do_import): Undeprecate #import.
1482 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
1483 * cpplib.h: Remove file_name_map_list.
1484 (cpp_options): Remove map_list.
1485 (cpp_dir): Rename from cpp_path. New datatype for name_map.
1486 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
1488 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
1490 * Makefile.in: Make stamp-objdir safe for parallel builds.
1492 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
1494 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
1495 (info): Depend on stmp-docobjdir.
1497 2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1499 * configure: Regenerate.
1501 Tue Jul 29 19:24:49 CEST 2003 Jan Hubicka <jh@suse.cz>
1504 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
1505 in !unit-at-a-time mode.
1507 2003-07-28 Geoffrey Keating <geoffk@apple.com>
1509 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
1512 2003-07-28 Mark Mitchell <mark@codesourcery.com>
1515 * c-common.c (shorten_compare): Take into account differences
1516 between C and C++ representation for enumeration types.
1517 * tree.h (set_min_and_max_values_for_integral_type): Declare.
1518 * stor-layout.c (set_min_and_max_values_for_integral_type): New
1519 function, broken out from ...
1520 (fixup_signed_type): ... here and ...
1521 (fixup_unsigned_type): ... here.
1523 2003-07-28 Zack Weinberg <zack@codesourcery.com>
1525 * c-decl.c: Update commentary, adjust blank lines throughout.
1526 (struct c_scope): Fix indentation. Reorder members so
1527 outer-context pointers come first, booleans last.
1528 (duplicate_decls, define_label): Use a 'locus' variable for
1529 diagnostic locations in a few more places.
1530 (warn_if_shadowing): Un-split a conditional that fits on one line.
1531 (c_init_decl_processing): No need to clear current_scope and
1532 current_function_scope.
1533 (start_decl): Merge if/else if statements with same action.
1534 (push_parm_decl): Rename old_immediate_size_expand to use
1535 save_foo convention; save/restore around entire function.
1536 (grokdeclarator): Remove unnecessary braces.
1538 2003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
1539 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
1541 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
1542 when warn_declaration_after_statement. Call pedwarn_c90, not
1543 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
1544 * c-common.c (warn_declaration_after_statement): Define.
1545 * c-common.h (warn_declaration_after_statement): Declare.
1546 * c.opt (Wdeclaration-after-statement): New.
1547 * c-errors.c (pedwarn_c90): New function.
1548 * c-opts.c (c_common_handle_option) <case
1549 OPT_Wdeclaration_after_statement>: New.
1550 * c-tree.h (pedwarn_c90): Declare.
1551 * doc/invoke.texi (Option Summary): Document
1552 -Wdeclaration-after-statement.
1553 (Warning Options): Ditto.
1555 Mon Jul 28 20:13:06 CEST 2003 Jan Hubicka <jh@suse.cz>
1557 * i386.md (memory attribute) Avoid accessing uninitialized memory
1558 for ishift1 type instructions.
1560 2003-07-28 Jakub Jelinek <jakub@redhat.com>
1562 * configure.in (--enable-checking): Add fold category.
1563 (ENABLE_FOLD_CHECKING): Define if requested.
1564 * configure: Rebuilt.
1565 * config.in: Rebuilt.
1566 * doc/install.texi: Document it.
1567 * fold-const.c: Include md5.h.
1568 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
1569 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
1570 print_fold_checksum): New functions.
1572 * fold-const.c (fold): Never modify argument passed to fold, instead
1573 change a copy and return it.
1574 * convert.c (convert_to_integer): Likewise.
1576 2003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
1578 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
1579 cleanup of junk after #else and #endif directives. Collapse repeated
1580 clauses into for statment.
1582 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
1584 2003-07-27 Zack Weinberg <zack@codesourcery.com>
1586 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
1587 (keep_next_if_subblocks): Rename next_is_function_body.
1588 (pushlevel): Adjust commentary. Always set ->keep on the
1589 outermost level of a function. Don't set ->keep_if_subblocks.
1590 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
1591 (store_parm_decls): Adjust to match.
1592 (finish_function): Adjust to match.
1593 Call poplevel with all three arguments zero.
1595 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
1596 New functions split out of store_parm_decls.
1597 Avoid unnecessary work. Use local variables consistently.
1598 (store_parm_decls): Likewise.
1600 (finish_function): No need to set functionbody flag on call to
1602 (struct language_function): Remove scope field.
1603 (c_push_function_context, c_pop_function_context): No need to
1604 save and restore current_scope.
1606 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
1608 * doc/extend.texi (Deprecated Features): Implicit typename is
1609 gone. Default args on types is going.
1611 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
1613 * Makefile.in (ifcvt.o): Depend on target.h
1614 * ifcvt.c (target.h): Include.
1615 (if_convert): Don't call mark_loop_exit_edges if we can't
1618 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1620 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
1622 2003-07-26 Richard Henderson <rth@redhat.com>
1625 * cse.c (count_reg_usage): Handle asm_operands properly.
1627 2003-07-26 Roger Sayle <roger@eyesopen.com>
1629 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
1630 (DEF_EXT_FALLBACK_BUILTIN): Delete.
1631 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
1632 the regular DEF_EXT_LIB_BUILTIN macro.
1633 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
1634 the regular DEF_LIB_BUILTIN macro.
1635 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
1636 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
1637 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
1638 DEF_EXT_LIB_BUILTIN macro.
1640 * c-decl.c (duplicate_decls): Remove code to handle builtin
1641 functions prototyped without an argument list.
1643 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
1645 * config/i386/winnt.c: Revert 2003-07-08 change.
1646 (i386_pe_section_type_flags): Remove error_with_decl here too.
1648 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
1650 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
1651 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
1652 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
1653 (v850_handle_data_area_attribute): Likewise.
1655 2003-07-26 Geoffrey Keating <geoffk@apple.com>
1657 * varasm.c (output_constant_def_contents): Use
1658 ASM_DECLARE_CONSTANT_NAME if defined.
1659 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
1660 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
1661 objects get at least one byte to prevent assembler problems.
1662 (ASM_DECLARE_CONSTANT_NAME): New.
1664 * Makefile.in (libbackend.o): Remove options_.h.
1665 (mostlyclean): Likewise.
1667 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
1668 insert a label at the end of an function under Mach-O.
1670 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
1672 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
1674 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
1676 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
1678 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
1680 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1682 * doc/passes.texi (Passes): Mention pretty-printing and
1685 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
1687 * doc/extend.texi (Function Attributes): GNU C++ does now allow
1688 unused parameter decls.
1689 (Attribute Syntax): GNU C++ does not allow label attributes to be
1692 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1694 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
1695 (objc_declare_class): Likewise.
1696 (error_with_ivar): Likewise.
1697 (start_class): Likewise.
1698 (warn_with_method): Likewise.
1700 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1702 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
1704 * calls.c (try_to_integrate): Don't use xxx_with_decl.
1705 (expand_call): Likewise.
1706 * dwarfout.c (output_reg_number): Likewise.
1707 * expr.c (expand_expr): Likewise.
1708 * function.c (assign_temp): Likewise.
1709 (uninitialized_vars_warning): Likewise.
1710 (setjmp_args_warning): Likewise.
1711 (expand_function_end): Likewise.
1712 * stmt.c (fixup_gotos): Likewise.
1713 (warn_about_unused_variables): Likewise.
1714 (expand_end_bindings): Likewise.
1715 * stor-layout.c (layout_decl): Likewise.
1716 (place_field): Likewise.
1717 * toplev.c (check_global_declarations): Likewise.
1718 (rest_of_handle_inlining): Likewise.
1719 (default_tree_printer): New function.
1720 (general_init): Initialize diagnostic machinery before routing
1721 signals to the ICE machinery. Set default tree printer.
1722 * toplev.h (pedwarn_with_decl): Remove declaration.
1723 (warning_with_decl): Likewise.
1724 (error_with_decl): Likewise.
1725 (pedwarn): Remove attribute for the time being.
1726 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
1727 * varasm.c (named_section): Likewise.
1728 (make_decl_rtl): Likewise.
1729 (assemble_variable): Likewise.
1730 (merge_weak): Likewise.
1731 (declare_weak): Likewise.
1733 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
1734 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
1735 (format_with_decl): Remove.
1736 (diagnostic_for_decl): Likewise.
1737 (pedwarn_with_decl): Likewise.
1738 (warning_with_decl): Likewise.
1739 (error_with_decl): Likewise.
1740 (diagnostic_initialize): Adjust.
1741 (diagnostic_count_diagnostic): Likewise.
1742 (announce_function): Likewise.
1743 (lhd_print_error_function): Likewise.
1744 (diagnostic_report_current_module): Likewise.
1745 (default_diagnostic_starter): Likewise.
1746 (diagnostic_report_diagnostic): Likewise.
1747 (default_diagnostic_finalizer): Likewise.
1748 (verbatim): Likewise.
1750 (warning): Likewise.
1751 * opts.c (common_handle_option): Likewise.
1752 * pretty-print.c: New file.
1753 * c-pretty-print.h (pp_base): Override.
1754 * c-pretty-print.c: Adjust use of macros throughout.
1755 (pp_buffer): New macro.
1756 (pp_newline): Likewise.
1757 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
1758 * Makefile.in (DIAGNOSTIC_H): New variable.
1759 (c-errors.o): Use it.
1760 (c-objc-common.o): Likewise.
1761 (c-common.o): Likewise.
1762 (c-opts.o): Likewise.
1763 (c-format.o): Likewise.
1764 (diagnostic.o): Likewise.
1766 (toplev.o): Likewise.
1767 (rtl-error.o): Likewise.
1768 (dwarf2out.o): Likewise.
1770 (pretty-print.o): New rule.
1772 2003-07-24 Roger Sayle <roger@eyesopen.com>
1774 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
1775 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
1776 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
1777 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
1778 (DEF_FRONT_END_LIB_BUILTIN): Delete.
1779 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
1780 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
1782 * builtins.c (build_string_literal): New function to construct
1783 a char* pointer to a string literal.
1784 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
1785 "rtx target" to be consistent with other expand_builtin_* functions.
1786 Change 3rd argument from "int unlocked" to "bool unlocked".
1787 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
1788 c-common.c to avoid front-end dependencies. Optimize printf("")
1789 as a no-op when the result isn't required. Handle embedded NULs
1791 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
1792 from c-common.c to avoid front-end dependencies. Likewise, optimize
1793 fprintf(fp,"") as a no-op when the result isn't required, evaluating
1794 fp for side-effects. Handle embedded NULs in format string.
1795 (expand_builtin_sprintf): Fix typo.
1796 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
1797 optimizing. Adjust calls of expand_builtin_fputs to match the API
1798 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
1799 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
1800 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
1802 * c-common.c (is_valid_printf_arglist): Delete.
1803 (c_expand_builtin): Delete.
1804 (c_expand_builtin_printf): Moved to builtins.c. Delete.
1805 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
1806 (c_expand_expr): No longer treat CALL_EXPRs specially.
1807 (CALLED_AS_BUILT_IN): Delete.
1809 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1811 PR optimization/11631
1812 * gcse.c (store_motion): Connect infinite loops to exit.
1814 2003-07-24 Jason Merrill <jason@redhat.com>
1816 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
1817 (boolean_true_node, boolean_false_node): Likewise.
1818 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
1819 * tree.c (build_common_tree_nodes): Init boolean_type_node.
1820 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
1821 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
1822 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
1823 (truthvalue_true_node): Renamed from boolean_true_node.
1824 (truthvalue_false_node): Renamed from boolean_false_node.
1825 * c-decl.c: Just set truthvalue_* to integer_*.
1826 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
1828 2003-07-24 Roger Sayle <roger@eyesopen.com>
1830 * c-decl.c (match_builtin_function_types): New subroutine of
1831 duplicate_decls to test whether a redeclaration of a builtin
1832 function is suitably close, i.e. the return type and all of
1833 the argument types have the same modes as the builtin expects.
1834 (duplicate_decls): Fuzzy type matching for builtin functions
1835 moved to match_builtin_function_types.
1837 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1839 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
1842 2003-07-24 Zack Weinberg <zack@codesourcery.com>
1844 * c-decl.c: Search-and-replace change 'binding level' to
1845 'scope' in commentary.
1846 (struct binding_level): Now struct c_scope.
1847 (current_binding_level): Now current_scope.
1848 (free_binding_level): Now scope_freelist.
1849 (current_function_level): Now current_function_scope.
1850 (global_binding_level): Now global_scope.
1851 (make_binding_level): Now make_scope.
1852 (pop_binding_level): Now pop_scope.
1854 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1856 * configure.in (libgcc_visibility): Add missing whitespace.
1858 2003-07-24 Richard Henderson <rth@redhat.com>
1860 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
1861 __gcc_personality_v0.
1863 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1865 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
1867 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
1869 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
1870 documentation missed from my 2003-07-09 patch.
1872 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
1874 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
1876 * configure: Rebuild.
1878 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
1881 * c-typeck.c (type_lists_compatible_p): Do not compare
1882 arguments if one of them is an error_mark_node
1884 2003-07-24 Alan Modra <amodra@bigpond.net.au>
1886 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
1887 if current_function_calls_eh_return.
1889 2003-07-23 Mark Mitchell <mark@codesourcery.com>
1891 * doc/c-tree.texi (OFFSET_TYPE): Update description.
1893 2003-07-23 Bob Wilson <bob.wilson@acm.org>
1895 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
1896 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
1897 __umodsi3, __modsi3): Increase frame size to 32.
1899 2003-07-23 Geoffrey Keating <geoffk@apple.com>
1901 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
1904 2003-07-23 Mark Mitchell <mark@codesourcery.com>
1906 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
1908 PR optimization/10679
1909 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
1911 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1913 PR target/11607 and PR target/11516
1914 * pa.md (extzv, extv, insv): Revert latter half of last patch.
1916 2003-07-22 Mark Mitchell <mark@codesourcery.com>
1918 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
1919 * varasam.c (output_constant): Likewise.
1921 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
1923 * alias.c: Fix comment formatting.
1924 * c-common.c: Likewise.
1925 * c-decl.c: Likewise.
1926 * c-opts.c: Likewise.
1927 * combine.c: Likewise.
1928 * cpplib.c: Likewise.
1929 * diagnostic.c: Likewise.
1930 * dojump.c: Likewise.
1931 * final.c: Likewise.
1932 * fold-const.c: Likewise.
1935 * ggc-page.c: Likewise.
1938 * mips-tfile.c: Likewise.
1939 * recog.c: Likewise.
1940 * regclass.c: Likewise.
1941 * regmove.c: Likewise.
1945 2003-07-22 Per Bothner <pbothner@apple.com>
1947 * line-map.c (add_line_map): Handle invalid LEAVE request.
1948 Fixes PR preprocessor/11361.
1950 2003-07-22 Per Bothner <pbothner@apple.com>
1952 * diagnostic.c.(diagnostic_report_current_module): Update to match
1953 2003-06-05 changes to push_srcloc and pop_srcloc.
1955 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
1957 * doc/trouble.texi: Better document two-stage name lookup.
1959 2003-07-22 Eric Christopher <echristo@redhat.com>
1961 * config/s390.c (s390_valid_pointer_mode): New.
1962 (TARGET_VALID_POINTER_MODE): Use.
1963 (s390_emit_prologue): Add tpf profiling hooks.
1964 (s390_emit_epilogue): Ditto.
1965 * config/s390.h (MASK_TPF): New.
1967 (POINTERS_EXTEND_UNSIGNED): Define.
1968 * config/s390.md (ptr_extend): New pattern.
1970 2003-07-22 Zack Weinberg <zack@codesourcery.com>
1972 * hashtable.c (approx_sqrt): Make static.
1973 * hashtable.h: Don't prototype approx_sqrt.
1974 * line-map.c (init_line_maps): Rename linemap_init.
1975 (free_line_maps): Rename linemap_free.
1976 (add_line_map): Rename linemap_add.
1977 (lookup_line): Rename linemap_lookup.
1978 (print_containing_files): Rename linemap_print_containing_files.
1979 * linemap.h: Update to match.
1981 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
1982 linemap routines to use new names.
1984 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
1986 * c-common.c (handle_packed_attribute): Don't pack a struct via a
1987 typedef. Propagate packedness from a main variant.
1989 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
1991 * Makefile.in (install-common): Add dependency on installdirs.
1993 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
1995 * c-common.c (c_common_type_for_mode): Return integer types for
1998 2003-07-22 Geoffrey Keating <geoffk@apple.com>
2000 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
2001 (finish_decl): Call maybe_apply_pragma_weak here.
2002 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
2003 TREE_PUBLIC and TREE_STATIC are decided.
2004 (start_function): Move call to maybe_apply_pragma_weak. Check that
2005 DECL_ASSEMBLER_NAME isn't set too early.
2007 * cpplex.c (_cpp_process_line_notes): Mention option name in
2010 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
2012 * combine.c (if_then_else_cond): Simplify the comparison of
2013 rtx against -1, 0, and 1.
2014 * loop.c (check_dbra_loop): Likewise.
2015 * optabs.c (emit_conditional_move): Likewise.
2016 (emit_conditional_add): Likewise.
2017 * config/i386/i386.md (*movsi_or): Likewise.
2018 (*movdi_or_rex6): Likewise.
2020 Tue Jul 22 00:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
2022 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
2024 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
2026 * cppfiles.c (open_file_pch): Don't put unused entries in the
2027 splay tree. Remove dead code.
2029 2003-07-21 Geoffrey Keating <geoffk@apple.com>
2031 * c-common.h (num_in_fnames): Declare.
2032 (c_static_assembler_name): Move from here...
2033 * c-tree.h (c_static_assembler_name): ... to here.
2034 * c-opts.c: Don't include langhooks-def.h.
2035 (c_static_assembler_name): Move to c-decl.c.
2036 (num_in_fnames): Make externally visible.
2037 * c-decl.c: Include langhooks-def.h.
2038 (c_static_assembler_name): Move from c-opts.c.
2039 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
2040 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
2042 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
2043 when it's not needed.
2045 2003-07-21 Jakub Jelinek <jakub@redhat.com>
2047 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
2048 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
2049 (rs6000_emit_prologue): Save FPRs inline if set.
2051 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
2053 * config/ia64/ia64.md (prefetch): Support predicate.
2055 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
2057 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
2058 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
2061 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2063 PR optimization/11536
2064 * unroll.c (loop_iterations): Do not replace a register holding
2065 the final value by its equivalent before the loop if it is not
2068 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
2070 * doc/extend.texi: Fixes to spelling, grammar, and diction.
2072 2003-07-21 Ben Elliston <bje@wasabisystems.com>
2074 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
2075 (V850 Options): Spelling fixes.
2077 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
2079 * doc/invoke.texi: Fixes to style, grammar and diction.
2081 2003-07-20 Roger Sayle <roger@eyesopen.com>
2083 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
2084 * system.h (SMALL_STACK): Poison obsolete target macro.
2085 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
2087 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
2089 * configure.in: Cache the results of testing for cmp's capabilities.
2090 * configure: Regenerate.
2092 2003-07-20 Mark Mitchell <mark@codesourcery.com>
2095 * dwarf2out.c (gen_enumeration_type_die): Remember that
2096 enumerators can be unsigned.
2098 2003-07-19 Zack Weinberg <zack@codesourcery.com>
2100 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
2101 (push_label_level, pop_label_level): Kill.
2102 (struct binding_level): Rename level_chain to outer.
2103 Add outer_function field. Change parm_flag, function_body,
2104 keep, keep_if_subblocks to 1-bit bitfields of type bool.
2105 (current_function_level): New variable.
2106 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
2107 (keep_next_level, declare_parm_level, warn_if_shadowing):
2109 (struct language_function): Kill named_labels, shadowed_labels fields.
2110 (c_init_decl_processing, start_function, c_push__function_context)
2111 (c_pop_function_context): No need to muck with named_labels nor
2114 (make_binding_level): No need to clear the structure here.
2115 (pop_binding_level): Always operate on current_binding_level.
2116 Update current_function_level if necessary.
2117 (pushlevel): Don't clear named_labels. Update current_function_level
2118 if necessary. Use "true" and "false" where appropriate.
2119 (poplevel): Diagnose labels defined but not used, or vice
2120 versa, and clear out label-meanings leaving scope, while
2121 walking down the decls list, for all binding levels.
2122 Handle LABEL_DECLs appearing in the shadowed list.
2123 pop_binding_level takes no arguments.
2124 (pushdecl_function_level): Use current_function_level.
2126 (make_label, bind_label): New static functions.
2127 (declare_label): New exported function.
2128 (lookup_label, define_label): Rewritten for new data structure.
2129 (shadow_label): Kill.
2131 * c-tree.h: Prototype declare_label; don't prototype
2132 push_label_level, pop_label_level, nor shadow_label.
2133 * c-parse.in: Remove all calls to push_label_level and
2134 pop_label_level. Use declare_label for __label__ decls.
2136 * doc/extend.texi: Clarify that __label__ can be used to
2137 declare labels with local scope in any nested block, not
2138 just statement expressions. Cross-reference nested functions
2139 section from local labels section.
2141 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2143 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
2145 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
2147 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
2149 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2151 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
2152 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
2154 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
2156 * config/s390/s390.c (legitimize_pic_address): Access local symbols
2157 relative to the GOT instead of relative to the literal pool base.
2158 (s390_output_symbolic_const): Handle new GOT-relative accesses.
2159 * config/s390/s390.md ("call"): Access local functions and PLT stubs
2160 relative to the GOT instead of relative to the literal pool base.
2161 ("call_value"): Likewise.
2162 ("call_value_tls"): Likewise.
2164 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
2165 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
2166 (s390_chunkify_finish): Likewise.
2167 (s390_chunkify_cancel): Likewise.
2168 (s390_reorg): Adapt caller.
2169 (find_base_register_in_addr,
2170 find_base_register_ref, replace_base_register_ref): Delete.
2171 (find_ltrel_base, replace_ltrel_base): New functions.
2172 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
2173 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
2174 base vs. index register usage.
2175 (struct constant_pool): Remove 'anchor'.
2176 (s390_add_anchor): Delete.
2177 (s390_dump_pool): Remove anchor handling.
2178 * config/s390/s390.md ("reload_anchor"): Remove.
2180 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
2181 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
2182 (s390_emit_prologue): Use it.
2183 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
2184 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
2185 hard-code register 14.
2186 * config/s390/s390-protos.h (s390_load_got): Declare.
2188 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
2189 Support TImode constants.
2190 * config/s390/s390.md ("consttable_ti"): New.
2191 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
2193 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
2194 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
2195 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
2196 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
2197 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
2198 New symbolic constants.
2199 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
2200 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
2201 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
2202 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
2203 symbolic UNSPEC values.
2204 * config/s390/s390.c (larl_operand, s390_short_displacement,
2205 bras_sym_operand, s390_cannot_force_const_mem,
2206 s390_delegitimize_address, s390_decompose_address,
2207 legitimize_pic_address, s390_output_symbolic_const,
2208 s390_function_profiler): Use symbolic UNSPEC values.
2210 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2212 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
2213 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
2214 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
2215 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
2216 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
2217 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
2218 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
2219 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
2220 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
2221 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
2222 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
2223 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
2224 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
2225 postreload.c prefix.c print-tree.c protoize.c ra-build.c
2226 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
2227 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
2228 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
2229 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
2230 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
2231 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
2234 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2236 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
2237 * toplev.h (warning): Remove attribute.
2239 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2241 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
2242 (pop_label_level): Likewise.
2243 (duplicate_decls): Likewise.
2244 (implicitly_declare): Likewise.
2245 (shadow_label): Likewise.
2246 (start_decl): Likewise.
2247 (finish_decl): Likewise.
2248 (grokdeclarator): Likewise.
2249 (get_parm_info): Likewise.
2250 (detect_field_duplicates): Likewise.
2251 (finish_struct): Likewise.
2252 (start_function): Likewise.
2253 (store_parm_decls): Likewise.
2254 (finish_function): Likewise.
2255 (c_expand_body_1): Likewise.
2256 (check_for_loop_decls): Likewise.
2257 (merge_translation_unit_decls): Likewise.
2259 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
2261 * common.opt: Document --param.
2262 * opts.c (columns, undocumented_msg): New.
2263 (print_help): Get number of columns from environment. Print
2264 --param help. Tweak newline handling.
2265 (print_param_help): New.
2266 (print_filtered_help): Better handling of duplicates. Complain
2267 about undocumented switches.
2268 (print_switch): New.
2269 (wrap_help): Improve wrapping, use COLUMNS.
2270 * opts.sh: Ignore comments in records.
2271 * params.def: Fix typos and remove trailing periods.
2272 * toplev.c (display_help): Don't dump --param help.
2273 * doc/sourcebuild.texi: Update.
2275 2003-07-18 Richard Henderson <rth@redhat.com>
2278 * optabs.c (prepare_operand): Fail gracefully instead of abort
2279 if the predicate doesn't satisfy.
2280 (gen_cond_trap): Allow prepare_operand to fail.
2282 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2284 * c-common.c: Don't undefine GCC_DIAG_STYLE.
2285 (fname_decl): Don't use xxx_with_decl.
2286 (c_add_case_label): Likewise.
2287 (handle_section_attribute): Likewise.
2288 (handle_alias_attribute): Likewise.
2289 (handle_no_instrument_function_attribute): Likewise.
2290 (handle_no_limit_stack_attribute): Likewise.
2291 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
2292 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
2294 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2296 * Makefile.in (ifcvt.o): Add cfgloop.h.
2297 * basic-block.h (EDGE_LOOP_EXIT): New flag.
2298 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
2299 * ifcvt.c: Include cfgloop.h.
2300 (mark_loop_exit_edges): New static function.
2301 (if_convert): Call it.
2302 (find_if_header): Ignore branches out of loops.
2304 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
2306 * combine.c (simplify_comparison): Don't share rtx when converting
2307 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
2309 2003-07-18 David Edelsohn <edelsohn@gnu.org>
2311 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
2312 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
2313 (MUST_PASS_IN_STACK): Define.
2314 (BLOCK_REG_PADDING): Define.
2316 2003-07-18 Richard Henderson <rth@redhat.com>
2318 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
2319 to skip the addr_vec.
2321 Fri Jul 18 15:22:28 2003 Alexandre Oliva <aoliva@redhat.com>
2323 * combine.c (combinable_i3pat): Don't forbid occurrences of
2324 i2dest or i1dest in inner_dest if inner_dest is a mem.
2326 Fri Jul 18 17:05:57 CEST 2003 Jan Hubicka <jh@suse.cz>
2328 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
2330 2003-07-17 Jakub Jelinek <jakub@redhat.com>
2333 * loop.c (basic_induction_var): Check if convert_modes emitted any
2334 instructions. Remove them and return 0 if so.
2336 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
2338 PR optimization/11083
2339 * toplev.c (rest_of_handle_addresof): Rename into
2340 rest_of_handle_addressof. Delete unreachable blocks
2341 if dead edges were purged after the addressof pass.
2343 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
2345 * Makefile.in, configure, configure.in: Remove handling of
2346 lang-options.h and options_.h.
2347 * toplev.c (struct lang_opt, documented_lang_options): Remove.
2348 (display_help): Don't use documented_lang_options.
2350 2003-07-17 Zack Weinberg <zack@codesourcery.com>
2352 * c-decl.c (pushdecl_function_level): Make static, return nothing.
2353 (kept_level_p): Fold into poplevel.
2354 (undeclared_variable): Moved here from c-typeck.c. Export.
2355 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
2356 (undeclared_variable): Prototype here. Don't prototype
2357 kept_level_p nor pushdecl_function_level.
2358 * c-parse.in: Change first argument to poplevel from
2359 "kept_level_p()" to "KEEP_MAYBE".
2360 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
2362 2003-07-17 Roger Sayle <roger@eyesopen.com>
2364 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
2365 commutative operands instead of modifying the RTL in-place.
2367 2003-07-17 Mark Mitchell <mark@codesourcery.com>
2369 PR optimization/11557
2370 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
2371 unless we know which function is being called.
2373 2003-07-17 Roger Sayle <roger@eyesopen.com>
2375 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
2376 whether to reorder the operands of a commutative binary operator.
2378 2003-07-17 Roger Sayle <roger@eyesopen.com>
2380 * fold-const.c (const_binop): Avoid performing the FP operation at
2381 compile-time, if either operand is NaN and we honor signaling NaNs,
2382 or if we're dividing by zero and either flag_trapping_math is set
2383 or the desired mode doesn't support infinities.
2384 (fold_initializer): New function to fold an expression ignoring any
2385 potential run-time exceptions or traps.
2386 * tree.h (fold_initializer): Prototype here.
2387 * c-typeck.c (build_binary_op): Move to the end of the file so
2388 that intializer_stack is in scope. If constructing an initializer,
2389 i.e. when initializer_stack is not NULL, use fold_initializer to
2391 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
2392 performing FP operations at compile-time, if they would raise an
2393 exception at run-time.
2395 2003-07-17 Geoffrey Keating <geoffk@apple.com>
2398 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
2399 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
2400 (GTFILES): Add langhooks.c.
2401 (gt-langhooks.h): New.
2402 * c-common.h (c_static_assembler_name): Prototype.
2403 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
2404 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
2405 * c-opts.c: Include langhooks-def.h.
2406 (c_static_assembler_name): New.
2407 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
2409 (lhd_set_decl_assembler_name): Give static objects with context
2411 * varasm.c (var_labelno): Delete.
2412 (make_decl_rtl): Don't change the assembler name once it's set.
2414 * c-opts.c (this_input_filename): New.
2415 (finish_options): Take new parameter, name of file being compiled.
2416 Update callers. Set this_input_filename.
2417 (push_command_line_include): Use this_input_filename not
2418 main_input_filename.
2420 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
2422 * Makefile.in: Depend .pot generation on options.c.
2423 * po/exgettext: Add an extra_files variable containing additional
2426 2003-07-17 Zack Weinberg <zack@codesourcery.com>
2428 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
2429 c_write_global_declarations.
2431 * c-decl.c: Fix typos in several comments. Remove all
2432 #if 0 blocks; reindent as needed. Remove unused argument
2433 to declare_parm_level; all callers changed.
2434 * c-parse.in: Update calls to declare_parm_level. Avoid
2435 issuing a double warning in some circumstances.
2436 * c-typeck.c: Update calls to declare_parm_level.
2437 * c-tree.h: Update prototype of declare_parm_level.
2439 * c-pragma.c (apply_pragma_weak): Don't complain about a
2440 redundant #pragma weak.
2442 * objc/objc-act.c (forward_declare_categories,
2443 build_selector_reference_decl, build_class_reference_decl,
2444 build_objc_string_decl, synth_forward_declarations,
2445 build_protocol_reference): Set TREE_PUBLIC on synthetic
2446 forward decl to 0, consistent with eventual definition.
2447 Correct comments to match.
2449 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
2450 in regexp that don't form a range expression.
2451 * fixinc/fixincl.def: Regenerate.
2453 2003-07-17 Richard Henderson <rth@redhat.com>
2456 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
2457 even with !TARGET_CONST_GP.
2458 (ia64_function_ok_for_sibcall): Reject non-local functions.
2460 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
2462 * c-common.c (c_estimate_num_insns_1): Don't handle
2464 * expr.c (safe_from_p): Likewise.
2465 * gengtype.c (adjust_field_tree_exp): Likewise.
2466 * stmt.c (warn_if_unused_value): Likewise
2467 * tree.c (first_rtl_op): Likewise.
2468 * tree.def: Don't define METHOD_CALL_EXPR.
2469 * java/lang.c (java_estimate_num_insns_1): Don't handle
2472 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2475 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
2476 and its restrictions for the SPARC64 port.
2477 Move the entry of "-mimpure-text" before that of "-mv8".
2479 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2480 Phil Edwards <phil@jaj.com>
2482 * doc/install.texi (*-*-solaris2*): Document the step-by-step
2483 procedure to bootstrap and install.
2484 Document the preference for the legacy Sun tools in /usr/bin
2485 over the POSIX tools in /usr/xpg4/bin for the build process.
2487 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
2489 * c.opt: Document Uncodumented; use it. Document ObjC options.
2490 * opts.c (print_filtered_help): Skip undocumented switches.
2491 * opts.h (CL_UNDOCUMENTED): New.
2492 * opts.sh: Handle Undocumented.
2493 * toplev.c (documented_lang_options): Prevent its becoming empty.
2495 * lang-options.h: Remove.
2497 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
2499 * loop.c (check_ext_dependent_givs): Pass const struct loop *
2500 instead of struct loop_info * as argument. Accept BIVs with
2501 increment +/- 1 provided there is a friendly exit test against
2502 a loop-invariant value.
2503 (strength_reduce): Adapt call to check_ext_dependent_givs.
2505 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
2506 Con Bradley <con.bradley@superh.com>
2508 * sh-protos.h (sh_get_pr_initial_val): Declare.
2509 * sh.c (regno_reg_class): Make its elements type enum reg_class.
2510 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
2511 and live_regs_mask arguments. Changed all callers.
2512 (save_schedule_s): New structure.
2513 (save_schedule): New typedef.
2514 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
2515 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
2516 In interrupts handlers, also save registers that are usually
2517 partially saved, and make sure there is at least one general purpose
2518 register saved if a target register needs saving.
2519 Add casts in comparisons to avoid warnings.
2520 (sh_media_register_for_return): return -1 for interrupt handlers.
2521 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
2522 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
2523 registers used are available.
2524 Set RTX_FRAME_RELATED_P where appropriate.
2525 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
2526 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
2527 (initial_elimination_offset): Likewise.
2528 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
2529 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
2530 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
2531 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
2532 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
2533 and for target registers.
2534 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
2535 (regno_reg_class): Make its elements type enum reg_class.
2536 (CONSTRAINT_LEN): Don't use isdigit.
2537 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
2538 (FUNCTION_ARG): Add parentheses to avoid warnings.
2539 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
2540 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
2541 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
2542 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
2543 * sh.md (xordi3+1): Remove unused variable regno.
2544 (return_media): Check that tr0 is available before using it.
2546 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
2548 * c.opt: Document more options.
2550 2003-07-16 Roger Sayle <roger@eyesopen.com>
2552 * combine.c (subst): Also handle (subreg (const_double ...)) case
2553 if created by a substitution, by using the original inner mode.
2555 2003-07-16 Roger Sayle <roger@eyesopen.com>
2557 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
2558 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
2559 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
2561 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
2563 * doc/install.texi (--without-headers): New.
2565 Partial Fix PR/10129
2566 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
2567 (machopic_output_function_base_name): New; print the true pic label.
2568 (machopic_classify_ident): Pic Base is always a defined data.
2569 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
2570 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
2572 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
2573 if they are not floating point registers.
2576 * ggc.h: Add header guards.
2577 * c-decl.c (finish_struct): Sort fields if
2578 number greater than 15 and there are no
2579 anonymous structs/unions.
2580 * c-common.h: Include ggc.h.
2581 (sorted_fields_type): New struct.
2582 (field_decl_cmp): New prototype.
2583 (resort_sorted_fields): New prototype.
2584 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
2585 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
2586 as s, removing other fields.
2587 * c-typeck.c (lookup_field): Use s in lang_type.
2588 These were mostly moved from cp/class.c:
2589 * c-common.c (field_decl_cmp): New static function.
2590 (field_decl_cmp): New function.
2591 (resort_sorted_fields): New function.
2593 2003-07-16 Geoffrey Keating <geoffk@apple.com>
2595 * config/darwin.c (machopic_select_section): Use decl_readonly_section
2596 to do most of the work.
2598 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
2600 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
2601 * config/mmix/mmix.c: Convert functions to ISO C90.
2602 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
2604 (mmix_get_hard_reg_initial_val): Tweak section head comment.
2606 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
2608 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
2610 2003-07-16 Jakub Jelinek <jakub@redhat.com>
2612 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
2613 (uw_update_context_1): Use it.
2614 * config/rs6000/rs6000.c (insn_after_throw): Remove.
2615 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
2616 in parent frame if _Unwind_* called directly instead of through
2618 (rs6000_emit_eh_toc_restore): Remove.
2619 (rs6000_emit_prologue): Update stack pointer before doing any saving
2620 if current_function_calls_eh_return. Generate unwind info for $r2.
2621 (rs6000_emit_epilogue): Restore stack pointer after doing all
2622 restoring if current_function_calls_eh_return. Restore $r2.
2623 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
2624 * config/rs6000/rs6000.md (eh_return): Remove call to
2625 rs6000_emit_eh_toc_restore.
2626 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
2627 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
2629 2003-07-15 Jakub Jelinek <jakub@redhat.com>
2631 * expr.c (emit_block_move): Don't move anything if size is const 0.
2632 (clear_storage): Test against const0_rtx instead of comparing INTVAL
2635 2003-07-15 David S. Miller <davem@redhat.com>
2637 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
2638 emit nop if the last real insn is CALL_INSN.
2640 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
2642 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
2644 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
2646 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
2648 * config/i386/winnt.c (associated_type): Artificial methods are not
2649 affected by the import/export status of their class unless they are
2651 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
2653 * config/i386/winnt.c: Fix GCC copyright comment.
2655 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
2658 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
2659 not recursing on hard error.
2660 (diagnostic_for_decl): Likewise.
2661 * diagnostic.def: Rearrange.
2663 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
2665 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
2666 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
2668 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
2669 Richard Henderson <rth@redhat.com>
2671 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
2672 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
2673 (_Unwind_SetGR): Likewise.
2674 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
2675 (Unwind_SpTmp): New typedef.
2676 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
2677 (uw_update_context): Use _Unwind_GetPtr.
2678 (init_dwarf_reg_size_table): Move above uw_init_context_1.
2679 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
2680 Use _Unwind_SetSpColumn.
2681 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
2684 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
2686 * c.opt: Document more options.
2687 * toplev.c (documented_lang_options): Remove all local help strings.
2689 2003-07-15 Mark Mitchell <mark@codesourcery.com>
2692 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
2695 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
2698 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
2699 swap comparison operands if doing so would generate an
2700 unrecognizable insn.
2702 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
2704 PR optimization/11320
2705 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
2706 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
2707 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
2708 current_sched_info->compute_jump_reg_dependencies. Record which
2709 registers are used and which registers are set by the jump.
2710 Clear deps->reg_conditional_sets after a barrier.
2711 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
2712 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
2713 (init_deps): Initialize reg_conditional_sets.
2714 (free_deps): Clear reg_conditional_sets.
2715 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
2716 Mark registers live on entry of the fallthrough block and conditionally
2717 set as set by the jump. Mark registers live on entry of non-fallthrough
2718 blocks as used by the jump.
2719 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
2720 Mark new parameters as unused.
2722 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
2724 * doc/invoke.texi: Resync MIPS -march documentation.
2726 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
2728 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
2729 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
2730 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
2731 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
2732 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
2733 (mips_issue_rate): Handle PROCESSOR_R9000.
2734 (mips_use_dfa_pipeline_interface): Likewise.
2735 * config/mips/9000.md: New file.
2736 * config/mips/mips.md: Include it.
2737 (define_attr cpu): Add r9000.
2738 (mulsi3_mult3): Use "mul" for rm9000 code.
2740 2003-07-15 Stan Cox <scox@redhat.com>
2742 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
2743 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
2744 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
2745 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
2746 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
2747 (mips_issue_rate): Handle PROCESSOR_R7000.
2748 (mips_use_dfa_pipeline_interface): Likewise.
2749 * config/mips/7000.md: New file.
2750 * config/mips/mips.md: Include it.
2751 (define_attr cpu): Add r7000.
2752 (mulsi3_mult3): Use "mul" for rm7000 code.
2754 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
2756 * config/mips/mips.md (define_attr type): Add condmove. Use it for
2757 the conditional move patterns.
2758 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
2759 Check for condmove type.
2760 (ir_vr54_arith): Add move type.
2761 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
2762 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
2764 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
2766 * c-opts.c (print_help): Remove.
2767 (c_common_handle_option): Don't handle --help.
2768 * c.opt: Document some options.
2770 * opts.c (print_filtered_help): New.
2771 (print_help): Use it.
2773 2003-07-14 Geoffrey Keating <geoffk@apple.com>
2775 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
2776 * tree.c: (build_common_tree_nodes_2): Likewise.
2777 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
2778 (V4DF_type_node): New.
2780 * c-opts.c (push_command_line_include): Don't free deferred_opts,
2782 (finish_options): Reset init_cursor.
2784 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
2786 * expr.c (expand_assignment): Remove an unused argument
2788 * expr.h: Update the prototype.
2789 * function.c: Update the callers.
2792 2003-07-14 Mark Mitchell <mark@codesourcery.com>
2795 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
2798 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
2800 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
2801 with __cplusplus, not "we must use the C++ compiler's type"
2802 * fixinc/inclhack.def (void_null): Note that Interix needs this.
2803 * fixinc/fixincl.x: Regenerate.
2805 2003-07-14 Geoffrey Keating <geoffk@apple.com>
2807 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
2808 and unseen_objects from the global data before calling
2809 __deregister_frame_info_bases.
2810 (examine_objects): Insert objects into the seen_objects list,
2812 (_Unwind_Find_FDE): Always unlock the global object lists, even if
2813 we couldn't allocate a data structure to put in it.
2815 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
2816 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
2817 (SET_TYPE_PROTOCOL_LIST): New.
2818 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
2819 (get_object_reference): Likewise.
2821 Mon Jul 14 23:14:28 CEST 2003 Jan Hubicka <jh@suse.cz>
2823 * cfglayout.c (locator_file): Break out from ....
2824 (insn_file): ... here.
2825 (locator_line): Break out from ....
2826 (insn_line): ... here.
2827 * rtl.h (locator_file, locator_line): Declare.
2828 (final_start_function): Set proper line/file info.
2830 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
2832 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
2833 handled by pp_c_cast_expression.
2835 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
2837 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
2838 allocate 32768 bytes of stack. Use addition rather than subtraction
2839 when a single insn is enough.
2840 * config/mips/mips.md: Remove insns and splitters for subtracting
2842 (subsi3): Only accept register operands.
2843 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
2844 (subdi3_internal_3, subsi3_internal_2): Likewise.
2845 (casesi): Use expand_binop to subtract the lower bound.
2847 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
2849 * config/mips/mips.c (mips_in_small_data_p): Don't handle
2850 TARGET_MIPS16 specially.
2852 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
2854 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
2855 mips_output_aligned_bss.
2856 * config/mips/linux.h: Likewise.
2857 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
2858 * config/mips/mips.c (mips_output_aligned_bss): New function.
2860 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
2861 * config/mips/elf64.h: Likewise.
2863 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
2864 mips_declare_object_name.
2865 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
2866 * config/mips/elf64.h: As for elf.h.
2867 * config/mips/iris6.h: Likewise.
2868 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
2869 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
2870 do...while (0) block.
2871 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
2872 (mips_finish_declare_object): Declare.
2873 * config/mips/mips.c (mips_declare_object_name): New function.
2874 (mips_finish_declare_object): New function.
2876 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
2877 * config/mips/linux.h: Likewise.
2879 * config/mips/mips.c (inside_function): Delete.
2880 (file_in_function_warning, ignore_line_number): Delete.
2881 (mips_output_filename): Don't warn about changing filenames within
2883 (mips_output_lineno): Update accordingly.
2884 (mips_output_function_prologue): Don't reset the deleted variables.
2885 * config/mips/mips.h (inside_function): Delete.
2886 (file_in_function_warning, ignore_line_number): Delete.
2888 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
2889 * config/mips/elf64.h: Likewise.
2890 * config/mips/openbsd.h: Likewise.
2891 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
2892 * config/mips/linux.h: Likewise.
2893 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
2894 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
2896 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
2897 to the list of include files when using gas.
2898 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
2899 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
2900 * config/mips/elf64.h: Likewise.
2901 * config/mips/iris5.h: Likewise.
2902 * config/mips/linux.h: Likewise.
2903 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
2904 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
2905 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
2906 * config/mips/sdb.h: ...this new file.
2908 2003-07-14 Douglas Rupp <rupp@gnat.com>
2910 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
2911 argument to getcwd; use fixed buffer instead.
2913 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
2915 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
2916 * fixinc/fixinc.wrap: Delete.
2918 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
2920 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
2923 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
2925 * ggc-page.c (struct globals): Add new fields to keep track of the
2926 total allocated memory and overhead.
2927 (ggc_print_statistics): Print them.
2928 (ggc_alloc): Keep track of the total allocated memory and the
2931 * tree.c (dump_tree_statistics): Increase spacing.
2932 (enum tree_node_kind): Move to ...
2933 * tree.h (enum tree_node_kind): ... here.
2934 (tree_node_counts, tree_node_sizes): Declare.
2936 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
2938 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
2940 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2942 PR optimization/11440
2943 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
2946 2003-07-14 Alan Modra <amodra@bigpond.net.au>
2948 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
2949 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
2950 (emit_group_load, emit_group_store): Adjust declarations.
2951 Remove most occurrences of #ifdef TREE_CODE.
2952 * expr.c (emit_group_load): Add "type" param, and use
2953 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
2954 aligned accesses if !SLOW_UNALIGNED_ACCESS.
2955 (emit_group_store): Likewise.
2956 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
2957 emit_group_load and emit_group_store calls.
2958 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
2959 BLOCK_REG_PADDING to determine whether we need endian_correction.
2960 (load_register_parameters): Localize vars. Handle shifting of
2961 small values to the correct end of regs. Adjust emit_group_load
2963 (expand_call, emit_library_call_value_1): Adjust emit_group_load
2964 and emit_group_store calls.
2965 * function.c (assign_parms): Set mem alignment for stack slots.
2966 Adjust emit_group_store call. Store values at the "wrong" end
2967 of regs to the stack. Use BLOCK_REG_PADDING.
2968 (locate_and_pad_parm): Save where_pad.
2969 (expand_function_end): Adjust emit_group_load call.
2970 * stmt.c (expand_value_return): Adjust emit_group_load call.
2971 * Makefile.in (calls.o): Depend on $(OPTABS_H).
2972 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
2973 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
2974 (MUST_PASS_IN_STACK): Define.
2975 (BLOCK_REG_PADDING): Define.
2976 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
2977 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
2978 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
2979 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
2980 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
2982 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
2984 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
2986 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2988 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
2989 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
2991 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
2994 * toplev.c: Don't cut off option names.
2996 2003-07-13 Andreas Jaeger <aj@suse.de>
2998 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
2999 to integer of different size.
3001 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
3003 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
3004 to (eq (and X 1) 0).
3006 2003-07-13 Andreas Jaeger <aj@suse.de>
3008 * config.gcc: Add pmmintrin.h for x86_64-*-*.
3010 2003-07-13 Zack Weinberg <zack@codesourcery.com>
3012 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
3013 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
3014 list. Move these all together down by cpplib.
3016 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
3017 definition of CPPCHAR_SIGNED_T.
3019 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
3020 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
3021 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
3023 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
3024 * cppinit.c (cpp_create_reader): Likewise.
3026 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
3027 * cpptrad.c: Likewise. All callers changed.
3028 * cpplib.c: All callers changed.
3029 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
3030 * hashtable.h: Define GTY(x) to nothing here too.
3032 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3034 * stor-layout.c (compute_record_mode): Remove very obsolete test
3035 that forces BLKmode for records with fields crossing word boundary.
3037 2003-07-13 Zack Weinberg <zack@codesourcery.com>
3039 * Makefile.in: Remove orphan reference to acconfig.h.
3041 2003-07-13 Andreas Jaeger <aj@suse.de>
3043 * cgraphunit.c: Convert prototypes to ISO C90.
3045 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
3047 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
3049 * fixinc/fixincl.x: Rebuild.
3051 2003-07-12 Zack Weinberg <zack@codesourcery.com>
3053 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
3054 i?86-*-*. Use correct name of cache variable.
3055 * configure: Regenerate.
3057 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
3059 * config/alpha/alpha.c: Fix comment typos.
3060 * config/alpha/alpha.md: Likewise.
3061 * config/arm/arm.c: Likewise.
3062 * config/arm/arm.md: Likewise.
3063 * config/arm/lib1funcs.asm: Likewise.
3064 * config/avr/avr.md: Likewise.
3065 * config/arm/README-interworking: Fix typos.
3067 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
3069 * c-format.c: Fix comment formatting.
3070 * c-typeck.c: Likewise.
3071 * coverage.c: Likewise.
3072 * cppcharset.c: Likewise.
3073 * cpplib.c: Likewise.
3074 * dbxout.c: Likewise.
3075 * gcov-io.h: Likewise.
3076 * toplev.c: Likewise.
3078 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
3080 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
3083 2003-07-12 Zack Weinberg <zack@codesourcery.com>
3085 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
3086 uses three-argument AC_DEFINE so no acconfig.h entries are
3088 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
3089 which contains the GAS version number as a scaled integer.
3090 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
3091 ability to check for ELF assembler.
3092 (gcc_GAS_CHECK_FEATURE): New macro.
3093 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
3094 assembler feature checks using gcc_GAS_CHECK_FEATURE.
3095 Use three-argument AC_DEFINE everywhere.
3096 * acconfig.h: Deleted.
3097 * config.in, configure: Regenerate.
3099 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
3101 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
3103 * fixinc/fixincl.x: Regenerate.
3105 * fixinc/inclhack.def (gnu_types): Improve comment.
3107 2003-07-12 Andreas Jaeger <aj@suse.de>
3109 * fp-test.c (main): Use ISO C90 prototype.
3111 * version.c: Remove unneded include of ansidecl.h.
3113 * cgraph.h: Convert prototypes to ISO C90.
3114 * cgraph.c: Likewise.
3115 * fix-header.c: Likewise.
3117 * protoize.c: Likewise.
3119 Sat Jul 12 06:09:38 CEST 2003 Jan Hubicka <jh@suse.cz>
3121 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
3124 Sat Jul 12 03:06:01 CEST 2003 Jan Hubicka <jh@suse.cz>
3125 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3127 * cgraph.c (cgraph_max_uid): New global variable.
3128 (cgraph_node): Set uid field.
3129 (create_edge): Keep inline flags consistent.
3130 (dump_cgraph): Dump more info.
3131 * cgraph.h (struct cgraph_local_info): Remove inline_many and
3132 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
3133 (struct cgraph_global_info): Add insns, calls, cloned_times,
3135 (struct cgraph_node): Add uid.
3136 (struct cgraph_edge): Add inline_call.
3137 (cgraph_max_uid, cgraph_inline_p): Declare.
3138 * cgraph.c: Include params.h and fibheap.h
3139 (cgraph_mark_functions_to_inline_once): Kill.
3140 (INSNS_PER_CALL): New constant.
3141 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
3143 (cgraph_finalize_function): Do not analyze inlining.
3144 (cgraph_finalize_compilation_unit): Set inlining attributes.
3145 (cgraph_mark_functions_to_output): More consistency checks.
3146 (cgraph_optimize_function): Set current_function_decl to NULL.
3147 (cgraph_expand_function): Use new inline flags.
3148 (cgraph_postorder): Expand from cgraph_expand_functions.
3149 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
3150 (cgraph_inlined_into, cgraph_inlined_callees,
3151 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
3152 cgraph_mark_inline, cgraph_check_inline_limits,
3153 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
3154 cgraph_decide_inlining, cgraph_inline_p): New functions.
3155 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
3156 PARAM_INLINE_UNIT_GROWTH): New parameters.
3157 * tree-inline.c (struct inline_data): New field current_decl.
3158 (expand_call_inline): Avoid forward declarations; use
3159 inlinable_function_p.
3160 (optimize_inline_calls): Set id.current_decl.
3162 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
3164 * configure.in: Remove wrongly added definition of
3166 * configure: Regenerate.
3168 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
3170 * rtl.def (NOTE): Do not use padding.
3172 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
3174 * doc/install.tex: Update required binutils for i?86-*-linux*
3176 2003-07-11 Richard Henderson <rth@redhat.com>
3178 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
3180 2003-07-11 Mark Mitchell <mark@codesourcery.com>
3182 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
3183 TRANSLATION_UNIT_DECL as top_level.
3185 2003-07-11 Jakub Jelinek <jakub@redhat.com>
3187 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
3188 then fall back to cmpstrM.
3189 * builtins.c (expand_builtin_memcmp): Likewise.
3190 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
3191 (s390_expand_cmpmem): ... this.
3192 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
3193 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
3194 from cmpstr* patterns. Rename call to s390_expand_cmpstr
3195 to s390_expand_cmpmem.
3196 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
3197 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
3199 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
3201 * doc/md.texi (cmpstrM): Describe as String compare insn, not
3205 2003-07-11 Loren James Rittle <ljrittle@acm.org>
3207 * config/i386/freebsd.h (SET_ASM_OP): Remove.
3208 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
3209 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
3210 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
3212 2003-07-11 Richard Henderson <rth@redhat.com>
3214 * function.c (assign_parms): Don't recombine complex args if
3215 fnargs is unchanged from orig_fnargs.
3216 (split_complex_args): Return args without complex before copying.
3217 Re-layout the modified parameters.
3219 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
3221 * regclass.c (choose_hard_reg_mode): Add third argument.
3222 Changed all callers.
3223 * rtl.h (choose_hard_reg_mode): Update declaration.
3224 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
3225 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
3227 2003-07-11 Geoffrey Keating <geoffk@apple.com>
3229 * c-decl.c (finish_decl): Handle 'used' here...
3230 * cgraphunit.c (cgraph_finalize_function): ... and here ...
3231 * c-common.c: (handle_used_attribute): ... not here.
3233 * configure.in (onstep): Support --enable-intermodule.
3234 * Makefile.in (OBJS-common): New.
3236 (OBJS-archive): New.
3237 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
3238 (OBJS-onestep): New.
3239 (libbackend.a): Support @onestep@.
3240 (libbackend.o): New.
3241 * configure: Regenerate.
3243 * c-common.h (c_reset_state): New prototype.
3244 (c_parse_file): New prototype.
3245 (finish_file): Move prototype from c-tree.h.
3246 * c-decl.c: Include <hashtab.h>.
3247 (builtin_decls): New.
3248 (current_file_decl): New.
3249 (duplicate_decls): Add extra parameter. Change all callers. Don't
3250 output duplicate common symbols.
3251 (link_hash_hash): New.
3252 (link_hash_eq): New.
3253 (poplevel): Handle popping of the top level.
3254 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
3255 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
3256 (pushdecl_top_level): Likewise.
3257 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
3258 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
3259 (finish_decl): Handle TRANSLATION_UNIT_DECL.
3260 (merge_translation_unit_decls): New.
3261 (c_write_global_declarations): New.
3262 (c_reset_state): New.
3263 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
3264 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
3265 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
3266 TRANSLATION_UNIT_DECL.
3267 (c_objc_common_finish_file): Call merge_translation_unit_decls.
3268 * c-opts.c (in_fnames): Rename from in_fname.
3269 (c_common_decode_option): Handle multiple input filenames.
3270 (c_common_post_options): Likewise.
3271 (c_common_parse_file): Likewise; also, call c_parse_file rather than
3273 * c-parse.in: Move cleanup code to c_parse_file.
3274 (free_parser_stacks): Move contents to c_parse_file.
3275 (c_parse_file): New.
3276 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
3278 (C_DECL_FILE_SCOPE): New.
3279 (finish_file): Move prototype to c-common.h.
3280 (merge_translation_unit_decls): New prototype.
3281 (comptypes): Add extra parameter to prototype.
3282 (c_write_global_declarations): New prototype.
3283 * c-typeck.c (tagged_types_tu_compatible_p): New.
3284 (function_types_compatible_p): Add extra parameter, change all callers.
3285 (type_lists_compatible_p): Likewise.
3286 (comptypes): Likewise.
3287 (struct tagged_tu_seen): New.
3288 (tagged_tu_seen_base): New.
3289 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
3290 (c_mark_addressable): Remove #if 0 code.
3291 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
3292 comment explaining why it shouldn't have to.
3293 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
3295 * cppinit.c (cpp_read_next_file): New.
3296 (cpp_read_main_file): Use it.
3297 * cpplib.c (undefine_macros): New.
3298 (cpp_undef_all): New.
3299 * cpplib.h (cpp_read_next_file): Prototype.
3300 (cpp_undef_all): Prototype.
3301 * langhooks-def.h (write_global_declarations): Remove prototype.
3302 * toplev.h (write_global_declarations): Add prototype.
3303 * tree.c (decl_type_context): Use switch statement, handle
3304 TRANSLATION_UNIT_DECL.
3305 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
3306 (TRANSLATION_UNIT_DECL): New kind of tree.
3307 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
3308 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
3309 * doc/invoke.texi: Make attempt to document new functionality.
3311 2003-05-19 Per Bothner <bothner@apple.com>
3313 * gcc.c (combine_inputs): New.
3314 (process_command): Set combine_inputs.
3315 (do_spec_1): Handle combine_inputs.
3318 2003-07-10 James E Wilson <wilson@tuliptree.org>
3320 PR optimization/9745
3321 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
3322 loop_insn_emit_before.
3323 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
3325 2003-07-10 Zack Weinberg <zack@codesourcery.com>
3327 * cppcharset.c: Fix comment.
3328 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
3329 (EILSEQ): #define to EINVAL if not already defined.
3330 (convert_using_iconv): #if out when !HAVE_ICONV.
3331 (init_iconv_desc): Handle !HAVE_ICONV here...
3332 (cpp_init_iconv): ...not here.
3334 2003-07-11 Neil Booth <neil@daikokuya.co.uk>
3336 * common.opt: More --help messages.
3337 * opts.c (print_help): Use puts().
3338 * toplev.c (f_options): Remove help text.
3339 (display_help): Don't dump f_options.
3341 2003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
3343 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
3344 Move i?86-*-interix* to the don't-fix list.
3345 * fixinc/fixinc.interix: Delete with extreme prejudice.
3347 2003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
3350 * doc/install.texi: Document requirements for ia64-*-hpux* target.
3352 2003-07-10 Roger Sayle <roger@eyesopen.com>
3354 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
3356 2003-07-10 Zack Weinberg <zack@codesourcery.com>
3358 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
3359 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
3360 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
3361 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
3362 convert_no_conversion, convert_using_iconv): New functions.
3363 (APPLY_CONVERSION): New macro.
3364 (struct conversion, conversion_tab): New data structure.
3365 (init_iconv_desc): Check conversion_tab for a custom conversion
3366 primitive before trying to use iconv.
3367 (convert_cset): Deleted.
3368 (cpp_init_iconv): Use UTF- terminology, not UCS-.
3369 (_cpp_destroy_iconv): Update to match.
3370 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
3371 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
3372 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
3373 (_cpp_interpret_string_notranslate): New function, moved here
3376 * cpphash.h (convert_f, struct cset_converter): New types.
3377 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
3378 are now struct cset_converter, not bare iconv_t.
3380 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
3381 all callers changed.
3383 2003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
3385 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
3386 to opts.sh command line.
3387 * opts.sh: Write to temporary files with a move-if-change at the end.
3389 2003-07-10 Denis Chertykov <denisc@overta.ru>
3390 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3392 * combine.c (gen_binary): Handle the CLOBBER rtx and
3393 don't build a binary operation with it.
3395 2003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3397 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
3398 store_killed_after, store_killed_before): Keep track of the correct
3399 dependency function to use.
3401 2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
3402 * toplev.c (do_compile): Don't try to open dump files before
3403 lang_dependent_init initializes dump_base_name.
3405 2003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3407 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
3409 * config/frv/frv.c (frv_expand_builtin): Likewise.
3410 * config/sh/sh.c (sh_media_init_builtins): Likewise.
3412 2003-07-09 Mark Mitchell <mark@codesourcery.com>
3415 * doc/invoke.texi (C++ Dialect Options): Change documentation of
3418 2003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
3420 * tm.texi (RETURN_ADDR_OFFSET): Document.
3422 2003-07-10 Nathan Sidwell <nathan@codesourcery.com>
3424 * gcov-io.h: Update documentation.
3425 (GCOV_UNSIGNED2STRING): New.
3426 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
3427 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
3428 GCOV_TAG_SUMMARY_LENGTH): Adjust.
3429 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
3430 GCOV_TAG_COUNTER_NUM): New.
3431 (GCOV_BLOCK_SIZE): Number of words.
3432 (gcov_var): Adjust buffer type.
3433 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
3434 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
3435 count, not byte count.
3436 (gcov_open): Adjust overread init.
3437 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
3438 gcov_write_string, gcov_write_tag, gcov_write_length,
3439 gcov_write_tag_length): Adjust.
3440 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
3441 (gcov_sync, gcov_seek): Adjust.
3442 * gcov-dump.c (print_usage): Show gcc version only.
3443 (dump_file): Use GCOV_UNSIGNED2STRING.
3444 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
3445 * gcov.c (print_version): Show gcc version only.
3446 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
3447 GCOV_TAG_*_NUM macros.
3448 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
3449 GCOV_TAG_COUNTER_LENGTH.
3450 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
3451 Use GCOV_TAG_COUNTER_NUM.
3452 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
3453 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
3455 2003-07-10 Andreas Schwab <schwab@suse.de>
3457 * gcov-dump.c (dump_file): Fix missing address operator.
3459 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
3462 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
3464 (fold_single_bit_test): If sign_bit_p() fails, assume that the
3465 bit being tested is not a sign bit.
3467 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
3469 * config/h8300/h8300.md (a peephole2): New.
3471 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
3473 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
3474 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
3475 from ld-linux.so.2 to ld.so.1.
3476 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
3477 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
3478 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
3479 nor -Wl,-rpath-link.
3480 (LIB_SPEC): Add -rpath-link if !static.
3481 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
3482 * config/mn10300/mn10300.c (mn10300_protect_label): New
3484 * config/mn10300/linux.h (PRINT_OPERAND,
3485 PRINT_OPERAND_ADDRESS): Set it during their execution.
3486 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
3487 mn10300_protect_label is set.
3488 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
3490 (LIB_SPEC, STARTFILE_SPEC): Define.
3491 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
3492 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
3493 FLOAT_BIT_ORDER_MISMATCH.
3494 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
3495 * config.gcc (am33_2.0-*-linux*): Added.
3496 * config/mn10300/linux.h: New.
3497 * config/mn10300/t-linux: New.
3499 2003-07-10 Andreas Jaeger <aj@suse.de>
3501 * fold-const.c: Properly wrap prototypes.
3503 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
3505 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
3506 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
3508 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
3509 * config/mn10300/mn10300.h: GTY-declare it.
3510 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
3511 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
3512 prototype. Use incoming RTL argument.
3513 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
3514 * config/mn10300/mn10300.md (int_label): Move C statements...
3515 (GOTaddr2picreg): ... here.
3516 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
3517 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
3518 * config/mn10300/mn10300.c (mn10300_encode_section_info):
3519 ... here. New function.
3520 (TARGET_ENCODE_SECTION_INFO): Define to it.
3521 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
3522 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
3524 (mn10300_loadPC): Define as insn splittable after reload.
3525 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
3526 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
3527 be defined in .rodata even in PIC, now that the assembler
3529 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
3530 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
3531 symbol take an underscore prefix.
3532 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
3533 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
3534 legitimize_pic_address): Declare.
3535 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
3536 the PIC register as fixed.
3537 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
3538 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
3540 (LEGITIMATE_PIC_OPERAND_P): Define.
3541 (PIC_OFFSET_TABLE_REGNUM): Define.
3542 (GOT_SYMBOL_NAME): Define.
3543 (SYMBOLIC_CONST_P): Define.
3544 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
3546 (MN10300_GLOBAL_P): Test it.
3547 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
3548 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
3549 * config/mn10300/mn10300.c (print_operand): Handle unspec.
3550 (expand_prologue): Set PIC register.
3551 (call_address_operand): Don't match SYMBOL_REFs in PIC.
3552 (legitimize_address): Call legitimize_pic_address.
3553 (legitimize_pic_address): New fn.
3554 (legitimate_pic_operand_p): New fn.
3555 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
3556 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
3557 UNSPEC_PLT): New constants.
3558 (pop_pic_reg): New insn.
3559 (movsi): Adjust non-PIC addresses.
3560 (builtin_setjmp_receiver): Restore the PIC register.
3562 (call): Adjust non-PIC addresses.
3563 (int_label, GOTaddr2picreg): New expands.
3564 (am33_loadPC): New insn.
3565 (mn10300_loadPC): New expand.
3566 (call_next_insn): New insn.
3567 (add_GOT_to_pic_reg): New expand.
3568 (symGOT2reg, symGOT2reg_i): New expands.
3569 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
3570 (sym2PIC, sym2PLT): New expands.
3572 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
3574 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
3575 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
3576 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
3577 to flag_unsafe_math_optimizations.
3578 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
3579 * config/mn10300/mn10300.c (expand_prologue): Mark
3580 FP-register-saving insns as frame-related.
3581 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
3582 * config/mn10300/mn10300.c
3583 (mn10300_get_live_callee_saved_regs): Don't search past
3584 LAST_EXTENDED_REGNUM.
3585 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
3586 * config/mn10300/mn10300.md: Remove excessive line breaks from
3587 `@' output patterns that were accounted as additional
3589 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
3590 Re-introduce changes accidentally removed in Richard Sandiford's
3592 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
3593 Re-instate am33-2 lost in merge from net GCC.
3594 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
3595 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
3596 floating-point registers.
3597 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
3598 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
3599 pessimizations that had gone in on 2000-05-08.
3600 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
3601 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
3602 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
3603 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
3605 * (movhi): Likewise.
3606 * (movsi): Likewise.
3607 * (movsf): Likewise.
3608 * (movdi): Likewise.
3609 * (movdf): Likewise.
3610 Wed May 24 13:16:09 2000 Alexandre Oliva <aoliva@cygnus.com>
3611 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
3612 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
3613 (expand_prologue, expand_epilogue): Save and restore FP regs.
3614 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
3615 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
3616 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
3617 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
3618 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
3620 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
3621 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
3622 Discourage the two-argument, longer opcodes.
3623 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
3625 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
3626 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
3627 * config/mn10300/mn10300.md (cmpsf): New pattern.
3628 (branch): Test mdep.fpCC and output fbCC.
3629 * config/mn10300/mn10300.c (print_operand): Output conditions.
3630 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
3631 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
3632 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
3633 mulsf3, divsf3): Use the `F' constraint for FP values.
3634 * config/mn10300/mn10300.c (const_1f_operand): New function.
3635 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
3636 * config/mn10300/mn10300.md (sqrtsf2): New expand.
3637 (rsqrtsf2): New insn.
3638 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
3639 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
3641 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
3642 * config/mn10300/mn10300.md (abssf2, negdf2): On
3643 TARGET_AM33_2, expand to...
3644 (abssf2_am33_2, negdf2_am33_2): New insns.
3645 (addsf3, subsf3, mulsf3, divsf3): Likewise.
3646 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
3647 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
3648 movdi, movdf): Added FP regs.
3649 * invoke.texi (-mam33-2, -mno-am33-2): Document.
3650 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
3651 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
3653 (REGNO_AM33_2_FP_P): Renamed to...
3654 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
3655 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
3656 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
3657 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
3658 regs from GENERAL_REGS.
3659 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
3660 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
3661 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
3662 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
3663 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
3664 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
3666 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
3667 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
3668 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
3669 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
3670 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
3671 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
3672 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
3673 AM33/2.0 floating-point registers.
3674 (CONDITIONAL_REGISTER_USAGE): Adjust.
3675 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
3676 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
3677 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
3678 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
3679 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
3680 (MULTILIB_DIRNAMES): Likewise.
3681 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
3682 `__AM33_2__' when `-mam33-2' is given.
3683 (TARGET_AM33_2): Define.
3684 (TARGET_SWITCHES): Adjust.
3685 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
3688 2003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
3690 * doc/install.texi: Add missing @.
3692 2003-07-09 Bob Wilson <bob.wilson@acm.org>
3694 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
3696 2003-07-09 Aldy Hernandez <aldyh@redhat.com>
3699 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
3701 2003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
3704 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
3705 "x-crtfini.o" with "crtinit.o", "crtfini.o".
3707 * fixinc/inclhack.def (limits_ifndefs): Add select test.
3708 * fixinc/fixincl.x: Rebuild.
3710 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
3711 * fixinc/fixincl.x: Rebuild.
3713 2003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
3715 * doc/install.texi (Configuration): Document the valgrind option
3716 to --enable-checking.
3718 Wed Jul 9 16:16:30 CEST 2003 Jan Hubicka <jh@suse.cz>
3720 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
3722 2003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3724 * c-lex.c (cb_ident): Cast cstr.text to const char *.
3726 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
3728 * gcov-io.h: Update documentation.
3729 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
3731 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
3732 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
3733 (struct gcov_var): Change buffer's type. Add endian flag.
3734 (gcov_open): Remove mode in libgcov.
3735 (gcov_magic): Prototype.
3736 * gcov-io.c (from_file): New.
3737 (gcov_open): Clear endian flag.
3739 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
3741 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
3742 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
3743 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
3744 * gcov-iov.c (main): Correct cast.
3745 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
3747 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
3748 (coverage_init): Use GCOV_NOTE_SUFFIX.
3749 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
3750 Rename to gcov_version, and return flag.
3751 (gcov_exit): Use gcov_version.
3752 (__gcov_init): Use gcov_version.
3753 * Makefile.in (coverageexts): Update.
3754 * gcov.c (print_version): Remove endianness conversion.
3755 (create_file_names): Use GCOV_NOTE_SUFFIX.
3756 (read_graph_file): Use gcov_magic.
3757 (read_count_file): Likewise.
3758 * gcov-dump.c (dump_file): Remove endianness conversion, use
3761 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
3763 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
3765 * configure: Regenerated.
3766 * Makefile.in (ALL_CFLAGS): Correct its comment.
3768 2003-07-08 Mark Mitchell <mark@codesourcery.com>
3770 * fold-const.c (make_range): Do not access operand 1 for a
3771 zero-operand operator.
3773 2003-07-09 Neil Booth <neil@daikokuya.co.uk>
3775 * toplev.c (warn_dummy, W_options): Die.
3776 (display_help): Don't print W_options.
3777 * common.opt: Add W_options help from toplev.c.
3779 2003-07-09 Andreas Jaeger <aj@suse.de>
3781 * opts.c (wrap_help): Only pass int arguments as arguments to
3782 printf's '*' modifier. Change argument of function.
3784 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
3786 * doc/invoke.texi: Fix misspelling of "@item".
3788 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
3790 * config/i386/i386.md: Remove an old comment about
3793 Wed Jul 9 03:00:10 CEST 2003 Jan Hubicka <jh@suse.cz>
3795 * cgraph.c (cgraph_node_name): New function.
3796 (dump_cgraph): Use it.
3797 * cgraph.h (cgraph_dump_file): Declare.
3798 (cgraph_node_name): Declare.
3799 * cgraphunit.c: Include timevar.h
3800 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
3801 (cgraph_optimize_function): Use TV_INTEGRATION.
3802 (cgraph_mark_local_functions): reorganize dumps.
3803 (cgraph_mark_functions_to_inline_once): Likewise.
3804 (cgraph_optimize): Likewise; use timevar.
3805 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
3806 * toplev.c (dump_file_index): Add DFI_cgraph.
3807 (dump_file_info): Likewise.
3808 (cgraph_dump_file): New global variable.
3809 (do_compile): Open and close cgraph dump.
3810 * invoke.texi (-d): Document new flag; renumber.
3812 2003-07-08 Roger Sayle <roger@eyesopen.com>
3815 * calls.c (emit_call_1): Don't bother popping the arguments off of
3816 the stack after a noreturn function call; The adjustment is dead.
3817 (expand_call): Likewise.
3819 2003-07-08 Geoffrey Keating <geoffk@apple.com>
3821 * expr.c (MOVE_MAX_PIECES): Move from here...
3822 * defaults.h (MOVE_MAX_PIECES): ... to here.
3824 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
3826 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
3828 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3830 * genattr.c (internal_dfa_insn_code): Don't prototype.
3831 * genattrtab.c (attr_desc): Add `static_p' field.
3832 (expand_units): Make blockage range and ready cost functions
3834 (write_attr_get): Don't add extern prototypes in C file. Mark
3835 static functions as appropriate.
3836 (find_attr, make_internal_attr): Initialize static_p.
3837 * genattrtab.h (ATTR_STATIC): New macro.
3838 * genautomata.c (output_internal_reset_func): Mark output function
3840 (make_internal_dfa_insn_code_attr): Mark output function as static.
3842 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3844 * genattrtab.h: Add new macros for attr `special' flags.
3845 * genattrtab.c (attr_desc): Reorder/resize fields better.
3846 Use attr `special' macros in all calls to make_internal_attr.
3847 * genautomata.c: Likewise.
3849 Wed Jul 9 02:25:39 CEST 2003 Jan Hubicka <jh@suse.cz>
3851 * c-common.c (c_estimate_num_insns_1): New static function.
3852 (c_estimate_num_insns): New global function.
3853 * c-common.h (DECL_NUM_STMTS): Rename to...
3854 (DECL_ESTIMATED_INSNS): ... this.
3855 (c_estimate_num_insns): Declare.
3856 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
3857 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
3858 * c-semantics.c (add_stmt): Do not account statements.
3859 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
3861 * langhooks.h (lang_hooks_for_tree_inlining): Add
3863 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
3865 (max-inline-insns): set to 300.
3866 (min-inline-insns): set to 10.
3867 * tree-inline.c (struct inline_data): Rename inlined_stmts to
3869 (INSNS_PER_STMT): Kill.
3870 (inlinable_function_p): Compute and store body size.
3871 (expand_call_inline): Likewise.
3872 (optimize_inline_calls): Likewise.
3874 2003-07-08 James E Wilson <wilson@tuliptree.org>
3877 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
3878 loop over new variable t2 instead of t.
3880 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
3883 * config/i386/winnt.c: Replace use of error(), warning() with
3884 error_with_decl(), warning_with_decl(), throughout.
3886 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
3888 * opts.c (wrap_help): Use unsigned int, not size_t.
3890 2003-07-08 Stephane Carrez <stcarrez@nerim.fr>
3892 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
3893 as .file/.loc directives are incompatible with linker relaxation.
3895 2003-07-08 Zack Weinberg <zack@codesourcery.com>
3897 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
3898 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
3899 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
3900 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
3901 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
3902 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
3903 Escape { and } characters which are not part of range expressions.
3904 * fixinc/fixincl.x: Regenerate.
3905 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
3907 2003-07-08 Steven Bosscher <steven@gcc.gnu.org>
3910 * tree-inline.c (find_alloca_call): Use
3911 walk_tree_without_duplicates, instead of walk_tree.
3912 (find_builtin_longjmp_call): Likewise.
3913 * c-objc-common.c (c_cannot_inline_fn): Likewise.
3914 * c-semantics.c (find_reachable_label): Likewise.
3916 2003-07-08 Jakub Jelinek <jakub@redhat.com>
3919 * config/i386/i386.c (ix86_check_movabs): New function.
3920 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
3921 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
3922 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
3924 2003-07-08 Chris Demetriou <cgd@broadcom.com>
3926 * Makefile.in (install-po): Cope with empty CATALOGS.
3928 2003-07-08 Richard Sandiford <rsandifo@redhat.com>
3930 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
3931 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
3932 (SECTION_FUNCTION_TEMPLATE): Delete.
3933 * config/mips/elf.h: As for elf64.h.
3934 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
3935 * config/mips/linux.h: As for elf.h
3936 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
3937 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
3938 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
3939 of in_sdata from current_section_name and current_section_flags.
3940 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
3941 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
3942 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
3943 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
3944 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
3945 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
3946 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
3947 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
3948 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
3949 (override_options): Remove setting of MASK_GPOPT.
3950 (mips_output_external): Use mips_in_small_data_p to check whether a
3951 symbol needs an .extern directive. Don't emit such directives for
3952 TARGET_EXPLICIT_RELOCS.
3953 (mips_declare_object): Update accordingly.
3954 (mips_select_rtx_section): Call named_section rather than
3956 (mips_select_section): Use default_elf_section_section for everything
3957 except .text string constants.
3958 (mips_in_small_data_p): New function.
3959 (mips_encode_section_info): Remove small data handling.
3960 (mips_unique_section): Delete.
3961 (iris6_section_type_flags): New function.
3962 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
3964 2003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3967 * pa.md: Disparage all mtsar constraints.
3968 (extzv, extv, insv): Don't fail on length of {32|64}.
3970 2003-07-08 Zack Weinberg <zack@codesourcery.com>
3972 * system.h: Poison MAP_CHARACTER.
3973 * config/i370/i370-protos.h (mvs_map_char): Delete.
3974 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
3975 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
3976 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
3978 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
3980 * toplev.c (randomize): Correct call to time().
3982 2003-07-08 Jakub Jelinek <jakub@redhat.com>
3984 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
3985 REG_EQUIV notes as well.
3987 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
3989 * doc/md.texi: Fix the description of addmodecc.
3991 2003-07-07 Zack Weinberg <zack@codesourcery.com>
3993 * Makefile.in (top_builddir): Set to "..", not ".".
3994 (INTLLIBS, INTLDEPS): Delete.
3995 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
3996 (LIBDEPS): Add $(LIBICONV_DEP).
3997 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
3998 (INCLUDES): Replace -I../intl with @INCINTL@.
3999 ($(top_builddir)/intl/libintl.a): Delete rule.
4000 (stage2-start, stage3-start, stage4-start, stageprofile-start,
4001 stagefeedback-start): Use $$ for variable to be evaluated by
4003 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
4004 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
4005 * aclocal.m4: sinclude ../config/progtest.m4. Add
4006 contents of lcmessage.m4 from gettext distro.
4007 * configure.in: Check for wchar.h and setlocale. Set
4008 LIBICONV_DEP to the empty string and substitute it.
4009 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
4010 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
4011 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
4012 in $LIBINTL, to avoid linking it twice.
4013 * configure, config.in: Regenerate.
4015 2003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
4017 * fixinc/mkfixinc.sh: Remove winnt support.
4018 * fixinc/fixinc.winnt: Delete with extreme prejudice.
4020 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
4022 * Makefile.in: Update.
4023 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
4024 * c.opt: Update documentation.
4025 * common.opt: Add some help text.
4026 * opts.c: Include intl.h.
4027 (wrap_help, print_help): New.
4028 (find_opt, handle_option, common_handle_option): opt_text now
4029 contains the '-'. Use print_help to output help.
4030 * opts.h (struct cl_option): New member "help".
4031 * opts.sh: Update to handle help text output and to prepend
4033 * toplev.c (display_help): Remove some help text.
4035 2003-07-07 David Edelsohn <edelsohn@gnu.org>
4036 Fariborz Jahanian <fjahanian@apple.com>
4038 * configure.in: Test for PowerPC mfcr field support in assembler.
4039 * config.in, configure: Regenderated.
4041 * config/rs6000/power4.md: Add mfcrf reservation.
4042 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
4043 * config/rs6000/rs6000.c (mfcr_operation): Define.
4044 (print_operand): Add 'Q' case for mfcrf.
4045 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
4046 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
4047 (movcc_internal1): Emit optional field operand for mfcr and set
4048 "type" attribute appropriately.
4049 (mfcr SCC): Likewise.
4050 (movesi_from_cr_one): New.
4052 2003-07-07 Roger Sayle <roger@eyesopen.com>
4054 * config/i386/i386.md: Correct check-in of incorrect version.
4056 2003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4058 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
4059 adjacent stdio calls.
4060 * c-decl.c (c_print_identifier): Likewise.
4061 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
4062 * print-rtl.c (print_rtx): Likewise.
4063 * print-tree.c (print_node_brief, print_node): Likewise.
4064 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
4066 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
4067 * config.in, configure: Regenerated.
4069 2003-07-07 Roger Sayle <roger@eyesopen.com>
4072 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
4073 Changed to define_expand patterns that copy operand[1] to prevent
4074 it from being clobbered before emitting an atan2?f3_1 insn.
4075 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
4076 patterns that actually specify the behaviour of x87's FPATAN.
4078 2003-07-07 Jakub Jelinek <jakub@redhat.com>
4080 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
4081 clearing of SYMBOL_FLAG_LOCAL bit.
4082 If vcall_offset fits into signed 16-bit immediate, use
4083 one instruction for both addition and load.
4085 2003-07-07 Neil Booth <neil@daikokuya.co.uk>
4087 * opts.c (common_handle_option): Correct handling of the
4088 -falign- switches that do and don't take an argument.
4090 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
4092 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
4094 (pushhi1_h8300hs): Likewise.
4096 2003-07-07 Andreas Jaeger <aj@suse.de>
4098 * genextract.c: Convert remaining prototypes to ISO C90.
4100 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
4101 * fold-const.c (fold_single_bit_test): Likewise.
4102 * diagnostic.c (default_diagnostic_finalizer): Likewise.
4103 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
4105 * gengtype.c (write_array): Generate ISO C90 prototypes.
4107 * genflags.c (gen_proto): Generate ISO C90 prototypes.
4109 2003-07-07 Roger Sayle <roger@eyesopen.com>
4111 PR optimization/11059
4112 * expr.c (can_store_by_pieces): Return true if length is zero.
4113 (store_by_pieces): If length is zero and endp is two, abort,
4114 othwerise, if length is zero and endp is not two, return "to".
4115 (clear_by_pieces): Do nothing if length is zero.
4116 (clear_storage): Do nothing if length is zero.
4117 (store_constructor): Simplify code when size is zero, or the
4118 target has already been cleared. This avoids emitting a
4119 blockage instruction when initializing empty structures.
4121 2003-07-07 Andreas Jaeger <aj@suse.de>
4123 * mips-tfile.c: Convert prototypes to ISO C90.
4124 * mips-tdump.c: Convert prototypes to ISO C90.
4126 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
4128 * rtl.h (emit_line_note): Take a location_t.
4129 (emit_line_note_force): Remove.
4130 (set_file_and_line_for_statement): Take a location_t.
4131 * tree.g (emit_line_note): Take a location_t.
4132 * emit-rtl.c (emit_line_note): Take a location_t.
4133 (emit_line_note_force): Remove.
4134 * function.c (init_function_start): Adjust emit_line_note call.
4135 (expand_function_end): Use force_next_line_note, not
4136 emit_line_note_force.
4137 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
4138 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
4139 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
4140 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
4141 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
4142 genrtl_continue_stmt, genrtl_switch_stmt,
4143 genrtl_asm_stmt): Likewise.
4144 * expr.c (expand_expr): Likewise.
4145 * integrate.c (expand_inline_function): Likewise.
4146 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
4147 (expand_decl_init): Adjust emit_line_note call.
4149 2003-07-07 Dale Johannesen <dalej@apple.com>
4151 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
4153 2003-07-07 Andreas Jaeger <aj@suse.de>
4155 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
4156 * config/i386/i386.c: Likewise.
4158 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
4160 * config/h8300/h8300.md: Use gen_int_mode instead of
4161 GEN_INT (trunc_int_for_mode (...)).
4163 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
4165 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
4166 2 bytes and then subtract 2 from the stack pointer.
4167 (pushhi1_h8300hs): Likewise.
4169 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
4171 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
4173 * configure: Regenerated.
4174 * Makefile.in: Remove extraneous comment.
4175 * toplev.c (randomize): Protect against potential multiple calls.
4176 * doc/invoke.texi (-frandom-seed): Document use for in coverage
4179 2003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4180 Eric Botcazou <ebotcazou@libertysurf.fr>
4182 PR optimization/11198
4183 * alias.c (objects_must_conflict_p): Return 1 if the types have
4184 the same alias set, not if the alias sets only conflict.
4186 2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
4188 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
4189 (convert_cset): Change inbuf to type ICONV_CONST char.
4190 * Makefile.in (LIBS): Add LIBICONV.
4192 * doc/invoke.texi (-falign-functions): Document that
4193 when n is zero then a machine-dependent default is used.
4194 (-falign-labels): Document that when n is zero then a
4195 machine-dependent default is used and that -falign-labels =1
4196 is equivalent to -fno-align-labels.
4197 (-falign-loops): Likewise.
4198 (-falign-jumps): Likewise.
4200 2003-07-06 Art Haas <ahaas@airmail.net>
4202 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
4205 2003-07-06 James E Wilson <wilson@tuliptree.org>
4207 PR optimization/9812
4208 * rtl.h (mem_for_const_double): Delete prototype.
4209 * varasm.c (mem_for_const_double): Delete function.
4210 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
4211 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
4212 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
4213 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
4214 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
4215 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
4216 comment about confused support for XFmode constants.
4218 Mon Jul 7 02:03:56 CEST 2003 Jan Hubicka <jh@suse.cz>
4220 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
4222 2003-07-06 Kazu Hirata <kazu@cs.umass.edu>
4224 * config/h8300/h8300.c: Fix comment typos.
4225 * config/h8300/h8300.md: Likewise.
4226 * config/i386/athlon.md: Likewise.
4227 * config/i386/i386.c: Likewise.
4228 * config/i386/pentium.md: Likewise.
4229 * config/ia64/ia64.c: Likewise.
4230 * config/ia64/itanium1.md: Likewise.
4231 * config/ia64/itanium2.md: Likewise.
4232 * config/m32r/m32r.md: Likewise.
4233 * config/m68hc11/m68hc11.c: Likewise.
4234 * config/mcore/mcore.c: Likewise.
4235 * config/mips/sr71k.md: Likewise.
4236 * config/mips/t-iris5-as: Likewise.
4237 * config/mmix/mmix.h: Likewise.
4238 * config/ns32k/ns32k.h: Likewise.
4239 * config/ns32k/NOTES: Fix a typo.
4241 2003-07-06 Andreas Jaeger <aj@suse.de>
4243 * stmt.c: Convert remaining prototypes to ISO C90.
4244 * cfglayout.c: Likewise.
4245 * dbxout.c: Likewise.
4247 * genemit.c: Likewise.
4249 * basic-block.h: Convert prototypes to ISO C90.
4250 * c-parse.in: Likewise.
4251 * c-pragma.h: Likewise.
4252 * c-typeck.c: Likewise.
4253 * cfghooks.h: Likewise.
4254 * cfgloopanal.c: Likewise.
4255 * dbxout.h: Likewise.
4256 * debug.h: Likewise.
4257 * dwarf2asm.h: Likewise.
4259 * gengtype-lex.l: Likewise.
4260 * sched-int.h: Likewise.
4261 * timevar.c: Likewise.
4263 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
4265 * c-common.h (c_comon_handle_filename,
4266 c_common_missing_arguement): New.
4267 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
4268 LANG_HOOKS_MISSING_ARGUMENT): New.
4269 * c-opts.c (missing_arg): Rename c_common_missing_argument,
4270 update to be an appropriate langhook.
4271 (c_common_handle_option): Don't handle filenames.
4272 (c_common_handle_filename): New.
4273 * hooks.c (hook_void_constcharptr,
4274 hook_bool_constcharptr_size_t_false): New.
4275 * hooks.h (hook_void_constcharptr,
4276 hook_bool_constcharptr_size_t_false): New.
4277 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
4278 LANG_HOOKS_MISSING_ARGUMENT): New.
4279 (LANG_HOOKS_INITIALIZER): Update.
4280 * langhooks.h (struct lang_hooks): Add handle_filename and
4282 * opts.c (handle_option): Don't handle filenames here, but ...
4283 (handle_options): ... here.
4284 (common_handle_option): Don't handle missing arguments here.
4285 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
4286 LANG_HOOKS_MISSING_ARGUMENT): New.
4288 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
4290 * Makfile.in: Remove traces of mbchar.
4291 * c-parse.in (MULTIBYTE_CHARS): Remove.
4292 * config.in (MULTIBYTE_CHARS): Remove.
4293 * configure: Remove --enable-mbchar.
4294 * configure.in: Remove --enable-mbchar.
4295 * mbchar.c, mbchar.h: Remove.
4296 * system.h: Poison MULTIBYTE_CHARS.
4297 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
4298 * config/linux.h (MULTIBYTE_CHARS): Remove.
4299 * config/svr4.h (MULTIBYTE_CHARS): Remove.
4300 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
4302 2003-07-06 Andreas Jaeger <aj@suse.de>
4304 * varray.c (varray_check_failed): Fix typo.
4306 * unroll.c: Convert prototypes to ISO C90.
4307 * varasm.c: Likewise.
4308 * varray.c: Likewise.
4309 * varray.h: Likewise.
4310 * vmsdbgout.c: Likewise.
4311 * xcoffout.c: Likewise.
4312 * xcoffout.h: Likewise.
4314 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
4316 * gcov-io.h: Add a local time stamp.
4317 (struct gcov_info): Add stamp field.
4318 (gcov_truncate): New.
4319 * coverage.c (read_counts_file): Skip the stamp.
4320 (coverage_begin_output): Write the stamp.
4321 (build_gcov_info): Declare and init the stamp.
4322 (coverage_finish): Only unlink data file, if stamp is zero.
4323 * gcov-dump.c (dump_file): Dump the stamp.
4324 * gcov.c (bbg_stamp): New.
4325 (release_structures): Clear bbg_stamp.
4326 (read_graph_file): Read stamp.
4327 (read_count_file): Check stamp.
4328 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
4330 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
4332 * tree.h (default_flag_random_seed): Remove.
4333 * toplev.h (local_tick): Declare.
4334 * tree.c (flag_random_seed, default_flag_random_seed): Move to
4336 (append_random_chars): Don't call default_flag_random_seed.
4337 * toplev.c (flag_random_seed): Define here. Set local_tick.
4338 (local_tick): Define.
4339 (randomize): New, moved from tree.c.
4340 (print_switch_values): Adjust.
4341 (toplev_main): Call randomize.
4343 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
4345 * tree.h (crc32_string): Declare.
4346 * tree.c (append_random_chars): Remove.
4347 (crc32_string): New.
4348 (get_file_function_name_long): Use crc32_string here.
4350 2003-07-06 Andreas Jaeger <aj@suse.de>
4352 * gcc.c: Convert prototypes to ISO C90.
4354 * gcov-dump.c: Likewise.
4355 * gcov-iov.c: Likewise.
4357 * genattrtab.h: Likewise.
4359 * global.c: Likewise.
4360 * graph.c: Likewise.
4361 * graph.h: Likewise.
4362 * hosthooks.h: Likewise.
4363 * hooks.h: Likewise.
4364 * hooks.c: Likewise.
4365 * hashtable.h: Likewise.
4366 * hashtable.c: Likewise.
4367 * haifa-sched.c: Likewise.
4368 * integrate.h: Likewise.
4369 * integrate.c: Likewise.
4370 * input.h: Likewise.
4371 * ifcvt.c: Likewise.
4373 * langhooks-def.h: Likewise. Add extern to prototypes.
4374 * langhooks.c: Likewise.
4375 * langhooks.h: Likewise.
4377 * local-alloc.c: Likewise.
4378 * loop-init.c: Likewise.
4379 * loop-unroll.c: Likewise.
4380 * loop-unswitch.c: Likewise.
4382 * loop.h: Likewise. Add extern to prototypes.
4383 * machmode.h: Likewise.
4385 * mbchar.c: Likewise.
4386 * mbchar.h: Likewise.
4387 * mkdeps.c: Likewise.
4388 * mkdeps.h: Likewise.
4389 * optabs.c: Likewise.
4390 * optabs.h: Likewise.
4391 * output.h: Likewise.
4392 * gccspec.c: Likwise.
4393 * postreload.c: Likewise.
4394 * prefix.c: Likewise.
4395 * prefix.h: Likewise.
4396 * print-rtl.c: Likewise.
4397 * print-tree.c: Likewise.
4398 * profile.c: Likewise.
4399 * read-rtl.c: Likewise.
4402 * recog.c: Likewise.
4403 * recog.h: Likewise.
4404 * reg-stack.c: Likewise.
4405 * regclass.c: Likewise.
4406 * regmove.c: Likewise.
4407 * regrename.c: Likewise.
4409 * reload.c: Likewise.
4410 * reload.h: Likewise.
4411 * reload1.c: Likewise.
4412 * reorg.c: Likewise.
4413 * resource.c: Likewise.
4414 * resource.h: Likewise.
4415 * rtl-error.c: Likewise.
4418 * rtlanal.c: Likewise.
4419 * sbitmap.c: Likewise.
4420 * sbitmap.h: Likewise.
4421 * scan-decls.c: Likewise.
4423 * sched-deps.c: Likewise.
4424 * sched-ebb.c: Likewise.
4425 * sched-int.h: Likewise.
4426 * sched-rgn.c: Likewise.
4427 * sched-vis.c: Likewise.
4428 * sibcall.c: Likewise.
4429 * simplify-rtx.c: Likewise.
4430 * sreal.c: Likewise.
4431 * sreal.h: Likewise.
4432 * ssa-ccp.c: Likewise.
4433 * ssa-dce.c: Likewise.
4436 * stack.h: Likewise.
4438 * stor-layout.c: Likewise.
4439 * stringpool.c: Likewise.
4440 * target.h: Likewise.
4441 * timevar.c: Likewise.
4442 * timevar.h: Likewise.
4443 * tlink.c: Likewise.
4444 * tracer.c: Likewise.
4445 * tree-inline.c: Likewise.
4446 * tree-inline.h: Likewise.
4450 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
4452 * combine.c (nonzero_bits1): Fix a warning.
4454 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
4456 * config/h8300/h8300.c (compute_mov_length): Correct the
4457 length of loading CONST0_RTX (SFmode).
4459 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
4461 * toplev.c (output_clean_symbol_name): Remove.
4462 * toplev.h (output_clean_symbol_name): Remove.
4463 * config/alpha/alpha.c (unicosmk_output_module_name): Use
4464 lbasename & clean_symbol_name.
4466 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
4468 * ggc.h: Follow spelling conventions.
4469 * config/i386/i386.c: Likewise.
4470 * config/i386/winnt.c: Likewise.
4471 * config/rs6000/rs6000.c: Likewise.
4473 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
4475 * bt-load.c: Fix comment typos.
4476 * c-incpath.c: Likewise.
4478 * cfgcleanup.c: Likewise.
4479 * cfgloop.h: Likewise.
4480 * cfgloopmanip.c: Likewise.
4481 * cfgrtl.c: Likewise.
4482 * diagnostic.h: Likewise.
4483 * dwarfout.c: Likewise.
4484 * emit-rtl.c: Likewise.
4485 * et-forest.c: Likewise.
4486 * et-forest.h: Likewise.
4489 * genattr.c: Likewise.
4491 * langhooks.h: Likewise.
4492 * local-alloc.c: Likewise.
4493 * loop-unroll.c: Likewise.
4494 * loop-unswitch.c: Likewise.
4495 * ra-build.c: Likewise.
4496 * regclass.c: Likewise.
4497 * regmove.c: Likewise.
4498 * rtl.def: Likewise.
4499 * rtlanal.c: Likewise.
4500 * sched-ebb.c: Likewise.
4501 * sched-rgn.c: Likewise.
4502 * simplify-rtx.c: Likewise.
4504 * tracer.c: Likewise.
4507 2003-07-05 Zack Weinberg <zack@codesourcery.com>
4509 * cppcharset.c: Use the correct return type for the fallback iconv
4512 Sat Jul 5 16:18:53 CEST 2003 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4514 Blame to Jan Hubicka <jh@suse.cz>
4515 * cfglayout.c (record_effective_endpoints): Split insns before
4516 first basic block correctly.
4518 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4520 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
4521 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
4522 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
4524 2003-07-05 Andreas Jaeger <aj@suse.de>
4526 * genattrtab.c (write_attr_get): Revert part of last patch to
4527 always write out a prototype.
4529 * genemit.c (gen_split): Readd lost unused attributes in last
4532 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4534 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
4535 different from header.
4537 2003-07-05 Andreas Schwab <schwab@suse.de>
4539 * config/m68k/m68k.c: Remove code protected by CRDS.
4540 * config/m68k/m68k.md: Likewise.
4542 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
4545 * c-opts.c (permit_fortran_options): New.
4546 (c_common_init_options): Accept fortran front end options if
4547 it looks like we might be preprocessing Fortran.
4548 (c_common_handle_option): Don't reject switch if permit_fotran_options.
4550 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4552 * genattr.c (internal_dfa_insn_code): Output prototype.
4553 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
4554 * genautomata.c: Likewise.
4555 * genconditions.c: Likewise.
4556 * genemit.c: Likewise.
4557 * genextract.c: Likewise.
4558 * gengenrtl.c: Likewise.
4559 * gengtype.c: Likewise.
4560 * genopinit.c: Likewise.
4561 * genoutput.c: Likewise.
4562 * genpeep.c: Likewise.
4563 * genrecog.c: Likewise.
4565 2003-07-04 Zack Weinberg <zack@codesourcery.com>
4567 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
4568 (struct cpp_options): Add narrow_charset, wide_charset,
4569 bytes_big_endian fields. Remove EBCDIC field.
4570 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
4572 * cpphash.h: Include <iconv.h> if we have it, otherwise
4573 provide a dummy definition of iconv_t.
4574 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
4575 (_cpp_valid_ucn): Update prototype.
4576 (_cpp_destroy_iconv): New prototype.
4578 * doc/cpp.texi: Document character set handling.
4579 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
4580 * doc/extend.texi: Delete entire section on multiline strings.
4581 Rewrite section on __FUNCTION__ etc now that these are
4584 * cppucnid.tab, cppucnid.pl: New files.
4585 * cppucnid.h: New generated file.
4586 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
4587 (iconv_open, iconv, iconv_close): Provide dummy definitions
4589 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
4590 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
4591 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
4592 cpp_interpret_string, narrow_str_to_charconst,
4593 wide_str_to_charconst): New.
4594 (ucn_valid_in_identifier): Use a binary search through the
4595 ucnranges table defined in cppucnid.h, not a long chain of if
4597 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
4598 character names are only valid in C++ and C99" to a warning.
4599 Issue the "meaning of \[uU] is different in traditional C"
4600 warning here. Take care not to let iconv see an invalid UCS
4601 value if we get a malformed UCN. Issue an error if we don't
4603 (cpp_interpret_charconst): Moved here from cpplex.c. Use
4604 cpp_interpret_string to do the heavy lifting.
4606 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
4607 narrow_charset, wide_charset fields of options structure.
4608 (cpp_destroy): Call _cpp_destroy_iconv.
4609 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
4610 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
4611 (cpp_interpret_charconst): Moved to cppcharset.c.
4612 * cpplib.c (dequote_string): Delete.
4613 (interpret_string_notranslate): New.
4614 (do_line, do_linemarker): Use interpret_string_notranslate.
4616 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
4618 * c-common.c (fname_string, combine_strings): Delete.
4619 * c-common.h (fname_string, combine_strings): Delete prototypes.
4620 * c-lex.c (ignore_escape_flag): Delete.
4621 (cb_ident): Use cpp_interpret_string, not lex_string.
4622 (get_nonpadding_token): New function.
4623 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
4624 Adjust calls to lex_string. Don't write *value twice.
4625 (lex_string): Now handles string constant concatenation.
4626 Most of the work handed off to cpp_interpret_string.
4627 Call fix_string_type here.
4628 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
4629 FUNC_NAME, throughout.
4630 (OBJC_STRING): New token type.
4631 (primary:STRING): No need to call fix_string_type here.
4632 (primary:objc_string): Make that OBJC_STRING.
4633 (objc_string nonterminal): Delete.
4634 (yylexname): Delete code to handle fake string constants.
4635 (yylexstring): Delete entirely.
4636 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
4637 to handle CPP_ATSIGN.
4639 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
4640 * c-opts.c (missing_arg, c_common_handle_option): Handle
4641 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
4642 (c_common_init): Set cpp_opts->bytes_big_endian, not
4643 cpp_opts->EBCDIC. Call cpp_init_iconv.
4644 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
4645 (TARGET_EBCDIC): Delete default definition.
4647 * objc/objc-act.c (build_objc_string_object): No need to
4648 handle string constant concatenation.
4650 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
4652 * doc/install.texi: Fix typos.
4653 * doc/invoke.texi: Likewise.
4654 * doc/tm.texi: Likewise.
4656 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
4658 * config/pa/fptr.c: Fix comment typos.
4659 * config/pa/pa-64.h: Likewise.
4660 * config/pa/pa.c: Likewise.
4661 * config/pa/pa.h: Likewise.
4662 * config/rs6000/603.md: Likewise.
4663 * config/rs6000/7xx.md: Likewise.
4664 * config/rs6000/darwin.h: Likewise.
4665 * config/rs6000/freebsd.h: Likewise.
4666 * config/rs6000/rs6000.c: Likewise.
4667 * config/rs6000/rs6000.md: Likewise.
4668 * config/rs6000/spe.h: Likewise.
4670 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
4672 * config/s390/2064.md: Change GNU CC to GCC.
4673 * config/s390/2084.md: Likewise.
4674 * config/s390/fixdfdi.h: Likewise.
4675 * config/s390/linux.h: Likewise.
4676 * config/s390/s390-modes.def: Likewise.
4677 * config/s390/s390-protos.h: Likewise.
4678 * config/s390/s390.c: Likewise.
4679 * config/s390/s390.h: Likewise.
4680 * config/s390/s390.md: Likewise.
4681 * config/s390/s390x.h: Likewise.
4683 2003-07-04 Jeff Law <law@redhat.com>
4686 * expr.c (do_store_flag): Pass in the correct result type
4687 when calling fold_single_bit_test.
4688 * fold-const.c (fold_single_bit_test): Use result_type for the
4689 result when folding a sign bit test.
4691 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
4693 * opts.c (common_handle_options): Negate sense of -falign- switches.
4695 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
4697 * Makefile.in: Replace PWD with PWD_COMMAND.
4699 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4701 * cfgloopanal.c (count_strange_loop_iterations): New static function.
4702 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
4703 Handle strange loops.
4705 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
4707 * install.texi: Even the g77 manpage is derived from
4708 the full g77 manual.
4710 2003-07-04 Zack Weinberg <zack@codesourcery.com>
4712 * ABOUT-NLS: Delete.
4713 * intl: Delete entire directory.
4714 * aclocal.m4: Include ../config/gettext.m4. Delete
4715 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
4716 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
4717 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
4718 Remove intl/Makefile from all_outputs.
4719 * configure, config.in: Regenerate.
4720 * Makefile.in: Expunge all references to intl subdirectory.
4721 Add -I../intl to INCLUDES.
4722 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
4724 2003-07-04 Roger Sayle <roger@eyesopen.com>
4726 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
4727 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
4729 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
4731 PR c++/5287, PR c++/7910, PR c++/11021
4732 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
4733 dllimport attribute if function is defined at declaration, but
4734 report error instead. Likewise for dllimport'd variable
4735 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
4736 declared within functions, Report error if dllimport or dllexport
4737 symbol is not global.
4738 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
4739 if defined after declaration or if inlined. Don't allow definition
4740 of static data members of C++ classes. Don't dllimport virtual
4742 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
4743 (i386_pe_mark_dllimport): Remove unnecessary checks.
4744 (i386_pe_encode_section_info): Warn if the dllimport attribute
4745 and symbol prefix have been instantiated and then overridden.
4747 * doc/extend.texi: Document dllimport and dllexport attributes.
4749 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
4751 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
4753 * config/kaos.h (CPP_PREDEFINES): Delete.
4754 (TARGET_OS_CPP_BUILTINS): New.
4756 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4758 * c-aux-info.c: Include toplev.h after c-tree.h.
4759 * c-common.c: Likewise.
4760 (GCC_DIAG_STYLE): Undef.
4761 * c-semantics.c (GCC_DIAG_STYLE): Define.
4762 * c-tree.h (GCC_DIAG_STYLE): Likewise.
4763 * diagnostic.h (inform): Move prototype to toplev.h.
4764 * jump.c: Include diagnostic.h before toplev.h.
4765 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
4766 (warning, error, fatal_error, pedwarn, sorry, inform,
4767 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
4769 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4771 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
4772 at all if edge is not specified.
4773 (can_copy_bbs_p, copy_bbs): New.
4774 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
4775 * cfgloop.c (get_loop_body): Comment more precisely.
4776 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
4777 (scale_bbs_frequencies): Fix comment typo.
4778 (can_duplicate_loop_p): Use can_copy_bbs_p.
4779 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
4781 2003-07-03 Devang Patel <dpatel@apple.com>
4783 * c-opts.c (c_common_parse_file): Remove extra
4784 debug_hooks->start_source_file call.
4786 2003-07-03 Roger Sayle <roger@eyesopen.com>
4788 * real.c (real_trunc, real_floor, real_ceil): New functions
4789 to implement trunc, floor and ceil respectively.
4790 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
4791 * builtins.c (integer_valued_real_p): New function to test if
4792 a floating point expression has an integer valued result.
4793 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
4794 foo(x) where foo is an integer rounding function. Similarly,
4795 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
4796 (double)(int)x when both foo and bar are integer rounding
4797 functions and we don't need to honor errno.
4798 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
4799 New functions to fold trunc, floor and ceil.
4800 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
4801 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
4802 to fold BUILT_IN_CEIL*.
4803 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
4804 the remaining integer rounding functions.
4806 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
4808 * config/sparc/sparc.c (function_arg_partial_nregs): Use
4809 SPARC_INT_ARG_MAX to determine where to split unnamed
4810 complex FP arguments.
4812 Thu Jul 3 20:36:47 CEST 2003 Jan Hubicka <jh@suse.cz>
4814 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
4815 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
4816 (merge_blocks_move_predecessor_nojumps,
4817 merge_blocks_move_successor_nojumps): Use merge_blocks.
4818 (try_optimize_cfg): Use merge_blocks_move.
4819 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
4820 (merge_blocks_nomove): Rename to rtl_merge_blocks.
4821 (cfg_layout_create_basic_block): New.
4822 (rtl_can_merge_blocks): New.
4823 (cfg_layout_split_block): Do not alloc aux by hand.
4824 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
4826 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
4827 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
4828 * cfgloopmanip.c (loop_split_edge_with): Likewise.
4829 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
4831 * basic-block.h (basic_block_def): Add field 'rbi'.
4832 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
4833 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
4834 * cfg.c (entry_exit_blocks): Add new field.
4835 * cfglayout.c: Include alloc-pool.h;
4836 (cfg_layout_pool): New.
4837 (record_effective_endpoints, fixup_reorder_chain,
4838 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
4840 (cfg_layout_initialize_rbi): New function.
4841 (cfg_layout_initialize): Use it.
4842 (cfg_layout_finalize): Clear rbi fields.
4843 * cfglayout.h (RBI): Kill.
4844 (cfg_layout_initialize_rbi): Declare.
4845 * cfgloopmanip.c (copy_bbs): Use rbi.
4846 (record_exit_edges): Likewise.
4847 (duplicate_loop_to_header_edge): Likewise.
4848 * cfgrtl.c (cfg_layout_create_basic_block): Use
4849 cfg_layout_initialize_rbi.
4850 (cfg_layout_split_block): Use rbi.
4851 (cfg_layout_delete_block): Likewise.
4852 * loop-init.c (loop_optimizer_finalize): Likewise.
4853 * loop-unswitch.c (unswitch_loop): Likewise.
4854 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
4856 * cfgrtl.c: Update comments.
4857 (try_redirect_by_replacing_jump): New argument.
4858 (redirect_branch_edge): Break out from ...
4859 (rtl_redirect_edge_and_branch): ... this one.
4860 (update_cfg_after_block_merging): Break out from ...
4861 (rtl_merge_blocks): ... this one.
4862 (cfg_layout_split_edge): New.
4863 (cfg_layout_merge_blocks): New.
4864 (cfg_layout_can_merge_blocks_p): New.
4865 (cfg_layout_redirect_edge_and_branch): Reorganize.
4866 (cfg_layout_rtl_cfg_hooks): Fill in.
4867 (cfg_layout_delete_block): Kill barriers.
4868 * cfganal.c (can_fallthru): Deal with exit blocks
4869 * cfglayout.c (cfg_layout_function_header): New function
4870 (record_effective_endpoints): Record function header.
4871 (fixup_reorder_chain): Fixup dead jumptables; place header
4873 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
4874 * bb-reorder.c (cfg_layout_initialize): Update call.
4875 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
4876 edges in cfglayout mode.
4877 * cfglayout.c (cleanup_unconditional_jumps): Kill.
4878 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
4879 * cfglayout.h (cfg_layout_initialize): Update prototype.
4880 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
4881 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
4882 * flow.c (propagate_block): Do not crash when basic block ends
4883 by first insn in the chain.
4884 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
4886 * tracer.c (tracer): Update call of cfg_layout_initialize.
4888 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4890 * Makefile.in: Use dependency variables in lieu of explicit
4893 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
4895 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
4896 * tree.h: ...to here.
4898 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
4900 * config/s390/2064.md: Fix comment typos.
4901 * config/s390/2084.md: Likewise.
4902 * config/s390/s390.c: Likewise.
4903 * config/s390/s390.md: Likewise.
4904 * config/sh/sh.c: Likewise.
4905 * config/sh/sh.h: Likewise.
4906 * config/sh/sh.md: Likewise.
4907 * config/sparc/sparc.c: Likewise.
4908 * config/sparc/sparc.h: Likewise.
4909 * config/sparc/sparc.md: Likewise.
4910 * config/stormy16/stormy16.c: Likewise.
4911 * config/stormy16/stormy16.h: Likewise.
4912 * config/stormy16/stormy-abi: Fix a typo.
4914 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
4916 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
4918 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4920 * config/mips/mips.h (save_argv): Delete.
4922 2003-07-03 Roger Sayle <roger@eyesopen.com>
4925 * fold-const.c (extract_muldiv_1): There's nothing that can be done
4926 if the expression is a SAVE_EXPR.
4928 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
4930 * config/m32r/m32r.c: Fix comment typos.
4931 * config/m68hc11/m68hc11.c: Likewise.
4932 * config/m68hc11/m68hc11.h: Likewise.
4933 * config/m68k/m68k.c: Likewise.
4934 * config/mcore/mcore.c: Likewise.
4935 * config/mcore/mcore.h: Likewise.
4936 * config/mcore/mcore.md: Likewise.
4937 * config/mips/mips.c: Likewise.
4938 * config/mips/mips.h: Likewise.
4939 * config/mips/mips.md: Likewise.
4940 * config/mips/netbsd.h: Likewise.
4941 * config/mn10300/mn10300.c: Likewise.
4943 2003-07-03 Andreas Schwab <schwab@suse.de>
4945 * dbxout.c (pending_bincls): Move decl down inside
4946 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
4948 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
4950 * rtl.h (NOTE_DATA): Refer to whole union.
4951 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
4953 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
4955 PR optimization/11381
4956 * simplify-rtx.c (simplify_relational_operation): Check that
4957 two equal operands have no side-effects before simplifying
4960 2003-07-02 Jeff Law <law@redhat.com>
4962 * expr.c (do_store_flag): Remove special case folding for
4963 single bit tests. Instead call back into the commonized folder
4965 * fold-const.c (fold_single_bit_test): New function, mostly
4966 extracted from do_store_flag, with an additional case extracted
4968 (fold): Call fold_single_bit_test appropriately.
4969 * tree.h (fold_single_bit_test): Prototype.
4971 2003-07-02 Zack Weinberg <zack@codesourcery.com>
4973 * system.h: Include filenames.h.
4974 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
4975 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
4976 define based on HAVE_DOS_BASED_FILE_SYSTEM.
4977 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
4978 * config/i386/xm-mingw32.h: Don't define
4979 HAVE_DOS_BASED_FILE_SYSTEM,
4980 DIR_SEPARATOR, or DIR_SEPARATOR_2.
4981 * doc/hostconfig.texi: Update to match.
4983 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
4984 config/i386/cygwin.h:
4985 Use IS_ABSOLUTE_PATH throughout.
4986 * gcc.c (DIR_UP): Delete, unused.
4987 * protoize.c (IS_SAME_PATH): Define in terms of
4989 (is_abspath): Delete.
4991 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
4993 * config/i386/emmintrin.h: Fix comment typos.
4994 * config/i386/i386.c: Likewise.
4995 * config/i386/i386.h: Likewise.
4996 * config/i386/sco5.h: Likewise.
4997 * config/ia64/ia64.c: Likewise.
4998 * config/ia64/itanium2.md: Likewise.
5000 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
5002 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
5004 (emit_bincl_stab): Same.
5005 (emit_pending_bincls): Same.
5007 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
5009 * config/h8300/h8300.c (compute_mov_length): Fix the length of
5010 loading CONST0_RTX (SFmode).
5011 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
5012 'G' to CONST0_RTX (SFmode).
5013 * config/h8300/h8300.md (movsf_h8300): Change the first
5015 (movsf_h8300h): Likewise.
5017 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
5019 * c-common.h (c_common_init_options): New prototype.
5020 * c-opts.c (deferred_size): Remove.
5021 (defer_opt): Array is now pre-allocated.
5022 (c_common_init_options): Pre-allocate deferred_opts. Make
5023 lang_flags unsigned.
5024 (push_command_line_options): Free deferred_opts.
5025 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
5026 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
5027 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
5028 * langhooks.h (struct lang_hooks): New prototype for init_options.
5029 * main.c (main): Cast argv.
5030 * opts.c (handle_option, handle_options): Update prototypes.
5031 (decode_options): save_argc, save_argv are not global. Constify.
5032 * opts.h (decode_options): New prototype.
5033 * toplev.c (general_init): New protoype.
5034 (save_argv): Make static.
5035 (save_argc): Remove.
5036 (print_switch_values, general_init): Constify.
5037 (toplev_main): Save argv.
5038 * toplev.h (toplev_main): Update prototype.
5039 (save_argc, save_argv): Remove.
5041 2003-07-02 David Edelsohn <edelsohn@gnu.org>
5043 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
5044 (emit_bincl_stab): Same.
5045 (emit_pending_bincls): Same.
5047 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
5050 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
5052 2003-07-02 Andreas Schwab <schwab@suse.de>
5054 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
5056 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
5058 PR optimization/11210
5059 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
5060 about the behaviour with regard to bitfields.
5061 * fold-const (decode_field_reference): Record outermost type in
5062 case the expression is a NOP. Strip all NOPs. Set the signedness
5063 to that of the outermost type (if any) when the bitsize is equal
5064 to the size of the type.
5066 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
5068 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
5069 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
5070 (adddi3_internal_3, addsi3_internal_2): Likewise.
5072 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
5074 * config/mips/mips.c (machine_function): Add new fields:
5075 ignore_hazard_length_p and all_noreorder_p.
5076 (mips_flag_delayed_branch): New variable.
5077 (override_options): Treat '/' as an operand punctuation character.
5078 Set up mips_flag_delayed_branch.
5079 (print_operand): Handle '/'.
5080 (mips_output_function_prologue): Put the whole function in
5081 .set noreorder and .set nomacro if all_noreorder_p is true.
5082 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
5083 (mips16_optimize_gp): Remove "first insn" parameter.
5084 (mips16_lay_out_constants): New function, split out from mips_reorg.
5085 (mips_avoid_hazard, mips_avoid_hazards): New functions.
5086 (mips_reorg): For mips16 code, call mips16_lay_out_constant
5087 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
5088 do delayed-branch scheduling followed by hazard detection.
5089 (mips_adjust_insn_length): Only account for hazards if
5090 !ignore_hazard_length_p.
5091 (mips_output_load_label): Add a nop to the o32 sequence if
5092 the target suffers from load delays.
5093 (mips_output_conditional_branch): Add %/ to the end of branches.
5094 (mips_output_division): Fill the branch delay slot with %#.
5095 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
5096 instructions. End all other %* branches with %/.
5097 (ffssi2, ffsdi2): Fix lengths.
5098 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
5099 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
5100 (fix_truncsfsi2_macro): Likewise.
5101 (mov_lwl): Set hazard to "none".
5102 (ashldi3_internal): Fill the branch delay slot with %#.
5103 (ashrdi3_internal, lshrdi3_internal): Likewise.
5104 (exception_receiver): Explicitly set $28.
5105 (hazard_nop): New pattern.
5107 Wed Jul 2 08:12:36 CEST 2003 Jan Hubicka <jh@suse.cz>
5109 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
5110 before calling tree_inlinable_function_p.
5112 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5114 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
5115 <internal/stdio_core.h> too.
5116 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
5117 <internal/wchar_core.h> too.
5118 Substitute va_list uses in inline definition.
5119 * fixinc/fixincl.x: Regenerate.
5121 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5123 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
5124 Undef before redefinition.
5125 (LABEL_AFTER_LOC): Likewise.
5126 (DEFAULT_SIGNED_CHAR): Likewise.
5127 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
5130 * config/mips/iris3.h: Remove, unused.
5131 * config/mips/iris4.h: Likewise.
5133 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
5135 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
5136 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
5139 * config/mips/iris5.h: Move explicit includes ...
5140 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
5142 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
5143 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
5146 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
5147 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
5150 * config/mips/iris6.h: Fix IRIX spelling.
5151 (MULTILIB_DEFAULTS): Undef before redefinition.
5153 * config/mips/iris6.h: Move explicit includes ...
5154 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
5156 Wed Jul 2 02:16:48 CEST 2003 Jan Hubicka <jh@suse.cz>
5158 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
5159 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
5160 Use next_needed field instead of aux to maintain the queue.
5161 * cgraph.h (cgraph_node): Add next_needed.
5162 (cgraph_varpool_node): Add next_needed; remove aux.
5163 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
5165 Wed Jul 2 02:12:51 CEST 2003 Jan Hubicka <jh@suse.cz>
5167 * cgraphunit.c (cgraph_finalize_function): Set finalized.
5168 (cgraph_finalize_function): Do not examine inlinablility.
5169 (cgraph_finalize_compilation_unit): Do it here.
5170 * cgraph.h (cgraph_local_info): Add finalized field.
5172 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5174 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
5175 (gt_pch_restore): Likewise.
5177 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
5179 * config/alpha/alpha.c: Fix comment typos.
5180 * config/alpha/elf.h: Likewise.
5181 * config/arm/arm.c: Likewise.
5182 * config/arm/arm.h: Likewise.
5183 * config/arm/arm.md: Likewise.
5184 * config/arm/t-arm-coff: Likewise.
5185 * config/arm/t-strongarm-pe: Likewise.
5186 * config/arm/xscale-elf.h: Likewise.
5187 * config/avr/avr.h: Likewise.
5189 2003-07-01 Jeff Law <law@redhat.com>
5191 * stmt.c (any_pending_cleanups): Remove another redundant test.
5193 2003-07-01 David Edelsohn <edelsohn@gnu.org>
5194 J"orn Rennecke <joern.rennecke@superh.com>
5196 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
5199 2003-07-01 Devang Patel <dpatel@apple.com>
5201 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
5203 (struct dbx_file): New members - bincl_status, pending_bincl_name and
5205 (pending_bincls): New.
5206 (dbxout_init): Initialize new dbx_file members.
5207 (dbxout_start_source_file): Same.
5208 (emit_bincl_stab): New function.
5209 (emit_pending_bincls): Same.
5210 (emit_pending_bincls_if_required): Same.
5211 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
5213 (dbxout_begin_block): Emit pending BINCL stabs.
5214 (dbxout_end_block): Same.
5215 (dbxout_function_decl): Same.
5216 (dbxout_continue): Same.
5217 (dbxout_type): Same.
5218 (dbxout_class_name_qualifiers): Same.
5219 (dbxout_symbol): Same.
5220 (dbxout_symbol_location): Same.
5221 (dbxout_parms): Same.
5223 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5225 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
5226 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
5228 2003-07-01 Andreas Jaeger <aj@suse.de>
5230 * fold-const.c: Convert prototypes to ISO C90.
5231 * function.c: Likewise.
5232 * function.h: Likewise.
5234 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
5236 * doc/contrib.texi: Fix typos.
5237 * doc/invoke.texi: Likewise.
5238 * doc/passes.texi: Likewise.
5239 * doc/sourcebuild.texi: Likewise.
5240 * doc/tm.texi: Likewise.
5242 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
5244 * basic-block.h: Fix comment typos.
5245 * bb-reorder.c: Likewise.
5246 * c-format.c: Likewise.
5247 * cfgcleanup.c: Likewise.
5248 * cfghooks.h: Likewise.
5249 * cfgloop.c: Likewise.
5250 * cfgloopmanip.c: Likewise.
5251 * cfgrtl.c: Likewise.
5252 * cgraph.h: Likewise.
5253 * cgraphunit.c: Likewise.
5254 * combine.c: Likewise.
5255 * convert.c: Likewise.
5256 * dbxout.c: Likewise.
5259 * diagnostic.c: Likewise.
5260 * dwarf2out.c: Likewise.
5261 * et-forest.h: Likewise.
5263 * fold-const.c: Likewise.
5264 * function.h: Likewise.
5265 * gcov-io.h: Likewise.
5268 * genautomata.c: Likewise.
5269 * ggc-common.c: Likewise.
5270 * ggc-page.c: Likewise.
5271 * loop-unroll.c: Likewise.
5272 * loop-unswitch.c: Likewise.
5274 * mips-tfile.c: Likewise.
5275 * optabs.c: Likewise.
5276 * ra-build.c: Likewise.
5277 * ra-colorize.c: Likewise.
5278 * ra-rewrite.c: Likewise.
5280 * regmove.c: Likewise.
5281 * reload.c: Likewise.
5282 * rtlanal.c: Likewise.
5283 * sched-ebb.c: Likewise.
5284 * sched-int.h: Likewise.
5285 * sched-vis.c: Likewise.
5286 * sreal.c: Likewise.
5287 * ssa-ccp.c: Likewise.
5289 * toplev.c: Likewise.
5290 * tree-inline.c: Likewise.
5291 * value-prof.c: Likewise.
5292 * value-prof.h: Likewise.
5294 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
5296 * rtl.h (emit_line_note_after): Remove.
5297 (emit_note_copy_after, emit_note_copy): New.
5298 * emit-rtl.c (reorder_insns_with_line_notes): Replace
5299 emit_line_note_after with emit_note_copy_after.
5300 (emit_insn_after_with_line_notes): Likewise.
5301 (emit_line_note_after): Kill.
5302 (emit_note_copy_after): New.
5303 (emit_note_copy): New.
5304 * function.c (emit_return_into_block): Use emit_note_copy_after.
5305 (thread_prologue_and_epilogue_insns): Likewise.
5306 * integrate.c (expand_inline_function): Use emit_note_copy.
5307 (copy_insn_list): Likewise.
5308 * unroll.c (copy_loop_body): Likewise.
5309 * cfglayout.c (duplicate_insn_chain): Likewise.
5311 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
5313 * c-tree.h (define_label): Replace filename and lineno arguments
5315 * c-decl.c (poplevel): Adjust define_label call.
5316 (pop_label_level): Likewise.
5317 (define_label): Replace filename and lineno arguments with a
5319 (store_parm_decls): Use DECL_SOURCE_LOCATION.
5320 * c-parse.in (label): Adjust define_label call.
5322 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
5324 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
5325 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
5326 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
5327 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
5328 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
5330 2003-07-01 Andreas Jaeger <aj@suse.de>
5332 * final.c: Convert prototypes to ISO C90.
5334 * flags.h: Likewise.
5335 * gcov-io.c: Likewise.
5336 * gcov-io.h: Likewise.
5338 See ChangeLog.9 for earlier changes.