1 2003-08-14 Zack Weinberg <zack@codesourcery.com>
3 * Makefile.in (tm_file): Rename tm_include_list.
4 (tm_p_file): Rename tm_p_include_list.
5 (build_xm_file): Rename build_xm_include_list.
6 (host_xm_file): Rename host_xm_include_list.
7 (xm_file): Rename xm_include_list.
8 (xm_file_list): Add to be substituted.
9 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
11 (bt-load.o): Add missing dependency on $(TM_H).
12 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
13 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
14 build_xm_file, generate both *_file_list and *_include_list
15 values from it. (xm_file_list was formerly not being generated.)
16 In *_include_list, prefix the names of all headers found in
17 $(srcdir)/config with config/. In each loop, consider only
18 the special case files that can actually appear in that list.
19 AC_SUBST all *_file_list and all *_include_list variables; do
20 not AC_SUBST the plain *_file variables.
21 * configure: Regenerate.
23 2003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
25 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
27 2003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
31 (attr_length_call): Include it here. Improve length estimate for
33 (output_call): Use targetm.binds_local_p.
35 2003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
37 * builtins.c (CASE_MATHFN): New helper macro.
38 (mathfn_built_in): Simplify and sort.
40 * protoize.c (substr): Delete, callers changed to `strstr'.
42 2003-08-13 Zack Weinberg <zack@codesourcery.com>
44 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
45 * config/iq2000/xm-iq2000.h: Delete file.
47 2003-08-13 Geoffrey Keating <geoffk@apple.com>
49 * gengtype.c (walk_type): Process a subobject before processing
50 the pointer that points to the subobject.
52 2003-08-13 Per Bothner <pbothner@apple.com>
54 * regclass.c (init_reg_modes): Make non-static.
55 Rename to init_reg_modes_once per new naming convention.
56 (init_regs): Don't call init_reg_modes here.
57 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
58 * rtl.h (init_reg_modes_once): New declaration.
59 * toplev.c (backend_init): Call init_regs after init_emit_once.
61 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
63 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
64 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
66 2003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
68 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
69 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
71 2003-08-13 Dale Johannesen <dalej@apple.com>
73 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
74 handling of decrement-and-branch farther than 32 bits.
76 2003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
78 * configure.in (make_compare_target): Move test to ...
79 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
80 * configure: Regenerate.
82 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
84 * config/mips/iris6.h: Convert to C90 prototypes.
85 * config/mips/irix6-libc-compat.c: Likewise.
86 * config/mips/mips-protos.h: Likewise.
87 * config/mips/mips.c: Likewise.
89 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
91 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
92 for selected machines. Comment heavily.
93 fixinc/fixincl.x: Rebuild.
94 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
96 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
98 * config/mips/mips.h: Tweak various comments.
99 * config/mips/mips.c: Likewise.
101 2003-08-11 James E Wilson <wilson@tuliptree.org>
103 PR optimization/11319
105 * alias.c (find_base_value, case REG): Return 0 not src if no base
108 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
110 * gcse.c (gmalloc): Fix last change.
112 2003-08-11 Roger Sayle <roger@eyesopen.com>
114 * simplify-rtx.c (simplify_binary_operation): Replace calls to
115 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
116 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
117 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
119 2003-08-11 Roger Sayle <roger@eyesopen.com>
121 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
122 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
123 typecode for an ABS_EXPR.
125 * doc/c-tree.texi: Document ABS_EXPR.
127 2003-08-11 Roger Sayle <roger@eyesopen.com>
129 * fold-const.c (fold): Optimize any associative floating point
130 operator with -funsafe-math-optimizations, not just MULT_EXPR.
132 2003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
134 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
135 information in SHmedia case too.
136 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
138 (__set_fpscr): Use an access via GOT for PIC case.
140 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
142 * configure.in (intermodule): Make switch test more portable.
143 * configure: Regenerate.
145 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
147 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
150 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
152 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
153 (grealloc): Size argument is a size_t.
154 (gcalloc): New function. Use throughout in lieu of
157 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
159 * config/ia64/ia64.c (ia64_reorg): Likewise.
160 * conflict.c (conflict_graph_new): Likewise.
161 * fixinc/fixincl.c (run_compiles): Likewise.
162 * genattrtab.c (optimize_attrs): Likewise.
163 * genrecog.c (new_decision): Likewise.
164 * haifa-sched.c (schedule_block): Likewise.
165 * hashtable.c (ht_create): Likewise.
167 2003-08-11 Bob Wilson <bob.wilson@acm.org>
169 * config/xtensa/lib2funcs.S: Fix whitespace.
170 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
171 syntax where appropriate. Remove unnecessary backslash escapes.
172 Reformat comments and fix some code formatting.
173 (extendqisi2): Rearrange conditional.
174 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
175 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
178 2003-08-11 Richard Sandiford <rsandifo@redhat.com>
180 * config/mips/mips.c: Various formatting fixes.
181 (override_options): Resync -mtune handling with gas.
182 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
183 * config/mips/mips.h: More formatting fixes.
184 (mips_abi): Move declaration.
185 * config/mips/mips.md (exception_receiver): Add mode to
188 2003-08-11 Aldy Hernandez <aldyh@redhat.com>
190 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
192 (bdesc_1arg): Remove evsplati and evsplatfi.
194 2003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
196 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
199 2003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
201 * builtins.c (expand_builtin_strcat): Optimize constant strings.
203 2003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
205 * pretty-print.c (pp_base_indent): Rename from pp_indent.
206 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
207 (struct c_pretty_print_info): Add more fields.
208 (pp_c_left_paren): Move to c-pretty-print.c.
209 (pp_c_right_paren): Likewise.
210 (pp_c_left_brace): Likewise.
211 (pp_c_right_brace): Likewise.
212 (pp_c_left_bracket): Likewise.
213 (pp_c_right_bracket): Likewise.
214 (pp_c_declarator): Declare.
215 (pp_c_direct_declarator): Likewise.
216 (pp_c_specifier_qualifier_list): Likewise.
217 (pp_c_type_id): Likewise.
218 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
219 (pp_c_type_qualifier_list): New.
220 (pp_c_pointer): Likewise.
221 (pp_c_parameter_type_list): Likewise.
222 (pp_c_function_definition): Likewise.
223 (pp_c_id_expression): Likewise.
224 (pp_c_simple_type_specifier): Tidy.
225 (pp_c_unary_expression): Likewise.
226 (pp_c_expression): Likewise.
227 (pp_c_pretty_printer_init): Likewise.
228 (pp_c_specifier_qualifier_list): Rework..
229 (pp_c_abstract_declarator): Likewise.
230 (pp_c_postfix_expression): Likewise.
231 (pp_c_primary_expression): Likewise.
232 (pp_c_cast_expression): Likewise.
233 (pp_c_direct_abstract_declarator): Likewise.
234 (pp_c_storage_class_specifier): Likewise.
235 (pp_c_function_specifier): Likewise.
236 (pp_c_declaration_specifiers): Likewise.
237 (pp_c_direct_declarator): Likewise.
238 (pp_c_declarator): Likewise.
239 (pp_c_declaration): Likewise.
240 (pp_c_statement): Likewise.
241 (pp_c_integer_constant): Rename from pp_c_integer_literal.
242 (pp_c_character_constant): Rename from pp_c_character_literal.
243 (pp_c_bool_constant): Rename from pp_c_bool_literal.
244 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
245 (pp_c_floating_constant): Rename from pp_c_real_literal.
246 (pp_c_constant): Rename from pp_c_literal.
247 * c-lang.c: Include diagnostic.h and c-pretty-print.h
248 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
249 (c_initialize_diagnostics): New.
250 * Makefile.in (c-lang.o): Update dependency.
252 2003-08-10 Nathan Sidwell <nathan@codesourcery.com>
254 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
256 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
258 * config/mips/mips.c (mips_no_mips16_string): Remove.
259 (override_options): Don't handle -mips16 as part of -mipsN.
260 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
261 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
262 (TARGET_OPTIONS): Remove -mno-mips16.
264 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
266 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
267 (coprocessor2_operand): Likewise.
268 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
269 (lookup_name): Remove declaration.
270 (abort_with_insn): Remove. Replace all uses with fatal_insn.
271 (mips16, mips_abicalls): Remove.
272 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
273 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
274 (coprocessor_operand, coprocessor2_operand): Remove.
275 (override_options): Don't set mips16 or mips_abicalls.
276 (print_operand): Don't expect SIGN_EXTEND operands.
277 (mips_secondary_reload_class): Likewise.
278 (mips_output_conditional_branch): Remove disabled long-branch code.
279 * config/mips/mips.h (call_used_regs): Remove declaration.
280 (may_call_alloca): Likewise.
281 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
282 (mips_abicalls, mips16): Remove declarations.
283 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
284 (CC1_SPEC): Remove outdated comment.
285 (MIPS_VERSION, MACHINE_TYPE): Remove.
286 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
287 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
288 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
289 (PUSH_ROUNDING): Likewise.
290 (ASSEMBLER_SCRATCH_REGNUM): Remove.
291 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
292 and mips16 with TARGET_MIPS16.
294 2003-08-09 Per Bothner <pbothner@apple.com>
296 * cppinit.c (cpp_read_main_file): Split out source-independent
297 initialization to separate function ...
298 (cpp_post_options): New function.
299 * cppfiles.c (cpp_stack_file): Rename public name to ...
300 (_cpp_stack_file): New internal function name.
301 * cpplib.h: Update accordingly.
302 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
303 (cpp_read_main_file): Don't initialize line here.
304 * c-opts.c (c_common_post_options): Call cpp_post_options.
305 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
306 * fix-header.c (read_scan_file): Call cpp_post_options.
308 2003-08-09 Per Bothner <per@bothner.com>
310 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
312 2003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
314 * pa.c (pa_asm_output_mi_thunk): Fix typo.
316 2003-08-09 Neil Booth <neil@daikokuya.co.uk>
318 PR preprocessor/11839
319 * cppfiles.c (open_file): Handle ENOTDIR.
321 2003-08-09 Richard Sandiford <rsandifo@redhat.com>
324 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
326 2003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
328 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
329 source/destination is not a register operand.
331 2003-08-08 Richard Henderson <rth@redhat.com>
334 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
335 RETURN_ADDRESS_POINTER_REGNUM.
336 (ia64_expand_prologue): Don't frob it.
337 (ia64_output_function_epilogue): Likewise.
338 (ia64_return_addr_rtx): New.
339 (ia64_split_return_addr_rtx): New.
340 * config/ia64/ia64-protos.h: Update.
341 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
342 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
343 (GENERAL_REGNO_P): Don't check it.
344 (AR_*_REGNUM): Renumber.
345 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
346 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
347 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
348 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
349 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
350 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
351 (movdi_ret_addr): New.
353 2003-08-08 Geoffrey Keating <geoffk@apple.com>
355 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
357 2003-08-08 Roger Sayle <roger@eyesopen.com>
359 * tree.h (get_identifier) Define a macro form of get_identifier
360 that calls get_identifier_with_length when the string is constant.
361 (get_identifier_with_length): Change type of second argument to
363 * stringpool.c (get_identifier): Undefine the macro before giving
364 the function definition.
365 (get_identifier_with_length): Change type of second argument to
366 size_t in function definition.
367 * hashtable.c (calc_hash): Change type of second argument to size_t.
368 (ht_lookup): Change type of third argument to size_t. Reorganize
369 to speed-up the cases where the hash table slot is empty, or the
370 first probe matches (i.e. there isn't a collision).
371 * hashtable.h (ht_lookup): Adjust function prototype.
373 2003-08-08 Bernardo Innocenti <bernie@develer.com>
377 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
379 2003-08-08 Neil Booth <neil@daikokuya.co.uk>
381 * common.opt: Add debug switches.
382 * flags.h (use_gnu_debug_info_extensions): Boolify.
383 * opts.c (write_symbols, debug_info_level,
384 use_gnu_debug_info_extensions): Move from toplev.c.
385 (set_debug_level): New.
386 (common_handle_options): Handle debug switches.
387 (print_help): Display target options directly.
388 * toplev.c (debug_hooks): Don't initialize.
389 (write_symbols, debug_info_level,
390 use_gnu_debug_info_extensions): Move to opts.c.
391 (debug_args, display_help, decode_g_option): Remove.
392 (process_options): Set no debug if level zero here,
393 and no-debug-hooks. Error here if impossible debug format selected.
394 * toplev.h (display_help, decode_g_option): Remove.
396 2003-08-08 Richard Sandiford <rsandifo@redhat.com>
398 * tree.c (get_file_function_name_long): Fix size of alloca() area.
400 2003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
402 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
403 and gcc_cv_prog_cmp_skip.
404 * configure: Regenerate.
406 2003-08-08 Stan Cox <scox@redhat.com>
408 * config/iq2000: New port.
409 * config.gcc (iq2000-*-elf): Added.
410 * doc/install.texi (Specific): Add iq2000 description.
412 2003-08-08 Andreas Schwab <schwab@suse.de>
414 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
415 and insert missing empty argument.
416 * configure: Regenerate.
418 2003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
420 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
421 (attr_length_millicode_call): Likewise.
422 (attr_length_call): Likewise. Revise some maximum insn lengths.
423 (attr_length_indirect_call): Likewise.
424 (output_call): Fix thinko that added extra nop.
425 * pa.h (IN_NAMED_SECTION_P): Define.
428 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
429 __STDC_EXT__ when using C++ dialect.
431 2003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
433 * sh.c (calc_live_regs): If the return address pointer is live,
435 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
436 for saves / restores.
437 (sh_expand_epilogue): If sh_media_register_for_return returns a
438 register number, flag the instructions that restores PR_MEDIA_REG
440 Remove dead update of offset.
441 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
442 we can use the result of get_hard_reg_initial_val.
443 * sh.md (UNSPEC_RA): New constant.
444 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
445 (load_ra). Handle UNSPEC_RA.
446 (sibcall_media): Use PR_MEDIA_REG.
448 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
449 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
450 needs saving on SHmedia.
452 2003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
454 * config/s390/s390.md: Replace all occurrences of \\t with \t.
456 2003-08-07 Richard Sandiford <rsandifo@redhat.com>
458 * local-alloc.c (combine_regs): Fix comment typo.
460 2003-08-06 Zack Weinberg <zack@codesourcery.com>
462 * c-decl.c (builtin_decls): Replace with first_builtin_decl
463 and last_builtin_decl.
464 (c_init_decl_processing): Initialize both.
465 (c_reset_state): Iterate from first_builtin_decl to
466 last_builtin_decl inclusive to reintroduce builtins.
468 2003-08-06 David Mosberger <davidm@hpl.hp.com>
470 * doc/extend.texi (Function Attributes): Document the IA-64 version
471 of the "model" attribute.
473 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
474 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
475 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
477 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
478 (ia64_encode_section_info): Likewise.
479 (ia64_attribute_table): Add "model" attribute.
480 (TARGET_ENCODE_SECTION_INFO): Define.
481 (small_addr_symbolic_operand): New function.
482 (got_symbolic_operand): Return 0 for a symbolref to an object
483 in the small address area.
484 (enum ia64_addr_area): New type.
485 (small_ident1): New variable.
486 (small_ident2): Likewise.
487 (init_idents): New function.
488 (ia64_get_addr_area): Likewise.
489 (ia64_encode_addr_area): Likewise.
490 (ia64_encode_section_info): Likewise.
491 (ia64_expand_load_address): For symbolic references to objects in
492 the small-address-area, load the address via gen_rtx_SET() (which,
493 eventually, will expand into "addl").
495 2003-08-06 Per Bothner <pbothner@apple.com>
497 * line-map.h (fileline): New typedef.
498 (struct line_map, linemap_add, linemap_lookup): Use it.
499 * input.h (struct location_s): Comment notes that long-term we want
500 to replace it by fileline.
502 2003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
504 Fix SHcompact exception handling:
505 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
506 by the prologue, return a MEM with return_address_pointer_rtx
508 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
509 (RETURN_ADDR_OFFSET): Don't define.
510 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
511 registers that are visible in compact mode. Show that SHmedia
512 registers still exist in compact mode, even if there are not
514 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
515 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
516 and DW_EH_PE_pcrel for pic data.
517 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
518 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
519 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
520 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
521 * sh.md (movsi_media-1): New splitter.
523 2003-08-06 Graeme Peterson <gp@qnx.com>
525 * config/i386/nto.h: New.
526 * config/i386/t-nto: New.
527 * config.gcc (i[34567]86-*-nto-qnx*): New.
529 2003-08-06 Phil Edwards <pme@gcc.gnu.org>
531 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
533 2003-08-06 Alan Modra <amodra@bigpond.net.au>
535 * calls.c (load_register_parameters): Arrange for call_fusage to
536 report the whole register as used when shifting to the msb.
538 2003-08-05 Roger Sayle <roger@eyesopen.com>
540 * builtins.c (expand_builtin): When not optimizing, call the library
541 function for all builtins that have library functions (except alloca).
543 2003-08-05 Alexandre Oliva <aoliva@redhat.com>
545 * c.opt: Introduce -fworking-directory.
546 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
547 * c-common.h (flag_working_directory): Declare.
548 * c-common.c (flag_working_directory): Define.
549 * c-opts.c (c_common_handle_options): Set it.
550 (sanitize_cpp_opts): Set...
551 * cpplib.h (struct cpp_options): ... working_directory option.
552 (struct cpp_callbacks): Add dir_change.
553 * cppinit.c (read_original_filename): Call...
554 (read_original_directory): New. Look for # 1 "directory//"
556 (cpp_read_main_file): Call dir_change callback if working_directory
558 * gcc.c (cpp_unique_options): Pass -g*.
559 * c-lex.c (cb_dir_change): New.
560 (init_c_lex): Set dir_change callback.
561 * toplev.c (src_pwd): New static variable.
562 (set_src_pwd, get_src_pwd): New functions.
563 * toplev.h (get_src_pwd, set_src_pwd): Declare.
564 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
565 * dwarf2out.c (gen_compile_unit_die): Likewise.
566 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
568 2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
570 * pretty-print.h (pp_set_line_maximum_length): Make macro.
571 (pp_set_prefix): Likewise.
572 (pp_destroy_prefix): Likewise.
573 (pp_remaining_character_count_for_line): Likewise.
574 (pp_clear_output_area): Likewise.
575 (pp_formatted_text): Likewise.
576 (pp_last_position_in_text): Likewise.
577 (pp_emit_prefix): Likewise.
578 (pp_append_text): Likewise.
579 (pp_flush): Likewise.
580 (pp_format_text): Likewise.
581 (pp_format_verbatim): Likewise.
582 (pp_tree_identifier): Tidy.
583 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
584 (pp_base_format_verbatim): Rename from pp_format_verbatim.
585 (pp_base_flush): Rename from pp_flush.
586 (pp_base_set_line_maximum_length): Rename from
587 pp_set_line_maximum_length.
588 (pp_base_clear_output_area): Rename from pp_clear_output_area.
589 (pp_base_set_prefix): Rename from pp_set_prefix.
590 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
591 (pp_base_emit_prefix): Rename from pp_emit_prefix.
592 (pp_base_append_text): Rename from pp_append_text.
593 (pp_base_formatted_text): Rename from pp_formatted_text.
594 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
595 (pp_base_remaining_character_count_for_line): Rename from
596 pp_remaining_character_count_for_line.
597 * diagnostic.h (diagnostic_format_decoder): Tidy.
598 (diagnostic_flush_buffer): Likewise.
599 * c-pretty-print.h: (pp_c_string_literal): Declare.
600 (pp_c_real_literal): Likewise.
601 (pp_c_integer_literal): Likewise.
602 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
604 (pp_c_character_literal): Tidy.
605 (pp_c_string_literal): Make public.
606 (pp_c_bool_literal): Likewise.
607 (pp_c_integer_literal): Likewise.
608 (pp_c_real_literal): Likewise.
610 * Makefile.in (C_PRETTY_PRINT_H): New variable.
611 (c-pretty-print.o): Update dependence.
613 2003-08-05 Chris Demetriou <cgd@broadcom.com>
615 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
616 ".set nomacro" state.
617 (fix_truncsfsi2_macro): Likewise.
619 2003-08-05 Steven Bosscher <steven@gcc.gnu.org>
621 * tree.h (DID_INLINE_FUNC): Remove macro.
622 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
623 add tree check for FUNCTION_DECL.
624 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
625 (struct tree_decl): Rename inlined_function_flag to
626 declared_inline_flag.
627 * c-common.h (c_lang_decl): Remove.
628 (DECL_ESTIMATED_INSNS): Remove.
629 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
630 (DECL_DECLARED_INLINE_P): Remove.
631 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
632 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
633 (finish_function): Make uninlinable a bool. Fixup call to
634 tree_inlinable_function_p() and fix some code style issues.
635 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
636 * cgraph.c (dump_cgraph): Likewise.
637 * cgraphunit.c (cgraph_decide_inlining): Likewise
638 (cgraph_finalize_compilation_unit): Likewise.
639 Also update call to tree_inlinable_function_p().
640 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
641 look at DECL_DECLARED_INLINE and reverse logic.
642 * print-tree.c (print_node): Likewise.
643 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
644 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
646 * tree-inline.c (inlinable_function_p): Split up in this function to
647 check for basic inlining inhibiting conditions, and new
648 limits_allow_inlining() function. Warn if inlining is impossible
649 because the inline candidate calls alloca or uses sjlj exceptions.
650 (limits_allow_inlining): this new function to check if the inlining
651 limits are satisfied. Throttle from currfn_max_inline_insns, not from
652 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
653 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
655 (tree_inlinable_function_p): Make a bool. Update call to
657 (expand_call_inline): Use limits_allow_inlining() when not in
658 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
659 instead see if the function was declared `inline'.
661 2003-08-05 Josef Zlomek <zlomekj@suse.cz>
663 * gcse.c (try_replace_reg): Fix updating of note.
665 2003-08-04 Roger Sayle <roger@eyesopen.com>
668 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
669 logic in negate_expr, i.e. we don't invert (A-B) for floating
670 point types unless flag_unsafe_math_optimizations.
672 2003-08-04 Roger Sayle <roger@eyesopen.com>
674 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
675 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
676 for floating point expressions with -ffast-math.
677 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
678 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
680 2003-08-04 Roger Sayle <roger@eyesopen.com>
682 * c-common.c (flag_noniso_default_format_attributes): Delete.
683 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
684 (c_attrs_initialized): Delete.
685 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
686 always call c_init_attributes.
687 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
688 set c_attrs_initialized when done.
689 (c_common_insert_default_attributes): Delete.
690 * c-common.h (flag_noniso_default_format_attributes): Delete.
691 (c_coomon_insert_default_attributes): Delete prototype.
692 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
693 flag_noniso_default_format_attributes.
695 * c-decl.c (c_insert_default_attributes): Delete.
696 * c-tree.h (c_insert_default_attributes): Delete prototype.
698 * attribs.c (decl_attributes): Don't call insert_default_attributes
699 langhook. Update function description comment.
700 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
701 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
702 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
703 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
705 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
708 2003-08-04 Richard Sandiford <rsandif@redhat.com>
710 * config/mips/mips.c (override_options): Disable -G on targets that
711 have no .section support.
712 (mips_select_section): Use default_select_section for such targets.
714 2003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
716 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
717 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
718 * fixinc/fixincl.x: Rebuild.
719 * fixinc/tests/base/regexp.h: New test.
721 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
723 * c-ppoutput.c (cb_line_change): Don't skip line changing while
724 parsing macro arguments in the top-level context.
726 2003-08-04 Neil Booth <neil@daikokuya.co.uk>
728 * config.in: Remove HAVE_LSTAT.
729 * configure, configure.in: Don't test for lstat.
731 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
733 * opts.c (decode_options): Do language-specific initialization for
734 the global diagnostic context.
735 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
736 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
737 (LANG_HOOKS_INITIALIZER): Adjust.
738 * langhooks.h (struct lang_hooks): Add new field
739 initialize_diagnostics.
740 * langhooks.c (lhd_initialize_diagnostics): Define.
742 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
744 * pretty-print.h: Adjust macro definitions.
745 * pretty-print.c (pp_newline): Rename to pp_base_newline.
746 (pp_character): Rename to pp_base_character.
747 (pp_string): Rename to pp_base_string.
748 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
749 (pp_newline): Likewise. Adjust.
752 2003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
754 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
755 BUILT_IN_LLABS): Move to miscellaneous section.
757 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
759 PR preprocessor/11534
760 * cppexp.c (parse_defined): Warn only if -pedantic.
762 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
764 * cppfiles.c (stack_file): Use file path.
766 2003-08-02 Roger Sayle <roger@eyesopen.com>
768 * builtin-types.def (BT_SSIZE): New primitive type.
769 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
770 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
771 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
772 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
773 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
774 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
775 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
776 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
777 few functions that define default attributes using it.
778 * c-common.c (c_common_insert_default_attributes): Do nothing.
780 * doc/extend.texi: Document these "new" builtins.
782 2003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
784 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
785 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
786 when -mieee-fp set and -shared not set.
787 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
789 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
791 * cppfiles.c (struct _cpp_file): Rename once_only_next to
792 next_file. Remove import and pragma_once, add once_only.
793 (find_file): Add new file structures to the all_files list.
794 (should_stack_file): Mark #import-ed files once-only, and
795 don't stack them if the file has already been stacked.
796 (_cp_mark_file_once_only): Simplify.
797 * cpphash.h (struct cpp_reader): Rename once_only_files
798 to all_files. Rename saw_pragma_once to seen_once_only.
799 (_cpp_mark_file_once_only): Update prototype.
800 * cpplib.c (do_pragma_once): Update.
802 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
804 * cppfiles.c (ENOTDIR): Remove.
805 (open_file_in_dir): Rename find_file_in_dir. Handle errors
806 other than ENOENT here.
807 (once_only_file_p): Rename should_stack_file.
808 (find_file, open_file_failed, read_file_guts): Report errors
810 (read_file): Move pch handling to should_stack_file.
811 (should_stack_file): Handle PCH and once-only issues, and
813 (stack_file): Don't do file reads.
815 2003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
817 * libgcov.c (gcov_exit): Cleanup and fix.
818 * profile.c (compute_value_histograms): Don't try to read profiles
819 that are not present.
821 2003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
823 * builtins.def: Categorize.
825 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
827 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
829 2003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
831 * config.gcc: Enable posix threads by default on darwin.
833 2003-08-01 Jakub Jelinek <jakub@redhat.com>
835 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
836 even if nehedges1 is 0.
838 2003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
840 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
841 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
842 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
845 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
846 * fixinc/fixincl.x: Regenerate.
847 * fixinc/tests/base/math.h: Regenerate to match test_text change.
849 2003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
851 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
853 2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
855 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
856 for accesses to exc_ptr.
858 2003-08-01 Geoffrey Keating <geoffk@apple.com>
860 * doc/sourcebuild.texi (Front End Directory): Don't make references
861 to libsubdir, it's not part of the interface to frontends.
862 * doc/install.texi (Configuration): Help users read faster by saying
863 that GCC's configure options are the standard autoconf ones.
864 Mention --libdir. Update the default rules for finding the
865 assembler. Don't use libsubdir since we haven't said what it means.
866 (Specific): In the Solaris 7 notes, update the place to put the
868 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
869 * doc/cpp.texi (Search Path): Actually, the search path
870 depends on libdir, which can relocate with cpp.
871 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
872 now a private interface between the Makefile and the driver.
874 2003-08-01 Richard Henderson <rth@redhat.com>
876 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
878 * varasm.c (lookup_constant_def): New function.
879 * rtl.h (lookup_constant_def): Declare it.
880 * dwarf2out.c (loc_descriptor_from_tree): Use it.
881 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
883 2003-08-01 Zack Weinberg <zack@codesourcery.com>
885 * c-decl.c (gettags, pushdecl_function_level): Delete.
886 (last_function_parm_vars): Rename last_function_parm_others.
887 (current_function_parm_vars): Rename current_function_parm_others.
888 (struct c_scope): Rewrite comment explaining this data structure.
889 Add names_last, blocks_last, parms_last fields. Rename
890 incomplete_list to incomplete.
891 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
892 (poplevel): Ignore second argument. No need to nreverse
893 anything. Restructure such that each list is processed
894 exactly once. Use 'const location_t *locus' syntactic sugar
895 variable where useful. Issue unused variable warnings
896 ourselves, do not rely on function.c.
897 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
898 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
899 (implicitly_declare): decl cannot be error_mark_node.
900 (undeclared_variable): Manipulate scope structure directly.
901 (c_make_fname_decl): Likewise.
902 (getdecls, c_init_decl_processing): Fix comment.
903 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
905 (grokparms): No need to nreverse parms list.
906 (store_parm_decls_newstyle): Set up the parms_last and
907 names_last fields of the new scope too.
908 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
909 on parms to begin with; check this under ENABLE_CHECKING. Set
911 (check_for_loop_decls): Refer directly to current_scope->tags.
912 Use consistent quote style in diagnostics.
913 (c_write_global_declarations): The names list is not backward.
915 * c-common.h: Don't prototype gettags.
916 * c-parse.in: Call poplevel with second argument 0 always.
918 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
920 * builtins.def: Resort builtins.
922 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
924 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
925 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
926 Prepend "__builtin_" onto NAME with string concatenation. Remove
927 explicit "__builtin_" from each macro call.
929 Reformat entire file.
931 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
933 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
934 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
936 2003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
938 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
939 CCL1, or CCL2 modes with floating point operations.
941 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
942 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
943 "*subdf3_cconly"): New insns.
944 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
946 2003-08-01 Neil Booth <neil@daikokuya.co.uk>
948 * Makefile.in: Refine dependencies.
949 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
950 * c.opt: Update help for -Wimport.
951 * cppfiles.c: Include hashtab.h. Update comments.
952 (stack_file): Read the file before updating dependencies.
953 (once_only_file_p): Be smarter about marking once-only files.
954 (_cpp_mark_file_once_only): Correct the check for existence on
956 (open_file_failed): Use name not path, which is NULL.
957 * cpphash.h: Don't include hashtab.h.
958 (struct _cpp_file): Remove.
959 (struct cpp_reader): Update.
960 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
961 * cpplib.h (struct cpp_options): Remove warn_import.
962 (cpp_simplify_path): Remove.
964 2003-08-01 Nathan Sidwell <nathan@codesourcery.com>
967 * doc/extend.texi (Statement Expressions): Document C++ semantics.
969 2003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
971 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
973 2003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
975 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
977 * builtins.def: Likewise.
979 2003-07-31 Jason Merrill <jason@redhat.com>
981 * Makefile.in (bubblestrap): Don't require a previous full
984 * expr.c (mostly_zeros_p): No longer static.
985 * tree.h: Declare it.
986 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
987 unless we need to do substitutions.
989 2003-07-31 Roger Sayle <roger@eyesopen.com>
991 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
992 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
993 as pow(x,2.0) when the latter will be expanded back into x*x.
994 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
995 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
996 pow can never set errno when used with an integer exponent.
997 Always use expand_powi when exponent is -1, 0, 1 or 2.
998 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
999 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
1000 the pow forms of these expressions.
1002 2003-07-31 Geoffrey Keating <geoffk@apple.com>
1004 * Makefile.in (libexecdir): New.
1005 (libsubdir): Use gcc instead of gcc-lib.
1006 (libexecsubdir): New.
1007 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
1008 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
1010 (installdirs): Make libexecsubdir.
1011 (install-common): Put executables in libexecsubdir.
1012 (itoolsdir): Use libexecsubdir.
1013 (itoolsdatadir): New.
1014 (install-mkheaders): Separate data files and executables.
1015 (install-collect2): Put executables in libexecsubdir.
1016 (uninstall): Remove libexecsubdir.
1017 * mkheaders.in: Update for new arrangement of files.
1019 (libexecsubdir): New.
1020 (itoolsdir): Use libexecsubdir.
1021 (itoolsdatadir): New.
1022 * gcc.c (gcc_libexec_prefix): New.
1023 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
1024 (standard_exec_prefix_1): Use libexec.
1025 (standard_exec_prefix_2): New.
1026 (standard_libexec_prefix): New.
1027 (process_command): Update for new arrangement of files. Compute
1028 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
1030 2003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
1032 * inclhack.def (stdio_va_list): Avoid bogus replacement which
1033 triggers on Interix.
1034 * fixincl.x: Regenerate.
1036 2003-07-31 Jakub Jelinek <jakub@redhat.com>
1038 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
1039 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
1041 2003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1043 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
1045 2003-07-31 Per Bothner <pbothner@apple.com>
1047 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
1048 (add_input_filename): New function.
1049 (handle_options): Call add_input_filename directly instead of
1051 * opts.h (in_fnames, num_in_fnames): Moved here.
1052 (add_input_filename): Declare.
1053 * c-decl.c: Need to #include opts.h.
1054 * Makefile.in (c-decl.o): Also depends on opts.h.
1055 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
1056 (c_common_handle_filename): Replaced by add_input_filename.
1057 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
1059 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
1060 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
1061 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
1062 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
1064 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1066 * combine.c (try_combine): Set JUMP_LABEL for newly created
1069 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1071 * fold-const.c (fold): Fold some comparisons of bit operations.
1073 Thu Jul 31 19:49:53 CEST 2003 Jan Hubicka <jh@suse.cz>
1075 * cgraph.c (create_edge): Fix typo.
1076 * i386.c (pic_symbolic_operand): Reorder tests.
1078 2003-07-31 Nathan Sidwell <nathan@codesourcery.com>
1080 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
1082 (Gcov Data Files): Update.
1084 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1086 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
1089 * gthr-posix.c: New file.
1090 * gthr-posix.h: Define _REENTRANT if missing.
1091 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
1093 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
1095 * config/alpha/t-osf-pthread: New file.
1097 * fixinc/inclhack.def (alpha_pthread): New fix.
1098 * fixinc/fixincl.x: Regenerate.
1099 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
1101 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
1103 Fixes PR bootstrap/9330.
1105 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1107 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
1110 * configure: Regenerate.
1112 2003-07-31 Vladimir Makarov <vmakarov@redhat.com>
1114 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
1117 2003-07-30 Roger Sayle <roger@eyesopen.com>
1119 * builtins.def: Alphabetize.
1121 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
1123 * doc/c-tree.texi: Normalize spellings of "lowercase" and
1125 * doc/cpp.texi: Likewise.
1126 * doc/md.texi: Likewise.
1127 * doc/rtl.texi: Likewise.
1128 * doc/tm.texi: Likewise.
1130 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
1132 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
1133 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
1136 2003-07-30 Chris Demetriou <cgd@broadcom.com>
1138 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
1139 macros before defining them.
1141 2003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
1143 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
1144 UNSPECV_BLOCKAGE): New constants.
1145 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
1146 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
1147 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
1148 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
1150 (all insns and expanders): Write output control string as brace block
1151 where appropriate. Remove \-escapes for doublequote characters.
1153 Thu Jul 31 01:04:19 CEST 2003 Jan Hubicka <jh@suse.cz>
1155 * gcse.c (insert_store): Fix typo in previous patch.
1157 2003-07-30 Neil Booth <neil@daikokuya.co.uk>
1159 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
1161 2003-07-30 Andi Kleen <ak@muc.de>
1163 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
1165 2003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1167 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
1168 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
1169 GCOV_N_VALUE_COUNTERS): New.
1170 * profile.c (compute_value_histograms): New static function.
1171 (branch_prob): Read back the value histograms.
1172 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
1173 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
1174 * value-prof.c: Add comment on reading the profile.
1175 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
1176 * doc/invoke.texi (-fprofile-values): Document behavior with
1177 -fbranch-probabilities.
1179 2003-07-30 David Edelsohn <edelsohn@gnu.org>
1181 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
1183 2003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
1185 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
1188 Wed Jul 30 19:12:10 CEST 2003 Jan Hubicka <jh@suse.cz>
1190 * gcse.c (insert_store): Ignore fake edges.
1192 * c-common.c (flag_vtable_gc): Kill.
1193 * c-common.g (flag_vtable_gc): Kill.
1194 * c-opts (c_common_handle_option): Kill.
1195 * c.opt (fvtable-gc): Kill.
1196 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
1197 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
1198 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
1200 * invoke.texi (-ftable-gc): Kill documentation.
1202 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
1203 just because function body is missing.
1205 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
1207 2003-07-30 Ranjit Mathew <rmathew@hotmail.com>
1209 * unwind-sjlj.c: Fix typo in file description.
1211 2003-07-30 Alan Modra <amodra@bigpond.net.au>
1213 * calls.c (load_register_parameters): When shifting reg sized values
1214 to the msb, move the value to a reg first.
1216 2003-07-29 Geoffrey Keating <geoffk@apple.com>
1218 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
1219 * line-map.h (linemap_add): Update comments.
1220 * line-map.c (linemap_add): Update comments, interpret zero-length
1221 filename as "<stdin>".
1223 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
1225 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
1227 2003-07-29 Zack Weinberg <zack@codesourcery.com>
1229 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
1230 New static variables.
1231 (struct c_scope): Add parms and warned_forward_parm_decls
1232 fields; remove parm_order.
1233 (storedecls, storetags): Delete.
1234 (poplevel): Also clear bindings on the parms chain.
1235 (pushdecl): Handle forward declarations of parameters, and
1236 chain PARM_DECLs on the parms list, not the names list.
1237 (lookup_name_current_level): Check for PARM_DECLs on the parms
1239 (push_parm_decl): Don't update parm_order.
1240 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
1241 warning, only once per parameter list, and set TREE_ASM_WRITTEN
1242 on the decls here. Then move the forward decls to the names list.
1243 (grokparms): Set last_function_parm_vars.
1244 (get_parm_info): Don't use gettags or getdecls. No need to
1245 extract non-parms from the parms list, or reorganize the parms
1246 list. Feed nonparms back in the TREE_TYPE of the list node
1247 returned. Issue only one error per parameter list for "void"
1248 appearing more than once in said parameter list. Collapse
1249 parmlist_tags_warning into this function to avoid double scan
1251 (start_function): Set current_function_parm_vars.
1252 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
1253 directly. Get non-parms from current_function_parm_vars; no
1254 need to extract them from the parms chain. Properly bind tags
1256 (store_parm_decls_oldstyle): No need to extract non-parameters
1257 from the parms chain, nor to store them back afterward. Move
1258 declaration to top of function, restructure code reordering
1260 (store_parm_decls): No need to save and restore warn_shadow.
1261 * c-parse.in: Don't call parmlist_tags_warning nor
1262 clear_parm_order. Call mark_forward_parm_decls when forward
1263 parm decls are encountered.
1264 * c-tree.h: Prototype mark_forward_parm_decls; not
1265 clear_parm_order or parmlist_tags_warning.
1267 2003-07-29 Geoffrey Keating <geoffk@apple.com>
1269 * c-common.c (allow_pch): Remove.
1270 * c-common.h (allow_pch): Remove.
1271 (c_common_no_more_pch): Declare.
1272 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
1273 * c-pch.c: Include hosthooks.h.
1274 (c_common_valid_pch): Don't check allow_pch.
1275 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
1276 (c_common_no_more_pch): New.
1277 * ggc-common.c: Include hosthooks.h.
1278 (gt_pch_save): Call gt_pch_get_address.
1279 (gt_pch_restore): Call gt_pch_use_address.
1280 * hooks.c (hook_voidp_size_t_null): New.
1281 (hook_bool_voidp_size_t_false): New.
1282 * hooks.h (hook_voidp_size_t_null): New.
1283 (hook_bool_voidp_size_t_false): New.
1284 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
1285 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
1286 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
1287 HOST_HOOKS_GT_PCH_USE_ADDRESS.
1288 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
1290 * doc/hostconfig.texi (Host Common): Document
1291 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
1292 * Makefile.in (c-pch.o): Depend on hosthooks.h.
1293 (ggc-common.o): Likewise.
1295 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
1296 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
1297 (pch_address_space): New.
1298 (darwin_rs6000_gt_pch_get_address): New.
1299 (darwin_rs6000_gt_pch_use_address): New.
1301 2003-07-29 Neil Booth <neil@daikokuya.co.uk>
1303 PR preprocessor/11569
1304 PR preprocessor/11649
1305 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
1306 * cppfiles.c: Completely rewritten.
1307 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
1308 struct cpp_path is now struct cpp_dir.
1309 (remove_duplicates): Don't simplify path names.
1310 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
1312 * cpphash.h: Include hashtab.h.
1313 (_cpp_file): Declare.
1314 (struct cpp_buffer): struct include_file is now struct _cpp_file,
1315 and struct cpp_path is now struct cpp_dir. Rename members.
1316 (struct cpp_reader): Similarly. New members once_only_files,
1317 file_hash, file_hash_entries, quote_ignores_source_dir,
1318 no_search_path, saw_pragma_once. Remove all_include_files and
1319 max_include_len. Make some members bool.
1320 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
1321 (_cpp_stack_file): Renamed from _cpp_read_file.
1322 (_cpp_stack_include): Renamed from _cpp_execute_include.
1323 (_cpp_init_files): Renamed from _cpp_init_includes.
1324 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
1325 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
1326 (cpp_read_next_file): Rename and move to cppfiles.c.
1327 (cpp_read_main_file): Update.
1328 * cpplib.c (run_directive): Update for renamed members.
1329 (do_include_common, _cpp_pop_buffer): Update.
1330 (do_import): Undeprecate #import.
1331 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
1332 * cpplib.h: Remove file_name_map_list.
1333 (cpp_options): Remove map_list.
1334 (cpp_dir): Rename from cpp_path. New datatype for name_map.
1335 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
1337 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
1339 * Makefile.in: Make stamp-objdir safe for parallel builds.
1341 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
1343 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
1344 (info): Depend on stmp-docobjdir.
1346 2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1348 * configure: Regenerate.
1350 Tue Jul 29 19:24:49 CEST 2003 Jan Hubicka <jh@suse.cz>
1353 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
1354 in !unit-at-a-time mode.
1356 2003-07-28 Geoffrey Keating <geoffk@apple.com>
1358 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
1361 2003-07-28 Mark Mitchell <mark@codesourcery.com>
1364 * c-common.c (shorten_compare): Take into account differences
1365 between C and C++ representation for enumeration types.
1366 * tree.h (set_min_and_max_values_for_integral_type): Declare.
1367 * stor-layout.c (set_min_and_max_values_for_integral_type): New
1368 function, broken out from ...
1369 (fixup_signed_type): ... here and ...
1370 (fixup_unsigned_type): ... here.
1372 2003-07-28 Zack Weinberg <zack@codesourcery.com>
1374 * c-decl.c: Update commentary, adjust blank lines throughout.
1375 (struct c_scope): Fix indentation. Reorder members so
1376 outer-context pointers come first, booleans last.
1377 (duplicate_decls, define_label): Use a 'locus' variable for
1378 diagnostic locations in a few more places.
1379 (warn_if_shadowing): Un-split a conditional that fits on one line.
1380 (c_init_decl_processing): No need to clear current_scope and
1381 current_function_scope.
1382 (start_decl): Merge if/else if statements with same action.
1383 (push_parm_decl): Rename old_immediate_size_expand to use
1384 save_foo convention; save/restore around entire function.
1385 (grokdeclarator): Remove unnecessary braces.
1387 2003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
1388 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
1390 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
1391 when warn_declaration_after_statement. Call pedwarn_c90, not
1392 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
1393 * c-common.c (warn_declaration_after_statement): Define.
1394 * c-common.h (warn_declaration_after_statement): Declare.
1395 * c.opt (Wdeclaration-after-statement): New.
1396 * c-errors.c (pedwarn_c90): New function.
1397 * c-opts.c (c_common_handle_option) <case
1398 OPT_Wdeclaration_after_statement>: New.
1399 * c-tree.h (pedwarn_c90): Declare.
1400 * doc/invoke.texi (Option Summary): Document
1401 -Wdeclaration-after-statement.
1402 (Warning Options): Ditto.
1404 Mon Jul 28 20:13:06 CEST 2003 Jan Hubicka <jh@suse.cz>
1406 * i386.md (memory attribute) Avoid accessing uninitialized memory
1407 for ishift1 type instructions.
1409 2003-07-28 Jakub Jelinek <jakub@redhat.com>
1411 * configure.in (--enable-checking): Add fold category.
1412 (ENABLE_FOLD_CHECKING): Define if requested.
1413 * configure: Rebuilt.
1414 * config.in: Rebuilt.
1415 * doc/install.texi: Document it.
1416 * fold-const.c: Include md5.h.
1417 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
1418 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
1419 print_fold_checksum): New functions.
1421 * fold-const.c (fold): Never modify argument passed to fold, instead
1422 change a copy and return it.
1423 * convert.c (convert_to_integer): Likewise.
1425 2003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
1427 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
1428 cleanup of junk after #else and #endif directives. Collapse repeated
1429 clauses into for statment.
1431 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
1433 2003-07-27 Zack Weinberg <zack@codesourcery.com>
1435 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
1436 (keep_next_if_subblocks): Rename next_is_function_body.
1437 (pushlevel): Adjust commentary. Always set ->keep on the
1438 outermost level of a function. Don't set ->keep_if_subblocks.
1439 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
1440 (store_parm_decls): Adjust to match.
1441 (finish_function): Adjust to match.
1442 Call poplevel with all three arguments zero.
1444 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
1445 New functions split out of store_parm_decls.
1446 Avoid unnecessary work. Use local variables consistently.
1447 (store_parm_decls): Likewise.
1449 (finish_function): No need to set functionbody flag on call to
1451 (struct language_function): Remove scope field.
1452 (c_push_function_context, c_pop_function_context): No need to
1453 save and restore current_scope.
1455 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
1457 * doc/extend.texi (Deprecated Features): Implicit typename is
1458 gone. Default args on types is going.
1460 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
1462 * Makefile.in (ifcvt.o): Depend on target.h
1463 * ifcvt.c (target.h): Include.
1464 (if_convert): Don't call mark_loop_exit_edges if we can't
1467 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1469 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
1471 2003-07-26 Richard Henderson <rth@redhat.com>
1474 * cse.c (count_reg_usage): Handle asm_operands properly.
1476 2003-07-26 Roger Sayle <roger@eyesopen.com>
1478 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
1479 (DEF_EXT_FALLBACK_BUILTIN): Delete.
1480 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
1481 the regular DEF_EXT_LIB_BUILTIN macro.
1482 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
1483 the regular DEF_LIB_BUILTIN macro.
1484 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
1485 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
1486 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
1487 DEF_EXT_LIB_BUILTIN macro.
1489 * c-decl.c (duplicate_decls): Remove code to handle builtin
1490 functions prototyped without an argument list.
1492 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
1494 * config/i386/winnt.c: Revert 2003-07-08 change.
1495 (i386_pe_section_type_flags): Remove error_with_decl here too.
1497 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
1499 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
1500 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
1501 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
1502 (v850_handle_data_area_attribute): Likewise.
1504 2003-07-26 Geoffrey Keating <geoffk@apple.com>
1506 * varasm.c (output_constant_def_contents): Use
1507 ASM_DECLARE_CONSTANT_NAME if defined.
1508 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
1509 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
1510 objects get at least one byte to prevent assembler problems.
1511 (ASM_DECLARE_CONSTANT_NAME): New.
1513 * Makefile.in (libbackend.o): Remove options_.h.
1514 (mostlyclean): Likewise.
1516 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
1517 insert a label at the end of an function under Mach-O.
1519 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
1521 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
1523 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
1525 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
1527 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
1529 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1531 * doc/passes.texi (Passes): Mention pretty-printing and
1534 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
1536 * doc/extend.texi (Function Attributes): GNU C++ does now allow
1537 unused parameter decls.
1538 (Attribute Syntax): GNU C++ does not allow label attributes to be
1541 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1543 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
1544 (objc_declare_class): Likewise.
1545 (error_with_ivar): Likewise.
1546 (start_class): Likewise.
1547 (warn_with_method): Likewise.
1549 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1551 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
1553 * calls.c (try_to_integrate): Don't use xxx_with_decl.
1554 (expand_call): Likewise.
1555 * dwarfout.c (output_reg_number): Likewise.
1556 * expr.c (expand_expr): Likewise.
1557 * function.c (assign_temp): Likewise.
1558 (uninitialized_vars_warning): Likewise.
1559 (setjmp_args_warning): Likewise.
1560 (expand_function_end): Likewise.
1561 * stmt.c (fixup_gotos): Likewise.
1562 (warn_about_unused_variables): Likewise.
1563 (expand_end_bindings): Likewise.
1564 * stor-layout.c (layout_decl): Likewise.
1565 (place_field): Likewise.
1566 * toplev.c (check_global_declarations): Likewise.
1567 (rest_of_handle_inlining): Likewise.
1568 (default_tree_printer): New function.
1569 (general_init): Initialize diagnostic machinery before routing
1570 signals to the ICE machinery. Set default tree printer.
1571 * toplev.h (pedwarn_with_decl): Remove declaration.
1572 (warning_with_decl): Likewise.
1573 (error_with_decl): Likewise.
1574 (pedwarn): Remove attribute for the time being.
1575 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
1576 * varasm.c (named_section): Likewise.
1577 (make_decl_rtl): Likewise.
1578 (assemble_variable): Likewise.
1579 (merge_weak): Likewise.
1580 (declare_weak): Likewise.
1582 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
1583 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
1584 (format_with_decl): Remove.
1585 (diagnostic_for_decl): Likewise.
1586 (pedwarn_with_decl): Likewise.
1587 (warning_with_decl): Likewise.
1588 (error_with_decl): Likewise.
1589 (diagnostic_initialize): Adjust.
1590 (diagnostic_count_diagnostic): Likewise.
1591 (announce_function): Likewise.
1592 (lhd_print_error_function): Likewise.
1593 (diagnostic_report_current_module): Likewise.
1594 (default_diagnostic_starter): Likewise.
1595 (diagnostic_report_diagnostic): Likewise.
1596 (default_diagnostic_finalizer): Likewise.
1597 (verbatim): Likewise.
1599 (warning): Likewise.
1600 * opts.c (common_handle_option): Likewise.
1601 * pretty-print.c: New file.
1602 * c-pretty-print.h (pp_base): Override.
1603 * c-pretty-print.c: Adjust use of macros throughout.
1604 (pp_buffer): New macro.
1605 (pp_newline): Likewise.
1606 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
1607 * Makefile.in (DIAGNOSTIC_H): New variable.
1608 (c-errors.o): Use it.
1609 (c-objc-common.o): Likewise.
1610 (c-common.o): Likewise.
1611 (c-opts.o): Likewise.
1612 (c-format.o): Likewise.
1613 (diagnostic.o): Likewise.
1615 (toplev.o): Likewise.
1616 (rtl-error.o): Likewise.
1617 (dwarf2out.o): Likewise.
1619 (pretty-print.o): New rule.
1621 2003-07-24 Roger Sayle <roger@eyesopen.com>
1623 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
1624 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
1625 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
1626 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
1627 (DEF_FRONT_END_LIB_BUILTIN): Delete.
1628 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
1629 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
1631 * builtins.c (build_string_literal): New function to construct
1632 a char* pointer to a string literal.
1633 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
1634 "rtx target" to be consistent with other expand_builtin_* functions.
1635 Change 3rd argument from "int unlocked" to "bool unlocked".
1636 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
1637 c-common.c to avoid front-end dependencies. Optimize printf("")
1638 as a no-op when the result isn't required. Handle embedded NULs
1640 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
1641 from c-common.c to avoid front-end dependencies. Likewise, optimize
1642 fprintf(fp,"") as a no-op when the result isn't required, evaluating
1643 fp for side-effects. Handle embedded NULs in format string.
1644 (expand_builtin_sprintf): Fix typo.
1645 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
1646 optimizing. Adjust calls of expand_builtin_fputs to match the API
1647 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
1648 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
1649 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
1651 * c-common.c (is_valid_printf_arglist): Delete.
1652 (c_expand_builtin): Delete.
1653 (c_expand_builtin_printf): Moved to builtins.c. Delete.
1654 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
1655 (c_expand_expr): No longer treat CALL_EXPRs specially.
1656 (CALLED_AS_BUILT_IN): Delete.
1658 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1660 PR optimization/11631
1661 * gcse.c (store_motion): Connect infinite loops to exit.
1663 2003-07-24 Jason Merrill <jason@redhat.com>
1665 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
1666 (boolean_true_node, boolean_false_node): Likewise.
1667 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
1668 * tree.c (build_common_tree_nodes): Init boolean_type_node.
1669 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
1670 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
1671 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
1672 (truthvalue_true_node): Renamed from boolean_true_node.
1673 (truthvalue_false_node): Renamed from boolean_false_node.
1674 * c-decl.c: Just set truthvalue_* to integer_*.
1675 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
1677 2003-07-24 Roger Sayle <roger@eyesopen.com>
1679 * c-decl.c (match_builtin_function_types): New subroutine of
1680 duplicate_decls to test whether a redeclaration of a builtin
1681 function is suitably close, i.e. the return type and all of
1682 the argument types have the same modes as the builtin expects.
1683 (duplicate_decls): Fuzzy type matching for builtin functions
1684 moved to match_builtin_function_types.
1686 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1688 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
1691 2003-07-24 Zack Weinberg <zack@codesourcery.com>
1693 * c-decl.c: Search-and-replace change 'binding level' to
1694 'scope' in commentary.
1695 (struct binding_level): Now struct c_scope.
1696 (current_binding_level): Now current_scope.
1697 (free_binding_level): Now scope_freelist.
1698 (current_function_level): Now current_function_scope.
1699 (global_binding_level): Now global_scope.
1700 (make_binding_level): Now make_scope.
1701 (pop_binding_level): Now pop_scope.
1703 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1705 * configure.in (libgcc_visibility): Add missing whitespace.
1707 2003-07-24 Richard Henderson <rth@redhat.com>
1709 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
1710 __gcc_personality_v0.
1712 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1714 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
1716 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
1718 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
1719 documentation missed from my 2003-07-09 patch.
1721 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
1723 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
1725 * configure: Rebuild.
1727 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
1730 * c-typeck.c (type_lists_compatible_p): Do not compare
1731 arguments if one of them is an error_mark_node
1733 2003-07-24 Alan Modra <amodra@bigpond.net.au>
1735 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
1736 if current_function_calls_eh_return.
1738 2003-07-23 Mark Mitchell <mark@codesourcery.com>
1740 * doc/c-tree.texi (OFFSET_TYPE): Update description.
1742 2003-07-23 Bob Wilson <bob.wilson@acm.org>
1744 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
1745 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
1746 __umodsi3, __modsi3): Increase frame size to 32.
1748 2003-07-23 Geoffrey Keating <geoffk@apple.com>
1750 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
1753 2003-07-23 Mark Mitchell <mark@codesourcery.com>
1755 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
1757 PR optimization/10679
1758 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
1760 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1762 PR target/11607 and PR target/11516
1763 * pa.md (extzv, extv, insv): Revert latter half of last patch.
1765 2003-07-22 Mark Mitchell <mark@codesourcery.com>
1767 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
1768 * varasam.c (output_constant): Likewise.
1770 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
1772 * alias.c: Fix comment formatting.
1773 * c-common.c: Likewise.
1774 * c-decl.c: Likewise.
1775 * c-opts.c: Likewise.
1776 * combine.c: Likewise.
1777 * cpplib.c: Likewise.
1778 * diagnostic.c: Likewise.
1779 * dojump.c: Likewise.
1780 * final.c: Likewise.
1781 * fold-const.c: Likewise.
1784 * ggc-page.c: Likewise.
1787 * mips-tfile.c: Likewise.
1788 * recog.c: Likewise.
1789 * regclass.c: Likewise.
1790 * regmove.c: Likewise.
1794 2003-07-22 Per Bothner <pbothner@apple.com>
1796 * line-map.c (add_line_map): Handle invalid LEAVE request.
1797 Fixes PR preprocessor/11361.
1799 2003-07-22 Per Bothner <pbothner@apple.com>
1801 * diagnostic.c.(diagnostic_report_current_module): Update to match
1802 2003-06-05 changes to push_srcloc and pop_srcloc.
1804 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
1806 * doc/trouble.texi: Better document two-stage name lookup.
1808 2003-07-22 Eric Christopher <echristo@redhat.com>
1810 * config/s390.c (s390_valid_pointer_mode): New.
1811 (TARGET_VALID_POINTER_MODE): Use.
1812 (s390_emit_prologue): Add tpf profiling hooks.
1813 (s390_emit_epilogue): Ditto.
1814 * config/s390.h (MASK_TPF): New.
1816 (POINTERS_EXTEND_UNSIGNED): Define.
1817 * config/s390.md (ptr_extend): New pattern.
1819 2003-07-22 Zack Weinberg <zack@codesourcery.com>
1821 * hashtable.c (approx_sqrt): Make static.
1822 * hashtable.h: Don't prototype approx_sqrt.
1823 * line-map.c (init_line_maps): Rename linemap_init.
1824 (free_line_maps): Rename linemap_free.
1825 (add_line_map): Rename linemap_add.
1826 (lookup_line): Rename linemap_lookup.
1827 (print_containing_files): Rename linemap_print_containing_files.
1828 * linemap.h: Update to match.
1830 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
1831 linemap routines to use new names.
1833 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
1835 * c-common.c (handle_packed_attribute): Don't pack a struct via a
1836 typedef. Propagate packedness from a main variant.
1838 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
1840 * Makefile.in (install-common): Add dependency on installdirs.
1842 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
1844 * c-common.c (c_common_type_for_mode): Return integer types for
1847 2003-07-22 Geoffrey Keating <geoffk@apple.com>
1849 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
1850 (finish_decl): Call maybe_apply_pragma_weak here.
1851 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
1852 TREE_PUBLIC and TREE_STATIC are decided.
1853 (start_function): Move call to maybe_apply_pragma_weak. Check that
1854 DECL_ASSEMBLER_NAME isn't set too early.
1856 * cpplex.c (_cpp_process_line_notes): Mention option name in
1859 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
1861 * combine.c (if_then_else_cond): Simplify the comparison of
1862 rtx against -1, 0, and 1.
1863 * loop.c (check_dbra_loop): Likewise.
1864 * optabs.c (emit_conditional_move): Likewise.
1865 (emit_conditional_add): Likewise.
1866 * config/i386/i386.md (*movsi_or): Likewise.
1867 (*movdi_or_rex6): Likewise.
1869 Tue Jul 22 00:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
1871 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
1873 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
1875 * cppfiles.c (open_file_pch): Don't put unused entries in the
1876 splay tree. Remove dead code.
1878 2003-07-21 Geoffrey Keating <geoffk@apple.com>
1880 * c-common.h (num_in_fnames): Declare.
1881 (c_static_assembler_name): Move from here...
1882 * c-tree.h (c_static_assembler_name): ... to here.
1883 * c-opts.c: Don't include langhooks-def.h.
1884 (c_static_assembler_name): Move to c-decl.c.
1885 (num_in_fnames): Make externally visible.
1886 * c-decl.c: Include langhooks-def.h.
1887 (c_static_assembler_name): Move from c-opts.c.
1888 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
1889 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
1891 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
1892 when it's not needed.
1894 2003-07-21 Jakub Jelinek <jakub@redhat.com>
1896 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
1897 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
1898 (rs6000_emit_prologue): Save FPRs inline if set.
1900 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
1902 * config/ia64/ia64.md (prefetch): Support predicate.
1904 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
1906 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
1907 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
1910 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
1912 PR optimization/11536
1913 * unroll.c (loop_iterations): Do not replace a register holding
1914 the final value by its equivalent before the loop if it is not
1917 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
1919 * doc/extend.texi: Fixes to spelling, grammar, and diction.
1921 2003-07-21 Ben Elliston <bje@wasabisystems.com>
1923 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
1924 (V850 Options): Spelling fixes.
1926 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
1928 * doc/invoke.texi: Fixes to style, grammar and diction.
1930 2003-07-20 Roger Sayle <roger@eyesopen.com>
1932 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
1933 * system.h (SMALL_STACK): Poison obsolete target macro.
1934 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
1936 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
1938 * configure.in: Cache the results of testing for cmp's capabilities.
1939 * configure: Regenerate.
1941 2003-07-20 Mark Mitchell <mark@codesourcery.com>
1944 * dwarf2out.c (gen_enumeration_type_die): Remember that
1945 enumerators can be unsigned.
1947 2003-07-19 Zack Weinberg <zack@codesourcery.com>
1949 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
1950 (push_label_level, pop_label_level): Kill.
1951 (struct binding_level): Rename level_chain to outer.
1952 Add outer_function field. Change parm_flag, function_body,
1953 keep, keep_if_subblocks to 1-bit bitfields of type bool.
1954 (current_function_level): New variable.
1955 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
1956 (keep_next_level, declare_parm_level, warn_if_shadowing):
1958 (struct language_function): Kill named_labels, shadowed_labels fields.
1959 (c_init_decl_processing, start_function, c_push__function_context)
1960 (c_pop_function_context): No need to muck with named_labels nor
1963 (make_binding_level): No need to clear the structure here.
1964 (pop_binding_level): Always operate on current_binding_level.
1965 Update current_function_level if necessary.
1966 (pushlevel): Don't clear named_labels. Update current_function_level
1967 if necessary. Use "true" and "false" where appropriate.
1968 (poplevel): Diagnose labels defined but not used, or vice
1969 versa, and clear out label-meanings leaving scope, while
1970 walking down the decls list, for all binding levels.
1971 Handle LABEL_DECLs appearing in the shadowed list.
1972 pop_binding_level takes no arguments.
1973 (pushdecl_function_level): Use current_function_level.
1975 (make_label, bind_label): New static functions.
1976 (declare_label): New exported function.
1977 (lookup_label, define_label): Rewritten for new data structure.
1978 (shadow_label): Kill.
1980 * c-tree.h: Prototype declare_label; don't prototype
1981 push_label_level, pop_label_level, nor shadow_label.
1982 * c-parse.in: Remove all calls to push_label_level and
1983 pop_label_level. Use declare_label for __label__ decls.
1985 * doc/extend.texi: Clarify that __label__ can be used to
1986 declare labels with local scope in any nested block, not
1987 just statement expressions. Cross-reference nested functions
1988 section from local labels section.
1990 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1992 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
1994 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
1996 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
1998 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2000 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
2001 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
2003 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
2005 * config/s390/s390.c (legitimize_pic_address): Access local symbols
2006 relative to the GOT instead of relative to the literal pool base.
2007 (s390_output_symbolic_const): Handle new GOT-relative accesses.
2008 * config/s390/s390.md ("call"): Access local functions and PLT stubs
2009 relative to the GOT instead of relative to the literal pool base.
2010 ("call_value"): Likewise.
2011 ("call_value_tls"): Likewise.
2013 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
2014 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
2015 (s390_chunkify_finish): Likewise.
2016 (s390_chunkify_cancel): Likewise.
2017 (s390_reorg): Adapt caller.
2018 (find_base_register_in_addr,
2019 find_base_register_ref, replace_base_register_ref): Delete.
2020 (find_ltrel_base, replace_ltrel_base): New functions.
2021 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
2022 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
2023 base vs. index register usage.
2024 (struct constant_pool): Remove 'anchor'.
2025 (s390_add_anchor): Delete.
2026 (s390_dump_pool): Remove anchor handling.
2027 * config/s390/s390.md ("reload_anchor"): Remove.
2029 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
2030 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
2031 (s390_emit_prologue): Use it.
2032 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
2033 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
2034 hard-code register 14.
2035 * config/s390/s390-protos.h (s390_load_got): Declare.
2037 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
2038 Support TImode constants.
2039 * config/s390/s390.md ("consttable_ti"): New.
2040 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
2042 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
2043 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
2044 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
2045 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
2046 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
2047 New symbolic constants.
2048 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
2049 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
2050 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
2051 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
2052 symbolic UNSPEC values.
2053 * config/s390/s390.c (larl_operand, s390_short_displacement,
2054 bras_sym_operand, s390_cannot_force_const_mem,
2055 s390_delegitimize_address, s390_decompose_address,
2056 legitimize_pic_address, s390_output_symbolic_const,
2057 s390_function_profiler): Use symbolic UNSPEC values.
2059 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2061 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
2062 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
2063 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
2064 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
2065 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
2066 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
2067 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
2068 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
2069 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
2070 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
2071 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
2072 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
2073 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
2074 postreload.c prefix.c print-tree.c protoize.c ra-build.c
2075 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
2076 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
2077 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
2078 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
2079 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
2080 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
2083 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2085 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
2086 * toplev.h (warning): Remove attribute.
2088 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2090 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
2091 (pop_label_level): Likewise.
2092 (duplicate_decls): Likewise.
2093 (implicitly_declare): Likewise.
2094 (shadow_label): Likewise.
2095 (start_decl): Likewise.
2096 (finish_decl): Likewise.
2097 (grokdeclarator): Likewise.
2098 (get_parm_info): Likewise.
2099 (detect_field_duplicates): Likewise.
2100 (finish_struct): Likewise.
2101 (start_function): Likewise.
2102 (store_parm_decls): Likewise.
2103 (finish_function): Likewise.
2104 (c_expand_body_1): Likewise.
2105 (check_for_loop_decls): Likewise.
2106 (merge_translation_unit_decls): Likewise.
2108 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
2110 * common.opt: Document --param.
2111 * opts.c (columns, undocumented_msg): New.
2112 (print_help): Get number of columns from environment. Print
2113 --param help. Tweak newline handling.
2114 (print_param_help): New.
2115 (print_filtered_help): Better handling of duplicates. Complain
2116 about undocumented switches.
2117 (print_switch): New.
2118 (wrap_help): Improve wrapping, use COLUMNS.
2119 * opts.sh: Ignore comments in records.
2120 * params.def: Fix typos and remove trailing periods.
2121 * toplev.c (display_help): Don't dump --param help.
2122 * doc/sourcebuild.texi: Update.
2124 2003-07-18 Richard Henderson <rth@redhat.com>
2127 * optabs.c (prepare_operand): Fail gracefully instead of abort
2128 if the predicate doesn't satisfy.
2129 (gen_cond_trap): Allow prepare_operand to fail.
2131 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2133 * c-common.c: Don't undefine GCC_DIAG_STYLE.
2134 (fname_decl): Don't use xxx_with_decl.
2135 (c_add_case_label): Likewise.
2136 (handle_section_attribute): Likewise.
2137 (handle_alias_attribute): Likewise.
2138 (handle_no_instrument_function_attribute): Likewise.
2139 (handle_no_limit_stack_attribute): Likewise.
2140 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
2141 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
2143 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2145 * Makefile.in (ifcvt.o): Add cfgloop.h.
2146 * basic-block.h (EDGE_LOOP_EXIT): New flag.
2147 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
2148 * ifcvt.c: Include cfgloop.h.
2149 (mark_loop_exit_edges): New static function.
2150 (if_convert): Call it.
2151 (find_if_header): Ignore branches out of loops.
2153 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
2155 * combine.c (simplify_comparison): Don't share rtx when converting
2156 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
2158 2003-07-18 David Edelsohn <edelsohn@gnu.org>
2160 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
2161 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
2162 (MUST_PASS_IN_STACK): Define.
2163 (BLOCK_REG_PADDING): Define.
2165 2003-07-18 Richard Henderson <rth@redhat.com>
2167 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
2168 to skip the addr_vec.
2170 Fri Jul 18 15:22:28 2003 Alexandre Oliva <aoliva@redhat.com>
2172 * combine.c (combinable_i3pat): Don't forbid occurrences of
2173 i2dest or i1dest in inner_dest if inner_dest is a mem.
2175 Fri Jul 18 17:05:57 CEST 2003 Jan Hubicka <jh@suse.cz>
2177 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
2179 2003-07-17 Jakub Jelinek <jakub@redhat.com>
2182 * loop.c (basic_induction_var): Check if convert_modes emitted any
2183 instructions. Remove them and return 0 if so.
2185 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
2187 PR optimization/11083
2188 * toplev.c (rest_of_handle_addresof): Rename into
2189 rest_of_handle_addressof. Delete unreachable blocks
2190 if dead edges were purged after the addressof pass.
2192 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
2194 * Makefile.in, configure, configure.in: Remove handling of
2195 lang-options.h and options_.h.
2196 * toplev.c (struct lang_opt, documented_lang_options): Remove.
2197 (display_help): Don't use documented_lang_options.
2199 2003-07-17 Zack Weinberg <zack@codesourcery.com>
2201 * c-decl.c (pushdecl_function_level): Make static, return nothing.
2202 (kept_level_p): Fold into poplevel.
2203 (undeclared_variable): Moved here from c-typeck.c. Export.
2204 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
2205 (undeclared_variable): Prototype here. Don't prototype
2206 kept_level_p nor pushdecl_function_level.
2207 * c-parse.in: Change first argument to poplevel from
2208 "kept_level_p()" to "KEEP_MAYBE".
2209 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
2211 2003-07-17 Roger Sayle <roger@eyesopen.com>
2213 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
2214 commutative operands instead of modifying the RTL in-place.
2216 2003-07-17 Mark Mitchell <mark@codesourcery.com>
2218 PR optimization/11557
2219 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
2220 unless we know which function is being called.
2222 2003-07-17 Roger Sayle <roger@eyesopen.com>
2224 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
2225 whether to reorder the operands of a commutative binary operator.
2227 2003-07-17 Roger Sayle <roger@eyesopen.com>
2229 * fold-const.c (const_binop): Avoid performing the FP operation at
2230 compile-time, if either operand is NaN and we honor signaling NaNs,
2231 or if we're dividing by zero and either flag_trapping_math is set
2232 or the desired mode doesn't support infinities.
2233 (fold_initializer): New function to fold an expression ignoring any
2234 potential run-time exceptions or traps.
2235 * tree.h (fold_initializer): Prototype here.
2236 * c-typeck.c (build_binary_op): Move to the end of the file so
2237 that intializer_stack is in scope. If constructing an initializer,
2238 i.e. when initializer_stack is not NULL, use fold_initializer to
2240 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
2241 performing FP operations at compile-time, if they would raise an
2242 exception at run-time.
2244 2003-07-17 Geoffrey Keating <geoffk@apple.com>
2247 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
2248 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
2249 (GTFILES): Add langhooks.c.
2250 (gt-langhooks.h): New.
2251 * c-common.h (c_static_assembler_name): Prototype.
2252 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
2253 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
2254 * c-opts.c: Include langhooks-def.h.
2255 (c_static_assembler_name): New.
2256 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
2258 (lhd_set_decl_assembler_name): Give static objects with context
2260 * varasm.c (var_labelno): Delete.
2261 (make_decl_rtl): Don't change the assembler name once it's set.
2263 * c-opts.c (this_input_filename): New.
2264 (finish_options): Take new parameter, name of file being compiled.
2265 Update callers. Set this_input_filename.
2266 (push_command_line_include): Use this_input_filename not
2267 main_input_filename.
2269 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
2271 * Makefile.in: Depend .pot generation on options.c.
2272 * po/exgettext: Add an extra_files variable containing additional
2275 2003-07-17 Zack Weinberg <zack@codesourcery.com>
2277 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
2278 c_write_global_declarations.
2280 * c-decl.c: Fix typos in several comments. Remove all
2281 #if 0 blocks; reindent as needed. Remove unused argument
2282 to declare_parm_level; all callers changed.
2283 * c-parse.in: Update calls to declare_parm_level. Avoid
2284 issuing a double warning in some circumstances.
2285 * c-typeck.c: Update calls to declare_parm_level.
2286 * c-tree.h: Update prototype of declare_parm_level.
2288 * c-pragma.c (apply_pragma_weak): Don't complain about a
2289 redundant #pragma weak.
2291 * objc/objc-act.c (forward_declare_categories,
2292 build_selector_reference_decl, build_class_reference_decl,
2293 build_objc_string_decl, synth_forward_declarations,
2294 build_protocol_reference): Set TREE_PUBLIC on synthetic
2295 forward decl to 0, consistent with eventual definition.
2296 Correct comments to match.
2298 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
2299 in regexp that don't form a range expression.
2300 * fixinc/fixincl.def: Regenerate.
2302 2003-07-17 Richard Henderson <rth@redhat.com>
2305 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
2306 even with !TARGET_CONST_GP.
2307 (ia64_function_ok_for_sibcall): Reject non-local functions.
2309 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
2311 * c-common.c (c_estimate_num_insns_1): Don't handle
2313 * expr.c (safe_from_p): Likewise.
2314 * gengtype.c (adjust_field_tree_exp): Likewise.
2315 * stmt.c (warn_if_unused_value): Likewise
2316 * tree.c (first_rtl_op): Likewise.
2317 * tree.def: Don't define METHOD_CALL_EXPR.
2318 * java/lang.c (java_estimate_num_insns_1): Don't handle
2321 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2324 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
2325 and its restrictions for the SPARC64 port.
2326 Move the entry of "-mimpure-text" before that of "-mv8".
2328 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2329 Phil Edwards <phil@jaj.com>
2331 * doc/install.texi (*-*-solaris2*): Document the step-by-step
2332 procedure to bootstrap and install.
2333 Document the preference for the legacy Sun tools in /usr/bin
2334 over the POSIX tools in /usr/xpg4/bin for the build process.
2336 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
2338 * c.opt: Document Uncodumented; use it. Document ObjC options.
2339 * opts.c (print_filtered_help): Skip undocumented switches.
2340 * opts.h (CL_UNDOCUMENTED): New.
2341 * opts.sh: Handle Undocumented.
2342 * toplev.c (documented_lang_options): Prevent its becoming empty.
2344 * lang-options.h: Remove.
2346 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
2348 * loop.c (check_ext_dependent_givs): Pass const struct loop *
2349 instead of struct loop_info * as argument. Accept BIVs with
2350 increment +/- 1 provided there is a friendly exit test against
2351 a loop-invariant value.
2352 (strength_reduce): Adapt call to check_ext_dependent_givs.
2354 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
2355 Con Bradley <con.bradley@superh.com>
2357 * sh-protos.h (sh_get_pr_initial_val): Declare.
2358 * sh.c (regno_reg_class): Make its elements type enum reg_class.
2359 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
2360 and live_regs_mask arguments. Changed all callers.
2361 (save_schedule_s): New structure.
2362 (save_schedule): New typedef.
2363 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
2364 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
2365 In interrupts handlers, also save registers that are usually
2366 partially saved, and make sure there is at least one general purpose
2367 register saved if a target register needs saving.
2368 Add casts in comparisons to avoid warnings.
2369 (sh_media_register_for_return): return -1 for interrupt handlers.
2370 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
2371 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
2372 registers used are available.
2373 Set RTX_FRAME_RELATED_P where appropriate.
2374 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
2375 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
2376 (initial_elimination_offset): Likewise.
2377 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
2378 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
2379 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
2380 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
2381 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
2382 and for target registers.
2383 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
2384 (regno_reg_class): Make its elements type enum reg_class.
2385 (CONSTRAINT_LEN): Don't use isdigit.
2386 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
2387 (FUNCTION_ARG): Add parentheses to avoid warnings.
2388 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
2389 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
2390 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
2391 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
2392 * sh.md (xordi3+1): Remove unused variable regno.
2393 (return_media): Check that tr0 is available before using it.
2395 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
2397 * c.opt: Document more options.
2399 2003-07-16 Roger Sayle <roger@eyesopen.com>
2401 * combine.c (subst): Also handle (subreg (const_double ...)) case
2402 if created by a substitution, by using the original inner mode.
2404 2003-07-16 Roger Sayle <roger@eyesopen.com>
2406 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
2407 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
2408 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
2410 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
2412 * doc/install.texi (--without-headers): New.
2414 Partial Fix PR/10129
2415 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
2416 (machopic_output_function_base_name): New; print the true pic label.
2417 (machopic_classify_ident): Pic Base is always a defined data.
2418 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
2419 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
2421 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
2422 if they are not floating point registers.
2425 * ggc.h: Add header guards.
2426 * c-decl.c (finish_struct): Sort fields if
2427 number greater than 15 and there are no
2428 anonymous structs/unions.
2429 * c-common.h: Include ggc.h.
2430 (sorted_fields_type): New struct.
2431 (field_decl_cmp): New prototype.
2432 (resort_sorted_fields): New prototype.
2433 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
2434 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
2435 as s, removing other fields.
2436 * c-typeck.c (lookup_field): Use s in lang_type.
2437 These were mostly moved from cp/class.c:
2438 * c-common.c (field_decl_cmp): New static function.
2439 (field_decl_cmp): New function.
2440 (resort_sorted_fields): New function.
2442 2003-07-16 Geoffrey Keating <geoffk@apple.com>
2444 * config/darwin.c (machopic_select_section): Use decl_readonly_section
2445 to do most of the work.
2447 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
2449 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
2450 * config/mmix/mmix.c: Convert functions to ISO C90.
2451 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
2453 (mmix_get_hard_reg_initial_val): Tweak section head comment.
2455 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
2457 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
2459 2003-07-16 Jakub Jelinek <jakub@redhat.com>
2461 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
2462 (uw_update_context_1): Use it.
2463 * config/rs6000/rs6000.c (insn_after_throw): Remove.
2464 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
2465 in parent frame if _Unwind_* called directly instead of through
2467 (rs6000_emit_eh_toc_restore): Remove.
2468 (rs6000_emit_prologue): Update stack pointer before doing any saving
2469 if current_function_calls_eh_return. Generate unwind info for $r2.
2470 (rs6000_emit_epilogue): Restore stack pointer after doing all
2471 restoring if current_function_calls_eh_return. Restore $r2.
2472 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
2473 * config/rs6000/rs6000.md (eh_return): Remove call to
2474 rs6000_emit_eh_toc_restore.
2475 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
2476 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
2478 2003-07-15 Jakub Jelinek <jakub@redhat.com>
2480 * expr.c (emit_block_move): Don't move anything if size is const 0.
2481 (clear_storage): Test against const0_rtx instead of comparing INTVAL
2484 2003-07-15 David S. Miller <davem@redhat.com>
2486 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
2487 emit nop if the last real insn is CALL_INSN.
2489 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
2491 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
2493 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
2495 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
2497 * config/i386/winnt.c (associated_type): Artificial methods are not
2498 affected by the import/export status of their class unless they are
2500 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
2502 * config/i386/winnt.c: Fix GCC copyright comment.
2504 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
2507 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
2508 not recursing on hard error.
2509 (diagnostic_for_decl): Likewise.
2510 * diagnostic.def: Rearrange.
2512 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
2514 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
2515 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
2517 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
2518 Richard Henderson <rth@redhat.com>
2520 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
2521 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
2522 (_Unwind_SetGR): Likewise.
2523 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
2524 (Unwind_SpTmp): New typedef.
2525 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
2526 (uw_update_context): Use _Unwind_GetPtr.
2527 (init_dwarf_reg_size_table): Move above uw_init_context_1.
2528 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
2529 Use _Unwind_SetSpColumn.
2530 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
2533 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
2535 * c.opt: Document more options.
2536 * toplev.c (documented_lang_options): Remove all local help strings.
2538 2003-07-15 Mark Mitchell <mark@codesourcery.com>
2541 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
2544 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
2547 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
2548 swap comparison operands if doing so would generate an
2549 unrecognizable insn.
2551 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
2553 PR optimization/11320
2554 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
2555 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
2556 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
2557 current_sched_info->compute_jump_reg_dependencies. Record which
2558 registers are used and which registers are set by the jump.
2559 Clear deps->reg_conditional_sets after a barrier.
2560 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
2561 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
2562 (init_deps): Initialize reg_conditional_sets.
2563 (free_deps): Clear reg_conditional_sets.
2564 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
2565 Mark registers live on entry of the fallthrough block and conditionally
2566 set as set by the jump. Mark registers live on entry of non-fallthrough
2567 blocks as used by the jump.
2568 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
2569 Mark new parameters as unused.
2571 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
2573 * doc/invoke.texi: Resync MIPS -march documentation.
2575 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
2577 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
2578 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
2579 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
2580 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
2581 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
2582 (mips_issue_rate): Handle PROCESSOR_R9000.
2583 (mips_use_dfa_pipeline_interface): Likewise.
2584 * config/mips/9000.md: New file.
2585 * config/mips/mips.md: Include it.
2586 (define_attr cpu): Add r9000.
2587 (mulsi3_mult3): Use "mul" for rm9000 code.
2589 2003-07-15 Stan Cox <scox@redhat.com>
2591 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
2592 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
2593 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
2594 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
2595 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
2596 (mips_issue_rate): Handle PROCESSOR_R7000.
2597 (mips_use_dfa_pipeline_interface): Likewise.
2598 * config/mips/7000.md: New file.
2599 * config/mips/mips.md: Include it.
2600 (define_attr cpu): Add r7000.
2601 (mulsi3_mult3): Use "mul" for rm7000 code.
2603 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
2605 * config/mips/mips.md (define_attr type): Add condmove. Use it for
2606 the conditional move patterns.
2607 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
2608 Check for condmove type.
2609 (ir_vr54_arith): Add move type.
2610 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
2611 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
2613 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
2615 * c-opts.c (print_help): Remove.
2616 (c_common_handle_option): Don't handle --help.
2617 * c.opt: Document some options.
2619 * opts.c (print_filtered_help): New.
2620 (print_help): Use it.
2622 2003-07-14 Geoffrey Keating <geoffk@apple.com>
2624 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
2625 * tree.c: (build_common_tree_nodes_2): Likewise.
2626 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
2627 (V4DF_type_node): New.
2629 * c-opts.c (push_command_line_include): Don't free deferred_opts,
2631 (finish_options): Reset init_cursor.
2633 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
2635 * expr.c (expand_assignment): Remove an unused argument
2637 * expr.h: Update the prototype.
2638 * function.c: Update the callers.
2641 2003-07-14 Mark Mitchell <mark@codesourcery.com>
2644 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
2647 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
2649 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
2650 with __cplusplus, not "we must use the C++ compiler's type"
2651 * fixinc/inclhack.def (void_null): Note that Interix needs this.
2652 * fixinc/fixincl.x: Regenerate.
2654 2003-07-14 Geoffrey Keating <geoffk@apple.com>
2656 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
2657 and unseen_objects from the global data before calling
2658 __deregister_frame_info_bases.
2659 (examine_objects): Insert objects into the seen_objects list,
2661 (_Unwind_Find_FDE): Always unlock the global object lists, even if
2662 we couldn't allocate a data structure to put in it.
2664 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
2665 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
2666 (SET_TYPE_PROTOCOL_LIST): New.
2667 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
2668 (get_object_reference): Likewise.
2670 Mon Jul 14 23:14:28 CEST 2003 Jan Hubicka <jh@suse.cz>
2672 * cfglayout.c (locator_file): Break out from ....
2673 (insn_file): ... here.
2674 (locator_line): Break out from ....
2675 (insn_line): ... here.
2676 * rtl.h (locator_file, locator_line): Declare.
2677 (final_start_function): Set proper line/file info.
2679 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
2681 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
2682 handled by pp_c_cast_expression.
2684 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
2686 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
2687 allocate 32768 bytes of stack. Use addition rather than subtraction
2688 when a single insn is enough.
2689 * config/mips/mips.md: Remove insns and splitters for subtracting
2691 (subsi3): Only accept register operands.
2692 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
2693 (subdi3_internal_3, subsi3_internal_2): Likewise.
2694 (casesi): Use expand_binop to subtract the lower bound.
2696 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
2698 * config/mips/mips.c (mips_in_small_data_p): Don't handle
2699 TARGET_MIPS16 specially.
2701 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
2703 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
2704 mips_output_aligned_bss.
2705 * config/mips/linux.h: Likewise.
2706 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
2707 * config/mips/mips.c (mips_output_aligned_bss): New function.
2709 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
2710 * config/mips/elf64.h: Likewise.
2712 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
2713 mips_declare_object_name.
2714 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
2715 * config/mips/elf64.h: As for elf.h.
2716 * config/mips/iris6.h: Likewise.
2717 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
2718 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
2719 do...while (0) block.
2720 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
2721 (mips_finish_declare_object): Declare.
2722 * config/mips/mips.c (mips_declare_object_name): New function.
2723 (mips_finish_declare_object): New function.
2725 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
2726 * config/mips/linux.h: Likewise.
2728 * config/mips/mips.c (inside_function): Delete.
2729 (file_in_function_warning, ignore_line_number): Delete.
2730 (mips_output_filename): Don't warn about changing filenames within
2732 (mips_output_lineno): Update accordingly.
2733 (mips_output_function_prologue): Don't reset the deleted variables.
2734 * config/mips/mips.h (inside_function): Delete.
2735 (file_in_function_warning, ignore_line_number): Delete.
2737 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
2738 * config/mips/elf64.h: Likewise.
2739 * config/mips/openbsd.h: Likewise.
2740 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
2741 * config/mips/linux.h: Likewise.
2742 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
2743 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
2745 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
2746 to the list of include files when using gas.
2747 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
2748 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
2749 * config/mips/elf64.h: Likewise.
2750 * config/mips/iris5.h: Likewise.
2751 * config/mips/linux.h: Likewise.
2752 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
2753 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
2754 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
2755 * config/mips/sdb.h: ...this new file.
2757 2003-07-14 Douglas Rupp <rupp@gnat.com>
2759 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
2760 argument to getcwd; use fixed buffer instead.
2762 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
2764 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
2765 * fixinc/fixinc.wrap: Delete.
2767 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
2769 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
2772 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
2774 * ggc-page.c (struct globals): Add new fields to keep track of the
2775 total allocated memory and overhead.
2776 (ggc_print_statistics): Print them.
2777 (ggc_alloc): Keep track of the total allocated memory and the
2780 * tree.c (dump_tree_statistics): Increase spacing.
2781 (enum tree_node_kind): Move to ...
2782 * tree.h (enum tree_node_kind): ... here.
2783 (tree_node_counts, tree_node_sizes): Declare.
2785 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
2787 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
2789 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2791 PR optimization/11440
2792 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
2795 2003-07-14 Alan Modra <amodra@bigpond.net.au>
2797 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
2798 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
2799 (emit_group_load, emit_group_store): Adjust declarations.
2800 Remove most occurrences of #ifdef TREE_CODE.
2801 * expr.c (emit_group_load): Add "type" param, and use
2802 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
2803 aligned accesses if !SLOW_UNALIGNED_ACCESS.
2804 (emit_group_store): Likewise.
2805 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
2806 emit_group_load and emit_group_store calls.
2807 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
2808 BLOCK_REG_PADDING to determine whether we need endian_correction.
2809 (load_register_parameters): Localize vars. Handle shifting of
2810 small values to the correct end of regs. Adjust emit_group_load
2812 (expand_call, emit_library_call_value_1): Adjust emit_group_load
2813 and emit_group_store calls.
2814 * function.c (assign_parms): Set mem alignment for stack slots.
2815 Adjust emit_group_store call. Store values at the "wrong" end
2816 of regs to the stack. Use BLOCK_REG_PADDING.
2817 (locate_and_pad_parm): Save where_pad.
2818 (expand_function_end): Adjust emit_group_load call.
2819 * stmt.c (expand_value_return): Adjust emit_group_load call.
2820 * Makefile.in (calls.o): Depend on $(OPTABS_H).
2821 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
2822 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
2823 (MUST_PASS_IN_STACK): Define.
2824 (BLOCK_REG_PADDING): Define.
2825 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
2826 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
2827 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
2828 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
2829 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
2831 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
2833 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
2835 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2837 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
2838 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
2840 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
2843 * toplev.c: Don't cut off option names.
2845 2003-07-13 Andreas Jaeger <aj@suse.de>
2847 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
2848 to integer of different size.
2850 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
2852 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
2853 to (eq (and X 1) 0).
2855 2003-07-13 Andreas Jaeger <aj@suse.de>
2857 * config.gcc: Add pmmintrin.h for x86_64-*-*.
2859 2003-07-13 Zack Weinberg <zack@codesourcery.com>
2861 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
2862 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
2863 list. Move these all together down by cpplib.
2865 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
2866 definition of CPPCHAR_SIGNED_T.
2868 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
2869 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
2870 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
2872 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
2873 * cppinit.c (cpp_create_reader): Likewise.
2875 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
2876 * cpptrad.c: Likewise. All callers changed.
2877 * cpplib.c: All callers changed.
2878 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
2879 * hashtable.h: Define GTY(x) to nothing here too.
2881 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2883 * stor-layout.c (compute_record_mode): Remove very obsolete test
2884 that forces BLKmode for records with fields crossing word boundary.
2886 2003-07-13 Zack Weinberg <zack@codesourcery.com>
2888 * Makefile.in: Remove orphan reference to acconfig.h.
2890 2003-07-13 Andreas Jaeger <aj@suse.de>
2892 * cgraphunit.c: Convert prototypes to ISO C90.
2894 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
2896 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
2898 * fixinc/fixincl.x: Rebuild.
2900 2003-07-12 Zack Weinberg <zack@codesourcery.com>
2902 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
2903 i?86-*-*. Use correct name of cache variable.
2904 * configure: Regenerate.
2906 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
2908 * config/alpha/alpha.c: Fix comment typos.
2909 * config/alpha/alpha.md: Likewise.
2910 * config/arm/arm.c: Likewise.
2911 * config/arm/arm.md: Likewise.
2912 * config/arm/lib1funcs.asm: Likewise.
2913 * config/avr/avr.md: Likewise.
2914 * config/arm/README-interworking: Fix typos.
2916 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
2918 * c-format.c: Fix comment formatting.
2919 * c-typeck.c: Likewise.
2920 * coverage.c: Likewise.
2921 * cppcharset.c: Likewise.
2922 * cpplib.c: Likewise.
2923 * dbxout.c: Likewise.
2924 * gcov-io.h: Likewise.
2925 * toplev.c: Likewise.
2927 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
2929 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
2932 2003-07-12 Zack Weinberg <zack@codesourcery.com>
2934 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
2935 uses three-argument AC_DEFINE so no acconfig.h entries are
2937 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
2938 which contains the GAS version number as a scaled integer.
2939 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
2940 ability to check for ELF assembler.
2941 (gcc_GAS_CHECK_FEATURE): New macro.
2942 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
2943 assembler feature checks using gcc_GAS_CHECK_FEATURE.
2944 Use three-argument AC_DEFINE everywhere.
2945 * acconfig.h: Deleted.
2946 * config.in, configure: Regenerate.
2948 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
2950 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
2952 * fixinc/fixincl.x: Regenerate.
2954 * fixinc/inclhack.def (gnu_types): Improve comment.
2956 2003-07-12 Andreas Jaeger <aj@suse.de>
2958 * fp-test.c (main): Use ISO C90 prototype.
2960 * version.c: Remove unneded include of ansidecl.h.
2962 * cgraph.h: Convert prototypes to ISO C90.
2963 * cgraph.c: Likewise.
2964 * fix-header.c: Likewise.
2966 * protoize.c: Likewise.
2968 Sat Jul 12 06:09:38 CEST 2003 Jan Hubicka <jh@suse.cz>
2970 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
2973 Sat Jul 12 03:06:01 CEST 2003 Jan Hubicka <jh@suse.cz>
2974 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2976 * cgraph.c (cgraph_max_uid): New global variable.
2977 (cgraph_node): Set uid field.
2978 (create_edge): Keep inline flags consistent.
2979 (dump_cgraph): Dump more info.
2980 * cgraph.h (struct cgraph_local_info): Remove inline_many and
2981 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
2982 (struct cgraph_global_info): Add insns, calls, cloned_times,
2984 (struct cgraph_node): Add uid.
2985 (struct cgraph_edge): Add inline_call.
2986 (cgraph_max_uid, cgraph_inline_p): Declare.
2987 * cgraph.c: Include params.h and fibheap.h
2988 (cgraph_mark_functions_to_inline_once): Kill.
2989 (INSNS_PER_CALL): New constant.
2990 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
2992 (cgraph_finalize_function): Do not analyze inlining.
2993 (cgraph_finalize_compilation_unit): Set inlining attributes.
2994 (cgraph_mark_functions_to_output): More consistency checks.
2995 (cgraph_optimize_function): Set current_function_decl to NULL.
2996 (cgraph_expand_function): Use new inline flags.
2997 (cgraph_postorder): Expand from cgraph_expand_functions.
2998 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
2999 (cgraph_inlined_into, cgraph_inlined_callees,
3000 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
3001 cgraph_mark_inline, cgraph_check_inline_limits,
3002 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
3003 cgraph_decide_inlining, cgraph_inline_p): New functions.
3004 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
3005 PARAM_INLINE_UNIT_GROWTH): New parameters.
3006 * tree-inline.c (struct inline_data): New field current_decl.
3007 (expand_call_inline): Avoid forward declarations; use
3008 inlinable_function_p.
3009 (optimize_inline_calls): Set id.current_decl.
3011 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
3013 * configure.in: Remove wrongly added definition of
3015 * configure: Regenerate.
3017 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
3019 * rtl.def (NOTE): Do not use padding.
3021 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
3023 * doc/install.tex: Update required binutils for i?86-*-linux*
3025 2003-07-11 Richard Henderson <rth@redhat.com>
3027 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
3029 2003-07-11 Mark Mitchell <mark@codesourcery.com>
3031 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
3032 TRANSLATION_UNIT_DECL as top_level.
3034 2003-07-11 Jakub Jelinek <jakub@redhat.com>
3036 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
3037 then fall back to cmpstrM.
3038 * builtins.c (expand_builtin_memcmp): Likewise.
3039 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
3040 (s390_expand_cmpmem): ... this.
3041 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
3042 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
3043 from cmpstr* patterns. Rename call to s390_expand_cmpstr
3044 to s390_expand_cmpmem.
3045 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
3046 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
3048 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
3050 * doc/md.texi (cmpstrM): Describe as String compare insn, not
3054 2003-07-11 Loren James Rittle <ljrittle@acm.org>
3056 * config/i386/freebsd.h (SET_ASM_OP): Remove.
3057 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
3058 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
3059 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
3061 2003-07-11 Richard Henderson <rth@redhat.com>
3063 * function.c (assign_parms): Don't recombine complex args if
3064 fnargs is unchanged from orig_fnargs.
3065 (split_complex_args): Return args without complex before copying.
3066 Re-layout the modified parameters.
3068 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
3070 * regclass.c (choose_hard_reg_mode): Add third argument.
3071 Changed all callers.
3072 * rtl.h (choose_hard_reg_mode): Update declaration.
3073 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
3074 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
3076 2003-07-11 Geoffrey Keating <geoffk@apple.com>
3078 * c-decl.c (finish_decl): Handle 'used' here...
3079 * cgraphunit.c (cgraph_finalize_function): ... and here ...
3080 * c-common.c: (handle_used_attribute): ... not here.
3082 * configure.in (onstep): Support --enable-intermodule.
3083 * Makefile.in (OBJS-common): New.
3085 (OBJS-archive): New.
3086 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
3087 (OBJS-onestep): New.
3088 (libbackend.a): Support @onestep@.
3089 (libbackend.o): New.
3090 * configure: Regenerate.
3092 * c-common.h (c_reset_state): New prototype.
3093 (c_parse_file): New prototype.
3094 (finish_file): Move prototype from c-tree.h.
3095 * c-decl.c: Include <hashtab.h>.
3096 (builtin_decls): New.
3097 (current_file_decl): New.
3098 (duplicate_decls): Add extra parameter. Change all callers. Don't
3099 output duplicate common symbols.
3100 (link_hash_hash): New.
3101 (link_hash_eq): New.
3102 (poplevel): Handle popping of the top level.
3103 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
3104 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
3105 (pushdecl_top_level): Likewise.
3106 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
3107 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
3108 (finish_decl): Handle TRANSLATION_UNIT_DECL.
3109 (merge_translation_unit_decls): New.
3110 (c_write_global_declarations): New.
3111 (c_reset_state): New.
3112 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
3113 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
3114 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
3115 TRANSLATION_UNIT_DECL.
3116 (c_objc_common_finish_file): Call merge_translation_unit_decls.
3117 * c-opts.c (in_fnames): Rename from in_fname.
3118 (c_common_decode_option): Handle multiple input filenames.
3119 (c_common_post_options): Likewise.
3120 (c_common_parse_file): Likewise; also, call c_parse_file rather than
3122 * c-parse.in: Move cleanup code to c_parse_file.
3123 (free_parser_stacks): Move contents to c_parse_file.
3124 (c_parse_file): New.
3125 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
3127 (C_DECL_FILE_SCOPE): New.
3128 (finish_file): Move prototype to c-common.h.
3129 (merge_translation_unit_decls): New prototype.
3130 (comptypes): Add extra parameter to prototype.
3131 (c_write_global_declarations): New prototype.
3132 * c-typeck.c (tagged_types_tu_compatible_p): New.
3133 (function_types_compatible_p): Add extra parameter, change all callers.
3134 (type_lists_compatible_p): Likewise.
3135 (comptypes): Likewise.
3136 (struct tagged_tu_seen): New.
3137 (tagged_tu_seen_base): New.
3138 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
3139 (c_mark_addressable): Remove #if 0 code.
3140 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
3141 comment explaining why it shouldn't have to.
3142 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
3144 * cppinit.c (cpp_read_next_file): New.
3145 (cpp_read_main_file): Use it.
3146 * cpplib.c (undefine_macros): New.
3147 (cpp_undef_all): New.
3148 * cpplib.h (cpp_read_next_file): Prototype.
3149 (cpp_undef_all): Prototype.
3150 * langhooks-def.h (write_global_declarations): Remove prototype.
3151 * toplev.h (write_global_declarations): Add prototype.
3152 * tree.c (decl_type_context): Use switch statement, handle
3153 TRANSLATION_UNIT_DECL.
3154 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
3155 (TRANSLATION_UNIT_DECL): New kind of tree.
3156 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
3157 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
3158 * doc/invoke.texi: Make attempt to document new functionality.
3160 2003-05-19 Per Bothner <bothner@apple.com>
3162 * gcc.c (combine_inputs): New.
3163 (process_command): Set combine_inputs.
3164 (do_spec_1): Handle combine_inputs.
3167 2003-07-10 James E Wilson <wilson@tuliptree.org>
3169 PR optimization/9745
3170 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
3171 loop_insn_emit_before.
3172 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
3174 2003-07-10 Zack Weinberg <zack@codesourcery.com>
3176 * cppcharset.c: Fix comment.
3177 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
3178 (EILSEQ): #define to EINVAL if not already defined.
3179 (convert_using_iconv): #if out when !HAVE_ICONV.
3180 (init_iconv_desc): Handle !HAVE_ICONV here...
3181 (cpp_init_iconv): ...not here.
3183 2003-07-11 Neil Booth <neil@daikokuya.co.uk>
3185 * common.opt: More --help messages.
3186 * opts.c (print_help): Use puts().
3187 * toplev.c (f_options): Remove help text.
3188 (display_help): Don't dump f_options.
3190 2003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
3192 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
3193 Move i?86-*-interix* to the don't-fix list.
3194 * fixinc/fixinc.interix: Delete with extreme prejudice.
3196 2003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
3199 * doc/install.texi: Document requirements for ia64-*-hpux* target.
3201 2003-07-10 Roger Sayle <roger@eyesopen.com>
3203 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
3205 2003-07-10 Zack Weinberg <zack@codesourcery.com>
3207 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
3208 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
3209 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
3210 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
3211 convert_no_conversion, convert_using_iconv): New functions.
3212 (APPLY_CONVERSION): New macro.
3213 (struct conversion, conversion_tab): New data structure.
3214 (init_iconv_desc): Check conversion_tab for a custom conversion
3215 primitive before trying to use iconv.
3216 (convert_cset): Deleted.
3217 (cpp_init_iconv): Use UTF- terminology, not UCS-.
3218 (_cpp_destroy_iconv): Update to match.
3219 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
3220 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
3221 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
3222 (_cpp_interpret_string_notranslate): New function, moved here
3225 * cpphash.h (convert_f, struct cset_converter): New types.
3226 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
3227 are now struct cset_converter, not bare iconv_t.
3229 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
3230 all callers changed.
3232 2003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
3234 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
3235 to opts.sh command line.
3236 * opts.sh: Write to temporary files with a move-if-change at the end.
3238 2003-07-10 Denis Chertykov <denisc@overta.ru>
3239 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3241 * combine.c (gen_binary): Handle the CLOBBER rtx and
3242 don't build a binary operation with it.
3244 2003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3246 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
3247 store_killed_after, store_killed_before): Keep track of the correct
3248 dependency function to use.
3250 2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
3251 * toplev.c (do_compile): Don't try to open dump files before
3252 lang_dependent_init initializes dump_base_name.
3254 2003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3256 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
3258 * config/frv/frv.c (frv_expand_builtin): Likewise.
3259 * config/sh/sh.c (sh_media_init_builtins): Likewise.
3261 2003-07-09 Mark Mitchell <mark@codesourcery.com>
3264 * doc/invoke.texi (C++ Dialect Options): Change documentation of
3267 2003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
3269 * tm.texi (RETURN_ADDR_OFFSET): Document.
3271 2003-07-10 Nathan Sidwell <nathan@codesourcery.com>
3273 * gcov-io.h: Update documentation.
3274 (GCOV_UNSIGNED2STRING): New.
3275 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
3276 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
3277 GCOV_TAG_SUMMARY_LENGTH): Adjust.
3278 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
3279 GCOV_TAG_COUNTER_NUM): New.
3280 (GCOV_BLOCK_SIZE): Number of words.
3281 (gcov_var): Adjust buffer type.
3282 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
3283 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
3284 count, not byte count.
3285 (gcov_open): Adjust overread init.
3286 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
3287 gcov_write_string, gcov_write_tag, gcov_write_length,
3288 gcov_write_tag_length): Adjust.
3289 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
3290 (gcov_sync, gcov_seek): Adjust.
3291 * gcov-dump.c (print_usage): Show gcc version only.
3292 (dump_file): Use GCOV_UNSIGNED2STRING.
3293 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
3294 * gcov.c (print_version): Show gcc version only.
3295 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
3296 GCOV_TAG_*_NUM macros.
3297 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
3298 GCOV_TAG_COUNTER_LENGTH.
3299 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
3300 Use GCOV_TAG_COUNTER_NUM.
3301 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
3302 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
3304 2003-07-10 Andreas Schwab <schwab@suse.de>
3306 * gcov-dump.c (dump_file): Fix missing address operator.
3308 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
3311 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
3313 (fold_single_bit_test): If sign_bit_p() fails, assume that the
3314 bit being tested is not a sign bit.
3316 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
3318 * config/h8300/h8300.md (a peephole2): New.
3320 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
3322 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
3323 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
3324 from ld-linux.so.2 to ld.so.1.
3325 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
3326 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
3327 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
3328 nor -Wl,-rpath-link.
3329 (LIB_SPEC): Add -rpath-link if !static.
3330 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
3331 * config/mn10300/mn10300.c (mn10300_protect_label): New
3333 * config/mn10300/linux.h (PRINT_OPERAND,
3334 PRINT_OPERAND_ADDRESS): Set it during their execution.
3335 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
3336 mn10300_protect_label is set.
3337 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
3339 (LIB_SPEC, STARTFILE_SPEC): Define.
3340 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
3341 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
3342 FLOAT_BIT_ORDER_MISMATCH.
3343 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
3344 * config.gcc (am33_2.0-*-linux*): Added.
3345 * config/mn10300/linux.h: New.
3346 * config/mn10300/t-linux: New.
3348 2003-07-10 Andreas Jaeger <aj@suse.de>
3350 * fold-const.c: Properly wrap prototypes.
3352 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
3354 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
3355 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
3357 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
3358 * config/mn10300/mn10300.h: GTY-declare it.
3359 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
3360 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
3361 prototype. Use incoming RTL argument.
3362 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
3363 * config/mn10300/mn10300.md (int_label): Move C statements...
3364 (GOTaddr2picreg): ... here.
3365 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
3366 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
3367 * config/mn10300/mn10300.c (mn10300_encode_section_info):
3368 ... here. New function.
3369 (TARGET_ENCODE_SECTION_INFO): Define to it.
3370 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
3371 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
3373 (mn10300_loadPC): Define as insn splittable after reload.
3374 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
3375 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
3376 be defined in .rodata even in PIC, now that the assembler
3378 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
3379 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
3380 symbol take an underscore prefix.
3381 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
3382 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
3383 legitimize_pic_address): Declare.
3384 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
3385 the PIC register as fixed.
3386 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
3387 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
3389 (LEGITIMATE_PIC_OPERAND_P): Define.
3390 (PIC_OFFSET_TABLE_REGNUM): Define.
3391 (GOT_SYMBOL_NAME): Define.
3392 (SYMBOLIC_CONST_P): Define.
3393 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
3395 (MN10300_GLOBAL_P): Test it.
3396 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
3397 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
3398 * config/mn10300/mn10300.c (print_operand): Handle unspec.
3399 (expand_prologue): Set PIC register.
3400 (call_address_operand): Don't match SYMBOL_REFs in PIC.
3401 (legitimize_address): Call legitimize_pic_address.
3402 (legitimize_pic_address): New fn.
3403 (legitimate_pic_operand_p): New fn.
3404 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
3405 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
3406 UNSPEC_PLT): New constants.
3407 (pop_pic_reg): New insn.
3408 (movsi): Adjust non-PIC addresses.
3409 (builtin_setjmp_receiver): Restore the PIC register.
3411 (call): Adjust non-PIC addresses.
3412 (int_label, GOTaddr2picreg): New expands.
3413 (am33_loadPC): New insn.
3414 (mn10300_loadPC): New expand.
3415 (call_next_insn): New insn.
3416 (add_GOT_to_pic_reg): New expand.
3417 (symGOT2reg, symGOT2reg_i): New expands.
3418 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
3419 (sym2PIC, sym2PLT): New expands.
3421 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
3423 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
3424 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
3425 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
3426 to flag_unsafe_math_optimizations.
3427 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
3428 * config/mn10300/mn10300.c (expand_prologue): Mark
3429 FP-register-saving insns as frame-related.
3430 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
3431 * config/mn10300/mn10300.c
3432 (mn10300_get_live_callee_saved_regs): Don't search past
3433 LAST_EXTENDED_REGNUM.
3434 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
3435 * config/mn10300/mn10300.md: Remove excessive line breaks from
3436 `@' output patterns that were accounted as additional
3438 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
3439 Re-introduce changes accidentally removed in Richard Sandiford's
3441 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
3442 Re-instate am33-2 lost in merge from net GCC.
3443 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
3444 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
3445 floating-point registers.
3446 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
3447 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
3448 pessimizations that had gone in on 2000-05-08.
3449 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
3450 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
3451 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
3452 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
3454 * (movhi): Likewise.
3455 * (movsi): Likewise.
3456 * (movsf): Likewise.
3457 * (movdi): Likewise.
3458 * (movdf): Likewise.
3459 Wed May 24 13:16:09 2000 Alexandre Oliva <aoliva@cygnus.com>
3460 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
3461 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
3462 (expand_prologue, expand_epilogue): Save and restore FP regs.
3463 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
3464 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
3465 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
3466 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
3467 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
3469 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
3470 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
3471 Discourage the two-argument, longer opcodes.
3472 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
3474 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
3475 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
3476 * config/mn10300/mn10300.md (cmpsf): New pattern.
3477 (branch): Test mdep.fpCC and output fbCC.
3478 * config/mn10300/mn10300.c (print_operand): Output conditions.
3479 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
3480 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
3481 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
3482 mulsf3, divsf3): Use the `F' constraint for FP values.
3483 * config/mn10300/mn10300.c (const_1f_operand): New function.
3484 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
3485 * config/mn10300/mn10300.md (sqrtsf2): New expand.
3486 (rsqrtsf2): New insn.
3487 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
3488 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
3490 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
3491 * config/mn10300/mn10300.md (abssf2, negdf2): On
3492 TARGET_AM33_2, expand to...
3493 (abssf2_am33_2, negdf2_am33_2): New insns.
3494 (addsf3, subsf3, mulsf3, divsf3): Likewise.
3495 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
3496 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
3497 movdi, movdf): Added FP regs.
3498 * invoke.texi (-mam33-2, -mno-am33-2): Document.
3499 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
3500 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
3502 (REGNO_AM33_2_FP_P): Renamed to...
3503 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
3504 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
3505 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
3506 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
3507 regs from GENERAL_REGS.
3508 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
3509 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
3510 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
3511 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
3512 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
3513 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
3515 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
3516 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
3517 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
3518 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
3519 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
3520 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
3521 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
3522 AM33/2.0 floating-point registers.
3523 (CONDITIONAL_REGISTER_USAGE): Adjust.
3524 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
3525 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
3526 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
3527 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
3528 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
3529 (MULTILIB_DIRNAMES): Likewise.
3530 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
3531 `__AM33_2__' when `-mam33-2' is given.
3532 (TARGET_AM33_2): Define.
3533 (TARGET_SWITCHES): Adjust.
3534 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
3537 2003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
3539 * doc/install.texi: Add missing @.
3541 2003-07-09 Bob Wilson <bob.wilson@acm.org>
3543 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
3545 2003-07-09 Aldy Hernandez <aldyh@redhat.com>
3548 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
3550 2003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
3553 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
3554 "x-crtfini.o" with "crtinit.o", "crtfini.o".
3556 * fixinc/inclhack.def (limits_ifndefs): Add select test.
3557 * fixinc/fixincl.x: Rebuild.
3559 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
3560 * fixinc/fixincl.x: Rebuild.
3562 2003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
3564 * doc/install.texi (Configuration): Document the valgrind option
3565 to --enable-checking.
3567 Wed Jul 9 16:16:30 CEST 2003 Jan Hubicka <jh@suse.cz>
3569 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
3571 2003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3573 * c-lex.c (cb_ident): Cast cstr.text to const char *.
3575 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
3577 * gcov-io.h: Update documentation.
3578 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
3580 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
3581 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
3582 (struct gcov_var): Change buffer's type. Add endian flag.
3583 (gcov_open): Remove mode in libgcov.
3584 (gcov_magic): Prototype.
3585 * gcov-io.c (from_file): New.
3586 (gcov_open): Clear endian flag.
3588 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
3590 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
3591 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
3592 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
3593 * gcov-iov.c (main): Correct cast.
3594 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
3596 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
3597 (coverage_init): Use GCOV_NOTE_SUFFIX.
3598 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
3599 Rename to gcov_version, and return flag.
3600 (gcov_exit): Use gcov_version.
3601 (__gcov_init): Use gcov_version.
3602 * Makefile.in (coverageexts): Update.
3603 * gcov.c (print_version): Remove endianness conversion.
3604 (create_file_names): Use GCOV_NOTE_SUFFIX.
3605 (read_graph_file): Use gcov_magic.
3606 (read_count_file): Likewise.
3607 * gcov-dump.c (dump_file): Remove endianness conversion, use
3610 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
3612 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
3614 * configure: Regenerated.
3615 * Makefile.in (ALL_CFLAGS): Correct its comment.
3617 2003-07-08 Mark Mitchell <mark@codesourcery.com>
3619 * fold-const.c (make_range): Do not access operand 1 for a
3620 zero-operand operator.
3622 2003-07-09 Neil Booth <neil@daikokuya.co.uk>
3624 * toplev.c (warn_dummy, W_options): Die.
3625 (display_help): Don't print W_options.
3626 * common.opt: Add W_options help from toplev.c.
3628 2003-07-09 Andreas Jaeger <aj@suse.de>
3630 * opts.c (wrap_help): Only pass int arguments as arguments to
3631 printf's '*' modifier. Change argument of function.
3633 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
3635 * doc/invoke.texi: Fix misspelling of "@item".
3637 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
3639 * config/i386/i386.md: Remove an old comment about
3642 Wed Jul 9 03:00:10 CEST 2003 Jan Hubicka <jh@suse.cz>
3644 * cgraph.c (cgraph_node_name): New function.
3645 (dump_cgraph): Use it.
3646 * cgraph.h (cgraph_dump_file): Declare.
3647 (cgraph_node_name): Declare.
3648 * cgraphunit.c: Include timevar.h
3649 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
3650 (cgraph_optimize_function): Use TV_INTEGRATION.
3651 (cgraph_mark_local_functions): reorganize dumps.
3652 (cgraph_mark_functions_to_inline_once): Likewise.
3653 (cgraph_optimize): Likewise; use timevar.
3654 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
3655 * toplev.c (dump_file_index): Add DFI_cgraph.
3656 (dump_file_info): Likewise.
3657 (cgraph_dump_file): New global variable.
3658 (do_compile): Open and close cgraph dump.
3659 * invoke.texi (-d): Document new flag; renumber.
3661 2003-07-08 Roger Sayle <roger@eyesopen.com>
3664 * calls.c (emit_call_1): Don't bother popping the arguments off of
3665 the stack after a noreturn function call; The adjustment is dead.
3666 (expand_call): Likewise.
3668 2003-07-08 Geoffrey Keating <geoffk@apple.com>
3670 * expr.c (MOVE_MAX_PIECES): Move from here...
3671 * defaults.h (MOVE_MAX_PIECES): ... to here.
3673 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
3675 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
3677 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3679 * genattr.c (internal_dfa_insn_code): Don't prototype.
3680 * genattrtab.c (attr_desc): Add `static_p' field.
3681 (expand_units): Make blockage range and ready cost functions
3683 (write_attr_get): Don't add extern prototypes in C file. Mark
3684 static functions as appropriate.
3685 (find_attr, make_internal_attr): Initialize static_p.
3686 * genattrtab.h (ATTR_STATIC): New macro.
3687 * genautomata.c (output_internal_reset_func): Mark output function
3689 (make_internal_dfa_insn_code_attr): Mark output function as static.
3691 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3693 * genattrtab.h: Add new macros for attr `special' flags.
3694 * genattrtab.c (attr_desc): Reorder/resize fields better.
3695 Use attr `special' macros in all calls to make_internal_attr.
3696 * genautomata.c: Likewise.
3698 Wed Jul 9 02:25:39 CEST 2003 Jan Hubicka <jh@suse.cz>
3700 * c-common.c (c_estimate_num_insns_1): New static function.
3701 (c_estimate_num_insns): New global function.
3702 * c-common.h (DECL_NUM_STMTS): Rename to...
3703 (DECL_ESTIMATED_INSNS): ... this.
3704 (c_estimate_num_insns): Declare.
3705 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
3706 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
3707 * c-semantics.c (add_stmt): Do not account statements.
3708 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
3710 * langhooks.h (lang_hooks_for_tree_inlining): Add
3712 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
3714 (max-inline-insns): set to 300.
3715 (min-inline-insns): set to 10.
3716 * tree-inline.c (struct inline_data): Rename inlined_stmts to
3718 (INSNS_PER_STMT): Kill.
3719 (inlinable_function_p): Compute and store body size.
3720 (expand_call_inline): Likewise.
3721 (optimize_inline_calls): Likewise.
3723 2003-07-08 James E Wilson <wilson@tuliptree.org>
3726 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
3727 loop over new variable t2 instead of t.
3729 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
3732 * config/i386/winnt.c: Replace use of error(), warning() with
3733 error_with_decl(), warning_with_decl(), throughout.
3735 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
3737 * opts.c (wrap_help): Use unsigned int, not size_t.
3739 2003-07-08 Stephane Carrez <stcarrez@nerim.fr>
3741 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
3742 as .file/.loc directives are incompatible with linker relaxation.
3744 2003-07-08 Zack Weinberg <zack@codesourcery.com>
3746 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
3747 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
3748 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
3749 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
3750 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
3751 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
3752 Escape { and } characters which are not part of range expressions.
3753 * fixinc/fixincl.x: Regenerate.
3754 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
3756 2003-07-08 Steven Bosscher <steven@gcc.gnu.org>
3759 * tree-inline.c (find_alloca_call): Use
3760 walk_tree_without_duplicates, instead of walk_tree.
3761 (find_builtin_longjmp_call): Likewise.
3762 * c-objc-common.c (c_cannot_inline_fn): Likewise.
3763 * c-semantics.c (find_reachable_label): Likewise.
3765 2003-07-08 Jakub Jelinek <jakub@redhat.com>
3768 * config/i386/i386.c (ix86_check_movabs): New function.
3769 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
3770 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
3771 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
3773 2003-07-08 Chris Demetriou <cgd@broadcom.com>
3775 * Makefile.in (install-po): Cope with empty CATALOGS.
3777 2003-07-08 Richard Sandiford <rsandifo@redhat.com>
3779 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
3780 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
3781 (SECTION_FUNCTION_TEMPLATE): Delete.
3782 * config/mips/elf.h: As for elf64.h.
3783 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
3784 * config/mips/linux.h: As for elf.h
3785 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
3786 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
3787 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
3788 of in_sdata from current_section_name and current_section_flags.
3789 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
3790 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
3791 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
3792 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
3793 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
3794 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
3795 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
3796 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
3797 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
3798 (override_options): Remove setting of MASK_GPOPT.
3799 (mips_output_external): Use mips_in_small_data_p to check whether a
3800 symbol needs an .extern directive. Don't emit such directives for
3801 TARGET_EXPLICIT_RELOCS.
3802 (mips_declare_object): Update accordingly.
3803 (mips_select_rtx_section): Call named_section rather than
3805 (mips_select_section): Use default_elf_section_section for everything
3806 except .text string constants.
3807 (mips_in_small_data_p): New function.
3808 (mips_encode_section_info): Remove small data handling.
3809 (mips_unique_section): Delete.
3810 (iris6_section_type_flags): New function.
3811 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
3813 2003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3816 * pa.md: Disparage all mtsar constraints.
3817 (extzv, extv, insv): Don't fail on length of {32|64}.
3819 2003-07-08 Zack Weinberg <zack@codesourcery.com>
3821 * system.h: Poison MAP_CHARACTER.
3822 * config/i370/i370-protos.h (mvs_map_char): Delete.
3823 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
3824 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
3825 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
3827 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
3829 * toplev.c (randomize): Correct call to time().
3831 2003-07-08 Jakub Jelinek <jakub@redhat.com>
3833 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
3834 REG_EQUIV notes as well.
3836 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
3838 * doc/md.texi: Fix the description of addmodecc.
3840 2003-07-07 Zack Weinberg <zack@codesourcery.com>
3842 * Makefile.in (top_builddir): Set to "..", not ".".
3843 (INTLLIBS, INTLDEPS): Delete.
3844 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
3845 (LIBDEPS): Add $(LIBICONV_DEP).
3846 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
3847 (INCLUDES): Replace -I../intl with @INCINTL@.
3848 ($(top_builddir)/intl/libintl.a): Delete rule.
3849 (stage2-start, stage3-start, stage4-start, stageprofile-start,
3850 stagefeedback-start): Use $$ for variable to be evaluated by
3852 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
3853 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
3854 * aclocal.m4: sinclude ../config/progtest.m4. Add
3855 contents of lcmessage.m4 from gettext distro.
3856 * configure.in: Check for wchar.h and setlocale. Set
3857 LIBICONV_DEP to the empty string and substitute it.
3858 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
3859 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
3860 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
3861 in $LIBINTL, to avoid linking it twice.
3862 * configure, config.in: Regenerate.
3864 2003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
3866 * fixinc/mkfixinc.sh: Remove winnt support.
3867 * fixinc/fixinc.winnt: Delete with extreme prejudice.
3869 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
3871 * Makefile.in: Update.
3872 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
3873 * c.opt: Update documentation.
3874 * common.opt: Add some help text.
3875 * opts.c: Include intl.h.
3876 (wrap_help, print_help): New.
3877 (find_opt, handle_option, common_handle_option): opt_text now
3878 contains the '-'. Use print_help to output help.
3879 * opts.h (struct cl_option): New member "help".
3880 * opts.sh: Update to handle help text output and to prepend
3882 * toplev.c (display_help): Remove some help text.
3884 2003-07-07 David Edelsohn <edelsohn@gnu.org>
3885 Fariborz Jahanian <fjahanian@apple.com>
3887 * configure.in: Test for PowerPC mfcr field support in assembler.
3888 * config.in, configure: Regenderated.
3890 * config/rs6000/power4.md: Add mfcrf reservation.
3891 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
3892 * config/rs6000/rs6000.c (mfcr_operation): Define.
3893 (print_operand): Add 'Q' case for mfcrf.
3894 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
3895 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
3896 (movcc_internal1): Emit optional field operand for mfcr and set
3897 "type" attribute appropriately.
3898 (mfcr SCC): Likewise.
3899 (movesi_from_cr_one): New.
3901 2003-07-07 Roger Sayle <roger@eyesopen.com>
3903 * config/i386/i386.md: Correct check-in of incorrect version.
3905 2003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3907 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
3908 adjacent stdio calls.
3909 * c-decl.c (c_print_identifier): Likewise.
3910 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
3911 * print-rtl.c (print_rtx): Likewise.
3912 * print-tree.c (print_node_brief, print_node): Likewise.
3913 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
3915 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
3916 * config.in, configure: Regenerated.
3918 2003-07-07 Roger Sayle <roger@eyesopen.com>
3921 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
3922 Changed to define_expand patterns that copy operand[1] to prevent
3923 it from being clobbered before emitting an atan2?f3_1 insn.
3924 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
3925 patterns that actually specify the behaviour of x87's FPATAN.
3927 2003-07-07 Jakub Jelinek <jakub@redhat.com>
3929 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
3930 clearing of SYMBOL_FLAG_LOCAL bit.
3931 If vcall_offset fits into signed 16-bit immediate, use
3932 one instruction for both addition and load.
3934 2003-07-07 Neil Booth <neil@daikokuya.co.uk>
3936 * opts.c (common_handle_option): Correct handling of the
3937 -falign- switches that do and don't take an argument.
3939 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
3941 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
3943 (pushhi1_h8300hs): Likewise.
3945 2003-07-07 Andreas Jaeger <aj@suse.de>
3947 * genextract.c: Convert remaining prototypes to ISO C90.
3949 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
3950 * fold-const.c (fold_single_bit_test): Likewise.
3951 * diagnostic.c (default_diagnostic_finalizer): Likewise.
3952 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
3954 * gengtype.c (write_array): Generate ISO C90 prototypes.
3956 * genflags.c (gen_proto): Generate ISO C90 prototypes.
3958 2003-07-07 Roger Sayle <roger@eyesopen.com>
3960 PR optimization/11059
3961 * expr.c (can_store_by_pieces): Return true if length is zero.
3962 (store_by_pieces): If length is zero and endp is two, abort,
3963 othwerise, if length is zero and endp is not two, return "to".
3964 (clear_by_pieces): Do nothing if length is zero.
3965 (clear_storage): Do nothing if length is zero.
3966 (store_constructor): Simplify code when size is zero, or the
3967 target has already been cleared. This avoids emitting a
3968 blockage instruction when initializing empty structures.
3970 2003-07-07 Andreas Jaeger <aj@suse.de>
3972 * mips-tfile.c: Convert prototypes to ISO C90.
3973 * mips-tdump.c: Convert prototypes to ISO C90.
3975 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
3977 * rtl.h (emit_line_note): Take a location_t.
3978 (emit_line_note_force): Remove.
3979 (set_file_and_line_for_statement): Take a location_t.
3980 * tree.g (emit_line_note): Take a location_t.
3981 * emit-rtl.c (emit_line_note): Take a location_t.
3982 (emit_line_note_force): Remove.
3983 * function.c (init_function_start): Adjust emit_line_note call.
3984 (expand_function_end): Use force_next_line_note, not
3985 emit_line_note_force.
3986 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
3987 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
3988 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
3989 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
3990 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
3991 genrtl_continue_stmt, genrtl_switch_stmt,
3992 genrtl_asm_stmt): Likewise.
3993 * expr.c (expand_expr): Likewise.
3994 * integrate.c (expand_inline_function): Likewise.
3995 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
3996 (expand_decl_init): Adjust emit_line_note call.
3998 2003-07-07 Dale Johannesen <dalej@apple.com>
4000 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
4002 2003-07-07 Andreas Jaeger <aj@suse.de>
4004 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
4005 * config/i386/i386.c: Likewise.
4007 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
4009 * config/h8300/h8300.md: Use gen_int_mode instead of
4010 GEN_INT (trunc_int_for_mode (...)).
4012 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
4014 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
4015 2 bytes and then subtract 2 from the stack pointer.
4016 (pushhi1_h8300hs): Likewise.
4018 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
4020 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
4022 * configure: Regenerated.
4023 * Makefile.in: Remove extraneous comment.
4024 * toplev.c (randomize): Protect against potential multiple calls.
4025 * doc/invoke.texi (-frandom-seed): Document use for in coverage
4028 2003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4029 Eric Botcazou <ebotcazou@libertysurf.fr>
4031 PR optimization/11198
4032 * alias.c (objects_must_conflict_p): Return 1 if the types have
4033 the same alias set, not if the alias sets only conflict.
4035 2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
4037 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
4038 (convert_cset): Change inbuf to type ICONV_CONST char.
4039 * Makefile.in (LIBS): Add LIBICONV.
4041 * doc/invoke.texi (-falign-functions): Document that
4042 when n is zero then a machine-dependent default is used.
4043 (-falign-labels): Document that when n is zero then a
4044 machine-dependent default is used and that -falign-labels =1
4045 is equivalent to -fno-align-labels.
4046 (-falign-loops): Likewise.
4047 (-falign-jumps): Likewise.
4049 2003-07-06 Art Haas <ahaas@airmail.net>
4051 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
4054 2003-07-06 James E Wilson <wilson@tuliptree.org>
4056 PR optimization/9812
4057 * rtl.h (mem_for_const_double): Delete prototype.
4058 * varasm.c (mem_for_const_double): Delete function.
4059 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
4060 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
4061 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
4062 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
4063 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
4064 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
4065 comment about confused support for XFmode constants.
4067 Mon Jul 7 02:03:56 CEST 2003 Jan Hubicka <jh@suse.cz>
4069 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
4071 2003-07-06 Kazu Hirata <kazu@cs.umass.edu>
4073 * config/h8300/h8300.c: Fix comment typos.
4074 * config/h8300/h8300.md: Likewise.
4075 * config/i386/athlon.md: Likewise.
4076 * config/i386/i386.c: Likewise.
4077 * config/i386/pentium.md: Likewise.
4078 * config/ia64/ia64.c: Likewise.
4079 * config/ia64/itanium1.md: Likewise.
4080 * config/ia64/itanium2.md: Likewise.
4081 * config/m32r/m32r.md: Likewise.
4082 * config/m68hc11/m68hc11.c: Likewise.
4083 * config/mcore/mcore.c: Likewise.
4084 * config/mips/sr71k.md: Likewise.
4085 * config/mips/t-iris5-as: Likewise.
4086 * config/mmix/mmix.h: Likewise.
4087 * config/ns32k/ns32k.h: Likewise.
4088 * config/ns32k/NOTES: Fix a typo.
4090 2003-07-06 Andreas Jaeger <aj@suse.de>
4092 * stmt.c: Convert remaining prototypes to ISO C90.
4093 * cfglayout.c: Likewise.
4094 * dbxout.c: Likewise.
4096 * genemit.c: Likewise.
4098 * basic-block.h: Convert prototypes to ISO C90.
4099 * c-parse.in: Likewise.
4100 * c-pragma.h: Likewise.
4101 * c-typeck.c: Likewise.
4102 * cfghooks.h: Likewise.
4103 * cfgloopanal.c: Likewise.
4104 * dbxout.h: Likewise.
4105 * debug.h: Likewise.
4106 * dwarf2asm.h: Likewise.
4108 * gengtype-lex.l: Likewise.
4109 * sched-int.h: Likewise.
4110 * timevar.c: Likewise.
4112 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
4114 * c-common.h (c_comon_handle_filename,
4115 c_common_missing_arguement): New.
4116 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
4117 LANG_HOOKS_MISSING_ARGUMENT): New.
4118 * c-opts.c (missing_arg): Rename c_common_missing_argument,
4119 update to be an appropriate langhook.
4120 (c_common_handle_option): Don't handle filenames.
4121 (c_common_handle_filename): New.
4122 * hooks.c (hook_void_constcharptr,
4123 hook_bool_constcharptr_size_t_false): New.
4124 * hooks.h (hook_void_constcharptr,
4125 hook_bool_constcharptr_size_t_false): New.
4126 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
4127 LANG_HOOKS_MISSING_ARGUMENT): New.
4128 (LANG_HOOKS_INITIALIZER): Update.
4129 * langhooks.h (struct lang_hooks): Add handle_filename and
4131 * opts.c (handle_option): Don't handle filenames here, but ...
4132 (handle_options): ... here.
4133 (common_handle_option): Don't handle missing arguments here.
4134 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
4135 LANG_HOOKS_MISSING_ARGUMENT): New.
4137 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
4139 * Makfile.in: Remove traces of mbchar.
4140 * c-parse.in (MULTIBYTE_CHARS): Remove.
4141 * config.in (MULTIBYTE_CHARS): Remove.
4142 * configure: Remove --enable-mbchar.
4143 * configure.in: Remove --enable-mbchar.
4144 * mbchar.c, mbchar.h: Remove.
4145 * system.h: Poison MULTIBYTE_CHARS.
4146 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
4147 * config/linux.h (MULTIBYTE_CHARS): Remove.
4148 * config/svr4.h (MULTIBYTE_CHARS): Remove.
4149 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
4151 2003-07-06 Andreas Jaeger <aj@suse.de>
4153 * varray.c (varray_check_failed): Fix typo.
4155 * unroll.c: Convert prototypes to ISO C90.
4156 * varasm.c: Likewise.
4157 * varray.c: Likewise.
4158 * varray.h: Likewise.
4159 * vmsdbgout.c: Likewise.
4160 * xcoffout.c: Likewise.
4161 * xcoffout.h: Likewise.
4163 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
4165 * gcov-io.h: Add a local time stamp.
4166 (struct gcov_info): Add stamp field.
4167 (gcov_truncate): New.
4168 * coverage.c (read_counts_file): Skip the stamp.
4169 (coverage_begin_output): Write the stamp.
4170 (build_gcov_info): Declare and init the stamp.
4171 (coverage_finish): Only unlink data file, if stamp is zero.
4172 * gcov-dump.c (dump_file): Dump the stamp.
4173 * gcov.c (bbg_stamp): New.
4174 (release_structures): Clear bbg_stamp.
4175 (read_graph_file): Read stamp.
4176 (read_count_file): Check stamp.
4177 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
4179 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
4181 * tree.h (default_flag_random_seed): Remove.
4182 * toplev.h (local_tick): Declare.
4183 * tree.c (flag_random_seed, default_flag_random_seed): Move to
4185 (append_random_chars): Don't call default_flag_random_seed.
4186 * toplev.c (flag_random_seed): Define here. Set local_tick.
4187 (local_tick): Define.
4188 (randomize): New, moved from tree.c.
4189 (print_switch_values): Adjust.
4190 (toplev_main): Call randomize.
4192 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
4194 * tree.h (crc32_string): Declare.
4195 * tree.c (append_random_chars): Remove.
4196 (crc32_string): New.
4197 (get_file_function_name_long): Use crc32_string here.
4199 2003-07-06 Andreas Jaeger <aj@suse.de>
4201 * gcc.c: Convert prototypes to ISO C90.
4203 * gcov-dump.c: Likewise.
4204 * gcov-iov.c: Likewise.
4206 * genattrtab.h: Likewise.
4208 * global.c: Likewise.
4209 * graph.c: Likewise.
4210 * graph.h: Likewise.
4211 * hosthooks.h: Likewise.
4212 * hooks.h: Likewise.
4213 * hooks.c: Likewise.
4214 * hashtable.h: Likewise.
4215 * hashtable.c: Likewise.
4216 * haifa-sched.c: Likewise.
4217 * integrate.h: Likewise.
4218 * integrate.c: Likewise.
4219 * input.h: Likewise.
4220 * ifcvt.c: Likewise.
4222 * langhooks-def.h: Likewise. Add extern to prototypes.
4223 * langhooks.c: Likewise.
4224 * langhooks.h: Likewise.
4226 * local-alloc.c: Likewise.
4227 * loop-init.c: Likewise.
4228 * loop-unroll.c: Likewise.
4229 * loop-unswitch.c: Likewise.
4231 * loop.h: Likewise. Add extern to prototypes.
4232 * machmode.h: Likewise.
4234 * mbchar.c: Likewise.
4235 * mbchar.h: Likewise.
4236 * mkdeps.c: Likewise.
4237 * mkdeps.h: Likewise.
4238 * optabs.c: Likewise.
4239 * optabs.h: Likewise.
4240 * output.h: Likewise.
4241 * gccspec.c: Likwise.
4242 * postreload.c: Likewise.
4243 * prefix.c: Likewise.
4244 * prefix.h: Likewise.
4245 * print-rtl.c: Likewise.
4246 * print-tree.c: Likewise.
4247 * profile.c: Likewise.
4248 * read-rtl.c: Likewise.
4251 * recog.c: Likewise.
4252 * recog.h: Likewise.
4253 * reg-stack.c: Likewise.
4254 * regclass.c: Likewise.
4255 * regmove.c: Likewise.
4256 * regrename.c: Likewise.
4258 * reload.c: Likewise.
4259 * reload.h: Likewise.
4260 * reload1.c: Likewise.
4261 * reorg.c: Likewise.
4262 * resource.c: Likewise.
4263 * resource.h: Likewise.
4264 * rtl-error.c: Likewise.
4267 * rtlanal.c: Likewise.
4268 * sbitmap.c: Likewise.
4269 * sbitmap.h: Likewise.
4270 * scan-decls.c: Likewise.
4272 * sched-deps.c: Likewise.
4273 * sched-ebb.c: Likewise.
4274 * sched-int.h: Likewise.
4275 * sched-rgn.c: Likewise.
4276 * sched-vis.c: Likewise.
4277 * sibcall.c: Likewise.
4278 * simplify-rtx.c: Likewise.
4279 * sreal.c: Likewise.
4280 * sreal.h: Likewise.
4281 * ssa-ccp.c: Likewise.
4282 * ssa-dce.c: Likewise.
4285 * stack.h: Likewise.
4287 * stor-layout.c: Likewise.
4288 * stringpool.c: Likewise.
4289 * target.h: Likewise.
4290 * timevar.c: Likewise.
4291 * timevar.h: Likewise.
4292 * tlink.c: Likewise.
4293 * tracer.c: Likewise.
4294 * tree-inline.c: Likewise.
4295 * tree-inline.h: Likewise.
4299 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
4301 * combine.c (nonzero_bits1): Fix a warning.
4303 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
4305 * config/h8300/h8300.c (compute_mov_length): Correct the
4306 length of loading CONST0_RTX (SFmode).
4308 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
4310 * toplev.c (output_clean_symbol_name): Remove.
4311 * toplev.h (output_clean_symbol_name): Remove.
4312 * config/alpha/alpha.c (unicosmk_output_module_name): Use
4313 lbasename & clean_symbol_name.
4315 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
4317 * ggc.h: Follow spelling conventions.
4318 * config/i386/i386.c: Likewise.
4319 * config/i386/winnt.c: Likewise.
4320 * config/rs6000/rs6000.c: Likewise.
4322 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
4324 * bt-load.c: Fix comment typos.
4325 * c-incpath.c: Likewise.
4327 * cfgcleanup.c: Likewise.
4328 * cfgloop.h: Likewise.
4329 * cfgloopmanip.c: Likewise.
4330 * cfgrtl.c: Likewise.
4331 * diagnostic.h: Likewise.
4332 * dwarfout.c: Likewise.
4333 * emit-rtl.c: Likewise.
4334 * et-forest.c: Likewise.
4335 * et-forest.h: Likewise.
4338 * genattr.c: Likewise.
4340 * langhooks.h: Likewise.
4341 * local-alloc.c: Likewise.
4342 * loop-unroll.c: Likewise.
4343 * loop-unswitch.c: Likewise.
4344 * ra-build.c: Likewise.
4345 * regclass.c: Likewise.
4346 * regmove.c: Likewise.
4347 * rtl.def: Likewise.
4348 * rtlanal.c: Likewise.
4349 * sched-ebb.c: Likewise.
4350 * sched-rgn.c: Likewise.
4351 * simplify-rtx.c: Likewise.
4353 * tracer.c: Likewise.
4356 2003-07-05 Zack Weinberg <zack@codesourcery.com>
4358 * cppcharset.c: Use the correct return type for the fallback iconv
4361 Sat Jul 5 16:18:53 CEST 2003 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4363 Blame to Jan Hubicka <jh@suse.cz>
4364 * cfglayout.c (record_effective_endpoints): Split insns before
4365 first basic block correctly.
4367 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4369 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
4370 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
4371 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
4373 2003-07-05 Andreas Jaeger <aj@suse.de>
4375 * genattrtab.c (write_attr_get): Revert part of last patch to
4376 always write out a prototype.
4378 * genemit.c (gen_split): Readd lost unused attributes in last
4381 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4383 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
4384 different from header.
4386 2003-07-05 Andreas Schwab <schwab@suse.de>
4388 * config/m68k/m68k.c: Remove code protected by CRDS.
4389 * config/m68k/m68k.md: Likewise.
4391 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
4394 * c-opts.c (permit_fortran_options): New.
4395 (c_common_init_options): Accept fortran front end options if
4396 it looks like we might be preprocessing Fortran.
4397 (c_common_handle_option): Don't reject switch if permit_fotran_options.
4399 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4401 * genattr.c (internal_dfa_insn_code): Output prototype.
4402 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
4403 * genautomata.c: Likewise.
4404 * genconditions.c: Likewise.
4405 * genemit.c: Likewise.
4406 * genextract.c: Likewise.
4407 * gengenrtl.c: Likewise.
4408 * gengtype.c: Likewise.
4409 * genopinit.c: Likewise.
4410 * genoutput.c: Likewise.
4411 * genpeep.c: Likewise.
4412 * genrecog.c: Likewise.
4414 2003-07-04 Zack Weinberg <zack@codesourcery.com>
4416 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
4417 (struct cpp_options): Add narrow_charset, wide_charset,
4418 bytes_big_endian fields. Remove EBCDIC field.
4419 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
4421 * cpphash.h: Include <iconv.h> if we have it, otherwise
4422 provide a dummy definition of iconv_t.
4423 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
4424 (_cpp_valid_ucn): Update prototype.
4425 (_cpp_destroy_iconv): New prototype.
4427 * doc/cpp.texi: Document character set handling.
4428 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
4429 * doc/extend.texi: Delete entire section on multiline strings.
4430 Rewrite section on __FUNCTION__ etc now that these are
4433 * cppucnid.tab, cppucnid.pl: New files.
4434 * cppucnid.h: New generated file.
4435 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
4436 (iconv_open, iconv, iconv_close): Provide dummy definitions
4438 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
4439 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
4440 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
4441 cpp_interpret_string, narrow_str_to_charconst,
4442 wide_str_to_charconst): New.
4443 (ucn_valid_in_identifier): Use a binary search through the
4444 ucnranges table defined in cppucnid.h, not a long chain of if
4446 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
4447 character names are only valid in C++ and C99" to a warning.
4448 Issue the "meaning of \[uU] is different in traditional C"
4449 warning here. Take care not to let iconv see an invalid UCS
4450 value if we get a malformed UCN. Issue an error if we don't
4452 (cpp_interpret_charconst): Moved here from cpplex.c. Use
4453 cpp_interpret_string to do the heavy lifting.
4455 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
4456 narrow_charset, wide_charset fields of options structure.
4457 (cpp_destroy): Call _cpp_destroy_iconv.
4458 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
4459 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
4460 (cpp_interpret_charconst): Moved to cppcharset.c.
4461 * cpplib.c (dequote_string): Delete.
4462 (interpret_string_notranslate): New.
4463 (do_line, do_linemarker): Use interpret_string_notranslate.
4465 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
4467 * c-common.c (fname_string, combine_strings): Delete.
4468 * c-common.h (fname_string, combine_strings): Delete prototypes.
4469 * c-lex.c (ignore_escape_flag): Delete.
4470 (cb_ident): Use cpp_interpret_string, not lex_string.
4471 (get_nonpadding_token): New function.
4472 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
4473 Adjust calls to lex_string. Don't write *value twice.
4474 (lex_string): Now handles string constant concatenation.
4475 Most of the work handed off to cpp_interpret_string.
4476 Call fix_string_type here.
4477 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
4478 FUNC_NAME, throughout.
4479 (OBJC_STRING): New token type.
4480 (primary:STRING): No need to call fix_string_type here.
4481 (primary:objc_string): Make that OBJC_STRING.
4482 (objc_string nonterminal): Delete.
4483 (yylexname): Delete code to handle fake string constants.
4484 (yylexstring): Delete entirely.
4485 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
4486 to handle CPP_ATSIGN.
4488 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
4489 * c-opts.c (missing_arg, c_common_handle_option): Handle
4490 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
4491 (c_common_init): Set cpp_opts->bytes_big_endian, not
4492 cpp_opts->EBCDIC. Call cpp_init_iconv.
4493 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
4494 (TARGET_EBCDIC): Delete default definition.
4496 * objc/objc-act.c (build_objc_string_object): No need to
4497 handle string constant concatenation.
4499 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
4501 * doc/install.texi: Fix typos.
4502 * doc/invoke.texi: Likewise.
4503 * doc/tm.texi: Likewise.
4505 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
4507 * config/pa/fptr.c: Fix comment typos.
4508 * config/pa/pa-64.h: Likewise.
4509 * config/pa/pa.c: Likewise.
4510 * config/pa/pa.h: Likewise.
4511 * config/rs6000/603.md: Likewise.
4512 * config/rs6000/7xx.md: Likewise.
4513 * config/rs6000/darwin.h: Likewise.
4514 * config/rs6000/freebsd.h: Likewise.
4515 * config/rs6000/rs6000.c: Likewise.
4516 * config/rs6000/rs6000.md: Likewise.
4517 * config/rs6000/spe.h: Likewise.
4519 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
4521 * config/s390/2064.md: Change GNU CC to GCC.
4522 * config/s390/2084.md: Likewise.
4523 * config/s390/fixdfdi.h: Likewise.
4524 * config/s390/linux.h: Likewise.
4525 * config/s390/s390-modes.def: Likewise.
4526 * config/s390/s390-protos.h: Likewise.
4527 * config/s390/s390.c: Likewise.
4528 * config/s390/s390.h: Likewise.
4529 * config/s390/s390.md: Likewise.
4530 * config/s390/s390x.h: Likewise.
4532 2003-07-04 Jeff Law <law@redhat.com>
4535 * expr.c (do_store_flag): Pass in the correct result type
4536 when calling fold_single_bit_test.
4537 * fold-const.c (fold_single_bit_test): Use result_type for the
4538 result when folding a sign bit test.
4540 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
4542 * opts.c (common_handle_options): Negate sense of -falign- switches.
4544 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
4546 * Makefile.in: Replace PWD with PWD_COMMAND.
4548 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4550 * cfgloopanal.c (count_strange_loop_iterations): New static function.
4551 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
4552 Handle strange loops.
4554 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
4556 * install.texi: Even the g77 manpage is derived from
4557 the full g77 manual.
4559 2003-07-04 Zack Weinberg <zack@codesourcery.com>
4561 * ABOUT-NLS: Delete.
4562 * intl: Delete entire directory.
4563 * aclocal.m4: Include ../config/gettext.m4. Delete
4564 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
4565 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
4566 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
4567 Remove intl/Makefile from all_outputs.
4568 * configure, config.in: Regenerate.
4569 * Makefile.in: Expunge all references to intl subdirectory.
4570 Add -I../intl to INCLUDES.
4571 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
4573 2003-07-04 Roger Sayle <roger@eyesopen.com>
4575 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
4576 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
4578 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
4580 PR c++/5287, PR c++/7910, PR c++/11021
4581 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
4582 dllimport attribute if function is defined at declaration, but
4583 report error instead. Likewise for dllimport'd variable
4584 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
4585 declared within functions, Report error if dllimport or dllexport
4586 symbol is not global.
4587 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
4588 if defined after declaration or if inlined. Don't allow definition
4589 of static data members of C++ classes. Don't dllimport virtual
4591 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
4592 (i386_pe_mark_dllimport): Remove unnecessary checks.
4593 (i386_pe_encode_section_info): Warn if the dllimport attribute
4594 and symbol prefix have been instantiated and then overridden.
4596 * doc/extend.texi: Document dllimport and dllexport attributes.
4598 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
4600 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
4602 * config/kaos.h (CPP_PREDEFINES): Delete.
4603 (TARGET_OS_CPP_BUILTINS): New.
4605 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4607 * c-aux-info.c: Include toplev.h after c-tree.h.
4608 * c-common.c: Likewise.
4609 (GCC_DIAG_STYLE): Undef.
4610 * c-semantics.c (GCC_DIAG_STYLE): Define.
4611 * c-tree.h (GCC_DIAG_STYLE): Likewise.
4612 * diagnostic.h (inform): Move prototype to toplev.h.
4613 * jump.c: Include diagnostic.h before toplev.h.
4614 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
4615 (warning, error, fatal_error, pedwarn, sorry, inform,
4616 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
4618 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4620 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
4621 at all if edge is not specified.
4622 (can_copy_bbs_p, copy_bbs): New.
4623 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
4624 * cfgloop.c (get_loop_body): Comment more precisely.
4625 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
4626 (scale_bbs_frequencies): Fix comment typo.
4627 (can_duplicate_loop_p): Use can_copy_bbs_p.
4628 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
4630 2003-07-03 Devang Patel <dpatel@apple.com>
4632 * c-opts.c (c_common_parse_file): Remove extra
4633 debug_hooks->start_source_file call.
4635 2003-07-03 Roger Sayle <roger@eyesopen.com>
4637 * real.c (real_trunc, real_floor, real_ceil): New functions
4638 to implement trunc, floor and ceil respectively.
4639 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
4640 * builtins.c (integer_valued_real_p): New function to test if
4641 a floating point expression has an integer valued result.
4642 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
4643 foo(x) where foo is an integer rounding function. Similarly,
4644 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
4645 (double)(int)x when both foo and bar are integer rounding
4646 functions and we don't need to honor errno.
4647 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
4648 New functions to fold trunc, floor and ceil.
4649 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
4650 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
4651 to fold BUILT_IN_CEIL*.
4652 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
4653 the remaining integer rounding functions.
4655 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
4657 * config/sparc/sparc.c (function_arg_partial_nregs): Use
4658 SPARC_INT_ARG_MAX to determine where to split unnamed
4659 complex FP arguments.
4661 Thu Jul 3 20:36:47 CEST 2003 Jan Hubicka <jh@suse.cz>
4663 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
4664 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
4665 (merge_blocks_move_predecessor_nojumps,
4666 merge_blocks_move_successor_nojumps): Use merge_blocks.
4667 (try_optimize_cfg): Use merge_blocks_move.
4668 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
4669 (merge_blocks_nomove): Rename to rtl_merge_blocks.
4670 (cfg_layout_create_basic_block): New.
4671 (rtl_can_merge_blocks): New.
4672 (cfg_layout_split_block): Do not alloc aux by hand.
4673 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
4675 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
4676 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
4677 * cfgloopmanip.c (loop_split_edge_with): Likewise.
4678 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
4680 * basic-block.h (basic_block_def): Add field 'rbi'.
4681 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
4682 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
4683 * cfg.c (entry_exit_blocks): Add new field.
4684 * cfglayout.c: Include alloc-pool.h;
4685 (cfg_layout_pool): New.
4686 (record_effective_endpoints, fixup_reorder_chain,
4687 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
4689 (cfg_layout_initialize_rbi): New function.
4690 (cfg_layout_initialize): Use it.
4691 (cfg_layout_finalize): Clear rbi fields.
4692 * cfglayout.h (RBI): Kill.
4693 (cfg_layout_initialize_rbi): Declare.
4694 * cfgloopmanip.c (copy_bbs): Use rbi.
4695 (record_exit_edges): Likewise.
4696 (duplicate_loop_to_header_edge): Likewise.
4697 * cfgrtl.c (cfg_layout_create_basic_block): Use
4698 cfg_layout_initialize_rbi.
4699 (cfg_layout_split_block): Use rbi.
4700 (cfg_layout_delete_block): Likewise.
4701 * loop-init.c (loop_optimizer_finalize): Likewise.
4702 * loop-unswitch.c (unswitch_loop): Likewise.
4703 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
4705 * cfgrtl.c: Update comments.
4706 (try_redirect_by_replacing_jump): New argument.
4707 (redirect_branch_edge): Break out from ...
4708 (rtl_redirect_edge_and_branch): ... this one.
4709 (update_cfg_after_block_merging): Break out from ...
4710 (rtl_merge_blocks): ... this one.
4711 (cfg_layout_split_edge): New.
4712 (cfg_layout_merge_blocks): New.
4713 (cfg_layout_can_merge_blocks_p): New.
4714 (cfg_layout_redirect_edge_and_branch): Reorganize.
4715 (cfg_layout_rtl_cfg_hooks): Fill in.
4716 (cfg_layout_delete_block): Kill barriers.
4717 * cfganal.c (can_fallthru): Deal with exit blocks
4718 * cfglayout.c (cfg_layout_function_header): New function
4719 (record_effective_endpoints): Record function header.
4720 (fixup_reorder_chain): Fixup dead jumptables; place header
4722 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
4723 * bb-reorder.c (cfg_layout_initialize): Update call.
4724 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
4725 edges in cfglayout mode.
4726 * cfglayout.c (cleanup_unconditional_jumps): Kill.
4727 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
4728 * cfglayout.h (cfg_layout_initialize): Update prototype.
4729 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
4730 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
4731 * flow.c (propagate_block): Do not crash when basic block ends
4732 by first insn in the chain.
4733 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
4735 * tracer.c (tracer): Update call of cfg_layout_initialize.
4737 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4739 * Makefile.in: Use dependency variables in lieu of explicit
4742 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
4744 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
4745 * tree.h: ...to here.
4747 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
4749 * config/s390/2064.md: Fix comment typos.
4750 * config/s390/2084.md: Likewise.
4751 * config/s390/s390.c: Likewise.
4752 * config/s390/s390.md: Likewise.
4753 * config/sh/sh.c: Likewise.
4754 * config/sh/sh.h: Likewise.
4755 * config/sh/sh.md: Likewise.
4756 * config/sparc/sparc.c: Likewise.
4757 * config/sparc/sparc.h: Likewise.
4758 * config/sparc/sparc.md: Likewise.
4759 * config/stormy16/stormy16.c: Likewise.
4760 * config/stormy16/stormy16.h: Likewise.
4761 * config/stormy16/stormy-abi: Fix a typo.
4763 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
4765 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
4767 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4769 * config/mips/mips.h (save_argv): Delete.
4771 2003-07-03 Roger Sayle <roger@eyesopen.com>
4774 * fold-const.c (extract_muldiv_1): There's nothing that can be done
4775 if the expression is a SAVE_EXPR.
4777 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
4779 * config/m32r/m32r.c: Fix comment typos.
4780 * config/m68hc11/m68hc11.c: Likewise.
4781 * config/m68hc11/m68hc11.h: Likewise.
4782 * config/m68k/m68k.c: Likewise.
4783 * config/mcore/mcore.c: Likewise.
4784 * config/mcore/mcore.h: Likewise.
4785 * config/mcore/mcore.md: Likewise.
4786 * config/mips/mips.c: Likewise.
4787 * config/mips/mips.h: Likewise.
4788 * config/mips/mips.md: Likewise.
4789 * config/mips/netbsd.h: Likewise.
4790 * config/mn10300/mn10300.c: Likewise.
4792 2003-07-03 Andreas Schwab <schwab@suse.de>
4794 * dbxout.c (pending_bincls): Move decl down inside
4795 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
4797 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
4799 * rtl.h (NOTE_DATA): Refer to whole union.
4800 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
4802 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
4804 PR optimization/11381
4805 * simplify-rtx.c (simplify_relational_operation): Check that
4806 two equal operands have no side-effects before simplifying
4809 2003-07-02 Jeff Law <law@redhat.com>
4811 * expr.c (do_store_flag): Remove special case folding for
4812 single bit tests. Instead call back into the commonized folder
4814 * fold-const.c (fold_single_bit_test): New function, mostly
4815 extracted from do_store_flag, with an additional case extracted
4817 (fold): Call fold_single_bit_test appropriately.
4818 * tree.h (fold_single_bit_test): Prototype.
4820 2003-07-02 Zack Weinberg <zack@codesourcery.com>
4822 * system.h: Include filenames.h.
4823 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
4824 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
4825 define based on HAVE_DOS_BASED_FILE_SYSTEM.
4826 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
4827 * config/i386/xm-mingw32.h: Don't define
4828 HAVE_DOS_BASED_FILE_SYSTEM,
4829 DIR_SEPARATOR, or DIR_SEPARATOR_2.
4830 * doc/hostconfig.texi: Update to match.
4832 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
4833 config/i386/cygwin.h:
4834 Use IS_ABSOLUTE_PATH throughout.
4835 * gcc.c (DIR_UP): Delete, unused.
4836 * protoize.c (IS_SAME_PATH): Define in terms of
4838 (is_abspath): Delete.
4840 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
4842 * config/i386/emmintrin.h: Fix comment typos.
4843 * config/i386/i386.c: Likewise.
4844 * config/i386/i386.h: Likewise.
4845 * config/i386/sco5.h: Likewise.
4846 * config/ia64/ia64.c: Likewise.
4847 * config/ia64/itanium2.md: Likewise.
4849 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
4851 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
4853 (emit_bincl_stab): Same.
4854 (emit_pending_bincls): Same.
4856 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
4858 * config/h8300/h8300.c (compute_mov_length): Fix the length of
4859 loading CONST0_RTX (SFmode).
4860 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
4861 'G' to CONST0_RTX (SFmode).
4862 * config/h8300/h8300.md (movsf_h8300): Change the first
4864 (movsf_h8300h): Likewise.
4866 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
4868 * c-common.h (c_common_init_options): New prototype.
4869 * c-opts.c (deferred_size): Remove.
4870 (defer_opt): Array is now pre-allocated.
4871 (c_common_init_options): Pre-allocate deferred_opts. Make
4872 lang_flags unsigned.
4873 (push_command_line_options): Free deferred_opts.
4874 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
4875 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
4876 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
4877 * langhooks.h (struct lang_hooks): New prototype for init_options.
4878 * main.c (main): Cast argv.
4879 * opts.c (handle_option, handle_options): Update prototypes.
4880 (decode_options): save_argc, save_argv are not global. Constify.
4881 * opts.h (decode_options): New prototype.
4882 * toplev.c (general_init): New protoype.
4883 (save_argv): Make static.
4884 (save_argc): Remove.
4885 (print_switch_values, general_init): Constify.
4886 (toplev_main): Save argv.
4887 * toplev.h (toplev_main): Update prototype.
4888 (save_argc, save_argv): Remove.
4890 2003-07-02 David Edelsohn <edelsohn@gnu.org>
4892 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
4893 (emit_bincl_stab): Same.
4894 (emit_pending_bincls): Same.
4896 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
4899 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
4901 2003-07-02 Andreas Schwab <schwab@suse.de>
4903 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
4905 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
4907 PR optimization/11210
4908 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
4909 about the behaviour with regard to bitfields.
4910 * fold-const (decode_field_reference): Record outermost type in
4911 case the expression is a NOP. Strip all NOPs. Set the signedness
4912 to that of the outermost type (if any) when the bitsize is equal
4913 to the size of the type.
4915 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
4917 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
4918 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
4919 (adddi3_internal_3, addsi3_internal_2): Likewise.
4921 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
4923 * config/mips/mips.c (machine_function): Add new fields:
4924 ignore_hazard_length_p and all_noreorder_p.
4925 (mips_flag_delayed_branch): New variable.
4926 (override_options): Treat '/' as an operand punctuation character.
4927 Set up mips_flag_delayed_branch.
4928 (print_operand): Handle '/'.
4929 (mips_output_function_prologue): Put the whole function in
4930 .set noreorder and .set nomacro if all_noreorder_p is true.
4931 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
4932 (mips16_optimize_gp): Remove "first insn" parameter.
4933 (mips16_lay_out_constants): New function, split out from mips_reorg.
4934 (mips_avoid_hazard, mips_avoid_hazards): New functions.
4935 (mips_reorg): For mips16 code, call mips16_lay_out_constant
4936 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
4937 do delayed-branch scheduling followed by hazard detection.
4938 (mips_adjust_insn_length): Only account for hazards if
4939 !ignore_hazard_length_p.
4940 (mips_output_load_label): Add a nop to the o32 sequence if
4941 the target suffers from load delays.
4942 (mips_output_conditional_branch): Add %/ to the end of branches.
4943 (mips_output_division): Fill the branch delay slot with %#.
4944 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
4945 instructions. End all other %* branches with %/.
4946 (ffssi2, ffsdi2): Fix lengths.
4947 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
4948 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
4949 (fix_truncsfsi2_macro): Likewise.
4950 (mov_lwl): Set hazard to "none".
4951 (ashldi3_internal): Fill the branch delay slot with %#.
4952 (ashrdi3_internal, lshrdi3_internal): Likewise.
4953 (exception_receiver): Explicitly set $28.
4954 (hazard_nop): New pattern.
4956 Wed Jul 2 08:12:36 CEST 2003 Jan Hubicka <jh@suse.cz>
4958 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
4959 before calling tree_inlinable_function_p.
4961 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4963 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
4964 <internal/stdio_core.h> too.
4965 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
4966 <internal/wchar_core.h> too.
4967 Substitute va_list uses in inline definition.
4968 * fixinc/fixincl.x: Regenerate.
4970 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4972 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
4973 Undef before redefinition.
4974 (LABEL_AFTER_LOC): Likewise.
4975 (DEFAULT_SIGNED_CHAR): Likewise.
4976 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
4979 * config/mips/iris3.h: Remove, unused.
4980 * config/mips/iris4.h: Likewise.
4982 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
4984 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
4985 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
4988 * config/mips/iris5.h: Move explicit includes ...
4989 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
4991 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
4992 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
4995 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
4996 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
4999 * config/mips/iris6.h: Fix IRIX spelling.
5000 (MULTILIB_DEFAULTS): Undef before redefinition.
5002 * config/mips/iris6.h: Move explicit includes ...
5003 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
5005 Wed Jul 2 02:16:48 CEST 2003 Jan Hubicka <jh@suse.cz>
5007 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
5008 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
5009 Use next_needed field instead of aux to maintain the queue.
5010 * cgraph.h (cgraph_node): Add next_needed.
5011 (cgraph_varpool_node): Add next_needed; remove aux.
5012 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
5014 Wed Jul 2 02:12:51 CEST 2003 Jan Hubicka <jh@suse.cz>
5016 * cgraphunit.c (cgraph_finalize_function): Set finalized.
5017 (cgraph_finalize_function): Do not examine inlinablility.
5018 (cgraph_finalize_compilation_unit): Do it here.
5019 * cgraph.h (cgraph_local_info): Add finalized field.
5021 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5023 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
5024 (gt_pch_restore): Likewise.
5026 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
5028 * config/alpha/alpha.c: Fix comment typos.
5029 * config/alpha/elf.h: Likewise.
5030 * config/arm/arm.c: Likewise.
5031 * config/arm/arm.h: Likewise.
5032 * config/arm/arm.md: Likewise.
5033 * config/arm/t-arm-coff: Likewise.
5034 * config/arm/t-strongarm-pe: Likewise.
5035 * config/arm/xscale-elf.h: Likewise.
5036 * config/avr/avr.h: Likewise.
5038 2003-07-01 Jeff Law <law@redhat.com>
5040 * stmt.c (any_pending_cleanups): Remove another redundant test.
5042 2003-07-01 David Edelsohn <edelsohn@gnu.org>
5043 J"orn Rennecke <joern.rennecke@superh.com>
5045 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
5048 2003-07-01 Devang Patel <dpatel@apple.com>
5050 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
5052 (struct dbx_file): New members - bincl_status, pending_bincl_name and
5054 (pending_bincls): New.
5055 (dbxout_init): Initialize new dbx_file members.
5056 (dbxout_start_source_file): Same.
5057 (emit_bincl_stab): New function.
5058 (emit_pending_bincls): Same.
5059 (emit_pending_bincls_if_required): Same.
5060 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
5062 (dbxout_begin_block): Emit pending BINCL stabs.
5063 (dbxout_end_block): Same.
5064 (dbxout_function_decl): Same.
5065 (dbxout_continue): Same.
5066 (dbxout_type): Same.
5067 (dbxout_class_name_qualifiers): Same.
5068 (dbxout_symbol): Same.
5069 (dbxout_symbol_location): Same.
5070 (dbxout_parms): Same.
5072 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5074 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
5075 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
5077 2003-07-01 Andreas Jaeger <aj@suse.de>
5079 * fold-const.c: Convert prototypes to ISO C90.
5080 * function.c: Likewise.
5081 * function.h: Likewise.
5083 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
5085 * doc/contrib.texi: Fix typos.
5086 * doc/invoke.texi: Likewise.
5087 * doc/passes.texi: Likewise.
5088 * doc/sourcebuild.texi: Likewise.
5089 * doc/tm.texi: Likewise.
5091 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
5093 * basic-block.h: Fix comment typos.
5094 * bb-reorder.c: Likewise.
5095 * c-format.c: Likewise.
5096 * cfgcleanup.c: Likewise.
5097 * cfghooks.h: Likewise.
5098 * cfgloop.c: Likewise.
5099 * cfgloopmanip.c: Likewise.
5100 * cfgrtl.c: Likewise.
5101 * cgraph.h: Likewise.
5102 * cgraphunit.c: Likewise.
5103 * combine.c: Likewise.
5104 * convert.c: Likewise.
5105 * dbxout.c: Likewise.
5108 * diagnostic.c: Likewise.
5109 * dwarf2out.c: Likewise.
5110 * et-forest.h: Likewise.
5112 * fold-const.c: Likewise.
5113 * function.h: Likewise.
5114 * gcov-io.h: Likewise.
5117 * genautomata.c: Likewise.
5118 * ggc-common.c: Likewise.
5119 * ggc-page.c: Likewise.
5120 * loop-unroll.c: Likewise.
5121 * loop-unswitch.c: Likewise.
5123 * mips-tfile.c: Likewise.
5124 * optabs.c: Likewise.
5125 * ra-build.c: Likewise.
5126 * ra-colorize.c: Likewise.
5127 * ra-rewrite.c: Likewise.
5129 * regmove.c: Likewise.
5130 * reload.c: Likewise.
5131 * rtlanal.c: Likewise.
5132 * sched-ebb.c: Likewise.
5133 * sched-int.h: Likewise.
5134 * sched-vis.c: Likewise.
5135 * sreal.c: Likewise.
5136 * ssa-ccp.c: Likewise.
5138 * toplev.c: Likewise.
5139 * tree-inline.c: Likewise.
5140 * value-prof.c: Likewise.
5141 * value-prof.h: Likewise.
5143 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
5145 * rtl.h (emit_line_note_after): Remove.
5146 (emit_note_copy_after, emit_note_copy): New.
5147 * emit-rtl.c (reorder_insns_with_line_notes): Replace
5148 emit_line_note_after with emit_note_copy_after.
5149 (emit_insn_after_with_line_notes): Likewise.
5150 (emit_line_note_after): Kill.
5151 (emit_note_copy_after): New.
5152 (emit_note_copy): New.
5153 * function.c (emit_return_into_block): Use emit_note_copy_after.
5154 (thread_prologue_and_epilogue_insns): Likewise.
5155 * integrate.c (expand_inline_function): Use emit_note_copy.
5156 (copy_insn_list): Likewise.
5157 * unroll.c (copy_loop_body): Likewise.
5158 * cfglayout.c (duplicate_insn_chain): Likewise.
5160 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
5162 * c-tree.h (define_label): Replace filename and lineno arguments
5164 * c-decl.c (poplevel): Adjust define_label call.
5165 (pop_label_level): Likewise.
5166 (define_label): Replace filename and lineno arguments with a
5168 (store_parm_decls): Use DECL_SOURCE_LOCATION.
5169 * c-parse.in (label): Adjust define_label call.
5171 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
5173 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
5174 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
5175 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
5176 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
5177 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
5179 2003-07-01 Andreas Jaeger <aj@suse.de>
5181 * final.c: Convert prototypes to ISO C90.
5183 * flags.h: Likewise.
5184 * gcov-io.c: Likewise.
5185 * gcov-io.h: Likewise.
5187 See ChangeLog.9 for earlier changes.