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