1 2003-09-07 Gabriel Dos Reis <gcc@integrable-solutions.net>
3 * c-pretty-print.h (pp_c_left_brace): Declare.
4 (pp_c_right_brace): Likewise.
5 * c-pretty-print.c (pp_c_left_brace): Now a function
6 (pp_c_right_brace): Likewise.
8 Sun Sep 7 14:50:03 CEST 2003 Jan Hubicka <jh@suse.cz>
10 * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
12 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
14 * diagnostic.c (warn_deprecated_use): Move to toplev.c
16 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
18 * langhooks.c (lhd_print_error_function): Move from diagnostic.c.
19 * Makefile.in (langhooks.o): Depend on diagnostic.h
21 2003-09-06 James E Wilson <wilson@tuliptree.org>
23 * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
26 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
28 * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
29 and use it throughout.
31 2003-09-07 Jan Hubicka <jh@suse.cz>
33 * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
35 * toplev.c (rest_of_decl_compilation): Do not finalize external
38 * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
40 (cgraph_varpool_finalize_decl): Notice global symbol when needed.
42 2003-09-06 Jan Hubicka <jh@suse.cz>
45 * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
48 * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
50 2003-09-06 Gabriel Dos Reis <gdr@integrable-solutions.net>
52 * diagnostic.c (announce_function): Move to toplev.c.
54 2003-09-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
56 * gcse.c (expr_equiv_p): Don't consider anything to be equal to
59 2003-09-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
61 * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
62 when gc checking is enabled.
64 2003-09-06 Steven Bosscher <steven@gcc.gnu.org>
67 * c-decl.c (c_expand_body_1): Move return warning from here...
68 (finish_function): ...to here.
70 2003-09-05 Geoffrey Keating <geoffk@apple.com>
72 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
73 a subset of the input class.
75 2003-09-05 Kazu Hirata <kazu@cs.umass.edu>
77 * config/i860/i860.c: Follow spelling conventions.
78 * config/i860/i860.h: Likewise.
79 * config/sh/sh.h: Likewise.
81 2003-09-05 Nitin Yewale <NitinY@KPITCummins.com>
83 * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
84 * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
85 * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
87 2003-09-05 Roger Sayle <roger@eyesopen.com>
88 Richard Henderson <rth@redhat.com>
91 * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
92 multiplication to implement division by constant integer.
94 Fri Sep 5 07:35:16 CEST 2003 Jan Hubicka <jh@suse.cz>
96 * opts.c (decode_options): Enable unit-at-a-time at -O2.
97 * params.def (max-inline-insns-single): Set to 500
98 (max-inline-insns-auto): Set to 150
99 * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
101 2003-09-04 Richard Henderson <rth@redhat.com>
103 * cgraph.c (cgraph_mark_reachable_node): Split out from ...
104 (cgraph_mark_needed_node): Remove needed argument.
105 * cgraph.h: Update to match.
106 * cgraphunit.c (decide_is_function_needed): Split out from ...
107 (cgraph_finalize_function): Reorg. Avoid deferred_inline_function
108 if we generated the function.
109 (record_call_1): Update for cgraph_mark_reachable_node.
110 * varasm.c (mark_referenced): Likewise.
111 * objc/objc-act.c (mark_referenced_methods): Likewise.
113 2003-09-04 DJ Delorie <dj@redhat.com>
115 * targhooks.c: Add comment explaining the migration process.
117 2003-09-04 Eric Christopher <echristo@redhat.com>
119 * config/frv/t-frv: Fix path for frv-abi.h.
120 * config/frv/frv-asm.h: Fix string concatenation.
122 2003-09-04 DJ Delorie <dj@redhat.com>
124 * builtins.c (apply_args_size): Guard against a NULL cfun.
125 (expand_builtin_apply_args_1): Likewise.
126 (expand_builtin_apply): Likewise.
127 Fixes PR bootstrap/12172.
129 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
131 * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
132 assembler supports Sun syntax for cmov.
133 * configure: Regenerate.
134 * config.in: Likewise.
135 * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
136 HAVE_AS_IX86_CMOV_SUN_SYNTAX.
137 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
138 Fixes PR target/12101.
140 2003-09-04 Matt Austern <austern@apple.com>
142 * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
143 with verbosity 0, instead of DECL_NAME, for human-readable string.
145 2003-09-04 Eric Christopher <echristo@redhat.com>
147 * targhooks.c (default_return_in_memory): Allow
150 2003-09-04 Eric Christopher <echristo@redhat.com>
152 * targhooks.c (default_return_in_memory): Fix typo
155 2003-09-04 Eric Christopher <echristo@redhat.com>
157 * targhooks.c (default_return_in_memory): Fix default
160 2003-09-04 Bernardo Innocenti <bernie@develer.com>
162 * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
164 * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
165 enable coff-only code in m68k.c.
167 2003-09-04 Nick Clifton <nickc@redhat.com>
169 * config.gcc: Add v850e1 target. Allow --with-cpu to accept
171 * config/v850/v850.h: Accept v850e1 as a default CPU.
172 Accept -mv850e1 as a command line option.
173 * doc/invoke.texi: Document new -mv850e1 command line switch.
174 * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
177 2003-09-04 Nick Clifton <nickc@redhat.com>
179 * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
180 * config/v850/t-v850: Only produce one extra multilib - for
182 * config/v850/t-v850e: New file: Only produce one extra
183 multilib - for the v850.
185 2003-09-04 Jakub Jelinek <jakub@redhat.com>
187 * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
188 * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
189 * unwind.h (_Unwind_GetBSP): New prototype.
190 * libgcc-std.ver: Add empty GCC_3.3.2 version.
191 * mkmap-symver.awk: For symbol versions with no exported symbols,
192 don't put anything into version script, just change all symbol
193 versions which inherit from it to inherit from its ancestor.
195 2003-09-04 Eric Christopher <echristo@redhat.com>
197 * config/mips/mips.c (mips_expand_prologue): Convert to
198 calls.struct_value_rtx hook.
199 (reg_or_const_float_1_operand): New.
200 * config/mips/mips.h: Update Comments.
201 (mips_arg): Add reg_or_const_float_1_operand.
202 * config/mips/mips.md (divdf3); Convert to expander.
204 (*divdf3): New pattern.
207 Thu Sep 4 10:43:24 CEST 2003 Jan Hubicka <jh@suse.cz>
209 * toplev.c (wrapup_global_declarations): Fix final pass in
212 2003-09-04 Mark Mitchell <mark@codesourcery.com>
214 * doc/extend.texi: Document removal of cast-as-lvalue extension in
217 2003-09-04 Nicolas Roche <roche@act-europe.fr>
219 * gcc.c (process_command): Fix typo.
221 2003-09-03 David O'Brien <obrien@FreeBSD.org>
224 * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
225 (PTRDIFF_TYPE): Likewise.
226 (WCHAR_TYPE_SIZE): Likewise.
228 2003-09-03 DJ Delorie <dj@redhat.com>
230 * targhooks.c: New file.
231 * targhooks.h: New file.
232 * Makefile.in: Add targhooks.o support.
233 (function.o): Depend on$(TARGET_H).
235 (combine.o): Depend on $(TREE_H) and $(TARGET_H).
236 * builtins.c (apply_args_size, expand_builtin_apply_args_1,
237 expand_builtin_apply): Convert to calls.struct_value_rtx hook.
238 (expand_builtin_saveregs): Convert to
239 calls.expand_builtin_saveregs hook.
240 * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
242 (get_parm_info) ... here.
243 (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
245 (finish_function): Handle calls.promote_prototypes hook here too.
246 * c-typeck.c (convert_arguments): Convert to
247 calls.promote_prototypes hook.
248 (c_convert_parm_for_inlining): Likewise.
249 * calls.c (initialize_argument_information): Convert to
250 calls.promote_function_args hook.
251 (expand_call): Convert to calls.struct_value_rtx,
252 calls.strict_argument_naming,
253 calls.pretend_outgoing_varargs_named, and
254 calls.promote_function_return hooks. Pass fndecl to
255 aggregate_value_p. Initialize CUMULATIVE_ARGS before calling
256 hooks, so they can use that.
257 (emit_library_call_value_1): Likewise.
258 * combine.c (setup_incoming_promotions): Convert to
259 calls.promote_function_args hook.
260 * emit-rtl.c: Convert to calls.struct_value_rtx hook.
261 * expr.c (expand_assignment): Pass call to aggregate_value_p.
262 (expand_expr): Likewise.
263 * expr.h: Remove support for SETUP_INCOMING_VARARGS,
264 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
265 RETURN_IN_MEMORY macro defaults.
266 * final.c (profile_function): Convert to calls.struct_value_rtx
268 * function.c (aggregate_value_p): Accept function type tree as
269 second parameter; try to deduce fntype from it. Convert to
270 calls.return_in_memory hook.
271 (assign_parms): Convert to calls.setup_incoming_varargs,
272 calls.strict_argument_naming, calls.promote_function_args,
273 calls.pretend_outgoing_varargs_named hooks. Pass fndecl to
275 (expand_function_start): Likewise. Convert to
276 calls.struct_value_rtx hook.
277 (expand_function_end): Convert to calls.promote_function_return hook.
278 (allocate_struct_function): Pass fndecl to aggregate_value_p.
279 * hard-reg-set.h: Update comments to new hook names.
280 * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
281 * reg-stack.c (stack_result): Likewise.
282 * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
283 * stmt.c (expand_value_return): Convert to
284 calls.promote_function_return hook.
285 * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
286 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
287 TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
288 TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
289 TARGET_STRICT_ARGUMENT_NAMING,
290 TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
291 * target.h: Likewise.
292 * tree.h (aggregate_value_p): Also takes a tree to deduce function
293 attributes from (for target hooks).
294 * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
295 PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
296 STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
297 EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
298 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
301 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
302 to aggregate_value_p.
303 * config/arm/arm.c (arm_init_cumulative_args,
304 arm_output_mi_thunk): Likewise.
305 * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
307 * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
308 mips_can_use_return_insn): Likewise.
309 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
310 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
311 * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
313 * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
314 function to aggregate_value_p.
315 * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
318 * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
319 (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
320 sh_function_arg_advance, sh_pass_in_reg_p): New. * config/sh/sh.c
321 (sh_handle_renesas_attribute, sh_promote_prototypes,
322 sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
323 sh_setup_incoming_varargs, sh_strict_argument_naming,
324 sh_pretend_outgoing_varargs_named): New decls.
325 (targetm): Add new hooks.
326 (calc_live_regs): Save MACL and MACH if the function has the
328 (sh_expand_prologue): Support renesas attribute.
329 (sh_builtin_saveregs): Make static.
330 (sh_build_va_list): Support renesas attribute.
331 (sh_va_start): Likewise.
332 (sh_va_arg): Likewise.
333 (sh_promote_prototypes): New.
334 (sh_function_arg): New, moved from sh.h. Support renesas
336 (sh_function_arg_advance): Likewise.
337 (sh_return_in_memory): Likewise.
338 (sh_strict_argument_naming): Likewise.
339 (sh_pretend_outgoing_varargs_named): Likewise.
340 (sh_struct_value_rtx): New.
341 (sh_attribute): Add renesas attribute.
342 (sh_handle_renesas_attribute): New.
343 (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
344 (sh_ms_bitfield_layout_p): Support renesas attribute also.
345 (sh_output_mi_thunk): Pass function to aggregate_value_p. *
346 config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
348 (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
350 (sh_args): Add renesas_abi flag.
351 (INIT_CUMULATIVE_ARGS): Set it. Pass fndecl to aggregate_value_p.
352 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
353 (PASS_IN_REG_P): Support renesas attribute. Pass DF and TF on the
354 stack for the renesas abi.
355 (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
356 SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
357 PROMOTE_PROTOTYPES): Moved to sh.c. * config/sh/sh.md (call): Set
358 call cookie to indicate renesas calls.
360 2003-09-03 Mostafa Hagog <mustafa@il.ibm.com>
362 * gcse.c (replace_one_set): New function.
363 (pre_insert_copy_insn): Change the order of copying
364 to make copy propagation discover additional PRE opportunities.
366 2003-09-03 Roger Sayle <roger@eyesopen.com>
368 PR optimization/11700.
369 * simplify-rtx.c (simplify_subreg): Check that the subreg offset
370 of a hard register is representable before trying to simplify it
371 using subreg_hard_regno.
373 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
375 * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
376 * configure: Regenerate.
378 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
380 * intl.h (N_): Remove parentheses.
382 2003-09-03 Bernardo Innocenti <bernie@develer.com>
384 * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
385 * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
386 definition and code blocks compiled when not defined.
387 * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
388 * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
389 * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
390 * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
392 2003-09-03 Jeff Sturm <jsturm@one-point.com>
394 * cgraphunit.c (visited_nodes): New static variable.
395 (record_call_1): Use walk_tree with visited_nodes.
396 (cgraph_create_edges): Use walk_tree with visited_nodes.
397 Setup/teardown visited_nodes hashtable.
399 2003-09-03 Roger Sayle <roger@eyesopen.com>
401 * toplev.c (flag_rounding_math): New global variable.
402 (f_options): Add to the list of language independent options.
403 * flags.h (flag_rounding_math): Prototype here.
404 (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
405 * common.opt (frounding-math): New common command line option.
406 * opts.c (common_handle_option): Handle OPT_frounding_math.
407 (set_fast_math_flags): -ffast-math clears flag_rounding_math.
409 * doc/invoke.texi: Document this new command line option.
411 2003-09-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
413 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
415 Wed Sep 3 16:55:25 CEST 2003 Jan Hubicka <jh@suse.cz>
417 * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
418 * c-decl.c (finish_function): Kill arguments, always use cgraph path.
419 * c-objc-common.c: Kill include of gt-c-objc-common.h
420 (expand_deferred_fns, deffer_fn): Kill function.
421 (deferred_fns): Kill variable.
422 (finish_cdtor): Update finish_function call.
423 (c_objc_common_finish_file): Always call cgraph code.
424 * c-parse.c: Regenerate.
425 * c-parse.y: Regenerate.
426 * c-tree.h (finish_function): Update prototype.
427 * objc-acct.c (build_module_descriptor, finish_method_def):
428 Update call of finish_function.
429 * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
431 (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
432 function and assemble it if needed.
433 (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
435 (cgraph_optimize): Likewise.
436 (cgraph_expand_function): In non-unit-at-a-time mode keep function body
437 even when it has no inline callees.
438 * c-parse.in: Update calls to finish_function.
440 2003-09-03 Nick Clifton <nickc@redhat.com>
442 * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
443 Use #error to generate the message if TARGET_DEFAULT is not
446 2003-09-03 Richard Sandiford <rsandifo@redhat.com>
448 * config/mips/mips.h (MASK_UNUSED1): Remove.
449 (MASK_XGOT, TARGET_XGOT): Define.
450 (TARGET_SWITCHES): Add an entry for -mxgot.
451 (ASM_SPEC): Map -mxgot to -xgot.
452 * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
453 whether we're using a big-GOT sequences.
454 (mips_legitimize_const_move, mips_expand_call): Likewise.
455 (override_options): Revert 2003-01-09 change.
456 * doc/invoke.texi: Document -mxgot.
458 2003-09-02 Jason Merrill <jason@redhat.com>
460 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
461 * config/sparc/sol2.h: Not here.
463 2003-09-02 Roger Sayle <roger@eyesopen.com>
465 * expr.c (expand_expr): The code following both_summands performs
466 the same task as simplify_gen_binary. Replace all gotos to
467 both_summands with a call to simplify_gen_binary and delete the
470 2003-09-02 Jason Merrill <jason@redhat.com>
473 * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
475 2003-09-02 Jeff Sturm <jsturm@one-point.com>
477 * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
478 (cgraph_optimize_function): Set current_function_decl to the
479 fndecl we're integrating from.
481 2003-09-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
483 * builtins.def: Break out _Complex math functions into their
486 2003-09-02 Andreas Jaeger <aj@suse.de>
488 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
490 2003-09-02 Josef Zlomek <zlomekj@suse.cz>
492 * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
493 finding the note again.
495 2003-09-02 Nathanael Nerode <neroden@gcc.gnu.org>
497 * config.gcc: Remove host-specific rewrites of target_alias.
499 2003-09-01 Mark Mitchell <mark@codesourcery.com>
501 * Makefile.in (genprogs): Fix typo.
503 * Makefile.in (gencheck.o): Remove build commands.
504 (dummy-conditions.o): Likewise.
505 (read-rtl.o): Likewise.
506 (gensupport.o): Likewise.
507 (genconfig$(build_exeext)): Remove rule.
508 (genconfig.o): Remove build commands.
509 (genflags$(build_exeext)): Remove rule.
510 (genflags.o): Remove build commands.
511 (gencodes$(build_exeext)): Remove rule.
512 (gencodes.o): Remove build commands.
513 (genconstants.o): Remove build commands.
514 (genemit$(build_exeext)): Remove rule.
515 (genemit.o): Remove build commands.
516 (genrecog$(build_exeext)): Remove rule.
517 (genrecog.o): Remove build commands.
518 (genextract$(build_exeext)): Remove rule.
519 (genextract.o): Remove build commands.
520 (genpeep$(build_exeext)): Remove rule.
521 (genpeep.o): Remove build commands.
522 (genattr$(build_exeext)): Remove rule.
523 (genattr.o): Remove build commands.
524 (genprognames): New variable.
525 (genprogs): Likewise.
527 (genprogs): New rule.
529 (genattrtab.o): Remove build commands.
530 (genautomata.o): Likewise.
531 (genoutput$(build_exeext)): Remove rule.
532 (genoutput.o): Remove build commands.
533 (gengenrtl.o): Likewise.
534 (genpreds.o): Likewise.
535 (gengtype.o): Likewise.
536 (genconditions.o): Likewise.
537 (gen-protos.o): Likewise.
539 (fix-header.o): Likewise.
540 (scan-decls.o): Likewise.
541 (check-g++): Combine with other check targets.
542 (check-gcc): Likewise.
543 (check-g77): Likewise.
544 (check-objc): Likewise.
546 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
548 * config.gcc: Remove host-specific stuff which is unused here
549 since the introduction of config.host.
551 * doc/fragments.texi: Mention config.host.
552 * doc/sourcebuild.texi: Mention config.host. Give brief descriptions
553 of config.build, config.host, and config.gcc.
555 2003-09-01 Zack Weinberg <zack@codesourcery.com>
557 * c-decl.c (pushdecl): Don't put variables on
558 C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
561 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
563 * config.host: New file.
564 * config.gcc: Remove some host-specific stuff and some
565 logic needed only for repeated invocation.
566 * configure.in: Use config.host.
567 * configure: Regenerate.
569 2003-09-01 Josef Zlomek <zlomekj@suse.cz>
571 * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
572 * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
573 * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
574 (fold): Kill BIT_ANDTC_EXPR and label bit_and.
575 * tree.def (BIT_ANDTC_EXPR): Kill.
577 2003-08-31 Nathanael Nerode <neroden@gcc.gnu.org>
579 * configure.in: Remove uses of "for x in .. ${foo}" idiom.
580 * configure: Regenerate.
582 * config.gcc: Remove references to install_headers_dir, now unused
583 since introduction of config.build.
584 * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
586 * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
589 * config.build: New file.
590 * config.gcc: Remove some build-specific stuff.
591 * configure.in: Use config.build.
592 * configure: Regnerate.
594 2003-08-31 Steven Bosscher <steven@gcc.gnu.org>
595 Roger Sayle <roger@eyesopen.com>
598 * stmt.c (expand_end_case_type): Only use jump tables for dense
599 switch statements when optimizing for size.
601 2003-08-31 Olivier Hainque <hainque@act-europe.fr>
603 * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
604 the != 0 case, which ensures pending stack adjustments are flushed.
606 2003-08-30 Zack Weinberg <zack@codesourcery.com>
608 * configure.frag: Delete file.
609 * configure.in: Rename the substitution variables
610 dep_host_xmake_file and dep_tmake_file to xmake_file and
611 tmake_file respectively. Do not expand $srcdir in the
612 value of these; leave that for Make. Introduce a new
613 substitution varaible, all_lang_makefrags, which lists
614 subdirectory Make-lang.in files; exclude these from
615 all_lang_makefiles, which is now only for subdirectory
616 outputs. Do not invoke configure.frag. Do not set nor
617 AC_SUBST_FILE target_overrides, host_overrides, or
618 language_fragments. Create build subdirectories in
619 config.status extra commands.
620 * configure: Regenerate.
621 * Makefile.in: Update substitutions to match changes to
622 configure. Use include directives instead of @-insertions
623 to read in host, target, and language fragments.
624 (Makefile rule): Do not invoke configure.frag. Do not copy
625 config.status to config.run before executing it. Set
626 CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
628 (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
630 2003-08-30 Zack Weinberg <zack@codesourcery.com>
632 * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
633 * c-typeck.c (same_translation_unit_p): New function.
634 (comptypes): Use it instead of flags parameter to identify
635 structure types from different translation units.
636 * c-decl.c (duplicate_decls): Always call comptypes with
637 COMPTYPE_STRICT flags argument.
638 (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
641 2003-08-30 Zack Weinberg <zack@codesourcery.com>
643 * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
644 * c-decl.c (struct c_scope): Remove "incomplete" field.
645 (pushdecl): Attach variables with incomplete types to
646 the TYPE_MAIN_VARIANT of the incomplete type in question.
647 (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
648 to complete, not at current_scope->incomplete. All such
649 variables do need completion.
651 2003-08-30 Richard Earnshaw <rearnsha@arm.com>
652 Nicolas Pitre <nico@cam.org>
654 * arm/lib1funcs.asm (RETCOND): Delete.
655 (RETLDM): New assembler macro. Use it for returning with ldm/ldr.
656 (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
657 (__ARM_ARCH__): Move here from ieee754-?f.S.
658 (RET, RETc): Clean up definitions.
659 (DIV_FUNC_END): Renamed from FUNC_END. All uses changed.
660 (FUNC_END): New macro that marks the end of any function.
661 (ARM_FUNC_START): New macro that allows an assembler routine to be
662 implemented in ARM code even if a Thumb-only build.
663 Unconditionally include ieee754-?f.S.
664 * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
665 Mark ends of functions.
666 Split into separate conditionally-compiled units.
667 Use RETLDM to return from routines.
668 * arm/ieee754-sf.S: Similarly.
669 * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
670 Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
671 _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
672 _fixsfsi and _fixunssfsi.
674 * arm/ieee754-df.S (__muldf3): Fix bug when result of a
675 multiplication underflows to zero.
676 (__adddf3): Fix bug when using VFP ordering on little-endian
678 (__fixdfsi): Use rrx to extract the carry into a register instead of
679 MRS instruction. Optimize later use of result.
680 * arm/ieee754-sf.S (__fixsfsi): Likewise.
681 (__fixunssfsi): Use a better sequence for handling negative-or-zero.
683 2003-08-29 Richard Henderson <rth@redhat.com>
685 * tree-optimize.c: New file.
686 * Makefile.in (OBJS-archive): Add tree-optimize.o.
687 (tree-optimize.o): New.
688 * c-decl.c (store_parm_decls): Use allocate_struct_function.
689 (finish_function): Don't free_after_parsing or free_after_compilation.
690 (set_save_expr_context): Move to tree-optimize.c.
691 (c_expand_body_1): Use tree_rest_of_compilation.
692 * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
693 * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
694 * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
695 iterate until closure.
696 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
697 LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
698 (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
699 * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
700 * toplev.h (tree_rest_of_compilation): Declare it.
702 2003-08-29 Richard Henderson <rth@redhat.com>
704 * function.h (struct function): Add rtl_inline_init, saved_for_inline.
705 * integrate.c (save_for_inline): Set saved_for_inline.
706 * c-semantics.c (genrtl_scope_stmt): Check it.
707 * toplev.c (wrapup_global_declarations): Check it.
708 (rest_of_handle_inlining): Set and check rtl_inline_init.
709 (rest_of_compilation): Remove out of date comment.
711 2003-08-29 Richard Henderson <rth@redhat.com>
713 * function.c (allocate_struct_function): New, split out of ...
714 (prepare_function_start, init_function_start): ... here.
715 * expr.c (init_expr): Use ggc_alloc_cleared.
716 * stmt.c (init_stmt_for_function): Likewise.
717 * tree.h (allocate_struct_function): Declare.
719 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
721 * config.gcc: Don't use negated character class in shell case
724 2003-08-29 Richard Henderson <rth@redhat.com>
726 * function.h (struct function): Move function_frequency and
727 max_jumptable_ents before start of bit field members.
729 2003-08-29 Richard Henderson <rth@redhat.com>
731 * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
732 (fold_builtin_constant_p) ... not here.
734 2003-08-29 Richard Henderson <rth@redhat.com>
736 * c-tree.h (C_DECL_FILE_SCOPE): Move ...
737 * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
738 * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
740 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
742 * builtins.def: Fix typos.
743 (ATTR_MATHFN_FPROUNDING_STORE): New macro.
744 (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
745 BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
746 BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
747 BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
749 * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
750 Use ATTR_MATHFN_FPROUNDING_ERRNO.
752 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
754 * config.gcc (i386-*-vsta): Fix obvious bogosity.
756 * fixinc/inclhack.def: Remove special cases for unsupported
757 PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
758 * fixinc/fixincl.x: Regenerate.
760 2003-08-29 Mark Mitchell <mark@codesourcery.com>
762 * Makefile.in (cpp.info): Just state dependencies.
763 (gcc.info): Likewise.
764 (gccint.info): Likewise.
765 (gccinstall.info): Likewise.
766 (cppinternals.info): Likewise.
769 (gccint.dvi): Likewise.
770 (gccinstall.dvi): Likewise.
771 (cppinternals.dvi): Likewise.
777 (fsf-funding.7): Likewise.
778 ($(objdir)/%.info): New pattern rule.
781 2003-08-29 Kelley Cook <kelleycook@wideopenwest.com>
783 * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
784 (restage2): Likewise.
785 (restage3): Likewise.
786 (restage4): Likewise.
787 (restageprofile): Likewise.
788 (restagefeedback): Likewise.
789 (bubblestrap): Likewise.
791 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
793 * config.gcc: Narrow unsupported target match to avoid clobbering
796 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
798 * builtins.c (mathfn_built_in): Handle new math builtins.
800 2003-08-28 Per Bothner <per@bothner.com>
802 Fix (hopefully temporary) for breakage caused by my 08-21 patch.
803 * cpplex.c (_cpp_get_fresh_line): Check for null buffer.
804 (_cpp_lex_buffer): Likewise.
805 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
807 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
809 * config/s390/s390.md ("*mulsi3_sign"): New insn.
810 ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
811 ("mulsidi3"): ... this new insn.
812 ("umulsidi3"): New insn.
813 ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
814 mixed-mode matching constraints.
815 ("udivmodsi4", "udivmoddisi3"): New insns.
816 ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
818 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
820 * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
821 BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
822 BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
823 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
824 BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
825 BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
826 BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
827 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
828 BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
829 BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
830 BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
831 * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
832 BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
833 BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
834 BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
835 * tree.c: Assign new type_nodes.
836 * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
837 TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
838 (float_ptr_type_node, double_ptr_type_node,
839 long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
841 * doc/extend.texi: Document new builtins.
843 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
845 * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
846 BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
848 * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
849 BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
850 BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
851 BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
852 BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
853 BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
854 BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
855 BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
856 BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
857 BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
859 * doc/extend.texi: Document new builtins.
861 2003-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
863 * fixinc/mkfixinc.sh: Remove special case code for unsupported
864 variants of i?86, powerpcle, and thumb.
865 * fixinc/mkfixinc.sh: Remove special case code for unsupported
866 arm and hppa variants.
868 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
870 * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
871 BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
872 BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
873 BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
874 BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
875 BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
876 BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
877 BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
878 BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
879 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
881 * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
882 BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
883 BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
884 BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
885 BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
886 BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
887 BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
888 BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
889 BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
890 BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
891 BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
892 BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
893 BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
894 BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
895 BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
896 BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
897 BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
898 BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
899 BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
900 BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
901 BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
902 BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
903 BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
904 BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
905 BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
906 BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
907 BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
908 BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
909 BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
910 BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
911 BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
913 * doc/extend.texi: Document new builtins.
915 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
917 * config/s390/s390.c (legitmate_constant_p): Use LARL on
918 zSeries machines even in 31-bit addressing mode.
919 (legitimate_reload_constant_p): Likewise.
920 (legitimize_pic_address): Likewise.
921 (legitimize_tls_address): Likewise.
922 (s390_split_branches): Likewise.
923 (s390_dump_pool): Likewise.
924 (s390_mainpool_finish): Likewise.
925 (s390_chunkify_start): Likewise.
926 (s390_select_rtx_section): Likewise.
927 * config/s390/s390.md ("doloop_si"): Likewise.
928 ("pool_start_31", "pool_end_31"): Likewise.
929 ("pool_start_64", "pool_end_64"): Likewise.
930 ("main_base_31_small", "main_base_31_large"): Likewise.
931 ("main_base_64"): Likewise.
932 ("reload_base_31", "reload_base_64"): Likewise.
933 ("*movsi_larl"): New insn.
934 ("cjump", "icjump"): Use long branches on zSeries machines.
936 ("call"): Use BRASL on zSeries machines.
937 ("call_value", "call_value_tls"): Likewise.
938 ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
940 ("*bras", "*brasl", "*basr") ... these new insns.
941 ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
942 "bas_31_r"): Remove and replace by ...
943 ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
944 ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
945 "bas_64_tls", "bas_31_tls"): Remove and replace by ...
946 ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
947 ("*return_si", "*return_di"): Remove and replace by ...
948 ("*return"): ... this new insn.
949 ("rotlsi3"): Allow on zSeries machines.
951 * config/s390/s390.c (legitimize_reload_constant_p): Use
952 LL/LH type instructions in z/Architecture mode.
953 * config/s390/s390.md ("*movsi_lli"): Likewise.
954 ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
955 ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
956 ("*extendqisi2"): Use LB in z/Architecture mode.
957 ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
959 ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
962 * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
964 ("ptr_extend"): Allow only in 64-bit mode.
966 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
968 * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
969 (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
971 (main): Only use standard_startfile_prefix if native.
972 * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
974 2003-08-27 Per Bothner <pbothner@apple.com>
976 * cpperror.c (print_location): Don't check for !pfile->buffer. That
977 test fails following my 08-21 change, and it seems unnecessary anyway.
978 (cpp_error): Likewise.
980 2003-08-27 Jason Merrill <jason@redhat.com>
982 * real.c (do_multiply): Initialize with memset.
984 2003-08-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
986 * gcov.c (typedef struct arc_info): New field cs_count.
987 (accumulate_line_counts): Find cycles correctly.
989 2003-08-27 Ulrich Weigand <uweigand@de.ibm.com>
991 * config/s390/s390.c (struct machine_function): Remove member
993 (s390_optimize_prolog): Replace TEMP_REG argument with
994 TEMP_USED and BASE_USED. Do not check get_pool_size ().
995 (general_s_operand): Accept all immediates before reload if
996 ALLOW_IMMEDIATE. If not ALLOW_IMMEDIATE, reject literal pool
998 (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
999 (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
1000 (s390_alloc_pool): New function.
1001 (s390_new_pool): Call it.
1002 (s390_dump_pool): Add REMOTE_LABEL argument.
1003 (s390_chunkify_start): Add BASE_REG argument. Do not check
1005 (s390_chunkify_finish): Add BASE_REG argument. Adapt
1006 s390_dump_pool call.
1007 (s390_pool_count, s390_nr_constants): Remove.
1008 (s390_output_constant_pool): Remove.
1009 (s390_mainpool_start): New function.
1010 (s390_mainpool_finish): New function.
1011 (s390_mainpool_cancel): New function.
1012 (s390_reorg): Implement main literal pool handling.
1013 (s390_emit_prologue): Emit main_pool placeholder instead of
1014 literal_pool_31 / literal_pool_64 insns.
1015 * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
1016 (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
1017 * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
1018 ("main_base_31_small", "main_base_31_large"): New insns.
1019 ("main_base_64", "main_pool"): New insns.
1020 ("literal_pool_31", "literal_pool_64"): Remove.
1022 2003-08-27 Nathanael Nerode <neroden@gcc.gnu.org>
1024 * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
1026 * fixinc/inclhack.def (undefine_null): Don't generate \r characters.
1028 * fixinc/fixincl.x: Regenerate.
1030 2003-08-27 Richard Earnshaw <rearnsha@arm.com>
1032 * lib1funcs.asm (L_ieee754_sp): New. Include ieee754-sf.S.
1033 (L_ieee754_dp): New. Include ieee754-df.S.
1034 * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
1035 and compilation in apcs-26 mode.
1036 * arm/ieee754-df.S: Likewise.
1037 * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
1038 (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
1040 2003-08-27 Nicolas Pitre <nico@cam.org>
1042 * arm/ieee754-sf.S: New.
1043 * arm/ieee754-df.S: New.
1045 2003-08-27 Jakub Jelinek <jakub@redhat.com>
1047 * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
1048 and restore it if returning NULL.
1050 2003-08-27 Richard Sandiford <rsandifo@redhat.com>
1052 * calls.c (initialize_argument_information): If an argument has no
1053 stack space associated with it, and BLOCK_REG_PADDING is defined,
1054 use it to decide at which end the argument should be padded.
1055 * function.c (assign_parms): Allocate BLKmode stack slots.
1056 * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
1057 (mips_pad_reg_upward): Declare.
1058 * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
1059 (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
1060 (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
1061 (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
1062 * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
1063 (mips_expand_call): Remove code for generating structure shifts.
1064 (mips_arg_info): Don't set struct_p. Don't set fpr_p for non-float
1065 types unless using the EABI.
1066 (function_arg_advance): Don't generate shift instructions.
1067 (function_arg): Don't return them. Don't short-circuit the
1068 check for double structure chunks for DFmode arguments.
1069 (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
1070 (mips_expand_prologue): Remove code to emit structure shifts.
1071 * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
1072 structure passing (inet_ntoa, inet_lnaof, inet_netof). Update
1073 comments to say that only structure returns are a problem.
1075 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
1077 * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
1078 Fix to match produced versions.
1079 * fixinc/inclhack.def (longlong_t): New disabled test, ported
1081 * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
1083 * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
1084 ported from fixinc.ptx.
1086 2003-08-26 Per Bothner <pbothner@apple.com>
1088 * cpplib.h (struct cpp_token): Change type of field line to fileline.
1089 (cpp_error_with_line): Use fileline for appropriate parameter.
1090 * cpphash.h (struct cpp_macro): Change type of field line to fileline.
1091 (struct cpp_reader): Likewise for fields line and directive_line.
1092 (_cpp_begin_message): Use fileline for appropriate parameter.
1093 * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
1094 cpp_error): Use fileline for appropriate parameters and variables.
1095 (print_location): New local lin, since it is not a fileline.
1097 2003-08-26 Roger Sayle <roger@eyesopen.com>
1100 * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
1101 (FLOAT_TYPE_P): Define in terms of these two new macros.
1102 * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
1103 for complex floating point types.
1105 2003-08-26 Ulrich Weigand <uweigand@de.ibm.com>
1107 * config/s390/s390.c (emit_prologue): Don't check literal pool size.
1108 * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
1109 s390_output_pool_entry.
1111 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
1113 * fixinc/inclhack.def (svr4_preproc_lint_on,
1114 svr4_preproc_lint_off, svr4_preproc_machine): New disabled
1115 fixes, ported from fixinc.svr4.
1117 2003-08-26 Mark Mitchell <mark@codesourcery.com>
1119 * doc/install.texi (Prerequisites): Mention GNU make requirement.
1121 * Makefile.in (AR_FOR_TARGET): Export it.
1122 (AR_CREATE_FOR_TARGET): Likewise.
1123 (AR_FLAGS_FOR_TARGET): Likewise.
1124 (AR_EXTRACT_FOR_TARGET): Likewise.
1126 (BUILD_PREFIX): Likewise.
1127 (BUILD_PREFIX_1): Likewise.
1128 (DESTDIR): Likewise.
1129 (GCC_FOR_TARGET): Likewise.
1130 (INCLUDES): Likewise.
1131 (INSTALL_DATA): Likewise.
1132 (LIB1ASMSRC): Likewise.
1133 (LIBGCC2_CFLAGS): Likewise.
1134 (MACHMODE_H): Likewise.
1135 (NM_FOR_TARGET): Likewise.
1136 (RANLIB_FOR_TARGET): Likewise.
1137 (libsubdir): Likewise.
1138 (slibdir): Likewise.
1139 (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
1141 (libgcc.a): Don't pass them here.
1142 (stmp-multilib): Or here.
1143 (install-libgcc): Or here.
1144 (install-multilib): Or here.
1145 (POSTSTAGE1_FLAGS_TO_PASS): Or here.
1146 (stage1_build): Or here.
1148 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
1150 * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
1151 "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
1153 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
1155 * config/s390/s390.md ("*fmadddf", "*fmsubdf",
1156 "*fmaddsf", "*fmsubsf"): New insns.
1158 2003-08-26 Roger Sayle <roger@eyesopen.com>
1160 * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
1161 (C1*C2)/X when unsafe math optimizations are allowed.
1162 (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
1163 math optimizations. Minor code clean-ups. Recursively call
1164 fold when constructing sub-expressions.
1166 2003-08-26 Roger Sayle <roger@eyesopen.com>
1168 * builtins.c (fold_builtin_bitop): New function to perform constant
1169 folding of ffs, clz, ctz, popcount and parity builtin functions
1170 and their long and long long variants (such as ffsl and ffsll).
1171 (fold_builtin): fold_builtin_bitop when appropriate.
1172 * simplify-rtx.c (simplify_unary_operation): Honor both
1173 CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
1174 evaluating clz and ctz at compile-time, for operands wider
1177 2003-08-26 Nathan Sidwell <nathan@codesourcery.com>
1179 * builtins.c (build_function_call_expr): Don't set
1180 TREE_SIDE_EFFECTS here.
1181 * expr.c (emit_block_move_via_libcall): Likewise.
1182 (clear_storage_via_libcall): Likewise.
1183 * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
1186 * gcse.c (is_too_expensive): New function.
1187 (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
1189 2003-08-25 Zack Weinberg <zack@codesourcery.com>
1191 * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
1192 commented-out logic to use DCE threads (if present), add
1193 support for POSIX threads.
1194 * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
1195 #defines for -pthread. Add -lpthread to LIB_SPEC when
1196 -pthread. In both cases take -mt as a synonym for -pthread
1197 for acc compatibility.
1198 Define GTHREAD_USE_WEAK to 0.
1199 * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
1200 Remove old logic for DCE threads from LIB_SPEC.
1201 * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
1203 2003-08-25 Roger Sayle <roger@eyesopen.com>
1205 * builtins.c (expand_builtin_mathfn): Rearrange so that we only
1206 return 0 for invalid argument types. Instead drop through to a
1207 call of expand_call at the bottom of function. If op is SQRT,
1208 try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
1210 2003-08-25 Richard Henderson <rth@redhat.com>
1212 * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
1213 result when op0 is SImode.
1215 2003-08-25 Nathanael Nerode <neroden@twcny.rr.com>
1217 * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
1219 * fixinc/fixincl.x: Regenerate.
1220 * fixinc/tests/base/sys/signal.h: Regenerate.
1222 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
1224 * combine.c (simplify_comparison): Re-enable widening of comparisons
1225 with non-paradoxical subregs of non-REG expressions.
1227 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
1229 * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
1231 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
1233 * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
1235 2003-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1237 * pretty-print.h (pp_maybe_newline_and_indent): New macro.
1238 * c-pretty-print.h (c_pretty_printer): Now typedef to the
1239 structure. Be consistent with pretty-print.h abd cxx-pretty-print.h
1240 (struct c_pretty_print_info): Document. Add new fields.
1241 (pp_type_specifier_seq): Rename from pp_c_type_specifier.
1242 (pp_direct_abstract_declarator): New macro.
1243 (pp_ptr_operator): Likewise.
1244 (pp_simple_type_specifier): Likewise.
1245 (pp_expression): Likewise.
1246 (pp_parameter_list): Rename from pp_parameter_declaration.
1247 * c-pretty-print.c (pp_c_whitespace): Now a function.
1248 (pp_c_left_paren): Likewise.
1249 (pp_c_right_paren): Likewise.
1250 (pp_c_dot): Likewise.
1251 (pp_c_ampersand): Likewise.
1252 (pp_c_arrow): Likewise.
1253 (pp_c_semicolon): Likewise.
1254 (pp_c_type_cast): New function.
1255 (pp_c_space_for_pointer_operator): Likewise.
1256 (pp_c_call_argument_list): Likewise.
1257 (pp_c_cv_qualifier): Adjust prototype.
1258 (pp_c_type_qualifier_list): Likewise.
1259 (pp_c_pointer): Likewise. Handle REFERENCE_TYPE here.
1260 (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
1261 Adjust to follow standard grammar.
1262 (pp_c_specifier_qualifier_list): Adjusr prototype. Handle
1263 REFERENCE_TYPE. Tidy.
1264 (pp_c_parameter_type_list): Adjust prototype. Tidy.
1265 (pp_c_parameter_declaration): Remove.
1266 (pp_c_abstract_declarator): Adjust prototype.
1267 (pp_c_direct_abstract_declarator): Likewise.
1268 (pp_c_type_id): Likewise.
1269 (pp_c_storage_class_specifier): Likewise.
1270 (pp_c_function_specifier): Likewise.
1271 (pp_c_declaration_specifiers): Likewise.
1272 (pp_c_direct_declarator): Likewise.
1273 (pp_c_declarator): Likewise.
1274 (pp_c_declarator): Likewise.
1275 (pp_c_declaration): Likewise.
1276 (pp_c_attributes): Likewise. Tidy.
1277 (pp_c_function_definition): Adjust prototype.
1278 (pp_c_char): Likewise.
1279 (pp_c_string_literal): Likewise.
1280 (pp_c_integer_constant): Likewise.
1281 (pp_c_character_constant): Likewise.
1282 (pp_c_bool_constant): Likewise.
1283 (pp_c_enumeration_constant): Likewise.
1284 (pp_c_floating_constant): Likewise.
1285 (pp_c_constant): Likewise.
1286 (pp_c_identifier): Likewise.
1287 (pp_c_primary_expression): Likewise. Remove TARGET_EXPR case. Tidy.
1288 (pp_c_initializer): Adjust prototype.
1289 (pp_c_init_declarator): Likewise.
1290 (pp_c_initializer_list): Likewise.
1291 (pp_c_id_expression): Likewise.
1292 (pp_c_postfix_expression): Likewise.
1293 (pp_c_expression_list): Likewise.
1294 (pp_c_unary_expression): Likewise.
1295 (pp_c_cast_expression): Likewise.
1296 (pp_c_multiplicative_expression): Likewise.
1297 (pp_c_additive_expression): Likewise.
1298 (pp_c_shift_expression): Likewise.
1299 (pp_c_relational_expression): Likewise.
1300 (pp_c_equality_expression): Likewise.
1301 (pp_c_and_expression): Likewise.
1302 (pp_c_exclusive_or_expression): Likewise.
1303 (pp_c_inclusive_or_expression): Likewise.
1304 (pp_c_logical_and_expression): Likewise.
1305 (pp_c_logical_or_expression): Likewise.
1306 (pp_c_conditional_expression): Likewise.
1307 (pp_c_assignment_expression): Likewise.
1308 (pp_c_expression): Likewise. Tidy.
1309 (pp_c_statement): Likewise. Document.
1310 (pp_c_pretty_printer_init): Adjust prototype. Tidy.
1312 * c-lang.c (c_initialize_diagnostics): Update.
1313 * c-common.h (strip_pointer_operator): Declare.
1314 * c-common.c (strip_pointer_operator): Define.
1316 2003-08-25 Mark Mitchell <mark@codesourcery.com>
1319 * tree.h (build_method_type_directly): Declare.
1320 * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
1321 (vector_size_helper): Likewise.
1322 * tree.c (build_method_type_directly): New function.
1323 (build_method_type): Use it.
1325 2003-08-24 Richard Henderson <rth@redhat.com>
1327 * config/i386.i386.c (ix86_return_in_memory): Reformat. Return true
1328 for 16-byte vector modes if sse not enabled; warn for abi change.
1329 (ix86_value_regno): Only return xmm0 for 16-byte vector types.
1331 2003-08-24 Kazu Hirata <kazu@cs.umass.edu>
1333 * rtlanal.c (may_trap_p): Simplify an integer comparison.
1335 2003-08-24 Nathanael Nerode <neroden@gcc.gnu.org>
1337 * fixinc/inclhack.def (AAB_svr4_replace_byteorder): Enhance
1338 comment. Enable for DYNIX/ptx systems (when they switch to
1339 regular fixincludes).
1340 * fixinc/fixincl.x: Regenerate.
1342 2003-08-23 Jason Eckhardt <jle@rice.edu>
1344 * config/i860/t-i860: New.
1345 * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
1347 2003-08-23 Jakub Jelinek <jakub@redhat.com>
1349 * c-decl.c (pushdecl): Only put decls which finish_struct will do
1350 something about onto incomplete chain.
1351 (finish_struct): If not removing type from incomplete
1354 Wed Aug 20 12:08:55 CEST 2003 Jan Hubicka <jh@suse.cz>
1357 * i386.c (ix86_expand_carry_flag_compare): Validate operand.
1360 * i386.c (const_0_to_3_operand, const_0_to_7_operand,
1361 const_0_to_15_operand, const_0_to_255_operand): New predicates.
1362 * i386.h (PREDICATE_CODES): Add these.
1363 * i386.c (pinsrw and pextrw patterns): Use them.
1366 * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
1369 * expr.c (convert_modes): Deal properly with integer to vector
1370 constant conversion.
1373 * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
1375 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
1377 * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
1378 * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
1379 ("*movhi"): ... this.
1380 ("movqi", "*movqi"): Likewise.
1381 ("movqi_64"): Remove.
1382 ("*zero_extendhisi2_31"): Change predicate to s_operand.
1384 2003-08-23 Dale Johannesen <dalej@apple.com>
1385 * calls.c (emit_library_call_value_1): Fix obvious errors in
1386 arguments to emit_group_store.
1388 2003-08-23 Jason Eckhardt <jle@rice.edu>
1390 * calls.c (emit_library_call_value_1): Remove code related
1391 to LIBGCC_NEEDS_DOUBLE.
1392 * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
1393 * doc/tm.texi: Likewise.
1394 * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
1396 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
1398 * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
1400 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
1402 * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
1403 as well. Put memory references in the varargs alias set.
1404 (mips_expand_prologue): Remove varargs handling from here.
1406 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
1408 * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
1409 s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
1410 s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
1411 for function pointer calls.
1412 * config/s390/s390.md ("*negdi2_31"): Likewise.
1414 2003-08-23 Roger Sayle <roger@eyesopen.com>
1416 * combine.c (apply_distributive_law): Correct comment.
1418 2003-08-23 Jason Eckhardt <jle@rice.edu>
1420 * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
1422 2003-08-22 Jason Eckhardt <jle@rice.edu>
1424 * config/i860/i860.c (i860_build_va_list): Create the va_decl
1425 declaration. Document the va_list structure.
1426 (i860_va_start): Initialize the va_list structure.
1427 (i860_va_arg): Rewrite completely.
1428 * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
1429 * config/i860/varargs.asm: Do not allocate or initialize
1430 a va_list. Return the address of the register save area.
1432 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
1434 * config/iq2000/iq2000.c: Fix comment typos.
1435 * config/iq2000/iq2000.md: Likewise.
1437 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
1439 * config/iq2000/iq2000.c: Follow spelling conventions.
1440 * config/iq2000/iq2000.h: Likewise.
1441 * config/mn10300/mn10300.c: Likewise.
1443 2003-08-22 Jason Eckhardt <jle@rice.edu>
1445 * config/i860/i860.c (output_move_double): Don't set latehalf
1446 to zero for CONST_INT (since it could be, e.g., -1).
1448 * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
1449 (MODSI3_LIBCALL): ...with this one.
1450 (UREMSI3_LIBCALL): Replace this macro...
1451 (UMODSI3_LIBCALL): ...with this one.
1453 2003-08-22 Jason Eckhardt <jle@rice.edu>
1455 * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
1456 (output_delayed_branch): Remove prototype.
1457 (single_insn_src_p): Remove prototype.
1458 * config/i860/i860.c (single_insn_src_p): Remove function.
1459 (output_delayed_branch): Remove function.
1460 (output_delay_insn): Remove function.
1461 (va_start): Remove unconditional test and dead code, re-format.
1462 Fix coding style and spelling problems in various comments.
1463 * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
1464 (blockage pattern): ...and use it here.
1465 (all define_peephole patterns related to delayed branches): Remove.
1466 Fix coding style and spelling problems in various comments.
1468 2003-08-22 Jason Eckhardt <jle@rice.edu>
1470 * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
1471 Remove all uses of the PARAMS macro. Remove superflous prototypes.
1472 Convert all function definitions from traditional to ISO C90 syntax.
1473 * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
1474 with 'GCC'. Remove all uses of the PARAMS macro.
1475 * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
1476 * config/i860/i860.md: Likewise.
1477 * config/i860/sysv4.h: Likewise.
1478 * config/i860/varargs.asm: Likewise.
1480 2003-08-22 Jason Eckhardt <jle@rice.edu>
1482 * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
1484 (tdesc_section): Add prototype.
1485 Update copyright dates.
1486 * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
1487 (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
1488 (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
1489 (targetm): Likewise.
1490 (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
1491 for '%d' where necessary.
1492 (i860_va_start): Remove 'stdarg_p' argument. Make conditional checks
1493 on 'stdarg_p' unconditional. Divide current_function_args_info.ints
1494 by UNITS_PER_WORD when referencing (likewise for .floats).
1495 (I860_SVR4_VARARGS): Rename...
1496 (I860_SVR4_VA_LIST): ...to this.
1497 Call build() with 't' rather than 'field'.
1498 (i860_rtx_costs): New function.
1499 (TARGET_RTX_COSTS): Define.
1500 (i860_internal_label): New function.
1501 (TARGET_ASM_INTERNAL_LABEL): Define.
1502 (i860_file_start): New function.
1503 Update copyright dates.
1504 * config/i860/i860.h (CPP_PREDEFINES): Remove.
1505 (TARGET_CPU_CPP_BUILTINS): Define.
1506 (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
1507 (CONST_COSTS): Remove (and move code to i860_rtx_costs).
1508 (ASM_FILE_START): Remove.
1509 (ASM_FILE_START_1): Remove.
1510 (ASM_GLOBALIZE_LABEL): Remove.
1511 (ASM_OUTPUT_INTERNAL_LABEL): Remove.
1512 (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
1513 with targetm.asm_out.internal_label.
1514 Update copyright dates.
1515 * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
1516 (CPP_PREDEFINES): Remove.
1517 (TARGET_OS_CPP_BUILTINS): Define.
1518 (GLOBAL_ASM_OP): Define.
1519 (ASM_FILE_START): Remove.
1520 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
1521 (TARGET_ASM_FILE_START): Define.
1522 Update copyright dates.
1524 2003-08-22 Jason Eckhardt <jle@rice.edu>
1526 * gcc/config.gcc (i860-*-sysv4*): Add target.
1527 * config/i860/i860-protos.h: New.
1528 * config/i860/i860.c: New.
1529 * config/i860/i860.h: New.
1530 * config/i860/i860.md: New.
1531 * config/i860/sysv4.h: New.
1532 * config/i860/varargs.asm: New.
1533 * config/i860/x-sysv4: New.
1535 2003-08-22 Jason Eckhardt <jle@rice.edu>
1537 * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
1538 Remove all uses of PARAMS macro.
1539 Convert all function definitions to ISO C90 syntax.
1540 * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
1541 * config/pa/fptr.c: Likewise.
1542 * config/pa/lib2funcs.asm: Likewise.
1543 * config/pa/long_double.h: Likewise.
1544 * config/pa/milli64.S: Likewise.
1545 * config/pa/pa-64.h: Likewise.
1546 * config/pa/pa-hpux.h: Likewise.
1547 * config/pa/pa-hpux10.h: Likewise.
1548 * config/pa/pa-hpux11.h: Likewise.
1549 * config/pa/pa-linux.h: Likewise.
1550 * config/pa/pa-modes.def: Likewise.
1551 * config/pa/pa-osf.h: Likewise.
1552 * config/pa/pa-pro-end.h: Likewise.
1553 * config/pa/pa.md: Likewise.
1554 * config/pa/pa32-linux.h: Likewise.
1555 * config/pa/pa64-linux.h: Likewise.
1556 * config/pa/pa64-hpux.h: Likewise.
1557 * config/pa/pa64-regs.h: Likewise.
1558 * config/pa/quadlib.c: Likewise.
1559 * config/pa/rtems.h: Likewise.
1560 * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
1561 all uses of the PARAMS macro.
1562 * config/pa/pa.h: Likewise.
1563 * config/pa/som.h: Likewise.
1565 * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
1566 Remove all uses of PARAMS macro.
1567 Convert all function definitions to ISO C90 syntax.
1568 * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
1569 Remove all uses of PARAMS macro.
1570 * config/iq2000.h: Remove all uses of PARAMS macro.
1571 * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
1573 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
1575 * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
1576 * config/s390/s390.c (gen_consttable): Remove.
1577 (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
1578 (s390_output_pool_entry): New function.
1579 * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
1580 UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
1581 UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
1582 (UNSPECV_POOL_ENTRY): ... this new constant.
1583 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
1584 "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
1585 ("*pool_entry"): ... and replace by this new insn.
1586 ("literal_pool_31"): Do not emit anchor label if pool empty.
1588 * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
1589 (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
1590 (s390_fixup_clobbered_return_reg): Remove.
1591 (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
1592 (s390_return_addr_rtx): Always retrieve return address from save area
1593 slot. Use save_return_addr_p to force slot to be filled.
1594 (s390_emit_prologue): Remove has_hard_reg_initial_val test.
1596 2003-08-22 Chris Demetriou <cgd@broadcom.com>
1598 * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
1599 (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
1600 * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
1601 around SB-1 errata if TARGET_FIX_SB1 is set.
1602 (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
1603 * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
1605 2003-08-22 Roger Sayle <roger@eyesopen.com>
1607 * hashtable.c (ht_expand): Avoid calculating rehash for the common
1608 case that the first probe hits an empty hash table slot.
1610 2003-08-22 Mark Mitchell <mark@codesourcery.com>
1612 * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
1614 2003-08-22 Mark Mitchell <mark@codesourcery.com>
1616 * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
1617 (ptr_extend_plus_imm): ... this.
1618 * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
1619 optimization in C++.
1620 (ia64_output_mi_thunk): Support ILP32 mode.
1622 2003-08-22 bernardo innocenti <bernie@develer.com>
1624 * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
1626 * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
1628 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
1630 * config/i386/i386.c (const_int_1_operand): Simplify an
1633 2003-08-22 Alan Modra <amodra@bigpond.net.au>
1635 * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
1636 * config/rs6000/ppc64-fp.c: Likewise.
1638 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
1640 * cfgcleanup.c: Fix comment typos.
1641 * emit-rtl.c: Likewise.
1642 * optabs.c: Likewise.
1643 * ra-build.c: Likewise.
1644 * rtlanal.c: Likewise.
1647 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
1649 * c-decl.c: Fix comment formatting.
1650 * cfgrtl.c: Likewise.
1651 * combine.c: Likewise.
1652 * convert.c: Likewise.
1653 * dominance.c: Likewise.
1654 * dwarf2out.c: Likewise.
1655 * dwarfout.c: Likewise.
1656 * expmed.c: Likewise.
1657 * fold-const.c: Likewise.
1659 * genattrtab.c: Likewise.
1660 * ggc-common.c: Likewise.
1661 * mips-tfile.c: Likewise.
1662 * regmove.c: Likewise.
1664 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
1666 * builtin-attrs.def: Fix comment formatting.
1667 * c-pretty-print.c: Likewise.
1668 * diagnostic.h: Likewise.
1669 * langhooks.h: Likewise.
1670 * recog.c: Likewise.
1671 * simplify-rtx.c: Likewise.
1672 * tree.def: Likewise.
1674 2003-08-22 Bernardo Innocenti <bernie@develer.com>
1676 * config/m68k/m68k-protos.h: Convert to ISO C90.
1677 * config/m68k/m68k.c: Likewise.
1679 2003-08-21 Bernardo Innocenti <bernie@develer.com>
1680 Paul Dale <pauli@snapgear.com>
1681 Peter Barada <peter@baradas.org>
1683 * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
1686 2003-08-21 Zack Weinberg <zack@codesourcery.com>
1688 * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
1689 * config.gcc (*-*-openbsd): Don't set tm_file.
1690 (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
1691 arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
1692 h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
1693 i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
1694 i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
1695 m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
1696 m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
1697 m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
1698 mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
1699 sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
1700 xscale-*-coff): Use explicit and complete lists of target headers
1701 to include. Move definitions to tm_defines where appropriate.
1702 (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
1703 not-yet-contributed configuration.
1705 * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
1706 * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
1707 * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
1708 * config/i386/nto.h, config/iq2000/iq2000.h,
1709 * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
1710 * config/m68k/linux.h, config/m68k/m68k-aout.h
1711 * config/m68k/m68k-none.h, config/m68k/m68kv4.h
1712 * config/m68k/netbsd.h, config/m68k/openbsd.h
1713 * config/m68k/sgs.h, config/mcore/mcore-pe.h,
1714 * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
1715 * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
1716 Remove includes of other target config headers, and
1717 definitions of macros moved to tm_defines lists. Add #undefs
1718 where now necessary to prevent redefinition warnings.
1720 * config/h8300/coff.h: New file split out of...
1721 * config/h8300/elf.h: ...here.
1722 * config/m68k/hp320base.h: New file split out of...
1723 * config/m68k/hp320.h: ...here.
1724 * config/rs6000/lynxbase.h: New file split out of...
1725 * config/rs6000/lynx.h: ...here.
1727 * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
1728 * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
1730 * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
1731 * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
1732 * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
1733 Remove unnecessary #ifndef.
1734 * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
1735 [under IN_LIBGCC2] with config/.
1737 2003-08-21 Per Bothner <pbothner@apple.com>
1739 * cppfiles.c (stack_file): Correctly pass return_at_eof parameter
1741 * cpplex.c (_cpp_get_fresh_line): Don't buffer->prev - handled
1742 by return_at_eof check. Always call _cpp_pop_buffer at end.
1744 2003-08-21 Kazu Hirata <kazu@cs.umass.edu>
1747 * config/h8300/h8300.md (two anonymous patterns): Remove.
1749 2003-08-21 Richard Sandiford <rsandifo@redhat.com>
1751 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
1752 * config/mips/mips.c (function_arg_pass_by_reference): Never return
1755 2003-08-21 Josef Zlomek <zlomekj@suse.cz>
1757 * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
1758 and similarly in (A | C) == D where C & ~D != 0.
1760 2003-08-20 Geoffrey Keating <geoffk@apple.com>
1763 * configure.in: When testing with_libs and with_headers, treat
1764 'no' as unset. Based on a patch by Dan Kegel <dank@kegel.com>.
1765 * configure: Regenerate.
1767 2003-08-20 Peter Barada <peter@baradas.org>
1769 * longlong.h (umul_ppmm): Add ColdFire support.
1771 2003-08-20 Peter Barada <peter@baradas.org>
1772 Bernardo Innocenti <bernie@develer.com>
1774 * config/m68k/m68k-none.h: Introduce new ColdFire archs.
1775 * config/m68k/m68k.h: Likewise.
1776 * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
1777 * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
1778 * config/m68k/linux.h: Likewise.
1779 * config/m68k/m68k.c: Likewise.
1780 * config/m68k/m68k.md: Likewise.
1781 * config/m68k/m68kelf.h: Likewise.
1782 * config/m68k/netbsd-elf.h: Likewise.
1783 * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
1785 2003-08-20 Bernardo Innocenti <bernie@develer.com>
1787 * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
1788 * config/m68k/m68k.md: Likewise.
1790 2003-08-20 Mark Mitchell <mark@codesourcery.com>
1794 2003-08-19 Mark Mitchell <mark@codesourcery.com>
1795 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
1796 types with precisions other than those given by native machine
1799 2003-08-20 Gunther Nikl <gni@gecko.de>
1801 * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
1802 selected by FSGLMUL_USE_S and FSGLDIV_USE_S
1803 * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
1804 * config/m68k/m68k.md (anonymous define_insn): Likewise
1805 * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
1806 * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
1807 code selected by NO_ASM_FMOVECR
1809 2003-08-20 Gunther Nikl <gni@gecko.de>
1811 * config/m68k/m68k.c (output_move_const_into_data_reg,
1812 output_move_himode): unify MOTOROLA/MIT handling of moveq
1813 * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
1816 2003-08-20 Gunther Nikl <gni@gecko.de>
1818 * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
1820 * config/m68k/m68k.c (m68k_output_function_epilogue): replace
1821 HOST_WIDE_INT_PRINT_DEC with %wd
1823 2003-08-20 Loren James Rittle <ljrittle@acm.org>
1825 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
1828 2003-08-20 Roger Sayle <roger@eyesopen.com>
1831 * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
1832 operands before calling tree_int_cst_lt when performing associative
1835 2003-08-20 Jason Merrill <jason@redhat.com>
1837 * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
1838 (EXPR_CHECK): Don't check for 'r' or 's' if we're
1839 checking IS_EXPR_CODE_CLASS.
1840 * calls.c (calls_function_1): Likewise.
1841 * fold-const.c (fold): Likewise.
1842 * tree.c (iterative_hash_expr): Likewise.
1843 * tree-inline.c (walk_tree, copy_tree_r): Likewise.
1845 2003-08-20 Gunther Nikl <gni@gecko.de>
1847 * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
1848 depending on MOTOROLA_BSR
1849 * config/m68k/m68k.md (anonymous define_insn): Likewise
1851 2003-08-20 Jason Merrill <jason@redhat.com>
1853 * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
1854 (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
1855 fold_trunc_transparent_mathfn, fold_builtin): Likewise.
1856 * dojump.c (do_jump): Likewise.
1857 * fold-const.c (operand_equal_p, fold): Likewise.
1858 (tree_expr_nonnegative_p): Likewise.
1860 * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
1861 TYPE_USER_ALIGN for FIELD_DECLs.
1863 * attribs.c (decl_attributes): Rebuild the function pointer type after
1864 changing the target type.
1865 * tree.c (get_qualified_type): Also check that the attributes match.
1867 2003-08-19 Matt Kraai <kraai@alumni.cmu.edu>
1869 * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
1870 * objc/config-lang.in (stagestuff): ... to here.
1872 2003-08-19 Mark Mitchell <mark@codesourcery.com>
1875 * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
1876 NOP_EXPR) when necessary.
1877 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
1878 types with precisions other than those given by native machine
1881 2003-08-19 Geoffrey Keating <geoffk@apple.com>
1883 * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
1884 because some macro is defined.
1886 * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
1888 * config/i386/darwin.h (ASM_SPEC): New.
1889 (SUBTARGET_EXTRA_SPECS): New.
1890 * config/rs6000/darwin.h (ASM_SPEC): New.
1891 (SUBTARGET_EXTRA_SPECS): New.
1892 * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
1893 a cross-compiler between two different processors on Darwin.
1894 * configure: Regenerate.
1896 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
1898 * builtins.c: Fix comment typos.
1899 * c-common.c: Likewise.
1900 * c-decl.c: Likewise.
1901 * c-pretty-print.c: Likewise.
1902 * cfgbuild.c: Likewise.
1903 * cfglayout.c: Likewise.
1904 * cfgloopanal.c: Likewise.
1905 * cgraphunit.c: Likewise.
1906 * cppfiles.c: Likewise.
1907 * dwarfout.c: Likewise.
1909 * fold-const.c: Likewise.
1911 * ggc-page.c: Likewise.
1912 * haifa-sched.c: Likewise.
1913 * pretty-print.c: Likewise.
1916 * value-prof.c: Likewise.
1918 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
1920 * c-decl.c: Follow spelling conventions.
1921 * cppfiles.c: Likewise.
1923 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
1925 * c-common.c: Fix comment formatting.
1926 * c-common.h: Likewise.
1927 * c-decl.c: Likewise.
1928 * cppinit.c: Likewise.
1929 * cpplib.h: Likewise.
1930 * emit-rtl.c: Likewise.
1931 * input.h: Likewise.
1932 * line-map.h: Likewise.
1935 * simplify-rtx.c: Likewise.
1937 2003-08-19 Daniel Jacobowitz <drow@mvista.com>
1939 * unwind-c.c: Add libgcc-style exception.
1940 * unwind-dw2.c: Likewise.
1941 * unwind-pe.h: Likewise.
1942 * unwind-sjlj.c: Likewise.
1943 * unwind.inc: Likewise.
1945 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
1947 PR c/5582 PR c++/10538
1948 * langhooks-def.h (lhd_decl_uninit): Declare.
1949 (LANG_HOOKS_DECL_UNINIT): New macro.
1950 (LANG_HOOKS_INITIALIZER): Adjust.
1951 * langhooks.h (struct lang_hooks): Add new field
1953 * langhooks.c (lhd_decl_uninit): Define.
1954 * c-common.c (c_decl_uninit_1): New function.
1955 (c_decl_uninit): New function.
1956 (warn_init_self): Define.
1957 * c-common.h (c_decl_uninit): Declare.
1958 (warn_init_self): Declare.
1959 * c.opt: Introduce -Winit-self.
1960 * c-opts.c (c_common_handle_options): Set warn_init_self.
1961 * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
1962 * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
1963 * function.c (uninitialized_vars_warning): Call the language hook.
1964 * doc/invoke.texi: Document -Winit-self.
1966 2003-08-19 Chris Demetriou <cgd@broadcom.com>
1968 * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
1969 to use better predicates and constraints. Define new
1970 instruction to handle "trap_if" with DI-mode arguments.
1971 (conditional_trap): FAIL if trap code is not 0.
1973 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
1975 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
1976 strstr with $pb to a strcompare with "<pic base>"
1977 (ix86_output_addr_diff_elt): Output the real pic base.
1979 2003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
1981 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
1982 (LANG_HOOKS_INITIALIZER): Correct.
1983 * c-lang.c: Likewise.
1985 2003-08-19 Jan Hubicka <jh@suse.cz>
1987 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
1988 (cgraph_varpool_mark_needed_node): Likewise.
1989 * cgraph.h (notice_global_symbol): Declare
1990 * varasm.c (notice_global_symbol): Break out from ...
1991 (assemble_start_function): ... here; update for variables.
1992 (assemble_variable): Use notice_global_symbol.
1994 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
1996 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
1997 expect SFmode and DFmode arguments to be passed in FPRs,
1998 regardless of the underlying type.
2000 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
2003 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
2004 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
2006 2003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
2009 * c-typeck.c (set_init_index): Check for negative index.
2011 2003-08-18 Bob Wilson <bob.wilson@acm.org>
2013 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
2015 * config/xtensa/crtn.asm (_init, _fini): Likewise.
2016 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
2017 __umodsi3, __modsi3): Likewise.
2018 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
2021 2003-08-18 Aldy Hernandez <aldyh@redhat.com>
2023 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
2025 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
2027 * config/mips/mips.md: Quote C code in braces. Remove use of
2028 fake const0_rtx operands. Remove double backslashes. Use \;.
2029 Remove workarounds for bogus warnings.
2031 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
2033 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
2034 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
2035 rather than TARGET_MIPS4300.
2036 (mulsf3_internal, mulsf3_r4300): Likewise.
2038 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
2040 * config/mips/mips.md: Renumber unspecs. Clean up comments.
2042 2003-08-17 Roger Sayle <roger@eyesopen.com>
2044 * simplify-rtx.c (associative_constant_p): New function to test
2045 whether an RTX expression is an immediate constant.
2046 (simplify_associative_operation): New function to perform some
2047 reassociation optimizations of associative binary expressions.
2048 (simplify_binary_operation): Use simplify_associative_operation
2049 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
2050 Floating point expressions are only reassociated when unsafe
2051 math optimizations are permitted.
2053 2003-08-17 Andreas Jaeger <aj@suse.de>
2055 * config/alpha/alpha.md: Remove usage of PARAMS.
2057 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
2058 * config/i386/i386-interix.h: Likewise.
2059 * config/i386/winnt.c: Likewise.
2060 * config/i386/cygming.h: Likewise.
2061 * config/i386/cygwin2.c: Likewise.
2062 * config/darwin.c: Likewise.
2063 * config/darwin-c.c: Likewise.
2064 * config/darwin-protos.h: Likewise.
2065 * config/darwin.h: Likewise.
2066 * config/s390/s390-protos.h: Likewise.
2067 * config/s390/s390.c: Likewise.
2068 * config/ia64/ia64.c: Likewse
2069 * config/ia64/ia64-protos.h: Likewise.
2070 * config/ia64/ia64-c.c: Likewise.
2072 2003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2074 * config/sparc/sparc.c: Convert to ISO C.
2076 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
2077 * config/sparc/sparc.c: Likewise.
2079 2003-08-16 Nathan Sidwell <nathan@codesourcery.com>
2082 * stmt.c (expand_expr_stmt_value): Don't warn about any void
2085 2003-08-16 Jan Hubicka <jh@suse.cz>
2087 * i386.c (ix86_fntype_regparm): Rename from ...
2088 (ix86_function_regparm): ... this one; add fastcall and local
2090 (ix86_function_ok_for_sibcall): Update.
2091 (ix86_return_pops_args): Likewise.
2092 (init_cumulative_args): Likewise.
2093 (x86_can_output_mi_thunk): Likewise.
2094 (function_arg): Fix formating.
2095 (x86_this_parameter): Fix fastcall.
2096 (x86_output_mi_thunk): Likewise.
2098 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
2099 body as reachable; mark nested functions as needed too.
2100 (dump_cgraph): Do not output global.calls.
2101 * cgraph.h (cgraph_global_info): Kill.
2102 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
2103 (record_call_1): Speedup.
2104 (cgraph_analyze_function): Break out from ...; compute inlining
2106 (cgraph_finalize_compilation_unit): ... here.
2107 (cgraph_mark_inline): Kill computation of calls.
2108 (cgraph_decide_inlining): Do not compute most of initial values.
2110 2003-08-14 Roger Sayle <roger@eyesopen.com>
2112 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
2113 to negate if either operand is easy to negate, if we don't care
2114 about sign-dependent rounding.
2115 (negate_expr): Make the logic to negate a REAL_CST explicit.
2116 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
2117 that's easy to negate, if we don't honor sign-dependent rounding.
2118 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
2119 negate, and the symmetric A * -B as -A * B if A is easy to negate.
2120 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
2121 -C/D if B and C are cheap to negate. Add an explicit rule to
2122 optimize X/-1.0 as -X when we don't care about signaling NaNs.
2124 2003-08-14 Zack Weinberg <zack@codesourcery.com>
2126 * Makefile.in (tm_file): Rename tm_include_list.
2127 (tm_p_file): Rename tm_p_include_list.
2128 (build_xm_file): Rename build_xm_include_list.
2129 (host_xm_file): Rename host_xm_include_list.
2130 (xm_file): Rename xm_include_list.
2131 (xm_file_list): Add to be substituted.
2132 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
2134 (bt-load.o): Add missing dependency on $(TM_H).
2135 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
2136 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
2137 build_xm_file, generate both *_file_list and *_include_list
2138 values from it. (xm_file_list was formerly not being generated.)
2139 In *_include_list, prefix the names of all headers found in
2140 $(srcdir)/config with config/. In each loop, consider only
2141 the special case files that can actually appear in that list.
2142 AC_SUBST all *_file_list and all *_include_list variables; do
2143 not AC_SUBST the plain *_file variables.
2144 * configure: Regenerate.
2146 2003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2148 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
2150 2003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2152 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
2154 (attr_length_call): Include it here. Improve length estimate for
2156 (output_call): Use targetm.binds_local_p.
2158 2003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2160 * builtins.c (CASE_MATHFN): New helper macro.
2161 (mathfn_built_in): Simplify and sort.
2163 * protoize.c (substr): Delete, callers changed to `strstr'.
2165 2003-08-13 Zack Weinberg <zack@codesourcery.com>
2167 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
2168 * config/iq2000/xm-iq2000.h: Delete file.
2170 2003-08-13 Geoffrey Keating <geoffk@apple.com>
2172 * gengtype.c (walk_type): Process a subobject before processing
2173 the pointer that points to the subobject.
2175 2003-08-13 Per Bothner <pbothner@apple.com>
2177 * regclass.c (init_reg_modes): Make non-static.
2178 Rename to init_reg_modes_once per new naming convention.
2179 (init_regs): Don't call init_reg_modes here.
2180 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
2181 * rtl.h (init_reg_modes_once): New declaration.
2182 * toplev.c (backend_init): Call init_regs after init_emit_once.
2184 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
2186 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
2187 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
2189 2003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
2191 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
2192 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
2194 2003-08-13 Dale Johannesen <dalej@apple.com>
2196 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
2197 handling of decrement-and-branch farther than 32 bits.
2199 2003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
2201 * configure.in (make_compare_target): Move test to ...
2202 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
2203 * configure: Regenerate.
2205 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
2207 * config/mips/iris6.h: Convert to C90 prototypes.
2208 * config/mips/irix6-libc-compat.c: Likewise.
2209 * config/mips/mips-protos.h: Likewise.
2210 * config/mips/mips.c: Likewise.
2212 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
2214 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
2215 for selected machines. Comment heavily.
2216 fixinc/fixincl.x: Rebuild.
2217 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
2219 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
2221 * config/mips/mips.h: Tweak various comments.
2222 * config/mips/mips.c: Likewise.
2224 2003-08-11 James E Wilson <wilson@tuliptree.org>
2226 PR optimization/11319
2228 * alias.c (find_base_value, case REG): Return 0 not src if no base
2231 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2233 * gcse.c (gmalloc): Fix last change.
2235 2003-08-11 Roger Sayle <roger@eyesopen.com>
2237 * simplify-rtx.c (simplify_binary_operation): Replace calls to
2238 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
2239 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
2240 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
2242 2003-08-11 Roger Sayle <roger@eyesopen.com>
2244 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
2245 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
2246 typecode for an ABS_EXPR.
2248 * doc/c-tree.texi: Document ABS_EXPR.
2250 2003-08-11 Roger Sayle <roger@eyesopen.com>
2252 * fold-const.c (fold): Optimize any associative floating point
2253 operator with -funsafe-math-optimizations, not just MULT_EXPR.
2255 2003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
2257 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
2258 information in SHmedia case too.
2259 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
2261 (__set_fpscr): Use an access via GOT for PIC case.
2263 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
2265 * configure.in (intermodule): Make switch test more portable.
2266 * configure: Regenerate.
2268 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
2270 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
2271 (restrap): Likewise.
2273 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2275 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
2276 (grealloc): Size argument is a size_t.
2277 (gcalloc): New function. Use throughout in lieu of
2280 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
2282 * config/ia64/ia64.c (ia64_reorg): Likewise.
2283 * conflict.c (conflict_graph_new): Likewise.
2284 * fixinc/fixincl.c (run_compiles): Likewise.
2285 * genattrtab.c (optimize_attrs): Likewise.
2286 * genrecog.c (new_decision): Likewise.
2287 * haifa-sched.c (schedule_block): Likewise.
2288 * hashtable.c (ht_create): Likewise.
2290 2003-08-11 Bob Wilson <bob.wilson@acm.org>
2292 * config/xtensa/lib2funcs.S: Fix whitespace.
2293 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
2294 syntax where appropriate. Remove unnecessary backslash escapes.
2295 Reformat comments and fix some code formatting.
2296 (extendqisi2): Rearrange conditional.
2297 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
2298 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
2301 2003-08-11 Richard Sandiford <rsandifo@redhat.com>
2303 * config/mips/mips.c: Various formatting fixes.
2304 (override_options): Resync -mtune handling with gas.
2305 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
2306 * config/mips/mips.h: More formatting fixes.
2307 (mips_abi): Move declaration.
2308 * config/mips/mips.md (exception_receiver): Add mode to
2311 2003-08-11 Aldy Hernandez <aldyh@redhat.com>
2313 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
2315 (bdesc_1arg): Remove evsplati and evsplatfi.
2317 2003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
2319 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
2322 2003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2324 * builtins.c (expand_builtin_strcat): Optimize constant strings.
2326 2003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
2328 * pretty-print.c (pp_base_indent): Rename from pp_indent.
2329 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
2330 (struct c_pretty_print_info): Add more fields.
2331 (pp_c_left_paren): Move to c-pretty-print.c.
2332 (pp_c_right_paren): Likewise.
2333 (pp_c_left_brace): Likewise.
2334 (pp_c_right_brace): Likewise.
2335 (pp_c_left_bracket): Likewise.
2336 (pp_c_right_bracket): Likewise.
2337 (pp_c_declarator): Declare.
2338 (pp_c_direct_declarator): Likewise.
2339 (pp_c_specifier_qualifier_list): Likewise.
2340 (pp_c_type_id): Likewise.
2341 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
2342 (pp_c_type_qualifier_list): New.
2343 (pp_c_pointer): Likewise.
2344 (pp_c_parameter_type_list): Likewise.
2345 (pp_c_function_definition): Likewise.
2346 (pp_c_id_expression): Likewise.
2347 (pp_c_simple_type_specifier): Tidy.
2348 (pp_c_unary_expression): Likewise.
2349 (pp_c_expression): Likewise.
2350 (pp_c_pretty_printer_init): Likewise.
2351 (pp_c_specifier_qualifier_list): Rework..
2352 (pp_c_abstract_declarator): Likewise.
2353 (pp_c_postfix_expression): Likewise.
2354 (pp_c_primary_expression): Likewise.
2355 (pp_c_cast_expression): Likewise.
2356 (pp_c_direct_abstract_declarator): Likewise.
2357 (pp_c_storage_class_specifier): Likewise.
2358 (pp_c_function_specifier): Likewise.
2359 (pp_c_declaration_specifiers): Likewise.
2360 (pp_c_direct_declarator): Likewise.
2361 (pp_c_declarator): Likewise.
2362 (pp_c_declaration): Likewise.
2363 (pp_c_statement): Likewise.
2364 (pp_c_integer_constant): Rename from pp_c_integer_literal.
2365 (pp_c_character_constant): Rename from pp_c_character_literal.
2366 (pp_c_bool_constant): Rename from pp_c_bool_literal.
2367 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
2368 (pp_c_floating_constant): Rename from pp_c_real_literal.
2369 (pp_c_constant): Rename from pp_c_literal.
2370 * c-lang.c: Include diagnostic.h and c-pretty-print.h
2371 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
2372 (c_initialize_diagnostics): New.
2373 * Makefile.in (c-lang.o): Update dependency.
2375 2003-08-10 Nathan Sidwell <nathan@codesourcery.com>
2377 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
2379 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
2381 * config/mips/mips.c (mips_no_mips16_string): Remove.
2382 (override_options): Don't handle -mips16 as part of -mipsN.
2383 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
2384 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
2385 (TARGET_OPTIONS): Remove -mno-mips16.
2387 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
2389 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
2390 (coprocessor2_operand): Likewise.
2391 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
2392 (lookup_name): Remove declaration.
2393 (abort_with_insn): Remove. Replace all uses with fatal_insn.
2394 (mips16, mips_abicalls): Remove.
2395 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
2396 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
2397 (coprocessor_operand, coprocessor2_operand): Remove.
2398 (override_options): Don't set mips16 or mips_abicalls.
2399 (print_operand): Don't expect SIGN_EXTEND operands.
2400 (mips_secondary_reload_class): Likewise.
2401 (mips_output_conditional_branch): Remove disabled long-branch code.
2402 * config/mips/mips.h (call_used_regs): Remove declaration.
2403 (may_call_alloca): Likewise.
2404 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
2405 (mips_abicalls, mips16): Remove declarations.
2406 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
2407 (CC1_SPEC): Remove outdated comment.
2408 (MIPS_VERSION, MACHINE_TYPE): Remove.
2409 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
2410 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
2411 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
2412 (PUSH_ROUNDING): Likewise.
2413 (ASSEMBLER_SCRATCH_REGNUM): Remove.
2414 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
2415 and mips16 with TARGET_MIPS16.
2417 2003-08-09 Per Bothner <pbothner@apple.com>
2419 * cppinit.c (cpp_read_main_file): Split out source-independent
2420 initialization to separate function ...
2421 (cpp_post_options): New function.
2422 * cppfiles.c (cpp_stack_file): Rename public name to ...
2423 (_cpp_stack_file): New internal function name.
2424 * cpplib.h: Update accordingly.
2425 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
2426 (cpp_read_main_file): Don't initialize line here.
2427 * c-opts.c (c_common_post_options): Call cpp_post_options.
2428 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
2429 * fix-header.c (read_scan_file): Call cpp_post_options.
2431 2003-08-09 Per Bothner <per@bothner.com>
2433 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
2435 2003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2437 * pa.c (pa_asm_output_mi_thunk): Fix typo.
2439 2003-08-09 Neil Booth <neil@daikokuya.co.uk>
2441 PR preprocessor/11839
2442 * cppfiles.c (open_file): Handle ENOTDIR.
2444 2003-08-09 Richard Sandiford <rsandifo@redhat.com>
2447 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
2449 2003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2451 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
2452 source/destination is not a register operand.
2454 2003-08-08 Richard Henderson <rth@redhat.com>
2457 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
2458 RETURN_ADDRESS_POINTER_REGNUM.
2459 (ia64_expand_prologue): Don't frob it.
2460 (ia64_output_function_epilogue): Likewise.
2461 (ia64_return_addr_rtx): New.
2462 (ia64_split_return_addr_rtx): New.
2463 * config/ia64/ia64-protos.h: Update.
2464 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
2465 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
2466 (GENERAL_REGNO_P): Don't check it.
2467 (AR_*_REGNUM): Renumber.
2468 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
2469 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
2470 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
2471 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
2472 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
2473 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
2474 (movdi_ret_addr): New.
2476 2003-08-08 Geoffrey Keating <geoffk@apple.com>
2478 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
2480 2003-08-08 Roger Sayle <roger@eyesopen.com>
2482 * tree.h (get_identifier) Define a macro form of get_identifier
2483 that calls get_identifier_with_length when the string is constant.
2484 (get_identifier_with_length): Change type of second argument to
2485 size_t in prototype.
2486 * stringpool.c (get_identifier): Undefine the macro before giving
2487 the function definition.
2488 (get_identifier_with_length): Change type of second argument to
2489 size_t in function definition.
2490 * hashtable.c (calc_hash): Change type of second argument to size_t.
2491 (ht_lookup): Change type of third argument to size_t. Reorganize
2492 to speed-up the cases where the hash table slot is empty, or the
2493 first probe matches (i.e. there isn't a collision).
2494 * hashtable.h (ht_lookup): Adjust function prototype.
2496 2003-08-08 Bernardo Innocenti <bernie@develer.com>
2500 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
2502 2003-08-08 Neil Booth <neil@daikokuya.co.uk>
2504 * common.opt: Add debug switches.
2505 * flags.h (use_gnu_debug_info_extensions): Boolify.
2506 * opts.c (write_symbols, debug_info_level,
2507 use_gnu_debug_info_extensions): Move from toplev.c.
2508 (set_debug_level): New.
2509 (common_handle_options): Handle debug switches.
2510 (print_help): Display target options directly.
2511 * toplev.c (debug_hooks): Don't initialize.
2512 (write_symbols, debug_info_level,
2513 use_gnu_debug_info_extensions): Move to opts.c.
2514 (debug_args, display_help, decode_g_option): Remove.
2515 (process_options): Set no debug if level zero here,
2516 and no-debug-hooks. Error here if impossible debug format selected.
2517 * toplev.h (display_help, decode_g_option): Remove.
2519 2003-08-08 Richard Sandiford <rsandifo@redhat.com>
2521 * tree.c (get_file_function_name_long): Fix size of alloca() area.
2523 2003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
2525 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
2526 and gcc_cv_prog_cmp_skip.
2527 * configure: Regenerate.
2529 2003-08-08 Stan Cox <scox@redhat.com>
2531 * config/iq2000: New port.
2532 * config.gcc (iq2000-*-elf): Added.
2533 * doc/install.texi (Specific): Add iq2000 description.
2535 2003-08-08 Andreas Schwab <schwab@suse.de>
2537 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
2538 and insert missing empty argument.
2539 * configure: Regenerate.
2541 2003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2543 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
2544 (attr_length_millicode_call): Likewise.
2545 (attr_length_call): Likewise. Revise some maximum insn lengths.
2546 (attr_length_indirect_call): Likewise.
2547 (output_call): Fix thinko that added extra nop.
2548 * pa.h (IN_NAMED_SECTION_P): Define.
2551 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
2552 __STDC_EXT__ when using C++ dialect.
2554 2003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
2556 * sh.c (calc_live_regs): If the return address pointer is live,
2558 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
2559 for saves / restores.
2560 (sh_expand_epilogue): If sh_media_register_for_return returns a
2561 register number, flag the instructions that restores PR_MEDIA_REG
2563 Remove dead update of offset.
2564 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
2565 we can use the result of get_hard_reg_initial_val.
2566 * sh.md (UNSPEC_RA): New constant.
2567 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
2568 (load_ra). Handle UNSPEC_RA.
2569 (sibcall_media): Use PR_MEDIA_REG.
2571 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
2572 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
2573 needs saving on SHmedia.
2575 2003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
2577 * config/s390/s390.md: Replace all occurrences of \\t with \t.
2579 2003-08-07 Richard Sandiford <rsandifo@redhat.com>
2581 * local-alloc.c (combine_regs): Fix comment typo.
2583 2003-08-06 Zack Weinberg <zack@codesourcery.com>
2585 * c-decl.c (builtin_decls): Replace with first_builtin_decl
2586 and last_builtin_decl.
2587 (c_init_decl_processing): Initialize both.
2588 (c_reset_state): Iterate from first_builtin_decl to
2589 last_builtin_decl inclusive to reintroduce builtins.
2591 2003-08-06 David Mosberger <davidm@hpl.hp.com>
2593 * doc/extend.texi (Function Attributes): Document the IA-64 version
2594 of the "model" attribute.
2596 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
2597 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
2598 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
2600 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
2601 (ia64_encode_section_info): Likewise.
2602 (ia64_attribute_table): Add "model" attribute.
2603 (TARGET_ENCODE_SECTION_INFO): Define.
2604 (small_addr_symbolic_operand): New function.
2605 (got_symbolic_operand): Return 0 for a symbolref to an object
2606 in the small address area.
2607 (enum ia64_addr_area): New type.
2608 (small_ident1): New variable.
2609 (small_ident2): Likewise.
2610 (init_idents): New function.
2611 (ia64_get_addr_area): Likewise.
2612 (ia64_encode_addr_area): Likewise.
2613 (ia64_encode_section_info): Likewise.
2614 (ia64_expand_load_address): For symbolic references to objects in
2615 the small-address-area, load the address via gen_rtx_SET() (which,
2616 eventually, will expand into "addl").
2618 2003-08-06 Per Bothner <pbothner@apple.com>
2620 * line-map.h (fileline): New typedef.
2621 (struct line_map, linemap_add, linemap_lookup): Use it.
2622 * input.h (struct location_s): Comment notes that long-term we want
2623 to replace it by fileline.
2625 2003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
2627 Fix SHcompact exception handling:
2628 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
2629 by the prologue, return a MEM with return_address_pointer_rtx
2631 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
2632 (RETURN_ADDR_OFFSET): Don't define.
2633 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
2634 registers that are visible in compact mode. Show that SHmedia
2635 registers still exist in compact mode, even if there are not
2637 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
2638 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
2639 and DW_EH_PE_pcrel for pic data.
2640 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
2641 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
2642 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
2643 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
2644 * sh.md (movsi_media-1): New splitter.
2646 2003-08-06 Graeme Peterson <gp@qnx.com>
2648 * config/i386/nto.h: New.
2649 * config/i386/t-nto: New.
2650 * config.gcc (i[34567]86-*-nto-qnx*): New.
2652 2003-08-06 Phil Edwards <pme@gcc.gnu.org>
2654 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
2656 2003-08-06 Alan Modra <amodra@bigpond.net.au>
2658 * calls.c (load_register_parameters): Arrange for call_fusage to
2659 report the whole register as used when shifting to the msb.
2661 2003-08-05 Roger Sayle <roger@eyesopen.com>
2663 * builtins.c (expand_builtin): When not optimizing, call the library
2664 function for all builtins that have library functions (except alloca).
2666 2003-08-05 Alexandre Oliva <aoliva@redhat.com>
2668 * c.opt: Introduce -fworking-directory.
2669 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
2670 * c-common.h (flag_working_directory): Declare.
2671 * c-common.c (flag_working_directory): Define.
2672 * c-opts.c (c_common_handle_options): Set it.
2673 (sanitize_cpp_opts): Set...
2674 * cpplib.h (struct cpp_options): ... working_directory option.
2675 (struct cpp_callbacks): Add dir_change.
2676 * cppinit.c (read_original_filename): Call...
2677 (read_original_directory): New. Look for # 1 "directory//"
2679 (cpp_read_main_file): Call dir_change callback if working_directory
2681 * gcc.c (cpp_unique_options): Pass -g*.
2682 * c-lex.c (cb_dir_change): New.
2683 (init_c_lex): Set dir_change callback.
2684 * toplev.c (src_pwd): New static variable.
2685 (set_src_pwd, get_src_pwd): New functions.
2686 * toplev.h (get_src_pwd, set_src_pwd): Declare.
2687 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
2688 * dwarf2out.c (gen_compile_unit_die): Likewise.
2689 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
2691 2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2693 * pretty-print.h (pp_set_line_maximum_length): Make macro.
2694 (pp_set_prefix): Likewise.
2695 (pp_destroy_prefix): Likewise.
2696 (pp_remaining_character_count_for_line): Likewise.
2697 (pp_clear_output_area): Likewise.
2698 (pp_formatted_text): Likewise.
2699 (pp_last_position_in_text): Likewise.
2700 (pp_emit_prefix): Likewise.
2701 (pp_append_text): Likewise.
2702 (pp_flush): Likewise.
2703 (pp_format_text): Likewise.
2704 (pp_format_verbatim): Likewise.
2705 (pp_tree_identifier): Tidy.
2706 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
2707 (pp_base_format_verbatim): Rename from pp_format_verbatim.
2708 (pp_base_flush): Rename from pp_flush.
2709 (pp_base_set_line_maximum_length): Rename from
2710 pp_set_line_maximum_length.
2711 (pp_base_clear_output_area): Rename from pp_clear_output_area.
2712 (pp_base_set_prefix): Rename from pp_set_prefix.
2713 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
2714 (pp_base_emit_prefix): Rename from pp_emit_prefix.
2715 (pp_base_append_text): Rename from pp_append_text.
2716 (pp_base_formatted_text): Rename from pp_formatted_text.
2717 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
2718 (pp_base_remaining_character_count_for_line): Rename from
2719 pp_remaining_character_count_for_line.
2720 * diagnostic.h (diagnostic_format_decoder): Tidy.
2721 (diagnostic_flush_buffer): Likewise.
2722 * c-pretty-print.h: (pp_c_string_literal): Declare.
2723 (pp_c_real_literal): Likewise.
2724 (pp_c_integer_literal): Likewise.
2725 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
2727 (pp_c_character_literal): Tidy.
2728 (pp_c_string_literal): Make public.
2729 (pp_c_bool_literal): Likewise.
2730 (pp_c_integer_literal): Likewise.
2731 (pp_c_real_literal): Likewise.
2733 * Makefile.in (C_PRETTY_PRINT_H): New variable.
2734 (c-pretty-print.o): Update dependence.
2736 2003-08-05 Chris Demetriou <cgd@broadcom.com>
2738 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
2739 ".set nomacro" state.
2740 (fix_truncsfsi2_macro): Likewise.
2742 2003-08-05 Steven Bosscher <steven@gcc.gnu.org>
2744 * tree.h (DID_INLINE_FUNC): Remove macro.
2745 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
2746 add tree check for FUNCTION_DECL.
2747 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
2748 (struct tree_decl): Rename inlined_function_flag to
2749 declared_inline_flag.
2750 * c-common.h (c_lang_decl): Remove.
2751 (DECL_ESTIMATED_INSNS): Remove.
2752 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
2753 (DECL_DECLARED_INLINE_P): Remove.
2754 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
2755 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
2756 (finish_function): Make uninlinable a bool. Fixup call to
2757 tree_inlinable_function_p() and fix some code style issues.
2758 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
2759 * cgraph.c (dump_cgraph): Likewise.
2760 * cgraphunit.c (cgraph_decide_inlining): Likewise
2761 (cgraph_finalize_compilation_unit): Likewise.
2762 Also update call to tree_inlinable_function_p().
2763 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
2764 look at DECL_DECLARED_INLINE and reverse logic.
2765 * print-tree.c (print_node): Likewise.
2766 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
2767 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
2769 * tree-inline.c (inlinable_function_p): Split up in this function to
2770 check for basic inlining inhibiting conditions, and new
2771 limits_allow_inlining() function. Warn if inlining is impossible
2772 because the inline candidate calls alloca or uses sjlj exceptions.
2773 (limits_allow_inlining): this new function to check if the inlining
2774 limits are satisfied. Throttle from currfn_max_inline_insns, not from
2775 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
2776 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
2778 (tree_inlinable_function_p): Make a bool. Update call to
2779 inlinable_function_p
2780 (expand_call_inline): Use limits_allow_inlining() when not in
2781 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
2782 instead see if the function was declared `inline'.
2784 2003-08-05 Josef Zlomek <zlomekj@suse.cz>
2786 * gcse.c (try_replace_reg): Fix updating of note.
2788 2003-08-04 Roger Sayle <roger@eyesopen.com>
2791 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
2792 logic in negate_expr, i.e. we don't invert (A-B) for floating
2793 point types unless flag_unsafe_math_optimizations.
2795 2003-08-04 Roger Sayle <roger@eyesopen.com>
2797 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
2798 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
2799 for floating point expressions with -ffast-math.
2800 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
2801 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
2803 2003-08-04 Roger Sayle <roger@eyesopen.com>
2805 * c-common.c (flag_noniso_default_format_attributes): Delete.
2806 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
2807 (c_attrs_initialized): Delete.
2808 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
2809 always call c_init_attributes.
2810 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
2811 set c_attrs_initialized when done.
2812 (c_common_insert_default_attributes): Delete.
2813 * c-common.h (flag_noniso_default_format_attributes): Delete.
2814 (c_coomon_insert_default_attributes): Delete prototype.
2815 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
2816 flag_noniso_default_format_attributes.
2818 * c-decl.c (c_insert_default_attributes): Delete.
2819 * c-tree.h (c_insert_default_attributes): Delete prototype.
2821 * attribs.c (decl_attributes): Don't call insert_default_attributes
2822 langhook. Update function description comment.
2823 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
2824 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
2825 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
2826 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
2828 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
2831 2003-08-04 Richard Sandiford <rsandif@redhat.com>
2833 * config/mips/mips.c (override_options): Disable -G on targets that
2834 have no .section support.
2835 (mips_select_section): Use default_select_section for such targets.
2837 2003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
2839 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
2840 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
2841 * fixinc/fixincl.x: Rebuild.
2842 * fixinc/tests/base/regexp.h: New test.
2844 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
2846 * c-ppoutput.c (cb_line_change): Don't skip line changing while
2847 parsing macro arguments in the top-level context.
2849 2003-08-04 Neil Booth <neil@daikokuya.co.uk>
2851 * config.in: Remove HAVE_LSTAT.
2852 * configure, configure.in: Don't test for lstat.
2854 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2856 * opts.c (decode_options): Do language-specific initialization for
2857 the global diagnostic context.
2858 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
2859 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
2860 (LANG_HOOKS_INITIALIZER): Adjust.
2861 * langhooks.h (struct lang_hooks): Add new field
2862 initialize_diagnostics.
2863 * langhooks.c (lhd_initialize_diagnostics): Define.
2865 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2867 * pretty-print.h: Adjust macro definitions.
2868 * pretty-print.c (pp_newline): Rename to pp_base_newline.
2869 (pp_character): Rename to pp_base_character.
2870 (pp_string): Rename to pp_base_string.
2871 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
2872 (pp_newline): Likewise. Adjust.
2873 (pp_c_char): Adjust.
2875 2003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2877 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
2878 BUILT_IN_LLABS): Move to miscellaneous section.
2880 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
2882 PR preprocessor/11534
2883 * cppexp.c (parse_defined): Warn only if -pedantic.
2885 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
2887 * cppfiles.c (stack_file): Use file path.
2889 2003-08-02 Roger Sayle <roger@eyesopen.com>
2891 * builtin-types.def (BT_SSIZE): New primitive type.
2892 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
2893 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
2894 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
2895 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
2896 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
2897 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
2898 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
2899 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
2900 few functions that define default attributes using it.
2901 * c-common.c (c_common_insert_default_attributes): Do nothing.
2903 * doc/extend.texi: Document these "new" builtins.
2905 2003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
2907 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
2908 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
2909 when -mieee-fp set and -shared not set.
2910 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
2912 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
2914 * cppfiles.c (struct _cpp_file): Rename once_only_next to
2915 next_file. Remove import and pragma_once, add once_only.
2916 (find_file): Add new file structures to the all_files list.
2917 (should_stack_file): Mark #import-ed files once-only, and
2918 don't stack them if the file has already been stacked.
2919 (_cp_mark_file_once_only): Simplify.
2920 * cpphash.h (struct cpp_reader): Rename once_only_files
2921 to all_files. Rename saw_pragma_once to seen_once_only.
2922 (_cpp_mark_file_once_only): Update prototype.
2923 * cpplib.c (do_pragma_once): Update.
2925 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
2927 * cppfiles.c (ENOTDIR): Remove.
2928 (open_file_in_dir): Rename find_file_in_dir. Handle errors
2929 other than ENOENT here.
2930 (once_only_file_p): Rename should_stack_file.
2931 (find_file, open_file_failed, read_file_guts): Report errors
2932 with full path name.
2933 (read_file): Move pch handling to should_stack_file.
2934 (should_stack_file): Handle PCH and once-only issues, and
2936 (stack_file): Don't do file reads.
2938 2003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2940 * libgcov.c (gcov_exit): Cleanup and fix.
2941 * profile.c (compute_value_histograms): Don't try to read profiles
2942 that are not present.
2944 2003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2946 * builtins.def: Categorize.
2948 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
2950 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
2952 2003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
2954 * config.gcc: Enable posix threads by default on darwin.
2956 2003-08-01 Jakub Jelinek <jakub@redhat.com>
2958 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
2959 even if nehedges1 is 0.
2961 2003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
2963 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
2964 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
2965 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
2968 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
2969 * fixinc/fixincl.x: Regenerate.
2970 * fixinc/tests/base/math.h: Regenerate to match test_text change.
2972 2003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2974 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
2976 2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2978 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
2979 for accesses to exc_ptr.
2981 2003-08-01 Geoffrey Keating <geoffk@apple.com>
2983 * doc/sourcebuild.texi (Front End Directory): Don't make references
2984 to libsubdir, it's not part of the interface to frontends.
2985 * doc/install.texi (Configuration): Help users read faster by saying
2986 that GCC's configure options are the standard autoconf ones.
2987 Mention --libdir. Update the default rules for finding the
2988 assembler. Don't use libsubdir since we haven't said what it means.
2989 (Specific): In the Solaris 7 notes, update the place to put the
2991 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
2992 * doc/cpp.texi (Search Path): Actually, the search path
2993 depends on libdir, which can relocate with cpp.
2994 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
2995 now a private interface between the Makefile and the driver.
2997 2003-08-01 Richard Henderson <rth@redhat.com>
2999 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
3001 * varasm.c (lookup_constant_def): New function.
3002 * rtl.h (lookup_constant_def): Declare it.
3003 * dwarf2out.c (loc_descriptor_from_tree): Use it.
3004 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
3006 2003-08-01 Zack Weinberg <zack@codesourcery.com>
3008 * c-decl.c (gettags, pushdecl_function_level): Delete.
3009 (last_function_parm_vars): Rename last_function_parm_others.
3010 (current_function_parm_vars): Rename current_function_parm_others.
3011 (struct c_scope): Rewrite comment explaining this data structure.
3012 Add names_last, blocks_last, parms_last fields. Rename
3013 incomplete_list to incomplete.
3014 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
3015 (poplevel): Ignore second argument. No need to nreverse
3016 anything. Restructure such that each list is processed
3017 exactly once. Use 'const location_t *locus' syntactic sugar
3018 variable where useful. Issue unused variable warnings
3019 ourselves, do not rely on function.c.
3020 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
3021 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
3022 (implicitly_declare): decl cannot be error_mark_node.
3023 (undeclared_variable): Manipulate scope structure directly.
3024 (c_make_fname_decl): Likewise.
3025 (getdecls, c_init_decl_processing): Fix comment.
3026 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
3027 for 'last' variable.
3028 (grokparms): No need to nreverse parms list.
3029 (store_parm_decls_newstyle): Set up the parms_last and
3030 names_last fields of the new scope too.
3031 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
3032 on parms to begin with; check this under ENABLE_CHECKING. Set
3034 (check_for_loop_decls): Refer directly to current_scope->tags.
3035 Use consistent quote style in diagnostics.
3036 (c_write_global_declarations): The names list is not backward.
3038 * c-common.h: Don't prototype gettags.
3039 * c-parse.in: Call poplevel with second argument 0 always.
3041 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3043 * builtins.def: Resort builtins.
3045 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3047 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
3048 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
3049 Prepend "__builtin_" onto NAME with string concatenation. Remove
3050 explicit "__builtin_" from each macro call.
3052 Reformat entire file.
3054 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3056 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
3057 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
3059 2003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
3061 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
3062 CCL1, or CCL2 modes with floating point operations.
3064 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
3065 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
3066 "*subdf3_cconly"): New insns.
3067 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
3069 2003-08-01 Neil Booth <neil@daikokuya.co.uk>
3071 * Makefile.in: Refine dependencies.
3072 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
3073 * c.opt: Update help for -Wimport.
3074 * cppfiles.c: Include hashtab.h. Update comments.
3075 (stack_file): Read the file before updating dependencies.
3076 (once_only_file_p): Be smarter about marking once-only files.
3077 (_cpp_mark_file_once_only): Correct the check for existence on
3079 (open_file_failed): Use name not path, which is NULL.
3080 * cpphash.h: Don't include hashtab.h.
3081 (struct _cpp_file): Remove.
3082 (struct cpp_reader): Update.
3083 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
3084 * cpplib.h (struct cpp_options): Remove warn_import.
3085 (cpp_simplify_path): Remove.
3087 2003-08-01 Nathan Sidwell <nathan@codesourcery.com>
3090 * doc/extend.texi (Statement Expressions): Document C++ semantics.
3092 2003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
3094 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
3096 2003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3098 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
3100 * builtins.def: Likewise.
3102 2003-07-31 Jason Merrill <jason@redhat.com>
3104 * Makefile.in (bubblestrap): Don't require a previous full
3107 * expr.c (mostly_zeros_p): No longer static.
3108 * tree.h: Declare it.
3109 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
3110 unless we need to do substitutions.
3112 2003-07-31 Roger Sayle <roger@eyesopen.com>
3114 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
3115 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
3116 as pow(x,2.0) when the latter will be expanded back into x*x.
3117 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
3118 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
3119 pow can never set errno when used with an integer exponent.
3120 Always use expand_powi when exponent is -1, 0, 1 or 2.
3121 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
3122 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
3123 the pow forms of these expressions.
3125 2003-07-31 Geoffrey Keating <geoffk@apple.com>
3127 * Makefile.in (libexecdir): New.
3128 (libsubdir): Use gcc instead of gcc-lib.
3129 (libexecsubdir): New.
3130 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
3131 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
3133 (installdirs): Make libexecsubdir.
3134 (install-common): Put executables in libexecsubdir.
3135 (itoolsdir): Use libexecsubdir.
3136 (itoolsdatadir): New.
3137 (install-mkheaders): Separate data files and executables.
3138 (install-collect2): Put executables in libexecsubdir.
3139 (uninstall): Remove libexecsubdir.
3140 * mkheaders.in: Update for new arrangement of files.
3142 (libexecsubdir): New.
3143 (itoolsdir): Use libexecsubdir.
3144 (itoolsdatadir): New.
3145 * gcc.c (gcc_libexec_prefix): New.
3146 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
3147 (standard_exec_prefix_1): Use libexec.
3148 (standard_exec_prefix_2): New.
3149 (standard_libexec_prefix): New.
3150 (process_command): Update for new arrangement of files. Compute
3151 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
3153 2003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
3155 * inclhack.def (stdio_va_list): Avoid bogus replacement which
3156 triggers on Interix.
3157 * fixincl.x: Regenerate.
3159 2003-07-31 Jakub Jelinek <jakub@redhat.com>
3161 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
3162 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
3164 2003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3166 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
3168 2003-07-31 Per Bothner <pbothner@apple.com>
3170 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
3171 (add_input_filename): New function.
3172 (handle_options): Call add_input_filename directly instead of
3174 * opts.h (in_fnames, num_in_fnames): Moved here.
3175 (add_input_filename): Declare.
3176 * c-decl.c: Need to #include opts.h.
3177 * Makefile.in (c-decl.o): Also depends on opts.h.
3178 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
3179 (c_common_handle_filename): Replaced by add_input_filename.
3180 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
3182 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
3183 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
3184 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
3185 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
3187 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3189 * combine.c (try_combine): Set JUMP_LABEL for newly created
3192 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3194 * fold-const.c (fold): Fold some comparisons of bit operations.
3196 Thu Jul 31 19:49:53 CEST 2003 Jan Hubicka <jh@suse.cz>
3198 * cgraph.c (create_edge): Fix typo.
3199 * i386.c (pic_symbolic_operand): Reorder tests.
3201 2003-07-31 Nathan Sidwell <nathan@codesourcery.com>
3203 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
3205 (Gcov Data Files): Update.
3207 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3209 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
3212 * gthr-posix.c: New file.
3213 * gthr-posix.h: Define _REENTRANT if missing.
3214 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
3216 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
3218 * config/alpha/t-osf-pthread: New file.
3220 * fixinc/inclhack.def (alpha_pthread): New fix.
3221 * fixinc/fixincl.x: Regenerate.
3222 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
3224 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
3226 Fixes PR bootstrap/9330.
3228 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3230 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
3233 * configure: Regenerate.
3235 2003-07-31 Vladimir Makarov <vmakarov@redhat.com>
3237 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
3240 2003-07-30 Roger Sayle <roger@eyesopen.com>
3242 * builtins.def: Alphabetize.
3244 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
3246 * doc/c-tree.texi: Normalize spellings of "lowercase" and
3248 * doc/cpp.texi: Likewise.
3249 * doc/md.texi: Likewise.
3250 * doc/rtl.texi: Likewise.
3251 * doc/tm.texi: Likewise.
3253 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
3255 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
3256 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
3259 2003-07-30 Chris Demetriou <cgd@broadcom.com>
3261 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
3262 macros before defining them.
3264 2003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
3266 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
3267 UNSPECV_BLOCKAGE): New constants.
3268 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
3269 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
3270 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
3271 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
3273 (all insns and expanders): Write output control string as brace block
3274 where appropriate. Remove \-escapes for doublequote characters.
3276 Thu Jul 31 01:04:19 CEST 2003 Jan Hubicka <jh@suse.cz>
3278 * gcse.c (insert_store): Fix typo in previous patch.
3280 2003-07-30 Neil Booth <neil@daikokuya.co.uk>
3282 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
3284 2003-07-30 Andi Kleen <ak@muc.de>
3286 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
3288 2003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3290 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
3291 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
3292 GCOV_N_VALUE_COUNTERS): New.
3293 * profile.c (compute_value_histograms): New static function.
3294 (branch_prob): Read back the value histograms.
3295 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
3296 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
3297 * value-prof.c: Add comment on reading the profile.
3298 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
3299 * doc/invoke.texi (-fprofile-values): Document behavior with
3300 -fbranch-probabilities.
3302 2003-07-30 David Edelsohn <edelsohn@gnu.org>
3304 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
3306 2003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
3308 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
3311 Wed Jul 30 19:12:10 CEST 2003 Jan Hubicka <jh@suse.cz>
3313 * gcse.c (insert_store): Ignore fake edges.
3315 * c-common.c (flag_vtable_gc): Kill.
3316 * c-common.g (flag_vtable_gc): Kill.
3317 * c-opts (c_common_handle_option): Kill.
3318 * c.opt (fvtable-gc): Kill.
3319 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
3320 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
3321 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
3323 * invoke.texi (-ftable-gc): Kill documentation.
3325 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
3326 just because function body is missing.
3328 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
3330 2003-07-30 Ranjit Mathew <rmathew@hotmail.com>
3332 * unwind-sjlj.c: Fix typo in file description.
3334 2003-07-30 Alan Modra <amodra@bigpond.net.au>
3336 * calls.c (load_register_parameters): When shifting reg sized values
3337 to the msb, move the value to a reg first.
3339 2003-07-29 Geoffrey Keating <geoffk@apple.com>
3341 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
3342 * line-map.h (linemap_add): Update comments.
3343 * line-map.c (linemap_add): Update comments, interpret zero-length
3344 filename as "<stdin>".
3346 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
3348 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
3350 2003-07-29 Zack Weinberg <zack@codesourcery.com>
3352 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
3353 New static variables.
3354 (struct c_scope): Add parms and warned_forward_parm_decls
3355 fields; remove parm_order.
3356 (storedecls, storetags): Delete.
3357 (poplevel): Also clear bindings on the parms chain.
3358 (pushdecl): Handle forward declarations of parameters, and
3359 chain PARM_DECLs on the parms list, not the names list.
3360 (lookup_name_current_level): Check for PARM_DECLs on the parms
3362 (push_parm_decl): Don't update parm_order.
3363 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
3364 warning, only once per parameter list, and set TREE_ASM_WRITTEN
3365 on the decls here. Then move the forward decls to the names list.
3366 (grokparms): Set last_function_parm_vars.
3367 (get_parm_info): Don't use gettags or getdecls. No need to
3368 extract non-parms from the parms list, or reorganize the parms
3369 list. Feed nonparms back in the TREE_TYPE of the list node
3370 returned. Issue only one error per parameter list for "void"
3371 appearing more than once in said parameter list. Collapse
3372 parmlist_tags_warning into this function to avoid double scan
3374 (start_function): Set current_function_parm_vars.
3375 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
3376 directly. Get non-parms from current_function_parm_vars; no
3377 need to extract them from the parms chain. Properly bind tags
3379 (store_parm_decls_oldstyle): No need to extract non-parameters
3380 from the parms chain, nor to store them back afterward. Move
3381 declaration to top of function, restructure code reordering
3383 (store_parm_decls): No need to save and restore warn_shadow.
3384 * c-parse.in: Don't call parmlist_tags_warning nor
3385 clear_parm_order. Call mark_forward_parm_decls when forward
3386 parm decls are encountered.
3387 * c-tree.h: Prototype mark_forward_parm_decls; not
3388 clear_parm_order or parmlist_tags_warning.
3390 2003-07-29 Geoffrey Keating <geoffk@apple.com>
3392 * c-common.c (allow_pch): Remove.
3393 * c-common.h (allow_pch): Remove.
3394 (c_common_no_more_pch): Declare.
3395 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
3396 * c-pch.c: Include hosthooks.h.
3397 (c_common_valid_pch): Don't check allow_pch.
3398 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
3399 (c_common_no_more_pch): New.
3400 * ggc-common.c: Include hosthooks.h.
3401 (gt_pch_save): Call gt_pch_get_address.
3402 (gt_pch_restore): Call gt_pch_use_address.
3403 * hooks.c (hook_voidp_size_t_null): New.
3404 (hook_bool_voidp_size_t_false): New.
3405 * hooks.h (hook_voidp_size_t_null): New.
3406 (hook_bool_voidp_size_t_false): New.
3407 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
3408 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
3409 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
3410 HOST_HOOKS_GT_PCH_USE_ADDRESS.
3411 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
3413 * doc/hostconfig.texi (Host Common): Document
3414 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
3415 * Makefile.in (c-pch.o): Depend on hosthooks.h.
3416 (ggc-common.o): Likewise.
3418 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
3419 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
3420 (pch_address_space): New.
3421 (darwin_rs6000_gt_pch_get_address): New.
3422 (darwin_rs6000_gt_pch_use_address): New.
3424 2003-07-29 Neil Booth <neil@daikokuya.co.uk>
3426 PR preprocessor/11569
3427 PR preprocessor/11649
3428 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
3429 * cppfiles.c: Completely rewritten.
3430 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
3431 struct cpp_path is now struct cpp_dir.
3432 (remove_duplicates): Don't simplify path names.
3433 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
3435 * cpphash.h: Include hashtab.h.
3436 (_cpp_file): Declare.
3437 (struct cpp_buffer): struct include_file is now struct _cpp_file,
3438 and struct cpp_path is now struct cpp_dir. Rename members.
3439 (struct cpp_reader): Similarly. New members once_only_files,
3440 file_hash, file_hash_entries, quote_ignores_source_dir,
3441 no_search_path, saw_pragma_once. Remove all_include_files and
3442 max_include_len. Make some members bool.
3443 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
3444 (_cpp_stack_file): Renamed from _cpp_read_file.
3445 (_cpp_stack_include): Renamed from _cpp_execute_include.
3446 (_cpp_init_files): Renamed from _cpp_init_includes.
3447 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
3448 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
3449 (cpp_read_next_file): Rename and move to cppfiles.c.
3450 (cpp_read_main_file): Update.
3451 * cpplib.c (run_directive): Update for renamed members.
3452 (do_include_common, _cpp_pop_buffer): Update.
3453 (do_import): Undeprecate #import.
3454 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
3455 * cpplib.h: Remove file_name_map_list.
3456 (cpp_options): Remove map_list.
3457 (cpp_dir): Rename from cpp_path. New datatype for name_map.
3458 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
3460 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
3462 * Makefile.in: Make stamp-objdir safe for parallel builds.
3464 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
3466 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
3467 (info): Depend on stmp-docobjdir.
3469 2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3471 * configure: Regenerate.
3473 Tue Jul 29 19:24:49 CEST 2003 Jan Hubicka <jh@suse.cz>
3476 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
3477 in !unit-at-a-time mode.
3479 2003-07-28 Geoffrey Keating <geoffk@apple.com>
3481 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
3484 2003-07-28 Mark Mitchell <mark@codesourcery.com>
3487 * c-common.c (shorten_compare): Take into account differences
3488 between C and C++ representation for enumeration types.
3489 * tree.h (set_min_and_max_values_for_integral_type): Declare.
3490 * stor-layout.c (set_min_and_max_values_for_integral_type): New
3491 function, broken out from ...
3492 (fixup_signed_type): ... here and ...
3493 (fixup_unsigned_type): ... here.
3495 2003-07-28 Zack Weinberg <zack@codesourcery.com>
3497 * c-decl.c: Update commentary, adjust blank lines throughout.
3498 (struct c_scope): Fix indentation. Reorder members so
3499 outer-context pointers come first, booleans last.
3500 (duplicate_decls, define_label): Use a 'locus' variable for
3501 diagnostic locations in a few more places.
3502 (warn_if_shadowing): Un-split a conditional that fits on one line.
3503 (c_init_decl_processing): No need to clear current_scope and
3504 current_function_scope.
3505 (start_decl): Merge if/else if statements with same action.
3506 (push_parm_decl): Rename old_immediate_size_expand to use
3507 save_foo convention; save/restore around entire function.
3508 (grokdeclarator): Remove unnecessary braces.
3510 2003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
3511 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
3513 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
3514 when warn_declaration_after_statement. Call pedwarn_c90, not
3515 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
3516 * c-common.c (warn_declaration_after_statement): Define.
3517 * c-common.h (warn_declaration_after_statement): Declare.
3518 * c.opt (Wdeclaration-after-statement): New.
3519 * c-errors.c (pedwarn_c90): New function.
3520 * c-opts.c (c_common_handle_option) <case
3521 OPT_Wdeclaration_after_statement>: New.
3522 * c-tree.h (pedwarn_c90): Declare.
3523 * doc/invoke.texi (Option Summary): Document
3524 -Wdeclaration-after-statement.
3525 (Warning Options): Ditto.
3527 Mon Jul 28 20:13:06 CEST 2003 Jan Hubicka <jh@suse.cz>
3529 * i386.md (memory attribute) Avoid accessing uninitialized memory
3530 for ishift1 type instructions.
3532 2003-07-28 Jakub Jelinek <jakub@redhat.com>
3534 * configure.in (--enable-checking): Add fold category.
3535 (ENABLE_FOLD_CHECKING): Define if requested.
3536 * configure: Rebuilt.
3537 * config.in: Rebuilt.
3538 * doc/install.texi: Document it.
3539 * fold-const.c: Include md5.h.
3540 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
3541 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
3542 print_fold_checksum): New functions.
3544 * fold-const.c (fold): Never modify argument passed to fold, instead
3545 change a copy and return it.
3546 * convert.c (convert_to_integer): Likewise.
3548 2003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
3550 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
3551 cleanup of junk after #else and #endif directives. Collapse repeated
3552 clauses into for statment.
3554 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
3556 2003-07-27 Zack Weinberg <zack@codesourcery.com>
3558 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
3559 (keep_next_if_subblocks): Rename next_is_function_body.
3560 (pushlevel): Adjust commentary. Always set ->keep on the
3561 outermost level of a function. Don't set ->keep_if_subblocks.
3562 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
3563 (store_parm_decls): Adjust to match.
3564 (finish_function): Adjust to match.
3565 Call poplevel with all three arguments zero.
3567 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
3568 New functions split out of store_parm_decls.
3569 Avoid unnecessary work. Use local variables consistently.
3570 (store_parm_decls): Likewise.
3572 (finish_function): No need to set functionbody flag on call to
3574 (struct language_function): Remove scope field.
3575 (c_push_function_context, c_pop_function_context): No need to
3576 save and restore current_scope.
3578 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
3580 * doc/extend.texi (Deprecated Features): Implicit typename is
3581 gone. Default args on types is going.
3583 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
3585 * Makefile.in (ifcvt.o): Depend on target.h
3586 * ifcvt.c (target.h): Include.
3587 (if_convert): Don't call mark_loop_exit_edges if we can't
3590 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3592 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
3594 2003-07-26 Richard Henderson <rth@redhat.com>
3597 * cse.c (count_reg_usage): Handle asm_operands properly.
3599 2003-07-26 Roger Sayle <roger@eyesopen.com>
3601 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
3602 (DEF_EXT_FALLBACK_BUILTIN): Delete.
3603 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
3604 the regular DEF_EXT_LIB_BUILTIN macro.
3605 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
3606 the regular DEF_LIB_BUILTIN macro.
3607 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
3608 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
3609 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
3610 DEF_EXT_LIB_BUILTIN macro.
3612 * c-decl.c (duplicate_decls): Remove code to handle builtin
3613 functions prototyped without an argument list.
3615 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
3617 * config/i386/winnt.c: Revert 2003-07-08 change.
3618 (i386_pe_section_type_flags): Remove error_with_decl here too.
3620 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
3622 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
3623 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
3624 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
3625 (v850_handle_data_area_attribute): Likewise.
3627 2003-07-26 Geoffrey Keating <geoffk@apple.com>
3629 * varasm.c (output_constant_def_contents): Use
3630 ASM_DECLARE_CONSTANT_NAME if defined.
3631 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
3632 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
3633 objects get at least one byte to prevent assembler problems.
3634 (ASM_DECLARE_CONSTANT_NAME): New.
3636 * Makefile.in (libbackend.o): Remove options_.h.
3637 (mostlyclean): Likewise.
3639 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
3640 insert a label at the end of an function under Mach-O.
3642 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
3644 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
3646 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
3648 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
3650 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
3652 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3654 * doc/passes.texi (Passes): Mention pretty-printing and
3657 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
3659 * doc/extend.texi (Function Attributes): GNU C++ does now allow
3660 unused parameter decls.
3661 (Attribute Syntax): GNU C++ does not allow label attributes to be
3664 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3666 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
3667 (objc_declare_class): Likewise.
3668 (error_with_ivar): Likewise.
3669 (start_class): Likewise.
3670 (warn_with_method): Likewise.
3672 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3674 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
3676 * calls.c (try_to_integrate): Don't use xxx_with_decl.
3677 (expand_call): Likewise.
3678 * dwarfout.c (output_reg_number): Likewise.
3679 * expr.c (expand_expr): Likewise.
3680 * function.c (assign_temp): Likewise.
3681 (uninitialized_vars_warning): Likewise.
3682 (setjmp_args_warning): Likewise.
3683 (expand_function_end): Likewise.
3684 * stmt.c (fixup_gotos): Likewise.
3685 (warn_about_unused_variables): Likewise.
3686 (expand_end_bindings): Likewise.
3687 * stor-layout.c (layout_decl): Likewise.
3688 (place_field): Likewise.
3689 * toplev.c (check_global_declarations): Likewise.
3690 (rest_of_handle_inlining): Likewise.
3691 (default_tree_printer): New function.
3692 (general_init): Initialize diagnostic machinery before routing
3693 signals to the ICE machinery. Set default tree printer.
3694 * toplev.h (pedwarn_with_decl): Remove declaration.
3695 (warning_with_decl): Likewise.
3696 (error_with_decl): Likewise.
3697 (pedwarn): Remove attribute for the time being.
3698 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
3699 * varasm.c (named_section): Likewise.
3700 (make_decl_rtl): Likewise.
3701 (assemble_variable): Likewise.
3702 (merge_weak): Likewise.
3703 (declare_weak): Likewise.
3705 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
3706 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
3707 (format_with_decl): Remove.
3708 (diagnostic_for_decl): Likewise.
3709 (pedwarn_with_decl): Likewise.
3710 (warning_with_decl): Likewise.
3711 (error_with_decl): Likewise.
3712 (diagnostic_initialize): Adjust.
3713 (diagnostic_count_diagnostic): Likewise.
3714 (announce_function): Likewise.
3715 (lhd_print_error_function): Likewise.
3716 (diagnostic_report_current_module): Likewise.
3717 (default_diagnostic_starter): Likewise.
3718 (diagnostic_report_diagnostic): Likewise.
3719 (default_diagnostic_finalizer): Likewise.
3720 (verbatim): Likewise.
3722 (warning): Likewise.
3723 * opts.c (common_handle_option): Likewise.
3724 * pretty-print.c: New file.
3725 * c-pretty-print.h (pp_base): Override.
3726 * c-pretty-print.c: Adjust use of macros throughout.
3727 (pp_buffer): New macro.
3728 (pp_newline): Likewise.
3729 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
3730 * Makefile.in (DIAGNOSTIC_H): New variable.
3731 (c-errors.o): Use it.
3732 (c-objc-common.o): Likewise.
3733 (c-common.o): Likewise.
3734 (c-opts.o): Likewise.
3735 (c-format.o): Likewise.
3736 (diagnostic.o): Likewise.
3738 (toplev.o): Likewise.
3739 (rtl-error.o): Likewise.
3740 (dwarf2out.o): Likewise.
3742 (pretty-print.o): New rule.
3744 2003-07-24 Roger Sayle <roger@eyesopen.com>
3746 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
3747 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
3748 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
3749 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
3750 (DEF_FRONT_END_LIB_BUILTIN): Delete.
3751 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
3752 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
3754 * builtins.c (build_string_literal): New function to construct
3755 a char* pointer to a string literal.
3756 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
3757 "rtx target" to be consistent with other expand_builtin_* functions.
3758 Change 3rd argument from "int unlocked" to "bool unlocked".
3759 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
3760 c-common.c to avoid front-end dependencies. Optimize printf("")
3761 as a no-op when the result isn't required. Handle embedded NULs
3763 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
3764 from c-common.c to avoid front-end dependencies. Likewise, optimize
3765 fprintf(fp,"") as a no-op when the result isn't required, evaluating
3766 fp for side-effects. Handle embedded NULs in format string.
3767 (expand_builtin_sprintf): Fix typo.
3768 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
3769 optimizing. Adjust calls of expand_builtin_fputs to match the API
3770 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
3771 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
3772 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
3774 * c-common.c (is_valid_printf_arglist): Delete.
3775 (c_expand_builtin): Delete.
3776 (c_expand_builtin_printf): Moved to builtins.c. Delete.
3777 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
3778 (c_expand_expr): No longer treat CALL_EXPRs specially.
3779 (CALLED_AS_BUILT_IN): Delete.
3781 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3783 PR optimization/11631
3784 * gcse.c (store_motion): Connect infinite loops to exit.
3786 2003-07-24 Jason Merrill <jason@redhat.com>
3788 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
3789 (boolean_true_node, boolean_false_node): Likewise.
3790 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
3791 * tree.c (build_common_tree_nodes): Init boolean_type_node.
3792 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
3793 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
3794 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
3795 (truthvalue_true_node): Renamed from boolean_true_node.
3796 (truthvalue_false_node): Renamed from boolean_false_node.
3797 * c-decl.c: Just set truthvalue_* to integer_*.
3798 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
3800 2003-07-24 Roger Sayle <roger@eyesopen.com>
3802 * c-decl.c (match_builtin_function_types): New subroutine of
3803 duplicate_decls to test whether a redeclaration of a builtin
3804 function is suitably close, i.e. the return type and all of
3805 the argument types have the same modes as the builtin expects.
3806 (duplicate_decls): Fuzzy type matching for builtin functions
3807 moved to match_builtin_function_types.
3809 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3811 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
3814 2003-07-24 Zack Weinberg <zack@codesourcery.com>
3816 * c-decl.c: Search-and-replace change 'binding level' to
3817 'scope' in commentary.
3818 (struct binding_level): Now struct c_scope.
3819 (current_binding_level): Now current_scope.
3820 (free_binding_level): Now scope_freelist.
3821 (current_function_level): Now current_function_scope.
3822 (global_binding_level): Now global_scope.
3823 (make_binding_level): Now make_scope.
3824 (pop_binding_level): Now pop_scope.
3826 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3828 * configure.in (libgcc_visibility): Add missing whitespace.
3830 2003-07-24 Richard Henderson <rth@redhat.com>
3832 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
3833 __gcc_personality_v0.
3835 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3837 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
3839 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
3841 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
3842 documentation missed from my 2003-07-09 patch.
3844 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
3846 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
3848 * configure: Rebuild.
3850 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
3853 * c-typeck.c (type_lists_compatible_p): Do not compare
3854 arguments if one of them is an error_mark_node
3856 2003-07-24 Alan Modra <amodra@bigpond.net.au>
3858 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
3859 if current_function_calls_eh_return.
3861 2003-07-23 Mark Mitchell <mark@codesourcery.com>
3863 * doc/c-tree.texi (OFFSET_TYPE): Update description.
3865 2003-07-23 Bob Wilson <bob.wilson@acm.org>
3867 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
3868 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
3869 __umodsi3, __modsi3): Increase frame size to 32.
3871 2003-07-23 Geoffrey Keating <geoffk@apple.com>
3873 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
3876 2003-07-23 Mark Mitchell <mark@codesourcery.com>
3878 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
3880 PR optimization/10679
3881 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
3883 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3885 PR target/11607 and PR target/11516
3886 * pa.md (extzv, extv, insv): Revert latter half of last patch.
3888 2003-07-22 Mark Mitchell <mark@codesourcery.com>
3890 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
3891 * varasam.c (output_constant): Likewise.
3893 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
3895 * alias.c: Fix comment formatting.
3896 * c-common.c: Likewise.
3897 * c-decl.c: Likewise.
3898 * c-opts.c: Likewise.
3899 * combine.c: Likewise.
3900 * cpplib.c: Likewise.
3901 * diagnostic.c: Likewise.
3902 * dojump.c: Likewise.
3903 * final.c: Likewise.
3904 * fold-const.c: Likewise.
3907 * ggc-page.c: Likewise.
3910 * mips-tfile.c: Likewise.
3911 * recog.c: Likewise.
3912 * regclass.c: Likewise.
3913 * regmove.c: Likewise.
3917 2003-07-22 Per Bothner <pbothner@apple.com>
3919 * line-map.c (add_line_map): Handle invalid LEAVE request.
3920 Fixes PR preprocessor/11361.
3922 2003-07-22 Per Bothner <pbothner@apple.com>
3924 * diagnostic.c.(diagnostic_report_current_module): Update to match
3925 2003-06-05 changes to push_srcloc and pop_srcloc.
3927 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
3929 * doc/trouble.texi: Better document two-stage name lookup.
3931 2003-07-22 Eric Christopher <echristo@redhat.com>
3933 * config/s390.c (s390_valid_pointer_mode): New.
3934 (TARGET_VALID_POINTER_MODE): Use.
3935 (s390_emit_prologue): Add tpf profiling hooks.
3936 (s390_emit_epilogue): Ditto.
3937 * config/s390.h (MASK_TPF): New.
3939 (POINTERS_EXTEND_UNSIGNED): Define.
3940 * config/s390.md (ptr_extend): New pattern.
3942 2003-07-22 Zack Weinberg <zack@codesourcery.com>
3944 * hashtable.c (approx_sqrt): Make static.
3945 * hashtable.h: Don't prototype approx_sqrt.
3946 * line-map.c (init_line_maps): Rename linemap_init.
3947 (free_line_maps): Rename linemap_free.
3948 (add_line_map): Rename linemap_add.
3949 (lookup_line): Rename linemap_lookup.
3950 (print_containing_files): Rename linemap_print_containing_files.
3951 * linemap.h: Update to match.
3953 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
3954 linemap routines to use new names.
3956 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
3958 * c-common.c (handle_packed_attribute): Don't pack a struct via a
3959 typedef. Propagate packedness from a main variant.
3961 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
3963 * Makefile.in (install-common): Add dependency on installdirs.
3965 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
3967 * c-common.c (c_common_type_for_mode): Return integer types for
3970 2003-07-22 Geoffrey Keating <geoffk@apple.com>
3972 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
3973 (finish_decl): Call maybe_apply_pragma_weak here.
3974 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
3975 TREE_PUBLIC and TREE_STATIC are decided.
3976 (start_function): Move call to maybe_apply_pragma_weak. Check that
3977 DECL_ASSEMBLER_NAME isn't set too early.
3979 * cpplex.c (_cpp_process_line_notes): Mention option name in
3982 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
3984 * combine.c (if_then_else_cond): Simplify the comparison of
3985 rtx against -1, 0, and 1.
3986 * loop.c (check_dbra_loop): Likewise.
3987 * optabs.c (emit_conditional_move): Likewise.
3988 (emit_conditional_add): Likewise.
3989 * config/i386/i386.md (*movsi_or): Likewise.
3990 (*movdi_or_rex6): Likewise.
3992 Tue Jul 22 00:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
3994 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
3996 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
3998 * cppfiles.c (open_file_pch): Don't put unused entries in the
3999 splay tree. Remove dead code.
4001 2003-07-21 Geoffrey Keating <geoffk@apple.com>
4003 * c-common.h (num_in_fnames): Declare.
4004 (c_static_assembler_name): Move from here...
4005 * c-tree.h (c_static_assembler_name): ... to here.
4006 * c-opts.c: Don't include langhooks-def.h.
4007 (c_static_assembler_name): Move to c-decl.c.
4008 (num_in_fnames): Make externally visible.
4009 * c-decl.c: Include langhooks-def.h.
4010 (c_static_assembler_name): Move from c-opts.c.
4011 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
4012 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
4014 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
4015 when it's not needed.
4017 2003-07-21 Jakub Jelinek <jakub@redhat.com>
4019 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
4020 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
4021 (rs6000_emit_prologue): Save FPRs inline if set.
4023 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
4025 * config/ia64/ia64.md (prefetch): Support predicate.
4027 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
4029 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
4030 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
4033 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
4035 PR optimization/11536
4036 * unroll.c (loop_iterations): Do not replace a register holding
4037 the final value by its equivalent before the loop if it is not
4040 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
4042 * doc/extend.texi: Fixes to spelling, grammar, and diction.
4044 2003-07-21 Ben Elliston <bje@wasabisystems.com>
4046 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
4047 (V850 Options): Spelling fixes.
4049 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
4051 * doc/invoke.texi: Fixes to style, grammar and diction.
4053 2003-07-20 Roger Sayle <roger@eyesopen.com>
4055 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
4056 * system.h (SMALL_STACK): Poison obsolete target macro.
4057 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
4059 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
4061 * configure.in: Cache the results of testing for cmp's capabilities.
4062 * configure: Regenerate.
4064 2003-07-20 Mark Mitchell <mark@codesourcery.com>
4067 * dwarf2out.c (gen_enumeration_type_die): Remember that
4068 enumerators can be unsigned.
4070 2003-07-19 Zack Weinberg <zack@codesourcery.com>
4072 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
4073 (push_label_level, pop_label_level): Kill.
4074 (struct binding_level): Rename level_chain to outer.
4075 Add outer_function field. Change parm_flag, function_body,
4076 keep, keep_if_subblocks to 1-bit bitfields of type bool.
4077 (current_function_level): New variable.
4078 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
4079 (keep_next_level, declare_parm_level, warn_if_shadowing):
4081 (struct language_function): Kill named_labels, shadowed_labels fields.
4082 (c_init_decl_processing, start_function, c_push__function_context)
4083 (c_pop_function_context): No need to muck with named_labels nor
4086 (make_binding_level): No need to clear the structure here.
4087 (pop_binding_level): Always operate on current_binding_level.
4088 Update current_function_level if necessary.
4089 (pushlevel): Don't clear named_labels. Update current_function_level
4090 if necessary. Use "true" and "false" where appropriate.
4091 (poplevel): Diagnose labels defined but not used, or vice
4092 versa, and clear out label-meanings leaving scope, while
4093 walking down the decls list, for all binding levels.
4094 Handle LABEL_DECLs appearing in the shadowed list.
4095 pop_binding_level takes no arguments.
4096 (pushdecl_function_level): Use current_function_level.
4098 (make_label, bind_label): New static functions.
4099 (declare_label): New exported function.
4100 (lookup_label, define_label): Rewritten for new data structure.
4101 (shadow_label): Kill.
4103 * c-tree.h: Prototype declare_label; don't prototype
4104 push_label_level, pop_label_level, nor shadow_label.
4105 * c-parse.in: Remove all calls to push_label_level and
4106 pop_label_level. Use declare_label for __label__ decls.
4108 * doc/extend.texi: Clarify that __label__ can be used to
4109 declare labels with local scope in any nested block, not
4110 just statement expressions. Cross-reference nested functions
4111 section from local labels section.
4113 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4115 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
4117 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
4119 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
4121 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4123 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
4124 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
4126 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
4128 * config/s390/s390.c (legitimize_pic_address): Access local symbols
4129 relative to the GOT instead of relative to the literal pool base.
4130 (s390_output_symbolic_const): Handle new GOT-relative accesses.
4131 * config/s390/s390.md ("call"): Access local functions and PLT stubs
4132 relative to the GOT instead of relative to the literal pool base.
4133 ("call_value"): Likewise.
4134 ("call_value_tls"): Likewise.
4136 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
4137 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
4138 (s390_chunkify_finish): Likewise.
4139 (s390_chunkify_cancel): Likewise.
4140 (s390_reorg): Adapt caller.
4141 (find_base_register_in_addr,
4142 find_base_register_ref, replace_base_register_ref): Delete.
4143 (find_ltrel_base, replace_ltrel_base): New functions.
4144 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
4145 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
4146 base vs. index register usage.
4147 (struct constant_pool): Remove 'anchor'.
4148 (s390_add_anchor): Delete.
4149 (s390_dump_pool): Remove anchor handling.
4150 * config/s390/s390.md ("reload_anchor"): Remove.
4152 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
4153 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
4154 (s390_emit_prologue): Use it.
4155 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
4156 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
4157 hard-code register 14.
4158 * config/s390/s390-protos.h (s390_load_got): Declare.
4160 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
4161 Support TImode constants.
4162 * config/s390/s390.md ("consttable_ti"): New.
4163 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
4165 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
4166 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
4167 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
4168 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
4169 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
4170 New symbolic constants.
4171 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
4172 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
4173 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
4174 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
4175 symbolic UNSPEC values.
4176 * config/s390/s390.c (larl_operand, s390_short_displacement,
4177 bras_sym_operand, s390_cannot_force_const_mem,
4178 s390_delegitimize_address, s390_decompose_address,
4179 legitimize_pic_address, s390_output_symbolic_const,
4180 s390_function_profiler): Use symbolic UNSPEC values.
4182 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4184 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
4185 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
4186 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
4187 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
4188 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
4189 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
4190 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
4191 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
4192 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
4193 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
4194 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
4195 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
4196 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
4197 postreload.c prefix.c print-tree.c protoize.c ra-build.c
4198 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
4199 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
4200 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
4201 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
4202 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
4203 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
4206 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
4208 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
4209 * toplev.h (warning): Remove attribute.
4211 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
4213 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
4214 (pop_label_level): Likewise.
4215 (duplicate_decls): Likewise.
4216 (implicitly_declare): Likewise.
4217 (shadow_label): Likewise.
4218 (start_decl): Likewise.
4219 (finish_decl): Likewise.
4220 (grokdeclarator): Likewise.
4221 (get_parm_info): Likewise.
4222 (detect_field_duplicates): Likewise.
4223 (finish_struct): Likewise.
4224 (start_function): Likewise.
4225 (store_parm_decls): Likewise.
4226 (finish_function): Likewise.
4227 (c_expand_body_1): Likewise.
4228 (check_for_loop_decls): Likewise.
4229 (merge_translation_unit_decls): Likewise.
4231 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
4233 * common.opt: Document --param.
4234 * opts.c (columns, undocumented_msg): New.
4235 (print_help): Get number of columns from environment. Print
4236 --param help. Tweak newline handling.
4237 (print_param_help): New.
4238 (print_filtered_help): Better handling of duplicates. Complain
4239 about undocumented switches.
4240 (print_switch): New.
4241 (wrap_help): Improve wrapping, use COLUMNS.
4242 * opts.sh: Ignore comments in records.
4243 * params.def: Fix typos and remove trailing periods.
4244 * toplev.c (display_help): Don't dump --param help.
4245 * doc/sourcebuild.texi: Update.
4247 2003-07-18 Richard Henderson <rth@redhat.com>
4250 * optabs.c (prepare_operand): Fail gracefully instead of abort
4251 if the predicate doesn't satisfy.
4252 (gen_cond_trap): Allow prepare_operand to fail.
4254 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
4256 * c-common.c: Don't undefine GCC_DIAG_STYLE.
4257 (fname_decl): Don't use xxx_with_decl.
4258 (c_add_case_label): Likewise.
4259 (handle_section_attribute): Likewise.
4260 (handle_alias_attribute): Likewise.
4261 (handle_no_instrument_function_attribute): Likewise.
4262 (handle_no_limit_stack_attribute): Likewise.
4263 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
4264 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
4266 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4268 * Makefile.in (ifcvt.o): Add cfgloop.h.
4269 * basic-block.h (EDGE_LOOP_EXIT): New flag.
4270 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
4271 * ifcvt.c: Include cfgloop.h.
4272 (mark_loop_exit_edges): New static function.
4273 (if_convert): Call it.
4274 (find_if_header): Ignore branches out of loops.
4276 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
4278 * combine.c (simplify_comparison): Don't share rtx when converting
4279 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
4281 2003-07-18 David Edelsohn <edelsohn@gnu.org>
4283 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
4284 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
4285 (MUST_PASS_IN_STACK): Define.
4286 (BLOCK_REG_PADDING): Define.
4288 2003-07-18 Richard Henderson <rth@redhat.com>
4290 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
4291 to skip the addr_vec.
4293 Fri Jul 18 15:22:28 2003 Alexandre Oliva <aoliva@redhat.com>
4295 * combine.c (combinable_i3pat): Don't forbid occurrences of
4296 i2dest or i1dest in inner_dest if inner_dest is a mem.
4298 Fri Jul 18 17:05:57 CEST 2003 Jan Hubicka <jh@suse.cz>
4300 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
4302 2003-07-17 Jakub Jelinek <jakub@redhat.com>
4305 * loop.c (basic_induction_var): Check if convert_modes emitted any
4306 instructions. Remove them and return 0 if so.
4308 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
4310 PR optimization/11083
4311 * toplev.c (rest_of_handle_addresof): Rename into
4312 rest_of_handle_addressof. Delete unreachable blocks
4313 if dead edges were purged after the addressof pass.
4315 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
4317 * Makefile.in, configure, configure.in: Remove handling of
4318 lang-options.h and options_.h.
4319 * toplev.c (struct lang_opt, documented_lang_options): Remove.
4320 (display_help): Don't use documented_lang_options.
4322 2003-07-17 Zack Weinberg <zack@codesourcery.com>
4324 * c-decl.c (pushdecl_function_level): Make static, return nothing.
4325 (kept_level_p): Fold into poplevel.
4326 (undeclared_variable): Moved here from c-typeck.c. Export.
4327 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
4328 (undeclared_variable): Prototype here. Don't prototype
4329 kept_level_p nor pushdecl_function_level.
4330 * c-parse.in: Change first argument to poplevel from
4331 "kept_level_p()" to "KEEP_MAYBE".
4332 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
4334 2003-07-17 Roger Sayle <roger@eyesopen.com>
4336 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
4337 commutative operands instead of modifying the RTL in-place.
4339 2003-07-17 Mark Mitchell <mark@codesourcery.com>
4341 PR optimization/11557
4342 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
4343 unless we know which function is being called.
4345 2003-07-17 Roger Sayle <roger@eyesopen.com>
4347 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
4348 whether to reorder the operands of a commutative binary operator.
4350 2003-07-17 Roger Sayle <roger@eyesopen.com>
4352 * fold-const.c (const_binop): Avoid performing the FP operation at
4353 compile-time, if either operand is NaN and we honor signaling NaNs,
4354 or if we're dividing by zero and either flag_trapping_math is set
4355 or the desired mode doesn't support infinities.
4356 (fold_initializer): New function to fold an expression ignoring any
4357 potential run-time exceptions or traps.
4358 * tree.h (fold_initializer): Prototype here.
4359 * c-typeck.c (build_binary_op): Move to the end of the file so
4360 that intializer_stack is in scope. If constructing an initializer,
4361 i.e. when initializer_stack is not NULL, use fold_initializer to
4363 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
4364 performing FP operations at compile-time, if they would raise an
4365 exception at run-time.
4367 2003-07-17 Geoffrey Keating <geoffk@apple.com>
4370 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
4371 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
4372 (GTFILES): Add langhooks.c.
4373 (gt-langhooks.h): New.
4374 * c-common.h (c_static_assembler_name): Prototype.
4375 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
4376 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
4377 * c-opts.c: Include langhooks-def.h.
4378 (c_static_assembler_name): New.
4379 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
4381 (lhd_set_decl_assembler_name): Give static objects with context
4383 * varasm.c (var_labelno): Delete.
4384 (make_decl_rtl): Don't change the assembler name once it's set.
4386 * c-opts.c (this_input_filename): New.
4387 (finish_options): Take new parameter, name of file being compiled.
4388 Update callers. Set this_input_filename.
4389 (push_command_line_include): Use this_input_filename not
4390 main_input_filename.
4392 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
4394 * Makefile.in: Depend .pot generation on options.c.
4395 * po/exgettext: Add an extra_files variable containing additional
4398 2003-07-17 Zack Weinberg <zack@codesourcery.com>
4400 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
4401 c_write_global_declarations.
4403 * c-decl.c: Fix typos in several comments. Remove all
4404 #if 0 blocks; reindent as needed. Remove unused argument
4405 to declare_parm_level; all callers changed.
4406 * c-parse.in: Update calls to declare_parm_level. Avoid
4407 issuing a double warning in some circumstances.
4408 * c-typeck.c: Update calls to declare_parm_level.
4409 * c-tree.h: Update prototype of declare_parm_level.
4411 * c-pragma.c (apply_pragma_weak): Don't complain about a
4412 redundant #pragma weak.
4414 * objc/objc-act.c (forward_declare_categories,
4415 build_selector_reference_decl, build_class_reference_decl,
4416 build_objc_string_decl, synth_forward_declarations,
4417 build_protocol_reference): Set TREE_PUBLIC on synthetic
4418 forward decl to 0, consistent with eventual definition.
4419 Correct comments to match.
4421 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
4422 in regexp that don't form a range expression.
4423 * fixinc/fixincl.def: Regenerate.
4425 2003-07-17 Richard Henderson <rth@redhat.com>
4428 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
4429 even with !TARGET_CONST_GP.
4430 (ia64_function_ok_for_sibcall): Reject non-local functions.
4432 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
4434 * c-common.c (c_estimate_num_insns_1): Don't handle
4436 * expr.c (safe_from_p): Likewise.
4437 * gengtype.c (adjust_field_tree_exp): Likewise.
4438 * stmt.c (warn_if_unused_value): Likewise
4439 * tree.c (first_rtl_op): Likewise.
4440 * tree.def: Don't define METHOD_CALL_EXPR.
4441 * java/lang.c (java_estimate_num_insns_1): Don't handle
4444 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
4447 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
4448 and its restrictions for the SPARC64 port.
4449 Move the entry of "-mimpure-text" before that of "-mv8".
4451 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
4452 Phil Edwards <phil@jaj.com>
4454 * doc/install.texi (*-*-solaris2*): Document the step-by-step
4455 procedure to bootstrap and install.
4456 Document the preference for the legacy Sun tools in /usr/bin
4457 over the POSIX tools in /usr/xpg4/bin for the build process.
4459 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
4461 * c.opt: Document Uncodumented; use it. Document ObjC options.
4462 * opts.c (print_filtered_help): Skip undocumented switches.
4463 * opts.h (CL_UNDOCUMENTED): New.
4464 * opts.sh: Handle Undocumented.
4465 * toplev.c (documented_lang_options): Prevent its becoming empty.
4467 * lang-options.h: Remove.
4469 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
4471 * loop.c (check_ext_dependent_givs): Pass const struct loop *
4472 instead of struct loop_info * as argument. Accept BIVs with
4473 increment +/- 1 provided there is a friendly exit test against
4474 a loop-invariant value.
4475 (strength_reduce): Adapt call to check_ext_dependent_givs.
4477 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
4478 Con Bradley <con.bradley@superh.com>
4480 * sh-protos.h (sh_get_pr_initial_val): Declare.
4481 * sh.c (regno_reg_class): Make its elements type enum reg_class.
4482 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
4483 and live_regs_mask arguments. Changed all callers.
4484 (save_schedule_s): New structure.
4485 (save_schedule): New typedef.
4486 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
4487 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
4488 In interrupts handlers, also save registers that are usually
4489 partially saved, and make sure there is at least one general purpose
4490 register saved if a target register needs saving.
4491 Add casts in comparisons to avoid warnings.
4492 (sh_media_register_for_return): return -1 for interrupt handlers.
4493 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
4494 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
4495 registers used are available.
4496 Set RTX_FRAME_RELATED_P where appropriate.
4497 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
4498 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
4499 (initial_elimination_offset): Likewise.
4500 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
4501 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
4502 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
4503 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
4504 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
4505 and for target registers.
4506 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
4507 (regno_reg_class): Make its elements type enum reg_class.
4508 (CONSTRAINT_LEN): Don't use isdigit.
4509 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
4510 (FUNCTION_ARG): Add parentheses to avoid warnings.
4511 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
4512 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
4513 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
4514 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
4515 * sh.md (xordi3+1): Remove unused variable regno.
4516 (return_media): Check that tr0 is available before using it.
4518 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
4520 * c.opt: Document more options.
4522 2003-07-16 Roger Sayle <roger@eyesopen.com>
4524 * combine.c (subst): Also handle (subreg (const_double ...)) case
4525 if created by a substitution, by using the original inner mode.
4527 2003-07-16 Roger Sayle <roger@eyesopen.com>
4529 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
4530 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
4531 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
4533 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
4535 * doc/install.texi (--without-headers): New.
4537 Partial Fix PR/10129
4538 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
4539 (machopic_output_function_base_name): New; print the true pic label.
4540 (machopic_classify_ident): Pic Base is always a defined data.
4541 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
4542 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
4544 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
4545 if they are not floating point registers.
4548 * ggc.h: Add header guards.
4549 * c-decl.c (finish_struct): Sort fields if
4550 number greater than 15 and there are no
4551 anonymous structs/unions.
4552 * c-common.h: Include ggc.h.
4553 (sorted_fields_type): New struct.
4554 (field_decl_cmp): New prototype.
4555 (resort_sorted_fields): New prototype.
4556 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
4557 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
4558 as s, removing other fields.
4559 * c-typeck.c (lookup_field): Use s in lang_type.
4560 These were mostly moved from cp/class.c:
4561 * c-common.c (field_decl_cmp): New static function.
4562 (field_decl_cmp): New function.
4563 (resort_sorted_fields): New function.
4565 2003-07-16 Geoffrey Keating <geoffk@apple.com>
4567 * config/darwin.c (machopic_select_section): Use decl_readonly_section
4568 to do most of the work.
4570 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
4572 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
4573 * config/mmix/mmix.c: Convert functions to ISO C90.
4574 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
4576 (mmix_get_hard_reg_initial_val): Tweak section head comment.
4578 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
4580 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
4582 2003-07-16 Jakub Jelinek <jakub@redhat.com>
4584 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
4585 (uw_update_context_1): Use it.
4586 * config/rs6000/rs6000.c (insn_after_throw): Remove.
4587 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
4588 in parent frame if _Unwind_* called directly instead of through
4590 (rs6000_emit_eh_toc_restore): Remove.
4591 (rs6000_emit_prologue): Update stack pointer before doing any saving
4592 if current_function_calls_eh_return. Generate unwind info for $r2.
4593 (rs6000_emit_epilogue): Restore stack pointer after doing all
4594 restoring if current_function_calls_eh_return. Restore $r2.
4595 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
4596 * config/rs6000/rs6000.md (eh_return): Remove call to
4597 rs6000_emit_eh_toc_restore.
4598 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
4599 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
4601 2003-07-15 Jakub Jelinek <jakub@redhat.com>
4603 * expr.c (emit_block_move): Don't move anything if size is const 0.
4604 (clear_storage): Test against const0_rtx instead of comparing INTVAL
4607 2003-07-15 David S. Miller <davem@redhat.com>
4609 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
4610 emit nop if the last real insn is CALL_INSN.
4612 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
4614 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
4616 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
4618 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
4620 * config/i386/winnt.c (associated_type): Artificial methods are not
4621 affected by the import/export status of their class unless they are
4623 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
4625 * config/i386/winnt.c: Fix GCC copyright comment.
4627 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
4630 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
4631 not recursing on hard error.
4632 (diagnostic_for_decl): Likewise.
4633 * diagnostic.def: Rearrange.
4635 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
4637 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
4638 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
4640 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
4641 Richard Henderson <rth@redhat.com>
4643 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
4644 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
4645 (_Unwind_SetGR): Likewise.
4646 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
4647 (Unwind_SpTmp): New typedef.
4648 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
4649 (uw_update_context): Use _Unwind_GetPtr.
4650 (init_dwarf_reg_size_table): Move above uw_init_context_1.
4651 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
4652 Use _Unwind_SetSpColumn.
4653 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
4656 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
4658 * c.opt: Document more options.
4659 * toplev.c (documented_lang_options): Remove all local help strings.
4661 2003-07-15 Mark Mitchell <mark@codesourcery.com>
4664 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
4667 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
4670 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
4671 swap comparison operands if doing so would generate an
4672 unrecognizable insn.
4674 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
4676 PR optimization/11320
4677 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
4678 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
4679 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
4680 current_sched_info->compute_jump_reg_dependencies. Record which
4681 registers are used and which registers are set by the jump.
4682 Clear deps->reg_conditional_sets after a barrier.
4683 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
4684 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
4685 (init_deps): Initialize reg_conditional_sets.
4686 (free_deps): Clear reg_conditional_sets.
4687 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
4688 Mark registers live on entry of the fallthrough block and conditionally
4689 set as set by the jump. Mark registers live on entry of non-fallthrough
4690 blocks as used by the jump.
4691 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
4692 Mark new parameters as unused.
4694 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
4696 * doc/invoke.texi: Resync MIPS -march documentation.
4698 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
4700 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
4701 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
4702 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
4703 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
4704 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
4705 (mips_issue_rate): Handle PROCESSOR_R9000.
4706 (mips_use_dfa_pipeline_interface): Likewise.
4707 * config/mips/9000.md: New file.
4708 * config/mips/mips.md: Include it.
4709 (define_attr cpu): Add r9000.
4710 (mulsi3_mult3): Use "mul" for rm9000 code.
4712 2003-07-15 Stan Cox <scox@redhat.com>
4714 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
4715 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
4716 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
4717 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
4718 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
4719 (mips_issue_rate): Handle PROCESSOR_R7000.
4720 (mips_use_dfa_pipeline_interface): Likewise.
4721 * config/mips/7000.md: New file.
4722 * config/mips/mips.md: Include it.
4723 (define_attr cpu): Add r7000.
4724 (mulsi3_mult3): Use "mul" for rm7000 code.
4726 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
4728 * config/mips/mips.md (define_attr type): Add condmove. Use it for
4729 the conditional move patterns.
4730 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
4731 Check for condmove type.
4732 (ir_vr54_arith): Add move type.
4733 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
4734 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
4736 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
4738 * c-opts.c (print_help): Remove.
4739 (c_common_handle_option): Don't handle --help.
4740 * c.opt: Document some options.
4742 * opts.c (print_filtered_help): New.
4743 (print_help): Use it.
4745 2003-07-14 Geoffrey Keating <geoffk@apple.com>
4747 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
4748 * tree.c: (build_common_tree_nodes_2): Likewise.
4749 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
4750 (V4DF_type_node): New.
4752 * c-opts.c (push_command_line_include): Don't free deferred_opts,
4754 (finish_options): Reset init_cursor.
4756 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
4758 * expr.c (expand_assignment): Remove an unused argument
4760 * expr.h: Update the prototype.
4761 * function.c: Update the callers.
4764 2003-07-14 Mark Mitchell <mark@codesourcery.com>
4767 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
4770 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
4772 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
4773 with __cplusplus, not "we must use the C++ compiler's type"
4774 * fixinc/inclhack.def (void_null): Note that Interix needs this.
4775 * fixinc/fixincl.x: Regenerate.
4777 2003-07-14 Geoffrey Keating <geoffk@apple.com>
4779 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
4780 and unseen_objects from the global data before calling
4781 __deregister_frame_info_bases.
4782 (examine_objects): Insert objects into the seen_objects list,
4784 (_Unwind_Find_FDE): Always unlock the global object lists, even if
4785 we couldn't allocate a data structure to put in it.
4787 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
4788 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
4789 (SET_TYPE_PROTOCOL_LIST): New.
4790 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
4791 (get_object_reference): Likewise.
4793 Mon Jul 14 23:14:28 CEST 2003 Jan Hubicka <jh@suse.cz>
4795 * cfglayout.c (locator_file): Break out from ....
4796 (insn_file): ... here.
4797 (locator_line): Break out from ....
4798 (insn_line): ... here.
4799 * rtl.h (locator_file, locator_line): Declare.
4800 (final_start_function): Set proper line/file info.
4802 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
4804 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
4805 handled by pp_c_cast_expression.
4807 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
4809 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
4810 allocate 32768 bytes of stack. Use addition rather than subtraction
4811 when a single insn is enough.
4812 * config/mips/mips.md: Remove insns and splitters for subtracting
4814 (subsi3): Only accept register operands.
4815 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
4816 (subdi3_internal_3, subsi3_internal_2): Likewise.
4817 (casesi): Use expand_binop to subtract the lower bound.
4819 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
4821 * config/mips/mips.c (mips_in_small_data_p): Don't handle
4822 TARGET_MIPS16 specially.
4824 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
4826 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
4827 mips_output_aligned_bss.
4828 * config/mips/linux.h: Likewise.
4829 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
4830 * config/mips/mips.c (mips_output_aligned_bss): New function.
4832 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
4833 * config/mips/elf64.h: Likewise.
4835 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
4836 mips_declare_object_name.
4837 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
4838 * config/mips/elf64.h: As for elf.h.
4839 * config/mips/iris6.h: Likewise.
4840 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
4841 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
4842 do...while (0) block.
4843 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
4844 (mips_finish_declare_object): Declare.
4845 * config/mips/mips.c (mips_declare_object_name): New function.
4846 (mips_finish_declare_object): New function.
4848 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
4849 * config/mips/linux.h: Likewise.
4851 * config/mips/mips.c (inside_function): Delete.
4852 (file_in_function_warning, ignore_line_number): Delete.
4853 (mips_output_filename): Don't warn about changing filenames within
4855 (mips_output_lineno): Update accordingly.
4856 (mips_output_function_prologue): Don't reset the deleted variables.
4857 * config/mips/mips.h (inside_function): Delete.
4858 (file_in_function_warning, ignore_line_number): Delete.
4860 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
4861 * config/mips/elf64.h: Likewise.
4862 * config/mips/openbsd.h: Likewise.
4863 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
4864 * config/mips/linux.h: Likewise.
4865 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
4866 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
4868 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
4869 to the list of include files when using gas.
4870 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
4871 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
4872 * config/mips/elf64.h: Likewise.
4873 * config/mips/iris5.h: Likewise.
4874 * config/mips/linux.h: Likewise.
4875 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
4876 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
4877 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
4878 * config/mips/sdb.h: ...this new file.
4880 2003-07-14 Douglas Rupp <rupp@gnat.com>
4882 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
4883 argument to getcwd; use fixed buffer instead.
4885 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
4887 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
4888 * fixinc/fixinc.wrap: Delete.
4890 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
4892 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
4895 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
4897 * ggc-page.c (struct globals): Add new fields to keep track of the
4898 total allocated memory and overhead.
4899 (ggc_print_statistics): Print them.
4900 (ggc_alloc): Keep track of the total allocated memory and the
4903 * tree.c (dump_tree_statistics): Increase spacing.
4904 (enum tree_node_kind): Move to ...
4905 * tree.h (enum tree_node_kind): ... here.
4906 (tree_node_counts, tree_node_sizes): Declare.
4908 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
4910 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
4912 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4914 PR optimization/11440
4915 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
4918 2003-07-14 Alan Modra <amodra@bigpond.net.au>
4920 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
4921 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
4922 (emit_group_load, emit_group_store): Adjust declarations.
4923 Remove most occurrences of #ifdef TREE_CODE.
4924 * expr.c (emit_group_load): Add "type" param, and use
4925 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
4926 aligned accesses if !SLOW_UNALIGNED_ACCESS.
4927 (emit_group_store): Likewise.
4928 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
4929 emit_group_load and emit_group_store calls.
4930 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
4931 BLOCK_REG_PADDING to determine whether we need endian_correction.
4932 (load_register_parameters): Localize vars. Handle shifting of
4933 small values to the correct end of regs. Adjust emit_group_load
4935 (expand_call, emit_library_call_value_1): Adjust emit_group_load
4936 and emit_group_store calls.
4937 * function.c (assign_parms): Set mem alignment for stack slots.
4938 Adjust emit_group_store call. Store values at the "wrong" end
4939 of regs to the stack. Use BLOCK_REG_PADDING.
4940 (locate_and_pad_parm): Save where_pad.
4941 (expand_function_end): Adjust emit_group_load call.
4942 * stmt.c (expand_value_return): Adjust emit_group_load call.
4943 * Makefile.in (calls.o): Depend on $(OPTABS_H).
4944 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
4945 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
4946 (MUST_PASS_IN_STACK): Define.
4947 (BLOCK_REG_PADDING): Define.
4948 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
4949 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
4950 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
4951 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
4952 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
4954 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
4956 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
4958 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4960 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
4961 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
4963 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
4966 * toplev.c: Don't cut off option names.
4968 2003-07-13 Andreas Jaeger <aj@suse.de>
4970 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
4971 to integer of different size.
4973 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
4975 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
4976 to (eq (and X 1) 0).
4978 2003-07-13 Andreas Jaeger <aj@suse.de>
4980 * config.gcc: Add pmmintrin.h for x86_64-*-*.
4982 2003-07-13 Zack Weinberg <zack@codesourcery.com>
4984 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
4985 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
4986 list. Move these all together down by cpplib.
4988 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
4989 definition of CPPCHAR_SIGNED_T.
4991 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
4992 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
4993 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
4995 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
4996 * cppinit.c (cpp_create_reader): Likewise.
4998 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
4999 * cpptrad.c: Likewise. All callers changed.
5000 * cpplib.c: All callers changed.
5001 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
5002 * hashtable.h: Define GTY(x) to nothing here too.
5004 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5006 * stor-layout.c (compute_record_mode): Remove very obsolete test
5007 that forces BLKmode for records with fields crossing word boundary.
5009 2003-07-13 Zack Weinberg <zack@codesourcery.com>
5011 * Makefile.in: Remove orphan reference to acconfig.h.
5013 2003-07-13 Andreas Jaeger <aj@suse.de>
5015 * cgraphunit.c: Convert prototypes to ISO C90.
5017 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
5019 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
5021 * fixinc/fixincl.x: Rebuild.
5023 2003-07-12 Zack Weinberg <zack@codesourcery.com>
5025 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
5026 i?86-*-*. Use correct name of cache variable.
5027 * configure: Regenerate.
5029 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
5031 * config/alpha/alpha.c: Fix comment typos.
5032 * config/alpha/alpha.md: Likewise.
5033 * config/arm/arm.c: Likewise.
5034 * config/arm/arm.md: Likewise.
5035 * config/arm/lib1funcs.asm: Likewise.
5036 * config/avr/avr.md: Likewise.
5037 * config/arm/README-interworking: Fix typos.
5039 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
5041 * c-format.c: Fix comment formatting.
5042 * c-typeck.c: Likewise.
5043 * coverage.c: Likewise.
5044 * cppcharset.c: Likewise.
5045 * cpplib.c: Likewise.
5046 * dbxout.c: Likewise.
5047 * gcov-io.h: Likewise.
5048 * toplev.c: Likewise.
5050 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
5052 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
5055 2003-07-12 Zack Weinberg <zack@codesourcery.com>
5057 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
5058 uses three-argument AC_DEFINE so no acconfig.h entries are
5060 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
5061 which contains the GAS version number as a scaled integer.
5062 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
5063 ability to check for ELF assembler.
5064 (gcc_GAS_CHECK_FEATURE): New macro.
5065 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
5066 assembler feature checks using gcc_GAS_CHECK_FEATURE.
5067 Use three-argument AC_DEFINE everywhere.
5068 * acconfig.h: Deleted.
5069 * config.in, configure: Regenerate.
5071 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
5073 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
5075 * fixinc/fixincl.x: Regenerate.
5077 * fixinc/inclhack.def (gnu_types): Improve comment.
5079 2003-07-12 Andreas Jaeger <aj@suse.de>
5081 * fp-test.c (main): Use ISO C90 prototype.
5083 * version.c: Remove unneded include of ansidecl.h.
5085 * cgraph.h: Convert prototypes to ISO C90.
5086 * cgraph.c: Likewise.
5087 * fix-header.c: Likewise.
5089 * protoize.c: Likewise.
5091 Sat Jul 12 06:09:38 CEST 2003 Jan Hubicka <jh@suse.cz>
5093 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
5096 Sat Jul 12 03:06:01 CEST 2003 Jan Hubicka <jh@suse.cz>
5097 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5099 * cgraph.c (cgraph_max_uid): New global variable.
5100 (cgraph_node): Set uid field.
5101 (create_edge): Keep inline flags consistent.
5102 (dump_cgraph): Dump more info.
5103 * cgraph.h (struct cgraph_local_info): Remove inline_many and
5104 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
5105 (struct cgraph_global_info): Add insns, calls, cloned_times,
5107 (struct cgraph_node): Add uid.
5108 (struct cgraph_edge): Add inline_call.
5109 (cgraph_max_uid, cgraph_inline_p): Declare.
5110 * cgraph.c: Include params.h and fibheap.h
5111 (cgraph_mark_functions_to_inline_once): Kill.
5112 (INSNS_PER_CALL): New constant.
5113 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
5115 (cgraph_finalize_function): Do not analyze inlining.
5116 (cgraph_finalize_compilation_unit): Set inlining attributes.
5117 (cgraph_mark_functions_to_output): More consistency checks.
5118 (cgraph_optimize_function): Set current_function_decl to NULL.
5119 (cgraph_expand_function): Use new inline flags.
5120 (cgraph_postorder): Expand from cgraph_expand_functions.
5121 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
5122 (cgraph_inlined_into, cgraph_inlined_callees,
5123 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
5124 cgraph_mark_inline, cgraph_check_inline_limits,
5125 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
5126 cgraph_decide_inlining, cgraph_inline_p): New functions.
5127 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
5128 PARAM_INLINE_UNIT_GROWTH): New parameters.
5129 * tree-inline.c (struct inline_data): New field current_decl.
5130 (expand_call_inline): Avoid forward declarations; use
5131 inlinable_function_p.
5132 (optimize_inline_calls): Set id.current_decl.
5134 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
5136 * configure.in: Remove wrongly added definition of
5138 * configure: Regenerate.
5140 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
5142 * rtl.def (NOTE): Do not use padding.
5144 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
5146 * doc/install.tex: Update required binutils for i?86-*-linux*
5148 2003-07-11 Richard Henderson <rth@redhat.com>
5150 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
5152 2003-07-11 Mark Mitchell <mark@codesourcery.com>
5154 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
5155 TRANSLATION_UNIT_DECL as top_level.
5157 2003-07-11 Jakub Jelinek <jakub@redhat.com>
5159 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
5160 then fall back to cmpstrM.
5161 * builtins.c (expand_builtin_memcmp): Likewise.
5162 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
5163 (s390_expand_cmpmem): ... this.
5164 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
5165 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
5166 from cmpstr* patterns. Rename call to s390_expand_cmpstr
5167 to s390_expand_cmpmem.
5168 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
5169 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
5171 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
5173 * doc/md.texi (cmpstrM): Describe as String compare insn, not
5177 2003-07-11 Loren James Rittle <ljrittle@acm.org>
5179 * config/i386/freebsd.h (SET_ASM_OP): Remove.
5180 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
5181 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
5182 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
5184 2003-07-11 Richard Henderson <rth@redhat.com>
5186 * function.c (assign_parms): Don't recombine complex args if
5187 fnargs is unchanged from orig_fnargs.
5188 (split_complex_args): Return args without complex before copying.
5189 Re-layout the modified parameters.
5191 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
5193 * regclass.c (choose_hard_reg_mode): Add third argument.
5194 Changed all callers.
5195 * rtl.h (choose_hard_reg_mode): Update declaration.
5196 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
5197 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
5199 2003-07-11 Geoffrey Keating <geoffk@apple.com>
5201 * c-decl.c (finish_decl): Handle 'used' here...
5202 * cgraphunit.c (cgraph_finalize_function): ... and here ...
5203 * c-common.c: (handle_used_attribute): ... not here.
5205 * configure.in (onstep): Support --enable-intermodule.
5206 * Makefile.in (OBJS-common): New.
5208 (OBJS-archive): New.
5209 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
5210 (OBJS-onestep): New.
5211 (libbackend.a): Support @onestep@.
5212 (libbackend.o): New.
5213 * configure: Regenerate.
5215 * c-common.h (c_reset_state): New prototype.
5216 (c_parse_file): New prototype.
5217 (finish_file): Move prototype from c-tree.h.
5218 * c-decl.c: Include <hashtab.h>.
5219 (builtin_decls): New.
5220 (current_file_decl): New.
5221 (duplicate_decls): Add extra parameter. Change all callers. Don't
5222 output duplicate common symbols.
5223 (link_hash_hash): New.
5224 (link_hash_eq): New.
5225 (poplevel): Handle popping of the top level.
5226 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
5227 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
5228 (pushdecl_top_level): Likewise.
5229 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
5230 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
5231 (finish_decl): Handle TRANSLATION_UNIT_DECL.
5232 (merge_translation_unit_decls): New.
5233 (c_write_global_declarations): New.
5234 (c_reset_state): New.
5235 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
5236 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
5237 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
5238 TRANSLATION_UNIT_DECL.
5239 (c_objc_common_finish_file): Call merge_translation_unit_decls.
5240 * c-opts.c (in_fnames): Rename from in_fname.
5241 (c_common_decode_option): Handle multiple input filenames.
5242 (c_common_post_options): Likewise.
5243 (c_common_parse_file): Likewise; also, call c_parse_file rather than
5245 * c-parse.in: Move cleanup code to c_parse_file.
5246 (free_parser_stacks): Move contents to c_parse_file.
5247 (c_parse_file): New.
5248 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
5250 (C_DECL_FILE_SCOPE): New.
5251 (finish_file): Move prototype to c-common.h.
5252 (merge_translation_unit_decls): New prototype.
5253 (comptypes): Add extra parameter to prototype.
5254 (c_write_global_declarations): New prototype.
5255 * c-typeck.c (tagged_types_tu_compatible_p): New.
5256 (function_types_compatible_p): Add extra parameter, change all callers.
5257 (type_lists_compatible_p): Likewise.
5258 (comptypes): Likewise.
5259 (struct tagged_tu_seen): New.
5260 (tagged_tu_seen_base): New.
5261 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
5262 (c_mark_addressable): Remove #if 0 code.
5263 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
5264 comment explaining why it shouldn't have to.
5265 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
5267 * cppinit.c (cpp_read_next_file): New.
5268 (cpp_read_main_file): Use it.
5269 * cpplib.c (undefine_macros): New.
5270 (cpp_undef_all): New.
5271 * cpplib.h (cpp_read_next_file): Prototype.
5272 (cpp_undef_all): Prototype.
5273 * langhooks-def.h (write_global_declarations): Remove prototype.
5274 * toplev.h (write_global_declarations): Add prototype.
5275 * tree.c (decl_type_context): Use switch statement, handle
5276 TRANSLATION_UNIT_DECL.
5277 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
5278 (TRANSLATION_UNIT_DECL): New kind of tree.
5279 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
5280 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
5281 * doc/invoke.texi: Make attempt to document new functionality.
5283 2003-05-19 Per Bothner <bothner@apple.com>
5285 * gcc.c (combine_inputs): New.
5286 (process_command): Set combine_inputs.
5287 (do_spec_1): Handle combine_inputs.
5290 2003-07-10 James E Wilson <wilson@tuliptree.org>
5292 PR optimization/9745
5293 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
5294 loop_insn_emit_before.
5295 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
5297 2003-07-10 Zack Weinberg <zack@codesourcery.com>
5299 * cppcharset.c: Fix comment.
5300 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
5301 (EILSEQ): #define to EINVAL if not already defined.
5302 (convert_using_iconv): #if out when !HAVE_ICONV.
5303 (init_iconv_desc): Handle !HAVE_ICONV here...
5304 (cpp_init_iconv): ...not here.
5306 2003-07-11 Neil Booth <neil@daikokuya.co.uk>
5308 * common.opt: More --help messages.
5309 * opts.c (print_help): Use puts().
5310 * toplev.c (f_options): Remove help text.
5311 (display_help): Don't dump f_options.
5313 2003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
5315 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
5316 Move i?86-*-interix* to the don't-fix list.
5317 * fixinc/fixinc.interix: Delete with extreme prejudice.
5319 2003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
5322 * doc/install.texi: Document requirements for ia64-*-hpux* target.
5324 2003-07-10 Roger Sayle <roger@eyesopen.com>
5326 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
5328 2003-07-10 Zack Weinberg <zack@codesourcery.com>
5330 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
5331 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
5332 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
5333 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
5334 convert_no_conversion, convert_using_iconv): New functions.
5335 (APPLY_CONVERSION): New macro.
5336 (struct conversion, conversion_tab): New data structure.
5337 (init_iconv_desc): Check conversion_tab for a custom conversion
5338 primitive before trying to use iconv.
5339 (convert_cset): Deleted.
5340 (cpp_init_iconv): Use UTF- terminology, not UCS-.
5341 (_cpp_destroy_iconv): Update to match.
5342 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
5343 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
5344 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
5345 (_cpp_interpret_string_notranslate): New function, moved here
5348 * cpphash.h (convert_f, struct cset_converter): New types.
5349 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
5350 are now struct cset_converter, not bare iconv_t.
5352 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
5353 all callers changed.
5355 2003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
5357 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
5358 to opts.sh command line.
5359 * opts.sh: Write to temporary files with a move-if-change at the end.
5361 2003-07-10 Denis Chertykov <denisc@overta.ru>
5362 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5364 * combine.c (gen_binary): Handle the CLOBBER rtx and
5365 don't build a binary operation with it.
5367 2003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5369 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
5370 store_killed_after, store_killed_before): Keep track of the correct
5371 dependency function to use.
5373 2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
5374 * toplev.c (do_compile): Don't try to open dump files before
5375 lang_dependent_init initializes dump_base_name.
5377 2003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5379 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
5381 * config/frv/frv.c (frv_expand_builtin): Likewise.
5382 * config/sh/sh.c (sh_media_init_builtins): Likewise.
5384 2003-07-09 Mark Mitchell <mark@codesourcery.com>
5387 * doc/invoke.texi (C++ Dialect Options): Change documentation of
5390 2003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
5392 * tm.texi (RETURN_ADDR_OFFSET): Document.
5394 2003-07-10 Nathan Sidwell <nathan@codesourcery.com>
5396 * gcov-io.h: Update documentation.
5397 (GCOV_UNSIGNED2STRING): New.
5398 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
5399 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
5400 GCOV_TAG_SUMMARY_LENGTH): Adjust.
5401 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
5402 GCOV_TAG_COUNTER_NUM): New.
5403 (GCOV_BLOCK_SIZE): Number of words.
5404 (gcov_var): Adjust buffer type.
5405 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
5406 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
5407 count, not byte count.
5408 (gcov_open): Adjust overread init.
5409 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
5410 gcov_write_string, gcov_write_tag, gcov_write_length,
5411 gcov_write_tag_length): Adjust.
5412 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
5413 (gcov_sync, gcov_seek): Adjust.
5414 * gcov-dump.c (print_usage): Show gcc version only.
5415 (dump_file): Use GCOV_UNSIGNED2STRING.
5416 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
5417 * gcov.c (print_version): Show gcc version only.
5418 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
5419 GCOV_TAG_*_NUM macros.
5420 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
5421 GCOV_TAG_COUNTER_LENGTH.
5422 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
5423 Use GCOV_TAG_COUNTER_NUM.
5424 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
5425 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
5427 2003-07-10 Andreas Schwab <schwab@suse.de>
5429 * gcov-dump.c (dump_file): Fix missing address operator.
5431 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
5434 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
5436 (fold_single_bit_test): If sign_bit_p() fails, assume that the
5437 bit being tested is not a sign bit.
5439 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
5441 * config/h8300/h8300.md (a peephole2): New.
5443 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
5445 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
5446 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
5447 from ld-linux.so.2 to ld.so.1.
5448 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
5449 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
5450 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
5451 nor -Wl,-rpath-link.
5452 (LIB_SPEC): Add -rpath-link if !static.
5453 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
5454 * config/mn10300/mn10300.c (mn10300_protect_label): New
5456 * config/mn10300/linux.h (PRINT_OPERAND,
5457 PRINT_OPERAND_ADDRESS): Set it during their execution.
5458 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
5459 mn10300_protect_label is set.
5460 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
5462 (LIB_SPEC, STARTFILE_SPEC): Define.
5463 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
5464 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
5465 FLOAT_BIT_ORDER_MISMATCH.
5466 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
5467 * config.gcc (am33_2.0-*-linux*): Added.
5468 * config/mn10300/linux.h: New.
5469 * config/mn10300/t-linux: New.
5471 2003-07-10 Andreas Jaeger <aj@suse.de>
5473 * fold-const.c: Properly wrap prototypes.
5475 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
5477 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
5478 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
5480 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
5481 * config/mn10300/mn10300.h: GTY-declare it.
5482 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
5483 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
5484 prototype. Use incoming RTL argument.
5485 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
5486 * config/mn10300/mn10300.md (int_label): Move C statements...
5487 (GOTaddr2picreg): ... here.
5488 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
5489 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
5490 * config/mn10300/mn10300.c (mn10300_encode_section_info):
5491 ... here. New function.
5492 (TARGET_ENCODE_SECTION_INFO): Define to it.
5493 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
5494 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
5496 (mn10300_loadPC): Define as insn splittable after reload.
5497 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
5498 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
5499 be defined in .rodata even in PIC, now that the assembler
5501 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
5502 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
5503 symbol take an underscore prefix.
5504 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
5505 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
5506 legitimize_pic_address): Declare.
5507 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
5508 the PIC register as fixed.
5509 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
5510 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
5512 (LEGITIMATE_PIC_OPERAND_P): Define.
5513 (PIC_OFFSET_TABLE_REGNUM): Define.
5514 (GOT_SYMBOL_NAME): Define.
5515 (SYMBOLIC_CONST_P): Define.
5516 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
5518 (MN10300_GLOBAL_P): Test it.
5519 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
5520 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
5521 * config/mn10300/mn10300.c (print_operand): Handle unspec.
5522 (expand_prologue): Set PIC register.
5523 (call_address_operand): Don't match SYMBOL_REFs in PIC.
5524 (legitimize_address): Call legitimize_pic_address.
5525 (legitimize_pic_address): New fn.
5526 (legitimate_pic_operand_p): New fn.
5527 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
5528 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
5529 UNSPEC_PLT): New constants.
5530 (pop_pic_reg): New insn.
5531 (movsi): Adjust non-PIC addresses.
5532 (builtin_setjmp_receiver): Restore the PIC register.
5534 (call): Adjust non-PIC addresses.
5535 (int_label, GOTaddr2picreg): New expands.
5536 (am33_loadPC): New insn.
5537 (mn10300_loadPC): New expand.
5538 (call_next_insn): New insn.
5539 (add_GOT_to_pic_reg): New expand.
5540 (symGOT2reg, symGOT2reg_i): New expands.
5541 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
5542 (sym2PIC, sym2PLT): New expands.
5544 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
5546 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
5547 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
5548 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
5549 to flag_unsafe_math_optimizations.
5550 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
5551 * config/mn10300/mn10300.c (expand_prologue): Mark
5552 FP-register-saving insns as frame-related.
5553 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
5554 * config/mn10300/mn10300.c
5555 (mn10300_get_live_callee_saved_regs): Don't search past
5556 LAST_EXTENDED_REGNUM.
5557 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
5558 * config/mn10300/mn10300.md: Remove excessive line breaks from
5559 `@' output patterns that were accounted as additional
5561 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
5562 Re-introduce changes accidentally removed in Richard Sandiford's
5564 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
5565 Re-instate am33-2 lost in merge from net GCC.
5566 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
5567 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
5568 floating-point registers.
5569 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
5570 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
5571 pessimizations that had gone in on 2000-05-08.
5572 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
5573 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
5574 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
5575 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
5577 * (movhi): Likewise.
5578 * (movsi): Likewise.
5579 * (movsf): Likewise.
5580 * (movdi): Likewise.
5581 * (movdf): Likewise.
5582 Wed May 24 13:16:09 2000 Alexandre Oliva <aoliva@cygnus.com>
5583 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
5584 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
5585 (expand_prologue, expand_epilogue): Save and restore FP regs.
5586 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
5587 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
5588 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
5589 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
5590 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
5592 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
5593 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
5594 Discourage the two-argument, longer opcodes.
5595 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
5597 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
5598 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
5599 * config/mn10300/mn10300.md (cmpsf): New pattern.
5600 (branch): Test mdep.fpCC and output fbCC.
5601 * config/mn10300/mn10300.c (print_operand): Output conditions.
5602 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
5603 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
5604 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
5605 mulsf3, divsf3): Use the `F' constraint for FP values.
5606 * config/mn10300/mn10300.c (const_1f_operand): New function.
5607 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
5608 * config/mn10300/mn10300.md (sqrtsf2): New expand.
5609 (rsqrtsf2): New insn.
5610 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
5611 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
5613 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
5614 * config/mn10300/mn10300.md (abssf2, negdf2): On
5615 TARGET_AM33_2, expand to...
5616 (abssf2_am33_2, negdf2_am33_2): New insns.
5617 (addsf3, subsf3, mulsf3, divsf3): Likewise.
5618 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
5619 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
5620 movdi, movdf): Added FP regs.
5621 * invoke.texi (-mam33-2, -mno-am33-2): Document.
5622 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
5623 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
5625 (REGNO_AM33_2_FP_P): Renamed to...
5626 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
5627 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
5628 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
5629 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
5630 regs from GENERAL_REGS.
5631 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
5632 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
5633 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
5634 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
5635 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
5636 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
5638 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
5639 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
5640 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
5641 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
5642 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
5643 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
5644 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
5645 AM33/2.0 floating-point registers.
5646 (CONDITIONAL_REGISTER_USAGE): Adjust.
5647 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
5648 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
5649 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
5650 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
5651 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
5652 (MULTILIB_DIRNAMES): Likewise.
5653 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
5654 `__AM33_2__' when `-mam33-2' is given.
5655 (TARGET_AM33_2): Define.
5656 (TARGET_SWITCHES): Adjust.
5657 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
5660 2003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
5662 * doc/install.texi: Add missing @.
5664 2003-07-09 Bob Wilson <bob.wilson@acm.org>
5666 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
5668 2003-07-09 Aldy Hernandez <aldyh@redhat.com>
5671 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
5673 2003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
5676 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
5677 "x-crtfini.o" with "crtinit.o", "crtfini.o".
5679 * fixinc/inclhack.def (limits_ifndefs): Add select test.
5680 * fixinc/fixincl.x: Rebuild.
5682 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
5683 * fixinc/fixincl.x: Rebuild.
5685 2003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
5687 * doc/install.texi (Configuration): Document the valgrind option
5688 to --enable-checking.
5690 Wed Jul 9 16:16:30 CEST 2003 Jan Hubicka <jh@suse.cz>
5692 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
5694 2003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5696 * c-lex.c (cb_ident): Cast cstr.text to const char *.
5698 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
5700 * gcov-io.h: Update documentation.
5701 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
5703 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
5704 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
5705 (struct gcov_var): Change buffer's type. Add endian flag.
5706 (gcov_open): Remove mode in libgcov.
5707 (gcov_magic): Prototype.
5708 * gcov-io.c (from_file): New.
5709 (gcov_open): Clear endian flag.
5711 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
5713 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
5714 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
5715 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
5716 * gcov-iov.c (main): Correct cast.
5717 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
5719 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
5720 (coverage_init): Use GCOV_NOTE_SUFFIX.
5721 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
5722 Rename to gcov_version, and return flag.
5723 (gcov_exit): Use gcov_version.
5724 (__gcov_init): Use gcov_version.
5725 * Makefile.in (coverageexts): Update.
5726 * gcov.c (print_version): Remove endianness conversion.
5727 (create_file_names): Use GCOV_NOTE_SUFFIX.
5728 (read_graph_file): Use gcov_magic.
5729 (read_count_file): Likewise.
5730 * gcov-dump.c (dump_file): Remove endianness conversion, use
5733 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
5735 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
5737 * configure: Regenerated.
5738 * Makefile.in (ALL_CFLAGS): Correct its comment.
5740 2003-07-08 Mark Mitchell <mark@codesourcery.com>
5742 * fold-const.c (make_range): Do not access operand 1 for a
5743 zero-operand operator.
5745 2003-07-09 Neil Booth <neil@daikokuya.co.uk>
5747 * toplev.c (warn_dummy, W_options): Die.
5748 (display_help): Don't print W_options.
5749 * common.opt: Add W_options help from toplev.c.
5751 2003-07-09 Andreas Jaeger <aj@suse.de>
5753 * opts.c (wrap_help): Only pass int arguments as arguments to
5754 printf's '*' modifier. Change argument of function.
5756 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
5758 * doc/invoke.texi: Fix misspelling of "@item".
5760 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
5762 * config/i386/i386.md: Remove an old comment about
5765 Wed Jul 9 03:00:10 CEST 2003 Jan Hubicka <jh@suse.cz>
5767 * cgraph.c (cgraph_node_name): New function.
5768 (dump_cgraph): Use it.
5769 * cgraph.h (cgraph_dump_file): Declare.
5770 (cgraph_node_name): Declare.
5771 * cgraphunit.c: Include timevar.h
5772 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
5773 (cgraph_optimize_function): Use TV_INTEGRATION.
5774 (cgraph_mark_local_functions): reorganize dumps.
5775 (cgraph_mark_functions_to_inline_once): Likewise.
5776 (cgraph_optimize): Likewise; use timevar.
5777 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
5778 * toplev.c (dump_file_index): Add DFI_cgraph.
5779 (dump_file_info): Likewise.
5780 (cgraph_dump_file): New global variable.
5781 (do_compile): Open and close cgraph dump.
5782 * invoke.texi (-d): Document new flag; renumber.
5784 2003-07-08 Roger Sayle <roger@eyesopen.com>
5787 * calls.c (emit_call_1): Don't bother popping the arguments off of
5788 the stack after a noreturn function call; The adjustment is dead.
5789 (expand_call): Likewise.
5791 2003-07-08 Geoffrey Keating <geoffk@apple.com>
5793 * expr.c (MOVE_MAX_PIECES): Move from here...
5794 * defaults.h (MOVE_MAX_PIECES): ... to here.
5796 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
5798 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
5800 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5802 * genattr.c (internal_dfa_insn_code): Don't prototype.
5803 * genattrtab.c (attr_desc): Add `static_p' field.
5804 (expand_units): Make blockage range and ready cost functions
5806 (write_attr_get): Don't add extern prototypes in C file. Mark
5807 static functions as appropriate.
5808 (find_attr, make_internal_attr): Initialize static_p.
5809 * genattrtab.h (ATTR_STATIC): New macro.
5810 * genautomata.c (output_internal_reset_func): Mark output function
5812 (make_internal_dfa_insn_code_attr): Mark output function as static.
5814 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5816 * genattrtab.h: Add new macros for attr `special' flags.
5817 * genattrtab.c (attr_desc): Reorder/resize fields better.
5818 Use attr `special' macros in all calls to make_internal_attr.
5819 * genautomata.c: Likewise.
5821 Wed Jul 9 02:25:39 CEST 2003 Jan Hubicka <jh@suse.cz>
5823 * c-common.c (c_estimate_num_insns_1): New static function.
5824 (c_estimate_num_insns): New global function.
5825 * c-common.h (DECL_NUM_STMTS): Rename to...
5826 (DECL_ESTIMATED_INSNS): ... this.
5827 (c_estimate_num_insns): Declare.
5828 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
5829 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
5830 * c-semantics.c (add_stmt): Do not account statements.
5831 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
5833 * langhooks.h (lang_hooks_for_tree_inlining): Add
5835 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
5837 (max-inline-insns): set to 300.
5838 (min-inline-insns): set to 10.
5839 * tree-inline.c (struct inline_data): Rename inlined_stmts to
5841 (INSNS_PER_STMT): Kill.
5842 (inlinable_function_p): Compute and store body size.
5843 (expand_call_inline): Likewise.
5844 (optimize_inline_calls): Likewise.
5846 2003-07-08 James E Wilson <wilson@tuliptree.org>
5849 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
5850 loop over new variable t2 instead of t.
5852 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
5855 * config/i386/winnt.c: Replace use of error(), warning() with
5856 error_with_decl(), warning_with_decl(), throughout.
5858 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
5860 * opts.c (wrap_help): Use unsigned int, not size_t.
5862 2003-07-08 Stephane Carrez <stcarrez@nerim.fr>
5864 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
5865 as .file/.loc directives are incompatible with linker relaxation.
5867 2003-07-08 Zack Weinberg <zack@codesourcery.com>
5869 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
5870 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
5871 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
5872 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
5873 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
5874 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
5875 Escape { and } characters which are not part of range expressions.
5876 * fixinc/fixincl.x: Regenerate.
5877 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
5879 2003-07-08 Steven Bosscher <steven@gcc.gnu.org>
5882 * tree-inline.c (find_alloca_call): Use
5883 walk_tree_without_duplicates, instead of walk_tree.
5884 (find_builtin_longjmp_call): Likewise.
5885 * c-objc-common.c (c_cannot_inline_fn): Likewise.
5886 * c-semantics.c (find_reachable_label): Likewise.
5888 2003-07-08 Jakub Jelinek <jakub@redhat.com>
5891 * config/i386/i386.c (ix86_check_movabs): New function.
5892 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
5893 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
5894 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
5896 2003-07-08 Chris Demetriou <cgd@broadcom.com>
5898 * Makefile.in (install-po): Cope with empty CATALOGS.
5900 2003-07-08 Richard Sandiford <rsandifo@redhat.com>
5902 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
5903 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
5904 (SECTION_FUNCTION_TEMPLATE): Delete.
5905 * config/mips/elf.h: As for elf64.h.
5906 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
5907 * config/mips/linux.h: As for elf.h
5908 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
5909 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
5910 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
5911 of in_sdata from current_section_name and current_section_flags.
5912 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
5913 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
5914 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
5915 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
5916 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
5917 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
5918 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
5919 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
5920 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
5921 (override_options): Remove setting of MASK_GPOPT.
5922 (mips_output_external): Use mips_in_small_data_p to check whether a
5923 symbol needs an .extern directive. Don't emit such directives for
5924 TARGET_EXPLICIT_RELOCS.
5925 (mips_declare_object): Update accordingly.
5926 (mips_select_rtx_section): Call named_section rather than
5928 (mips_select_section): Use default_elf_section_section for everything
5929 except .text string constants.
5930 (mips_in_small_data_p): New function.
5931 (mips_encode_section_info): Remove small data handling.
5932 (mips_unique_section): Delete.
5933 (iris6_section_type_flags): New function.
5934 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
5936 2003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5939 * pa.md: Disparage all mtsar constraints.
5940 (extzv, extv, insv): Don't fail on length of {32|64}.
5942 2003-07-08 Zack Weinberg <zack@codesourcery.com>
5944 * system.h: Poison MAP_CHARACTER.
5945 * config/i370/i370-protos.h (mvs_map_char): Delete.
5946 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
5947 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
5948 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
5950 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
5952 * toplev.c (randomize): Correct call to time().
5954 2003-07-08 Jakub Jelinek <jakub@redhat.com>
5956 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
5957 REG_EQUIV notes as well.
5959 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
5961 * doc/md.texi: Fix the description of addmodecc.
5963 2003-07-07 Zack Weinberg <zack@codesourcery.com>
5965 * Makefile.in (top_builddir): Set to "..", not ".".
5966 (INTLLIBS, INTLDEPS): Delete.
5967 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
5968 (LIBDEPS): Add $(LIBICONV_DEP).
5969 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
5970 (INCLUDES): Replace -I../intl with @INCINTL@.
5971 ($(top_builddir)/intl/libintl.a): Delete rule.
5972 (stage2-start, stage3-start, stage4-start, stageprofile-start,
5973 stagefeedback-start): Use $$ for variable to be evaluated by
5975 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
5976 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
5977 * aclocal.m4: sinclude ../config/progtest.m4. Add
5978 contents of lcmessage.m4 from gettext distro.
5979 * configure.in: Check for wchar.h and setlocale. Set
5980 LIBICONV_DEP to the empty string and substitute it.
5981 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
5982 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
5983 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
5984 in $LIBINTL, to avoid linking it twice.
5985 * configure, config.in: Regenerate.
5987 2003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
5989 * fixinc/mkfixinc.sh: Remove winnt support.
5990 * fixinc/fixinc.winnt: Delete with extreme prejudice.
5992 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
5994 * Makefile.in: Update.
5995 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
5996 * c.opt: Update documentation.
5997 * common.opt: Add some help text.
5998 * opts.c: Include intl.h.
5999 (wrap_help, print_help): New.
6000 (find_opt, handle_option, common_handle_option): opt_text now
6001 contains the '-'. Use print_help to output help.
6002 * opts.h (struct cl_option): New member "help".
6003 * opts.sh: Update to handle help text output and to prepend
6005 * toplev.c (display_help): Remove some help text.
6007 2003-07-07 David Edelsohn <edelsohn@gnu.org>
6008 Fariborz Jahanian <fjahanian@apple.com>
6010 * configure.in: Test for PowerPC mfcr field support in assembler.
6011 * config.in, configure: Regenderated.
6013 * config/rs6000/power4.md: Add mfcrf reservation.
6014 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
6015 * config/rs6000/rs6000.c (mfcr_operation): Define.
6016 (print_operand): Add 'Q' case for mfcrf.
6017 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
6018 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
6019 (movcc_internal1): Emit optional field operand for mfcr and set
6020 "type" attribute appropriately.
6021 (mfcr SCC): Likewise.
6022 (movesi_from_cr_one): New.
6024 2003-07-07 Roger Sayle <roger@eyesopen.com>
6026 * config/i386/i386.md: Correct check-in of incorrect version.
6028 2003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6030 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
6031 adjacent stdio calls.
6032 * c-decl.c (c_print_identifier): Likewise.
6033 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
6034 * print-rtl.c (print_rtx): Likewise.
6035 * print-tree.c (print_node_brief, print_node): Likewise.
6036 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
6038 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
6039 * config.in, configure: Regenerated.
6041 2003-07-07 Roger Sayle <roger@eyesopen.com>
6044 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
6045 Changed to define_expand patterns that copy operand[1] to prevent
6046 it from being clobbered before emitting an atan2?f3_1 insn.
6047 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
6048 patterns that actually specify the behaviour of x87's FPATAN.
6050 2003-07-07 Jakub Jelinek <jakub@redhat.com>
6052 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
6053 clearing of SYMBOL_FLAG_LOCAL bit.
6054 If vcall_offset fits into signed 16-bit immediate, use
6055 one instruction for both addition and load.
6057 2003-07-07 Neil Booth <neil@daikokuya.co.uk>
6059 * opts.c (common_handle_option): Correct handling of the
6060 -falign- switches that do and don't take an argument.
6062 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
6064 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
6066 (pushhi1_h8300hs): Likewise.
6068 2003-07-07 Andreas Jaeger <aj@suse.de>
6070 * genextract.c: Convert remaining prototypes to ISO C90.
6072 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
6073 * fold-const.c (fold_single_bit_test): Likewise.
6074 * diagnostic.c (default_diagnostic_finalizer): Likewise.
6075 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
6077 * gengtype.c (write_array): Generate ISO C90 prototypes.
6079 * genflags.c (gen_proto): Generate ISO C90 prototypes.
6081 2003-07-07 Roger Sayle <roger@eyesopen.com>
6083 PR optimization/11059
6084 * expr.c (can_store_by_pieces): Return true if length is zero.
6085 (store_by_pieces): If length is zero and endp is two, abort,
6086 othwerise, if length is zero and endp is not two, return "to".
6087 (clear_by_pieces): Do nothing if length is zero.
6088 (clear_storage): Do nothing if length is zero.
6089 (store_constructor): Simplify code when size is zero, or the
6090 target has already been cleared. This avoids emitting a
6091 blockage instruction when initializing empty structures.
6093 2003-07-07 Andreas Jaeger <aj@suse.de>
6095 * mips-tfile.c: Convert prototypes to ISO C90.
6096 * mips-tdump.c: Convert prototypes to ISO C90.
6098 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
6100 * rtl.h (emit_line_note): Take a location_t.
6101 (emit_line_note_force): Remove.
6102 (set_file_and_line_for_statement): Take a location_t.
6103 * tree.g (emit_line_note): Take a location_t.
6104 * emit-rtl.c (emit_line_note): Take a location_t.
6105 (emit_line_note_force): Remove.
6106 * function.c (init_function_start): Adjust emit_line_note call.
6107 (expand_function_end): Use force_next_line_note, not
6108 emit_line_note_force.
6109 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
6110 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
6111 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
6112 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
6113 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
6114 genrtl_continue_stmt, genrtl_switch_stmt,
6115 genrtl_asm_stmt): Likewise.
6116 * expr.c (expand_expr): Likewise.
6117 * integrate.c (expand_inline_function): Likewise.
6118 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
6119 (expand_decl_init): Adjust emit_line_note call.
6121 2003-07-07 Dale Johannesen <dalej@apple.com>
6123 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
6125 2003-07-07 Andreas Jaeger <aj@suse.de>
6127 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
6128 * config/i386/i386.c: Likewise.
6130 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
6132 * config/h8300/h8300.md: Use gen_int_mode instead of
6133 GEN_INT (trunc_int_for_mode (...)).
6135 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
6137 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
6138 2 bytes and then subtract 2 from the stack pointer.
6139 (pushhi1_h8300hs): Likewise.
6141 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
6143 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
6145 * configure: Regenerated.
6146 * Makefile.in: Remove extraneous comment.
6147 * toplev.c (randomize): Protect against potential multiple calls.
6148 * doc/invoke.texi (-frandom-seed): Document use for in coverage
6151 2003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6152 Eric Botcazou <ebotcazou@libertysurf.fr>
6154 PR optimization/11198
6155 * alias.c (objects_must_conflict_p): Return 1 if the types have
6156 the same alias set, not if the alias sets only conflict.
6158 2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
6160 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
6161 (convert_cset): Change inbuf to type ICONV_CONST char.
6162 * Makefile.in (LIBS): Add LIBICONV.
6164 * doc/invoke.texi (-falign-functions): Document that
6165 when n is zero then a machine-dependent default is used.
6166 (-falign-labels): Document that when n is zero then a
6167 machine-dependent default is used and that -falign-labels =1
6168 is equivalent to -fno-align-labels.
6169 (-falign-loops): Likewise.
6170 (-falign-jumps): Likewise.
6172 2003-07-06 Art Haas <ahaas@airmail.net>
6174 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
6177 2003-07-06 James E Wilson <wilson@tuliptree.org>
6179 PR optimization/9812
6180 * rtl.h (mem_for_const_double): Delete prototype.
6181 * varasm.c (mem_for_const_double): Delete function.
6182 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
6183 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
6184 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
6185 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
6186 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
6187 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
6188 comment about confused support for XFmode constants.
6190 Mon Jul 7 02:03:56 CEST 2003 Jan Hubicka <jh@suse.cz>
6192 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
6194 2003-07-06 Kazu Hirata <kazu@cs.umass.edu>
6196 * config/h8300/h8300.c: Fix comment typos.
6197 * config/h8300/h8300.md: Likewise.
6198 * config/i386/athlon.md: Likewise.
6199 * config/i386/i386.c: Likewise.
6200 * config/i386/pentium.md: Likewise.
6201 * config/ia64/ia64.c: Likewise.
6202 * config/ia64/itanium1.md: Likewise.
6203 * config/ia64/itanium2.md: Likewise.
6204 * config/m32r/m32r.md: Likewise.
6205 * config/m68hc11/m68hc11.c: Likewise.
6206 * config/mcore/mcore.c: Likewise.
6207 * config/mips/sr71k.md: Likewise.
6208 * config/mips/t-iris5-as: Likewise.
6209 * config/mmix/mmix.h: Likewise.
6210 * config/ns32k/ns32k.h: Likewise.
6211 * config/ns32k/NOTES: Fix a typo.
6213 2003-07-06 Andreas Jaeger <aj@suse.de>
6215 * stmt.c: Convert remaining prototypes to ISO C90.
6216 * cfglayout.c: Likewise.
6217 * dbxout.c: Likewise.
6219 * genemit.c: Likewise.
6221 * basic-block.h: Convert prototypes to ISO C90.
6222 * c-parse.in: Likewise.
6223 * c-pragma.h: Likewise.
6224 * c-typeck.c: Likewise.
6225 * cfghooks.h: Likewise.
6226 * cfgloopanal.c: Likewise.
6227 * dbxout.h: Likewise.
6228 * debug.h: Likewise.
6229 * dwarf2asm.h: Likewise.
6231 * gengtype-lex.l: Likewise.
6232 * sched-int.h: Likewise.
6233 * timevar.c: Likewise.
6235 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
6237 * c-common.h (c_comon_handle_filename,
6238 c_common_missing_arguement): New.
6239 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
6240 LANG_HOOKS_MISSING_ARGUMENT): New.
6241 * c-opts.c (missing_arg): Rename c_common_missing_argument,
6242 update to be an appropriate langhook.
6243 (c_common_handle_option): Don't handle filenames.
6244 (c_common_handle_filename): New.
6245 * hooks.c (hook_void_constcharptr,
6246 hook_bool_constcharptr_size_t_false): New.
6247 * hooks.h (hook_void_constcharptr,
6248 hook_bool_constcharptr_size_t_false): New.
6249 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
6250 LANG_HOOKS_MISSING_ARGUMENT): New.
6251 (LANG_HOOKS_INITIALIZER): Update.
6252 * langhooks.h (struct lang_hooks): Add handle_filename and
6254 * opts.c (handle_option): Don't handle filenames here, but ...
6255 (handle_options): ... here.
6256 (common_handle_option): Don't handle missing arguments here.
6257 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
6258 LANG_HOOKS_MISSING_ARGUMENT): New.
6260 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
6262 * Makfile.in: Remove traces of mbchar.
6263 * c-parse.in (MULTIBYTE_CHARS): Remove.
6264 * config.in (MULTIBYTE_CHARS): Remove.
6265 * configure: Remove --enable-mbchar.
6266 * configure.in: Remove --enable-mbchar.
6267 * mbchar.c, mbchar.h: Remove.
6268 * system.h: Poison MULTIBYTE_CHARS.
6269 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
6270 * config/linux.h (MULTIBYTE_CHARS): Remove.
6271 * config/svr4.h (MULTIBYTE_CHARS): Remove.
6272 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
6274 2003-07-06 Andreas Jaeger <aj@suse.de>
6276 * varray.c (varray_check_failed): Fix typo.
6278 * unroll.c: Convert prototypes to ISO C90.
6279 * varasm.c: Likewise.
6280 * varray.c: Likewise.
6281 * varray.h: Likewise.
6282 * vmsdbgout.c: Likewise.
6283 * xcoffout.c: Likewise.
6284 * xcoffout.h: Likewise.
6286 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
6288 * gcov-io.h: Add a local time stamp.
6289 (struct gcov_info): Add stamp field.
6290 (gcov_truncate): New.
6291 * coverage.c (read_counts_file): Skip the stamp.
6292 (coverage_begin_output): Write the stamp.
6293 (build_gcov_info): Declare and init the stamp.
6294 (coverage_finish): Only unlink data file, if stamp is zero.
6295 * gcov-dump.c (dump_file): Dump the stamp.
6296 * gcov.c (bbg_stamp): New.
6297 (release_structures): Clear bbg_stamp.
6298 (read_graph_file): Read stamp.
6299 (read_count_file): Check stamp.
6300 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
6302 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
6304 * tree.h (default_flag_random_seed): Remove.
6305 * toplev.h (local_tick): Declare.
6306 * tree.c (flag_random_seed, default_flag_random_seed): Move to
6308 (append_random_chars): Don't call default_flag_random_seed.
6309 * toplev.c (flag_random_seed): Define here. Set local_tick.
6310 (local_tick): Define.
6311 (randomize): New, moved from tree.c.
6312 (print_switch_values): Adjust.
6313 (toplev_main): Call randomize.
6315 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
6317 * tree.h (crc32_string): Declare.
6318 * tree.c (append_random_chars): Remove.
6319 (crc32_string): New.
6320 (get_file_function_name_long): Use crc32_string here.
6322 2003-07-06 Andreas Jaeger <aj@suse.de>
6324 * gcc.c: Convert prototypes to ISO C90.
6326 * gcov-dump.c: Likewise.
6327 * gcov-iov.c: Likewise.
6329 * genattrtab.h: Likewise.
6331 * global.c: Likewise.
6332 * graph.c: Likewise.
6333 * graph.h: Likewise.
6334 * hosthooks.h: Likewise.
6335 * hooks.h: Likewise.
6336 * hooks.c: Likewise.
6337 * hashtable.h: Likewise.
6338 * hashtable.c: Likewise.
6339 * haifa-sched.c: Likewise.
6340 * integrate.h: Likewise.
6341 * integrate.c: Likewise.
6342 * input.h: Likewise.
6343 * ifcvt.c: Likewise.
6345 * langhooks-def.h: Likewise. Add extern to prototypes.
6346 * langhooks.c: Likewise.
6347 * langhooks.h: Likewise.
6349 * local-alloc.c: Likewise.
6350 * loop-init.c: Likewise.
6351 * loop-unroll.c: Likewise.
6352 * loop-unswitch.c: Likewise.
6354 * loop.h: Likewise. Add extern to prototypes.
6355 * machmode.h: Likewise.
6357 * mbchar.c: Likewise.
6358 * mbchar.h: Likewise.
6359 * mkdeps.c: Likewise.
6360 * mkdeps.h: Likewise.
6361 * optabs.c: Likewise.
6362 * optabs.h: Likewise.
6363 * output.h: Likewise.
6364 * gccspec.c: Likwise.
6365 * postreload.c: Likewise.
6366 * prefix.c: Likewise.
6367 * prefix.h: Likewise.
6368 * print-rtl.c: Likewise.
6369 * print-tree.c: Likewise.
6370 * profile.c: Likewise.
6371 * read-rtl.c: Likewise.
6374 * recog.c: Likewise.
6375 * recog.h: Likewise.
6376 * reg-stack.c: Likewise.
6377 * regclass.c: Likewise.
6378 * regmove.c: Likewise.
6379 * regrename.c: Likewise.
6381 * reload.c: Likewise.
6382 * reload.h: Likewise.
6383 * reload1.c: Likewise.
6384 * reorg.c: Likewise.
6385 * resource.c: Likewise.
6386 * resource.h: Likewise.
6387 * rtl-error.c: Likewise.
6390 * rtlanal.c: Likewise.
6391 * sbitmap.c: Likewise.
6392 * sbitmap.h: Likewise.
6393 * scan-decls.c: Likewise.
6395 * sched-deps.c: Likewise.
6396 * sched-ebb.c: Likewise.
6397 * sched-int.h: Likewise.
6398 * sched-rgn.c: Likewise.
6399 * sched-vis.c: Likewise.
6400 * sibcall.c: Likewise.
6401 * simplify-rtx.c: Likewise.
6402 * sreal.c: Likewise.
6403 * sreal.h: Likewise.
6404 * ssa-ccp.c: Likewise.
6405 * ssa-dce.c: Likewise.
6408 * stack.h: Likewise.
6410 * stor-layout.c: Likewise.
6411 * stringpool.c: Likewise.
6412 * target.h: Likewise.
6413 * timevar.c: Likewise.
6414 * timevar.h: Likewise.
6415 * tlink.c: Likewise.
6416 * tracer.c: Likewise.
6417 * tree-inline.c: Likewise.
6418 * tree-inline.h: Likewise.
6422 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
6424 * combine.c (nonzero_bits1): Fix a warning.
6426 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
6428 * config/h8300/h8300.c (compute_mov_length): Correct the
6429 length of loading CONST0_RTX (SFmode).
6431 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
6433 * toplev.c (output_clean_symbol_name): Remove.
6434 * toplev.h (output_clean_symbol_name): Remove.
6435 * config/alpha/alpha.c (unicosmk_output_module_name): Use
6436 lbasename & clean_symbol_name.
6438 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
6440 * ggc.h: Follow spelling conventions.
6441 * config/i386/i386.c: Likewise.
6442 * config/i386/winnt.c: Likewise.
6443 * config/rs6000/rs6000.c: Likewise.
6445 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
6447 * bt-load.c: Fix comment typos.
6448 * c-incpath.c: Likewise.
6450 * cfgcleanup.c: Likewise.
6451 * cfgloop.h: Likewise.
6452 * cfgloopmanip.c: Likewise.
6453 * cfgrtl.c: Likewise.
6454 * diagnostic.h: Likewise.
6455 * dwarfout.c: Likewise.
6456 * emit-rtl.c: Likewise.
6457 * et-forest.c: Likewise.
6458 * et-forest.h: Likewise.
6461 * genattr.c: Likewise.
6463 * langhooks.h: Likewise.
6464 * local-alloc.c: Likewise.
6465 * loop-unroll.c: Likewise.
6466 * loop-unswitch.c: Likewise.
6467 * ra-build.c: Likewise.
6468 * regclass.c: Likewise.
6469 * regmove.c: Likewise.
6470 * rtl.def: Likewise.
6471 * rtlanal.c: Likewise.
6472 * sched-ebb.c: Likewise.
6473 * sched-rgn.c: Likewise.
6474 * simplify-rtx.c: Likewise.
6476 * tracer.c: Likewise.
6479 2003-07-05 Zack Weinberg <zack@codesourcery.com>
6481 * cppcharset.c: Use the correct return type for the fallback iconv
6484 Sat Jul 5 16:18:53 CEST 2003 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6486 Blame to Jan Hubicka <jh@suse.cz>
6487 * cfglayout.c (record_effective_endpoints): Split insns before
6488 first basic block correctly.
6490 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6492 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
6493 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
6494 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
6496 2003-07-05 Andreas Jaeger <aj@suse.de>
6498 * genattrtab.c (write_attr_get): Revert part of last patch to
6499 always write out a prototype.
6501 * genemit.c (gen_split): Readd lost unused attributes in last
6504 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6506 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
6507 different from header.
6509 2003-07-05 Andreas Schwab <schwab@suse.de>
6511 * config/m68k/m68k.c: Remove code protected by CRDS.
6512 * config/m68k/m68k.md: Likewise.
6514 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
6517 * c-opts.c (permit_fortran_options): New.
6518 (c_common_init_options): Accept fortran front end options if
6519 it looks like we might be preprocessing Fortran.
6520 (c_common_handle_option): Don't reject switch if permit_fotran_options.
6522 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6524 * genattr.c (internal_dfa_insn_code): Output prototype.
6525 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
6526 * genautomata.c: Likewise.
6527 * genconditions.c: Likewise.
6528 * genemit.c: Likewise.
6529 * genextract.c: Likewise.
6530 * gengenrtl.c: Likewise.
6531 * gengtype.c: Likewise.
6532 * genopinit.c: Likewise.
6533 * genoutput.c: Likewise.
6534 * genpeep.c: Likewise.
6535 * genrecog.c: Likewise.
6537 2003-07-04 Zack Weinberg <zack@codesourcery.com>
6539 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
6540 (struct cpp_options): Add narrow_charset, wide_charset,
6541 bytes_big_endian fields. Remove EBCDIC field.
6542 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
6544 * cpphash.h: Include <iconv.h> if we have it, otherwise
6545 provide a dummy definition of iconv_t.
6546 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
6547 (_cpp_valid_ucn): Update prototype.
6548 (_cpp_destroy_iconv): New prototype.
6550 * doc/cpp.texi: Document character set handling.
6551 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
6552 * doc/extend.texi: Delete entire section on multiline strings.
6553 Rewrite section on __FUNCTION__ etc now that these are
6556 * cppucnid.tab, cppucnid.pl: New files.
6557 * cppucnid.h: New generated file.
6558 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
6559 (iconv_open, iconv, iconv_close): Provide dummy definitions
6561 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
6562 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
6563 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
6564 cpp_interpret_string, narrow_str_to_charconst,
6565 wide_str_to_charconst): New.
6566 (ucn_valid_in_identifier): Use a binary search through the
6567 ucnranges table defined in cppucnid.h, not a long chain of if
6569 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
6570 character names are only valid in C++ and C99" to a warning.
6571 Issue the "meaning of \[uU] is different in traditional C"
6572 warning here. Take care not to let iconv see an invalid UCS
6573 value if we get a malformed UCN. Issue an error if we don't
6575 (cpp_interpret_charconst): Moved here from cpplex.c. Use
6576 cpp_interpret_string to do the heavy lifting.
6578 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
6579 narrow_charset, wide_charset fields of options structure.
6580 (cpp_destroy): Call _cpp_destroy_iconv.
6581 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
6582 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
6583 (cpp_interpret_charconst): Moved to cppcharset.c.
6584 * cpplib.c (dequote_string): Delete.
6585 (interpret_string_notranslate): New.
6586 (do_line, do_linemarker): Use interpret_string_notranslate.
6588 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
6590 * c-common.c (fname_string, combine_strings): Delete.
6591 * c-common.h (fname_string, combine_strings): Delete prototypes.
6592 * c-lex.c (ignore_escape_flag): Delete.
6593 (cb_ident): Use cpp_interpret_string, not lex_string.
6594 (get_nonpadding_token): New function.
6595 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
6596 Adjust calls to lex_string. Don't write *value twice.
6597 (lex_string): Now handles string constant concatenation.
6598 Most of the work handed off to cpp_interpret_string.
6599 Call fix_string_type here.
6600 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
6601 FUNC_NAME, throughout.
6602 (OBJC_STRING): New token type.
6603 (primary:STRING): No need to call fix_string_type here.
6604 (primary:objc_string): Make that OBJC_STRING.
6605 (objc_string nonterminal): Delete.
6606 (yylexname): Delete code to handle fake string constants.
6607 (yylexstring): Delete entirely.
6608 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
6609 to handle CPP_ATSIGN.
6611 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
6612 * c-opts.c (missing_arg, c_common_handle_option): Handle
6613 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
6614 (c_common_init): Set cpp_opts->bytes_big_endian, not
6615 cpp_opts->EBCDIC. Call cpp_init_iconv.
6616 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
6617 (TARGET_EBCDIC): Delete default definition.
6619 * objc/objc-act.c (build_objc_string_object): No need to
6620 handle string constant concatenation.
6622 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
6624 * doc/install.texi: Fix typos.
6625 * doc/invoke.texi: Likewise.
6626 * doc/tm.texi: Likewise.
6628 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
6630 * config/pa/fptr.c: Fix comment typos.
6631 * config/pa/pa-64.h: Likewise.
6632 * config/pa/pa.c: Likewise.
6633 * config/pa/pa.h: Likewise.
6634 * config/rs6000/603.md: Likewise.
6635 * config/rs6000/7xx.md: Likewise.
6636 * config/rs6000/darwin.h: Likewise.
6637 * config/rs6000/freebsd.h: Likewise.
6638 * config/rs6000/rs6000.c: Likewise.
6639 * config/rs6000/rs6000.md: Likewise.
6640 * config/rs6000/spe.h: Likewise.
6642 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
6644 * config/s390/2064.md: Change GNU CC to GCC.
6645 * config/s390/2084.md: Likewise.
6646 * config/s390/fixdfdi.h: Likewise.
6647 * config/s390/linux.h: Likewise.
6648 * config/s390/s390-modes.def: Likewise.
6649 * config/s390/s390-protos.h: Likewise.
6650 * config/s390/s390.c: Likewise.
6651 * config/s390/s390.h: Likewise.
6652 * config/s390/s390.md: Likewise.
6653 * config/s390/s390x.h: Likewise.
6655 2003-07-04 Jeff Law <law@redhat.com>
6658 * expr.c (do_store_flag): Pass in the correct result type
6659 when calling fold_single_bit_test.
6660 * fold-const.c (fold_single_bit_test): Use result_type for the
6661 result when folding a sign bit test.
6663 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
6665 * opts.c (common_handle_options): Negate sense of -falign- switches.
6667 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
6669 * Makefile.in: Replace PWD with PWD_COMMAND.
6671 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6673 * cfgloopanal.c (count_strange_loop_iterations): New static function.
6674 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
6675 Handle strange loops.
6677 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
6679 * install.texi: Even the g77 manpage is derived from
6680 the full g77 manual.
6682 2003-07-04 Zack Weinberg <zack@codesourcery.com>
6684 * ABOUT-NLS: Delete.
6685 * intl: Delete entire directory.
6686 * aclocal.m4: Include ../config/gettext.m4. Delete
6687 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
6688 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
6689 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
6690 Remove intl/Makefile from all_outputs.
6691 * configure, config.in: Regenerate.
6692 * Makefile.in: Expunge all references to intl subdirectory.
6693 Add -I../intl to INCLUDES.
6694 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
6696 2003-07-04 Roger Sayle <roger@eyesopen.com>
6698 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
6699 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
6701 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
6703 PR c++/5287, PR c++/7910, PR c++/11021
6704 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
6705 dllimport attribute if function is defined at declaration, but
6706 report error instead. Likewise for dllimport'd variable
6707 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
6708 declared within functions, Report error if dllimport or dllexport
6709 symbol is not global.
6710 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
6711 if defined after declaration or if inlined. Don't allow definition
6712 of static data members of C++ classes. Don't dllimport virtual
6714 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
6715 (i386_pe_mark_dllimport): Remove unnecessary checks.
6716 (i386_pe_encode_section_info): Warn if the dllimport attribute
6717 and symbol prefix have been instantiated and then overridden.
6719 * doc/extend.texi: Document dllimport and dllexport attributes.
6721 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
6723 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
6725 * config/kaos.h (CPP_PREDEFINES): Delete.
6726 (TARGET_OS_CPP_BUILTINS): New.
6728 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6730 * c-aux-info.c: Include toplev.h after c-tree.h.
6731 * c-common.c: Likewise.
6732 (GCC_DIAG_STYLE): Undef.
6733 * c-semantics.c (GCC_DIAG_STYLE): Define.
6734 * c-tree.h (GCC_DIAG_STYLE): Likewise.
6735 * diagnostic.h (inform): Move prototype to toplev.h.
6736 * jump.c: Include diagnostic.h before toplev.h.
6737 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
6738 (warning, error, fatal_error, pedwarn, sorry, inform,
6739 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
6741 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6743 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
6744 at all if edge is not specified.
6745 (can_copy_bbs_p, copy_bbs): New.
6746 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
6747 * cfgloop.c (get_loop_body): Comment more precisely.
6748 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
6749 (scale_bbs_frequencies): Fix comment typo.
6750 (can_duplicate_loop_p): Use can_copy_bbs_p.
6751 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
6753 2003-07-03 Devang Patel <dpatel@apple.com>
6755 * c-opts.c (c_common_parse_file): Remove extra
6756 debug_hooks->start_source_file call.
6758 2003-07-03 Roger Sayle <roger@eyesopen.com>
6760 * real.c (real_trunc, real_floor, real_ceil): New functions
6761 to implement trunc, floor and ceil respectively.
6762 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
6763 * builtins.c (integer_valued_real_p): New function to test if
6764 a floating point expression has an integer valued result.
6765 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
6766 foo(x) where foo is an integer rounding function. Similarly,
6767 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
6768 (double)(int)x when both foo and bar are integer rounding
6769 functions and we don't need to honor errno.
6770 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
6771 New functions to fold trunc, floor and ceil.
6772 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
6773 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
6774 to fold BUILT_IN_CEIL*.
6775 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
6776 the remaining integer rounding functions.
6778 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
6780 * config/sparc/sparc.c (function_arg_partial_nregs): Use
6781 SPARC_INT_ARG_MAX to determine where to split unnamed
6782 complex FP arguments.
6784 Thu Jul 3 20:36:47 CEST 2003 Jan Hubicka <jh@suse.cz>
6786 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
6787 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
6788 (merge_blocks_move_predecessor_nojumps,
6789 merge_blocks_move_successor_nojumps): Use merge_blocks.
6790 (try_optimize_cfg): Use merge_blocks_move.
6791 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
6792 (merge_blocks_nomove): Rename to rtl_merge_blocks.
6793 (cfg_layout_create_basic_block): New.
6794 (rtl_can_merge_blocks): New.
6795 (cfg_layout_split_block): Do not alloc aux by hand.
6796 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
6798 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
6799 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
6800 * cfgloopmanip.c (loop_split_edge_with): Likewise.
6801 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
6803 * basic-block.h (basic_block_def): Add field 'rbi'.
6804 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
6805 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
6806 * cfg.c (entry_exit_blocks): Add new field.
6807 * cfglayout.c: Include alloc-pool.h;
6808 (cfg_layout_pool): New.
6809 (record_effective_endpoints, fixup_reorder_chain,
6810 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
6812 (cfg_layout_initialize_rbi): New function.
6813 (cfg_layout_initialize): Use it.
6814 (cfg_layout_finalize): Clear rbi fields.
6815 * cfglayout.h (RBI): Kill.
6816 (cfg_layout_initialize_rbi): Declare.
6817 * cfgloopmanip.c (copy_bbs): Use rbi.
6818 (record_exit_edges): Likewise.
6819 (duplicate_loop_to_header_edge): Likewise.
6820 * cfgrtl.c (cfg_layout_create_basic_block): Use
6821 cfg_layout_initialize_rbi.
6822 (cfg_layout_split_block): Use rbi.
6823 (cfg_layout_delete_block): Likewise.
6824 * loop-init.c (loop_optimizer_finalize): Likewise.
6825 * loop-unswitch.c (unswitch_loop): Likewise.
6826 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
6828 * cfgrtl.c: Update comments.
6829 (try_redirect_by_replacing_jump): New argument.
6830 (redirect_branch_edge): Break out from ...
6831 (rtl_redirect_edge_and_branch): ... this one.
6832 (update_cfg_after_block_merging): Break out from ...
6833 (rtl_merge_blocks): ... this one.
6834 (cfg_layout_split_edge): New.
6835 (cfg_layout_merge_blocks): New.
6836 (cfg_layout_can_merge_blocks_p): New.
6837 (cfg_layout_redirect_edge_and_branch): Reorganize.
6838 (cfg_layout_rtl_cfg_hooks): Fill in.
6839 (cfg_layout_delete_block): Kill barriers.
6840 * cfganal.c (can_fallthru): Deal with exit blocks
6841 * cfglayout.c (cfg_layout_function_header): New function
6842 (record_effective_endpoints): Record function header.
6843 (fixup_reorder_chain): Fixup dead jumptables; place header
6845 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
6846 * bb-reorder.c (cfg_layout_initialize): Update call.
6847 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
6848 edges in cfglayout mode.
6849 * cfglayout.c (cleanup_unconditional_jumps): Kill.
6850 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
6851 * cfglayout.h (cfg_layout_initialize): Update prototype.
6852 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
6853 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
6854 * flow.c (propagate_block): Do not crash when basic block ends
6855 by first insn in the chain.
6856 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
6858 * tracer.c (tracer): Update call of cfg_layout_initialize.
6860 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6862 * Makefile.in: Use dependency variables in lieu of explicit
6865 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
6867 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
6868 * tree.h: ...to here.
6870 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
6872 * config/s390/2064.md: Fix comment typos.
6873 * config/s390/2084.md: Likewise.
6874 * config/s390/s390.c: Likewise.
6875 * config/s390/s390.md: Likewise.
6876 * config/sh/sh.c: Likewise.
6877 * config/sh/sh.h: Likewise.
6878 * config/sh/sh.md: Likewise.
6879 * config/sparc/sparc.c: Likewise.
6880 * config/sparc/sparc.h: Likewise.
6881 * config/sparc/sparc.md: Likewise.
6882 * config/stormy16/stormy16.c: Likewise.
6883 * config/stormy16/stormy16.h: Likewise.
6884 * config/stormy16/stormy-abi: Fix a typo.
6886 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
6888 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
6890 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6892 * config/mips/mips.h (save_argv): Delete.
6894 2003-07-03 Roger Sayle <roger@eyesopen.com>
6897 * fold-const.c (extract_muldiv_1): There's nothing that can be done
6898 if the expression is a SAVE_EXPR.
6900 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
6902 * config/m32r/m32r.c: Fix comment typos.
6903 * config/m68hc11/m68hc11.c: Likewise.
6904 * config/m68hc11/m68hc11.h: Likewise.
6905 * config/m68k/m68k.c: Likewise.
6906 * config/mcore/mcore.c: Likewise.
6907 * config/mcore/mcore.h: Likewise.
6908 * config/mcore/mcore.md: Likewise.
6909 * config/mips/mips.c: Likewise.
6910 * config/mips/mips.h: Likewise.
6911 * config/mips/mips.md: Likewise.
6912 * config/mips/netbsd.h: Likewise.
6913 * config/mn10300/mn10300.c: Likewise.
6915 2003-07-03 Andreas Schwab <schwab@suse.de>
6917 * dbxout.c (pending_bincls): Move decl down inside
6918 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
6920 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
6922 * rtl.h (NOTE_DATA): Refer to whole union.
6923 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
6925 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
6927 PR optimization/11381
6928 * simplify-rtx.c (simplify_relational_operation): Check that
6929 two equal operands have no side-effects before simplifying
6932 2003-07-02 Jeff Law <law@redhat.com>
6934 * expr.c (do_store_flag): Remove special case folding for
6935 single bit tests. Instead call back into the commonized folder
6937 * fold-const.c (fold_single_bit_test): New function, mostly
6938 extracted from do_store_flag, with an additional case extracted
6940 (fold): Call fold_single_bit_test appropriately.
6941 * tree.h (fold_single_bit_test): Prototype.
6943 2003-07-02 Zack Weinberg <zack@codesourcery.com>
6945 * system.h: Include filenames.h.
6946 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
6947 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
6948 define based on HAVE_DOS_BASED_FILE_SYSTEM.
6949 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
6950 * config/i386/xm-mingw32.h: Don't define
6951 HAVE_DOS_BASED_FILE_SYSTEM,
6952 DIR_SEPARATOR, or DIR_SEPARATOR_2.
6953 * doc/hostconfig.texi: Update to match.
6955 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
6956 config/i386/cygwin.h:
6957 Use IS_ABSOLUTE_PATH throughout.
6958 * gcc.c (DIR_UP): Delete, unused.
6959 * protoize.c (IS_SAME_PATH): Define in terms of
6961 (is_abspath): Delete.
6963 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
6965 * config/i386/emmintrin.h: Fix comment typos.
6966 * config/i386/i386.c: Likewise.
6967 * config/i386/i386.h: Likewise.
6968 * config/i386/sco5.h: Likewise.
6969 * config/ia64/ia64.c: Likewise.
6970 * config/ia64/itanium2.md: Likewise.
6972 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
6974 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
6976 (emit_bincl_stab): Same.
6977 (emit_pending_bincls): Same.
6979 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
6981 * config/h8300/h8300.c (compute_mov_length): Fix the length of
6982 loading CONST0_RTX (SFmode).
6983 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
6984 'G' to CONST0_RTX (SFmode).
6985 * config/h8300/h8300.md (movsf_h8300): Change the first
6987 (movsf_h8300h): Likewise.
6989 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
6991 * c-common.h (c_common_init_options): New prototype.
6992 * c-opts.c (deferred_size): Remove.
6993 (defer_opt): Array is now pre-allocated.
6994 (c_common_init_options): Pre-allocate deferred_opts. Make
6995 lang_flags unsigned.
6996 (push_command_line_options): Free deferred_opts.
6997 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
6998 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
6999 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
7000 * langhooks.h (struct lang_hooks): New prototype for init_options.
7001 * main.c (main): Cast argv.
7002 * opts.c (handle_option, handle_options): Update prototypes.
7003 (decode_options): save_argc, save_argv are not global. Constify.
7004 * opts.h (decode_options): New prototype.
7005 * toplev.c (general_init): New protoype.
7006 (save_argv): Make static.
7007 (save_argc): Remove.
7008 (print_switch_values, general_init): Constify.
7009 (toplev_main): Save argv.
7010 * toplev.h (toplev_main): Update prototype.
7011 (save_argc, save_argv): Remove.
7013 2003-07-02 David Edelsohn <edelsohn@gnu.org>
7015 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
7016 (emit_bincl_stab): Same.
7017 (emit_pending_bincls): Same.
7019 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
7022 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
7024 2003-07-02 Andreas Schwab <schwab@suse.de>
7026 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
7028 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
7030 PR optimization/11210
7031 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
7032 about the behaviour with regard to bitfields.
7033 * fold-const (decode_field_reference): Record outermost type in
7034 case the expression is a NOP. Strip all NOPs. Set the signedness
7035 to that of the outermost type (if any) when the bitsize is equal
7036 to the size of the type.
7038 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
7040 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
7041 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
7042 (adddi3_internal_3, addsi3_internal_2): Likewise.
7044 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
7046 * config/mips/mips.c (machine_function): Add new fields:
7047 ignore_hazard_length_p and all_noreorder_p.
7048 (mips_flag_delayed_branch): New variable.
7049 (override_options): Treat '/' as an operand punctuation character.
7050 Set up mips_flag_delayed_branch.
7051 (print_operand): Handle '/'.
7052 (mips_output_function_prologue): Put the whole function in
7053 .set noreorder and .set nomacro if all_noreorder_p is true.
7054 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
7055 (mips16_optimize_gp): Remove "first insn" parameter.
7056 (mips16_lay_out_constants): New function, split out from mips_reorg.
7057 (mips_avoid_hazard, mips_avoid_hazards): New functions.
7058 (mips_reorg): For mips16 code, call mips16_lay_out_constant
7059 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
7060 do delayed-branch scheduling followed by hazard detection.
7061 (mips_adjust_insn_length): Only account for hazards if
7062 !ignore_hazard_length_p.
7063 (mips_output_load_label): Add a nop to the o32 sequence if
7064 the target suffers from load delays.
7065 (mips_output_conditional_branch): Add %/ to the end of branches.
7066 (mips_output_division): Fill the branch delay slot with %#.
7067 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
7068 instructions. End all other %* branches with %/.
7069 (ffssi2, ffsdi2): Fix lengths.
7070 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
7071 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
7072 (fix_truncsfsi2_macro): Likewise.
7073 (mov_lwl): Set hazard to "none".
7074 (ashldi3_internal): Fill the branch delay slot with %#.
7075 (ashrdi3_internal, lshrdi3_internal): Likewise.
7076 (exception_receiver): Explicitly set $28.
7077 (hazard_nop): New pattern.
7079 Wed Jul 2 08:12:36 CEST 2003 Jan Hubicka <jh@suse.cz>
7081 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
7082 before calling tree_inlinable_function_p.
7084 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7086 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
7087 <internal/stdio_core.h> too.
7088 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
7089 <internal/wchar_core.h> too.
7090 Substitute va_list uses in inline definition.
7091 * fixinc/fixincl.x: Regenerate.
7093 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7095 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
7096 Undef before redefinition.
7097 (LABEL_AFTER_LOC): Likewise.
7098 (DEFAULT_SIGNED_CHAR): Likewise.
7099 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
7102 * config/mips/iris3.h: Remove, unused.
7103 * config/mips/iris4.h: Likewise.
7105 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
7107 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
7108 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
7111 * config/mips/iris5.h: Move explicit includes ...
7112 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
7114 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
7115 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
7118 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
7119 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
7122 * config/mips/iris6.h: Fix IRIX spelling.
7123 (MULTILIB_DEFAULTS): Undef before redefinition.
7125 * config/mips/iris6.h: Move explicit includes ...
7126 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
7128 Wed Jul 2 02:16:48 CEST 2003 Jan Hubicka <jh@suse.cz>
7130 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
7131 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
7132 Use next_needed field instead of aux to maintain the queue.
7133 * cgraph.h (cgraph_node): Add next_needed.
7134 (cgraph_varpool_node): Add next_needed; remove aux.
7135 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
7137 Wed Jul 2 02:12:51 CEST 2003 Jan Hubicka <jh@suse.cz>
7139 * cgraphunit.c (cgraph_finalize_function): Set finalized.
7140 (cgraph_finalize_function): Do not examine inlinablility.
7141 (cgraph_finalize_compilation_unit): Do it here.
7142 * cgraph.h (cgraph_local_info): Add finalized field.
7144 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7146 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
7147 (gt_pch_restore): Likewise.
7149 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
7151 * config/alpha/alpha.c: Fix comment typos.
7152 * config/alpha/elf.h: Likewise.
7153 * config/arm/arm.c: Likewise.
7154 * config/arm/arm.h: Likewise.
7155 * config/arm/arm.md: Likewise.
7156 * config/arm/t-arm-coff: Likewise.
7157 * config/arm/t-strongarm-pe: Likewise.
7158 * config/arm/xscale-elf.h: Likewise.
7159 * config/avr/avr.h: Likewise.
7161 2003-07-01 Jeff Law <law@redhat.com>
7163 * stmt.c (any_pending_cleanups): Remove another redundant test.
7165 2003-07-01 David Edelsohn <edelsohn@gnu.org>
7166 J"orn Rennecke <joern.rennecke@superh.com>
7168 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
7171 2003-07-01 Devang Patel <dpatel@apple.com>
7173 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
7175 (struct dbx_file): New members - bincl_status, pending_bincl_name and
7177 (pending_bincls): New.
7178 (dbxout_init): Initialize new dbx_file members.
7179 (dbxout_start_source_file): Same.
7180 (emit_bincl_stab): New function.
7181 (emit_pending_bincls): Same.
7182 (emit_pending_bincls_if_required): Same.
7183 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
7185 (dbxout_begin_block): Emit pending BINCL stabs.
7186 (dbxout_end_block): Same.
7187 (dbxout_function_decl): Same.
7188 (dbxout_continue): Same.
7189 (dbxout_type): Same.
7190 (dbxout_class_name_qualifiers): Same.
7191 (dbxout_symbol): Same.
7192 (dbxout_symbol_location): Same.
7193 (dbxout_parms): Same.
7195 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7197 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
7198 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
7200 2003-07-01 Andreas Jaeger <aj@suse.de>
7202 * fold-const.c: Convert prototypes to ISO C90.
7203 * function.c: Likewise.
7204 * function.h: Likewise.
7206 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
7208 * doc/contrib.texi: Fix typos.
7209 * doc/invoke.texi: Likewise.
7210 * doc/passes.texi: Likewise.
7211 * doc/sourcebuild.texi: Likewise.
7212 * doc/tm.texi: Likewise.
7214 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
7216 * basic-block.h: Fix comment typos.
7217 * bb-reorder.c: Likewise.
7218 * c-format.c: Likewise.
7219 * cfgcleanup.c: Likewise.
7220 * cfghooks.h: Likewise.
7221 * cfgloop.c: Likewise.
7222 * cfgloopmanip.c: Likewise.
7223 * cfgrtl.c: Likewise.
7224 * cgraph.h: Likewise.
7225 * cgraphunit.c: Likewise.
7226 * combine.c: Likewise.
7227 * convert.c: Likewise.
7228 * dbxout.c: Likewise.
7231 * diagnostic.c: Likewise.
7232 * dwarf2out.c: Likewise.
7233 * et-forest.h: Likewise.
7235 * fold-const.c: Likewise.
7236 * function.h: Likewise.
7237 * gcov-io.h: Likewise.
7240 * genautomata.c: Likewise.
7241 * ggc-common.c: Likewise.
7242 * ggc-page.c: Likewise.
7243 * loop-unroll.c: Likewise.
7244 * loop-unswitch.c: Likewise.
7246 * mips-tfile.c: Likewise.
7247 * optabs.c: Likewise.
7248 * ra-build.c: Likewise.
7249 * ra-colorize.c: Likewise.
7250 * ra-rewrite.c: Likewise.
7252 * regmove.c: Likewise.
7253 * reload.c: Likewise.
7254 * rtlanal.c: Likewise.
7255 * sched-ebb.c: Likewise.
7256 * sched-int.h: Likewise.
7257 * sched-vis.c: Likewise.
7258 * sreal.c: Likewise.
7259 * ssa-ccp.c: Likewise.
7261 * toplev.c: Likewise.
7262 * tree-inline.c: Likewise.
7263 * value-prof.c: Likewise.
7264 * value-prof.h: Likewise.
7266 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
7268 * rtl.h (emit_line_note_after): Remove.
7269 (emit_note_copy_after, emit_note_copy): New.
7270 * emit-rtl.c (reorder_insns_with_line_notes): Replace
7271 emit_line_note_after with emit_note_copy_after.
7272 (emit_insn_after_with_line_notes): Likewise.
7273 (emit_line_note_after): Kill.
7274 (emit_note_copy_after): New.
7275 (emit_note_copy): New.
7276 * function.c (emit_return_into_block): Use emit_note_copy_after.
7277 (thread_prologue_and_epilogue_insns): Likewise.
7278 * integrate.c (expand_inline_function): Use emit_note_copy.
7279 (copy_insn_list): Likewise.
7280 * unroll.c (copy_loop_body): Likewise.
7281 * cfglayout.c (duplicate_insn_chain): Likewise.
7283 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
7285 * c-tree.h (define_label): Replace filename and lineno arguments
7287 * c-decl.c (poplevel): Adjust define_label call.
7288 (pop_label_level): Likewise.
7289 (define_label): Replace filename and lineno arguments with a
7291 (store_parm_decls): Use DECL_SOURCE_LOCATION.
7292 * c-parse.in (label): Adjust define_label call.
7294 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
7296 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
7297 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
7298 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
7299 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
7300 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
7302 2003-07-01 Andreas Jaeger <aj@suse.de>
7304 * final.c: Convert prototypes to ISO C90.
7306 * flags.h: Likewise.
7307 * gcov-io.c: Likewise.
7308 * gcov-io.h: Likewise.
7310 See ChangeLog.9 for earlier changes.